Current File : /var/www/html/blog/wp-content/plugins/beaver-builder-lite-version/js/build/builder.bundle.min.js |
/*! For license information please see builder.bundle.min.js.LICENSE.txt */
(()=>{var e={2838: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,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){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 r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||l(e)||a(e)||c()}function i(e){if(Array.isArray(e))return u(e)}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){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 s=Object.hasOwnProperty,d=Object.setPrototypeOf,f=Object.isFrozen,p=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,y=Object.freeze,v=Object.seal,h=Object.create,g="undefined"!=typeof Reflect&&Reflect,b=g.apply,E=g.construct;b||(b=function(e,t,n){return e.apply(t,n)}),y||(y=function(e){return e}),v||(v=function(e){return e}),E||(E=function(e,t){return r(e,o(t))});var w=x(Array.prototype.forEach),S=x(Array.prototype.pop),O=x(Array.prototype.push),_=x(String.prototype.toLowerCase),L=x(String.prototype.toString),C=x(String.prototype.match),N=x(String.prototype.replace),T=x(String.prototype.indexOf),j=x(String.prototype.trim),P=x(RegExp.prototype.test),k=A(TypeError);function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function A(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return E(e,n)}}function D(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:_,d&&d(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var l=n(i);l!==i&&(f(t)||(t[o]=l),i=l)}e[i]=!0}return e}function F(e){var t,n=h(null);for(t in e)!0===b(s,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=m(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var R=y(["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"]),B=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=y(["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"]),U=y(["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"]),G=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=y(["#text"]),W=y(["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"]),Y=y(["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"]),Z=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=v(/<%[\w\W]*|[\w\W]*%>/gm),$=v(/\${[\w\W]*}/gm),X=v(/^data-[\-\w.\u00B7-\uFFFF]+$/),J=v(/^aria-[\-\w]+$/),K=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=v(/^(?:\w+script|data):/i),te=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=v(/^html$/i),re=v(/^[a-z][.\w]*(-[.\w]+)+$/i),oe=function(){return"undefined"==typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe(),n=function(e){return le(e)};if(n.version="2.5.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,l=t.DocumentFragment,a=t.HTMLTemplateElement,u=t.Node,c=t.Element,s=t.NodeFilter,d=t.NamedNodeMap,f=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,m=t.DOMParser,v=t.trustedTypes,h=c.prototype,g=M(h,"cloneNode"),b=M(h,"nextSibling"),E=M(h,"childNodes"),x=M(h,"parentNode");if("function"==typeof a){var A=i.createElement("template");A.content&&A.content.ownerDocument&&(i=A.content.ownerDocument)}var ae=ie(v,r),ue=ae?ae.createHTML(""):"",ce=i,se=ce.implementation,de=ce.createNodeIterator,fe=ce.createDocumentFragment,pe=ce.getElementsByTagName,me=r.importNode,ye={};try{ye=F(i).documentMode?i.documentMode:{}}catch(e){}var ve={};n.isSupported="function"==typeof x&&se&&void 0!==se.createHTMLDocument&&9!==ye;var he,ge,be=q,Ee=Q,we=$,Se=X,Oe=J,_e=ee,Le=te,Ce=re,Ne=K,Te=null,je=D({},[].concat(o(R),o(B),o(I),o(U),o(z))),Pe=null,ke=D({},[].concat(o(W),o(Y),o(Z),o(V))),xe=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}})),Ae=null,De=null,Fe=!0,Me=!0,Re=!1,Be=!0,Ie=!1,He=!0,Ue=!1,Ge=!1,ze=!1,We=!1,Ye=!1,Ze=!1,Ve=!0,qe=!1,Qe="user-content-",$e=!0,Xe=!1,Je={},Ke=null,et=D({},["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"]),tt=null,nt=D({},["audio","video","img","source","image","track"]),rt=null,ot=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",lt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",ut=at,ct=!1,st=null,dt=D({},[it,lt,at],L),ft=["application/xhtml+xml","text/html"],pt="text/html",mt=null,yt=i.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){mt&&mt===t||(t&&"object"===e(t)||(t={}),t=F(t),he=he=-1===ft.indexOf(t.PARSER_MEDIA_TYPE)?pt:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===he?L:_,Te="ALLOWED_TAGS"in t?D({},t.ALLOWED_TAGS,ge):je,Pe="ALLOWED_ATTR"in t?D({},t.ALLOWED_ATTR,ge):ke,st="ALLOWED_NAMESPACES"in t?D({},t.ALLOWED_NAMESPACES,L):dt,rt="ADD_URI_SAFE_ATTR"in t?D(F(ot),t.ADD_URI_SAFE_ATTR,ge):ot,tt="ADD_DATA_URI_TAGS"in t?D(F(nt),t.ADD_DATA_URI_TAGS,ge):nt,Ke="FORBID_CONTENTS"in t?D({},t.FORBID_CONTENTS,ge):et,Ae="FORBID_TAGS"in t?D({},t.FORBID_TAGS,ge):{},De="FORBID_ATTR"in t?D({},t.FORBID_ATTR,ge):{},Je="USE_PROFILES"in t&&t.USE_PROFILES,Fe=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ie=t.SAFE_FOR_TEMPLATES||!1,He=!1!==t.SAFE_FOR_XML,Ue=t.WHOLE_DOCUMENT||!1,We=t.RETURN_DOM||!1,Ye=t.RETURN_DOM_FRAGMENT||!1,Ze=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,qe=t.SANITIZE_NAMED_PROPS||!1,$e=!1!==t.KEEP_CONTENT,Xe=t.IN_PLACE||!1,Ne=t.ALLOWED_URI_REGEXP||Ne,ut=t.NAMESPACE||at,xe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&vt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&vt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Me=!1),Ye&&(We=!0),Je&&(Te=D({},o(z)),Pe=[],!0===Je.html&&(D(Te,R),D(Pe,W)),!0===Je.svg&&(D(Te,B),D(Pe,Y),D(Pe,V)),!0===Je.svgFilters&&(D(Te,I),D(Pe,Y),D(Pe,V)),!0===Je.mathMl&&(D(Te,U),D(Pe,Z),D(Pe,V))),t.ADD_TAGS&&(Te===je&&(Te=F(Te)),D(Te,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Pe===ke&&(Pe=F(Pe)),D(Pe,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&D(rt,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ke===et&&(Ke=F(Ke)),D(Ke,t.FORBID_CONTENTS,ge)),$e&&(Te["#text"]=!0),Ue&&D(Te,["html","head","body"]),Te.table&&(D(Te,["tbody"]),delete Ae.tbody),y&&y(t),mt=t)},gt=D({},["mi","mo","mn","ms","mtext"]),bt=D({},["annotation-xml"]),Et=D({},["title","style","font","a","script"]),wt=D({},B);D(wt,I),D(wt,H);var St=D({},U);D(St,G);var Ot=function(e){var t=x(e);t&&t.tagName||(t={namespaceURI:ut,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===lt?t.namespaceURI===at?"svg"===n:t.namespaceURI===it?"svg"===n&&("annotation-xml"===r||gt[r]):Boolean(wt[n]):e.namespaceURI===it?t.namespaceURI===at?"math"===n:t.namespaceURI===lt?"math"===n&&bt[r]:Boolean(St[n]):e.namespaceURI===at?!(t.namespaceURI===lt&&!bt[r])&&!(t.namespaceURI===it&&!gt[r])&&!St[n]&&(Et[n]||!wt[n]):!("application/xhtml+xml"!==he||!st[e.namespaceURI]))},_t=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ue}catch(t){e.remove()}}},Lt=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Pe[e])if(We||Ye)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ct=function(e){var t,n;if(ze)e="<remove></remove>"+e;else{var r=C(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&ut===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(ut===at)try{t=(new m).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(ut,"template",null);try{t.documentElement.innerHTML=ct?ue:o}catch(e){}}var l=t.body||t.documentElement;return e&&n&&l.insertBefore(i.createTextNode(n),l.childNodes[0]||null),ut===at?pe.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:l},Nt=function(e){return de.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},Tt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},jt=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Pt=function(e,t,r){ve[e]&&w(ve[e],(function(e){e.call(n,t,r,mt)}))},kt=function(e){var t;if(Pt("beforeSanitizeElements",e,null),Tt(e))return _t(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return _t(e),!0;var r=ge(e.nodeName);if(Pt("uponSanitizeElement",e,{tagName:r,allowedTags:Te}),e.hasChildNodes()&&!jt(e.firstElementChild)&&(!jt(e.content)||!jt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return _t(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return _t(e),!0;if(7===e.nodeType)return _t(e),!0;if(He&&8===e.nodeType&&P(/<[/\w]/g,e.data))return _t(e),!0;if(!Te[r]||Ae[r]){if(!Ae[r]&&At(r)){if(xe.tagNameCheck instanceof RegExp&&P(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if($e&&!Ke[r]){var o=x(e)||e.parentNode,i=E(e)||e.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=g(i[l],!0);a.__removalCount=(e.__removalCount||0)+1,o.insertBefore(a,b(e))}}return _t(e),!0}return e instanceof c&&!Ot(e)?(_t(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!P(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=N(t,be," "),t=N(t,Ee," "),t=N(t,we," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pt("afterSanitizeElements",e,null),!1):(_t(e),!0)},xt=function(e,t,n){if(Ve&&("id"===t||"name"===t)&&(n in i||n in yt))return!1;if(Me&&!De[t]&&P(Se,t));else if(Fe&&P(Oe,t));else if(!Pe[t]||De[t]){if(!(At(e)&&(xe.tagNameCheck instanceof RegExp&&P(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&P(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&P(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(rt[t]);else if(P(Ne,N(n,Le,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!tt[e])if(Re&&!P(_e,N(n,Le,"")));else if(n)return!1;return!0},At=function(e){return"annotation-xml"!==e&&C(e,Ce)},Dt=function(t){var r,o,i,l;Pt("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a&&!Tt(t)){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe};for(l=a.length;l--;){var c=r=a[l],s=c.name,d=c.namespaceURI;if(o="value"===s?r.value:j(r.value),i=ge(s),u.attrName=i,u.attrValue=o,u.keepAttr=!0,u.forceKeepAttr=void 0,Pt("uponSanitizeAttribute",t,u),o=u.attrValue,!u.forceKeepAttr&&(Lt(s,t),u.keepAttr))if(Be||!P(/\/>/i,o)){Ie&&(o=N(o,be," "),o=N(o,Ee," "),o=N(o,we," "));var f=ge(t.nodeName);if(xt(f,i,o))if(!qe||"id"!==i&&"name"!==i||(Lt(s,t),o=Qe+o),He&&P(/((--!?|])>)|<\/(style|title)/i,o))Lt(s,t);else{if(ae&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(f,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,s,o):t.setAttribute(s,o),Tt(t)?_t(t):S(n.removed)}catch(e){}}}else Lt(s,t)}Pt("afterSanitizeAttributes",t,null)}},Ft=function e(t){var n,r=Nt(t);for(Pt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pt("uponSanitizeShadowNode",n,null),kt(n),Dt(n),n.content instanceof l&&e(n.content);Pt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var i,a,c,s,d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ct=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!jt(o)){if("function"!=typeof o.toString)throw k("toString is not a function");if("string"!=typeof(o=o.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(jt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ge||ht(f),n.removed=[],"string"==typeof o&&(Xe=!1),Xe){if(o.nodeName){var p=ge(o.nodeName);if(!Te[p]||Ae[p])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof u)1===(a=(i=Ct("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!We&&!Ie&&!Ue&&-1===o.indexOf("<"))return ae&&Ze?ae.createHTML(o):o;if(!(i=Ct(o)))return We?null:Ze?ue:""}i&&ze&&_t(i.firstChild);for(var m=Nt(Xe?o:i);c=m.nextNode();)3===c.nodeType&&c===s||(kt(c),Dt(c),c.content instanceof l&&Ft(c.content),s=c);if(s=null,Xe)return o;if(We){if(Ye)for(d=fe.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return(Pe.shadowroot||Pe.shadowrootmod)&&(d=me.call(r,d,!0)),d}var y=Ue?i.outerHTML:i.innerHTML;return Ue&&Te["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&P(ne,i.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+y),Ie&&(y=N(y,be," "),y=N(y,Ee," "),y=N(y,we," ")),ae&&Ze?ae.createHTML(y):y},n.setConfig=function(e){ht(e),Ge=!0},n.clearConfig=function(){mt=null,Ge=!1},n.isValidAttribute=function(e,t,n){mt||ht({});var r=ge(e),o=ge(t);return xt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ve[e]=ve[e]||[],O(ve[e],t))},n.removeHook=function(e){if(ve[e])return S(ve[e])},n.removeHooks=function(e){ve[e]&&(ve[e]=[])},n.removeAllHooks=function(){ve={}},n}return le()}()},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{displayPanel:()=>k,hideCurrentPanel:()=>A,registerPanel:()=>P,setColorScheme:()=>F,setIsEditing:()=>D,setShouldShowShortcuts:()=>j,togglePanel:()=>x});var t={};n.r(t),n.d(t,{colorScheme:()=>W,currentPanel:()=>G,isEditing:()=>z,panels:()=>U,shouldShowShortcuts:()=>H});var r={};n.r(r),n.d(r,{after:()=>Z,before:()=>Y});var o={};n.r(o),n.d(o,{editing:()=>ze,layout:()=>Ge,resizing:()=>We});var i={};n.r(i),n.d(i,{addColumnGroup:()=>gt,addColumnTemplate:()=>jt,addColumns:()=>dt,addModule:()=>ut,addNodeTemplate:()=>_t,addRow:()=>bt,addRowTemplate:()=>Pt,applyModuleAlias:()=>st,applyTemplate:()=>Ot,cancelDisplaySettings:()=>Wt,clearHistoryStates:()=>Ut,copyColumn:()=>mt,copyModule:()=>ct,copyRow:()=>Et,deleteColumn:()=>vt,deleteNode:()=>lt,deleteNodeTemplate:()=>Ct,deleteUserTemplate:()=>Tt,discardDraft:()=>It,displaySettings:()=>zt,fetchLayout:()=>kt,insertFreeformNode:()=>Xe,insertNode:()=>$e,insertNodes:()=>Je,moveColumn:()=>pt,moveNode:()=>tt,redo:()=>Qe,removeNode:()=>at,renderHistoryState:()=>Gt,renderLayout:()=>At,renderNode:()=>nt,reorderChildren:()=>et,reorderColumn:()=>ft,reorderNode:()=>Ke,resetColWidths:()=>ht,resetRowWidth:()=>St,resizeColumn:()=>yt,resizeRowContent:()=>wt,resizingComplete:()=>Yt,saveDraft:()=>Bt,saveGlobalSettings:()=>Ft,saveGlobalStyles:()=>Mt,saveHistoryState:()=>Ht,saveLayout:()=>Rt,saveLayoutSettings:()=>Dt,saveNodeTemplate:()=>Lt,saveUserTemplateSettings:()=>Nt,setLayout:()=>xt,undo:()=>qe,updateNode:()=>rt,updateNodeSetting:()=>it,updateNodeSettings:()=>ot});var l={};n.r(l),n.d(l,{after:()=>$t,before:()=>Qt});var a={};n.r(a),n.d(a,{setActiveNode:()=>pn,setFocusNode:()=>mn});var u={};n.r(u),n.d(u,{activeNode:()=>yn,focusNode:()=>vn});var c={};n.r(c),n.d(c,{getChildren:()=>dn,getLayoutActions:()=>ln,getLayoutHooks:()=>an,getLayoutState:()=>on,getLayoutStore:()=>rn,getNode:()=>cn,getOutlinePanelActions:()=>wn,getOutlinePanelSelectors:()=>Sn,getOutlinePanelState:()=>En,getOutlinePanelStore:()=>bn,getSystemActions:()=>X,getSystemConfig:()=>K,getSystemSelectors:()=>J,getSystemState:()=>$,getSystemStore:()=>Q,nodeExists:()=>fn,updateNode:()=>sn,useLayoutState:()=>un,useOutlinePanelState:()=>gn,useSystemState:()=>q});var s={};n.r(s),n.d(s,{copyNode:()=>_n,deleteNode:()=>On,moveNode:()=>Cn,scrollToNode:()=>Ln});var d={};n.r(d),n.d(d,{openSettings:()=>Nn});var f={};n.r(f),n.d(f,{moveNodeInDOM:()=>Pn});var p={};n.r(p),n.d(p,{displayPanel:()=>Hn,getActions:()=>Fn,getConfig:()=>Mn,getStrings:()=>Rn,registerPanel:()=>In,togglePanel:()=>Un});const m=React;var y=n.n(m);const v=ReactDOM;var h=18<=parseInt(y().version.split(".")[0]);const g=FL.vendors.BBAppCore;var b=(0,g.createStoreRegistry)(),E=b.registerStore,w=b.useStore,S=b.getStore,O=b.getDispatch,_=b.getSelectors;function L(e){return L="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},L(e)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=function(e){return{type:"SET_SHOULD_SHOW_SHORTCUTS",value:e}},P=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"REGISTER_PANEL",handle:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fl/untitled",options:N(N({},{label:"",root:null,render:function(){return null},className:null,routerProps:{},onHistoryChanged:function(){}}),e)}},k=function(){return{type:"SET_CURRENT_PANEL",name:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}},x=function(){return{type:"TOGGLE_PANEL",name:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}},A=function(){return{type:"HIDE_CURRENT_PANEL"}},D=function(){return{type:"SET_IS_EDITING",value:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}},F=function(){return{type:"SET_COLOR_SCHEME",value:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"}};function M(e){return M="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},M(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SHOULD_SHOW_SHORTCUTS"===t.type?!!t.value:e},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"REGISTER_PANEL"===t.type?B(B({},e),{},I({},t.handle,t.options)):e},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CURRENT_PANEL":return t.name;case"HIDE_CURRENT_PANEL":return null;case"TOGGLE_PANEL":return t.name===e?null:t.name;default:return e}},z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_IS_EDITING"===t.type?!!t.value:e},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",t=arguments.length>1?arguments[1]:void 0;return"SET_COLOR_SCHEME"===t.type&&["light","dark","auto"].includes(t.value)?t.value:e},Y={},Z={TOGGLE_PANEL:function(e,t){var n=t.getState().currentPanel,r=window.parent.document.querySelector("html");n&&FLBuilder._closePanel(),"assistant"===n?r.classList.add("fl-builder-assistant-visible"):r.classList.remove("fl-builder-assistant-visible")},HIDE_CURRENT_PANEL:function(){window.parent.document.querySelector("html").classList.remove("fl-builder-assistant-visible")},SET_COLOR_SCHEME:function(e,t){var n=t.getState().colorScheme;FL.Builder.utils.colorScheme.setBodyClasses(n),FLBuilder.ajax({action:"save_ui_skin",skin_name:n});var r=window.parent.document.querySelector(".fl-builder-global-settings select[name=color_scheme]");r&&r.value!==n&&(r.value=n)}},V="fl-builder/system";E(V,{actions:e,reducers:t,effects:r,state:{isEditing:!0,currentPanel:null,shouldShowShortcuts:!1,colorScheme:FLBuilderConfig.userSettings.skin,panels:{}}});var q=function(){return w(V)},Q=function(){return S(V)},$=function(){return S(V).getState()},X=function(){return O(V)},J=function(){return _(V)},K=function(){return window.FLBuilderConfig};const ee=Redux;var te=function(e){var t=e.before,n=e.after;return function(e){return function(r){return function(o){t&&t[o.type]&&t[o.type](o,e);var i=r(o);return n&&n[o.type]&&n[o.type](o,e),i}}}};const ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,o=r?r({name:e}):ee.compose;return o((0,ee.applyMiddleware)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.getState;return function(t){return function(r){var o=t(r),i=n();return void 0!==e[r.type]&&e[r.type](i,r),o}}}}(n),te(t)))};function re(e){return re="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},re(e)}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,t):void 0}}(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 ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==re(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={};return Object.values(e).filter((function(e){return t===e.parent})).map((function(e){return n[e.node]=e})),n},se=function(){var e=arguments.length>1?arguments[1]:void 0,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layout.present.nodes;return void 0!==t[e]&&t[e].settings?t[e].settings:{}},de=function(e,t){return Object.keys(e).length!==Object.keys(t).length||Object.values(e).some((function(e){var n=t[e.node];return void 0===e||void 0===n||(e.type!==n.type||e.parent!==n.parent||e.position!==n.position||e.global!==n.global)}))},fe=function(e,t){return Object.keys(e).length!==Object.keys(t).length||Object.keys(e).some((function(n){return e[n]!==t[n]}))};const pe=function(e){var t=function(){var e=arguments.length>1?arguments[1]:void 0,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layout.present.nodes;return 1===Object.keys(t).length?null!=e&&(t=ce(t,e)):void 0!==e&&(t=ce(t,e)),function(e){var t={};return Object.values(e).map((function(e){var n=ae({},e);delete n.settings,t[e.node]=n})),t}(t)};return{useLayoutStore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0},n=e.getState(),r=(0,m.useRef)(n),o=oe((0,m.useState)(n),2),i=o[0],l=o[1];return(0,m.useEffect)((function(){return l(e.getState()),e.subscribe((function(){var n=e.getState();t(r.current,n)&&l(ae({},n)),r.current=n}))}),[]),i},useNodeSettings:function(t){var n=se(e.getState(),t),r=(0,m.useRef)(n),o=oe((0,m.useState)(n),2),i=o[0],l=o[1];return(0,m.useEffect)((function(){var n=se(e.getState(),t);return fe(n,r.current)&&l(n),r.current=n,e.subscribe((function(){var n=se(e.getState(),t);fe(n,r.current)&&l(n),r.current=n}))}),[t]),i},useNodesWithoutSettings:function(n){var r=t(e.getState(),n),o=(0,m.useRef)(r),i=oe((0,m.useState)(r),2),l=i[0],a=i[1];return(0,m.useEffect)((function(){var r=t(e.getState(),n);return de(r,o.current)&&a(r),o.current=r,e.subscribe((function(){var r=t(e.getState(),n);de(r,o.current)&&a(r),o.current=r}))}),[]),l},useNodeChildren:function(t){var n=function(e,t){var n=t.layout.present.nodes;return Object.values(n).filter((function(t){return e===t.parent})).sort((function(e,t){return e.position-t.position}))},r=oe((0,m.useState)(n(t,e.getState())),2),o=r[0],i=r[1];return(0,m.useEffect)((function(){return e.subscribe((function(){var r=n(t,e.getState());o!==r&&i(r)}))}),[]),o}}};function me(e){return me="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},me(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==me(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge={layout:{past:[],present:{attachments:[],nodes:{}},future:[]}},be={state:{},reducers:{},actions:{},effects:{},tests:{}};const Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fl-builder/layout",n=ve(ve({},be),e),r=ve(ve({},ge),n.state),o=(0,ee.combineReducers)(n.reducers),i=ne(t,n.effects,n.tests),l=(0,ee.createStore)(o,r,i);return{store:l,actions:(0,ee.bindActionCreators)(ve({},n.actions),l.dispatch),hooks:pe(l)}};const we=function(e){var t={past:[],present:e(void 0,{}),future:[]};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1?arguments[1]:void 0,o=n.past,i=void 0===o?[]:o,l=n.present,a=n.future,u=void 0===a?[]:a;return"RESIZE_COLUMN"===r.type?(r.persist,{past:i,present:e(l,r),future:u}):{past:i,present:e(l,r),future:u}}};function Se(e){return Se="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},Se(e)}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce={node:"",type:"",parent:"",position:0,global:!1,settings:{}},Ne=function(e,t){return e.position>t.position?1:e.position<t.position?-1:0},Te=function(e){return void 0!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})[e]},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.values(e).filter((function(e){return t===e.parent})).sort(Ne)},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_e(_e(_e({},Ce),e),t);return"module"===n.type&&void 0===n.settings.type&&(n.settings.type=e.settings.type),n},ke=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(void 0===r[e])return console.error("Undefined node",e),o;var i=je(r,t).filter((function(t){return e!==t.node})).map((function(e){return e.node}));return i.splice(n,0,e),i.map((function(e,n){o[e]=Pe(r[e],{position:n,parent:t})})),o},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_e(_e({},e),{},Le({},t,Pe(e[t],n)));return ke(n.node,n.parent,n.position,r)},Ae=function(e,t){var n=[],r=_e({},t);return Object.values(r).map((function(t){e===t.parent&&n.push(t.node)})),n.map((function(e){delete(r=Ae(e,r))[e]})),r},De=function(e,t){var n={};if(void 0===t[e])return console.warn("Node to be deleted is undefined",e),t;var r=t[e].parent,o=t[e].type,i=Ae(e,t);delete i[e],"column"===o&&Fe(r,i)&&delete i[r];var l=je(i,r);return l.map((function(e,t){if(e.position=t,"column"===e.type){var r=100/l.length;r=r.toPrecision(5),e.settings.size=r}n[e.node]=e})),_e({},i)},Fe=function(e,t){return 0===Object.values(t).filter((function(t){return t.parent===e})).length},Me=function(e){void 0!==e&&(console.assert("node"in e,"Node has no id property"),console.assert("type"in e,"Node has no type property"),console.assert("parent"in e,"Node has no parent property"),console.assert("position"in e,"Node has no position property"),console.assert("settings"in e,"Node has no settings property"),console.assert("global"in e,"Node has no global property"),"module"===e.type&&console.assert("type"in e.settings,"Module settings should contain type property."))},Re=function(e){var t=function(e){var t=Object.keys(e);return Object.values(e).filter((function(e){return null!==e.parent&&!t.includes(e.node)}))}(e);console.assert(0===t.length,"There should be no orphaned nodes",t)};function Be(e){return Be="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},Be(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Be(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge=we((0,ee.combineReducers)({attachments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"SET_LAYOUT"===t.type&&void 0!==t.attachments?t.attachments:e},nodes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_NODE":return He(He({},e),xe(e,t.id,{node:t.id,parent:t.parent,type:t.nodeType,position:t.position,settings:t.settings,global:t.global}));case"INSERT_FREEFORM_NODE":return He(He({},e),xe(e,t.id,t.node));case"INSERT_NODES":return He(He({},e),t.nodes);case"REORDER_NODE":case"REORDER_COLUMN":return He(He({},e),ke(t.id,e[t.id].parent,t.position,e));case"REPARENT_NODE":case"REPARENT_COLUMN":var n=t.parent?t.parent:null;return He(He({},e),ke(t.id,n,t.position,e));case"UPDATE_NODE":return He(He({},e),{},Ue({},t.id,Pe(e[t.id],t.node)));case"UPDATE_NODE_SETTING":return He(He({},e),{},Ue({},t.id,Pe(e[t.id],{settings:He(He({},e[t.id].settings),{},Ue({},t.key,t.value))})));case"UPDATE_NODE_SETTINGS":return void 0===e[t.id]?e:He(He({},e),{},Ue({},t.id,Pe(e[t.id],{settings:He(He(He({},e[t.id].settings),t.settings),{},{type:"module"===e[t.id].type?e[t.id].settings.type:void 0})})));case"DELETE_NODE":case"REMOVE_NODE":case"DELETE_COLUMN":return De(t.id,e);case"REORDER_CHILDREN":return He(He({},e),function(e,t,n){var r=Object.values(n).filter((function(t){return t.parent===e})),o={};return t.map((function(e,t){var n=r.find((function(t){return t.node===e}));n&&(o[n.node]=_e(_e({},n),{},{position:t}))})),o}(t.parentId,t.childIds,e));case"RESIZE_COLUMN":return He(He({},e),{},Ue(Ue({},t.id,Pe(e[t.id],{settings:He(He({},e[t.id].settings),{},{size:t.width})})),t.siblingId,Pe(e[t.siblingId],{settings:He(He({},e[t.siblingId].settings),{},{size:t.siblingWidth})})));case"RESET_COLUMN_WIDTHS":return He(He({},e),function(){var e=arguments.length>1?arguments[1]:void 0,t={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(n){var r=Object.values(e).filter((function(e){return n===e.parent})),o=(100/r.length).toPrecision(5);r.map((function(e){t[e.node]=Pe(e,{settings:_e(_e({},e.settings),{},{size:o})})}))})),t}(t.groupIds,e));case"RESIZE_ROW_CONTENT":return He(He({},e),{},Ue({},t.id,Pe(e[t.id],{settings:He(He({},e[t.id].settings),{},{max_content_width:t.width})})));case"RESET_ROW_WIDTH":return He(He({},e),{},Ue({},t.id,Pe(e[t.id],{settings:He(He({},e[t.id].settings),{},{max_content_width:""})})));case"ADD_COLUMN_TEMPLATE":case"ADD_ROW_TEMPLATE":return console.log(t.type,"Needs node reducer implementation?"),e;case"SET_LAYOUT":return t.nodes;default:return e}},globalSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SAVE_GLOBAL_SETTINGS"===t.type?t.settings:e}})),ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISPLAY_SETTINGS":return t.id;case"UPDATE_NODE_SETTINGS":case"CANCEL_DISPLAY_SETTINGS":return null;default:return e}},We=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESIZING_COMPLETE":return!1;case"RESIZE_ROW_CONTENT":return[t.id];case"RESIZE_COLUMN":return[t.id,t.siblingId];default:return e}};function Ye(e){return Ye="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},Ye(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ye(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qe=function(){return{type:"UNDO"}},Qe=function(){return{type:"REDO"}},$e=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length,a=new Array(l>6?l-6:0),u=6;u<l;u++)a[u-6]=arguments[u];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"INSERT_NODE",id:e,parent:t,position:r,nodeType:n,settings:o,global:i},a)},Xe=function(e){return{type:"INSERT_FREEFORM_NODE",id:e,node:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}},Je=function(){return{type:"INSERT_NODES",nodes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},Ke=function(e,t){return{type:"REORDER_NODE",id:e,position:t}},et=function(e){return{type:"REORDER_CHILDREN",parentId:e,childIds:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]}},tt=function(e,t,n){return{type:"REPARENT_NODE",id:e,parent:t,position:n}},nt=function(e){return{type:"RENDER_NODE",id:e,callback:arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){}}},rt=function(e){return{type:"UPDATE_NODE",id:e,node:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}},ot=function(e){return{type:"UPDATE_NODE_SETTINGS",id:e,settings:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},callback:arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){}}},it=function(e,t,n){return{type:"UPDATE_NODE_SETTING",id:e,key:t,value:n}},lt=function(e){return{type:"DELETE_NODE",id:e}},at=function(e){return{type:"REMOVE_NODE",id:e}},ut=function(e,t,n){return{type:"ADD_MODULE",moduleType:e,parent:t,position:n,config:arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}}},ct=function(e){return{type:"COPY_MODULE",id:e,settings:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},callback:arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){}}},st=function(e,t,n){return{type:"APPLY_MODULE_ALIAS",id:e,alias:t,settings:n,callback:arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){}}},dt=function(e,t){return{type:"ADD_COLUMNS",id:e,insert:t,colType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1-col",nested:arguments.length>3?arguments[3]:void 0,module:arguments.length>4?arguments[4]:void 0}},ft=function(e,t){return{type:"REORDER_COLUMN",id:e,position:t}},pt=function(e,t,n){return{type:"REPARENT_COLUMN",id:e,parent:t,position:n,resize:arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]}},mt=function(e,t,n){return{type:"COPY_COLUMN",id:e,settings:t,settingsId:n,callback:arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){}}},yt=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{type:"RESIZE_COLUMN",id:e,width:parseFloat(t),siblingId:n,siblingWidth:parseFloat(r),shouldPersist:o}},vt=function(e,t){return{type:"DELETE_COLUMN",id:e,width:t}},ht=function(){return{type:"RESET_COLUMN_WIDTHS",groupIds:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}},gt=function(e,t,n,r){return{type:"ADD_COLUMN_GROUP",id:e,cols:t,position:n,module:r}},bt=function(){return{type:"ADD_ROW",cols:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,position:arguments.length>1?arguments[1]:void 0,module:arguments.length>2?arguments[2]:void 0}},Et=function(e){return{type:"COPY_ROW",id:e,settings:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},settingsId:arguments.length>2?arguments[2]:void 0,callback:arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){}}},wt=function(e,t){return{type:"RESIZE_ROW_CONTENT",id:e,width:t,shouldPersist:!(arguments.length>2&&void 0!==arguments[2])||arguments[2]}},St=function(e){return{type:"RESET_ROW_WIDTH",id:e}},Ot=function(e){return{type:"APPLY_TEMPLATE",id:e,append:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",templateType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core"}},_t=function(e,t,n,r,o){return{type:"ADD_NODE_TEMPLATE",nodeType:e,templateId:t,templateType:n,parent:r,position:o,callback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){}}},Lt=function(e){return{type:"SAVE_NODE_TEMPLATE",id:e,settings:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}},Ct=function(e){return{type:"DELETE_NODE_TEMPLATE",id:e,global:arguments.length>1&&void 0!==arguments[1]&&arguments[1]}},Nt=function(){return{type:"SAVE_USER_TEMPLATE_SETTINGS",settings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},Tt=function(e){return{type:"DELETE_USER_TEMPLATE",id:e}},jt=function(){return{type:"ADD_COLUMN_TEMPLATE"}},Pt=function(){return{type:"ADD_ROW_TEMPLATE"}},kt=function(){return{type:"FETCH_LAYOUT"}},xt=function(){return{type:"SET_LAYOUT",nodes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},attachments:arguments.length>1?arguments[1]:void 0}},At=function(){return{type:"RENDER_LAYOUT"}},Dt=function(){return{type:"SAVE_LAYOUT_SETTINGS",settings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},Ft=function(){return{type:"SAVE_GLOBAL_SETTINGS",settings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},Mt=function(){return{type:"SAVE_GLOBAL_STYLES",settings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},Rt=function(){return{type:"SAVE_LAYOUT",shouldPublish:arguments.length>0&&void 0!==arguments[0]&&arguments[0],shouldExit:arguments.length>1&&void 0!==arguments[1]&&arguments[1],callback:arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){}}},Bt=function(){return{type:"SAVE_DRAFT"}},It=function(){return{type:"DISCARD_DRAFT"}},Ht=function(e,t){return{type:"SAVE_HISTORY_STATE",label:e,moduleType:t}},Ut=function(e){return{type:"CLEAR_HISTORY_STATES",postId:e,shouldExit:arguments.length>1&&void 0!==arguments[1]&&arguments[1]}},Gt=function(e){return{type:"RENDER_HISTORY_STATE",position:e,callback:arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){}}},zt=function(e){return{type:"DISPLAY_SETTINGS",id:e}},Wt=function(){return{type:"CANCEL_DISPLAY_SETTINGS"}},Yt=function(){return{type:"RESIZING_COMPLETE"}};function Zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(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 Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var qt=function(e,t){var n=FLBuilder._jsonParse(e),r=n.newNodes,o=void 0===r?{}:r,i=n.updatedNodes,l=void 0===i?{}:i;0<Object.keys(o).length&&t.dispatch(Je(o)),Object.entries(l).map((function(e){var n=Zt(e,2),r=n[0],o=n[1];t.dispatch(rt(r,o))}))},Qt={},$t={UNDO:function(){window.FLBuilderHistoryManager.renderState("prev")},REDO:function(){window.FLBuilderHistoryManager.renderState("next")},UPDATE_NODE_SETTINGS:function(e){var t=e.id,n=e.settings,r=e.callback;FLBuilder.ajax({action:"save_settings",node_id:t,settings:n},r)},REORDER_NODE:function(e,t){var n=e.id,r=e.position;(0,FL.Builder.getActions().moveNodeInDOM)(n,r),FLBuilder.ajax({action:"reorder_node",node_id:n,position:r},(function(e){qt(e,t),FLBuilder._reorderNodeComplete(e)}))},REPARENT_NODE:function(e,t){var n=e.id,r=e.parent,o=e.position;(0,FL.Builder.getActions().moveNodeInDOM)(n,o,r),FLBuilder.ajax({action:"move_node",new_parent:r,node_id:n,position:o},(function(e){qt(e,t),FLBuilder._moveNodeComplete(e)}))},RENDER_NODE:function(e){var t=e.id,n=e.callback;FLBuilder.ajax({action:"render_node",node_id:t},(function(e){var t=FLBuilder._jsonParse(e);FLBuilder._renderLayout(t,n)}))},DELETE_NODE:function(e){var t=e.id;FLBuilder.ajax({action:"delete_node",node_id:t})},REORDER_CHILDREN:function(e){var t=e.childIds,n=FL.Builder.getActions().moveNodeInDOM;t.map((function(e,t){n(e,t)}))},ADD_MODULE:function(e,t){var n=e.moduleType,r=e.parent,o=e.position,i=e.config;FLBuilder.ajax({action:"render_new_module",parent_id:r,type:n,position:o,node_preview:i.nodePreview,widget:i.widget,alias:i.alias},(function(e){qt(e,t),FLBuilder._addModuleComplete(e)}))},COPY_MODULE:function(e,t){var n=e.id,r=e.settings,o=e.callback;FLBuilder.ajax({action:"copy_module",node_id:n,settings:r},(function(e){qt(e,t),o(e)}))},APPLY_MODULE_ALIAS:function(e,t){var n=e.id,r=e.alias,o=e.settings,i=e.callback;FLBuilder.ajax({action:"apply_module_alias",node_id:n,alias:r,settings:o},(function(e){qt(e,t),i(e)}))},ADD_COLUMNS:function(e,t){var n=e.id,r=e.insert,o=e.colType,i=e.nested,l=e.module;FLBuilder.ajax({action:"render_new_columns",node_id:n,insert:r,type:o,nested:i,module:l},(function(e){qt(e,t),FLBuilder._addColsComplete(e)}))},RESIZE_COLUMN:function(e,t){var n=e.id,r=e.width,o=e.siblingId,i=e.siblingWidth;e.shouldPersist&&(t.dispatch(Yt()),FLBuilder.ajax({action:"resize_cols",col_id:n,col_width:r,sibling_id:o,sibling_width:i},(function(e){return qt(e,t)})))},RESET_COLUMN_WIDTHS:function(e){var t=e.groupIds;FLBuilder.ajax({action:"reset_col_widths",group_id:t},(function(){return FLBuilder.triggerHook("didResetColumnWidthsComplete")}))},DELETE_COLUMN:function(e){var t=e.id,n=e.width;FLBuilder.ajax({action:"delete_col",node_id:t,new_width:n})},REORDER_COLUMN:function(e){var t=e.id,n=e.position;(0,FL.Builder.getActions().moveNodeInDOM)(t,n),FLBuilder.ajax({action:"reorder_col",node_id:t,position:n},(function(){return FLBuilder.triggerHook("didMoveColumn")}))},REPARENT_COLUMN:function(e){var t=e.id,n=e.parent,r=e.position,o=e.resize;(0,FL.Builder.getActions().moveNodeInDOM)(t,r,n),FLBuilder.ajax({action:"move_col",node_id:t,new_parent:n,position:r,resize:o},(function(){return FLBuilder.triggerHook("didMoveColumn")}))},COPY_COLUMN:function(e,t){var n=e.id,r=e.settings,o=e.settingsId,i=e.callback;FLBuilder.ajax({action:"copy_col",node_id:n,settings:r,settings_id:o},(function(e){qt(e,t),i(e)}))},ADD_COLUMN_GROUP:function(e,t){var n=e.id,r=e.cols,o=e.position,i=e.module;FLBuilder.ajax({action:"render_new_column_group",node_id:n,cols:r,position:o,module:i},(function(e){qt(e,t),FLBuilder._addColGroupComplete(e)}))},ADD_ROW:function(e,t){var n=e.cols,r=e.position,o=e.module;FLBuilder.ajax({action:"render_new_row",cols:n,position:r,module:o},(function(e){qt(e,t),FLBuilder._addRowComplete(e)}))},COPY_ROW:function(e,t){var n=e.id,r=e.settings,o=e.settingsId,i=e.callback;FLBuilder.ajax({action:"copy_row",node_id:n,settings:r,settings_id:o},(function(e){qt(e,t),i(e)}))},RESIZE_ROW_CONTENT:function(e,t){var n=e.id,r=e.width;e.shouldPersist&&(FLBuilder.ajax({action:"resize_row_content",node:n,width:r}),t.dispatch(Yt()))},RESET_ROW_WIDTH:function(e){var t=e.id;FLBuilder.ajax({action:"resize_row_content",node:t,width:""})},APPLY_TEMPLATE:function(e,t){var n=e.id,r=e.append,o=e.templateType,i="core"===o?FLBuilder._applyTemplateComplete:FLBuilder._applyUserTemplateComplete;FLBuilder.ajax({action:"core"===o?"apply_template":"apply_user_template",template_id:n,append:r},(function(e){var n=FLBuilder._jsonParse(e);t.dispatch(xt(n.newNodes,[])),i(e)}))},ADD_NODE_TEMPLATE:function(e,t){var n=e.nodeType,r=e.templateId,o=e.templateType,i=e.parent,l=e.position,a=e.callback,u="";switch(n){case"row":u="render_new_row_template";break;case"column":u="render_new_col_template";break;default:u="render_new_module"}FLBuilder.ajax({action:u,template_id:r,template_type:o,parent_id:i,position:l},(function(e){qt(e,t),a(e)}))},SAVE_NODE_TEMPLATE:function(e,t){var n=e.id,r=e.settings;FLBuilder.ajax({action:"save_node_template",node_id:n,settings:r},(function(e){t.dispatch(kt()),FLBuilder._saveNodeTemplateComplete(e),FLBuilder._hideNodeLoading(n)}))},DELETE_NODE_TEMPLATE:function(e){var t=e.id,n=e.global;FLBuilder.ajax({action:"delete_node_template",template_id:t},(function(){n&&FLBuilder._updateLayout()}))},SAVE_USER_TEMPLATE_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_user_template",settings:t},FLBuilder._saveUserTemplateSettingsComplete)},DELETE_USER_TEMPLATE:function(e){var t=e.id;FLBuilder.ajax({action:"delete_user_template",template_id:t})},RENDER_LAYOUT:function(){FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},FETCH_LAYOUT:function(e,t){FLBuilder.ajax({action:"get_layout"},(function(e){var n=FLBuilder._jsonParse(e),r=n.nodes,o=n.attachments;t.dispatch(xt(r,o))}))},SAVE_LAYOUT:function(e){var t=e.shouldPublish,n=e.shouldExit,r=e.callback;FLBuilder.ajax({action:"save_layout",publish:t,exit:n?1:0},r)},SAVE_DRAFT:function(){FLBuilder.ajax({action:"save_draft"},FLBuilder._exit)},DISCARD_DRAFT:function(){FLBuilder.ajax({action:"clear_draft_layout"},(function(){FLBuilder.triggerHook("didDiscardChanges"),FLBuilder._exit()}))},SAVE_LAYOUT_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_layout_settings",settings:t},(function(){return FLBuilder._saveLayoutSettingsComplete(t)}))},SAVE_GLOBAL_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_global_settings",settings:t},FLBuilder._saveGlobalSettingsComplete)},SAVE_GLOBAL_STYLES:function(e){var t=e.settings;FLBuilder.ajax({action:"save_global_styles",settings:t},FLBuilderGlobalStyles._onSaveComplete)},SAVE_HISTORY_STATE:function(e){var t=e.label,n=e.moduleType;if(!FLBuilderConfig.history.enabled)return!1;FLBuilder.ajax({action:"save_history_state",label:t,module_type:n},(function(e){var t=FLBuilder._jsonParse(e);FLBuilderHistoryManager.states=t.states,FLBuilderHistoryManager.position=parseInt(t.position),FLBuilderHistoryManager.setupMainMenuData()}))},CLEAR_HISTORY_STATES:function(e){var t=e.postId;e.shouldExit||FLBuilder.ajax({action:"clear_history_states",post_id:t},(function(){FLBuilderHistoryManager.saveCurrentState("draft_created")}))},RENDER_HISTORY_STATE:function(e,t){var n=e.position,r=e.callback;FLBuilder.ajax({action:"render_history_state",position:n},(function(e){var n=FLBuilder._jsonParse(e),o=n.newNodes,i=n.config;t.dispatch(xt(o,i.attachments)),r(e)}))},DISPLAY_SETTINGS:function(e,t){var n=e.id,r=t.getState().layout.present.nodes;if("global"!==n)if("layout"!==n){if(void 0!==r[n]){var o=r[n],i=o.type,l=o.settings,a=o.parent,u=o.global,c=o.template_id;switch(i){case"column-group":break;case"row":FLBuilder._showRowSettings(n,u);break;case"column":var s="column"!==FLBuilderConfig.userTemplateType&&void 0!==c;FLBuilder._showColSettings(n,u,s);break;default:FLBuilder._showModuleSettings({nodeId:n,parentId:a,type:l.type,global:u})}}}else FLBuilder._layoutSettingsClicked();else FLBuilder._globalSettingsClicked()}},Xt={SET_LAYOUT:function(e){!function(e){Object.values(e).map(Me)}(e.layout.present.nodes)},INSERT_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Te(t.id,n),"Node should exist after insert."),Me(n[t.id]),console.assert(n[t.id].position===t.position,"Node position should be consistent after insert."),Re(n)},REORDER_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Te(t.id,n),"Node no longer exists after reorder."),Me(n[t.id]);var r=n[t.id];console.assert(t.position===r.position,"Node position should match action.position")},REPARENT_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Te(t.id,n),"Node should not exist after reparent"),Me(n[t.id]),console.assert(t.parent===n[t.id].parent,"Node should have correct parent after reparent")},DELETE_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(!Te(t.id,n),"Node should not exist after delete"),Re(n)},COPY_MODULE:function(e,t){var n=e.layout.present.nodes,r=Te(t.id,n);console.assert(r,"Node no longer exists after duplicate."),r&&Me(n[t.id])},DELETE_COLUMN:function(e){var t=e.layout.present.nodes;Re(t)},REPARENT_COLUMN:function(){console.warn("REPARENT_COLUMN needs a test.")},RESET_COLUMN_WIDTHS:function(e,t){var n=e.layout.present.nodes;t.groupIds.map((function(e){var t=je(n,e),r=100/t.length,o=t.every((function(e){return e.settings.size===r.toPrecision(5)}));console.assert(o,"Column sizes should match after reset")}))}};const Jt=Xt;var Kt=Ee({state:{layout:{present:{nodes:{},globalSettings:FLBuilderConfig.global}}},reducers:o,effects:l,actions:i,tests:Jt}),en=Kt.store,tn=Kt.actions,nn=Kt.hooks,rn=function(){return en},on=function(){return en.getState()},ln=function(){return tn},an=function(){return nn},un=nn.useLayoutStore,cn=function(e){var t=on().layout.present.nodes;return e&&e in t?t[e]:t},sn=function(e,t){en.dispatch(rt(e,t))},dn=function(e){var t=on().layout.present.nodes;return Object.values(t).filter((function(t){return e===t.parent}))},fn=function(e){return"undefined"!==on().layout.present.nodes[e]};en.dispatch(kt());var pn=function(e){return{type:"SET_ACTIVE_NODE",id:e}},mn=function(e){return{type:"SET_FOCUS_NODE",id:e}},yn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_ACTIVE_NODE"===t.type?!!t.id&&t.id:e},vn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_FOCUS_NODE"===t.type?!!t.id&&t.id:e},hn="fl-builder/outlinepanel";E(hn,{actions:a,reducers:u,state:{activeNode:!1,focusNode:!1}});var gn=function(){return w(hn)},bn=function(){return S(hn)},En=function(){return S(hn).getState()},wn=function(){return O(hn)},Sn=function(){return _(hn)},On=function(e){var t=ln().deleteNode;if(e){var n=!0,r=cn(e);if(FLBuilder._needsDeleteConfirmation(r)){var o=function(e){var t=window.FLBuilderStrings,n=t.deleteRowMessage,r=t.deleteColumnGroupMessage,o=t.deleteColumnMessage,i=t.deleteModuleMessage;switch(e){case"row":return n;case"column-group":return r;case"column":return o;default:return i}}(r.type);n=confirm(o)}if(n){var i=FLBuilder._getJQueryElement(e);if(!i.length&&fn(e))t(e);else if("module"===r.type)FLBuilder._deleteModule(i);else if("column"===r.type){var l=FLBuilder._getColToDelete(i);FLBuilder._deleteCol(l)}else"column-group"===r.type?FLBuilder._deleteColGroup(i):"row"===r.type&&FLBuilder._deleteRow(i);FLBuilder._highlightEmptyCols(),FLBuilder._resizeLayout(),FLBuilder._removeAllOverlays()}}},_n=function(e){if(e){var t=cn(e);t&&void 0!==t.type&&("module"===t.type?FLBuilder._copyModule(e):"column"===t.type?FLBuilder._copyColumn(e):"row"===t.type&&FLBuilder._copyRow(e))}},Ln=function(e){var t=document.querySelector("".concat(FLBuilder._contentClass,' [data-node="').concat(e,'"]'));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},Cn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=ln(),i=o.reorderNode,l=o.moveNode,a=o.reorderColumn,u=o.moveColumn,c=cn(e),s=c.type,d=c.parent,f=c.position,p="column"===s;if(n===d||null===n){if(t===f)return;p?a(e,t):i(e,t)}else p?u(e,n,t,r):l(e,n,t)},Nn=function(e){var t=ln().displaySettings,n=X().hideCurrentPanel;t(e),window.parent.document.body.classList.contains("fl-builder-ui-is-pinned-right")&&n()},Tn=function(){var e=FLBuilderConfig.postId;return document.querySelector(".fl-builder-content-".concat(e))},jn=function(e){var t=Tn();return t?t.querySelector('[data-node="'.concat(e,'"]')):null},Pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=jn(e),o=null,i=null,l=!1,a=!1,u=r.parentElement.closest("[data-node]");if(null===n&&(i=o=r.parentElement),0===n&&(i=o=Tn()),n&&(i=(o=jn(n)).querySelector(".fl-node-content"),l=o.classList.contains("fl-col-group"),a=o.classList.contains("fl-module"),l&&(i=o),a)){var c=o.querySelector(":scope > [data-children-wrapper]");c?i=c:o.querySelector(":scope > .fl-node-content")||(i=o)}r!==i.children[t]&&(r.remove(),t>i.children.length-1?i.appendChild(r):i.insertBefore(r,i.children[t]),r.dataset.parent=o.dataset.node,l&&n&&(FLBuilder._resetColumnWidths(o),FLBuilder._resetColumnWidths(u))),FLBuilder._highlightEmptyCols()};function kn(e){return kn="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},kn(e)}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){Dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fn=function(){var e=X();return An(An(An(An({},{registerPanel:e.registerPanel,displayPanel:e.displayPanel,togglePanel:e.togglePanel}),s),d),f)},Mn=function(){return window.FLBuilderConfig},Rn=function(){return window.FLBuilderStrings},Bn=Fn(),In=Bn.registerPanel,Hn=Bn.displayPanel,Un=Bn.togglePanel,Gn=n(6942),zn=n.n(Gn),Wn={},Yn=(0,m.createContext)(Wn),Zn=function(){return(0,m.useContext)(Yn)};const Vn=FL.vendors.BBFluid;var qn=["onClick","label","isEnabled"];function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(null,arguments)}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xn(e,t):void 0}}(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 Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Jn=function(e){var t=e.x,n=e.y,r=e.items,o=void 0===r?{}:r,i=e.clear,l=void 0===i?function(){}:i,a=window.parent.innerWidth-190,u=window.parent.innerHeight-100,c=0,s={};return Object.entries(o).map((function(e){var t=$n(e,2),n=t[0],r=t[1];!1!==r.isEnabled&&(s[n]=r,c+=30)})),y().createElement("div",{className:"fl-builder-context-menu",style:{top:n>u?n-c:n,left:t<a?t:a,width:180}},y().createElement("ul",null,Object.keys(s).map((function(e){var t=o[e],n=t.onClick,r=t.label,i=(t.isEnabled,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,qn));return y().createElement("li",{key:e},y().createElement(Vn.Button,Qn({onClick:function(e){n(e),l(),e.stopPropagation()},size:"sm"},i),r))}))))};function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kn.apply(null,arguments)}function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tr(e,t):void 0}}(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 tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nr=function(e){var t=e.children,n=er((0,m.useState)(!1),2),r=n[0],o=n[1],i=function(){return o(!1)},l={setContextMenu:o,clearContextMenu:i,showContextMenu:!1!==r,contextMenu:r};return y().createElement(Yn.Provider,{value:l},y().createElement(rr,null),t,!1!==r&&y().createElement(Jn,Kn({},r,{clear:i})))},rr=function(){var e=Zn().clearContextMenu,t=function(t){window.parent.document.querySelector(".fl-builder-context-menu")&&!t.target.closest(".fl-builder-context-menu")&&(e(),t.stopPropagation())},n=function(){window.parent.document.querySelector(".fl-builder-context-menu")&&e()};return(0,m.useEffect)((function(){return window.parent.addEventListener("click",t,{capture:!0}),window.parent.addEventListener("scroll",n,{capture:!0}),function(){window.parent.removeEventListener("click",t,{capture:!0}),window.parent.removeEventListener("scroll",n,{capture:!0})}}),[]),null};function or(e){return or="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},or(e)}function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ur(r.key),r)}}function ar(e,t,n){return t&&lr(e.prototype,t),n&&lr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ur(e){var t=function(e,t){if("object"!=or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==or(t)?t:t+""}function cr(e,t,n){return t=dr(t),function(e,t){if(t&&("object"==or(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)}(e,sr()?Reflect.construct(t,n||[],dr(e).constructor):t.apply(e,n))}function sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sr=function(){return!!e})()}function dr(e){return dr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dr(e)}function fr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pr(e,t)}function pr(e,t){return pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pr(e,t)}var mr=function(e){return y().createElement("div",{dangerouslySetInnerHTML:{__html:e}})},yr=FLBuilderConfig.lite,vr=function(e){var t,n={__html:e.children},r=new Date(e.date).toDateString();if("string"==typeof e.url&&""!==e.url){var o=yr?e.url+"?utm_medium=bb-lite&utm_source=builder-ui&utm_campaign=notification-center":e.url+"?utm_medium=bb-pro&utm_source=builder-ui&utm_campaign=notification-center";t=y().createElement("a",{className:"fl-builder-ui-post",href:o,target:"_blank",rel:"noopener noreferrer"},y().createElement("div",{className:"fl-builder-ui-post-date"},r),y().createElement("div",{className:"fl-builder-ui-post-title"},e.title),y().createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:n}))}else t=y().createElement("span",{className:"fl-builder-ui-post"},y().createElement("div",{className:"fl-builder-ui-post-date"},r),y().createElement("div",{className:"fl-builder-ui-post-title"},e.title),y().createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:n}));return t},hr=function(e){function t(){return ir(this,t),cr(this,t,arguments)}return fr(t,e),ar(t,[{key:"getPosts",value:function(e){var t,n,r=FLBuilderStrings.notifications;return 0<e.length?(n=e.map((function(e){return y().createElement(vr,{key:e.id,title:mr(e.title.rendered),date:e.date,url:e.meta._fl_notification[0]},e.content.rendered)})),t=y().createElement(y().Fragment,null,n)):t=y().createElement("div",{className:"fl-panel-no-message",style:{padding:"20px"}},r.none),t}},{key:"componentDidMount",value:function(){FLBuilder._initScrollbars()}},{key:"componentDidUpdate",value:function(){FLBuilder._initScrollbars()}},{key:"render",value:function(){var e=this.getPosts(this.props.posts),t=FLBuilderStrings.notifications;return y().createElement("div",{className:"fl-notifications-panel"},y().createElement("div",{className:"fl-panel-title"},y().createElement("button",{class:"back-menu"},"←"),y().createElement("div",{style:{padding:"10px"}},mr(t.title))),y().createElement("div",{className:"fl-nanoscroller",ref:this.setupScroller},y().createElement("div",{className:"fl-nanoscroller-content"},e)))}}])}(m.Component),gr=function(e){function t(e){var n;ir(this,t),n=cr(this,t,[e]);var r={},o=FLBuilderConfig.notifications.data;try{r=JSON.parse(o)}catch(e){r={}}return n.state={shouldShowNotifications:!1,posts:r.length>0?r.slice(0,5):[]},FLBuilder.addHook("toggleNotifications",n.onToggleNotifications.bind(n)),n}return fr(t,e),ar(t,[{key:"onToggleNotifications",value:function(){var e=X().hideCurrentPanel;this.setState({shouldShowNotifications:!this.state.shouldShowNotifications}),e(),!0===this.state.shouldShowNotifications&&FLBuilder.triggerHook("notificationsLoaded")}},{key:"render",value:function(){var e=this.state,t=e.shouldShowNotifications,n=e.posts;return t&&y().createElement(hr,{posts:n})}}])}(m.Component),br=n(2838),Er=n.n(br);function wr(e){return wr="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},wr(e)}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Or(r.key),r)}}function Or(e){var t=function(e,t){if("object"!=wr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wr(t)?t:t+""}function _r(e,t,n){return t=Cr(t),function(e,t){if(t&&("object"==wr(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)}(e,Lr()?Reflect.construct(t,n||[],Cr(e).constructor):t.apply(e,n))}function Lr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lr=function(){return!!e})()}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}function Nr(e,t){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nr(e,t)}var Tr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=(n=_r(this,t,[e])).props.postId;return n.layoutClass=".fl-builder-content-".concat(r||FLBuilderConfig.postId),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nr(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.setupHooks=this.setupHooks.bind(this),this.hooked=!1,jQuery(document).on("tinymce-editor-init",this.setupHooks),this.setupHooks()}},{key:"setupHooks",value:function(){if(!("ontouchstart"in document)&&window.tinymce&&!this.hooked&&FLBuilderConfig.inlineEnabled){var e=this.initEditables.bind(this),t=this.refreshEditables.bind(this),n=this.destroyAllEditables.bind(this),r=this.destroyLoadingEditables.bind(this);FLBuilder&&(FLBuilder.addHook("settingsConfigLoaded",e),FLBuilder.addHook("restartEditingSession",e),FLBuilder.addHook("endEditingSession",n),FLBuilder.addHook("didStartNodeLoading",r),FLBuilder.addHook("didRenderLayoutComplete",t),FLBuilder.addHook("didDeleteRow",t),FLBuilder.addHook("didDeleteColumn",t),FLBuilder.addHook("didDeleteModule",t)),this.initEditables(),this.hooked=!0}}},{key:"initEditables",value:function(){var e=this,t=FLBuilderSettingsConfig.editables,n=jQuery(this.layoutClass);if(n.length)for(var r in t){var o='.fl-module[data-type="'.concat(r,'"]:not(.fl-editable):not(.fl-node-global)');n.find(o).each((function(t,n){var r=(n=jQuery(n)).data("node");1<jQuery('[data-node="'.concat(r,'"]')).length||(n.addClass("fl-editable"),n.on("click.fl-inline-editing-init",(function(t){return e.initEditable(t,n)})))}))}}},{key:"initEditable",value:function(e,t){var n=this,r=FLBuilder.preview;r&&t.parents(".fl-node-".concat(r.nodeId)).length&&r._settingsHaveChanged()||(this.setupEditable(t,(function(){n.onModuleOverlayClick(e)})),t.off("click.fl-inline-editing-init"))}},{key:"setupEditable",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=e.data("node"),o=FLBuilderSettingsConfig.nodes[r];if(void 0===o)return!1;var i=e.data("type"),l=FLBuilderSettingsConfig.editables[i],a=".fl-node-".concat(r),u="fl-inline-editor-".concat(r),c=jQuery('<div id="'.concat(u,'" class="fl-inline-editor"></div>')),s=e.find(".fl-block-overlay"),d=jQuery(".fl-builder-settings[data-node=".concat(r,"]")),f=o.connections;e.append(c),e.on("click",this.onModuleOverlayClick.bind(this)),e.on("mouseleave",this.onModuleMouseleave.bind(this));var p=function(){var e=l[m],r=FLBuilderPreview.getFormattedSelector(a,e.selector),o=d.find("#fl-field-".concat(m," .fl-field-connection-value")),i=jQuery(r).eq(0),p=i.html();if(!i.length)return 0;if(o.length&&""!==o.val())return 0;if(!o.length&&f&&f[m])return 0;if(i.hasClass("fl-module")){var y=i.clone(),v="editor"===e.field.type?"div":"span";y.find(".fl-block-overlay, .fl-inline-editor").remove(),p=y.html(),i.html(""),i.append(s),i.append(c),i.append("<".concat(v,' class="fl-inline-editor-content">').concat(p,"</").concat(v,">")),i=i.find(".fl-inline-editor-content")}i.hasClass("mce-content-body")?tinymce.execCommand("mceRemoveEditor",!0,i.attr("id")):(i.data("field",e.field),i.on("drop",t.onEditorDrop.bind(t))),tinymce.init({target:i[0],inline:!0,menubar:!1,paste_as_text:!0,relative_urls:!1,convert_urls:!1,skin:!FLBuilder&&"lightgray",skin_url:!FLBuilder&&"".concat(tinyMCEPreInit.baseURL,"/skins/lightgray/"),theme:"modern",theme_url:"".concat(tinyMCEPreInit.baseURL,"/themes/modern/"),fixed_toolbar_container:"#".concat(u),plugins:t.getEditorPluginConfig(e.field.type),toolbar:"string"==typeof e.field.toolbar?e.field.toolbar:t.getEditorToolbarConfig(e.field.type),init_instance_callback:function(e){t.onEditorInit(e),i.find(".fl-builder-shortcode-mask-wrap").length||i.html(p),n()}})};for(var m in l)p()}},{key:"getEditorPluginConfig",value:function(e){return"editor"===e?"wordpress, wplink, lists, paste":"paste"}},{key:"getEditorToolbarConfig",value:function(e){switch(e){case"editor":return"bold italic strikethrough link underline | alignleft aligncenter alignright";case"unit":return!1;default:return"bold italic strikethrough underline"}}},{key:"destroyEditables",value:function(e){var t=e.find(".mce-content-body"),n=e.find(".fl-inline-editor"),r=jQuery(".wplink-autocomplete, .ui-helper-hidden-accessible");t.removeAttr("contenteditable"),e.off("click"),e.off("mouseleave"),e.removeClass("fl-editable"),n.remove(),r.remove()}},{key:"destroyAllEditables",value:function(){var e=jQuery(this.layoutClass).find(".fl-editable");this.destroyEditables(e)}},{key:"destroyLoadingEditables",value:function(e,t){var n=jQuery(t);n.hasClass("fl-module")||(n=n.find(".fl-module")),this.destroyEditables(n)}},{key:"refreshEditables",value:function(){this.initEditables(),tinymce.editors.map((function(e){e.inline&&!jQuery("#".concat(e.id)).length&&setTimeout((function(){return tinymce.execCommand("mceRemoveEditor",!0,e.id)}),1)}))}},{key:"getEditorEventVars",value:function(e){var t=jQuery(e).closest(".mce-content-body"),n=tinymce.get(t.attr("id")),r=t.data("field"),o=t.closest(".fl-module"),i=o.data("node");return{editable:t,module:o,editor:n,field:r,nodeId:i}}},{key:"onEditorInit",value:function(e){e.on("change",this.onEditorChange.bind(this)),e.on("keyup",this.onEditorChange.bind(this)),e.on("undo",this.onEditorChange.bind(this)),e.on("redo",this.onEditorChange.bind(this)),e.on("focus",this.onEditorFocus.bind(this)),e.on("blur",this.onEditorBlur.bind(this)),e.on("mousedown",this.onEditorMousedown.bind(this))}},{key:"onEditorChange",value:function(e){var t=e.target.bodyElement?e.target.bodyElement:e.target,n=this.getEditorEventVars(t),r=n.editor,o=n.field,i=n.nodeId,l=jQuery('.fl-builder-settings[data-node="'.concat(i,'"]')),a=r.getContent();if(l.length&&o)if("editor"===o.type){var u=l.find("#fl-field-".concat(o.name," textarea.wp-editor-area")),c=u.attr("id");u.closest(".tmce-active").length?window.parent.tinymce.get(c).setContent(a):u.val(a)}else{var s=document.createElement("textarea");s.innerHTML=a;var d=Er().sanitize(s.value);l.find('[name="'.concat(o.name,'"]')).val(d)}}},{key:"onEditorFocus",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=t.field,l=t.nodeId,a=o.find(".fl-inline-editor"),u=this.getSettingHTML(l,i);this.matchHTML(r.getContent(),u)||(n.data("original",{settingHTML:u,editableHTML:n.html()}),n.css("min-height",n.height()),r.setContent(u),r.selection.select(r.getBody(),!0),r.selection.collapse(!1)),r.settings.toolbar?a.removeClass("fl-inline-editor-no-toolbar"):a.addClass("fl-inline-editor-no-toolbar"),o.addClass("fl-editable-focused"),this.showEditorOverlay(o),this.showModuleSettings(o)}},{key:"onEditorBlur",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=o.find(".fl-inline-editor"),l=n.data("original");i.removeClass("fl-inline-editor-no-toolbar"),o.removeClass("fl-editable-focused"),l&&this.matchHTML(r.getContent(),l.settingHTML)&&(n.html(l.editableHTML),n.css("min-height",""))}},{key:"onEditorMousedown",value:function(e){var t=this.getEditorEventVars(e.target).module;this.showEditorOverlay(t)}},{key:"onEditorDrop",value:function(e){return e.preventDefault(),!1}},{key:"onModuleOverlayClick",value:function(e){var t=this,n=jQuery(e.target).closest(".fl-block-overlay-actions"),r=jQuery(e.currentTarget).closest(".fl-module"),o=r.find(".mce-content-body").first().attr("id");n.length||FLBuilder._colResizing||(o?(tinymce.get(o).focus(),r.addClass("fl-editable-focused")):this.setupEditable(r,(function(){t.onModuleOverlayClick(e)})))}},{key:"onModuleMouseleave",value:function(){jQuery(".mce-inline-toolbar-grp:visible, .mce-floatpanel:visible").length||(this.hideEditorOverlays(),this.showNodeOverlays())}},{key:"showEditorOverlay",value:function(e){var t=e.find(".fl-inline-editor");this.hideNodeOverlays(),this.hideEditorOverlays(),t.show(),jQuery(".fl-inline-editor-active-toolbar").removeClass("fl-inline-editor-active-toolbar"),t.find("> .mce-panel:visible").addClass("fl-inline-editor-active-toolbar")}},{key:"hideEditorOverlays",value:function(){jQuery(".fl-inline-editor, .mce-floatpanel").hide()}},{key:"showNodeOverlays",value:function(){jQuery(".fl-block-overlay").show()}},{key:"hideNodeOverlays",value:function(){jQuery(".fl-block-overlay").hide()}},{key:"showModuleSettings",value:function(e){var t=e.data("type"),n=e.data("node"),r=e.parents(".fl-module, .fl-col").data("node"),o=e.hasClass("fl-node-global");jQuery('.fl-builder-settings[data-node="'.concat(n,'"]')).length||FLBuilder._showModuleSettings({type:t,nodeId:n,parentId:r,global:o})}},{key:"getSettingValue",value:function(e,t){var n=jQuery('.fl-builder-settings[data-node="'.concat(e,'"]'));return(n.length?FLBuilder._getSettings(n):FLBuilderSettingsConfig.nodes[e])[t]}},{key:"getSettingHTML",value:function(e,t){var n=this.getSettingValue(e,t.name);return"editor"===t.type&&""!==n?wp.editor.autop(n):n}},{key:"matchHTML",value:function(e,t){return this.cleanHTML(e)===this.cleanHTML(t)}},{key:"cleanHTML",value:function(e){return jQuery("<div>".concat(e,"</div>")).html().trim().replace(/(\r\n|\n|\r)/gm,"")}},{key:"render",value:function(){return null}}],r&&Sr(n.prototype,r),o&&Sr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(m.Component);const jr=Tr;var Pr=function(){return y().createElement("svg",{id:"fl-symbol-container"},y().createElement("symbol",{id:"fl-down-caret",viewBox:"0 0 11 6"},y().createElement("polygon",{points:"0 0 2.05697559 0 5.49235478 3.74058411 8.93443824 0 11 0 5.5 6"})),y().createElement("symbol",{id:"fl-v-stack-icon",fill:"currentColor",width:"23",height:"10",viewBox:"0 0 23 10"},y().createElement("rect",{width:"23",height:"2"}),y().createElement("rect",{y:"4",width:"23",height:"2"}),y().createElement("rect",{y:"8",width:"23",height:"2"})),y().createElement("symbol",{id:"fl-h-stack-icon",width:"24",height:"10",viewBox:"0 0 24 10",fill:"currentColor",stroke:"none"},y().createElement("rect",{width:"2",height:"10"}),y().createElement("rect",{x:"5.5",width:"2",height:"10"}),y().createElement("rect",{x:"11",width:"2",height:"10"}),y().createElement("rect",{x:"16.5",width:"2",height:"10"}),y().createElement("rect",{x:"22",width:"2",height:"10"})),y().createElement("symbol",{id:"fl-z-stack-icon",width:"24",height:"10",viewBox:"0 0 24 10",fill:"none"},y().createElement("rect",{x:"1",y:"1",width:"22",height:"8",stroke:"currentColor",strokeWidth:"2"}),y().createElement("rect",{x:"4",y:"4",width:"16",height:"2",fill:"currentColor"})),y().createElement("symbol",{id:"fl-grid-display-icon",width:"26",height:"10",viewBox:"0 0 26 10"},y().createElement("rect",{x:"12",width:"6",height:"4",fill:"currentColor"}),y().createElement("rect",{x:"12",y:"6",width:"6",height:"4",fill:"currentColor"}),y().createElement("rect",{width:"10",height:"10",fill:"currentColor"}),y().createElement("rect",{x:"20",width:"6",height:"4",fill:"currentColor"}),y().createElement("rect",{x:"20",y:"6",width:"6",height:"4",fill:"currentColor"})),y().createElement("symbol",{id:"fl-swiper-display-icon",width:"23",height:"10",viewBox:"0 0 23 10"},y().createElement("rect",{x:"6.75",y:"0.75",width:"9.5",height:"8.5",rx:"1.25",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),y().createElement("path",{d:"M20 3L22 5L20 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),y().createElement("path",{d:"M3 3L1 5L3 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),y().createElement("symbol",{id:"fl-v-panel-drag-handle",width:"4",height:"20",viewBox:"0 0 4 20",fill:"none"},y().createElement("rect",{width:"4",height:"20",rx:"2",fill:"currentColor"})),y().createElement("symbol",{id:"fl-question-mark",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},y().createElement("path",{d:"M6 12C9.28235 12 12 9.27647 12 6C12 2.71765 9.27647 0 5.99412 0C2.71765 0 0 2.71765 0 6C0 9.27647 2.72353 12 6 12ZM6 11C3.22353 11 1.00588 8.77647 1.00588 6C1.00588 3.22353 3.21765 1 5.99412 1C8.77059 1 11 3.22353 11 6C11 8.77647 8.77647 11 6 11ZM5.87647 7.21765C6.17059 7.21765 6.35294 7.02941 6.35294 6.8V6.72941C6.35294 6.4 6.54118 6.18824 6.95294 5.91765C7.52353 5.54118 7.92941 5.2 7.92941 4.49412C7.92941 3.51765 7.05882 2.98824 6.05882 2.98824C5.04706 2.98824 4.38235 3.47059 4.22353 4.01176C4.19412 4.10588 4.17647 4.2 4.17647 4.3C4.17647 4.56471 4.38235 4.70588 4.57647 4.70588C4.77647 4.70588 4.90588 4.61176 5.01177 4.47059L5.11765 4.32941C5.32353 3.98824 5.62941 3.78824 6.02353 3.78824C6.55882 3.78824 6.90588 4.09412 6.90588 4.54118C6.90588 4.94118 6.65882 5.13529 6.14706 5.49412C5.72353 5.78824 5.40588 6.1 5.40588 6.67647V6.75294C5.40588 7.05882 5.57647 7.21765 5.87647 7.21765ZM5.86471 8.97059C6.20588 8.97059 6.5 8.7 6.5 8.35882C6.5 8.01765 6.21177 7.74706 5.86471 7.74706C5.51765 7.74706 5.22941 8.02353 5.22941 8.35882C5.22941 8.69412 5.52353 8.97059 5.86471 8.97059Z",fill:"currentColor"})),y().createElement("symbol",{id:"fl-outline-list-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},y().createElement("path",{d:"M1.38672 5.33984C2.1582 5.33984 2.77344 4.72461 2.77344 3.95312C2.77344 3.19141 2.1582 2.56641 1.38672 2.56641C0.625 2.56641 0 3.19141 0 3.95312C0 4.72461 0.625 5.33984 1.38672 5.33984ZM5.97656 4.89062H14.0565C14.5838 4.89062 15.0038 4.48047 15.0038 3.95312C15.0038 3.42578 14.5936 3.01562 14.0565 3.01562H5.97656C5.45898 3.01562 5.03906 3.42578 5.03906 3.95312C5.03906 4.48047 5.44922 4.89062 5.97656 4.89062ZM3.88672 11.3457C4.64844 11.3457 5.27344 10.7305 5.27344 9.95898C5.27344 9.19727 4.64844 8.57227 3.88672 8.57227C3.11523 8.57227 2.49023 9.19727 2.49023 9.95898C2.49023 10.7305 3.11523 11.3457 3.88672 11.3457ZM8.47656 10.8965H16.5794C17.1068 10.8965 17.5169 10.4863 17.5169 9.95898C17.5169 9.43164 17.1068 9.02148 16.5794 9.02148H8.47656C7.94922 9.02148 7.53906 9.43164 7.53906 9.95898C7.53906 10.4863 7.94922 10.8965 8.47656 10.8965ZM6.37695 17.3516C7.14844 17.3516 7.76367 16.7363 7.76367 15.9648C7.76367 15.2031 7.14844 14.5781 6.37695 14.5781C5.61523 14.5781 4.99023 15.2031 4.99023 15.9648C4.99023 16.7363 5.61523 17.3516 6.37695 17.3516ZM10.9668 16.9023H19.0251C19.5524 16.9023 19.9626 16.4922 19.9626 15.9648C19.9626 15.4375 19.5524 15.0273 19.0251 15.0273H10.9668C10.4395 15.0273 10.0293 15.4375 10.0293 15.9648C10.0293 16.4922 10.4395 16.9023 10.9668 16.9023Z",fill:"currentColor"})))},kr=function(){};kr.Close=function(){return y().createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y().createElement("g",{stroke:"currentColor",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round"},y().createElement("path",{d:"M13,1 L1,13"}),y().createElement("path",{d:"M1,1 L13,13"})))};var xr=["className","children","title","actions","showCloseButton","onClose"];function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(null,arguments)}var Dr=function(e){var t=e.className,n=e.children,r=e.title,o=e.actions,i=e.showCloseButton,l=void 0===i||i,a=e.onClose,u=void 0===a?function(){}:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xr),s=zn()({"fl-ui-panel-area":!0},t),d=function(){return o||l?y().createElement("div",{className:"fl-ui-panel-trailing-actions"},o,y().createElement("button",{onClick:u,className:"fl-ui-button"},y().createElement(kr.Close,null))):null};return y().createElement("div",{className:s,onClick:u},y().createElement("div",Ar({className:"fl-ui-panel"},c,{onClick:function(e){return e.stopPropagation()}}),y().createElement("div",{className:"fl-ui-panel-topbar"},r&&y().createElement("div",{className:"fl-ui-panel-title"},r),y().createElement(d,null)),y().createElement("div",{className:"fl-ui-panel-content"},n)))},Fr=function(e){var t=e.shortcuts;return 0===Object.keys(t).length?null:y().createElement("ul",{className:"fl-ui-shortcut-list"},Object.values(t).map((function(e,t){var n=e.label,r={__html:e.keyLabel};return y().createElement("li",{key:t},y().createElement("span",null,n),y().createElement("span",{className:"fl-ui-shortcut-item-keycode",dangerouslySetInnerHTML:r}))})))};const Mr=function(){var e=X().setShouldShowShortcuts;return y().createElement(Dr,{title:"Keyboard Shortcuts",onClose:function(){return e(!1)},className:"fl-ui-help",style:{width:360,maxWidth:"95vw"}},y().createElement(Fr,{shortcuts:FLBuilderConfig.keyboardShortcuts}))};function Rr(e){if(void 0===window.parent.FLBuilderStrings)return e;var t=window.parent.FLBuilderStrings.i18n;return void 0!==t[e]?t[e]:(console.warn('No translation found for "'+e+'" Please add string to FLBuilderStrings.i18n object in includes/ui-js-config.php'),e)}var Br=(0,m.createContext)({});Br.use=function(){return(0,m.useContext)(Br)};const Ir=Br;function Hr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ur(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ur(e,t):void 0}}(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 Ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Gr=function(){};const zr=function(e){var t,n,r=e.onClick,o=e.onDoubleClick,i=e.delay,l=void 0===i?300:i,a=Hr((t=(0,m.useRef)(Gr),n=function(){return t.current()},(0,m.useEffect)((function(){return n}),[]),[function(e){return t.current=e},n]),2),u=a[0],c=a[1];return[function(){c(),function(e,t,n){var r=(new Date).getTime(),o=function(){if((new Date).getTime()-r>=t)return e(),void n(Gr);var i=requestAnimationFrame(o);n((function(){return cancelAnimationFrame(i)}))},i=requestAnimationFrame(o);n((function(){return cancelAnimationFrame(i)}))}(r,l,u)},function(){c(),o()}]};function Wr(e){return Wr="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},Wr(e)}var Yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,br.sanitize)(e,{ALLOWED_TAGS:[]}).substring(0,48)},Zr=function(e){var t=function(e){var t=Mn().contentItems.module.find((function(t){return t.slug===e&&!t.isAlias}));return"object"===Wr(t)&&t}(e);return t?t.name:e},Vr=function(e,t){var n=dn(e);if(e===t)return!0;for(var r in n){if(n[r].node===t)return!0;if(Vr(n[r].node,t))return!0}return!1},qr=function(e,t,n){return e<=t+n/2},Qr=function(e,t,n,r){if(!{layout:["row","column-group","column","module"],row:["column-group","column","module"],"column-group":["column","module"],column:["module"],module:["module"]}[e].includes(n))return!1;if("module"===e){var o=cn(r),i=no(t).accepts;if(Vr(r,t))return!1;if("object"===Wr(i)&&i.length&&!i.includes(o.settings.type))return!1}return!0},$r=[],Xr=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0>=$r.length){var t=Mn().contentItems;$r=t.module.filter((function(e){return!e.isAlias&&void 0!==e.slug}))}return e?$r.map((function(e){return e.slug})):$r},Jr=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Mn().contentItems.module.filter((function(e){return e.isWidget&&void 0!==e.name}));return e?t.map((function(e){return e.name})):t},Kr=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Mn().contentItems.module.filter((function(e){return e.isAlias&&void 0!==e.settings.acf_block_type}));return e?t.map((function(e){return e.settings.acf_block_type})):t},eo=function(e){return"widget"===e.type?Jr().find((function(t){return e.widget_title===t.name})):"acf-block"===e.type?Kr().find((function(t){return e.acf_block_type===t.settings.acf_block_type})):Xr().find((function(t){return e.type===t.slug}))},to=function(e,t){return"widget"===t.type?Jr(!0).includes(t.widget_title):"acf-block"===t.type?Kr(!0).includes(t.acf_block_type):"module"!==e||Xr(!0).includes(t.type)},no=function(e){var t=cn(e);return"module"!==t.type||"column-group"===t.type?{accepts:[]}:to(t.type,t.settings)?eo(t.settings):{accepts:[]}},ro=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"1.5",stroke:"currentColor"}))},oo=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("rect",{x:"9.5",y:"13.5",width:"11",height:"4",rx:"0.5",transform:"rotate(-90 9.5 13.5)",stroke:"currentColor"}),y().createElement("rect",{x:"2.5",y:"13.5",width:"11",height:"4",rx:"0.5",transform:"rotate(-90 2.5 13.5)",stroke:"currentColor"}))},io=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("rect",{x:"2.5",y:"9.5",width:"11",height:"4",rx:"0.5",stroke:"currentColor"}),y().createElement("rect",{x:"2.5",y:"2.5",width:"11",height:"4",rx:"0.5",stroke:"currentColor"}))},lo=function(){return y().createElement("svg",{className:"svg",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M12 6c0 1.105-.895 2-2 2-1.105 0-2-.895-2-2 0-1.105.895-2 2-2 1.105 0 2 .895 2 2zm-1 0c0 .552-.448 1-1 1-.552 0-1-.448-1-1 0-.552.448-1 1-1 .552 0 1 .448 1 1zM3 2c-.552 0-1 .448-1 1v10c0 .552.448 1 1 1h10c.552 0 1-.448 1-1V3c0-.552-.448-1-1-1H3zm10 1H3v6.293l2.5-2.5L11.707 13H13V3zM3 13v-2.293l2.5-2.5L10.293 13H3z",fillRule:"evenodd",fillOpacity:"1",fill:"currentCOlor",stroke:"none"}))},ao=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M3.48254 7.83023L3.05006 9.22531H5.78441L5.35194 7.83023C5.19383 7.31871 5.03572 6.81183 4.87761 6.3096C4.72881 5.79807 4.58465 5.27724 4.44514 4.74711H4.38934C4.24053 5.27724 4.09172 5.79807 3.94291 6.3096C3.7941 6.81183 3.64065 7.31871 3.48254 7.83023ZM0.692383 12.9502L3.7755 3.79846H5.08688L8.17 12.9502H6.94233L6.07738 10.16H2.7571L1.8782 12.9502H0.692383Z",fill:"currentColor"}),y().createElement("path",{d:"M11.5546 13.1176C11.2384 13.1176 10.9407 13.0711 10.6617 12.9781C10.3827 12.8944 10.1363 12.7735 9.92234 12.6153C9.71773 12.4479 9.55497 12.248 9.43407 12.0155C9.31316 11.7737 9.25271 11.4993 9.25271 11.1924C9.25271 10.811 9.34106 10.4809 9.51777 10.2019C9.70378 9.91355 9.9921 9.66709 10.3827 9.46247C10.7826 9.25786 11.2942 9.09045 11.9173 8.96025C12.5404 8.83004 13.2891 8.72773 14.1634 8.65333C14.1541 8.42082 14.1169 8.20225 14.0518 7.99764C13.9867 7.79303 13.8844 7.61632 13.7449 7.46751C13.6053 7.30941 13.4193 7.18385 13.1868 7.09084C12.9636 6.99784 12.6892 6.95134 12.3637 6.95134C11.9173 6.95134 11.4895 7.03969 11.0803 7.2164C10.671 7.38381 10.3083 7.56517 9.9921 7.76048L9.54567 6.97924C9.71308 6.86763 9.90839 6.75603 10.1316 6.64442C10.3641 6.52351 10.6059 6.41656 10.857 6.32355C11.1175 6.23055 11.3918 6.15614 11.6801 6.10034C11.9685 6.03523 12.2614 6.00268 12.559 6.00268C13.4891 6.00268 14.1773 6.25845 14.6238 6.76998C15.0795 7.2722 15.3073 7.94649 15.3073 8.79284V12.9502H14.3726L14.275 12.0294H14.2331C13.8518 12.327 13.4286 12.5828 12.9636 12.7967C12.5079 13.0106 12.0382 13.1176 11.5546 13.1176ZM11.8615 12.1968C12.2521 12.1968 12.6334 12.1131 13.0055 11.9457C13.3868 11.769 13.7728 11.5179 14.1634 11.1924V9.40667C13.4379 9.46248 12.8288 9.54153 12.3358 9.64383C11.8522 9.74614 11.4616 9.8717 11.164 10.0205C10.8756 10.16 10.671 10.3228 10.5501 10.5088C10.4292 10.6855 10.3688 10.8855 10.3688 11.1087C10.3688 11.304 10.4106 11.4714 10.4943 11.6109C10.578 11.7411 10.685 11.8527 10.8152 11.9457C10.9547 12.0294 11.1128 12.0945 11.2895 12.141C11.4755 12.1782 11.6662 12.1968 11.8615 12.1968Z",fill:"currentColor"}))},uo=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M2.375 15.0203H13.625C14.9067 15.0203 15.7271 14.0754 15.7271 12.9109C15.7271 12.5593 15.6392 12.2004 15.4487 11.8708L9.80908 2.04175C9.41357 1.33862 8.71045 0.979736 8 0.979736C7.28955 0.979736 6.5791 1.34595 6.18359 2.04175L0.543945 11.8782C0.353516 12.2078 0.265625 12.5593 0.265625 12.9109C0.265625 14.0754 1.09326 15.0203 2.375 15.0203ZM2.51416 13.614C2.06006 13.614 1.75977 13.2405 1.75977 12.8376C1.75977 12.7205 1.77441 12.574 1.84766 12.4421L7.34082 2.82544C7.4873 2.57642 7.74365 2.45923 8 2.45923C8.25635 2.45923 8.50537 2.57642 8.64453 2.82544L14.145 12.4568C14.2109 12.5813 14.2402 12.7205 14.2402 12.8376C14.2402 13.2405 13.9326 13.614 13.4785 13.614H2.51416ZM8 9.93726C8.40283 9.93726 8.63721 9.71021 8.64453 9.2854L8.75439 5.76245C8.76904 5.33032 8.44678 5.02271 7.99268 5.02271C7.53857 5.02271 7.22363 5.323 7.23828 5.75513L7.34082 9.29272C7.35547 9.71021 7.58984 9.93726 8 9.93726ZM8 12.3689C8.47607 12.3689 8.86426 12.0247 8.86426 11.5632C8.86426 11.0945 8.4834 10.7576 8 10.7576C7.52393 10.7576 7.13574 11.1018 7.13574 11.5632C7.13574 12.0247 7.53125 12.3689 8 12.3689Z",fill:"currentColor"}))},co=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M7.99634 15.5732C12.1492 15.5732 15.5769 12.1455 15.5769 8C15.5769 3.85449 12.1418 0.426758 7.98901 0.426758C3.84351 0.426758 0.423096 3.85449 0.423096 8C0.423096 12.1455 3.85083 15.5732 7.99634 15.5732ZM7.99634 14.0645C4.63452 14.0645 1.94653 11.3618 1.94653 8C1.94653 4.63818 4.63452 1.94287 7.98901 1.94287C11.3508 1.94287 14.0535 4.63818 14.0608 8C14.0681 11.3618 11.3582 14.0645 7.99634 14.0645ZM7.99634 11.1787C10.9919 11.1787 13.0281 8.76172 13.0281 8.00732C13.0281 7.26025 10.9919 4.83594 7.99634 4.83594C5.00806 4.83594 2.94995 7.26025 2.94995 8.00732C2.94995 8.76172 5.02271 11.1787 7.99634 11.1787ZM7.99634 10.0654C6.85376 10.0654 5.93091 9.12793 5.92358 8.00732C5.92358 6.86475 6.85376 5.94922 7.99634 5.94922C9.13159 5.94922 10.0544 6.86475 10.0544 8.00732C10.0544 9.12793 9.13159 10.0654 7.99634 10.0654ZM8.00366 8.9082C8.48706 8.9082 8.89722 8.49072 8.89722 8.00732C8.89722 7.52393 8.48706 7.10645 8.00366 7.10645C7.49829 7.10645 7.08813 7.52393 7.08813 8.00732C7.08813 8.49072 7.49829 8.9082 8.00366 8.9082Z",fill:"currentColor"}))},so=function(){return y().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M7.99634 15.5732C12.1492 15.5732 15.5769 12.1455 15.5769 8C15.5769 3.85449 12.1418 0.426758 7.98901 0.426758C3.84351 0.426758 0.423096 3.85449 0.423096 8C0.423096 12.1455 3.85083 15.5732 7.99634 15.5732ZM7.99634 14.0645C4.63452 14.0645 1.94653 11.3618 1.94653 8C1.94653 4.63818 4.63452 1.94287 7.98901 1.94287C11.3508 1.94287 14.0535 4.63818 14.0608 8C14.0681 11.3618 11.3582 14.0645 7.99634 14.0645ZM7.99634 11.1787C10.9919 11.1787 13.0281 8.76172 13.0281 8.00732C13.0281 7.26025 10.9919 4.83594 7.99634 4.83594C5.00806 4.83594 2.94995 7.26025 2.94995 8.00732C2.94995 8.76172 5.02271 11.1787 7.99634 11.1787ZM7.99634 10.0654C6.85376 10.0654 5.93091 9.12793 5.92358 8.00732C5.92358 6.86475 6.85376 5.94922 7.99634 5.94922C9.13159 5.94922 10.0544 6.86475 10.0544 8.00732C10.0544 9.12793 9.13159 10.0654 7.99634 10.0654ZM8.00366 8.9082C8.48706 8.9082 8.89722 8.49072 8.89722 8.00732C8.89722 7.52393 8.48706 7.10645 8.00366 7.10645C7.49829 7.10645 7.08813 7.52393 7.08813 8.00732C7.08813 8.49072 7.49829 8.9082 8.00366 8.9082Z",fill:"red"}))},fo=function(){return y().createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 12 11.25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("g",{stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},y().createElement("path",{d:"M6.523,2.729 C6.3261,2.6723 6.1212,2.7869 6.0644,2.9838 L4.582,8.1721 C4.5253,8.369 4.6399,8.574 4.8368,8.6307 C5.0337,8.6875 5.2387,8.5728 5.2954,8.376 L6.7778,3.1876 C6.8345,2.9908 6.7199,2.7858 6.523,2.729 Z M7.4565,4.1199 C7.3117,4.2647 7.3117,4.4998 7.4565,4.6445 L8.4906,5.6799 L7.4553,6.7152 C7.3105,6.86 7.3105,7.0951 7.4553,7.2399 C7.6001,7.3846 7.8352,7.3846 7.9799,7.2399 L9.277,5.9428 C9.4218,5.798 9.4218,5.5629 9.277,5.4182 L7.9799,4.1211 C7.8352,3.9763 7.6001,3.9763 7.4553,4.1211 L7.4565,4.1199 Z M3.9045,4.1199 C3.7598,3.9752 3.5247,3.9752 3.3799,4.1199 L2.0828,5.417 C1.9381,5.5618 1.9381,5.7969 2.0828,5.9416 L3.3799,7.2387 C3.5247,7.3835 3.7598,7.3835 3.9045,7.2387 C4.0493,7.0939 4.0493,6.8588 3.9045,6.7141 L2.8692,5.6799 L3.9045,4.6445 C4.0493,4.4998 4.0493,4.2647 3.9045,4.1199 Z",id:"Fill-1",fill:"currentColor"}),y().createElement("path",{d:"M5.6799,0 C8.8147,0 11.3598,2.5451 11.3598,5.6799 C11.3598,8.8147 8.8147,11.3598 5.6799,11.3598 C2.5451,11.3598 0,8.8147 0,5.6799 C0,2.5451 2.5451,0 5.6799,0 Z M5.6827,1.1799 C8.1663,1.1799 10.1827,3.1963 10.1827,5.6799 C10.1827,8.1635 8.1663,10.1799 5.6827,10.1799 C3.1991,10.1799 1.1827,8.1635 1.1827,5.6799 C1.1827,3.1963 3.1991,1.1799 5.6827,1.1799 Z",fill:"currentColor"})))};function po(e){return po="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},po(e)}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){vo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==po(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ho=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=window.location.pathname,i="".concat(o.replace(/^\/|\/$/g,"").toLowerCase(),":outline"),l=JSON.parse(window.localStorage.getItem(i))||{};if(!1===e){for(var a in l)"collapse"!==a&&(l[a]=yo(yo({},l[a]),{collapsed:!t}));r&&(l.collapse=!t)}else l[e]=yo(yo({},l[e]),{collapsed:!t});l.search="",window.localStorage.setItem(i,JSON.stringify(l)),n&&window.dispatchEvent(new Event("storage"))},go=function(e,t,n){var r=window.location.pathname,o="".concat(r.replace(/^\/|\/$/g,"").toLowerCase(),":outline"),i=JSON.parse(window.localStorage.getItem(o))||{};return e in i?!i[e].collapsed:("module"===t||"column-group"===t||n||ho(e,!0,!1),!0)},bo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=window.location.pathname,r="".concat(n.replace(/^\/|\/$/g,"").toLowerCase(),":outline"),o=JSON.parse(window.localStorage.getItem(r))||{};for(var i in o)"collapse"!==i&&(o[i]=yo(yo({},o[i]),{collapsed:!1}));o.search=e,window.localStorage.setItem(r,JSON.stringify(o)),t&&window.dispatchEvent(new Event("storage"))},Eo=function(e){var t=window.location.pathname,n="".concat(t.replace(/^\/|\/$/g,"").toLowerCase(),":outline"),r=JSON.parse(window.localStorage.getItem(n))||{};return void 0!==r[e]?r[e]:""},wo=function(){return React.createElement("svg",{viewBox:"0 0 665.8 1000",fill:"currentColor",height:"1em",width:"1em"},React.createElement("path",{d:"M248 850c-22.667 0-41.333-9.333-56-28L12 586C1.333 570-2.667 552.667 0 534s11.333-34 26-46 31.667-16.667 51-14c19.333 2.667 35 12 47 28l118 154 296-474c10.667-16 25-26 43-30s35.667-1.333 53 8c16 10.667 26 25 30 43s1.333 35.667-8 53L306 816c-13.333 21.333-32 32-56 32l-2 2"}))};const So="UJiyphAO9yad3+FMxkS6qw==",Oo="PIHVW8lwOfvyaDPZjd7Vww==",_o="HxKE10fCUJQb+uXcoL7iSg==",Lo="wFAKoVozPwksRzbWDfvipQ==",Co="_3LOrehvBjYbRYrC4yG8eSw==";function No(e){return No="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},No(e)}function To(){To=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,l=Object.create(i.prototype),a=new P(r||[]);return o(l,"_invoke",{value:C(e,n,a)}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",p="suspendedYield",m="executing",y="completed",v={};function h(){}function g(){}function b(){}var E={};c(E,l,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(k([])));S&&S!==n&&r.call(S,l)&&(E=S);var O=b.prototype=h.prototype=Object.create(E);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,l,a){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==No(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,l,a)}),(function(e){n("throw",e,l,a)})):t.resolve(s).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,a)}))}a(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var o=f;return function(i,l){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===i)throw l;return{value:e,done:!0}}for(r.method=i,r.arg=l;;){var a=r.delegate;if(a){var u=N(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?y:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function N(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var l=i.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function k(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(No(t)+" is not iterable")}return g.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},_(L.prototype),c(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var l=new L(s(e,n,r,o),i);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},_(O),c(O,u,"Generator"),c(O,l,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],a=l.completion;if("root"===l.tryLoc)return o("end");if(l.tryLoc<=this.prev){var u=r.call(l,"catchLoc"),c=r.call(l,"finallyLoc");if(u&&c){if(this.prev<l.catchLoc)return o(l.catchLoc,!0);if(this.prev<l.finallyLoc)return o(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return o(l.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return o(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function jo(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function Po(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ko(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ko(e,t):void 0}}(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 ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xo=function(e,t){return t&&""!==t&&""===e?t:e};const Ao=function(e){var t=e.parentStyle,n=e.isActive,r=e.toggleActivity,o=e.submitAction,i=e.labelValue,l=e.previewValue,a=Po((0,m.useState)(xo(i,l)),2),u=a[0],c=a[1],s=Po((0,m.useState)(!1),2),d=s[0],f=s[1],p=function(){var e,t=(e=To().mark((function e(t){return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),d||f(!0),e.next=4,o(u);case 4:if(!e.sent){e.next=7;break}f(!1),y(!0);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function l(e){jo(i,r,o,l,a,"next",e)}function a(e){jo(i,r,o,l,a,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}(),y=function(e){(e||n&&!d)&&(c(xo(i,l)),r())};return n||u===xo(i,l)||c(xo(i,l)),React.createElement("section",{id:So,className:t},React.createElement("form",{className:n?_o:Oo,onSubmit:p,onBlur:function(){return y(!1)}},React.createElement("input",{className:Lo,placeholder:"type a label",type:"text",value:u,draggable:n,autoFocus:n,readOnly:!n,disabled:d,onChange:function(e){return c(e.target.value)},onKeyUp:function(e){"Escape"===e.key&&y(!1)},onClick:function(){n||(r(),c(i))},onDragStart:function(e){e.preventDefault(),e.stopPropagation()}}),React.createElement("button",{className:Co,type:"submit",onMouseDown:function(){return f(!0)}},React.createElement(wo,null))))};function Do(e){return Do="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},Do(e)}var Fo=["id","type"],Mo=["type","settings","onSearch"],Ro=["children","style"];function Bo(){Bo=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,l=Object.create(i.prototype),a=new P(r||[]);return o(l,"_invoke",{value:C(e,n,a)}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",p="suspendedYield",m="executing",y="completed",v={};function h(){}function g(){}function b(){}var E={};c(E,l,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(k([])));S&&S!==n&&r.call(S,l)&&(E=S);var O=b.prototype=h.prototype=Object.create(E);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,l,a){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==Do(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,l,a)}),(function(e){n("throw",e,l,a)})):t.resolve(s).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,a)}))}a(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var o=f;return function(i,l){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===i)throw l;return{value:e,done:!0}}for(r.method=i,r.arg=l;;){var a=r.delegate;if(a){var u=N(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?y:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function N(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var l=i.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function k(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Do(t)+" is not iterable")}return g.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},_(L.prototype),c(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var l=new L(s(e,n,r,o),i);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},_(O),c(O,u,"Generator"),c(O,l,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],a=l.completion;if("root"===l.tryLoc)return o("end");if(l.tryLoc<=this.prev){var u=r.call(l,"catchLoc"),c=r.call(l,"finallyLoc");if(u&&c){if(this.prev<l.catchLoc)return o(l.catchLoc,!0);if(this.prev<l.finallyLoc)return o(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return o(l.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return o(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach((function(t){Wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function Go(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zo.apply(null,arguments)}function Wo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Do(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Do(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Do(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zo(e,t):void 0}}(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 Zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Vo=function(e){var t=e.node,n=e.index,r=e.level,o=e.type,i=e.global,l=void 0!==i&&i,a=e.parent,u=Fn().moveNode,c=an().useNodesWithoutSettings,s=ln().removeNode,d=c(t),f=0<Object.keys(d).length,p=no(t).accepts,v=p&&!!p.length,h=cn(t).settings,g=cn(a),b=g.type?g.type:"layout",E=Ir.use(),w=E.draggingItem,S=E.setDraggingItem,O=E.clearDraggingItem,_=Yo((0,m.useState)(!1),2),L=_[0],C=_[1],N=Yo((0,m.useState)(go(t,o,l)),2),T=N[0],j=N[1],P=zn()("fl-builder-node-outline-item",Wo(Wo(Wo(Wo(Wo(Wo({},"fl-builder-node-type-".concat(o),o),"show-drop-before","before"===L),"show-drop-after","after"===L),"is-dragging-self",t===(null==w?void 0:w.id)),"has-children",f),"accepts-children",v));(0,m.useEffect)((function(){return window.addEventListener("storage",k),function(){window.removeEventListener("storage",k)}}),[]);var k=function(){j(go(t,o,l))};return y().createElement("li",{className:P,style:{"--level":r},draggable:!0,onDragStart:function(e){e.stopPropagation();var n=window.parent.document.getElementById("fl-builder-node-outline-helper");n||((n=document.createElement("div")).id="fl-builder-node-outline-helper",window.parent.document.body.appendChild(n)),n.style.display="block",n.innerHTML=$o(o,h),e.dataTransfer.setDragImage(n,0,0),e.dataTransfer.setData(o,t),e.dataTransfer.setData("node-id",t),e.dataTransfer.setData("node-type",o),S({id:t,type:o})},onDragEnd:function(){return O()},onDragOver:function(e){if(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",e.currentTarget.classList.contains("fl-builder-node-outline-item")&&Qr(b,a,w.type,w.id)){var t=e.currentTarget.getBoundingClientRect(),n=t.y,r=t.height;qr(e.clientY,n,r)&&"before"!==L?C("before"):qr(e.clientY,n,r)||"after"===L||C("after")}},onDragLeave:function(){L&&C(!1)},onDrop:function(e){if(e.preventDefault(),e.stopPropagation(),L&&C(!1),O(),window.parent.document.getElementById("fl-builder-node-outline-helper").style.display="none",Qr(b,a,w.type,w.id)){var r=e.currentTarget.getBoundingClientRect(),o=r.y,i=r.height,l=qr(e.clientY,o,i)?"before":"after",c=e.dataTransfer.getData("node-id"),d=cn(c),f=d.position,p=d.parent,m=n;if(a===p){if("before"===l){if(f===n-1)return;m=f>n?n:Math.max(0,n-1)}else if("after"===l){if(f===n+1)return;m=f>n?n+1:n}}else m="after"===l?n+1:n;var y=document.body.querySelector('[data-node="'.concat(w.id,'"]')),v=document.body.querySelector('[data-node="'.concat(t,'"]'));if("layout"===b&&"row"!==w.type)if("module"===w.type){var h=no(w.id),g="all"===h.accepts||h.accepts.length?null:"1-col";g?(y.remove(),FLBuilder._addRow(g,m,w.id)):u(w.id,m,0)}else if("column"===w.type){var E=y.closest(".fl-col-group"),S=E.querySelectorAll(".fl-col");y.remove(),1===S.length?(s(E.getAttribute("data-node")),E.remove()):FLBuilder._resetColumnWidths(E),FLBuilder._addRow(w.id,m)}else"column-group"===w.type&&(y.remove(),FLBuilder._addRow(w.id,m));else if("row"===b&&["column","module"].includes(w.type)){if("module"===w.type){var _=no(w.id);"all"===_.accepts||_.accepts.length?u(w.id,m,a):(y.remove(),FLBuilder._addColGroup(a,"1-col",m,w.id))}else if("column"===w.type){var N=y.closest(".fl-col-group"),T=N.querySelectorAll(".fl-col");y.remove(),1===T.length?(s(N.getAttribute("data-node")),N.remove()):FLBuilder._resetColumnWidths(N),FLBuilder._addColGroup(a,w.id,m)}}else if("column-group"===b&&["column","module"].includes(w.type)){if("module"===w.type){var j=!!v.closest(".fl-col-group-nested");y.remove(),FLBuilder._addCols(t,l,"1-col",j,w.id)}else if("column"===w.type){var P=y.closest(".fl-col-group"),k=P.querySelectorAll(".fl-col");u(c,m,a,[a,p]),1===k.length?(s(P.getAttribute("data-node")),P.remove()):FLBuilder._resetColumnWidths(P)}}else u(c,m,a,[a,p])}}},y().createElement(Qo,{id:t,type:o,global:l,position:n,level:r,toggleContent:function(){ho(t,!T)},isShowingContent:T,hasChildren:f}),function(e,t,n,r){if(n||r&&!FLBuilderConfig.userTemplateType)return!1;if("module"===e){var o=no(t);return void 0!==o&&("all"===o.accepts||0<o.accepts.length)}return!0}(o,t,f,l)&&y().createElement(qo,{id:t,type:o}),0<Object.keys(d).length&&T&&y().createElement("ul",null,Object.values(d).sort(Ne).map((function(e,t){return y().createElement(Vo,zo({key:e.node,level:r+1,index:t},e))}))))},qo=function(e){var t=e.id,n=e.type,r=Go(e,Fo),o=Yo((0,m.useState)(!1),2),i=o[0],l=o[1],a=Fn().moveNode,u=ln().removeNode,c=Ir.use(),s=c.draggingItem,d=c.clearDraggingItem,f=zn()("fl-builder-node-empty-drop-area",{"is-over":i});return y().createElement("div",zo({className:f,onDragOver:function(e){Qr(n,t,s.type,s.id)&&(e.preventDefault(),e.stopPropagation(),l(!0))},onDragLeave:function(){return i&&l(!1)},onDrop:function(e){if(l(!1),d(),Qr(n,t,s.type,s.id)){e.preventDefault(),e.stopPropagation();var r=document.body.querySelector('[data-node="'.concat(s.id,'"]'));if("row"===n&&"column-group"!==s.type){if("module"===s.type){var o=no(s.id);"all"===o.accepts||o.accepts.length?a(s.id,0,t):(r.remove(),FLBuilder._addColGroup(t,"1-col",0,s.id))}else if("column"===s.type){var i=r.closest(".fl-col-group"),c=i.querySelectorAll(".fl-col");r.remove(),1===c.length?(u(i.getAttribute("data-node")),i.remove()):FLBuilder._resetColumnWidths(i),FLBuilder._addColGroup(t,s.id,0)}}else a(s.id,0,t)}}},r),y().createElement("div",{className:"drop-area"}))},Qo=(0,m.memo)((function(e){var t=e.id,n=e.type,r=e.global,o=e.level,i=e.toggleContent,l=e.isShowingContent,a=void 0===l||l,u=e.hasChildren,c=(0,an().useNodeSettings)(t),s=Zn(),d=s.setContextMenu,f=s.contextMenu,p=s.clearContextMenu,v=Fn(),h=v.openSettings,g=v.deleteNode,b=v.copyNode,E=v.scrollToNode,w=Mn().simpleUi,S=function(e){var t=e.responsive_display,n=void 0===t?"":t,r=e.visibility_display,o=void 0===r?"":r;return""!==o&&"logic"===o?"logic":!(("desktop,large,medium,mobile"===n||""===n)&&""===o)&&"responsive"}(c),O=function(e){var t=e.bb_css_code,n=void 0===t?"":t,r=e.bb_js_code;return""!==n||""!==(void 0===r?"":r)}(c),_=!r&&u,L=gn(),C=L.activeNode,N=L.focusNode,T=Yo((0,m.useState)(!1),2),j=T[0],P=T[1],k=Yo((0,m.useState)(!1),2),x=k[0],A=k[1],D=to(n,c),F=zn()("fl-builder-node-outline-item-content",{"has-context-menu":!1!==f&&t===f.id,"is-global-node":r,"is-missing-definition":!D,"is-outline-active-node":t===C,"is-outline-focus-node":t===N,"is-search-disable":!0!==x}),M=function(){var e=document.querySelectorAll(".fl-node-highlight");Array.from(e).forEach((function(e){e.classList.remove("fl-node-highlight")}))},R=Yo(zr({onClick:function(){D&&E(t)},onDoubleClick:function(){D&&!j&&(E(t),h(t),M())}}),2),B=R[0],I=R[1],H=function(){var e,n=(e=Bo().mark((function e(n){return Bo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return FLBuilder.showAjaxLoader(),e.next=3,FLBuilder.ajax({action:"save_settings",node_id:t,settings:Ho(Ho({},c),{},{node_label:n}),callback:function(){return c.node_label=n,FLBuilderSettingsConfig.nodes[t].node_label=n,FLBuilder.hideAjaxLoader(),!0}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function l(e){Uo(i,r,o,l,a,"next",e)}function a(e){Uo(i,r,o,l,a,"throw",e)}l(void 0)}))});return function(e){return n.apply(this,arguments)}}();return y().createElement("div",{className:F,onClick:B,onDoubleClick:I,onPointerEnter:function(){var e=document.querySelector(".fl-node-".concat(t));e&&e.classList.add("fl-node-highlight")},onPointerLeave:M,onPointerCancel:M,onContextMenu:function(e){var o=r&&n===FLBuilderConfig.userTemplateType;if(!1===f||t!==f.id)if(!1===j){e.preventDefault();var i={settings:{label:"Open Settings",isEnabled:"column-group"!==n&&D,onClick:function(){E(t),h(t)}},clone:{label:"Duplicate",isEnabled:!o&&"column-group"!==n&&D&&!w,onClick:function(){return b(t)}},delete:{label:FLBuilderStrings.remove,isEnabled:!o&&!w,status:"destructive",onClick:function(){return g(t)}}};d({id:t,items:i,type:n,global:r,x:e.clientX,y:e.clientY})}else p();else p()}},_&&y().createElement("span",{className:"fl-builder-outline-item-gutter"},y().createElement("button",{className:a?"":"is-hiding-content",onClick:function(e){i(e),e.preventDefault(),e.stopPropagation()}},y().createElement(ti,null))),y().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},y().createElement(Ko,{type:n,moduleType:c.type,settings:c,hasDefinition:D})),y().createElement("span",{className:"fl-builder-outline-item-label-wrap"},y().createElement(Xo,{type:n,settings:c,onSearch:function(e){A(e)},level:o,isActive:j,submitAction:H,toggleActivity:function(){P((function(e){return!e}))}})),y().createElement(ei,{id:t,type:n,size:parseFloat(c.size),width:c.max_content_width,widthUnit:c.max_content_width_unit}),O&&y().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},y().createElement(fo,null)),S&&"responsive"===S&&y().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},y().createElement(co,null)),S&&"logic"===S&&y().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},y().createElement(so,null)))})),$o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0!==t.type?Zr(t.type):e;return"row"===n?n=FLBuilderStrings.row:"column-group"===n?n=FLBuilderStrings.columnGroup:"column"===n&&(n=FLBuilderStrings.column),n},Xo=function(e){var t,n=e.type,r=e.settings,o=void 0===r?{}:r,i=e.onSearch,l=Go(e,Mo),a=$o(n,o),u="";if("module"===n&&"type"in o)switch(o.type){case"heading":a=o.tag,u=o.heading;break;case"html":u=o.html;break;case"rich-text":case"icon":case"button":u=o.text;break;case"callout":u=o.title;break;case"acf-block":a=Rr("ACF Block");break;case"reusable-block":a=Rr("WordPress Pattern");break;case"box":var c="";switch(o.layout){case"flex":c="Flex",["","row","row-reverse"].includes(o.flex_direction)?c=Rr("Flex Row"):["column","column-reverse"].includes(o.flex_direction)&&(c=Rr("Flex Column"));break;case"grid":c=Rr("Grid");break;case"z_stack":c=Rr("Layered")}a=c?"".concat(a,": ").concat(c):a;break;case"widget":to(n,o)&&null!==(t=o[o.widget_key])&&void 0!==t&&t.title&&(u=o[o.widget_key].title.trim())}var s="";o&&"node_label"in o&&""!==o.node_label&&(s=o.node_label);var d=u&&""!==u.trim()||s&&""!==s.trim()?": ":"",f=Eo("search").toLowerCase(),p=[a,u,null==o?void 0:o.class,null==o?void 0:o.id,null==o?void 0:o.node_label].some((function(e){return null==e?void 0:e.toLowerCase().includes(f)}));return(0,m.useEffect)((function(){i(p)}),[p]),y().createElement(y().Fragment,null,y().createElement("span",{className:l.isActive?"fl-builder-outline-item-label-text":null},a,d),"column-group"!==n&&to(n,o)&&y().createElement(Ao,zo({parentStyle:"fl-builder-outline-item-label-form",previewValue:Yr(u),labelValue:Yr(s)},l)))},Jo=function(e){var t=e.children,n=e.style,r=Go(e,Ro);return y().createElement("span",zo({style:Ho({textTransform:"lowercase",background:"rgba(0,0,0,.05)",color:"#828282",fontSize:11,flex:"0 0 auto",display:"inline-flex",padding:"2px 6px",borderRadius:25,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"monospace"},n),title:t},r),t)},Ko=(0,m.memo)((function(e){var t=e.type,n=e.moduleType,r=e.settings,o=e.hasDefinition;switch(t){case"row":return y().createElement(io,null);case"column":case"column-group":return y().createElement(oo,null);case"module":var i=function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&!arguments[2])return uo;switch(e){case"rich-text":return ao;case"photo":return lo;case"icon":if("icon"in t)return function(){return y().createElement("i",{className:t.icon,"aria-hidden":"true"})};break;case"widget":return function(){return y().createElement("i",{className:"dashicons dashicons-wordpress","aria-hidden":"true"})};default:var n=eo(t);return n&&"icon"in n?function(){return y().createElement("div",{style:{flexShrink:0,width:16,height:16,fill:"currentColor"},dangerouslySetInnerHTML:{__html:n.icon}})}:ro}}(n,r,o);return y().createElement(i,null)}})),ei=function(e){var t=e.id,n=e.type,r=e.size,o=e.width,i=e.widthUnit,l=un().resizing,a="";return l&&l.includes(t)&&("column"===n?a+=" ".concat(r,"% "):"row"===n&&(a+="Max: ".concat(o+i))),""===a?null:y().createElement(Jo,{style:{background:"var(--fl-builder-blue)",color:"white"}},a)},ti=function(){return y().createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79289 1.29289C3.18342 0.902369 3.81658 0.902369 4.20711 1.29289L7.20711 4.29289C7.59763 4.68342 7.59763 5.31658 7.20711 5.70711L4.20711 8.70711C3.81658 9.09763 3.18342 9.09763 2.79289 8.70711C2.40237 8.31658 2.40237 7.68342 2.79289 7.29289L5.08579 5L2.79289 2.70711C2.40237 2.31658 2.40237 1.68342 2.79289 1.29289Z",fill:"currentColor"}))},ni=function(){return y().createElement("svg",{height:"16",width:"16",viewBox:"0 0 16 16",fill:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M2,6C0.896,6,0,6.896,0,8s0.896,2,2,2s2-0.896,2-2S3.104,6,2,6z M8,6C6.896,6,6,6.896,6,8s0.896,2,2,2s2-0.896,2-2 S9.104,6,8,6z M14,6c-1.104,0-2,0.896-2,2s0.896,2,2,2s2-0.896,2-2S15.104,6,14,6z"}))},ri=function(){return y().createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y().createElement("path",{d:"M12.14 4.18c1.87 1.87 2.11 4.75 0.72 6.89 0.12 0.1 0.22 0.21 0.36 0.31 0.2 0.16 0.47 0.36 0.81 0.59 0.34 0.24 0.56 0.39 0.66 0.47 0.42 0.31 0.73 0.57 0.94 0.78 0.32 0.32 0.6 0.65 0.84 1 0.25 0.35 0.44 0.69 0.59 1.040 0.14 0.35 0.21 0.68 0.18 1-0.020 0.32-0.14 0.59-0.36 0.81s-0.49 0.34-0.81 0.36c-0.31 0.020-0.65-0.040-0.99-0.19-0.35-0.14-0.7-0.34-1.040-0.59-0.35-0.24-0.68-0.52-1-0.84-0.21-0.21-0.47-0.52-0.77-0.93-0.1-0.13-0.25-0.35-0.47-0.66-0.22-0.32-0.4-0.57-0.56-0.78-0.16-0.2-0.29-0.35-0.44-0.5-2.070 1.090-4.69 0.76-6.44-0.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zM10.73 10.54c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z"}))},oi=function(){return y().createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y().createElement("g",{stroke:"currentColor",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round"},y().createElement("path",{d:"M13,1 L1,13"}),y().createElement("path",{d:"M1,1 L13,13"})))};const ii=function(){var e=X().togglePanel,t=Yo((0,m.useState)(""),2),n=t[0],r=t[1],o=(0,an().useNodesWithoutSettings)(null),i=Object.values(o).sort(Ne),l=Yo((0,m.useState)(!1),2),a=l[0],u=l[1],c=!1!==a,s=Yo((0,m.useState)(!1),2),d=s[0],f=s[1],p=Yo((0,m.useState)(!1),2),v=p[0],h=p[1],g=!1,b={draggingItem:a,isDraggingItem:c,clearDraggingItem:function(){return u(!1)},setDraggingItem:function(e){return u(e)}},E=zn()("fl-builder-node-outline",Wo({"is-dragging":c},"is-dragging-type-".concat(a.type),a)),w=function(e){f(!d),ho(!1,e)},S=function(){h(!v)},O=function(){ho(!1,g=!g)};return(0,m.useEffect)((function(){return FLBuilder.addHook("toggleOutlinePanelItems",O),function(){FLBuilder.removeHook("toggleOutlinePanelItems",O)}}),[]),y().createElement(Ir.Provider,{value:b},y().createElement("div",{className:"fl-builder-outline-header"},!v&&y().createElement("h1",null,"Outline"),v&&y().createElement("input",{type:"text",placeholder:Rr("Search"),value:n,onChange:function(e){var t;t=e.target.value,r(t),bo(t)},autoFocus:!0}),!v&&y().createElement("button",{className:"fl-builder-outline-search-button",onClick:S},y().createElement(ri,null)),v&&y().createElement("button",{className:"fl-builder-outline-search-button",onClick:function(){S(),n&&(r(""),bo(""))}},y().createElement(oi,null)),y().createElement("div",{className:"fl-builder-outline-menu"},y().createElement("button",{className:"fl-builder-outline-menu-button",onClick:function(){f(!d)}},y().createElement(ni,null)),d&&y().createElement("div",{className:"fl-builder-outline-menu-dropdown"},y().createElement("button",{className:"fl-builder--menu-item",onClick:function(){return w(!0)}},FLBuilderStrings.expand_all),y().createElement("button",{className:"fl-builder--menu-item",onClick:function(){return w(!1)}},FLBuilderStrings.collapse_all)))),y().createElement("ul",{className:E},i.map((function(e,t){return y().createElement(Vo,zo({key:e.node,level:1,index:t},e))})),!i.length&&y().createElement("li",{className:"fl-builder-outline-no-content"},y().createElement("div",null,y().createElement("span",null,Rr("No content found"),". "),y().createElement("a",{onClick:function(){e("outline"),FLBuilder._showPanel()}},Rr("Add something")),y().createElement("span",null," ",Rr("to get started"),"!")))))};var li=["className"];function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(null,arguments)}function ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ci(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}(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 ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const si=function(e){var t=e.className,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,li),r=function(){return"right"!==FLBuilder.PinnedUI.getPinnedSide()||FLBuilder.PinnedUI.isCollapsed()?null:"fl-builder-workspace-panel-offset"},o=ui((0,m.useState)(r()),2),i=o[0],l=o[1],a=zn()("fl-builder-workspace-panel",t,i);return FLBuilder.addHook("didPinContentPanel",(function(){l(r())})),r()&&jQuery(".fl-builder--panel-header .fl-builder--tab-button.is-showing").removeClass("is-showing"),y().createElement("div",ai({className:a},n))};var di=function(e){var t=e.onMount,n=void 0===t?function(){}:t,r=e.onUnmount,o=void 0===r?function(){}:r,i=e.Content;return(0,m.useEffect)((function(){return n(),function(){return o()}}),[]),y().createElement(i,null)};const fi=function(){var e=q(),t=e.currentPanel,n=e.panels;if(!(t in n))return null;var r,o=n[t],i=o.routerProps,l=o.onHistoryChanged,a=o.root,u=o.render,c=o.frame,s=void 0===c?si:c,d=o.className,f=o.wrapClassName,p=o.onMount,v=void 0===p?function(){}:p,h=o.onUnmount,b=void 0===h?function(){}:h,E=!1===s?m.Fragment:s;return y().createElement("div",{className:f},y().createElement(E,{className:!1!==s&&d},y().createElement(g.Root,{routerProps:(r=i,"function"==typeof r?r():r),onHistoryChanged:l},y().createElement(di,{onMount:v,onUnmount:b,Content:a||u}))))};function pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mi(e,t):void 0}}(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 mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yi(e){return yi="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},yi(e)}function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){gi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=yi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(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 Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wi=function(){var e=bi((0,m.useState)({}),2),t=e[0],n=e[1],r=bi((0,m.useState)({}),2),o=r[0],i=r[1],l=FLBuilderConfig.inlineModuleAliases,a=function(){jQuery(".fl-module").each((function(){var e=jQuery(this),n=e.data("node"),r=e.data("type");if(e.data("accepts")&&l[r]){var i=!!e.find(".fl-module").length,c=!!e.find("> .fl-builder-node-loading-placeholder").length,s=e.hasClass("fl-builder-node-loading"),d=!(i||c||s||o[n]);!t[n]&&d?(t[n]=function(e){var t=document.createElement("div");return t.classList.add("fl-module-layout-selector-root"),e.find("> :not(.fl-drop-target)").remove(),e[0].appendChild(t),(0,v.createRoot)(t)}(e),t[n].render(y().createElement(Si,{setupLayoutSelectors:a,setSelectedAlias:u,module:e,nodeId:n,title:e.data("name"),options:l[r]}))):t[n]&&!d&&(t[n].unmount(),delete t[n])}})),n(hi({},t))},u=function(e,t){t?o[e]=t:delete o[e],i(hi({},o))},c=function(e,t){var n=t.parentId;!!!jQuery(".fl-node-".concat(n)).find(".fl-module").length&&o[n]&&(delete o[n],i(hi({},o)),a())};return(0,m.useEffect)((function(){return FLBuilder.addHook("didInitUI",a),FLBuilder.addHook("didDropModule",a),FLBuilder.addHook("didStartNodeLoading",a),FLBuilder.addHook("didRenderLayoutComplete",a),FLBuilder.addHook("didDeleteModule",a),FLBuilder.addHook("didDeleteModule",c),function(){FLBuilder.removeHook("didInitUI",a),FLBuilder.removeHook("didDropModule",a),FLBuilder.removeHook("didStartNodeLoading",a),FLBuilder.removeHook("didRenderLayoutComplete",a),FLBuilder.removeHook("didDeleteModule",a),FLBuilder.removeHook("didDeleteModule",c)}}),[o]),null},Si=function(e){var t=e.setupLayoutSelectors,n=e.setSelectedAlias,r=e.module,o=e.nodeId,i=e.title,l=e.options;return y().createElement("div",{className:"fl-module-layout-selector"},y().createElement("div",{className:"fl-module-layout-selector-title"},i),y().createElement("div",{className:"fl-module-layout-selector-message"},"Select a layout to get started."),y().createElement("div",{className:"fl-module-layout-selector-options"},l.map((function(e,i){var l=e.name,a=e.alias,u=e.icon;return y().createElement("div",{className:"fl-module-layout-selector-option",key:i,onClick:function(){return function(e){var i=FL.Builder.data.getLayoutActions().applyModuleAlias,l=jQuery('.fl-builder-settings[data-node="'.concat(o,'"]')),a=l.length?FLBuilder._getSettings(l):null;FLBuilder._showNodeLoadingPlaceholder(r,0),n(o,e),t(),i(o,e,a,(function(e){var t=FLBuilder._jsonParse(e),n=t.layout,r=t.nodeId,o=t.settings;FLBuilder._renderLayout(n),FLBuilderSettingsConfig.updateNode(r,o),FLBuilderSettingsForms.reRenderNodeSettings(r,o)}))}(a)}},y().createElement("div",{className:"fl-module-layout-selector-option-icon",dangerouslySetInnerHTML:{__html:u}}),l)}))))};function Oi(e){return Oi="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},Oi(e)}function _i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Oi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Li=function(){var e=q(),t=e.isEditing,n=e.shouldShowShortcuts,r=function(){var e=q("colorScheme").colorScheme,t=pi((0,m.useState)(!1),2),n=t[0],r=t[1],o=function(e){return r(e.matches)};return(0,m.useEffect)((function(){var e=window.matchMedia("(prefers-color-scheme: dark)").matches;return e!==n&&r(e),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",o)}),[]),"auto"===e?n?"dark":"light":e}(),o=zn()(_i({},"fluid-color-scheme-".concat(r),r)),i=FL.Builder.settingsForms.FormsManager;return y().createElement("div",{className:o},y().createElement(nr,null,y().createElement(jr,null),y().createElement(wi,null),t&&y().createElement(y().Fragment,null,y().createElement(Pr,null),y().createElement(gr,null),n&&y().createElement(Mr,null),y().createElement(fi,null),y().createElement(i,null))))};var Ci,Ni,Ti,ji,Pi,ki,xi,Ai;function Di(e){return Di="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},Di(e)}function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ri(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Di(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Di(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(){FLBuilder.addHook("didInitUI",(function(){var t=window.parent.document.querySelector(".fl-builder-bar-actions"),n=t.querySelector(".fl-builder--saving-indicator"),r=document.createElement("button");r.classList.add("fl-builder-button","fl-builder-button-silent"),r.innerHTML='<svg width="20px" x="0px" y="0px" viewBox="0 0 238 238" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><g id="EMF-by-Xara-X" serif:id="EMF by Xara X"><path d="M170.734,183.655l-32.623,-35.483c-19.089,5.332 -40.624,6.6 -61.992,2.707c-54.118,-9.858 -86.793,-49.103 -72.935,-87.598c13.859,-38.494 69.029,-61.737 123.148,-51.878c7.553,1.375 14.687,3.324 21.334,5.762l-6.462,12.195c-5.266,-1.731 -10.922,-3.111 -16.913,-4.082c-42.267,-6.842 -85.356,9.291 -96.18,36.014c-10.824,26.722 14.695,53.963 56.963,60.808c41.535,6.724 83.865,-8.739 95.589,-34.637l13.176,22.511l0.064,0.113c-4.574,7.429 -10.792,14.102 -18.26,19.85l27.897,25.151c15.605,14.906 -15.073,47.906 -32.806,28.567Zm9.595,-26.401l-34.191,-30.641c-36.604,14.182 -70.685,6.876 -98.296,-5.59c23.399,17.456 58.534,24.774 94.542,14.959l30.526,29.179c1.989,-3.304 4.559,-6.305 7.419,-7.907Z"/><path d="M42.292,90.276l27.528,0l16.45,-26.827l34.049,52.376l44.83,-68.557l34.474,58.905l37.878,0l-29.225,-7.239l-43.694,-98.934l-43.696,82.469l-33.055,-51.241l-24.826,54.79l-20.713,4.258Z" style="fill:#1195d0;"/></g></svg>',r.onclick=function(){return e()},r.title=Rr("Query Monitor"),jQuery("#query-monitor-main").length>0&&t.insertBefore(r,n)}));var e=function(){var e=document.getElementById("query-monitor-main");if(t(e)){(n=document.getElementById("wp-admin-bar-query-monitor").getElementsByTagName("a"))[0].click()}else{var n=document.getElementsByClassName("qm-button-container-close");n[0].click()}},t=function(e){return"none"===window.getComputedStyle(e).display}}(),window.FL=null!==(Ci=window.FL)&&void 0!==Ci?Ci:{},FL.Builder=Mi(Mi(Mi({},null!==(Ni=window.FL.Builder)&&void 0!==Ni?Ni:{}),p),{},{data:c,BuilderUI:Li}),Ti=K(),ji=Ti.showOutlinePanel,Pi=void 0===ji||ji,ki=Ti.unrestricted,Pi&&(void 0===ki||ki)&&function(){var e=window.FL.Builder,t=e.registerPanel,n=e.togglePanel;t("outline",{label:Rr("Outline"),render:ii,root:ii}),FLBuilder.addHook("didInitUI",(function(){var e=window.parent.document.querySelector(".fl-builder-bar-actions"),t=e.querySelector(".fl-builder--saving-indicator"),r=document.createElement("button");r.classList.add("fl-builder-button","fl-builder-button-silent"),r.innerHTML='<svg width="20" height="20"><use href="#fl-outline-list-icon" /></svg>',r.onclick=function(){n("outline");var e=Eo("collapse");ho(!1,!e,!0,!1)},r.title=Rr("Outline"),e.insertBefore(r,t)}))}(),xi=y().createElement(Li,null),(Ai=window.parent.document.getElementById("fl-ui-root")).classList.add("fluid","fl","uid"),h?(0,v.createRoot)(Ai).render(xi):(0,v.render)(xi,Ai),window.parent.dispatchEvent(new CustomEvent("flbuilderready",{detail:{FL}}))})()})();