(()=>{var e={6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,s(r)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.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)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],s=t[n++];r.o(e,o)?0===s&&n++:0===s?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:s})}else 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.hasOwn(e,t),(()=>{"use strict";const e=window.wp.blocks;var t=r(6942),n=r.n(t);const o=window.wp.i18n,s=window.wp.blockEditor,i=window.wp.element,a=(window.wp.coreData,window.ReactJSXRuntime);function l(e){const{attributes:t,setAttributes:r}=e,{align:n}=t;return(0,a.jsx)(s.BlockControls,{group:"block",children:(0,a.jsx)(s.AlignmentToolbar,{value:n,onChange:function(e){r({align:e})},describedBy:(0,o.__)("Change text alignment","mailster"),label:(0,o.__)("Align","mailster")})})}const c=(0,a.jsx)("svg",{version:"1.1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsxs)("g",{fill:"none",children:[(0,a.jsx)("path",{d:"M0 0h24v24h-24v-24Z"}),(0,a.jsx)("circle",{cx:"12",cy:"18",r:"4",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,a.jsx)("line",{x1:"11",x2:"13",y1:"19",y2:"17",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,a.jsx)("line",{x1:"11",x2:"13",y1:"17",y2:"19",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,a.jsx)("path",{stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M8 18h-3c-1.105 0-2-.895-2-2v-11c0-1.105.895-2 2-2h14c1.105 0 2 .895 2 2v11c0 1.105-.895 2-2 2h-3"}),(0,a.jsx)("line",{x1:"7",x2:"17",y1:"11",y2:"11",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,a.jsx)("line",{x1:"7",x2:"17",y1:"7",y2:"7",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}),p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"mailster/close","title":"Close Link","category":"mailster-form-fields","keywords":["container","wrapper","row","section"],"parent":["mailster/form-wrapper","core/column","core/group"],"description":"A simple link to close the popup","example":{},"supports":{"html":false,"reusable":false,"color":true,"spacing":{"margin":true,"padding":true,"blockGap":true},"typography":{"fontSize":true,"lineHeight":true}},"attributes":{"content":{"type":"string","source":"html","selector":"a"},"id":{"type":"string"},"align":{"type":"string"}},"textdomain":"mailster","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),{name:u,...d}=p;(0,e.registerBlockType)(u,{...d,icon:c,edit:function(e){const{attributes:t,setAttributes:r,isSelected:c,clientId:p}=e,{content:u,align:d}=t,m=["mailster-wrapper"];d&&m.push("mailster-wrapper-label-align-"+d);const f=(0,s.useBlockProps)({className:n()({},m)});return(0,i.useEffect)(()=>{u||r({content:(0,o.__)("Close popup","mailster")})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{...f,children:(0,a.jsx)(s.RichText,{tagName:"a",href:"",value:u,className:"mailster-block-form-inner-close",allowedFormats:["core/bold","core/italic"],onChange:e=>r({content:e}),"aria-label":u,placeholder:(0,o.__)("Enter Label","mailster")})}),(0,a.jsx)(l,{...e})]})},save:function(e){const{attributes:t,setAttributes:r}=e,{content:o,align:i}=t,l=["mailster-wrapper"];i&&l.push("mailster-wrapper-label-align-"+i);const c=s.useBlockProps.save({className:n()({},l)});return(0,a.jsx)("div",{...c,children:(0,a.jsx)(s.RichText.Content,{tagName:"a",href:"",className:"mailster-block-form-inner-close",value:o,"aria-label":o,tabIndex:"0"})})}})})()})();