AlkantarClanX12

Your IP : 18.225.175.230


Current Path : /home/thanudqk/siamfreetour.com/wp-content/plugins/generateblocks/dist/
Upload File :
Current File : /home/thanudqk/siamfreetour.com/wp-content/plugins/generateblocks/dist/blocks.js

!function(){var e={184:function(e,t){var a;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===r){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var o in a)l.call(a,o)&&a[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,a){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,a)}function a(e,l,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,a,l){var n=[null];n.push.apply(n,a);var r=new(Function.bind.apply(e,n));return l&&t(r,l.prototype),r},a.apply(null,arguments)}function l(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}var r=Object.hasOwnProperty,i=Object.setPrototypeOf,o=Object.isFrozen,s=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,g=Object.seal,d=Object.create,p="undefined"!=typeof Reflect&&Reflect,b=p.apply,h=p.construct;b||(b=function(e,t,a){return e.apply(t,a)}),u||(u=function(e){return e}),g||(g=function(e){return e}),h||(h=function(e,t){return a(e,l(t))});var m,f=L(Array.prototype.forEach),k=L(Array.prototype.pop),v=L(Array.prototype.push),y=L(String.prototype.toLowerCase),w=L(String.prototype.toString),C=L(String.prototype.match),_=L(String.prototype.replace),E=L(String.prototype.indexOf),x=L(String.prototype.trim),S=L(RegExp.prototype.test),T=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return h(m,t)});function L(e){return function(t){for(var a=arguments.length,l=new Array(a>1?a-1:0),n=1;n<a;n++)l[n-1]=arguments[n];return b(e,t,l)}}function M(e,t,a){var l;a=null!==(l=a)&&void 0!==l?l:y,i&&i(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var s=a(r);s!==r&&(o(t)||(t[n]=s),r=s)}e[r]=!0}return e}function B(e){var t,a=d(null);for(t in e)!0===b(r,e,[t])&&(a[t]=e[t]);return a}function I(e,t){for(;null!==e;){var a=c(e,t);if(a){if(a.get)return L(a.get);if("function"==typeof a.value)return L(a.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var O=u(["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"]),A=u(["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"]),R=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=u(["animate","color-profile","cursor","discard","fedropshadow","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"]),D=u(["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"]),N=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=u(["#text"]),H=u(["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","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","xmlns","slot"]),P=u(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),V=u(["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"]),j=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=g(/<%[\w\W]*|[\w\W]*%>/gm),U=g(/\${[\w\W]*}/gm),Z=g(/^data-[\-\w.\u00B7-\uFFFF]/),q=g(/^aria-[\-\w]+$/),$=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=g(/^html$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return t(e)};if(n.version="2.4.7",n.removed=[],!a||!a.document||9!==a.document.nodeType)return n.isSupported=!1,n;var r=a.document,i=a.document,o=a.DocumentFragment,s=a.HTMLTemplateElement,c=a.Node,g=a.Element,d=a.NodeFilter,p=a.NamedNodeMap,b=void 0===p?a.NamedNodeMap||a.MozNamedAttrMap:p,h=a.HTMLFormElement,m=a.DOMParser,L=a.trustedTypes,X=g.prototype,ee=I(X,"cloneNode"),te=I(X,"nextSibling"),ae=I(X,"childNodes"),le=I(X,"parentNode");if("function"==typeof s){var ne=i.createElement("template");ne.content&&ne.content.ownerDocument&&(i=ne.content.ownerDocument)}var re=function(t,a){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var l=null,n="data-tt-policy-suffix";a.currentScript&&a.currentScript.hasAttribute(n)&&(l=a.currentScript.getAttribute(n));var r="dompurify"+(l?"#"+l:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(L,r),ie=re?re.createHTML(""):"",oe=i,se=oe.implementation,ce=oe.createNodeIterator,ue=oe.createDocumentFragment,ge=oe.getElementsByTagName,de=r.importNode,pe={};try{pe=B(i).documentMode?i.documentMode:{}}catch(e){}var be={};n.isSupported="function"==typeof le&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he,me,fe=G,ke=W,ve=U,ye=Z,we=q,Ce=K,_e=J,Ee=$,xe=null,Se=M({},[].concat(l(O),l(A),l(R),l(D),l(F))),Te=null,Le=M({},[].concat(l(H),l(P),l(V),l(j))),Me=Object.seal(Object.create(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}})),Be=null,Ie=null,Oe=!0,Ae=!0,Re=!1,ze=!0,De=!1,Ne=!1,Fe=!1,He=!1,Pe=!1,Ve=!1,je=!1,Ge=!0,We=!1,Ue=!0,Ze=!1,qe={},$e=null,Ke=M({},["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"]),Je=null,Ye=M({},["audio","video","img","source","image","track"]),Qe=null,Xe=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",lt=at,nt=!1,rt=null,it=M({},[et,tt,at],w),ot=["application/xhtml+xml","text/html"],st=null,ct=i.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},gt=function(t){st&&st===t||(t&&"object"===e(t)||(t={}),t=B(t),he=he=-1===ot.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?w:y,xe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):Se,Te="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Le,rt="ALLOWED_NAMESPACES"in t?M({},t.ALLOWED_NAMESPACES,w):it,Qe="ADD_URI_SAFE_ATTR"in t?M(B(Xe),t.ADD_URI_SAFE_ATTR,me):Xe,Je="ADD_DATA_URI_TAGS"in t?M(B(Ye),t.ADD_DATA_URI_TAGS,me):Ye,$e="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):Ke,Be="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Ie="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ze=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,De=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Pe=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,je=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Ze=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,lt=t.NAMESPACE||at,Me=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ae=!1),Ve&&(Pe=!0),qe&&(xe=M({},l(F)),Te=[],!0===qe.html&&(M(xe,O),M(Te,H)),!0===qe.svg&&(M(xe,A),M(Te,P),M(Te,j)),!0===qe.svgFilters&&(M(xe,R),M(Te,P),M(Te,j)),!0===qe.mathMl&&(M(xe,D),M(Te,V),M(Te,j))),t.ADD_TAGS&&(xe===Se&&(xe=B(xe)),M(xe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Te===Le&&(Te=B(Te)),M(Te,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Qe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&($e===Ke&&($e=B($e)),M($e,t.FORBID_CONTENTS,me)),Ue&&(xe["#text"]=!0),Ne&&M(xe,["html","head","body"]),xe.table&&(M(xe,["tbody"]),delete Be.tbody),u&&u(t),st=t)},dt=M({},["mi","mo","mn","ms","mtext"]),pt=M({},["foreignobject","desc","title","annotation-xml"]),bt=M({},["title","style","font","a","script"]),ht=M({},A);M(ht,R),M(ht,z);var mt=M({},D);M(mt,N);var ft=function(e){v(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},kt=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Pe||Ve)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,a;if(He)e="<remove></remove>"+e;else{var l=C(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===he&&lt===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=re?re.createHTML(e):e;if(lt===at)try{t=(new m).parseFromString(n,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(lt,"template",null);try{t.documentElement.innerHTML=nt?ie:n}catch(e){}}var r=t.body||t.documentElement;return e&&a&&r.insertBefore(i.createTextNode(a),r.childNodes[0]||null),lt===at?ge.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:r},yt=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},wt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ct=function(e,t,a){be[e]&&f(be[e],(function(e){e.call(n,t,a,st)}))},_t=function(e){var t,a;if(Ct("beforeSanitizeElements",e,null),(a=e)instanceof h&&("string"!=typeof a.nodeName||"string"!=typeof a.textContent||"function"!=typeof a.removeChild||!(a.attributes instanceof b)||"function"!=typeof a.removeAttribute||"function"!=typeof a.setAttribute||"string"!=typeof a.namespaceURI||"function"!=typeof a.insertBefore||"function"!=typeof a.hasChildNodes))return ft(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var l=me(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:l,allowedTags:xe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===l&&S(/<template/i,e.innerHTML))return ft(e),!0;if(!xe[l]||Be[l]){if(!Be[l]&&xt(l)){if(Me.tagNameCheck instanceof RegExp&&S(Me.tagNameCheck,l))return!1;if(Me.tagNameCheck instanceof Function&&Me.tagNameCheck(l))return!1}if(Ue&&!$e[l]){var r=le(e)||e.parentNode,i=ae(e)||e.childNodes;if(i&&r)for(var o=i.length-1;o>=0;--o)r.insertBefore(ee(i[o],!0),te(e))}return ft(e),!0}return e instanceof g&&!function(e){var t=le(e);t&&t.tagName||(t={namespaceURI:lt,tagName:"template"});var a=y(e.tagName),l=y(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===at?"svg"===a:t.namespaceURI===et?"svg"===a&&("annotation-xml"===l||dt[l]):Boolean(ht[a]):e.namespaceURI===et?t.namespaceURI===at?"math"===a:t.namespaceURI===tt?"math"===a&&pt[l]:Boolean(mt[a]):e.namespaceURI===at?!(t.namespaceURI===tt&&!pt[l])&&!(t.namespaceURI===et&&!dt[l])&&!mt[a]&&(bt[a]||!ht[a]):!("application/xhtml+xml"!==he||!rt[e.namespaceURI]))}(e)?(ft(e),!0):"noscript"!==l&&"noembed"!==l&&"noframes"!==l||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=_(t,fe," "),t=_(t,ke," "),t=_(t,ve," "),e.textContent!==t&&(v(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct("afterSanitizeElements",e,null),!1):(ft(e),!0)},Et=function(e,t,a){if(Ge&&("id"===t||"name"===t)&&(a in i||a in ct))return!1;if(Ae&&!Ie[t]&&S(ye,t));else if(Oe&&S(we,t));else if(!Te[t]||Ie[t]){if(!(xt(e)&&(Me.tagNameCheck instanceof RegExp&&S(Me.tagNameCheck,e)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(e))&&(Me.attributeNameCheck instanceof RegExp&&S(Me.attributeNameCheck,t)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(t))||"is"===t&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&S(Me.tagNameCheck,a)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(a))))return!1}else if(Qe[t]);else if(S(Ee,_(a,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(a,"data:")||!Je[e])if(Re&&!S(Ce,_(a,_e,"")));else if(a)return!1;return!0},xt=function(e){return e.indexOf("-")>0},St=function(t){var a,l,r,i;Ct("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(i=o.length;i--;){var c=a=o[i],u=c.name,g=c.namespaceURI;if(l="value"===u?a.value:x(a.value),r=me(u),s.attrName=r,s.attrValue=l,s.keepAttr=!0,s.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",t,s),l=s.attrValue,!s.forceKeepAttr&&(kt(u,t),s.keepAttr))if(ze||!S(/\/>/i,l)){De&&(l=_(l,fe," "),l=_(l,ke," "),l=_(l,ve," "));var d=me(t.nodeName);if(Et(d,r,l)){if(!We||"id"!==r&&"name"!==r||(kt(u,t),l="user-content-"+l),re&&"object"===e(L)&&"function"==typeof L.getAttributeType)if(g);else switch(L.getAttributeType(d,r)){case"TrustedHTML":l=re.createHTML(l);break;case"TrustedScriptURL":l=re.createScriptURL(l)}try{g?t.setAttributeNS(g,u,l):t.setAttribute(u,l),k(n.removed)}catch(e){}}}else kt(u,t)}Ct("afterSanitizeAttributes",t,null)}},Tt=function e(t){var a,l=yt(t);for(Ct("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ct("uponSanitizeShadowNode",a,null),_t(a)||(a.content instanceof o&&e(a.content),St(a));Ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var l,i,s,u,g,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!wt(t)){if("function"!=typeof t.toString)throw T("toString is not a function");if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof t)return a.toStaticHTML(t);if(wt(t))return a.toStaticHTML(t.outerHTML)}return t}if(Fe||gt(d),n.removed=[],"string"==typeof t&&(Ze=!1),Ze){if(t.nodeName){var p=me(t.nodeName);if(!xe[p]||Be[p])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(i=(l=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?l=i:l.appendChild(i);else{if(!Pe&&!De&&!Ne&&-1===t.indexOf("<"))return re&&je?re.createHTML(t):t;if(!(l=vt(t)))return Pe?null:je?ie:""}l&&He&&ft(l.firstChild);for(var b=yt(Ze?t:l);s=b.nextNode();)3===s.nodeType&&s===u||_t(s)||(s.content instanceof o&&Tt(s.content),St(s),u=s);if(u=null,Ze)return t;if(Pe){if(Ve)for(g=ue.call(l.ownerDocument);l.firstChild;)g.appendChild(l.firstChild);else g=l;return(Te.shadowroot||Te.shadowrootmod)&&(g=de.call(r,g,!0)),g}var h=Ne?l.outerHTML:l.innerHTML;return Ne&&xe["!doctype"]&&l.ownerDocument&&l.ownerDocument.doctype&&l.ownerDocument.doctype.name&&S(Y,l.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+l.ownerDocument.doctype.name+">\n"+h),De&&(h=_(h,fe," "),h=_(h,ke," "),h=_(h,ve," ")),re&&je?re.createHTML(h):h},n.setConfig=function(e){gt(e),Fe=!0},n.clearConfig=function(){st=null,Fe=!1},n.isValidAttribute=function(e,t,a){st||gt({});var l=me(e),n=me(t);return Et(l,n,a)},n.addHook=function(e,t){"function"==typeof t&&(be[e]=be[e]||[],v(be[e],t))},n.removeHook=function(e){if(be[e])return k(be[e])},n.removeHooks=function(e){be[e]&&(be[e]=[])},n.removeAllHooks=function(){be={}},n}()}()},679:function(e,t,a){"use strict";var l=a(296),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return l.isMemo(e)?i:o[e.$$typeof]||n}o[l.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[l.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=Object.prototype;e.exports=function e(t,a,l){if("string"!=typeof a){if(b){var n=p(a);n&&n!==b&&e(t,n,l)}var i=u(a);g&&(i=i.concat(g(a)));for(var o=s(t),h=s(a),m=0;m<i.length;++m){var f=i[m];if(!(r[f]||l&&l[f]||h&&h[f]||o&&o[f])){var k=d(a,f);try{c(t,f,k)}catch(e){}}}}return t}},103:function(e,t){"use strict";var a="function"==typeof Symbol&&Symbol.for,l=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,r=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,g=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,f=a?Symbol.for("react.block"):60121,k=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,y=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case l:switch(e=e.type){case u:case g:case r:case o:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case h:case s:return e;default:return t}}case n:return t}}}function C(e){return w(e)===g}t.AsyncMode=u,t.ConcurrentMode=g,t.ContextConsumer=c,t.ContextProvider=s,t.Element=l,t.ForwardRef=d,t.Fragment=r,t.Lazy=m,t.Memo=h,t.Portal=n,t.Profiler=o,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===r},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===g||e===o||e===i||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===k||e.$$typeof===v||e.$$typeof===y||e.$$typeof===f)},t.typeOf=w},296:function(e,t,a){"use strict";e.exports=a(103)},218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}},t={};function a(l){var n=t[l];if(void 0!==n)return n.exports;var r=t[l]={exports:{}};return e[l].call(r.exports,r,r.exports,a),r.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.nc=void 0,function(){"use strict";var e=window.React,t=window.wp.data,l=window.wp.element,n=window.wp.blockEditor,r=window.wp.components,i=window.wp.i18n,o=a(184),s=a.n(o);const c=(e,t)=>{const{gridItemPaddingTop:a,gridItemPaddingRight:l,gridItemPaddingBottom:n,gridItemPaddingLeft:r}=generateBlocksStyling.container;return(e.split("-")||[]).map((e=>({isGrid:!0,gridId:t,paddingTop:a||"",paddingRight:l||"",paddingBottom:n||"",paddingLeft:r||"",sizing:{width:`${e}%`,widthMobile:"100%"}})))};var u=({uniqueId:t,onClick:a,isDisabled:l=!1})=>!l&&(0,e.createElement)(r.Placeholder,{label:(0,i.__)("Grid","generateblocks"),instructions:(0,i.__)("Choose how many Containers to start with.","generateblocks"),className:"gb-select-layout"},(0,e.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16-16-16-16-16-16"].map((l=>{const n=c(l,t);return(0,e.createElement)("button",{key:`layout-${l}`,className:"gb-grid-wrapper-layout-preview-btn",onClick:()=>a(l)},n.map(((t,a)=>{const n=t.sizing.width.replace("%","").replace(".","-");return(0,e.createElement)("div",{key:`layout-${l}-col-${a}`,className:s()("gb-col",`gb-col-${n}`)})})))})))),g=window.wp.blocks;const d=wp.element.createElement;function p(t){return"tabs-desktop"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},d("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),d("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),d("path",{d:"M12 17.5H12.01"})):"sync"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===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 22h-5.769a.625.625 0 0 1-.625-.625v-6.042H9.019v6.042a.625.625 0 0 1-.625.625H2.625A.625.625 0 0 1 2 21.375V2.625C2 2.28 2.28 2 2.625 2h5.769c.346 0 .625.28.625.625v6.041h5.961V2.625A.626.626 0 0 1 15.606 2h5.769c.345 0 .625.28.625.625v18.75c0 .345-.28.625-.625.625zm-5.144-1.25h4.519V3.25h-4.519v6.041c0 .345-.28.625-.625.625H8.394a.625.625 0 0 1-.625-.625V3.25H3.25v17.5h4.519v-6.042c0-.345.28-.625.625-.625h7.212c.345 0 .625.28.625.625v6.042z"})):"grid"===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 10.755h-4.689a.625.625 0 0 1-.625-.625V2.625c0-.345.28-.625.625-.625h4.689a.624.624 0 0 1 .625.625v7.505c0 .345-.28.625-.625.625zm-4.064-1.251h3.44V3.25h-3.44v6.254zm-4.474 1.251H2.625A.625.625 0 0 1 2 10.13V2.625C2 2.28 2.28 2 2.625 2h10.212c.345 0 .625.28.625.625v7.505a.626.626 0 0 1-.625.625zM3.249 9.504h8.963V3.25H3.249v6.254zm4.064 12.497H2.625A.625.625 0 0 1 2 21.375V13.87c0-.345.28-.625.625-.625h4.688c.345 0 .625.28.625.625v7.505a.627.627 0 0 1-.625.626zM3.249 20.75h3.439v-6.255H3.249v6.255zm18.126 1.251H11.162a.625.625 0 0 1-.625-.625V13.87c0-.345.28-.625.625-.625h10.213c.345 0 .625.28.625.625v7.505c0 .346-.28.626-.625.626zm-9.588-1.251h8.964v-6.255h-8.964v6.255z"})):"container"===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 22h-3.75v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625zM9.188 20.75h5.625V22H9.188zM6.375 22h-3.75A.625.625 0 0 1 2 21.375v-3.75h1.25v3.125h3.125V22zM2 9.187h1.25v5.625H2zm1.25-2.812H2v-3.75C2 2.28 2.28 2 2.625 2h3.75v1.25H3.25v3.125zM9.188 2h5.625v1.25H9.188zM22 6.375h-1.25V3.25h-3.125V2h3.75c.345 0 .625.28.625.625v3.75zm-1.25 2.812H22v5.625h-1.25z"})):"button"===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 16.45H2.625A.625.625 0 0 1 2 15.825v-7.65c0-.345.28-.625.625-.625h18.75c.345 0 .625.28.625.625v7.65c0 .345-.28.625-.625.625zM3.25 15.2h17.5V8.8H3.25v6.4z"}),(0,e.createElement)("path",{d:"M15.536 12.625H5.882a.625.625 0 0 1 0-1.25h9.654a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("circle",{cx:"17.936",cy:"12",r:".807"})):"button-container"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon",width:"24",height:"24","aria-hidden":"true",focusable:"false"},"    ",(0,e.createElement)("path",{d:"M21.375,22L17.625,22L17.625,20.75L20.75,20.75L20.75,17.625L22,17.625L22,21.375C22,21.72 21.72,22 21.375,22ZM9.188,20.75L14.813,20.75L14.813,22L9.188,22L9.188,20.75ZM6.375,22L2.625,22C2.282,22 2,21.718 2,21.375L2,17.625L3.25,17.625L3.25,20.75L6.375,20.75L6.375,22ZM2,9.187L3.25,9.187L3.25,14.812L2,14.812L2,9.187ZM3.25,6.375L2,6.375L2,2.625C2,2.28 2.28,2 2.625,2L6.375,2L6.375,3.25L3.25,3.25L3.25,6.375ZM9.188,2L14.813,2L14.813,3.25L9.188,3.25L9.188,2ZM22,6.375L20.75,6.375L20.75,3.25L17.625,3.25L17.625,2L21.375,2C21.72,2 22,2.28 22,2.625L22,6.375ZM20.75,9.187L22,9.187L22,14.812L20.75,14.812L20.75,9.187Z"}),(0,e.createElement)("path",{d:"M19.031,15.23L4.969,15.23C4.712,15.23 4.5,15.018 4.5,14.761L4.5,9.024C4.5,8.765 4.71,8.555 4.969,8.555L19.031,8.555C19.29,8.555 19.5,8.765 19.5,9.024L19.5,14.761C19.5,15.02 19.29,15.23 19.031,15.23ZM5.438,14.292L18.563,14.292L18.563,9.492L5.438,9.492L5.438,14.292Z"}),(0,e.createElement)("path",{d:"M14.652,12.361L7.412,12.361C7.154,12.361 6.943,12.15 6.943,11.892C6.943,11.635 7.154,11.424 7.412,11.424L14.652,11.424C14.909,11.424 15.121,11.635 15.121,11.892C15.121,12.15 14.909,12.361 14.652,12.361Z"}),(0,e.createElement)("circle",{cx:"16.452",cy:"11.892",r:"0.605"})):"post-template"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 12.9H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h23.4c.2 0 .3.1.3.3v12.3c0 .2-.1.3-.3.3zM1.8 11.1h20.4V1.8H1.8v9.3zM13.4 15h10.3c.2 0 .3.1.3.3v8.4c0 .2-.1.3-.3.3H13.4c-.2 0-.3-.1-.3-.3v-8.4c0-.1.2-.3.3-.3zm8.8 1.8h-7.3v5.4h7.3v-5.4zM.3 18.6H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.1.1-.3.3-.3zm0-3.6H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.1.1-.3.3-.3zm0 7.2H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3z"})):"query-loop"===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.374 6.133H14.67a.625.625 0 0 1 0-1.25h6.704a.625.625 0 0 1 0 1.25zm0 2.882H14.67a.625.625 0 0 1 0-1.25h6.704a.625.625 0 0 1 0 1.25zm0-5.764H14.67a.625.625 0 0 1 0-1.251h6.704a.625.625 0 0 1 0 1.251zM9.329 19.118H2.625a.625.625 0 1 1 0-1.25h6.704a.625.625 0 0 1 0 1.25zm0 2.883H2.625a.625.625 0 0 1 0-1.25h6.704a.625.625 0 0 1 0 1.25zm0-5.766H2.625a.625.625 0 1 1 0-1.25h6.704a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("path",{d:"M16.841 22.001a5.17 5.17 0 0 1-3.661-1.517c-1.961-1.961-1.876-5.29-1.793-8.51.095-3.705.185-7.204-2.646-8.399-1.275-.538-2.731-.405-3.8.351-.981.692-1.576 1.721-1.677 2.895a3.929 3.929 0 0 0 1.137 3.116c.882.882 2.245 1.322 4.419 1.428.344.017.61.31.594.655a.621.621 0 0 1-.655.594c-1.688-.082-3.81-.36-5.242-1.792a5.179 5.179 0 0 1-1.498-4.107A5.211 5.211 0 0 1 4.22 2.904c1.418-1.002 3.337-1.186 5.006-.481 3.616 1.526 3.511 5.622 3.409 9.583-.076 2.956-.154 6.012 1.428 7.594a3.924 3.924 0 0 0 3.114 1.137c1.174-.1 2.202-.695 2.896-1.675.754-1.066.889-2.52.353-3.796-.72-1.716-2.283-2.509-5.226-2.652a.626.626 0 0 1-.594-.655.615.615 0 0 1 .655-.594c2.32.112 5.136.602 6.317 3.416.701 1.67.515 3.587-.486 5.002a5.204 5.204 0 0 1-4.251 2.218z"})):"image"===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:"M15.77 11.655a3.429 3.429 0 0 1-3.425-3.425 3.428 3.428 0 0 1 3.425-3.425 3.429 3.429 0 0 1 3.424 3.425 3.429 3.429 0 0 1-3.424 3.425zm0-5.6a2.179 2.179 0 0 0-2.176 2.175c0 1.199.977 2.175 2.176 2.175s2.175-.976 2.175-2.175a2.178 2.178 0 0 0-2.175-2.175z"}),(0,e.createElement)("path",{d:"M21.375 22.001H2.625A.625.625 0 0 1 2 21.375V2.625C2 2.28 2.28 2 2.625 2h18.751a.624.624 0 0 1 .624.625v18.751c0 .345-.28.625-.625.625zM3.249 20.75H20.75V3.25H3.249v17.5z"}),(0,e.createElement)("path",{d:"M20.956 21.839 8.968 11.018l-5.91 5.698-.867-.9L8.52 9.714a.624.624 0 0 1 .853-.014l12.422 11.212-.839.927z"})):"paragraph"===t?d("svg",{width:20,height:20,viewBox:"0 0 20 20"},d("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("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-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),d("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("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-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),d("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),d("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),d("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("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"})):"gradients"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("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-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),d("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("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-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M21.375 22h-3.75v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625zM9.188 20.75h5.625V22H9.188zM6.375 22h-3.75A.625.625 0 0 1 2 21.375v-3.75h1.25v3.125h3.125V22zM2 9.187h1.25v5.625H2zm1.25-2.812H2v-3.75C2 2.28 2.28 2 2.625 2h3.75v1.25H3.25v3.125zM9.188 2h5.625v1.25H9.188zM22 6.375h-1.25V3.25h-3.125V2h3.75c.345 0 .625.28.625.625v3.75zm-1.25 2.812H22v5.625h-1.25zM12 18.293a.625.625 0 0 1-.625-.625V6.331a.625.625 0 0 1 1.25 0v11.337c0 .346-.28.625-.625.625z"}),(0,e.createElement)("path",{d:"M17.669 12.625H6.332a.625.625 0 0 1 0-1.25h11.337a.625.625 0 0 1 0 1.25z"})):"gradient"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},d("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"})):"documentation"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),d("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),d("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),d("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):"sizing"===t?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 113 113",style:{fillRule:"evenodd"}},(0,e.createElement)("path",{d:"M106.283,6.217C114.572,14.507 114.572,97.993 106.283,106.283C97.993,114.572 14.507,114.572 6.217,106.283C-2.072,97.993 -2.072,14.507 6.217,6.217C14.507,-2.072 97.993,-2.072 106.283,6.217ZM96.276,16.224C102.908,22.856 102.908,89.644 96.276,96.276C89.644,102.908 22.856,102.908 16.224,96.276C9.592,89.644 9.592,22.856 16.224,16.224C22.856,9.592 89.644,9.592 96.276,16.224Z"}),(0,e.createElement)("path",{d:"M61.111,66.666L61.111,82.793C68.473,82.75 74.913,82.604 76.176,82.357C67.724,90.476 59.273,97.249 56.25,97.249C53.227,97.249 44.775,90.476 36.324,82.357C37.586,82.604 44.027,82.75 51.388,82.793L51.388,66.666L61.111,66.666ZM66.666,51.388L82.793,51.388C82.75,44.027 82.604,37.586 82.357,36.324C90.476,44.775 97.249,53.227 97.249,56.25C97.249,59.273 90.476,67.724 82.357,76.176C82.604,74.913 82.75,68.473 82.793,61.111L66.666,61.111L66.666,51.388ZM45.834,51.388L45.834,61.111L29.706,61.111C29.75,68.473 29.895,74.913 30.143,76.176C22.024,67.724 15.25,59.273 15.25,56.25C15.25,53.227 22.024,44.775 30.143,36.324C29.896,37.586 29.75,44.027 29.706,51.388L45.834,51.388ZM51.388,45.834L51.388,29.706C44.027,29.75 37.586,29.895 36.324,30.143C44.775,22.024 53.227,15.25 56.25,15.25C59.273,15.25 67.724,22.024 76.176,30.143C74.913,29.896 68.473,29.75 61.111,29.706L61.111,45.834L51.388,45.834Z"})):"container-settings"===t?(0,e.createElement)("svg",{viewBox:"0 0 113 113",style:{fillRule:"evenodd"}},(0,e.createElement)("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 0ZM88.125 90.25h-12.75V86H86V75.375h4.25v12.75a2.126 2.126 0 0 1-2.125 2.125ZM46.689 86h19.125v4.25H46.689V86Zm-9.564 4.25h-12.75a2.135 2.135 0 0 1-2.125-2.125v-12.75h4.25V86h10.625v4.25ZM22.25 46.686h4.25v19.125h-4.25V46.686Zm63.75 0h4.25v19.125H86V46.686Zm-59.5-9.561h-4.25v-12.75c0-1.173.952-2.125 2.125-2.125h12.75v4.25H26.5v10.625Zm63.75 0H86V26.5H75.375v-4.25h12.75c1.173 0 2.125.952 2.125 2.125v12.75ZM46.689 22.25h19.125v4.25H46.689v-4.25Z"})):"button-settings"===t?(0,e.createElement)("svg",{viewBox:"0 0 113 113",style:{fillRule:"evenodd "}},(0,e.createElement)("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 0Zm-18.627 64.94H24.843a2.103 2.103 0 0 1-2.093-2.094V43.436c0-1.156.938-2.094 2.093-2.094h62.813c1.156 0 2.094.938 2.094 2.094v25.627a2.095 2.095 0 0 1-2.094 2.094ZM26.937 66.97h58.625V45.53H26.937v21.44Zm49.198-13.424a2.706 2.706 0 0 1 2.704 2.704 2.704 2.704 0 1 1-2.704-2.704Zm-8.04 4.797H35.754a2.103 2.103 0 0 1-2.093-2.093c0-1.149.945-2.094 2.093-2.094h32.341c1.149 0 2.094.945 2.094 2.094a2.103 2.103 0 0 1-2.094 2.093Z"})):"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"}))):"ellipsis"===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:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))):"insert"===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:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))):"reset"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 50 50"},(0,e.createElement)("path",{d:"M25 38c-5.1 0-9.7-3-11.8-7.6l1.8-.8c1.8 3.9 5.7 6.4 10 6.4 6.1 0 11-4.9 11-11s-4.9-11-11-11c-4.6 0-8.5 2.8-10.1 7.3l-1.9-.7c1.9-5.2 6.6-8.6 12-8.6 7.2 0 13 5.8 13 13s-5.8 13-13 13z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M20 22h-8v-8h2v6h6z",fill:"currentColor"})):"dynamic"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 921 921",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M869.447 50.856c67.809 67.817 67.809 750.774 0 818.59-67.817 67.807-750.774 67.807-818.591 0-67.808-67.816-67.808-750.773 0-818.59 67.817-67.808 750.774-67.808 818.591 0Zm-395.295 685.52h3.579c9.702 0 17.579 7.877 17.579 17.579v3.42H723.3c5.451-12.361 17.818-21 32.187-21 19.405 0 35.159 15.755 35.159 35.159 0 19.405-15.754 35.159-35.159 35.159-14.491 0-26.947-8.786-32.325-21.317H495.31v3.738c0 9.702-7.877 17.579-17.579 17.579h-35.159c-9.702 0-17.579-7.877-17.579-17.58v-3.737H197.141c-5.378 12.53-17.834 21.317-32.325 21.317-19.405 0-35.159-15.754-35.159-35.16 0-19.403 15.754-35.157 35.159-35.157 14.369 0 26.736 8.638 32.187 21h227.99v-3.421c0-9.702 7.877-17.58 17.579-17.58h3.58V609.535h28v126.842ZM129.657 414.193c0 29.527 148.09 53.5 330.495 53.5 182.404 0 330.494-23.973 330.494-53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94Zm0-134.5c0 29.527 148.09 53.5 330.495 53.5 182.404 0 330.494-23.973 330.494-53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94Zm.002-134.673c.591-29.45 148.453-53.327 330.493-53.327 182.404 0 330.494 23.973 330.494 53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94l.002-.173Z"})):"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"})):"query-params"===t?(0,e.createElement)("svg",{viewBox:"0 0 2876 2876",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M2717.022 158.925c211.903 211.928 211.903 2346.168 0 2558.097-211.928 211.893-2346.169 211.893-2558.097 0-211.9-211.929-211.9-2346.17 0-2558.097 211.928-211.9 2346.169-211.9 2558.097 0ZM1786.4 1975.975c-155.978 116.55-349.419 185.565-558.85 185.565-515.969 0-934.872-418.9-934.872-934.872 0-515.968 418.903-934.868 934.872-934.868 515.969 0 934.872 418.9 934.872 934.868 0 211.963-70.694 407.541-189.725 564.372l508.869 508.87c25.609 25.608 25.609 67.196 0 92.805l-92.81 92.81c-25.61 25.61-67.197 25.61-92.806 0l-509.55-509.55ZM1227.55 529.253c384.916 0 697.419 312.5 697.419 697.415 0 384.916-312.503 697.42-697.419 697.42s-697.419-312.504-697.419-697.42c0-384.915 312.503-697.415 697.419-697.415Zm-28.434 1248.965c-43.153 0-77.044-11.55-101.666-34.65-24.625-23.1-36.934-54.703-36.934-94.812 0-40.616 12.309-72.472 36.934-95.572 24.622-23.1 58.513-34.65 101.666-34.65s76.915 11.55 101.284 34.65c24.369 23.1 36.553 54.956 36.553 95.572 0 40.11-12.184 71.712-36.553 94.812-24.369 23.1-58.131 34.65-101.284 34.65Zm-346.504-811.04c1.016-47.216 9.9-90.497 26.657-129.844 16.753-39.347 40.868-73.11 72.347-101.284 31.475-28.178 69.934-50.138 115.371-65.875 45.438-15.738 97.35-23.607 155.735-23.607 54.325 0 103.697 7.235 148.122 21.704 44.422 14.468 82.5 34.778 114.231 60.921 31.731 26.147 56.225 57.372 73.487 93.672 17.263 36.3 25.894 76.535 25.894 120.703 0 57.37-13.71 106.616-41.125 147.741-27.415 41.122-68.031 77.675-121.847 109.66-25.384 14.724-46.325 28.306-62.825 40.743-16.5 12.438-29.7 25.131-39.6 38.078-9.9 12.944-16.88 26.653-20.943 41.122-4.063 14.469-6.094 30.844-6.094 49.119v40.362h-201.806l-1.525-41.884c-2.538-30.462-1.775-57.878 2.284-82.247 4.063-24.369 11.678-46.581 22.847-66.634 11.169-20.053 26.019-38.46 44.55-55.213s40.997-32.747 67.397-47.978c24.369-14.722 44.803-28.303 61.303-40.74 16.503-12.438 29.703-25.004 39.603-37.697 9.9-12.694 16.878-26.02 20.94-39.982 4.063-13.962 6.094-29.828 6.094-47.596 0-17.77-3.428-34.016-10.28-48.738-6.854-14.722-16.629-27.416-29.32-38.078-12.693-10.66-27.925-19.038-45.693-25.131-17.77-6.09-37.57-9.138-59.4-9.138-44.17 0-79.582 12.438-106.235 37.316-26.656 24.878-41.25 58.384-43.79 100.525H852.612Z"})):"caption"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32"},(0,e.createElement)("path",{fill:"currentColor",d:"M11.5 13C10.24 13 9 14.213 9 16s1.24 3 2.5 3a2.17 2.17 0 0 0 1.274-.421 1 1 0 1 1 1.164 1.626A4.17 4.17 0 0 1 11.5 21C8.893 21 7 18.632 7 16s1.893-5 4.5-5c.95 0 1.822.326 2.536.867a1 1 0 1 1-1.208 1.594A2.183 2.183 0 0 0 11.5 13Zm7.5 3c0-1.787 1.24-3 2.5-3 .479 0 .934.162 1.328.46a1 1 0 0 0 1.208-1.593A4.182 4.182 0 0 0 21.5 11c-2.607 0-4.5 2.368-4.5 5s1.893 5 4.5 5a4.17 4.17 0 0 0 2.438-.795 1 1 0 1 0-1.164-1.626A2.172 2.172 0 0 1 21.5 19c-1.26 0-2.5-1.213-2.5-3ZM2 8.5A4.5 4.5 0 0 1 6.5 4h19A4.5 4.5 0 0 1 30 8.5v15a4.5 4.5 0 0 1-4.5 4.5h-19A4.5 4.5 0 0 1 2 23.5v-15ZM6.5 6A2.5 2.5 0 0 0 4 8.5v15A2.5 2.5 0 0 0 6.5 26h19a2.5 2.5 0 0 0 2.5-2.5v-15A2.5 2.5 0 0 0 25.5 6h-19Z"})):"add-pagination"===t?(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M18 8.2h-5.2V3h-1.6v5.2H6v1.6h5.2V15h1.6V9.8H18V8.2ZM8.5 17.5h-3a1.5 1.5 0 0 0 0 3h3a1.5 1.5 0 0 0 0-3ZM15 19a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM20 19a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z",fill:"#000"})):"section"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M17.646,3.5L17.646,5.52L15.568,5.52L15.568,6.335L17.607,6.335L17.607,8.374L18.422,8.374L18.422,6.361L20.5,6.361L20.5,20.5L3.5,20.5L3.5,3.5L17.646,3.5ZM20.5,5.546L18.462,5.546L18.462,3.5L20.5,3.5L20.5,5.546ZM6.192,8.374L6.192,6.335L8.23,6.335L8.23,5.52L5.784,5.52C5.559,5.52 5.376,5.703 5.376,5.928L5.376,8.374L6.192,8.374ZM10.065,5.52L10.065,6.335L13.734,6.335L13.734,5.52L10.065,5.52ZM17.607,10.208L17.607,13.877L18.422,13.877L18.422,10.208L17.607,10.208ZM18.014,18.566C18.239,18.566 18.422,18.383 18.422,18.158L18.422,15.712L17.607,15.712L17.607,17.75L15.568,17.75L15.568,18.566L18.014,18.566ZM8.23,18.566L8.23,17.75L6.192,17.75L6.192,15.712L5.376,15.712L5.376,18.158C5.376,18.382 5.56,18.566 5.784,18.566L8.23,18.566ZM5.376,10.208L5.376,13.877L6.192,13.877L6.192,10.208L5.376,10.208ZM10.065,17.75L10.065,18.566L13.734,18.566L13.734,17.75L10.065,17.75Z"})):"add-to-container"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M20.641,4.436L20.641,7.202L19.562,7.202L19.562,4.504L16.864,4.504L16.864,3.424L19.593,3.424L19.593,0.658L20.672,0.658L20.672,3.357L23.371,3.357L23.371,4.436L20.641,4.436ZM20.102,20.695L16.864,20.695L16.864,19.615L19.562,19.615L19.562,16.917L20.641,16.917L20.641,20.155C20.641,20.453 20.4,20.695 20.102,20.695ZM9.578,19.615L14.435,19.615L14.435,20.695L9.578,20.695L9.578,19.615ZM7.149,20.695L3.911,20.695C3.615,20.695 3.371,20.451 3.371,20.155L3.371,16.917L4.45,16.917L4.45,19.615L7.149,19.615L7.149,20.695ZM3.371,9.63L4.45,9.63L4.45,14.488L3.371,14.488L3.371,9.63ZM4.45,7.202L3.371,7.202L3.371,3.964C3.371,3.666 3.613,3.424 3.911,3.424L7.149,3.424L7.149,4.504L4.45,4.504L4.45,7.202ZM9.578,3.424L14.435,3.424L14.435,4.504L9.578,4.504L9.578,3.424ZM19.562,9.63L20.641,9.63L20.641,14.488L19.562,14.488L19.562,9.63Z"}),(0,e.createElement)("path",{d:"M18.366,6.051C18.366,5.857 18.209,5.7 18.014,5.7L5.998,5.7C5.804,5.7 5.646,5.857 5.646,6.051L5.646,18.068C5.646,18.262 5.804,18.419 5.998,18.419L18.014,18.419C18.209,18.419 18.366,18.262 18.366,18.068L18.366,6.051Z"})):"add-to-container-button"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M20.642,4.436L20.642,7.202L19.562,7.202L19.562,4.503L16.864,4.503L16.864,3.424L19.593,3.424L19.593,0.658L20.673,0.658L20.673,3.356L23.371,3.356L23.371,4.436L20.642,4.436ZM20.102,20.695L16.864,20.695L16.864,19.615L19.562,19.615L19.562,16.917L20.642,16.917L20.642,20.155C20.642,20.453 20.4,20.695 20.102,20.695ZM9.578,19.615L14.436,19.615L14.436,20.695L9.578,20.695L9.578,19.615ZM7.149,20.695L3.911,20.695C3.615,20.695 3.371,20.451 3.371,20.155L3.371,16.917L4.451,16.917L4.451,19.615L7.149,19.615L7.149,20.695ZM3.371,9.63L4.451,9.63L4.451,14.488L3.371,14.488L3.371,9.63ZM4.451,7.202L3.371,7.202L3.371,3.964C3.371,3.666 3.613,3.424 3.911,3.424L7.149,3.424L7.149,4.503L4.451,4.503L4.451,7.202ZM9.578,3.424L14.436,3.424L14.436,4.503L9.578,4.503L9.578,3.424ZM19.562,9.63L20.642,9.63L20.642,14.488L19.562,14.488L19.562,9.63Z"}),(0,e.createElement)("path",{d:"M17.975,14.895L6.048,14.895C5.831,14.895 5.653,14.717 5.653,14.5L5.653,9.631C5.653,9.414 5.831,9.236 6.048,9.236L17.975,9.236C18.192,9.236 18.371,9.414 18.371,9.631L18.371,14.5C18.371,14.717 18.192,14.895 17.975,14.895ZM14.259,12.465C14.48,12.465 14.659,12.283 14.659,12.065C14.659,11.848 14.48,11.67 14.259,11.67L8.121,11.67C7.904,11.67 7.721,11.848 7.721,12.065C7.721,12.283 7.904,12.465 8.121,12.465L14.259,12.465ZM15.789,11.553C15.502,11.553 15.276,11.783 15.276,12.065C15.276,12.348 15.502,12.578 15.789,12.578C16.071,12.578 16.302,12.348 16.302,12.065C16.302,11.783 16.071,11.553 15.789,11.553Z"})):"add-to-row"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M20.642,4.435L20.642,7.2L19.563,7.2L19.563,4.502L16.866,4.502L16.866,3.423L19.594,3.423L19.594,0.658L20.673,0.658L20.673,3.356L23.371,3.356L23.371,4.435L20.642,4.435ZM20.103,20.688L16.866,20.688L16.866,19.609L19.563,19.609L19.563,16.912L20.642,16.912L20.642,20.149C20.642,20.447 20.401,20.688 20.103,20.688ZM9.582,19.609L14.438,19.609L14.438,20.688L9.582,20.688L9.582,19.609ZM7.154,20.688L3.917,20.688C3.621,20.688 3.377,20.445 3.377,20.149L3.377,16.912L4.456,16.912L4.456,19.609L7.154,19.609L7.154,20.688ZM3.377,9.628L4.456,9.628L4.456,14.483L3.377,14.483L3.377,9.628ZM4.456,7.2L3.377,7.2L3.377,3.963C3.377,3.665 3.619,3.423 3.917,3.423L7.154,3.423L7.154,4.502L4.456,4.502L4.456,7.2ZM9.582,3.423L14.438,3.423L14.438,4.502L9.582,4.502L9.582,3.423ZM19.563,9.628L20.642,9.628L20.642,14.483L19.563,14.483L19.563,9.628Z"}),(0,e.createElement)("path",{d:"M11.284,5.898C11.284,5.819 11.22,5.755 11.142,5.755L5.777,5.755C5.699,5.755 5.635,5.819 5.635,5.898L5.635,18.214C5.635,18.293 5.699,18.356 5.777,18.356L11.142,18.356C11.22,18.356 11.284,18.293 11.284,18.214L11.284,5.898Z"}),(0,e.createElement)("path",{d:"M18.384,5.922C18.384,5.83 18.31,5.755 18.217,5.755L12.903,5.755C12.811,5.755 12.736,5.83 12.736,5.922L12.736,18.189C12.736,18.282 12.811,18.356 12.903,18.356L18.217,18.356C18.31,18.356 18.384,18.282 18.384,18.189L18.384,5.922Z"})):"add-to-row-button"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M20.642,4.436L20.642,7.202L19.562,7.202L19.562,4.503L16.864,4.503L16.864,3.424L19.593,3.424L19.593,0.658L20.673,0.658L20.673,3.356L23.371,3.356L23.371,4.436L20.642,4.436ZM20.102,20.695L16.864,20.695L16.864,19.615L19.562,19.615L19.562,16.917L20.642,16.917L20.642,20.155C20.642,20.453 20.4,20.695 20.102,20.695ZM9.578,19.615L14.436,19.615L14.436,20.695L9.578,20.695L9.578,19.615ZM7.149,20.695L3.911,20.695C3.615,20.695 3.371,20.451 3.371,20.155L3.371,16.917L4.451,16.917L4.451,19.615L7.149,19.615L7.149,20.695ZM4.451,7.202L3.371,7.202L3.371,3.964C3.371,3.666 3.613,3.424 3.911,3.424L7.149,3.424L7.149,4.503L4.451,4.503L4.451,7.202ZM9.578,3.424L14.436,3.424L14.436,4.503L9.578,4.503L9.578,3.424Z"}),(0,e.createElement)("path",{d:"M15.401,14.847L3.568,14.847C3.352,14.847 3.176,14.67 3.176,14.453L3.176,9.593C3.176,9.376 3.352,9.199 3.568,9.199L15.401,9.199C15.617,9.199 15.793,9.376 15.793,9.593L15.793,14.453C15.793,14.67 15.617,14.847 15.401,14.847ZM11.714,12.422C11.934,12.422 12.111,12.24 12.111,12.023C12.111,11.806 11.934,11.628 11.714,11.628L5.625,11.628C5.409,11.628 5.228,11.806 5.228,12.023C5.228,12.24 5.409,12.422 5.625,12.422L11.714,12.422ZM13.232,11.511C12.947,11.511 12.723,11.741 12.723,12.023C12.723,12.305 12.947,12.535 13.232,12.535C13.512,12.535 13.741,12.305 13.741,12.023C13.741,11.741 13.512,11.511 13.232,11.511Z"}),(0,e.createElement)("path",{d:"M23.133,14.849L17.622,14.849C17.406,14.849 17.229,14.666 17.229,14.45L17.229,9.595C17.229,9.378 17.406,9.2 17.622,9.2L23.133,9.2L23.133,11.625L19.679,11.625C19.463,11.625 19.282,11.807 19.282,12.024C19.282,12.241 19.463,12.419 19.679,12.419L23.133,12.419L23.133,14.849Z"})):"add-to-stack"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M20.641,4.436L20.641,7.202L19.562,7.202L19.562,4.504L16.864,4.504L16.864,3.424L19.593,3.424L19.593,0.658L20.672,0.658L20.672,3.357L23.371,3.357L23.371,4.436L20.641,4.436ZM20.102,20.695L16.864,20.695L16.864,19.615L19.562,19.615L19.562,16.917L20.641,16.917L20.641,20.155C20.641,20.453 20.4,20.695 20.102,20.695ZM9.578,19.615L14.435,19.615L14.435,20.695L9.578,20.695L9.578,19.615ZM7.149,20.695L3.911,20.695C3.615,20.695 3.371,20.451 3.371,20.155L3.371,16.917L4.45,16.917L4.45,19.615L7.149,19.615L7.149,20.695ZM3.371,9.63L4.45,9.63L4.45,14.488L3.371,14.488L3.371,9.63ZM4.45,7.202L3.371,7.202L3.371,3.964C3.371,3.666 3.613,3.424 3.911,3.424L7.149,3.424L7.149,4.504L4.45,4.504L4.45,7.202ZM9.578,3.424L14.435,3.424L14.435,4.504L9.578,4.504L9.578,3.424ZM19.562,9.63L20.641,9.63L20.641,14.488L19.562,14.488L19.562,9.63Z"}),(0,e.createElement)("path",{d:"M18.139,11.333C18.233,11.333 18.309,11.257 18.309,11.164L18.309,5.852C18.309,5.759 18.233,5.683 18.139,5.683L5.873,5.683C5.78,5.683 5.704,5.759 5.704,5.852L5.704,11.164C5.704,11.257 5.78,11.333 5.873,11.333L18.139,11.333Z"}),(0,e.createElement)("path",{d:"M18.139,18.436C18.233,18.436 18.309,18.36 18.309,18.267L18.309,12.955C18.309,12.862 18.233,12.786 18.139,12.786L5.873,12.786C5.78,12.786 5.704,12.862 5.704,12.955L5.704,18.267C5.704,18.36 5.78,18.436 5.873,18.436L18.139,18.436Z"})):"add-to-stack-button"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M20.642,4.436L20.642,7.202L19.562,7.202L19.562,4.503L16.864,4.503L16.864,3.424L19.593,3.424L19.593,0.658L20.673,0.658L20.673,3.356L23.371,3.356L23.371,4.436L20.642,4.436ZM20.102,20.695L16.864,20.695L16.864,19.615L19.562,19.615L19.562,16.917L20.642,16.917L20.642,20.155C20.642,20.453 20.4,20.695 20.102,20.695ZM9.578,19.615L14.436,19.615L14.436,20.695L9.578,20.695L9.578,19.615ZM7.149,20.695L3.911,20.695C3.615,20.695 3.371,20.451 3.371,20.155L3.371,16.917L4.451,16.917L4.451,19.615L7.149,19.615L7.149,20.695ZM3.371,9.63L4.451,9.63L4.451,14.488L3.371,14.488L3.371,9.63ZM4.451,7.202L3.371,7.202L3.371,3.964C3.371,3.666 3.613,3.424 3.911,3.424L7.149,3.424L7.149,4.503L4.451,4.503L4.451,7.202ZM9.578,3.424L14.436,3.424L14.436,4.503L9.578,4.503L9.578,3.424ZM19.562,9.63L20.642,9.63L20.642,14.488L19.562,14.488L19.562,9.63Z"}),(0,e.createElement)("path",{d:"M17.951,11.28L6.042,11.28C5.825,11.28 5.647,11.102 5.647,10.885L5.647,6.025C5.647,5.808 5.825,5.63 6.042,5.63L17.951,5.63C18.168,5.63 18.345,5.808 18.345,6.025L18.345,10.885C18.345,11.102 18.168,11.28 17.951,11.28ZM14.24,8.854C14.461,8.854 14.639,8.672 14.639,8.455C14.639,8.238 14.461,8.06 14.24,8.06L8.112,8.06C7.895,8.06 7.713,8.238 7.713,8.455C7.713,8.672 7.895,8.854 8.112,8.854L14.24,8.854ZM15.768,7.943C15.481,7.943 15.255,8.173 15.255,8.455C15.255,8.737 15.481,8.967 15.768,8.967C16.05,8.967 16.28,8.737 16.28,8.455C16.28,8.173 16.05,7.943 15.768,7.943Z"}),(0,e.createElement)("path",{d:"M17.951,18.36L6.042,18.36C5.825,18.36 5.647,18.182 5.647,17.965L5.647,13.105C5.647,12.888 5.825,12.71 6.042,12.71L17.951,12.71C18.168,12.71 18.345,12.888 18.345,13.105L18.345,17.965C18.345,18.182 18.168,18.36 17.951,18.36ZM14.24,15.934C14.461,15.934 14.639,15.752 14.639,15.535C14.639,15.318 14.461,15.14 14.24,15.14L8.112,15.14C7.895,15.14 7.713,15.318 7.713,15.535C7.713,15.752 7.895,15.934 8.112,15.934L14.24,15.934ZM15.768,15.023C15.481,15.023 15.255,15.253 15.255,15.535C15.255,15.817 15.481,16.047 15.768,16.047C16.05,16.047 16.28,15.817 16.28,15.535C16.28,15.253 16.05,15.023 15.768,15.023Z"})):"add-button"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M19.627,8.111L19.627,5.779L20.736,5.779L20.736,8.063L22.992,8.063L22.992,9.171L20.732,9.171L20.732,11.504L19.623,11.504L19.623,9.22L17.367,9.22L17.367,8.111L19.627,8.111Z"}),(0,e.createElement)("path",{d:"M20.733,12.613L20.733,15.451C20.733,15.757 20.485,16.005 20.179,16.005L3.548,16.005C3.241,16.005 2.993,15.757 2.993,15.451L2.993,8.666C2.993,8.359 3.241,8.111 3.548,8.111L16.26,8.111L16.26,9.22L4.102,9.22L4.102,14.897L19.624,14.897L19.624,12.613L20.733,12.613Z"}),(0,e.createElement)("path",{d:"M8.729,11.504L17.292,11.504C17.596,11.504 17.846,11.754 17.846,12.058C17.846,12.363 17.596,12.613 17.292,12.613L8.729,12.613C8.425,12.613 8.175,12.363 8.175,12.058C8.175,11.754 8.425,11.504 8.729,11.504Z"}),(0,e.createElement)("ellipse",{cx:"6.6",cy:"12.058",rx:"0.716",ry:"0.716"})):"container-flex-column"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M2 21.375v-3.75h1.25v3.125h3.125V22h-3.75A.625.625 0 012 21.375zM3.25 9.188v5.625H2V9.188h1.25zM2 6.375v-3.75C2 2.282 2.282 2 2.625 2h3.75v1.25H3.25v3.125H2zM17.625 3.25V2h3.75c.345 0 .625.28.625.625v3.75h-1.25V3.25h-3.125zM22 9.188v5.625h-1.25V9.188H22zM17.625 22v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625h-3.75z"}),(0,e.createElement)("path",{d:"M19.299 11.159V4.616H4.701v6.543h14.598zM19.299 19.384v-6.543H4.701v6.543h14.598z"})):"container-flex-row"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M21.375 22h-3.75v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625zM9.188 20.75h5.625V22H9.188v-1.25zM6.375 22h-3.75A.628.628 0 012 21.375v-3.75h1.25v3.125h3.125V22zM3.25 6.375H2v-3.75C2 2.28 2.28 2 2.625 2h3.75v1.25H3.25v3.125zM9.188 2h5.625v1.25H9.188V2zM22 6.375h-1.25V3.25h-3.125V2h3.75c.345 0 .625.28.625.625v3.75z"}),(0,e.createElement)("path",{d:"M4.616 4.701H11.16V19.298H4.616z"}),(0,e.createElement)("path",{d:"M12.841 4.701H19.384999999999998V19.298H12.841z"})):"container-default"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M21.375 22h-3.75v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625zM9.188 20.75h5.625V22H9.188v-1.25zM6.375 22h-3.75A.628.628 0 012 21.375v-3.75h1.25v3.125h3.125V22zM2 9.187h1.25v5.625H2V9.187zm1.25-2.812H2v-3.75C2 2.28 2.28 2 2.625 2h3.75v1.25H3.25v3.125zM9.188 2h5.625v1.25H9.188V2zM22 6.375h-1.25V3.25h-3.125V2h3.75c.345 0 .625.28.625.625v3.75zm-1.25 2.812H22v5.625h-1.25V9.187z"}),(0,e.createElement)("path",{d:"M4.635 4.635H19.365000000000002V19.365000000000002H4.635z"})):"border-none"===t?(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M9.414 8l3.293-3.293-1.414-1.414L8 6.586 4.707 3.293 3.293 4.707 6.586 8l-3.293 3.293 1.414 1.414L8 9.414l3.293 3.293 1.414-1.414L9.414 8z"})):"border-solid"===t?(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M1 7h14v2H1z"})):"border-dashed"===t?(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M0 7h4v2H0zm6 0h4v2H6zm6 0h4v2h-4z"})):"border-dotted"===t?(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M1 7h2v2H1zm4 0h2v2H5zm4 0h2v2H9zm4 0h2v2h-2z"})):"border-default"===t?(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 256 256",style:{opacity:.1}},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16"})):"borders"===t?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fillRule:"evenodd","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M18.895,1.105C20.368,2.579 20.368,17.421 18.895,18.895C17.421,20.368 2.579,20.368 1.105,18.895C-0.368,17.421 -0.368,2.579 1.105,1.105C2.579,-0.368 17.421,-0.368 18.895,1.105ZM17.116,2.884C18.295,4.063 18.295,15.937 17.116,17.116C15.937,18.295 4.063,18.295 2.884,17.116C1.705,15.937 1.705,4.063 2.884,2.884C4.063,1.705 15.937,1.705 17.116,2.884Z"}),(0,e.createElement)("path",{d:"M15.93,4.07C16.912,5.053 16.912,14.947 15.93,15.93C14.947,16.912 5.053,16.912 4.07,15.93C3.088,14.947 3.088,5.053 4.07,4.07C5.053,3.088 14.947,3.088 15.93,4.07Z"})):"globe"===t?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 256 256"},(0,e.createElement)("path",{fill:"none",d:"M0 0h256v256H0z"}),(0,e.createElement)("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("path",{d:"M88 128c0 37.46 13.33 70.92 34.28 93.49a7.77 7.77 0 0 0 11.44 0C154.67 198.92 168 165.46 168 128s-13.33-70.92-34.28-93.49a7.77 7.77 0 0 0-11.44 0C101.33 57.08 88 90.54 88 128ZM32 128h192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"})):"info"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"15",height:"15"},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,e.createElement)("path",{d:"M120,120a8,8,0,0,1,8,8v40a8,8,0,0,0,8,8",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,e.createElement)("circle",{cx:"124",cy:"84",r:"12"})):"pattern-library"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(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"})):"eye"===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)("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,e.createElement)("circle",{cx:"128",cy:"128",r:"32",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"})):"eye-no"===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:"48",y1:"40",x2:"208",y2:"216",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,e.createElement)("path",{d:"M74,68.6C33.23,89.24,16,128,16,128s32,72,112,72a118.05,118.05,0,0,0,54-12.6",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,e.createElement)("path",{d:"M214.41,163.59C232.12,145.73,240,128,240,128S208,56,128,56c-3.76,0-7.42.16-11,.46",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"})):"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"})):void 0}var b=({uniqueId:a,clientId:l})=>{const{insertBlocks:o}=(0,t.useDispatch)("core/block-editor");return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:p("addContainer"),label:(0,i.__)("Add Grid Item","generateblocks"),onClick:()=>{o((0,g.createBlock)("generateblocks/container",{isGrid:!0,gridId:a,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"",width:50,widthMobile:100}),void 0,l)},showTooltip:!0})))},h=window.wp.hooks,m=window.wp.primitives,f=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,e.createElement)(m.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),k={data:new Map,get(e,t){try{return this.data.has(e)?this.data.get(e):function(e){return"undefined"===e?void 0:JSON.parse(null!=e?e:"")}(localStorage.getItem(e))}catch(e){return t}},set(e,t){try{localStorage.setItem(e,JSON.stringify(t)),this.data.delete(e)}catch(a){this.data.set(e,t)}},remove(e){this.data.delete(e),localStorage.removeItem(e)}},v=window.ReactDOM;const y=[];var w=function(t,a){return"undefined"==typeof window?[null==a?void 0:a.defaultValue,()=>{},{isPersistent:!0,removeItem:()=>{}}]:function(t,a){const l=(0,e.useRef)(null==a?void 0:a.defaultValue).current,[n,r]=(0,e.useReducer)((e=>e+1),0),i=(0,e.useCallback)((e=>{const a=(e=>"function"==typeof e)(e)?e(k.get(t,l)):e;k.set(t,a),(0,v.unstable_batchedUpdates)((()=>{r();for(const e of y)e.key===t&&e.forceUpdate()}))}),[t,l]);(0,e.useEffect)((()=>{const e=e=>{e.storageArea===localStorage&&e.key===t&&r()};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t]),(0,e.useEffect)((()=>{const e={key:t,forceUpdate:r};return y.push(e),()=>{y.splice(y.indexOf(e),1)}}),[t]);const o=(0,e.useRef)(!0),s=!0===(0,e.useRef)(null==a?void 0:a.ssr).current&&o.current;return o.current=!1,s&&(k.data.has(t)||l!==k.get(t,l))&&r(),void 0===l||k.data.has(t)||null!==localStorage.getItem(t)||k.set(t,l),(0,e.useMemo)((()=>[s?l:k.get(t,l),i,{isPersistent:s||!k.data.has(t),removeItem(){k.remove(t);for(const e of y)e.key===t&&e.forceUpdate()}}]),[n,t])}(t,a)};class C extends l.Component{render(){const{label:t,value:a,onClick:l,units:n,id:o,singleOption:s=!1}=this.props,c=s?[a]:n;return(0,e.createElement)(r.BaseControl,{label:t,id:o,className:"components-gblocks-units-control-header__units"},(0,e.createElement)("div",{className:"components-gblocks-control__units"},(0,e.createElement)(r.ButtonGroup,{className:"components-gblocks-control-buttons__units","aria-label":(0,i.__)("Select Units","generateblocks")},c.map((t=>{let n=t;return"px"===t&&(n=(0,i._x)("Pixel","A size unit for CSS markup","generateblocks")),"em"===t&&(n=(0,i._x)("Em","A size unit for CSS markup","generateblocks")),"%"===t&&(n=(0,i._x)("Percentage","A size unit for CSS markup","generateblocks")),"deg"===t&&(n=(0,i._x)("Degree","A size unit for CSS markup","generateblocks")),(0,e.createElement)(r.Tooltip
/* translators: Unit type (px, em, %) */,{text:(0,i.sprintf)((0,i.__)("%s Units","generateblocks"),n),key:t},(0,e.createElement)(r.Button,{key:t,className:"components-gblocks-control-button__units--"+t,size:"small",isPrimary:a===t,"aria-pressed":a===t
/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":(0,i.sprintf)((0,i.__)("%s Units","generateblocks"),n),onClick:()=>l(t)},t))})))))}}function _(e){return e||0===e}function E(e,t,a,l){let n=t[e=e.replace("Tablet","").replace("Mobile","")];return"Mobile"!==a||!t[e+"Tablet"]&&0!==t[e+"Tablet"]||(n=t[e+"Tablet"]),""!==n&&!1!==n&&void 0!==n||(n=l),n}function x(t){const{label:a,attributeName:n,attributes:o,setAttributes:s,units:c=[],unit:u="px",device:g,presets:d=[],min:p=0,max:b,step:m,id:k=n,defaultPlaceholder:v=""}=t,[y,x]=(0,l.useState)(!1),[S,T]=w("generateblocksCustomInputs",{ssr:!0,defaultValue:[]}),L={value:n,unit:n+"Unit"};g&&"Desktop"!==g&&(L.value+=g);const M=(0,h.applyFilters)("generateblocns.editor.numberPresets",d,t),B=M.length>0?M[0].data:[],I=M.length>0?M[0].unit:"px",O=B.length>0&&"object"==typeof B[0]?B.find((e=>e.value===o[L.value])):B.includes(o[L.value]),A="Desktop"!==g&&E(L.value,o,g,""),R=0===M.length||!!_(o[L.value])&&!O||A||y||S.some((e=>e.includes(n)));return(0,e.createElement)(r.BaseControl,{label:0===c.length?a:null,id:k,className:"gblocks-number-component"},c.length>0&&(0,e.createElement)(C,{label:a,id:k,value:o[L.unit]||u,units:c,singleOption:!R,onClick:e=>(void 0!==o[L.unit]&&s({[L.unit]:e}),!1)}),!R&&(0,e.createElement)(r.ButtonGroup,{className:"gblocks-component-number-presets"},B.map(((t,a)=>{const l="object"==typeof t?t.value:t,i="object"==typeof t?t.label:t;return(0,e.createElement)(r.Button,{key:a,isPrimary:l===o[L.value]||l===v&&!_(o[L.value]),onClick:()=>{o[L.value]!==l?s({[L.value]:l,[L.unit]:I}):s({[L.value]:""}),"verticalGap"===n&&s({useLegacyRowGap:!1})}},i)})),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Custom","generateblocks")},(0,e.createElement)(r.Button,{icon:f,onClick:()=>{x(!0),T([...S,n])}}))),R&&(0,e.createElement)("div",{className:"gblocks-number-component__input"},(0,e.createElement)(r.TextControl,{type:"number",value:_(o[L.value])?o[L.value]:"",placeholder:E(L.value,o,g,v),id:k,min:p,max:b,step:m,autoComplete:"off",onChange:e=>{p>=0&&(e=e.toString().replace(/-/g,"")),s({[L.value]:e})},onBlur:()=>{""!==o[L.value]&&!1!==o[L.value]&&s({[L.value]:parseFloat(o[L.value])}),"verticalGap"===n&&s({useLegacyRowGap:!1})},onClick:e=>{e.currentTarget.focus()}}),M.length>0&&(O||!_(o[L.value]))&&!A&&(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Presets","generateblocks")},(0,e.createElement)(r.Button,{icon:f,onClick:()=>{x(!1),s({[L.unit]:I}),T(S.filter((e=>e!==n)))}}))))}var S=t=>{const{attributes:a,state:n,deviceType:o,setAttributes:s}=t,{verticalAlignment:c,verticalAlignmentTablet:u,verticalAlignmentMobile:g,horizontalAlignment:d,horizontalAlignmentTablet:p,horizontalAlignmentMobile:b}=a;return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(x,{...t,label:(0,i.__)("Horizontal Gap","generateblocks"),attributeName:"horizontalGap",unit:"px",units:["px"],device:o,presets:[{unit:"px",data:[20,40,60,80]}]}),(0,e.createElement)(x,{...t,label:(0,i.__)("Vertical Gap","generateblocks"),attributeName:"verticalGap",unit:"px",units:["px"],device:o,presets:[{unit:"px",data:[20,40,60,80]}]}),"Desktop"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:c,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{s({verticalAlignment:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:d,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{s({horizontalAlignment:e})}})),"Tablet"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:u,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{s({verticalAlignmentTablet:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:p,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{s({horizontalAlignmentTablet:e})}})),"Mobile"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:g,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{s({verticalAlignmentMobile:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:b,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{s({horizontalAlignmentMobile:e})}})),(0,h.applyFilters)("generateblocks.editor.controls","","gridLayout",t,n))};const T=/[\s#]/g;var L=({anchor:t,setAttributes:a})=>(0,e.createElement)(r.TextControl,{label:(0,i.__)("HTML Anchor","generateblocks"),help:(0,i.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:t||"",onChange:e=>{const t=e.replace(T,"-");a({anchor:t})}});function M({value:t,onChange:a}){return t?(0,e.createElement)(r.TextControl,{label:(0,i.__)("Block label","generateblocks"),help:(0,i.__)("Add a label for this block in the List View.","generateblocks"),value:t,onChange:a}):null}var B=({anchor:t,blockLabel:a,setAttributes:l})=>(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(L,{anchor:t,setAttributes:l}),(0,e.createElement)(M,{value:a,onChange:e=>l({blockLabel:e})}));function I(e){let t="";for(const[a,l]of Object.entries(e)){if(l.length<1)continue;let e=a+"{",n=0;for(const[t,a]of Object.entries(l))for(const[t,l]of Object.entries(a))(l||0===l)&&(n++,e+=t+": "+l+";");e+="}",n>0&&(t+=e)}return t}function O(e){return!isNaN(parseFloat(e))&&isFinite(e)}function A(e,t){return!(!e&&0!==e)&&(O(e)&&t?e+t:e)}class R extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGap:l,verticalGap:n,verticalAlignment:r,horizontalAlignment:i,isQueryLoop:o,useLegacyRowGap:s}=t;let c=[];const u=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",g=o?u+" > .block-editor-inner-blocks":u+" > .gb-grid-column";return c[u]=[{"align-items":r,"justify-content":i,"margin-left":l||0===l?"-"+l+"px":null,"row-gap":s?"":A(n,"px")}],c[g]=[{"padding-left":A(l,"px"),"margin-bottom":s?A(n,"px"):""}],c=(0,h.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"grid"),(0,e.createElement)("style",null,I(c))}}class z extends l.Component{render(){let t=[];return t=(0,h.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"grid"),(0,e.createElement)("style",null,I(t))}}class D extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGapTablet:l,verticalGapTablet:n,verticalAlignmentTablet:r,horizontalAlignmentTablet:i,isQueryLoop:o,useLegacyRowGap:s}=t;let c=[];const u=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",g=o?u+" > .block-editor-inner-blocks":u+" > .gb-grid-column";return c[u]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==i?i:null,"margin-left":l||0===l?"-"+l+"px":null,"row-gap":s||!n&&0!==n?null:A(n,"px")}],c[g]=[{"padding-left":A(l,"px"),"margin-bottom":s&&(n||0===n)?A(n,"px"):null}],c=(0,h.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"grid"),(0,e.createElement)("style",null,I(c))}}class N extends l.Component{render(){let t=[];return t=(0,h.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"grid"),(0,e.createElement)("style",null,I(t))}}class F extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGapMobile:l,verticalGapMobile:n,verticalAlignmentMobile:r,horizontalAlignmentMobile:i,isQueryLoop:o,useLegacyRowGap:s}=t;let c=[];const u=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",g=o?u+" > .block-editor-inner-blocks":u+" > .gb-grid-column";return c[u]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==i?i:null,"margin-left":l||0===l?"-"+l+"px":null,"row-gap":s||!n&&0!==n?null:A(n,"px")}],c[g]=[{"padding-left":A(l,"px"),"margin-bottom":s&&(n||0===n)?A(n,"px"):null}],c=(0,h.applyFilters)("generateblocks.editor.mobileCSS",c,this.props,"grid"),(0,e.createElement)("style",null,I(c))}}var H=window.lodash,P=a.n(H);function V(e,t){return e.deviceType===t.deviceType&&e.clientId===t.clientId&&(a=e.attributes,l=t.attributes,Object.keys(a).every((e=>(0,H.isEqual)(a[e],l[e]))));var a,l}var j=(0,l.memo)((function(a){const l=(0,t.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=a?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(R,{...a}),l&&(0,e.createElement)(e.Fragment,null,"Desktop"===l&&(0,e.createElement)(z,{...a}),("Tablet"===l||"Mobile"===l)&&(0,e.createElement)(D,{...a}),"Tablet"===l&&(0,e.createElement)(N,{...a}),"Mobile"===l&&(0,e.createElement)(F,{...a})))}),V),G=window.wp.compose,W=(e="Desktop")=>{const[a,n]=w("generateblocksDeviceType",{ssr:!0,defaultValue:e});if(!(0,t.dispatch)("core/edit-post")||generateBlocksInfo&&!generateBlocksInfo.syncResponsivePreviews)return[a,e=>{n(e)}];const{__experimentalSetPreviewDeviceType:r=(()=>{})}=(0,t.useDispatch)("core/edit-post"),i=(0,t.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t=(()=>!1)}=e("core/edit-post");return t()}),[]);(0,l.useEffect)((()=>{i!==a&&n(i)}),[i]);const o=e=>{r(e),n(e)};return i!==a?[i,o]:[a,o]},U=e=>{const a=(0,t.useSelect)((t=>t("core/block-editor").getBlock(e)));return a?a.innerBlocks.length:0},Z=window.wp.coreData,q=()=>(0,t.useSelect)((e=>{const{getTaxonomies:t}=e(Z.store);return t({per_page:-1})||[]}),[]);const $={query:{},records:[],isLoading:!1};function K(e){return Object.assign({},$,e)}function J(e,t){const a={...e};switch(t.type){case"SET_RECORDS":return Object.assign({},a,{records:(0,H.orderBy)((0,H.unionBy)(a.records,t.payload,"id"),(e=>e.date),["desc"])});case"SET_QUERY":return Object.assign({},a,{query:Object.assign({},a.query,t.payload)});case"SET_IS_LOADING":return Object.assign({},a,{isLoading:t.payload});case"RESET":return Object.assign({},a,{records:[]});default:return a}}function Y(e=$){const[t,a]=(0,l.useReducer)(J,e,K);return{records:t.records,setRecords:(e=[])=>a({type:"SET_RECORDS",payload:e}),query:t.query,setQuery:(e={})=>a({type:"SET_QUERY",payload:e}),isLoading:t.isLoading,setIsLoading:(e=!1)=>a({type:"SET_IS_LOADING",payload:e}),reset:()=>a({type:"RESET"})}}function Q(e,t){return{...e,[t.type]:t.value}}function X(e,t,a="",n={}){const[r,i]=(0,l.useReducer)(Q,t),o=(0,h.applyFilters)("generateblocks.editor.panel.computedStyleSources",{},e,Object.keys(r),n),s=(0,l.useMemo)((()=>Object.values(r).some((e=>!0===e))),[r]),c=(0,l.useRef)(0),u=a?a.length:0,g=c.current!==u;return(0,l.useEffect)((()=>{c.current=u}),[a]),{dispatchControlGlobalStyle:i,styleSources:o,hasGlobalStyle:s,contentWasUpdated:g}}var ee=a(218),te=a.n(ee);function ae(e){return Object.entries(e).reduce(((e,[t,a])=>{if(t.includes("Tablet")?e.tablet[t.replace("Tablet","")]=a:t.includes("Mobile")&&(e.mobile[t.replace("Mobile","")]=a),te()(a)){const l=ae(a);e.desktop[t]=l.desktop,e.tablet[t]=l.tablet,e.mobile[t]=l.mobile}else e.desktop[t]=a;return e}),{desktop:{},tablet:{},mobile:{}})}function le(e,t="Tablet"){return Object.entries(e).reduce(((e,[a,l])=>(te()(l)?e[a]=le(l,t):e[a+t]=l,e)),{})}function ne(e,t){const[a]=W(),n="Desktop"!==a?a:"",r=(0,l.useMemo)((()=>ae(e)),[JSON.stringify(e)]),i=(0,l.useMemo)((()=>(e={},a="")=>{t(a?{[a]:le(e,n)}:le(e,n))}),[n,t,JSON.stringify(e)]);return[r[a.toLowerCase()],i]}const re=e=>e.reduce(((e,t)=>{if(t.name&&t.name.includes("generateblocks")&&t.attributes&&t.attributes.uniqueId&&(e.uniqueIds.push(t.attributes.uniqueId),e.clientIds.push(t.clientId)),t.innerBlocks){const{uniqueIds:a,clientIds:l}=re(t.innerBlocks);e.uniqueIds=e.uniqueIds.concat(a),e.clientIds=e.clientIds.concat(l)}return e}),{uniqueIds:[],clientIds:[]});var ie=a=>r=>{const{clientId:i,attributes:o}=r,{updateBlockAttributes:s}=(0,t.useDispatch)(n.store);return(0,l.useEffect)((()=>{const{uniqueIds:e,clientIds:t}=re(wp.data.select("core/block-editor").getBlocks().map((e=>{if("core/widget-area"!==e.name)return e;const t=wp.data.select("core/block-editor").getBlocks(e.clientId);return{...e,innerBlocks:t}})));if(!o.uniqueId||((e,t,a)=>e.filter((e=>e===t)).length>1&&a===e.lastIndexOf(t))(e,o.uniqueId,t.indexOf(i))){const e=(e=>e.substr(2,9).replace("-",""))(i);s(i,{uniqueId:e})}}),[i]),(0,e.createElement)(a,{...r})};function oe(e){return""===e.uniqueId}function se(e,t){return!e||e<t}function ce(e,t=[],a){return t.reduce(((t,l)=>{const n=l(t,e,a);return Object.assign({},n)}),{})}function ue(e){return function(t,a,l){return"css"===l||se(a.blockVersion,e)&&(t.blockVersion=e),t}}function ge({attrs:e={},attributeName:t,existingAttrs:a={},newAttrs:l={},oldAttrs:n={}}){return(0,H.isEmpty)(l)?e:{...e,[t]:{...a,...e[t],...l},...n}}function de(e,t,a){return"css"===a||t.isDynamic||(e.isDynamic=!0),e}function pe({blockVersionLessThan:e,oldDefaults:t}){return function(a,l,n){return"css"===n||!oe(l)&&se(l.blockVersion,e)&&(l.useGlobalStyle&&l.globalStyleId||_(l.horizontalGap)||(a.horizontalGap=t.horizontalGap)),a}}function be({blockVersionLessThan:e}){return function(t,a,l){return"css"===l||!oe(a)&&se(a.blockVersion,e)&&(t.useLegacyRowGap=!0),t}}function he({attributes:e,mode:t="",oldDefaults:a={}}){return ce(e,[de,pe({blockVersionLessThan:2,oldDefaults:a.v1_4_0}),be({blockVersionLessThan:3}),ue(3)],t)}function me({blockVersionLessThan:e,defaults:t={},attributesToMigrate:a=[]}){return function(l,n){if(se(n.blockVersion,e)){const e=function({attributesToMigrate:e,attributes:t={},defaults:a={}}){const l={},n={};return["","Tablet","Mobile"].forEach((r=>{e.forEach((e=>{const i=t[e+r];if(i||O(i)){const s="fontSize"===(o=e)?t.fontSizeUnit:"lineHeight"===o?t.lineHeightUnit:"letterSpacing"===o?"em":void 0;O(i)&&s?l[e+r]=i+s:"alignment"===e?l["textAlign"+r]=i:l[e+r]=i,Object.keys(a).length&&(n[e+r]=a[e+r]?.default?a[e+r].default:"",e.startsWith("fontSize")&&(n.fontSizeUnit=a.fontSizeUnit.default),e.startsWith("lineHeight")&&(n.lineHeightUnit=a.lineHeightUnit.default))}var o}))})),{newAttributes:l,oldAttributes:n}}({attributesToMigrate:a,attributes:{...n,...l},defaults:t});l=ge({attrs:l,attributeName:"typography",existingAttrs:n.typography,newAttrs:e.newAttributes,oldAttrs:e.oldAttributes})}return l}}function fe({blockVersionLessThan:e,defaults:t={}}){return function(a,l){if(se(l.blockVersion,e)){const e=function({attributes:e={},defaults:t={}}){const a={},l={};return["","Tablet","Mobile"].forEach((n=>{const r=e["iconSize"+n];e.hasIcon&&(r||O(r))&&(a["width"+n]=r+e.iconSizeUnit,a["height"+n]=r+e.iconSizeUnit,Object.keys(t).length&&(l["iconSize"+n]=t["iconSize"+n]?.default?t["iconSize"+n].default:"",l.iconSizeUnit=t.iconSizeUnit.default))})),{newAttributes:a,oldAttributes:l}}({attributes:{...l,...a},defaults:t});a=ge({attrs:a,attributeName:"iconStyles",existingAttrs:l.iconStyles,newAttrs:e.newAttributes,oldAttrs:e.oldAttributes})}return a}}function ke({blockVersionLessThan:e,defaults:t={}}){return function(a,l){if(se(l.blockVersion,e)){const e=function({attributes:e,defaults:t={}}){const a={},l={},n=["iconPaddingTop","iconPaddingRight","iconPaddingBottom","iconPaddingLeft"];return["","Tablet","Mobile"].forEach((r=>{n.forEach((n=>{const i=e[n+r];if(e.hasIcon&&O(i)){let o="";switch(n){case"iconPaddingTop":o="paddingTop";break;case"iconPaddingRight":o="paddingRight";break;case"iconPaddingBottom":o="paddingBottom";break;case"iconPaddingLeft":o="paddingLeft"}o&&(a[o+r]=i+e.iconPaddingUnit,Object.keys(t).length&&(l[n+r]=t[n+r]?.default?t[n+r].default:"",l.iconPaddingUnit=t.iconPaddingUnit.default))}}))})),{newAttributes:a,oldAttributes:l}}({attributes:{...l,...a},defaults:t});a=ge({attrs:a,attributeName:"iconStyles",existingAttrs:l.iconStyles,newAttrs:e.newAttributes,oldAttrs:e.oldAttributes})}return a}}function ve({blockVersionLessThan:e,defaults:t={},attributesToMigrate:a=[]}){return function(l,n){if(se(n.blockVersion,e)){const e=function({attributesToMigrate:e=[],attributes:t={},defaults:a={}}){const l={},n={};return["","Tablet","Mobile"].forEach((r=>{e.forEach((e=>{const i=t[e+r];var o;(i||O(i))&&e&&(l[e+r]=O(i)?i+((o=e).startsWith("padding")?t.paddingUnit:o.startsWith("margin")?t.marginUnit:void 0):i,Object.keys(a).length&&(n[e+r]=a[e+r]?.default?a[e+r].default:"",e.startsWith("padding")&&(n.paddingUnit=a.paddingUnit.default),e.startsWith("margin")&&(n.marginUnit=a.marginUnit.default)))}))})),{newAttributes:l,oldAttributes:n}}({attributesToMigrate:a,attributes:{...n,...l},defaults:t});l=ge({attrs:l,attributeName:"spacing",existingAttrs:n.spacing,newAttrs:e.newAttributes,oldAttrs:e.oldAttributes})}return l}}var ye={grad:.9,turn:360,rad:360/(2*Math.PI)},we=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Ce=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a+0},_e=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e>t?e:t},Ee=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},xe=function(e){return{r:_e(e.r,0,255),g:_e(e.g,0,255),b:_e(e.b,0,255),a:_e(e.a)}},Se=function(e){return{r:Ce(e.r),g:Ce(e.g),b:Ce(e.b),a:Ce(e.a,3)}},Te=/^#([0-9a-f]{3,8})$/i,Le=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Me=function(e){var t=e.r,a=e.g,l=e.b,n=e.a,r=Math.max(t,a,l),i=r-Math.min(t,a,l),o=i?r===t?(a-l)/i:r===a?2+(l-t)/i:4+(t-a)/i:0;return{h:60*(o<0?o+6:o),s:r?i/r*100:0,v:r/255*100,a:n}},Be=function(e){var t=e.h,a=e.s,l=e.v,n=e.a;t=t/360*6,a/=100,l/=100;var r=Math.floor(t),i=l*(1-a),o=l*(1-(t-r)*a),s=l*(1-(1-t+r)*a),c=r%6;return{r:255*[l,o,i,i,s,l][c],g:255*[s,l,l,o,i,i][c],b:255*[i,i,s,l,l,o][c],a:n}},Ie=function(e){return{h:Ee(e.h),s:_e(e.s,0,100),l:_e(e.l,0,100),a:_e(e.a)}},Oe=function(e){return{h:Ce(e.h),s:Ce(e.s),l:Ce(e.l),a:Ce(e.a,3)}},Ae=function(e){return Be((a=(t=e).s,{h:t.h,s:(a*=((l=t.l)<50?l:100-l)/100)>0?2*a/(l+a)*100:0,v:l+a,a:t.a}));var t,a,l},Re=function(e){return{h:(t=Me(e)).h,s:(n=(200-(a=t.s))*(l=t.v)/100)>0&&n<200?a*l/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,a,l,n},ze=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,De=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ne=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,He={string:[[function(e){var t=Te.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Ce(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Ce(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Ne.exec(e)||Fe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:xe({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ze.exec(e)||De.exec(e);if(!t)return null;var a,l,n=Ie({h:(a=t[1],l=t[2],void 0===l&&(l="deg"),Number(a)*(ye[l]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ae(n)},"hsl"]],object:[[function(e){var t=e.r,a=e.g,l=e.b,n=e.a,r=void 0===n?1:n;return we(t)&&we(a)&&we(l)?xe({r:Number(t),g:Number(a),b:Number(l),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,a=e.s,l=e.l,n=e.a,r=void 0===n?1:n;if(!we(t)||!we(a)||!we(l))return null;var i=Ie({h:Number(t),s:Number(a),l:Number(l),a:Number(r)});return Ae(i)},"hsl"],[function(e){var t=e.h,a=e.s,l=e.v,n=e.a,r=void 0===n?1:n;if(!we(t)||!we(a)||!we(l))return null;var i=function(e){return{h:Ee(e.h),s:_e(e.s,0,100),v:_e(e.v,0,100),a:_e(e.a)}}({h:Number(t),s:Number(a),v:Number(l),a:Number(r)});return Be(i)},"hsv"]]},Pe=function(e,t){for(var a=0;a<t.length;a++){var l=t[a][0](e);if(l)return[l,t[a][1]]}return[null,void 0]},Ve=function(e,t){var a=Re(e);return{h:a.h,s:_e(a.s+100*t,0,100),l:a.l,a:a.a}},je=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ge=function(e,t){var a=Re(e);return{h:a.h,s:a.s,l:_e(a.l+100*t,0,100),a:a.a}},We=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Pe(e.trim(),He.string):"object"==typeof e&&null!==e?Pe(e,He.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Ce(je(this.rgba),2)},e.prototype.isDark=function(){return je(this.rgba)<.5},e.prototype.isLight=function(){return je(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Se(this.rgba)).r,a=e.g,l=e.b,r=(n=e.a)<1?Le(Ce(255*n)):"","#"+Le(t)+Le(a)+Le(l)+r;var e,t,a,l,n,r},e.prototype.toRgb=function(){return Se(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Se(this.rgba)).r,a=e.g,l=e.b,(n=e.a)<1?"rgba("+t+", "+a+", "+l+", "+n+")":"rgb("+t+", "+a+", "+l+")";var e,t,a,l,n},e.prototype.toHsl=function(){return Oe(Re(this.rgba))},e.prototype.toHslString=function(){return t=(e=Oe(Re(this.rgba))).h,a=e.s,l=e.l,(n=e.a)<1?"hsla("+t+", "+a+"%, "+l+"%, "+n+")":"hsl("+t+", "+a+"%, "+l+"%)";var e,t,a,l,n},e.prototype.toHsv=function(){return e=Me(this.rgba),{h:Ce(e.h),s:Ce(e.s),v:Ce(e.v),a:Ce(e.a,3)};var e},e.prototype.invert=function(){return Ue({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ue(Ve(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ue(Ve(this.rgba,-e))},e.prototype.grayscale=function(){return Ue(Ve(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ue(Ge(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ue(Ge(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ue({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ce(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Re(this.rgba);return"number"==typeof e?Ue({h:e,s:t.s,l:t.l,a:t.a}):Ce(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ue(e).toHex()},e}(),Ue=function(e){return e instanceof We?e:new We(e)};function Ze(e,t){return e?(t||0===t)&&1!==t&&e.startsWith("#")?Ue(e).alpha(t).toRgbString():e:""}function qe({blockVersionLessThan:e,defaults:t={},attributesToMigrate:a=[]}){return function(l,n){if(se(n.blockVersion,e)){const e=function({attributesToMigrate:e=[],attributes:t={},defaults:a={}}){const l={},n={};return["","Tablet","Mobile"].forEach((r=>{e.forEach((e=>{const i=t[e+r];if(O(i)){let s=e;switch(e){case"borderSizeTop":s="borderTopWidth";break;case"borderSizeRight":s="borderRightWidth";break;case"borderSizeBottom":s="borderBottomWidth";break;case"borderSizeLeft":s="borderLeftWidth";break;case"borderRadiusTopLeft":s="borderTopLeftRadius";break;case"borderRadiusTopRight":s="borderTopRightRadius";break;case"borderRadiusBottomRight":s="borderBottomRightRadius";break;case"borderRadiusBottomLeft":s="borderBottomLeftRadius"}if(s){l[s+r]=i+((o=e).startsWith("borderSize")?"px":o.startsWith("borderRadius")?t.borderRadiusUnit:void 0);const c=Object.keys(a).length;s.includes("Width")&&(l[s.replace("Width","Style")+r]="solid",t.borderColor&&(l[s.replace("Width","Color")+r]=Ze(t.borderColor,t.borderColorOpacity),c&&(n.borderColor=a.borderColor?.default,n.borderColorOpacity=a.borderColorOpacity?.default)),t.borderColorHover&&(l[s.replace("Width","ColorHover")+r]=Ze(t.borderColorHover,t.borderColorHoverOpacity),c&&(n.borderColorHover=a.borderColorHover?.default,n.borderColorHoverOpacity=a.borderColorHoverOpacity?.default)),t.borderColorCurrent&&(l[s.replace("Width","ColorCurrent")+r]=t.borderColorCurrent,c&&(n.borderColorCurrent=a.borderColorCurrent?.default))),c&&(n[e+r]=a[e+r]?.default?a[e+r].default:"",e.startsWith("borderRadius")&&(n.borderRadiusUnit=a.borderRadiusUnit.default))}}var o}))})),{newAttributes:l,oldAttributes:n}}({attributesToMigrate:a,attributes:{...n,...l},defaults:t});l=ge({attrs:l,attributeName:"borders",existingAttrs:n.borders,newAttrs:e.newAttributes,oldAttrs:e.oldAttributes})}return l}}function $e(e,t,a){return"css"===a||(!t.hasIcon&&t.icon&&(e.hasIcon=!0),!t.hasUrl&&t.url&&(e.hasUrl=!0)),e}function Ke({blockVersionLessThan:e,oldDefaults:t}){return function(a,l,n){if("css"===n)return a;if(!oe(l)&&se(l.blockVersion,e)){const e=[];l.gradient&&e.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),e.forEach((e=>{_(l[e])||(a[e]=t[e])}))}return a}}function Je({blockVersionLessThan:e}){return function(t,a,l){return"css"===l||oe(a)||!se(a.blockVersion,e)||a.useGlobalStyle||(t={...t,display:"inline-flex",alignItems:"center",justifyContent:"center",alignment:"center"}),t}}function Ye({attributes:e,defaults:t,mode:a="",oldDefaults:l={}}){return ce(e,[$e,Ke({blockVersionLessThan:2,oldDefaults:l.v1_4_0}),Je({blockVersionLessThan:3}),ve({blockVersionLessThan:4,defaults:t,attributesToMigrate:["paddingTop","paddingRight","paddingBottom","paddingLeft","marginTop","marginRight","marginBottom","marginLeft"]}),qe({blockVersionLessThan:4,defaults:t,attributesToMigrate:["borderSizeTop","borderSizeRight","borderSizeBottom","borderSizeLeft","borderRadiusTopRight","borderRadiusBottomRight","borderRadiusBottomLeft","borderRadiusTopLeft"]}),me({blockVersionLessThan:4,defaults:t,attributesToMigrate:["fontFamily","fontSize","letterSpacing","fontWeight","textTransform","alignment"]}),fe({blockVersionLessThan:4,defaults:t}),ke({blockVersionLessThan:4,defaults:t}),ue(4)],a)}function Qe({blockVersionLessThan:e}){return function(t,a){if(!oe(a)&&se(a.blockVersion,e)){const e=function({attributes:e}){const t={},a={};return e.isGrid&&(e.width&&(t.width=e.width+"%",a.width=""),(e.widthTablet||e.autoWidthTablet)&&(t.widthTablet=e.autoWidthTablet?"auto":e.widthTablet+"%",a.widthTablet="",a.autoWidthTablet=!1),(e.widthMobile||e.autoWidthMobile)&&(t.widthMobile=e.autoWidthMobile?"auto":e.widthMobile+"%",a.widthMobile="",a.autoWidthMobile=!1)),e.minHeight&&(t.minHeight=e.minHeight+e.minHeightUnit,a.minHeight=!1,a.minHeightUnit="px"),e.minHeightTablet&&(t.minHeightTablet=e.minHeightTablet+e.minHeightUnitTablet,a.minHeightTablet=!1,a.minHeightUnitTablet="px"),e.minHeightMobile&&(t.minHeightMobile=e.minHeightMobile+e.minHeightUnitMobile,a.minHeightMobile=!1,a.minHeightUnitMobile="px"),{newAttributes:t,oldAttributes:a}}({attributes:{...a,...t}});t=ge({attrs:t,attributeName:"sizing",existingAttrs:a.sizing,newAttrs:e.newAttributes,oldAttrs:e.oldAttributes})}return t}}function Xe(e,t,a){return"css"===a?e:t.bgOptions&&Object.keys(t.bgOptions).length?(void 0===t.bgOptions.selector&&(e={...e,bgOptions:{...t.bgOptions,...e.bgOptions,selector:"element"}}),void 0===t.bgOptions.opacity&&(e={...e,bgOptions:{...t.bgOptions,...e.bgOptions,opacity:1}}),e):e}function et({blockVersionLessThan:e,oldDefaults:t}){return function(a,l,n){if("css"===n)return a;if(!oe(l)&&se(l.blockVersion,e)){const e=[];void 0!==l.useGlobalStyle&&l.useGlobalStyle||e.push("paddingTop","paddingRight","paddingBottom","paddingLeft"),l.isGrid&&e.push("width","widthMobile"),l.gradient&&e.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),e.forEach((e=>{_(l[e])||(a[e]=t[e])}))}return a}}function tt({blockVersionLessThan:e}){return function(t,a,l){if("css"===l)return t;if(!oe(a)&&se(a.blockVersion,e)){let e=a.gradient&&"pseudo-element"===a.gradientSelector&&!_(a.innerZindex);e||(e=!!a.bgImage&&void 0!==a.bgOptions.selector&&"pseudo-element"===a.bgOptions.selector),e||(e=void 0!==a.useAdvBackgrounds&&a.useAdvBackgrounds),e&&(t.innerZindex=1)}return t}}function at({blockVersionLessThan:e}){return function(t,a,l){return"css"===l||!oe(a)&&se(a.blockVersion,e)&&(t.useInnerContainer=!0),t}}function lt({blockVersionLessThan:e}){return function(t,a,l){return"css"===l||!oe(a)&&se(a.blockVersion,e)&&["","Tablet","Mobile"].forEach((e=>{a["flexBasis"+e]&&!isNaN(a["flexBasis"+e])&&(t["flexBasis"+e]=a["flexBasis"+e]+a.flexBasisUnit)})),t}}function nt({attributes:e,defaults:t,mode:a="",oldDefaults:l={}}){return ce(e,[de,Xe,tt({blockVersionLessThan:2}),et({blockVersionLessThan:2,oldDefaults:l.v1_4_0}),at({blockVersionLessThan:3}),lt({blockVersionLessThan:3}),Qe({blockVersionLessThan:3}),ve({blockVersionLessThan:4,defaults:t,attributesToMigrate:["paddingTop","paddingRight","paddingBottom","paddingLeft","marginTop","marginRight","marginBottom","marginLeft"]}),qe({blockVersionLessThan:4,defaults:t,attributesToMigrate:["borderSizeTop","borderSizeRight","borderSizeBottom","borderSizeLeft","borderRadiusTopRight","borderRadiusBottomRight","borderRadiusBottomLeft","borderRadiusTopLeft"]}),me({blockVersionLessThan:4,defaults:t,attributesToMigrate:["fontFamily","fontSize","fontWeight","textTransform","alignment"]}),ue(4)],a)}function rt({blockVersionLessThan:e}){return function(t,a,l){return"css"===l||!oe(a)&&se(a.blockVersion,e)&&(a.stack||a.fillHorizontalSpace)&&(a.stack&&(t.stackTablet=!0,t.stackMobile=!0),a.fillHorizontalSpace&&(t.fillHorizontalSpaceTablet=!0,t.fillHorizontalSpaceMobile=!0)),t}}function it({attributes:e,defaults:t,mode:a=""}){return ce(e,[de,rt({blockVersionLessThan:2}),ve({blockVersionLessThan:3,defaults:t,attributesToMigrate:["marginTop","marginRight","marginBottom","marginLeft"]}),ue(3)],a)}var ot=t=>a=>{const[l]=W();return(0,e.createElement)(t,{...a,deviceType:l})};function st(e){const{name:t,children:a}=e;return(0,h.doAction)("generateblocks.editor.panel.beforeFilters",e),(0,h.applyFilters)(t,a||"",e)}var ct=e=>e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype,ut={id:"",blockName:"",isInQueryLoop:!1,supports:{responsiveTabs:!1,settingsPanel:{enabled:!1,label:(0,i.__)("Block Settings","generateblocks"),icon:"wrench"},layout:{enabled:!1,display:!1,flexDirection:!1,flexWrap:!1,alignItems:!1,justifyContent:!1,columnGap:!1,rowGap:!1,zIndex:!1,position:!1,overflow:!1,themeWidth:!1},flexChildPanel:{enabled:!1,flex:!1,order:!1},sizingPanel:{enabled:!1,width:!1,height:!1,minWidth:!1,minHeight:!1,maxWidth:!1,maxHeight:!1,useGlobalMaxWidth:!1},typography:{enabled:!1,alignment:!1,fontWeight:!1,textTransform:!1,fontSize:!1,lineHeight:!1,letterSpacing:!1,fontFamily:!1},spacing:{enabled:!1,padding:!1,margin:!1,inlineWidth:!1,stackVertically:!1,fillHorizontalSpace:!1},borders:{enabled:!1,borderColors:[],borderTop:!1,borderRight:!1,borderBottom:!1,borderLeft:!1,borderRadius:!1},colors:{enabled:!1,elements:[]},backgroundPanel:{enabled:!1,backgroundImage:!1,backgroundGradient:!1},shapesPanel:{enabled:!1},icon:{enabled:!1,location:[],iconSize:!1}}},gt=(0,H.defaultsDeep)({id:"headline",supports:{responsiveTabs:!0,layout:{enabled:!0,display:!0,flexDirection:!0,flexWrap:!0,alignItems:!0,justifyContent:!0,columnGap:!0,rowGap:!0,zIndex:!0,position:!0},flexChildPanel:{enabled:!0,flex:!0,order:!0},sizingPanel:{enabled:!0,width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,useGlobalMaxWidth:!0},typography:{enabled:!0,alignment:!0,fontWeight:!0,textTransform:!0,fontSize:!0,lineHeight:!0,letterSpacing:!0,fontFamily:!0},spacing:{enabled:!0,padding:!0,margin:!0},borders:{enabled:!0,borderColors:[{state:"",tooltip:(0,i.__)("Border","generateblocks"),alpha:!0}],borderTop:!0,borderRight:!0,borderBottom:!0,borderLeft:!0,borderRadius:!0},colors:{enabled:!0,elements:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"}]},{group:"link",label:(0,i.__)("Link","generateblocks"),items:[{attribute:"linkColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"linkColorHover"}]},{group:"icon",label:(0,i.__)("Icon","generateblocks"),items:[{attribute:"iconColor",alpha:!0}]},{group:"highlight",label:(0,i.__)("Highlight","generateblocks"),items:[{attribute:"highlightTextColor"}]}]},icon:{enabled:!0,iconSize:!0}}},ut),dt=(0,H.defaultsDeep)({id:"buttonContainer",supports:{responsiveTabs:!0,spacing:{enabled:!0,margin:!0,stackVertically:!0,fillHorizontalSpace:!0}}},ut),pt=(0,H.defaultsDeep)({id:"button",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,icon:"button-settings"},layout:{enabled:!0,display:!0,flexDirection:!0,flexWrap:!0,alignItems:!0,justifyContent:!0,columnGap:!0,rowGap:!0,zIndex:!0,position:!0},flexChildPanel:{enabled:!0,flex:!0,order:!0},sizingPanel:{enabled:!0,width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,useGlobalMaxWidth:!0},typography:{enabled:!0,alignment:!0,fontWeight:!0,textTransform:!0,fontSize:!0,letterSpacing:!0,fontFamily:!0},spacing:{enabled:!0,padding:!0,margin:!0},borders:{enabled:!0,borderColors:[{state:"",tooltip:(0,i.__)("Border","generateblocks"),alpha:!0},{state:"Hover",tooltip:(0,i.__)("Border Hover","generateblocks"),alpha:!0}],borderTop:!0,borderRight:!0,borderBottom:!0,borderLeft:!0,borderRadius:!0},colors:{enabled:!0,elements:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"backgroundColorHover",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"textColorHover"}]}]},backgroundPanel:{enabled:!0,backgroundGradient:!0},icon:{enabled:!0,location:[{label:(0,i.__)("Left","generateblocks"),value:"left"},{label:(0,i.__)("Right","generateblocks"),value:"right"}],iconSize:!0}}},ut),bt=(0,H.defaultsDeep)({id:"image",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,icon:"backgrounds"},spacing:{enabled:!0,padding:!0,margin:!0},borders:{enabled:!0,borderColors:[{state:"",tooltip:(0,i.__)("Border","generateblocks"),alpha:!0}],borderTop:!0,borderRight:!0,borderBottom:!0,borderLeft:!0,borderRadius:!0}}},ut),ht=(0,H.defaultsDeep)({id:"grid",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,label:(0,i.__)("Layout","generateblocks"),icon:"layout"}}},ut),mt=(0,H.defaultsDeep)({id:"container",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,icon:"container-settings"},layout:{enabled:!0,display:!0,flexDirection:!0,flexWrap:!0,alignItems:!0,justifyContent:!0,columnGap:!0,rowGap:!0,zIndex:!0,position:!0,overflow:!0,themeWidth:!0},flexChildPanel:{enabled:!0,flex:!0,order:!0},sizingPanel:{enabled:!0,width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,useGlobalMaxWidth:!0},typography:{enabled:!0,alignment:!0,fontWeight:!0,textTransform:!0,fontSize:!0,fontFamily:!0},spacing:{enabled:!0,padding:!0,margin:!0},borders:{enabled:!0,borderColors:[{state:"",tooltip:(0,i.__)("Border","generateblocks"),alpha:!0},{state:"Hover",tooltip:(0,i.__)("Border Hover","generateblocks"),alpha:!0}],borderTop:!0,borderRight:!0,borderBottom:!0,borderLeft:!0,borderRadius:!0},colors:{enabled:!0,elements:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"}]},{group:"link",label:(0,i.__)("Link","generateblocks"),items:[{attribute:"linkColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"linkColorHover"}]}]},backgroundPanel:{enabled:!0,backgroundImage:!0,backgroundGradient:!0},shapesPanel:{enabled:!0}}},ut);const ft=(0,l.createContext)(ut),kt=t=>a=>{const l=(0,h.applyFilters)("generateblocks.editor.blockContext",(n=a.name,{"generateblocks/headline":gt,"generateblocks/button-container":dt,"generateblocks/button":pt,"generateblocks/image":bt,"generateblocks/grid":ht,"generateblocks/container":mt}[n]),a);var n;return(0,e.createElement)(ft.Provider,{value:l},(0,e.createElement)(t,{...a}))};function vt(e,t,a){let l=Object.assign({},e);return t.supports.layout.enabled&&(l=Object.assign({},l,function(e){const t={};return["display","flexDirection","flexWrap","alignItems","justifyContent","columnGap","rowGap","position","overflowX","overflowY"].forEach((a=>{t[a]={type:"string",default:e[a]},t[a+"Tablet"]={type:"string",default:e[a+"Tablet"]},t[a+"Mobile"]={type:"string",default:e[a+"Mobile"]}})),t.zindex={type:"number",default:e.zindex},t.zindexTablet={type:"number",default:e.zindexTablet},t.zindexMobile={type:"number",default:e.zindexMobile},t}(a))),t.supports.flexChildPanel.enabled&&(l=Object.assign({},l,function(e){const t=["flexGrow","flexShrink","order"],a={};return["flexGrow","flexShrink","flexBasis","order"].forEach((l=>{a[l]={type:t.includes(l)?"number":"string",default:e[l]},a[l+"Tablet"]={type:t.includes(l)?"number":"string",default:e[l+"Tablet"]},a[l+"Mobile"]={type:t.includes(l)?"number":"string",default:e[l+"Mobile"]}})),a}(a))),t.supports.sizingPanel.enabled&&(l=Object.assign({},l,{sizing:{type:"object",default:{}},useGlobalMaxWidth:{type:"boolean",default:!1}})),t.supports.typography.enabled&&(l=Object.assign({},l,function(e){return{typography:{type:"object",default:{}},fontWeight:{type:"string",default:e.fontWeight},textTransform:{type:"string",default:""},alignment:{type:"string",default:e.alignment},alignmentTablet:{type:"string",default:e.alignmentTablet},alignmentMobile:{type:"string",default:e.alignmentMobile},fontSize:{type:"number",default:e.fontSize},fontSizeTablet:{type:"number",default:e.fontSizeTablet},fontSizeMobile:{type:"number",default:e.fontSizeMobile},fontSizeUnit:{type:"string",default:e.fontSizeUnit},lineHeight:{type:"number",default:e.lineHeight},lineHeightTablet:{type:"number",default:e.lineHeightTablet},lineHeightMobile:{type:"number",default:e.lineHeightMobile},lineHeightUnit:{type:"string",default:e.lineHeightUnit},letterSpacing:{type:"number",default:e.letterSpacing},letterSpacingTablet:{type:"number",default:e.letterSpacingTablet},letterSpacingMobile:{type:"number",default:e.letterSpacingMobile},fontFamily:{type:"string",default:e.fontFamily},fontFamilyFallback:{type:"string",default:e.fontFamilyFallback},googleFont:{type:"boolean",default:e.googleFont},googleFontVariants:{type:"string",default:e.googleFontVariants}}}(a))),t.supports.spacing.enabled&&(l=Object.assign({},l,function(e){return{spacing:{type:"object",default:{}},marginTop:{type:"string",default:e.marginTop},marginRight:{type:"string",default:e.marginRight},marginBottom:{type:"string",default:e.marginBottom},marginLeft:{type:"string",default:e.marginLeft},marginUnit:{type:"string",default:e.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:e.marginTopTablet},marginRightTablet:{type:"string",default:e.marginRightTablet},marginBottomTablet:{type:"string",default:e.marginBottomTablet},marginLeftTablet:{type:"string",default:e.marginLeftTablet},marginTopMobile:{type:"string",default:e.marginTopMobile},marginRightMobile:{type:"string",default:e.marginRightMobile},marginBottomMobile:{type:"string",default:e.marginBottomMobile},marginLeftMobile:{type:"string",default:e.marginLeftMobile},paddingTop:{type:"string",default:e.paddingTop},paddingRight:{type:"string",default:e.paddingRight},paddingBottom:{type:"string",default:e.paddingBottom},paddingLeft:{type:"string",default:e.paddingLeft},paddingTopTablet:{type:"string",default:e.paddingTopTablet},paddingRightTablet:{type:"string",default:e.paddingRightTablet},paddingBottomTablet:{type:"string",default:e.paddingBottomTablet},paddingLeftTablet:{type:"string",default:e.paddingLeftTablet},paddingTopMobile:{type:"string",default:e.paddingTopMobile},paddingRightMobile:{type:"string",default:e.paddingRightMobile},paddingBottomMobile:{type:"string",default:e.paddingBottomMobile},paddingLeftMobile:{type:"string",default:e.paddingLeftMobile},paddingUnit:{type:"string",default:e.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:e.borderSizeTop},borderSizeRight:{type:"string",default:e.borderSizeRight},borderSizeBottom:{type:"string",default:e.borderSizeBottom},borderSizeLeft:{type:"string",default:e.borderSizeLeft},borderSizeTopTablet:{type:"string",default:e.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:e.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:e.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:e.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:e.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:e.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:e.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:e.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:e.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:e.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:e.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:e.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:e.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:e.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:e.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:e.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:e.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:e.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:e.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:e.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:e.borderRadiusTopLeftMobile},inlineWidth:{type:"boolean",default:e.inlineWidth},inlineWidthTablet:{type:"boolean",default:e.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:e.inlineWidthMobile},stack:{type:"boolean",default:e.stack},stackTablet:{type:"boolean",default:e.stackTablet},stackMobile:{type:"boolean",default:e.stackMobile},fillHorizontalSpace:{type:"boolean",default:e.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:e.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:e.fillHorizontalSpaceMobile}}}(a))),t.supports.borders.enabled&&(l=Object.assign({},l,{borders:{type:"object",default:{}}})),t.supports.colors.enabled&&(l=Object.assign({},l,function(e){return{backgroundColor:{type:"string",default:e.backgroundColor},backgroundColorOpacity:{type:"number",default:e.backgroundColorOpacity},backgroundColorHover:{type:"string",default:e.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:e.backgroundColorHoverOpacity},backgroundColorCurrent:{type:"string",default:e.backgroundColorCurrent},textColor:{type:"string",default:e.textColor},textColorHover:{type:"string",default:e.textColorHover},textColorCurrent:{type:"string",default:e.textColorCurrent},linkColor:{type:"string",default:e.linkColor},linkColorHover:{type:"string",default:e.linkColorHover},borderColor:{type:"string",default:e.borderColor},borderColorOpacity:{type:"number",default:e.borderColorOpacity},borderColorHover:{type:"string",default:e.borderColorHover},borderColorHoverOpacity:{type:"number",default:e.borderColorHoverOpacity},borderColorCurrent:{type:"string",default:e.borderColorCurrent},highlightTextColor:{type:"string",default:e.highlightTextColor}}}(a))),t.supports.backgroundPanel.enabled&&(l=Object.assign({},l,function(e){return{gradient:{type:"boolean",default:e.gradient},gradientDirection:{type:"number",default:e.gradientDirection},gradientColorOne:{type:"string",default:e.gradientColorOne},gradientColorOneOpacity:{type:"number",default:e.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:e.gradientColorStopOne},gradientColorTwo:{type:"string",default:e.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:e.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:e.gradientColorStopTwo}}}(a))),t.supports.icon.enabled&&(l=Object.assign({},l,function(e){return{icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:e.iconColor},iconColorOpacity:{type:"number",default:e.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:e.iconLocation},iconLocationTablet:{type:"string",default:e.iconLocationTablet},iconLocationMobile:{type:"string",default:e.iconLocationMobile},iconVerticalAlignment:{type:"string",default:e.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:e.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:e.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:e.iconPaddingTop},iconPaddingRight:{type:"string",default:e.iconPaddingRight},iconPaddingBottom:{type:"string",default:e.iconPaddingBottom},iconPaddingLeft:{type:"string",default:e.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:e.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:e.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:e.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:e.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:e.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:e.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:e.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:e.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:e.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:e.iconSize},iconSizeTablet:{type:"number",default:e.iconSizeTablet},iconSizeMobile:{type:"number",default:e.iconSizeMobile},iconSizeUnit:{type:"string",default:e.iconSizeUnit},removeText:{type:"boolean",default:e.removeText},iconStyles:{type:"object",default:{}}}}(a))),l}(0,h.addFilter)("generateblocks.editor.blockContext","generateblocks/editor/blockContext/default",(function(e,t){const a=void 0!==t.context["generateblocks/queryId"],l=t.name,n=t.clientId,r=t.deviceType;return Object.assign({},e,{isInQueryLoop:a,blockName:l,clientId:n,deviceType:r})}));var yt=ft;const wt=(0,l.forwardRef)((function(t,a){const{blockName:n}=(0,l.useContext)(yt),{icon:i,className:o,id:c,state:u,children:g,title:d=!1,initialOpen:p=!1,showPanel:b=!0,hasGlobalStyle:m=!1}=t,[f,k]=w("generateblocksPanels",{ssr:!0,defaultValue:{}});return(0,h.applyFilters)("generateblocks.editor.showPanel",b,c,t)?!g||ct(g)?null:(0,e.createElement)(st,{name:"generateblocks.editor.panel",blockName:n,state:u,panelRef:a,...t},(0,e.createElement)(st,{name:"generateblocks.panel."+c,props:t,state:u},d?(0,e.createElement)(r.PanelBody,{ref:a,title:d,initialOpen:void 0!==f[c]?f[c]:p,icon:i,className:s()(o,m&&"has-global-style"),onToggle:()=>{const e=f[c]||void 0===f[c]&&p;k({...f,[c]:!e})}},(0,h.applyFilters)("generateblocks.editor.panelContents",g,c,t)):(0,e.createElement)(r.PanelBody,null,(0,h.applyFilters)("generateblocks.editor.panelContents",g,c,t)))):null}));var Ct=wt;const _t=[{name:"generateblocks/button",id:"buttonDocumentation",url:"https://docs.generateblocks.com/collection/buttons/"},{name:"generateblocks/button-container",id:"buttonContainerDocumentation",url:"https://docs.generateblocks.com/collection/buttons/"},{name:"generateblocks/container",id:"containerDocumentation",url:"https://docs.generateblocks.com/collection/container/"},{name:"generateblocks/grid",id:"gridDocumentation",url:"https://docs.generateblocks.com/collection/grid/"},{name:"generateblocks/headline",id:"headlineDocumentation",url:"https://docs.generateblocks.com/collection/headline/"},{name:"generateblocks/image",id:"imageDocumentation",url:"https://docs.generateblocks.com/collection/image/"}],Et=(0,G.createHigherOrderComponent)((t=>a=>{const{name:r,state:o}=a,s=_t.find((e=>r===e.name));return s&&0!==s.length?(0,e.createElement)(l.Fragment,null,(0,e.createElement)(t,{...a}),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(Ct,{...a,title:(0,i.__)("Documentation","generateblocks"),icon:p("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:s.id,state:o},(0,e.createElement)("p",null,(0,i.__)("Need help with this block?","generateblocks")),(0,e.createElement)("a",{href:s.url,target:"_blank",rel:"noreferrer noopener"},(0,i.__)("Visit our documentation","generateblocks")),(0,h.applyFilters)("generateblocks.editor.controls","",s.id,a,o)))):(0,e.createElement)(t,{...a})}),"withDocumentation");function xt(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}function St(e,t,a){return"css"===a||!oe(t)&&se(t.blockVersion,2)&&(t.hasIcon&&(e.display="flex"),["","Tablet","Mobile"].forEach((a=>{t["inlineWidth"+a]&&(e["display"+a]=t.hasIcon?"inline-flex":"inline-block"),t.hasIcon&&("above"!==t["iconLocation"+a]&&t["alignment"+a]&&(e["justifyContent"+a]=xt(t.alignment+a)),"inline"===t["iconLocation"+a]&&t["iconVerticalAlignment"+a]&&(e["alignItems"+a]=xt(t.iconVerticalAlignment+a)),"above"===t["iconLocation"+a]&&(e["flexDirection"+a]="column"))}))),e}function Tt({attributes:e,defaults:t,mode:a}){return ce(e,[St,ve({blockVersionLessThan:3,defaults:t,attributesToMigrate:["paddingTop","paddingRight","paddingBottom","paddingLeft","marginTop","marginRight","marginBottom","marginLeft"]}),qe({blockVersionLessThan:3,defaults:t,attributesToMigrate:["borderSizeTop","borderSizeRight","borderSizeBottom","borderSizeLeft","borderRadiusTopRight","borderRadiusBottomRight","borderRadiusBottomLeft","borderRadiusTopLeft"]}),me({blockVersionLessThan:3,defaults:t,attributesToMigrate:["fontFamily","fontSize","lineHeight","letterSpacing","fontWeight","textTransform","alignment"]}),fe({blockVersionLessThan:3,defaults:t}),ke({blockVersionLessThan:3,defaults:t}),ue(3)],a)}function Lt({attributes:e,defaults:t,mode:a}){return ce(e,[ve({blockVersionLessThan:2,defaults:t,attributesToMigrate:["paddingTop","paddingRight","paddingBottom","paddingLeft","marginTop","marginRight","marginBottom","marginLeft"]}),qe({blockVersionLessThan:2,defaults:t,attributesToMigrate:["borderSizeTop","borderSizeRight","borderSizeBottom","borderSizeLeft","borderRadiusTopRight","borderRadiusBottomRight","borderRadiusBottomLeft","borderRadiusTopLeft"]}),ue(2)],a)}function Mt(t,a,l){var n=this,r=(0,e.useRef)(null),i=(0,e.useRef)(0),o=(0,e.useRef)(null),s=(0,e.useRef)([]),c=(0,e.useRef)(),u=(0,e.useRef)(),g=(0,e.useRef)(t),d=(0,e.useRef)(!0);g.current=t;var p=!a&&0!==a&&"undefined"!=typeof window;if("function"!=typeof t)throw new TypeError("Expected a function");a=+a||0;var b=!!(l=l||{}).leading,h=!("trailing"in l)||!!l.trailing,m="maxWait"in l,f=m?Math.max(+l.maxWait||0,a):null;(0,e.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var k=(0,e.useMemo)((function(){var e=function(e){var t=s.current,a=c.current;return s.current=c.current=null,i.current=e,u.current=g.current.apply(a,t)},t=function(e,t){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(e):setTimeout(e,t)},l=function(e){if(!d.current)return!1;var t=e-r.current,l=e-i.current;return!r.current||t>=a||t<0||m&&l>=f},k=function(t){return o.current=null,h&&s.current?e(t):(s.current=c.current=null,u.current)},v=function(){var e=Date.now();if(l(e))return k(e);if(d.current){var n=e-r.current,o=e-i.current,s=a-n,c=m?Math.min(s,f-o):s;t(v,c)}},y=function(){for(var g=[],p=0;p<arguments.length;p++)g[p]=arguments[p];var h=Date.now(),f=l(h);if(s.current=g,c.current=n,r.current=h,f){if(!o.current&&d.current)return i.current=r.current,t(v,a),b?e(r.current):u.current;if(m)return t(v,a),e(r.current)}return o.current||t(v,a),u.current};return y.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,s.current=r.current=c.current=o.current=null},y.isPending=function(){return!!o.current},y.flush=function(){return o.current?k(Date.now()):u.current},y}),[b,m,a,f,h,p]);return k}(0,h.addFilter)("editor.BlockEdit","generateblocks/with-documentation",Et,99),(0,h.addFilter)("generateblocks.editor.cssAttrs","generateblocks/migrateCssAttrs",((e,t)=>{const{name:a}=t;if(!e.useGlobalStyle)return e;let l=null;switch(a){case"generateblocks/button":l=Ye;break;case"generateblocks/button-container":l=it;break;case"generateblocks/container":l=nt;break;case"generateblocks/headline":l=Tt;break;case"generateblocks/grid":l=he;break;case"generateblocks/image":l=Lt}if(null!==l){const t=l({attributes:{...e,blockVersion:e.globalBlockVersion||1},mode:"css"}),a={};return Object.entries(t).forEach((([t,l])=>{(0,H.isObject)(l)?Object.entries(l).forEach((([l,n])=>{(0,H.isEmpty)(e[t]?.[l])&&(a[t]={...e[t],...a[t],[l]:n})})):(0,H.isEmpty)(e[t])&&(a[t]=l)})),{...e,...a}}return e}),1e3);const Bt=(0,l.memo)((function({blocks:t,contextId:a,setActiveContextId:l,isHidden:r}){const i=(0,n.__experimentalUseBlockPreview)({blocks:t}),o=()=>l(a),s={display:r?"none":void 0};return(0,e.createElement)("div",{...i,className:"block-editor-inner-blocks gb-query-loop-block-preview",tabIndex:0,role:"button",onClick:o,onKeyPress:o,style:s})}));function It(e){return e.map((e=>{const t=It(e.innerBlocks),a=Object.assign({},e.attributes,{isBlockPreview:!0});return Object.assign({},e,{attributes:a,innerBlocks:t})}))}function Ot(a){const{clientId:o,data:s,hasData:c,isResolvingData:u,hasResolvedData:g,templateLock:d,contextCallback:p}=a,b=(0,t.useSelect)((e=>e("core/block-editor")?.getBlocks(o)),[]),{getSelectedBlock:h}=(0,t.useSelect)(n.store),[m,f]=(0,l.useState)([]),[k,v]=(0,l.useState)();(0,l.useEffect)((()=>{f(It(b))}),[]);const y=Mt((()=>{f(It(b))}),10),w=["core/paragraph","core/heading","core/button","generateblocks/headline","generateblocks/button"];(0,l.useEffect)((()=>{const e=h();!w.includes(e?.name)||e?.attributes?.useDynamicData||e?.attributes?.dynamicContentType?f(It(b)):y()}),[JSON.stringify(b)]);const C=(0,l.useMemo)((()=>c&&s.map((e=>p(e)))),[s,c]);return u?(0,e.createElement)(r.Spinner,null):g&&!c?(0,e.createElement)("h5",null,(0,i.__)("No results found.","generateblocks")):C&&C.map((t=>(0,e.createElement)(n.BlockContextProvider,{key:t.postId,value:t},t.postId===(k||C[0]?.postId)?(0,e.createElement)(n.InnerBlocks,{...a,templateLock:d}):null,(0,e.createElement)(Bt,{blocks:m,contextId:t.postId,setActiveContextId:v,isHidden:t.postId===(k||C[0]?.postId)}))))}function At(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>"alt"===e||(Array.isArray(t)?!!t.length:!!t))))}function Rt(e,t=!1){return e.reduce(((e,a)=>Object.assign({},e,function(e,t=!1){return{[t?`${e.rest}_exclude`:e.rest]:{terms:e.terms,include_children:e?.includeChildren}}}(a,t))),{})}function zt(a){const{clientId:n,context:r}=a,i=r["generateblocks/query"]||{},o=(0,l.useMemo)((()=>function(e){let t=function(e){const t=e.per_page?e.per_page:10,a="-1"===e.per_page||parseInt(e.per_page)>parseInt(generateBlocksInfo.queryLoopEditorPostsCap)?generateBlocksInfo.queryLoopEditorPostsCap:t;let l;"exclude"===e.stickyPosts?l=!1:"only"===e.stickyPosts&&(l=!0);const n=Object.assign({},e,{per_page:a,sticky:l});return(0,h.applyFilters)("generateblocks.editor.query-loop.normalize-parameters",n)}(e);if(Array.isArray(t.tax_query)){const e=Rt(t.tax_query);t=Object.assign({},t,e,{tax_query:void 0})}if(Array.isArray(t.tax_query_exclude)){const e=Rt(t.tax_query_exclude,!0);t=Object.assign({},t,e,{tax_query_exclude:void 0})}return t}(At(i))),[JSON.stringify(i)]),{data:s,isResolvingData:c,hasResolvedData:u}=(0,t.useSelect)((e=>{const{getEntityRecords:t,isResolving:a,hasFinishedResolution:l,canUser:n}=e(Z.store);let r=o;n("update","settings")||(r={...r,status:"publish"});const s=["postType",i.post_type||"post",r];return{data:t(...s),isResolvingData:a("getEntityRecords",s),hasResolvedData:l("getEntityRecords",s)}}),[JSON.stringify(o)]);return(0,e.createElement)("div",{className:"gb-post-template-wrapper"},(0,e.createElement)(Ot,{data:s,hasData:!(!u||!s?.length),isResolvingData:c,hasResolvedData:u,templateLock:!0,clientId:n,contextCallback:e=>({postType:e.type,postId:e.id})}))}var Dt=(0,l.forwardRef)((function({icon:e,size:t=24,...a},n){return(0,l.cloneElement)(e,{width:t,height:t,...a,ref:n})})),Nt=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),Ft=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),Ht=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));const Pt=(0,l.memo)((function({deviceKey:t,label:a,isActive:l,onClick:n,icon:i}){return(0,e.createElement)(r.Tooltip,{text:a},(0,e.createElement)(r.Button,{isPressed:l,onClick:()=>n(t)},(0,e.createElement)(Dt,{icon:i})))})),Vt=[{key:"Desktop",label:(0,i.__)("Show options for all devices","generateblocks"),icon:Nt},{key:"Tablet",label:(0,i.__)("Show options for tablet devices","generateblocks"),icon:Ft},{key:"Mobile",label:(0,i.__)("Show options for mobile devices","generateblocks"),icon:Ht}];function jt(){const[t,a]=W(),n=(0,l.useCallback)(a,[]);return(0,e.createElement)(e.Fragment,null,Vt&&Vt.map((a=>(0,e.createElement)(Pt,{key:a.key,deviceKey:a.key,label:a.label,isActive:t===a.key,icon:a.icon,onClick:n}))))}var Gt=(0,l.memo)((function(){return(0,l.useEffect)((()=>{const t=document.querySelector(".block-editor-block-inspector"),a=document.querySelector(".gb-responsive-tabs");if(!t||a)return;const n=document.querySelector(".edit-post-sidebar .edit-post-sidebar__panel-tabs"),r=n?`${n.offsetHeight}px`:0,i=document.createElement("div");var o,s;i.classList.add("gb-responsive-tabs"),i.style.top=r,t.prepend(i),o=document.querySelector(".gb-responsive-tabs"),s=(0,e.createElement)(jt,null),void 0!==l.createRoot?(0,l.createRoot)(o).render(s):(0,l.render)(s,o)}),[]),null}));function Wt({value:t,onChange:a,units:l=[],disabled:n}){return l.length?(l.includes(t)||(l[l.length-1]=t),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.DropdownMenu,{className:"gblocks-unit-control-units",label:(0,i.__)("Select a unit","generateblocks"),icon:null,toggleProps:{children:t,disabled:n},popoverProps:{className:"gblocks-unit-control-popover",focusOnMount:!0,noArrow:!1}},(({onClose:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.MenuGroup,null,l.map((l=>(0,e.createElement)(r.MenuItem,{key:l,onClick:()=>{a(l),n()},isSelected:l===t,variant:l===t?"primary":""},l))),(0,e.createElement)(r.MenuItem,{onClick:()=>{window.open("https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units","_blank").focus()},label:(0,i.__)("Learn more about units","generateblocks"),showTooltip:!0},p("info")))))))):null}var Ut=["px","em","%","rem","vw","vh","ch","cm","mm","in","pt","pc","ex","lh","rlh","vmin","vmax","vb","vi","svw","svh","svb","svi","svmax","svmin","lvw","lvh","lvb","lvi","lvmax","lvmin","dvw","dvh","dvb","dvi","dvmax","dvmin","fr"];function Zt(t){const{label:a,units:n=[],defaultUnit:i="",unitCount:o=7,min:c=0,max:u,step:g,id:d,disabled:p=!1,overrideValue:b=null,overrideAction:h=(()=>null),onChange:m,value:f,placeholder:k,help:v="",focusOnMount:y=!1,onFocus:w=(()=>null)}=t,C=n.concat(Ut).slice(0,o),[_,E]=(0,l.useState)(""),[x,S]=(0,l.useState)(""),[T,L]=(0,l.useState)(""),M=(0,l.useRef)(!1),B=(0,l.useRef)(!1),I=(0,l.useRef)(!1),O=e=>{const t=Ut.join("|"),a=new RegExp(`(${t})`);return e?e.toString().toLowerCase().split(a).filter((e=>""!==e)):[]},A=e=>e.length>0?e[0].trim():"",R=i||C[0],z=e=>e.length>1?e[1]:R,D=e=>/^([-]?\d|[-]?\.)/.test(e),N=()=>{if(!f){const e=O(b||k);L(A(e)),E(z(e))}};return(0,l.useEffect)((()=>{const e=b&&p?b:f;if(D(e)){const t=O(e);S(A(t)),E(z(t))}else S(e),E("");N()}),[f,b]),(0,l.useEffect)((()=>{if(!M.current)return void(M.current=!0);const e=!!b&&!!p,t=D(x)?x+_:x;t||(_!==z(O(k))?L(""):N()),e||t===f||m(t)}),[x,_]),(0,l.useEffect)((()=>{y&&I?.current&&I.current.focus()}),[a]),(0,e.createElement)(r.BaseControl,{label:a,help:v,id:d,className:s()({"gblocks-unit-control":!0,"gblocks-unit-control__disabled":!!p})},(0,e.createElement)("div",{className:"gblocks-unit-control__input",ref:B},(0,e.createElement)(r.TextControl,{type:"text",value:x,placeholder:T,id:d,min:c,max:u,step:g,autoComplete:"off",disabled:p,onKeyDown:e=>{const t=e.key,a=e.target.value;"ArrowUp"===t?isNaN(a)||S(+a+1):"ArrowDown"===t&&(isNaN(a)||S(+a-1))},onChange:e=>S(e),onFocus:()=>{w()},ref:I}),(0,e.createElement)("div",{className:"gblocks-unit-control__input--action"},!!h&&(0,e.createElement)("div",{className:"gblocks-unit-control__override-action"},h()," "),(D(x)||!x&&(!T||D(T)))&&(0,e.createElement)(Wt,{value:_,disabled:p||1===C.length,units:C,onChange:e=>E(e)}))))}function qt({value:t,placeholder:a,onChange:l,label:n}){return(0,e.createElement)(Zt,{label:n,id:"gblocks-font-size",value:t,placeholder:a,onChange:l})}var $t=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),Kt=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),Jt=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),Yt=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})),Qt={fontFamily:generateBlocksInfo.typographyFontFamilyList,fontWeight:[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"normal",label:(0,i.__)("Normal","generateblocks")},{value:"bold",label:(0,i.__)("Bold","generateblocks")},{value:"100",label:(0,i.__)("100 - Thin","generateblocks")},{value:"200",label:(0,i.__)("200 - Extra light","generateblocks")},{value:"300",label:(0,i.__)("300 - Light","generateblocks")},{value:"400",label:(0,i.__)("400 - Normal","generateblocks")},{value:"500",label:(0,i.__)("500 - Medium","generateblocks")},{value:"600",label:(0,i.__)("600 - Semi bold","generateblocks")},{value:"700",label:(0,i.__)("700 - Bold","generateblocks")},{value:"800",label:(0,i.__)("800 - Extra bold","generateblocks")},{value:"900",label:(0,i.__)("900 - Black","generateblocks")}],textTransform:[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"uppercase",label:(0,i.__)("Uppercase","generateblocks")},{value:"lowercase",label:(0,i.__)("Lowercase","generateblocks")},{value:"capitalize",label:(0,i.__)("Capitalize","generateblocks")},{value:"initial",label:(0,i.__)("Normal","generateblocks")}],alignments:[{icon:$t,title:(0,i.__)("Align text left","generateblocks"),align:"left"},{icon:Kt,title:(0,i.__)("Align text center","generateblocks"),align:"center"},{icon:Jt,title:(0,i.__)("Align text right","generateblocks"),align:"right"},{icon:Yt,title:(0,i.__)("Justify text","generateblocks"),align:"justify"}]};function Xt({value:t,onChange:a,label:l}){return(0,e.createElement)(r.SelectControl,{labelPosition:"top",label:l,value:t,options:Qt.fontWeight,onChange:a})}function ea({value:t,onChange:a,label:l}){return(0,e.createElement)(r.SelectControl,{labelPosition:"top",label:l,value:t,options:Qt.textTransform,onChange:a})}function ta({value:t,placeholder:a,onChange:l,defaultUnit:n,label:r}){return(0,e.createElement)(Zt,{label:r,id:"gblocks-letter-spacing",defaultUnit:n,value:t,placeholder:a,onChange:l})}function aa({value:t,placeholder:a,onChange:l,defaultUnit:n,label:r}){return(0,e.createElement)(Zt,{label:r,id:"gblocks-line-height",defaultUnit:n,value:t,placeholder:a,onChange:l})}var la=JSON.parse('{"Roboto":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Open Sans":{"weight":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Noto Sans JP":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Lato":{"weight":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Montserrat":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Roboto Condensed":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"sans-serif"},"Source Sans Pro":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Oswald":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Poppins":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Roboto Mono":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"monospace"},"Noto Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Raleway":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"PT Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Roboto Slab":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Merriweather":{"weight":["300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"serif"},"Ubuntu":{"weight":["300","300italic","regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Playfair Display":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Nunito":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Noto Sans KR":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Open Sans Condensed":{"weight":["300","300italic","700"],"fallback":"sans-serif"},"Rubik":{"weight":["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Lora":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Work Sans":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Mukta":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Noto Sans TC":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Nunito Sans":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"PT Serif":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Nanum Gothic":{"weight":["regular","700","800"],"fallback":"sans-serif"},"Inter":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Fira Sans":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Noto Serif":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Quicksand":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Titillium Web":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],"fallback":"sans-serif"},"Hind Siliguri":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Karla":{"weight":["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"sans-serif"},"Barlow":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Inconsolata":{"weight":["200","300","regular","500","600","700","800","900"],"fallback":"monospace"},"Heebo":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Noto Sans SC":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Oxygen":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Source Code Pro":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],"fallback":"monospace"},"Anton":{"weight":["regular"],"fallback":"sans-serif"},"Josefin Sans":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Arimo":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"PT Sans Narrow":{"weight":["regular","700"],"fallback":"sans-serif"},"IBM Plex Sans":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Dosis":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Noto Sans HK":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Libre Franklin":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Libre Baskerville":{"weight":["regular","italic","700"],"fallback":"serif"},"Cabin":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Hind":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Bitter":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Crimson Text":{"weight":["regular","italic","600","600italic","700","700italic"],"fallback":"serif"},"Bebas Neue":{"weight":["regular"],"fallback":"display"},"Lobster":{"weight":["regular"],"fallback":"display"},"Yanone Kaffeesatz":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Dancing Script":{"weight":["regular","500","600","700"],"fallback":"handwriting"},"Cairo":{"weight":["200","300","regular","600","700","900"],"fallback":"sans-serif"},"Abel":{"weight":["regular"],"fallback":"sans-serif"},"Fjalla One":{"weight":["regular"],"fallback":"sans-serif"},"Varela Round":{"weight":["regular"],"fallback":"sans-serif"},"Source Serif Pro":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],"fallback":"serif"},"Arvo":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"EB Garamond":{"weight":["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],"fallback":"serif"},"Barlow Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Architects Daughter":{"weight":["regular"],"fallback":"handwriting"},"Zilla Slab":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Indie Flower":{"weight":["regular"],"fallback":"handwriting"},"Mulish":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Comfortaa":{"weight":["300","regular","500","600","700"],"fallback":"display"},"DM Sans":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Pacifico":{"weight":["regular"],"fallback":"handwriting"},"Exo 2":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Kanit":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Prompt":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Shadows Into Light":{"weight":["regular"],"fallback":"handwriting"},"Questrial":{"weight":["regular"],"fallback":"sans-serif"},"Merriweather Sans":{"weight":["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"sans-serif"},"Teko":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Balsamiq Sans":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Asap":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Hind Madurai":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Cormorant Garamond":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Antic Slab":{"weight":["regular"],"fallback":"serif"},"Archivo Narrow":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Overpass":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Abril Fatface":{"weight":["regular"],"fallback":"display"},"Slabo 27px":{"weight":["regular"],"fallback":"serif"},"Exo":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Assistant":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Maven Pro":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Domine":{"weight":["regular","500","600","700"],"fallback":"serif"},"Fira Sans Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Caveat":{"weight":["regular","500","600","700"],"fallback":"handwriting"},"Rajdhani":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"IBM Plex Serif":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Martel":{"weight":["200","300","regular","600","700","800","900"],"fallback":"serif"},"Play":{"weight":["regular","700"],"fallback":"sans-serif"},"Amatic SC":{"weight":["regular","700"],"fallback":"handwriting"},"Bree Serif":{"weight":["regular"],"fallback":"serif"},"Tajawal":{"weight":["200","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Noto Serif JP":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Righteous":{"weight":["regular"],"fallback":"display"},"Satisfy":{"weight":["regular"],"fallback":"handwriting"},"Signika":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Catamaran":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Acme":{"weight":["regular"],"fallback":"sans-serif"},"Manrope":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Fredoka One":{"weight":["regular"],"fallback":"display"},"Nanum Myeongjo":{"weight":["regular","700","800"],"fallback":"serif"},"ABeeZee":{"weight":["regular","italic"],"fallback":"sans-serif"},"Amiri":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Patrick Hand":{"weight":["regular"],"fallback":"handwriting"},"PT Sans Caption":{"weight":["regular","700"],"fallback":"sans-serif"},"Archivo":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Alfa Slab One":{"weight":["regular"],"fallback":"display"},"Cinzel":{"weight":["regular","500","600","700","800","900"],"fallback":"serif"},"Crete Round":{"weight":["regular","italic"],"fallback":"serif"},"Permanent Marker":{"weight":["regular"],"fallback":"handwriting"},"Alegreya Sans":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Almarai":{"weight":["300","regular","700","800"],"fallback":"sans-serif"},"Barlow Semi Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Russo One":{"weight":["regular"],"fallback":"sans-serif"},"Vollkorn":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Sarabun":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Krona One":{"weight":["regular"],"fallback":"sans-serif"},"M PLUS Rounded 1c":{"weight":["100","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Noticia Text":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Courgette":{"weight":["regular"],"fallback":"handwriting"},"Monda":{"weight":["regular","700"],"fallback":"sans-serif"},"Alegreya":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Frank Ruhl Libre":{"weight":["300","regular","500","700","900"],"fallback":"serif"},"Patua One":{"weight":["regular"],"fallback":"display"},"Ubuntu Condensed":{"weight":["regular"],"fallback":"sans-serif"},"Great Vibes":{"weight":["regular"],"fallback":"handwriting"},"Quattrocento Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"M PLUS 1p":{"weight":["100","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Spartan":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Yantramanav":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Lobster Two":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Archivo Black":{"weight":["regular"],"fallback":"sans-serif"},"Kaushan Script":{"weight":["regular"],"fallback":"handwriting"},"Tinos":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Cardo":{"weight":["regular","italic","700"],"fallback":"serif"},"Orbitron":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Sacramento":{"weight":["regular"],"fallback":"handwriting"},"IBM Plex Mono":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"monospace"},"Francois One":{"weight":["regular"],"fallback":"sans-serif"},"Luckiest Guy":{"weight":["regular"],"fallback":"display"},"Gothic A1":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Kalam":{"weight":["300","regular","700"],"fallback":"handwriting"},"Parisienne":{"weight":["regular"],"fallback":"handwriting"},"Gloria Hallelujah":{"weight":["regular"],"fallback":"handwriting"},"Didact Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Cantarell":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Press Start 2P":{"weight":["regular"],"fallback":"display"},"Jost":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Rokkitt":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Paytone One":{"weight":["regular"],"fallback":"sans-serif"},"Prata":{"weight":["regular"],"fallback":"serif"},"Baloo 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Cuprum":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Chivo":{"weight":["300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Encode Sans":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"News Cycle":{"weight":["regular","700"],"fallback":"sans-serif"},"Old Standard TT":{"weight":["regular","italic","700"],"fallback":"serif"},"Hind Guntur":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Pathway Gothic One":{"weight":["regular"],"fallback":"sans-serif"},"Red Hat Display":{"weight":["regular","italic","500","500italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Public Sans":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Secular One":{"weight":["regular"],"fallback":"sans-serif"},"Volkhov":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Concert One":{"weight":["regular"],"fallback":"display"},"Asap Condensed":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Montserrat Alternates":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Ropa Sans":{"weight":["regular","italic"],"fallback":"sans-serif"},"Josefin Slab":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"serif"},"Poiret One":{"weight":["regular"],"fallback":"display"},"Passion One":{"weight":["regular","700","900"],"fallback":"display"},"Padauk":{"weight":["regular","700"],"fallback":"sans-serif"},"Changa":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Saira Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Ultra":{"weight":["regular"],"fallback":"serif"},"Quattrocento":{"weight":["regular","700"],"fallback":"serif"},"Arapey":{"weight":["regular","italic"],"fallback":"serif"},"Vidaloka":{"weight":["regular"],"fallback":"serif"},"Playfair Display SC":{"weight":["regular","italic","700","700italic","900","900italic"],"fallback":"serif"},"Cookie":{"weight":["regular"],"fallback":"handwriting"},"Chakra Petch":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Istok Web":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Cormorant":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"DM Serif Display":{"weight":["regular","italic"],"fallback":"serif"},"Neuton":{"weight":["200","300","regular","italic","700","800"],"fallback":"serif"},"Spectral":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"serif"},"Sawarabi Mincho":{"weight":["regular"],"fallback":"sans-serif"},"Lemonada":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Yellowtail":{"weight":["regular"],"fallback":"handwriting"},"Handlee":{"weight":["regular"],"fallback":"handwriting"},"Merienda":{"weight":["regular","700"],"fallback":"handwriting"},"Philosopher":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Sanchez":{"weight":["regular","italic"],"fallback":"serif"},"Hammersmith One":{"weight":["regular"],"fallback":"sans-serif"},"Special Elite":{"weight":["regular"],"fallback":"display"},"Economica":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Staatliches":{"weight":["regular"],"fallback":"display"},"Sriracha":{"weight":["regular"],"fallback":"handwriting"},"Hind Vadodara":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Monoton":{"weight":["regular"],"fallback":"display"},"Ruda":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Advent Pro":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Saira":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Homemade Apple":{"weight":["regular"],"fallback":"handwriting"},"Sigmar One":{"weight":["regular"],"fallback":"display"},"Mitr":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Bangers":{"weight":["regular"],"fallback":"display"},"Khand":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Faustina":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Saira Semi Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Cabin Condensed":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Gudea":{"weight":["regular","italic","700"],"fallback":"sans-serif"},"Fira Sans Extra Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"DM Serif Text":{"weight":["regular","italic"],"fallback":"serif"},"El Messiri":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Electrolize":{"weight":["regular"],"fallback":"sans-serif"},"Taviraj":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"PT Mono":{"weight":["regular"],"fallback":"monospace"},"Gentium Basic":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Space Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Alice":{"weight":["regular"],"fallback":"serif"},"Unica One":{"weight":["regular"],"fallback":"display"},"Ubuntu Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Pragati Narrow":{"weight":["regular","700"],"fallback":"sans-serif"},"Noto Serif TC":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Amaranth":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Karma":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Actor":{"weight":["regular"],"fallback":"sans-serif"},"Nanum Pen Script":{"weight":["regular"],"fallback":"handwriting"},"Noto Serif SC":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Tangerine":{"weight":["regular","700"],"fallback":"handwriting"},"Carter One":{"weight":["regular"],"fallback":"display"},"Neucha":{"weight":["regular"],"fallback":"handwriting"},"Unna":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Pontano Sans":{"weight":["regular"],"fallback":"sans-serif"},"Bai Jamjuree":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Marck Script":{"weight":["regular"],"fallback":"handwriting"},"BenchNine":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Fugaz One":{"weight":["regular"],"fallback":"display"},"Yeseva One":{"weight":["regular"],"fallback":"display"},"Eczar":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Bad Script":{"weight":["regular"],"fallback":"handwriting"},"Viga":{"weight":["regular"],"fallback":"sans-serif"},"Gentium Book Basic":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Jura":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Allura":{"weight":["regular"],"fallback":"handwriting"},"Palanquin":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Sawarabi Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Rock Salt":{"weight":["regular"],"fallback":"handwriting"},"Lusitana":{"weight":["regular","700"],"fallback":"serif"},"Alef":{"weight":["regular","700"],"fallback":"sans-serif"},"Julius Sans One":{"weight":["regular"],"fallback":"sans-serif"},"Tenor Sans":{"weight":["regular"],"fallback":"sans-serif"},"Nothing You Could Do":{"weight":["regular"],"fallback":"handwriting"},"Cutive Mono":{"weight":["regular"],"fallback":"monospace"},"Khula":{"weight":["300","regular","600","700","800"],"fallback":"sans-serif"},"Adamina":{"weight":["regular"],"fallback":"serif"},"Playball":{"weight":["regular"],"fallback":"display"},"Audiowide":{"weight":["regular"],"fallback":"display"},"Jaldi":{"weight":["regular","700"],"fallback":"sans-serif"},"Black Ops One":{"weight":["regular"],"fallback":"display"},"Signika Negative":{"weight":["300","regular","600","700"],"fallback":"sans-serif"},"Shadows Into Light Two":{"weight":["regular"],"fallback":"handwriting"},"Armata":{"weight":["regular"],"fallback":"sans-serif"},"Mali":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"handwriting"},"Antic":{"weight":["regular"],"fallback":"sans-serif"},"Varela":{"weight":["regular"],"fallback":"sans-serif"},"Berkshire Swash":{"weight":["regular"],"fallback":"handwriting"},"Aleo":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"serif"},"Gelasio":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Rufina":{"weight":["regular","700"],"fallback":"serif"},"Markazi Text":{"weight":["regular","500","600","700"],"fallback":"serif"},"Nanum Gothic Coding":{"weight":["regular","700"],"fallback":"monospace"},"Allan":{"weight":["regular","700"],"fallback":"display"},"Noto Serif KR":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Abhaya Libre":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Quantico":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Marcellus":{"weight":["regular"],"fallback":"serif"},"Sorts Mill Goudy":{"weight":["regular","italic"],"fallback":"serif"},"Alata":{"weight":["regular"],"fallback":"sans-serif"},"Knewave":{"weight":["regular"],"fallback":"display"},"Alex Brush":{"weight":["regular"],"fallback":"handwriting"},"Aclonica":{"weight":["regular"],"fallback":"sans-serif"},"Gruppo":{"weight":["regular"],"fallback":"display"},"Damion":{"weight":["regular"],"fallback":"handwriting"},"Itim":{"weight":["regular"],"fallback":"handwriting"},"Bungee":{"weight":["regular"],"fallback":"display"},"Gochi Hand":{"weight":["regular"],"fallback":"handwriting"},"Mr Dafoe":{"weight":["regular"],"fallback":"handwriting"},"Freckle Face":{"weight":["regular"],"fallback":"display"},"Baloo Chettan 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Trirong":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Kosugi Maru":{"weight":["regular"],"fallback":"sans-serif"},"Rubik Mono One":{"weight":["regular"],"fallback":"sans-serif"},"Fira Mono":{"weight":["regular","500","700"],"fallback":"monospace"},"Cantata One":{"weight":["regular"],"fallback":"serif"},"Suez One":{"weight":["regular"],"fallback":"serif"},"Niconne":{"weight":["regular"],"fallback":"handwriting"},"Six Caps":{"weight":["regular"],"fallback":"sans-serif"},"Miriam Libre":{"weight":["regular","700"],"fallback":"sans-serif"},"Sarala":{"weight":["regular","700"],"fallback":"sans-serif"},"Sintony":{"weight":["regular","700"],"fallback":"sans-serif"},"Titan One":{"weight":["regular"],"fallback":"display"},"Encode Sans Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Cousine":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"PT Serif Caption":{"weight":["regular","italic"],"fallback":"serif"},"Courier Prime":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Overlock":{"weight":["regular","italic","700","700italic","900","900italic"],"fallback":"display"},"Allerta":{"weight":["regular"],"fallback":"sans-serif"},"Arsenal":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Black Han Sans":{"weight":["regular"],"fallback":"sans-serif"},"Squada One":{"weight":["regular"],"fallback":"display"},"Lateef":{"weight":["regular"],"fallback":"handwriting"},"Arima Madurai":{"weight":["100","200","300","regular","500","700","800","900"],"fallback":"display"},"Ramabhadra":{"weight":["regular"],"fallback":"sans-serif"},"Covered By Your Grace":{"weight":["regular"],"fallback":"handwriting"},"Martel Sans":{"weight":["200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Rancho":{"weight":["regular"],"fallback":"handwriting"},"Enriqueta":{"weight":["regular","500","600","700"],"fallback":"serif"},"Syncopate":{"weight":["regular","700"],"fallback":"sans-serif"},"Pinyon Script":{"weight":["regular"],"fallback":"handwriting"},"Chewy":{"weight":["regular"],"fallback":"display"},"Oleo Script":{"weight":["regular","700"],"fallback":"display"},"Kreon":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Candal":{"weight":["regular"],"fallback":"sans-serif"},"Spinnaker":{"weight":["regular"],"fallback":"sans-serif"},"Reem Kufi":{"weight":["regular"],"fallback":"sans-serif"},"Krub":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Michroma":{"weight":["regular"],"fallback":"sans-serif"},"Annie Use Your Telescope":{"weight":["regular"],"fallback":"handwriting"},"Lilita One":{"weight":["regular"],"fallback":"display"},"Coda":{"weight":["regular","800"],"fallback":"display"},"Fredericka the Great":{"weight":["regular"],"fallback":"display"},"Mukta Malar":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Bowlby One SC":{"weight":["regular"],"fallback":"display"},"Average":{"weight":["regular"],"fallback":"serif"},"Londrina Solid":{"weight":["100","300","regular","900"],"fallback":"display"},"New Tegomin":{"weight":["regular"],"fallback":"serif"},"Glegoo":{"weight":["regular","700"],"fallback":"serif"},"Pridi":{"weight":["200","300","regular","500","600","700"],"fallback":"serif"},"Boogaloo":{"weight":["regular"],"fallback":"display"},"Red Hat Text":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Aldrich":{"weight":["regular"],"fallback":"sans-serif"},"Basic":{"weight":["regular"],"fallback":"sans-serif"},"Capriola":{"weight":["regular"],"fallback":"sans-serif"},"Forum":{"weight":["regular"],"fallback":"display"},"Reenie Beanie":{"weight":["regular"],"fallback":"handwriting"},"Laila":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Alegreya Sans SC":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Share Tech Mono":{"weight":["regular"],"fallback":"monospace"},"Italianno":{"weight":["regular"],"fallback":"handwriting"},"Lalezar":{"weight":["regular"],"fallback":"display"},"Lexend Deca":{"weight":["regular"],"fallback":"sans-serif"},"Caveat Brush":{"weight":["regular"],"fallback":"handwriting"},"Shrikhand":{"weight":["regular"],"fallback":"display"},"Creepster":{"weight":["regular"],"fallback":"display"},"Kameron":{"weight":["regular","700"],"fallback":"serif"},"Coda Caption":{"weight":["800"],"fallback":"sans-serif"},"Goudy Bookletter 1911":{"weight":["regular"],"fallback":"serif"},"Coming Soon":{"weight":["regular"],"fallback":"handwriting"},"Saira Extra Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Yrsa":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Telex":{"weight":["regular"],"fallback":"sans-serif"},"Bevan":{"weight":["regular"],"fallback":"display"},"Voltaire":{"weight":["regular"],"fallback":"sans-serif"},"Days One":{"weight":["regular"],"fallback":"sans-serif"},"Cabin Sketch":{"weight":["regular","700"],"fallback":"display"},"Norican":{"weight":["regular"],"fallback":"handwriting"},"Rambla":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Mukta Vaani":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Average Sans":{"weight":["regular"],"fallback":"sans-serif"},"Arbutus Slab":{"weight":["regular"],"fallback":"serif"},"Sansita":{"weight":["regular","italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Mada":{"weight":["200","300","regular","500","600","700","900"],"fallback":"sans-serif"},"Just Another Hand":{"weight":["regular"],"fallback":"handwriting"},"Nobile":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Gilda Display":{"weight":["regular"],"fallback":"serif"},"VT323":{"weight":["regular"],"fallback":"monospace"},"Mandali":{"weight":["regular"],"fallback":"sans-serif"},"Caudex":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Anonymous Pro":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Bentham":{"weight":["regular"],"fallback":"serif"},"Overpass Mono":{"weight":["300","regular","600","700"],"fallback":"monospace"},"Sen":{"weight":["regular","700","800"],"fallback":"sans-serif"},"Kadwa":{"weight":["regular","700"],"fallback":"serif"},"Cambay":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Yesteryear":{"weight":["regular"],"fallback":"handwriting"},"Molengo":{"weight":["regular"],"fallback":"sans-serif"},"Nixie One":{"weight":["regular"],"fallback":"display"},"Scada":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Crimson Pro":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Arizonia":{"weight":["regular"],"fallback":"handwriting"},"Racing Sans One":{"weight":["regular"],"fallback":"display"},"Scheherazade":{"weight":["regular","700"],"fallback":"serif"},"Seaweed Script":{"weight":["regular"],"fallback":"display"},"Belleza":{"weight":["regular"],"fallback":"sans-serif"},"Harmattan":{"weight":["regular","700"],"fallback":"sans-serif"},"Leckerli One":{"weight":["regular"],"fallback":"handwriting"},"Ovo":{"weight":["regular"],"fallback":"serif"},"Merienda One":{"weight":["regular"],"fallback":"handwriting"},"Holtwood One SC":{"weight":["regular"],"fallback":"serif"},"Cinzel Decorative":{"weight":["regular","700","900"],"fallback":"display"},"Literata":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Mrs Saint Delafield":{"weight":["regular"],"fallback":"handwriting"},"Schoolbell":{"weight":["regular"],"fallback":"handwriting"},"Bungee Inline":{"weight":["regular"],"fallback":"display"},"Herr Von Muellerhoff":{"weight":["regular"],"fallback":"handwriting"},"Oranienbaum":{"weight":["regular"],"fallback":"serif"},"Baloo Tamma 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Sniglet":{"weight":["regular","800"],"fallback":"display"},"Bubblegum Sans":{"weight":["regular"],"fallback":"display"},"Rochester":{"weight":["regular"],"fallback":"handwriting"},"Judson":{"weight":["regular","italic","700"],"fallback":"serif"},"Marcellus SC":{"weight":["regular"],"fallback":"serif"},"Darker Grotesque":{"weight":["300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Changa One":{"weight":["regular","italic"],"fallback":"display"},"Alegreya SC":{"weight":["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Pattaya":{"weight":["regular"],"fallback":"sans-serif"},"Mallanna":{"weight":["regular"],"fallback":"sans-serif"},"Share":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Podkova":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Allerta Stencil":{"weight":["regular"],"fallback":"sans-serif"},"Charm":{"weight":["regular","700"],"fallback":"handwriting"},"Niramit":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Halant":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Graduate":{"weight":["regular"],"fallback":"display"},"Nanum Brush Script":{"weight":["regular"],"fallback":"handwriting"},"Amita":{"weight":["regular","700"],"fallback":"handwriting"},"Rozha One":{"weight":["regular"],"fallback":"serif"},"Kristi":{"weight":["regular"],"fallback":"handwriting"},"Biryani":{"weight":["200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Lustria":{"weight":["regular"],"fallback":"serif"},"Delius":{"weight":["regular"],"fallback":"handwriting"},"Suranna":{"weight":["regular"],"fallback":"serif"},"Amethysta":{"weight":["regular"],"fallback":"serif"},"Contrail One":{"weight":["regular"],"fallback":"display"},"Averia Serif Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Do Hyeon":{"weight":["regular"],"fallback":"sans-serif"},"IBM Plex Sans Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Marvel":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Rye":{"weight":["regular"],"fallback":"display"},"Fauna One":{"weight":["regular"],"fallback":"serif"},"Corben":{"weight":["regular","700"],"fallback":"display"},"Cedarville Cursive":{"weight":["regular"],"fallback":"handwriting"},"Jockey One":{"weight":["regular"],"fallback":"sans-serif"},"Libre Caslon Text":{"weight":["regular","italic","700"],"fallback":"serif"},"Carrois Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Calligraffitti":{"weight":["regular"],"fallback":"handwriting"},"Trocchi":{"weight":["regular"],"fallback":"serif"},"Spectral SC":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"serif"},"Coustard":{"weight":["regular","900"],"fallback":"serif"},"Copse":{"weight":["regular"],"fallback":"serif"},"Athiti":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Carme":{"weight":["regular"],"fallback":"sans-serif"},"Rosario":{"weight":["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Limelight":{"weight":["regular"],"fallback":"display"},"Jua":{"weight":["regular"],"fallback":"sans-serif"},"Petit Formal Script":{"weight":["regular"],"fallback":"handwriting"},"Love Ya Like A Sister":{"weight":["regular"],"fallback":"display"},"GFS Didot":{"weight":["regular"],"fallback":"serif"},"Aladin":{"weight":["regular"],"fallback":"handwriting"},"Palanquin Dark":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Amiko":{"weight":["regular","600","700"],"fallback":"sans-serif"},"Cormorant Infant":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Wallpoet":{"weight":["regular"],"fallback":"display"},"Magra":{"weight":["regular","700"],"fallback":"sans-serif"},"Grand Hotel":{"weight":["regular"],"fallback":"handwriting"},"Sunflower":{"weight":["300","500","700"],"fallback":"sans-serif"},"Big Shoulders Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Slabo 13px":{"weight":["regular"],"fallback":"serif"},"Pangolin":{"weight":["regular"],"fallback":"handwriting"},"Mr De Haviland":{"weight":["regular"],"fallback":"handwriting"},"K2D":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Marmelad":{"weight":["regular"],"fallback":"sans-serif"},"Thasadith":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"La Belle Aurore":{"weight":["regular"],"fallback":"handwriting"},"Hanuman":{"weight":["regular","700"],"fallback":"serif"},"Metrophobic":{"weight":["regular"],"fallback":"sans-serif"},"Epilogue":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Radley":{"weight":["regular","italic"],"fallback":"serif"},"Poly":{"weight":["regular","italic"],"fallback":"serif"},"Commissioner":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Averia Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"IM Fell Double Pica":{"weight":["regular","italic"],"fallback":"serif"},"Comic Neue":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"handwriting"},"Baskervville":{"weight":["regular","italic"],"fallback":"serif"},"Kelly Slab":{"weight":["regular"],"fallback":"display"},"Oxygen Mono":{"weight":["regular"],"fallback":"monospace"},"Maitree":{"weight":["200","300","regular","500","600","700"],"fallback":"serif"},"Buenard":{"weight":["regular","700"],"fallback":"serif"},"Duru Sans":{"weight":["regular"],"fallback":"sans-serif"},"Baloo Da 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Grandstander":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"display"},"Balthazar":{"weight":["regular"],"fallback":"serif"},"ZCOOL XiaoWei":{"weight":["regular"],"fallback":"serif"},"Cutive":{"weight":["regular"],"fallback":"serif"},"Antic Didone":{"weight":["regular"],"fallback":"serif"},"Waiting for the Sunrise":{"weight":["regular"],"fallback":"handwriting"},"B612 Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Chonburi":{"weight":["regular"],"fallback":"display"},"Montaga":{"weight":["regular"],"fallback":"serif"},"UnifrakturMaguntia":{"weight":["regular"],"fallback":"display"},"Kosugi":{"weight":["regular"],"fallback":"sans-serif"},"Gravitas One":{"weight":["regular"],"fallback":"display"},"Mirza":{"weight":["regular","500","600","700"],"fallback":"display"},"Manjari":{"weight":["100","regular","700"],"fallback":"sans-serif"},"Alike":{"weight":["regular"],"fallback":"serif"},"Lekton":{"weight":["regular","italic","700"],"fallback":"sans-serif"},"Sora":{"weight":["100","200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Gabriela":{"weight":["regular"],"fallback":"serif"},"Lemon":{"weight":["regular"],"fallback":"display"},"Esteban":{"weight":["regular"],"fallback":"serif"},"Alatsi":{"weight":["regular"],"fallback":"sans-serif"},"Turret Road":{"weight":["200","300","regular","500","700","800"],"fallback":"display"},"Monsieur La Doulaise":{"weight":["regular"],"fallback":"handwriting"},"Pompiere":{"weight":["regular"],"fallback":"display"},"Cormorant SC":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Kurale":{"weight":["regular"],"fallback":"serif"},"Frijole":{"weight":["regular"],"fallback":"display"},"Rammetto One":{"weight":["regular"],"fallback":"display"},"Chelsea Market":{"weight":["regular"],"fallback":"display"},"Megrim":{"weight":["regular"],"fallback":"display"},"IM Fell English":{"weight":["regular","italic"],"fallback":"serif"},"Oregano":{"weight":["regular","italic"],"fallback":"display"},"Andada":{"weight":["regular"],"fallback":"serif"},"Mate":{"weight":["regular","italic"],"fallback":"serif"},"Convergence":{"weight":["regular"],"fallback":"sans-serif"},"Rouge Script":{"weight":["regular"],"fallback":"handwriting"},"Bowlby One":{"weight":["regular"],"fallback":"display"},"Emilys Candy":{"weight":["regular"],"fallback":"display"},"Wendy One":{"weight":["regular"],"fallback":"sans-serif"},"Fira Code":{"weight":["300","regular","500","600","700"],"fallback":"monospace"},"Dawning of a New Day":{"weight":["regular"],"fallback":"handwriting"},"Sue Ellen Francisco":{"weight":["regular"],"fallback":"handwriting"},"Gurajada":{"weight":["regular"],"fallback":"serif"},"David Libre":{"weight":["regular","500","700"],"fallback":"serif"},"Sofia":{"weight":["regular"],"fallback":"handwriting"},"Short Stack":{"weight":["regular"],"fallback":"handwriting"},"Chau Philomene One":{"weight":["regular","italic"],"fallback":"sans-serif"},"Bellefair":{"weight":["regular"],"fallback":"serif"},"Belgrano":{"weight":["regular"],"fallback":"serif"},"Expletus Sans":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"display"},"Original Surfer":{"weight":["regular"],"fallback":"display"},"Doppio One":{"weight":["regular"],"fallback":"sans-serif"},"Be Vietnam":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Sail":{"weight":["regular"],"fallback":"display"},"Inder":{"weight":["regular"],"fallback":"sans-serif"},"Give You Glory":{"weight":["regular"],"fallback":"handwriting"},"IM Fell DW Pica":{"weight":["regular","italic"],"fallback":"serif"},"McLaren":{"weight":["regular"],"fallback":"display"},"Encode Sans Semi Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Bungee Shade":{"weight":["regular"],"fallback":"display"},"Baumans":{"weight":["regular"],"fallback":"display"},"Brawler":{"weight":["regular"],"fallback":"serif"},"Tenali Ramakrishna":{"weight":["regular"],"fallback":"sans-serif"},"Ceviche One":{"weight":["regular"],"fallback":"display"},"B612":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Zeyada":{"weight":["regular"],"fallback":"handwriting"},"Mountains of Christmas":{"weight":["regular","700"],"fallback":"display"},"Sedgwick Ave":{"weight":["regular"],"fallback":"handwriting"},"Gugi":{"weight":["regular"],"fallback":"display"},"Oleo Script Swash Caps":{"weight":["regular","700"],"fallback":"display"},"Skranji":{"weight":["regular","700"],"fallback":"display"},"Meddon":{"weight":["regular"],"fallback":"handwriting"},"NTR":{"weight":["regular"],"fallback":"sans-serif"},"Finger Paint":{"weight":["regular"],"fallback":"display"},"Blinker":{"weight":["100","200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Fanwood Text":{"weight":["regular","italic"],"fallback":"serif"},"Grenze Gotisch":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"display"},"Hepta Slab":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Anaheim":{"weight":["regular"],"fallback":"sans-serif"},"Major Mono Display":{"weight":["regular"],"fallback":"monospace"},"Quando":{"weight":["regular"],"fallback":"serif"},"Andika":{"weight":["regular"],"fallback":"sans-serif"},"Qwigley":{"weight":["regular"],"fallback":"handwriting"},"Vast Shadow":{"weight":["regular"],"fallback":"display"},"Happy Monkey":{"weight":["regular"],"fallback":"display"},"Montez":{"weight":["regular"],"fallback":"handwriting"},"Proza Libre":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Homenaje":{"weight":["regular"],"fallback":"sans-serif"},"Ma Shan Zheng":{"weight":["regular"],"fallback":"handwriting"},"Loved by the King":{"weight":["regular"],"fallback":"handwriting"},"Trade Winds":{"weight":["regular"],"fallback":"display"},"Stardos Stencil":{"weight":["regular","700"],"fallback":"display"},"Raleway Dots":{"weight":["regular"],"fallback":"display"},"Libre Barcode 39":{"weight":["regular"],"fallback":"display"},"Recursive":{"weight":["300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Numans":{"weight":["regular"],"fallback":"sans-serif"},"RocknRoll One":{"weight":["regular"],"fallback":"sans-serif"},"Rakkas":{"weight":["regular"],"fallback":"display"},"Mouse Memoirs":{"weight":["regular"],"fallback":"sans-serif"},"BioRhyme":{"weight":["200","300","regular","700","800"],"fallback":"serif"},"Ranchers":{"weight":["regular"],"fallback":"display"},"Patrick Hand SC":{"weight":["regular"],"fallback":"handwriting"},"Codystar":{"weight":["300","regular"],"fallback":"display"},"Rasa":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Meera Inimai":{"weight":["regular"],"fallback":"sans-serif"},"Clicker Script":{"weight":["regular"],"fallback":"handwriting"},"DM Mono":{"weight":["300","300italic","regular","italic","500","500italic"],"fallback":"monospace"},"Gaegu":{"weight":["300","regular","700"],"fallback":"handwriting"},"Aguafina Script":{"weight":["regular"],"fallback":"handwriting"},"Unkempt":{"weight":["regular","700"],"fallback":"display"},"Over the Rainbow":{"weight":["regular"],"fallback":"handwriting"},"Fondamento":{"weight":["regular","italic"],"fallback":"handwriting"},"Battambang":{"weight":["regular","700"],"fallback":"display"},"Cambo":{"weight":["regular"],"fallback":"serif"},"Crafty Girls":{"weight":["regular"],"fallback":"handwriting"},"Nova Mono":{"weight":["regular"],"fallback":"monospace"},"Tillana":{"weight":["regular","500","600","700","800"],"fallback":"handwriting"},"Alike Angular":{"weight":["regular"],"fallback":"serif"},"Kumbh Sans":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Katibeh":{"weight":["regular"],"fallback":"display"},"Sarpanch":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Antonio":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Mansalva":{"weight":["regular"],"fallback":"handwriting"},"Faster One":{"weight":["regular"],"fallback":"display"},"Federo":{"weight":["regular"],"fallback":"sans-serif"},"Dokdo":{"weight":["regular"],"fallback":"handwriting"},"Hi Melody":{"weight":["regular"],"fallback":"handwriting"},"Euphoria Script":{"weight":["regular"],"fallback":"handwriting"},"Orienta":{"weight":["regular"],"fallback":"sans-serif"},"Space Grotesk":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Galada":{"weight":["regular"],"fallback":"display"},"Timmana":{"weight":["regular"],"fallback":"sans-serif"},"JetBrains Mono":{"weight":["100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"monospace"},"Baloo Thambi 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Averia Sans Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"UnifrakturCook":{"weight":["700"],"fallback":"display"},"Tauri":{"weight":["regular"],"fallback":"sans-serif"},"Share Tech":{"weight":["regular"],"fallback":"sans-serif"},"Walter Turncoat":{"weight":["regular"],"fallback":"handwriting"},"Geo":{"weight":["regular","italic"],"fallback":"sans-serif"},"Atma":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Almendra":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Jomhuria":{"weight":["regular"],"fallback":"display"},"Strait":{"weight":["regular"],"fallback":"sans-serif"},"Encode Sans Expanded":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Metamorphous":{"weight":["regular"],"fallback":"display"},"Iceland":{"weight":["regular"],"fallback":"display"},"Ledger":{"weight":["regular"],"fallback":"serif"},"Poller One":{"weight":["regular"],"fallback":"display"},"Vollkorn SC":{"weight":["regular","600","700","900"],"fallback":"serif"},"Vesper Libre":{"weight":["regular","500","700","900"],"fallback":"serif"},"Aref Ruqaa":{"weight":["regular","700"],"fallback":"serif"},"Livvic":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Caladea":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Montserrat Subrayada":{"weight":["regular","700"],"fallback":"sans-serif"},"Vampiro One":{"weight":["regular"],"fallback":"display"},"Farro":{"weight":["300","regular","500","700"],"fallback":"sans-serif"},"New Rocker":{"weight":["regular"],"fallback":"display"},"Delius Swash Caps":{"weight":["regular"],"fallback":"handwriting"},"Calistoga":{"weight":["regular"],"fallback":"display"},"Carrois Gothic SC":{"weight":["regular"],"fallback":"sans-serif"},"Italiana":{"weight":["regular"],"fallback":"serif"},"Inknut Antiqua":{"weight":["300","regular","500","600","700","800","900"],"fallback":"serif"},"Life Savers":{"weight":["regular","700","800"],"fallback":"display"},"Imprima":{"weight":["regular"],"fallback":"sans-serif"},"Mako":{"weight":["regular"],"fallback":"sans-serif"},"Lily Script One":{"weight":["regular"],"fallback":"display"},"Bilbo Swash Caps":{"weight":["regular"],"fallback":"handwriting"},"IM Fell English SC":{"weight":["regular"],"fallback":"serif"},"Red Rose":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Shojumaru":{"weight":["regular"],"fallback":"display"},"Prosto One":{"weight":["regular"],"fallback":"display"},"Bodoni Moda":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Mukta Mahee":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Bubbler One":{"weight":["regular"],"fallback":"sans-serif"},"The Girl Next Door":{"weight":["regular"],"fallback":"handwriting"},"Artifika":{"weight":["regular"],"fallback":"serif"},"Cantora One":{"weight":["regular"],"fallback":"sans-serif"},"Scope One":{"weight":["regular"],"fallback":"serif"},"Yusei Magic":{"weight":["regular"],"fallback":"sans-serif"},"Oxanium":{"weight":["200","300","regular","500","600","700","800"],"fallback":"display"},"Tienne":{"weight":["regular","700","900"],"fallback":"serif"},"Salsa":{"weight":["regular"],"fallback":"display"},"Flamenco":{"weight":["300","regular"],"fallback":"display"},"Port Lligat Sans":{"weight":["regular"],"fallback":"sans-serif"},"Denk One":{"weight":["regular"],"fallback":"sans-serif"},"Fontdiner Swanky":{"weight":["regular"],"fallback":"display"},"Nova Round":{"weight":["regular"],"fallback":"display"},"Gafata":{"weight":["regular"],"fallback":"sans-serif"},"Cormorant Upright":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Cherry Cream Soda":{"weight":["regular"],"fallback":"display"},"Asul":{"weight":["regular","700"],"fallback":"sans-serif"},"Big Shoulders Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Voces":{"weight":["regular"],"fallback":"display"},"Dynalight":{"weight":["regular"],"fallback":"display"},"Peralta":{"weight":["regular"],"fallback":"display"},"Mina":{"weight":["regular","700"],"fallback":"sans-serif"},"Headland One":{"weight":["regular"],"fallback":"serif"},"Medula One":{"weight":["regular"],"fallback":"display"},"Englebert":{"weight":["regular"],"fallback":"sans-serif"},"Nova Square":{"weight":["regular"],"fallback":"display"},"Delius Unicase":{"weight":["regular","700"],"fallback":"handwriting"},"Sumana":{"weight":["regular","700"],"fallback":"serif"},"Bilbo":{"weight":["regular"],"fallback":"handwriting"},"Engagement":{"weight":["regular"],"fallback":"handwriting"},"ZCOOL QingKe HuangYou":{"weight":["regular"],"fallback":"display"},"Fresca":{"weight":["regular"],"fallback":"sans-serif"},"Ranga":{"weight":["regular","700"],"fallback":"display"},"Orelega One":{"weight":["regular"],"fallback":"display"},"Zen Dots":{"weight":["regular"],"fallback":"display"},"Shippori Mincho":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Henny Penny":{"weight":["regular"],"fallback":"display"},"Della Respira":{"weight":["regular"],"fallback":"serif"},"Cherry Swash":{"weight":["regular","700"],"fallback":"display"},"Notable":{"weight":["regular"],"fallback":"sans-serif"},"Arya":{"weight":["regular","700"],"fallback":"sans-serif"},"Slackey":{"weight":["regular"],"fallback":"display"},"Vibur":{"weight":["regular"],"fallback":"handwriting"},"Coiny":{"weight":["regular"],"fallback":"display"},"Lexend Zetta":{"weight":["regular"],"fallback":"sans-serif"},"Elsie":{"weight":["regular","900"],"fallback":"display"},"Fjord One":{"weight":["regular"],"fallback":"serif"},"Puritan":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Just Me Again Down Here":{"weight":["regular"],"fallback":"handwriting"},"Khmer":{"weight":["regular"],"fallback":"display"},"Girassol":{"weight":["regular"],"fallback":"display"},"Bellota Text":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Yatra One":{"weight":["regular"],"fallback":"display"},"Stalemate":{"weight":["regular"],"fallback":"handwriting"},"Wire One":{"weight":["regular"],"fallback":"sans-serif"},"Spicy Rice":{"weight":["regular"],"fallback":"display"},"Saira Stencil One":{"weight":["regular"],"fallback":"display"},"Kite One":{"weight":["regular"],"fallback":"sans-serif"},"Port Lligat Slab":{"weight":["regular"],"fallback":"serif"},"Baloo Bhaina 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Pavanam":{"weight":["regular"],"fallback":"sans-serif"},"Eater":{"weight":["regular"],"fallback":"display"},"Text Me One":{"weight":["regular"],"fallback":"sans-serif"},"Ribeye":{"weight":["regular"],"fallback":"display"},"Pirata One":{"weight":["regular"],"fallback":"display"},"Amarante":{"weight":["regular"],"fallback":"display"},"Milonga":{"weight":["regular"],"fallback":"display"},"Habibi":{"weight":["regular"],"fallback":"serif"},"Ruslan Display":{"weight":["regular"],"fallback":"display"},"Encode Sans Semi Expanded":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Nokora":{"weight":["regular","700"],"fallback":"serif"},"Rowdies":{"weight":["300","regular","700"],"fallback":"display"},"Kranky":{"weight":["regular"],"fallback":"display"},"Bigelow Rules":{"weight":["regular"],"fallback":"display"},"League Script":{"weight":["regular"],"fallback":"handwriting"},"Swanky and Moo Moo":{"weight":["regular"],"fallback":"handwriting"},"Karantina":{"weight":["300","regular","700"],"fallback":"display"},"Lovers Quarrel":{"weight":["regular"],"fallback":"handwriting"},"Mate SC":{"weight":["regular"],"fallback":"serif"},"Manuale":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Germania One":{"weight":["regular"],"fallback":"display"},"Sura":{"weight":["regular","700"],"fallback":"serif"},"Sarina":{"weight":["regular"],"fallback":"display"},"Macondo Swash Caps":{"weight":["regular"],"fallback":"display"},"Kotta One":{"weight":["regular"],"fallback":"serif"},"IM Fell French Canon SC":{"weight":["regular"],"fallback":"serif"},"Julee":{"weight":["regular"],"fallback":"handwriting"},"Charmonman":{"weight":["regular","700"],"fallback":"handwriting"},"Shanti":{"weight":["regular"],"fallback":"sans-serif"},"Gamja Flower":{"weight":["regular"],"fallback":"handwriting"},"Averia Gruesa Libre":{"weight":["regular"],"fallback":"display"},"Stint Ultra Expanded":{"weight":["regular"],"fallback":"display"},"Uncial Antiqua":{"weight":["regular"],"fallback":"display"},"Mystery Quest":{"weight":["regular"],"fallback":"display"},"Goldman":{"weight":["regular","700"],"fallback":"display"},"Paprika":{"weight":["regular"],"fallback":"display"},"IM Fell French Canon":{"weight":["regular","italic"],"fallback":"serif"},"Prociono":{"weight":["regular"],"fallback":"serif"},"Kodchasan":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Libre Barcode 39 Text":{"weight":["regular"],"fallback":"display"},"Quintessential":{"weight":["regular"],"fallback":"handwriting"},"Moul":{"weight":["regular"],"fallback":"display"},"Libre Barcode 128":{"weight":["regular"],"fallback":"display"},"Ramaraja":{"weight":["regular"],"fallback":"serif"},"Modak":{"weight":["regular"],"fallback":"display"},"Song Myung":{"weight":["regular"],"fallback":"serif"},"East Sea Dokdo":{"weight":["regular"],"fallback":"handwriting"},"Crushed":{"weight":["regular"],"fallback":"display"},"Dekko":{"weight":["regular"],"fallback":"handwriting"},"Chilanka":{"weight":["regular"],"fallback":"handwriting"},"Hanalei Fill":{"weight":["regular"],"fallback":"display"},"Mogra":{"weight":["regular"],"fallback":"display"},"Baloo Tammudu 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Baloo Bhai 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Libre Barcode 39 Extended Text":{"weight":["regular"],"fallback":"display"},"Rosarivo":{"weight":["regular","italic"],"fallback":"serif"},"KoHo":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Offside":{"weight":["regular"],"fallback":"display"},"Reggae One":{"weight":["regular"],"fallback":"display"},"Syne":{"weight":["regular","500","600","700","800"],"fallback":"sans-serif"},"Zilla Slab Highlight":{"weight":["regular","700"],"fallback":"display"},"Donegal One":{"weight":["regular"],"fallback":"serif"},"Bellota":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Stoke":{"weight":["300","regular"],"fallback":"serif"},"Cormorant Unicase":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Cagliostro":{"weight":["regular"],"fallback":"sans-serif"},"Rationale":{"weight":["regular"],"fallback":"sans-serif"},"Margarine":{"weight":["regular"],"fallback":"display"},"Sancreek":{"weight":["regular"],"fallback":"display"},"Inria Serif":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"serif"},"Overlock SC":{"weight":["regular"],"fallback":"display"},"Nosifer":{"weight":["regular"],"fallback":"display"},"Libre Barcode EAN13 Text":{"weight":["regular"],"fallback":"display"},"Yeon Sung":{"weight":["regular"],"fallback":"display"},"Ruluko":{"weight":["regular"],"fallback":"sans-serif"},"Simonetta":{"weight":["regular","italic","900","900italic"],"fallback":"display"},"Lakki Reddy":{"weight":["regular"],"fallback":"handwriting"},"Baloo Paaji 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Chango":{"weight":["regular"],"fallback":"display"},"Galdeano":{"weight":["regular"],"fallback":"sans-serif"},"Fahkwang":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Elsie Swash Caps":{"weight":["regular","900"],"fallback":"display"},"Buda":{"weight":["300"],"fallback":"display"},"Condiment":{"weight":["regular"],"fallback":"handwriting"},"Barrio":{"weight":["regular"],"fallback":"display"},"Chicle":{"weight":["regular"],"fallback":"display"},"Angkor":{"weight":["regular"],"fallback":"display"},"Akronim":{"weight":["regular"],"fallback":"display"},"Tomorrow":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Sonsie One":{"weight":["regular"],"fallback":"display"},"Kumar One":{"weight":["regular"],"fallback":"display"},"Autour One":{"weight":["regular"],"fallback":"display"},"Libre Caslon Display":{"weight":["regular"],"fallback":"serif"},"Farsan":{"weight":["regular"],"fallback":"display"},"Fenix":{"weight":["regular"],"fallback":"serif"},"Solway":{"weight":["300","regular","500","700","800"],"fallback":"serif"},"Kulim Park":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Stint Ultra Condensed":{"weight":["regular"],"fallback":"display"},"Metal":{"weight":["regular"],"fallback":"display"},"Rum Raisin":{"weight":["regular"],"fallback":"sans-serif"},"Redressed":{"weight":["regular"],"fallback":"handwriting"},"Tulpen One":{"weight":["regular"],"fallback":"display"},"Petrona":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Marko One":{"weight":["regular"],"fallback":"serif"},"Asar":{"weight":["regular"],"fallback":"serif"},"Nova Flat":{"weight":["regular"],"fallback":"display"},"Koulen":{"weight":["regular"],"fallback":"display"},"Lexend Exa":{"weight":["regular"],"fallback":"sans-serif"},"Londrina Outline":{"weight":["regular"],"fallback":"display"},"Cute Font":{"weight":["regular"],"fallback":"display"},"IM Fell Great Primer":{"weight":["regular","italic"],"fallback":"serif"},"Junge":{"weight":["regular"],"fallback":"serif"},"Stylish":{"weight":["regular"],"fallback":"sans-serif"},"Lexend":{"weight":["100","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Spirax":{"weight":["regular"],"fallback":"display"},"Piazzolla":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Piedra":{"weight":["regular"],"fallback":"display"},"Ribeye Marrow":{"weight":["regular"],"fallback":"display"},"Dorsa":{"weight":["regular"],"fallback":"sans-serif"},"Ibarra Real Nova":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"IM Fell DW Pica SC":{"weight":["regular"],"fallback":"serif"},"Wellfleet":{"weight":["regular"],"fallback":"display"},"Eagle Lake":{"weight":["regular"],"fallback":"handwriting"},"Meie Script":{"weight":["regular"],"fallback":"handwriting"},"Goblin One":{"weight":["regular"],"fallback":"display"},"Flavors":{"weight":["regular"],"fallback":"display"},"Gotu":{"weight":["regular"],"fallback":"sans-serif"},"Linden Hill":{"weight":["regular","italic"],"fallback":"serif"},"Chathura":{"weight":["100","300","regular","700","800"],"fallback":"sans-serif"},"Croissant One":{"weight":["regular"],"fallback":"display"},"Jomolhari":{"weight":["regular"],"fallback":"serif"},"Srisakdi":{"weight":["regular","700"],"fallback":"display"},"Modern Antiqua":{"weight":["regular"],"fallback":"display"},"Joti One":{"weight":["regular"],"fallback":"display"},"Kavoon":{"weight":["regular"],"fallback":"display"},"Sulphur Point":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Castoro":{"weight":["regular","italic"],"fallback":"serif"},"Chela One":{"weight":["regular"],"fallback":"display"},"Atomic Age":{"weight":["regular"],"fallback":"display"},"Maiden Orange":{"weight":["regular"],"fallback":"display"},"Ruthie":{"weight":["regular"],"fallback":"handwriting"},"Bayon":{"weight":["regular"],"fallback":"display"},"Potta One":{"weight":["regular"],"fallback":"display"},"Iceberg":{"weight":["regular"],"fallback":"display"},"Bigshot One":{"weight":["regular"],"fallback":"display"},"Gorditas":{"weight":["regular","700"],"fallback":"display"},"Sree Krushnadevaraya":{"weight":["regular"],"fallback":"serif"},"Trykker":{"weight":["regular"],"fallback":"serif"},"Kufam":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"display"},"Diplomata SC":{"weight":["regular"],"fallback":"display"},"Poor Story":{"weight":["regular"],"fallback":"display"},"Sirin Stencil":{"weight":["regular"],"fallback":"display"},"Kavivanar":{"weight":["regular"],"fallback":"handwriting"},"Syne Mono":{"weight":["regular"],"fallback":"monospace"},"Metal Mania":{"weight":["regular"],"fallback":"display"},"Arbutus":{"weight":["regular"],"fallback":"display"},"Unlock":{"weight":["regular"],"fallback":"display"},"MuseoModerno":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"display"},"Glass Antiqua":{"weight":["regular"],"fallback":"display"},"Miniver":{"weight":["regular"],"fallback":"display"},"Griffy":{"weight":["regular"],"fallback":"display"},"Bokor":{"weight":["regular"],"fallback":"display"},"Felipa":{"weight":["regular"],"fallback":"handwriting"},"Inika":{"weight":["regular","700"],"fallback":"serif"},"Princess Sofia":{"weight":["regular"],"fallback":"handwriting"},"Mrs Sheppards":{"weight":["regular"],"fallback":"handwriting"},"Monofett":{"weight":["regular"],"fallback":"display"},"Sahitya":{"weight":["regular","700"],"fallback":"serif"},"Dela Gothic One":{"weight":["regular"],"fallback":"display"},"Shippori Mincho B1":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Beth Ellen":{"weight":["regular"],"fallback":"handwriting"},"Lancelot":{"weight":["regular"],"fallback":"display"},"Rhodium Libre":{"weight":["regular"],"fallback":"serif"},"Fraunces":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Hachi Maru Pop":{"weight":["regular"],"fallback":"handwriting"},"Snippet":{"weight":["regular"],"fallback":"sans-serif"},"Content":{"weight":["regular","700"],"fallback":"display"},"Revalia":{"weight":["regular"],"fallback":"display"},"Diplomata":{"weight":["regular"],"fallback":"display"},"Libre Barcode 128 Text":{"weight":["regular"],"fallback":"display"},"Jacques Francois Shadow":{"weight":["regular"],"fallback":"display"},"Long Cang":{"weight":["regular"],"fallback":"handwriting"},"Caesar Dressing":{"weight":["regular"],"fallback":"display"},"Odor Mean Chey":{"weight":["regular"],"fallback":"display"},"Jolly Lodger":{"weight":["regular"],"fallback":"display"},"Texturina":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"DotGothic16":{"weight":["regular"],"fallback":"sans-serif"},"Ewert":{"weight":["regular"],"fallback":"display"},"Romanesco":{"weight":["regular"],"fallback":"handwriting"},"Kantumruy":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Asset":{"weight":["regular"],"fallback":"display"},"Odibee Sans":{"weight":["regular"],"fallback":"display"},"Emblema One":{"weight":["regular"],"fallback":"display"},"Kdam Thmor":{"weight":["regular"],"fallback":"display"},"Dr Sugiyama":{"weight":["regular"],"fallback":"handwriting"},"Bahiana":{"weight":["regular"],"fallback":"display"},"GFS Neohellenic":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Oldenburg":{"weight":["regular"],"fallback":"display"},"Molle":{"weight":["italic"],"fallback":"handwriting"},"Ravi Prakash":{"weight":["regular"],"fallback":"display"},"Gayathri":{"weight":["100","regular","700"],"fallback":"sans-serif"},"Almendra SC":{"weight":["regular"],"fallback":"serif"},"Varta":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Risque":{"weight":["regular"],"fallback":"display"},"Sansita Swashed":{"weight":["300","regular","500","600","700","800","900"],"fallback":"display"},"Kiwi Maru":{"weight":["300","regular","500"],"fallback":"serif"},"Dangrek":{"weight":["regular"],"fallback":"display"},"Devonshire":{"weight":["regular"],"fallback":"handwriting"},"Big Shoulders Stencil Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Jim Nightshade":{"weight":["regular"],"fallback":"handwriting"},"Smythe":{"weight":["regular"],"fallback":"display"},"Stick":{"weight":["regular"],"fallback":"sans-serif"},"Lexend Mega":{"weight":["regular"],"fallback":"sans-serif"},"Siemreap":{"weight":["regular"],"fallback":"display"},"Londrina Shadow":{"weight":["regular"],"fallback":"display"},"Train One":{"weight":["regular"],"fallback":"display"},"IM Fell Great Primer SC":{"weight":["regular"],"fallback":"serif"},"Barriecito":{"weight":["regular"],"fallback":"display"},"Underdog":{"weight":["regular"],"fallback":"display"},"Stalinist One":{"weight":["regular"],"fallback":"display"},"Mr Bedfort":{"weight":["regular"],"fallback":"handwriting"},"Freehand":{"weight":["regular"],"fallback":"display"},"MedievalSharp":{"weight":["regular"],"fallback":"display"},"Lexend Giga":{"weight":["regular"],"fallback":"sans-serif"},"Keania One":{"weight":["regular"],"fallback":"display"},"Peddana":{"weight":["regular"],"fallback":"serif"},"Galindo":{"weight":["regular"],"fallback":"display"},"Fascinate":{"weight":["regular"],"fallback":"display"},"Londrina Sketch":{"weight":["regular"],"fallback":"display"},"Gupter":{"weight":["regular","500","700"],"fallback":"serif"},"Nova Slim":{"weight":["regular"],"fallback":"display"},"Snowburst One":{"weight":["regular"],"fallback":"display"},"ZCOOL KuaiLe":{"weight":["regular"],"fallback":"display"},"Plaster":{"weight":["regular"],"fallback":"display"},"Fascinate Inline":{"weight":["regular"],"fallback":"display"},"Newsreader":{"weight":["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"serif"},"Purple Purse":{"weight":["regular"],"fallback":"display"},"Sedgwick Ave Display":{"weight":["regular"],"fallback":"handwriting"},"Jacques Francois":{"weight":["regular"],"fallback":"serif"},"Almendra Display":{"weight":["regular"],"fallback":"display"},"Irish Grover":{"weight":["regular"],"fallback":"display"},"Kumar One Outline":{"weight":["regular"],"fallback":"display"},"Andika New Basic":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Libre Barcode 39 Extended":{"weight":["regular"],"fallback":"display"},"Taprom":{"weight":["regular"],"fallback":"display"},"Miss Fajardose":{"weight":["regular"],"fallback":"handwriting"},"IM Fell Double Pica SC":{"weight":["regular"],"fallback":"serif"},"Macondo":{"weight":["regular"],"fallback":"display"},"Ruge Boogie":{"weight":["regular"],"fallback":"handwriting"},"Sunshiney":{"weight":["regular"],"fallback":"handwriting"},"Brygada 1918":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Grenze":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Erica One":{"weight":["regular"],"fallback":"display"},"Seymour One":{"weight":["regular"],"fallback":"sans-serif"},"Supermercado One":{"weight":["regular"],"fallback":"display"},"Zhi Mang Xing":{"weight":["regular"],"fallback":"handwriting"},"Butterfly Kids":{"weight":["regular"],"fallback":"handwriting"},"Kirang Haerang":{"weight":["regular"],"fallback":"display"},"Federant":{"weight":["regular"],"fallback":"display"},"Liu Jian Mao Cao":{"weight":["regular"],"fallback":"handwriting"},"Chenla":{"weight":["regular"],"fallback":"display"},"Hanalei":{"weight":["regular"],"fallback":"display"},"Langar":{"weight":["regular"],"fallback":"display"},"Trochut":{"weight":["regular","italic","700"],"fallback":"display"},"Smokum":{"weight":["regular"],"fallback":"display"},"Black And White Picture":{"weight":["regular"],"fallback":"sans-serif"},"Preahvihear":{"weight":["regular"],"fallback":"display"},"Bungee Outline":{"weight":["regular"],"fallback":"display"},"Astloch":{"weight":["regular","700"],"fallback":"display"},"Fasthand":{"weight":["regular"],"fallback":"serif"},"Akaya Telivigala":{"weight":["regular"],"fallback":"display"},"Inria Sans":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"sans-serif"},"Bonbon":{"weight":["regular"],"fallback":"handwriting"},"Combo":{"weight":["regular"],"fallback":"display"},"Nova Script":{"weight":["regular"],"fallback":"display"},"Sofadi One":{"weight":["regular"],"fallback":"display"},"Passero One":{"weight":["regular"],"fallback":"display"},"Suwannaphum":{"weight":["regular"],"fallback":"display"},"Miltonian Tattoo":{"weight":["regular"],"fallback":"display"},"Bungee Hairline":{"weight":["regular"],"fallback":"display"},"Gidugu":{"weight":["regular"],"fallback":"sans-serif"},"Geostar Fill":{"weight":["regular"],"fallback":"display"},"Nerko One":{"weight":["regular"],"fallback":"handwriting"},"Lacquer":{"weight":["regular"],"fallback":"display"},"Butcherman":{"weight":["regular"],"fallback":"display"},"Sevillana":{"weight":["regular"],"fallback":"display"},"Nova Oval":{"weight":["regular"],"fallback":"display"},"Aubrey":{"weight":["regular"],"fallback":"display"},"Akaya Kanadaka":{"weight":["regular"],"fallback":"display"},"Nova Cut":{"weight":["regular"],"fallback":"display"},"Vibes":{"weight":["regular"],"fallback":"display"},"Miltonian":{"weight":["regular"],"fallback":"display"},"Moulpali":{"weight":["regular"],"fallback":"display"},"BioRhyme Expanded":{"weight":["200","300","regular","700","800"],"fallback":"serif"},"Bahianita":{"weight":["regular"],"fallback":"display"},"Suravaram":{"weight":["regular"],"fallback":"serif"},"Fruktur":{"weight":["regular"],"fallback":"display"},"Single Day":{"weight":["regular"],"fallback":"display"},"Imbue":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Lexend Tera":{"weight":["regular"],"fallback":"sans-serif"},"Big Shoulders Inline Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Dhurjati":{"weight":["regular"],"fallback":"sans-serif"},"Warnes":{"weight":["regular"],"fallback":"display"},"Kenia":{"weight":["regular"],"fallback":"display"},"Lexend Peta":{"weight":["regular"],"fallback":"sans-serif"},"Big Shoulders Stencil Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Geostar":{"weight":["regular"],"fallback":"display"},"Big Shoulders Inline Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Oi":{"weight":["regular"],"fallback":"display"},"Xanh Mono":{"weight":["regular","italic"],"fallback":"monospace"},"Viaoda Libre":{"weight":["regular"],"fallback":"display"},"Truculenta":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Syne Tactile":{"weight":["regular"],"fallback":"display"},"Trispace":{"weight":["100","200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Ballet":{"weight":["regular"],"fallback":"handwriting"},"Benne":{"weight":["regular"],"fallback":"serif"}}');function na(e){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(e)}function ra(e){var t=function(e,t){if("object"!==na(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,"string");if("object"!==na(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===na(t)?t:String(t)}function ia(e,t,a){return(t=ra(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function oa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function sa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(a),!0).forEach((function(t){ia(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):oa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}function ua(e,t){if(e){if("string"==typeof e)return ca(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ca(e,t):void 0}}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,n,r,i,o=[],s=!0,c=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(l=r.call(a)).done)&&(o.push(l.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(c)throw n}}return o}}(e,t)||ua(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){if(null==e)return{};var a,l,n=function(e,t){if(null==e)return{};var a,l,n={},r=Object.keys(e);for(l=0;l<r.length;l++)a=r[l],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)a=r[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var pa=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ba(t){var a=t.defaultInputValue,l=void 0===a?"":a,n=t.defaultMenuIsOpen,r=void 0!==n&&n,i=t.defaultValue,o=void 0===i?null:i,s=t.inputValue,c=t.menuIsOpen,u=t.onChange,g=t.onInputChange,d=t.onMenuClose,p=t.onMenuOpen,b=t.value,h=da(t,pa),m=ga((0,e.useState)(void 0!==s?s:l),2),f=m[0],k=m[1],v=ga((0,e.useState)(void 0!==c?c:r),2),y=v[0],w=v[1],C=ga((0,e.useState)(void 0!==b?b:o),2),_=C[0],E=C[1],x=(0,e.useCallback)((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),S=(0,e.useCallback)((function(e,t){var a;"function"==typeof g&&(a=g(e,t)),k(void 0!==a?a:e)}),[g]),T=(0,e.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),L=(0,e.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),M=void 0!==s?s:f,B=void 0!==c?c:y,I=void 0!==b?b:_;return sa(sa({},h),{},{inputValue:M,menuIsOpen:B,onChange:x,onInputChange:S,onMenuClose:L,onMenuOpen:T,value:I})}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ha.apply(this,arguments)}function ma(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,ra(l.key),l)}}function fa(e,t){return fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fa(e,t)}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ka(e)}function va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=ka(e);if(t){var n=ka(this).constructor;a=Reflect.construct(l,arguments,n)}else a=l.apply(this,arguments);return function(e,t){if(t&&("object"===na(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,a)}}function ya(e){return function(e){if(Array.isArray(e))return ca(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ua(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wa=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ca=Math.abs,_a=String.fromCharCode,Ea=Object.assign;function xa(e){return e.trim()}function Sa(e,t,a){return e.replace(t,a)}function Ta(e,t){return e.indexOf(t)}function La(e,t){return 0|e.charCodeAt(t)}function Ma(e,t,a){return e.slice(t,a)}function Ba(e){return e.length}function Ia(e){return e.length}function Oa(e,t){return t.push(e),e}var Aa=1,Ra=1,za=0,Da=0,Na=0,Fa="";function Ha(e,t,a,l,n,r,i){return{value:e,root:t,parent:a,type:l,props:n,children:r,line:Aa,column:Ra,length:i,return:""}}function Pa(e,t){return Ea(Ha("",null,null,"",null,null,0),e,{length:-e.length},t)}function Va(){return Na=Da>0?La(Fa,--Da):0,Ra--,10===Na&&(Ra=1,Aa--),Na}function ja(){return Na=Da<za?La(Fa,Da++):0,Ra++,10===Na&&(Ra=1,Aa++),Na}function Ga(){return La(Fa,Da)}function Wa(){return Da}function Ua(e,t){return Ma(Fa,e,t)}function Za(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qa(e){return Aa=Ra=1,za=Ba(Fa=e),Da=0,[]}function $a(e){return Fa="",e}function Ka(e){return xa(Ua(Da-1,Qa(91===e?e+2:40===e?e+1:e)))}function Ja(e){for(;(Na=Ga())&&Na<33;)ja();return Za(e)>2||Za(Na)>3?"":" "}function Ya(e,t){for(;--t&&ja()&&!(Na<48||Na>102||Na>57&&Na<65||Na>70&&Na<97););return Ua(e,Wa()+(t<6&&32==Ga()&&32==ja()))}function Qa(e){for(;ja();)switch(Na){case e:return Da;case 34:case 39:34!==e&&39!==e&&Qa(Na);break;case 40:41===e&&Qa(e);break;case 92:ja()}return Da}function Xa(e,t){for(;ja()&&e+Na!==57&&(e+Na!==84||47!==Ga()););return"/*"+Ua(t,Da-1)+"*"+_a(47===e?e:ja())}function el(e){for(;!Za(Ga());)ja();return Ua(e,Da)}var tl="-ms-",al="-moz-",ll="-webkit-",nl="comm",rl="rule",il="decl",ol="@keyframes";function sl(e,t){for(var a="",l=Ia(e),n=0;n<l;n++)a+=t(e[n],n,e,t)||"";return a}function cl(e,t,a,l){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case il:return e.return=e.return||e.value;case nl:return"";case ol:return e.return=e.value+"{"+sl(e.children,l)+"}";case rl:e.value=e.props.join(",")}return Ba(a=sl(e.children,l))?e.return=e.value+"{"+a+"}":""}function ul(e){return $a(gl("",null,null,null,[""],e=qa(e),0,[0],e))}function gl(e,t,a,l,n,r,i,o,s){for(var c=0,u=0,g=i,d=0,p=0,b=0,h=1,m=1,f=1,k=0,v="",y=n,w=r,C=l,_=v;m;)switch(b=k,k=ja()){case 40:if(108!=b&&58==La(_,g-1)){-1!=Ta(_+=Sa(Ka(k),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:_+=Ka(k);break;case 9:case 10:case 13:case 32:_+=Ja(b);break;case 92:_+=Ya(Wa()-1,7);continue;case 47:switch(Ga()){case 42:case 47:Oa(pl(Xa(ja(),Wa()),t,a),s);break;default:_+="/"}break;case 123*h:o[c++]=Ba(_)*f;case 125*h:case 59:case 0:switch(k){case 0:case 125:m=0;case 59+u:-1==f&&(_=Sa(_,/\f/g,"")),p>0&&Ba(_)-g&&Oa(p>32?bl(_+";",l,a,g-1):bl(Sa(_," ","")+";",l,a,g-2),s);break;case 59:_+=";";default:if(Oa(C=dl(_,t,a,c,u,n,o,v,y=[],w=[],g),r),123===k)if(0===u)gl(_,t,C,C,y,r,g,o,w);else switch(99===d&&110===La(_,3)?100:d){case 100:case 108:case 109:case 115:gl(e,C,C,l&&Oa(dl(e,C,C,0,0,n,o,v,n,y=[],g),w),n,w,g,o,l?y:w);break;default:gl(_,C,C,C,[""],w,0,o,w)}}c=u=p=0,h=f=1,v=_="",g=i;break;case 58:g=1+Ba(_),p=b;default:if(h<1)if(123==k)--h;else if(125==k&&0==h++&&125==Va())continue;switch(_+=_a(k),k*h){case 38:f=u>0?1:(_+="\f",-1);break;case 44:o[c++]=(Ba(_)-1)*f,f=1;break;case 64:45===Ga()&&(_+=Ka(ja())),d=Ga(),u=g=Ba(v=_+=el(Wa())),k++;break;case 45:45===b&&2==Ba(_)&&(h=0)}}return r}function dl(e,t,a,l,n,r,i,o,s,c,u){for(var g=n-1,d=0===n?r:[""],p=Ia(d),b=0,h=0,m=0;b<l;++b)for(var f=0,k=Ma(e,g+1,g=Ca(h=i[b])),v=e;f<p;++f)(v=xa(h>0?d[f]+" "+k:Sa(k,/&\f/g,d[f])))&&(s[m++]=v);return Ha(e,t,a,0===n?rl:o,s,c,u)}function pl(e,t,a){return Ha(e,t,a,nl,_a(Na),Ma(e,2,-2),0)}function bl(e,t,a,l){return Ha(e,t,a,il,Ma(e,0,l),Ma(e,l+1,-1),l)}var hl=function(e,t,a){for(var l=0,n=0;l=n,n=Ga(),38===l&&12===n&&(t[a]=1),!Za(n);)ja();return Ua(e,Da)},ml=new WeakMap,fl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,l=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ml.get(a))&&!l){ml.set(e,!0);for(var n=[],r=function(e,t){return $a(function(e,t){var a=-1,l=44;do{switch(Za(l)){case 0:38===l&&12===Ga()&&(t[a]=1),e[a]+=hl(Da-1,t,a);break;case 2:e[a]+=Ka(l);break;case 4:if(44===l){e[++a]=58===Ga()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=_a(l)}}while(l=ja());return e}(qa(e),t))}(t,n),i=a.props,o=0,s=0;o<r.length;o++)for(var c=0;c<i.length;c++,s++)e.props[s]=n[o]?r[o].replace(/&\f/g,i[c]):i[c]+" "+r[o]}}},kl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vl(e,t){switch(function(e,t){return 45^La(e,0)?(((t<<2^La(e,0))<<2^La(e,1))<<2^La(e,2))<<2^La(e,3):0}(e,t)){case 5103:return ll+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ll+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ll+e+al+e+tl+e+e;case 6828:case 4268:return ll+e+tl+e+e;case 6165:return ll+e+tl+"flex-"+e+e;case 5187:return ll+e+Sa(e,/(\w+).+(:[^]+)/,ll+"box-$1$2"+tl+"flex-$1$2")+e;case 5443:return ll+e+tl+"flex-item-"+Sa(e,/flex-|-self/,"")+e;case 4675:return ll+e+tl+"flex-line-pack"+Sa(e,/align-content|flex-|-self/,"")+e;case 5548:return ll+e+tl+Sa(e,"shrink","negative")+e;case 5292:return ll+e+tl+Sa(e,"basis","preferred-size")+e;case 6060:return ll+"box-"+Sa(e,"-grow","")+ll+e+tl+Sa(e,"grow","positive")+e;case 4554:return ll+Sa(e,/([^-])(transform)/g,"$1"+ll+"$2")+e;case 6187:return Sa(Sa(Sa(e,/(zoom-|grab)/,ll+"$1"),/(image-set)/,ll+"$1"),e,"")+e;case 5495:case 3959:return Sa(e,/(image-set\([^]*)/,ll+"$1$`$1");case 4968:return Sa(Sa(e,/(.+:)(flex-)?(.*)/,ll+"box-pack:$3"+tl+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ll+e+e;case 4095:case 3583:case 4068:case 2532:return Sa(e,/(.+)-inline(.+)/,ll+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ba(e)-1-t>6)switch(La(e,t+1)){case 109:if(45!==La(e,t+4))break;case 102:return Sa(e,/(.+:)(.+)-([^]+)/,"$1"+ll+"$2-$3$1"+al+(108==La(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ta(e,"stretch")?vl(Sa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==La(e,t+1))break;case 6444:switch(La(e,Ba(e)-3-(~Ta(e,"!important")&&10))){case 107:return Sa(e,":",":"+ll)+e;case 101:return Sa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ll+(45===La(e,14)?"inline-":"")+"box$3$1"+ll+"$2$3$1"+tl+"$2box$3")+e}break;case 5936:switch(La(e,t+11)){case 114:return ll+e+tl+Sa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ll+e+tl+Sa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ll+e+tl+Sa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ll+e+tl+e+e}return e}var yl=[function(e,t,a,l){if(e.length>-1&&!e.return)switch(e.type){case il:e.return=vl(e.value,e.length);break;case ol:return sl([Pa(e,{value:Sa(e.value,"@","@"+ll)})],l);case rl:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return sl([Pa(e,{props:[Sa(t,/:(read-\w+)/,":-moz-$1")]})],l);case"::placeholder":return sl([Pa(e,{props:[Sa(t,/:(plac\w+)/,":"+ll+"input-$1")]}),Pa(e,{props:[Sa(t,/:(plac\w+)/,":-moz-$1")]}),Pa(e,{props:[Sa(t,/:(plac\w+)/,tl+"input-$1")]})],l)}return""}))}}],wl=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var l,n,r=e.stylisPlugins||yl,i={},o=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)i[t[a]]=!0;o.push(e)}));var s,c,u,g,d=[cl,(g=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&g(e)})],p=(c=[fl,kl].concat(r,d),u=Ia(c),function(e,t,a,l){for(var n="",r=0;r<u;r++)n+=c[r](e,t,a,l)||"";return n});n=function(e,t,a,l){s=a,sl(ul(e?e+"{"+t.styles+"}":t.styles),p),l&&(b.inserted[t.name]=!0)};var b={key:t,sheet:new wa({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:n};return b.sheet.hydrate(o),b},Cl=function(e,t,a){var l=e.key+"-"+t.name;!1===a&&void 0===e.registered[l]&&(e.registered[l]=t.styles)},_l={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function El(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var xl=/[A-Z]|^ms/g,Sl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tl=function(e){return 45===e.charCodeAt(1)},Ll=function(e){return null!=e&&"boolean"!=typeof e},Ml=El((function(e){return Tl(e)?e:e.replace(xl,"-$&").toLowerCase()})),Bl=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Sl,(function(e,t,a){return Ol={name:t,styles:a,next:Ol},t}))}return 1===_l[e]||Tl(e)||"number"!=typeof t||0===t?t:t+"px"};function Il(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return Ol={name:a.name,styles:a.styles,next:Ol},a.name;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)Ol={name:l.name,styles:l.styles,next:Ol},l=l.next;return a.styles+";"}return function(e,t,a){var l="";if(Array.isArray(a))for(var n=0;n<a.length;n++)l+=Il(e,t,a[n])+";";else for(var r in a){var i=a[r];if("object"!=typeof i)null!=t&&void 0!==t[i]?l+=r+"{"+t[i]+"}":Ll(i)&&(l+=Ml(r)+":"+Bl(r,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var o=Il(e,t,i);switch(r){case"animation":case"animationName":l+=Ml(r)+":"+o+";";break;default:l+=r+"{"+o+"}"}}else for(var s=0;s<i.length;s++)Ll(i[s])&&(l+=Ml(r)+":"+Bl(r,i[s])+";")}return l}(e,t,a);case"function":if(void 0!==e){var n=Ol,r=a(e);return Ol=n,Il(e,t,r)}}if(null==t)return a;var i=t[a];return void 0!==i?i:a}var Ol,Al=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Rl=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var l=!0,n="";Ol=void 0;var r=e[0];null==r||void 0===r.raw?(l=!1,n+=Il(a,t,r)):n+=r[0];for(var i=1;i<e.length;i++)n+=Il(a,t,e[i]),l&&(n+=r[i]);Al.lastIndex=0;for(var o,s="";null!==(o=Al.exec(n));)s+="-"+o[1];var c=function(e){for(var t,a=0,l=0,n=e.length;n>=4;++l,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(n){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(l)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}(n)+s;return{name:c,styles:n,next:Ol}},zl=!!e.useInsertionEffect&&e.useInsertionEffect,Dl=zl||function(e){return e()},Nl=(zl||e.useLayoutEffect,{}.hasOwnProperty),Fl=e.createContext("undefined"!=typeof HTMLElement?wl({key:"css"}):null);Fl.Provider;var Hl=function(t){return(0,e.forwardRef)((function(a,l){var n=(0,e.useContext)(Fl);return t(a,n,l)}))},Pl=e.createContext({}),Vl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jl=function(e){var t=e.cache,a=e.serialized,l=e.isStringTag;return Cl(t,a,l),Dl((function(){return function(e,t,a){Cl(e,t,a);var l=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+l:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(t,a,l)})),null},Gl=Hl((function(t,a,l){var n=t.css;"string"==typeof n&&void 0!==a.registered[n]&&(n=a.registered[n]);var r=t[Vl],i=[n],o="";"string"==typeof t.className?o=function(e,t,a){var l="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):l+=a+" "})),l}(a.registered,i,t.className):null!=t.className&&(o=t.className+" ");var s=Rl(i,void 0,e.useContext(Pl));o+=a.key+"-"+s.name;var c={};for(var u in t)Nl.call(t,u)&&"css"!==u&&u!==Vl&&(c[u]=t[u]);return c.ref=l,c.className=o,e.createElement(e.Fragment,null,e.createElement(jl,{cache:a,serialized:s,isStringTag:"string"==typeof r}),e.createElement(r,c))})),Wl=Gl,Ul=(a(679),function(t,a){var l=arguments;if(null==a||!Nl.call(a,"css"))return e.createElement.apply(void 0,l);var n=l.length,r=new Array(n);r[0]=Wl,r[1]=function(e,t){var a={};for(var l in t)Nl.call(t,l)&&(a[l]=t[l]);return a[Vl]=e,a}(t,a);for(var i=2;i<n;i++)r[i]=l[i];return e.createElement.apply(null,r)});function Zl(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Rl(t)}const ql=Math.min,$l=Math.max,Kl=Math.round,Jl=Math.floor,Yl=e=>({x:e,y:e});function Ql(e){return tn(e)?(e.nodeName||"").toLowerCase():"#document"}function Xl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function en(e){var t;return null==(t=(tn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tn(e){return e instanceof Node||e instanceof Xl(e).Node}function an(e){return e instanceof Element||e instanceof Xl(e).Element}function ln(e){return e instanceof HTMLElement||e instanceof Xl(e).HTMLElement}function nn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Xl(e).ShadowRoot)}function rn(e){const{overflow:t,overflowX:a,overflowY:l,display:n}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+a)&&!["inline","contents"].includes(n)}function on(e){return Xl(e).getComputedStyle(e)}function sn(e){const t=function(e){if("html"===Ql(e))return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||en(e);return nn(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Ql(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&rn(t)?t:sn(t)}function cn(e,t,a){var l;void 0===t&&(t=[]),void 0===a&&(a=!0);const n=sn(e),r=n===(null==(l=e.ownerDocument)?void 0:l.body),i=Xl(n);return r?t.concat(i,i.visualViewport||[],rn(n)?n:[],i.frameElement&&a?cn(i.frameElement):[]):t.concat(n,cn(n,[],a))}function un(e){return an(e)?e:e.contextElement}function gn(e){const t=un(e);if(!ln(t))return Yl(1);const a=t.getBoundingClientRect(),{width:l,height:n,$:r}=function(e){const t=on(e);let a=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const n=ln(e),r=n?e.offsetWidth:a,i=n?e.offsetHeight:l,o=Kl(a)!==r||Kl(l)!==i;return o&&(a=r,l=i),{width:a,height:l,$:o}}(t);let i=(r?Kl(a.width):a.width)/l,o=(r?Kl(a.height):a.height)/n;return i&&Number.isFinite(i)||(i=1),o&&Number.isFinite(o)||(o=1),{x:i,y:o}}const dn=Yl(0);function pn(e){const t=Xl(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dn}function bn(e,t,a,l){void 0===t&&(t=!1),void 0===a&&(a=!1);const n=e.getBoundingClientRect(),r=un(e);let i=Yl(1);t&&(l?an(l)&&(i=gn(l)):i=gn(e));const o=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==Xl(e))&&t}(r,a,l)?pn(r):Yl(0);let s=(n.left+o.x)/i.x,c=(n.top+o.y)/i.y,u=n.width/i.x,g=n.height/i.y;if(r){const e=Xl(r),t=l&&an(l)?Xl(l):l;let a=e.frameElement;for(;a&&l&&t!==e;){const e=gn(a),t=a.getBoundingClientRect(),l=on(a),n=t.left+(a.clientLeft+parseFloat(l.paddingLeft))*e.x,r=t.top+(a.clientTop+parseFloat(l.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,g*=e.y,s+=n,c+=r,a=Xl(a).frameElement}}return d={width:u,height:g,x:s,y:c},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}var hn=e.useLayoutEffect,mn=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],fn=function(){};function kn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function vn(e,t){for(var a=arguments.length,l=new Array(a>2?a-2:0),n=2;n<a;n++)l[n-2]=arguments[n];var r=[].concat(l);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(kn(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var yn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===na(e)&&null!==e?[e]:[];var t},wn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,sa({},da(e,mn))},Cn=function(e,t,a){var l=e.cx,n=e.getStyles,r=e.getClassNames,i=e.className;return{css:n(t,e),className:l(null!=a?a:{},r(t,e),i)}};function En(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xn(e){return En(e)?window.pageYOffset:e.scrollTop}function Sn(e,t){En(e)?window.scrollTo(0,t):e.scrollTop=t}function Tn(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn,n=xn(e),r=t-n,i=0;!function t(){var o=function(e,t,a,l){return a*((e=e/l-1)*e*e+1)+t}(i+=10,n,r,a);Sn(e,o),i<a?window.requestAnimationFrame(t):l(e)}()}function Ln(e,t){var a=e.getBoundingClientRect(),l=t.getBoundingClientRect(),n=t.offsetHeight/3;l.bottom+n>a.bottom?Sn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):l.top-n<a.top&&Sn(e,Math.max(t.offsetTop-n,0))}function Mn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Bn=!1,In={get passive(){return Bn=!0}},On="undefined"!=typeof window?window:{};On.addEventListener&&On.removeEventListener&&(On.addEventListener("p",fn,In),On.removeEventListener("p",fn,!1));var An=Bn;function Rn(e){return null!=e}function zn(e,t,a){return e?t:a}var Dn=["children","innerProps"],Nn=["children","innerProps"];var Fn,Hn,Pn,Vn=function(e){return"auto"===e?"bottom":e},jn=(0,e.createContext)(null),Gn=function(t){var a=t.children,l=t.minMenuHeight,n=t.maxMenuHeight,r=t.menuPlacement,i=t.menuPosition,o=t.menuShouldScrollIntoView,s=t.theme,c=((0,e.useContext)(jn)||{}).setPortalPlacement,u=(0,e.useRef)(null),g=ga((0,e.useState)(n),2),d=g[0],p=g[1],b=ga((0,e.useState)(null),2),h=b[0],m=b[1],f=s.spacing.controlHeight;return hn((function(){var e=u.current;if(e){var t="fixed"===i,a=function(e){var t=e.maxHeight,a=e.menuEl,l=e.minHeight,n=e.placement,r=e.shouldScroll,i=e.isFixedPosition,o=e.controlHeight,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,l=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),(!a||"static"!==t.position)&&l.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=s.getBoundingClientRect().height,g=a.getBoundingClientRect(),d=g.bottom,p=g.height,b=g.top,h=a.offsetParent.getBoundingClientRect().top,m=i?window.innerHeight:function(e){return En(e)?window.innerHeight:e.clientHeight}(s),f=xn(s),k=parseInt(getComputedStyle(a).marginBottom,10),v=parseInt(getComputedStyle(a).marginTop,10),y=h-v,w=m-b,C=y+f,_=u-f-b,E=d-m+f+k,x=f+b-v,S=160;switch(n){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(_>=p&&!i)return r&&Tn(s,E,S),{placement:"bottom",maxHeight:t};if(!i&&_>=l||i&&w>=l)return r&&Tn(s,E,S),{placement:"bottom",maxHeight:i?w-k:_-k};if("auto"===n||i){var T=t,L=i?y:C;return L>=l&&(T=Math.min(L-k-o,t)),{placement:"top",maxHeight:T}}if("bottom"===n)return r&&Sn(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(y>=p)return{placement:"top",maxHeight:t};if(C>=p&&!i)return r&&Tn(s,x,S),{placement:"top",maxHeight:t};if(!i&&C>=l||i&&y>=l){var M=t;return(!i&&C>=l||i&&y>=l)&&(M=i?y-v:C-v),r&&Tn(s,x,S),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}({maxHeight:n,menuEl:e,minHeight:l,placement:r,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:f});p(a.maxHeight),m(a.placement),null==c||c(a.placement)}}),[n,r,i,o,l,c,f]),a({ref:u,placerProps:sa(sa({},t),{},{placement:h||Vn(r),maxHeight:d})})},Wn=function(e,t){var a=e.theme,l=a.spacing.baseUnit,n=a.colors;return sa({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(2*l,"px ").concat(3*l,"px")})},Un=Wn,Zn=Wn,qn=["size"],$n=["innerProps","isRtl","size"],Kn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Jn=function(e){var t=e.size,a=da(e,qn);return Ul("svg",ha({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Kn},a))},Yn=function(e){return Ul(Jn,ha({size:20},e),Ul("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Qn=function(e){return Ul(Jn,ha({size:20},e),Ul("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Xn=function(e,t){var a=e.isFocused,l=e.theme,n=l.spacing.baseUnit,r=l.colors;return sa({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?r.neutral60:r.neutral20,padding:2*n,":hover":{color:a?r.neutral80:r.neutral40}})},er=Xn,tr=Xn,ar=function(){var e=Zl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Fn||(Hn=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Pn||(Pn=Hn.slice(0)),Fn=Object.freeze(Object.defineProperties(Hn,{raw:{value:Object.freeze(Pn)}})))),lr=function(e){var t=e.delay,a=e.offset;return Ul("span",{css:Zl({animation:"".concat(ar," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},nr=["data"],rr=["innerRef","isDisabled","isHidden","inputClassName"],ir={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},or={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":sa({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ir)},sr=function(e){return sa({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ir)},cr=function(e){var t=e.children,a=e.innerProps;return Ul("div",a,t)},ur={ClearIndicator:function(e){var t=e.children,a=e.innerProps;return Ul("div",ha({},Cn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||Ul(Yn,null))},Control:function(e){var t=e.children,a=e.isDisabled,l=e.isFocused,n=e.innerRef,r=e.innerProps,i=e.menuIsOpen;return Ul("div",ha({ref:n},Cn(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":l,"control--menu-is-open":i}),r,{"aria-disabled":a||void 0}),t)},DropdownIndicator:function(e){var t=e.children,a=e.innerProps;return Ul("div",ha({},Cn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||Ul(Qn,null))},DownChevron:Qn,CrossIcon:Yn,Group:function(e){var t=e.children,a=e.cx,l=e.getStyles,n=e.getClassNames,r=e.Heading,i=e.headingProps,o=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return Ul("div",ha({},Cn(e,"group",{group:!0}),o),Ul(r,ha({},i,{selectProps:u,theme:c,getStyles:l,getClassNames:n,cx:a}),s),Ul("div",null,t))},GroupHeading:function(e){var t=wn(e);t.data;var a=da(t,nr);return Ul("div",ha({},Cn(e,"groupHeading",{"group-heading":!0}),a))},IndicatorsContainer:function(e){var t=e.children,a=e.innerProps;return Ul("div",ha({},Cn(e,"indicatorsContainer",{indicators:!0}),a),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ul("span",ha({},t,Cn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,a=e.value,l=wn(e),n=l.innerRef,r=l.isDisabled,i=l.isHidden,o=l.inputClassName,s=da(l,rr);return Ul("div",ha({},Cn(e,"input",{"input-container":!0}),{"data-value":a||""}),Ul("input",ha({className:t({input:!0},o),ref:n,style:sr(i),disabled:r},s)))},LoadingIndicator:function(e){var t=e.innerProps,a=e.isRtl,l=e.size,n=void 0===l?4:l,r=da(e,$n);return Ul("div",ha({},Cn(sa(sa({},r),{},{innerProps:t,isRtl:a,size:n}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ul(lr,{delay:0,offset:a}),Ul(lr,{delay:160,offset:!0}),Ul(lr,{delay:320,offset:!a}))},Menu:function(e){var t=e.children,a=e.innerRef,l=e.innerProps;return Ul("div",ha({},Cn(e,"menu",{menu:!0}),{ref:a},l),t)},MenuList:function(e){var t=e.children,a=e.innerProps,l=e.innerRef,n=e.isMulti;return Ul("div",ha({},Cn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:l},a),t)},MenuPortal:function(t){var a=t.appendTo,l=t.children,n=t.controlElement,r=t.innerProps,i=t.menuPlacement,o=t.menuPosition,s=(0,e.useRef)(null),c=(0,e.useRef)(null),u=ga((0,e.useState)(Vn(i)),2),g=u[0],d=u[1],p=(0,e.useMemo)((function(){return{setPortalPlacement:d}}),[]),b=ga((0,e.useState)(null),2),h=b[0],m=b[1],f=(0,e.useCallback)((function(){if(n){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(n),t="fixed"===o?0:window.pageYOffset,a=e[g]+t;a===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:a,rect:e})}}),[n,o,g,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);hn((function(){f()}),[f]);var k=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),n&&s.current&&(c.current=function(e,t,a,l){void 0===l&&(l={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:o="function"==typeof IntersectionObserver,animationFrame:s=!1}=l,c=un(e),u=n||r?[...c?cn(c):[],...cn(t)]:[];u.forEach((e=>{n&&e.addEventListener("scroll",a,{passive:!0}),r&&e.addEventListener("resize",a)}));const g=c&&o?function(e,t){let a,l=null;const n=en(e);function r(){clearTimeout(a),l&&l.disconnect(),l=null}return function i(o,s){void 0===o&&(o=!1),void 0===s&&(s=1),r();const{left:c,top:u,width:g,height:d}=e.getBoundingClientRect();if(o||t(),!g||!d)return;const p={rootMargin:-Jl(u)+"px "+-Jl(n.clientWidth-(c+g))+"px "+-Jl(n.clientHeight-(u+d))+"px "+-Jl(c)+"px",threshold:$l(0,ql(1,s))||1};let b=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!b)return i();t?i(!1,t):a=setTimeout((()=>{i(!1,1e-7)}),100)}b=!1}try{l=new IntersectionObserver(h,{...p,root:n.ownerDocument})}catch(e){l=new IntersectionObserver(h,p)}l.observe(e)}(!0),r}(c,a):null;let d,p=-1,b=null;i&&(b=new ResizeObserver((e=>{let[l]=e;l&&l.target===c&&b&&(b.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{b&&b.observe(t)}))),a()})),c&&!s&&b.observe(c),b.observe(t));let h=s?bn(e):null;return s&&function t(){const l=bn(e);!h||l.x===h.x&&l.y===h.y&&l.width===h.width&&l.height===h.height||a(),h=l,d=requestAnimationFrame(t)}(),a(),()=>{u.forEach((e=>{n&&e.removeEventListener("scroll",a),r&&e.removeEventListener("resize",a)})),g&&g(),b&&b.disconnect(),b=null,s&&cancelAnimationFrame(d)}}(n,s.current,f,{elementResize:"ResizeObserver"in window}))}),[n,f]);hn((function(){k()}),[k]);var y=(0,e.useCallback)((function(e){s.current=e,k()}),[k]);if(!a&&"fixed"!==o||!h)return null;var w=Ul("div",ha({ref:y},Cn(sa(sa({},t),{},{offset:h.offset,position:o,rect:h.rect}),"menuPortal",{"menu-portal":!0}),r),l);return Ul(jn.Provider,{value:p},a?(0,v.createPortal)(w,a):w)},LoadingMessage:function(e){var t=e.children,a=void 0===t?"Loading...":t,l=e.innerProps,n=da(e,Nn);return Ul("div",ha({},Cn(sa(sa({},n),{},{children:a,innerProps:l}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),l),a)},NoOptionsMessage:function(e){var t=e.children,a=void 0===t?"No options":t,l=e.innerProps,n=da(e,Dn);return Ul("div",ha({},Cn(sa(sa({},n),{},{children:a,innerProps:l}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),l),a)},MultiValue:function(e){var t=e.children,a=e.components,l=e.data,n=e.innerProps,r=e.isDisabled,i=e.removeProps,o=e.selectProps,s=a.Container,c=a.Label,u=a.Remove;return Ul(s,{data:l,innerProps:sa(sa({},Cn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),n),selectProps:o},Ul(c,{data:l,innerProps:sa({},Cn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:o},t),Ul(u,{data:l,innerProps:sa(sa({},Cn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:o}))},MultiValueContainer:cr,MultiValueLabel:cr,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return Ul("div",ha({role:"button"},a),t||Ul(Yn,{size:14}))},Option:function(e){var t=e.children,a=e.isDisabled,l=e.isFocused,n=e.isSelected,r=e.innerRef,i=e.innerProps;return Ul("div",ha({},Cn(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":l,"option--is-selected":n}),{ref:r,"aria-disabled":a},i),t)},Placeholder:function(e){var t=e.children,a=e.innerProps;return Ul("div",ha({},Cn(e,"placeholder",{placeholder:!0}),a),t)},SelectContainer:function(e){var t=e.children,a=e.innerProps,l=e.isDisabled,n=e.isRtl;return Ul("div",ha({},Cn(e,"container",{"--is-disabled":l,"--is-rtl":n}),a),t)},SingleValue:function(e){var t=e.children,a=e.isDisabled,l=e.innerProps;return Ul("div",ha({},Cn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),l),t)},ValueContainer:function(e){var t=e.children,a=e.innerProps,l=e.isMulti,n=e.hasValue;return Ul("div",ha({},Cn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":l,"value-container--has-value":n}),a),t)}},gr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dr(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((l=e[a])===(n=t[a])||gr(l)&&gr(n)))return!1;var l,n;return!0}for(var pr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},br=function(e){return Ul("span",ha({css:pr},e))},hr={guidance:function(e){var t=e.isSearchable,a=e.isMulti,l=e.isDisabled,n=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(l?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,l=void 0===a?"":a,n=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(n.length>1?"s":""," ").concat(n.join(","),", selected.");case"select-option":return"option ".concat(l,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,l=e.options,n=e.label,r=void 0===n?"":n,i=e.selectValue,o=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(r," focused, ").concat(c(i,a),".");if("menu"===t){var u=o?" disabled":"",g="".concat(s?"selected":"focused").concat(u);return"option ".concat(r," ").concat(g,", ").concat(c(l,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},mr=function(t){var a=t.ariaSelection,l=t.focusedOption,n=t.focusedValue,r=t.focusableOptions,i=t.isFocused,o=t.selectValue,s=t.selectProps,c=t.id,u=s.ariaLiveMessages,g=s.getOptionLabel,d=s.inputValue,p=s.isMulti,b=s.isOptionDisabled,h=s.isSearchable,m=s.menuIsOpen,f=s.options,k=s.screenReaderStatus,v=s.tabSelectsValue,y=s["aria-label"],w=s["aria-live"],C=(0,e.useMemo)((function(){return sa(sa({},hr),u||{})}),[u]),_=(0,e.useMemo)((function(){var e,t="";if(a&&C.onChange){var l=a.option,n=a.options,r=a.removedValue,i=a.removedValues,s=a.value,c=r||l||(e=s,Array.isArray(e)?null:e),u=c?g(c):"",d=n||i||void 0,p=d?d.map(g):[],h=sa({isDisabled:c&&b(c,o),label:u,labels:p},a);t=C.onChange(h)}return t}),[a,C,b,o,g]),E=(0,e.useMemo)((function(){var e="",t=l||n,a=!!(l&&o&&o.includes(l));if(t&&C.onFocus){var i={focused:t,label:g(t),isDisabled:b(t,o),isSelected:a,options:r,context:t===l?"menu":"value",selectValue:o};e=C.onFocus(i)}return e}),[l,n,g,b,C,r,o]),x=(0,e.useMemo)((function(){var e="";if(m&&f.length&&C.onFilter){var t=k({count:r.length});e=C.onFilter({inputValue:d,resultsMessage:t})}return e}),[r,d,m,C,f,k]),S=(0,e.useMemo)((function(){var e="";if(C.guidance){var t=n?"value":m?"menu":"input";e=C.guidance({"aria-label":y,context:t,isDisabled:l&&b(l,o),isMulti:p,isSearchable:h,tabSelectsValue:v})}return e}),[y,l,n,p,b,h,m,C,o,v]),T="".concat(E," ").concat(x," ").concat(S),L=Ul(e.Fragment,null,Ul("span",{id:"aria-selection"},_),Ul("span",{id:"aria-context"},T)),M="initial-input-focus"===(null==a?void 0:a.action);return Ul(e.Fragment,null,Ul(br,{id:c},M&&L),Ul(br,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!M&&L))},fr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],kr=new RegExp("["+fr.map((function(e){return e.letters})).join("")+"]","g"),vr={},yr=0;yr<fr.length;yr++)for(var wr=fr[yr],Cr=0;Cr<wr.letters.length;Cr++)vr[wr.letters[Cr]]=wr.base;var _r=function(e){return e.replace(kr,(function(e){return vr[e]}))},Er=function(e,t){void 0===t&&(t=dr);var a=null;function l(){for(var l=[],n=0;n<arguments.length;n++)l[n]=arguments[n];if(a&&a.lastThis===this&&t(l,a.lastArgs))return a.lastResult;var r=e.apply(this,l);return a={lastResult:r,lastArgs:l,lastThis:this},r}return l.clear=function(){a=null},l}(_r),xr=function(e){return e.replace(/^\s+|\s+$/g,"")},Sr=function(e){return"".concat(e.label," ").concat(e.value)},Tr=["innerRef"];function Lr(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];var n=Object.entries(e).filter((function(e){var t=ga(e,1)[0];return!a.includes(t)}));return n.reduce((function(e,t){var a=ga(t,2),l=a[0],n=a[1];return e[l]=n,e}),{})}(da(e,Tr),"onExited","in","enter","exit","appear");return Ul("input",ha({ref:t},a,{css:Zl({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Mr=["boxSizing","height","overflow","paddingRight","position"],Br={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ir(e){e.preventDefault()}function Or(e){e.stopPropagation()}function Ar(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Rr(){return"ontouchstart"in window||navigator.maxTouchPoints}var zr=!("undefined"==typeof window||!window.document||!window.document.createElement),Dr=0,Nr={capture:!1,passive:!1},Fr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Hr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pr(t){var a=t.children,l=t.lockEnabled,n=t.captureEnabled,r=function(t){var a=t.isEnabled,l=t.onBottomArrive,n=t.onBottomLeave,r=t.onTopArrive,i=t.onTopLeave,o=(0,e.useRef)(!1),s=(0,e.useRef)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(null),g=(0,e.useCallback)((function(e,t){if(null!==u.current){var a=u.current,c=a.scrollTop,g=a.scrollHeight,d=a.clientHeight,p=u.current,b=t>0,h=g-d-c,m=!1;h>t&&o.current&&(n&&n(e),o.current=!1),b&&s.current&&(i&&i(e),s.current=!1),b&&t>h?(l&&!o.current&&l(e),p.scrollTop=g,m=!0,o.current=!0):!b&&-t>c&&(r&&!s.current&&r(e),p.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[l,n,r,i]),d=(0,e.useCallback)((function(e){g(e,e.deltaY)}),[g]),p=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),b=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;g(e,t)}),[g]),h=(0,e.useCallback)((function(e){if(e){var t=!!An&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",b,t)}}),[b,p,d]),m=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",b,!1))}),[b,p,d]);return(0,e.useEffect)((function(){if(a){var e=u.current;return h(e),function(){m(e)}}}),[a,h,m]),function(e){u.current=e}}({isEnabled:void 0===n||n,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),i=function(t){var a=t.isEnabled,l=t.accountForScrollbars,n=void 0===l||l,r=(0,e.useRef)({}),i=(0,e.useRef)(null),o=(0,e.useCallback)((function(e){if(zr){var t=document.body,a=t&&t.style;if(n&&Mr.forEach((function(e){var t=a&&a[e];r.current[e]=t})),n&&Dr<1){var l=parseInt(r.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+l||0;Object.keys(Br).forEach((function(e){var t=Br[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&Rr()&&(t.addEventListener("touchmove",Ir,Nr),e&&(e.addEventListener("touchstart",Ar,Nr),e.addEventListener("touchmove",Or,Nr))),Dr+=1}}),[n]),s=(0,e.useCallback)((function(e){if(zr){var t=document.body,a=t&&t.style;Dr=Math.max(Dr-1,0),n&&Dr<1&&Mr.forEach((function(e){var t=r.current[e];a&&(a[e]=t)})),t&&Rr()&&(t.removeEventListener("touchmove",Ir,Nr),e&&(e.removeEventListener("touchstart",Ar,Nr),e.removeEventListener("touchmove",Or,Nr)))}}),[n]);return(0,e.useEffect)((function(){if(a){var e=i.current;return o(e),function(){s(e)}}}),[a,o,s]),function(e){i.current=e}}({isEnabled:l});return Ul(e.Fragment,null,l&&Ul("div",{onClick:Fr,css:Hr}),a((function(e){r(e),i(e)})))}var Vr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},jr=function(e){var t=e.name,a=e.onFocus;return Ul("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Vr,value:"",onChange:function(){}})},Gr=function(e){return e.label},Wr=function(e){return e.value},Ur={clearIndicator:tr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var a=e.isDisabled,l=e.isFocused,n=e.theme,r=n.colors,i=n.borderRadius;return sa({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:n.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?r.neutral5:r.neutral0,borderColor:a?r.neutral10:l?r.primary:r.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:l?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:l?r.primary:r.neutral30}})},dropdownIndicator:er,group:function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:2*a.baseUnit,paddingTop:2*a.baseUnit}},groupHeading:function(e,t){var a=e.theme,l=a.colors,n=a.spacing;return sa({label:"group",cursor:"default",display:"block"},t?{}:{color:l.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*n.baseUnit,paddingRight:3*n.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var a=e.isDisabled,l=e.theme,n=l.spacing.baseUnit,r=l.colors;return sa({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?r.neutral10:r.neutral20,marginBottom:2*n,marginTop:2*n})},input:function(e,t){var a=e.isDisabled,l=e.value,n=e.theme,r=n.spacing,i=n.colors;return sa(sa({visibility:a?"hidden":"visible",transform:l?"translateZ(0)":""},or),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var a=e.isFocused,l=e.size,n=e.theme,r=n.colors,i=n.spacing.baseUnit;return sa({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:l,lineHeight:1,marginRight:l,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?r.neutral60:r.neutral20,padding:2*i})},loadingMessage:Zn,menu:function(e,t){var a,l=e.placement,n=e.theme,r=n.borderRadius,i=n.spacing,o=n.colors;return sa((ia(a={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(l),"100%"),ia(a,"position","absolute"),ia(a,"width","100%"),ia(a,"zIndex",1),a),t?{}:{backgroundColor:o.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var a=e.maxHeight,l=e.theme.spacing.baseUnit;return sa({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:l,paddingTop:l})},menuPortal:function(e){var t=e.rect,a=e.offset,l=e.position;return{left:t.left,position:l,top:a,width:t.width,zIndex:1}},multiValue:function(e,t){var a=e.theme,l=a.spacing,n=a.borderRadius,r=a.colors;return sa({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:n/2,margin:l.baseUnit/2})},multiValueLabel:function(e,t){var a=e.theme,l=a.borderRadius,n=a.colors,r=e.cropWithEllipsis;return sa({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:l/2,color:n.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var a=e.theme,l=a.spacing,n=a.borderRadius,r=a.colors,i=e.isFocused;return sa({alignItems:"center",display:"flex"},t?{}:{borderRadius:n/2,backgroundColor:i?r.dangerLight:void 0,paddingLeft:l.baseUnit,paddingRight:l.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:Un,option:function(e,t){var a=e.isDisabled,l=e.isFocused,n=e.isSelected,r=e.theme,i=r.spacing,o=r.colors;return sa({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:n?o.primary:l?o.primary25:"transparent",color:a?o.neutral20:n?o.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:a?void 0:n?o.primary:o.primary50}})},placeholder:function(e,t){var a=e.theme,l=a.spacing,n=a.colors;return sa({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.neutral50,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},singleValue:function(e,t){var a=e.isDisabled,l=e.theme,n=l.spacing,r=l.colors;return sa({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?r.neutral40:r.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},valueContainer:function(e,t){var a=e.theme.spacing,l=e.isMulti,n=e.hasValue,r=e.selectProps.controlShouldRenderValue;return sa({alignItems:"center",display:l&&n&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(2*a.baseUnit,"px")})}},Zr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},qr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Mn(),captureMenuScroll:!Mn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=sa({ignoreCase:!0,ignoreAccents:!0,stringify:Sr,trim:!0,matchFrom:"any"},undefined),l=a.ignoreCase,n=a.ignoreAccents,r=a.stringify,i=a.trim,o=a.matchFrom,s=i?xr(t):t,c=i?xr(r(e)):r(e);return l&&(s=s.toLowerCase(),c=c.toLowerCase()),n&&(s=Er(s),c=_r(c)),"start"===o?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:Gr,getOptionValue:Wr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function $r(e,t,a,l){return{type:"option",data:t,isDisabled:ei(e,t,a),isSelected:ti(e,t,a),label:Qr(e,t),value:Xr(e,t),index:l}}function Kr(e,t){return e.options.map((function(a,l){if("options"in a){var n=a.options.map((function(a,l){return $r(e,a,t,l)})).filter((function(t){return Yr(e,t)}));return n.length>0?{type:"group",data:a,options:n,index:l}:void 0}var r=$r(e,a,t,l);return Yr(e,r)?r:void 0})).filter(Rn)}function Jr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ya(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Yr(e,t){var a=e.inputValue,l=void 0===a?"":a,n=t.data,r=t.isSelected,i=t.label,o=t.value;return(!li(e)||!r)&&ai(e,{label:i,value:o,data:n},l)}var Qr=function(e,t){return e.getOptionLabel(t)},Xr=function(e,t){return e.getOptionValue(t)};function ei(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function ti(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var l=Xr(e,t);return a.some((function(t){return Xr(e,t)===l}))}function ai(e,t,a){return!e.filterOption||e.filterOption(t,a)}var li=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},ni=1,ri=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fa(e,t)}(i,t);var a,l,n,r=va(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var l=t.props,n=l.onChange,r=l.name;a.name=r,t.ariaOnChange(e,a),n(e,a)},t.setValue=function(e,a,l){var n=t.props,r=n.closeMenuOnSelect,i=n.isMulti,o=n.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:o}),r&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:l})},t.selectOption=function(e){var a=t.props,l=a.blurInputOnSelect,n=a.isMulti,r=a.name,i=t.state.selectValue,o=n&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(o){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:r});n?t.setValue([].concat(ya(i),[e]),"select-option",e):t.setValue(e,"select-option")}l&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,l=t.state.selectValue,n=t.getOptionValue(e),r=l.filter((function(e){return t.getOptionValue(e)!==n})),i=zn(a,r,r[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(zn(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,l=a[a.length-1],n=a.slice(0,a.length-1),r=zn(e,n,n[0]||null);t.onChange(r,{action:"pop-value",removedValue:l})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),l=0;l<e;l++)a[l]=arguments[l];return vn.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return Qr(t.props,e)},t.getOptionValue=function(e){return Xr(t.props,e)},t.getStyles=function(e,a){var l=t.props.unstyled,n=Ur[e](a,l);n.boxSizing="border-box";var r=t.props.styles[e];return r?r(n,a):n},t.getClassNames=function(e,a){var l,n;return null===(l=(n=t.props.classNames)[e])||void 0===l?void 0:l.call(n,a)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,sa(sa({},ur),e.components);var e},t.buildCategorizedOptions=function(){return Kr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Jr(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:sa({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,l=a.isMulti,n=a.menuIsOpen;t.focusInput(),n?(t.setState({inputIsHiddenAfterUpdate:!l}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&En(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,l=a&&a.item(0);l&&(t.initialTouchX=l.clientX,t.initialTouchY=l.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,l=a&&a.item(0);if(l){var n=Math.abs(l.clientX-t.initialTouchX),r=Math.abs(l.clientY-t.initialTouchY);t.userIsDragging=n>5||r>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,l=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(l,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return li(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var a=t.props,l=a.isMulti,n=a.backspaceRemovesValue,r=a.escapeClearsValue,i=a.inputValue,o=a.isClearable,s=a.isDisabled,c=a.menuIsOpen,u=a.onKeyDown,g=a.tabSelectsValue,d=a.openMenuOnFocus,p=t.state,b=p.focusedOption,h=p.focusedValue,m=p.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!l||i)return;t.focusValue("previous");break;case"ArrowRight":if(!l||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)t.removeValue(h);else{if(!n)return;l?t.popValue():o&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!g||!b||d&&t.isOptionSelected(b,m))return;t.selectOption(b);break;case"Enter":if(229===e.keyCode)break;if(c){if(!b)return;if(t.isComposing)return;t.selectOption(b);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):o&&r&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!b)return;t.selectOption(b);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++ni),t.state.selectValue=yn(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.buildFocusableOptions(),l=a.indexOf(t.state.selectValue[0]);t.state.focusedOption=a[l]}return t}return a=i,l=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ln(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.isDisabled,l=t.menuIsOpen,n=this.state.isFocused;(n&&!a&&e.isDisabled||n&&l&&!e.menuIsOpen)&&this.focusInput(),n&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):n||a||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ln(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,l=a.selectValue,n=a.isFocused,r=this.buildFocusableOptions(),i="first"===e?0:r.length-1;if(!this.props.isMulti){var o=r.indexOf(l[0]);o>-1&&(i=o)}this.scrollToFocusedOptionOnUpdate=!(n&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,l=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var n=a.indexOf(l);l||(n=-1);var r=a.length-1,i=-1;if(a.length){switch(e){case"previous":i=0===n?0:-1===n?r:n-1;break;case"next":n>-1&&n<r&&(i=n+1)}this.setState({inputIsHidden:-1!==i,focusedValue:a[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var n=0,r=l.indexOf(a);a||(r=-1),"up"===e?n=r>0?r-1:l.length-1:"down"===e?n=(r+1)%l.length:"pageup"===e?(n=r-t)<0&&(n=0):"pagedown"===e?(n=r+t)>l.length-1&&(n=l.length-1):"last"===e&&(n=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[n],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Zr):sa(sa({},Zr),this.props.theme):Zr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,l=this.getClassNames,n=this.getValue,r=this.selectOption,i=this.setValue,o=this.props,s=o.isMulti,c=o.isRtl,u=o.options;return{clearValue:e,cx:t,getStyles:a,getClassNames:l,getValue:n,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:r,selectProps:o,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return ei(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ti(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ai(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:l})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,a=t.isDisabled,l=t.isSearchable,n=t.inputId,r=t.inputValue,i=t.tabIndex,o=t.form,s=t.menuIsOpen,c=t.required,u=this.getComponents().Input,g=this.state,d=g.inputIsHidden,p=g.ariaSelection,b=this.commonProps,h=n||this.getElementId("input"),m=sa(sa(sa({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?e.createElement(u,ha({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:a,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:r},m)):e.createElement(Lr,ha({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:fn,onFocus:this.onInputFocus,disabled:a,tabIndex:i,inputMode:"none",form:o,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,a=this.getComponents(),l=a.MultiValue,n=a.MultiValueContainer,r=a.MultiValueLabel,i=a.MultiValueRemove,o=a.SingleValue,s=a.Placeholder,c=this.commonProps,u=this.props,g=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,b=u.inputValue,h=u.placeholder,m=this.state,f=m.selectValue,k=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!g)return b?null:e.createElement(s,ha({},c,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return f.map((function(a,o){var s=a===k,u="".concat(t.getOptionLabel(a),"-").concat(t.getOptionValue(a));return e.createElement(l,ha({},c,{components:{Container:n,Label:r,Remove:i},isFocused:s,isDisabled:d,key:u,index:o,removeProps:{onClick:function(){return t.removeValue(a)},onTouchEnd:function(){return t.removeValue(a)},onMouseDown:function(e){e.preventDefault()}},data:a}),t.formatOptionLabel(a,"value"))}));if(b)return null;var y=f[0];return e.createElement(o,ha({},c,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||n||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ha({},a,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;return t&&r?e.createElement(t,ha({},a,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),a=t.DropdownIndicator,l=t.IndicatorSeparator;if(!a||!l)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return e.createElement(l,ha({},n,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var a=this.commonProps,l=this.props.isDisabled,n=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ha({},a,{innerProps:r,isDisabled:l,isFocused:n}))}},{key:"renderMenu",value:function(){var t=this,a=this.getComponents(),l=a.Group,n=a.GroupHeading,r=a.Menu,i=a.MenuList,o=a.MenuPortal,s=a.LoadingMessage,c=a.NoOptionsMessage,u=a.Option,g=this.commonProps,d=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,f=p.loadingMessage,k=p.minMenuHeight,v=p.maxMenuHeight,y=p.menuIsOpen,w=p.menuPlacement,C=p.menuPosition,_=p.menuPortalTarget,E=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,S=p.noOptionsMessage,T=p.onMenuScrollToTop,L=p.onMenuScrollToBottom;if(!y)return null;var M,B=function(a,l){var n=a.type,r=a.data,i=a.isDisabled,o=a.isSelected,s=a.label,c=a.value,p=d===r,b=i?void 0:function(){return t.onOptionHover(r)},h=i?void 0:function(){return t.selectOption(r)},m="".concat(t.getElementId("option"),"-").concat(l),f={id:m,onClick:h,onMouseMove:b,onMouseOver:b,tabIndex:-1};return e.createElement(u,ha({},g,{innerProps:f,data:r,isDisabled:i,isSelected:o,key:m,label:s,type:n,value:c,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(a.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map((function(a){if("group"===a.type){var r=a.data,i=a.options,o=a.index,s="".concat(t.getElementId("group"),"-").concat(o),c="".concat(s,"-heading");return e.createElement(l,ha({},g,{key:s,data:r,options:i,Heading:n,headingProps:{id:c,data:a.data},label:t.formatGroupLabel(a.data)}),a.options.map((function(e){return B(e,"".concat(o,"-").concat(e.index))})))}if("option"===a.type)return B(a,"".concat(a.index))}));else if(m){var I=f({inputValue:h});if(null===I)return null;M=e.createElement(s,g,I)}else{var O=S({inputValue:h});if(null===O)return null;M=e.createElement(c,g,O)}var A={minMenuHeight:k,maxMenuHeight:v,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:x},R=e.createElement(Gn,ha({},g,A),(function(a){var l=a.ref,n=a.placerProps,o=n.placement,s=n.maxHeight;return e.createElement(r,ha({},g,A,{innerRef:l,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:m,placement:o}),e.createElement(Pr,{captureEnabled:b,onTopArrive:T,onBottomArrive:L,lockEnabled:E},(function(a){return e.createElement(i,ha({},g,{innerRef:function(e){t.getMenuListRef(e),a(e)},isLoading:m,maxHeight:s,focusedOption:d}),M)})))}));return _||"fixed"===C?e.createElement(o,ha({},g,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),R):R}},{key:"renderFormField",value:function(){var t=this,a=this.props,l=a.delimiter,n=a.isDisabled,r=a.isMulti,i=a.name,o=a.required,s=this.state.selectValue;if(o&&!this.hasValue()&&!n)return e.createElement(jr,{name:i,onFocus:this.onValueInputFocus});if(i&&!n){if(r){if(l){var c=s.map((function(e){return t.getOptionValue(e)})).join(l);return e.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(a,l){return e.createElement("input",{key:"i-".concat(l),name:i,type:"hidden",value:t.getOptionValue(a)})})):e.createElement("input",{name:i,type:"hidden",value:""});return e.createElement("div",null,u)}var g=s[0]?this.getOptionValue(s[0]):"";return e.createElement("input",{name:i,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,a=this.state,l=a.ariaSelection,n=a.focusedOption,r=a.focusedValue,i=a.isFocused,o=a.selectValue,s=this.getFocusableOptions();return e.createElement(mr,ha({},t,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:n,focusedValue:r,isFocused:i,selectValue:o,focusableOptions:s}))}},{key:"render",value:function(){var t=this.getComponents(),a=t.Control,l=t.IndicatorsContainer,n=t.SelectContainer,r=t.ValueContainer,i=this.props,o=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,g=this.state.isFocused,d=this.commonProps=this.getCommonProps();return e.createElement(n,ha({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:g}),this.renderLiveRegion(),e.createElement(a,ha({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:g,menuIsOpen:u}),e.createElement(r,ha({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(l,ha({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,l=t.clearFocusValueOnUpdate,n=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,i=t.isFocused,o=t.prevWasFocused,s=e.options,c=e.value,u=e.menuIsOpen,g=e.inputValue,d=e.isMulti,p=yn(c),b={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||g!==a.inputValue)){var h=u?function(e,t){return Jr(Kr(e,t))}(e,p):[],m=l?function(e,t){var a=e.focusedValue,l=e.selectValue.indexOf(a);if(l>-1){if(t.indexOf(a)>-1)return a;if(l<t.length)return t[l]}return null}(t,p):null,f=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,h);b={selectValue:p,focusedOption:f,focusedValue:m,clearFocusValueOnUpdate:!1}}var k=null!=n&&e!==a?{inputIsHidden:n,inputIsHiddenAfterUpdate:void 0}:{},v=r,y=i&&o;return i&&!y&&(v={value:zn(d,p,p[0]||null),options:p,action:"initial-input-focus"},y=!o),"initial-input-focus"===(null==r?void 0:r.action)&&(v=null),sa(sa(sa({},b),k),{},{prevProps:e,ariaSelection:v,prevWasFocused:y})}}],l&&ma(a.prototype,l),n&&ma(a,n),Object.defineProperty(a,"prototype",{writable:!1}),i}(e.Component);ri.defaultProps=qr;var ii=(0,e.forwardRef)((function(t,a){var l=ba(t);return e.createElement(ri,ha({ref:a},l))})),oi=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],si=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,a=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),l=String(t.getOptionValue(e)).toLowerCase(),n=String(t.getOptionLabel(e)).toLowerCase();return l===a||n===a},ci={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,a,l){return!(!e||t.some((function(t){return si(e,t,l)}))||a.some((function(t){return si(e,t,l)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},ui=(0,e.forwardRef)((function(t,a){var l=function(t){var a=t.allowCreateWhileLoading,l=void 0!==a&&a,n=t.createOptionPosition,r=void 0===n?"last":n,i=t.formatCreateLabel,o=void 0===i?ci.formatCreateLabel:i,s=t.isValidNewOption,c=void 0===s?ci.isValidNewOption:s,u=t.getNewOptionData,g=void 0===u?ci.getNewOptionData:u,d=t.onCreateOption,p=t.options,b=void 0===p?[]:p,h=t.onChange,m=da(t,oi),f=m.getOptionValue,k=void 0===f?Wr:f,v=m.getOptionLabel,y=void 0===v?Gr:v,w=m.inputValue,C=m.isLoading,_=m.isMulti,E=m.value,x=m.name,S=(0,e.useMemo)((function(){return c(w,yn(E),b,{getOptionValue:k,getOptionLabel:y})?g(w,o(w)):void 0}),[o,g,y,k,w,c,b,E]),T=(0,e.useMemo)((function(){return!l&&C||!S?b:"first"===r?[S].concat(ya(b)):[].concat(ya(b),[S])}),[l,r,C,S,b]),L=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return h(e,t);var a=Array.isArray(e)?e:[e];if(a[a.length-1]!==S)h(e,t);else if(d)d(w);else{var l=g(w,w),n={action:"create-option",name:x,option:l};h(zn(_,[].concat(ya(yn(E)),[l]),l),n)}}),[g,w,_,x,S,d,h,E]);return sa(sa({},m),{},{options:T,onChange:L})}(ba(t));return e.createElement(ri,ha({ref:a},l))})),gi=ui,di=t=>{const a={className:"generate-advanced-select",classNamePrefix:"generate-advanced-select",isSearchable:!1,styles:{indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,maxHeight:"30px"}),menuPortal:e=>({...e,zIndex:999999}),control:e=>({...e,marginBottom:"8px"}),valueContainer:e=>({...e,padding:"0 6px"}),input:e=>({...e,margin:0,padding:0})},instanceId:"input-field",maxMenuHeight:250,theme:e=>({borderRadius:2,colors:{...e.colors,primary:"var(--wp-admin-theme-color)",neutral20:"#757575",neutral30:"#757575"},spacing:{controlHeight:30,baseUnit:3,menuGutter:3}}),menuPortalTarget:document.querySelector("body"),menuPlacement:"auto"},l=Object.assign({},{marginBottom:"24px"},t?.wrapperStyles),n=t?.isCreatable?gi:ii,i=Object.assign({},a,t);return(0,e.createElement)("div",{className:"gblocks-advanced-select",style:l},(0,e.createElement)(r.BaseControl,{id:i.id,label:i.label,help:i.help},(0,e.createElement)(n,{...i})))};function pi({attributes:t,setAttributes:a,label:n}){const{typography:o,fontFamilyFallback:s,googleFont:c,googleFontVariants:u}=t,g=(0,l.useMemo)((()=>{const e=Qt.fontFamily,t={label:(0,i.__)("Google Fonts","generateblocks"),options:[]};return generateBlocksInfo.disableGoogleFonts||Object.keys(la).forEach((e=>{Object.keys(t.options).some((a=>t.options[a]?.value===e))||t.options.push({value:e,label:e})})),t.options.length&&e.push(t),e}),[]),d=o.fontFamily?{value:o.fontFamily,label:o.fontFamily}:"";return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.BaseControl,{label:n,id:"gblocks-font-family",className:"gblocks-font-family"},(0,e.createElement)(di,{placeholder:(0,i.__)("Choose or add font name","generateblocks"),options:g,value:d,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,onChange:e=>function(e){a({typography:{fontFamily:e}}),generateBlocksInfo.disableGoogleFonts||void 0===la[e]?a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""}):a({googleFont:!0,fontFamilyFallback:la[e].fallback,googleFontVariants:la[e].weight.join(", ")})}(e?.value||"")})),!!o.fontFamily&&!generateBlocksInfo.disableGoogleFonts&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Google Fonts API","generateblocks"),checked:!!c,onChange:e=>{a({googleFont:e}),e&&void 0!==la[o.fontFamily]&&a({fontFamilyFallback:la[o.fontFamily].fallback,googleFontVariants:la[o.fontFamily].weight.join(", ")})}}),!!c&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.TextControl,{label:(0,i.__)("Font fallback","generateblocks"),value:s,placeholder:(0,i.__)("sans-serif","generateblocks"),onChange:e=>{a({fontFamilyFallback:e})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Variants","generateblocks"),value:u,placeholder:(0,i.__)("300, 400, 400i","generateblocks"),onChange:e=>{a({googleFontVariants:e})}}))))}function bi({value:t,onChange:a,label:l}){const n=Qt.alignments;return(0,e.createElement)(r.BaseControl,{label:l,id:"gblocks-alignment-button-group"},(0,e.createElement)("div",null,(0,e.createElement)(r.ButtonGroup,{className:"gblocks-alignment-button-group",id:"gblocks-alignment-button-group"},Object.values(n).map((l=>(0,e.createElement)(r.Tooltip,{key:l.align,text:l.title},(0,e.createElement)(r.Button,{isPrimary:l.align===t,onClick:()=>a(l.align!==t?l.align:""),icon:l.icon})))))))}function hi(e,t,a=!1){const{attributes:l,deviceType:n}=t,r=e+("Desktop"===n?"":n);return a?r:l[r]}function mi({children:t}){return(0,e.createElement)("div",{className:"gblocks-flex-control"},t)}var fi=()=>{const{deviceType:e}=(0,l.useContext)(yt);return e};function ki(e,t){let a="";return"generateblocks/button"===t&&(a=e.text),"generateblocks/headline"===t&&(a=e.content),a}function vi({attributes:t,setAttributes:a,computedStyles:n}){const r=fi(),{id:o,blockName:s,supports:{typography:c}}=(0,l.useContext)(yt),u=(0,l.useRef)(null),g=ki(t,s),[d]=ne(t,a),{typography:b}=t,m="Desktop"===r,{dispatchControlGlobalStyle:f,styleSources:k,hasGlobalStyle:v,contentWasUpdated:y}=X(n,{fontFamily:!1,fontSize:!1,fontWeight:!1,letterSpacing:!1,lineHeight:!1,textAlign:!1,textTransform:!1},g,d),{fontFamily:w="",fontSize:C="",fontWeight:_="",letterSpacing:x="",lineHeight:S="",textAlign:T="",textTransform:L=""}=d.typography;function M(e,t){return(0,h.applyFilters)("generateblocks.editor.control.label",e,t,k,f,y)}const B={fontFamily:M((0,i.__)("Font Family","generateblocks"),{fontFamily:w}),fontSize:M((0,i.__)("Font Size","generateblocks"),{fontSize:C}),fontWeight:M((0,i.__)("Font Weight","generateblocks"),{fontWeight:_}),letterSpacing:M((0,i.__)("Letter Spacing","generateblocks"),{letterSpacing:x}),lineHeight:M((0,i.__)("Line Height","generateblocks"),{lineHeight:S}),textAlign:M((0,i.__)("Text Alignment","generateblocks"),{textAlign:T}),textTransform:M((0,i.__)("Transform","generateblocks"),{textTransform:L})};return(0,e.createElement)(Ct,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:p("typography"),className:"gblocks-panel-label",ref:u,hasGlobalStyle:v,id:`${o}Typography`},c.alignment&&(0,e.createElement)(bi,{label:B.textAlign,value:hi("textAlign",{attributes:b,deviceType:r}),onChange:e=>{a({typography:{[hi("textAlign",{attributes:b,deviceType:r},!0)]:e}})}}),!!m&&(c.fontWeight||c.textTransform)&&(0,e.createElement)(mi,null,(0,e.createElement)(Xt,{label:B.fontWeight,value:b?.fontWeight,onChange:e=>{a({typography:{[hi("fontWeight",{attributes:b,deviceType:r},!0)]:e}})}}),(0,e.createElement)(ea,{label:B.textTransform,value:b?.textTransform,onChange:e=>{a({typography:{[hi("textTransform",{attributes:b,deviceType:r},!0)]:e}})}})),c.fontSize&&(0,e.createElement)(qt,{label:B.fontSize,value:hi("fontSize",{attributes:b,deviceType:r}),placeholder:E("fontSize",b,r,parseInt(n.fontSize)||""),onChange:e=>{a({typography:{[hi("fontSize",{attributes:b,deviceType:r},!0)]:e}})}}),c.lineHeight&&(0,e.createElement)(aa,{label:B.lineHeight,defaultUnit:"em",value:hi("lineHeight",{attributes:b,deviceType:r}),placeholder:E("lineHeight",b,r,n.lineHeight),onChange:e=>{a({typography:{[hi("lineHeight",{attributes:b,deviceType:r},!0)]:e}})}}),c.letterSpacing&&(0,e.createElement)(ta,{label:B.letterSpacing,defaultUnit:"em",value:hi("letterSpacing",{attributes:b,deviceType:r}),placeholder:E("letterSpacing",b,r,n.letterSpacing),onChange:e=>{a({typography:{[hi("letterSpacing",{attributes:b,deviceType:r},!0)]:e}})}}),c.fontFamily&&m&&(0,e.createElement)(pi,{label:B.fontFamily,attributes:t,setAttributes:a}))}function yi({checked:t,onChange:a}){return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:t,onChange:a})}function wi({checked:t,onChange:a}){return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:t,onChange:a})}function Ci({checked:t,onChange:a}){return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:t,onChange:a})}function _i(t){const{supports:{spacing:a}}=(0,l.useContext)(yt),{inlineWidth:n,onChangeInlineWidth:r,stack:i,onChangeStack:o,fill:s,onFillChange:c}=t;return(0,e.createElement)(e.Fragment,null,a.inlineWidth&&(0,e.createElement)(yi,{checked:n,onChange:r}),a.stackVertically&&(0,e.createElement)(wi,{checked:i,onChange:o}),a.fillHorizontalSpace&&(0,e.createElement)(Ci,{checked:s,onChange:c}))}var Ei=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),xi=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Si={default:[(0,i.__)("Top","generateblocks"),(0,i.__)("Left","generateblocks"),(0,i.__)("Right","generateblocks"),(0,i.__)("Bottom","generateblocks")],borderRadius:[(0,i.__)("Top Left","generateblocks"),(0,i.__)("Top Right","generateblocks"),(0,i.__)("Bottom Left","generateblocks"),(0,i.__)("Bottom Right ","generateblocks")]};function Ti(t){const{label:a=(0,i.__)("Padding","generateblocks"),units:n=[],attributeNames:o=[],values:s,placeholders:c,onChange:u}=t,g=o.reduce(((e,t)=>(e[t]=s[t],e)),{}),[d,p]=(0,l.useState)(!1),[b,h]=(0,l.useState)("");(0,l.useEffect)((()=>{const e=Object.values(g).filter((e=>e));var t;p((t=e).length===o.length&&t.every((e=>e===t[0])))}),[JSON.stringify(g)]);const m=o.find((e=>e.includes("Radius")))?"corners":"circle";return(0,e.createElement)(r.BaseControl,{className:"components-gblocks-dimensions-control",label:a,id:o[0]},(0,e.createElement)(r.Tooltip,{text:d?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks")},(0,e.createElement)(r.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":d?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks"),variant:d?"primary":"","aria-pressed":!!d,onClick:()=>(()=>{const e=[...o].reverse().reduce(((e,t)=>g[t]||O(g[t])?g[t]:e),"");if(!e)return void p(!d);const t=b?g[b]:e,a=o.reduce(((e,a)=>({...e,[a]:t})),{});u(a),p(!d)})()},d?Ei:xi)),(0,e.createElement)("div",{className:"components-gblocks-dimensions-control__inputs style-"+m,style:{display:d?"block":""}},o.map(((t,a)=>d&&a>0?null:(0,e.createElement)("div",{key:t},(0,e.createElement)(Zt,{id:t,value:g[t]||"",placeholder:c[t]||"",units:n,onChange:e=>{let a={};d?a=o.reduce(((t,a)=>({...t,[a]:e})),{}):a[t]=e,u(a)},onFocus:()=>h(t)}),!d&&(0,e.createElement)("label",{htmlFor:t,className:"gblocks-dimensions-control__label"},t.includes("Radius")?Si.borderRadius[a]:Si.default[a]))))))}function Li({attributes:t,setAttributes:a,computedStyles:n}){const r=fi(),{id:o,blockName:s,supports:{spacing:c}}=(0,l.useContext)(yt),u=ki(t,s),[g,d]=ne(t,a),b=(0,l.useRef)(null),{dispatchControlGlobalStyle:m,styleSources:f,hasGlobalStyle:k,contentWasUpdated:v}=X(n,{marginTop:!1,marginBottom:!1,marginRight:!1,marginLeft:!1,paddingTop:!1,paddingBottom:!1,paddingRight:!1,paddingLeft:!1},u,g),{inlineWidth:y,inlineWidthTablet:w,inlineWidthMobile:C,stack:_,stackTablet:x,stackMobile:S,fillHorizontalSpace:T,fillHorizontalSpaceTablet:L,fillHorizontalSpaceMobile:M}=t,B=["paddingTop","paddingLeft","paddingRight","paddingBottom"],I=["marginTop","marginLeft","marginRight","marginBottom"];function O(e,t){return(0,h.applyFilters)("generateblocks.editor.control.label",e,t,f,m,v)}const{marginTop:A,marginBottom:R,marginLeft:z,marginRight:D,paddingTop:N,paddingBottom:F,paddingLeft:H,paddingRight:P}=g.spacing,V=(0,l.useMemo)((()=>{const e={paddingTop:N,paddingRight:P,paddingBottom:F,paddingLeft:H},t=Object.values(e).every((e=>""!==e&&void 0!==e));return t?{padding:Object.values(e).join(" ")}:e}),[g.spacing]),j=(0,l.useMemo)((()=>{const e={marginTop:A,marginRight:D,marginBottom:R,marginLeft:z},t=Object.values(e).every((e=>""!==e&&void 0!==e));return t?{margin:Object.values(e).join(" ")}:e}),[g.spacing]),G={padding:O((0,i.__)("Padding","generateblocks"),V),margin:O((0,i.__)("Margin","generateblocks"),j)};return(0,e.createElement)(Ct,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:p("spacing"),className:"gblocks-panel-label",id:`${o}Spacing`,ref:b,hasGlobalStyle:k},c.padding&&(0,e.createElement)(Ti,{label:G.padding,attributeNames:B,values:g.spacing,placeholders:B.reduce(((e,a)=>({...e,[a]:E(a,t.spacing,r,"")})),{}),onChange:e=>d(e,"spacing")}),c.margin&&(0,e.createElement)(Ti,{label:(0,i.__)("Margin","generateblocks"),attributeNames:I,values:g.spacing,placeholders:I.reduce(((e,a)=>({...e,[a]:E(a,t.spacing,r,parseInt(n[a])||"")})),{}),onChange:e=>d(e,"spacing")}),"Desktop"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_i,{inlineWidth:!!y,onChangeInlineWidth:e=>a({inlineWidth:e}),stack:!!_,onChangeStack:e=>{a({stack:e,stackTablet:e&&!x?e:x,stackMobile:e&&!S?e:S})},fill:!!T,onFillChange:e=>{a({fillHorizontalSpace:e,fillHorizontalSpaceTablet:e&&!L?e:L,fillHorizontalSpaceMobile:e&&!M?e:M})}})),"Tablet"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_i,{inlineWidth:!!w,onChangeInlineWidth:e=>a({inlineWidthTablet:e}),stack:!!x,onChangeStack:e=>{a({stackTablet:e,stackMobile:e&&!S?e:S})},fill:!!L,onFillChange:e=>{a({fillHorizontalSpaceTablet:e,fillHorizontalSpaceMobile:e&&!M?e:M})}})),"Mobile"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_i,{inlineWidth:!!C,onChangeInlineWidth:e=>a({inlineWidthMobile:e}),stack:!!S,onChangeStack:e=>a({stackMobile:e}),fill:!!M,onFillChange:e=>a({fillHorizontalSpaceMobile:e})})))}function Mi(){return(Mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function Bi(e,t){if(null==e)return{};var a,l,n={},r=Object.keys(e);for(l=0;l<r.length;l++)t.indexOf(a=r[l])>=0||(n[a]=e[a]);return n}function Ii(t){var a=(0,e.useRef)(t),l=(0,e.useRef)((function(e){a.current&&a.current(e)}));return a.current=t,l.current}var Oi=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},Ai=function(e){return"touches"in e},Ri=function(e){return e&&e.ownerDocument.defaultView||self},zi=function(e,t,a){var l=e.getBoundingClientRect(),n=Ai(t)?function(e,t){for(var a=0;a<e.length;a++)if(e[a].identifier===t)return e[a];return e[0]}(t.touches,a):t;return{left:Oi((n.pageX-(l.left+Ri(e).pageXOffset))/l.width),top:Oi((n.pageY-(l.top+Ri(e).pageYOffset))/l.height)}},Di=function(e){!Ai(e)&&e.preventDefault()},Ni=e.memo((function(t){var a=t.onMove,l=t.onKey,n=Bi(t,["onMove","onKey"]),r=(0,e.useRef)(null),i=Ii(a),o=Ii(l),s=(0,e.useRef)(null),c=(0,e.useRef)(!1),u=(0,e.useMemo)((function(){var e=function(e){Di(e),(Ai(e)?e.touches.length>0:e.buttons>0)&&r.current?i(zi(r.current,e,s.current)):a(!1)},t=function(){return a(!1)};function a(a){var l=c.current,n=Ri(r.current),i=a?n.addEventListener:n.removeEventListener;i(l?"touchmove":"mousemove",e),i(l?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,l=r.current;if(l&&(Di(t),!function(e,t){return t&&!Ai(e)}(t,c.current)&&l)){if(Ai(t)){c.current=!0;var n=t.changedTouches||[];n.length&&(s.current=n[0].identifier)}l.focus(),i(zi(l,t,s.current)),a(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),o({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]}),[o,i]),g=u[0],d=u[1],p=u[2];return(0,e.useEffect)((function(){return p}),[p]),e.createElement("div",Mi({},n,{onTouchStart:g,onMouseDown:g,className:"react-colorful__interactive",ref:r,onKeyDown:d,tabIndex:0,role:"slider"}))})),Fi=function(e){return e.filter(Boolean).join(" ")},Hi=function(t){var a=t.color,l=t.left,n=t.top,r=void 0===n?.5:n,i=Fi(["react-colorful__pointer",t.className]);return e.createElement("div",{className:i,style:{top:100*r+"%",left:100*l+"%"}},e.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:a}}))},Pi=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a},Vi=(Math.PI,function(e){var t=e.s,a=e.v,l=e.a,n=(200-t)*a/100;return{h:Pi(e.h),s:Pi(n>0&&n<200?t*a/100/(n<=100?n:200-n)*100:0),l:Pi(n/2),a:Pi(l,2)}}),ji=function(e){var t=Vi(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Gi=function(e){var t=Vi(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Wi=function(e){var t=e.h,a=e.s,l=e.v,n=e.a;t=t/360*6,a/=100,l/=100;var r=Math.floor(t),i=l*(1-a),o=l*(1-(t-r)*a),s=l*(1-(1-t+r)*a),c=r%6;return{r:Pi(255*[l,o,i,i,s,l][c]),g:Pi(255*[s,l,l,o,i,i][c]),b:Pi(255*[i,i,s,l,l,o][c]),a:Pi(n,2)}},Ui=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?qi({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},Zi=Ui,qi=function(e){var t=e.r,a=e.g,l=e.b,n=e.a,r=Math.max(t,a,l),i=r-Math.min(t,a,l),o=i?r===t?(a-l)/i:r===a?2+(l-t)/i:4+(t-a)/i:0;return{h:Pi(60*(o<0?o+6:o)),s:Pi(r?i/r*100:0),v:Pi(r/255*100),a:n}},$i=e.memo((function(t){var a=t.hue,l=t.onChange,n=Fi(["react-colorful__hue",t.className]);return e.createElement("div",{className:n},e.createElement(Ni,{onMove:function(e){l({h:360*e.left})},onKey:function(e){l({h:Oi(a+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Pi(a),"aria-valuemax":"360","aria-valuemin":"0"},e.createElement(Hi,{className:"react-colorful__hue-pointer",left:a/360,color:ji({h:a,s:100,v:100,a:1})})))})),Ki=e.memo((function(t){var a=t.hsva,l=t.onChange,n={backgroundColor:ji({h:a.h,s:100,v:100,a:1})};return e.createElement("div",{className:"react-colorful__saturation",style:n},e.createElement(Ni,{onMove:function(e){l({s:100*e.left,v:100-100*e.top})},onKey:function(e){l({s:Oi(a.s+100*e.left,0,100),v:Oi(a.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Pi(a.s)+"%, Brightness "+Pi(a.v)+"%"},e.createElement(Hi,{className:"react-colorful__saturation-pointer",top:1-a.v/100,left:a.s/100,color:ji(a)})))})),Ji=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Yi(t,a,l){var n=Ii(l),r=(0,e.useState)((function(){return t.toHsva(a)})),i=r[0],o=r[1],s=(0,e.useRef)({color:a,hsva:i});(0,e.useEffect)((function(){if(!t.equal(a,s.current.color)){var e=t.toHsva(a);s.current={hsva:e,color:a},o(e)}}),[a,t]),(0,e.useEffect)((function(){var e;(function(e,t){if(e===t)return!0;for(var a in e)if(e[a]!==t[a])return!1;return!0})(i,s.current.hsva)||t.equal(e=t.fromHsva(i),s.current.color)||(s.current={hsva:i,color:e},n(e))}),[i,t,n]);var c=(0,e.useCallback)((function(e){o((function(t){return Object.assign({},t,e)}))}),[]);return[i,c]}var Qi="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Xi=new Map,eo=function(e){Qi((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Xi.has(t)){var l=t.createElement("style");l.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Xi.set(t,l);var n=a.nc;n&&l.setAttribute("nonce",n),t.head.appendChild(l)}}),[])},to=function(t){var a=t.className,l=t.colorModel,n=t.color,r=void 0===n?l.defaultColor:n,i=t.onChange,o=Bi(t,["className","colorModel","color","onChange"]),s=(0,e.useRef)(null);eo(s);var c=Yi(l,r,i),u=c[0],g=c[1],d=Fi(["react-colorful",a]);return e.createElement("div",Mi({},o,{ref:s,className:d}),e.createElement(Ki,{hsva:u,onChange:g}),e.createElement($i,{hue:u.h,onChange:g,className:"react-colorful__last-control"}))},ao=function(t){var a=t.className,l=t.hsva,n=t.onChange,r={backgroundImage:"linear-gradient(90deg, "+Gi(Object.assign({},l,{a:0}))+", "+Gi(Object.assign({},l,{a:1}))+")"},i=Fi(["react-colorful__alpha",a]),o=Pi(100*l.a);return e.createElement("div",{className:i},e.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),e.createElement(Ni,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:Oi(l.a+e.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},e.createElement(Hi,{className:"react-colorful__alpha-pointer",left:l.a,color:Gi(l)})))},lo=function(t){var a=t.className,l=t.colorModel,n=t.color,r=void 0===n?l.defaultColor:n,i=t.onChange,o=Bi(t,["className","colorModel","color","onChange"]),s=(0,e.useRef)(null);eo(s);var c=Yi(l,r,i),u=c[0],g=c[1],d=Fi(["react-colorful",a]);return e.createElement("div",Mi({},o,{ref:s,className:d}),e.createElement(Ki,{hsva:u,onChange:g}),e.createElement($i,{hue:u.h,onChange:g}),e.createElement(ao,{hsva:u,onChange:g,className:"react-colorful__last-control"}))},no={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ui,fromHsva:function(e){var t=Wi(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Ji},ro=function(t){return e.createElement(lo,Mi({},t,{colorModel:no}))},io={defaultColor:"rgb(0, 0, 0)",toHsva:Zi,fromHsva:function(e){var t=Wi(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Ji},oo=function(t){return e.createElement(to,Mi({},t,{colorModel:io}))};function so(t){const{value:a,onChange:o,onOpacityChange:s,label:c,alpha:u=!1,valueOpacity:g=1,tooltip:d}=t,[b,h]=(0,l.useState)(a||""),m=(0,l.useRef)(null),f=u&&1===g?ro:oo,k=(0,l.useMemo)((()=>(e=>{if(String(e).startsWith("var(")){const t=e.match(/\(([^)]+)\)/);if(t){const a=getComputedStyle(document.documentElement).getPropertyValue(t[1]);a&&(e=a)}}return Ue(e).toRgbString()})(a)),[a]),v=(0,G.useDebounce)(o);return(0,l.useEffect)((()=>{a!==b&&h(a)}),[a]),(0,l.useEffect)((()=>{a!==b&&v(b),setTimeout((()=>{m.current&&m.current.focus()}),10)}),[b]),(0,e.createElement)("div",{className:"gblocks-color-component"},!!c&&(0,e.createElement)("span",{className:"gblocks-color-component__label"},c),(0,e.createElement)(r.Dropdown,{className:"gblocks-color-component__toggle",contentClassName:"gblocks-color-component-content",popoverProps:{position:"top left"},renderToggle:({isOpen:t,onToggle:l})=>{const n=(0,e.createElement)(r.Button,{className:"gblocks-color-component__toggle-button",onClick:l,"aria-expanded":t},(0,e.createElement)("span",{className:"gblocks-color-component__toggle-indicator",style:{background:a?Ze(a,g):null}}));return(0,e.createElement)(e.Fragment,null,d?(0,e.createElement)(r.Tooltip,{text:d},n):n)},renderContent:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(f,{color:k,onChange:e=>{Ue(e).isValid()&&(e=1===Ue(e).alpha()?Ue(e).toHex():e),h(e)}}),(0,e.createElement)("div",{className:"gblocks-color-component-content__input-wrapper"},(0,e.createElement)(r.TextControl,{ref:m,className:"gblocks-color-input",type:"text",value:b,onChange:e=>{!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),h(e)},onBlur:()=>{Ue(a).isValid()&&1===Ue(a).alpha()&&h(Ue(a).toHex())}}),(0,e.createElement)(r.Button,{size:"small",isSecondary:!0,className:"gblocks-color-input-clear",onClick:()=>{h(""),u&&1!==g&&s(1)}},(0,i.__)("Clear","generateblocks"))),u&&1!==g&&(0,e.createElement)("div",{className:"gblocks-color-component-content__opacity"},(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Opacity","generateblocks")},p("gradient")),(0,e.createElement)(r.RangeControl,{value:g||0,onChange:e=>s(e),min:0,max:1,step:.01,initialPosition:1})),(0,e.createElement)(r.BaseControl,{className:"gblocks-color-component-content__palette"},(0,e.createElement)(n.ColorPalette,{value:a||"",onChange:e=>{h(e)},disableCustomColors:!0,clearable:!1})))}))}function co({value:t,onChange:a}){const l={none:p("border-none"),solid:p("border-solid"),dashed:p("border-dashed"),dotted:p("border-dotted")};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.DropdownMenu,{className:"gblocks-border-style",icon:l[t]||p("border-default"),label:(0,i.__)("Select a style","generateblocks")},(({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.MenuGroup,null,(0,e.createElement)(r.MenuItem,{icon:p("border-default"),onClick:()=>{a(""),t()}},(0,i.__)("Default","generateblocks")),(0,e.createElement)(r.MenuItem,{icon:p("border-none"),onClick:()=>{a("none"),t()}},(0,i.__)("None","generateblocks")),(0,e.createElement)(r.MenuItem,{icon:p("border-solid"),onClick:()=>{a("solid"),t()}},(0,i.__)("Solid","generateblocks")),(0,e.createElement)(r.MenuItem,{icon:p("border-dashed"),onClick:()=>{a("dashed"),t()}},(0,i.__)("Dashed","generateblocks")),(0,e.createElement)(r.MenuItem,{icon:p("border-dotted"),onClick:()=>{a("dotted"),t()}},(0,i.__)("Dotted","generateblocks")))))))}function uo({attributes:t,setAttributes:a,computedStyles:n}){const o=fi(),{id:s,blockName:c,supports:{borders:u}}=(0,l.useContext)(yt),[g,d]=ne(t,a),b=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],m=["borderTop","borderRight","borderBottom","borderLeft"],f={borderTop:(0,i.__)("Top","generateblocks"),borderRight:(0,i.__)("Right","generateblocks"),borderBottom:(0,i.__)("Bottom","generateblocks"),borderLeft:(0,i.__)("Left","generateblocks")},[k,v]=(0,l.useState)(!1),y=ki(t,c),{dispatchControlGlobalStyle:w,styleSources:C,hasGlobalStyle:_,contentWasUpdated:x}=X(n,{borderTopColor:!1,borderTopStyle:!1,borderTopWidth:!1,borderRightColor:!1,borderRightStyle:!1,borderRightWidth:!1,borderBottomColor:!1,borderBottomStyle:!1,borderBottomWidth:!1,borderLeftColor:!1,borderLeftStyle:!1,borderLeftWidth:!1,borderTopLeftRadius:!1,borderTopRightRadius:!1,borderBottomRightRadius:!1,borderBottomLeftRadius:!1},y,g),S=(0,l.useRef)(null);function T(e,t){return(0,h.applyFilters)("generateblocks.editor.control.label",e,t,C,w,x)}const{borderTopColor:L="",borderTopStyle:M="",borderTopWidth:B="",borderRightColor:I="",borderRightStyle:A="",borderRightWidth:R="",borderBottomColor:z="",borderBottomStyle:D="",borderBottomWidth:N="",borderLeftColor:F="",borderLeftStyle:P="",borderLeftWidth:V="",borderTopLeftRadius:j="",borderTopRightRadius:G="",borderBottomRightRadius:W="",borderBottomLeftRadius:U=""}=g.borders,Z={borders:T((0,i.__)("Border","generateblocks"),{borderTopColor:L,borderTopStyle:M,borderTopWidth:B,borderRightColor:I,borderRightStyle:A,borderRightWidth:R,borderBottomColor:z,borderBottomStyle:D,borderBottomWidth:N,borderLeftColor:F,borderLeftStyle:P,borderLeftWidth:V}),borderRadius:T((0,i.__)("Border Radius","generateblocks"),{borderTopLeftRadius:j,borderTopRightRadius:G,borderBottomRightRadius:W,borderBottomLeftRadius:U})};return(0,l.useEffect)((()=>{const e=m.map((e=>Object.entries(g.borders).reduce(((t,[a,l])=>{if(a.startsWith(e)&&l){const n=a.replace(e,"");t={...t,[n]:l}}return t}),{})));4===e.length&&e.every((t=>!(0,H.isEmpty)(t)&&(0,H.isEqual)(t,e[0])))&&v(!0)}),[]),(0,e.createElement)(Ct,{title:(0,i.__)("Borders","generateblocks"),initialOpen:!1,icon:p("borders"),className:"gblocks-panel-label",ref:S,hasGlobalStyle:_,id:`${s}Borders`},(u.borderTop||u.borderRight||u.borderBottom||u.borderLeft)&&(0,e.createElement)(r.BaseControl,{label:Z.borders,id:"gblocks-borderTop-width",className:"gblocks-border-row"},(0,e.createElement)(r.Tooltip,{text:k?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks")},(0,e.createElement)(r.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":k?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks"),variant:k?"primary":"","aria-pressed":!!k,onClick:()=>{v(!k),k||function(){const e=m.filter((e=>g.borders[e+"Width"]||O(g.borders[e+"Width"])));if(!e.length)return;const t=e[0],a=Object.entries(g.borders).reduce(((e,[a,l])=>(a.startsWith(t)&&(e[a.replace(t,"")]=l),e)),{}),l=Object.entries(a).reduce(((e,[t,a])=>(m.forEach((l=>{e[l+t]=a})),e)),{});d(l,"borders")}()}},k?Ei:xi)),m.map(((l,n)=>{if(!u[l])return null;if(k&&n>0)return null;const s=k?"borderAll":l;return(0,e.createElement)(mi,{key:l},(0,e.createElement)(r.Tooltip,{text:k?(0,i.__)("All sides","generateblocks"):f[l]},(0,e.createElement)("div",{className:"gblocks-border-icon "+s,style:{borderStyle:t.borders[l+"Style"]}})),(0,e.createElement)(Zt,{id:"gblocks-"+l+"-width",value:g.borders[l+"Width"]||"",placeholder:E(l+"Width",t.borders,o),onChange:e=>{const a={[l+"Width"]:e};k&&(a.borderRightWidth=e,a.borderBottomWidth=e,a.borderLeftWidth=e),e?t.borders[l+"Style"]||(a[l+"Style"]="solid",k&&(a.borderRightStyle="solid",a.borderBottomStyle="solid",a.borderLeftStyle="solid")):(a[l+"Style"]="",k&&(a.borderRightStyle="",a.borderBottomStyle="",a.borderLeftStyle="")),d(a,"borders")}}),(0,e.createElement)(co,{value:g.borders[l+"Style"]||E(l+"Style",t.borders,o),onChange:e=>{const t={[l+"Style"]:e};k&&(t.borderRightStyle=e,t.borderBottomStyle=e,t.borderLeftStyle=e),d(t,"borders")}}),!!u.borderColors.length&&"Desktop"===o&&(0,e.createElement)("div",{className:"gblocks-border-colors"},u.borderColors.map(((n,r)=>(0,e.createElement)(so,{key:"border"+r,tooltip:n?.tooltip,value:t.borders[l+"Color"+n.state]||"",alpha:n.alpha||!1,onChange:e=>{const t={[l+"Color"+n.state]:e};k&&(t["borderRightColor"+n.state]=e,t["borderBottomColor"+n.state]=e,t["borderLeftColor"+n.state]=e),a({borders:{...t}})}})))))}))),u.borderRadius&&(0,e.createElement)(Ti,{label:Z.borderRadius,attributeNames:b,values:g.borders,placeholders:b.reduce(((e,a)=>({...e,[a]:E(a,t.borders,o,"")})),{}),onChange:e=>d(e,"borders")}))}function go(t){const{setAttributes:a,attributes:l,colors:n}=t,r=(0,h.applyFilters)("generateblocks.editor.colorGroupItems",n,t);return(0,e.createElement)("div",{className:"gblocks-color-group"},r.map(((t,n)=>(0,e.createElement)("div",{key:n,className:"gblocks-color-group__row"},!!t.label&&(0,e.createElement)("span",{className:"gblocks-color-group__row-label"},t.label),t.items.map(((t,n)=>(0,e.createElement)(so,{key:n,label:t?.label,tooltip:t?.tooltip,value:l[t.attribute],alpha:t.alpha||!1,valueOpacity:l[t.attribute+"Opacity"],onChange:e=>a({[t.attribute]:e}),onOpacityChange:e=>a({[t.attribute+"Opacity"]:e})})))))))}function po({attributes:t,setAttributes:a}){const{id:n,blockName:r,supports:{colors:o}}=(0,l.useContext)(yt);return(0,e.createElement)(Ct,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:p("colors"),className:"gblocks-panel-label",id:`${n}Colors`},(0,e.createElement)(go,{attributes:t,setAttributes:a,colors:o.elements,name:r}))}var bo={facebook:{label:(0,i._x)("Facebook","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}))},facebookCircle:{label:(0,i._x)("Facebook - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}))},facebookSquare:{label:(0,i._x)("Facebook - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}))},x:{label:(0,i._x)("X","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"}))},instagram:{label:(0,i._x)("Instagram","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}))},linkedin:{label:(0,i._x)("LinkedIn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}))},linkedinSquare:{label:(0,i._x)("LinkedIn - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}))},pinterest:{label:(0,i._x)("Pinterest","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"}))},pinterestCircle:{label:(0,i._x)("Pinterest - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"}))},pinterestSquare:{label:(0,i._x)("Pinterest - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"}))},reddit:{label:(0,i._x)("Reddit","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"}))},redditCircle:{label:(0,i._x)("Reddit - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"}))},redditSquare:{label:(0,i._x)("Reddit - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"}))},snapchat:{label:(0,i._x)("Snapchat","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}))},soundcloud:{label:(0,i._x)("Soundcloud","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"}))},twitch:{label:(0,i._x)("Twitch","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"}))},vimeo:{label:(0,i._x)("Vimeo","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M447.8 153.6c-2 43.6-32.4 103.3-91.4 179.1-60.9 79.2-112.4 118.8-154.6 118.8-26.1 0-48.2-24.1-66.3-72.3C100.3 250 85.3 174.3 56.2 174.3c-3.4 0-15.1 7.1-35.2 21.1L0 168.2c51.6-45.3 100.9-95.7 131.8-98.5 34.9-3.4 56.3 20.5 64.4 71.5 28.7 181.5 41.4 208.9 93.6 126.7 18.7-29.6 28.8-52.1 30.2-67.6 4.8-45.9-35.8-42.8-63.3-31 22-72.1 64.1-107.1 126.2-105.1 45.8 1.2 67.5 31.1 64.9 89.4z"}))},vimeoSquare:{label:(0,i._x)("Vimeo - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"}))},whatsapp:{label:(0,i._x)("WhatsApp","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}))},whatsappSquare:{label:(0,i._x)("WhatsApp - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224 122.8c-72.7 0-131.8 59.1-131.9 131.8 0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7zm77.5 188.4c-3.3 9.3-19.1 17.7-26.7 18.8-12.6 1.9-22.4.9-47.5-9.9-39.7-17.2-65.7-57.2-67.7-59.8-2-2.6-16.2-21.5-16.2-41s10.2-29.1 13.9-33.1c3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6.1 2.4.1 5.7-.9 8.9 6.8 3.3 7.9 11.2 27.4 12.2 29.4s1.7 4.3.3 6.9c-7.6 15.2-15.7 14.6-11.6 21.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2 3.6 1.3 23.1 10.9 27.1 12.9s6.6 3 7.6 4.6c.9 1.9.9 9.9-2.4 19.1zM400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM223.9 413.2c-26.6 0-52.7-6.7-75.8-19.3L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5z"}))},youtube:{label:(0,i._x)("YouTube","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}))}},ho={clock:{label:(0,i._x)("Clock","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm92.49 313l-20 25a16 16 0 01-22.49 2.5l-67-49.72a40 40 0 01-15-31.23V112a16 16 0 0116-16h32a16 16 0 0116 16v144l58 42.5a16 16 0 012.49 22.5z"}))},clockAlt:{label:(0,i._x)("Clock Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"}))},asterisk:{label:(0,i._x)("Asterisk","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}))},at:{label:(0,i._x)("At","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"}))},award:{label:(0,i._x)("Award","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"}))},ban:{label:(0,i._x)("Ban","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))},bars:{label:(0,i._x)("Bars","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}))},beer:{label:(0,i._x)("Beer","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"}))},bolt:{label:(0,i._x)("Bolt","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}))},book:{label:(0,i._x)("Book","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}))},boxOpen:{label:(0,i._x)("Box - Open","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"}))},bullhorn:{label:(0,i._x)("Bullhorn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"}))},bullseye:{label:(0,i._x)("Bullseye","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"}))},burn:{label:(0,i._x)("Burn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"}))},calendarAlt:{label:(0,i._x)("Calender","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},check:{label:(0,i._x)("Check","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))},checkCircle:{label:(0,i._x)("Check - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}))},checkCircleOutline:{label:(0,i._x)("Check - Circle Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}))},checkSquare:{label:(0,i._x)("Check - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"}))},checkSquareOutline:{label:(0,i._x)("Check - Square Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"}))},chevronDown:{label:(0,i._x)("Chevron - Down","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))},chevronLeft:{label:(0,i._x)("Chevron - Left","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}))},chevronRight:{label:(0,i._x)("Chevron - Right","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}))},chevronUp:{label:(0,i._x)("Chevron - Up","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))},circle:{label:(0,i._x)("Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}))},circleOutline:{label:(0,i._x)("Circle - Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"}))},coffee:{label:(0,i._x)("Coffee","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"}))},dotCircle:{label:(0,i._x)("Dot - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))},dotCircleOutline:{label:(0,i._x)("Dot - Circle Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"}))},ellipsesH:{label:(0,i._x)("Ellipses - Horizontal","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"}))},ellipsesV:{label:(0,i._x)("Ellipses - Vertical","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 192 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"}))},envelope:{label:(0,i._x)("Envelope","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"}))},fireAlt:{label:(0,i._x)("Fire","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"}))},heart:{label:(0,i._x)("Heart","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},mapMarkerAlt:{label:(0,i._x)("Map Marker","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}))},paperPlane:{label:(0,i._x)("Paper Plane","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"}))},phone:{label:(0,i._x)("Phone","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"}))},plus:{label:(0,i._x)("Plus","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}))},plusCircle:{label:(0,i._x)("Plus - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquare:{label:(0,i._x)("Plus - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquareOutline:{label:(0,i._x)("Plus - Square Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},shield:{label:(0,i._x)("Shield","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}))},star:{label:(0,i._x)("Star","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}))},tags:{label:(0,i._x)("Tags","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"}))},userCircle:{label:(0,i._x)("User - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"}))}},mo=a(856),fo=a.n(mo);function ko(e){return fo().sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}class vo extends l.Component{constructor(){super(...arguments),this.state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1}}render(){const{attributes:t,setAttributes:a,attrIcon:n,attrIconLocation:o,locationOptions:s,attrRemoveText:c,id:u}=this.props;let g={general:{group:(0,i.__)("General","generateblocks"),svgs:ho},social:{group:(0,i.__)("Social","generateblocks"),svgs:bo}};g=(0,h.applyFilters)("generateblocks.editor.iconSVGSets",g,{attributes:t});const d={};t.display.includes("flex")||(d.display="headline"===u?"flex":"inline-flex"),t.alignItems||(d.alignItems="center"),t.columnGap||(d.columnGap="0.5em");const p={};return t.iconStyles.height||(p.height="1em"),t.iconStyles.width||(p.width="1em"),(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gb-svg-html"},(0,e.createElement)(r.TextControl,{label:(0,i.__)("Icon SVG HTML","generateblocks"),value:t[n],onChange:e=>{a({[this.props.attrIcon]:ko(e)}),a(""!==e?{hasIcon:!0,...d,iconStyles:{...p}}:{hasIcon:!1})}}),(0,e.createElement)("div",{className:"gb-icon-preview"},(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:ko(t[n])}}),(0,e.createElement)(r.Button,{size:"small",className:"reset-icon is-secondary",onClick:()=>{a({[this.props.attrIcon]:"",hasIcon:!1,[this.props.attrRemoveText]:!1})}},(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},(0,i.__)("Clear","generateblocks"))))),(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser"},Object.keys(g).map(((t,n)=>{const i=g[t].svgs;return(0,e.createElement)(r.PanelBody,{className:"gblocks-panel-label gblocks-icon-panel",title:g[t].group,initialOpen:!1,key:n},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(i).map(((t,n)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${n}`},(0,e.createElement)(r.Tooltip,{text:i[t].label},(0,e.createElement)(r.Button,{className:"editor-block-list-item-button",onClick:()=>{let e=i[t].icon;"string"!=typeof e&&(e=(0,l.renderToString)(e)),a({[this.props.attrIcon]:e,hasIcon:!0,...d,iconStyles:{...p}})}},"string"==typeof i[t].icon?(0,e.createElement)(l.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:ko(i[t].icon)}})):(0,e.createElement)(l.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},i[t].icon)))))))))))}))),void 0!==t[o]&&!t[c]&&!!t[n]&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:t[o],options:s,onChange:e=>{a({[this.props.attrIconLocation]:e})}}),void 0!==t[c]&&!!t[n]&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Text","generateblocks"),checked:!!t[c],onChange:e=>{a({[this.props.attrRemoveText]:e})}}))}}var yo=vo;function wo({value:t,onChange:a,options:l}){return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:t,options:l,onChange:a})}function Co({attributes:t,setAttributes:a}){const l=fi(),[n,r]=ne(t,a),o=["paddingTop","paddingLeft","paddingRight","paddingBottom"];return(0,e.createElement)(Ti,{label:(0,i.__)("Padding","generateblocks"),attributeNames:o,values:n.iconStyles,placeholders:o.reduce(((e,a)=>({...e,[a]:E(a,t.iconStyles,l,"")})),{}),onChange:e=>r(e,"iconStyles")})}function _o(t){const{locationOptions:a,iconLocation:l,attributes:n,setAttributes:r,onChangeLocation:i}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(wo,{value:l,onChange:i,options:a}),(0,e.createElement)(Co,{attributes:n,setAttributes:r}))}function Eo({attributes:t,setAttributes:a}){const{id:n,supports:{icon:r}}=(0,l.useContext)(yt),o=fi(),{icon:s,iconLocation:c,iconLocationTablet:u,iconLocationMobile:g,removeText:d}=t;return(0,e.createElement)(Ct,{title:(0,i.__)("Icon","generateblocks"),initialOpen:!1,icon:p("icons"),className:"gblocks-panel-label",id:`${n}Icon`},"Desktop"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(yo,{attributes:t,setAttributes:a,attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel",id:n}),!!s&&!d&&(0,e.createElement)(_o,{attributes:t,setAttributes:a,iconLocation:c,locationOptions:r.location,onChangeLocation:e=>{a({iconLocation:e,iconPaddingRight:"inline"===e||"left"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":"",iconPaddingLeft:"right"===e?"0.5":""})}})),"Tablet"===o&&!!s&&!d&&(0,e.createElement)(_o,{attributes:t,setAttributes:a,iconLocation:u,locationOptions:r.location,onChangeLocation:e=>{a({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e||"left"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":"",iconPaddingLeftTablet:"right"===e?"0.5":""})}}),"Mobile"===o&&!!s&&!d&&(0,e.createElement)(_o,{attributes:t,setAttributes:a,iconLocation:g,locationOptions:r.location,onChangeLocation:e=>{a({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e||"left"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":"",iconPaddingLeftMobile:"right"===e?"0.5":""})}}),!!s&&!!r.iconSize&&(0,e.createElement)(mi,null,(0,e.createElement)(Zt,{id:"gblocks-icon-width",label:(0,i.__)("Icon Size","generateblocks"),value:hi("width",{attributes:t.iconStyles,deviceType:o}),placeholder:E("width",t.iconStyles,o),onChange:e=>{a({iconStyles:{[hi("width",{attributes:t.iconStyles,deviceType:o},!0)]:e,[hi("height",{attributes:t.iconStyles,deviceType:o},!0)]:e}})}})))}function xo({children:t}){const{id:a,supports:{settingsPanel:n}}=(0,l.useContext)(yt);return(0,e.createElement)(Ct,{title:n.label,initialOpen:!1,icon:p(n.icon),className:"gblocks-panel-label",id:`${a}Settings`},t)}function So({bgImage:t,setAttributes:a,isUsingFeaturedImage:l}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{id:"gblocks-background-image-upload",label:(0,i.__)("Image URL","generateblocks")},(0,e.createElement)("div",{className:"gblocks-bg-image-wrapper"},(0,e.createElement)(r.TextControl,{type:"text",value:t?t.image.url:"",onChange:e=>{a(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),(0,e.createElement)("div",{className:"gblocks-background-image-action-buttons"},(0,e.createElement)(n.MediaUpload,{title:(0,i.__)("Set background image","generateblocks"),onSelect:e=>{let t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),a({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:()=>{document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:t?t.id:"",modalClass:"editor-gb-container-background__media-modal",render:({open:t})=>(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Open the Media Library","generateblocks")},(0,e.createElement)(r.Button,{onClick:t,className:"is-secondary is-small"},(0,i.__)("Browse","generateblocks")))})))),l&&(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Using featured image as dynamic background.","generateblocks")))}function To({disabled:t,checked:a,onChange:l}){return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use inline style","generateblocks"),disabled:t,checked:a,onChange:l})}function Lo({checked:t,onChange:a}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Background Color Overlay","generateblocks"),checked:t,onChange:a}),(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks")))}function Mo({value:t,onChange:a}){const l=[];return Object.keys(generateBlocksInfo.imageSizes).forEach((e=>{l.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Image Size","generateblocks"),value:t,options:l,onChange:a})}function Bo({value:t,onChange:a,position:l,useInnerContainer:n}){let o=null;return n||"pseudo-element"!==t||(o=(0,i.__)('Note: This image will sit on top of content inside this Container unless the content has its own Container with "Position" set to "Relative" (Layout panel).',"generateblocks"),l||(o=(0,i.__)('Note: You need to set your "Position" option to "Relative" (Layout panel) or this image will overflow out of this Container.',"generateblocks"))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Selector","generateblocks"),value:t,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:a,help:o})}function Io({value:t,onChange:a,isPseudoElement:l}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RangeControl,{label:(0,i.__)("Image Opacity","generateblocks"),value:t,onChange:a,min:0,max:1,step:.01,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==t&&!l&&(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Your selector must be set to Pseudo Element to use opacity.","generateblocks")))}function Oo({attributes:t,setAttributes:a}){const{bgImage:l,bgOptions:n,bgImageSize:r,useDynamicData:i,dynamicContentType:o,innerZindex:s,useInnerContainer:c,position:u,overflowX:g,overflowY:d}=t;return(0,e.createElement)(e.Fragment,null,n.overlay?(0,e.createElement)(Lo,{checked:!!n.overlay,onChange:e=>{a({bgOptions:{overlay:e}})}}):(0,e.createElement)(e.Fragment,null,(l&&l.id||i&&""!==o)&&(0,e.createElement)(Mo,{value:r,onChange:e=>a({bgImageSize:e})}),(0,e.createElement)(Bo,{value:n.selector,position:u,useInnerContainer:c,onChange:e=>{a({bgOptions:{selector:e}}),c&&"pseudo-element"===e&&!s&&0!==s&&a({innerZindex:1}),c||"pseudo-element"!==e||a({position:u||"relative",overflowX:g||"hidden",overflowY:d||"hidden"})}}),(0,e.createElement)(Io,{value:n.opacity,isPseudoElement:"pseudo-element"===n.selector,onChange:e=>{a({bgOptions:{opacity:e,selector:"pseudo-element"}}),c&&!s&&0!==s&&a({innerZindex:1}),c||a({position:u||"relative",overflowX:g||"hidden",overflowY:d||"hidden"})}})))}function Ao({value:t,onChange:a}){return(0,e.createElement)(r.TextControl,{label:(0,i.__)("Size","generateblocks"),value:t,onChange:a})}function Ro({value:t,onChange:a}){return(0,e.createElement)(r.TextControl,{label:(0,i.__)("Position","generateblocks"),value:t,onChange:a})}function zo({value:t,onChange:a}){return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Repeat","generateblocks"),value:t,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:a})}function Do({value:t,onChange:a}){return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Attachment","generateblocks"),value:t,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:a})}class No extends l.Component{render(){const{attributes:t,setAttributes:a,attrGradient:n,attrGradientDirection:o,attrGradientColorOne:s,attrGradientColorOneOpacity:c,attrGradientColorStopOne:u,attrGradientColorTwo:g,attrGradientColorTwoOpacity:d,attrGradientColorStopTwo:p,defaultColorOne:b,defaultColorTwo:h}=this.props,{gradientSelector:m,innerZindex:f,useInnerContainer:k,position:v}=t,y="element"===m?(0,i.__)("Displays behind the background image.","generateblocks"):(0,i.__)("Displays in front of the background image.","generateblocks");return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Gradient","generateblocks"),checked:!!t[n],onChange:e=>{const l=this.props;let n=t[o],r=t[s],i=t[g];e&&(n=n||90,r=r||"rgba(255, 255, 255, 0.1)",i=i||"rgba(0, 0, 0, 0.30)"),a({[l.attrGradient]:e,[l.attrGradientDirection]:n,[l.attrGradientColorOne]:r,[l.attrGradientColorTwo]:i})}}),!!t[n]&&(0,e.createElement)(l.Fragment,null,void 0!==m&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Selector","generateblocks"),help:y,value:m,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{a({gradientSelector:e}),k&&!_(f)&&"pseudo-element"===e&&a({innerZindex:1}),k||"pseudo-element"!==e||v||a({position:"relative"})}}),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Direction","generateblocks")),(0,e.createElement)(r.RangeControl,{value:t[o]?t[o]:0,onChange:e=>{a({[o]:e})},min:0,max:360,step:1,initialPosition:90})),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Color One","generateblocks")),(0,e.createElement)("div",{className:"gblocks-component-gradient-control"},(0,e.createElement)(so,{value:t[s],alpha:!0,valueOpacity:t[c]||0===t[c]?t[c]:1,attrOpacity:"gradientColorOneOpacity",onChange:e=>a({[s]:e}),onOpacityChange:e=>a({[c]:e}),onClear:()=>a({[s]:b})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[u]||0===t[u]?t[u]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[u]:e})},onBlur:()=>{(t[u]||0===t[u])&&a({[u]:parseFloat(t[u])})},onClick:e=>{e.currentTarget.focus()}}))),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Color Two","generateblocks")),(0,e.createElement)("div",{className:"gblocks-component-gradient-control"},(0,e.createElement)(so,{value:t[g],alpha:!0,valueOpacity:t[d]||0===t[d]?t[d]:1,attrOpacity:"gradientColorTwoOpacity",onChange:e=>a({[g]:e}),onOpacityChange:e=>a({[d]:e}),onClear:()=>a({[g]:h})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[p]||0===t[p]?t[p]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[p]:e})},onBlur:()=>{(t[p]||0===t[p])&&a({[p]:parseFloat(t[p])})},onClick:e=>{e.currentTarget.focus()}})))))}}var Fo=No;function Ho({attributes:t,setAttributes:a}){const{id:n,isInQueryLoop:r,supports:{backgroundPanel:o}}=(0,l.useContext)(yt),{bgImage:s,bgOptions:c,bgImageInline:u,useDynamicData:g,dynamicContentType:d,isQueryLoopItem:b}=t;return(0,e.createElement)(Ct,{title:(0,i.__)("Backgrounds","generateblocks"),initialOpen:!1,icon:p("gradients"),className:"gblocks-panel-label",id:`${n}Background`,attributes:t,setAttributes:a},!!o.backgroundImage&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(So,{bgImage:s,setAttributes:a,isUsingFeaturedImage:g&&""!==d}),(!!s||g&&""!==d)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(To,{checked:!!u,disabled:g&&""!==d&&(b||r),onChange:e=>a({bgImageInline:e})}),(0,e.createElement)(Oo,{attributes:t,setAttributes:a}),(0,e.createElement)(Ao,{value:c.size,onChange:e=>a({bgOptions:{size:e}})}),(0,e.createElement)(Ro,{value:c.position,onChange:e=>a({bgOptions:{position:e}})}),(0,e.createElement)(zo,{value:c.repeat,onChange:e=>a({bgOptions:{repeat:e}})}),(0,e.createElement)(Do,{value:c.attachment,onChange:e=>a({bgOptions:{attachment:e}})}))),!!o.backgroundGradient&&(0,e.createElement)(Fo,{attributes:t,setAttributes:a,attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults[n].gradientColorOne,defaultColorTwo:generateBlocksDefaults[n].gradientColorTwo}))}function Po({attributes:t,setAttributes:a}){const{id:n}=(0,l.useContext)(yt),o=fi(),{backgroundColor:c,shapeDividers:u,position:g}=t,d=[];return Object.keys(generateBlocksInfo.svgShapes).forEach((e=>{const t=generateBlocksInfo.svgShapes[e].svgs;Object.keys(t).forEach((e=>{d[e]={label:t[e].label,icon:t[e].icon}}))})),(0,e.createElement)(Ct,{title:(0,i.__)("Shapes","generateblocks"),initialOpen:!1,icon:p("shapes"),className:"gblocks-panel-label",id:`${n}Shapes`},(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},u.map(((t,n)=>{const g=n+1;return(0,e.createElement)(l.Fragment,{key:n},(0,e.createElement)("div",{className:"gblocks-shape-container"},(0,e.createElement)("div",{className:s()({"gblocks-shape-toggle-preview":!0,[`gblocks-shape-toggle-preview-${g}`]:!0}),style:{backgroundColor:c}},void 0!==d[u[n].shape]&&(0,e.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:u[n].color},dangerouslySetInnerHTML:{__html:ko(d[u[n].shape].icon)}})),/* translators: Shape number */
(0,i.sprintf)((0,i.__)("Shape %s","generateblocks"),g),(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-shapes-dropdown",renderToggle:({isOpen:t,onToggle:a})=>(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Edit Shape","generateblocks")},(0,e.createElement)(r.Button,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:p("wrench"),onClick:a,"aria-expanded":t})),renderContent:()=>(0,e.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map(((t,i)=>{const o=generateBlocksInfo.svgShapes[t].svgs;return(0,e.createElement)(r.PanelBody,{title:generateBlocksInfo.svgShapes[t].group,initialOpen:o.hasOwnProperty(u[n].shape),key:i},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(o).map(((t,i)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${i}`},(0,e.createElement)(r.Tooltip,{text:o[t].label},(0,e.createElement)(r.Button,{className:s()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":u[n].shape===t}),onClick:()=>{const e=[...u];e[n]={...e[n],shape:t},a({shapeDividers:e})}},"string"==typeof o[t].icon?(0,e.createElement)(l.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:ko(o[t].icon)}})):(0,e.createElement)(l.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},o[t].icon)))))))))))}))),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(so,{label:(0,i.__)("Color","generateblocks"),value:u[n].color,alpha:!0,valueOpacity:u[n].colorOpacity,onChange:e=>{const t=[...u];t[n]={...t[n],color:e},a({shapeDividers:t})},onOpacityChange:e=>{const t=[...u];t[n]={...t[n],colorOpacity:e},a({shapeDividers:t})}})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Location","generateblocks"),value:u[n].location,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{const t=[...u];t[n]={...t[n],location:e},a({shapeDividers:t})}}),(0,e.createElement)(C,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[n].height?u[n].height:"",onChange:e=>{const t=[...u];t[n]={...t[n],height:parseFloat(e)},a({shapeDividers:t})}}),(0,e.createElement)(C,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[n].width?u[n].width:"",min:"100",onChange:e=>{const t=[...u];t[n]={...t[n],width:parseFloat(e)},a({shapeDividers:t})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Flip Horizontally","generateblocks"),checked:!!u[n].flipHorizontally,onChange:e=>{const t=[...u];t[n]={...t[n],flipHorizontally:e},a({shapeDividers:t})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("z-index","generateblocks"),type:"number",min:"0",value:u[n].zindex||0===u[n].zindex?u[n].zindex:"",onChange:e=>{const t=[...u];t[n]={...t[n],zindex:e},a({shapeDividers:t})},onBlur:()=>{const e=[...u];e[n]={...e[n],zindex:parseFloat(u[n].zindex)},a({shapeDividers:e})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(C,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[n].heightTablet?u[n].heightTablet:"",onChange:e=>{const t=[...u];t[n]={...t[n],heightTablet:parseFloat(e)},a({shapeDividers:t})}}),(0,e.createElement)(C,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[n].widthTablet?u[n].widthTablet:"",min:"100",onChange:e=>{const t=[...u];t[n]={...t[n],widthTablet:parseFloat(e)},a({shapeDividers:t})}})),"Mobile"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(C,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[n].heightMobile?u[n].heightMobile:"",onChange:e=>{const t=[...u];t[n]={...t[n],heightMobile:parseFloat(e)},a({shapeDividers:t})}}),(0,e.createElement)(C,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[n].widthMobile?u[n].widthMobile:"",min:"100",onChange:e=>{const t=[...u];t[n]={...t[n],widthMobile:parseFloat(e)},a({shapeDividers:t})}})))})),"Desktop"===o&&(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Delete Shape","generateblocks")},(0,e.createElement)(r.Button,{className:"gblocks-remove-shape",onClick:()=>{window.confirm((0,i.__)("This will permanently delete this shape.","generateblocks"))&&(e=>{const t=[...u];t.splice(e,1),a({shapeDividers:t})})(n)},icon:p("x")}))))})),"Desktop"===o&&(0,e.createElement)("div",{className:"gblocks-add-new-shape"},(0,e.createElement)(r.Button,{isSecondary:!0,onClick:()=>{const e=[...u];e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),a({shapeDividers:e,position:g||"relative"})}},(0,i.__)("Add Shape","generateblocks")))))}const Vo={flexDirection:[{label:(0,i.__)("Row","generateblocks"),value:"row"},{label:(0,i.__)("Column","generateblocks"),value:"column"}],flexWrap:[{label:(0,i.__)("No Wrap","generateblocks"),value:"nowrap"},{label:(0,i.__)("Wrap","generateblocks"),value:"wrap"},{label:(0,i.__)("Reverse Wrap","generateblocks"),value:"wrap-reverse"}],alignItems:[{value:"flex-start",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 2.5h3v7h-3zm5 0h3v5h-3z"}))},{value:"center",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 3.5h3v8h-3zm5 1h3v6h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M0 7h16v1H0z"}))},{value:"flex-end",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 15h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 6.5h3v7h-3zm5 2h3v5h-3z"}))},{value:"stretch",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h16v1H0zm0 15h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 2.5h3v11h-3zm5 0h3v11h-3z"}))},{value:"baseline",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 7h16v1H0z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3H8v7h4V3zm-1 1H9v3h2V4zM7 3H3v9h4V3zM6 4H4v3h2V4z",fill:"currentColor"}))}],justifyContent:[{value:"flex-start",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M2.5 4.5h3v7h-3zm5 0h3v7h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h1v16H0z"}))},{value:"center",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M2.5 4.5h3v7h-3zm7 0h3v7h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M7 0h1v16H7z"}))},{value:"flex-end",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M5.5 4.5h3v7h-3zm5 0h3v7h-3z"}))},{value:"space-between",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1zM0 0h1v16H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M10.5 4.5h3v7h-3zm-8 0h3v7h-3z"}))},{value:"space-around",icon:(0,e.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1zM0 0h1v16H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M9.5 4.5h3v7h-3zm-6 0h3v7h-3z"}))}]},jo=(0,h.applyFilters)("generateblocks.editor.layoutPositionOptions",[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Relative","generateblocks"),value:"relative"}]),Go=[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Visible","generateblocks"),value:"visible"},{label:(0,i.__)("Hidden","generateblocks"),value:"hidden"},{label:(0,i.__)("Scroll","generateblocks"),value:"scroll"},{label:(0,i.__)("Auto","generateblocks"),value:"auto"}];var Wo=t=>{const{value:a,onChange:n,label:i,attributeName:o,directionValue:c,fallback:u}=t;function g(t){return(0,e.createElement)(r.Button,{isPrimary:t.value===a,className:a||u!==t.value?"":"is-inherited",onClick:()=>n(t.value)},t.icon||t.label)}return(0,e.createElement)(r.BaseControl,{id:o,label:i,className:s()({["gblocks-flex-direction-"+o+"-"+c]:!0})},(0,e.createElement)(r.ButtonGroup,{id:o,className:"gblocks-flex-button-group"},Vo[o].map(((t,a)=>(0,e.createElement)(l.Fragment,{key:o+a},t.icon?(0,e.createElement)(r.Tooltip,{text:t.label||t.value},g(t)):g(t))))))};function Uo(e){const{device:t,display:a,displayTablet:l,displayMobile:n,computedStyles:r={display:""}}=e,{display:i=""}=r;if("flex"===i)return!0;let o=!1;return"Desktop"===t&&a.includes("flex")&&(o=!0),"Tablet"===t&&(l&&l.includes("flex")||!l&&a.includes("flex"))&&(o=!0),"Mobile"===t&&(n&&n.includes("flex")||!n&&l&&l.includes("flex")||!n&&!l&&a.includes("flex"))&&(o=!0),o}var Zo=t=>{const{value:a,onChange:n,onReverse:o,label:c,directionValue:u,fallback:g}=t;function d(t){return(0,e.createElement)(r.Button,{isPrimary:a.includes(t.value),className:!a&&g.includes(t.value)?"is-inherited":"",onClick:()=>n(t.value)},t.icon||t.label)}return(0,e.createElement)(r.BaseControl,{id:"flexDirection",label:c,className:s()({[`gblocks-flex-direction-flexDirection-${u}`]:!0})},(0,e.createElement)(r.ButtonGroup,{id:"flexDirection",className:"gblocks-flex-button-group"},Vo.flexDirection.map(((t,a)=>(0,e.createElement)(l.Fragment,{key:c+a},t.icon?(0,e.createElement)(r.Tooltip,{text:t.label||t.value},d(t)):d(t)))),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reverse","generateblocks")},(0,e.createElement)(r.Button,{isPrimary:a.includes("reverse"),className:!a&&g.includes("reverse")?"is-inherited":"",onClick:()=>o(a)},function(){let t=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7 7 7z"}));return(a.includes("column")||!a&&g.includes("column"))&&(t=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"m5 9 1.41 1.41L11 5.83V22h2V5.83l4.59 4.59L19 9l-7-7-7 7z"}))),t}()))))};function qo(e,t){return t&&t[e]}var $o=t=>{const{attributes:a,setAttributes:n,deviceType:o,blockDefaults:s}=t,{isGrid:c,outerContainer:u,innerContainer:g,containerWidth:d,align:p,useInnerContainer:b,sizing:m,verticalAlignment:f,verticalAlignmentTablet:k,verticalAlignmentMobile:v}=a;return b?(0,e.createElement)(l.Fragment,null,!c&&(0,e.createElement)(l.Fragment,null,"Desktop"===o&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Container","generateblocks"),value:u,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{n({outerContainer:e}),"contained"===e&&"full"===p&&n({align:""})}}),"full"===u&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Inner Container","generateblocks"),value:g,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{n({innerContainer:e})}}),("contained"===u||"contained"===g)&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(C,{label:"full"===u&&"contained"===g?(0,i.__)("Inner Container Width","generateblocks"):(0,i.__)("Container Width","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",className:"gblocks-container-width",value:parseFloat(d)||"",placeholder:s.containerWidth,onChange:e=>{n({containerWidth:""!==e?parseFloat(e):void 0})}})))),"Desktop"===o&&(0,e.createElement)(l.Fragment,null,(!!c||qo("minHeight",m))&&(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:f,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{n({verticalAlignment:e})}}))),"Tablet"===o&&(!!c||qo("minHeight",m)||qo("minHeightTablet",m))&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:k,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{n({verticalAlignmentTablet:e})}}),"Mobile"===o&&(!!c||qo("minHeight",m)||qo("minHeightTablet",m)||qo("minHeightMobile",m))&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:v,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{n({verticalAlignmentMobile:e})}}),(0,h.applyFilters)("generateblocks.editor.controls","","containerLayout",t)):null};function Ko({value:t,onChange:a,label:l,placeholder:n}){return(0,e.createElement)(r.TextControl,{label:l||(0,i.__)("z-index","generateblocks"),type:"number",value:t||0===t?t:"",placeholder:n,onChange:a,onBlur:()=>{(t||0===t)&&a(parseFloat(t))},onClick:e=>{e.currentTarget.focus()}})}function Jo(t){const{attributes:a,setAttributes:l}=t,n=fi();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gblocks-flex-controls",label:(0,i.__)("Flex","generateblocks"),id:"gblocks-flex-grow"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(r.Button,{className:"gblocks-reset-button",icon:p("reset"),onClick:()=>{l({[hi("flexGrow",{attributes:a,deviceType:n},!0)]:"",[hi("flexShrink",{attributes:a,deviceType:n},!0)]:"",[hi("flexBasis",{attributes:a,deviceType:n},!0)]:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(r.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow",type:"number",value:hi("flexGrow",{attributes:a,deviceType:n}),min:"0",step:"1",placeholder:E("flexGrow",a,n,"0"),onChange:e=>{l({[hi("flexGrow",{attributes:a,deviceType:n},!0)]:e})},onBlur:()=>{""!==hi("flexGrow",{attributes:a,deviceType:n})&&l({[hi("flexGrow",{attributes:a,deviceType:n},!0)]:parseFloat(hi("flexGrow",{attributes:a,deviceType:n}))})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Shrink","generateblocks"),id:"gblocks-flex-shrink",type:"number",value:hi("flexShrink",{attributes:a,deviceType:n}),min:"0",step:"1",placeholder:E("flexShrink",a,n,"1"),onChange:e=>{l({[hi("flexShrink",{attributes:a,deviceType:n},!0)]:e})},onBlur:()=>{""!==hi("flexShrink",{attributes:a,deviceType:n})&&l({[hi("flexShrink",{attributes:a,deviceType:n},!0)]:parseFloat(hi("flexShrink",{attributes:a,deviceType:n}))})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},(0,e.createElement)(Zt,{help:(0,i.__)("Basis","generateblocks"),value:hi("flexBasis",{attributes:a,deviceType:n}),placeholder:E("flexBasis",a,n),onChange:e=>{l({[hi("flexBasis",{attributes:a,deviceType:n},!0)]:e})}})))))}function Yo({attributes:t,setAttributes:a}){const n=fi(),{id:o,supports:{flexChildPanel:s}}=(0,l.useContext)(yt),c={attributes:t,deviceType:n},{useInnerContainer:u,isGrid:g}=t;return(0,e.createElement)(Ct,{title:(0,i.__)("Flex Child","generateblocks"),initialOpen:!1,className:"gblocks-panel-label",id:`${o}FlexChild`},s.flex&&(!u||u&&g)&&(0,e.createElement)(Jo,{attributes:t,setAttributes:a}),s.order&&(!u||u&&g)&&(0,e.createElement)(r.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:_(hi("order",c))?hi("order",c):"",placeholder:E("order",t,n),onChange:e=>{a({[hi("order",c,!0)]:parseFloat(e)})}}))}function Qo(e){const{isGrid:t,verticalAlignment:a,verticalAlignmentTablet:l,verticalAlignmentMobile:n,sizing:r,bgImage:i,bgOptions:o,useDynamicData:s,dynamicContentType:c,zindex:u,gradient:g,gradientSelector:d,shapeDividers:p,linkType:b,url:h,dynamicLinkType:m,advBackgrounds:f,gpInlinePostMeta:k,gpInlinePostMetaJustify:v,gpInlinePostMetaJustifyTablet:y,gpInlinePostMetaJustifyMobile:w}=e,C={};let _=!1;qo("minHeight",r)&&a&&!t&&(C.display="flex",C.flexDirection="column",C.justifyContent=a,_=!0),t&&a&&(C.display="flex",C.flexDirection="column",C.justifyContent=a),t||(!_&&qo("minHeightTablet",r)&&"inherit"!==l&&(C.displayTablet="flex",C.flexDirectionTablet="column",_=!0),_&&"inherit"!==l&&(C.justifyContentTablet=l)),t&&l&&"inherit"!==l&&(C.justifyContentTablet=l),t||(!_&&qo("minHeightMobile",r)&&"inherit"!==n&&(C.displayMobile="flex",C.flexDirectionMobile="column",_=!0),_&&"inherit"!==l&&(C.justifyContentMobile=n)),t&&n&&"inherit"!==n&&(C.justifyContentMobile=n);const E=!!i||s&&""!==c;return(u||p.length)&&(C.position="relative"),(E&&"pseudo-element"===o.selector||g&&"pseudo-element"===d||f?.length)&&(C.position="relative",C.overflowX="hidden",C.overflowY="hidden"),"hidden-link"===b&&(h||s&&m)&&(C.position="relative"),k&&(C.display="flex",C.alignItems="center",C.gpInlinePostMeta=!1,v&&(C.justifyContent=v,C.gpInlinePostMetaJustify=""),y&&(C.justifyContentTablet=y,C.gpInlinePostMetaJustifyTablet=""),w&&(C.justifyContentMobile=w,C.gpInlinePostMetaJustifyMobile="")),C}function Xo(a){const{setAttributes:n,attributes:o}=a,{useInnerContainer:s,useGlobalStyle:c,isGlobalStyle:u}=o,{clientId:d}=(0,l.useContext)(yt),[p,b]=(0,l.useState)(!1),h=()=>b(!1),{getBlocksByClientId:m,getBlockParentsByBlockName:f,getBlock:k,isBlockMultiSelected:v}=(0,t.useSelect)((e=>e("core/block-editor")),[]),{insertBlocks:y,replaceBlocks:w}=(0,t.useDispatch)("core/block-editor"),C=function(e){const{attributes:t,insideGridBlock:a,childBlock:l}=e,{outerContainer:n,innerContainer:r,innerZindex:i}=t;let o=!1;return"full"===n&&"contained"===r&&(o=!0),a&&(o=!1),l&&"generateblocks/container"===l.name&&"contained"===l.attributes.outerContainer&&(o=!1),_(i)&&(o=!0),["opacities","transitions","boxShadows","transforms","textShadows","filters"].forEach((e=>{t[e]&&t[e].some((e=>"innerContainer"===e.target))&&(o=!0)})),o}({attributes:o,insideGridBlock:(E=d,f(E,"generateblocks/grid",!0)[0]),childBlock:function(e){const t=k(e);return t&&t.innerBlocks.length?k(t.innerBlocks[0].clientId):""}(d)});var E;function x(){return(0,e.createElement)(r.Button,{variant:C?"primary":"secondary",style:{marginRight:"5px"},onClick:()=>{!function(e){const{attributes:t,setAttributes:a,parentBlock:l,replaceBlocks:n,insertBlocks:r,clientId:i}=e,{isGrid:o,containerWidth:s,outerContainer:c,innerContainer:u,innerZindex:d,useGlobalMaxWidth:p,spacing:b}=t,h=l.innerBlocks,m=parseInt(s)===parseInt(generateBlocksInfo.globalContainerWidth),f=Qo(t),k=h.map((e=>(0,g.createBlock)(e.name,e.attributes,e.innerBlocks))),v=(0,g.createBlock)("generateblocks/container",{spacing:{paddingTop:b?.paddingTop,paddingRight:b?.paddingRight,paddingBottom:b?.paddingBottom,paddingLeft:b?.paddingLeft,paddingTopTablet:b?.paddingTopTablet,paddingRightTablet:b?.paddingRightTablet,paddingBottomTablet:b?.paddingBottomTablet,paddingLeftTablet:b?.paddingLeftTablet,paddingTopMobile:b?.paddingTopMobile,paddingRightMobile:b?.paddingRightMobile,paddingBottomMobile:b?.paddingBottomMobile,paddingLeftMobile:b?.paddingLeftMobile,marginLeft:"auto",marginRight:"auto"},useGlobalMaxWidth:"contained"===u?!!m:p,sizing:{maxWidth:"contained"===u&&!m&&s?s+"px":""},zindex:d,position:d||0===d?"relative":""},k),y=h.map((e=>e.clientId));y.length>0?n(y,v):r(v,0,i),a({useInnerContainer:!1,spacing:{paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",paddingTopTablet:"",paddingRightTablet:"",paddingBottomTablet:"",paddingLeftTablet:"",paddingTopMobile:"",paddingRightMobile:"",paddingBottomMobile:"",paddingLeftMobile:"",marginLeft:o||"contained"!==c?b?.marginLeft:"auto",marginRight:o||"contained"!==c?b?.marginRight:"auto"},useGlobalMaxWidth:!o&&"contained"===c&&!!m,sizing:{height:o?"100%":"",maxWidth:o||"contained"!==c||m||!s?"":s+"px"},...f})}({attributes:o,setAttributes:n,parentBlock:m(d)[0],replaceBlocks:w,insertBlocks:y,clientId:d}),h()}},(0,i.__)("Enable new system with inner Container block","generateblocks"))}function S(){return(0,e.createElement)(r.Button,{variant:C?"secondary":"primary",style:{marginRight:"5px"},onClick:()=>{!function(e){const{attributes:t,setAttributes:a}=e,{isGrid:l,outerContainer:n,containerWidth:r,spacing:i}=t,o=parseInt(r)===parseInt(generateBlocksInfo.globalContainerWidth),s=Qo(t);a({useInnerContainer:!1,useGlobalMaxWidth:!l&&"contained"===n&&!!o,spacing:{marginLeft:l||"contained"!==n?i?.marginLeft:"auto",marginRight:l||"contained"!==n?i?.marginRight:"auto"},sizing:{height:l?"100%":"",maxWidth:l||"contained"!==n||o||!r?"":r+"px"},...s})}({attributes:o,setAttributes:n}),h()}},(0,i.__)("Enable new system only","generateblocks"))}return v(d)?null:(0,e.createElement)(e.Fragment,null,!!s&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use legacy layout system","generateblocks"),help:(0,e.createElement)(e.Fragment,null,(0,i.__)("This Container is using an old layout system. Toggle this to migrate to the new system.","generateblocks"),(0,e.createElement)(r.ExternalLink,{style:{display:"block",marginTop:"8px"},href:(0,i.__)("https://docs.generateblocks.com/article/migrating-container-legacy-layout/")},(0,i.__)("Learn more about the new system"))),checked:!!s,onChange:()=>b(!0)}),!!p&&(0,e.createElement)(r.Modal,{title:(0,i.__)("New Layout System","generateblocks"),onRequestClose:h},(0,e.createElement)("p",null,(0,i.__)("Migrating to our new layout system will do the following:","generateblocks")),(0,e.createElement)("ul",{className:"gblocks-layout-system-ul"},(0,e.createElement)("li",null,(0,i.__)("Remove the inner div element that was included by default in the old system.","generateblocks")),(0,e.createElement)("li",null,(0,i.__)("Enable our new layout system for this Container block.","generateblocks"))),(0,e.createElement)("p",null,(0,i.__)("We can automatically replace the old inner div element with a Container block if your layout relies on it.","generateblocks")),!!c&&(0,e.createElement)(r.Notice,{status:"warning",isDismissible:!1,className:"gblocks-inner-container-notice"},(0,e.createElement)("strong",null,(0,i.__)("Warning:","generateblocks"))," "+(0,i.__)("This block is using a Global Style. Make sure the Global Style you are using is also using the new layout system.","generateblocks"),!!C&&(0,e.createElement)("p",{style:{marginBottom:0}},(0,i.__)("You may want to create two new Global Styles for this Container. One for the outer Container block and one for the inner Container block.","generateblocks"))),!!u&&(0,e.createElement)(r.Notice,{status:"warning",isDismissible:!1,className:"gblocks-inner-container-notice"},(0,e.createElement)("strong",null,(0,i.__)("Warning:","generateblocks"))," "+(0,i.__)("This block is a Global Style. If you migrate the inner container on this block you will need to make sure that all Container blocks using it are migrated as well.","generateblocks")),(0,e.createElement)(r.Notice,{status:"info",isDismissible:!1,className:"gblocks-inner-container-notice"},C?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",{style:{marginTop:0}},(0,e.createElement)("strong",null,(0,i.__)("Recommendation:","generateblocks"))," ",(0,i.__)("Yes, we recommend you add a new inner Container block to maintain your current layout.","generateblocks")),x()):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",{style:{marginTop:0}},(0,e.createElement)("strong",null,(0,i.__)("Recommendation:","generateblocks"))," ",(0,i.__)("No, we do not believe you need an inner Container block based on your current layout.","generateblocks")),S())),!C&&x(),!!C&&S(),(0,e.createElement)(r.Button,{variant:"secondary",onClick:h},(0,i.__)("Cancel","generateblocks"))))}var es=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})),ts=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),as=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"}));function ls({value:a,onChange:l}){const o=(0,n.useSetting)("layout.wideSize"),{themeSupportsAlignWide:s}=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return{themeSupportsAlignWide:t()?.alignWide}}),[]);if(!s&&!o)return null;const c=[{label:(0,i.__)("Default","generateblocks"),value:"",icon:es},{label:(0,i.__)("Wide","generateblocks"),value:"wide",icon:ts},{label:(0,i.__)("Full","generateblocks"),value:"full",icon:as}];return(0,e.createElement)(r.BaseControl,{label:(0,i.__)("Block Alignment","generateblocks"),id:"gblocks-theme-width-button-group",help:(0,i.__)("Change the width of this block using a method defined by your theme.","generateblocks")},(0,e.createElement)("div",null,(0,e.createElement)(r.ButtonGroup,{className:"gblocks-alignment-button-group",id:"gblocks-theme-width-button-group"},c.map((t=>(0,e.createElement)(r.Tooltip,{key:"align"+t.value,text:t.label},(0,e.createElement)(r.Button,{variant:a===t.value?"primary":"",onClick:()=>l(t.value),icon:t.icon})))))))}function ns({attributes:t,setAttributes:a,computedStyles:n}){const o=fi(),{id:s,blockName:c,supports:{layout:u,flexChildPanel:g}}=(0,l.useContext)(yt),d=ki(t,c),[b]=ne(t,a),{dispatchControlGlobalStyle:m,styleSources:f,hasGlobalStyle:k,contentWasUpdated:v}=X(n,{alignItems:!1,columnGap:!1,display:!1,flexDirection:!1,flexWrap:!1,justifyContent:!1,overflowX:!1,overflowY:!1,position:!1,rowGap:!1,zIndex:!1},d,b),y=(0,l.useRef)(null),w={attributes:t,deviceType:o},{display:C,displayTablet:_,displayMobile:x,useInnerContainer:S,zindex:T,innerZindex:L,align:M}=t,B=hi("flexDirection",w)||E("flexDirection",t,o,"row");function I(e,t){return(0,h.applyFilters)("generateblocks.editor.control.label",e,t,f,m,v)}const O={display:I((0,i.__)("Display","generateblocks"),{display:hi("display",w)}),flexDirection:I((0,i.__)("Direction","generateblocks"),{flexDirection:B}),alignItems:I((0,i.__)("Align Items","generateblocks"),{alignItems:hi("alignItems",w)}),justifyContent:I((0,i.__)("Justify Content","generateblocks"),{justifyContent:hi("justifyContent",w)}),flexWrap:I((0,i.__)("Wrap","generateblocks"),{flexWrap:hi("flexWrap",w)}),columnGap:I((0,i.__)("Column Gap","generateblocks"),{columnGap:hi("columnGap",w)}),rowGap:I((0,i.__)("Row Gap","generateblocks"),{rowGap:hi("rowGap",w)}),position:I((0,i.__)("Position","generateblocks"),{position:hi("position",w)}),zIndex:I((0,i.__)("z-index","generateblocks"),{zIndex:hi("zindex",w)}),overflowX:I((0,i.__)("Oveflow-x","generateblocks"),{overflowX:hi("overflowX",w)}),overflowY:I((0,i.__)("Oveflow-y","generateblocks"),{overflowY:hi("overflowY",w)})};return(0,e.createElement)(Ct,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!1,icon:p("layout"),className:"gblocks-panel-label",id:`${s}Layout`,ref:y,hasGlobalStyle:k},!!S&&(0,e.createElement)($o,{attributes:t,setAttributes:a,deviceType:o,blockDefaults:generateBlocksDefaults.container}),u.display&&!S&&(0,e.createElement)(r.SelectControl,{label:O.display,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:"Block",value:"block"},{label:"Inline Block",value:"inline-block"},{label:"Flex",value:"flex"},{label:"Inline Flex",value:"inline-flex"},{label:"Inline",value:"inline"}],value:hi("display",w),onChange:e=>a({[hi("display",w,!0)]:e})}),Uo({device:o,display:C,displayTablet:_,displayMobile:x,computedStyles:n})&&!S&&(0,e.createElement)(e.Fragment,null,u.flexDirection&&(0,e.createElement)(Zo,{value:hi("flexDirection",w),onChange:e=>{e=hi("flexDirection",w).includes("reverse")?e+"-reverse":e,a({[hi("flexDirection",w,!0)]:e!==hi("flexDirection",w)?e:""})},onReverse:e=>{""===e&&(e="row"),e=e.includes("reverse")?e.replace("-reverse",""):e+"-reverse",a({[hi("flexDirection",w,!0)]:e})},label:O.flexDirection,directionValue:B,fallback:E("flexDirection",t,o,"row")}),u.alignItems&&(0,e.createElement)(Wo,{value:hi("alignItems",w),onChange:e=>a({[hi("alignItems",w,!0)]:e!==hi("alignItems",w)?e:""}),label:O.alignItems,attributeName:"alignItems",directionValue:B,fallback:E("alignItems",t,o,"")}),u.justifyContent&&(0,e.createElement)(Wo,{value:hi("justifyContent",w),onChange:e=>a({[hi("justifyContent",w,!0)]:e!==hi("justifyContent",w)?e:""}),label:O.justifyContent,attributeName:"justifyContent",directionValue:B,fallback:E("justifyContent",t,o,"")}),u.flexWrap&&(0,e.createElement)(Wo,{value:hi("flexWrap",w),onChange:e=>a({[hi("flexWrap",w,!0)]:e!==hi("flexWrap",w)?e:""}),label:O.flexWrap,attributeName:"flexWrap",directionValue:B,fallback:E("flexWrap",t,o,"")}),(u.columnGap||u.rowGap)&&(0,e.createElement)(mi,null,u.columnGap&&(0,e.createElement)(Zt,{label:O.columnGap,id:"gblocks-column-gap",value:hi("columnGap",w),placeholder:E("columnGap",t,o),onChange:e=>a({[hi("columnGap",w,!0)]:e})}),u.rowGap&&(0,e.createElement)(Zt,{label:O.rowGap,id:"gblocks-row-gap",value:hi("rowGap",w),placeholder:E("rowGap",t,o),onChange:e=>a({[hi("rowGap",w,!0)]:e})}))),!S&&(0,e.createElement)(e.Fragment,null,u.position&&(0,e.createElement)(r.SelectControl,{label:O.position,value:hi("position",w),options:jo,onChange:e=>a({[hi("position",w,!0)]:e})}),u.overflow&&(0,e.createElement)(mi,null,(0,e.createElement)(r.SelectControl,{label:O.overflowX,value:hi("overflowX",w),options:Go,onChange:e=>a({[hi("overflowX",w,!0)]:e})}),(0,e.createElement)(r.SelectControl,{label:O.overflowY,value:hi("overflowY",w),options:Go,onChange:e=>a({[hi("overflowY",w,!0)]:e})}))),u.zIndex&&(0,e.createElement)(e.Fragment,null,!!S&&"Desktop"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ko,{label:(0,i.__)("Outer z-index","generateblocks"),value:T,onChange:e=>a({zindex:e})}),(0,e.createElement)(Ko,{label:(0,i.__)("Inner z-index","generateblocks"),value:L,onChange:e=>a({innerZindex:e})})),!S&&(0,e.createElement)(Ko,{label:O.zIndex,value:hi("zindex",w),placeholder:E("zindex",t,o),onChange:e=>a({[hi("zindex",w,!0)]:e,[hi("position",w,!0)]:hi("position",w)?hi("position",w):"relative"})})),u.themeWidth&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ls,{value:M,onChange:e=>{a({align:e})}})),!!S&&(0,e.createElement)(Xo,{attributes:t,setAttributes:a}),g.enabled&&(0,e.createElement)(Yo,{attributes:t,setAttributes:a}))}function rs({value:t,onChange:a,placeholder:l,label:n}){return(0,e.createElement)(Zt,{label:n,id:"gblocks-min-height",value:t,placeholder:l,onChange:a})}function is({value:t,placeholder:a,onChange:l,label:n}){return(0,e.createElement)(Zt,{label:n,id:"gblocks-width",value:t,placeholder:a,onChange:l})}function os({value:t,onChange:a,disabled:l,overrideValue:n,overrideAction:r,placeholder:i,label:o}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zt,{label:o,id:"gblocks-max-width",overrideValue:n,disabled:l,value:t,placeholder:i,onChange:a,overrideAction:r}))}function ss({value:t,onChange:a,placeholder:l,label:n}){return(0,e.createElement)(Zt,{label:n,id:"gblocks-height",value:t,placeholder:l,onChange:a})}function cs({value:t,onChange:a,disabled:l,placeholder:n,label:r}){return(0,e.createElement)(Zt,{label:r,id:"gblocks-min-width",value:t,placeholder:n,onChange:a,disabled:l})}function us({value:t,onChange:a,placeholder:l,label:n}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zt,{label:n,id:"gblocks-max-height",value:t,placeholder:l,onChange:a}))}function gs({attributes:t,setAttributes:a,computedStyles:n}){const{id:o,blockName:s,supports:{sizingPanel:c}}=(0,l.useContext)(yt),u=fi(),g=(0,l.useRef)(null),d=ki(t,s),[b]=ne(t,a),{dispatchControlGlobalStyle:m,styleSources:f,hasGlobalStyle:k,contentWasUpdated:v}=X(n,{width:!1,height:!1,minWidth:!1,minHeight:!1,maxWidth:!1,maxHeight:!1},d,b),{useGlobalMaxWidth:y=!1,useInnerContainer:w=!1,isGrid:C=!1,sizing:_}=t;function x(e){return _&&_[hi(e,{attributes:t,deviceType:u},!0)]?_[hi(e,{attributes:t,deviceType:u},!0)]:""}function S(e,t){return(0,h.applyFilters)("generateblocks.editor.control.label",e,t,f,m,v)}const T={width:S((0,i.__)("Width","generateblocks"),{width:x("width")}),height:S((0,i.__)("Height","generateblocks"),{height:x("height")}),minWidth:S((0,i.__)("Min Width","generateblocks"),{minWidth:x("minWidth")}),minHeight:S((0,i.__)("Min Height","generateblocks"),{minHeight:x("minHeight")}),maxWidth:S((0,i.__)("Max Width","generateblocks"),{maxWidth:x("maxWidth")}),maxHeight:S((0,i.__)("Max Height","generateblocks"),{maxHeight:x("maxHeight")})};return(0,e.createElement)(Ct,{title:(0,i.__)("Sizing","generateblocks"),initialOpen:!1,icon:p("sizing"),className:"gblocks-panel-label",id:`${o}Sizing`,ref:g,hasGlobalStyle:k},(0,e.createElement)("div",{className:"gblocks-sizing-fields"},c.width&&(0,e.createElement)(is,{label:T.width,value:x("width"),placeholder:E("width",t.sizing,u),onChange:e=>{a({sizing:{[hi("width",{attributes:t,deviceType:u},!0)]:e}})}}),c.height&&(0,e.createElement)(ss,{label:T.height,value:x("height"),placeholder:E("height",t.sizing,u),onChange:e=>{a({sizing:{[hi("height",{attributes:t,deviceType:u},!0)]:e}})}}),c.minWidth&&(0,e.createElement)(cs,{label:T.minWidth,value:x("minWidth"),placeholder:E("minWidth",t.sizing,u),disabled:C,onChange:e=>{a({sizing:{[hi("minWidth",{attributes:t,deviceType:u},!0)]:e}})}}),c.minHeight&&(0,e.createElement)(rs,{label:T.minHeight,value:x("minHeight"),placeholder:E("minHeight",t.sizing,u),onChange:e=>{a({sizing:{[hi("minHeight",{attributes:t,deviceType:u},!0)]:e}})}}),c.maxWidth&&(0,e.createElement)(os,{label:T.maxWidth,value:x("maxWidth"),placeholder:E("maxWidth",t.sizing,u),overrideValue:y?generateBlocksInfo.globalContainerWidth:null,disabled:w||C||y&&"Desktop"===u,onChange:e=>{a({sizing:{[hi("maxWidth",{attributes:t,deviceType:u},!0)]:e}})},overrideAction:()=>!c.useGlobalMaxWidth||w||C||"Desktop"!==u||x("maxWidth")?null:(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Use global max-width","generateblocks")},(0,e.createElement)(r.Button,{icon:p("globe"),variant:y?"primary":"",onClick:()=>{a({useGlobalMaxWidth:!y})}}))}),c.maxHeight&&(0,e.createElement)(us,{label:T.maxHeight,value:x("maxHeight"),placeholder:E("maxHeight",t.sizing,u),onChange:e=>{a({sizing:{[hi("maxHeight",{attributes:t,deviceType:u},!0)]:e}})}})))}function ds({attributes:a,setAttributes:r,children:i}){const o=fi(),{supports:{responsiveTabs:s,settingsPanel:c,layout:u,typography:g,spacing:d,borders:p,colors:b,backgroundPanel:h,shapesPanel:m,icon:f,sizingPanel:k}}=(0,l.useContext)(yt),v=function(){const{getSelectedBlockClientId:e}=(0,t.useSelect)((e=>e("core/block-editor")),[]),a=e(),[n,r]=(0,l.useState)(null);return(0,l.useLayoutEffect)((()=>{var e;if(!a)return;const t=(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument||document).querySelector(".editor-styles-wrapper");r(null!==(e=t.querySelector(`[data-block="${a}"]:not(.gb-is-root-block)`))&&void 0!==e?e:null)}),[a]),n}(),y=v?v?.dataset.block:0,[w,C]=(0,l.useState)({});return(0,l.useEffect)((()=>{v&&C(getComputedStyle(v))}),[y]),(0,e.createElement)(n.InspectorControls,null,s&&(0,e.createElement)(Gt,null),c.enabled&&!!i&&(0,e.createElement)(xo,null,i),u.enabled&&(0,e.createElement)(ns,{attributes:a,setAttributes:r,computedStyles:w}),k.enabled&&(0,e.createElement)(gs,{attributes:a,setAttributes:r,computedStyles:w}),d.enabled&&(0,e.createElement)(Li,{attributes:a,setAttributes:r,computedStyles:w}),p.enabled&&(0,e.createElement)(uo,{attributes:a,setAttributes:r,computedStyles:w}),g.enabled&&!a.removeText&&(0,e.createElement)(vi,{attributes:a,setAttributes:r,computedStyles:w}),b.enabled&&"Desktop"===o&&(0,e.createElement)(po,{attributes:a,setAttributes:r,computedStyles:w}),h.enabled&&"Desktop"===o&&(0,e.createElement)(Ho,{attributes:a,setAttributes:r,computedStyles:w}),m.enabled&&("Desktop"===o||a?.shapeDividers.length>0)&&(0,e.createElement)(Po,{attributes:a,setAttributes:r,computedStyles:w}),f.enabled&&("Desktop"===o||!!a.icon)&&(0,e.createElement)(Eo,{attributes:a,setAttributes:r,computedStyles:w}))}(0,h.addFilter)("generateblocks.editor.settingsPanel","generateblocks/grid/gridItemSettings",(function(t,a){const{attributes:n,setAttributes:o,name:s}=a,{isGrid:c,sizing:u}=n;if("generateblocks/container"!==s||!c)return t;const g=fi();return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(r.BaseControl,{id:"gridItemWidth",label:(0,i.__)("Grid Item Width (%)","generateblocks"),help:(0,i.__)("More values can be set in the Sizing panel.","generateblocks")},(0,e.createElement)(r.ButtonGroup,{id:"gridItemWidth",className:"gblocks-flex-button-group"},Object.values([{value:"25%",label:"25"},{value:"33.33%",label:"33"},{value:"50%",label:"50"},{value:"66.66%",label:"66"},{value:"75%",label:"75"},{value:"100%",label:"100"}]).map(((t,a)=>{return(0,e.createElement)(l.Fragment,{key:"gridItemWidth"+a},(0,e.createElement)(r.Button,{isPrimary:t.value===(i="width",u&&u[hi(i,{attributes:n,deviceType:g},!0)]?u[hi(i,{attributes:n,deviceType:g},!0)]:""),onClick:()=>o({sizing:{[hi("width",{attributes:n,deviceType:g},!0)]:t.value}})},t.label));var i})))),t)}));var ps=(0,G.compose)(ot,kt,(t=>a=>{const{attributes:l}=a,n=l.isQueryLoop?Object.assign({},a,{defaultLayout:"100",templateLock:"all",InnerBlocksRenderer:zt}):a;return(0,e.createElement)(t,{...n})}),ie,(t=>a=>{const{attributes:n,setAttributes:r}=a;return(0,l.useEffect)((()=>{const e=he({attributes:n,oldDefaults:{v1_4_0:generateBlocksLegacyDefaults.v_1_4_0.gridContainer}});(0,H.isEmpty)(e)||r(e)}),[]),(0,e.createElement)(t,{...a})}))((a=>{const{clientId:r,attributes:i,setAttributes:o,InnerBlocksRenderer:d=n.InnerBlocks,LayoutSelector:p=u,defaultLayout:m=!1,context:f}=a,[k,v]=(0,l.useState)(!1),y=fi(),w=U(r),{insertBlocks:C}=(0,t.useDispatch)("core/block-editor");(0,l.useEffect)((()=>{o({columns:w})}),[w]),(0,l.useEffect)((()=>{const e=m||k;if(!i.isQueryLoop&&e){const t=c(e,i.uniqueId),l=[];t.forEach((e=>{l.push((0,g.createBlock)("generateblocks/container",e))})),setTimeout((()=>{C(l,void 0,a.clientId,!1),v(!1)}),50)}}),[k,m,i.uniqueId,a.clientId,i.isQueryLoop]);let _={className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${i.uniqueId}`]:!0,[`${i.className}`]:void 0!==i.className,"gb-post-template":!!i.isQueryLoop,[`gb-post-template-${i.uniqueId}`]:!!i.isQueryLoop}),id:i.anchor?i.anchor:null};_=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",_,"generateblocks/grid",i);const E=(0,n.useBlockProps)(_);return(0,e.createElement)(l.Fragment,null,!i.isQueryLoop&&(i.columns>0||k)&&(0,e.createElement)(b,{uniqueId:i.uniqueId,clientId:a.clientId}),(0,e.createElement)(ds,{attributes:i,setAttributes:o},(0,h.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:y}),(0,e.createElement)(S,{attributes:i,setAttributes:o,deviceType:y})),(0,e.createElement)(B,{anchor:i.anchor,blockLabel:i.blockLabel,setAttributes:o}),(0,e.createElement)(j,{...a,deviceType:y}),(0,e.createElement)("div",{...E},i.isQueryLoop||i.columns>0||k?(0,e.createElement)(d,{templateLock:i.templateLock,allowedBlocks:["generateblocks/container"],renderAppender:!1,clientId:r,uniqueId:i.uniqueId,attributes:i,context:f}):(0,e.createElement)(p,{uniqueId:i.uniqueId,onClick:v,isDisabled:i?.isBlockPreview})))})),bs={uniqueId:{type:"string",default:""},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},blockVersion:{type:"number"},isQueryLoop:{type:"boolean",default:!1},useLegacyRowGap:{type:"boolean",default:!1},blockLabel:{type:"string",default:""},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const hs=[{attributes:Object.assign({},vt(bs,ht,generateBlocksDefaults.gridContainer)),supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save({attributes:t}){const{uniqueId:a,elementId:l,cssClasses:r}=t;let i={id:l||void 0,className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${a}`]:!0,[`${r}`]:""!==r})};return i=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",i,"generateblocks/grid",t),(0,e.createElement)("div",{...i},(0,e.createElement)(n.InnerBlocks.Content,null))}}];var ms=hs;const fs=vt(bs,ht,generateBlocksDefaults.gridContainer);(0,g.registerBlockType)("generateblocks/grid",{apiVersion:2,title:(0,i.__)("Grid","generateblocks"),description:(0,i.__)("Create advanced layouts with flexible grids.","generateblocks"),icon:p("grid"),category:"generateblocks",keywords:[(0,i.__)("grid"),(0,i.__)("column"),(0,i.__)("generate")],attributes:fs,supports:{className:!1,html:!1},edit:ps,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:ms,__experimentalLabel:(e,{context:t})=>{const a=e?.metadata?.name||e?.blockLabel;return"list-view"===t&&a?a:(0,i.__)("Grid","generateblocks")}});var ks=Object.assign({},bs,{uniqueId:{type:"string",default:""},inheritQuery:{type:"boolean",default:!1},query:{type:"object",default:{}},blockLabel:{type:"string",default:""}});const vs=function(e,t,a){const l={};return e.reduce(((e,n)=>{const r=n[t]||a;if(Object.keys(l).includes(r))e[l[r]].options.push(n);else{const t=e.push({label:r,options:[n]});l[r]=t-1}return e}),[])};var ys=t=>(0,e.createElement)(di,{id:"gblocks-select-query-parameters",label:(0,i.__)("Select query parameter","generateblocks"),placeholder:(0,i.__)("Select query parameter","generateblocks"),isSearchable:!0,pageSize:20,...t,menuPlacement:"top",options:vs(t.options,"group","Other")}),ws=t=>(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},(0,e.createElement)(r.Button,{isPrimary:!0,text:(0,i.__)("Add Parameter","generateblocks"),...t})),Cs=(0,h.applyFilters)("generateblocks.editor.query-loop.query-parameters",[{id:"post_type",type:"postTypeSelect",default:"post",label:(0,i.__)("Post type","generateblocks"),description:(0,i.__)("Retrieves posts by post types.","generateblocks"),group:(0,i.__)("Post type","generateblocks"),isSticky:!0},{id:"per_page",type:"number",default:10,label:(0,i.__)("Posts per page","generateblocks"),description:(0,i.__)("Number of post to show per page.","generateblocks"),group:(0,i.__)("Pagination","generateblocks"),isSticky:!0},{id:"page",type:"number",default:1,label:(0,i.__)("Page","generateblocks"),description:(0,i.__)("Display posts from page.","generateblocks"),group:(0,i.__)("Pagination","generateblocks")},{id:"offset",type:"number",default:void 0,label:(0,i.__)("Offset","generateblocks"),description:(0,i.__)("Offset the result set by a specific number of items.","generateblocks"),group:(0,i.__)("Pagination","generateblocks")},{id:"search",type:"text",default:"",label:(0,i.__)("Search","generateblocks"),description:(0,i.__)("Show posts based on a keyword search.","generateblocks"),group:(0,i.__)("Search","generateblocks")},{id:"order",type:"select",default:"desc",selectOptions:[{value:"desc",label:"DESC"},{value:"asc",label:"ASC"}],label:(0,i.__)("Order","generateblocks"),description:(0,i.__)("Designates the ascending or descending order of the ‘orderby‘ parameter.","generateblocks"),group:(0,i.__)("Order & Order by","generateblocks")},{id:"orderby",type:"select",default:"date",selectOptions:[{value:"id",label:"Id"},{value:"title",label:"Title"},{value:"slug",label:"Slug"},{value:"author",label:"Author"},{value:"date",label:"Date"},{value:"modified",label:"Last modified date"},{value:"parent",label:"Parent id"},{value:"menu_order",label:"Menu order"}],label:(0,i.__)("Order by","generateblocks"),description:(0,i.__)("Sort retrieved posts by parameter.","generateblocks"),group:(0,i.__)("Order & Order by","generateblocks")},{id:"author",type:"authorsSelect",default:[],dependencies:{filterName:"generateblocks.editor.query-loop.author"},label:(0,i.__)("Authors","generateblocks"),description:(0,i.__)("Show posts from authors. Search by name or ID.","generateblocks"),group:(0,i.__)("Author","generateblocks")},{id:"author_exclude",type:"authorsSelect",default:[],dependencies:{filterName:"generateblocks.editor.query-loop.author-exclude"},label:(0,i.__)("Exclude authors","generateblocks"),description:(0,i.__)("Exclude posts from authors. Search by name or ID.","generateblocks"),group:(0,i.__)("Author","generateblocks")},{id:"tax_query",type:"taxonomySelect",default:[],label:(0,i.__)("Taxonomies","generateblocks"),description:(0,i.__)("Show posts from taxonomies. Search by name or ID.","generateblocks"),group:(0,i.__)("Taxonomy","generateblocks"),isRepeatable:!0,repeatableDefaultValue:{taxonomy:"",terms:[],rest:"",includeChildren:!0}},{id:"tax_query_exclude",type:"taxonomySelect",default:[],label:(0,i.__)("Exclude taxonomies","generateblocks"),description:(0,i.__)("Exclude posts from taxonomies. Search by name or ID.","generateblocks"),group:(0,i.__)("Taxonomy","generateblocks"),isRepeatable:!0,repeatableDefaultValue:{taxonomy:"",terms:[],rest:"",includeChildren:!0}},{id:"status",type:"multiSelect",default:[],selectOptions:[{value:"publish",label:(0,i.__)("Publish","generateblocks")},{value:"pending",label:(0,i.__)("Pending","generateblocks")},{value:"draft",label:(0,i.__)("Draft","generateblocks")},{value:"auto-draft",label:(0,i.__)("Auto draft","generateblocks")},{value:"future",label:(0,i.__)("Future","generateblocks")},{value:"private",label:(0,i.__)("Private","generateblocks")},{value:"inherit",label:(0,i.__)("Inherit","generateblocks")},{value:"trash",label:(0,i.__)("Trash","generateblocks")},{value:"any",label:(0,i.__)("Any","generateblocks")}],label:(0,i.__)("Post status","generateblocks"),description:(0,i.__)("Show posts by post status.","generateblocks"),group:(0,i.__)("Status","generateblocks")},{id:"parent",type:"postsSelect",default:[],dependencies:{postType:"post_type",filterName:"generateblocks.editor.query-loop.include-parent"},label:(0,i.__)("Parent","generateblocks"),description:(0,i.__)("Show posts from parents. Search by name or ID.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"parent_exclude",type:"postsSelect",default:[],dependencies:{postType:"post_type",filterName:"generateblocks.editor.query-loop.exclude-parent"},label:(0,i.__)("Parent exclude","generateblocks"),description:(0,i.__)("Do not show posts from parents. Search by name or ID.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"include",type:"postsSelect",default:[],dependencies:{postType:"post_type"},label:(0,i.__)("Include posts","generateblocks"),description:(0,i.__)("Limit result set to specific posts. Search by name or ID.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"exclude",type:"postsSelect",default:[],dependencies:{postType:"post_type",filterName:"generateblocks.editor.query-loop.exclude-posts-select"},label:(0,i.__)("Exclude posts","generateblocks"),description:(0,i.__)("Ensure result set excludes specific posts. Search by name or ID.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"stickyPosts",type:"select",default:"include",selectOptions:[{value:"include",label:"Include"},{value:"exclude",label:"Exclude"},{value:"ignore",label:"Ignore"},{value:"only",label:"Only"}],label:(0,i.__)("Sticky posts","generateblocks"),description:(0,i.__)("Configure how sticky posts should show in the query.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"after",type:"dateTimePicker",default:"",label:(0,i.__)("After","generateblocks"),description:(0,i.__)("Limit response to posts published after a given date.","generateblocks"),group:(0,i.__)("Date","generateblocks")},{id:"before",type:"dateTimePicker",default:"",label:(0,i.__)("Before","generateblocks"),description:(0,i.__)("Limit response to posts published before a given date.","generateblocks"),group:(0,i.__)("Date","generateblocks")}]),_s=({postType:a,onChange:n,value:r,help:o})=>{const s=(0,t.useSelect)((e=>{const{getPostTypes:t}=e(Z.store);return t({per_page:-1})||[]}),[]),c=(0,l.useMemo)((()=>{const e=s.filter((e=>e.viewable&&"attachment"!==e.slug));return(0,h.applyFilters)("generateblocks.editor.query-loop.enabled-post-types",e,s)}),[s]),u=(0,l.useMemo)((()=>c.reduce(((e,t)=>(e.push({value:t.slug,label:t.name}),e)),[])),[c]),g=u.filter((e=>e.value===a||e.value===r));return(0,e.createElement)(di,{id:"gblocks-select-post-type",label:(0,i.__)("Select post type","generateblocks"),help:o,placeholder:(0,i.__)("Select post type","generateblocks"),options:u,value:g,onChange:n,isLoading:0===u.length})},Es=t=>{const{options:a,value:l}=t;return(0,e.createElement)(di,{...t,id:"gblocks-simple-select",value:a.filter((e=>e.value===l))})};function xs(e,t){return e===t}function Ss(e){return"function"==typeof e?function(){return e}:e}function Ts(t,a=800){const[n,r]=(0,l.useState)(t),[i]=function(t,a,l){var n=l&&l.equalityFn||xs,r=function(t){var a=(0,e.useState)(Ss(t)),l=a[0],n=a[1],r=(0,e.useCallback)((function(e){return n(Ss(e))}),[]);return[l,r]}(t),i=r[0],o=r[1],s=Mt((0,e.useCallback)((function(e){return o(e)}),[o]),a,l),c=(0,e.useRef)(t);return n(c.current,t)||(s(t),c.current=t),[i,s]}(n,a);return[i,r,n]}function Ls(a){const{label:n,onChange:r,value:o,help:s,placeholder:c,filterName:u="generateblocks.editor.authors-select"}=a,[g,d]=Ts("",400),[p,b]=(0,l.useState)(o.length>0),m=!!g.trim()&&!g.trim().match(/\D/g),f=m?[g.replace(/\D/g,"")]:void 0,{records:k,isLoading:v}=function(e={}){const{records:a,setRecords:n,query:r,setQuery:i,isLoading:o,setIsLoading:s}=Y({query:e});(0,l.useEffect)((()=>{i(e),s(!0)}),[JSON.stringify(e)]);const{records:c,isResolving:u}=function(e={}){return(0,t.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(Z.store),n=Object.assign({per_page:-1,who:"authors"},e);n.hasOwnProperty("include")&&(0,H.isUndefined)(n.include)&&delete n.include;const r=["root","user",n];return{records:a(...r)||[],isResolving:l("getEntityRecords",r)}}),[JSON.stringify(e)])}(r);return(0,l.useEffect)((()=>{s(u)}),[u]),(0,l.useEffect)((()=>{n(c),s(!1)}),[JSON.stringify(c)]),{records:a,isLoading:o}}({per_page:g?100:10,search:g&&!m?g:void 0,include:p?o:f});(0,l.useEffect)((()=>{p&&k.some((e=>o.includes(e.id)))&&b(!1)}),[JSON.stringify(k),JSON.stringify(o)]);const y=(0,l.useMemo)((()=>{const e=k.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[]);return(0,h.applyFilters)(u,e)}),[k]),w=y.filter((e=>o.includes(e.value)));return(0,e.createElement)(di,{id:"gblocks-select-author",label:n||(0,i.__)("Select authors","generateblocks"),help:s,placeholder:c||(0,i.__)("Search authors…","generateblocks"),options:y,isMulti:!0,isSearchable:!0,value:w,onChange:r,isLoading:v,onInputChange:(e,{action:t})=>{"input-change"===t&&d(e)}})}function Ms(a){const{taxonomy:n,label:r,onChange:o,value:s=[],help:c,placeholder:u,filterName:g="generateblocks.editor.taxonomies-select"}=a,[d,p]=(0,l.useState)(s.length>0),[b,m]=Ts("",500),f=!!b.trim()&&!b.trim().match(/\D/g),k=f?[b.replace(/\D/g,"")]:void 0,{records:v,isLoading:y}=function(e,a={}){const{records:n,setRecords:r,query:i,setQuery:o,isLoading:s,setIsLoading:c,reset:u}=Y({query:a});(0,l.useEffect)((()=>{u()}),[e]),(0,l.useEffect)((()=>{o(a)}),[JSON.stringify(a)]);const{records:g,isResolving:d}=function(e,a={}){return(0,t.useSelect)((t=>{const{getEntityRecords:l,isResolving:n}=t(Z.store),r=Object.assign({per_page:-1},a);r.hasOwnProperty("include")&&(0,H.isUndefined)(r.include)&&delete r.include;const i=["taxonomy",e,r];return{records:l(...i)||[],isResolving:n("getEntityRecords",i)}}),[e,JSON.stringify(a)])}(e,i);return(0,l.useEffect)((()=>{c(d)}),[d]),(0,l.useEffect)((()=>{r(g)}),[JSON.stringify(g)]),{records:n,isLoading:s}}(n,{per_page:b?100:10,search:b&&!f?b:void 0,include:d?s:k});(0,l.useEffect)((()=>{d&&v.some((e=>s.includes(e.id)))&&p(!1)}),[JSON.stringify(v),JSON.stringify(s)]);const w=(0,l.useMemo)((()=>{const e=v.reduce(((e,t)=>(e.push({value:t.id,label:"#"+t.id+": "+t.name}),e)),[]);return(0,h.applyFilters)(g,e)}),[JSON.stringify(v)]),C=w.filter((e=>s.includes(e.value)));return(0,e.createElement)(di,{id:"gblocks-select-author",label:r||(0,i.__)("Select terms","generateblocks"),help:c,placeholder:u||(0,i.__)("Search authors…","generateblocks"),options:w,isMulti:!0,isSearchable:!0,value:C,onChange:o,isLoading:y,onInputChange:(e,{action:t})=>{"input-change"===t&&m(e)}})}function Bs(t){return(0,e.createElement)(Ms,{...t,taxonomy:"category"})}function Is(t){return(0,e.createElement)(Ms,{...t,taxonomy:"post_tag"})}function Os({id:t,onClick:a}){return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Delete parameter","generateblocks-pro")},(0,e.createElement)(r.Button,{className:"gblocks-remove-parameter",onClick:()=>{window.confirm((0,i.__)("This will permanently delete this parameter.","generateblocks"))&&a(t)},icon:p("trash")}))}function As(t){const{label:a,placeholder:n,value:o,onChange:s,help:c}=t,[u,g]=(0,l.useState)(o.taxonomy),[d,p]=(0,l.useState)(o.terms),[b,h]=(0,l.useState)(!1!==o.includeChildren),m=q(),f=(0,l.useMemo)((()=>{const e=m.filter((e=>e.slug===u));return!!e[0]&&e[0].hierarchical}),[JSON.stringify(m),u]);(0,l.useEffect)((()=>{o.taxonomy!==u&&g(o.taxonomy),JSON.stringify(o.terms)!==JSON.stringify(d)&&p(o.terms)}),[o]),(0,l.useEffect)((()=>{if(u){const e=m.filter((e=>e.slug===u)),t=e[0]?e[0].rest_base:void 0,a=!!e[0]&&e[0].hierarchical;s({taxonomy:u,terms:d,rest:t,includeChildren:a?b:void 0})}}),[u,JSON.stringify(d),b]);const k=(0,l.useMemo)((()=>m.filter((e=>"nav_menu"!==e.slug)).map((e=>({value:e.slug,label:e.name})))),[JSON.stringify(m)]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Es,{wrapperStyles:{marginBottom:"8px"},label:a,placeholder:n||(0,i.__)("Select taxonomy","generateblocks"),options:k,value:u,onChange:e=>{g(e.value),p([])}}),u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ms,{taxonomy:u,value:d,filterName:"generateblocks.editor.taxonomy-parameter-control."+t.id,placeholder:n||(0,i.__)("Search terms…","generateblocks"),onChange:e=>{const t=e.reduce(((e,t)=>(e.push(t.value),e)),[]);p(t)},help:0===d.length?(0,i.__)("You must select at least one term. Search by name or ID.","generateblocks"):c}),f&&(0,e.createElement)(r.ToggleControl,{checked:b,label:(0,i.__)("Include child terms","generateblocks"),onChange:h})))}function Rs(a){const{postType:n,label:r,value:o,placeholder:s,filterName:c="generateblocks.editor.post-type-record-select",...u}=a,[g,d]=(0,l.useState)(o.length>0),[p,b]=Ts("",500),m=!!p.trim()&&!p.trim().match(/\D/g),f=m?[p.replace(/\D/g,"")]:void 0,{records:k,isLoading:v}=function(e,a={}){const{records:n,setRecords:r,query:i,setQuery:o,isLoading:s,setIsLoading:c,reset:u}=Y({query:a});(0,l.useEffect)((()=>{u()}),[e]),(0,l.useEffect)((()=>{o(a)}),[JSON.stringify(a)]);const{records:g,isResolving:d}=function(e,a={}){return(0,t.useSelect)((t=>{const{getEntityRecords:l,isResolving:n}=t(Z.store),r=Object.assign({per_page:-1},a),i=(0,h.applyFilters)("generateblocks.editor.hooks.usePostTypeRecordsQueryArgs",r);i.hasOwnProperty("include")&&(0,H.isUndefined)(i.include)&&delete i.include;const o=["postType",e,i];return{records:l(...o)||[],isResolving:n("getEntityRecords",o)}}),[e,JSON.stringify(a)])}(e,i);return(0,l.useEffect)((()=>{c(d)}),[d]),(0,l.useEffect)((()=>{r(g)}),[JSON.stringify(g)]),{records:n,isLoading:s}}(n,{per_page:p?100:10,search:p&&!m?p:void 0,include:g?o:f});(0,l.useEffect)((()=>{g&&k.some((e=>o.includes(e.id)))&&d(!1)}),[JSON.stringify(k),JSON.stringify(o)]);const y=(0,l.useMemo)((()=>{const e=k?.map((e=>{const t=e.title&&e.title.raw?e.title.raw:e.slug;return{value:e.id,label:`#${e.id}: ${t}`}}));return(0,h.applyFilters)(c,e)}),[k,n]),w=y.filter((e=>o.includes(e.value)));return(0,e.createElement)(di,{id:"gblocks-select-posts",label:r||(0,i.__)("Select post","generateblocks"),placeholder:s||(0,i.__)("Search posts…","generateblocks"),value:w,isLoading:v,isSearchable:!0,isMulti:!0,...u,options:y,onInputChange:(e,{action:t})=>{"input-change"===t&&b(e)}})}function zs({id:t,label:a,help:l,value:n,onChange:i}){const o=n?new Date(n):new Date;return(0,e.createElement)("div",{style:{marginBottom:"24px"}},(0,e.createElement)(r.BaseControl,{id:t,label:a,help:l},(0,e.createElement)(r.DateTimePicker,{currentDate:o,onChange:i,is12Hour:!0})))}function Ds(t){const[a,n,i]=Ts(t?.value,800);return(0,l.useEffect)((()=>{t.onChange(a)}),[a]),(0,e.createElement)(r.TextControl,{...t,value:i,onChange:n})}var Ns=function(t){const{options:a,value:l}=t;return(0,e.createElement)(di,{...t,isMulti:!0,id:"gblocks-simple-multi-select",value:a.filter((e=>l.includes(e.value)))})};function Fs(t){const{id:a,type:l,label:n,description:o,selectOptions:s=[],isSticky:c,value:u,default:g,onChange:d,onClickRemove:p,dependencies:b,placeholder:h}=t,m=(e=>{switch(e){case"text":case"number":return Ds;case"postTypeSelect":return _s;case"select":return Es;case"multiSelect":return Ns;case"authorsSelect":return Ls;case"categoriesSelect":return Bs;case"tagsSelect":return Is;case"taxonomySelect":return As;case"postsSelect":return Rs;case"dateTimePicker":return zs;case"toggleControl":return r.ToggleControl}})(l);let f=o;"per_page"===a&&("-1"===u||parseInt(u)>parseInt(generateBlocksInfo.queryLoopEditorPostsCap))&&(f+=" "+(0,i.sprintf)("Editor only: A maximum of %s posts can be previewed in the editor.",generateBlocksInfo.queryLoopEditorPostsCap));const k=!g||(0,H.isArray)(g)&&(0,H.isObject)(g)?void 0:g,v=h||k;return(0,e.createElement)("div",{className:"gblocks-parameter-component"},(0,e.createElement)(m,{id:a,type:l,label:n,help:f,options:s,value:u,placeholder:v,onChange:d,...b}),!c&&(0,e.createElement)(Os,{id:a,onClick:p}))}var Hs=({parameter:t,query:a,setParameter:l,removeParameter:n})=>{const{dependencies:r={}}=t,i=a[t.id],o=Object.keys(r).reduce(((e,t)=>(e[t]=a[r[t]]||r[t],e)),{});function s(a,l,n){return(0,e.createElement)(Fs,{...t,value:a,onChange:l,onClickRemove:n,dependencies:o})}return t.isRepeatable?(0,e.createElement)(e.Fragment,null,Array.isArray(i)&&i.map(((e,a)=>s(e,(e=>{i[a]=e,l(t.id,[...i])}),(e=>{i.splice(a,1),0===i.length?n(e):l(t.id,[...i])}))))):s(i,(function(e){l(t.id,((e,t)=>{switch(e){case"post_type":case"order":case"orderby":case"stickyPosts":return t.value;case"status":case"author":case"author_exclude":case"include":case"exclude":case"parent":case"parent_exclude":return t.reduce(((e,t)=>(e.push(t.value),e)),[]);default:return t}})(t.id,e))}),n)},Ps=({query:t,setParameter:a,removeParameter:l})=>{const n=(e=>Cs.filter((e=>e.isSticky)).concat(Object.keys(e).map((e=>Cs.find((t=>e===t.id&&!t.isSticky)))).filter(Boolean)))(t);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},n&&n.map((n=>(0,e.createElement)(Hs,{key:n.id,parameter:n,query:t,setParameter:a,removeParameter:l})))))};const Vs="add_query_parameter",js="remove_query_parameter",Gs=function(e,t){switch(t.type){case Vs:return Object.assign({},e,t.payload);case js:const{[t.payload]:a,...l}=e;return l;default:throw new Error(`queryReducer does not support action type "${t.type}".`)}};var Ws=({attributes:t,setAttributes:a})=>{const{queryState:o,insertParameters:s,setParameter:c,removeParameter:u}=((e={})=>{const[t,a]=(0,l.useReducer)(Gs,e);return{queryState:t,setParameter:(e,t)=>a({type:Vs,payload:{[e]:t}}),insertParameters:e=>a({type:Vs,payload:e}),removeParameter:e=>a({type:js,payload:e})}})(t.query),[g,d]=(0,l.useState)(!1);(0,l.useEffect)((()=>{ct(t.query)&&s({post_type:"post",per_page:10})}),[]),(0,l.useEffect)((()=>{a({query:o})}),[JSON.stringify(o),!(0,H.isEqual)(t.query,o)]);const b=(0,l.useMemo)((()=>Cs.map((e=>(e.isDisabled=!e.isRepeatable&&Object.keys(o).includes(e.id),e)))),[o]);return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(Ct,{id:"queryLoopControls",title:(0,i.__)("Query Parameters","generateblocks"),initialOpen:!0,icon:p("query-params"),className:"gblocks-panel-label"},(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inherit query from template","generateblocks"),help:(0,i.__)("Toggle to use the global query context that is set with the current template, such as an archive or search.","generateblocks"),checked:!!t.inheritQuery,onChange:e=>a({inheritQuery:e})}),!t.inheritQuery&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ps,{query:o,setParameter:c,removeParameter:u}),!g&&(0,e.createElement)(ws,{onClick:()=>{d(!0)}}),g&&(0,e.createElement)(ys,{options:b,onChange:e=>{if(e.isRepeatable&&Array.isArray(e.default)&&e.repeatableDefaultValue){const t=o[e.id]?o[e.id]:e.default;c(e.id,[...t,e.repeatableDefaultValue])}else c(e.id,e.default);d(!1)}}))))},Us=({clientId:a})=>{const{insertBlocks:l}=(0,t.useDispatch)("core/block-editor"),{getBlock:o}=(0,t.useSelect)((e=>e("core/block-editor")),[]),{selectBlock:s}=(0,t.useDispatch)("core/block-editor"),c=o(a),u=!!c&&c?.innerBlocks[0],d=!!c&&c?.innerBlocks[0]?.innerBlocks[0],b={useDynamicData:!0,isPagination:!0},h=["generateblocks/container",{marginTop:"20",variantRole:"button-container",display:"flex",isPagination:!0},[["generateblocks/button",Object.assign({},b,generateBlocksStyling.button,{text:(0,i.__)("Previous","generateblocks"),dynamicLinkType:"pagination-prev",dynamicLinkRemoveIfEmpty:!0})],["generateblocks/button",Object.assign({},b,generateBlocksStyling.button,{text:(0,i.__)("1 2 … 10","generateblocks"),dynamicContentType:"pagination-numbers"})],["generateblocks/button",Object.assign({},b,generateBlocksStyling.button,{text:(0,i.__)("Next","generateblocks"),dynamicLinkType:"pagination-next",dynamicLinkRemoveIfEmpty:!0})]]];return(0,e.createElement)(n.BlockControls,null,(!!u||!!d)&&(0,e.createElement)(r.ToolbarGroup,null,!!u&&(0,e.createElement)(r.ToolbarButton,{icon:p("grid"),label:(0,i.__)("Open Grid","generateblocks"),onClick:()=>{s(u.clientId)},showTooltip:!0}),!!d&&(0,e.createElement)(r.ToolbarButton,{icon:p("container"),label:(0,i.__)("Open Container","generateblocks"),onClick:()=>{s(d.clientId)},showTooltip:!0})),(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{icon:p("add-pagination"),label:(0,i.__)("Add Pagination","generateblocks"),onClick:()=>{l((0,g.createBlocksFromInnerBlocksTemplate)([h]),void 0,a)},showTooltip:!0})))},Zs=(e,t=[])=>Object.keys(e).filter((e=>t.includes(e))).reduce(((t,a)=>Object.assign({},t,{[a]:e[a]})),{}),qs=[{name:"title-date-excerpt",title:(0,i.__)("Title, date, & excerpt","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M15 33h171v11H15zM15 51h79v5H15zM15 71h171v5H15zM15 82h171v5H15zM15 116h171v11H15zM15 134h79v5H15zM15 154h171v5H15zM15 165h171v5H15z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:40,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,sizing:{width:"100%"},lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"title-date",title:(0,i.__)("Title & date","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M14 30h171v11H14zM14 48h79v5H14zM14 88h171v11H14zM14 106h79v5H14zM14 146h171v11H14zM14 164h79v5H14z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,sizing:{width:"100%"},lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:20,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"0",dynamicContentType:"post-date",fontSize:14}]]]]]]},{name:"two-columns",title:(0,i.__)("Two columns","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M14 28h78v11H14zM14 46h36.035v5H14zM14 66h78v5H14zM14 77h78v5H14zM108 28h78v11h-78zM108 46h36.035v5H108zM108 66h78v5h-78zM108 77h78v5h-78zM14 118h78v11H14zM14 136h36.035v5H14zM14 156h78v5H14zM14 167h78v5H14zM108 118h78v11h-78zM108 136h36.035v5H108zM108 156h78v5h-78zM108 167h78v5h-78z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,horizontalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,sizing:{width:"50%",widthMobile:"100%"},backgroundColor:"#fafafa",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:30,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"30",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"two-columns-feature-image",title:(0,i.__)("Two columns & featured image","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M110 57h78v11h-78V57ZM110 16h78v35h-78V16ZM110 76h78v5h-78zM110 87h55v5h-55zM110 149h78v11h-78v-11ZM110 108h78v35h-78v-35ZM110 168h78v5h-78zM110 179h55v5h-55zM15 149h78v11H15v-11ZM15 108h78v35H15v-35ZM15 168h78v5H15zM15 179h55v5H15zM15 57h78v11H15V57ZM15 16h78v35H15V16ZM15 76h78v5H15zM15 87h55v5H15z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,horizontalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,sizing:{width:"50%",widthMobile:"100%"},backgroundColor:"#fafafa",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",lock:{remove:!0,move:!0}},[["generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",marginBottom:"30"}],["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:30,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"30",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"blank",title:(0,i.__)("Start blank","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,sizing:{width:"100%"},lock:{remove:!0,move:!0}}]]]]}],$s=({clientId:a,isDisabled:l})=>{if(l)return!1;const{replaceInnerBlocks:n}=(0,t.useDispatch)("core/block-editor");return(0,e.createElement)(r.Placeholder,{label:(0,i.__)("Query Loop","generateblocks"),icon:p("query-loop"),instructions:(0,i.__)("Choose a layout to start with.","generateblocks"),className:"gblocks-query-loop-layout-selector"},(0,e.createElement)("div",{className:"gblocks-query-loop-layout-selector__content"},qs.map((t=>(0,e.createElement)(r.Button,{key:`template-${t.name}`,onClick:()=>{n(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}},t.icon,(0,e.createElement)("p",null,t.title))))))};function Ks({blockLabel:t,setAttributes:a}){return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(M,{value:t,onChange:e=>a({blockLabel:e})}))}(0,g.registerBlockType)("generateblocks/query-loop",{apiVersion:2,title:(0,i.__)("Query Loop","generateblocks"),description:(0,i.__)("Build a list of posts from any post type using advanced query parameters.","generateblocks"),icon:p("query-loop"),category:"generateblocks",keywords:[(0,i.__)("query"),(0,i.__)("loop"),(0,i.__)("generate")],attributes:ks,supports:{className:!1,customClassName:!1},providesContext:{"generateblocks/query":"query","generateblocks/queryId":"uniqueId","generateblocks/inheritQuery":"inheritQuery"},edit:ie((function(a){const{attributes:l,clientId:r,setAttributes:i}=a,o=(0,n.useBlockProps)(),s=(0,t.useSelect)((e=>!!e(n.store).getBlocks(r).length),[r]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{...o},s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Us,{clientId:r}),(0,e.createElement)(Ws,{attributes:Zs(l,Object.keys(ks)),setAttributes:i,clientId:r}),(0,e.createElement)(Ks,{blockLabel:l.blockLabel,setAttributes:i}),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/query":l.query}},(0,e.createElement)(n.InnerBlocks,{renderAppender:!1}))):(0,e.createElement)($s,{clientId:r})))})),save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),__experimentalLabel:(e,{context:t})=>{const a=e?.metadata?.name||e?.blockLabel;return"list-view"===t&&a?a:(0,i.__)("Query Loop","generateblocks")}});const Js=(0,G.createHigherOrderComponent)((a=>o=>{if("generateblocks/container"!==o.name)return(0,e.createElement)(a,{...o});const{insertBlocks:s}=(0,t.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:c,getBlockRootClientId:u,getBlocksByClientId:d}=(0,t.useSelect)((e=>e("core/block-editor")),[]),{attributes:b,clientId:h}=o,{isGrid:m,isQueryLoopItem:f}=b;let k=!1;return k="function"==typeof c?c(h,"generateblocks/grid",!0)[0]:u(h),(0,e.createElement)(l.Fragment,null,!f&&m&&k&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:p("addContainer"),label:(0,i.__)("Duplicate Grid Item","generateblocks"),onClick:()=>{const e=d(h)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});s(t,void 0,k)},showTooltip:!0}))),(0,e.createElement)(a,{...o}))}),"withBlockControls");function Ys({cell:t,isActive:a,isCompact:l,onClick:n}){return(0,e.createElement)("div",{tabIndex:l?null:"0",className:s()("gb-matrix-cell",{active:a}),onClick:n?()=>n(t):void 0,onKeyDown:e=>{!n||"Enter"!==e.key&&" "!==e.key||n(t)},role:l?"presentation":"button"},(0,e.createElement)("span",{className:"gb-matrix-cell-state"}))}function Qs({cell:t,label:a,isActive:l,isCompact:n,onClick:i}){return(0,e.createElement)(e.Fragment,null,n&&(0,e.createElement)(Ys,{cell:t,isActive:l,isCompact:n,onClick:i}),!n&&(0,e.createElement)(r.Tooltip,{text:a},(0,e.createElement)("div",null,(0,e.createElement)(Ys,{cell:t,isActive:l,isCompact:n,onClick:i}))))}(0,h.addFilter)("editor.BlockEdit","generateblocks/container-block-controls",Js);const Xs={topLeft:(0,i.__)("Top left","generateblocks"),topCenter:(0,i.__)("Top center","generateblocks"),topRight:(0,i.__)("Top right","generateblocks"),centerLeft:(0,i.__)("Center left","generateblocks"),centerCenter:(0,i.__)("Center","generateblocks"),centerRight:(0,i.__)("Center right","generateblocks"),bottomLeft:(0,i.__)("Bottom left","generateblocks"),bottomCenter:(0,i.__)("Bottom center","generateblocks"),bottomRight:(0,i.__)("Bottom right","generateblocks")};function ec({onChange:t,activeCell:a="centerCenter",isCompact:l=!1,isOpen:n=!1,direction:r=""}){const i=s()("gb-matrix",{"is-compact":l,"is-open":n,"is-row":"row"===r||"row-reverse"===r,"is-column":"column"===r||"column-reverse"===r});return(0,e.createElement)("div",{className:i},["topLeft","topCenter","topRight","centerLeft","centerCenter","centerRight","bottomLeft","bottomCenter","bottomRight"].map((n=>(0,e.createElement)(Qs,{key:n,label:Xs[n],isCompact:l,isActive:a===n,onClick:t?()=>t(n):void 0}))))}var tc=function({activeCell:t,onChange:a,direction:l,children:n}){return(0,e.createElement)(r.Dropdown,{className:"gb-alignment-matrix",contentClassName:"gb-alignment-matrix-content",popoverProps:{variant:"toolbar",placement:"bottom-center"},focusOnMount:!0,renderToggle:({isOpen:a,onToggle:n})=>(0,e.createElement)(r.ToolbarButton,{onClick:n,"aria-haspopup":"true","aria-expanded":a,onKeyDown:e=>{a||40!==e.keyCode||(e.preventDefault(),n())},label:(0,i.__)("Change content position","generateblocks"),icon:(0,e.createElement)(ec,{isCompact:!0,isOpen:a,direction:l,activeCell:t}),showTooltip:!0,disabled:!1}),renderContent:()=>(0,e.createElement)("div",{className:"gb-alignment-matrix-content"},(0,e.createElement)("div",{className:"gb-alignment-matrix-content-buttons"},n),(0,e.createElement)(ec,{activeCell:t,onChange:a}))})},ac={row:{topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topCenter:{alignItems:"flex-start",justifyContent:"center"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"},centerLeft:{alignItems:"center",justifyContent:"flex-start"},centerCenter:{alignItems:"center",justifyContent:"center"},centerRight:{alignItems:"center",justifyContent:"flex-end"},bottomLeft:{alignItems:"flex-end",justifyContent:"flex-start"},bottomCenter:{alignItems:"flex-end",justifyContent:"center"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"}},"row-reverse":{topLeft:{alignItems:"flex-start",justifyContent:"flex-end"},topCenter:{alignItems:"flex-start",justifyContent:"center"},topRight:{alignItems:"flex-start",justifyContent:"flex-start"},centerLeft:{alignItems:"center",justifyContent:"flex-end"},centerCenter:{alignItems:"center",justifyContent:"center"},centerRight:{alignItems:"center",justifyContent:"flex-start"},bottomLeft:{alignItems:"flex-end",justifyContent:"flex-end"},bottomCenter:{alignItems:"flex-end",justifyContent:"center"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-start"}},column:{topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topCenter:{alignItems:"center",justifyContent:"flex-start"},topRight:{alignItems:"flex-end",justifyContent:"flex-start"},centerLeft:{alignItems:"flex-start",justifyContent:"center"},centerCenter:{alignItems:"center",justifyContent:"center"},centerRight:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomCenter:{alignItems:"center",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"}},"column-reverse":{topLeft:{alignItems:"flex-start",justifyContent:"flex-end"},topCenter:{alignItems:"center",justifyContent:"flex-end"},topRight:{alignItems:"flex-end",justifyContent:"flex-end"},centerLeft:{alignItems:"flex-start",justifyContent:"center"},centerCenter:{alignItems:"center",justifyContent:"center"},centerRight:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-start"},bottomCenter:{alignItems:"center",justifyContent:"flex-start"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-start"}}},lc=function({attributes:a,setAttributes:n}){const[o,s]=(0,l.useState)(""),[c,u]=ne(a,n),{getBlock:g}=(0,t.useSelect)((e=>e("core/block-editor")),[]),{clientId:d}=(0,l.useContext)(yt),{display:b,flexDirection:h,alignItems:m,justifyContent:f}=c,k=ac[h||"column"],v=""===b||"block"===b,y="flex"===b,w="row"===h||"row-reverse"===h,C="column"===h||"column-reverse"===h;(0,l.useEffect)((()=>{if(o){const e=function(e){if(!Array.isArray(e))return[];const t=e.map((e=>e.name));return t.length?[...new Set(t)]:[]}(g(d)?.innerBlocks),t=1===e.length&&"generateblocks/button"===e[0]?"row":"column";u({...k[o],display:"flex",flexDirection:h||t})}}),[o,h]);const _=(0,l.useMemo)((()=>Object.entries(k).reduce(((e,[t,a])=>a.alignItems===m&&a.justifyContent===f?t:e),"")),[h,m,f]);return(0,e.createElement)(tc,{activeCell:_,onChange:s,direction:y&&h},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.Button,{isPressed:v,label:(0,i.__)("Default","generateblocks"),onClick:()=>{s(""),u({display:"",flexDirection:"",alignItems:"",justifyContent:""})}},p("container-default")),(0,e.createElement)(r.Button,{label:(0,i.__)("Arrange blocks vertically","generateblocks"),isPressed:y&&C,onClick:()=>{u({display:"flex",flexDirection:"column"})}},p("container-flex-column")),(0,e.createElement)(r.Button,{label:(0,i.__)("Arrange blocks horizontally","generateblocks"),onClick:()=>{u({display:"flex",flexDirection:"row"})},isPressed:y&&w},p("container-flex-row"))))},nc=({attributes:t,setAttributes:a})=>{const l=fi(),{display:r,displayTablet:i,displayMobile:o,flexDirection:s,flexDirectionTablet:c,flexDirectionMobile:u,alignItems:g,alignItemsTablet:d,alignItemsMobile:p,justifyContent:b,justifyContentTablet:h,justifyContentMobile:m}=t;return(0,e.createElement)(n.BlockControls,{group:"block"},(0,e.createElement)(n.AlignmentToolbar,{value:hi("textAlign",{attributes:t.typography,deviceType:l}),onChange:e=>{a({typography:{[hi("textAlign",{attributes:t.typography,deviceType:l},!0)]:e}})},alignmentControls:Qt.alignments}),(0,e.createElement)(lc,{attributes:{display:r,displayTablet:i,displayMobile:o,flexDirection:s,flexDirectionTablet:c,flexDirectionMobile:u,alignItems:g,alignItemsTablet:d,alignItemsMobile:p,justifyContent:b,justifyContentTablet:h,justifyContentMobile:m},setAttributes:a}))};function rc(t){const{onChange:a,tagName:l}=t,n=fi(),o=(0,h.applyFilters)("generateblocks.editor.containerTagNames",[{label:"div",value:"div"},{label:"article",value:"article"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"aside",value:"aside"}],{...t,deviceType:n});return(0,e.createElement)(e.Fragment,null,"Desktop"===n&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:l,options:o,onChange:a}))}var ic=t=>{const{attributes:a,setAttributes:l,filterTagName:r}=t;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(L,{...t}),(0,e.createElement)(rc,{filterTagName:r,tagName:a.tagName,onChange:e=>l({tagName:r(e)})}),!a.isQueryLoopItem&&(0,e.createElement)(M,{value:a.blockLabel,onChange:e=>l({blockLabel:e})}))},oc=({fontFamily:t,googleFont:a,googleFontVariants:n,isBlockPreview:r})=>{if(r)return null;if(!t)return null;if(generateBlocksInfo.disableGoogleFonts)return null;const i=n?`:${n}`:"",o="https://fonts.googleapis.com/css?family="+t.replace(/ /g,"+")+i;return(0,e.createElement)(l.Fragment,null,t&&a&&(0,e.createElement)("link",{rel:"stylesheet",href:o}))},sc=({source:t,onChange:a,help:l,dynamicContentType:n})=>{const r=(e=>{const t=[{value:"current-post",label:"caption"===e?(0,i.__)("Current image","generateblocks"):(0,i.__)("Current post","generateblocks")},{value:"post-type",label:(0,i.__)("Post type","generateblocks")}];return(0,h.applyFilters)("generateblocks.editor.dynamicContent.sourceOptions",t)})(n),o=r.filter((e=>e.value===t));return(0,e.createElement)(di,{id:"gblocks-select-source-control",label:(0,i.__)("Data source","generateblocks"),help:l,placeholder:(0,i.__)("Select source","generateblocks"),options:r,value:o,onChange:a})},cc=({dynamicSource:t,postType:a,postId:l,setAttributes:n,dynamicContentType:r})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sc,{source:t,onChange:e=>{n({dynamicSource:e.value,postId:"",postType:"post"})},dynamicContentType:r}),"post-type"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_s,{postType:a,onChange:e=>{n({postType:e.value,postId:""})}}),(0,e.createElement)(Rs,{postId:l,postType:a,value:l?[l]:[],id:"gblocks-select-post",label:(0,i.__)("Select source post","generateblocks"),help:(0,i.__)("Search by name or ID.","generateblocks"),onChange:e=>{n({postId:e.value})},isMulti:!1}))),uc=({dynamicContentType:t,setAttributes:a,name:l,isCaption:n})=>{const r=((e,t)=>{let a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"post-title",label:(0,i.__)("Title","generateblocks")},{value:"post-excerpt",label:(0,i.__)("Excerpt","generateblocks")},{value:"post-date",label:(0,i.__)("Post date","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")},{value:"comments-number",label:(0,i.__)("Comments number","generateblocks")},{value:"terms",label:(0,i.__)("List of terms","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-meta",label:(0,i.__)("Author meta","generateblocks")},{value:"author-email",label:(0,i.__)("Email","generateblocks")},{value:"author-name",label:(0,i.__)("Name","generateblocks")},{value:"author-nickname",label:(0,i.__)("Nickname","generateblocks")},{value:"author-first-name",label:(0,i.__)("First name","generateblocks")},{value:"author-last-name",label:(0,i.__)("Last name","generateblocks")}]}];return"generateblocks/button"===e&&a.push({label:(0,i.__)("Pagination","generateblocks"),options:[{value:"pagination-numbers",label:(0,i.__)("Pagination numbers","generateblocks")}]}),"generateblocks/container"!==e&&"generateblocks/image"!==e||(a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"featured-image",label:(0,i.__)("Featured Image","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-avatar",label:(0,i.__)("Author avatar","generateblocks")}]}]),t&&(a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Image","generateblocks"),options:[{value:"caption",label:(0,i.__)("Caption","generateblocks")},{value:"post-title",label:(0,i.__)("Title","generateblocks")},{value:"alt-text",label:(0,i.__)("Alt text","generateblocks")},{value:"image-description",label:(0,i.__)("Description","generateblocks")}]}]),(0,h.applyFilters)("generateblocks.editor.dynamicContent.sourceTypes",a,e)})(l,n),o=r.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===t));let s=(0,i.__)("Content source","generateblocks");return"generateblocks/container"===l&&(s=(0,i.__)("Background image source","generateblocks")),"generateblocks/image"===l&&(s=(0,i.__)("Image source","generateblocks")),(0,e.createElement)(di,{id:"gblocks-select-content-type-control",label:s,placeholder:s,options:r,value:o,onChange:e=>{a({dynamicContentType:e.value,metaFieldName:""}),"comments-number"===e.value?a({noCommentsText:(0,i.__)("No comments","generateblocks"),singleCommentText:(0,i.__)("1 comment","generateblocks"),
// translators: Number of comments.
multipleCommentsText:(0,i.__)("% comments","generateblocks")}):a({noCommentsText:"",singleCommentText:"",multipleCommentsText:""}),"author-avatar"===e.value?a({width:"50px",height:"50px"}):a({width:"",height:""})}})};function gc(e,a,l=[],n={}){return(0,t.useSelect)((t=>{const{getUser:r,isResolving:i,getEntityRecord:o,getEntityRecords:s,hasFinishedResolution:c}=t(Z.store),u=(0,h.applyFilters)("generateblocks.editor.dynamicContent.post-request-params",["postType",e,a]);let g=o(...u);const d=!c("getEntityRecord",u)||i("getEntityRecord",u);let p=!1;if(l.includes("author")&&!d&&g){const e=(0,h.applyFilters)("generateblocks.editor.dynamicContent.author-request-params",[g.author]),t=r(...e);p=!c("getUser",e)||i("getUser",e),!p&&t&&(g=Object.assign({},g,{author:t}))}let b=!1;if(l.includes("comments")&&!d&&g){const e=(0,h.applyFilters)("generateblocks.editor.dynamicContent.comments-request-params",["root","comment",{post:a}]),t=s(...e);b=!c("getEntityRecords",e)||i("getEntityRecords",e),!b&&t&&(g=Object.assign({},g,{comments:t}))}let m=!1;if(l.includes("terms")&&!d&&g){const e=(0,h.applyFilters)("generateblocks.editor.dynamicContent.terms-request-params",["taxonomy",n.taxonomy,{post:a}]),t=s(...e);m=!c("getEntityRecords",e)||i("getEntityRecords",e),!m&&t&&(g=Object.assign({},g,{terms:t}))}return{record:(0,h.applyFilters)("generateblocks.editor.dynamicContent.postRecord",g),isLoading:d||p||b||m}}),[e,a,l.join(),JSON.stringify(n)])}function dc(t){const{isActive:a=!1,metaFieldKey:l="metaFieldName",postType:n,postId:r,metaFieldName:o,setAttributes:s}=t,{record:c,isLoading:u}=gc(n,r),g=o?{value:o,label:o}:void 0;let d=g?[g]:[];c&&c.meta&&(d=d.concat(Object.keys(c.meta).filter((e=>e!==o)).map((e=>({value:e,label:e})))));const p=(0,h.applyFilters)("generateblocks.editor.dynamicContent.PostMetaControl.afterComponent",void 0,t,c);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(di,{id:"gblocks-select-post-meta-control",label:(0,i.__)("Post meta field","generateblocks"),help:(0,i.__)("Live preview is only available to meta exposed to the REST API.","generateblocks"),placeholder:(0,i.__)("Choose or add meta key","generateblocks"),options:d,value:g,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,isLoading:u,onChange:e=>{s({[l]:e?.value||void 0})}}),p))}function pc(t){const{isActive:a=!1,metaFieldKey:l="metaFieldName",postType:n,postId:r,metaFieldName:o,setAttributes:s}=t,{record:c,isLoading:u}=gc(n,r,["author"]),g=o?{value:o,label:o}:void 0;let d=g?[g]:[];c&&c.author&&c.author.meta&&(d=d.concat(Object.keys(c.author.meta).filter((e=>e!==o)).map((e=>({value:e,label:e})))));const p=(0,h.applyFilters)("generateblocks.editor.dynamicContent.AuthorMetaControl.afterComponent",void 0,t,c);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(di,{id:"gblocks-select-author-meta-control",label:(0,i.__)("Author meta field","generateblocks"),help:(0,i.__)("Live preview is only available to meta exposed to the REST API.","generateblocks"),placeholder:(0,i.__)("Choose or add meta key","generateblocks"),options:d,value:g,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,isLoading:u,onChange:e=>{s({[l]:e?.value||void 0})}}),p))}dc.displayName="PostMetaControl";const bc=(0,h.applyFilters)("generateblocks.editor.dynamicContent.linkPrependOptions",[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Email","generateblocks"),value:"mailto:"},{label:(0,i.__)("Telephone","generateblocks"),value:"tel:"}]);var hc=({linkType:t,linkMetaFieldName:a,linkMetaFieldType:l,dynamicContentType:n,setAttributes:o,isPagination:s,isActive:c,name:u,dynamicLinkRemoveIfEmpty:g,postType:d,postId:p,attributes:b})=>{const m=((e,t=!1,a)=>{let l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"single-post",label:(0,i.__)("Single post","generateblocks")},{value:"comments-area",label:(0,i.__)("Comments area","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-archives",label:(0,i.__)("Author archives","generateblocks")},{value:"author-meta",label:(0,i.__)("Author meta","generateblocks")},{value:"author-email",label:(0,i.__)("Author email","generateblocks")}]}];return"terms"===e&&(l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Terms","generateblocks"),options:[{value:"term-archives",label:(0,i.__)("Term archives","generateblocks")}]}]),t&&(l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Pagination","generateblocks"),options:[{value:"pagination-prev",label:(0,i.__)("Previous page","generateblocks")},{value:"pagination-next",label:(0,i.__)("Next page","generateblocks")}]}],"pagination-numbers"===e&&(l=[])),"generateblocks/image"===a&&l.splice(1,0,{label:(0,i.__)("Image","generateblocks"),options:[{value:"single-image",label:(0,i.__)("Single image","generateblocks")}]}),(0,h.applyFilters)("generateblocks.editor.dynamicContent.linkTypes",l,e)})(n,s,u);if(0===m.length)return null;const f=m.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===t)),k="post-meta"===t||"author-meta"===t;return(0,e.createElement)(e.Fragment,null,c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(di,{id:"gblocks-select-link-type-control",label:(0,i.__)("Link source","generateblocks"),placeholder:(0,i.__)("Link source","generateblocks"),options:m,value:f,onChange:e=>o({dynamicLinkType:e.value})}),(0,e.createElement)(dc,{isActive:k&&"post-meta"===t,postType:d,postId:p,metaFieldKey:"linkMetaFieldName",metaFieldName:a,setAttributes:o,attributes:b}),(0,e.createElement)(pc,{isActive:k&&"author-meta"===t,postType:d,postId:p,metaFieldKey:"linkMetaFieldName",metaFieldName:a,setAttributes:o,attributes:b}),("author-email"===t||k&&!!a)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Link type","generateblocks"),value:l,onChange:e=>o({linkMetaFieldType:e}),options:bc}),!!t&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove block if link is empty","generateblocks"),checked:!!g,onChange:e=>o({dynamicLinkRemoveIfEmpty:e})})))};function mc(t){const{isActive:a=!1,dateType:l,dateReplacePublished:n,setAttributes:o}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Date type","generateblocks"),value:l,options:[{value:"published",label:(0,i.__)("Published","generateblocks")},{value:"updated",label:(0,i.__)("Updated","generateblocks")}],onChange:e=>o({dateType:e})}),"published"===l&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Replace with updated date","generateblocks"),checked:!!n,onChange:e=>o({dateReplacePublished:e})})))}function fc(t){const{isActive:a,noCommentsText:l,singleCommentText:n,multipleCommentsText:o,setAttributes:s}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.TextControl,{label:(0,i.__)("No comments text","generateblocks"),value:l,onChange:e=>s({noCommentsText:e})}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Single comment text","generateblocks"),value:n,onChange:e=>s({singleCommentText:e})}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Multiple comments text","generateblocks"),value:o,onChange:e=>s({multipleCommentsText:e})})))}function kc(t){const{isActive:a,postType:n,termTaxonomy:o,termSeparator:s,setAttributes:c,name:u}=t,g=q(),d=(0,l.useMemo)((()=>g.filter((e=>e.types.includes(n))).map((e=>({value:e.slug,label:e.name})))),[g,n]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Es,{label:(0,i.__)("Taxonomy","generateblocks"),options:d,value:o,onChange:e=>{c({termTaxonomy:e.value})}}),"generateblocks/button"!==u&&(0,e.createElement)(r.TextControl,{label:(0,i.__)("Term separator","generateblocks"),value:s,onChange:e=>c({termSeparator:e})})))}function vc(t){const{isActive:a,useDefaultMoreLink:l,customMoreLinkText:n,setAttributes:o}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{...t,label:(0,i.__)("Excerpt length","generateblocks"),attributeName:"excerptLength",min:"0"}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use default more link","generateblocks"),checked:!!l,onChange:e=>o({useDefaultMoreLink:e})}),!l&&(0,e.createElement)(Ds,{label:(0,i.__)("Custom more link text","generateblocks"),value:n,onChange:e=>o({customMoreLinkText:e})})))}var yc=({context:t,attributes:a,setAttributes:o,name:s})=>{const{postType:c,postId:u,useDynamicData:g,dynamicSource:d,dynamicContentType:b,dateType:h,dateReplacePublished:m,metaFieldName:f,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,termTaxonomy:w,termSeparator:C,dynamicLinkType:_,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,isQueryLoopItem:T,isCaption:L,excerptLength:M,useDefaultMoreLink:B,customMoreLinkText:I,dynamicLinkRemoveIfEmpty:O}=a,A="current-post"===d?t.postType:c,R="current-post"===d?t.postId:u,z=void 0!==t["generateblocks/queryId"];return(0,l.useEffect)((()=>{"generateblocks/container"===s&&g&&""!==b&&(T||z)&&o({bgImageInline:!0})}),[b,T]),(0,l.useEffect)((()=>{"generateblocks/headline"===s&&L&&g&&(t["generateblocks/mediaId"]?o({postId:t["generateblocks/mediaId"],postType:"attachment",dynamicSource:"current-post",dynamicContentType:b||"caption"}):o({postId:"",postType:"post",dynamicSource:"current-post",dynamicContentType:b||"caption"}))}),[L,t["generateblocks/mediaId"],g,b]),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(Ct,{id:"dynamicDataControls",title:(0,i.__)("Dynamic Data","generateblocks"),initialOpen:!1,icon:p("dynamic"),className:"gblocks-panel-label"},(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Enable Dynamic Data","generateblocks"),checked:g,onChange:e=>{o({useDynamicData:e})}}),g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cc,{dynamicSource:d,postType:c,postId:u,setAttributes:o,dynamicContentType:b}),(0,e.createElement)(uc,{dynamicContentType:b,setAttributes:o,name:s,isCaption:L}),(0,e.createElement)(mc,{isActive:"post-date"===b,dateType:h,dateReplacePublished:m,setAttributes:o}),(0,e.createElement)(dc,{isActive:"post-meta"===b,postType:A,postId:R,metaFieldName:f,setAttributes:o,attributes:a}),(0,e.createElement)(pc,{isActive:"author-meta"===b,postType:A,postId:R,metaFieldName:f,setAttributes:o,attributes:a}),(0,e.createElement)(fc,{isActive:"comments-number"===b,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,setAttributes:o}),(0,e.createElement)(kc,{isActive:"terms"===b,postType:A,termTaxonomy:w,termSeparator:C,setAttributes:o,name:s}),(0,e.createElement)(vc,{isActive:"post-excerpt"===b,excerptLength:M,useDefaultMoreLink:B,customMoreLinkText:I,setAttributes:o,attributes:a}),(0,e.createElement)(hc,{isActive:"generateblocks/container"!==s||"generateblocks/container"===s&&void 0!==a.url,postType:A,postId:R,attributes:a,linkType:_,dynamicLinkRemoveIfEmpty:O,dynamicContentType:b,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,setAttributes:o,name:s}))))};function wc({name:e,clientId:a,align:r,children:i}){const{getBlockRootClientId:o}=(0,t.useSelect)((e=>e("core/block-editor")),[]),c=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]),u=e.toString().replace("/","-"),g={className:s()({"wp-block":!0,"gb-is-root-block":!0,[`gb-root-block-${u}`]:!0,[`align${r}`]:c}),"data-align":r&&!c?r:null,"data-block":a};return o(a)?i:(0,l.createElement)("div",g,i)}var Cc=({icon:t,hasIcon:a=!0,direction:n="left",children:r,hideChildren:i=!1,showWrapper:o=!1,wrapperClassname:s=""})=>{const c=t?(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:t}}):void 0;return(0,e.createElement)(l.Fragment,null,a&&"left"===n&&c,i||(o?(0,e.createElement)("span",{className:s},r):r),a&&"right"===n&&c)};function _c({tagName:e,htmlAttrs:t,children:a}){return(0,l.createElement)(e,t,a)}function Ec(a){const{name:r,clientId:o,attributes:c,setAttributes:u,onSplit:g,onReplace:d,InnerContent:p=n.RichText,headlineRef:b}=a,{uniqueId:m,element:f,content:k,icon:v,hasIcon:y,anchor:w,removeText:C,ariaLabel:_,dynamicContentType:E,dynamicLinkType:x}=c;let S={className:s()({"gb-headline":!0,[`gb-headline-${m}`]:!0,"gb-headline-text":!y}),id:w||null,ref:b};S=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",S,"generateblocks/headline",c);const T=(0,n.useBlockProps)(S),L=(0,h.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,a)?[]:null,M="terms"!==E&&x?"a":"span",B=(0,t.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]),I=(0,l.useMemo)((()=>B&&x?B.filter((e=>"core/link"!==e.name)).map((e=>e.name)):L),[B,L,x]);return(0,h.doAction)("generateblocks.editor.renderBlock",{...a,ref:b}),(0,e.createElement)(wc,{name:r,clientId:o},(0,e.createElement)(_c,{tagName:f,htmlAttrs:T},(0,e.createElement)(Cc,{hasIcon:y,icon:v,hideChildren:C,showWrapper:!C&&y,wrapperClassname:"gb-headline-text",ariaLabel:C&&_?_:void 0},(0,e.createElement)(p,{name:r,tagName:M,value:k,onChange:e=>u({content:e}),onSplit:g(c,o),onReplace:d,placeholder:(0,i.__)("Headline","generateblocks"),allowedFormats:I}))))}function xc(t){const{attributes:a,setAttributes:l,isSelected:r,InnerContent:o=n.RichText,context:c,name:u,buttonRef:g,clientId:d,buttonPreviewElement:p}=t,{uniqueId:b,anchor:m,text:f,target:k,relNoFollow:v,relSponsored:y,icon:w,iconLocation:C,removeText:_,ariaLabel:E,buttonType:x}=a,S=[];v&&S.push("nofollow"),k&&S.push("noopener","noreferrer"),y&&S.push("sponsored");let T={className:s()({"gb-button":!0,[`gb-button-${b}`]:!0,"gb-button-text":!w}),rel:S&&S.length>0&&"link"===x?S.join(" "):null,"aria-label":E||null,id:m||null,ref:g};T=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",T,"generateblocks/button",a);const L=(0,n.useBlockProps)(T),M=(0,h.applyFilters)("generateblocks.editor.buttonDisableFormatting",!1,t)?[]:["core/bold","core/italic","core/strikethrough"];return(0,h.doAction)("generateblocks.editor.renderBlock",{...t,ref:g}),(0,e.createElement)(wc,{name:u,clientId:d},(0,e.createElement)(_c,{tagName:p,htmlAttrs:L},(0,e.createElement)(Cc,{hasIcon:!!w,icon:w,direction:C,hideChildren:_,showWrapper:!_&&!!w,wrapperClassname:"gb-button-text"},(0,e.createElement)(o,{name:u,placeholder:(0,i.__)("Add text…","generateblocks"),value:f,onChange:e=>l({text:e}),allowedFormats:M,isSelected:r,attributes:a,context:c}))))}var Sc=(0,h.applyFilters)("generateblocks.editor.dynamicContent.attributes",{useDynamicData:{type:"boolean",default:!1},isPagination:{type:"boolean",default:!1},isCaption:{type:"boolean",default:!1},dynamicContentType:{type:"string",default:""},dynamicLinkType:{type:"string",default:""},dynamicLinkRemoveIfEmpty:{type:"boolean",default:!1},dynamicSource:{type:"string",default:"current-post"},postId:{type:"number",default:""},postType:{type:"string",default:"post"},dateType:{type:"string",default:"published"},dateReplacePublished:{type:"boolean",default:!1},metaFieldName:{type:"string",default:""},linkMetaFieldName:{type:"string",default:""},linkMetaFieldType:{type:"string",default:""},termTaxonomy:{type:"string",default:""},termSeparator:{type:"string",default:", "},noCommentsText:{type:"string",default:""},singleCommentText:{type:"string",default:""},multipleCommentsText:{type:"string",default:""},useDefaultMoreLink:{type:"boolean",default:!0},customMoreLinkText:{type:"string",default:""},excerptLength:{type:"number",default:generateBlocksInfo.excerptLength}}),Tc=window.wp.date;const Lc={"post-title":function(e){return e.title?e.title.raw||(0,i.__)("No post title.","generateblocks"):(0,i.__)("Post title not supported for this type.","generateblocks")},"post-excerpt":function(e,t){if(!e.excerpt)return(0,i.__)("Post excerpt not supported for this type.","generateblocks");const{raw:a,rendered:l,protected:n}=e?.excerpt;if(n||!a&&!l)return(0,i.__)("No post excerpt.","generateblocks");const r=e=>(new window.DOMParser).parseFromString(e,"text/html"),o=r(l),s=r(generateBlocksInfo.excerptMore),c=o.body.textContent||o.body.innerText||"";let u=s.body.textContent||s.body.innerText||"";u=u.replace("...","…");let g=a.trim()?a:c;const d=g.includes(u);return g=d?g.replace(u,""):g,g=g.split(" ").splice(0,t.excerptLength).join(" "),t.useDefaultMoreLink?d&&(g+=generateBlocksInfo.excerptMore):g+=' ... <a href="#">'+t.customMoreLinkText+"</a>",g},"post-date":function(e,t){let a=t.dateType;if("published"===a&&t.dateReplacePublished&&(a="updated"),!e.date)return(0,i.__)("No post date.","generateblocks");const l="updated"===a?e.modified:e.date;return(0,Tc.dateI18n)(t.dateFormat||"F j, Y",l,"")},"post-meta":function(e,t,a=!1){return Mc(t.metaFieldName,e.meta,a,t)},"author-meta":function(e,t){return e.author?Mc(t.metaFieldName,e.author.meta,!1,t):Bc()},"author-email":function(e){return e.author?e.author.email||(0,i.__)("No author email.","generateblocks"):Bc()},"author-name":function(e){return e.author?e.author.name||(0,i.__)("No author name.","generateblocks"):Bc()},"author-nickname":function(e){return e.author?e.author.nickname||(0,i.__)("No author nickname.","generateblocks"):Bc()},"author-first-name":function(e){return e.author?e.author.first_name||(0,i.__)("No author first name.","generateblocks"):Bc()},"author-last-name":function(e){return e.author?e.author.last_name||(0,i.__)("No author last name.","generateblocks"):Bc()},"comments-number":function(e,t){const a=Array.isArray(e.comments)?e.comments.length:0,{noCommentsText:l,singleCommentText:n,multipleCommentsText:r}=t;return 0===a?l:1===a?n:r.replace("%",String(a))},"pagination-numbers":function(){return(0,i.__)("1 … 2 3","generateblocks")},"featured-image":function(e){return e?.featured_media},terms:function(e,t){return Array.isArray(e.terms)&&e.terms.length>0?e.terms.map((e=>e.name)).join(t.termSeparator):"No terms"},"author-avatar":function(e){return{source_url:e?.author?.avatar_urls&&e?.author?.avatar_urls[96]?e?.author?.avatar_urls[96]:""}},caption:function(e){return e?.caption?.raw||(0,i.__)("Image caption","generateblocks")},"alt-text":function(e){return e?.alt_text||(0,i.__)("Image alt text","generateblocks")},"image-description":function(e){return e?.description?.raw||(0,i.__)("Image description","generateblocks")}};const Mc=(e,t,a=!1,l={})=>{if(t&&e){const n=(0,h.applyFilters)("generateblocks.editor.dynamicContent.postMetaField",t[e],l);if(P().isEmpty(n)&&!P().isNumber(n))return e;const r=a?void 0:(0,i.__)("Meta field value not supported.","generateblocks");return P().isString(n)||P().isNumber(n)?P().toString(n):r}return a?void 0:(0,i.__)("Meta value","generateblocks")};function Bc(){return(0,i.__)("Author not found.","generateblocks")}var Ic=(e,t)=>{const{postId:a,postType:l}=e;if(!l)return(0,i.__)("Post type not selected.","generateblocks");if(l&&!a)return(0,i.__)("Post source not selected.","generateblocks");const[n]=(0,Z.useEntityProp)("root","site","date_format"),{load:r,loadOptions:o}=function(e,t){const a=[];let l={};return e.startsWith("author-")&&a.push("author"),"terms"===e&&(a.push("terms"),l=Object.assign({},l,{taxonomy:t.termTaxonomy})),"comments-number"===e&&a.push("comments"),{load:a,loadOptions:l}}(e.dynamicContentType,e),{record:s,isLoading:c}=gc(l,a,r,o);if("generateblocks/image"===t&&!s)return;if(c)return(0,i.__)("Loading…","generateblocks");if(!s)return(0,i.sprintf)(
// translators: %1$s: post ID, %2$s: post type.
(0,i.__)("Post of id #%1$s and post type %2$s was not found.","generateblocks"),a,l);const u=Object.assign({},e,{dateFormat:n}),g="generateblocks/image"===t;return function(e,t,a,l=!1){const n=Lc[e];return n&&"function"==typeof n?n(t,a,l):function(e,t,a){return a?void 0:(0,i.sprintf)(
// translators: %s: Content type.
(0,i.__)("Content type %s is not supported.","generateblocks"),t.dynamicContentType)}(0,a,l)}(e.dynamicContentType,s,u,g)},Oc=({isGrid:t,uniqueId:a,children:l})=>t?(0,e.createElement)("div",{className:`gb-grid-column gb-grid-column-${a}`},l):l,Ac=({attributes:t,allShapes:a})=>{const{shapeDividers:n}=t;return(0,e.createElement)(l.Fragment,null,!!t.shapeDividers.length&&(0,e.createElement)("div",{className:"gb-shapes"},t.shapeDividers.map(((t,r)=>{const i=r+1;return(0,e.createElement)(l.Fragment,{key:r},void 0!==a[n[r].shape]&&(0,e.createElement)("div",{className:s()({"gb-shape":!0,[`gb-shape-${i}`]:!0}),dangerouslySetInnerHTML:{__html:ko(a[n[r].shape].icon)}}))}))))};class Rc extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeVerticalGap:l}=t;let n=[];return n[".gb-grid-column-"+a]=[{"margin-bottom":!!l&&"0px !important"}],n=(0,h.applyFilters)("generateblocks.editor.desktopCSS",n,this.props,"container"),(0,e.createElement)("style",null,I(n))}}function zc(e,t,a){return void 0===e[t]&&(e[t]=[]),e[t].push(a),e}function Dc(e,t,a,l=""){const{sizing:n}=a,r={width:qo("width"+l,n),height:qo("height"+l,n),"min-width":qo("minWidth"+l,n),"min-height":qo("minHeight"+l,n),"max-width":qo("maxWidth"+l,n),"max-height":qo("maxHeight"+l,n)};return a.useInnerContainer?delete r["max-width"]:a.useGlobalMaxWidth&&!l&&(r["max-width"]=generateBlocksInfo.globalContainerWidth),a.isGrid&&(delete r.width,delete r["min-width"],delete r["max-width"]),zc(e,t,r)}function Nc(e,t,a,l=""){const n={"z-index":a["zindex"+l]};return a.useInnerContainer||(n.display=a["display"+l],n["flex-direction"]=a["flexDirection"+l],n["flex-wrap"]=a["flexWrap"+l],n["align-items"]=a["alignItems"+l],n["justify-content"]=a["justifyContent"+l],n["column-gap"]=a["columnGap"+l],n["row-gap"]=a["rowGap"+l],n.order=a["order"+l],n.position=a["position"+l],n["overflow-x"]=a["overflowX"+l],n["overflow-y"]=a["overflowY"+l]),zc(e,t,n)}function Fc(e,t,a,l=""){if(!a.isGrid)return zc(e,t,{"flex-grow":a["flexGrow"+l],"flex-shrink":a["flexShrink"+l],"flex-basis":a["flexBasis"+l],order:a["order"+l]})}function Hc(e,t,a,l=""){const n={"margin-top":a["marginTop"+l],"margin-right":a["marginRight"+l],"margin-bottom":a["marginBottom"+l],"margin-left":a["marginLeft"+l],"padding-top":a["paddingTop"+l],"padding-right":a["paddingRight"+l],"padding-bottom":a["paddingBottom"+l],"padding-left":a["paddingLeft"+l]};return a.useInnerContainer&&(delete n["padding-top"],delete n["padding-right"],delete n["padding-bottom"],delete n["padding-left"]),zc(e,t,n)}function Pc(e,t,a,l=""){const n=[a.fontFamily,a.fontFamilyFallback].filter((e=>e));return zc(e,t,{"font-family":n.join(", "),"font-size":a["fontSize"+l],"line-height":a["lineHeight"+l],"letter-spacing":a["letterSpacing"+l],"font-weight":a["fontWeight"+l],"text-transform":a["textTransform"+l],"text-align":a["textAlign"+l]})}function Vc(e,t,a,l=""){return zc(e,t,{"border-top-width":a["borderTopWidth"+l],"border-right-width":a["borderRightWidth"+l],"border-bottom-width":a["borderBottomWidth"+l],"border-left-width":a["borderLeftWidth"+l],"border-top-style":a["borderTopStyle"+l],"border-right-style":a["borderRightStyle"+l],"border-bottom-style":a["borderBottomStyle"+l],"border-left-style":a["borderLeftStyle"+l],"border-top-color":a["borderTopColor"+l],"border-right-color":a["borderRightColor"+l],"border-bottom-color":a["borderBottomColor"+l],"border-left-color":a["borderLeftColor"+l],"border-top-left-radius":a["borderTopLeftRadius"+l],"border-top-right-radius":a["borderTopRightRadius"+l],"border-bottom-right-radius":a["borderBottomRightRadius"+l],"border-bottom-left-radius":a["borderBottomLeftRadius"+l]})}function jc(e,t,a,l=""){return zc(e,t,{"border-top-color":a["borderTopColor"+l],"border-right-color":a["borderRightColor"+l],"border-bottom-color":a["borderBottomColor"+l],"border-left-color":a["borderLeftColor"+l]})}class Gc extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,flexGrowTablet:n,flexShrinkTablet:r,flexBasisTablet:i,verticalAlignmentTablet:o,orderTablet:s,shapeDividers:c,bgImage:u,bgOptions:g,gridId:d,useInnerContainer:p,sizing:b}=t,{paddingTopTablet:m,paddingRightTablet:f,paddingBottomTablet:k,paddingLeftTablet:v}=t.spacing,{borderTopLeftRadiusTablet:y,borderTopRightRadiusTablet:w,borderBottomRightRadiusTablet:C,borderBottomLeftRadiusTablet:_}=t.borders;let E=[];return Pc(E,".editor-styles-wrapper .gb-container-"+a,t.typography,"Tablet"),Hc(E,".editor-styles-wrapper .gb-container-"+a,{...t.spacing,useInnerContainer:p},"Tablet"),Vc(E,".editor-styles-wrapper .gb-container-"+a,t.borders,"Tablet"),Dc(E,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),Nc(E,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),Fc(E,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),p&&(E[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":m,"padding-right":f,"padding-bottom":k,"padding-left":v,width:!(!qo("minHeightTablet",b)||l)&&"100%"}],qo("minHeightTablet",b)&&!l&&E[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==o?o:null}),l&&"inherit"!==o&&E[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":o})),l&&(E[[".gb-post-template-"+d+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+a].join(",")]=[{width:qo("widthTablet",b),"flex-grow":n,"flex-shrink":r,"flex-basis":i,order:s}]),u&&"pseudo-element"===g.selector&&(E[".gb-container-"+a+":before"]=[{"border-top-left-radius":y,"border-top-right-radius":w,"border-bottom-right-radius":C,"border-bottom-left-radius":_}]),c.length&&c.forEach(((e,t)=>{E[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:A(c[t].heightTablet,"px"),width:A(c[t].widthTablet,"%")}]})),E=(0,h.applyFilters)("generateblocks.editor.tabletCSS",E,this.props,"container"),(0,e.createElement)("style",null,I(E))}}class Wc extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeVerticalGapTablet:l}=t;let n=[];return l&&(n[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),n=(0,h.applyFilters)("generateblocks.editor.tabletOnlyCSS",n,this.props,"container"),(0,e.createElement)("style",null,I(n))}}class Uc extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,flexGrowMobile:n,flexShrinkMobile:r,flexBasisMobile:i,verticalAlignmentMobile:o,removeVerticalGapMobile:s,orderMobile:c,shapeDividers:u,bgImage:g,bgOptions:d,gridId:p,useInnerContainer:b,sizing:m}=t,{paddingTopMobile:f,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y}=t.spacing,{borderTopLeftRadiusMobile:w,borderTopRightRadiusMobile:C,borderBottomRightRadiusMobile:_,borderBottomLeftRadiusMobile:E}=t.borders;let x=[];return Pc(x,".editor-styles-wrapper .gb-container-"+a,t.typography,"Mobile"),Hc(x,".editor-styles-wrapper .gb-container-"+a,{...t.spacing,useInnerContainer:b},"Mobile"),Vc(x,".editor-styles-wrapper .gb-container-"+a,t.borders,"Mobile"),Dc(x,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),Nc(x,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),Fc(x,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),b&&(x[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":f,"padding-right":k,"padding-bottom":v,"padding-left":y,width:!(!qo("minHeightMobile",m)||l)&&"100%"}],"inherit"!==o&&qo("minHeightMobile",m)&&!l&&x[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":o}),l&&"inherit"!==o&&x[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":o})),l&&(x[[".gb-post-template-"+p+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+a].join(",")]=[{width:qo("widthMobile",m),"flex-grow":n,"flex-shrink":r,"flex-basis":i,order:c}]),s&&(x[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),g&&"pseudo-element"===d.selector&&(x[".gb-container-"+a+":before"]=[{"border-top-left-radius":w,"border-top-right-radius":C,"border-bottom-right-radius":_,"border-bottom-left-radius":E}]),u.length&&u.forEach(((e,t)=>{x[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:A(u[t].heightMobile,"px"),width:A(u[t].widthMobile,"%")}]})),g&&"fixed"===d.attachment&&("element"===d.selector&&x[".editor-styles-wrapper .gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===d.selector&&(x[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),x=(0,h.applyFilters)("generateblocks.editor.mobileCSS",x,this.props,"container"),(0,e.createElement)("style",null,I(x))}}function Zc(e,t){return O(e)&&t?parseFloat(e)+t:e}function qc(e,t,a,l,n){if(""!==e||""!==t||""!==a||""!==l)return e=0!=e&&""!==e?Zc(e,n)+" ":"0 ",t=0!=t&&""!==t?Zc(t,n)+" ":"0 ",a=0!=a&&""!==a?Zc(a,n)+" ":"0 ",t===(l=0!=l&&""!==l?Zc(l,n)+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var $c=e=>{const{attributes:a,featuredImage:l}=e,{dynamicImage:n,useDynamicData:r,dynamicContentType:i,bgImageSize:o}=a;return(0,t.useSelect)((e=>{const{getMedia:t}=e(Z.store);return"featured-image"===i&&l||!isNaN(parseInt(n))?t("featured-image"===i&&l?l:parseInt(n),{context:"view"}):n}),[r,n,o,l,i])};function Kc(e,t){return"object"==typeof e?e?.media_details?.sizes?.[t]?.source_url||e?.source_url:e}function Jc(e){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",e.attributes,e),{bgImage:a,useDynamicData:l,dynamicContentType:n,bgImageSize:r}=t;let i=a?.image?.url;const o=$c(e);return l&&""!==n&&(i=Kc(o,r)),(0,h.applyFilters)("generateblocks.editor.bgImageURL",i,e)}function Yc(e,t){const a=(0,h.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{backgroundColor:l,backgroundColorOpacity:n,bgImage:r,bgImageInline:i,gradient:o,bgOptions:s,gradientColorOne:c,gradientColorOneOpacity:u,gradientColorTwo:g,gradientColorTwoOpacity:d,gradientColorStopOne:p,gradientColorStopTwo:b,gradientDirection:m,useDynamicData:f,dynamicContentType:k}=a;let v="";if(o){let e="",t="";c&&""!==p&&(e=" "+p+"%"),g&&""!==b&&(t=" "+b+"%"),v="linear-gradient("+m+"deg, "+Ze(c,u)+e+", "+Ze(g,d)+t+")"}if("gradient"===e)return v;let y=!1;const w=Ze(l,n);if(r||f&&""!==k){const e=Jc(t);"element"===s.selector&&(w||o)&&void 0!==s.overlay&&s.overlay?o?y=v+", url("+e+")":w&&(y="linear-gradient(0deg, "+w+", "+w+"), url("+e+")"):(y="url("+e+")",i&&"element"!==s.selector&&(y="var(--background-image)"))}return y}function Qc(t){const a=(0,h.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{clientId:l,device:n}=t,{uniqueId:r,isGrid:i,flexGrow:o,flexShrink:s,flexBasis:c,outerContainer:u,innerContainer:g,containerWidth:d,backgroundColor:p,backgroundColorOpacity:b,gradient:m,gradientSelector:f,textColor:k,linkColor:v,linkColorHover:y,bgImage:w,bgOptions:C,verticalAlignment:_,zindex:E,innerZindex:x,fontFamilyFallback:S,shapeDividers:T,gridId:L,useDynamicData:M,dynamicContentType:B,bgImageInline:O,useInnerContainer:R,sizing:z,order:D,display:N,displayTablet:F,displayMobile:H}=a,{paddingTop:P,paddingRight:V,paddingBottom:j,paddingLeft:G}=a.spacing,{borderTopLeftRadius:W,borderTopRightRadius:U,borderBottomRightRadius:Z,borderBottomLeftRadius:q}=a.borders;let $=d;$||($=generateBlocksDefaults.container.containerWidth);const K=!!w||M&&""!==B,J=Yc("image",t),Y=Yc("gradient",t),Q=".editor-styles-wrapper .gb-container-"+r;let X=[];return X[Q]=[{"background-color":Ze(p,b),color:k}],Pc(X,Q,{...a.typography,fontFamilyFallback:S}),Hc(X,Q,{...a.spacing,useInnerContainer:R}),Vc(X,Q,a.borders),Dc(X,Q,a),Nc(X,Q,a),Fc(X,Q,a),K&&"element"===C.selector&&J?X[Q].push({"background-image":O?null:J,"background-size":C.size,"background-position":C.position,"background-repeat":C.repeat,"background-attachment":C.attachment}):m&&"element"===f&&X[Q].push({"background-image":Y}),jc(X,Q+":hover",{...a.borders},"Hover"),jc(X,Q+"[data-container-is-current], "+Q+"[data-container-is-current]:hover",{...a.borders},"Current"),R&&((K&&"pseudo-element"===C.selector||E||m&&"pseudo-element"===f)&&X[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),(K&&"pseudo-element"===C.selector||m&&"pseudo-element"===f)&&(X[".editor-styles-wrapper .gb-container-"+r].push({overflow:"hidden"}),X[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}])),(K&&"pseudo-element"===C.selector||m&&"pseudo-element"===f)&&(X[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}]),X[".editor-styles-wrapper .gb-container-"+r+" h1,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h2,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h3,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h4,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h5,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h6"]=[{color:k}],K&&"pseudo-element"===C.selector&&(X[".gb-container-"+r+":before"]=[{content:'""',"background-image":J,"background-repeat":C.repeat,"background-position":C.position,"background-size":C.size,"background-attachment":C.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":qc(W,U,Z,q),"pointer-events":"none"}],void 0!==C.opacity&&1!==C.opacity&&X[".gb-container-"+r+":before"].push({opacity:C.opacity})),m&&"pseudo-element"===f&&(X[".gb-container-"+r+":after"]=[{content:'""',"background-image":Y,"z-index":"0 !important",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","pointer-events":"none"}]),X[".editor-styles-wrapper .gb-container-"+r+" a, .editor-styles-wrapper .gb-container-"+r+" a:visited"]=[{color:v}],X[".editor-styles-wrapper .gb-container-"+r+" a:hover"]=[{color:y}],R&&(qo("minHeight",z)&&!i&&X[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"row","align-items":_}),X[".gb-container-"+r+" > .gb-inside-container"]=[{padding:qc(P,V,j,G),width:!(!qo("minHeight",z)||i)&&"100%"}],(x||0===x)&&X[".gb-container-"+r+" > .gb-inside-container"].push({"z-index":x,position:"relative"}),"contained"!==g||i||X[".gb-container-"+r+" > .gb-inside-container"].push({"max-width":A($,"px"),"margin-left":"auto","margin-right":"auto"}),X["#block-"+l]=[{"max-width":"contained"===u&&!i&&A($,"px"),"margin-left":"contained"===u&&!i&&"auto","margin-right":"contained"===u&&!i&&"auto"}]),i&&(X[[".gb-post-template-"+L+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+r].join(",")]=[{width:qo("width",z),"flex-grow":o,"flex-shrink":s,"flex-basis":c,order:D}],R&&X[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"column",height:"100%","justify-content":_})),T.length&&(R&&X[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),X[".gb-container-"+r+" .block-list-appender"]=[{position:"relative","z-index":100}],T.forEach(((e,t)=>{const a=[],l=t+1;"top"===T[t].location&&a.push("scaleY(-1)"),T[t].flipHorizontally&&(a.push("scaleX(-1)"),X[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l]=[{color:Ze(T[t].color,T[t].colorOpacity),"z-index":T[t].zindex}],"top"!==T[t].location&&"bottom"!==T[t].location||X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===T[t].location&&X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===T[t].location&&X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});let n=T[t].width+"%";100===T[t].width&&(n="calc("+n+" + 1.3px)"),X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:A(T[t].height,"px"),width:n}],"top"!==T[t].location&&"bottom"!==T[t].location||X[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),Uo({device:n,display:N,displayTablet:F,displayMobile:H})&&(X[".gb-container-"+r+".block-editor-block-list__block > .block-list-appender"]=[{"margin-top":0}]),X=(0,h.applyFilters)("generateblocks.editor.mainCSS",X,t,"container"),(0,e.createElement)("style",null,I(X))}var Xc=(0,l.memo)((function(a){const l=(0,t.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=a?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Qc,{device:l,...a}),l&&(0,e.createElement)(e.Fragment,null,"Desktop"===l&&(0,e.createElement)(Rc,{...a}),("Tablet"===l||"Mobile"===l)&&(0,e.createElement)(Gc,{...a}),"Tablet"===l&&(0,e.createElement)(Wc,{...a}),"Mobile"===l&&(0,e.createElement)(Uc,{...a})))}),V),eu=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),tu=({clientId:a,isSelected:l,attributes:o})=>{const{isBlockPreview:s}=o,c=0<U(a),{selectBlock:u}=(0,t.useDispatch)("core/block-editor");let g=!1;return!s&&(l&&(g=(0,e.createElement)((function(){return(0,e.createElement)(n.Inserter,{position:"bottom right",rootClientId:a,__experimentalIsQuick:!0,renderToggle:({onToggle:t,disabled:a,isOpen:l,blockTitle:n,hasSingleBlockType:o})=>{const s=o?(0,i.sprintf)(
// translators: %s: the name of the block when there is only one
(0,i._x)("Add %s","directly add the only allowed block","generateblocks"),n):(0,i._x)("Add block","Generic label for block inserter button","generateblocks");return(0,e.createElement)(r.Tooltip,{text:s},(0,e.createElement)(r.Button,{className:"block-editor-button-block-appender",onClick:t,"aria-haspopup":o?void 0:"true","aria-expanded":o?void 0:l,disabled:a,label:s},(0,e.createElement)(r.Icon,{icon:eu})))},isAppender:!0})}),null)),c||l||(g=(0,e.createElement)(r.Button,{className:"gblocks-container-selector",onClick:()=>u(a),"aria-label":(0,i.__)("Select Container","generateblocks")},(0,e.createElement)("span",{className:"gblocks-container-selector__icon"},p("container")))),(0,h.applyFilters)("generateblocks.editor.containerAppender",g,{clientId:a,isSelected:l,attributes:o}))};function au(a){const{attributes:l,clientId:r,name:i,filterTagName:o,allShapes:c,deviceType:u,containerRef:g}=a,{uniqueId:d,className:p,anchor:b,tagName:m,backgroundColor:f,isGrid:k,bgOptions:v,bgImageInline:y,bgImage:w,align:C,isBlockPreview:_=!1,useInnerContainer:E,templateLock:x}=l,S=o((0,h.applyFilters)("generateblocks.frontend.containerTagName",m,l)),T=0<U(r),L=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]);let M=!!f||!!w||l.borderSizeTop||l.borderSizeRight||l.borderSizeBottom||l.borderSizeLeft;M=(0,h.applyFilters)("generateblocks.editor.containerHasStyling",M,a);let B={className:s()({"gb-container":!0,[`gb-container-${d}`]:!0,[`${p}`]:void 0!==p,"gb-container-empty":!T&&!_,"gb-container-visual-guides":!(T||M||a.isSelected||_),[`align${C}`]:L}),id:b||null,"data-align":C&&!L?C:null,ref:g};const I=Jc(a);if(y&&I){let e="background-image";"element"!==v.selector&&(e="--"+e),B.style={[e]:"url("+I+")"}}B=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",B,"generateblocks/container",l);const O=(0,n.useBlockProps)(B),A=(0,n.useInnerBlocksProps)(E?{className:"gb-inside-container"}:O,{templateLock:(0,h.applyFilters)("generateblocks.editor.containerTemplateLock",x||!1,a),renderAppender:()=>(0,e.createElement)(tu,{clientId:r,isSelected:a.isSelected,attributes:l})});(0,h.doAction)("generateblocks.editor.renderBlock",{...a,ref:g});const R=E?O:A;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Xc,{...a,deviceType:u}),(0,e.createElement)(wc,{name:i,clientId:r,align:C},(0,e.createElement)(Oc,{isGrid:k,uniqueId:d},(0,e.createElement)(S,{...R},(0,e.createElement)(e.Fragment,null,E?(0,e.createElement)("div",{...A},A.children):A.children,(0,e.createElement)(Ac,{attributes:l,allShapes:c}))))))}function lu(t){const{onSelectImage:a,onSelectURL:l,onUploadError:r,attributes:o,canUploadImage:s}=t,{width:c,height:u,useDynamicData:g,uniqueId:d}=o,b=(0,e.createElement)(m.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,e.createElement)(m.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));let h=generateBlocksInfo.imagePlaceholders.standard;c&&c<500&&c===u&&(h=generateBlocksInfo.imagePlaceholders.square);let f=(0,e.createElement)(n.MediaPlaceholder,{labels:{title:(0,i.__)("Image","generateblocks"),instructions:(0,i.__)("Choose an image from your media library or add one with a URL.","generateblocks")},icon:p("image"),onSelect:a,onSelectURL:g?null:l,onError:r,accept:"image/*",allowedTypes:["image"]});return s||(f=(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{className:"gb-image-"+d,src:h,alt:"",width:c||1e3,height:u||650}),b)),(0,e.createElement)("div",{className:"gblocks-image__placeholder",style:{width:!s&&c?c:null}},f)}function nu(t){const{href:a,openInNewWindow:l,relNoFollow:n,relSponsored:r,children:i,disabled:o}=t,s=[];return l&&s.push("noopener","noreferrer"),n&&s.push("nofollow"),r&&s.push("sponsored"),(0,e.createElement)(e.Fragment,null,a?(0,e.createElement)("a",{href:o?void 0:a,target:l?"_blank":void 0,rel:s&&s.length>0?s.join(" "):null},i):i)}function ru(t){const{src:a,alt:l,title:i,anchorAttributes:o,imageRef:c,setLoadedNaturalSize:u,naturalWidth:g,naturalHeight:d,attributes:p,temporaryURL:b}=t,{uniqueId:m,anchor:f,mediaId:k,dynamicImage:v,useDynamicData:y,className:w,align:C}=p,_=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${m}`]:!0,[`${w}`]:void 0!==w,[`align${C}`]:""!==C}),id:f||null,width:g,height:d,src:b||a,alt:l,title:i},"generateblocks/image",p);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(nu,{...o},(0,e.createElement)("img",{..._,ref:c,onLoad:e=>{u({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})}}),b&&(0,e.createElement)(r.Spinner,null)),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/dynamicImage":!!y&&parseInt(v),"generateblocks/mediaId":!y&&k}},(0,e.createElement)(n.InnerBlocks,{allowedBlocks:["generateblocks/headline"],renderAppender:!1})))}const iu={className:"block-editor-block-settings-menu__popover",position:"bottom right"};function ou(t=!1){const a={width:"300px","font-style":"italic","margin-bottom":t?"15px":"0"};return(0,e.createElement)("div",{style:a},(0,i.__)("This button is using a dynamic link.","generateblocks"))}function su(t){const{attributes:a,setAttributes:l,name:o}=t,{href:s,relNoFollow:c,relSponsored:u,dynamicLinkType:g,useDynamicData:d,url:p}=a,b=d&&g,m="generateblocks/button"===o?"target":"openInNewWindow",f=a[m],k="generateblocks/button"===o?p:s;return(0,e.createElement)(e.Fragment,null,d?(0,e.createElement)(ou,{marginBottom:!!g}):(0,e.createElement)(n.URLInput,{className:"gblocks-link-url",value:k,onChange:e=>l({href:e})}),(0,h.applyFilters)("generateblocks.editor.urlInputMoreOptions","",a),(!!k||b)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:f||"",onChange:e=>l({[m]:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:c||"",onChange:e=>l({relNoFollow:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:u||"",onChange:e=>l({relSponsored:e})})))}function cu(t){const{attributes:a,name:l}=t,{url:n,href:o}=a,s="generateblocks/button"===l?n:o,c=s?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks");return(0,e.createElement)(r.Dropdown,{popoverProps:iu,contentClassName:"gblocks-link-control-dropdown",renderToggle:({isOpen:t,onToggle:a})=>(0,e.createElement)(r.ToolbarButton,{icon:Ei,label:c,onClick:a,"aria-expanded":t,isPressed:!!s}),renderContent:()=>(0,e.createElement)(su,{...t})})}var uu=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})),gu=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"}));function du(a){const{attributes:l,setAttributes:o,deviceType:s}=a,{align:c}=l,{wideControlsEnabled:u=!1}=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return{wideControlsEnabled:t().alignWide}}),[]),g={left:$t,center:Kt,right:Jt,floatLeft:uu,floatRight:gu,wide:ts,full:as},d=c?g[c]:g[hi("alignment",a)]||$t,p=e=>o({[hi("alignment",a,!0)]:e!==hi("alignment",a)?e:"",align:""}),b=[{icon:$t,title:(0,i.__)("Align left","generateblocks"),onClick:()=>p("left"),isActive:"left"===hi("alignment",a)},{icon:Kt,title:(0,i.__)("Align center","generateblocks"),onClick:()=>p("center"),isActive:"center"===hi("alignment",a)},{icon:Jt,title:(0,i.__)("Align right","generateblocks"),onClick:()=>p("right"),isActive:"right"===hi("alignment",a)},{icon:uu,title:(0,i.__)("Float left","generateblocks"),onClick:()=>p("floatLeft"),isActive:"floatLeft"===hi("alignment",a)},{icon:gu,title:(0,i.__)("Float right","generateblocks"),onClick:()=>p("floatRight"),isActive:"floatRight"===hi("alignment",a)}];return u&&"Desktop"===s&&b.push({icon:ts,title:(0,i.__)("Wide width","generateblocks"),onClick:()=>o({align:"wide"!==c?"wide":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"wide"===c},{icon:as,title:(0,i.__)("Full width","generateblocks"),onClick:()=>o({align:"full"!==c?"full":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"full"===c}),(0,e.createElement)(r.ToolbarGroup,{isCollapsed:!0,icon:d,controls:b})}function pu(a){const{attributes:l,setAttributes:o,onSelectImage:s,onUploadError:c,onResetImage:u,imageUrl:d,canUploadImage:b,clientId:h,deviceType:m}=a,{mediaId:f,caption:k}=l,{insertBlocks:v}=(0,t.useDispatch)("core/block-editor"),y=U(h);return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(du,{attributes:l,setAttributes:o,deviceType:m}),0===y&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:p("caption"),label:(0,i.__)("Add Caption","generateblocks"),onClick:()=>{v((0,g.createBlock)("generateblocks/headline",{element:"figcaption",content:k,isCaption:!0}),void 0,h)},showTooltip:!0})),!!d&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(cu,{attributes:l,setAttributes:o})),!!d&&b&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(n.MediaReplaceFlow,{mediaId:f,mediaURL:d,allowedTypes:["image"],accept:"image/*",onSelect:s,onError:c},(0,e.createElement)(e.Fragment,null,d&&!f&&(0,e.createElement)("div",{className:"gb-image-replace-url"},(0,e.createElement)(r.TextControl,{label:(0,i.__)("Image URL","generateblocks"),value:d,onChange:e=>o({mediaUrl:e})})),(0,e.createElement)(r.MenuItem,{onClick:u},(0,i.__)("Reset"))))))}function bu(a){const{attributes:r,setAttributes:i,name:o,clientId:c,deviceType:u,temporaryURL:g}=a,{uniqueId:d,useDynamicData:p,dynamicContentType:b,href:m,openInNewWindow:f,relNoFollow:k,relSponsored:v,sizeSlug:y,className:w,align:C}=r,_=(0,l.useRef)(),E=(0,l.useRef)(),[{loadedNaturalWidth:x,loadedNaturalHeight:S},T]=(0,l.useState)({}),{naturalWidth:L,naturalHeight:M}=(0,l.useMemo)((()=>({naturalWidth:_.current?.naturalWidth||x||void 0,naturalHeight:_.current?.naturalHeight||S||void 0})),[x,S,_.current?.complete]),{getBlockRootClientId:B}=(0,t.useSelect)((e=>e("core/block-editor")),[]),I=B(c),O=$c(a),A=Kc(O,y),R=(0,h.applyFilters)("generateblocks.editor.dynamicImageFallback",A,a),z=p&&b?R:r.mediaUrl,D=p&&b?O?.alt_text:r.alt,N=p&&b?O?.title?.rendered:r.title,F=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]),H=(0,n.useBlockProps)({className:s()({"gb-block-image":!0,[`gb-block-image-${d}`]:!0,"is-applying":!!g,[`align${C}`]:!!I&&F}),"data-align":I&&!F?C:null,ref:E});H.className.includes(w)&&(H.className=H.className.replace(w,"").trim());const P=!p||p&&!b,V={src:z,alt:D,title:N,setAttributes:i,anchorAttributes:{href:m,openInNewWindow:f,relNoFollow:k,relSponsored:v,disabled:!0},imageRef:_,setLoadedNaturalSize:T,naturalWidth:L,naturalHeight:M,attributes:r,temporaryURL:g};return(0,h.doAction)("generateblocks.editor.renderBlock",{...a,ref:_}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pu,{...a,imageUrl:z,canUploadImage:P,deviceType:u}),(0,e.createElement)(wc,{name:o,clientId:c,align:C},(0,e.createElement)(_c,{tagName:"figure",htmlAttrs:H},g||z?(0,e.createElement)(ru,{...V}):(0,e.createElement)(lu,{...a,canUploadImage:P}))))}function hu(t){const{name:a,attributes:l,context:r}=t,i=function(e,t){return"current-post"===t.dynamicSource?(t.isCaption&&(e.postId=e["generateblocks/dynamicImage"]?e["generateblocks/dynamicImage"]:e["generateblocks/mediaId"],e.postType="attachment"),Object.assign({},t,e)):t}(r,Zs(l,Object.keys(Sc))),{dynamicContentType:o,dynamicLinkType:s,termSeparator:c}=i,u=Ic(i,a),g=function(e){return{"generateblocks/headline":Ec,"generateblocks/button":xc,"generateblocks/container":au,"generateblocks/image":bu}[e]}(a),d="generateblocks/headline"===a?l.content:l.text;let p=l.dynamicContentType?u:d;s&&"terms"===o&&"generateblocks/headline"===a&&(p=u.split(c).map(((t,a,l)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",null,t),a+1!==l.length&&c)))),"terms"===o&&"generateblocks/button"===a&&(p=u.split(c)[0]);const b=!p||"generateblocks/container"!==a&&"generateblocks/image"!==a||!function(e){try{return new URL(e),!0}catch(e){return!1}}(p)&&isNaN(parseInt(p))?void 0:p,h=Object.assign({},l,{content:"generateblocks/headline"===a?p:void 0,text:"generateblocks/button"===a?p:void 0,dynamicImage:b}),m=Object.assign({},t,{InnerContent:l.dynamicContentType?n.RichText.Content:n.RichText,attributes:h});return(0,e.createElement)(g,{...m})}var mu=t=>a=>{const{attributes:n,setAttributes:r,context:i,name:o}=a,s=n.useDynamicData&&(n.dynamicContentType||n.dynamicLinkType)?Object.assign({},a,{ContentRenderer:hu}):a;return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(t,{...s}),(0,e.createElement)(yc,{context:i,attributes:n,setAttributes:r,name:o}))};function fu({clientId:a,setAttributes:n}){const{label:o,instructions:s,templates:c}=(0,l.useContext)(yu),{replaceInnerBlocks:u,removeBlock:d,selectBlock:p}=(0,t.useDispatch)("core/block-editor");return(0,e.createElement)("div",{className:"wp-block"},(0,e.createElement)(r.Placeholder,{label:o,instructions:s,className:"gb-select-layout"},(0,e.createElement)("div",{className:"gb-templates-wrapper"},c&&c.map((t=>(0,e.createElement)(r.Button,{key:`template-${t.id}`,className:"gb-template-selector-button",onClick:()=>{u(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks)),t.attributes&&n(t.attributes),"function"==typeof t.onClick&&t.onClick(),p(a)}},t.icon,(0,e.createElement)("span",null,t.label))))),(0,e.createElement)("div",{className:"gb-select-layout__actions"},(0,e.createElement)(r.Button,{className:"gblocks-cancel-placeholder is-small",onClick:()=>d(a),variant:"secondary"},(0,i.__)("Cancel","generateblocks")))))}const ku={label:"Label",instructions:"Instructions...",templates:[]},vu=(0,l.createContext)(ku);var yu=vu;function wu(e,t){const a={};for(const[l,n]of Object.entries(t))(0,H.isPlainObject)(n)&&(0,H.isPlainObject)(e[l])?a[l]={...e[l],...wu(e[l],n)}:a[l]=n;return a}var Cu=a=>n=>{const r=(0,t.useSelect)((e=>e("core/block-editor")?.getMultiSelectedBlocks()||[]),[]),{updateBlockAttributes:i}=(0,t.useDispatch)("core/block-editor"),o=(0,l.useMemo)((()=>0===r.length?function(e){n.setAttributes(wu(n.attributes,e))}:function(e){const t=r.reduce(((t,a)=>(t.clientIds.push(a.clientId),t.blockAttrs[a.clientId]=wu(a.attributes,e),t)),{clientIds:[],blockAttrs:{}});i(t.clientIds,t.blockAttrs,!0)}),[r.length,JSON.stringify(n.attributes)]);return(0,e.createElement)(a,{...n,setAttributes:o})},_u=(0,G.compose)(Cu,ot,(t=>a=>{const{clientId:l}=a,n=U(l),r=(0,h.applyFilters)("generateblocks.editor.templateContext",ku,a);return(0,e.createElement)(vu.Provider,{value:r},0<r.templates.length&&0===n?(0,e.createElement)(t,{...a,ContentRenderer:fu}):(0,e.createElement)(t,{...a}))}),kt,mu,ie,(t=>a=>{const{attributes:n,setAttributes:r}=a;return(0,l.useEffect)((()=>{const e=nt({attributes:n,defaults:(0,g.getBlockType)("generateblocks/container")?.attributes,oldDefaults:{v1_4_0:generateBlocksLegacyDefaults.v_1_4_0.container}});(0,H.isEmpty)(e)||r(e)}),[]),(0,e.createElement)(t,{...a})}))((a=>{const{clientId:n,attributes:r,setAttributes:i,ContentRenderer:o=au}=a,{anchor:s,typography:c,googleFont:u,googleFontVariants:g,isBlockPreview:d=!1,gridId:p,isGrid:b,isQueryLoopItem:m}=r,f=(0,l.useRef)(null),k=fi(),v=(0,h.applyFilters)("generateblocks.editor.allowedContainerTagNames",["div","article","section","header","footer","aside","a"]),y=e=>v.includes(e)?e:"div",w=[];Object.keys(generateBlocksInfo.svgShapes).forEach((e=>{const t=generateBlocksInfo.svgShapes[e].svgs;Object.keys(t).forEach((e=>{w[e]={label:t[e].label,icon:t[e].icon}}))}));const{getBlockParents:C,getBlocksByClientId:_}=(0,t.useSelect)((e=>e("core/block-editor")),[]);return(0,l.useEffect)((()=>{const e=C(n,!0);if(e.length>0){const t=_(e);if(t.length>0)if("generateblocks/grid"===t[0].name){const e=t[0].attributes.uniqueId;e!==p&&i({isGrid:!0,gridId:e})}else b&&!m&&i({isGrid:!1,gridId:""})}else b&&!m&&i({isGrid:!1,gridId:""})})),(0,e.createElement)(l.Fragment,null,(0,e.createElement)(nc,{attributes:r,setAttributes:i}),(0,e.createElement)(ds,{attributes:r,setAttributes:i},(0,h.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:k})),(0,e.createElement)(ic,{anchor:s,attributes:r,setAttributes:i,filterTagName:y}),(0,e.createElement)(oc,{fontFamily:c.fontFamily,googleFont:u,googleFontVariants:g,isBlockPreview:d}),(0,e.createElement)(o,{...a,generateBlocksInfo:generateBlocksInfo,filterTagName:y,allShapes:w,deviceType:k,containerRef:f}))})),Eu={uniqueId:{type:"string",default:""},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},isQueryLoopItem:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},autoWidthTablet:{type:"boolean",default:generateBlocksDefaults.container.autoWidthTablet},autoWidthMobile:{type:"boolean",default:generateBlocksDefaults.container.autoWidthMobile},flexBasisUnit:{type:"string",default:generateBlocksDefaults.container.flexBasisUnit},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},bgImageInline:{type:"boolean",default:generateBlocksDefaults.container.bgImageInline},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},blockVersion:{type:"number"},useInnerContainer:{type:"boolean",default:!1},variantRole:{type:"string",default:""},blockLabel:{type:"string",default:""},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const xu=[{attributes:Object.assign({},vt(Eu,mt,generateBlocksDefaults.container)),supports:{align:!1,anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save({attributes:t}){const{uniqueId:a,tagName:l,elementId:r,cssClasses:i,isGrid:o,align:c}=t;let u={className:s()({"gb-container":!0,[`gb-container-${a}`]:!0,[`${i}`]:""!==i,[`align${c}`]:!!c&&!o}),id:r||null};return u=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",u,"generateblocks/container",t),(0,e.createElement)((({condition:e,wrap:t,children:a})=>e?t(a):a),{condition:o,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-grid-column":!0,[`gb-grid-column-${a}`]:!0})},t)},(0,e.createElement)(_c,{tagName:l,htmlAttrs:u},(0,h.applyFilters)("generateblocks.frontend.insideContainer","",t),(0,e.createElement)("div",{className:s()({"gb-inside-container":!0})},(0,e.createElement)(n.InnerBlocks.Content,null))))}}];var Su=xu;const Tu=Object.assign({},vt(Eu,mt,generateBlocksDefaults.container),Sc);(0,g.registerBlockType)("generateblocks/container",{apiVersion:2,title:(0,i.__)("Container","generateblocks"),description:(0,i.__)("Organize your content into rows and sections.","generateblocks"),icon:p("container"),category:"generateblocks",keywords:[(0,i.__)("section"),(0,i.__)("container"),(0,i.__)("generate")],attributes:Tu,supports:{align:!1,className:!1,html:!1},usesContext:["postId","postType","generateblocks/queryId"],edit:_u,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Su,__experimentalLabel:(e,{context:t})=>{const a=e?.metadata?.name||e?.blockLabel;return"list-view"===t&&a?a:e.isQueryLoopItem?(0,i.__)("Post Template","generateblocks"):(0,i.__)("Container","generateblocks")},transforms:{to:[{type:"block",blocks:["*"],transform:(e,t)=>t}]}});const Lu=[{icon:$t,title:(0,i.__)("Align buttons left","generateblocks"),align:"left"},{icon:Kt,title:(0,i.__)("Align buttons center","generateblocks"),align:"center"},{icon:Jt,title:(0,i.__)("Align buttons right","generateblocks"),align:"right"}];var Mu=a=>{const{attributes:l,setAttributes:o,clientId:s,deviceType:c}=a,{alignment:u,alignmentTablet:d,alignmentMobile:p,isPagination:b}=l,{insertBlocks:m}=(0,t.useDispatch)("core/block-editor"),{getBlocksByClientId:f}=(0,t.useSelect)((e=>e("core/block-editor")),[]),k=(0,h.applyFilters)("generateblocks.editor.showButtonAppender",!0,a);return(0,e.createElement)(n.BlockControls,null,!b&&(0,e.createElement)(r.ToolbarGroup,null,!!k&&(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:eu,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=f(s)[0];if(e){const t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){const e=t[l].clientId;if(e){const t=f(e)[0],a=(0,g.cloneBlock)(t,{uniqueId:""});m(a,void 0,s)}}else 0===t.length&&m((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,s)}},showTooltip:!0})),"Desktop"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:u,alignmentControls:Lu,onChange:e=>{o({alignment:e})}}),"Tablet"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:d,alignmentControls:Lu,onChange:e=>{o({alignmentTablet:e})}}),"Mobile"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:p,alignmentControls:Lu,onChange:e=>{o({alignmentMobile:e})}}))};class Bu extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,stack:n,fillHorizontalSpace:r}=t;let i=[];return i[".gb-button-wrapper-"+a]=[{display:!!r&&"block","flex-direction":!!n&&"column","align-items":!!n&&xt(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&xt(l)}],r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),n&&r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,h.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,I(i))}}class Iu extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l}=t;let n=[];return n[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{"justify-content":xt(l)}],Hc(n,".editor-styles-wrapper .gb-button-wrapper-"+a,t.spacing,"Tablet"),n[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":xt(l)}],n=(0,h.applyFilters)("generateblocks.editor.tabletCSS",n,this.props,"button-container"),(0,e.createElement)("style",null,I(n))}}class Ou extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,stackTablet:n,fillHorizontalSpaceTablet:r}=t;let i=[];return i[".gb-button-wrapper-"+a]=[{display:!!r&&"block","flex-direction":!!n&&"column","align-items":!!n&&xt(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&xt(l)}],r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),n&&r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,h.applyFilters)("generateblocks.editor.tabletOnlyCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,I(i))}}class Au extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentMobile:l,stackMobile:n,fillHorizontalSpaceMobile:r}=t;let i=[];return i[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{display:!!r&&"block","justify-content":xt(l),"flex-direction":!!n&&"column","align-items":!!n&&xt(l)}],Hc(i,".editor-styles-wrapper .gb-button-wrapper-"+a,t.spacing,"Mobile"),i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&xt(l),"justify-content":xt(l)}],r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),n&&r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,h.applyFilters)("generateblocks.editor.mobileCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,I(i))}}class Ru extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l}=t;let n=[];return n[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{"justify-content":xt(l)}],Hc(n,".editor-styles-wrapper .gb-button-wrapper-"+a,t.spacing),n[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":xt(l)}],n=(0,h.applyFilters)("generateblocks.editor.mainCSS",n,this.props,"button-container"),(0,e.createElement)("style",null,I(n))}}var zu=(0,l.memo)((function(a){const l=(0,t.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=a?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ru,{...a}),l&&(0,e.createElement)(e.Fragment,null,"Desktop"===l&&(0,e.createElement)(Bu,{...a}),("Tablet"===l||"Mobile"===l)&&(0,e.createElement)(Iu,{...a}),"Tablet"===l&&(0,e.createElement)(Ou,{...a}),"Mobile"===l&&(0,e.createElement)(Au,{...a})))}),V),Du=(0,G.compose)(ot,kt,ie,(t=>a=>{const{attributes:n,setAttributes:r}=a;return(0,l.useEffect)((()=>{const e=it({attributes:n,defaults:(0,g.getBlockType)("generateblocks/button-container")?.attributes});(0,H.isEmpty)(e)||r(e)}),[]),(0,e.createElement)(t,{...a})}))((a=>{const{attributes:r,setAttributes:i,clientId:o,name:c,context:u}=a,{uniqueId:g,className:d,anchor:p}=r,[b,m]=(0,l.useState)(0),f=fi(),k=U(o),{removeBlock:v}=(0,t.useDispatch)("core/block-editor");(0,l.useEffect)((()=>{1===b&&0===k&&v(o),m(k)}),[k]);let y={className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${g}`]:!0,[`${d}`]:void 0!==d}),id:p||null};y=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",y,"generateblocks/button-container",r);const w=(0,n.useBlockProps)(y);return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(Mu,{...a,deviceType:f}),(0,e.createElement)(ds,{attributes:r,setAttributes:i},(0,h.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:f})),(0,e.createElement)(B,{anchor:p,setAttributes:i}),(0,e.createElement)(zu,{...a,deviceType:f}),(0,e.createElement)(wc,{name:c,clientId:o},(0,e.createElement)("div",{...w},(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/query":u["generateblocks/query"]}},(0,e.createElement)(n.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:!1,template:[["generateblocks/button",generateBlocksStyling.button]]})))))})),Nu={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isPagination:{type:"boolean",default:!1},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},isDynamic:{type:"boolean"},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Fu=[{attributes:Object.assign({},vt(Nu,dt,generateBlocksDefaults.buttonContainer)),supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save({attributes:t}){const{uniqueId:a,elementId:l,cssClasses:r}=t;let i={id:l||void 0,className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${a}`]:!0,[`${r}`]:""!==r})};return i=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",i,"generateblocks/button-container",t),(0,e.createElement)("div",{...i},(0,e.createElement)(n.InnerBlocks.Content,null))}}];var Hu=Fu;const Pu=vt(Nu,dt,generateBlocksDefaults.buttonContainer);(0,g.registerBlockType)("generateblocks/button-container",{apiVersion:2,title:(0,i.__)("Buttons","generateblocks"),description:(0,i.__)("Drive conversions with beautiful buttons.","generateblocks"),icon:p("button-container"),category:"generateblocks",keywords:[(0,i.__)("button"),(0,i.__)("buttons"),(0,i.__)("generate")],attributes:Pu,supports:{className:!1,html:!1,inserter:!1},usesContext:["generateblocks/queryId","generateblocks/query"],edit:Du,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Hu,__experimentalLabel:({isPagination:e})=>e?(0,i.__)("Pagination","generateblocks"):(0,i.__)("Buttons","generateblocks")});var Vu=a=>{const{attributes:l,clientId:o,setAttributes:s,setButtonPreviewElement:c}=a,{insertBlocks:u}=(0,t.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:d,getBlocksByClientId:b}=(0,t.useSelect)((e=>e("core/block-editor")),[]),{url:m,target:f,relNoFollow:k,relSponsored:v,useDynamicData:y,dynamicLinkType:w,display:C,displayTablet:_,displayMobile:E,buttonType:x}=l,S=fi(),T=y&&w,L=(0,h.applyFilters)("generateblocks.editor.showButtonAppender",!0,a),M=(0,h.applyFilters)("generateblocks.editor.showButtonLinkControl","link"===x,a),B=d(o,"generateblocks/button-container",!0)[0];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,L&&B&&(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:p("add-button"),label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=b(o)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});u(t,void 0,B)},showTooltip:!0})),!Uo({device:S,display:C,displayTablet:_,displayMobile:E})&&(0,e.createElement)(n.AlignmentToolbar,{value:hi("textAlign",{attributes:l.typography,deviceType:S}),onChange:e=>{s({typography:{[hi("textAlign",{attributes:l.typography,deviceType:S},!0)]:e}})},alignmentControls:Qt.alignments}),(0,e.createElement)(r.ToolbarGroup,null,(!y||T)&&M&&(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-button-link-dropdown",popoverProps:{className:"block-editor-block-settings-menu__popover",position:"bottom right"},onClose:()=>c(m?"a":"span"),renderToggle:({isOpen:t,onToggle:a})=>(0,e.createElement)(r.ToolbarButton,{icon:Ei,label:m?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks"),onClick:a,"aria-expanded":t,isPressed:!!m}),renderContent:()=>(0,e.createElement)(e.Fragment,null,!y&&(0,e.createElement)(n.URLInput,{className:"gblocks-button-link",value:m,onChange:e=>{s({url:e,hasUrl:!!e})}}),!!y&&(0,e.createElement)("div",{style:{width:"300px","font-style":"italic","margin-bottom":w?"15px":"0"}},(0,i.__)("This button is using a dynamic link.","generateblocks")),(0,h.applyFilters)("generateblocks.editor.urlInputMoreOptions","",l),(!!m||T)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:f||"",onChange:e=>{s({target:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:k||"",onChange:e=>{s({relNoFollow:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:v||"",onChange:e=>{s({relSponsored:e})}})))}))))},ju=({anchor:t,ariaLabel:a,buttonType:l,setAttributes:o})=>(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(L,{anchor:t,setAttributes:o}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("ARIA Label","generateblocks"),help:(0,i.__)("Helpful to people using screen readers.","generateblocks"),value:a,onChange:e=>{o({ariaLabel:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Button type","generateblocks"),value:l,onChange:e=>o({buttonType:e}),options:[{value:"link",label:(0,i.__)("Link","generateblocks")},{value:"button",label:"<button>"}]}));class Gu extends l.Component{render(){let t=[];return t=(0,h.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"button"),(0,e.createElement)("style",null,I(t))}}class Wu extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,hasButtonContainer:n,iconStyles:r}=t;let i=".gb-button-"+a;i=".editor-styles-wrapper "+(n?".gb-button-wrapper ":"")+i;let o=[];return Pc(o,i,t.typography,"Tablet"),Hc(o,i,t.spacing,"Tablet"),Vc(o,i,t.borders,"Tablet"),Nc(o,i,t,"Tablet"),Dc(o,i,t,"Tablet"),Fc(o,i,t,"Tablet"),o[i+" .gb-icon"]=[{"padding-top":l?null:r?.paddingTopTablet,"padding-right":l?null:r?.paddingRightTablet,"padding-bottom":l?null:r?.paddingBottomTablet,"padding-left":l?null:r?.paddingLeftTablet}],o[i+" .gb-icon svg"]=[{width:r?.widthTablet,height:r?.heightTablet}],o=(0,h.applyFilters)("generateblocks.editor.tabletCSS",o,this.props,"button"),(0,e.createElement)("style",null,I(o))}}class Uu extends l.Component{render(){let t=[];return t=(0,h.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"button"),(0,e.createElement)("style",null,I(t))}}class Zu extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,hasButtonContainer:n,iconStyles:r}=t;let i=".gb-button-"+a;i=".editor-styles-wrapper "+(n?".gb-button-wrapper ":"")+i;let o=[];return Pc(o,i,t.typography,"Mobile"),Hc(o,i,t.spacing,"Mobile"),Vc(o,i,t.borders,"Mobile"),Nc(o,i,t,"Mobile"),Dc(o,i,t,"Mobile"),Fc(o,i,t,"Mobile"),o[i+" .gb-icon"]=[{"padding-top":l?null:r?.paddingTopMobile,"padding-right":l?null:r?.paddingRightMobile,"padding-bottom":l?null:r?.paddingBottomMobile,"padding-left":l?null:r?.paddingLeftMobile}],o[i+" .gb-icon svg"]=[{width:r?.widthMobile,height:r?.heightMobile}],o=(0,h.applyFilters)("generateblocks.editor.mobileCSS",o,this.props,"button"),(0,e.createElement)("style",null,I(o))}}class qu extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,backgroundColor:n,backgroundColorOpacity:r,textColor:o,backgroundColorHover:s,backgroundColorHoverOpacity:c,textColorHover:u,fontFamilyFallback:g,gradient:d,gradientDirection:p,gradientColorOne:b,gradientColorOneOpacity:m,gradientColorStopOne:f,gradientColorTwo:k,gradientColorTwoOpacity:v,gradientColorStopTwo:y,hasButtonContainer:w,backgroundColorCurrent:C,textColorCurrent:_,iconStyles:E}=t;let x,S="",T="";d&&(b&&""!==f&&(S=" "+f+"%"),k&&""!==y&&(T=" "+y+"%")),d&&(x="linear-gradient("+p+"deg, "+Ze(b,m)+S+", "+Ze(k,v)+T+");");let L=".gb-button-"+a;L=".editor-styles-wrapper "+(w?".gb-button-wrapper ":"")+L;let M=[];M[L]=[{"background-color":Ze(n,r),"background-image":x,color:o,"text-decoration":"none"}],Pc(M,L,{...t.typography,fontFamilyFallback:g}),Hc(M,L,t.spacing),Vc(M,L,t.borders),Nc(M,L,t),Dc(M,L,t),Fc(M,L,t);const B=(0,i.sprintf)("%1$s[data-button-is-current], %1$s[data-button-is-current]:hover, %1$s[data-button-is-current]:active, %1$s[data-button-is-current]:focus",L);return M[B]=[{"background-color":C,color:_}],jc(M,B,{...t.borders},"Current"),M[L+":hover, "+L+":focus, "+L+":active"]=[{"background-color":Ze(s,c),color:u}],jc(M,L+":hover, "+L+":focus, "+L+":active",{...t.borders},"Hover"),M[L+" .gb-icon"]=[{"padding-top":l?null:E?.paddingTop,"padding-right":l?null:E?.paddingRight,"padding-bottom":l?null:E?.paddingBottom,"padding-left":l?null:E?.paddingLeft}],M[L+" .gb-icon svg"]=[{width:E?.width,height:E?.height}],M=(0,h.applyFilters)("generateblocks.editor.mainCSS",M,this.props,"button"),(0,e.createElement)("style",null,I(M))}}var $u=(0,l.memo)((function(a){const l=(0,t.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=a?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(qu,{...a}),l&&(0,e.createElement)(e.Fragment,null,"Desktop"===l&&(0,e.createElement)(Gu,{...a}),("Tablet"===l||"Mobile"===l)&&(0,e.createElement)(Wu,{...a}),"Tablet"===l&&(0,e.createElement)(Uu,{...a}),"Mobile"===l&&(0,e.createElement)(Zu,{...a})))}),V);function Ku(e){const{attributes:t}=e,{useDynamicData:a,dynamicContentType:l}=t;return(0,h.applyFilters)("generateblocks.editor.addButtonCurrentColors",a&&"pagination-numbers"===l,e)}(0,h.addFilter)("generateblocks.editor.colorGroupItems","generateblocks/button-colors/add-conditional-color-items",(function(e,t){const{name:a}=t;if("generateblocks/button"!==a)return e;if(Ku(t)){const t=[{group:"background",attribute:"backgroundColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0},{group:"text",attribute:"textColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!1}];e.forEach(((a,l)=>{t.forEach((t=>{t.group!==a.group||a.items.some((e=>e.attribute===t.attribute))||e[l].items.push({tooltip:t.tooltip,attribute:t.attribute,alpha:t.alpha})}))}))}return e})),(0,h.addFilter)("generateblocks.editor.blockContext","generateblocks/button-context/add-current-border-color",(function(e,t){const{name:a}=t;return"generateblocks/button"!==a||Ku(t)&&(e.supports.borders.borderColors.some((e=>"Current"===e.state))||e.supports.borders.borderColors.push({state:"Current",tooltip:(0,i.__)("Border Current","generateblocks"),alpha:!0})),e}));var Ju=(0,G.compose)(Cu,ot,kt,mu,ie,(t=>a=>{const{attributes:n,setAttributes:r}=a;return(0,l.useEffect)((()=>{const e=Ye({attributes:n,defaults:(0,g.getBlockType)("generateblocks/button")?.attributes,oldDefaults:{v1_4_0:generateBlocksLegacyDefaults.v_1_4_0.button}});(0,H.isEmpty)(e)||r(e)}),[]),(0,e.createElement)(t,{...a})}))((a=>{const{attributes:n,setAttributes:r,ContentRenderer:i=xc,clientId:o}=a,{anchor:s,ariaLabel:c,typography:u,googleFont:g,googleFontVariants:d,isBlockPreview:p=!1,hasButtonContainer:b,blockVersion:m,buttonType:f,variantRole:k,url:v}=n,y=(0,l.useRef)(null),w=fi(),{getBlockParents:C,getBlocksByClientId:_}=(0,t.useSelect)((e=>e("core/block-editor")),[]),[E,x]=(0,l.useState)("span");return(0,l.useEffect)((()=>{const e=C(o,!0);if(e.length>0){const t=_(e);t.length>0&&"generateblocks/button-container"===t[0].name?r({hasButtonContainer:!0}):b&&r({hasButtonContainer:!1})}else b&&r({hasButtonContainer:!1})}),[]),(0,l.useEffect)((()=>{"link"===f&&x(v?"a":"span"),"button"===f&&x("button")}),[f]),(0,l.useEffect)((()=>{!oe(n)||m||k||r(generateBlocksStyling.button)}),[]),(0,e.createElement)(l.Fragment,null,(0,e.createElement)(Vu,{...a,setButtonPreviewElement:x}),(0,e.createElement)(ds,{attributes:n,setAttributes:r},(0,h.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:w})),(0,e.createElement)(ju,{anchor:s,ariaLabel:c,buttonType:f,setAttributes:r}),(0,e.createElement)($u,{...a,deviceType:w}),(0,e.createElement)(oc,{fontFamily:u.fontFamily,googleFont:g,googleFontVariants:d,isBlockPreview:p}),(0,e.createElement)(i,{...a,buttonRef:y,buttonPreviewElement:E}))})),Yu={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},blockVersion:{type:"number"},hasButtonContainer:{type:"boolean",default:!1},variantRole:{type:"string",default:""},buttonType:{type:"string",default:"link"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Qu=[{attributes:{...Object.assign({},vt(Yu,pt,generateBlocksDefaults.button)),text:{type:"array",source:"children",selector:".gb-button .button-text",default:"Button"}},supports:{anchor:!1,className:!1,customClassName:!1,inserter:!1,reusable:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save({attributes:t}){const{uniqueId:a,elementId:l,cssClasses:r,text:i,url:o,target:c,relNoFollow:u,relSponsored:g,icon:d,iconLocation:p,removeText:b,ariaLabel:m}=t,f=[];u&&f.push("nofollow"),c&&f.push("noopener","noreferrer"),g&&f.push("sponsored");let k={id:l||void 0,className:s()({"gb-button":!0,[`gb-button-${a}`]:!0,[`${r}`]:""!==r}),href:o||void 0,target:c?"_blank":void 0,rel:f&&f.length>0?f.join(" "):void 0,"aria-label":m||void 0};return k=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",t),(0,e.createElement)("a",{...k},d&&"left"===p&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:ko(d)}}),!b&&(0,e.createElement)(n.RichText.Content,{tagName:"span",className:"button-text",value:i,key:"button-text"}),d&&"right"===p&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:ko(d)}}))}}];var Xu=Qu;function eg(e){return e?(0,i.sprintf)("Post meta: %s",e):(0,i.__)("Post meta","generateblocks")}function tg(e,t){const{useDynamicData:a,dynamicContentType:l,dynamicLinkType:n,isCaption:r,metaFieldName:o}=e;if(a){const e={"post-title":(0,i.__)("Post title","generateblocks"),"post-excerpt":(0,i.__)("Post excerpt","generateblocks"),"post-date":(0,i.__)("Post date","generateblocks"),"post-meta":eg(o),"author-email":(0,i.__)("Author email","generateblocks"),"author-name":(0,i.__)("Author name","generateblocks"),"author-nickname":(0,i.__)("Author nickname","generateblocks"),"author-first-name":(0,i.__)("Author first name","generateblocks"),"author-last-name":(0,i.__)("Author last name","generateblocks"),"author-meta":(0,i.__)("Author meta","generateblocks"),"pagination-numbers":(0,i.__)("Page numbers","generateblocks"),caption:(0,i.__)("Caption","generateblocks"),terms:(0,i.__)("List of terms","generateblocks"),"comments-number":(0,i.__)("Comments number","generateblocks")},t={"single-post":(0,i.__)("Single post","generateblocks"),"author-archives":(0,i.__)("Author archives","generateblocks"),"comments-area":(0,i.__)("Comments area","generateblocks"),"post-meta":eg(o),"previous-posts":(0,i.__)("Previous posts","generateblocks"),"next-posts":(0,i.__)("Next posts","generateblocks"),"term-archives":(0,i.__)("Term archives","generateblocks"),"pagination-prev":(0,i.__)("Previous page","generateblocks"),"pagination-next":(0,i.__)("Next page","generateblocks")};return Object.keys(e).includes(l)?e[l]:Object.keys(t).includes(n)?t[n]:(0,i.__)("Dynamic content","generateblocks")}return r?(0,i.__)("Caption","generateblocks"):t}const ag=Object.assign({},vt(Yu,pt,generateBlocksDefaults.button),Sc);(0,g.registerBlockType)("generateblocks/button",{apiVersion:2,title:(0,i.__)("Button","generateblocks"),description:(0,i.__)("Drive conversions with beautiful buttons.","generateblocks"),icon:p("button"),category:"generateblocks",keywords:[(0,i.__)("button"),(0,i.__)("buttons"),(0,i.__)("generate")],attributes:ag,supports:{className:!1},edit:Ju,save:t=>{const{attributes:a}=t,{uniqueId:l,text:r,url:i,target:o,relNoFollow:c,relSponsored:u,icon:g,iconLocation:d,removeText:p,ariaLabel:b,anchor:m,buttonType:f}=a,k=[];c&&k.push("nofollow"),o&&k.push("noopener","noreferrer"),u&&k.push("sponsored");let v={className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,"gb-button-text":!g}),href:i&&"link"===f?i:null,target:o&&"link"===f?"_blank":null,rel:k&&k.length>0&&"link"===f?k.join(" "):null,"aria-label":b||null,id:m||null};v=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",v,"generateblocks/button",a);const y=n.useBlockProps.save(v),w="button"===f?"button":i?"a":"span";return(0,e.createElement)(_c,{tagName:w,htmlAttrs:y},(0,e.createElement)(Cc,{hasIcon:!!g,direction:d,icon:g,hideChildren:p,showWrapper:!1},(0,e.createElement)(n.RichText.Content,{value:r,tagName:g?"span":void 0,className:g?"gb-button-text":void 0})))},deprecated:Xu,usesContext:["postId","postType","generateblocks/query","generateblocks/inheritQuery"],__experimentalLabel:(e,{context:t})=>{const a=e?.metadata?.name;return"list-view"===t&&a?a:"list-view"!==t||!e.text&&!e.removeText||e.useDynamicData?tg(e,(0,i.__)("Button","generateblocks")):e.removeText?(0,i.__)("Icon","generateblocks"):e.text}});var lg=window.wp.richText;const ng=(0,e.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),rg="generateblocks/mark",ig=(0,G.compose)((0,t.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),(0,G.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(t){const a=()=>t.onChange((0,lg.toggleFormat)(t.value,{type:rg}));return(0,e.createElement)(l.Fragment,null,(0,e.createElement)(n.RichTextShortcut,{type:"primary",character:"m",onUse:a}),(0,e.createElement)(n.RichTextToolbarButton,{icon:ng,title:(0,i.__)("Highlight","generateblocks"),onClick:a,isActive:t.isActive,shortcutType:"access",shortcutCharacter:"m",className:`toolbar-button-with-text toolbar-button__${rg}`}))})),og={title:(0,i.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ig};function sg({level:t}){const a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;let l="0 0 20 20";return"p"!==t&&"div"!==t||(l="0 0 24 24"),(0,e.createElement)(r.SVG,{width:"24",height:"24",viewBox:l,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(r.Path,{d:a[t]}))}(0,lg.registerFormatType)(rg,og);var cg=({setAttributes:t,element:a,isCaption:l})=>l?null:(0,e.createElement)(r.ToolbarGroup,{isCollapsed:!0,icon:(0,e.createElement)(sg,{level:a}),label:(0,i.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===a,icon:(0,e.createElement)(sg,{level:"h1"}),title:(0,i.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,i.__)("Heading %s","generateblocks"),"1"),onClick:()=>{t({element:"h1"})}},{isActive:"h2"===a,icon:(0,e.createElement)(sg,{level:"h2"}),title:(0,i.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,i.__)("Heading %s","generateblocks"),"2"),onClick:()=>{t({element:"h2"})}},{isActive:"h3"===a,icon:(0,e.createElement)(sg,{level:"h3"}),title:(0,i.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,i.__)("Heading %s","generateblocks"),"3"),onClick:()=>{t({element:"h3"})}},{isActive:"h4"===a,icon:(0,e.createElement)(sg,{level:"h4"}),title:(0,i.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,i.__)("Heading %s","generateblocks"),"4"),onClick:()=>{t({element:"h4"})}},{isActive:"h5"===a,icon:(0,e.createElement)(sg,{level:"h5"}),title:(0,i.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,i.__)("Heading %s","generateblocks"),"5"),onClick:()=>{t({element:"h5"})}},{isActive:"h6"===a,icon:(0,e.createElement)(sg,{level:"h6"}),title:(0,i.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,i.__)("Heading %s","generateblocks"),"6"),onClick:()=>{t({element:"h6"})}},{isActive:"p"===a,icon:(0,e.createElement)(sg,{level:"p"}),title:(0,i.__)("Paragraph","generateblocks"),onClick:()=>{t({element:"p"})}},{isActive:"div"===a,icon:(0,e.createElement)(sg,{level:"div"}),title:(0,i.__)("Div","generateblocks"),onClick:()=>{t({element:"div"})}}]});function ug(t){const{attributes:a,setAttributes:l}=t,{element:r,isCaption:i,display:o,displayTablet:s,displayMobile:c}=a,u=fi();return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(cg,{setAttributes:l,element:r,isCaption:i}),!Uo({device:u,display:o,displayTablet:s,displayMobile:c})&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.AlignmentToolbar,{value:hi("textAlign",{attributes:a.typography,deviceType:u}),onChange:e=>{l({typography:{[hi("textAlign",{attributes:a.typography,deviceType:u},!0)]:e}})},alignmentControls:Qt.alignments})))}function gg(t){const{onChange:a,tagName:l,isCaption:n}=t,o=fi(),s=(0,h.applyFilters)("generateblocks.editor.headlineTagNames",[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"},{label:"figcaption",value:"figcaption"}],{...t,deviceType:o});return(0,e.createElement)(e.Fragment,null,"Desktop"===o&&!n&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:l,options:s,onChange:a}))}var dg=t=>{const{attributes:a,setAttributes:l}=t,{isCaption:r,element:i,marginTop:o,marginRight:s,marginBottom:c,marginLeft:u,marginUnit:g}=a;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(L,{...t}),(0,e.createElement)(gg,{isCaption:r,tagName:i,onChange:e=>{l({element:e}),o||s||c||u||l("p"===e?{marginUnit:"em"}:{marginUnit:g})}}))};class pg extends l.Component{render(){let t=[];return t=(0,h.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"headline"),(0,e.createElement)("style",null,I(t))}}class bg extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,removeText:r,displayTablet:i,inlineWidthTablet:o,iconStyles:s}=t,c=n+".gb-headline-"+l;let u=[];return Pc(u,".editor-styles-wrapper "+c,t.typography,"Tablet"),Hc(u,".editor-styles-wrapper "+c,t.spacing,"Tablet"),Vc(u,".editor-styles-wrapper "+c,t.borders,"Tablet"),Nc(u,".editor-styles-wrapper "+c,t,"Tablet"),Dc(u,".editor-styles-wrapper "+c,t,"Tablet"),Fc(u,".editor-styles-wrapper "+c,t,"Tablet"),u[c+" .gb-icon"]=[{"padding-top":r?null:s?.paddingTopTablet,"padding-right":r?null:s?.paddingRightTablet,"padding-bottom":r?null:s?.paddingBottomTablet,"padding-left":r?null:s?.paddingLeftTablet}],u[c+" .gb-icon svg"]=[{width:s?.widthTablet,height:s?.heightTablet}],o&&(u['.gb-is-root-block[data-block="'+a+'"]']=[{display:i}]),u=(0,h.applyFilters)("generateblocks.editor.tabletCSS",u,this.props,"text"),(0,e.createElement)("style",null,I(u))}}class hg extends l.Component{render(){let t=[];return t=(0,h.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"headline"),(0,e.createElement)("style",null,I(t))}}class mg extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,removeText:r,displayMobile:i,inlineWidthMobile:o,iconStyles:s}=t,c=n+".gb-headline-"+l;let u=[];return Pc(u,".editor-styles-wrapper "+c,t.typography,"Mobile"),Hc(u,".editor-styles-wrapper "+c,t.spacing,"Mobile"),Vc(u,".editor-styles-wrapper "+c,t.borders,"Mobile"),Nc(u,".editor-styles-wrapper "+c,t,"Mobile"),Dc(u,".editor-styles-wrapper "+c,t,"Mobile"),Fc(u,".editor-styles-wrapper "+c,t,"Mobile"),u[c+" .gb-icon"]=[{"padding-top":r?null:s?.paddingTopMobile,"padding-right":r?null:s?.paddingRightMobile,"padding-bottom":r?null:s?.paddingBottomMobile,"padding-left":r?null:s?.paddingLeftMobile}],u[c+" .gb-icon svg"]=[{width:s?.widthMobile,height:s?.heightMobile}],o&&(u['.gb-is-root-block[data-block="'+a+'"]']=[{display:i}]),u=(0,h.applyFilters)("generateblocks.editor.mobileCSS",u,this.props,"headline"),(0,e.createElement)("style",null,I(u))}}class fg extends l.Component{render(){const t=(0,h.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,backgroundColor:r,backgroundColorOpacity:i,textColor:o,linkColor:s,linkColorHover:c,highlightTextColor:u,fontFamilyFallback:g,iconColor:d,iconColorOpacity:p,removeText:b,display:m,inlineWidth:f,iconStyles:k}=t,v=n+".gb-headline-"+l;let y=[];return y[".editor-styles-wrapper "+v]=[{color:o}],Pc(y,".editor-styles-wrapper "+v,{...t.typography,fontFamilyFallback:g}),Hc(y,".editor-styles-wrapper "+v,t.spacing),Vc(y,".editor-styles-wrapper "+v,t.borders),Nc(y,".editor-styles-wrapper "+v,t),Dc(y,".editor-styles-wrapper "+v,t),Fc(y,".editor-styles-wrapper "+v,t),y[".editor-styles-wrapper .gb-container "+v]=[{color:o}],y[".editor-styles-wrapper "+v].push({"background-color":Ze(r,i),color:o}),y[".editor-styles-wrapper "+v+" a"]=[{color:s}],y[".editor-styles-wrapper "+v+" a:hover"]=[{color:c}],y[v+" .gb-icon"]=[{"padding-top":b?null:k?.paddingTop,"padding-right":b?null:k?.paddingRight,"padding-bottom":b?null:k?.paddingBottom,"padding-left":b?null:k?.paddingLeft,color:Ze(d,p)}],y[v+" .gb-icon svg"]=[{width:k?.width,height:k?.height}],y[v+" .gb-highlight"]=[{color:u}],f&&(y['.gb-is-root-block[data-block="'+a+'"]']=[{display:m}]),y=(0,h.applyFilters)("generateblocks.editor.mainCSS",y,this.props,"headline"),(0,e.createElement)("style",null,I(y))}}var kg=(0,l.memo)((function(a){const l=(0,t.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=a?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(fg,{...a}),l&&(0,e.createElement)(e.Fragment,null,"Desktop"===l&&(0,e.createElement)(pg,{...a}),("Tablet"===l||"Mobile"===l)&&(0,e.createElement)(bg,{...a}),"Tablet"===l&&(0,e.createElement)(hg,{...a}),"Mobile"===l&&(0,e.createElement)(mg,{...a})))}),V);const vg=(e,t)=>(a,l)=>{let n;return n=l||a?(0,g.createBlock)("generateblocks/headline",{...e,content:a}):(0,g.createBlock)("core/paragraph"),l&&(n.clientId=t),n};var yg=(0,G.compose)(Cu,ot,kt,mu,ie,(t=>a=>{const{attributes:n,setAttributes:r}=a;return(0,l.useEffect)((()=>{const e=Tt({attributes:n,defaults:(0,g.getBlockType)("generateblocks/button")?.attributes});(0,H.isEmpty)(e)||r(e)}),[]),(0,e.createElement)(t,{...a})}))((t=>{const{attributes:a,setAttributes:n,ContentRenderer:r=Ec,context:i}=t,{anchor:o,typography:s,googleFont:c,googleFontVariants:u,icon:g,hasIcon:d,isBlockPreview:p=!1}=a,b=(0,l.useRef)(null),m=fi();return(0,l.useEffect)((()=>{!d&&g&&n({hasIcon:!0})}),[]),(0,e.createElement)(l.Fragment,null,(0,e.createElement)(ug,{attributes:a,setAttributes:n,context:i}),(0,e.createElement)(ds,{attributes:a,setAttributes:n},(0,h.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...t,device:m})),(0,e.createElement)(dg,{anchor:o,setAttributes:n,attributes:a}),(0,e.createElement)(kg,{...t,deviceType:m}),(0,e.createElement)(oc,{fontFamily:s.fontFamily,googleFont:c,googleFontVariants:u,isBlockPreview:p}),(0,h.applyFilters)("generateblocks.editor.beforeHeadlineElement","",t),(0,e.createElement)(r,{...t,onSplit:vg,headlineRef:b}))})),wg={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Cg={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},_g={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"};var Eg={from:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,g.createBlock)("generateblocks/headline",{content:e,element:"p"})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>(0,g.createBlock)("generateblocks/headline",{content:e,element:_g[t]})}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,g.createBlock)("core/paragraph",{content:e})},{type:"block",blocks:["core/heading"],transform:({content:e,element:t})=>(0,g.createBlock)("core/heading",{content:e,level:Cg.hasOwnProperty(t)?Cg[t]:2})}]};const xg=Object.assign({},vt(wg,gt,generateBlocksDefaults.headline)),Sg=[{attributes:{...xg,content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;let l=e.element?e.element:generateBlocksDefaults.headline.element;return e.icon&&e.removeText&&"div"!==l&&(l="div"),{...e,className:t,anchor:a,cssClasses:"",elementId:"",element:l}},save({attributes:t}){const{uniqueId:a,elementId:l,cssClasses:r,element:i,content:o,icon:c,removeText:u,ariaLabel:g}=t;let d={id:l||void 0,className:s()({"gb-headline":!0,[`gb-headline-${a}`]:!0,[`${r}`]:""!==r})};return d=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",t),(0,e.createElement)((({condition:e,wrap:t,children:a})=>e?t(a):a),{condition:c,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${a}`]:!0})},t)},c&&(0,e.createElement)("span",{className:"gb-icon","aria-label":u&&g?g:void 0,dangerouslySetInnerHTML:{__html:ko(c)}}),!u&&(0,e.createElement)(n.RichText.Content,{tagName:i,value:o,...d}))}},{attributes:{...xg,element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},save({attributes:t}){const{uniqueId:a,elementId:l,cssClasses:r,element:i,content:o,icon:c,removeText:u,ariaLabel:g}=t;let d={id:l||void 0,className:s()({"gb-headline":!0,[`gb-headline-${a}`]:!0,[`${r}`]:""!==r})};return d=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",t),(0,e.createElement)((({condition:e,wrap:t,children:a})=>e?t(a):a),{condition:c,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${a}`]:!0})},t)},c&&(0,e.createElement)("span",{className:"gb-icon","aria-label":u&&g?g:void 0,dangerouslySetInnerHTML:{__html:ko(c)}}),!u&&(0,e.createElement)(n.RichText.Content,{tagName:i,value:o,...d}))}}];var Tg=Sg;const Lg=Object.assign({},vt(wg,gt,generateBlocksDefaults.headline),Sc);(0,g.registerBlockType)("generateblocks/headline",{apiVersion:2,title:(0,i.__)("Headline","generateblocks"),description:(0,i.__)("Craft text-rich content with advanced typography.","generateblocks"),icon:p("headline"),category:"generateblocks",keywords:[(0,i.__)("heading"),(0,i.__)("headline"),(0,i.__)("title"),(0,i.__)("generate")],attributes:Lg,supports:{className:!1},edit:yg,save:({attributes:t})=>{const{uniqueId:a,anchor:l,element:r,content:i,icon:o,hasIcon:c,removeText:u}=t;let g={className:s()({"gb-headline":!0,[`gb-headline-${a}`]:!0,"gb-headline-text":!c}),id:l||null};g=(0,h.applyFilters)("generateblocks.frontend.htmlAttributes",g,"generateblocks/headline",t);const d=n.useBlockProps.save(g);return(0,e.createElement)(_c,{tagName:r,htmlAttrs:d},(0,e.createElement)(Cc,{hasIcon:c,icon:o,hideChildren:u,showWrapper:!1},(0,e.createElement)(n.RichText.Content,{value:i,tagName:c&&o?"span":void 0,className:c&&o?"gb-headline-text":void 0})))},transforms:Eg,deprecated:Tg,usesContext:["postId","postType","generateblocks/dynamicImage","generateblocks/mediaId"],__experimentalLabel:(e,{context:t})=>{const a=e?.metadata?.name;return"list-view"===t&&a?a:"list-view"!==t||!e.content&&!e.removeText||e.useDynamicData||e.isCaption?tg(e,(0,i.__)("Headline","generateblocks")):e.removeText?(0,i.__)("Icon","generateblocks"):e.content}});var Mg=JSON.parse('{"Y4":{"uniqueId":{"type":"string"},"mediaId":{"type":"number"},"mediaUrl":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt"},"title":{"type":"string","source":"attribute","selector":"img","attribute":"title"},"href":{"type":"string","source":"attribute","selector":"figure > a","attribute":"href"},"openInNewWindow":{"type":"boolean","default":false},"relNoFollow":{"type":"boolean","default":false},"relSponsored":{"type":"boolean","default":false},"sizeSlug":{"type":"string","default":""},"width":{"type":"string","default":""},"widthTablet":{"type":"string","default":""},"widthMobile":{"type":"string","default":""},"height":{"type":"string","default":""},"heightTablet":{"type":"string","default":""},"heightMobile":{"type":"string","default":""},"objectFit":{"type":"string","default":""},"objectFitTablet":{"type":"string","default":""},"objectFitMobile":{"type":"string","default":""},"borderColor":{"type":"string","default":""},"anchor":{"type":"string","default":""},"align":{"type":"string","default":""},"alignment":{"type":"string","default":""},"alignmentTablet":{"type":"string","default":""},"alignmentMobile":{"type":"string","default":""},"blockVersion":{"type":"number"}}}');function Bg(t){const a=(0,h.applyFilters)("generateblocks.editor.desktopCSS",[],t,"image");return(0,e.createElement)("style",null,I(a))}function Ig(t){const a=(0,h.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,borderColor:n,objectFitTablet:r,widthTablet:i,heightTablet:o,alignment:s,alignmentTablet:c}=a,{borderTopLeftRadiusTablet:u,borderTopRightRadiusTablet:g,borderBottomRightRadiusTablet:d,borderBottomLeftRadiusTablet:p}=a.borders;let b=[],m=c.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[c]:null;return c&&!m&&s.startsWith("float")&&(m="none"),b[".editor-styles-wrapper .gb-block-image-"+l]=[{"text-align":c.startsWith("float")?null:c,float:m,position:m&&"none"!==m?"relative":null,"z-index":m&&"none"!==m?"22":null}],Hc(b,".editor-styles-wrapper .gb-block-image-"+l,a.spacing,"Tablet"),b[".editor-styles-wrapper .gb-image-"+l]=[{"border-color":n,width:i,height:o,"object-fit":r}],Vc(b,".editor-styles-wrapper .gb-image-"+l,a.borders,"Tablet"),b[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":qc(u,g,d,p)}],b=(0,h.applyFilters)("generateblocks.editor.tabletCSS",b,t,"image"),(0,e.createElement)("style",null,I(b))}function Og(t){const a=(0,h.applyFilters)("generateblocks.editor.tabletOnlyCSS",[],t,"image");return(0,e.createElement)("style",null,I(a))}function Ag(t){const a=(0,h.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,borderColor:n,objectFitMobile:r,widthMobile:i,heightMobile:o,alignment:s,alignmentTablet:c,alignmentMobile:u}=a,{borderTopLeftRadiusTablet:g,borderTopRightRadiusTablet:d,borderBottomRightRadiusTablet:p,borderBottomLeftRadiusTablet:b}=a.borders;let m=[],f=u.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[u]:null;return u&&!f&&(c.startsWith("float")||s.startsWith("float"))&&(f="none"),m[".editor-styles-wrapper .gb-block-image-"+l]=[{"text-align":u.startsWith("float")?null:u,float:f,position:f&&"none"!==f?"relative":null,"z-index":f&&"none"!==f?"22":null}],Hc(m,".editor-styles-wrapper .gb-block-image-"+l,a.spacing,"Mobile"),m[".editor-styles-wrapper .gb-image-"+l]=[{"border-color":n,width:i,height:o,"object-fit":r}],Vc(m,".editor-styles-wrapper .gb-image-"+l,a.borders,"Mobile"),m[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":qc(g,d,p,b)}],m=(0,h.applyFilters)("generateblocks.editor.mobileCSS",m,t,"image"),(0,e.createElement)("style",null,I(m))}function Rg(t){const a=(0,h.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,objectFit:n,width:r,height:i,alignment:o}=a,{borderTopLeftRadius:s,borderTopRightRadius:c,borderBottomRightRadius:u,borderBottomLeftRadius:g}=a.spacing;let d=[];return d[".editor-styles-wrapper .gb-block-image-"+l]=[{"text-align":o.startsWith("float")?null:o,float:o.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[o]:"none",position:o.startsWith("float")?"relative":null,"z-index":o.startsWith("float")?"22":null,"max-width":"unset"}],Hc(d,".editor-styles-wrapper .gb-block-image-"+l,a.spacing),d[".editor-styles-wrapper .gb-image-"+l]=[{width:r,height:i,"object-fit":n}],Vc(d,".editor-styles-wrapper .gb-image-"+l,a.borders),d[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":qc(s,c,u,g)}],d=(0,h.applyFilters)("generateblocks.editor.mainCSS",d,t,"image"),(0,e.createElement)("style",null,I(d))}var zg=(0,l.memo)((function(a){const l=(0,t.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=a?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Rg,{...a}),l&&(0,e.createElement)(e.Fragment,null,"Desktop"===l&&(0,e.createElement)(Bg,{...a}),("Tablet"===l||"Mobile"===l)&&(0,e.createElement)(Ig,{...a}),"Tablet"===l&&(0,e.createElement)(Og,{...a}),"Mobile"===l&&(0,e.createElement)(Ag,{...a})))}),V),Dg=window.wp.notices;function Ng(a){const{attributes:l,setAttributes:o,media:s,deviceType:c}=a,{useDynamicData:u,mediaId:g,alt:d,title:p,sizeSlug:b,mediaUrl:h}=l,m=(0,t.useSelect)((e=>{const{getMedia:t}=e(Z.store);return g&&t(g,{context:"view"})}),[u,g]),f=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return(t().imageSizes||[]).map((e=>({value:e.slug,label:e.name})))}),[]);return(0,e.createElement)(e.Fragment,null,"Desktop"===c&&(!!g||u)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Size","generateblocks"),value:b,options:f,onChange:e=>{const t=Kc(m,e)||h;o({mediaUrl:t,sizeSlug:e})}}),(0,e.createElement)(r.BaseControl,{help:(0,i.__)("These fields will resize the image using CSS.","generateblocks")},(0,e.createElement)("div",{className:"gblocks-image-dimensions__row"},(0,e.createElement)(Zt,{label:(0,i.__)("Width","generateblocks"),id:"gblocks-image-width",value:hi("width",{attributes:l,deviceType:c}),placeholder:E("width",l,c),onChange:e=>{o({[hi("width",{attributes:l,deviceType:c},!0)]:e})},min:"1"}),(0,e.createElement)(Zt,{label:(0,i.__)("Height","generateblocks"),id:"gblocks-image-height",value:hi("height",{attributes:l,deviceType:c}),placeholder:E("height",l,c),onChange:e=>{o({[hi("height",{attributes:l,deviceType:c},!0)]:e})},min:"1"}))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Object-fit","generateblocks"),value:hi("objectFit",a),options:[{label:(0,i.__)("Select…","generateblocks"),value:""},{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Cover","generateblocks"),value:"cover"},{label:(0,i.__)("Contain","generateblocks"),value:"contain"},{label:(0,i.__)("Fill","generateblocks"),value:"fill"},{label:(0,i.__)("None","generateblocks"),value:"none"}],onChange:e=>{o({[hi("objectFit",a,!0)]:e})}}),!u&&"Desktop"===c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","generateblocks"),help:(0,i.__)("Describe the purpose of the image, leave empty if the image is purely decorative.","generateblocks"),value:u?s?.alt_text:d,disabled:u,onChange:e=>o({alt:e})}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Title attribute","generateblocks"),help:(0,i.__)("Describe the role of this image on the page.","generateblocks"),value:u?s?.title?.rendered:p,disabled:u,onChange:e=>o({title:e})})))}var Fg=window.wp.blob,Hg=(0,G.compose)(Cu,ot,kt,mu,ie,(t=>a=>{const{attributes:n,setAttributes:r}=a;return(0,l.useEffect)((()=>{const e=Lt({attributes:n,defaults:(0,g.getBlockType)("generateblocks/image")?.attributes});(0,H.isEmpty)(e)||r(e)}),[]),(0,e.createElement)(t,{...a})}))((function(a){const{attributes:r,setAttributes:i,context:o,ContentRenderer:s=bu}=a,{useDynamicData:c,dynamicContentType:u,sizeSlug:g,mediaId:d,mediaUrl:p,anchor:b}=r,m=fi(),{createErrorNotice:f}=(0,t.useDispatch)(Dg.store),[k,v]=(0,l.useState)(),y="post-type"===r.dynamicSource?r.postType:o.postType,w="post-type"===r.dynamicSource?r.postId:o.postId,[C]=(0,Z.useEntityProp)("postType",y,"featured_media",w),{mediaUpload:_}=(0,t.useSelect)((e=>{const{getSettings:t}=e(n.store);return(0,H.pick)(t(),["imageDefaultSize","mediaUpload"])}),[]),E=e=>{if(e&&e.url){if((0,Fg.isBlobURL)(e.url))v(e.url);else if(v(),e&&(!c||c&&!u)){const t=e?.sizes&&e?.sizes[g]?.url||e?.url;i({mediaId:e?.id,mediaUrl:t,alt:e?.alt,title:e?.title})}}else i({mediaUrl:void 0,mediaId:void 0,title:void 0,alt:void 0})},x=e=>{f(e[2],{type:"snackbar"})};(0,l.useEffect)((()=>{g||i({sizeSlug:"full"})}),[]);let S=(T=p,!d&&(0,Fg.isBlobURL)(T));var T;return(0,l.useEffect)((()=>{if(!S)return;const e=(0,Fg.getBlobByURL)(p);e&&_({filesList:[e],onFileChange:([e])=>{E(e)},allowedTypes:["image"],onError:e=>{S=!1,x(e)}})}),[]),(0,l.useEffect)((()=>{S?v(p):(0,Fg.revokeBlobURL)(k)}),[S,p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ds,{attributes:r,setAttributes:i},(0,h.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:m}),(0,e.createElement)(Ng,{attributes:r,setAttributes:i,deviceType:m})),(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(L,{...a,anchor:b})),(0,e.createElement)(zg,{...a,deviceType:m}),(0,e.createElement)(s,{...a,temporaryURL:k,featuredImage:C,onSelectImage:E,onSelectURL:e=>{e!==p&&i({mediaUrl:e,mediaId:void 0,title:"",alt:""})},onUploadError:x,onResetImage:()=>{i({mediaId:void 0,mediaUrl:"",alt:"",title:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:""})},deviceType:m}))})),Pg={from:[{type:"block",blocks:["core/image"],transform:({id:e,url:t,sizeSlug:a})=>(0,g.createBlock)("generateblocks/image",{mediaId:e,mediaUrl:t,sizeSlug:a})},{type:"block",blocks:["core/post-featured-image"],transform:({sizeSlug:e})=>(0,g.createBlock)("generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",sizeSlug:e})}],to:[{type:"block",blocks:["core/image"],transform:({mediaId:e,mediaUrl:t,sizeSlug:a})=>(0,g.createBlock)("core/image",{id:e,url:t,sizeSlug:a})}]};const Vg=Object.assign({},vt(Mg.Y4,bt,generateBlocksDefaults.image),Sc);(0,g.registerBlockType)("generateblocks/image",{title:(0,i.__)("Image","generateblocks"),icon:p("image"),attributes:Vg,edit:Hg,save:({attributes:t})=>{const{uniqueId:a,mediaUrl:l,anchor:r,alt:i,title:o,href:c,openInNewWindow:u,relNoFollow:g,relSponsored:d,useDynamicData:p,dynamicContentType:b,className:m,align:f}=t;if(p&&b)return(0,e.createElement)(n.InnerBlocks.Content,null);if(!l)return null;const k=n.useBlockProps.save({className:s()({"gb-block-image":!0,[`gb-block-image-${a}`]:!0})});k?.className.includes(m)&&(k.className=k.className.replace(m,"").trim());const v=At((0,h.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${a}`]:!0,[`${m}`]:void 0!==m,[`align${f}`]:""!==f}),id:r||null,src:l,alt:i,title:o},"generateblocks/image",t)),y={href:c,openInNewWindow:u,relNoFollow:g,relSponsored:d};return(0,e.createElement)(_c,{tagName:"figure",htmlAttrs:k},(0,e.createElement)(nu,{...y},(0,e.createElement)(_c,{tagName:"img",htmlAttrs:v})),(0,e.createElement)(n.InnerBlocks.Content,null))},transforms:Pg,__experimentalLabel:(e,{context:t})=>{const a=e?.metadata?.name;return"list-view"===t&&a?a:"list-view"!==t||e.useDynamicData||!e.alt&&!e.title?(0,i.__)("Image","generateblocks"):e.alt||e.title}});var jg=window.wp.apiFetch,Gg=a.n(jg),Wg=(0,l.memo)((function({onboardingKey:a,children:n}){const[o,s]=(0,l.useState)(!1),c=(0,t.useSelect)((e=>e(Z.store)?.getCurrentUser()),[]);return(0,l.useEffect)((function(){"1"===sessionStorage.getItem(`generateblocks_onboarding_${a}`)||c?.meta?.generateblocks_onboarding[a]||s(!0)}),[c?.id,JSON.stringify(c?.meta),a]),(0,e.createElement)(e.Fragment,null,o&&(0,e.createElement)(r.Popover,{position:"bottom right",className:"gb-onboard-popover",focusOnMount:!0,noArrow:!1,variant:"toolbar",offset:10,flip:!0},n,(0,e.createElement)("div",{className:"gb-onboard-popover__button"},(0,e.createElement)(r.Button,{variant:"primary",onClick:()=>{Gg()({path:"/generateblocks/v1/onboarding",method:"POST",data:{key:a}}).then((()=>{s(!1),sessionStorage.setItem(`generateblocks_onboarding_${a}`,"1")}))}},(0,i.__)("Got it","generateblocks")))))}));function Ug(){return(0,e.createElement)(Wg,{onboardingKey:"insert_inner_container"},(0,e.createElement)("h3",null,(0,i.__)("Insert inner container","generateblocks")),(0,e.createElement)("p",null,(0,i.__)("Use this button to add a centered inner Container block for your content.","generateblocks")),(0,e.createElement)("p",null,(0,i.__)("We generally recommend this for top-level Containers so your content does not span the entire width of your screen. ","generateblocks"),(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://docs.generateblocks.com/article/add-inner-container/",title:(0,i.__)("Read more about adding inner Container blocks.","generateblocks")},(0,i.__)("Read more.","generateblocks"))))}const Zg=(0,G.createHigherOrderComponent)((a=>l=>{const{name:o,attributes:s}=l,{variantRole:c,useInnerContainer:u}=s,{getBlocksByClientId:d,getSelectedBlockClientIds:b,getBlockRootClientId:h}=(0,t.useSelect)((e=>e("core/block-editor")),[]),{replaceBlocks:m,insertBlocks:f}=(0,t.useDispatch)("core/block-editor"),k=b(),v=k.length?k[0]:l.clientId,y=U(v),w=d(k),C=h(v),_=(e="")=>{if(!w.length)return;const t=w.map((e=>(0,g.createBlock)(e.name,e.attributes,e.innerBlocks))),a={};"row"===e&&(a.display="flex",a.flexDirection="row"),"stack"===e&&(a.display="flex",a.flexDirection="column");const l=(0,g.createBlock)("generateblocks/container",a,t);(0,H.isEmpty)(l)||m(k,l)};let E="";return"generateblocks/container"!==o||C||0!==y||""!==c||u||1!==k.length||(E=(0,e.createElement)(e.Fragment,null,E,(0,e.createElement)(r.ToolbarButton,{icon:p("section"),label:(0,i.__)("Add Inner Container","generateblocks"),onClick:()=>{f((0,g.createBlock)("generateblocks/container",{useGlobalMaxWidth:!0,marginLeft:"auto",marginRight:"auto"}),void 0,v)},showTooltip:!0}),(0,e.createElement)(Ug,null))),E=(0,e.createElement)(e.Fragment,null,E,(0,e.createElement)(r.ToolbarButton,{icon:p("add-to-container"),label:(0,i.__)("Add to Container","generateblocks"),onClick:()=>_("")})),w.length>1&&(E=(0,e.createElement)(e.Fragment,null,E,(0,e.createElement)(r.ToolbarButton,{icon:p("add-to-row"),label:(0,i.__)("Add to Row","generateblocks"),onClick:()=>_("row")}))),w.length>1&&(E=(0,e.createElement)(e.Fragment,null,E,(0,e.createElement)(r.ToolbarButton,{icon:p("add-to-stack"),label:(0,i.__)("Add to Stack","generateblocks"),onClick:()=>_("stack")}))),(0,e.createElement)(e.Fragment,null,!!E&&(0,e.createElement)(n.BlockControls,{group:"parent"},(0,e.createElement)(r.ToolbarGroup,null,E)),(0,e.createElement)(a,{...l}))}),"withToolbarAppenders");(0,h.addFilter)("editor.BlockEdit","generateblocks/blockControls/toolbarAppenders",Zg)}()}();