(()=>{var e={942:(e,t)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)o.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks,t=window.wp.blockEditor,o=window.wp.components,n=window.wp.element,i=window.wp.data,s=window.wp.i18n;var l=r(942),a=r.n(l);const c=window.ReactJSXRuntime,p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"popper/body","title":"Pop up body","description":"Popper pop up body content.","category":"popper","parent":["popper/popup"],"textdomain":"popper","supports":{"lock":false,"multiple":false,"reusable":false,"shadow":true,"background":{"backgroundImage":true,"backgroundSize":true},"color":{"text":true,"background":true,"gradients":true},"spacing":{"padding":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}}},"attributes":{"width":{"type":"string"},"height":{"type":"string"}},"editorScript":"file:./index.js"}'),d=window.wp.primitives,u=(0,c.jsx)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(d.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});(0,e.registerBlockType)(p,{icon:u,transforms:{from:[{type:"block",blocks:["core/group"],transform:(t,r)=>(0,e.createBlock)("popper/body",t,r)}]},edit:function({clientId:e,attributes:r,setAttributes:l,className:p}){const{width:d,height:u}=r,h=(0,i.useSelect)((t=>{const{getBlock:r}=t("core/block-editor"),o=r(e);return!(!o||!o.innerBlocks.length)}),[e]),w=(0,t.useBlockProps)({className:a()(p,{"is-empty":!h}),style:{width:d||void 0,height:u||void 0}}),{children:g,...v}=(0,t.useInnerBlocksProps)(w,{renderAppender:h?null:t.InnerBlocks.ButtonBlockAppender});return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)(t.InspectorControls,{group:"dimensions",children:[(0,c.jsx)(o.__experimentalToolsPanelItem,{hasValue:()=>!!d||!!u,label:(0,s.__)("Size"),onDeselect:()=>l({width:void 0,height:void 0}),resetAllFilter:()=>({width:void 0,height:void 0}),isShownByDefault:!0,panelId:e,children:(0,c.jsx)(t.HeightControl,{label:(0,s.__)("Width"),labelPosition:"edge",value:d,onChange:e=>{l({width:e})}})}),(0,c.jsx)(o.__experimentalToolsPanelItem,{hasValue:()=>!!d||!!u,label:(0,s.__)("Size"),onDeselect:()=>l({width:void 0,height:void 0}),resetAllFilter:()=>({width:void 0,height:void 0}),isShownByDefault:!0,panelId:e,children:(0,c.jsx)(t.HeightControl,{label:(0,s.__)("Height"),labelPosition:"edge",value:u,onChange:e=>{l({height:e})}})})]}),(0,c.jsx)("div",{...v,children:g})]})},save:({attributes:e})=>{const r=t.useBlockProps.save({style:{width:e.width||void 0,height:e.height||void 0}});return(0,c.jsx)("div",{...r,children:(0,c.jsx)(t.InnerBlocks.Content,{})})}})})()})();