(()=>{var t={942:(t,e)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=s(t,i(r)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)o.call(t,r)&&t[r]&&(e=s(e,r));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=window.wp.i18n,e=window.wp.blockEditor,o=window.wp.components,n=window.wp.primitives,i=window.ReactJSXRuntime,s=(0,i.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(n.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),l=(0,i.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(n.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),a=(0,i.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(n.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),c=(0,i.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(n.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var p=r(942),d=r.n(p);const w={left:{icon:s,title:(0,t.__)("Align Left","formello")},center:{icon:l,title:(0,t.__)("Align Center","formello")},right:{icon:a,title:(0,t.__)("Align Right","formello")},wide:{icon:c,title:(0,t.__)("Wide","formello")}},u=["left","right","center","wide"],x=JSON.parse('{"UU":"popper/form-button"}'),h=window.wp.blocks,{UU:v}=x;(0,h.registerBlockType)(v,{edit:({attributes:r,setAttributes:n})=>{const{align:s}=r,l=d()("wp-element-button","align"+s),a=(0,e.useBlockProps)({className:l});return(0,i.jsxs)("button",{...a,children:[(0,i.jsx)(e.BlockControls,{children:(0,i.jsx)(o.ToolbarGroup,{children:(0,i.jsx)(o.ToolbarDropdownMenu,{icon:w[s].icon,label:(0,t.__)("Align"),controls:u.map((t=>({...w[t],isActive:s===t,onClick:()=>n({align:t})})))})})}),(0,i.jsx)(e.RichText,{tagName:"span",value:r.text,onChange:t=>n({text:t}),placeholder:(0,t.__)("Enter close text…","popper"),allowedFormats:["core/bold","core/italic"],multiline:!1})]})},save:({attributes:r})=>{const{align:o}=r,n=d()("wp-element-button","align"+o),s=e.useBlockProps.save({className:n});return(0,i.jsxs)("button",{type:"submit",...s,"data-wp-bind--disabled":"context.isLoading","data-wp-class--loading":"context.isLoading",children:[(0,i.jsx)("span",{children:r.text||(0,t.__)("Submit","popper")}),(0,i.jsxs)("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{opacity:"0.2",fill:"#000",d:"M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946 s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634 c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"}),(0,i.jsx)("path",{fill:"#000",d:"M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0 C22.32,8.481,24.301,9.057,26.013,10.047z",children:(0,i.jsx)("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 20 20",to:"360 20 20",dur:"0.5s",repeatCount:"indefinite"})})]})]})}})})()})();