var yp=Object.defineProperty;var Cp=(e,t,n)=>t in e?yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var od=(e,t,n)=>(Cp(e,typeof t!="symbol"?t+"":t,n),n);/* empty css */const Mi=window.wp.customize;var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ju(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),n}var ku={exports:{}},gs={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _p=window.React,Sp=Symbol.for("react.element"),jp=Symbol.for("react.fragment"),kp=Object.prototype.hasOwnProperty,Ep=_p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dp={key:!0,ref:!0,__self:!0,__source:!0};function Eu(e,t,n){var i,o={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(i in t)kp.call(t,i)&&!Dp.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)o[i]===void 0&&(o[i]=t[i]);return{$$typeof:Sp,type:e,key:a,ref:s,props:o,_owner:Ep.current}}gs.Fragment=jp;gs.jsx=Eu;gs.jsxs=Eu;ku.exports=gs;var r=ku.exports,Hr={},ad=window.ReactDOM;Hr.createRoot=ad.createRoot,Hr.hydrateRoot=ad.hydrateRoot;var Lt=function(){return Lt=Object.assign||function(t){for(var n,i=1,o=arguments.length;i0?ht(Ii,--ln):0,gi--,lt===10&&(gi=1,vs--),lt}function yn(){return lt=ln2||uc(lt)>3?"":" "}function Np(e,t){for(;--t&&yn()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return xs(e,La()+(t<6&&jr()==32&&yn()==32))}function hc(e){for(;yn();)switch(lt){case e:return ln;case 34:case 39:e!==34&&e!==39&&hc(lt);break;case 40:e===41&&hc(e);break;case 92:yn();break}return ln}function Pp(e,t){for(;yn()&&e+lt!==47+10;)if(e+lt===42+42&&jr()===47)break;return"/*"+xs(t,ln-1)+"*"+Xc(e===47?e:yn())}function Vp(e){for(;!uc(jr());)yn();return xs(e,ln)}function Bp(e){return Rp(Aa("",null,null,null,[""],e=Ap(e),0,[0],e))}function Aa(e,t,n,i,o,a,s,l,c){for(var d=0,u=0,h=s,f=0,g=0,p=0,m=1,w=1,E=1,k=0,S="",y=o,$=a,x=i,C=S;w;)switch(p=k,k=yn()){case 40:if(p!=108&&ht(C,h-1)==58){Ta(C+=Se(cl(k),"&","&\f"),"&\f",Hu(d?l[d-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:C+=cl(k);break;case 9:case 10:case 13:case 32:C+=Op(p);break;case 92:C+=Np(La()-1,7);continue;case 47:switch(jr()){case 42:case 47:io(Fp(Pp(yn(),La()),t,n,c),c);break;default:C+="/"}break;case 123*m:l[d++]=jn(C)*E;case 125*m:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+u:E==-1&&(C=Se(C,/\f/g,"")),g>0&&jn(C)-h&&io(g>32?cd(C+";",i,n,h-1,c):cd(Se(C," ","")+";",i,n,h-2,c),c);break;case 59:C+=";";default:if(io(x=ld(C,t,n,d,u,o,l,S,y=[],$=[],h,a),a),k===123)if(u===0)Aa(C,t,x,x,y,a,h,l,$);else switch(f===99&&ht(C,3)===110?100:f){case 100:case 108:case 109:case 115:Aa(e,x,x,i&&io(ld(e,x,x,0,0,o,l,S,o,y=[],h,$),$),o,$,h,l,i?y:$);break;default:Aa(C,x,x,x,[""],$,0,l,$)}}d=u=g=0,m=E=1,S=C="",h=s;break;case 58:h=1+jn(C),g=p;default:if(m<1){if(k==123)--m;else if(k==125&&m++==0&&Lp()==125)continue}switch(C+=Xc(k),k*m){case 38:E=u>0?1:(C+="\f",-1);break;case 44:l[d++]=(jn(C)-1)*E,E=1;break;case 64:jr()===45&&(C+=cl(yn())),f=jr(),u=h=jn(S=C+=Vp(La())),k++;break;case 45:p===45&&jn(C)==2&&(m=0)}}return a}function ld(e,t,n,i,o,a,s,l,c,d,u,h){for(var f=o-1,g=o===0?a:[""],p=Iu(g),m=0,w=0,E=0;m0?g[k]+" "+S:Se(S,/&\f/g,g[k])))&&(c[E++]=y);return ws(e,t,n,o===0?ms:l,c,d,u,h)}function Fp(e,t,n,i){return ws(e,t,n,Du,Xc(Tp()),pi(e,2,-2),0,i)}function cd(e,t,n,i,o){return ws(e,t,n,Yc,pi(e,0,i),pi(e,i+1,-1),i,o)}function Lu(e,t,n){switch(Mp(e,t)){case 5103:return Le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Le+e+e;case 4789:return fo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Le+e+fo+e+Fe+e+e;case 5936:switch(ht(e,t+11)){case 114:return Le+e+Fe+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+Fe+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+Fe+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Le+e+Fe+e+e;case 6165:return Le+e+Fe+"flex-"+e+e;case 5187:return Le+e+Se(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return Le+e+Fe+"flex-item-"+Se(e,/flex-|-self/g,"")+(Pn(e,/flex-|baseline/)?"":Fe+"grid-row-"+Se(e,/flex-|-self/g,""))+e;case 4675:return Le+e+Fe+"flex-line-pack"+Se(e,/align-content|flex-|-self/g,"")+e;case 5548:return Le+e+Fe+Se(e,"shrink","negative")+e;case 5292:return Le+e+Fe+Se(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+Se(e,"-grow","")+Le+e+Fe+Se(e,"grow","positive")+e;case 4554:return Le+Se(e,/([^-])(transform)/g,"$1"+Le+"$2")+e;case 6187:return Se(Se(Se(e,/(zoom-|grab)/,Le+"$1"),/(image-set)/,Le+"$1"),e,"")+e;case 5495:case 3959:return Se(e,/(image-set\([^]*)/,Le+"$1$`$1");case 4968:return Se(Se(e,/(.+:)(flex-)?(.*)/,Le+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Le+e+e;case 4200:if(!Pn(e,/flex-|baseline/))return Fe+"grid-column-align"+pi(e,t)+e;break;case 2592:case 3360:return Fe+Se(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Pn(i.props,/grid-\w+-end/)})?~Ta(e+(n=n[t].value),"span",0)?e:Fe+Se(e,"-start","")+e+Fe+"grid-row-span:"+(~Ta(n,"span",0)?Pn(n,/\d+/):+Pn(n,/\d+/)-+Pn(e,/\d+/))+";":Fe+Se(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Pn(i.props,/grid-\w+-start/)})?e:Fe+Se(Se(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Se(e,/(.+)-inline(.+)/,Le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jn(e)-1-t>6)switch(ht(e,t+1)){case 109:if(ht(e,t+4)!==45)break;case 102:return Se(e,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1"+fo+(ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ta(e,"stretch",0)?Lu(Se(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Se(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,s,l,c,d){return Fe+o+":"+a+d+(s?Fe+o+"-span:"+(l?c:+c-+a)+d:"")+e});case 4949:if(ht(e,t+6)===121)return Se(e,":",":"+Le)+e;break;case 6444:switch(ht(e,ht(e,14)===45?18:11)){case 120:return Se(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Le+(ht(e,14)===45?"inline-":"")+"box$3$1"+Le+"$2$3$1"+Fe+"$2box$3")+e;case 100:return Se(e,":",":"+Fe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Se(e,"scroll-","scroll-snap-")+e}return e}function Xa(e,t){for(var n="",i=0;i-1&&!e.return)switch(e.type){case Yc:e.return=Lu(e.value,e.length,n);return;case $u:return Xa([er(e,{value:Se(e.value,"@","@"+Le)})],i);case ms:if(e.length)return Ip(n=e.props,function(o){switch(Pn(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Kr(er(e,{props:[Se(o,/:(read-\w+)/,":"+fo+"$1")]})),Kr(er(e,{props:[o]})),dc(e,{props:sd(n,i)});break;case"::placeholder":Kr(er(e,{props:[Se(o,/:(plac\w+)/,":"+Le+"input-$1")]})),Kr(er(e,{props:[Se(o,/:(plac\w+)/,":"+fo+"$1")]})),Kr(er(e,{props:[Se(o,/:(plac\w+)/,Fe+"input-$1")]})),Kr(er(e,{props:[o]})),dc(e,{props:sd(n,i)});break}return""})}}var Up={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Eo=window.React;window.React.useRef;window.React.useState;window.React.useMemo;window.React.useEffect;const Yp=window.React.useContext;window.React.useDebugValue;const Xp=window.React.createElement;var mi=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Au="active",Ru="data-styled-version",bs="6.1.19",Jc=`/*!sc*/ `,Ja=typeof window<"u"&&typeof document<"u",Jp=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),ys=Object.freeze([]),vi=Object.freeze({});function Kp(e,t,n){return n===void 0&&(n=vi),e.theme!==n.theme&&e.theme||t||n.theme}var Ou=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),qp=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qp=/(^-|-$)/g;function dd(e){return e.replace(qp,"-").replace(Qp,"")}var eg=/(a)(d)/gi,fa=52,ud=function(e){return String.fromCharCode(e+(e>25?39:97))};function fc(e){var t,n="";for(t=Math.abs(e);t>fa;t=t/fa|0)n=ud(t%fa)+n;return(ud(t%fa)+n).replace(eg,"$1-$2")}var dl,Nu=5381,si=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pu=function(e){return si(Nu,e)};function tg(e){return fc(Pu(e)>>>0)}function ng(e){return e.displayName||e.name||"Component"}function ul(e){return typeof e=="string"&&!0}var Vu=typeof Symbol=="function"&&Symbol.for,Bu=Vu?Symbol.for("react.memo"):60115,rg=Vu?Symbol.for("react.forward_ref"):60112,ig={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},og={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fu={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ag=((dl={})[rg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dl[Bu]=Fu,dl);function hd(e){return("type"in(t=e)&&t.type.$$typeof)===Bu?Fu:"$$typeof"in e?ag[e.$$typeof]:ig;var t}var sg=Object.defineProperty,lg=Object.getOwnPropertyNames,fd=Object.getOwnPropertySymbols,cg=Object.getOwnPropertyDescriptor,dg=Object.getPrototypeOf,pd=Object.prototype;function zu(e,t,n){if(typeof t!="string"){if(pd){var i=dg(t);i&&i!==pd&&zu(e,i,n)}var o=lg(t);fd&&(o=o.concat(fd(t)));for(var a=hd(e),s=hd(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var ug=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw Bo(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,s=o;s=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(w+="".concat(E,","))}),c+="".concat(p).concat(m,'{content:"').concat(w,'"}').concat(Jc)},u=0;u0?".".concat(t):f},u=c.slice();u.push(function(f){f.type===ms&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Cg,n).replace(i,d))}),s.prefix&&u.push(Gp),u.push(zp);var h=function(f,g,p,m){g===void 0&&(g=""),p===void 0&&(p=""),m===void 0&&(m="&"),t=m,n=g,i=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(_g,""),E=Bp(p||g?"".concat(p," ").concat(g," { ").concat(w," }"):w);s.namespace&&(E=Gu(E,s.namespace));var k=[];return Xa(E,Zp(u.concat(Wp(function(S){return k.push(S)})))),k};return h.hash=c.length?c.reduce(function(f,g){return g.name||Bo(15),si(f,g.name)},Nu).toString():"",h}var jg=new Wu,gc=Sg(),Uu=Eo.createContext({shouldForwardProp:void 0,styleSheet:jg,stylis:gc});Uu.Consumer;Eo.createContext(void 0);function wd(){return Yp(Uu)}var kg=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=gc);var s=i.name+a.hash;o.hasNameForId(i.id,s)||o.insertRules(i.id,s,a(i.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,qc(this,function(){throw Bo(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gc),this.name+t.hash},e}(),Eg=function(e){return e>="A"&&e<="Z"};function xd(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=i(a,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}o=Sr(o,s),this.staticRulesId=s}else{for(var c=si(this.baseHash,i.hash),d="",u=0;u>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,i(d,".".concat(g),void 0,this.componentId)),o=Sr(o,g)}}return o},e}(),Ju=Eo.createContext(void 0);Ju.Consumer;var hl={};function Mg(e,t,n){var i=Kc(e),o=e,a=!ul(e),s=t.attrs,l=s===void 0?ys:s,c=t.componentId,d=c===void 0?function(y,$){var x=typeof y!="string"?"sc":dd(y);hl[x]=(hl[x]||0)+1;var C="".concat(x,"-").concat(tg(bs+x+hl[x]));return $?"".concat($,"-").concat(C):C}(t.displayName,t.parentComponentId):c,u=t.displayName,h=u===void 0?function(y){return ul(y)?"styled.".concat(y):"Styled(".concat(ng(y),")")}(e):u,f=t.displayName&&t.componentId?"".concat(dd(t.displayName),"-").concat(t.componentId):t.componentId||d,g=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,p=t.shouldForwardProp;if(i&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;p=function(y,$){return m(y,$)&&w(y,$)}}else p=m}var E=new Hg(n,f,i?o.componentStyle:void 0);function k(y,$){return function(x,C,A){var O=x.attrs,D=x.componentStyle,R=x.defaultProps,P=x.foldedComponentIds,F=x.styledComponentId,Z=x.target,I=Eo.useContext(Ju),V=wd(),T=x.shouldForwardProp||V.shouldForwardProp,z=Kp(C,I,R)||vi,M=function(B,ee,ce){for(var re,ne=Lt(Lt({},ee),{className:void 0,theme:ce}),we=0;we-1}function c3(e,t){var n=this.__data__,i=_s(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ti.prototype.clear=o3;Ti.prototype.delete=a3;Ti.prototype.get=s3;Ti.prototype.has=l3;Ti.prototype.set=c3;function Or(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&ea2(e)&&"desktop"in e,kd=(e,t)=>{const n={};return Ct(n,e,t),n},Ed=e=>{let t;const n=new Set,i=(u,h)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const g=t;t=h??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(p=>p(t,g))}},o=()=>t,c={setState:i,getState:o,getInitialState:()=>d,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{n.clear()}},d=t=e(i,o,c);return c},L3=e=>e?Ed(e):Ed;var s2={exports:{}},l2={},c2={exports:{}},d2={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bi=window.React;function A3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var R3=typeof Object.is=="function"?Object.is:A3,O3=bi.useState,N3=bi.useEffect,P3=bi.useLayoutEffect,V3=bi.useDebugValue;function B3(e,t){var n=t(),i=O3({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return P3(function(){o.value=n,o.getSnapshot=t,pl(o)&&a({inst:o})},[e,n,t]),N3(function(){return pl(o)&&a({inst:o}),e(function(){pl(o)&&a({inst:o})})},[e]),V3(n),n}function pl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!R3(e,n)}catch{return!0}}function F3(e,t){return t()}var z3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?F3:B3;d2.useSyncExternalStore=bi.useSyncExternalStore!==void 0?bi.useSyncExternalStore:z3;c2.exports=d2;var Z3=c2.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var js=window.React,W3=Z3;function G3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U3=typeof Object.is=="function"?Object.is:G3,Y3=W3.useSyncExternalStore,X3=js.useRef,J3=js.useEffect,K3=js.useMemo,q3=js.useDebugValue;l2.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var a=X3(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=K3(function(){function c(g){if(!d){if(d=!0,u=g,g=i(g),o!==void 0&&s.hasValue){var p=s.value;if(o(p,g))return h=p}return h=g}if(p=h,U3(u,g))return p;var m=i(g);return o!==void 0&&o(p,m)?(u=g,p):(u=g,h=m)}var d=!1,u,h,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,i,o]);var l=Y3(e,a[0],a[1]);return J3(function(){s.hasValue=!0,s.value=l},[l]),q3(l),l};s2.exports=l2;var Q3=s2.exports;const e5=Gt(Q3),t5=window.React,{useDebugValue:n5}=t5,{useSyncExternalStoreWithSelector:r5}=e5;const i5=e=>e;function o5(e,t=i5,n){const i=r5(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return n5(i),i}const Dd=e=>{const t=typeof e=="function"?L3(e):e,n=(i,o)=>o5(t,i,o);return Object.assign(n,t),n},ks=e=>e?Dd(e):Dd,u2=ks()(e=>({current:"desktop",changeCurrent:t=>{e(()=>({current:t}))}})),a5=window.React.useEffect;function _e(){const{current:e}=u2();return a5(()=>{},[]),{current:e,changeDevice:n=>{Mi.previewedDevice(n)}}}function h2({template:e,row:t,col:n=null,addId:i,lastPush:o=!0,device:a="desktop"}){return new Promise(s=>{const l=e.placements[Ze(a)],c=JSON.parse(JSON.stringify(l)),d=e.elements[i];i==="currency"&&(d.settings.currencies=window.brandyCustomizerData.currency.list),d!=null&&(t==="toggle"&&c.toggle!=null&&(c.toggle=o?[...c.toggle,d.id]:[d.id,...c.toggle]),t!=="toggle"&&n!=null&&(c[t][n]=o?[...c[t][n],d.id]:[d.id,...c[t][n]]),s(c))})}function f2({template:e,row:t,col:n,removeId:i,device:o="desktop"}){return new Promise(a=>{const s=e.placements[Ze(o)],l=JSON.parse(JSON.stringify(s));t==="toggle"&&(l.toggle=l.toggle.filter(c=>c!==i)),t!=="toggle"&&n!=null&&(l[t][n]=l[t][n].filter(c=>c!==i)),i==="toggle_button"&&(l.toggle=[]),a(l)})}const s5=e=>e==="header",Ze=(e="desktop")=>e==="tablet"?"mobile":e,p2=(e={top:[],middle:[],bottom:[],toggle:[]})=>{const t=Object.keys(e).reduce((n,i)=>i==="toggle"?[...n,...e[i]]:(e[i].forEach(o=>{n=[...n,...o]}),n),[]);return[...new Set(t)]},Ce=(e,t)=>{if(xi(e)){const n=e.desktop;return t==="mobile"?e.mobile??e.tablet??n:e[t]??n}return e},l5=()=>document.querySelector("#customize-preview iframe"),$d=(e,t=0)=>{setTimeout(()=>{e()},t)},g2=()=>{window.jQuery("#customize-header-actions #customize-save-button-wrapper > input").prop("disabled",!0).val("Published").removeClass("has-next-sibling"),window.jQuery("#customize-header-actions #customize-save-button-wrapper > button").css("display","none")},m2=()=>{window.jQuery("#customize-header-actions #customize-save-button-wrapper > input").prop("disabled",!1).val("Publish").addClass("has-next-sibling"),window.jQuery("#customize-header-actions #customize-save-button-wrapper > button").css("display","inline-block")},Es=e=>{const t=(window==null?void 0:window.brandyCustomizerData.content_variables)??{};return Object.keys(t).forEach(n=>{e=e.replace(`[${n}]`,t[n])}),e};var c5="Expected a function",v2="__lodash_hash_undefined__",w2=1/0,d5="[object Function]",u5="[object GeneratorFunction]",h5="[object Symbol]",f5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p5=/^\w*$/,g5=/^\./,m5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v5=/[\\^$.*+?()[\]{}|]/g,w5=/\\(\\)?/g,x5=/^\[object .+?Constructor\]$/,b5=typeof tt=="object"&&tt&&tt.Object===Object&&tt,y5=typeof self=="object"&&self&&self.Object===Object&&self,n1=b5||y5||Function("return this")();function C5(e,t){return e==null?void 0:e[t]}function _5(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var S5=Array.prototype,j5=Function.prototype,x2=Object.prototype,gl=n1["__core-js_shared__"],Hd=function(){var e=/[^.]+$/.exec(gl&&gl.keys&&gl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),b2=j5.toString,r1=x2.hasOwnProperty,y2=x2.toString,k5=RegExp("^"+b2.call(r1).replace(v5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Md=n1.Symbol,E5=S5.splice,D5=C2(n1,"Map"),Ho=C2(Object,"create"),Id=Md?Md.prototype:void 0,Td=Id?Id.toString:void 0;function Ir(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function N5(e,t){var n=this.__data__,i=Ds(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Li.prototype.clear=L5;Li.prototype.delete=A5;Li.prototype.get=R5;Li.prototype.has=O5;Li.prototype.set=N5;function Nr(e){var t=-1,n=e?e.length:0;for(this.clear();++t{const a=window.brandySettingsLayouts[o??e];a!=null&&Object.values(a).forEach(s=>{s.sections.forEach(l=>{l.components.forEach(c=>{c.render_options!=null&&c.render_options.type==="data_attribute"&&c.render_options.data.forEach(d=>{if(ye(t,d.value_path)===void 0)return;let u=ye(t,d.value_path);const h=ye(t,d.value_path.map(p=>p==="mobile"||p==="tablet"?"desktop":p)),f=ye(t,d.value_path.map(p=>p==="mobile"?"tablet":p));u==null&&(u=f??u),u==null&&(u=h??u),u=Ce(u,n),d.fallback_value!=null&&!u&&(u=d.fallback_value),j2(u)&&(u=Es(u)),d.type==="switcher"&&d.enabled_value!=null&&d.disabled_value!=null&&(u?u=d.enabled_value:u=d.disabled_value);const g=De(d.select_from_body?d.selector:`${xt(e,i)} ${d.selector}`);if(d.name==="class"){d.enabled_class!=null?u==(d==null?void 0:d.enabled_value)||(d==null?void 0:d.enabled_value)==null&&u?(qr(g).addClass(d.enabled_class??""),qr(g).removeClass(d.disabled_class)):(qr(g).removeClass(d.enabled_class),qr(g).addClass(d.disabled_class??"")):qr(g).attr(d.name,d.name==="class"?`${d.default_class} ${u}`:u);return}qr(g).attr(d.name,u)})})})})},fm=window.jQuery,pm=({sectionId:e,settings:t,device:n,builder:i="header",clonedFromId:o})=>{const a=window.brandySettingsLayouts[o??e];a!=null&&Object.values(a).forEach(s=>{s.sections.forEach(l=>{l.components.forEach(c=>{c.render_options!=null&&c.render_options.type==="content"&&c.render_options.data.forEach(d=>{if(ye(t,d.value_path)===void 0)return;const u=De(`${xt(e,i)} ${d.selector}`);let h=ye(t,d.value_path);const f=ye(t,d.value_path.map(g=>g==="mobile"||g==="tablet"?"desktop":g));h==null&&f!=null&&(h=f),j2(h)&&(h=Es(h)),fm(u).html(xi(h)?Ce(h,n):h)})})})})},gm=(e,t="desktop",n)=>{const i=[];if(e.font_style){const l=Ce(e.font_style,t);i.push({name:"font-weight",value:l.weight.toString(),selector:n},{name:"font-style",value:l.italic?"italic":"inherit",selector:n})}else i.push({name:"font-weight",value:"",selector:n},{name:"font-style",value:"",selector:n});const o=Ce(e.font_size,t);o!=null&&o.value?i.push({name:"font-size",value:o.value+o.unit,selector:n}):i.push({name:"font-size",value:"inherit",selector:n});const a=Ce(e.line_height,t);a!=null&&a.value?i.push({name:"line-height",value:a.value+a.unit,selector:n}):i.push({name:"line-height",value:"inherit",selector:n});const s=Ce(e.letter_spacing,t);return s!=null&&s.value?i.push({name:"letter-spacing",value:s.value+s.unit,selector:n}):i.push({name:"letter-spacing",value:"inherit",selector:n}),e.transform?i.push({name:"text-transform",value:Ce(e.transform,t),selector:n}):i.push({name:"text-transform",value:"auto",selector:n}),e.decoration!=null?i.push({name:"text-decoration",value:Ce(e.decoration,t),selector:n}):i.push({name:"text-decoration",value:"none",selector:n}),i},or=e=>`${e.value}${e.unit}`,mm=(e,t,n,i)=>{const o=[];return e.type==="solid"&&o.push({name:`${n}-main`,value:e.solid_color,selector:i}),e.type==="gradient"&&o.push({name:`${n}-main`,value:e.gradient_color,selector:i},{name:`${n}-position`,value:0,selector:i},{name:`${n}-overlay-color`,value:"transparent",selector:i}),e.type==="image"&&o.push({name:`${n}-main`,value:`url(${e.image.url})`,selector:i},{name:`${n}-overlay-color`,value:e.image.overlay_color,selector:i},{name:`${n}-size`,value:e.image.size,selector:i},{name:`${n}-position`,value:e.image.position=="custom"?or(e.image.left)+" "+or(e.image.top):e.image.position,selector:i}),o},E2=e=>e.unit==="wp"?e.top==e.right&&e.right==e.bottom&&e.bottom==e.left?`${e.top}`:`${e.top} ${e.right} ${e.bottom} ${e.left}`:e.top==e.right&&e.right==e.bottom&&e.bottom==e.left?`${e.top}${e.unit}`:`${e.top}${e.unit} ${e.right}${e.unit} ${e.bottom}${e.unit} ${e.left}${e.unit}`,vm=(e,t,n)=>{const i=["top","right","bottom","left"],o=[];return i.forEach(a=>{o.push({name:`${e}-${a}`,value:t.unit==="wp"?t[a]:`${t[a]}${t.unit}`,selector:n})}),o},wm=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,xm=e=>{if(!e.enabled)return"none";let t=e.custom_value;return e.type==="default"&&(t={x:0,y:4,blur:16,spread:0,color:"rgba(0, 0, 0, 0.06)"}),e.type==="small"&&(t={x:0,y:4,blur:16,spread:0,color:"rgba(0, 0, 0, 0.05)"}),e.type==="medium"&&(t={x:0,y:6,blur:20,spread:0,color:"rgba(0, 0, 0, 0.10)"}),e.type==="large"&&(t={x:0,y:10,blur:26,spread:0,color:"rgba(0, 0, 0, 0.16)"}),wm(t)},ml=window.jQuery,Hn=({sectionId:e,settings:t,device:n,builder:i="header",clonedFromId:o})=>{const a=window.brandySettingsLayouts[o??e];if(a==null)return;let s=[];if(Object.values(a).forEach(l=>{l.sections.forEach(c=>{c.components.forEach(d=>{d.render_options!=null&&d.render_options.type==="variable"&&(s=[...s,...bm(d,t,n)])})})}),s.length>0){const l=De(xt(e,i));s.forEach(c=>{if(c.selector){const d=ml(l).find(c.selector);d&&ml(d).css(c.name,c.value)}else ml(l).css(c.name,c.value)})}};function bm(e,t,n){let i=[];return e.render_options.data.forEach(({type:o,value_path:a,name:s,enabled_value:l,disabled_value:c,mapping_variables:d,selector:u})=>{let h=null;switch(o){case"color":h=ym;break;case"dimension":h=Cm;break;case"typography":h=_m;break;case"spacing":h=Sm;break;case"background":h=jm;break;case"switcher":h=km;break;case"box_shadow":h=Em;break;case"custom_variables":h=Dm;break;default:h=$m}h!==null&&(i=[...i,...h(t,{variableName:s,valuePath:a,enabledValue:l,disabledValue:c,mappingVariables:d,selector:u??""},n)])}),i}function ym(e,t,n){const i=[],o=ye(e,t.valuePath);return o==null?[]:(Object.entries(o).forEach(([a,s])=>{if(a==="enabled_gradient")return;const l=Ce(o.hover,n),c=Ce(o.normal,n);let d=Ce(s,n);a!=="normal"&&!d&&(d=l),d||(d=c),d||(d="currentColor"),i.push({name:`${t.variableName}-${a}`,value:d,selector:t.selector})}),i)}function Cm(e,t,n){const i=[],o=ye(e,t.valuePath);return o==null?[]:(i.push({name:`${t.variableName}`,value:or(Ce(o,n)),selector:t.selector}),i)}function _m(e,t,n){let i=ye(e,t.valuePath);return i==null&&(i={}),gm(i,n,t.selector)}function Sm(e,t,n){const i=ye(e,t.valuePath);if(i==null)return[];const o=[];return o.push({name:`${t.variableName}`,value:E2(Ce(i,n)),selector:t.selector}),o.push(...vm(t.variableName,Ce(i,n),t.selector)),o}function jm(e,t,n){const i=ye(e,["background"]);return i==null?[]:mm(i,n,t.variableName,t.selector)}function km(e,t,n){const i=ye(e,t.valuePath);if(i==null)return[];const o=Ce(i,n),a=[];return a.push({name:`${t.variableName}`,value:o?t.enabledValue:t.disabledValue,selector:t.selector}),a}function Em(e,t,n){const i=ye(e,t.valuePath);if(i==null)return[];const o=Ce(i,n),a=[];return a.push({name:t.variableName,value:xm(o),selector:t.selector}),a}function Dm(e,t,n){if(t.mappingVariables==null){let s=ye(e,t.valuePath);return s==null?[]:(s=Ce(s,n),[{name:t.variableName,value:s,selector:t.selector}])}const o=[],a=ye(e,t.valuePath);return a==null||t.mappingVariables.forEach(s=>{const l=s.condition.operator,c=s.path;let d=a;if(c.length>0&&(d=ye(a,c)),d==null)return;let u=!1;l==="equal"&&d===s.condition.value&&(u=!0),l==="not_equal"&&d!==s.condition.value&&(u=!0),l==="contains"&&d.includes(s.condition.value)&&(u=!0),l==="not_contains"&&!d.includes(s.condition.value)&&(u=!0),l==="in_array"&&s.condition.value.includes(d)&&(u=!0),l==="not_in_array"&&!s.condition.value.includes(d)&&(u=!0),u&&s.mapping[n]&&Object.entries(s.mapping[n]).forEach(([h,f])=>{o.push({name:h,value:f,selector:t.selector})})}),o}function $m(e,t,n){let i=ye(e,t.valuePath);if(i==null)return[];i=Ce(i,n);const o=[];return o.push({name:`${t.variableName}`,value:i.toString(),selector:t.selector}),o}const Fo=v.button.withConfig({displayName:"Buttonstyled__Button",componentId:"sc-43c5mk-0"})(({rounded:e=!1,primary:t=!1,secondary:n=!1,disabled:i})=>[{width:"100%",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity, 1))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"1rem",lineHeight:"1.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},e&&{borderRadius:"0.125rem"},t&&!i&&{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))","&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(19 94 150 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(19 94 150 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}},n&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity, 1))"},i&&{cursor:"not-allowed","--tw-border-opacity":"1",borderColor:"rgb(220 220 222 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(167 170 173 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(167 170 173 / var(--tw-text-opacity, 1))"}}]),a1=v.div.withConfig({displayName:"Layoutsstyled__StyledSettingsLayout",componentId:"sc-o6y3t-0"})({height:"fit-content"}),ct=v.label.withConfig({displayName:"Layoutsstyled__StyledSettingLabel",componentId:"sc-o6y3t-1"})({display:"inline-block",fontSize:"13px",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),zo=v.div.withConfig({displayName:"Layoutsstyled__StyledSettingsSection",componentId:"sc-o6y3t-2"})({position:"relative",display:"flex",flexDirection:"column",gap:"16px",padding:"1.25rem","&::after":{content:"var(--tw-content)",position:"absolute",bottom:"0px",left:"50%",height:"1px",width:"calc(100% - 2.5rem)","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-bg-opacity":"1",backgroundColor:"rgb(227 232 238 / var(--tw-bg-opacity, 1))"},"&:last-child::after":{content:"var(--tw-content)",height:"0px"}}),D2=v.div.withConfig({displayName:"Layoutsstyled__StyledSectionLayout",componentId:"sc-o6y3t-3"})({height:"fit-content"});var $2={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",s=0;ss5(e)?Ie:Me,[e])}const Im=window.React.useMemo,Tm=ue([""," .brandy-radio-item{"," &:first-child{border-start-start-radius:4px;border-end-start-radius:4px;}&:last-child{border-start-end-radius:4px;border-end-end-radius:4px;border-right-width:1px !important;}}"],{display:"flex",width:"100%"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),Lm={selected:{multiple:ue([""," & + *{","}svg *[fill]{","}svg *[stroke]{","}"],{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1 !important",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1)) !important","--tw-text-opacity":"1 !important",color:"rgb(255 255 255 / var(--tw-text-opacity, 1)) !important"},{"--tw-border-opacity":"1",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))"},{fill:"#fff !important"},{stroke:"#fff !important"}),single:ue([""," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}&.selected + *{","}&.selected{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"},{borderRightWidth:"1px"})}};function At({options:e=[],selected:t="",onChange:n=()=>!1,className:i="",multiple:o=!1,itemCss:a=null,canDeselect:s=!1}){const l=Im(()=>t??(o?[e[0].value]:e[0].value),[o,t,e]),c=d=>{let u;o&&Array.isArray(l)?l.includes(d)?u=l.filter(f=>f!==d):u=[...l,d]:u=d,((o&&Array.isArray(l)?u.length!=l.length:u!==l)||s)&&n(u)};return r.jsx(Am,{className:`brandy-radio-group ${i} items-center justify-center`,children:e.map(d=>{const u=o?t==null?void 0:t.includes(d.value):t===d.value;return r.jsxs(r.Fragment,{children:[r.jsx(Rm,{className:ke(["brandy-radio-item min-h-[32px] p-2 relative inline-flex px-3 items-center flex-auto justify-center border-r-0 transition-all duration-100 ease-in cursor-pointer",u&&"selected",e.length===3&&"w-1/3",e.length===2&&"w-1/2"]),onClick:()=>{c(d.value)},$_css2:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},a??[u?Lm.selected[o?"multiple":"single"]:"",u&&o&&ue([""," &.selected ~ .selected{","}"],{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity, 1)) !important","&:first-child":{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity, 1)) !important"}},{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(227 232 238 / var(--tw-border-opacity, 1)) !important"})]],children:typeof d.label=="string"?r.jsx("span",{dangerouslySetInnerHTML:{__html:d.label}}):d.label},d.value),d.title&&r.jsx("span",{className:`-mt-1 font-[300] ${u&&"font-[500]"}`,children:d.title},`${d.value}-descripiton`)]})})})}var Am=v("div")`${Tm}`,Rm=v("span").withConfig({displayName:"RadioGroup___StyledSpan",componentId:"sc-60p899-0"})(["",""],e=>e.$_css2);const Om=window.React.useMemo;function Mn(e){const{current:t}=_e(),n=Om(()=>Ce(e.value,t),[t,e.value]);return r.jsxs("div",{className:e.className,children:[r.jsx(at,{title:e.title}),r.jsx(At,{className:"brandy-icon-group",selected:n,options:e.options??[],onChange:e.onChange,itemCss:e.itemCss??[ue(['&.selected{border:1px solid #000;svg{*[fill]:not([fill="white"]){fill:#000 !important;}*[stroke]:not([stroke="white"]){stroke:#000 !important;}}}&:hover{svg{*[fill]:not([fill="white"]){fill:#000 !important;}*[stroke]:not([stroke="white"]){stroke:#000 !important;}}}svg *{transition:all ease-in-out 0.1s;}'])]})]})}const Ld=window.React;var Ad=function(t){return t.reduce(function(n,i){var o=i[0],a=i[1];return n[o]=a,n},{})},Rd=typeof window<"u"&&window.document&&window.document.createElement?Ld.useLayoutEffect:Ld.useEffect,Rt="top",cn="bottom",dn="right",Ot="left",s1="auto",Zo=[Rt,cn,dn,Ot],yi="start",Mo="end",Nm="clippingParents",H2="viewport",Ui="popper",Pm="reference",Od=Zo.reduce(function(e,t){return e.concat([t+"-"+yi,t+"-"+Mo])},[]),M2=[].concat(Zo,[s1]).reduce(function(e,t){return e.concat([t,t+"-"+yi,t+"-"+Mo])},[]),Vm="beforeRead",Bm="read",Fm="afterRead",zm="beforeMain",Zm="main",Wm="afterMain",Gm="beforeWrite",Um="write",Ym="afterWrite",Xm=[Vm,Bm,Fm,zm,Zm,Wm,Gm,Um,Ym];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function zt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tr(e){var t=zt(e).Element;return e instanceof t||e instanceof Element}function sn(e){var t=zt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function l1(e){if(typeof ShadowRoot>"u")return!1;var t=zt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jm(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!sn(a)||!Dn(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function Km(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],a=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!sn(o)||!Dn(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const qm={name:"applyStyles",enabled:!0,phase:"write",fn:Jm,effect:Km,requires:["computeStyles"]};function kn(e){return e.split("-")[0]}var Er=Math.max,Qa=Math.min,Ci=Math.round;function vc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function I2(){return!/^((?!chrome|android).)*safari/i.test(vc())}function _i(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&sn(e)&&(o=e.offsetWidth>0&&Ci(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ci(i.height)/e.offsetHeight||1);var s=Tr(e)?zt(e):window,l=s.visualViewport,c=!I2()&&n,d=(i.left+(c&&l?l.offsetLeft:0))/o,u=(i.top+(c&&l?l.offsetTop:0))/a,h=i.width/o,f=i.height/a;return{width:h,height:f,top:u,right:d+h,bottom:u+f,left:d,x:d,y:u}}function c1(e){var t=_i(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function T2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&l1(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function zn(e){return zt(e).getComputedStyle(e)}function Qm(e){return["table","td","th"].indexOf(Dn(e))>=0}function lr(e){return((Tr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(l1(e)?e.host:null)||lr(e)}function Nd(e){return!sn(e)||zn(e).position==="fixed"?null:e.offsetParent}function e4(e){var t=/firefox/i.test(vc()),n=/Trident/i.test(vc());if(n&&sn(e)){var i=zn(e);if(i.position==="fixed")return null}var o=Hs(e);for(l1(o)&&(o=o.host);sn(o)&&["html","body"].indexOf(Dn(o))<0;){var a=zn(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Wo(e){for(var t=zt(e),n=Nd(e);n&&Qm(n)&&zn(n).position==="static";)n=Nd(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&zn(n).position==="static")?t:n||e4(e)||t}function d1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function po(e,t,n){return Er(e,Qa(t,n))}function t4(e,t,n){var i=po(e,t,n);return i>n?n:i}function L2(){return{top:0,right:0,bottom:0,left:0}}function A2(e){return Object.assign({},L2(),e)}function R2(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var n4=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,A2(typeof t!="number"?t:R2(t,Zo))};function r4(e){var t,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=kn(n.placement),c=d1(l),d=[Ot,dn].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var h=n4(o.padding,n),f=c1(a),g=c==="y"?Rt:Ot,p=c==="y"?cn:dn,m=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],E=Wo(a),k=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,S=m/2-w/2,y=h[g],$=k-f[u]-h[p],x=k/2-f[u]/2+S,C=po(y,x,$),A=c;n.modifiersData[i]=(t={},t[A]=C,t.centerOffset=C-x,t)}}function i4(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||T2(t.elements.popper,o)&&(t.elements.arrow=o))}const o4={name:"arrow",enabled:!0,phase:"main",fn:r4,effect:i4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Si(e){return e.split("-")[1]}var a4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s4(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Ci(n*o)/o||0,y:Ci(i*o)/o||0}}function Pd(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=s.x,g=f===void 0?0:f,p=s.y,m=p===void 0?0:p,w=typeof u=="function"?u({x:g,y:m}):{x:g,y:m};g=w.x,m=w.y;var E=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),S=Ot,y=Rt,$=window;if(d){var x=Wo(n),C="clientHeight",A="clientWidth";if(x===zt(n)&&(x=lr(n),zn(x).position!=="static"&&l==="absolute"&&(C="scrollHeight",A="scrollWidth")),x=x,o===Rt||(o===Ot||o===dn)&&a===Mo){y=cn;var O=h&&x===$&&$.visualViewport?$.visualViewport.height:x[C];m-=O-i.height,m*=c?1:-1}if(o===Ot||(o===Rt||o===cn)&&a===Mo){S=dn;var D=h&&x===$&&$.visualViewport?$.visualViewport.width:x[A];g-=D-i.width,g*=c?1:-1}}var R=Object.assign({position:l},d&&a4),P=u===!0?s4({x:g,y:m},zt(n)):{x:g,y:m};if(g=P.x,m=P.y,c){var F;return Object.assign({},R,(F={},F[y]=k?"0":"",F[S]=E?"0":"",F.transform=($.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",F))}return Object.assign({},R,(t={},t[y]=k?m+"px":"",t[S]=E?g+"px":"",t.transform="",t))}function l4(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:kn(t.placement),variation:Si(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Pd(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pd(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const c4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:l4,data:{}};var ga={passive:!0};function d4(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=o===void 0?!0:o,s=i.resize,l=s===void 0?!0:s,c=zt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,ga)}),l&&c.addEventListener("resize",n.update,ga),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ga)}),l&&c.removeEventListener("resize",n.update,ga)}}const u4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:d4,data:{}};var h4={left:"right",right:"left",bottom:"top",top:"bottom"};function Na(e){return e.replace(/left|right|bottom|top/g,function(t){return h4[t]})}var f4={start:"end",end:"start"};function Vd(e){return e.replace(/start|end/g,function(t){return f4[t]})}function u1(e){var t=zt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function h1(e){return _i(lr(e)).left+u1(e).scrollLeft}function p4(e,t){var n=zt(e),i=lr(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=I2();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+h1(e),y:c}}function g4(e){var t,n=lr(e),i=u1(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Er(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Er(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+h1(e),c=-i.scrollTop;return zn(o||n).direction==="rtl"&&(l+=Er(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function f1(e){var t=zn(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function O2(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:sn(e)&&f1(e)?e:O2(Hs(e))}function go(e,t){var n;t===void 0&&(t=[]);var i=O2(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=zt(i),s=o?[a].concat(a.visualViewport||[],f1(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(go(Hs(s)))}function wc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function m4(e,t){var n=_i(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Bd(e,t,n){return t===H2?wc(p4(e,n)):Tr(t)?m4(t,n):wc(g4(lr(e)))}function v4(e){var t=go(Hs(e)),n=["absolute","fixed"].indexOf(zn(e).position)>=0,i=n&&sn(e)?Wo(e):e;return Tr(i)?t.filter(function(o){return Tr(o)&&T2(o,i)&&Dn(o)!=="body"}):[]}function w4(e,t,n,i){var o=t==="clippingParents"?v4(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var u=Bd(e,d,i);return c.top=Er(u.top,c.top),c.right=Qa(u.right,c.right),c.bottom=Qa(u.bottom,c.bottom),c.left=Er(u.left,c.left),c},Bd(e,s,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function N2(e){var t=e.reference,n=e.element,i=e.placement,o=i?kn(i):null,a=i?Si(i):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Rt:c={x:s,y:t.y-n.height};break;case cn:c={x:s,y:t.y+t.height};break;case dn:c={x:t.x+t.width,y:l};break;case Ot:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?d1(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(a){case yi:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Mo:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function Io(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?Nm:l,d=n.rootBoundary,u=d===void 0?H2:d,h=n.elementContext,f=h===void 0?Ui:h,g=n.altBoundary,p=g===void 0?!1:g,m=n.padding,w=m===void 0?0:m,E=A2(typeof w!="number"?w:R2(w,Zo)),k=f===Ui?Pm:Ui,S=e.rects.popper,y=e.elements[p?k:f],$=w4(Tr(y)?y:y.contextElement||lr(e.elements.popper),c,u,s),x=_i(e.elements.reference),C=N2({reference:x,element:S,strategy:"absolute",placement:o}),A=wc(Object.assign({},S,C)),O=f===Ui?A:x,D={top:$.top-O.top+E.top,bottom:O.bottom-$.bottom+E.bottom,left:$.left-O.left+E.left,right:O.right-$.right+E.right},R=e.modifiersData.offset;if(f===Ui&&R){var P=R[o];Object.keys(D).forEach(function(F){var Z=[dn,cn].indexOf(F)>=0?1:-1,I=[Rt,cn].indexOf(F)>=0?"y":"x";D[F]+=P[I]*Z})}return D}function x4(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?M2:c,u=Si(i),h=u?l?Od:Od.filter(function(p){return Si(p)===u}):Zo,f=h.filter(function(p){return d.indexOf(p)>=0});f.length===0&&(f=h);var g=f.reduce(function(p,m){return p[m]=Io(e,{placement:m,boundary:o,rootBoundary:a,padding:s})[kn(m)],p},{});return Object.keys(g).sort(function(p,m){return g[p]-g[m]})}function b4(e){if(kn(e)===s1)return[];var t=Na(e);return[Vd(e),t,Vd(t)]}function y4(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,m=n.allowedAutoPlacements,w=t.options.placement,E=kn(w),k=E===w,S=c||(k||!p?[Na(w)]:b4(w)),y=[w].concat(S).reduce(function(de,B){return de.concat(kn(B)===s1?x4(t,{placement:B,boundary:u,rootBoundary:h,padding:d,flipVariations:p,allowedAutoPlacements:m}):B)},[]),$=t.rects.reference,x=t.rects.popper,C=new Map,A=!0,O=y[0],D=0;D=0,I=Z?"width":"height",V=Io(t,{placement:R,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),T=Z?F?dn:Ot:F?cn:Rt;$[I]>x[I]&&(T=Na(T));var z=Na(T),M=[];if(a&&M.push(V[P]<=0),l&&M.push(V[T]<=0,V[z]<=0),M.every(function(de){return de})){O=R,A=!1;break}C.set(R,M)}if(A)for(var W=p?3:1,X=function(B){var ee=y.find(function(ce){var re=C.get(ce);if(re)return re.slice(0,B).every(function(ne){return ne})});if(ee)return O=ee,"break"},Y=W;Y>0;Y--){var le=X(Y);if(le==="break")break}t.placement!==O&&(t.modifiersData[i]._skip=!0,t.placement=O,t.reset=!0)}}const C4={name:"flip",enabled:!0,phase:"main",fn:y4,requiresIfExists:["offset"],data:{_skip:!1}};function Fd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zd(e){return[Rt,dn,cn,Ot].some(function(t){return e[t]>=0})}function _4(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Io(t,{elementContext:"reference"}),l=Io(t,{altBoundary:!0}),c=Fd(s,i),d=Fd(l,o,a),u=zd(c),h=zd(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const S4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_4};function j4(e,t,n){var i=kn(e),o=[Ot,Rt].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Ot,dn].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function k4(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=M2.reduce(function(u,h){return u[h]=j4(h,t.rects,a),u},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}const E4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k4};function D4(e){var t=e.state,n=e.name;t.modifiersData[n]=N2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $4={name:"popperOffsets",enabled:!0,phase:"read",fn:D4,data:{}};function H4(e){return e==="x"?"y":"x"}function M4(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,g=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,w=Io(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),E=kn(t.placement),k=Si(t.placement),S=!k,y=d1(E),$=H4(y),x=t.modifiersData.popperOffsets,C=t.rects.reference,A=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(a){var F,Z=y==="y"?Rt:Ot,I=y==="y"?cn:dn,V=y==="y"?"height":"width",T=x[y],z=T+w[Z],M=T-w[I],W=g?-A[V]/2:0,X=k===yi?C[V]:A[V],Y=k===yi?-A[V]:-C[V],le=t.elements.arrow,de=g&&le?c1(le):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:L2(),ee=B[Z],ce=B[I],re=po(0,C[V],de[V]),ne=S?C[V]/2-W-re-ee-D.mainAxis:X-re-ee-D.mainAxis,we=S?-C[V]/2+W+re+ce+D.mainAxis:Y+re+ce+D.mainAxis,Ae=t.elements.arrow&&Wo(t.elements.arrow),Te=Ae?y==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,b=(F=R==null?void 0:R[y])!=null?F:0,H=T+ne-b-Te,j=T+we-b,G=po(g?Qa(z,H):z,T,g?Er(M,j):M);x[y]=G,P[y]=G-T}if(l){var K,Q=y==="x"?Rt:Ot,fe=y==="x"?cn:dn,se=x[$],$e=$==="y"?"height":"width",Ve=se+w[Q],Xt=se-w[fe],Ke=[Rt,Ot].indexOf(E)!==-1,Wr=(K=R==null?void 0:R[$])!=null?K:0,dr=Ke?Ve:se-C[$e]-A[$e]-Wr+D.altAxis,Jt=Ke?se+C[$e]+A[$e]-Wr-D.altAxis:Xt,Tn=g&&Ke?t4(dr,se,Jt):po(g?dr:Ve,se,g?Jt:Xt);x[$]=Tn,P[$]=Tn-se}t.modifiersData[i]=P}}const I4={name:"preventOverflow",enabled:!0,phase:"main",fn:M4,requiresIfExists:["offset"]};function T4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function L4(e){return e===zt(e)||!sn(e)?u1(e):T4(e)}function A4(e){var t=e.getBoundingClientRect(),n=Ci(t.width)/e.offsetWidth||1,i=Ci(t.height)/e.offsetHeight||1;return n!==1||i!==1}function R4(e,t,n){n===void 0&&(n=!1);var i=sn(t),o=sn(t)&&A4(t),a=lr(t),s=_i(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((Dn(t)!=="body"||f1(a))&&(l=L4(t)),sn(t)?(c=_i(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=h1(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function O4(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),i}function N4(e){var t=O4(e);return Xm.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function P4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function V4(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zd={placement:"bottom",modifiers:[],strategy:"absolute"};function Wd(){for(var e=arguments.length,t=new Array(e),n=0;n"u"?tt:window,ma=["moz","webkit"],ui="AnimationFrame",ji=Bn["request"+ui],To=Bn["cancel"+ui]||Bn["cancelRequest"+ui];for(var Xi=0;!ji&&Xi=0;o--){var a=Ud[o]+i;if(a in n)return a}return!1},rv=sv,iv=/\s/,ov=/(_|-|\.|:)/,av=/([a-z][A-Z]|[A-Z][a-z])/;function sv(e){return iv.test(e)?e.toLowerCase():ov.test(e)?(cv(e)||e).toLowerCase():av.test(e)?uv(e).toLowerCase():e.toLowerCase()}var lv=/[\W_]+(.|$)/g;function cv(e){return e.replace(lv,function(t,n){return n?" "+n:""})}var dv=/(.)([A-Z]+)/g;function uv(e){return e.replace(dv,function(t,n,i){return n+" "+i.toLowerCase().split("").join(" ")})}var hv=rv,fv=pv;function pv(e){return hv(e).replace(/[\W_]+(.|$)/g,function(t,n){return n?" "+n:""}).trim()}var gv=fv,mv=vv;function vv(e){return gv(e).replace(/\s(\w)/g,function(t,n){return n.toUpperCase()})}var wv={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},xv=function(e,t){return typeof t=="number"&&!wv[e]?t+"px":t},bv=nv,yv=mv,Va={float:"cssFloat"},Cv=xv;function es(e,t,n){var i=Va[t];if(typeof i>"u"&&(i=Sv(t)),i){if(n===void 0)return e.style[i];e.style[i]=Cv(i,n)}}function _v(e,t){for(var n in t)t.hasOwnProperty(n)&&es(e,n,t[n])}function Sv(e){var t=yv(e),n=bv(t);return Va[t]=Va[e]=Va[n]=n,n}function B2(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:_v(arguments[0],arguments[1]):es(arguments[0],arguments[1],arguments[2])}Is.exports=B2;Is.exports.set=B2;Is.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(n,i){return n[i]=es(e,i||""),n},{}):es(e,t||"")};var F2=Is.exports,z2={exports:{}},jv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kv=jv,Ev=kv;function Z2(){}function W2(){}W2.resetWarningCache=Z2;var Dv=function(){function e(i,o,a,s,l,c){if(c!==Ev){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:W2,resetWarningCache:Z2};return n.PropTypes=n,n};z2.exports=Dv();var $v=z2.exports,G2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}})(G2);var U2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=F2,n=i(t);function i(s){return s&&s.__esModule?s:{default:s}}var o=!1;function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(s&&o!==!1)return o;if(typeof document<"u"){var l=document.createElement("div");(0,n.default)(l,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(l),o=l.offsetWidth-l.clientWidth,document.body.removeChild(l)}else o=0;return o||0}})(U2);var Y2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}})(Y2);var X2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var i=n.clientWidth,o=getComputedStyle(n),a=o.paddingLeft,s=o.paddingRight;return i-parseFloat(a)-parseFloat(s)}})(X2);var J2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var i=n.clientHeight,o=getComputedStyle(n),a=o.paddingTop,s=o.paddingBottom;return i-parseFloat(a)-parseFloat(s)}})(J2);var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};Ut.containerStyleAutoHeight={height:"auto"};Ut.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};Ut.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};Ut.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};Ut.trackHorizontalStyleDefault={position:"absolute",height:6};Ut.trackVerticalStyleDefault={position:"absolute",width:6};Ut.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};Ut.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};Ut.disableSelectStyle={userSelect:"none"};Ut.disableSelectStyleReset={userSelect:""};var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});var ar=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function Iv(e){return Go.default.createElement("div",e)}function Tv(e){var t=e.style,n=Ts(e,["style"]),i=ar({},t,{right:2,bottom:2,left:2,borderRadius:3});return Go.default.createElement("div",ar({style:i},n))}function Lv(e){var t=e.style,n=Ts(e,["style"]),i=ar({},t,{right:2,bottom:2,top:2,borderRadius:3});return Go.default.createElement("div",ar({style:i},n))}function Av(e){var t=e.style,n=Ts(e,["style"]),i=ar({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Go.default.createElement("div",ar({style:i},n))}function Rv(e){var t=e.style,n=Ts(e,["style"]),i=ar({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Go.default.createElement("div",ar({style:i},n))}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(P){for(var F=1;F=0||Object.prototype.hasOwnProperty.call(P,I)&&(Z[I]=P[I]);return Z}function A(P,F){if(!(P instanceof F))throw new TypeError("Cannot call a class as a function")}function O(P,F){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:P}function D(P,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);P.prototype=Object.create(F&&F.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(P,F):P.__proto__=F)}var R=function(P){D(F,P);function F(Z){var I;A(this,F);for(var V=arguments.length,T=Array(V>1?V-1:0),z=1;z0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=I)}},{key:"scrollTop",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=I)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var I=this.view,V=this.trackHorizontal,T=this.trackVertical,z=this.thumbHorizontal,M=this.thumbVertical;I.addEventListener("scroll",this.handleScroll),(0,g.default)()&&(V.addEventListener("mouseenter",this.handleTrackMouseEnter),V.addEventListener("mouseleave",this.handleTrackMouseLeave),V.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),T.addEventListener("mouseenter",this.handleTrackMouseEnter),T.addEventListener("mouseleave",this.handleTrackMouseLeave),T.addEventListener("mousedown",this.handleVerticalTrackMouseDown),z.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var I=this.view,V=this.trackHorizontal,T=this.trackVertical,z=this.thumbHorizontal,M=this.thumbVertical;I.removeEventListener("scroll",this.handleScroll),(0,g.default)()&&(V.removeEventListener("mouseenter",this.handleTrackMouseEnter),V.removeEventListener("mouseleave",this.handleTrackMouseLeave),V.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),T.removeEventListener("mouseenter",this.handleTrackMouseEnter),T.removeEventListener("mouseleave",this.handleTrackMouseLeave),T.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),z.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(I){var V=this,T=this.props,z=T.onScroll,M=T.onScrollFrame;z&&z(I),this.update(function(W){var X=W.scrollLeft,Y=W.scrollTop;V.viewScrollLeft=X,V.viewScrollTop=Y,M&&M(W)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var I=this.props.onScrollStart;I&&I(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var I=this.props.autoHide;I&&this.showTracks()}},{key:"handleScrollStop",value:function(){var I=this.props.onScrollStop;I&&I(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var I=this.props.autoHide;I&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,g.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(I){I.preventDefault();var V=I.target,T=I.clientX,z=V.getBoundingClientRect(),M=z.left,W=this.getThumbHorizontalWidth(),X=Math.abs(M-T)-W/2;this.view.scrollLeft=this.getScrollLeftForOffset(X)}},{key:"handleVerticalTrackMouseDown",value:function(I){I.preventDefault();var V=I.target,T=I.clientY,z=V.getBoundingClientRect(),M=z.top,W=this.getThumbVerticalHeight(),X=Math.abs(M-T)-W/2;this.view.scrollTop=this.getScrollTopForOffset(X)}},{key:"handleHorizontalThumbMouseDown",value:function(I){I.preventDefault(),this.handleDragStart(I);var V=I.target,T=I.clientX,z=V.offsetWidth,M=V.getBoundingClientRect(),W=M.left;this.prevPageX=z-(T-W)}},{key:"handleVerticalThumbMouseDown",value:function(I){I.preventDefault(),this.handleDragStart(I);var V=I.target,T=I.clientY,z=V.offsetHeight,M=V.getBoundingClientRect(),W=M.top;this.prevPageY=z-(T-W)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,y.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=m.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,y.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(I){this.dragging=!0,I.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(I){if(this.prevPageX){var V=I.clientX,T=this.trackHorizontal.getBoundingClientRect(),z=T.left,M=this.getThumbHorizontalWidth(),W=M-this.prevPageX,X=-z+V-W;this.view.scrollLeft=this.getScrollLeftForOffset(X)}if(this.prevPageY){var Y=I.clientY,le=this.trackVertical.getBoundingClientRect(),de=le.top,B=this.getThumbVerticalHeight(),ee=B-this.prevPageY,ce=-de+Y-ee;this.view.scrollTop=this.getScrollTopForOffset(ce)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var I=this.props.autoHide;I&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var I=this.props.autoHide;I&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var I=this.props.autoHide;I&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var I=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var V=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(I.trackHorizontal,{opacity:0}),(0,s.default)(I.trackVertical,{opacity:0})},V)}}},{key:"detectScrolling",value:function(){var I=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){I.lastViewScrollLeft===I.viewScrollLeft&&I.lastViewScrollTop===I.viewScrollTop&&(clearInterval(I.detectScrollingInterval),I.scrolling=!1,I.handleScrollStop()),I.lastViewScrollLeft=I.viewScrollLeft,I.lastViewScrollTop=I.viewScrollTop},100))}},{key:"raf",value:function(I){var V=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){V.requestFrame=void 0,I()})}},{key:"update",value:function(I){var V=this;this.raf(function(){return V._update(I)})}},{key:"_update",value:function(I){var V=this.props,T=V.onUpdate,z=V.hideTracksWhenNotNeeded,M=this.getValues();if((0,g.default)()){var W=M.scrollLeft,X=M.clientWidth,Y=M.scrollWidth,le=(0,E.default)(this.trackHorizontal),de=this.getThumbHorizontalWidth(),B=W/(Y-X)*(le-de),ee={width:de,transform:"translateX("+B+"px)"},ce=M.scrollTop,re=M.clientHeight,ne=M.scrollHeight,we=(0,S.default)(this.trackVertical),Ae=this.getThumbVerticalHeight(),Te=ce/(ne-re)*(we-Ae),b={height:Ae,transform:"translateY("+Te+"px)"};if(z){var H={visibility:Y>X?"visible":"hidden"},j={visibility:ne>re?"visible":"hidden"};(0,s.default)(this.trackHorizontal,H),(0,s.default)(this.trackVertical,j)}(0,s.default)(this.thumbHorizontal,ee),(0,s.default)(this.thumbVertical,b)}T&&T(M),typeof I=="function"&&I(M)}},{key:"render",value:function(){var I=this,V=(0,g.default)(),T=this.props;T.onScroll,T.onScrollFrame,T.onScrollStart,T.onScrollStop,T.onUpdate;var z=T.renderView,M=T.renderTrackHorizontal,W=T.renderTrackVertical,X=T.renderThumbHorizontal,Y=T.renderThumbVertical,le=T.tagName;T.hideTracksWhenNotNeeded;var de=T.autoHide;T.autoHideTimeout;var B=T.autoHideDuration;T.thumbSize,T.thumbMinSize;var ee=T.universal,ce=T.autoHeight,re=T.autoHeightMin,ne=T.autoHeightMax,we=T.style,Ae=T.children,Te=C(T,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),b=this.state.didMountUniversal,H=t({},y.containerStyleDefault,ce&&t({},y.containerStyleAutoHeight,{minHeight:re,maxHeight:ne}),we),j=t({},y.viewStyleDefault,{marginRight:V?-V:0,marginBottom:V?-V:0},ce&&t({},y.viewStyleAutoHeight,{minHeight:(0,h.default)(re)?"calc("+re+" + "+V+"px)":re+V,maxHeight:(0,h.default)(ne)?"calc("+ne+" + "+V+"px)":ne+V}),ce&&ee&&!b&&{minHeight:re,maxHeight:ne},ee&&!b&&y.viewStyleUniversalInitial),G={transition:"opacity "+B+"ms",opacity:0},K=t({},y.trackHorizontalStyleDefault,de&&G,(!V||ee&&!b)&&{display:"none"}),Q=t({},y.trackVerticalStyleDefault,de&&G,(!V||ee&&!b)&&{display:"none"});return(0,l.createElement)(le,t({},Te,{style:H,ref:function(se){I.container=se}}),[(0,l.cloneElement)(z({style:j}),{key:"view",ref:function(se){I.view=se}},Ae),(0,l.cloneElement)(M({style:K}),{key:"trackHorizontal",ref:function(se){I.trackHorizontal=se}},(0,l.cloneElement)(X({style:y.thumbHorizontalStyleDefault}),{ref:function(se){I.thumbHorizontal=se}})),(0,l.cloneElement)(W({style:Q}),{key:"trackVertical",ref:function(se){I.trackVertical=se}},(0,l.cloneElement)(Y({style:y.thumbVerticalStyleDefault}),{ref:function(se){I.thumbVertical=se}}))])}}]),F}(l.Component);e.default=R,R.propTypes={onScroll:d.default.func,onScrollFrame:d.default.func,onScrollStart:d.default.func,onScrollStop:d.default.func,onUpdate:d.default.func,renderView:d.default.func,renderTrackHorizontal:d.default.func,renderTrackVertical:d.default.func,renderThumbHorizontal:d.default.func,renderThumbVertical:d.default.func,tagName:d.default.string,thumbSize:d.default.number,thumbMinSize:d.default.number,hideTracksWhenNotNeeded:d.default.bool,autoHide:d.default.bool,autoHideTimeout:d.default.number,autoHideDuration:d.default.number,autoHeight:d.default.bool,autoHeightMin:d.default.oneOfType([d.default.number,d.default.string]),autoHeightMax:d.default.oneOfType([d.default.number,d.default.string]),universal:d.default.bool,style:d.default.object,children:d.default.node},R.defaultProps={renderView:$.renderViewDefault,renderTrackHorizontal:$.renderTrackHorizontalDefault,renderTrackVertical:$.renderTrackVerticalDefault,renderThumbHorizontal:$.renderThumbHorizontalDefault,renderThumbVertical:$.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(V2);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=V2,n=i(t);function i(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default})(P2);const Ov=Gt(P2);function Zn({children:e,...t}){return r.jsx(Ov,{...t,...window.brandyCustomizerData.rtl?{renderView:n=>r.jsx("div",{...n,style:{...n.style,marginLeft:n.style.marginRight,marginRight:0}})}:{},children:e})}const Nv=window.React.useEffect,Pv=window.React.useRef,xl=window.React.useState;function _t({title:e="",children:t,style:n={}}){const[i,o]=xl(null),[a,s]=xl(null),{styles:l,attributes:c}=In(i,a),[d,u]=xl(!1),h=()=>{u(!0)},f=()=>{u(!1)};if(!e)return!1;const g=Pv(null);return Nv(()=>{setTimeout(()=>{o(g.current)},300)},[g.current]),r.jsxs("div",{className:"brandy-with-tooltip",children:[r.jsx("div",{className:"brandy-tooltip-activator",onMouseMove:()=>{h()},onMouseLeave:()=>{f()},ref:g,children:t}),r.jsx(Vv,{ref:s,className:"bg-brandy-text text-gutenberg-white px-[10px] py-[5px] rounded-base my-2 z-10",style:{...l.popper,...n},...c.popper,$_css:[{visibility:"hidden",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"},d&&{visibility:"visible",opacity:"1"}],children:e})]})}var Vv=v("div").withConfig({displayName:"Tooltip___StyledDiv",componentId:"sc-gmfqn3-0"})(["",""],e=>e.$_css);const Bv=window.React.useEffect,bl=window.React.useMemo,yl=window.React.useState,Fv=38,K2=5,q2=5;function dt({options:e,selected:t,onChange:n=()=>!1,style:i={},popupHeight:o=null}){const[a,s]=yl(null),[l,c]=yl(null),{styles:d,attributes:u}=In(a,l),[h,f]=yl(!1),g=bl(()=>(a==null?void 0:a.getBoundingClientRect().width)??0,[a]),p=()=>{f(S=>!S)},m=()=>{f(!1)},w=bl(()=>e.find(y=>y.value===t),[e,t]),E=S=>{const y=S.currentTarget.dataset.value;n(y??"")};Bv(()=>{const S=y=>{(a==null||l==null)&&m(),!(a!=null&&a.contains(y.target))&&!(l!=null&&l.contains(y.target))&&m()};return window.jQuery(document).on("click","body",S),()=>{window.jQuery(document).off("click","body",S)}},[a,l]);const k=bl(()=>{if(o)return o;const S=Math.min(e.length,4);return S*Fv+(S-1)*K2+q2*2},[e,o]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:ke(["brandy-select__selector","w-full h-[40px] p-[12px] bg-gutenberg-white","flex justify-between items-center","border border-brandy-border-light","rounded-base cursor-pointer"]),ref:s,onClick:p,children:[r.jsx("span",{className:"brandy-select__selection-item min-h-[15px] text-brandy-text overflow-hidden text-ellipsis whitespace-nowrap",children:(w==null?void 0:w.label)??""}),r.jsx("span",{className:"brandy-select__arrow",children:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 8L10 12L6 8",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),h&&r.jsx("div",{ref:c,style:{...d.popper,width:g,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...u.popper,className:ke(["my-2 z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Zn,{autoHide:!0,className:"bg-gutenberg-white",style:{height:k},children:r.jsx(zv,{className:"flex flex-col",children:e.map(S=>r.jsxs(Zv,{className:"brandy-select__option-content","data-value":S.value,onClick:E,$_css:[{display:"flex",alignItems:"center",justifyContent:"space-between","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"},{minHeight:"38px",borderRadius:"5px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"9px",paddingBottom:"9px","&:hover":{backgroundColor:"rgba(34, 113, 177, 0.03)","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity, 1))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},t===S.value&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"}],children:[r.jsx(Wv,{children:(S.label??"").toString().length>30?r.jsx(_t,{title:S.label,children:S.label}):S.label}),S.value===t&&r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",style:{width:20,height:20},children:r.jsx("path",{className:"stroke-wp",d:"M17.3274 7.53122L10.5767 16.6102L6.66221 13.6996",strokeWidth:"1.5"})})]},S.value))})})})]})}var zv=v("div")` padding: ${q2}px; gap: ${K2}px; `,Zv=v("div")`${e=>e.$_css}`,Wv=v("span").withConfig({displayName:"Select___StyledSpan",componentId:"sc-1b3pn9-0"})(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;"]);const Gv=window.React,Uv=window.React.useEffect,Yv=window.React.useState,Q2=Gv.forwardRef(({id:e,className:t,checked:n=!1,disabled:i=!1,size:o="sm",onChange:a=()=>!1},s)=>{const[l,c]=Yv(!1),d=u=>{u.preventDefault(),u.stopPropagation(),a(!n)};return Uv(()=>{const u=()=>{c(!1)};return window.addEventListener("mouseup",u),()=>{window.removeEventListener("mouseup",u)}},[]),r.jsx("button",{id:e,type:"button",className:ke(["brandy-component-switcher",o,t,n?"checked":"",l?"active":"",i?"disabled":""]),onClick:d,onMouseDown:()=>{c(!0)},ref:s,disabled:i,children:r.jsx("div",{className:"brandy-component-switcher-handle"})})}),it=window.React,Dr=window.React.useRef,Xv=window.React.useMemo,ts=window.React.useEffect,Jv=window.React.useState,Kv=window.React.useCallback,qv=window.React.useLayoutEffect;function Ls(){return(Ls=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function xc(e){var t=Dr(e),n=Dr(function(i){t.current&&t.current(i)});return t.current=e,n.current}var ki=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?a(Yd(o.current,w,l.current)):m(!1)},p=function(){return m(!1)};function m(w){var E=c.current,k=bc(o.current),S=w?k.addEventListener:k.removeEventListener;S(E?"touchmove":"mousemove",g),S(E?"touchend":"mouseup",p)}return[function(w){var E=w.nativeEvent,k=o.current;if(k&&(Xd(E),!function(y,$){return $&&!mo(y)}(E,c.current)&&k)){if(mo(E)){c.current=!0;var S=E.changedTouches||[];S.length&&(l.current=S[0].identifier)}k.focus(),a(Yd(k,E,l.current)),m(!0)}},function(w){var E=w.which||w.keyCode;E<37||E>40||(w.preventDefault(),s({left:E===39?.05:E===37?-.05:0,top:E===40?.05:E===38?-.05:0}))},m]},[s,a]),u=d[0],h=d[1],f=d[2];return ts(function(){return f},[f]),it.createElement("div",Ls({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),As=function(e){return e.filter(Boolean).join(" ")},g1=function(e){var t=e.color,n=e.left,i=e.top,o=i===void 0?.5:i,a=As(["react-colorful__pointer",e.className]);return it.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},it.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},ft=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Qv=function(e){return rw(yc(e))},yc=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ft(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?ft(parseInt(e.substring(6,8),16)/255,2):1}},ew=function(e){return nw(tw(e))},th=function(e){var t=e.s,n=e.v,i=e.a,o=(200-t)*n/100;return{h:ft(e.h),s:ft(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:ft(o/2),a:ft(i,2)}},Cc=function(e){var t=th(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Cl=function(e){var t=th(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},tw=function(e){var t=e.h,n=e.s,i=e.v,o=e.a;t=t/360*6,n/=100,i/=100;var a=Math.floor(t),s=i*(1-n),l=i*(1-(t-a)*n),c=i*(1-(1-t+a)*n),d=a%6;return{r:ft(255*[i,l,s,s,c,i][d]),g:ft(255*[c,i,i,l,s,s][d]),b:ft(255*[s,s,c,i,i,l][d]),a:ft(o,2)}},va=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},nw=function(e){var t=e.r,n=e.g,i=e.b,o=e.a,a=o<1?va(ft(255*o)):"";return"#"+va(t)+va(n)+va(i)+a},rw=function(e){var t=e.r,n=e.g,i=e.b,o=e.a,a=Math.max(t,n,i),s=a-Math.min(t,n,i),l=s?a===t?(n-i)/s:a===n?2+(i-t)/s:4+(t-n)/s:0;return{h:ft(60*(l<0?l+6:l)),s:ft(a?s/a*100:0),v:ft(a/255*100),a:o}},iw=it.memo(function(e){var t=e.hue,n=e.onChange,i=As(["react-colorful__hue",e.className]);return it.createElement("div",{className:i},it.createElement(p1,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ki(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":ft(t),"aria-valuemax":"360","aria-valuemin":"0"},it.createElement(g1,{className:"react-colorful__hue-pointer",left:t/360,color:Cc({h:t,s:100,v:100,a:1})})))}),ow=it.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:Cc({h:t.h,s:100,v:100,a:1})};return it.createElement("div",{className:"react-colorful__saturation",style:i},it.createElement(p1,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ki(t.s+100*o.left,0,100),v:ki(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+ft(t.s)+"%, Brightness "+ft(t.v)+"%"},it.createElement(g1,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Cc(t)})))}),nh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},aw=function(e,t){return e.toLowerCase()===t.toLowerCase()||nh(yc(e),yc(t))};function sw(e,t,n){var i=xc(n),o=Jv(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=Dr({color:t,hsva:a});ts(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},s(d)}},[t,e]),ts(function(){var d;nh(a,l.current.hsva)||e.equal(d=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:d},i(d))},[a,e,i]);var c=Kv(function(d){s(function(u){return Object.assign({},u,d)})},[]);return[a,c]}var lw=typeof window<"u"?qv:ts,cw=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Jd=new Map,dw=function(e){lw(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Jd.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Jd.set(t,n);var i=cw();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},uw=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Cl(Object.assign({},n,{a:0}))+", "+Cl(Object.assign({},n,{a:1}))+")"},a=As(["react-colorful__alpha",t]),s=ft(100*n.a);return it.createElement("div",{className:a},it.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),it.createElement(p1,{onMove:function(l){i({a:l.left})},onKey:function(l){i({a:ki(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},it.createElement(g1,{className:"react-colorful__alpha-pointer",left:n.a,color:Cl(n)})))},hw=function(e){var t=e.className,n=e.colorModel,i=e.color,o=i===void 0?n.defaultColor:i,a=e.onChange,s=eh(e,["className","colorModel","color","onChange"]),l=Dr(null);dw(l);var c=sw(n,o,a),d=c[0],u=c[1],h=As(["react-colorful",t]);return it.createElement("div",Ls({},s,{ref:l,className:h}),it.createElement(ow,{hsva:d,onChange:u}),it.createElement(iw,{hue:d.h,onChange:u}),it.createElement(uw,{hsva:d,onChange:u,className:"react-colorful__last-control"}))},fw={defaultColor:"0001",toHsva:Qv,fromHsva:ew,equal:aw},pw=function(e){return it.createElement(hw,Ls({},e,{colorModel:fw}))};function Rs(){return r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M11.7515 10.3747C11.91 10.5332 11.999 10.7482 11.999 10.9723C11.999 11.1965 11.91 11.4115 11.7515 11.57C11.593 11.7285 11.378 11.8175 11.1538 11.8175C10.9296 11.8175 10.7147 11.7285 10.5562 11.57L6.09201 7.10443L1.62646 11.5686C1.46796 11.7271 1.25297 11.8161 1.02881 11.8161C0.804643 11.8161 0.589659 11.7271 0.431151 11.5686C0.272643 11.4101 0.183594 11.1951 0.183594 10.9709C0.183594 10.7468 0.272643 10.5318 0.431151 10.3733L4.8967 5.90912L0.432557 1.44357C0.274049 1.28506 0.185 1.07008 0.185 0.845917C0.185 0.621752 0.274049 0.406769 0.432557 0.24826C0.591065 0.0897521 0.806049 0.000703009 1.03021 0.000703007C1.25438 0.000703005 1.46936 0.0897521 1.62787 0.24826L6.09201 4.71381L10.5576 0.247557C10.7161 0.0890489 10.931 -3.73458e-09 11.1552 0C11.3794 3.73458e-09 11.5944 0.0890489 11.7529 0.247557C11.9114 0.406065 12.0004 0.621049 12.0004 0.845213C12.0004 1.06938 11.9114 1.28436 11.7529 1.44287L7.28732 5.90912L11.7515 10.3747Z",fill:window.brandyCustomizerData.colors.icon.normal})})}function rh(){return r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M15.3 0H1.7C0.76245 0 0 0.755368 0 1.68421V10.9474C0 11.8762 0.76245 12.6316 1.7 12.6316H7.65V14.3158H5.1V16H11.9V14.3158H9.35V12.6316H15.3C16.2376 12.6316 17 11.8762 17 10.9474V1.68421C17 0.755368 16.2376 0 15.3 0ZM1.7 10.5V1.68421H15.3L15.3017 10.5H8.50085H1.7Z",fill:window.brandyCustomizerData.colors.icon.normal})})}function gw(){return r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"6",cy:"1",r:"1",fill:"#808890"}),r.jsx("circle",{cx:"6",cy:"6",r:"1",fill:"#808890"}),r.jsx("circle",{cx:"6",cy:"11",r:"1",fill:"#808890"}),r.jsx("circle",{cx:"1",cy:"1",r:"1",fill:"#808890"}),r.jsx("circle",{cx:"1",cy:"6",r:"1",fill:"#808890"}),r.jsx("circle",{cx:"1",cy:"11",r:"1",fill:"#808890"})]})}function ih(){return r.jsxs("svg",{width:"11",height:"16",viewBox:"0 0 11 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"1.5",y:"0.75",width:"8.5",height:"14.5",rx:"1.25",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"}),r.jsx("rect",{x:"4.75",y:"12",width:"2",height:"1.5",fill:window.brandyCustomizerData.colors.icon.normal})]})}function oh(){return r.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M12.1877 14.1044C11.1306 14.1044 10.2705 13.2323 10.2705 12.1608C10.2705 11.1635 11.1294 10.2016 11.591 9.68511C11.647 9.6222 11.6955 9.56798 11.7312 9.52604C11.7873 9.45922 11.8573 9.40549 11.9363 9.36863C12.0154 9.33176 12.1016 9.31266 12.1888 9.31266C12.276 9.31266 12.3622 9.33176 12.4412 9.36863C12.5203 9.40549 12.5903 9.45922 12.6464 9.52604C12.6802 9.56529 12.7252 9.61591 12.777 9.67373C13.2413 10.192 14.105 11.1569 14.105 12.1617C14.105 13.2323 13.2449 14.1044 12.1877 14.1044ZM11.6554 8.01231L4.72511 1.13953C4.43251 0.847564 4.03604 0.683594 3.62269 0.683594C3.20934 0.683594 2.81286 0.847564 2.52026 1.13953L2.38515 1.27463C2.08499 1.56989 1.91386 1.97192 1.90914 2.39294C1.90798 2.59849 1.94778 2.80221 2.02622 2.99221C2.10465 3.18221 2.22016 3.35468 2.36598 3.49955L3.6095 4.74278L1.07363 7.27416C0.94813 7.39995 0.849031 7.54955 0.782153 7.71417C0.715275 7.87879 0.681968 8.05512 0.684186 8.23279C0.685661 8.40612 0.72226 8.57736 0.79177 8.73615C0.86128 8.89494 0.96226 9.038 1.08861 9.15667L5.02019 12.9313C5.26656 13.1674 5.59491 13.2988 5.93617 13.2978C6.27743 13.2968 6.605 13.1635 6.84997 12.9259L10.568 9.32263C10.6352 9.25577 10.7212 9.21095 10.8145 9.19412C10.9327 9.17523 11.0522 9.16661 11.1719 9.16835H11.1809C11.3149 9.16858 11.446 9.12889 11.5574 9.05433C11.6688 8.97977 11.7555 8.87372 11.8064 8.74971C11.8573 8.62569 11.8702 8.48933 11.8433 8.358C11.8164 8.22667 11.751 8.10632 11.6554 8.01231ZM4.28774 4.06425L3.04361 2.82043C2.98773 2.76476 2.94338 2.69861 2.91313 2.62576C2.88287 2.55291 2.86729 2.47481 2.86729 2.39593C2.86729 2.31705 2.88287 2.23895 2.91313 2.1661C2.94338 2.09326 2.98773 2.0271 3.04361 1.97144L3.19819 1.81716C3.25403 1.7613 3.32032 1.71699 3.39328 1.68675C3.46625 1.65652 3.54446 1.64096 3.62344 1.64096C3.70242 1.64096 3.78062 1.65652 3.85359 1.68675C3.92655 1.71699 3.99284 1.7613 4.04868 1.81716L5.29759 3.05649L4.28774 4.06425Z",fill:window.brandyCustomizerData.colors.icon.normal})})}function mw(){return r.jsx("svg",{width:"19",height:"16",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M10.9655 15C12.3568 15 13.7169 14.5895 14.8737 13.8203C16.0305 13.0511 16.9321 11.9579 17.4645 10.6788C17.997 9.3997 18.1363 7.99224 17.8648 6.63437C17.5934 5.2765 16.9234 4.02922 15.9396 3.05026C14.9559 2.07129 13.7024 1.4046 12.3379 1.13451C10.9733 0.86441 9.55892 1.00303 8.27354 1.53285C6.98815 2.06266 5.88952 2.95987 5.11656 4.11101C4.3436 5.26216 3.93103 6.61553 3.93103 8V11.6167L1.82069 9.51667L1 10.3333L4.51724 13.8333L8.03448 10.3333L7.21379 9.51667L5.10345 11.6167V8C5.10345 6.84628 5.44725 5.71846 6.09138 4.75918C6.73552 3.79989 7.65105 3.05222 8.7222 2.61071C9.79335 2.16919 10.972 2.05368 12.1091 2.27876C13.2463 2.50384 14.2908 3.05941 15.1106 3.87521C15.9304 4.69102 16.4888 5.73042 16.7149 6.86198C16.9411 7.99353 16.825 9.16642 16.3814 10.2323C15.9377 11.2982 15.1863 12.2093 14.2223 12.8502C13.2583 13.4912 12.1249 13.8333 10.9655 13.8333V15Z",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"0.5"})})}function vw(){return r.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.70239 14.4921C7.70239 10.7422 10.7422 7.70239 14.4921 7.70239C18.2419 7.70239 21.2818 10.7422 21.2818 14.4921C21.2818 18.2419 18.2419 21.2818 14.4921 21.2818C10.7422 21.2818 7.70239 18.2419 7.70239 14.4921ZM14.4921 6.20239C9.91381 6.20239 6.20239 9.91381 6.20239 14.4921C6.20239 19.0703 9.91381 22.7818 14.4921 22.7818C16.5112 22.7818 18.3616 22.0599 19.7995 20.8602L23.4697 24.5303C23.7626 24.8232 24.2374 24.8232 24.5303 24.5303C24.8232 24.2374 24.8232 23.7626 24.5303 23.4697L20.8602 19.7995C22.0599 18.3616 22.7818 16.5112 22.7818 14.4921C22.7818 9.91381 19.0703 6.20239 14.4921 6.20239Z",fill:window.brandyCustomizerData.colors.icon.normal})})}function ah(){return r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.44631 14C11.7898 14 14.5003 11.3137 14.5003 8C14.5003 4.68629 11.7898 2 8.44631 2C5.10279 2 2.39233 4.68629 2.39233 8C2.39233 11.3137 5.10279 14 8.44631 14ZM8.44633 11C10.1181 11 11.4733 9.65685 11.4733 8C11.4733 6.34315 10.1181 5 8.44633 5C6.77457 5 5.41934 6.34315 5.41934 8C5.41934 9.65685 6.77457 11 8.44633 11Z",fill:"#808890"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.77861 0C7.29032 0 6.87343 0.352637 6.79245 0.834163L6.42823 3H10.4642L10.1 0.834163C10.019 0.352636 9.60213 0 9.11384 0H7.77861ZM9.11383 16C9.60212 16 10.019 15.6474 10.1 15.1658L10.4642 13H6.42822L6.79244 15.1658C6.87342 15.6474 7.29031 16 7.7786 16H9.11383Z",fill:"#808890"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1066 3.43378C14.8604 3.01115 14.3432 2.82625 13.8841 2.99671L11.8061 3.76825L13.8241 7.23235L15.5373 5.83459C15.9158 5.52578 16.0128 4.98945 15.7666 4.56682L15.1066 3.43378ZM1.78554 12.5666C2.03174 12.9892 2.54889 13.1741 3.00799 13.0037L5.08596 12.2321L3.06797 8.76801L1.3548 10.1658C0.9763 10.4746 0.879292 11.0109 1.12549 11.4335L1.78554 12.5666Z",fill:"#808890"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.12633 4.56673C0.880129 4.98937 0.977138 5.52569 1.35564 5.83451L3.0688 7.23227L5.0868 3.76817L3.00883 2.99663C2.54973 2.82617 2.03257 3.01107 1.78637 3.4337L1.12633 4.56673ZM15.7675 11.4339C16.0137 11.0113 15.9167 10.475 15.5382 10.1662L13.825 8.7684L11.807 12.2325L13.885 13.004C14.3441 13.1745 14.8612 12.9896 15.1074 12.567L15.7675 11.4339Z",fill:"#808890"})]})}function ww(){return r.jsx("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 0H4C2.9 0 2 0.9 2 2V14C2 15.1 2.9 16 4 16H14C15.1 16 16 15.1 16 14V2C16 0.9 15.1 0 14 0ZM14.5 14C14.5 14.3 14.3 14.5 14 14.5H4C3.7 14.5 3.5 14.3 3.5 14V2C3.5 1.7 3.7 1.5 4 1.5H14C14.3 1.5 14.5 1.7 14.5 2V14ZM7 13.5H11V12H7V13.5Z",fill:window.brandyCustomizerData.colors.icon.normal})})}const xw=window.React.forwardRef;let _l,Ji;const ot=xw(({onChange:e=()=>!1,type:t="text",className:n="",prefix:i=!1,wrapperStyle:o={},...a},s)=>{const l=f=>{let g=f.target.value;t==="number"&&g!=""&&(g=+g),e(g)},c=()=>{typeof a.value=="number"&&(a.min!=null&&a.value<+a.min&&e(a.min),a.max!=null&&a.value>+a.max&&e(a.max))},d=()=>{clearTimeout(Ji);function f(){let g=++a.value;e(Math.min(g,a.max??Number.MAX_SAFE_INTEGER))}f(),Ji=setTimeout(()=>{_l=setInterval(()=>{f()},80)},400)},u=()=>{clearTimeout(Ji);function f(){let g=--a.value;e(Math.max(g,a.min??Number.MIN_SAFE_INTEGER))}f(),Ji=setTimeout(()=>{_l=setInterval(()=>{f()},80)},400)},h=()=>{clearInterval(_l),clearTimeout(Ji)};return r.jsxs(bw,{className:ke(["brandy-input group",n]),style:o,ref:s,$_css:[{position:"relative",display:"flex",minHeight:"30px",alignItems:"center",gap:"0.5rem",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",lineHeight:"1","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:focus-within":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))"},"&:focus":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},` &:hover { .brandy-input-access-arrow { display: block; } } `],children:[i,r.jsx("input",{className:"w-full bg-inherit p-0 border-0 focus:outline-none focus:border-0 focus:shadow-none",...a,type:t,onChange:l,onBlur:c}),t==="number"&&r.jsxs(r.Fragment,{children:[r.jsx(yw,{className:"brandy-input-access-arrow",onMouseUp:h,onMouseLeave:h,onMouseDown:d,$_css2:[{position:"absolute",right:"3px",top:"calc(50% - 12px)",display:"none",cursor:"pointer",borderRadius:"3px 3px 0 0",padding:"5px 4px 3px 4px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(241 241 241 / var(--tw-bg-opacity, 1))"}},` &:hover { svg path { fill: #5a6d80; } } `],children:r.jsx("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4L4 3.49691e-07L0 4L8 4Z",fill:"#C6D4E1"})})}),r.jsx(Cw,{className:"brandy-input-access-arrow",onMouseUp:h,onMouseLeave:h,onMouseDown:u,$_css3:[{position:"absolute",right:"3px",top:"calc(50% + 1px)",display:"none",cursor:"pointer",borderRadius:"0 0 3px 3px",padding:"3px 4px 5px 4px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(241 241 241 / var(--tw-bg-opacity, 1))"}},` &:hover { svg path { fill: #5a6d80; } } `],children:r.jsx("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L4 4L8 0L0 0Z",fill:"#C6D4E1"})})})]})]})});var bw=v("div")`${e=>e.$_css}`,yw=v("span")`${e=>e.$_css2}`,Cw=v("span").withConfig({displayName:"Input___StyledSpan2",componentId:"sc-aibt7d-0"})(["",""],e=>e.$_css3);function _w(){return r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.00001 0.299988C4.20001 0.299988 0.200012 4.19999 0.200012 9.09999C0.200012 13.9 4.10001 17.9 9.00001 17.9C13.8 17.9 17.8 14 17.8 9.09999C17.8 4.19999 13.8 0.299988 9.00001 0.299988ZM15.5 5.79999H12.9C12.4 4.29999 11.8 2.99999 11 1.99999C13 2.59999 14.6 3.99999 15.5 5.79999ZM16.2 8.99999C16.2 9.59999 16.1 10.2 16 10.8H13.1C13.2 10.2 13.2 9.59999 13.2 8.99999C13.2 8.39999 13.1 7.79999 13.1 7.19999H16C16.2 7.79999 16.2 8.39999 16.2 8.99999ZM9.00001 15.7C8.00001 15 7.20001 13.8 6.70001 12.2H11.3C10.8 13.8 10 15.1 9.00001 15.7ZM6.40001 10.8C6.30001 10.2 6.30001 9.69999 6.30001 8.99999C6.30001 8.39999 6.40001 7.79999 6.40001 7.19999H11.6C11.7 7.79999 11.7 8.29999 11.7 8.99999C11.7 9.69999 11.6 10.2 11.6 10.8H6.40001ZM1.80001 8.99999C1.80001 8.39999 1.90001 7.79999 2.00001 7.19999H4.90001C4.80001 7.79999 4.80001 8.39999 4.80001 8.99999C4.80001 9.59999 4.90001 10.2 4.90001 10.8H2.00001C1.80001 10.2 1.80001 9.59999 1.80001 8.99999ZM9.00001 2.29999C10 2.99999 10.8 4.19999 11.3 5.79999H6.70001C7.20001 4.19999 8.00001 2.89999 9.00001 2.29999ZM7.00001 1.99999C6.20001 2.99999 5.60001 4.29999 5.20001 5.79999H2.50001C3.40001 3.99999 5.00001 2.59999 7.00001 1.99999ZM2.50001 12.3H5.10001C5.50001 13.8 6.10001 15.1 6.90001 16C5.10001 15.4 3.40001 14 2.50001 12.3ZM11 16C11.8 15 12.4 13.8 12.8 12.3H15.4C14.6 14 13 15.4 11 16Z",fill:"black"})})}const sh=()=>{const e=window.brandyCustomizerData.theme_settings.color.palette.theme.map(n=>({...n,value:`var(--wp--preset--color--${n.slug})`})),t=window.brandyCustomizerData.theme_settings.color.palette.default.map(n=>({...n,value:`var(--wp--preset--color--${n.slug})`}));return{theme:e,palette:t}},lh=e=>{if(e==null)return{isGlobal:!1,color:""};const t=sh(),n=[...t.theme,...t.palette].find(i=>i.value==e);return n?{isGlobal:!0,color:n.color}:e.includes("var(")?{isGlobal:!0,color:e}:{isGlobal:!1,color:e}};function N(e){var t;return(((t=window.brandyCustomizerData)==null?void 0:t.i18n)??{})[e]??e}var Sw="Expected a function",Kd=0/0,jw="[object Symbol]",kw=/^\s+|\s+$/g,Ew=/^[-+]0x[0-9a-f]+$/i,Dw=/^0b[01]+$/i,$w=/^0o[0-7]+$/i,Hw=parseInt,Mw=typeof tt=="object"&&tt&&tt.Object===Object&&tt,Iw=typeof self=="object"&&self&&self.Object===Object&&self,Tw=Mw||Iw||Function("return this")(),Lw=Object.prototype,Aw=Lw.toString,Rw=Math.max,Ow=Math.min,Sl=function(){return Tw.Date.now()};function Nw(e,t,n){var i,o,a,s,l,c,d=0,u=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Sw);t=qd(t)||0,_c(n)&&(u=!!n.leading,h="maxWait"in n,a=h?Rw(qd(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function g(x){var C=i,A=o;return i=o=void 0,d=x,s=e.apply(A,C),s}function p(x){return d=x,l=setTimeout(E,t),u?g(x):s}function m(x){var C=x-c,A=x-d,O=t-C;return h?Ow(O,a-A):O}function w(x){var C=x-c,A=x-d;return c===void 0||C>=t||C<0||h&&A>=a}function E(){var x=Sl();if(w(x))return k(x);l=setTimeout(E,m(x))}function k(x){return l=void 0,f&&i?g(x):(i=o=void 0,s)}function S(){l!==void 0&&clearTimeout(l),d=0,i=c=o=l=void 0}function y(){return l===void 0?s:k(Sl())}function $(){var x=Sl(),C=w(x);if(i=arguments,o=this,c=x,C){if(l===void 0)return p(c);if(h)return l=setTimeout(E,t),g(c)}return l===void 0&&(l=setTimeout(E,t)),s}return $.cancel=S,$.flush=y,$}function _c(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Pw(e){return!!e&&typeof e=="object"}function Vw(e){return typeof e=="symbol"||Pw(e)&&Aw.call(e)==jw}function qd(e){if(typeof e=="number")return e;if(Vw(e))return Kd;if(_c(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_c(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(kw,"");var n=Dw.test(e);return n||$w.test(e)?Hw(e.slice(2),n?2:8):Ew.test(e)?Kd:+e}var Bw=Nw;const Ei=Gt(Bw);function m1(e){if(e&&!(typeof window>"u")){var t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}}const J=window.React,Et=window.React.useState,Dt=window.React.useEffect,Vr=window.React.useRef,Fw=window.React.memo,Qd=window.React.useCallback,e0=window.React.Fragment;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var he=function(){return he=Object.assign||function(t){for(var n,i=1,o=arguments.length;i=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function wt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,a=[],s;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return a}function ch(){for(var e=[],t=0;t'); background-size: 100%, 6px; background-repeat: repeat; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .colorpicker .color-picker-panel-alpha-bg { position: absolute; width: 100%; height: 100%; border-radius: 4px; } .colorpicker .color-picker-panel-alpha-handler { position: absolute; width: 100%; height: 100%; cursor: grab; } .colorpicker .color-picker-panel-alpha span { position: absolute; top: -3px; height: 14px; width: 14px; padding: 1px 0; margin-left: -7px; border-radius: 50%; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24); border: solid 2px #fff; cursor: grab; } .colorpicker .color-picker-panel-open { display: block; } .colorpicker .color-picker-panel-close { display: none; } .colorpicker .color-picker-panel-inner { position: relative; } .colorpicker .color-picker-panel-preview { height: 30px; width: 30px; overflow: hidden; border-radius: 2px; background-image: url("data:image/png;base64,R0lGODdhCgAKAPAAAOXl5f///ywAAAAACgAKAEACEIQdqXt9GxyETrI279OIgwIAOw=="); } .colorpicker .color-picker-panel-preview span, .colorpicker .color-picker-panel-preview input[type=color] { position: absolute; display: block; height: 100%; width: 30px; border-radius: 2px; } .colorpicker .color-picker-panel-preview span { box-shadow: 0 0 2px #808080 inset; } .colorpicker .color-picker-panel-preview input[type=color] { opacity: 0; } .colorpicker .color-picker-panel-wrap { width: 100%; position: relative; display: flex; flex-direction: column; justify-content: space-between; } .colorpicker .color-picker-panel-wrap-preview { position: absolute; right: 8px; display: none; } .colorpicker .color-picker-panel-wrap-ribbon { height: 8px; } .colorpicker .color-picker-panel-wrap-alpha { height: 8px; } .colorpicker .color-picker-panel-wrap-ribbon { height: 8px; } .colorpicker .color-picker-panel-board { position: relative; margin-bottom: 16px; font-size: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .colorpicker .color-picker-panel-board-hsv { width: 100%; height: 120px; position: relative; z-index: 1; border-radius: 6px; } .colorpicker .color-picker-panel-board-value { border-radius: 6px; position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 2; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYigwLDAsMCkiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=); background-image: -webkit-linear-gradient(top, transparent 0%, #000000 100%); background-image: -moz-linear-gradient(top, transparent 0%, #000000 100%); background-image: -o-linear-gradient(top, transparent 0%, #000000 100%); background-image: linear-gradient(to bottom, transparent 0%, #000000 100%); } .colorpicker .color-picker-panel-board-saturation { border-radius: 6px; position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 1; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiKDAsMCwwKSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=); background-image: -webkit-linear-gradient(left, #fff 0%, transparent 100%); background-image: -moz-linear-gradient(left, #fff 0%, transparent 100%); background-image: -o-linear-gradient(left, #fff 0%, transparent 100%); background-image: linear-gradient(to right, #fff 0%, transparent 100%); } .colorpicker .color-picker-panel-board-handler { cursor: grab; cursor: -webkit-grab; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; } .colorpicker .color-picker-panel-board span { position: absolute; border-radius: 10px; width: 14px; height: 14px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24); border: solid 2px #fff; left: -999px; top: -999px; z-index: 2; } .colorpicker .color-picker-panel-params { font-size: 12px; } .colorpicker .color-picker-panel-params-input { overflow: hidden; padding: 2px 8px; } .colorpicker .color-picker-panel-params-hex { width: 52px; } .colorpicker .color-picker-panel-params-lable { padding: 2px 8px; height: 22px; line-height: 18px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .colorpicker .color-picker-panel-params-lable-hex { width: 52px; } .colorpicker .color-picker-panel-params-lable-number, .colorpicker .color-picker-panel-params-lable-alpha { margin-left: 5px; width: 44px; text-transform: uppercase; } .colorpicker .color-picker-panel-params-lable-number:hover { border-radius: 2px; background-color: #eee; box-shadow: 0 0 0 1px #ccc inset; cursor: grab; } .colorpicker .color-picker-panel-params-lable label { float: left; text-align: center; } .colorpicker .color-picker-panel-params-has-alpha input[type=number] { width: 32px; } .colorpicker .color-picker-panel-params input { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; text-align: center; padding: 1px; margin: 0; float: left; border-radius: 2px; border: 1px solid #cacaca; font-family: "Helvetica Neue", Helvetica, sans-serif; } .colorpicker .color-picker-trigger { border: 1px solid #999; display: inline-block; padding: 2px; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; width: 20px; height: 20px; cursor: grab; box-shadow: 0 0 0 2px #fff inset; } .colorpicker .color-picker-trigger-open { box-shadow: 0px 0px 3px #999; } .color-picker-panel-params-has-alpha .color-picker-panel-params-lable-number, .color-picker-panel-params-has-alpha .color-picker-panel-params-lable-alpha { width: 32px; } .color-picker { position: absolute; left: -9999px; top: -9999px; z-index: 1000; } .color-picker-wrap { display: inline-block; } .color-picker-slide-up-enter { animation-duration: 0.3s; animation-fill-mode: both; transform-origin: 0 0; display: block !important; opacity: 0; animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-play-state: paused; } .color-picker-slide-up-appear { animation-duration: 0.3s; animation-fill-mode: both; transform-origin: 0 0; display: block !important; opacity: 0; animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-play-state: paused; } .color-picker-slide-up-leave { animation-duration: 0.3s; animation-fill-mode: both; transform-origin: 0 0; display: block !important; opacity: 1; animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34); animation-play-state: paused; } .color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-bottomLeft, .color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-bottomRight, .color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-bottomLeft, .color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-bottomRight { animation-name: rcColorPickerSlideUpIn; animation-play-state: running; } .color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-topLeft, .color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-topRight, .color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-topLeft, .color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-topRight { animation-name: rcColorPickerSlideDownIn; animation-play-state: running; } .color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-bottomLeft, .color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-bottomRight { animation-name: rcColorPickerSlideUpOut; animation-play-state: running; } .color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-topLeft, .color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-topRight { animation-name: rcColorPickerSlideDownOut; animation-play-state: running; } .gradient-interaction { flex-direction: column; display: flex; z-index: 1; } .gradient-interaction .gradient-result { height: 74px; width: 100%; position: relative; border-radius: 6px; margin-top: 18px; flex-grow: 1; font-size: 16px; } .gradient-interaction .gradient-result:hover .gradient-angle { opacity: 1; } .gradient-interaction .gradient-result .gradient-mode { height: 32px; width: 32px; position: relative; top: 20px; left: 16px; border: 2px solid white; border-radius: 0.15em; cursor: pointer; opacity: 0.25; transition: all 0.3s; } .gradient-interaction .gradient-result .gradient-mode::before { position: absolute; content: ""; top: 0; right: 0; bottom: 0; left: 0; margin: auto; transition: all 0.3s; } .gradient-interaction .gradient-result .gradient-mode:hover { opacity: 1; } .gradient-interaction .gradient-result .gradient-mode[data-mode=linear]::before { height: 2px; width: 70%; background: white; transform: rotate(45deg); border-radius: 50em; } .gradient-interaction .gradient-result .gradient-mode[data-mode=radial]::before { height: 50%; width: 50%; border-radius: 100%; border: 2px solid white; background-color: white; } .gradient-interaction .gradient-result .gradient-mode[data-mode=radial]::before + .gradient-angle { opacity: 0; } .gradient-interaction .gradient-result .gradient-mode[data-mode=radial] + .gradient-angle { opacity: 0; } .gradient-interaction .gradient-result .gradient-angle { height: 0.35em; width: 0.35em; background: white; border-radius: 100%; top: 0; right: 0; bottom: 0; left: 0; transition: all 0.3s; position: absolute; margin: auto; opacity: 0.25; } .gradient-interaction .gradient-result .gradient-angle > div { height: 2px; width: 2em; top: 0; right: 0; bottom: 0; left: 50%; position: absolute; background: white; border-radius: 1em; margin: auto 0; transform-origin: left; } .gradient-interaction .gradient-result .gradient-pos { height: 5em; width: 5em; display: grid; display: -ms-grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; -ms-grid-columns: 1fr 1fr 1fr; -ms-grid-rows: 1fr 1fr 1fr; opacity: 1; top: 0; right: 0; bottom: 0; left: 0; transition: all 0.3s; position: absolute; margin: auto; } .gradient-interaction .gradient-result .gradient-pos > div { height: 15px; width: 15px; border: 2px solid transparent; position: relative; margin: auto; transition: all 0.3s; } .gradient-interaction .gradient-result .gradient-pos > div:not(.gradient-active) { cursor: pointer; } .gradient-interaction .gradient-result .gradient-pos > div::before { position: absolute; content: ""; top: 0; right: 0; bottom: 0; left: 0; height: 5px; width: 5px; border-radius: 100%; background: white; transition: all 0.3s; opacity: 0.25; margin: auto; } .gradient-interaction .gradient-result .gradient-pos > div:hover::before { opacity: 1; } .gradient-interaction .gradient-result .gradient-pos > div.gradient-active { border-color: white; border-radius: 100%; } .gradient-interaction .gradient-result .gradient-pos > div.gradient-active::before { opacity: 1; } .gradient-interaction .gradient-stops { margin-top: 18px; } .gradient-interaction .gradient-stops .gradient-stop-preview { height: 8px; width: 100%; border-radius: 6px; position: relative; overflow: hidden; cursor: pointer; } .gradient-interaction .gradient-stops .gradient-stop-preview::before { position: absolute; content: ""; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8, '); background-size: 8px; border-radius: 4px; z-index: -1; } .gradient-interaction .gradient-stops .gradient-stop-marker { position: relative; z-index: 1; } .gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker { height: 14px; width: 14px; position: absolute; background: currentColor; margin: -11px 0 0 -7px; border-radius: 100%; border: 2px solid white; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24); transition: opacity 0.15s; cursor: grab; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker::before { position: absolute; content: ""; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8, '); background-size: 4px; border-radius: 100%; z-index: -1; } .gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker.hide { opacity: 0; } .gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker.active { border-width: 3px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.6); } .default-color-panel { display: grid; grid-template-columns: repeat(auto-fill, 30px); grid-gap: 6px; justify-content: space-between; margin: 14px -16px 0px -16px; padding: 2px 16px 1px 16px; overflow: auto; max-height: 105px; } .default-color-panel .default-color-panel_item { height: 30px; width: 30px; cursor: pointer; position: relative; outline: none; border-radius: 4px; box-shadow: 0px 0px 0px 1px #bbbfc5; } .default-color-panel .default-color-panel_item.default-color-panel_item-active { user-select: none; } .default-color-panel .default-color-panel_item.default-color-panel_item-active .item_qub { position: absolute; inset: 35%; background: white; border-radius: 50%; opacity: 1; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.38); } @keyframes rcColorPickerSlideUpIn { 0% { opacity: 0; transform-origin: 0% 0%; transform: scaleY(0); } 100% { opacity: 1; transform-origin: 0% 0%; transform: scaleY(1); } } @keyframes rcColorPickerSlideUpOut { 0% { opacity: 1; transform-origin: 0% 0%; transform: scaleY(1); } 100% { opacity: 0; transform-origin: 0% 0%; transform: scaleY(0); } } @keyframes rcColorPickerSlideDownIn { 0% { opacity: 0; transform-origin: 100% 100%; transform: scaleY(0); } 100% { opacity: 1; transform-origin: 100% 100%; transform: scaleY(1); } } @keyframes rcColorPickerSlideDownOut { 0% { opacity: 1; transform-origin: 100% 100%; transform: scaleY(1); } 100% { opacity: 0; transform-origin: 100% 100%; transform: scaleY(0); } }`);function Zw(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ge=Zw(function(e){(function(t){var n=/^\s+/,i=/\s+$/,o=0,a=t.round,s=t.min,l=t.max,c=t.random;function d(b,H){if(b=b||"",H=H||{},b instanceof d)return b;if(!(this instanceof d))return new d(b,H);var j=u(b);this._originalInput=b,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=a(100*this._a)/100,this._format=H.format||j.format,this._gradientType=H.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=j.ok,this._tc_id=o++}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var b=this.toRgb();return(b.r*299+b.g*587+b.b*114)/1e3},getLuminance:function(){var b=this.toRgb(),H,j,G,K,Q,fe;return H=b.r/255,j=b.g/255,G=b.b/255,H<=.03928?K=H/12.92:K=t.pow((H+.055)/1.055,2.4),j<=.03928?Q=j/12.92:Q=t.pow((j+.055)/1.055,2.4),G<=.03928?fe=G/12.92:fe=t.pow((G+.055)/1.055,2.4),.2126*K+.7152*Q+.0722*fe},setAlpha:function(b){return this._a=M(b),this._roundA=a(100*this._a)/100,this},toHsv:function(){var b=p(this._r,this._g,this._b);return{h:b.h*360,s:b.s,v:b.v,a:this._a}},toHsvString:function(){var b=p(this._r,this._g,this._b),H=a(b.h*360),j=a(b.s*100),G=a(b.v*100);return this._a==1?"hsv("+H+", "+j+"%, "+G+"%)":"hsva("+H+", "+j+"%, "+G+"%, "+this._roundA+")"},toHsl:function(){var b=f(this._r,this._g,this._b);return{h:b.h*360,s:b.s,l:b.l,a:this._a}},toHslString:function(){var b=f(this._r,this._g,this._b),H=a(b.h*360),j=a(b.s*100),G=a(b.l*100);return this._a==1?"hsl("+H+", "+j+"%, "+G+"%)":"hsla("+H+", "+j+"%, "+G+"%, "+this._roundA+")"},toHex:function(b){return w(this._r,this._g,this._b,b)},toHexString:function(b){return"#"+this.toHex(b)},toHex8:function(b){return E(this._r,this._g,this._b,this._a,b)},toHex8String:function(b){return"#"+this.toHex8(b)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(W(this._r,255)*100)+"%",g:a(W(this._g,255)*100)+"%",b:a(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(W(this._r,255)*100)+"%, "+a(W(this._g,255)*100)+"%, "+a(W(this._b,255)*100)+"%)":"rgba("+a(W(this._r,255)*100)+"%, "+a(W(this._g,255)*100)+"%, "+a(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(b){var H="#"+k(this._r,this._g,this._b,this._a),j=H,G=this._gradientType?"GradientType = 1, ":"";if(b){var K=d(b);j="#"+k(K._r,K._g,K._b,K._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+H+",endColorstr="+j+")"},toString:function(b){var H=!!b;b=b||this._format;var j=!1,G=this._a<1&&this._a>=0,K=!H&&G&&(b==="hex"||b==="hex6"||b==="hex3"||b==="hex4"||b==="hex8"||b==="name");return K?b==="name"&&this._a===0?this.toName():this.toRgbString():(b==="rgb"&&(j=this.toRgbString()),b==="prgb"&&(j=this.toPercentageRgbString()),(b==="hex"||b==="hex6")&&(j=this.toHexString()),b==="hex3"&&(j=this.toHexString(!0)),b==="hex4"&&(j=this.toHex8String(!0)),b==="hex8"&&(j=this.toHex8String()),b==="name"&&(j=this.toName()),b==="hsl"&&(j=this.toHslString()),b==="hsv"&&(j=this.toHsvString()),j||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(b,H){var j=b.apply(null,[this].concat([].slice.call(H)));return this._r=j._r,this._g=j._g,this._b=j._b,this.setAlpha(j._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(b,H){return b.apply(null,[this].concat([].slice.call(H)))},analogous:function(){return this._applyCombination(Z,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},d.fromRatio=function(b,H){if(typeof b=="object"){var j={};for(var G in b)b.hasOwnProperty(G)&&(G==="a"?j[G]=b[G]:j[G]=ee(b[G]));b=j}return d(b,H)};function u(b){var H={r:0,g:0,b:0},j=1,G=null,K=null,Q=null,fe=!1,se=!1;return typeof b=="string"&&(b=Ae(b)),typeof b=="object"&&(we(b.r)&&we(b.g)&&we(b.b)?(H=h(b.r,b.g,b.b),fe=!0,se=String(b.r).substr(-1)==="%"?"prgb":"rgb"):we(b.h)&&we(b.s)&&we(b.v)?(G=ee(b.s),K=ee(b.v),H=m(b.h,G,K),fe=!0,se="hsv"):we(b.h)&&we(b.s)&&we(b.l)&&(G=ee(b.s),Q=ee(b.l),H=g(b.h,G,Q),fe=!0,se="hsl"),b.hasOwnProperty("a")&&(j=b.a)),j=M(j),{ok:fe,format:b.format||se,r:s(255,l(H.r,0)),g:s(255,l(H.g,0)),b:s(255,l(H.b,0)),a:j}}function h(b,H,j){return{r:W(b,255)*255,g:W(H,255)*255,b:W(j,255)*255}}function f(b,H,j){b=W(b,255),H=W(H,255),j=W(j,255);var G=l(b,H,j),K=s(b,H,j),Q,fe,se=(G+K)/2;if(G==K)Q=fe=0;else{var $e=G-K;switch(fe=se>.5?$e/(2-G-K):$e/(G+K),G){case b:Q=(H-j)/$e+(H1&&(Ke-=1),Ke<1/6?Ve+(Xt-Ve)*6*Ke:Ke<1/2?Xt:Ke<2/3?Ve+(Xt-Ve)*(2/3-Ke)*6:Ve}if(H===0)G=K=Q=j;else{var se=j<.5?j*(1+H):j+H-j*H,$e=2*j-se;G=fe($e,se,b+1/3),K=fe($e,se,b),Q=fe($e,se,b-1/3)}return{r:G*255,g:K*255,b:Q*255}}function p(b,H,j){b=W(b,255),H=W(H,255),j=W(j,255);var G=l(b,H,j),K=s(b,H,j),Q,fe,se=G,$e=G-K;if(fe=G===0?0:$e/G,G==K)Q=0;else{switch(G){case b:Q=(H-j)/$e+(H>1)+720)%360;--H;)G.h=(G.h+K)%360,Q.push(d(G));return Q}function I(b,H){H=H||6;for(var j=d(b).toHsv(),G=j.h,K=j.s,Q=j.v,fe=[],se=1/H;H--;)fe.push(d({h:G,s:K,v:Q})),Q=(Q+se)%1;return fe}d.mix=function(b,H,j){j=j===0?0:j||50;var G=d(b).toRgb(),K=d(H).toRgb(),Q=j/100,fe={r:(K.r-G.r)*Q+G.r,g:(K.g-G.g)*Q+G.g,b:(K.b-G.b)*Q+G.b,a:(K.a-G.a)*Q+G.a};return d(fe)},d.readability=function(b,H){var j=d(b),G=d(H);return(t.max(j.getLuminance(),G.getLuminance())+.05)/(t.min(j.getLuminance(),G.getLuminance())+.05)},d.isReadable=function(b,H,j){var G=d.readability(b,H),K,Q;switch(Q=!1,K=Te(j),K.level+K.size){case"AAsmall":case"AAAlarge":Q=G>=4.5;break;case"AAlarge":Q=G>=3;break;case"AAAsmall":Q=G>=7;break}return Q},d.mostReadable=function(b,H,j){var G=null,K=0,Q,fe,se,$e;j=j||{},fe=j.includeFallbackColors,se=j.level,$e=j.size;for(var Ve=0;VeK&&(K=Q,G=d(H[Ve]));return d.isReadable(b,G,{level:se,size:$e})||!fe?G:(j.includeFallbackColors=!1,d.mostReadable(b,["#fff","#000"],j))};var V=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=z(V);function z(b){var H={};for(var j in b)b.hasOwnProperty(j)&&(H[b[j]]=j);return H}function M(b){return b=parseFloat(b),(isNaN(b)||b<0||b>1)&&(b=1),b}function W(b,H){le(b)&&(b="100%");var j=de(b);return b=s(H,l(0,parseFloat(b))),j&&(b=parseInt(b*H,10)/100),t.abs(b-H)<1e-6?1:b%H/parseFloat(H)}function X(b){return s(1,l(0,b))}function Y(b){return parseInt(b,16)}function le(b){return typeof b=="string"&&b.indexOf(".")!=-1&&parseFloat(b)===1}function de(b){return typeof b=="string"&&b.indexOf("%")!=-1}function B(b){return b.length==1?"0"+b:""+b}function ee(b){return b<=1&&(b=b*100+"%"),b}function ce(b){return t.round(parseFloat(b)*255).toString(16)}function re(b){return Y(b)/255}var ne=function(){var b="[-\\+]?\\d+%?",H="[-\\+]?\\d*\\.\\d+%?",j="(?:"+H+")|(?:"+b+")",G="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",K="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?";return{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+G),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+G),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+G),hsva:new RegExp("hsva"+K),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function we(b){return!!ne.CSS_UNIT.exec(b)}function Ae(b){b=b.replace(n,"").replace(i,"").toLowerCase();var H=!1;if(V[b])b=V[b],H=!0;else if(b=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var j;return(j=ne.rgb.exec(b))?{r:j[1],g:j[2],b:j[3]}:(j=ne.rgba.exec(b))?{r:j[1],g:j[2],b:j[3],a:j[4]}:(j=ne.hsl.exec(b))?{h:j[1],s:j[2],l:j[3]}:(j=ne.hsla.exec(b))?{h:j[1],s:j[2],l:j[3],a:j[4]}:(j=ne.hsv.exec(b))?{h:j[1],s:j[2],v:j[3]}:(j=ne.hsva.exec(b))?{h:j[1],s:j[2],v:j[3],a:j[4]}:(j=ne.hex8.exec(b))?{r:Y(j[1]),g:Y(j[2]),b:Y(j[3]),a:re(j[4]),format:H?"name":"hex8"}:(j=ne.hex6.exec(b))?{r:Y(j[1]),g:Y(j[2]),b:Y(j[3]),format:H?"name":"hex"}:(j=ne.hex4.exec(b))?{r:Y(j[1]+""+j[1]),g:Y(j[2]+""+j[2]),b:Y(j[3]+""+j[3]),a:re(j[4]+""+j[4]),format:H?"name":"hex8"}:(j=ne.hex3.exec(b))?{r:Y(j[1]+""+j[1]),g:Y(j[2]+""+j[2]),b:Y(j[3]+""+j[3]),format:H?"name":"hex"}:!1}function Te(b){var H,j;return b=b||{level:"AA",size:"small"},H=(b.level||"AA").toUpperCase(),j=(b.size||"small").toLowerCase(),H!=="AA"&&H!=="AAA"&&(H="AA"),j!=="small"&&j!=="large"&&(j="small"),{level:H,size:j}}e.exports?e.exports=d:window.tinycolor=d})(Math)}),Sc=function(e){var t={hex:"#ffffff",alpha:100},n=Ge(e);if(e)if(n.isValid()&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient"))t.hex=n.toHexString(),t.alpha=Math.round(n.getAlpha()*100);else return t;return t},dh=function(e,t){var n=wt(Et(e),2),i=n[0],o=n[1];return Dt(function(){var a=setTimeout(function(){o(e)},t);return function(){clearTimeout(a)}},[e,t]),i},Ww=[{angle:"0",name:"to top"},{angle:"45",name:"to top right"},{angle:"45",name:"to right top"},{angle:"90",name:"to right"},{angle:"135",name:"to right bottom"},{angle:"135",name:"to bottom right"},{angle:"180",name:"to bottom"},{angle:"225",name:"to left bottom"},{angle:"225",name:"to bottom left"},{angle:"270",name:"to left"},{angle:"315",name:"to top left"},{angle:"315",name:"to left top"}],uh=function(e){var t,n,i=Ge(e),o={stops:[["rgba(0, 0, 0, 1)",0,0],["rgba(183, 80, 174, 0.92)",1,1]],gradient:"linear-gradient(180deg, rgba(6, 6, 6, 1) 0.0%, rgba(183, 80, 174, 0.92) 100.0%)",modifier:180,type:"linear"};if(e==="transparent")return o;if(i.isValid()&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient")){var a=i.toRgbString();return a&&(o.stops=[["rgba(0, 0, 0, 1)",0,0],[a,1,1]],o.gradient="linear-gradient(180deg, rgba(6, 6, 6, 1) 0.0%, "+a+" 100.0%)"),o}else{e=e.replace(";","").replace("background-image:","");var s=hh(e),l=[],c="";if(s==="Failed to find gradient"||s==="Not correct position")return console.warn("Incorrect gradient value"),o;typeof s!="string"&&(l=s.stops,c=s.angle?s.angle:s.line);var d=wt(e.match(/^(\w+)-gradient\((.*)\)$/i)||[],3),u=d[1],h=d[2];if(!u||!h)return console.warn("Incorrect gradient value"),o;var f=(t=Ww.find(function(m){return m.name===c}))===null||t===void 0?void 0:t.angle,g=u==="linear"?"180":"circle at center",p=f||c||g;return{gradient:u+"-gradient("+(typeof s!="string"?s.original:e)+")",type:u,modifier:p.match(/\d+/)!==null?Number((n=p.match(/\d+/))===null||n===void 0?void 0:n.join("")):p,stops:l.map(function(m,w){var E=[""+m.color,w];return(m.position||m.position===0)&&E.splice(1,0,m.position),E})}}},vo=function(e,t,n,i){var o=Ge(e),a,s=i||o.getAlpha()*100;switch(t){case"rgb":a=o.toRgbString();break;case"hsl":a=o.toHslString();break;case"hex":n&&s!==100?a=o.toHex8String():a=o.toHexString();break;default:a="";break}return a},Vn=function(e,t,n,i,o){i===void 0&&(i="rgb");var a="";switch(e){case"linear":typeof n=="number"&&(a="linear-gradient("+n+"deg, "+t.map(function(s){return vo(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")"),typeof n=="string"&&(a="linear-gradient("+n+", "+t.map(function(s){return vo(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")");break;case"radial":a="radial-gradient("+n+", "+t.map(function(s){return vo(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")";break}return a},Lo=function(e){if(e){if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===0)return e+=",1",e.match(/[\.\d]+/g).map(function(t){return+t})}},Ao=function(e){if(!Array.isArray(e)||e.length<3||e.length>4)return"";var t=e.map(function(n){var i=(+n).toString(16);return i.length===1&&(i="0"+i),i},[]);return~t.indexOf("NaN")?"":"#"+t.join("")},Gw=function(e){return!!Ao(e)},Qr=function(e,t){return new RegExp(e.reduce(function(n,i){return n+(typeof i=="string"?i:i.source)},""),t)},Uw=function(){var e="gi",t=/(?:[+-]?\d*\.?\d+)(?:deg|grad|rad|turn)/,n=/to\s+((?:(?:left|right)(?:\s+(?:top|bottom))?))/,i=/circle at\s+((?:(?:left|right|center|top|bottom)(?:\s+(?:left|right|center|top|bottom))?))/,o=/\s*,\s*/,a=/\#(?:[a-f0-9]{6,8}|[a-f0-9]{3})/,s=/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*\)/,l=/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*,\s*\d*\.?\d+\)/,c=/(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?/,d=/[_a-z-][_a-z0-9-]*/,u=Qr(["(?:",a,"|","(?:rgb|hsl)",s,"|","(?:rgba|hsla)",l,"|",d,")"],""),h=Qr([u,"(?:\\s+",c,"(?:\\s+",c,")?)?"],""),f=Qr(["(?:",h,o,")*",h],""),g=Qr(["(?:(",t,")|",n,"|",i,")"],""),p=Qr(["(?:(",g,")",o,")?(",f,")"],e),m=Qr(["\\s*(",u,")","(?:\\s+","(",c,"))?","(?:",o,"\\s*)?"],e);return{gradientSearch:p,colorStopSearch:m}},Yw=function(e,t){var n={stops:[],angle:"",line:"",original:""},i,o,a;if(e.gradientSearch.lastIndex=0,i=e.gradientSearch.exec(t),i!==null)for(n=he(he({},n),{original:i[0]}),i[1]&&(n.line=i[1]),i[2]&&(n.angle=i[2]),i[3]&&(n.sideCorner=i[3]),e.colorStopSearch.lastIndex=0,o=e.colorStopSearch.exec(i[5]);o!==null;){var s=Ge(o[1]);a={color:s.toRgbString()},o[2]&&(a.position=Number((parseInt(o[2],10)/100).toFixed(2))),n.stops.push(a),o=e.colorStopSearch.exec(i[5])}return n},hh=function(e){var t=Uw(),n,i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/,o=i.exec(e);return o!==null?(n=Yw(t,o[1]),n.original.trim()!==o[1].trim()&&(n.parseWarning=!0),n.stops.every(function(a){return a.hasOwnProperty("position")})===!1&&(n="Not correct position")):n="Failed to find gradient",n},v1=function(){function e(t){var n=this;this.initRgb=function(){var o=n.color.toRgb(),a=o.r,s=o.g,l=o.b;n.redValue=a,n.greenValue=s,n.blueValue=l},this.initHsb=function(){var o=n.color.toHsv(),a=o.h,s=o.s,l=o.v;n.hueValue=a,n.saturationValue=s,n.brightnessValue=l},this.toHexString=function(){return n.color.toHexString()},this.toRgbString=function(){return n.color.toRgbString()},this.toHsv=function(){return n.color.toHsv()},this.color=Ge(t),this.initRgb(),this.initHsb();var i=this.color.toRgb().a;this.alphaValue=Math.min(1,i)*100,this.hueValue=this.color.toHsv().h,this.saturationValue=this.color.toHsv().s,this.brightnessValue=this.color.toHsv().v,this.redValue=this.color.toRgb().r,this.greenValue=this.color.toRgb().g,this.blueValue=this.color.toRgb().b,this.lightnessValue=0}return e.isValidHex=function(t){return Ge(t).isValid()},Object.defineProperty(e.prototype,"hex",{get:function(){return this.color.toHex()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hue",{get:function(){return this.hueValue},set:function(t){this.color=Ge({h:t,s:this.saturation,v:this.brightness}),this.initRgb(),this.hueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"saturation",{get:function(){return this.saturationValue},set:function(t){this.color=Ge({h:this.hue,s:t,v:this.brightness}),this.initRgb(),this.saturationValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lightness",{get:function(){return this.lightnessValue},set:function(t){this.color=Ge({h:this.hue,s:this.saturation,l:t}),this.initRgb(),this.lightnessValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"brightness",{get:function(){return this.brightnessValue},set:function(t){this.color=Ge({h:this.hue,s:this.saturation,v:t}),this.initRgb(),this.brightnessValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"red",{get:function(){return this.redValue},set:function(t){var n=this.color.toRgb();this.color=Ge(he(he({},n),{r:t})),this.initHsb(),this.redValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"green",{get:function(){return this.greenValue},set:function(t){var n=this.color.toRgb();this.color=Ge(he(he({},n),{g:t})),this.initHsb(),this.greenValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blue",{get:function(){return this.blueValue},set:function(t){var n=this.color.toRgb();this.color=Ge(he(he({},n),{b:t})),this.initHsb(),this.blueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.color.getAlpha()*100},set:function(t){this.color.setAlpha(t/100)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return[this.red,this.green,this.blue]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSB",{get:function(){return[this.hue,this.saturation,this.brightness]},enumerable:!1,configurable:!0}),e}(),Xw=200,Jw=150,Kw=function(e){var t=e.rootPrefixCls,n=e.color,i=e.colorBoardHeight,o=e.onChange,a=e.setChange,s=Vr(),l=function(){a(!1),window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",p)},c=function(){a(!1),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",f)};Dt(function(){return function(){l(),c()}},[]);var d=function(x){x.preventDefault();var C=x.buttons;if(C===1){l();var A=x.clientX,O=x.clientY;w({x:A,y:O}),window.addEventListener("mousemove",g),window.addEventListener("mouseup",p)}},u=function(x){if(x.cancelable&&x.preventDefault(),x.touches.length===1){c();var C=x.targetTouches[0].clientX,A=x.targetTouches[0].clientY;w({x:C,y:A}),window.addEventListener("touchmove",h,{passive:!1}),window.addEventListener("touchend",f,{passive:!1})}},h=function(x){x.cancelable&&x.preventDefault();var C=x.targetTouches[0].clientX,A=x.targetTouches[0].clientY;w({x:C,y:A})},f=function(){c()},g=function(x){x.preventDefault();var C=x.clientX,A=x.clientY;w({x:C,y:A})},p=function(x){x.preventDefault();var C=x.clientX,A=x.clientY;w({x:C,y:A}),l()},m=function(){return t+"-board"},w=function(x){var C=s&&s.current.getBoundingClientRect(),A=x.x-C.left,O=x.y-C.top,D=C.width||Xw,R=C.height||Jw;A=Math.max(0,A),A=Math.min(A,D),O=Math.max(0,O),O=Math.min(O,R),n.saturation=A/D,n.brightness=1-O/R,o(n)},E=m(),k={h:n.hue,s:1,v:1},S=new v1(k).toHexString(),y=n.saturation*100,$=(1-n.brightness)*100;return J.createElement("div",{className:E,ref:s},J.createElement("div",{className:E+"-hsv",style:{backgroundColor:S,height:i+"px",minHeight:i+"px"}},J.createElement("div",{className:E+"-value"}),J.createElement("div",{className:E+"-saturation"})),J.createElement("span",{style:{left:"calc("+y+"% - 7px)",top:"calc("+$+"% - 7px)",backgroundColor:n.toHexString()}}),J.createElement("div",{className:E+"-handler",onMouseDown:d,onTouchStart:u}))},qw=function(e){var t=e.rootPrefixCls,n=e.color,i=e.onChange,o=e.setChange,a=Vr(),s=function(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",u)},l=function(){o(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",g)};Dt(function(){return function(){s(),l()}},[]);var c=function($){$.preventDefault();var x=$.clientX,C=$.clientY;m({x,y:C}),window.addEventListener("mousemove",d),window.addEventListener("mouseup",u)},d=function($){var x=$.clientX,C=$.clientY;m({x,y:C})},u=function($){var x=$.clientX,C=$.clientY;m({x,y:C}),o(!1),s()},h=function($){if($.cancelable&&$.preventDefault(),$.touches.length===1){l();var x=$.targetTouches[0].clientX,C=$.targetTouches[0].clientY;m({x,y:C}),window.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("touchend",g,{passive:!1})}},f=function($){$.cancelable&&$.preventDefault();var x=$.targetTouches[0].clientX,C=$.targetTouches[0].clientY;m({x,y:C})},g=function(){l()},p=function(){return t+"-ribbon"},m=function($){var x=a&&a.current.getBoundingClientRect(),C=x.width,A=$.x-x.left;A=Math.max(0,A),A=Math.min(A,C);var O=A/C,D=O*360;n.hue=D,i(n)},w={h:n.hue,s:1,v:1},E=new v1(w).toHexString(),k=p(),S=n.hue,y=S/360*100;return J.createElement("div",{className:k,ref:a,onMouseDown:c,onTouchStart:h},J.createElement("div",{className:"color-picker-panel-ribbon-bg"}),J.createElement("span",{style:{left:y+"%",backgroundColor:E}}),J.createElement("div",{className:k+"-handler"}))},t0=function(e,t,n,i){return"rgba("+[e,t,n,i/100].join(",")+")"},Qw=function(e){var t=e.rootPrefixCls,n=e.color,i=e.alpha,o=e.onChange,a=e.setChange,s=Vr(),l=function(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},c=function(){a(!1),window.removeEventListener("touchmove",g),window.removeEventListener("touchend",p)};Dt(function(){return function(){l(),c()}},[]);var d=function(y){var $=y.clientX,x=y.clientY;E({x:$,y:x}),window.addEventListener("mousemove",u),window.addEventListener("mouseup",h)},u=function(y){var $=y.clientX,x=y.clientY;E({x:$,y:x})},h=function(y){var $=y.clientX,x=y.clientY;E({x:$,y:x}),a(!1),l()},f=function(y){if(y.cancelable&&y.preventDefault(),y.touches.length===1){c();var $=y.targetTouches[0].clientX,x=y.targetTouches[0].clientY;E({x:$,y:x}),window.addEventListener("touchmove",g,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}},g=function(y){y.cancelable&&y.preventDefault();var $=y.targetTouches[0].clientX,x=y.targetTouches[0].clientY;E({x:$,y:x})},p=function(){c()},m=function(){var y=n.red,$=n.green,x=n.blue,C="linear-gradient(to right, "+t0(y,$,x,0)+" , "+t0(y,$,x,100)+")";return C},w=function(){return t+"-alpha"},E=function(y){var $=s&&s.current.getBoundingClientRect(),x=$.width,C=y.x-$.left;C=Math.max(0,C),C=Math.min(C,x);var A=Math.round(C/x*100);o(A)},k=function(){var y=n.red,$=n.green,x=n.blue,C=(i||1)/100;return"rgba("+y+", "+$+", "+x+", "+C+")"},S=w();return J.createElement("div",{className:S,ref:s,onMouseDown:d,onTouchStart:f},J.createElement("div",{className:S+"-bg",style:{background:m()}}),J.createElement("span",{style:{left:i+"%",backgroundColor:k()}}),J.createElement("div",{className:S+"-handler"}))},fh=function(e){var t=e.alpha,n=e.className,i=e.hex,o=e.colorBoardHeight,a=e.showAlpha,s=e.onChange,l=Vr(),c=new v1(i);c.alpha=t;var d=wt(Et({color:c,alpha:t}),2),u=d[0],h=d[1],f=wt(Et(!1),2),g=f[0],p=f[1];Dt(function(){g||h({color:c,alpha:t})},[i,t]);var m=function(E){p(!0);var k=u.color;k.alpha=E,h({color:k,alpha:E}),s({hex:k.toHexString(),alpha:E})},w=function(E){p(!0);var k=u.alpha;E.alpha=k,h(he(he({},u),{color:E,alpha:E.alpha})),s({hex:E.toHexString(),alpha:E.alpha})};return J.createElement("div",{ref:l,className:["color-picker-panel",n].join(" "),tabIndex:0},J.createElement("div",{className:"color-picker-panel-inner"},J.createElement(Kw,{rootPrefixCls:"color-picker-panel",color:u.color,colorBoardHeight:o,onChange:w,setChange:p}),J.createElement("div",{className:"color-picker-panel-wrap"+(a?" color-picker-panel-wrap-has-alpha":"")},J.createElement("div",{className:"color-picker-panel-wrap-ribbon"},J.createElement(qw,{rootPrefixCls:"color-picker-panel",color:u.color,onChange:w,setChange:p})),a&&J.createElement("div",{className:"color-picker-panel-wrap-alpha"},J.createElement(Qw,{rootPrefixCls:"color-picker-panel",alpha:u.alpha,color:u.color,onChange:m,setChange:p})))))};m1(`.input_rgba { position: relative; } .input_rgba .input_rgba-wrap { display: flex; } .input_rgba .input_rgba-wrap .input_rgba-hex { position: relative; width: 100%; font-size: 0; } .input_rgba .input_rgba-wrap .input_rgba-hex .input_rgba-hex-label { position: absolute; top: 7px; left: 12px; font-size: 16px; color: #929fb7; font-size: 14px; font-weight: normal; font-stretch: normal; font-style: normal; line-height: 1.71; letter-spacing: normal; } .input_rgba .input_rgba-wrap .input_rgba-hex input { padding-left: 26px; } .input_rgba .input_rgba-wrap .input_rgba-alpha { margin-left: 16px; position: relative; flex-grow: 0; flex-shrink: 0; flex-basis: 71px; font-size: 0; } .input_rgba .input_rgba-wrap .input_rgba-alpha .input_rgba-alpha-label { position: absolute; top: 16%; color: #929fb7; right: 12px; font-size: 16px; } .input_rgba .input_rgba-wrap input { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; outline: none; border: none; box-shadow: none; width: 100%; height: 40px; border-radius: 4px; background-color: #fff; font-size: 16px; font-weight: normal; font-stretch: normal; font-style: normal; line-height: 24px; letter-spacing: normal; color: #312e55; margin-bottom: 8px; padding-left: 12px; padding-right: 12px; padding-top: 0; padding-bottom: 0; transition: all 0.15s ease; box-shadow: 0px 0px 0px 2px #bbbfc5; } .input_rgba .input_rgba-wrap input:hover { background-color: #d4e5ff; box-shadow: none; } .input_rgba .input_rgba-wrap input:focus { box-shadow: 0px 0px 0px 2px #6dbafd; background-color: #e5f3ff; } .input_rgba .input_rgba-wrap .input_rgba-label { width: 100%; text-transform: uppercase; font-size: 12px; font-weight: bold; font-stretch: normal; font-style: normal; line-height: 1.67; letter-spacing: 0.5px; text-align: center; color: #929fb7; }`);var e8=function(e){return e.replace(/%/i,""),e[0]==="0"&&e.length>1?e.substr(1):Number(e)>=100?100:isNaN(Number(e))?parseInt(e):e||0},t8=function(e){return e?e.substr(0,3).replace(/[^\d]/g,""):""},n8=function(e){return e&&e.substring(0,1)==="#"&&(e=e.substring(1)),e?e.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""},r8=function(e,t){e.key==="Enter"&&t()},i8=function(e){var t={wrapClass:"input_rgba-hex",labelSymbol:!0,idInput:"rgba-hex"+Math.random()*1e4,valueInput:e.hexValue,labelText:"Hex",labelArea:"hex",labelClass:"input_rgba-label",onChangeInput:function(i){return e.onChangeHex(n8(i.target.value))},name:"hex"},n={wrapClass:"input_rgba-alpha",labelSymbol:!1,idInput:"rgba-alpha"+Math.random()*1e4,valueInput:e.alphaValue,labelText:"Alpha",labelArea:"alpha",labelClass:"input_rgba-label",onChangeInput:function(i){return e.onChangeAlpha(t8(i.target.value))},name:"alpha"};return e.showAlpha===!1?[t]:[t,n]},ph=function(e){var t=e.hex,n=e.alpha,i=e.format,o=i===void 0?"rgb":i,a=e.showAlpha,s=a===void 0?!0:a,l=e.onChange,c=e.onSubmitChange,d=wt(Et({alpha:n,hex:t}),2),u=d[0],h=d[1],f=function(w){var E=e8(w);h(he(he({},u),{alpha:Number(E)}))},g=function(w){h(he(he({},u),{hex:w}))},p=function(){var w=Ge(u.hex[0]==="#"?u.hex:"#"+u.hex);w.setAlpha(Number(u.alpha)/100),w&&(u.alpha!==n||u.hex!==t)?(l({hex:u.hex[0]==="#"?u.hex:"#"+u.hex,alpha:Number(u.alpha)}),c&&c(vo(w.toRgbString(),o,s,u.alpha))):(h({hex:t,alpha:n}),l({hex:t,alpha:n}))};Dt(function(){h({hex:t,alpha:n})},[t,n]);var m={alphaValue:u.alpha,hexValue:u.hex.replace(/#/i,""),onChangeAlpha:f,onChangeHex:g,showAlpha:s};return J.createElement("div",{className:"input_rgba"},J.createElement("div",{className:"input_rgba-wrap"},i8(m).map(function(w,E){var k=w.wrapClass,S=w.labelSymbol,y=w.idInput,$=w.valueInput,x=w.labelText,C=w.labelArea,A=w.labelClass,O=w.onChangeInput,D=w.name;return J.createElement("div",{className:k,key:E},S&&J.createElement("label",{htmlFor:"rgba-hex",className:"input_rgba-hex-label"},"#"),D==="alpha"&&J.createElement("label",{htmlFor:y,className:"input_rgba-alpha-label"},"%"),J.createElement("input",{type:"text",id:y,value:$,"aria-label":C,onChange:function(R){return O(R)},onBlur:p,onKeyPress:function(R){return r8(R,p)}}),J.createElement("div",{className:A},x))})))},o8=function(e){var t=e.color,n=e.setColor,i=e.activeColor,o=e.setActiveColor,a=e.setInit,s=e.format,l=s===void 0?"rgb":s,c=e.showAlpha,d=c===void 0?!0:c,u=e.allowAddGradientStops,h=u===void 0?!0:u,f=Vr(),g=wt(Et(!1),2),p=g[0],m=g[1],w=wt(Et(!1),2),E=w[0],k=w[1],S=t.stops,y=t.type,$=t.modifier,x=function(T){if(a(!1),T.stopPropagation(),!!h){var z=T.target;if(z.className!=="gradient-marker"){var M=z.getBoundingClientRect(),W=T.clientX-M.left,X=Number((100/M.width*W).toFixed(0))/100,Y=Ge(i.hex);Y.setAlpha(i.alpha/100);var le=ch(t.stops,[[Y.toRgbString(),X,t.stops.length]]).sort(function(de,B){return de[1]-B[1]}).map(function(de,B){return de[2]=B,de});n(he(he({},t),{gradient:""+Vn(y,le,$,l,d),stops:le})),o(he(he({},i),{loc:X,index:le.find(function(de){return de[1]===X})[2]}))}}},C=function(){window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",R)},A=function(){window.removeEventListener("touchmove",F),window.removeEventListener("touchend",Z)},O=function(T,z){if(T.preventDefault(),T.stopPropagation(),T.nativeEvent.stopImmediatePropagation(),T.detail!==2&&(a(!1),T.button===0)){var M=Ge(z[0]);o({hex:"#"+M.toHex(),alpha:M.getAlpha()*100,loc:z[1],index:z[2]});var W=T.clientX,X=T.clientY;I({x:W,y:X}),window.addEventListener("mousemove",D),window.addEventListener("mouseup",R)}},D=function(T){var z,M=T.clientX,W=T.clientY,X=(z=f==null?void 0:f.current)===null||z===void 0?void 0:z.getBoundingClientRect(),Y=W-X.y;if(Y>80&&S.length>2){k(!0);return}else k(!1);I({x:M,y:W})},R=function(T){var z,M=T.clientX,W=T.clientY,X=(z=f==null?void 0:f.current)===null||z===void 0?void 0:z.getBoundingClientRect(),Y=W-X.y;Y>80&&S.length>2&&m(!0),I({x:M,y:W}),C()},P=function(T,z){if(a(!1),T.cancelable&&T.preventDefault(),T.touches.length===1){A();var M=Ge(z[0]);o({hex:"#"+M.toHex(),alpha:M.getAlpha()*100,loc:z[1],index:z[2]});var W=T.targetTouches[0].clientX,X=T.targetTouches[0].clientY;I({x:W,y:X}),window.addEventListener("touchmove",F,{passive:!1}),window.addEventListener("touchend",Z,{passive:!1})}},F=function(T){var z;T.cancelable&&T.preventDefault();var M=T.targetTouches[0].clientX,W=T.targetTouches[0].clientY,X=(z=f==null?void 0:f.current)===null||z===void 0?void 0:z.getBoundingClientRect(),Y=W-X.y;if(Y>80&&S.length>2){k(!0);return}else k(!1);I({x:M,y:W})},Z=function(){A()},I=function(T){var z=f&&f.current.getBoundingClientRect(),M=z.width,W=T.x-z.left;W=Math.max(0,W),W=Math.min(W,M);var X=Number((100/z.width*W).toFixed(0))/100;o(function(Y){return he(he({},Y),{loc:X})})},V=function(){if(!(S.length<=2)){var T=S.filter(function(Y){return Y[2]!==i.index}).map(function(Y,le){return Y[2]=le,Y}),z=Lo(T[T.length-1][0]),M=T[T.length-1][1],W=Ao([z[0],z[1],z[2]]),X=T[T.length-1][2];return m(!1),k(!1),o({hex:W,alpha:Number(Math.round(z[3]*100)),loc:M,index:X}),n(he(he({},t),{gradient:""+Vn(y,T,$,l,d),stops:T}))}};return Dt(function(){if(p)return V();var T=S.map(function(z){return i.index===z[2]?[z[0],i.loc,z[2]]:z});n(he(he({},t),{gradient:""+Vn(y,T,$,l,d),stops:T}))},[i.loc,p]),Dt(function(){return function(){C(),A()}},[]),J.createElement("div",{className:"gradient-stops",onClick:function(T){return x(T)},ref:f},J.createElement("div",{className:"gradient-stop-preview",style:{background:"linear-gradient(to right, "+S.map(function(T){return T[0]+" "+T[1]*100+"%"}).join(", ")+")"}}),J.createElement("div",{className:"gradient-stop-marker"},S.map(function(T){var z=T[1]*100,M=T[0];return J.createElement("div",{key:M+z+Math.random()*100,className:"gradient-marker"+(E&&i.index===T[2]?" hide":"")+(!E&&i.index===T[2]?" active":""),style:{left:Math.abs(Math.min(z,100))+"%",color:M},onTouchStart:function(W){return P(W,T)},onMouseDown:function(W){return O(W,T)},onClick:function(W){return W.stopPropagation()},onDoubleClick:V})})))},a8=function(e){var t="solid",n=Ge(e).isValid();if(e){if(e==="transparent"||n&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient"))return t="solid",t;var i=Lo(e);if(i){if(Gw([i[0],i[1],i[2]]))return t="solid",t}else return t="gradient",t}return t},n0=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=ch(new Set(e));switch(t){case"solid":return n.filter(function(i,o){var a=Ge(i);return a.isValid()&&!i.trim().startsWith("radial-gradient")&&!i.trim().startsWith("linear-gradient")?!0:(o>100,!1)});case"grad":return n.filter(function(i,o){var a=hh(i);return a==="Failed to find gradient"?!1:a==="Not correct position"?(console.warn("Incorrect gradient default value. You need to indicate the location for the colors. We ignore this gradient value"),!1):!(o>100)});default:return[]}},gh=function(e,t){if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;ne.gradient);function vh({value:e,onChange:t}){const n=Ei(i=>{t(i)},0);return r.jsx("div",{className:"brandy-gradient-picker",children:r.jsx(f8,{value:e,onChange:n,gradient:!0,solid:!1,defaultColors:p8})})}function w1(){return r.jsxs("svg",{width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("g",{clipPath:"url(#clip0_1979_2534)",children:r.jsx("path",{d:"M11.7465 11.0349C11.9074 11.1958 11.9979 11.4141 11.9979 11.6417C11.9979 11.8694 11.9074 12.0877 11.7465 12.2486C11.5855 12.4096 11.3672 12.5 11.1396 12.5C10.912 12.5 10.6937 12.4096 10.5327 12.2486L5.99964 7.71412L1.46515 12.2472C1.30419 12.4081 1.08589 12.4986 0.858264 12.4986C0.630638 12.4986 0.412335 12.4081 0.25138 12.2472C0.0904241 12.0862 2.39843e-09 11.8679 0 11.6403C-2.39843e-09 11.4127 0.0904241 11.1944 0.25138 11.0334L4.78587 6.50036L0.252807 1.96586C0.0918518 1.80491 0.00142799 1.5866 0.001428 1.35898C0.001428 1.13135 0.0918518 0.913049 0.252807 0.752094C0.413763 0.591138 0.632066 0.500714 0.859692 0.500714C1.08732 0.500714 1.30562 0.591138 1.46658 0.752094L5.99964 5.28659L10.5341 0.751379C10.6951 0.590424 10.9134 0.5 11.141 0.5C11.3686 0.5 11.5869 0.590424 11.7479 0.751379C11.9089 0.912335 11.9993 1.13064 11.9993 1.35826C11.9993 1.58589 11.9089 1.80419 11.7479 1.96515L7.21341 6.50036L11.7465 11.0349Z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_1979_2534",children:r.jsx("rect",{width:"12",height:"12",transform:"translate(0 0.5)"})})})]})}const g8=window.React.useEffect,li=window.React.useMemo,wa=window.React.useState,m8=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"}];function mt({color:e,onChange:t=()=>!1,hideGlobals:n=!1,usingGradient:i=!1}){const[o,a]=wa(null),[s,l]=wa(null),{styles:c,attributes:d}=In(o,s),[u,h]=wa(!1),f=()=>{h(y=>!y)},g=()=>{h(!1)},p=li(()=>lh(e),[e]),[m,w]=wa(e!=null&&e.includes("gradient")?"gradient":"solid");g8(()=>{const y=$=>{o==null&&s==null&&g(),!(s!=null&&s.contains($.target))&&!(o!=null&&o.contains($.target))&&g()};return window.jQuery(document).on("click","body",y),()=>{window.jQuery(document).off("click","body",y)}},[o,s]);const E=li(()=>p.color==""||p.color.endsWith("00")&&p.color.length>7,[p]),k=li(()=>p.color=="",[p]),S=li(()=>p.isGlobal,[p]);return r.jsxs(w8,{className:"brandy-color-picker",children:[r.jsxs(x8,{className:"brandy-color-preview",style:{background:p.color||"transparent"},ref:a,onClick:f,$_css2:[{display:"flex",height:"30px",width:"30px",alignItems:"center",justifyContent:"center"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#1e1e1e"}},{cursor:"pointer",borderRadius:"9999px"},{transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},u&&{outlineColor:"#1e1e1e"},E&&ue(["background:linear-gradient(45deg,#e0e0e3 25%,transparent 25%),linear-gradient(-45deg,#e0e0e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e0e3 75%),linear-gradient(-45deg,transparent 75%,#e0e0e3 75%) !important;background-size:4px 4px !important;background-position:0 0,0 10px,10px -10px,-10px 0px !important;"])],children:[E&&r.jsx(b8,{className:"[&_svg]:fill-[#A1ABB7]",children:k?r.jsx(w1,{}):r.jsx(oh,{})}),S&&r.jsx(y8,{children:r.jsx(_w,{})})]}),u&&r.jsxs(C8,{ref:l,className:"color-picker-popup",style:c.popper,...d.popper,$_css3:[{position:"absolute",right:"0px",marginTop:"0.5rem",marginBottom:"0.5rem",width:"250px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{zIndex:"99999999"},{borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},{cursor:"auto"},{"--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{display:"flex",flexDirection:"column",overflow:"hidden"}],children:[i&&r.jsx(_8,{children:r.jsx(At,{options:m8,selected:m??"solid",onChange:y=>{w(y)}})}),i&&m==="gradient"?r.jsx(vh,{value:e??"",onChange:t}):r.jsx(wh,{color:e,onChange:t,hideGlobals:n})]})]})}const jl=ue([""," &.selected{","}"],{position:"relative",height:"22px",width:"22px",cursor:"pointer",borderRadius:"5px","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{outlineStyle:"solid",outlineWidth:"1.5px",outlineOffset:"2px",outlineColor:"#2271B1"}),v8="#ffffff00",wh=({color:e,onChange:t=()=>!1,hideGlobals:n=!1})=>{const i=li(()=>sh(),[]),o=li(()=>lh(e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(S8,{children:r.jsx(pw,{color:o.color||v8,onChange:a=>{o.color==""||o.color==null||o.color.endsWith("00")&&o.color.length>7?t(a.slice(0,-2)+"ff"):t(a)}})}),r.jsx(j8,{children:r.jsx(k8,{value:o.color||"",onChange:t})}),!n&&r.jsxs("div",{children:[r.jsx(E8,{children:N("Theme colors")}),r.jsx(D8,{children:i.theme.map((a,s)=>r.jsx(_t,{title:a.name,children:r.jsx($8,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css4:[jl]})},s))}),r.jsx(H8,{children:N("Palette colors")}),r.jsxs(M8,{children:[i.palette.map((a,s)=>r.jsx(_t,{title:a.name,style:{textTransform:"capitalize"},children:r.jsx(I8,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css5:[jl]})},s)),r.jsx(T8,{className:`dashicons ${o.color==""?"selected":""} global-block transparent-block`,onClick:()=>{t("")},$_css6:[jl]})]})]})]})};var w8=v("div")({position:"relative"}),x8=v("div")`${e=>e.$_css2}`,b8=v("span")({position:"relative",display:"inline-block"}),y8=v("span")({position:"relative",display:"inline-block","& svg":{height:"16px",width:"16px",borderRadius:"50%",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(214 214 215 / var(--tw-border-opacity, 1))"},"& svg *[fill]":{fill:"#fff"}}),C8=v("div")`${e=>e.$_css3}`,_8=v("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"}),S8=v("div")({padding:"1rem",">.react-colorful":{width:"100%"}}),j8=v("div")({borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),k8=v(ot)({width:"100%"}),E8=v("div")({marginLeft:"1rem",marginRight:"1rem",marginTop:"1rem",fontWeight:"500"}),D8=v("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),$8=v("div")`${e=>e.$_css4}`,H8=v("div")({marginLeft:"1rem",marginRight:"1rem",fontWeight:"500"}),M8=v("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),I8=v("div")`${e=>e.$_css5}`,T8=v("div").withConfig({displayName:"ColorPicker___StyledDiv11",componentId:"sc-g829wk-0"})(["",""],e=>e.$_css6);function sr(e){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}function L8(e,t){if(sr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(sr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A8(e){var t=L8(e,"string");return sr(t)=="symbol"?t:t+""}function bn(e,t,n){return(t=A8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function St(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if(Uo(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(n&&l>1)return!1;i.add(a);var d=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var u=0;u=oe.F1&&n<=oe.F12)return!1;switch(n){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=oe.ZERO&&t<=oe.NINE||t>=oe.NUM_ZERO&&t<=oe.NUM_MULTIPLY||t>=oe.A&&t<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const q8=window.React;var Br=q8.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Q8=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const Dl=window.React;var g0=Dl.forwardRef(function(e,t){var n=e.prefixCls,i=e.value,o=e.valueIndex,a=e.onStartMove,s=e.style,l=e.render,c=e.dragging,d=e.onOffsetChange,u=e.onChangeComplete,h=e.onFocus,f=e.onMouseEnter,g=yh(e,Q8),p=Dl.useContext(Br),m=p.min,w=p.max,E=p.direction,k=p.disabled,S=p.keyboard,y=p.range,$=p.tabIndex,x=p.ariaLabelForHandle,C=p.ariaLabelledByForHandle,A=p.ariaValueTextFormatterForHandle,O=p.styles,D=p.classNames,R="".concat(n,"-handle"),P=function(Y){k||a(Y,o)},F=function(Y){h==null||h(Y,o)},Z=function(Y){f(Y,o)},I=function(Y){if(!k&&S){var le=null;switch(Y.which||Y.keyCode){case oe.LEFT:le=E==="ltr"||E==="btt"?-1:1;break;case oe.RIGHT:le=E==="ltr"||E==="btt"?1:-1;break;case oe.UP:le=E!=="ttb"?1:-1;break;case oe.DOWN:le=E!=="ttb"?-1:1;break;case oe.HOME:le="min";break;case oe.END:le="max";break;case oe.PAGE_UP:le=2;break;case oe.PAGE_DOWN:le=-2;break}le!==null&&(Y.preventDefault(),d(le,o))}},V=function(Y){switch(Y.which||Y.keyCode){case oe.LEFT:case oe.RIGHT:case oe.UP:case oe.DOWN:case oe.HOME:case oe.END:case oe.PAGE_UP:case oe.PAGE_DOWN:u==null||u();break}},T=x1(E,i,m,w),z={};if(o!==null){var M;z={tabIndex:k?null:ci($,o),role:"slider","aria-valuemin":m,"aria-valuemax":w,"aria-valuenow":i,"aria-disabled":k,"aria-label":ci(x,o),"aria-labelledby":ci(C,o),"aria-valuetext":(M=ci(A,o))===null||M===void 0?void 0:M(i),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:P,onTouchStart:P,onFocus:F,onMouseEnter:Z,onKeyDown:I,onKeyUp:V}}var W=Dl.createElement("div",Ro({ref:t,className:ke(R,bn(bn({},"".concat(R,"-").concat(o+1),o!==null&&y),"".concat(R,"-dragging"),c),D.handle),style:St(St(St({},T),s),O.handle)},z,g));return l&&(W=l(W,{index:o,prefixCls:n,value:i,dragging:c})),W}),e6=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"];const Kn=window.React;var t6=Kn.forwardRef(function(e,t){var n=e.prefixCls,i=e.style,o=e.onStartMove,a=e.onOffsetChange,s=e.values,l=e.handleRender,c=e.activeHandleRender,d=e.draggingIndex,u=e.onFocus,h=yh(e,e6),f=Kn.useRef({});Kn.useImperativeHandle(t,function(){return{focus:function($){var x;(x=f.current[$])===null||x===void 0||x.focus()}}});var g=Kn.useState(-1),p=Tt(g,2),m=p[0],w=p[1],E=function($,x){w(x),u==null||u($)},k=function($,x){w(x)},S=St({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:E,onMouseEnter:k},h);return Kn.createElement(Kn.Fragment,null,s.map(function(y,$){return Kn.createElement(g0,Ro({ref:function(C){C?f.current[$]=C:delete f.current[$]},dragging:d===$,style:ci(i,$),key:$,value:y,valueIndex:$},S))}),c&&Kn.createElement(g0,Ro({key:"a11y"},S,{value:s[m],valueIndex:null,dragging:d!==-1,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const m0=window.React;var n6=function(t){var n=t.prefixCls,i=t.style,o=t.children,a=t.value,s=t.onClick,l=m0.useContext(Br),c=l.min,d=l.max,u=l.direction,h=l.includedStart,f=l.includedEnd,g=l.included,p="".concat(n,"-text"),m=x1(u,a,c,d);return m0.createElement("span",{className:ke(p,bn({},"".concat(p,"-active"),g&&h<=a&&a<=f)),style:St(St({},m),i),onMouseDown:function(E){E.stopPropagation()},onClick:function(){s(a)}},o)};const v0=window.React;var r6=function(t){var n=t.prefixCls,i=t.marks,o=t.onClick,a="".concat(n,"-mark");return i.length?v0.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,d=s.label;return v0.createElement(n6,{key:l,prefixCls:a,style:c,value:l,onClick:o},d)})):null};const w0=window.React;var i6=function(t){var n=t.prefixCls,i=t.value,o=t.style,a=t.activeStyle,s=w0.useContext(Br),l=s.min,c=s.max,d=s.direction,u=s.included,h=s.includedStart,f=s.includedEnd,g="".concat(n,"-dot"),p=u&&h<=i&&i<=f,m=St(St({},x1(d,i,l,c)),typeof o=="function"?o(i):o);return p&&(m=St(St({},m),typeof a=="function"?a(i):a)),w0.createElement("span",{className:ke(g,bn({},"".concat(g,"-active"),p)),style:m})};const xa=window.React;var o6=function(t){var n=t.prefixCls,i=t.marks,o=t.dots,a=t.style,s=t.activeStyle,l=xa.useContext(Br),c=l.min,d=l.max,u=l.step,h=xa.useMemo(function(){var f=new Set;if(i.forEach(function(p){f.add(p.value)}),o&&u!==null)for(var g=c;g<=d;)f.add(g),g+=u;return Array.from(f)},[c,d,u,o,i]);return xa.createElement("div",{className:"".concat(n,"-step")},h.map(function(f){return xa.createElement(i6,{prefixCls:n,key:f,value:f,style:a,activeStyle:s})}))};const x0=window.React;var b0=function(t){var n=t.prefixCls,i=t.style,o=t.start,a=t.end,s=t.index,l=t.onStartMove,c=t.replaceCls,d=x0.useContext(Br),u=d.direction,h=d.min,f=d.max,g=d.disabled,p=d.range,m=d.classNames,w="".concat(n,"-track"),E=$c(o,h,f),k=$c(a,h,f),S=function(C){!g&&l&&l(C,-1)},y={};switch(u){case"rtl":y.right="".concat(E*100,"%"),y.width="".concat(k*100-E*100,"%");break;case"btt":y.bottom="".concat(E*100,"%"),y.height="".concat(k*100-E*100,"%");break;case"ttb":y.top="".concat(E*100,"%"),y.height="".concat(k*100-E*100,"%");break;default:y.left="".concat(E*100,"%"),y.width="".concat(k*100-E*100,"%")}var $=c||ke(w,bn(bn({},"".concat(w,"-").concat(s+1),s!==null&&p),"".concat(n,"-track-draggable"),l),m.track);return x0.createElement("div",{className:$,style:St(St({},y),i),onMouseDown:S,onTouchStart:S})};const ei=window.React;var a6=function(t){var n=t.prefixCls,i=t.style,o=t.values,a=t.startPoint,s=t.onStartMove,l=ei.useContext(Br),c=l.included,d=l.range,u=l.min,h=l.styles,f=l.classNames,g=ei.useMemo(function(){if(!d){if(o.length===0)return[];var m=a??u,w=o[0];return[{start:Math.min(m,w),end:Math.max(m,w)}]}for(var E=[],k=0;k3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var k,S=p[w],y=S+m,$=[];i.forEach(function(D){$.push(D.value)}),$.push(e,t),$.push(l(S));var x=m>0?1:-1;E==="unit"?$.push(l(S+x*n)):$.push(l(y)),$=$.filter(function(D){return D!==null}).filter(function(D){return m<0?D<=S:D>=S}),E==="unit"&&($=$.filter(function(D){return D!==S}));var C=E==="unit"?S:y;k=$[0];var A=Math.abs(k-C);if($.forEach(function(D){var R=Math.abs(D-C);R1){var O=rr(p);return O[w]=k,g(O,m-x,w,E)}return k}else{if(m==="min")return e;if(m==="max")return t}},u=function(p,m,w){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",k=p[w],S=d(p,m,w,E);return{value:S,changed:S!==k}},h=function(p){return a===null&&p===0||typeof a=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",k=p.map(c),S=k[w],y=d(k,m,w,E);if(k[w]=y,o===!1){var $=a||0;w>0&&k[w-1]!==S&&(k[w]=Math.max(k[w],k[w-1]+$)),w0;O-=1)for(var D=!0;h(k[O]-k[O-1])&&D;){var R=u(k,-1,O-1);k[O-1]=R.value,D=R.changed}for(var P=k.length-1;P>0;P-=1)for(var F=!0;h(k[P]-k[P-1])&&F;){var Z=u(k,-1,P-1);k[P-1]=Z.value,F=Z.changed}for(var I=0;I=0?V:!1},[V,Ve]),Ke=Re.useMemo(function(){return Object.keys(re||{}).map(function(Ne){var ge=re[Ne],Ee={value:Number(Ne)};return ge&&sr(ge)==="object"&&!Re.isValidElement(ge)&&("label"in ge||"style"in ge)?(Ee.style=ge.style,Ee.label=ge.label):Ee.label=ge,Ee}).filter(function(Ne){var ge=Ne.label;return ge||typeof ge=="number"}).sort(function(Ne,ge){return Ne.value-ge.value})},[re]),Wr=u6(se,$e,Ve,Ke,Z,Xt),dr=Tt(Wr,2),Jt=dr[0],Tn=dr[1],ea=Z8(x,{value:$}),Pt=Tt(ea,2),fn=Pt[0],ta=Pt[1],Kt=Re.useMemo(function(){var Ne=fn==null?[]:Array.isArray(fn)?fn:[fn],ge=Tt(Ne,1),Ee=ge[0],nt=Ee===void 0?se:Ee,rt=fn===null?[]:[nt];if(C){if(rt=rr(Ne),A||fn===void 0){var Qt=A>=0?A+1:2;for(rt=rt.slice(0,Qt);rt.length=0&&K.current.focus(Ne)}na(null)},[Ln]);var ol=Re.useMemo(function(){return T&&Ve===null?!1:T},[T,Ve]),ra=function(ge,Ee){Ur(ge,Ee),D==null||D(_n(ur.current))},ia=Vi!==-1;Re.useEffect(function(){if(!ia){var Ne=Kt.lastIndexOf(rl);K.current.focus(Ne)}},[ia]);var An=Re.useMemo(function(){return rr(Bi).sort(function(Ne,ge){return Ne-ge})},[Bi]),Zi=Re.useMemo(function(){return C?[An[0],An[An.length-1]]:[se,An[0]]},[An,C,se]),Sn=Tt(Zi,2),oa=Sn[0],aa=Sn[1];Re.useImperativeHandle(t,function(){return{focus:function(){K.current.focus(0)},blur:function(){var ge,Ee=document,nt=Ee.activeElement;(ge=Q.current)!==null&&ge!==void 0&&ge.contains(nt)&&(nt==null||nt.blur())}}}),Re.useEffect(function(){f&&K.current.focus(0)},[]);var al=Re.useMemo(function(){return{min:se,max:$e,direction:fe,disabled:d,keyboard:h,step:Ve,included:X,includedStart:oa,includedEnd:aa,range:C,tabIndex:b,ariaLabelForHandle:H,ariaLabelledByForHandle:j,ariaValueTextFormatterForHandle:G,styles:l||{},classNames:s||{}}},[se,$e,fe,d,h,Ve,X,oa,aa,C,b,H,j,G,l,s]);return Re.createElement(Br.Provider,{value:al},Re.createElement("div",{ref:Q,className:ke(i,o,bn(bn(bn(bn({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),M),"".concat(i,"-horizontal"),!M),"".concat(i,"-with-marks"),Ke.length)),style:a,onMouseDown:Fi},Re.createElement("div",{className:ke("".concat(i,"-rail"),s==null?void 0:s.rail),style:St(St({},B),l==null?void 0:l.rail)}),Re.createElement(a6,{prefixCls:i,style:le,values:An,startPoint:Y,onStartMove:ol?ra:void 0}),Re.createElement(o6,{prefixCls:i,marks:Ke,dots:ne,style:ee,activeStyle:ce}),Re.createElement(t6,{ref:K,prefixCls:i,style:de,values:Bi,draggingIndex:Vi,onStartMove:ra,onOffsetChange:il,onFocus:g,onBlur:p,handleRender:we,activeHandleRender:Ae,onChangeComplete:Pi}),Re.createElement(r6,{prefixCls:i,marks:Ke,onClick:Un})))});function _h({value:e,onChange:t=()=>!1,min:n=0,max:i,defaultValue:o,className:a="",step:s=1}){const l=Ei(c=>{t(c)},0);return r.jsx(h6,{className:ke(["brandy-component-slider",a]),value:e,onChange:l,min:n,max:i,step:s,defaultValue:o})}var ns={exports:{}};ns.exports;(function(e,t){var n=200,i="__lodash_hash_undefined__",o=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",p="[object GeneratorFunction]",m="[object Map]",w="[object Number]",E="[object Null]",k="[object Object]",S="[object Promise]",y="[object Proxy]",$="[object RegExp]",x="[object Set]",C="[object String]",A="[object Symbol]",O="[object Undefined]",D="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",F="[object Float32Array]",Z="[object Float64Array]",I="[object Int8Array]",V="[object Int16Array]",T="[object Int32Array]",z="[object Uint8Array]",M="[object Uint8ClampedArray]",W="[object Uint16Array]",X="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,le=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,B={};B[F]=B[Z]=B[I]=B[V]=B[T]=B[z]=B[M]=B[W]=B[X]=!0,B[l]=B[c]=B[R]=B[u]=B[P]=B[h]=B[f]=B[g]=B[m]=B[w]=B[k]=B[$]=B[x]=B[C]=B[D]=!1;var ee=typeof tt=="object"&&tt&&tt.Object===Object&&tt,ce=typeof self=="object"&&self&&self.Object===Object&&self,re=ee||ce||Function("return this")(),ne=t&&!t.nodeType&&t,we=ne&&!0&&e&&!e.nodeType&&e,Ae=we&&we.exports===ne,Te=Ae&&ee.process,b=function(){try{return Te&&Te.binding&&Te.binding("util")}catch{}}(),H=b&&b.isTypedArray;function j(_,L){for(var U=-1,ie=_==null?0:_.length,Be=0,xe=[];++U-1}function pn(_,L){var U=this.__data__,ie=la(U,_);return ie<0?(++this.size,U.push([_,L])):U[ie][1]=L,this}Ee.prototype.clear=nt,Ee.prototype.delete=rt,Ee.prototype.get=Qt,Ee.prototype.has=en,Ee.prototype.set=pn;function jt(_){var L=-1,U=_==null?0:_.length;for(this.clear();++Lut))return!1;var Ue=xe.get(_);if(Ue&&xe.get(L))return Ue==L;var Vt=-1,gn=!0,bt=U&a?new sa:void 0;for(xe.set(_,L),xe.set(L,_);++Vt-1&&_%1==0&&_-1&&_%1==0&&_<=s}function nd(_){var L=typeof _;return _!=null&&(L=="object"||L=="function")}function Gi(_){return _!=null&&typeof _=="object"}var rd=H?fe(H):ip;function wp(_){return mp(_)?ep(_):op(_)}function xp(){return[]}function bp(){return!1}e.exports=vp})(ns,ns.exports);var f6=ns.exports;const C1=Gt(f6);function Sh({onReset:e,hasChanged:t=!1}){const n=()=>{t&&e()};return r.jsx(p6,{onClick:n,$_css:[{cursor:"pointer","& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"}},t?{"& svg *":{fill:"#2271B1",stroke:"#2271B1"}}:""],children:r.jsx(mw,{})})}var p6=v("div").withConfig({displayName:"ResetButton___StyledDiv",componentId:"sc-n1cbpg-0"})(["",""],e=>e.$_css);const g6=window.React.useCallback,m6=window.React.useContext,C0=window.React.useMemo;function _0(e){let t,n;switch(e){case"top_footer":n=window.brandyCustomizerData.defaults.footer.row_configurations.top;break;case"middle_footer":n=window.brandyCustomizerData.defaults.footer.row_configurations.middle;break;case"bottom_footer":n=window.brandyCustomizerData.defaults.footer.row_configurations.bottom;break;case"top_header":n=window.brandyCustomizerData.defaults.header.row_configurations.top;break;case"middle_header":n=window.brandyCustomizerData.defaults.header.row_configurations.middle;break;case"bottom_header":n=window.brandyCustomizerData.defaults.header.row_configurations.bottom;break;case"toggle_off_canvas":n=window.brandyCustomizerData.defaults.header.row_configurations.toggle;break;case"header":n=window.brandyCustomizerData.defaults.header.settings;break;case"footer":n=window.brandyCustomizerData.defaults.footer.settings;break}return n&&(t={settings:n}),t}function Us(e){const{builder:t}=m6(Yt),n=te(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=te(t)(l=>l.previewTemplate),{current:o}=_e(),a=g6(()=>{n(l=>{var d,u;if(l==null)return;let c;(d=window.brandyCustomizerData.defaults[t])!=null&&d.elements[e.sectionId]?c=(u=window.brandyCustomizerData.defaults[t])==null?void 0:u.elements[e.sectionId]:c=_0(e.sectionId),c&&(e.reset_paths??[]).forEach(h=>{const f=ye(c.settings,h);Ct(l,h,f),Hn({sectionId:e.sectionId,settings:kd(h,f),device:o,builder:t,clonedFromId:e.cloned_from}),k2({sectionId:e.sectionId,settings:kd(h,f),device:o,builder:t})})})},[n,e,o,t]),s=C0(()=>{var u,h;let l,c;(u=window.brandyCustomizerData.defaults[t])!=null&&u.elements[e.sectionId]?(c=(h=window.brandyCustomizerData.defaults[t])==null?void 0:h.elements[e.sectionId],l=i.elements[e.sectionId]):(c=_0(e.sectionId),["top_header","top_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.top}),["middle_header","middle_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.middle}),["bottom_header","bottom_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.bottom}),(e.sectionId==="header"||e.sectionId==="footer")&&(l=i));let d=!1;return l&&c&&(e.reset_paths??[]).forEach(f=>{if(d==!0)return;const g=ye(l.settings,f),p=ye(c.settings,f);C1(g,p)||(d=!0)},!1),d},[o,e.sectionId,e.reset_paths,i,t]);return C0(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(v6,{children:[r.jsx(at,{className:ke(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Sh,{onReset:a,hasChanged:s})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[a,e.title])}var v6=v("div").withConfig({displayName:"Reset___StyledDiv",componentId:"sc-pc751i-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const w6=window.React.useMemo,x6=window.React.useState,b6=[{label:N("Default"),value:"default"},{label:N("Small"),value:"small"},{label:N("Medium"),value:"medium"},{label:N("Large"),value:"large"},{label:N("Custom shadow"),value:"custom"}],y6={x:{title:N("X offset")},y:{title:N("Y offset")},blur:{title:N("Blur")},spread:{title:N("Spread")}};function C6(e){const{current:t}=_e(),n=w6(()=>Ce(e.value,t),[t,e.value]),i=c=>{e.onChange({...n,enabled:c})},o=c=>{e.onChange({...n,type:c})},a=c=>d=>{e.onChange({...n,custom_value:{...n.custom_value,[c]:d}})},[s,l]=x6(!1);return r.jsxs(_6,{children:[r.jsxs(S6,{children:[r.jsxs(j6,{children:[r.jsx(at,{title:e.title,className:"mb-0"}),n.enabled&&r.jsx(k6,{onClick:()=>{l(c=>!c)},$_css:[{cursor:"pointer",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"},s&&"transform: rotate(180deg)"],children:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 8L10 12L6 8",stroke:"#A1ABB7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r.jsxs(E6,{children:[(e.can_reset??!0)&&r.jsx(Us,{...e,title:{text:""},reset_paths:[e.value_path]}),r.jsx(Q2,{checked:n.enabled,onChange:i})]})]}),n.enabled&&s&&r.jsxs(D6,{className:"box-shadow-wrapper",children:[r.jsx(dt,{options:b6,selected:n.type,onChange:o,popupHeight:220}),n.type==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs($6,{children:[r.jsx(H6,{children:"Shadow color"}),r.jsx(mt,{color:n.custom_value.color??"#cdcdcd",onChange:a("color")})]}),Object.entries(y6).map(([c,d])=>r.jsxs("div",{children:[r.jsx(M6,{children:d.title}),r.jsxs(I6,{children:[r.jsx(T6,{type:"number",value:n.custom_value[c],min:-10,max:40,onChange:a(c)}),r.jsx(_h,{value:n.custom_value[c],min:-10,max:40,onChange:a(c)})]})]},c))]})]})]})}var _6=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),S6=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),j6=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),k6=v("span")`${e=>e.$_css}`,E6=v("div")({display:"flex",alignItems:"center",gap:"0.5rem"}),D6=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),$6=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),H6=v("span")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),M6=v("div")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),I6=v("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.75rem"}),T6=v(ot).withConfig({displayName:"BoxShadowBuilder___StyledInput",componentId:"sc-no79k6-0"})({width:"60px"});const L6=window.React.useCallback,Hl=window.React.useMemo;function Fr({inputValue:e,onChange:t}){const{current:n}=_e(),i=Hl(()=>r.jsxs("svg",{fill:"#2271B1",viewBox:"0 0 35 35",children:[r.jsx("path",{d:"M17.5,26L17.5,26C12.8,26,9,22.2,9,17.5v0C9,12.8,12.8,9,17.5,9h0c4.7,0,8.5,3.8,8.5,8.5v0C26,22.2,22.2,26,17.5,26z"}),r.jsx("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "})]}),[]),o=Hl(()=>{if(n=="desktop")return!0;let l=!0;return Object.values(e).forEach(c=>{xi(c)&&c[n]!=null&&(l=!1)}),l},[n,e]),a=L6(()=>{n!=="desktop"&&t(null)},[n,t]);return{ResetInheritButton:Hl(()=>o?()=>!1:({className:l=""})=>r.jsx(A6,{className:l,onClick:a,$_css:[{position:"absolute",left:"-17px",top:"50%","--tw-translate-y":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",cursor:"pointer",padding:"0.25rem","& svg":{height:"10px",width:"10px"}},` svg path { transform: scale(1); opacity: 1; transform-origin: center; transition: opacity 0.15s ease, transform 0.15s ease; } svg polygon { transform: scale(0.5); opacity: 0; transform-origin: center; transition: opacity 0.15s ease, transform 0.15s ease; } &:hover { svg polygon { opacity: 1; transform: scale(1); } svg path { opacity: 0; transform: scale(0.5); } } `],children:i}),[o,a])}}var A6=v("span").withConfig({displayName:"useInheritResponsive___StyledSpan",componentId:"sc-l0r28k-0"})(["",""],e=>e.$_css);const R6=window.React.useMemo;function cr(e){const{current:t}=_e(),n=R6(()=>Ce(e.value,t),[t,e.value]),{ResetInheritButton:i}=Fr({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(O6,{children:[r.jsx(i,{}),r.jsx(at,{title:e.title,className:"mb-2"})]}),r.jsx(At,{selected:n,options:e.options??[],onChange:e.onChange})]})}var O6=v("div").withConfig({displayName:"ButtonGroupBuilder___StyledDiv",componentId:"sc-t3hi5f-0"})({position:"relative"});const N6=window.React.createElement,P6=window.React.useCallback,jh=window.React.useMemo;function V6(e){const{ResetInheritButton:t}=Fr({inputValue:e.value,onChange:i=>{Object.keys(e.value).forEach(o=>{e.onChange(i,[...e.value_path,o])})}}),n=jh(()=>e.value.enabled_gradient,[e.value.enabled_gradient]);return r.jsxs(F6,{children:[r.jsx(t,{}),r.jsx(at,{title:e.title,className:"mb-0"}),r.jsx(z6,{children:Object.entries(e.value).map((i,o)=>{if(i[0]!=="enabled_gradient")return N6(B6,{...e,attributeKey:i[0],color:i[1],key:o,usingGradient:n})})})]})}function B6(e){const{current:t}=_e(),n=jh(()=>Ce(e.color,t),[e.color,t]),i=P6(o=>{e.onChange(o,[...e.value_path,e.attributeKey])},[e]);return r.jsx(_t,{title:e.attributeKey,style:{textTransform:"capitalize"},children:r.jsx(mt,{color:n,onChange:i,usingGradient:e.usingGradient})})}var F6=v("div")({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"}),z6=v("div").withConfig({displayName:"ColorGroupBuilder___StyledDiv2",componentId:"sc-d3agj8-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const kh=["px","em","rem","%"],Eh=({options:e=kh,value:t="px",onChange:n=()=>!1})=>{const i=o=>a=>{a.preventDefault(),n(t===o?"":o)};return r.jsx("div",{className:"flex gap-2",children:e.map(o=>r.jsx("span",{className:ke(["uppercase text-brandy-text-secondary cursor-pointer text-[10px] hover:text-brandy-text",t===o&&"text-wp hover:!text-wp"]),onClick:i(o),children:o},o))})},S0=window.React.useCallback;function Zt({value:e,onChange:t=()=>!1,title:n="Dimension",units:i=kh,min:o=0,max:a=100,hideUnitSelection:s=!1,step:l=1}){const c=Ei(f=>{t({...e,unit:f})},0),d=S0(f=>{c(f)},[c]),u=Ei(f=>{t({...e,value:f})},0),h=S0(f=>{u(f)},[u]);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between items-center mb-2",children:[n,!s&&r.jsx(Eh,{options:i,value:(e==null?void 0:e.unit)??"px",onChange:d})]}),r.jsxs("div",{className:"flex gap-5 items-center",children:[r.jsx(ot,{type:"number",className:"w-1/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l}),r.jsx(_h,{className:"w-2/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l})]})]})}const Ki=window.React.useMemo;function Z6(e){const{current:t}=_e(),n=Ki(()=>Ce(e.value,t),[t,e.value]),i=Ki(()=>Ce(e.default_value,t),[e.default_value,t]),o=Ki(()=>(i==null?void 0:i.min)??0,[i]),a=Ki(()=>(i==null?void 0:i.max)??100,[i]),{ResetInheritButton:s}=Fr({inputValue:{inputValue:e.value},onChange:e.onChange});return Ki(()=>r.jsxs(W6,{children:[r.jsx(Zt,{title:r.jsx(at,{title:e.title,className:"mb-0"}),value:n,onChange:e.onChange,units:e.units??["px","em","%"],min:o,max:a,hideUnitSelection:e.hide_units}),r.jsx(s,{className:"top-[9px] translate-x-0"})]}),[e.title,e.units,n,e.onChange,o,a,e.hide_units])}var W6=v("div").withConfig({displayName:"DimensionBuilder___StyledDiv",componentId:"sc-k78v94-0"})({position:"relative"});const j0=window.React.useEffect,G6=window.React.useState,U6="Select image",Y6="Use this image";function X6(e={}){const t=(e==null?void 0:e.title)??U6,n=(e==null?void 0:e.buttonText)??Y6,[i,o]=G6(null);return j0(()=>{const a=window.wp.media({id:"brandy-upload-media",title:t,button:{text:n},multiple:!1,type:"image"});return o(a),a.on("select",function(){e.onSelect&&e.onSelect(a.state().get("selection").first().toJSON().url)}),()=>{window.jQuery('button[type="button"].browser').remove()}},[e.onSelect,t,n,o]),j0(()=>()=>{window.jQuery("#brandy-upload-media").closest('[id^="__wp-uploader-id"]').remove()},[]),{media:i}}function Dh({value:e,onChange:t}){const{media:n}=X6({onSelect:t}),i=o=>{o.preventDefault(),n&&n.open()};return r.jsx(r.Fragment,{children:e?r.jsxs(J6,{className:"group",children:[r.jsxs(K6,{children:[r.jsx(q6,{}),e&&r.jsx(Q6,{src:e})]}),r.jsx(e9,{onClick:i,children:"Change photo"})]}):r.jsx(t9,{onClick:i,children:"Select photo"})})}var J6=v("div")({position:"relative",display:"flex",width:"100%",flexDirection:"column",gap:"0.5rem"}),K6=v("div")({margin:"auto",height:"200px",width:"100%",overflow:"hidden",borderRadius:"5px",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 240 / var(--tw-bg-opacity, 1))",backgroundSize:"cover",backgroundPosition:"center",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),q6=v("div")({position:"absolute",left:"0px",top:"0px",height:"100%",width:"100%",cursor:"pointer",borderRadius:"5px",backgroundColor:"transparent",transitionProperty:"background-color",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms",".group:hover &":{backgroundColor:"#00000080"}}),Q6=v("img")({height:"100%",width:"100%",objectFit:"contain"}),e9=v("button")({visibility:"hidden",position:"absolute",left:"50%",top:"50%",width:"fit-content","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-translate-y":"-50%",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms",".group:hover &":{visibility:"visible",opacity:"1"}}),t9=v("button").withConfig({displayName:"ImagePicker___StyledButton2",componentId:"sc-i4u663-0"})({width:"100%",borderRadius:"5px",borderWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(248 248 248 / var(--tw-bg-opacity, 1))",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}});const k0=window.React.useMemo;function n9(e){const{current:t}=_e(),n=k0(()=>Ce(e.value,t),[t,e.value]);return k0(()=>r.jsxs(r9,{children:[r.jsx(at,{title:e.title}),r.jsx(Dh,{value:n,onChange:e.onChange})]}),[n,e.onChange,e.title])}var r9=v("div").withConfig({displayName:"ImageBuilder___StyledDiv",componentId:"sc-1enyrgi-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const i9=window.React;function $h(e){const{current:t}=_e(),{ResetInheritButton:n}=Fr({inputValue:{inputValue:e.value},onChange:e.onChange}),i=i9.useMemo(()=>Ce(e.value,t),[t,e.value]);return r.jsxs(o9,{className:"switcher-builder",$_css2:[{marginBottom:"-4px",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},ue(["& + .switcher-builder{margin-top:8px;margin-bottom:0 !important;}"])],children:[r.jsxs(a9,{children:[r.jsx(n,{}),r.jsx(at,{title:e.title,className:"!mb-0"})]}),r.jsx(Q2,{checked:i,onChange:e.onChange}),e.description&&r.jsx(s9,{dangerouslySetInnerHTML:{__html:e.description}})]})}var o9=v("div")`${e=>e.$_css2}`,a9=v("div")({position:"relative"}),s9=v("div").withConfig({displayName:"SwitcherBuilder___StyledDiv3",componentId:"sc-10j4p3z-0"})({marginTop:"10px",width:"100%",fontSize:"12px",fontStyle:"italic"});const l9=window.React.createContext,vr=window.React.useMemo,Ai=l9({});function c9({value:e,children:t,onChange:n,fontSizeMin:i=1,fontSizeMax:o=100,lineHeightMin:a=1,lineHeightMax:s=100,letterSpacingMin:l=1,letterSpacingMax:c=100}){const d=vr(()=>e.font_size,[e]),u=vr(()=>e.line_height,[e]),h=vr(()=>e.letter_spacing,[e]),f=vr(()=>e.font_style,[e.font_style]),g=vr(()=>e.transform,[e.transform]),p=vr(()=>e.decoration,[e.decoration]),m=vr(()=>({fontSize:d,lineHeight:u,letterSpacing:h,fontStyle:f,transform:g,decoration:p,onChange:n,fontSizeMin:i,fontSizeMax:o,lineHeightMin:a,lineHeightMax:s,letterSpacingMin:l,letterSpacingMax:c}),[d,u,h,f,n,i,o,a,s,l,c,p,g]);return r.jsx(Ai.Provider,{value:m,children:t})}const d9=window.React.useContext,u9=window.React.useMemo;function h9(){const{current:e}=_e(),{fontSize:t,onChange:n,fontSizeMin:i,fontSizeMax:o}=d9(Ai),a=l=>{n("font_size",l)},s=u9(()=>Ce(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-font-size",children:r.jsx(Zt,{title:r.jsx(f9,{children:N("Font size")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var f9=v(ct).withConfig({displayName:"FontSize___StyledStyledSettingLabel",componentId:"sc-16fkzly-0"})({margin:"0px"});const p9=window.React.forwardRef,g9=window.React.useEffect,m9=window.React.useMemo,Ml=window.React.useRef,v9=window.React.useState,w9=window.ReactDOM.createPortal,x9=ue(["svg{*[fill]{","}*[stroke]{","}}"],{fill:"#2271B1"},{stroke:"#2271B1"}),Hc=[{name:"desktop",icon:r.jsx(rh,{})},{name:"tablet",icon:r.jsx(ww,{})},{name:"mobile",icon:r.jsx(ih,{})}],b9=p9(({currentDevice:e,onChange:t},n)=>r.jsx("div",{className:"absolute top-[calc(100%+5px)] left-0 p-[2px] rounded-md flex flex-col gap-[2px] bg-gutenberg-white z-[10]",style:{boxShadow:"2px 4px 10px 0px rgba(105, 116, 132, 0.20)"},ref:n,children:Hc.map(i=>r.jsx(y9,{className:"relative w-[30px] h-[30px] flex items-center justify-center rounded-md dashicons text-brandy-text-secondary transition-all ease-in-out duration-base cursor-pointer hover:bg-blue-50",onClick:()=>t(i.name),$_css2:[e===i.name&&x9],children:i.icon},i.name))}));function _1(){const{current:e,changeDevice:t}=_e(),[n,i]=v9(!1),o=f=>{t(f)},a=m9(()=>Hc.find(f=>f.name===e)??Hc[0],[e]),s=f=>{f.preventDefault(),i(g=>!g)},l=()=>{i(!1)},c=Ml(null),d=Ml(null),u=Ml(null),h=w9(n?r.jsx(b9,{currentDevice:e,onChange:o,ref:d}):!1,u.current??document.body);return g9(()=>{const f=g=>{var p,m;c.current==null&&d.current==null&&l(),!((p=c==null?void 0:c.current)!=null&&p.contains(g.target))&&!((m=d.current)!=null&&m.contains(g.target))&&l()};return window.jQuery(document).on("click","body",f),()=>{window.jQuery(document).off("click","body",f)}},[c.current,d.current]),r.jsxs("div",{className:"relative inline-flex",children:[r.jsx("div",{className:"w-[34px] m-auto transition-all ease-in-out duration-base cursor-pointer inline-flex justify-center",onClick:s,ref:c,children:a.icon},a.name),r.jsx("div",{className:"brandy-selection-popup",ref:u,children:h})]})}var y9=v("div").withConfig({displayName:"DeviceSwitcher___StyledDiv",componentId:"sc-1sdffvj-0"})(["",""],e=>e.$_css2);const Mc=[{key:"thin_100",weight:100,italic:!1,label:"Thin 100"},{key:"thin_100_italic",weight:100,italic:!0,label:"Thin 100 Italic"},{key:"extra_light_200",weight:200,italic:!1,label:"Extra-Light 200"},{key:"extra_light_200_italic",weight:200,italic:!0,label:"Extra-Light 200 Italic"},{key:"light_300",weight:300,italic:!1,label:"Light 300"},{key:"light_300_italic",weight:300,italic:!0,label:"Light 300 Italic"},{key:"regular",weight:400,italic:!1,label:"Regular 400"},{key:"regular_400_italic",weight:400,italic:!0,label:"Regular 400 Italic"},{key:"medium",weight:500,italic:!1,label:"Medium 500"},{key:"medium_500_italic",weight:500,italic:!0,label:"Medium 500 Italic"},{key:"semibold",weight:600,italic:!1,label:"Semi-bold 600"},{key:"smibold_italic",weight:600,italic:!0,label:"Semi-bold 600 Italic"},{key:"bold",weight:700,italic:!1,label:"Bold 700"},{key:"bold_italic",weight:700,italic:!0,label:"Bold 700 Italic"},{key:"extra_bold",weight:800,italic:!1,label:"Extra-Bold 800"},{key:"extra_bold_italic",weight:800,italic:!0,label:"Extra-Bold 800 Italic"},{key:"ultra_bold",weight:900,italic:!1,label:"Ultra-Bold 900"},{key:"ultra_bold_italic",weight:900,italic:!0,label:"Ultra-Bold 900 Italic"}],C9=window.React.useContext,Il=window.React.useMemo,_9=Mc.map(e=>({value:e.key,label:e.label}));function S9(){const{current:e}=_e(),{fontStyle:t,onChange:n}=C9(Ai),i=Il(()=>{var l;return((l=Ce(t,e))==null?void 0:l.weight)??400},[e,t]),o=Il(()=>{var l;return((l=Ce(t,e))==null?void 0:l.italic)??!1},[e,t]),a=Il(()=>Mc.find(l=>l.weight===i&&l.italic===o),[i,o]),s=l=>{const c=Mc.find(d=>d.key===l);c&&n("font_style",{weight:c.weight,italic:c.italic})};return r.jsxs("div",{children:[r.jsxs(j9,{children:[r.jsx(k9,{children:N("Font style")}),r.jsx(_1,{})]}),r.jsx(dt,{options:_9,selected:(a==null?void 0:a.key)??"",onChange:s})]})}var j9=v("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"0.5rem"}),k9=v(ct).withConfig({displayName:"FontStyle___StyledStyledSettingLabel",componentId:"sc-7wg633-0"})({margin:"0px"});const E9=window.React.useContext,D9=window.React.useMemo;function $9(){const{current:e}=_e(),{letterSpacing:t,onChange:n,letterSpacingMin:i,letterSpacingMax:o}=E9(Ai),a=l=>{n("letter_spacing",l)},s=D9(()=>Ce(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-letter-spacing",children:r.jsx(Zt,{title:r.jsx(H9,{children:N("Letter spacing")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var H9=v(ct).withConfig({displayName:"LetterSpacing___StyledStyledSettingLabel",componentId:"sc-1occtdz-0"})({margin:"0px"});const M9=window.React.useContext,I9=window.React.useMemo;function T9(){const{current:e}=_e(),{lineHeight:t,onChange:n,lineHeightMin:i,lineHeightMax:o}=M9(Ai),a=l=>{n("line_height",l)},s=I9(()=>Ce(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-line-height",children:r.jsx(Zt,{title:r.jsx(L9,{children:N("Line height")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var L9=v(ct).withConfig({displayName:"LineHeight___StyledStyledSettingLabel",componentId:"sc-15u33dd-0"})({margin:"0px"});const A9=window.React.useContext,E0=window.React.useMemo,hi=v.span({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center"}),R9=[{value:"uppercase",label:r.jsx(hi,{children:r.jsx("svg",{width:"19",height:"10",viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.538086 10L4.1748 0.135742H5.3916L9.02832 10H7.73633L6.74512 7.17676H2.82129L1.83008 10H0.538086ZM4.72852 1.72852L3.18359 6.13086H6.38281L4.83789 1.72852H4.72852ZM9.97168 10L13.6084 0.135742H14.8252L18.4619 10H17.1699L16.1787 7.17676H12.2549L11.2637 10H9.97168ZM14.1621 1.72852L12.6172 6.13086H15.8164L14.2715 1.72852H14.1621Z",fill:"#5A6D80"})})})},{value:"capitalize",label:r.jsx(hi,{children:r.jsx("svg",{width:"17",height:"11",viewBox:"0 0 17 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.361554 10L3.86155 0.135742H5.85081L9.35081 10H7.50511L6.67796 7.4502H3.02757L2.20726 10H0.361554ZM4.79808 1.96777L3.47191 6.08984H6.24046L4.91429 1.96777H4.79808ZM12.8098 10.123C11.3879 10.123 10.3557 9.24805 10.3557 7.8877V7.87402C10.3557 6.54102 11.3742 5.76172 13.1926 5.65234L15.1135 5.53613V4.89355C15.1135 4.14844 14.6282 3.73828 13.7121 3.73828C12.9328 3.73828 12.427 4.01855 12.2561 4.51074L12.2492 4.53809H10.6428L10.6496 4.47656C10.8137 3.21875 12.0168 2.38477 13.7942 2.38477C15.7151 2.38477 16.7951 3.31445 16.7951 4.89355V10H15.1135V8.97461H14.9973C14.5871 9.69922 13.7942 10.123 12.8098 10.123ZM12.0373 7.80566C12.0373 8.44141 12.5774 8.81738 13.3293 8.81738C14.3547 8.81738 15.1135 8.14746 15.1135 7.25879V6.65723L13.4319 6.7666C12.4817 6.82812 12.0373 7.17676 12.0373 7.79199V7.80566Z",fill:"#5A6D80"})})})},{value:"lowercase",label:r.jsx(hi,{children:r.jsx("svg",{width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M3.35547 8.12988C1.9541 8.12988 0.894531 7.28223 0.894531 5.94238V5.92871C0.894531 4.61621 1.86523 3.85742 3.58105 3.75488L5.69336 3.625V2.95508C5.69336 2.0459 5.13965 1.55371 4.03906 1.55371C3.15723 1.55371 2.57617 1.88184 2.38477 2.45605L2.37793 2.47656H1.18848L1.19531 2.43555C1.38672 1.28027 2.50781 0.500977 4.08008 0.500977C5.87793 0.500977 6.88281 1.42383 6.88281 2.95508V8H5.69336V6.91309H5.58398C5.11914 7.69922 4.34668 8.12988 3.35547 8.12988ZM2.11133 5.91504C2.11133 6.66016 2.74707 7.09766 3.60156 7.09766C4.81152 7.09766 5.69336 6.30469 5.69336 5.25195V4.58203L3.72461 4.70508C2.60352 4.77344 2.11133 5.16992 2.11133 5.90137V5.91504ZM11.0801 8.12988C9.67871 8.12988 8.61914 7.28223 8.61914 5.94238V5.92871C8.61914 4.61621 9.58984 3.85742 11.3057 3.75488L13.418 3.625V2.95508C13.418 2.0459 12.8643 1.55371 11.7637 1.55371C10.8818 1.55371 10.3008 1.88184 10.1094 2.45605L10.1025 2.47656H8.91309L8.91992 2.43555C9.11133 1.28027 10.2324 0.500977 11.8047 0.500977C13.6025 0.500977 14.6074 1.42383 14.6074 2.95508V8H13.418V6.91309H13.3086C12.8438 7.69922 12.0713 8.12988 11.0801 8.12988ZM9.83594 5.91504C9.83594 6.66016 10.4717 7.09766 11.3262 7.09766C12.5361 7.09766 13.418 6.30469 13.418 5.25195V4.58203L11.4492 4.70508C10.3281 4.77344 9.83594 5.16992 9.83594 5.90137V5.91504Z",fill:"#5A6D80"})})})}],O9=[{value:"none",label:r.jsx(hi,{children:r.jsx("svg",{width:"10",height:"2",viewBox:"0 0 10 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 0.5H10V2H0V0.5Z",fill:"#5A6D80"})})})},{value:"underline",label:r.jsx(hi,{children:r.jsx("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 13V14H10V13H0ZM5 11C6.5 11 7.6 10.6 8.4 9.8C9.2 9 9.5 7.8 9.5 6.3V0H8V5.8C8 7 7.8 7.9 7.4 8.6C7 9.3 6.2 9.6 5 9.6C3.8 9.6 3 9.3 2.6 8.6C2.2 7.9 2 7 2 5.8V0H0.5V6.2C0.5 7.7 0.9 8.9 1.6 9.7C2.4 10.6 3.5 11 5 11Z",fill:"#5A6D80"})})})},{value:"line-through",label:r.jsx(hi,{children:r.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.1 4V3.5C5.1 2.9 5.3 2.4 5.8 2.1C6.3 1.8 7 1.6 7.8 1.6C8.5 1.6 9.2 1.7 9.9 1.9C10.6 2.1 11.3 2.4 12 2.8L12.2 0.9C11.6 0.6 11 0.4 10.3 0.2C9.5 0.0999998 8.7 0 7.9 0C6.4 0 5.2 0.3 4.3 1C3.5 1.7 3.1 2.5 3.1 3.6V4H5.1ZM16 7H0V8H8.3C8.6 8.1 8.9 8.2 9.1 8.3C9.6 8.5 10 8.8 10.2 9.1C10.5 9.4 10.6 9.8 10.6 10.3C10.6 11 10.4 11.4 9.8 11.8C9.3 12.1 8.6 12.3 7.7 12.3C6.9 12.3 6.1 12.2 5.3 12C4.5 11.8 3.8 11.5 3.1 11.2L3 13.1C3.5 13.3 4.2 13.5 5 13.7C5.8 13.9 6.6 14 7.4 14C9.1 14 10.4 13.7 11.3 13C12.2 12.3 12.6 11.4 12.6 10.2C12.6 9.3 12.4 8.5 11.9 8H16V7Z",fill:"#5A6D80"})})})}];function N9(){const{current:e}=_e(),{transform:t,decoration:n,onChange:i}=A9(Ai),o=E0(()=>Ce(t,e)??"auto",[t,e]),a=E0(()=>Ce(n,e)??"none",[n,e]),s=c=>{if(console.log(c),c===o){i("transform","");return}i("transform",c)},l=c=>{if(c===a){i("decoration","");return}i("decoration",c)};return r.jsxs("div",{className:"brandy-font-item brandy-font-type",children:[r.jsx(P9,{children:N("Type")}),r.jsxs(V9,{children:[r.jsx(At,{canDeselect:!0,options:R9,selected:o,buttonStyle:"solid",onChange:s}),r.jsx(At,{canDeselect:!0,options:O9,selected:a,buttonStyle:"solid",onChange:l})]})]})}var P9=v(ct)({marginBottom:"0.5rem"}),V9=v("div").withConfig({displayName:"Type___StyledDiv",componentId:"sc-1s138yn-0"})({display:"flex",gap:"1rem"});const B9=window.React.useEffect,Tl=window.React.useState;function F9({value:e,onChange:t,fontSizeMin:n=1,fontSizeMax:i=100,lineHeightMin:o=1,lineHeightMax:a=100,letterSpacingMin:s=1,letterSpacingMax:l=100}){const[c,d]=Tl(null),[u,h]=Tl(null),{styles:f,attributes:g}=In(c,u),[p,m]=Tl(!1),w=()=>{m(!0)},E=()=>{m(!1)};return B9(()=>{const k=S=>{c==null&&u==null&&E(),!(u!=null&&u.contains(S.target))&&!(c!=null&&c.contains(S.target))&&E()};return window.jQuery(document).on("click","body",k),()=>{window.jQuery(document).off("click","body",k)}},[c,u]),r.jsx(c9,{value:e,onChange:t,fontSizeMin:n,fontSizeMax:i,lineHeightMin:o,lineHeightMax:a,letterSpacingMin:s,letterSpacingMax:l,children:r.jsxs(z9,{children:[r.jsx(Z9,{onClick:w,ref:d,$_css:[{display:"flex",alignItems:"center",justifyContent:"center"},{height:"30px",width:"30px",cursor:"pointer",borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))",transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#000"}},p&&{outlineColor:"#000"}],children:r.jsx(W9,{children:r.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0017 2.62506L9.43025 0L2.14453 7.43766L4.71596 10.0627L12.0017 2.62506ZM4.71373 10.0622L2.1423 7.4371L1.28516 10.9372L4.71373 10.0622ZM6 12.6869H0V13.9995H6V12.6869Z",fill:"#A1ABB7"})})})}),p&&r.jsxs(G9,{className:"font-popup",ref:h,style:f.popper,...g.popper,$_css2:[{marginTop:"0.5rem",marginBottom:"0.5rem",minWidth:"280px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{position:"absolute",zIndex:"99999999",display:"flex",flexDirection:"column",gap:"1.25rem"},{borderRadius:"5px",padding:"20px 16px"},{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsx(S9,{}),r.jsx(h9,{}),r.jsx(T9,{}),r.jsx($9,{}),r.jsx(N9,{})]})]})})}var z9=v("div")({position:"relative"}),Z9=v("div")`${e=>e.$_css}`,W9=v("span")({position:"relative",display:"inline-block"}),G9=v("div").withConfig({displayName:"TypographyPicker___StyledDiv3",componentId:"sc-wkun31-0"})(["",""],e=>e.$_css2);const U9=window.React,Y9=window.React.useCallback,D0={font_size:{desktop:{unit:"px",value:""},tablet:null,mobile:null},line_height:{desktop:{unit:"px",value:""},tablet:null,mobile:null},letter_spacing:{desktop:{unit:"px",value:""},tablet:null,mobile:null},font_style:{desktop:{weight:400,italic:!1},tablet:null,mobile:null},transform:{desktop:"none",tablet:null,mobile:null},decoration:{desktop:"auto",tablet:null,mobile:null}};function X9(e){const t=U9.useMemo(()=>e.value,[e.value]),n=Y9((o,a)=>{e.onChange(a,[...e.value_path,o],void 0,!0)},[e]),{ResetInheritButton:i}=Fr({inputValue:e.value??D0,onChange:o=>{Object.keys(e.value).forEach(a=>{e.onChange(o,[...e.value_path,a])})}});return r.jsxs(J9,{children:[r.jsx(i,{}),r.jsx(at,{title:e.title,className:"mb-0"}),r.jsx(F9,{value:t??D0,onChange:n})]})}var J9=v("div").withConfig({displayName:"TypographyBuilder___StyledDiv",componentId:"sc-1r71o9z-0"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"});const K9=window.React.useContext,$0=v.span.withConfig({displayName:"EnabledDevices__StyledOptionLabel",componentId:"sc-1joegxg-0"})({display:"flex",alignItems:"center",gap:"0.5rem"}),q9=[{value:"desktop",label:r.jsxs($0,{children:[r.jsx(rh,{}),r.jsx("span",{children:"Desktop"})]})},{value:"mobile",label:r.jsxs($0,{children:[r.jsx(ih,{}),r.jsx("span",{children:"Tablet/Mobile"})]})}];function Q9(e){const{builder:t}=K9(Yt),n=i=>{const o=e.render_options,a=De(o!=null&&o.select_from_body?o==null?void 0:o.selector:`${xt(e.sectionId,t)} ${o.selector}`);i.includes("desktop")?window.jQuery(a).removeClass("hidden-lg"):window.jQuery(a).addClass("hidden-lg"),i.includes("mobile")?window.jQuery(a).removeClass("hidden-md").removeClass("hidden-sm"):window.jQuery(a).addClass("hidden-md").addClass("hidden-sm"),e.onChange(i)};return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(At,{multiple:!0,options:q9,onChange:n,selected:e.value,buttonStyle:"solid"})]})}const ex=window.React.useMemo;function S1(e){const{current:t}=_e(),n=ex(()=>Ce(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(ot,{value:n,onChange:e.onChange,wrapperStyle:{width:"100%"}})]})}const tx=window.React.useMemo;function nx(e){const{current:t}=_e(),n=tx(()=>Ce(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(ot,{type:"number",value:n,onChange:e.onChange,wrapperStyle:{width:150},min:e.min,max:e.max})]})}const rx=window.React.useState,H0=["left","top","bottom","right"];function Hh({value:e,onChange:t,title:n="Spacing",units:i=["px","em","rem","%"],aspectTitles:o=null,description:a=""}){const s=h=>{t({...e,unit:h})},l=h=>f=>{if(typeof f=="string"&&f!=""&&e.unit!=="wp")return;const g={...e};e.is_constraints?(g.top=f,g.left=f,g.bottom=f,g.right=f):g[h]=f,t(g)},c=()=>{const h={...e,is_constraints:!e.is_constraints};h.is_constraints&&(h.right=e.left,h.bottom=e.left,h.top=e.left),t(h)},[d,u]=rx(()=>{const h=window.brandyCustomizerData.theme_settings.spacing.spacingSizes.theme.map(f=>`var(--wp--preset--spacing--${f.slug})`);return{top:h.includes(e.top),right:h.includes(e.right),bottom:h.includes(e.bottom),left:h.includes(e.left)}});return r.jsxs("div",{className:"brandy-spacing",children:[r.jsxs("div",{className:"flex justify-between items-center mb-2",children:[r.jsx("div",{children:n}),r.jsx(Eh,{options:[...i,"wp"],value:e.unit,onChange:s})]}),a&&r.jsx("div",{className:"text-[12px] mt-2 mb-2",dangerouslySetInnerHTML:{__html:a}}),e.unit==="wp"?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"mb-2 italic text-[12px] text-brandy-text-secondary",children:"Please enter unit (px/%/etc) after value if you are not using theme presets variable"}),r.jsx("div",{className:"flex gap-1 items-start flex-col",children:H0.map((h,f)=>r.jsxs("div",{className:"w-full mb-2",children:[r.jsxs("div",{className:"uppercase text-[11px] w-full flex items-center mb-[3px] gap-2",children:[r.jsx("span",{children:h}),r.jsx("span",{className:"inline-block",children:r.jsx(_t,{title:"Use theme presets",children:r.jsx("span",{className:"cursor-pointer",onClick:()=>{u(g=>(g[h]=!g[h],{...g}))},children:d[h]?ox:ix})})})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"w-full",children:d[h]?r.jsx(dt,{options:[{value:"0",label:"None"},...window.brandyCustomizerData.theme_settings.spacing.spacingSizes.theme.map(g=>({value:`var(--wp--preset--spacing--${g.slug})`,label:`WP spacing ${g.name}`}))],selected:e[h],onChange:l(h)}):r.jsx(ot,{value:e[h],onChange:l(h)})}),f==0&&r.jsx("div",{onClick:c,className:"mt-2 p-1 cursor-pointer inline-flex items-center justify-center",children:r.jsx("svg",{width:"10",height:"20",viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{className:e.is_constraints?"stroke-wp":"",d:"M5 6V14M9 13V15C9 16.0609 8.57857 17.0783 7.82843 17.8284C7.07828 18.5786 6.06087 19 5 19C3.93913 19 2.92172 18.5786 2.17157 17.8284C1.42143 17.0783 1 16.0609 1 15V13M9 7V5C9 3.93913 8.57857 2.92172 7.82843 2.17157C7.07828 1.42143 6.06087 1 5 1C3.93913 1 2.92172 1.42143 2.17157 2.17157C1.42143 2.92172 1 3.93913 1 5V7",stroke:"#5A6D80",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},h))})]}):r.jsxs("div",{className:"flex gap-1 items-start",children:[H0.map((h,f)=>r.jsxs("div",{className:"w-1/4 flex flex-col gap-2 items-center justify-start",children:[r.jsx(ot,{type:"number",value:e[h],onChange:l(h),min:0}),r.jsx("span",{className:"uppercase text-brandy-text-secondary text-[10px] select-none",children:o?o[f]:h})]},h)),r.jsx("div",{onClick:c,className:"mt-2 p-1 cursor-pointer flex items-center justify-center",children:r.jsx("svg",{width:"10",height:"20",viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{className:e.is_constraints?"stroke-wp":"",d:"M5 6V14M9 13V15C9 16.0609 8.57857 17.0783 7.82843 17.8284C7.07828 18.5786 6.06087 19 5 19C3.93913 19 2.92172 18.5786 2.17157 17.8284C1.42143 17.0783 1 16.0609 1 15V13M9 7V5C9 3.93913 8.57857 2.92172 7.82843 2.17157C7.07828 1.42143 6.06087 1 5 1C3.93913 1 2.92172 1.42143 2.17157 2.17157C1.42143 2.92172 1 3.93913 1 5V7",stroke:"#5A6D80",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}const ix=r.jsxs("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20","aria-hidden":"true",focusable:"false",style:{borderRadius:3},children:[r.jsx("path",{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),r.jsx("path",{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),ox=r.jsxs("svg",{fill:"#ffffff",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20","aria-hidden":"true",focusable:"false",style:{background:"#000000",borderRadius:3},children:[r.jsx("path",{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),r.jsx("path",{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),ax=window.React.useMemo;function sx(e){const{current:t}=_e(),n=ax(()=>Ce(e.value,t),[t,e.value]),{ResetInheritButton:i}=Fr({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs(lx,{children:[r.jsx(Hh,{title:r.jsx(at,{title:e.title,className:"mb-0"}),description:e.description,value:n,onChange:e.onChange,units:e.units??["px","em","%"],aspectTitles:e.aspect_titles??null}),r.jsx(i,{className:"top-[9px] translate-x-0"})]})}var lx=v("div").withConfig({displayName:"SpacingBuilder___StyledDiv",componentId:"sc-8ikjor-0"})({position:"relative"});const cx=window.React.useMemo,ba=v.span.withConfig({displayName:"AlignmentBuilder__StyledOptionItem",componentId:"sc-1i3hi1g-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),dx=[{value:"left",label:r.jsxs(ba,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.835938",y:"5.5",width:"13",height:"5",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M0.335938 1H8.33594M0.335938 15H8.33594",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Left"})]})},{value:"center",label:r.jsxs(ba,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"-0.5",y:"0.5",width:"9",height:"5",transform:"matrix(-1 0 0 1 11.5 5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M14.5 1H0.5M14.5 15H0.5",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Center"})]})},{value:"right",label:r.jsxs(ba,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"-0.5",y:"0.5",width:"13",height:"5",transform:"matrix(-1 0 0 1 13.6719 5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M14.6719 1H6.67188M14.6719 15H6.67188",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Right"})]})},{value:"justify",label:r.jsxs(ba,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.835938",y:"5.5",width:"13",height:"5",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M0.335938 1H8.33594M0.335938 15H8.33594",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Justify"})]})}];function ux(e){const t=cx(()=>(e.available_alignments??["left","center","right"]).map(n=>dx.find(i=>i.value===n)).filter(n=>n!=null),[e.available_alignments]);return r.jsx(cr,{...e,options:t})}const hx=window.React.useMemo,Ll=v.span.withConfig({displayName:"PositionBuilder__StyledOptionItem",componentId:"sc-vce992-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),fx=[{value:"left",label:r.jsxs(Ll,{children:[r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.16699 5V11H16.167V5H5.16699ZM0.166992 16H1.66699V0H0.166992V16Z",fill:window.brandyCustomizerData.colors.icon.normal})}),r.jsx("span",{children:"Left"})]})},{value:"bottom",label:r.jsxs(Ll,{children:[r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"10",height:"5",transform:"matrix(-4.37114e-08 1 1 4.37114e-08 5 2.18557e-08)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 14.5L-1.31134e-07 14.5L0 16L16 16L16 14.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("span",{children:"Bottom"})]})},{value:"right",label:r.jsxs(Ll,{children:[r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.25 11H11.25V5H0.25V11ZM14.75 0V16H16.25V0H14.75Z",fill:window.brandyCustomizerData.colors.icon.normal})}),r.jsx("span",{children:"Right"})]})}];function px(e){const t=hx(()=>(e.available_positions??["left","bottom","right"]).map(n=>fx.find(i=>i.value===n)??null).filter(n=>n!=null),[e.available_positions]);return r.jsx(cr,{...e,options:t})}const gx=window.React.useMemo;function j1(e){const{current:t}=_e(),n=gx(()=>Ce(e.value,t),[t,e.value]),{ResetInheritButton:i}=Fr({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(mx,{children:[r.jsx(i,{}),r.jsx(at,{title:e.title})]}),r.jsx(dt,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx("div",{className:"text-[12px] italic",dangerouslySetInnerHTML:{__html:e.description}})]})}var mx=v("div").withConfig({displayName:"DropdownBuilder___StyledDiv",componentId:"sc-133xc9-0"})({position:"relative"});const vx=window.React.useMemo;function wx(e){const{current:t}=_e(),n=vx(()=>Ce(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(At,{multiple:!0,options:e.options??[],onChange:e.onChange,selected:n,buttonStyle:"solid"})]})}const xx=v.div` ${{borderBottomWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem","&:last-child":{borderBottomWidth:"0px"}}} `,bx=[{value:"left",label:"Left"},{value:"top",label:"Top"},{value:"bottom",label:"Bottom"},{value:"right",label:"Right"},{value:"center",label:"Center"},{value:"custom",label:"Custom"}];function yx({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(kx,{children:[r.jsx(ct,{children:r.jsx(Ex,{children:"Position"})}),r.jsx(dt,{options:bx,selected:e,onChange:n,style:{width:200}})]})}const Cx=[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}];function _x({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(Dx,{children:[r.jsx(ct,{children:r.jsx($x,{children:"Size"})}),r.jsx(dt,{options:Cx,selected:e,onChange:n,style:{width:200}})]})}function Sx({value:e,onChange:t}){const n=i=>{Array.isArray(i)||t(i)};return r.jsxs(Hx,{children:[r.jsx(ct,{children:r.jsx(Mx,{children:"Overlay color"})}),r.jsx(mt,{color:e,onChange:n})]})}const qi=v.div({padding:"10px"});function jx({value:e,onChange:t=()=>!1}){const n=i=>(e[i],o=>{const a={...e,[i]:o};t(a)});return r.jsxs("div",{children:[r.jsx(xx,{children:r.jsx(Dh,{value:e.url,onChange:n("url")})}),e.url&&r.jsxs(r.Fragment,{children:[r.jsx(qi,{children:r.jsx(Sx,{value:e.overlay_color,onChange:n("overlay_color")})}),r.jsx(qi,{children:r.jsx(_x,{value:e.size,onChange:n("size")})}),r.jsx(qi,{children:r.jsx(yx,{value:e.position,onChange:n("position")})}),e.position==="custom"&&r.jsxs(r.Fragment,{children:[r.jsx(qi,{children:r.jsx(Zt,{min:e.top.min,max:e.top.max,value:e.top,title:r.jsx(ct,{children:r.jsx(Ix,{children:"Top"})}),onChange:n("top")})}),r.jsx(qi,{children:r.jsx(Zt,{min:e.left.min,max:e.left.max,value:e.left,title:r.jsx(ct,{children:r.jsx(Tx,{children:"Left"})}),onChange:n("left")})})]})]})]})}var kx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Ex=v("span")({fontSize:"13px"}),Dx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),$x=v("span")({fontSize:"13px"}),Hx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Mx=v("span")({fontSize:"13px"}),Ix=v("span")({fontSize:"13px"}),Tx=v("span").withConfig({displayName:"Image___StyledSpan5",componentId:"sc-1ul140t-0"})({fontSize:"13px"});const Lx=window.React.createContext,Ax=window.React.useEffect,qn=window.React.useMemo,Al=window.React.useState,Rx=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],Ox=Lx({});function Nx({value:e,onChange:t=()=>!1}){const n=qn(()=>e.type,[e.type]),i=qn(()=>e.solid_color,[e.solid_color]),o=qn(()=>e.gradient_color,[e.gradient_color]),a=qn(()=>e.image,[e.image]),s=qn(()=>{const y=A=>{t(A,"type")},$=A=>{t(A,"solid_color")},x=Ei(A=>{t(A,"gradient_color")},0);return{backgroundType:n,solidColor:i,gradientColor:o,image:a,changeType:y,changeSolidColor:$,changeGradientColor:x,changeImage:A=>{t(A,"image")}}},[n,i,o,a,e,t]),l=qn(()=>n==="image"?{backgroundImage:`url(${a.url})`,backgroundPosition:"center",backgroundSize:"contain"}:{background:n==="solid"?i:o},[n,i,o,a]),[c,d]=Al(null),[u,h]=Al(null),{styles:f,attributes:g}=In(c,u),[p,m]=Al(!1),w=()=>{m(!0)},E=()=>{m(!1)};Ax(()=>{const y=x=>{var A;c==null&&u==null&&E();const C=(A=document.getElementById("brandy-upload-media"))==null?void 0:A.closest(".media-modal.wp-core-ui");!(C!=null&&C.contains(x.target))&&!(u!=null&&u.contains(x.target))&&!(c!=null&&c.contains(x.target))&&E()},$=()=>{const x=window.jQuery("#brandy-upload-media").closest(".media-modal.wp-core-ui").parent();x&&x.remove()};return window.jQuery(document).on("click","body",y),()=>{window.jQuery(document).off("click","body",y),$()}},[c,u]);const k=qn(()=>e.type==="solid"?445:e.type==="gradient"?530:e.image.url===""?150:500,[e.type,e.image.url]),S=qn(()=>n==="solid"?i==null||i.endsWith("00")&&i.length>6:n==="gradient"?o.indexOf(",0)")!==o.lastIndexOf(",0)")&&o.indexOf(",0)")!==-1&&o.lastIndexOf(",0)")!==-1||o.indexOf(",0)")!==o.lastIndexOf(", 0)")&&o.indexOf(",0)")!==-1&&o.lastIndexOf(", 0)")!==-1||o.indexOf(", 0)")!==o.lastIndexOf(",0)")&&o.indexOf(", 0)")!==-1&&o.lastIndexOf(",0)")!==-1||o.indexOf(", 0)")!==o.lastIndexOf(", 0)")&&o.indexOf(", 0)")!==-1&&o.lastIndexOf(", 0)")!==-1:a.url==="",[n,i,o,a.url]);return r.jsx(Ox.Provider,{value:s,children:r.jsxs(Px,{children:[r.jsx(Vx,{style:l,ref:d,onClick:w,$_css2:[{height:"30px",width:"30px",cursor:"pointer"},{borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#1e1e1e"}},{transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},p&&{outlineColor:"#1e1e1e"},S&&ue(["background:linear-gradient(45deg,#e0e0e3 25%,transparent 25%),linear-gradient(-45deg,#e0e0e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e0e3 75%),linear-gradient(-45deg,transparent 75%,#e0e0e3 75%) !important;background-size:4px 4px !important;background-position:0 0,0 10px,10px -10px,-10px 0px !important;"])],children:S&&r.jsx(Bx,{children:r.jsx(oh,{})})}),p&&r.jsx(Fx,{ref:h,style:f.popper,...g.popper,$_css3:[{marginTop:"0.5rem",marginBottom:"0.5rem",maxHeight:"700px",width:"314px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{position:"absolute",zIndex:"999992"},{borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},{cursor:"auto"},{"--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{display:"flex",flexDirection:"column"}],children:r.jsxs(Zn,{className:"color-picker-popup",style:{height:k},autoHide:!0,children:[r.jsx(zx,{children:r.jsx(At,{options:Rx,selected:n,onChange:s.changeType})}),r.jsxs("div",{children:[n==="solid"&&r.jsx(wh,{color:i,onChange:s.changeSolidColor}),n==="gradient"&&r.jsx(vh,{value:o,onChange:s.changeGradientColor}),n==="image"&&r.jsx(jx,{value:a,onChange:s.changeImage})]})]})})]})})}var Px=v("div")({position:"relative"}),Vx=v("div")`${e=>e.$_css2}`,Bx=v("span")({position:"relative",left:"50%",top:"50%",display:"inline-block","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-translate-y":"-50%"}),Fx=v("div")`${e=>e.$_css3}`,zx=v("div").withConfig({displayName:"BackgroundPicker___StyledDiv4",componentId:"sc-1vzs4ya-0"})({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"});const Zx=window.React.useMemo;function Wx(e){const{current:t}=_e(),n=Zx(()=>Ce(e.value,t),[t,e.value]),i=(o,a)=>{e.onChange({...n,[a]:o})};return r.jsxs(Gx,{children:[r.jsx(at,{title:e.title,className:"mb-0"}),r.jsxs(Ux,{children:[r.jsx(Us,{...e,reset_paths:[e.value_path],title:null,reset_action:"row_settings"}),r.jsx(Nx,{value:n,onChange:i})]})]})}var Gx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Ux=v("div").withConfig({displayName:"BackgroundBuilder___StyledDiv2",componentId:"sc-18ksi7m-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const Yx=window.React.useMemo,Rl=v.span.withConfig({displayName:"VerticalAlignmentBuilder__StyledOptionItem",componentId:"sc-16og1d2-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Xx=[{value:"top",label:r.jsxs(Rl,{children:[r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"5.83325",y:"15.5",width:"10",height:"5",transform:"rotate(-90 5.83325 15.5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3333 1.5L0.333252 1.5L0.333252 0L16.3333 1.39876e-06L16.3333 1.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("span",{children:"Top"})]})},{value:"middle",label:r.jsxs(Rl,{children:[r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:window.brandyCustomizerData.colors.icon.normal})}),r.jsx("span",{children:"Middle"})]})},{value:"bottom",label:r.jsxs(Rl,{children:[r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"10",height:"5",transform:"matrix(-4.37114e-08 1 1 4.37114e-08 5.6665 2.18557e-08)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6665 14.5L0.666504 14.5L0.666504 16L16.6665 16L16.6665 14.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("span",{children:"Bottom"})]})}];function Jx(e){const t=Yx(()=>Xx.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(cr,{...e,options:t})}const Kx=window.React.useMemo;function qx(e){return Kx(()=>r.jsxs("div",{children:[r.jsx(Qx,{children:r.jsx(at,{className:ke(["mb-0"]),title:e.title})}),e.content&&r.jsx("div",{dangerouslySetInnerHTML:{__html:e.content}})]}),[e.content,e.title])}var Qx=v("div").withConfig({displayName:"FlexibleBuilder___StyledDiv",componentId:"sc-17nqz4o-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const e7=window.React.useMemo,Ol=v.span.withConfig({displayName:"HorizontalAlignmentBuilder__StyledOptionItem",componentId:"sc-1ebs2zw-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),t7=[{value:"left",label:r.jsxs(Ol,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"1.16797",y:"5.5",width:"13",height:"5",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M0.667969 1H8.66797M0.667969 15H8.66797",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Left"})]})},{value:"center",label:r.jsxs(Ol,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"-0.5",y:"0.5",width:"9",height:"5",transform:"matrix(-1 0 0 1 11.5 5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M14.5 1H0.5M14.5 15H0.5",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Center"})]})},{value:"right",label:r.jsxs(Ol,{children:[r.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"-0.5",y:"0.5",width:"13",height:"5",transform:"matrix(-1 0 0 1 13.8359 5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M14.8359 1H6.83594M14.8359 15H6.83594",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5"})]}),r.jsx("span",{children:"Right"})]})}];function n7(e){const t=e7(()=>t7.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(cr,{...e,options:t})}const r7=window.React.useEffect,Mh=[[{key:"formatselect",icon:''}],[{key:"styleselect",icon:''}],[{key:"fontsizeselect",icon:''}],[{key:"undo",icon:' '},{key:"redo",icon:' '}],[{key:"bold",icon:''},{key:"italic",icon:''},{key:"underline",icon:' '},{key:"strikethrough",icon:''}],[{key:"bullist",icon:''},{key:"numlist",icon:''},{key:"indent",icon:''},{key:"outdent",icon:''}],[{key:"alignleft",icon:''},{key:"aligncenter",icon:''},{key:"alignright",icon:''},{key:"alignjustify",icon:''}],[{key:"link",icon:''}],[{key:"fontselect",icon:''},{key:"forecolor",icon:''},{key:"backcolor",icon:''}]],i7=Mh.reduce((e,t)=>[...e,t.map(n=>n.key).join(" ")],[]).join(" | "),o7=Mh.reduce((e,t)=>[...e,...t],[]);function a7({id:e,value:t,onChange:n}){r7(()=>{var a,s,l,c;window.wp.editor.initialize(e,{tinymce:{class:"brandy-tinymce",toolbar1:i7,style_formats_merge:!0,style_formats:[{title:"Font Weights",items:[{title:"Light (300)",inline:"span",styles:{"font-weight":"300"}},{title:"Normal (400)",inline:"span",styles:{"font-weight":"400"}},{title:"Medium (500)",inline:"span",styles:{"font-weight":"500"}},{title:"Semi Bold (600)",inline:"span",styles:{"font-weight":"600"}},{title:"Bold (700)",inline:"span",styles:{"font-weight":"700"}},{title:"Extra Bold (800)",inline:"span",styles:{"font-weight":"800"}}]}],fontsize_formats:"8px 9px 10px 11px 12px 13px 14px 15px 16px 18px 21px 24px 30px 36px 40px 70px",textcolor_map:[...(((s=(a=window.brandyCustomizerData.theme_settings.color)==null?void 0:a.palette)==null?void 0:s.theme)??[]).reduce((d,u)=>[...d,u.color.replace("#",""),u.name],[])],font_formats:(((c=(l=window.brandyCustomizerData.theme_settings.typography)==null?void 0:l.fontFamilies)==null?void 0:c.theme)??[]).map(d=>`${d.name}=${d.fontFamily};`).join("")+"Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Oswald=oswald; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats"},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"}});const o=window.tinymce.get(e);return o.on("init",()=>{var f,g;o.setContent(t);const d=document.querySelector(`#customize-editor-${e}`);if(d==null)return;d.querySelectorAll(".mce-btn-group .mce-btn").forEach((p,m)=>{var E;const w=o7[m];if(w){if(["fontsizeselect","formatselect","styleselect"].includes(w.key)){const k=new DOMParser().parseFromString(w.icon,"image/svg+xml").documentElement;(E=p.querySelector(".mce-caret"))==null||E.replaceWith(k);return}if(["forecolor","backcolor"].includes(w.key))return;p.innerHTML=w.icon}});const h=document.createElement("button");h.className="insert-media add_media brandy-insert-media",h.innerHTML="+ Add media",(g=(f=d.querySelector(".mce-last.mce-btn-group"))==null?void 0:f.parentElement)==null||g.appendChild(h)}),o.on("change",()=>{n(o.getContent())}),o.on("keyup undo redo",()=>{n(o.getContent())}),()=>{var d;window.wp.editor.remove(e),(d=document.querySelector(".ui-menu.ui-widget"))==null||d.remove()}},[]);const i=o=>{n(o.target.value)};return r.jsx("div",{className:"brandy-customize-editor",id:`customize-editor-${e}`,children:r.jsx("textarea",{value:t,id:e,onChange:i,className:"brandy-editor-textarea"})})}const s7=window.React.useMemo;function Ih({id:e,value:t,onChange:n}){const i=s7(()=>t,[t]),o=l=>{n(l),s(l)},s=Ei(l=>l,200);return r.jsx(a7,{id:e,onChange:o,value:i})}const l7=window.React.useMemo,c7=window.React.useState;function d7(e){const t=l7(()=>e.prefilleds??[],[e.prefilleds]),n=a=>{const s=window.tinymce.get(e.sectionId);s&&s.setContent(a),e.onChange(a)},[i,o]=c7(!1);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsxs("div",{className:"bg-[#F6F7F7] rounded-base overflow-hidden",children:[r.jsx(Ih,{value:e.value,onChange:e.onChange,id:e.sectionId}),r.jsxs("div",{className:"html-prefilled p-4",children:[r.jsxs("div",{className:"flex items-center justify-between cursor-pointer",onClick:()=>{o(a=>!a)},children:[r.jsx("span",{className:"text-black",children:"More options"}),r.jsx("span",{className:`p-[5px] transition-all ease-in-out duration-500 ${i&&"rotate-180"}`,children:r.jsx("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rotate-180",children:r.jsx("path",{d:"M11 4.71428L5.5 0L0 4.71428L0.9 6L5.5 2.14286L10 6L11 4.71428Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),i&&r.jsx("div",{className:"prefilled-wrapper mt-4 flex flex-col gap-[10px]",children:t.map((a,s)=>r.jsx("div",{className:"p-[10px] rounded-base shadow-base bg-[#fff] cursor-pointer",onClick:()=>{n(a.value)},children:a.label},s))})]})]}),e.description&&r.jsx(u7,{children:e.description})]})}var u7=v("div").withConfig({displayName:"PrefilledHTML___StyledDiv",componentId:"sc-uzr3vx-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});function h7(e){return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(Ih,{value:e.value,onChange:e.onChange,id:e.sectionId,toolbars:""}),e.description&&r.jsx(f7,{children:e.description})]},e.sectionId)}var f7=v("div").withConfig({displayName:"HTMLBuilder___StyledDiv",componentId:"sc-kly0zw-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});const p7=window.React.useState;function g7(e){const[t,n]=p7(e.expanded());return{isOpen:t,openInserter:()=>{n(!0),e.open()},closeInserter:()=>{n(!1),e.close()},toggleInserter:()=>{t?(n(!1),e.close()):(n(!0),e.open())}}}const{__:M0}=window.wp.i18n,{__experimentalLibrary:m7}=window.wp.blockEditor;function v7({onClose:e}){return r.jsxs("div",{className:"customize-widgets-layout__inserter-panel",children:[r.jsxs("div",{className:"customize-widgets-layout__inserter-panel-header",children:[r.jsx("h2",{className:"customize-widgets-layout__inserter-panel-header-title",children:M0("Add a block")}),r.jsx("button",{className:"customize-widgets-layout__inserter-panel-header-close-button w-[24px] h-[24px]",onClick:e,"aria-label":M0("Close inserter"),children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:r.jsx("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})})]}),r.jsx("div",{className:"customize-widgets-layout__inserter-panel-content",children:r.jsx(m7,{onSelect:e})})]})}const w7=window.React.useContext,x7=window.ReactDOM.createPortal;function b7(){const{inserter:e,sidebar:t}=w7(I1),{isOpen:n,openInserter:i,closeInserter:o,toggleInserter:a}=g7(e),s=f=>{f.preventDefault(),f.stopPropagation(),i()},l=f=>{f!=null&&f.preventDefault&&f.preventDefault(),f!=null&&f.stopPropagation&&f.stopPropagation(),o()},c=f=>{f.preventDefault(),f.stopPropagation(),a()},d=f=>{f.preventDefault(),f.stopPropagation(),t.undo()},u=f=>{f.preventDefault(),f.stopPropagation(),t.redo()},h=x7(n?r.jsx(v7,{onOpen:s,onClose:l}):!1,e.contentContainer[0]);return r.jsxs("div",{className:"brandy-widget-content__header mb-2",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsx("div",{onClick:d,className:ke(["rounded-md cursor-pointer",!t.hasUndo()&&"disabled"]),children:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.39922 6.5L9.49922 7.5L6.59922 10.8H15.9992C16.8992 10.8 17.6992 11.1 18.2992 11.7C19.6992 13.2 19.6992 15.9 19.6992 17.3V17.5H18.1992V17.2C18.1992 16.1 18.1992 13.7 17.1992 12.7C16.8992 12.4 16.4992 12.2 15.8992 12.2H6.69922L9.49922 15L8.39922 16.1L3.79922 11.5L8.39922 6.5Z",fill:"#A1ABB7"})})}),r.jsx("div",{onClick:u,className:ke(["rounded-md cursor-pointer",!t.hasRedo()&&"disabled"]),children:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.7 11.7C6.3 11.1 7.1 10.8 8 10.8H17.3L14.4 7.5L15.5 6.5L20 11.5L15.5 16L14.5 15L17.2 12.3H8C7.5 12.3 7.1 12.5 6.7 12.8C5.7 13.8 5.7 16.2 5.7 17.3V17.6H4.2V17.4C4.2 15.9 4.2 13.1 5.7 11.7Z",fill:"#A1ABB7"})})})]}),r.jsx("div",{onClick:c,className:"rounded-md cursor-pointer",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",fill:"#1e1e1e",children:r.jsx("path",{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})})})]}),h]})}const y7=window.React.useEffect,{useDispatch:C7,useSelect:_7}=window.wp.data,{store:I0}=window.wp.blockEditor;function S7(e,t){const{hasSelectedBlock:n,hasMultiSelection:i}=_7(I0),{clearSelectedBlock:o}=C7(I0);y7(()=>{function a(c){!t.current||!e||e.inspector.isOpen||(n()||i())&&c&&document.contains(c)&&!t.current.contains(c)&&!c.closest('[role="dialog"]')&&!c.closest('[role="toolbar"]')&&!c.closest(".components-popover__content")&&!c.closest(".wp-block-legacy-widget__edit-form")&&!c.closest(".brandy-widget-inspector")&&!c.closest(".block-editor-button-block-appender")&&o()}function s(c){a(c.target)}function l(){a(document.activeElement)}return document.addEventListener("mousedown",s),window.addEventListener("blur",l),()=>{document.removeEventListener("mousedown",s),window.removeEventListener("blur",l)}},[t,e,n,i,o])}function j7(e,t){return e==null||e!==e?t:e}var k7=j7;const E7=Gt(k7),D7=window.React.useMemo,{useSelect:$7}=window.wp.data,{store:H7}=window.wp.coreData,{uploadMedia:M7}=window.wp.mediaUtils;function Th(){const e=window.brandyWidgetsBlockEditorSettings,{hasUploadPermission:t}=$7(i=>({hasUploadPermission:E7(i(H7).canUser("create","media"),!0)}));return{settings:D7(()=>{let i;return t&&(i=({onError:o,...a})=>{M7({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:s})=>o(s),...a})}),{...e,mediaUpload:i,__unstableHasCustomAppender:!0,keepCaretInsideBlock:!0}},[t])}}var I7=200,k1="__lodash_hash_undefined__",T7=1/0,Lh=9007199254740991,L7="[object Arguments]",A7="[object Function]",R7="[object GeneratorFunction]",O7="[object Symbol]",N7=/[\\^$.*+?()[\]{}|]/g,P7=/^\[object .+?Constructor\]$/,V7=/^(?:0|[1-9]\d*)$/,B7=typeof tt=="object"&&tt&&tt.Object===Object&&tt,F7=typeof self=="object"&&self&&self.Object===Object&&self,E1=B7||F7||Function("return this")();function z7(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Z7(e,t){var n=e?e.length:0;return!!n&&U7(e,t,0)>-1}function W7(e,t,n){for(var i=-1,o=e?e.length:0;++i-1}function mb(e,t){var n=this.__data__,i=Xs(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Oi.prototype.clear=hb;Oi.prototype.delete=fb;Oi.prototype.get=pb;Oi.prototype.has=gb;Oi.prototype.set=mb;function Ni(e){var t=-1,n=e?e.length:0;for(this.clear();++t=I7&&(a=K7,s=!1,t=new rs(t));e:for(;++o0&&n(l)?t>1?Nh(l,t-1,n,i,o):D1(o,l):i||(o[o.length]=l)}return o}function kb(e,t,n){var i=t(e);return H1(e)?i:D1(i,n(e))}function Eb(e){if(!M1(e)||Nb(e))return!1;var t=Fh(e)||Q7(e)?nb:P7;return t.test(Fb(e))}function Db(e){if(!M1(e))return Vb(e);var t=Pb(e),n=[];for(var i in e)i=="constructor"&&(t||!Ri.call(e,i))||n.push(i);return n}function $b(e,t){return e=Object(e),Hb(e,t,function(n,i){return i in e})}function Hb(e,t,n){for(var i=-1,o=t.length,a={};++i-1&&e%1==0&&e-1&&e%1==0&&e<=Lh}function M1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function zh(e){return!!e&&typeof e=="object"}function Gb(e){return typeof e=="symbol"||zh(e)&&$1.call(e)==O7}function Ub(e){return Bh(e)?Sb(e,!0):Db(e)}var Yb=Mb(function(e,t){return e==null?{}:(t=Ah(Nh(t,1),Bb),$b(e,jb(Ib(e),t)))});function Zh(){return[]}var Xb=Yb;const Jb=Gt(Xb),{serialize:Kb,parse:qb,createBlock:Pl}=window.wp.blocks,{addWidgetIdToBlock:Qb}=window.wp.widgets;function O0(e,t=null){let n;if(e.name==="core/legacy-widget"&&(e.attributes.id||e.attributes.instance))if(e.attributes.id)n={id:e.attributes.id};else{const{encoded:o,hash:a,raw:s,...l}=e.attributes.instance;n={idBase:e.attributes.idBase,instance:{...t==null?void 0:t.instance,is_widget_customizer_js_value:!0,encoded_serialized_instance:o,instance_hash_key:a,raw_instance:s,...l}}}else n={idBase:"block",widgetClass:"WP_Widget_Block",instance:{raw_instance:{content:Kb(e)}}};return{...Jb(t,["form","rendered"]),...n}}function N0({id:e,idBase:t,number:n,instance:i}){let o;const{encoded_serialized_instance:a,instance_hash_key:s,raw_instance:l,...c}=i;if(t==="block"){const d=qb(l.content);o=d.length?d[0]:Pl("core/paragraph",{})}else n?o=Pl("core/legacy-widget",{idBase:t,instance:{encoded:a,hash:s,raw:l,...c}}):o=Pl("core/legacy-widget",{id:e});return Qb(o,e)}const ey=window.React.useCallback,ty=window.React.useEffect,ny=window.React.useState,{isShallowEqualArrays:ya}=window.wp.isShallowEqual,{getWidgetIdFromBlock:Vl,addWidgetIdToBlock:ry}=window.wp.widgets;function iy(e){const[t,n]=ny(e.getWidgets().map(o=>N0(o)));ty(()=>e.subscribe((o,a)=>{n(s=>{const l=new Map(o.map(u=>[u.id,u])),c=new Map(s.map(u=>[Vl(u),u])),d=a.map(u=>{const h=l.get(u.id);return h&&h===u?c.get(u.id):N0(u)});return ya(s,d)?s:d})}),[e]);const i=ey(o=>{n(a=>{if(ya(a,o))return a;const s=new Map(a.map(d=>[Vl(d),d])),l=o.map(d=>{const u=Vl(d);if(u&&s.has(u)){const h=s.get(u),f=e.getWidget(u);return ya(JSON.stringify(d),JSON.stringify(h))&&f?f:O0(d,f)}return O0(d)});if(ya(e.getWidgets(),l))return a;const c=e.setWidgets(l);return o.reduce((d,u,h)=>{const f=c[h];return f!==null&&(d===o&&(d=o.slice()),d[h]=ry(u,f)),d},o)})},[e]);return{blocks:t,updateBlocks:i}}const{BlockList:oy,BlockTools:ay,BlockSelectionClearer:sy,CopyHandler:ly,ObserveTyping:cy,WritingFlow:dy,__unstableEditorStyles:uy,ButtonBlockAppender:hy}=window.wp.blockEditor;function fy(){const{settings:e}=Th();return r.jsx("div",{className:"brandy-widget-content__inspector",children:r.jsx(ly,{children:r.jsxs(ay,{children:[r.jsx(uy,{styles:[...e.defaultEditorStyles,{css:"body{font-size: 13px !important;}"}]}),r.jsx(sy,{children:r.jsx(dy,{className:"editor-styles-wrapper",children:r.jsx(cy,{children:r.jsx(oy,{renderAppender:hy})})})})]})})})}const py=window.React.useEffect,{useShortcut:Bl,store:gy}=window.wp.keyboardShortcuts,{useDispatch:my}=window.wp.data;function Tc({undo:e,redo:t,save:n}){return Bl("core/customize-widgets/undo",i=>{e(),i.preventDefault()}),Bl("core/customize-widgets/redo",i=>{t(),i.preventDefault()}),Bl("core/customize-widgets/save",i=>{i.preventDefault(),n()}),null}function vy(){const{registerShortcut:e,unregisterShortcut:t}=my(gy);return py(()=>(e({name:"core/customize-widgets/undo",category:"global",description:"Undo your last changes.",keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/customize-widgets/redo",category:"global",description:"Redo your last undo.",keyCombination:{modifier:"primaryShift",character:"z"}}),e({name:"core/customize-widgets/save",category:"global",description:"Save your changes.",keyCombination:{modifier:"primary",character:"s"}}),()=>{t("core/customize-widgets/undo"),t("core/customize-widgets/redo"),t("core/customize-widgets/save")}),[e,t]),null}Tc.Register=vy;const wy=window.React.useContext,{__unstableBlockSettingsMenuFirstItem:xy}=window.wp.blockEditor,{MenuItem:by}=window.wp.components;function yy(){const{inspector:e}=wy(I1);return r.jsx(xy,{children:({onClose:t})=>r.jsx(by,{onClick:()=>{e.open(),t()},inspector:e,children:"Show more settings"})})}const Cy=ue` ${{"--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}} &:after { ${{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))"}} } `,_y=ue` &:after { content: ""; ${{position:"absolute",bottom:"-1px",left:"50%",height:"3px",width:"100%","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",backgroundColor:"transparent",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"0.2s"}} } `,Sy=v(({isActive:e,...t})=>r.jsx("span",{...t})).withConfig({displayName:"Tabs__StyledTabItem",componentId:"sc-1e1ax13-0"})(["",""],({isActive:e})=>[{position:"relative",flex:"1 1 0%",cursor:"pointer",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",textAlign:"center",fontSize:"16px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"},_y,e&&Cy]);function jy({current:e,items:t,onChange:n,styledCSS:i}){return r.jsx(ky,{$_css2:[{display:"flex","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},i],children:t.map(({label:o,key:a})=>r.jsx(Sy,{onClick:()=>{n(a)},isActive:e===a,className:e===a?"active":"",children:o},a))})}var ky=v("div").withConfig({displayName:"Tabs___StyledDiv",componentId:"sc-1e1ax13-1"})(["",""],e=>e.$_css2);const P0=window.React.useMemo,Ey=window.React.useState,Dy=[{label:"General",key:"general"},{label:"Designs",key:"designs"}];function Yo(e){const t=P0(()=>(e==null?void 0:e.items)??Dy,[e]),[n,i]=Ey(t[0].key);return{contextHolder:P0(()=>r.jsx(jy,{items:t,current:n,onChange:i}),[t,n,i]),items:t,currentTab:n,setCurrentTab:i}}const $y=window.React.useMemo;function Wn({title:e,onGoBack:t,hasBottomPart:n=!0,builder:i}){const o=te(i??"header"),a=o(h=>h.chosenElement),s=o(h=>h.previewTemplate.id),l=o(h=>h.resetTemplate),c=o(h=>h.resetElement),d=()=>{a?c(a.id):l()},u=$y(()=>s?[...i==="header"?window.brandyNichesHeaders:window.brandyNichesFooters,...Object.values(i==="header"?window.brandyHeaderPresets:window.brandyFooterPresets)].find(f=>f.id===s)!==void 0:!1,[s]);return r.jsxs(r.Fragment,{children:[r.jsxs(Hy,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(My,{children:[e??r.jsxs(r.Fragment,{children:[r.jsxs(Iy,{children:[N("Customizing")," ▸ ",N("Not found")]}),r.jsx(Ty,{children:N("Not found")})]}),u&&r.jsx(Ly,{onClick:d,children:N("Reset to default")})]})]}),n&&r.jsx(Ay,{})]})}var Hy=v("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),My=v("div")({height:"100%",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),Iy=v("div")({fontSize:"13px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),Ty=v("div")({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),Ly=v("p")({marginTop:"0.5rem",cursor:"pointer","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}),Ay=v("div").withConfig({displayName:"Header___StyledDiv5",componentId:"sc-27w5k5-0"})({borderBottomWidth:"1px",padding:"1rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const Ry=window.React,Oy=window.React.memo,Ny=window.React.useCallback,Wh=window.React.useContext,Gh=window.React.useMemo,Je=Ry.createContext({});function Py(e){const{builder:t}=Wh(Yt),n=te(t)(l=>l.deselectSection),i=te(t)(l=>{var c,d;return((c=l.chosenElement)==null?void 0:c.title)??((d=window.brandyElements[e.elementId])==null?void 0:d.title)??""}),o=te(t)(l=>{var c,d;return((d=(c=l.previewTemplate)==null?void 0:c.settings)==null?void 0:d.name)??t}),a=Ny(()=>{Nt(),n()},[Nt,n]),s=Gh(()=>({builder:t,goBack:a}),[t,a]);return r.jsxs(Je.Provider,{value:s,children:[r.jsx(Wn,{onGoBack:a,builder:t,title:r.jsxs(r.Fragment,{children:[r.jsxs(Fy,{children:[N("Customizing")," ▸ ",o]}),r.jsx(zy,{children:i||"Not found"})]})}),r.jsx(By,{elementId:e.elementId,clonedFromId:e.clonedFromId})]})}function Vy({elementId:e,clonedFromId:t}){const{builder:n}=Wh(Je),{contextHolder:i,currentTab:o}=Yo(),a=te(n)(c=>{var d;return((d=c.chosenElement)==null?void 0:d.settings)??{}}),s=te(n)(c=>c.changeElementSettings),l=Gh(()=>{var c;return((c=window.brandySettingsLayouts[t??e])==null?void 0:c[o].sections)??[]},[e,o]);return l.length===0?!1:r.jsxs(r.Fragment,{children:[i,r.jsx(a1,{children:l.map((c,d)=>r.jsx(Ko,{section:c,sectionKey:`${o}-${d}`,sectionId:e,settings:a,onChange:s,builder:n,clonedFromId:t},`${o}-${d}`))})]})}const By=Oy(Vy);var Fy=v("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),zy=v("div").withConfig({displayName:"ElementSection___StyledDiv2",componentId:"sc-1dfz9mj-0"})({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const Zy=window.React.createContext,Wy=window.React.useContext,Gy=window.React.useEffect,Qi=window.React.useMemo,Uy=window.React.useRef,V0=window.ReactDOM.createPortal,{BlockEditorKeyboardShortcuts:Yy,BlockEditorProvider:Xy,BlockInspector:Jy}=window.wp.blockEditor,{ShortcutProvider:Ky}=window.wp.keyboardShortcuts,{SlotFillProvider:qy,Popover:Qy}=window.wp.components,{removeFilter:eC}=window.wp.hooks;eC("editor.BlockEdit","core/customize-widgets/block-edit");const I1=Zy({});function tC(e){const{builder:t}=Wy(Je),n=Qi(()=>`${t}_${e.sectionId}`,[e.sectionId,t]),i=Qi(()=>window.wp.customize.control(`sidebars_widgets[${n}]`),[n]),{blocks:o,updateBlocks:a}=iy(i.sidebarAdapter),{settings:s}=Th(),l=Uy(null);S7(i,l);const c=Qi(()=>`#sub-accordion-section-widgets-inspector-sidebar-widgets-${n}`,[n]),d=Qi(()=>`#sub-accordion-section-sidebar-widgets-${n}`,[n]),u=Qi(()=>({inserter:i.inserter,sidebar:i.sidebarAdapter,inspector:i.inspector}),[i]);Gy(()=>{var p;return(p=document.querySelector(d))==null||p.remove(),u.inspector.triggerActiveCallbacks=()=>{},()=>{u.inserter.close()}},[]);const h=V0(r.jsx("div",{className:"customize-widgets-popover",ref:l,children:r.jsx(Qy.Slot,{})}),document.body),f=p=>{a(p)},g=p=>{a(p)};return r.jsx(I1.Provider,{value:u,children:r.jsxs(qy,{children:[r.jsx("div",{className:"brandy-block-inspector",children:r.jsxs(Ky,{children:[r.jsx(Yy.Register,{}),r.jsx(Tc.Register,{}),r.jsxs(Xy,{value:o,onChange:f,onInput:g,useSubRegistry:!1,settings:s,children:[r.jsx(Tc,{undo:u.sidebar.undo,redo:u.sidebar.redo,save:u.sidebar.save}),r.jsx(b7,{}),r.jsx(fy,{}),V0(r.jsx("form",{className:"hehehihi",onSubmit:p=>p.preventDefault(),children:r.jsx(Jy,{})}),document.querySelector(c)??document.body)]}),r.jsx(yy,{})]})}),h]})})}const nC=window.React.useMemo;function rC(e){return nC(()=>r.jsx(tC,{sectionId:e.sectionId}),[])}const iC=window.React.useEffect,B0=window.React.useMemo,Fl=window.React.useState;function oC({options:e,selected:t,onChange:n=()=>!1,style:i={}}){const[o,a]=Fl(null),[s,l]=Fl(null),{styles:c,attributes:d}=In(o,s),[u,h]=Fl(!1),f=B0(()=>(o==null?void 0:o.getBoundingClientRect().width)??0,[o]),g=()=>{h(S=>!S)},p=()=>{h(!1)};iC(()=>{const S=y=>{(o==null||s==null)&&p(),!(o!=null&&o.contains(y.target))&&!(s!=null&&s.contains(y.target))&&p()};return window.jQuery(document).on("click","body",S),()=>{window.jQuery(document).off("click","body",S)}},[o,s]);const m=S=>{const y=t.indexOf(S);let $=[];y===-1?$=[...t,S]:$=t.filter(x=>x!==S),n($)},w=S=>{const y=t.filter($=>$!==S);n(y)},E=S=>t.includes(S),k=B0(()=>e.length*47>300?300:e.length*47,[e]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:ke(["brandy-select__selector","w-full min-h-[40px] px-[12px] py-[3px] bg-gutenberg-white","flex justify-between items-center","border border-brandy-border-light","rounded-base cursor-pointer"]),ref:a,onClick:g,children:[r.jsx("span",{className:"brandy-select__selection-item min-h-[15px] text-brandy-text overflow-hidden text-ellipsis whitespace-nowrap flex flex-wrap",children:t.length>0?t.map(S=>{const y=e.find($=>$.value===S);return r.jsx("span",{className:"text-[#000]",children:r.jsxs("span",{className:"bg-[#f0f0f0] m-[3px] p-[5px] flex items-center gap-[5px] rounded-base",children:[r.jsx("p",{children:y==null?void 0:y.label}),r.jsx("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false","data-icon":"close",width:"10px",height:"10px",fill:"currentColor","aria-hidden":"true",className:"text-[#848484] hover:text-[#000]",onClick:$=>{$.stopPropagation(),w((y==null?void 0:y.value)??"")},children:r.jsx("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"})})]},S)})}):"Select options"}),r.jsx("span",{className:"brandy-select__arrow",children:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 8L10 12L6 8",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u&&r.jsx("div",{ref:l,style:{...c.popper,width:f,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...d.popper,className:ke(["my-2 z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Zn,{autoHide:!0,className:"bg-gutenberg-white",style:{height:k},children:r.jsx("div",{className:"p-[5px] flex flex-col gap-[5px]",children:e.map(S=>r.jsxs(aC,{className:"brandy-select__option-content","data-value":S.value,onClick:()=>m(S.value),$_css:[{display:"flex",alignItems:"center",justifyContent:"space-between","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"},{minHeight:"38px",borderRadius:"5px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"9px",paddingBottom:"9px","&:hover":{backgroundColor:"rgba(34, 113, 177, 0.03)","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity, 1))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},E(S.value)&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"}],children:[S.label,E(S.value)&&r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",style:{width:20,height:20},children:r.jsx("path",{className:"stroke-wp",d:"M17.3274 7.53122L10.5767 16.6102L6.66221 13.6996",strokeWidth:"1.5"})})]},S.value))})})})]})}var aC=v("div").withConfig({displayName:"MultipleSelect___StyledDiv",componentId:"sc-k7vdlx-0"})(["",""],e=>e.$_css);const sC=window.React.useMemo;function lC(e){const{current:t}=_e(),n=sC(()=>Ce(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(oC,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx(cC,{dangerouslySetInnerHTML:{__html:e.description}})]})}var cC=v("div").withConfig({displayName:"MultipleSelectBuilder___StyledDiv",componentId:"sc-eadnfz-0"})({marginTop:"0.5rem",fontSize:"12px",fontStyle:"italic"}),Uh={exports:{}};/**! * Sortable 1.15.6 * @author RubaXa * @author owenm * @license MIT */function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function $n(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function hC(e,t){if(e==null)return{};var n=uC(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function fC(e){return pC(e)||gC(e)||mC(e)||vC()}function pC(e){if(Array.isArray(e))return Lc(e)}function gC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mC(e,t){if(e){if(typeof e=="string")return Lc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lc(e,t)}}function Lc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Jh(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function It(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&is(e,t):is(e,t))||i&&e===n)return e;if(e===n)break}while(e=Jh(e))}return null}var Z0=/\s+/g;function Xe(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Z0," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Z0," ")}}function ae(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function $r(e,t){var n="";if(typeof e=="string")n=e;else do{var i=ae(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Kh(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,a=i.length;if(n)for(;o=a:s=o<=a,!s)return i;if(i===En())break;i=ir(i,!1)}return!1}function Di(e,t,n,i){for(var o=0,a=0,s=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,a=hC(i,jC);Jo.pluginEvent.bind(pe)(t,n,$n({dragEl:q,parentEl:Qe,ghostEl:ve,rootEl:We,nextEl:yr,lastDownEl:Fa,cloneEl:Ye,cloneHidden:nr,dragStarted:so,putSortable:gt,activeSortable:pe.active,originalEvent:o,oldIndex:di,oldDraggableIndex:bo,newIndex:Ft,newDraggableIndex:tr,hideGhostForTarget:of,unhideGhostForTarget:af,cloneNowHidden:function(){nr=!0},cloneNowShown:function(){nr=!1},dispatchSortableEvent:function(l){kt({sortable:n,name:l,originalEvent:o})}},a))};function kt(e){ao($n({putSortable:gt,cloneEl:Ye,targetEl:q,rootEl:We,oldIndex:di,oldDraggableIndex:bo,newIndex:Ft,newDraggableIndex:tr},e))}var q,Qe,ve,We,yr,Fa,Ye,nr,di,Ft,bo,tr,Ca,gt,ai=!1,os=!1,as=[],wr,mn,Gl,Ul,Y0,X0,so,ni,yo,Co=!1,_a=!1,za,yt,Yl=[],Ac=!1,ss=[],Ks=typeof document<"u",Sa=T1,J0=Xo||Gn?"cssFloat":"float",kC=Ks&&!Yh&&!T1&&"draggable"in document.createElement("div"),tf=function(){if(Ks){if(Gn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),nf=function(t,n){var i=ae(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=Di(t,0,n),s=Di(t,1,n),l=a&&ae(a),c=s&&ae(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ze(a).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+ze(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&l.float!=="none"){var h=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===h)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&i[J0]==="none"||s&&i[J0]==="none"&&d+u>o)?"vertical":"horizontal"},EC=function(t,n,i){var o=i?t.left:t.top,a=i?t.right:t.bottom,s=i?t.width:t.height,l=i?n.left:n.top,c=i?n.right:n.bottom,d=i?n.width:n.height;return o===l||a===c||o+s/2===l+d/2},DC=function(t,n){var i;return as.some(function(o){var a=o[vt].options.emptyInsertThreshold;if(!(!a||L1(o))){var s=ze(o),l=t>=s.left-a&&t<=s.right+a,c=n>=s.top-a&&n<=s.bottom+a;if(l&&c)return i=o}}),i},rf=function(t){function n(a,s){return function(l,c,d,u){var h=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(s||h))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(l,c,d,u),s)(l,c,d,u);var f=(s?l:c).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var i={},o=t.group;(!o||Ba(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},of=function(){!tf&&ve&&ae(ve,"display","none")},af=function(){!tf&&ve&&ae(ve,"display","")};Ks&&!Yh&&document.addEventListener("click",function(e){if(os)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),os=!1,!1},!0);var xr=function(t){if(q){t=t.touches?t.touches[0]:t;var n=DC(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[vt]._onDragOver(i)}}},$C=function(t){q&&q.parentNode[vt]._isOutsideThisEl(t.target)};function pe(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=un({},t),e[vt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return nf(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:pe.supportPointer!==!1&&"PointerEvent"in window&&(!wo||T1),emptyInsertThreshold:5};Jo.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);rf(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:kC,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?je(e,"pointerdown",this._onTapStart):(je(e,"mousedown",this._onTapStart),je(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(je(e,"dragover",this),je(e,"dragenter",this)),as.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),un(this,CC())}pe.prototype={constructor:pe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ni=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,a=o.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,u=o.filter;if(OC(i),!q&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&wo&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=It(c,o.draggable,i,!1),!(c&&c.animated)&&Fa!==c)){if(di=et(c),bo=et(c,o.draggable),typeof u=="function"){if(u.call(this,t,c,this)){kt({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:i,fromEl:i}),$t("filter",n,{evt:t}),a&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(h){if(h=It(d,h.trim(),i,!1),h)return kt({sortable:n,rootEl:h,name:"filter",targetEl:c,fromEl:i,toEl:i}),$t("filter",n,{evt:t}),!0}),u)){a&&t.preventDefault();return}o.handle&&!It(d,o.handle,i,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,i){var o=this,a=o.el,s=o.options,l=a.ownerDocument,c;if(i&&!q&&i.parentNode===a){var d=ze(i);if(We=a,q=i,Qe=q.parentNode,yr=q.nextSibling,Fa=i,Ca=s.group,pe.dragged=q,wr={target:q,clientX:(n||t).clientX,clientY:(n||t).clientY},Y0=wr.clientX-d.left,X0=wr.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,q.style["will-change"]="all",c=function(){if($t("delayEnded",o,{evt:t}),pe.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!z0&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(t,n),kt({sortable:o,name:"choose",originalEvent:t}),Xe(q,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){Kh(q,u.trim(),Xl)}),je(l,"dragover",xr),je(l,"mousemove",xr),je(l,"touchmove",xr),s.supportPointer?(je(l,"pointerup",o._onDrop),!this.nativeDraggable&&je(l,"pointercancel",o._onDrop)):(je(l,"mouseup",o._onDrop),je(l,"touchend",o._onDrop),je(l,"touchcancel",o._onDrop)),z0&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),$t("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Xo||Gn))){if(pe.eventCanceled){this._onDrop();return}s.supportPointer?(je(l,"pointerup",o._disableDelayedDrag),je(l,"pointercancel",o._disableDelayedDrag)):(je(l,"mouseup",o._disableDelayedDrag),je(l,"touchend",o._disableDelayedDrag),je(l,"touchcancel",o._disableDelayedDrag)),je(l,"mousemove",o._delayedDragTouchMoveHandler),je(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&je(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Xl(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;be(t,"mouseup",this._disableDelayedDrag),be(t,"touchend",this._disableDelayedDrag),be(t,"touchcancel",this._disableDelayedDrag),be(t,"pointerup",this._disableDelayedDrag),be(t,"pointercancel",this._disableDelayedDrag),be(t,"mousemove",this._delayedDragTouchMoveHandler),be(t,"touchmove",this._delayedDragTouchMoveHandler),be(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?je(document,"pointermove",this._onTouchMove):n?je(document,"touchmove",this._onTouchMove):je(document,"mousemove",this._onTouchMove):(je(q,"dragend",this),je(We,"dragstart",this._onDragStart));try{document.selection?Za(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ai=!1,We&&q){$t("dragStarted",this,{evt:n}),this.nativeDraggable&&je(document,"dragover",$C);var i=this.options;!t&&Xe(q,i.dragClass,!1),Xe(q,i.ghostClass,!0),pe.active=this,t&&this._appendGhost(),kt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(mn){this._lastX=mn.clientX,this._lastY=mn.clientY,of();for(var t=document.elementFromPoint(mn.clientX,mn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(mn.clientX,mn.clientY),t!==n);)n=t;if(q.parentNode[vt]._isOutsideThisEl(t),n)do{if(n[vt]){var i=void 0;if(i=n[vt]._onDragOver({clientX:mn.clientX,clientY:mn.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=Jh(n));af()}},_onTouchMove:function(t){if(wr){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=ve&&$r(ve,!0),l=ve&&s&&s.a,c=ve&&s&&s.d,d=Sa&&yt&&G0(yt),u=(a.clientX-wr.clientX+o.x)/(l||1)+(d?d[0]-Yl[0]:0)/(l||1),h=(a.clientY-wr.clientY+o.y)/(c||1)+(d?d[1]-Yl[1]:0)/(c||1);if(!pe.active&&!ai){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(kt({rootEl:Qe,name:"add",toEl:Qe,fromEl:We,originalEvent:t}),kt({sortable:this,name:"remove",toEl:Qe,originalEvent:t}),kt({rootEl:Qe,name:"sort",toEl:Qe,fromEl:We,originalEvent:t}),kt({sortable:this,name:"sort",toEl:Qe,originalEvent:t})),gt&>.save()):Ft!==di&&Ft>=0&&(kt({sortable:this,name:"update",toEl:Qe,originalEvent:t}),kt({sortable:this,name:"sort",toEl:Qe,originalEvent:t})),pe.active&&((Ft==null||Ft===-1)&&(Ft=di,tr=bo),kt({sortable:this,name:"end",toEl:Qe,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){$t("nulling",this),We=q=Qe=ve=yr=Ye=Fa=nr=wr=mn=so=Ft=tr=di=bo=ni=yo=gt=Ca=pe.dragged=pe.ghost=pe.clone=pe.active=null,ss.forEach(function(t){t.checked=!0}),ss.length=Gl=Ul=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":q&&(this._onDragOver(t),HC(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,a=i.length,s=this.options;oo.right+a||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+a||e.clientX>i.right&&e.clientY>i.top}function LC(e,t,n,i,o,a,s,l){var c=i?e.clientY:e.clientX,d=i?n.height:n.width,u=i?n.top:n.left,h=i?n.bottom:n.right,f=!1;if(!s){if(l&&zau+d*a/2:ch-za)return-yo}else if(c>u+d*(1-o)/2&&ch-d*a/2)?c>u+d/2?1:-1:0}function AC(e){return et(q)1&&(me.forEach(function(l){a.addAnimationState({target:l,rect:Ht?ze(l):s}),Zl(l),l.fromRect=s,i.removeAnimationState(l)}),Ht=!1,FC(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var i=n.sortable,o=n.isOwner,a=n.insertion,s=n.activeSortable,l=n.parentEl,c=n.putSortable,d=this.options;if(a){if(o&&s._hideClone(),to=!1,d.animation&&me.length>1&&(Ht||!o&&!s.options.sort&&!c)){var u=ze(Pe,!1,!0,!0);me.forEach(function(f){f!==Pe&&(U0(f,u),l.appendChild(f))}),Ht=!0}if(!o)if(Ht||Ea(),me.length>1){var h=ka;s._showClone(i),s.options.animation&&!ka&&h&&Bt.forEach(function(f){s.addAnimationState({target:f,rect:no}),f.fromRect=no,f.thisAnimationDuration=null})}else s._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,o=n.isOwner,a=n.activeSortable;if(me.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){no=un({},i);var s=$r(Pe,!0);no.top-=s.f,no.left-=s.e}},dragOverAnimationComplete:function(){Ht&&(Ht=!1,Ea())},drop:function(n){var i=n.originalEvent,o=n.rootEl,a=n.parentEl,s=n.sortable,l=n.dispatchSortableEvent,c=n.oldIndex,d=n.putSortable,u=d||this.sortable;if(i){var h=this.options,f=a.children;if(!ri)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Xe(Pe,h.selectedClass,!~me.indexOf(Pe)),~me.indexOf(Pe))me.splice(me.indexOf(Pe),1),eo=null,ao({sortable:s,rootEl:o,name:"deselect",targetEl:Pe,originalEvent:i});else{if(me.push(Pe),ao({sortable:s,rootEl:o,name:"select",targetEl:Pe,originalEvent:i}),i.shiftKey&&eo&&s.el.contains(eo)){var g=et(eo),p=et(Pe);~g&&~p&&g!==p&&function(){var k,S;p>g?(S=g,k=p):(S=p,k=g+1);for(var y=h.filter;S1){var m=ze(Pe),w=et(Pe,":not(."+this.options.selectedClass+")");if(!to&&h.animation&&(Pe.thisAnimationDuration=null),u.captureAnimationState(),!to&&(h.animation&&(Pe.fromRect=m,me.forEach(function(k){if(k.thisAnimationDuration=null,k!==Pe){var S=Ht?ze(k):m;k.fromRect=S,u.addAnimationState({target:k,rect:S})}})),Ea(),me.forEach(function(k){f[w]?a.insertBefore(k,f[w]):a.appendChild(k),w++}),c===et(Pe))){var E=!1;me.forEach(function(k){if(k.sortableIndex!==et(k)){E=!0;return}}),E&&(l("update"),l("sort"))}me.forEach(function(k){Zl(k)}),u.animateAll()}vn=u}(o===a||d&&d.lastPutMode!=="clone")&&Bt.forEach(function(k){k.parentNode&&k.parentNode.removeChild(k)})}},nullingGlobal:function(){this.isMultiDrag=ri=!1,Bt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),be(document,"pointerup",this._deselectMultiDrag),be(document,"mouseup",this._deselectMultiDrag),be(document,"touchend",this._deselectMultiDrag),be(document,"keydown",this._checkKeyDown),be(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ri<"u"&&ri)&&vn===this.sortable&&!(n&&It(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;me.length;){var i=me[0];Xe(i,this.options.selectedClass,!1),me.shift(),ao({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i,originalEvent:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},un(e,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[vt];!i||!i.options.multiDrag||~me.indexOf(n)||(vn&&vn!==i&&(vn.multiDrag._deselectMultiDrag(),vn=i),Xe(n,i.options.selectedClass,!0),me.push(n))},deselect:function(n){var i=n.parentNode[vt],o=me.indexOf(n);!i||!i.options.multiDrag||!~o||(Xe(n,i.options.selectedClass,!1),me.splice(o,1))}},eventProperties:function(){var n=this,i=[],o=[];return me.forEach(function(a){i.push({multiDragElement:a,index:a.sortableIndex});var s;Ht&&a!==Pe?s=-1:Ht?s=et(a,":not(."+n.options.selectedClass+")"):s=et(a),o.push({multiDragElement:a,index:s})}),{items:fC(me),clones:[].concat(Bt),oldIndicies:i,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function FC(e,t){me.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function q0(e,t){Bt.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Ea(){me.forEach(function(e){e!==Pe&&e.parentNode&&e.parentNode.removeChild(e)})}pe.mount(new NC);pe.mount(O1,R1);const zC=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:BC,Sortable:pe,Swap:PC,default:pe},Symbol.toStringTag,{value:"Module"})),ZC=ju(zC);var lf={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i=[],o=0;o$882b6d93070905b3$re_export$Sortable),s(e.exports,"Direction",()=>$882b6d93070905b3$re_export$Direction),s(e.exports,"DOMRect",()=>$882b6d93070905b3$re_export$DOMRect),s(e.exports,"GroupOptions",()=>$882b6d93070905b3$re_export$GroupOptions),s(e.exports,"MoveEvent",()=>$882b6d93070905b3$re_export$MoveEvent),s(e.exports,"Options",()=>$882b6d93070905b3$re_export$Options),s(e.exports,"PullResult",()=>$882b6d93070905b3$re_export$PullResult),s(e.exports,"PutResult",()=>$882b6d93070905b3$re_export$PutResult),s(e.exports,"SortableEvent",()=>$882b6d93070905b3$re_export$SortableEvent),s(e.exports,"SortableOptions",()=>$882b6d93070905b3$re_export$SortableOptions),s(e.exports,"Utils",()=>$882b6d93070905b3$re_export$Utils),s(e.exports,"ReactSortable",()=>y);function c(x){x.parentElement!==null&&x.parentElement.removeChild(x)}function d(x,C,A){const O=x.children[A]||null;x.insertBefore(C,O)}function u(x){x.forEach(C=>c(C.element))}function h(x){x.forEach(C=>{d(C.parentElement,C.element,C.oldIndex)})}function f(x,C){const A=w(x),O={parentElement:x.from};let D=[];switch(A){case"normal":D=[{element:x.item,newIndex:x.newIndex,oldIndex:x.oldIndex,parentElement:x.from}];break;case"swap":const F={element:x.item,oldIndex:x.oldIndex,newIndex:x.newIndex,...O},Z={element:x.swapItem,oldIndex:x.newIndex,newIndex:x.oldIndex,...O};D=[F,Z];break;case"multidrag":D=x.oldIndicies.map((I,V)=>({element:I.multiDragElement,oldIndex:I.index,newIndex:x.newIndicies[V].index,...O}));break}return E(D,C)}function g(x,C){const A=p(x,C);return m(x,A)}function p(x,C){const A=[...C];return x.concat().reverse().forEach(O=>A.splice(O.oldIndex,1)),A}function m(x,C,A,O){const D=[...C];return x.forEach(R=>{const P=O&&A&&O(R.item,A);D.splice(R.newIndex,0,P||R.item)}),D}function w(x){return x.oldIndicies&&x.oldIndicies.length>0?"multidrag":x.swapItem?"swap":"normal"}function E(x,C){return x.map(O=>({...O,item:C[O.oldIndex]})).sort((O,D)=>O.oldIndex-D.oldIndex)}function k(x){const{list:C,setList:A,children:O,tag:D,style:R,className:P,clone:F,onAdd:Z,onChange:I,onChoose:V,onClone:T,onEnd:z,onFilter:M,onRemove:W,onSort:X,onStart:Y,onUnchoose:le,onUpdate:de,onMove:B,onSpill:ee,onSelect:ce,onDeselect:re,...ne}=x;return ne}const S={dragging:null};class y extends i.Component{constructor(C){super(C),this.ref=(0,i.createRef)();const A=[...C.list].map(O=>Object.assign(O,{chosen:!1,selected:!1}));C.setList(A,this.sortable,S),a(o)(!C.plugins,` Plugins prop is no longer supported. Instead, mount it with "Sortable.mount(new MultiDrag())" Please read the updated README.md at https://github.com/SortableJS/react-sortablejs. `)}componentDidMount(){if(this.ref.current===null)return;const C=this.makeOptions();a(t).create(this.ref.current,C)}componentDidUpdate(C){C.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:C,style:A,className:O,id:D}=this.props,R={style:A,className:O,id:D},P=!C||C===null?"div":C;return(0,i.createElement)(P,{ref:this.ref,...R},this.getChildren())}getChildren(){const{children:C,dataIdAttr:A,selectedClass:O="sortable-selected",chosenClass:D="sortable-chosen",dragClass:R="sortable-drag",fallbackClass:P="sortable-falback",ghostClass:F="sortable-ghost",swapClass:Z="sortable-swap-highlight",filter:I="sortable-filter",list:V}=this.props;if(!C||C==null)return null;const T=A||"data-id";return i.Children.map(C,(z,M)=>{if(z===void 0)return;const W=V[M]||{},{className:X}=z.props,Y=typeof I=="string"&&{[I.replace(".","")]:!!W.filtered},le=a(n)(X,{[O]:W.selected,[D]:W.chosen,...Y});return(0,i.cloneElement)(z,{[T]:z.key,className:le})})}get sortable(){const C=this.ref.current;if(C===null)return null;const A=Object.keys(C).find(O=>O.includes("Sortable"));return A?C[A]:null}makeOptions(){const C=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],A=["onChange","onClone","onFilter","onSort"],O=k(this.props);return C.forEach(R=>O[R]=this.prepareOnHandlerPropAndDOM(R)),A.forEach(R=>O[R]=this.prepareOnHandlerProp(R)),{...O,onMove:(R,P)=>{const{onMove:F}=this.props,Z=R.willInsertAfter||-1;if(!F)return Z;const I=F(R,P,this.sortable,S);return typeof I>"u"?!1:I}}}prepareOnHandlerPropAndDOM(C){return A=>{this.callOnHandlerProp(A,C),this[C](A)}}prepareOnHandlerProp(C){return A=>{this.callOnHandlerProp(A,C)}}callOnHandlerProp(C,A){const O=this.props[A];O&&O(C,this.sortable,S)}onAdd(C){const{list:A,setList:O,clone:D}=this.props,R=[...S.dragging.props.list],P=f(C,R);u(P);const F=m(P,A,C,D).map(Z=>Object.assign(Z,{selected:!1}));O(F,this.sortable,S)}onRemove(C){const{list:A,setList:O}=this.props,D=w(C),R=f(C,A);h(R);let P=[...A];if(C.pullMode!=="clone")P=p(R,P);else{let F=R;switch(D){case"multidrag":F=R.map((Z,I)=>({...Z,element:C.clones[I]}));break;case"normal":F=R.map(Z=>({...Z,element:C.clone}));break;case"swap":default:a(o)(!0,`mode "${D}" cannot clone. Please remove "props.clone" from when using the "${D}" plugin`)}u(F),R.forEach(Z=>{const I=Z.oldIndex,V=this.props.clone(Z.item,C);P.splice(I,1,V)})}P=P.map(F=>Object.assign(F,{selected:!1})),O(P,this.sortable,S)}onUpdate(C){const{list:A,setList:O}=this.props,D=f(C,A);u(D),h(D);const R=g(D,A);return O(R,this.sortable,S)}onStart(){S.dragging=this}onEnd(){S.dragging=null}onChoose(C){const{list:A,setList:O}=this.props,D=A.map((R,P)=>{let F=R;return P===C.oldIndex&&(F=Object.assign(R,{chosen:!0})),F});O(D,this.sortable,S)}onUnchoose(C){const{list:A,setList:O}=this.props,D=A.map((R,P)=>{let F=R;return P===C.oldIndex&&(F=Object.assign(F,{chosen:!1})),F});O(D,this.sortable,S)}onSpill(C){const{removeOnSpill:A,revertOnSpill:O}=this.props;A&&!O&&c(C.item)}onSelect(C){const{list:A,setList:O}=this.props,D=A.map(R=>Object.assign(R,{selected:!1}));C.newIndicies.forEach(R=>{const P=R.index;if(P===-1){console.log(`"${C.type}" had indice of "${R.index}", which is probably -1 and doesn't usually happen here.`),console.log(C);return}D[P].selected=!0}),O(D,this.sortable,S)}onDeselect(C){const{list:A,setList:O}=this.props,D=A.map(R=>Object.assign(R,{selected:!1}));C.newIndicies.forEach(R=>{const P=R.index;P!==-1&&(D[P].selected=!0)}),O(D,this.sortable,S)}}od(y,"defaultProps",{clone:C=>C});var $={};l(e.exports,$)})(Uh);var zr=Uh.exports;const JC=window.React.forwardRef,Zr=JC(({searchText:e="",onSearch:t=()=>!1,placeholder:n=N("Search"),...i},o)=>r.jsx(KC,{value:e,onChange:t,ref:o,type:"text",prefix:r.jsx(qC,{children:r.jsx(vw,{})}),placeholder:n,...i,$_css2:[{height:"40px",width:"100%",borderRadius:"5px",borderWidth:"0px !important",paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"8px",">input":{"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}},ue(["",""],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1)) !important"})]}));var KC=v(ot)`${e=>e.$_css2}`,qC=v("span").withConfig({displayName:"SearchBox___StyledSpan",componentId:"sc-3svoz1-0"})({"--tw-scale-x":"-1",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",">svg":{height:"25px",width:"25px"}});const QC=window.React.createContext,e_=window.React.forwardRef,N1=window.React.useContext,cf=window.React.useEffect,cs=window.React.useMemo,t_=window.React.useRef,_o=window.React.useState,n_=QC({}),r_=e=>{const{builder:t}=N1(Je),n=te(t)(l=>l.changeElementSettings),i=te(t)(l=>{var c;return((c=l.chosenElement)==null?void 0:c.id)??""}),[o]=_o(!1),a=()=>{n(l=>{l.languages=l.languages.filter(c=>c.id!==e.item.id)}),He().refreshPartial(`${t}_${i}`)},s=l=>{n(c=>{const d=c.languages.findIndex(u=>u.id===e.item.id);d!==-1&&(c.languages[d].url=l.toString())})};return r.jsxs(s_,{className:"bg-gutenberg-white rounded-base transition-all ease-in-out duration-base overflow-hidden",$_css2:[{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(l_,{className:"group flex justify-between items-center p-3 select-none h-[44px]",$_css3:[o&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},o&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("span",{className:"brandy-social-drag-handle cursor-grab p-2",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ke([!o&&"group-hover:[&_*]:fill-brandy-text",o&&`[&_*]:fill-[${window.brandyCustomizerData.colors.icon.normal}]`]),children:[r.jsxs("g",{clipPath:"url(#clip0_2536_66911)",children:[r.jsx("circle",{cx:"1",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_2536_66911",children:r.jsx("rect",{width:"7",height:"12",fill:"white"})})})]})}),r.jsx(c_,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:df[e.item.flag]??""}}),r.jsx("span",{className:ke(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.language_name})]}),r.jsx(d_,{className:"flex invisible opacity-0 items-center gap-1 transition-all ease-in-out duration-base",$_css4:[{".group:hover &":{visibility:"visible !important",opacity:"1 !important"}},o&&{visibility:"visible !important",opacity:"1 !important"}],children:r.jsx(u_,{className:"p-1 cursor-pointer",onClick:a,$_css5:[ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})})})]}),o&&r.jsx("div",{className:"p-4",children:r.jsx(h_,{value:e.item.url,onChange:s,prefix:r.jsx(f_,{className:"brandy-icon",$_css7:[ue(["padding:6px;background:#e3e8ee;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})],children:r.jsx("svg",{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M12.6 0.200012H11V1.70001H12.6C14.6 1.70001 16.3 3.40001 16.3 5.40001C16.3 7.40001 14.6 9.10001 12.6 9.10001H11V10.6H12.6C15.4 10.6 17.8 8.30001 17.8 5.40001C17.8 2.50001 15.5 0.200012 12.6 0.200012ZM1.70001 5.40001C1.70001 3.40001 3.40001 1.70001 5.40001 1.70001H7.00001V0.200012H5.40001C2.50001 0.200012 0.200012 2.50001 0.200012 5.40001C0.200012 8.30001 2.50001 10.6 5.40001 10.6H7.00001V9.10001H5.40001C3.40001 9.10001 1.70001 7.40001 1.70001 5.40001ZM6.30001 6.30001H11.6V4.80001H6.30001V6.30001Z",fill:"black"})})}),$_css6:[ue(["padding:0 !important;overflow:hidden;"])]})})]})},i_=window.brandyCustomizerData.language.list,df=window.brandyCustomizerData.language.flags;function o_(e){const{builder:t}=N1(Je),n=cs(()=>e.value??e.default_value,[e.value,e.default_value]),i=te(t)(w=>{var E;return((E=w.chosenElement)==null?void 0:E.id)??""}),[o,a]=_o(null),[s,l]=_o(null),{styles:c,attributes:d}=In(o,s),[u,h]=_o(!1),f=()=>{h(w=>!w)},g=()=>{h(!1)};cf(()=>{const w=E=>{(o==null||s==null)&&g(),!(o!=null&&o.contains(E.target))&&!(s!=null&&s.contains(E.target))&&g()};return window.jQuery(document).on("click","body",w),()=>{window.jQuery(document).off("click","body",w)}},[o,s]);const p=w=>{JSON.stringify(n)!==JSON.stringify(w)&&(e.onChange(w),He().refreshPartial(`${t}_${i}`))},m=cs(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(n_.Provider,{value:m,children:r.jsxs(p_,{children:[r.jsxs(g_,{children:[r.jsx(ct,{className:"m-0",children:N("List languages")}),r.jsx(m_,{className:"group",ref:a,onClick:f,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(v_,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(zr.ReactSortable,{list:n,setList:p,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-social-drag-handle",children:n.map(w=>r.jsx("div",{children:r.jsx(r_,{item:w})},w.id))}),u&&r.jsx(a_,{ref:l,style:{...c.popper},...d.popper,onClose:g})]})})}const a_=e_(({style:e,onClose:t,...n},i)=>{const{builder:o}=N1(Je),a=te(o)(p=>p.changeElementSettings),s=te(o)(p=>{var m,w;return((w=(m=p.chosenElement)==null?void 0:m.settings)==null?void 0:w.languages)??[]}),l=te(o)(p=>{var m;return((m=p.chosenElement)==null?void 0:m.id)??""}),[c,d]=_o(""),u=cs(()=>i_.filter(p=>!s.map(m=>m.id).includes(p.id)),[s]),h=cs(()=>u.filter(p=>p.language_name.toLowerCase().includes(c.toLowerCase())||p.language_code.toLowerCase().includes(c.toLowerCase())||p.country_code.toLowerCase().includes(c.toLowerCase())||(p.english_name??"").toLowerCase().includes(c.toLowerCase())),[u,c]),f=p=>()=>{a(m=>{m.languages.push(p)}),He().refreshPartial(`${o}_${l}`),t()},g=t_(null);return cf(()=>{var p,m;return(m=(p=g.current)==null?void 0:p.querySelector("input"))==null?void 0:m.focus()},[g.current]),r.jsxs(w_,{style:e,ref:i,...n,children:[r.jsxs(x_,{children:[r.jsx(b_,{children:"Add language"}),r.jsx(y_,{onClick:()=>{t()},children:r.jsx(Rs,{})})]}),r.jsx(C_,{children:r.jsx(Zr,{ref:g,searchText:c,onSearch:p=>{d(p.toString())},placeholder:N("Search language")})}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(__,{children:[h.map(p=>r.jsxs(S_,{onClick:f(p),children:[r.jsx(j_,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:df[p.flag]??""},$_css8:[` display: inline-flex; width: 30px; height: 100%; svg { width: 100%; height: 100%; }`]}),r.jsx("span",{children:p.english_name})]},p.id)),h.length===0&&r.jsx(k_,{children:"No language found"})]})})]})});var s_=v("div")`${e=>e.$_css2}`,l_=v("div")`${e=>e.$_css3}`,c_=v("span")` width: 20px; height: 20px; border-radius: 50%; overflow: hidden; outline: 1px solid rgba(227, 232, 238, 0.45); outline-offset: 2px; svg { width: auto; height: 102%; left: -22%; position: relative; } `,d_=v("div")`${e=>e.$_css4}`,u_=v("span")`${e=>e.$_css5}`,h_=v(ot)`${e=>e.$_css6}`,f_=v("span")`${e=>e.$_css7}`,p_=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),g_=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),m_=v("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#D1EAFFB2"}}),v_=v("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),w_=v("div")({zIndex:"10",marginTop:"0.5rem",marginBottom:"0.5rem",width:"320px",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),x_=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),b_=v("span")({fontSize:"16px",fontWeight:"500"}),y_=v("span")({cursor:"pointer",padding:"0.25rem"}),C_=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),__=v("div")({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.25rem",padding:"1rem"}),S_=v("div")({display:"flex",minHeight:"45px",cursor:"pointer",alignItems:"center",gap:"0.5rem",borderRadius:"3px",padding:"0.5rem","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 244 249 / var(--tw-bg-opacity, 1))"}}),j_=v("span")`${e=>e.$_css8}`,k_=v("div").withConfig({displayName:"ListLanguages___StyledDiv10",componentId:"sc-1uj33jr-0"})({gridColumn:"span 4 / span 4",margin:"auto","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"});const E_=e=>{var t;return r.jsx($_,{className:"currency-item",$_css:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(H_,{className:"group",children:r.jsx(M_,{children:r.jsxs(I_,{className:ke(["group-hover:text-brandy-text"]),children:[r.jsx(T_,{src:((t=window.brandyCustomizerData.currency.list.find(n=>n.id==e.item.id))==null?void 0:t.flag)??"",alt:"currency-flag"}),r.jsx(L_,{children:e.item.id})]})})})})},ro=window.brandyCustomizerData.currency.list;function D_(){return r.jsxs(A_,{children:[r.jsx(R_,{children:r.jsx(ct,{className:"m-0",children:N("List Currencies")})}),ro==null&&r.jsx("div",{dangerouslySetInnerHTML:{__html:N('Please install YayCurrency to add currencies')}}),ro==null?void 0:ro.map(e=>r.jsx("div",{children:r.jsx(E_,{item:e})},e.id)),ro!=null&&r.jsx(O_,{href:window.brandyCustomizerData.paths.yay_currency_manage,target:"_blank",children:N("Manage currencies")})]})}var $_=v("div")`${e=>e.$_css}`,H_=v("div")({display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"}),M_=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),I_=v("span")({display:"flex",alignItems:"center"}),T_=v("img")({marginRight:"0.5rem",display:"inline-block",width:"30px",borderRadius:"3px"}),L_=v("span")({fontWeight:"500"}),A_=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),R_=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),O_=v("a").withConfig({displayName:"ListCurrencies___StyledA",componentId:"sc-gaezvr-0"})({textDecorationLine:"underline"});const N_=window.React.useContext;function P_(e){const t=N_(Je);return r.jsx("div",{className:"flex flex-col gap-4",children:r.jsxs("div",{children:[r.jsx(Us,{...e}),r.jsxs("div",{className:"text-brandy-text-secondary mt-2",children:[N("Manage your menu items in the")," ",r.jsx("span",{className:"text-wp underline cursor-pointer",onClick:()=>{var n;t!=null&&t.goBack?(t==null||t.goBack(),(n=window.wp.customize.panel("nav_menus"))==null||n.expand()):window.open(window.brandyCustomizerData.paths.nav_menu,"_blank")},children:"Menus screen."})]})]})})}const V_=window.React.useContext,Q0=window.React.useMemo,B_=window.brandyCustomizerData.icons.account;function F_(e){const{builder:t}=V_(Yt),n=Q0(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=te(t)(a=>{var s,l,c,d,u,h,f,g;return(n==="logged_in"?(d=(c=(l=(s=a.chosenElement)==null?void 0:s.settings)==null?void 0:l.logged_in)==null?void 0:c.icon)==null?void 0:d.style:(g=(f=(h=(u=a.chosenElement)==null?void 0:u.settings)==null?void 0:h.logged_out)==null?void 0:f.icon)==null?void 0:g.style)??"outline"}),o=Q0(()=>Object.entries(B_[i]??{}).map(([a,s])=>({value:a,label:r.jsx("span",{className:ke(["brandy-icon"]),dangerouslySetInnerHTML:{__html:s}})})),[i]);return r.jsx(Mn,{...e,options:o,itemCss:[ue(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}&:hover{svg{*[fill]{fill:#000 !important;}*[stroke]{stroke:#000 !important;}}}svg *{transition:all ease-in-out 0.1s;}"])]})}const z_=window.React.useMemo,Z_={logged_in:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.8 12V10.5H4.32727L4.32727 12C4.32727 12.2761 4.5552 12.5 4.83636 12.5H11.9636C12.2448 12.5 12.4727 12.2761 12.4727 12V2C12.4727 1.72386 12.2448 1.5 11.9636 1.5L4.83636 1.5C4.5552 1.5 4.32727 1.72386 4.32727 2V3.5L2.8 3.5V2C2.8 0.895431 3.71171 0 4.83636 0H11.9636C13.0883 0 14 0.89543 14 2V12C14 13.1046 13.0883 14 11.9636 14H4.83636C3.71171 14 2.8 13.1046 2.8 12ZM10.1983 6.46492L7.14371 3.46492L6.09265 4.53509L7.83875 6.25001L0 6.25001V7.75001L7.83874 7.75001L6.09265 9.46491L7.14371 10.5351L10.1983 7.53509L10.7431 7.00001L10.1983 6.46492Z",fill:"#5A6D80"})}),logged_out:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.8 12V10.5H4.32727L4.32727 12C4.32727 12.2761 4.5552 12.5 4.83636 12.5H11.9636C12.2448 12.5 12.4727 12.2761 12.4727 12V2C12.4727 1.72386 12.2448 1.5 11.9636 1.5L4.83636 1.5C4.5552 1.5 4.32727 1.72386 4.32727 2V3.5L2.8 3.5V2C2.8 0.895431 3.71171 0 4.83636 0H11.9636C13.0883 0 14 0.89543 14 2V12C14 13.1046 13.0883 14 11.9636 14H4.83636C3.71171 14 2.8 13.1046 2.8 12ZM10.1983 6.46492L7.14371 3.46492L6.09265 4.53509L7.83875 6.25001L0 6.25001V7.75001L7.83874 7.75001L6.09265 9.46491L7.14371 10.5351L10.1983 7.53509L10.7431 7.00001L10.1983 6.46492Z",fill:"#5A6D80"})})};function uf({state:e}){const t=z_(()=>e==="logged_in"?"Logged in view":"Logged out view",[e]);return r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-[12px] font-bold text-brandy-text-secondary uppercase",children:t}),r.jsx("div",{children:Z_[e]})]})}const W_=()=>r.jsx(uf,{state:"logged_in"}),G_=()=>r.jsx(uf,{state:"logged_out"}),U_=window.React.useMemo,Y_=window.brandyCustomizerData.icons.button;function X_(e){const t=U_(()=>Object.entries(Y_??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:"text-[#A1ABB7]",dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(Mn,{...e,options:t,className:"[&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-4"})}const J_=window.React.useContext,K_=window.React.useMemo,q_=window.brandyCustomizerData.icons.cart;function Q_(e){const{builder:t}=J_(Yt),n=te(t)(o=>{var a;return(a=o.chosenElement)==null?void 0:a.settings.icon_style}),i=K_(()=>Object.entries(q_[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:ke(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(Mn,{...e,options:i})}const eS=window.React.forwardRef,P1=window.React.useContext,hf=window.React.useEffect,Pc=window.React.useMemo,tS=window.React.useRef,So=window.React.useState,nS=e=>{const{builder:t}=P1(Je),n=te(t)(u=>{var h;return(h=u.chosenElement)==null?void 0:h.settings}),i=te(t)(u=>u.changeElementSettings),[o,a]=So(!1),s=()=>{i(u=>{u.items=n.items.filter(h=>h.id!==e.item.id)}),He().refreshPartial(`${t}_contact`)},l=()=>{a(u=>!u)},c=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const g=De(xt("contact",t)+` .brandy-contact-item[type="${h.id}"] .brandy-contact-item__text`);g&&window.jQuery(g).html(u.toString()),i(p=>{p.items[f].content=u.toString()})}})},d=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const g=De(xt("contact",t)+` .brandy-contact-item[type="${h.id}"]`);g&&window.jQuery(g).attr("href",u.toString()),i(p=>{p.items[f].url=u.toString()})}})};return r.jsxs(aS,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(sS,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},o&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},o&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(lS,{children:[r.jsx(cS,{className:"brandy-social-drag-handle",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ke([!o&&"group-hover:[&_*]:fill-brandy-text",o&&`[&_*]:fill-[${window.brandyCustomizerData.colors.icon.normal}]`]),children:[r.jsxs("g",{clipPath:"url(#clip0_2536_66911)",children:[r.jsx("circle",{cx:"1",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_2536_66911",children:r.jsx("rect",{width:"7",height:"12",fill:"white"})})})]})}),r.jsx("span",{className:ke(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(dS,{className:"flex invisible opacity-0 items-center gap-1 transition-all ease-in-out duration-base",$_css4:[{".group:hover &":{visibility:"visible !important",opacity:"1 !important"}},o&&{visibility:"visible !important",opacity:"1 !important"}],children:[r.jsx(uS,{className:"p-1 cursor-pointer",onClick:s,$_css5:[ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(hS,{onClick:l,className:"p-1 cursor-pointer",$_css6:[ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},o&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),o&&r.jsxs(fS,{children:[r.jsxs(pS,{children:[r.jsx("div",{children:"Content"}),r.jsx(ot,{value:e.item.content,onChange:c})]}),r.jsxs(gS,{children:[r.jsx("div",{children:"Link"}),r.jsx(mS,{value:e.item.url,onChange:d,prefix:r.jsx(vS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:ff[e.item.icon]??""},$_css8:[ue(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[ue(["padding:0 !important;overflow:hidden;"])]})]})]})]})},rS=window.brandyCustomizerData.all_contacts,ff=window.brandyCustomizerData.icons.contact;function iS(e){const{builder:t}=P1(Je),n=Pc(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=So(null),[a,s]=So(null),{styles:l,attributes:c}=In(i,a),[d,u]=So(!1),h=()=>{u(p=>!p)},f=()=>{u(!1)};hf(()=>{const p=m=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(m.target))&&!(a!=null&&a.contains(m.target))&&f()};return window.jQuery(document).on("click","body",p),()=>{window.jQuery(document).off("click","body",p)}},[i,a]);const g=p=>{JSON.stringify(n)!==JSON.stringify(p)&&(e.onChange(p),He().refreshPartial(`${t}_contact`))};return r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(ct,{className:"m-0",children:N("List contacts")}),r.jsx("div",{className:"group p-2 hover:bg-wp-light cursor-pointer rounded-base transition-all ease-in-out duration-base",ref:o,onClick:h,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{className:"group-hover:fill-wp transition-all ease-in-out duration-base",d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(zr.ReactSortable,{list:n,setList:g,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-social-drag-handle",children:n.map(p=>r.jsx("div",{children:r.jsx(nS,{item:p})},p.id))}),d&&r.jsx(oS,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const oS=eS(({style:e,onClose:t,...n},i)=>{const{builder:o}=P1(Je),a=te(o)(g=>{var p;return(p=g.chosenElement)==null?void 0:p.settings}),s=te(o)(g=>g.changeElementSettings),[l,c]=So(""),d=Pc(()=>rS.filter(g=>!a.items.map(p=>p.id).includes(g.id)),[a.items]),u=Pc(()=>d.filter(g=>g.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=g=>()=>{s(p=>{p.items.push(g)}),He().refreshPartial(`${o}_contact`),t()},f=tS(null);return hf(()=>{var g,p;return(p=(g=f.current)==null?void 0:g.querySelector("input"))==null?void 0:p.focus()},[f.current]),r.jsxs(wS,{className:"bg-gutenberg-white z-10 rounded-base w-[320px] my-2",style:e,ref:i,...n,$_css9:[{"--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsxs("div",{className:"p-4 pb-2 flex items-center justify-between",children:[r.jsx("span",{className:"text-[16px] font-medium",children:"Select contact"}),r.jsx("span",{className:"cursor-pointer p-1",onClick:()=>{t()},children:r.jsx(Rs,{})})]}),r.jsx("div",{className:"p-4 pt-2 border-b border-b-brandy-border-light",children:r.jsx(Zr,{ref:f,searchText:l,onSearch:g=>{c(g.toString())},placeholder:N("Search contact")})}),r.jsx(Zn,{className:"h-[250px]",autoHide:!0,children:r.jsxs("div",{className:"p-4 flex flex-col gap-1",children:[u.map(g=>r.jsxs(xS,{className:"group",onClick:h(g),$_css0:[{display:"flex",width:"100%",alignItems:"center",gap:"10px",borderRadius:"3px",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"16px",paddingBottom:"16px"},{cursor:"pointer",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{"&:hover":{backgroundColor:"rgba(34, 113, 177, 0.03)"}}],children:[r.jsx(bS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:ff[g.icon]??""},$_css1:[ue(["svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7",".group:hover &":{stroke:"#2271B1"}},{fill:"#A1ABB7",".group:hover &":{fill:"#2271B1"}})]}),r.jsx(yS,{children:g.label})]},g.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var aS=v("div")`${e=>e.$_css2}`,sS=v("div")`${e=>e.$_css3}`,lS=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),cS=v("span")({cursor:"grab",padding:"0.5rem"}),dS=v("div")`${e=>e.$_css4}`,uS=v("span")`${e=>e.$_css5}`,hS=v("span")`${e=>e.$_css6}`,fS=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),pS=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),gS=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),mS=v(ot)`${e=>e.$_css7}`,vS=v("span")`${e=>e.$_css8}`,wS=v("div")`${e=>e.$_css9}`,xS=v("div")`${e=>e.$_css0}`,bS=v("span")`${e=>e.$_css1}`,yS=v("span").withConfig({displayName:"ListContacts___StyledSpan6",componentId:"sc-1q0j5o-0"})({"--tw-text-opacity":"1",color:"rgb(66 66 66 / var(--tw-text-opacity, 1))",".group:hover &":{"--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}});const CS=window.React.useContext,_S=window.React.useMemo,SS=[{value:"text",label:r.jsxs("svg",{width:"278",height:"61",viewBox:"0 0 278 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"1",width:"277",height:"59",rx:"4.5",fill:"white",stroke:"#E3E8EE"}),r.jsx("rect",{x:"25",y:"17.3438",width:"28.607",height:"27.1014",rx:"5",fill:"#E3E8EE"}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"78.6074",y:"27.3945",width:"35.0667",height:"6.11967",rx:"2",fill:"#808890"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"123.607",y:"27.3945",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"168.607",y:"27.3945",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"213.607",y:"27.3945",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})})]})},{value:"button",label:r.jsxs("svg",{width:"278",height:"61",viewBox:"0 0 278 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"1",width:"277",height:"59",rx:"4.5",fill:"white",stroke:"#E3E8EE"}),r.jsx("rect",{x:"25",y:"17.4492",width:"28.607",height:"27.1014",rx:"5",fill:"#E3E8EE"}),r.jsxs("g",{opacity:"0.6",children:[r.jsx("rect",{x:"73.6074",y:"16.5",width:"45",height:"28.6364",rx:"2",fill:"#D9D9D9",fillOpacity:"0.6"}),r.jsx("rect",{x:"78.6074",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#808890"})]}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"123.607",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"168.607",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"213.607",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})})]})},{value:"underline",label:r.jsxs("svg",{width:"278",height:"61",viewBox:"0 0 278 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"1",width:"277",height:"59",rx:"4.5",fill:"white",stroke:"#E3E8EE"}),r.jsx("rect",{x:"25",y:"17.4492",width:"28.607",height:"27.1014",rx:"5",fill:"#E3E8EE"}),r.jsxs("g",{opacity:"0.6",children:[r.jsx("mask",{id:"path-3-inside-1_2609_114915",fill:"white",children:r.jsx("path",{d:"M73.6074 16.5H118.607V45.1364H73.6074V16.5Z"})}),r.jsx("path",{d:"M118.607 44.1364H73.6074V46.1364H118.607V44.1364Z",fill:window.brandyCustomizerData.colors.icon.normal,mask:"url(#path-3-inside-1_2609_114915)"}),r.jsx("rect",{x:"78.6074",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#808890"})]}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"123.607",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"168.607",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"213.607",y:"27.5",width:"35.0667",height:"6.11967",rx:"2",fill:"#E3E8EE"})})]})}],jS=v.div.withConfig({displayName:"ActiveTypeSelection__StyledItem",componentId:"sc-5cnq7j-0"})(({selected:e})=>[{backgroundColor:"rgba(255, 255, 255, 0.65)",padding:"1.25rem","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.80)"}},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{cursor:"pointer",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"}]);var kS=v(jS).withConfig({displayName:"ActiveTypeSelection___StyledStyledItem",componentId:"sc-5cnq7j-1"})(["",""],e=>e.$_css2);function ES(e){const{builder:t}=CS(Je),n=te(t)(s=>s.changeElementSettings),{current:i}=_e(),o=_S(()=>e.value??e.default_value,[e.value,e.default_value]),a=s=>{s!=e.value&&(n(l=>{let c=t==="header"?window.brandyDefaultHeaderStyles:window.brandyDefaultFooterStyles;c&&c[s]!=null&&(c=JSON.parse(JSON.stringify(c)),Object.keys(c[s]).forEach(d=>{l[d]=c[s][d]})),setTimeout(()=>{Hn({sectionId:e.sectionId,settings:l,device:i})},1)}),e.onChange(s))};return r.jsxs(r.Fragment,{children:[r.jsx(ct,{children:N("Select menu item active type")}),r.jsx("div",{className:"flex flex-col gap-4",children:SS.map(s=>r.jsx(kS,{onClick:()=>{a(s.value)},selected:o===s.value,$_css2:[ue` svg { width: 100%; } `],children:s.label},s.value))})]})}const DS=window.React.useContext,$S=window.React.useMemo,HS=window.brandyCustomizerData.wp_nav_menus,MS=HS.map(e=>({label:e.name,value:e.slug}));function IS(e){const t=DS(Je),n=$S(()=>e.value??e.default_value,[e.value,e.default_value]);return r.jsxs(r.Fragment,{children:[r.jsx(ct,{children:"Select Menu"}),r.jsx(dt,{options:MS,selected:n,onChange:e.onChange}),r.jsxs("div",{className:"text-brandy-text-secondary mt-2",children:[N("Manage your menu items in the")," ",r.jsx("span",{className:"text-wp underline cursor-pointer",onClick:()=>{var i;t!=null&&t.goBack?(t==null||t.goBack(),(i=window.wp.customize.panel("nav_menus"))==null||i.expand()):window.open(window.brandyCustomizerData.paths.nav_menu,"_blank")},children:"Menus screen."})]})]})}const TS=window.React.useMemo,LS=window.brandyCustomizerData.icons.search;function AS(e){const t=TS(()=>Object.entries(LS??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:ke(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(Mn,{...e,options:t})}const RS=[{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_5678_84101)"}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_5678_84101)"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"9",y:"9",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M157 14H140V15H157V14Z",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"145",y:"8.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"167",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"184",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"201",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"235",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"252",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"270",y:"5.5",width:"12",height:"12",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M273 8.5V9.25H280V8.5H273ZM273 12.4H280V11.65H273V12.4ZM273 15.5H280V14.75H273V15.5Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),r.jsxs("g",{clipPath:"url(#clip0_5678_84101)",children:[r.jsx("g",{filter:"url(#filter0_d_5678_84101)",children:r.jsx("path",{d:"M177 1H284C285.657 1 287 2.34315 287 4V85H177V1Z",fill:"white"})}),r.jsx("rect",{x:"187.012",y:"21",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 21.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187.012",y:"37",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 37.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 43.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187.012",y:"53",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 53.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 59.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187.012",y:"69",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 69.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 75.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187",y:"6.84375",width:"83",height:"8",rx:"1",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M191.652 8.84375C192.564 8.84375 193.303 9.58325 193.303 10.4955C193.303 10.8772 193.174 11.2286 192.957 11.5083L194 12.5518L193.708 12.8438L192.665 11.8003C192.385 12.0177 192.033 12.1472 191.652 12.1472C190.739 12.1472 190 11.4077 190 10.4955C190 9.58325 190.739 8.84375 191.652 8.84375ZM191.652 9.25668C192.336 9.25668 192.89 9.8113 192.89 10.4955C192.89 11.1796 192.336 11.7343 191.652 11.7343C190.968 11.7343 190.413 11.1796 190.413 10.4955C190.413 9.8113 190.968 9.25668 191.652 9.25668Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M278 11.2879L279.555 12.8438L280 12.3996L278.445 10.8437L280 9.28833L279.556 8.84417L278 10.3987L276.445 8.84375L276 9.28791L277.555 10.8437L276 12.3992L276.444 12.8438L278 11.2883V11.2879Z",fill:"#A1ABB7"})]}),r.jsxs("defs",{children:[r.jsxs("filter",{id:"filter0_d_5678_84101",x:"167",y:"-5",width:"130",height:"104",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[r.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.jsx("feOffset",{dy:"4"}),r.jsx("feGaussianBlur",{stdDeviation:"5"}),r.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),r.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0"}),r.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5678_84101"}),r.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_5678_84101",result:"shape"})]}),r.jsx("clipPath",{id:"clip0_5678_84101",children:r.jsx("rect",{width:"110",height:"84",fill:"white",transform:"translate(177 1)"})})]})]}),value:"type_1",title:"Panel sidebar - list view"},{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5243",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5243)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5243",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5243)"}),r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H282C284.761 1 287 3.23858 287 6V85H1V6Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"9",y:"9",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M157 14H140V15H157V14Z",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"145",y:"8.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"167",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"184",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"201",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"235",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"252",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"270",y:"5.5",width:"12",height:"12",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M273 8.5V9.25H280V8.5H273ZM273 12.4H280V11.65H273V12.4ZM273 15.5H280V14.75H273V15.5Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),r.jsxs("g",{clipPath:"url(#clip0_563_5243)",children:[r.jsx("g",{filter:"url(#filter0_d_563_5243)",children:r.jsx("path",{d:"M177 1H284C285.657 1 287 2.34315 287 4V85H177V1Z",fill:"white"})}),r.jsx("rect",{x:"185.999",y:"20",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 202.115 39)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 227 44)",fill:"#F0F0F1"}),r.jsx("rect",{x:"237",y:"20",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 253.116 39)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 278 44)",fill:"#F0F0F1"}),r.jsx("rect",{x:"185.999",y:"53",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 202.115 72)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 227 77)",fill:"#F0F0F1"}),r.jsx("rect",{x:"237",y:"53",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 253.116 72)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 278 77)",fill:"#F0F0F1"}),r.jsx("rect",{x:"186",y:"6.84375",width:"82",height:"8",rx:"1",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M190.652 8.84375C191.564 8.84375 192.303 9.58325 192.303 10.4955C192.303 10.8772 192.174 11.2286 191.957 11.5083L193 12.5518L192.708 12.8438L191.665 11.8003C191.385 12.0177 191.033 12.1472 190.652 12.1472C189.739 12.1472 189 11.4077 189 10.4955C189 9.58325 189.739 8.84375 190.652 8.84375ZM190.652 9.25668C191.336 9.25668 191.89 9.8113 191.89 10.4955C191.89 11.1796 191.336 11.7343 190.652 11.7343C189.968 11.7343 189.413 11.1796 189.413 10.4955C189.413 9.8113 189.968 9.25668 190.652 9.25668Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M276 11.2879L277.555 12.8438L278 12.3996L276.445 10.8437L278 9.28833L277.556 8.84417L276 10.3987L274.445 8.84375L274 9.28791L275.555 10.8437L274 12.3992L274.444 12.8438L276 11.2883V11.2879Z",fill:"#A1ABB7"})]}),r.jsxs("defs",{children:[r.jsxs("filter",{id:"filter0_d_563_5243",x:"167",y:"-5",width:"130",height:"104",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[r.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.jsx("feOffset",{dy:"4"}),r.jsx("feGaussianBlur",{stdDeviation:"5"}),r.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),r.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0"}),r.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_563_5243"}),r.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_563_5243",result:"shape"})]}),r.jsx("clipPath",{id:"clip0_563_5243",children:r.jsx("rect",{width:"110",height:"84",fill:"white",transform:"translate(177 1)"})})]})]}),value:"type_2",title:"Panel sidebar - grid view"},{label:r.jsxs("svg",{width:"288",height:"86",viewBox:"0 0 288 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_1820_74422",maskUnits:"userSpaceOnUse",x:"0",y:"0.15625",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",y:"0.15625",width:"288",height:"85"}),r.jsx("path",{d:"M1 4.15625C1 2.49939 2.34315 1.15625 4 1.15625H284C285.657 1.15625 287 2.4994 287 4.15625V85.1562H1V4.15625Z"})]}),r.jsx("path",{d:"M1 4.15625C1 2.49939 2.34315 1.15625 4 1.15625H284C285.657 1.15625 287 2.4994 287 4.15625V85.1562H1V4.15625Z",fill:"white"}),r.jsx("path",{d:"M1 6.15625C1 3.39483 3.23858 1.15625 6 1.15625H282C284.761 1.15625 287 3.39483 287 6.15625V85.1562H1V6.15625Z",fill:"black",fillOpacity:"0.2"}),r.jsx("path",{d:"M1 4.15625C1 2.49939 2.34315 1.15625 4 1.15625H284C285.657 1.15625 287 2.4994 287 4.15625V75.1562H1V4.15625Z",fill:"#FEFEFE"}),r.jsx("path",{d:"M279 9.44416L280.555 11L281 10.5558L279.445 9L281 7.44458L280.556 7.00042L279 8.555L277.445 7L277 7.44416L278.555 9L277 10.5554L277.444 11L279 9.44458V9.44416Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"8.15625",width:"140.668",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M203.441 14.3783L204.219 15.1562L204.441 14.9342L203.664 14.1562L204.441 13.3785L204.219 13.1565L203.441 13.9337L202.664 13.1562L202.441 13.3783L203.219 14.1562L202.441 14.934L202.663 15.1562L203.441 14.3785V14.3783Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M210.919 11.1562C212.287 11.1562 213.397 12.2655 213.397 13.6338C213.397 14.2064 213.202 14.7335 212.876 15.1531L214.441 16.7183L214.003 17.1562L212.438 15.5911C212.019 15.9172 211.492 16.1114 210.919 16.1114C209.551 16.1114 208.441 15.0022 208.441 13.6338C208.441 12.2655 209.551 11.1562 210.919 11.1562ZM210.919 11.7756C211.945 11.7756 212.777 12.6076 212.777 13.6338C212.777 14.6601 211.945 15.492 210.919 15.492C209.893 15.492 209.061 14.6601 209.061 13.6338C209.061 12.6076 209.893 11.7756 210.919 11.7756Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"32",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 60.2891 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 76 61.1562)",fill:"#F0F0F1"}),r.jsx("rect",{x:"92",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 120.289 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 136 61.1562)",fill:"#F0F0F1"}),r.jsx("rect",{x:"152",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 180.289 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 196 61.1562)",fill:"#F0F0F1"}),r.jsx("rect",{x:"212",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 240.289 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 256 61.1562)",fill:"#F0F0F1"}),r.jsx("path",{d:"M0 4.15625C0 1.94711 1.79086 0.15625 4 0.15625H284C286.209 0.15625 288 1.94711 288 4.15625H286C286 3.05168 285.105 2.15625 284 2.15625H4C2.89543 2.15625 2 3.05168 2 4.15625H0ZM287 85.1562H1H287ZM0 85.1562V4.15625C0 1.94711 1.79086 0.15625 4 0.15625V2.15625C2.89543 2.15625 2 3.05168 2 4.15625V85.1562H0ZM284 0.15625C286.209 0.15625 288 1.94711 288 4.15625V85.1562H286V4.15625C286 3.05168 285.105 2.15625 284 2.15625V0.15625Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_1820_74422)"})]}),title:"Panel Full-screen - grid view",value:"type_3"},{label:r.jsxs("svg",{width:"293",height:"85",viewBox:"0 0 293 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5245",maskUnits:"userSpaceOnUse",x:"5",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",x:"5",width:"288",height:"85"}),r.jsx("path",{d:"M6 6C6 3.23858 8.23858 1 11 1H287C289.761 1 292 3.23858 292 6V85H6V6Z"})]}),r.jsx("path",{d:"M5 6C5 2.68629 7.68629 0 11 0H287C290.314 0 293 2.68629 293 6H291C291 3.79086 289.209 2 287 2H11C8.79086 2 7 3.79086 7 6H5ZM292 85H6H292ZM5 85V6C5 2.68629 7.68629 0 11 0V2C8.79086 2 7 3.79086 7 6V85H5ZM287 0C290.314 0 293 2.68629 293 6V85H291V6C291 3.79086 289.209 2 287 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5245)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5245",maskUnits:"userSpaceOnUse",x:"5",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",x:"5",width:"288",height:"85"}),r.jsx("path",{d:"M6 4C6 2.34314 7.34315 1 9 1H289C290.657 1 292 2.34315 292 4V85H6V4Z"})]}),r.jsx("path",{d:"M5 4C5 1.79086 6.79086 0 9 0H289C291.209 0 293 1.79086 293 4H291C291 2.89543 290.105 2 289 2H9C7.89543 2 7 2.89543 7 4H5ZM292 85H6H292ZM5 85V4C5 1.79086 6.79086 0 9 0V2C7.89543 2 7 2.89543 7 4V85H5ZM289 0C291.209 0 293 1.79086 293 4V85H291V4C291 2.89543 290.105 2 289 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5245)"}),r.jsx("path",{d:"M6 4C6 2.34314 7.34315 1 9 1H289C290.657 1 292 2.34315 292 4V85H6V4Z",fill:"white"}),r.jsx("path",{d:"M6 4C6 2.34314 7.34315 1 9 1H289C290.657 1 292 2.34315 292 4V85H6V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"14",y:"10",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M140 15H123V16H140V15Z",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"128",y:"9.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"150",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"167",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"184",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"201",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"235",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"6.5",width:"68",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M273 13.2221L273.778 14L274 13.7779L273.222 13L274 12.2223L273.778 12.0002L273 12.7775L272.222 12L272 12.2221L272.778 13L272 13.7777L272.222 14L273 13.2223V13.2221Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M280.478 10C281.846 10 282.955 11.1092 282.955 12.4776C282.955 13.0501 282.761 13.5773 282.435 13.9968L284 15.562L283.562 16L281.997 14.4348C281.577 14.7609 281.05 14.9552 280.478 14.9552C279.109 14.9552 278 13.8459 278 12.4776C278 11.1092 279.109 10 280.478 10ZM280.478 10.6194C281.504 10.6194 282.336 11.4513 282.336 12.4776C282.336 13.5038 281.504 14.3358 280.478 14.3358C279.451 14.3358 278.619 13.5038 278.619 12.4776C278.619 11.4513 279.451 10.6194 280.478 10.6194Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"218",y:"21",width:"68",height:"59",rx:"2",fill:"white"}),r.jsx("rect",{x:"224",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 261.902 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276.001 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"224",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 261.902 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276.001 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"224",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 261.902 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276.001 69.5)",fill:"#F0F0F1"}),r.jsx("path",{d:"M277 22.8438C277 22.2915 277.448 21.8438 278 21.8438H285V29.8438H278C277.448 29.8438 277 29.396 277 28.8438V22.8438Z",fill:"white"}),r.jsx("path",{d:"M281 26.2879L282.555 27.8438L283 27.3996L281.445 25.8437L283 24.2883L282.556 23.8442L281 25.3987L279.445 23.8438L279 24.2879L280.555 25.8437L279 27.3992L279.444 27.8438L281 26.2879Z",fill:"#A1ABB7"})]}),value:"type_4",title:"Panel dropdown - list view"},{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5246)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5246)"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"8",y:"10",width:"25",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"46",y:"10",width:"14",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"7",width:"143",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M200 13.2221L200.778 14L201 13.7779L200.222 13L201 12.2223L200.778 12.0002L200 12.7775L199.222 12L199 12.2221L199.778 13L199 13.7777L199.222 14L200 13.2223V13.2221Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M207.478 10C208.846 10 209.955 11.1092 209.955 12.4776C209.955 13.0501 209.761 13.5773 209.435 13.9968L211 15.562L210.562 16L208.997 14.4348C208.577 14.7609 208.05 14.9552 207.478 14.9552C206.109 14.9552 205 13.8459 205 12.4776C205 11.1092 206.109 10 207.478 10ZM207.478 10.6194C208.504 10.6194 209.336 11.4513 209.336 12.4776C209.336 13.5038 208.504 14.3358 207.478 14.3358C206.451 14.3358 205.619 13.5038 205.619 12.4776C205.619 11.4513 206.451 10.6194 207.478 10.6194Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"226",y:"10",width:"55",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"21",width:"143",height:"59",rx:"2",fill:"white"}),r.jsx("rect",{x:"79",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 69.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 69.5)",fill:"#F0F0F1"}),r.jsx("path",{d:"M204 22.8438C204 22.2915 204.448 21.8438 205 21.8438H212V29.8438H205C204.448 29.8438 204 29.396 204 28.8438V22.8438Z",fill:"white"}),r.jsx("path",{opacity:"0.7",d:"M208 26.2879L209.555 27.8438L210 27.3996L208.445 25.8437L210 24.2883L209.556 23.8442L208 25.3987L206.445 23.8438L206 24.2879L207.555 25.8437L206 27.3992L206.444 27.8438L208 26.2879Z",fill:"#A1ABB7"})]}),value:"type_5",title:"Panel dropdown - grid view"},{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5246)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5246)"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"8",y:"10",width:"25",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"46",y:"10",width:"14",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"7",width:"143",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M200 13.2221L200.778 14L201 13.7779L200.222 13L201 12.2223L200.778 12.0002L200 12.7775L199.222 12L199 12.2221L199.778 13L199 13.7777L199.222 14L200 13.2223V13.2221Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M207.478 10C208.846 10 209.955 11.1092 209.955 12.4776C209.955 13.0501 209.761 13.5773 209.435 13.9968L211 15.562L210.562 16L208.997 14.4348C208.577 14.7609 208.05 14.9552 207.478 14.9552C206.109 14.9552 205 13.8459 205 12.4776C205 11.1092 206.109 10 207.478 10ZM207.478 10.6194C208.504 10.6194 209.336 11.4513 209.336 12.4776C209.336 13.5038 208.504 14.3358 207.478 14.3358C206.451 14.3358 205.619 13.5038 205.619 12.4776C205.619 11.4513 206.451 10.6194 207.478 10.6194Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"226",y:"10",width:"55",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"21",width:"143",height:"59",rx:"2",fill:"white"}),r.jsx("rect",{x:"79",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 69.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 69.5)",fill:"#F0F0F1"}),r.jsx("path",{d:"M204 22.8438C204 22.2915 204.448 21.8438 205 21.8438H212V29.8438H205C204.448 29.8438 204 29.396 204 28.8438V22.8438Z",fill:"white"}),r.jsx("path",{opacity:"0.7",d:"M208 26.2879L209.555 27.8438L210 27.3996L208.445 25.8437L210 24.2883L209.556 23.8442L208 25.3987L206.445 23.8438L206 24.2879L207.555 25.8437L206 27.3992L206.444 27.8438L208 26.2879Z",fill:"#A1ABB7"})]}),value:"type_6",title:"Top dropdown"}];function OS(e){return r.jsx(Mn,{...e,options:(e.options??[]).map(t=>RS.find(n=>n.value===t.value)),className:"live-result-type-group [&_.brandy-radio-item]:pb-0",itemCss:[ue(["&.selected{border:1px solid #000;}"])]})}const NS=window.React.useMemo,PS=window.React.useState;function VS(e){const[t,n]=PS(""),i=l=>{n(l.toString())},o=NS(()=>e.value,[e.value]),a=l=>{l.preventDefault(),l.stopPropagation(),l.key==="Enter"&&(o.includes(t)||(e.onChange([...o,t]),n("")))},s=l=>{o.includes(l)&&e.onChange(o.filter(c=>c!==l))};return r.jsxs("div",{children:[r.jsx(ot,{placeholder:"Typing suggestion then enter",onChange:i,value:t,onKeyUp:a,type:"text"}),r.jsx(BS,{tags:o,onRemove:s})]})}function BS({tags:e,onRemove:t}){return r.jsx(FS,{children:e.map(n=>r.jsxs(zS,{children:[n,r.jsx("span",{onClick:()=>{t(n)},children:r.jsxs(ZS,{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("g",{clipPath:"url(#clip0_3840_66678)",children:r.jsx("path",{d:"M11.7465 11.0349C11.9074 11.1958 11.9979 11.4141 11.9979 11.6417C11.9979 11.8694 11.9074 12.0877 11.7465 12.2486C11.5855 12.4096 11.3672 12.5 11.1396 12.5C10.912 12.5 10.6937 12.4096 10.5327 12.2486L5.99964 7.71412L1.46515 12.2472C1.30419 12.4081 1.08589 12.4986 0.858264 12.4986C0.630638 12.4986 0.412335 12.4081 0.25138 12.2472C0.0904241 12.0862 2.39843e-09 11.8679 0 11.6403C-2.39843e-09 11.4127 0.0904241 11.1944 0.25138 11.0334L4.78587 6.50036L0.252807 1.96586C0.0918518 1.80491 0.00142799 1.5866 0.001428 1.35898C0.001428 1.13135 0.0918518 0.913049 0.252807 0.752094C0.413763 0.591138 0.632066 0.500714 0.859692 0.500714C1.08732 0.500714 1.30562 0.591138 1.46658 0.752094L5.99964 5.28659L10.5341 0.751379C10.6951 0.590424 10.9134 0.5 11.141 0.5C11.3686 0.5 11.5869 0.590424 11.7479 0.751379C11.9089 0.912335 11.9993 1.13064 11.9993 1.35826C11.9993 1.58589 11.9089 1.80419 11.7479 1.96515L7.21341 6.50036L11.7465 11.0349Z",fill:window.brandyCustomizerData.colors.icon.normal})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3840_66678",children:r.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 0.5)"})})})]})})]},n))})}var FS=v("div")({marginTop:"0.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"}),zS=v("span")({display:"flex",alignItems:"center",gap:"0.5rem",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.5rem"}),ZS=v("svg").withConfig({displayName:"Suggestions___StyledSvg",componentId:"sc-vw3nn3-0"})({height:"8px",width:"8px",cursor:"pointer"});const WS=window.React.forwardRef,V1=window.React.useContext,pf=window.React.useEffect,Ga=window.React.useMemo,GS=window.React.useRef,jo=window.React.useState,US=e=>{const{builder:t}=V1(Je),n=te(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=te(t)(h=>h.changeElementSettings),o=te(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.id}),[a,s]=jo(!1),l=()=>{i(h=>{h.items=n.items.filter(f=>f.id!==e.item.id)}),He().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,g)=>{if(f.id===e.item.id){const p=De(xt(o??"",t)+` .brandy-social-item[data-social-id="${f.id}"] .brandy-social-item__label`);p&&window.jQuery(p).html(h),i(m=>{m.items[g].label=h.toString()})}})},u=h=>{n.items.forEach((f,g)=>{if(f.id===e.item.id){const p=De(xt(o??"",t)+` .brandy-social-item[data-social-id="${f.id}"]`);p&&window.jQuery(p).attr("href",h),i(m=>{m.items[g].url=h.toString()})}})};return r.jsxs(KS,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(qS,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},a&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(QS,{children:[r.jsx(ej,{className:"brandy-social-drag-handle",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ke([!a&&"group-hover:[&_*]:fill-brandy-text",a&&`[&_*]:fill-[${window.brandyCustomizerData.colors.icon.normal}]`]),children:[r.jsxs("g",{clipPath:"url(#clip0_2536_66911)",children:[r.jsx("circle",{cx:"1",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_2536_66911",children:r.jsx("rect",{width:"7",height:"12",fill:"white"})})})]})}),r.jsx("span",{className:ke(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(tj,{$_css4:[{visibility:"hidden",display:"flex",alignItems:"center",gap:"0.25rem",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{".group:hover &":{visibility:"visible !important",opacity:"1 !important"}},a&&{visibility:"visible !important",opacity:"1 !important"}],children:[r.jsx(nj,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(rj,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsxs(ij,{children:[r.jsxs(oj,{children:[r.jsx("div",{children:"Label"}),r.jsx(ot,{value:e.item.label,onChange:d})]}),r.jsxs(aj,{children:[r.jsx("div",{children:"Link"}),r.jsx(sj,{value:e.item.url,onChange:u,prefix:r.jsx(lj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:(ds[e.item.icon]&&ds[e.item.icon][n.icon_color_type])??""},$_css8:[ue(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[ue(["padding:0 !important;overflow:hidden;"])]})]})]})]})},YS=window.brandyCustomizerData.all_socials,ds=window.brandyCustomizerData.icons.socials;function XS(e){const{builder:t}=V1(Je),n=Ga(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=jo(null),[a,s]=jo(null),{styles:l,attributes:c}=In(i,a),[d,u]=jo(!1),h=()=>{u(m=>!m)},f=()=>{u(!1)};pf(()=>{const m=w=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(w.target))&&!(a!=null&&a.contains(w.target))&&f()};return window.jQuery(document).on("click","body",m),()=>{window.jQuery(document).off("click","body",m)}},[i,a]);const g=te(t)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),p=m=>{JSON.stringify(n)!==JSON.stringify(m)&&(e.onChange(m),He().refreshPartial(`${t}_${g}`))};return r.jsxs(cj,{children:[r.jsxs(dj,{children:[r.jsx(ct,{className:"m-0",children:"List socials"}),r.jsx(uj,{className:"group",ref:o,onClick:h,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(hj,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(zr.ReactSortable,{list:n,setList:p,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-social-drag-handle",children:n.map(m=>r.jsx("div",{children:r.jsx(US,{item:m})},m.id))}),d&&r.jsx(JS,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const JS=WS(({style:e,onClose:t,...n},i)=>{const{builder:o}=V1(Je),a=te(o)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.settings}),s=te(o)(m=>m.changeElementSettings),[l,c]=jo(""),d=Ga(()=>YS.filter(m=>!a.items.map(w=>w.id).includes(m.id)),[a.items]),u=Ga(()=>d.filter(m=>m.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=Ga(()=>a.icon_color_type,[a.icon_color_type]),f=te(o)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),g=m=>()=>{s(w=>{w.items.push(m)}),He().refreshPartial(`${o}_${f}`),t()},p=GS(null);return pf(()=>{var m,w;return(w=(m=p.current)==null?void 0:m.querySelector("input"))==null?void 0:w.focus()},[p.current]),r.jsxs(fj,{style:e,ref:i,...n,$_css9:[{zIndex:"10",marginTop:"0.5rem",marginBottom:"0.5rem",width:"320px",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{"--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsxs(pj,{children:[r.jsx(gj,{children:"Add social icon"}),r.jsx(mj,{onClick:()=>{t()},children:r.jsx(Rs,{})})]}),r.jsx(vj,{children:r.jsx(Zr,{ref:p,searchText:l,onSearch:m=>{c(m.toString())},placeholder:N("Search socials")})}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(wj,{children:[u.map(m=>r.jsx(xj,{onClick:g(m),$_css0:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"1rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},h==="custom"&&ue(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:(ds[m.icon]&&ds[m.icon][h])??""}})},m.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var KS=v("div")`${e=>e.$_css2}`,qS=v("div")`${e=>e.$_css3}`,QS=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),ej=v("span")({cursor:"grab",padding:"0.5rem"}),tj=v("div")`${e=>e.$_css4}`,nj=v("span")`${e=>e.$_css5}`,rj=v("span")`${e=>e.$_css6}`,ij=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),oj=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),aj=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),sj=v(ot)`${e=>e.$_css7}`,lj=v("span")`${e=>e.$_css8}`,cj=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),dj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),uj=v("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#D1EAFFB2"}}),hj=v("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),fj=v("div")`${e=>e.$_css9}`,pj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),gj=v("span")({fontSize:"16px",fontWeight:"500"}),mj=v("span")({cursor:"pointer",padding:"0.25rem"}),vj=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),wj=v("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),xj=v("div").withConfig({displayName:"ListSocials___StyledDiv13",componentId:"sc-hody2l-0"})(["",""],e=>e.$_css0);const bj=window.React.forwardRef,B1=window.React.useContext,gf=window.React.useEffect,Ua=window.React.useMemo,yj=window.React.useRef,ko=window.React.useState,Cj=e=>{const{builder:t}=B1(Je),n=te(t)(u=>{var h;return(h=u.chosenElement)==null?void 0:h.settings}),i=te(t)(u=>u.changeElementSettings),o=te(t)(u=>{var h;return(h=u.chosenElement)==null?void 0:h.id}),[a,s]=ko(!1),l=()=>{i(u=>{u.items=n.items.filter(h=>h.id!==e.item.id)}),He().refreshPartial(`${t}_${o}`)},c=()=>{s(u=>!u)},d=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const g=De(xt(o??"",t)+` .brandy-payment-item[data-payment-id="${h.id}"]`);g&&window.jQuery(g).attr("href",Es(u)),i(p=>{p.items[f].url=u.toString()})}})};return r.jsxs(kj,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(Ej,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},a&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(Dj,{children:[r.jsx($j,{className:"brandy-payment-drag-handle",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ke([!a&&"group-hover:[&_*]:fill-brandy-text",a&&`[&_*]:fill-[${window.brandyCustomizerData.colors.icon.normal}]`]),children:[r.jsxs("g",{clipPath:"url(#clip0_2536_66911)",children:[r.jsx("circle",{cx:"1",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_2536_66911",children:r.jsx("rect",{width:"7",height:"12",fill:"white"})})})]})}),r.jsx("span",{className:ke(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Hj,{$_css4:[{visibility:"hidden",display:"flex",alignItems:"center",gap:"0.25rem",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{".group:hover &":{visibility:"visible !important",opacity:"1 !important"}},a&&{visibility:"visible !important",opacity:"1 !important"}],children:[r.jsx(Mj,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(Ij,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsx(Tj,{children:r.jsxs(Lj,{children:[r.jsx("div",{children:"Link"}),r.jsx(Aj,{value:e.item.url,onChange:d,prefix:r.jsx(Rj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:mf[e.item.icon]??""},$_css8:[ue(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;"])]}),$_css7:[ue(["padding:0 !important;overflow:hidden;"])]})]})})]})},_j=window.brandyCustomizerData.all_payments,mf=window.brandyCustomizerData.icons.payments;function Sj(e){const{builder:t}=B1(Je),n=Ua(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=ko(null),[a,s]=ko(null),{styles:l,attributes:c}=In(i,a),[d,u]=ko(!1),h=()=>{u(m=>!m)},f=()=>{u(!1)};gf(()=>{const m=w=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(w.target))&&!(a!=null&&a.contains(w.target))&&f()};return window.jQuery(document).on("click","body",m),()=>{window.jQuery(document).off("click","body",m)}},[i,a]);const g=te(t)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),p=m=>{JSON.stringify(n)!==JSON.stringify(m)&&(e.onChange(m),He().refreshPartial(`${t}_${g}`))};return r.jsxs(Oj,{children:[r.jsxs(Nj,{children:[r.jsx(ct,{className:"m-0",children:"List payments"}),r.jsx(Pj,{className:"group",ref:o,onClick:h,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(Vj,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(zr.ReactSortable,{list:n,setList:p,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-payment-drag-handle",children:n.map(m=>r.jsx("div",{children:r.jsx(Cj,{item:m})},m.id))}),d&&r.jsx(jj,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const jj=bj(({style:e,onClose:t,...n},i)=>{const{builder:o}=B1(Je),a=te(o)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.settings}),s=te(o)(m=>m.changeElementSettings),[l,c]=ko(""),d=Ua(()=>_j.filter(m=>!a.items.map(w=>w.id).includes(m.id)),[a.items]),u=Ua(()=>d.filter(m=>m.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=Ua(()=>a.icon_color_type,[a.icon_color_type]),f=te(o)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),g=m=>()=>{s(w=>{w.items.push(m)}),He().refreshPartial(`${o}_${f}`),t()},p=yj(null);return gf(()=>{var m,w;return(w=(m=p.current)==null?void 0:m.querySelector("input"))==null?void 0:w.focus()},[p.current]),r.jsxs(Bj,{style:e,ref:i,...n,$_css9:[{zIndex:"10",marginTop:"0.5rem",marginBottom:"0.5rem",width:"320px",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{"--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsxs(Fj,{children:[r.jsx(zj,{children:"Add payment icon"}),r.jsx(Zj,{onClick:()=>{t()},children:r.jsx(Rs,{})})]}),r.jsx(Wj,{children:r.jsx(Zr,{ref:p,searchText:l,onSearch:m=>{c(m.toString())},placeholder:N("Search payment")})}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Gj,{children:[u.map(m=>r.jsx(Uj,{onClick:g(m),$_css0:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},h==="custom"&&ue(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon [&_svg]:w-[50px] [&_svg]:h-[40px] ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:mf[m.icon]??""}})},m.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No payment found"})]})})]})});var kj=v("div")`${e=>e.$_css2}`,Ej=v("div")`${e=>e.$_css3}`,Dj=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),$j=v("span")({cursor:"grab",padding:"0.5rem"}),Hj=v("div")`${e=>e.$_css4}`,Mj=v("span")`${e=>e.$_css5}`,Ij=v("span")`${e=>e.$_css6}`,Tj=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Lj=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Aj=v(ot)`${e=>e.$_css7}`,Rj=v("span")`${e=>e.$_css8}`,Oj=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Nj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Pj=v("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#D1EAFFB2"}}),Vj=v("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),Bj=v("div")`${e=>e.$_css9}`,Fj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),zj=v("span")({fontSize:"16px",fontWeight:"500"}),Zj=v("span")({cursor:"pointer",padding:"0.25rem"}),Wj=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),Gj=v("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),Uj=v("div").withConfig({displayName:"ListPayments___StyledDiv12",componentId:"sc-wzxanx-0"})(["",""],e=>e.$_css0);const Yj=window.React.useContext,Xj=window.React.useMemo,Jj=window.brandyCustomizerData.icons.wishlist;function Kj(e){const{builder:t}=Yj(Yt),n=te(t)(o=>{var a,s;return((s=(a=o.chosenElement)==null?void 0:a.settings)==null?void 0:s.icon_style)??"outline"}),i=Xj(()=>Object.entries(Jj[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:ke(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(Mn,{...e,options:i,itemCss:n==="outline"?[ue(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]:[ue(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]})}const qj=window.React.useContext,Qj=window.React.useMemo;function ek(e){const{builder:t}=qj(Yt),n=Qj(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=te(t)(a=>{var s,l,c;return((c=(l=(s=a.chosenElement)==null?void 0:s.settings)==null?void 0:l[n])==null?void 0:c.custom_link)??""}),o=a=>{const s=De(xt(e.sectionId,t)+" .brandy-account");s&&(a==="custom"?window.jQuery(s).attr("href",i):window.jQuery(s).attr("href",`#${a}`)),e.onChange(a)};return r.jsx(j1,{...e,onChange:o})}const tk=window.React.useContext,eu={small:{button_design_text:{typography:{font_size:{desktop:{unit:"px",value:"12",min:1,max:30},tablet:null,mobile:null}}},button_design_padding:{unit:"px",top:7,bottom:7,left:16,right:16,is_constraints:!1}},medium:{button_design_text:{typography:{font_size:{desktop:{unit:"px",value:14,min:1,max:30},tablet:null,mobile:null}}},button_design_padding:{unit:"px",top:10,bottom:10,left:16,right:16,is_constraints:!1}},large:{button_design_text:{typography:{font_size:{desktop:{unit:"px",value:"18",min:1,max:30},tablet:null,mobile:null}}},button_design_padding:{unit:"px",top:12,bottom:12,left:16,right:16,is_constraints:!1}}};function nk(e){const{builder:t}=tk(Je),{current:n}=_e(),i=te(t)(a=>a.changeElementSettings),o=a=>{i(s=>{Ct(s,["button_design_text","typography","font_size"],eu[a].button_design_text.typography.font_size),Ct(s,["button_design_padding"],eu[a].button_design_padding),Hn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(cr,{...e,onChange:o})}const rk=window.React.useContext;function ik(e){const{builder:t}=rk(Je),{current:n}=_e(),i=te(t)(a=>a.changeElementSettings),o=a=>{const s=De(xt(e.sectionId,t)+" .brandy-element-wrapper"),l=De(xt(e.sectionId,t)+" .brandy-button");if(!s||!l)return;let c,d;c=parseInt(window.jQuery(l).css("border-width"));const u=e.settings.inherit_theme??!0,h=a==="outline";if(u){const f="wp-block-button",g="is-style-outline is-style-outline--1",p="wp-element-button wp-block-button__link";h?(window.jQuery(s).addClass(f),window.jQuery(s).addClass(g),window.jQuery(l).addClass(p)):(window.jQuery(s).removeClass(g),window.jQuery(s).addClass(f),window.jQuery(l).removeClass(p),window.jQuery(l).addClass("wp-element-button"))}e.onChange(a),setTimeout(()=>{i(f=>{h?(f.button_design.border.color={normal:{desktop:"var(--wp--preset--color--brandy-primary-text)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null}},f.button_design_text.color={normal:{desktop:"var(--wp--preset--color--brandy-primary-text)",tablet:null,mobile:null},hover:{desktop:"#ffffff",tablet:null,mobile:null}},f.button_design.background_color={normal:{desktop:"#ffffff",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null}},f.button_design.border.width.desktop={unit:"px",min:0,max:20,value:2},f.button_design.border.width.tablet=null,f.button_design.border.width.mobile=null):(f.button_design.border.color={normal:{desktop:"",tablet:null,mobile:null},hover:{desktop:"",tablet:null,mobile:null}},f.button_design_text.color={normal:{desktop:"#ffffff",tablet:null,mobile:null},hover:{desktop:"#ffffff",tablet:null,mobile:null}},f.button_design.background_color={normal:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary-text)",tablet:null,mobile:null}},f.button_design.border.width.desktop.value=0,f.button_design.border.width.desktop.unit="px",f.button_design.border.width.tablet=null,f.button_design.border.width.mobile=null),u?d=parseInt(window.jQuery(l).css("border-width")):(c=h?0:2,d=h?2:0);const g=d-c;f.button_design_padding.top=Math.max(0,f.button_design_padding.top-g),f.button_design_padding.bottom=Math.max(0,f.button_design_padding.bottom-g),f.button_design_padding.left=Math.max(0,f.button_design_padding.left-g),f.button_design_padding.right=Math.max(0,f.button_design_padding.right-g),Hn({sectionId:e.sectionId,settings:f,device:n,clonedFromId:e.cloned_from})})},u?400:0)};return r.jsx(cr,{...e,onChange:o})}const Ql=window.React.useMemo,ok=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"15",width:"48",height:"36",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"15",width:"48",height:"36",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_15432)"})]}),value:"6,6"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"24",height:"36",transform:"matrix(-1 0 0 1 110 15)",fill:"#A1ABB7"}),r.jsx("rect",{width:"72",height:"36",transform:"matrix(-1 0 0 1 83 15)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_75917)"})]}),value:"9,3"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"15",width:"24",height:"36",fill:"#A1ABB7"}),r.jsx("rect",{x:"38",y:"15",width:"72",height:"36",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_75957)"})]}),value:"3,9"}],ak=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"31",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"31",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"31",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137253)"})]}),value:"4,4,4"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"63",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"95",y:"11",width:"15",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137262)"})]}),value:"8,2,2"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"63",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 44 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137269)"})]}),value:"2,2,8"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"63",height:"44",transform:"matrix(-1 0 0 1 92 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137276)"})]}),value:"2,8,2"}],sk=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"36.5",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"87.5",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137283)"})]}),value:"3,3,3,3"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"45",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 62 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 44 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137304)"})]}),value:"2,2,2,6"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"45",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"59",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"95",y:"11",width:"15",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137295)"})]}),value:"6,2,2,2"}],lk=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"31.4004",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"51.7998",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"72.2002",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"92.5996",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137313)"})]}),value:"2.4,2.4,2.4,2.4,2.4"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.5 11H79V55H94.5H110V11H94.5Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151083)"})]}),value:"2,2,2,2,4"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.5 11H45V55H60.5H76V11H60.5Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151113)"})]}),value:"2,2,4,2,2"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 11H11V55H26.5H42V11H26.5Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151132)"})]}),value:"4,2,2,2,2"}],ck=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137327)"})]}),value:"layout_1"}];function dk(e){var s;const{current:t}=_e(),n=Ql(()=>{var l,c;return((l=e.settings)==null?void 0:l.number_column[t])??((c=e.settings)==null?void 0:c.number_column.desktop)},[(s=e.settings)==null?void 0:s.number_column[t],t]),i=Ql(()=>n===3?ak:n===4?sk:n===5?lk:n===6?ck:ok,[n]);if(n===1)return!1;const o=Ql(()=>{const l=ye(e.settings,["column_span",t])??{};let c=[];for(let d=1;d<=n;d++)c.push(l[`column_${d}`]??"");return c.join(",")},[e.settings,n]),a=l=>{const c=JSON.parse(JSON.stringify(ye(e.settings,["column_span"])??{desktop:{column_1:1,column_2:1,column_3:1,column_4:1,column_5:1,column_6:1},tablet:null,mobile:null}));(l.split(",")??[]).forEach((u,h)=>{c[t]==null&&(c[t]={}),c[t][`column_${h+1}`]=u}),e.onChange(c,["column_span"]),Hn({sectionId:e.sectionId,device:t,settings:{column_span:c},builder:"footer"})};return r.jsx(Mn,{...e,options:i,className:"column-layout-group [&>div:first-child]:mb-2 [&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-2",itemCss:[ue(["&.selected{border:1px solid #000;}"])],onChange:a,value:o})}function uk(e){const{current:t}=_e(),n=Ze(t),i=o=>{let a=o;const s=Me.getState().chosenRow;if(!s)return;const c={...Me.getState().previewTemplate.row_configurations[s].number_column,[t]:o};Object.keys(c).forEach(f=>{c[f]==null&&(f==="desktop"&&(c[f]=1),f==="tablet"&&(c[f]=c.desktop),f==="mobile"&&(c[f]=c.tablet))}),t==="mobile"&&(c.tablet=c.mobile),t==="tablet"&&(c.mobile=c.tablet),e.onChange(c),a=c[t];const d=JSON.parse(JSON.stringify(ye(e.settings,["column_span"])??{desktop:{column_1:1,column_2:1,column_3:1,column_4:1,column_5:1,column_6:1},tablet:null,mobile:null})),u=12/a;Array(a).fill(u).forEach((f,g)=>{d[n]==null&&(d[n]={}),d[n][`column_${g+1}`]=f}),e.onChange(d,["column_span"]),Hn({sectionId:e.sectionId,device:n,settings:{column_span:d},builder:"footer"}),Me.setState(f=>{const g=f.chosenRow;if(g==null)return;const p=f.previewTemplate.placements[n][g],m=p.length;if(m$>a-1?[...S,...y]:S,[]).length<1){f.previewTemplate.placements[n][g]=p.slice(0,a);return}const E=p.reduce((S,y)=>[...S,...y],[]),k=[];for(let S=0;Se.value,[e.value]),i=te(t)(a=>a.changeElementSettings),o=a=>{a==="type_1"&&i(s=>{s.input_box.border_radius.desktop.value=0,s.input_box.border_radius.desktop.unit="px",s.input_box.border_radius.tablet=null,s.input_box.border_radius.mobile=null,s.button.border_radius.desktop.value=0,s.button.border_radius.desktop.unit="px",s.button.border_radius.tablet=null,s.button.border_radius.mobile=null}),["type_2","type_3"].includes(a)&&i(s=>{s.input_box.border_radius.desktop.value=12,s.input_box.border_radius.desktop.unit="px",s.input_box.border_radius.tablet=null,s.input_box.border_radius.mobile=null,s.button.border_radius.desktop.value=12,s.button.border_radius.desktop.unit="px",s.button.border_radius.tablet=null,s.button.border_radius.mobile=null}),e.onChange(a)};return r.jsx(Mn,{...e,onChange:a=>o(a),value:n,options:mk,className:"theme-layout-type-group [&_.brandy-radio-group]:grid [&_.brandy-radio-group]:grid-cols-2",itemCss:[ue(["&.selected{border:1px solid #000;}"])]})}const wk=window.React.useMemo;function xk(e){const{current:t}=_e(),n=Ie(o=>o.previewTemplate.placements[Ze(t)].toggle),i=wk(()=>[{value:"none",label:"None"},...n.filter((o,a)=>a===0?!1:window.brandyCustomizerData.defaults.header.elements[o]).map((o,a)=>({value:(a+2).toString(),label:window.brandyCustomizerData.defaults.header.elements[o].title,title:window.brandyCustomizerData.defaults.header.elements[o].title}))],[n]);return r.jsx(j1,{...e,options:i})}const bk=window.React.useState;function yk(e){const[t,n]=bk(window.wp.customize("blogname")),i=o=>{n(o),window.wp.customize("blogname")(o),e.onChange(o)};return r.jsx(S1,{...e,value:t,onChange:i})}const Ck=window.React.useState;function _k(e){const[t,n]=Ck(window.wp.customize("blogdescription")),i=o=>{n(o),window.wp.customize("blogdescription")(o),e.onChange(o)};return r.jsx(S1,{...e,value:t,onChange:i})}const ec=window.React.useMemo;function Sk(e){const{current:t}=_e(),n=ec(()=>Ze(t),[t]),i=ec(()=>[...e.value_path,n],[n,e.value_path]),o=s=>{const l=De(`#brandy-footer > div[device="${n}"] [data-section-id="${e.sectionId}"] .footer-container`);l!=null&&window.jQuery(l).attr("item-layout",s?"stretch":"normal"),e.onChange(s,i)},a=ec(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx($h,{...e,value:a,onChange:o})}const wn=window.React.useMemo,jk=window.React.useState,on={unit:"px",value:12};function kk(e){const{current:t}=_e(),[n,i]=jk("column_1"),o=wn(()=>["column_items_direction"],[]),a=wn(()=>["column_horizontal_alignment"],[]),s=wn(()=>["column_vertical_alignment"],[]),l=wn(()=>["column_item_vertical_spacing"],[]),c=wn(()=>["column_item_horizontal_spacing"],[]),d=wn(()=>{const y=ye(e.settings,o);return y[t]==null||y[t][n]==null?y.desktop[n]:y[t][n]},[e.settings,o,t,n]),u=wn(()=>{const y=ye(e.settings,a);return y[t]==null||y[t][n]==null?y.desktop[n]:y[t][n]},[e.settings,a,t,n]),h=wn(()=>{const y=ye(e.settings,s);return y[t]==null||y[t][n]==null?y.desktop[n]:y[t][n]},[e.settings,s,t,n]),f=wn(()=>{const y=ye(e.settings,l)??{desktop:{column_1:on,column_2:on,column_3:on,column_4:on,column_5:on,column_6:on}};return y[t]==null||y[t][n]==null?y.desktop[n]:y[t][n]},[e.settings,l,t,n]),g=wn(()=>{const y=ye(e.settings,c)??{desktop:{column_1:on,column_2:on,column_3:on,column_4:on,column_5:on,column_6:on}};return y[t]==null||y[t][n]==null?y.desktop[n]:y[t][n]},[e.settings,c,t,n]),p=y=>{const $=parseInt(n.replace("column_","")),x=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${$})`);x!=null&&window.jQuery(x).attr(`data-items-direction-${t}`,y);const C=JSON.parse(JSON.stringify(ye(e.settings,[...o,t])??{}));C[n]=y,e.onChange(C,[...o,t],[...o,t])},m=y=>{const $=parseInt(n.replace("column_","")),x=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${$})`);x!=null&&window.jQuery(x).css(`--brandy-footer-column-horizontal-alignment-${t}`,y);const C=JSON.parse(JSON.stringify(ye(e.settings,[...a,t])??{}));C[n]=y,e.onChange(C,[...a,t],[...a,t])},w=y=>{const $=parseInt(n.replace("column_","")),x=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${$})`);x!=null&&window.jQuery(x).css(`--brandy-footer-column-vertical-alignment-${t}`,y);const C=JSON.parse(JSON.stringify(ye(e.settings,[...s,t])??{}));C[n]=y,e.onChange(C,[...s,t],[...s,t])},E=y=>{const $=parseInt(n.replace("column_","")),x=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${$})`);x!=null&&window.jQuery(x).css(`--brandy-footer-column-item-horizontal-spacing-${t}`,or(y));const C=JSON.parse(JSON.stringify(ye(e.settings,[...c,t])??{}));C[n]=y,e.onChange(C,[...c,t],[...c,t])},k=y=>{const $=parseInt(n.replace("column_","")),x=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${$})`);x!=null&&window.jQuery(x).css(`--brandy-footer-column-item-vertical-spacing-${t}`,or(y));const C=JSON.parse(JSON.stringify(ye(e.settings,[...l,t])??{}));C[n]=y,e.onChange(C,[...l,t],[...l,t])},S=wn(()=>{const y=ye(e.settings,["number_column",t]);return Array.from({length:y}).map(($,x)=>({label:x+1,value:`column_${x+1}`}))},[e,t]);return r.jsxs("div",{children:[r.jsxs(Hk,{children:[r.jsxs(Mk,{children:[N("Customize column"),r.jsx(_1,{})]}),r.jsx(Ik,{children:N("Choose column to customize")}),r.jsx(At,{options:S,selected:n,onChange:i})]}),r.jsxs(Tk,{children:[r.jsx(Lk,{children:N("Item direction")}),r.jsx(At,{options:Ek,selected:d,onChange:p})]}),d==="vertical"&&r.jsxs(Ak,{children:[r.jsx(Rk,{children:N("Alignment")}),r.jsx(At,{options:Dk,selected:u,onChange:m,className:"grid grid-cols-4",itemCss:ue(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),d==="horizontal"&&r.jsxs(Ok,{children:[r.jsx(Nk,{children:N("Alignment")}),r.jsx(At,{options:$k,selected:h,onChange:w,className:"grid grid-cols-4",itemCss:ue(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),d==="horizontal"&&r.jsx(Pk,{children:r.jsx(Zt,{title:N("Item spacing"),value:g,min:0,max:300,onChange:E})}),d==="vertical"&&r.jsx(Vk,{children:r.jsx(Zt,{title:N("Item spacing"),value:f,min:0,max:300,onChange:k})})]})}const Ek=[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],Dk=[{label:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4 19.7992H12.9V18.2992H4V19.7992ZM12.9 4.19922H4V5.69922H12.9V4.19922ZM4 11.1992V12.6992H20V11.1992H4Z",fill:"#A1ABB7"})}),value:"flex-start"},{label:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.4 4.19922H7.6V5.69922H16.5V4.19922H16.4ZM4 11.1992V12.6992H20V11.1992H4ZM7.6 19.7992H16.5V18.2992H7.6V19.7992Z",fill:"#A1ABB7"})}),value:"center"},{label:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M20 3.99961L11.1 3.99961V5.49961L20 5.49961L20 3.99961ZM11.1 19.5996H20V18.0996H11.1V19.5996ZM20 12.5996V11.0996L4 11.0996L4 12.5996L20 12.5996Z",fill:"#A1ABB7"})}),value:"flex-end"},{label:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 9.5H18V8H0V9.5ZM0 16.5H18V15H0V16.5ZM0 1V2.5H18V1H0Z",fill:"#A1ABB7"})}),value:"space-between"}],$k=[{label:r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"5.83325",y:"15.5",width:"10",height:"5",transform:"rotate(-90 5.83325 15.5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3333 1.5L0.333252 1.5L0.333252 0L16.3333 1.39876e-06L16.3333 1.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),value:"flex-start"},{label:r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:window.brandyCustomizerData.colors.icon.normal})}),value:"center"},{label:r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"10",height:"5",transform:"matrix(-4.37114e-08 1 1 4.37114e-08 5.6665 2.18557e-08)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6665 14.5L0.666504 14.5L0.666504 16L16.6665 16L16.6665 14.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),value:"flex-end"},{label:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 9.5H18V8H0V9.5ZM0 16.5H18V15H0V16.5ZM0 1V2.5H18V1H0Z",fill:"#A1ABB7"})}),value:"space-between"}];var Hk=v("div")({marginBottom:"1rem"}),Mk=v("div")({marginBottom:"0.5rem",fontWeight:"700",textTransform:"capitalize"}),Ik=v("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Tk=v("div")({marginBottom:"1rem"}),Lk=v("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Ak=v("div")({marginBottom:"1rem"}),Rk=v("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Ok=v("div")({marginBottom:"1rem"}),Nk=v("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Pk=v("div")({marginBottom:"1rem"}),Vk=v("div").withConfig({displayName:"ColumnContentLayout___StyledDiv1",componentId:"sc-1864esf-0"})({marginBottom:"1rem"});const vf=window.React.useContext,Bk=window.React.useMemo,Fk=window.React.useState,zk=e=>{const{builder:t}=vf(Je),n=te(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=te(t)(h=>h.changeElementSettings),o=te(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.id}),[a,s]=Fk(!1),l=()=>{i(h=>{h.items=n.items.filter((f,g)=>g!==e.position)}),He().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,g)=>{if(e.position===g){const p=De(xt(o??"",t)+` .brandy-list-link-item:nth-child(${g+1})`);p&&window.jQuery(p).html(h),i(m=>{m.items[g].label=h.toString()})}})},u=h=>{n.items.forEach((f,g)=>{if(g===e.position){const p=De(xt(o??"",t)+` .brandy-list-link-item:nth-child(${g+1})`);p&&window.jQuery(p).attr("href",Es(h)),i(m=>{m.items[g].url=h.toString()})}})};return r.jsxs(Wk,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(Gk,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},a&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(Uk,{children:[r.jsx(Yk,{className:"brandy-link-drag-handle",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ke([!a&&"group-hover:[&_*]:fill-brandy-text",a&&`[&_*]:fill-[${window.brandyCustomizerData.colors.icon.normal}]`]),children:[r.jsxs("g",{clipPath:"url(#clip0_2536_66911)",children:[r.jsx("circle",{cx:"1",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"1",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"6",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"1",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("circle",{cx:"6",cy:"11",r:"1",fill:window.brandyCustomizerData.colors.icon.normal})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_2536_66911",children:r.jsx("rect",{width:"7",height:"12",fill:"white"})})})]})}),r.jsx("span",{className:ke(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Xk,{$_css4:[{visibility:"hidden",display:"flex",alignItems:"center",gap:"0.25rem",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{".group:hover &":{visibility:"visible !important",opacity:"1 !important"}},a&&{visibility:"visible !important",opacity:"1 !important"}],children:[r.jsx(Jk,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(Kk,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsxs(qk,{children:[r.jsxs(Qk,{children:[r.jsx("div",{children:"Label"}),r.jsx(ot,{value:e.item.label,onChange:d})]}),r.jsxs(eE,{children:[r.jsx("div",{children:"Link"}),r.jsx(ot,{value:e.item.url,onChange:u})]})]})]})};function Zk(e){const{builder:t}=vf(Je),n=Bk(()=>e.value??e.default_value,[e.value,e.default_value]),i=te(t)(s=>{var l;return(l=s.chosenElement)==null?void 0:l.id}),o=s=>{JSON.stringify(n)!==JSON.stringify(s)&&(e.onChange(s),He().refreshPartial(`${t}_${i}`))},a=()=>{const s=JSON.parse(JSON.stringify(n));s.push({label:"Custom link",url:"#"}),e.onChange(s),He().refreshPartial(`${t}_${i}`)};return r.jsxs(tE,{children:[r.jsxs(nE,{children:[r.jsx(ct,{className:"m-0",children:"List Link"}),r.jsx(rE,{className:"group",onClick:a,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(iE,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(zr.ReactSortable,{list:n,setList:o,className:"flex flex-col gap-4 w-full",animation:150,easing:"ease-in-out",handle:".brandy-link-drag-handle",children:n.map((s,l)=>r.jsx(zk,{item:s,position:l},l))})]})}var Wk=v("div")`${e=>e.$_css2}`,Gk=v("div")`${e=>e.$_css3}`,Uk=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Yk=v("span")({cursor:"grab",padding:"0.5rem"}),Xk=v("div")`${e=>e.$_css4}`,Jk=v("span")`${e=>e.$_css5}`,Kk=v("span")`${e=>e.$_css6}`,qk=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Qk=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),eE=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),tE=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),nE=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),rE=v("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#D1EAFFB2"}}),iE=v("path").withConfig({displayName:"ListLink___StyledPath",componentId:"sc-1tosjmf-0"})({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}});const oE=window.React.useCallback,aE=window.React.useContext,sE=window.React.useMemo;function lE(e){const{builder:t}=aE(Yt),n=te(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=te(t)(l=>l.previewTemplate),o=t==="header"?i.elements.logo_1.settings:i.elements.logo_2.settings,a=ye(o,e.reset_paths[0]),s=oE(()=>{n(l=>{if(l!=null)if(Ct(l,e.reset_paths[0],""),e.reset_paths[0].includes("logo_mobile")){const c=De(`${xt(e.sectionId,t)} .brandy-logo__img.logo-mobile`);c&&(window.jQuery(c).attr("src",l.logo.url?l.logo.url:window.brandyCustomizerData.others.site_icon),window.jQuery(c).attr("data-using-desktop-source","true"))}else{const c=De(`${xt(e.sectionId,t)} .brandy-logo__img.logo-desktop`),d=De(`${xt(e.sectionId,t)} .brandy-logo__img.logo-mobile[data-using-desktop-source="true"]`);c&&window.jQuery(c).attr("src",window.brandyCustomizerData.others.site_icon),d&&window.jQuery(d).attr("src",l.logo.url?l.logo.url:window.brandyCustomizerData.others.site_icon)}})},[n,e,t]);return sE(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(cE,{children:[r.jsx(at,{className:ke(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Sh,{onReset:s,hasChanged:a!=null&&a!=""})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[s,e.title])}var cE=v("div").withConfig({displayName:"ResetLogo___StyledDiv",componentId:"sc-1axmblk-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});function dE(e){return{ButtonGroup:cr,IconGroup:Mn,BoxShadow:C6,ColorGroup:V6,Dimension:Z6,Image:n9,Switcher:$h,Typography:X9,EnabledDevices:Q9,TextInput:S1,Spacing:sx,Alignment:ux,Position:px,Dropdown:j1,Reset:Us,MultipleChoice:wx,Background:Wx,FlexibleContent:qx,VerticalAlignment:Jx,HorizontalAlignment:n7,PrefilledHTML:d7,HTML:h7,Widget:rC,MultipleSelect:lC,NumberInput:nx,ResetLogo:lE,ListLanguages:o_,ListCurrencies:D_,CanvasTitle:P_,MenuSelection:IS,MenuActiveType:ES,ListSocials:XS,ListPayments:Sj,AccountLoggedInTitle:W_,AccountLoggedOutTitle:G_,AccountIconSelection:F_,AccountClickAction:ek,ButtonIconSelection:X_,ButtonType:ik,ButtonSize:nk,SearchIconSelection:AS,LiveResultsType:OS,SearchSuggestions:VS,CartIconSelection:Q_,ListContacts:iS,WishlistIconSelection:Kj,NewsletterLayoutType:vk,FooterColumnLayout:dk,FooterNumberColumn:uk,FooterStretchItem:Sk,ColumnContentLayout:kk,ToggleOffCanvasType:fk,ToggleOffCanvasAlignBottomFrom:xk,SiteTitle:yk,SiteTagline:_k,ListLink:Zk}[e]}const uE=window.React.useCallback,Cr=window.React.useMemo,F1=({conditions:e,settings:t,device:n="desktop",inToggle:i=!1})=>{if(e==null)return!0;if(e.groups)return e.groups.some(s=>{const l=s;return l.relation="AND",F1({conditions:l,settings:t,device:n,inToggle:i})});let o=[];const a=e.relation==="OR"?"some":"every";return e.relation!=null?o=Object.values(e).filter(s=>typeof s!="string"):o=e,o[a](s=>{let l=!0;if(s.devices!=null)l=(s.devices??[]).includes(n);else if(s.in_toggle!=null)l=s.in_toggle?i:!i;else{let c=ye(t,s.value_path);if(c==null&&s.default_check_value!=null&&(c=s.default_check_value),c==null)return!1;c=xi(c)?Ce(c,n):c,s.operator==="CONTAIN"?l=c.filter(d=>s.value.includes(d)).length>0:s.operator==="NOT_CONTAIN"?l=c.filter(d=>s.value.includes(d)).length===0:l=c===s.value}return s.operator==="NOT"?!l:l})};function Ko({section:e,sectionId:t,settings:n,onChange:i,builder:o="header",clonedFromId:a}){const{current:s}=_e(),l=te(o)(d=>{var u;return t.includes("menu")&&((u=d.previewTemplate.placements[Ze(s)].toggle)==null?void 0:u.includes(t))});return Cr(()=>F1({conditions:e.visible_conditions,settings:n,device:s,inToggle:l}),[e.visible_conditions,n,s])?r.jsx(zo,{children:e.components.map((d,u)=>r.jsx(hE,{data:d,sectionId:t,settings:n,onChange:i,builder:o,clonedFromId:a},u))}):!1}function hE(e){var d;const t=Cr(()=>e.data,[e.data]),{current:n}=_e(),i=Cr(()=>e.builder??"header",[e.builder]),o=Cr(()=>dE(t.type)??!1,[t.type]),a=Cr(()=>ye(e.settings,t.value_path),[e.settings,t.value_path]),s=Cr(()=>t.default_value,[t.default_value]),l=Cr(()=>F1({conditions:t.visible_conditions,settings:e.settings,device:n}),[t.visible_conditions,e.settings,n,s]),c=uE((u,h=null,f=null,g=!1)=>{e.onChange(p=>{var k,S,y,$;const m=h??t.value_path;let w=ye(p,m);if(w==null&&(g||t.is_responsive?Ct(p,m,{desktop:null,tablet:null,mobile:null}):Ct(p,m,null)),w=ye(p,m),w==null&&(w=f?ye(t.default_value,f):t.default_value),xi(w)&&!xi(u)||g?Ct(p,m,{...w,[n]:u}):Ct(p,m,u),((k=t.render_options)==null?void 0:k.type)==="force_refresh")if(["top_header","bottom_header","middle_header","top_footer","bottom_footer","middle_footer"].includes(e.sectionId))["desktop","tablet","mobile"].forEach(x=>{He().refreshPartial(`${e.sectionId}_${x}`)});else{let x="";["header","toggle_off_canvas","footer"].includes(e.sectionId)?x=e.sectionId:x=`${i}_${e.sectionId}`,He().refreshPartial(x)}let E=null;((S=t.render_options)==null?void 0:S.type)==="content"&&(E=pm),((y=t.render_options)==null?void 0:y.type)==="data_attribute"&&(E=k2),(($=t.render_options)==null?void 0:$.type)==="variable"&&(E=Hn),E!=null&&E({builder:i,sectionId:e.sectionId,settings:p,device:n,clonedFromId:e.clonedFromId})})},[e.onChange,t.value_path,n,(d=t.render_options)==null?void 0:d.type,e.sectionId,i]);return o===!1||!l?!1:r.jsx(o,{...t,value:wf(a,s),onChange:c,sectionId:e.sectionId,builder:i,settings:e.settings})}function wf(e,t,n=!1){if(e===void 0)return t;if(e===null)return n?null:t;if(Array.isArray(t)||!a2(t))return e;const i=t;return Object.keys(t).forEach(o=>{i[o]=wf(e[o],t[o],!0)}),JSON.parse(JSON.stringify(i))}const at=e=>e.title?r.jsxs(fE,{className:e.className??(e.title.show_devices?"mb-0":"mb-[8px]"),children:[r.jsxs(pE,{className:ke([e.title.type==="bold"&&"font-bold","brandy-setting-title-text"]),children:[e.title.text,e.title.tooltip&&r.jsxs(gE,{className:"brandy-setting-title-mark",$_css2:[{display:"inline-block",height:"15px",width:"15px",cursor:"pointer"},ue(["position:relative;&:hover{.brandy-setting-title-tooltip{opacity:1;visibility:visible;}}"])],children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon",viewBox:"0 0 1024 1024",children:r.jsx("path",{fill:"#5a6d80",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"})}),r.jsx(mE,{className:"brandy-setting-title-tooltip",dangerouslySetInnerHTML:{__html:e.title.tooltip}})]})]}),e.title.show_devices&&r.jsx(_1,{})]}):!1;var fE=v("div")({display:"flex",alignItems:"center","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),pE=v("div")({display:"flex",alignItems:"center",gap:"5px",textTransform:"capitalize"}),gE=v("span")`${e=>e.$_css2}`,mE=v("span").withConfig({displayName:"LayoutFactory___StyledSpan2",componentId:"sc-1m8i77u-0"})({visibility:"hidden",position:"absolute",left:"-50%",bottom:"calc(100% + 1px )",zIndex:"10",width:"150px",borderRadius:"3px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.5rem",textAlign:"center",fontWeight:"400",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.3s"});const vE={isDragging:!1},No=ks()(e=>({...vE,startDragging:()=>{e(()=>({isDragging:!0}))},stopDragging:()=>{e(()=>({isDragging:!1}))}}));const wE=window.React.useEffect,tu=window.React.useRef,xE=window.React.useState;function xf({items:e,builder:t,disabledItems:n=[]}){const{startDragging:i,stopDragging:o}=No(s=>({startDragging:s.startDragging,stopDragging:s.stopDragging})),a=()=>!1;return r.jsx(zr.ReactSortable,{list:e,setList:a,group:{name:`${t}-elements-builder`,pull:"clone"},sort:!1,className:"flex flex-col justify-center gap-3",tag:"div",filter:".brandy-undraggable-item",preventOnFilter:!0,forceFallback:!0,fallbackOnBody:!0,fallbackClass:"brandy-sortable-fallback",dragClass:"brandy-sortable-drag",chosenClass:"brandy-sortable-chosen",removeCloneOnHide:!0,onStart:()=>{i()},onEnd:()=>{o()},children:e.map(({id:s,title:l})=>{var c;return r.jsxs(yE,{className:`element-item ${n.includes(s)?"brandy-undraggable-item":""}`,$_css2:[{height:"44px"},{display:"flex",alignItems:"center",gap:"12px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.75rem",paddingBottom:"0.75rem","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"}},{borderRadius:"5px"},{cursor:"grab",backgroundColor:"rgba(255, 255, 255, 0.80)","--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"&:hover":{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}},ue(["&.brandy-undraggable-item{cursor:initial;"," display:none;}&:hover{&:.brandy-undraggable-item .drag-icon{svg{*[fill]{","}*[stroke]{","}}}.duplicate-icon,.remove-icon{visibility:visible;opacity:1;transition:all ease-in-out 0.2s;svg *[fill],svg *[stroke]{transition:all ease-in-out 0.2s;}&:hover{svg{*[fill]{","}*[stroke]{","}}}}.remove-icon{&:hover{svg{*[fill]{","}*[stroke]{","}}}}}"],{"--tw-bg-opacity":"1",backgroundColor:"rgb(220 221 227 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{fill:"#1E1E1E"},{stroke:"#1E1E1E"},{fill:"#1E1E1E"},{stroke:"#1E1E1E"},{fill:"#FF5F5D"},{stroke:"#FF5F5D"})],children:[r.jsx("span",{className:"drag-icon",children:r.jsx(gw,{})}),r.jsx(bE,{name:l??((c=window.brandyElements[s])==null?void 0:c.title)??"",id:s,builder:t,disabled:n.includes(s)})]},s)})})}function bE({id:e,name:t,builder:n,disabled:i=!1}){const[o,a]=xE(!1),s=d=>{let u=Ie;n==="footer"&&(u=Me),u.getState().changeElementItemTitle(e,d)},l=tu(null),c=tu(null);return wE(()=>{function d(u){if(!o&&c.current!=null&&c.current.contains(u.target)&&!i){a(!0);return}l.current!=null&&o&&(l.current.contains(u.target)||a(!1))}return window.addEventListener("click",d),()=>{window.removeEventListener("click",d)}},[l.current,o,c]),o?r.jsx(CE,{value:t,type:"text",onChange:s,ref:l}):r.jsx("span",{ref:c,children:t||""})}var yE=v("span")`${e=>e.$_css2}`,CE=v(ot).withConfig({displayName:"ElementDraggable___StyledInput",componentId:"sc-19ouxax-0"})({borderRadius:"0px !important",borderLeftWidth:"0px !important",borderRightWidth:"0px !important",borderTopWidth:"0px !important",padding:"0px !important"});const _E=window.React.useMemo;function z1(e,t="header"){const n=te(t)(o=>o.previewTemplate.elements),i=_E(()=>p2(e),[e]);return{allElements:Object.values(n),usingElementIds:i,unusedElements:Object.values(n).filter(o=>{var s;return(o.builders??((s=window.brandyElements[o.id])==null?void 0:s.builders)??["header"]).includes(t)&&!i.includes(o.id)})}}const SE=window.React.useMemo,jE=window.React.useState,kE=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function EE(){const{current:e}=_e(),t=te("header")(c=>c.previewTemplate.placements[Ze(e)]),[n,i]=jE(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=z1(t,"header"),l=SE(()=>a.filter(c=>{var d;return n===""||(c.title??((d=window.brandyElements[c.id])==null?void 0:d.title)??"").toLowerCase().includes(n.toLowerCase())}),[n,a]);return r.jsxs("div",{className:"",children:[r.jsx("div",{className:"p-[16px] bg-gutenberg-white border-solid border-[#DDD] border-t border-b",children:r.jsx(Zr,{searchText:n,onSearch:o,placeholder:N("Search element")})}),r.jsx(D2,{children:r.jsx(zo,{children:l.length<=0?r.jsx(kE,{}):r.jsx(xf,{items:l,disabledItems:s,builder:"header"})})})]})}const DE=window.React.useMemo;function $E(){const e=Ie(i=>i.previewTemplate.settings),t=DE(()=>window.brandySettingsLayouts.header,[]),n=Ie(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(Ko,{section:i,sectionKey:`header-${o}`,sectionId:"header",settings:e,onChange:n,builder:"header"},`header-${o}`))})}const HE=[{label:N("Elements"),key:"elements"},{label:N("Settings"),key:"settings"}];function ME(){const{contextHolder:e,currentTab:t}=Yo({items:HE}),n=Ie(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{Nt()};return r.jsxs(qs,{children:[r.jsx(Wn,{onGoBack:i,builder:"header",title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[N("Customizing")," ▸ ",N("Header")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:n})]})}),e,t==="elements"?r.jsx(EE,{}):r.jsx($E,{})]})}const nu=window.React.useCallback,IE=window.React.useEffect,uo=window.React.useMemo,Da=window.React.useState,TE=[{value:"preset_default",label:"Default header",icon:{desktop:r.jsxs("svg",{width:"286",height:"52",viewBox:"0 0 286 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"51",rx:"4.5",fill:"white"}),r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"51",rx:"4.5",stroke:"#E3E8EE"}),r.jsx("path",{d:"M1 5C1 2.79086 2.79086 1 5 1H281C283.209 1 285 2.79086 285 5V23H1V5Z",fill:"url(#paint0_linear_6147_167127)"}),r.jsx("rect",{x:"14",y:"10",width:"12",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"31",y:"10",width:"12",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"48",y:"10",width:"12",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"247",y:"10",width:"10",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"262",y:"10",width:"10",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"118",y:"10",width:"55",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("path",{d:"M36.3976 28.203C36.3976 29.4196 35.4111 30.4061 34.1945 30.4061C32.9779 30.4061 31.9914 29.4196 31.9914 28.203C31.9914 26.9865 32.9775 26 34.1945 26C35.4116 26 36.3976 26.9865 36.3976 28.203ZM20.9002 33.9036C20.4246 33.9515 20.3494 34.6137 20.8021 34.7668C23.6811 35.7405 27.8219 36.6544 29.8671 37.0803C30.5715 37.2268 31.0269 37.9101 30.8954 38.6176C30.3124 41.7455 29.2238 45.0872 28.533 47.4271C28.4014 47.8728 28.9558 48.1962 29.2788 47.8623C36.7285 40.1629 40.9151 32.2558 42.4551 28.9985C42.6457 28.5955 42.1907 28.1956 41.8141 28.434C36.1033 32.0521 25.2629 33.4653 20.9002 33.9036Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"88",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"117",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"146",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"175",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"237",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"247",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"257",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"267",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("defs",{children:r.jsxs("linearGradient",{id:"paint0_linear_6147_167127",x1:"154.198",y1:"1",x2:"154.198",y2:"23",gradientUnits:"userSpaceOnUse",children:[r.jsx("stop",{stopColor:"white",stopOpacity:"0.71"}),r.jsx("stop",{offset:"1",stopColor:"#F1F6FE",stopOpacity:"0.55"})]})})]}),mobile:r.jsxs("svg",{width:"286",height:"70",viewBox:"0 0 286 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"69.0007",rx:"4.5",fill:"white"}),r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"69.0007",rx:"4.5",stroke:"#E3E8EE"}),r.jsx("path",{d:"M1 5C1 2.79086 2.79086 1 5 1H281C283.209 1 285 2.79086 285 5V31.1797H1V5Z",fill:"url(#paint0_linear_6147_167365)"}),r.jsx("rect",{x:"16",y:"13.5",width:"130",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M263.249 15.7507L263.249 19.0007H264.749V15.7507H268V14.2505H264.749V11H263.249L263.249 14.2505H260V15.7507H263.249Z",fill:"#5A6D80"}),r.jsx("g",{clipPath:"url(#clip0_6147_167365)",children:r.jsx("path",{d:"M31.8976 40.203C31.8976 41.4196 30.9111 42.4061 29.6945 42.4061C28.4779 42.4061 27.4914 41.4196 27.4914 40.203C27.4914 38.9865 28.4775 38 29.6945 38C30.9116 38 31.8976 38.9865 31.8976 40.203ZM16.4002 45.9036C15.9246 45.9515 15.8494 46.6137 16.3021 46.7668C19.1811 47.7405 23.3219 48.6544 25.3671 49.0803C26.0715 49.2268 26.5269 49.9101 26.3954 50.6176C25.8124 53.7455 24.7238 57.0872 24.033 59.4271C23.9014 59.8728 24.4558 60.1962 24.7788 59.8623C32.2285 52.1629 36.4151 44.2558 37.9551 40.9985C38.1457 40.5955 37.6907 40.1956 37.3141 40.434C31.6033 44.0521 20.7629 45.4653 16.4002 45.9036Z",fill:"#A1ABB7"})}),r.jsx("rect",{x:"194",y:"42",width:"14",height:"14",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"224",y:"42",width:"14",height:"14",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"254",y:"43",width:"16",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"254",y:"48",width:"16",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"254",y:"53",width:"16",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsxs("defs",{children:[r.jsxs("linearGradient",{id:"paint0_linear_6147_167365",x1:"145.5",y1:"2.21756",x2:"145.5",y2:"31.1797",gradientUnits:"userSpaceOnUse",children:[r.jsx("stop",{stopColor:"white",stopOpacity:"0.71"}),r.jsx("stop",{offset:"1",stopColor:"#F1F6FE",stopOpacity:"0.55"})]}),r.jsx("clipPath",{id:"clip0_6147_167365",children:r.jsx("rect",{width:"22",height:"22",fill:"white",transform:"translate(16 38)"})})]})]})}}],tc=({children:e})=>r.jsx(ct,{className:"mb-2 font-semibold",children:e});function LE(){const e=Ie(D=>D.addTemplate),t=Ie(D=>D.choosePreviewTemplate),n=Ie(D=>D.removeTemplate),i=Ie(D=>D.templates),o=Ie(D=>D.previewTemplate),[a]=Da(o.id),s=uo(()=>`template-${Date.now()}`,[]),[l,c]=Da(`Header #${i.length+1}`),[d,u]=Da(""),[h,f]=Da(""),g=uo(()=>[{label:"Select header",value:""},...i.filter(D=>D.id!==s).map(D=>({label:D.id==="default"?"Default header":D.settings.name,value:D.id}))],[i]),p=D=>{typeof D!="number"&&c(D)};IE(()=>()=>{m2()},[]);const m=nu(D=>i.find(R=>R.id===D)??window.brandyCustomizerData.defaults.header,[i]),w=nu(D=>window.brandyHeaderPresets[D],[]),E=()=>{Nt()},k=(D,R)=>{let P=null,F=null;return D?P=m(D):P=w(R),P!=null&&(F=JSON.parse(JSON.stringify(P)),F.id=s,F.settings.name=l),F},S=D=>{D.preventDefault();const R=k(h,d);if(R==null)return;const P=JSON.parse(JSON.stringify(R));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),E()},y=uo(()=>i.filter(D=>D.settings.name===l||l==="Default header").length>1,[l,i]),$=uo(()=>l===""||d===""&&h===""||y,[h,d,l,y]),x=(D,R)=>{const P=k(D,R);if(P==null)return;const F=JSON.parse(JSON.stringify(P));n(s),e({...F,id:s,settings:{...F.settings,name:l}}),t(s),setTimeout(()=>{g2()},200)},C=D=>{D!==d&&(u(D),x(h,D))},A=D=>{f(D),D==""?x(h,d):(u(""),x(D,d))},O=()=>{t(a),n(s),E()};return r.jsxs(qs,{children:[r.jsx(Wn,{onGoBack:O,title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[N("Customizing")," ▸ ",N("Header")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:N("Create new header")})]}),hasBottomPart:!1}),r.jsx(zo,{className:"after:hidden",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-[#757575] text-xs",children:N("Create a new header and assign it to different pages or posts based on your conditions.")}),r.jsxs("div",{children:[r.jsx(tc,{children:N("Header name")}),r.jsx(ot,{value:l,onChange:p,className:y?"!border-red-500 focus-within:!border-red-500":"",placeholder:N("Your header name")}),y&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:N("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(tc,{children:N("Copy elements & styles from")}),r.jsx(dt,{options:g,onChange:A,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(tc,{children:N("Using header presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:TE.map(D=>r.jsx(AE,{isActive:D.value===d,data:D,onSelect:()=>{C(D.value)}},D.value))})]})]})}),r.jsx(RE,{className:"sticky p-4 bottom-0",$_css:[h!==""&&{position:"absolute !important",width:"100%"},{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Fo,{primary:!0,onClick:S,disabled:$,children:N("Create header")})})]})}const AE=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=_e(),o=uo(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(OE,{onClick:n,$_css2:[{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity, 1))"},{cursor:"pointer",borderRadius:"5px",backgroundColor:"rgba(255, 255, 255, 0.70)",padding:"1rem","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}],children:[r.jsx(NE,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(PE,{$_css3:[{textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontStyle:"italic"},e?{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}:{"--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"}],children:t==null?void 0:t.label})]})};var RE=v("div")`${e=>e.$_css}`,OE=v("div")`${e=>e.$_css2}`,NE=v("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),PE=v("p").withConfig({displayName:"NewHeader___StyledP",componentId:"sc-6re12p-0"})(["",""],e=>e.$_css3);const VE=window.React,BE=window.React.memo,FE=window.React.useCallback,bf=window.React.useContext,yf=window.React.useMemo,Cf=VE.createContext({});function zE(){const{builder:e}=bf(Yt),t=te(e)(s=>s.deselectRow),n=te(e)(s=>s.chosenRow??"not found"),i=te(e)(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??e}),o=FE(()=>{Nt(),t()},[Nt,t]),a=yf(()=>({builder:e,goBack:o}),[e,o]);return r.jsxs(Cf.Provider,{value:a,children:[r.jsx(Wn,{onGoBack:o,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(GE,{children:[N("Customizing")," ▸ ",i]}),r.jsxs(UE,{children:[n," ",e]})]})}),r.jsx(WE,{})]})}function ZE(){const{builder:e}=bf(Cf),t=te(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=Yo(),o=yf(()=>window.brandySettingsLayouts[`${t}_${e}`],[t,e]),a=te(e)(l=>t!=null&&l.previewTemplate.row_configurations[t]||{}),s=te(e)(l=>l.changeRowSettings);return t==null||o==null||a==null?!1:r.jsxs(r.Fragment,{children:[n,r.jsx(a1,{children:o[i].sections.map((l,c)=>r.jsx(Ko,{section:l,sectionKey:`${i}-${c}`,sectionId:`${t}_${e}`,settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const WE=BE(ZE);var GE=v("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),UE=v("div").withConfig({displayName:"RowSettingsSection___StyledDiv2",componentId:"sc-1y9zy4h-0"})({fontSize:"20px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const YE=window.React.useMemo,XE=window.React.useState,JE=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function KE(){const{current:e}=_e(),t=te("footer")(c=>c.previewTemplate.placements[Ze(e)]),[n,i]=XE(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=z1(t,"footer"),l=YE(()=>a.filter(c=>{var d;return n===""||(c.title??((d=window.brandyElements[c.id])==null?void 0:d.title)??"").toLowerCase().includes(n.toLowerCase())}),[n,a]);return r.jsxs("div",{className:"",children:[r.jsx("div",{className:"p-[16px] bg-gutenberg-white border-solid border-[#DDD] border-t border-b",children:r.jsx(Zr,{searchText:n,onSearch:o,placeholder:N("Search element")})}),r.jsx(D2,{children:r.jsx(zo,{children:l.length<=0?r.jsx(JE,{}):r.jsx(xf,{items:l,builder:"footer",disabledItems:s})})})]})}const qE=window.React.useMemo;function QE(){const e=Me(i=>i.previewTemplate.settings),t=qE(()=>window.brandySettingsLayouts.footer,[]),n=Me(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(Ko,{section:i,sectionKey:`footer-${o}`,sectionId:"footer",settings:e,onChange:n,builder:"footer"},`footer-${o}`))})}const eD=[{label:N("Elements"),key:"elements"},{label:N("Settings"),key:"settings"}];function tD(){const{contextHolder:e,currentTab:t}=Yo({items:eD}),n=Me(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{Nt()};return r.jsxs(qs,{children:[r.jsx(Wn,{onGoBack:i,builder:"footer",title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[N("Customizing")," ▸ ",N("Footer")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:n})]})}),e,t==="elements"?r.jsx(KE,{}):r.jsx(QE,{})]})}const ru=window.React.useCallback,nD=window.React.useEffect,ho=window.React.useMemo,$a=window.React.useState,rD=[{value:"preset_default",label:"Default footer",icon:{desktop:r.jsxs("svg",{width:"286",height:"75",viewBox:"0 0 286 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{y:"0.820312",width:"286",height:"73.5",rx:"5",fill:"white"}),r.jsx("rect",{x:"0.5",y:"1.32031",width:"285",height:"72.5",rx:"4.5",stroke:"#E3E8EE"}),r.jsx("path",{d:"M23.3948 18.7969L22.3431 20.4384V21.4885H21.746V20.4384L20.6982 18.7969H21.3743L22.0465 19.847L22.7187 18.7969H23.3948Z",fill:"#FFC900"}),r.jsx("path",{d:"M24.0592 19.5312C24.3755 19.5312 24.6127 19.6829 24.7076 19.8649L24.7432 19.5692H25.3047V21.4874H24.7432L24.7076 21.1917C24.6127 21.3737 24.3755 21.5253 24.0592 21.5253C23.4859 21.5253 23.0786 21.078 23.0786 20.5283C23.0786 19.9786 23.4859 19.5312 24.0592 19.5312ZM24.162 20.9832C24.4506 20.9832 24.6364 20.7747 24.6364 20.5283C24.6364 20.2819 24.4506 20.0696 24.162 20.0696C23.8694 20.0696 23.6757 20.2819 23.6757 20.5283C23.6757 20.7747 23.8694 20.9832 24.162 20.9832Z",fill:"#FFC900"}),r.jsx("path",{d:"M26.1781 19.5703L26.6961 20.7758L27.2101 19.5703H27.8506L26.617 22.3605H25.9883L26.3758 21.4885L25.5376 19.5703H26.1781Z",fill:"#FFC900"}),r.jsx("path",{d:"M31.1304 19.1976C30.6006 19.1976 30.1538 19.588 30.1538 20.1415C30.1538 20.695 30.6006 21.0854 31.1304 21.0854C31.5337 21.0854 31.7947 20.8921 31.8935 20.7898V21.2598C31.7709 21.3622 31.4981 21.5252 31.0711 21.5252C30.2882 21.5252 29.6675 20.9224 29.6675 20.1415C29.6675 19.3606 30.2882 18.7578 31.0711 18.7578C31.4981 18.7578 31.7709 18.9208 31.8935 19.0232V19.4933C31.7907 19.3871 31.5337 19.1976 31.1304 19.1976Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M32.1821 20.5283C32.1821 19.9786 32.6289 19.5312 33.2576 19.5312C33.8823 19.5312 34.3251 19.9786 34.3251 20.5283C34.3251 21.078 33.8823 21.5253 33.2576 21.5253C32.6289 21.5253 32.1821 21.078 32.1821 20.5283ZM33.8388 20.5283C33.8388 20.225 33.5976 19.971 33.2576 19.971C32.9136 19.971 32.6684 20.225 32.6684 20.5283C32.6684 20.8315 32.9136 21.0855 33.2576 21.0855C33.5976 21.0855 33.8388 20.8315 33.8388 20.5283Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M37.773 20.2819V21.4874H37.2867V20.4411C37.2867 20.1606 37.1641 19.971 36.9308 19.971C36.6422 19.971 36.4682 20.2667 36.4563 20.661V21.4874H35.97V20.4411C35.97 20.1606 35.8474 19.971 35.6142 19.971C35.3255 19.971 35.1516 20.2667 35.1357 20.661V21.4874H34.6494V19.5692H35.1081L35.1318 19.8383C35.3057 19.6601 35.5311 19.5312 35.8 19.5312C36.0926 19.5312 36.2903 19.6753 36.3852 19.9066C36.571 19.6943 36.8161 19.5312 37.1206 19.5312C37.5476 19.5312 37.773 19.8421 37.773 20.2819Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M41.3116 20.2819V21.4874H40.8252V20.4411C40.8252 20.1606 40.7027 19.971 40.4694 19.971C40.1808 19.971 40.0068 20.2667 39.9949 20.661V21.4874H39.5086V20.4411C39.5086 20.1606 39.386 19.971 39.1527 19.971C38.8641 19.971 38.6901 20.2667 38.6743 20.661V21.4874H38.188V19.5692H38.6466L38.6704 19.8383C38.8443 19.6601 39.0697 19.5312 39.3386 19.5312C39.6311 19.5312 39.8288 19.6753 39.9237 19.9066C40.1096 19.6943 40.3547 19.5312 40.6592 19.5312C41.0862 19.5312 41.3116 19.8421 41.3116 20.2819Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M43.6208 20.6723H42.1064C42.1183 20.9074 42.3041 21.1121 42.656 21.1121C42.9091 21.1121 43.0712 20.9832 43.1503 20.8505L43.5773 20.896C43.518 21.1576 43.2056 21.5253 42.6521 21.5253C42.0353 21.5253 41.6201 21.078 41.6201 20.5169C41.6201 19.9824 42.0155 19.5312 42.6205 19.5312C43.2373 19.5312 43.6208 20.0013 43.6208 20.551V20.6723ZM42.1064 20.3501H43.1345C43.1186 20.1378 42.9249 19.9444 42.6205 19.9444C42.3239 19.9445 42.1183 20.1302 42.1064 20.3501Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M45.1033 19.6146L45.0321 20.0203C44.9926 19.9975 44.9135 19.971 44.8344 19.971C44.5735 19.971 44.4311 20.2288 44.4311 20.6344V21.4874H43.9448V19.5692H44.4035L44.4232 19.7777C44.5498 19.6298 44.6961 19.5313 44.8621 19.5313C44.9768 19.5312 45.0598 19.5729 45.1033 19.6146Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M46.2975 19.971C46.001 19.971 45.7044 20.1947 45.7044 20.5283C45.7044 20.8619 46.001 21.0855 46.2975 21.0855C46.4834 21.0855 46.6494 21.0249 46.8076 20.8808V21.3282C46.6731 21.4419 46.4754 21.5253 46.2184 21.5253C45.6253 21.5253 45.1904 21.0704 45.1904 20.5283C45.1904 19.99 45.6253 19.5312 46.2184 19.5312C46.4754 19.5312 46.6731 19.6147 46.8076 19.7284V20.1719C46.6494 20.0279 46.4834 19.971 46.2975 19.971Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M49.0768 20.6723H47.5625C47.5744 20.9074 47.7602 21.1121 48.1121 21.1121C48.3651 21.1121 48.5273 20.9832 48.6063 20.8505L49.0333 20.896C48.974 21.1576 48.6617 21.5253 48.1081 21.5253C47.4913 21.5253 47.0762 21.078 47.0762 20.5169C47.0762 19.9824 47.4715 19.5312 48.0765 19.5312C48.6933 19.5312 49.0768 20.0013 49.0768 20.551V20.6723ZM47.5625 20.3501H48.5905C48.5747 20.1378 48.381 19.9444 48.0765 19.9444C47.78 19.9445 47.5744 20.1302 47.5625 20.3501Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M28.1108 21.2533C28.1108 21.0976 28.2371 20.9766 28.3994 20.9766C28.5618 20.9766 28.6881 21.0976 28.6881 21.2533C28.6881 21.4089 28.5618 21.53 28.3994 21.53C28.2371 21.53 28.1108 21.4089 28.1108 21.2533Z",fill:"#FFC900"}),r.jsx("path",{d:"M28.5576 18.7969H29.1543L28.7555 20.6844H28.2725L28.5576 18.7969Z",fill:"#FFC900"}),r.jsx("path",{d:"M18.522 17.4211C18.522 17.753 18.2415 18.022 17.8954 18.022C17.5493 18.022 17.2687 17.753 17.2687 17.4211C17.2687 17.0893 17.5493 16.8203 17.8954 16.8203C18.2415 16.8203 18.522 17.0893 18.522 17.4211ZM14.1139 18.9759C13.9786 18.9889 13.9571 19.1695 14.0859 19.2113C14.9048 19.4768 16.0827 19.726 16.6645 19.8422C16.8648 19.8822 16.9944 20.0686 16.9569 20.2615C16.7911 21.1146 16.4814 22.026 16.285 22.6641C16.2475 22.7856 16.4052 22.8738 16.4971 22.7828C18.6161 20.683 19.807 18.5265 20.2451 17.6381C20.2993 17.5282 20.1699 17.4191 20.0628 17.4842C18.4384 18.4709 15.3548 18.8564 14.1139 18.9759Z",fill:"#FFC900"}),r.jsx("rect",{x:"14",y:"26.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"32.3203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"37.8203",width:"35.0767",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"22",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"30",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"38",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"19.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"25.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"31.3203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"36.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"42.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"19.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"25.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"31.3203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"36.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"42.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"18.8203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"24.3203",width:"45.7817",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"29.8203",width:"70",height:"9",rx:"1",fill:"#F6F7F7"}),r.jsx("rect",{x:"256.022",y:"29.8203",width:"15.9557",height:"9",rx:"0.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"42.8203",width:"18.5132",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("path",{d:"M14 62.4453H272V62.1953H14V62.4453Z",fill:"#E3E8EE"}),r.jsx("rect",{x:"115",y:"67.3203",width:"56",height:"2",rx:"1",fill:"#DCDDE3"})]}),mobile:r.jsxs("svg",{width:"286",height:"184",viewBox:"0 0 286 184",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"1.32031",width:"285",height:"182",rx:"4.5",stroke:"#E3E8EE"}),r.jsxs("g",{clipPath:"url(#clip0_6109_159963)",children:[r.jsx("path",{d:"M23.7977 18.1221C23.7977 18.8411 23.1898 19.4239 22.44 19.4239C21.6901 19.4239 21.0822 18.8411 21.0822 18.1221C21.0822 17.4031 21.6901 16.8203 22.44 16.8203C23.1898 16.8203 23.7977 17.4031 23.7977 18.1221ZM14.2467 21.4907C13.9535 21.5189 13.9071 21.9102 14.1862 22.0007C15.9604 22.5761 18.5126 23.1161 19.773 23.3678C20.2071 23.4545 20.4879 23.8582 20.4067 24.2762C20.0473 26.1246 19.3765 28.0992 18.9507 29.4818C18.8697 29.745 19.2112 29.9362 19.4103 29.739C24.0016 25.1895 26.5819 20.5171 27.5311 18.5922C27.6485 18.354 27.3682 18.1176 27.1361 18.2586C23.6165 20.3965 16.9355 21.2317 14.2467 21.4907Z",fill:"#FFC900"}),r.jsx("path",{d:"M34.4011 16.8984L32.1224 20.455V22.7302H30.8288V20.455L28.5586 16.8984H30.0235L31.4799 19.1737L32.9362 16.8984H34.4011Z",fill:"#FFC900"}),r.jsx("path",{d:"M35.8409 18.4922C36.5262 18.4922 37.0402 18.8207 37.2458 19.215L37.3229 18.5743H38.5394V22.7305H37.3229L37.2458 22.0898C37.0402 22.4841 36.5262 22.8126 35.8409 22.8126C34.5987 22.8126 33.7163 21.8434 33.7163 20.6524C33.7163 19.4615 34.5987 18.4922 35.8409 18.4922ZM36.0636 21.6381C36.689 21.6381 37.0916 21.1863 37.0916 20.6524C37.0916 20.1185 36.689 19.6585 36.0636 19.6585C35.4297 19.6585 35.0099 20.1185 35.0099 20.6524C35.0099 21.1863 35.4297 21.6381 36.0636 21.6381Z",fill:"#FFC900"}),r.jsx("path",{d:"M40.4313 18.5781L41.5535 21.1901L42.6672 18.5781H44.055L41.3822 24.6234H40.0201L40.8596 22.7343L39.0435 18.5781H40.4313Z",fill:"#FFC900"}),r.jsx("path",{d:"M51.1614 17.7731C50.0135 17.7731 49.0454 18.6191 49.0454 19.8183C49.0454 21.0175 50.0135 21.8635 51.1614 21.8635C52.0352 21.8635 52.6006 21.4446 52.8148 21.2229V22.2414C52.5492 22.4631 51.9581 22.8164 51.0329 22.8164C49.3367 22.8164 47.9917 21.5104 47.9917 19.8183C47.9917 18.1263 49.3367 16.8203 51.0329 16.8203C51.9581 16.8203 52.5492 17.1735 52.8148 17.3953V18.4138C52.5921 18.1838 52.0352 17.7731 51.1614 17.7731Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M53.4399 20.6524C53.4399 19.4614 54.408 18.4922 55.7701 18.4922C57.1236 18.4922 58.0831 19.4614 58.0831 20.6524C58.0831 21.8434 57.1236 22.8126 55.7701 22.8126C54.408 22.8126 53.4399 21.8434 53.4399 20.6524ZM57.0294 20.6524C57.0294 19.9953 56.5068 19.445 55.7701 19.445C55.0248 19.445 54.4936 19.9953 54.4936 20.6524C54.4936 21.3095 55.0248 21.8598 55.7701 21.8598C56.5068 21.8598 57.0294 21.3095 57.0294 20.6524Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M65.5539 20.1185V22.7305H64.5002V20.4635C64.5002 19.8557 64.2346 19.445 63.7291 19.445C63.1038 19.445 62.7268 20.0857 62.7011 20.9399V22.7305H61.6474V20.4635C61.6474 19.8557 61.3819 19.445 60.8764 19.445C60.251 19.445 59.8741 20.0857 59.8398 20.9399V22.7305H58.7861V18.5743H59.7799L59.8313 19.1575C60.2082 18.7714 60.6965 18.4922 61.279 18.4922C61.913 18.4922 62.3413 18.8043 62.5469 19.3053C62.9496 18.8454 63.4807 18.4922 64.1403 18.4922C65.0656 18.4922 65.5539 19.1657 65.5539 20.1185Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M73.2204 20.1185V22.7305H72.1667V20.4635C72.1667 19.8557 71.9011 19.445 71.3957 19.445C70.7703 19.445 70.3934 20.0857 70.3676 20.9399V22.7305H69.3139V20.4635C69.3139 19.8557 69.0484 19.445 68.5429 19.445C67.9175 19.445 67.5406 20.0857 67.5063 20.9399V22.7305H66.4526V18.5743H67.4464L67.4978 19.1575C67.8747 18.7714 68.363 18.4922 68.9455 18.4922C69.5795 18.4922 70.0078 18.8043 70.2134 19.3053C70.6161 18.8454 71.1472 18.4922 71.8068 18.4922C72.7321 18.4922 73.2204 19.1657 73.2204 20.1185Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M78.2235 20.9645H74.9424C74.9681 21.4738 75.3707 21.9173 76.1332 21.9173C76.6814 21.9173 77.0327 21.6381 77.204 21.3506L78.1292 21.4491C78.0007 22.0159 77.3239 22.8126 76.1246 22.8126C74.7882 22.8126 73.8887 21.8434 73.8887 20.6278C73.8887 19.4696 74.7453 18.4922 76.0561 18.4922C77.3925 18.4922 78.2235 19.5107 78.2235 20.7017V20.9645ZM74.9424 20.2663H77.1697C77.1355 19.8064 76.7157 19.3874 76.0561 19.3874C75.4136 19.3875 74.9681 19.7899 74.9424 20.2663Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M81.4358 18.6729L81.2816 19.5517C81.1959 19.5025 81.0246 19.445 80.8533 19.445C80.2879 19.445 79.9795 20.0035 79.9795 20.8824V22.7305H78.9258V18.5743H79.9195L79.9623 19.0261C80.2365 18.7057 80.5535 18.4922 80.9133 18.4922C81.1617 18.4922 81.3415 18.5825 81.4358 18.6729Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M84.0237 19.445C83.3812 19.445 82.7387 19.9296 82.7387 20.6524C82.7387 21.3752 83.3812 21.8598 84.0237 21.8598C84.4263 21.8598 84.7861 21.7284 85.1288 21.4163V22.3855C84.8375 22.6319 84.4092 22.8126 83.8524 22.8126C82.5673 22.8126 81.625 21.827 81.625 20.6524C81.625 19.486 82.5673 18.4922 83.8524 18.4922C84.4092 18.4922 84.8375 18.6729 85.1288 18.9193V19.8803C84.7861 19.5682 84.4263 19.445 84.0237 19.445Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M90.0457 20.9645H86.7647C86.7904 21.4738 87.193 21.9173 87.9554 21.9173C88.5037 21.9173 88.855 21.6381 89.0263 21.3506L89.9515 21.4491C89.823 22.0159 89.1462 22.8126 87.9469 22.8126C86.6104 22.8126 85.7109 21.8434 85.7109 20.6278C85.7109 19.4696 86.5676 18.4922 87.8783 18.4922C89.2147 18.4922 90.0457 19.5107 90.0457 20.7017V20.9645ZM86.7647 20.2663H88.992C88.9578 19.8064 88.538 19.3874 87.8784 19.3874C87.2358 19.3875 86.7903 19.7899 86.7647 20.2663Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M44.6187 22.2246C44.6187 21.8873 44.8922 21.625 45.244 21.625C45.5957 21.625 45.8693 21.8873 45.8693 22.2246C45.8693 22.5618 45.5957 22.8241 45.244 22.8241C44.8922 22.8241 44.6187 22.5618 44.6187 22.2246Z",fill:"#FFC900"}),r.jsx("path",{d:"M45.587 16.9062H46.8798L46.0158 20.9958H44.9692L45.587 16.9062Z",fill:"#FFC900"})]}),r.jsx("rect",{x:"14",y:"36.8203",width:"191.254",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"42.3203",width:"120",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"47.8203",width:"35.0767",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"22",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"30",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"38",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"72.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"78.8203",width:"116",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"84.3203",width:"80",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"89.8203",width:"50",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"95.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"72.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"78.8203",width:"116",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"84.3203",width:"80",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"89.8203",width:"50",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"95.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"110.57",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"116.07",width:"153.726",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"121.57",width:"258",height:"16",rx:"1",fill:"#F6F7F7"}),r.jsx("rect",{x:"234.519",y:"121.57",width:"37.4591",height:"16",rx:"0.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"141.57",width:"100.134",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"115",y:"171.82",width:"56",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_6109_159963",children:r.jsx("rect",{width:"76.0458",height:"16",fill:"white",transform:"translate(14 16.8203)"})})})]})}}],nc=({children:e})=>r.jsx(ct,{className:"mb-2 font-semibold",children:e});function iD(){const e=Me(D=>D.addTemplate),t=Me(D=>D.choosePreviewTemplate),n=Me(D=>D.removeTemplate),i=Me(D=>D.templates),o=Me(D=>D.previewTemplate),[a]=$a(o.id),s=ho(()=>`template-${Date.now()}`,[]),[l,c]=$a(`Footer #${i.length+1}`),[d,u]=$a(""),[h,f]=$a(""),g=ho(()=>[{label:"Select footer",value:""},...i.filter(D=>D.id!==s).map(D=>({label:D.id==="default"?"Default footer":D.settings.name,value:D.id}))],[i,s]),p=D=>{typeof D!="number"&&c(D)};nD(()=>()=>{m2()},[]);const m=ru(D=>i.find(R=>R.id===D)??window.brandyCustomizerData.defaults.footer,[i]),w=ru(D=>window.brandyFooterPresets[D],[]),E=()=>{Nt()},k=(D,R)=>{let P=null,F=null;return D?P=m(D):P=w(R),P!=null&&(F=JSON.parse(JSON.stringify(P)),F.id=s,F.settings.name=l),F},S=D=>{D.preventDefault();const R=k(h,d);if(R==null)return;const P=JSON.parse(JSON.stringify(R));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),E()},y=ho(()=>i.filter(D=>D.settings.name===l||l==="Default footer").length>1,[l,i]),$=ho(()=>l===""||d===""&&h===""||y,[h,d,l,y]),x=(D,R)=>{const P=k(D,R);if(P==null)return;const F=JSON.parse(JSON.stringify(P));n(s),e({...F,id:s,settings:{...F.settings,name:l}}),t(s),setTimeout(()=>{g2()},200)},C=D=>{D!==d&&(u(D),x(h,D))},A=D=>{f(D),D==""?x(h,d):(u(""),x(D,d))},O=()=>{t(a),n(s),E()};return r.jsxs(qs,{children:[r.jsx(Wn,{onGoBack:O,title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[N("Customizing")," ▸ ",N("Footer")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:N("Create new footer")})]}),hasBottomPart:!1}),r.jsx(zo,{className:"after:hidden",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-[#757575] text-xs",children:N("Create a new footer and assign it to different pages or posts based on your conditions.")}),r.jsxs("div",{children:[r.jsx(nc,{children:N("Footer name")}),r.jsx(ot,{value:l,onChange:p,className:y?"!border-red-500 focus-within:!border-red-500":"",placeholder:N("Your footer name")}),y&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:N("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(nc,{children:N("Copy elements & styles from")}),r.jsx(dt,{options:g,onChange:A,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(nc,{children:N("Using footer presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:rD.map(D=>r.jsx(oD,{isActive:D.value===d,data:D,onSelect:()=>{C(D.value)}},D.value))})]})]})}),r.jsx(aD,{className:"sticky p-4 bottom-0",$_css:[h!==""&&{position:"absolute !important",width:"100%"},{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Fo,{primary:!0,onClick:S,disabled:$,children:N("Create footer")})})]})}const oD=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=_e(),o=ho(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(sD,{onClick:n,$_css2:[{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity, 1))"},{cursor:"pointer",borderRadius:"5px",backgroundColor:"rgba(255, 255, 255, 0.70)",padding:"1rem","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}],children:[r.jsx(lD,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(cD,{$_css3:[{textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontStyle:"italic"},e?{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}:{"--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"}],children:t==null?void 0:t.label})]})};var aD=v("div")`${e=>e.$_css}`,sD=v("div")`${e=>e.$_css2}`,lD=v("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),cD=v("p").withConfig({displayName:"NewFooter___StyledP",componentId:"sc-15uicft-0"})(["",""],e=>e.$_css3);const dD=window.React,uD=window.React.memo,hD=window.React.useCallback,_f=window.React.useContext,Sf=window.React.useMemo,jf=dD.createContext({});function iu(){const{builder:e}=_f(Yt),t=te(e)(a=>a.deselectRow),n=te(e)(a=>{var s,l;return((l=(s=a.previewTemplate)==null?void 0:s.settings)==null?void 0:l.name)??e}),i=hD(()=>{Nt(),t()},[Nt,t]),o=Sf(()=>({builder:e,goBack:i}),[e,i]);return r.jsxs(jf.Provider,{value:o,children:[r.jsx(Wn,{onGoBack:i,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(gD,{children:[N("Customizing")," ▸ ",n]}),r.jsx(mD,{children:N("Toggle off canvas")})]})}),r.jsx(pD,{})]})}function fD(){const{builder:e}=_f(jf),t=te(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=Yo(),o=Sf(()=>window.brandySettingsLayouts.toggle_off_canvas,[t,e]),a=te(e)(l=>t!=null&&l.previewTemplate.row_configurations.toggle||{}),s=te(e)(l=>l.changeRowSettings);return t==null||o==null||a==null?!1:r.jsxs(r.Fragment,{children:[n,r.jsx(a1,{children:o[i].sections.map((l,c)=>r.jsx(Ko,{section:l,sectionKey:`${i}-${c}`,sectionId:"toggle_off_canvas",settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const pD=uD(fD);var gD=v("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),mD=v("div").withConfig({displayName:"ToggleOffCanvasSection___StyledDiv2",componentId:"sc-1fkkjdj-0"})({fontSize:"20px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const qo=v.div.withConfig({displayName:"Styleds__SettingLine",componentId:"sc-1ff79ea-0"})(["",""],{marginTop:"0.75rem"}),br=window.React.useState,rc=[{label:N("Hidden"),value:"hidden"},{label:N("Optional"),value:"optional"},{label:N("Required"),value:"required"}],ou=Object.entries(window.brandyCustomizerData.pages).map(([e,t])=>({label:t.title,value:e})),vD=v(qo)` ${{marginTop:"0px"}} `;function ii({title:e,description:t,children:n}){return r.jsxs(vD,{children:[r.jsx(xD,{children:e}),t&&r.jsx(bD,{children:t}),n]})}function wD(){const[e,t]=br(()=>window.wp.customize("woocommerce_checkout_company_field")()),[n,i]=br(()=>window.wp.customize("woocommerce_checkout_address_2_field")()),[o,a]=br(()=>window.wp.customize("woocommerce_checkout_phone_field")()),[s,l]=br(()=>window.wp.customize("woocommerce_checkout_highlight_required_fields")()),[c,d]=br(()=>window.wp.customize("wp_page_for_privacy_policy")()),[u,h]=br(()=>window.wp.customize("woocommerce_terms_page_id")()),[f,g]=br(()=>window.wp.customize("woocommerce_checkout_privacy_policy_text")()),p=$=>{t($),window.wp.customize("woocommerce_checkout_company_field")($)},m=$=>{i($),window.wp.customize("woocommerce_checkout_address_2_field")($)},w=$=>{a($),window.wp.customize("woocommerce_checkout_phone_field")($)},E=$=>{const x=$.target.checked;l(x),window.wp.customize("woocommerce_checkout_highlight_required_fields")(x)},k=$=>{d($),window.wp.customize("wp_page_for_privacy_policy")($)},S=$=>{h($),window.wp.customize("woocommerce_terms_page_id")($)},y=$=>{const x=$.target.value;g(x),window.wp.customize("woocommerce_checkout_privacy_policy_text")(x)};return r.jsxs(yD,{children:[r.jsx("div",{children:N("These options let you change the appearance of the WooCommerce checkout.")}),r.jsx(ii,{title:N("Company name field"),children:r.jsx(dt,{options:rc,selected:e,onChange:p})}),r.jsx(ii,{title:N("Address line 2 field"),children:r.jsx(dt,{options:rc,selected:n,onChange:m})}),r.jsx(ii,{title:N("Phone field"),children:r.jsx(dt,{options:rc,selected:o,onChange:w})}),r.jsxs(CD,{children:[r.jsx(_D,{type:"checkbox",checked:s,onChange:E}),r.jsx("label",{children:N("Highlight required fields with an asterisk")})]}),r.jsx(ii,{title:N("Privacy policy page"),children:r.jsx(dt,{options:ou,selected:c,onChange:k})}),r.jsx(ii,{title:N("Terms and conditions page"),children:r.jsx(dt,{options:ou,selected:u,onChange:S})}),r.jsx(ii,{title:N("Privacy policy"),description:N("Optionally add some text about your store privacy policy to show during checkout."),children:r.jsx(SD,{value:f,onChange:y,rows:4})})]})}var xD=v("label")({marginBottom:"0.5rem",display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),bD=v("div")({marginBottom:"0.5rem"}),yD=v("div")({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),CD=v("div")({display:"flex",alignItems:"center",gap:"0.25rem"}),_D=v("input")({margin:"0px"}),SD=v("textarea").withConfig({displayName:"Checkout___StyledTextarea",componentId:"sc-1q6zqyc-0"})({width:"100%",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.5rem","&:focus":{"--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",outlineWidth:"0px"}});const Ha=window.React.useState,au=[{label:N("Show products"),value:""},{label:N("Show categories"),value:"subcategories"},{label:N("Show categories & products"),value:"both"}],jD=[{label:N("Default sorting (custom ordering + name)"),value:"menu_order"},{label:N("Popularity (sales)"),value:"popularity"},{label:N("Average rating"),value:"rating"},{label:N("Sort by most recent"),value:"date"},{label:N("Sort by price (asc)"),value:"price"},{label:N("Sort by price (desc)"),value:"price-desc"}],kD=v(qo)` ${{marginTop:"0px"}} `;function Ma({title:e,description:t="",children:n}){return r.jsxs(kD,{children:[r.jsx(DD,{children:e}),r.jsx($D,{children:t}),n]})}function ED(){const[e,t]=Ha(()=>window.wp.customize("woocommerce_shop_page_display")()),[n,i]=Ha(()=>window.wp.customize("woocommerce_category_archive_display")()),[o,a]=Ha(()=>window.wp.customize("woocommerce_default_catalog_orderby")()),[s,l]=Ha(()=>window.wp.customize("wc_product_catalog")()),c=f=>{t(f),window.wp.customize("woocommerce_shop_page_display")(f)},d=f=>{i(f),window.wp.customize("woocommerce_shop_page_display")(f)},u=f=>{a(f),window.wp.customize("woocommerce_default_catalog_orderby")(f)},h=f=>{const g={...s,product_thumb_size:f};l(g),window.wp.customize("wc_product_catalog")(g),window.jQuery(De("body")).css("--product-thumb-aspect-ratio",f=="size_1"?"3/4":"1")};return r.jsxs(HD,{children:[r.jsx(Ma,{title:N("Shop page display"),description:N("Choose what to display on the main shop page."),children:r.jsx(dt,{options:au,selected:e,onChange:c})}),r.jsx(Ma,{title:N("Category display"),description:N("Choose what to display on product category pages."),children:r.jsx(dt,{options:au,selected:n,onChange:d})}),r.jsx(Ma,{title:N("Default product sorting"),description:N("How should products be sorted in the catalog by default?"),children:r.jsx(dt,{options:jD,selected:o,onChange:u})}),r.jsx(Ma,{title:N("Products thumb size"),children:r.jsx(At,{options:[{value:"size_1",label:N("Rectangular")},{value:"size_2",label:N("Square")}],selected:s.product_thumb_size??"size_1",onChange:h})})]})}var DD=v("label")({marginBottom:"0.5rem",display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),$D=v("div")({marginBottom:"0.5rem"}),HD=v("div").withConfig({displayName:"ProductCatalog___StyledDiv2",componentId:"sc-1b5kzi6-0"})({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"});const MD=window.React.useState,ic=v(qo)` ${{display:"flex",alignItems:"center",justifyContent:"space-between"}} `,oc=({title:e="",settings:t,onChange:n,dataKey:i})=>{const o=(a,s=null)=>l=>{const c=JSON.parse(JSON.stringify(t));if(Ct(c,a,l),n(c),s==null)return;const d=De("body");let u=l;switch(s){case"dimension":u=or(l);break}window.jQuery(d).css(`--wc-${i}-${a.join("-")}`,u)};return r.jsxs(TD,{children:[r.jsx(LD,{children:e}),r.jsxs(ic,{children:[r.jsx("label",{children:N("Text color")}),r.jsxs(AD,{children:[r.jsx(_t,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:t.text_color.normal,onChange:o(["text_color","normal"],"color")})}),r.jsx(_t,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:t.text_color.hover,onChange:o(["text_color","hover"],"color")})})]})]}),r.jsxs(ic,{children:[r.jsx("label",{children:N("Background")}),r.jsx(RD,{children:r.jsx(_t,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:t.background.normal,onChange:o(["background","normal"],"color")})})})]}),r.jsxs(ic,{children:[r.jsx("label",{children:N("Border color")}),r.jsx(OD,{children:r.jsx(_t,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:t.border.color.normal,onChange:o(["border","color","normal"],"color")})})})]}),r.jsx(qo,{children:r.jsx(Zt,{title:N("Border width"),value:t.border.width,units:["px"],onChange:o(["border","width"],"dimension"),min:t.border.width.min,max:t.border.width.max})})]})};function ID(){const[e,t]=MD(window.wp.customize("wc_store_notices")()??window.brandyCustomizerData.woocommerce.default_settings.wc_store_notices),n=i=>o=>{const a=JSON.parse(JSON.stringify({...e,[i]:o}));t(a),window.wp.customize("wc_store_notices")(a)};return r.jsxs("div",{children:[r.jsx(oc,{settings:e.information,title:N("Information notice"),onChange:n("information"),dataKey:"information"}),r.jsx(oc,{settings:e.success,title:N("Success notice"),onChange:n("success"),dataKey:"success"}),r.jsx(oc,{settings:e.error,title:N("Error notice"),onChange:n("error"),dataKey:"error"})]})}var TD=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),LD=v("h3")({fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),AD=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),RD=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),OD=v("div").withConfig({displayName:"StoreNotices___StyledDiv4",componentId:"sc-69yra-0"})({display:"flex",alignItems:"center",gap:"1rem"});const ND=window.React.useState,PD=v(qo)` ${{marginTop:"0px"}} `;function su({title:e,description:t="",children:n}){return r.jsxs(PD,{children:[r.jsx(BD,{children:e}),r.jsx(FD,{children:t}),n]})}function VD(){const[e,t]=ND(()=>window.wp.customize("wc_single_product")()),n=a=>{const s={...e,product_gallery_viewport_image_ratio:a};t(s),window.wp.customize("wc_single_product")(s),window.jQuery(De("body")).css("--single-product-viewport-image-ratio",a),window.jQuery(De(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image")).each(function(){var l=window.jQuery(this);l&&setTimeout(function(){var c=l.height(),d=l.closest(".flex-viewport");c&&d&&d.height(c)},100)})},i=a=>{const s={...e,product_gallery_thumb_image_width:a.value};t(s),window.wp.customize("wc_single_product")(s),window.jQuery(De("body")).css("--single-product-gallery-thumb-image-width",(a.value??100)+"px")},o=a=>{const s={...e,product_gallery_thumb_image_height:a.value};t(s),window.wp.customize("wc_single_product")(s),window.jQuery(De("body")).css("--single-product-gallery-thumb-image-height",(a.value??100)+"px")};return r.jsxs(zD,{children:[r.jsx(su,{title:N("Product viewport ratio"),children:r.jsx(ot,{step:.1,wrapperStyle:{width:70},type:"number",value:e.product_gallery_viewport_image_ratio??1,onChange:n})}),r.jsxs(su,{title:N("Product gallery thumb size"),children:[r.jsx(Zt,{units:["px"],value:{value:e.product_gallery_thumb_image_width??100,unit:"px"},min:30,max:500,onChange:i,title:N("Thumb Width")}),r.jsx("br",{}),r.jsx(Zt,{units:["px"],value:{value:e.product_gallery_thumb_image_height??100,unit:"px"},min:30,max:500,onChange:o,title:N("Thumb Height")})]})]})}var BD=v("label")({marginBottom:"0.5rem",display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),FD=v("div")({marginBottom:"0.5rem"}),zD=v("div").withConfig({displayName:"SingleProduct___StyledDiv2",componentId:"sc-1m2uk4u-0"})({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"});const ZD=window.React.useContext,WD=window.React.useEffect,lu=window.React.useMemo;function GD(){const{sectionId:e}=ZD(Yt);WD(()=>{e==="wc_checkout"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_checkout_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_checkout_page),e==="wc_product_catalog"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_shop_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_shop_page),e==="wc_single_product"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_single_product_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_single_product_page)},[e]);const t=lu(()=>{switch(e){case"wc_store_notices":return ID;case"wc_product_catalog":return ED;case"wc_single_product":return VD;case"wc_checkout":return wD;default:return!1}},[e]),n=lu(()=>window.brandyCustomizerData.woocommerce.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Wn,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[N("Customizing")," ▸ ",N("WooCommerce")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??N("Not found")})]}),hasBottomPart:!1,onGoBack:Nt}),r.jsx(UD,{children:r.jsx(t,{})})]})}var UD=v("div").withConfig({displayName:"Section___StyledDiv",componentId:"sc-gsppkr-0"})({marginTop:"1rem"});const YD=window.React.useEffect,XD=window.React.useState;function Z1(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16),a:parseInt(n[4],16)/255}:t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function kf(e){const t=Z1(e);if(!t)return 0;const[n,i,o]=[t.r/255,t.g/255,t.b/255].map(a=>a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4));return .2126*n+.7152*i+.0722*o}function JD(e,t=.15){const n=Z1(e);if(!n)return e;const i=Math.max(0,Math.floor(n.r*(1-t))),o=Math.max(0,Math.floor(n.g*(1-t))),a=Math.max(0,Math.floor(n.b*(1-t))),s=[i,o,a].map(l=>l.toString(16).padStart(2,"0"));if(n.a!==void 0){const l=Math.round(n.a*255);s.push(l.toString(16).padStart(2,"0"))}return`#${s.join("")}`}function KD(e,t=.15){const n=Z1(e);if(!n)return e;const i=Math.min(255,Math.floor(n.r+(255-n.r)*t)),o=Math.min(255,Math.floor(n.g+(255-n.g)*t)),a=Math.min(255,Math.floor(n.b+(255-n.b)*t)),s=[i,o,a].map(l=>l.toString(16).padStart(2,"0"));if(n.a!==void 0){const l=Math.round(n.a*255);s.push(l.toString(16).padStart(2,"0"))}return`#${s.join("")}`}function cu(e){return kf(e)>.5?"#000000":"#ffffff"}function qD(e){const t=kf(e),n=e==="#000000"?"#2f2f2f":t<.2?KD(e,.1):JD(e,.12),i=cu(e),o=cu(n);return{mainColor:e,hoverColor:n,textColor:i,textHoverColor:o}}function QD(e){var n;return((n=[...window.brandyCustomizerData.theme_settings.color.palette.default,...window.brandyCustomizerData.theme_settings.color.palette.theme].find(i=>`var(--wp--preset--color--${i.slug})`===e))==null?void 0:n.color)??e}function e$(){const[e,t]=XD(window.wp.customize("button_settings")()??{type:"default",mode:"auto",primaryColor:window.brandyCustomizerData.wp_global_styles.elements.button.color.background,primaryHoverColor:window.brandyCustomizerData.wp_global_styles.elements.button[":hover"].color.background,primaryTextColor:window.brandyCustomizerData.wp_global_styles.elements.button.color.text,primaryTextHoverColor:window.brandyCustomizerData.wp_global_styles.elements.button[":hover"].color.text}),n=s=>{const{mainColor:l,hoverColor:c}=qD(QD(s)),d={...e,type:"custom",mode:"auto",primaryColor:l,primaryHoverColor:c};t(d),window.wp.customize("button_settings")(d)},i=s=>{t(l=>({...l,mode:s})),window.wp.customize("button_settings")({...e,mode:s}),(s??"auto")==="auto"&&e.primaryColor&&n(e.primaryColor)},o=(s,l)=>{t(c=>({...c,type:"custom",mode:"custom",[s]:l})),window.wp.customize("button_settings")({...e,type:"custom",mode:"custom",[s]:l})},a=()=>{t({...e,type:"default",mode:"auto",primaryColor:null,primaryHoverColor:null,primaryTextColor:null,primaryTextHoverColor:null}),window.wp.customize("button_settings")({...e,type:"default",mode:"auto",primaryColor:null,primaryHoverColor:null,primaryTextColor:null,primaryTextHoverColor:null})};return YD(()=>{const s=De("body");e.type==="custom"?window.jQuery(s).addClass("custom-button-style"):window.jQuery(s).removeClass("custom-button-style");const{primaryColor:l,primaryHoverColor:c,primaryTextColor:d,primaryTextHoverColor:u}=e;window.jQuery(s).css({"--button-primary":l,"--button-primary-hover":c,"--button-primary-text":d,"--button-primary-text-hover":u})},[e]),r.jsx(t$,{children:r.jsxs(n$,{children:[r.jsxs("div",{children:[r.jsx(r$,{children:N("Color Mode")}),r.jsx(At,{options:[{label:"Auto generate",value:"auto"},{label:"Custom",value:"custom"}],selected:e.mode??"auto",onChange:s=>i(s)})]}),r.jsxs(i$,{children:[r.jsx("label",{children:N("Primary Color")}),r.jsx(o$,{children:r.jsx(mt,{color:e.primaryColor,onChange:s=>(e.mode??"auto")==="auto"?n(s):o("primaryColor",s)})})]}),e.mode==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(a$,{children:[r.jsx("label",{children:N("Hover Background")}),r.jsx(mt,{color:e.primaryHoverColor,onChange:s=>{o("primaryHoverColor",s)}})]}),r.jsxs(s$,{children:[r.jsx("label",{children:N("Text")}),r.jsx(mt,{color:e.primaryTextColor,onChange:s=>{o("primaryTextColor",s)}})]}),r.jsxs(l$,{children:[r.jsx("label",{children:N("Hover Text")}),r.jsx(mt,{color:e.primaryHoverTextColor,onChange:s=>{o("primaryHoverTextColor",s)}})]})]}),r.jsx(c$,{primary:!0,type:"button",onClick:a,children:"Reset"})]})})}var t$=v("div")({display:"flex",flexDirection:"column"}),n$=v("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),r$=v("label")({marginBottom:"0.5rem",display:"inline-block"}),i$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),o$=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),a$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),s$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),l$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),c$=v(Fo).withConfig({displayName:"ButtonSettings___StyledButton",componentId:"sc-a0rhg7-0"})({width:"fit-content"});const d$=window.React.useState,Mt=window.brandyCustomizerData.general.default_settings.input_settings;function u$(){var c,d,u,h,f,g,p,m,w,E,k,S,y,$,x,C,A,O;const[e,t]=d$(window.wp.customize("input_settings")()??Mt),n=D=>R=>{const P=JSON.parse(JSON.stringify(e));Ct(P,["text_color",D],R),t(P),window.wp.customize("input_settings")(P);const F=De("body");window.jQuery(F).css(`--input-text-color-${D}`,R)},i=D=>R=>{const P=JSON.parse(JSON.stringify(e));Ct(P,["background_color",D],R),t(P),window.wp.customize("input_settings")(P);const F=De("body");window.jQuery(F).css(`--input-background-color-${D}`,R)},o=D=>R=>{const P=JSON.parse(JSON.stringify(e));Ct(P,["border","color",D],R),t(P),window.wp.customize("input_settings")(P);const F=De("body");window.jQuery(F).css(`--input-border-color-${D}`,R)},a=D=>{$d(()=>{const R=JSON.parse(JSON.stringify(e));Ct(R,["border","width"],D),t(R),window.wp.customize("input_settings")(R);const P=De("body");window.jQuery(P).css("--input-border-width",or(D))})},s=D=>{$d(()=>{const R=JSON.parse(JSON.stringify(e));Ct(R,["border","radius"],D),t(R),window.wp.customize("input_settings")(R);const P=De("body");window.jQuery(P).css("--input-border-radius",or(D))})},l=D=>{const R=JSON.parse(JSON.stringify(e));Ct(R,["padding"],D),t(R),window.wp.customize("input_settings")(R);const P=De("body");window.jQuery(P).css("--input-padding",E2(D))};return r.jsxs(h$,{children:[r.jsxs(f$,{children:[r.jsx("label",{children:N("Text color")}),r.jsxs(p$,{children:[r.jsx(_t,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:((c=e==null?void 0:e.text_color)==null?void 0:c.normal)??((d=Mt.text_color)==null?void 0:d.normal),onChange:n("normal")})}),r.jsx(_t,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:((u=e==null?void 0:e.text_color)==null?void 0:u.hover)??((h=Mt.text_color)==null?void 0:h.hover),onChange:n("hover")})})]})]}),r.jsxs(g$,{children:[r.jsx("label",{children:N("Background color")}),r.jsxs(m$,{children:[r.jsx(_t,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((g=Mt==null?void 0:Mt.background_color)==null?void 0:g.normal),onChange:i("normal")})}),r.jsx(_t,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:((p=e==null?void 0:e.background_color)==null?void 0:p.hover)??((m=Mt.background_color)==null?void 0:m.hover),onChange:i("hover")})})]})]}),r.jsxs(v$,{children:[r.jsx("label",{children:N("Border color")}),r.jsxs(w$,{children:[r.jsx(_t,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:((E=(w=e==null?void 0:e.border)==null?void 0:w.color)==null?void 0:E.normal)??((S=(k=Mt==null?void 0:Mt.border)==null?void 0:k.color)==null?void 0:S.normal),onChange:o("normal")})}),r.jsx(_t,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(mt,{color:(($=(y=e==null?void 0:e.border)==null?void 0:y.color)==null?void 0:$.hover)??((C=(x=Mt.border)==null?void 0:x.color)==null?void 0:C.hover),onChange:o("hover")})})]})]}),r.jsx(Zt,{title:N("Border width"),value:((A=e==null?void 0:e.border)==null?void 0:A.width)??Mt.border.width,onChange:a}),r.jsx(Zt,{title:N("Border radius"),value:((O=e==null?void 0:e.border)==null?void 0:O.radius)??Mt.border.radius,onChange:s}),r.jsx(Hh,{title:N("Padding"),units:["px"],value:(e==null?void 0:e.padding)??Mt.padding,onChange:l})]})}var h$=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),f$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),p$=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),g$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),m$=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),v$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),w$=v("div").withConfig({displayName:"InputSettings___StyledDiv7",componentId:"sc-1ocb9dp-0"})({display:"flex",alignItems:"center",gap:"1rem"});const x$=window.React.useContext,du=window.React.useMemo;function b$(){const{sectionId:e}=x$(Yt),t=du(()=>{switch(e){case"button_settings":return e$;case"input_settings":return u$;default:return null}},[e]),n=du(()=>window.brandyCustomizerData.general.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Wn,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[N("Customizing")," ▸ ",N("General")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??"Not found"})]}),hasBottomPart:!1,onGoBack:Nt}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const y$=window.React.createContext,uu=window.React.useMemo,qs=v.div.withConfig({displayName:"BrandySection__StyledSectionWrapper",componentId:"sc-ywrqgm-0"})({height:"100%"}),Yt=y$({});function C$(e){const{sectionId:t,builder:n,clonedFromId:i}=e,o=uu(()=>({sectionId:t,builder:n}),[t,n]),a=uu(()=>t==="new_header"&&n==="header"?r.jsx(LE,{}):t==="new_footer"&&n==="footer"?r.jsx(iD,{}):t==="settings"&&n==="header"?r.jsx(ME,{}):t==="settings"&&n==="footer"?r.jsx(tD,{}):t.endsWith("_header")&&n==="header"||t.endsWith("_footer")&&n==="footer"?r.jsx(zE,{}):t==="toggle_off_canvas"?r.jsx(iu,{}):t==="toggle"?r.jsx(iu,{}):n==="woocommerce-settings"?r.jsx(GD,{}):n==="general-settings"?r.jsx(b$,{}):r.jsx(Py,{elementId:t,clonedFromId:i}),[t,n]);return r.jsx(Yt.Provider,{value:o,children:a})}const an=[],_$=(e,t)=>{if(t.endsWith("_header")&&e==="header"||t.endsWith("_footer")&&e==="footer"){j$(e,t);return}if(t==="toggle_off_canvas"){S$();return}k$(e,t)},S$=()=>{Ie.setState(e=>{e.chosenRow="toggle",e.chosenElement=null})},j$=(e,t)=>{let n=Ie;e==="footer"&&(n=Me),["top","middle","bottom"].forEach(o=>{t.includes(o)&&n.setState(a=>{a.chosenRow=o,a.chosenElement=null})})},k$=(e,t)=>{let n=Ie;e==="footer"&&(n=Me),n.setState(i=>{const o=i.previewTemplate.elements[t];o!=null&&(i.chosenElement=o,i.chosenRow=null)})},Ef=300,Cn=(e,t,n,i)=>{const o=document.querySelector("#brandy-section .current-panel");if((o==null?void 0:o.dataset.sectionId)==="new_header")return;const a=window.wp.customize.panel(e);a.expanded()||a.expanded(!0);const s=document.querySelector("#brandy-section");if(an==null?void 0:an.find(d=>d.dom.dataset.sectionId===t&&d.dom.dataset.builder===e))return;if(an.length>0&&an.forEach(d=>{let u=d.dom.cloneNode(!0);d.dom.replaceWith(u),d.root.unmount(),setTimeout(()=>{window.jQuery(u).remove(),an.shift()},Ef)}),i!=null){const d=hu(e,i);s==null||s.appendChild(d)}const c=hu(e,t);s==null||s.appendChild(c)};function hu(e,t){const n=document.createElement("div");n.className="customize-pane-child",n.dataset.sectionId=t,n.dataset.builder=e,_$(e,t);const i=Hr.createRoot(n);return an.push({root:i,dom:n}),i.render(r.jsx(C$,{builder:e,sectionId:t})),setTimeout(()=>{n.classList.add("current-panel")},100),n}const Nt=()=>{an.length>0&&an.forEach((e,t)=>{an.length>1&&t!=an.length-1||(e.dom.classList.add("section-close"),setTimeout(()=>{e.root.unmount(),e.dom.remove(),an.pop()},Ef))})},De=e=>{const t=l5();return t==null||t.contentDocument==null?[]:t.contentDocument.querySelectorAll(e)},xt=(e,t)=>e==="header"||e==="footer"?`[data-section-id="${e}"]`:`[data-section-id="${e}"][data-builder="${t}"]`;var Df=Symbol.for("immer-nothing"),fu=Symbol.for("immer-draftable"),Wt=Symbol.for("immer-state");function xn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $i=Object.getPrototypeOf;function Hi(e){return!!e&&!!e[Wt]}function Ar(e){var t;return e?$f(e)||Array.isArray(e)||!!e[fu]||!!((t=e.constructor)!=null&&t[fu])||Qo(e)||el(e):!1}var E$=Object.prototype.constructor.toString();function $f(e){if(!e||typeof e!="object")return!1;const t=$i(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===E$}function us(e,t){Qs(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,i)=>t(i,n,e))}function Qs(e){const t=e[Wt];return t?t.type_:Array.isArray(e)?1:Qo(e)?2:el(e)?3:0}function Vc(e,t){return Qs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Hf(e,t,n){const i=Qs(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function D$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Qo(e){return e instanceof Map}function el(e){return e instanceof Set}function _r(e){return e.copy_||e.base_}function Bc(e,t){if(Qo(e))return new Map(e);if(el(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=$f(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[Wt];let o=Reflect.ownKeys(i);for(let a=0;a1&&Object.defineProperties(e,{set:{value:Ia},add:{value:Ia},clear:{value:Ia},delete:{value:Ia}}),Object.freeze(e),t&&Object.values(e).forEach(n=>W1(n,!0))),e}function Ia(){xn(2)}function tl(e){return Object.isFrozen(e)}var $$={};function Rr(e){const t=$$[e];return t||xn(0,e),t}var Po;function Mf(){return Po}function H$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pu(e,t){t&&(Rr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fc(e){zc(e),e.drafts_.forEach(M$),e.drafts_=null}function zc(e){e===Po&&(Po=e.parent_)}function gu(e){return Po=H$(Po,e)}function M$(e){const t=e[Wt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Wt].modified_&&(Fc(t),xn(4)),Ar(e)&&(e=hs(t,e),t.parent_||fs(t,e)),t.patches_&&Rr("Patches").generateReplacementPatches_(n[Wt].base_,e,t.patches_,t.inversePatches_)):e=hs(t,n,[]),Fc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Df?e:void 0}function hs(e,t,n){if(tl(t))return t;const i=t[Wt];if(!i)return us(t,(o,a)=>vu(e,i,t,o,a,n)),t;if(i.scope_!==e)return t;if(!i.modified_)return fs(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,s=!1;i.type_===3&&(a=new Set(o),o.clear(),s=!0),us(a,(l,c)=>vu(e,i,o,l,c,n,s)),fs(e,o,!1),n&&e.patches_&&Rr("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function vu(e,t,n,i,o,a,s){if(Hi(o)){const l=a&&t&&t.type_!==3&&!Vc(t.assigned_,i)?a.concat(i):void 0,c=hs(e,o,l);if(Hf(n,i,c),Hi(c))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Ar(o)&&!tl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;hs(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(Qo(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&fs(e,o)}}function fs(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&W1(t,n)}function I$(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Mf(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=G1;n&&(o=[i],a=Vo);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var G1={get(e,t){if(t===Wt)return e;const n=_r(e);if(!Vc(n,t))return T$(e,n,t);const i=n[t];return e.finalized_||!Ar(i)?i:i===ac(e.base_,t)?(sc(e),e.copy_[t]=Wc(i,e)):i},has(e,t){return t in _r(e)},ownKeys(e){return Reflect.ownKeys(_r(e))},set(e,t,n){const i=If(_r(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=ac(_r(e),t),a=o==null?void 0:o[Wt];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(D$(n,o)&&(n!==void 0||Vc(e.base_,t)))return!0;sc(e),Zc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ac(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,sc(e),Zc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_r(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){xn(11)},getPrototypeOf(e){return $i(e.base_)},setPrototypeOf(){xn(12)}},Vo={};us(G1,(e,t)=>{Vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vo.deleteProperty=function(e,t){return Vo.set.call(this,e,t,void 0)};Vo.set=function(e,t,n){return G1.set.call(this,e[0],t,n,e[0])};function ac(e,t){const n=e[Wt];return(n?_r(n):e)[t]}function T$(e,t,n){var o;const i=If(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function If(e,t){if(!(t in e))return;let n=$i(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=$i(n)}}function Zc(e){e.modified_||(e.modified_=!0,e.parent_&&Zc(e.parent_))}function sc(e){e.copy_||(e.copy_=Bc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var L$=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...d){return s.produce(c,u=>n.call(this,u,...d))}}typeof n!="function"&&xn(6),i!==void 0&&typeof i!="function"&&xn(7);let o;if(Ar(t)){const a=gu(this),s=Wc(t,void 0);let l=!0;try{o=n(s),l=!1}finally{l?Fc(a):zc(a)}return pu(a,i),mu(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Df&&(o=void 0),this.autoFreeze_&&W1(o,!0),i){const a=[],s=[];Rr("Patches").generateReplacementPatches_(t,o,a,s),i(a,s)}return o}else xn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let i,o;return[this.produce(t,n,(s,l)=>{i=s,o=l}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ar(e)||xn(8),Hi(e)&&(e=A$(e));const t=gu(this),n=Wc(e,void 0);return n[Wt].isManual_=!0,zc(t),n}finishDraft(e,t){const n=e&&e[Wt];(!n||!n.isManual_)&&xn(9);const{scope_:i}=n;return pu(i,t),mu(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=Rr("Patches").applyPatches_;return Hi(e)?i(e,t):this.produce(e,o=>i(o,t))}};function Wc(e,t){const n=Qo(e)?Rr("MapSet").proxyMap_(e,t):el(e)?Rr("MapSet").proxySet_(e,t):I$(e,t);return(t?t.scope_:Mf()).drafts_.push(n),n}function A$(e){return Hi(e)||xn(10,e),Tf(e)}function Tf(e){if(!Ar(e)||tl(e))return e;const t=e[Wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Bc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Bc(e,!0);return us(n,(i,o)=>{Hf(n,i,Tf(o))}),t&&(t.finalized_=!1),n}var Gc=new L$,R$=Gc.produce,Lf=Gc.setAutoFreeze.bind(Gc);const O$=e=>(t,n,i)=>{const o=i.subscribe;return i.subscribe=(s,l,c)=>{let d=s;if(l){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=s(i.getState());d=f=>{const g=s(f);if(!u(h,g)){const p=h;l(h=g,p)}},c!=null&&c.fireImmediately&&l(h,h)}return o(d)},e(t,n,i)},Af=O$,N$=e=>(t,n,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?R$(o):o;return t(l,a,...s)},e(i.setState,n,i)),Rf=N$;function fi(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,o]of e)if(!Object.is(o,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}Lf(!1);let Me;const Qn="footer";Mi.panel(Qn,function(){const e=()=>He().getTemplates(Qn),t=()=>{const o=e(),a=He().getPreviewTemplate(Qn).id;return o.find(s=>s.id===a)??o[0]},n=()=>{const o=e(),a=He().getCurrentTemplate(Qn).id;return(o.find(s=>s.id===a)??o[0]).id},i=()=>{He().refreshPartial(`${Qn}_placements`)};Me=ks(Af(Rf((o,a)=>({templates:e(),previewTemplate:t(),currentTemplateId:n(),chosenElement:null,chosenRow:null,resetTemplate:()=>{const s=a().previewTemplate.id;if(!s)return;const l=[...window.brandyNichesFooters,...Object.values(window.brandyFooterPresets)].find(c=>c.id===s);l&&(o(c=>{c.previewTemplate=l}),i())},resetElement:s=>{var d;if(((d=a().chosenElement)==null?void 0:d.id)!==s)return;const l=a().previewTemplate.id;if(!l)return;const c=[...window.brandyNichesFooters,...Object.values(window.brandyFooterPresets)].find(u=>u.id===l);c&&(o(u=>{var h;(h=u.chosenElement)!=null&&h.settings&&(u.chosenElement.settings=c.elements[s].settings)}),He().refreshPartial(`${Qn}_${s}`))},addTemplate:s=>{o(l=>{l.templates.push(s)}),i()},removeTemplate:s=>{const l=e().filter(c=>c.id!==s);o(c=>{c.templates=l,s===c.previewTemplate.id&&(c.previewTemplate=l[0])})},choosePreviewTemplate:s=>{const l=a().templates;a().previewTemplate.id!==s&&(o(d=>{d.previewTemplate=l.find(u=>u.id===s)??l[0]}),i())},setCurrentTemplateId:s=>{const l=a().templates;if(a().currentTemplateId===s)return;const c=l.find(d=>d.id===s)==null?l[0].id:s;o(d=>{d.currentTemplateId=c}),He().updateCurrentTemplateId("footer",c)},changeElementItemTitle:(s,l)=>{o(c=>{c.previewTemplate.elements[s]!=null&&(c.previewTemplate.elements[s].title=l)})},addElement:s=>{h2({...s,template:a().previewTemplate}).then(l=>{o(c=>{c.previewTemplate.placements[Ze(s.device)]=l}),i()})},setElements:({row:s,col:l,changedList:c,device:d})=>{const u=a().previewTemplate,h=JSON.parse(JSON.stringify(u.placements[Ze(d)]));s==="toggle"&&(h.toggle=c),s!=="toggle"&&l!=null&&(h[s][l]=c),o(f=>{f.previewTemplate.placements[Ze(d)]=h}),C1(h,u.placements[Ze(d)])||i()},removeElement:s=>{var l;f2({...s,template:a().previewTemplate}).then(c=>{o(d=>{var u;d.previewTemplate.placements[Ze(s.device)]=c,s.removeId===((u=d.chosenElement)==null?void 0:u.id)&&(d.chosenElement=null)}),i()}),s.removeId===((l=a().chosenElement)==null?void 0:l.id)&&Nt()},selectElement:s=>{o(l=>{l.chosenElement=s.element}),o(l=>{l.chosenRow=null})},deselectSection:()=>{o(s=>{s.chosenElement=null}),o(s=>{s.chosenRow=null})},changeElementSettings:s=>{o(l=>{var c;return s((c=l.chosenElement)==null?void 0:c.settings)})},changeTemplateSettings:s=>{o(l=>{var c;return s((c=l.previewTemplate)==null?void 0:c.settings)})},changeRowSettings:s=>{o(l=>{l.previewTemplate&&l.chosenRow&&l.chosenRow in l.previewTemplate.row_configurations&&s(l.previewTemplate.row_configurations[l.chosenRow])})},selectRow:s=>{o(l=>{s in l.previewTemplate.row_configurations&&(l.chosenRow=s,l.chosenElement=null)})},deselectRow:()=>{o(s=>{s.chosenRow=null})}})))),Me.subscribe(o=>o.chosenElement,(o,a)=>{a!=null&&Me.setState(s=>{(o==null?void 0:o.id)!=null&&(s.previewTemplate.elements[o==null?void 0:o.id]=o)})},{equalityFn:fi}),Me.subscribe(o=>o.previewTemplate,o=>{Me.setState(a=>{const s=a.templates.findIndex(l=>l.id===o.id)||0;a.templates[s]=o})},{equalityFn:fi}),Me.subscribe(o=>o.previewTemplate.id,(o,a)=>{o!==a&&He().updatePreviewTemplateId(Qn,o??"default")}),Me.subscribe(o=>o.templates,(o,a)=>{JSON.stringify(o)!==JSON.stringify(a)&&He().updateTemplates(Qn,o)},{equalityFn:fi})});const oi=e=>{var n;if(!Ie||!Me){let i;return e==="header"?i=JSON.parse(JSON.stringify(window.brandyHeaderSettings)):i=JSON.parse(JSON.stringify(window.brandyFooterSettings)),i??null}let t;return e==="header"?t=Ie.getState():t=Me.getState(),{current_template_id:t.currentTemplateId,templates:JSON.parse(JSON.stringify(t.templates)),preview_template_id:((n=t.previewTemplate)==null?void 0:n.id)??t.currentTemplateId}},lc=(e,t)=>{window.wp.customize(`${e}_settings`)!=null&&window.wp.customize(`${e}_settings`)(new Date().getTime())};class P${constructor(){}getPreviewTemplate(t){const n=oi(t),i=n.preview_template_id??n.current_template_id,{defaultTemplate:o,previewTemplate:a}=n.templates.reduce((s,l)=>(l.id==="default"&&(s.defaultTemplate=l),l.id===i&&(s.previewTemplate=l),s),{defaultTemplate:null,previewTemplate:null});return a??o}getCurrentTemplate(t){const n=oi(t),i=n.current_template_id,{defaultTemplate:o,currentTemplate:a}=n.templates.reduce((s,l)=>(l.id==="default"&&(s.defaultTemplate=l),l.id===i&&(s.currentTemplate=l),s),{defaultTemplate:null,currentTemplate:null});return a??o}getTemplates(t){const n=oi(t);if(n){const i=n.templates??[];return i.forEach((o,a)=>{Object.entries(window.brandyElements).forEach(([s,l])=>{o.elements[l.id]||(i[a].elements[l.id]=l)})}),i}return[]}updateTemplates(t,n){const i=oi(t);lc(t,JSON.parse(JSON.stringify({...i,templates:n})))}updatePreviewTemplateId(t,n){const i=oi(t);lc(t,JSON.parse(JSON.stringify({...i,preview_template_id:n})))}updateCurrentTemplateId(t,n){const i=oi(t);lc(t,JSON.parse(JSON.stringify({...i,current_template_id:n})))}refreshPartial(t){setTimeout(()=>{var i,o;if(t.includes("header")){const a=Ie.getState();window.wp.customize("unsaved_header_settings")({current_template_id:a.currentTemplateId,templates:a.templates.filter(s=>{var l;return s.id===a.currentTemplateId||s.id===((l=a.previewTemplate)==null?void 0:l.id)}),preview_template_id:((i=a.previewTemplate)==null?void 0:i.id)??a.currentTemplateId})}if(t.includes("footer")){const a=Me.getState();window.wp.customize("unsaved_footer_settings")({current_template_id:a.currentTemplateId,templates:a.templates.filter(s=>{var l;return s.id===a.currentTemplateId||s.id===((l=a.previewTemplate)==null?void 0:l.id)}),preview_template_id:((o=a.previewTemplate)==null?void 0:o.id)??a.currentTemplateId})}const n=window.wp.customize(t);n&&n.set(Date.now())},0)}}const He=()=>new P$;Lf(!1);let Ie;const Nn="header";Mi.panel(Nn,function(){const e=He().getPreviewTemplate(Nn),t=()=>e.toggle_off_canvas,n=()=>He().getTemplates(Nn),i=()=>{const s=n(),l=He().getPreviewTemplate(Nn).id;return s.find(c=>c.id===l)??s[0]},o=()=>{const s=n(),l=He().getCurrentTemplate(Nn).id;return(s.find(c=>c.id===l)??s[0]).id},a=()=>{He().refreshPartial(`${Nn}_placements`)};Ie=ks(Af(Rf((s,l)=>({templates:n(),previewTemplate:i(),currentTemplateId:o(),chosenElement:null,chosenRow:null,toggleOffCanvas:t(),resetTemplate:()=>{const c=l().previewTemplate.id;if(!c)return;const d=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(u=>u.id===c);d&&(s(u=>{u.previewTemplate=d}),a())},resetElement:c=>{var h;if(((h=l().chosenElement)==null?void 0:h.id)!==c)return;const d=l().previewTemplate.id;if(!d)return;const u=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(f=>f.id===d);u&&(s(f=>{var g;(g=f.chosenElement)!=null&&g.settings&&(f.chosenElement.settings=u.elements[c].settings)}),He().refreshPartial(`${Nn}_${c}`))},addTemplate:c=>{s(d=>{d.templates.push(c)}),a()},removeTemplate:c=>{const d=n().filter(u=>u.id!==c);s(u=>{u.templates=d,c===u.previewTemplate.id&&(u.previewTemplate=d[0])})},choosePreviewTemplate:c=>{const d=l().templates;l().previewTemplate.id!==c&&(s(h=>{h.previewTemplate=d.find(f=>f.id===c)??d[0]}),a())},setCurrentTemplateId:c=>{const d=l().templates;if(l().currentTemplateId===c)return;const u=d.find(h=>h.id===c)==null?d[0].id:c;s(h=>{h.currentTemplateId=u}),He().updateCurrentTemplateId("header",u)},changeElementItemTitle:(c,d)=>{s(u=>{u.previewTemplate.elements[c]!=null&&(u.previewTemplate.elements[c].title=d)})},addElement:c=>{h2({...c,template:l().previewTemplate}).then(d=>{s(u=>{u.previewTemplate.placements[Ze(c.device)]=d}),a()})},setElements:({row:c,col:d,changedList:u,device:h})=>{const f=l().previewTemplate,g=JSON.parse(JSON.stringify(f.placements[Ze(h)]));c==="toggle"&&(g.toggle=u),c!=="toggle"&&d!=null&&(g[c][d]=u),s(p=>{p.previewTemplate.placements[Ze(h)]=g}),C1(g,f.placements[Ze(h)])||a()},removeElement:c=>{var d;f2({...c,template:l().previewTemplate}).then(u=>{s(h=>{var f;h.previewTemplate.placements[Ze(c.device)]=u,c.removeId===((f=h.chosenElement)==null?void 0:f.id)&&(h.chosenElement=null)}),a()}),c.removeId===((d=l().chosenElement)==null?void 0:d.id)&&Nt()},selectElement:c=>{s(d=>{d.chosenElement=c.element}),s(d=>{d.chosenRow=null})},deselectSection:()=>{s(c=>{c.chosenElement=null}),s(c=>{c.chosenRow=null})},changeElementSettings:c=>{s(d=>{var u;return c((u=d.chosenElement)==null?void 0:u.settings)})},changeTemplateSettings:c=>{s(d=>{var u;return c((u=d.previewTemplate)==null?void 0:u.settings)})},changeRowSettings:c=>{s(d=>{d.previewTemplate&&d.chosenRow&&d.chosenRow in d.previewTemplate.row_configurations&&c(d.previewTemplate.row_configurations[d.chosenRow])})},selectRow:c=>{s(d=>{c in d.previewTemplate.row_configurations&&(d.chosenRow=c,d.chosenElement=null)})},deselectRow:()=>{s(c=>{c.chosenRow=null})}})))),Ie.subscribe(s=>s.chosenElement,(s,l)=>{l==null||s==null||Ie.setState(c=>{c.previewTemplate.elements[s==null?void 0:s.id]=s})},{equalityFn:fi}),Ie.subscribe(s=>s.previewTemplate,s=>{Ie.setState(l=>{const c=l.templates.findIndex(d=>d.id===s.id)||0;l.templates[c]=s})},{equalityFn:fi}),Ie.subscribe(s=>s.previewTemplate.id,(s,l)=>{s!==l&&He().updatePreviewTemplateId(Nn,s??"default")}),Ie.subscribe(s=>s.templates,(s,l)=>{JSON.stringify(s)!==JSON.stringify(l)&&He().updateTemplates(Nn,s)},{equalityFn:fi})});function V$({template:e,device:t,builder:n}){const i=Ze(t),o=e.placements[i];o.toggle&&Array.isArray(o.toggle)&&o.toggle.forEach(a=>{const s=e.elements[a];s!=null&&Hn({sectionId:s.id,settings:s.settings,device:t,builder:n,clonedFromId:s.cloned_from})})}function B$({template:e,device:t,builder:n}){const i=Ze(t),o=e.placements[i];Object.keys(o).forEach(a=>{a!=="toggle"&&o[a].forEach(s=>{Array.isArray(s)&&s.forEach(l=>{const c=e.elements[l];c!=null&&Hn({sectionId:c.id,settings:c.settings,device:t,builder:n,clonedFromId:c.cloned_from})})})})}function F$({template:e,device:t,builder:n}){Object.keys(e.row_configurations).forEach(i=>{const o=e.row_configurations[i],a=i+"_"+n;Hn({sectionId:a,settings:o,device:t,builder:n})})}const ps={updateResponsiveControl(e,t){const i=(e==="header"?Ie:Me).getState().previewTemplate;V$({template:i,device:t,builder:e}),B$({template:i,device:t,builder:e}),F$({template:i,device:t,builder:e})},refreshView(){var e,t;(t=(e=window.wp.customize)==null?void 0:e.previewer)==null||t.refresh()},getPreviewerWindow(){var e,t,n;return(n=(t=(e=window.wp)==null?void 0:e.customize)==null?void 0:t.previewer)==null?void 0:n.targetWindow()}},z$=()=>{const e=document.querySelector("#customize-theme-controls");if(e){const t=document.createElement("div");t.className="customize-pane-child",t.id="brandy-panel",e.appendChild(t)}},Z$=()=>{const e=document.querySelector("#customize-theme-controls");if(e){const t=document.createElement("div");t.id="brandy-section",e.appendChild(t)}},W$=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-header-placements",window.jQuery(t).insertAfter(e)}},G$=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-footer-placements",window.jQuery(t).insertAfter(e)}},U$=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-block-inserter");t.id="brandy-block-inserter",window.jQuery(t).insertBefore(e)}},Y$=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-string-variables");t.id="brandy-string-variables",window.jQuery(t).insertAfter(e)}},X$=()=>{z$(),Z$(),W$(),G$(),U$(),Y$()};function Of(){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:r.jsx("path",{d:"M9.49988 6L15.4999 12L9.49988 18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function Nf(){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",children:[r.jsx("path",{d:"M2.27332 4.27275C2.16659 3.58035 2.70226 2.95578 3.40284 2.95578H11.5962C12.2967 2.95578 12.8324 3.58035 12.7257 4.27275L11.1994 14.174C11.1135 14.7314 10.6338 15.1428 10.0699 15.1428H4.92911C4.36515 15.1428 3.88551 14.7314 3.79959 14.174L2.27332 4.27275Z",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.71429"}),r.jsx("rect",{x:"-0.00012207",y:"2.09869",width:"15",height:"1.83603",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M9.64204 2.09825C9.64204 2.09825 8.68265 2.09825 7.49918 2.09825C6.31571 2.09825 5.35632 2.09825 5.35632 2.09825C5.35632 0.939383 6.31571 -6.41293e-05 7.49918 -6.41293e-05C8.68265 -6.41293e-05 9.64204 0.939383 9.64204 2.09825Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}const J$=window.React.createContext,K$=window.React.useMemo;J$({});function q$(){const e=Ie(u=>u.templates),t=Ie(u=>u.currentTemplateId),n=Ie(u=>u.setCurrentTemplateId),i=Ie(u=>u.previewTemplate),o=Ie(u=>u.choosePreviewTemplate),a=Ie(u=>u.removeTemplate),s=K$(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),Cn("header","new_header")},c=u=>{s===u?Cn("header","settings"):o(u)},d=u=>{window.confirm("Do you want to delete this template?")&&(u===s&&c("preset_default"),u===t&&n("preset_default"),a(u))};return r.jsxs(eH,{children:[r.jsxs(tH,{children:[r.jsx(nH,{children:N("Global header")}),r.jsx(dt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(rH,{children:N("Your headers")}),r.jsx(iH,{children:N("Choose to preview and click again to customize")}),r.jsx(oH,{children:e.map(u=>{var h;return r.jsx(Q$,{isActive:u.id===s,templateId:u.id,onChoose:f=>{f.preventDefault(),f.stopPropagation(),c(u.id)},onRemove:f=>{f.preventDefault(),f.stopPropagation(),d(u.id)},children:(h=u.settings)==null?void 0:h.name},u.id)})}),r.jsx(aH,{children:r.jsx(Fo,{primary:!0,onClick:l,children:N("Create new header")})})]})}const Q$=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>{const s=r.jsx(sH,{children:e});return r.jsxs(lH,{className:`flex items-center justify-between rounded-[5px] group bg-white pl-4 pr-1 py-3 text-[#606060] text-[14px] cursor-pointer ${t&&"border-black [&_svg_*]:stroke-black"}`,onClick:i,$_css2:[{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},ue(["&:hover .arrow-icon svg *{","}"],{stroke:"#000 !important"})],children:[(e??"").toString().length>28?r.jsx(_t,{title:e,children:s}):s,r.jsxs("span",{className:"flex gap-2 items-center",children:[n!=="preset_default"&&r.jsx("div",{className:"trash-icon invisible opacity-0 group-hover:visible group-hover:opacity-100 block [&_svg_*]:fill-delete-color [&_svg_*]:stroke-delete-color transition-all ease-in-out duration-200",onClick:o,children:r.jsx(Nf,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Of,{})})]})]},a)};var eH=v("div")({display:"flex",flexGrow:"1",flexDirection:"column"}),tH=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem"}),nH=v("p")({marginBottom:"0.25rem",fontWeight:"600"}),rH=v("div")({"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"16px",fontSize:"14px",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),iH=v("div")({padding:"1rem",paddingBottom:"0px"}),oH=v("div")({display:"grid",gap:"1rem",padding:"1rem"}),aH=v("div")({marginTop:"auto",borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))",padding:"1rem","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),sH=v("span")` overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; `,lH=v("div").withConfig({displayName:"Headers___StyledDiv7",componentId:"sc-1aiksvl-0"})(["",""],e=>e.$_css2);function cH(){return r.jsx(q$,{})}const dH=window.React.createContext,uH=window.React.useMemo;dH({});function hH(){const e=Me(u=>u.templates),t=Me(u=>u.currentTemplateId),n=Me(u=>u.setCurrentTemplateId),i=Me(u=>u.previewTemplate),o=Me(u=>u.choosePreviewTemplate),a=Me(u=>u.removeTemplate),s=uH(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),Cn("footer","new_footer")},c=u=>{s===u?Cn("footer","settings"):o(u)},d=u=>{window.confirm("Do you want to delete this template?")&&(u===s&&c("preset_default"),u===t&&n("preset_default"),a(u))};return r.jsxs("div",{className:"flex flex-col grow",children:[r.jsxs(pH,{children:[r.jsx(gH,{children:N("Global footer")}),r.jsx(dt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(mH,{children:N("Your footers")}),r.jsx(vH,{children:N("Choose your footer to preview then click again to customize")}),r.jsx("div",{className:"grid gap-4 p-4",children:e.map(u=>{var h;return r.jsx(fH,{isActive:u.id===s,templateId:u.id,onChoose:f=>{f.preventDefault(),f.stopPropagation(),c(u.id)},onRemove:f=>{f.preventDefault(),f.stopPropagation(),d(u.id)},children:(h=u.settings)==null?void 0:h.name},u.id)})}),r.jsx(wH,{className:"p-4 mt-auto",$_css2:[{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Fo,{primary:!0,onClick:l,children:N("Create new footer")})})]})}const fH=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>r.jsxs(xH,{className:`flex items-center justify-between rounded-[5px] group bg-white pl-4 pr-1 py-3 text-[#606060] text-[14px] cursor-pointer ${t&&"border-black [&_svg_*]:stroke-black"}`,onClick:i,$_css3:[{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},ue(["&:hover .arrow-icon svg *{","}"],{stroke:"#000 !important"})],children:[e,r.jsxs("span",{className:"flex gap-2 items-center",children:[n!=="preset_default"&&r.jsx("div",{className:"invisible opacity-0 group-hover:visible group-hover:opacity-100 block [&_svg_*]:fill-delete-color [&_svg_*]:stroke-delete-color transition-all ease-in-out duration-200",onClick:o,children:r.jsx(Nf,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Of,{})})]})]},a);var pH=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem"}),gH=v("p")({marginBottom:"0.25rem",fontWeight:"600"}),mH=v("div")({"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"16px",fontSize:"14px",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),vH=v("div")({padding:"1rem",paddingBottom:"0px"}),wH=v("div")`${e=>e.$_css2}`,xH=v("div").withConfig({displayName:"Footers___StyledDiv5",componentId:"sc-1jo1m6-0"})(["",""],e=>e.$_css3);function bH(){return r.jsx(hH,{})}var yu,Cu;const yH=((Cu=(yu=window.brandyCustomizerData)==null?void 0:yu.general)==null?void 0:Cu.sections)??[];function CH(){return r.jsx(_H,{className:"brandy-general-panel__content",children:r.jsx("div",{className:"general-settings__navigations",children:yH.map(e=>r.jsxs(SH,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),Cn("general-settings",e.id)},children:[r.jsx(jH,{children:e.title}),r.jsx("span",{children:r.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{width:"24",height:"24",rx:"2",fill:"transparent"}),r.jsx(kH,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var _H=v("div")({marginTop:"1rem"}),SH=v("div")({display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"space-between",borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:last-child":{borderBottomWidth:"0px"},"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}}),jH=v("span")({fontWeight:"500"}),kH=v("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1qa3lxj-0"})({".group:hover &":{fill:"#2271B1"}}),_u,Su;const EH=((Su=(_u=window.brandyCustomizerData)==null?void 0:_u.woocommerce)==null?void 0:Su.sections)??[];function DH(){return r.jsx($H,{className:"brandy-woocommerce-panel__content",children:r.jsx("div",{className:"woocommerce-settings__navigations",children:EH.map(e=>r.jsxs(HH,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),Cn("woocommerce-settings",e.id)},children:[r.jsx(MH,{children:e.title}),r.jsx("span",{children:r.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{width:"24",height:"24",rx:"2",fill:"transparent"}),r.jsx(IH,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var $H=v("div")({marginTop:"1rem"}),HH=v("div")({display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"space-between",borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:last-child":{borderBottomWidth:"0px"},"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}}),MH=v("span")({fontWeight:"500"}),IH=v("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1n2dri3-0"})({".group:hover &":{fill:"#2271B1"}});const TH=window.React.useContext;function LH(){const{panelData:e}=TH(U1);return e.id==="header"?r.jsx(cH,{}):e.id==="footer"?r.jsx(bH,{}):e.id==="woocommerce-settings"?r.jsx(DH,{}):e.id==="general-settings"?r.jsx(CH,{}):"Not found"}const AH=window.React.useContext;function RH(){const{panelData:e,goBack:t}=AH(U1);return r.jsxs(OH,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(NH,{children:[r.jsx(PH,{children:N("Customizing")}),r.jsx(VH,{children:(e==null?void 0:e.title)??"Not found"})]})]})}var OH=v("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px",borderTopWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",borderTopColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),NH=v("div")({width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),PH=v("div")({fontSize:"13px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),VH=v("div").withConfig({displayName:"Header___StyledDiv4",componentId:"sc-1uapsz7-0"})({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const BH=window.React.createContext,FH=window.React.useCallback,wu=window.React.useMemo,U1=BH({});function Pf({builder:e,title:t}){const n=FH(()=>{const a=window.wp.customize.panel(e);a&&a.expanded(!1)},[e]),i=wu(()=>({id:e,title:t||(e==="header"?"Header":"Footer")}),[e,t]),o=wu(()=>({goBack:n,panelData:i,builder:e}),[n,i,e]);return r.jsx(U1.Provider,{value:o,children:r.jsxs(zH,{className:"brandy-panel-wrapper",children:[r.jsx(RH,{}),r.jsx(LH,{})]})})}var zH=v("div").withConfig({displayName:"BrandyPanel___StyledDiv",componentId:"sc-1y7egfl-0"})({display:"flex",height:"100%",flexDirection:"column"});function Vf({items:e,builder:t,row:n,col:i=0}){const o=te(t)(p=>p.setElements),{current:a}=_e(),s=te(t)(p=>p.removeElement),l=te(t)(p=>p.selectElement),c=te(t)(p=>{var m;return(m=p.chosenElement)==null?void 0:m.id}),d=No(p=>p.startDragging),u=No(p=>p.stopDragging),h=p=>{o({row:n,col:i,changedList:p.map(m=>m.id),device:a})},f=p=>m=>{m.preventDefault(),m.stopPropagation(),s({row:n,col:i,removeId:p,device:a})},g=p=>m=>{m.preventDefault(),m.stopPropagation(),setTimeout(()=>{l({element:p})},200),Cn(t,p.id,p.cloned_from,"settings")};return r.jsx(zr.ReactSortable,{list:e,setList:h,group:`${t}-elements-builder`,className:"flex gap-3 items-center w-full h-full element-sortable-container",tag:"div",animation:150,easing:"ease-in-out",ghostClass:"element-builder-sortable-ghost",chosenClass:"element-builder-sortable-chosen",onStart:()=>{d()},onEnd:()=>{u()},children:e.map(p=>{var m;return r.jsxs(ZH,{className:"builder-item",onClick:g(p),$_css:[{position:"relative",display:"flex",width:"fit-content",alignItems:"center",justifyContent:"space-between","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"12px",paddingRight:"12px",paddingTop:"6px",paddingBottom:"6px",paddingInlineEnd:"3px",fontSize:"14px","--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"},{borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",outlineStyle:"solid",outlineWidth:"1px",outlineColor:"transparent"},{"&:hover":{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))","--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},c===p.id&&{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))",outlineColor:"#1E1E1E"}],children:[r.jsx("span",{children:p.title??((m=window.brandyElements[p.id])==null?void 0:m.title)??""}),r.jsx(WH,{onClick:f(p.id),children:r.jsx(w1,{})})]},p.id)})})}var ZH=v("span")`${e=>e.$_css}`,WH=v("button").withConfig({displayName:"ElementSortable___StyledButton",componentId:"sc-14le66y-0"})({position:"relative",display:"inline-flex",height:"24px",width:"24px",alignItems:"center",justifyContent:"flex-end",padding:"8px","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"});const GH=window.React,Uc=window.React.useEffect,UH=window.React.useMemo,Bf=window.React.useRef,Ff=window.React.useState,YH=v.div.withConfig({displayName:"useAddElementPopup__StyledListItem",componentId:"sc-hvpjws-0"})({display:"grid",gridAutoRows:"minmax(0, 1fr)",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"5px"}),XH=v.div.withConfig({displayName:"useAddElementPopup__StyledItem",componentId:"sc-hvpjws-1"})({display:"flex",minHeight:"100px",cursor:"pointer",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"5px",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"8px",paddingRight:"8px",paddingTop:"10px",paddingBottom:"10px",textAlign:"center",fontSize:"12px","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 248 252 / var(--tw-bg-opacity, 1))"}});var JH=v(XH).withConfig({displayName:"useAddElementPopup___StyledStyledItem",componentId:"sc-hvpjws-2"})(["",""],e=>e.$_css5);const KH=()=>r.jsx("div",{className:"text-brandy-text text-center",children:"No element found"}),qH=GH.forwardRef(({builder:e="header",onClose:t,row:n,col:i,lastPush:o=!0},a)=>{const{current:s}=_e(),l=te(e)(w=>w.previewTemplate.placements[Ze(s)]),c=te(e)(w=>w.addElement),[d,u]=Ff(""),h=w=>()=>{c({row:n,col:i,lastPush:o,addId:w,device:s}),t()},f=w=>{typeof w!="number"&&u(w)},{unusedElements:g}=z1(l,e),p=UH(()=>d===""?g:g.filter(w=>{var E;return(w.title??((E=window.brandyElements[w.id])==null?void 0:E.title)??"").toLowerCase().includes(d.toLowerCase())}),[l,d,g]),m=Bf(null);return Uc(()=>{var w,E;(E=(w=m.current)==null?void 0:w.querySelector("input"))==null||E.focus()},[m]),r.jsx(QH,{className:"add-element-popup",ref:a,$_css2:[{zIndex:"99",cursor:"default",padding:"1rem"},{backgroundColor:"transparent"},{position:"absolute",bottom:"calc(100% - 7px)",left:"50%","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"},{"@keyframes reveal":{"0%":{transform:"translateX(-50%) scale(.8) translateY(50px)",opacity:"0.7"},"100%":{transform:"translateX(-50%) scale(1) translateY(0px)",opacity:"1"}},animation:"reveal .3s forwards"}],children:r.jsxs(eM,{style:{filter:"drop-shadow(0px 0px 30px rgba(42, 48, 57, 0.20))"},onClick:w=>{w.stopPropagation(),w.preventDefault()},$_css3:[{"&::before":{content:"var(--tw-content)",position:"absolute",left:"50%",top:"calc(100% - 25px)","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-rotate":"225deg",borderRadius:"5px",borderWidth:"15px",borderStyle:"solid",borderBottomColor:"transparent","--tw-border-opacity":"1",borderLeftColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))",borderRightColor:"transparent",borderTopColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))","--tw-content":"''"}},{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{borderRadius:"5px"},{cursor:"auto"},{width:"66.666667%",minWidth:"360px"}],children:[r.jsxs(tM,{children:[r.jsxs(nM,{children:[r.jsx(rM,{children:N("Add an element")}),r.jsx(iM,{onClick:t,$_css4:[{cursor:"pointer",padding:"7px","& svg":{height:"12px",width:"12px"}},ue` svg * { ${{fill:"#A1ABB7"}} } `],children:r.jsx(w1,{})})]}),r.jsx(oM,{searchText:d,onSearch:f,ref:m,placeholder:N("Search element")})]}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsx("div",{className:"p-4",children:p.length<=0?r.jsx(KH,{}):r.jsx(YH,{children:p.map(w=>{var k,S;const E=w.icon??((k=window.brandyElements[w.id])==null?void 0:k.icon)??"";return r.jsxs(JH,{onClick:h(w.id),$_css5:[ue` &:hover svg { *[fill] { ${{fill:"#2271B1"}} } *[stroke] { ${{stroke:"#2271B1"}} } } `],children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:E}}),w.title??((S=window.brandyElements[w.id])==null?void 0:S.title)]},w.id)})})})})]})})});function zf({activatorNode:e=null,builder:t="header",col:n=1,row:i="top",lastPush:o=!0}){const a=Bf(null),[s,l]=Ff(!1);Uc(()=>{s?window.jQuery("brandy-placements").css("zIndex",10):window.jQuery("brandy-placements").css("zIndex",9)},[s]);const c=()=>{var f;const h=document.querySelector("#customize-preview > iframe");window.jQuery((f=h==null?void 0:h.contentWindow)==null?void 0:f.document).off("click",c),l(!1)},d=()=>{var f;const h=document.querySelector("#customize-preview > iframe");window.jQuery((f=h==null?void 0:h.contentWindow)==null?void 0:f.document).on("click",c),l(!0)};return Uc(()=>{const h=f=>{e==null&&a.current==null&&c();const g=e??a.current;g!=null&&g.contains(f.target)||c()};return window.jQuery(document).on("click","body",h),()=>{window.jQuery(document).off("click","body",h)}},[e]),{contextHolder:s?r.jsx(qH,{ref:a,builder:t,row:i,col:n,onClose:()=>{c()},lastPush:o}):!1,popupApi:{open:d,close:c}}}var QH=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv",componentId:"sc-hvpjws-3"})(["",""],e=>e.$_css2),eM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv2",componentId:"sc-hvpjws-4"})(["",""],e=>e.$_css3),tM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv3",componentId:"sc-hvpjws-5"})({borderBottomWidth:"1px",borderColor:"#dddddd4d",padding:"1rem"}),nM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv4",componentId:"sc-hvpjws-6"})({marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),rM=v("h4").withConfig({displayName:"useAddElementPopup___StyledH",componentId:"sc-hvpjws-7"})({fontSize:"16px",fontWeight:"500"}),iM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv5",componentId:"sc-hvpjws-8"})(["",""],e=>e.$_css4),oM=v(Zr).withConfig({displayName:"useAddElementPopup___StyledSearchBox",componentId:"sc-hvpjws-9"})({height:"44px !important",gap:"3px !important","& input":{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"},"& svg *":{fill:"#757575"}});const aM=window.React.useContext,sM=window.React.useMemo,lM=window.React.useRef,cM=window.React.useState,dM=ue([".add-icon{transition:all ease-in-out 0.2s;}&:hover{.add-icon{visibility:visible;opacity:1;}}"]);function uM({row:e,colPosition:t,elements:n,position:i},o){const[a,s]=cM(!1),l=No(g=>g.isDragging),c=lM(null),{builder:d}=aM(Y1),u=sM(()=>!l&&a,[l,a]),{popupApi:h,contextHolder:f}=zf({activatorNode:c.current,builder:d,row:e,col:t,lastPush:i==="left"||i==="middle"});return r.jsxs(hM,{onClick:()=>{h.open()},ref:c,className:ke(["builder-col",`${i}-col`,l&&"is-on-dragging",u&&"show-add-btn"]),"data-is-empty":n.length<1,"data-builder":d,onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},$_css2:[{position:"relative",display:"flex",flex:"1 1 0%",alignItems:"center",justifyContent:"center",padding:"0.5rem"},...window.brandyCustomizerData.rtl?[{borderRightWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))","&:first-child":{borderRightWidth:"0px"}},{"&:last-child":{borderEndEndRadius:"5px",borderStartEndRadius:"5px",borderLeftWidth:"1px"}}]:[{borderLeftWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))","&:first-child":{borderLeftWidth:"0px"}},{"&:last-child":{borderEndEndRadius:"5px",borderStartEndRadius:"5px",borderRightWidth:"1px"}}],{borderBottomWidth:"1px",borderTopWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))"},dM],children:[r.jsx(Vf,{builder:d,items:n,row:e,col:t}),f]},o)}var hM=v("div").withConfig({displayName:"PlacementCol___StyledDiv",componentId:"sc-1qvtqv7-0"})(["",""],e=>e.$_css2);const fM=window.React.useContext,pM=window.React.useMemo,Zf=ue` ${{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}} `,gM=v.div.withConfig({displayName:"RowPlacement__StyledRowWrapper",componentId:"sc-1g1fjfw-0"})(()=>[{display:"flex",minHeight:"50px",cursor:"pointer",borderRadius:"0.375rem"},Zf,{"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 249 249 / var(--tw-bg-opacity, 1))"}},{"&:hover":{borderColor:"transparent"}},{"&:hover":{"--tw-shadow":"0px 4px 10px 0px rgba(177, 177, 177, 0.15)","--tw-shadow-colored":"0px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}]);var mM=v(gM).withConfig({displayName:"RowPlacement___StyledStyledRowWrapper",componentId:"sc-1g1fjfw-1"})(["position:relative;",""],e=>e.$_css2);function cc({row:e}){const{builder:t}=fM(Y1),n=te(t)(c=>c.chosenRow),i=()=>{Cn(t,`${e}_${t}`,null,"settings")},{current:o}=_e(),a=te(t)(c=>c.previewTemplate.placements[Ze(o)][e].reduce((d,u)=>(d.push(u.filter(h=>c.previewTemplate.elements[h]!=null).map(h=>c.previewTemplate.elements[h])),d),[])),s=pM(()=>n==null?void 0:n.includes(e),[n,e]),l=te(t)(c=>c.previewTemplate.row_configurations[e].enabled_devices.includes(Ze(o)));return r.jsxs(mM,{className:"group builder-row",$_css2:l?"":` &::before { content: "Not visible on this device"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; background-color: #cecece; border-radius: 5px; transition: none; z-index: 1000; } `,children:[r.jsx(vM,{onClick:i,$_css3:[{borderEndStartRadius:"5px",borderStartStartRadius:"5px",borderWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))",padding:"10px"},s&&{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))","& svg *":{fill:"#fff"}},{".group:hover &":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))"},"& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},".group:hover & svg *":{fill:"#fff"}},Zf],children:r.jsx(ah,{})}),r.jsx("div",{className:"w-full flex",children:a.map((c,d)=>{const u=Math.round(a.length/2);let h="left";return d+1===u&&a.length%2!=0&&(h="middle"),d+1>u&&(h="right"),r.jsx(uM,{row:e,colPosition:d,position:h,elements:c},d)})})]})}var vM=v("button").withConfig({displayName:"RowPlacement___StyledButton",componentId:"sc-1g1fjfw-2"})(["",""],e=>e.$_css3);const wM=window.React.useMemo,xM=window.React.useRef,bM=window.React.useState;function yM(){const{current:e}=_e(),t=te("header")(h=>h.previewTemplate.placements[Ze(e)].toggle.map(f=>h.previewTemplate.elements[f])),n=te("header")(h=>h.chosenRow),i=xM(null),{contextHolder:o,popupApi:a}=zf({activatorNode:i.current,row:"toggle",builder:"header",col:1}),[s,l]=bM(!1),{isDragging:c}=No(),d=wM(()=>!c&&s,[c,s]),u=()=>{Cn("header","toggle_off_canvas",null,"settings")};return r.jsxs(CM,{className:"group",children:[r.jsxs(_M,{className:"toggle-header",onClick:u,$_css2:[{display:"flex",alignItems:"center",gap:"0.5rem",borderStartEndRadius:"5px",borderStartStartRadius:"5px",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"10px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"},".group:hover & svg *":{fill:"#fff"}},n==="toggle"&&ue([""," svg{*[fill]{fill:white;}*[stroke]{stroke:white;}}"],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1)) !important","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}),ue(["svg{*{transition:all ease-in-out 0.2s;}}"])],children:[r.jsx("span",{children:r.jsx(ah,{})}),r.jsx(SM,{children:"Toggle off-canvas"})]}),r.jsx(Zn,{className:"flex-1 group-hover:border-transparent group-hover:bg-gutenberg-white border border-dashed border-brandy-border border-t-0 rounded-es-[5px] rounded-ee-[5px transition-all ease-in-out duration-base",onClick:a.open,onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:r.jsx(jM,{className:ke(["toggle-off-elements",d?"show-add-btn":""]),ref:i,children:r.jsx(Vf,{builder:"header",items:t||[],row:"toggle"})})}),o]})}var CM=v("div")({position:"relative",display:"flex",height:"100%",cursor:"pointer",flexDirection:"column"}),_M=v("div")`${e=>e.$_css2}`,SM=v("span")({fontSize:"12px",fontWeight:"600"}),jM=v("div").withConfig({displayName:"Toggle___StyledDiv3",componentId:"sc-15k3s0k-0"})({position:"relative",height:"100%",minHeight:"100px",padding:"10px"});const kM=window.React.createContext,EM=window.React.useMemo,Y1=kM({});function DM({builder:e}){const{current:t}=_e(),n=te(e)(o=>{const s=o.previewTemplate.placements[Ze(t)];return!!p2(s).includes("toggle_button")}),i=EM(()=>({builder:e}),[e]);return r.jsx($M,{$_css:[{display:"grid",gap:"16px",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem"},n?{gridTemplateColumns:"auto 1fr"}:{gridTemplateColumns:"repeat(1, minmax(0, 1fr))"}],children:r.jsxs(Y1.Provider,{value:i,children:[n&&r.jsx(HM,{children:r.jsx(yM,{})}),r.jsxs(MM,{children:[r.jsx(cc,{row:"top"}),r.jsx(cc,{row:"middle"}),r.jsx(cc,{row:"bottom"})]})]})})}var $M=v("div")`${e=>e.$_css}`,HM=v("div")({height:"100%",width:"170px"}),MM=v("div").withConfig({displayName:"PlacementsBuilder___StyledDiv3",componentId:"sc-1m09crd-0"})({display:"flex",flex:"1 1 auto",flexDirection:"column",gap:"1rem"}),IM=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=xu[t.format]||xu.default;window.clipboardData.setData(h,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),s.addRange(a);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");c=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),i=AM("message"in t?t.message:LM),window.prompt(i,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var OM=RM;const NM=Gt(OM);const Wf=window.React.useState,PM=window.ReactDOM.createPortal,VM=window.brandyCustomizerData.content_variables??{};function BM(){const[e,t]=Wf(!1);return r.jsxs(zM,{onClick:()=>{t(n=>!n)},children:[r.jsx("span",{children:"Variables selection"}),e&&PM(r.jsx(FM,{onClose:()=>{t(!1)}}),document.querySelector("body"))]})}let bu;function FM({onClose:e}){const[t,n]=Wf(!1);return r.jsxs(ZM,{className:"variable-modal",onClick:i=>{i.stopPropagation()},children:[r.jsxs(WM,{children:[r.jsx(GM,{children:N("Click to copy and paste to use in some input settings")}),r.jsx(UM,{onClick:e,className:"group",children:r.jsxs("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("g",{clipPath:"url(#clip0_4112_69147)",children:r.jsx(YM,{d:"M11.7465 11.0349C11.9074 11.1958 11.9979 11.4141 11.9979 11.6417C11.9979 11.8694 11.9074 12.0877 11.7465 12.2486C11.5855 12.4096 11.3672 12.5 11.1396 12.5C10.912 12.5 10.6937 12.4096 10.5327 12.2486L5.99964 7.71412L1.46515 12.2472C1.30419 12.4081 1.08589 12.4986 0.858264 12.4986C0.630638 12.4986 0.412335 12.4081 0.25138 12.2472C0.0904241 12.0862 2.39843e-09 11.8679 0 11.6403C-2.39843e-09 11.4127 0.0904241 11.1944 0.25138 11.0334L4.78587 6.50036L0.252807 1.96586C0.0918518 1.80491 0.00142799 1.5866 0.001428 1.35898C0.001428 1.13135 0.0918518 0.913049 0.252807 0.752094C0.413763 0.591138 0.632066 0.500714 0.859692 0.500714C1.08732 0.500714 1.30562 0.591138 1.46658 0.752094L5.99964 5.28659L10.5341 0.751379C10.6951 0.590424 10.9134 0.5 11.141 0.5C11.3686 0.5 11.5869 0.590424 11.7479 0.751379C11.9089 0.912335 11.9993 1.13064 11.9993 1.35826C11.9993 1.58589 11.9089 1.80419 11.7479 1.96515L7.21341 6.50036L11.7465 11.0349Z",fill:"#A1ABB7"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_4112_69147",children:r.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 0.5)"})})})]})})]}),r.jsx(XM,{children:Object.entries(VM).map(([i,o],a)=>r.jsxs(JM,{onClick:()=>{NM(`[${i}]`),clearTimeout(bu),n(a),bu=setTimeout(()=>{n(!1)},2e3)},children:[r.jsxs(KM,{children:["[",i,"]",t===a&&r.jsx(qM,{children:N("Copied")})]}),r.jsx(QM,{dangerouslySetInnerHTML:{__html:o}})]},a))})]})}var zM=v("div")({cursor:"pointer",borderRadius:"3px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"12px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{backgroundColor:"rgba(209, 234, 255, 0.70)","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}}),ZM=v("div")({position:"absolute",left:"50%",top:"50%",zIndex:"100000000",maxWidth:"700px","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-translate-y":"-50%",borderRadius:"2px",borderWidth:"1px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"1rem","--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),WM=v("div")({marginBottom:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),GM=v("p")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),UM=v("span")({cursor:"pointer",padding:"0.25rem"}),YM=v("path")({".group:hover &":{fill:"#000"}}),XM=v("div")({display:"flex",maxHeight:"400px",flexDirection:"column",overflow:"auto"}),JM=v("div")({display:"grid",cursor:"pointer",gridTemplateColumns:"250px 1fr",borderWidth:"1px",borderBottomWidth:"0px",borderStyle:"solid","&:last-child":{borderBottomWidth:"1px"},"& *":{padding:"0.75rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"},"&:hover *":{"--tw-bg-opacity":"1",backgroundColor:"rgb(248 248 248 / var(--tw-bg-opacity, 1))"}}),KM=v("span")({fontWeight:"600"}),qM=v("span")({fontSize:"12px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(20 134 92 / var(--tw-text-opacity, 1))"}),QM=v("span").withConfig({displayName:"StringVariablesSelection___StyledSpan4",componentId:"sc-u8jk1j-0"})({borderLeftWidth:"1px"});const eI=(e="header")=>{let t=null;Mi.panel(e,function(n){const i=document.getElementById("customize-preview");i!=null&&n.expanded.bind(function(o){const a=document.getElementById(`brandy-${e}-placements`);a!=null&&(a.classList.add("opened"),o&&(i.classList.add("with-opened-placements"),t=Hr.createRoot(a),t.render(r.jsx(DM,{builder:e}))),o===!1&&(i.classList.remove("with-opened-placements"),a.classList.remove("opened"),setTimeout(()=>{t&&(t.unmount(),t=null)},200)))})})},tI=(e="header")=>{let t=null;Mi.panel(e,function(n){const i=document.querySelector(`#sub-accordion-panel-${e}`);i!=null&&n.expanded.bind(function(o){const a=ps.getPreviewerWindow();o&&a!=null&&(e==="header"&&a.scrollTo({top:0,behavior:"smooth"}),e==="footer"&&setTimeout(()=>{a.scrollTo({top:a.document.body.scrollHeight+1e4,behavior:"smooth"})},300)),o&&t==null&&(t=Hr.createRoot(i),t.render(r.jsx(Pf,{builder:e,children:void 0}))),o===!1&&setTimeout(()=>{t!=null&&(t.unmount(),t=null)},500)})})},nI=(e,t)=>{let n=null;const i=e;Mi.panel(i,function(o){const a=document.querySelector(`#sub-accordion-panel-${i}`);a!=null&&o.expanded.bind(function(s){s&&n==null&&(n=Hr.createRoot(a),n.render(r.jsx(Pf,{builder:i,title:t,children:void 0}))),s===!1&&setTimeout(()=>{n!=null&&(n.unmount(),n=null)},500)})})},rI=()=>{let e=null;if(document.getElementById("customize-preview")==null)return;const n=document.getElementById("brandy-string-variables");n!=null&&(e=Hr.createRoot(n),e.render(r.jsx(BM,{})))};document.addEventListener("DOMContentLoaded",function(){X$(),["header","footer"].forEach(t=>{eI(t),tI(t)}),(window.brandyCustomizerData.extra_panels??[]).forEach(t=>{nI(t.id,t.title)}),rI()});setTimeout(()=>{window.jQuery(document).ready(function(){const e=new URLSearchParams(window.location.search);if(e.get("action")==="brandy_quick_setting"){const t=e.get("panel"),n=e.get("section"),i=e.get("child");let o=window.wp.customize.panel(t);t!=null&&o!=null&&(i!=null?Cn(t,i):o.expand());let a=window.wp.customize.section(n);n!=null&&a!=null&&a.expand()}}),window.wp.customize.previewer.bind("ready",function(){var t,n,i,o,a,s,l;const e=ps.getPreviewerWindow();(i=(n=(t=e==null?void 0:e.wp)==null?void 0:t.customize)==null?void 0:n.selectiveRefresh)==null||i.bind("render-partials-response",function(){setTimeout(()=>{e==null||e.dispatchEvent(new Event("resize"))},0),setTimeout(()=>{e==null||e.dispatchEvent(new Event("partials-refreshed"))},0),window.wp.customize("unsaved_header_settings")&&window.wp.customize("unsaved_header_settings")({}),window.wp.customize("unsaved_footer_settings")&&window.wp.customize("unsaved_footer_settings")({})}),window.wp.customize.bind("save-request-params",function(c){var d,u;if((d=c.customized)!=null&&d.includes("header_settings")){const h=Ie.getState();c.header_settings=JSON.stringify({current_template_id:h.currentTemplateId,templates:h.templates})}if((u=c.customized)!=null&&u.includes("footer_settings")){const h=Me.getState();c.footer_settings=JSON.stringify({current_template_id:h.currentTemplateId,templates:h.templates})}return c}),window.jQuery((l=(s=(a=(o=window.wp)==null?void 0:o.customize)==null?void 0:a.previewer)==null?void 0:s.targetWindow())==null?void 0:l.document).on("click",".edit-button",function(c){const d=c.target.closest(".editable-part");if(d){c.preventDefault(),c.stopPropagation();const u=d.dataset.sectionId,h=d.dataset.builder;u&&Cn(h,u,null,"settings")}})})},1);window.wp.customize.bind("ready",function(){window.wp.customize.previewer.bind("ready",function(){window.wp.customize.previewedDevice.bind(function(e){u2.setState(()=>({current:e})),ps.updateResponsiveControl("header",e),ps.updateResponsiveControl("footer",e)})})});