(()=>{"use strict";const e=window.React,n=window.wp.i18n,o=window.wp.components,i=window.wp.hooks,d=window.wp.element;(0,i.addFilter)("nexa.advanced.responsiveVisibility","nexa/responsive-visibility",(function(i,l,t){const{hideOnDesk:a,hideOnTab:s,hideOnMob:h}=l,[c,b]=(0,d.useState)(!1);return i.push((()=>(0,e.createElement)(o.PanelBody,{title:(0,n.__)("Responsive","nexa-blocks"),initialOpen:c},(0,e.createElement)(o.ToggleControl,{label:(0,n.__)("Hide on Desktop","nexa-blocks"),help:(0,n.__)("Fade mode on editor mode only. Item will be hidden on the frontend view.","nexa-blocks"),checked:a,onChange:()=>{t("hideOnDesk",!a,"nx-hide-on-desk"),b(!0)}}),(0,e.createElement)(o.ToggleControl,{label:(0,n.__)("Hide on Tablet","nexa-blocks"),help:(0,n.__)("Fade mode on editor mode only. Item will be hidden on the frontend view.","nexa-blocks"),checked:s,onChange:()=>{t("hideOnTab",!s,"nx-hide-on-tab"),b(!0)}}),(0,e.createElement)(o.ToggleControl,{label:(0,n.__)("Hide on Mobile","nexa-blocks"),help:(0,n.__)("Fade mode on editor mode only. Item will be hidden on the frontend view.","nexa-blocks"),checked:h,onChange:()=>{t("hideOnMob",!h,"nx-hide-on-mob"),b(!0)}})))),i}))})();