?AlkantarClanX12

Your IP : 216.73.217.134


Current Path : /home/rankinh/villavanille/wp-content/plugins/qi-blocks/assets/dist/
Upload File :
Current File : /home/rankinh/villavanille/wp-content/plugins/qi-blocks/assets/dist/advanced-columns.js

(()=>{var e={4300:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:l,getPrototypeOf:n,getOwnPropertyDescriptor:a}=Object;let{freeze:o,seal:r,create:i}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),r||(r=function(e){return e}),s||(s=function(e,t,l){return e.apply(t,l)}),c||(c=function(e,t){return new e(...t)});const u=y(Array.prototype.forEach),p=y(Array.prototype.pop),m=y(Array.prototype.push),b=y(String.prototype.toLowerCase),d=y(String.prototype.toString),f=y(String.prototype.match),g=y(String.prototype.replace),h=y(String.prototype.indexOf),k=y(String.prototype.trim),_=y(RegExp.prototype.test),v=w(TypeError);function y(e){return function(t){for(var l=arguments.length,n=new Array(l>1?l-1:0),a=1;a<l;a++)n[a-1]=arguments[a];return s(e,t,n)}}function w(e){return function(){for(var t=arguments.length,l=new Array(t),n=0;n<t;n++)l[n]=arguments[n];return c(e,l)}}function A(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){const e=a(t);e!==t&&(l(n)||(n[o]=e),t=e)}e[t]=!0}return e}function q(e){for(let t=0;t<e.length;t++)void 0===a(e,t)&&(e[t]=null);return e}function x(t){const l=i(null);for(const[n,o]of e(t))void 0!==a(t,n)&&(Array.isArray(o)?l[n]=q(o):o&&"object"==typeof o&&o.constructor===Object?l[n]=x(o):l[n]=o);return l}function S(e,t){for(;null!==e;){const l=a(e,t);if(l){if(l.get)return y(l.get);if("function"==typeof l.value)return y(l.value)}e=n(e)}function l(e){return console.warn("fallback value for",e),null}return l}const E=o(["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"]),C=o(["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=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),O=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=o(["#text"]),P=o(["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"]),N=o(["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"]),D=o(["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"]),R=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=r(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=r(/<%[\w\W]*|[\w\W]*%>/gm),U=r(/\${[\w\W]*}/gm),j=r(/^data-[\-\w.\u00B7-\uFFFF]/),z=r(/^aria-[\-\w]+$/),H=r(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F=r(/^(?:\w+script|data):/i),G=r(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=r(/^html$/i);var $=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:M,TMPLIT_EXPR:U,DATA_ATTR:j,ARIA_ATTR:z,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:G,DOCTYPE_NAME:K});const W=function(){return"undefined"==typeof window?null:window},Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let l=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(l=t.getAttribute(n));const a="dompurify"+(l?"#"+l:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Y(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W();const l=e=>Y(e);if(l.version="3.0.8",l.removed=[],!t||!t.document||9!==t.document.nodeType)return l.isSupported=!1,l;let{document:n}=t;const a=n,r=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:y,Element:w,NodeFilter:q,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:M,DOMParser:U,trustedTypes:j}=t,z=w.prototype,F=S(z,"cloneNode"),G=S(z,"nextSibling"),X=S(z,"childNodes"),J=S(z,"parentNode");if("function"==typeof c){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Q,ee="";const{implementation:te,createNodeIterator:le,createDocumentFragment:ne,getElementsByTagName:ae}=n,{importNode:oe}=a;let re={};l.isSupported="function"==typeof e&&"function"==typeof J&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ie,ERB_EXPR:se,TMPLIT_EXPR:ce,DATA_ATTR:ue,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:be}=$;let{IS_ALLOWED_URI:de}=$,fe=null;const ge=A({},[...E,...C,...I,...B,...V]);let he=null;const ke=A({},[...P,...N,...D,...R]);let _e=Object.seal(i(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}})),ve=null,ye=null,we=!0,Ae=!0,qe=!1,xe=!0,Se=!1,Ee=!1,Ce=!1,Ie=!1,Te=!1,Be=!1,Oe=!1,Ve=!0,Pe=!1;const Ne="user-content-";let De=!0,Re=!1,Le={},Me=null;const Ue=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let je=null;const ze=A({},["audio","video","img","source","image","track"]);let He=null;const Fe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let We=$e,Ze=!1,Ye=null;const Xe=A({},[Ge,Ke,$e],d);let Je=null;const Qe=["application/xhtml+xml","text/html"],et="text/html";let tt=null,lt=null;const nt=n.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},ot=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=x(e),Je=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?d:b,fe="ALLOWED_TAGS"in e?A({},e.ALLOWED_TAGS,tt):ge,he="ALLOWED_ATTR"in e?A({},e.ALLOWED_ATTR,tt):ke,Ye="ALLOWED_NAMESPACES"in e?A({},e.ALLOWED_NAMESPACES,d):Xe,He="ADD_URI_SAFE_ATTR"in e?A(x(Fe),e.ADD_URI_SAFE_ATTR,tt):Fe,je="ADD_DATA_URI_TAGS"in e?A(x(ze),e.ADD_DATA_URI_TAGS,tt):ze,Me="FORBID_CONTENTS"in e?A({},e.FORBID_CONTENTS,tt):Ue,ve="FORBID_TAGS"in e?A({},e.FORBID_TAGS,tt):{},ye="FORBID_ATTR"in e?A({},e.FORBID_ATTR,tt):{},Le="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Se=e.SAFE_FOR_TEMPLATES||!1,Ee=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Ve=!1!==e.SANITIZE_DOM,Pe=e.SANITIZE_NAMED_PROPS||!1,De=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,de=e.ALLOWED_URI_REGEXP||H,We=e.NAMESPACE||$e,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(Ae=!1),Be&&(Te=!0),Le&&(fe=A({},V),he=[],!0===Le.html&&(A(fe,E),A(he,P)),!0===Le.svg&&(A(fe,C),A(he,N),A(he,R)),!0===Le.svgFilters&&(A(fe,I),A(he,N),A(he,R)),!0===Le.mathMl&&(A(fe,B),A(he,D),A(he,R))),e.ADD_TAGS&&(fe===ge&&(fe=x(fe)),A(fe,e.ADD_TAGS,tt)),e.ADD_ATTR&&(he===ke&&(he=x(he)),A(he,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&A(He,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Me===Ue&&(Me=x(Me)),A(Me,e.FORBID_CONTENTS,tt)),De&&(fe["#text"]=!0),Ee&&A(fe,["html","head","body"]),fe.table&&(A(fe,["tbody"]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=Z(j,r)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));o&&o(e),lt=e}},rt=A({},["mi","mo","mn","ms","mtext"]),it=A({},["foreignobject","desc","title","annotation-xml"]),st=A({},["title","style","font","a","script"]),ct=A({},[...C,...I,...T]),ut=A({},[...B,...O]),pt=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});const l=b(e.tagName),n=b(t.tagName);return!!Ye[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===$e?"svg"===l:t.namespaceURI===Ge?"svg"===l&&("annotation-xml"===n||rt[n]):Boolean(ct[l]):e.namespaceURI===Ge?t.namespaceURI===$e?"math"===l:t.namespaceURI===Ke?"math"===l&&it[n]:Boolean(ut[l]):e.namespaceURI===$e?!(t.namespaceURI===Ke&&!it[n])&&!(t.namespaceURI===Ge&&!rt[n])&&!ut[l]&&(st[l]||!ct[l]):!("application/xhtml+xml"!==Je||!Ye[e.namespaceURI]))},mt=function(e){m(l.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},bt=function(e,t){try{m(l.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(l.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!he[e])if(Te||Be)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){let t=null,l=null;if(Ie)e="<remove></remove>"+e;else{const t=f(e,/^[\r\n\t ]+/);l=t&&t[0]}"application/xhtml+xml"===Je&&We===$e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=Q?Q.createHTML(e):e;if(We===$e)try{t=(new U).parseFromString(a,Je)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(We,"template",null);try{t.documentElement.innerHTML=Ze?ee:a}catch(e){}}const o=t.body||t.documentElement;return e&&l&&o.insertBefore(n.createTextNode(l),o.childNodes[0]||null),We===$e?ae.call(t,Ee?"html":"body")[0]:Ee?t.documentElement:o},ft=function(e){return le.call(e.ownerDocument||e,e,q.SHOW_ELEMENT|q.SHOW_COMMENT|q.SHOW_TEXT,null)},gt=function(e){return e instanceof M&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ht=function(e){return"function"==typeof y&&e instanceof y},kt=function(e,t,n){re[e]&&u(re[e],(e=>{e.call(l,t,n,lt)}))},_t=function(e){let t=null;if(kt("beforeSanitizeElements",e,null),gt(e))return mt(e),!0;const n=tt(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:fe}),e.hasChildNodes()&&!ht(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return mt(e),!0;if(!fe[n]||ve[n]){if(!ve[n]&&yt(n)){if(_e.tagNameCheck instanceof RegExp&&_(_e.tagNameCheck,n))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))return!1}if(De&&!Me[n]){const t=J(e)||e.parentNode,l=X(e)||e.childNodes;if(l&&t)for(let n=l.length-1;n>=0;--n)t.insertBefore(F(l[n],!0),G(e))}return mt(e),!0}return e instanceof w&&!pt(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,u([ie,se,ce],(e=>{t=g(t,e," ")})),e.textContent!==t&&(m(l.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(mt(e),!0)},vt=function(e,t,l){if(Ve&&("id"===t||"name"===t)&&(l in n||l in nt))return!1;if(Ae&&!ye[t]&&_(ue,t));else if(we&&_(pe,t));else if(!he[t]||ye[t]){if(!(yt(e)&&(_e.tagNameCheck instanceof RegExp&&_(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&_(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&_(_e.tagNameCheck,l)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(l))))return!1}else if(He[t]);else if(_(de,g(l,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(l,"data:")||!je[e])if(qe&&!_(me,g(l,be,"")));else if(l)return!1;return!0},yt=function(e){return e.indexOf("-")>0},wt=function(e){kt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he};let a=t.length;for(;a--;){const o=t[a],{name:r,namespaceURI:i,value:s}=o,c=tt(r);let m="value"===r?s:k(s);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,kt("uponSanitizeAttribute",e,n),m=n.attrValue,n.forceKeepAttr)continue;if(bt(r,e),!n.keepAttr)continue;if(!xe&&_(/\/>/i,m)){bt(r,e);continue}Se&&u([ie,se,ce],(e=>{m=g(m,e," ")}));const b=tt(e.nodeName);if(vt(b,c,m)){if(!Pe||"id"!==c&&"name"!==c||(bt(r,e),m=Ne+m),Q&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(i);else switch(j.getAttributeType(b,c)){case"TrustedHTML":m=Q.createHTML(m);break;case"TrustedScriptURL":m=Q.createScriptURL(m)}try{i?e.setAttributeNS(i,r,m):e.setAttribute(r,m),p(l.removed)}catch(e){}}}kt("afterSanitizeAttributes",e,null)},At=function e(t){let l=null;const n=ft(t);for(kt("beforeSanitizeShadowDOM",t,null);l=n.nextNode();)kt("uponSanitizeShadowNode",l,null),_t(l)||(l.content instanceof s&&e(l.content),wt(l));kt("afterSanitizeShadowDOM",t,null)};return l.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,r=null,i=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ht(e)){if("function"!=typeof e.toString)throw v("toString is not a function");if("string"!=typeof(e=e.toString()))throw v("dirty is not a string, aborting")}if(!l.isSupported)return e;if(Ce||ot(t),l.removed=[],"string"==typeof e&&(Re=!1),Re){if(e.nodeName){const t=tt(e.nodeName);if(!fe[t]||ve[t])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof y)n=dt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Te&&!Se&&!Ee&&-1===e.indexOf("<"))return Q&&Oe?Q.createHTML(e):e;if(n=dt(e),!n)return Te?null:Oe?ee:""}n&&Ie&&mt(n.firstChild);const c=ft(Re?e:n);for(;r=c.nextNode();)_t(r)||(r.content instanceof s&&At(r.content),wt(r));if(Re)return e;if(Te){if(Be)for(i=ne.call(n.ownerDocument);n.firstChild;)i.appendChild(n.firstChild);else i=n;return(he.shadowroot||he.shadowrootmode)&&(i=oe.call(a,i,!0)),i}let p=Ee?n.outerHTML:n.innerHTML;return Ee&&fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(K,n.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+p),Se&&u([ie,se,ce],(e=>{p=g(p,e," ")})),Q&&Oe?Q.createHTML(p):p},l.setConfig=function(){ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ce=!0},l.clearConfig=function(){lt=null,Ce=!1},l.isValidAttribute=function(e,t,l){lt||ot({});const n=tt(e),a=tt(t);return vt(n,a,l)},l.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],m(re[e],t))},l.removeHook=function(e){if(re[e])return p(re[e])},l.removeHooks=function(e){re[e]&&(re[e]=[])},l.removeAllHooks=function(){re={}},l}return Y()}()},6152:(e,t,l)=>{var n=l(2488);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return n(e)?e:[e]}},520:(e,t,l)=>{var n=l(5968),a=l(3740),o=l(4996),r=l(2600),i=l(7336);function s(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=o,s.prototype.has=r,s.prototype.set=i,e.exports=s},9704:(e,t,l)=>{var n=l(7188).Uint8Array;e.exports=n},2253:e=>{e.exports=function(e,t,l){switch(l.length){case 0:return e.call(t);case 1:return e.call(t,l[0]);case 2:return e.call(t,l[0],l[1]);case 3:return e.call(t,l[0],l[1],l[2])}return e.apply(t,l)}},7748:e=>{e.exports=function(e,t,l,n){var a=-1,o=null==e?0:e.length;for(n&&o&&(l=e[++a]);++a<o;)l=t(l,e[a],a,e);return l}},5600:e=>{e.exports=function(e,t){for(var l=-1,n=null==e?0:e.length;++l<n;)if(t(e[l],l,e))return!0;return!1}},1120:e=>{e.exports=function(e){return e.split("")}},2628:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},9200:(e,t,l)=>{var n=l(6139),a=l(864);e.exports=function(e,t,l){(void 0!==l&&!a(e[t],l)||void 0===l&&!(t in e))&&n(e,t,l)}},8288:(e,t,l)=>{var n=l(6139),a=l(864),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,l){var r=e[t];o.call(e,t)&&a(r,l)&&(void 0!==l||t in e)||n(e,t,l)}},6600:(e,t,l)=>{var n=l(864);e.exports=function(e,t){for(var l=e.length;l--;)if(n(e[l][0],t))return l;return-1}},6139:(e,t,l)=>{var n=l(7792);e.exports=function(e,t,l){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:l,writable:!0}):e[t]=l}},2471:(e,t,l)=>{var n=l(8940),a=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(a)return a(t);e.prototype=t;var l=new e;return e.prototype=void 0,l}}();e.exports=o},4596:(e,t,l)=>{var n=l(8168)();e.exports=n},6944:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3992:e=>{e.exports=function(e,t,l){for(var n=l-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}},9184:(e,t,l)=>{var n=l(4840),a=l(2892);e.exports=function e(t,l,o,r,i){return t===l||(null==t||null==l||!a(t)&&!a(l)?t!=t&&l!=l:n(t,l,o,r,e,i))}},4840:(e,t,l)=>{var n=l(520),a=l(9124),o=l(2352),r=l(8608),i=l(3871),s=l(2488),c=l(7684),u=l(6700),p="[object Arguments]",m="[object Array]",b="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,l,f,g,h){var k=s(e),_=s(t),v=k?m:i(e),y=_?m:i(t),w=(v=v==p?b:v)==b,A=(y=y==p?b:y)==b,q=v==y;if(q&&c(e)){if(!c(t))return!1;k=!0,w=!1}if(q&&!w)return h||(h=new n),k||u(e)?a(e,t,l,f,g,h):o(e,t,v,l,f,g,h);if(!(1&l)){var x=w&&d.call(e,"__wrapped__"),S=A&&d.call(t,"__wrapped__");if(x||S){var E=x?e.value():e,C=S?t.value():t;return h||(h=new n),g(E,C,l,f,h)}}return!!q&&(h||(h=new n),r(e,t,l,f,g,h))}},660:(e,t,l)=>{var n=l(520),a=l(9200),o=l(4596),r=l(7132),i=l(8940),s=l(2756),c=l(7972);e.exports=function e(t,l,u,p,m){t!==l&&o(l,(function(o,s){if(m||(m=new n),i(o))r(t,l,s,u,e,p,m);else{var b=p?p(c(t,s),o,s+"",t,l,m):void 0;void 0===b&&(b=o),a(t,s,b)}}),s)}},7132:(e,t,l)=>{var n=l(9200),a=l(1328),o=l(2100),r=l(8416),i=l(6224),s=l(348),c=l(2488),u=l(2480),p=l(7684),m=l(7920),b=l(8940),d=l(2688),f=l(6700),g=l(7972),h=l(1824);e.exports=function(e,t,l,k,_,v,y){var w=g(e,l),A=g(t,l),q=y.get(A);if(q)n(e,l,q);else{var x=v?v(w,A,l+"",e,t,y):void 0,S=void 0===x;if(S){var E=c(A),C=!E&&p(A),I=!E&&!C&&f(A);x=A,E||C||I?c(w)?x=w:u(w)?x=r(w):C?(S=!1,x=a(A,!0)):I?(S=!1,x=o(A,!0)):x=[]:d(A)||s(A)?(x=w,s(w)?x=h(w):b(w)&&!m(w)||(x=i(A))):S=!1}S&&(y.set(A,x),_(x,A,k,v,y),y.delete(A)),n(e,l,x)}}},3228:e=>{var t=Math.ceil,l=Math.max;e.exports=function(e,n,a,o){for(var r=-1,i=l(t((n-e)/(a||1)),0),s=Array(i);i--;)s[o?i:++r]=e,e+=a;return s}},8292:(e,t,l)=>{var n=l(552),a=l(8840),o=l(7360);e.exports=function(e,t){return o(a(e,t,n),e+"")}},4732:e=>{e.exports=function(e,t,l){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(l=l>a?a:l)<0&&(l+=a),a=t>l?0:l-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o}},6524:e=>{e.exports=function(e){return e}},968:(e,t,l)=>{var n=l(3992);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},7320:(e,t,l)=>{var n=l(4732);e.exports=function(e,t,l){var a=e.length;return l=void 0===l?a:l,!t&&l>=a?e:n(e,t,l)}},5987:(e,t,l)=>{var n=l(9704);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},1328:(e,t,l)=>{e=l.nmd(e);var n=l(7188),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a?n.Buffer:void 0,i=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var l=e.length,n=i?i(l):new e.constructor(l);return e.copy(n),n}},2100:(e,t,l)=>{var n=l(5987);e.exports=function(e,t){var l=t?n(e.buffer):e.buffer;return new e.constructor(l,e.byteOffset,e.length)}},8416:e=>{e.exports=function(e,t){var l=-1,n=e.length;for(t||(t=Array(n));++l<n;)t[l]=e[l];return t}},7612:(e,t,l)=>{var n=l(8288),a=l(6139);e.exports=function(e,t,l,o){var r=!l;l||(l={});for(var i=-1,s=t.length;++i<s;){var c=t[i],u=o?o(l[c],e[c],c,l,e):void 0;void 0===u&&(u=e[c]),r?a(l,c,u):n(l,c,u)}return l}},764:(e,t,l)=>{var n=l(8292),a=l(4221);e.exports=function(e){return n((function(t,l){var n=-1,o=l.length,r=o>1?l[o-1]:void 0,i=o>2?l[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,i&&a(l[0],l[1],i)&&(r=o<3?void 0:r,o=1),t=Object(t);++n<o;){var s=l[n];s&&e(t,s,n,r)}return t}))}},8168:e=>{e.exports=function(e){return function(t,l,n){for(var a=-1,o=Object(t),r=n(t),i=r.length;i--;){var s=r[e?i:++a];if(!1===l(o[s],s,o))break}return t}}},7288:(e,t,l)=>{var n=l(7320),a=l(9240),o=l(8595),r=l(1972);e.exports=function(e){return function(t){t=r(t);var l=a(t)?o(t):void 0,i=l?l[0]:t.charAt(0),s=l?n(l,1).join(""):t.slice(1);return i[e]()+s}}},184:(e,t,l)=>{var n=l(7748),a=l(5928),o=l(2996),r=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(a(t).replace(r,"")),e,"")}}},7836:(e,t,l)=>{var n=l(3228),a=l(4221),o=l(7556);e.exports=function(e){return function(t,l,r){return r&&"number"!=typeof r&&a(t,l,r)&&(l=r=void 0),t=o(t),void 0===l?(l=t,t=0):l=o(l),r=void 0===r?t<l?1:-1:o(r),n(t,l,r,e)}}},7792:(e,t,l)=>{var n=l(7892),a=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},9124:(e,t,l)=>{var n=l(6152),a=l(5600),o=l(968);e.exports=function(e,t,l,r,i,s){var c=1&l,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var m=s.get(e),b=s.get(t);if(m&&b)return m==t&&b==e;var d=-1,f=!0,g=2&l?new n:void 0;for(s.set(e,t),s.set(t,e);++d<u;){var h=e[d],k=t[d];if(r)var _=c?r(k,h,d,t,e,s):r(h,k,d,e,t,s);if(void 0!==_){if(_)continue;f=!1;break}if(g){if(!a(t,(function(e,t){if(!o(g,t)&&(h===e||i(h,e,l,r,s)))return g.push(t)}))){f=!1;break}}else if(h!==k&&!i(h,k,l,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}},2352:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8608:(e,t,l)=>{var n=l(1096),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,l,o,r,i){var s=1&l,c=n(e),u=c.length;if(u!=n(t).length&&!s)return!1;for(var p=u;p--;){var m=c[p];if(!(s?m in t:a.call(t,m)))return!1}var b=i.get(e),d=i.get(t);if(b&&d)return b==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var g=s;++p<u;){var h=e[m=c[p]],k=t[m];if(o)var _=s?o(k,h,m,t,e,i):o(h,k,m,e,t,i);if(!(void 0===_?h===k||r(h,k,l,o,i):_)){f=!1;break}g||(g="constructor"==m)}if(f&&!g){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return i.delete(e),i.delete(t),f}},4848:(e,t,l)=>{var n="object"==typeof l.g&&l.g&&l.g.Object===Object&&l.g;e.exports=n},1096:(e,t,l)=>{var n=l(1304)(Object.keys,Object);e.exports=n},7892:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},476:(e,t,l)=>{var n=l(1304)(Object.getPrototypeOf,Object);e.exports=n},3871:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9240:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},4360:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},6224:(e,t,l)=>{var n=l(2471),a=l(476),o=l(1004);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(a(e))}},4221:e=>{e.exports=function(){return!1}},1004:e=>{e.exports=function(){return!1}},5968:e=>{e.exports=function(){this.__data__=[],this.size=0}},3740:(e,t,l)=>{var n=l(6600),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,l=n(t,e);return!(l<0)&&(l==t.length-1?t.pop():a.call(t,l,1),--this.size,!0)}},4996:(e,t,l)=>{var n=l(6600);e.exports=function(e){var t=this.__data__,l=n(t,e);return l<0?void 0:t[l][1]}},2600:(e,t,l)=>{var n=l(6600);e.exports=function(e){return n(this.__data__,e)>-1}},7336:(e,t,l)=>{var n=l(6600);e.exports=function(e,t){var l=this.__data__,a=n(l,e);return a<0?(++this.size,l.push([e,t])):l[a][1]=t,this}},1304:e=>{e.exports=function(e,t){return function(l){return e(t(l))}}},8840:(e,t,l)=>{var n=l(2253),a=Math.max;e.exports=function(e,t,l){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=a(o.length-t,0),s=Array(i);++r<i;)s[r]=o[t+r];r=-1;for(var c=Array(t+1);++r<t;)c[r]=o[r];return c[t]=l(s),n(e,this,c)}}},7188:(e,t,l)=>{var n=l(4848),a="object"==typeof self&&self&&self.Object===Object&&self,o=n||a||Function("return this")();e.exports=o},7972:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},7360:e=>{e.exports=function(e){return e}},8595:(e,t,l)=>{var n=l(1120),a=l(9240),o=l(6448);e.exports=function(e){return a(e)?o(e):n(e)}},6448:e=>{var t="\\ud800-\\udfff",l="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+a+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+s+("(?:\\u200d(?:"+[o,r,i].join("|")+")"+c+s+")*"),p="(?:"+[o+n+"?",n,r,i,l].join("|")+")",m=RegExp(a+"(?="+a+")|"+p+u,"g");e.exports=function(e){return e.match(m)||[]}},2744:e=>{var t="\\ud800-\\udfff",l="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+o+"]",i="\\d+",s="["+l+"]",c="["+n+"]",u="[^"+t+o+i+l+n+a+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="["+a+"]",d="(?:"+c+"|"+u+")",f="(?:"+b+"|"+u+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",h="(?:['’](?:D|LL|M|RE|S|T|VE))?",k="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",_="[\\ufe0e\\ufe0f]?",v=_+k+("(?:\\u200d(?:"+["[^"+t+"]",p,m].join("|")+")"+_+k+")*"),y="(?:"+[s,p,m].join("|")+")"+v,w=RegExp([b+"?"+c+"+"+g+"(?="+[r,b,"$"].join("|")+")",f+"+"+h+"(?="+[r,b+d,"$"].join("|")+")",b+"?"+d+"+"+g,b+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,y].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},5144:(e,t,l)=>{var n=l(1912),a=l(184)((function(e,t,l){return t=t.toLowerCase(),e+(l?n(t):t)}));e.exports=a},1912:(e,t,l)=>{var n=l(1972),a=l(4704);e.exports=function(e){return a(n(e).toLowerCase())}},5928:(e,t,l)=>{var n=l(6524);e.exports=function(e){return null==e?"":n(e)}},864:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},552:e=>{e.exports=function(e){return e}},348:e=>{e.exports=function(){return!1}},2488:e=>{var t=Array.isArray;e.exports=t},4900:(e,t,l)=>{var n=l(7920),a=l(9024);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},2480:(e,t,l)=>{var n=l(4900),a=l(2892);e.exports=function(e){return a(e)&&n(e)}},7684:e=>{e.exports=function(){return!1}},948:(e,t,l)=>{var n=l(9184);e.exports=function(e,t){return n(e,t)}},7920:(e,t,l)=>{var n=l(6944),a=l(8940);e.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9024:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8940:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2892:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2688:(e,t,l)=>{var n=l(6944),a=l(476),o=l(2892),r=Function.prototype,i=Object.prototype,s=r.toString,c=i.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=a(e);if(null===t)return!0;var l=c.call(t,"constructor")&&t.constructor;return"function"==typeof l&&l instanceof l&&s.call(l)==u}},6700:e=>{e.exports=function(){return!1}},2756:e=>{e.exports=function(e){var t=[];if(null!=e)for(var l in Object(e))t.push(l);return t}},7060:(e,t,l)=>{var n=l(660),a=l(764)((function(e,t,l){n(e,t,l)}));e.exports=a},9136:(e,t,l)=>{var n=l(7836)();e.exports=n},7556:e=>{e.exports=function(e){return e}},1824:(e,t,l)=>{var n=l(7612),a=l(2756);e.exports=function(e){return n(e,a(e))}},1972:e=>{e.exports=function(e){return e}},4704:(e,t,l)=>{var n=l(7288)("toUpperCase");e.exports=n},2996:(e,t,l)=>{var n=l(2628),a=l(4360),o=l(1972),r=l(2744);e.exports=function(e,t,l){return e=o(e),void 0===(t=l?void 0:t)?a(e)?r(e):n(e):e.match(t)||[]}},3028:(e,t)=>{"use strict";var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function h(e,t,l){this.props=e,this.context=t,this.refs=g,this.updater=l||d}function k(){}function _(e,t,l){this.props=e,this.context=t,this.refs=g,this.updater=l||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=h.prototype;var v=_.prototype=new k;v.constructor=_,f(v,h.prototype),v.isPureReactComponent=!0;var y=Array.isArray,w=Object.prototype.hasOwnProperty,A={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var a,o={},r=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)w.call(t,a)&&!q.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:l,type:e,key:r,ref:i,props:o,_owner:A.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var E=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,a,o,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case l:case n:s=!0}}if(s)return r=r(s=e),e=""===o?"."+C(s,0):o,y(r)?(a="",null!=e&&(a=e.replace(E,"$&/")+"/"),I(r,t,a,"",(function(e){return e}))):null!=r&&(S(r)&&(r=function(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,a+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(E,"$&/")+"/")+e)),t.push(r)),1;if(s=0,o=""===o?".":o+":",y(e))for(var c=0;c<e.length;c++){var u=o+C(i=e[c],c);s+=I(i,t,a,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=b&&e[b]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)s+=I(i=i.value,t,a,u=o+C(i,c++),r);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,l){if(null==e)return e;var n=[],a=0;return I(e,n,"","",(function(e){return t.call(l,e,a++)})),n}function B(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},V={transition:null};t.createElement=x},1504:(e,t,l)=>{"use strict";e.exports=l(3028)},2084:(e,t)=>{var l;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var l=arguments[t];l&&(e=r(e,o(l)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var l in e)n.call(e,l)&&e[l]&&(t=r(t,l));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(l=function(){return a}.apply(t,[]))||(e.exports=l)}()}},t={};function l(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,l),o.loaded=!0,o.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";const e=wp.i18n,t=wp.blocks;var n=l(7060),a=l.n(n),o=l(9136),r=l.n(o);const i=wp.element,s=wp.blockEditor,c=wp.components,u=wp.data,p=wp.compose;var m=l(2084),b=l.n(m),d=l(948),f=l.n(d);const g=(0,p.createHigherOrderComponent)((e=>class extends i.Component{static defaultProps={clientId:"",attributes:{},setAttributes:()=>{}};componentDidMount(){const{clientId:e,attributes:t,setAttributes:l}=this.props;t.uniqueClass||l({uniqueClass:this.getNewUniqueClass(e)}),this.reInitUniqueClass(!0)}getNewUniqueClass(e){let t="qodef-block-";return this.props.isFullSiteEditor?t="qodef-template-block-":"widget"===this.props.postID&&(t="qodef-widget-block-"),`${t}${e.substring(0,8)}`}hasParent(e,t){let l=!1,n=e?.parentNode;for(;n;){let e=n;if(e&&e?.classList?.contains(t)){l=!0;break}if(!e?.parentNode)break;n=e.parentNode}return l}reInitUniqueClass(e){const{clientId:t,attributes:l,setAttributes:n,isFullSiteEditor:a}=this.props,{uniqueClass:o}=l,r=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument(),i=this.getNewUniqueClass(t);let s=!1;if(a){if(o.includes("qodef-block")||o.includes("qodef-widget")){const e=r.querySelector(`.${o}`);if(e){this.hasParent(e,"wp-block-post-content")||(s=!0)}}e&&r.addEventListener("paste",(()=>{s=!0}))}!a&&o.includes("qodef-template-block")&&(s=!0),""!==o&&o!==i&&r.querySelectorAll(`.${o}`).length>1&&(s=!0),s&&n({uniqueClass:i})}render(){return this.reInitUniqueClass(),wp.element.createElement(e,this.props)}}),"withUniqueClass"),h=g;const k=qiBlocksEditor.vars.systemFontOptions,_=e=>{let t=!0;return e||(t=!1),k&&k.map((({value:e})=>e)).forEach((l=>{""!==l&&e===l&&(t=!1)})),t};function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},v.apply(this,arguments)}let y=[],w={family:[],weight:[],style:[]};const A=e=>{let t="";return Object.entries(e).map((([e,l])=>{if(e.match(/fontfamily/i)){const e=l.replace(/["']/g,"");!y.includes(e)&&_(e)&&(w.family.push(e),y.push(e))}e.match(/fontweight/i)&&w.weight.push(parseInt(l,10)),e.match(/fontstyle/i)&&w.style.push(l),t+=`${e.replace(/([A-Z])/g,((e,t,l)=>(l>0?"-":"")+e.toLowerCase()))}: ${l};`})),t},q=(0,p.createHigherOrderComponent)((e=>class extends i.Component{addPageStyle(e){if(e){const t=this.postID;let l=this.getPageStyles||[],n={key:this.attributes.uniqueClass,values:[],fonts:[]};y=[],w={family:[],weight:[],style:[]},e.forEach(((a,o)=>{if(!Object.values(a.styles).every((e=>0===Object.keys(e).length))){const e=["widget","template"].includes(t)?"":`body[class*="-${t}"]`,l=`${e} ${a.selector}`,o=[];"string"!=typeof a.selector&&a.selector.forEach((t=>{t&&o.push(`${e} ${t}`)})),n.values.push({selector:o.length>1?o.join(","):l,styles:A(a.styles.desktop||""),tablet_styles:A(a.styles.tablet||""),mobile_styles:A(a.styles.mobile||""),custom_styles:a.custom_styles||[]}),n.fonts=w}if(o===e.length-1)if(l&&l.length){let e=!1;l.map(((t,a)=>{t.key===n.key&&(e=!0,n.values.length?f()(t.values,n.values)||(l[a].values=n.values,l[a].fonts=n.fonts):(l[a].values=[],l[a].fonts={family:[],weight:[],style:[]}))})),!e&&n.values.length&&l.push(n)}else"object"==typeof l&&Object.keys(l).length?(l=Object.values(l),l.push(n)):l.push(n);const r=l.filter((e=>e.values.length));qiBlocksEditor.vars.currentPageID=t,qiBlocksEditor.vars.currentPageStyles=r}))}}render(){return wp.element.createElement(e,v({},this.props,{addPageStyle:this.addPageStyle}))}}),"withStyles"),x=(0,p.compose)((0,u.withSelect)((e=>{let t=e("core/editor")?.getCurrentPostId()||"widget";const l=!!e("core/edit-site");let n="desktop";return e("core/edit-post")&&(n=e("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase()),l&&(t="template",n=e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:n,postID:t,getPageStyles:e("qi-blocks/data/with-styles").getOptions(t).data,isFullSiteEditor:l}})),h,q);var S=l(5144),E=l.n(S);const C=wp.hooks;var I,T=l(1504);function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},B.apply(this,arguments)}const O=e=>T.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),I||(I=T.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7zM4 6v8h16V6z"})));var V;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},P.apply(this,arguments)}const N=e=>T.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),V||(V=T.createElement("path",{d:"M6 4v15h12V4zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2"})));var D;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},R.apply(this,arguments)}const L=e=>T.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),D||(D=T.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m0 2v15h8V4z"}))),M="desktop",U={desktop:{label:(0,e.__)("Desktop","qi-blocks"),icon:wp.element.createElement(O,null)},tablet:{label:(0,e.__)("Tablet","qi-blocks"),icon:wp.element.createElement(N,null)},mobile:{label:(0,e.__)("Mobile","qi-blocks"),icon:wp.element.createElement(L,null)}};let j=M;const z=()=>j,H=e=>{const t={...e},{blockAttributeKey:l,blockAttributes:n,setAttributes:a,repeater:o,repeaterItemIndex:r,repeaterItemKey:i,repeaterSetAttributes:s,repeaterGetAttributes:u}=t;return t.getAttributeValue=()=>{let e=n[l];return o&&(e=u(i,r)),e||!1},t.setAttributeValue=e=>{o?s(i,e,r):a({[l]:e})},wp.element.createElement("div",{className:"qodef-on-off-option"},wp.element.createElement(c.ToggleControl,{label:t.label,help:t.help,checked:t.getAttributeValue(),onChange:()=>t.setAttributeValue(!t.getAttributeValue())}))};H.defaultProps={label:(0,e.__)("Show","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const F=H,G=[{classSuffix:"desktop",label:(0,e.__)("Hide On Desktop","qi-blocks"),blockAttributeKey:"hideOnDesktop"},{classSuffix:"tablet",label:(0,e.__)("Hide On Tablet","qi-blocks"),blockAttributeKey:"hideOnTablet"},{classSuffix:"mobile",label:(0,e.__)("Hide On Mobile","qi-blocks"),blockAttributeKey:"hideOnMobile"}],K=e=>{const t=[];return G.map((l=>{const n="qodef-hide-on--"+l.classSuffix,a=e[l.blockAttributeKey];t.includes(n)&&!a?t.filter((function(e){return e!==n})):!t.includes(n)&&a&&t.push(n)})),t.join(" ")},$=e=>{const t={...e},{label:l,description:n,blockAttributeKeys:a,blockAttributes:o,setAttributes:r}=t;return wp.element.createElement("div",{className:"qodef-visibility-group-option"},l&&wp.element.createElement("label",{className:"qodef-option-label"},l),n&&wp.element.createElement("p",{className:"qodef-option-description"},n),a.map((e=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(F,{label:e.label,blockAttributeKey:e.blockAttributeKey,blockAttributes:o,setAttributes:r})))))};$.defaultProps={label:(0,e.__)("Visibility","qi-blocks"),description:(0,e.__)("Responsive visibility will take effect only on preview or live page, and not while editing in Gutenberg.","qi-blocks"),blockAttributeKeys:G,blockAttributes:{},setAttributes:()=>{}};const W=()=>({hideOnDesktop:{type:"boolean",default:!1},hideOnTablet:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1}}),Z=e=>{const{attrNameTemplate:t,attrName:l}=e,n=e=>de(t,l,e),a=!ye(e,"all")||(e.allowUnitControl??!0),o=ye(e,"all")&&e.disableDirections||[];let r={};return["Top","Right","Bottom","Left"].map((e=>{o.includes(e)||(r[n(e)]={type:"number",default:""},r[n(e+"Tablet")]={type:"number",default:""},r[n(e+"Mobile")]={type:"number",default:""},a&&(r[n(`${e}Decimal`)]={type:"number",default:""},r[n(`${e}DecimalTablet`)]={type:"number",default:""},r[n(`${e}DecimalMobile`)]={type:"number",default:""}))})),r[n("Unit")]={type:"string",default:"px"},r[n("UnitTablet")]={type:"string",default:"px"},r[n("UnitMobile")]={type:"string",default:"px"},r};Z.defaultProps={attrNameTemplate:"",attrName:"",allowUnitControl:!0};const Y=Z,X=e=>{const{blockAttributeKey:t}=e,l=!!ye(e,"all")&&(e.allowScreens??!1),n=!ye(e,"all")||(e.allowUnits??!0),a=ye(e,"all")&&e.optionType||"integer",o=ye(e,"all")&&e.defaultValue||"",r="decimal"===a?o:"";let i={};return"integer"===a&&(i[t]={type:"number",default:o}),i[de(t,"Unit")]={type:"string",default:"px"},(n||"decimal"===a)&&(i[de(t,"Decimal")]={type:"number",default:r}),l&&(i[de(t,"Tablet")]={type:"number",default:""},i[de(t,"Mobile")]={type:"number",default:""},i[de(t,"UnitTablet")]={type:"string",default:"px"},i[de(t,"UnitMobile")]={type:"string",default:"px"},n&&(i[de(t,"DecimalTablet")]={type:"number",default:""},i[de(t,"DecimalMobile")]={type:"number",default:""})),i};X.defaultProps={allowScreens:!1,allowUnits:!0};const J=X,Q=e=>{const t=ye(e,"all")&&e.attrNameTemplate||"",l=ye(e,"all")&&e.attrName||"Background",n=e=>de(t,l+e),a=J({blockAttributeKey:n("XPosition"),allowScreens:!0}),o=J({blockAttributeKey:n("YPosition"),allowScreens:!0}),r=J({blockAttributeKey:n("SizeWidth"),allowScreens:!0});return{[n("Image")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[n("ImageTablet")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[n("ImageMobile")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[n("Position")]:{type:"string",default:""},[n("PositionTablet")]:{type:"string",default:""},[n("PositionMobile")]:{type:"string",default:""},...a,...o,[n("Attachment")]:{type:"string",default:""},[n("Repeat")]:{type:"string",default:""},[n("RepeatTablet")]:{type:"string",default:""},[n("RepeatMobile")]:{type:"string",default:""},[n("Size")]:{type:"string",default:""},[n("SizeTablet")]:{type:"string",default:""},[n("SizeMobile")]:{type:"string",default:""},...r}};Q.defaultProps={attrNameTemplate:"",attrName:"Background"};const ee=Q,te=e=>{const t=ye(e,"all")&&e.attrNameTemplate||"",l=e=>de(t,e),n=!!ye(e,"all")&&(e.includeVideoBG??!1),a=ee({attrNameTemplate:t});let o={[l("BackgroundType")]:{type:"string",default:""},[l("BackgroundColor")]:{type:"string",default:""},...a,[l("BackgroundGradientColor1")]:{type:"string",default:""},[l("BackgroundGradientLocation1")]:{type:"number",default:""},[l("BackgroundGradientColor2")]:{type:"string",default:""},[l("BackgroundGradientLocation2")]:{type:"number",default:""},[l("BackgroundGradientType")]:{type:"string",default:"linear"},[l("BackgroundGradientTypeAngle")]:{type:"number",default:""},[l("BackgroundGradientTypePosition")]:{type:"string",default:"center center"}};if(n){const e={[l("BackgroundVideoLink")]:{type:"object",default:{id:null,url:"",alt:""}},[l("BackgroundVideoStartTime")]:{type:"number",default:""},[l("BackgroundVideoEndTime")]:{type:"number",default:""},[l("BackgroundVideoStartTime")]:{type:"number",default:""},[l("BackgroundVideoPlayOnce")]:{type:"boolean",default:!1},[l("BackgroundVideoPlayOnMobile")]:{type:"boolean",default:!1},[l("BackgroundVideoFallbackImage")]:{type:"object",default:{id:null,url:"",alt:""}}};o={...o,...e}}return o};te.defaultProps={attrNameTemplate:"",includeVideoBG:!1};const le=te,ne=e=>{const t=ye(e,"all")&&e.attrNameTemplate||"",l=ye(e,"all")&&e.attrName||"",n=ye(e,"all")&&e.defaultValue||"",a=e=>de(t,l+e);return{[a("")]:{type:"string",default:n},[a("Tablet")]:{type:"string",default:""},[a("Mobile")]:{type:"string",default:""}}};ne.defaultProps={attrNameTemplate:"",attrName:"",defaultValue:""};const ae=ne,oe=e=>{const t=ye(e,"all")&&e.attrNameTemplate||"",l=ye(e,"all")&&e.disableWidthDirections||[],n=!ye(e,"all")||(e.allowBorderColor??!0),a=!ye(e,"all")||(e.allowBorderRadius??!0),o=e=>de(t,e),r=Y({attrNameTemplate:t,attrName:"BorderWidth",disableDirections:l,allowUnitControl:!1}),i=n?{[o("BorderColor")]:{type:"string",default:""}}:{},s=a?Y({attrNameTemplate:t,attrName:"BorderRadius"}):{};return{[o("BorderStyle")]:{type:"string",default:""},...i,...r,...s}};oe.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0};const re=oe,ie=e=>{const t=ye(e,"all")&&e.attrNameTemplate||"",l=e=>de(t,e);return{[l("BoxShadowColor")]:{type:"string",default:""},[l("BoxShadowHorizontal")]:{type:"number",default:""},[l("BoxShadowVertical")]:{type:"number",default:""},[l("BoxShadowBlur")]:{type:"number",default:""},[l("BoxShadowSpread")]:{type:"number",default:""},[l("BoxShadowPosition")]:{type:"string",default:""}}};ie.defaultProps={attrNameTemplate:""};const se=ie,ce=e=>{const t=ye(e,"all")&&e.excludePanels||[],l=ye(e,"all")&&e.includePanels||[];let n=l&&l.length?l:pe();const a=e=>de("",e);t&&t.length&&t.forEach((e=>{n.splice(n.indexOf(e),1)}));let o={};const r=W();if(n.includes("advanced")){const e=Y({attrName:a("Margin")}),t=Y({attrName:a("Padding")});o={...o,...e,...t,[a("zIndex")]:{type:"number",default:""},[a("cssId")]:{type:"string",default:""},[a("cssClasses")]:{type:"string",default:""}}}if(n.includes("motion-effects")&&(o={...o,[a("EntranceAnimation")]:{type:"string",default:""},[a("EntranceAnimationDuration")]:{type:"string",default:"normal"},[a("EntranceAnimationDelay")]:{type:"number",default:""}}),n.includes("background")){const e=le({attrNameTemplate:"Advanced"});o={...o,...e}}if(n.includes("border")){const e=re({attrNameTemplate:"Advanced"}),t=se({attrNameTemplate:"Advanced"});o={...o,...e,...t}}if(n.includes("positioning")){const e=ae({attrName:a("BlockWidth")}),t=J({blockAttributeKey:a("BlockCustomWidth"),allowScreens:!0}),l=J({blockAttributeKey:a("PositionHorizontalOffset"),allowScreens:!0}),n=J({blockAttributeKey:a("PositionVerticalOffset"),allowScreens:!0});o={...o,...e,...t,[a("BlockPosition")]:{type:"string",default:""},[a("PositionHorizontalOrientation")]:{type:"string",default:"left"},...l,[a("PositionVerticalOrientation")]:{type:"string",default:"top"},...n}}return n.includes("responsive")&&(o={...o,...r}),o};ce.defaultProps={excludePanels:[],includePanels:[]};const ue=ce,pe=()=>["advanced","motion-effects","background","border","positioning","responsive"],me=(e,t="")=>{let l={};const n=((e,t="")=>{const l=(e,l="")=>de(t,e,l),n={};return void 0!==e[l("EntranceAnimation")]&&""!==e[l("EntranceAnimation")]&&(n["data-animation"]=e[l("EntranceAnimation")]),"custom"!==e[l("BlockWidth")]&&"custom"!==e[l("BlockWidthTablet")]&&"custom"!==e[l("BlockWidthMobile")]||["","Tablet","Mobile"].forEach((t=>{const a=e[l("BlockCustomWidth",t)],o=e[l("BlockCustomWidthDecimal",t)],r=e[l("BlockCustomWidthUnit",t)];ke(r)&&a?n["data-width"+(t?"-"+t.toLowerCase():"")]=parseInt(a,10)+r:_e(r)&&o&&(n["data-width"+(t?"-"+t.toLowerCase():"")]=parseFloat(o)+r)})),n})(e,t);return n&&(l={...l,...n}),l},be=(e,t="",l=[])=>{const n=e=>de(t,e);if(!e)return"";let a=[];return ye(e[n("cssId")],"all")&&a.push(e[n("cssId")]),l&&(a=[...a,...l]),a.join(" ")},de=(t,l,n)=>(t=t||"",l=l||"",n=n||"",E()((0,e.sprintf)("%s%s%s",t,l,n))),fe=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ge=e=>e&&M!==e?fe(e):"",he=(e,t)=>{let l=e.desktop;return"mobile"===t&&(l={...l,...e.tablet}),{...l,...e[t]}},ke=e=>["px"].includes(e),_e=e=>["em","rem","%","vw","vh"].includes(e),ve=(e,t="integer")=>{let l="";return 0===e||"0"===e?l=0:e&&(l=parseInt(e,10),"decimal"===t&&(l=parseFloat(e))),l},ye=(e,t="")=>{let l=void 0!==e&&""!==e;return"all"===t&&(l=void 0!==e&&e),l},we=e=>{let t="";return 0===e||"0"===e?t=0:e&&(t=e),t},Ae=(t,l=!0,n=[])=>{let a=[],o=[];if(t){switch(l&&(a=[{value:"",label:(0,e.__)("Default","qi-blocks")}]),t){case"no_yes":o=[{value:"no",label:(0,e.__)("No","qi-blocks")},{value:"yes",label:(0,e.__)("Yes","qi-blocks")}];break;case"yes_no":o=[{value:"yes",label:(0,e.__)("Yes","qi-blocks")},{value:"no",label:(0,e.__)("No","qi-blocks")}];break;case"link_target":o=[{value:"_self",label:(0,e.__)("Same Window","qi-blocks")},{value:"_blank",label:(0,e.__)("New Window","qi-blocks")}];break;case"column_gap":o=[{value:"huge",label:(0,e.__)("Huge (35)","qi-blocks")},{value:"large",label:(0,e.__)("Large (25)","qi-blocks")},{value:"medium",label:(0,e.__)("Medium (20)","qi-blocks")},{value:"normal",label:(0,e.__)("Normal (15)","qi-blocks")},{value:"small",label:(0,e.__)("Small (10)","qi-blocks")},{value:"tiny",label:(0,e.__)("Tiny (5)","qi-blocks")},{value:"no",label:(0,e.__)("No (0)","qi-blocks")}];break;case"columns_responsive":o=[{value:"predefined",label:(0,e.__)("Predefined","qi-blocks")},{value:"custom",label:(0,e.__)("Custom","qi-blocks")}];break;case"masonry_image_sizes":o=[{value:"square",label:(0,e.__)("Square","qi-blocks")},{value:"landscape",label:(0,e.__)("Landscape","qi-blocks")},{value:"portrait",label:(0,e.__)("Portrait","qi-blocks")},{value:"huge-square",label:(0,e.__)("Huge","qi-blocks")}];break;case"image_sizes":o=[{value:"full",label:(0,e.__)("Original","qi-blocks")},{value:"thumbnail",label:(0,e.__)("Thumbnail","qi-blocks")},{value:"medium",label:(0,e.__)("Medium","qi-blocks")},{value:"large",label:(0,e.__)("Large","qi-blocks")}];break;case"title_tag":o=[{value:"h1",label:(0,e.__)("H1","qi-blocks")},{value:"h2",label:(0,e.__)("H2","qi-blocks")},{value:"h3",label:(0,e.__)("H3","qi-blocks")},{value:"h4",label:(0,e.__)("H4","qi-blocks")},{value:"h5",label:(0,e.__)("H5","qi-blocks")},{value:"h6",label:(0,e.__)("H6","qi-blocks")},{value:"p",label:(0,e.__)("Paragraph","qi-blocks")}];break;case"font_weight":o=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"bold",label:(0,e.__)("Bold","qi-blocks")},{value:"100",label:(0,e.__)("Thin (100)","qi-blocks")},{value:"200",label:(0,e.__)("Extra Light (200)","qi-blocks")},{value:"300",label:(0,e.__)("Light (300)","qi-blocks")},{value:"400",label:(0,e.__)("Normal (400)","qi-blocks")},{value:"500",label:(0,e.__)("Medium (500)","qi-blocks")},{value:"600",label:(0,e.__)("Semi Bold (600)","qi-blocks")},{value:"700",label:(0,e.__)("Bold (700)","qi-blocks")},{value:"800",label:(0,e.__)("Extra Bold (800)","qi-blocks")},{value:"900",label:(0,e.__)("Black (900)","qi-blocks")}];break;case"text_transform":o=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"uppercase",label:(0,e.__)("Uppercase","qi-blocks")},{value:"lowercase",label:(0,e.__)("Lowercase","qi-blocks")},{value:"capitalize",label:(0,e.__)("Capitalize","qi-blocks")},{value:"normal",label:(0,e.__)("Normal","qi-blocks")}];break;case"font_style":o=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"italic",label:(0,e.__)("Italic","qi-blocks")},{value:"oblique",label:(0,e.__)("Oblique","qi-blocks")}];break;case"text_decoration":o=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"underline",label:(0,e.__)("Underline","qi-blocks")},{value:"overline",label:(0,e.__)("Overline","qi-blocks")},{value:"line-through",label:(0,e.__)("Line-Through","qi-blocks")}];break;case"background_position":o=[{value:"center center",label:(0,e.__)("Center Center","qi-blocks")},{value:"center left",label:(0,e.__)("Center Left","qi-blocks")},{value:"center right",label:(0,e.__)("Center Right","qi-blocks")},{value:"top center",label:(0,e.__)("Top Center","qi-blocks")},{value:"top left",label:(0,e.__)("Top Left","qi-blocks")},{value:"top right",label:(0,e.__)("Top Right","qi-blocks")},{value:"bottom center",label:(0,e.__)("Bottom Center","qi-blocks")},{value:"bottom left",label:(0,e.__)("Bottom Left","qi-blocks")},{value:"bottom right",label:(0,e.__)("Bottom Right","qi-blocks")}];break;case"background_attachment":o=[{value:"scroll",label:(0,e.__)("Scroll","qi-blocks")},{value:"fixed",label:(0,e.__)("Fixed","qi-blocks")}];break;case"background_repeat":o=[{value:"no-repeat",label:(0,e.__)("No-repeat","qi-blocks")},{value:"repeat",label:(0,e.__)("Repeat","qi-blocks")},{value:"repeat-x",label:(0,e.__)("Repeat-x","qi-blocks")},{value:"repeat-y",label:(0,e.__)("Repeat-y","qi-blocks")}];break;case"background_size":o=[{value:"auto",label:(0,e.__)("Auto","qi-blocks")},{value:"cover",label:(0,e.__)("Cover","qi-blocks")},{value:"contain",label:(0,e.__)("Contain","qi-blocks")}];break;case"horizontal_alignment":o=[{value:"left",label:(0,e.__)("Left","qi-blocks")},{value:"right",label:(0,e.__)("Right","qi-blocks")},{value:"center",label:(0,e.__)("Center","qi-blocks")}];break;case"vertical_alignment":o=[{value:"top",label:(0,e.__)("Top","qi-blocks")},{value:"middle",label:(0,e.__)("Middle","qi-blocks")},{value:"bottom",label:(0,e.__)("Bottom","qi-blocks")}];break;case"html_tag":o=[{value:"section",label:(0,e.__)("Section","qi-blocks")},{value:"div",label:(0,e.__)("Div","qi-blocks")},{value:"main",label:(0,e.__)("Main","qi-blocks")},{value:"article",label:(0,e.__)("Article","qi-blocks")},{value:"nav",label:(0,e.__)("Nav","qi-blocks")},{value:"footer",label:(0,e.__)("Footer","qi-blocks")},{value:"header",label:(0,e.__)("Header","qi-blocks")},{value:"aside",label:(0,e.__)("Aside","qi-blocks")}];break;case"appear_animation":o=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"from-bottom",label:(0,e.__)("From Bottom","qi-blocks")},{value:"from-top",label:(0,e.__)("From Top","qi-blocks")},{value:"from-left",label:(0,e.__)("From Left","qi-blocks")},{value:"from-right",label:(0,e.__)("From Right","qi-blocks")},{value:"fade",label:(0,e.__)("Fade in","qi-blocks")}];break;case"appear_delay":o=[{value:"random",label:(0,e.__)("Random","qi-blocks")},{value:"ms",label:(0,e.__)("Set ms","qi-blocks")}];break;case"responsive_screens":o=[{value:"1024",label:(0,e.__)("Below 1024px","qi-blocks")},{value:"768",label:(0,e.__)("Below 768px","qi-blocks")},{value:"680",label:(0,e.__)("Below 680px","qi-blocks")},{value:"480",label:(0,e.__)("Below 480px","qi-blocks")}];break;case"order_by":o=[{value:"date",label:(0,e.__)("Date","qi-blocks")},{value:"id",label:(0,e.__)("ID","qi-blocks")},{value:"title",label:(0,e.__)("Title","qi-blocks")}];break;case"order":o=[{value:"desc",label:(0,e.__)("Descending","qi-blocks")},{value:"asc",label:(0,e.__)("Ascending","qi-blocks")}];break;case"border_style":o=[{value:"solid",label:(0,e.__)("Solid","qi-blocks")},{value:"dashed",label:(0,e.__)("Dashed","qi-blocks")},{value:"dotted",label:(0,e.__)("Dotted","qi-blocks")}]}a=[...a,...o],n&&(a=[...a,...n])}return(0,C.applyFilters)("qi-blocks-filter-options-pool",a)},qe=e=>{const{unitType:t,unitValue:l,onChangeUnit:n}=e;if(e.units[t])return wp.element.createElement("ul",{className:"qodef-unit-control"},Object.entries(e.units[t]).map((([e,t],a)=>wp.element.createElement("li",{key:a},wp.element.createElement("a",{className:b()("qodef-unit",{"qodef--selected":("p"===e?"%":e)===l}),onClick:n,"data-unit":"p"===e?"%":e},t)))))};qe.defaultProps={units:{typography:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},measure:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},space:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),em:(0,e.__)("em","qi-blocks")},height:{px:(0,e.__)("px","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},xPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},yPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxAndPercent:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks")},pxAndEm:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks")},pxEmVw:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxPercentVh:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxPercentVw:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxEmRem:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks")}},unitValue:"",onChangeUnit:()=>{}};const xe=qe,Se=qiBlocksEditor.vars.defaultFontSize,Ee=qiBlocksEditor.vars.defaultLineHeight,Ce=e=>{const{convertorType:t,value:l,attributeKey:n}=e;let a=1;n.includes("FontSize")||n.includes("fontSize")?a=Se:(n.includes("LineHeight")||n.includes("lineHeight"))&&(a=Ee);const o=e=>Math.round(parseInt(e,10)/a*100)/100,r=e=>Math.round(parseInt(e,10)/a*100)/100,i=e=>Math.round(parseFloat(e)/a*100),s=e=>Math.round(100*parseInt(e,10)/window.innerWidth),c=e=>Math.round(100*parseInt(e,10)/window.innerHeight),u=e=>Math.round(parseFloat(e)*a),p=e=>Math.round(parseFloat(e)*a/100),m=e=>Math.round(window.innerWidth*parseInt(e,10)/100),b=e=>Math.round(window.innerHeight*parseInt(e,10)/100);let d="";if(""!==l&&""!==n&&""!==t)switch(t){case"pxToEm":d=o(l);break;case"pxToRem":d=r(l);break;case"pxToP":d=i(l);break;case"pxToVw":d=s(l);break;case"pxToVh":d=c(l);break;case"emToPx":d=u(l);break;case"emToRem":case"remToRem":case"vwToVh":case"vhToVw":d=l;break;case"emToP":case"remToP":d=(e=>100*parseFloat(e))(l);break;case"emToVw":case"remToVw":d=(e=>s(u(e)))(l);break;case"emToVh":case"remToVh":d=(e=>c(u(e)))(l);break;case"remToPx":d=(e=>Math.round(parseFloat(e)*a))(l);break;case"pToPx":d=p(l);break;case"pToEm":case"pToRem":d=(e=>parseFloat(e)/100)(l);break;case"pToVw":d=(e=>s(p(e)))(l);break;case"pToVh":d=(e=>c(p(e)))(l);break;case"vwToPx":d=m(l);break;case"vwToEm":d=(e=>o(m(e)))(l);break;case"vwToRem":d=(e=>r(m(e)))(l);break;case"vwToP":d=(e=>i(m(e)))(l);break;case"vhToPx":d=b(l);break;case"vhToEm":d=(e=>o(b(e)))(l);break;case"vhToRem":d=(e=>r(b(e)))(l);break;case"vhToP":d=(e=>i(b(e)))(l)}return d};Ce.defaultProps={convertorType:"pxToEm"};const Ie=Ce;class Te extends i.Component{constructor(){super(...arguments),this.state={screen:M,isScreenPickerOpen:!1,isMouseOver:!1}}onChangeScreen(e,t){const l=this;l.state.isScreenPickerOpen?(l.props.onChangeScreen(e),l.setState({screen:e,isScreenPickerOpen:!1}),j=e,!t&&l.changePreviewScreen(e),(0,C.doAction)("qi-blocks-action-screen-change",e)):t||l.setState({isScreenPickerOpen:!0}),window.addEventListener("click",(e=>{const t=document.querySelectorAll(".qodef-screens-option .qodef-screens.qodef--opened");t.length&&!t[0].contains(e.target)&&l.setState({isScreenPickerOpen:!1})}))}onOtherScreenChange(e){this.props.onChangeScreen(e),this.setState({screen:e})}componentDidMount(){const{instanceId:e}=this.props;(0,C.addAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`,this.onOtherScreenChange.bind(this))}componentWillUnmount(){const{instanceId:e}=this.props;(0,C.removeAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`)}changeScreenControls(e){z()!==e.previewScreen&&this.onChangeScreen(e.previewScreen,!0)}changePreviewScreen(e){if(e!==this.props.previewScreen){const t=(0,u.dispatch)("core/edit-post")||"",l=(0,u.dispatch)("core/edit-site")||"";let n;if(t){let{__experimentalSetPreviewDeviceType:e}=t;n=e}if(l){const{__experimentalSetPreviewDeviceType:e}=l;n=e}n&&n(fe(e))}}render(){const e={...this.props},t={...this.state},{label:l,screens:n,isWidgetsArea:a,previewScreen:o}=e;let r=!1;return(n.length<1||a)&&(r=!0),M!==o&&t.screen!==o&&this.onOtherScreenChange(o),this.changeScreenControls(e),wp.element.createElement("div",{className:"qodef-screens-option"},M!==t.screen&&wp.element.createElement("style",null,"\n\t\t\t\t\t\t\t.qodef-screens-option .qodef-screens.qodef--opened {\n\t\t\t\t\t\t\t\ttop: calc(-4px - 22px * "+Object.keys(n).indexOf(t.screen)+");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"),l&&wp.element.createElement("label",{className:"qodef-option-label"},l),!r&&wp.element.createElement("ul",{className:"qodef-screens "+(t.isScreenPickerOpen?"qodef--opened":"")},Object.entries(n).map((([e,l],a)=>a===Object.keys(n).indexOf(t.screen)||t.isScreenPickerOpen?wp.element.createElement("li",{className:"qodef-screen-item "+(e===t.screen?"qodef--selected":""),key:a},wp.element.createElement(c.Button,{className:"qodef-screen-item-button",onClick:()=>this.onChangeScreen(e),icon:l.icon,showTooltip:!1,label:l.label,"data-screen":e,onMouseEnter:()=>this.setState({isMouseOver:e}),onMouseLeave:()=>this.setState({isMouseOver:!1})}),e===t.isMouseOver&&wp.element.createElement("div",{className:"qodef-screen-item-tooltip"},l.label)):null))))}}Te.defaultProps={label:"",screens:U,isWidgetsArea:!1,previewScreen:"desktop",onChangeScreen:()=>{}};const Be=(0,u.withSelect)((e=>{let t="desktop";return e("core/edit-post")&&(t=e("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase()),e("core/edit-site")&&(t=e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{isWidgetsArea:e("core/edit-widgets")&&!e("core/edit-post"),previewScreen:t}}))((0,p.withInstanceId)(Te));class Oe extends i.Component{constructor(){super(...arguments),this.state={screen:z()}}getScreenLabelSuffix(e){const t=e||this.state.screen;return ge(t)}getAttributeValue(e,t=""){const{blockAttributes:l,allowScreens:n,repeater:a,repeaterItemIndex:o,repeaterItemKey:r,repeaterGetAttributes:i}=this.props;let s=e;n&&t&&(s=e+t);let c=l[s];return a&&(c=i({key:r,childKey:s},o)),we(c)}setAttributeValue(e,t,l=this.getScreenLabelSuffix()){const{setAttributes:n,allowScreens:a,repeater:o,repeaterItemIndex:r,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let c=e;a&&l&&(c=e+l),o?s({key:i,childKey:c},t,r):n({[c]:t})}onChangeUnitsValues(e,t,l,n){const a={...this.props},{rangeMax:o,rangeDecimalMax:r,allowUnitsConvertor:i}=a;let s=this.getAttributeValue(t);const c=s;n?(s=parseInt(s,10),s>o&&(s=o)):!n&&s>r&&(s=r),i?["emToRem","remToEm","vwToVh","vhToVw"].includes(l)||(this.setAttributeValue(e,Ie({convertorType:l,value:c,attributeKey:t}),""),this.setAttributeValue(t,"","")):(this.setAttributeValue(e,s,""),this.setAttributeValue(t,"",""))}render(){const e={...this.props},{label:t,unitType:l,blockAttributeKey:n,rangeMax:a,rangeMin:o,rangeStep:r,rangeDecimalMax:i,rangeDecimalMin:s,rangeDecimalStep:u,optionType:p,allowReset:m,allowScreens:b,allowUnits:d,repeater:f,repeaterItemKey:g,isSimpleRepeaterValue:h}=e,k=this.getScreenLabelSuffix();let _=f&&!h?g:n;const v=`${_}Decimal`,y=`${_}Unit`,w=`${_}Tablet`,A=`${v}Tablet`,q=`${y}Tablet`,x=`${_}Mobile`,S=`${v}Mobile`,E=`${y}Mobile`;return e.onChangeScreen=e=>{this.setState({screen:e})},e.onChangeUnit=e=>{e.preventDefault();const t=f?200:0,l=e.target.getAttribute("data-unit"),n=this.getAttributeValue(y,k)||"px";this.setAttributeValue(y,l),setTimeout((()=>{if(l!==n){const e=`${n}To${fe(l)}`;let t=_+k,a=v+k;"px"!==l&&(t=v+k,a=_+k),this.onChangeUnitsValues(t,a,e,"px"===l)}}),t)},e.onChange=t=>{this.setAttributeValue(_,t),e.setCustomEventOnChange()},e.onChangeDecimal=t=>{let l=0;"decimal"===p&&void 0===t&&(l=200),setTimeout((()=>{this.setAttributeValue(v,t),e.setCustomEventOnChange()}),l)},e.getPlaceholderValue=e=>{let t="";const l=this.getAttributeValue(_),n=this.getAttributeValue(v),a=this.getAttributeValue(w),o=this.getAttributeValue(A);return"Tablet"===k?e&&""===a?t=l:e||""!==o||(t=n):"Mobile"===k&&(e&&""===this.getAttributeValue(x)?t=""!==a?a:l:e||""!==this.getAttributeValue(S)||(t=""!==o?o:n)),t},wp.element.createElement(c.BaseControl,{className:"qodef-advanced-range-option"},wp.element.createElement("div",{className:"qodef-advanced-range-heading"},b?wp.element.createElement(Be,{label:t,onChangeScreen:e.onChangeScreen}):wp.element.createElement("label",{className:"qodef-option-label"},t),d&&wp.element.createElement(xe,{unitType:l,unitValue:this.getAttributeValue(y,k),onChangeUnit:e.onChangeUnit})),"desktop"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(ke(this.getAttributeValue(y))&&"decimal"!==p||!d&&"integer"===p)&&wp.element.createElement(c.RangeControl,{min:o,max:a,step:r,value:this.getAttributeValue(_),onChange:e.onChange,allowReset:m}),(_e(this.getAttributeValue(y))||!d&&"decimal"===p)&&wp.element.createElement(c.RangeControl,{min:s,max:i,step:u,value:this.getAttributeValue(v),onChange:e.onChangeDecimal,allowReset:m})),"tablet"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(ke(this.getAttributeValue(q))&&"decimal"!==p||!d&&"integer"===p)&&wp.element.createElement(c.RangeControl,{min:o,max:a,step:r,value:this.getAttributeValue(w),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:m}),(_e(this.getAttributeValue(q))||!d&&"decimal"===p)&&wp.element.createElement(c.RangeControl,{min:s,max:i,step:u,value:this.getAttributeValue(A),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:m})),"mobile"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(ke(this.getAttributeValue(E))&&"decimal"!==p||!d&&"integer"===p)&&wp.element.createElement(c.RangeControl,{min:o,max:a,step:r,value:this.getAttributeValue(x),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:m}),(_e(this.getAttributeValue(E))||!d&&"decimal"===p)&&wp.element.createElement(c.RangeControl,{min:s,max:i,step:u,value:this.getAttributeValue(S),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:m})))}}Oe.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),unitType:"typography",blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},rangeMax:300,rangeMin:0,rangeStep:1,rangeDecimalMax:10,rangeDecimalMin:0,rangeDecimalStep:.01,optionType:"integer",allowReset:!0,screens:U,allowScreens:!1,allowUnits:!0,allowUnitsConvertor:!1,setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Ve=Oe,Pe=wp.blob;var Ne=l(4300),De=l.n(Ne);class Re extends i.Component{constructor(){super(...arguments),this.state={screen:z(),imageId:"",externalImageIsSet:!1,imageSizeNotExist:!1}}getScreenLabelSuffix(){return ge(this.state.screen)}getAttributeValue(e=this.getScreenLabelSuffix()){const{blockAttributeKey:t,blockAttributes:l,allowScreens:n,repeater:a,repeaterItemIndex:o,repeaterItemKey:r,isSimpleRepeaterValue:i,repeaterGetAttributes:s}=this.props;let c=t;n&&e&&(c=t+e);let u=l[c];if(a){let l=i?null:t;n&&e&&(l=i?this.state.screen:c),u=s({key:r,childKey:l},o)||{}}return we(u)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:l,allowScreens:n,repeater:a,repeaterItemIndex:o,repeaterItemKey:r,isSimpleRepeaterValue:i,repeaterSetAttributes:s}=this.props,c=this.getScreenLabelSuffix();let u=t;if(n&&c&&(u=t+c),a){let l=i?null:t;n&&c&&(l=i?this.state.screen:u),s({key:r,childKey:l},e,o)}else l({[u]:e})}componentDidMount(){const{allowScreens:e,allowDefaultImage:t}=this.props,{url:l,id:n,defaultValueIsSet:a}=this.getAttributeValue("");if(l&&!l.includes(qiBlocksEditor.vars.siteURL))this.onSelectURL(l),this.setState({externalImageIsSet:!0});else{n&&(this.setState({imageId:n}),this.updateImageSizeOption(n)),!t||a||l||n||(this.setAttributeValue({id:null,url:qiBlocksEditor.vars.defaultImage,alt:qiBlocksEditor.vars.defaultImagePlaceholder,caption:"",width:1200,height:800,custom_image_size:"",html:""}),this.setState({defaultImageIsSet:!0}));const o=[""];e&&(o.push("Tablet"),o.push("Mobile")),o.map((e=>{const{url:t,id:l}=this.getAttributeValue(e);t&&(0,Pe.isBlobURL)(t)&&!l&&this.setAttributeValue({url:"",alt:"",caption:"",width:"",height:"",html:""})}))}}setSVGIcon=(e,t,l,n)=>{const a=new XMLHttpRequest;null!=a&&(a.open("GET",t,!0),a.onreadystatechange=()=>{4===a.readyState&&200===a.status&&this.setAttributeValue({id:e,url:t,alt:l,caption:n,html:De().sanitize(a.responseText,{USE_PROFILES:{svg:!0,svgFilters:!0}})})},a.send())};onSelectImage=({id:e,url:t,alt:l,caption:n,width:a,height:o})=>{t.includes(".svg")?this.setSVGIcon(e,t,l,n):this.setAttributeValue({id:e,url:t,alt:l,caption:n,width:a,height:o}),this.setState({imageId:e,externalImageIsSet:!1}),this.updateImageSizeOption(e)};updateImageSizeOption=e=>{if(this.props.allowImageSizes){const t=setInterval((()=>{(0,u.select)("core").getMedia(e)&&(clearInterval(t),this.forceUpdate())}),1e3)}};onSelectURL=e=>{e.includes(".svg")?this.setSVGIcon(null,e,"",""):this.setAttributeValue({id:null,url:e,alt:"",caption:"",width:"",height:"",html:""}),this.setState({externalImageIsSet:!1})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeImage=()=>{this.setAttributeValue({id:null,url:"",alt:"",caption:"",width:"",height:"",html:"",defaultValueIsSet:!!this.props.allowDefaultImage})};onImageSizeChange=e=>{const{customImageSizes:t}=this.props,l=(0,u.select)("core").getMedia(this.state.imageId);if(l){let n=e;t&&t.length>1&&(n=this.getImageURLbySize(e)||l.source_url),"custom"===e&&(n=l.source_url),this.setAttributeValue({id:l.id,url:n,alt:l.alt_text||"",caption:l.caption&&l.caption.raw||"",custom_image_size:e})}};getImageURLbySize(e){const t=this.getAttributeValue();let l="";if(t){const n=(0,u.select)("core").getMedia(t.id);if(!n)return"";const a=n.media_details.sizes;if(a&&0===Object.keys(a).length)this.setState({imageSizeNotExist:!0});else{this.setState({imageSizeNotExist:!1});for(const t in a)if(t.includes("qi_blocks_image_size_"+e.replace("-","_"))){l=a[t].source_url;break}}["","custom"].includes(e)&&this.setState({imageSizeNotExist:!1})}return l}getImageSizes(){const{imageSizes:t,customImageSizes:l}=this.props,n=this.getAttributeValue();let a=[];if(n){const o=(0,u.select)("core").getMedia(n.id);if(!o)return[];const r=o.media_details.sizes;if(r&&0===Object.keys(r).length&&a.push({label:(0,e.__)("Default","qi-blocks"),value:""}),l&&l.length>1)l.map((e=>{a.push({label:e.label,value:e.value})}));else for(const e in r){const l=r[e],n=t.find((t=>t.slug===e));n&&a.push({label:n.name,value:l.source_url})}}return a}render(){const t={...this.props},l={...this.state},{label:n,help:a,noticeUI:o,allowedTypes:r,allowScreens:i,allowImageSizes:u}=t,p=this.getAttributeValue(),{id:m,url:b,alt:d,html:f}=p;t.onChangeScreen=e=>{this.setState({screen:e}),this.updateImageSizeOption(m)};let g=["qodef-image-option"];return b&&b.includes(".svg")&&g.push("qodef--svg"),wp.element.createElement(c.BaseControl,{className:g.join(" ")},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},i?wp.element.createElement(Be,{label:n,onChangeScreen:t.onChangeScreen}):wp.element.createElement(wp.element.Fragment,null,n&&wp.element.createElement("label",{className:"qodef-option-label"},n))),a&&wp.element.createElement("p",{className:"qodef-option-description"},a),b?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"qodef-image-option-inner"},(0,Pe.isBlobURL)(b)&&wp.element.createElement("div",{className:"qodef-image-option-spinner"},wp.element.createElement(c.Spinner,null)),wp.element.createElement(s.MediaUploadCheck,null,wp.element.createElement(s.MediaUpload,{allowedTypes:r,value:m,onSelect:this.onSelectImage,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("img",{src:b,alt:d}),wp.element.createElement("div",{className:"qodef-image-option-actions"},wp.element.createElement(c.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Image","qi-blocks"),onClick:t}),wp.element.createElement(c.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Image","qi-blocks"),onClick:this.removeImage})))}))),l.imageSizeNotExist&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("The Image has no predefined sizes, please set a custom image size.","qi-blocks")),l.externalImageIsSet&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("External image URL is set, please upload your image for this Element.","qi-blocks"))):wp.element.createElement(s.MediaPlaceholder,{allowedTypes:r,icon:"format-image",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:o}),u&&m&&!f&&wp.element.createElement("div",{className:"qodef-image-option-sizes"},wp.element.createElement(c.SelectControl,{label:(0,e.__)("Image Size","qi-blocks"),options:this.getImageSizes(),onChange:this.onImageSizeChange,value:void 0!==p.custom_image_size?p.custom_image_size:b})))}}Re.defaultProps={label:(0,e.__)("Image","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowedTypes:["image"],allowScreens:!1,allowDefaultImage:!1,allowImageSizes:!1,customImageSizes:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!0,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Le=(0,u.withSelect)((e=>({imageSizes:e("core/block-editor")?.getSettings()?.imageSizes})))((0,c.withNotices)(Re));class Me extends i.Component{constructor(){super(...arguments),this.state={isPickerVisible:!1}}getAttributeValue(){const{defaultColor:e,blockAttributeKey:t,blockAttributes:l,repeater:n,repeaterItemIndex:a,repeaterItemKey:o,isSimpleRepeaterValue:r,repeaterGetAttributes:i}=this.props;let s=l[t];return n&&(s=i({key:o,childKey:r?"":t},a)),s||e}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:l,repeater:n,repeaterItemIndex:a,repeaterItemKey:o,isSimpleRepeaterValue:r,repeaterSetAttributes:i}=this.props;n?i({key:o,childKey:r?"":t},e,a):l({[t]:e})}onChange=e=>{const{r:t,g:l,b:n,a}=e.rgb;let o="rgba("+[t,l,n,a].join(",")+")";this.props.setHEXValue&&(o=e.hex),this.setState({colorReset:!0}),this.setAttributeValue(o)};onClick=e=>{e.preventDefault();const t=this;t.setState({isPickerVisible:!this.state.isPickerVisible}),window.addEventListener("click",(e=>{const l=document.querySelectorAll(".qodef-color-option.qodef--opened");l.length&&l.forEach((l=>{l.contains(e.target)||t.setState({isPickerVisible:!1})}))}))};onResetColor=e=>{e.preventDefault(),this.setState({isPickerVisible:!this.state.isPickerVisible}),this.setAttributeValue("")};render(){const{label:t,popup:l}=this.props;return wp.element.createElement(c.BaseControl,{className:"qodef-color-option "+(this.state.isPickerVisible?"qodef--opened":"")},wp.element.createElement("div",{className:"qodef-control-heading"},t&&wp.element.createElement("label",{className:"qodef-option-label"},t),wp.element.createElement(c.Button,{onClick:this.onClick,className:"qodef-color-indicator-button"},wp.element.createElement(c.ColorIndicator,{colorValue:this.getAttributeValue(),className:"qodef-color-indicator"}))),this.state.isPickerVisible&&wp.element.createElement("div",{className:`qodef-color-picker-wrapper ${l&&"qodef--popup"}`},wp.element.createElement(c.ColorPicker,{color:this.getAttributeValue(),onChangeComplete:this.onChange,disableAlpha:this.props.setHEXValue}),wp.element.createElement(c.Button,{onClick:this.onResetColor,isSecondary:!0},(0,e.__)("Reset Color","qi-blocks"))))}}Me.defaultProps={label:(0,e.__)("Color","qi-blocks"),defaultColor:"#000",setHEXValue:!1,blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},popup:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Ue=Me;class je extends i.Component{getAttributeValue(){const{blockAttributeKey:e,blockAttributes:t,repeater:l,repeaterItemIndex:n,repeaterItemKey:a,repeaterGetAttributes:o}=this.props;let r=t[e];return l&&(r=o({key:a},n)||{}),we(r)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:l,repeater:n,repeaterItemIndex:a,repeaterItemKey:o,repeaterSetAttributes:r}=this.props;n?r({key:o},e,a):l({[t]:e})}componentDidMount(){const{url:e,id:t}=this.getAttributeValue();e&&(0,Pe.isBlobURL)(e)&&!t&&this.setAttributeValue({url:"",alt:""})}onSelectVideo=({id:e,url:t,alt:l})=>{this.setAttributeValue({id:e,url:t,alt:l})};onSelectURL=e=>{this.setAttributeValue({id:null,url:e,alt:""})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeVideo=()=>{this.setAttributeValue({id:null,url:"",alt:""})};render(){const t={...this.props},{label:l,description:n,noticeUI:a}=t,{id:o,url:r}=this.getAttributeValue();return wp.element.createElement(c.BaseControl,{className:"qodef-video-option"},l&&wp.element.createElement("label",{className:"qodef-option-label"},l),n&&wp.element.createElement("p",{className:"qodef-option-description"},n),r?wp.element.createElement("div",{className:"qodef-video-option-inner"},(0,Pe.isBlobURL)(r)&&wp.element.createElement("div",{className:"qodef-video-option-spinner"},wp.element.createElement(c.Spinner,null)),wp.element.createElement(s.MediaUploadCheck,null,wp.element.createElement(s.MediaUpload,{allowedTypes:["video"],value:o,onSelect:this.onSelectVideo,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("video",{src:r}),wp.element.createElement("div",{className:"qodef-video-option-actions"},wp.element.createElement(c.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Video","qi-blocks"),onClick:t}),wp.element.createElement(c.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Video","qi-blocks"),onClick:this.removeVideo})))}))):wp.element.createElement(s.MediaPlaceholder,{allowedTypes:["video"],icon:"format-video",onSelect:this.onSelectVideo,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:a}))}}je.defaultProps={label:(0,e.__)("Video","qi-blocks"),description:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const ze=(0,c.withNotices)(je);class He extends i.Component{constructor(){super(...arguments),this.state={screen:z()}}getScreenLabelSuffix(){return ge(this.state.screen)}getAttributeValue(e,t=this.getScreenLabelSuffix()){const{blockAttributes:l,repeater:n,repeaterItemIndex:a,repeaterItemKey:o,repeaterGetAttributes:r}=this.props;let i=e;t&&(i=e+t);let s=l[i];return n&&(s=r({key:o,childKey:i},a)),we(s)}setAttributeValue(e,t,l=this.getScreenLabelSuffix()){const{setAttributes:n,setCustomEventOnChange:a,repeater:o,repeaterItemIndex:r,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let c=e;l&&(c=e+l),o?s({key:i,childKey:c},t,r):n({[c]:t}),a(t)}render(){const e={...this.props},{label:t,blockAttributeKey:l,selectOptions:n}=e;return e.onChangeScreen=e=>{this.setState({screen:e})},wp.element.createElement(c.BaseControl,{className:"qodef-advanced-select-option"},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},wp.element.createElement(Be,{label:t,onChangeScreen:e.onChangeScreen})),wp.element.createElement(c.SelectControl,{value:this.getAttributeValue(l),options:n,onChange:e=>this.setAttributeValue(l,e)}))}}He.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},selectOptions:{},setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Fe=He,Ge=t=>{const l={...t},{attrNameTemplate:n,attrName:a,blockAttributes:o,setAttributes:r,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m,previewScreen:b}=l,d=a||"Background",f=e=>de(n,d+e);l.getAttributeValue=(e,t="")=>{let l=e;t&&(l=e+t);let n=o[l];return i&&(n=m({key:u,childKey:l},s)),we(n)},l.setAttributeValue=(e,t,l="")=>{let n=e;l&&(n=e+l),i?p({key:u,childKey:n},t,s):r({[n]:t})};let g=ge(b||z());return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Le,{label:(0,e.__)(`${d} Image`,"qi-blocks"),blockAttributeKey:f("Image"),blockAttributes:o,setAttributes:r,allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,isSimpleRepeaterValue:!1,repeaterSetAttributes:p,repeaterGetAttributes:m}),l.getAttributeValue(f("Image"))&&l.getAttributeValue(f("Image")).url&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Fe,{label:(0,e.__)(`${d} Position`,"qi-blocks"),blockAttributeKey:f("Position"),blockAttributes:o,setAttributes:r,selectOptions:Ae("background_position",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),(""===g&&"custom"===l.getAttributeValue(f("Position"))||""!==g&&"custom"===l.getAttributeValue(f("Position"),g)||""!==g&&"custom"===l.getAttributeValue(f("Position"))&&["","custom"].includes(l.getAttributeValue(f("Position"),"Tablet"))&&""===l.getAttributeValue(f("Position"),g))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ve,{label:(0,e.__)("X Position","qi-blocks"),blockAttributeKey:f("XPosition"),setAttributes:r,blockAttributes:o,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"xPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(Ve,{label:(0,e.__)("Y Position","qi-blocks"),blockAttributeKey:f("YPosition"),setAttributes:r,blockAttributes:o,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"yPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m})),wp.element.createElement(c.SelectControl,{label:(0,e.__)(`${d} Attachment`,"qi-blocks"),value:l.getAttributeValue(f("Attachment")),options:Ae("background_attachment")||"",onChange:e=>l.setAttributeValue(f("Attachment"),e)}),wp.element.createElement(Fe,{label:(0,e.__)(`${d} Repeat`,"qi-blocks"),blockAttributeKey:f("Repeat"),blockAttributes:o,setAttributes:r,selectOptions:Ae("background_repeat"),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(Fe,{label:(0,e.__)(`${d} Size`,"qi-blocks"),blockAttributeKey:f("Size"),blockAttributes:o,setAttributes:r,selectOptions:Ae("background_size",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),"custom"===l.getAttributeValue(f("Size"),g)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ve,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:f("SizeWidth"),setAttributes:r,blockAttributes:o,rangeMax:1e3,rangeMin:0,rangeDecimalMax:100,rangeDecimalMin:0,unitType:"xPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}))))};Ge.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const Ke=Ge,$e=t=>{const l={...t},{attrNameTemplate:n,blockAttributes:a,setAttributes:o,includeVideoBG:r,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m,previewScreen:b}=l,d=e=>de(n,e);l.getAttributeValue=(e,t="")=>{let l=a[e];if(i){let n=e;t&&(n=e+t),l=m({key:u,childKey:n},s)}return we(l)},l.setAttributeValue=(e,t,l="")=>{if(i){let n=e;l&&(n=e+l),p({key:u,childKey:n},t,s)}else o({[e+l]:t})};const f=[{label:(0,e.__)("Classic","qi-blocks"),value:""},{label:(0,e.__)("Gradient","qi-blocks"),value:"gradient"}];return r&&f.push({label:(0,e.__)("Video","qi-blocks"),value:"video"}),wp.element.createElement("div",{className:"qodef-background-panel"},wp.element.createElement(c.SelectControl,{label:(0,e.__)("Background Type","qi-blocks"),value:l.getAttributeValue(d("BackgroundType")),options:f,onChange:e=>l.setAttributeValue(d("BackgroundType"),e)}),""===l.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ue,{label:(0,e.__)("Background Color","qi-blocks"),blockAttributeKey:d("BackgroundColor"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(Ke,{attrNameTemplate:n,blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m,previewScreen:b})),"gradient"===l.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ue,{label:(0,e.__)("First Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor1"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:l.getAttributeValue(d("BackgroundGradientLocation1")),onChange:e=>l.setAttributeValue(d("BackgroundGradientLocation1"),e),min:0,max:100,step:1}),wp.element.createElement(Ue,{label:(0,e.__)("Second Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor2"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:l.getAttributeValue(d("BackgroundGradientLocation2")),onChange:e=>l.setAttributeValue(d("BackgroundGradientLocation2"),e),min:0,max:100,step:1}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("Gradient Type","qi-blocks"),value:l.getAttributeValue(d("BackgroundGradientType")),options:[{label:(0,e.__)("Linear","qi-blocks"),value:"linear"},{label:(0,e.__)("Radial","qi-blocks"),value:"radial"}],onChange:e=>l.setAttributeValue(d("BackgroundGradientType"),e)}),"linear"===l.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(c.RangeControl,{label:(0,e.__)("Angle","qi-blocks"),value:l.getAttributeValue(d("BackgroundGradientTypeAngle")),onChange:e=>l.setAttributeValue(d("BackgroundGradientTypeAngle"),e),min:0,max:360,step:1}),"radial"===l.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(c.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:l.getAttributeValue(d("BackgroundGradientTypePosition")),options:Ae("background_position",!1),onChange:e=>l.setAttributeValue(d("BackgroundGradientTypePosition"),e)})),"video"===l.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(ze,{label:(0,e.__)("Video Link","qi-blocks"),description:(0,e.__)("Self hosted video file (mp4 is recommended)","qi-blocks"),blockAttributeKey:d("BackgroundVideoLink"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(c.TextControl,{type:"number",label:(0,e.__)("Start Time","qi-blocks"),help:(0,e.__)("Specify a start time (in seconds)","qi-blocks"),value:l.getAttributeValue(d("BackgroundVideoStartTime")),onChange:e=>l.setAttributeValue(d("BackgroundVideoStartTime"),ve(e))}),wp.element.createElement(c.TextControl,{type:"number",label:(0,e.__)("End Time","qi-blocks"),help:(0,e.__)("Specify an end time (in seconds)","qi-blocks"),value:l.getAttributeValue(d("BackgroundVideoEndTime")),onChange:e=>l.setAttributeValue(d("BackgroundVideoEndTime"),ve(e))}),wp.element.createElement(F,{label:(0,e.__)("Play Once","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnce"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(F,{label:(0,e.__)("Play On Mobile","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnMobile"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(Le,{label:(0,e.__)("Background Fallback","qi-blocks"),blockAttributeKey:d("BackgroundVideoFallbackImage"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m})))};$e.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},includeVideoBG:!1,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const We=$e,Ze=e=>{const{blockAttributes:t}=e,l=ye(e,"all")&&e.attrNameTemplate||"",n=ye(e,"all")&&e.attrName||"Background",a=(e,t)=>de(l,n+e,t);let o={},r={},i={};return t[a("Attachment")]&&(o.backgroundAttachment=t[a("Attachment")]),Object.entries(U).map((([e])=>{let l=ge(e),n={};if(t[a("Image",l)]&&t[a("Image",l)].url&&(n.backgroundImage=`url(${t[a("Image",l)].url})`),t[a("Repeat",l)]&&(n.backgroundRepeat=t[a("Repeat",l)]),"custom"===t[a("Position",l)]){let e="",o="";(t[a("XPosition",l)]||t[a("XPositionDecimal",l)])&&(ke(t[a("XPositionUnit",l)])&&t[a("XPosition",l)]?e=parseInt(t[a("XPosition",l)],10)+t[a("XPositionUnit",l)]:_e(t[a("XPositionUnit",l)])&&t[a("XPositionDecimal",l)]&&(e=parseFloat(t[a("XPositionDecimal",l)])+t[a("XPositionUnit",l)])),(t[a("YPosition",l)]||t[a("YPositionDecimal",l)])&&(ke(t[a("YPositionUnit",l)])&&t[a("YPosition",l)]?o=parseInt(t[a("YPosition",l)],10)+t[a("YPositionUnit",l)]:_e(t[a("YPositionUnit",l)])&&t[a("YPositionDecimal",l)]&&(o=parseFloat(t[a("YPositionDecimal",l)])+t[a("YPositionUnit",l)])),""===e&&""===o||(n.backgroundPosition=e+" "+o)}else t[a("Position",l)]&&(n.backgroundPosition=t[a("Position",l)]);"custom"===t[a("Size",l)]?(t[a("SizeWidth",l)]||t[a("SizeWidthDecimal",l)])&&(ke(t[a("SizeWidthUnit",l)])&&t[a("SizeWidth",l)]?n.backgroundSize=parseInt(t[a("SizeWidth",l)],10)+t[a("SizeWidthUnit",l)]+" auto":_e(t[a("SizeWidthUnit",l)])&&t[a("SizeWidthDecimal",l)]&&(n.backgroundSize=parseFloat(t[a("SizeWidthDecimal",l)])+t[a("SizeWidthUnit",l)]+" auto")):t[a("Size",l)]&&(n.backgroundSize=t[a("Size",l)]),Object.keys(n).length>0&&Object.entries(n).map((([t,l])=>{switch(e){case"desktop":o[t]=l;break;case"tablet":r[t]=l;break;case"mobile":i[t]=l}}))})),{desktop:o,tablet:r,mobile:i}};Ze.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{}};const Ye=Ze,Xe=e=>{const{blockAttributes:t}=e,l=ye(e,"all")&&e.attrNameTemplate||"",n=(e,t)=>de(l,e,t),o=t[n("BackgroundType")]||"";let r={},i={},s={};if("gradient"===o){let e={type:"linear",position:"",color_1:"",location_1:"",color_2:"",location_2:""};t[n("BackgroundGradientColor1")]&&(e.color_1=t[n("BackgroundGradientColor1")]),ye(t[n("BackgroundGradientLocation1")])&&(e.location_1=ve(t[n("BackgroundGradientLocation1")])+"%"),t[n("BackgroundGradientColor2")]&&(e.color_2=t[n("BackgroundGradientColor2")]),ye(t[n("BackgroundGradientLocation2")])&&(e.location_2=ve(t[n("BackgroundGradientLocation2")])+"%"),t[n("BackgroundGradientType")]&&(e.type=t[n("BackgroundGradientType")]),"linear"===e.type&&""!==t[n("BackgroundGradientTypeAngle")]?e.position=ve(t[n("BackgroundGradientTypeAngle")])+"deg":"radial"===e.type&&t[n("BackgroundGradientTypePosition")]&&(e.position="at "+t[n("BackgroundGradientTypePosition")]),e.type&&e.position&&e.color_1&&e.location_1&&e.color_2&&e.location_2?(r.backgroundColor="transparent",r.backgroundImage=`${e.type}-gradient(${e.position}, ${e.color_1} ${e.location_1}, ${e.color_2} ${e.location_2})`):e.color_1&&(r.backgroundColor=e.color_1)}else"video"===o?!t[n("BackgroundVideoPlayOnMobile")]&&t[n("BackgroundVideoFallbackImage")]&&t[n("BackgroundVideoFallbackImage")].url&&(i.backgroundImage=`url(${t[n("BackgroundVideoFallbackImage")].url})`,i.backgroundPosition="center",i.backgroundSize="cover"):(t[n("BackgroundColor")]&&(r.backgroundColor=t[n("BackgroundColor")]),s=Ye({attrNameTemplate:l,blockAttributes:t}));return a()({desktop:r,tablet:{},mobile:i},s)};Xe.defaultProps={attrNameTemplate:"",blockAttributes:{}};const Je=Xe;class Qe extends i.Component{constructor(){super(...arguments),this.state={screen:z(),linkedInputs:!1}}getScreenLabelSuffix(e){const t=e||this.state.screen;return ge(t)}getAttributeValue(e,t=""){const{blockAttributes:l,allowScreens:n,repeater:a,repeaterItemIndex:o,repeaterItemKey:r,repeaterGetAttributes:i}=this.props;let s=e;n&&t&&(s=e+t);let c=l[s];return a&&(c=i({key:r,childKey:s},o)),we(c)}setAttributeValue(e,t,l=""){const{setAttributes:n,allowScreens:a,repeater:o,repeaterItemIndex:r,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let c=e;a&&l&&(c=e+l),o?s({key:i,childKey:c},t,r):n({[c]:t})}render(){const t={...this.props},{label:l,allowScreens:n,rangeMax:a,rangeMin:o,rangeStep:r,rangeDecimalMax:i,rangeDecimalMin:s,rangeDecimalStep:u,repeater:p}=t,m=e=>de(t.attrNameTemplate,t.attrName,e),b=this.getScreenLabelSuffix(),d=m(),f=m("Unit"+b),g=["Top","Right","Bottom","Left"],h=()=>{const e=this.getAttributeValue(f)||"px";return ke(e)},k="margin"===t.attrName.toLowerCase()||t.allowNegativeValues?-1*(h()?a:i):h()?o:s;return t.onChange=(e,t)=>{h()?this.setAttributeValue(m(t),ve(e),b):this.setAttributeValue(m(`${t}Decimal`),ve(e,"decimal"),b)},t.getValue=e=>{let t;return t=h()?""!==this.getAttributeValue(m(e),b)?parseInt(this.getAttributeValue(m(e),b),10):"":""!==this.getAttributeValue(m(`${e}Decimal`),b)?parseFloat(this.getAttributeValue(m(`${e}Decimal`),b)):"",t},t.getPlaceholderValue=e=>{let t="";return"Tablet"===b?t=h()?""!==this.getAttributeValue(m(e))?parseInt(this.getAttributeValue(m(e)),10):"":""!==this.getAttributeValue(m(`${e}Decimal`))?parseFloat(this.getAttributeValue(m(`${e}Decimal`))):"":"Mobile"===b&&(h()?""!==this.getAttributeValue(m(e),"Tablet")?t=parseInt(this.getAttributeValue(m(e),"Tablet"),10):""!==this.getAttributeValue(m(e))&&(t=parseInt(this.getAttributeValue(m(e)),10)):""!==this.getAttributeValue(m(`${e}Decimal`),"Tablet")?t=parseInt(this.getAttributeValue(m(`${e}Decimal`),"Tablet"),10):""!==this.getAttributeValue(m(`${e}Decimal`))&&(t=parseInt(this.getAttributeValue(m(`${e}Decimal`)),10))),t},t.getRangeValue=()=>{let e="";return[...g].some((l=>{t.disableDirections.includes(l)||(e=t.getValue(l))})),e},t.onRangeChange=e=>{[...g].map((l=>{t.disableDirections.length>0&&t.disableDirections.includes(l)?t.onChange("",l):t.onChange(e,l)}))},t.onChangeScreen=e=>{this.setState({screen:e})},t.onLinkInputs=e=>{e.preventDefault(),this.state.linkedInputs||[...g].map((e=>{t.disableDirections.length>0&&t.disableDirections.includes(e)?t.onChange("",e):t.onChange(t.getValue("Top"),e)})),this.setState({linkedInputs:!this.state.linkedInputs})},t.onChangeUnit=e=>{e.preventDefault();const t=p?200:0,l=e.target.getAttribute("data-unit"),n=this.getAttributeValue(f)||"px";this.setAttributeValue(f,l),setTimeout((()=>{l!==n&&[...g].map((e=>{const t=d+e,a=`${t}Decimal`;let o=t+b,r=a+b;"px"!==l&&(o=a+b),"px"===n&&(r=t+b,this.setAttributeValue(r,"")),this.setAttributeValue(o,this.getAttributeValue(r))}))}),t)},wp.element.createElement(c.BaseControl,{className:"qodef-input-control"},wp.element.createElement("div",{className:"qodef-control-heading"},n?wp.element.createElement("div",{className:"qodef-input-control-screens"},wp.element.createElement(Be,{label:l,onChangeScreen:t.onChangeScreen})):wp.element.createElement("label",{className:"qodef-option-label"},l),t.allowUnitControl&&wp.element.createElement(xe,{unitType:t.unitType,unitValue:this.getAttributeValue(f),onChangeUnit:t.onChangeUnit}),t.allowLinkedControl&&wp.element.createElement(c.Button,{icon:this.state.linkedInputs?"editor-unlink":"admin-links",onClick:t.onLinkInputs,className:"qodef-link-inputs-button "+(this.state.linkedInputs?"linked":"unlinked")})),this.state.linkedInputs?wp.element.createElement(c.RangeControl,{min:o,max:h()?a:i,step:h()?r:u,onChange:t.onRangeChange,allowReset:!0,value:t.getRangeValue()}):wp.element.createElement("ul",null,[...g].map(((l,n)=>wp.element.createElement("li",{className:"qodef-input-control-item",key:n},t.disableDirections.length>0&&t.disableDirections.includes(l)?wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("label",null,(0,e.__)(l,"qi-blocks")),wp.element.createElement("input",{className:"components-text-control__input",type:"text",disabled:!0,value:(0,e.__)("auto","qi-blocks")})):wp.element.createElement(c.TextControl,{type:"number",value:t.getValue(l),placeholder:t.getPlaceholderValue(l),onChange:e=>t.onChange(e,l),label:(0,e.__)(l,"qi-blocks"),min:k,max:h()?a:i,step:h()?r:u}))))))}}Qe.defaultProps={label:"",attrNameTemplate:"",attrName:"",blockAttributes:{},setAttributes:()=>{},unitType:"space",allowScreens:!0,allowNegativeValues:!1,disableDirections:[],allowUnitControl:!0,allowLinkedControl:!0,rangeMax:600,rangeMin:0,rangeStep:1,rangeDecimalMax:100,rangeDecimalMin:0,rangeDecimalStep:.01,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const et=Qe,tt=t=>{const l={...t},{attrNameTemplate:n,blockAttributes:a,setAttributes:o,disableWidthDirections:r,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}=l,b=e=>de(n,e);return l.getAttributeValue=(e,t="")=>{let l=a[e];if(i){let n=e;t&&(n=e+t),l=m({key:u,childKey:n},s)}return we(l)},l.setAttributeValue=(e,t,l="")=>{if(i){let n=e;l&&(n=e+l),p({key:u,childKey:n},t,s)}else o({[e+l]:t})},wp.element.createElement("div",{className:"qodef-border-panel"},wp.element.createElement(c.SelectControl,{label:(0,e.__)("Border Type","qi-blocks"),value:l.getAttributeValue(b("BorderStyle")),options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("None","qi-blocks"),value:"none"},{label:(0,e.__)("Double","qi-blocks"),value:"double"},{label:(0,e.__)("Groove","qi-blocks"),value:"groove"},...Ae("border_style",!1)],onChange:e=>l.setAttributeValue(b("BorderStyle"),e)}),!["","none"].includes(a[b("BorderStyle")])&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(et,{label:(0,e.__)("Border Width","qi-blocks"),attrName:b("BorderWidth"),blockAttributes:a,setAttributes:o,allowUnitControl:!1,disableDirections:r,rangeMax:20,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}),(l.allowBorderColor??!0)&&wp.element.createElement(Ue,{label:(0,e.__)("Border Color","qi-blocks"),blockAttributeKey:b("BorderColor"),blockAttributes:a,setAttributes:o,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m})),(l.allowBorderRadius??!0)&&wp.element.createElement(et,{label:(0,e.__)("Border Radius","qi-blocks"),attrName:b("BorderRadius"),blockAttributes:a,setAttributes:o,unitType:"pxAndPercent",repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:p,repeaterGetAttributes:m}))};tt.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},allowBorderColor:!0,allowBorderRadius:!0,disableWidthDirections:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const lt=tt,nt=e=>{const t=t=>de(e.attrNameTemplate,e.attrName,t),l=ye(e,"all")&&void 0!==e.disableDirections&&e.disableDirections.length>0?e.disableDirections:[],n=ye(e,"all")&&void 0!==e.isImportant&&e.isImportant?" !important":"",{blockAttributes:a}=e,o=["Top","Right","Bottom","Left"];let r={},i={},s={};return Object.entries(U).map((([c])=>{const u=ge(c),p=t("Unit"+u),m="p"===a[p]?"%":a[p]||"px";[...o].map(((p,b)=>{const d=a[t(p+u)],f=a[t(`${p}Decimal`+u)];if(ye(d)||ye(f)){let t;const a=e.attrName?e.attrName.toLowerCase():"";if(a.includes("border")){if(a.includes("width"))t=`border${p}Width`;else if(a.includes("radius")){let e,l,n;l=b%2?o[b-1]:p,n=b%2?p:o[o.length-b-1],e=`${l}${n}`,t=`border${e}Radius`}}else t=e.attrName?`${a}${p}`:p.toLowerCase();let u="";if(ke(m)&&""!==d?u=l.length>0&&l.includes(p)?"":parseInt(d,10)+m:_e(m)&&""!==f&&(u=l.length>0&&l.includes(p)?"":parseFloat(f)+m),u)switch(c){case"desktop":r[t]=u+n;break;case"tablet":i[t]=u+n;break;case"mobile":s[t]=u+n}}}))})),{desktop:r,tablet:i,mobile:s}};nt.defaultProps={attrNameTemplate:"",attrName:"",blockAttributes:{},disableDirections:[],isImportant:!1};const at=nt,ot=e=>{const{blockAttributes:t}=e,l=ye(e,"all")&&e.attrNameTemplate||"",n=ye(e,"all")&&e.disableWidthDirections||[],o=!ye(e,"all")||(e.allowBorderColor??!0),r=(e,t)=>de(l,e,t);let i={},s={};const c=!ye(e,"all")||(e.allowBorderRadius??!0)?at({blockAttributes:t,attrNameTemplate:l,attrName:"BorderRadius",disableDirections:n}):{};return t[r("BorderStyle")]&&(i.borderStyle=t[r("BorderStyle")],o&&t[r("BorderColor")]&&(i.borderColor=t[r("BorderColor")]),s=at({attrNameTemplate:l,attrName:"BorderWidth",blockAttributes:t})),a()({desktop:i,tablet:{},mobile:{}},s,c)};ot.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0,blockAttributes:{}};const rt=ot,it=t=>{const l={...t},{attrNameTemplate:n,blockAttributes:a,setAttributes:o,excludeOptions:r}=l,s=e=>de(n,e),[u,p]=(0,i.useState)(!1);let m=["qodef-box-shadow-panel"];return l.popup&&m.push("qodef--has-popup"),u&&m.push("qodef--opened"),l.onClick=()=>{p((e=>!e)),window.addEventListener("click",(e=>{const t=document.querySelectorAll(".qodef-box-shadow-panel.qodef--opened");t.length&&t.forEach((t=>{t.contains(e.target)||p(!1)}))}))},wp.element.createElement("div",{className:m.join(" ")},wp.element.createElement("div",{className:"qodef-box-shadow-panel-heading"},l.label&&wp.element.createElement("label",{className:"qodef-option-label"},l.label),l.popup&&wp.element.createElement(c.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Panel","qi-blocks"),onClick:l.onClick})),wp.element.createElement("div",{className:"qodef-box-shadow-panel-content"},wp.element.createElement(Ue,{label:(0,e.__)("Color","qi-blocks"),blockAttributeKey:s("BoxShadowColor"),blockAttributes:a,setAttributes:o,popup:!1}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Horizontal","qi-blocks"),value:a[s("BoxShadowHorizontal")],onChange:e=>o({[s("BoxShadowHorizontal")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Vertical","qi-blocks"),value:a[s("BoxShadowVertical")],onChange:e=>o({[s("BoxShadowVertical")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Blur","qi-blocks"),value:a[s("BoxShadowBlur")],onChange:e=>o({[s("BoxShadowBlur")]:e}),min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Spread","qi-blocks"),value:a[s("BoxShadowSpread")],onChange:e=>o({[s("BoxShadowSpread")]:e}),min:-100,max:100,step:1,allowReset:!0}),(b="position",!(r&&r.length&&r.includes(b))&&wp.element.createElement(c.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:a[s("BoxShadowPosition")],options:[{label:(0,e.__)("Outline","qi-blocks"),value:""},{label:(0,e.__)("Inset","qi-blocks"),value:"inset"}],onChange:e=>o({[s("BoxShadowPosition")]:e})}))));var b};it.defaultProps={label:(0,e.__)("Box Shadow","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},excludeOptions:[],popup:!1};const st=it,ct=e=>{const{blockAttributes:t,excludeOptions:l}=e,n=ye(e,"all")&&e.attrNameTemplate||"",a=(e,t)=>de(n,e,t);let o={},r={x:0,y:0,blur:0,spread:0,color:"",position:""};var i;return t[a("BoxShadowColor")]&&(r.color=t[a("BoxShadowColor")]),""!==t[a("BoxShadowHorizontal")]&&(r.x=t[a("BoxShadowHorizontal")]),""!==t[a("BoxShadowVertical")]&&(r.y=t[a("BoxShadowVertical")]),""!==t[a("BoxShadowBlur")]&&(r.blur=t[a("BoxShadowBlur")]),""!==t[a("BoxShadowSpread")]&&(r.spread=t[a("BoxShadowSpread")]),i="position",l&&l.length&&l.includes(i)||!t[a("BoxShadowPosition")]||(r.position=t[a("BoxShadowPosition")]),r.color&&(o.boxShadow=r.x+"px "+r.y+"px "+r.blur+"px "+r.spread+"px "+r.color+" "+r.position),{desktop:o,tablet:{},mobile:{}}};ct.defaultProps={attrNameTemplate:"",blockAttributes:{}};const ut=ct;var pt;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},mt.apply(this,arguments)}const bt=e=>T.createElement("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),pt||(pt=T.createElement("path",{d:"M100 0v50H0V0Z"})));var dt;function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},ft.apply(this,arguments)}const gt=e=>T.createElement("svg",ft({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),dt||(dt=T.createElement("path",{d:"M49 0v50H0V0Zm51 0v50H51V0Z"})));var ht;function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},kt.apply(this,arguments)}const _t=e=>T.createElement("svg",kt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),ht||(ht=T.createElement("path",{d:"M32 0v50H0V0Zm34 0v50H34V0Zm34 0v50H68V0Z"})));var vt;function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},yt.apply(this,arguments)}const wt=e=>T.createElement("svg",yt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),vt||(vt=T.createElement("path",{d:"M23.5 0v50H0V0ZM49 0v50H25.5V0Zm25.5 0v50H51V0ZM100 0v50H76.5V0Z"})));var At;function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},qt.apply(this,arguments)}const xt=e=>T.createElement("svg",qt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),At||(At=T.createElement("path",{d:"M32.667 0v50H0V0ZM100 0v50H34.667V0Z"})));var St;function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Et.apply(this,arguments)}const Ct=e=>T.createElement("svg",Et({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),St||(St=T.createElement("path",{d:"M65.333 0v50H0V0ZM100 0v50H67.333V0Z"})));var It;function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Tt.apply(this,arguments)}const Bt=e=>T.createElement("svg",Tt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),It||(It=T.createElement("path",{d:"M24 0v50H0V0Zm26 0v50H26V0Zm50 0v50H52V0Z"})));var Ot;function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Vt.apply(this,arguments)}const Pt=e=>T.createElement("svg",Vt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),Ot||(Ot=T.createElement("path",{d:"M48 0v50H0V0Zm26 0v50H50V0Zm26 0v50H76V0Z"})));var Nt;function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Dt.apply(this,arguments)}const Rt=e=>T.createElement("svg",Dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),Nt||(Nt=T.createElement("path",{d:"M24 0v50H0V0Zm50 0v50H26V0Zm26 0v50H76V0Z"})));var Lt;function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Mt.apply(this,arguments)}const Ut=e=>T.createElement("svg",Mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),Lt||(Lt=T.createElement("path",{d:"M18.4 0v50H0V0Zm20.4 0v50H20.4V0Zm20.4 0v50H40.8V0Zm20.4 0v50H61.2V0ZM100 0v50H81.6V0Z"})));var jt;function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},zt.apply(this,arguments)}const Ht=e=>T.createElement("svg",zt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),jt||(jt=T.createElement("path",{d:"M15 0v50H0V0Zm17 0v50H17V0Zm17 0v50H34V0Zm17 0v50H51V0Zm17 0v50H68V0Zm17 0v50H85V0Z"})));var Ft;function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Gt.apply(this,arguments)}const Kt=e=>T.createElement("svg",Gt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 50"},e),Ft||(Ft=T.createElement("path",{d:"M16 0v50H0V0Zm66 0v50H18V0Zm18 0v50H84V0Z"}))),$t=e=>{const t=[];return[{classSuffix:"tablet",blockAttributeKey:"reverseColumnsTablet"},{classSuffix:"mobile",blockAttributeKey:"reverseColumnsMobile"}].map((l=>{const n="qodef-columns-reverse--"+l.classSuffix,a=e[l.blockAttributeKey];t.includes(n)&&!a?t.filter((function(e){return e!==n})):!t.includes(n)&&a&&t.push(n)})),t.join(" ")},Wt=()=>[{key:"100",col:1,name:(0,e.__)("One Column","qi-blocks"),icon:wp.element.createElement(bt,null)},{key:"50",col:2,name:(0,e.__)("Two Columns: Equal","qi-blocks"),icon:wp.element.createElement(gt,null)},{key:"33",col:3,name:(0,e.__)("Three Columns: Equal","qi-blocks"),icon:wp.element.createElement(_t,null)},{key:"25",col:4,name:(0,e.__)("Four Columns: Equal","qi-blocks"),icon:wp.element.createElement(wt,null)},{key:"33-66",col:2,name:(0,e.__)("Two Columns: 33-66","qi-blocks"),icon:wp.element.createElement(xt,null)},{key:"66-33",col:2,name:(0,e.__)("Two Columns: 66-33","qi-blocks"),icon:wp.element.createElement(Ct,null)},{key:"25-25-50",col:3,name:(0,e.__)("Three Columns: 25-25-50","qi-blocks"),icon:wp.element.createElement(Bt,null)},{key:"50-25-25",col:3,name:(0,e.__)("Three Columns: 50-25-25","qi-blocks"),icon:wp.element.createElement(Pt,null)},{key:"25-50-25",col:3,name:(0,e.__)("Three Columns: 25-50-25","qi-blocks"),icon:wp.element.createElement(Rt,null)},{key:"20",col:5,name:(0,e.__)("Five Columns: Equal","qi-blocks"),icon:wp.element.createElement(Ut,null)},{key:"16",col:6,name:(0,e.__)("Six Columns: Equal","qi-blocks"),icon:wp.element.createElement(Ht,null)},{key:"16-66-16",col:3,name:(0,e.__)("Three Columns: 16-66-16","qi-blocks"),icon:wp.element.createElement(Kt,null)}],Zt=(e,t="")=>{const l=[];var n;return e[(n="BackgroundVideoPlayOnMobile",de(t,n))]||l.push("qodef-mobile--hide"),l.join(" ")},Yt=(e,t="")=>{const l=e=>de(t,e),n={src:"",autoPlay:!0,muted:!0,playsInline:!0,type:"video/mp4"};let a="";if(e[l("BackgroundVideoLink")]&&e[l("BackgroundVideoLink")].url){const t=e[l("BackgroundVideoLink")].url.slice(e[l("BackgroundVideoLink")].url.lastIndexOf(".")+1);n.src=e[l("BackgroundVideoLink")].url,"mp4"!==t&&(n.type=`video/${t}`)}if(ye(e[l("BackgroundVideoStartTime")])&&(a+=ve(e[l("BackgroundVideoStartTime")])),e[l("BackgroundVideoEndTime")]){a+=(e[l("BackgroundVideoStartTime")]?",":"")+ve(e[l("BackgroundVideoEndTime")])}return a&&(n.src+="#t="+a),e[l("BackgroundVideoPlayOnce")]||(n.loop=!0),e[l("BackgroundVideoFallbackImage")]&&e[l("BackgroundVideoFallbackImage")].url&&(n.poster=e[l("BackgroundVideoFallbackImage")].url),n},Xt=e=>{const{blockAttributes:t}=e,l=(e,t="")=>de("",e,t),n=ye(e,"all")&&e.excludePanels||[],o=ye(e,"all")&&e.includePanels||[];let r=o&&o.length?o:pe();n&&n.length&&n.forEach((e=>{r.splice(r.indexOf(e),1)}));let i={},s={},c={},u={},p={};r.includes("advanced")&&(ye(t[l("zIndex")])&&(i.zIndex=ve(t[l("zIndex")])),u=at({attrName:l("Margin"),blockAttributes:t}),p=at({attrName:l("Padding"),blockAttributes:t})),r.includes("motion-effects")&&void 0!==t[l("EntranceAnimation")]&&""!==t[l("EntranceAnimation")]&&t[l("EntranceAnimationDelay")]&&(i.animationDelay=ve(t[l("EntranceAnimationDelay")])+"ms");let m={};r.includes("background")&&(m=Je({attrNameTemplate:"Advanced",blockAttributes:t}));let b={};if(r.includes("border")){const e=rt({attrNameTemplate:"Advanced",blockAttributes:t}),l=ut({attrNameTemplate:"Advanced",blockAttributes:t});b=a()(e,l)}if(r.includes("positioning")){ye(t[l("BlockPosition")])&&(i.position=t[l("BlockPosition")]);const e=t[l("PositionHorizontalOrientation")],n=t[l("PositionVerticalOrientation")];Object.entries(U).map((([a])=>{let o=ge(a),r={};"custom"!==t[l("BlockWidth")]&&"custom"!==t[l("BlockWidth",o)]||!t[l("BlockCustomWidth",o)]&&!t[l("BlockCustomWidthDecimal",o)]||(ke(t[l("BlockCustomWidthUnit",o)])&&t[l("BlockCustomWidth",o)]?(r.width=parseInt(t[l("BlockCustomWidth",o)],10)+t[l("BlockCustomWidthUnit",o)],r.maxWidth=parseInt(t[l("BlockCustomWidth",o)],10)+t[l("BlockCustomWidthUnit",o)]):_e(t[l("BlockCustomWidthUnit",o)])&&t[l("BlockCustomWidthDecimal",o)]&&(r.width=parseFloat(t[l("BlockCustomWidthDecimal",o)])+t[l("BlockCustomWidthUnit",o)],r.maxWidth=parseFloat(t[l("BlockCustomWidthDecimal",o)])+t[l("BlockCustomWidthUnit",o)])),""===we(t[l("PositionHorizontalOffset",o)])&&""===we(t[l("PositionHorizontalOffsetDecimal",o)])||(ke(t[l("PositionHorizontalOffsetUnit",o)])&&""!==we(t[l("PositionHorizontalOffset",o)])?r[e]=parseInt(t[l("PositionHorizontalOffset",o)],10)+t[l("PositionHorizontalOffsetUnit",o)]:_e(t[l("PositionHorizontalOffsetUnit",o)])&&""!==we(t[l("PositionHorizontalOffsetDecimal",o)])&&(r[e]=parseFloat(t[l("PositionHorizontalOffsetDecimal",o)])+t[l("PositionHorizontalOffsetUnit",o)])),""===we(t[l("PositionVerticalOffset",o)])&&""===we(t[l("PositionVerticalOffsetDecimal",o)])||(ke(t[l("PositionVerticalOffsetUnit",o)])&&""!==we(t[l("PositionVerticalOffset",o)])?r[n]=parseInt(t[l("PositionVerticalOffset",o)],10)+t[l("PositionVerticalOffsetUnit",o)]:_e(t[l("PositionVerticalOffsetUnit",o)])&&""!==we(t[l("PositionVerticalOffsetDecimal",o)])&&(r[n]=parseFloat(t[l("PositionVerticalOffsetDecimal",o)])+t[l("PositionVerticalOffsetUnit",o)])),Object.keys(r).length>0&&Object.entries(r).map((([e,t])=>{switch(a){case"desktop":i[e]=t;break;case"tablet":s[e]=t;break;case"mobile":c[e]=t}}))}))}return i={desktop:i,tablet:s,mobile:c},a()(i,u,p,m,b)};Xt.defaultProps={blockAttributes:{},excludePanels:[],includePanels:[]};const Jt=Xt;class Qt extends i.Component{componentDidMount(){const{attributes:e,setAttributes:t}=this.props;e.columnsLayout||t({isColumnsLayoutSelected:!1})}setColumnsRange=e=>{const{clientId:t,setAttributes:l}=this.props;l({columns:e,columnsLayout:`${Math.floor(100/e)}`});const n=(0,u.select)("core/block-editor").getBlocksByClientId(t)[0].innerBlocks;if(n){let t=[];if(n.forEach((function(e){t.push({clientId:e.clientId,name:e.name,content:e.innerBlocks,customWidth:e.attributes.columnWidthDecimal})})),t){const l=t.length,n=t[l-1];e<l&&n.content.length&&(0,u.dispatch)("core/block-editor").insertBlocks(n.content,n.content.length,t[e-1].clientId),t.filter((e=>!e.columnWidthDecimal)).length>1&&t.map((e=>{(0,u.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{columnWidthDecimal:""})}))}}};render(){const{attributes:t,setAttributes:l,previewScreen:n}=this.props,{uniqueClass:o,contentWidth:u,predefinedContentWidth:p,predefinedContentBehavior:m,predefinedContentBehaviorDisableBelow:d,columns:f,columnsLayout:g,isColumnsLayoutSelected:h,columnGap:k,height:_,columnPosition:v,columnVerticalAlign:y,backgroundType:w,overflow:A,htmlTag:q,overlayOpacity:x,overlayBlendMode:S,zIndex:E,cssId:C,cssClasses:I,entranceAnimation:T,entranceAnimationDuration:B,entranceAnimationDelay:O}=t,V=["qi-blocks/column"],P=r()(f).map((()=>V));let N=b()("qodef-gutenberg-section","qodef--template",K(t),$t(t),o,{[`qodef-col-num--${f}`]:f,[`qodef-col-layout--${g}`]:g,[`qodef-gutter--${k}`]:k&&""!==k,[`qodef-height--${_}`]:_,[`qodef-position--${v}`]:v,[`qodef-vertical-align--${y}`]:y,[`qodef-content--${u}`]:u,[`qodef-content--${p}`]:"predefined"===u&&p,[`qodef-content--extended qodef-content--extended--${m}`]:"predefined"===u&&m,[`qodef-content--extended-disabled--${d}`]:"predefined"===u&&m&&d,[`qodef--${A}`]:A,"qodef-entrance-animation--on":T,[`qodef-animation-speed--${B}`]:T&&B,[I]:I,[this.props.className]:this.props.className});const D=(e=>{const{attributes:t}=e,l=(e,t)=>de("",e,t);let n={},a={},o={};return""!==t.zIndex&&(n.zIndex=parseInt(t.zIndex,10)),Object.entries(U).map((([e])=>{let r=ge(e),i={};"min-height"===t.height&&(t[l("minimumHeight",r)]||t[l("minimumHeightDecimal",r)])&&(ke(t[l("minimumHeightUnit",r)])&&t[l("minimumHeight",r)]?i.minHeight=parseInt(t[l("minimumHeight",r)],10)+t[l("minimumHeightUnit",r)]:_e(t[l("minimumHeightUnit",r)])&&t[l("minimumHeightDecimal",r)]&&(i.minHeight=parseFloat(t[l("minimumHeightDecimal",r)])+t[l("minimumHeightUnit",r)])),Object.keys(i).length>0&&Object.entries(i).map((([t,l])=>{switch(e){case"desktop":n[t]=l;break;case"tablet":a[t]=l;break;case"mobile":o[t]=l}}))})),{desktop:n,tablet:a,mobile:o}})({attributes:t}),R=Je({blockAttributes:t}),L=rt({blockAttributes:t}),M=ut({blockAttributes:t}),j=at({attrName:"Padding",blockAttributes:t}),z=Jt({blockAttributes:t,includePanels:["motion-effects"]}),H=((e,t="",l={cssProp:"",value:""})=>{const{attributes:n,blockAttrName:a,cssProp:o}=e,r=ye(e,"all")&&void 0!==e.direction&&e.direction?fe(e.direction):"",i=!!ye(e,"all")&&(e.customUnitValue??!1);let s={},c={},u={};return Object.entries(U).map((([e])=>{let p=ge(e),m="",b=a+r+p,d=a+r+"Decimal"+p,f=n[a+"Unit"+p];(ye(n[b])||ye(n[d]))&&(ke(f)&&ye(n[b])&&!i?m=ve(n[b])+f:_e(f)&&ye(n[d])&&!i?m=ve(n[d],"decimal")+f:""!==n[b]&&(m=n[b]));const g=e=>{let l=e;if(t.includes("%s")){const n=t.split("%s");l="",n.forEach(((t,a)=>{l+=t,a!==n.length-1&&(l+=e)}))}return l};if(m)switch(e){case"desktop":s[o]=t?g(m):m,l.cssProp&&l.value&&(s[l.cssProp]=l.value);break;case"tablet":c[o]=t?g(m):m,l.cssProp&&l.value&&(c[l.cssProp]=l.value);break;case"mobile":u[o]=t?g(m):m,l.cssProp&&l.value&&(u[l.cssProp]=l.value)}})),{desktop:s,tablet:c,mobile:u}})({attributes:t,blockAttrName:"customColumnGap",cssProp:"--qi-blocks-columns-gap"}),G=a()(D,R,L,M,j,z,H),W=at({attrName:"Margin",blockAttributes:t,disableDirections:["Left","Right"],isImportant:!0}),Z=W&&((e,t=!0)=>{let l="";return Object.entries(e).map((([e,n])=>{l+=`${e.replace(/([A-Z])/g,((e,t,l)=>(l>0?"-":"")+e.toLowerCase()))}: ${n} ${t?"!important":""};`})),l})(he(W,n),!1);let Y={desktop:{}};x&&(t.overlayBackgroundColor||t.overlayBackgroundImage.url)&&(Y.desktop.opacity=x),S&&(Y.desktop.mixBlendMode=S);const X=a()(Je({attrNameTemplate:"Overlay",blockAttributes:t}),Y),J=(e=>{const{attributes:t}=e,l=(e,t)=>de("",e,t);let n={},a={},o={};return Object.entries(U).map((([e])=>{let r=ge(e),i={};if("boxed"===t.contentWidth&&(t[l("width",r)]||t[l("widthDecimal",r)])){const e=t[l("widthUnit",r)];let n=0;ke(e)&&t[l("width",r)]?n=parseInt(t[l("width",r)],10):_e(e)&&t[l("widthDecimal",r)]&&(n=parseFloat(t[l("widthDecimal",r)])),n>0&&(i.maxWidth=`${n+e}`)}Object.keys(i).length>0&&Object.entries(i).map((([t,l])=>{switch(e){case"desktop":n[t]=l;break;case"tablet":a[t]=l;break;case"mobile":o[t]=l}}))})),{desktop:n,tablet:a,mobile:o}})({attributes:t});this.props.addPageStyle([{selector:`.qodef-gutenberg-section.${o}`,styles:a()(G,W)},{selector:`.qodef-gutenberg-section.${o} > .qodef-section-background-overlay`,styles:X},{selector:`.qodef-gutenberg-section.${o} > .qodef-gutenberg-row`,styles:J}]);let Q={className:N,style:he(G,n),...me(t)};return be(t)&&(Q.id=be(t)),wp.element.createElement(i.Fragment,null,wp.element.createElement(s.InspectorControls,null,wp.element.createElement(c.TabPanel,{className:"qodef-tab-panel qodef--columns",activeClass:"qodef--active",tabs:[{name:"layout",title:(0,e.__)("Layout","qi-blocks")},{name:"style",title:(0,e.__)("Style","qi-blocks")},{name:"advanced",title:(0,e.__)("Advanced","qi-blocks")}]},(a=>wp.element.createElement(wp.element.Fragment,null,"layout"===a.name&&wp.element.createElement(c.BaseControl,{className:"qodef-base-control-container"},wp.element.createElement(c.SelectControl,{label:(0,e.__)("Content Width","qi-blocks"),value:u,options:[{label:(0,e.__)("Boxed","qi-blocks"),value:"boxed"},{label:(0,e.__)("Predefined Width","qi-blocks"),value:"predefined"},{label:(0,e.__)("Full Width","qi-blocks"),value:"full-width"}],onChange:e=>l({contentWidth:e})}),"boxed"===u&&wp.element.createElement(Ve,{label:(0,e.__)("Width","qi-blocks"),blockAttributeKey:"width",setAttributes:l,blockAttributes:t,rangeMax:1600,rangeMin:500,rangeDecimalMax:100,rangeDecimalMin:1,rangeDecimalStep:1,allowScreens:!0,unitType:"pxPercentVw"}),"predefined"===u&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(c.SelectControl,{label:(0,e.__)("Predefined Width of Content","qi-blocks"),help:(0,e.__)('Choose the predefined width of content which is in the grid. Useful to use when the page template is "Full Width"',"qi-blocks"),value:p,options:[{label:(0,e.__)("1400px","qi-blocks"),value:"1400"},{label:(0,e.__)("1300px","qi-blocks"),value:"1300"},{label:(0,e.__)("1200px","qi-blocks"),value:"1200"},{label:(0,e.__)("1100px","qi-blocks"),value:"1100"},{label:(0,e.__)("1000px","qi-blocks"),value:"1000"},{label:(0,e.__)("800px","qi-blocks"),value:"800"}],onChange:e=>l({predefinedContentWidth:e})}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("Predefined Content Behavior","qi-blocks"),value:m,options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Extend Grid Right","qi-blocks"),value:"right"},{label:(0,e.__)("Extend Grid Left","qi-blocks"),value:"left"}],onChange:e=>l({predefinedContentBehavior:e})}),m&&wp.element.createElement(c.SelectControl,{label:(0,e.__)("Predefined Content Disable Below","qi-blocks"),value:d,options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Screen Size 1440","qi-blocks"),value:"1440"},{label:(0,e.__)("Screen Size 1366","qi-blocks"),value:"1366"},{label:(0,e.__)("Screen Size 1024","qi-blocks"),value:"1024"},{label:(0,e.__)("Screen Size 768","qi-blocks"),value:"768"},{label:(0,e.__)("Screen Size 680","qi-blocks"),value:"680"},{label:(0,e.__)("Screen Size 480","qi-blocks"),value:"480"}],onChange:e=>l({predefinedContentBehaviorDisableBelow:e})})),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Column","qi-blocks"),value:f,onChange:this.setColumnsRange,min:1,max:6}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("Columns Gap","qi-blocks"),value:k,options:Ae("column_gap",!0,[{label:(0,e.__)("Custom","qi-blocks"),value:"custom"}]),onChange:e=>l({columnGap:e})}),"custom"===k&&wp.element.createElement(Ve,{label:(0,e.__)("Custom Columns Gap","qi-blocks"),blockAttributeKey:"customColumnGap",setAttributes:l,blockAttributes:t,rangeMax:100,rangeDecimalMax:100,unitType:"measure",allowScreens:!0}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("Height","qi-blocks"),value:_,options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Fit to Screen","qi-blocks"),value:"full"},{label:(0,e.__)("Min Height","qi-blocks"),value:"min-height"}],onChange:e=>l({height:e})}),"min-height"===_&&wp.element.createElement(Ve,{label:(0,e.__)("Minimum Height","qi-blocks"),blockAttributeKey:"minimumHeight",setAttributes:l,blockAttributes:t,rangeMax:1440,rangeDecimalMax:100,unitType:"height",allowScreens:!0}),""!==_&&wp.element.createElement(c.SelectControl,{label:(0,e.__)("Column Position","qi-blocks"),value:v,options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Strecth","qi-blocks"),value:"strecth"},{label:(0,e.__)("Top","qi-blocks"),value:"top"},{label:(0,e.__)("Middle","qi-blocks"),value:"middle"},{label:(0,e.__)("Bottom","qi-blocks"),value:"bottom"}],onChange:e=>l({columnPosition:e})}),["","strecth"].includes(v)&&wp.element.createElement(c.SelectControl,{label:(0,e.__)("Vertical Align","qi-blocks"),value:y,options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Top","qi-blocks"),value:"top"},{label:(0,e.__)("Middle","qi-blocks"),value:"middle"},{label:(0,e.__)("Bottom","qi-blocks"),value:"bottom"},{label:(0,e.__)("Space Between","qi-blocks"),value:"space-between"},{label:(0,e.__)("Space Around","qi-blocks"),value:"space-around"},{label:(0,e.__)("Space Evenly","qi-blocks"),value:"space-evenly"}],onChange:e=>l({columnVerticalAlign:e})}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("Overflow","qi-blocks"),value:A,options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Hidden","qi-blocks"),value:"hidden"}],onChange:e=>l({overflow:e})}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("HTML Tag","qi-blocks"),value:q,options:Ae("html_tag"),onChange:e=>l({htmlTag:e})}),h&&wp.element.createElement("div",{className:"qodef-gutenberg-section-preview qodef--sidebar qodef-m"},wp.element.createElement("span",{className:"qodef-m-title"},(0,e.__)("Select Your Layout","qi-blocks")),wp.element.createElement(c.ButtonGroup,{"aria-label":(0,e.__)("Column Layout","qi-blocks")},Wt().map((({name:e,key:t,icon:n,col:a})=>f===a&&wp.element.createElement(c.Tooltip,{key:t,text:e},wp.element.createElement(c.Button,{className:g===t?"qodef--active":"",onClick:()=>{l({columnsLayout:t,columns:a})}},n))))))),"style"===a.name&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(c.PanelBody,{title:(0,e.__)("Background","qi-blocks")},wp.element.createElement(We,{blockAttributes:t,setAttributes:l,includeVideoBG:!0,previewScreen:n})),wp.element.createElement(c.PanelBody,{title:(0,e.__)("Background Overlay","qi-blocks"),initialOpen:!1},wp.element.createElement(We,{attrNameTemplate:"Overlay",blockAttributes:t,setAttributes:l,previewScreen:n}),wp.element.createElement(c.RangeControl,{label:(0,e.__)("Opacity","qi-blocks"),value:x,initialPosition:.5,onChange:e=>l({overlayOpacity:e}),min:0,max:1,step:.01,allowReset:!0}),wp.element.createElement(c.SelectControl,{label:(0,e.__)("Blend Mode","qi-blocks"),value:S,options:[{label:(0,e.__)("Normal","qi-blocks"),value:""},{label:(0,e.__)("Multiply","qi-blocks"),value:"multiply"},{label:(0,e.__)("Screen","qi-blocks"),value:"screen"},{label:(0,e.__)("Overlay","qi-blocks"),value:"overlay"},{label:(0,e.__)("Darken","qi-blocks"),value:"darken"},{label:(0,e.__)("Lighten","qi-blocks"),value:"lighten"},{label:(0,e.__)("Color Dodge","qi-blocks"),value:"color-dodge"},{label:(0,e.__)("Saturation","qi-blocks"),value:"saturation"},{label:(0,e.__)("Color","qi-blocks"),value:"color"},{label:(0,e.__)("Luminosity","qi-blocks"),value:"luminosity"}],onChange:e=>l({overlayBlendMode:e})})),wp.element.createElement(c.PanelBody,{title:(0,e.__)("Border","qi-blocks"),initialOpen:!1},wp.element.createElement(lt,{blockAttributes:t,setAttributes:l}),wp.element.createElement(st,{blockAttributes:t,setAttributes:l,popup:!0}))),"advanced"===a.name&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(c.PanelBody,{title:a.title},wp.element.createElement(et,{label:(0,e.__)("Margin","qi-blocks"),attrName:"Margin",blockAttributes:t,setAttributes:l,disableDirections:["Left","Right"]}),wp.element.createElement(et,{label:(0,e.__)("Padding","qi-blocks"),attrName:"Padding",blockAttributes:t,setAttributes:l}),wp.element.createElement(c.TextControl,{type:"number",label:(0,e.__)("Z-Index","qi-blocks"),value:E,onChange:e=>l({zIndex:parseInt(e,10)})}),wp.element.createElement(c.TextControl,{label:(0,e.__)("CSS ID","qi-blocks"),value:C,onChange:e=>l({cssId:e})}),wp.element.createElement(c.TextControl,{label:(0,e.__)("CSS Classes","qi-blocks"),value:I,onChange:e=>l({cssClasses:e})})),wp.element.createElement(c.PanelBody,{title:(0,e.__)("Motion Effects","qi-blocks"),initialOpen:!1},wp.element.createElement(c.SelectControl,{label:(0,e.__)("Entrance Animation","qi-blocks"),value:T,options:[{label:(0,e.__)("None","qi-blocks"),value:""},{label:(0,e.__)("Back In Down","qi-blocks"),value:"backInDown"},{label:(0,e.__)("Back In Left","qi-blocks"),value:"backInLeft"},{label:(0,e.__)("Back In Right","qi-blocks"),value:"backInRight"},{label:(0,e.__)("Back In Up","qi-blocks"),value:"backInUp"},{label:(0,e.__)("Bounce","qi-blocks"),value:"bounce"},{label:(0,e.__)("Bounce In","qi-blocks"),value:"bounceIn"},{label:(0,e.__)("Bounce In Down","qi-blocks"),value:"bounceInDown"},{label:(0,e.__)("Bounce In Left","qi-blocks"),value:"bounceInLeft"},{label:(0,e.__)("Bounce In Right","qi-blocks"),value:"bounceInRight"},{label:(0,e.__)("Bounce In Up","qi-blocks"),value:"bounceInUp"},{label:(0,e.__)("Fade In","qi-blocks"),value:"fadeIn"},{label:(0,e.__)("Fade In Down","qi-blocks"),value:"fadeInDown"},{label:(0,e.__)("Fade In Down Big","qi-blocks"),value:"fadeInDownBig"},{label:(0,e.__)("Fade In Left","qi-blocks"),value:"fadeInLeft"},{label:(0,e.__)("Fade In Left Big","qi-blocks"),value:"fadeInLeftBig"},{label:(0,e.__)("Fade In Right","qi-blocks"),value:"fadeInRight"},{label:(0,e.__)("Fade In Right Big","qi-blocks"),value:"fadeInRightBig"},{label:(0,e.__)("Fade In Up","qi-blocks"),value:"fadeInUp"},{label:(0,e.__)("Fade In Up Big","qi-blocks"),value:"fadeInUpBig"},{label:(0,e.__)("Fade In Top Left","qi-blocks"),value:"fadeInTopLeft"},{label:(0,e.__)("Fade In Top Right","qi-blocks"),value:"fadeInTopRight"},{label:(0,e.__)("Fade In Bottom Left","qi-blocks"),value:"fadeInBottomLeft"},{label:(0,e.__)("Fade In Bottom Right","qi-blocks"),value:"fadeInBottomRight"},{label:(0,e.__)("Flash","qi-blocks"),value:"flash"},{label:(0,e.__)("Flip","qi-blocks"),value:"flip"},{label:(0,e.__)("Flip In X","qi-blocks"),value:"flipInX"},{label:(0,e.__)("Flip In Y","qi-blocks"),value:"flipInY"},{label:(0,e.__)("Head Shake","qi-blocks"),value:"headShake"},{label:(0,e.__)("Heart Beat","qi-blocks"),value:"heartBeat"},{label:(0,e.__)("Jack In The Box","qi-blocks"),value:"jackInTheBox"},{label:(0,e.__)("Jello","qi-blocks"),value:"jello"},{label:(0,e.__)("Light Speed In Right","qi-blocks"),value:"lightSpeedInRight"},{label:(0,e.__)("Light Speed In Left","qi-blocks"),value:"lightSpeedInLeft"},{label:(0,e.__)("Pulse","qi-blocks"),value:"pulse"},{label:(0,e.__)("Roll In","qi-blocks"),value:"rollIn"},{label:(0,e.__)("Rotate In","qi-blocks"),value:"rotateIn"},{label:(0,e.__)("Rotate In Down Left","qi-blocks"),value:"rotateInDownLeft"},{label:(0,e.__)("Rotate In Down Right","qi-blocks"),value:"rotateInDownRight"},{label:(0,e.__)("Rotate In Up Left","qi-blocks"),value:"rotateInUpLeft"},{label:(0,e.__)("Rotate In Up Right","qi-blocks"),value:"rotateInUpRight"},{label:(0,e.__)("Rubber Band","qi-blocks"),value:"rubberBand"},{label:(0,e.__)("Shake X","qi-blocks"),value:"shakeX"},{label:(0,e.__)("Shake Y","qi-blocks"),value:"shakeY"},{label:(0,e.__)("Slide In Down","qi-blocks"),value:"slideInDown"},{label:(0,e.__)("Slide In Left","qi-blocks"),value:"slideInLeft"},{label:(0,e.__)("Slide In Right","qi-blocks"),value:"slideInRight"},{label:(0,e.__)("Slide In Up","qi-blocks"),value:"slideInUp"},{label:(0,e.__)("Swing","qi-blocks"),value:"swing"},{label:(0,e.__)("Tada","qi-blocks"),value:"tada"},{label:(0,e.__)("Wobble","qi-blocks"),value:"wobble"},{label:(0,e.__)("Zoom In","qi-blocks"),value:"zoomIn"},{label:(0,e.__)("Zoom In Down","qi-blocks"),value:"zoomInDown"},{label:(0,e.__)("Zoom In Left","qi-blocks"),value:"zoomInLeft"},{label:(0,e.__)("Zoom In Right","qi-blocks"),value:"zoomInRight"},{label:(0,e.__)("Zoom In Up","qi-blocks"),value:"zoomInUp"}],onChange:e=>{l({entranceAnimation:e}),setTimeout((()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(o)}),300)}}),""!==T&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(c.SelectControl,{label:(0,e.__)("Animation Duration","qi-blocks"),value:B,options:[{label:(0,e.__)("Slower","qi-blocks"),value:"slower"},{label:(0,e.__)("Slow","qi-blocks"),value:"slow"},{label:(0,e.__)("Normal","qi-blocks"),value:"normal"},{label:(0,e.__)("Fast","qi-blocks"),value:"fast"},{label:(0,e.__)("Faster","qi-blocks"),value:"faster"}],onChange:e=>{l({entranceAnimationDuration:e}),setTimeout((()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(o)}),300)}}),wp.element.createElement(c.TextControl,{type:"number",label:(0,e.__)("Animation Delay (ms)","qi-blocks"),value:O,min:0,step:100,onChange:e=>{l({entranceAnimationDelay:ve(e)}),qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(o,!0)}}))),wp.element.createElement(c.PanelBody,{title:(0,e.__)("Responsive","qi-blocks"),initialOpen:!1},wp.element.createElement(c.BaseControl,{className:"qodef-base-option-label",label:(0,e.__)("Columns Behavior","qi-blocks")},wp.element.createElement(F,{label:(0,e.__)("Reverse Columns (Tablet)","qi-blocks"),blockAttributeKey:"reverseColumnsTablet",blockAttributes:t,setAttributes:l}),wp.element.createElement(F,{label:(0,e.__)("Reverse Columns (Mobile)","qi-blocks"),blockAttributeKey:"reverseColumnsMobile",blockAttributes:t,setAttributes:l})),wp.element.createElement($,{blockAttributes:t,setAttributes:l}))))))),!h&&wp.element.createElement("div",{className:"qodef-gutenberg-section-preview qodef-m"},wp.element.createElement("span",{className:"qodef-m-title"},(0,e.__)("Select Your Layout","qi-blocks")),wp.element.createElement(c.ButtonGroup,{"aria-label":(0,e.__)("Column Layout","qi-blocks")},Wt().map((({name:e,key:t,icon:n,col:a})=>wp.element.createElement(c.Tooltip,{key:t,text:e},wp.element.createElement(c.Button,{className:g===t?"qodef--active":"",onClick:()=>{l({columnsLayout:t,isColumnsLayoutSelected:!0,columns:a})}},n)))))),""!==Z&&wp.element.createElement("style",null,`.qodef-gutenberg-section.${o} {\n\t\t\t\t\t\t\t\t${Z}\n\t\t\t\t\t\t\t}`),h&&(0,i.createElement)(q||"section",Q,wp.element.createElement(wp.element.Fragment,null,"video"===w&&wp.element.createElement("div",{className:`qodef-section-video-background ${Zt(t)}`},wp.element.createElement("video",Yt(t))),wp.element.createElement("div",{className:"qodef-section-background-overlay",style:he(X,n)}),wp.element.createElement("div",{className:"qodef-gutenberg-row",style:he(J,n)},wp.element.createElement(s.InnerBlocks,{orientation:"horizontal",templateLock:"all",template:P,allowedBlocks:V})))))}}Qt.defaultProps={previewScreen:M};const el=(0,p.compose)(x)(Qt);class tl extends i.Component{render(){const{attributes:e}=this.props,{uniqueClass:t,contentWidth:l,predefinedContentWidth:n,predefinedContentBehavior:a,predefinedContentBehaviorDisableBelow:o,columns:r,columnsLayout:c,columnGap:u,height:p,columnPosition:m,columnVerticalAlign:d,backgroundType:f,overflow:g,htmlTag:h,cssClasses:k,entranceAnimation:_,entranceAnimationDuration:v}=e;let y={className:b()("qodef-gutenberg-section","qodef--template",K(e),$t(e),t,{[`qodef-col-num--${r}`]:r,[`qodef-col-layout--${c}`]:c,[`qodef-gutter--${u}`]:u&&""!==u,[`qodef-height--${p}`]:p,[`qodef-position--${m}`]:m,[`qodef-vertical-align--${d}`]:d,[`qodef-content--${l}`]:l,[`qodef-content--${n}`]:"predefined"===l&&n,[`qodef-content--extended qodef-content--extended--${a}`]:"predefined"===l&&a,[`qodef-content--extended-disabled--${o}`]:"predefined"===l&&a&&o,[`qodef--${g}`]:g,"qodef-entrance-animation--on":_,[`qodef-animation-speed--${v}`]:_&&v,[k]:k}),...me(e)};return be(e)&&(y.id=be(e)),(0,i.createElement)(h||"section",y,wp.element.createElement(wp.element.Fragment,null,"video"===f&&wp.element.createElement("div",{className:`qodef-section-video-background ${Zt(e)}`},wp.element.createElement("video",Yt(e))),wp.element.createElement("div",{className:"qodef-section-background-overlay"}),wp.element.createElement("div",{className:"qodef-gutenberg-row"},wp.element.createElement(s.InnerBlocks.Content,null))))}}const ll=tl,nl={uniqueClass:{type:"string",default:""},contentWidth:{type:"string",default:"boxed"},predefinedContentWidth:{type:"string",default:"1100"},predefinedContentBehavior:{type:"string",default:""},predefinedContentBehaviorDisableBelow:{type:"string",default:""},columns:{type:"number",default:2},columnsLayout:{type:"string",default:""},isColumnsLayoutSelected:{type:"boolean",default:!0},columnGap:{type:"string",default:""},height:{type:"string",default:""},columnPosition:{type:"string",default:""},columnVerticalAlign:{type:"string",default:""},overflow:{type:"string",default:""},htmlTag:{type:"string",default:""},overlayOpacity:{type:"number",default:"0.5"},overlayBlendMode:{type:"string",default:""},zIndex:{type:"number",default:""},cssId:{type:"string",default:""},cssClasses:{type:"string",default:""},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1},...J({blockAttributeKey:"width",allowScreens:!0}),...J({blockAttributeKey:"minimumHeight",allowScreens:!0,defaultValue:400}),...J({blockAttributeKey:"customColumnGap",allowScreens:!0}),...le({includeVideoBG:!0}),...le({attrNameTemplate:"Overlay"}),...re({allowBorderRadius:!0}),...se(),...W(),...Y({attrName:"Margin"}),...Y({attrName:"Padding"}),...ue({includePanels:["motion-effects"]})},al={attributes:{columns:2,innerBlocks:[{name:"qi-blocks/column",attributes:{},innerBlocks:[{name:"core/paragraph",attributes:{text:qiBlocksEditor.vars.defaultContentLabel}}]},{name:"qi-blocks/column",attributes:{},innerBlocks:[{name:"core/paragraph",attributes:{text:qiBlocksEditor.vars.defaultContentLabel}}]}]}};var ol;function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},rl.apply(this,arguments)}const il=e=>T.createElement("svg",rl({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:24,height:24},e),ol||(ol=T.createElement("path",{fill:"none",stroke:"#EE2852",strokeMiterlimit:10,d:"M.484 3.5h10v17h-10zM13.459 3.5h4v17h-4zM19.469 3.5h4v17h-4z"})));(0,t.registerBlockType)("qi-blocks/columns",{icon:wp.element.createElement(il,null),title:(0,e.__)("Advanced Columns","qi-blocks"),description:(0,e.__)("Create easily customizable columns to which you can add your content.","qi-blocks"),category:"qi-blocks",keywords:[(0,e.__)("content","qi-blocks"),(0,e.__)("row","qi-blocks"),(0,e.__)("columns","qi-blocks"),(0,e.__)("column layouts","qi-blocks"),(0,e.__)("boxed columns","qi-blocks"),(0,e.__)("full width columns","qi-blocks"),(0,e.__)("qi","qi-blocks")],attributes:nl,example:al,supports:{reusable:!1,html:!1},edit:el,save:ll})})()})();