(()=>{var e={942:(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=a(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=a(t,r));return t}function a(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,t=window.wp.element;var n=r(942),o=r.n(n);const i=window.wp.i18n,a=window.wp.blockEditor;function s(e){const{attributes:r,setAttributes:n}=e,{align:o}=r;return(0,t.createElement)(a.BlockControls,{group:"block"},(0,t.createElement)(a.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})},describedBy:(0,i.__)("Change text alignment","mailster"),label:(0,i.__)("Align","mailster")}))}window.wp.coreData;const l=(0,t.createElement)("svg",{version:"1.1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{fill:"none"},(0,t.createElement)("path",{d:"M0 0h24v24h-24v-24Z"}),(0,t.createElement)("circle",{cx:"12",cy:"18",r:"4",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,t.createElement)("line",{x1:"11",x2:"13",y1:"19",y2:"17",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,t.createElement)("line",{x1:"11",x2:"13",y1:"17",y2:"19",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,t.createElement)("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,t.createElement)("line",{x1:"7",x2:"17",y1:"11",y2:"11",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,t.createElement)("line",{x1:"7",x2:"17",y1:"7",y2:"7",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}))),c=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:p,...u}=c;(0,e.registerBlockType)(p,{...u,icon:l,edit:function(e){const{attributes:r,setAttributes:n,isSelected:l,clientId:c}=e,{content:p,align:u}=r,m=["mailster-wrapper"];u&&m.push("mailster-wrapper-label-align-"+u);const d=(0,a.useBlockProps)({className:o()({},m)});return(0,t.useEffect)((()=>{p||n({content:(0,i.__)("Close popup","mailster")})})),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",d,(0,t.createElement)(a.RichText,{tagName:"a",href:"",value:p,className:"mailster-block-form-inner-close",allowedFormats:["core/bold","core/italic"],onChange:e=>n({content:e}),"aria-label":p,placeholder:(0,i.__)("Enter Label","mailster")})),(0,t.createElement)(s,e))},save:function(e){const{attributes:r,setAttributes:n}=e,{content:i,align:s}=r,l=["mailster-wrapper"];s&&l.push("mailster-wrapper-label-align-"+s);const c=a.useBlockProps.save({className:o()({},l)});return(0,t.createElement)("div",c,(0,t.createElement)(a.RichText.Content,{tagName:"a",href:"",className:"mailster-block-form-inner-close",value:i,"aria-label":i,tabIndex:"0"}))}})})()})();