(()=>{var e={84:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(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)o.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(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(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.blockEditor,o=window.wp.element,r=window.wp.components;var i=n(84),s=n.n(i);const{createHigherOrderComponent:a}=wp.compose,{addFilter:l}=wp.hooks,d=wp.compose.createHigherOrderComponent((n=>i=>{const{attributes:s,setAttributes:a,name:l}=i;return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(n,{...i}),(0,e.createElement)(t.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:"Nexter Settings",initialOpen:!1},(0,e.createElement)(r.ToggleControl,{label:wp.i18n.__("Hide on desktop","nexter-fse"),checked:!!s.hideOnDesktop,onChange:e=>a({hideOnDesktop:!s.hideOnDesktop})}),(0,e.createElement)(r.ToggleControl,{label:wp.i18n.__("Hide on tablet","nexter-fse"),checked:!!s.hideOnTablet,onChange:e=>a({hideOnTablet:!s.hideOnTablet})}),(0,e.createElement)(r.ToggleControl,{label:wp.i18n.__("Hide on mobile","nexter-fse"),checked:!!s.hideOnMobile,onChange:e=>a({hideOnMobile:!s.hideOnMobile})}))))}),"nexter_fse_addRespCont"),c=a((t=>n=>{const{attributes:{hideOnTablet:o,hideOnDesktop:r,hideOnMobile:i},className:a,name:l}=n;let d="";return i&&(d+=" hide-on-mobile"),o&&(d+=" hide-on-tablet"),r&&(d+=" hide-on-desktop"),(0,e.createElement)(t,{...n,className:s()(a,d)})}),"withClientIdClassName");l("blocks.registerBlockType","nexter-fse/register-responsive-settings",(function(e,t){return void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{hideOnDesktop:{type:"boolean",default:!1},hideOnTablet:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1}})),e})),l("editor.BlockEdit","nexter-fse/add-responsive-settings-control",d),l("blocks.getSaveContent.extraProps","nexter-fse/add-responsive-class",(function(e,t,n){const{hideOnDesktop:o}=n,{hideOnTablet:r}=n,{hideOnMobile:i}=n;return void 0===e.className&&(e.className=""),void 0!==r&&r&&(e.className=e.className+" hide-on-tablet"),void 0!==o&&o&&(e.className=e.className+" hide-on-desktop"),void 0!==i&&i&&(e.className=e.className+" hide-on-mobile"),e})),l("editor.BlockListBlock","nexter-fse/add-responsive-class-editor",c)})()})();