var Dp=Object.defineProperty;var $p=(e,t,n)=>t in e?Dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dd=(e,t,n)=>($p(e,typeof t!="symbol"?t+"":t,n),n);/* empty css */const Hi=window.wp.customize;var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lu(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 Au={exports:{}},vs={};/** * @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 Hp=window.React,Mp=Symbol.for("react.element"),Ip=Symbol.for("react.fragment"),Tp=Object.prototype.hasOwnProperty,Lp=Hp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ap={key:!0,ref:!0,__self:!0,__source:!0};function Ru(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)Tp.call(t,i)&&!Ap.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:Mp,type:e,key:a,ref:s,props:o,_owner:Lp.current}}vs.Fragment=Ip;vs.jsx=Ru;vs.jsxs=Ru;Au.exports=vs;var r=Au.exports,Dr={},ud=window.ReactDOM;Dr.createRoot=ud.createRoot,Dr.hydrateRoot=ud.hydrateRoot;var It=function(){return It=Object.assign||function(t){for(var n,i=1,o=arguments.length;i0?ht(Mi,--sn):0,gi--,lt===10&&(gi=1,xs--),lt}function bn(){return lt=sn2||dc(lt)>3?"":" "}function Wp(e,t){for(;--t&&bn()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return ys(e,Aa()+(t<6&&_r()==32&&bn()==32))}function uc(e){for(;bn();)switch(lt){case e:return sn;case 34:case 39:e!==34&&e!==39&&uc(lt);break;case 40:e===41&&uc(e);break;case 92:bn();break}return sn}function Gp(e,t){for(;bn()&&e+lt!==47+10;)if(e+lt===42+42&&_r()===47)break;return"/*"+ys(t,sn-1)+"*"+Jc(e===47?e:bn())}function Up(e){for(;!dc(_r());)bn();return ys(e,sn)}function Yp(e){return Fp(Ra("",null,null,null,[""],e=zp(e),0,[0],e))}function Ra(e,t,n,i,o,a,s,l,c){for(var d=0,u=0,h=s,f=0,p=0,g=0,m=1,w=1,E=1,j=0,D="",C=o,S=a,x=i,y=D;w;)switch(g=j,j=bn()){case 40:if(g!=108&&ht(y,h-1)==58){La(y+=Se(ul(j),"&","&\f"),"&\f",Pu(d?l[d-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:y+=ul(j);break;case 9:case 10:case 13:case 32:y+=Zp(g);break;case 92:y+=Wp(Aa()-1,7);continue;case 47:switch(_r()){case 42:case 47:io(Xp(Gp(bn(),Aa()),t,n,c),c);break;default:y+="/"}break;case 123*m:l[d++]=jn(y)*E;case 125*m:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+u:E==-1&&(y=Se(y,/\f/g,"")),p>0&&jn(y)-h&&io(p>32?pd(y+";",i,n,h-1,c):pd(Se(y," ","")+";",i,n,h-2,c),c);break;case 59:y+=";";default:if(io(x=fd(y,t,n,d,u,o,l,D,C=[],S=[],h,a),a),j===123)if(u===0)Ra(y,t,x,x,C,a,h,l,S);else switch(f===99&&ht(y,3)===110?100:f){case 100:case 108:case 109:case 115:Ra(e,x,x,i&&io(fd(e,x,x,0,0,o,l,D,o,C=[],h,S),S),o,S,h,l,i?C:S);break;default:Ra(y,x,x,x,[""],S,0,l,S)}}d=u=p=0,m=E=1,D=y="",h=s;break;case 58:h=1+jn(y),p=g;default:if(m<1){if(j==123)--m;else if(j==125&&m++==0&&Bp()==125)continue}switch(y+=Jc(j),j*m){case 38:E=u>0?1:(y+="\f",-1);break;case 44:l[d++]=(jn(y)-1)*E,E=1;break;case 64:_r()===45&&(y+=ul(bn())),f=_r(),u=h=jn(D=y+=Up(Aa())),j++;break;case 45:g===45&&jn(y)==2&&(m=0)}}return a}function fd(e,t,n,i,o,a,s,l,c,d,u,h){for(var f=o-1,p=o===0?a:[""],g=Bu(p),m=0,w=0,E=0;m0?p[j]+" "+D:Se(D,/&\f/g,p[j])))&&(c[E++]=C);return bs(e,t,n,o===0?ws:l,c,d,u,h)}function Xp(e,t,n,i){return bs(e,t,n,Ou,Jc(Vp()),pi(e,2,-2),0,i)}function pd(e,t,n,i,o){return bs(e,t,n,Xc,pi(e,0,i),pi(e,i+1,-1),i,o)}function Fu(e,t,n){switch(Np(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+ze+e+e;case 5936:switch(ht(e,t+11)){case 114:return Le+e+ze+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+ze+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+ze+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Le+e+ze+e+e;case 6165:return Le+e+ze+"flex-"+e+e;case 5187:return Le+e+Se(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+ze+"flex-$1$2")+e;case 5443:return Le+e+ze+"flex-item-"+Se(e,/flex-|-self/g,"")+(Pn(e,/flex-|baseline/)?"":ze+"grid-row-"+Se(e,/flex-|-self/g,""))+e;case 4675:return Le+e+ze+"flex-line-pack"+Se(e,/align-content|flex-|-self/g,"")+e;case 5548:return Le+e+ze+Se(e,"shrink","negative")+e;case 5292:return Le+e+ze+Se(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+Se(e,"-grow","")+Le+e+ze+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"+ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Le+e+e;case 4200:if(!Pn(e,/flex-|baseline/))return ze+"grid-column-align"+pi(e,t)+e;break;case 2592:case 3360:return ze+Se(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Pn(i.props,/grid-\w+-end/)})?~La(e+(n=n[t].value),"span",0)?e:ze+Se(e,"-start","")+e+ze+"grid-row-span:"+(~La(n,"span",0)?Pn(n,/\d+/):+Pn(n,/\d+/)-+Pn(e,/\d+/))+";":ze+Se(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Pn(i.props,/grid-\w+-start/)})?e:ze+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~La(e,"stretch",0)?Fu(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 ze+o+":"+a+d+(s?ze+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"+ze+"$2box$3")+e;case 100:return Se(e,":",":"+ze)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Se(e,"scroll-","scroll-snap-")+e}return e}function Ja(e,t){for(var n="",i=0;i-1&&!e.return)switch(e.type){case Xc:e.return=Fu(e.value,e.length,n);return;case Nu:return Ja([Qn(e,{value:Se(e.value,"@","@"+Le)})],i);case ws:if(e.length)return Pp(n=e.props,function(o){switch(Pn(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Jr(Qn(e,{props:[Se(o,/:(read-\w+)/,":"+fo+"$1")]})),Jr(Qn(e,{props:[o]})),cc(e,{props:hd(n,i)});break;case"::placeholder":Jr(Qn(e,{props:[Se(o,/:(plac\w+)/,":"+Le+"input-$1")]})),Jr(Qn(e,{props:[Se(o,/:(plac\w+)/,":"+fo+"$1")]})),Jr(Qn(e,{props:[Se(o,/:(plac\w+)/,ze+"input-$1")]})),Jr(Qn(e,{props:[o]})),cc(e,{props:hd(n,i)});break}return""})}}var eg={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 tg=window.React.useContext;window.React.useDebugValue;const ng=window.React.createElement;var mi=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Zu="active",Wu="data-styled-version",Cs="6.1.19",Kc=`/*!sc*/ `,Ka=typeof window<"u"&&typeof document<"u",rg=!!(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),_s=Object.freeze([]),vi=Object.freeze({});function ig(e,t,n){return n===void 0&&(n=vi),e.theme!==n.theme&&e.theme||t||n.theme}var Gu=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"]),og=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ag=/(^-|-$)/g;function gd(e){return e.replace(og,"-").replace(ag,"")}var sg=/(a)(d)/gi,fa=52,md=function(e){return String.fromCharCode(e+(e>25?39:97))};function hc(e){var t,n="";for(t=Math.abs(e);t>fa;t=t/fa|0)n=md(t%fa)+n;return(md(t%fa)+n).replace(sg,"$1-$2")}var hl,Uu=5381,si=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Yu=function(e){return si(Uu,e)};function lg(e){return hc(Yu(e)>>>0)}function cg(e){return e.displayName||e.name||"Component"}function fl(e){return typeof e=="string"&&!0}var Xu=typeof Symbol=="function"&&Symbol.for,Ju=Xu?Symbol.for("react.memo"):60115,dg=Xu?Symbol.for("react.forward_ref"):60112,ug={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},hg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ku={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fg=((hl={})[dg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hl[Ju]=Ku,hl);function vd(e){return("type"in(t=e)&&t.type.$$typeof)===Ju?Ku:"$$typeof"in e?fg[e.$$typeof]:ug;var t}var pg=Object.defineProperty,gg=Object.getOwnPropertyNames,wd=Object.getOwnPropertySymbols,mg=Object.getOwnPropertyDescriptor,vg=Object.getPrototypeOf,xd=Object.prototype;function qu(e,t,n){if(typeof t!="string"){if(xd){var i=vg(t);i&&i!==xd&&qu(e,i,n)}var o=gg(t);wd&&(o=o.concat(wd(t)));for(var a=vd(e),s=vd(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var wg=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 zo(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(g).concat(m,'{content:"').concat(w,'"}').concat(Kc)},u=0;u0?".".concat(t):f},u=c.slice();u.push(function(f){f.type===ws&&f.value.includes("&")&&(f.props[0]=f.props[0].replace($g,n).replace(i,d))}),s.prefix&&u.push(Qp),u.push(Jp);var h=function(f,p,g,m){p===void 0&&(p=""),g===void 0&&(g=""),m===void 0&&(m="&"),t=m,n=p,i=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(Hg,""),E=Yp(g||p?"".concat(g," ").concat(p," { ").concat(w," }"):w);s.namespace&&(E=t2(E,s.namespace));var j=[];return Ja(E,Kp(u.concat(qp(function(D){return j.push(D)})))),j};return h.hash=c.length?c.reduce(function(f,p){return p.name||zo(15),si(f,p.name)},Uu).toString():"",h}var Ig=new e2,pc=Mg(),n2=Eo.createContext({shouldForwardProp:void 0,styleSheet:Ig,stylis:pc});n2.Consumer;Eo.createContext(void 0);function _d(){return tg(n2)}var Tg=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=pc);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 zo(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=pc),this.name+t.hash},e}(),Lg=function(e){return e>="A"&&e<="Z"};function Sd(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=Cr(o,s),this.staticRulesId=s}else{for(var c=si(this.baseHash,i.hash),d="",u=0;u>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,i(d,".".concat(p),void 0,this.componentId)),o=Cr(o,p)}}return o},e}(),o2=Eo.createContext(void 0);o2.Consumer;var pl={};function Ng(e,t,n){var i=qc(e),o=e,a=!fl(e),s=t.attrs,l=s===void 0?_s:s,c=t.componentId,d=c===void 0?function(C,S){var x=typeof C!="string"?"sc":gd(C);pl[x]=(pl[x]||0)+1;var y="".concat(x,"-").concat(lg(Cs+x+pl[x]));return S?"".concat(S,"-").concat(y):y}(t.displayName,t.parentComponentId):c,u=t.displayName,h=u===void 0?function(C){return fl(C)?"styled.".concat(C):"Styled(".concat(cg(C),")")}(e):u,f=t.displayName&&t.componentId?"".concat(gd(t.displayName),"-").concat(t.componentId):t.componentId||d,p=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,g=t.shouldForwardProp;if(i&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;g=function(C,S){return m(C,S)&&w(C,S)}}else g=m}var E=new Og(n,f,i?o.componentStyle:void 0);function j(C,S){return function(x,y,T){var A=x.attrs,$=x.componentStyle,O=x.defaultProps,P=x.foldedComponentIds,z=x.styledComponentId,Z=x.target,I=Eo.useContext(o2),V=_d(),L=x.shouldForwardProp||V.shouldForwardProp,F=ig(y,I,O)||vi,M=function(B,ee,ce){for(var re,ne=It(It({},ee),{className:void 0,theme:ce}),xe=0;xe-1}function m3(e,t){var n=this.__data__,i=js(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ii.prototype.clear=h3;Ii.prototype.delete=f3;Ii.prototype.get=p3;Ii.prototype.has=g3;Ii.prototype.set=m3;function Rr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&eg2(e)&&"desktop"in e,Md=(e,t)=>{const n={};return St(n,e,t),n},Id=e=>{let t;const n=new Set,i=(u,h)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=h??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},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},B3=e=>e?Id(e):Id;var m2={exports:{}},v2={},w2={exports:{}},x2={};/** * @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 z3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var F3=typeof Object.is=="function"?Object.is:z3,Z3=bi.useState,W3=bi.useEffect,G3=bi.useLayoutEffect,U3=bi.useDebugValue;function Y3(e,t){var n=t(),i=Z3({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return G3(function(){o.value=n,o.getSnapshot=t,ml(o)&&a({inst:o})},[e,n,t]),W3(function(){return ml(o)&&a({inst:o}),e(function(){ml(o)&&a({inst:o})})},[e]),U3(n),n}function ml(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!F3(e,n)}catch{return!0}}function X3(e,t){return t()}var J3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?X3:Y3;x2.useSyncExternalStore=bi.useSyncExternalStore!==void 0?bi.useSyncExternalStore:J3;w2.exports=x2;var K3=w2.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 Es=window.React,q3=K3;function Q3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var e5=typeof Object.is=="function"?Object.is:Q3,t5=q3.useSyncExternalStore,n5=Es.useRef,r5=Es.useEffect,i5=Es.useMemo,o5=Es.useDebugValue;v2.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var a=n5(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=i5(function(){function c(p){if(!d){if(d=!0,u=p,p=i(p),o!==void 0&&s.hasValue){var g=s.value;if(o(g,p))return h=g}return h=p}if(g=h,e5(u,p))return g;var m=i(p);return o!==void 0&&o(g,m)?(u=p,g):(u=p,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=t5(e,a[0],a[1]);return r5(function(){s.hasValue=!0,s.value=l},[l]),o5(l),l};m2.exports=v2;var a5=m2.exports;const s5=Wt(a5),l5=window.React,{useDebugValue:c5}=l5,{useSyncExternalStoreWithSelector:d5}=s5;const u5=e=>e;function h5(e,t=u5,n){const i=d5(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return c5(i),i}const Td=e=>{const t=typeof e=="function"?B3(e):e,n=(i,o)=>h5(t,i,o);return Object.assign(n,t),n},Ds=e=>e?Td(e):Td,b2=Ds()(e=>({current:"desktop",changeCurrent:t=>{e(()=>({current:t}))}})),f5=window.React.useEffect;function be(){const{current:e}=b2();return f5(()=>{},[]),{current:e,changeDevice:n=>{Hi.previewedDevice(n)}}}function y2({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 C2({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 p5=e=>e==="header",Ze=(e="desktop")=>e==="tablet"?"mobile":e,_2=(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)]},ge=(e,t)=>{if(xi(e)){const n=e.desktop;return t==="mobile"?e.mobile??e.tablet??n:e[t]??n}return e},g5=()=>document.querySelector("#customize-preview iframe"),Ld=(e,t=0)=>{setTimeout(()=>{e()},t)},S2=()=>{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")},j2=()=>{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")},$s=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 m5="Expected a function",k2="__lodash_hash_undefined__",E2=1/0,v5="[object Function]",w5="[object GeneratorFunction]",x5="[object Symbol]",b5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y5=/^\w*$/,C5=/^\./,_5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S5=/[\\^$.*+?()[\]{}|]/g,j5=/\\(\\)?/g,k5=/^\[object .+?Constructor\]$/,E5=typeof tt=="object"&&tt&&tt.Object===Object&&tt,D5=typeof self=="object"&&self&&self.Object===Object&&self,r1=E5||D5||Function("return this")();function $5(e,t){return e==null?void 0:e[t]}function H5(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var M5=Array.prototype,I5=Function.prototype,D2=Object.prototype,vl=r1["__core-js_shared__"],Ad=function(){var e=/[^.]+$/.exec(vl&&vl.keys&&vl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$2=I5.toString,i1=D2.hasOwnProperty,H2=D2.toString,T5=RegExp("^"+$2.call(i1).replace(S5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rd=r1.Symbol,L5=M5.splice,A5=M2(r1,"Map"),Ho=M2(Object,"create"),Od=Rd?Rd.prototype:void 0,Nd=Od?Od.toString:void 0;function Hr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function W5(e,t){var n=this.__data__,i=Hs(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ti.prototype.clear=B5;Ti.prototype.delete=z5;Ti.prototype.get=F5;Ti.prototype.has=Z5;Ti.prototype.set=W5;function Or(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(_e(t,d.value_path)===void 0)return;let u=_e(t,d.value_path);const h=_e(t,d.value_path.map(g=>g==="mobile"||g==="tablet"?"desktop":g)),f=_e(t,d.value_path.map(g=>g==="mobile"?"tablet":g));u==null&&(u=f??u),u==null&&(u=h??u),u=ge(u,n),d.fallback_value!=null&&!u&&(u=d.fallback_value),L2(u)&&(u=$s(u)),d.type==="switcher"&&d.enabled_value!=null&&d.disabled_value!=null&&(u?u=d.enabled_value:u=d.disabled_value);const p=De(d.select_from_body?d.selector:`${wt(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?(Kr(p).addClass(d.enabled_class??""),Kr(p).removeClass(d.disabled_class)):(Kr(p).removeClass(d.enabled_class),Kr(p).addClass(d.disabled_class??"")):Kr(p).attr(d.name,d.name==="class"?`${d.default_class} ${u}`:u);return}Kr(p).attr(d.name,u)})})})})},bm=window.jQuery,ym=({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(_e(t,d.value_path)===void 0)return;const u=De(`${wt(e,i)} ${d.selector}`);let h=_e(t,d.value_path);const f=_e(t,d.value_path.map(p=>p==="mobile"||p==="tablet"?"desktop":p));h==null&&f!=null&&(h=f),L2(h)&&(h=$s(h)),bm(u).html(xi(h)?ge(h,n):h)})})})})},Cm=(e,t="desktop",n)=>{const i=[];if(e.font_style){const l=ge(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=ge(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=ge(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=ge(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:ge(e.transform,t),selector:n}):i.push({name:"text-transform",value:"auto",selector:n}),e.decoration!=null?i.push({name:"text-decoration",value:ge(e.decoration,t),selector:n}):i.push({name:"text-decoration",value:"none",selector:n}),i},Mr=e=>`${e.value}${e.unit}`,_m=(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"?Mr(e.image.left)+" "+Mr(e.image.top):e.image.position,selector:i}),o},R2=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}`,Sm=(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},jm=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,km=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)"}),jm(t)},wl=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,...Em(d,t,n)])})})}),s.length>0){const l=De(wt(e,i));s.forEach(c=>{if(c.selector){const d=wl(l).find(c.selector);d&&wl(d).css(c.name,c.value)}else wl(l).css(c.name,c.value)})}};function Em(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=Dm;break;case"dimension":h=$m;break;case"typography":h=Hm;break;case"spacing":h=Mm;break;case"background":h=Im;break;case"switcher":h=Tm;break;case"box_shadow":h=Lm;break;case"custom_variables":h=Am;break;default:h=Rm}h!==null&&(i=[...i,...h(t,{variableName:s,valuePath:a,enabledValue:l,disabledValue:c,mappingVariables:d,selector:u??""},n)])}),i}function Dm(e,t,n){const i=[],o=_e(e,t.valuePath);return o==null?[]:(Object.entries(o).forEach(([a,s])=>{if(a==="enabled_gradient")return;const l=ge(o.hover,n),c=ge(o.normal,n);let d=ge(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 $m(e,t,n){const i=[],o=_e(e,t.valuePath);return o==null?[]:(i.push({name:`${t.variableName}`,value:Mr(ge(o,n)),selector:t.selector}),i)}function Hm(e,t,n){let i=_e(e,t.valuePath);return i==null&&(i={}),Cm(i,n,t.selector)}function Mm(e,t,n){const i=_e(e,t.valuePath);if(i==null)return[];const o=[];return o.push({name:`${t.variableName}`,value:R2(ge(i,n)),selector:t.selector}),o.push(...Sm(t.variableName,ge(i,n),t.selector)),o}function Im(e,t,n){const i=_e(e,["background"]);return i==null?[]:_m(i,n,t.variableName,t.selector)}function Tm(e,t,n){const i=_e(e,t.valuePath);if(i==null)return[];const o=ge(i,n),a=[];return a.push({name:`${t.variableName}`,value:o?t.enabledValue:t.disabledValue,selector:t.selector}),a}function Lm(e,t,n){const i=_e(e,t.valuePath);if(i==null)return[];const o=ge(i,n),a=[];return a.push({name:t.variableName,value:km(o),selector:t.selector}),a}function Am(e,t,n){if(t.mappingVariables==null){let s=_e(e,t.valuePath);return s==null?[]:(s=ge(s,n),[{name:t.variableName,value:s,selector:t.selector}])}const o=[],a=_e(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=_e(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 Rm(e,t,n){let i=_e(e,t.valuePath);if(i==null)return[];i=ge(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))"}}]),s1=v.div.withConfig({displayName:"Layoutsstyled__StyledSettingsLayout",componentId:"sc-o6y3t-0"})({height:"fit-content"}),dt=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"}}),O2=v.div.withConfig({displayName:"Layoutsstyled__StyledSectionLayout",componentId:"sc-o6y3t-3"})({height:"fit-content"});var N2={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;sp5(e)?Ie:Me,[e])}const Pm=window.React.useMemo,Vm=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))"}),Bm={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 Tt({options:e=[],selected:t="",onChange:n=()=>!1,className:i="",multiple:o=!1,itemCss:a=null,canDeselect:s=!1}){const l=Pm(()=>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(zm,{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(Fm,{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?Bm.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 zm=v("div")`${Vm}`,Fm=v("span").withConfig({displayName:"RadioGroup___StyledSpan",componentId:"sc-60p899-0"})(["",""],e=>e.$_css2);const Zm=window.React.useMemo;function Mn(e){const{current:t}=be(),n=Zm(()=>ge(e.value,t),[t,e.value]);return r.jsxs("div",{className:e.className,children:[r.jsx(at,{title:e.title}),r.jsx(Tt,{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 Pd=window.React;var Vd=function(t){return t.reduce(function(n,i){var o=i[0],a=i[1];return n[o]=a,n},{})},Bd=typeof window<"u"&&window.document&&window.document.createElement?Pd.useLayoutEffect:Pd.useEffect,Lt="top",ln="bottom",cn="right",At="left",l1="auto",Wo=[Lt,ln,cn,At],yi="start",Mo="end",Wm="clippingParents",P2="viewport",Gi="popper",Gm="reference",zd=Wo.reduce(function(e,t){return e.concat([t+"-"+yi,t+"-"+Mo])},[]),V2=[].concat(Wo,[l1]).reduce(function(e,t){return e.concat([t,t+"-"+yi,t+"-"+Mo])},[]),Um="beforeRead",Ym="read",Xm="afterRead",Jm="beforeMain",Km="main",qm="afterMain",Qm="beforeWrite",e4="write",t4="afterWrite",n4=[Um,Ym,Xm,Jm,Km,qm,Qm,e4,t4];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Ft(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ir(e){var t=Ft(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Ft(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function c1(e){if(typeof ShadowRoot>"u")return!1;var t=Ft(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r4(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];!an(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 i4(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},{});!an(o)||!Dn(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const o4={name:"applyStyles",enabled:!0,phase:"write",fn:r4,effect:i4,requires:["computeStyles"]};function kn(e){return e.split("-")[0]}var jr=Math.max,es=Math.min,Ci=Math.round;function mc(){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 B2(){return!/^((?!chrome|android).)*safari/i.test(mc())}function _i(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&an(e)&&(o=e.offsetWidth>0&&Ci(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ci(i.height)/e.offsetHeight||1);var s=Ir(e)?Ft(e):window,l=s.visualViewport,c=!B2()&&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 d1(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 z2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c1(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Fn(e){return Ft(e).getComputedStyle(e)}function a4(e){return["table","td","th"].indexOf(Dn(e))>=0}function ar(e){return((Ir(e)?e.ownerDocument:e.document)||window.document).documentElement}function Is(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(c1(e)?e.host:null)||ar(e)}function Fd(e){return!an(e)||Fn(e).position==="fixed"?null:e.offsetParent}function s4(e){var t=/firefox/i.test(mc()),n=/Trident/i.test(mc());if(n&&an(e)){var i=Fn(e);if(i.position==="fixed")return null}var o=Is(e);for(c1(o)&&(o=o.host);an(o)&&["html","body"].indexOf(Dn(o))<0;){var a=Fn(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 Go(e){for(var t=Ft(e),n=Fd(e);n&&a4(n)&&Fn(n).position==="static";)n=Fd(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&Fn(n).position==="static")?t:n||s4(e)||t}function u1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function po(e,t,n){return jr(e,es(t,n))}function l4(e,t,n){var i=po(e,t,n);return i>n?n:i}function F2(){return{top:0,right:0,bottom:0,left:0}}function Z2(e){return Object.assign({},F2(),e)}function W2(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var c4=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Z2(typeof t!="number"?t:W2(t,Wo))};function d4(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=u1(l),d=[At,cn].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var h=c4(o.padding,n),f=d1(a),p=c==="y"?Lt:At,g=c==="y"?ln:cn,m=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],E=Go(a),j=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,D=m/2-w/2,C=h[p],S=j-f[u]-h[g],x=j/2-f[u]/2+D,y=po(C,x,S),T=c;n.modifiersData[i]=(t={},t[T]=y,t.centerOffset=y-x,t)}}function u4(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)||z2(t.elements.popper,o)&&(t.elements.arrow=o))}const h4={name:"arrow",enabled:!0,phase:"main",fn:d4,effect:u4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Si(e){return e.split("-")[1]}var f4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p4(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 Zd(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,p=f===void 0?0:f,g=s.y,m=g===void 0?0:g,w=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=w.x,m=w.y;var E=s.hasOwnProperty("x"),j=s.hasOwnProperty("y"),D=At,C=Lt,S=window;if(d){var x=Go(n),y="clientHeight",T="clientWidth";if(x===Ft(n)&&(x=ar(n),Fn(x).position!=="static"&&l==="absolute"&&(y="scrollHeight",T="scrollWidth")),x=x,o===Lt||(o===At||o===cn)&&a===Mo){C=ln;var A=h&&x===S&&S.visualViewport?S.visualViewport.height:x[y];m-=A-i.height,m*=c?1:-1}if(o===At||(o===Lt||o===ln)&&a===Mo){D=cn;var $=h&&x===S&&S.visualViewport?S.visualViewport.width:x[T];p-=$-i.width,p*=c?1:-1}}var O=Object.assign({position:l},d&&f4),P=u===!0?p4({x:p,y:m},Ft(n)):{x:p,y:m};if(p=P.x,m=P.y,c){var z;return Object.assign({},O,(z={},z[C]=j?"0":"",z[D]=E?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",z))}return Object.assign({},O,(t={},t[C]=j?m+"px":"",t[D]=E?p+"px":"",t.transform="",t))}function g4(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,Zd(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,Zd(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 m4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g4,data:{}};var ga={passive:!0};function v4(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=Ft(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 w4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v4,data:{}};var x4={left:"right",right:"left",bottom:"top",top:"bottom"};function Pa(e){return e.replace(/left|right|bottom|top/g,function(t){return x4[t]})}var b4={start:"end",end:"start"};function Wd(e){return e.replace(/start|end/g,function(t){return b4[t]})}function h1(e){var t=Ft(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function f1(e){return _i(ar(e)).left+h1(e).scrollLeft}function y4(e,t){var n=Ft(e),i=ar(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=B2();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+f1(e),y:c}}function C4(e){var t,n=ar(e),i=h1(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=jr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=jr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+f1(e),c=-i.scrollTop;return Fn(o||n).direction==="rtl"&&(l+=jr(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function p1(e){var t=Fn(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function G2(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:an(e)&&p1(e)?e:G2(Is(e))}function go(e,t){var n;t===void 0&&(t=[]);var i=G2(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Ft(i),s=o?[a].concat(a.visualViewport||[],p1(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(go(Is(s)))}function vc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _4(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 Gd(e,t,n){return t===P2?vc(y4(e,n)):Ir(t)?_4(t,n):vc(C4(ar(e)))}function S4(e){var t=go(Is(e)),n=["absolute","fixed"].indexOf(Fn(e).position)>=0,i=n&&an(e)?Go(e):e;return Ir(i)?t.filter(function(o){return Ir(o)&&z2(o,i)&&Dn(o)!=="body"}):[]}function j4(e,t,n,i){var o=t==="clippingParents"?S4(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var u=Gd(e,d,i);return c.top=jr(u.top,c.top),c.right=es(u.right,c.right),c.bottom=es(u.bottom,c.bottom),c.left=jr(u.left,c.left),c},Gd(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 U2(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 Lt:c={x:s,y:t.y-n.height};break;case ln:c={x:s,y:t.y+t.height};break;case cn:c={x:t.x+t.width,y:l};break;case At:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?u1(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?Wm:l,d=n.rootBoundary,u=d===void 0?P2:d,h=n.elementContext,f=h===void 0?Gi:h,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,w=m===void 0?0:m,E=Z2(typeof w!="number"?w:W2(w,Wo)),j=f===Gi?Gm:Gi,D=e.rects.popper,C=e.elements[g?j:f],S=j4(Ir(C)?C:C.contextElement||ar(e.elements.popper),c,u,s),x=_i(e.elements.reference),y=U2({reference:x,element:D,strategy:"absolute",placement:o}),T=vc(Object.assign({},D,y)),A=f===Gi?T:x,$={top:S.top-A.top+E.top,bottom:A.bottom-S.bottom+E.bottom,left:S.left-A.left+E.left,right:A.right-S.right+E.right},O=e.modifiersData.offset;if(f===Gi&&O){var P=O[o];Object.keys($).forEach(function(z){var Z=[cn,ln].indexOf(z)>=0?1:-1,I=[Lt,ln].indexOf(z)>=0?"y":"x";$[z]+=P[I]*Z})}return $}function k4(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?V2:c,u=Si(i),h=u?l?zd:zd.filter(function(g){return Si(g)===u}):Wo,f=h.filter(function(g){return d.indexOf(g)>=0});f.length===0&&(f=h);var p=f.reduce(function(g,m){return g[m]=Io(e,{placement:m,boundary:o,rootBoundary:a,padding:s})[kn(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function E4(e){if(kn(e)===l1)return[];var t=Pa(e);return[Wd(e),t,Wd(t)]}function D4(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,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,w=t.options.placement,E=kn(w),j=E===w,D=c||(j||!g?[Pa(w)]:E4(w)),C=[w].concat(D).reduce(function(de,B){return de.concat(kn(B)===l1?k4(t,{placement:B,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:m}):B)},[]),S=t.rects.reference,x=t.rects.popper,y=new Map,T=!0,A=C[0],$=0;$=0,I=Z?"width":"height",V=Io(t,{placement:O,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),L=Z?z?cn:At:z?ln:Lt;S[I]>x[I]&&(L=Pa(L));var F=Pa(L),M=[];if(a&&M.push(V[P]<=0),l&&M.push(V[L]<=0,V[F]<=0),M.every(function(de){return de})){A=O,T=!1;break}y.set(O,M)}if(T)for(var W=g?3:1,X=function(B){var ee=C.find(function(ce){var re=y.get(ce);if(re)return re.slice(0,B).every(function(ne){return ne})});if(ee)return A=ee,"break"},Y=W;Y>0;Y--){var le=X(Y);if(le==="break")break}t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}}const $4={name:"flip",enabled:!0,phase:"main",fn:D4,requiresIfExists:["offset"],data:{_skip:!1}};function Ud(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 Yd(e){return[Lt,cn,ln,At].some(function(t){return e[t]>=0})}function H4(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=Ud(s,i),d=Ud(l,o,a),u=Yd(c),h=Yd(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 M4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H4};function I4(e,t,n){var i=kn(e),o=[At,Lt].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,[At,cn].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function T4(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=V2.reduce(function(u,h){return u[h]=I4(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 L4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:T4};function A4(e){var t=e.state,n=e.name;t.modifiersData[n]=U2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const R4={name:"popperOffsets",enabled:!0,phase:"read",fn:A4,data:{}};function O4(e){return e==="x"?"y":"x"}function N4(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,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,w=Io(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),E=kn(t.placement),j=Si(t.placement),D=!j,C=u1(E),S=O4(C),x=t.modifiersData.popperOffsets,y=t.rects.reference,T=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(a){var z,Z=C==="y"?Lt:At,I=C==="y"?ln:cn,V=C==="y"?"height":"width",L=x[C],F=L+w[Z],M=L-w[I],W=p?-T[V]/2:0,X=j===yi?y[V]:T[V],Y=j===yi?-T[V]:-y[V],le=t.elements.arrow,de=p&&le?d1(le):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:F2(),ee=B[Z],ce=B[I],re=po(0,y[V],de[V]),ne=D?y[V]/2-W-re-ee-$.mainAxis:X-re-ee-$.mainAxis,xe=D?-y[V]/2+W+re+ce+$.mainAxis:Y+re+ce+$.mainAxis,Ae=t.elements.arrow&&Go(t.elements.arrow),Te=Ae?C==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,b=(z=O==null?void 0:O[C])!=null?z:0,H=L+ne-b-Te,k=L+xe-b,G=po(p?es(F,H):F,L,p?jr(M,k):M);x[C]=G,P[C]=G-L}if(l){var K,Q=C==="x"?Lt:At,fe=C==="x"?ln:cn,se=x[S],$e=S==="y"?"height":"width",Ve=se+w[Q],Yt=se-w[fe],Ke=[Lt,At].indexOf(E)!==-1,Zr=(K=O==null?void 0:O[S])!=null?K:0,lr=Ke?Ve:se-y[$e]-T[$e]-Zr+$.altAxis,Xt=Ke?se+y[$e]+T[$e]-Zr-$.altAxis:Yt,Tn=p&&Ke?l4(lr,se,Xt):po(p?lr:Ve,se,p?Xt:Yt);x[S]=Tn,P[S]=Tn-se}t.modifiersData[i]=P}}const P4={name:"preventOverflow",enabled:!0,phase:"main",fn:N4,requiresIfExists:["offset"]};function V4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function B4(e){return e===Ft(e)||!an(e)?h1(e):V4(e)}function z4(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 F4(e,t,n){n===void 0&&(n=!1);var i=an(t),o=an(t)&&z4(t),a=ar(t),s=_i(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((Dn(t)!=="body"||p1(a))&&(l=B4(t)),an(t)?(c=_i(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=f1(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Z4(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 W4(e){var t=Z4(e);return n4.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function G4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function U4(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 Xd={placement:"bottom",modifiers:[],strategy:"absolute"};function Jd(){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 Yi=0;!ji&&Yi=0;o--){var a=qd[o]+i;if(a in n)return a}return!1},dv=pv,uv=/\s/,hv=/(_|-|\.|:)/,fv=/([a-z][A-Z]|[A-Z][a-z])/;function pv(e){return uv.test(e)?e.toLowerCase():hv.test(e)?(mv(e)||e).toLowerCase():fv.test(e)?wv(e).toLowerCase():e.toLowerCase()}var gv=/[\W_]+(.|$)/g;function mv(e){return e.replace(gv,function(t,n){return n?" "+n:""})}var vv=/(.)([A-Z]+)/g;function wv(e){return e.replace(vv,function(t,n,i){return n+" "+i.toLowerCase().split("").join(" ")})}var xv=dv,bv=yv;function yv(e){return xv(e).replace(/[\W_]+(.|$)/g,function(t,n){return n?" "+n:""}).trim()}var Cv=bv,_v=Sv;function Sv(e){return Cv(e).replace(/\s(\w)/g,function(t,n){return n.toUpperCase()})}var jv={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},kv=function(e,t){return typeof t=="number"&&!jv[e]?t+"px":t},Ev=cv,Dv=_v,Ba={float:"cssFloat"},$v=kv;function ts(e,t,n){var i=Ba[t];if(typeof i>"u"&&(i=Mv(t)),i){if(n===void 0)return e.style[i];e.style[i]=$v(i,n)}}function Hv(e,t){for(var n in t)t.hasOwnProperty(n)&&ts(e,n,t[n])}function Mv(e){var t=Dv(e),n=Ev(t);return Ba[t]=Ba[e]=Ba[n]=n,n}function J2(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:Hv(arguments[0],arguments[1]):ts(arguments[0],arguments[1],arguments[2])}Ls.exports=J2;Ls.exports.set=J2;Ls.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(n,i){return n[i]=ts(e,i||""),n},{}):ts(e,t||"")};var K2=Ls.exports,q2={exports:{}},Iv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Tv=Iv,Lv=Tv;function Q2(){}function eh(){}eh.resetWarningCache=Q2;var Av=function(){function e(i,o,a,s,l,c){if(c!==Lv){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:eh,resetWarningCache:Q2};return n.PropTypes=n,n};q2.exports=Av();var Rv=q2.exports,th={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}})(th);var nh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=K2,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}})(nh);var rh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}})(rh);var ih={};(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)}})(ih);var oh={};(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)}})(oh);var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};Gt.containerStyleAutoHeight={height:"auto"};Gt.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};Gt.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};Gt.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};Gt.trackHorizontalStyleDefault={position:"absolute",height:6};Gt.trackVerticalStyleDefault={position:"absolute",width:6};Gt.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};Gt.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};Gt.disableSelectStyle={userSelect:"none"};Gt.disableSelectStyleReset={userSelect:""};var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});var ir=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function Pv(e){return Uo.default.createElement("div",e)}function Vv(e){var t=e.style,n=As(e,["style"]),i=ir({},t,{right:2,bottom:2,left:2,borderRadius:3});return Uo.default.createElement("div",ir({style:i},n))}function Bv(e){var t=e.style,n=As(e,["style"]),i=ir({},t,{right:2,bottom:2,top:2,borderRadius:3});return Uo.default.createElement("div",ir({style:i},n))}function zv(e){var t=e.style,n=As(e,["style"]),i=ir({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Uo.default.createElement("div",ir({style:i},n))}function Fv(e){var t=e.style,n=As(e,["style"]),i=ir({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Uo.default.createElement("div",ir({style:i},n))}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(P){for(var z=1;z=0||Object.prototype.hasOwnProperty.call(P,I)&&(Z[I]=P[I]);return Z}function T(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function A(P,z){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:P}function $(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(P,z):P.__proto__=z)}var O=function(P){$(z,P);function z(Z){var I;T(this,z);for(var V=arguments.length,L=Array(V>1?V-1:0),F=1;F0&&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,L=this.trackVertical,F=this.thumbHorizontal,M=this.thumbVertical;I.addEventListener("scroll",this.handleScroll),(0,p.default)()&&(V.addEventListener("mouseenter",this.handleTrackMouseEnter),V.addEventListener("mouseleave",this.handleTrackMouseLeave),V.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),L.addEventListener("mouseenter",this.handleTrackMouseEnter),L.addEventListener("mouseleave",this.handleTrackMouseLeave),L.addEventListener("mousedown",this.handleVerticalTrackMouseDown),F.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,L=this.trackVertical,F=this.thumbHorizontal,M=this.thumbVertical;I.removeEventListener("scroll",this.handleScroll),(0,p.default)()&&(V.removeEventListener("mouseenter",this.handleTrackMouseEnter),V.removeEventListener("mouseleave",this.handleTrackMouseLeave),V.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),L.removeEventListener("mouseenter",this.handleTrackMouseEnter),L.removeEventListener("mouseleave",this.handleTrackMouseLeave),L.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),F.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(I){var V=this,L=this.props,F=L.onScroll,M=L.onScrollFrame;F&&F(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,p.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(I){I.preventDefault();var V=I.target,L=I.clientX,F=V.getBoundingClientRect(),M=F.left,W=this.getThumbHorizontalWidth(),X=Math.abs(M-L)-W/2;this.view.scrollLeft=this.getScrollLeftForOffset(X)}},{key:"handleVerticalTrackMouseDown",value:function(I){I.preventDefault();var V=I.target,L=I.clientY,F=V.getBoundingClientRect(),M=F.top,W=this.getThumbVerticalHeight(),X=Math.abs(M-L)-W/2;this.view.scrollTop=this.getScrollTopForOffset(X)}},{key:"handleHorizontalThumbMouseDown",value:function(I){I.preventDefault(),this.handleDragStart(I);var V=I.target,L=I.clientX,F=V.offsetWidth,M=V.getBoundingClientRect(),W=M.left;this.prevPageX=F-(L-W)}},{key:"handleVerticalThumbMouseDown",value:function(I){I.preventDefault(),this.handleDragStart(I);var V=I.target,L=I.clientY,F=V.offsetHeight,M=V.getBoundingClientRect(),W=M.top;this.prevPageY=F-(L-W)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,C.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=m.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,C.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,L=this.trackHorizontal.getBoundingClientRect(),F=L.left,M=this.getThumbHorizontalWidth(),W=M-this.prevPageX,X=-F+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,L=V.onUpdate,F=V.hideTracksWhenNotNeeded,M=this.getValues();if((0,p.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,xe=(0,D.default)(this.trackVertical),Ae=this.getThumbVerticalHeight(),Te=ce/(ne-re)*(xe-Ae),b={height:Ae,transform:"translateY("+Te+"px)"};if(F){var H={visibility:Y>X?"visible":"hidden"},k={visibility:ne>re?"visible":"hidden"};(0,s.default)(this.trackHorizontal,H),(0,s.default)(this.trackVertical,k)}(0,s.default)(this.thumbHorizontal,ee),(0,s.default)(this.thumbVertical,b)}L&&L(M),typeof I=="function"&&I(M)}},{key:"render",value:function(){var I=this,V=(0,p.default)(),L=this.props;L.onScroll,L.onScrollFrame,L.onScrollStart,L.onScrollStop,L.onUpdate;var F=L.renderView,M=L.renderTrackHorizontal,W=L.renderTrackVertical,X=L.renderThumbHorizontal,Y=L.renderThumbVertical,le=L.tagName;L.hideTracksWhenNotNeeded;var de=L.autoHide;L.autoHideTimeout;var B=L.autoHideDuration;L.thumbSize,L.thumbMinSize;var ee=L.universal,ce=L.autoHeight,re=L.autoHeightMin,ne=L.autoHeightMax,xe=L.style,Ae=L.children,Te=y(L,["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({},C.containerStyleDefault,ce&&t({},C.containerStyleAutoHeight,{minHeight:re,maxHeight:ne}),xe),k=t({},C.viewStyleDefault,{marginRight:V?-V:0,marginBottom:V?-V:0},ce&&t({},C.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&&C.viewStyleUniversalInitial),G={transition:"opacity "+B+"ms",opacity:0},K=t({},C.trackHorizontalStyleDefault,de&&G,(!V||ee&&!b)&&{display:"none"}),Q=t({},C.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)(F({style:k}),{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:C.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:C.thumbVerticalStyleDefault}),{ref:function(se){I.thumbVertical=se}}))])}}]),z}(l.Component);e.default=O,O.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},O.defaultProps={renderView:S.renderViewDefault,renderTrackHorizontal:S.renderTrackHorizontalDefault,renderTrackVertical:S.renderTrackVerticalDefault,renderThumbHorizontal:S.renderThumbHorizontalDefault,renderThumbVertical:S.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(X2);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=X2,n=i(t);function i(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default})(Y2);const Zv=Wt(Y2);function Zn({children:e,...t}){return r.jsx(Zv,{...t,...window.brandyCustomizerData.rtl?{renderView:n=>r.jsx("div",{...n,style:{...n.style,marginLeft:n.style.marginRight,marginRight:0}})}:{},children:e})}const Wv=window.React.useEffect,Gv=window.React.useRef,yl=window.React.useState;function rn({title:e="",children:t,style:n={}}){const[i,o]=yl(null),[a,s]=yl(null),{styles:l,attributes:c}=In(i,a),[d,u]=yl(!1),h=()=>{u(!0)},f=()=>{u(!1)};if(!e)return!1;const p=Gv(null);return Wv(()=>{setTimeout(()=>{o(p.current)},300)},[p.current]),r.jsxs("div",{className:"brandy-with-tooltip",children:[r.jsx("div",{className:"brandy-tooltip-activator",onMouseMove:()=>{h()},onMouseLeave:()=>{f()},ref:p,children:t}),r.jsx(Uv,{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 Uv=v("div").withConfig({displayName:"Tooltip___StyledDiv",componentId:"sc-gmfqn3-0"})(["",""],e=>e.$_css);const Yv=window.React.useEffect,Cl=window.React.useMemo,_l=window.React.useState,Xv=38,ah=5,sh=5;function ct({options:e,selected:t,onChange:n=()=>!1,style:i={},popupHeight:o=null}){const[a,s]=_l(null),[l,c]=_l(null),{styles:d,attributes:u}=In(a,l),[h,f]=_l(!1),p=Cl(()=>(a==null?void 0:a.getBoundingClientRect().width)??0,[a]),g=()=>{f(D=>!D)},m=()=>{f(!1)},w=Cl(()=>e.find(C=>C.value===t),[e,t]),E=D=>{const C=D.currentTarget.dataset.value;n(C??"")};Yv(()=>{const D=C=>{(a==null||l==null)&&m(),!(a!=null&&a.contains(C.target))&&!(l!=null&&l.contains(C.target))&&m()};return window.jQuery(document).on("click","body",D),()=>{window.jQuery(document).off("click","body",D)}},[a,l]);const j=Cl(()=>{if(o)return o;const D=Math.min(e.length,4);return D*Xv+(D-1)*ah+sh*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:g,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:p,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:j},children:r.jsx(Jv,{className:"flex flex-col",children:e.map(D=>r.jsxs(Kv,{className:"brandy-select__option-content","data-value":D.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===D.value&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"}],children:[r.jsx(qv,{children:(D.label??"").toString().length>30?r.jsx(rn,{title:D.label,children:D.label}):D.label}),D.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"})})]},D.value))})})})]})}var Jv=v("div")` padding: ${sh}px; gap: ${ah}px; `,Kv=v("div")`${e=>e.$_css}`,qv=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 Qv=window.React,ew=window.React.useEffect,tw=window.React.useState,ns=Qv.forwardRef(({id:e,className:t,checked:n=!1,disabled:i=!1,size:o="sm",onChange:a=()=>!1},s)=>{const[l,c]=tw(!1),d=u=>{u.preventDefault(),u.stopPropagation(),a(!n)};return ew(()=>{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,kr=window.React.useRef,nw=window.React.useMemo,rs=window.React.useEffect,rw=window.React.useState,iw=window.React.useCallback,ow=window.React.useLayoutEffect;function Rs(){return(Rs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function wc(e){var t=kr(e),n=kr(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(Qd(o.current,w,l.current)):m(!1)},g=function(){return m(!1)};function m(w){var E=c.current,j=xc(o.current),D=w?j.addEventListener:j.removeEventListener;D(E?"touchmove":"mousemove",p),D(E?"touchend":"mouseup",g)}return[function(w){var E=w.nativeEvent,j=o.current;if(j&&(e0(E),!function(C,S){return S&&!mo(C)}(E,c.current)&&j)){if(mo(E)){c.current=!0;var D=E.changedTouches||[];D.length&&(l.current=D[0].identifier)}j.focus(),a(Qd(j,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 rs(function(){return f},[f]),it.createElement("div",Rs({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),Os=function(e){return e.filter(Boolean).join(" ")},m1=function(e){var t=e.color,n=e.left,i=e.top,o=i===void 0?.5:i,a=Os(["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},aw=function(e){return dw(bc(e))},bc=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}},sw=function(e){return cw(lw(e))},ch=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)}},yc=function(e){var t=ch(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Sl=function(e){var t=ch(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},lw=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},cw=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},dw=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}},uw=it.memo(function(e){var t=e.hue,n=e.onChange,i=Os(["react-colorful__hue",e.className]);return it.createElement("div",{className:i},it.createElement(g1,{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(m1,{className:"react-colorful__hue-pointer",left:t/360,color:yc({h:t,s:100,v:100,a:1})})))}),hw=it.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:yc({h:t.h,s:100,v:100,a:1})};return it.createElement("div",{className:"react-colorful__saturation",style:i},it.createElement(g1,{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(m1,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:yc(t)})))}),dh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},fw=function(e,t){return e.toLowerCase()===t.toLowerCase()||dh(bc(e),bc(t))};function pw(e,t,n){var i=wc(n),o=rw(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=kr({color:t,hsva:a});rs(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},s(d)}},[t,e]),rs(function(){var d;dh(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=iw(function(d){s(function(u){return Object.assign({},u,d)})},[]);return[a,c]}var gw=typeof window<"u"?ow:rs,mw=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},t0=new Map,vw=function(e){gw(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!t0.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}`,t0.set(t,n);var i=mw();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},ww=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Sl(Object.assign({},n,{a:0}))+", "+Sl(Object.assign({},n,{a:1}))+")"},a=Os(["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(g1,{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(m1,{className:"react-colorful__alpha-pointer",left:n.a,color:Sl(n)})))},xw=function(e){var t=e.className,n=e.colorModel,i=e.color,o=i===void 0?n.defaultColor:i,a=e.onChange,s=lh(e,["className","colorModel","color","onChange"]),l=kr(null);vw(l);var c=pw(n,o,a),d=c[0],u=c[1],h=Os(["react-colorful",t]);return it.createElement("div",Rs({},s,{ref:l,className:h}),it.createElement(hw,{hsva:d,onChange:u}),it.createElement(uw,{hue:d.h,onChange:u}),it.createElement(ww,{hsva:d,onChange:u,className:"react-colorful__last-control"}))},bw={defaultColor:"0001",toHsva:aw,fromHsva:sw,equal:fw},yw=function(e){return it.createElement(xw,Rs({},e,{colorModel:bw}))};function Ns(){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 uh(){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 Cw(){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 hh(){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 fh(){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 _w(){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 Sw(){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 ph(){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 jw(){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 kw=window.React.forwardRef;let jl,Xi;const ot=kw(({onChange:e=()=>!1,type:t="text",className:n="",prefix:i=!1,wrapperStyle:o={},...a},s)=>{const l=f=>{let p=f.target.value;t==="number"&&p!=""&&(p=+p),e(p)},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(Xi);function f(){let p=++a.value;e(Math.min(p,a.max??Number.MAX_SAFE_INTEGER))}f(),Xi=setTimeout(()=>{jl=setInterval(()=>{f()},80)},400)},u=()=>{clearTimeout(Xi);function f(){let p=--a.value;e(Math.max(p,a.min??Number.MIN_SAFE_INTEGER))}f(),Xi=setTimeout(()=>{jl=setInterval(()=>{f()},80)},400)},h=()=>{clearInterval(jl),clearTimeout(Xi)};return r.jsxs(Ew,{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(Dw,{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($w,{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 Ew=v("div")`${e=>e.$_css}`,Dw=v("span")`${e=>e.$_css2}`,$w=v("span").withConfig({displayName:"Input___StyledSpan2",componentId:"sc-aibt7d-0"})(["",""],e=>e.$_css3);function gh(){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 Cc=e=>{if(!e||typeof e!="string")return e;const t=e.match(/^light-dark\(\s*([^,]+)\s*,\s*([^)]+)\s*\)$/);if(!t)return e;const[,n,i]=t;return _c()==="dark"?i.trim():n.trim()},_c=()=>{var n;const e=document.getElementById("customize-preview");if((n=e==null?void 0:e.contentDocument)!=null&&n.documentElement){const i=e.contentDocument.documentElement.getAttribute("data-theme");if(i==="dark"||i==="light")return i}const t=localStorage.getItem("brandy-color-scheme");return t==="dark"||t==="light"?t:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},mh=()=>{const e=window.brandyCustomizerData.theme_settings.color.palette.theme.map(n=>({...n,color:Cc(n.color),value:`var(--wp--preset--color--${n.slug})`})),t=window.brandyCustomizerData.theme_settings.color.palette.default.map(n=>({...n,color:Cc(n.color),value:`var(--wp--preset--color--${n.slug})`}));return{theme:e,palette:t}},v1=e=>{if(e==null)return{isGlobal:!1,color:""};const t=mh(),n=[...t.theme,...t.palette].find(o=>o.value==e);return n?{isGlobal:!0,color:n.color}:e.includes("var(")?{isGlobal:!0,color:e}:{isGlobal:!1,color:Cc(e)}},Hw=window.React.useEffect,Mw=window.React.useState,n0="brandy-color-scheme-change",w1=()=>{const[e,t]=Mw(()=>_c());return Hw(()=>{const n=()=>{const c=_c();t(c)};window.addEventListener(n0,n);const i=c=>{var d;((d=c.data)==null?void 0:d.type)==="brandy-color-scheme-change"&&n()};window.addEventListener("message",i);let o=null,a=null;const s=()=>{var u;const c=document.getElementById("customize-preview"),d=c==null?void 0:c.querySelector("iframe");if(d)try{const h=d.contentDocument||((u=d.contentWindow)==null?void 0:u.document);if(!(h!=null&&h.documentElement)||a===h)return;a=h,o==null||o.disconnect(),o=new MutationObserver(f=>{for(const p of f)if(p.type==="attributes"&&p.attributeName==="data-theme"){n();break}}),o.observe(h.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}catch{}};s();const l=setInterval(s,1e3);return()=>{window.removeEventListener(n0,n),window.removeEventListener("message",i),o==null||o.disconnect(),clearInterval(l)}},[]),e};function N(e){var t;return(((t=window.brandyCustomizerData)==null?void 0:t.i18n)??{})[e]??e}var Iw="Expected a function",r0=0/0,Tw="[object Symbol]",Lw=/^\s+|\s+$/g,Aw=/^[-+]0x[0-9a-f]+$/i,Rw=/^0b[01]+$/i,Ow=/^0o[0-7]+$/i,Nw=parseInt,Pw=typeof tt=="object"&&tt&&tt.Object===Object&&tt,Vw=typeof self=="object"&&self&&self.Object===Object&&self,Bw=Pw||Vw||Function("return this")(),zw=Object.prototype,Fw=zw.toString,Zw=Math.max,Ww=Math.min,kl=function(){return Bw.Date.now()};function Gw(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(Iw);t=i0(t)||0,Sc(n)&&(u=!!n.leading,h="maxWait"in n,a=h?Zw(i0(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function p(x){var y=i,T=o;return i=o=void 0,d=x,s=e.apply(T,y),s}function g(x){return d=x,l=setTimeout(E,t),u?p(x):s}function m(x){var y=x-c,T=x-d,A=t-y;return h?Ww(A,a-T):A}function w(x){var y=x-c,T=x-d;return c===void 0||y>=t||y<0||h&&T>=a}function E(){var x=kl();if(w(x))return j(x);l=setTimeout(E,m(x))}function j(x){return l=void 0,f&&i?p(x):(i=o=void 0,s)}function D(){l!==void 0&&clearTimeout(l),d=0,i=c=o=l=void 0}function C(){return l===void 0?s:j(kl())}function S(){var x=kl(),y=w(x);if(i=arguments,o=this,c=x,y){if(l===void 0)return g(c);if(h)return l=setTimeout(E,t),p(c)}return l===void 0&&(l=setTimeout(E,t)),s}return S.cancel=D,S.flush=C,S}function Sc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Uw(e){return!!e&&typeof e=="object"}function Yw(e){return typeof e=="symbol"||Uw(e)&&Fw.call(e)==Tw}function i0(e){if(typeof e=="number")return e;if(Yw(e))return r0;if(Sc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Lw,"");var n=Rw.test(e);return n||Ow.test(e)?Nw(e.slice(2),n?2:8):Aw.test(e)?r0:+e}var Xw=Gw;const Ei=Wt(Xw);function x1(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,jt=window.React.useState,kt=window.React.useEffect,Pr=window.React.useRef,Jw=window.React.memo,o0=window.React.useCallback,a0=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 vt(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 vh(){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 qw(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ge=qw(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 k=u(b);this._originalInput=b,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=a(100*this._a)/100,this._format=H.format||k.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=k.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,k,G,K,Q,fe;return H=b.r/255,k=b.g/255,G=b.b/255,H<=.03928?K=H/12.92:K=t.pow((H+.055)/1.055,2.4),k<=.03928?Q=k/12.92:Q=t.pow((k+.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=g(this._r,this._g,this._b);return{h:b.h*360,s:b.s,v:b.v,a:this._a}},toHsvString:function(){var b=g(this._r,this._g,this._b),H=a(b.h*360),k=a(b.s*100),G=a(b.v*100);return this._a==1?"hsv("+H+", "+k+"%, "+G+"%)":"hsva("+H+", "+k+"%, "+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),k=a(b.s*100),G=a(b.l*100);return this._a==1?"hsl("+H+", "+k+"%, "+G+"%)":"hsla("+H+", "+k+"%, "+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:L[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(b){var H="#"+j(this._r,this._g,this._b,this._a),k=H,G=this._gradientType?"GradientType = 1, ":"";if(b){var K=d(b);k="#"+j(K._r,K._g,K._b,K._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+H+",endColorstr="+k+")"},toString:function(b){var H=!!b;b=b||this._format;var k=!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"&&(k=this.toRgbString()),b==="prgb"&&(k=this.toPercentageRgbString()),(b==="hex"||b==="hex6")&&(k=this.toHexString()),b==="hex3"&&(k=this.toHexString(!0)),b==="hex4"&&(k=this.toHex8String(!0)),b==="hex8"&&(k=this.toHex8String()),b==="name"&&(k=this.toName()),b==="hsl"&&(k=this.toHslString()),b==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(b,H){var k=b.apply(null,[this].concat([].slice.call(H)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(D,arguments)},saturate:function(){return this._applyModification(C,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(A,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($,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},d.fromRatio=function(b,H){if(typeof b=="object"){var k={};for(var G in b)b.hasOwnProperty(G)&&(G==="a"?k[G]=b[G]:k[G]=ee(b[G]));b=k}return d(b,H)};function u(b){var H={r:0,g:0,b:0},k=1,G=null,K=null,Q=null,fe=!1,se=!1;return typeof b=="string"&&(b=Ae(b)),typeof b=="object"&&(xe(b.r)&&xe(b.g)&&xe(b.b)?(H=h(b.r,b.g,b.b),fe=!0,se=String(b.r).substr(-1)==="%"?"prgb":"rgb"):xe(b.h)&&xe(b.s)&&xe(b.v)?(G=ee(b.s),K=ee(b.v),H=m(b.h,G,K),fe=!0,se="hsv"):xe(b.h)&&xe(b.s)&&xe(b.l)&&(G=ee(b.s),Q=ee(b.l),H=p(b.h,G,Q),fe=!0,se="hsl"),b.hasOwnProperty("a")&&(k=b.a)),k=M(k),{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:k}}function h(b,H,k){return{r:W(b,255)*255,g:W(H,255)*255,b:W(k,255)*255}}function f(b,H,k){b=W(b,255),H=W(H,255),k=W(k,255);var G=l(b,H,k),K=s(b,H,k),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-k)/$e+(H1&&(Ke-=1),Ke<1/6?Ve+(Yt-Ve)*6*Ke:Ke<1/2?Yt:Ke<2/3?Ve+(Yt-Ve)*(2/3-Ke)*6:Ve}if(H===0)G=K=Q=k;else{var se=k<.5?k*(1+H):k+H-k*H,$e=2*k-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 g(b,H,k){b=W(b,255),H=W(H,255),k=W(k,255);var G=l(b,H,k),K=s(b,H,k),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-k)/$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 k=d(b).toHsv(),G=k.h,K=k.s,Q=k.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,k){k=k===0?0:k||50;var G=d(b).toRgb(),K=d(H).toRgb(),Q=k/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 k=d(b),G=d(H);return(t.max(k.getLuminance(),G.getLuminance())+.05)/(t.min(k.getLuminance(),G.getLuminance())+.05)},d.isReadable=function(b,H,k){var G=d.readability(b,H),K,Q;switch(Q=!1,K=Te(k),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,k){var G=null,K=0,Q,fe,se,$e;k=k||{},fe=k.includeFallbackColors,se=k.level,$e=k.size;for(var Ve=0;VeK&&(K=Q,G=d(H[Ve]));return d.isReadable(b,G,{level:se,size:$e})||!fe?G:(k.includeFallbackColors=!1,d.mostReadable(b,["#fff","#000"],k))};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"},L=d.hexNames=F(V);function F(b){var H={};for(var k in b)b.hasOwnProperty(k)&&(H[b[k]]=k);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 k=de(b);return b=s(H,l(0,parseFloat(b))),k&&(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+%?",k="(?:"+H+")|(?:"+b+")",G="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",K="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),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 xe(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 k;return(k=ne.rgb.exec(b))?{r:k[1],g:k[2],b:k[3]}:(k=ne.rgba.exec(b))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=ne.hsl.exec(b))?{h:k[1],s:k[2],l:k[3]}:(k=ne.hsla.exec(b))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=ne.hsv.exec(b))?{h:k[1],s:k[2],v:k[3]}:(k=ne.hsva.exec(b))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=ne.hex8.exec(b))?{r:Y(k[1]),g:Y(k[2]),b:Y(k[3]),a:re(k[4]),format:H?"name":"hex8"}:(k=ne.hex6.exec(b))?{r:Y(k[1]),g:Y(k[2]),b:Y(k[3]),format:H?"name":"hex"}:(k=ne.hex4.exec(b))?{r:Y(k[1]+""+k[1]),g:Y(k[2]+""+k[2]),b:Y(k[3]+""+k[3]),a:re(k[4]+""+k[4]),format:H?"name":"hex8"}:(k=ne.hex3.exec(b))?{r:Y(k[1]+""+k[1]),g:Y(k[2]+""+k[2]),b:Y(k[3]+""+k[3]),format:H?"name":"hex"}:!1}function Te(b){var H,k;return b=b||{level:"AA",size:"small"},H=(b.level||"AA").toUpperCase(),k=(b.size||"small").toLowerCase(),H!=="AA"&&H!=="AAA"&&(H="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:H,size:k}}e.exports?e.exports=d:window.tinycolor=d})(Math)}),jc=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},wh=function(e,t){var n=vt(jt(e),2),i=n[0],o=n[1];return kt(function(){var a=setTimeout(function(){o(e)},t);return function(){clearTimeout(a)}},[e,t]),i},Qw=[{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"}],xh=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=bh(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=vt(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=Qw.find(function(m){return m.name===c}))===null||t===void 0?void 0:t.angle,p=u==="linear"?"180":"circle at center",g=f||c||p;return{gradient:u+"-gradient("+(typeof s!="string"?s.original:e)+")",type:u,modifier:g.match(/\d+/)!==null?Number((n=g.match(/\d+/))===null||n===void 0?void 0:n.join("")):g,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("")},e8=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)},t8=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],""),p=qr(["(?:(",t,")|",n,"|",i,")"],""),g=qr(["(?:(",p,")",o,")?(",f,")"],e),m=qr(["\\s*(",u,")","(?:\\s+","(",c,"))?","(?:",o,"\\s*)?"],e);return{gradientSearch:g,colorStopSearch:m}},n8=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},bh=function(e){var t=t8(),n,i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/,o=i.exec(e);return o!==null?(n=n8(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},b1=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}(),r8=200,i8=150,o8=function(e){var t=e.rootPrefixCls,n=e.color,i=e.colorBoardHeight,o=e.onChange,a=e.setChange,s=Pr(),l=function(){a(!1),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",g)},c=function(){a(!1),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",f)};kt(function(){return function(){l(),c()}},[]);var d=function(x){x.preventDefault();var y=x.buttons;if(y===1){l();var T=x.clientX,A=x.clientY;w({x:T,y:A}),window.addEventListener("mousemove",p),window.addEventListener("mouseup",g)}},u=function(x){if(x.cancelable&&x.preventDefault(),x.touches.length===1){c();var y=x.targetTouches[0].clientX,T=x.targetTouches[0].clientY;w({x:y,y:T}),window.addEventListener("touchmove",h,{passive:!1}),window.addEventListener("touchend",f,{passive:!1})}},h=function(x){x.cancelable&&x.preventDefault();var y=x.targetTouches[0].clientX,T=x.targetTouches[0].clientY;w({x:y,y:T})},f=function(){c()},p=function(x){x.preventDefault();var y=x.clientX,T=x.clientY;w({x:y,y:T})},g=function(x){x.preventDefault();var y=x.clientX,T=x.clientY;w({x:y,y:T}),l()},m=function(){return t+"-board"},w=function(x){var y=s&&s.current.getBoundingClientRect(),T=x.x-y.left,A=x.y-y.top,$=y.width||r8,O=y.height||i8;T=Math.max(0,T),T=Math.min(T,$),A=Math.max(0,A),A=Math.min(A,O),n.saturation=T/$,n.brightness=1-A/O,o(n)},E=m(),j={h:n.hue,s:1,v:1},D=new b1(j).toHexString(),C=n.saturation*100,S=(1-n.brightness)*100;return J.createElement("div",{className:E,ref:s},J.createElement("div",{className:E+"-hsv",style:{backgroundColor:D,height:i+"px",minHeight:i+"px"}},J.createElement("div",{className:E+"-value"}),J.createElement("div",{className:E+"-saturation"})),J.createElement("span",{style:{left:"calc("+C+"% - 7px)",top:"calc("+S+"% - 7px)",backgroundColor:n.toHexString()}}),J.createElement("div",{className:E+"-handler",onMouseDown:d,onTouchStart:u}))},a8=function(e){var t=e.rootPrefixCls,n=e.color,i=e.onChange,o=e.setChange,a=Pr(),s=function(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",u)},l=function(){o(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",p)};kt(function(){return function(){s(),l()}},[]);var c=function(S){S.preventDefault();var x=S.clientX,y=S.clientY;m({x,y}),window.addEventListener("mousemove",d),window.addEventListener("mouseup",u)},d=function(S){var x=S.clientX,y=S.clientY;m({x,y})},u=function(S){var x=S.clientX,y=S.clientY;m({x,y}),o(!1),s()},h=function(S){if(S.cancelable&&S.preventDefault(),S.touches.length===1){l();var x=S.targetTouches[0].clientX,y=S.targetTouches[0].clientY;m({x,y}),window.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}},f=function(S){S.cancelable&&S.preventDefault();var x=S.targetTouches[0].clientX,y=S.targetTouches[0].clientY;m({x,y})},p=function(){l()},g=function(){return t+"-ribbon"},m=function(S){var x=a&&a.current.getBoundingClientRect(),y=x.width,T=S.x-x.left;T=Math.max(0,T),T=Math.min(T,y);var A=T/y,$=A*360;n.hue=$,i(n)},w={h:n.hue,s:1,v:1},E=new b1(w).toHexString(),j=g(),D=n.hue,C=D/360*100;return J.createElement("div",{className:j,ref:a,onMouseDown:c,onTouchStart:h},J.createElement("div",{className:"color-picker-panel-ribbon-bg"}),J.createElement("span",{style:{left:C+"%",backgroundColor:E}}),J.createElement("div",{className:j+"-handler"}))},s0=function(e,t,n,i){return"rgba("+[e,t,n,i/100].join(",")+")"},s8=function(e){var t=e.rootPrefixCls,n=e.color,i=e.alpha,o=e.onChange,a=e.setChange,s=Pr(),l=function(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},c=function(){a(!1),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",g)};kt(function(){return function(){l(),c()}},[]);var d=function(C){var S=C.clientX,x=C.clientY;E({x:S,y:x}),window.addEventListener("mousemove",u),window.addEventListener("mouseup",h)},u=function(C){var S=C.clientX,x=C.clientY;E({x:S,y:x})},h=function(C){var S=C.clientX,x=C.clientY;E({x:S,y:x}),a(!1),l()},f=function(C){if(C.cancelable&&C.preventDefault(),C.touches.length===1){c();var S=C.targetTouches[0].clientX,x=C.targetTouches[0].clientY;E({x:S,y:x}),window.addEventListener("touchmove",p,{passive:!1}),window.addEventListener("touchend",g,{passive:!1})}},p=function(C){C.cancelable&&C.preventDefault();var S=C.targetTouches[0].clientX,x=C.targetTouches[0].clientY;E({x:S,y:x})},g=function(){c()},m=function(){var C=n.red,S=n.green,x=n.blue,y="linear-gradient(to right, "+s0(C,S,x,0)+" , "+s0(C,S,x,100)+")";return y},w=function(){return t+"-alpha"},E=function(C){var S=s&&s.current.getBoundingClientRect(),x=S.width,y=C.x-S.left;y=Math.max(0,y),y=Math.min(y,x);var T=Math.round(y/x*100);o(T)},j=function(){var C=n.red,S=n.green,x=n.blue,y=(i||1)/100;return"rgba("+C+", "+S+", "+x+", "+y+")"},D=w();return J.createElement("div",{className:D,ref:s,onMouseDown:d,onTouchStart:f},J.createElement("div",{className:D+"-bg",style:{background:m()}}),J.createElement("span",{style:{left:i+"%",backgroundColor:j()}}),J.createElement("div",{className:D+"-handler"}))},yh=function(e){var t=e.alpha,n=e.className,i=e.hex,o=e.colorBoardHeight,a=e.showAlpha,s=e.onChange,l=Pr(),c=new b1(i);c.alpha=t;var d=vt(jt({color:c,alpha:t}),2),u=d[0],h=d[1],f=vt(jt(!1),2),p=f[0],g=f[1];kt(function(){p||h({color:c,alpha:t})},[i,t]);var m=function(E){g(!0);var j=u.color;j.alpha=E,h({color:j,alpha:E}),s({hex:j.toHexString(),alpha:E})},w=function(E){g(!0);var j=u.alpha;E.alpha=j,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(o8,{rootPrefixCls:"color-picker-panel",color:u.color,colorBoardHeight:o,onChange:w,setChange:g}),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(a8,{rootPrefixCls:"color-picker-panel",color:u.color,onChange:w,setChange:g})),a&&J.createElement("div",{className:"color-picker-panel-wrap-alpha"},J.createElement(s8,{rootPrefixCls:"color-picker-panel",alpha:u.alpha,color:u.color,onChange:m,setChange:g})))))};x1(`.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 l8=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},c8=function(e){return e?e.substr(0,3).replace(/[^\d]/g,""):""},d8=function(e){return e&&e.substring(0,1)==="#"&&(e=e.substring(1)),e?e.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""},u8=function(e,t){e.key==="Enter"&&t()},h8=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(d8(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(c8(i.target.value))},name:"alpha"};return e.showAlpha===!1?[t]:[t,n]},Ch=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=vt(jt({alpha:n,hex:t}),2),u=d[0],h=d[1],f=function(w){var E=l8(w);h(he(he({},u),{alpha:Number(E)}))},p=function(w){h(he(he({},u),{hex:w}))},g=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}))};kt(function(){h({hex:t,alpha:n})},[t,n]);var m={alphaValue:u.alpha,hexValue:u.hex.replace(/#/i,""),onChangeAlpha:f,onChangeHex:p,showAlpha:s};return J.createElement("div",{className:"input_rgba"},J.createElement("div",{className:"input_rgba-wrap"},h8(m).map(function(w,E){var j=w.wrapClass,D=w.labelSymbol,C=w.idInput,S=w.valueInput,x=w.labelText,y=w.labelArea,T=w.labelClass,A=w.onChangeInput,$=w.name;return J.createElement("div",{className:j,key:E},D&&J.createElement("label",{htmlFor:"rgba-hex",className:"input_rgba-hex-label"},"#"),$==="alpha"&&J.createElement("label",{htmlFor:C,className:"input_rgba-alpha-label"},"%"),J.createElement("input",{type:"text",id:C,value:S,"aria-label":y,onChange:function(O){return A(O)},onBlur:g,onKeyPress:function(O){return u8(O,g)}}),J.createElement("div",{className:T},x))})))},f8=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=Pr(),p=vt(jt(!1),2),g=p[0],m=p[1],w=vt(jt(!1),2),E=w[0],j=w[1],D=t.stops,C=t.type,S=t.modifier,x=function(L){if(a(!1),L.stopPropagation(),!!h){var F=L.target;if(F.className!=="gradient-marker"){var M=F.getBoundingClientRect(),W=L.clientX-M.left,X=Number((100/M.width*W).toFixed(0))/100,Y=Ge(i.hex);Y.setAlpha(i.alpha/100);var le=vh(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(C,le,S,l,d),stops:le})),o(he(he({},i),{loc:X,index:le.find(function(de){return de[1]===X})[2]}))}}},y=function(){window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",O)},T=function(){window.removeEventListener("touchmove",z),window.removeEventListener("touchend",Z)},A=function(L,F){if(L.preventDefault(),L.stopPropagation(),L.nativeEvent.stopImmediatePropagation(),L.detail!==2&&(a(!1),L.button===0)){var M=Ge(F[0]);o({hex:"#"+M.toHex(),alpha:M.getAlpha()*100,loc:F[1],index:F[2]});var W=L.clientX,X=L.clientY;I({x:W,y:X}),window.addEventListener("mousemove",$),window.addEventListener("mouseup",O)}},$=function(L){var F,M=L.clientX,W=L.clientY,X=(F=f==null?void 0:f.current)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=W-X.y;if(Y>80&&D.length>2){j(!0);return}else j(!1);I({x:M,y:W})},O=function(L){var F,M=L.clientX,W=L.clientY,X=(F=f==null?void 0:f.current)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=W-X.y;Y>80&&D.length>2&&m(!0),I({x:M,y:W}),y()},P=function(L,F){if(a(!1),L.cancelable&&L.preventDefault(),L.touches.length===1){T();var M=Ge(F[0]);o({hex:"#"+M.toHex(),alpha:M.getAlpha()*100,loc:F[1],index:F[2]});var W=L.targetTouches[0].clientX,X=L.targetTouches[0].clientY;I({x:W,y:X}),window.addEventListener("touchmove",z,{passive:!1}),window.addEventListener("touchend",Z,{passive:!1})}},z=function(L){var F;L.cancelable&&L.preventDefault();var M=L.targetTouches[0].clientX,W=L.targetTouches[0].clientY,X=(F=f==null?void 0:f.current)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=W-X.y;if(Y>80&&D.length>2){j(!0);return}else j(!1);I({x:M,y:W})},Z=function(){T()},I=function(L){var F=f&&f.current.getBoundingClientRect(),M=F.width,W=L.x-F.left;W=Math.max(0,W),W=Math.min(W,M);var X=Number((100/F.width*W).toFixed(0))/100;o(function(Y){return he(he({},Y),{loc:X})})},V=function(){if(!(D.length<=2)){var L=D.filter(function(Y){return Y[2]!==i.index}).map(function(Y,le){return Y[2]=le,Y}),F=Lo(L[L.length-1][0]),M=L[L.length-1][1],W=Ao([F[0],F[1],F[2]]),X=L[L.length-1][2];return m(!1),j(!1),o({hex:W,alpha:Number(Math.round(F[3]*100)),loc:M,index:X}),n(he(he({},t),{gradient:""+Vn(C,L,S,l,d),stops:L}))}};return kt(function(){if(g)return V();var L=D.map(function(F){return i.index===F[2]?[F[0],i.loc,F[2]]:F});n(he(he({},t),{gradient:""+Vn(C,L,S,l,d),stops:L}))},[i.loc,g]),kt(function(){return function(){y(),T()}},[]),J.createElement("div",{className:"gradient-stops",onClick:function(L){return x(L)},ref:f},J.createElement("div",{className:"gradient-stop-preview",style:{background:"linear-gradient(to right, "+D.map(function(L){return L[0]+" "+L[1]*100+"%"}).join(", ")+")"}}),J.createElement("div",{className:"gradient-stop-marker"},D.map(function(L){var F=L[1]*100,M=L[0];return J.createElement("div",{key:M+F+Math.random()*100,className:"gradient-marker"+(E&&i.index===L[2]?" hide":"")+(!E&&i.index===L[2]?" active":""),style:{left:Math.abs(Math.min(F,100))+"%",color:M},onTouchStart:function(W){return P(W,L)},onMouseDown:function(W){return A(W,L)},onClick:function(W){return W.stopPropagation()},onDoubleClick:V})})))},p8=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(e8([i[0],i[1],i[2]]))return t="solid",t}else return t="gradient",t}return t},l0=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=vh(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=bh(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[]}},_h=function(e,t){if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;ne.gradient);function jh({value:e,onChange:t}){const n=Ei(i=>{t(i)},0);return r.jsx("div",{className:"brandy-gradient-picker",children:r.jsx(y8,{value:e,onChange:n,gradient:!0,solid:!1,defaultColors:C8})})}function y1(){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 _8=window.React.useEffect,li=window.React.useMemo,wa=window.React.useState,S8=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"}];function zt({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(S=>!S)},p=()=>{h(!1)},g=w1(),m=li(()=>v1(e),[e,g]),[w,E]=wa(e!=null&&e.includes("gradient")?"gradient":"solid");_8(()=>{const S=x=>{o==null&&s==null&&p(),!(s!=null&&s.contains(x.target))&&!(o!=null&&o.contains(x.target))&&p()};return window.jQuery(document).on("click","body",S),()=>{window.jQuery(document).off("click","body",S)}},[o,s]);const j=li(()=>m.color==""||m.color.endsWith("00")&&m.color.length>7,[m]),D=li(()=>m.color=="",[m]),C=li(()=>m.isGlobal,[m]);return r.jsxs(k8,{className:"brandy-color-picker",children:[r.jsxs(E8,{className:"brandy-color-preview",style:{background:m.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"},j&&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:[j&&r.jsx(D8,{className:"[&_svg]:fill-[#A1ABB7]",children:D?r.jsx(y1,{}):r.jsx(fh,{})}),C&&r.jsx($8,{children:r.jsx(gh,{})})]}),u&&r.jsxs(H8,{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(M8,{children:r.jsx(Tt,{options:S8,selected:w??"solid",onChange:S=>{E(S)}})}),i&&w==="gradient"?r.jsx(jh,{value:e??"",onChange:t}):r.jsx(kh,{color:e,onChange:t,hideGlobals:n})]})]})}const El=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"}),j8="#ffffff00",kh=({color:e,onChange:t=()=>!1,hideGlobals:n=!1})=>{const i=w1(),o=li(()=>mh(),[i]),a=li(()=>v1(e),[e,i]);return r.jsxs(r.Fragment,{children:[r.jsx(I8,{children:r.jsx(yw,{color:a.color||j8,onChange:s=>{a.color==""||a.color==null||a.color.endsWith("00")&&a.color.length>7?t(s.slice(0,-2)+"ff"):t(s)}})}),r.jsx(T8,{children:r.jsx(L8,{value:a.color||"",onChange:t})}),!n&&r.jsxs("div",{children:[r.jsx(A8,{children:N("Theme colors")}),r.jsx(R8,{children:o.theme.map((s,l)=>r.jsx(rn,{title:s.name,children:r.jsx(O8,{className:`dashicons ${s.value===e?"selected":""} global-block`,style:{background:s.color},onClick:()=>{t(s.value)},$_css4:[El]})},l))}),r.jsx(N8,{children:N("Palette colors")}),r.jsxs(P8,{children:[o.palette.map((s,l)=>r.jsx(rn,{title:s.name,style:{textTransform:"capitalize"},children:r.jsx(V8,{className:`dashicons ${s.value===e?"selected":""} global-block`,style:{background:s.color},onClick:()=>{t(s.value)},$_css5:[El]})},l)),r.jsx(B8,{className:`dashicons ${a.color==""?"selected":""} global-block transparent-block`,onClick:()=>{t("")},$_css6:[El]})]})]})]})};var k8=v("div")({position:"relative"}),E8=v("div")`${e=>e.$_css2}`,D8=v("span")({position:"relative",display:"inline-block"}),$8=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"}}),H8=v("div")`${e=>e.$_css3}`,M8=v("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"}),I8=v("div")({padding:"1rem",">.react-colorful":{width:"100%"}}),T8=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"}),L8=v(ot)({width:"100%"}),A8=v("div")({marginLeft:"1rem",marginRight:"1rem",marginTop:"1rem",fontWeight:"500"}),R8=v("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),O8=v("div")`${e=>e.$_css4}`,N8=v("div")({marginLeft:"1rem",marginRight:"1rem",fontWeight:"500"}),P8=v("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),V8=v("div")`${e=>e.$_css5}`,B8=v("div").withConfig({displayName:"ColorPicker___StyledDiv11",componentId:"sc-g829wk-0"})(["",""],e=>e.$_css6);function or(e){"@babel/helpers - typeof";return or=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},or(e)}function z8(e,t){if(or(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(or(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F8(e){var t=z8(e,"string");return or(t)=="symbol"?t:t+""}function xn(e,t,n){return(t=F8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m0(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 yt(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(Yo(!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 a6=window.React;var Vr=a6.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),s6=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const Hl=window.React;var y0=Hl.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,p=$h(e,s6),g=Hl.useContext(Vr),m=g.min,w=g.max,E=g.direction,j=g.disabled,D=g.keyboard,C=g.range,S=g.tabIndex,x=g.ariaLabelForHandle,y=g.ariaLabelledByForHandle,T=g.ariaValueTextFormatterForHandle,A=g.styles,$=g.classNames,O="".concat(n,"-handle"),P=function(Y){j||a(Y,o)},z=function(Y){h==null||h(Y,o)},Z=function(Y){f(Y,o)},I=function(Y){if(!j&&D){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}},L=C1(E,i,m,w),F={};if(o!==null){var M;F={tabIndex:j?null:ci(S,o),role:"slider","aria-valuemin":m,"aria-valuemax":w,"aria-valuenow":i,"aria-disabled":j,"aria-label":ci(x,o),"aria-labelledby":ci(y,o),"aria-valuetext":(M=ci(T,o))===null||M===void 0?void 0:M(i),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:P,onTouchStart:P,onFocus:z,onMouseEnter:Z,onKeyDown:I,onKeyUp:V}}var W=Hl.createElement("div",Ro({ref:t,className:ke(O,xn(xn({},"".concat(O,"-").concat(o+1),o!==null&&C),"".concat(O,"-dragging"),c),$.handle),style:yt(yt(yt({},L),s),A.handle)},F,p));return l&&(W=l(W,{index:o,prefixCls:n,value:i,dragging:c})),W}),l6=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"];const Kn=window.React;var c6=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=$h(e,l6),f=Kn.useRef({});Kn.useImperativeHandle(t,function(){return{focus:function(S){var x;(x=f.current[S])===null||x===void 0||x.focus()}}});var p=Kn.useState(-1),g=Mt(p,2),m=g[0],w=g[1],E=function(S,x){w(x),u==null||u(S)},j=function(S,x){w(x)},D=yt({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:E,onMouseEnter:j},h);return Kn.createElement(Kn.Fragment,null,s.map(function(C,S){return Kn.createElement(y0,Ro({ref:function(y){y?f.current[S]=y:delete f.current[S]},dragging:d===S,style:ci(i,S),key:S,value:C,valueIndex:S},D))}),c&&Kn.createElement(y0,Ro({key:"a11y"},D,{value:s[m],valueIndex:null,dragging:d!==-1,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const C0=window.React;var d6=function(t){var n=t.prefixCls,i=t.style,o=t.children,a=t.value,s=t.onClick,l=C0.useContext(Vr),c=l.min,d=l.max,u=l.direction,h=l.includedStart,f=l.includedEnd,p=l.included,g="".concat(n,"-text"),m=C1(u,a,c,d);return C0.createElement("span",{className:ke(g,xn({},"".concat(g,"-active"),p&&h<=a&&a<=f)),style:yt(yt({},m),i),onMouseDown:function(E){E.stopPropagation()},onClick:function(){s(a)}},o)};const _0=window.React;var u6=function(t){var n=t.prefixCls,i=t.marks,o=t.onClick,a="".concat(n,"-mark");return i.length?_0.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,d=s.label;return _0.createElement(d6,{key:l,prefixCls:a,style:c,value:l,onClick:o},d)})):null};const S0=window.React;var h6=function(t){var n=t.prefixCls,i=t.value,o=t.style,a=t.activeStyle,s=S0.useContext(Vr),l=s.min,c=s.max,d=s.direction,u=s.included,h=s.includedStart,f=s.includedEnd,p="".concat(n,"-dot"),g=u&&h<=i&&i<=f,m=yt(yt({},C1(d,i,l,c)),typeof o=="function"?o(i):o);return g&&(m=yt(yt({},m),typeof a=="function"?a(i):a)),S0.createElement("span",{className:ke(p,xn({},"".concat(p,"-active"),g)),style:m})};const xa=window.React;var f6=function(t){var n=t.prefixCls,i=t.marks,o=t.dots,a=t.style,s=t.activeStyle,l=xa.useContext(Vr),c=l.min,d=l.max,u=l.step,h=xa.useMemo(function(){var f=new Set;if(i.forEach(function(g){f.add(g.value)}),o&&u!==null)for(var p=c;p<=d;)f.add(p),p+=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(h6,{prefixCls:n,key:f,value:f,style:a,activeStyle:s})}))};const j0=window.React;var k0=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=j0.useContext(Vr),u=d.direction,h=d.min,f=d.max,p=d.disabled,g=d.range,m=d.classNames,w="".concat(n,"-track"),E=Hc(o,h,f),j=Hc(a,h,f),D=function(y){!p&&l&&l(y,-1)},C={};switch(u){case"rtl":C.right="".concat(E*100,"%"),C.width="".concat(j*100-E*100,"%");break;case"btt":C.bottom="".concat(E*100,"%"),C.height="".concat(j*100-E*100,"%");break;case"ttb":C.top="".concat(E*100,"%"),C.height="".concat(j*100-E*100,"%");break;default:C.left="".concat(E*100,"%"),C.width="".concat(j*100-E*100,"%")}var S=c||ke(w,xn(xn({},"".concat(w,"-").concat(s+1),s!==null&&g),"".concat(n,"-track-draggable"),l),m.track);return j0.createElement("div",{className:S,style:yt(yt({},C),i),onMouseDown:D,onTouchStart:D})};const Qr=window.React;var p6=function(t){var n=t.prefixCls,i=t.style,o=t.values,a=t.startPoint,s=t.onStartMove,l=Qr.useContext(Vr),c=l.included,d=l.range,u=l.min,h=l.styles,f=l.classNames,p=Qr.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=[],j=0;j3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var j,D=g[w],C=D+m,S=[];i.forEach(function($){S.push($.value)}),S.push(e,t),S.push(l(D));var x=m>0?1:-1;E==="unit"?S.push(l(D+x*n)):S.push(l(C)),S=S.filter(function($){return $!==null}).filter(function($){return m<0?$<=D:$>=D}),E==="unit"&&(S=S.filter(function($){return $!==D}));var y=E==="unit"?D:C;j=S[0];var T=Math.abs(j-y);if(S.forEach(function($){var O=Math.abs($-y);O1){var A=nr(g);return A[w]=j,p(A,m-x,w,E)}return j}else{if(m==="min")return e;if(m==="max")return t}},u=function(g,m,w){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",j=g[w],D=d(g,m,w,E);return{value:D,changed:D!==j}},h=function(g){return a===null&&g===0||typeof a=="number"&&g3&&arguments[3]!==void 0?arguments[3]:"unit",j=g.map(c),D=j[w],C=d(j,m,w,E);if(j[w]=C,o===!1){var S=a||0;w>0&&j[w-1]!==D&&(j[w]=Math.max(j[w],j[w-1]+S)),w0;A-=1)for(var $=!0;h(j[A]-j[A-1])&&$;){var O=u(j,-1,A-1);j[A-1]=O.value,$=O.changed}for(var P=j.length-1;P>0;P-=1)for(var z=!0;h(j[P]-j[P-1])&&z;){var Z=u(j,-1,P-1);j[P-1]=Z.value,z=Z.changed}for(var I=0;I=0?V:!1},[V,Ve]),Ke=Re.useMemo(function(){return Object.keys(re||{}).map(function(Ne){var me=re[Ne],Ee={value:Number(Ne)};return me&&or(me)==="object"&&!Re.isValidElement(me)&&("label"in me||"style"in me)?(Ee.style=me.style,Ee.label=me.label):Ee.label=me,Ee}).filter(function(Ne){var me=Ne.label;return me||typeof me=="number"}).sort(function(Ne,me){return Ne.value-me.value})},[re]),Zr=x6(se,$e,Ve,Ke,Z,Yt),lr=Mt(Zr,2),Xt=lr[0],Tn=lr[1],ea=q8(x,{value:S}),Ot=Mt(ea,2),fn=Ot[0],ta=Ot[1],Jt=Re.useMemo(function(){var Ne=fn==null?[]:Array.isArray(fn)?fn:[fn],me=Mt(Ne,1),Ee=me[0],nt=Ee===void 0?se:Ee,rt=fn===null?[]:[nt];if(y){if(rt=nr(Ne),T||fn===void 0){var qt=T>=0?T+1:2;for(rt=rt.slice(0,qt);rt.length=0&&K.current.focus(Ne)}na(null)},[Ln]);var sl=Re.useMemo(function(){return L&&Ve===null?!1:L},[L,Ve]),ra=function(me,Ee){Gr(me,Ee),$==null||$(Cn(cr.current))},ia=Pi!==-1;Re.useEffect(function(){if(!ia){var Ne=Jt.lastIndexOf(ol);K.current.focus(Ne)}},[ia]);var An=Re.useMemo(function(){return nr(Vi).sort(function(Ne,me){return Ne-me})},[Vi]),Fi=Re.useMemo(function(){return y?[An[0],An[An.length-1]]:[se,An[0]]},[An,y,se]),_n=Mt(Fi,2),oa=_n[0],aa=_n[1];Re.useImperativeHandle(t,function(){return{focus:function(){K.current.focus(0)},blur:function(){var me,Ee=document,nt=Ee.activeElement;(me=Q.current)!==null&&me!==void 0&&me.contains(nt)&&(nt==null||nt.blur())}}}),Re.useEffect(function(){f&&K.current.focus(0)},[]);var ll=Re.useMemo(function(){return{min:se,max:$e,direction:fe,disabled:d,keyboard:h,step:Ve,included:X,includedStart:oa,includedEnd:aa,range:y,tabIndex:b,ariaLabelForHandle:H,ariaLabelledByForHandle:k,ariaValueTextFormatterForHandle:G,styles:l||{},classNames:s||{}}},[se,$e,fe,d,h,Ve,X,oa,aa,y,b,H,k,G,l,s]);return Re.createElement(Vr.Provider,{value:ll},Re.createElement("div",{ref:Q,className:ke(i,o,xn(xn(xn(xn({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),M),"".concat(i,"-horizontal"),!M),"".concat(i,"-with-marks"),Ke.length)),style:a,onMouseDown:Bi},Re.createElement("div",{className:ke("".concat(i,"-rail"),s==null?void 0:s.rail),style:yt(yt({},B),l==null?void 0:l.rail)}),Re.createElement(p6,{prefixCls:i,style:le,values:An,startPoint:Y,onStartMove:sl?ra:void 0}),Re.createElement(f6,{prefixCls:i,marks:Ke,dots:ne,style:ee,activeStyle:ce}),Re.createElement(c6,{ref:K,prefixCls:i,style:de,values:Vi,draggingIndex:Pi,onStartMove:ra,onOffsetChange:al,onFocus:p,onBlur:g,handleRender:xe,activeHandleRender:Ae,onChangeComplete:Ni}),Re.createElement(u6,{prefixCls:i,marks:Ke,onClick:Un})))});function j1({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(b6,{className:ke(["brandy-component-slider",a]),value:e,onChange:l,min:n,max:i,step:s,defaultValue:o})}var is={exports:{}};is.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]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",w="[object Number]",E="[object Null]",j="[object Object]",D="[object Promise]",C="[object Proxy]",S="[object RegExp]",x="[object Set]",y="[object String]",T="[object Symbol]",A="[object Undefined]",$="[object WeakMap]",O="[object ArrayBuffer]",P="[object DataView]",z="[object Float32Array]",Z="[object Float64Array]",I="[object Int8Array]",V="[object Int16Array]",L="[object Int32Array]",F="[object Uint8Array]",M="[object Uint8ClampedArray]",W="[object Uint16Array]",X="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,le=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,B={};B[z]=B[Z]=B[I]=B[V]=B[L]=B[F]=B[M]=B[W]=B[X]=!0,B[l]=B[c]=B[O]=B[u]=B[P]=B[h]=B[f]=B[p]=B[m]=B[w]=B[j]=B[S]=B[x]=B[y]=B[$]=!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,xe=ne&&!0&&e&&!e.nodeType&&e,Ae=xe&&xe.exports===ne,Te=Ae&&ee.process,b=function(){try{return Te&&Te.binding&&Te.binding("util")}catch{}}(),H=b&&b.isTypedArray;function k(_,R){for(var U=-1,ie=_==null?0:_.length,Be=0,ye=[];++U-1}function pn(_,R){var U=this.__data__,ie=la(U,_);return ie<0?(++this.size,U.push([_,R])):U[ie][1]=R,this}Ee.prototype.clear=nt,Ee.prototype.delete=rt,Ee.prototype.get=qt,Ee.prototype.has=Qt,Ee.prototype.set=pn;function Ct(_){var R=-1,U=_==null?0:_.length;for(this.clear();++Rut))return!1;var Ue=ye.get(_);if(Ue&&ye.get(R))return Ue==R;var Nt=-1,gn=!0,xt=U&a?new sa:void 0;for(ye.set(_,R),ye.set(R,_);++Nt-1&&_%1==0&&_-1&&_%1==0&&_<=s}function sd(_){var R=typeof _;return _!=null&&(R=="object"||R=="function")}function Wi(_){return _!=null&&typeof _=="object"}var ld=H?fe(H):up;function jp(_){return _p(_)?sp(_):hp(_)}function kp(){return[]}function Ep(){return!1}e.exports=Sp})(is,is.exports);var y6=is.exports;const k1=Wt(y6);function Mh({onReset:e,hasChanged:t=!1}){const n=()=>{t&&e()};return r.jsx(C6,{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(_w,{})})}var C6=v("div").withConfig({displayName:"ResetButton___StyledDiv",componentId:"sc-n1cbpg-0"})(["",""],e=>e.$_css);const _6=window.React.useCallback,S6=window.React.useContext,D0=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 Xs(e){const{builder:t}=S6(Ut),n=te(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=te(t)(l=>l.previewTemplate),{current:o}=be(),a=_6(()=>{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=_e(c.settings,h);St(l,h,f),Hn({sectionId:e.sectionId,settings:Md(h,f),device:o,builder:t,clonedFromId:e.cloned_from}),A2({sectionId:e.sectionId,settings:Md(h,f),device:o,builder:t})})})},[n,e,o,t]),s=D0(()=>{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 p=_e(l.settings,f),g=_e(c.settings,f);k1(p,g)||(d=!0)},!1),d},[o,e.sectionId,e.reset_paths,i,t]);return D0(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(j6,{children:[r.jsx(at,{className:ke(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Mh,{onReset:a,hasChanged:s})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[a,e.title])}var j6=v("div").withConfig({displayName:"Reset___StyledDiv",componentId:"sc-pc751i-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const k6=window.React.useMemo,E6=window.React.useState,D6=[{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"}],$6={x:{title:N("X offset")},y:{title:N("Y offset")},blur:{title:N("Blur")},spread:{title:N("Spread")}};function H6(e){const{current:t}=be(),n=k6(()=>ge(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]=E6(!1);return r.jsxs(M6,{children:[r.jsxs(I6,{children:[r.jsxs(T6,{children:[r.jsx(at,{title:e.title,className:"mb-0"}),n.enabled&&r.jsx(L6,{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(A6,{children:[(e.can_reset??!0)&&r.jsx(Xs,{...e,title:{text:""},reset_paths:[e.value_path]}),r.jsx(ns,{checked:n.enabled,onChange:i})]})]}),n.enabled&&s&&r.jsxs(R6,{className:"box-shadow-wrapper",children:[r.jsx(ct,{options:D6,selected:n.type,onChange:o,popupHeight:220}),n.type==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(O6,{children:[r.jsx(N6,{children:"Shadow color"}),r.jsx(zt,{color:n.custom_value.color??"#cdcdcd",onChange:a("color")})]}),Object.entries($6).map(([c,d])=>r.jsxs("div",{children:[r.jsx(P6,{children:d.title}),r.jsxs(V6,{children:[r.jsx(B6,{type:"number",value:n.custom_value[c],min:-10,max:40,onChange:a(c)}),r.jsx(j1,{value:n.custom_value[c],min:-10,max:40,onChange:a(c)})]})]},c))]})]})]})}var M6=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),I6=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),T6=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),L6=v("span")`${e=>e.$_css}`,A6=v("div")({display:"flex",alignItems:"center",gap:"0.5rem"}),R6=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),O6=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),N6=v("span")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),P6=v("div")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),V6=v("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.75rem"}),B6=v(ot).withConfig({displayName:"BoxShadowBuilder___StyledInput",componentId:"sc-no79k6-0"})({width:"60px"});const z6=window.React.useCallback,Il=window.React.useMemo;function Br({inputValue:e,onChange:t}){const{current:n}=be(),i=Il(()=>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=Il(()=>{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=z6(()=>{n!=="desktop"&&t(null)},[n,t]);return{ResetInheritButton:Il(()=>o?()=>!1:({className:l=""})=>r.jsx(F6,{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 F6=v("span").withConfig({displayName:"useInheritResponsive___StyledSpan",componentId:"sc-l0r28k-0"})(["",""],e=>e.$_css);const Z6=window.React.useMemo;function sr(e){const{current:t}=be(),n=Z6(()=>ge(e.value,t),[t,e.value]),{ResetInheritButton:i}=Br({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(W6,{children:[!e.disableInherit&&r.jsx(i,{}),r.jsx(at,{title:e.title,className:"mb-2"})]}),r.jsx(Tt,{selected:n,options:e.options??[],onChange:e.onChange})]})}var W6=v("div").withConfig({displayName:"ButtonGroupBuilder___StyledDiv",componentId:"sc-t3hi5f-0"})({position:"relative"});const G6=window.React.createElement,U6=window.React.useCallback,Ih=window.React.useMemo;function Y6(e){const{ResetInheritButton:t}=Br({inputValue:e.value,onChange:i=>{Object.keys(e.value).forEach(o=>{e.onChange(i,[...e.value_path,o])})}}),n=Ih(()=>e.value.enabled_gradient,[e.value.enabled_gradient]);return r.jsxs(J6,{children:[r.jsx(t,{}),r.jsx(at,{title:e.title,className:"mb-0"}),r.jsx(K6,{children:Object.entries(e.value).map((i,o)=>{if(i[0]!=="enabled_gradient")return G6(X6,{...e,attributeKey:i[0],color:i[1],key:o,usingGradient:n})})})]})}function X6(e){const{current:t}=be(),n=Ih(()=>ge(e.color,t),[e.color,t]),i=U6(o=>{e.onChange(o,[...e.value_path,e.attributeKey])},[e]);return r.jsx(rn,{title:e.attributeKey,style:{textTransform:"capitalize"},children:r.jsx(zt,{color:n,onChange:i,usingGradient:e.usingGradient})})}var J6=v("div")({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"}),K6=v("div").withConfig({displayName:"ColorGroupBuilder___StyledDiv2",componentId:"sc-d3agj8-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const Th=["px","em","rem","%"],Lh=({options:e=Th,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))})},H0=window.React.useCallback;function dn({value:e,onChange:t=()=>!1,title:n="Dimension",units:i=Th,min:o=0,max:a=100,hideUnitSelection:s=!1,step:l=1}){const c=Ei(f=>{t({...e,unit:f})},0),d=H0(f=>{c(f)},[c]),u=Ei(f=>{t({...e,value:f})},0),h=H0(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(Lh,{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(j1,{className:"w-2/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l})]})]})}const Ji=window.React.useMemo;function q6(e){const{current:t}=be(),n=Ji(()=>ge(e.value,t),[t,e.value]),i=Ji(()=>ge(e.default_value,t),[e.default_value,t]),o=Ji(()=>(i==null?void 0:i.min)??0,[i]),a=Ji(()=>(i==null?void 0:i.max)??100,[i]),{ResetInheritButton:s}=Br({inputValue:{inputValue:e.value},onChange:e.onChange});return Ji(()=>r.jsxs(Q6,{children:[r.jsx(dn,{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 Q6=v("div").withConfig({displayName:"DimensionBuilder___StyledDiv",componentId:"sc-k78v94-0"})({position:"relative"});const M0=window.React.useEffect,e9=window.React.useState,t9="Select image",n9="Use this image";function r9(e={}){const t=(e==null?void 0:e.title)??t9,n=(e==null?void 0:e.buttonText)??n9,[i,o]=e9(null);return M0(()=>{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]),M0(()=>()=>{window.jQuery("#brandy-upload-media").closest('[id^="__wp-uploader-id"]').remove()},[]),{media:i}}function Ah({value:e,onChange:t}){const{media:n}=r9({onSelect:t}),i=o=>{o.preventDefault(),n&&n.open()};return r.jsx(r.Fragment,{children:e?r.jsxs(i9,{className:"group",children:[r.jsxs(o9,{children:[r.jsx(a9,{}),e&&r.jsx(s9,{src:e})]}),r.jsx(l9,{onClick:i,children:"Change photo"})]}):r.jsx(c9,{onClick:i,children:"Select photo"})})}var i9=v("div")({position:"relative",display:"flex",width:"100%",flexDirection:"column",gap:"0.5rem"}),o9=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"}),a9=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"}}),s9=v("img")({height:"100%",width:"100%",objectFit:"contain"}),l9=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"}}),c9=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 I0=window.React.useMemo;function d9(e){const{current:t}=be(),n=I0(()=>ge(e.value,t),[t,e.value]);return I0(()=>r.jsxs(u9,{children:[r.jsx(at,{title:e.title}),r.jsx(Ah,{value:n,onChange:e.onChange})]}),[n,e.onChange,e.title])}var u9=v("div").withConfig({displayName:"ImageBuilder___StyledDiv",componentId:"sc-1enyrgi-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const h9=window.React;function Rh(e){const{current:t}=be(),{ResetInheritButton:n}=Br({inputValue:{inputValue:e.value},onChange:e.onChange}),i=h9.useMemo(()=>ge(e.value,t),[t,e.value]);return r.jsxs(f9,{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(p9,{children:[r.jsx(n,{}),r.jsx(at,{title:e.title,className:"!mb-0"})]}),r.jsx(ns,{checked:i,onChange:e.onChange}),e.description&&r.jsx(g9,{dangerouslySetInnerHTML:{__html:e.description}})]})}var f9=v("div")`${e=>e.$_css2}`,p9=v("div")({position:"relative"}),g9=v("div").withConfig({displayName:"SwitcherBuilder___StyledDiv3",componentId:"sc-10j4p3z-0"})({marginTop:"10px",width:"100%",fontSize:"12px",fontStyle:"italic"});const m9=window.React.createContext,gr=window.React.useMemo,Li=m9({});function v9({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=gr(()=>e.font_size,[e]),u=gr(()=>e.line_height,[e]),h=gr(()=>e.letter_spacing,[e]),f=gr(()=>e.font_style,[e.font_style]),p=gr(()=>e.transform,[e.transform]),g=gr(()=>e.decoration,[e.decoration]),m=gr(()=>({fontSize:d,lineHeight:u,letterSpacing:h,fontStyle:f,transform:p,decoration:g,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,g,p]);return r.jsx(Li.Provider,{value:m,children:t})}const w9=window.React.useContext,x9=window.React.useMemo;function b9(){const{current:e}=be(),{fontSize:t,onChange:n,fontSizeMin:i,fontSizeMax:o}=w9(Li),a=l=>{n("font_size",l)},s=x9(()=>ge(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-font-size",children:r.jsx(dn,{title:r.jsx(y9,{children:N("Font size")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var y9=v(dt).withConfig({displayName:"FontSize___StyledStyledSettingLabel",componentId:"sc-16fkzly-0"})({margin:"0px"});const C9=window.React.forwardRef,_9=window.React.useEffect,S9=window.React.useMemo,Tl=window.React.useRef,j9=window.React.useState,k9=window.ReactDOM.createPortal,E9=ue(["svg{*[fill]{","}*[stroke]{","}}"],{fill:"#2271B1"},{stroke:"#2271B1"}),Mc=[{name:"desktop",icon:r.jsx(uh,{})},{name:"tablet",icon:r.jsx(jw,{})},{name:"mobile",icon:r.jsx(hh,{})}],D9=C9(({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:Mc.map(i=>r.jsx($9,{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&&E9],children:i.icon},i.name))}));function E1(){const{current:e,changeDevice:t}=be(),[n,i]=j9(!1),o=f=>{t(f)},a=S9(()=>Mc.find(f=>f.name===e)??Mc[0],[e]),s=f=>{f.preventDefault(),i(p=>!p)},l=()=>{i(!1)},c=Tl(null),d=Tl(null),u=Tl(null),h=k9(n?r.jsx(D9,{currentDevice:e,onChange:o,ref:d}):!1,u.current??document.body);return _9(()=>{const f=p=>{var g,m;c.current==null&&d.current==null&&l(),!((g=c==null?void 0:c.current)!=null&&g.contains(p.target))&&!((m=d.current)!=null&&m.contains(p.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 $9=v("div").withConfig({displayName:"DeviceSwitcher___StyledDiv",componentId:"sc-1sdffvj-0"})(["",""],e=>e.$_css2);const Ic=[{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"}],H9=window.React.useContext,Ll=window.React.useMemo,M9=Ic.map(e=>({value:e.key,label:e.label}));function I9(){const{current:e}=be(),{fontStyle:t,onChange:n}=H9(Li),i=Ll(()=>{var l;return((l=ge(t,e))==null?void 0:l.weight)??400},[e,t]),o=Ll(()=>{var l;return((l=ge(t,e))==null?void 0:l.italic)??!1},[e,t]),a=Ll(()=>Ic.find(l=>l.weight===i&&l.italic===o),[i,o]),s=l=>{const c=Ic.find(d=>d.key===l);c&&n("font_style",{weight:c.weight,italic:c.italic})};return r.jsxs("div",{children:[r.jsxs(T9,{children:[r.jsx(L9,{children:N("Font style")}),r.jsx(E1,{})]}),r.jsx(ct,{options:M9,selected:(a==null?void 0:a.key)??"",onChange:s})]})}var T9=v("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"0.5rem"}),L9=v(dt).withConfig({displayName:"FontStyle___StyledStyledSettingLabel",componentId:"sc-7wg633-0"})({margin:"0px"});const A9=window.React.useContext,R9=window.React.useMemo;function O9(){const{current:e}=be(),{letterSpacing:t,onChange:n,letterSpacingMin:i,letterSpacingMax:o}=A9(Li),a=l=>{n("letter_spacing",l)},s=R9(()=>ge(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-letter-spacing",children:r.jsx(dn,{title:r.jsx(N9,{children:N("Letter spacing")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var N9=v(dt).withConfig({displayName:"LetterSpacing___StyledStyledSettingLabel",componentId:"sc-1occtdz-0"})({margin:"0px"});const P9=window.React.useContext,V9=window.React.useMemo;function B9(){const{current:e}=be(),{lineHeight:t,onChange:n,lineHeightMin:i,lineHeightMax:o}=P9(Li),a=l=>{n("line_height",l)},s=V9(()=>ge(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-line-height",children:r.jsx(dn,{title:r.jsx(z9,{children:N("Line height")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var z9=v(dt).withConfig({displayName:"LineHeight___StyledStyledSettingLabel",componentId:"sc-15u33dd-0"})({margin:"0px"});const F9=window.React.useContext,T0=window.React.useMemo,hi=v.span({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center"}),Z9=[{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"})})})}],W9=[{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 G9(){const{current:e}=be(),{transform:t,decoration:n,onChange:i}=F9(Li),o=T0(()=>ge(t,e)??"auto",[t,e]),a=T0(()=>ge(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(U9,{children:N("Type")}),r.jsxs(Y9,{children:[r.jsx(Tt,{canDeselect:!0,options:Z9,selected:o,buttonStyle:"solid",onChange:s}),r.jsx(Tt,{canDeselect:!0,options:W9,selected:a,buttonStyle:"solid",onChange:l})]})]})}var U9=v(dt)({marginBottom:"0.5rem"}),Y9=v("div").withConfig({displayName:"Type___StyledDiv",componentId:"sc-1s138yn-0"})({display:"flex",gap:"1rem"});const X9=window.React.useEffect,Al=window.React.useState;function J9({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]=Al(null),[u,h]=Al(null),{styles:f,attributes:p}=In(c,u),[g,m]=Al(!1),w=()=>{m(!0)},E=()=>{m(!1)};return X9(()=>{const j=D=>{c==null&&u==null&&E(),!(u!=null&&u.contains(D.target))&&!(c!=null&&c.contains(D.target))&&E()};return window.jQuery(document).on("click","body",j),()=>{window.jQuery(document).off("click","body",j)}},[c,u]),r.jsx(v9,{value:e,onChange:t,fontSizeMin:n,fontSizeMax:i,lineHeightMin:o,lineHeightMax:a,letterSpacingMin:s,letterSpacingMax:l,children:r.jsxs(K9,{children:[r.jsx(q9,{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"}},g&&{outlineColor:"#000"}],children:r.jsx(Q9,{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"})})})}),g&&r.jsxs(ex,{className:"font-popup",ref:h,style:f.popper,...p.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(I9,{}),r.jsx(b9,{}),r.jsx(B9,{}),r.jsx(O9,{}),r.jsx(G9,{})]})]})})}var K9=v("div")({position:"relative"}),q9=v("div")`${e=>e.$_css}`,Q9=v("span")({position:"relative",display:"inline-block"}),ex=v("div").withConfig({displayName:"TypographyPicker___StyledDiv3",componentId:"sc-wkun31-0"})(["",""],e=>e.$_css2);const tx=window.React,nx=window.React.useCallback,L0={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 rx(e){const t=tx.useMemo(()=>e.value,[e.value]),n=nx((o,a)=>{e.onChange(a,[...e.value_path,o],void 0,!0)},[e]),{ResetInheritButton:i}=Br({inputValue:e.value??L0,onChange:o=>{Object.keys(e.value).forEach(a=>{e.onChange(o,[...e.value_path,a])})}});return r.jsxs(ix,{children:[r.jsx(i,{}),r.jsx(at,{title:e.title,className:"mb-0"}),r.jsx(J9,{value:t??L0,onChange:n})]})}var ix=v("div").withConfig({displayName:"TypographyBuilder___StyledDiv",componentId:"sc-1r71o9z-0"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"});const ox=window.React.useContext,A0=v.span.withConfig({displayName:"EnabledDevices__StyledOptionLabel",componentId:"sc-1joegxg-0"})({display:"flex",alignItems:"center",gap:"0.5rem"}),ax=[{value:"desktop",label:r.jsxs(A0,{children:[r.jsx(uh,{}),r.jsx("span",{children:"Desktop"})]})},{value:"mobile",label:r.jsxs(A0,{children:[r.jsx(hh,{}),r.jsx("span",{children:"Tablet/Mobile"})]})}];function sx(e){const{builder:t}=ox(Ut),n=i=>{const o=e.render_options,a=De(o!=null&&o.select_from_body?o==null?void 0:o.selector:`${wt(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(Tt,{multiple:!0,options:ax,onChange:n,selected:e.value,buttonStyle:"solid"})]})}const lx=window.React.useMemo;function D1(e){const{current:t}=be(),n=lx(()=>ge(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 cx=window.React.useMemo;function dx(e){const{current:t}=be(),n=cx(()=>ge(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 ux=window.React.useState,R0=["left","top","bottom","right"];function Oh({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 p={...e};e.is_constraints?(p.top=f,p.left=f,p.bottom=f,p.right=f):p[h]=f,t(p)},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]=ux(()=>{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(Lh,{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:R0.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(rn,{title:"Use theme presets",children:r.jsx("span",{className:"cursor-pointer",onClick:()=>{u(p=>(p[h]=!p[h],{...p}))},children:d[h]?fx:hx})})})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"w-full",children:d[h]?r.jsx(ct,{options:[{value:"0",label:"None"},...window.brandyCustomizerData.theme_settings.spacing.spacingSizes.theme.map(p=>({value:`var(--wp--preset--spacing--${p.slug})`,label:`WP spacing ${p.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:[R0.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 hx=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"})]}),fx=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"})]}),px=window.React.useMemo;function gx(e){const{current:t}=be(),n=px(()=>ge(e.value,t),[t,e.value]),{ResetInheritButton:i}=Br({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs(mx,{children:[r.jsx(Oh,{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 mx=v("div").withConfig({displayName:"SpacingBuilder___StyledDiv",componentId:"sc-8ikjor-0"})({position:"relative"});const vx=window.React.useMemo,ba=v.span.withConfig({displayName:"AlignmentBuilder__StyledOptionItem",componentId:"sc-1i3hi1g-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),wx=[{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 xx(e){const t=vx(()=>(e.available_alignments??["left","center","right"]).map(n=>wx.find(i=>i.value===n)).filter(n=>n!=null),[e.available_alignments]);return r.jsx(sr,{...e,options:t})}const bx=window.React.useMemo,Rl=v.span.withConfig({displayName:"PositionBuilder__StyledOptionItem",componentId:"sc-vce992-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),yx=[{value:"left",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:"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(Rl,{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(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:"M0.25 11H11.25V5H0.25V11ZM14.75 0V16H16.25V0H14.75Z",fill:window.brandyCustomizerData.colors.icon.normal})}),r.jsx("span",{children:"Right"})]})}];function Cx(e){const t=bx(()=>(e.available_positions??["left","bottom","right"]).map(n=>yx.find(i=>i.value===n)??null).filter(n=>n!=null),[e.available_positions]);return r.jsx(sr,{...e,options:t})}const _x=window.React.useMemo;function $1(e){const{current:t}=be(),n=_x(()=>ge(e.value,t),[t,e.value]),{ResetInheritButton:i}=Br({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(Sx,{children:[r.jsx(i,{}),r.jsx(at,{title:e.title})]}),r.jsx(ct,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx("div",{className:"text-[12px] italic",dangerouslySetInnerHTML:{__html:e.description}})]})}var Sx=v("div").withConfig({displayName:"DropdownBuilder___StyledDiv",componentId:"sc-133xc9-0"})({position:"relative"});const jx=window.React.useMemo;function kx(e){const{current:t}=be(),n=jx(()=>ge(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(Tt,{multiple:!0,options:e.options??[],onChange:e.onChange,selected:n,buttonStyle:"solid"})]})}const Ex=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"}}} `,Dx=[{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 $x({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(Lx,{children:[r.jsx(dt,{children:r.jsx(Ax,{children:"Position"})}),r.jsx(ct,{options:Dx,selected:e,onChange:n,style:{width:200}})]})}const Hx=[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}];function Mx({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(Rx,{children:[r.jsx(dt,{children:r.jsx(Ox,{children:"Size"})}),r.jsx(ct,{options:Hx,selected:e,onChange:n,style:{width:200}})]})}function Ix({value:e,onChange:t}){const n=i=>{Array.isArray(i)||t(i)};return r.jsxs(Nx,{children:[r.jsx(dt,{children:r.jsx(Px,{children:"Overlay color"})}),r.jsx(zt,{color:e,onChange:n})]})}const Ki=v.div({padding:"10px"});function Tx({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(Ex,{children:r.jsx(Ah,{value:e.url,onChange:n("url")})}),e.url&&r.jsxs(r.Fragment,{children:[r.jsx(Ki,{children:r.jsx(Ix,{value:e.overlay_color,onChange:n("overlay_color")})}),r.jsx(Ki,{children:r.jsx(Mx,{value:e.size,onChange:n("size")})}),r.jsx(Ki,{children:r.jsx($x,{value:e.position,onChange:n("position")})}),e.position==="custom"&&r.jsxs(r.Fragment,{children:[r.jsx(Ki,{children:r.jsx(dn,{min:e.top.min,max:e.top.max,value:e.top,title:r.jsx(dt,{children:r.jsx(Vx,{children:"Top"})}),onChange:n("top")})}),r.jsx(Ki,{children:r.jsx(dn,{min:e.left.min,max:e.left.max,value:e.left,title:r.jsx(dt,{children:r.jsx(Bx,{children:"Left"})}),onChange:n("left")})})]})]})]})}var Lx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Ax=v("span")({fontSize:"13px"}),Rx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Ox=v("span")({fontSize:"13px"}),Nx=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Px=v("span")({fontSize:"13px"}),Vx=v("span")({fontSize:"13px"}),Bx=v("span").withConfig({displayName:"Image___StyledSpan5",componentId:"sc-1ul140t-0"})({fontSize:"13px"});const zx=window.React.createContext,Fx=window.React.useEffect,Sn=window.React.useMemo,Ol=window.React.useState,Zx=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],Wx=zx({});function Gx({value:e,onChange:t=()=>!1}){const n=w1(),i=Sn(()=>e.type,[e.type]),o=Sn(()=>e.solid_color,[e.solid_color]),a=Sn(()=>e.gradient_color,[e.gradient_color]),s=Sn(()=>e.image,[e.image]),l=Sn(()=>v1(o),[o,n]),c=Sn(()=>{const y=O=>{t(O,"type")},T=O=>{t(O,"solid_color")},A=Ei(O=>{t(O,"gradient_color")},0);return{backgroundType:i,solidColor:o,gradientColor:a,image:s,changeType:y,changeSolidColor:T,changeGradientColor:A,changeImage:O=>{t(O,"image")}}},[i,o,a,s,e,t]),d=Sn(()=>i==="image"?{backgroundImage:`url(${s.url})`,backgroundPosition:"center",backgroundSize:"contain"}:{background:i==="solid"?l.color:a},[i,l.color,a,s]),[u,h]=Ol(null),[f,p]=Ol(null),{styles:g,attributes:m}=In(u,f),[w,E]=Ol(!1),j=()=>{E(!0)},D=()=>{E(!1)};Fx(()=>{const y=A=>{var O;u==null&&f==null&&D();const $=(O=document.getElementById("brandy-upload-media"))==null?void 0:O.closest(".media-modal.wp-core-ui");!($!=null&&$.contains(A.target))&&!(f!=null&&f.contains(A.target))&&!(u!=null&&u.contains(A.target))&&D()},T=()=>{const A=window.jQuery("#brandy-upload-media").closest(".media-modal.wp-core-ui").parent();A&&A.remove()};return window.jQuery(document).on("click","body",y),()=>{window.jQuery(document).off("click","body",y),T()}},[u,f]);const C=Sn(()=>e.type==="solid"?445:e.type==="gradient"?530:e.image.url===""?150:500,[e.type,e.image.url]),S=Sn(()=>i==="solid"?l.color===""||l.color.endsWith("00")&&l.color.length>7:i==="gradient"?a.indexOf(",0)")!==a.lastIndexOf(",0)")&&a.indexOf(",0)")!==-1&&a.lastIndexOf(",0)")!==-1||a.indexOf(",0)")!==a.lastIndexOf(", 0)")&&a.indexOf(",0)")!==-1&&a.lastIndexOf(", 0)")!==-1||a.indexOf(", 0)")!==a.lastIndexOf(",0)")&&a.indexOf(", 0)")!==-1&&a.lastIndexOf(",0)")!==-1||a.indexOf(", 0)")!==a.lastIndexOf(", 0)")&&a.indexOf(", 0)")!==-1&&a.lastIndexOf(", 0)")!==-1:s.url==="",[i,l.color,a,s.url]),x=Sn(()=>i==="solid"&&l.isGlobal,[i,l.isGlobal]);return r.jsx(Wx.Provider,{value:c,children:r.jsxs(Ux,{children:[r.jsxs(Yx,{style:d,ref:h,onClick:j,$_css2:[{display:"flex",height:"30px",width:"30px",cursor:"pointer",alignItems:"center",justifyContent:"center"},{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"},w&&{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(Xx,{className:"[&_svg]:fill-[#A1ABB7]",children:r.jsx(fh,{})}),x&&!S&&r.jsx(Jx,{children:r.jsx(gh,{})})]}),w&&r.jsx(Kx,{ref:p,style:g.popper,...m.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:C},autoHide:!0,children:[r.jsx(qx,{children:r.jsx(Tt,{options:Zx,selected:i,onChange:c.changeType})}),r.jsxs("div",{children:[i==="solid"&&r.jsx(kh,{color:o,onChange:c.changeSolidColor}),i==="gradient"&&r.jsx(jh,{value:a,onChange:c.changeGradientColor}),i==="image"&&r.jsx(Tx,{value:s,onChange:c.changeImage})]})]})})]})})}var Ux=v("div")({position:"relative"}),Yx=v("div")`${e=>e.$_css2}`,Xx=v("span")({position:"relative",display:"inline-block"}),Jx=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"}}),Kx=v("div")`${e=>e.$_css3}`,qx=v("div").withConfig({displayName:"BackgroundPicker___StyledDiv4",componentId:"sc-1vzs4ya-0"})({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"});const Qx=window.React.useMemo;function e7(e){const{current:t}=be(),n=Qx(()=>ge(e.value,t),[t,e.value]),i=(o,a)=>{e.onChange({...n,[a]:o})};return r.jsxs(t7,{children:[r.jsx(at,{title:e.title,className:"mb-0"}),r.jsxs(n7,{children:[r.jsx(Xs,{...e,reset_paths:[e.value_path],title:null,reset_action:"row_settings"}),r.jsx(Gx,{value:n,onChange:i})]})]})}var t7=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),n7=v("div").withConfig({displayName:"BackgroundBuilder___StyledDiv2",componentId:"sc-18ksi7m-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const r7=window.React.useMemo,Nl=v.span.withConfig({displayName:"VerticalAlignmentBuilder__StyledOptionItem",componentId:"sc-16og1d2-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),i7=[{value:"top",label:r.jsxs(Nl,{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(Nl,{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(Nl,{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 o7(e){const t=r7(()=>i7.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(sr,{...e,options:t})}const a7=window.React.useMemo;function s7(e){return a7(()=>r.jsxs("div",{children:[r.jsx(l7,{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 l7=v("div").withConfig({displayName:"FlexibleBuilder___StyledDiv",componentId:"sc-17nqz4o-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const c7=window.React.useMemo,Pl=v.span.withConfig({displayName:"HorizontalAlignmentBuilder__StyledOptionItem",componentId:"sc-1ebs2zw-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),d7=[{value:"left",label:r.jsxs(Pl,{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(Pl,{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(Pl,{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 u7(e){const t=c7(()=>d7.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(sr,{...e,options:t})}const h7=window.React.useEffect,Nh=[[{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:''}]],f7=Nh.reduce((e,t)=>[...e,t.map(n=>n.key).join(" ")],[]).join(" | "),p7=Nh.reduce((e,t)=>[...e,...t],[]);function g7({id:e,value:t,onChange:n}){h7(()=>{var a,s,l,c;window.wp.editor.initialize(e,{tinymce:{class:"brandy-tinymce",toolbar1:f7,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,p;o.setContent(t);const d=document.querySelector(`#customize-editor-${e}`);if(d==null)return;d.querySelectorAll(".mce-btn-group .mce-btn").forEach((g,m)=>{var E;const w=p7[m];if(w){if(["fontsizeselect","formatselect","styleselect"].includes(w.key)){const j=new DOMParser().parseFromString(w.icon,"image/svg+xml").documentElement;(E=g.querySelector(".mce-caret"))==null||E.replaceWith(j);return}if(["forecolor","backcolor"].includes(w.key))return;g.innerHTML=w.icon}});const h=document.createElement("button");h.className="insert-media add_media brandy-insert-media",h.innerHTML="+ Add media",(p=(f=d.querySelector(".mce-last.mce-btn-group"))==null?void 0:f.parentElement)==null||p.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 m7=window.React.useMemo;function Ph({id:e,value:t,onChange:n}){const i=m7(()=>t,[t]),o=l=>{n(l),s(l)},s=Ei(l=>l,200);return r.jsx(g7,{id:e,onChange:o,value:i})}const v7=window.React.useMemo,w7=window.React.useState;function x7(e){const t=v7(()=>e.prefilleds??[],[e.prefilleds]),n=a=>{const s=window.tinymce.get(e.sectionId);s&&s.setContent(a),e.onChange(a)},[i,o]=w7(!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(Ph,{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(b7,{children:e.description})]})}var b7=v("div").withConfig({displayName:"PrefilledHTML___StyledDiv",componentId:"sc-uzr3vx-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});function y7(e){return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(Ph,{value:e.value,onChange:e.onChange,id:e.sectionId,toolbars:""}),e.description&&r.jsx(C7,{children:e.description})]},e.sectionId)}var C7=v("div").withConfig({displayName:"HTMLBuilder___StyledDiv",componentId:"sc-kly0zw-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});const _7=window.React.useState;function S7(e){const[t,n]=_7(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{__:O0}=window.wp.i18n,{__experimentalLibrary:j7}=window.wp.blockEditor;function k7({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:O0("Add a block")}),r.jsx("button",{className:"customize-widgets-layout__inserter-panel-header-close-button w-[24px] h-[24px]",onClick:e,"aria-label":O0("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(j7,{onSelect:e})})]})}const E7=window.React.useContext,D7=window.ReactDOM.createPortal;function $7(){const{inserter:e,sidebar:t}=E7(R1),{isOpen:n,openInserter:i,closeInserter:o,toggleInserter:a}=S7(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=D7(n?r.jsx(k7,{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 H7=window.React.useEffect,{useDispatch:M7,useSelect:I7}=window.wp.data,{store:N0}=window.wp.blockEditor;function T7(e,t){const{hasSelectedBlock:n,hasMultiSelection:i}=I7(N0),{clearSelectedBlock:o}=M7(N0);H7(()=>{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 L7(e,t){return e==null||e!==e?t:e}var A7=L7;const R7=Wt(A7),O7=window.React.useMemo,{useSelect:N7}=window.wp.data,{store:P7}=window.wp.coreData,{uploadMedia:V7}=window.wp.mediaUtils;function Vh(){const e=window.brandyWidgetsBlockEditorSettings,{hasUploadPermission:t}=N7(i=>({hasUploadPermission:R7(i(P7).canUser("create","media"),!0)}));return{settings:O7(()=>{let i;return t&&(i=({onError:o,...a})=>{V7({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:s})=>o(s),...a})}),{...e,mediaUpload:i,__unstableHasCustomAppender:!0,keepCaretInsideBlock:!0}},[t])}}var B7=200,H1="__lodash_hash_undefined__",z7=1/0,Bh=9007199254740991,F7="[object Arguments]",Z7="[object Function]",W7="[object GeneratorFunction]",G7="[object Symbol]",U7=/[\\^$.*+?()[\]{}|]/g,Y7=/^\[object .+?Constructor\]$/,X7=/^(?:0|[1-9]\d*)$/,J7=typeof tt=="object"&&tt&&tt.Object===Object&&tt,K7=typeof self=="object"&&self&&self.Object===Object&&self,M1=J7||K7||Function("return this")();function q7(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 Q7(e,t){var n=e?e.length:0;return!!n&&nb(e,t,0)>-1}function eb(e,t,n){for(var i=-1,o=e?e.length:0;++i-1}function jb(e,t){var n=this.__data__,i=Ks(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ri.prototype.clear=yb;Ri.prototype.delete=Cb;Ri.prototype.get=_b;Ri.prototype.has=Sb;Ri.prototype.set=jb;function Oi(e){var t=-1,n=e?e.length:0;for(this.clear();++t=B7&&(a=ab,s=!1,t=new os(t));e:for(;++o0&&n(l)?t>1?Wh(l,t-1,n,i,o):I1(o,l):i||(o[o.length]=l)}return o}function Ab(e,t,n){var i=t(e);return L1(e)?i:I1(i,n(e))}function Rb(e){if(!A1(e)||Ub(e))return!1;var t=Xh(e)||lb(e)?ub:Y7;return t.test(Kb(e))}function Ob(e){if(!A1(e))return Xb(e);var t=Yb(e),n=[];for(var i in e)i=="constructor"&&(t||!Ai.call(e,i))||n.push(i);return n}function Nb(e,t){return e=Object(e),Pb(e,t,function(n,i){return i in e})}function Pb(e,t,n){for(var i=-1,o=t.length,a={};++i-1&&e%1==0&&e-1&&e%1==0&&e<=Bh}function A1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Jh(e){return!!e&&typeof e=="object"}function ty(e){return typeof e=="symbol"||Jh(e)&&T1.call(e)==G7}function ny(e){return Yh(e)?Tb(e,!0):Ob(e)}var ry=Vb(function(e,t){return e==null?{}:(t=zh(Wh(t,1),Jb),Nb(e,Lb(Bb(e),t)))});function Kh(){return[]}var iy=ry;const oy=Wt(iy),{serialize:ay,parse:sy,createBlock:Bl}=window.wp.blocks,{addWidgetIdToBlock:ly}=window.wp.widgets;function F0(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:ay(e)}}};return{...oy(t,["form","rendered"]),...n}}function Z0({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=sy(l.content);o=d.length?d[0]:Bl("core/paragraph",{})}else n?o=Bl("core/legacy-widget",{idBase:t,instance:{encoded:a,hash:s,raw:l,...c}}):o=Bl("core/legacy-widget",{id:e});return ly(o,e)}const cy=window.React.useCallback,dy=window.React.useEffect,uy=window.React.useState,{isShallowEqualArrays:ya}=window.wp.isShallowEqual,{getWidgetIdFromBlock:zl,addWidgetIdToBlock:hy}=window.wp.widgets;function fy(e){const[t,n]=uy(e.getWidgets().map(o=>Z0(o)));dy(()=>e.subscribe((o,a)=>{n(s=>{const l=new Map(o.map(u=>[u.id,u])),c=new Map(s.map(u=>[zl(u),u])),d=a.map(u=>{const h=l.get(u.id);return h&&h===u?c.get(u.id):Z0(u)});return ya(s,d)?s:d})}),[e]);const i=cy(o=>{n(a=>{if(ya(a,o))return a;const s=new Map(a.map(d=>[zl(d),d])),l=o.map(d=>{const u=zl(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:F0(d,f)}return F0(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]=hy(u,f)),d},o)})},[e]);return{blocks:t,updateBlocks:i}}const{BlockList:py,BlockTools:gy,BlockSelectionClearer:my,CopyHandler:vy,ObserveTyping:wy,WritingFlow:xy,__unstableEditorStyles:by,ButtonBlockAppender:yy}=window.wp.blockEditor;function Cy(){const{settings:e}=Vh();return r.jsx("div",{className:"brandy-widget-content__inspector",children:r.jsx(vy,{children:r.jsxs(gy,{children:[r.jsx(by,{styles:[...e.defaultEditorStyles,{css:"body{font-size: 13px !important;}"}]}),r.jsx(my,{children:r.jsx(xy,{className:"editor-styles-wrapper",children:r.jsx(wy,{children:r.jsx(py,{renderAppender:yy})})})})]})})})}const _y=window.React.useEffect,{useShortcut:Fl,store:Sy}=window.wp.keyboardShortcuts,{useDispatch:jy}=window.wp.data;function Lc({undo:e,redo:t,save:n}){return Fl("core/customize-widgets/undo",i=>{e(),i.preventDefault()}),Fl("core/customize-widgets/redo",i=>{t(),i.preventDefault()}),Fl("core/customize-widgets/save",i=>{i.preventDefault(),n()}),null}function ky(){const{registerShortcut:e,unregisterShortcut:t}=jy(Sy);return _y(()=>(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}Lc.Register=ky;const Ey=window.React.useContext,{__unstableBlockSettingsMenuFirstItem:Dy}=window.wp.blockEditor,{MenuItem:$y}=window.wp.components;function Hy(){const{inspector:e}=Ey(R1);return r.jsx(Dy,{children:({onClose:t})=>r.jsx($y,{onClick:()=>{e.open(),t()},inspector:e,children:"Show more settings"})})}const My=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))"}} } `,Iy=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"}} } `,Ty=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))"},Iy,e&&My]);function Ly({current:e,items:t,onChange:n,styledCSS:i}){return r.jsx(Ay,{$_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(Ty,{onClick:()=>{n(a)},isActive:e===a,className:e===a?"active":"",children:o},a))})}var Ay=v("div").withConfig({displayName:"Tabs___StyledDiv",componentId:"sc-1e1ax13-1"})(["",""],e=>e.$_css2);const W0=window.React.useMemo,Ry=window.React.useState,Oy=[{label:"General",key:"general"},{label:"Designs",key:"designs"}];function Xo(e){const t=W0(()=>(e==null?void 0:e.items)??Oy,[e]),[n,i]=Ry(t[0].key);return{contextHolder:W0(()=>r.jsx(Ly,{items:t,current:n,onChange:i}),[t,n,i]),items:t,currentTab:n,setCurrentTab:i}}const Ny=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=Ny(()=>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(Py,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(Vy,{children:[e??r.jsxs(r.Fragment,{children:[r.jsxs(By,{children:[N("Customizing")," ▸ ",N("Not found")]}),r.jsx(zy,{children:N("Not found")})]}),u&&r.jsx(Fy,{onClick:d,children:N(a?"Reset to default":"Reset template to default")})]})]}),n&&r.jsx(Zy,{})]})}var Py=v("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),Vy=v("div")({height:"100%",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),By=v("div")({fontSize:"13px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),zy=v("div")({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),Fy=v("p")({marginTop:"0.5rem",cursor:"pointer","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}),Zy=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 Wy=window.React,Gy=window.React.memo,Uy=window.React.useCallback,qh=window.React.useContext,Qh=window.React.useMemo,Je=Wy.createContext({});function Yy(e){const{builder:t}=qh(Ut),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=Uy(()=>{Rt(),n()},[Rt,n]),s=Qh(()=>({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(Ky,{children:[N("Customizing")," ▸ ",o]}),r.jsx(qy,{children:i||"Not found"})]})}),r.jsx(Jy,{elementId:e.elementId,clonedFromId:e.clonedFromId})]})}function Xy({elementId:e,clonedFromId:t}){const{builder:n}=qh(Je),{contextHolder:i,currentTab:o}=Xo(),a=te(n)(c=>{var d;return((d=c.chosenElement)==null?void 0:d.settings)??{}}),s=te(n)(c=>c.changeElementSettings),l=Qh(()=>{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(s1,{children:l.map((c,d)=>r.jsx(qo,{section:c,sectionKey:`${o}-${d}`,sectionId:e,settings:a,onChange:s,builder:n,clonedFromId:t},`${o}-${d}`))})]})}const Jy=Gy(Xy);var Ky=v("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),qy=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 Qy=window.React.createContext,eC=window.React.useContext,tC=window.React.useEffect,qi=window.React.useMemo,nC=window.React.useRef,G0=window.ReactDOM.createPortal,{BlockEditorKeyboardShortcuts:rC,BlockEditorProvider:iC,BlockInspector:oC}=window.wp.blockEditor,{ShortcutProvider:aC}=window.wp.keyboardShortcuts,{SlotFillProvider:sC,Popover:lC}=window.wp.components,{removeFilter:cC}=window.wp.hooks;cC("editor.BlockEdit","core/customize-widgets/block-edit");const R1=Qy({});function dC(e){const{builder:t}=eC(Je),n=qi(()=>`${t}_${e.sectionId}`,[e.sectionId,t]),i=qi(()=>window.wp.customize.control(`sidebars_widgets[${n}]`),[n]),{blocks:o,updateBlocks:a}=fy(i.sidebarAdapter),{settings:s}=Vh(),l=nC(null);T7(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]);tC(()=>{var g;return(g=document.querySelector(d))==null||g.remove(),u.inspector.triggerActiveCallbacks=()=>{},()=>{u.inserter.close()}},[]);const h=G0(r.jsx("div",{className:"customize-widgets-popover",ref:l,children:r.jsx(lC.Slot,{})}),document.body),f=g=>{a(g)},p=g=>{a(g)};return r.jsx(R1.Provider,{value:u,children:r.jsxs(sC,{children:[r.jsx("div",{className:"brandy-block-inspector",children:r.jsxs(aC,{children:[r.jsx(rC.Register,{}),r.jsx(Lc.Register,{}),r.jsxs(iC,{value:o,onChange:f,onInput:p,useSubRegistry:!1,settings:s,children:[r.jsx(Lc,{undo:u.sidebar.undo,redo:u.sidebar.redo,save:u.sidebar.save}),r.jsx($7,{}),r.jsx(Cy,{}),G0(r.jsx("form",{className:"hehehihi",onSubmit:g=>g.preventDefault(),children:r.jsx(oC,{})}),document.querySelector(c)??document.body)]}),r.jsx(Hy,{})]})}),h]})})}const uC=window.React.useMemo;function hC(e){return uC(()=>r.jsx(dC,{sectionId:e.sectionId}),[])}const fC=window.React.useEffect,U0=window.React.useMemo,Zl=window.React.useState;function pC({options:e,selected:t,onChange:n=()=>!1,style:i={}}){const[o,a]=Zl(null),[s,l]=Zl(null),{styles:c,attributes:d}=In(o,s),[u,h]=Zl(!1),f=U0(()=>(o==null?void 0:o.getBoundingClientRect().width)??0,[o]),p=()=>{h(D=>!D)},g=()=>{h(!1)};fC(()=>{const D=C=>{(o==null||s==null)&&g(),!(o!=null&&o.contains(C.target))&&!(s!=null&&s.contains(C.target))&&g()};return window.jQuery(document).on("click","body",D),()=>{window.jQuery(document).off("click","body",D)}},[o,s]);const m=D=>{const C=t.indexOf(D);let S=[];C===-1?S=[...t,D]:S=t.filter(x=>x!==D),n(S)},w=D=>{const C=t.filter(S=>S!==D);n(C)},E=D=>t.includes(D),j=U0(()=>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:p,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(D=>{const C=e.find(S=>S.value===D);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:C==null?void 0:C.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:S=>{S.stopPropagation(),w((C==null?void 0:C.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"})})]},D)})}):"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:j},children:r.jsx("div",{className:"p-[5px] flex flex-col gap-[5px]",children:e.map(D=>r.jsxs(gC,{className:"brandy-select__option-content","data-value":D.value,onClick:()=>m(D.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(D.value)&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"}],children:[D.label,E(D.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"})})]},D.value))})})})]})}var gC=v("div").withConfig({displayName:"MultipleSelect___StyledDiv",componentId:"sc-k7vdlx-0"})(["",""],e=>e.$_css);const mC=window.React.useMemo;function vC(e){const{current:t}=be(),n=mC(()=>ge(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(at,{title:e.title}),r.jsx(pC,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx(wC,{dangerouslySetInnerHTML:{__html:e.description}})]})}var wC=v("div").withConfig({displayName:"MultipleSelectBuilder___StyledDiv",componentId:"sc-eadnfz-0"})({marginTop:"0.5rem",fontSize:"12px",fontStyle:"italic"}),ef={exports:{}};/**! * Sortable 1.15.6 * @author RubaXa * @author owenm * @license MIT */function Y0(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 yC(e,t){if(e==null)return{};var n=bC(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 CC(e){return _C(e)||SC(e)||jC(e)||kC()}function _C(e){if(Array.isArray(e))return Ac(e)}function SC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jC(e,t){if(e){if(typeof e=="string")return Ac(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 Ac(e,t)}}function Ac(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 rf(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ht(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&as(e,t):as(e,t))||i&&e===n)return e;if(e===n)break}while(e=rf(e))}return null}var J0=/\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(J0," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(J0," ")}}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 Er(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 of(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=rr(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=yC(i,LC);Ko.pluginEvent.bind(pe)(t,n,$n({dragEl:q,parentEl:Qe,ghostEl:we,rootEl:We,nextEl:xr,lastDownEl:Fa,cloneEl:Ye,cloneHidden:tr,dragStarted:so,putSortable:gt,activeSortable:pe.active,originalEvent:o,oldIndex:di,oldDraggableIndex:bo,newIndex:Vt,newDraggableIndex:er,hideGhostForTarget:hf,unhideGhostForTarget:ff,cloneNowHidden:function(){tr=!0},cloneNowShown:function(){tr=!1},dispatchSortableEvent:function(l){_t({sortable:n,name:l,originalEvent:o})}},a))};function _t(e){ao($n({putSortable:gt,cloneEl:Ye,targetEl:q,rootEl:We,oldIndex:di,oldDraggableIndex:bo,newIndex:Vt,newDraggableIndex:er},e))}var q,Qe,we,We,xr,Fa,Ye,tr,di,Vt,bo,er,Ca,gt,ai=!1,ss=!1,ls=[],mr,mn,Yl,Xl,eu,tu,so,ti,yo,Co=!1,_a=!1,Za,bt,Jl=[],Rc=!1,cs=[],Qs=typeof document<"u",Sa=O1,nu=Jo||Gn?"cssFloat":"float",AC=Qs&&!tf&&!O1&&"draggable"in document.createElement("div"),cf=function(){if(Qs){if(Gn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),df=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)+Fe(a).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Fe(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[nu]==="none"||s&&i[nu]==="none"&&d+u>o)?"vertical":"horizontal"},RC=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},OC=function(t,n){var i;return ls.some(function(o){var a=o[mt].options.emptyInsertThreshold;if(!(!a||N1(o))){var s=Fe(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},uf=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||za(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},hf=function(){!cf&&we&&ae(we,"display","none")},ff=function(){!cf&&we&&ae(we,"display","")};Qs&&!tf&&document.addEventListener("click",function(e){if(ss)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ss=!1,!1},!0);var vr=function(t){if(q){t=t.touches?t.touches[0]:t;var n=OC(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[mt]._onDragOver(i)}}},NC=function(t){q&&q.parentNode[mt]._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[mt]=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 df(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||O1),emptyInsertThreshold:5};Ko.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);uf(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:AC,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)),ls.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),un(this,MC())}pe.prototype={constructor:pe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ti=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(GC(i),!q&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&wo&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Ht(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)){_t({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:i,fromEl:i}),Et("filter",n,{evt:t}),a&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(h){if(h=Ht(d,h.trim(),i,!1),h)return _t({sortable:n,rootEl:h,name:"filter",targetEl:c,fromEl:i,toEl:i}),Et("filter",n,{evt:t}),!0}),u)){a&&t.preventDefault();return}o.handle&&!Ht(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=Fe(i);if(We=a,q=i,Qe=q.parentNode,xr=q.nextSibling,Fa=i,Ca=s.group,pe.dragged=q,mr={target:q,clientX:(n||t).clientX,clientY:(n||t).clientY},eu=mr.clientX-d.left,tu=mr.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,q.style["will-change"]="all",c=function(){if(Et("delayEnded",o,{evt:t}),pe.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!X0&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(t,n),_t({sortable:o,name:"choose",originalEvent:t}),Xe(q,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){of(q,u.trim(),Kl)}),je(l,"dragover",vr),je(l,"mousemove",vr),je(l,"touchmove",vr),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)),X0&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),Et("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Jo||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&&Kl(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ce(t,"mouseup",this._disableDelayedDrag),Ce(t,"touchend",this._disableDelayedDrag),Ce(t,"touchcancel",this._disableDelayedDrag),Ce(t,"pointerup",this._disableDelayedDrag),Ce(t,"pointercancel",this._disableDelayedDrag),Ce(t,"mousemove",this._delayedDragTouchMoveHandler),Ce(t,"touchmove",this._delayedDragTouchMoveHandler),Ce(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?Wa(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ai=!1,We&&q){Et("dragStarted",this,{evt:n}),this.nativeDraggable&&je(document,"dragover",NC);var i=this.options;!t&&Xe(q,i.dragClass,!1),Xe(q,i.ghostClass,!0),pe.active=this,t&&this._appendGhost(),_t({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(mn){this._lastX=mn.clientX,this._lastY=mn.clientY,hf();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[mt]._isOutsideThisEl(t),n)do{if(n[mt]){var i=void 0;if(i=n[mt]._onDragOver({clientX:mn.clientX,clientY:mn.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=rf(n));ff()}},_onTouchMove:function(t){if(mr){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=we&&Er(we,!0),l=we&&s&&s.a,c=we&&s&&s.d,d=Sa&&bt&&q0(bt),u=(a.clientX-mr.clientX+o.x)/(l||1)+(d?d[0]-Jl[0]:0)/(l||1),h=(a.clientY-mr.clientY+o.y)/(c||1)+(d?d[1]-Jl[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&&(_t({rootEl:Qe,name:"add",toEl:Qe,fromEl:We,originalEvent:t}),_t({sortable:this,name:"remove",toEl:Qe,originalEvent:t}),_t({rootEl:Qe,name:"sort",toEl:Qe,fromEl:We,originalEvent:t}),_t({sortable:this,name:"sort",toEl:Qe,originalEvent:t})),gt&>.save()):Vt!==di&&Vt>=0&&(_t({sortable:this,name:"update",toEl:Qe,originalEvent:t}),_t({sortable:this,name:"sort",toEl:Qe,originalEvent:t})),pe.active&&((Vt==null||Vt===-1)&&(Vt=di,er=bo),_t({sortable:this,name:"end",toEl:Qe,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Et("nulling",this),We=q=Qe=we=xr=Ye=Fa=tr=mr=mn=so=Vt=er=di=bo=ti=yo=gt=Ca=pe.dragged=pe.ghost=pe.clone=pe.active=null,cs.forEach(function(t){t.checked=!0}),cs.length=Yl=Xl=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":q&&(this._onDragOver(t),PC(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 FC(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 ZC(e){return et(q)1&&(ve.forEach(function(l){a.addAnimationState({target:l,rect:Dt?Fe(l):s}),Gl(l),l.fromRect=s,i.removeAnimationState(l)}),Dt=!1,KC(!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(),eo=!1,d.animation&&ve.length>1&&(Dt||!o&&!s.options.sort&&!c)){var u=Fe(Pe,!1,!0,!0);ve.forEach(function(f){f!==Pe&&(Q0(f,u),l.appendChild(f))}),Dt=!0}if(!o)if(Dt||Ea(),ve.length>1){var h=ka;s._showClone(i),s.options.animation&&!ka&&h&&Pt.forEach(function(f){s.addAnimationState({target:f,rect:to}),f.fromRect=to,f.thisAnimationDuration=null})}else s._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,o=n.isOwner,a=n.activeSortable;if(ve.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){to=un({},i);var s=Er(Pe,!0);to.top-=s.f,to.left-=s.e}},dragOverAnimationComplete:function(){Dt&&(Dt=!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(!ni)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Xe(Pe,h.selectedClass,!~ve.indexOf(Pe)),~ve.indexOf(Pe))ve.splice(ve.indexOf(Pe),1),Qi=null,ao({sortable:s,rootEl:o,name:"deselect",targetEl:Pe,originalEvent:i});else{if(ve.push(Pe),ao({sortable:s,rootEl:o,name:"select",targetEl:Pe,originalEvent:i}),i.shiftKey&&Qi&&s.el.contains(Qi)){var p=et(Qi),g=et(Pe);~p&&~g&&p!==g&&function(){var j,D;g>p?(D=p,j=g):(D=g,j=p+1);for(var C=h.filter;D1){var m=Fe(Pe),w=et(Pe,":not(."+this.options.selectedClass+")");if(!eo&&h.animation&&(Pe.thisAnimationDuration=null),u.captureAnimationState(),!eo&&(h.animation&&(Pe.fromRect=m,ve.forEach(function(j){if(j.thisAnimationDuration=null,j!==Pe){var D=Dt?Fe(j):m;j.fromRect=D,u.addAnimationState({target:j,rect:D})}})),Ea(),ve.forEach(function(j){f[w]?a.insertBefore(j,f[w]):a.appendChild(j),w++}),c===et(Pe))){var E=!1;ve.forEach(function(j){if(j.sortableIndex!==et(j)){E=!0;return}}),E&&(l("update"),l("sort"))}ve.forEach(function(j){Gl(j)}),u.animateAll()}vn=u}(o===a||d&&d.lastPutMode!=="clone")&&Pt.forEach(function(j){j.parentNode&&j.parentNode.removeChild(j)})}},nullingGlobal:function(){this.isMultiDrag=ni=!1,Pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Ce(document,"pointerup",this._deselectMultiDrag),Ce(document,"mouseup",this._deselectMultiDrag),Ce(document,"touchend",this._deselectMultiDrag),Ce(document,"keydown",this._checkKeyDown),Ce(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ni<"u"&&ni)&&vn===this.sortable&&!(n&&Ht(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ve.length;){var i=ve[0];Xe(i,this.options.selectedClass,!1),ve.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[mt];!i||!i.options.multiDrag||~ve.indexOf(n)||(vn&&vn!==i&&(vn.multiDrag._deselectMultiDrag(),vn=i),Xe(n,i.options.selectedClass,!0),ve.push(n))},deselect:function(n){var i=n.parentNode[mt],o=ve.indexOf(n);!i||!i.options.multiDrag||!~o||(Xe(n,i.options.selectedClass,!1),ve.splice(o,1))}},eventProperties:function(){var n=this,i=[],o=[];return ve.forEach(function(a){i.push({multiDragElement:a,index:a.sortableIndex});var s;Dt&&a!==Pe?s=-1:Dt?s=et(a,":not(."+n.options.selectedClass+")"):s=et(a),o.push({multiDragElement:a,index:s})}),{items:CC(ve),clones:[].concat(Pt),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 KC(e,t){ve.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function iu(e,t){Pt.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Ea(){ve.forEach(function(e){e!==Pe&&e.parentNode&&e.parentNode.removeChild(e)})}pe.mount(new UC);pe.mount(B1,V1);const qC=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:JC,Sortable:pe,Swap:YC,default:pe},Symbol.toStringTag,{value:"Module"})),QC=Lu(qC);var gf={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",()=>C);function c(x){x.parentElement!==null&&x.parentElement.removeChild(x)}function d(x,y,T){const A=x.children[T]||null;x.insertBefore(y,A)}function u(x){x.forEach(y=>c(y.element))}function h(x){x.forEach(y=>{d(y.parentElement,y.element,y.oldIndex)})}function f(x,y){const T=w(x),A={parentElement:x.from};let $=[];switch(T){case"normal":$=[{element:x.item,newIndex:x.newIndex,oldIndex:x.oldIndex,parentElement:x.from}];break;case"swap":const z={element:x.item,oldIndex:x.oldIndex,newIndex:x.newIndex,...A},Z={element:x.swapItem,oldIndex:x.newIndex,newIndex:x.oldIndex,...A};$=[z,Z];break;case"multidrag":$=x.oldIndicies.map((I,V)=>({element:I.multiDragElement,oldIndex:I.index,newIndex:x.newIndicies[V].index,...A}));break}return E($,y)}function p(x,y){const T=g(x,y);return m(x,T)}function g(x,y){const T=[...y];return x.concat().reverse().forEach(A=>T.splice(A.oldIndex,1)),T}function m(x,y,T,A){const $=[...y];return x.forEach(O=>{const P=A&&T&&A(O.item,T);$.splice(O.newIndex,0,P||O.item)}),$}function w(x){return x.oldIndicies&&x.oldIndicies.length>0?"multidrag":x.swapItem?"swap":"normal"}function E(x,y){return x.map(A=>({...A,item:y[A.oldIndex]})).sort((A,$)=>A.oldIndex-$.oldIndex)}function j(x){const{list:y,setList:T,children:A,tag:$,style:O,className:P,clone:z,onAdd:Z,onChange:I,onChoose:V,onClone:L,onEnd:F,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 D={dragging:null};class C extends i.Component{constructor(y){super(y),this.ref=(0,i.createRef)();const T=[...y.list].map(A=>Object.assign(A,{chosen:!1,selected:!1}));y.setList(T,this.sortable,D),a(o)(!y.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 y=this.makeOptions();a(t).create(this.ref.current,y)}componentDidUpdate(y){y.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:y,style:T,className:A,id:$}=this.props,O={style:T,className:A,id:$},P=!y||y===null?"div":y;return(0,i.createElement)(P,{ref:this.ref,...O},this.getChildren())}getChildren(){const{children:y,dataIdAttr:T,selectedClass:A="sortable-selected",chosenClass:$="sortable-chosen",dragClass:O="sortable-drag",fallbackClass:P="sortable-falback",ghostClass:z="sortable-ghost",swapClass:Z="sortable-swap-highlight",filter:I="sortable-filter",list:V}=this.props;if(!y||y==null)return null;const L=T||"data-id";return i.Children.map(y,(F,M)=>{if(F===void 0)return;const W=V[M]||{},{className:X}=F.props,Y=typeof I=="string"&&{[I.replace(".","")]:!!W.filtered},le=a(n)(X,{[A]:W.selected,[$]:W.chosen,...Y});return(0,i.cloneElement)(F,{[L]:F.key,className:le})})}get sortable(){const y=this.ref.current;if(y===null)return null;const T=Object.keys(y).find(A=>A.includes("Sortable"));return T?y[T]:null}makeOptions(){const y=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],T=["onChange","onClone","onFilter","onSort"],A=j(this.props);return y.forEach(O=>A[O]=this.prepareOnHandlerPropAndDOM(O)),T.forEach(O=>A[O]=this.prepareOnHandlerProp(O)),{...A,onMove:(O,P)=>{const{onMove:z}=this.props,Z=O.willInsertAfter||-1;if(!z)return Z;const I=z(O,P,this.sortable,D);return typeof I>"u"?!1:I}}}prepareOnHandlerPropAndDOM(y){return T=>{this.callOnHandlerProp(T,y),this[y](T)}}prepareOnHandlerProp(y){return T=>{this.callOnHandlerProp(T,y)}}callOnHandlerProp(y,T){const A=this.props[T];A&&A(y,this.sortable,D)}onAdd(y){const{list:T,setList:A,clone:$}=this.props,O=[...D.dragging.props.list],P=f(y,O);u(P);const z=m(P,T,y,$).map(Z=>Object.assign(Z,{selected:!1}));A(z,this.sortable,D)}onRemove(y){const{list:T,setList:A}=this.props,$=w(y),O=f(y,T);h(O);let P=[...T];if(y.pullMode!=="clone")P=g(O,P);else{let z=O;switch($){case"multidrag":z=O.map((Z,I)=>({...Z,element:y.clones[I]}));break;case"normal":z=O.map(Z=>({...Z,element:y.clone}));break;case"swap":default:a(o)(!0,`mode "${$}" cannot clone. Please remove "props.clone" from when using the "${$}" plugin`)}u(z),O.forEach(Z=>{const I=Z.oldIndex,V=this.props.clone(Z.item,y);P.splice(I,1,V)})}P=P.map(z=>Object.assign(z,{selected:!1})),A(P,this.sortable,D)}onUpdate(y){const{list:T,setList:A}=this.props,$=f(y,T);u($),h($);const O=p($,T);return A(O,this.sortable,D)}onStart(){D.dragging=this}onEnd(){D.dragging=null}onChoose(y){const{list:T,setList:A}=this.props,$=T.map((O,P)=>{let z=O;return P===y.oldIndex&&(z=Object.assign(O,{chosen:!0})),z});A($,this.sortable,D)}onUnchoose(y){const{list:T,setList:A}=this.props,$=T.map((O,P)=>{let z=O;return P===y.oldIndex&&(z=Object.assign(z,{chosen:!1})),z});A($,this.sortable,D)}onSpill(y){const{removeOnSpill:T,revertOnSpill:A}=this.props;T&&!A&&c(y.item)}onSelect(y){const{list:T,setList:A}=this.props,$=T.map(O=>Object.assign(O,{selected:!1}));y.newIndicies.forEach(O=>{const P=O.index;if(P===-1){console.log(`"${y.type}" had indice of "${O.index}", which is probably -1 and doesn't usually happen here.`),console.log(y);return}$[P].selected=!0}),A($,this.sortable,D)}onDeselect(y){const{list:T,setList:A}=this.props,$=T.map(O=>Object.assign(O,{selected:!1}));y.newIndicies.forEach(O=>{const P=O.index;P!==-1&&($[P].selected=!0)}),A($,this.sortable,D)}}dd(C,"defaultProps",{clone:y=>y});var S={};l(e.exports,S)})(ef);var zr=ef.exports;const o_=window.React.forwardRef,Fr=o_(({searchText:e="",onSearch:t=()=>!1,placeholder:n=N("Search"),...i},o)=>r.jsx(a_,{value:e,onChange:t,ref:o,type:"text",prefix:r.jsx(s_,{children:r.jsx(Sw,{})}),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 a_=v(ot)`${e=>e.$_css2}`,s_=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 l_=window.React.createContext,c_=window.React.forwardRef,z1=window.React.useContext,mf=window.React.useEffect,us=window.React.useMemo,d_=window.React.useRef,_o=window.React.useState,u_=l_({}),h_=e=>{const{builder:t}=z1(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(m_,{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(v_,{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(w_,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:vf[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(x_,{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(b_,{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(y_,{value:e.item.url,onChange:s,prefix:r.jsx(C_,{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;"])]})})]})},f_=window.brandyCustomizerData.language.list,vf=window.brandyCustomizerData.language.flags;function p_(e){const{builder:t}=z1(Je),n=us(()=>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)},p=()=>{h(!1)};mf(()=>{const w=E=>{(o==null||s==null)&&p(),!(o!=null&&o.contains(E.target))&&!(s!=null&&s.contains(E.target))&&p()};return window.jQuery(document).on("click","body",w),()=>{window.jQuery(document).off("click","body",w)}},[o,s]);const g=w=>{JSON.stringify(n)!==JSON.stringify(w)&&(e.onChange(w),He().refreshPartial(`${t}_${i}`))},m=us(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(u_.Provider,{value:m,children:r.jsxs(__,{children:[r.jsxs(S_,{children:[r.jsx(dt,{className:"m-0",children:N("List languages")}),r.jsx(j_,{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(k_,{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(w=>r.jsx("div",{children:r.jsx(h_,{item:w})},w.id))}),u&&r.jsx(g_,{ref:l,style:{...c.popper},...d.popper,onClose:p})]})})}const g_=c_(({style:e,onClose:t,...n},i)=>{const{builder:o}=z1(Je),a=te(o)(g=>g.changeElementSettings),s=te(o)(g=>{var m,w;return((w=(m=g.chosenElement)==null?void 0:m.settings)==null?void 0:w.languages)??[]}),l=te(o)(g=>{var m;return((m=g.chosenElement)==null?void 0:m.id)??""}),[c,d]=_o(""),u=us(()=>f_.filter(g=>!s.map(m=>m.id).includes(g.id)),[s]),h=us(()=>u.filter(g=>g.language_name.toLowerCase().includes(c.toLowerCase())||g.language_code.toLowerCase().includes(c.toLowerCase())||g.country_code.toLowerCase().includes(c.toLowerCase())||(g.english_name??"").toLowerCase().includes(c.toLowerCase())),[u,c]),f=g=>()=>{a(m=>{m.languages.push(g)}),He().refreshPartial(`${o}_${l}`),t()},p=d_(null);return mf(()=>{var g,m;return(m=(g=p.current)==null?void 0:g.querySelector("input"))==null?void 0:m.focus()},[p.current]),r.jsxs(E_,{style:e,ref:i,...n,children:[r.jsxs(D_,{children:[r.jsx($_,{children:"Add language"}),r.jsx(H_,{onClick:()=>{t()},children:r.jsx(Ns,{})})]}),r.jsx(M_,{children:r.jsx(Fr,{ref:p,searchText:c,onSearch:g=>{d(g.toString())},placeholder:N("Search language")})}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(I_,{children:[h.map(g=>r.jsxs(T_,{onClick:f(g),children:[r.jsx(L_,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:vf[g.flag]??""},$_css8:[` display: inline-flex; width: 30px; height: 100%; svg { width: 100%; height: 100%; }`]}),r.jsx("span",{children:g.english_name})]},g.id)),h.length===0&&r.jsx(A_,{children:"No language found"})]})})]})});var m_=v("div")`${e=>e.$_css2}`,v_=v("div")`${e=>e.$_css3}`,w_=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; } `,x_=v("div")`${e=>e.$_css4}`,b_=v("span")`${e=>e.$_css5}`,y_=v(ot)`${e=>e.$_css6}`,C_=v("span")`${e=>e.$_css7}`,__=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),S_=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),j_=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"}}),k_=v("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),E_=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)"}),D_=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),$_=v("span")({fontSize:"16px",fontWeight:"500"}),H_=v("span")({cursor:"pointer",padding:"0.25rem"}),M_=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),I_=v("div")({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.25rem",padding:"1rem"}),T_=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))"}}),L_=v("span")`${e=>e.$_css8}`,A_=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 R_=e=>{var t;return r.jsx(N_,{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(P_,{className:"group",children:r.jsx(V_,{children:r.jsxs(B_,{className:ke(["group-hover:text-brandy-text"]),children:[r.jsx(z_,{src:((t=window.brandyCustomizerData.currency.list.find(n=>n.id==e.item.id))==null?void 0:t.flag)??"",alt:"currency-flag"}),r.jsx(F_,{children:e.item.id})]})})})})},no=window.brandyCustomizerData.currency.list;function O_(){return r.jsxs(Z_,{children:[r.jsx(W_,{children:r.jsx(dt,{className:"m-0",children:N("List Currencies")})}),no==null&&r.jsx("div",{dangerouslySetInnerHTML:{__html:N('Please install YayCurrency to add currencies')}}),no==null?void 0:no.map(e=>r.jsx("div",{children:r.jsx(R_,{item:e})},e.id)),no!=null&&r.jsx(G_,{href:window.brandyCustomizerData.paths.yay_currency_manage,target:"_blank",children:N("Manage currencies")})]})}var N_=v("div")`${e=>e.$_css}`,P_=v("div")({display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"}),V_=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),B_=v("span")({display:"flex",alignItems:"center"}),z_=v("img")({marginRight:"0.5rem",display:"inline-block",width:"30px",borderRadius:"3px"}),F_=v("span")({fontWeight:"500"}),Z_=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),W_=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),G_=v("a").withConfig({displayName:"ListCurrencies___StyledA",componentId:"sc-gaezvr-0"})({textDecorationLine:"underline"});const U_=window.React.useContext;function Y_(e){const t=U_(Je);return r.jsx("div",{className:"flex flex-col gap-4",children:r.jsxs("div",{children:[r.jsx(Xs,{...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 X_=window.React.useContext,ou=window.React.useMemo,J_=window.brandyCustomizerData.icons.account;function K_(e){const{builder:t}=X_(Ut),n=ou(()=>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,p;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:(p=(f=(h=(u=a.chosenElement)==null?void 0:u.settings)==null?void 0:h.logged_out)==null?void 0:f.icon)==null?void 0:p.style)??"outline"}),o=ou(()=>Object.entries(J_[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 q_=window.React.useMemo,Q_={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 wf({state:e}){const t=q_(()=>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:Q_[e]})]})}const eS=()=>r.jsx(wf,{state:"logged_in"}),tS=()=>r.jsx(wf,{state:"logged_out"}),nS=window.React.useMemo,rS=window.brandyCustomizerData.icons.button;function iS(e){const t=nS(()=>Object.entries(rS??{}).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 oS=window.React.useContext,aS=window.React.useMemo,sS=window.brandyCustomizerData.icons.cart;function lS(e){const{builder:t}=oS(Ut),n=te(t)(o=>{var a;return(a=o.chosenElement)==null?void 0:a.settings.icon_style}),i=aS(()=>Object.entries(sS[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 cS=window.React.forwardRef,F1=window.React.useContext,xf=window.React.useEffect,Vc=window.React.useMemo,dS=window.React.useRef,So=window.React.useState,uS=e=>{const{builder:t}=F1(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 p=De(wt("contact",t)+` .brandy-contact-item[type="${h.id}"] .brandy-contact-item__text`);p&&window.jQuery(p).html(u.toString()),i(g=>{g.items[f].content=u.toString()})}})},d=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const p=De(wt("contact",t)+` .brandy-contact-item[type="${h.id}"]`);p&&window.jQuery(p).attr("href",u.toString()),i(g=>{g.items[f].url=u.toString()})}})};return r.jsxs(gS,{$_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(mS,{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(vS,{children:[r.jsx(wS,{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(xS,{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(bS,{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(yS,{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(CS,{children:[r.jsxs(_S,{children:[r.jsx("div",{children:"Content"}),r.jsx(ot,{value:e.item.content,onChange:c})]}),r.jsxs(SS,{children:[r.jsx("div",{children:"Link"}),r.jsx(jS,{value:e.item.url,onChange:d,prefix:r.jsx(kS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:bf[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;"])]})]})]})]})},hS=window.brandyCustomizerData.all_contacts,bf=window.brandyCustomizerData.icons.contact;function fS(e){const{builder:t}=F1(Je),n=Vc(()=>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(g=>!g)},f=()=>{u(!1)};xf(()=>{const g=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",g),()=>{window.jQuery(document).off("click","body",g)}},[i,a]);const p=g=>{JSON.stringify(n)!==JSON.stringify(g)&&(e.onChange(g),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(dt,{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:p,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-social-drag-handle",children:n.map(g=>r.jsx("div",{children:r.jsx(uS,{item:g})},g.id))}),d&&r.jsx(pS,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const pS=cS(({style:e,onClose:t,...n},i)=>{const{builder:o}=F1(Je),a=te(o)(p=>{var g;return(g=p.chosenElement)==null?void 0:g.settings}),s=te(o)(p=>p.changeElementSettings),[l,c]=So(""),d=Vc(()=>hS.filter(p=>!a.items.map(g=>g.id).includes(p.id)),[a.items]),u=Vc(()=>d.filter(p=>p.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=p=>()=>{s(g=>{g.items.push(p)}),He().refreshPartial(`${o}_contact`),t()},f=dS(null);return xf(()=>{var p,g;return(g=(p=f.current)==null?void 0:p.querySelector("input"))==null?void 0:g.focus()},[f.current]),r.jsxs(ES,{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(Ns,{})})]}),r.jsx("div",{className:"p-4 pt-2 border-b border-b-brandy-border-light",children:r.jsx(Fr,{ref:f,searchText:l,onSearch:p=>{c(p.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(p=>r.jsxs(DS,{className:"group",onClick:h(p),$_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($S,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:bf[p.icon]??""},$_css1:[ue(["svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7",".group:hover &":{stroke:"#2271B1"}},{fill:"#A1ABB7",".group:hover &":{fill:"#2271B1"}})]}),r.jsx(HS,{children:p.label})]},p.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var gS=v("div")`${e=>e.$_css2}`,mS=v("div")`${e=>e.$_css3}`,vS=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),wS=v("span")({cursor:"grab",padding:"0.5rem"}),xS=v("div")`${e=>e.$_css4}`,bS=v("span")`${e=>e.$_css5}`,yS=v("span")`${e=>e.$_css6}`,CS=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),_S=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),SS=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),jS=v(ot)`${e=>e.$_css7}`,kS=v("span")`${e=>e.$_css8}`,ES=v("div")`${e=>e.$_css9}`,DS=v("div")`${e=>e.$_css0}`,$S=v("span")`${e=>e.$_css1}`,HS=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 MS=window.React.useContext,IS=window.React.useMemo,TS=[{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"})})]})}],LS=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 AS=v(LS).withConfig({displayName:"ActiveTypeSelection___StyledStyledItem",componentId:"sc-5cnq7j-1"})(["",""],e=>e.$_css2);function RS(e){const{builder:t}=MS(Je),n=te(t)(s=>s.changeElementSettings),{current:i}=be(),o=IS(()=>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(dt,{children:N("Select menu item active type")}),r.jsx("div",{className:"flex flex-col gap-4",children:TS.map(s=>r.jsx(AS,{onClick:()=>{a(s.value)},selected:o===s.value,$_css2:[ue` svg { width: 100%; } `],children:s.label},s.value))})]})}const OS=window.React.useContext,NS=window.React.useMemo,PS=window.brandyCustomizerData.wp_nav_menus,VS=PS.map(e=>({label:e.name,value:e.slug}));function BS(e){const t=OS(Je),n=NS(()=>e.value??e.default_value,[e.value,e.default_value]);return r.jsxs(r.Fragment,{children:[r.jsx(dt,{children:"Select Menu"}),r.jsx(ct,{options:VS,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 zS=window.React.useMemo,FS=window.brandyCustomizerData.icons.search;function ZS(e){const t=zS(()=>Object.entries(FS??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:ke(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(Mn,{...e,options:t})}const WS=[{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 GS(e){return r.jsx(Mn,{...e,options:(e.options??[]).map(t=>WS.find(n=>n.value===t.value)),className:"live-result-type-group [&_.brandy-radio-item]:pb-0",itemCss:[ue(["&.selected{border:1px solid #000;}"])]})}const US=window.React.useMemo,YS=window.React.useState;function XS(e){const[t,n]=YS(""),i=l=>{n(l.toString())},o=US(()=>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(JS,{tags:o,onRemove:s})]})}function JS({tags:e,onRemove:t}){return r.jsx(KS,{children:e.map(n=>r.jsxs(qS,{children:[n,r.jsx("span",{onClick:()=>{t(n)},children:r.jsxs(QS,{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 KS=v("div")({marginTop:"0.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"}),qS=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"}),QS=v("svg").withConfig({displayName:"Suggestions___StyledSvg",componentId:"sc-vw3nn3-0"})({height:"8px",width:"8px",cursor:"pointer"});const ej=window.React.forwardRef,Z1=window.React.useContext,yf=window.React.useEffect,Ua=window.React.useMemo,tj=window.React.useRef,jo=window.React.useState,nj=e=>{const{builder:t}=Z1(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,p)=>{if(f.id===e.item.id){const g=De(wt(o??"",t)+` .brandy-social-item[data-social-id="${f.id}"] .brandy-social-item__label`);g&&window.jQuery(g).html(h),i(m=>{m.items[p].label=h.toString()})}})},u=h=>{n.items.forEach((f,p)=>{if(f.id===e.item.id){const g=De(wt(o??"",t)+` .brandy-social-item[data-social-id="${f.id}"]`);g&&window.jQuery(g).attr("href",h),i(m=>{m.items[p].url=h.toString()})}})};return r.jsxs(aj,{$_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(sj,{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(lj,{children:[r.jsx(cj,{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(dj,{$_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(uj,{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(hj,{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(fj,{children:[r.jsxs(pj,{children:[r.jsx("div",{children:"Label"}),r.jsx(ot,{value:e.item.label,onChange:d})]}),r.jsxs(gj,{children:[r.jsx("div",{children:"Link"}),r.jsx(mj,{value:e.item.url,onChange:u,prefix:r.jsx(vj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:(hs[e.item.icon]&&hs[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;"])]})]})]})]})},rj=window.brandyCustomizerData.all_socials,hs=window.brandyCustomizerData.icons.socials;function ij(e){const{builder:t}=Z1(Je),n=Ua(()=>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)};yf(()=>{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 p=te(t)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),g=m=>{JSON.stringify(n)!==JSON.stringify(m)&&(e.onChange(m),He().refreshPartial(`${t}_${p}`))};return r.jsxs(wj,{children:[r.jsxs(xj,{children:[r.jsx(dt,{className:"m-0",children:"List socials"}),r.jsx(bj,{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(yj,{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(m=>r.jsx("div",{children:r.jsx(nj,{item:m})},m.id))}),d&&r.jsx(oj,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const oj=ej(({style:e,onClose:t,...n},i)=>{const{builder:o}=Z1(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=Ua(()=>rj.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}),p=m=>()=>{s(w=>{w.items.push(m)}),He().refreshPartial(`${o}_${f}`),t()},g=tj(null);return yf(()=>{var m,w;return(w=(m=g.current)==null?void 0:m.querySelector("input"))==null?void 0:w.focus()},[g.current]),r.jsxs(Cj,{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(_j,{children:[r.jsx(Sj,{children:"Add social icon"}),r.jsx(jj,{onClick:()=>{t()},children:r.jsx(Ns,{})})]}),r.jsx(kj,{children:r.jsx(Fr,{ref:g,searchText:l,onSearch:m=>{c(m.toString())},placeholder:N("Search socials")})}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Ej,{children:[u.map(m=>r.jsx(Dj,{onClick:p(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:(hs[m.icon]&&hs[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 aj=v("div")`${e=>e.$_css2}`,sj=v("div")`${e=>e.$_css3}`,lj=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),cj=v("span")({cursor:"grab",padding:"0.5rem"}),dj=v("div")`${e=>e.$_css4}`,uj=v("span")`${e=>e.$_css5}`,hj=v("span")`${e=>e.$_css6}`,fj=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),pj=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),gj=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),mj=v(ot)`${e=>e.$_css7}`,vj=v("span")`${e=>e.$_css8}`,wj=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),xj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),bj=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"}}),yj=v("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),Cj=v("div")`${e=>e.$_css9}`,_j=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),Sj=v("span")({fontSize:"16px",fontWeight:"500"}),jj=v("span")({cursor:"pointer",padding:"0.25rem"}),kj=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),Ej=v("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),Dj=v("div").withConfig({displayName:"ListSocials___StyledDiv13",componentId:"sc-hody2l-0"})(["",""],e=>e.$_css0);const $j=window.React.forwardRef,W1=window.React.useContext,Cf=window.React.useEffect,Ya=window.React.useMemo,Hj=window.React.useRef,ko=window.React.useState,Mj=e=>{const{builder:t}=W1(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 p=De(wt(o??"",t)+` .brandy-payment-item[data-payment-id="${h.id}"]`);p&&window.jQuery(p).attr("href",$s(u)),i(g=>{g.items[f].url=u.toString()})}})};return r.jsxs(Aj,{$_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(Rj,{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(Oj,{children:[r.jsx(Nj,{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(Pj,{$_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(Vj,{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(Bj,{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(zj,{children:r.jsxs(Fj,{children:[r.jsx("div",{children:"Link"}),r.jsx(Zj,{value:e.item.url,onChange:d,prefix:r.jsx(Wj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:_f[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;"])]})]})})]})},Ij=window.brandyCustomizerData.all_payments,_f=window.brandyCustomizerData.icons.payments;function Tj(e){const{builder:t}=W1(Je),n=Ya(()=>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)};Cf(()=>{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 p=te(t)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),g=m=>{JSON.stringify(n)!==JSON.stringify(m)&&(e.onChange(m),He().refreshPartial(`${t}_${p}`))};return r.jsxs(Gj,{children:[r.jsxs(Uj,{children:[r.jsx(dt,{className:"m-0",children:"List payments"}),r.jsx(Yj,{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(Xj,{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-payment-drag-handle",children:n.map(m=>r.jsx("div",{children:r.jsx(Mj,{item:m})},m.id))}),d&&r.jsx(Lj,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const Lj=$j(({style:e,onClose:t,...n},i)=>{const{builder:o}=W1(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=Ya(()=>Ij.filter(m=>!a.items.map(w=>w.id).includes(m.id)),[a.items]),u=Ya(()=>d.filter(m=>m.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=Ya(()=>a.icon_color_type,[a.icon_color_type]),f=te(o)(m=>{var w;return(w=m.chosenElement)==null?void 0:w.id}),p=m=>()=>{s(w=>{w.items.push(m)}),He().refreshPartial(`${o}_${f}`),t()},g=Hj(null);return Cf(()=>{var m,w;return(w=(m=g.current)==null?void 0:m.querySelector("input"))==null?void 0:w.focus()},[g.current]),r.jsxs(Jj,{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(Kj,{children:[r.jsx(qj,{children:"Add payment icon"}),r.jsx(Qj,{onClick:()=>{t()},children:r.jsx(Ns,{})})]}),r.jsx(ek,{children:r.jsx(Fr,{ref:g,searchText:l,onSearch:m=>{c(m.toString())},placeholder:N("Search payment")})}),r.jsx(Zn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(tk,{children:[u.map(m=>r.jsx(nk,{onClick:p(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:_f[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 Aj=v("div")`${e=>e.$_css2}`,Rj=v("div")`${e=>e.$_css3}`,Oj=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Nj=v("span")({cursor:"grab",padding:"0.5rem"}),Pj=v("div")`${e=>e.$_css4}`,Vj=v("span")`${e=>e.$_css5}`,Bj=v("span")`${e=>e.$_css6}`,zj=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Fj=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Zj=v(ot)`${e=>e.$_css7}`,Wj=v("span")`${e=>e.$_css8}`,Gj=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Uj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Yj=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"}}),Xj=v("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),Jj=v("div")`${e=>e.$_css9}`,Kj=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),qj=v("span")({fontSize:"16px",fontWeight:"500"}),Qj=v("span")({cursor:"pointer",padding:"0.25rem"}),ek=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),tk=v("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),nk=v("div").withConfig({displayName:"ListPayments___StyledDiv12",componentId:"sc-wzxanx-0"})(["",""],e=>e.$_css0);const rk=window.React.useContext,ik=window.React.useMemo,ok=window.brandyCustomizerData.icons.wishlist;function ak(e){const{builder:t}=rk(Ut),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=ik(()=>Object.entries(ok[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 sk=window.React.useContext,lk=window.React.useMemo;function ck(e){const{builder:t}=sk(Ut),n=lk(()=>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(wt(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($1,{...e,onChange:o})}const dk=window.React.useContext,au={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 uk(e){const{builder:t}=dk(Je),{current:n}=be(),i=te(t)(a=>a.changeElementSettings),o=a=>{i(s=>{St(s,["button_design_text","typography","font_size"],au[a].button_design_text.typography.font_size),St(s,["button_design_padding"],au[a].button_design_padding),Hn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(sr,{...e,onChange:o})}const hk=window.React.useContext;function fk(e){const{builder:t}=hk(Je),{current:n}=be(),i=te(t)(a=>a.changeElementSettings),o=a=>{const s=De(wt(e.sectionId,t)+" .brandy-element-wrapper"),l=De(wt(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",p="is-style-outline is-style-outline--1",g="wp-element-button wp-block-button__link";h?(window.jQuery(s).addClass(f),window.jQuery(s).addClass(p),window.jQuery(l).addClass(g)):(window.jQuery(s).removeClass(p),window.jQuery(s).addClass(f),window.jQuery(l).removeClass(g),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-foreground)",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-foreground)",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-foreground)",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 p=d-c;f.button_design_padding.top=Math.max(0,f.button_design_padding.top-p),f.button_design_padding.bottom=Math.max(0,f.button_design_padding.bottom-p),f.button_design_padding.left=Math.max(0,f.button_design_padding.left-p),f.button_design_padding.right=Math.max(0,f.button_design_padding.right-p),Hn({sectionId:e.sectionId,settings:f,device:n,clonedFromId:e.cloned_from})})},u?400:0)};return r.jsx(sr,{...e,onChange:o})}const su=window.React.useMemo,pk=[{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:"1fr 1fr"},{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:"2fr 1fr"},{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:"1fr 2fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",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("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",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 4H0ZM0 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"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],gk=[{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:"1fr 1fr 1fr"},{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:"3fr 1fr 1fr"},{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:"1fr 1fr 3fr"},{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:"1fr 3fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",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("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",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 4H0ZM0 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"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],mk=[{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:"repeat(4,1fr)"},{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:"1fr 1fr 1fr 3fr"},{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:"3fr 1fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",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("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",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 4H0ZM0 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"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],vk=[{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:"1fr 1fr 1fr 1fr 1fr"},{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:"1fr 1fr 1fr 1fr 2fr"},{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:"1fr 1fr 2fr 1fr 1fr"},{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:"2fr 1fr 1fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",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("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",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 4H0ZM0 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"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],wk=[{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:"repeat(6,1fr)"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",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("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",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 4H0ZM0 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"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}];function xk(e){var a,s,l;const{current:t}=be(),n=su(()=>{var c,d;return((c=e.settings)==null?void 0:c.number_column[t])??((d=e.settings)==null?void 0:d.number_column.desktop)},[(a=e.settings)==null?void 0:a.number_column[t],t]),i=su(()=>n===3?gk:n===4?mk:n===5?vk:n===6?wk:pk,[n]);if(n===1)return!1;const o=c=>{const d=JSON.parse(JSON.stringify(_e(e.settings,["column_layout"])??{desktop:"",tablet:null,mobile:null}));d[t]=c,e.onChange(d,["column_layout"]),Hn({sectionId:e.sectionId,device:t,settings:{column_layout:d},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:o,value:((l=(s=e.settings)==null?void 0:s.column_layout)==null?void 0:l[t])??""})}function bk(e){const{current:t}=be(),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(u=>{c[u]==null&&(u==="desktop"&&(c[u]=1),u==="tablet"&&(c[u]=c.desktop),u==="mobile"&&(c[u]=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(_e(e.settings,["column_layout"])??{desktop:"repeat(var(--brandy-footer-number-col-desktop),1fr)",tablet:"repeat(var(--brandy-footer-number-col-tablet),1fr)",mobile:null}));d[n]=`repeat(${a},1fr)`,e.onChange(d,["column_layout"]),Hn({sectionId:e.sectionId,device:n,settings:{column_layout:d},builder:"footer"}),Me.setState(u=>{const h=u.chosenRow;if(h==null)return;const f=u.previewTemplate.placements[n][h],p=f.length;if(pD>a-1?[...E,...j]:E,[]).length<1){u.previewTemplate.placements[n][h]=f.slice(0,a);return}const m=f.reduce((E,j)=>[...E,...j],[]),w=[];for(let E=0;Ee.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:jk,className:"theme-layout-type-group [&_.brandy-radio-group]:grid [&_.brandy-radio-group]:grid-cols-2",itemCss:[ue(["&.selected{border:1px solid #000;}"])]})}const Ek=window.React.useMemo;function Dk(e){const{current:t}=be(),n=Ie(o=>o.previewTemplate.placements[Ze(t)].toggle),i=Ek(()=>[{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($1,{...e,options:i})}const $k=window.React.useState;function Hk(e){const[t,n]=$k(window.wp.customize("blogname")),i=o=>{n(o),window.wp.customize("blogname")(o),e.onChange(o)};return r.jsx(D1,{...e,value:t,onChange:i})}const Mk=window.React.useState;function Ik(e){const[t,n]=Mk(window.wp.customize("blogdescription")),i=o=>{n(o),window.wp.customize("blogdescription")(o),e.onChange(o)};return r.jsx(D1,{...e,value:t,onChange:i})}const tc=window.React.useMemo;function Tk(e){const{current:t}=be(),n=tc(()=>Ze(t),[t]),i=tc(()=>[...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=tc(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(Rh,{...e,value:a,onChange:o})}const Lk=window.React.useCallback,ri=window.React.useEffect,Bt=window.React.useMemo,Ak=window.React.useState,lu={unit:"px",value:12};function Rk(e){const{current:t}=be(),[n,i]=Ak("column_1"),o=Bt(()=>["column_items_direction"],[]),a=Bt(()=>["column_horizontal_alignment"],[]),s=Bt(()=>["column_vertical_alignment"],[]),l=Bt(()=>["column_item_vertical_spacing"],[]),c=Bt(()=>["column_item_horizontal_spacing"],[]),d=Bt(()=>{var x,y,T,A;const C=_e(e.settings,o),S={desktop:((x=C.desktop)==null?void 0:x[n])??"vertical",tablet:(y=C.tablet)==null?void 0:y[n],mobile:(T=C.mobile)==null?void 0:T[n],[t]:(A=C[t])==null?void 0:A[n]};return ge(S,t)},[e.settings,o,t,n]),u=Bt(()=>{var x,y,T,A;const C=_e(e.settings,a),S={desktop:((x=C.desktop)==null?void 0:x[n])??"flex-start",tablet:(y=C.tablet)==null?void 0:y[n],mobile:(T=C.mobile)==null?void 0:T[n],[t]:(A=C[t])==null?void 0:A[n]};return ge(S,t)},[e.settings,a,t,n]),h=Bt(()=>{var x,y,T,A;const C=_e(e.settings,s),S={desktop:((x=C.desktop)==null?void 0:x[n])??"flex-start",tablet:(y=C.tablet)==null?void 0:y[n],mobile:(T=C.mobile)==null?void 0:T[n],[t]:(A=C[t])==null?void 0:A[n]};return ge(S,t)},[e.settings,s,t,n]),f=Bt(()=>{var x,y,T,A;const C=_e(e.settings,l),S={desktop:((x=C.desktop)==null?void 0:x[n])??lu,tablet:(y=C.tablet)==null?void 0:y[n],mobile:(T=C.mobile)==null?void 0:T[n],[t]:(A=C[t])==null?void 0:A[n]};return ge(S,t)},[e.settings,l,t,n]),p=Bt(()=>{var x,y,T,A;const C=_e(e.settings,c),S={desktop:((x=C.desktop)==null?void 0:x[n])??lu,tablet:(y=C.tablet)==null?void 0:y[n],mobile:(T=C.mobile)==null?void 0:T[n],[t]:(A=C[t])==null?void 0:A[n]};return ge(S,t)},[e.settings,c,t,n]),g=C=>{const S=JSON.parse(JSON.stringify(_e(e.settings,[...o,t])??{}));S[n]=C,e.onChange(S,[...o,t],[...o,t])};ri(()=>{const C=parseInt(n.replace("column_","")),S=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${C})`);S!=null&&window.jQuery(S).attr(`data-items-direction-${t}`,d)},[d,t,n,e.sectionId]);const m=C=>{const S=JSON.parse(JSON.stringify(_e(e.settings,[...a,t])??{}));S[n]=C,e.onChange(S,[...a,t],[...a,t])};ri(()=>{const C=parseInt(n.replace("column_","")),S=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${C})`);S!=null&&window.jQuery(S).css("--horizontal-alignment",u).css("--text-alignment",{"flex-start":"left",center:"center","flex-end":"right","space-between":"space-between"}[u]??"left")},[u,t,n,e.sectionId]);const w=C=>{const S=JSON.parse(JSON.stringify(_e(e.settings,[...s,t])??{}));S[n]=C,e.onChange(S,[...s,t],[...s,t])};ri(()=>{const C=parseInt(n.replace("column_","")),S=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${C})`);S!=null&&window.jQuery(S).css(`--brandy-footer-column-vertical-alignment-${t}`,h)},[h,t,n,e.sectionId]);const E=C=>{const S=JSON.parse(JSON.stringify(_e(e.settings,[...c,t])??{}));S[n]=C,e.onChange(S,[...c,t],[...c,t])};ri(()=>{const C=parseInt(n.replace("column_","")),S=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${C})`);S!=null&&window.jQuery(S).css(`--brandy-footer-column-item-horizontal-spacing-${t}`,Mr(p))},[p,t,n,e.sectionId]);const j=C=>{const S=JSON.parse(JSON.stringify(_e(e.settings,[...l,t])??{}));S[n]=C,e.onChange(S,[...l,t],[...l,t])};ri(()=>{const C=parseInt(n.replace("column_","")),S=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${C})`);S!=null&&window.jQuery(S).css(`--brandy-footer-column-item-vertical-spacing-${t}`,Mr(f))},[f,t,n,e.sectionId]);const D=Bt(()=>{const C=_e(e.settings,["number_column",t]);return Array.from({length:C}).map((S,x)=>({label:x+1,value:`column_${x+1}`}))},[e,t]);return ri(()=>{const C=parseInt(n.replace("column_","")),S=De(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${C})`);return S!=null&&window.jQuery(S).css("outline","1px dashed #007cba"),()=>{S!=null&&window.jQuery(S).css("outline","none")}},[n,e.sectionId]),r.jsxs("div",{children:[r.jsxs(Vk,{children:[r.jsxs(Bk,{children:[N("Customize column"),r.jsx(E1,{})]}),r.jsx(zk,{children:N("Choose column to customize")}),r.jsx(Tt,{options:D,selected:n,onChange:i})]}),r.jsxs(Fk,{children:[r.jsxs(Zk,{children:[N("Items direction"),r.jsx(ro,{settings:e.settings,mainKey:"column_items_direction",subKey:n,onChange:g})]}),r.jsx(Tt,{options:Ok,selected:d,onChange:g})]}),r.jsxs(Wk,{children:[r.jsxs(Gk,{children:[N("Horizontal Alignment"),r.jsx(ro,{settings:e.settings,mainKey:"column_horizontal_alignment",subKey:n,onChange:m})]}),r.jsx(Tt,{options:Nk,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)"})})]}),r.jsxs(Uk,{children:[r.jsxs(Yk,{children:[N("Vertical Alignment"),r.jsx(ro,{settings:e.settings,mainKey:"column_vertical_alignment",subKey:n,onChange:w})]}),r.jsx(Tt,{options:Pk,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.jsxs(Xk,{children:[r.jsx(Jk,{children:r.jsx(ro,{settings:e.settings,mainKey:"column_item_horizontal_spacing",subKey:n,onChange:E})}),r.jsx(dn,{title:N("Item spacing"),value:p,min:0,max:300,onChange:E})]}),d==="vertical"&&r.jsxs(Kk,{children:[r.jsx(qk,{children:r.jsx(ro,{settings:e.settings,mainKey:"column_item_vertical_spacing",subKey:n,onChange:j})}),r.jsx(dn,{title:N("Item spacing"),value:f,min:0,max:300,onChange:j})]})]})}const Ok=[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],Nk=[{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"}],Pk=[{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"}];function ro({settings:e,mainKey:t,subKey:n,onChange:i}){const{current:o}=be(),a=Bt(()=>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 "})]}),[]),s=Bt(()=>o=="desktop"?!0:_e(e,[t,o,n])==null,[o,e,t,n]),l=Lk(()=>{o!=="desktop"&&i(null,[t,o,n])},[o,i,t,n]);return s?!1:r.jsx(Qk,{onClick:l,$_css2:[{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:a})}var Vk=v("div")({marginBottom:"1rem"}),Bk=v("div")({marginBottom:"0.5rem",fontWeight:"700",textTransform:"capitalize"}),zk=v("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),Fk=v("div")({marginBottom:"1rem"}),Zk=v("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),Wk=v("div")({marginBottom:"1rem"}),Gk=v("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),Uk=v("div")({marginBottom:"1rem"}),Yk=v("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),Xk=v("div")({position:"relative",marginBottom:"1rem"}),Jk=v("div")({position:"absolute",top:"10px"}),Kk=v("div")({position:"relative",marginBottom:"1rem"}),qk=v("div")({position:"absolute",top:"10px"}),Qk=v("span").withConfig({displayName:"ColumnContentLayout___StyledSpan",componentId:"sc-1864esf-0"})(["",""],e=>e.$_css2);const Sf=window.React.useContext,eE=window.React.useMemo,tE=window.React.useState,nE=e=>{const{builder:t}=Sf(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]=tE(!1),l=()=>{i(h=>{h.items=n.items.filter((f,p)=>p!==e.position)}),He().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,p)=>{if(e.position===p){const g=De(wt(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);g&&window.jQuery(g).html(h),i(m=>{m.items[p].label=h.toString()})}})},u=h=>{n.items.forEach((f,p)=>{if(p===e.position){const g=De(wt(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);g&&window.jQuery(g).attr("href",$s(h)),i(m=>{m.items[p].url=h.toString()})}})};return r.jsxs(iE,{$_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(oE,{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(aE,{children:[r.jsx(sE,{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(lE,{$_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(cE,{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(dE,{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(uE,{children:[r.jsxs(hE,{children:[r.jsx("div",{children:"Label"}),r.jsx(ot,{value:e.item.label,onChange:d})]}),r.jsxs(fE,{children:[r.jsx("div",{children:"Link"}),r.jsx(ot,{value:e.item.url,onChange:u})]})]})]})};function rE(e){const{builder:t}=Sf(Je),n=eE(()=>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(pE,{children:[r.jsxs(gE,{children:[r.jsx(dt,{className:"m-0",children:"List Link"}),r.jsx(mE,{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(vE,{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(nE,{item:s,position:l},l))})]})}var iE=v("div")`${e=>e.$_css2}`,oE=v("div")`${e=>e.$_css3}`,aE=v("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),sE=v("span")({cursor:"grab",padding:"0.5rem"}),lE=v("div")`${e=>e.$_css4}`,cE=v("span")`${e=>e.$_css5}`,dE=v("span")`${e=>e.$_css6}`,uE=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),hE=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),fE=v("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),pE=v("div")({display:"flex",flexDirection:"column",gap:"1rem"}),gE=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),mE=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"}}),vE=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 wE=window.React.useCallback,xE=window.React.useContext,bE=window.React.useMemo;function yE(e){const{builder:t}=xE(Ut),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=_e(o,e.reset_paths[0]),s=wE(()=>{n(l=>{if(l!=null)if(St(l,e.reset_paths[0],""),e.reset_paths[0].includes("logo_mobile")){const c=De(`${wt(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(`${wt(e.sectionId,t)} .brandy-logo__img.logo-desktop`),d=De(`${wt(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 bE(()=>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(Mh,{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 _E(e){return{ButtonGroup:sr,IconGroup:Mn,BoxShadow:H6,ColorGroup:Y6,Dimension:q6,Image:d9,Switcher:Rh,Typography:rx,EnabledDevices:sx,TextInput:D1,Spacing:gx,Alignment:xx,Position:Cx,Dropdown:$1,Reset:Xs,MultipleChoice:kx,Background:e7,FlexibleContent:s7,VerticalAlignment:o7,HorizontalAlignment:u7,PrefilledHTML:x7,HTML:y7,Widget:hC,MultipleSelect:vC,NumberInput:dx,ResetLogo:yE,ListLanguages:p_,ListCurrencies:O_,CanvasTitle:Y_,MenuSelection:BS,MenuActiveType:RS,ListSocials:ij,ListPayments:Tj,AccountLoggedInTitle:eS,AccountLoggedOutTitle:tS,AccountIconSelection:K_,AccountClickAction:ck,ButtonIconSelection:iS,ButtonType:fk,ButtonSize:uk,SearchIconSelection:ZS,LiveResultsType:GS,SearchSuggestions:XS,CartIconSelection:lS,ListContacts:fS,WishlistIconSelection:ak,NewsletterLayoutType:kk,FooterColumnLayout:xk,FooterNumberColumn:bk,FooterStretchItem:Tk,ColumnContentLayout:Rk,ToggleOffCanvasType:Ck,ToggleOffCanvasAlignBottomFrom:Dk,SiteTitle:Hk,SiteTagline:Ik,ListLink:rE}[e]}const SE=window.React.useCallback,br=window.React.useMemo,G1=({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",G1({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=_e(t,s.value_path);if(c==null&&s.default_check_value!=null&&(c=s.default_check_value),c==null)return!1;c=xi(c)?ge(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 qo({section:e,sectionId:t,settings:n,onChange:i,builder:o="header",clonedFromId:a}){const{current:s}=be(),l=te(o)(d=>{var u;return t.includes("menu")&&((u=d.previewTemplate.placements[Ze(s)].toggle)==null?void 0:u.includes(t))});return br(()=>G1({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(jE,{data:d,sectionId:t,settings:n,onChange:i,builder:o,clonedFromId:a},u))}):!1}function jE(e){var d;const t=br(()=>e.data,[e.data]),{current:n}=be(),i=br(()=>e.builder??"header",[e.builder]),o=br(()=>_E(t.type)??!1,[t.type]),a=br(()=>_e(e.settings,t.value_path),[e.settings,t.value_path]),s=br(()=>t.default_value,[t.default_value]),l=br(()=>G1({conditions:t.visible_conditions,settings:e.settings,device:n}),[t.visible_conditions,e.settings,n,s]),c=SE((u,h=null,f=null,p=!1)=>{e.onChange(g=>{var j,D,C,S;const m=h??t.value_path;let w=_e(g,m);if(w==null&&(p||t.is_responsive?St(g,m,{desktop:null,tablet:null,mobile:null}):St(g,m,null)),w=_e(g,m),w==null&&(w=f?_e(t.default_value,f):t.default_value),xi(w)&&!xi(u)||p?St(g,m,{...w,[n]:u}):St(g,m,u),((j=t.render_options)==null?void 0:j.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;((D=t.render_options)==null?void 0:D.type)==="content"&&(E=ym),((C=t.render_options)==null?void 0:C.type)==="data_attribute"&&(E=A2),((S=t.render_options)==null?void 0:S.type)==="variable"&&(E=Hn),E!=null&&E({builder:i,sectionId:e.sectionId,settings:g,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:jf(a,s),onChange:c,sectionId:e.sectionId,builder:i,settings:e.settings})}function jf(e,t,n=!1){if(e===void 0)return t;if(e===null)return n?null:t;if(Array.isArray(t)||!g2(t))return e;const i=t;return Object.keys(t).forEach(o=>{i[o]=jf(e[o],t[o],!0)}),JSON.parse(JSON.stringify(i))}const at=e=>e.title?r.jsxs(kE,{className:e.className??(e.title.show_devices?"mb-0":"mb-[8px]"),children:[r.jsxs(EE,{className:ke([e.title.type==="bold"&&"font-bold","brandy-setting-title-text"]),children:[e.title.text,e.title.tooltip&&r.jsxs(DE,{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($E,{className:"brandy-setting-title-tooltip",dangerouslySetInnerHTML:{__html:e.title.tooltip}})]})]}),e.title.show_devices&&r.jsx(E1,{})]}):!1;var kE=v("div")({display:"flex",alignItems:"center","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),EE=v("div")({display:"flex",alignItems:"center",gap:"5px",textTransform:"capitalize"}),DE=v("span")`${e=>e.$_css2}`,$E=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 HE={isDragging:!1},No=Ds()(e=>({...HE,startDragging:()=>{e(()=>({isDragging:!0}))},stopDragging:()=>{e(()=>({isDragging:!1}))}}));const ME=window.React.useEffect,cu=window.React.useRef,IE=window.React.useState;function kf({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(LE,{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(Cw,{})}),r.jsx(TE,{name:l??((c=window.brandyElements[s])==null?void 0:c.title)??"",id:s,builder:t,disabled:n.includes(s)})]},s)})})}function TE({id:e,name:t,builder:n,disabled:i=!1}){const[o,a]=IE(!1),s=d=>{let u=Ie;n==="footer"&&(u=Me),u.getState().changeElementItemTitle(e,d)},l=cu(null),c=cu(null);return ME(()=>{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(AE,{value:t,type:"text",onChange:s,ref:l}):r.jsx("span",{ref:c,children:t||""})}var LE=v("span")`${e=>e.$_css2}`,AE=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 RE=window.React.useMemo;function U1(e,t="header"){const n=te(t)(o=>o.previewTemplate.elements),i=RE(()=>_2(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 OE=window.React.useMemo,NE=window.React.useState,PE=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function VE(){const{current:e}=be(),t=te("header")(c=>c.previewTemplate.placements[Ze(e)]),[n,i]=NE(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=U1(t,"header"),l=OE(()=>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(Fr,{searchText:n,onSearch:o,placeholder:N("Search element")})}),r.jsx(O2,{children:r.jsx(Zo,{children:l.length<=0?r.jsx(PE,{}):r.jsx(kf,{items:l,disabledItems:s,builder:"header"})})})]})}const BE=window.React.useMemo;function zE(){const e=Ie(i=>i.previewTemplate.settings),t=BE(()=>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(qo,{section:i,sectionKey:`header-${o}`,sectionId:"header",settings:e,onChange:n,builder:"header"},`header-${o}`))})}const FE=[{label:N("Elements"),key:"elements"},{label:N("Settings"),key:"settings"}];function ZE(){const{contextHolder:e,currentTab:t}=Xo({items:FE}),n=Ie(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{Rt()};return r.jsxs(el,{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(VE,{}):r.jsx(zE,{})]})}const du=window.React.useCallback,WE=window.React.useEffect,uo=window.React.useMemo,Da=window.React.useState,GE=[{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)"})})]})]})}}],nc=({children:e})=>r.jsx(dt,{className:"mb-2 font-semibold",children:e});function UE(){const e=Ie($=>$.addTemplate),t=Ie($=>$.choosePreviewTemplate),n=Ie($=>$.removeTemplate),i=Ie($=>$.templates),o=Ie($=>$.previewTemplate),[a]=Da(o.id),s=uo(()=>`template-${Date.now()}`,[]),[l,c]=Da(`Header #${i.length+1}`),[d,u]=Da(""),[h,f]=Da(""),p=uo(()=>[{label:"Select header",value:""},...i.filter($=>$.id!==s).map($=>({label:$.id==="default"?"Default header":$.settings.name,value:$.id}))],[i]),g=$=>{typeof $!="number"&&c($)};WE(()=>()=>{j2()},[]);const m=du($=>i.find(O=>O.id===$)??window.brandyCustomizerData.defaults.header,[i]),w=du($=>window.brandyHeaderPresets[$],[]),E=()=>{Rt()},j=($,O)=>{let P=null,z=null;return $?P=m($):P=w(O),P!=null&&(z=JSON.parse(JSON.stringify(P)),z.id=s,z.settings.name=l),z},D=$=>{$.preventDefault();const O=j(h,d);if(O==null)return;const P=JSON.parse(JSON.stringify(O));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),E()},C=uo(()=>i.filter($=>$.settings.name===l||l==="Default header").length>1,[l,i]),S=uo(()=>l===""||d===""&&h===""||C,[h,d,l,C]),x=($,O)=>{const P=j($,O);if(P==null)return;const z=JSON.parse(JSON.stringify(P));n(s),e({...z,id:s,settings:{...z.settings,name:l}}),t(s),setTimeout(()=>{S2()},200)},y=$=>{$!==d&&(u($),x(h,$))},T=$=>{f($),$==""?x(h,d):(u(""),x($,d))},A=()=>{t(a),n(s),E()};return r.jsxs(el,{children:[r.jsx(Wn,{onGoBack:A,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(nc,{children:N("Header name")}),r.jsx(ot,{value:l,onChange:g,className:C?"!border-red-500 focus-within:!border-red-500":"",placeholder:N("Your header name")}),C&&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(ct,{options:p,onChange:T,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(nc,{children:N("Using header presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:GE.map($=>r.jsx(YE,{isActive:$.value===d,data:$,onSelect:()=>{y($.value)}},$.value))})]})]})}),r.jsx(XE,{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:D,disabled:S,children:N("Create header")})})]})}const YE=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=be(),o=uo(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(JE,{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(KE,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(qE,{$_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 XE=v("div")`${e=>e.$_css}`,JE=v("div")`${e=>e.$_css2}`,KE=v("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),qE=v("p").withConfig({displayName:"NewHeader___StyledP",componentId:"sc-6re12p-0"})(["",""],e=>e.$_css3);const QE=window.React,eD=window.React.memo,tD=window.React.useCallback,Ef=window.React.useContext,Df=window.React.useMemo,$f=QE.createContext({});function nD(){const{builder:e}=Ef(Ut),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=tD(()=>{Rt(),t()},[Rt,t]),a=Df(()=>({builder:e,goBack:o}),[e,o]);return r.jsxs($f.Provider,{value:a,children:[r.jsx(Wn,{onGoBack:o,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(oD,{children:[N("Customizing")," ▸ ",i]}),r.jsxs(aD,{children:[n," ",e]})]})}),r.jsx(iD,{})]})}function rD(){const{builder:e}=Ef($f),t=te(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=Xo(),o=Df(()=>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(s1,{children:o[i].sections.map((l,c)=>r.jsx(qo,{section:l,sectionKey:`${i}-${c}`,sectionId:`${t}_${e}`,settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const iD=eD(rD);var oD=v("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),aD=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 sD=window.React.useMemo,lD=window.React.useState,cD=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function dD(){const{current:e}=be(),t=te("footer")(c=>c.previewTemplate.placements[Ze(e)]),[n,i]=lD(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=U1(t,"footer"),l=sD(()=>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(Fr,{searchText:n,onSearch:o,placeholder:N("Search element")})}),r.jsx(O2,{children:r.jsx(Zo,{children:l.length<=0?r.jsx(cD,{}):r.jsx(kf,{items:l,builder:"footer",disabledItems:s})})})]})}const uD=window.React.useMemo;function hD(){const e=Me(i=>i.previewTemplate.settings),t=uD(()=>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(qo,{section:i,sectionKey:`footer-${o}`,sectionId:"footer",settings:e,onChange:n,builder:"footer"},`footer-${o}`))})}const fD=[{label:N("Elements"),key:"elements"},{label:N("Settings"),key:"settings"}];function pD(){const{contextHolder:e,currentTab:t}=Xo({items:fD}),n=Me(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{Rt()};return r.jsxs(el,{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(dD,{}):r.jsx(hD,{})]})}const uu=window.React.useCallback,gD=window.React.useEffect,ho=window.React.useMemo,$a=window.React.useState,mD=[{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)"})})})]})}}],rc=({children:e})=>r.jsx(dt,{className:"mb-2 font-semibold",children:e});function vD(){const e=Me($=>$.addTemplate),t=Me($=>$.choosePreviewTemplate),n=Me($=>$.removeTemplate),i=Me($=>$.templates),o=Me($=>$.previewTemplate),[a]=$a(o.id),s=ho(()=>`template-${Date.now()}`,[]),[l,c]=$a(`Footer #${i.length+1}`),[d,u]=$a(""),[h,f]=$a(""),p=ho(()=>[{label:"Select footer",value:""},...i.filter($=>$.id!==s).map($=>({label:$.id==="default"?"Default footer":$.settings.name,value:$.id}))],[i,s]),g=$=>{typeof $!="number"&&c($)};gD(()=>()=>{j2()},[]);const m=uu($=>i.find(O=>O.id===$)??window.brandyCustomizerData.defaults.footer,[i]),w=uu($=>window.brandyFooterPresets[$],[]),E=()=>{Rt()},j=($,O)=>{let P=null,z=null;return $?P=m($):P=w(O),P!=null&&(z=JSON.parse(JSON.stringify(P)),z.id=s,z.settings.name=l),z},D=$=>{$.preventDefault();const O=j(h,d);if(O==null)return;const P=JSON.parse(JSON.stringify(O));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),E()},C=ho(()=>i.filter($=>$.settings.name===l||l==="Default footer").length>1,[l,i]),S=ho(()=>l===""||d===""&&h===""||C,[h,d,l,C]),x=($,O)=>{const P=j($,O);if(P==null)return;const z=JSON.parse(JSON.stringify(P));n(s),e({...z,id:s,settings:{...z.settings,name:l}}),t(s),setTimeout(()=>{S2()},200)},y=$=>{$!==d&&(u($),x(h,$))},T=$=>{f($),$==""?x(h,d):(u(""),x($,d))},A=()=>{t(a),n(s),E()};return r.jsxs(el,{children:[r.jsx(Wn,{onGoBack:A,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(rc,{children:N("Footer name")}),r.jsx(ot,{value:l,onChange:g,className:C?"!border-red-500 focus-within:!border-red-500":"",placeholder:N("Your footer name")}),C&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:N("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(rc,{children:N("Copy elements & styles from")}),r.jsx(ct,{options:p,onChange:T,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(rc,{children:N("Using footer presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:mD.map($=>r.jsx(wD,{isActive:$.value===d,data:$,onSelect:()=>{y($.value)}},$.value))})]})]})}),r.jsx(xD,{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:D,disabled:S,children:N("Create footer")})})]})}const wD=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=be(),o=ho(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(bD,{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(yD,{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 xD=v("div")`${e=>e.$_css}`,bD=v("div")`${e=>e.$_css2}`,yD=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 _D=window.React,SD=window.React.memo,jD=window.React.useCallback,Hf=window.React.useContext,Mf=window.React.useMemo,If=_D.createContext({});function hu(){const{builder:e}=Hf(Ut),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=jD(()=>{Rt(),t()},[Rt,t]),o=Mf(()=>({builder:e,goBack:i}),[e,i]);return r.jsxs(If.Provider,{value:o,children:[r.jsx(Wn,{onGoBack:i,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(DD,{children:[N("Customizing")," ▸ ",n]}),r.jsx($D,{children:N("Toggle off canvas")})]})}),r.jsx(ED,{})]})}function kD(){const{builder:e}=Hf(If),t=te(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=Xo(),o=Mf(()=>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(s1,{children:o[i].sections.map((l,c)=>r.jsx(qo,{section:l,sectionKey:`${i}-${c}`,sectionId:"toggle_off_canvas",settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const ED=SD(kD);var DD=v("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),$D=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 Y1=v.div.withConfig({displayName:"Styleds__SettingLine",componentId:"sc-1ff79ea-0"})(["",""],{marginTop:"0.75rem"}),wr=window.React.useState,ic=[{label:N("Hidden"),value:"hidden"},{label:N("Optional"),value:"optional"},{label:N("Required"),value:"required"}],fu=Object.entries(window.brandyCustomizerData.pages).map(([e,t])=>({label:t.title,value:e})),HD=v(Y1)` ${{marginTop:"0px"}} `;function ii({title:e,description:t,children:n}){return r.jsxs(HD,{children:[r.jsx(ID,{children:e}),t&&r.jsx(TD,{children:t}),n]})}function MD(){const[e,t]=wr(()=>window.wp.customize("woocommerce_checkout_company_field")()),[n,i]=wr(()=>window.wp.customize("woocommerce_checkout_address_2_field")()),[o,a]=wr(()=>window.wp.customize("woocommerce_checkout_phone_field")()),[s,l]=wr(()=>window.wp.customize("woocommerce_checkout_highlight_required_fields")()),[c,d]=wr(()=>window.wp.customize("wp_page_for_privacy_policy")()),[u,h]=wr(()=>window.wp.customize("woocommerce_terms_page_id")()),[f,p]=wr(()=>window.wp.customize("woocommerce_checkout_privacy_policy_text")()),g=S=>{t(S),window.wp.customize("woocommerce_checkout_company_field")(S)},m=S=>{i(S),window.wp.customize("woocommerce_checkout_address_2_field")(S)},w=S=>{a(S),window.wp.customize("woocommerce_checkout_phone_field")(S)},E=S=>{const x=S.target.checked;l(x),window.wp.customize("woocommerce_checkout_highlight_required_fields")(x)},j=S=>{d(S),window.wp.customize("wp_page_for_privacy_policy")(S)},D=S=>{h(S),window.wp.customize("woocommerce_terms_page_id")(S)},C=S=>{const x=S.target.value;p(x),window.wp.customize("woocommerce_checkout_privacy_policy_text")(x)};return r.jsxs(LD,{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(ct,{options:ic,selected:e,onChange:g})}),r.jsx(ii,{title:N("Address line 2 field"),children:r.jsx(ct,{options:ic,selected:n,onChange:m})}),r.jsx(ii,{title:N("Phone field"),children:r.jsx(ct,{options:ic,selected:o,onChange:w})}),r.jsxs(AD,{children:[r.jsx(RD,{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(ct,{options:fu,selected:c,onChange:j})}),r.jsx(ii,{title:N("Terms and conditions page"),children:r.jsx(ct,{options:fu,selected:u,onChange:D})}),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(OD,{value:f,onChange:C,rows:4})})]})}var ID=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))"}),TD=v("div")({marginBottom:"0.5rem"}),LD=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"}),AD=v("div")({display:"flex",alignItems:"center",gap:"0.25rem"}),RD=v("input")({margin:"0px"}),OD=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,pu=[{label:N("Show products"),value:""},{label:N("Show categories"),value:"subcategories"},{label:N("Show categories & products"),value:"both"}],ND=[{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"}],PD=v(Y1)` ${{marginTop:"0px"}} `;function Ma({title:e,description:t="",children:n}){return r.jsxs(PD,{children:[r.jsx(BD,{children:e}),r.jsx(zD,{children:t}),n]})}function VD(){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 p={...s,product_thumb_size:f};l(p),window.wp.customize("wc_product_catalog")(p),window.jQuery(De("body")).css("--product-thumb-aspect-ratio",f=="size_1"?"3/4":"1")};return r.jsxs(FD,{children:[r.jsx(Ma,{title:N("Shop page display"),description:N("Choose what to display on the main shop page."),children:r.jsx(ct,{options:pu,selected:e,onChange:c})}),r.jsx(Ma,{title:N("Category display"),description:N("Choose what to display on product category pages."),children:r.jsx(ct,{options:pu,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(ct,{options:ND,selected:o,onChange:u})}),r.jsx(Ma,{title:N("Products thumb size"),children:r.jsx(Tt,{options:[{value:"size_1",label:N("Rectangular")},{value:"size_2",label:N("Square")}],selected:s.product_thumb_size??"size_1",onChange:h})})]})}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))"}),zD=v("div")({marginBottom:"0.5rem"}),FD=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 ZD=window.React.useState,WD=v(Y1)` ${{marginTop:"0px"}} `;function gu({title:e,description:t="",children:n}){return r.jsxs(WD,{children:[r.jsx(UD,{children:e}),r.jsx(YD,{children:t}),n]})}function GD(){const[e,t]=ZD(()=>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(XD,{children:[r.jsx(gu,{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(gu,{title:N("Product gallery thumb size"),children:[r.jsx(dn,{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(dn,{units:["px"],value:{value:e.product_gallery_thumb_image_height??100,unit:"px"},min:30,max:500,onChange:o,title:N("Thumb Height")})]})]})}var UD=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))"}),YD=v("div")({marginBottom:"0.5rem"}),XD=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 Ia=window.React.useState;function JD(){const[e,t]=Ia(()=>window.wp.customize("enable_product_image_hover_effect")()),[n,i]=Ia(()=>window.wp.customize("product_image_hover_effect")()),[o,a]=Ia(()=>window.wp.customize("enable_product_image_hover_zoom")()),[s,l]=Ia(()=>window.wp.customize("product_image_hover_scale")()??1.1),c=f=>{t(f),window.wp.customize("enable_product_image_hover_effect")(f)},d=f=>{i(f),window.wp.customize("product_image_hover_effect")(f)},u=f=>{a(f),window.wp.customize("enable_product_image_hover_zoom")(f)},h=f=>{l(f),window.wp.customize("product_image_hover_scale")(f)};return r.jsxs(KD,{children:[r.jsx("div",{children:N("These options let you change the general WooCommerce settings.")}),r.jsxs(qD,{children:[r.jsx(QD,{children:N("Product Image")}),r.jsxs(e$,{children:[r.jsx(t$,{htmlFor:"enable_product_image_hover_zoom",children:N("Zoom when hovering product card")}),r.jsx(ns,{checked:o,onChange:u})]}),o&&r.jsxs("div",{children:[r.jsx(n$,{htmlFor:"product_image_hover_scale",children:N("Hover scale")}),r.jsx(j1,{value:s,onChange:f=>h(f),min:1,max:1.4,step:.01})]}),r.jsxs(r$,{children:[r.jsx(i$,{htmlFor:"enable_product_image_hover_effect",children:N("Enable product image hover effect")}),r.jsx(ns,{checked:e,onChange:c})]}),e&&r.jsxs("div",{children:[r.jsx(o$,{htmlFor:"product_image_hover_effect",children:N("Hover effect")}),r.jsx(ct,{selected:n??"display-secondary-image",onChange:d,options:[{label:N("Display secondary image"),value:"display-secondary-image"},{label:N("Display slider"),value:"display-slider"}]})]})]})]})}var KD=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"}),qD=v("div")({display:"flex",flexDirection:"column",gap:"0.75rem"}),QD=v("label")({display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),e$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),t$=v("label")({display:"inline-block"}),n$=v("label")({marginBottom:"0.5rem",display:"inline-block"}),r$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),i$=v("label")({display:"inline-block"}),o$=v("label").withConfig({displayName:"General___StyledLabel5",componentId:"sc-htnm6n-0"})({marginBottom:"0.5rem",display:"inline-block"});const a$=window.React.useContext,s$=window.React.useEffect,mu=window.React.useMemo;function l$(){const{sectionId:e}=a$(Ut);s$(()=>{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_general"&&!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_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=mu(()=>{switch(e){case"wc_product_catalog":return VD;case"wc_single_product":return GD;case"wc_checkout":return MD;case"wc_general":return JD;default:return!1}},[e]),n=mu(()=>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:Rt}),r.jsx(c$,{children:r.jsx(t,{})})]})}var c$=v("div").withConfig({displayName:"Section___StyledDiv",componentId:"sc-gsppkr-0"})({marginTop:"1rem"});const d$=window.React.useEffect,u$=window.React.useState;function X1(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 Tf(e){const t=X1(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 h$(e,t=.15){const n=X1(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 f$(e,t=.15){const n=X1(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 vu(e){return Tf(e)>.5?"#000000":"#ffffff"}function p$(e){const t=Tf(e),n=e==="#000000"?"#2f2f2f":t<.2?f$(e,.1):h$(e,.12),i=vu(e),o=vu(n);return{mainColor:e,hoverColor:n,textColor:i,textHoverColor:o}}function g$(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 m$(){const[e,t]=u$(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}=p$(g$(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 d$(()=>{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(v$,{children:r.jsxs(w$,{children:[r.jsxs("div",{children:[r.jsx(x$,{children:N("Color Mode")}),r.jsx(Tt,{options:[{label:"Auto generate",value:"auto"},{label:"Custom",value:"custom"}],selected:e.mode??"auto",onChange:s=>i(s)})]}),r.jsxs(b$,{children:[r.jsx("label",{children:N("Primary Color")}),r.jsx(y$,{children:r.jsx(zt,{color:e.primaryColor,onChange:s=>(e.mode??"auto")==="auto"?n(s):o("primaryColor",s)})})]}),e.mode==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(C$,{children:[r.jsx("label",{children:N("Hover Background")}),r.jsx(zt,{color:e.primaryHoverColor,onChange:s=>{o("primaryHoverColor",s)}})]}),r.jsxs(_$,{children:[r.jsx("label",{children:N("Text")}),r.jsx(zt,{color:e.primaryTextColor,onChange:s=>{o("primaryTextColor",s)}})]}),r.jsxs(S$,{children:[r.jsx("label",{children:N("Hover Text")}),r.jsx(zt,{color:e.primaryHoverTextColor,onChange:s=>{o("primaryHoverTextColor",s)}})]})]}),r.jsx(j$,{primary:!0,type:"button",onClick:a,children:"Reset"})]})})}var v$=v("div")({display:"flex",flexDirection:"column"}),w$=v("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),x$=v("label")({marginBottom:"0.5rem",display:"inline-block"}),b$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),y$=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),C$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),_$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),S$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),j$=v(Fo).withConfig({displayName:"ButtonSettings___StyledButton",componentId:"sc-a0rhg7-0"})({width:"fit-content"});const k$=window.React.useState,$t=window.brandyCustomizerData.general.default_settings.input_settings;function E$(){var c,d,u,h,f,p,g,m,w,E,j,D,C,S,x,y,T,A;const[e,t]=k$(window.wp.customize("input_settings")()??$t),n=$=>O=>{const P=JSON.parse(JSON.stringify(e));St(P,["text_color",$],O),t(P),window.wp.customize("input_settings")(P);const z=De("body");window.jQuery(z).css(`--input-text-color-${$}`,O)},i=$=>O=>{const P=JSON.parse(JSON.stringify(e));St(P,["background_color",$],O),t(P),window.wp.customize("input_settings")(P);const z=De("body");window.jQuery(z).css(`--input-background-color-${$}`,O)},o=$=>O=>{const P=JSON.parse(JSON.stringify(e));St(P,["border","color",$],O),t(P),window.wp.customize("input_settings")(P);const z=De("body");window.jQuery(z).css(`--input-border-color-${$}`,O)},a=$=>{Ld(()=>{const O=JSON.parse(JSON.stringify(e));St(O,["border","width"],$),t(O),window.wp.customize("input_settings")(O);const P=De("body");window.jQuery(P).css("--input-border-width",Mr($))})},s=$=>{Ld(()=>{const O=JSON.parse(JSON.stringify(e));St(O,["border","radius"],$),t(O),window.wp.customize("input_settings")(O);const P=De("body");window.jQuery(P).css("--input-border-radius",Mr($))})},l=$=>{const O=JSON.parse(JSON.stringify(e));St(O,["padding"],$),t(O),window.wp.customize("input_settings")(O);const P=De("body");window.jQuery(P).css("--input-padding",R2($))};return r.jsxs(D$,{children:[r.jsxs($$,{children:[r.jsx("label",{children:N("Text color")}),r.jsxs(H$,{children:[r.jsx(rn,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(zt,{color:((c=e==null?void 0:e.text_color)==null?void 0:c.normal)??((d=$t.text_color)==null?void 0:d.normal),onChange:n("normal")})}),r.jsx(rn,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(zt,{color:((u=e==null?void 0:e.text_color)==null?void 0:u.hover)??((h=$t.text_color)==null?void 0:h.hover),onChange:n("hover")})})]})]}),r.jsxs(M$,{children:[r.jsx("label",{children:N("Background color")}),r.jsxs(I$,{children:[r.jsx(rn,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(zt,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((p=$t==null?void 0:$t.background_color)==null?void 0:p.normal),onChange:i("normal")})}),r.jsx(rn,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(zt,{color:((g=e==null?void 0:e.background_color)==null?void 0:g.hover)??((m=$t.background_color)==null?void 0:m.hover),onChange:i("hover")})})]})]}),r.jsxs(T$,{children:[r.jsx("label",{children:N("Border color")}),r.jsxs(L$,{children:[r.jsx(rn,{title:N("Normal"),style:{textTransform:"capitalize"},children:r.jsx(zt,{color:((E=(w=e==null?void 0:e.border)==null?void 0:w.color)==null?void 0:E.normal)??((D=(j=$t==null?void 0:$t.border)==null?void 0:j.color)==null?void 0:D.normal),onChange:o("normal")})}),r.jsx(rn,{title:N("Hover"),style:{textTransform:"capitalize"},children:r.jsx(zt,{color:((S=(C=e==null?void 0:e.border)==null?void 0:C.color)==null?void 0:S.hover)??((y=(x=$t.border)==null?void 0:x.color)==null?void 0:y.hover),onChange:o("hover")})})]})]}),r.jsx(dn,{title:N("Border width"),value:((T=e==null?void 0:e.border)==null?void 0:T.width)??$t.border.width,onChange:a}),r.jsx(dn,{title:N("Border radius"),value:((A=e==null?void 0:e.border)==null?void 0:A.radius)??$t.border.radius,onChange:s}),r.jsx(Oh,{title:N("Padding"),units:["px"],value:(e==null?void 0:e.padding)??$t.padding,onChange:l})]})}var D$=v("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),$$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),H$=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),M$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),I$=v("div")({display:"flex",alignItems:"center",gap:"1rem"}),T$=v("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),L$=v("div").withConfig({displayName:"InputSettings___StyledDiv7",componentId:"sc-1ocb9dp-0"})({display:"flex",alignItems:"center",gap:"1rem"});const A$=window.React.useContext,wu=window.React.useMemo;function R$(){const{sectionId:e}=A$(Ut),t=wu(()=>{switch(e){case"button_settings":return m$;case"input_settings":return E$;default:return null}},[e]),n=wu(()=>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:Rt}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const O$=window.React.createContext,xu=window.React.useMemo,el=v.div.withConfig({displayName:"BrandySection__StyledSectionWrapper",componentId:"sc-ywrqgm-0"})({height:"100%"}),Ut=O$({});function N$(e){const{sectionId:t,builder:n,clonedFromId:i}=e,o=xu(()=>({sectionId:t,builder:n}),[t,n]),a=xu(()=>t==="new_header"&&n==="header"?r.jsx(UE,{}):t==="new_footer"&&n==="footer"?r.jsx(vD,{}):t==="settings"&&n==="header"?r.jsx(ZE,{}):t==="settings"&&n==="footer"?r.jsx(pD,{}):t.endsWith("_header")&&n==="header"||t.endsWith("_footer")&&n==="footer"?r.jsx(nD,{}):t==="toggle_off_canvas"?r.jsx(hu,{}):t==="toggle"?r.jsx(hu,{}):n==="woocommerce-settings"?r.jsx(l$,{}):n==="general-settings"?r.jsx(R$,{}):r.jsx(Yy,{elementId:t,clonedFromId:i}),[t,n]);return r.jsx(Ut.Provider,{value:o,children:a})}const on=[],P$=(e,t)=>{if(t.endsWith("_header")&&e==="header"||t.endsWith("_footer")&&e==="footer"){B$(e,t);return}if(t==="toggle_off_canvas"){V$();return}z$(e,t)},V$=()=>{Ie.setState(e=>{e.chosenRow="toggle",e.chosenElement=null})},B$=(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})})},z$=(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)})},Lf=300,yn=(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(on==null?void 0:on.find(d=>d.dom.dataset.sectionId===t&&d.dom.dataset.builder===e))return;if(on.length>0&&on.forEach(d=>{let u=d.dom.cloneNode(!0);d.dom.replaceWith(u),d.root.unmount(),setTimeout(()=>{window.jQuery(u).remove(),on.shift()},Lf)}),i!=null){const d=bu(e,i);s==null||s.appendChild(d)}const c=bu(e,t);s==null||s.appendChild(c)};function bu(e,t){const n=document.createElement("div");n.className="customize-pane-child",n.dataset.sectionId=t,n.dataset.builder=e,P$(e,t);const i=Dr.createRoot(n);return on.push({root:i,dom:n}),i.render(r.jsx(N$,{builder:e,sectionId:t})),setTimeout(()=>{n.classList.add("current-panel")},100),n}const Rt=()=>{on.length>0&&on.forEach((e,t)=>{on.length>1&&t!=on.length-1||(e.dom.classList.add("section-close"),setTimeout(()=>{e.root.unmount(),e.dom.remove(),on.pop()},Lf))})},De=e=>{const t=g5();return t==null||t.contentDocument==null?[]:t.contentDocument.querySelectorAll(e)},wt=(e,t)=>e==="header"||e==="footer"?`[data-section-id="${e}"]`:`[data-section-id="${e}"][data-builder="${t}"]`;var Af=Symbol.for("immer-nothing"),yu=Symbol.for("immer-draftable"),Zt=Symbol.for("immer-state");function wn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Po=Object.getPrototypeOf;function $i(e){return!!e&&!!e[Zt]}function Lr(e){var t;return e?Rf(e)||Array.isArray(e)||!!e[yu]||!!((t=e.constructor)!=null&&t[yu])||Qo(e)||nl(e):!1}var F$=Object.prototype.constructor.toString(),Cu=new WeakMap;function Rf(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let i=Cu.get(n);return i===void 0&&(i=Function.toString.call(n),Cu.set(n,i)),i===F$}function fs(e,t,n=!0){tl(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function tl(e){const t=e[Zt];return t?t.type_:Array.isArray(e)?1:Qo(e)?2:nl(e)?3:0}function Bc(e,t){return tl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Of(e,t,n){const i=tl(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function Z$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Qo(e){return e instanceof Map}function nl(e){return e instanceof Set}function yr(e){return e.copy_||e.base_}function zc(e,t){if(Qo(e))return new Map(e);if(nl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Rf(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[Zt];let o=Reflect.ownKeys(i);for(let a=0;a1&&Object.defineProperties(e,{set:Ta,add:Ta,clear:Ta,delete:Ta}),Object.freeze(e),t&&Object.values(e).forEach(n=>J1(n,!0))),e}function W$(){wn(2)}var Ta={value:W$};function rl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var G$={};function Ar(e){const t=G$[e];return t||wn(0,e),t}var Vo;function Nf(){return Vo}function U$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _u(e,t){t&&(Ar("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fc(e){Zc(e),e.drafts_.forEach(Y$),e.drafts_=null}function Zc(e){e===Vo&&(Vo=e.parent_)}function Su(e){return Vo=U$(Vo,e)}function Y$(e){const t=e[Zt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ju(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Zt].modified_&&(Fc(t),wn(4)),Lr(e)&&(e=ps(t,e),t.parent_||gs(t,e)),t.patches_&&Ar("Patches").generateReplacementPatches_(n[Zt].base_,e,t.patches_,t.inversePatches_)):e=ps(t,n,[]),Fc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Af?e:void 0}function ps(e,t,n){if(rl(t))return t;const i=e.immer_.shouldUseStrictIteration(),o=t[Zt];if(!o)return fs(t,(a,s)=>ku(e,o,t,a,s,n),i),t;if(o.scope_!==e)return t;if(!o.modified_)return gs(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const a=o.copy_;let s=a,l=!1;o.type_===3&&(s=new Set(a),a.clear(),l=!0),fs(s,(c,d)=>ku(e,o,a,c,d,n,l),i),gs(e,a,!1),n&&e.patches_&&Ar("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function ku(e,t,n,i,o,a,s){if(o==null||typeof o!="object"&&!s)return;const l=rl(o);if(!(l&&!s)){if($i(o)){const c=a&&t&&t.type_!==3&&!Bc(t.assigned_,i)?a.concat(i):void 0,d=ps(e,o,c);if(Of(n,i,d),$i(d))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Lr(o)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[i]===o&&l)return;ps(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(Qo(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&gs(e,o)}}}function gs(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&J1(t,n)}function X$(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Nf(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=K1;n&&(o=[i],a=Bo);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var K1={get(e,t){if(t===Zt)return e;const n=yr(e);if(!Bc(n,t))return J$(e,n,t);const i=n[t];return e.finalized_||!Lr(i)?i:i===oc(e.base_,t)?(ac(e),e.copy_[t]=Gc(i,e)):i},has(e,t){return t in yr(e)},ownKeys(e){return Reflect.ownKeys(yr(e))},set(e,t,n){const i=Pf(yr(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=oc(yr(e),t),a=o==null?void 0:o[Zt];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Z$(n,o)&&(n!==void 0||Bc(e.base_,t)))return!0;ac(e),Wc(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 oc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ac(e),Wc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=yr(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){wn(11)},getPrototypeOf(e){return Po(e.base_)},setPrototypeOf(){wn(12)}},Bo={};fs(K1,(e,t)=>{Bo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bo.deleteProperty=function(e,t){return Bo.set.call(this,e,t,void 0)};Bo.set=function(e,t,n){return K1.set.call(this,e[0],t,n,e[0])};function oc(e,t){const n=e[Zt];return(n?yr(n):e)[t]}function J$(e,t,n){var o;const i=Pf(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function Pf(e,t){if(!(t in e))return;let n=Po(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Po(n)}}function Wc(e){e.modified_||(e.modified_=!0,e.parent_&&Wc(e.parent_))}function ac(e){e.copy_||(e.copy_=zc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var K$=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,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"&&wn(6),i!==void 0&&typeof i!="function"&&wn(7);let o;if(Lr(t)){const a=Su(this),s=Gc(t,void 0);let l=!0;try{o=n(s),l=!1}finally{l?Fc(a):Zc(a)}return _u(a,i),ju(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Af&&(o=void 0),this.autoFreeze_&&J1(o,!0),i){const a=[],s=[];Ar("Patches").generateReplacementPatches_(t,o,a,s),i(a,s)}return o}else wn(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),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Lr(e)||wn(8),$i(e)&&(e=q$(e));const t=Su(this),n=Gc(e,void 0);return n[Zt].isManual_=!0,Zc(t),n}finishDraft(e,t){const n=e&&e[Zt];(!n||!n.isManual_)&&wn(9);const{scope_:i}=n;return _u(i,t),ju(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}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=Ar("Patches").applyPatches_;return $i(e)?i(e,t):this.produce(e,o=>i(o,t))}};function Gc(e,t){const n=Qo(e)?Ar("MapSet").proxyMap_(e,t):nl(e)?Ar("MapSet").proxySet_(e,t):X$(e,t);return(t?t.scope_:Nf()).drafts_.push(n),n}function q$(e){return $i(e)||wn(10,e),Vf(e)}function Vf(e){if(!Lr(e)||rl(e))return e;const t=e[Zt];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zc(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=zc(e,!0);return fs(n,(o,a)=>{Of(n,o,Vf(a))},i),t&&(t.finalized_=!1),n}var Uc=new K$,Q$=Uc.produce,Bf=Uc.setAutoFreeze.bind(Uc);const eH=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 p=s(f);if(!u(h,p)){const g=h;l(h=p,g)}},c!=null&&c.fireImmediately&&l(h,h)}return o(d)},e(t,n,i)},zf=eH,tH=e=>(t,n,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?Q$(o):o;return t(l,a,...s)},e(i.setState,n,i)),Ff=tH;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}Bf(!1);let Me;const qn="footer";Hi.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=Ds(zf(Ff((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=>{y2({...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}),k1(h,u.placements[Ze(d)])||i()},removeElement:s=>{var l;C2({...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)&&Rt()},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}},sc=(e,t)=>{window.wp.customize(`${e}_settings`)!=null&&window.wp.customize(`${e}_settings`)(new Date().getTime())};class nH{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]||l.builders&&l.builders.includes(t)&&(i[a].elements[l.id]=l)})}),i}return[]}updateTemplates(t,n){const i=oi(t);sc(t,JSON.parse(JSON.stringify({...i,templates:n})))}updatePreviewTemplateId(t,n){const i=oi(t);sc(t,JSON.parse(JSON.stringify({...i,preview_template_id:n})))}updateCurrentTemplateId(t,n){const i=oi(t);sc(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 nH;Bf(!1);let Ie;const Nn="header";Hi.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=Ds(zf(Ff((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 p;(p=f.chosenElement)!=null&&p.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=>{y2({...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,p=JSON.parse(JSON.stringify(f.placements[Ze(h)]));c==="toggle"&&(p.toggle=u),c!=="toggle"&&d!=null&&(p[c][d]=u),s(g=>{g.previewTemplate.placements[Ze(h)]=p}),k1(p,f.placements[Ze(h)])||a()},removeElement:c=>{var d;C2({...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)&&Rt()},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 rH({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 iH({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 oH({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 ms={updateResponsiveControl(e,t){const i=(e==="header"?Ie:Me).getState().previewTemplate;rH({template:i,device:t,builder:e}),iH({template:i,device:t,builder:e}),oH({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()}},aH=()=>{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)}},sH=()=>{const e=document.querySelector("#customize-theme-controls");if(e){const t=document.createElement("div");t.id="brandy-section",e.appendChild(t)}},lH=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-header-placements",window.jQuery(t).insertAfter(e)}},cH=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-footer-placements",window.jQuery(t).insertAfter(e)}},dH=()=>{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)}},uH=()=>{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)}},hH=()=>{aH(),sH(),lH(),cH(),dH(),uH()};function Zf(){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 Wf(){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 fH=window.React.createContext,pH=window.React.useMemo;fH({});function gH(){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=pH(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),yn("header","new_header")},c=u=>{s===u?yn("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(vH,{children:[r.jsxs(wH,{children:[r.jsx(xH,{children:N("Global header")}),r.jsx(ct,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n}),r.jsx(bH,{href:"https://images.wpbrandy.com/uploads/select-header-instruction.png",target:"_blank",children:N("How to assign a header to a specific page?")})]}),r.jsx(yH,{children:N("Your headers")}),r.jsx(CH,{children:N("Choose to preview and click again to customize")}),r.jsx(_H,{children:e.map(u=>{var h;return r.jsx(mH,{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(SH,{children:r.jsx(Fo,{primary:!0,onClick:l,children:N("Create new header")})})]})}const mH=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>{const s=r.jsx(jH,{children:e});return r.jsxs(kH,{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(rn,{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(Wf,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Zf,{})})]})]},a)};var vH=v("div")({display:"flex",flexGrow:"1",flexDirection:"column"}),wH=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem"}),xH=v("p")({marginBottom:"0.25rem",fontWeight:"600"}),bH=v("a")({marginTop:"1rem",display:"inline-block"}),yH=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))"}),CH=v("div")({padding:"1rem",paddingBottom:"0px"}),_H=v("div")({display:"grid",gap:"1rem",padding:"1rem"}),SH=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)"}),jH=v("span")` overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; `,kH=v("div").withConfig({displayName:"Headers___StyledDiv7",componentId:"sc-1aiksvl-0"})(["",""],e=>e.$_css2);function EH(){return r.jsx(gH,{})}const DH=window.React.createContext,$H=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=$H(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),yn("footer","new_footer")},c=u=>{s===u?yn("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(IH,{children:[r.jsx(TH,{children:N("Global footer")}),r.jsx(ct,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(LH,{children:N("Your footers")}),r.jsx(AH,{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(MH,{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(RH,{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 MH=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>r.jsxs(OH,{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(Wf,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Zf,{})})]})]},a);var IH=v("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem"}),TH=v("p")({marginBottom:"0.25rem",fontWeight:"600"}),LH=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))"}),AH=v("div")({padding:"1rem",paddingBottom:"0px"}),RH=v("div")`${e=>e.$_css2}`,OH=v("div").withConfig({displayName:"Footers___StyledDiv5",componentId:"sc-1jo1m6-0"})(["",""],e=>e.$_css3);function NH(){return r.jsx(HH,{})}var Hu,Mu;const PH=((Mu=(Hu=window.brandyCustomizerData)==null?void 0:Hu.general)==null?void 0:Mu.sections)??[];function VH(){return r.jsx(BH,{className:"brandy-general-panel__content",children:r.jsx("div",{className:"general-settings__navigations",children:PH.map(e=>r.jsxs(zH,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),yn("general-settings",e.id)},children:[r.jsx(FH,{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(ZH,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var BH=v("div")({marginTop:"1rem"}),zH=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))"}}),FH=v("span")({fontWeight:"500"}),ZH=v("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1qa3lxj-0"})({".group:hover &":{fill:"#2271B1"}}),Iu,Tu;const WH=((Tu=(Iu=window.brandyCustomizerData)==null?void 0:Iu.woocommerce)==null?void 0:Tu.sections)??[];function GH(){return r.jsx(UH,{className:"brandy-woocommerce-panel__content",children:r.jsx("div",{className:"woocommerce-settings__navigations",children:WH.map(e=>r.jsxs(YH,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),yn("woocommerce-settings",e.id)},children:[r.jsx(XH,{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(JH,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var UH=v("div")({marginTop:"1rem"}),YH=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))"}}),XH=v("span")({fontWeight:"500"}),JH=v("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1n2dri3-0"})({".group:hover &":{fill:"#2271B1"}});const KH=window.React.useContext;function qH(){const{panelData:e}=KH(q1);return e.id==="header"?r.jsx(EH,{}):e.id==="footer"?r.jsx(NH,{}):e.id==="woocommerce-settings"?r.jsx(GH,{}):e.id==="general-settings"?r.jsx(VH,{}):"Not found"}const QH=window.React.useContext;function eM(){const{panelData:e,goBack:t}=QH(q1);return r.jsxs(tM,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(nM,{children:[r.jsx(rM,{children:N("Customizing")}),r.jsx(iM,{children:(e==null?void 0:e.title)??"Not found"})]})]})}var tM=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))"}),nM=v("div")({width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),rM=v("div")({fontSize:"13px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),iM=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 oM=window.React.createContext,aM=window.React.useCallback,Eu=window.React.useMemo,q1=oM({});function Gf({builder:e,title:t}){const n=aM(()=>{const a=window.wp.customize.panel(e);a&&a.expanded(!1)},[e]),i=Eu(()=>({id:e,title:t||(e==="header"?"Header":"Footer")}),[e,t]),o=Eu(()=>({goBack:n,panelData:i,builder:e}),[n,i,e]);return r.jsx(q1.Provider,{value:o,children:r.jsxs(sM,{className:"brandy-panel-wrapper",children:[r.jsx(eM,{}),r.jsx(qH,{})]})})}var sM=v("div").withConfig({displayName:"BrandyPanel___StyledDiv",componentId:"sc-1y7egfl-0"})({display:"flex",height:"100%",flexDirection:"column"});function Uf({items:e,builder:t,row:n,col:i=0}){const o=te(t)(g=>g.setElements),{current:a}=be(),s=te(t)(g=>g.removeElement),l=te(t)(g=>g.selectElement),c=te(t)(g=>{var m;return(m=g.chosenElement)==null?void 0:m.id}),d=No(g=>g.startDragging),u=No(g=>g.stopDragging),h=g=>{o({row:n,col:i,changedList:g.map(m=>m.id),device:a})},f=g=>m=>{m.preventDefault(),m.stopPropagation(),s({row:n,col:i,removeId:g,device:a})},p=g=>m=>{m.preventDefault(),m.stopPropagation(),setTimeout(()=>{l({element:g})},200),yn(t,g.id,g.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(g=>{var m;return r.jsxs(lM,{className:"builder-item",onClick:p(g),$_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===g.id&&{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))",outlineColor:"#1E1E1E"}],children:[r.jsx("span",{children:g.title??((m=window.brandyElements[g.id])==null?void 0:m.title)??""}),r.jsx(cM,{onClick:f(g.id),children:r.jsx(y1,{})})]},g.id)})})}var lM=v("span")`${e=>e.$_css}`,cM=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 dM=window.React,Yc=window.React.useEffect,uM=window.React.useMemo,Yf=window.React.useRef,Xf=window.React.useState,hM=v.div.withConfig({displayName:"useAddElementPopup__StyledListItem",componentId:"sc-hvpjws-0"})({display:"grid",gridAutoRows:"minmax(0, 1fr)",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"5px"}),fM=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 pM=v(fM).withConfig({displayName:"useAddElementPopup___StyledStyledItem",componentId:"sc-hvpjws-2"})(["",""],e=>e.$_css5);const gM=()=>r.jsx("div",{className:"text-brandy-text text-center",children:"No element found"}),mM=dM.forwardRef(({builder:e="header",onClose:t,row:n,col:i,lastPush:o=!0},a)=>{const{current:s}=be(),l=te(e)(w=>w.previewTemplate.placements[Ze(s)]),c=te(e)(w=>w.addElement),[d,u]=Xf(""),h=w=>()=>{c({row:n,col:i,lastPush:o,addId:w,device:s}),t()},f=w=>{typeof w!="number"&&u(w)},{unusedElements:p}=U1(l,e),g=uM(()=>d===""?p:p.filter(w=>{var E;return(w.title??((E=window.brandyElements[w.id])==null?void 0:E.title)??"").toLowerCase().includes(d.toLowerCase())}),[l,d,p]),m=Yf(null);return Yc(()=>{var w,E;(E=(w=m.current)==null?void 0:w.querySelector("input"))==null||E.focus()},[m]),r.jsx(vM,{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(wM,{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(xM,{children:[r.jsxs(bM,{children:[r.jsx(yM,{children:N("Add an element")}),r.jsx(CM,{onClick:t,$_css4:[{cursor:"pointer",padding:"7px","& svg":{height:"12px",width:"12px"}},ue` svg * { ${{fill:"#A1ABB7"}} } `],children:r.jsx(y1,{})})]}),r.jsx(_M,{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:g.length<=0?r.jsx(gM,{}):r.jsx(hM,{children:g.map(w=>{var j,D;const E=w.icon??((j=window.brandyElements[w.id])==null?void 0:j.icon)??"";return r.jsxs(pM,{onClick:h(w.id),$_css5:[ue` &:hover svg { *[fill] { ${{fill:"#2271B1"}} } *[stroke] { ${{stroke:"#2271B1"}} } } `],children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:E}}),w.title??((D=window.brandyElements[w.id])==null?void 0:D.title)]},w.id)})})})})]})})});function Jf({activatorNode:e=null,builder:t="header",col:n=1,row:i="top",lastPush:o=!0}){const a=Yf(null),[s,l]=Xf(!1);Yc(()=>{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 Yc(()=>{const h=f=>{e==null&&a.current==null&&c();const p=e??a.current;p!=null&&p.contains(f.target)||c()};return window.jQuery(document).on("click","body",h),()=>{window.jQuery(document).off("click","body",h)}},[e]),{contextHolder:s?r.jsx(mM,{ref:a,builder:t,row:i,col:n,onClose:()=>{c()},lastPush:o}):!1,popupApi:{open:d,close:c}}}var vM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv",componentId:"sc-hvpjws-3"})(["",""],e=>e.$_css2),wM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv2",componentId:"sc-hvpjws-4"})(["",""],e=>e.$_css3),xM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv3",componentId:"sc-hvpjws-5"})({borderBottomWidth:"1px",borderColor:"#dddddd4d",padding:"1rem"}),bM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv4",componentId:"sc-hvpjws-6"})({marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),yM=v("h4").withConfig({displayName:"useAddElementPopup___StyledH",componentId:"sc-hvpjws-7"})({fontSize:"16px",fontWeight:"500"}),CM=v("div").withConfig({displayName:"useAddElementPopup___StyledDiv5",componentId:"sc-hvpjws-8"})(["",""],e=>e.$_css4),_M=v(Fr).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 SM=window.React.useContext,jM=window.React.useMemo,kM=window.React.useRef,EM=window.React.useState,DM=ue([".add-icon{transition:all ease-in-out 0.2s;}&:hover{.add-icon{visibility:visible;opacity:1;}}"]);function $M({row:e,colPosition:t,elements:n,position:i},o){const[a,s]=EM(!1),l=No(p=>p.isDragging),c=kM(null),{builder:d}=SM(Q1),u=jM(()=>!l&&a,[l,a]),{popupApi:h,contextHolder:f}=Jf({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(Uf,{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 MM=window.React.useContext,IM=window.React.useMemo,Kf=ue` ${{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}} `,TM=v.div.withConfig({displayName:"RowPlacement__StyledRowWrapper",componentId:"sc-1g1fjfw-0"})(()=>[{display:"flex",minHeight:"50px",cursor:"pointer",borderRadius:"0.375rem"},Kf,{"&: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 LM=v(TM).withConfig({displayName:"RowPlacement___StyledStyledRowWrapper",componentId:"sc-1g1fjfw-1"})(["position:relative;",""],e=>e.$_css2);function lc({row:e}){const{builder:t}=MM(Q1),n=te(t)(c=>c.chosenRow),i=()=>{yn(t,`${e}_${t}`,null,"settings")},{current:o}=be(),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=IM(()=>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(LM,{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(AM,{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"}},Kf],children:r.jsx(ph,{})}),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($M,{row:e,colPosition:d,position:h,elements:c},d)})})]})}var AM=v("button").withConfig({displayName:"RowPlacement___StyledButton",componentId:"sc-1g1fjfw-2"})(["",""],e=>e.$_css3);const RM=window.React.useMemo,OM=window.React.useRef,NM=window.React.useState;function PM(){const{current:e}=be(),t=te("header")(h=>h.previewTemplate.placements[Ze(e)].toggle.map(f=>h.previewTemplate.elements[f])),n=te("header")(h=>h.chosenRow),i=OM(null),{contextHolder:o,popupApi:a}=Jf({activatorNode:i.current,row:"toggle",builder:"header",col:1}),[s,l]=NM(!1),{isDragging:c}=No(),d=RM(()=>!c&&s,[c,s]),u=()=>{yn("header","toggle_off_canvas",null,"settings")};return r.jsxs(VM,{className:"group",children:[r.jsxs(BM,{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(ph,{})}),r.jsx(zM,{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(FM,{className:ke(["toggle-off-elements",d?"show-add-btn":""]),ref:i,children:r.jsx(Uf,{builder:"header",items:t||[],row:"toggle"})})}),o]})}var VM=v("div")({position:"relative",display:"flex",height:"100%",cursor:"pointer",flexDirection:"column"}),BM=v("div")`${e=>e.$_css2}`,zM=v("span")({fontSize:"12px",fontWeight:"600"}),FM=v("div").withConfig({displayName:"Toggle___StyledDiv3",componentId:"sc-15k3s0k-0"})({position:"relative",height:"100%",minHeight:"100px",padding:"10px"});const ZM=window.React.createContext,WM=window.React.useMemo,Q1=ZM({});function GM({builder:e}){const{current:t}=be(),n=te(e)(o=>{const s=o.previewTemplate.placements[Ze(t)];return!!_2(s).includes("toggle_button")}),i=WM(()=>({builder:e}),[e]);return r.jsx(UM,{$_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(Q1.Provider,{value:i,children:[n&&r.jsx(YM,{children:r.jsx(PM,{})}),r.jsxs(XM,{children:[r.jsx(lc,{row:"top"}),r.jsx(lc,{row:"middle"}),r.jsx(lc,{row:"bottom"})]})]})})}var UM=v("div")`${e=>e.$_css}`,YM=v("div")({height:"100%",width:"170px"}),XM=v("div").withConfig({displayName:"PlacementsBuilder___StyledDiv3",componentId:"sc-1m09crd-0"})({display:"flex",flex:"1 1 auto",flexDirection:"column",gap:"1rem"}),JM=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=Du[t.format]||Du.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=QM("message"in t?t.message:qM),window.prompt(i,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var tI=eI;const nI=Wt(tI);const qf=window.React.useState,rI=window.ReactDOM.createPortal,iI=window.brandyCustomizerData.content_variables??{};function oI(){const[e,t]=qf(!1);return r.jsxs(sI,{onClick:()=>{t(n=>!n)},children:[r.jsx("span",{children:"Variables selection"}),e&&rI(r.jsx(aI,{onClose:()=>{t(!1)}}),document.querySelector("body"))]})}let $u;function aI({onClose:e}){const[t,n]=qf(!1);return r.jsxs(lI,{className:"variable-modal",onClick:i=>{i.stopPropagation()},children:[r.jsxs(cI,{children:[r.jsx(dI,{children:N("Click to copy and paste to use in some input settings")}),r.jsx(uI,{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(hI,{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(fI,{children:Object.entries(iI).map(([i,o],a)=>r.jsxs(pI,{onClick:()=>{nI(`[${i}]`),clearTimeout($u),n(a),$u=setTimeout(()=>{n(!1)},2e3)},children:[r.jsxs(gI,{children:["[",i,"]",t===a&&r.jsx(mI,{children:N("Copied")})]}),r.jsx(vI,{dangerouslySetInnerHTML:{__html:o}})]},a))})]})}var sI=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))"}}),lI=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)"}),cI=v("div")({marginBottom:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),dI=v("p")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),uI=v("span")({cursor:"pointer",padding:"0.25rem"}),hI=v("path")({".group:hover &":{fill:"#000"}}),fI=v("div")({display:"flex",maxHeight:"400px",flexDirection:"column",overflow:"auto"}),pI=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))"}}),gI=v("span")({fontWeight:"600"}),mI=v("span")({fontSize:"12px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(20 134 92 / var(--tw-text-opacity, 1))"}),vI=v("span").withConfig({displayName:"StringVariablesSelection___StyledSpan4",componentId:"sc-u8jk1j-0"})({borderLeftWidth:"1px"});const wI=(e="header")=>{let t=null;Hi.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=Dr.createRoot(a),t.render(r.jsx(GM,{builder:e}))),o===!1&&(i.classList.remove("with-opened-placements"),a.classList.remove("opened"),setTimeout(()=>{t&&(t.unmount(),t=null)},200)))})})},xI=(e="header")=>{let t=null;Hi.panel(e,function(n){const i=document.querySelector(`#sub-accordion-panel-${e}`);i!=null&&n.expanded.bind(function(o){const a=ms.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=Dr.createRoot(i),t.render(r.jsx(Gf,{builder:e,children:void 0}))),o===!1&&setTimeout(()=>{t!=null&&(t.unmount(),t=null)},500)})})},bI=(e,t)=>{let n=null;const i=e;Hi.panel(i,function(o){const a=document.querySelector(`#sub-accordion-panel-${i}`);a!=null&&o.expanded.bind(function(s){s&&n==null&&(n=Dr.createRoot(a),n.render(r.jsx(Gf,{builder:i,title:t,children:void 0}))),s===!1&&setTimeout(()=>{n!=null&&(n.unmount(),n=null)},500)})})},yI=()=>{let e=null;if(document.getElementById("customize-preview")==null)return;const n=document.getElementById("brandy-string-variables");n!=null&&(e=Dr.createRoot(n),e.render(r.jsx(oI,{})))};document.addEventListener("DOMContentLoaded",function(){hH(),["header","footer"].forEach(t=>{wI(t),xI(t)}),(window.brandyCustomizerData.extra_panels??[]).forEach(t=>{bI(t.id,t.title)}),yI()});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?yn(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=ms.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&&yn(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){b2.setState(()=>({current:e})),ms.updateResponsiveControl("header",e),ms.updateResponsiveControl("footer",e)})})});