| Server IP : www.new.bangkokfinder.com / Your IP : 104.22.66.4 Web Server : nginx/1.20.1 System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64 User : bangkokfinder ( 1000) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bangkokfinder/www/wp-content/plugins/generateblocks-pro/dist/ |
Upload File : |
(()=>{var e={4213:function(e,t,n){var s,a;void 0===(a="function"==typeof(s=function(){"use strict";function t(e,t,n){var s=new XMLHttpRequest;s.open("GET",e),s.responseType="blob",s.onload=function(){i(s.response,t,n)},s.onerror=function(){console.error("could not download file")},s.send()}function s(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,r=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(e,n,r){var i=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):s(l.href)?t(e,n,r):a(l,l.target="_blank")):(l.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(s(e))t(e,n,o);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout((function(){a(r)}))}}:function(e,n,s,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,s);var i="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||r)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var e=m.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},m.readAsDataURL(e)}else{var p=o.URL||o.webkitURL,h=p.createObjectURL(e);a?a.location=h:location.href=h,a=null,setTimeout((function(){p.revokeObjectURL(h)}),4e4)}});o.saveAs=i.saveAs=i,e.exports=i})?s.apply(t,[]):s)||(e.exports=a)}},t={};function n(s){var a=t[s];if(void 0!==a)return a.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,{entries:t,setPrototypeOf:s,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:l,create:c}=Object,{apply:m,construct:p}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),l||(l=function(e){return e}),m||(m=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});const h=x(Array.prototype.forEach),d=x(Array.prototype.lastIndexOf),u=x(Array.prototype.pop),g=x(Array.prototype.push),f=x(Array.prototype.splice),b=x(String.prototype.toLowerCase),w=x(String.prototype.toString),E=x(String.prototype.match),v=x(String.prototype.replace),k=x(String.prototype.indexOf),y=x(String.prototype.trim),S=x(Object.prototype.hasOwnProperty),_=x(RegExp.prototype.test),T=(N=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(N,t)});var N;function x(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return m(e,t,s)}}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;s&&s(e,null);let o=t.length;for(;o--;){let s=t[o];if("string"==typeof s){const e=n(s);e!==s&&(a(t)||(t[o]=e),s=e)}e[s]=!0}return e}function L(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function C(e){const n=c(null);for(const[s,a]of t(e))S(e,s)&&(Array.isArray(a)?n[s]=L(a):a&&"object"==typeof a&&a.constructor===Object?n[s]=C(a):n[s]=a);return n}function M(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}return function(){return null}}const z=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=i(["#text"]),B=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=l(/<%[\w\W]*|[\w\W]*%>/gm),j=l(/\$\{[\w\W]*/gm),W=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=l(/^aria-[\-\w]+$/),X=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=l(/^(?:\w+script|data):/i),J=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=l(/^html$/i),$=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:$,DATA_ATTR:W,DOCTYPE_NAME:K,ERB_EXPR:G,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:Z,MUSTACHE_EXPR:q,TMPLIT_EXPR:j});const ee=function(){return"undefined"==typeof window?null:window};var te=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee();const s=t=>e(t);if(s.version="3.2.6",s.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return s.isSupported=!1,s;let{document:a}=n;const o=a,r=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:m,Node:p,Element:N,NodeFilter:x,NamedNodeMap:L=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:q,DOMParser:G,trustedTypes:j}=n,W=N.prototype,Y=M(W,"cloneNode"),Z=M(W,"remove"),J=M(W,"nextSibling"),$=M(W,"childNodes"),te=M(W,"parentNode");if("function"==typeof m){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let ne,se="";const{implementation:ae,createNodeIterator:oe,createDocumentFragment:re,getElementsByTagName:ie}=a,{importNode:le}=o;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};s.isSupported="function"==typeof t&&"function"==typeof te&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:pe,TMPLIT_EXPR:he,DATA_ATTR:de,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:be}=Q;let{IS_ALLOWED_URI:we}=Q,Ee=null;const ve=A({},[...z,...R,...I,...H,...P]);let ke=null;const ye=A({},[...B,...F,...U,...V]);let Se=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Te=null,Ne=!0,xe=!0,Ae=!1,Le=!0,Ce=!1,Me=!0,ze=!1,Re=!1,Ie=!1,Oe=!1,He=!1,De=!1,Pe=!0,Be=!1,Fe=!0,Ue=!1,Ve={},qe=null;const Ge=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let je=null;const We=A({},["audio","video","img","source","image","track"]);let Ye=null;const Xe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let $e=Ke,Qe=!1,et=null;const tt=A({},[Ze,Je,Ke],w);let nt=A({},["mi","mo","mn","ms","mtext"]),st=A({},["annotation-xml"]);const at=A({},["title","style","font","a","script"]);let ot=null;const rt=["application/xhtml+xml","text/html"];let it=null,lt=null;const ct=a.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=C(e),ot=-1===rt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,it="application/xhtml+xml"===ot?w:b,Ee=S(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,it):ve,ke=S(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,it):ye,et=S(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,w):tt,Ye=S(e,"ADD_URI_SAFE_ATTR")?A(C(Xe),e.ADD_URI_SAFE_ATTR,it):Xe,je=S(e,"ADD_DATA_URI_TAGS")?A(C(We),e.ADD_DATA_URI_TAGS,it):We,qe=S(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,it):Ge,_e=S(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,it):C({}),Te=S(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,it):C({}),Ve=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,xe=!1!==e.ALLOW_DATA_ATTR,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ce=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Pe=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,Fe=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||X,$e=e.NAMESPACE||Ke,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,st=e.HTML_INTEGRATION_POINTS||st,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(xe=!1),He&&(Oe=!0),Ve&&(Ee=A({},P),ke=[],!0===Ve.html&&(A(Ee,z),A(ke,B)),!0===Ve.svg&&(A(Ee,R),A(ke,F),A(ke,V)),!0===Ve.svgFilters&&(A(Ee,I),A(ke,F),A(ke,V)),!0===Ve.mathMl&&(A(Ee,H),A(ke,U),A(ke,V))),e.ADD_TAGS&&(Ee===ve&&(Ee=C(Ee)),A(Ee,e.ADD_TAGS,it)),e.ADD_ATTR&&(ke===ye&&(ke=C(ke)),A(ke,e.ADD_ATTR,it)),e.ADD_URI_SAFE_ATTR&&A(Ye,e.ADD_URI_SAFE_ATTR,it),e.FORBID_CONTENTS&&(qe===Ge&&(qe=C(qe)),A(qe,e.FORBID_CONTENTS,it)),Fe&&(Ee["#text"]=!0),ze&&A(Ee,["html","head","body"]),Ee.table&&(A(Ee,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,se=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(j,r)),null!==ne&&"string"==typeof se&&(se=ne.createHTML(""));i&&i(e),lt=e}},ht=A({},[...R,...I,...O]),dt=A({},[...H,...D]),ut=function(e){g(s.removed,{element:e});try{te(e).removeChild(e)}catch(t){Z(e)}},gt=function(e,t){try{g(s.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(s.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Oe||He)try{ut(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function(e){let t=null,n=null;if(Ie)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&$e===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=ne?ne.createHTML(e):e;if($e===Ke)try{t=(new G).parseFromString(s,ot)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument($e,"template",null);try{t.documentElement.innerHTML=Qe?se:s}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),$e===Ke?ie.call(t,ze?"html":"body")[0]:ze?t.documentElement:o},bt=function(e){return oe.call(e.ownerDocument||e,e,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT|x.SHOW_PROCESSING_INSTRUCTION|x.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof q&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Et=function(e){return"function"==typeof p&&e instanceof p};function vt(e,t,n){h(e,(e=>{e.call(s,t,n,lt)}))}const kt=function(e){let t=null;if(vt(ce.beforeSanitizeElements,e,null),wt(e))return ut(e),!0;const n=it(e.nodeName);if(vt(ce.uponSanitizeElement,e,{tagName:n,allowedTags:Ee}),Me&&e.hasChildNodes()&&!Et(e.firstElementChild)&&_(/<[/\w!]/g,e.innerHTML)&&_(/<[/\w!]/g,e.textContent))return ut(e),!0;if(7===e.nodeType)return ut(e),!0;if(Me&&8===e.nodeType&&_(/<[/\w]/g,e.data))return ut(e),!0;if(!Ee[n]||_e[n]){if(!_e[n]&&St(n)){if(Se.tagNameCheck instanceof RegExp&&_(Se.tagNameCheck,n))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))return!1}if(Fe&&!qe[n]){const t=te(e)||e.parentNode,n=$(e)||e.childNodes;if(n&&t)for(let s=n.length-1;s>=0;--s){const a=Y(n[s],!0);a.__removalCount=(e.__removalCount||0)+1,t.insertBefore(a,J(e))}}return ut(e),!0}return e instanceof N&&!function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});const n=b(e.tagName),s=b(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===s||nt[s]):Boolean(ht[n]):e.namespaceURI===Ze?t.namespaceURI===Ke?"math"===n:t.namespaceURI===Je?"math"===n&&st[s]:Boolean(dt[n]):e.namespaceURI===Ke?!(t.namespaceURI===Je&&!st[s])&&!(t.namespaceURI===Ze&&!nt[s])&&!dt[n]&&(at[n]||!ht[n]):!("application/xhtml+xml"!==ot||!et[e.namespaceURI]))}(e)?(ut(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(t=e.textContent,h([me,pe,he],(e=>{t=v(t,e," ")})),e.textContent!==t&&(g(s.removed,{element:e.cloneNode()}),e.textContent=t)),vt(ce.afterSanitizeElements,e,null),!1):(ut(e),!0)},yt=function(e,t,n){if(Pe&&("id"===t||"name"===t)&&(n in a||n in ct))return!1;if(xe&&!Te[t]&&_(de,t));else if(Ne&&_(ue,t));else if(!ke[t]||Te[t]){if(!(St(e)&&(Se.tagNameCheck instanceof RegExp&&_(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&_(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&_(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ye[t]);else if(_(we,v(n,fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!je[e])if(Ae&&!_(ge,v(n,fe,"")));else if(n)return!1;return!0},St=function(e){return"annotation-xml"!==e&&E(e,be)},_t=function(e){vt(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||wt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let a=t.length;for(;a--;){const o=t[a],{name:r,namespaceURI:i,value:l}=o,c=it(r),m=l;let p="value"===r?m:y(m);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,vt(ce.uponSanitizeAttribute,e,n),p=n.attrValue,!Be||"id"!==c&&"name"!==c||(gt(r,e),p="user-content-"+p),Me&&_(/((--!?|])>)|<\/(style|title)/i,p)){gt(r,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){gt(r,e);continue}if(!Le&&_(/\/>/i,p)){gt(r,e);continue}Ce&&h([me,pe,he],(e=>{p=v(p,e," ")}));const d=it(e.nodeName);if(yt(d,c,p)){if(ne&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(i);else switch(j.getAttributeType(d,c)){case"TrustedHTML":p=ne.createHTML(p);break;case"TrustedScriptURL":p=ne.createScriptURL(p)}if(p!==m)try{i?e.setAttributeNS(i,r,p):e.setAttribute(r,p),wt(e)?ut(e):u(s.removed)}catch(t){gt(r,e)}}else gt(r,e)}vt(ce.afterSanitizeAttributes,e,null)},Tt=function e(t){let n=null;const s=bt(t);for(vt(ce.beforeSanitizeShadowDOM,t,null);n=s.nextNode();)vt(ce.uponSanitizeShadowNode,n,null),kt(n),_t(n),n.content instanceof l&&e(n.content);vt(ce.afterSanitizeShadowDOM,t,null)};return s.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,r=null,i=null;if(Qe=!e,Qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Et(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!s.isSupported)return e;if(Re||pt(t),s.removed=[],"string"==typeof e&&(Ue=!1),Ue){if(e.nodeName){const t=it(e.nodeName);if(!Ee[t]||_e[t])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)n=ft("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Oe&&!Ce&&!ze&&-1===e.indexOf("<"))return ne&&De?ne.createHTML(e):e;if(n=ft(e),!n)return Oe?null:De?se:""}n&&Ie&&ut(n.firstChild);const c=bt(Ue?e:n);for(;r=c.nextNode();)kt(r),_t(r),r.content instanceof l&&Tt(r.content);if(Ue)return e;if(Oe){if(He)for(i=re.call(n.ownerDocument);n.firstChild;)i.appendChild(n.firstChild);else i=n;return(ke.shadowroot||ke.shadowrootmode)&&(i=le.call(o,i,!0)),i}let m=ze?n.outerHTML:n.innerHTML;return ze&&Ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(K,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Ce&&h([me,pe,he],(e=>{m=v(m,e," ")})),ne&&De?ne.createHTML(m):m},s.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Re=!0},s.clearConfig=function(){lt=null,Re=!1},s.isValidAttribute=function(e,t,n){lt||pt({});const s=it(e),a=it(t);return yt(s,a,n)},s.addHook=function(e,t){"function"==typeof t&&g(ce[e],t)},s.removeHook=function(e,t){if(void 0!==t){const n=d(ce[e],t);return-1===n?void 0:f(ce[e],n,1)[0]}return u(ce[e])},s.removeHooks=function(e){ce[e]=[]},s.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},s}();function ne(e){return te.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}const se=wp.element.createElement;function ae(t){return"effects"===t?se("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},se("path",{d:"M106.283 6.217c8.289 8.29 8.289 91.776 0 100.066-8.29 8.289-91.776 8.289-100.066 0-8.289-8.29-8.289-91.776 0-100.066 8.29-8.289 91.776-8.289 100.066 0zM96.276 16.224c6.632 6.632 6.632 73.42 0 80.052-6.632 6.632-73.42 6.632-80.052 0-6.632-6.632-6.632-73.42 0-80.052 6.632-6.632 73.42-6.632 80.052 0z"}),se("path",{d:"M48.418 58.413H33.304c-.71 0-1.019-.577-.687-1.288l16.637-35.68c.332-.71 1.178-1.287 1.889-1.287h22.962c.711 0 1.02.577.687 1.288l-10.934 23.45h15.74c.796 0 1.14.647.77 1.443L37.959 91.72c-2.42 2.448-5.343.578-3.83-2.666l14.289-30.642z"})):"colors"===t?se("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},se("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradient"===t?se("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},se("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"copy"===t?(0,e.createElement)("svg",{strokeWidth:"1.2",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M19.4 20H9.6a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h9.8a.6.6 0 0 1 .6.6v9.8a.6.6 0 0 1-.6.6Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M15 9V4.6a.6.6 0 0 0-.6-.6H4.6a.6.6 0 0 0-.6.6v9.8a.6.6 0 0 0 .6.6H9",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})):"link"===t?(0,e.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})):"globe"===t?(0,e.createElement)("svg",{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M512 1024q-104 0-199-40.5t-163.5-109T40.5 711 0 512t40.5-199 109-163.5T313 40.5 512 0t199 40.5 163.5 109 109 163.5 40.5 199-40.5 199-109 163.5-163.5 109-199 40.5zM293 293l-48-42q-11 0-26 2.5t-27 2.5q-1-1-18-37Q64 346 64 512q0 3 .5 8t.5 7q6 6 29.5 22.5T128 576h64q3-2 5.5-3t5.5-2q-10-11-29.5-32.5T144 507q4-23 11-69.5t10-69.5q86-36 128-53v-22zm201-163q-14-6-26-11-3-8-4-12-6 19-19 57 4 1 11.5 2t11.5 2h26v-38zm-4 471q-5 5-7 8-12 21-34 64t-33 64q14 21 42.5 64t42.5 64q130 8 197 12 2 25 16 34 91-46 154-127.5T951 601q-19-4-41.5-11t-32.5-9.5-39.5-5T776 579q-12 1-15.5-15.5t-3.5-34-4-18.5q-22-4-89 7.5t-89 7.5q-13 12-85 75zm59-501q-3 20-10.5 60T527 221q5-1 16.5-2.5T560 217q-3-2-7-4 15-5 22-8-17-70-26-105zm116-9q-2 11-2 31t-10 53q1 2 4 4 20-2 67-7 0-21 21-42-38-23-80-39zm125 70q-2 4-7 11 19 3 25 5-12-11-18-16zm27 24q-3 6-9.5 18t-9.5 18q-29 1-78 3l-4-34q-2 1-7 2.5t-8 1.5v49q-21 2-64.5 6t-64.5 6q-7 10-15 22 27 58 41 87-20 5-82 22v34q0 2 1.5 6t2.5 6q17 8 53 24t54 25l22-27q-1-10-5-31.5t-6-32.5q3-2 9.5-5.5t9.5-5.5q27-8 41-11 13 21 36.5 60t29.5 49q9-8 25-24.5t24-24.5q-54-38-71-49 1-8 4-23h37q56 48 115 98 1 0 2-1.5t2-1.5q-4-8-26-49 0-1 3-4l4-4h41q1-1 17-9-34-116-124-200z"})):"info"===t?(0,e.createElement)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-hidden":"true"},(0,e.createElement)("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),(0,e.createElement)("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"})):"wrench"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z"}))):"x"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))):"trash"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6"})):"question"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,e.createElement)("circle",{cx:"12",cy:"12",r:"10"}),(0,e.createElement)("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3M12 17h.01"})):"lock"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,e.createElement)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,e.createElement)("path",{d:"M7 11V7a5 5 0 0110 0v4"})):"template-library"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M21.375 12.625H2.625A.625.625 0 0 1 2 12V2.625C2 2.28 2.28 2 2.625 2h18.75c.345 0 .625.28.625.625V12c0 .345-.28.625-.625.625zM3.25 11.375h17.5V3.25H3.25v8.125zM10.283 22H2.625A.625.625 0 0 1 2 21.375V15.31c0-.345.28-.625.625-.625h7.658c.345 0 .625.28.625.625v6.065c0 .345-.28.625-.625.625zM3.25 20.75h6.407v-4.815H3.25v4.815zm18.125-1.783h-7.892a.625.625 0 0 1 0-1.25h7.892a.625.625 0 0 1 0 1.25zm0 3.033h-7.892a.625.625 0 0 1 0-1.25h7.892a.625.625 0 0 1 0 1.25zm0-6.065h-7.892a.625.625 0 0 1 0-1.25h7.892a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("path",{d:"M12 10.106a.625.625 0 0 1-.625-.625V5.144a.625.625 0 0 1 1.25 0v4.337c0 .346-.28.625-.625.625z"}),(0,e.createElement)("path",{d:"M14.169 7.938H9.831a.625.625 0 0 1 0-1.25h4.337a.625.625 0 0 1 .001 1.25z"})):"accordion"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M21.375 9.067H2.625A.625.625 0 0 1 2 8.441V2.625C2 2.28 2.28 2 2.625 2h18.751c.344 0 .624.28.624.625v5.816c0 .346-.28.626-.625.626zM3.249 7.816H20.75V3.25H3.249v4.566zm18.126 11.032H2.625a.625.625 0 0 1 0-1.251h18.751a.625.625 0 1 1-.001 1.251zm0 3.152H2.625a.625.625 0 0 1 0-1.25h18.751a.625.625 0 1 1-.001 1.25zm0-6.305H2.625a.625.625 0 0 1 0-1.25h18.751a.625.625 0 1 1-.001 1.25zm0-3.152H2.625a.625.625 0 0 1 0-1.25h18.751a.625.625 0 1 1-.001 1.25z"}),(0,e.createElement)("path",{d:"M17.831 6.874a.517.517 0 0 1-.368-.153L15.9 5.159l.737-.737 1.194 1.194 1.194-1.194.737.737-1.563 1.563a.522.522 0 0 1-.368.152z"})):"tabs"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0V0z"}),(0,e.createElement)("path",{d:"M21.38 2H2.62c-.34 0-.62.28-.62.62v18.75c0 .35.28.63.62.63h18.75c.34 0 .62-.28.62-.62V2.62a.608.608 0 0 0-.61-.62zM9.5 3.25h5v2.51h-5V3.25zm11.25 17.5H3.25V3.25h5v3.14c0 .34.28.62.62.62h11.88v13.74zm0-14.99h-5V3.25h5v2.51z"}),(0,e.createElement)("path",{d:"M18.23 13.26H5.77c-.34 0-.62.28-.62.62s.28.62.62.62h12.46c.34 0 .62-.28.62-.62s-.27-.62-.62-.62zm0 3.03H5.77c-.34 0-.62.28-.62.62 0 .34.28.62.62.62h12.46c.34 0 .62-.28.62-.62a.61.61 0 0 0-.62-.62zM5.14 10.85c0 .34.28.62.62.62h12.46c.34 0 .62-.28.62-.62s-.28-.62-.62-.62H5.77a.613.613 0 0 0-.63.62z"})):"horizontal-tabs"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M83.91 48.67H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84zm0 15.17H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84zm0 15.17H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84zm0-45.51H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84z"}),(0,e.createElement)("path",{d:"M98.08 0H1.92C.86 0 0 .86 0 1.92v96.15C0 99.14.86 100 1.92 100h96.15c1.06 0 1.92-.86 1.92-1.92V1.92C100 .86 99.14 0 98.08 0zm-1.93 15.59-28.2.09V3.85h28.2v11.74zM35.9 3.85h28.21v11.84l-28.21.08V3.85zM3.85 96.15V3.85h28.21V17.7c0 .51.2 1 .57 1.36.36.36.85.56 1.36.56H34l62.17-.19v76.72H3.85z"})):"vertical-tabs"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M33.41 52.51h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0 15.17h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0 15.18h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0-45.52h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0-15.17h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84z"}),(0,e.createElement)("path",{d:"M98.08 0H1.92C.86 0 0 .86 0 1.92v96.15C0 99.14.86 100 1.92 100h96.15c1.06 0 1.92-.86 1.92-1.92V1.92C100 .86 99.14 0 98.08 0zM3.85 52.12h12.52l-.05 19.97H3.85V52.12zm12.53-3.84H3.85V27.99h12.58l-.05 20.29zM3.85 75.94H16.3l-.05 20.21H3.85V75.94zm92.3 20.21H20.09l.19-70.08a1.932 1.932 0 0 0-1.92-1.93H3.85V3.85h92.31v92.3z"})):"button-tabs"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M16.09 55.55h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84zm0 14.22h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84zm0 14.23h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84zm0-42.67h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84z"}),(0,e.createElement)("path",{d:"M98.08 21.47H1.92C.86 21.47 0 22.33 0 23.4v74.68C0 99.14.86 100 1.92 100h96.15c1.06 0 1.92-.86 1.92-1.92V23.4c.01-1.07-.85-1.93-1.91-1.93zm-1.93 74.68H3.85V25.32h92.31v70.83zM1.92 14.9l25 .05c.48 0 .95-.19 1.29-.53.34-.34.54-.81.54-1.29V1.83C28.75.82 27.93 0 26.92 0h-25C.91 0 .1.82.1 1.83v11.24c0 1.01.81 1.82 1.82 1.83zM3.75 3.66H25.1v7.63l-21.35-.05V3.66zM37.5 14.9l25 .05c.48 0 .95-.19 1.29-.53.34-.34.54-.81.54-1.29V1.83C64.33.82 63.51 0 62.5 0h-25c-1.01 0-1.83.82-1.83 1.83v11.24c0 1.01.82 1.82 1.83 1.83zm1.83-11.24h21.35v7.63l-21.35-.05V3.66zM73.07 14.9l25 .05c.48 0 .95-.19 1.29-.53.34-.34.54-.81.54-1.29V1.83C99.9.82 99.09 0 98.08 0h-25c-1.01 0-1.83.82-1.83 1.83v11.24c0 1.01.82 1.82 1.82 1.83zM74.9 3.66h21.35v7.63l-21.35-.05V3.66z"})):"vertical-dots"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("circle",{cx:"128",cy:"60",r:"16"}),(0,e.createElement)("circle",{cx:"128",cy:"128",r:"16"}),(0,e.createElement)("circle",{cx:"128",cy:"196",r:"16"})):"generateblocks"===t?(0,e.createElement)("svg",{viewBox:"0 0 50 60.12",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6.686 31.622V18.918a.077.077 0 0 1 .05-.072l6.5-2.313 6.5-2.313 9.682-3.445L39.1 7.33a.067.067 0 0 0 .036-.028.074.074 0 0 0 .014-.044V.076a.077.077 0 0 0-.032-.062.076.076 0 0 0-.069-.009l-13 4.625-13 4.625-6.5 2.313-6.5 2.313a.067.067 0 0 0-.036.028.097.097 0 0 0-.013.046V52.067c0 .026.013.048.032.062s.044.018.069.009l3.267-1.163 3.267-1.163c.015-.005.028-.015.036-.028s.014-.028.014-.044V37.999l.001-6.377c-.001 0 0 0 0 0z"}),(0,e.createElement)("path",{d:"m23.949 29.976 13-4.625 13-4.625c.015-.005.028-.015.036-.028s.015-.028.015-.044V8.056a.077.077 0 0 0-.032-.062.076.076 0 0 0-.069-.009l-13 4.625-13 4.625-6.5 2.313-6.5 2.313a.067.067 0 0 0-.036.028.074.074 0 0 0-.014.044V60.045c0 .026.013.048.032.062a.076.076 0 0 0 .069.009l6.475-2.304 6.475-2.304 6.525-2.322 6.525-2.322 6.5-2.313 6.5-2.313c.015-.005.028-.015.036-.028s.014-.025.014-.041V27.193a.077.077 0 0 0-.032-.062.076.076 0 0 0-.069-.009l-6.45 2.295L37 31.711a.067.067 0 0 0-.036.028.074.074 0 0 0-.014.044v6.272a.077.077 0 0 1-.05.072l-6.45 2.295L24 42.715a.075.075 0 0 1-.101-.071V30.046c0-.016.005-.031.014-.044a.08.08 0 0 1 .036-.026z"})):"clipboard"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("line",{x1:"96",y1:"152",x2:"160",y2:"152",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,e.createElement)("line",{x1:"96",y1:"120",x2:"160",y2:"120",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,e.createElement)("path",{d:"M160,40h40a8,8,0,0,1,8,8V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,e.createElement)("path",{d:"M88,72V64a40,40,0,0,1,80,0v8Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})):void 0}var oe=n(4213),re=n.n(oe);const ie=window.wp.i18n,le=window.wp.components,ce=window.wp.element,me=window.wp.apiFetch;var pe=n.n(me);async function he(e){try{const t=await fetch(e);return ne(await t.text())}catch(e){return console.error("Error fetching SVG:",e),null}}class de extends ce.Component{constructor(){super(...arguments),this.state={isAPILoaded:!1,isAPISaving:!1,icons:generateBlocksProSettings.icons,showImportField:!1}}componentDidMount(){this.setState({isAPILoaded:!0})}updateSettings(e){this.setState({isAPISaving:!0});const t=e.target.nextElementSibling;pe()({path:"/generateblocks-pro/v1/icon-settings",method:"POST",data:{settings:this.state.icons}}).then((e=>{this.setState({isAPISaving:!1}),t.classList.add("gblocks-action-message--show"),t.textContent=e.response,e.success&&e.response?setTimeout((function(){t.classList.remove("gblocks-action-message--show")}),3e3):t.classList.add("gblocks-action-message--error")}))}render(){if(!this.state.isAPILoaded)return(0,e.createElement)(le.Placeholder,{className:"gblocks-settings-placeholder"},(0,e.createElement)(le.Spinner,null));let t="";return(0,e.createElement)(ce.Fragment,null,(0,e.createElement)("div",{className:"generateblocks-settings-main"},(0,e.createElement)(le.PanelBody,{title:(0,ie.__)("Icons","generateblocks-pro")},(0,e.createElement)("div",{className:"gblocks-dashboard-panel-row-wrapper"},(0,e.createElement)(le.PanelRow,null,(0,e.createElement)(le.BaseControl,{id:"gblocks-asset-library-control",className:"gblocks-asset-library-control"},(0,e.createElement)(le.Notice,{className:"gblocks-assets-safe-svg-notice",isDismissible:!1,status:"info"},(0,ie.__)("Icons are static elements that are added to your content. Changes here will not affect your existing icons.","generateblocks-pro")),(0,e.createElement)(le.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},this.state.icons.map(((n,s)=>(0,e.createElement)(ce.Fragment,{key:s},(0,e.createElement)(le.PanelBody,{title:this.state.icons[s].group?this.state.icons[s].group:(0,ie.__)("Group","generateblocks-pro"),initialOpen:!1},(0,e.createElement)(le.TextControl,{className:"gblocks-group-name",type:"text",label:(0,ie.__)("Group Name","generateblocks-pro"),value:this.state.icons[s].group,onChange:e=>{const t=[...this.state.icons];t[s]={...t[s],group:e},this.setState({icons:t})}}),(0,e.createElement)(le.Button,{className:"gblocks-delete-asset-group is-secondary is-small",onClick:()=>{if(window.confirm((0,ie.__)("This will permanently delete all icons in this group.","generateblocks-pro"))){const e=[...this.state.icons];e.splice(s,1),this.setState({icons:e})}}},(0,ie.__)("Delete Group","generateblocks-pro")),void 0!==this.state.icons[s].icons&&this.state.icons[s].icons.length>0&&(0,e.createElement)(le.Button,{className:"gblocks-export-asset-group is-secondary is-small",onClick:()=>{pe()({path:"/generateblocks-pro/v1/export-asset-group",method:"POST",data:{assetType:"icons",groupName:this.state.icons[s].group,assets:this.state.icons[s].icons}}).then((e=>{const t="group-"+this.state.icons[s].group+".json",n=new Blob([JSON.stringify(e.response)],{type:"application/json",name:t});re()(n,t)}))}},(0,ie.__)("Export Group","generateblocks-pro")),!!this.state.icons[s].group&&(0,e.createElement)(le.BaseControl,{className:"gblocks-asset-items"},this.state.icons[s].icons&&this.state.icons[s].icons.map(((n,a)=>(0,e.createElement)(ce.Fragment,{key:a},(0,e.createElement)("div",{className:"gblocks-asset-item"},(0,e.createElement)("div",{className:"gblocks-asset-name-area"},(0,e.createElement)("div",{className:"gblocks-asset-name-upload"},(0,e.createElement)(le.TextControl,{type:"text",placeholder:(0,ie.__)("Name","generateblocks-pro"),value:this.state.icons[s].icons[a].name||"",onChange:e=>{const t=[...this.state.icons];t[s].icons[a].name=e,this.setState({icons:t})}}),generateBlocksProSettings.hasSVGSupport&&(0,e.createElement)(ce.Fragment,null,(0,e.createElement)(le.Tooltip,{text:(0,ie.__)("Upload an SVG file","generateblocks-pro")},(0,e.createElement)(le.Button,{className:"gblocks-upload-svg is-secondary",onClick:e=>{const n=e.target.closest(".gblocks-asset-item"),o=[...this.state.icons],r=this.state.icons[s].icons[a].name;t=wp.media({title:(0,ie.__)("Upload SVG","generateblocks-pro"),multiple:!1,library:{type:"image/svg+xml"},button:{text:(0,ie.__)("Insert SVG","generateblocks-pro")}}),t.on("select",(async()=>{const e=t.state().get("selection").first().toJSON();!r&&e.name&&(o[s].icons[a].name=e.name),n.classList.add("gblocks-asset-loading"),n.querySelector(".gblocks-asset-spinner").classList.add("gblocks-asset-show-spinner");const i=await he(e.url);o[s].icons[a].icon=i,this.setState({icons:o}),n.classList.remove("gblocks-asset-loading"),n.querySelector(".gblocks-asset-spinner").classList.remove("gblocks-asset-show-spinner")})),t.open()}},(0,ie.__)("Browse","generateblocks-pro"))),(0,e.createElement)("span",{className:"gblocks-asset-spinner"},(0,e.createElement)(le.Spinner,null)))),""!==this.state.icons[s].icons[a].icon&&(0,e.createElement)("span",{className:"gblocks-asset-preview",dangerouslySetInnerHTML:{__html:ne(this.state.icons[s].icons[a].icon)}})),(0,e.createElement)(le.TextareaControl,{className:"gblocks-asset-textarea-control",label:(0,ie.__)("SVG HTML","generateblocks-pro"),value:this.state.icons[s].icons[a].icon||"",onChange:e=>{const t=[...this.state.icons];t[s].icons[a].icon=ne(e),this.setState({icons:t})}}),(0,e.createElement)(le.Tooltip,{text:(0,ie.__)("Delete Icon","generateblocks-pro")},(0,e.createElement)(le.Button,{className:"gblocks-delete-asset",onClick:()=>{if(window.confirm((0,ie.__)("This will permanently delete this icon.","generateblocks-pro"))){const e=[...this.state.icons];e[s].icons.splice(a,1),this.setState({icons:e})}},icon:ae("x")})))))),(0,e.createElement)("div",{className:"gblocks-add-new-asset"},(0,e.createElement)(le.Button,{isSecondary:!0,onClick:()=>{const e=[...this.state.icons];e[s].icons.push({name:"",icon:""}),this.setState({icons:e})}},(0,ie.__)("Add Icon","generateblocks-pro"))))))))))),(0,e.createElement)(le.PanelRow,{className:"gblocks-asset-library-group-actions"},(0,e.createElement)("div",{className:"gblocks-add-new-asset-group"},(0,e.createElement)(le.Button,{isSecondary:!0,onClick:()=>{const e=[...this.state.icons];e.push({group:"",icons:[]}),this.setState({icons:e})}},(0,ie.__)("Add Group","generateblocks-pro"))),(0,e.createElement)("div",{className:"gblocks-import-asset-group"},!this.state.showImportField&&(0,e.createElement)(le.Button,{isSecondary:!0,onClick:()=>this.setState({showImportField:!0})},(0,ie.__)("Import Group","generateblocks-pro")),this.state.showImportField&&(0,e.createElement)("input",{type:"file",accept:".json",onChange:e=>{const t=e.target.nextElementSibling,n=new FileReader;n.onloadend=()=>{let e=n.result;if(e=JSON.parse(e),e&&"icons"===e.type){const n=[...this.state.icons];n.push({group:e.group,icons:e.assets}),this.setState({icons:n}),t.classList.add("gblocks-action-message--show"),t.textContent=(0,ie.__)("Group imported.","generateblocks-pro"),setTimeout((function(){t.classList.remove("gblocks-action-message--show")}),3e3)}e||(t.classList.add("gblocks-action-message--show"),t.classList.add("gblocks-action-message--error"),t.textContent=(0,ie.__)("File not valid.","generateblocks-pro"),setTimeout((function(){t.classList.remove("gblocks-action-message--show"),t.classList.remove("gblocks-action-message--error")}),3e3)),"icons"!==e.type&&(t.classList.add("gblocks-action-message--show"),t.classList.add("gblocks-action-message--error"),t.textContent=(0,ie.__)("Wrong asset type.","generateblocks-pro"),setTimeout((function(){t.classList.remove("gblocks-action-message--show"),t.classList.remove("gblocks-action-message--error")}),3e3))},n.readAsText(e.target.files[0]),e.target.value="",this.setState({showImportField:!1})}}),(0,e.createElement)("span",{className:"gblocks-action-message"}))),(0,e.createElement)(le.PanelRow,{className:"gblocks-asset-library-actions"},(0,e.createElement)("div",{className:"gblocks-action-button"},(0,e.createElement)(le.Button,{isPrimary:!0,disabled:this.state.isAPISaving,onClick:e=>this.updateSettings(e)},this.state.isAPISaving&&(0,e.createElement)(le.Spinner,null),!this.state.isAPISaving&&(0,ie.__)("Save Icons","generateblocks-pro")),(0,e.createElement)("span",{className:"gblocks-action-message"})))))))}}window.addEventListener("DOMContentLoaded",(()=>{(0,ce.render)((0,e.createElement)(de,null),document.getElementById("gblocks-icon-library"))}));class ue extends ce.Component{constructor(){super(...arguments),this.state={isAPILoaded:!1,isAPISaving:!1,shapes:generateBlocksProSettings.shapes,showImportField:!1}}componentDidMount(){this.setState({isAPILoaded:!0})}updateSettings(e){this.setState({isAPISaving:!0});const t=e.target.nextElementSibling;pe()({path:"/generateblocks-pro/v1/shape-settings",method:"POST",data:{settings:this.state.shapes}}).then((e=>{this.setState({isAPISaving:!1}),t.classList.add("gblocks-action-message--show"),t.textContent=e.response,e.success&&e.response?setTimeout((function(){t.classList.remove("gblocks-action-message--show")}),3e3):t.classList.add("gblocks-action-message--error")}))}render(){if(!this.state.isAPILoaded)return(0,e.createElement)(le.Placeholder,{className:"gblocks-settings-placeholder"},(0,e.createElement)(le.Spinner,null));let t="";return(0,e.createElement)(ce.Fragment,null,(0,e.createElement)("div",{className:"generateblocks-settings-main"},(0,e.createElement)(le.PanelBody,{title:(0,ie.__)("Shapes")},(0,e.createElement)("div",{className:"gblocks-dashboard-panel-row-wrapper"},(0,e.createElement)(le.PanelRow,null,(0,e.createElement)(le.BaseControl,{id:"gblocks-asset-library-control",className:"gblocks-asset-library-control"},(0,e.createElement)(le.Notice,{className:"gblocks-assets-safe-svg-notice",isDismissible:!1,status:"info"},(0,ie.__)("Shapes are dynamic elements that will update automatically on your website if altered/removed here.","generateblocks-pro")),(0,e.createElement)(le.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},this.state.shapes.map(((n,s)=>(0,e.createElement)(ce.Fragment,{key:s},(0,e.createElement)(le.PanelBody,{title:this.state.shapes[s].group?this.state.shapes[s].group:(0,ie.__)("Group","generateblocks-pro"),initialOpen:!1},(0,e.createElement)(le.TextControl,{className:"gblocks-group-name",type:"text",label:(0,ie.__)("Group Name","generateblocks-pro"),value:this.state.shapes[s].group,onChange:e=>{const t=[...this.state.shapes];t[s]={...t[s],group:e},this.setState({shapes:t})}}),(0,e.createElement)(le.Button,{className:"gblocks-delete-asset-group is-secondary is-small",onClick:()=>{if(window.confirm((0,ie.__)("This will permanently delete all shapes in this group and remove them from the front-end of your website.","generateblocks-pro"))){const e=[...this.state.shapes];e.splice(s,1),this.setState({shapes:e})}}},(0,ie.__)("Delete Group","generateblocks-pro")),void 0!==this.state.shapes[s].shapes&&this.state.shapes[s].shapes.length>0&&(0,e.createElement)(le.Button,{className:"gblocks-export-asset-group is-secondary is-small",onClick:()=>{pe()({path:"/generateblocks-pro/v1/export-asset-group",method:"POST",data:{assetType:"shapes",groupName:this.state.shapes[s].group,assets:this.state.shapes[s].shapes}}).then((e=>{const t="group-"+this.state.shapes[s].group+".json",n=new Blob([JSON.stringify(e.response)],{type:"application/json",name:t});re()(n,t)}))}},(0,ie.__)("Export Group","generateblocks-pro")),!!this.state.shapes[s].group&&(0,e.createElement)(le.BaseControl,{className:"gblocks-asset-items"},this.state.shapes[s].shapes&&this.state.shapes[s].shapes.map(((n,a)=>(0,e.createElement)(ce.Fragment,{key:a},(0,e.createElement)("div",{className:"gblocks-asset-item"},(0,e.createElement)("div",{className:"gblocks-asset-name-area"},(0,e.createElement)("div",{className:"gblocks-asset-name-upload"},(0,e.createElement)(le.TextControl,{type:"text",placeholder:(0,ie.__)("Name","generateblocks-pro"),value:this.state.shapes[s].shapes[a].name||"",onChange:e=>{const t=[...this.state.shapes];t[s].shapes[a].name=e,this.setState({shapes:t})}}),generateBlocksProSettings.hasSVGSupport&&(0,e.createElement)(ce.Fragment,null,(0,e.createElement)(le.Tooltip,{text:(0,ie.__)("Upload an SVG file","generateblocks-pro")},(0,e.createElement)(le.Button,{className:"gblocks-upload-svg is-secondary",onClick:e=>{const n=e.target.closest(".gblocks-asset-item"),o=[...this.state.shapes],r=this.state.shapes[s].shapes[a].name;t=wp.media({title:(0,ie.__)("Upload SVG","generateblocks-pro"),multiple:!1,library:{type:"image/svg+xml"},button:{text:(0,ie.__)("Insert SVG","generateblocks-pro")}}),t.on("select",(async()=>{const e=t.state().get("selection").first().toJSON();!r&&e.name&&(o[s].shapes[a].name=e.name),n.classList.add("gblocks-asset-loading"),n.querySelector(".gblocks-asset-spinner").classList.add("gblocks-asset-show-spinner");let i=await he(e.url);i.toLowerCase().includes('preserveaspectratio="none"')||(i=i.replace("<svg",'<svg preserveAspectRatio="none"')),o[s].shapes[a].shape=i,this.setState({shapes:o}),n.classList.remove("gblocks-asset-loading"),n.querySelector(".gblocks-asset-spinner").classList.remove("gblocks-asset-show-spinner")})),t.open()}},(0,ie.__)("Browse","generateblocks-pro"))),(0,e.createElement)("span",{className:"gblocks-asset-spinner"},(0,e.createElement)(le.Spinner,null)))),""!==this.state.shapes[s].shapes[a].shape&&(0,e.createElement)("span",{className:"gblocks-asset-preview",dangerouslySetInnerHTML:{__html:ne(this.state.shapes[s].shapes[a].shape)}})),(0,e.createElement)(le.TextareaControl,{className:"gblocks-asset-textarea-control",label:(0,ie.__)("SVG HTML","generateblocks-pro"),value:this.state.shapes[s].shapes[a].shape||"",onChange:e=>{const t=[...this.state.shapes];e.toLowerCase().includes('preserveaspectratio="none"')||(e=e.replace("<svg",'<svg preserveAspectRatio="none"')),t[s].shapes[a].shape=ne(e),this.setState({shapes:t})}}),(0,e.createElement)(le.Tooltip,{text:(0,ie.__)("Delete Shape","generateblocks-pro")},(0,e.createElement)(le.Button,{className:"gblocks-delete-asset",onClick:()=>{if(window.confirm((0,ie.__)("This will permanently delete this shape and remove it from the front-end of your website.","generateblocks-pro"))){const e=[...this.state.shapes];e[s].shapes.splice(a,1),this.setState({shapes:e})}},icon:ae("x")})))))),(0,e.createElement)("div",{className:"gblocks-add-new-asset"},(0,e.createElement)(le.Button,{isSecondary:!0,onClick:()=>{const e=[...this.state.shapes];e[s].shapes.push({name:"",shape:""}),this.setState({shapes:e})}},(0,ie.__)("Add Shape","generateblocks-pro"))))))))))),(0,e.createElement)(le.PanelRow,{className:"gblocks-asset-library-group-actions"},(0,e.createElement)("div",{className:"gblocks-add-new-asset-group"},(0,e.createElement)(le.Button,{isSecondary:!0,onClick:()=>{const e=[...this.state.shapes];e.push({group:"",shapes:[]}),this.setState({shapes:e})}},(0,ie.__)("Add Group","generateblocks-pro"))),(0,e.createElement)("div",{className:"gblocks-import-asset-group"},!this.state.showImportField&&(0,e.createElement)(le.Button,{isSecondary:!0,onClick:()=>this.setState({showImportField:!0})},(0,ie.__)("Import Group","generateblocks-pro")),this.state.showImportField&&(0,e.createElement)("input",{type:"file",accept:".json",onChange:e=>{const t=e.target.nextElementSibling,n=new FileReader;n.onloadend=()=>{let e=n.result;if(e=JSON.parse(e),e&&"shapes"===e.type){const n=[...this.state.shapes];n.push({group:e.group,shapes:e.assets}),this.setState({shapes:n}),t.classList.add("gblocks-action-message--show"),t.textContent=(0,ie.__)("Group imported.","generateblocks-pro"),setTimeout((function(){t.classList.remove("gblocks-action-message--show")}),3e3)}e||(t.classList.add("gblocks-action-message--show"),t.classList.add("gblocks-action-message--error"),t.textContent=(0,ie.__)("File not valid.","generateblocks-pro"),setTimeout((function(){t.classList.remove("gblocks-action-message--show"),t.classList.remove("gblocks-action-message--error")}),3e3)),"shapes"!==e.type&&(t.classList.add("gblocks-action-message--show"),t.classList.add("gblocks-action-message--error"),t.textContent=(0,ie.__)("Wrong asset type.","generateblocks-pro"),setTimeout((function(){t.classList.remove("gblocks-action-message--show"),t.classList.remove("gblocks-action-message--error")}),3e3))},n.readAsText(e.target.files[0]),e.target.value="",this.setState({showImportField:!1})}}),(0,e.createElement)("span",{className:"gblocks-action-message"}))),(0,e.createElement)(le.PanelRow,{className:"gblocks-asset-library-actions"},(0,e.createElement)("div",{className:"gblocks-action-button"},(0,e.createElement)(le.Button,{isPrimary:!0,disabled:this.state.isAPISaving,onClick:e=>this.updateSettings(e)},this.state.isAPISaving&&(0,e.createElement)(le.Spinner,null),!this.state.isAPISaving&&(0,ie.__)("Save Shapes","generateblocks-pro")),(0,e.createElement)("span",{className:"gblocks-action-message"})))))))}}window.addEventListener("DOMContentLoaded",(()=>{(0,ce.render)((0,e.createElement)(ue,null),document.getElementById("gblocks-shape-library"))}))})()})();