(()=>{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)}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(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?.gutenkit?.components,{getAttributes:s,setAttributes:c,useDeviceList:u}=window?.gutenkit?.helpers,d=(0,e.applyFilters)("gutenkit.advancedControl.visibility.exclude",new Set([])),p=s(n?.clientId),g=(0,r.useCallback)((e=>{c(n?.clientId,e)}),[n?.clientId]),b=u();return(0,o.jsxs)(t,{...n,children:[!d.has(n?.blockName)&&(0,o.jsx)(l,{title:(0,i.__)("Visibility","gutenkit-blocks-addon"),children:b&&b.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=>g({[`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?.gutenkit?.helpers,i=`commonBlockHide${n()}`,r=!0===t?.[i];return{...e,className:s()(e.className,{"gkit-hide-editor":r})}}),10)})()})();