(()=>{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=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 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=s(t,r));return t}function s(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)}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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 n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;var t=r(6942),n=r.n(t);const o=window.wp.i18n,i=window.wp.blockEditor,s=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)(i.BlockControls,{group:"block",children:(0,a.jsx)(i.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 x=(0,i.useBlockProps)({className:n()({},m)});return(0,s.useEffect)(()=>{u||r({content:(0,o.__)("Close popup","mailster")})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{...x,children:(0,a.jsx)(i.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:s}=t,l=["mailster-wrapper"];s&&l.push("mailster-wrapper-label-align-"+s);const c=i.useBlockProps.save({className:n()({},l)});return(0,a.jsx)("div",{...c,children:(0,a.jsx)(i.RichText.Content,{tagName:"a",href:"",className:"mailster-block-form-inner-close",value:o,"aria-label":o,tabIndex:"0"})})}})})()})();