diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index bef9fd4da..323d290a4 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ -<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text'), 'version' => 'ecdb0999dd4c9ddf0fdf'); +<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text'), 'version' => 'fc33cdae48a8ae3099c0'); diff --git a/dist/blocks.js b/dist/blocks.js index 6e5f2df76..261ac834b 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,20 +1,20 @@ -!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)for(var o in a)l.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}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(){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}}function l(e,n,r){return l=a()?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},l.apply(null,arguments)}function n(e){return function(e){if(Array.isArray(e))return r(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 r(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)?r(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 r(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 i=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,g=Object.freeze,d=Object.seal,p=Object.create,b="undefined"!=typeof Reflect&&Reflect,m=b.apply,h=b.construct;m||(m=function(e,t,a){return e.apply(t,a)}),g||(g=function(e){return e}),d||(d=function(e){return e}),h||(h=function(e,t){return l(e,n(t))});var f,k=M(Array.prototype.forEach),v=M(Array.prototype.pop),y=M(Array.prototype.push),w=M(String.prototype.toLowerCase),C=M(String.prototype.match),_=M(String.prototype.replace),E=M(String.prototype.indexOf),x=M(String.prototype.trim),S=M(RegExp.prototype.test),T=(f=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return h(f,t)});function M(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 m(e,t,l)}}function B(e,t,a){a=a||w,o&&o(e,null);for(var l=t.length;l--;){var n=t[l];if("string"==typeof n){var r=a(n);r!==n&&(s(t)||(t[l]=r),n=r)}e[n]=!0}return e}function z(e){var t,a=p(null);for(t in e)m(i,e,[t])&&(a[t]=e[t]);return a}function I(e,t){for(;null!==e;){var a=u(e,t);if(a){if(a.get)return M(a.get);if("function"==typeof a.value)return M(a.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var O=g(["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"]),L=g(["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"]),A=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=g(["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"]),N=g(["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"]),D=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=g(["#text"]),P=g(["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"]),H=g(["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=g(["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"]),G=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=d(/<%[\w\W]*|[\w\W]*%>/gm),W=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),$=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),K=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=d(/^html$/i),Y=function(){return"undefined"==typeof window?null:window},Q=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}};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),l=function(e){return t(e)};if(l.version="2.4.0",l.removed=[],!a||!a.document||9!==a.document.nodeType)return l.isSupported=!1,l;var r=a.document,i=a.document,o=a.DocumentFragment,s=a.HTMLTemplateElement,c=a.Node,u=a.Element,d=a.NodeFilter,p=a.NamedNodeMap,b=void 0===p?a.NamedNodeMap||a.MozNamedAttrMap:p,m=a.HTMLFormElement,h=a.DOMParser,f=a.trustedTypes,M=u.prototype,X=I(M,"cloneNode"),ee=I(M,"nextSibling"),te=I(M,"childNodes"),ae=I(M,"parentNode");if("function"==typeof s){var le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}var ne=Q(f,r),re=ne?ne.createHTML(""):"",ie=i,oe=ie.implementation,se=ie.createNodeIterator,ce=ie.createDocumentFragment,ue=ie.getElementsByTagName,ge=r.importNode,de={};try{de=z(i).documentMode?i.documentMode:{}}catch(e){}var pe={};l.isSupported="function"==typeof ae&&oe&&void 0!==oe.createHTMLDocument&&9!==de;var be,me,he=U,fe=j,ke=W,ve=q,ye=Z,we=K,Ce=$,_e=null,Ee=B({},[].concat(n(O),n(L),n(A),n(N),n(F))),xe=null,Se=B({},[].concat(n(P),n(H),n(V),n(G))),Te=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}})),Me=null,Be=null,ze=!0,Ie=!0,Oe=!1,Le=!1,Ae=!1,Re=!1,Ne=!1,De=!1,Fe=!1,Pe=!1,He=!0,Ve=!1,Ge="user-content-",Ue=!0,je=!1,We={},qe=null,$e=B({},["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"]),Ze=null,Ke=B({},["audio","video","img","source","image","track"]),Je=null,Ye=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,at=!1,lt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,it=i.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=z(t),be=be=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===be?function(e){return e}:w,_e="ALLOWED_TAGS"in t?B({},t.ALLOWED_TAGS,me):Ee,xe="ALLOWED_ATTR"in t?B({},t.ALLOWED_ATTR,me):Se,Je="ADD_URI_SAFE_ATTR"in t?B(z(Ye),t.ADD_URI_SAFE_ATTR,me):Ye,Ze="ADD_DATA_URI_TAGS"in t?B(z(Ke),t.ADD_DATA_URI_TAGS,me):Ke,qe="FORBID_CONTENTS"in t?B({},t.FORBID_CONTENTS,me):$e,Me="FORBID_TAGS"in t?B({},t.FORBID_TAGS,me):{},Be="FORBID_ATTR"in t?B({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,ze=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Ae=t.WHOLE_DOCUMENT||!1,De=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,Ne=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,je=t.IN_PLACE||!1,Ce=t.ALLOWED_URI_REGEXP||Ce,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),Fe&&(De=!0),We&&(_e=B({},n(F)),xe=[],!0===We.html&&(B(_e,O),B(xe,P)),!0===We.svg&&(B(_e,L),B(xe,H),B(xe,G)),!0===We.svgFilters&&(B(_e,A),B(xe,H),B(xe,G)),!0===We.mathMl&&(B(_e,N),B(xe,V),B(xe,G))),t.ADD_TAGS&&(_e===Ee&&(_e=z(_e)),B(_e,t.ADD_TAGS,me)),t.ADD_ATTR&&(xe===Se&&(xe=z(xe)),B(xe,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&B(Je,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(qe===$e&&(qe=z(qe)),B(qe,t.FORBID_CONTENTS,me)),Ue&&(_e["#text"]=!0),Ae&&B(_e,["html","head","body"]),_e.table&&(B(_e,["tbody"]),delete Me.tbody),g&&g(t),rt=t)},ct=B({},["mi","mo","mn","ms","mtext"]),ut=B({},["foreignobject","desc","title","annotation-xml"]),gt=B({},["title","style","font","a","script"]),dt=B({},L);B(dt,A),B(dt,R);var pt=B({},N);B(pt,D);var bt=function(e){var t=ae(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var a=w(e.tagName),l=w(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===et?"svg"===a:t.namespaceURI===Qe?"svg"===a&&("annotation-xml"===l||ct[l]):Boolean(dt[a]):e.namespaceURI===Qe?t.namespaceURI===et?"math"===a:t.namespaceURI===Xe?"math"===a&&ut[l]:Boolean(pt[a]):e.namespaceURI===et&&!(t.namespaceURI===Xe&&!ut[l])&&!(t.namespaceURI===Qe&&!ct[l])&&!pt[a]&&(gt[a]||!dt[a])},mt=function(e){y(l.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=re}catch(t){e.remove()}}},ht=function(e,t){try{y(l.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(l.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(De||Fe)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function(e){var t,a;if(Ne)e="<remove></remove>"+e;else{var l=C(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=ne?ne.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(n,be)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(tt,"template",null);try{t.documentElement.innerHTML=at?"":n}catch(e){}}var r=t.body||t.documentElement;return e&&a&&r.insertBefore(i.createTextNode(a),r.childNodes[0]||null),tt===et?ue.call(t,Ae?"html":"body")[0]:Ae?t.documentElement:r},kt=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},vt=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof b)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,a){pe[e]&&k(pe[e],(function(e){e.call(l,t,a,rt)}))},Ct=function(e){var t;if(wt("beforeSanitizeElements",e,null),vt(e))return mt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var a=me(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:a,allowedTags:_e}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===a&&S(/<template/i,e.innerHTML))return mt(e),!0;if(!_e[a]||Me[a]){if(!Me[a]&&Et(a)){if(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,a))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(a))return!1}if(Ue&&!qe[a]){var n=ae(e)||e.parentNode,r=te(e)||e.childNodes;if(r&&n)for(var i=r.length-1;i>=0;--i)n.insertBefore(X(r[i],!0),ee(e))}return mt(e),!0}return e instanceof u&&!bt(e)?(mt(e),!0):"noscript"!==a&&"noembed"!==a||!S(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=_(t,he," "),t=_(t,fe," "),e.textContent!==t&&(y(l.removed,{element:e.cloneNode()}),e.textContent=t)),wt("afterSanitizeElements",e,null),!1):(mt(e),!0)},_t=function(e,t,a){if(He&&("id"===t||"name"===t)&&(a in i||a in it))return!1;if(Ie&&!Be[t]&&S(ke,t));else if(ze&&S(ve,t));else if(!xe[t]||Be[t]){if(!(Et(e)&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&S(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,a)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(a))))return!1}else if(Je[t]);else if(S(Ce,_(a,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(a,"data:")||!Ze[e])if(Oe&&!S(ye,_(a,we,"")));else if(a)return!1;return!0},Et=function(e){return e.indexOf("-")>0},xt=function(t){var a,n,r,i;wt("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=o.length;i--;){var c=a=o[i],u=c.name,g=c.namespaceURI;if(n="value"===u?a.value:x(a.value),r=me(u),s.attrName=r,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,wt("uponSanitizeAttribute",t,s),n=s.attrValue,!s.forceKeepAttr&&(ht(u,t),s.keepAttr))if(S(/\/>/i,n))ht(u,t);else{Le&&(n=_(n,he," "),n=_(n,fe," "));var d=me(t.nodeName);if(_t(d,r,n)){if(!Ve||"id"!==r&&"name"!==r||(ht(u,t),n=Ge+n),ne&&"object"===e(f)&&"function"==typeof f.getAttributeType)if(g);else switch(f.getAttributeType(d,r)){case"TrustedHTML":n=ne.createHTML(n);break;case"TrustedScriptURL":n=ne.createScriptURL(n)}try{g?t.setAttributeNS(g,u,n):t.setAttribute(u,n),v(l.removed)}catch(e){}}}}wt("afterSanitizeAttributes",t,null)}},St=function e(t){var a,l=kt(t);for(wt("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)wt("uponSanitizeShadowNode",a,null),Ct(a)||(a.content instanceof o&&e(a.content),xt(a));wt("afterSanitizeShadowDOM",t,null)};return l.sanitize=function(t){var n,i,s,u,g,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(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(!l.isSupported){if("object"===e(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof t)return a.toStaticHTML(t);if(yt(t))return a.toStaticHTML(t.outerHTML)}return t}if(Re||st(d),l.removed=[],"string"==typeof t&&(je=!1),je){if(t.nodeName){var p=me(t.nodeName);if(!_e[p]||Me[p])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(i=(n=ft("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!De&&!Le&&!Ae&&-1===t.indexOf("<"))return ne&&Pe?ne.createHTML(t):t;if(!(n=ft(t)))return De?null:Pe?re:""}n&&Ne&&mt(n.firstChild);for(var b=kt(je?t:n);s=b.nextNode();)3===s.nodeType&&s===u||Ct(s)||(s.content instanceof o&&St(s.content),xt(s),u=s);if(u=null,je)return t;if(De){if(Fe)for(g=ce.call(n.ownerDocument);n.firstChild;)g.appendChild(n.firstChild);else g=n;return xe.shadowroot&&(g=ge.call(r,g,!0)),g}var m=Ae?n.outerHTML:n.innerHTML;return Ae&&_e["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(J,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Le&&(m=_(m,he," "),m=_(m,fe," ")),ne&&Pe?ne.createHTML(m):m},l.setConfig=function(e){st(e),Re=!0},l.clearConfig=function(){rt=null,Re=!1},l.isValidAttribute=function(e,t,a){rt||st({});var l=me(e),n=me(t);return _t(l,n,a)},l.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],y(pe[e],t))},l.removeHook=function(e){if(pe[e])return v(pe[e])},l.removeHooks=function(e){pe[e]&&(pe[e]=[])},l.removeAllHooks=function(){pe={}},l}()}()},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),m=s(a),h=0;h<i.length;++h){var f=i[h];if(!(r[f]||l&&l[f]||m&&m[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,m=a?Symbol.for("react.memo"):60115,h=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 h:case m: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=h,t.Memo=m,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)===h},t.isMemo=function(e){return w(e)===m},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===h||e.$$typeof===m||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)}},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.wp.element;function t(){return t=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},t.apply(this,arguments)}var l=window.wp.data,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=t=>{let{uniqueId:a,onClick:l,isDisabled:n=!1}=t;return!n&&(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((t=>{const n=c(t,a);return(0,e.createElement)("button",{key:`layout-${t}`,className:"gb-grid-wrapper-layout-preview-btn",onClick:()=>l(t)},n.map(((a,l)=>{const n=a.sizing.width.replace("%","").replace(".","-");return(0,e.createElement)("div",{key:`layout-${t}-col-${l}`,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"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M21.375 10.9H2.625A.625.625 0 0 1 2 10.275v-7.65C2 2.28 2.28 2 2.625 2h18.75c.345 0 .625.28.625.625v7.65c0 .345-.28.625-.625.625zM3.25 9.65h17.5v-6.4H3.25v6.4zM21.375 22H2.625A.625.625 0 0 1 2 21.375v-7.649c0-.345.28-.625.625-.625h18.75c.345 0 .625.28.625.625v7.649c0 .345-.28.625-.625.625zM3.25 20.75h17.5v-6.4H3.25v6.4z"}),(0,e.createElement)("path",{d:"M15.224 7.075H5.57a.625.625 0 0 1 0-1.25h9.654a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("circle",{cx:"17.624",cy:"6.45",r:".807"}),(0,e.createElement)("path",{d:"M18.431 18.176H8.777a.625.625 0 0 1 0-1.25h9.654a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("circle",{cx:"6.377",cy:"17.551",r:".807"})):"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",className:"gblocks-block-icon"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M17 17.6h-3.6v-1.2h3v-3h1.2V17a.6.6 0 0 1-.6.6zm-6.399 0H7a.6.6 0 0 1-.6-.6v-3.6h1.2v3h3v1.2zm-3-7H6.4V7a.6.6 0 0 1 .6-.6h3.6v1.2h-3v3zm9.999 0h-1.2v-3h-3V6.4H17a.6.6 0 0 1 .6.6v3.6zM21.375 22h-3.75v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625zm-15 0h-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.125zm18.75 0h-1.25V3.25h-3.125V2h3.75c.345 0 .625.28.625.625v3.75zm-1.25 2.812H22v5.625h-1.25z"})):void 0}var b=t=>{let{uniqueId:a,clientId:o}=t;const{insertBlocks:s}=(0,l.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:()=>{s((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,o)},showTooltip:!0})))},m=window.wp.hooks,h=window.wp.primitives,f=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),k={data:new Map,get(e,t){try{return this.data.has(e)?this.data.get(e):"undefined"===(a=localStorage.getItem(e))?void 0:JSON.parse(null!=a?a:"")}catch(e){return t}var a},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,y=window.React,w=a.n(y);const C=[];var _=function(e,t){return"undefined"==typeof window?[null==t?void 0:t.defaultValue,()=>{},{isPersistent:!0,removeItem:()=>{}}]:function(e,t){const a=(0,y.useRef)(!0),l=(0,y.useRef)(null==t?void 0:t.defaultValue).current,[n,r]=(0,y.useReducer)((e=>e+1),0),i=(0,y.useCallback)((t=>{const a="function"==typeof t?t(k.get(e,l)):t;k.set(e,a),(0,v.unstable_batchedUpdates)((()=>{for(const t of C)t.key===e&&t.forceUpdate()}))}),[e,l]);(0,y.useEffect)((()=>{const t=t=>{t.storageArea===localStorage&&t.key===e&&r()};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}),[e]),(0,y.useEffect)((()=>{const t={key:e,forceUpdate:r};return C.push(t),()=>{C.splice(C.indexOf(t),1)}}),[e]);const o=!0===(0,y.useRef)(null==t?void 0:t.ssr).current&&a.current;return o&&(k.data.has(e)||l!==k.get(e,l))&&(r(),a.current=!1),void 0===l||k.data.has(e)||null!==localStorage.getItem(e)||k.set(e,l),(0,y.useMemo)((()=>[o?l:k.get(e,l),i,{isPersistent:o||!k.data.has(e),removeItem(){k.remove(e);for(const t of C)t.key===e&&t.forceUpdate()}}]),[n,e])}(e,t)};class E extends e.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 +!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)for(var o in a)l.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}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(){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}}function l(e,n,r){return l=a()?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},l.apply(null,arguments)}function n(e){return function(e){if(Array.isArray(e))return r(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 r(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)?r(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 r(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 i=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,g=Object.freeze,d=Object.seal,p=Object.create,b="undefined"!=typeof Reflect&&Reflect,m=b.apply,h=b.construct;m||(m=function(e,t,a){return e.apply(t,a)}),g||(g=function(e){return e}),d||(d=function(e){return e}),h||(h=function(e,t){return l(e,n(t))});var f,k=M(Array.prototype.forEach),v=M(Array.prototype.pop),y=M(Array.prototype.push),w=M(String.prototype.toLowerCase),C=M(String.prototype.match),_=M(String.prototype.replace),E=M(String.prototype.indexOf),x=M(String.prototype.trim),S=M(RegExp.prototype.test),T=(f=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return h(f,t)});function M(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 m(e,t,l)}}function B(e,t,a){a=a||w,o&&o(e,null);for(var l=t.length;l--;){var n=t[l];if("string"==typeof n){var r=a(n);r!==n&&(s(t)||(t[l]=r),n=r)}e[n]=!0}return e}function z(e){var t,a=p(null);for(t in e)m(i,e,[t])&&(a[t]=e[t]);return a}function I(e,t){for(;null!==e;){var a=u(e,t);if(a){if(a.get)return M(a.get);if("function"==typeof a.value)return M(a.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var O=g(["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"]),L=g(["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"]),A=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=g(["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=g(["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=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=g(["#text"]),P=g(["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"]),H=g(["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=g(["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"]),G=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=d(/<%[\w\W]*|[\w\W]*%>/gm),W=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),$=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),K=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=d(/^html$/i),Y=function(){return"undefined"==typeof window?null:window},Q=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}};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),l=function(e){return t(e)};if(l.version="2.4.0",l.removed=[],!a||!a.document||9!==a.document.nodeType)return l.isSupported=!1,l;var r=a.document,i=a.document,o=a.DocumentFragment,s=a.HTMLTemplateElement,c=a.Node,u=a.Element,d=a.NodeFilter,p=a.NamedNodeMap,b=void 0===p?a.NamedNodeMap||a.MozNamedAttrMap:p,m=a.HTMLFormElement,h=a.DOMParser,f=a.trustedTypes,M=u.prototype,X=I(M,"cloneNode"),ee=I(M,"nextSibling"),te=I(M,"childNodes"),ae=I(M,"parentNode");if("function"==typeof s){var le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}var ne=Q(f,r),re=ne?ne.createHTML(""):"",ie=i,oe=ie.implementation,se=ie.createNodeIterator,ce=ie.createDocumentFragment,ue=ie.getElementsByTagName,ge=r.importNode,de={};try{de=z(i).documentMode?i.documentMode:{}}catch(e){}var pe={};l.isSupported="function"==typeof ae&&oe&&void 0!==oe.createHTMLDocument&&9!==de;var be,me,he=j,fe=U,ke=W,ve=q,ye=Z,we=K,Ce=$,_e=null,Ee=B({},[].concat(n(O),n(L),n(A),n(D),n(F))),xe=null,Se=B({},[].concat(n(P),n(H),n(V),n(G))),Te=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}})),Me=null,Be=null,ze=!0,Ie=!0,Oe=!1,Le=!1,Ae=!1,Re=!1,De=!1,Ne=!1,Fe=!1,Pe=!1,He=!0,Ve=!1,Ge="user-content-",je=!0,Ue=!1,We={},qe=null,$e=B({},["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"]),Ze=null,Ke=B({},["audio","video","img","source","image","track"]),Je=null,Ye=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,at=!1,lt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,it=i.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=z(t),be=be=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===be?function(e){return e}:w,_e="ALLOWED_TAGS"in t?B({},t.ALLOWED_TAGS,me):Ee,xe="ALLOWED_ATTR"in t?B({},t.ALLOWED_ATTR,me):Se,Je="ADD_URI_SAFE_ATTR"in t?B(z(Ye),t.ADD_URI_SAFE_ATTR,me):Ye,Ze="ADD_DATA_URI_TAGS"in t?B(z(Ke),t.ADD_DATA_URI_TAGS,me):Ke,qe="FORBID_CONTENTS"in t?B({},t.FORBID_CONTENTS,me):$e,Me="FORBID_TAGS"in t?B({},t.FORBID_TAGS,me):{},Be="FORBID_ATTR"in t?B({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,ze=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Ae=t.WHOLE_DOCUMENT||!1,Ne=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,je=!1!==t.KEEP_CONTENT,Ue=t.IN_PLACE||!1,Ce=t.ALLOWED_URI_REGEXP||Ce,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),Fe&&(Ne=!0),We&&(_e=B({},n(F)),xe=[],!0===We.html&&(B(_e,O),B(xe,P)),!0===We.svg&&(B(_e,L),B(xe,H),B(xe,G)),!0===We.svgFilters&&(B(_e,A),B(xe,H),B(xe,G)),!0===We.mathMl&&(B(_e,D),B(xe,V),B(xe,G))),t.ADD_TAGS&&(_e===Ee&&(_e=z(_e)),B(_e,t.ADD_TAGS,me)),t.ADD_ATTR&&(xe===Se&&(xe=z(xe)),B(xe,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&B(Je,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(qe===$e&&(qe=z(qe)),B(qe,t.FORBID_CONTENTS,me)),je&&(_e["#text"]=!0),Ae&&B(_e,["html","head","body"]),_e.table&&(B(_e,["tbody"]),delete Me.tbody),g&&g(t),rt=t)},ct=B({},["mi","mo","mn","ms","mtext"]),ut=B({},["foreignobject","desc","title","annotation-xml"]),gt=B({},["title","style","font","a","script"]),dt=B({},L);B(dt,A),B(dt,R);var pt=B({},D);B(pt,N);var bt=function(e){var t=ae(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var a=w(e.tagName),l=w(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===et?"svg"===a:t.namespaceURI===Qe?"svg"===a&&("annotation-xml"===l||ct[l]):Boolean(dt[a]):e.namespaceURI===Qe?t.namespaceURI===et?"math"===a:t.namespaceURI===Xe?"math"===a&&ut[l]:Boolean(pt[a]):e.namespaceURI===et&&!(t.namespaceURI===Xe&&!ut[l])&&!(t.namespaceURI===Qe&&!ct[l])&&!pt[a]&&(gt[a]||!dt[a])},mt=function(e){y(l.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=re}catch(t){e.remove()}}},ht=function(e,t){try{y(l.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(l.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Ne||Fe)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function(e){var t,a;if(De)e="<remove></remove>"+e;else{var l=C(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=ne?ne.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(n,be)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(tt,"template",null);try{t.documentElement.innerHTML=at?"":n}catch(e){}}var r=t.body||t.documentElement;return e&&a&&r.insertBefore(i.createTextNode(a),r.childNodes[0]||null),tt===et?ue.call(t,Ae?"html":"body")[0]:Ae?t.documentElement:r},kt=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},vt=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof b)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,a){pe[e]&&k(pe[e],(function(e){e.call(l,t,a,rt)}))},Ct=function(e){var t;if(wt("beforeSanitizeElements",e,null),vt(e))return mt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var a=me(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:a,allowedTags:_e}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===a&&S(/<template/i,e.innerHTML))return mt(e),!0;if(!_e[a]||Me[a]){if(!Me[a]&&Et(a)){if(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,a))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(a))return!1}if(je&&!qe[a]){var n=ae(e)||e.parentNode,r=te(e)||e.childNodes;if(r&&n)for(var i=r.length-1;i>=0;--i)n.insertBefore(X(r[i],!0),ee(e))}return mt(e),!0}return e instanceof u&&!bt(e)?(mt(e),!0):"noscript"!==a&&"noembed"!==a||!S(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=_(t,he," "),t=_(t,fe," "),e.textContent!==t&&(y(l.removed,{element:e.cloneNode()}),e.textContent=t)),wt("afterSanitizeElements",e,null),!1):(mt(e),!0)},_t=function(e,t,a){if(He&&("id"===t||"name"===t)&&(a in i||a in it))return!1;if(Ie&&!Be[t]&&S(ke,t));else if(ze&&S(ve,t));else if(!xe[t]||Be[t]){if(!(Et(e)&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&S(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,a)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(a))))return!1}else if(Je[t]);else if(S(Ce,_(a,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(a,"data:")||!Ze[e])if(Oe&&!S(ye,_(a,we,"")));else if(a)return!1;return!0},Et=function(e){return e.indexOf("-")>0},xt=function(t){var a,n,r,i;wt("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=o.length;i--;){var c=a=o[i],u=c.name,g=c.namespaceURI;if(n="value"===u?a.value:x(a.value),r=me(u),s.attrName=r,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,wt("uponSanitizeAttribute",t,s),n=s.attrValue,!s.forceKeepAttr&&(ht(u,t),s.keepAttr))if(S(/\/>/i,n))ht(u,t);else{Le&&(n=_(n,he," "),n=_(n,fe," "));var d=me(t.nodeName);if(_t(d,r,n)){if(!Ve||"id"!==r&&"name"!==r||(ht(u,t),n=Ge+n),ne&&"object"===e(f)&&"function"==typeof f.getAttributeType)if(g);else switch(f.getAttributeType(d,r)){case"TrustedHTML":n=ne.createHTML(n);break;case"TrustedScriptURL":n=ne.createScriptURL(n)}try{g?t.setAttributeNS(g,u,n):t.setAttribute(u,n),v(l.removed)}catch(e){}}}}wt("afterSanitizeAttributes",t,null)}},St=function e(t){var a,l=kt(t);for(wt("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)wt("uponSanitizeShadowNode",a,null),Ct(a)||(a.content instanceof o&&e(a.content),xt(a));wt("afterSanitizeShadowDOM",t,null)};return l.sanitize=function(t){var n,i,s,u,g,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(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(!l.isSupported){if("object"===e(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof t)return a.toStaticHTML(t);if(yt(t))return a.toStaticHTML(t.outerHTML)}return t}if(Re||st(d),l.removed=[],"string"==typeof t&&(Ue=!1),Ue){if(t.nodeName){var p=me(t.nodeName);if(!_e[p]||Me[p])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(i=(n=ft("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Ne&&!Le&&!Ae&&-1===t.indexOf("<"))return ne&&Pe?ne.createHTML(t):t;if(!(n=ft(t)))return Ne?null:Pe?re:""}n&&De&&mt(n.firstChild);for(var b=kt(Ue?t:n);s=b.nextNode();)3===s.nodeType&&s===u||Ct(s)||(s.content instanceof o&&St(s.content),xt(s),u=s);if(u=null,Ue)return t;if(Ne){if(Fe)for(g=ce.call(n.ownerDocument);n.firstChild;)g.appendChild(n.firstChild);else g=n;return xe.shadowroot&&(g=ge.call(r,g,!0)),g}var m=Ae?n.outerHTML:n.innerHTML;return Ae&&_e["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(J,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Le&&(m=_(m,he," "),m=_(m,fe," ")),ne&&Pe?ne.createHTML(m):m},l.setConfig=function(e){st(e),Re=!0},l.clearConfig=function(){rt=null,Re=!1},l.isValidAttribute=function(e,t,a){rt||st({});var l=me(e),n=me(t);return _t(l,n,a)},l.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],y(pe[e],t))},l.removeHook=function(e){if(pe[e])return v(pe[e])},l.removeHooks=function(e){pe[e]&&(pe[e]=[])},l.removeAllHooks=function(){pe={}},l}()}()},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),m=s(a),h=0;h<i.length;++h){var f=i[h];if(!(r[f]||l&&l[f]||m&&m[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,m=a?Symbol.for("react.memo"):60115,h=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 h:case m: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=h,t.Memo=m,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)===h},t.isMemo=function(e){return w(e)===m},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===h||e.$$typeof===m||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)}},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.wp.element;function t(){return t=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},t.apply(this,arguments)}var l=window.wp.data,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=t=>{let{uniqueId:a,onClick:l,isDisabled:n=!1}=t;return!n&&(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((t=>{const n=c(t,a);return(0,e.createElement)("button",{key:`layout-${t}`,className:"gb-grid-wrapper-layout-preview-btn",onClick:()=>l(t)},n.map(((a,l)=>{const n=a.sizing.width.replace("%","").replace(".","-");return(0,e.createElement)("div",{key:`layout-${t}-col-${l}`,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"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M21.375 10.9H2.625A.625.625 0 0 1 2 10.275v-7.65C2 2.28 2.28 2 2.625 2h18.75c.345 0 .625.28.625.625v7.65c0 .345-.28.625-.625.625zM3.25 9.65h17.5v-6.4H3.25v6.4zM21.375 22H2.625A.625.625 0 0 1 2 21.375v-7.649c0-.345.28-.625.625-.625h18.75c.345 0 .625.28.625.625v7.649c0 .345-.28.625-.625.625zM3.25 20.75h17.5v-6.4H3.25v6.4z"}),(0,e.createElement)("path",{d:"M15.224 7.075H5.57a.625.625 0 0 1 0-1.25h9.654a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("circle",{cx:"17.624",cy:"6.45",r:".807"}),(0,e.createElement)("path",{d:"M18.431 18.176H8.777a.625.625 0 0 1 0-1.25h9.654a.625.625 0 0 1 0 1.25z"}),(0,e.createElement)("circle",{cx:"6.377",cy:"17.551",r:".807"})):"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",className:"gblocks-block-icon"},(0,e.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M17 17.6h-3.6v-1.2h3v-3h1.2V17a.6.6 0 0 1-.6.6zm-6.399 0H7a.6.6 0 0 1-.6-.6v-3.6h1.2v3h3v1.2zm-3-7H6.4V7a.6.6 0 0 1 .6-.6h3.6v1.2h-3v3zm9.999 0h-1.2v-3h-3V6.4H17a.6.6 0 0 1 .6.6v3.6zM21.375 22h-3.75v-1.25h3.125v-3.125H22v3.75c0 .345-.28.625-.625.625zm-15 0h-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.125zm18.75 0h-1.25V3.25h-3.125V2h3.75c.345 0 .625.28.625.625v3.75zm-1.25 2.812H22v5.625h-1.25z"})):void 0}var b=t=>{let{uniqueId:a,clientId:o}=t;const{insertBlocks:s}=(0,l.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:()=>{s((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,o)},showTooltip:!0})))},m=window.wp.hooks,h=window.wp.primitives,f=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),k={data:new Map,get(e,t){try{return this.data.has(e)?this.data.get(e):"undefined"===(a=localStorage.getItem(e))?void 0:JSON.parse(null!=a?a:"")}catch(e){return t}var a},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,y=window.React,w=a.n(y);const C=[];var _=function(e,t){return"undefined"==typeof window?[null==t?void 0:t.defaultValue,()=>{},{isPersistent:!0,removeItem:()=>{}}]:function(e,t){const a=(0,y.useRef)(!0),l=(0,y.useRef)(null==t?void 0:t.defaultValue).current,[n,r]=(0,y.useReducer)((e=>e+1),0),i=(0,y.useCallback)((t=>{const a="function"==typeof t?t(k.get(e,l)):t;k.set(e,a),(0,v.unstable_batchedUpdates)((()=>{for(const t of C)t.key===e&&t.forceUpdate()}))}),[e,l]);(0,y.useEffect)((()=>{const t=t=>{t.storageArea===localStorage&&t.key===e&&r()};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}),[e]),(0,y.useEffect)((()=>{const t={key:e,forceUpdate:r};return C.push(t),()=>{C.splice(C.indexOf(t),1)}}),[e]);const o=!0===(0,y.useRef)(null==t?void 0:t.ssr).current&&a.current;return o&&(k.data.has(e)||l!==k.get(e,l))&&(r(),a.current=!1),void 0===l||k.data.has(e)||null!==localStorage.getItem(e)||k.set(e,l),(0,y.useMemo)((()=>[o?l:k.get(e,l),i,{isPersistent:o||!k.data.has(e),removeItem(){k.remove(e);for(const t of C)t.key===e&&t.forceUpdate()}}]),[n,e])}(e,t)};class E extends e.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,isSmall:!0,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 x(e){return e||0===e}function S(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||(n=l),n}function T(t){const{label:a,attributeName:l,attributes:n,setAttributes:o,units:s=[],unit:c="px",device:u,presets:g=[],min:d=0,max:p,step:b,id:h=l,defaultPlaceholder:k=""}=t,[v,y]=(0,e.useState)(!1),[w,C]=_("generateblocksCustomInputs",{ssr:!0,defaultValue:[]}),T={value:l,unit:l+"Unit"};u&&"Desktop"!==u&&(T.value+=u);const M=(0,m.applyFilters)("generateblocns.editor.numberPresets",g,t),B=M.length>0?M[0].data:[],z=M.length>0?M[0].unit:"px",I=B.length>0&&"object"==typeof B[0]?B.find((e=>e.value===n[T.value])):B.includes(n[T.value]),O="Desktop"!==u&&S(T.value,n,u,""),L=0===M.length||!!x(n[T.value])&&!I||O||v||w.some((e=>e.includes(l)));return(0,e.createElement)(r.BaseControl,{label:0===s.length?a:null,id:h,className:"gblocks-number-component"},s.length>0&&(0,e.createElement)(E,{label:a,id:h,value:n[T.unit]||c,units:s,singleOption:!L,onClick:e=>(void 0!==n[T.unit]&&o({[T.unit]:e}),!1)}),!L&&(0,e.createElement)(r.ButtonGroup,{className:"gblocks-component-number-presets"},B.map(((t,a)=>{const i="object"==typeof t?t.value:t,s="object"==typeof t?t.label:t;return(0,e.createElement)(r.Button,{key:a,isPrimary:i===n[T.value]||i===k&&!x(n[T.value]),onClick:()=>{n[T.value]!==i?o({[T.value]:i,[T.unit]:z}):o({[T.value]:""}),"verticalGap"===l&&o({useLegacyRowGap:!1})}},s)})),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Custom","generateblocks")},(0,e.createElement)(r.Button,{icon:f,onClick:()=>{y(!0),C([...w,l])}}))),L&&(0,e.createElement)("div",{className:"gblocks-number-component__input"},(0,e.createElement)(r.TextControl,{type:"number",value:x(n[T.value])?n[T.value]:"",placeholder:S(T.value,n,u,k),id:h,min:d,max:p,step:b,autoComplete:"off",onChange:e=>{d>=0&&(e=e.toString().replace(/-/g,"")),o({[T.value]:e})},onBlur:()=>{""!==n[T.value]&&!1!==n[T.value]&&o({[T.value]:parseFloat(n[T.value])}),"verticalGap"===l&&o({useLegacyRowGap:!1})},onClick:e=>{e.currentTarget.focus()}}),M.length>0&&(I||!x(n[T.value]))&&!O&&(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Presets","generateblocks")},(0,e.createElement)(r.Button,{icon:f,onClick:()=>{y(!1),o({[T.unit]:z}),C(w.filter((e=>e!==l)))}}))))}var M=a=>{const{attributes:l,state:n,deviceType:o,setAttributes:s}=a,{verticalAlignment:c,verticalAlignmentTablet:u,verticalAlignmentMobile:g,horizontalAlignment:d,horizontalAlignmentTablet:p,horizontalAlignmentMobile:b}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(T,t({},a,{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)(T,t({},a,{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)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:c,help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),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)(e.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)(e.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,m.applyFilters)("generateblocks.editor.controls","","gridLayout",a,n))};const B=/[\s#]/g;var z=t=>{let{anchor:a,setAttributes:l}=t;return(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:a||"",onChange:e=>{const t=e.replace(B,"-");l({anchor:t})}})},I=t=>(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t));function O(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 L(e,t){return!(!e&&0!==e)&&e+t}class A extends e.Component{render(){const t=(0,m.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?"":L(n,"px")}],c[g]=[{"padding-left":L(l,"px"),"margin-bottom":s?L(n,"px"):""}],c=(0,m.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"grid"),(0,e.createElement)("style",null,O(c))}}class R extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class N extends e.Component{render(){const t=(0,m.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:L(n,"px")}],c[g]=[{"padding-left":L(l,"px"),"margin-bottom":s&&(n||0===n)?L(n,"px"):null}],c=(0,m.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"grid"),(0,e.createElement)("style",null,O(c))}}class D extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class F extends e.Component{render(){const t=(0,m.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:L(n,"px")}],c[g]=[{"padding-left":L(l,"px"),"margin-bottom":s&&(n||0===n)?L(n,"px"):null}],c=(0,m.applyFilters)("generateblocks.editor.mobileCSS",c,this.props,"grid"),(0,e.createElement)("style",null,O(c))}}var P=window.lodash,H=a.n(P);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,P.isEqual)(a[e],l[e]))));var a,l}var G=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(A,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(R,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(N,t),"Tablet"===a&&(0,e.createElement)(D,t),"Mobile"===a&&(0,e.createElement)(F,t)))}),V),U=window.wp.compose,j=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop";const[a,n]=_("generateblocksDeviceType",{ssr:!0,defaultValue:t});if(!(0,l.dispatch)("core/edit-post"))return[a,e=>{n(e)}];const{__experimentalSetPreviewDeviceType:r=(()=>{})}=(0,l.useDispatch)("core/edit-post"),i=(0,l.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t=(()=>!1)}=e("core/edit-post");return t()}),[]);(0,e.useEffect)((()=>{i!==a&&n(i)}),[i]);const o=e=>{generateBlocksInfo&&generateBlocksInfo.syncResponsivePreviews&&r(e),n(e)};return[a,o]},W=e=>{const t=(0,l.useSelect)((t=>t("core/block-editor").getBlock(e)));return t?t.innerBlocks.length:0},q=window.wp.coreData,$=()=>(0,l.useSelect)((e=>{const{getTaxonomies:t}=e(q.store);return t({per_page:-1})||[]}),[]);const Z={query:{},records:[],isLoading:!1};function K(e){return Object.assign({},Z,e)}function J(e,t){const a={...e};switch(t.type){case"SET_RECORDS":return Object.assign({},a,{records:(0,P.orderBy)((0,P.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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;const[a,l]=(0,e.useReducer)(J,t,K);return{records:a.records,setRecords:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return l({type:"SET_RECORDS",payload:e})},query:a.query,setQuery:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({type:"SET_QUERY",payload:e})},isLoading:a.isLoading,setIsLoading:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l({type:"SET_IS_LOADING",payload:e})},reset:()=>l({type:"RESET"})}}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.useSelect)((a=>{const{getEntityRecords:l,isResolving:n}=a(q.store),r=Object.assign({per_page:-1},t);r.hasOwnProperty("include")&&(0,P.isUndefined)(r.include)&&delete r.include;const i=["taxonomy",e,r];return{records:l(...i)||[],isResolving:n("getEntityRecords",i)}}),[e,JSON.stringify(t)])}function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(q.store),n=Object.assign({per_page:-1,who:"authors"},e);n.hasOwnProperty("include")&&(0,P.isUndefined)(n.include)&&delete n.include;const r=["root","user",n];return{records:a(...r)||[],isResolving:l("getEntityRecords",r)}}),[JSON.stringify(e)])}const ee=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}=ee(t.innerBlocks);e.uniqueIds=e.uniqueIds.concat(a),e.clientIds=e.clientIds.concat(l)}return e}),{uniqueIds:[],clientIds:[]});var te=t=>a=>{const{clientId:r,attributes:i}=a,{updateBlockAttributes:o}=(0,l.useDispatch)(n.store);return(0,e.useEffect)((()=>{const{uniqueIds:e,clientIds:t}=ee(wp.data.select("core/block-editor").getBlocks());if(!i.uniqueId||(a=e,l=i.uniqueId,n=t.indexOf(r),a.filter((e=>e===l)).length>1&&n===a.lastIndexOf(l))){const e=(e=>e.substr(2,9).replace("-",""))(r);o(r,{uniqueId:e})}var a,l,n}),[r]),(0,e.createElement)(t,a)};function ae(e){return""===e.uniqueId}function le(e,t){return!e||e<t}var ne=a=>l=>{const[n]=j();return(0,e.createElement)(a,t({},l,{deviceType:n}))};class re extends e.Component{render(){const{name:e,children:t}=this.props;return(0,m.applyFilters)(e,t||"",this.props)}}var ie=e=>e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype;function oe(t){const{title:a=!1,initialOpen:l=!1,icon:n,className:i,id:o,state:s,showPanel:c=!0,children:u}=t,[g,d]=_("generateblocksPanels",{ssr:!0,defaultValue:{}});return(0,m.applyFilters)("generateblocks.editor.showPanel",c,o,t)?!u||ie(u)?null:(0,e.createElement)(re,{name:"generateblocks.panel."+o,props:t,state:s},a?(0,e.createElement)(r.PanelBody,{title:a,initialOpen:void 0!==g[o]?g[o]:l,icon:n,className:i,onToggle:()=>{const e=g[o]||void 0===g[o]&&l;d({...g,[o]:!e})}},(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t)):(0,e.createElement)(r.PanelBody,null,(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t))):null}const se=[{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/"}],ce=(0,U.createHigherOrderComponent)((a=>l=>{const{name:r,state:o}=l,s=se.find((e=>r===e.name));return s&&0!==s.length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a,l),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(oe,t({},l,{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,m.applyFilters)("generateblocks.editor.controls","",s.id,l,o)))):(0,e.createElement)(a,l)}),"withDocumentation");function ue(e,t,a){var l=this,n=(0,y.useRef)(null),r=(0,y.useRef)(0),i=(0,y.useRef)(null),o=(0,y.useRef)([]),s=(0,y.useRef)(),c=(0,y.useRef)(),u=(0,y.useRef)(e),g=(0,y.useRef)(!0);u.current=e;var d=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(a=a||{}).leading,b=!("trailing"in a)||!!a.trailing,m="maxWait"in a,h=m?Math.max(+a.maxWait||0,t):null;(0,y.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var f=(0,y.useMemo)((function(){var e=function(e){var t=o.current,a=s.current;return o.current=s.current=null,r.current=e,c.current=u.current.apply(a,t)},a=function(e,t){d&&cancelAnimationFrame(i.current),i.current=d?requestAnimationFrame(e):setTimeout(e,t)},f=function(e){if(!g.current)return!1;var a=e-n.current,l=e-r.current;return!n.current||a>=t||a<0||m&&l>=h},k=function(t){return i.current=null,b&&o.current?e(t):(o.current=s.current=null,c.current)},v=function(){var e=Date.now();if(f(e))return k(e);if(g.current){var l=e-n.current,i=e-r.current,o=t-l,s=m?Math.min(o,h-i):o;a(v,s)}},y=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var b=Date.now(),h=f(b);if(o.current=u,s.current=l,n.current=b,h){if(!i.current&&g.current)return r.current=n.current,a(v,t),p?e(n.current):c.current;if(m)return a(v,t),e(n.current)}return i.current||a(v,t),c.current};return y.cancel=function(){i.current&&(d?cancelAnimationFrame(i.current):clearTimeout(i.current)),r.current=0,o.current=n.current=s.current=i.current=null},y.isPending=function(){return!!i.current},y.flush=function(){return i.current?k(Date.now()):c.current},y}),[p,m,t,h,b,d]);return f}(0,m.addFilter)("editor.BlockEdit","generateblocks/with-documentation",ce,99);const ge=(0,e.memo)((function(a){let{blocks:l,contextId:r,setActiveContextId:i,isHidden:o}=a;const s=(0,n.__experimentalUseBlockPreview)({blocks:l}),c=()=>i(r),u={display:o?"none":void 0};return(0,e.createElement)("div",t({},s,{className:"block-editor-inner-blocks gb-query-loop-block-preview",tabIndex:0,role:"button",onClick:c,onKeyPress:c,style:u}))}));function de(e){return e.map((e=>{const t=de(e.innerBlocks),a=Object.assign({},e.attributes,{isBlockPreview:!0});return Object.assign({},e,{attributes:a,innerBlocks:t})}))}function pe(a){const{clientId:o,data:s,hasData:c,isResolvingData:u,hasResolvedData:g,templateLock:d,contextCallback:p}=a,b=(0,l.useSelect)((e=>{var t;return null===(t=e("core/block-editor"))||void 0===t?void 0:t.getBlocks(o)}),[]),{getSelectedBlock:m}=(0,l.useSelect)(n.store),[h,f]=(0,e.useState)([]),[k,v]=(0,e.useState)();(0,e.useEffect)((()=>{f(de(b))}),[]);const y=ue((()=>{f(de(b))}),10),w=["core/paragraph","core/heading","core/button","generateblocks/headline","generateblocks/button"];(0,e.useEffect)((()=>{var e,t;const a=m();!w.includes(null==a?void 0:a.name)||null!=a&&null!==(e=a.attributes)&&void 0!==e&&e.useDynamicData||null!=a&&null!==(t=a.attributes)&&void 0!==t&&t.dynamicContentType?f(de(b)):y()}),[JSON.stringify(b)]);const C=(0,e.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((l=>{var r,i;return(0,e.createElement)(n.BlockContextProvider,{key:l.postId,value:l},l.postId===(k||(null===(r=C[0])||void 0===r?void 0:r.postId))?(0,e.createElement)(n.InnerBlocks,t({},a,{templateLock:d})):null,(0,e.createElement)(ge,{blocks:h,contextId:l.postId,setActiveContextId:v,isHidden:l.postId===(k||(null===(i=C[0])||void 0===i?void 0:i.postId))}))}))}function be(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,a]=e;return"alt"===t||(Array.isArray(a)?!!a.length:!!a)})))}function me(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=t?`${e.rest}_exclude`:e.rest;return{[a]:{terms:e.terms,include_children:null==e?void 0:e.includeChildren}}}function he(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce(((e,a)=>Object.assign({},e,me(a,t))),{})}function fe(t){const{clientId:a,context:n}=t,r=n["generateblocks/query"]||{},i=(0,e.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,m.applyFilters)("generateblocks.editor.query-loop.normalize-parameters",n)}(e);if(Array.isArray(t.tax_query)){const e=he(t.tax_query);t=Object.assign({},t,e,{tax_query:void 0})}if(Array.isArray(t.tax_query_exclude)){const e=he(t.tax_query_exclude,!0);t=Object.assign({},t,e,{tax_query_exclude:void 0})}return t}(be(r))),[JSON.stringify(r)]),{data:o,isResolvingData:s,hasResolvedData:c}=(0,l.useSelect)((e=>{const{getEntityRecords:t,isResolving:a,hasFinishedResolution:l}=e(q.store),n=["postType",r.post_type||"post",i];return{data:t(...n),isResolvingData:a("getEntityRecords",n),hasResolvedData:l("getEntityRecords",n)}}),[JSON.stringify(i)]);return(0,e.createElement)("div",{className:"gb-post-template-wrapper"},(0,e.createElement)(pe,{data:o,hasData:!(!c||null==o||!o.length),isResolvingData:s,hasResolvedData:c,templateLock:!0,clientId:a,contextCallback:e=>({postType:e.type,postId:e.id})}))}var ke={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},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,inlineWidth:!1,stackVertically:!1,fillHorizontalSpace:!1,dimensions:[]},colors:{enabled:!1,elements:[]},backgroundPanel:{enabled:!1,backgroundImage:!1,backgroundGradient:!1},shapesPanel:{enabled:!1},icon:{enabled:!1,location:[]}}},ve=(0,P.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,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},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:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]},{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}}},ke),ye=(0,P.defaultsDeep)({id:"buttonContainer",supports:{responsiveTabs:!0,spacing:{enabled:!0,stackVertically:!0,fillHorizontalSpace:!0,dimensions:[{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]}]}}},ke),we=(0,P.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,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},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"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"borderColorHover",alpha:!0}]}]},backgroundPanel:{enabled:!0,backgroundGradient:!0},icon:{enabled:!0,location:[{label:(0,i.__)("Left","generateblocks"),value:"left"},{label:(0,i.__)("Right","generateblocks"),value:"right"}]}}},ke),Ce=(0,P.defaultsDeep)({id:"image",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,icon:"backgrounds"},spacing:{enabled:!0,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},colors:{enabled:!0,elements:[{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]}}},ke),_e=(0,P.defaultsDeep)({id:"grid",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,label:(0,i.__)("Layout","generateblocks"),icon:"layout"}}},ke),Ee=(0,P.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},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,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},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:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]},backgroundPanel:{enabled:!0,backgroundImage:!0,backgroundGradient:!0},shapesPanel:{enabled:!0}}},ke);const xe=(0,e.createContext)(ke),Se=t=>a=>{const l=(0,m.applyFilters)("generateblocks.editor.blockContext",(n=a.name,{"generateblocks/headline":ve,"generateblocks/button-container":ye,"generateblocks/button":we,"generateblocks/image":Ce,"generateblocks/grid":_e,"generateblocks/container":Ee}[n]),a);var n;return(0,e.createElement)(xe.Provider,{value:l},(0,e.createElement)(t,a))};function Te(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{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{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.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}}}(a))),l}(0,m.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 Me=xe,Be=function(t){let{icon:a,size:l=24,...n}=t;return(0,e.cloneElement)(a,{width:l,height:l,...n})},ze=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.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"})),Ie=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.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"})),Oe=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.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 Le=(0,e.memo)((function(t){let{deviceKey:a,label:l,isActive:n,onClick:i,icon:o}=t;return(0,e.createElement)(r.Tooltip,{text:l},(0,e.createElement)(r.Button,{isPressed:n,onClick:()=>i(a)},(0,e.createElement)(Be,{icon:o})))})),Ae=[{key:"Desktop",label:(0,i.__)("Show options for all devices","generateblocks"),icon:ze},{key:"Tablet",label:(0,i.__)("Show options for tablet devices","generateblocks"),icon:Ie},{key:"Mobile",label:(0,i.__)("Show options for mobile devices","generateblocks"),icon:Oe}];function Re(){const[t,a]=j(),l=(0,e.useCallback)(a,[]);return(0,e.createElement)(e.Fragment,null,Ae&&Ae.map((a=>(0,e.createElement)(Le,{key:a.key,deviceKey:a.key,label:a.label,isActive:t===a.key,icon:a.icon,onClick:l}))))}var Ne=(0,e.memo)((function(){return(0,e.useEffect)((()=>{const t=document.querySelector(".block-editor-block-inspector"),a=document.querySelector(".gb-responsive-tabs");if(!t||a)return;const l=document.querySelector(".edit-post-sidebar .edit-post-sidebar__panel-tabs"),n=l?`${l.offsetHeight}px`:0,r=document.createElement("div");r.classList.add("gb-responsive-tabs"),r.style.top=n,t.prepend(r),(0,e.render)((0,e.createElement)(Re,null),document.querySelector(".gb-responsive-tabs"))}),[]),null}));function De(t){let{attributes:a,computedStyles:l,setAttributes:n,device:r}=t;return(0,e.createElement)(T,{label:(0,i.__)("Font Size","generateblocks"),attributeName:"fontSize",units:["px","em","%"],defaultPlaceholder:l.fontSize&&"px"===a.fontSizeUnit?l.fontSize:"",presets:[{unit:"px",data:[13,17,25,35]}],min:"1",attributes:a,setAttributes:n,device:r})}var Fe=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"})),Pe=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"})),He=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"})),Ve=(0,e.createElement)(h.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})),Ge={fontFamily:[{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}],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:Fe,title:(0,i.__)("Align text left","generateblocks"),align:"left"},{icon:Pe,title:(0,i.__)("Align text center","generateblocks"),align:"center"},{icon:He,title:(0,i.__)("Align text right","generateblocks"),align:"right"},{icon:Ve,title:(0,i.__)("Justify text","generateblocks"),align:"justify"}]};function Ue(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{labelPosition:"top",label:(0,i.__)("Font weight","generateblocks"),value:a,options:Ge.fontWeight,onChange:l})}function je(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{labelPosition:"top",label:(0,i.__)("Transform","generateblocks"),value:a,options:Ge.textTransform,onChange:l})}function We(t){let{attributes:a,setAttributes:l,device:n}=t;return(0,e.createElement)(T,{label:(0,i.__)("Letter Spacing","generateblocks"),attributeName:"letterSpacing",unit:"em",units:["em"],device:n,attributes:a,setAttributes:l,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:-.02},{label:(0,i.__)("Medium","generateblocks"),value:.02},{label:(0,i.__)("Large","generateblocks"),value:.05}]}],min:-1,step:.01})}function qe(t){let{attributes:a,setAttributes:l,device:n}=t;return(0,e.createElement)(T,{label:(0,i.__)("Line Height","generateblocks"),attributeName:"lineHeight",units:["px","em","%"],device:n,attributes:a,setAttributes:l,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:.8},{label:(0,i.__)("Medium","generateblocks"),value:1},{label:(0,i.__)("Large","generateblocks"),value:1.5}]}],min:"0",step:.1})}var $e=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 Ze(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ke(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 Je(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(a),!0).forEach((function(t){Ze(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ke(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Ye(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 Qe(e,t){if(e){if("string"==typeof e)return Ye(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)?Ye(e,t):void 0}}function Xe(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=[],_n=!0,i=!1;try{for(a=a.call(e);!(_n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);_n=!0);}catch(e){i=!0,n=e}finally{try{_n||null==a.return||a.return()}finally{if(i)throw n}}return r}}(e,t)||Qe(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 et(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 tt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function at(e){var t=e.defaultInputValue,a=void 0===t?"":t,l=e.defaultMenuIsOpen,n=void 0!==l&&l,r=e.defaultValue,i=void 0===r?null:r,o=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,g=e.onMenuClose,d=e.onMenuOpen,p=e.value,b=et(e,tt),m=Xe((0,y.useState)(void 0!==o?o:a),2),h=m[0],f=m[1],k=Xe((0,y.useState)(void 0!==s?s:n),2),v=k[0],w=k[1],C=Xe((0,y.useState)(void 0!==p?p:i),2),_=C[0],E=C[1],x=(0,y.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),S=(0,y.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),f(void 0!==a?a:e)}),[u]),T=(0,y.useCallback)((function(){"function"==typeof d&&d(),w(!0)}),[d]),M=(0,y.useCallback)((function(){"function"==typeof g&&g(),w(!1)}),[g]),B=void 0!==o?o:h,z=void 0!==s?s:v,I=void 0!==p?p:_;return Je(Je({},b),{},{inputValue:B,menuIsOpen:z,onChange:x,onInputChange:S,onMenuClose:M,onMenuOpen:T,value:I})}function lt(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,l.key,l)}}function nt(e,t){return nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nt(e,t)}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function it(e){return it="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},it(e)}function ot(e,t){if(t&&("object"===it(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)}function st(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(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 ct=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}(),ut=Math.abs,gt=String.fromCharCode,dt=Object.assign;function pt(e){return e.trim()}function bt(e,t,a){return e.replace(t,a)}function mt(e,t){return e.indexOf(t)}function ht(e,t){return 0|e.charCodeAt(t)}function ft(e,t,a){return e.slice(t,a)}function kt(e){return e.length}function vt(e){return e.length}function yt(e,t){return t.push(e),e}var wt=1,Ct=1,_t=0,Et=0,xt=0,St="";function Tt(e,t,a,l,n,r,i){return{value:e,root:t,parent:a,type:l,props:n,children:r,line:wt,column:Ct,length:i,return:""}}function Mt(e,t){return dt(Tt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Bt(){return xt=Et>0?ht(St,--Et):0,Ct--,10===xt&&(Ct=1,wt--),xt}function zt(){return xt=Et<_t?ht(St,Et++):0,Ct++,10===xt&&(Ct=1,wt++),xt}function It(){return ht(St,Et)}function Ot(){return Et}function Lt(e,t){return ft(St,e,t)}function At(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 Rt(e){return wt=Ct=1,_t=kt(St=e),Et=0,[]}function Nt(e){return St="",e}function Dt(e){return pt(Lt(Et-1,Ht(91===e?e+2:40===e?e+1:e)))}function Ft(e){for(;(xt=It())&&xt<33;)zt();return At(e)>2||At(xt)>3?"":" "}function Pt(e,t){for(;--t&&zt()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return Lt(e,Ot()+(t<6&&32==It()&&32==zt()))}function Ht(e){for(;zt();)switch(xt){case e:return Et;case 34:case 39:34!==e&&39!==e&&Ht(xt);break;case 40:41===e&&Ht(e);break;case 92:zt()}return Et}function Vt(e,t){for(;zt()&&e+xt!==57&&(e+xt!==84||47!==It()););return"/*"+Lt(t,Et-1)+"*"+gt(47===e?e:zt())}function Gt(e){for(;!At(It());)zt();return Lt(e,Et)}var Ut="-ms-",jt="-moz-",Wt="-webkit-",qt="comm",$t="rule",Zt="decl",Kt="@keyframes";function Jt(e,t){for(var a="",l=vt(e),n=0;n<l;n++)a+=t(e[n],n,e,t)||"";return a}function Yt(e,t,a,l){switch(e.type){case"@import":case Zt:return e.return=e.return||e.value;case qt:return"";case Kt:return e.return=e.value+"{"+Jt(e.children,l)+"}";case $t:e.value=e.props.join(",")}return kt(a=Jt(e.children,l))?e.return=e.value+"{"+a+"}":""}function Qt(e,t){switch(function(e,t){return(((t<<2^ht(e,0))<<2^ht(e,1))<<2^ht(e,2))<<2^ht(e,3)}(e,t)){case 5103:return Wt+"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 Wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wt+e+jt+e+Ut+e+e;case 6828:case 4268:return Wt+e+Ut+e+e;case 6165:return Wt+e+Ut+"flex-"+e+e;case 5187:return Wt+e+bt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Wt+e+Ut+"flex-item-"+bt(e,/flex-|-self/,"")+e;case 4675:return Wt+e+Ut+"flex-line-pack"+bt(e,/align-content|flex-|-self/,"")+e;case 5548:return Wt+e+Ut+bt(e,"shrink","negative")+e;case 5292:return Wt+e+Ut+bt(e,"basis","preferred-size")+e;case 6060:return Wt+"box-"+bt(e,"-grow","")+Wt+e+Ut+bt(e,"grow","positive")+e;case 4554:return Wt+bt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return bt(bt(bt(e,/(zoom-|grab)/,Wt+"$1"),/(image-set)/,Wt+"$1"),e,"")+e;case 5495:case 3959:return bt(e,/(image-set\([^]*)/,Wt+"$1$`$1");case 4968:return bt(bt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wt+e+e;case 4095:case 3583:case 4068:case 2532:return bt(e,/(.+)-inline(.+)/,Wt+"$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(kt(e)-1-t>6)switch(ht(e,t+1)){case 109:if(45!==ht(e,t+4))break;case 102:return bt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+jt+(108==ht(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mt(e,"stretch")?Qt(bt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ht(e,t+1))break;case 6444:switch(ht(e,kt(e)-3-(~mt(e,"!important")&&10))){case 107:return bt(e,":",":"+Wt)+e;case 101:return bt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wt+(45===ht(e,14)?"inline-":"")+"box$3$1"+Wt+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(ht(e,t+11)){case 114:return Wt+e+Ut+bt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wt+e+Ut+bt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wt+e+Ut+bt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wt+e+Ut+e+e}return e}function Xt(e){return Nt(ea("",null,null,null,[""],e=Rt(e),0,[0],e))}function ea(e,t,a,l,n,r,i,o,s){for(var c=0,u=0,g=i,d=0,p=0,b=0,m=1,h=1,f=1,k=0,v="",y=n,w=r,C=l,_=v;h;)switch(b=k,k=zt()){case 40:if(108!=b&&58==_.charCodeAt(g-1)){-1!=mt(_+=bt(Dt(k),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:_+=Dt(k);break;case 9:case 10:case 13:case 32:_+=Ft(b);break;case 92:_+=Pt(Ot()-1,7);continue;case 47:switch(It()){case 42:case 47:yt(aa(Vt(zt(),Ot()),t,a),s);break;default:_+="/"}break;case 123*m:o[c++]=kt(_)*f;case 125*m:case 59:case 0:switch(k){case 0:case 125:h=0;case 59+u:p>0&&kt(_)-g&&yt(p>32?la(_+";",l,a,g-1):la(bt(_," ","")+";",l,a,g-2),s);break;case 59:_+=";";default:if(yt(C=ta(_,t,a,c,u,n,o,v,y=[],w=[],g),r),123===k)if(0===u)ea(_,t,C,C,y,r,g,o,w);else switch(d){case 100:case 109:case 115:ea(e,C,C,l&&yt(ta(e,C,C,0,0,n,o,v,n,y=[],g),w),n,w,g,o,l?y:w);break;default:ea(_,C,C,C,[""],w,0,o,w)}}c=u=p=0,m=f=1,v=_="",g=i;break;case 58:g=1+kt(_),p=b;default:if(m<1)if(123==k)--m;else if(125==k&&0==m++&&125==Bt())continue;switch(_+=gt(k),k*m){case 38:f=u>0?1:(_+="\f",-1);break;case 44:o[c++]=(kt(_)-1)*f,f=1;break;case 64:45===It()&&(_+=Dt(zt())),d=It(),u=g=kt(v=_+=Gt(Ot())),k++;break;case 45:45===b&&2==kt(_)&&(m=0)}}return r}function ta(e,t,a,l,n,r,i,o,s,c,u){for(var g=n-1,d=0===n?r:[""],p=vt(d),b=0,m=0,h=0;b<l;++b)for(var f=0,k=ft(e,g+1,g=ut(m=i[b])),v=e;f<p;++f)(v=pt(m>0?d[f]+" "+k:bt(k,/&\f/g,d[f])))&&(s[h++]=v);return Tt(e,t,a,0===n?$t:o,s,c,u)}function aa(e,t,a){return Tt(e,t,a,qt,gt(xt),ft(e,2,-2),0)}function la(e,t,a,l){return Tt(e,t,a,Zt,ft(e,0,l),ft(e,l+1,-1),l)}var na=function(e,t,a){for(var l=0,n=0;l=n,n=It(),38===l&&12===n&&(t[a]=1),!At(n);)zt();return Lt(e,Et)},ra=new WeakMap,ia=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)||ra.get(a))&&!l){ra.set(e,!0);for(var n=[],r=function(e,t){return Nt(function(e,t){var a=-1,l=44;do{switch(At(l)){case 0:38===l&&12===It()&&(t[a]=1),e[a]+=na(Et-1,t,a);break;case 2:e[a]+=Dt(l);break;case 4:if(44===l){e[++a]=58===It()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=gt(l)}}while(l=zt());return e}(Rt(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]}}},oa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},sa=[function(e,t,a,l){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=Qt(e.value,e.length);break;case Kt:return Jt([Mt(e,{value:bt(e.value,"@","@"+Wt)})],l);case $t: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 Jt([Mt(e,{props:[bt(t,/:(read-\w+)/,":-moz-$1")]})],l);case"::placeholder":return Jt([Mt(e,{props:[bt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Mt(e,{props:[bt(t,/:(plac\w+)/,":-moz-$1")]}),Mt(e,{props:[bt(t,/:(plac\w+)/,Ut+"input-$1")]})],l)}return""}))}}],ca=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||sa,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=[Yt,(g=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&g(e)})],p=(c=[ia,oa].concat(r,d),u=vt(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,Jt(Xt(e?e+"{"+t.styles+"}":t.styles),p),l&&(b.inserted[t.name]=!0)};var b={key:t,sheet:new ct({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};function ua(e,t,a){var l="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):l+=a+" "})),l}var ga=function(e,t,a){var l=e.key+"-"+t.name;!1===a&&void 0===e.registered[l]&&(e.registered[l]=t.styles)},da=function(e,t,a){ga(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)}},pa=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)},ba={animationIterationCount: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},ma=/[A-Z]|^ms/g,ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fa=function(e){return 45===e.charCodeAt(1)},ka=function(e){return null!=e&&"boolean"!=typeof e},va=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=fa(a=e)?a:a.replace(ma,"-$&").toLowerCase()),t[e];var a}}(),ya=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ha,(function(e,t,a){return Ca={name:t,styles:a,next:Ca},t}))}return 1===ba[e]||fa(e)||"number"!=typeof t||0===t?t:t+"px"};function wa(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 Ca={name:a.name,styles:a.styles,next:Ca},a.name;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)Ca={name:l.name,styles:l.styles,next:Ca},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+=wa(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]+"}":ka(i)&&(l+=va(r)+":"+ya(r,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var o=wa(e,t,i);switch(r){case"animation":case"animationName":l+=va(r)+":"+o+";";break;default:l+=r+"{"+o+"}"}}else for(var s=0;s<i.length;s++)ka(i[s])&&(l+=va(r)+":"+ya(r,i[s])+";")}return l}(e,t,a);case"function":if(void 0!==e){var n=Ca,r=a(e);return Ca=n,wa(e,t,r)}}if(null==t)return a;var i=t[a];return void 0!==i?i:a}var Ca,_a=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ea=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="";Ca=void 0;var r=e[0];null==r||void 0===r.raw?(l=!1,n+=wa(a,t,r)):n+=r[0];for(var i=1;i<e.length;i++)n+=wa(a,t,e[i]),l&&(n+=r[i]);_a.lastIndex=0;for(var o,s="";null!==(o=_a.exec(n));)s+="-"+o[1];return{name:pa(n)+s,styles:n,next:Ca}},xa={}.hasOwnProperty,Sa=(0,y.createContext)("undefined"!=typeof HTMLElement?ca({key:"css"}):null);Sa.Provider;var Ta=function(e){return(0,y.forwardRef)((function(t,a){var l=(0,y.useContext)(Sa);return e(t,l,a)}))},Ma=(0,y.createContext)({}),Ba=y.useInsertionEffect?y.useInsertionEffect:function(e){e()};function za(e){Ba(e)}var Ia="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Oa=function(e,t){var a={};for(var l in t)xa.call(t,l)&&(a[l]=t[l]);return a[Ia]=e,a},La=function(e){var t=e.cache,a=e.serialized,l=e.isStringTag;return ga(t,a,l),za((function(){return da(t,a,l)})),null},Aa=Ta((function(e,t,a){var l=e.css;"string"==typeof l&&void 0!==t.registered[l]&&(l=t.registered[l]);var n=e[Ia],r=[l],i="";"string"==typeof e.className?i=ua(t.registered,r,e.className):null!=e.className&&(i=e.className+" ");var o=Ea(r,void 0,(0,y.useContext)(Ma));i+=t.key+"-"+o.name;var s={};for(var c in e)xa.call(e,c)&&"css"!==c&&c!==Ia&&(s[c]=e[c]);return s.ref=a,s.className=i,(0,y.createElement)(y.Fragment,null,(0,y.createElement)(La,{cache:t,serialized:o,isStringTag:"string"==typeof n}),(0,y.createElement)(n,s))}));a(679);var Ra=function(e,t){var a=arguments;if(null==t||!xa.call(t,"css"))return y.createElement.apply(void 0,a);var l=a.length,n=new Array(l);n[0]=Aa,n[1]=Oa(e,t);for(var r=2;r<l;r++)n[r]=a[r];return y.createElement.apply(null,n)};function Na(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ea(t)}y.useInsertionEffect?y.useInsertionEffect:y.useLayoutEffect;var Da=function e(t){for(var a=t.length,l=0,n="";l<a;l++){var r=t[l];if(null!=r){var i=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))i=e(r);else for(var o in i="",r)r[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=r}i&&(n&&(n+=" "),n+=i)}}return n};function Fa(e,t,a){var l=[],n=ua(e,l,a);return l.length<2?a:n+t(l)}var Pa=function(e){var t=e.cache,a=e.serializedArr;return za((function(){for(var e=0;e<a.length;e++)da(t,a[e],!1)})),null},Ha=Ta((function(e,t){var a=[],l=function(){for(var e=arguments.length,l=new Array(e),n=0;n<e;n++)l[n]=arguments[n];var r=Ea(l,t.registered);return a.push(r),ga(t,r,!1),t.key+"-"+r.name},n={css:l,cx:function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return Fa(t.registered,l,Da(a))},theme:(0,y.useContext)(Ma)},r=e.children(n);return(0,y.createElement)(y.Fragment,null,(0,y.createElement)(Pa,{cache:t,serializedArr:a}),r)}));Math.min,Math.max;function Va(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ga(e){if(null==e)return window;if(!Va(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ua(e){return Va(e)?"":e?(e.nodeName||"").toLowerCase():""}function ja(e){return e instanceof Ga(e).HTMLElement}function Wa(e){return e instanceof Ga(e).Element}function qa(e){const{overflow:t,overflowX:a,overflowY:l}=function(e){return Ga(e).getComputedStyle(e)}(e);return/auto|scroll|overlay|hidden/.test(t+l+a)}function $a(){return!/^((?!chrome|android).)*safari/i.test(function(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}())}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const Za=Math.round;function Ka(e,t,a){var l,n,r,i;void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect();let s=1,c=1;t&&ja(e)&&(s=e.offsetWidth>0&&Za(o.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Za(o.height)/e.offsetHeight||1);const u=Wa(e)?Ga(e):window,g=!$a()&&a,d=(o.left+(g&&null!=(l=null==(n=u.visualViewport)?void 0:n.offsetLeft)?l:0))/s,p=(o.top+(g&&null!=(r=null==(i=u.visualViewport)?void 0:i.offsetTop)?r:0))/c,b=o.width/s,m=o.height/c;return{width:b,height:m,top:p,right:d+b,bottom:p+m,left:d,x:d,y:p}}function Ja(e){return"html"===Ua(e)?e:e.assignedSlot||e.parentNode||(function(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ga(e).ShadowRoot||e instanceof ShadowRoot)}(e)?e.host:null)||function(e){return(t=e,(t instanceof Ga(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}(e)}function Ya(e){const t=Ja(e);return["html","body","#document"].includes(Ua(t))?e.ownerDocument.body:ja(t)&&qa(t)?t:Ya(t)}function Qa(e,t){var a;void 0===t&&(t=[]);const l=Ya(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=Ga(l),i=n?[r].concat(r.visualViewport||[],qa(l)?l:[]):l,o=t.concat(i);return n?o:o.concat(Qa(i))}var Xa=y.useLayoutEffect,el=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],tl=function(){};function al(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ll(e,t,a){var l=[a];if(t&&e)for(var n in t)t.hasOwnProperty(n)&&t[n]&&l.push("".concat(al(e,n)));return l.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var nl=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===it(e)&&null!==e?[e]:[];var t},rl=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Je({},et(e,el))};function il(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ol(e){return il(e)?window.pageYOffset:e.scrollTop}function sl(e,t){il(e)?window.scrollTo(0,t):e.scrollTop=t}function cl(e,t,a,l){return a*((e=e/l-1)*e*e+1)+t}function ul(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tl,n=ol(e),r=t-n,i=10,o=0;function s(){var t=cl(o+=i,n,r,a);sl(e,t),o<a?window.requestAnimationFrame(s):l(e)}s()}function gl(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var dl=!1,pl={get passive(){return dl=!0}},bl="undefined"!=typeof window?window:{};bl.addEventListener&&bl.removeEventListener&&(bl.addEventListener("p",tl,pl),bl.removeEventListener("p",tl,!1));var ml=dl;function hl(e){return null!=e}function fl(e,t,a){return e?t:a}var kl=function(e){return"auto"===e?"bottom":e},vl=(0,y.createContext)(null),yl=function(e){var t=e.children,a=e.minMenuHeight,l=e.maxMenuHeight,n=e.menuPlacement,r=e.menuPosition,i=e.menuShouldScrollIntoView,o=e.theme,s=((0,y.useContext)(vl)||{}).setPortalPlacement,c=(0,y.useRef)(null),u=Xe((0,y.useState)(l),2),g=u[0],d=u[1],p=Xe((0,y.useState)(null),2),b=p[0],m=p[1];return Xa((function(){var e=c.current;if(e){var t="fixed"===r,u=function(e){var t=e.maxHeight,a=e.menuEl,l=e.minHeight,n=e.placement,r=e.shouldScroll,i=e.isFixedPosition,o=e.theme.spacing,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,m=a.offsetParent.getBoundingClientRect().top,h=i?window.innerHeight:function(e){return il(e)?window.innerHeight:e.clientHeight}(s),f=ol(s),k=parseInt(getComputedStyle(a).marginBottom,10),v=parseInt(getComputedStyle(a).marginTop,10),y=m-v,w=h-b,C=y+f,_=u-f-b,E=d-h+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&&ul(s,E,S),{placement:"bottom",maxHeight:t};if(!i&&_>=l||i&&w>=l)return r&&ul(s,E,S),{placement:"bottom",maxHeight:i?w-k:_-k};if("auto"===n||i){var T=t,M=i?y:C;return M>=l&&(T=Math.min(M-k-o.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===n)return r&&sl(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(y>=p)return{placement:"top",maxHeight:t};if(C>=p&&!i)return r&&ul(s,x,S),{placement:"top",maxHeight:t};if(!i&&C>=l||i&&y>=l){var B=t;return(!i&&C>=l||i&&y>=l)&&(B=i?y-v:C-v),r&&ul(s,x,S),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}({maxHeight:l,menuEl:e,minHeight:a,placement:n,shouldScroll:i&&!t,isFixedPosition:t,theme:o});d(u.maxHeight),m(u.placement),null==s||s(u.placement)}}),[l,n,r,i,a,s,o]),t({ref:c,placerProps:Je(Je({},e),{},{placement:b||kl(n),maxHeight:g})})},wl=function(e){var t=e.theme,a=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px"),textAlign:"center"}},Cl=wl,_l=wl,El=function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},l)},i),a)};El.defaultProps={children:"No options"};var xl=function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},l)},i),a)};xl.defaultProps={children:"Loading..."};var Sl,Tl,Ml,Bl=["size"],zl={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Il=function(e){var a=e.size,l=et(e,Bl);return Ra("svg",t({height:a,width:a,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zl},l))},Ol=function(e){return Ra(Il,t({size:20},e),Ra("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"}))},Ll=function(e){return Ra(Il,t({size:20},e),Ra("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"}))},Al=function(e){var t=e.isFocused,a=e.theme,l=a.spacing.baseUnit,n=a.colors;return{label:"indicatorContainer",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*l,transition:"color 150ms",":hover":{color:t?n.neutral80:n.neutral40}}},Rl=Al,Nl=Al,Dl=function(){var e=Na.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_"}}}(Sl||(Tl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ml||(Ml=Tl.slice(0)),Sl=Object.freeze(Object.defineProperties(Tl,{raw:{value:Object.freeze(Ml)}})))),Fl=function(e){var t=e.delay,a=e.offset;return Ra("span",{css:Na({animation:"".concat(Dl," 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"},"","")})},Pl=function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.innerProps,i=e.isRtl;return Ra("div",t({css:n("loadingIndicator",e),className:l({indicator:!0,"loading-indicator":!0},a)},r),Ra(Fl,{delay:0,offset:i}),Ra(Fl,{delay:160,offset:!0}),Ra(Fl,{delay:320,offset:!i}))};Pl.defaultProps={size:4};var Hl=["data"],Vl=["innerRef","isDisabled","isHidden","inputClassName"],Gl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ul={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Je({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Gl)},jl=function(e){return Je({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Gl)},Wl=function(e){var t=e.children,a=e.innerProps;return Ra("div",a,t)},ql={ClearIndicator:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},l)},i),a||Ra(Ol,null))},Control:function(e){var a=e.children,l=e.cx,n=e.getStyles,r=e.className,i=e.isDisabled,o=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return Ra("div",t({ref:s,css:n("control",e),className:l({control:!0,"control--is-disabled":i,"control--is-focused":o,"control--menu-is-open":u},r)},c),a)},DropdownIndicator:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},l)},i),a||Ra(Ll,null))},DownChevron:Ll,CrossIcon:Ol,Group:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,g=e.selectProps;return Ra("div",t({css:r("group",e),className:n({group:!0},l)},s),Ra(i,t({},o,{selectProps:g,theme:u,getStyles:r,cx:n}),c),Ra("div",null,a))},GroupHeading:function(e){var a=e.getStyles,l=e.cx,n=e.className,r=rl(e);r.data;var i=et(r,Hl);return Ra("div",t({css:a("groupHeading",e),className:l({"group-heading":!0},n)},i))},IndicatorsContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.innerProps,i=e.getStyles;return Ra("div",t({css:i("indicatorsContainer",e),className:n({indicators:!0},l)},r),a)},IndicatorSeparator:function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.innerProps;return Ra("span",t({},r,{css:n("indicatorSeparator",e),className:l({"indicator-separator":!0},a)}))},Input:function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.value,i=rl(e),o=i.innerRef,s=i.isDisabled,c=i.isHidden,u=i.inputClassName,g=et(i,Vl);return Ra("div",{className:l({"input-container":!0},a),css:n("input",e),"data-value":r||""},Ra("input",t({className:l({input:!0},u),ref:o,style:jl(c),disabled:s},g)))},LoadingIndicator:Pl,Menu:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerRef,o=e.innerProps;return Ra("div",t({css:r("menu",e),className:n({menu:!0},l),ref:i},o),a)},MenuList:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.innerRef,s=e.isMulti;return Ra("div",t({css:r("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":s},l),ref:o},i),a)},MenuPortal:function(e){var a=e.appendTo,l=e.children,n=e.className,r=e.controlElement,i=e.cx,o=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=e.getStyles,g=(0,y.useRef)(null),d=(0,y.useRef)(null),p=Xe((0,y.useState)(kl(s)),2),b=p[0],m=p[1],h=(0,y.useMemo)((function(){return{setPortalPlacement:m}}),[]),f=Xe((0,y.useState)(null),2),k=f[0],w=f[1],C=(0,y.useCallback)((function(){if(r){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}}(r),t="fixed"===c?0:window.pageYOffset,a=e[b]+t;a===(null==k?void 0:k.offset)&&e.left===(null==k?void 0:k.rect.left)&&e.width===(null==k?void 0:k.rect.width)||w({offset:a,rect:e})}}),[r,c,b,null==k?void 0:k.offset,null==k?void 0:k.rect.left,null==k?void 0:k.rect.width]);Xa((function(){C()}),[C]);var _=(0,y.useCallback)((function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&g.current&&(d.current=function(e,t,a,l){void 0===l&&(l={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=!0,animationFrame:o=!1}=l,s=n&&!o,c=r&&!o,u=s||c?[...Wa(e)?Qa(e):[],...Qa(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",a,{passive:!0}),c&&e.addEventListener("resize",a)}));let g,d=null;if(i){let l=!0;d=new ResizeObserver((()=>{l||a(),l=!1})),Wa(e)&&!o&&d.observe(e),d.observe(t)}let p=o?Ka(e):null;return o&&function t(){const l=Ka(e);!p||l.x===p.x&&l.y===p.y&&l.width===p.width&&l.height===p.height||a(),p=l,g=requestAnimationFrame(t)}(),a(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",a),c&&e.removeEventListener("resize",a)})),null==(e=d)||e.disconnect(),d=null,o&&cancelAnimationFrame(g)}}(r,g.current,C,{elementResize:"ResizeObserver"in window}))}),[r,C]);Xa((function(){_()}),[_]);var E=(0,y.useCallback)((function(e){g.current=e,_()}),[_]);if(!a&&"fixed"!==c||!k)return null;var x=Ra("div",t({ref:E,css:u("menuPortal",{offset:k.offset,position:c,rect:k.rect}),className:i({"menu-portal":!0},n)},o),l);return Ra(vl.Provider,{value:h},a?(0,v.createPortal)(x,a):x)},LoadingMessage:xl,NoOptionsMessage:El,MultiValue:function(e){var t=e.children,a=e.className,l=e.components,n=e.cx,r=e.data,i=e.getStyles,o=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,g=l.Container,d=l.Label,p=l.Remove;return Ra(Ha,null,(function(l){var b=l.css,m=l.cx;return Ra(g,{data:r,innerProps:Je({className:m(b(i("multiValue",e)),n({"multi-value":!0,"multi-value--is-disabled":s},a))},o),selectProps:u},Ra(d,{data:r,innerProps:{className:m(b(i("multiValueLabel",e)),n({"multi-value__label":!0},a))},selectProps:u},t),Ra(p,{data:r,innerProps:Je({className:m(b(i("multiValueRemove",e)),n({"multi-value__remove":!0},a)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:Wl,MultiValueLabel:Wl,MultiValueRemove:function(e){var a=e.children,l=e.innerProps;return Ra("div",t({role:"button"},l),a||Ra(Ol,{size:14}))},Option:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.isDisabled,o=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return Ra("div",t({css:r("option",e),className:n({option:!0,"option--is-disabled":i,"option--is-focused":o,"option--is-selected":s},l),ref:c,"aria-disabled":i},u),a)},Placeholder:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("placeholder",e),className:n({placeholder:!0},l)},i),a)},SelectContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isDisabled,s=e.isRtl;return Ra("div",t({css:r("container",e),className:n({"--is-disabled":o,"--is-rtl":s},l)},i),a)},SingleValue:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.isDisabled,o=e.innerProps;return Ra("div",t({css:r("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":i},l)},o),a)},ValueContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.innerProps,i=e.isMulti,o=e.getStyles,s=e.hasValue;return Ra("div",t({css:o("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},l)},r),a)}},$l=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zl(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((l=e[a])===(n=t[a])||$l(l)&&$l(n)))return!1;var l,n;return!0}for(var Kl={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"},Jl=function(e){return Ra("span",t({css:Kl},e))},Yl={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:"",".")}},Ql=function(e){var t=e.ariaSelection,a=e.focusedOption,l=e.focusedValue,n=e.focusableOptions,r=e.isFocused,i=e.selectValue,o=e.selectProps,s=e.id,c=o.ariaLiveMessages,u=o.getOptionLabel,g=o.inputValue,d=o.isMulti,p=o.isOptionDisabled,b=o.isSearchable,m=o.menuIsOpen,h=o.options,f=o.screenReaderStatus,k=o.tabSelectsValue,v=o["aria-label"],w=o["aria-live"],C=(0,y.useMemo)((function(){return Je(Je({},Yl),c||{})}),[c]),_=(0,y.useMemo)((function(){var e,a="";if(t&&C.onChange){var l=t.option,n=t.options,r=t.removedValue,o=t.removedValues,s=t.value,c=r||l||(e=s,Array.isArray(e)?null:e),g=c?u(c):"",d=n||o||void 0,b=d?d.map(u):[],m=Je({isDisabled:c&&p(c,i),label:g,labels:b},t);a=C.onChange(m)}return a}),[t,C,p,i,u]),E=(0,y.useMemo)((function(){var e="",t=a||l,n=!!(a&&i&&i.includes(a));if(t&&C.onFocus){var r={focused:t,label:u(t),isDisabled:p(t,i),isSelected:n,options:h,context:t===a?"menu":"value",selectValue:i};e=C.onFocus(r)}return e}),[a,l,u,p,C,h,i]),x=(0,y.useMemo)((function(){var e="";if(m&&h.length&&C.onFilter){var t=f({count:n.length});e=C.onFilter({inputValue:g,resultsMessage:t})}return e}),[n,g,m,C,h,f]),S=(0,y.useMemo)((function(){var e="";if(C.guidance){var t=l?"value":m?"menu":"input";e=C.guidance({"aria-label":v,context:t,isDisabled:a&&p(a,i),isMulti:d,isSearchable:b,tabSelectsValue:k})}return e}),[v,a,l,d,p,b,m,C,i,k]),T="".concat(E," ").concat(x," ").concat(S),M=Ra(y.Fragment,null,Ra("span",{id:"aria-selection"},_),Ra("span",{id:"aria-context"},T)),B="initial-input-focus"===(null==t?void 0:t.action);return Ra(y.Fragment,null,Ra(Jl,{id:s},B&&M),Ra(Jl,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},r&&!B&&M))},Xl=[{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źẑżžẓẕƶȥɀⱬꝣ"}],en=new RegExp("["+Xl.map((function(e){return e.letters})).join("")+"]","g"),tn={},an=0;an<Xl.length;an++)for(var ln=Xl[an],nn=0;nn<ln.letters.length;nn++)tn[ln.letters[nn]]=ln.base;var rn=function(e){return e.replace(en,(function(e){return tn[e]}))},on=function(e,t){void 0===t&&(t=Zl);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}(rn),sn=function(e){return e.replace(/^\s+|\s+$/g,"")},cn=function(e){return"".concat(e.label," ").concat(e.value)},un=["innerRef"];function gn(e){var a=e.innerRef,l=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=Xe(e,1)[0];return!a.includes(t)}));return n.reduce((function(e,t){var a=Xe(t,2),l=a[0],n=a[1];return e[l]=n,e}),{})}(et(e,un),"onExited","in","enter","exit","appear");return Ra("input",t({ref:a},l,{css:Na({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 dn=["boxSizing","height","overflow","paddingRight","position"],pn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bn(e){e.preventDefault()}function mn(e){e.stopPropagation()}function hn(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function fn(){return"ontouchstart"in window||navigator.maxTouchPoints}var kn=!("undefined"==typeof window||!window.document||!window.document.createElement),vn=0,yn={capture:!1,passive:!1},wn=function(){return document.activeElement&&document.activeElement.blur()},Cn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function En(e){var t=e.children,a=e.lockEnabled,l=e.captureEnabled,n=function(e){var t=e.isEnabled,a=e.onBottomArrive,l=e.onBottomLeave,n=e.onTopArrive,r=e.onTopLeave,i=(0,y.useRef)(!1),o=(0,y.useRef)(!1),s=(0,y.useRef)(0),c=(0,y.useRef)(null),u=(0,y.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,g=s.scrollHeight,d=s.clientHeight,p=c.current,b=t>0,m=g-d-u,h=!1;m>t&&i.current&&(l&&l(e),i.current=!1),b&&o.current&&(r&&r(e),o.current=!1),b&&t>m?(a&&!i.current&&a(e),p.scrollTop=g,h=!0,i.current=!0):!b&&-t>u&&(n&&!o.current&&n(e),p.scrollTop=0,h=!0,o.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,l,n,r]),g=(0,y.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,y.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),p=(0,y.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),b=(0,y.useCallback)((function(e){if(e){var t=!!ml&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}}),[p,d,g]),m=(0,y.useCallback)((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))}),[p,d,g]);return(0,y.useEffect)((function(){if(t){var e=c.current;return b(e),function(){m(e)}}}),[t,b,m]),function(e){c.current=e}}({isEnabled:void 0===l||l,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,a=e.accountForScrollbars,l=void 0===a||a,n=(0,y.useRef)({}),r=(0,y.useRef)(null),i=(0,y.useCallback)((function(e){if(kn){var t=document.body,a=t&&t.style;if(l&&dn.forEach((function(e){var t=a&&a[e];n.current[e]=t})),l&&vn<1){var r=parseInt(n.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(pn).forEach((function(e){var t=pn[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&fn()&&(t.addEventListener("touchmove",bn,yn),e&&(e.addEventListener("touchstart",hn,yn),e.addEventListener("touchmove",mn,yn))),vn+=1}}),[l]),o=(0,y.useCallback)((function(e){if(kn){var t=document.body,a=t&&t.style;vn=Math.max(vn-1,0),l&&vn<1&&dn.forEach((function(e){var t=n.current[e];a&&(a[e]=t)})),t&&fn()&&(t.removeEventListener("touchmove",bn,yn),e&&(e.removeEventListener("touchstart",hn,yn),e.removeEventListener("touchmove",mn,yn)))}}),[l]);return(0,y.useEffect)((function(){if(t){var e=r.current;return i(e),function(){o(e)}}}),[t,i,o]),function(e){r.current=e}}({isEnabled:a});return Ra(y.Fragment,null,a&&Ra("div",{onClick:wn,css:Cn}),t((function(e){n(e),r(e)})))}var xn=function(e){return e.label},Sn=function(e){return e.value},Tn={clearIndicator:Nl,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){var t=e.isDisabled,a=e.isFocused,l=e.theme,n=l.colors,r=l.borderRadius,i=l.spacing;return{label:"control",alignItems:"center",backgroundColor:t?n.neutral5:n.neutral0,borderColor:t?n.neutral10:a?n.primary:n.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(n.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:a?n.primary:n.neutral30}}},dropdownIndicator:Rl,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing.baseUnit,n=a.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?n.neutral10:n.neutral20,marginBottom:2*l,marginTop:2*l,width:1}},input:function(e){var t=e.isDisabled,a=e.value,l=e.theme,n=l.spacing,r=l.colors;return Je({margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80,transform:a?"translateZ(0)":""},Ul)},loadingIndicator:function(e){var t=e.isFocused,a=e.size,l=e.theme,n=l.colors,r=l.spacing.baseUnit;return{label:"loadingIndicator",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*r,transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"}},loadingMessage:_l,menu:function(e){var t,a=e.placement,l=e.theme,n=l.borderRadius,r=l.spacing,i=l.colors;return Ze(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),Ze(t,"backgroundColor",i.neutral0),Ze(t,"borderRadius",n),Ze(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Ze(t,"marginBottom",r.menuGutter),Ze(t,"marginTop",r.menuGutter),Ze(t,"position","absolute"),Ze(t,"width","100%"),Ze(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,a=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:a,paddingTop:a,position:"relative",WebkitOverflowScrolling:"touch"}},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){var t=e.theme,a=t.spacing,l=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:l/2,display:"flex",margin:a.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,a=t.borderRadius,l=t.colors,n=e.cropWithEllipsis;return{borderRadius:a/2,color:l.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,a=t.spacing,l=t.borderRadius,n=t.colors;return{alignItems:"center",borderRadius:l/2,backgroundColor:e.isFocused?n.dangerLight:void 0,display:"flex",paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}}},noOptionsMessage:Cl,option:function(e){var t=e.isDisabled,a=e.isFocused,l=e.isSelected,n=e.theme,r=n.spacing,i=n.colors;return{label:"option",backgroundColor:l?i.primary:a?i.primary25:"transparent",color:t?i.neutral20:l?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:l?i.primary:i.primary50}}},placeholder:function(e){var t=e.theme,a=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing,n=a.colors;return{label:"singleValue",color:t?n.neutral40:n.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,a=e.isMulti,l=e.hasValue,n=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:a&&l&&n?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Mn={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}},Bn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:gl(),captureMenuScroll:!gl(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=Je({ignoreCase:!0,ignoreAccents:!0,stringify:cn,trim:!0,matchFrom:"any"},undefined),l=a.ignoreCase,n=a.ignoreAccents,r=a.stringify,i=a.trim,o=a.matchFrom,s=i?sn(t):t,c=i?sn(r(e)):r(e);return l&&(s=s.toLowerCase(),c=c.toLowerCase()),n&&(s=on(s),c=rn(c)),"start"===o?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:xn,getOptionValue:Sn,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};function zn(e,t,a,l){return{type:"option",data:t,isDisabled:Nn(e,t,a),isSelected:Dn(e,t,a),label:An(e,t),value:Rn(e,t),index:l}}function In(e,t){return e.options.map((function(a,l){if("options"in a){var n=a.options.map((function(a,l){return zn(e,a,t,l)})).filter((function(t){return Ln(e,t)}));return n.length>0?{type:"group",data:a,options:n,index:l}:void 0}var r=zn(e,a,t,l);return Ln(e,r)?r:void 0})).filter(hl)}function On(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,st(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ln(e,t){var a=e.inputValue,l=void 0===a?"":a,n=t.data,r=t.isSelected,i=t.label,o=t.value;return(!Pn(e)||!r)&&Fn(e,{label:i,value:o,data:n},l)}var An=function(e,t){return e.getOptionLabel(t)},Rn=function(e,t){return e.getOptionValue(t)};function Nn(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function Dn(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var l=Rn(e,t);return a.some((function(t){return Rn(e,t)===l}))}function Fn(e,t,a){return!e.filterOption||e.filterOption(t,a)}var Pn=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},Hn=1,Vn=function(e){!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}}),t&&nt(e,t)}(s,e);var a,l,n,r,i,o=(r=s,i=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}}(),function(){var e,t=rt(r);if(i){var a=rt(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return ot(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.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(st(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=fl(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(fl(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=fl(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 ll.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return An(t.props,e)},t.getOptionValue=function(e){return Rn(t.props,e)},t.getStyles=function(e,a){var l=Tn[e](a);l.boxSizing="border-box";var n=t.props.styles[e];return n?n(l,a):l},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Je(Je({},ql),e.components);var e},t.buildCategorizedOptions=function(){return In(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return On(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:Je({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&&il(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 Pn(t.props)},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,m=p.focusedValue,h=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(m)t.removeValue(m);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,h))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||++Hn),t.state.selectValue=nl(e.value),t}return a=s,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()}},{key:"componentDidUpdate",value:function(e){var t,a,l,n,r,i=this.props,o=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!o&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&o&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):c||o||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,a=this.focusedOptionRef,l=t.getBoundingClientRect(),n=a.getBoundingClientRect(),r=a.offsetHeight/3,n.bottom+r>l.bottom?sl(t,Math.min(a.offsetTop+a.clientHeight-t.offsetHeight+r,t.scrollHeight)):n.top-r<l.top&&sl(t,Math.max(a.offsetTop-r,0)),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(Mn):Je(Je({},Mn),this.props.theme):Mn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,l=this.getValue,n=this.selectOption,r=this.setValue,i=this.props,o=i.isMulti,s=i.isRtl,c=i.options;return{clearValue:e,cx:t,getStyles:a,getValue:l,hasValue:this.hasValue(),isMulti:o,isRtl:s,options:c,selectOption:n,selectProps:i,setValue:r,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 Nn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Dn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Fn(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 e=this.props,a=e.isDisabled,l=e.isSearchable,n=e.inputId,r=e.inputValue,i=e.tabIndex,o=e.form,s=e.menuIsOpen,c=this.getComponents().Input,u=this.state,g=u.inputIsHidden,d=u.ariaSelection,p=this.commonProps,b=n||this.getElementId("input"),m=Je(Je(Je({"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"],role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?y.createElement(c,t({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:a,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:r},m)):y.createElement(gn,t({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:tl,onFocus:this.onInputFocus,disabled:a,tabIndex:i,inputMode:"none",form:o,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=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,m=u.placeholder,h=this.state,f=h.selectValue,k=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!g)return b?null:y.createElement(s,t({},c,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return f.map((function(a,o){var s=a===k,u="".concat(e.getOptionLabel(a),"-").concat(e.getOptionValue(a));return y.createElement(l,t({},c,{components:{Container:n,Label:r,Remove:i},isFocused:s,isDisabled:d,key:u,index:o,removeProps:{onClick:function(){return e.removeValue(a)},onTouchEnd:function(){return e.removeValue(a)},onMouseDown:function(e){e.preventDefault()}},data:a}),e.formatOptionLabel(a,"value"))}));if(b)return null;var w=f[0];return y.createElement(o,t({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,t({},a,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;return e&&r?y.createElement(e,t({},a,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),a=e.DropdownIndicator,l=e.IndicatorSeparator;if(!a||!l)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return y.createElement(l,t({},n,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)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 y.createElement(e,t({},a,{innerProps:r,isDisabled:l,isFocused:n}))}},{key:"renderMenu",value:function(){var e=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,m=p.inputValue,h=p.isLoading,f=p.loadingMessage,k=p.minMenuHeight,v=p.maxMenuHeight,w=p.menuIsOpen,C=p.menuPlacement,_=p.menuPosition,E=p.menuPortalTarget,x=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,T=p.noOptionsMessage,M=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!w)return null;var z,I=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 e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},h="".concat(e.getElementId("option"),"-").concat(l),f={id:h,onClick:m,onMouseMove:b,onMouseOver:b,tabIndex:-1};return y.createElement(u,t({},g,{innerProps:f,data:r,isDisabled:i,isSelected:o,key:h,label:s,type:n,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(a.data,"menu"))};if(this.hasOptions())z=this.getCategorizedOptions().map((function(a){if("group"===a.type){var r=a.data,i=a.options,o=a.index,s="".concat(e.getElementId("group"),"-").concat(o),c="".concat(s,"-heading");return y.createElement(l,t({},g,{key:s,data:r,options:i,Heading:n,headingProps:{id:c,data:a.data},label:e.formatGroupLabel(a.data)}),a.options.map((function(e){return I(e,"".concat(o,"-").concat(e.index))})))}if("option"===a.type)return I(a,"".concat(a.index))}));else if(h){var O=f({inputValue:m});if(null===O)return null;z=y.createElement(s,g,O)}else{var L=T({inputValue:m});if(null===L)return null;z=y.createElement(c,g,L)}var A={minMenuHeight:k,maxMenuHeight:v,menuPlacement:C,menuPosition:_,menuShouldScrollIntoView:S},R=y.createElement(yl,t({},g,A),(function(a){var l=a.ref,n=a.placerProps,o=n.placement,s=n.maxHeight;return y.createElement(r,t({},g,A,{innerRef:l,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:o}),y.createElement(En,{captureEnabled:b,onTopArrive:M,onBottomArrive:B,lockEnabled:x},(function(a){return y.createElement(i,t({},g,{innerRef:function(t){e.getMenuListRef(t),a(t)},isLoading:h,maxHeight:s,focusedOption:d}),z)})))}));return E||"fixed"===_?y.createElement(o,t({},g,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:_}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,l=t.isDisabled,n=t.isMulti,r=t.name,i=this.state.selectValue;if(r&&!l){if(n){if(a){var o=i.map((function(t){return e.getOptionValue(t)})).join(a);return y.createElement("input",{name:r,type:"hidden",value:o})}var s=i.length>0?i.map((function(t,a){return y.createElement("input",{key:"i-".concat(a),name:r,type:"hidden",value:e.getOptionValue(t)})})):y.createElement("input",{name:r,type:"hidden"});return y.createElement("div",null,s)}var c=i[0]?this.getOptionValue(i[0]):"";return y.createElement("input",{name:r,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,a=this.state,l=a.ariaSelection,n=a.focusedOption,r=a.focusedValue,i=a.isFocused,o=a.selectValue,s=this.getFocusableOptions();return y.createElement(Ql,t({},e,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:n,focusedValue:r,isFocused:i,selectValue:o,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),a=e.Control,l=e.IndicatorsContainer,n=e.SelectContainer,r=e.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 y.createElement(n,t({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:g}),this.renderLiveRegion(),y.createElement(a,t({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:g,menuIsOpen:u}),y.createElement(r,t({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(l,t({},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=nl(c),b={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||g!==a.inputValue)){var m=u?function(e,t){return On(In(e,t))}(e,p):[],h=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,m);b={selectValue:p,focusedOption:f,focusedValue:h,clearFocusValueOnUpdate:!1}}var k=null!=n&&e!==a?{inputIsHidden:n,inputIsHiddenAfterUpdate:void 0}:{},v=r,y=i&&o;return i&&!y&&(v={value:fl(d,p,p[0]||null),options:p,action:"initial-input-focus"},y=!o),"initial-input-focus"===(null==r?void 0:r.action)&&(v=null),Je(Je(Je({},b),k),{},{prevProps:e,ariaSelection:v,prevWasFocused:y})}}],l&<(a.prototype,l),n&<(a,n),s}(y.Component);Vn.defaultProps=Bn;var Gn=(0,y.forwardRef)((function(e,a){var l=at(e);return y.createElement(Vn,t({ref:a},l))})),Un=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],jn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,l=String(e).toLowerCase(),n=String(a.getOptionValue(t)).toLowerCase(),r=String(a.getOptionLabel(t)).toLowerCase();return n===l||r===l},Wn={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,a,l){return!(!e||t.some((function(t){return jn(e,t,l)}))||a.some((function(t){return jn(e,t,l)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},qn=(0,y.forwardRef)((function(e,a){var l=function(e){var t=e.allowCreateWhileLoading,a=void 0!==t&&t,l=e.createOptionPosition,n=void 0===l?"last":l,r=e.formatCreateLabel,i=void 0===r?Wn.formatCreateLabel:r,o=e.isValidNewOption,s=void 0===o?Wn.isValidNewOption:o,c=e.getNewOptionData,u=void 0===c?Wn.getNewOptionData:c,g=e.onCreateOption,d=e.options,p=void 0===d?[]:d,b=e.onChange,m=et(e,Un),h=m.getOptionValue,f=void 0===h?Sn:h,k=m.getOptionLabel,v=void 0===k?xn:k,w=m.inputValue,C=m.isLoading,_=m.isMulti,E=m.value,x=m.name,S=(0,y.useMemo)((function(){return s(w,nl(E),p,{getOptionValue:f,getOptionLabel:v})?u(w,i(w)):void 0}),[i,u,v,f,w,s,p,E]),T=(0,y.useMemo)((function(){return!a&&C||!S?p:"first"===n?[S].concat(st(p)):[].concat(st(p),[S])}),[a,n,C,S,p]),M=(0,y.useCallback)((function(e,t){if("select-option"!==t.action)return b(e,t);var a=Array.isArray(e)?e:[e];if(a[a.length-1]!==S)b(e,t);else if(g)g(w);else{var l=u(w,w),n={action:"create-option",name:x,option:l};b(fl(_,[].concat(st(nl(E)),[l]),l),n)}}),[u,w,_,x,S,g,b,E]);return Je(Je({},m),{},{options:T,onChange:M})}(at(e));return y.createElement(Vn,t({ref:a},l))})),$n=qn,Zn=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")},l=Object.assign({},{marginBottom:"24px"},null==t?void 0:t.wrapperStyles),n=null!=t&&t.isCreatable?$n:Gn,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 Kn(t){let{attributes:a,setAttributes:l}=t;const{fontFamily:n,fontFamilyFallback:o,googleFont:s,googleFontVariants:c}=a,u=(0,e.useMemo)((()=>{const e=Ge.fontFamily;return Object.keys($e).slice(0,20).forEach((t=>{Object.keys(e).some((a=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.value)===t}))||e.push({value:t,label:t})})),e}),[]),g=n?{value:n,label:n}:"";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{label:(0,i.__)("Font Family","generateblocks"),id:"gblocks-font-family",className:"gblocks-font-family"},(0,e.createElement)(Zn,{placeholder:(0,i.__)("Choose or add font name","generateblocks"),options:u,value:g,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,onChange:e=>function(e){l({fontFamily:e}),void 0!==$e[e]?l({googleFont:!0,fontFamilyFallback:$e[e].fallback,googleFontVariants:$e[e].weight.join(", ")}):l({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})}((null==e?void 0:e.value)||"")})),""!==n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Google Fonts API","generateblocks"),checked:!!s,onChange:e=>{l({googleFont:e}),e&&void 0!==$e[n]&&l({fontFamilyFallback:$e[n].fallback,googleFontVariants:$e[n].weight.join(", ")})}}),!!s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.TextControl,{label:(0,i.__)("Font fallback","generateblocks"),value:o,placeholder:(0,i.__)("sans-serif","generateblocks"),onChange:e=>{l({fontFamilyFallback:e})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Variants","generateblocks"),value:c,placeholder:(0,i.__)("300, 400, 400i","generateblocks"),onChange:e=>{l({googleFontVariants:e})}}))))}function Jn(t){let{value:a,onChange:l}=t;const n=Ge.alignments;return(0,e.createElement)(r.BaseControl,{label:(0,i.__)("Text Alignment","generateblocks"),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((t=>(0,e.createElement)(r.Tooltip,{key:t.align,text:t.title},(0,e.createElement)(r.Button,{isPrimary:t.align===a,onClick:()=>l(t.align!==a?t.align:""),icon:t.icon})))))))}function Yn(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{attributes:l,deviceType:n}=t,r="Desktop"===n?"":n,i=e+r;return a?i:l[i]}function Qn(t){let{children:a}=t;return(0,e.createElement)("div",{className:"gblocks-flex-control"},a)}var Xn=()=>{const{deviceType:t}=(0,e.useContext)(Me);return t};function er(t){let{attributes:a,setAttributes:l,computedStyles:n}=t;const r=Xn(),{id:o,supports:{typography:s}}=(0,e.useContext)(Me),c="Desktop"===r;return(0,e.createElement)(oe,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:p("typography"),className:"gblocks-panel-label",id:`${o}Typography`},s.alignment&&(0,e.createElement)(Jn,{value:Yn("alignment",{attributes:a,deviceType:r}),onChange:e=>l({[Yn("alignment",{attributes:a,deviceType:r},!0)]:e})}),!!c&&(s.fontWeight||s.textTransform)&&(0,e.createElement)(Qn,null,(0,e.createElement)(Ue,{value:a.fontWeight,onChange:e=>l({fontWeight:e})}),(0,e.createElement)(je,{value:a.textTransform,onChange:e=>l({textTransform:e})})),s.fontSize&&(0,e.createElement)(De,{attributes:a,setAttributes:l,computedStyles:n,device:r}),s.lineHeight&&(0,e.createElement)(qe,{attributes:a,setAttributes:l,device:r}),s.letterSpacing&&(0,e.createElement)(We,{attributes:a,setAttributes:l,device:r}),s.fontFamily&&c&&(0,e.createElement)(Kn,{attributes:a,setAttributes:l}))}var tr=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),ar=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));function lr(t){const{setAttributes:a,attributes:l,label:n=(0,i.__)("Padding","generateblocks"),type:o="padding",labelTop:s=(0,i.__)("Top","generateblocks"),labelRight:c=(0,i.__)("Right","generateblocks"),labelBottom:u=(0,i.__)("Bottom","generateblocks"),labelLeft:g=(0,i.__)("Left","generateblocks"),device:d,units:p,computedStyles:b={}}=t,m={top:o+"Top",right:o+"Right",bottom:o+"Bottom",left:o+"Left",unit:o+"Unit",sync:o+"SyncUnits"},h={top:s,right:c,bottom:u,left:g};"borderRadius"===o&&(m.top="borderRadiusTopLeft",m.right="borderRadiusTopRight",m.bottom="borderRadiusBottomRight",m.left="borderRadiusBottomLeft",h.top=(0,i._x)("T-Left","short for Top Left","generateblocks"),h.right=(0,i._x)("T-Right","short for Top Right","generateblocks"),h.bottom=(0,i._x)("B-Right","short for Bottom Right","generateblocks"),h.left=(0,i._x)("B-Left","short for Bottom Left","generateblocks")),"Desktop"!==d&&(m.top+=d,m.right+=d,m.bottom+=d,m.left+=d);const f=e=>a({[m.top]:e,[m.right]:e,[m.bottom]:e,[m.left]:e});return(0,e.createElement)(r.BaseControl,{className:"components-gblocks-dimensions-control"},(0,e.createElement)(E,{label:n,value:void 0!==l[m.unit]?l[m.unit]:"px",units:p,onClick:e=>(e=>a({[[m.unit]]:e}))(e)}),(0,e.createElement)("div",{className:"components-gblocks-dimensions-control__inputs"},(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.top,className:"components-gblocks-dimensions-control__number",placeholder:S(m.top,l,d,"margin"===o&&"px"===l.marginUnit?b.marginTop:""),type:"margin"===o?"text":"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),"margin"===o&&t&&(t=t.toString().toLowerCase()),l[m.sync]?f(t):(e=>{a({[m.top]:e})})(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 x(e){return e||0===e}function S(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||(n=l),n}function T(t){const{label:a,attributeName:l,attributes:n,setAttributes:o,units:s=[],unit:c="px",device:u,presets:g=[],min:d=0,max:p,step:b,id:h=l,defaultPlaceholder:k=""}=t,[v,y]=(0,e.useState)(!1),[w,C]=_("generateblocksCustomInputs",{ssr:!0,defaultValue:[]}),T={value:l,unit:l+"Unit"};u&&"Desktop"!==u&&(T.value+=u);const M=(0,m.applyFilters)("generateblocns.editor.numberPresets",g,t),B=M.length>0?M[0].data:[],z=M.length>0?M[0].unit:"px",I=B.length>0&&"object"==typeof B[0]?B.find((e=>e.value===n[T.value])):B.includes(n[T.value]),O="Desktop"!==u&&S(T.value,n,u,""),L=0===M.length||!!x(n[T.value])&&!I||O||v||w.some((e=>e.includes(l)));return(0,e.createElement)(r.BaseControl,{label:0===s.length?a:null,id:h,className:"gblocks-number-component"},s.length>0&&(0,e.createElement)(E,{label:a,id:h,value:n[T.unit]||c,units:s,singleOption:!L,onClick:e=>(void 0!==n[T.unit]&&o({[T.unit]:e}),!1)}),!L&&(0,e.createElement)(r.ButtonGroup,{className:"gblocks-component-number-presets"},B.map(((t,a)=>{const i="object"==typeof t?t.value:t,s="object"==typeof t?t.label:t;return(0,e.createElement)(r.Button,{key:a,isPrimary:i===n[T.value]||i===k&&!x(n[T.value]),onClick:()=>{n[T.value]!==i?o({[T.value]:i,[T.unit]:z}):o({[T.value]:""}),"verticalGap"===l&&o({useLegacyRowGap:!1})}},s)})),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Custom","generateblocks")},(0,e.createElement)(r.Button,{icon:f,onClick:()=>{y(!0),C([...w,l])}}))),L&&(0,e.createElement)("div",{className:"gblocks-number-component__input"},(0,e.createElement)(r.TextControl,{type:"number",value:x(n[T.value])?n[T.value]:"",placeholder:S(T.value,n,u,k),id:h,min:d,max:p,step:b,autoComplete:"off",onChange:e=>{d>=0&&(e=e.toString().replace(/-/g,"")),o({[T.value]:e})},onBlur:()=>{""!==n[T.value]&&!1!==n[T.value]&&o({[T.value]:parseFloat(n[T.value])}),"verticalGap"===l&&o({useLegacyRowGap:!1})},onClick:e=>{e.currentTarget.focus()}}),M.length>0&&(I||!x(n[T.value]))&&!O&&(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Presets","generateblocks")},(0,e.createElement)(r.Button,{icon:f,onClick:()=>{y(!1),o({[T.unit]:z}),C(w.filter((e=>e!==l)))}}))))}var M=a=>{const{attributes:l,state:n,deviceType:o,setAttributes:s}=a,{verticalAlignment:c,verticalAlignmentTablet:u,verticalAlignmentMobile:g,horizontalAlignment:d,horizontalAlignmentTablet:p,horizontalAlignmentMobile:b}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(T,t({},a,{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)(T,t({},a,{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)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:c,help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),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)(e.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)(e.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,m.applyFilters)("generateblocks.editor.controls","","gridLayout",a,n))};const B=/[\s#]/g;var z=t=>{let{anchor:a,setAttributes:l}=t;return(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:a||"",onChange:e=>{const t=e.replace(B,"-");l({anchor:t})}})},I=t=>(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t));function O(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 L(e,t){return!(!e&&0!==e)&&e+t}class A extends e.Component{render(){const t=(0,m.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?"":L(n,"px")}],c[g]=[{"padding-left":L(l,"px"),"margin-bottom":s?L(n,"px"):""}],c=(0,m.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"grid"),(0,e.createElement)("style",null,O(c))}}class R extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class D extends e.Component{render(){const t=(0,m.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:L(n,"px")}],c[g]=[{"padding-left":L(l,"px"),"margin-bottom":s&&(n||0===n)?L(n,"px"):null}],c=(0,m.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"grid"),(0,e.createElement)("style",null,O(c))}}class N extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class F extends e.Component{render(){const t=(0,m.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:L(n,"px")}],c[g]=[{"padding-left":L(l,"px"),"margin-bottom":s&&(n||0===n)?L(n,"px"):null}],c=(0,m.applyFilters)("generateblocks.editor.mobileCSS",c,this.props,"grid"),(0,e.createElement)("style",null,O(c))}}var P=window.lodash,H=a.n(P);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,P.isEqual)(a[e],l[e]))));var a,l}var G=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(A,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(R,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(D,t),"Tablet"===a&&(0,e.createElement)(N,t),"Mobile"===a&&(0,e.createElement)(F,t)))}),V),j=window.wp.compose,U=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop";const[a,n]=_("generateblocksDeviceType",{ssr:!0,defaultValue:t});if(!(0,l.dispatch)("core/edit-post"))return[a,e=>{n(e)}];const{__experimentalSetPreviewDeviceType:r=(()=>{})}=(0,l.useDispatch)("core/edit-post"),i=(0,l.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t=(()=>!1)}=e("core/edit-post");return t()}),[]);(0,e.useEffect)((()=>{i!==a&&n(i)}),[i]);const o=e=>{generateBlocksInfo&&generateBlocksInfo.syncResponsivePreviews&&r(e),n(e)};return[a,o]},W=e=>{const t=(0,l.useSelect)((t=>t("core/block-editor").getBlock(e)));return t?t.innerBlocks.length:0},q=window.wp.coreData,$=()=>(0,l.useSelect)((e=>{const{getTaxonomies:t}=e(q.store);return t({per_page:-1})||[]}),[]);const Z={query:{},records:[],isLoading:!1};function K(e){return Object.assign({},Z,e)}function J(e,t){const a={...e};switch(t.type){case"SET_RECORDS":return Object.assign({},a,{records:(0,P.orderBy)((0,P.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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;const[a,l]=(0,e.useReducer)(J,t,K);return{records:a.records,setRecords:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return l({type:"SET_RECORDS",payload:e})},query:a.query,setQuery:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({type:"SET_QUERY",payload:e})},isLoading:a.isLoading,setIsLoading:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l({type:"SET_IS_LOADING",payload:e})},reset:()=>l({type:"RESET"})}}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.useSelect)((a=>{const{getEntityRecords:l,isResolving:n}=a(q.store),r=Object.assign({per_page:-1},t);r.hasOwnProperty("include")&&(0,P.isUndefined)(r.include)&&delete r.include;const i=["taxonomy",e,r];return{records:l(...i)||[],isResolving:n("getEntityRecords",i)}}),[e,JSON.stringify(t)])}function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(q.store),n=Object.assign({per_page:-1,who:"authors"},e);n.hasOwnProperty("include")&&(0,P.isUndefined)(n.include)&&delete n.include;const r=["root","user",n];return{records:a(...r)||[],isResolving:l("getEntityRecords",r)}}),[JSON.stringify(e)])}const ee=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}=ee(t.innerBlocks);e.uniqueIds=e.uniqueIds.concat(a),e.clientIds=e.clientIds.concat(l)}return e}),{uniqueIds:[],clientIds:[]});var te=t=>a=>{const{clientId:r,attributes:i}=a,{updateBlockAttributes:o}=(0,l.useDispatch)(n.store);return(0,e.useEffect)((()=>{const{uniqueIds:e,clientIds:t}=ee(wp.data.select("core/block-editor").getBlocks());if(!i.uniqueId||(a=e,l=i.uniqueId,n=t.indexOf(r),a.filter((e=>e===l)).length>1&&n===a.lastIndexOf(l))){const e=(e=>e.substr(2,9).replace("-",""))(r);o(r,{uniqueId:e})}var a,l,n}),[r]),(0,e.createElement)(t,a)};function ae(e){return""===e.uniqueId}function le(e,t){return!e||e<t}var ne=a=>l=>{const[n]=U();return(0,e.createElement)(a,t({},l,{deviceType:n}))};class re extends e.Component{render(){const{name:e,children:t}=this.props;return(0,m.applyFilters)(e,t||"",this.props)}}var ie=e=>e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype;function oe(t){const{title:a=!1,initialOpen:l=!1,icon:n,className:i,id:o,state:s,showPanel:c=!0,children:u}=t,[g,d]=_("generateblocksPanels",{ssr:!0,defaultValue:{}});return(0,m.applyFilters)("generateblocks.editor.showPanel",c,o,t)?!u||ie(u)?null:(0,e.createElement)(re,{name:"generateblocks.panel."+o,props:t,state:s},a?(0,e.createElement)(r.PanelBody,{title:a,initialOpen:void 0!==g[o]?g[o]:l,icon:n,className:i,onToggle:()=>{const e=g[o]||void 0===g[o]&&l;d({...g,[o]:!e})}},(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t)):(0,e.createElement)(r.PanelBody,null,(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t))):null}const se=[{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/"}],ce=(0,j.createHigherOrderComponent)((a=>l=>{const{name:r,state:o}=l,s=se.find((e=>r===e.name));return s&&0!==s.length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a,l),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(oe,t({},l,{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,m.applyFilters)("generateblocks.editor.controls","",s.id,l,o)))):(0,e.createElement)(a,l)}),"withDocumentation");function ue(e,t,a){var l=this,n=(0,y.useRef)(null),r=(0,y.useRef)(0),i=(0,y.useRef)(null),o=(0,y.useRef)([]),s=(0,y.useRef)(),c=(0,y.useRef)(),u=(0,y.useRef)(e),g=(0,y.useRef)(!0);u.current=e;var d=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(a=a||{}).leading,b=!("trailing"in a)||!!a.trailing,m="maxWait"in a,h=m?Math.max(+a.maxWait||0,t):null;(0,y.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var f=(0,y.useMemo)((function(){var e=function(e){var t=o.current,a=s.current;return o.current=s.current=null,r.current=e,c.current=u.current.apply(a,t)},a=function(e,t){d&&cancelAnimationFrame(i.current),i.current=d?requestAnimationFrame(e):setTimeout(e,t)},f=function(e){if(!g.current)return!1;var a=e-n.current,l=e-r.current;return!n.current||a>=t||a<0||m&&l>=h},k=function(t){return i.current=null,b&&o.current?e(t):(o.current=s.current=null,c.current)},v=function(){var e=Date.now();if(f(e))return k(e);if(g.current){var l=e-n.current,i=e-r.current,o=t-l,s=m?Math.min(o,h-i):o;a(v,s)}},y=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var b=Date.now(),h=f(b);if(o.current=u,s.current=l,n.current=b,h){if(!i.current&&g.current)return r.current=n.current,a(v,t),p?e(n.current):c.current;if(m)return a(v,t),e(n.current)}return i.current||a(v,t),c.current};return y.cancel=function(){i.current&&(d?cancelAnimationFrame(i.current):clearTimeout(i.current)),r.current=0,o.current=n.current=s.current=i.current=null},y.isPending=function(){return!!i.current},y.flush=function(){return i.current?k(Date.now()):c.current},y}),[p,m,t,h,b,d]);return f}(0,m.addFilter)("editor.BlockEdit","generateblocks/with-documentation",ce,99);const ge=(0,e.memo)((function(a){let{blocks:l,contextId:r,setActiveContextId:i,isHidden:o}=a;const s=(0,n.__experimentalUseBlockPreview)({blocks:l}),c=()=>i(r),u={display:o?"none":void 0};return(0,e.createElement)("div",t({},s,{className:"block-editor-inner-blocks gb-query-loop-block-preview",tabIndex:0,role:"button",onClick:c,onKeyPress:c,style:u}))}));function de(e){return e.map((e=>{const t=de(e.innerBlocks),a=Object.assign({},e.attributes,{isBlockPreview:!0});return Object.assign({},e,{attributes:a,innerBlocks:t})}))}function pe(a){const{clientId:o,data:s,hasData:c,isResolvingData:u,hasResolvedData:g,templateLock:d,contextCallback:p}=a,b=(0,l.useSelect)((e=>{var t;return null===(t=e("core/block-editor"))||void 0===t?void 0:t.getBlocks(o)}),[]),{getSelectedBlock:m}=(0,l.useSelect)(n.store),[h,f]=(0,e.useState)([]),[k,v]=(0,e.useState)();(0,e.useEffect)((()=>{f(de(b))}),[]);const y=ue((()=>{f(de(b))}),10),w=["core/paragraph","core/heading","core/button","generateblocks/headline","generateblocks/button"];(0,e.useEffect)((()=>{var e,t;const a=m();!w.includes(null==a?void 0:a.name)||null!=a&&null!==(e=a.attributes)&&void 0!==e&&e.useDynamicData||null!=a&&null!==(t=a.attributes)&&void 0!==t&&t.dynamicContentType?f(de(b)):y()}),[JSON.stringify(b)]);const C=(0,e.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((l=>{var r,i;return(0,e.createElement)(n.BlockContextProvider,{key:l.postId,value:l},l.postId===(k||(null===(r=C[0])||void 0===r?void 0:r.postId))?(0,e.createElement)(n.InnerBlocks,t({},a,{templateLock:d})):null,(0,e.createElement)(ge,{blocks:h,contextId:l.postId,setActiveContextId:v,isHidden:l.postId===(k||(null===(i=C[0])||void 0===i?void 0:i.postId))}))}))}function be(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,a]=e;return"alt"===t||(Array.isArray(a)?!!a.length:!!a)})))}function me(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=t?`${e.rest}_exclude`:e.rest;return{[a]:{terms:e.terms,include_children:null==e?void 0:e.includeChildren}}}function he(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce(((e,a)=>Object.assign({},e,me(a,t))),{})}function fe(t){const{clientId:a,context:n}=t,r=n["generateblocks/query"]||{},i=(0,e.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,m.applyFilters)("generateblocks.editor.query-loop.normalize-parameters",n)}(e);if(Array.isArray(t.tax_query)){const e=he(t.tax_query);t=Object.assign({},t,e,{tax_query:void 0})}if(Array.isArray(t.tax_query_exclude)){const e=he(t.tax_query_exclude,!0);t=Object.assign({},t,e,{tax_query_exclude:void 0})}return t}(be(r))),[JSON.stringify(r)]),{data:o,isResolvingData:s,hasResolvedData:c}=(0,l.useSelect)((e=>{const{getEntityRecords:t,isResolving:a,hasFinishedResolution:l}=e(q.store),n=["postType",r.post_type||"post",i];return{data:t(...n),isResolvingData:a("getEntityRecords",n),hasResolvedData:l("getEntityRecords",n)}}),[JSON.stringify(i)]);return(0,e.createElement)("div",{className:"gb-post-template-wrapper"},(0,e.createElement)(pe,{data:o,hasData:!(!c||null==o||!o.length),isResolvingData:s,hasResolvedData:c,templateLock:!0,clientId:a,contextCallback:e=>({postType:e.type,postId:e.id})}))}var ke={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},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,inlineWidth:!1,stackVertically:!1,fillHorizontalSpace:!1,dimensions:[]},colors:{enabled:!1,elements:[]},backgroundPanel:{enabled:!1,backgroundImage:!1,backgroundGradient:!1},shapesPanel:{enabled:!1},icon:{enabled:!1,location:[]}}},ve=(0,P.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,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},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:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]},{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}}},ke),ye=(0,P.defaultsDeep)({id:"buttonContainer",supports:{responsiveTabs:!0,spacing:{enabled:!0,stackVertically:!0,fillHorizontalSpace:!0,dimensions:[{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]}]}}},ke),we=(0,P.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,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},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"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"borderColorHover",alpha:!0}]}]},backgroundPanel:{enabled:!0,backgroundGradient:!0},icon:{enabled:!0,location:[{label:(0,i.__)("Left","generateblocks"),value:"left"},{label:(0,i.__)("Right","generateblocks"),value:"right"}]}}},ke),Ce=(0,P.defaultsDeep)({id:"image",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,icon:"backgrounds"},spacing:{enabled:!0,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},colors:{enabled:!0,elements:[{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]}}},ke),_e=(0,P.defaultsDeep)({id:"grid",supports:{responsiveTabs:!0,settingsPanel:{enabled:!0,label:(0,i.__)("Layout","generateblocks"),icon:"layout"}}},ke),Ee=(0,P.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},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,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]},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:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]},backgroundPanel:{enabled:!0,backgroundImage:!0,backgroundGradient:!0},shapesPanel:{enabled:!0}}},ke);const xe=(0,e.createContext)(ke),Se=t=>a=>{const l=(0,m.applyFilters)("generateblocks.editor.blockContext",(n=a.name,{"generateblocks/headline":ve,"generateblocks/button-container":ye,"generateblocks/button":we,"generateblocks/image":Ce,"generateblocks/grid":_e,"generateblocks/container":Ee}[n]),a);var n;return(0,e.createElement)(xe.Provider,{value:l},(0,e.createElement)(t,a))};function Te(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{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{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.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}}}(a))),l}(0,m.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 Me=xe,Be=function(t){let{icon:a,size:l=24,...n}=t;return(0,e.cloneElement)(a,{width:l,height:l,...n})},ze=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.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"})),Ie=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.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"})),Oe=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.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 Le=(0,e.memo)((function(t){let{deviceKey:a,label:l,isActive:n,onClick:i,icon:o}=t;return(0,e.createElement)(r.Tooltip,{text:l},(0,e.createElement)(r.Button,{isPressed:n,onClick:()=>i(a)},(0,e.createElement)(Be,{icon:o})))})),Ae=[{key:"Desktop",label:(0,i.__)("Show options for all devices","generateblocks"),icon:ze},{key:"Tablet",label:(0,i.__)("Show options for tablet devices","generateblocks"),icon:Ie},{key:"Mobile",label:(0,i.__)("Show options for mobile devices","generateblocks"),icon:Oe}];function Re(){const[t,a]=U(),l=(0,e.useCallback)(a,[]);return(0,e.createElement)(e.Fragment,null,Ae&&Ae.map((a=>(0,e.createElement)(Le,{key:a.key,deviceKey:a.key,label:a.label,isActive:t===a.key,icon:a.icon,onClick:l}))))}var De=(0,e.memo)((function(){return(0,e.useEffect)((()=>{const t=document.querySelector(".block-editor-block-inspector"),a=document.querySelector(".gb-responsive-tabs");if(!t||a)return;const l=document.querySelector(".edit-post-sidebar .edit-post-sidebar__panel-tabs"),n=l?`${l.offsetHeight}px`:0,r=document.createElement("div");r.classList.add("gb-responsive-tabs"),r.style.top=n,t.prepend(r),(0,e.render)((0,e.createElement)(Re,null),document.querySelector(".gb-responsive-tabs"))}),[]),null}));function Ne(t){let{attributes:a,computedStyles:l,setAttributes:n,device:r}=t;return(0,e.createElement)(T,{label:(0,i.__)("Font Size","generateblocks"),attributeName:"fontSize",units:["px","em","%"],defaultPlaceholder:l.fontSize&&"px"===a.fontSizeUnit?l.fontSize:"",presets:[{unit:"px",data:[13,17,25,35]}],min:"1",attributes:a,setAttributes:n,device:r})}var Fe=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"})),Pe=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"})),He=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"})),Ve=(0,e.createElement)(h.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})),Ge={fontFamily:[{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}],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:Fe,title:(0,i.__)("Align text left","generateblocks"),align:"left"},{icon:Pe,title:(0,i.__)("Align text center","generateblocks"),align:"center"},{icon:He,title:(0,i.__)("Align text right","generateblocks"),align:"right"},{icon:Ve,title:(0,i.__)("Justify text","generateblocks"),align:"justify"}]};function je(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{labelPosition:"top",label:(0,i.__)("Font weight","generateblocks"),value:a,options:Ge.fontWeight,onChange:l})}function Ue(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{labelPosition:"top",label:(0,i.__)("Transform","generateblocks"),value:a,options:Ge.textTransform,onChange:l})}function We(t){let{attributes:a,setAttributes:l,device:n}=t;return(0,e.createElement)(T,{label:(0,i.__)("Letter Spacing","generateblocks"),attributeName:"letterSpacing",unit:"em",units:["em"],device:n,attributes:a,setAttributes:l,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:-.02},{label:(0,i.__)("Medium","generateblocks"),value:.02},{label:(0,i.__)("Large","generateblocks"),value:.05}]}],min:-1,step:.01})}function qe(t){let{attributes:a,setAttributes:l,device:n}=t;return(0,e.createElement)(T,{label:(0,i.__)("Line Height","generateblocks"),attributeName:"lineHeight",units:["px","em","%"],device:n,attributes:a,setAttributes:l,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:.8},{label:(0,i.__)("Medium","generateblocks"),value:1},{label:(0,i.__)("Large","generateblocks"),value:1.5}]}],min:"0",step:.1})}var $e=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 Ze(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ke(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 Je(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(a),!0).forEach((function(t){Ze(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ke(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Ye(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 Qe(e,t){if(e){if("string"==typeof e)return Ye(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)?Ye(e,t):void 0}}function Xe(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=[],_n=!0,i=!1;try{for(a=a.call(e);!(_n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);_n=!0);}catch(e){i=!0,n=e}finally{try{_n||null==a.return||a.return()}finally{if(i)throw n}}return r}}(e,t)||Qe(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 et(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 tt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function at(e){var t=e.defaultInputValue,a=void 0===t?"":t,l=e.defaultMenuIsOpen,n=void 0!==l&&l,r=e.defaultValue,i=void 0===r?null:r,o=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,g=e.onMenuClose,d=e.onMenuOpen,p=e.value,b=et(e,tt),m=Xe((0,y.useState)(void 0!==o?o:a),2),h=m[0],f=m[1],k=Xe((0,y.useState)(void 0!==s?s:n),2),v=k[0],w=k[1],C=Xe((0,y.useState)(void 0!==p?p:i),2),_=C[0],E=C[1],x=(0,y.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),S=(0,y.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),f(void 0!==a?a:e)}),[u]),T=(0,y.useCallback)((function(){"function"==typeof d&&d(),w(!0)}),[d]),M=(0,y.useCallback)((function(){"function"==typeof g&&g(),w(!1)}),[g]),B=void 0!==o?o:h,z=void 0!==s?s:v,I=void 0!==p?p:_;return Je(Je({},b),{},{inputValue:B,menuIsOpen:z,onChange:x,onInputChange:S,onMenuClose:M,onMenuOpen:T,value:I})}function lt(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,l.key,l)}}function nt(e,t){return nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nt(e,t)}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function it(e){return it="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},it(e)}function ot(e,t){if(t&&("object"===it(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)}function st(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(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 ct=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}(),ut=Math.abs,gt=String.fromCharCode,dt=Object.assign;function pt(e){return e.trim()}function bt(e,t,a){return e.replace(t,a)}function mt(e,t){return e.indexOf(t)}function ht(e,t){return 0|e.charCodeAt(t)}function ft(e,t,a){return e.slice(t,a)}function kt(e){return e.length}function vt(e){return e.length}function yt(e,t){return t.push(e),e}var wt=1,Ct=1,_t=0,Et=0,xt=0,St="";function Tt(e,t,a,l,n,r,i){return{value:e,root:t,parent:a,type:l,props:n,children:r,line:wt,column:Ct,length:i,return:""}}function Mt(e,t){return dt(Tt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Bt(){return xt=Et>0?ht(St,--Et):0,Ct--,10===xt&&(Ct=1,wt--),xt}function zt(){return xt=Et<_t?ht(St,Et++):0,Ct++,10===xt&&(Ct=1,wt++),xt}function It(){return ht(St,Et)}function Ot(){return Et}function Lt(e,t){return ft(St,e,t)}function At(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 Rt(e){return wt=Ct=1,_t=kt(St=e),Et=0,[]}function Dt(e){return St="",e}function Nt(e){return pt(Lt(Et-1,Ht(91===e?e+2:40===e?e+1:e)))}function Ft(e){for(;(xt=It())&&xt<33;)zt();return At(e)>2||At(xt)>3?"":" "}function Pt(e,t){for(;--t&&zt()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return Lt(e,Ot()+(t<6&&32==It()&&32==zt()))}function Ht(e){for(;zt();)switch(xt){case e:return Et;case 34:case 39:34!==e&&39!==e&&Ht(xt);break;case 40:41===e&&Ht(e);break;case 92:zt()}return Et}function Vt(e,t){for(;zt()&&e+xt!==57&&(e+xt!==84||47!==It()););return"/*"+Lt(t,Et-1)+"*"+gt(47===e?e:zt())}function Gt(e){for(;!At(It());)zt();return Lt(e,Et)}var jt="-ms-",Ut="-moz-",Wt="-webkit-",qt="comm",$t="rule",Zt="decl",Kt="@keyframes";function Jt(e,t){for(var a="",l=vt(e),n=0;n<l;n++)a+=t(e[n],n,e,t)||"";return a}function Yt(e,t,a,l){switch(e.type){case"@import":case Zt:return e.return=e.return||e.value;case qt:return"";case Kt:return e.return=e.value+"{"+Jt(e.children,l)+"}";case $t:e.value=e.props.join(",")}return kt(a=Jt(e.children,l))?e.return=e.value+"{"+a+"}":""}function Qt(e,t){switch(function(e,t){return(((t<<2^ht(e,0))<<2^ht(e,1))<<2^ht(e,2))<<2^ht(e,3)}(e,t)){case 5103:return Wt+"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 Wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wt+e+Ut+e+jt+e+e;case 6828:case 4268:return Wt+e+jt+e+e;case 6165:return Wt+e+jt+"flex-"+e+e;case 5187:return Wt+e+bt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Wt+e+jt+"flex-item-"+bt(e,/flex-|-self/,"")+e;case 4675:return Wt+e+jt+"flex-line-pack"+bt(e,/align-content|flex-|-self/,"")+e;case 5548:return Wt+e+jt+bt(e,"shrink","negative")+e;case 5292:return Wt+e+jt+bt(e,"basis","preferred-size")+e;case 6060:return Wt+"box-"+bt(e,"-grow","")+Wt+e+jt+bt(e,"grow","positive")+e;case 4554:return Wt+bt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return bt(bt(bt(e,/(zoom-|grab)/,Wt+"$1"),/(image-set)/,Wt+"$1"),e,"")+e;case 5495:case 3959:return bt(e,/(image-set\([^]*)/,Wt+"$1$`$1");case 4968:return bt(bt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wt+e+e;case 4095:case 3583:case 4068:case 2532:return bt(e,/(.+)-inline(.+)/,Wt+"$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(kt(e)-1-t>6)switch(ht(e,t+1)){case 109:if(45!==ht(e,t+4))break;case 102:return bt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Ut+(108==ht(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mt(e,"stretch")?Qt(bt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ht(e,t+1))break;case 6444:switch(ht(e,kt(e)-3-(~mt(e,"!important")&&10))){case 107:return bt(e,":",":"+Wt)+e;case 101:return bt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wt+(45===ht(e,14)?"inline-":"")+"box$3$1"+Wt+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(ht(e,t+11)){case 114:return Wt+e+jt+bt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wt+e+jt+bt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wt+e+jt+bt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wt+e+jt+e+e}return e}function Xt(e){return Dt(ea("",null,null,null,[""],e=Rt(e),0,[0],e))}function ea(e,t,a,l,n,r,i,o,s){for(var c=0,u=0,g=i,d=0,p=0,b=0,m=1,h=1,f=1,k=0,v="",y=n,w=r,C=l,_=v;h;)switch(b=k,k=zt()){case 40:if(108!=b&&58==_.charCodeAt(g-1)){-1!=mt(_+=bt(Nt(k),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:_+=Nt(k);break;case 9:case 10:case 13:case 32:_+=Ft(b);break;case 92:_+=Pt(Ot()-1,7);continue;case 47:switch(It()){case 42:case 47:yt(aa(Vt(zt(),Ot()),t,a),s);break;default:_+="/"}break;case 123*m:o[c++]=kt(_)*f;case 125*m:case 59:case 0:switch(k){case 0:case 125:h=0;case 59+u:p>0&&kt(_)-g&&yt(p>32?la(_+";",l,a,g-1):la(bt(_," ","")+";",l,a,g-2),s);break;case 59:_+=";";default:if(yt(C=ta(_,t,a,c,u,n,o,v,y=[],w=[],g),r),123===k)if(0===u)ea(_,t,C,C,y,r,g,o,w);else switch(d){case 100:case 109:case 115:ea(e,C,C,l&&yt(ta(e,C,C,0,0,n,o,v,n,y=[],g),w),n,w,g,o,l?y:w);break;default:ea(_,C,C,C,[""],w,0,o,w)}}c=u=p=0,m=f=1,v=_="",g=i;break;case 58:g=1+kt(_),p=b;default:if(m<1)if(123==k)--m;else if(125==k&&0==m++&&125==Bt())continue;switch(_+=gt(k),k*m){case 38:f=u>0?1:(_+="\f",-1);break;case 44:o[c++]=(kt(_)-1)*f,f=1;break;case 64:45===It()&&(_+=Nt(zt())),d=It(),u=g=kt(v=_+=Gt(Ot())),k++;break;case 45:45===b&&2==kt(_)&&(m=0)}}return r}function ta(e,t,a,l,n,r,i,o,s,c,u){for(var g=n-1,d=0===n?r:[""],p=vt(d),b=0,m=0,h=0;b<l;++b)for(var f=0,k=ft(e,g+1,g=ut(m=i[b])),v=e;f<p;++f)(v=pt(m>0?d[f]+" "+k:bt(k,/&\f/g,d[f])))&&(s[h++]=v);return Tt(e,t,a,0===n?$t:o,s,c,u)}function aa(e,t,a){return Tt(e,t,a,qt,gt(xt),ft(e,2,-2),0)}function la(e,t,a,l){return Tt(e,t,a,Zt,ft(e,0,l),ft(e,l+1,-1),l)}var na=function(e,t,a){for(var l=0,n=0;l=n,n=It(),38===l&&12===n&&(t[a]=1),!At(n);)zt();return Lt(e,Et)},ra=new WeakMap,ia=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)||ra.get(a))&&!l){ra.set(e,!0);for(var n=[],r=function(e,t){return Dt(function(e,t){var a=-1,l=44;do{switch(At(l)){case 0:38===l&&12===It()&&(t[a]=1),e[a]+=na(Et-1,t,a);break;case 2:e[a]+=Nt(l);break;case 4:if(44===l){e[++a]=58===It()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=gt(l)}}while(l=zt());return e}(Rt(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]}}},oa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},sa=[function(e,t,a,l){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=Qt(e.value,e.length);break;case Kt:return Jt([Mt(e,{value:bt(e.value,"@","@"+Wt)})],l);case $t: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 Jt([Mt(e,{props:[bt(t,/:(read-\w+)/,":-moz-$1")]})],l);case"::placeholder":return Jt([Mt(e,{props:[bt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Mt(e,{props:[bt(t,/:(plac\w+)/,":-moz-$1")]}),Mt(e,{props:[bt(t,/:(plac\w+)/,jt+"input-$1")]})],l)}return""}))}}],ca=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||sa,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=[Yt,(g=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&g(e)})],p=(c=[ia,oa].concat(r,d),u=vt(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,Jt(Xt(e?e+"{"+t.styles+"}":t.styles),p),l&&(b.inserted[t.name]=!0)};var b={key:t,sheet:new ct({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};function ua(e,t,a){var l="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):l+=a+" "})),l}var ga=function(e,t,a){var l=e.key+"-"+t.name;!1===a&&void 0===e.registered[l]&&(e.registered[l]=t.styles)},da=function(e,t,a){ga(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)}},pa=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)},ba={animationIterationCount: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},ma=/[A-Z]|^ms/g,ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fa=function(e){return 45===e.charCodeAt(1)},ka=function(e){return null!=e&&"boolean"!=typeof e},va=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=fa(a=e)?a:a.replace(ma,"-$&").toLowerCase()),t[e];var a}}(),ya=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ha,(function(e,t,a){return Ca={name:t,styles:a,next:Ca},t}))}return 1===ba[e]||fa(e)||"number"!=typeof t||0===t?t:t+"px"};function wa(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 Ca={name:a.name,styles:a.styles,next:Ca},a.name;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)Ca={name:l.name,styles:l.styles,next:Ca},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+=wa(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]+"}":ka(i)&&(l+=va(r)+":"+ya(r,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var o=wa(e,t,i);switch(r){case"animation":case"animationName":l+=va(r)+":"+o+";";break;default:l+=r+"{"+o+"}"}}else for(var s=0;s<i.length;s++)ka(i[s])&&(l+=va(r)+":"+ya(r,i[s])+";")}return l}(e,t,a);case"function":if(void 0!==e){var n=Ca,r=a(e);return Ca=n,wa(e,t,r)}}if(null==t)return a;var i=t[a];return void 0!==i?i:a}var Ca,_a=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ea=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="";Ca=void 0;var r=e[0];null==r||void 0===r.raw?(l=!1,n+=wa(a,t,r)):n+=r[0];for(var i=1;i<e.length;i++)n+=wa(a,t,e[i]),l&&(n+=r[i]);_a.lastIndex=0;for(var o,s="";null!==(o=_a.exec(n));)s+="-"+o[1];return{name:pa(n)+s,styles:n,next:Ca}},xa={}.hasOwnProperty,Sa=(0,y.createContext)("undefined"!=typeof HTMLElement?ca({key:"css"}):null);Sa.Provider;var Ta=function(e){return(0,y.forwardRef)((function(t,a){var l=(0,y.useContext)(Sa);return e(t,l,a)}))},Ma=(0,y.createContext)({}),Ba=y.useInsertionEffect?y.useInsertionEffect:function(e){e()};function za(e){Ba(e)}var Ia="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Oa=function(e,t){var a={};for(var l in t)xa.call(t,l)&&(a[l]=t[l]);return a[Ia]=e,a},La=function(e){var t=e.cache,a=e.serialized,l=e.isStringTag;return ga(t,a,l),za((function(){return da(t,a,l)})),null},Aa=Ta((function(e,t,a){var l=e.css;"string"==typeof l&&void 0!==t.registered[l]&&(l=t.registered[l]);var n=e[Ia],r=[l],i="";"string"==typeof e.className?i=ua(t.registered,r,e.className):null!=e.className&&(i=e.className+" ");var o=Ea(r,void 0,(0,y.useContext)(Ma));i+=t.key+"-"+o.name;var s={};for(var c in e)xa.call(e,c)&&"css"!==c&&c!==Ia&&(s[c]=e[c]);return s.ref=a,s.className=i,(0,y.createElement)(y.Fragment,null,(0,y.createElement)(La,{cache:t,serialized:o,isStringTag:"string"==typeof n}),(0,y.createElement)(n,s))}));a(679);var Ra=function(e,t){var a=arguments;if(null==t||!xa.call(t,"css"))return y.createElement.apply(void 0,a);var l=a.length,n=new Array(l);n[0]=Aa,n[1]=Oa(e,t);for(var r=2;r<l;r++)n[r]=a[r];return y.createElement.apply(null,n)};function Da(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ea(t)}y.useInsertionEffect?y.useInsertionEffect:y.useLayoutEffect;var Na=function e(t){for(var a=t.length,l=0,n="";l<a;l++){var r=t[l];if(null!=r){var i=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))i=e(r);else for(var o in i="",r)r[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=r}i&&(n&&(n+=" "),n+=i)}}return n};function Fa(e,t,a){var l=[],n=ua(e,l,a);return l.length<2?a:n+t(l)}var Pa=function(e){var t=e.cache,a=e.serializedArr;return za((function(){for(var e=0;e<a.length;e++)da(t,a[e],!1)})),null},Ha=Ta((function(e,t){var a=[],l=function(){for(var e=arguments.length,l=new Array(e),n=0;n<e;n++)l[n]=arguments[n];var r=Ea(l,t.registered);return a.push(r),ga(t,r,!1),t.key+"-"+r.name},n={css:l,cx:function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return Fa(t.registered,l,Na(a))},theme:(0,y.useContext)(Ma)},r=e.children(n);return(0,y.createElement)(y.Fragment,null,(0,y.createElement)(Pa,{cache:t,serializedArr:a}),r)}));Math.min,Math.max;function Va(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ga(e){if(null==e)return window;if(!Va(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ja(e){return Va(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ua(e){return e instanceof Ga(e).HTMLElement}function Wa(e){return e instanceof Ga(e).Element}function qa(e){const{overflow:t,overflowX:a,overflowY:l}=function(e){return Ga(e).getComputedStyle(e)}(e);return/auto|scroll|overlay|hidden/.test(t+l+a)}function $a(){return!/^((?!chrome|android).)*safari/i.test(function(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}())}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const Za=Math.round;function Ka(e,t,a){var l,n,r,i;void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect();let s=1,c=1;t&&Ua(e)&&(s=e.offsetWidth>0&&Za(o.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Za(o.height)/e.offsetHeight||1);const u=Wa(e)?Ga(e):window,g=!$a()&&a,d=(o.left+(g&&null!=(l=null==(n=u.visualViewport)?void 0:n.offsetLeft)?l:0))/s,p=(o.top+(g&&null!=(r=null==(i=u.visualViewport)?void 0:i.offsetTop)?r:0))/c,b=o.width/s,m=o.height/c;return{width:b,height:m,top:p,right:d+b,bottom:p+m,left:d,x:d,y:p}}function Ja(e){return"html"===ja(e)?e:e.assignedSlot||e.parentNode||(function(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ga(e).ShadowRoot||e instanceof ShadowRoot)}(e)?e.host:null)||function(e){return(t=e,(t instanceof Ga(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}(e)}function Ya(e){const t=Ja(e);return["html","body","#document"].includes(ja(t))?e.ownerDocument.body:Ua(t)&&qa(t)?t:Ya(t)}function Qa(e,t){var a;void 0===t&&(t=[]);const l=Ya(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=Ga(l),i=n?[r].concat(r.visualViewport||[],qa(l)?l:[]):l,o=t.concat(i);return n?o:o.concat(Qa(i))}var Xa=y.useLayoutEffect,el=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],tl=function(){};function al(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ll(e,t,a){var l=[a];if(t&&e)for(var n in t)t.hasOwnProperty(n)&&t[n]&&l.push("".concat(al(e,n)));return l.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var nl=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===it(e)&&null!==e?[e]:[];var t},rl=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Je({},et(e,el))};function il(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ol(e){return il(e)?window.pageYOffset:e.scrollTop}function sl(e,t){il(e)?window.scrollTo(0,t):e.scrollTop=t}function cl(e,t,a,l){return a*((e=e/l-1)*e*e+1)+t}function ul(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tl,n=ol(e),r=t-n,i=10,o=0;function s(){var t=cl(o+=i,n,r,a);sl(e,t),o<a?window.requestAnimationFrame(s):l(e)}s()}function gl(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var dl=!1,pl={get passive(){return dl=!0}},bl="undefined"!=typeof window?window:{};bl.addEventListener&&bl.removeEventListener&&(bl.addEventListener("p",tl,pl),bl.removeEventListener("p",tl,!1));var ml=dl;function hl(e){return null!=e}function fl(e,t,a){return e?t:a}var kl=function(e){return"auto"===e?"bottom":e},vl=(0,y.createContext)(null),yl=function(e){var t=e.children,a=e.minMenuHeight,l=e.maxMenuHeight,n=e.menuPlacement,r=e.menuPosition,i=e.menuShouldScrollIntoView,o=e.theme,s=((0,y.useContext)(vl)||{}).setPortalPlacement,c=(0,y.useRef)(null),u=Xe((0,y.useState)(l),2),g=u[0],d=u[1],p=Xe((0,y.useState)(null),2),b=p[0],m=p[1];return Xa((function(){var e=c.current;if(e){var t="fixed"===r,u=function(e){var t=e.maxHeight,a=e.menuEl,l=e.minHeight,n=e.placement,r=e.shouldScroll,i=e.isFixedPosition,o=e.theme.spacing,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,m=a.offsetParent.getBoundingClientRect().top,h=i?window.innerHeight:function(e){return il(e)?window.innerHeight:e.clientHeight}(s),f=ol(s),k=parseInt(getComputedStyle(a).marginBottom,10),v=parseInt(getComputedStyle(a).marginTop,10),y=m-v,w=h-b,C=y+f,_=u-f-b,E=d-h+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&&ul(s,E,S),{placement:"bottom",maxHeight:t};if(!i&&_>=l||i&&w>=l)return r&&ul(s,E,S),{placement:"bottom",maxHeight:i?w-k:_-k};if("auto"===n||i){var T=t,M=i?y:C;return M>=l&&(T=Math.min(M-k-o.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===n)return r&&sl(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(y>=p)return{placement:"top",maxHeight:t};if(C>=p&&!i)return r&&ul(s,x,S),{placement:"top",maxHeight:t};if(!i&&C>=l||i&&y>=l){var B=t;return(!i&&C>=l||i&&y>=l)&&(B=i?y-v:C-v),r&&ul(s,x,S),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}({maxHeight:l,menuEl:e,minHeight:a,placement:n,shouldScroll:i&&!t,isFixedPosition:t,theme:o});d(u.maxHeight),m(u.placement),null==s||s(u.placement)}}),[l,n,r,i,a,s,o]),t({ref:c,placerProps:Je(Je({},e),{},{placement:b||kl(n),maxHeight:g})})},wl=function(e){var t=e.theme,a=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px"),textAlign:"center"}},Cl=wl,_l=wl,El=function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},l)},i),a)};El.defaultProps={children:"No options"};var xl=function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},l)},i),a)};xl.defaultProps={children:"Loading..."};var Sl,Tl,Ml,Bl=["size"],zl={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Il=function(e){var a=e.size,l=et(e,Bl);return Ra("svg",t({height:a,width:a,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zl},l))},Ol=function(e){return Ra(Il,t({size:20},e),Ra("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"}))},Ll=function(e){return Ra(Il,t({size:20},e),Ra("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"}))},Al=function(e){var t=e.isFocused,a=e.theme,l=a.spacing.baseUnit,n=a.colors;return{label:"indicatorContainer",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*l,transition:"color 150ms",":hover":{color:t?n.neutral80:n.neutral40}}},Rl=Al,Dl=Al,Nl=function(){var e=Da.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_"}}}(Sl||(Tl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ml||(Ml=Tl.slice(0)),Sl=Object.freeze(Object.defineProperties(Tl,{raw:{value:Object.freeze(Ml)}})))),Fl=function(e){var t=e.delay,a=e.offset;return Ra("span",{css:Da({animation:"".concat(Nl," 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"},"","")})},Pl=function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.innerProps,i=e.isRtl;return Ra("div",t({css:n("loadingIndicator",e),className:l({indicator:!0,"loading-indicator":!0},a)},r),Ra(Fl,{delay:0,offset:i}),Ra(Fl,{delay:160,offset:!0}),Ra(Fl,{delay:320,offset:!i}))};Pl.defaultProps={size:4};var Hl=["data"],Vl=["innerRef","isDisabled","isHidden","inputClassName"],Gl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},jl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Je({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Gl)},Ul=function(e){return Je({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Gl)},Wl=function(e){var t=e.children,a=e.innerProps;return Ra("div",a,t)},ql={ClearIndicator:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},l)},i),a||Ra(Ol,null))},Control:function(e){var a=e.children,l=e.cx,n=e.getStyles,r=e.className,i=e.isDisabled,o=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return Ra("div",t({ref:s,css:n("control",e),className:l({control:!0,"control--is-disabled":i,"control--is-focused":o,"control--menu-is-open":u},r)},c),a)},DropdownIndicator:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},l)},i),a||Ra(Ll,null))},DownChevron:Ll,CrossIcon:Ol,Group:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,g=e.selectProps;return Ra("div",t({css:r("group",e),className:n({group:!0},l)},s),Ra(i,t({},o,{selectProps:g,theme:u,getStyles:r,cx:n}),c),Ra("div",null,a))},GroupHeading:function(e){var a=e.getStyles,l=e.cx,n=e.className,r=rl(e);r.data;var i=et(r,Hl);return Ra("div",t({css:a("groupHeading",e),className:l({"group-heading":!0},n)},i))},IndicatorsContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.innerProps,i=e.getStyles;return Ra("div",t({css:i("indicatorsContainer",e),className:n({indicators:!0},l)},r),a)},IndicatorSeparator:function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.innerProps;return Ra("span",t({},r,{css:n("indicatorSeparator",e),className:l({"indicator-separator":!0},a)}))},Input:function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.value,i=rl(e),o=i.innerRef,s=i.isDisabled,c=i.isHidden,u=i.inputClassName,g=et(i,Vl);return Ra("div",{className:l({"input-container":!0},a),css:n("input",e),"data-value":r||""},Ra("input",t({className:l({input:!0},u),ref:o,style:Ul(c),disabled:s},g)))},LoadingIndicator:Pl,Menu:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerRef,o=e.innerProps;return Ra("div",t({css:r("menu",e),className:n({menu:!0},l),ref:i},o),a)},MenuList:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.innerRef,s=e.isMulti;return Ra("div",t({css:r("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":s},l),ref:o},i),a)},MenuPortal:function(e){var a=e.appendTo,l=e.children,n=e.className,r=e.controlElement,i=e.cx,o=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=e.getStyles,g=(0,y.useRef)(null),d=(0,y.useRef)(null),p=Xe((0,y.useState)(kl(s)),2),b=p[0],m=p[1],h=(0,y.useMemo)((function(){return{setPortalPlacement:m}}),[]),f=Xe((0,y.useState)(null),2),k=f[0],w=f[1],C=(0,y.useCallback)((function(){if(r){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}}(r),t="fixed"===c?0:window.pageYOffset,a=e[b]+t;a===(null==k?void 0:k.offset)&&e.left===(null==k?void 0:k.rect.left)&&e.width===(null==k?void 0:k.rect.width)||w({offset:a,rect:e})}}),[r,c,b,null==k?void 0:k.offset,null==k?void 0:k.rect.left,null==k?void 0:k.rect.width]);Xa((function(){C()}),[C]);var _=(0,y.useCallback)((function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&g.current&&(d.current=function(e,t,a,l){void 0===l&&(l={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=!0,animationFrame:o=!1}=l,s=n&&!o,c=r&&!o,u=s||c?[...Wa(e)?Qa(e):[],...Qa(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",a,{passive:!0}),c&&e.addEventListener("resize",a)}));let g,d=null;if(i){let l=!0;d=new ResizeObserver((()=>{l||a(),l=!1})),Wa(e)&&!o&&d.observe(e),d.observe(t)}let p=o?Ka(e):null;return o&&function t(){const l=Ka(e);!p||l.x===p.x&&l.y===p.y&&l.width===p.width&&l.height===p.height||a(),p=l,g=requestAnimationFrame(t)}(),a(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",a),c&&e.removeEventListener("resize",a)})),null==(e=d)||e.disconnect(),d=null,o&&cancelAnimationFrame(g)}}(r,g.current,C,{elementResize:"ResizeObserver"in window}))}),[r,C]);Xa((function(){_()}),[_]);var E=(0,y.useCallback)((function(e){g.current=e,_()}),[_]);if(!a&&"fixed"!==c||!k)return null;var x=Ra("div",t({ref:E,css:u("menuPortal",{offset:k.offset,position:c,rect:k.rect}),className:i({"menu-portal":!0},n)},o),l);return Ra(vl.Provider,{value:h},a?(0,v.createPortal)(x,a):x)},LoadingMessage:xl,NoOptionsMessage:El,MultiValue:function(e){var t=e.children,a=e.className,l=e.components,n=e.cx,r=e.data,i=e.getStyles,o=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,g=l.Container,d=l.Label,p=l.Remove;return Ra(Ha,null,(function(l){var b=l.css,m=l.cx;return Ra(g,{data:r,innerProps:Je({className:m(b(i("multiValue",e)),n({"multi-value":!0,"multi-value--is-disabled":s},a))},o),selectProps:u},Ra(d,{data:r,innerProps:{className:m(b(i("multiValueLabel",e)),n({"multi-value__label":!0},a))},selectProps:u},t),Ra(p,{data:r,innerProps:Je({className:m(b(i("multiValueRemove",e)),n({"multi-value__remove":!0},a)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:Wl,MultiValueLabel:Wl,MultiValueRemove:function(e){var a=e.children,l=e.innerProps;return Ra("div",t({role:"button"},l),a||Ra(Ol,{size:14}))},Option:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.isDisabled,o=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return Ra("div",t({css:r("option",e),className:n({option:!0,"option--is-disabled":i,"option--is-focused":o,"option--is-selected":s},l),ref:c,"aria-disabled":i},u),a)},Placeholder:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Ra("div",t({css:r("placeholder",e),className:n({placeholder:!0},l)},i),a)},SelectContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isDisabled,s=e.isRtl;return Ra("div",t({css:r("container",e),className:n({"--is-disabled":o,"--is-rtl":s},l)},i),a)},SingleValue:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.isDisabled,o=e.innerProps;return Ra("div",t({css:r("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":i},l)},o),a)},ValueContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.innerProps,i=e.isMulti,o=e.getStyles,s=e.hasValue;return Ra("div",t({css:o("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},l)},r),a)}},$l=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zl(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((l=e[a])===(n=t[a])||$l(l)&&$l(n)))return!1;var l,n;return!0}for(var Kl={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"},Jl=function(e){return Ra("span",t({css:Kl},e))},Yl={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:"",".")}},Ql=function(e){var t=e.ariaSelection,a=e.focusedOption,l=e.focusedValue,n=e.focusableOptions,r=e.isFocused,i=e.selectValue,o=e.selectProps,s=e.id,c=o.ariaLiveMessages,u=o.getOptionLabel,g=o.inputValue,d=o.isMulti,p=o.isOptionDisabled,b=o.isSearchable,m=o.menuIsOpen,h=o.options,f=o.screenReaderStatus,k=o.tabSelectsValue,v=o["aria-label"],w=o["aria-live"],C=(0,y.useMemo)((function(){return Je(Je({},Yl),c||{})}),[c]),_=(0,y.useMemo)((function(){var e,a="";if(t&&C.onChange){var l=t.option,n=t.options,r=t.removedValue,o=t.removedValues,s=t.value,c=r||l||(e=s,Array.isArray(e)?null:e),g=c?u(c):"",d=n||o||void 0,b=d?d.map(u):[],m=Je({isDisabled:c&&p(c,i),label:g,labels:b},t);a=C.onChange(m)}return a}),[t,C,p,i,u]),E=(0,y.useMemo)((function(){var e="",t=a||l,n=!!(a&&i&&i.includes(a));if(t&&C.onFocus){var r={focused:t,label:u(t),isDisabled:p(t,i),isSelected:n,options:h,context:t===a?"menu":"value",selectValue:i};e=C.onFocus(r)}return e}),[a,l,u,p,C,h,i]),x=(0,y.useMemo)((function(){var e="";if(m&&h.length&&C.onFilter){var t=f({count:n.length});e=C.onFilter({inputValue:g,resultsMessage:t})}return e}),[n,g,m,C,h,f]),S=(0,y.useMemo)((function(){var e="";if(C.guidance){var t=l?"value":m?"menu":"input";e=C.guidance({"aria-label":v,context:t,isDisabled:a&&p(a,i),isMulti:d,isSearchable:b,tabSelectsValue:k})}return e}),[v,a,l,d,p,b,m,C,i,k]),T="".concat(E," ").concat(x," ").concat(S),M=Ra(y.Fragment,null,Ra("span",{id:"aria-selection"},_),Ra("span",{id:"aria-context"},T)),B="initial-input-focus"===(null==t?void 0:t.action);return Ra(y.Fragment,null,Ra(Jl,{id:s},B&&M),Ra(Jl,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},r&&!B&&M))},Xl=[{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źẑżžẓẕƶȥɀⱬꝣ"}],en=new RegExp("["+Xl.map((function(e){return e.letters})).join("")+"]","g"),tn={},an=0;an<Xl.length;an++)for(var ln=Xl[an],nn=0;nn<ln.letters.length;nn++)tn[ln.letters[nn]]=ln.base;var rn=function(e){return e.replace(en,(function(e){return tn[e]}))},on=function(e,t){void 0===t&&(t=Zl);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}(rn),sn=function(e){return e.replace(/^\s+|\s+$/g,"")},cn=function(e){return"".concat(e.label," ").concat(e.value)},un=["innerRef"];function gn(e){var a=e.innerRef,l=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=Xe(e,1)[0];return!a.includes(t)}));return n.reduce((function(e,t){var a=Xe(t,2),l=a[0],n=a[1];return e[l]=n,e}),{})}(et(e,un),"onExited","in","enter","exit","appear");return Ra("input",t({ref:a},l,{css:Da({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 dn=["boxSizing","height","overflow","paddingRight","position"],pn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bn(e){e.preventDefault()}function mn(e){e.stopPropagation()}function hn(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function fn(){return"ontouchstart"in window||navigator.maxTouchPoints}var kn=!("undefined"==typeof window||!window.document||!window.document.createElement),vn=0,yn={capture:!1,passive:!1},wn=function(){return document.activeElement&&document.activeElement.blur()},Cn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function En(e){var t=e.children,a=e.lockEnabled,l=e.captureEnabled,n=function(e){var t=e.isEnabled,a=e.onBottomArrive,l=e.onBottomLeave,n=e.onTopArrive,r=e.onTopLeave,i=(0,y.useRef)(!1),o=(0,y.useRef)(!1),s=(0,y.useRef)(0),c=(0,y.useRef)(null),u=(0,y.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,g=s.scrollHeight,d=s.clientHeight,p=c.current,b=t>0,m=g-d-u,h=!1;m>t&&i.current&&(l&&l(e),i.current=!1),b&&o.current&&(r&&r(e),o.current=!1),b&&t>m?(a&&!i.current&&a(e),p.scrollTop=g,h=!0,i.current=!0):!b&&-t>u&&(n&&!o.current&&n(e),p.scrollTop=0,h=!0,o.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,l,n,r]),g=(0,y.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,y.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),p=(0,y.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),b=(0,y.useCallback)((function(e){if(e){var t=!!ml&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}}),[p,d,g]),m=(0,y.useCallback)((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))}),[p,d,g]);return(0,y.useEffect)((function(){if(t){var e=c.current;return b(e),function(){m(e)}}}),[t,b,m]),function(e){c.current=e}}({isEnabled:void 0===l||l,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,a=e.accountForScrollbars,l=void 0===a||a,n=(0,y.useRef)({}),r=(0,y.useRef)(null),i=(0,y.useCallback)((function(e){if(kn){var t=document.body,a=t&&t.style;if(l&&dn.forEach((function(e){var t=a&&a[e];n.current[e]=t})),l&&vn<1){var r=parseInt(n.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(pn).forEach((function(e){var t=pn[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&fn()&&(t.addEventListener("touchmove",bn,yn),e&&(e.addEventListener("touchstart",hn,yn),e.addEventListener("touchmove",mn,yn))),vn+=1}}),[l]),o=(0,y.useCallback)((function(e){if(kn){var t=document.body,a=t&&t.style;vn=Math.max(vn-1,0),l&&vn<1&&dn.forEach((function(e){var t=n.current[e];a&&(a[e]=t)})),t&&fn()&&(t.removeEventListener("touchmove",bn,yn),e&&(e.removeEventListener("touchstart",hn,yn),e.removeEventListener("touchmove",mn,yn)))}}),[l]);return(0,y.useEffect)((function(){if(t){var e=r.current;return i(e),function(){o(e)}}}),[t,i,o]),function(e){r.current=e}}({isEnabled:a});return Ra(y.Fragment,null,a&&Ra("div",{onClick:wn,css:Cn}),t((function(e){n(e),r(e)})))}var xn=function(e){return e.label},Sn=function(e){return e.value},Tn={clearIndicator:Dl,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){var t=e.isDisabled,a=e.isFocused,l=e.theme,n=l.colors,r=l.borderRadius,i=l.spacing;return{label:"control",alignItems:"center",backgroundColor:t?n.neutral5:n.neutral0,borderColor:t?n.neutral10:a?n.primary:n.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(n.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:a?n.primary:n.neutral30}}},dropdownIndicator:Rl,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing.baseUnit,n=a.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?n.neutral10:n.neutral20,marginBottom:2*l,marginTop:2*l,width:1}},input:function(e){var t=e.isDisabled,a=e.value,l=e.theme,n=l.spacing,r=l.colors;return Je({margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80,transform:a?"translateZ(0)":""},jl)},loadingIndicator:function(e){var t=e.isFocused,a=e.size,l=e.theme,n=l.colors,r=l.spacing.baseUnit;return{label:"loadingIndicator",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*r,transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"}},loadingMessage:_l,menu:function(e){var t,a=e.placement,l=e.theme,n=l.borderRadius,r=l.spacing,i=l.colors;return Ze(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),Ze(t,"backgroundColor",i.neutral0),Ze(t,"borderRadius",n),Ze(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Ze(t,"marginBottom",r.menuGutter),Ze(t,"marginTop",r.menuGutter),Ze(t,"position","absolute"),Ze(t,"width","100%"),Ze(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,a=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:a,paddingTop:a,position:"relative",WebkitOverflowScrolling:"touch"}},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){var t=e.theme,a=t.spacing,l=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:l/2,display:"flex",margin:a.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,a=t.borderRadius,l=t.colors,n=e.cropWithEllipsis;return{borderRadius:a/2,color:l.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,a=t.spacing,l=t.borderRadius,n=t.colors;return{alignItems:"center",borderRadius:l/2,backgroundColor:e.isFocused?n.dangerLight:void 0,display:"flex",paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}}},noOptionsMessage:Cl,option:function(e){var t=e.isDisabled,a=e.isFocused,l=e.isSelected,n=e.theme,r=n.spacing,i=n.colors;return{label:"option",backgroundColor:l?i.primary:a?i.primary25:"transparent",color:t?i.neutral20:l?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:l?i.primary:i.primary50}}},placeholder:function(e){var t=e.theme,a=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing,n=a.colors;return{label:"singleValue",color:t?n.neutral40:n.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,a=e.isMulti,l=e.hasValue,n=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:a&&l&&n?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Mn={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}},Bn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:gl(),captureMenuScroll:!gl(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=Je({ignoreCase:!0,ignoreAccents:!0,stringify:cn,trim:!0,matchFrom:"any"},undefined),l=a.ignoreCase,n=a.ignoreAccents,r=a.stringify,i=a.trim,o=a.matchFrom,s=i?sn(t):t,c=i?sn(r(e)):r(e);return l&&(s=s.toLowerCase(),c=c.toLowerCase()),n&&(s=on(s),c=rn(c)),"start"===o?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:xn,getOptionValue:Sn,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};function zn(e,t,a,l){return{type:"option",data:t,isDisabled:Dn(e,t,a),isSelected:Nn(e,t,a),label:An(e,t),value:Rn(e,t),index:l}}function In(e,t){return e.options.map((function(a,l){if("options"in a){var n=a.options.map((function(a,l){return zn(e,a,t,l)})).filter((function(t){return Ln(e,t)}));return n.length>0?{type:"group",data:a,options:n,index:l}:void 0}var r=zn(e,a,t,l);return Ln(e,r)?r:void 0})).filter(hl)}function On(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,st(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ln(e,t){var a=e.inputValue,l=void 0===a?"":a,n=t.data,r=t.isSelected,i=t.label,o=t.value;return(!Pn(e)||!r)&&Fn(e,{label:i,value:o,data:n},l)}var An=function(e,t){return e.getOptionLabel(t)},Rn=function(e,t){return e.getOptionValue(t)};function Dn(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function Nn(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var l=Rn(e,t);return a.some((function(t){return Rn(e,t)===l}))}function Fn(e,t,a){return!e.filterOption||e.filterOption(t,a)}var Pn=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},Hn=1,Vn=function(e){!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}}),t&&nt(e,t)}(s,e);var a,l,n,r,i,o=(r=s,i=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}}(),function(){var e,t=rt(r);if(i){var a=rt(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return ot(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.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(st(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=fl(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(fl(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=fl(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 ll.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return An(t.props,e)},t.getOptionValue=function(e){return Rn(t.props,e)},t.getStyles=function(e,a){var l=Tn[e](a);l.boxSizing="border-box";var n=t.props.styles[e];return n?n(l,a):l},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Je(Je({},ql),e.components);var e},t.buildCategorizedOptions=function(){return In(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return On(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:Je({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&&il(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 Pn(t.props)},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,m=p.focusedValue,h=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(m)t.removeValue(m);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,h))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||++Hn),t.state.selectValue=nl(e.value),t}return a=s,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()}},{key:"componentDidUpdate",value:function(e){var t,a,l,n,r,i=this.props,o=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!o&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&o&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):c||o||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,a=this.focusedOptionRef,l=t.getBoundingClientRect(),n=a.getBoundingClientRect(),r=a.offsetHeight/3,n.bottom+r>l.bottom?sl(t,Math.min(a.offsetTop+a.clientHeight-t.offsetHeight+r,t.scrollHeight)):n.top-r<l.top&&sl(t,Math.max(a.offsetTop-r,0)),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(Mn):Je(Je({},Mn),this.props.theme):Mn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,l=this.getValue,n=this.selectOption,r=this.setValue,i=this.props,o=i.isMulti,s=i.isRtl,c=i.options;return{clearValue:e,cx:t,getStyles:a,getValue:l,hasValue:this.hasValue(),isMulti:o,isRtl:s,options:c,selectOption:n,selectProps:i,setValue:r,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 Dn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Nn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Fn(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 e=this.props,a=e.isDisabled,l=e.isSearchable,n=e.inputId,r=e.inputValue,i=e.tabIndex,o=e.form,s=e.menuIsOpen,c=this.getComponents().Input,u=this.state,g=u.inputIsHidden,d=u.ariaSelection,p=this.commonProps,b=n||this.getElementId("input"),m=Je(Je(Je({"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"],role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?y.createElement(c,t({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:a,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:r},m)):y.createElement(gn,t({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:tl,onFocus:this.onInputFocus,disabled:a,tabIndex:i,inputMode:"none",form:o,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=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,m=u.placeholder,h=this.state,f=h.selectValue,k=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!g)return b?null:y.createElement(s,t({},c,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return f.map((function(a,o){var s=a===k,u="".concat(e.getOptionLabel(a),"-").concat(e.getOptionValue(a));return y.createElement(l,t({},c,{components:{Container:n,Label:r,Remove:i},isFocused:s,isDisabled:d,key:u,index:o,removeProps:{onClick:function(){return e.removeValue(a)},onTouchEnd:function(){return e.removeValue(a)},onMouseDown:function(e){e.preventDefault()}},data:a}),e.formatOptionLabel(a,"value"))}));if(b)return null;var w=f[0];return y.createElement(o,t({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,t({},a,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;return e&&r?y.createElement(e,t({},a,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),a=e.DropdownIndicator,l=e.IndicatorSeparator;if(!a||!l)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return y.createElement(l,t({},n,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)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 y.createElement(e,t({},a,{innerProps:r,isDisabled:l,isFocused:n}))}},{key:"renderMenu",value:function(){var e=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,m=p.inputValue,h=p.isLoading,f=p.loadingMessage,k=p.minMenuHeight,v=p.maxMenuHeight,w=p.menuIsOpen,C=p.menuPlacement,_=p.menuPosition,E=p.menuPortalTarget,x=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,T=p.noOptionsMessage,M=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!w)return null;var z,I=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 e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},h="".concat(e.getElementId("option"),"-").concat(l),f={id:h,onClick:m,onMouseMove:b,onMouseOver:b,tabIndex:-1};return y.createElement(u,t({},g,{innerProps:f,data:r,isDisabled:i,isSelected:o,key:h,label:s,type:n,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(a.data,"menu"))};if(this.hasOptions())z=this.getCategorizedOptions().map((function(a){if("group"===a.type){var r=a.data,i=a.options,o=a.index,s="".concat(e.getElementId("group"),"-").concat(o),c="".concat(s,"-heading");return y.createElement(l,t({},g,{key:s,data:r,options:i,Heading:n,headingProps:{id:c,data:a.data},label:e.formatGroupLabel(a.data)}),a.options.map((function(e){return I(e,"".concat(o,"-").concat(e.index))})))}if("option"===a.type)return I(a,"".concat(a.index))}));else if(h){var O=f({inputValue:m});if(null===O)return null;z=y.createElement(s,g,O)}else{var L=T({inputValue:m});if(null===L)return null;z=y.createElement(c,g,L)}var A={minMenuHeight:k,maxMenuHeight:v,menuPlacement:C,menuPosition:_,menuShouldScrollIntoView:S},R=y.createElement(yl,t({},g,A),(function(a){var l=a.ref,n=a.placerProps,o=n.placement,s=n.maxHeight;return y.createElement(r,t({},g,A,{innerRef:l,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:o}),y.createElement(En,{captureEnabled:b,onTopArrive:M,onBottomArrive:B,lockEnabled:x},(function(a){return y.createElement(i,t({},g,{innerRef:function(t){e.getMenuListRef(t),a(t)},isLoading:h,maxHeight:s,focusedOption:d}),z)})))}));return E||"fixed"===_?y.createElement(o,t({},g,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:_}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,l=t.isDisabled,n=t.isMulti,r=t.name,i=this.state.selectValue;if(r&&!l){if(n){if(a){var o=i.map((function(t){return e.getOptionValue(t)})).join(a);return y.createElement("input",{name:r,type:"hidden",value:o})}var s=i.length>0?i.map((function(t,a){return y.createElement("input",{key:"i-".concat(a),name:r,type:"hidden",value:e.getOptionValue(t)})})):y.createElement("input",{name:r,type:"hidden"});return y.createElement("div",null,s)}var c=i[0]?this.getOptionValue(i[0]):"";return y.createElement("input",{name:r,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,a=this.state,l=a.ariaSelection,n=a.focusedOption,r=a.focusedValue,i=a.isFocused,o=a.selectValue,s=this.getFocusableOptions();return y.createElement(Ql,t({},e,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:n,focusedValue:r,isFocused:i,selectValue:o,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),a=e.Control,l=e.IndicatorsContainer,n=e.SelectContainer,r=e.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 y.createElement(n,t({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:g}),this.renderLiveRegion(),y.createElement(a,t({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:g,menuIsOpen:u}),y.createElement(r,t({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(l,t({},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=nl(c),b={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||g!==a.inputValue)){var m=u?function(e,t){return On(In(e,t))}(e,p):[],h=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,m);b={selectValue:p,focusedOption:f,focusedValue:h,clearFocusValueOnUpdate:!1}}var k=null!=n&&e!==a?{inputIsHidden:n,inputIsHiddenAfterUpdate:void 0}:{},v=r,y=i&&o;return i&&!y&&(v={value:fl(d,p,p[0]||null),options:p,action:"initial-input-focus"},y=!o),"initial-input-focus"===(null==r?void 0:r.action)&&(v=null),Je(Je(Je({},b),k),{},{prevProps:e,ariaSelection:v,prevWasFocused:y})}}],l&<(a.prototype,l),n&<(a,n),s}(y.Component);Vn.defaultProps=Bn;var Gn=(0,y.forwardRef)((function(e,a){var l=at(e);return y.createElement(Vn,t({ref:a},l))})),jn=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,l=String(e).toLowerCase(),n=String(a.getOptionValue(t)).toLowerCase(),r=String(a.getOptionLabel(t)).toLowerCase();return n===l||r===l},Wn={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,a,l){return!(!e||t.some((function(t){return Un(e,t,l)}))||a.some((function(t){return Un(e,t,l)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},qn=(0,y.forwardRef)((function(e,a){var l=function(e){var t=e.allowCreateWhileLoading,a=void 0!==t&&t,l=e.createOptionPosition,n=void 0===l?"last":l,r=e.formatCreateLabel,i=void 0===r?Wn.formatCreateLabel:r,o=e.isValidNewOption,s=void 0===o?Wn.isValidNewOption:o,c=e.getNewOptionData,u=void 0===c?Wn.getNewOptionData:c,g=e.onCreateOption,d=e.options,p=void 0===d?[]:d,b=e.onChange,m=et(e,jn),h=m.getOptionValue,f=void 0===h?Sn:h,k=m.getOptionLabel,v=void 0===k?xn:k,w=m.inputValue,C=m.isLoading,_=m.isMulti,E=m.value,x=m.name,S=(0,y.useMemo)((function(){return s(w,nl(E),p,{getOptionValue:f,getOptionLabel:v})?u(w,i(w)):void 0}),[i,u,v,f,w,s,p,E]),T=(0,y.useMemo)((function(){return!a&&C||!S?p:"first"===n?[S].concat(st(p)):[].concat(st(p),[S])}),[a,n,C,S,p]),M=(0,y.useCallback)((function(e,t){if("select-option"!==t.action)return b(e,t);var a=Array.isArray(e)?e:[e];if(a[a.length-1]!==S)b(e,t);else if(g)g(w);else{var l=u(w,w),n={action:"create-option",name:x,option:l};b(fl(_,[].concat(st(nl(E)),[l]),l),n)}}),[u,w,_,x,S,g,b,E]);return Je(Je({},m),{},{options:T,onChange:M})}(at(e));return y.createElement(Vn,t({ref:a},l))})),$n=qn,Zn=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")},l=Object.assign({},{marginBottom:"24px"},null==t?void 0:t.wrapperStyles),n=null!=t&&t.isCreatable?$n:Gn,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 Kn(t){let{attributes:a,setAttributes:l}=t;const{fontFamily:n,fontFamilyFallback:o,googleFont:s,googleFontVariants:c}=a,u=(0,e.useMemo)((()=>{const e=Ge.fontFamily;return Object.keys($e).slice(0,20).forEach((t=>{Object.keys(e).some((a=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.value)===t}))||e.push({value:t,label:t})})),e}),[]),g=n?{value:n,label:n}:"";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{label:(0,i.__)("Font Family","generateblocks"),id:"gblocks-font-family",className:"gblocks-font-family"},(0,e.createElement)(Zn,{placeholder:(0,i.__)("Choose or add font name","generateblocks"),options:u,value:g,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,onChange:e=>function(e){l({fontFamily:e}),void 0!==$e[e]?l({googleFont:!0,fontFamilyFallback:$e[e].fallback,googleFontVariants:$e[e].weight.join(", ")}):l({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})}((null==e?void 0:e.value)||"")})),""!==n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Google Fonts API","generateblocks"),checked:!!s,onChange:e=>{l({googleFont:e}),e&&void 0!==$e[n]&&l({fontFamilyFallback:$e[n].fallback,googleFontVariants:$e[n].weight.join(", ")})}}),!!s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.TextControl,{label:(0,i.__)("Font fallback","generateblocks"),value:o,placeholder:(0,i.__)("sans-serif","generateblocks"),onChange:e=>{l({fontFamilyFallback:e})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Variants","generateblocks"),value:c,placeholder:(0,i.__)("300, 400, 400i","generateblocks"),onChange:e=>{l({googleFontVariants:e})}}))))}function Jn(t){let{value:a,onChange:l}=t;const n=Ge.alignments;return(0,e.createElement)(r.BaseControl,{label:(0,i.__)("Text Alignment","generateblocks"),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((t=>(0,e.createElement)(r.Tooltip,{key:t.align,text:t.title},(0,e.createElement)(r.Button,{isPrimary:t.align===a,onClick:()=>l(t.align!==a?t.align:""),icon:t.icon})))))))}function Yn(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{attributes:l,deviceType:n}=t,r="Desktop"===n?"":n,i=e+r;return a?i:l[i]}function Qn(t){let{children:a}=t;return(0,e.createElement)("div",{className:"gblocks-flex-control"},a)}var Xn=()=>{const{deviceType:t}=(0,e.useContext)(Me);return t};function er(t){let{attributes:a,setAttributes:l,computedStyles:n}=t;const r=Xn(),{id:o,supports:{typography:s}}=(0,e.useContext)(Me),c="Desktop"===r;return(0,e.createElement)(oe,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:p("typography"),className:"gblocks-panel-label",id:`${o}Typography`},s.alignment&&(0,e.createElement)(Jn,{value:Yn("alignment",{attributes:a,deviceType:r}),onChange:e=>l({[Yn("alignment",{attributes:a,deviceType:r},!0)]:e})}),!!c&&(s.fontWeight||s.textTransform)&&(0,e.createElement)(Qn,null,(0,e.createElement)(je,{value:a.fontWeight,onChange:e=>l({fontWeight:e})}),(0,e.createElement)(Ue,{value:a.textTransform,onChange:e=>l({textTransform:e})})),s.fontSize&&(0,e.createElement)(Ne,{attributes:a,setAttributes:l,computedStyles:n,device:r}),s.lineHeight&&(0,e.createElement)(qe,{attributes:a,setAttributes:l,device:r}),s.letterSpacing&&(0,e.createElement)(We,{attributes:a,setAttributes:l,device:r}),s.fontFamily&&c&&(0,e.createElement)(Kn,{attributes:a,setAttributes:l}))}var tr=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),ar=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));function lr(t){const{setAttributes:a,attributes:l,label:n=(0,i.__)("Padding","generateblocks"),type:o="padding",labelTop:s=(0,i.__)("Top","generateblocks"),labelRight:c=(0,i.__)("Right","generateblocks"),labelBottom:u=(0,i.__)("Bottom","generateblocks"),labelLeft:g=(0,i.__)("Left","generateblocks"),device:d,units:p,computedStyles:b={}}=t,m={top:o+"Top",right:o+"Right",bottom:o+"Bottom",left:o+"Left",unit:o+"Unit",sync:o+"SyncUnits"},h={top:s,right:c,bottom:u,left:g};"borderRadius"===o&&(m.top="borderRadiusTopLeft",m.right="borderRadiusTopRight",m.bottom="borderRadiusBottomRight",m.left="borderRadiusBottomLeft",h.top=(0,i._x)("T-Left","short for Top Left","generateblocks"),h.right=(0,i._x)("T-Right","short for Top Right","generateblocks"),h.bottom=(0,i._x)("B-Right","short for Bottom Right","generateblocks"),h.left=(0,i._x)("B-Left","short for Bottom Left","generateblocks")),"Desktop"!==d&&(m.top+=d,m.right+=d,m.bottom+=d,m.left+=d);const f=e=>a({[m.top]:e,[m.right]:e,[m.bottom]:e,[m.left]:e});return(0,e.createElement)(r.BaseControl,{className:"components-gblocks-dimensions-control"},(0,e.createElement)(E,{label:n,value:void 0!==l[m.unit]?l[m.unit]:"px",units:p,onClick:e=>(e=>a({[[m.unit]]:e}))(e)}),(0,e.createElement)("div",{className:"components-gblocks-dimensions-control__inputs"},(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.top,className:"components-gblocks-dimensions-control__number",placeholder:S(m.top,l,d,"margin"===o&&"px"===l.marginUnit?b.marginTop:""),type:"margin"===o?"text":"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),"margin"===o&&t&&(t=t.toString().toLowerCase()),l[m.sync]?f(t):(e=>{a({[m.top]:e})})(t)} /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Top","generateblocks"),n),value:l[m.top]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.top,className:"gblocks-dimensions-control__label"},h.top)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.right,className:"components-gblocks-dimensions-control__number",placeholder:S(m.right,l,d,""),type:"margin"===o?"text":"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),"margin"===o&&t&&(t=t.toString().toLowerCase()),l[m.sync]?f(t):(e=>{a({[m.right]:e})})(t)} /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Right","generateblocks"),n),value:l[m.right]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.right,className:"gblocks-dimensions-control__label"},h.right)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.bottom,className:"components-gblocks-dimensions-control__number",placeholder:S(m.bottom,l,d,"margin"===o&&"px"===l.marginUnit?b.marginBottom:""),type:"margin"===o?"text":"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),"margin"===o&&t&&(t=t.toString().toLowerCase()),l[m.sync]?f(t):(e=>{a({[m.bottom]:e})})(t)} /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Bottom","generateblocks"),n),value:l[m.bottom]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.bottom,className:"gblocks-dimensions-control__label"},h.bottom)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.left,className:"components-gblocks-dimensions-control__number",placeholder:S(m.left,l,d,""),type:"margin"===o?"text":"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),"margin"===o&&t&&(t=t.toString().toLowerCase()),l[m.sync]?f(t):(e=>{a({[m.left]:e})})(t)} -/* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Left","generateblocks"),n),value:l[m.left]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.left,className:"gblocks-dimensions-control__label"},h.left)),(0,e.createElement)(r.Tooltip,{text:l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks")},(0,e.createElement)(r.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks"),isPrimary:!!l[m.sync]&&l[m.sync],"aria-pressed":!!l[m.sync]&&l[m.sync],onClick:()=>(e=>{const t=[l[m.top],l[m.right],l[m.bottom],l[m.left]].filter((e=>""!==e));if(0===t.length)return void a({[e]:!l[e]});const n=t.includes("auto")?"auto":Math.max.apply(null,t).toString();a({[e]:!l[e],[m.top]:n,[m.right]:n,[m.bottom]:n,[m.left]:n})})(m.sync),isSmall:!0},l[m.sync]?tr:ar))))}function nr(a){const{dimensions:l,deviceType:n,computedStyles:r}=a,i=(0,m.applyFilters)("generateblocks.editor.dimensionGroupItems",l,a);return(0,e.createElement)(e.Fragment,null,i.map(((l,i)=>(0,e.createElement)(lr,t({},a,{key:i,device:n,type:l.type,label:l.label,units:l.units,computedStyles:r})))))}function rr(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:a,onChange:l})}function ir(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:a,onChange:l})}function or(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:a,onChange:l})}function sr(t){const{supports:{spacing:a}}=(0,e.useContext)(Me),{inlineWidth:l,onChangeInlineWidth:n,stack:r,onChangeStack:i,fill:o,onFillChange:s}=t;return(0,e.createElement)(e.Fragment,null,a.inlineWidth&&(0,e.createElement)(rr,{checked:l,onChange:n}),a.stackVertically&&(0,e.createElement)(ir,{checked:r,onChange:i}),a.fillHorizontalSpace&&(0,e.createElement)(or,{checked:o,onChange:s}))}function cr(t){let{attributes:a,setAttributes:l,computedStyles:n}=t;const r=Xn(),{id:o,supports:{spacing:s}}=(0,e.useContext)(Me),{inlineWidth:c,inlineWidthTablet:u,inlineWidthMobile:g,stack:d,stackTablet:b,stackMobile:m,fillHorizontalSpace:h,fillHorizontalSpaceTablet:f,fillHorizontalSpaceMobile:k}=a;return(0,e.createElement)(oe,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:p("spacing"),className:"gblocks-panel-label",id:`${o}Spacing`},s.dimensions&&(0,e.createElement)(nr,{deviceType:r,attributes:a,setAttributes:l,computedStyles:n,dimensions:s.dimensions}),"Desktop"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sr,{inlineWidth:!!c,onChangeInlineWidth:e=>l({inlineWidth:e}),stack:!!d,onChangeStack:e=>{l({stack:e,stackTablet:e&&!b?e:b,stackMobile:e&&!m?e:m})},fill:!!h,onFillChange:e=>{l({fillHorizontalSpace:e,fillHorizontalSpaceTablet:e&&!f?e:f,fillHorizontalSpaceMobile:e&&!k?e:k})}})),"Tablet"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sr,{inlineWidth:!!u,onChangeInlineWidth:e=>l({inlineWidthTablet:e}),stack:!!b,onChangeStack:e=>{l({stackTablet:e,stackMobile:e&&!m?e:m})},fill:!!f,onFillChange:e=>{l({fillHorizontalSpaceTablet:e,fillHorizontalSpaceMobile:e&&!k?e:k})}})),"Mobile"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sr,{inlineWidth:!!g,onChangeInlineWidth:e=>l({inlineWidthMobile:e}),stack:!!m,onChangeStack:e=>l({stackMobile:e}),fill:!!k,onFillChange:e=>l({fillHorizontalSpaceMobile:e})})))}function ur(){return(ur=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 gr(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 dr(e){var t=(0,y.useRef)(e),a=(0,y.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,a.current}var pr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},br=function(e){return"touches"in e},mr=function(e){return e&&e.ownerDocument.defaultView||self},hr=function(e,t,a){var l=e.getBoundingClientRect(),n=br(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:pr((n.pageX-(l.left+mr(e).pageXOffset))/l.width),top:pr((n.pageY-(l.top+mr(e).pageYOffset))/l.height)}},fr=function(e){!br(e)&&e.preventDefault()},kr=w().memo((function(e){var t=e.onMove,a=e.onKey,l=gr(e,["onMove","onKey"]),n=(0,y.useRef)(null),r=dr(t),i=dr(a),o=(0,y.useRef)(null),s=(0,y.useRef)(!1),c=(0,y.useMemo)((function(){var e=function(e){fr(e),(br(e)?e.touches.length>0:e.buttons>0)&&n.current?r(hr(n.current,e,o.current)):a(!1)},t=function(){return a(!1)};function a(a){var l=s.current,r=mr(n.current),i=a?r.addEventListener:r.removeEventListener;i(l?"touchmove":"mousemove",e),i(l?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,l=n.current;if(l&&(fr(t),!function(e,t){return t&&!br(e)}(t,s.current)&&l)){if(br(t)){s.current=!0;var i=t.changedTouches||[];i.length&&(o.current=i[0].identifier)}l.focus(),r(hr(l,t,o.current)),a(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),i({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]}),[i,r]),u=c[0],g=c[1],d=c[2];return(0,y.useEffect)((function(){return d}),[d]),w().createElement("div",ur({},l,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:n,onKeyDown:g,tabIndex:0,role:"slider"}))})),vr=function(e){return e.filter(Boolean).join(" ")},yr=function(e){var t=e.color,a=e.left,l=e.top,n=void 0===l?.5:l,r=vr(["react-colorful__pointer",e.className]);return w().createElement("div",{className:r,style:{top:100*n+"%",left:100*a+"%"}},w().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},wr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a},Cr=(Math.PI,function(e){var t=e.s,a=e.v,l=e.a,n=(200-t)*a/100;return{h:wr(e.h),s:wr(n>0&&n<200?t*a/100/(n<=100?n:200-n)*100:0),l:wr(n/2),a:wr(l,2)}}),_r=function(e){var t=Cr(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Er=function(e){var t=Cr(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},xr=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:wr(255*[l,o,i,i,s,l][c]),g:wr(255*[s,l,l,o,i,i][c]),b:wr(255*[i,i,s,l,l,o][c]),a:wr(n,2)}},Sr=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Mr({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}},Tr=Sr,Mr=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:wr(60*(o<0?o+6:o)),s:wr(r?i/r*100:0),v:wr(r/255*100),a:n}},Br=w().memo((function(e){var t=e.hue,a=e.onChange,l=vr(["react-colorful__hue",e.className]);return w().createElement("div",{className:l},w().createElement(kr,{onMove:function(e){a({h:360*e.left})},onKey:function(e){a({h:pr(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":wr(t)},w().createElement(yr,{className:"react-colorful__hue-pointer",left:t/360,color:_r({h:t,s:100,v:100,a:1})})))})),zr=w().memo((function(e){var t=e.hsva,a=e.onChange,l={backgroundColor:_r({h:t.h,s:100,v:100,a:1})};return w().createElement("div",{className:"react-colorful__saturation",style:l},w().createElement(kr,{onMove:function(e){a({s:100*e.left,v:100-100*e.top})},onKey:function(e){a({s:pr(t.s+100*e.left,0,100),v:pr(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+wr(t.s)+"%, Brightness "+wr(t.v)+"%"},w().createElement(yr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_r(t)})))})),Ir=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Or(e,t,a){var l=dr(a),n=(0,y.useState)((function(){return e.toHsva(t)})),r=n[0],i=n[1],o=(0,y.useRef)({color:t,hsva:r});(0,y.useEffect)((function(){if(!e.equal(t,o.current.color)){var a=e.toHsva(t);o.current={hsva:a,color:t},i(a)}}),[t,e]),(0,y.useEffect)((function(){var t;(function(e,t){if(e===t)return!0;for(var a in e)if(e[a]!==t[a])return!1;return!0})(r,o.current.hsva)||e.equal(t=e.fromHsva(r),o.current.color)||(o.current={hsva:r,color:t},l(t))}),[r,e,l]);var s=(0,y.useCallback)((function(e){i((function(t){return Object.assign({},t,e)}))}),[]);return[r,s]}var Lr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,Ar=new Map,Rr=function(e){Lr((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Ar.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}',Ar.set(t,l);var n=a.nc;n&&l.setAttribute("nonce",n),t.head.appendChild(l)}}),[])},Nr=function(e){var t=e.className,a=e.colorModel,l=e.color,n=void 0===l?a.defaultColor:l,r=e.onChange,i=gr(e,["className","colorModel","color","onChange"]),o=(0,y.useRef)(null);Rr(o);var s=Or(a,n,r),c=s[0],u=s[1],g=vr(["react-colorful",t]);return w().createElement("div",ur({},i,{ref:o,className:g}),w().createElement(zr,{hsva:c,onChange:u}),w().createElement(Br,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},Dr=function(e){var t=e.className,a=e.hsva,l=e.onChange,n={backgroundImage:"linear-gradient(90deg, "+Er(Object.assign({},a,{a:0}))+", "+Er(Object.assign({},a,{a:1}))+")"},r=vr(["react-colorful__alpha",t]);return w().createElement("div",{className:r},w().createElement("div",{className:"react-colorful__alpha-gradient",style:n}),w().createElement(kr,{onMove:function(e){l({a:e.left})},onKey:function(e){l({a:pr(a.a+e.left)})},"aria-label":"Alpha","aria-valuetext":wr(100*a.a)+"%"},w().createElement(yr,{className:"react-colorful__alpha-pointer",left:a.a,color:Er(a)})))},Fr=function(e){var t=e.className,a=e.colorModel,l=e.color,n=void 0===l?a.defaultColor:l,r=e.onChange,i=gr(e,["className","colorModel","color","onChange"]),o=(0,y.useRef)(null);Rr(o);var s=Or(a,n,r),c=s[0],u=s[1],g=vr(["react-colorful",t]);return w().createElement("div",ur({},i,{ref:o,className:g}),w().createElement(zr,{hsva:c,onChange:u}),w().createElement(Br,{hue:c.h,onChange:u}),w().createElement(Dr,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},Pr={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Sr,fromHsva:function(e){var t=xr(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Ir},Hr=function(e){return w().createElement(Fr,ur({},e,{colorModel:Pr}))},Vr={defaultColor:"rgb(0, 0, 0)",toHsva:Tr,fromHsva:function(e){var t=xr(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Ir},Gr=function(e){return w().createElement(Nr,ur({},e,{colorModel:Vr}))},Ur={grad:.9,turn:360,rad:360/(2*Math.PI)},jr=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Wr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a+0},qr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e>t?e:t},$r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Zr=function(e){return{r:qr(e.r,0,255),g:qr(e.g,0,255),b:qr(e.b,0,255),a:qr(e.a)}},Kr=function(e){return{r:Wr(e.r),g:Wr(e.g),b:Wr(e.b),a:Wr(e.a,3)}},Jr=/^#([0-9a-f]{3,8})$/i,Yr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Qr=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}},Xr=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}},ei=function(e){return{h:$r(e.h),s:qr(e.s,0,100),l:qr(e.l,0,100),a:qr(e.a)}},ti=function(e){return{h:Wr(e.h),s:Wr(e.s),l:Wr(e.l),a:Wr(e.a,3)}},ai=function(e){return Xr((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},li=function(e){return{h:(t=Qr(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},ni=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ri=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ii=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,oi=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,si={string:[[function(e){var t=Jr.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?Wr(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?Wr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ii.exec(e)||oi.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Zr({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=ni.exec(e)||ri.exec(e);if(!t)return null;var a,l,n=ei({h:(a=t[1],l=t[2],void 0===l&&(l="deg"),Number(a)*(Ur[l]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ai(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 jr(t)&&jr(a)&&jr(l)?Zr({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(!jr(t)||!jr(a)||!jr(l))return null;var i=ei({h:Number(t),s:Number(a),l:Number(l),a:Number(r)});return ai(i)},"hsl"],[function(e){var t=e.h,a=e.s,l=e.v,n=e.a,r=void 0===n?1:n;if(!jr(t)||!jr(a)||!jr(l))return null;var i=function(e){return{h:$r(e.h),s:qr(e.s,0,100),v:qr(e.v,0,100),a:qr(e.a)}}({h:Number(t),s:Number(a),v:Number(l),a:Number(r)});return Xr(i)},"hsv"]]},ci=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]},ui=function(e,t){var a=li(e);return{h:a.h,s:qr(a.s+100*t,0,100),l:a.l,a:a.a}},gi=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},di=function(e,t){var a=li(e);return{h:a.h,s:a.s,l:qr(a.l+100*t,0,100),a:a.a}},pi=function(){function e(e){this.parsed=function(e){return"string"==typeof e?ci(e.trim(),si.string):"object"==typeof e&&null!==e?ci(e,si.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 Wr(gi(this.rgba),2)},e.prototype.isDark=function(){return gi(this.rgba)<.5},e.prototype.isLight=function(){return gi(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Kr(this.rgba)).r,a=e.g,l=e.b,r=(n=e.a)<1?Yr(Wr(255*n)):"","#"+Yr(t)+Yr(a)+Yr(l)+r;var e,t,a,l,n,r},e.prototype.toRgb=function(){return Kr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Kr(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 ti(li(this.rgba))},e.prototype.toHslString=function(){return t=(e=ti(li(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=Qr(this.rgba),{h:Wr(e.h),s:Wr(e.s),v:Wr(e.v),a:Wr(e.a,3)};var e},e.prototype.invert=function(){return bi({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),bi(ui(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),bi(ui(this.rgba,-e))},e.prototype.grayscale=function(){return bi(ui(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),bi(di(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),bi(di(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?bi({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Wr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=li(this.rgba);return"number"==typeof e?bi({h:e,s:t.s,l:t.l,a:t.a}):Wr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===bi(e).toHex()},e}(),bi=function(e){return e instanceof pi?e:new pi(e)};function mi(e,t){return e?(t||0===t)&&1!==t&&e.startsWith("#")?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}function hi(t){const{value:a,onChange:l,onOpacityChange:o,label:s,alpha:c=!1,valueOpacity:u=1,tooltip:g}=t,[d,b]=(0,e.useState)(a||""),m=(0,e.useRef)(null),h=c&&1===u?Hr:Gr,f=(0,e.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 bi(e).toRgbString()})(a)),[a]),k=(0,U.useDebounce)(l);return(0,e.useEffect)((()=>{a!==d&&k(d),setTimeout((()=>{m.current&&m.current.focus()}),10)}),[d]),(0,e.createElement)("div",{className:"gblocks-color-component"},!!s&&(0,e.createElement)("span",{className:"gblocks-color-component__label"},s),(0,e.createElement)(r.Dropdown,{className:"gblocks-color-component__toggle",contentClassName:"gblocks-color-component-content",position:"top left",renderToggle:t=>{let{isOpen:l,onToggle:n}=t;const i=(0,e.createElement)(r.Button,{className:"gblocks-color-component__toggle-button",onClick:n,"aria-expanded":l},(0,e.createElement)("span",{className:"gblocks-color-component__toggle-indicator",style:{background:a?mi(a,u):null}}));return(0,e.createElement)(e.Fragment,null,g?(0,e.createElement)(r.Tooltip,{text:g},i):i)},renderContent:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{color:f,onChange:e=>{bi(e).isValid()&&(e=1===bi(e).alpha()?bi(e).toHex():e),b(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:d,onChange:e=>{!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),b(e)},onBlur:()=>{bi(a).isValid()&&1===bi(a).alpha()&&b(bi(a).toHex())}}),(0,e.createElement)(r.Button,{isSmall:!0,isSecondary:!0,className:"gblocks-color-input-clear",onClick:()=>{b(""),c&&1!==u&&o(1)}},(0,i.__)("Clear","generateblocks"))),c&&1!==u&&(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:u||0,onChange:e=>o(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=>{b(e)},disableCustomColors:!0,clearable:!1})))}))}function fi(t){const{setAttributes:a,attributes:l,colors:n}=t,r=(0,m.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)(hi,{key:n,label:null==t?void 0:t.label,tooltip:null==t?void 0: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 ki(t){let{attributes:a,setAttributes:l}=t;const{id:n,blockName:r,supports:{colors:o}}=(0,e.useContext)(Me);return(0,e.createElement)(oe,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!0,icon:p("colors"),className:"gblocks-panel-label",id:`${n}Colors`},(0,e.createElement)(fi,{attributes:a,setAttributes:l,colors:o.elements,name:r}))}var vi={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"}))},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"}))},twitter:{label:(0,i._x)("Twitter","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:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}))},twitterSquare:{label:(0,i._x)("Twitter - 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-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}))},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"}))}},yi={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"}))}},wi=a(856),Ci=a.n(wi);function _i(e){return Ci().sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}class Ei extends e.Component{constructor(){super(...arguments),this.state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1}}render(){const{attributes:t,setAttributes:a,attrIcon:l,attrIconLocation:n,locationOptions:o,attrRemoveText:s,id:c}=this.props;let u={general:{group:(0,i.__)("General","generateblocks"),svgs:yi},social:{group:(0,i.__)("Social","generateblocks"),svgs:vi}};return u=(0,m.applyFilters)("generateblocks.editor.iconSVGSets",u,{attributes:t}),(0,e.createElement)(e.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[l],onChange:e=>{a({[this.props.attrIcon]:_i(e)}),a(""!==e?{hasIcon:!0,display:"headline"===c?"flex":"inline-flex",alignItems:"center"}:{hasIcon:!1})}}),(0,e.createElement)("div",{className:"gb-icon-preview"},(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:_i(t[l])}}),(0,e.createElement)(r.Button,{isSmall:!0,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(u).map(((t,l)=>{const n=u[t].svgs;return(0,e.createElement)(r.PanelBody,{className:"gblocks-panel-label gblocks-icon-panel",title:u[t].group,initialOpen:!1,key:l},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(n).map(((t,l)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${l}`},(0,e.createElement)(r.Tooltip,{text:n[t].label},(0,e.createElement)(r.Button,{className:"editor-block-list-item-button",onClick:()=>{let l=n[t].icon;"string"!=typeof l&&(l=(0,e.renderToString)(l)),a({[this.props.attrIcon]:l,hasIcon:!0,display:"headline"===c?"flex":"inline-flex",alignItems:"center"})}},"string"==typeof n[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:_i(n[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},n[t].icon)))))))))))}))),void 0!==t[n]&&!t[s]&&!!t[l]&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:t[n],options:o,onChange:e=>{const l=t.iconPaddingLeft,n=t.iconPaddingRight,r=t.iconPaddingRightTablet,i=t.iconPaddingLeftTablet,o=t.iconPaddingRightMobile,s=t.iconPaddingLeftMobile;"right"===e&&(!l&&n&&a({iconPaddingLeft:n,iconPaddingRight:""}),!i&&r&&a({iconPaddingLeftTablet:r,iconPaddingRightTablet:""}),!s&&o&&a({iconPaddingLeftMobile:o,iconPaddingRightMobile:""})),"left"===e&&(!n&&l&&a({iconPaddingRight:l,iconPaddingLeft:""}),!r&&i&&a({iconPaddingRightTablet:i,iconPaddingLeftTablet:""}),!o&&s&&a({iconPaddingRightMobile:s,iconPaddingLeftMobile:""})),a({[this.props.attrIconLocation]:e})}}),void 0!==t[s]&&!!t[l]&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Text","generateblocks"),checked:!!t[s],onChange:e=>{a({[this.props.attrRemoveText]:e})}}))}}var xi=Ei;function Si(t){let{value:a,onChange:l,options:n}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:a,options:n,onChange:l})}function Ti(t){let{attributes:a,setAttributes:l}=t;const n=Xn();return(0,e.createElement)(lr,{attributes:a,setAttributes:l,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"],device:n})}function Mi(t){const{locationOptions:a,iconLocation:l,attributes:n,setAttributes:r,onChangeLocation:i}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Si,{value:l,onChange:i,options:a}),(0,e.createElement)(Ti,{attributes:n,setAttributes:r}))}function Bi(t){let{attributes:a,setAttributes:l}=t;const n=Xn();return(0,e.createElement)(T,{attributes:a,setAttributes:l,label:(0,i.__)("Icon Size","generateblocks"),attributeName:"iconSize",units:["px","em"],device:n,presets:[{unit:"em",data:[.7,1,1.5,2]}],presetUnit:"em",min:"1",step:"em"===a.iconSizeUnit?.1:1})}function zi(t){let{attributes:a,setAttributes:l}=t;const{id:n,supports:{icon:r}}=(0,e.useContext)(Me),o=Xn(),{icon:s,iconLocation:c,iconLocationTablet:u,iconLocationMobile:g,removeText:d}=a;return(0,e.createElement)(oe,{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)(xi,{attributes:a,setAttributes:l,attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel",id:n}),!!s&&!d&&(0,e.createElement)(Mi,{attributes:a,setAttributes:l,iconLocation:c,locationOptions:r.location,onChangeLocation:e=>{l({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)(Mi,{attributes:a,setAttributes:l,iconLocation:u,locationOptions:r.location,onChangeLocation:e=>{l({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)(Mi,{attributes:a,setAttributes:l,iconLocation:g,locationOptions:r.location,onChangeLocation:e=>{l({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e||"left"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":"",iconPaddingLeftMobile:"right"===e?"0.5":""})}}),!!s&&(0,e.createElement)(Bi,{attributes:a,setAttributes:l}))}function Ii(t){let{children:a}=t;const{id:l,supports:{settingsPanel:n}}=(0,e.useContext)(Me);return(0,e.createElement)(oe,{title:n.label,initialOpen:!1,icon:p(n.icon),className:"gblocks-panel-label",id:`${l}Settings`},a)}function Oi(t){let{bgImage:a,setAttributes:l,isUsingFeaturedImage:o}=t;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:a?a.image.url:"",onChange:e=>{l(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"),l({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:()=>{document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:a?a.id:"",modalClass:"editor-gb-container-background__media-modal",render:t=>{let{open:a}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Open the Media Library","generateblocks")},(0,e.createElement)(r.Button,{onClick:a,className:"is-secondary is-small"},(0,i.__)("Browse","generateblocks")))}})))),o&&(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Using featured image as dynamic background.","generateblocks")))}function Li(t){let{disabled:a,checked:l,onChange:n}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use inline style","generateblocks"),disabled:a,checked:l,onChange:n})}function Ai(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Background Color Overlay","generateblocks"),checked:a,onChange:l}),(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 Ri(t){let{value:a,onChange:l}=t;const n=[];return Object.keys(generateBlocksInfo.imageSizes).forEach((e=>{n.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Image Size","generateblocks"),value:a,options:n,onChange:l})}function Ni(t){let{value:a,onChange:l,position:n,useInnerContainer:o}=t,s=null;return o||"pseudo-element"!==a||(s=(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"),n||(s=(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:a,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:l,help:s})}function Di(t){let{value:a,onChange:l,isPseudoElement:n}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RangeControl,{label:(0,i.__)("Image Opacity","generateblocks"),value:a,onChange:l,min:0,max:1,step:.01,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==a&&!n&&(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 Fi(t){let{attributes:a,setAttributes:l}=t;const{bgImage:n,bgOptions:r,bgImageSize:i,useDynamicData:o,dynamicContentType:s,innerZindex:c,useInnerContainer:u,position:g,overflowX:d,overflowY:p}=a;return(0,e.createElement)(e.Fragment,null,r.overlay?(0,e.createElement)(Ai,{checked:!!r.overlay,onChange:e=>{l({bgOptions:{...r,overlay:e}})}}):(0,e.createElement)(e.Fragment,null,(n&&n.id||o&&""!==s)&&(0,e.createElement)(Ri,{value:i,onChange:e=>l({bgImageSize:e})}),(0,e.createElement)(Ni,{value:r.selector,position:g,useInnerContainer:u,onChange:e=>{l({bgOptions:{...r,selector:e}}),u&&"pseudo-element"===e&&!c&&0!==c&&l({innerZindex:1}),u||"pseudo-element"!==e||l({position:g||"relative",overflowX:d||"hidden",overflowY:p||"hidden"})}}),(0,e.createElement)(Di,{value:r.opacity,isPseudoElement:"pseudo-element"===r.selector,onChange:e=>{l({bgOptions:{...r,opacity:e,selector:"pseudo-element"}}),u&&!c&&0!==c&&l({innerZindex:1}),u||l({position:g||"relative",overflowX:d||"hidden",overflowY:p||"hidden"})}})))}function Pi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.TextControl,{label:(0,i.__)("Size","generateblocks"),value:a,onChange:l})}function Hi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.TextControl,{label:(0,i.__)("Position","generateblocks"),value:a,onChange:l})}function Vi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Repeat","generateblocks"),value:a,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:l})}function Gi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Attachment","generateblocks"),value:a,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:l})}class Ui extends e.Component{render(){const{attributes:t,setAttributes:a,attrGradient:l,attrGradientDirection:n,attrGradientColorOne:o,attrGradientColorOneOpacity:s,attrGradientColorStopOne:c,attrGradientColorTwo:u,attrGradientColorTwoOpacity:g,attrGradientColorStopTwo:d,defaultColorOne:p,defaultColorTwo:b}=this.props,{gradientSelector:m,innerZindex:h,useInnerContainer:f,position:k}=t,v="element"===m?(0,i.__)("Displays behind the background image.","generateblocks"):(0,i.__)("Displays in front of the background image.","generateblocks");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Gradient","generateblocks"),checked:!!t[l],onChange:e=>{const l=this.props;let r=t[n],i=t[o],s=t[u];e&&(r=r||90,i=i||"rgba(255, 255, 255, 0.1)",s=s||"rgba(0, 0, 0, 0.30)"),a({[l.attrGradient]:e,[l.attrGradientDirection]:r,[l.attrGradientColorOne]:i,[l.attrGradientColorTwo]:s})}}),!!t[l]&&(0,e.createElement)(e.Fragment,null,void 0!==m&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Selector","generateblocks"),help:v,value:m,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{a({gradientSelector:e}),f&&!x(h)&&"pseudo-element"===e&&a({innerZindex:1}),f||"pseudo-element"!==e||k||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[n]?t[n]:0,onChange:e=>{a({[n]: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)(hi,{value:t[o],alpha:!0,valueOpacity:t[s]||0===t[s]?t[s]:1,attrOpacity:"gradientColorOneOpacity",onChange:e=>a({[o]:e}),onOpacityChange:e=>a({[s]:e}),onClear:()=>a({[o]:p})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[c]||0===t[c]?t[c]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[c]:e})},onBlur:()=>{(t[c]||0===t[c])&&a({[c]:parseFloat(t[c])})},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)(hi,{value:t[u],alpha:!0,valueOpacity:t[g]||0===t[g]?t[g]:1,attrOpacity:"gradientColorTwoOpacity",onChange:e=>a({[u]:e}),onOpacityChange:e=>a({[g]:e}),onClear:()=>a({[u]:b})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[d]||0===t[d]?t[d]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[d]:e})},onBlur:()=>{(t[d]||0===t[d])&&a({[d]:parseFloat(t[d])})},onClick:e=>{e.currentTarget.focus()}})))))}}var ji=Ui;function Wi(t){let{attributes:a,setAttributes:l}=t;const{id:n,isInQueryLoop:r,supports:{backgroundPanel:o}}=(0,e.useContext)(Me),{bgImage:s,bgOptions:c,bgImageInline:u,useDynamicData:g,dynamicContentType:d,isQueryLoopItem:b}=a;return(0,e.createElement)(oe,{title:(0,i.__)("Backgrounds","generateblocks"),initialOpen:!1,icon:p("gradients"),className:"gblocks-panel-label",id:`${n}Background`,attributes:a,setAttributes:l},!!o.backgroundImage&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oi,{bgImage:s,setAttributes:l,isUsingFeaturedImage:g&&""!==d}),(!!s||g&&""!==d)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Li,{checked:!!u,disabled:g&&""!==d&&(b||r),onChange:e=>l({bgImageInline:e})}),(0,e.createElement)(Fi,{attributes:a,setAttributes:l}),(0,e.createElement)(Pi,{value:c.size,onChange:e=>l({bgOptions:{...c,size:e}})}),(0,e.createElement)(Hi,{value:c.position,onChange:e=>l({bgOptions:{...c,position:e}})}),(0,e.createElement)(Vi,{value:c.repeat,onChange:e=>l({bgOptions:{...c,repeat:e}})}),(0,e.createElement)(Gi,{value:c.attachment,onChange:e=>l({bgOptions:{...c,attachment:e}})}))),!!o.backgroundGradient&&(0,e.createElement)(ji,{attributes:a,setAttributes:l,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 qi(t){let{attributes:a,setAttributes:l}=t;const{id:n}=(0,e.useContext)(Me),o=Xn(),{backgroundColor:c,shapeDividers:u,position:g}=a,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)(oe,{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,a)=>{const n=a+1;return(0,e.createElement)(e.Fragment,{key:a},(0,e.createElement)("div",{className:"gblocks-shape-container"},(0,e.createElement)("div",{className:s()({"gblocks-shape-toggle-preview":!0,[`gblocks-shape-toggle-preview-${n}`]:!0}),style:{backgroundColor:c}},void 0!==d[u[a].shape]&&(0,e.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:u[a].color},dangerouslySetInnerHTML:{__html:_i(d[u[a].shape].icon)}})), +/* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Left","generateblocks"),n),value:l[m.left]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.left,className:"gblocks-dimensions-control__label"},h.left)),(0,e.createElement)(r.Tooltip,{text:l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks")},(0,e.createElement)(r.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks"),isPrimary:!!l[m.sync]&&l[m.sync],"aria-pressed":!!l[m.sync]&&l[m.sync],onClick:()=>(e=>{const t=[l[m.top],l[m.right],l[m.bottom],l[m.left]].filter((e=>""!==e));if(0===t.length)return void a({[e]:!l[e]});const n=t.includes("auto")?"auto":Math.max.apply(null,t).toString();a({[e]:!l[e],[m.top]:n,[m.right]:n,[m.bottom]:n,[m.left]:n})})(m.sync),isSmall:!0},l[m.sync]?tr:ar))))}function nr(a){const{dimensions:l,deviceType:n,computedStyles:r}=a,i=(0,m.applyFilters)("generateblocks.editor.dimensionGroupItems",l,a);return(0,e.createElement)(e.Fragment,null,i.map(((l,i)=>(0,e.createElement)(lr,t({},a,{key:i,device:n,type:l.type,label:l.label,units:l.units,computedStyles:r})))))}function rr(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:a,onChange:l})}function ir(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:a,onChange:l})}function or(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:a,onChange:l})}function sr(t){const{supports:{spacing:a}}=(0,e.useContext)(Me),{inlineWidth:l,onChangeInlineWidth:n,stack:r,onChangeStack:i,fill:o,onFillChange:s}=t;return(0,e.createElement)(e.Fragment,null,a.inlineWidth&&(0,e.createElement)(rr,{checked:l,onChange:n}),a.stackVertically&&(0,e.createElement)(ir,{checked:r,onChange:i}),a.fillHorizontalSpace&&(0,e.createElement)(or,{checked:o,onChange:s}))}function cr(t){let{attributes:a,setAttributes:l,computedStyles:n}=t;const r=Xn(),{id:o,supports:{spacing:s}}=(0,e.useContext)(Me),{inlineWidth:c,inlineWidthTablet:u,inlineWidthMobile:g,stack:d,stackTablet:b,stackMobile:m,fillHorizontalSpace:h,fillHorizontalSpaceTablet:f,fillHorizontalSpaceMobile:k}=a;return(0,e.createElement)(oe,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:p("spacing"),className:"gblocks-panel-label",id:`${o}Spacing`},s.dimensions&&(0,e.createElement)(nr,{deviceType:r,attributes:a,setAttributes:l,computedStyles:n,dimensions:s.dimensions}),"Desktop"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sr,{inlineWidth:!!c,onChangeInlineWidth:e=>l({inlineWidth:e}),stack:!!d,onChangeStack:e=>{l({stack:e,stackTablet:e&&!b?e:b,stackMobile:e&&!m?e:m})},fill:!!h,onFillChange:e=>{l({fillHorizontalSpace:e,fillHorizontalSpaceTablet:e&&!f?e:f,fillHorizontalSpaceMobile:e&&!k?e:k})}})),"Tablet"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sr,{inlineWidth:!!u,onChangeInlineWidth:e=>l({inlineWidthTablet:e}),stack:!!b,onChangeStack:e=>{l({stackTablet:e,stackMobile:e&&!m?e:m})},fill:!!f,onFillChange:e=>{l({fillHorizontalSpaceTablet:e,fillHorizontalSpaceMobile:e&&!k?e:k})}})),"Mobile"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sr,{inlineWidth:!!g,onChangeInlineWidth:e=>l({inlineWidthMobile:e}),stack:!!m,onChangeStack:e=>l({stackMobile:e}),fill:!!k,onFillChange:e=>l({fillHorizontalSpaceMobile:e})})))}function ur(){return(ur=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 gr(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 dr(e){var t=(0,y.useRef)(e),a=(0,y.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,a.current}var pr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},br=function(e){return"touches"in e},mr=function(e){return e&&e.ownerDocument.defaultView||self},hr=function(e,t,a){var l=e.getBoundingClientRect(),n=br(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:pr((n.pageX-(l.left+mr(e).pageXOffset))/l.width),top:pr((n.pageY-(l.top+mr(e).pageYOffset))/l.height)}},fr=function(e){!br(e)&&e.preventDefault()},kr=w().memo((function(e){var t=e.onMove,a=e.onKey,l=gr(e,["onMove","onKey"]),n=(0,y.useRef)(null),r=dr(t),i=dr(a),o=(0,y.useRef)(null),s=(0,y.useRef)(!1),c=(0,y.useMemo)((function(){var e=function(e){fr(e),(br(e)?e.touches.length>0:e.buttons>0)&&n.current?r(hr(n.current,e,o.current)):a(!1)},t=function(){return a(!1)};function a(a){var l=s.current,r=mr(n.current),i=a?r.addEventListener:r.removeEventListener;i(l?"touchmove":"mousemove",e),i(l?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,l=n.current;if(l&&(fr(t),!function(e,t){return t&&!br(e)}(t,s.current)&&l)){if(br(t)){s.current=!0;var i=t.changedTouches||[];i.length&&(o.current=i[0].identifier)}l.focus(),r(hr(l,t,o.current)),a(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),i({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]}),[i,r]),u=c[0],g=c[1],d=c[2];return(0,y.useEffect)((function(){return d}),[d]),w().createElement("div",ur({},l,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:n,onKeyDown:g,tabIndex:0,role:"slider"}))})),vr=function(e){return e.filter(Boolean).join(" ")},yr=function(e){var t=e.color,a=e.left,l=e.top,n=void 0===l?.5:l,r=vr(["react-colorful__pointer",e.className]);return w().createElement("div",{className:r,style:{top:100*n+"%",left:100*a+"%"}},w().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},wr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a},Cr=(Math.PI,function(e){var t=e.s,a=e.v,l=e.a,n=(200-t)*a/100;return{h:wr(e.h),s:wr(n>0&&n<200?t*a/100/(n<=100?n:200-n)*100:0),l:wr(n/2),a:wr(l,2)}}),_r=function(e){var t=Cr(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Er=function(e){var t=Cr(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},xr=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:wr(255*[l,o,i,i,s,l][c]),g:wr(255*[s,l,l,o,i,i][c]),b:wr(255*[i,i,s,l,l,o][c]),a:wr(n,2)}},Sr=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Mr({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}},Tr=Sr,Mr=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:wr(60*(o<0?o+6:o)),s:wr(r?i/r*100:0),v:wr(r/255*100),a:n}},Br=w().memo((function(e){var t=e.hue,a=e.onChange,l=vr(["react-colorful__hue",e.className]);return w().createElement("div",{className:l},w().createElement(kr,{onMove:function(e){a({h:360*e.left})},onKey:function(e){a({h:pr(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":wr(t)},w().createElement(yr,{className:"react-colorful__hue-pointer",left:t/360,color:_r({h:t,s:100,v:100,a:1})})))})),zr=w().memo((function(e){var t=e.hsva,a=e.onChange,l={backgroundColor:_r({h:t.h,s:100,v:100,a:1})};return w().createElement("div",{className:"react-colorful__saturation",style:l},w().createElement(kr,{onMove:function(e){a({s:100*e.left,v:100-100*e.top})},onKey:function(e){a({s:pr(t.s+100*e.left,0,100),v:pr(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+wr(t.s)+"%, Brightness "+wr(t.v)+"%"},w().createElement(yr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_r(t)})))})),Ir=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Or(e,t,a){var l=dr(a),n=(0,y.useState)((function(){return e.toHsva(t)})),r=n[0],i=n[1],o=(0,y.useRef)({color:t,hsva:r});(0,y.useEffect)((function(){if(!e.equal(t,o.current.color)){var a=e.toHsva(t);o.current={hsva:a,color:t},i(a)}}),[t,e]),(0,y.useEffect)((function(){var t;(function(e,t){if(e===t)return!0;for(var a in e)if(e[a]!==t[a])return!1;return!0})(r,o.current.hsva)||e.equal(t=e.fromHsva(r),o.current.color)||(o.current={hsva:r,color:t},l(t))}),[r,e,l]);var s=(0,y.useCallback)((function(e){i((function(t){return Object.assign({},t,e)}))}),[]);return[r,s]}var Lr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,Ar=new Map,Rr=function(e){Lr((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Ar.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}',Ar.set(t,l);var n=a.nc;n&&l.setAttribute("nonce",n),t.head.appendChild(l)}}),[])},Dr=function(e){var t=e.className,a=e.colorModel,l=e.color,n=void 0===l?a.defaultColor:l,r=e.onChange,i=gr(e,["className","colorModel","color","onChange"]),o=(0,y.useRef)(null);Rr(o);var s=Or(a,n,r),c=s[0],u=s[1],g=vr(["react-colorful",t]);return w().createElement("div",ur({},i,{ref:o,className:g}),w().createElement(zr,{hsva:c,onChange:u}),w().createElement(Br,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},Nr=function(e){var t=e.className,a=e.hsva,l=e.onChange,n={backgroundImage:"linear-gradient(90deg, "+Er(Object.assign({},a,{a:0}))+", "+Er(Object.assign({},a,{a:1}))+")"},r=vr(["react-colorful__alpha",t]);return w().createElement("div",{className:r},w().createElement("div",{className:"react-colorful__alpha-gradient",style:n}),w().createElement(kr,{onMove:function(e){l({a:e.left})},onKey:function(e){l({a:pr(a.a+e.left)})},"aria-label":"Alpha","aria-valuetext":wr(100*a.a)+"%"},w().createElement(yr,{className:"react-colorful__alpha-pointer",left:a.a,color:Er(a)})))},Fr=function(e){var t=e.className,a=e.colorModel,l=e.color,n=void 0===l?a.defaultColor:l,r=e.onChange,i=gr(e,["className","colorModel","color","onChange"]),o=(0,y.useRef)(null);Rr(o);var s=Or(a,n,r),c=s[0],u=s[1],g=vr(["react-colorful",t]);return w().createElement("div",ur({},i,{ref:o,className:g}),w().createElement(zr,{hsva:c,onChange:u}),w().createElement(Br,{hue:c.h,onChange:u}),w().createElement(Nr,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},Pr={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Sr,fromHsva:function(e){var t=xr(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Ir},Hr=function(e){return w().createElement(Fr,ur({},e,{colorModel:Pr}))},Vr={defaultColor:"rgb(0, 0, 0)",toHsva:Tr,fromHsva:function(e){var t=xr(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Ir},Gr=function(e){return w().createElement(Dr,ur({},e,{colorModel:Vr}))},jr={grad:.9,turn:360,rad:360/(2*Math.PI)},Ur=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Wr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a+0},qr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e>t?e:t},$r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Zr=function(e){return{r:qr(e.r,0,255),g:qr(e.g,0,255),b:qr(e.b,0,255),a:qr(e.a)}},Kr=function(e){return{r:Wr(e.r),g:Wr(e.g),b:Wr(e.b),a:Wr(e.a,3)}},Jr=/^#([0-9a-f]{3,8})$/i,Yr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Qr=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}},Xr=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}},ei=function(e){return{h:$r(e.h),s:qr(e.s,0,100),l:qr(e.l,0,100),a:qr(e.a)}},ti=function(e){return{h:Wr(e.h),s:Wr(e.s),l:Wr(e.l),a:Wr(e.a,3)}},ai=function(e){return Xr((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},li=function(e){return{h:(t=Qr(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},ni=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ri=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ii=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,oi=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,si={string:[[function(e){var t=Jr.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?Wr(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?Wr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ii.exec(e)||oi.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Zr({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=ni.exec(e)||ri.exec(e);if(!t)return null;var a,l,n=ei({h:(a=t[1],l=t[2],void 0===l&&(l="deg"),Number(a)*(jr[l]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ai(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 Ur(t)&&Ur(a)&&Ur(l)?Zr({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(!Ur(t)||!Ur(a)||!Ur(l))return null;var i=ei({h:Number(t),s:Number(a),l:Number(l),a:Number(r)});return ai(i)},"hsl"],[function(e){var t=e.h,a=e.s,l=e.v,n=e.a,r=void 0===n?1:n;if(!Ur(t)||!Ur(a)||!Ur(l))return null;var i=function(e){return{h:$r(e.h),s:qr(e.s,0,100),v:qr(e.v,0,100),a:qr(e.a)}}({h:Number(t),s:Number(a),v:Number(l),a:Number(r)});return Xr(i)},"hsv"]]},ci=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]},ui=function(e,t){var a=li(e);return{h:a.h,s:qr(a.s+100*t,0,100),l:a.l,a:a.a}},gi=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},di=function(e,t){var a=li(e);return{h:a.h,s:a.s,l:qr(a.l+100*t,0,100),a:a.a}},pi=function(){function e(e){this.parsed=function(e){return"string"==typeof e?ci(e.trim(),si.string):"object"==typeof e&&null!==e?ci(e,si.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 Wr(gi(this.rgba),2)},e.prototype.isDark=function(){return gi(this.rgba)<.5},e.prototype.isLight=function(){return gi(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Kr(this.rgba)).r,a=e.g,l=e.b,r=(n=e.a)<1?Yr(Wr(255*n)):"","#"+Yr(t)+Yr(a)+Yr(l)+r;var e,t,a,l,n,r},e.prototype.toRgb=function(){return Kr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Kr(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 ti(li(this.rgba))},e.prototype.toHslString=function(){return t=(e=ti(li(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=Qr(this.rgba),{h:Wr(e.h),s:Wr(e.s),v:Wr(e.v),a:Wr(e.a,3)};var e},e.prototype.invert=function(){return bi({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),bi(ui(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),bi(ui(this.rgba,-e))},e.prototype.grayscale=function(){return bi(ui(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),bi(di(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),bi(di(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?bi({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Wr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=li(this.rgba);return"number"==typeof e?bi({h:e,s:t.s,l:t.l,a:t.a}):Wr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===bi(e).toHex()},e}(),bi=function(e){return e instanceof pi?e:new pi(e)};function mi(e,t){return e?(t||0===t)&&1!==t&&e.startsWith("#")?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}function hi(t){const{value:a,onChange:l,onOpacityChange:o,label:s,alpha:c=!1,valueOpacity:u=1,tooltip:g}=t,[d,b]=(0,e.useState)(a||""),m=(0,e.useRef)(null),h=c&&1===u?Hr:Gr,f=(0,e.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 bi(e).toRgbString()})(a)),[a]),k=(0,j.useDebounce)(l);return(0,e.useEffect)((()=>{a!==d&&k(d),setTimeout((()=>{m.current&&m.current.focus()}),10)}),[d]),(0,e.createElement)("div",{className:"gblocks-color-component"},!!s&&(0,e.createElement)("span",{className:"gblocks-color-component__label"},s),(0,e.createElement)(r.Dropdown,{className:"gblocks-color-component__toggle",contentClassName:"gblocks-color-component-content",position:"top left",renderToggle:t=>{let{isOpen:l,onToggle:n}=t;const i=(0,e.createElement)(r.Button,{className:"gblocks-color-component__toggle-button",onClick:n,"aria-expanded":l},(0,e.createElement)("span",{className:"gblocks-color-component__toggle-indicator",style:{background:a?mi(a,u):null}}));return(0,e.createElement)(e.Fragment,null,g?(0,e.createElement)(r.Tooltip,{text:g},i):i)},renderContent:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{color:f,onChange:e=>{bi(e).isValid()&&(e=1===bi(e).alpha()?bi(e).toHex():e),b(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:d,onChange:e=>{!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),b(e)},onBlur:()=>{bi(a).isValid()&&1===bi(a).alpha()&&b(bi(a).toHex())}}),(0,e.createElement)(r.Button,{isSmall:!0,isSecondary:!0,className:"gblocks-color-input-clear",onClick:()=>{b(""),c&&1!==u&&o(1)}},(0,i.__)("Clear","generateblocks"))),c&&1!==u&&(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:u||0,onChange:e=>o(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=>{b(e)},disableCustomColors:!0,clearable:!1})))}))}function fi(t){const{setAttributes:a,attributes:l,colors:n}=t,r=(0,m.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)(hi,{key:n,label:null==t?void 0:t.label,tooltip:null==t?void 0: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 ki(t){let{attributes:a,setAttributes:l}=t;const{id:n,blockName:r,supports:{colors:o}}=(0,e.useContext)(Me);return(0,e.createElement)(oe,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!0,icon:p("colors"),className:"gblocks-panel-label",id:`${n}Colors`},(0,e.createElement)(fi,{attributes:a,setAttributes:l,colors:o.elements,name:r}))}var vi={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"}))},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"}))},twitter:{label:(0,i._x)("Twitter","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:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}))},twitterSquare:{label:(0,i._x)("Twitter - 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-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}))},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"}))}},yi={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"}))}},wi=a(856),Ci=a.n(wi);function _i(e){return Ci().sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}class Ei extends e.Component{constructor(){super(...arguments),this.state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1}}render(){const{attributes:t,setAttributes:a,attrIcon:l,attrIconLocation:n,locationOptions:o,attrRemoveText:s,id:c}=this.props;let u={general:{group:(0,i.__)("General","generateblocks"),svgs:yi},social:{group:(0,i.__)("Social","generateblocks"),svgs:vi}};return u=(0,m.applyFilters)("generateblocks.editor.iconSVGSets",u,{attributes:t}),(0,e.createElement)(e.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[l],onChange:e=>{a({[this.props.attrIcon]:_i(e)}),a(""!==e?{hasIcon:!0,display:"headline"===c?"flex":"inline-flex",alignItems:"center"}:{hasIcon:!1})}}),(0,e.createElement)("div",{className:"gb-icon-preview"},(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:_i(t[l])}}),(0,e.createElement)(r.Button,{isSmall:!0,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(u).map(((t,l)=>{const n=u[t].svgs;return(0,e.createElement)(r.PanelBody,{className:"gblocks-panel-label gblocks-icon-panel",title:u[t].group,initialOpen:!1,key:l},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(n).map(((t,l)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${l}`},(0,e.createElement)(r.Tooltip,{text:n[t].label},(0,e.createElement)(r.Button,{className:"editor-block-list-item-button",onClick:()=>{let l=n[t].icon;"string"!=typeof l&&(l=(0,e.renderToString)(l)),a({[this.props.attrIcon]:l,hasIcon:!0,display:"headline"===c?"flex":"inline-flex",alignItems:"center"})}},"string"==typeof n[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:_i(n[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},n[t].icon)))))))))))}))),void 0!==t[n]&&!t[s]&&!!t[l]&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:t[n],options:o,onChange:e=>{const l=t.iconPaddingLeft,n=t.iconPaddingRight,r=t.iconPaddingRightTablet,i=t.iconPaddingLeftTablet,o=t.iconPaddingRightMobile,s=t.iconPaddingLeftMobile;"right"===e&&(!l&&n&&a({iconPaddingLeft:n,iconPaddingRight:""}),!i&&r&&a({iconPaddingLeftTablet:r,iconPaddingRightTablet:""}),!s&&o&&a({iconPaddingLeftMobile:o,iconPaddingRightMobile:""})),"left"===e&&(!n&&l&&a({iconPaddingRight:l,iconPaddingLeft:""}),!r&&i&&a({iconPaddingRightTablet:i,iconPaddingLeftTablet:""}),!o&&s&&a({iconPaddingRightMobile:s,iconPaddingLeftMobile:""})),a({[this.props.attrIconLocation]:e})}}),void 0!==t[s]&&!!t[l]&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Text","generateblocks"),checked:!!t[s],onChange:e=>{a({[this.props.attrRemoveText]:e})}}))}}var xi=Ei;function Si(t){let{value:a,onChange:l,options:n}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:a,options:n,onChange:l})}function Ti(t){let{attributes:a,setAttributes:l}=t;const n=Xn();return(0,e.createElement)(lr,{attributes:a,setAttributes:l,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"],device:n})}function Mi(t){const{locationOptions:a,iconLocation:l,attributes:n,setAttributes:r,onChangeLocation:i}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Si,{value:l,onChange:i,options:a}),(0,e.createElement)(Ti,{attributes:n,setAttributes:r}))}function Bi(t){let{attributes:a,setAttributes:l}=t;const n=Xn();return(0,e.createElement)(T,{attributes:a,setAttributes:l,label:(0,i.__)("Icon Size","generateblocks"),attributeName:"iconSize",units:["px","em"],device:n,presets:[{unit:"em",data:[.7,1,1.5,2]}],presetUnit:"em",min:"1",step:"em"===a.iconSizeUnit?.1:1})}function zi(t){let{attributes:a,setAttributes:l}=t;const{id:n,supports:{icon:r}}=(0,e.useContext)(Me),o=Xn(),{icon:s,iconLocation:c,iconLocationTablet:u,iconLocationMobile:g,removeText:d}=a;return(0,e.createElement)(oe,{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)(xi,{attributes:a,setAttributes:l,attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel",id:n}),!!s&&!d&&(0,e.createElement)(Mi,{attributes:a,setAttributes:l,iconLocation:c,locationOptions:r.location,onChangeLocation:e=>{l({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)(Mi,{attributes:a,setAttributes:l,iconLocation:u,locationOptions:r.location,onChangeLocation:e=>{l({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)(Mi,{attributes:a,setAttributes:l,iconLocation:g,locationOptions:r.location,onChangeLocation:e=>{l({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e||"left"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":"",iconPaddingLeftMobile:"right"===e?"0.5":""})}}),!!s&&(0,e.createElement)(Bi,{attributes:a,setAttributes:l}))}function Ii(t){let{children:a}=t;const{id:l,supports:{settingsPanel:n}}=(0,e.useContext)(Me);return(0,e.createElement)(oe,{title:n.label,initialOpen:!1,icon:p(n.icon),className:"gblocks-panel-label",id:`${l}Settings`},a)}function Oi(t){let{bgImage:a,setAttributes:l,isUsingFeaturedImage:o}=t;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:a?a.image.url:"",onChange:e=>{l(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"),l({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:()=>{document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:a?a.id:"",modalClass:"editor-gb-container-background__media-modal",render:t=>{let{open:a}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Open the Media Library","generateblocks")},(0,e.createElement)(r.Button,{onClick:a,className:"is-secondary is-small"},(0,i.__)("Browse","generateblocks")))}})))),o&&(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Using featured image as dynamic background.","generateblocks")))}function Li(t){let{disabled:a,checked:l,onChange:n}=t;return(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use inline style","generateblocks"),disabled:a,checked:l,onChange:n})}function Ai(t){let{checked:a,onChange:l}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Background Color Overlay","generateblocks"),checked:a,onChange:l}),(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 Ri(t){let{value:a,onChange:l}=t;const n=[];return Object.keys(generateBlocksInfo.imageSizes).forEach((e=>{n.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Image Size","generateblocks"),value:a,options:n,onChange:l})}function Di(t){let{value:a,onChange:l,position:n,useInnerContainer:o}=t,s=null;return o||"pseudo-element"!==a||(s=(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"),n||(s=(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:a,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:l,help:s})}function Ni(t){let{value:a,onChange:l,isPseudoElement:n}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RangeControl,{label:(0,i.__)("Image Opacity","generateblocks"),value:a,onChange:l,min:0,max:1,step:.01,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==a&&!n&&(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 Fi(t){let{attributes:a,setAttributes:l}=t;const{bgImage:n,bgOptions:r,bgImageSize:i,useDynamicData:o,dynamicContentType:s,innerZindex:c,useInnerContainer:u,position:g,overflowX:d,overflowY:p}=a;return(0,e.createElement)(e.Fragment,null,r.overlay?(0,e.createElement)(Ai,{checked:!!r.overlay,onChange:e=>{l({bgOptions:{...r,overlay:e}})}}):(0,e.createElement)(e.Fragment,null,(n&&n.id||o&&""!==s)&&(0,e.createElement)(Ri,{value:i,onChange:e=>l({bgImageSize:e})}),(0,e.createElement)(Di,{value:r.selector,position:g,useInnerContainer:u,onChange:e=>{l({bgOptions:{...r,selector:e}}),u&&"pseudo-element"===e&&!c&&0!==c&&l({innerZindex:1}),u||"pseudo-element"!==e||l({position:g||"relative",overflowX:d||"hidden",overflowY:p||"hidden"})}}),(0,e.createElement)(Ni,{value:r.opacity,isPseudoElement:"pseudo-element"===r.selector,onChange:e=>{l({bgOptions:{...r,opacity:e,selector:"pseudo-element"}}),u&&!c&&0!==c&&l({innerZindex:1}),u||l({position:g||"relative",overflowX:d||"hidden",overflowY:p||"hidden"})}})))}function Pi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.TextControl,{label:(0,i.__)("Size","generateblocks"),value:a,onChange:l})}function Hi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.TextControl,{label:(0,i.__)("Position","generateblocks"),value:a,onChange:l})}function Vi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Repeat","generateblocks"),value:a,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:l})}function Gi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Attachment","generateblocks"),value:a,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:l})}class ji extends e.Component{render(){const{attributes:t,setAttributes:a,attrGradient:l,attrGradientDirection:n,attrGradientColorOne:o,attrGradientColorOneOpacity:s,attrGradientColorStopOne:c,attrGradientColorTwo:u,attrGradientColorTwoOpacity:g,attrGradientColorStopTwo:d,defaultColorOne:p,defaultColorTwo:b}=this.props,{gradientSelector:m,innerZindex:h,useInnerContainer:f,position:k}=t,v="element"===m?(0,i.__)("Displays behind the background image.","generateblocks"):(0,i.__)("Displays in front of the background image.","generateblocks");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Gradient","generateblocks"),checked:!!t[l],onChange:e=>{const l=this.props;let r=t[n],i=t[o],s=t[u];e&&(r=r||90,i=i||"rgba(255, 255, 255, 0.1)",s=s||"rgba(0, 0, 0, 0.30)"),a({[l.attrGradient]:e,[l.attrGradientDirection]:r,[l.attrGradientColorOne]:i,[l.attrGradientColorTwo]:s})}}),!!t[l]&&(0,e.createElement)(e.Fragment,null,void 0!==m&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Selector","generateblocks"),help:v,value:m,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{a({gradientSelector:e}),f&&!x(h)&&"pseudo-element"===e&&a({innerZindex:1}),f||"pseudo-element"!==e||k||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[n]?t[n]:0,onChange:e=>{a({[n]: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)(hi,{value:t[o],alpha:!0,valueOpacity:t[s]||0===t[s]?t[s]:1,attrOpacity:"gradientColorOneOpacity",onChange:e=>a({[o]:e}),onOpacityChange:e=>a({[s]:e}),onClear:()=>a({[o]:p})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[c]||0===t[c]?t[c]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[c]:e})},onBlur:()=>{(t[c]||0===t[c])&&a({[c]:parseFloat(t[c])})},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)(hi,{value:t[u],alpha:!0,valueOpacity:t[g]||0===t[g]?t[g]:1,attrOpacity:"gradientColorTwoOpacity",onChange:e=>a({[u]:e}),onOpacityChange:e=>a({[g]:e}),onClear:()=>a({[u]:b})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[d]||0===t[d]?t[d]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[d]:e})},onBlur:()=>{(t[d]||0===t[d])&&a({[d]:parseFloat(t[d])})},onClick:e=>{e.currentTarget.focus()}})))))}}var Ui=ji;function Wi(t){let{attributes:a,setAttributes:l}=t;const{id:n,isInQueryLoop:r,supports:{backgroundPanel:o}}=(0,e.useContext)(Me),{bgImage:s,bgOptions:c,bgImageInline:u,useDynamicData:g,dynamicContentType:d,isQueryLoopItem:b}=a;return(0,e.createElement)(oe,{title:(0,i.__)("Backgrounds","generateblocks"),initialOpen:!1,icon:p("gradients"),className:"gblocks-panel-label",id:`${n}Background`,attributes:a,setAttributes:l},!!o.backgroundImage&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oi,{bgImage:s,setAttributes:l,isUsingFeaturedImage:g&&""!==d}),(!!s||g&&""!==d)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Li,{checked:!!u,disabled:g&&""!==d&&(b||r),onChange:e=>l({bgImageInline:e})}),(0,e.createElement)(Fi,{attributes:a,setAttributes:l}),(0,e.createElement)(Pi,{value:c.size,onChange:e=>l({bgOptions:{...c,size:e}})}),(0,e.createElement)(Hi,{value:c.position,onChange:e=>l({bgOptions:{...c,position:e}})}),(0,e.createElement)(Vi,{value:c.repeat,onChange:e=>l({bgOptions:{...c,repeat:e}})}),(0,e.createElement)(Gi,{value:c.attachment,onChange:e=>l({bgOptions:{...c,attachment:e}})}))),!!o.backgroundGradient&&(0,e.createElement)(Ui,{attributes:a,setAttributes:l,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 qi(t){let{attributes:a,setAttributes:l}=t;const{id:n}=(0,e.useContext)(Me),o=Xn(),{backgroundColor:c,shapeDividers:u,position:g}=a,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)(oe,{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,a)=>{const n=a+1;return(0,e.createElement)(e.Fragment,{key:a},(0,e.createElement)("div",{className:"gblocks-shape-container"},(0,e.createElement)("div",{className:s()({"gblocks-shape-toggle-preview":!0,[`gblocks-shape-toggle-preview-${n}`]:!0}),style:{backgroundColor:c}},void 0!==d[u[a].shape]&&(0,e.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:u[a].color},dangerouslySetInnerHTML:{__html:_i(d[u[a].shape].icon)}})), /* translators: Shape number */ -(0,i.sprintf)((0,i.__)("Shape %s","generateblocks"),n),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-shapes-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Edit Shape","generateblocks")},(0,e.createElement)(r.Button,{className:"gblocks-shape-dropdown",isSecondary:!a||void 0,isPrimary:!!a||void 0,icon:p("wrench"),onClick:l,"aria-expanded":a}))},renderContent:()=>(0,e.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map(((t,n)=>{const i=generateBlocksInfo.svgShapes[t].svgs;return(0,e.createElement)(r.PanelBody,{title:generateBlocksInfo.svgShapes[t].group,initialOpen:i.hasOwnProperty(u[a].shape),key:n},(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(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:s()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":u[a].shape===t}),onClick:()=>{const e=[...u];e[a]={...e[a],shape:t},l({shapeDividers:e})}},"string"==typeof i[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:_i(i[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},i[t].icon)))))))))))}))),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(hi,{label:(0,i.__)("Color","generateblocks"),value:u[a].color,alpha:!0,valueOpacity:u[a].colorOpacity,onChange:e=>{const t=[...u];t[a]={...t[a],color:e},l({shapeDividers:t})},onOpacityChange:e=>{const t=[...u];t[a]={...t[a],colorOpacity:e},l({shapeDividers:t})}})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Location","generateblocks"),value:u[a].location,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{const t=[...u];t[a]={...t[a],location:e},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].height?u[a].height:"",onChange:e=>{const t=[...u];t[a]={...t[a],height:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].width?u[a].width:"",min:"100",onChange:e=>{const t=[...u];t[a]={...t[a],width:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Flip Horizontally","generateblocks"),checked:!!u[a].flipHorizontally,onChange:e=>{const t=[...u];t[a]={...t[a],flipHorizontally:e},l({shapeDividers:t})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("z-index","generateblocks"),type:"number",min:"0",value:u[a].zindex||0===u[a].zindex?u[a].zindex:"",onChange:e=>{const t=[...u];t[a]={...t[a],zindex:e},l({shapeDividers:t})},onBlur:()=>{const e=[...u];e[a]={...e[a],zindex:parseFloat(u[a].zindex)},l({shapeDividers:e})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].heightTablet?u[a].heightTablet:"",onChange:e=>{const t=[...u];t[a]={...t[a],heightTablet:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].widthTablet?u[a].widthTablet:"",min:"100",onChange:e=>{const t=[...u];t[a]={...t[a],widthTablet:parseFloat(e)},l({shapeDividers:t})}})),"Mobile"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].heightMobile?u[a].heightMobile:"",onChange:e=>{const t=[...u];t[a]={...t[a],heightMobile:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].widthMobile?u[a].widthMobile:"",min:"100",onChange:e=>{const t=[...u];t[a]={...t[a],widthMobile:parseFloat(e)},l({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),l({shapeDividers:t})})(a)},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}),l({shapeDividers:e,position:g||"relative"})}},(0,i.__)("Add Shape","generateblocks")))))}const $i={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"}))}]},Zi=(0,m.applyFilters)("generateblocks.editor.layoutPositionOptions",[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Relative","generateblocks"),value:"relative"}]),Ki=[{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 Ji=t=>{const{value:a,onChange:l,label:n,attributeName:i,directionValue:o,fallback:c}=t;function u(t){return(0,e.createElement)(r.Button,{isPrimary:t.value===a,className:a||c!==t.value?"":"is-inherited",onClick:()=>l(t.value)},t.icon||t.label)}return(0,e.createElement)(r.BaseControl,{id:i,label:n,className:s()({["gblocks-flex-direction-"+i+"-"+o]:!0})},(0,e.createElement)(r.ButtonGroup,{id:i,className:"gblocks-flex-button-group"},$i[i].map(((t,a)=>(0,e.createElement)(e.Fragment,{key:i+a},t.icon?(0,e.createElement)(r.Tooltip,{text:t.label||t.value},u(t)):u(t))))))};function Yi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Display","generateblocks"),value:a,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"}],onChange:l})}function Qi(e){const{device:t,display:a,displayTablet:l,displayMobile:n}=e;let r=!1;return"Desktop"===t&&a.includes("flex")&&(r=!0),"Tablet"===t&&(l&&l.includes("flex")||!l&&a.includes("flex"))&&(r=!0),"Mobile"===t&&(n&&n.includes("flex")||!n&&l&&l.includes("flex")||!n&&!l&&a.includes("flex"))&&(r=!0),r}var Xi=t=>{const{value:a,onChange:l,onReverse:n,label:o,directionValue:c,fallback:u}=t;function g(t){return(0,e.createElement)(r.Button,{isPrimary:a.includes(t.value),className:!a&&u.includes(t.value)?"is-inherited":"",onClick:()=>l(t.value)},t.icon||t.label)}return(0,e.createElement)(r.BaseControl,{id:"flexDirection",label:o,className:s()({[`gblocks-flex-direction-flexDirection-${c}`]:!0})},(0,e.createElement)(r.ButtonGroup,{id:"flexDirection",className:"gblocks-flex-button-group"},$i.flexDirection.map(((t,a)=>(0,e.createElement)(e.Fragment,{key:o+a},t.icon?(0,e.createElement)(r.Tooltip,{text:t.label||t.value},g(t)):g(t)))),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reverse","generateblocks")},(0,e.createElement)(r.Button,{isPrimary:a.includes("reverse"),className:!a&&u.includes("reverse")?"is-inherited":"",onClick:()=>n(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&&u.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 eo(e,t){return t&&t[e]}var to=t=>{const{attributes:a,setAttributes:l,deviceType:n,blockDefaults:o}=t,{isGrid:s,outerContainer:c,innerContainer:u,containerWidth:g,align:d,useInnerContainer:p,sizing:b,verticalAlignment:h,verticalAlignmentTablet:f,verticalAlignmentMobile:k}=a;return p?(0,e.createElement)(e.Fragment,null,!s&&(0,e.createElement)(e.Fragment,null,"Desktop"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Container","generateblocks"),value:c,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{l({outerContainer:e}),"contained"===e&&"full"===d&&l({align:""})}}),"full"===c&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Inner Container","generateblocks"),value:u,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{l({innerContainer:e})}}),("contained"===c||"contained"===u)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{label:"full"===c&&"contained"===u?(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(g)||"",placeholder:o.containerWidth,onChange:e=>{l({containerWidth:""!==e?parseFloat(e):void 0})}})))),"Desktop"===n&&(0,e.createElement)(e.Fragment,null,(!!s||eo("minHeight",b))&&(0,e.createElement)(e.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:h,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=>{l({verticalAlignment:e})}}))),"Tablet"===n&&(!!s||eo("minHeight",b)||eo("minHeightTablet",b))&&(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.__)("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=>{l({verticalAlignmentTablet:e})}}),"Mobile"===n&&(!!s||eo("minHeight",b)||eo("minHeightTablet",b)||eo("minHeightMobile",b))&&(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=>{l({verticalAlignmentMobile:e})}}),(0,m.applyFilters)("generateblocks.editor.controls","","containerLayout",t)):null};function ao(t){let{value:a,onChange:l,label:n,placeholder:o}=t;return(0,e.createElement)(r.TextControl,{label:n||(0,i.__)("z-index","generateblocks"),type:"number",value:a||0===a?a:"",placeholder:o,onChange:l,onBlur:()=>{(a||0===a)&&l(parseFloat(a))},onClick:e=>{e.currentTarget.focus()}})}function lo(t){const{label:a,units:l=["px","em","%","rem"],min:n=0,max:i,step:o,id:c,disabled:u=!1,overrideValue:g=null,overrideAction:d=(()=>null),onChange:p,value:b,desktopValue:m,tabletValue:h,presets:f=[],help:k=""}=t,v=Xn(),[y,w]=(0,e.useState)(""),[C,_]=(0,e.useState)(""),[E,x]=(0,e.useState)(""),[S,T]=(0,e.useState)(!1),M=(0,e.useRef)(!1),B=(0,e.useRef)(!1),z=(0,e.useRef)(!1),I=e=>{const t=l.join("|"),a=new RegExp(`(${t})`);return e?e.split(a).filter((e=>""!==e)):[]},O=e=>e.length>0?e[0]:"",L=e=>e.length>1?e[1]:l[0],A=e=>/^\d/.test(e),R=I(m),N=I(h),D=()=>{if(!b){if(!h&&("Tablet"===v||"Mobile"===v&&(m||g))){const e=I(g);x(O(R.length?R:e)),w(L(R.length?R:e))}"Mobile"===v&&h&&(x(O(N)),w(L(N)))}};var F,P;(0,e.useEffect)((()=>{const e=g&&u?g:b;if(A(e)){const t=I(e);_(O(t)),w(L(t))}else _(e),w("");D()}),[v,b,g]),(0,e.useEffect)((()=>{if(!M.current)return void(M.current=!0);const e=!!g&&!!u,t=A(C)?C+y:C;if(!t){const e={Tablet:R,Mobile:N};v in e&&(y!==L(e[v])?x(""):D())}e||t===b||p(t)}),[C,y]),F=B,P=()=>T(!1),(0,e.useEffect)((()=>{const e=e=>{F.current&&!F.current.contains(e.target)&&P()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}));const H=Object.keys(f).some((e=>{var t;return null===(t=f[e])||void 0===t?void 0:t.value.includes(y)}));return(0,e.createElement)(r.SlotFillProvider,null,(0,e.createElement)(r.BaseControl,{label:a,help:k,id:c,className:s()({"gblocks-unit-control":!0,"gblocks-unit-control__disabled":!!u})},(0,e.createElement)("div",{className:"gblocks-unit-control__input",ref:B},(0,e.createElement)(r.TextControl,{type:"text",value:C,placeholder:E,id:c,min:n,max:i,step:o,autoComplete:"off",disabled:u,onChange:e=>_(e),onFocus:()=>T(!0),ref:z}),!!d&&(0,e.createElement)("div",{className:"gblocks-unit-control__override-action"},d()," "),(A(C)||!C&&(!E||A(E)))&&(0,e.createElement)("span",{className:"gblocks-unit-control__unit-select"},(0,e.createElement)("select",{value:y,disabled:u||1===l.length,onChange:e=>w(e.target.value)},l.map((t=>(0,e.createElement)("option",{key:t,value:t},t))))),!!f.length&&!!S&&H&&(0,e.createElement)(r.Popover,{focusOnMount:!1,className:"gblocks-unit-control__popover"},(0,e.createElement)(r.ButtonGroup,{className:"gblocks-flex-button-group"},Object.values(f).map(((t,a)=>(0,e.createElement)(e.Fragment,{key:"sizing-preset-"+a},(0,e.createElement)(r.Button,{isPrimary:t.value===b,onClick:()=>{p(t.value),z.current.focus()}},t.label)))))),(0,e.createElement)(r.Popover.Slot,null))))}function no(t){const{attributes:a,setAttributes:l}=t,{flexBasis:n,flexBasisTablet:o}=a,s=Xn();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({[Yn("flexGrow",{attributes:a,deviceType:s},!0)]:"",[Yn("flexShrink",{attributes:a,deviceType:s},!0)]:"",[Yn("flexBasis",{attributes:a,deviceType:s},!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:Yn("flexGrow",{attributes:a,deviceType:s}),min:"0",step:"1",placeholder:S("flexGrow",a,s,"0"),onChange:e=>{l({[Yn("flexGrow",{attributes:a,deviceType:s},!0)]:e})},onBlur:()=>{""!==Yn("flexGrow",{attributes:a,deviceType:s})&&l({[Yn("flexGrow",{attributes:a,deviceType:s},!0)]:parseFloat(Yn("flexGrow",{attributes:a,deviceType:s}))})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Shrink","generateblocks"),id:"gblocks-flex-shrink",type:"number",value:Yn("flexShrink",{attributes:a,deviceType:s}),min:"0",step:"1",placeholder:S("flexShrink",a,s,"1"),onChange:e=>{l({[Yn("flexShrink",{attributes:a,deviceType:s},!0)]:e})},onBlur:()=>{""!==Yn("flexShrink",{attributes:a,deviceType:s})&&l({[Yn("flexShrink",{attributes:a,deviceType:s},!0)]:parseFloat(Yn("flexShrink",{attributes:a,deviceType:s}))})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},(0,e.createElement)(lo,{help:(0,i.__)("Basis","generateblocks"),value:Yn("flexBasis",{attributes:a,deviceType:s}),desktopValue:n,tabletValue:o,onChange:e=>{l({[Yn("flexBasis",{attributes:a,deviceType:s},!0)]:e})}})))))}function ro(t){let{attributes:a,setAttributes:l}=t;const n=Xn(),{id:o,supports:{flexChildPanel:s}}=(0,e.useContext)(Me),c={attributes:a,deviceType:n},{useInnerContainer:u,isGrid:g}=a;return(0,e.createElement)(oe,{title:(0,i.__)("Flex Child","generateblocks"),initialOpen:!1,className:"gblocks-panel-label",id:`${o}FlexChild`},s.flex&&(!u||u&&g)&&(0,e.createElement)(no,{attributes:a,setAttributes:l}),s.order&&(!u||u&&g)&&(0,e.createElement)(r.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:x(Yn("order",c))?Yn("order",c):"",placeholder:S("order",a,n),onChange:e=>{l({[Yn("order",c,!0)]:parseFloat(e)})}}))}function io(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:m,dynamicLinkType:h,advBackgrounds:f,gpInlinePostMeta:k,gpInlinePostMetaJustify:v,gpInlinePostMetaJustifyTablet:y,gpInlinePostMetaJustifyMobile:w}=e,C={};let _=!1;eo("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||(!_&&eo("minHeightTablet",r)&&"inherit"!==l&&(C.displayTablet="flex",C.flexDirectionTablet="column",_=!0),_&&"inherit"!==l&&(C.justifyContentTablet=l)),t&&l&&"inherit"!==l&&(C.justifyContentTablet=l),t||(!_&&eo("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||null!=f&&f.length)&&(C.position="relative",C.overflowX="hidden",C.overflowY="hidden"),"hidden-link"===b&&(m||s&&h)&&(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 oo(t){const{setAttributes:a,attributes:n}=t,{useInnerContainer:o,useGlobalStyle:s,isGlobalStyle:c}=n,{clientId:u}=(0,e.useContext)(Me),[d,p]=(0,e.useState)(!1),b=()=>p(!1),{getBlocksByClientId:m,getBlockParentsByBlockName:h,getBlock:f,isBlockMultiSelected:k}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{insertBlocks:v,replaceBlocks:y}=(0,l.useDispatch)("core/block-editor"),w=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),x(i)&&(o=!0),["opacities","transitions","boxShadows","transforms","textShadows","filters"].forEach((e=>{t[e]&&t[e].some((e=>"innerContainer"===e.target))&&(o=!0)})),o}({attributes:n,insideGridBlock:(C=u,h(C,"generateblocks/grid",!0)[0]),childBlock:function(e){const t=f(e);return t&&t.innerBlocks.length?f(t.innerBlocks[0].clientId):""}(u)});var C;function _(){return(0,e.createElement)(r.Button,{variant:w?"primary":"secondary",style:{marginRight:"5px"},onClick:()=>{!function(e){const{attributes:t,setAttributes:a,parentBlock:l,replaceBlocks:n,insertBlocks:r,clientId:i}=e,{isGrid:o,paddingTop:s,paddingRight:c,paddingBottom:u,paddingLeft:d,paddingTopTablet:p,paddingRightTablet:b,paddingBottomTablet:m,paddingLeftTablet:h,paddingTopMobile:f,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y,paddingUnit:w,containerWidth:C,outerContainer:_,innerContainer:E,innerZindex:x,marginLeft:S,marginRight:T,useGlobalMaxWidth:M}=t,B=l.innerBlocks,z=parseInt(C)===parseInt(generateBlocksInfo.globalContainerWidth),I=io(t),O=B.map((e=>(0,g.createBlock)(e.name,e.attributes,e.innerBlocks))),L=(0,g.createBlock)("generateblocks/container",{paddingTop:s,paddingRight:c,paddingBottom:u,paddingLeft:d,paddingTopTablet:p,paddingRightTablet:b,paddingBottomTablet:m,paddingLeftTablet:h,paddingTopMobile:f,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y,paddingUnit:w,useGlobalMaxWidth:"contained"===E?!!z:M,sizing:{maxWidth:"contained"===E&&!z&&C?C+"px":""},marginLeft:"auto",marginRight:"auto",zindex:x,position:x||0===x?"relative":""},O),A=B.map((e=>e.clientId));A.length>0?n(A,L):r(L,0,i),a({useInnerContainer:!1,paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",paddingTopTablet:"",paddingRightTablet:"",paddingBottomTablet:"",paddingLeftTablet:"",paddingTopMobile:"",paddingRightMobile:"",paddingBottomMobile:"",paddingLeftMobile:"",paddingUnit:generateBlocksDefaults.container.paddingUnit,useGlobalMaxWidth:!o&&"contained"===_&&!!z,marginLeft:o||"contained"!==_?S:"auto",marginRight:o||"contained"!==_?T:"auto",sizing:{...t.sizing,height:o?"100%":"",maxWidth:o||"contained"!==_||z||!C?"":C+"px"},...I})}({attributes:n,setAttributes:a,parentBlock:m(u)[0],replaceBlocks:y,insertBlocks:v,clientId:u}),b()}},(0,i.__)("Enable new system with inner Container block","generateblocks"))}function E(){return(0,e.createElement)(r.Button,{variant:w?"secondary":"primary",style:{marginRight:"5px"},onClick:()=>{!function(e){const{attributes:t,setAttributes:a}=e,{isGrid:l,outerContainer:n,marginLeft:r,marginRight:i,containerWidth:o}=t,s=parseInt(o)===parseInt(generateBlocksInfo.globalContainerWidth),c=io(t);a({useInnerContainer:!1,useGlobalMaxWidth:!l&&"contained"===n&&!!s,marginLeft:l||"contained"!==n?r:"auto",marginRight:l||"contained"!==n?i:"auto",sizing:{...t.sizing,height:l?"100%":"",maxWidth:l||"contained"!==n||s||!o?"":o+"px"},...c})}({attributes:n,setAttributes:a}),b()}},(0,i.__)("Enable new system only","generateblocks"))}return k(u)?null:(0,e.createElement)(e.Fragment,null,!!o&&(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:!!o,onChange:()=>p(!0)}),!!d&&(0,e.createElement)(r.Modal,{title:(0,i.__)("New Layout System","generateblocks"),onRequestClose:b},(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")),!!s&&(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"),!!w&&(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"))),!!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 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"},w?(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")),_()):(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")),E())),!w&&_(),!!w&&E(),(0,e.createElement)(r.Button,{variant:"secondary",onClick:b},(0,i.__)("Cancel","generateblocks"))))}function so(t){let{attributes:a,setAttributes:l}=t;const n=Xn(),{id:o,supports:{layout:s,flexChildPanel:c}}=(0,e.useContext)(Me),u={attributes:a,deviceType:n},{display:g,displayTablet:d,displayMobile:b,useInnerContainer:m,zindex:h,innerZindex:f,columnGap:k,columnGapTablet:v,rowGap:y,rowGapTablet:w}=a,C=S("flexDirection",a,n,"row");return(0,e.createElement)(oe,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!1,icon:p("layout"),className:"gblocks-panel-label",id:`${o}Layout`},!!m&&(0,e.createElement)(to,{attributes:a,setAttributes:l,deviceType:n,blockDefaults:generateBlocksDefaults.container}),s.display&&!m&&(0,e.createElement)(Yi,{value:Yn("display",u),onChange:e=>l({[Yn("display",u,!0)]:e})}),Qi({device:n,display:g,displayTablet:d,displayMobile:b})&&!m&&(0,e.createElement)(e.Fragment,null,s.flexDirection&&(0,e.createElement)(Xi,{value:Yn("flexDirection",u),onChange:e=>{e=Yn("flexDirection",u).includes("reverse")?e+"-reverse":e,l({[Yn("flexDirection",u,!0)]:e!==Yn("flexDirection",u)?e:""})},onReverse:e=>{""===e&&(e="row"),e=e.includes("reverse")?e.replace("-reverse",""):e+"-reverse",l({[Yn("flexDirection",u,!0)]:e})},label:(0,i.__)("Direction","generateblocks"),directionValue:C,fallback:S("flexDirection",a,n,"row")}),s.alignItems&&(0,e.createElement)(Ji,{value:Yn("alignItems",u),onChange:e=>l({[Yn("alignItems",u,!0)]:e!==Yn("alignItems",u)?e:""}),label:(0,i.__)("Align Items","generateblocks"),attributeName:"alignItems",directionValue:C,fallback:S("alignItems",a,n,"")}),s.justifyContent&&(0,e.createElement)(Ji,{value:Yn("justifyContent",u),onChange:e=>l({[Yn("justifyContent",u,!0)]:e!==Yn("justifyContent",u)?e:""}),label:(0,i.__)("Justify Content","generateblocks"),attributeName:"justifyContent",directionValue:C,fallback:S("justifyContent",a,n,"")}),s.flexWrap&&(0,e.createElement)(Ji,{value:Yn("flexWrap",u),onChange:e=>l({[Yn("flexWrap",u,!0)]:e!==Yn("flexWrap",u)?e:""}),label:(0,i.__)("Wrap","generateblocks"),attributeName:"flexWrap",directionValue:C,fallback:S("flexWrap",a,n,"")}),(s.columnGap||s.rowGap)&&(0,e.createElement)(Qn,null,s.columnGap&&(0,e.createElement)(lo,{label:(0,i.__)("Column Gap","generateblocks"),id:"gblocks-column-gap",units:["px","%","vw","em","rem"],value:Yn("columnGap",u),desktopValue:k,tabletValue:v,onChange:e=>l({[Yn("columnGap",u,!0)]:e})}),s.rowGap&&(0,e.createElement)(lo,{label:(0,i.__)("Row Gap","generateblocks"),id:"gblocks-row-gap",units:["px","%","vw","em","rem"],value:Yn("rowGap",u),desktopValue:y,tabletValue:w,onChange:e=>l({[Yn("rowGap",u,!0)]:e})}))),!m&&(0,e.createElement)(e.Fragment,null,s.position&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Position","generateblocks"),value:Yn("position",u),options:Zi,onChange:e=>l({[Yn("position",u,!0)]:e})}),s.overflow&&(0,e.createElement)(Qn,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Overflow-x","generateblocks"),value:Yn("overflowX",u),options:Ki,onChange:e=>l({[Yn("overflowX",u,!0)]:e})}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Overflow-y","generateblocks"),value:Yn("overflowY",u),options:Ki,onChange:e=>l({[Yn("overflowY",u,!0)]:e})}))),s.zIndex&&(0,e.createElement)(e.Fragment,null,!!m&&"Desktop"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ao,{label:(0,i.__)("Outer z-index","generateblocks"),value:h,onChange:e=>l({zindex:e})}),(0,e.createElement)(ao,{label:(0,i.__)("Inner z-index","generateblocks"),value:f,onChange:e=>l({innerZindex:e})})),!m&&(0,e.createElement)(ao,{label:(0,i.__)("z-index","generateblocks"),value:Yn("zindex",u),placeholder:S("zindex",a,n),onChange:e=>l({[Yn("zindex",u,!0)]:e,[Yn("position",u,!0)]:Yn("position",u)?Yn("position",u):"relative"})})),!!m&&(0,e.createElement)(oo,{attributes:a,setAttributes:l}),c.enabled&&(0,e.createElement)(ro,{attributes:a,setAttributes:l}))}var co=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));function uo(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Min Height","generateblocks"),id:"gblocks-min-height",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r})}function go(t){const{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Width","generateblocks"),id:"gblocks-width",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r})}function po(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,disabled:o,overrideValue:s,units:c,overrideAction:u}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(lo,{label:(0,i.__)("Max Width","generateblocks"),id:"gblocks-max-width",units:c,overrideValue:s,disabled:o,value:a,desktopValue:l,tabletValue:n,onChange:r,overrideAction:u}))}function bo(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Height","generateblocks"),id:"gblocks-height",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r})}function mo(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,disabled:o,units:s}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Min Width","generateblocks"),id:"gblocks-min-width",units:s,value:a,desktopValue:l,tabletValue:n,onChange:r,disabled:o})}function ho(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(lo,{label:(0,i.__)("Max Height","generateblocks"),id:"gblocks-max-height",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r}))}function fo(t){const{id:a,supports:{sizingPanel:l}}=(0,e.useContext)(Me),n=Xn(),{attributes:o,setAttributes:s}=t,{useGlobalMaxWidth:c=!1,useInnerContainer:u=!1,isGrid:g=!1,sizing:d}=o;function b(e){return d&&d[Yn(e,{attributes:o,deviceType:n},!0)]?d[Yn(e,{attributes:o,deviceType:n},!0)]:""}function h(e){return(0,m.applyFilters)("generateblocks.editor.sizingUnits",["px","em","%","rem","vw","vh","ch"],e)}return(0,e.createElement)(oe,{title:(0,i.__)("Sizing","generateblocks"),initialOpen:!1,icon:p("sizing"),className:"gblocks-panel-label",id:`${a}Sizing`},(0,e.createElement)("div",{className:"gblocks-sizing-fields"},l.width&&(0,e.createElement)(go,{value:b("width"),desktopValue:null==d?void 0:d.width,tabletValue:null==d?void 0:d.widthTablet,units:h("width"),onChange:e=>{s({sizing:{...d,[Yn("width",{attributes:o,deviceType:n},!0)]:e}})}}),l.height&&(0,e.createElement)(bo,{value:b("height"),desktopValue:null==d?void 0:d.height,tabletValue:null==d?void 0:d.heightTablet,units:h("height"),onChange:e=>{s({sizing:{...d,[Yn("height",{attributes:o,deviceType:n},!0)]:e}})}}),l.minWidth&&(0,e.createElement)(mo,{value:b("minWidth"),desktopValue:null==d?void 0:d.minWidth,tabletValue:null==d?void 0:d.minWidthTablet,units:h("minWidth"),disabled:g,onChange:e=>{s({sizing:{...d,[Yn("minWidth",{attributes:o,deviceType:n},!0)]:e}})}}),l.minHeight&&(0,e.createElement)(uo,{value:b("minHeight"),desktopValue:null==d?void 0:d.minHeight,tabletValue:null==d?void 0:d.minHeightTablet,units:h("minHeight"),onChange:e=>{s({sizing:{...d,[Yn("minHeight",{attributes:o,deviceType:n},!0)]:e}})}}),l.maxWidth&&(0,e.createElement)(po,{value:b("maxWidth"),desktopValue:null==d?void 0:d.maxWidth,tabletValue:null==d?void 0:d.maxWidthTablet,units:h("maxWidth"),overrideValue:c?generateBlocksInfo.globalContainerWidth:null,disabled:u||g||c&&"Desktop"===n,onChange:e=>{s({sizing:{...d,[Yn("maxWidth",{attributes:o,deviceType:n},!0)]:e}})},overrideAction:()=>!l.useGlobalMaxWidth||u||g||"Desktop"!==n||b("maxWidth")?null:(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Use global max-width","generateblocks")},(0,e.createElement)(r.Button,{icon:co,isPrimary:!!c,onClick:()=>{s({useGlobalMaxWidth:!c})}}))}),l.maxHeight&&(0,e.createElement)(ho,{value:b("maxHeight"),desktopValue:null==d?void 0:d.maxHeight,tabletValue:null==d?void 0:d.maxHeightTablet,units:h("maxHeight"),onChange:e=>{s({sizing:{...d,[Yn("maxHeight",{attributes:o,deviceType:n},!0)]:e}})}})))}function ko(t){let{attributes:a,setAttributes:l,computedStyles:r={},children:i}=t;const o=Xn(),{supports:{responsiveTabs:s,settingsPanel:c,layout:u,typography:g,spacing:d,colors:p,backgroundPanel:b,shapesPanel:m,icon:h,sizingPanel:f}}=(0,e.useContext)(Me);return(0,e.createElement)(n.InspectorControls,null,s&&(0,e.createElement)(Ne,null),c.enabled&&!!i&&(0,e.createElement)(Ii,null,i),u.enabled&&(0,e.createElement)(so,{attributes:a,setAttributes:l}),d.enabled&&(0,e.createElement)(cr,{attributes:a,setAttributes:l,computedStyles:r}),f.enabled&&(0,e.createElement)(fo,{attributes:a,setAttributes:l}),g.enabled&&!a.removeText&&(0,e.createElement)(er,{attributes:a,setAttributes:l,computedStyles:r}),p.enabled&&(0,e.createElement)(ki,{attributes:a,setAttributes:l}),b.enabled&&(0,e.createElement)(Wi,{attributes:a,setAttributes:l}),m.enabled&&("Desktop"===o||(null==a?void 0:a.shapeDividers.length)>0)&&(0,e.createElement)(qi,{attributes:a,setAttributes:l}),h.enabled&&("Desktop"===o||!!a.icon)&&(0,e.createElement)(zi,{attributes:a,setAttributes:l}))}(0,m.addFilter)("generateblocks.editor.settingsPanel","generateblocks/grid/gridItemSettings",(function(t,a){const{attributes:l,setAttributes:n,name:o}=a,{isGrid:s,sizing:c}=l;if("generateblocks/container"!==o||!s)return t;const u=Xn();return(0,e.createElement)(e.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)(e.Fragment,{key:"gridItemWidth"+a},(0,e.createElement)(r.Button,{isPrimary:t.value===(i="width",c&&c[Yn(i,{attributes:l,deviceType:u},!0)]?c[Yn(i,{attributes:l,deviceType:u},!0)]:""),onClick:()=>n({sizing:{...c,[Yn("width",{attributes:l,deviceType:u},!0)]:t.value}})},t.label));var i})))),t)}));var vo=(0,U.compose)(ne,Se,(t=>a=>{const{attributes:l}=a,n=l.isQueryLoop?Object.assign({},a,{defaultLayout:"100",templateLock:"all",InnerBlocksRenderer:fe}):a;return(0,e.createElement)(t,n)}),te,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{if(l.isDynamic||n({isDynamic:!0}),!ae(l)&&le(l.blockVersion,3)&&n({useLegacyRowGap:!0}),!ae(l)&&le(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.gridContainer,t={};l.useGlobalStyle&&l.globalStyleId||x(l.horizontalGap)||(t.horizontalGap=e.horizontalGap),Object.keys(t).length>0&&n(t)}le(l.blockVersion,3)&&n({blockVersion:3})}),[]),(0,e.createElement)(t,a)}))((a=>{const{clientId:r,attributes:i,setAttributes:o,InnerBlocksRenderer:d=n.InnerBlocks,LayoutSelector:p=u,defaultLayout:h=!1,templateLock:f=!1,context:k}=a,[v,y]=(0,e.useState)(!1),w=Xn(),C=W(r),{insertBlocks:_}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{o({columns:C})}),[C]),(0,e.useEffect)((()=>{const e=h||v;!i.isQueryLoop&&e&&(c(e,i.uniqueId).forEach((e=>{_((0,g.createBlock)("generateblocks/container",e),void 0,a.clientId,!1)})),y(!1))}),[v,h,i.uniqueId,a.clientId,i.isQueryLoop]);let E={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};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/grid",i);const x=(0,n.useBlockProps)(E);return(0,e.createElement)(e.Fragment,null,!i.isQueryLoop&&(i.columns>0||v)&&(0,e.createElement)(b,{uniqueId:i.uniqueId,clientId:a.clientId}),(0,e.createElement)(ko,{attributes:i,setAttributes:o},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:w}),(0,e.createElement)(M,{attributes:i,setAttributes:o,deviceType:w})),(0,e.createElement)(I,{anchor:i.anchor,setAttributes:o}),(0,e.createElement)(G,t({},a,{deviceType:w})),(0,e.createElement)("div",x,i.isQueryLoop||i.columns>0||v?(0,e.createElement)(d,{templateLock:f,allowedBlocks:["generateblocks/container"],renderAppender:!1,clientId:r,uniqueId:i.uniqueId,attributes:i,context:k}):(0,e.createElement)(p,{uniqueId:i.uniqueId,onClick:y,isDisabled:null==i?void 0:i.isBlockPreview})))})),yo={uniqueId:{type:"string",default:""},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},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const wo=[{attributes:yo,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(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i}=a;let o={id:r||void 0,className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/grid",a),(0,e.createElement)("div",o,(0,e.createElement)(n.InnerBlocks.Content,null))}}];var Co=wo;const _o=Te(yo,_e,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:_o,supports:{className:!1,html:!1},edit:vo,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Co});var Eo=Object.assign({},yo,{uniqueId:{type:"string",default:""},inheritQuery:{type:"boolean",default:!1},query:{type:"object",default:{}}});const xo=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 So=a=>(0,e.createElement)(Zn,t({id:"gblocks-select-query-parameters",label:(0,i.__)("Select query parameter","generateblocks"),placeholder:(0,i.__)("Select query parameter","generateblocks"),isSearchable:!0,pageSize:20},a,{menuPlacement:"top",options:xo(a.options,"group","Other")})),To=a=>(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},(0,e.createElement)(r.Button,t({isPrimary:!0,text:(0,i.__)("Add Parameter","generateblocks")},a))),Mo=(0,m.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")}]),Bo=t=>{let{postType:a,onChange:n,value:r,help:o}=t;const s=(0,l.useSelect)((e=>{const{getPostTypes:t}=e(q.store);return t({per_page:-1})||[]}),[]),c=(0,e.useMemo)((()=>{const e=s.filter((e=>e.viewable&&"attachment"!==e.slug));return(0,m.applyFilters)("generateblocks.editor.query-loop.enabled-post-types",e,s)}),[s]),u=(0,e.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)(Zn,{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})},zo=a=>{const{options:l,value:n}=a;return(0,e.createElement)(Zn,t({},a,{id:"gblocks-simple-select",value:l.filter((e=>e.value===n))}))};function Io(e,t){return e===t}function Oo(e){return"function"==typeof e?function(){return e}:e}function Lo(e,t,a){var l=a&&a.equalityFn||Io,n=function(e){var t=(0,y.useState)(Oo(e)),a=t[0],l=t[1];return[a,(0,y.useCallback)((function(e){return l(Oo(e))}),[])]}(e),r=n[0],i=n[1],o=ue((0,y.useCallback)((function(e){return i(e)}),[i]),t,a),s=(0,y.useRef)(e);return l(s.current,e)||(o(e),s.current=e),[r,o]}function Ao(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[l,n]=(0,e.useState)(t),[r]=Lo(l,a);return[r,n,l]}function Ro(t){const{label:a,onChange:l,value:n,help:r,placeholder:o,filterName:s="generateblocks.editor.authors-select"}=t,[c,u]=Ao("",400),[g,d]=(0,e.useState)(n.length>0),p=!!c.trim()&&!c.trim().match(/\D/g),b=p?[c.replace(/\D/g,"")]:void 0,{records:h,isLoading:f}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{records:a,setRecords:l,query:n,setQuery:r,isLoading:i,setIsLoading:o}=Y({query:t});(0,e.useEffect)((()=>{r(t),o(!0)}),[JSON.stringify(t)]);const{records:s,isResolving:c}=X(n);return(0,e.useEffect)((()=>{o(c)}),[c]),(0,e.useEffect)((()=>{l(s),o(!1)}),[JSON.stringify(s)]),{records:a,isLoading:i}}({per_page:c?100:10,search:c&&!p?c:void 0,include:g?n:b});(0,e.useEffect)((()=>{g&&h.some((e=>n.includes(e.id)))&&d(!1)}),[JSON.stringify(h),JSON.stringify(n)]);const k=(0,e.useMemo)((()=>{const e=h.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[]);return(0,m.applyFilters)(s,e)}),[h]),v=k.filter((e=>n.includes(e.value)));return(0,e.createElement)(Zn,{id:"gblocks-select-author",label:a||(0,i.__)("Select authors","generateblocks"),help:r,placeholder:o||(0,i.__)("Search authors…","generateblocks"),options:k,isMulti:!0,isSearchable:!0,value:v,onChange:l,isLoading:f,onInputChange:(e,t)=>{let{action:a}=t;"input-change"===a&&u(e)}})}function No(t){const{taxonomy:a,label:l,onChange:n,value:r=[],help:o,placeholder:s,filterName:c="generateblocks.editor.taxonomies-select"}=t,[u,g]=(0,e.useState)(r.length>0),[d,p]=Ao("",500),b=!!d.trim()&&!d.trim().match(/\D/g),h=b?[d.replace(/\D/g,"")]:void 0,{records:f,isLoading:k}=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{records:l,setRecords:n,query:r,setQuery:i,isLoading:o,setIsLoading:s,reset:c}=Y({query:a});(0,e.useEffect)((()=>{c()}),[t]),(0,e.useEffect)((()=>{i(a)}),[JSON.stringify(a)]);const{records:u,isResolving:g}=Q(t,r);return(0,e.useEffect)((()=>{s(g)}),[g]),(0,e.useEffect)((()=>{n(u)}),[JSON.stringify(u)]),{records:l,isLoading:o}}(a,{per_page:d?100:10,search:d&&!b?d:void 0,include:u?r:h});(0,e.useEffect)((()=>{u&&f.some((e=>r.includes(e.id)))&&g(!1)}),[JSON.stringify(f),JSON.stringify(r)]);const v=(0,e.useMemo)((()=>{const e=f.reduce(((e,t)=>(e.push({value:t.id,label:"#"+t.id+": "+t.name}),e)),[]);return(0,m.applyFilters)(c,e)}),[JSON.stringify(f)]),y=v.filter((e=>r.includes(e.value)));return(0,e.createElement)(Zn,{id:"gblocks-select-author",label:l||(0,i.__)("Select terms","generateblocks"),help:o,placeholder:s||(0,i.__)("Search authors…","generateblocks"),options:v,isMulti:!0,isSearchable:!0,value:y,onChange:n,isLoading:k,onInputChange:(e,t)=>{let{action:a}=t;"input-change"===a&&p(e)}})}function Do(a){return(0,e.createElement)(No,t({},a,{taxonomy:"category"}))}function Fo(a){return(0,e.createElement)(No,t({},a,{taxonomy:"post_tag"}))}function Po(t){let{id:a,onClick:l}=t;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"))&&l(a)},icon:p("trash")}))}function Ho(t){const{label:a,placeholder:l,value:n,onChange:o,help:s}=t,[c,u]=(0,e.useState)(n.taxonomy),[g,d]=(0,e.useState)(n.terms),[p,b]=(0,e.useState)(!1!==n.includeChildren),m=$(),h=(0,e.useMemo)((()=>{const e=m.filter((e=>e.slug===c));return!!e[0]&&e[0].hierarchical}),[JSON.stringify(m),c]);(0,e.useEffect)((()=>{n.taxonomy!==c&&u(n.taxonomy),JSON.stringify(n.terms)!==JSON.stringify(g)&&d(n.terms)}),[n]),(0,e.useEffect)((()=>{if(c){const e=m.filter((e=>e.slug===c)),t=e[0]?e[0].rest_base:void 0,a=!!e[0]&&e[0].hierarchical;o({taxonomy:c,terms:g,rest:t,includeChildren:a?p:void 0})}}),[c,JSON.stringify(g),p]);const f=(0,e.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)(zo,{wrapperStyles:{marginBottom:"8px"},label:a,placeholder:l||(0,i.__)("Select taxonomy","generateblocks"),options:f,value:c,onChange:e=>{u(e.value),d([])}}),c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(No,{taxonomy:c,value:g,filterName:"generateblocks.editor.taxonomy-parameter-control."+t.id,placeholder:l||(0,i.__)("Search terms…","generateblocks"),onChange:e=>{const t=e.reduce(((e,t)=>(e.push(t.value),e)),[]);d(t)},help:0===g.length?(0,i.__)("You must select at least one term. Search by name or ID.","generateblocks"):s}),h&&(0,e.createElement)(r.ToggleControl,{checked:p,label:(0,i.__)("Include child terms","generateblocks"),onChange:b})))}function Vo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.useSelect)((a=>{const{getEntityRecords:l,isResolving:n}=a(q.store),r=Object.assign({per_page:-1},t),i=(0,m.applyFilters)("generateblocks.editor.hooks.usePostTypeRecordsQueryArgs",r);i.hasOwnProperty("include")&&(0,P.isUndefined)(i.include)&&delete i.include;const o=["postType",e,i];return{records:l(...o)||[],isResolving:n("getEntityRecords",o)}}),[e,JSON.stringify(t)])}function Go(a){const{postType:l,label:n,value:r,placeholder:o,filterName:s="generateblocks.editor.post-type-record-select",...c}=a,[u,g]=(0,e.useState)(r.length>0),[d,p]=Ao("",500),b=!!d.trim()&&!d.trim().match(/\D/g),h=b?[d.replace(/\D/g,"")]:void 0,{records:f,isLoading:k}=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{records:l,setRecords:n,query:r,setQuery:i,isLoading:o,setIsLoading:s,reset:c}=Y({query:a});(0,e.useEffect)((()=>{c()}),[t]),(0,e.useEffect)((()=>{i(a)}),[JSON.stringify(a)]);const{records:u,isResolving:g}=Vo(t,r);return(0,e.useEffect)((()=>{s(g)}),[g]),(0,e.useEffect)((()=>{n(u)}),[JSON.stringify(u)]),{records:l,isLoading:o}}(l,{per_page:d?100:10,search:d&&!b?d:void 0,include:u?r:h});(0,e.useEffect)((()=>{u&&f.some((e=>r.includes(e.id)))&&g(!1)}),[JSON.stringify(f),JSON.stringify(r)]);const v=(0,e.useMemo)((()=>{const e=null==f?void 0:f.map((e=>{const t=e.title&&e.title.raw?e.title.raw:e.slug;return{value:e.id,label:`#${e.id}: ${t}`}}));return(0,m.applyFilters)(s,e)}),[f,l]),y=v.filter((e=>r.includes(e.value)));return(0,e.createElement)(Zn,t({id:"gblocks-select-posts",label:n||(0,i.__)("Select post","generateblocks"),placeholder:o||(0,i.__)("Search posts…","generateblocks"),value:y,isLoading:k,isSearchable:!0,isMulti:!0},c,{options:v,onInputChange:(e,t)=>{let{action:a}=t;"input-change"===a&&p(e)}}))}function Uo(t){let{id:a,label:l,help:n,value:i,onChange:o}=t;const s=i?new Date(i):new Date;return(0,e.createElement)("div",{style:{marginBottom:"24px"}},(0,e.createElement)(r.BaseControl,{id:a,label:l,help:n},(0,e.createElement)(r.DateTimePicker,{currentDate:s,onChange:o,is12Hour:!0})))}function jo(a){const[l,n,i]=Ao(null==a?void 0:a.value,800);return(0,e.useEffect)((()=>{a.onChange(l)}),[l]),(0,e.createElement)(r.TextControl,t({},a,{value:i,onChange:n}))}var Wo=function(a){const{options:l,value:n}=a;return(0,e.createElement)(Zn,t({},a,{isMulti:!0,id:"gblocks-simple-multi-select",value:l.filter((e=>n.includes(e.value)))}))};function qo(a){const{id:l,type:n,label:o,description:s,selectOptions:c=[],isSticky:u,value:g,default:d,onChange:p,onClickRemove:b,dependencies:m,placeholder:h}=a,f=(e=>{switch(e){case"text":case"number":return jo;case"postTypeSelect":return Bo;case"select":return zo;case"multiSelect":return Wo;case"authorsSelect":return Ro;case"categoriesSelect":return Do;case"tagsSelect":return Fo;case"taxonomySelect":return Ho;case"postsSelect":return Go;case"dateTimePicker":return Uo;case"toggleControl":return r.ToggleControl}})(n);let k=s;"per_page"===l&&("-1"===g||parseInt(g)>parseInt(generateBlocksInfo.queryLoopEditorPostsCap))&&(k+=" "+(0,i.sprintf)("Editor only: A maximum of %s posts can be previewed in the editor.",generateBlocksInfo.queryLoopEditorPostsCap));const v=!d||(0,P.isArray)(d)&&(0,P.isObject)(d)?void 0:d,y=h||v;return(0,e.createElement)("div",{className:"gblocks-parameter-component"},(0,e.createElement)(f,t({id:l,type:n,label:o,help:k,options:c,value:g,placeholder:y,onChange:p},m)),!u&&(0,e.createElement)(Po,{id:l,onClick:b}))}var $o=a=>{let{parameter:l,query:n,setParameter:r,removeParameter:i}=a;const{dependencies:o={}}=l,s=n[l.id],c=Object.keys(o).reduce(((e,t)=>(e[t]=n[o[t]]||o[t],e)),{});function u(a,n,r){return(0,e.createElement)(qo,t({},l,{value:a,onChange:n,onClickRemove:r,dependencies:c}))}return l.isRepeatable?(0,e.createElement)(e.Fragment,null,Array.isArray(s)&&s.map(((e,t)=>u(e,(e=>{s[t]=e,r(l.id,[...s])}),(e=>{s.splice(t,1),0===s.length?i(e):r(l.id,[...s])}))))):u(s,(function(e){r(l.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}})(l.id,e))}),i)},Zo=t=>{let{query:a,setParameter:l,removeParameter:n}=t;const r=(e=>Mo.filter((e=>e.isSticky)).concat(Object.keys(e).map((e=>Mo.find((t=>e===t.id&&!t.isSticky)))).filter(Boolean)))(a);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},r&&r.map((t=>(0,e.createElement)($o,{key:t.id,parameter:t,query:a,setParameter:l,removeParameter:n})))))};const Ko="add_query_parameter",Jo="remove_query_parameter",Yo=function(e,t){switch(t.type){case Ko:return Object.assign({},e,t.payload);case Jo:const{[t.payload]:a,...l}=e;return l;default:throw new Error(`queryReducer does not support action type "${t.type}".`)}};var Qo=t=>{let{attributes:a,setAttributes:l}=t;const{queryState:o,insertParameters:s,setParameter:c,removeParameter:u}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[a,l]=(0,e.useReducer)(Yo,t);return{queryState:a,setParameter:(e,t)=>l({type:Ko,payload:{[e]:t}}),insertParameters:e=>l({type:Ko,payload:e}),removeParameter:e=>l({type:Jo,payload:e})}}(a.query),[g,d]=(0,e.useState)(!1);(0,e.useEffect)((()=>{ie(a.query)&&s({post_type:"post",per_page:10})}),[]),(0,e.useEffect)((()=>{l({query:o})}),[JSON.stringify(o),!(0,P.isEqual)(a.query,o)]);const b=(0,e.useMemo)((()=>Mo.map((e=>(e.isDisabled=!e.isRepeatable&&Object.keys(o).includes(e.id),e)))),[o]);return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(oe,{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:!!a.inheritQuery,onChange:e=>l({inheritQuery:e})}),!a.inheritQuery&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zo,{query:o,setParameter:c,removeParameter:u}),!g&&(0,e.createElement)(To,{onClick:()=>{d(!0)}}),g&&(0,e.createElement)(So,{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)}}))))},Xo=t=>{var a;let{clientId:o}=t;const{insertBlocks:s}=(0,l.useDispatch)("core/block-editor"),{getBlock:c}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{selectBlock:u}=(0,l.useDispatch)("core/block-editor"),d=c(o),b=!!d&&(null==d?void 0:d.innerBlocks[0]),m=!!d&&(null==d||null===(a=d.innerBlocks[0])||void 0===a?void 0:a.innerBlocks[0]),h={useDynamicData:!0,isPagination:!0},f=["generateblocks/container",{marginTop:"20",variantRole:"button-container",display:"flex",isPagination:!0},[["generateblocks/button",Object.assign({},h,generateBlocksStyling.button,{text:(0,i.__)("Previous","generateblocks"),dynamicLinkType:"pagination-prev",dynamicLinkRemoveIfEmpty:!0})],["generateblocks/button",Object.assign({},h,generateBlocksStyling.button,{text:(0,i.__)("1 2 … 10","generateblocks"),dynamicContentType:"pagination-numbers"})],["generateblocks/button",Object.assign({},h,generateBlocksStyling.button,{text:(0,i.__)("Next","generateblocks"),dynamicLinkType:"pagination-next",dynamicLinkRemoveIfEmpty:!0})]]];return(0,e.createElement)(n.BlockControls,null,(!!b||!!m)&&(0,e.createElement)(r.ToolbarGroup,null,!!b&&(0,e.createElement)(r.ToolbarButton,{icon:p("grid"),label:(0,i.__)("Open Grid","generateblocks"),onClick:()=>{u(b.clientId)},showTooltip:!0}),!!m&&(0,e.createElement)(r.ToolbarButton,{icon:p("container"),label:(0,i.__)("Open Container","generateblocks"),onClick:()=>{u(m.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:()=>{s((0,g.createBlocksFromInnerBlocksTemplate)([f]),void 0,o)},showTooltip:!0})))},es=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).filter((e=>t.includes(e))).reduce(((t,a)=>Object.assign({},t,{[a]:e[a]})),{})},ts=[{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}}]]]]}],as=t=>{let{clientId:a,isDisabled:n}=t;if(n)return!1;const{replaceInnerBlocks:o}=(0,l.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"},ts.map((t=>(0,e.createElement)(r.Button,{key:`template-${t.name}`,onClick:()=>{o(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}},t.icon,(0,e.createElement)("p",null,t.title))))))};(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:Eo,supports:{className:!1,customClassName:!1},providesContext:{"generateblocks/query":"query","generateblocks/queryId":"uniqueId","generateblocks/inheritQuery":"inheritQuery"},edit:te((function(t){const{attributes:a,clientId:r,setAttributes:i}=t,o=(0,n.useBlockProps)(),s=(0,l.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)(Xo,{clientId:r}),(0,e.createElement)(Qo,{attributes:es(a,Object.keys(Eo)),setAttributes:i,clientId:r}),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/query":a.query}},(0,e.createElement)(n.InnerBlocks,{renderAppender:!1}))):(0,e.createElement)(as,{clientId:r})))})),save:()=>(0,e.createElement)(n.InnerBlocks.Content,null)});var ls=window.wp.apiFetch,ns=a.n(ls);const rs=(0,e.memo)((function(t){let{onboardingKey:a,children:n}=t;const[o,s]=(0,e.useState)(!1),c=(0,l.useSelect)((e=>{var t;return null===(t=e(q.store))||void 0===t?void 0:t.getCurrentUser()}),[]);return(0,e.useEffect)((function(){var e;"1"===sessionStorage.getItem(`generateblocks_onboarding_${a}`)||null!=c&&null!==(e=c.meta)&&void 0!==e&&e.generateblocks_onboarding[a]||s(!0)}),[null==c?void 0:c.id,JSON.stringify(null==c?void 0: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:()=>{ns()({path:"/generateblocks/v1/onboarding",method:"POST",data:{key:a}}).then((()=>{s(!1),sessionStorage.setItem(`generateblocks_onboarding_${a}`,"1")}))}},(0,i.__)("Got it","generateblocks")))))}));var is=rs;function os(){return(0,e.createElement)(is,{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 ss=["wide","full"],cs=(0,U.createHigherOrderComponent)((t=>a=>{if("generateblocks/container"!==a.name)return(0,e.createElement)(t,a);const{insertBlocks:o}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:s,getBlockRootClientId:c,getBlocksByClientId:u}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{attributes:d,clientId:b,setAttributes:m}=a,{isGrid:h,isQueryLoopItem:f,align:k,variantRole:v,useInnerContainer:y}=d;let w=!1;w="function"==typeof s?s(b,"generateblocks/grid",!0)[0]:c(b);const C=c(b),_=W(b),E=(0,g.getBlockSupport)("","align",!0)&&!h;return(0,e.createElement)(e.Fragment,null,!C&&0===_&&""===v&&!y&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{icon:p("section"),label:(0,i.__)("Insert Inner Container","generateblocks"),onClick:()=>{o((0,g.createBlock)("generateblocks/container",{useGlobalMaxWidth:!0,marginLeft:"auto",marginRight:"auto"}),void 0,b)},showTooltip:!0}),(0,e.createElement)(os,null))),!f&&h&&w&&(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=u(b)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});o(t,void 0,w)},showTooltip:!0}))),E&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(n.BlockAlignmentToolbar,{value:k,onChange:e=>{m({align:e}),"full"===e&&m({outerContainer:"full"})},controls:ss})),(0,e.createElement)(t,a))}),"withBlockControls");(0,m.addFilter)("editor.BlockEdit","generateblocks/container-block-controls",cs);var us=t=>{let{attributes:a,setAttributes:l}=t;const r=Xn(),{display:i,displayTablet:o,displayMobile:s}=a;return(0,e.createElement)(n.BlockControls,null,!Qi({device:r,display:i,displayTablet:o,displayMobile:s})&&(0,e.createElement)(n.AlignmentToolbar,{value:Yn("alignment",{attributes:a,deviceType:r}),onChange:e=>{l({[Yn("alignment",{attributes:a,deviceType:r},!0)]:e})},alignmentControls:Ge.alignments}))};function gs(t){const{onChange:a,tagName:l}=t,n=Xn(),o=(0,m.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 ds=t=>{const{attributes:a,setAttributes:l,filterTagName:r}=t;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t),(0,e.createElement)(gs,{filterTagName:r,tagName:a.tagName,onChange:e=>l({tagName:r(e)})}))},ps=t=>{let{fontFamily:a,googleFont:l,googleFontVariants:n,isBlockPreview:r}=t;if(r)return null;const i=n?`:${n}`:"",o="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+i;return(0,e.createElement)(e.Fragment,null,a&&l&&(0,e.createElement)("link",{rel:"stylesheet",href:o}))},bs=t=>{let{source:a,onChange:l,help:n,dynamicContentType:r}=t;const o=(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,m.applyFilters)("generateblocks.editor.dynamicContent.sourceOptions",t)})(r),s=o.filter((e=>e.value===a));return(0,e.createElement)(Zn,{id:"gblocks-select-source-control",label:(0,i.__)("Data source","generateblocks"),help:n,placeholder:(0,i.__)("Select source","generateblocks"),options:o,value:s,onChange:l})},ms=t=>{let{dynamicSource:a,postType:l,postId:n,setAttributes:r,dynamicContentType:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(bs,{source:a,onChange:e=>{r({dynamicSource:e.value,postId:"",postType:"post"})},dynamicContentType:o}),"post-type"===a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bo,{postType:l,onChange:e=>{r({postType:e.value,postId:""})}}),(0,e.createElement)(Go,{postId:n,postType:l,value:n?[n]:[],id:"gblocks-select-post",label:(0,i.__)("Select source post","generateblocks"),help:(0,i.__)("Search by name or ID.","generateblocks"),onChange:e=>{r({postId:e.value})},isMulti:!1})))},hs=t=>{let{dynamicContentType:a,setAttributes:l,name:n,isCaption:r}=t;const o=((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,m.applyFilters)("generateblocks.editor.dynamicContent.sourceTypes",a,e)})(n,r),s=o.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a));let c=(0,i.__)("Content source","generateblocks");return"generateblocks/container"===n&&(c=(0,i.__)("Background image source","generateblocks")),"generateblocks/image"===n&&(c=(0,i.__)("Image source","generateblocks")),(0,e.createElement)(Zn,{id:"gblocks-select-content-type-control",label:c,placeholder:c,options:o,value:s,onChange:e=>{l({dynamicContentType:e.value,metaFieldName:""}),"comments-number"===e.value?l({noCommentsText:(0,i.__)("No comments","generateblocks"),singleCommentText:(0,i.__)("1 comment","generateblocks"), +(0,i.sprintf)((0,i.__)("Shape %s","generateblocks"),n),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-shapes-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Edit Shape","generateblocks")},(0,e.createElement)(r.Button,{className:"gblocks-shape-dropdown",isSecondary:!a||void 0,isPrimary:!!a||void 0,icon:p("wrench"),onClick:l,"aria-expanded":a}))},renderContent:()=>(0,e.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map(((t,n)=>{const i=generateBlocksInfo.svgShapes[t].svgs;return(0,e.createElement)(r.PanelBody,{title:generateBlocksInfo.svgShapes[t].group,initialOpen:i.hasOwnProperty(u[a].shape),key:n},(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(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:s()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":u[a].shape===t}),onClick:()=>{const e=[...u];e[a]={...e[a],shape:t},l({shapeDividers:e})}},"string"==typeof i[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:_i(i[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},i[t].icon)))))))))))}))),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(hi,{label:(0,i.__)("Color","generateblocks"),value:u[a].color,alpha:!0,valueOpacity:u[a].colorOpacity,onChange:e=>{const t=[...u];t[a]={...t[a],color:e},l({shapeDividers:t})},onOpacityChange:e=>{const t=[...u];t[a]={...t[a],colorOpacity:e},l({shapeDividers:t})}})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Location","generateblocks"),value:u[a].location,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{const t=[...u];t[a]={...t[a],location:e},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].height?u[a].height:"",onChange:e=>{const t=[...u];t[a]={...t[a],height:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].width?u[a].width:"",min:"100",onChange:e=>{const t=[...u];t[a]={...t[a],width:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Flip Horizontally","generateblocks"),checked:!!u[a].flipHorizontally,onChange:e=>{const t=[...u];t[a]={...t[a],flipHorizontally:e},l({shapeDividers:t})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("z-index","generateblocks"),type:"number",min:"0",value:u[a].zindex||0===u[a].zindex?u[a].zindex:"",onChange:e=>{const t=[...u];t[a]={...t[a],zindex:e},l({shapeDividers:t})},onBlur:()=>{const e=[...u];e[a]={...e[a],zindex:parseFloat(u[a].zindex)},l({shapeDividers:e})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].heightTablet?u[a].heightTablet:"",onChange:e=>{const t=[...u];t[a]={...t[a],heightTablet:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].widthTablet?u[a].widthTablet:"",min:"100",onChange:e=>{const t=[...u];t[a]={...t[a],widthTablet:parseFloat(e)},l({shapeDividers:t})}})),"Mobile"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].heightMobile?u[a].heightMobile:"",onChange:e=>{const t=[...u];t[a]={...t[a],heightMobile:parseFloat(e)},l({shapeDividers:t})}}),(0,e.createElement)(E,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:u[a].widthMobile?u[a].widthMobile:"",min:"100",onChange:e=>{const t=[...u];t[a]={...t[a],widthMobile:parseFloat(e)},l({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),l({shapeDividers:t})})(a)},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}),l({shapeDividers:e,position:g||"relative"})}},(0,i.__)("Add Shape","generateblocks")))))}const $i={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"}))}]},Zi=(0,m.applyFilters)("generateblocks.editor.layoutPositionOptions",[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Relative","generateblocks"),value:"relative"}]),Ki=[{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 Ji=t=>{const{value:a,onChange:l,label:n,attributeName:i,directionValue:o,fallback:c}=t;function u(t){return(0,e.createElement)(r.Button,{isPrimary:t.value===a,className:a||c!==t.value?"":"is-inherited",onClick:()=>l(t.value)},t.icon||t.label)}return(0,e.createElement)(r.BaseControl,{id:i,label:n,className:s()({["gblocks-flex-direction-"+i+"-"+o]:!0})},(0,e.createElement)(r.ButtonGroup,{id:i,className:"gblocks-flex-button-group"},$i[i].map(((t,a)=>(0,e.createElement)(e.Fragment,{key:i+a},t.icon?(0,e.createElement)(r.Tooltip,{text:t.label||t.value},u(t)):u(t))))))};function Yi(t){let{value:a,onChange:l}=t;return(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Display","generateblocks"),value:a,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"}],onChange:l})}function Qi(e){const{device:t,display:a,displayTablet:l,displayMobile:n}=e;let r=!1;return"Desktop"===t&&a.includes("flex")&&(r=!0),"Tablet"===t&&(l&&l.includes("flex")||!l&&a.includes("flex"))&&(r=!0),"Mobile"===t&&(n&&n.includes("flex")||!n&&l&&l.includes("flex")||!n&&!l&&a.includes("flex"))&&(r=!0),r}var Xi=t=>{const{value:a,onChange:l,onReverse:n,label:o,directionValue:c,fallback:u}=t;function g(t){return(0,e.createElement)(r.Button,{isPrimary:a.includes(t.value),className:!a&&u.includes(t.value)?"is-inherited":"",onClick:()=>l(t.value)},t.icon||t.label)}return(0,e.createElement)(r.BaseControl,{id:"flexDirection",label:o,className:s()({[`gblocks-flex-direction-flexDirection-${c}`]:!0})},(0,e.createElement)(r.ButtonGroup,{id:"flexDirection",className:"gblocks-flex-button-group"},$i.flexDirection.map(((t,a)=>(0,e.createElement)(e.Fragment,{key:o+a},t.icon?(0,e.createElement)(r.Tooltip,{text:t.label||t.value},g(t)):g(t)))),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reverse","generateblocks")},(0,e.createElement)(r.Button,{isPrimary:a.includes("reverse"),className:!a&&u.includes("reverse")?"is-inherited":"",onClick:()=>n(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&&u.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 eo(e,t){return t&&t[e]}var to=t=>{const{attributes:a,setAttributes:l,deviceType:n,blockDefaults:o}=t,{isGrid:s,outerContainer:c,innerContainer:u,containerWidth:g,align:d,useInnerContainer:p,sizing:b,verticalAlignment:h,verticalAlignmentTablet:f,verticalAlignmentMobile:k}=a;return p?(0,e.createElement)(e.Fragment,null,!s&&(0,e.createElement)(e.Fragment,null,"Desktop"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Container","generateblocks"),value:c,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{l({outerContainer:e}),"contained"===e&&"full"===d&&l({align:""})}}),"full"===c&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Inner Container","generateblocks"),value:u,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{l({innerContainer:e})}}),("contained"===c||"contained"===u)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{label:"full"===c&&"contained"===u?(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(g)||"",placeholder:o.containerWidth,onChange:e=>{l({containerWidth:""!==e?parseFloat(e):void 0})}})))),"Desktop"===n&&(0,e.createElement)(e.Fragment,null,(!!s||eo("minHeight",b))&&(0,e.createElement)(e.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:h,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=>{l({verticalAlignment:e})}}))),"Tablet"===n&&(!!s||eo("minHeight",b)||eo("minHeightTablet",b))&&(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.__)("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=>{l({verticalAlignmentTablet:e})}}),"Mobile"===n&&(!!s||eo("minHeight",b)||eo("minHeightTablet",b)||eo("minHeightMobile",b))&&(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=>{l({verticalAlignmentMobile:e})}}),(0,m.applyFilters)("generateblocks.editor.controls","","containerLayout",t)):null};function ao(t){let{value:a,onChange:l,label:n,placeholder:o}=t;return(0,e.createElement)(r.TextControl,{label:n||(0,i.__)("z-index","generateblocks"),type:"number",value:a||0===a?a:"",placeholder:o,onChange:l,onBlur:()=>{(a||0===a)&&l(parseFloat(a))},onClick:e=>{e.currentTarget.focus()}})}function lo(t){const{label:a,units:l=["px","em","%","rem"],min:n=0,max:i,step:o,id:c,disabled:u=!1,overrideValue:g=null,overrideAction:d=(()=>null),onChange:p,value:b,desktopValue:m,tabletValue:h,presets:f=[],help:k=""}=t,v=Xn(),[y,w]=(0,e.useState)(""),[C,_]=(0,e.useState)(""),[E,x]=(0,e.useState)(""),[S,T]=(0,e.useState)(!1),M=(0,e.useRef)(!1),B=(0,e.useRef)(!1),z=(0,e.useRef)(!1),I=e=>{const t=l.join("|"),a=new RegExp(`(${t})`);return e?e.split(a).filter((e=>""!==e)):[]},O=e=>e.length>0?e[0]:"",L=e=>e.length>1?e[1]:l[0],A=e=>/^\d/.test(e),R=I(m),D=I(h),N=()=>{if(!b){if(!h&&("Tablet"===v||"Mobile"===v&&(m||g))){const e=I(g);x(O(R.length?R:e)),w(L(R.length?R:e))}"Mobile"===v&&h&&(x(O(D)),w(L(D)))}};var F,P;(0,e.useEffect)((()=>{const e=g&&u?g:b;if(A(e)){const t=I(e);_(O(t)),w(L(t))}else _(e),w("");N()}),[v,b,g]),(0,e.useEffect)((()=>{if(!M.current)return void(M.current=!0);const e=!!g&&!!u,t=A(C)?C+y:C;if(!t){const e={Tablet:R,Mobile:D};v in e&&(y!==L(e[v])?x(""):N())}e||t===b||p(t)}),[C,y]),F=B,P=()=>T(!1),(0,e.useEffect)((()=>{const e=e=>{F.current&&!F.current.contains(e.target)&&P()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}));const H=Object.keys(f).some((e=>{var t;return null===(t=f[e])||void 0===t?void 0:t.value.includes(y)}));return(0,e.createElement)(r.SlotFillProvider,null,(0,e.createElement)(r.BaseControl,{label:a,help:k,id:c,className:s()({"gblocks-unit-control":!0,"gblocks-unit-control__disabled":!!u})},(0,e.createElement)("div",{className:"gblocks-unit-control__input",ref:B},(0,e.createElement)(r.TextControl,{type:"text",value:C,placeholder:E,id:c,min:n,max:i,step:o,autoComplete:"off",disabled:u,onChange:e=>_(e),onFocus:()=>T(!0),ref:z}),!!d&&(0,e.createElement)("div",{className:"gblocks-unit-control__override-action"},d()," "),(A(C)||!C&&(!E||A(E)))&&(0,e.createElement)("span",{className:"gblocks-unit-control__unit-select"},(0,e.createElement)("select",{value:y,disabled:u||1===l.length,onChange:e=>w(e.target.value)},l.map((t=>(0,e.createElement)("option",{key:t,value:t},t))))),!!f.length&&!!S&&H&&(0,e.createElement)(r.Popover,{focusOnMount:!1,className:"gblocks-unit-control__popover"},(0,e.createElement)(r.ButtonGroup,{className:"gblocks-flex-button-group"},Object.values(f).map(((t,a)=>(0,e.createElement)(e.Fragment,{key:"sizing-preset-"+a},(0,e.createElement)(r.Button,{isPrimary:t.value===b,onClick:()=>{p(t.value),z.current.focus()}},t.label)))))),(0,e.createElement)(r.Popover.Slot,null))))}function no(t){const{attributes:a,setAttributes:l}=t,{flexBasis:n,flexBasisTablet:o}=a,s=Xn();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({[Yn("flexGrow",{attributes:a,deviceType:s},!0)]:"",[Yn("flexShrink",{attributes:a,deviceType:s},!0)]:"",[Yn("flexBasis",{attributes:a,deviceType:s},!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:Yn("flexGrow",{attributes:a,deviceType:s}),min:"0",step:"1",placeholder:S("flexGrow",a,s,"0"),onChange:e=>{l({[Yn("flexGrow",{attributes:a,deviceType:s},!0)]:e})},onBlur:()=>{""!==Yn("flexGrow",{attributes:a,deviceType:s})&&l({[Yn("flexGrow",{attributes:a,deviceType:s},!0)]:parseFloat(Yn("flexGrow",{attributes:a,deviceType:s}))})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Shrink","generateblocks"),id:"gblocks-flex-shrink",type:"number",value:Yn("flexShrink",{attributes:a,deviceType:s}),min:"0",step:"1",placeholder:S("flexShrink",a,s,"1"),onChange:e=>{l({[Yn("flexShrink",{attributes:a,deviceType:s},!0)]:e})},onBlur:()=>{""!==Yn("flexShrink",{attributes:a,deviceType:s})&&l({[Yn("flexShrink",{attributes:a,deviceType:s},!0)]:parseFloat(Yn("flexShrink",{attributes:a,deviceType:s}))})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},(0,e.createElement)(lo,{help:(0,i.__)("Basis","generateblocks"),value:Yn("flexBasis",{attributes:a,deviceType:s}),desktopValue:n,tabletValue:o,onChange:e=>{l({[Yn("flexBasis",{attributes:a,deviceType:s},!0)]:e})}})))))}function ro(t){let{attributes:a,setAttributes:l}=t;const n=Xn(),{id:o,supports:{flexChildPanel:s}}=(0,e.useContext)(Me),c={attributes:a,deviceType:n},{useInnerContainer:u,isGrid:g}=a;return(0,e.createElement)(oe,{title:(0,i.__)("Flex Child","generateblocks"),initialOpen:!1,className:"gblocks-panel-label",id:`${o}FlexChild`},s.flex&&(!u||u&&g)&&(0,e.createElement)(no,{attributes:a,setAttributes:l}),s.order&&(!u||u&&g)&&(0,e.createElement)(r.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:x(Yn("order",c))?Yn("order",c):"",placeholder:S("order",a,n),onChange:e=>{l({[Yn("order",c,!0)]:parseFloat(e)})}}))}function io(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:m,dynamicLinkType:h,advBackgrounds:f,gpInlinePostMeta:k,gpInlinePostMetaJustify:v,gpInlinePostMetaJustifyTablet:y,gpInlinePostMetaJustifyMobile:w}=e,C={};let _=!1;eo("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||(!_&&eo("minHeightTablet",r)&&"inherit"!==l&&(C.displayTablet="flex",C.flexDirectionTablet="column",_=!0),_&&"inherit"!==l&&(C.justifyContentTablet=l)),t&&l&&"inherit"!==l&&(C.justifyContentTablet=l),t||(!_&&eo("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||null!=f&&f.length)&&(C.position="relative",C.overflowX="hidden",C.overflowY="hidden"),"hidden-link"===b&&(m||s&&h)&&(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 oo(t){const{setAttributes:a,attributes:n}=t,{useInnerContainer:o,useGlobalStyle:s,isGlobalStyle:c}=n,{clientId:u}=(0,e.useContext)(Me),[d,p]=(0,e.useState)(!1),b=()=>p(!1),{getBlocksByClientId:m,getBlockParentsByBlockName:h,getBlock:f,isBlockMultiSelected:k}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{insertBlocks:v,replaceBlocks:y}=(0,l.useDispatch)("core/block-editor"),w=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),x(i)&&(o=!0),["opacities","transitions","boxShadows","transforms","textShadows","filters"].forEach((e=>{t[e]&&t[e].some((e=>"innerContainer"===e.target))&&(o=!0)})),o}({attributes:n,insideGridBlock:(C=u,h(C,"generateblocks/grid",!0)[0]),childBlock:function(e){const t=f(e);return t&&t.innerBlocks.length?f(t.innerBlocks[0].clientId):""}(u)});var C;function _(){return(0,e.createElement)(r.Button,{variant:w?"primary":"secondary",style:{marginRight:"5px"},onClick:()=>{!function(e){const{attributes:t,setAttributes:a,parentBlock:l,replaceBlocks:n,insertBlocks:r,clientId:i}=e,{isGrid:o,paddingTop:s,paddingRight:c,paddingBottom:u,paddingLeft:d,paddingTopTablet:p,paddingRightTablet:b,paddingBottomTablet:m,paddingLeftTablet:h,paddingTopMobile:f,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y,paddingUnit:w,containerWidth:C,outerContainer:_,innerContainer:E,innerZindex:x,marginLeft:S,marginRight:T,useGlobalMaxWidth:M}=t,B=l.innerBlocks,z=parseInt(C)===parseInt(generateBlocksInfo.globalContainerWidth),I=io(t),O=B.map((e=>(0,g.createBlock)(e.name,e.attributes,e.innerBlocks))),L=(0,g.createBlock)("generateblocks/container",{paddingTop:s,paddingRight:c,paddingBottom:u,paddingLeft:d,paddingTopTablet:p,paddingRightTablet:b,paddingBottomTablet:m,paddingLeftTablet:h,paddingTopMobile:f,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y,paddingUnit:w,useGlobalMaxWidth:"contained"===E?!!z:M,sizing:{maxWidth:"contained"===E&&!z&&C?C+"px":""},marginLeft:"auto",marginRight:"auto",zindex:x,position:x||0===x?"relative":""},O),A=B.map((e=>e.clientId));A.length>0?n(A,L):r(L,0,i),a({useInnerContainer:!1,paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",paddingTopTablet:"",paddingRightTablet:"",paddingBottomTablet:"",paddingLeftTablet:"",paddingTopMobile:"",paddingRightMobile:"",paddingBottomMobile:"",paddingLeftMobile:"",paddingUnit:generateBlocksDefaults.container.paddingUnit,useGlobalMaxWidth:!o&&"contained"===_&&!!z,marginLeft:o||"contained"!==_?S:"auto",marginRight:o||"contained"!==_?T:"auto",sizing:{...t.sizing,height:o?"100%":"",maxWidth:o||"contained"!==_||z||!C?"":C+"px"},...I})}({attributes:n,setAttributes:a,parentBlock:m(u)[0],replaceBlocks:y,insertBlocks:v,clientId:u}),b()}},(0,i.__)("Enable new system with inner Container block","generateblocks"))}function E(){return(0,e.createElement)(r.Button,{variant:w?"secondary":"primary",style:{marginRight:"5px"},onClick:()=>{!function(e){const{attributes:t,setAttributes:a}=e,{isGrid:l,outerContainer:n,marginLeft:r,marginRight:i,containerWidth:o}=t,s=parseInt(o)===parseInt(generateBlocksInfo.globalContainerWidth),c=io(t);a({useInnerContainer:!1,useGlobalMaxWidth:!l&&"contained"===n&&!!s,marginLeft:l||"contained"!==n?r:"auto",marginRight:l||"contained"!==n?i:"auto",sizing:{...t.sizing,height:l?"100%":"",maxWidth:l||"contained"!==n||s||!o?"":o+"px"},...c})}({attributes:n,setAttributes:a}),b()}},(0,i.__)("Enable new system only","generateblocks"))}return k(u)?null:(0,e.createElement)(e.Fragment,null,!!o&&(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:!!o,onChange:()=>p(!0)}),!!d&&(0,e.createElement)(r.Modal,{title:(0,i.__)("New Layout System","generateblocks"),onRequestClose:b},(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")),!!s&&(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"),!!w&&(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"))),!!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 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"},w?(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")),_()):(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")),E())),!w&&_(),!!w&&E(),(0,e.createElement)(r.Button,{variant:"secondary",onClick:b},(0,i.__)("Cancel","generateblocks"))))}function so(t){let{attributes:a,setAttributes:l}=t;const n=Xn(),{id:o,supports:{layout:s,flexChildPanel:c}}=(0,e.useContext)(Me),u={attributes:a,deviceType:n},{display:g,displayTablet:d,displayMobile:b,useInnerContainer:m,zindex:h,innerZindex:f,columnGap:k,columnGapTablet:v,rowGap:y,rowGapTablet:w}=a,C=S("flexDirection",a,n,"row");return(0,e.createElement)(oe,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!1,icon:p("layout"),className:"gblocks-panel-label",id:`${o}Layout`},!!m&&(0,e.createElement)(to,{attributes:a,setAttributes:l,deviceType:n,blockDefaults:generateBlocksDefaults.container}),s.display&&!m&&(0,e.createElement)(Yi,{value:Yn("display",u),onChange:e=>l({[Yn("display",u,!0)]:e})}),Qi({device:n,display:g,displayTablet:d,displayMobile:b})&&!m&&(0,e.createElement)(e.Fragment,null,s.flexDirection&&(0,e.createElement)(Xi,{value:Yn("flexDirection",u),onChange:e=>{e=Yn("flexDirection",u).includes("reverse")?e+"-reverse":e,l({[Yn("flexDirection",u,!0)]:e!==Yn("flexDirection",u)?e:""})},onReverse:e=>{""===e&&(e="row"),e=e.includes("reverse")?e.replace("-reverse",""):e+"-reverse",l({[Yn("flexDirection",u,!0)]:e})},label:(0,i.__)("Direction","generateblocks"),directionValue:C,fallback:S("flexDirection",a,n,"row")}),s.alignItems&&(0,e.createElement)(Ji,{value:Yn("alignItems",u),onChange:e=>l({[Yn("alignItems",u,!0)]:e!==Yn("alignItems",u)?e:""}),label:(0,i.__)("Align Items","generateblocks"),attributeName:"alignItems",directionValue:C,fallback:S("alignItems",a,n,"")}),s.justifyContent&&(0,e.createElement)(Ji,{value:Yn("justifyContent",u),onChange:e=>l({[Yn("justifyContent",u,!0)]:e!==Yn("justifyContent",u)?e:""}),label:(0,i.__)("Justify Content","generateblocks"),attributeName:"justifyContent",directionValue:C,fallback:S("justifyContent",a,n,"")}),s.flexWrap&&(0,e.createElement)(Ji,{value:Yn("flexWrap",u),onChange:e=>l({[Yn("flexWrap",u,!0)]:e!==Yn("flexWrap",u)?e:""}),label:(0,i.__)("Wrap","generateblocks"),attributeName:"flexWrap",directionValue:C,fallback:S("flexWrap",a,n,"")}),(s.columnGap||s.rowGap)&&(0,e.createElement)(Qn,null,s.columnGap&&(0,e.createElement)(lo,{label:(0,i.__)("Column Gap","generateblocks"),id:"gblocks-column-gap",units:["px","%","vw","em","rem"],value:Yn("columnGap",u),desktopValue:k,tabletValue:v,onChange:e=>l({[Yn("columnGap",u,!0)]:e})}),s.rowGap&&(0,e.createElement)(lo,{label:(0,i.__)("Row Gap","generateblocks"),id:"gblocks-row-gap",units:["px","%","vw","em","rem"],value:Yn("rowGap",u),desktopValue:y,tabletValue:w,onChange:e=>l({[Yn("rowGap",u,!0)]:e})}))),!m&&(0,e.createElement)(e.Fragment,null,s.position&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Position","generateblocks"),value:Yn("position",u),options:Zi,onChange:e=>l({[Yn("position",u,!0)]:e})}),s.overflow&&(0,e.createElement)(Qn,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Overflow-x","generateblocks"),value:Yn("overflowX",u),options:Ki,onChange:e=>l({[Yn("overflowX",u,!0)]:e})}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Overflow-y","generateblocks"),value:Yn("overflowY",u),options:Ki,onChange:e=>l({[Yn("overflowY",u,!0)]:e})}))),s.zIndex&&(0,e.createElement)(e.Fragment,null,!!m&&"Desktop"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ao,{label:(0,i.__)("Outer z-index","generateblocks"),value:h,onChange:e=>l({zindex:e})}),(0,e.createElement)(ao,{label:(0,i.__)("Inner z-index","generateblocks"),value:f,onChange:e=>l({innerZindex:e})})),!m&&(0,e.createElement)(ao,{label:(0,i.__)("z-index","generateblocks"),value:Yn("zindex",u),placeholder:S("zindex",a,n),onChange:e=>l({[Yn("zindex",u,!0)]:e,[Yn("position",u,!0)]:Yn("position",u)?Yn("position",u):"relative"})})),!!m&&(0,e.createElement)(oo,{attributes:a,setAttributes:l}),c.enabled&&(0,e.createElement)(ro,{attributes:a,setAttributes:l}))}var co=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));function uo(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Min Height","generateblocks"),id:"gblocks-min-height",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r})}function go(t){const{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Width","generateblocks"),id:"gblocks-width",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r})}function po(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,disabled:o,overrideValue:s,units:c,overrideAction:u}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(lo,{label:(0,i.__)("Max Width","generateblocks"),id:"gblocks-max-width",units:c,overrideValue:s,disabled:o,value:a,desktopValue:l,tabletValue:n,onChange:r,overrideAction:u}))}function bo(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Height","generateblocks"),id:"gblocks-height",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r})}function mo(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,disabled:o,units:s}=t;return(0,e.createElement)(lo,{label:(0,i.__)("Min Width","generateblocks"),id:"gblocks-min-width",units:s,value:a,desktopValue:l,tabletValue:n,onChange:r,disabled:o})}function ho(t){let{value:a,desktopValue:l,tabletValue:n,onChange:r,units:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(lo,{label:(0,i.__)("Max Height","generateblocks"),id:"gblocks-max-height",units:o,value:a,desktopValue:l,tabletValue:n,onChange:r}))}function fo(t){const{id:a,supports:{sizingPanel:l}}=(0,e.useContext)(Me),n=Xn(),{attributes:o,setAttributes:s}=t,{useGlobalMaxWidth:c=!1,useInnerContainer:u=!1,isGrid:g=!1,sizing:d}=o;function b(e){return d&&d[Yn(e,{attributes:o,deviceType:n},!0)]?d[Yn(e,{attributes:o,deviceType:n},!0)]:""}function h(e){return(0,m.applyFilters)("generateblocks.editor.sizingUnits",["px","em","%","rem","vw","vh","ch"],e)}return(0,e.createElement)(oe,{title:(0,i.__)("Sizing","generateblocks"),initialOpen:!1,icon:p("sizing"),className:"gblocks-panel-label",id:`${a}Sizing`},(0,e.createElement)("div",{className:"gblocks-sizing-fields"},l.width&&(0,e.createElement)(go,{value:b("width"),desktopValue:null==d?void 0:d.width,tabletValue:null==d?void 0:d.widthTablet,units:h("width"),onChange:e=>{s({sizing:{...d,[Yn("width",{attributes:o,deviceType:n},!0)]:e}})}}),l.height&&(0,e.createElement)(bo,{value:b("height"),desktopValue:null==d?void 0:d.height,tabletValue:null==d?void 0:d.heightTablet,units:h("height"),onChange:e=>{s({sizing:{...d,[Yn("height",{attributes:o,deviceType:n},!0)]:e}})}}),l.minWidth&&(0,e.createElement)(mo,{value:b("minWidth"),desktopValue:null==d?void 0:d.minWidth,tabletValue:null==d?void 0:d.minWidthTablet,units:h("minWidth"),disabled:g,onChange:e=>{s({sizing:{...d,[Yn("minWidth",{attributes:o,deviceType:n},!0)]:e}})}}),l.minHeight&&(0,e.createElement)(uo,{value:b("minHeight"),desktopValue:null==d?void 0:d.minHeight,tabletValue:null==d?void 0:d.minHeightTablet,units:h("minHeight"),onChange:e=>{s({sizing:{...d,[Yn("minHeight",{attributes:o,deviceType:n},!0)]:e}})}}),l.maxWidth&&(0,e.createElement)(po,{value:b("maxWidth"),desktopValue:null==d?void 0:d.maxWidth,tabletValue:null==d?void 0:d.maxWidthTablet,units:h("maxWidth"),overrideValue:c?generateBlocksInfo.globalContainerWidth:null,disabled:u||g||c&&"Desktop"===n,onChange:e=>{s({sizing:{...d,[Yn("maxWidth",{attributes:o,deviceType:n},!0)]:e}})},overrideAction:()=>!l.useGlobalMaxWidth||u||g||"Desktop"!==n||b("maxWidth")?null:(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Use global max-width","generateblocks")},(0,e.createElement)(r.Button,{icon:co,isPrimary:!!c,onClick:()=>{s({useGlobalMaxWidth:!c})}}))}),l.maxHeight&&(0,e.createElement)(ho,{value:b("maxHeight"),desktopValue:null==d?void 0:d.maxHeight,tabletValue:null==d?void 0:d.maxHeightTablet,units:h("maxHeight"),onChange:e=>{s({sizing:{...d,[Yn("maxHeight",{attributes:o,deviceType:n},!0)]:e}})}})))}function ko(t){let{attributes:a,setAttributes:l,computedStyles:r={},children:i}=t;const o=Xn(),{supports:{responsiveTabs:s,settingsPanel:c,layout:u,typography:g,spacing:d,colors:p,backgroundPanel:b,shapesPanel:m,icon:h,sizingPanel:f}}=(0,e.useContext)(Me);return(0,e.createElement)(n.InspectorControls,null,s&&(0,e.createElement)(De,null),c.enabled&&!!i&&(0,e.createElement)(Ii,null,i),u.enabled&&(0,e.createElement)(so,{attributes:a,setAttributes:l}),d.enabled&&(0,e.createElement)(cr,{attributes:a,setAttributes:l,computedStyles:r}),f.enabled&&(0,e.createElement)(fo,{attributes:a,setAttributes:l}),g.enabled&&!a.removeText&&(0,e.createElement)(er,{attributes:a,setAttributes:l,computedStyles:r}),p.enabled&&(0,e.createElement)(ki,{attributes:a,setAttributes:l}),b.enabled&&(0,e.createElement)(Wi,{attributes:a,setAttributes:l}),m.enabled&&("Desktop"===o||(null==a?void 0:a.shapeDividers.length)>0)&&(0,e.createElement)(qi,{attributes:a,setAttributes:l}),h.enabled&&("Desktop"===o||!!a.icon)&&(0,e.createElement)(zi,{attributes:a,setAttributes:l}))}(0,m.addFilter)("generateblocks.editor.settingsPanel","generateblocks/grid/gridItemSettings",(function(t,a){const{attributes:l,setAttributes:n,name:o}=a,{isGrid:s,sizing:c}=l;if("generateblocks/container"!==o||!s)return t;const u=Xn();return(0,e.createElement)(e.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)(e.Fragment,{key:"gridItemWidth"+a},(0,e.createElement)(r.Button,{isPrimary:t.value===(i="width",c&&c[Yn(i,{attributes:l,deviceType:u},!0)]?c[Yn(i,{attributes:l,deviceType:u},!0)]:""),onClick:()=>n({sizing:{...c,[Yn("width",{attributes:l,deviceType:u},!0)]:t.value}})},t.label));var i})))),t)}));var vo=(0,j.compose)(ne,Se,(t=>a=>{const{attributes:l}=a,n=l.isQueryLoop?Object.assign({},a,{defaultLayout:"100",templateLock:"all",InnerBlocksRenderer:fe}):a;return(0,e.createElement)(t,n)}),te,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{if(l.isDynamic||n({isDynamic:!0}),!ae(l)&&le(l.blockVersion,3)&&n({useLegacyRowGap:!0}),!ae(l)&&le(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.gridContainer,t={};l.useGlobalStyle&&l.globalStyleId||x(l.horizontalGap)||(t.horizontalGap=e.horizontalGap),Object.keys(t).length>0&&n(t)}le(l.blockVersion,3)&&n({blockVersion:3})}),[]),(0,e.createElement)(t,a)}))((a=>{const{clientId:r,attributes:i,setAttributes:o,InnerBlocksRenderer:d=n.InnerBlocks,LayoutSelector:p=u,defaultLayout:h=!1,templateLock:f=!1,context:k}=a,[v,y]=(0,e.useState)(!1),w=Xn(),C=W(r),{insertBlocks:_}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{o({columns:C})}),[C]),(0,e.useEffect)((()=>{const e=h||v;!i.isQueryLoop&&e&&(c(e,i.uniqueId).forEach((e=>{_((0,g.createBlock)("generateblocks/container",e),void 0,a.clientId,!1)})),y(!1))}),[v,h,i.uniqueId,a.clientId,i.isQueryLoop]);let E={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};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/grid",i);const x=(0,n.useBlockProps)(E);return(0,e.createElement)(e.Fragment,null,!i.isQueryLoop&&(i.columns>0||v)&&(0,e.createElement)(b,{uniqueId:i.uniqueId,clientId:a.clientId}),(0,e.createElement)(ko,{attributes:i,setAttributes:o},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:w}),(0,e.createElement)(M,{attributes:i,setAttributes:o,deviceType:w})),(0,e.createElement)(I,{anchor:i.anchor,setAttributes:o}),(0,e.createElement)(G,t({},a,{deviceType:w})),(0,e.createElement)("div",x,i.isQueryLoop||i.columns>0||v?(0,e.createElement)(d,{templateLock:f,allowedBlocks:["generateblocks/container"],renderAppender:!1,clientId:r,uniqueId:i.uniqueId,attributes:i,context:k}):(0,e.createElement)(p,{uniqueId:i.uniqueId,onClick:y,isDisabled:null==i?void 0:i.isBlockPreview})))})),yo={uniqueId:{type:"string",default:""},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},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const wo=[{attributes:Object.assign({},Te(yo,_e,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(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i}=a;let o={id:r||void 0,className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/grid",a),(0,e.createElement)("div",o,(0,e.createElement)(n.InnerBlocks.Content,null))}}];var Co=wo;const _o=Te(yo,_e,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:_o,supports:{className:!1,html:!1},edit:vo,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Co});var Eo=Object.assign({},yo,{uniqueId:{type:"string",default:""},inheritQuery:{type:"boolean",default:!1},query:{type:"object",default:{}}});const xo=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 So=a=>(0,e.createElement)(Zn,t({id:"gblocks-select-query-parameters",label:(0,i.__)("Select query parameter","generateblocks"),placeholder:(0,i.__)("Select query parameter","generateblocks"),isSearchable:!0,pageSize:20},a,{menuPlacement:"top",options:xo(a.options,"group","Other")})),To=a=>(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},(0,e.createElement)(r.Button,t({isPrimary:!0,text:(0,i.__)("Add Parameter","generateblocks")},a))),Mo=(0,m.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")}]),Bo=t=>{let{postType:a,onChange:n,value:r,help:o}=t;const s=(0,l.useSelect)((e=>{const{getPostTypes:t}=e(q.store);return t({per_page:-1})||[]}),[]),c=(0,e.useMemo)((()=>{const e=s.filter((e=>e.viewable&&"attachment"!==e.slug));return(0,m.applyFilters)("generateblocks.editor.query-loop.enabled-post-types",e,s)}),[s]),u=(0,e.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)(Zn,{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})},zo=a=>{const{options:l,value:n}=a;return(0,e.createElement)(Zn,t({},a,{id:"gblocks-simple-select",value:l.filter((e=>e.value===n))}))};function Io(e,t){return e===t}function Oo(e){return"function"==typeof e?function(){return e}:e}function Lo(e,t,a){var l=a&&a.equalityFn||Io,n=function(e){var t=(0,y.useState)(Oo(e)),a=t[0],l=t[1];return[a,(0,y.useCallback)((function(e){return l(Oo(e))}),[])]}(e),r=n[0],i=n[1],o=ue((0,y.useCallback)((function(e){return i(e)}),[i]),t,a),s=(0,y.useRef)(e);return l(s.current,e)||(o(e),s.current=e),[r,o]}function Ao(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[l,n]=(0,e.useState)(t),[r]=Lo(l,a);return[r,n,l]}function Ro(t){const{label:a,onChange:l,value:n,help:r,placeholder:o,filterName:s="generateblocks.editor.authors-select"}=t,[c,u]=Ao("",400),[g,d]=(0,e.useState)(n.length>0),p=!!c.trim()&&!c.trim().match(/\D/g),b=p?[c.replace(/\D/g,"")]:void 0,{records:h,isLoading:f}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{records:a,setRecords:l,query:n,setQuery:r,isLoading:i,setIsLoading:o}=Y({query:t});(0,e.useEffect)((()=>{r(t),o(!0)}),[JSON.stringify(t)]);const{records:s,isResolving:c}=X(n);return(0,e.useEffect)((()=>{o(c)}),[c]),(0,e.useEffect)((()=>{l(s),o(!1)}),[JSON.stringify(s)]),{records:a,isLoading:i}}({per_page:c?100:10,search:c&&!p?c:void 0,include:g?n:b});(0,e.useEffect)((()=>{g&&h.some((e=>n.includes(e.id)))&&d(!1)}),[JSON.stringify(h),JSON.stringify(n)]);const k=(0,e.useMemo)((()=>{const e=h.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[]);return(0,m.applyFilters)(s,e)}),[h]),v=k.filter((e=>n.includes(e.value)));return(0,e.createElement)(Zn,{id:"gblocks-select-author",label:a||(0,i.__)("Select authors","generateblocks"),help:r,placeholder:o||(0,i.__)("Search authors…","generateblocks"),options:k,isMulti:!0,isSearchable:!0,value:v,onChange:l,isLoading:f,onInputChange:(e,t)=>{let{action:a}=t;"input-change"===a&&u(e)}})}function Do(t){const{taxonomy:a,label:l,onChange:n,value:r=[],help:o,placeholder:s,filterName:c="generateblocks.editor.taxonomies-select"}=t,[u,g]=(0,e.useState)(r.length>0),[d,p]=Ao("",500),b=!!d.trim()&&!d.trim().match(/\D/g),h=b?[d.replace(/\D/g,"")]:void 0,{records:f,isLoading:k}=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{records:l,setRecords:n,query:r,setQuery:i,isLoading:o,setIsLoading:s,reset:c}=Y({query:a});(0,e.useEffect)((()=>{c()}),[t]),(0,e.useEffect)((()=>{i(a)}),[JSON.stringify(a)]);const{records:u,isResolving:g}=Q(t,r);return(0,e.useEffect)((()=>{s(g)}),[g]),(0,e.useEffect)((()=>{n(u)}),[JSON.stringify(u)]),{records:l,isLoading:o}}(a,{per_page:d?100:10,search:d&&!b?d:void 0,include:u?r:h});(0,e.useEffect)((()=>{u&&f.some((e=>r.includes(e.id)))&&g(!1)}),[JSON.stringify(f),JSON.stringify(r)]);const v=(0,e.useMemo)((()=>{const e=f.reduce(((e,t)=>(e.push({value:t.id,label:"#"+t.id+": "+t.name}),e)),[]);return(0,m.applyFilters)(c,e)}),[JSON.stringify(f)]),y=v.filter((e=>r.includes(e.value)));return(0,e.createElement)(Zn,{id:"gblocks-select-author",label:l||(0,i.__)("Select terms","generateblocks"),help:o,placeholder:s||(0,i.__)("Search authors…","generateblocks"),options:v,isMulti:!0,isSearchable:!0,value:y,onChange:n,isLoading:k,onInputChange:(e,t)=>{let{action:a}=t;"input-change"===a&&p(e)}})}function No(a){return(0,e.createElement)(Do,t({},a,{taxonomy:"category"}))}function Fo(a){return(0,e.createElement)(Do,t({},a,{taxonomy:"post_tag"}))}function Po(t){let{id:a,onClick:l}=t;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"))&&l(a)},icon:p("trash")}))}function Ho(t){const{label:a,placeholder:l,value:n,onChange:o,help:s}=t,[c,u]=(0,e.useState)(n.taxonomy),[g,d]=(0,e.useState)(n.terms),[p,b]=(0,e.useState)(!1!==n.includeChildren),m=$(),h=(0,e.useMemo)((()=>{const e=m.filter((e=>e.slug===c));return!!e[0]&&e[0].hierarchical}),[JSON.stringify(m),c]);(0,e.useEffect)((()=>{n.taxonomy!==c&&u(n.taxonomy),JSON.stringify(n.terms)!==JSON.stringify(g)&&d(n.terms)}),[n]),(0,e.useEffect)((()=>{if(c){const e=m.filter((e=>e.slug===c)),t=e[0]?e[0].rest_base:void 0,a=!!e[0]&&e[0].hierarchical;o({taxonomy:c,terms:g,rest:t,includeChildren:a?p:void 0})}}),[c,JSON.stringify(g),p]);const f=(0,e.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)(zo,{wrapperStyles:{marginBottom:"8px"},label:a,placeholder:l||(0,i.__)("Select taxonomy","generateblocks"),options:f,value:c,onChange:e=>{u(e.value),d([])}}),c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Do,{taxonomy:c,value:g,filterName:"generateblocks.editor.taxonomy-parameter-control."+t.id,placeholder:l||(0,i.__)("Search terms…","generateblocks"),onChange:e=>{const t=e.reduce(((e,t)=>(e.push(t.value),e)),[]);d(t)},help:0===g.length?(0,i.__)("You must select at least one term. Search by name or ID.","generateblocks"):s}),h&&(0,e.createElement)(r.ToggleControl,{checked:p,label:(0,i.__)("Include child terms","generateblocks"),onChange:b})))}function Vo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.useSelect)((a=>{const{getEntityRecords:l,isResolving:n}=a(q.store),r=Object.assign({per_page:-1},t),i=(0,m.applyFilters)("generateblocks.editor.hooks.usePostTypeRecordsQueryArgs",r);i.hasOwnProperty("include")&&(0,P.isUndefined)(i.include)&&delete i.include;const o=["postType",e,i];return{records:l(...o)||[],isResolving:n("getEntityRecords",o)}}),[e,JSON.stringify(t)])}function Go(a){const{postType:l,label:n,value:r,placeholder:o,filterName:s="generateblocks.editor.post-type-record-select",...c}=a,[u,g]=(0,e.useState)(r.length>0),[d,p]=Ao("",500),b=!!d.trim()&&!d.trim().match(/\D/g),h=b?[d.replace(/\D/g,"")]:void 0,{records:f,isLoading:k}=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{records:l,setRecords:n,query:r,setQuery:i,isLoading:o,setIsLoading:s,reset:c}=Y({query:a});(0,e.useEffect)((()=>{c()}),[t]),(0,e.useEffect)((()=>{i(a)}),[JSON.stringify(a)]);const{records:u,isResolving:g}=Vo(t,r);return(0,e.useEffect)((()=>{s(g)}),[g]),(0,e.useEffect)((()=>{n(u)}),[JSON.stringify(u)]),{records:l,isLoading:o}}(l,{per_page:d?100:10,search:d&&!b?d:void 0,include:u?r:h});(0,e.useEffect)((()=>{u&&f.some((e=>r.includes(e.id)))&&g(!1)}),[JSON.stringify(f),JSON.stringify(r)]);const v=(0,e.useMemo)((()=>{const e=null==f?void 0:f.map((e=>{const t=e.title&&e.title.raw?e.title.raw:e.slug;return{value:e.id,label:`#${e.id}: ${t}`}}));return(0,m.applyFilters)(s,e)}),[f,l]),y=v.filter((e=>r.includes(e.value)));return(0,e.createElement)(Zn,t({id:"gblocks-select-posts",label:n||(0,i.__)("Select post","generateblocks"),placeholder:o||(0,i.__)("Search posts…","generateblocks"),value:y,isLoading:k,isSearchable:!0,isMulti:!0},c,{options:v,onInputChange:(e,t)=>{let{action:a}=t;"input-change"===a&&p(e)}}))}function jo(t){let{id:a,label:l,help:n,value:i,onChange:o}=t;const s=i?new Date(i):new Date;return(0,e.createElement)("div",{style:{marginBottom:"24px"}},(0,e.createElement)(r.BaseControl,{id:a,label:l,help:n},(0,e.createElement)(r.DateTimePicker,{currentDate:s,onChange:o,is12Hour:!0})))}function Uo(a){const[l,n,i]=Ao(null==a?void 0:a.value,800);return(0,e.useEffect)((()=>{a.onChange(l)}),[l]),(0,e.createElement)(r.TextControl,t({},a,{value:i,onChange:n}))}var Wo=function(a){const{options:l,value:n}=a;return(0,e.createElement)(Zn,t({},a,{isMulti:!0,id:"gblocks-simple-multi-select",value:l.filter((e=>n.includes(e.value)))}))};function qo(a){const{id:l,type:n,label:o,description:s,selectOptions:c=[],isSticky:u,value:g,default:d,onChange:p,onClickRemove:b,dependencies:m,placeholder:h}=a,f=(e=>{switch(e){case"text":case"number":return Uo;case"postTypeSelect":return Bo;case"select":return zo;case"multiSelect":return Wo;case"authorsSelect":return Ro;case"categoriesSelect":return No;case"tagsSelect":return Fo;case"taxonomySelect":return Ho;case"postsSelect":return Go;case"dateTimePicker":return jo;case"toggleControl":return r.ToggleControl}})(n);let k=s;"per_page"===l&&("-1"===g||parseInt(g)>parseInt(generateBlocksInfo.queryLoopEditorPostsCap))&&(k+=" "+(0,i.sprintf)("Editor only: A maximum of %s posts can be previewed in the editor.",generateBlocksInfo.queryLoopEditorPostsCap));const v=!d||(0,P.isArray)(d)&&(0,P.isObject)(d)?void 0:d,y=h||v;return(0,e.createElement)("div",{className:"gblocks-parameter-component"},(0,e.createElement)(f,t({id:l,type:n,label:o,help:k,options:c,value:g,placeholder:y,onChange:p},m)),!u&&(0,e.createElement)(Po,{id:l,onClick:b}))}var $o=a=>{let{parameter:l,query:n,setParameter:r,removeParameter:i}=a;const{dependencies:o={}}=l,s=n[l.id],c=Object.keys(o).reduce(((e,t)=>(e[t]=n[o[t]]||o[t],e)),{});function u(a,n,r){return(0,e.createElement)(qo,t({},l,{value:a,onChange:n,onClickRemove:r,dependencies:c}))}return l.isRepeatable?(0,e.createElement)(e.Fragment,null,Array.isArray(s)&&s.map(((e,t)=>u(e,(e=>{s[t]=e,r(l.id,[...s])}),(e=>{s.splice(t,1),0===s.length?i(e):r(l.id,[...s])}))))):u(s,(function(e){r(l.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}})(l.id,e))}),i)},Zo=t=>{let{query:a,setParameter:l,removeParameter:n}=t;const r=(e=>Mo.filter((e=>e.isSticky)).concat(Object.keys(e).map((e=>Mo.find((t=>e===t.id&&!t.isSticky)))).filter(Boolean)))(a);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},r&&r.map((t=>(0,e.createElement)($o,{key:t.id,parameter:t,query:a,setParameter:l,removeParameter:n})))))};const Ko="add_query_parameter",Jo="remove_query_parameter",Yo=function(e,t){switch(t.type){case Ko:return Object.assign({},e,t.payload);case Jo:const{[t.payload]:a,...l}=e;return l;default:throw new Error(`queryReducer does not support action type "${t.type}".`)}};var Qo=t=>{let{attributes:a,setAttributes:l}=t;const{queryState:o,insertParameters:s,setParameter:c,removeParameter:u}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[a,l]=(0,e.useReducer)(Yo,t);return{queryState:a,setParameter:(e,t)=>l({type:Ko,payload:{[e]:t}}),insertParameters:e=>l({type:Ko,payload:e}),removeParameter:e=>l({type:Jo,payload:e})}}(a.query),[g,d]=(0,e.useState)(!1);(0,e.useEffect)((()=>{ie(a.query)&&s({post_type:"post",per_page:10})}),[]),(0,e.useEffect)((()=>{l({query:o})}),[JSON.stringify(o),!(0,P.isEqual)(a.query,o)]);const b=(0,e.useMemo)((()=>Mo.map((e=>(e.isDisabled=!e.isRepeatable&&Object.keys(o).includes(e.id),e)))),[o]);return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(oe,{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:!!a.inheritQuery,onChange:e=>l({inheritQuery:e})}),!a.inheritQuery&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zo,{query:o,setParameter:c,removeParameter:u}),!g&&(0,e.createElement)(To,{onClick:()=>{d(!0)}}),g&&(0,e.createElement)(So,{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)}}))))},Xo=t=>{var a;let{clientId:o}=t;const{insertBlocks:s}=(0,l.useDispatch)("core/block-editor"),{getBlock:c}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{selectBlock:u}=(0,l.useDispatch)("core/block-editor"),d=c(o),b=!!d&&(null==d?void 0:d.innerBlocks[0]),m=!!d&&(null==d||null===(a=d.innerBlocks[0])||void 0===a?void 0:a.innerBlocks[0]),h={useDynamicData:!0,isPagination:!0},f=["generateblocks/container",{marginTop:"20",variantRole:"button-container",display:"flex",isPagination:!0},[["generateblocks/button",Object.assign({},h,generateBlocksStyling.button,{text:(0,i.__)("Previous","generateblocks"),dynamicLinkType:"pagination-prev",dynamicLinkRemoveIfEmpty:!0})],["generateblocks/button",Object.assign({},h,generateBlocksStyling.button,{text:(0,i.__)("1 2 … 10","generateblocks"),dynamicContentType:"pagination-numbers"})],["generateblocks/button",Object.assign({},h,generateBlocksStyling.button,{text:(0,i.__)("Next","generateblocks"),dynamicLinkType:"pagination-next",dynamicLinkRemoveIfEmpty:!0})]]];return(0,e.createElement)(n.BlockControls,null,(!!b||!!m)&&(0,e.createElement)(r.ToolbarGroup,null,!!b&&(0,e.createElement)(r.ToolbarButton,{icon:p("grid"),label:(0,i.__)("Open Grid","generateblocks"),onClick:()=>{u(b.clientId)},showTooltip:!0}),!!m&&(0,e.createElement)(r.ToolbarButton,{icon:p("container"),label:(0,i.__)("Open Container","generateblocks"),onClick:()=>{u(m.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:()=>{s((0,g.createBlocksFromInnerBlocksTemplate)([f]),void 0,o)},showTooltip:!0})))},es=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).filter((e=>t.includes(e))).reduce(((t,a)=>Object.assign({},t,{[a]:e[a]})),{})},ts=[{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}}]]]]}],as=t=>{let{clientId:a,isDisabled:n}=t;if(n)return!1;const{replaceInnerBlocks:o}=(0,l.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"},ts.map((t=>(0,e.createElement)(r.Button,{key:`template-${t.name}`,onClick:()=>{o(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}},t.icon,(0,e.createElement)("p",null,t.title))))))};(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:Eo,supports:{className:!1,customClassName:!1},providesContext:{"generateblocks/query":"query","generateblocks/queryId":"uniqueId","generateblocks/inheritQuery":"inheritQuery"},edit:te((function(t){const{attributes:a,clientId:r,setAttributes:i}=t,o=(0,n.useBlockProps)(),s=(0,l.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)(Xo,{clientId:r}),(0,e.createElement)(Qo,{attributes:es(a,Object.keys(Eo)),setAttributes:i,clientId:r}),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/query":a.query}},(0,e.createElement)(n.InnerBlocks,{renderAppender:!1}))):(0,e.createElement)(as,{clientId:r})))})),save:()=>(0,e.createElement)(n.InnerBlocks.Content,null)});var ls=window.wp.apiFetch,ns=a.n(ls);const rs=(0,e.memo)((function(t){let{onboardingKey:a,children:n}=t;const[o,s]=(0,e.useState)(!1),c=(0,l.useSelect)((e=>{var t;return null===(t=e(q.store))||void 0===t?void 0:t.getCurrentUser()}),[]);return(0,e.useEffect)((function(){var e;"1"===sessionStorage.getItem(`generateblocks_onboarding_${a}`)||null!=c&&null!==(e=c.meta)&&void 0!==e&&e.generateblocks_onboarding[a]||s(!0)}),[null==c?void 0:c.id,JSON.stringify(null==c?void 0: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:()=>{ns()({path:"/generateblocks/v1/onboarding",method:"POST",data:{key:a}}).then((()=>{s(!1),sessionStorage.setItem(`generateblocks_onboarding_${a}`,"1")}))}},(0,i.__)("Got it","generateblocks")))))}));var is=rs;function os(){return(0,e.createElement)(is,{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 ss=["wide","full"],cs=(0,j.createHigherOrderComponent)((t=>a=>{if("generateblocks/container"!==a.name)return(0,e.createElement)(t,a);const{insertBlocks:o}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:s,getBlockRootClientId:c,getBlocksByClientId:u}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{attributes:d,clientId:b,setAttributes:m}=a,{isGrid:h,isQueryLoopItem:f,align:k,variantRole:v,useInnerContainer:y}=d;let w=!1;w="function"==typeof s?s(b,"generateblocks/grid",!0)[0]:c(b);const C=c(b),_=W(b),E=(0,g.getBlockSupport)("","align",!0)&&!h;return(0,e.createElement)(e.Fragment,null,!C&&0===_&&""===v&&!y&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{icon:p("section"),label:(0,i.__)("Insert Inner Container","generateblocks"),onClick:()=>{o((0,g.createBlock)("generateblocks/container",{useGlobalMaxWidth:!0,marginLeft:"auto",marginRight:"auto"}),void 0,b)},showTooltip:!0}),(0,e.createElement)(os,null))),!f&&h&&w&&(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=u(b)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});o(t,void 0,w)},showTooltip:!0}))),E&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(n.BlockAlignmentToolbar,{value:k,onChange:e=>{m({align:e}),"full"===e&&m({outerContainer:"full"})},controls:ss})),(0,e.createElement)(t,a))}),"withBlockControls");(0,m.addFilter)("editor.BlockEdit","generateblocks/container-block-controls",cs);var us=t=>{let{attributes:a,setAttributes:l}=t;const r=Xn(),{display:i,displayTablet:o,displayMobile:s}=a;return(0,e.createElement)(n.BlockControls,null,!Qi({device:r,display:i,displayTablet:o,displayMobile:s})&&(0,e.createElement)(n.AlignmentToolbar,{value:Yn("alignment",{attributes:a,deviceType:r}),onChange:e=>{l({[Yn("alignment",{attributes:a,deviceType:r},!0)]:e})},alignmentControls:Ge.alignments}))};function gs(t){const{onChange:a,tagName:l}=t,n=Xn(),o=(0,m.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 ds=t=>{const{attributes:a,setAttributes:l,filterTagName:r}=t;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t),(0,e.createElement)(gs,{filterTagName:r,tagName:a.tagName,onChange:e=>l({tagName:r(e)})}))},ps=t=>{let{fontFamily:a,googleFont:l,googleFontVariants:n,isBlockPreview:r}=t;if(r)return null;const i=n?`:${n}`:"",o="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+i;return(0,e.createElement)(e.Fragment,null,a&&l&&(0,e.createElement)("link",{rel:"stylesheet",href:o}))},bs=t=>{let{source:a,onChange:l,help:n,dynamicContentType:r}=t;const o=(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,m.applyFilters)("generateblocks.editor.dynamicContent.sourceOptions",t)})(r),s=o.filter((e=>e.value===a));return(0,e.createElement)(Zn,{id:"gblocks-select-source-control",label:(0,i.__)("Data source","generateblocks"),help:n,placeholder:(0,i.__)("Select source","generateblocks"),options:o,value:s,onChange:l})},ms=t=>{let{dynamicSource:a,postType:l,postId:n,setAttributes:r,dynamicContentType:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(bs,{source:a,onChange:e=>{r({dynamicSource:e.value,postId:"",postType:"post"})},dynamicContentType:o}),"post-type"===a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bo,{postType:l,onChange:e=>{r({postType:e.value,postId:""})}}),(0,e.createElement)(Go,{postId:n,postType:l,value:n?[n]:[],id:"gblocks-select-post",label:(0,i.__)("Select source post","generateblocks"),help:(0,i.__)("Search by name or ID.","generateblocks"),onChange:e=>{r({postId:e.value})},isMulti:!1})))},hs=t=>{let{dynamicContentType:a,setAttributes:l,name:n,isCaption:r}=t;const o=((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,m.applyFilters)("generateblocks.editor.dynamicContent.sourceTypes",a,e)})(n,r),s=o.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a));let c=(0,i.__)("Content source","generateblocks");return"generateblocks/container"===n&&(c=(0,i.__)("Background image source","generateblocks")),"generateblocks/image"===n&&(c=(0,i.__)("Image source","generateblocks")),(0,e.createElement)(Zn,{id:"gblocks-select-content-type-control",label:c,placeholder:c,options:o,value:s,onChange:e=>{l({dynamicContentType:e.value,metaFieldName:""}),"comments-number"===e.value?l({noCommentsText:(0,i.__)("No comments","generateblocks"),singleCommentText:(0,i.__)("1 comment","generateblocks"), // translators: Number of comments. -multipleCommentsText:(0,i.__)("% comments","generateblocks")}):l({noCommentsText:"",singleCommentText:"",multipleCommentsText:""}),"author-avatar"===e.value?l({width:"50px",height:"50px"}):l({width:"",height:""})}})};function fs(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,l.useSelect)((l=>{const{getUser:r,isResolving:i,getEntityRecord:o,getEntityRecords:s,hasFinishedResolution:c}=l(q.store),u=(0,m.applyFilters)("generateblocks.editor.dynamicContent.post-request-params",["postType",e,t]);let g=o(...u);const d=!c("getEntityRecord",u)||i("getEntityRecord",u);let p=!1;if(a.includes("author")&&!d&&g){const e=(0,m.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(a.includes("comments")&&!d&&g){const e=(0,m.applyFilters)("generateblocks.editor.dynamicContent.comments-request-params",["root","comment",{post:t}]),a=s(...e);b=!c("getEntityRecords",e)||i("getEntityRecords",e),!b&&a&&(g=Object.assign({},g,{comments:a}))}let h=!1;if(a.includes("terms")&&!d&&g){const e=(0,m.applyFilters)("generateblocks.editor.dynamicContent.terms-request-params",["taxonomy",n.taxonomy,{post:t}]),a=s(...e);h=!c("getEntityRecords",e)||i("getEntityRecords",e),!h&&a&&(g=Object.assign({},g,{terms:a}))}return{record:(0,m.applyFilters)("generateblocks.editor.dynamicContent.postRecord",g),isLoading:d||p||b||h}}),[e,t,a.join(),JSON.stringify(n)])}function ks(t){const{isActive:a=!1,metaFieldKey:l="metaFieldName",postType:n,postId:r,metaFieldName:o,setAttributes:s}=t,{record:c,isLoading:u}=fs(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,m.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)(Zn,{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]:(null==e?void 0:e.value)||void 0})}}),p))}function vs(t){const{isActive:a=!1,metaFieldKey:l="metaFieldName",postType:n,postId:r,metaFieldName:o,setAttributes:s}=t,{record:c,isLoading:u}=fs(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,m.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)(Zn,{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]:(null==e?void 0:e.value)||void 0})}}),p))}ks.displayName="PostMetaControl";const ys=(0,m.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 ws=t=>{let{linkType:a,linkMetaFieldName:l,linkMetaFieldType:n,dynamicContentType:o,setAttributes:s,isPagination:c,isActive:u,name:g,dynamicLinkRemoveIfEmpty:d,postType:p,postId:b,attributes:h}=t;const f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,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,m.applyFilters)("generateblocks.editor.dynamicContent.linkTypes",l,e)}(o,c,g);if(0===f.length)return null;const k=f.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a)),v="post-meta"===a||"author-meta"===a;return(0,e.createElement)(e.Fragment,null,u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zn,{id:"gblocks-select-link-type-control",label:(0,i.__)("Link source","generateblocks"),placeholder:(0,i.__)("Link source","generateblocks"),options:f,value:k,onChange:e=>s({dynamicLinkType:e.value})}),(0,e.createElement)(ks,{isActive:v&&"post-meta"===a,postType:p,postId:b,metaFieldKey:"linkMetaFieldName",metaFieldName:l,setAttributes:s,attributes:h}),(0,e.createElement)(vs,{isActive:v&&"author-meta"===a,postType:p,postId:b,metaFieldKey:"linkMetaFieldName",metaFieldName:l,setAttributes:s,attributes:h}),("author-email"===a||v&&!!l)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Link type","generateblocks"),value:n,onChange:e=>s({linkMetaFieldType:e}),options:ys}),!!a&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove block if link is empty","generateblocks"),checked:!!d,onChange:e=>s({dynamicLinkRemoveIfEmpty:e})})))};function Cs(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 _s(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 Es(t){const{isActive:a,postType:l,termTaxonomy:n,termSeparator:o,setAttributes:s,name:c}=t,u=$(),g=(0,e.useMemo)((()=>u.filter((e=>e.types.includes(l))).map((e=>({value:e.slug,label:e.name})))),[u,l]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(zo,{label:(0,i.__)("Taxonomy","generateblocks"),options:g,value:n,onChange:e=>{s({termTaxonomy:e.value})}}),"generateblocks/button"!==c&&(0,e.createElement)(r.TextControl,{label:(0,i.__)("Term separator","generateblocks"),value:o,onChange:e=>s({termSeparator:e})})))}function xs(a){const{isActive:l,useDefaultMoreLink:n,customMoreLinkText:o,setAttributes:s}=a;return(0,e.createElement)(e.Fragment,null,l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(T,t({},a,{label:(0,i.__)("Excerpt length","generateblocks"),attributeName:"excerptLength",min:"0"})),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use default more link","generateblocks"),checked:!!n,onChange:e=>s({useDefaultMoreLink:e})}),!n&&(0,e.createElement)(jo,{label:(0,i.__)("Custom more link text","generateblocks"),value:o,onChange:e=>s({customMoreLinkText:e})})))}var Ss=t=>{let{context:a,attributes:l,setAttributes:o,name:s}=t;const{postType:c,postId:u,useDynamicData:g,dynamicSource:d,dynamicContentType:b,dateType:m,dateReplacePublished:h,metaFieldName:f,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,termTaxonomy:w,termSeparator:C,dynamicLinkType:_,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,isQueryLoopItem:T,isCaption:M,excerptLength:B,useDefaultMoreLink:z,customMoreLinkText:I,dynamicLinkRemoveIfEmpty:O}=l,L="current-post"===d?a.postType:c,A="current-post"===d?a.postId:u,R=void 0!==a["generateblocks/queryId"];return(0,e.useEffect)((()=>{"generateblocks/container"===s&&g&&""!==b&&(T||R)&&o({bgImageInline:!0})}),[b,T]),(0,e.useEffect)((()=>{"generateblocks/headline"===s&&M&&g&&(a["generateblocks/mediaId"]?o({postId:a["generateblocks/mediaId"],postType:"attachment",dynamicSource:"current-post",dynamicContentType:b||"caption"}):o({postId:"",postType:"post",dynamicSource:"current-post",dynamicContentType:b||"caption"}))}),[M,a["generateblocks/mediaId"],g,b]),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(oe,{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)(ms,{dynamicSource:d,postType:c,postId:u,setAttributes:o,dynamicContentType:b}),(0,e.createElement)(hs,{dynamicContentType:b,setAttributes:o,name:s,isCaption:M}),(0,e.createElement)(Cs,{isActive:"post-date"===b,dateType:m,dateReplacePublished:h,setAttributes:o}),(0,e.createElement)(ks,{isActive:"post-meta"===b,postType:L,postId:A,metaFieldName:f,setAttributes:o,attributes:l}),(0,e.createElement)(vs,{isActive:"author-meta"===b,postType:L,postId:A,metaFieldName:f,setAttributes:o,attributes:l}),(0,e.createElement)(_s,{isActive:"comments-number"===b,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,setAttributes:o}),(0,e.createElement)(Es,{isActive:"terms"===b,postType:L,termTaxonomy:w,termSeparator:C,setAttributes:o,name:s}),(0,e.createElement)(xs,{isActive:"post-excerpt"===b,excerptLength:B,useDefaultMoreLink:z,customMoreLinkText:I,setAttributes:o,attributes:l}),(0,e.createElement)(ws,{isActive:"generateblocks/container"!==s||"generateblocks/container"===s&&void 0!==l.url,postType:L,postId:A,attributes:l,linkType:_,dynamicLinkRemoveIfEmpty:O,dynamicContentType:b,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,setAttributes:o,name:s}))))};function Ts(t){let{name:a,clientId:r,align:i,children:o}=t;const{getBlockRootClientId:c}=(0,l.useSelect)((e=>e("core/block-editor")),[]),u=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]),g=a.toString().replace("/","-"),d={className:s()({"wp-block":!0,"gb-is-root-block":!0,[`gb-root-block-${g}`]:!0,[`align${i}`]:u}),"data-align":i&&!u?i:null,"data-block":r};return c(r)?o:(0,e.createElement)("div",d,o)}var Ms=t=>{let{icon:a,hasIcon:l=!0,direction:n="left",children:r,hideChildren:i=!1,showWrapper:o=!1,wrapperClassname:s=""}=t;const c=a?(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:a}}):void 0;return(0,e.createElement)(e.Fragment,null,l&&"left"===n&&c,i||(o?(0,e.createElement)("span",{className:s},r):r),l&&"right"===n&&c)};function Bs(t){let{tagName:a,htmlAttrs:l,children:n}=t;return(0,e.createElement)(a,l,n)}function zs(t){const{name:a,clientId:r,attributes:o,setAttributes:c,onSplit:u,onReplace:g,InnerContent:d=n.RichText,headlineRef:p}=t,{uniqueId:b,element:h,content:f,icon:k,hasIcon:v,anchor:y,removeText:w,ariaLabel:C,dynamicContentType:_,dynamicLinkType:E}=o;let x={className:s()({"gb-headline":!0,[`gb-headline-${b}`]:!0,"gb-headline-text":!v}),id:y||null,ref:p};x=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",x,"generateblocks/headline",o);const S=(0,n.useBlockProps)(x),T=(0,m.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,t)?[]:null,M="terms"!==_&&E?"a":"span",B=(0,l.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]),z=(0,e.useMemo)((()=>B&&E?B.filter((e=>"core/link"!==e.name)).map((e=>e.name)):T),[B,T,E]);return(0,m.doAction)("generateblocks.editor.renderBlock",{...t,ref:p}),(0,e.createElement)(Ts,{name:a,clientId:r},(0,e.createElement)(Bs,{tagName:h,htmlAttrs:S},(0,e.createElement)(Ms,{hasIcon:v,icon:k,hideChildren:w,showWrapper:!w&&v,wrapperClassname:"gb-headline-text",ariaLabel:w&&C?C:void 0},(0,e.createElement)(d,{name:a,tagName:M,value:f,onChange:e=>c({content:e}),onSplit:u(o,r),onReplace:g,placeholder:(0,i.__)("Headline","generateblocks"),allowedFormats:z}))))}function Is(t){const{attributes:a,setAttributes:l,isSelected:r,InnerContent:o=n.RichText,context:c,name:u,buttonRef:g,clientId:d}=t,{uniqueId:p,anchor:b,text:h,url: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-${p}`]:!0,"gb-button-text":!w}),rel:S&&S.length>0&&"link"===x?S.join(" "):null,"aria-label":E||null,id:b||null,ref:g};T=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",T,"generateblocks/button",a);const M=(0,n.useBlockProps)(T),B=(0,m.applyFilters)("generateblocks.editor.buttonDisableFormatting",!1,t)?[]:["core/bold","core/italic","core/strikethrough"];let z=f?"a":"span";return"button"===x&&(z="span"),(0,m.doAction)("generateblocks.editor.renderBlock",{...t,ref:g}),(0,e.createElement)(Ts,{name:u,clientId:d},(0,e.createElement)(Bs,{tagName:z,htmlAttrs:M},(0,e.createElement)(Ms,{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:h,onChange:e=>l({text:e}),allowedFormats:B,isSelected:r,attributes:a,context:c}))))}var Os=(0,m.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}}),Ls=window.wp.date;const As={"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}=null==e?void 0: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,Ls.dateI18n)(t.dateFormat||"F j, Y",l,"")},"post-meta":function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Ns(t.metaFieldName,e.meta,a,t)},"author-meta":function(e,t){return e.author?Ns(t.metaFieldName,e.author.meta,!1,t):Ds()},"author-email":function(e){return e.author?e.author.email||(0,i.__)("No author email.","generateblocks"):Ds()},"author-name":function(e){return e.author?e.author.name||(0,i.__)("No author name.","generateblocks"):Ds()},"author-nickname":function(e){return e.author?e.author.nickname||(0,i.__)("No author nickname.","generateblocks"):Ds()},"author-first-name":function(e){return e.author?e.author.first_name||(0,i.__)("No author first name.","generateblocks"):Ds()},"author-last-name":function(e){return e.author?e.author.last_name||(0,i.__)("No author last name.","generateblocks"):Ds()},"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 null==e?void 0: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){var t,a,l;return{source_url:null!=e&&null!==(t=e.author)&&void 0!==t&&t.avatar_urls&&null!=e&&null!==(a=e.author)&&void 0!==a&&a.avatar_urls[96]?null==e||null===(l=e.author)||void 0===l?void 0:l.avatar_urls[96]:""}},caption:function(e){var t;return(null==e||null===(t=e.caption)||void 0===t?void 0:t.raw)||(0,i.__)("Image caption","generateblocks")},"alt-text":function(e){return(null==e?void 0:e.alt_text)||(0,i.__)("Image alt text","generateblocks")},"image-description":function(e){var t;return(null==e||null===(t=e.description)||void 0===t?void 0:t.raw)||(0,i.__)("Image description","generateblocks")}};function Rs(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)}const Ns=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&e){const n=(0,m.applyFilters)("generateblocks.editor.dynamicContent.postMetaField",t[e],l);if(H().isEmpty(n)&&!H().isNumber(n))return e;const r=a?void 0:(0,i.__)("Meta field value not supported.","generateblocks");return H().isString(n)||H().isNumber(n)?H().toString(n):r}return a?void 0:(0,i.__)("Meta value","generateblocks")};function Ds(){return(0,i.__)("Author not found.","generateblocks")}var Fs=t=>{let{isGrid:a,uniqueId:l,children:n}=t;return a?(0,e.createElement)("div",{className:`gb-grid-column gb-grid-column-${l}`},n):n},Ps=t=>{let{attributes:a,allShapes:l}=t;const{shapeDividers:n}=a;return(0,e.createElement)(e.Fragment,null,!!a.shapeDividers.length&&(0,e.createElement)("div",{className:"gb-shapes"},a.shapeDividers.map(((t,a)=>{const r=a+1;return(0,e.createElement)(e.Fragment,{key:a},void 0!==l[n[a].shape]&&(0,e.createElement)("div",{className:s()({"gb-shape":!0,[`gb-shape-${r}`]:!0}),dangerouslySetInnerHTML:{__html:_i(l[n[a].shape].icon)}}))}))))};class Hs extends e.Component{render(){const t=(0,m.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,m.applyFilters)("generateblocks.editor.desktopCSS",n,this.props,"container"),(0,e.createElement)("style",null,O(n))}}function Vs(e,t,a){return void 0===e[t]&&(e[t]=[]),e[t].push(a),e}function Gs(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const{sizing:n}=a,r={width:eo("width"+l,n),height:eo("height"+l,n),"min-width":eo("minWidth"+l,n),"min-height":eo("minHeight"+l,n),"max-width":eo("maxWidth"+l,n),"max-height":eo("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"]),r["max-width"]||(r["max-width"]="unset"),Vs(e,t,r)}function Us(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";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]),Vs(e,t,n)}function js(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!a.isGrid)return Vs(e,t,{"flex-grow":a["flexGrow"+l],"flex-shrink":a["flexShrink"+l],"flex-basis":a["flexBasis"+l],order:a["order"+l]})}function Ws(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const{marginUnit:n}=a,r=""===l?"0":"",i={"margin-top":L(a["marginTop"+l],"auto"!==a["marginTop"+l]?n:""),"margin-right":L(a["marginRight"+l],"auto"!==a["marginRight"+l]?n:"")||r,"margin-bottom":L(a["marginBottom"+l],"auto"!==a["marginBottom"+l]?n:""),"margin-left":L(a["marginLeft"+l],"auto"!==a["marginLeft"+l]?n:"")||r};return Vs(e,t,i)}class qs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,flexGrowTablet:n,flexShrinkTablet:r,flexBasisTablet:i,paddingTopTablet:o,paddingRightTablet:s,paddingBottomTablet:c,paddingLeftTablet:u,paddingUnit:g,borderSizeTopTablet:d,borderSizeRightTablet:p,borderSizeBottomTablet:b,borderSizeLeftTablet:h,borderRadiusTopRightTablet:f,borderRadiusBottomRightTablet:k,borderRadiusBottomLeftTablet:v,borderRadiusTopLeftTablet:y,borderRadiusUnit:w,verticalAlignmentTablet:C,alignmentTablet:_,fontSizeTablet:E,fontSizeUnit:x,orderTablet:S,shapeDividers:T,bgImage:M,bgOptions:B,gridId:z,useInnerContainer:I,sizing:A}=t;let R=[];return R[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"text-align":_,"font-size":L(E,x)}],Ws(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),Gs(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),Us(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),js(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),I||R[".editor-styles-wrapper .gb-container-"+a].push({"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g)}),(d||p||b||h)&&R[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),I&&(R[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),width:!(!eo("minHeightTablet",A)||l)&&"100%"}],eo("minHeightTablet",A)&&!l&&R[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==C?C:null}),l&&"inherit"!==C&&R[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":C})),l&&(R[[".gb-post-template-"+z+" > .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:eo("widthTablet",A),"flex-grow":n,"flex-shrink":r,"flex-basis":i,order:S}]),M&&"pseudo-element"===B.selector&&(R[".gb-container-"+a+":before"]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w)}]),T.length&&T.forEach(((e,t)=>{R[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:L(T[t].heightTablet,"px"),width:L(T[t].widthTablet,"%")}]})),R=(0,m.applyFilters)("generateblocks.editor.tabletCSS",R,this.props,"container"),(0,e.createElement)("style",null,O(R))}}class $s extends e.Component{render(){const t=(0,m.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,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",n,this.props,"container"),(0,e.createElement)("style",null,O(n))}}class Zs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,flexGrowMobile:n,flexShrinkMobile:r,flexBasisMobile:i,paddingTopMobile:o,paddingRightMobile:s,paddingBottomMobile:c,paddingLeftMobile:u,paddingUnit:g,borderSizeTopMobile:d,borderSizeRightMobile:p,borderSizeBottomMobile:b,borderSizeLeftMobile:h,borderRadiusTopRightMobile:f,borderRadiusBottomRightMobile:k,borderRadiusBottomLeftMobile:v,borderRadiusTopLeftMobile:y,borderRadiusUnit:w,verticalAlignmentMobile:C,removeVerticalGapMobile:_,alignmentMobile:E,fontSizeMobile:x,fontSizeUnit:S,orderMobile:T,shapeDividers:M,bgImage:B,bgOptions:z,gridId:I,useInnerContainer:A,sizing:R}=t;let N=[];return N[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"text-align":E,"font-size":L(x,S)}],Ws(N,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),Gs(N,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),Us(N,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),js(N,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),A||N[".editor-styles-wrapper .gb-container-"+a].push({"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g)}),(d||p||b||h)&&N[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),A&&(N[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),width:!(!eo("minHeightMobile",R)||l)&&"100%"}],"inherit"!==C&&eo("minHeightMobile",R)&&!l&&N[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":C}),l&&"inherit"!==C&&N[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":C})),l&&(N[[".gb-post-template-"+I+" > .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:eo("widthMobile",R),"flex-grow":n,"flex-shrink":r,"flex-basis":i,order:T}]),_&&(N[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),B&&"pseudo-element"===z.selector&&(N[".gb-container-"+a+":before"]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w)}]),M.length&&M.forEach(((e,t)=>{N[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:L(M[t].heightMobile,"px"),width:L(M[t].widthMobile,"%")}]})),B&&"fixed"===z.attachment&&("element"===z.selector&&N[".editor-styles-wrapper .gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===z.selector&&(N[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),N=(0,m.applyFilters)("generateblocks.editor.mobileCSS",N,this.props,"container"),(0,e.createElement)("style",null,O(N))}}function Ks(e,t,a,l,n){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+n+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+n+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+n+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+n+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var Js=e=>{const{attributes:t,featuredImage:a}=e,{dynamicImage:n,useDynamicData:r,dynamicContentType:i,bgImageSize:o}=t;return(0,l.useSelect)((e=>{const{getMedia:t}=e(q.store);return"featured-image"===i&&a||!isNaN(parseInt(n))?t("featured-image"===i&&a?a:parseInt(n),{context:"view"}):n}),[r,n,o,a,i])};function Ys(e,t){var a,l,n;return"object"==typeof e?(null==e||null===(a=e.media_details)||void 0===a||null===(l=a.sizes)||void 0===l||null===(n=l[t])||void 0===n?void 0:n.source_url)||(null==e?void 0:e.source_url):e}function Qs(e){var t;const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",e.attributes,e),{bgImage:l,useDynamicData:n,dynamicContentType:r,bgImageSize:i}=a;let o=null==l||null===(t=l.image)||void 0===t?void 0:t.url;const s=Js(e);return n&&""!==r&&(o=Ys(s,i)),(0,m.applyFilters)("generateblocks.editor.bgImageURL",o,e)}function Xs(e,t){const a=(0,m.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:h,useDynamicData:f,dynamicContentType:k}=a;let v="";if(o){let e="",t="";const a=mi(c,u),l=mi(g,d);c&&""!==p&&(e=" "+p+"%"),g&&""!==b&&(t=" "+b+"%"),v="linear-gradient("+h+"deg, "+a+e+", "+l+t+")"}if("gradient"===e)return v;let y=!1;const w=mi(l,n);if(r||f&&""!==k){const e=Qs(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 ec(t){const a=(0,m.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,paddingTop:p,paddingRight:b,paddingBottom:h,paddingLeft:f,paddingUnit:k,borderSizeTop:v,borderSizeRight:y,borderSizeBottom:w,borderSizeLeft:C,borderRadiusTopRight:_,borderRadiusBottomRight:E,borderRadiusBottomLeft:x,borderRadiusTopLeft:S,borderRadiusUnit:T,borderColor:M,borderColorOpacity:B,backgroundColor:z,backgroundColorOpacity:I,gradient:A,gradientSelector:R,textColor:N,linkColor:D,linkColorHover:F,bgImage:P,bgOptions:H,verticalAlignment:V,zindex:G,innerZindex:U,alignment:j,fontFamily:W,fontFamilyFallback:q,fontWeight:$,fontSize:Z,fontSizeUnit:K,textTransform:J,shapeDividers:Y,gridId:Q,useDynamicData:X,dynamicContentType:ee,bgImageInline:te,useInnerContainer:ae,sizing:le,order:ne,display:re,displayTablet:ie,displayMobile:oe}=a;let se=d;se||(se=generateBlocksDefaults.container.containerWidth);let ce="";W&&q&&(ce=", "+q);const ue=!!P||X&&""!==ee,ge=Xs("image",t),de=Xs("gradient",t);let pe=[];return pe[".editor-styles-wrapper .gb-container-"+r]=[{"background-color":mi(z,I),color:N,"border-radius":Ks(S,_,E,x,T),"text-align":j,"font-family":W+ce,"font-weight":$,"text-transform":J,"font-size":L(Z,K),"border-color":mi(M,B)}],Ws(pe,".editor-styles-wrapper .gb-container-"+r,a),Gs(pe,".editor-styles-wrapper .gb-container-"+r,a),Us(pe,".editor-styles-wrapper .gb-container-"+r,a),js(pe,".editor-styles-wrapper .gb-container-"+r,a),ae||pe[".editor-styles-wrapper .gb-container-"+r].push({padding:Ks(p,b,h,f,k)}),ue&&"element"===H.selector&&ge?pe[".editor-styles-wrapper .gb-container-"+r].push({"background-image":te?null:ge,"background-size":H.size,"background-position":H.position,"background-repeat":H.repeat,"background-attachment":H.attachment}):A&&"element"===R&&pe[".editor-styles-wrapper .gb-container-"+r].push({"background-image":de}),ae&&((ue&&"pseudo-element"===H.selector||G||A&&"pseudo-element"===R)&&pe[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),(ue&&"pseudo-element"===H.selector||A&&"pseudo-element"===R)&&(pe[".editor-styles-wrapper .gb-container-"+r].push({overflow:"hidden"}),pe[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}])),(ue&&"pseudo-element"===H.selector||A&&"pseudo-element"===R)&&(pe[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}]),pe[".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:N}],(v||y||w||C)&&pe[".editor-styles-wrapper .gb-container-"+r].push({"border-width":Ks(v,y,w,C,"px"),"border-style":"solid"}),ue&&"pseudo-element"===H.selector&&(pe[".gb-container-"+r+":before"]=[{content:'""',"background-image":ge,"background-repeat":H.repeat,"background-position":H.position,"background-size":H.size,"background-attachment":H.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":Ks(S,_,E,x,T),"pointer-events":"none"}],void 0!==H.opacity&&1!==H.opacity&&pe[".gb-container-"+r+":before"].push({opacity:H.opacity})),A&&"pseudo-element"===R&&(pe[".gb-container-"+r+":after"]=[{content:'""',"background-image":de,"z-index":"0 !important",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","pointer-events":"none"}]),pe[".editor-styles-wrapper .gb-container-"+r+" a, .editor-styles-wrapper .gb-container-"+r+" a:visited"]=[{color:D}],pe[".editor-styles-wrapper .gb-container-"+r+" a:hover"]=[{color:F}],ae&&(eo("minHeight",le)&&!i&&pe[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"row","align-items":V}),pe[".gb-container-"+r+" > .gb-inside-container"]=[{padding:Ks(p,b,h,f,k),width:!(!eo("minHeight",le)||i)&&"100%"}],(U||0===U)&&pe[".gb-container-"+r+" > .gb-inside-container"].push({"z-index":U,position:"relative"}),"contained"!==g||i||pe[".gb-container-"+r+" > .gb-inside-container"].push({"max-width":L(se,"px"),"margin-left":"auto","margin-right":"auto"}),pe["#block-"+l]=[{"max-width":"contained"===u&&!i&&L(se,"px"),"margin-left":"contained"===u&&!i&&"auto","margin-right":"contained"===u&&!i&&"auto"}]),i&&(pe[[".gb-post-template-"+Q+" > .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:eo("width",le),"flex-grow":o,"flex-shrink":s,"flex-basis":c,order:ne}],ae&&pe[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V})),Y.length&&(ae&&pe[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),pe[".gb-container-"+r+" .block-list-appender"]=[{position:"relative","z-index":100}],Y.forEach(((e,t)=>{const a=[],l=t+1;"top"===Y[t].location&&a.push("scaleY(-1)"),Y[t].flipHorizontally&&(a.push("scaleX(-1)"),pe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l]=[{color:mi(Y[t].color,Y[t].colorOpacity),"z-index":Y[t].zindex}],"top"!==Y[t].location&&"bottom"!==Y[t].location||pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===Y[t].location&&pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===Y[t].location&&pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});let n=Y[t].width+"%";100===Y[t].width&&(n="calc("+n+" + 1.3px)"),pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:L(Y[t].height,"px"),width:n}],"top"!==Y[t].location&&"bottom"!==Y[t].location||pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),Qi({device:n,display:re,displayTablet:ie,displayMobile:oe})&&(pe[".gb-container-"+r+".block-editor-block-list__block > .block-list-appender"]=[{"margin-top":0}]),pe=(0,m.applyFilters)("generateblocks.editor.mainCSS",pe,t,"container"),(0,e.createElement)("style",null,O(pe))}var tc=(0,e.memo)((function(a){const n=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=null==a?void 0:a.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ec,t({device:n},a)),n&&(0,e.createElement)(e.Fragment,null,"Desktop"===n&&(0,e.createElement)(Hs,a),("Tablet"===n||"Mobile"===n)&&(0,e.createElement)(qs,a),"Tablet"===n&&(0,e.createElement)($s,a),"Mobile"===n&&(0,e.createElement)(Zs,a)))}),V),ac=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),lc=t=>{let{clientId:a,isSelected:o,attributes:s}=t;const{isBlockPreview:c}=s,u=0<W(a),{selectBlock:g}=(0,l.useDispatch)("core/block-editor");let d=!1;return!c&&(o&&(d=(0,e.createElement)((function(){return(0,e.createElement)(n.Inserter,{position:"bottom right",rootClientId:a,__experimentalIsQuick:!0,renderToggle:t=>{let{onToggle:a,disabled:l,isOpen:n,blockTitle:o,hasSingleBlockType:s}=t;const c=s?(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"),o):(0,i._x)("Add block","Generic label for block inserter button","generateblocks");return(0,e.createElement)(r.Tooltip,{text:c},(0,e.createElement)(r.Button,{className:"block-editor-button-block-appender",onClick:a,"aria-haspopup":s?void 0:"true","aria-expanded":s?void 0:n,disabled:l,label:c},(0,e.createElement)(r.Icon,{icon:ac})))},isAppender:!0})}),null)),u||o||(d=(0,e.createElement)(r.Button,{className:"gblocks-container-selector",onClick:()=>g(a),"aria-label":(0,i.__)("Select Container","generateblocks")},(0,e.createElement)("span",{className:"gblocks-container-selector__icon"},p("container")))),(0,m.applyFilters)("generateblocks.editor.containerAppender",d,{clientId:a,isSelected:o,attributes:s}))};function nc(a){const{attributes:r,clientId:i,name:o,filterTagName:c,allShapes:u,deviceType:g,containerRef:d}=a,{uniqueId:p,className:b,anchor:h,tagName:f,backgroundColor:k,isGrid:v,bgOptions:y,bgImageInline:w,bgImage:C,align:_,isBlockPreview:E=!1,useInnerContainer:x}=r,S=c((0,m.applyFilters)("generateblocks.frontend.containerTagName",f,r)),T=0<W(i),M=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]);let B=!!k||!!C||r.borderSizeTop||r.borderSizeRight||r.borderSizeBottom||r.borderSizeLeft;B=(0,m.applyFilters)("generateblocks.editor.containerHasStyling",B,a);let z={className:s()({"gb-container":!0,[`gb-container-${p}`]:!0,[`${b}`]:void 0!==b,"gb-container-empty":!T&&!E,"gb-container-visual-guides":!(T||B||a.isSelected||E),[`align${_}`]:M}),id:h||null,"data-align":_&&!M?_:null,ref:d};const I=Qs(a);if(w&&I){let e="background-image";"element"!==y.selector&&(e="--"+e),z.style={[e]:"url("+I+")"}}z=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",z,"generateblocks/container",r);const O=(0,n.useBlockProps)(z),L=(0,n.useInnerBlocksProps)(x?{className:"gb-inside-container"}:O,{templateLock:(0,m.applyFilters)("generateblocks.editor.containerTemplateLock",!1,a),renderAppender:()=>(0,e.createElement)(lc,{clientId:i,isSelected:a.isSelected,attributes:r})});(0,m.doAction)("generateblocks.editor.renderBlock",{...a,ref:d});const A=x?O:L;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tc,t({},a,{deviceType:g})),(0,e.createElement)(Ts,{name:o,clientId:i,align:_},(0,e.createElement)(Fs,{isGrid:v,uniqueId:p},(0,e.createElement)(S,A,(0,e.createElement)(e.Fragment,null,x?(0,e.createElement)("div",L,L.children):L.children,(0,e.createElement)(Ps,{attributes:r,allShapes:u}))))))}function rc(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)(h.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,e.createElement)(h.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));let m=generateBlocksInfo.imagePlaceholders.standard;c&&c<500&&c===u&&(m=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:m,alt:"",width:c||1e3,height:u||650}),b)),(0,e.createElement)("div",{className:"gblocks-image__placeholder",style:{width:!s&&c?c:null}},f)}function ic(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 oc(a){const{src:l,alt:i,title:o,anchorAttributes:c,imageRef:u,setLoadedNaturalSize:g,naturalWidth:d,naturalHeight:p,attributes:b,temporaryURL:h}=a,{uniqueId:f,anchor:k,mediaId:v,dynamicImage:y,useDynamicData:w,className:C,align:_}=b,E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${f}`]:!0,[`${C}`]:void 0!==C,[`align${_}`]:""!==_}),id:k||null,width:d,height:p,src:h||l,alt:i,title:o},"generateblocks/image",b);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ic,c,(0,e.createElement)("img",t({},E,{ref:u,onLoad:e=>{var t,a;g({loadedNaturalWidth:null===(t=e.target)||void 0===t?void 0:t.naturalWidth,loadedNaturalHeight:null===(a=e.target)||void 0===a?void 0:a.naturalHeight})}})),h&&(0,e.createElement)(r.Spinner,null)),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/dynamicImage":!!w&&parseInt(y),"generateblocks/mediaId":!w&&v}},(0,e.createElement)(n.InnerBlocks,{allowedBlocks:["generateblocks/headline"],renderAppender:!1})))}const sc={className:"block-editor-block-settings-menu__popover",position:"bottom right"};function cc(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];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 uc(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,h="generateblocks/button"===o?"target":"openInNewWindow",f=a[h],k="generateblocks/button"===o?p:s;return(0,e.createElement)(e.Fragment,null,d?(0,e.createElement)(cc,{marginBottom:!!g}):(0,e.createElement)(n.URLInput,{className:"gblocks-link-url",value:k,onChange:e=>l({href:e})}),(0,m.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({[h]: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 gc(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:sc,contentClassName:"gblocks-link-control-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.ToolbarButton,{icon:tr,label:c,onClick:l,"aria-expanded":a,isPressed:!!s})},renderContent:()=>(0,e.createElement)(uc,t)})}var dc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),pc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),bc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),mc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function hc(t){const{attributes:a,setAttributes:o,deviceType:s}=t,{align:c}=a,{wideControlsEnabled:u=!1}=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return{wideControlsEnabled:t().alignWide}}),[]),g={left:Fe,center:Pe,right:He,floatLeft:dc,floatRight:pc,wide:bc,full:mc},d=c?g[c]:g[Yn("alignment",t)]||Fe,p=e=>o({[Yn("alignment",t,!0)]:e!==Yn("alignment",t)?e:"",align:""}),b=[{icon:Fe,title:(0,i.__)("Align left","generateblocks"),onClick:()=>p("left"),isActive:"left"===Yn("alignment",t)},{icon:Pe,title:(0,i.__)("Align center","generateblocks"),onClick:()=>p("center"),isActive:"center"===Yn("alignment",t)},{icon:He,title:(0,i.__)("Align right","generateblocks"),onClick:()=>p("right"),isActive:"right"===Yn("alignment",t)},{icon:dc,title:(0,i.__)("Float left","generateblocks"),onClick:()=>p("floatLeft"),isActive:"floatLeft"===Yn("alignment",t)},{icon:pc,title:(0,i.__)("Float right","generateblocks"),onClick:()=>p("floatRight"),isActive:"floatRight"===Yn("alignment",t)}];return u&&"Desktop"===s&&b.push({icon:bc,title:(0,i.__)("Wide width","generateblocks"),onClick:()=>o({align:"wide"!==c?"wide":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"wide"===c},{icon:mc,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 fc(t){const{attributes:a,setAttributes:o,onSelectImage:s,onUploadError:c,onResetImage:u,imageUrl:d,canUploadImage:b,clientId:m,deviceType:h}=t,{mediaId:f,caption:k}=a,{insertBlocks:v}=(0,l.useDispatch)("core/block-editor"),y=W(m);return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(hc,{attributes:a,setAttributes:o,deviceType:h}),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,m)},showTooltip:!0})),!!d&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(gc,{attributes:a,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)(r.MenuItem,{onClick:u},(0,i.__)("Reset")))))}function kc(a){var r,i;const{attributes:o,setAttributes:c,name:u,clientId:g,deviceType:d,temporaryURL:p}=a,{uniqueId:b,useDynamicData:h,dynamicContentType:f,href:k,openInNewWindow:v,relNoFollow:y,relSponsored:w,sizeSlug:C,className:_,align:E}=o,x=(0,e.useRef)(),S=(0,e.useRef)(),[{loadedNaturalWidth:T,loadedNaturalHeight:M},B]=(0,e.useState)({}),{naturalWidth:z,naturalHeight:I}=(0,e.useMemo)((()=>{var e,t;return{naturalWidth:(null===(e=x.current)||void 0===e?void 0:e.naturalWidth)||T||void 0,naturalHeight:(null===(t=x.current)||void 0===t?void 0:t.naturalHeight)||M||void 0}}),[T,M,null===(r=x.current)||void 0===r?void 0:r.complete]),{getBlockRootClientId:O}=(0,l.useSelect)((e=>e("core/block-editor")),[]),L=O(g),A=Js(a),R=Ys(A,C),N=(0,m.applyFilters)("generateblocks.editor.dynamicImageFallback",R,a),D=h&&f?N:o.mediaUrl,F=h&&f?null==A?void 0:A.alt_text:o.alt,P=h&&f?null==A||null===(i=A.title)||void 0===i?void 0:i.rendered:o.title,H=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]),V=(0,n.useBlockProps)({className:s()({"gb-block-image":!0,[`gb-block-image-${b}`]:!0,"is-applying":!!p,[`align${E}`]:!!L&&H}),"data-align":L&&!H?E:null,ref:S});V.className.includes(_)&&(V.className=V.className.replace(_,"").trim());const G=!h||h&&!f,U={src:D,alt:F,title:P,setAttributes:c,anchorAttributes:{href:k,openInNewWindow:v,relNoFollow:y,relSponsored:w,disabled:!0},imageRef:x,setLoadedNaturalSize:B,naturalWidth:z,naturalHeight:I,attributes:o,temporaryURL:p};return(0,m.doAction)("generateblocks.editor.renderBlock",{...a,ref:x}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(fc,t({},a,{imageUrl:D,canUploadImage:G,deviceType:d})),(0,e.createElement)(Ts,{name:u,clientId:g,align:E},(0,e.createElement)(Bs,{tagName:"figure",htmlAttrs:V},p||D?(0,e.createElement)(oc,U):(0,e.createElement)(rc,t({},a,{canUploadImage:G})))))}function vc(t){const{name:a,attributes:l,context:r}=t,o=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,es(l,Object.keys(Os))),{dynamicContentType:s,dynamicLinkType:c,termSeparator:u}=o,g=((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,q.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}=fs(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){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=As[e];return n&&"function"==typeof n?n(t,a,l):Rs(0,a,l)}(e.dynamicContentType,s,u,g)})(o,a),d=function(e){return{"generateblocks/headline":zs,"generateblocks/button":Is,"generateblocks/container":nc,"generateblocks/image":kc}[e]}(a),p="generateblocks/headline"===a?l.content:l.text;let b=l.dynamicContentType?g:p;c&&"terms"===s&&"generateblocks/headline"===a&&(b=g.split(u).map(((t,a,l)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",null,t),a+1!==l.length&&u)))),"terms"===s&&"generateblocks/button"===a&&(b=g.split(u)[0]);const m=!b||"generateblocks/container"!==a&&"generateblocks/image"!==a||!function(e){try{return new URL(e),!0}catch(e){return!1}}(b)&&isNaN(parseInt(b))?void 0:b,h=Object.assign({},l,{content:"generateblocks/headline"===a?b:void 0,text:"generateblocks/button"===a?b:void 0,dynamicImage:m}),f=Object.assign({},t,{InnerContent:l.dynamicContentType?n.RichText.Content:n.RichText,attributes:h});return(0,e.createElement)(d,f)}var yc=t=>a=>{const{attributes:l,setAttributes:n,context:r,name:i}=a,o=l.useDynamicData&&(l.dynamicContentType||l.dynamicLinkType)?Object.assign({},a,{ContentRenderer:vc}):a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,o),(0,e.createElement)(Ss,{context:r,attributes:l,setAttributes:n,name:i}))};function wc(t){let{clientId:a,setAttributes:n}=t;const{label:i,instructions:o,templates:s}=(0,e.useContext)(Ec),{replaceInnerBlocks:c}=(0,l.useDispatch)("core/block-editor");return(0,e.createElement)("div",{className:"wp-block"},(0,e.createElement)(r.Placeholder,{label:i,instructions:o,className:"gb-select-layout"},(0,e.createElement)("div",{className:"gb-templates-wrapper"},s&&s.map((t=>(0,e.createElement)(r.Button,{key:`template-${t.id}`,className:"gb-template-selector-button",onClick:()=>{c(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks)),t.attributes&&n(t.attributes)}},t.icon,(0,e.createElement)("span",null,t.label)))))))}const Cc={label:"Label",instructions:"Instructions...",templates:[]},_c=(0,e.createContext)(Cc);var Ec=_c,xc=(0,U.compose)(ne,(a=>l=>{const{clientId:n}=l,r=W(n),i=(0,m.applyFilters)("generateblocks.editor.templateContext",Cc,l);return(0,e.createElement)(_c.Provider,{value:i},0<i.templates.length&&0===r?(0,e.createElement)(a,t({},l,{ContentRenderer:wc})):(0,e.createElement)(a,l))}),Se,yc,te,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{if(void 0!==l.isDynamic&&l.isDynamic||n({isDynamic:!0}),!ae(l)&&le(l.blockVersion,3)){!function(e){let{attributes:t,setAttributes:a}=e;const l={},n={};t.isGrid&&(t.width&&(l.width=t.width+"%",n.width=""),(t.widthTablet||t.autoWidthTablet)&&(l.widthTablet=t.autoWidthTablet?"auto":t.widthTablet+"%",n.widthTablet="",n.autoWidthTablet=!1),(t.widthMobile||t.autoWidthMobile)&&(l.widthMobile=t.autoWidthMobile?"auto":t.widthMobile+"%",n.widthMobile="",n.autoWidthMobile=!1)),t.minHeight&&(l.minHeight=t.minHeight+t.minHeightUnit,n.minHeight=!1,n.minHeightUnit="px"),t.minHeightTablet&&(l.minHeightTablet=t.minHeightTablet+t.minHeightUnitTablet,n.minHeightTablet=!1,n.minHeightUnitTablet="px"),t.minHeightMobile&&(l.minHeightMobile=t.minHeightMobile+t.minHeightUnitMobile,n.minHeightMobile=!1,n.minHeightUnitMobile="px"),(Object.keys(n).length||Object.keys(l).length)&&a({...n,sizing:{...t.sizing,...l}})}({attributes:l,setAttributes:n});const e={};["","Tablet","Mobile"].forEach((t=>{l["flexBasis"+t]&&!isNaN(l["flexBasis"+t])&&(e["flexBasis"+t]=l["flexBasis"+t]+l.flexBasisUnit)})),n({useInnerContainer:!0,...e})}if(void 0===l.blockVersion||l.blockVersion<2){let e=l.gradient&&"pseudo-element"===l.gradientSelector&&!x(l.innerZindex);e||(e=!!l.bgImage&&void 0!==l.bgOptions.selector&&"pseudo-element"===l.bgOptions.selector),e||(e=void 0!==l.useAdvBackgrounds&&l.useAdvBackgrounds),e&&n({innerZindex:1})}if(!ae(l)&&le(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.container,t=void 0!==l.useGlobalStyle&&l.useGlobalStyle,a={},r=[];t||r.push("paddingTop","paddingRight","paddingBottom","paddingLeft"),l.isGrid&&r.push("width","widthMobile"),l.gradient&&r.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),a.sizing||(a.sizing={}),r.forEach((t=>{"width"===t||"widthMobile"===t?x(l[t])?a.sizing[t]=String(l[t]+"%"):a.sizing[t]=String(e[t]+"%"):x(l[t])||(a[t]=e[t])})),Object.keys(a).length>0&&n(a)}void 0===l.bgOptions.selector&&n({bgOptions:{...l.bgOptions,selector:"element"}}),void 0===l.bgOptions.opacity&&n({bgOptions:{...l.bgOptions,opacity:1}}),le(l.blockVersion,3)&&n({blockVersion:3})}),[]),(0,e.createElement)(t,a)}))((a=>{const{clientId:n,attributes:r,setAttributes:i,ContentRenderer:o=nc}=a,{anchor:s,fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d=!1,gridId:p,isGrid:b,isQueryLoopItem:h}=r,f=(0,e.useRef)(null),k=Xn(),v=(0,m.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,l.useSelect)((e=>e("core/block-editor")),[]);return(0,e.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&&!h&&i({isGrid:!1,gridId:""})}else b&&!h&&i({isGrid:!1,gridId:""})})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(us,{attributes:r,setAttributes:i}),(0,e.createElement)(ko,{attributes:r,setAttributes:i},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:k})),(0,e.createElement)(ds,{anchor:s,attributes:r,setAttributes:i,filterTagName:y}),(0,e.createElement)(ps,{fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d}),(0,e.createElement)(o,t({},a,{generateBlocksInfo:generateBlocksInfo,filterTagName:y,allShapes:w,deviceType:k,containerRef:f})))})),Sc={uniqueId:{type:"string",default:""},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:""},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Tc=[{attributes:Sc,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(t){let{attributes:a}=t;const{uniqueId:l,tagName:r,elementId:i,cssClasses:o,isGrid:c,align:u}=a;let g={className:s()({"gb-container":!0,[`gb-container-${l}`]:!0,[`${o}`]:""!==o,[`align${u}`]:!!u&&!c}),id:i||null};return g=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",g,"generateblocks/container",a),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:c,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-grid-column":!0,[`gb-grid-column-${l}`]:!0})},t)},(0,e.createElement)(Bs,{tagName:r,htmlAttrs:g},(0,m.applyFilters)("generateblocks.frontend.insideContainer","",a),(0,e.createElement)("div",{className:s()({"gb-inside-container":!0})},(0,e.createElement)(n.InnerBlocks.Content,null))))}}];var Mc=Tc;const Bc=(0,U.createHigherOrderComponent)((t=>a=>{const{name:o,attributes:s,clientId:c}=a;if("generateblocks/container"!==o)return(0,e.createElement)(t,a);const{variantRole:u}=s,{insertBlocks:d}=(0,l.useDispatch)("core/block-editor"),{getBlocksByClientId:p}=(0,l.useSelect)((e=>e("core/block-editor")),[]),b=(0,m.applyFilters)("generateblocks.editor.showButtonAppender",!0,a);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,"button-container"===u&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,!!b&&(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:ac,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=p(c)[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=p(e)[0],a=(0,g.cloneBlock)(t,{uniqueId:""});d(a,void 0,c)}}else 0===t.length&&d((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})))),(0,e.createElement)(t,a))}),"withButtonContainer");(0,m.addFilter)("editor.BlockEdit","generateblocks/button-container/InspectorControls",Bc),(0,m.addFilter)("generateblocks.editor.containerAppender","generateblocks/button-container/BlockAppender",((e,t)=>{let{attributes:a}=t;const{variantRole:l}=a;return"button-container"===l?"":e})),(0,g.registerBlockVariation)("generateblocks/container",{name:"button-container",title:(0,i.__)("Button Container"),description:(0,i.__)("Group your buttons in a Container.","generateblocks"),icon:p("button-container"),scope:["block"],attributes:{variantRole:"button-container",display:"flex"},isActive:e=>"button-container"===e.variantRole,innerBlocks:[["generateblocks/button",generateBlocksStyling.button]]});const zc=Object.assign({},Te(Sc,Ee,generateBlocksDefaults.container),Os);(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:zc,supports:{align:!1,className:!1,html:!1},usesContext:["postId","postType","generateblocks/queryId"],edit:xc,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Mc,__experimentalLabel:e=>e.isQueryLoopItem?(0,i.__)("Post Template","generateblocks"):(0,i.__)("Container","generateblocks")});const Ic=[{icon:Fe,title:(0,i.__)("Align buttons left","generateblocks"),align:"left"},{icon:Pe,title:(0,i.__)("Align buttons center","generateblocks"),align:"center"},{icon:He,title:(0,i.__)("Align buttons right","generateblocks"),align:"right"}];var Oc=t=>{const{attributes:a,setAttributes:o,clientId:s,deviceType:c}=t,{alignment:u,alignmentTablet:d,alignmentMobile:p,isPagination:b}=a,{insertBlocks:h}=(0,l.useDispatch)("core/block-editor"),{getBlocksByClientId:f}=(0,l.useSelect)((e=>e("core/block-editor")),[]),k=(0,m.applyFilters)("generateblocks.editor.showButtonAppender",!0,t);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:ac,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:""});h(a,void 0,s)}}else 0===t.length&&h((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,s)}},showTooltip:!0})),"Desktop"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:u,alignmentControls:Ic,onChange:e=>{o({alignment:e})}}),"Tablet"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:d,alignmentControls:Ic,onChange:e=>{o({alignmentTablet:e})}}),"Mobile"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:p,alignmentControls:Ic,onChange:e=>{o({alignmentMobile:e})}}))};function Lc(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}class Ac extends e.Component{render(){const t=(0,m.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&&Lc(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&Lc(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,m.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Rc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,marginTopTablet:n,marginRightTablet:r,marginBottomTablet:i,marginLeftTablet:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{"margin-top":L(n,s),"margin-right":L(r,s),"margin-bottom":L(i,s),"margin-left":L(o,s),"justify-content":Lc(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Lc(l)}],c=(0,m.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}class Nc extends e.Component{render(){const t=(0,m.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&&Lc(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&Lc(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,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Dc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentMobile:l,marginTopMobile:n,marginRightMobile:r,marginBottomMobile:i,marginLeftMobile:o,marginUnit:s,stackMobile:c,fillHorizontalSpaceMobile:u}=t;let g=[];return g[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{display:!!u&&"block","margin-top":L(n,s),"margin-right":L(r,s),"margin-bottom":L(i,s),"margin-left":L(o,s),"justify-content":Lc(l),"flex-direction":!!c&&"column","align-items":!!c&&Lc(l)}],g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!c&&"column","align-items":!!c&&Lc(l),"justify-content":Lc(l)}],u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],g[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),c&&u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),g=(0,m.applyFilters)("generateblocks.editor.mobileCSS",g,this.props,"button-container"),(0,e.createElement)("style",null,O(g))}}class Fc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,marginTop:n,marginRight:r,marginBottom:i,marginLeft:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{margin:Ks(n,r,i,o,s),"justify-content":Lc(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Lc(l)}],c=(0,m.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}var Pc=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Fc,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Ac,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Rc,t),"Tablet"===a&&(0,e.createElement)(Nc,t),"Mobile"===a&&(0,e.createElement)(Dc,t)))}),V),Hc=(0,U.compose)(ne,Se,te,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{void 0!==l.isDynamic&&l.isDynamic||n({isDynamic:!0}),(void 0===l.blockVersion||l.blockVersion<2)&&(l.stack||l.fillHorizontalSpace)&&(l.stack&&n({stackTablet:!0,stackMobile:!0}),l.fillHorizontalSpace&&n({fillHorizontalSpaceTablet:!0,fillHorizontalSpaceMobile:!0})),(void 0===l.blockVersion||l.blockVersion<2)&&n({blockVersion:2})}),[]),(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,h]=(0,e.useState)(0),f=Xn(),k=W(o),{removeBlock:v}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{1===b&&0===k&&v(o),h(k)}),[k]);let y={className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${g}`]:!0,[`${d}`]:void 0!==d}),id:p||null};y=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",y,"generateblocks/button-container",r);const w=(0,n.useBlockProps)(y);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oc,t({},a,{deviceType:f})),(0,e.createElement)(ko,{attributes:r,setAttributes:i},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:f})),(0,e.createElement)(I,{anchor:p,setAttributes:i}),(0,e.createElement)(Pc,t({},a,{deviceType:f})),(0,e.createElement)(Ts,{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]]})))))})),Vc={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 Gc=[{attributes:Vc,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(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i}=a;let o={id:r||void 0,className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/button-container",a),(0,e.createElement)("div",o,(0,e.createElement)(n.InnerBlocks.Content,null))}}];var Uc=Gc;const jc=Te(Vc,ye,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:jc,supports:{className:!1,html:!1,inserter:!1},usesContext:["generateblocks/queryId","generateblocks/query"],edit:Hc,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Uc,__experimentalLabel:e=>{let{isPagination:t}=e;return t?(0,i.__)("Pagination","generateblocks"):(0,i.__)("Buttons","generateblocks")}});var Wc=t=>{const{attributes:a,clientId:o,setAttributes:s}=t,{insertBlocks:c,replaceBlocks:u}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:d,getBlocksByClientId:b,getBlockAttributes:h,getSelectedBlockClientIds:f,getBlock:k}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{url:v,target:y,relNoFollow:w,relSponsored:C,useDynamicData:_,dynamicLinkType:E,display:x,displayTablet:S,displayMobile:T,buttonType:M}=a,B=Xn(),z=_&&E,I=(0,m.applyFilters)("generateblocks.editor.showButtonAppender",!0,t),O=(0,m.applyFilters)("generateblocks.editor.showButtonContainerControl",!0,t),L=(0,m.applyFilters)("generateblocks.editor.showButtonLinkControl","link"===M,t);let A=!1;const R=d(o,"generateblocks/button-container",!0)[0],N=d(o,"generateblocks/container",!0)[0];return R?A=R:N&&"button-container"===h(N).variantRole&&(A=N),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BlockControls,null,!!O&&!A&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{icon:p("button-container"),label:(0,i.__)("Add to Button Container","generateblocks"),onClick:()=>{const e=f(),t=e.map((e=>{const t=k(e);return(0,g.createBlock)(t.name,t.attributes,t.innerBlocks)})),a=(0,g.createBlock)("generateblocks/container",{display:"flex",variantRole:"button-container"},t);u(e,a)},showTooltip:!0})),(0,e.createElement)(r.ToolbarGroup,null,I&&A&&(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:ac,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=b(o)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});c(t,void 0,A)},showTooltip:!0})),!Qi({device:B,display:x,displayTablet:S,displayMobile:T})&&(0,e.createElement)(n.AlignmentToolbar,{value:Yn("alignment",{attributes:a,deviceType:B}),onChange:e=>{s({[Yn("alignment",{attributes:a,deviceType:B},!0)]:e})},alignmentControls:Ge.alignments}),(0,e.createElement)(r.ToolbarGroup,null,(!_||z)&&L&&(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-button-link-dropdown",popoverProps:{className:"block-editor-block-settings-menu__popover",position:"bottom right"},renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.ToolbarButton,{icon:tr,label:v?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks"),onClick:l,"aria-expanded":a,isPressed:!!v})},renderContent:()=>(0,e.createElement)(e.Fragment,null,!_&&(0,e.createElement)(n.URLInput,{className:"gblocks-button-link",value:v,onChange:e=>{s({url:e,hasUrl:!!e})}}),!!_&&(0,e.createElement)("div",{style:{width:"300px","font-style":"italic","margin-bottom":E?"15px":"0"}},(0,i.__)("This button is using a dynamic link.","generateblocks")),(0,m.applyFilters)("generateblocks.editor.urlInputMoreOptions","",a),(!!v||z)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:y||"",onChange:e=>{s({target:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:w||"",onChange:e=>{s({relNoFollow:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:C||"",onChange:e=>{s({relSponsored:e})}})))}))))},qc=t=>{let{anchor:a,ariaLabel:l,buttonType:o,setAttributes:s}=t;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,{anchor:a,setAttributes:s}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("ARIA Label","generateblocks"),help:(0,i.__)("Helpful to people using screen readers.","generateblocks"),value:l,onChange:e=>{s({ariaLabel:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Button type","generateblocks"),value:o,onChange:e=>s({buttonType:e}),options:[{value:"link",label:(0,i.__)("Link","generateblocks")},{value:"button",label:"<button>"}]}))};class $c extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class Zc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,letterSpacingTablet:n,fontSizeTablet:r,fontSizeUnit:i,paddingTopTablet:o,paddingRightTablet:s,paddingBottomTablet:c,paddingLeftTablet:u,paddingUnit:g,borderSizeTopTablet:d,borderSizeRightTablet:p,borderSizeBottomTablet:b,borderSizeLeftTablet:h,borderRadiusTopRightTablet:f,borderRadiusBottomRightTablet:k,borderRadiusBottomLeftTablet:v,borderRadiusTopLeftTablet:y,borderRadiusUnit:w,iconPaddingTopTablet:C,iconPaddingRightTablet:_,iconPaddingBottomTablet:E,iconPaddingLeftTablet:x,iconPaddingUnit:S,iconSizeTablet:T,iconSizeUnit:M,hasButtonContainer:B,alignmentTablet:z}=t;let I=".gb-button-"+a;I=".editor-styles-wrapper "+(B?".gb-button-wrapper ":"")+I;let A=[];return A[I]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"font-size":L(r,i),"letter-spacing":L(n,"em"),"text-align":z}],Ws(A,I,t,"Tablet"),Us(A,I,t,"Tablet"),Gs(A,I,t,"Tablet"),js(A,I,t,"Tablet"),(d||p||b||h)&&A[I].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),A[I+" .gb-icon"]=[{"padding-top":!l&&L(C,S),"padding-right":!l&&L(_,S),"padding-bottom":!l&&L(E,S),"padding-left":!l&&L(x,S),"font-size":L(T,M)}],A=(0,m.applyFilters)("generateblocks.editor.tabletCSS",A,this.props,"button"),(0,e.createElement)("style",null,O(A))}}class Kc extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class Jc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,letterSpacingMobile:n,fontSizeMobile:r,fontSizeUnit:i,paddingTopMobile:o,paddingRightMobile:s,paddingBottomMobile:c,paddingLeftMobile:u,paddingUnit:g,borderSizeTopMobile:d,borderSizeRightMobile:p,borderSizeBottomMobile:b,borderSizeLeftMobile:h,borderRadiusTopRightMobile:f,borderRadiusBottomRightMobile:k,borderRadiusBottomLeftMobile:v,borderRadiusTopLeftMobile:y,borderRadiusUnit:w,iconPaddingTopMobile:C,iconPaddingRightMobile:_,iconPaddingBottomMobile:E,iconPaddingLeftMobile:x,iconPaddingUnit:S,iconSizeMobile:T,iconSizeUnit:M,hasButtonContainer:B,alignmentMobile:z}=t;let I=".gb-button-"+a;I=".editor-styles-wrapper "+(B?".gb-button-wrapper ":"")+I;let A=[];return A[I]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"font-size":L(r,i),"letter-spacing":L(n,"em"),"text-align":z}],Ws(A,I,t,"Mobile"),Us(A,I,t,"Mobile"),Gs(A,I,t,"Mobile"),js(A,I,t,"Mobile"),(d||p||b||h)&&A[I].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),A[I+" .gb-icon"]=[{"padding-top":!l&&L(C,S),"padding-right":!l&&L(_,S),"padding-bottom":!l&&L(E,S),"padding-left":!l&&L(x,S),"font-size":L(T,M)}],A=(0,m.applyFilters)("generateblocks.editor.mobileCSS",A,this.props,"button"),(0,e.createElement)("style",null,O(A))}}class Yc extends e.Component{render(){const t=(0,m.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,fontFamily:g,fontFamilyFallback:d,fontWeight:p,textTransform:b,letterSpacing:h,fontSize:f,fontSizeUnit:k,paddingTop:v,paddingRight:y,paddingBottom:w,paddingLeft:C,paddingUnit:_,borderSizeTop:E,borderSizeRight:x,borderSizeBottom:S,borderSizeLeft:T,borderRadiusTopRight:M,borderRadiusBottomRight:B,borderRadiusBottomLeft:z,borderRadiusTopLeft:I,borderRadiusUnit:A,borderColor:R,borderColorOpacity:N,borderColorHover:D,borderColorHoverOpacity:F,gradient:P,gradientDirection:H,gradientColorOne:V,gradientColorOneOpacity:G,gradientColorStopOne:U,gradientColorTwo:j,gradientColorTwoOpacity:W,gradientColorStopTwo:q,iconPaddingTop:$,iconPaddingRight:Z,iconPaddingBottom:K,iconPaddingLeft:J,iconPaddingUnit:Y,iconSize:Q,iconSizeUnit:X,hasButtonContainer:ee,alignment:te,backgroundColorCurrent:ae,textColorCurrent:le,borderColorCurrent:ne}=t;let re,ie="",oe="",se="";P&&(V&&""!==U&&(oe=" "+U+"%"),j&&""!==q&&(se=" "+q+"%")),P&&(re="linear-gradient("+H+"deg, "+mi(V,G)+oe+", "+mi(j,W)+se+");"),g&&d&&(ie=", "+d);let ce=".gb-button-"+a;ce=".editor-styles-wrapper "+(ee?".gb-button-wrapper ":"")+ce;let ue=[];return ue[ce]=[{"background-color":mi(n,r),"background-image":re,color:o,padding:Ks(v,y,w,C,_),"border-radius":Ks(I,M,B,z,A),"font-family":g+ie,"font-weight":p,"text-transform":b,"font-size":L(f,k),"text-align":te,"letter-spacing":L(h,"em"),"border-color":mi(R,N)}],Ws(ue,ce,t),Us(ue,ce,t),Gs(ue,ce,t),js(ue,ce,t),(E||x||S||T)&&ue[ce].push({"border-width":Ks(E,x,S,T,"px"),"border-style":"solid"}),ue[(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",ce)]=[{"background-color":ae,color:le,"border-color":ne}],ue[ce+":hover, "+ce+":focus, "+ce+":active"]=[{"background-color":mi(s,c),color:u,"border-color":mi(D,F)}],ue[ce+" .gb-icon"]=[{padding:!l&&Ks($,Z,K,J,Y),"font-size":L(Q,X)}],ue=(0,m.applyFilters)("generateblocks.editor.mainCSS",ue,this.props,"button"),(0,e.createElement)("style",null,O(ue))}}var Qc=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yc,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)($c,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Zc,t),"Tablet"===a&&(0,e.createElement)(Kc,t),"Mobile"===a&&(0,e.createElement)(Jc,t)))}),V);(0,m.addFilter)("generateblocks.editor.colorGroupItems","generateblocks/button-colors/add-conditional-color-items",(function(e,t){const{name:a,attributes:l}=t,{useDynamicData:n,dynamicContentType:r}=l;if("generateblocks/button"!==a)return e;if((0,m.applyFilters)("generateblocks.editor.addButtonCurrentColors",n&&"pagination-numbers"===r,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},{group:"border",attribute:"borderColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0}];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}));var Xc=(0,U.compose)(ne,Se,yc,te,(t=>a=>{const{attributes:l,setAttributes:n}=a,{hasIcon:r,icon:i,hasUrl:o,url:s,blockVersion:c,gradient:u,useGlobalStyle:g}=l;return(0,e.useEffect)((()=>{if(!r&&i&&n({hasIcon:!0}),o||n({hasUrl:!!s}),ae(l)||!le(c,3)||g||n({display:"inline-flex",alignItems:"center",justifyContent:"center",alignment:"center"}),!ae(l)&&le(c,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.button,t={},a=[];u&&a.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),a.forEach((a=>{x(l[a])||(t[a]=e[a])})),Object.keys(t).length>0&&n(t)}le(c,3)&&n({blockVersion:3})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:n,setAttributes:r,ContentRenderer:i=Is,clientId:o}=a,{anchor:s,ariaLabel:c,fontFamily:u,googleFont:g,googleFontVariants:d,isBlockPreview:p=!1,hasButtonContainer:b,blockVersion:h,buttonType:f,variantRole:k}=n,v=(0,e.useRef)(null),[y,w]=(0,e.useState)({}),C=Xn(),{getBlockParents:_,getBlocksByClientId:E}=(0,l.useSelect)((e=>e("core/block-editor")),[]);return(0,e.useEffect)((()=>{const e=getComputedStyle(v.current);w({fontSize:parseInt(e.fontSize)||""})}),[]),(0,e.useEffect)((()=>{const e=_(o,!0);if(e.length>0){const t=E(e);t.length>0&&"generateblocks/button-container"===t[0].name?r({hasButtonContainer:!0}):b&&r({hasButtonContainer:!1})}else b&&r({hasButtonContainer:!1})}),[]),(0,e.useEffect)((()=>{!ae(n)||h||k||r(generateBlocksStyling.button)}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Wc,a),(0,e.createElement)(ko,{attributes:n,setAttributes:r,computedStyles:y},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:C})),(0,e.createElement)(qc,{anchor:s,ariaLabel:c,buttonType:f,setAttributes:r}),(0,e.createElement)(Qc,t({},a,{deviceType:C})),(0,e.createElement)(ps,{fontFamily:u,googleFont:g,googleFontVariants:d,isBlockPreview:p}),(0,e.createElement)(i,t({},a,{buttonRef:v})))})),eu={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 tu=[{attributes:{...eu,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(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i,text:o,url:c,target:u,relNoFollow:g,relSponsored:d,icon:p,iconLocation:b,removeText:h,ariaLabel:f}=a,k=[];g&&k.push("nofollow"),u&&k.push("noopener","noreferrer"),d&&k.push("sponsored");let v={id:r||void 0,className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,[`${i}`]:""!==i}),href:c||void 0,target:u?"_blank":void 0,rel:k&&k.length>0?k.join(" "):void 0,"aria-label":f||void 0};return v=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",v,"generateblocks/button",a),(0,e.createElement)("a",v,p&&"left"===b&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:_i(p)}}),!h&&(0,e.createElement)(n.RichText.Content,{tagName:"span",className:"button-text",value:o,key:"button-text"}),p&&"right"===b&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:_i(p)}}))}}];var au=tu;function lu(e){return e?(0,i.sprintf)("Post meta: %s",e):(0,i.__)("Post meta","generateblocks")}function nu(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":lu(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":lu(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 ru=Object.assign({},Te(eu,we,generateBlocksDefaults.button),Os);(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:ru,supports:{className:!1},edit:Xc,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:h,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:h||null};v=(0,m.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)(Bs,{tagName:w,htmlAttrs:y},(0,e.createElement)(Ms,{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:au,usesContext:["postId","postType","generateblocks/query","generateblocks/inheritQuery"],__experimentalLabel:e=>nu(e,(0,i.__)("Button","generateblocks"))});var iu=window.wp.richText;const ou=(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"})),su="generateblocks/mark",cu=(0,U.compose)((0,l.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),(0,U.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(t){const a=()=>t.onChange((0,iu.toggleFormat)(t.value,{type:su}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.RichTextShortcut,{type:"primary",character:"m",onUse:a}),(0,e.createElement)(n.RichTextToolbarButton,{icon:ou,title:(0,i.__)("Highlight","generateblocks"),onClick:a,isActive:t.isActive,shortcutType:"access",shortcutCharacter:"m",className:`toolbar-button-with-text toolbar-button__${su}`}))})),uu={title:(0,i.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:cu};function gu(t){let{level:a}=t;const l={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(!l.hasOwnProperty(a))return null;let n="0 0 20 20";return"p"!==a&&"div"!==a||(n="0 0 24 24"),(0,e.createElement)(r.SVG,{width:"24",height:"24",viewBox:n,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(r.Path,{d:l[a]}))}(0,iu.registerFormatType)(su,uu);var du=t=>{let{setAttributes:a,element:l,isCaption:n}=t;return n?null:(0,e.createElement)(r.ToolbarGroup,{isCollapsed:!0,icon:(0,e.createElement)(gu,{level:l}),label:(0,i.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===l,icon:(0,e.createElement)(gu,{level:"h1"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +multipleCommentsText:(0,i.__)("% comments","generateblocks")}):l({noCommentsText:"",singleCommentText:"",multipleCommentsText:""}),"author-avatar"===e.value?l({width:"50px",height:"50px"}):l({width:"",height:""})}})};function fs(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,l.useSelect)((l=>{const{getUser:r,isResolving:i,getEntityRecord:o,getEntityRecords:s,hasFinishedResolution:c}=l(q.store),u=(0,m.applyFilters)("generateblocks.editor.dynamicContent.post-request-params",["postType",e,t]);let g=o(...u);const d=!c("getEntityRecord",u)||i("getEntityRecord",u);let p=!1;if(a.includes("author")&&!d&&g){const e=(0,m.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(a.includes("comments")&&!d&&g){const e=(0,m.applyFilters)("generateblocks.editor.dynamicContent.comments-request-params",["root","comment",{post:t}]),a=s(...e);b=!c("getEntityRecords",e)||i("getEntityRecords",e),!b&&a&&(g=Object.assign({},g,{comments:a}))}let h=!1;if(a.includes("terms")&&!d&&g){const e=(0,m.applyFilters)("generateblocks.editor.dynamicContent.terms-request-params",["taxonomy",n.taxonomy,{post:t}]),a=s(...e);h=!c("getEntityRecords",e)||i("getEntityRecords",e),!h&&a&&(g=Object.assign({},g,{terms:a}))}return{record:(0,m.applyFilters)("generateblocks.editor.dynamicContent.postRecord",g),isLoading:d||p||b||h}}),[e,t,a.join(),JSON.stringify(n)])}function ks(t){const{isActive:a=!1,metaFieldKey:l="metaFieldName",postType:n,postId:r,metaFieldName:o,setAttributes:s}=t,{record:c,isLoading:u}=fs(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,m.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)(Zn,{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]:(null==e?void 0:e.value)||void 0})}}),p))}function vs(t){const{isActive:a=!1,metaFieldKey:l="metaFieldName",postType:n,postId:r,metaFieldName:o,setAttributes:s}=t,{record:c,isLoading:u}=fs(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,m.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)(Zn,{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]:(null==e?void 0:e.value)||void 0})}}),p))}ks.displayName="PostMetaControl";const ys=(0,m.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 ws=t=>{let{linkType:a,linkMetaFieldName:l,linkMetaFieldType:n,dynamicContentType:o,setAttributes:s,isPagination:c,isActive:u,name:g,dynamicLinkRemoveIfEmpty:d,postType:p,postId:b,attributes:h}=t;const f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,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,m.applyFilters)("generateblocks.editor.dynamicContent.linkTypes",l,e)}(o,c,g);if(0===f.length)return null;const k=f.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a)),v="post-meta"===a||"author-meta"===a;return(0,e.createElement)(e.Fragment,null,u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zn,{id:"gblocks-select-link-type-control",label:(0,i.__)("Link source","generateblocks"),placeholder:(0,i.__)("Link source","generateblocks"),options:f,value:k,onChange:e=>s({dynamicLinkType:e.value})}),(0,e.createElement)(ks,{isActive:v&&"post-meta"===a,postType:p,postId:b,metaFieldKey:"linkMetaFieldName",metaFieldName:l,setAttributes:s,attributes:h}),(0,e.createElement)(vs,{isActive:v&&"author-meta"===a,postType:p,postId:b,metaFieldKey:"linkMetaFieldName",metaFieldName:l,setAttributes:s,attributes:h}),("author-email"===a||v&&!!l)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Link type","generateblocks"),value:n,onChange:e=>s({linkMetaFieldType:e}),options:ys}),!!a&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove block if link is empty","generateblocks"),checked:!!d,onChange:e=>s({dynamicLinkRemoveIfEmpty:e})})))};function Cs(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 _s(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 Es(t){const{isActive:a,postType:l,termTaxonomy:n,termSeparator:o,setAttributes:s,name:c}=t,u=$(),g=(0,e.useMemo)((()=>u.filter((e=>e.types.includes(l))).map((e=>({value:e.slug,label:e.name})))),[u,l]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(zo,{label:(0,i.__)("Taxonomy","generateblocks"),options:g,value:n,onChange:e=>{s({termTaxonomy:e.value})}}),"generateblocks/button"!==c&&(0,e.createElement)(r.TextControl,{label:(0,i.__)("Term separator","generateblocks"),value:o,onChange:e=>s({termSeparator:e})})))}function xs(a){const{isActive:l,useDefaultMoreLink:n,customMoreLinkText:o,setAttributes:s}=a;return(0,e.createElement)(e.Fragment,null,l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(T,t({},a,{label:(0,i.__)("Excerpt length","generateblocks"),attributeName:"excerptLength",min:"0"})),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use default more link","generateblocks"),checked:!!n,onChange:e=>s({useDefaultMoreLink:e})}),!n&&(0,e.createElement)(Uo,{label:(0,i.__)("Custom more link text","generateblocks"),value:o,onChange:e=>s({customMoreLinkText:e})})))}var Ss=t=>{let{context:a,attributes:l,setAttributes:o,name:s}=t;const{postType:c,postId:u,useDynamicData:g,dynamicSource:d,dynamicContentType:b,dateType:m,dateReplacePublished:h,metaFieldName:f,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,termTaxonomy:w,termSeparator:C,dynamicLinkType:_,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,isQueryLoopItem:T,isCaption:M,excerptLength:B,useDefaultMoreLink:z,customMoreLinkText:I,dynamicLinkRemoveIfEmpty:O}=l,L="current-post"===d?a.postType:c,A="current-post"===d?a.postId:u,R=void 0!==a["generateblocks/queryId"];return(0,e.useEffect)((()=>{"generateblocks/container"===s&&g&&""!==b&&(T||R)&&o({bgImageInline:!0})}),[b,T]),(0,e.useEffect)((()=>{"generateblocks/headline"===s&&M&&g&&(a["generateblocks/mediaId"]?o({postId:a["generateblocks/mediaId"],postType:"attachment",dynamicSource:"current-post",dynamicContentType:b||"caption"}):o({postId:"",postType:"post",dynamicSource:"current-post",dynamicContentType:b||"caption"}))}),[M,a["generateblocks/mediaId"],g,b]),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(oe,{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)(ms,{dynamicSource:d,postType:c,postId:u,setAttributes:o,dynamicContentType:b}),(0,e.createElement)(hs,{dynamicContentType:b,setAttributes:o,name:s,isCaption:M}),(0,e.createElement)(Cs,{isActive:"post-date"===b,dateType:m,dateReplacePublished:h,setAttributes:o}),(0,e.createElement)(ks,{isActive:"post-meta"===b,postType:L,postId:A,metaFieldName:f,setAttributes:o,attributes:l}),(0,e.createElement)(vs,{isActive:"author-meta"===b,postType:L,postId:A,metaFieldName:f,setAttributes:o,attributes:l}),(0,e.createElement)(_s,{isActive:"comments-number"===b,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,setAttributes:o}),(0,e.createElement)(Es,{isActive:"terms"===b,postType:L,termTaxonomy:w,termSeparator:C,setAttributes:o,name:s}),(0,e.createElement)(xs,{isActive:"post-excerpt"===b,excerptLength:B,useDefaultMoreLink:z,customMoreLinkText:I,setAttributes:o,attributes:l}),(0,e.createElement)(ws,{isActive:"generateblocks/container"!==s||"generateblocks/container"===s&&void 0!==l.url,postType:L,postId:A,attributes:l,linkType:_,dynamicLinkRemoveIfEmpty:O,dynamicContentType:b,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,setAttributes:o,name:s}))))};function Ts(t){let{name:a,clientId:r,align:i,children:o}=t;const{getBlockRootClientId:c}=(0,l.useSelect)((e=>e("core/block-editor")),[]),u=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]),g=a.toString().replace("/","-"),d={className:s()({"wp-block":!0,"gb-is-root-block":!0,[`gb-root-block-${g}`]:!0,[`align${i}`]:u}),"data-align":i&&!u?i:null,"data-block":r};return c(r)?o:(0,e.createElement)("div",d,o)}var Ms=t=>{let{icon:a,hasIcon:l=!0,direction:n="left",children:r,hideChildren:i=!1,showWrapper:o=!1,wrapperClassname:s=""}=t;const c=a?(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:a}}):void 0;return(0,e.createElement)(e.Fragment,null,l&&"left"===n&&c,i||(o?(0,e.createElement)("span",{className:s},r):r),l&&"right"===n&&c)};function Bs(t){let{tagName:a,htmlAttrs:l,children:n}=t;return(0,e.createElement)(a,l,n)}function zs(t){const{name:a,clientId:r,attributes:o,setAttributes:c,onSplit:u,onReplace:g,InnerContent:d=n.RichText,headlineRef:p}=t,{uniqueId:b,element:h,content:f,icon:k,hasIcon:v,anchor:y,removeText:w,ariaLabel:C,dynamicContentType:_,dynamicLinkType:E}=o;let x={className:s()({"gb-headline":!0,[`gb-headline-${b}`]:!0,"gb-headline-text":!v}),id:y||null,ref:p};x=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",x,"generateblocks/headline",o);const S=(0,n.useBlockProps)(x),T=(0,m.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,t)?[]:null,M="terms"!==_&&E?"a":"span",B=(0,l.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]),z=(0,e.useMemo)((()=>B&&E?B.filter((e=>"core/link"!==e.name)).map((e=>e.name)):T),[B,T,E]);return(0,m.doAction)("generateblocks.editor.renderBlock",{...t,ref:p}),(0,e.createElement)(Ts,{name:a,clientId:r},(0,e.createElement)(Bs,{tagName:h,htmlAttrs:S},(0,e.createElement)(Ms,{hasIcon:v,icon:k,hideChildren:w,showWrapper:!w&&v,wrapperClassname:"gb-headline-text",ariaLabel:w&&C?C:void 0},(0,e.createElement)(d,{name:a,tagName:M,value:f,onChange:e=>c({content:e}),onSplit:u(o,r),onReplace:g,placeholder:(0,i.__)("Headline","generateblocks"),allowedFormats:z}))))}function Is(t){const{attributes:a,setAttributes:l,isSelected:r,InnerContent:o=n.RichText,context:c,name:u,buttonRef:g,clientId:d}=t,{uniqueId:p,anchor:b,text:h,url: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-${p}`]:!0,"gb-button-text":!w}),rel:S&&S.length>0&&"link"===x?S.join(" "):null,"aria-label":E||null,id:b||null,ref:g};T=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",T,"generateblocks/button",a);const M=(0,n.useBlockProps)(T),B=(0,m.applyFilters)("generateblocks.editor.buttonDisableFormatting",!1,t)?[]:["core/bold","core/italic","core/strikethrough"];let z=f?"a":"span";return"button"===x&&(z="span"),(0,m.doAction)("generateblocks.editor.renderBlock",{...t,ref:g}),(0,e.createElement)(Ts,{name:u,clientId:d},(0,e.createElement)(Bs,{tagName:z,htmlAttrs:M},(0,e.createElement)(Ms,{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:h,onChange:e=>l({text:e}),allowedFormats:B,isSelected:r,attributes:a,context:c}))))}var Os=(0,m.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}}),Ls=window.wp.date;const As={"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}=null==e?void 0: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,Ls.dateI18n)(t.dateFormat||"F j, Y",l,"")},"post-meta":function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Ds(t.metaFieldName,e.meta,a,t)},"author-meta":function(e,t){return e.author?Ds(t.metaFieldName,e.author.meta,!1,t):Ns()},"author-email":function(e){return e.author?e.author.email||(0,i.__)("No author email.","generateblocks"):Ns()},"author-name":function(e){return e.author?e.author.name||(0,i.__)("No author name.","generateblocks"):Ns()},"author-nickname":function(e){return e.author?e.author.nickname||(0,i.__)("No author nickname.","generateblocks"):Ns()},"author-first-name":function(e){return e.author?e.author.first_name||(0,i.__)("No author first name.","generateblocks"):Ns()},"author-last-name":function(e){return e.author?e.author.last_name||(0,i.__)("No author last name.","generateblocks"):Ns()},"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 null==e?void 0: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){var t,a,l;return{source_url:null!=e&&null!==(t=e.author)&&void 0!==t&&t.avatar_urls&&null!=e&&null!==(a=e.author)&&void 0!==a&&a.avatar_urls[96]?null==e||null===(l=e.author)||void 0===l?void 0:l.avatar_urls[96]:""}},caption:function(e){var t;return(null==e||null===(t=e.caption)||void 0===t?void 0:t.raw)||(0,i.__)("Image caption","generateblocks")},"alt-text":function(e){return(null==e?void 0:e.alt_text)||(0,i.__)("Image alt text","generateblocks")},"image-description":function(e){var t;return(null==e||null===(t=e.description)||void 0===t?void 0:t.raw)||(0,i.__)("Image description","generateblocks")}};function Rs(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)}const Ds=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&e){const n=(0,m.applyFilters)("generateblocks.editor.dynamicContent.postMetaField",t[e],l);if(H().isEmpty(n)&&!H().isNumber(n))return e;const r=a?void 0:(0,i.__)("Meta field value not supported.","generateblocks");return H().isString(n)||H().isNumber(n)?H().toString(n):r}return a?void 0:(0,i.__)("Meta value","generateblocks")};function Ns(){return(0,i.__)("Author not found.","generateblocks")}var Fs=t=>{let{isGrid:a,uniqueId:l,children:n}=t;return a?(0,e.createElement)("div",{className:`gb-grid-column gb-grid-column-${l}`},n):n},Ps=t=>{let{attributes:a,allShapes:l}=t;const{shapeDividers:n}=a;return(0,e.createElement)(e.Fragment,null,!!a.shapeDividers.length&&(0,e.createElement)("div",{className:"gb-shapes"},a.shapeDividers.map(((t,a)=>{const r=a+1;return(0,e.createElement)(e.Fragment,{key:a},void 0!==l[n[a].shape]&&(0,e.createElement)("div",{className:s()({"gb-shape":!0,[`gb-shape-${r}`]:!0}),dangerouslySetInnerHTML:{__html:_i(l[n[a].shape].icon)}}))}))))};class Hs extends e.Component{render(){const t=(0,m.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,m.applyFilters)("generateblocks.editor.desktopCSS",n,this.props,"container"),(0,e.createElement)("style",null,O(n))}}function Vs(e,t,a){return void 0===e[t]&&(e[t]=[]),e[t].push(a),e}function Gs(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const{sizing:n}=a,r={width:eo("width"+l,n),height:eo("height"+l,n),"min-width":eo("minWidth"+l,n),"min-height":eo("minHeight"+l,n),"max-width":eo("maxWidth"+l,n),"max-height":eo("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"]),r["max-width"]||(r["max-width"]="unset"),Vs(e,t,r)}function js(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";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]),Vs(e,t,n)}function Us(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!a.isGrid)return Vs(e,t,{"flex-grow":a["flexGrow"+l],"flex-shrink":a["flexShrink"+l],"flex-basis":a["flexBasis"+l],order:a["order"+l]})}function Ws(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const{marginUnit:n}=a,r=""===l?"0":"",i={"margin-top":L(a["marginTop"+l],"auto"!==a["marginTop"+l]?n:""),"margin-right":L(a["marginRight"+l],"auto"!==a["marginRight"+l]?n:"")||r,"margin-bottom":L(a["marginBottom"+l],"auto"!==a["marginBottom"+l]?n:""),"margin-left":L(a["marginLeft"+l],"auto"!==a["marginLeft"+l]?n:"")||r};return Vs(e,t,i)}class qs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,flexGrowTablet:n,flexShrinkTablet:r,flexBasisTablet:i,paddingTopTablet:o,paddingRightTablet:s,paddingBottomTablet:c,paddingLeftTablet:u,paddingUnit:g,borderSizeTopTablet:d,borderSizeRightTablet:p,borderSizeBottomTablet:b,borderSizeLeftTablet:h,borderRadiusTopRightTablet:f,borderRadiusBottomRightTablet:k,borderRadiusBottomLeftTablet:v,borderRadiusTopLeftTablet:y,borderRadiusUnit:w,verticalAlignmentTablet:C,alignmentTablet:_,fontSizeTablet:E,fontSizeUnit:x,orderTablet:S,shapeDividers:T,bgImage:M,bgOptions:B,gridId:z,useInnerContainer:I,sizing:A}=t;let R=[];return R[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"text-align":_,"font-size":L(E,x)}],Ws(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),Gs(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),js(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),Us(R,".editor-styles-wrapper .gb-container-"+a,t,"Tablet"),I||R[".editor-styles-wrapper .gb-container-"+a].push({"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g)}),(d||p||b||h)&&R[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),I&&(R[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),width:!(!eo("minHeightTablet",A)||l)&&"100%"}],eo("minHeightTablet",A)&&!l&&R[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==C?C:null}),l&&"inherit"!==C&&R[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":C})),l&&(R[[".gb-post-template-"+z+" > .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:eo("widthTablet",A),"flex-grow":n,"flex-shrink":r,"flex-basis":i,order:S}]),M&&"pseudo-element"===B.selector&&(R[".gb-container-"+a+":before"]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w)}]),T.length&&T.forEach(((e,t)=>{R[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:L(T[t].heightTablet,"px"),width:L(T[t].widthTablet,"%")}]})),R=(0,m.applyFilters)("generateblocks.editor.tabletCSS",R,this.props,"container"),(0,e.createElement)("style",null,O(R))}}class $s extends e.Component{render(){const t=(0,m.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,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",n,this.props,"container"),(0,e.createElement)("style",null,O(n))}}class Zs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,flexGrowMobile:n,flexShrinkMobile:r,flexBasisMobile:i,paddingTopMobile:o,paddingRightMobile:s,paddingBottomMobile:c,paddingLeftMobile:u,paddingUnit:g,borderSizeTopMobile:d,borderSizeRightMobile:p,borderSizeBottomMobile:b,borderSizeLeftMobile:h,borderRadiusTopRightMobile:f,borderRadiusBottomRightMobile:k,borderRadiusBottomLeftMobile:v,borderRadiusTopLeftMobile:y,borderRadiusUnit:w,verticalAlignmentMobile:C,removeVerticalGapMobile:_,alignmentMobile:E,fontSizeMobile:x,fontSizeUnit:S,orderMobile:T,shapeDividers:M,bgImage:B,bgOptions:z,gridId:I,useInnerContainer:A,sizing:R}=t;let D=[];return D[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"text-align":E,"font-size":L(x,S)}],Ws(D,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),Gs(D,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),js(D,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),Us(D,".editor-styles-wrapper .gb-container-"+a,t,"Mobile"),A||D[".editor-styles-wrapper .gb-container-"+a].push({"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g)}),(d||p||b||h)&&D[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),A&&(D[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),width:!(!eo("minHeightMobile",R)||l)&&"100%"}],"inherit"!==C&&eo("minHeightMobile",R)&&!l&&D[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":C}),l&&"inherit"!==C&&D[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":C})),l&&(D[[".gb-post-template-"+I+" > .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:eo("widthMobile",R),"flex-grow":n,"flex-shrink":r,"flex-basis":i,order:T}]),_&&(D[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),B&&"pseudo-element"===z.selector&&(D[".gb-container-"+a+":before"]=[{"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w)}]),M.length&&M.forEach(((e,t)=>{D[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:L(M[t].heightMobile,"px"),width:L(M[t].widthMobile,"%")}]})),B&&"fixed"===z.attachment&&("element"===z.selector&&D[".editor-styles-wrapper .gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===z.selector&&(D[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),D=(0,m.applyFilters)("generateblocks.editor.mobileCSS",D,this.props,"container"),(0,e.createElement)("style",null,O(D))}}function Ks(e,t,a,l,n){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+n+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+n+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+n+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+n+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var Js=e=>{const{attributes:t,featuredImage:a}=e,{dynamicImage:n,useDynamicData:r,dynamicContentType:i,bgImageSize:o}=t;return(0,l.useSelect)((e=>{const{getMedia:t}=e(q.store);return"featured-image"===i&&a||!isNaN(parseInt(n))?t("featured-image"===i&&a?a:parseInt(n),{context:"view"}):n}),[r,n,o,a,i])};function Ys(e,t){var a,l,n;return"object"==typeof e?(null==e||null===(a=e.media_details)||void 0===a||null===(l=a.sizes)||void 0===l||null===(n=l[t])||void 0===n?void 0:n.source_url)||(null==e?void 0:e.source_url):e}function Qs(e){var t;const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",e.attributes,e),{bgImage:l,useDynamicData:n,dynamicContentType:r,bgImageSize:i}=a;let o=null==l||null===(t=l.image)||void 0===t?void 0:t.url;const s=Js(e);return n&&""!==r&&(o=Ys(s,i)),(0,m.applyFilters)("generateblocks.editor.bgImageURL",o,e)}function Xs(e,t){const a=(0,m.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:h,useDynamicData:f,dynamicContentType:k}=a;let v="";if(o){let e="",t="";const a=mi(c,u),l=mi(g,d);c&&""!==p&&(e=" "+p+"%"),g&&""!==b&&(t=" "+b+"%"),v="linear-gradient("+h+"deg, "+a+e+", "+l+t+")"}if("gradient"===e)return v;let y=!1;const w=mi(l,n);if(r||f&&""!==k){const e=Qs(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 ec(t){const a=(0,m.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,paddingTop:p,paddingRight:b,paddingBottom:h,paddingLeft:f,paddingUnit:k,borderSizeTop:v,borderSizeRight:y,borderSizeBottom:w,borderSizeLeft:C,borderRadiusTopRight:_,borderRadiusBottomRight:E,borderRadiusBottomLeft:x,borderRadiusTopLeft:S,borderRadiusUnit:T,borderColor:M,borderColorOpacity:B,backgroundColor:z,backgroundColorOpacity:I,gradient:A,gradientSelector:R,textColor:D,linkColor:N,linkColorHover:F,bgImage:P,bgOptions:H,verticalAlignment:V,zindex:G,innerZindex:j,alignment:U,fontFamily:W,fontFamilyFallback:q,fontWeight:$,fontSize:Z,fontSizeUnit:K,textTransform:J,shapeDividers:Y,gridId:Q,useDynamicData:X,dynamicContentType:ee,bgImageInline:te,useInnerContainer:ae,sizing:le,order:ne,display:re,displayTablet:ie,displayMobile:oe}=a;let se=d;se||(se=generateBlocksDefaults.container.containerWidth);let ce="";W&&q&&(ce=", "+q);const ue=!!P||X&&""!==ee,ge=Xs("image",t),de=Xs("gradient",t);let pe=[];return pe[".editor-styles-wrapper .gb-container-"+r]=[{"background-color":mi(z,I),color:D,"border-radius":Ks(S,_,E,x,T),"text-align":U,"font-family":W+ce,"font-weight":$,"text-transform":J,"font-size":L(Z,K),"border-color":mi(M,B)}],Ws(pe,".editor-styles-wrapper .gb-container-"+r,a),Gs(pe,".editor-styles-wrapper .gb-container-"+r,a),js(pe,".editor-styles-wrapper .gb-container-"+r,a),Us(pe,".editor-styles-wrapper .gb-container-"+r,a),ae||pe[".editor-styles-wrapper .gb-container-"+r].push({padding:Ks(p,b,h,f,k)}),ue&&"element"===H.selector&&ge?pe[".editor-styles-wrapper .gb-container-"+r].push({"background-image":te?null:ge,"background-size":H.size,"background-position":H.position,"background-repeat":H.repeat,"background-attachment":H.attachment}):A&&"element"===R&&pe[".editor-styles-wrapper .gb-container-"+r].push({"background-image":de}),ae&&((ue&&"pseudo-element"===H.selector||G||A&&"pseudo-element"===R)&&pe[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),(ue&&"pseudo-element"===H.selector||A&&"pseudo-element"===R)&&(pe[".editor-styles-wrapper .gb-container-"+r].push({overflow:"hidden"}),pe[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}])),(ue&&"pseudo-element"===H.selector||A&&"pseudo-element"===R)&&(pe[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}]),pe[".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:D}],(v||y||w||C)&&pe[".editor-styles-wrapper .gb-container-"+r].push({"border-width":Ks(v,y,w,C,"px"),"border-style":"solid"}),ue&&"pseudo-element"===H.selector&&(pe[".gb-container-"+r+":before"]=[{content:'""',"background-image":ge,"background-repeat":H.repeat,"background-position":H.position,"background-size":H.size,"background-attachment":H.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":Ks(S,_,E,x,T),"pointer-events":"none"}],void 0!==H.opacity&&1!==H.opacity&&pe[".gb-container-"+r+":before"].push({opacity:H.opacity})),A&&"pseudo-element"===R&&(pe[".gb-container-"+r+":after"]=[{content:'""',"background-image":de,"z-index":"0 !important",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","pointer-events":"none"}]),pe[".editor-styles-wrapper .gb-container-"+r+" a, .editor-styles-wrapper .gb-container-"+r+" a:visited"]=[{color:N}],pe[".editor-styles-wrapper .gb-container-"+r+" a:hover"]=[{color:F}],ae&&(eo("minHeight",le)&&!i&&pe[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"row","align-items":V}),pe[".gb-container-"+r+" > .gb-inside-container"]=[{padding:Ks(p,b,h,f,k),width:!(!eo("minHeight",le)||i)&&"100%"}],(j||0===j)&&pe[".gb-container-"+r+" > .gb-inside-container"].push({"z-index":j,position:"relative"}),"contained"!==g||i||pe[".gb-container-"+r+" > .gb-inside-container"].push({"max-width":L(se,"px"),"margin-left":"auto","margin-right":"auto"}),pe["#block-"+l]=[{"max-width":"contained"===u&&!i&&L(se,"px"),"margin-left":"contained"===u&&!i&&"auto","margin-right":"contained"===u&&!i&&"auto"}]),i&&(pe[[".gb-post-template-"+Q+" > .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:eo("width",le),"flex-grow":o,"flex-shrink":s,"flex-basis":c,order:ne}],ae&&pe[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V})),Y.length&&(ae&&pe[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),pe[".gb-container-"+r+" .block-list-appender"]=[{position:"relative","z-index":100}],Y.forEach(((e,t)=>{const a=[],l=t+1;"top"===Y[t].location&&a.push("scaleY(-1)"),Y[t].flipHorizontally&&(a.push("scaleX(-1)"),pe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l]=[{color:mi(Y[t].color,Y[t].colorOpacity),"z-index":Y[t].zindex}],"top"!==Y[t].location&&"bottom"!==Y[t].location||pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===Y[t].location&&pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===Y[t].location&&pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});let n=Y[t].width+"%";100===Y[t].width&&(n="calc("+n+" + 1.3px)"),pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:L(Y[t].height,"px"),width:n}],"top"!==Y[t].location&&"bottom"!==Y[t].location||pe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),Qi({device:n,display:re,displayTablet:ie,displayMobile:oe})&&(pe[".gb-container-"+r+".block-editor-block-list__block > .block-list-appender"]=[{"margin-top":0}]),pe=(0,m.applyFilters)("generateblocks.editor.mainCSS",pe,t,"container"),(0,e.createElement)("style",null,O(pe))}var tc=(0,e.memo)((function(a){const n=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=null==a?void 0:a.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ec,t({device:n},a)),n&&(0,e.createElement)(e.Fragment,null,"Desktop"===n&&(0,e.createElement)(Hs,a),("Tablet"===n||"Mobile"===n)&&(0,e.createElement)(qs,a),"Tablet"===n&&(0,e.createElement)($s,a),"Mobile"===n&&(0,e.createElement)(Zs,a)))}),V),ac=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),lc=t=>{let{clientId:a,isSelected:o,attributes:s}=t;const{isBlockPreview:c}=s,u=0<W(a),{selectBlock:g}=(0,l.useDispatch)("core/block-editor");let d=!1;return!c&&(o&&(d=(0,e.createElement)((function(){return(0,e.createElement)(n.Inserter,{position:"bottom right",rootClientId:a,__experimentalIsQuick:!0,renderToggle:t=>{let{onToggle:a,disabled:l,isOpen:n,blockTitle:o,hasSingleBlockType:s}=t;const c=s?(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"),o):(0,i._x)("Add block","Generic label for block inserter button","generateblocks");return(0,e.createElement)(r.Tooltip,{text:c},(0,e.createElement)(r.Button,{className:"block-editor-button-block-appender",onClick:a,"aria-haspopup":s?void 0:"true","aria-expanded":s?void 0:n,disabled:l,label:c},(0,e.createElement)(r.Icon,{icon:ac})))},isAppender:!0})}),null)),u||o||(d=(0,e.createElement)(r.Button,{className:"gblocks-container-selector",onClick:()=>g(a),"aria-label":(0,i.__)("Select Container","generateblocks")},(0,e.createElement)("span",{className:"gblocks-container-selector__icon"},p("container")))),(0,m.applyFilters)("generateblocks.editor.containerAppender",d,{clientId:a,isSelected:o,attributes:s}))};function nc(a){const{attributes:r,clientId:i,name:o,filterTagName:c,allShapes:u,deviceType:g,containerRef:d}=a,{uniqueId:p,className:b,anchor:h,tagName:f,backgroundColor:k,isGrid:v,bgOptions:y,bgImageInline:w,bgImage:C,align:_,isBlockPreview:E=!1,useInnerContainer:x}=r,S=c((0,m.applyFilters)("generateblocks.frontend.containerTagName",f,r)),T=0<W(i),M=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]);let B=!!k||!!C||r.borderSizeTop||r.borderSizeRight||r.borderSizeBottom||r.borderSizeLeft;B=(0,m.applyFilters)("generateblocks.editor.containerHasStyling",B,a);let z={className:s()({"gb-container":!0,[`gb-container-${p}`]:!0,[`${b}`]:void 0!==b,"gb-container-empty":!T&&!E,"gb-container-visual-guides":!(T||B||a.isSelected||E),[`align${_}`]:M}),id:h||null,"data-align":_&&!M?_:null,ref:d};const I=Qs(a);if(w&&I){let e="background-image";"element"!==y.selector&&(e="--"+e),z.style={[e]:"url("+I+")"}}z=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",z,"generateblocks/container",r);const O=(0,n.useBlockProps)(z),L=(0,n.useInnerBlocksProps)(x?{className:"gb-inside-container"}:O,{templateLock:(0,m.applyFilters)("generateblocks.editor.containerTemplateLock",!1,a),renderAppender:()=>(0,e.createElement)(lc,{clientId:i,isSelected:a.isSelected,attributes:r})});(0,m.doAction)("generateblocks.editor.renderBlock",{...a,ref:d});const A=x?O:L;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tc,t({},a,{deviceType:g})),(0,e.createElement)(Ts,{name:o,clientId:i,align:_},(0,e.createElement)(Fs,{isGrid:v,uniqueId:p},(0,e.createElement)(S,A,(0,e.createElement)(e.Fragment,null,x?(0,e.createElement)("div",L,L.children):L.children,(0,e.createElement)(Ps,{attributes:r,allShapes:u}))))))}function rc(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)(h.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,e.createElement)(h.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));let m=generateBlocksInfo.imagePlaceholders.standard;c&&c<500&&c===u&&(m=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:m,alt:"",width:c||1e3,height:u||650}),b)),(0,e.createElement)("div",{className:"gblocks-image__placeholder",style:{width:!s&&c?c:null}},f)}function ic(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 oc(a){const{src:l,alt:i,title:o,anchorAttributes:c,imageRef:u,setLoadedNaturalSize:g,naturalWidth:d,naturalHeight:p,attributes:b,temporaryURL:h}=a,{uniqueId:f,anchor:k,mediaId:v,dynamicImage:y,useDynamicData:w,className:C,align:_}=b,E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${f}`]:!0,[`${C}`]:void 0!==C,[`align${_}`]:""!==_}),id:k||null,width:d,height:p,src:h||l,alt:i,title:o},"generateblocks/image",b);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ic,c,(0,e.createElement)("img",t({},E,{ref:u,onLoad:e=>{var t,a;g({loadedNaturalWidth:null===(t=e.target)||void 0===t?void 0:t.naturalWidth,loadedNaturalHeight:null===(a=e.target)||void 0===a?void 0:a.naturalHeight})}})),h&&(0,e.createElement)(r.Spinner,null)),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/dynamicImage":!!w&&parseInt(y),"generateblocks/mediaId":!w&&v}},(0,e.createElement)(n.InnerBlocks,{allowedBlocks:["generateblocks/headline"],renderAppender:!1})))}const sc={className:"block-editor-block-settings-menu__popover",position:"bottom right"};function cc(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];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 uc(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,h="generateblocks/button"===o?"target":"openInNewWindow",f=a[h],k="generateblocks/button"===o?p:s;return(0,e.createElement)(e.Fragment,null,d?(0,e.createElement)(cc,{marginBottom:!!g}):(0,e.createElement)(n.URLInput,{className:"gblocks-link-url",value:k,onChange:e=>l({href:e})}),(0,m.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({[h]: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 gc(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:sc,contentClassName:"gblocks-link-control-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.ToolbarButton,{icon:tr,label:c,onClick:l,"aria-expanded":a,isPressed:!!s})},renderContent:()=>(0,e.createElement)(uc,t)})}var dc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),pc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),bc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),mc=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function hc(t){const{attributes:a,setAttributes:o,deviceType:s}=t,{align:c}=a,{wideControlsEnabled:u=!1}=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return{wideControlsEnabled:t().alignWide}}),[]),g={left:Fe,center:Pe,right:He,floatLeft:dc,floatRight:pc,wide:bc,full:mc},d=c?g[c]:g[Yn("alignment",t)]||Fe,p=e=>o({[Yn("alignment",t,!0)]:e!==Yn("alignment",t)?e:"",align:""}),b=[{icon:Fe,title:(0,i.__)("Align left","generateblocks"),onClick:()=>p("left"),isActive:"left"===Yn("alignment",t)},{icon:Pe,title:(0,i.__)("Align center","generateblocks"),onClick:()=>p("center"),isActive:"center"===Yn("alignment",t)},{icon:He,title:(0,i.__)("Align right","generateblocks"),onClick:()=>p("right"),isActive:"right"===Yn("alignment",t)},{icon:dc,title:(0,i.__)("Float left","generateblocks"),onClick:()=>p("floatLeft"),isActive:"floatLeft"===Yn("alignment",t)},{icon:pc,title:(0,i.__)("Float right","generateblocks"),onClick:()=>p("floatRight"),isActive:"floatRight"===Yn("alignment",t)}];return u&&"Desktop"===s&&b.push({icon:bc,title:(0,i.__)("Wide width","generateblocks"),onClick:()=>o({align:"wide"!==c?"wide":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"wide"===c},{icon:mc,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 fc(t){const{attributes:a,setAttributes:o,onSelectImage:s,onUploadError:c,onResetImage:u,imageUrl:d,canUploadImage:b,clientId:m,deviceType:h}=t,{mediaId:f,caption:k}=a,{insertBlocks:v}=(0,l.useDispatch)("core/block-editor"),y=W(m);return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(hc,{attributes:a,setAttributes:o,deviceType:h}),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,m)},showTooltip:!0})),!!d&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(gc,{attributes:a,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)(r.MenuItem,{onClick:u},(0,i.__)("Reset")))))}function kc(a){var r,i;const{attributes:o,setAttributes:c,name:u,clientId:g,deviceType:d,temporaryURL:p}=a,{uniqueId:b,useDynamicData:h,dynamicContentType:f,href:k,openInNewWindow:v,relNoFollow:y,relSponsored:w,sizeSlug:C,className:_,align:E}=o,x=(0,e.useRef)(),S=(0,e.useRef)(),[{loadedNaturalWidth:T,loadedNaturalHeight:M},B]=(0,e.useState)({}),{naturalWidth:z,naturalHeight:I}=(0,e.useMemo)((()=>{var e,t;return{naturalWidth:(null===(e=x.current)||void 0===e?void 0:e.naturalWidth)||T||void 0,naturalHeight:(null===(t=x.current)||void 0===t?void 0:t.naturalHeight)||M||void 0}}),[T,M,null===(r=x.current)||void 0===r?void 0:r.complete]),{getBlockRootClientId:O}=(0,l.useSelect)((e=>e("core/block-editor")),[]),L=O(g),A=Js(a),R=Ys(A,C),D=(0,m.applyFilters)("generateblocks.editor.dynamicImageFallback",R,a),N=h&&f?D:o.mediaUrl,F=h&&f?null==A?void 0:A.alt_text:o.alt,P=h&&f?null==A||null===(i=A.title)||void 0===i?void 0:i.rendered:o.title,H=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return t().supportsLayout||!1}),[]),V=(0,n.useBlockProps)({className:s()({"gb-block-image":!0,[`gb-block-image-${b}`]:!0,"is-applying":!!p,[`align${E}`]:!!L&&H}),"data-align":L&&!H?E:null,ref:S});V.className.includes(_)&&(V.className=V.className.replace(_,"").trim());const G=!h||h&&!f,j={src:N,alt:F,title:P,setAttributes:c,anchorAttributes:{href:k,openInNewWindow:v,relNoFollow:y,relSponsored:w,disabled:!0},imageRef:x,setLoadedNaturalSize:B,naturalWidth:z,naturalHeight:I,attributes:o,temporaryURL:p};return(0,m.doAction)("generateblocks.editor.renderBlock",{...a,ref:x}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(fc,t({},a,{imageUrl:N,canUploadImage:G,deviceType:d})),(0,e.createElement)(Ts,{name:u,clientId:g,align:E},(0,e.createElement)(Bs,{tagName:"figure",htmlAttrs:V},p||N?(0,e.createElement)(oc,j):(0,e.createElement)(rc,t({},a,{canUploadImage:G})))))}function vc(t){const{name:a,attributes:l,context:r}=t,o=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,es(l,Object.keys(Os))),{dynamicContentType:s,dynamicLinkType:c,termSeparator:u}=o,g=((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,q.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}=fs(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){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=As[e];return n&&"function"==typeof n?n(t,a,l):Rs(0,a,l)}(e.dynamicContentType,s,u,g)})(o,a),d=function(e){return{"generateblocks/headline":zs,"generateblocks/button":Is,"generateblocks/container":nc,"generateblocks/image":kc}[e]}(a),p="generateblocks/headline"===a?l.content:l.text;let b=l.dynamicContentType?g:p;c&&"terms"===s&&"generateblocks/headline"===a&&(b=g.split(u).map(((t,a,l)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",null,t),a+1!==l.length&&u)))),"terms"===s&&"generateblocks/button"===a&&(b=g.split(u)[0]);const m=!b||"generateblocks/container"!==a&&"generateblocks/image"!==a||!function(e){try{return new URL(e),!0}catch(e){return!1}}(b)&&isNaN(parseInt(b))?void 0:b,h=Object.assign({},l,{content:"generateblocks/headline"===a?b:void 0,text:"generateblocks/button"===a?b:void 0,dynamicImage:m}),f=Object.assign({},t,{InnerContent:l.dynamicContentType?n.RichText.Content:n.RichText,attributes:h});return(0,e.createElement)(d,f)}var yc=t=>a=>{const{attributes:l,setAttributes:n,context:r,name:i}=a,o=l.useDynamicData&&(l.dynamicContentType||l.dynamicLinkType)?Object.assign({},a,{ContentRenderer:vc}):a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,o),(0,e.createElement)(Ss,{context:r,attributes:l,setAttributes:n,name:i}))};function wc(t){let{clientId:a,setAttributes:n}=t;const{label:i,instructions:o,templates:s}=(0,e.useContext)(Ec),{replaceInnerBlocks:c}=(0,l.useDispatch)("core/block-editor");return(0,e.createElement)("div",{className:"wp-block"},(0,e.createElement)(r.Placeholder,{label:i,instructions:o,className:"gb-select-layout"},(0,e.createElement)("div",{className:"gb-templates-wrapper"},s&&s.map((t=>(0,e.createElement)(r.Button,{key:`template-${t.id}`,className:"gb-template-selector-button",onClick:()=>{c(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks)),t.attributes&&n(t.attributes)}},t.icon,(0,e.createElement)("span",null,t.label)))))))}const Cc={label:"Label",instructions:"Instructions...",templates:[]},_c=(0,e.createContext)(Cc);var Ec=_c,xc=(0,j.compose)(ne,(a=>l=>{const{clientId:n}=l,r=W(n),i=(0,m.applyFilters)("generateblocks.editor.templateContext",Cc,l);return(0,e.createElement)(_c.Provider,{value:i},0<i.templates.length&&0===r?(0,e.createElement)(a,t({},l,{ContentRenderer:wc})):(0,e.createElement)(a,l))}),Se,yc,te,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{if(void 0!==l.isDynamic&&l.isDynamic||n({isDynamic:!0}),!ae(l)&&le(l.blockVersion,3)){!function(e){let{attributes:t,setAttributes:a}=e;const l={},n={};t.isGrid&&(t.width&&(l.width=t.width+"%",n.width=""),(t.widthTablet||t.autoWidthTablet)&&(l.widthTablet=t.autoWidthTablet?"auto":t.widthTablet+"%",n.widthTablet="",n.autoWidthTablet=!1),(t.widthMobile||t.autoWidthMobile)&&(l.widthMobile=t.autoWidthMobile?"auto":t.widthMobile+"%",n.widthMobile="",n.autoWidthMobile=!1)),t.minHeight&&(l.minHeight=t.minHeight+t.minHeightUnit,n.minHeight=!1,n.minHeightUnit="px"),t.minHeightTablet&&(l.minHeightTablet=t.minHeightTablet+t.minHeightUnitTablet,n.minHeightTablet=!1,n.minHeightUnitTablet="px"),t.minHeightMobile&&(l.minHeightMobile=t.minHeightMobile+t.minHeightUnitMobile,n.minHeightMobile=!1,n.minHeightUnitMobile="px"),(Object.keys(n).length||Object.keys(l).length)&&a({...n,sizing:{...t.sizing,...l}})}({attributes:l,setAttributes:n});const e={};["","Tablet","Mobile"].forEach((t=>{l["flexBasis"+t]&&!isNaN(l["flexBasis"+t])&&(e["flexBasis"+t]=l["flexBasis"+t]+l.flexBasisUnit)})),n({useInnerContainer:!0,...e})}if(void 0===l.blockVersion||l.blockVersion<2){let e=l.gradient&&"pseudo-element"===l.gradientSelector&&!x(l.innerZindex);e||(e=!!l.bgImage&&void 0!==l.bgOptions.selector&&"pseudo-element"===l.bgOptions.selector),e||(e=void 0!==l.useAdvBackgrounds&&l.useAdvBackgrounds),e&&n({innerZindex:1})}if(!ae(l)&&le(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.container,t=void 0!==l.useGlobalStyle&&l.useGlobalStyle,a={},r=[];t||r.push("paddingTop","paddingRight","paddingBottom","paddingLeft"),l.isGrid&&r.push("width","widthMobile"),l.gradient&&r.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),a.sizing||(a.sizing={}),r.forEach((t=>{"width"===t||"widthMobile"===t?x(l[t])?a.sizing[t]=String(l[t]+"%"):a.sizing[t]=String(e[t]+"%"):x(l[t])||(a[t]=e[t])})),Object.keys(a).length>0&&n(a)}void 0===l.bgOptions.selector&&n({bgOptions:{...l.bgOptions,selector:"element"}}),void 0===l.bgOptions.opacity&&n({bgOptions:{...l.bgOptions,opacity:1}}),le(l.blockVersion,3)&&n({blockVersion:3})}),[]),(0,e.createElement)(t,a)}))((a=>{const{clientId:n,attributes:r,setAttributes:i,ContentRenderer:o=nc}=a,{anchor:s,fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d=!1,gridId:p,isGrid:b,isQueryLoopItem:h}=r,f=(0,e.useRef)(null),k=Xn(),v=(0,m.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,l.useSelect)((e=>e("core/block-editor")),[]);return(0,e.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&&!h&&i({isGrid:!1,gridId:""})}else b&&!h&&i({isGrid:!1,gridId:""})})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(us,{attributes:r,setAttributes:i}),(0,e.createElement)(ko,{attributes:r,setAttributes:i},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:k})),(0,e.createElement)(ds,{anchor:s,attributes:r,setAttributes:i,filterTagName:y}),(0,e.createElement)(ps,{fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d}),(0,e.createElement)(o,t({},a,{generateBlocksInfo:generateBlocksInfo,filterTagName:y,allShapes:w,deviceType:k,containerRef:f})))})),Sc={uniqueId:{type:"string",default:""},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:""},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Tc=[{attributes:Object.assign({},Te(Sc,Ee,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(t){let{attributes:a}=t;const{uniqueId:l,tagName:r,elementId:i,cssClasses:o,isGrid:c,align:u}=a;let g={className:s()({"gb-container":!0,[`gb-container-${l}`]:!0,[`${o}`]:""!==o,[`align${u}`]:!!u&&!c}),id:i||null};return g=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",g,"generateblocks/container",a),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:c,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-grid-column":!0,[`gb-grid-column-${l}`]:!0})},t)},(0,e.createElement)(Bs,{tagName:r,htmlAttrs:g},(0,m.applyFilters)("generateblocks.frontend.insideContainer","",a),(0,e.createElement)("div",{className:s()({"gb-inside-container":!0})},(0,e.createElement)(n.InnerBlocks.Content,null))))}}];var Mc=Tc;const Bc=(0,j.createHigherOrderComponent)((t=>a=>{const{name:o,attributes:s,clientId:c}=a;if("generateblocks/container"!==o)return(0,e.createElement)(t,a);const{variantRole:u}=s,{insertBlocks:d}=(0,l.useDispatch)("core/block-editor"),{getBlocksByClientId:p}=(0,l.useSelect)((e=>e("core/block-editor")),[]),b=(0,m.applyFilters)("generateblocks.editor.showButtonAppender",!0,a);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,"button-container"===u&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,!!b&&(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:ac,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=p(c)[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=p(e)[0],a=(0,g.cloneBlock)(t,{uniqueId:""});d(a,void 0,c)}}else 0===t.length&&d((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})))),(0,e.createElement)(t,a))}),"withButtonContainer");(0,m.addFilter)("editor.BlockEdit","generateblocks/button-container/InspectorControls",Bc),(0,m.addFilter)("generateblocks.editor.containerAppender","generateblocks/button-container/BlockAppender",((e,t)=>{let{attributes:a}=t;const{variantRole:l}=a;return"button-container"===l?"":e})),(0,g.registerBlockVariation)("generateblocks/container",{name:"button-container",title:(0,i.__)("Button Container"),description:(0,i.__)("Group your buttons in a Container.","generateblocks"),icon:p("button-container"),scope:["block"],attributes:{variantRole:"button-container",display:"flex"},isActive:e=>"button-container"===e.variantRole,innerBlocks:[["generateblocks/button",generateBlocksStyling.button]]});const zc=Object.assign({},Te(Sc,Ee,generateBlocksDefaults.container),Os);(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:zc,supports:{align:!1,className:!1,html:!1},usesContext:["postId","postType","generateblocks/queryId"],edit:xc,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Mc,__experimentalLabel:e=>e.isQueryLoopItem?(0,i.__)("Post Template","generateblocks"):(0,i.__)("Container","generateblocks")});const Ic=[{icon:Fe,title:(0,i.__)("Align buttons left","generateblocks"),align:"left"},{icon:Pe,title:(0,i.__)("Align buttons center","generateblocks"),align:"center"},{icon:He,title:(0,i.__)("Align buttons right","generateblocks"),align:"right"}];var Oc=t=>{const{attributes:a,setAttributes:o,clientId:s,deviceType:c}=t,{alignment:u,alignmentTablet:d,alignmentMobile:p,isPagination:b}=a,{insertBlocks:h}=(0,l.useDispatch)("core/block-editor"),{getBlocksByClientId:f}=(0,l.useSelect)((e=>e("core/block-editor")),[]),k=(0,m.applyFilters)("generateblocks.editor.showButtonAppender",!0,t);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:ac,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:""});h(a,void 0,s)}}else 0===t.length&&h((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,s)}},showTooltip:!0})),"Desktop"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:u,alignmentControls:Ic,onChange:e=>{o({alignment:e})}}),"Tablet"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:d,alignmentControls:Ic,onChange:e=>{o({alignmentTablet:e})}}),"Mobile"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:p,alignmentControls:Ic,onChange:e=>{o({alignmentMobile:e})}}))};function Lc(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}class Ac extends e.Component{render(){const t=(0,m.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&&Lc(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&Lc(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,m.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Rc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,marginTopTablet:n,marginRightTablet:r,marginBottomTablet:i,marginLeftTablet:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{"margin-top":L(n,s),"margin-right":L(r,s),"margin-bottom":L(i,s),"margin-left":L(o,s),"justify-content":Lc(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Lc(l)}],c=(0,m.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}class Dc extends e.Component{render(){const t=(0,m.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&&Lc(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&Lc(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,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Nc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentMobile:l,marginTopMobile:n,marginRightMobile:r,marginBottomMobile:i,marginLeftMobile:o,marginUnit:s,stackMobile:c,fillHorizontalSpaceMobile:u}=t;let g=[];return g[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{display:!!u&&"block","margin-top":L(n,s),"margin-right":L(r,s),"margin-bottom":L(i,s),"margin-left":L(o,s),"justify-content":Lc(l),"flex-direction":!!c&&"column","align-items":!!c&&Lc(l)}],g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!c&&"column","align-items":!!c&&Lc(l),"justify-content":Lc(l)}],u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],g[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),c&&u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),g=(0,m.applyFilters)("generateblocks.editor.mobileCSS",g,this.props,"button-container"),(0,e.createElement)("style",null,O(g))}}class Fc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,marginTop:n,marginRight:r,marginBottom:i,marginLeft:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{margin:Ks(n,r,i,o,s),"justify-content":Lc(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Lc(l)}],c=(0,m.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}var Pc=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Fc,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Ac,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Rc,t),"Tablet"===a&&(0,e.createElement)(Dc,t),"Mobile"===a&&(0,e.createElement)(Nc,t)))}),V),Hc=(0,j.compose)(ne,Se,te,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{void 0!==l.isDynamic&&l.isDynamic||n({isDynamic:!0}),(void 0===l.blockVersion||l.blockVersion<2)&&(l.stack||l.fillHorizontalSpace)&&(l.stack&&n({stackTablet:!0,stackMobile:!0}),l.fillHorizontalSpace&&n({fillHorizontalSpaceTablet:!0,fillHorizontalSpaceMobile:!0})),(void 0===l.blockVersion||l.blockVersion<2)&&n({blockVersion:2})}),[]),(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,h]=(0,e.useState)(0),f=Xn(),k=W(o),{removeBlock:v}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{1===b&&0===k&&v(o),h(k)}),[k]);let y={className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${g}`]:!0,[`${d}`]:void 0!==d}),id:p||null};y=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",y,"generateblocks/button-container",r);const w=(0,n.useBlockProps)(y);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oc,t({},a,{deviceType:f})),(0,e.createElement)(ko,{attributes:r,setAttributes:i},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:f})),(0,e.createElement)(I,{anchor:p,setAttributes:i}),(0,e.createElement)(Pc,t({},a,{deviceType:f})),(0,e.createElement)(Ts,{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]]})))))})),Vc={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 Gc=[{attributes:Object.assign({},Te(Vc,ye,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(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i}=a;let o={id:r||void 0,className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/button-container",a),(0,e.createElement)("div",o,(0,e.createElement)(n.InnerBlocks.Content,null))}}];var jc=Gc;const Uc=Te(Vc,ye,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:Uc,supports:{className:!1,html:!1,inserter:!1},usesContext:["generateblocks/queryId","generateblocks/query"],edit:Hc,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:jc,__experimentalLabel:e=>{let{isPagination:t}=e;return t?(0,i.__)("Pagination","generateblocks"):(0,i.__)("Buttons","generateblocks")}});var Wc=t=>{const{attributes:a,clientId:o,setAttributes:s}=t,{insertBlocks:c,replaceBlocks:u}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:d,getBlocksByClientId:b,getBlockAttributes:h,getSelectedBlockClientIds:f,getBlock:k}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{url:v,target:y,relNoFollow:w,relSponsored:C,useDynamicData:_,dynamicLinkType:E,display:x,displayTablet:S,displayMobile:T,buttonType:M}=a,B=Xn(),z=_&&E,I=(0,m.applyFilters)("generateblocks.editor.showButtonAppender",!0,t),O=(0,m.applyFilters)("generateblocks.editor.showButtonContainerControl",!0,t),L=(0,m.applyFilters)("generateblocks.editor.showButtonLinkControl","link"===M,t);let A=!1;const R=d(o,"generateblocks/button-container",!0)[0],D=d(o,"generateblocks/container",!0)[0];return R?A=R:D&&"button-container"===h(D).variantRole&&(A=D),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BlockControls,null,!!O&&!A&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{icon:p("button-container"),label:(0,i.__)("Add to Button Container","generateblocks"),onClick:()=>{const e=f(),t=e.map((e=>{const t=k(e);return(0,g.createBlock)(t.name,t.attributes,t.innerBlocks)})),a=(0,g.createBlock)("generateblocks/container",{display:"flex",variantRole:"button-container"},t);u(e,a)},showTooltip:!0})),(0,e.createElement)(r.ToolbarGroup,null,I&&A&&(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:ac,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=b(o)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});c(t,void 0,A)},showTooltip:!0})),!Qi({device:B,display:x,displayTablet:S,displayMobile:T})&&(0,e.createElement)(n.AlignmentToolbar,{value:Yn("alignment",{attributes:a,deviceType:B}),onChange:e=>{s({[Yn("alignment",{attributes:a,deviceType:B},!0)]:e})},alignmentControls:Ge.alignments}),(0,e.createElement)(r.ToolbarGroup,null,(!_||z)&&L&&(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-button-link-dropdown",popoverProps:{className:"block-editor-block-settings-menu__popover",position:"bottom right"},renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.ToolbarButton,{icon:tr,label:v?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks"),onClick:l,"aria-expanded":a,isPressed:!!v})},renderContent:()=>(0,e.createElement)(e.Fragment,null,!_&&(0,e.createElement)(n.URLInput,{className:"gblocks-button-link",value:v,onChange:e=>{s({url:e,hasUrl:!!e})}}),!!_&&(0,e.createElement)("div",{style:{width:"300px","font-style":"italic","margin-bottom":E?"15px":"0"}},(0,i.__)("This button is using a dynamic link.","generateblocks")),(0,m.applyFilters)("generateblocks.editor.urlInputMoreOptions","",a),(!!v||z)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:y||"",onChange:e=>{s({target:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:w||"",onChange:e=>{s({relNoFollow:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:C||"",onChange:e=>{s({relSponsored:e})}})))}))))},qc=t=>{let{anchor:a,ariaLabel:l,buttonType:o,setAttributes:s}=t;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,{anchor:a,setAttributes:s}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("ARIA Label","generateblocks"),help:(0,i.__)("Helpful to people using screen readers.","generateblocks"),value:l,onChange:e=>{s({ariaLabel:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Button type","generateblocks"),value:o,onChange:e=>s({buttonType:e}),options:[{value:"link",label:(0,i.__)("Link","generateblocks")},{value:"button",label:"<button>"}]}))};class $c extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class Zc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,letterSpacingTablet:n,fontSizeTablet:r,fontSizeUnit:i,paddingTopTablet:o,paddingRightTablet:s,paddingBottomTablet:c,paddingLeftTablet:u,paddingUnit:g,borderSizeTopTablet:d,borderSizeRightTablet:p,borderSizeBottomTablet:b,borderSizeLeftTablet:h,borderRadiusTopRightTablet:f,borderRadiusBottomRightTablet:k,borderRadiusBottomLeftTablet:v,borderRadiusTopLeftTablet:y,borderRadiusUnit:w,iconPaddingTopTablet:C,iconPaddingRightTablet:_,iconPaddingBottomTablet:E,iconPaddingLeftTablet:x,iconPaddingUnit:S,iconSizeTablet:T,iconSizeUnit:M,hasButtonContainer:B,alignmentTablet:z}=t;let I=".gb-button-"+a;I=".editor-styles-wrapper "+(B?".gb-button-wrapper ":"")+I;let A=[];return A[I]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"font-size":L(r,i),"letter-spacing":L(n,"em"),"text-align":z}],Ws(A,I,t,"Tablet"),js(A,I,t,"Tablet"),Gs(A,I,t,"Tablet"),Us(A,I,t,"Tablet"),(d||p||b||h)&&A[I].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),A[I+" .gb-icon"]=[{"padding-top":!l&&L(C,S),"padding-right":!l&&L(_,S),"padding-bottom":!l&&L(E,S),"padding-left":!l&&L(x,S),"font-size":L(T,M)}],A=(0,m.applyFilters)("generateblocks.editor.tabletCSS",A,this.props,"button"),(0,e.createElement)("style",null,O(A))}}class Kc extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class Jc extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeText:l,letterSpacingMobile:n,fontSizeMobile:r,fontSizeUnit:i,paddingTopMobile:o,paddingRightMobile:s,paddingBottomMobile:c,paddingLeftMobile:u,paddingUnit:g,borderSizeTopMobile:d,borderSizeRightMobile:p,borderSizeBottomMobile:b,borderSizeLeftMobile:h,borderRadiusTopRightMobile:f,borderRadiusBottomRightMobile:k,borderRadiusBottomLeftMobile:v,borderRadiusTopLeftMobile:y,borderRadiusUnit:w,iconPaddingTopMobile:C,iconPaddingRightMobile:_,iconPaddingBottomMobile:E,iconPaddingLeftMobile:x,iconPaddingUnit:S,iconSizeMobile:T,iconSizeUnit:M,hasButtonContainer:B,alignmentMobile:z}=t;let I=".gb-button-"+a;I=".editor-styles-wrapper "+(B?".gb-button-wrapper ":"")+I;let A=[];return A[I]=[{"padding-top":L(o,g),"padding-right":L(s,g),"padding-bottom":L(c,g),"padding-left":L(u,g),"border-top-left-radius":L(y,w),"border-top-right-radius":L(f,w),"border-bottom-right-radius":L(k,w),"border-bottom-left-radius":L(v,w),"font-size":L(r,i),"letter-spacing":L(n,"em"),"text-align":z}],Ws(A,I,t,"Mobile"),js(A,I,t,"Mobile"),Gs(A,I,t,"Mobile"),Us(A,I,t,"Mobile"),(d||p||b||h)&&A[I].push({"border-top-width":L(d,"px"),"border-right-width":L(p,"px"),"border-bottom-width":L(b,"px"),"border-left-width":L(h,"px"),"border-style":"solid"}),A[I+" .gb-icon"]=[{"padding-top":!l&&L(C,S),"padding-right":!l&&L(_,S),"padding-bottom":!l&&L(E,S),"padding-left":!l&&L(x,S),"font-size":L(T,M)}],A=(0,m.applyFilters)("generateblocks.editor.mobileCSS",A,this.props,"button"),(0,e.createElement)("style",null,O(A))}}class Yc extends e.Component{render(){const t=(0,m.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,fontFamily:g,fontFamilyFallback:d,fontWeight:p,textTransform:b,letterSpacing:h,fontSize:f,fontSizeUnit:k,paddingTop:v,paddingRight:y,paddingBottom:w,paddingLeft:C,paddingUnit:_,borderSizeTop:E,borderSizeRight:x,borderSizeBottom:S,borderSizeLeft:T,borderRadiusTopRight:M,borderRadiusBottomRight:B,borderRadiusBottomLeft:z,borderRadiusTopLeft:I,borderRadiusUnit:A,borderColor:R,borderColorOpacity:D,borderColorHover:N,borderColorHoverOpacity:F,gradient:P,gradientDirection:H,gradientColorOne:V,gradientColorOneOpacity:G,gradientColorStopOne:j,gradientColorTwo:U,gradientColorTwoOpacity:W,gradientColorStopTwo:q,iconPaddingTop:$,iconPaddingRight:Z,iconPaddingBottom:K,iconPaddingLeft:J,iconPaddingUnit:Y,iconSize:Q,iconSizeUnit:X,hasButtonContainer:ee,alignment:te,backgroundColorCurrent:ae,textColorCurrent:le,borderColorCurrent:ne}=t;let re,ie="",oe="",se="";P&&(V&&""!==j&&(oe=" "+j+"%"),U&&""!==q&&(se=" "+q+"%")),P&&(re="linear-gradient("+H+"deg, "+mi(V,G)+oe+", "+mi(U,W)+se+");"),g&&d&&(ie=", "+d);let ce=".gb-button-"+a;ce=".editor-styles-wrapper "+(ee?".gb-button-wrapper ":"")+ce;let ue=[];return ue[ce]=[{"background-color":mi(n,r),"background-image":re,color:o,padding:Ks(v,y,w,C,_),"border-radius":Ks(I,M,B,z,A),"font-family":g+ie,"font-weight":p,"text-transform":b,"font-size":L(f,k),"text-align":te,"letter-spacing":L(h,"em"),"border-color":mi(R,D)}],Ws(ue,ce,t),js(ue,ce,t),Gs(ue,ce,t),Us(ue,ce,t),(E||x||S||T)&&ue[ce].push({"border-width":Ks(E,x,S,T,"px"),"border-style":"solid"}),ue[(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",ce)]=[{"background-color":ae,color:le,"border-color":ne}],ue[ce+":hover, "+ce+":focus, "+ce+":active"]=[{"background-color":mi(s,c),color:u,"border-color":mi(N,F)}],ue[ce+" .gb-icon"]=[{padding:!l&&Ks($,Z,K,J,Y),"font-size":L(Q,X)}],ue=(0,m.applyFilters)("generateblocks.editor.mainCSS",ue,this.props,"button"),(0,e.createElement)("style",null,O(ue))}}var Qc=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yc,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)($c,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Zc,t),"Tablet"===a&&(0,e.createElement)(Kc,t),"Mobile"===a&&(0,e.createElement)(Jc,t)))}),V);(0,m.addFilter)("generateblocks.editor.colorGroupItems","generateblocks/button-colors/add-conditional-color-items",(function(e,t){const{name:a,attributes:l}=t,{useDynamicData:n,dynamicContentType:r}=l;if("generateblocks/button"!==a)return e;if((0,m.applyFilters)("generateblocks.editor.addButtonCurrentColors",n&&"pagination-numbers"===r,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},{group:"border",attribute:"borderColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0}];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}));var Xc=(0,j.compose)(ne,Se,yc,te,(t=>a=>{const{attributes:l,setAttributes:n}=a,{hasIcon:r,icon:i,hasUrl:o,url:s,blockVersion:c,gradient:u,useGlobalStyle:g}=l;return(0,e.useEffect)((()=>{if(!r&&i&&n({hasIcon:!0}),o||n({hasUrl:!!s}),ae(l)||!le(c,3)||g||n({display:"inline-flex",alignItems:"center",justifyContent:"center",alignment:"center"}),!ae(l)&&le(c,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.button,t={},a=[];u&&a.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),a.forEach((a=>{x(l[a])||(t[a]=e[a])})),Object.keys(t).length>0&&n(t)}le(c,3)&&n({blockVersion:3})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:n,setAttributes:r,ContentRenderer:i=Is,clientId:o}=a,{anchor:s,ariaLabel:c,fontFamily:u,googleFont:g,googleFontVariants:d,isBlockPreview:p=!1,hasButtonContainer:b,blockVersion:h,buttonType:f,variantRole:k}=n,v=(0,e.useRef)(null),[y,w]=(0,e.useState)({}),C=Xn(),{getBlockParents:_,getBlocksByClientId:E}=(0,l.useSelect)((e=>e("core/block-editor")),[]);return(0,e.useEffect)((()=>{const e=getComputedStyle(v.current);w({fontSize:parseInt(e.fontSize)||""})}),[]),(0,e.useEffect)((()=>{const e=_(o,!0);if(e.length>0){const t=E(e);t.length>0&&"generateblocks/button-container"===t[0].name?r({hasButtonContainer:!0}):b&&r({hasButtonContainer:!1})}else b&&r({hasButtonContainer:!1})}),[]),(0,e.useEffect)((()=>{!ae(n)||h||k||r(generateBlocksStyling.button)}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Wc,a),(0,e.createElement)(ko,{attributes:n,setAttributes:r,computedStyles:y},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:C})),(0,e.createElement)(qc,{anchor:s,ariaLabel:c,buttonType:f,setAttributes:r}),(0,e.createElement)(Qc,t({},a,{deviceType:C})),(0,e.createElement)(ps,{fontFamily:u,googleFont:g,googleFontVariants:d,isBlockPreview:p}),(0,e.createElement)(i,t({},a,{buttonRef:v})))})),eu={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 tu=[{attributes:{...Object.assign({},Te(eu,we,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(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i,text:o,url:c,target:u,relNoFollow:g,relSponsored:d,icon:p,iconLocation:b,removeText:h,ariaLabel:f}=a,k=[];g&&k.push("nofollow"),u&&k.push("noopener","noreferrer"),d&&k.push("sponsored");let v={id:r||void 0,className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,[`${i}`]:""!==i}),href:c||void 0,target:u?"_blank":void 0,rel:k&&k.length>0?k.join(" "):void 0,"aria-label":f||void 0};return v=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",v,"generateblocks/button",a),(0,e.createElement)("a",v,p&&"left"===b&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:_i(p)}}),!h&&(0,e.createElement)(n.RichText.Content,{tagName:"span",className:"button-text",value:o,key:"button-text"}),p&&"right"===b&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:_i(p)}}))}}];var au=tu;function lu(e){return e?(0,i.sprintf)("Post meta: %s",e):(0,i.__)("Post meta","generateblocks")}function nu(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":lu(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":lu(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 ru=Object.assign({},Te(eu,we,generateBlocksDefaults.button),Os);(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:ru,supports:{className:!1},edit:Xc,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:h,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:h||null};v=(0,m.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)(Bs,{tagName:w,htmlAttrs:y},(0,e.createElement)(Ms,{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:au,usesContext:["postId","postType","generateblocks/query","generateblocks/inheritQuery"],__experimentalLabel:e=>nu(e,(0,i.__)("Button","generateblocks"))});var iu=window.wp.richText;const ou=(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"})),su="generateblocks/mark",cu=(0,j.compose)((0,l.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),(0,j.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(t){const a=()=>t.onChange((0,iu.toggleFormat)(t.value,{type:su}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.RichTextShortcut,{type:"primary",character:"m",onUse:a}),(0,e.createElement)(n.RichTextToolbarButton,{icon:ou,title:(0,i.__)("Highlight","generateblocks"),onClick:a,isActive:t.isActive,shortcutType:"access",shortcutCharacter:"m",className:`toolbar-button-with-text toolbar-button__${su}`}))})),uu={title:(0,i.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:cu};function gu(t){let{level:a}=t;const l={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(!l.hasOwnProperty(a))return null;let n="0 0 20 20";return"p"!==a&&"div"!==a||(n="0 0 24 24"),(0,e.createElement)(r.SVG,{width:"24",height:"24",viewBox:n,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(r.Path,{d:l[a]}))}(0,iu.registerFormatType)(su,uu);var du=t=>{let{setAttributes:a,element:l,isCaption:n}=t;return n?null:(0,e.createElement)(r.ToolbarGroup,{isCollapsed:!0,icon:(0,e.createElement)(gu,{level:l}),label:(0,i.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===l,icon:(0,e.createElement)(gu,{level:"h1"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" (0,i.__)("Heading %s","generateblocks"),"1"),onClick:()=>{a({element:"h1"})}},{isActive:"h2"===l,icon:(0,e.createElement)(gu,{level:"h2"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" (0,i.__)("Heading %s","generateblocks"),"2"),onClick:()=>{a({element:"h2"})}},{isActive:"h3"===l,icon:(0,e.createElement)(gu,{level:"h3"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" (0,i.__)("Heading %s","generateblocks"),"3"),onClick:()=>{a({element:"h3"})}},{isActive:"h4"===l,icon:(0,e.createElement)(gu,{level:"h4"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" (0,i.__)("Heading %s","generateblocks"),"4"),onClick:()=>{a({element:"h4"})}},{isActive:"h5"===l,icon:(0,e.createElement)(gu,{level:"h5"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" (0,i.__)("Heading %s","generateblocks"),"5"),onClick:()=>{a({element:"h5"})}},{isActive:"h6"===l,icon:(0,e.createElement)(gu,{level:"h6"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" -(0,i.__)("Heading %s","generateblocks"),"6"),onClick:()=>{a({element:"h6"})}},{isActive:"p"===l,icon:(0,e.createElement)(gu,{level:"p"}),title:(0,i.__)("Paragraph","generateblocks"),onClick:()=>{a({element:"p"})}},{isActive:"div"===l,icon:(0,e.createElement)(gu,{level:"div"}),title:(0,i.__)("Div","generateblocks"),onClick:()=>{a({element:"div"})}}]})},pu=(0,e.memo)((function(t){const{attributes:a,setAttributes:l}=t,{element:r,isCaption:i,display:o,displayTablet:s,displayMobile:c}=a,u=Xn();return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(du,{setAttributes:l,element:r,isCaption:i}),!Qi({device:u,display:o,displayTablet:s,displayMobile:c})&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.AlignmentToolbar,{value:Yn("alignment",{attributes:a,deviceType:u}),onChange:e=>{l({[Yn("alignment",{attributes:a,deviceType:u},!0)]:e})},alignmentControls:Ge.alignments})))}),((e,t)=>["element","alignment","alignmentTablet","alignmentMobile","display","displayTablet","displayMobile"].every((a=>e.attributes[a]===t.attributes[a]))&&e.deviceType===t.deviceType));function bu(t){const{onChange:a,tagName:l,isCaption:n}=t,o=Xn(),s=(0,m.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 mu=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)(z,t),(0,e.createElement)(bu,{isCaption:r,tagName:i,onChange:e=>{l({element:e}),o||s||c||u||l("p"===e?{marginUnit:"em"}:{marginUnit:g})}}))};class hu extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class fu extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignmentTablet:r,fontSizeTablet:i,fontSizeUnit:o,lineHeightTablet:s,lineHeightUnit:c,letterSpacingTablet:u,paddingTopTablet:g,paddingRightTablet:d,paddingBottomTablet:p,paddingLeftTablet:b,paddingUnit:h,borderSizeTopTablet:f,borderSizeRightTablet:k,borderSizeBottomTablet:v,borderSizeLeftTablet:y,borderRadiusTopRightTablet:w,borderRadiusBottomRightTablet:C,borderRadiusBottomLeftTablet:_,borderRadiusTopLeftTablet:E,borderRadiusUnit:x,iconPaddingTopTablet:S,iconPaddingRightTablet:T,iconPaddingBottomTablet:M,iconPaddingLeftTablet:B,iconPaddingUnit:z,iconSizeTablet:I,iconSizeUnit:A,removeText:R,displayTablet:N,inlineWidthTablet:D}=t,F=n+".gb-headline-"+l;let P=[];return P[".editor-styles-wrapper "+F]=[{"text-align":r,"font-size":L(i,o),"line-height":L(s,c),"letter-spacing":L(u,"em"),"padding-top":L(g,h),"padding-right":L(d,h),"padding-bottom":L(p,h),"padding-left":L(b,h),"border-top-left-radius":L(E,x),"border-top-right-radius":L(w,x),"border-bottom-right-radius":L(C,x),"border-bottom-left-radius":L(_,x)}],Ws(P,".editor-styles-wrapper "+F,t,"Tablet"),Us(P,".editor-styles-wrapper "+F,t,"Tablet"),Gs(P,".editor-styles-wrapper "+F,t,"Tablet"),js(P,".editor-styles-wrapper "+F,t,"Tablet"),(f||k||v||y)&&P[".editor-styles-wrapper "+F].push({"border-top-width":L(f,"px"),"border-right-width":L(k,"px"),"border-bottom-width":L(v,"px"),"border-left-width":L(y,"px"),"border-style":"solid"}),P[F+" .gb-icon"]=[{"padding-top":!R&&L(S,z),"padding-right":!R&&L(T,z),"padding-bottom":!R&&L(M,z),"padding-left":!R&&L(B,z)}],P[F+" .gb-icon svg"]=[{width:L(I,A),height:L(I,A)}],D&&(P['.gb-is-root-block[data-block="'+a+'"]']=[{display:N}]),P=(0,m.applyFilters)("generateblocks.editor.tabletCSS",P,this.props,"text"),(0,e.createElement)("style",null,O(P))}}class ku extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class vu extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignmentMobile:r,fontSizeMobile:i,fontSizeUnit:o,lineHeightMobile:s,lineHeightUnit:c,letterSpacingMobile:u,paddingTopMobile:g,paddingRightMobile:d,paddingBottomMobile:p,paddingLeftMobile:b,paddingUnit:h,borderSizeTopMobile:f,borderSizeRightMobile:k,borderSizeBottomMobile:v,borderSizeLeftMobile:y,borderRadiusTopRightMobile:w,borderRadiusBottomRightMobile:C,borderRadiusBottomLeftMobile:_,borderRadiusTopLeftMobile:E,borderRadiusUnit:x,iconPaddingTopMobile:S,iconPaddingRightMobile:T,iconPaddingBottomMobile:M,iconPaddingLeftMobile:B,iconPaddingUnit:z,iconSizeMobile:I,iconSizeUnit:A,removeText:R,displayMobile:N,inlineWidthMobile:D}=t,F=n+".gb-headline-"+l;let P=[];return P[".editor-styles-wrapper "+F]=[{"text-align":r,"font-size":L(i,o),"line-height":L(s,c),"letter-spacing":L(u,"em"),"padding-top":L(g,h),"padding-right":L(d,h),"padding-bottom":L(p,h),"padding-left":L(b,h),"border-top-left-radius":L(E,x),"border-top-right-radius":L(w,x),"border-bottom-right-radius":L(C,x),"border-bottom-left-radius":L(_,x)}],Ws(P,".editor-styles-wrapper "+F,t,"Mobile"),Us(P,".editor-styles-wrapper "+F,t,"Mobile"),Gs(P,".editor-styles-wrapper "+F,t,"Mobile"),js(P,".editor-styles-wrapper "+F,t,"Mobile"),(f||k||v||y)&&P[".editor-styles-wrapper "+F].push({"border-top-width":L(f,"px"),"border-right-width":L(k,"px"),"border-bottom-width":L(v,"px"),"border-left-width":L(y,"px"),"border-style":"solid"}),P[F+" .gb-icon"]=[{"padding-top":!R&&L(S,z),"padding-right":!R&&L(T,z),"padding-bottom":!R&&L(M,z),"padding-left":!R&&L(B,z)}],P[F+" .gb-icon svg"]=[{width:L(I,A),height:L(I,A)}],D&&(P['.gb-is-root-block[data-block="'+a+'"]']=[{display:N}]),P=(0,m.applyFilters)("generateblocks.editor.mobileCSS",P,this.props,"headline"),(0,e.createElement)("style",null,O(P))}}class yu extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignment:r,backgroundColor:i,backgroundColorOpacity:o,textColor:s,linkColor:c,linkColorHover:u,borderColor:g,borderColorOpacity:d,highlightTextColor:p,fontFamily:b,fontFamilyFallback:h,fontWeight:f,fontSize:k,fontSizeUnit:v,textTransform:y,lineHeight:w,lineHeightUnit:C,letterSpacing:_,paddingTop:E,paddingRight:x,paddingBottom:S,paddingLeft:T,paddingUnit:M,borderSizeTop:B,borderSizeRight:z,borderSizeBottom:I,borderSizeLeft:A,borderRadiusTopRight:R,borderRadiusBottomRight:N,borderRadiusBottomLeft:D,borderRadiusTopLeft:F,borderRadiusUnit:P,iconColor:H,iconColorOpacity:V,iconPaddingTop:G,iconPaddingRight:U,iconPaddingBottom:j,iconPaddingLeft:W,iconPaddingUnit:q,iconSize:$,iconSizeUnit:Z,removeText:K,display:J,inlineWidth:Y}=t;let Q="";b&&h&&(Q=", "+h);const X=n+".gb-headline-"+l;let ee=[];return ee[".editor-styles-wrapper "+X]=[{color:s,"font-family":b+Q,"font-weight":f,"text-transform":y,"text-align":r,"font-size":L(k,v),"line-height":L(w,C),"letter-spacing":L(_,"em")}],Ws(ee,".editor-styles-wrapper "+X,t),Us(ee,".editor-styles-wrapper "+X,t),Gs(ee,".editor-styles-wrapper "+X,t),js(ee,".editor-styles-wrapper "+X,t),ee[".editor-styles-wrapper .gb-container "+X]=[{color:s}],ee[".editor-styles-wrapper "+X].push({"background-color":mi(i,o),color:s,padding:Ks(E,x,S,T,M),"border-radius":Ks(F,R,N,D,P),"border-color":mi(g,d)}),(B||z||I||A)&&ee[".editor-styles-wrapper "+X].push({"border-width":Ks(B,z,I,A,"px"),"border-style":"solid"}),ee[".editor-styles-wrapper "+X+" a"]=[{color:c}],ee[".editor-styles-wrapper "+X+" a:hover"]=[{color:u}],ee[X+" .gb-icon"]=[{padding:!K&&Ks(G,U,j,W,q),color:mi(H,V)}],ee[X+" .gb-icon svg"]=[{width:L($,Z),height:L($,Z)}],ee[X+" .gb-highlight"]=[{color:p}],Y&&(ee['.gb-is-root-block[data-block="'+a+'"]']=[{display:J}]),ee=(0,m.applyFilters)("generateblocks.editor.mainCSS",ee,this.props,"headline"),(0,e.createElement)("style",null,O(ee))}}var wu=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(yu,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(hu,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(fu,t),"Tablet"===a&&(0,e.createElement)(ku,t),"Mobile"===a&&(0,e.createElement)(vu,t)))}),V);const Cu=(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 _u=(0,U.compose)(ne,Se,yc,te,(t=>a=>{const{attributes:l,setAttributes:n}=a,{blockVersion:r,hasIcon:i,iconVerticalAlignment:o,alignment:s}=l;return(0,e.useEffect)((()=>{if(!ae(l)&&le(r,2)){const e={};i&&(e.display="flex"),["","Tablet","Mobile"].forEach((t=>{l["inlineWidth"+t]&&(e["display"+t]=i?"inline-flex":"inline-block"),i&&("above"!==l["iconLocation"+t]&&l["alignment"+t]&&(e["justifyContent"+t]=Lc(s+t)),"inline"===l["iconLocation"+t]&&l["iconVerticalAlignment"+t]&&(e["alignItems"+t]=Lc(o+t)),"above"===l["iconLocation"+t]&&(e["flexDirection"+t]="column"))})),Object.keys(e).length&&n(e)}le(r,2)&&n({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:l,setAttributes:n,ContentRenderer:r=zs,context:i}=a,{anchor:o,fontFamily:s,googleFont:c,googleFontVariants:u,icon:g,hasIcon:d,element:p,isBlockPreview:b=!1}=l,h=(0,e.useRef)(null),[f,k]=(0,e.useState)({}),v=Xn();return(0,e.useEffect)((()=>{!d&&g&&n({hasIcon:!0})}),[]),(0,e.useEffect)((()=>{const e=getComputedStyle(h.current);k({marginTop:parseInt(e.marginTop)||"",marginBottom:parseInt(e.marginBottom)||"",fontSize:parseInt(e.fontSize)||""})}),[p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pu,{attributes:l,setAttributes:n,context:i}),(0,e.createElement)(ko,{attributes:l,setAttributes:n,computedStyles:f},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:v})),(0,e.createElement)(mu,{anchor:o,setAttributes:n,attributes:l}),(0,e.createElement)(wu,t({},a,{deviceType:v})),(0,e.createElement)(ps,{fontFamily:s,googleFont:c,googleFontVariants:u,isBlockPreview:b}),(0,m.applyFilters)("generateblocks.editor.beforeHeadlineElement","",a),(0,e.createElement)(r,t({},a,{onSplit:Cu,headlineRef:h})))})),Eu={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 xu={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},Su={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},Tu={from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,level:a}=e;return(0,g.createBlock)("generateblocks/headline",{content:t,element:Su[a]})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,element:a}=e;return(0,g.createBlock)("core/heading",{content:t,level:xu.hasOwnProperty(a)?xu[a]:2})}}]};var Mu=Tu;const Bu=[{attributes:{...Eu,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(a){let{attributes:l}=a;const{uniqueId:r,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:p}=l;let b={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${r}`]:!0,[`${o}`]:""!==o})};return b=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",b,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${r}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&p?p:void 0,dangerouslySetInnerHTML:{__html:_i(g)}}),!d&&(0,e.createElement)(n.RichText.Content,t({tagName:c,value:u},b)))}},{attributes:{...Eu,element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},save(a){let{attributes:l}=a;const{uniqueId:r,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:p}=l;let b={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${r}`]:!0,[`${o}`]:""!==o})};return b=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",b,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${r}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&p?p:void 0,dangerouslySetInnerHTML:{__html:_i(g)}}),!d&&(0,e.createElement)(n.RichText.Content,t({tagName:c,value:u},b)))}}];var zu=Bu;const Iu=Object.assign({},Te(Eu,ve,generateBlocksDefaults.headline),Os);(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:Iu,supports:{className:!1},edit:_u,save:t=>{let{attributes:a}=t;const{uniqueId:l,anchor:r,element:i,content:o,icon:c,hasIcon:u,removeText:g}=a;let d={className:s()({"gb-headline":!0,[`gb-headline-${l}`]:!0,"gb-headline-text":!u}),id:r||null};d=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",a);const p=n.useBlockProps.save(d);return(0,e.createElement)(Bs,{tagName:i,htmlAttrs:p},(0,e.createElement)(Ms,{hasIcon:u,icon:c,hideChildren:g,showWrapper:!1},(0,e.createElement)(n.RichText.Content,{value:o,tagName:u&&c?"span":void 0,className:u&&c?"gb-headline-text":void 0})))},transforms:Mu,deprecated:zu,usesContext:["postId","postType","generateblocks/dynamicImage","generateblocks/mediaId"],__experimentalLabel:e=>nu(e,(0,i.__)("Headline","generateblocks"))});var Ou=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":""}}}');function Lu(t){const a=(0,m.applyFilters)("generateblocks.editor.desktopCSS",[],t,"image");return(0,e.createElement)("style",null,O(a))}function Au(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTopTablet:n,paddingRightTablet:r,paddingBottomTablet:i,paddingLeftTablet:o,paddingUnit:s,borderSizeTopTablet:c,borderSizeRightTablet:u,borderSizeBottomTablet:g,borderSizeLeftTablet:d,borderRadiusTopRightTablet:p,borderRadiusBottomRightTablet:b,borderRadiusBottomLeftTablet:h,borderRadiusTopLeftTablet:f,borderRadiusUnit:k,borderColor:v,objectFitTablet:y,widthTablet:w,heightTablet:C,alignment:_,alignmentTablet:E}=a;let x=[],S=E.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[E]:null;return E&&!S&&_.startsWith("float")&&(S="none"),x[".editor-styles-wrapper .gb-block-image-"+l]=[{padding:Ks(n,r,i,o,s),"text-align":E.startsWith("float")?null:E,float:S,position:S&&"none"!==S?"relative":null,"z-index":S&&"none"!==S?"22":null}],Ws(x,".editor-styles-wrapper .gb-block-image-"+l,a,"Tablet"),x[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Ks(f,p,b,h,k),"border-color":v,width:w,height:C,"object-fit":y}],x[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":Ks(f,p,b,h,k)}],(c||u||g||d)&&x[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Ks(c,u,g,d,"px"),"border-style":"solid"}),x=(0,m.applyFilters)("generateblocks.editor.tabletCSS",x,t,"image"),(0,e.createElement)("style",null,O(x))}function Ru(t){const a=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",[],t,"image");return(0,e.createElement)("style",null,O(a))}function Nu(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTopMobile:n,paddingRightMobile:r,paddingBottomMobile:i,paddingLeftMobile:o,paddingUnit:s,borderSizeTopMobile:c,borderSizeRightMobile:u,borderSizeBottomMobile:g,borderSizeLeftMobile:d,borderRadiusTopRightMobile:p,borderRadiusBottomRightMobile:b,borderRadiusBottomLeftMobile:h,borderRadiusTopLeftMobile:f,borderRadiusUnit:k,borderColor:v,objectFitMobile:y,widthMobile:w,heightMobile:C,alignment:_,alignmentTablet:E,alignmentMobile:x}=a;let S=[],T=x.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[x]:null;return x&&!T&&(E.startsWith("float")||_.startsWith("float"))&&(T="none"),S[".editor-styles-wrapper .gb-block-image-"+l]=[{padding:Ks(n,r,i,o,s),"text-align":x.startsWith("float")?null:x,float:T,position:T&&"none"!==T?"relative":null,"z-index":T&&"none"!==T?"22":null}],Ws(S,".editor-styles-wrapper .gb-block-image-"+l,a,"Mobile"),S[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Ks(f,p,b,h,k),"border-color":v,width:w,height:C,"object-fit":y}],S[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":Ks(f,p,b,h,k)}],(c||u||g||d)&&S[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Ks(c,u,g,d,"px"),"border-style":"solid"}),S=(0,m.applyFilters)("generateblocks.editor.mobileCSS",S,t,"image"),(0,e.createElement)("style",null,O(S))}function Du(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTop:n,paddingRight:r,paddingBottom:i,paddingLeft:o,paddingUnit:s,borderSizeTop:c,borderSizeRight:u,borderSizeBottom:g,borderSizeLeft:d,borderRadiusTopRight:p,borderRadiusBottomRight:b,borderRadiusBottomLeft:h,borderRadiusTopLeft:f,borderRadiusUnit:k,borderColor:v,objectFit:y,width:w,height:C,alignment:_}=a;let E=[];return E[".editor-styles-wrapper .gb-block-image-"+l]=[{padding:Ks(n,r,i,o,s),"text-align":_.startsWith("float")?null:_,float:_.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[_]:"none",position:_.startsWith("float")?"relative":null,"z-index":_.startsWith("float")?"22":null,"max-width":"unset"}],Ws(E,".editor-styles-wrapper .gb-block-image-"+l,a),E[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Ks(f,p,b,h,k),"border-color":v,width:w,height:C,"object-fit":y}],E[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":Ks(f,p,b,h,k)}],(c||u||g||d)&&E[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Ks(c,u,g,d,"px"),"border-style":"solid"}),E=(0,m.applyFilters)("generateblocks.editor.mainCSS",E,t,"image"),(0,e.createElement)("style",null,O(E))}var Fu=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Du,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Lu,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Au,t),"Tablet"===a&&(0,e.createElement)(Ru,t),"Mobile"===a&&(0,e.createElement)(Nu,t)))}),V),Pu=window.wp.notices;function Hu(t){var a;const{attributes:o,setAttributes:s,media:c,deviceType:u}=t,{useDynamicData:g,mediaId:d,alt:p,title:b,sizeSlug:m,mediaUrl:h,width:f,widthTablet:k,height:v,heightTablet:y}=o,w=(0,l.useSelect)((e=>{const{getMedia:t}=e(q.store);return d&&t(d,{context:"view"})}),[g,d]),C=(0,l.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"===u&&(!!d||g)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Size","generateblocks"),value:m,options:C,onChange:e=>{const t=Ys(w,e)||h;s({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)(lo,{label:(0,i.__)("Width","generateblocks"),id:"gblocks-image-width",value:Yn("width",{attributes:o,deviceType:u}),desktopValue:f,tabletValue:k,onChange:e=>{s({[Yn("width",{attributes:o,deviceType:u},!0)]:e})},min:"1",units:["px","%","vw","rem"]}),(0,e.createElement)(lo,{label:(0,i.__)("Height","generateblocks"),id:"gblocks-image-height",value:Yn("height",{attributes:o,deviceType:u}),desktopValue:v,tabletValue:y,onChange:e=>{s({[Yn("height",{attributes:o,deviceType:u},!0)]:e})},min:"1",units:["px","%","vw","rem"]}))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Object-fit","generateblocks"),value:Yn("objectFit",t),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=>{s({[Yn("objectFit",t,!0)]:e})}}),!g&&"Desktop"===u&&(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:g?null==c?void 0:c.alt_text:p,disabled:g,onChange:e=>s({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:g?null==c||null===(a=c.title)||void 0===a?void 0:a.rendered:b,disabled:g,onChange:e=>s({title:e})})))}var Vu=window.wp.blob,Gu=(0,U.compose)(ne,Se,yc,te)((function(a){const{attributes:r,setAttributes:i,context:o,ContentRenderer:s=kc}=a,{useDynamicData:c,dynamicContentType:u,sizeSlug:g,mediaId:d,mediaUrl:p,anchor:b}=r,h=Xn(),{createErrorNotice:f}=(0,l.useDispatch)(Pu.store),[k,v]=(0,e.useState)(),y="post-type"===r.dynamicSource?r.postType:o.postType,w="post-type"===r.dynamicSource?r.postId:o.postId,[C]=(0,q.useEntityProp)("postType",y,"featured_media",w),{mediaUpload:_}=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return(0,P.pick)(t(),["imageDefaultSize","mediaUpload"])}),[]),E=e=>{if(e&&e.url){if((0,Vu.isBlobURL)(e.url))v(e.url);else if(v(),e&&(!c||c&&!u)){var t;const a=(null==e?void 0:e.sizes)&&(null==e||null===(t=e.sizes[g])||void 0===t?void 0:t.url)||(null==e?void 0:e.url);i({mediaId:null==e?void 0:e.id,mediaUrl:a,alt:null==e?void 0:e.alt,title:null==e?void 0:e.title})}}else i({mediaUrl:void 0,mediaId:void 0,title:void 0,alt:void 0})},x=e=>{f(e[2],{type:"snackbar"})};(0,e.useEffect)((()=>{g||i({sizeSlug:"full"})}),[]);let S=(T=p,!d&&(0,Vu.isBlobURL)(T));var T;return(0,e.useEffect)((()=>{if(!S)return;const e=(0,Vu.getBlobByURL)(p);e&&_({filesList:[e],onFileChange:e=>{let[t]=e;E(t)},allowedTypes:["image"],onError:e=>{S=!1,x(e)}})}),[]),(0,e.useEffect)((()=>{S?v(p):(0,Vu.revokeBlobURL)(k)}),[S,p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ko,{attributes:r,setAttributes:i},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:h}),(0,e.createElement)(Hu,{attributes:r,setAttributes:i,deviceType:h})),(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t({},a,{anchor:b}))),(0,e.createElement)(Fu,t({},a,{deviceType:h})),(0,e.createElement)(s,t({},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:h})))}));const Uu={from:[{type:"block",blocks:["core/image"],transform:e=>{let{id:t,url:a,sizeSlug:l}=e;return(0,g.createBlock)("generateblocks/image",{mediaId:t,mediaUrl:a,sizeSlug:l})}},{type:"block",blocks:["core/post-featured-image"],transform:e=>{let{sizeSlug:t}=e;return(0,g.createBlock)("generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",sizeSlug:t})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{mediaId:t,mediaUrl:a,sizeSlug:l}=e;return(0,g.createBlock)("core/image",{id:t,url:a,sizeSlug:l})}}]};var ju=Uu;const Wu=Object.assign({},Te(Ou.Y4,Ce,generateBlocksDefaults.image),Os);(0,g.registerBlockType)("generateblocks/image",{title:(0,i.__)("Image","generateblocks"),icon:p("image"),attributes:Wu,edit:Gu,save:t=>{let{attributes:a}=t;const{uniqueId:l,mediaUrl:r,anchor:i,alt:o,title:c,href:u,openInNewWindow:g,relNoFollow:d,relSponsored:p,useDynamicData:b,dynamicContentType:h,className:f,align:k}=a;if(b&&h)return(0,e.createElement)(n.InnerBlocks.Content,null);if(!r)return null;const v=n.useBlockProps.save({className:s()({"gb-block-image":!0,[`gb-block-image-${l}`]:!0})});null!=v&&v.className.includes(f)&&(v.className=v.className.replace(f,"").trim());const y=be((0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${l}`]:!0,[`${f}`]:void 0!==f,[`align${k}`]:""!==k}),id:i||null,src:r,alt:o,title:c},"generateblocks/image",a)),w={href:u,openInNewWindow:g,relNoFollow:d,relSponsored:p};return(0,e.createElement)(Bs,{tagName:"figure",htmlAttrs:v},(0,e.createElement)(ic,w,(0,e.createElement)(Bs,{tagName:"img",htmlAttrs:y})),(0,e.createElement)(n.InnerBlocks.Content,null))},transforms:ju})}()}(); \ No newline at end of file +(0,i.__)("Heading %s","generateblocks"),"6"),onClick:()=>{a({element:"h6"})}},{isActive:"p"===l,icon:(0,e.createElement)(gu,{level:"p"}),title:(0,i.__)("Paragraph","generateblocks"),onClick:()=>{a({element:"p"})}},{isActive:"div"===l,icon:(0,e.createElement)(gu,{level:"div"}),title:(0,i.__)("Div","generateblocks"),onClick:()=>{a({element:"div"})}}]})},pu=(0,e.memo)((function(t){const{attributes:a,setAttributes:l}=t,{element:r,isCaption:i,display:o,displayTablet:s,displayMobile:c}=a,u=Xn();return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(du,{setAttributes:l,element:r,isCaption:i}),!Qi({device:u,display:o,displayTablet:s,displayMobile:c})&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.AlignmentToolbar,{value:Yn("alignment",{attributes:a,deviceType:u}),onChange:e=>{l({[Yn("alignment",{attributes:a,deviceType:u},!0)]:e})},alignmentControls:Ge.alignments})))}),((e,t)=>["element","alignment","alignmentTablet","alignmentMobile","display","displayTablet","displayMobile"].every((a=>e.attributes[a]===t.attributes[a]))&&e.deviceType===t.deviceType));function bu(t){const{onChange:a,tagName:l,isCaption:n}=t,o=Xn(),s=(0,m.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 mu=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)(z,t),(0,e.createElement)(bu,{isCaption:r,tagName:i,onChange:e=>{l({element:e}),o||s||c||u||l("p"===e?{marginUnit:"em"}:{marginUnit:g})}}))};class hu extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class fu extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignmentTablet:r,fontSizeTablet:i,fontSizeUnit:o,lineHeightTablet:s,lineHeightUnit:c,letterSpacingTablet:u,paddingTopTablet:g,paddingRightTablet:d,paddingBottomTablet:p,paddingLeftTablet:b,paddingUnit:h,borderSizeTopTablet:f,borderSizeRightTablet:k,borderSizeBottomTablet:v,borderSizeLeftTablet:y,borderRadiusTopRightTablet:w,borderRadiusBottomRightTablet:C,borderRadiusBottomLeftTablet:_,borderRadiusTopLeftTablet:E,borderRadiusUnit:x,iconPaddingTopTablet:S,iconPaddingRightTablet:T,iconPaddingBottomTablet:M,iconPaddingLeftTablet:B,iconPaddingUnit:z,iconSizeTablet:I,iconSizeUnit:A,removeText:R,displayTablet:D,inlineWidthTablet:N}=t,F=n+".gb-headline-"+l;let P=[];return P[".editor-styles-wrapper "+F]=[{"text-align":r,"font-size":L(i,o),"line-height":L(s,c),"letter-spacing":L(u,"em"),"padding-top":L(g,h),"padding-right":L(d,h),"padding-bottom":L(p,h),"padding-left":L(b,h),"border-top-left-radius":L(E,x),"border-top-right-radius":L(w,x),"border-bottom-right-radius":L(C,x),"border-bottom-left-radius":L(_,x)}],Ws(P,".editor-styles-wrapper "+F,t,"Tablet"),js(P,".editor-styles-wrapper "+F,t,"Tablet"),Gs(P,".editor-styles-wrapper "+F,t,"Tablet"),Us(P,".editor-styles-wrapper "+F,t,"Tablet"),(f||k||v||y)&&P[".editor-styles-wrapper "+F].push({"border-top-width":L(f,"px"),"border-right-width":L(k,"px"),"border-bottom-width":L(v,"px"),"border-left-width":L(y,"px"),"border-style":"solid"}),P[F+" .gb-icon"]=[{"padding-top":!R&&L(S,z),"padding-right":!R&&L(T,z),"padding-bottom":!R&&L(M,z),"padding-left":!R&&L(B,z)}],P[F+" .gb-icon svg"]=[{width:L(I,A),height:L(I,A)}],N&&(P['.gb-is-root-block[data-block="'+a+'"]']=[{display:D}]),P=(0,m.applyFilters)("generateblocks.editor.tabletCSS",P,this.props,"text"),(0,e.createElement)("style",null,O(P))}}class ku extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class vu extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignmentMobile:r,fontSizeMobile:i,fontSizeUnit:o,lineHeightMobile:s,lineHeightUnit:c,letterSpacingMobile:u,paddingTopMobile:g,paddingRightMobile:d,paddingBottomMobile:p,paddingLeftMobile:b,paddingUnit:h,borderSizeTopMobile:f,borderSizeRightMobile:k,borderSizeBottomMobile:v,borderSizeLeftMobile:y,borderRadiusTopRightMobile:w,borderRadiusBottomRightMobile:C,borderRadiusBottomLeftMobile:_,borderRadiusTopLeftMobile:E,borderRadiusUnit:x,iconPaddingTopMobile:S,iconPaddingRightMobile:T,iconPaddingBottomMobile:M,iconPaddingLeftMobile:B,iconPaddingUnit:z,iconSizeMobile:I,iconSizeUnit:A,removeText:R,displayMobile:D,inlineWidthMobile:N}=t,F=n+".gb-headline-"+l;let P=[];return P[".editor-styles-wrapper "+F]=[{"text-align":r,"font-size":L(i,o),"line-height":L(s,c),"letter-spacing":L(u,"em"),"padding-top":L(g,h),"padding-right":L(d,h),"padding-bottom":L(p,h),"padding-left":L(b,h),"border-top-left-radius":L(E,x),"border-top-right-radius":L(w,x),"border-bottom-right-radius":L(C,x),"border-bottom-left-radius":L(_,x)}],Ws(P,".editor-styles-wrapper "+F,t,"Mobile"),js(P,".editor-styles-wrapper "+F,t,"Mobile"),Gs(P,".editor-styles-wrapper "+F,t,"Mobile"),Us(P,".editor-styles-wrapper "+F,t,"Mobile"),(f||k||v||y)&&P[".editor-styles-wrapper "+F].push({"border-top-width":L(f,"px"),"border-right-width":L(k,"px"),"border-bottom-width":L(v,"px"),"border-left-width":L(y,"px"),"border-style":"solid"}),P[F+" .gb-icon"]=[{"padding-top":!R&&L(S,z),"padding-right":!R&&L(T,z),"padding-bottom":!R&&L(M,z),"padding-left":!R&&L(B,z)}],P[F+" .gb-icon svg"]=[{width:L(I,A),height:L(I,A)}],N&&(P['.gb-is-root-block[data-block="'+a+'"]']=[{display:D}]),P=(0,m.applyFilters)("generateblocks.editor.mobileCSS",P,this.props,"headline"),(0,e.createElement)("style",null,O(P))}}class yu extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignment:r,backgroundColor:i,backgroundColorOpacity:o,textColor:s,linkColor:c,linkColorHover:u,borderColor:g,borderColorOpacity:d,highlightTextColor:p,fontFamily:b,fontFamilyFallback:h,fontWeight:f,fontSize:k,fontSizeUnit:v,textTransform:y,lineHeight:w,lineHeightUnit:C,letterSpacing:_,paddingTop:E,paddingRight:x,paddingBottom:S,paddingLeft:T,paddingUnit:M,borderSizeTop:B,borderSizeRight:z,borderSizeBottom:I,borderSizeLeft:A,borderRadiusTopRight:R,borderRadiusBottomRight:D,borderRadiusBottomLeft:N,borderRadiusTopLeft:F,borderRadiusUnit:P,iconColor:H,iconColorOpacity:V,iconPaddingTop:G,iconPaddingRight:j,iconPaddingBottom:U,iconPaddingLeft:W,iconPaddingUnit:q,iconSize:$,iconSizeUnit:Z,removeText:K,display:J,inlineWidth:Y}=t;let Q="";b&&h&&(Q=", "+h);const X=n+".gb-headline-"+l;let ee=[];return ee[".editor-styles-wrapper "+X]=[{color:s,"font-family":b+Q,"font-weight":f,"text-transform":y,"text-align":r,"font-size":L(k,v),"line-height":L(w,C),"letter-spacing":L(_,"em")}],Ws(ee,".editor-styles-wrapper "+X,t),js(ee,".editor-styles-wrapper "+X,t),Gs(ee,".editor-styles-wrapper "+X,t),Us(ee,".editor-styles-wrapper "+X,t),ee[".editor-styles-wrapper .gb-container "+X]=[{color:s}],ee[".editor-styles-wrapper "+X].push({"background-color":mi(i,o),color:s,padding:Ks(E,x,S,T,M),"border-radius":Ks(F,R,D,N,P),"border-color":mi(g,d)}),(B||z||I||A)&&ee[".editor-styles-wrapper "+X].push({"border-width":Ks(B,z,I,A,"px"),"border-style":"solid"}),ee[".editor-styles-wrapper "+X+" a"]=[{color:c}],ee[".editor-styles-wrapper "+X+" a:hover"]=[{color:u}],ee[X+" .gb-icon"]=[{padding:!K&&Ks(G,j,U,W,q),color:mi(H,V)}],ee[X+" .gb-icon svg"]=[{width:L($,Z),height:L($,Z)}],ee[X+" .gb-highlight"]=[{color:p}],Y&&(ee['.gb-is-root-block[data-block="'+a+'"]']=[{display:J}]),ee=(0,m.applyFilters)("generateblocks.editor.mainCSS",ee,this.props,"headline"),(0,e.createElement)("style",null,O(ee))}}var wu=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(yu,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(hu,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(fu,t),"Tablet"===a&&(0,e.createElement)(ku,t),"Mobile"===a&&(0,e.createElement)(vu,t)))}),V);const Cu=(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 _u=(0,j.compose)(ne,Se,yc,te,(t=>a=>{const{attributes:l,setAttributes:n}=a,{blockVersion:r,hasIcon:i,iconVerticalAlignment:o,alignment:s}=l;return(0,e.useEffect)((()=>{if(!ae(l)&&le(r,2)){const e={};i&&(e.display="flex"),["","Tablet","Mobile"].forEach((t=>{l["inlineWidth"+t]&&(e["display"+t]=i?"inline-flex":"inline-block"),i&&("above"!==l["iconLocation"+t]&&l["alignment"+t]&&(e["justifyContent"+t]=Lc(s+t)),"inline"===l["iconLocation"+t]&&l["iconVerticalAlignment"+t]&&(e["alignItems"+t]=Lc(o+t)),"above"===l["iconLocation"+t]&&(e["flexDirection"+t]="column"))})),Object.keys(e).length&&n(e)}le(r,2)&&n({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:l,setAttributes:n,ContentRenderer:r=zs,context:i}=a,{anchor:o,fontFamily:s,googleFont:c,googleFontVariants:u,icon:g,hasIcon:d,element:p,isBlockPreview:b=!1}=l,h=(0,e.useRef)(null),[f,k]=(0,e.useState)({}),v=Xn();return(0,e.useEffect)((()=>{!d&&g&&n({hasIcon:!0})}),[]),(0,e.useEffect)((()=>{const e=getComputedStyle(h.current);k({marginTop:parseInt(e.marginTop)||"",marginBottom:parseInt(e.marginBottom)||"",fontSize:parseInt(e.fontSize)||""})}),[p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pu,{attributes:l,setAttributes:n,context:i}),(0,e.createElement)(ko,{attributes:l,setAttributes:n,computedStyles:f},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:v})),(0,e.createElement)(mu,{anchor:o,setAttributes:n,attributes:l}),(0,e.createElement)(wu,t({},a,{deviceType:v})),(0,e.createElement)(ps,{fontFamily:s,googleFont:c,googleFontVariants:u,isBlockPreview:b}),(0,m.applyFilters)("generateblocks.editor.beforeHeadlineElement","",a),(0,e.createElement)(r,t({},a,{onSplit:Cu,headlineRef:h})))})),Eu={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 xu={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},Su={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},Tu={from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,level:a}=e;return(0,g.createBlock)("generateblocks/headline",{content:t,element:Su[a]})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,element:a}=e;return(0,g.createBlock)("core/heading",{content:t,level:xu.hasOwnProperty(a)?xu[a]:2})}}]};var Mu=Tu;const Bu=Object.assign({},Te(Eu,ve,generateBlocksDefaults.headline)),zu=[{attributes:{...Bu,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(a){let{attributes:l}=a;const{uniqueId:r,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:p}=l;let b={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${r}`]:!0,[`${o}`]:""!==o})};return b=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",b,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${r}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&p?p:void 0,dangerouslySetInnerHTML:{__html:_i(g)}}),!d&&(0,e.createElement)(n.RichText.Content,t({tagName:c,value:u},b)))}},{attributes:{...Bu,element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},save(a){let{attributes:l}=a;const{uniqueId:r,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:p}=l;let b={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${r}`]:!0,[`${o}`]:""!==o})};return b=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",b,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${r}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&p?p:void 0,dangerouslySetInnerHTML:{__html:_i(g)}}),!d&&(0,e.createElement)(n.RichText.Content,t({tagName:c,value:u},b)))}}];var Iu=zu;const Ou=Object.assign({},Te(Eu,ve,generateBlocksDefaults.headline),Os);(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:Ou,supports:{className:!1},edit:_u,save:t=>{let{attributes:a}=t;const{uniqueId:l,anchor:r,element:i,content:o,icon:c,hasIcon:u,removeText:g}=a;let d={className:s()({"gb-headline":!0,[`gb-headline-${l}`]:!0,"gb-headline-text":!u}),id:r||null};d=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",a);const p=n.useBlockProps.save(d);return(0,e.createElement)(Bs,{tagName:i,htmlAttrs:p},(0,e.createElement)(Ms,{hasIcon:u,icon:c,hideChildren:g,showWrapper:!1},(0,e.createElement)(n.RichText.Content,{value:o,tagName:u&&c?"span":void 0,className:u&&c?"gb-headline-text":void 0})))},transforms:Mu,deprecated:Iu,usesContext:["postId","postType","generateblocks/dynamicImage","generateblocks/mediaId"],__experimentalLabel:e=>nu(e,(0,i.__)("Headline","generateblocks"))});var Lu=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":""}}}');function Au(t){const a=(0,m.applyFilters)("generateblocks.editor.desktopCSS",[],t,"image");return(0,e.createElement)("style",null,O(a))}function Ru(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTopTablet:n,paddingRightTablet:r,paddingBottomTablet:i,paddingLeftTablet:o,paddingUnit:s,borderSizeTopTablet:c,borderSizeRightTablet:u,borderSizeBottomTablet:g,borderSizeLeftTablet:d,borderRadiusTopRightTablet:p,borderRadiusBottomRightTablet:b,borderRadiusBottomLeftTablet:h,borderRadiusTopLeftTablet:f,borderRadiusUnit:k,borderColor:v,objectFitTablet:y,widthTablet:w,heightTablet:C,alignment:_,alignmentTablet:E}=a;let x=[],S=E.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[E]:null;return E&&!S&&_.startsWith("float")&&(S="none"),x[".editor-styles-wrapper .gb-block-image-"+l]=[{padding:Ks(n,r,i,o,s),"text-align":E.startsWith("float")?null:E,float:S,position:S&&"none"!==S?"relative":null,"z-index":S&&"none"!==S?"22":null}],Ws(x,".editor-styles-wrapper .gb-block-image-"+l,a,"Tablet"),x[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Ks(f,p,b,h,k),"border-color":v,width:w,height:C,"object-fit":y}],x[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":Ks(f,p,b,h,k)}],(c||u||g||d)&&x[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Ks(c,u,g,d,"px"),"border-style":"solid"}),x=(0,m.applyFilters)("generateblocks.editor.tabletCSS",x,t,"image"),(0,e.createElement)("style",null,O(x))}function Du(t){const a=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",[],t,"image");return(0,e.createElement)("style",null,O(a))}function Nu(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTopMobile:n,paddingRightMobile:r,paddingBottomMobile:i,paddingLeftMobile:o,paddingUnit:s,borderSizeTopMobile:c,borderSizeRightMobile:u,borderSizeBottomMobile:g,borderSizeLeftMobile:d,borderRadiusTopRightMobile:p,borderRadiusBottomRightMobile:b,borderRadiusBottomLeftMobile:h,borderRadiusTopLeftMobile:f,borderRadiusUnit:k,borderColor:v,objectFitMobile:y,widthMobile:w,heightMobile:C,alignment:_,alignmentTablet:E,alignmentMobile:x}=a;let S=[],T=x.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[x]:null;return x&&!T&&(E.startsWith("float")||_.startsWith("float"))&&(T="none"),S[".editor-styles-wrapper .gb-block-image-"+l]=[{padding:Ks(n,r,i,o,s),"text-align":x.startsWith("float")?null:x,float:T,position:T&&"none"!==T?"relative":null,"z-index":T&&"none"!==T?"22":null}],Ws(S,".editor-styles-wrapper .gb-block-image-"+l,a,"Mobile"),S[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Ks(f,p,b,h,k),"border-color":v,width:w,height:C,"object-fit":y}],S[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":Ks(f,p,b,h,k)}],(c||u||g||d)&&S[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Ks(c,u,g,d,"px"),"border-style":"solid"}),S=(0,m.applyFilters)("generateblocks.editor.mobileCSS",S,t,"image"),(0,e.createElement)("style",null,O(S))}function Fu(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTop:n,paddingRight:r,paddingBottom:i,paddingLeft:o,paddingUnit:s,borderSizeTop:c,borderSizeRight:u,borderSizeBottom:g,borderSizeLeft:d,borderRadiusTopRight:p,borderRadiusBottomRight:b,borderRadiusBottomLeft:h,borderRadiusTopLeft:f,borderRadiusUnit:k,borderColor:v,objectFit:y,width:w,height:C,alignment:_}=a;let E=[];return E[".editor-styles-wrapper .gb-block-image-"+l]=[{padding:Ks(n,r,i,o,s),"text-align":_.startsWith("float")?null:_,float:_.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[_]:"none",position:_.startsWith("float")?"relative":null,"z-index":_.startsWith("float")?"22":null,"max-width":"unset"}],Ws(E,".editor-styles-wrapper .gb-block-image-"+l,a),E[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Ks(f,p,b,h,k),"border-color":v,width:w,height:C,"object-fit":y}],E[".editor-styles-wrapper .gb-image-"+l+" + .components-placeholder__illustration"]=[{"border-radius":Ks(f,p,b,h,k)}],(c||u||g||d)&&E[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Ks(c,u,g,d,"px"),"border-style":"solid"}),E=(0,m.applyFilters)("generateblocks.editor.mainCSS",E,t,"image"),(0,e.createElement)("style",null,O(E))}var Pu=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=null==t?void 0:t.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Fu,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Au,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Ru,t),"Tablet"===a&&(0,e.createElement)(Du,t),"Mobile"===a&&(0,e.createElement)(Nu,t)))}),V),Hu=window.wp.notices;function Vu(t){var a;const{attributes:o,setAttributes:s,media:c,deviceType:u}=t,{useDynamicData:g,mediaId:d,alt:p,title:b,sizeSlug:m,mediaUrl:h,width:f,widthTablet:k,height:v,heightTablet:y}=o,w=(0,l.useSelect)((e=>{const{getMedia:t}=e(q.store);return d&&t(d,{context:"view"})}),[g,d]),C=(0,l.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"===u&&(!!d||g)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Size","generateblocks"),value:m,options:C,onChange:e=>{const t=Ys(w,e)||h;s({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)(lo,{label:(0,i.__)("Width","generateblocks"),id:"gblocks-image-width",value:Yn("width",{attributes:o,deviceType:u}),desktopValue:f,tabletValue:k,onChange:e=>{s({[Yn("width",{attributes:o,deviceType:u},!0)]:e})},min:"1",units:["px","%","vw","rem"]}),(0,e.createElement)(lo,{label:(0,i.__)("Height","generateblocks"),id:"gblocks-image-height",value:Yn("height",{attributes:o,deviceType:u}),desktopValue:v,tabletValue:y,onChange:e=>{s({[Yn("height",{attributes:o,deviceType:u},!0)]:e})},min:"1",units:["px","%","vw","rem"]}))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Object-fit","generateblocks"),value:Yn("objectFit",t),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=>{s({[Yn("objectFit",t,!0)]:e})}}),!g&&"Desktop"===u&&(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:g?null==c?void 0:c.alt_text:p,disabled:g,onChange:e=>s({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:g?null==c||null===(a=c.title)||void 0===a?void 0:a.rendered:b,disabled:g,onChange:e=>s({title:e})})))}var Gu=window.wp.blob,ju=(0,j.compose)(ne,Se,yc,te)((function(a){const{attributes:r,setAttributes:i,context:o,ContentRenderer:s=kc}=a,{useDynamicData:c,dynamicContentType:u,sizeSlug:g,mediaId:d,mediaUrl:p,anchor:b}=r,h=Xn(),{createErrorNotice:f}=(0,l.useDispatch)(Hu.store),[k,v]=(0,e.useState)(),y="post-type"===r.dynamicSource?r.postType:o.postType,w="post-type"===r.dynamicSource?r.postId:o.postId,[C]=(0,q.useEntityProp)("postType",y,"featured_media",w),{mediaUpload:_}=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return(0,P.pick)(t(),["imageDefaultSize","mediaUpload"])}),[]),E=e=>{if(e&&e.url){if((0,Gu.isBlobURL)(e.url))v(e.url);else if(v(),e&&(!c||c&&!u)){var t;const a=(null==e?void 0:e.sizes)&&(null==e||null===(t=e.sizes[g])||void 0===t?void 0:t.url)||(null==e?void 0:e.url);i({mediaId:null==e?void 0:e.id,mediaUrl:a,alt:null==e?void 0:e.alt,title:null==e?void 0:e.title})}}else i({mediaUrl:void 0,mediaId:void 0,title:void 0,alt:void 0})},x=e=>{f(e[2],{type:"snackbar"})};(0,e.useEffect)((()=>{g||i({sizeSlug:"full"})}),[]);let S=(T=p,!d&&(0,Gu.isBlobURL)(T));var T;return(0,e.useEffect)((()=>{if(!S)return;const e=(0,Gu.getBlobByURL)(p);e&&_({filesList:[e],onFileChange:e=>{let[t]=e;E(t)},allowedTypes:["image"],onError:e=>{S=!1,x(e)}})}),[]),(0,e.useEffect)((()=>{S?v(p):(0,Gu.revokeBlobURL)(k)}),[S,p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ko,{attributes:r,setAttributes:i},(0,m.applyFilters)("generateblocks.editor.settingsPanel",void 0,{...a,device:h}),(0,e.createElement)(Vu,{attributes:r,setAttributes:i,deviceType:h})),(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t({},a,{anchor:b}))),(0,e.createElement)(Pu,t({},a,{deviceType:h})),(0,e.createElement)(s,t({},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:h})))}));const Uu={from:[{type:"block",blocks:["core/image"],transform:e=>{let{id:t,url:a,sizeSlug:l}=e;return(0,g.createBlock)("generateblocks/image",{mediaId:t,mediaUrl:a,sizeSlug:l})}},{type:"block",blocks:["core/post-featured-image"],transform:e=>{let{sizeSlug:t}=e;return(0,g.createBlock)("generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",sizeSlug:t})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{mediaId:t,mediaUrl:a,sizeSlug:l}=e;return(0,g.createBlock)("core/image",{id:t,url:a,sizeSlug:l})}}]};var Wu=Uu;const qu=Object.assign({},Te(Lu.Y4,Ce,generateBlocksDefaults.image),Os);(0,g.registerBlockType)("generateblocks/image",{title:(0,i.__)("Image","generateblocks"),icon:p("image"),attributes:qu,edit:ju,save:t=>{let{attributes:a}=t;const{uniqueId:l,mediaUrl:r,anchor:i,alt:o,title:c,href:u,openInNewWindow:g,relNoFollow:d,relSponsored:p,useDynamicData:b,dynamicContentType:h,className:f,align:k}=a;if(b&&h)return(0,e.createElement)(n.InnerBlocks.Content,null);if(!r)return null;const v=n.useBlockProps.save({className:s()({"gb-block-image":!0,[`gb-block-image-${l}`]:!0})});null!=v&&v.className.includes(f)&&(v.className=v.className.replace(f,"").trim());const y=be((0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${l}`]:!0,[`${f}`]:void 0!==f,[`align${k}`]:""!==k}),id:i||null,src:r,alt:o,title:c},"generateblocks/image",a)),w={href:u,openInNewWindow:g,relNoFollow:d,relSponsored:p};return(0,e.createElement)(Bs,{tagName:"figure",htmlAttrs:v},(0,e.createElement)(ic,w,(0,e.createElement)(Bs,{tagName:"img",htmlAttrs:y})),(0,e.createElement)(n.InnerBlocks.Content,null))},transforms:Wu})}()}(); \ No newline at end of file diff --git a/includes/general.php b/includes/general.php index e3fb30650..f39c4cd88 100644 --- a/includes/general.php +++ b/includes/general.php @@ -400,11 +400,6 @@ function generateblocks_set_block_css_selectors( $selector, $name, $attributes ) * @return void */ function generateblocks_register_user_meta() { - $additional_properties = apply_filters( - 'generateblocks_onboarding_user_meta_properties', - array() - ); - register_meta( 'user', GenerateBlocks_Rest::ONBOARDING_META_KEY, @@ -417,7 +412,9 @@ function generateblocks_register_user_meta() { 'properties' => array( 'insert_inner_container' => array( 'type' => 'boolean' ), ), - 'additionalProperties' => $additional_properties, + 'additionalProperties' => array( + 'type' => 'boolean', + ), ), ), ) diff --git a/package.json b/package.json index 3015348a2..b99da09a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generateblocks", - "version": "1.7.2", + "version": "1.7.3", "private": true, "description": "A small collection of lightweight WordPress blocks that can accomplish nearly anything.", "author": "Tom Usborne", diff --git a/plugin.php b/plugin.php index 9c643fb73..fb377e5c1 100644 --- a/plugin.php +++ b/plugin.php @@ -5,7 +5,7 @@ * Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything. * Author: Tom Usborne * Author URI: https://tomusborne.com - * Version: 1.7.2 + * Version: 1.7.3 * Requires at least: 5.9 * Requires PHP: 5.6 * License: GPL2+ @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'GENERATEBLOCKS_VERSION', '1.7.2' ); +define( 'GENERATEBLOCKS_VERSION', '1.7.3' ); define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) ); define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) ); diff --git a/readme.txt b/readme.txt index 0497062d8..88262fd40 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiw Requires at least: 5.9 Tested up to: 6.1 Requires PHP: 5.6 -Stable tag: 1.7.2 +Stable tag: 1.7.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -83,6 +83,10 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener == Changelog == += 1.7.3 = +* Fix: REST API warnings +* Fix: Old block deprecations + = 1.7.2 = * Fix: Non-registered onboarding keys were breaking root container * Fix: Block styling in block theme templates diff --git a/src/blocks/button-container/deprecated.js b/src/blocks/button-container/deprecated.js index 23489ece7..800c5a057 100644 --- a/src/blocks/button-container/deprecated.js +++ b/src/blocks/button-container/deprecated.js @@ -12,10 +12,22 @@ import { applyFilters, } from '@wordpress/hooks'; +import { getBlockAttributes } from '../../block-context'; +import buttonContainerContext from '../../block-context/button-container'; + +const allAttributes = Object.assign( + {}, + getBlockAttributes( + blockAttributes, + buttonContainerContext, + generateBlocksDefaults.buttonContainer + ), +); + const deprecated = [ // v1 of container block. Deprecated the gb-grid-column wrapper in save component. { - attributes: blockAttributes, + attributes: allAttributes, supports: { anchor: false, className: false, diff --git a/src/blocks/button/deprecated.js b/src/blocks/button/deprecated.js index ec676f9c2..55b168369 100644 --- a/src/blocks/button/deprecated.js +++ b/src/blocks/button/deprecated.js @@ -13,11 +13,23 @@ import { RichText, } from '@wordpress/block-editor'; +import { getBlockAttributes } from '../../block-context'; +import buttonContext from '../../block-context/button'; + +const allAttributes = Object.assign( + {}, + getBlockAttributes( + blockAttributes, + buttonContext, + generateBlocksDefaults.button + ), +); + const deprecated = [ // v1 of button block. { attributes: { - ...blockAttributes, + ...allAttributes, text: { type: 'array', source: 'children', diff --git a/src/blocks/container/deprecated.js b/src/blocks/container/deprecated.js index 1e7e926c8..83831c3ec 100644 --- a/src/blocks/container/deprecated.js +++ b/src/blocks/container/deprecated.js @@ -13,10 +13,22 @@ import { InnerBlocks, } from '@wordpress/block-editor'; +import { getBlockAttributes } from '../../block-context'; +import containerContext from '../../block-context/container'; + +const allAttributes = Object.assign( + {}, + getBlockAttributes( + blockAttributes, + containerContext, + generateBlocksDefaults.container + ), +); + const deprecated = [ // v1 of container block. Deprecated the gb-grid-column wrapper in save component. { - attributes: blockAttributes, + attributes: allAttributes, supports: { align: false, anchor: false, diff --git a/src/blocks/grid/deprecated.js b/src/blocks/grid/deprecated.js index 9fa080ca0..e220c7550 100644 --- a/src/blocks/grid/deprecated.js +++ b/src/blocks/grid/deprecated.js @@ -12,10 +12,22 @@ import { InnerBlocks, } from '@wordpress/block-editor'; +import { getBlockAttributes } from '../../block-context'; +import gridContext from '../../block-context/grid'; + +const allAttributes = Object.assign( + {}, + getBlockAttributes( + blockAttributes, + gridContext, + generateBlocksDefaults.gridContainer + ), +); + const deprecated = [ // v1 of container block. Deprecated the gb-grid-column wrapper in save component. { - attributes: blockAttributes, + attributes: allAttributes, supports: { anchor: false, className: false, diff --git a/src/blocks/headline/deprecated.js b/src/blocks/headline/deprecated.js index 31b0244fe..14893c096 100644 --- a/src/blocks/headline/deprecated.js +++ b/src/blocks/headline/deprecated.js @@ -10,11 +10,23 @@ import { applyFilters, } from '@wordpress/hooks'; +import { getBlockAttributes } from '../../block-context'; +import headlineContext from '../../block-context/headline'; + +const allAttributes = Object.assign( + {}, + getBlockAttributes( + blockAttributes, + headlineContext, + generateBlocksDefaults.headline + ), +); + const deprecated = [ // v2 - remove wrapper. { attributes: { - ...blockAttributes, + ...allAttributes, content: { type: 'array', source: 'children', @@ -99,7 +111,7 @@ const deprecated = [ // v1 - change default h2 to p. { attributes: { - ...blockAttributes, + ...allAttributes, element: { type: 'string', default: 'p',