(()=>{var e={6942(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}};const t={};function n(i){const r=t[i];if(void 0!==r)return r.exports;const o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var r=t[i++],o=t[i++];n.o(e,r)?0===o&&i++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";const e=window.wp.hooks,t=window.wp.compose,i=window.wp.i18n,r=window.wp.element,o=window.ReactJSXRuntime,l=(0,t.createHigherOrderComponent)(t=>n=>{if(n?.blockName?.includes("gutenkit")&&"advanced"===n?.tabName){const{GkitPanelBody:l,GkitSwitcher:a}=window?.GkitComponents,{getAttributes:s,setAttributes:c,useDeviceList:u}=window?.GkitHelpers,d=(0,e.applyFilters)("gutenkit.advancedControl.visibility.exclude",new Set([])),p=s(n?.clientId),b=(0,r.useCallback)(e=>{c(n?.clientId,e)},[n?.clientId]),g=u();return(0,o.jsxs)(t,{...n,children:[!d.has(n?.blockName)&&(0,o.jsx)(l,{title:(0,i.__)("Visibility","gutenkit-blocks-addon"),children:g&&g.map((e,t,n)=>(0,o.jsx)(a,{label:(0,i.__)("Hide on "+e?.label,"gutenkit-blocks-addon"),value:p[`commonBlockHide${e?.slug}`],onChange:t=>b({[`commonBlockHide${e?.slug}`]:t}),help:n?.length-1===t?(0,i.__)("The changes will only become active on the live page and not during the editing process","gutenkit-blocks-addon"):null},t))}),n.children]})}return(0,o.jsx)(t,{...n})},"Settings");var a=n(6942),s=n.n(a);(0,e.addFilter)("gutenkit.tabs.after-tab","gutenkit.visibility.controls",l,5),(0,e.addFilter)("gutenkit.blockWrapper.attributes","gutenkit.visibility.attributes",(e,t)=>{const{useDeviceType:n}=window?.GkitHelpers,i=`commonBlockHide${n()}`,r=!0===t?.[i];return{...e,className:s()(e.className,{"gkit-hide-editor":r})}},10)})()})();