var Tp=Object.defineProperty;var Lp=(e,t,n)=>t in e?Tp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gd=(e,t,n)=>(Lp(e,typeof t!="symbol"?t+"":t,n),n);/* empty css */const Ai=window.wp.customize;var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nu(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 Bu={exports:{}},Cs={};/** * @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 Ap=window.React,Rp=Symbol.for("react.element"),Np=Symbol.for("react.fragment"),Bp=Object.prototype.hasOwnProperty,Op=Ap.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Pp={key:!0,ref:!0,__self:!0,__source:!0};function Ou(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)Bp.call(t,i)&&!Pp.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:Rp,type:e,key:a,ref:s,props:o,_owner:Op.current}}Cs.Fragment=Np;Cs.jsx=Ou;Cs.jsxs=Ou;Bu.exports=Cs;var r=Bu.exports,Ar={},md=window.ReactDOM;Ar.createRoot=md.createRoot,Ar.hydrateRoot=md.hydrateRoot;var Pt=function(){return Pt=Object.assign||function(t){for(var n,i=1,o=arguments.length;i0?mt(Ri,--fn):0,wi--,ft===10&&(wi=1,Ss--),ft}function kn(){return ft=fn2||yc(ft)>3?"":" "}function Xp(e,t){for(;--t&&kn()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return ks(e,Va()+(t<6&&Hr()==32&&kn()==32))}function Cc(e){for(;kn();)switch(ft){case e:return fn;case 34:case 39:e!==34&&e!==39&&Cc(ft);break;case 40:e===41&&Cc(e);break;case 92:kn();break}return fn}function Qp(e,t){for(;kn()&&e+ft!==47+10;)if(e+ft===42+42&&Hr()===47)break;return"/*"+ks(t,fn-1)+"*"+i1(e===47?e:kn())}function qp(e){for(;!yc(Hr());)kn();return ks(e,fn)}function Kp(e){return Yp(za("",null,null,null,[""],e=Up(e),0,[0],e))}function za(e,t,n,i,o,a,s,l,c){for(var d=0,u=0,h=s,f=0,p=0,g=0,v=1,w=1,k=1,$=0,D="",_=o,H=a,x=i,y=D;w;)switch(g=$,$=kn()){case 40:if(g!=108&&mt(y,h-1)==58){Pa(y+=Se(vl($),"&","&\f"),"&\f",zu(d?l[d-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:y+=vl($);break;case 9:case 10:case 13:case 32:y+=Jp(g);break;case 92:y+=Xp(Va()-1,7);continue;case 47:switch(Hr()){case 42:case 47:lo(eg(Qp(kn(),Va()),t,n,c),c);break;default:y+="/"}break;case 123*v:l[d++]=Mn(y)*k;case 125*v:case 59:case 0:switch($){case 0:case 125:w=0;case 59+u:k==-1&&(y=Se(y,/\f/g,"")),p>0&&Mn(y)-h&&lo(p>32?xd(y+";",i,n,h-1,c):xd(Se(y," ","")+";",i,n,h-2,c),c);break;case 59:y+=";";default:if(lo(x=wd(y,t,n,d,u,o,l,D,_=[],H=[],h,a),a),$===123)if(u===0)za(y,t,x,x,_,a,h,l,H);else switch(f===99&&mt(y,3)===110?100:f){case 100:case 108:case 109:case 115:za(e,x,x,i&&lo(wd(e,x,x,0,0,o,l,D,o,_=[],h,H),H),o,H,h,l,i?_:H);break;default:za(y,x,x,x,[""],H,0,l,H)}}d=u=p=0,v=k=1,D=y="",h=s;break;case 58:h=1+Mn(y),p=g;default:if(v<1){if($==123)--v;else if($==125&&v++==0&&Gp()==125)continue}switch(y+=i1($),$*v){case 38:k=u>0?1:(y+="\f",-1);break;case 44:l[d++]=(Mn(y)-1)*k,k=1;break;case 64:Hr()===45&&(y+=vl(kn())),f=Hr(),u=h=Mn(D=y+=qp(Va())),$++;break;case 45:g===45&&Mn(y)==2&&(v=0)}}return a}function wd(e,t,n,i,o,a,s,l,c,d,u,h){for(var f=o-1,p=o===0?a:[""],g=Zu(p),v=0,w=0,k=0;v0?p[$]+" "+D:Se(D,/&\f/g,p[$])))&&(c[k++]=_);return js(e,t,n,o===0?_s:l,c,d,u,h)}function eg(e,t,n,i){return js(e,t,n,Pu,i1(Wp()),vi(e,2,-2),0,i)}function xd(e,t,n,i,o){return js(e,t,n,r1,vi(e,0,i),vi(e,i+1,-1),i,o)}function Gu(e,t,n){switch(Fp(e,t)){case 5103:return Re+"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 Re+e+e;case 4789:return wo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+wo+e+Ue+e+e;case 5936:switch(mt(e,t+11)){case 114:return Re+e+Ue+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ue+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ue+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Re+e+Ue+e+e;case 6165:return Re+e+Ue+"flex-"+e+e;case 5187:return Re+e+Se(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return Re+e+Ue+"flex-item-"+Se(e,/flex-|-self/g,"")+(Zn(e,/flex-|baseline/)?"":Ue+"grid-row-"+Se(e,/flex-|-self/g,""))+e;case 4675:return Re+e+Ue+"flex-line-pack"+Se(e,/align-content|flex-|-self/g,"")+e;case 5548:return Re+e+Ue+Se(e,"shrink","negative")+e;case 5292:return Re+e+Ue+Se(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+Se(e,"-grow","")+Re+e+Ue+Se(e,"grow","positive")+e;case 4554:return Re+Se(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return Se(Se(Se(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return Se(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return Se(Se(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4200:if(!Zn(e,/flex-|baseline/))return Ue+"grid-column-align"+vi(e,t)+e;break;case 2592:case 3360:return Ue+Se(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Zn(i.props,/grid-\w+-end/)})?~Pa(e+(n=n[t].value),"span",0)?e:Ue+Se(e,"-start","")+e+Ue+"grid-row-span:"+(~Pa(n,"span",0)?Zn(n,/\d+/):+Zn(n,/\d+/)-+Zn(e,/\d+/))+";":Ue+Se(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Zn(i.props,/grid-\w+-start/)})?e:Ue+Se(Se(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Se(e,/(.+)-inline(.+)/,Re+"$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(Mn(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return Se(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+wo+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pa(e,"stretch",0)?Gu(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 Ue+o+":"+a+d+(s?Ue+o+"-span:"+(l?c:+c-+a)+d:"")+e});case 4949:if(mt(e,t+6)===121)return Se(e,":",":"+Re)+e;break;case 6444:switch(mt(e,mt(e,14)===45?18:11)){case 120:return Se(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Re+(mt(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ue+"$2box$3")+e;case 100:return Se(e,":",":"+Ue)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Se(e,"scroll-","scroll-snap-")+e}return e}function ns(e,t){for(var n="",i=0;i-1&&!e.return)switch(e.type){case r1:e.return=Gu(e.value,e.length,n);return;case Vu:return ns([rr(e,{value:Se(e.value,"@","@"+Re)})],i);case _s:if(e.length)return Zp(n=e.props,function(o){switch(Zn(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ei(rr(e,{props:[Se(o,/:(read-\w+)/,":"+wo+"$1")]})),ei(rr(e,{props:[o]})),bc(e,{props:vd(n,i)});break;case"::placeholder":ei(rr(e,{props:[Se(o,/:(plac\w+)/,":"+Re+"input-$1")]})),ei(rr(e,{props:[Se(o,/:(plac\w+)/,":"+wo+"$1")]})),ei(rr(e,{props:[Se(o,/:(plac\w+)/,Ue+"input-$1")]})),ei(rr(e,{props:[o]})),bc(e,{props:vd(n,i)});break}return""})}}var og={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 To=window.React;window.React.useRef;window.React.useState;window.React.useMemo;window.React.useEffect;const ag=window.React.useContext;window.React.useDebugValue;const sg=window.React.createElement;var xi=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Uu="active",Yu="data-styled-version",Ds="6.1.13",o1=`/*!sc*/ `,rs=typeof window<"u"&&"HTMLElement"in window,lg=!!(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([]),bi=Object.freeze({});function cg(e,t,n){return n===void 0&&(n=bi),e.theme!==n.theme&&e.theme||t||n.theme}var Ju=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"]),dg=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ug=/(^-|-$)/g;function bd(e){return e.replace(dg,"-").replace(ug,"")}var hg=/(a)(d)/gi,ya=52,yd=function(e){return String.fromCharCode(e+(e>25?39:97))};function _c(e){var t,n="";for(t=Math.abs(e);t>ya;t=t/ya|0)n=yd(t%ya)+n;return(yd(t%ya)+n).replace(hg,"$1-$2")}var wl,Xu=5381,di=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Qu=function(e){return di(Xu,e)};function fg(e){return _c(Qu(e)>>>0)}function pg(e){return e.displayName||e.name||"Component"}function xl(e){return typeof e=="string"&&!0}var qu=typeof Symbol=="function"&&Symbol.for,Ku=qu?Symbol.for("react.memo"):60115,gg=qu?Symbol.for("react.forward_ref"):60112,mg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},e2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wg=((wl={})[gg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wl[Ku]=e2,wl);function Cd(e){return("type"in(t=e)&&t.type.$$typeof)===Ku?e2:"$$typeof"in e?wg[e.$$typeof]:mg;var t}var xg=Object.defineProperty,bg=Object.getOwnPropertyNames,_d=Object.getOwnPropertySymbols,yg=Object.getOwnPropertyDescriptor,Cg=Object.getPrototypeOf,Sd=Object.prototype;function t2(e,t,n){if(typeof t!="string"){if(Sd){var i=Cg(t);i&&i!==Sd&&t2(e,i,n)}var o=bg(t);_d&&(o=o.concat(_d(t)));for(var a=Cd(e),s=Cd(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var _g=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 Yo(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(k,","))}),c+="".concat(g).concat(v,'{content:"').concat(w,'"}').concat(o1)},u=0;u0?".".concat(t):f},u=c.slice();u.push(function(f){f.type===_s&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Lg,n).replace(i,d))}),s.prefix&&u.push(ig),u.push(tg);var h=function(f,p,g,v){p===void 0&&(p=""),g===void 0&&(g=""),v===void 0&&(v="&"),t=v,n=p,i=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(Ag,""),k=Kp(g||p?"".concat(g," ").concat(p," { ").concat(w," }"):w);s.namespace&&(k=i2(k,s.namespace));var $=[];return ns(k,ng(u.concat(rg(function(D){return $.push(D)})))),$};return h.hash=c.length?c.reduce(function(f,p){return p.name||Yo(15),di(f,p.name)},Xu).toString():"",h}var Ng=new r2,jc=Rg(),o2=To.createContext({shouldForwardProp:void 0,styleSheet:Ng,stylis:jc});o2.Consumer;To.createContext(void 0);function $d(){return ag(o2)}var Bg=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=jc);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,s1(this,function(){throw Yo(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=jc),this.name+t.hash},e}(),Og=function(e){return e>="A"&&e<="Z"};function Ed(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=Er(o,s),this.staticRulesId=s}else{for(var c=di(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=Er(o,p)}}return o},e}(),l2=To.createContext(void 0);l2.Consumer;var bl={};function Fg(e,t,n){var i=a1(e),o=e,a=!xl(e),s=t.attrs,l=s===void 0?$s:s,c=t.componentId,d=c===void 0?function(_,H){var x=typeof _!="string"?"sc":bd(_);bl[x]=(bl[x]||0)+1;var y="".concat(x,"-").concat(fg(Ds+x+bl[x]));return H?"".concat(H,"-").concat(y):y}(t.displayName,t.parentComponentId):c,u=t.displayName,h=u===void 0?function(_){return xl(_)?"styled.".concat(_):"Styled(".concat(pg(_),")")}(e):u,f=t.displayName&&t.componentId?"".concat(bd(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 v=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;g=function(_,H){return v(_,H)&&w(_,H)}}else g=v}var k=new zg(n,f,i?o.componentStyle:void 0);function $(_,H){return function(x,y,N){var O=x.attrs,S=x.componentStyle,A=x.defaultProps,E=x.foldedComponentIds,P=x.styledComponentId,z=x.target,M=To.useContext(l2),V=$d(),R=x.shouldForwardProp||V.shouldForwardProp,Z=cg(y,M,A)||bi,L=function(F,ee,ue){for(var re,te=Pt(Pt({},ee),{className:void 0,theme:ue}),be=0;be-1}function y3(e,t){var n=this.__data__,i=Hs(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ni.prototype.clear=v3;Ni.prototype.delete=w3;Ni.prototype.get=x3;Ni.prototype.has=b3;Ni.prototype.set=y3;function zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&ew2(e)&&"desktop"in e,Rd=(e,t)=>{const n={};return Ne(n,e,t),n},Nd=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},G3=e=>e?Nd(e):Nd;var x2={exports:{}},b2={},y2={exports:{}},C2={};/** * @license React * use-sync-external-store-shim.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 _i=window.React;function U3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Y3=typeof Object.is=="function"?Object.is:U3,J3=_i.useState,X3=_i.useEffect,Q3=_i.useLayoutEffect,q3=_i.useDebugValue;function K3(e,t){var n=t(),i=J3({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return Q3(function(){o.value=n,o.getSnapshot=t,Cl(o)&&a({inst:o})},[e,n,t]),X3(function(){return Cl(o)&&a({inst:o}),e(function(){Cl(o)&&a({inst:o})})},[e]),q3(n),n}function Cl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Y3(e,n)}catch{return!0}}function e5(e,t){return t()}var t5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?e5:K3;C2.useSyncExternalStore=_i.useSyncExternalStore!==void 0?_i.useSyncExternalStore:t5;y2.exports=C2;var n5=y2.exports;/** * @license React * use-sync-external-store-shim/with-selector.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 Is=window.React,r5=n5;function i5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var o5=typeof Object.is=="function"?Object.is:i5,a5=r5.useSyncExternalStore,s5=Is.useRef,l5=Is.useEffect,c5=Is.useMemo,d5=Is.useDebugValue;b2.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var a=s5(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=c5(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,o5(u,p))return g;var v=i(p);return o!==void 0&&o(g,v)?g:(u=p,h=v)}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=a5(e,a[0],a[1]);return l5(function(){s.hasValue=!0,s.value=l},[l]),d5(l),l};x2.exports=b2;var u5=x2.exports;const h5=Qt(u5),f5=window.React,{useDebugValue:p5}=f5,{useSyncExternalStoreWithSelector:g5}=h5;const m5=e=>e;function v5(e,t=m5,n){const i=g5(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return p5(i),i}const Bd=e=>{const t=typeof e=="function"?G3(e):e,n=(i,o)=>v5(t,i,o);return Object.assign(n,t),n},Ts=e=>e?Bd(e):Bd,u1=Ts()(e=>({current:"desktop",changeCurrent:t=>{e(()=>({current:t}))}})),w5=window.React.useEffect;function ye(){const{current:e}=u1();return w5(()=>{},[]),{current:e,changeDevice:n=>{Ai.previewedDevice(n)}}}function _2({template:e,row:t,col:n=null,addId:i,lastPush:o=!0,device:a="desktop"}){return new Promise(s=>{const l=e.placements[Je(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 S2({template:e,row:t,col:n,removeId:i,device:o="desktop"}){return new Promise(a=>{const s=e.placements[Je(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 x5=e=>e==="header",Je=(e="desktop")=>e==="tablet"?"mobile":e,j2=(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)]},je=(e,t)=>{if(Ci(e)){const n=e.desktop;return t==="mobile"?e.mobile??e.tablet??n:e[t]??n}return e},b5=()=>document.querySelector("#customize-preview iframe"),Ro=(e,t=0)=>{setTimeout(()=>{e()},t)},k2=()=>{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")},D2=()=>{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")},Ls=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 y5="Expected a function",$2="__lodash_hash_undefined__",E2=1/0,C5="[object Function]",_5="[object GeneratorFunction]",S5="[object Symbol]",j5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k5=/^\w*$/,D5=/^\./,$5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E5=/[\\^$.*+?()[\]{}|]/g,H5=/\\(\\)?/g,M5=/^\[object .+?Constructor\]$/,I5=typeof ot=="object"&&ot&&ot.Object===Object&&ot,T5=typeof self=="object"&&self&&self.Object===Object&&self,h1=I5||T5||Function("return this")();function L5(e,t){return e==null?void 0:e[t]}function A5(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var R5=Array.prototype,N5=Function.prototype,H2=Object.prototype,_l=h1["__core-js_shared__"],Od=function(){var e=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M2=N5.toString,f1=H2.hasOwnProperty,I2=H2.toString,B5=RegExp("^"+M2.call(f1).replace(E5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pd=h1.Symbol,O5=R5.splice,P5=T2(h1,"Map"),No=T2(Object,"create"),Vd=Pd?Pd.prototype:void 0,zd=Vd?Vd.toString:void 0;function Nr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function X5(e,t){var n=this.__data__,i=As(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Bi.prototype.clear=G5;Bi.prototype.delete=U5;Bi.prototype.get=Y5;Bi.prototype.has=J5;Bi.prototype.set=X5;function Fr(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(me(t,d.value_path)===void 0)return;let u=me(t,d.value_path);const h=me(t,d.value_path.map(g=>g==="mobile"||g==="tablet"?"desktop":g)),f=me(t,d.value_path.map(g=>g==="mobile"?"tablet":g));u==null&&(u=f??u),u==null&&(u=h??u),u=je(u,n),d.fallback_value!=null&&!u&&(u=d.fallback_value),R2(u)&&(u=Ls(u)),d.type==="switcher"&&d.enabled_value!=null&&d.disabled_value!=null&&(u?u=d.enabled_value:u=d.disabled_value);const p=oe(d.select_from_body?d.selector:`${_t(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?(ti(p).addClass(d.enabled_class??""),ti(p).removeClass(d.disabled_class)):(ti(p).removeClass(d.enabled_class),ti(p).addClass(d.disabled_class??"")):ti(p).attr(d.name,d.name==="class"?`${d.default_class} ${u}`:u);return}ti(p).attr(d.name,u)})})})})},jm=window.jQuery,km=({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(me(t,d.value_path)===void 0)return;const u=oe(`${_t(e,i)} ${d.selector}`);let h=me(t,d.value_path);const f=me(t,d.value_path.map(p=>p==="mobile"||p==="tablet"?"desktop":p));h==null&&f!=null&&(h=f),R2(h)&&(h=Ls(h)),jm(u).html(Ci(h)?je(h,n):h)})})})})},Dm=(e,t="desktop",n)=>{const i=[];if(e.font_style){const l=je(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=je(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=je(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=je(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:je(e.transform,t),selector:n}):i.push({name:"text-transform",value:"auto",selector:n}),e.decoration!=null?i.push({name:"text-decoration",value:je(e.decoration,t),selector:n}):i.push({name:"text-decoration",value:"none",selector:n}),i},yt=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"?yt(e.image.left)+" "+yt(e.image.top):e.image.position,selector:i}),o},Jo=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}`,Em=(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},Hm=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,B2=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)"}),Hm(t)},Sl=window.jQuery,Dn=({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,...Mm(d,t,n)])})})}),s.length>0){const l=oe(_t(e,i));s.forEach(c=>{if(c.selector){const d=Sl(l).find(c.selector);d&&Sl(d).css(c.name,c.value)}else Sl(l).css(c.name,c.value)})}};function Mm(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=Im;break;case"dimension":h=Tm;break;case"typography":h=Lm;break;case"spacing":h=Am;break;case"background":h=Rm;break;case"switcher":h=Nm;break;case"box_shadow":h=Bm;break;case"custom_variables":h=Om;break;default:h=Pm}h!==null&&(i=[...i,...h(t,{variableName:s,valuePath:a,enabledValue:l,disabledValue:c,mappingVariables:d,selector:u??""},n)])}),i}function Im(e,t,n){const i=[],o=me(e,t.valuePath);return o==null?[]:(Object.entries(o).forEach(([a,s])=>{a!=="enabled_gradient"&&i.push({name:`${t.variableName}-${a}`,value:je(s,n),selector:t.selector})}),i)}function Tm(e,t,n){const i=[],o=me(e,t.valuePath);return o==null?[]:(i.push({name:`${t.variableName}`,value:yt(je(o,n)),selector:t.selector}),i)}function Lm(e,t,n){let i=me(e,t.valuePath);return i==null&&(i={}),Dm(i,n,t.selector)}function Am(e,t,n){const i=me(e,t.valuePath);if(i==null)return[];const o=[];return o.push({name:`${t.variableName}`,value:Jo(je(i,n)),selector:t.selector}),o.push(...Em(t.variableName,je(i,n),t.selector)),o}function Rm(e,t,n){const i=me(e,["background"]);return i==null?[]:$m(i,n,t.variableName,t.selector)}function Nm(e,t,n){const i=me(e,t.valuePath);if(i==null)return[];const o=je(i,n),a=[];return a.push({name:`${t.variableName}`,value:o?t.enabledValue:t.disabledValue,selector:t.selector}),a}function Bm(e,t,n){const i=me(e,t.valuePath);if(i==null)return[];const o=je(i,n),a=[];return a.push({name:t.variableName,value:B2(o),selector:t.selector}),a}function Om(e,t,n){if(t.mappingVariables==null){let s=me(e,t.valuePath);return s==null?[]:(s=je(s,n),[{name:t.variableName,value:s}])}const o=[],a=me(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=me(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 Pm(e,t,n){let i=me(e,t.valuePath);if(i==null)return[];i=je(i,n);const o=[];return o.push({name:`${t.variableName}`,value:i.toString(),selector:t.selector}),o}const Ns=m.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))",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"},{"&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}},e&&{borderRadius:"0.125rem"},t&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","&:hover":{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},n&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"},i&&{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))","&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}]),m1=m.div.withConfig({displayName:"Layoutsstyled__StyledSettingsLayout",componentId:"sc-o6y3t-0"})({height:"fit-content"}),ze=m.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))"}),Xo=m.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))"},"&:last-child::after":{content:"var(--tw-content)",height:"0px"}}),O2=m.div.withConfig({displayName:"Layoutsstyled__StyledSectionLayout",componentId:"sc-o6y3t-3"})({height:"fit-content"});var P2={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;sx5(e)?Ie:Te,[e])}const Fm=window.React.useMemo,Zm=de([""," .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))"}),Wm={selected:{multiple:de([""," & + *{","}svg *[fill]{","}svg *[stroke]{","}"],{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity))","--tw-bg-opacity":"1 !important",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity)) !important","--tw-text-opacity":"1 !important",color:"rgb(255 255 255 / var(--tw-text-opacity)) !important"},{"--tw-border-opacity":"1",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity))"},{fill:"#fff !important"},{stroke:"#fff !important"}),single:de([""," > *{","}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)) !important"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"},{borderRightWidth:"1px"})}};function Mt({options:e=[],selected:t="",onChange:n=()=>!1,className:i="",multiple:o=!1,itemCss:a=null,canDeselect:s=!1}){const l=Fm(()=>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(Gm,{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(Um,{className:_e(["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))"},a??[u?Wm.selected[o?"multiple":"single"]:"",u&&o&&de([""," &.selected ~ .selected{","}"],{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity)) !important","&:first-child":{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity)) !important"}},{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(227 232 238 / var(--tw-border-opacity)) !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 Gm=m("div")`${Zm}`,Um=m("span").withConfig({displayName:"RadioGroup___StyledSpan",componentId:"sc-60p899-0"})(["",""],e=>e.$_css2);const Ym=window.React.useMemo;function Rn(e){const{current:t}=ye(),n=Ym(()=>je(e.value,t),[t,e.value]);return r.jsxs("div",{className:e.className,children:[r.jsx(ut,{title:e.title}),r.jsx(Mt,{className:"brandy-icon-group",selected:n,options:e.options??[],onChange:e.onChange,itemCss:e.itemCss??[de(['&.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 Fd=window.React;var Zd=function(t){return t.reduce(function(n,i){var o=i[0],a=i[1];return n[o]=a,n},{})},Wd=typeof window<"u"&&window.document&&window.document.createElement?Fd.useLayoutEffect:Fd.useEffect,Vt="top",pn="bottom",gn="right",zt="left",v1="auto",Qo=[Vt,pn,gn,zt],Si="start",Bo="end",Jm="clippingParents",V2="viewport",qi="popper",Xm="reference",Gd=Qo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Bo])},[]),z2=[].concat(Qo,[v1]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Bo])},[]),Qm="beforeRead",qm="read",Km="afterRead",e4="beforeMain",t4="main",n4="afterMain",r4="beforeWrite",i4="write",o4="afterWrite",a4=[Qm,qm,Km,e4,t4,n4,r4,i4,o4];function Ln(e){return e?(e.nodeName||"").toLowerCase():null}function Yt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Br(e){var t=Yt(e).Element;return e instanceof t||e instanceof Element}function hn(e){var t=Yt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function w1(e){if(typeof ShadowRoot>"u")return!1;var t=Yt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function s4(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];!hn(a)||!Ln(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 l4(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},{});!hn(o)||!Ln(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const c4={name:"applyStyles",enabled:!0,phase:"write",fn:s4,effect:l4,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var Ir=Math.max,as=Math.min,ji=Math.round;function Dc(){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 F2(){return!/^((?!chrome|android).)*safari/i.test(Dc())}function ki(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&hn(e)&&(o=e.offsetWidth>0&&ji(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ji(i.height)/e.offsetHeight||1);var s=Br(e)?Yt(e):window,l=s.visualViewport,c=!F2()&&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 x1(e){var t=ki(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&&w1(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yn(e){return Yt(e).getComputedStyle(e)}function d4(e){return["table","td","th"].indexOf(Ln(e))>=0}function dr(e){return((Br(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bs(e){return Ln(e)==="html"?e:e.assignedSlot||e.parentNode||(w1(e)?e.host:null)||dr(e)}function Ud(e){return!hn(e)||Yn(e).position==="fixed"?null:e.offsetParent}function u4(e){var t=/firefox/i.test(Dc()),n=/Trident/i.test(Dc());if(n&&hn(e)){var i=Yn(e);if(i.position==="fixed")return null}var o=Bs(e);for(w1(o)&&(o=o.host);hn(o)&&["html","body"].indexOf(Ln(o))<0;){var a=Yn(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 qo(e){for(var t=Yt(e),n=Ud(e);n&&d4(n)&&Yn(n).position==="static";)n=Ud(n);return n&&(Ln(n)==="html"||Ln(n)==="body"&&Yn(n).position==="static")?t:n||u4(e)||t}function b1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,n){return Ir(e,as(t,n))}function h4(e,t,n){var i=xo(e,t,n);return i>n?n:i}function W2(){return{top:0,right:0,bottom:0,left:0}}function G2(e){return Object.assign({},W2(),e)}function U2(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var f4=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G2(typeof t!="number"?t:U2(t,Qo))};function p4(e){var t,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=In(n.placement),c=b1(l),d=[zt,gn].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var h=f4(o.padding,n),f=x1(a),p=c==="y"?Vt:zt,g=c==="y"?pn:gn,v=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],k=qo(a),$=k?c==="y"?k.clientHeight||0:k.clientWidth||0:0,D=v/2-w/2,_=h[p],H=$-f[u]-h[g],x=$/2-f[u]/2+D,y=xo(_,x,H),N=c;n.modifiersData[i]=(t={},t[N]=y,t.centerOffset=y-x,t)}}function g4(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 m4={name:"arrow",enabled:!0,phase:"main",fn:p4,effect:g4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Di(e){return e.split("-")[1]}var v4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function w4(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:ji(n*o)/o||0,y:ji(i*o)/o||0}}function Yd(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,v=g===void 0?0:g,w=typeof u=="function"?u({x:p,y:v}):{x:p,y:v};p=w.x,v=w.y;var k=s.hasOwnProperty("x"),$=s.hasOwnProperty("y"),D=zt,_=Vt,H=window;if(d){var x=qo(n),y="clientHeight",N="clientWidth";if(x===Yt(n)&&(x=dr(n),Yn(x).position!=="static"&&l==="absolute"&&(y="scrollHeight",N="scrollWidth")),x=x,o===Vt||(o===zt||o===gn)&&a===Bo){_=pn;var O=h&&x===H&&H.visualViewport?H.visualViewport.height:x[y];v-=O-i.height,v*=c?1:-1}if(o===zt||(o===Vt||o===pn)&&a===Bo){D=gn;var S=h&&x===H&&H.visualViewport?H.visualViewport.width:x[N];p-=S-i.width,p*=c?1:-1}}var A=Object.assign({position:l},d&&v4),E=u===!0?w4({x:p,y:v},Yt(n)):{x:p,y:v};if(p=E.x,v=E.y,c){var P;return Object.assign({},A,(P={},P[_]=$?"0":"",P[D]=k?"0":"",P.transform=(H.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",P))}return Object.assign({},A,(t={},t[_]=$?v+"px":"",t[D]=k?p+"px":"",t.transform="",t))}function x4(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:In(t.placement),variation:Di(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,Yd(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,Yd(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 b4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x4,data:{}};var _a={passive:!0};function y4(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=Yt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,_a)}),l&&c.addEventListener("resize",n.update,_a),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,_a)}),l&&c.removeEventListener("resize",n.update,_a)}}const C4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y4,data:{}};var _4={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return _4[t]})}var S4={start:"end",end:"start"};function Jd(e){return e.replace(/start|end/g,function(t){return S4[t]})}function y1(e){var t=Yt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function C1(e){return ki(dr(e)).left+y1(e).scrollLeft}function j4(e,t){var n=Yt(e),i=dr(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=F2();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+C1(e),y:c}}function k4(e){var t,n=dr(e),i=y1(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ir(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ir(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+C1(e),c=-i.scrollTop;return Yn(o||n).direction==="rtl"&&(l+=Ir(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function _1(e){var t=Yn(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Y2(e){return["html","body","#document"].indexOf(Ln(e))>=0?e.ownerDocument.body:hn(e)&&_1(e)?e:Y2(Bs(e))}function bo(e,t){var n;t===void 0&&(t=[]);var i=Y2(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Yt(i),s=o?[a].concat(a.visualViewport||[],_1(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(bo(Bs(s)))}function $c(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function D4(e,t){var n=ki(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 Xd(e,t,n){return t===V2?$c(j4(e,n)):Br(t)?D4(t,n):$c(k4(dr(e)))}function $4(e){var t=bo(Bs(e)),n=["absolute","fixed"].indexOf(Yn(e).position)>=0,i=n&&hn(e)?qo(e):e;return Br(i)?t.filter(function(o){return Br(o)&&Z2(o,i)&&Ln(o)!=="body"}):[]}function E4(e,t,n,i){var o=t==="clippingParents"?$4(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var u=Xd(e,d,i);return c.top=Ir(u.top,c.top),c.right=as(u.right,c.right),c.bottom=as(u.bottom,c.bottom),c.left=Ir(u.left,c.left),c},Xd(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 J2(e){var t=e.reference,n=e.element,i=e.placement,o=i?In(i):null,a=i?Di(i):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Vt:c={x:s,y:t.y-n.height};break;case pn:c={x:s,y:t.y+t.height};break;case gn:c={x:t.x+t.width,y:l};break;case zt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?b1(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(a){case Si:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Bo:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function Oo(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?Jm:l,d=n.rootBoundary,u=d===void 0?V2:d,h=n.elementContext,f=h===void 0?qi:h,p=n.altBoundary,g=p===void 0?!1:p,v=n.padding,w=v===void 0?0:v,k=G2(typeof w!="number"?w:U2(w,Qo)),$=f===qi?Xm:qi,D=e.rects.popper,_=e.elements[g?$:f],H=E4(Br(_)?_:_.contextElement||dr(e.elements.popper),c,u,s),x=ki(e.elements.reference),y=J2({reference:x,element:D,strategy:"absolute",placement:o}),N=$c(Object.assign({},D,y)),O=f===qi?N:x,S={top:H.top-O.top+k.top,bottom:O.bottom-H.bottom+k.bottom,left:H.left-O.left+k.left,right:O.right-H.right+k.right},A=e.modifiersData.offset;if(f===qi&&A){var E=A[o];Object.keys(S).forEach(function(P){var z=[gn,pn].indexOf(P)>=0?1:-1,M=[Vt,pn].indexOf(P)>=0?"y":"x";S[P]+=E[M]*z})}return S}function H4(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?z2:c,u=Di(i),h=u?l?Gd:Gd.filter(function(g){return Di(g)===u}):Qo,f=h.filter(function(g){return d.indexOf(g)>=0});f.length===0&&(f=h);var p=f.reduce(function(g,v){return g[v]=Oo(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[In(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function M4(e){if(In(e)===v1)return[];var t=Wa(e);return[Jd(e),t,Jd(t)]}function I4(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,v=n.allowedAutoPlacements,w=t.options.placement,k=In(w),$=k===w,D=c||($||!g?[Wa(w)]:M4(w)),_=[w].concat(D).reduce(function(he,F){return he.concat(In(F)===v1?H4(t,{placement:F,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:v}):F)},[]),H=t.rects.reference,x=t.rects.popper,y=new Map,N=!0,O=_[0],S=0;S<_.length;S++){var A=_[S],E=In(A),P=Di(A)===Si,z=[Vt,pn].indexOf(E)>=0,M=z?"width":"height",V=Oo(t,{placement:A,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),R=z?P?gn:zt:P?pn:Vt;H[M]>x[M]&&(R=Wa(R));var Z=Wa(R),L=[];if(a&&L.push(V[E]<=0),l&&L.push(V[R]<=0,V[Z]<=0),L.every(function(he){return he})){O=A,N=!1;break}y.set(A,L)}if(N)for(var W=g?3:1,J=function(F){var ee=_.find(function(ue){var re=y.get(ue);if(re)return re.slice(0,F).every(function(te){return te})});if(ee)return O=ee,"break"},Y=W;Y>0;Y--){var ce=J(Y);if(ce==="break")break}t.placement!==O&&(t.modifiersData[i]._skip=!0,t.placement=O,t.reset=!0)}}const T4={name:"flip",enabled:!0,phase:"main",fn:I4,requiresIfExists:["offset"],data:{_skip:!1}};function Qd(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 qd(e){return[Vt,gn,pn,zt].some(function(t){return e[t]>=0})}function L4(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Oo(t,{elementContext:"reference"}),l=Oo(t,{altBoundary:!0}),c=Qd(s,i),d=Qd(l,o,a),u=qd(c),h=qd(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 A4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:L4};function R4(e,t,n){var i=In(e),o=[zt,Vt].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,[zt,gn].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function N4(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=z2.reduce(function(u,h){return u[h]=R4(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 B4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:N4};function O4(e){var t=e.state,n=e.name;t.modifiersData[n]=J2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const P4={name:"popperOffsets",enabled:!0,phase:"read",fn:O4,data:{}};function V4(e){return e==="x"?"y":"x"}function z4(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,v=g===void 0?0:g,w=Oo(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),k=In(t.placement),$=Di(t.placement),D=!$,_=b1(k),H=V4(_),x=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,O=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,S=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(x){if(a){var P,z=_==="y"?Vt:zt,M=_==="y"?pn:gn,V=_==="y"?"height":"width",R=x[_],Z=R+w[z],L=R-w[M],W=p?-N[V]/2:0,J=$===Si?y[V]:N[V],Y=$===Si?-N[V]:-y[V],ce=t.elements.arrow,he=p&&ce?x1(ce):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W2(),ee=F[z],ue=F[M],re=xo(0,y[V],he[V]),te=D?y[V]/2-W-re-ee-S.mainAxis:J-re-ee-S.mainAxis,be=D?-y[V]/2+W+re+ue+S.mainAxis:Y+re+ue+S.mainAxis,Oe=t.elements.arrow&&qo(t.elements.arrow),Ae=Oe?_==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,b=(P=A==null?void 0:A[_])!=null?P:0,T=R+te-b-Ae,j=R+be-b,G=xo(p?as(Z,T):Z,R,p?Ir(L,j):L);x[_]=G,E[_]=G-R}if(l){var Q,K=_==="x"?Vt:zt,pe=_==="x"?pn:gn,le=x[H],Me=H==="y"?"height":"width",We=le+w[K],Kt=le-w[pe],tt=[Vt,zt].indexOf(k)!==-1,Yr=(Q=A==null?void 0:A[H])!=null?Q:0,pr=tt?We:le-y[Me]-N[Me]-Yr+S.altAxis,en=tt?le+y[Me]+N[Me]-Yr-S.altAxis:Kt,On=p&&tt?h4(pr,le,en):xo(p?pr:We,le,p?en:Kt);x[H]=On,E[H]=On-le}t.modifiersData[i]=E}}const F4={name:"preventOverflow",enabled:!0,phase:"main",fn:z4,requiresIfExists:["offset"]};function Z4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function W4(e){return e===Yt(e)||!hn(e)?y1(e):Z4(e)}function G4(e){var t=e.getBoundingClientRect(),n=ji(t.width)/e.offsetWidth||1,i=ji(t.height)/e.offsetHeight||1;return n!==1||i!==1}function U4(e,t,n){n===void 0&&(n=!1);var i=hn(t),o=hn(t)&&G4(t),a=dr(t),s=ki(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((Ln(t)!=="body"||_1(a))&&(l=W4(t)),hn(t)?(c=ki(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=C1(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Y4(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 J4(e){var t=Y4(e);return a4.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function X4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Q4(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 Kd={placement:"bottom",modifiers:[],strategy:"absolute"};function e0(){for(var e=arguments.length,t=new Array(e),n=0;n"u"?ot:window,Sa=["moz","webkit"],pi="AnimationFrame",$i=Gn["request"+pi],Po=Gn["cancel"+pi]||Gn["cancelRequest"+pi];for(var eo=0;!$i&&eo=0;o--){var a=n0[o]+i;if(a in n)return a}return!1},p8=w8,g8=/\s/,m8=/(_|-|\.|:)/,v8=/([a-z][A-Z]|[A-Z][a-z])/;function w8(e){return g8.test(e)?e.toLowerCase():m8.test(e)?(b8(e)||e).toLowerCase():v8.test(e)?C8(e).toLowerCase():e.toLowerCase()}var x8=/[\W_]+(.|$)/g;function b8(e){return e.replace(x8,function(t,n){return n?" "+n:""})}var y8=/(.)([A-Z]+)/g;function C8(e){return e.replace(y8,function(t,n,i){return n+" "+i.toLowerCase().split("").join(" ")})}var _8=p8,S8=j8;function j8(e){return _8(e).replace(/[\W_]+(.|$)/g,function(t,n){return n?" "+n:""}).trim()}var k8=S8,D8=$8;function $8(e){return k8(e).replace(/\s(\w)/g,function(t,n){return n.toUpperCase()})}var E8={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},H8=function(e,t){return typeof t=="number"&&!E8[e]?t+"px":t},M8=f8,I8=D8,Ua={float:"cssFloat"},T8=H8;function ss(e,t,n){var i=Ua[t];if(typeof i>"u"&&(i=A8(t)),i){if(n===void 0)return e.style[i];e.style[i]=T8(i,n)}}function L8(e,t){for(var n in t)t.hasOwnProperty(n)&&ss(e,n,t[n])}function A8(e){var t=I8(e),n=M8(t);return Ua[t]=Ua[e]=Ua[n]=n,n}function q2(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:L8(arguments[0],arguments[1]):ss(arguments[0],arguments[1],arguments[2])}Ps.exports=q2;Ps.exports.set=q2;Ps.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(n,i){return n[i]=ss(e,i||""),n},{}):ss(e,t||"")};var K2=Ps.exports,eh={exports:{}},R8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",N8=R8,B8=N8;function th(){}function nh(){}nh.resetWarningCache=th;var O8=function(){function e(i,o,a,s,l,c){if(c!==B8){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:nh,resetWarningCache:th};return n.PropTypes=n,n};eh.exports=O8();var P8=eh.exports,rh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}})(rh);var ih={};(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}})(ih);var oh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}})(oh);var ah={};(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)}})(ah);var sh={};(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)}})(sh);var qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};qt.containerStyleAutoHeight={height:"auto"};qt.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};qt.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};qt.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};qt.trackHorizontalStyleDefault={position:"absolute",height:6};qt.trackVerticalStyleDefault={position:"absolute",width:6};qt.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};qt.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};qt.disableSelectStyle={userSelect:"none"};qt.disableSelectStyleReset={userSelect:""};var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});var lr=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function F8(e){return Ko.default.createElement("div",e)}function Z8(e){var t=e.style,n=Vs(e,["style"]),i=lr({},t,{right:2,bottom:2,left:2,borderRadius:3});return Ko.default.createElement("div",lr({style:i},n))}function W8(e){var t=e.style,n=Vs(e,["style"]),i=lr({},t,{right:2,bottom:2,top:2,borderRadius:3});return Ko.default.createElement("div",lr({style:i},n))}function G8(e){var t=e.style,n=Vs(e,["style"]),i=lr({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Ko.default.createElement("div",lr({style:i},n))}function U8(e){var t=e.style,n=Vs(e,["style"]),i=lr({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Ko.default.createElement("div",lr({style:i},n))}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(E){for(var P=1;P=0||Object.prototype.hasOwnProperty.call(E,M)&&(z[M]=E[M]);return z}function N(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function O(E,P){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:E}function S(E,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);E.prototype=Object.create(P&&P.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(E,P):E.__proto__=P)}var A=function(E){S(P,E);function P(z){var M;N(this,P);for(var V=arguments.length,R=Array(V>1?V-1:0),Z=1;Z0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=M)}},{key:"scrollTop",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=M)}},{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 M=this.view,V=this.trackHorizontal,R=this.trackVertical,Z=this.thumbHorizontal,L=this.thumbVertical;M.addEventListener("scroll",this.handleScroll),(0,p.default)()&&(V.addEventListener("mouseenter",this.handleTrackMouseEnter),V.addEventListener("mouseleave",this.handleTrackMouseLeave),V.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),R.addEventListener("mouseenter",this.handleTrackMouseEnter),R.addEventListener("mouseleave",this.handleTrackMouseLeave),R.addEventListener("mousedown",this.handleVerticalTrackMouseDown),Z.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),L.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var M=this.view,V=this.trackHorizontal,R=this.trackVertical,Z=this.thumbHorizontal,L=this.thumbVertical;M.removeEventListener("scroll",this.handleScroll),(0,p.default)()&&(V.removeEventListener("mouseenter",this.handleTrackMouseEnter),V.removeEventListener("mouseleave",this.handleTrackMouseLeave),V.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),R.removeEventListener("mouseenter",this.handleTrackMouseEnter),R.removeEventListener("mouseleave",this.handleTrackMouseLeave),R.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),Z.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),L.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(M){var V=this,R=this.props,Z=R.onScroll,L=R.onScrollFrame;Z&&Z(M),this.update(function(W){var J=W.scrollLeft,Y=W.scrollTop;V.viewScrollLeft=J,V.viewScrollTop=Y,L&&L(W)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var M=this.props.onScrollStart;M&&M(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var M=this.props.autoHide;M&&this.showTracks()}},{key:"handleScrollStop",value:function(){var M=this.props.onScrollStop;M&&M(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var M=this.props.autoHide;M&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,p.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(M){M.preventDefault();var V=M.target,R=M.clientX,Z=V.getBoundingClientRect(),L=Z.left,W=this.getThumbHorizontalWidth(),J=Math.abs(L-R)-W/2;this.view.scrollLeft=this.getScrollLeftForOffset(J)}},{key:"handleVerticalTrackMouseDown",value:function(M){M.preventDefault();var V=M.target,R=M.clientY,Z=V.getBoundingClientRect(),L=Z.top,W=this.getThumbVerticalHeight(),J=Math.abs(L-R)-W/2;this.view.scrollTop=this.getScrollTopForOffset(J)}},{key:"handleHorizontalThumbMouseDown",value:function(M){M.preventDefault(),this.handleDragStart(M);var V=M.target,R=M.clientX,Z=V.offsetWidth,L=V.getBoundingClientRect(),W=L.left;this.prevPageX=Z-(R-W)}},{key:"handleVerticalThumbMouseDown",value:function(M){M.preventDefault(),this.handleDragStart(M);var V=M.target,R=M.clientY,Z=V.offsetHeight,L=V.getBoundingClientRect(),W=L.top;this.prevPageY=Z-(R-W)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,_.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=v.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,_.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(M){this.dragging=!0,M.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(M){if(this.prevPageX){var V=M.clientX,R=this.trackHorizontal.getBoundingClientRect(),Z=R.left,L=this.getThumbHorizontalWidth(),W=L-this.prevPageX,J=-Z+V-W;this.view.scrollLeft=this.getScrollLeftForOffset(J)}if(this.prevPageY){var Y=M.clientY,ce=this.trackVertical.getBoundingClientRect(),he=ce.top,F=this.getThumbVerticalHeight(),ee=F-this.prevPageY,ue=-he+Y-ee;this.view.scrollTop=this.getScrollTopForOffset(ue)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var M=this.props.autoHide;M&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var M=this.props.autoHide;M&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var M=this.props.autoHide;M&&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 M=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var V=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(M.trackHorizontal,{opacity:0}),(0,s.default)(M.trackVertical,{opacity:0})},V)}}},{key:"detectScrolling",value:function(){var M=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){M.lastViewScrollLeft===M.viewScrollLeft&&M.lastViewScrollTop===M.viewScrollTop&&(clearInterval(M.detectScrollingInterval),M.scrolling=!1,M.handleScrollStop()),M.lastViewScrollLeft=M.viewScrollLeft,M.lastViewScrollTop=M.viewScrollTop},100))}},{key:"raf",value:function(M){var V=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){V.requestFrame=void 0,M()})}},{key:"update",value:function(M){var V=this;this.raf(function(){return V._update(M)})}},{key:"_update",value:function(M){var V=this.props,R=V.onUpdate,Z=V.hideTracksWhenNotNeeded,L=this.getValues();if((0,p.default)()){var W=L.scrollLeft,J=L.clientWidth,Y=L.scrollWidth,ce=(0,k.default)(this.trackHorizontal),he=this.getThumbHorizontalWidth(),F=W/(Y-J)*(ce-he),ee={width:he,transform:"translateX("+F+"px)"},ue=L.scrollTop,re=L.clientHeight,te=L.scrollHeight,be=(0,D.default)(this.trackVertical),Oe=this.getThumbVerticalHeight(),Ae=ue/(te-re)*(be-Oe),b={height:Oe,transform:"translateY("+Ae+"px)"};if(Z){var T={visibility:Y>J?"visible":"hidden"},j={visibility:te>re?"visible":"hidden"};(0,s.default)(this.trackHorizontal,T),(0,s.default)(this.trackVertical,j)}(0,s.default)(this.thumbHorizontal,ee),(0,s.default)(this.thumbVertical,b)}R&&R(L),typeof M=="function"&&M(L)}},{key:"render",value:function(){var M=this,V=(0,p.default)(),R=this.props;R.onScroll,R.onScrollFrame,R.onScrollStart,R.onScrollStop,R.onUpdate;var Z=R.renderView,L=R.renderTrackHorizontal,W=R.renderTrackVertical,J=R.renderThumbHorizontal,Y=R.renderThumbVertical,ce=R.tagName;R.hideTracksWhenNotNeeded;var he=R.autoHide;R.autoHideTimeout;var F=R.autoHideDuration;R.thumbSize,R.thumbMinSize;var ee=R.universal,ue=R.autoHeight,re=R.autoHeightMin,te=R.autoHeightMax,be=R.style,Oe=R.children,Ae=y(R,["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,T=t({},_.containerStyleDefault,ue&&t({},_.containerStyleAutoHeight,{minHeight:re,maxHeight:te}),be),j=t({},_.viewStyleDefault,{marginRight:V?-V:0,marginBottom:V?-V:0},ue&&t({},_.viewStyleAutoHeight,{minHeight:(0,h.default)(re)?"calc("+re+" + "+V+"px)":re+V,maxHeight:(0,h.default)(te)?"calc("+te+" + "+V+"px)":te+V}),ue&&ee&&!b&&{minHeight:re,maxHeight:te},ee&&!b&&_.viewStyleUniversalInitial),G={transition:"opacity "+F+"ms",opacity:0},Q=t({},_.trackHorizontalStyleDefault,he&&G,(!V||ee&&!b)&&{display:"none"}),K=t({},_.trackVerticalStyleDefault,he&&G,(!V||ee&&!b)&&{display:"none"});return(0,l.createElement)(ce,t({},Ae,{style:T,ref:function(le){M.container=le}}),[(0,l.cloneElement)(Z({style:j}),{key:"view",ref:function(le){M.view=le}},Oe),(0,l.cloneElement)(L({style:Q}),{key:"trackHorizontal",ref:function(le){M.trackHorizontal=le}},(0,l.cloneElement)(J({style:_.thumbHorizontalStyleDefault}),{ref:function(le){M.thumbHorizontal=le}})),(0,l.cloneElement)(W({style:K}),{key:"trackVertical",ref:function(le){M.trackVertical=le}},(0,l.cloneElement)(Y({style:_.thumbVerticalStyleDefault}),{ref:function(le){M.thumbVertical=le}}))])}}]),P}(l.Component);e.default=A,A.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},A.defaultProps={renderView:H.renderViewDefault,renderTrackHorizontal:H.renderTrackHorizontalDefault,renderTrackVertical:H.renderTrackVerticalDefault,renderThumbHorizontal:H.renderThumbHorizontalDefault,renderThumbVertical:H.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(Q2);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=Q2,n=i(t);function i(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default})(X2);const Y8=Qt(X2);function Nn({children:e,...t}){return r.jsx(Y8,{...t,...window.brandyCustomizerData.rtl?{renderView:n=>r.jsx("div",{...n,style:{...n.style,marginLeft:n.style.marginRight,marginRight:0}})}:{},children:e})}const J8=window.React.useEffect,X8=window.React.useRef,Dl=window.React.useState;function Le({title:e="",children:t,style:n={}}){const[i,o]=Dl(null),[a,s]=Dl(null),{styles:l,attributes:c}=$n(i,a),[d,u]=Dl(!1),h=()=>{u(!0)},f=()=>{u(!1)};if(!e)return!1;const p=X8(null);return J8(()=>{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(Q8,{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 Q8=m("div").withConfig({displayName:"Tooltip___StyledDiv",componentId:"sc-gmfqn3-0"})(["",""],e=>e.$_css);const q8=window.React.useEffect,$l=window.React.useMemo,El=window.React.useState,K8=38,lh=5,ch=5;function pt({options:e,selected:t,onChange:n=()=>!1,style:i={},popupHeight:o=null}){const[a,s]=El(null),[l,c]=El(null),{styles:d,attributes:u}=$n(a,l),[h,f]=El(!1),p=$l(()=>(a==null?void 0:a.getBoundingClientRect().width)??0,[a]),g=()=>{f(D=>!D)},v=()=>{f(!1)},w=$l(()=>e.find(_=>_.value===t),[e,t]),k=D=>{const _=D.currentTarget.dataset.value;n(_??"")};q8(()=>{const D=_=>{(a==null||l==null)&&v(),!(a!=null&&a.contains(_.target))&&!(l!=null&&l.contains(_.target))&&v()};return window.jQuery(document).on("click","body",D),()=>{window.jQuery(document).off("click","body",D)}},[a,l]);const $=$l(()=>{if(o)return o;const D=Math.min(e.length,4);return D*K8+(D-1)*lh+ch*2},[e,o]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:_e(["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:_e(["my-2 z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Nn,{autoHide:!0,className:"bg-gutenberg-white",style:{height:$},children:r.jsx(e6,{className:"flex flex-col",children:e.map(D=>r.jsxs(t6,{className:"brandy-select__option-content","data-value":D.value,onClick:k,$_css:[{display:"flex",alignItems:"center",justifyContent:"space-between","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"},{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))"}},{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)) !important"}],children:[r.jsx(n6,{children:(D.label??"").toString().length>30?r.jsx(Le,{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 e6=m("div")` padding: ${ch}px; gap: ${lh}px; `,t6=m("div")`${e=>e.$_css}`,n6=m("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 r6=window.React,i6=window.React.useEffect,o6=window.React.useState,ea=r6.forwardRef(({id:e,className:t,checked:n=!1,disabled:i=!1,size:o="sm",onChange:a=()=>!1},s)=>{const[l,c]=o6(!1),d=u=>{u.preventDefault(),u.stopPropagation(),a(!n)};return i6(()=>{const u=()=>{c(!1)};return window.addEventListener("mouseup",u),()=>{window.removeEventListener("mouseup",u)}},[]),r.jsx("button",{id:e,type:"button",className:_e(["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"})})}),dt=window.React,Tr=window.React.useRef,a6=window.React.useMemo,ls=window.React.useEffect,s6=window.React.useState,l6=window.React.useCallback,c6=window.React.useLayoutEffect;function zs(){return(zs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function Ec(e){var t=Tr(e),n=Tr(function(i){t.current&&t.current(i)});return t.current=e,n.current}var Ei=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(r0(o.current,w,l.current)):v(!1)},g=function(){return v(!1)};function v(w){var k=c.current,$=Hc(o.current),D=w?$.addEventListener:$.removeEventListener;D(k?"touchmove":"mousemove",p),D(k?"touchend":"mouseup",g)}return[function(w){var k=w.nativeEvent,$=o.current;if($&&(i0(k),!function(_,H){return H&&!yo(_)}(k,c.current)&&$)){if(yo(k)){c.current=!0;var D=k.changedTouches||[];D.length&&(l.current=D[0].identifier)}$.focus(),a(r0($,k,l.current)),v(!0)}},function(w){var k=w.which||w.keyCode;k<37||k>40||(w.preventDefault(),s({left:k===39?.05:k===37?-.05:0,top:k===40?.05:k===38?-.05:0}))},v]},[s,a]),u=d[0],h=d[1],f=d[2];return ls(function(){return f},[f]),dt.createElement("div",zs({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),Fs=function(e){return e.filter(Boolean).join(" ")},j1=function(e){var t=e.color,n=e.left,i=e.top,o=i===void 0?.5:i,a=Fs(["react-colorful__pointer",e.className]);return dt.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},dt.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},vt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},d6=function(e){return p6(Mc(e))},Mc=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?vt(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?vt(parseInt(e.substring(6,8),16)/255,2):1}},u6=function(e){return f6(h6(e))},uh=function(e){var t=e.s,n=e.v,i=e.a,o=(200-t)*n/100;return{h:vt(e.h),s:vt(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:vt(o/2),a:vt(i,2)}},Ic=function(e){var t=uh(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hl=function(e){var t=uh(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},h6=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:vt(255*[i,l,s,s,c,i][d]),g:vt(255*[c,i,i,l,s,s][d]),b:vt(255*[s,s,c,i,i,l][d]),a:vt(o,2)}},ja=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},f6=function(e){var t=e.r,n=e.g,i=e.b,o=e.a,a=o<1?ja(vt(255*o)):"";return"#"+ja(t)+ja(n)+ja(i)+a},p6=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:vt(60*(l<0?l+6:l)),s:vt(a?s/a*100:0),v:vt(a/255*100),a:o}},g6=dt.memo(function(e){var t=e.hue,n=e.onChange,i=Fs(["react-colorful__hue",e.className]);return dt.createElement("div",{className:i},dt.createElement(S1,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Ei(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":vt(t),"aria-valuemax":"360","aria-valuemin":"0"},dt.createElement(j1,{className:"react-colorful__hue-pointer",left:t/360,color:Ic({h:t,s:100,v:100,a:1})})))}),m6=dt.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:Ic({h:t.h,s:100,v:100,a:1})};return dt.createElement("div",{className:"react-colorful__saturation",style:i},dt.createElement(S1,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Ei(t.s+100*o.left,0,100),v:Ei(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+vt(t.s)+"%, Brightness "+vt(t.v)+"%"},dt.createElement(j1,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ic(t)})))}),hh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},v6=function(e,t){return e.toLowerCase()===t.toLowerCase()||hh(Mc(e),Mc(t))};function w6(e,t,n){var i=Ec(n),o=s6(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=Tr({color:t,hsva:a});ls(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},s(d)}},[t,e]),ls(function(){var d;hh(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=l6(function(d){s(function(u){return Object.assign({},u,d)})},[]);return[a,c]}var x6=typeof window<"u"?c6:ls,b6=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},o0=new Map,y6=function(e){x6(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!o0.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}`,o0.set(t,n);var i=b6();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},C6=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hl(Object.assign({},n,{a:0}))+", "+Hl(Object.assign({},n,{a:1}))+")"},a=Fs(["react-colorful__alpha",t]),s=vt(100*n.a);return dt.createElement("div",{className:a},dt.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),dt.createElement(S1,{onMove:function(l){i({a:l.left})},onKey:function(l){i({a:Ei(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},dt.createElement(j1,{className:"react-colorful__alpha-pointer",left:n.a,color:Hl(n)})))},_6=function(e){var t=e.className,n=e.colorModel,i=e.color,o=i===void 0?n.defaultColor:i,a=e.onChange,s=dh(e,["className","colorModel","color","onChange"]),l=Tr(null);y6(l);var c=w6(n,o,a),d=c[0],u=c[1],h=Fs(["react-colorful",t]);return dt.createElement("div",zs({},s,{ref:l,className:h}),dt.createElement(m6,{hsva:d,onChange:u}),dt.createElement(g6,{hue:d.h,onChange:u}),dt.createElement(C6,{hsva:d,onChange:u,className:"react-colorful__last-control"}))},S6={defaultColor:"0001",toHsva:d6,fromHsva:u6,equal:v6},j6=function(e){return dt.createElement(_6,zs({},e,{colorModel:S6}))};function ta(){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 fh(){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 k6(){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 ph(){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 gh(){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 D6(){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 $6(){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 mh(){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 E6(){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 H6=window.React.forwardRef;let Ml,to;const st=H6(({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(to);function f(){let p=++a.value;e(Math.min(p,a.max??Number.MAX_SAFE_INTEGER))}f(),to=setTimeout(()=>{Ml=setInterval(()=>{f()},80)},400)},u=()=>{clearTimeout(to);function f(){let p=--a.value;e(Math.max(p,a.min??Number.MIN_SAFE_INTEGER))}f(),to=setTimeout(()=>{Ml=setInterval(()=>{f()},80)},400)},h=()=>{clearInterval(Ml),clearTimeout(to)};return r.jsxs(M6,{className:_e(["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))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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))",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))"},"&:focus":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity))","--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(I6,{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))"}},` &: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",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 4L4 3.49691e-07L0 4L8 4Z",fill:"#C6D4E1"})})}),r.jsx(T6,{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))"}},` &: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",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0L4 4L8 0L0 0Z",fill:"#C6D4E1"})})})]})]})});var M6=m("div")`${e=>e.$_css}`,I6=m("span")`${e=>e.$_css2}`,T6=m("span").withConfig({displayName:"Input___StyledSpan2",componentId:"sc-aibt7d-0"})(["",""],e=>e.$_css3);function L6(){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 vh=()=>{const e=window.brandyCustomizerData.theme_settings.color.palette.theme.map(n=>({...n,value:`var(--wp--preset--color--${n.slug})`})),t=window.brandyCustomizerData.theme_settings.color.palette.default.map(n=>({...n,value:`var(--wp--preset--color--${n.slug})`}));return{theme:e,palette:t}},wh=e=>{if(e==null)return{isGlobal:!1,color:""};const t=vh(),n=[...t.theme,...t.palette].find(i=>i.value==e);return n?{isGlobal:!0,color:n.color}:e.includes("var(")?{isGlobal:!0,color:e}:{isGlobal:!1,color:e}};function I(e){var t;return(((t=window.brandyCustomizerData)==null?void 0:t.i18n)??{})[e]??e}var A6="Expected a function",a0=0/0,R6="[object Symbol]",N6=/^\s+|\s+$/g,B6=/^[-+]0x[0-9a-f]+$/i,O6=/^0b[01]+$/i,P6=/^0o[0-7]+$/i,V6=parseInt,z6=typeof ot=="object"&&ot&&ot.Object===Object&&ot,F6=typeof self=="object"&&self&&self.Object===Object&&self,Z6=z6||F6||Function("return this")(),W6=Object.prototype,G6=W6.toString,U6=Math.max,Y6=Math.min,Il=function(){return Z6.Date.now()};function J6(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(A6);t=s0(t)||0,Tc(n)&&(u=!!n.leading,h="maxWait"in n,a=h?U6(s0(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function p(x){var y=i,N=o;return i=o=void 0,d=x,s=e.apply(N,y),s}function g(x){return d=x,l=setTimeout(k,t),u?p(x):s}function v(x){var y=x-c,N=x-d,O=t-y;return h?Y6(O,a-N):O}function w(x){var y=x-c,N=x-d;return c===void 0||y>=t||y<0||h&&N>=a}function k(){var x=Il();if(w(x))return $(x);l=setTimeout(k,v(x))}function $(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 _(){return l===void 0?s:$(Il())}function H(){var x=Il(),y=w(x);if(i=arguments,o=this,c=x,y){if(l===void 0)return g(c);if(h)return l=setTimeout(k,t),p(c)}return l===void 0&&(l=setTimeout(k,t)),s}return H.cancel=D,H.flush=_,H}function Tc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function X6(e){return!!e&&typeof e=="object"}function Q6(e){return typeof e=="symbol"||X6(e)&&G6.call(e)==R6}function s0(e){if(typeof e=="number")return e;if(Q6(e))return a0;if(Tc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(N6,"");var n=O6.test(e);return n||P6.test(e)?V6(e.slice(2),n?2:8):B6.test(e)?a0:+e}var q6=J6;const Hi=Qt(q6);function k1(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 X=window.React,It=window.React.useState,Tt=window.React.useEffect,Wr=window.React.useRef,K6=window.React.memo,l0=window.React.useCallback,c0=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 fe=function(){return fe=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 Ct(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 xh(){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 tv(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qe=tv(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,T){if(b=b||"",T=T||{},b instanceof d)return b;if(!(this instanceof d))return new d(b,T);var j=u(b);this._originalInput=b,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=a(100*this._a)/100,this._format=T.format||j.format,this._gradientType=T.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=j.ok,this._tc_id=o++}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var b=this.toRgb();return(b.r*299+b.g*587+b.b*114)/1e3},getLuminance:function(){var b=this.toRgb(),T,j,G,Q,K,pe;return T=b.r/255,j=b.g/255,G=b.b/255,T<=.03928?Q=T/12.92:Q=t.pow((T+.055)/1.055,2.4),j<=.03928?K=j/12.92:K=t.pow((j+.055)/1.055,2.4),G<=.03928?pe=G/12.92:pe=t.pow((G+.055)/1.055,2.4),.2126*Q+.7152*K+.0722*pe},setAlpha:function(b){return this._a=L(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),T=a(b.h*360),j=a(b.s*100),G=a(b.v*100);return this._a==1?"hsv("+T+", "+j+"%, "+G+"%)":"hsva("+T+", "+j+"%, "+G+"%, "+this._roundA+")"},toHsl:function(){var b=f(this._r,this._g,this._b);return{h:b.h*360,s:b.s,l:b.l,a:this._a}},toHslString:function(){var b=f(this._r,this._g,this._b),T=a(b.h*360),j=a(b.s*100),G=a(b.l*100);return this._a==1?"hsl("+T+", "+j+"%, "+G+"%)":"hsla("+T+", "+j+"%, "+G+"%, "+this._roundA+")"},toHex:function(b){return w(this._r,this._g,this._b,b)},toHexString:function(b){return"#"+this.toHex(b)},toHex8:function(b){return k(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:R[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(b){var T="#"+$(this._r,this._g,this._b,this._a),j=T,G=this._gradientType?"GradientType = 1, ":"";if(b){var Q=d(b);j="#"+$(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+T+",endColorstr="+j+")"},toString:function(b){var T=!!b;b=b||this._format;var j=!1,G=this._a<1&&this._a>=0,Q=!T&&G&&(b==="hex"||b==="hex6"||b==="hex3"||b==="hex4"||b==="hex8"||b==="name");return Q?b==="name"&&this._a===0?this.toName():this.toRgbString():(b==="rgb"&&(j=this.toRgbString()),b==="prgb"&&(j=this.toPercentageRgbString()),(b==="hex"||b==="hex6")&&(j=this.toHexString()),b==="hex3"&&(j=this.toHexString(!0)),b==="hex4"&&(j=this.toHex8String(!0)),b==="hex8"&&(j=this.toHex8String()),b==="name"&&(j=this.toName()),b==="hsl"&&(j=this.toHslString()),b==="hsv"&&(j=this.toHsvString()),j||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(b,T){var j=b.apply(null,[this].concat([].slice.call(T)));return this._r=j._r,this._g=j._g,this._b=j._b,this.setAlpha(j._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(D,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(H,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(b,T){return b.apply(null,[this].concat([].slice.call(T)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},d.fromRatio=function(b,T){if(typeof b=="object"){var j={};for(var G in b)b.hasOwnProperty(G)&&(G==="a"?j[G]=b[G]:j[G]=ee(b[G]));b=j}return d(b,T)};function u(b){var T={r:0,g:0,b:0},j=1,G=null,Q=null,K=null,pe=!1,le=!1;return typeof b=="string"&&(b=Oe(b)),typeof b=="object"&&(be(b.r)&&be(b.g)&&be(b.b)?(T=h(b.r,b.g,b.b),pe=!0,le=String(b.r).substr(-1)==="%"?"prgb":"rgb"):be(b.h)&&be(b.s)&&be(b.v)?(G=ee(b.s),Q=ee(b.v),T=v(b.h,G,Q),pe=!0,le="hsv"):be(b.h)&&be(b.s)&&be(b.l)&&(G=ee(b.s),K=ee(b.l),T=p(b.h,G,K),pe=!0,le="hsl"),b.hasOwnProperty("a")&&(j=b.a)),j=L(j),{ok:pe,format:b.format||le,r:s(255,l(T.r,0)),g:s(255,l(T.g,0)),b:s(255,l(T.b,0)),a:j}}function h(b,T,j){return{r:W(b,255)*255,g:W(T,255)*255,b:W(j,255)*255}}function f(b,T,j){b=W(b,255),T=W(T,255),j=W(j,255);var G=l(b,T,j),Q=s(b,T,j),K,pe,le=(G+Q)/2;if(G==Q)K=pe=0;else{var Me=G-Q;switch(pe=le>.5?Me/(2-G-Q):Me/(G+Q),G){case b:K=(T-j)/Me+(T1&&(tt-=1),tt<1/6?We+(Kt-We)*6*tt:tt<1/2?Kt:tt<2/3?We+(Kt-We)*(2/3-tt)*6:We}if(T===0)G=Q=K=j;else{var le=j<.5?j*(1+T):j+T-j*T,Me=2*j-le;G=pe(Me,le,b+1/3),Q=pe(Me,le,b),K=pe(Me,le,b-1/3)}return{r:G*255,g:Q*255,b:K*255}}function g(b,T,j){b=W(b,255),T=W(T,255),j=W(j,255);var G=l(b,T,j),Q=s(b,T,j),K,pe,le=G,Me=G-Q;if(pe=G===0?0:Me/G,G==Q)K=0;else{switch(G){case b:K=(T-j)/Me+(T>1)+720)%360;--T;)G.h=(G.h+Q)%360,K.push(d(G));return K}function M(b,T){T=T||6;for(var j=d(b).toHsv(),G=j.h,Q=j.s,K=j.v,pe=[],le=1/T;T--;)pe.push(d({h:G,s:Q,v:K})),K=(K+le)%1;return pe}d.mix=function(b,T,j){j=j===0?0:j||50;var G=d(b).toRgb(),Q=d(T).toRgb(),K=j/100,pe={r:(Q.r-G.r)*K+G.r,g:(Q.g-G.g)*K+G.g,b:(Q.b-G.b)*K+G.b,a:(Q.a-G.a)*K+G.a};return d(pe)},d.readability=function(b,T){var j=d(b),G=d(T);return(t.max(j.getLuminance(),G.getLuminance())+.05)/(t.min(j.getLuminance(),G.getLuminance())+.05)},d.isReadable=function(b,T,j){var G=d.readability(b,T),Q,K;switch(K=!1,Q=Ae(j),Q.level+Q.size){case"AAsmall":case"AAAlarge":K=G>=4.5;break;case"AAlarge":K=G>=3;break;case"AAAsmall":K=G>=7;break}return K},d.mostReadable=function(b,T,j){var G=null,Q=0,K,pe,le,Me;j=j||{},pe=j.includeFallbackColors,le=j.level,Me=j.size;for(var We=0;WeQ&&(Q=K,G=d(T[We]));return d.isReadable(b,G,{level:le,size:Me})||!pe?G:(j.includeFallbackColors=!1,d.mostReadable(b,["#fff","#000"],j))};var V=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=d.hexNames=Z(V);function Z(b){var T={};for(var j in b)b.hasOwnProperty(j)&&(T[b[j]]=j);return T}function L(b){return b=parseFloat(b),(isNaN(b)||b<0||b>1)&&(b=1),b}function W(b,T){ce(b)&&(b="100%");var j=he(b);return b=s(T,l(0,parseFloat(b))),j&&(b=parseInt(b*T,10)/100),t.abs(b-T)<1e-6?1:b%T/parseFloat(T)}function J(b){return s(1,l(0,b))}function Y(b){return parseInt(b,16)}function ce(b){return typeof b=="string"&&b.indexOf(".")!=-1&&parseFloat(b)===1}function he(b){return typeof b=="string"&&b.indexOf("%")!=-1}function F(b){return b.length==1?"0"+b:""+b}function ee(b){return b<=1&&(b=b*100+"%"),b}function ue(b){return t.round(parseFloat(b)*255).toString(16)}function re(b){return Y(b)/255}var te=function(){var b="[-\\+]?\\d+%?",T="[-\\+]?\\d*\\.\\d+%?",j="(?:"+T+")|(?:"+b+")",G="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",Q="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?";return{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+G),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+G),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+G),hsva:new RegExp("hsva"+Q),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 be(b){return!!te.CSS_UNIT.exec(b)}function Oe(b){b=b.replace(n,"").replace(i,"").toLowerCase();var T=!1;if(V[b])b=V[b],T=!0;else if(b=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var j;return(j=te.rgb.exec(b))?{r:j[1],g:j[2],b:j[3]}:(j=te.rgba.exec(b))?{r:j[1],g:j[2],b:j[3],a:j[4]}:(j=te.hsl.exec(b))?{h:j[1],s:j[2],l:j[3]}:(j=te.hsla.exec(b))?{h:j[1],s:j[2],l:j[3],a:j[4]}:(j=te.hsv.exec(b))?{h:j[1],s:j[2],v:j[3]}:(j=te.hsva.exec(b))?{h:j[1],s:j[2],v:j[3],a:j[4]}:(j=te.hex8.exec(b))?{r:Y(j[1]),g:Y(j[2]),b:Y(j[3]),a:re(j[4]),format:T?"name":"hex8"}:(j=te.hex6.exec(b))?{r:Y(j[1]),g:Y(j[2]),b:Y(j[3]),format:T?"name":"hex"}:(j=te.hex4.exec(b))?{r:Y(j[1]+""+j[1]),g:Y(j[2]+""+j[2]),b:Y(j[3]+""+j[3]),a:re(j[4]+""+j[4]),format:T?"name":"hex8"}:(j=te.hex3.exec(b))?{r:Y(j[1]+""+j[1]),g:Y(j[2]+""+j[2]),b:Y(j[3]+""+j[3]),format:T?"name":"hex"}:!1}function Ae(b){var T,j;return b=b||{level:"AA",size:"small"},T=(b.level||"AA").toUpperCase(),j=(b.size||"small").toLowerCase(),T!=="AA"&&T!=="AAA"&&(T="AA"),j!=="small"&&j!=="large"&&(j="small"),{level:T,size:j}}e.exports?e.exports=d:window.tinycolor=d})(Math)}),Lc=function(e){var t={hex:"#ffffff",alpha:100},n=Qe(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},bh=function(e,t){var n=Ct(It(e),2),i=n[0],o=n[1];return Tt(function(){var a=setTimeout(function(){o(e)},t);return function(){clearTimeout(a)}},[e,t]),i},nv=[{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"}],yh=function(e){var t,n,i=Qe(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=Ch(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=Ct(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=nv.find(function(v){return v.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(v,w){var k=[""+v.color,w];return(v.position||v.position===0)&&k.splice(1,0,v.position),k})}}},Co=function(e,t,n,i){var o=Qe(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},Wn=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 Co(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")"),typeof n=="string"&&(a="linear-gradient("+n+", "+t.map(function(s){return Co(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")");break;case"radial":a="radial-gradient("+n+", "+t.map(function(s){return Co(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")";break}return a},Vo=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})}},zo=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("")},rv=function(e){return!!zo(e)},ni=function(e,t){return new RegExp(e.reduce(function(n,i){return n+(typeof i=="string"?i:i.source)},""),t)},iv=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=ni(["(?:",a,"|","(?:rgb|hsl)",s,"|","(?:rgba|hsla)",l,"|",d,")"],""),h=ni([u,"(?:\\s+",c,"(?:\\s+",c,")?)?"],""),f=ni(["(?:",h,o,")*",h],""),p=ni(["(?:(",t,")|",n,"|",i,")"],""),g=ni(["(?:(",p,")",o,")?(",f,")"],e),v=ni(["\\s*(",u,")","(?:\\s+","(",c,"))?","(?:",o,"\\s*)?"],e);return{gradientSearch:g,colorStopSearch:v}},ov=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=fe(fe({},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=Qe(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},Ch=function(e){var t=iv(),n,i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/,o=i.exec(e);return o!==null?(n=ov(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},D1=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=Qe(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 Qe(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=Qe({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=Qe({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=Qe({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=Qe({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=Qe(fe(fe({},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=Qe(fe(fe({},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=Qe(fe(fe({},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}(),av=200,sv=150,lv=function(e){var t=e.rootPrefixCls,n=e.color,i=e.colorBoardHeight,o=e.onChange,a=e.setChange,s=Wr(),l=function(){a(!1),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",g)},c=function(){a(!1),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",f)};Tt(function(){return function(){l(),c()}},[]);var d=function(x){x.preventDefault();var y=x.buttons;if(y===1){l();var N=x.clientX,O=x.clientY;w({x:N,y:O}),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,N=x.targetTouches[0].clientY;w({x:y,y:N}),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,N=x.targetTouches[0].clientY;w({x:y,y:N})},f=function(){c()},p=function(x){x.preventDefault();var y=x.clientX,N=x.clientY;w({x:y,y:N})},g=function(x){x.preventDefault();var y=x.clientX,N=x.clientY;w({x:y,y:N}),l()},v=function(){return t+"-board"},w=function(x){var y=s&&s.current.getBoundingClientRect(),N=x.x-y.left,O=x.y-y.top,S=y.width||av,A=y.height||sv;N=Math.max(0,N),N=Math.min(N,S),O=Math.max(0,O),O=Math.min(O,A),n.saturation=N/S,n.brightness=1-O/A,o(n)},k=v(),$={h:n.hue,s:1,v:1},D=new D1($).toHexString(),_=n.saturation*100,H=(1-n.brightness)*100;return X.createElement("div",{className:k,ref:s},X.createElement("div",{className:k+"-hsv",style:{backgroundColor:D,height:i+"px",minHeight:i+"px"}},X.createElement("div",{className:k+"-value"}),X.createElement("div",{className:k+"-saturation"})),X.createElement("span",{style:{left:"calc("+_+"% - 7px)",top:"calc("+H+"% - 7px)",backgroundColor:n.toHexString()}}),X.createElement("div",{className:k+"-handler",onMouseDown:d,onTouchStart:u}))},cv=function(e){var t=e.rootPrefixCls,n=e.color,i=e.onChange,o=e.setChange,a=Wr(),s=function(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",u)},l=function(){o(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",p)};Tt(function(){return function(){s(),l()}},[]);var c=function(H){H.preventDefault();var x=H.clientX,y=H.clientY;v({x,y}),window.addEventListener("mousemove",d),window.addEventListener("mouseup",u)},d=function(H){var x=H.clientX,y=H.clientY;v({x,y})},u=function(H){var x=H.clientX,y=H.clientY;v({x,y}),o(!1),s()},h=function(H){if(H.cancelable&&H.preventDefault(),H.touches.length===1){l();var x=H.targetTouches[0].clientX,y=H.targetTouches[0].clientY;v({x,y}),window.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}},f=function(H){H.cancelable&&H.preventDefault();var x=H.targetTouches[0].clientX,y=H.targetTouches[0].clientY;v({x,y})},p=function(){l()},g=function(){return t+"-ribbon"},v=function(H){var x=a&&a.current.getBoundingClientRect(),y=x.width,N=H.x-x.left;N=Math.max(0,N),N=Math.min(N,y);var O=N/y,S=O*360;n.hue=S,i(n)},w={h:n.hue,s:1,v:1},k=new D1(w).toHexString(),$=g(),D=n.hue,_=D/360*100;return X.createElement("div",{className:$,ref:a,onMouseDown:c,onTouchStart:h},X.createElement("div",{className:"color-picker-panel-ribbon-bg"}),X.createElement("span",{style:{left:_+"%",backgroundColor:k}}),X.createElement("div",{className:$+"-handler"}))},d0=function(e,t,n,i){return"rgba("+[e,t,n,i/100].join(",")+")"},dv=function(e){var t=e.rootPrefixCls,n=e.color,i=e.alpha,o=e.onChange,a=e.setChange,s=Wr(),l=function(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},c=function(){a(!1),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",g)};Tt(function(){return function(){l(),c()}},[]);var d=function(_){var H=_.clientX,x=_.clientY;k({x:H,y:x}),window.addEventListener("mousemove",u),window.addEventListener("mouseup",h)},u=function(_){var H=_.clientX,x=_.clientY;k({x:H,y:x})},h=function(_){var H=_.clientX,x=_.clientY;k({x:H,y:x}),a(!1),l()},f=function(_){if(_.cancelable&&_.preventDefault(),_.touches.length===1){c();var H=_.targetTouches[0].clientX,x=_.targetTouches[0].clientY;k({x:H,y:x}),window.addEventListener("touchmove",p,{passive:!1}),window.addEventListener("touchend",g,{passive:!1})}},p=function(_){_.cancelable&&_.preventDefault();var H=_.targetTouches[0].clientX,x=_.targetTouches[0].clientY;k({x:H,y:x})},g=function(){c()},v=function(){var _=n.red,H=n.green,x=n.blue,y="linear-gradient(to right, "+d0(_,H,x,0)+" , "+d0(_,H,x,100)+")";return y},w=function(){return t+"-alpha"},k=function(_){var H=s&&s.current.getBoundingClientRect(),x=H.width,y=_.x-H.left;y=Math.max(0,y),y=Math.min(y,x);var N=Math.round(y/x*100);o(N)},$=function(){var _=n.red,H=n.green,x=n.blue,y=(i||1)/100;return"rgba("+_+", "+H+", "+x+", "+y+")"},D=w();return X.createElement("div",{className:D,ref:s,onMouseDown:d,onTouchStart:f},X.createElement("div",{className:D+"-bg",style:{background:v()}}),X.createElement("span",{style:{left:i+"%",backgroundColor:$()}}),X.createElement("div",{className:D+"-handler"}))},_h=function(e){var t=e.alpha,n=e.className,i=e.hex,o=e.colorBoardHeight,a=e.showAlpha,s=e.onChange,l=Wr(),c=new D1(i);c.alpha=t;var d=Ct(It({color:c,alpha:t}),2),u=d[0],h=d[1],f=Ct(It(!1),2),p=f[0],g=f[1];Tt(function(){p||h({color:c,alpha:t})},[i,t]);var v=function(k){g(!0);var $=u.color;$.alpha=k,h({color:$,alpha:k}),s({hex:$.toHexString(),alpha:k})},w=function(k){g(!0);var $=u.alpha;k.alpha=$,h(fe(fe({},u),{color:k,alpha:k.alpha})),s({hex:k.toHexString(),alpha:k.alpha})};return X.createElement("div",{ref:l,className:["color-picker-panel",n].join(" "),tabIndex:0},X.createElement("div",{className:"color-picker-panel-inner"},X.createElement(lv,{rootPrefixCls:"color-picker-panel",color:u.color,colorBoardHeight:o,onChange:w,setChange:g}),X.createElement("div",{className:"color-picker-panel-wrap"+(a?" color-picker-panel-wrap-has-alpha":"")},X.createElement("div",{className:"color-picker-panel-wrap-ribbon"},X.createElement(cv,{rootPrefixCls:"color-picker-panel",color:u.color,onChange:w,setChange:g})),a&&X.createElement("div",{className:"color-picker-panel-wrap-alpha"},X.createElement(dv,{rootPrefixCls:"color-picker-panel",alpha:u.alpha,color:u.color,onChange:v,setChange:g})))))};k1(`.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 uv=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},hv=function(e){return e?e.substr(0,3).replace(/[^\d]/g,""):""},fv=function(e){return e&&e.substring(0,1)==="#"&&(e=e.substring(1)),e?e.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""},pv=function(e,t){e.key==="Enter"&&t()},gv=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(fv(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(hv(i.target.value))},name:"alpha"};return e.showAlpha===!1?[t]:[t,n]},Sh=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=Ct(It({alpha:n,hex:t}),2),u=d[0],h=d[1],f=function(w){var k=uv(w);h(fe(fe({},u),{alpha:Number(k)}))},p=function(w){h(fe(fe({},u),{hex:w}))},g=function(){var w=Qe(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(Co(w.toRgbString(),o,s,u.alpha))):(h({hex:t,alpha:n}),l({hex:t,alpha:n}))};Tt(function(){h({hex:t,alpha:n})},[t,n]);var v={alphaValue:u.alpha,hexValue:u.hex.replace(/#/i,""),onChangeAlpha:f,onChangeHex:p,showAlpha:s};return X.createElement("div",{className:"input_rgba"},X.createElement("div",{className:"input_rgba-wrap"},gv(v).map(function(w,k){var $=w.wrapClass,D=w.labelSymbol,_=w.idInput,H=w.valueInput,x=w.labelText,y=w.labelArea,N=w.labelClass,O=w.onChangeInput,S=w.name;return X.createElement("div",{className:$,key:k},D&&X.createElement("label",{htmlFor:"rgba-hex",className:"input_rgba-hex-label"},"#"),S==="alpha"&&X.createElement("label",{htmlFor:_,className:"input_rgba-alpha-label"},"%"),X.createElement("input",{type:"text",id:_,value:H,"aria-label":y,onChange:function(A){return O(A)},onBlur:g,onKeyPress:function(A){return pv(A,g)}}),X.createElement("div",{className:N},x))})))},mv=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=Wr(),p=Ct(It(!1),2),g=p[0],v=p[1],w=Ct(It(!1),2),k=w[0],$=w[1],D=t.stops,_=t.type,H=t.modifier,x=function(R){if(a(!1),R.stopPropagation(),!!h){var Z=R.target;if(Z.className!=="gradient-marker"){var L=Z.getBoundingClientRect(),W=R.clientX-L.left,J=Number((100/L.width*W).toFixed(0))/100,Y=Qe(i.hex);Y.setAlpha(i.alpha/100);var ce=xh(t.stops,[[Y.toRgbString(),J,t.stops.length]]).sort(function(he,F){return he[1]-F[1]}).map(function(he,F){return he[2]=F,he});n(fe(fe({},t),{gradient:""+Wn(_,ce,H,l,d),stops:ce})),o(fe(fe({},i),{loc:J,index:ce.find(function(he){return he[1]===J})[2]}))}}},y=function(){window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",A)},N=function(){window.removeEventListener("touchmove",P),window.removeEventListener("touchend",z)},O=function(R,Z){if(R.preventDefault(),R.stopPropagation(),R.nativeEvent.stopImmediatePropagation(),R.detail!==2&&(a(!1),R.button===0)){var L=Qe(Z[0]);o({hex:"#"+L.toHex(),alpha:L.getAlpha()*100,loc:Z[1],index:Z[2]});var W=R.clientX,J=R.clientY;M({x:W,y:J}),window.addEventListener("mousemove",S),window.addEventListener("mouseup",A)}},S=function(R){var Z,L=R.clientX,W=R.clientY,J=(Z=f==null?void 0:f.current)===null||Z===void 0?void 0:Z.getBoundingClientRect(),Y=W-J.y;if(Y>80&&D.length>2){$(!0);return}else $(!1);M({x:L,y:W})},A=function(R){var Z,L=R.clientX,W=R.clientY,J=(Z=f==null?void 0:f.current)===null||Z===void 0?void 0:Z.getBoundingClientRect(),Y=W-J.y;Y>80&&D.length>2&&v(!0),M({x:L,y:W}),y()},E=function(R,Z){if(a(!1),R.cancelable&&R.preventDefault(),R.touches.length===1){N();var L=Qe(Z[0]);o({hex:"#"+L.toHex(),alpha:L.getAlpha()*100,loc:Z[1],index:Z[2]});var W=R.targetTouches[0].clientX,J=R.targetTouches[0].clientY;M({x:W,y:J}),window.addEventListener("touchmove",P,{passive:!1}),window.addEventListener("touchend",z,{passive:!1})}},P=function(R){var Z;R.cancelable&&R.preventDefault();var L=R.targetTouches[0].clientX,W=R.targetTouches[0].clientY,J=(Z=f==null?void 0:f.current)===null||Z===void 0?void 0:Z.getBoundingClientRect(),Y=W-J.y;if(Y>80&&D.length>2){$(!0);return}else $(!1);M({x:L,y:W})},z=function(){N()},M=function(R){var Z=f&&f.current.getBoundingClientRect(),L=Z.width,W=R.x-Z.left;W=Math.max(0,W),W=Math.min(W,L);var J=Number((100/Z.width*W).toFixed(0))/100;o(function(Y){return fe(fe({},Y),{loc:J})})},V=function(){if(!(D.length<=2)){var R=D.filter(function(Y){return Y[2]!==i.index}).map(function(Y,ce){return Y[2]=ce,Y}),Z=Vo(R[R.length-1][0]),L=R[R.length-1][1],W=zo([Z[0],Z[1],Z[2]]),J=R[R.length-1][2];return v(!1),$(!1),o({hex:W,alpha:Number(Math.round(Z[3]*100)),loc:L,index:J}),n(fe(fe({},t),{gradient:""+Wn(_,R,H,l,d),stops:R}))}};return Tt(function(){if(g)return V();var R=D.map(function(Z){return i.index===Z[2]?[Z[0],i.loc,Z[2]]:Z});n(fe(fe({},t),{gradient:""+Wn(_,R,H,l,d),stops:R}))},[i.loc,g]),Tt(function(){return function(){y(),N()}},[]),X.createElement("div",{className:"gradient-stops",onClick:function(R){return x(R)},ref:f},X.createElement("div",{className:"gradient-stop-preview",style:{background:"linear-gradient(to right, "+D.map(function(R){return R[0]+" "+R[1]*100+"%"}).join(", ")+")"}}),X.createElement("div",{className:"gradient-stop-marker"},D.map(function(R){var Z=R[1]*100,L=R[0];return X.createElement("div",{key:L+Z+Math.random()*100,className:"gradient-marker"+(k&&i.index===R[2]?" hide":"")+(!k&&i.index===R[2]?" active":""),style:{left:Math.abs(Math.min(Z,100))+"%",color:L},onTouchStart:function(W){return E(W,R)},onMouseDown:function(W){return O(W,R)},onClick:function(W){return W.stopPropagation()},onDoubleClick:V})})))},vv=function(e){var t="solid",n=Qe(e).isValid();if(e){if(e==="transparent"||n&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient"))return t="solid",t;var i=Vo(e);if(i){if(rv([i[0],i[1],i[2]]))return t="solid",t}else return t="gradient",t}return t},u0=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=xh(new Set(e));switch(t){case"solid":return n.filter(function(i,o){var a=Qe(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=Ch(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[]}},jh=function(e,t){if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;ne.gradient);function Dh({value:e,onChange:t}){const n=Hi(i=>{t(i)},0);return r.jsx("div",{className:"brandy-gradient-picker",children:r.jsx(Sv,{value:e,onChange:n,gradient:!0,solid:!1,defaultColors:jv})})}function $1(){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 kv=window.React.useEffect,ui=window.React.useMemo,ka=window.React.useState,Dv=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"}];function De({color:e,onChange:t=()=>!1,hideGlobals:n=!1,usingGradient:i=!1}){const[o,a]=ka(null),[s,l]=ka(null),{styles:c,attributes:d}=$n(o,s),[u,h]=ka(!1),f=()=>{h(_=>!_)},p=()=>{h(!1)},g=ui(()=>wh(e),[e]),[v,w]=ka(e!=null&&e.includes("gradient")?"gradient":"solid");kv(()=>{const _=H=>{o==null&&s==null&&p(),!(s!=null&&s.contains(H.target))&&!(o!=null&&o.contains(H.target))&&p()};return window.jQuery(document).on("click","body",_),()=>{window.jQuery(document).off("click","body",_)}},[o,s]);const k=ui(()=>g.color==""||g.color.endsWith("00")&&g.color.length>7,[g]),$=ui(()=>g.color=="",[g]),D=ui(()=>g.isGlobal,[g]);return r.jsxs(Ev,{className:"brandy-color-picker",children:[r.jsxs(Hv,{className:"brandy-color-preview",style:{background:g.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))"},{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"},k&&de(["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:[k&&r.jsx(Mv,{className:"[&_svg]:fill-[#A1ABB7]",children:$?r.jsx($1,{}):r.jsx(gh,{})}),D&&r.jsx(Iv,{children:r.jsx(L6,{})})]}),u&&r.jsxs(Tv,{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))"},{zIndex:"99999999"},{borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))"},{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(Lv,{children:r.jsx(Mt,{options:Dv,selected:v??"solid",onChange:_=>{w(_)}})}),i&&v==="gradient"?r.jsx(Dh,{value:e??"",onChange:t}):r.jsx($h,{color:e,onChange:t,hideGlobals:n})]})]})}const Tl=de([""," &.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"}),$v="#ffffff00",$h=({color:e,onChange:t=()=>!1,hideGlobals:n=!1})=>{const i=ui(()=>vh(),[]),o=ui(()=>wh(e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Av,{children:r.jsx(j6,{color:o.color||$v,onChange:t})}),r.jsx(Rv,{children:r.jsx(Nv,{value:o.color||"NULL",onChange:t})}),!n&&r.jsxs("div",{children:[r.jsx(Bv,{children:I("Theme colors")}),r.jsx(Ov,{children:i.theme.map((a,s)=>r.jsx(Le,{title:a.name,children:r.jsx(Pv,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css4:[Tl]})},s))}),r.jsx(Vv,{children:I("Palette colors")}),r.jsxs(zv,{children:[i.palette.map((a,s)=>r.jsx(Le,{title:a.name,style:{textTransform:"capitalize"},children:r.jsx(Fv,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css5:[Tl]})},s)),r.jsx(Zv,{className:`dashicons ${o.color==""?"selected":""} global-block transparent-block`,onClick:()=>{t("")},$_css6:[Tl]})]})]})]})};var Ev=m("div")({position:"relative"}),Hv=m("div")`${e=>e.$_css2}`,Mv=m("span")({position:"relative",display:"inline-block"}),Iv=m("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))"},"& svg *[fill]":{fill:"#fff"}}),Tv=m("div")`${e=>e.$_css3}`,Lv=m("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"}),Av=m("div")({padding:"1rem",">.react-colorful":{width:"100%"}}),Rv=m("div")({borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),Nv=m(st)({width:"100%"}),Bv=m("div")({marginLeft:"1rem",marginRight:"1rem",marginTop:"1rem",fontWeight:"500"}),Ov=m("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),Pv=m("div")`${e=>e.$_css4}`,Vv=m("div")({marginLeft:"1rem",marginRight:"1rem",fontWeight:"500"}),zv=m("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),Fv=m("div")`${e=>e.$_css5}`,Zv=m("div").withConfig({displayName:"ColorPicker___StyledDiv13",componentId:"sc-g829wk-0"})(["",""],e=>e.$_css6);function cr(e){"@babel/helpers - typeof";return cr=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},cr(e)}function Wv(e,t){if(cr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(cr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gv(e){var t=Wv(e,"string");return cr(t)=="symbol"?t:t+""}function jn(e,t,n){return(t=Gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x0(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 Dt(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(na(!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=ae.F1&&n<=ae.F12)return!1;switch(n){case ae.ALT:case ae.CAPS_LOCK:case ae.CONTEXT_MENU:case ae.CTRL:case ae.DOWN:case ae.END:case ae.ESC:case ae.HOME:case ae.INSERT:case ae.LEFT:case ae.MAC_FF_META:case ae.META:case ae.NUMLOCK:case ae.NUM_CENTER:case ae.PAGE_DOWN:case ae.PAGE_UP:case ae.PAUSE:case ae.PRINT_SCREEN:case ae.RIGHT:case ae.SHIFT:case ae.UP:case ae.WIN_KEY:case ae.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ae.ZERO&&t<=ae.NINE||t>=ae.NUM_ZERO&&t<=ae.NUM_MULTIPLY||t>=ae.A&&t<=ae.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ae.SPACE:case ae.QUESTION_MARK:case ae.NUM_PLUS:case ae.NUM_MINUS:case ae.NUM_PERIOD:case ae.NUM_DIVISION:case ae.SEMICOLON:case ae.DASH:case ae.EQUALS:case ae.COMMA:case ae.PERIOD:case ae.SLASH:case ae.APOSTROPHE:case ae.SINGLE_QUOTE:case ae.OPEN_SQUARE_BRACKET:case ae.BACKSLASH:case ae.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const cw=window.React;var Gr=cw.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),dw=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const Rl=window.React;var S0=Rl.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=Mh(e,dw),g=Rl.useContext(Gr),v=g.min,w=g.max,k=g.direction,$=g.disabled,D=g.keyboard,_=g.range,H=g.tabIndex,x=g.ariaLabelForHandle,y=g.ariaLabelledByForHandle,N=g.ariaValueTextFormatterForHandle,O=g.styles,S=g.classNames,A="".concat(n,"-handle"),E=function(Y){$||a(Y,o)},P=function(Y){h==null||h(Y,o)},z=function(Y){f(Y,o)},M=function(Y){if(!$&&D){var ce=null;switch(Y.which||Y.keyCode){case ae.LEFT:ce=k==="ltr"||k==="btt"?-1:1;break;case ae.RIGHT:ce=k==="ltr"||k==="btt"?1:-1;break;case ae.UP:ce=k!=="ttb"?1:-1;break;case ae.DOWN:ce=k!=="ttb"?-1:1;break;case ae.HOME:ce="min";break;case ae.END:ce="max";break;case ae.PAGE_UP:ce=2;break;case ae.PAGE_DOWN:ce=-2;break}ce!==null&&(Y.preventDefault(),d(ce,o))}},V=function(Y){switch(Y.which||Y.keyCode){case ae.LEFT:case ae.RIGHT:case ae.UP:case ae.DOWN:case ae.HOME:case ae.END:case ae.PAGE_UP:case ae.PAGE_DOWN:u==null||u();break}},R=E1(k,i,v,w),Z={};if(o!==null){var L;Z={tabIndex:$?null:hi(H,o),role:"slider","aria-valuemin":v,"aria-valuemax":w,"aria-valuenow":i,"aria-disabled":$,"aria-label":hi(x,o),"aria-labelledby":hi(y,o),"aria-valuetext":(L=hi(N,o))===null||L===void 0?void 0:L(i),"aria-orientation":k==="ltr"||k==="rtl"?"horizontal":"vertical",onMouseDown:E,onTouchStart:E,onFocus:P,onMouseEnter:z,onKeyDown:M,onKeyUp:V}}var W=Rl.createElement("div",Fo({ref:t,className:_e(A,jn(jn({},"".concat(A,"-").concat(o+1),o!==null&&_),"".concat(A,"-dragging"),c),S.handle),style:Dt(Dt(Dt({},R),s),O.handle)},Z,p));return l&&(W=l(W,{index:o,prefixCls:n,value:i,dragging:c})),W}),uw=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"];const er=window.React;var hw=er.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=Mh(e,uw),f=er.useRef({});er.useImperativeHandle(t,function(){return{focus:function(H){var x;(x=f.current[H])===null||x===void 0||x.focus()}}});var p=er.useState(-1),g=Ot(p,2),v=g[0],w=g[1],k=function(H,x){w(x),u==null||u(H)},$=function(H,x){w(x)},D=Dt({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:k,onMouseEnter:$},h);return er.createElement(er.Fragment,null,s.map(function(_,H){return er.createElement(S0,Fo({ref:function(y){y?f.current[H]=y:delete f.current[H]},dragging:d===H,style:hi(i,H),key:H,value:_,valueIndex:H},D))}),c&&er.createElement(S0,Fo({key:"a11y"},D,{value:s[v],valueIndex:null,dragging:d!==-1,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const j0=window.React;var fw=function(t){var n=t.prefixCls,i=t.style,o=t.children,a=t.value,s=t.onClick,l=j0.useContext(Gr),c=l.min,d=l.max,u=l.direction,h=l.includedStart,f=l.includedEnd,p=l.included,g="".concat(n,"-text"),v=E1(u,a,c,d);return j0.createElement("span",{className:_e(g,jn({},"".concat(g,"-active"),p&&h<=a&&a<=f)),style:Dt(Dt({},v),i),onMouseDown:function(k){k.stopPropagation()},onClick:function(){s(a)}},o)};const k0=window.React;var pw=function(t){var n=t.prefixCls,i=t.marks,o=t.onClick,a="".concat(n,"-mark");return i.length?k0.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,d=s.label;return k0.createElement(fw,{key:l,prefixCls:a,style:c,value:l,onClick:o},d)})):null};const D0=window.React;var gw=function(t){var n=t.prefixCls,i=t.value,o=t.style,a=t.activeStyle,s=D0.useContext(Gr),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,v=Dt(Dt({},E1(d,i,l,c)),typeof o=="function"?o(i):o);return g&&(v=Dt(Dt({},v),typeof a=="function"?a(i):a)),D0.createElement("span",{className:_e(p,jn({},"".concat(p,"-active"),g)),style:v})};const Da=window.React;var mw=function(t){var n=t.prefixCls,i=t.marks,o=t.dots,a=t.style,s=t.activeStyle,l=Da.useContext(Gr),c=l.min,d=l.max,u=l.step,h=Da.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 Da.createElement("div",{className:"".concat(n,"-step")},h.map(function(f){return Da.createElement(gw,{prefixCls:n,key:f,value:f,style:a,activeStyle:s})}))};const $0=window.React;var E0=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=$0.useContext(Gr),u=d.direction,h=d.min,f=d.max,p=d.disabled,g=d.range,v=d.classNames,w="".concat(n,"-track"),k=Oc(o,h,f),$=Oc(a,h,f),D=function(y){!p&&l&&l(y,-1)},_={};switch(u){case"rtl":_.right="".concat(k*100,"%"),_.width="".concat($*100-k*100,"%");break;case"btt":_.bottom="".concat(k*100,"%"),_.height="".concat($*100-k*100,"%");break;case"ttb":_.top="".concat(k*100,"%"),_.height="".concat($*100-k*100,"%");break;default:_.left="".concat(k*100,"%"),_.width="".concat($*100-k*100,"%")}var H=c||_e(w,jn(jn({},"".concat(w,"-").concat(s+1),s!==null&&g),"".concat(n,"-track-draggable"),l),v.track);return $0.createElement("div",{className:H,style:Dt(Dt({},_),i),onMouseDown:D,onTouchStart:D})};const ri=window.React;var vw=function(t){var n=t.prefixCls,i=t.style,o=t.values,a=t.startPoint,s=t.onStartMove,l=ri.useContext(Gr),c=l.included,d=l.range,u=l.min,h=l.styles,f=l.classNames,p=ri.useMemo(function(){if(!d){if(o.length===0)return[];var v=a??u,w=o[0];return[{start:Math.min(v,w),end:Math.max(v,w)}]}for(var k=[],$=0;$=19;const Fn=window.React;function M0(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function _w(e,t,n,i,o,a,s,l,c){var d=Fn.useState(null),u=Ot(d,2),h=u[0],f=u[1],p=Fn.useState(-1),g=Ot(p,2),v=g[0],w=g[1],k=Fn.useState(n),$=Ot(k,2),D=$[0],_=$[1],H=Fn.useState(n),x=Ot(H,2),y=x[0],N=x[1],O=Fn.useRef(null),S=Fn.useRef(null);Fn.useLayoutEffect(function(){v===-1&&_(n)},[n,v]),Fn.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",S.current)}},[]);var A=function(V,R){D.some(function(Z,L){return Z!==V[L]})&&(R!==void 0&&f(R),_(V),s(V))},E=Rc(function(M,V){if(M===-1){var R=y[0],Z=y[y.length-1],L=i-R,W=o-Z,J=V*(o-i);J=Math.max(J,L),J=Math.min(J,W);var Y=a(R+J);J=Y-R;var ce=y.map(function(ue){return ue+J});A(ce)}else{var he=(o-i)*V,F=ar(D);F[M]=y[M];var ee=c(F,he,M,"dist");A(ee.values,ee.value)}}),P=function(V,R,Z){V.stopPropagation();var L=Z||n,W=L[R];w(R),f(W),N(L);var J=M0(V),Y=J.pageX,ce=J.pageY,he=function(ue){ue.preventDefault();var re=M0(ue),te=re.pageX,be=re.pageY,Oe=te-Y,Ae=be-ce,b=e.current.getBoundingClientRect(),T=b.width,j=b.height,G;switch(t){case"btt":G=-Ae/j;break;case"ttb":G=Ae/j;break;case"rtl":G=-Oe/T;break;default:G=Oe/T}E(R,G)},F=function ee(ue){ue.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",he),document.removeEventListener("touchend",ee),document.removeEventListener("touchmove",he),O.current=null,S.current=null,w(-1),l()};document.addEventListener("mouseup",F),document.addEventListener("mousemove",he),document.addEventListener("touchend",F),document.addEventListener("touchmove",he),O.current=he,S.current=F},z=Fn.useMemo(function(){var M=ar(n).sort(function(R,Z){return R-Z}),V=ar(D).sort(function(R,Z){return R-Z});return M.every(function(R,Z){return R===V[Z]})?D:n},[n,D]);return[v,h,z,P]}const Nl=window.React;function Sw(e,t,n,i,o,a){var s=Nl.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),l=Nl.useCallback(function(p){if(n!==null){var g=e+Math.round((s(p)-e)/n)*n,v=function(D){return(String(D).split(".")[1]||"").length},w=Math.max(v(n),v(t),v(e)),k=Number(g.toFixed(w));return e<=k&&k<=t?k:null}return null},[n,e,t,s]),c=Nl.useCallback(function(p){var g=s(p),v=i.map(function($){return $.value});n!==null&&v.push(l(p)),v.push(e,t);var w=v[0],k=t-e;return v.forEach(function($){var D=Math.abs(g-$);D<=k&&(w=$,k=D)}),w},[e,t,i,n,s,l]),d=function p(g,v,w){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var $,D=g[w],_=D+v,H=[];i.forEach(function(S){H.push(S.value)}),H.push(e,t),H.push(l(D));var x=v>0?1:-1;k==="unit"?H.push(l(D+x*n)):H.push(l(_)),H=H.filter(function(S){return S!==null}).filter(function(S){return v<0?S<=D:S>=D}),k==="unit"&&(H=H.filter(function(S){return S!==D}));var y=k==="unit"?D:_;$=H[0];var N=Math.abs($-y);if(H.forEach(function(S){var A=Math.abs(S-y);A1){var O=ar(g);return O[w]=$,p(O,v-x,w,k)}return $}else{if(v==="min")return e;if(v==="max")return t}},u=function(g,v,w){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",$=g[w],D=d(g,v,w,k);return{value:D,changed:D!==$}},h=function(g){return a===null&&g===0||typeof a=="number"&&g3&&arguments[3]!==void 0?arguments[3]:"unit",$=g.map(c),D=$[w],_=d($,v,w,k);if($[w]=_,o===!1){var H=a||0;w>0&&$[w-1]!==D&&($[w]=Math.max($[w],$[w-1]+H)),w<$.length-1&&$[w+1]!==D&&($[w]=Math.min($[w],$[w+1]-H))}else if(typeof a=="number"||a===null){for(var x=w+1;x<$.length;x+=1)for(var y=!0;h($[x]-$[x-1])&&y;){var N=u($,1,x);$[x]=N.value,y=N.changed}for(var O=w;O>0;O-=1)for(var S=!0;h($[O]-$[O-1])&&S;){var A=u($,-1,O-1);$[O-1]=A.value,S=A.changed}for(var E=$.length-1;E>0;E-=1)for(var P=!0;h($[E]-$[E-1])&&P;){var z=u($,-1,E-1);$[E-1]=z.value,P=z.changed}for(var M=0;M<$.length-1;M+=1)for(var V=!0;h($[M+1]-$[M])&&V;){var R=u($,1,M+1);$[M+1]=R.value,V=R.changed}}return{value:$[w],values:$}};return[c,f]}const Pe=window.React;var jw=Pe.forwardRef(function(e,t){var n=e.prefixCls,i=n===void 0?"rc-slider":n,o=e.className,a=e.style,s=e.classNames,l=e.styles,c=e.disabled,d=c===void 0?!1:c,u=e.keyboard,h=u===void 0?!0:u,f=e.autoFocus,p=e.onFocus,g=e.onBlur,v=e.min,w=v===void 0?0:v,k=e.max,$=k===void 0?100:k,D=e.step,_=D===void 0?1:D,H=e.value,x=e.defaultValue,y=e.range,N=e.count,O=e.onChange,S=e.onBeforeChange,A=e.onAfterChange,E=e.onChangeComplete,P=e.allowCross,z=P===void 0?!0:P,M=e.pushable,V=M===void 0?!1:M,R=e.draggableTrack,Z=e.reverse,L=e.vertical,W=e.included,J=W===void 0?!0:W,Y=e.startPoint,ce=e.trackStyle,he=e.handleStyle,F=e.railStyle,ee=e.dotStyle,ue=e.activeDotStyle,re=e.marks,te=e.dots,be=e.handleRender,Oe=e.activeHandleRender,Ae=e.tabIndex,b=Ae===void 0?0:Ae,T=e.ariaLabelForHandle,j=e.ariaLabelledByForHandle,G=e.ariaValueTextFormatterForHandle,Q=Pe.useRef(null),K=Pe.useRef(null),pe=Pe.useMemo(function(){return L?Z?"ttb":"btt":Z?"rtl":"ltr"},[Z,L]),le=Pe.useMemo(function(){return isFinite(w)?w:0},[w]),Me=Pe.useMemo(function(){return isFinite($)?$:100},[$]),We=Pe.useMemo(function(){return _!==null&&_<=0?1:_},[_]),Kt=Pe.useMemo(function(){return typeof V=="boolean"?V?We:!1:V>=0?V:!1},[V,We]),tt=Pe.useMemo(function(){return Object.keys(re||{}).map(function(Ve){var ve=re[Ve],Ee={value:Number(Ve)};return ve&&cr(ve)==="object"&&!Pe.isValidElement(ve)&&("label"in ve||"style"in ve)?(Ee.style=ve.style,Ee.label=ve.label):Ee.label=ve,Ee}).filter(function(Ve){var ve=Ve.label;return ve||typeof ve=="number"}).sort(function(Ve,ve){return Ve.value-ve.value})},[re]),Yr=Sw(le,Me,We,tt,z,Kt),pr=Ot(Yr,2),en=pr[0],On=pr[1],la=tw(x,{value:H}),Zt=Ot(la,2),xn=Zt[0],ca=Zt[1],tn=Pe.useMemo(function(){var Ve=xn==null?[]:Array.isArray(xn)?xn:[xn],ve=Ot(Ve,1),Ee=ve[0],lt=Ee===void 0?le:Ee,ct=xn===null?[]:[lt];if(y){if(ct=ar(Ve),N||xn===void 0){var rn=N>=0?N+1:2;for(ct=ct.slice(0,rn);ct.length=0&&Q.current.focus(Ve)}da(null)},[Pn]);var fl=Pe.useMemo(function(){return R&&We===null?!1:R},[R,We]),ua=function(ve,Ee){Xr(ve,Ee),S==null||S(En(gr.current))},ha=Wi!==-1;Pe.useEffect(function(){if(!ha){var Ve=tn.lastIndexOf(ul);Q.current.focus(Ve)}},[ha]);var Vn=Pe.useMemo(function(){return ar(Gi).sort(function(Ve,ve){return Ve-ve})},[Gi]),Ji=Pe.useMemo(function(){return y?[Vn[0],Vn[Vn.length-1]]:[le,Vn[0]]},[Vn,y,le]),Hn=Ot(Ji,2),fa=Hn[0],pa=Hn[1];Pe.useImperativeHandle(t,function(){return{focus:function(){Q.current.focus(0)},blur:function(){var ve,Ee=document,lt=Ee.activeElement;(ve=K.current)!==null&&ve!==void 0&&ve.contains(lt)&&(lt==null||lt.blur())}}}),Pe.useEffect(function(){f&&Q.current.focus(0)},[]);var pl=Pe.useMemo(function(){return{min:le,max:Me,direction:pe,disabled:d,keyboard:h,step:We,included:J,includedStart:fa,includedEnd:pa,range:y,tabIndex:b,ariaLabelForHandle:T,ariaLabelledByForHandle:j,ariaValueTextFormatterForHandle:G,styles:l||{},classNames:s||{}}},[le,Me,pe,d,h,We,J,fa,pa,y,b,T,j,G,l,s]);return Pe.createElement(Gr.Provider,{value:pl},Pe.createElement("div",{ref:K,className:_e(i,o,jn(jn(jn(jn({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),L),"".concat(i,"-horizontal"),!L),"".concat(i,"-with-marks"),tt.length)),style:a,onMouseDown:Ui},Pe.createElement("div",{className:_e("".concat(i,"-rail"),s==null?void 0:s.rail),style:Dt(Dt({},F),l==null?void 0:l.rail)}),Pe.createElement(vw,{prefixCls:i,style:ce,values:Vn,startPoint:Y,onStartMove:fl?ua:void 0}),Pe.createElement(mw,{prefixCls:i,marks:tt,dots:te,style:ee,activeStyle:ue}),Pe.createElement(hw,{ref:Q,prefixCls:i,style:he,values:Gi,draggingIndex:Wi,onStartMove:ua,onOffsetChange:hl,onFocus:p,onBlur:g,handleRender:be,activeHandleRender:Oe,onChangeComplete:Zi}),Pe.createElement(pw,{prefixCls:i,marks:tt,onClick:Xn})))});function Lh({value:e,onChange:t=()=>!1,min:n=0,max:i,defaultValue:o,className:a="",step:s=1}){const l=Hi(c=>{t(c)},0);return r.jsx(jw,{className:_e(["brandy-component-slider",a]),value:e,onChange:l,min:n,max:i,step:s,defaultValue:o})}var cs={exports:{}};cs.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]",v="[object Map]",w="[object Number]",k="[object Null]",$="[object Object]",D="[object Promise]",_="[object Proxy]",H="[object RegExp]",x="[object Set]",y="[object String]",N="[object Symbol]",O="[object Undefined]",S="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",P="[object Float32Array]",z="[object Float64Array]",M="[object Int8Array]",V="[object Int16Array]",R="[object Int32Array]",Z="[object Uint8Array]",L="[object Uint8ClampedArray]",W="[object Uint16Array]",J="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,ce=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,F={};F[P]=F[z]=F[M]=F[V]=F[R]=F[Z]=F[L]=F[W]=F[J]=!0,F[l]=F[c]=F[A]=F[u]=F[E]=F[h]=F[f]=F[p]=F[v]=F[w]=F[$]=F[H]=F[x]=F[y]=F[S]=!1;var ee=typeof ot=="object"&&ot&&ot.Object===Object&&ot,ue=typeof self=="object"&&self&&self.Object===Object&&self,re=ee||ue||Function("return this")(),te=t&&!t.nodeType&&t,be=te&&!0&&e&&!e.nodeType&&e,Oe=be&&be.exports===te,Ae=Oe&&ee.process,b=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),T=b&&b.isTypedArray;function j(C,B){for(var U=-1,ie=C==null?0:C.length,Ge=0,Ce=[];++U-1}function bn(C,B){var U=this.__data__,ie=ma(U,C);return ie<0?(++this.size,U.push([C,B])):U[ie][1]=B,this}Ee.prototype.clear=lt,Ee.prototype.delete=ct,Ee.prototype.get=rn,Ee.prototype.has=on,Ee.prototype.set=bn;function $t(C){var B=-1,U=C==null?0:C.length;for(this.clear();++Bgt))return!1;var qe=Ce.get(C);if(qe&&Ce.get(B))return qe==B;var Wt=-1,yn=!0,St=U&a?new ga:void 0;for(Ce.set(C,B),Ce.set(B,C);++Wt-1&&C%1==0&&C-1&&C%1==0&&C<=s}function hd(C){var B=typeof C;return C!=null&&(B=="object"||B=="function")}function Qi(C){return C!=null&&typeof C=="object"}var fd=T?pe(T):mp;function Hp(C){return $p(C)?hp(C):vp(C)}function Mp(){return[]}function Ip(){return!1}e.exports=Ep})(cs,cs.exports);var kw=cs.exports;const I1=Qt(kw);function Ah({onReset:e,hasChanged:t=!1}){const n=()=>{t&&e()};return r.jsx(Dw,{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(D6,{})})}var Dw=m("div").withConfig({displayName:"ResetButton___StyledDiv",componentId:"sc-n1cbpg-0"})(["",""],e=>e.$_css);const $w=window.React.useCallback,Ew=window.React.useContext,I0=window.React.useMemo;function T0(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 el(e){const{builder:t}=Ew(Ft),n=ne(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=ne(t)(l=>l.previewTemplate),{current:o}=ye(),a=$w(()=>{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=T0(e.sectionId),c&&(e.reset_paths??[]).forEach(h=>{const f=me(c.settings,h);Ne(l,h,f),Dn({sectionId:e.sectionId,settings:Rd(h,f),device:o,builder:t,clonedFromId:e.cloned_from}),N2({sectionId:e.sectionId,settings:Rd(h,f),device:o,builder:t})})})},[n,e,o,t]),s=I0(()=>{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=T0(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=me(l.settings,f),g=me(c.settings,f);I1(p,g)||(d=!0)},!1),d},[o,e.sectionId,e.reset_paths,i,t]);return I0(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(Hw,{children:[r.jsx(ut,{className:_e(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Ah,{onReset:a,hasChanged:s})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[a,e.title])}var Hw=m("div").withConfig({displayName:"Reset___StyledDiv",componentId:"sc-pc751i-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const Mw=window.React.useMemo,Iw=window.React.useState,Tw=[{label:I("Default"),value:"default"},{label:I("Small"),value:"small"},{label:I("Medium"),value:"medium"},{label:I("Large"),value:"large"},{label:I("Custom shadow"),value:"custom"}],Lw={x:{title:I("X offset")},y:{title:I("Y offset")},blur:{title:I("Blur")},spread:{title:I("Spread")}};function uo(e){const{current:t}=ye(),n=Mw(()=>je(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]=Iw(!1);return r.jsxs(Aw,{children:[r.jsxs(Rw,{children:[r.jsxs(Nw,{children:[r.jsx(ut,{title:e.title,className:"mb-0"}),n.enabled&&r.jsx(Bw,{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(Ow,{children:[(e.can_reset??!0)&&r.jsx(el,{...e,title:{text:""},reset_paths:[e.value_path]}),r.jsx(ea,{checked:n.enabled,onChange:i})]})]}),n.enabled&&s&&r.jsxs(Pw,{className:"box-shadow-wrapper",children:[r.jsx(pt,{options:Tw,selected:n.type,onChange:o,popupHeight:220}),n.type==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(Vw,{children:[r.jsx(zw,{children:"Shadow color"}),r.jsx(De,{color:n.custom_value.color??"#cdcdcd",onChange:a("color")})]}),Object.entries(Lw).map(([c,d])=>r.jsxs("div",{children:[r.jsx(Fw,{children:d.title}),r.jsxs(Zw,{children:[r.jsx(Ww,{type:"number",value:n.custom_value[c],min:-10,max:40,onChange:a(c)}),r.jsx(Lh,{value:n.custom_value[c],min:-10,max:40,onChange:a(c)})]})]},c))]})]})]})}var Aw=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Rw=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Nw=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Bw=m("span")`${e=>e.$_css}`,Ow=m("div")({display:"flex",alignItems:"center",gap:"0.5rem"}),Pw=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Vw=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),zw=m("span")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Fw=m("div")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Zw=m("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.75rem"}),Ww=m(st).withConfig({displayName:"BoxShadowBuilder___StyledInput",componentId:"sc-no79k6-0"})({width:"60px"});const Gw=window.React.useCallback,Bl=window.React.useMemo;function Ur({inputValue:e,onChange:t}){const{current:n}=ye(),i=Bl(()=>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=Bl(()=>{if(n=="desktop")return!0;let l=!0;return Object.values(e).forEach(c=>{Ci(c)&&c[n]!=null&&(l=!1)}),l},[n,e]),a=Gw(()=>{n!=="desktop"&&t(null)},[n,t]);return{ResetInheritButton:Bl(()=>o?()=>!1:({className:l=""})=>r.jsx(Uw,{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 Uw=m("span").withConfig({displayName:"useInheritResponsive___StyledSpan",componentId:"sc-l0r28k-0"})(["",""],e=>e.$_css);const Yw=window.React.useMemo;function ur(e){const{current:t}=ye(),n=Yw(()=>je(e.value,t),[t,e.value]),{ResetInheritButton:i}=Ur({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(Jw,{children:[r.jsx(i,{}),r.jsx(ut,{title:e.title,className:"mb-2"})]}),r.jsx(Mt,{selected:n,options:e.options??[],onChange:e.onChange})]})}var Jw=m("div").withConfig({displayName:"ButtonGroupBuilder___StyledDiv",componentId:"sc-t3hi5f-0"})({position:"relative"});const Xw=window.React.createElement,Qw=window.React.useCallback,Rh=window.React.useMemo;function qw(e){const{ResetInheritButton:t}=Ur({inputValue:e.value,onChange:i=>{Object.keys(e.value).forEach(o=>{e.onChange(i,[...e.value_path,o])})}}),n=Rh(()=>e.value.enabled_gradient,[e.value.enabled_gradient]);return r.jsxs(e9,{children:[r.jsx(t,{}),r.jsx(ut,{title:e.title,className:"mb-0"}),r.jsx(t9,{children:Object.entries(e.value).map((i,o)=>{if(i[0]!=="enabled_gradient")return Xw(Kw,{...e,attributeKey:i[0],color:i[1],key:o,usingGradient:n})})})]})}function Kw(e){const{current:t}=ye(),n=Rh(()=>je(e.color,t),[e.color,t]),i=Qw(o=>{e.onChange(o,[...e.value_path,e.attributeKey])},[e]);return r.jsx(Le,{title:e.attributeKey,style:{textTransform:"capitalize"},children:r.jsx(De,{color:n,onChange:i,usingGradient:e.usingGradient})})}var e9=m("div")({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"}),t9=m("div").withConfig({displayName:"ColorGroupBuilder___StyledDiv2",componentId:"sc-d3agj8-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const Nh=["px","em","rem","%"],Bh=({options:e=Nh,value:t="px",onChange:n=()=>!1})=>{const i=o=>a=>{a.preventDefault(),n(o)};return r.jsx("div",{className:"flex gap-2",children:e.map(o=>r.jsx("span",{className:_e(["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))})},L0=window.React.useCallback;function at({value:e,onChange:t=()=>!1,title:n="Dimension",units:i=Nh,min:o=0,max:a=100,hideUnitSelection:s=!1,step:l=1}){const c=Hi(f=>{t({...e,unit:f})},0),d=L0(f=>{c(f)},[c]),u=Hi(f=>{t({...e,value:f})},0),h=L0(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(Bh,{options:i,value:(e==null?void 0:e.unit)??"px",onChange:d})]}),r.jsxs("div",{className:"flex gap-5 items-center",children:[r.jsx(st,{type:"number",className:"w-1/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l}),r.jsx(Lh,{className:"w-2/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l})]})]})}const no=window.React.useMemo;function n9(e){const{current:t}=ye(),n=no(()=>je(e.value,t),[t,e.value]),i=no(()=>je(e.default_value,t),[e.default_value,t]),o=no(()=>(i==null?void 0:i.min)??0,[i]),a=no(()=>(i==null?void 0:i.max)??100,[i]),{ResetInheritButton:s}=Ur({inputValue:{inputValue:e.value},onChange:e.onChange});return no(()=>r.jsxs(r9,{children:[r.jsx(at,{title:r.jsx(ut,{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 r9=m("div").withConfig({displayName:"DimensionBuilder___StyledDiv",componentId:"sc-k78v94-0"})({position:"relative"});const A0=window.React.useEffect,i9=window.React.useState,o9="Select image",a9="Use this image";function s9(e={}){const t=(e==null?void 0:e.title)??o9,n=(e==null?void 0:e.buttonText)??a9,[i,o]=i9(null);return A0(()=>{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]),A0(()=>()=>{window.jQuery("#brandy-upload-media").closest('[id^="__wp-uploader-id"]').remove()},[]),{media:i}}function Oh({value:e,onChange:t}){const{media:n}=s9({onSelect:t}),i=o=>{o.preventDefault(),n&&n.open()};return r.jsx(r.Fragment,{children:e?r.jsxs(l9,{className:"group",children:[r.jsxs(c9,{children:[r.jsx(d9,{}),e&&r.jsx(u9,{src:e})]}),r.jsx(h9,{onClick:i,children:"Change photo"})]}):r.jsx(f9,{onClick:i,children:"Select photo"})})}var l9=m("div")({position:"relative",display:"flex",width:"100%",flexDirection:"column",gap:"0.5rem"}),c9=m("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))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 240 / var(--tw-bg-opacity))",backgroundSize:"cover",backgroundPosition:"center",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),d9=m("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"}}),u9=m("img")({height:"100%",width:"100%",objectFit:"contain"}),h9=m("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))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms",".group:hover &":{visibility:"visible",opacity:"1"}}),f9=m("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))","--tw-bg-opacity":"1",backgroundColor:"rgb(248 248 248 / var(--tw-bg-opacity))",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))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}});const R0=window.React.useMemo;function p9(e){const{current:t}=ye(),n=R0(()=>je(e.value,t),[t,e.value]);return R0(()=>r.jsxs(g9,{children:[r.jsx(ut,{title:e.title}),r.jsx(Oh,{value:n,onChange:e.onChange})]}),[n,e.onChange,e.title])}var g9=m("div").withConfig({displayName:"ImageBuilder___StyledDiv",componentId:"sc-1enyrgi-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const m9=window.React;function T1(e){const{current:t}=ye(),{ResetInheritButton:n}=Ur({inputValue:{inputValue:e.value},onChange:e.onChange}),i=m9.useMemo(()=>je(e.value,t),[t,e.value]);return r.jsxs(v9,{className:"switcher-builder",$_css2:[{marginBottom:"-4px",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},de(["& + .switcher-builder{margin-top:8px;margin-bottom:0 !important;}"])],children:[r.jsxs(w9,{children:[r.jsx(n,{}),r.jsx(ut,{title:e.title,className:"!mb-0"})]}),r.jsx(ea,{checked:i,onChange:e.onChange}),e.description&&r.jsx(x9,{dangerouslySetInnerHTML:{__html:e.description}})]})}var v9=m("div")`${e=>e.$_css2}`,w9=m("div")({position:"relative"}),x9=m("div").withConfig({displayName:"SwitcherBuilder___StyledDiv3",componentId:"sc-10j4p3z-0"})({marginTop:"10px",width:"100%",fontSize:"12px",fontStyle:"italic"});const b9=window.React.createContext,yr=window.React.useMemo,Oi=b9({});function y9({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=yr(()=>e.font_size,[e]),u=yr(()=>e.line_height,[e]),h=yr(()=>e.letter_spacing,[e]),f=yr(()=>e.font_style,[e.font_style]),p=yr(()=>e.transform,[e.transform]),g=yr(()=>e.decoration,[e.decoration]),v=yr(()=>({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(Oi.Provider,{value:v,children:t})}const C9=window.React.useContext,_9=window.React.useMemo;function S9(){const{current:e}=ye(),{fontSize:t,onChange:n,fontSizeMin:i,fontSizeMax:o}=C9(Oi),a=l=>{n("font_size",l)},s=_9(()=>je(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-font-size",children:r.jsx(at,{title:r.jsx(j9,{children:I("Font size")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var j9=m(ze).withConfig({displayName:"FontSize___StyledStyledSettingLabel",componentId:"sc-16fkzly-0"})({margin:"0px"});const k9=window.React.forwardRef,D9=window.React.useEffect,$9=window.React.useMemo,Ol=window.React.useRef,E9=window.React.useState,H9=window.ReactDOM.createPortal,M9=de(["svg{*[fill]{","}*[stroke]{","}}"],{fill:"#2271B1"},{stroke:"#2271B1"}),Pc=[{name:"desktop",icon:r.jsx(fh,{})},{name:"tablet",icon:r.jsx(E6,{})},{name:"mobile",icon:r.jsx(ph,{})}],I9=k9(({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:Pc.map(i=>r.jsx(T9,{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&&M9],children:i.icon},i.name))}));function L1(){const{current:e,changeDevice:t}=ye(),[n,i]=E9(!1),o=f=>{t(f)},a=$9(()=>Pc.find(f=>f.name===e)??Pc[0],[e]),s=f=>{f.preventDefault(),i(p=>!p)},l=()=>{i(!1)},c=Ol(null),d=Ol(null),u=Ol(null),h=H9(n?r.jsx(I9,{currentDevice:e,onChange:o,ref:d}):!1,u.current??document.body);return D9(()=>{const f=p=>{var g,v;c.current==null&&d.current==null&&l(),!((g=c==null?void 0:c.current)!=null&&g.contains(p.target))&&!((v=d.current)!=null&&v.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 T9=m("div").withConfig({displayName:"DeviceSwitcher___StyledDiv",componentId:"sc-1sdffvj-0"})(["",""],e=>e.$_css2);const Vc=[{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"}],L9=window.React.useContext,Pl=window.React.useMemo,A9=Vc.map(e=>({value:e.key,label:e.label}));function R9(){const{current:e}=ye(),{fontStyle:t,onChange:n}=L9(Oi),i=Pl(()=>{var l;return((l=je(t,e))==null?void 0:l.weight)??400},[e,t]),o=Pl(()=>{var l;return((l=je(t,e))==null?void 0:l.italic)??!1},[e,t]),a=Pl(()=>Vc.find(l=>l.weight===i&&l.italic===o),[i,o]),s=l=>{const c=Vc.find(d=>d.key===l);c&&n("font_style",{weight:c.weight,italic:c.italic})};return r.jsxs("div",{children:[r.jsxs(N9,{children:[r.jsx(B9,{children:I("Font style")}),r.jsx(L1,{})]}),r.jsx(pt,{options:A9,selected:(a==null?void 0:a.key)??"",onChange:s})]})}var N9=m("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"0.5rem"}),B9=m(ze).withConfig({displayName:"FontStyle___StyledStyledSettingLabel",componentId:"sc-7wg633-0"})({margin:"0px"});const O9=window.React.useContext,P9=window.React.useMemo;function V9(){const{current:e}=ye(),{letterSpacing:t,onChange:n,letterSpacingMin:i,letterSpacingMax:o}=O9(Oi),a=l=>{n("letter_spacing",l)},s=P9(()=>je(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-letter-spacing",children:r.jsx(at,{title:r.jsx(z9,{children:I("Letter spacing")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var z9=m(ze).withConfig({displayName:"LetterSpacing___StyledStyledSettingLabel",componentId:"sc-1occtdz-0"})({margin:"0px"});const F9=window.React.useContext,Z9=window.React.useMemo;function W9(){const{current:e}=ye(),{lineHeight:t,onChange:n,lineHeightMin:i,lineHeightMax:o}=F9(Oi),a=l=>{n("line_height",l)},s=Z9(()=>je(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-line-height",children:r.jsx(at,{title:r.jsx(G9,{children:I("Line height")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var G9=m(ze).withConfig({displayName:"LineHeight___StyledStyledSettingLabel",componentId:"sc-15u33dd-0"})({margin:"0px"});const U9=window.React.useContext,N0=window.React.useMemo,gi=m.span({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center"}),Y9=[{value:"uppercase",label:r.jsx(gi,{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(gi,{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(gi,{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"})})})}],J9=[{value:"none",label:r.jsx(gi,{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(gi,{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(gi,{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 X9(){const{current:e}=ye(),{transform:t,decoration:n,onChange:i}=U9(Oi),o=N0(()=>je(t,e)??"auto",[t,e]),a=N0(()=>je(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(Q9,{children:I("Type")}),r.jsxs(q9,{children:[r.jsx(Mt,{canDeselect:!0,options:Y9,selected:o,buttonStyle:"solid",onChange:s}),r.jsx(Mt,{canDeselect:!0,options:J9,selected:a,buttonStyle:"solid",onChange:l})]})]})}var Q9=m(ze)({marginBottom:"0.5rem"}),q9=m("div").withConfig({displayName:"Type___StyledDiv",componentId:"sc-1s138yn-0"})({display:"flex",gap:"1rem"});const K9=window.React.useEffect,Vl=window.React.useState;function Ph({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]=Vl(null),[u,h]=Vl(null),{styles:f,attributes:p}=$n(c,u),[g,v]=Vl(!1),w=()=>{v(!0)},k=()=>{v(!1)};return K9(()=>{const $=D=>{c==null&&u==null&&k(),!(u!=null&&u.contains(D.target))&&!(c!=null&&c.contains(D.target))&&k()};return window.jQuery(document).on("click","body",$),()=>{window.jQuery(document).off("click","body",$)}},[c,u]),r.jsx(y9,{value:e,onChange:t,fontSizeMin:n,fontSizeMax:i,lineHeightMin:o,lineHeightMax:a,letterSpacingMin:s,letterSpacingMax:l,children:r.jsxs(ex,{children:[r.jsx(tx,{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))",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(nx,{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(rx,{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))"},{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(R9,{}),r.jsx(S9,{}),r.jsx(W9,{}),r.jsx(V9,{}),r.jsx(X9,{})]})]})})}var ex=m("div")({position:"relative"}),tx=m("div")`${e=>e.$_css}`,nx=m("span")({position:"relative",display:"inline-block"}),rx=m("div").withConfig({displayName:"TypographyPicker___StyledDiv3",componentId:"sc-wkun31-0"})(["",""],e=>e.$_css2);const ix=window.React,ox=window.React.useCallback,B0={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 ax(e){const t=ix.useMemo(()=>e.value,[e.value]),n=ox((o,a)=>{e.onChange(a,[...e.value_path,o],void 0,!0)},[e]),{ResetInheritButton:i}=Ur({inputValue:e.value??B0,onChange:o=>{Object.keys(e.value).forEach(a=>{e.onChange(o,[...e.value_path,a])})}});return r.jsxs(sx,{children:[r.jsx(i,{}),r.jsx(ut,{title:e.title,className:"mb-0"}),r.jsx(Ph,{value:t??B0,onChange:n})]})}var sx=m("div").withConfig({displayName:"TypographyBuilder___StyledDiv",componentId:"sc-1r71o9z-0"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"});const lx=window.React.useContext,O0=m.span.withConfig({displayName:"EnabledDevices__StyledOptionLabel",componentId:"sc-1joegxg-0"})({display:"flex",alignItems:"center",gap:"0.5rem"}),cx=[{value:"desktop",label:r.jsxs(O0,{children:[r.jsx(fh,{}),r.jsx("span",{children:"Desktop"})]})},{value:"mobile",label:r.jsxs(O0,{children:[r.jsx(ph,{}),r.jsx("span",{children:"Tablet/Mobile"})]})}];function dx(e){const{builder:t}=lx(Ft),n=i=>{const o=e.render_options,a=oe(o!=null&&o.select_from_body?o==null?void 0:o.selector:`${_t(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(ut,{title:e.title}),r.jsx(Mt,{multiple:!0,options:cx,onChange:n,selected:e.value,buttonStyle:"solid"})]})}const ux=window.React.useMemo;function A1(e){const{current:t}=ye(),n=ux(()=>je(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsx(st,{value:n,onChange:e.onChange,wrapperStyle:{width:"100%"}})]})}const hx=window.React.useMemo;function fx(e){const{current:t}=ye(),n=hx(()=>je(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsx(st,{type:"number",value:n,onChange:e.onChange,wrapperStyle:{width:150},min:e.min,max:e.max})]})}const px=window.React.useState,P0=["left","top","bottom","right"];function ra({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]=px(()=>{const h=window.brandyCustomizerData.theme_settings.spacing.spacingSizes.theme.map(f=>`var(--wp--preset--spacing--${f.slug})`);return[h.includes(e.top),h.includes(e.right),h.includes(e.bottom),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(Bh,{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:P0.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(Le,{title:"Use theme presets",children:r.jsx("span",{className:"cursor-pointer",onClick:()=>{u(p=>(p[f]=!p[f],[...p]))},children:d[f]?mx:gx})})})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"w-full",children:d[f]?r.jsx(pt,{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(st,{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:[P0.map((h,f)=>r.jsxs("div",{className:"w-1/4 flex flex-col gap-2 items-center justify-start",children:[r.jsx(st,{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 gx=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"})]}),mx=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"})]}),vx=window.React.useMemo;function wx(e){const{current:t}=ye(),n=vx(()=>je(e.value,t),[t,e.value]),{ResetInheritButton:i}=Ur({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs(xx,{children:[r.jsx(ra,{title:r.jsx(ut,{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 xx=m("div").withConfig({displayName:"SpacingBuilder___StyledDiv",componentId:"sc-8ikjor-0"})({position:"relative"});const bx=window.React.useMemo,$a=m.span.withConfig({displayName:"AlignmentBuilder__StyledOptionItem",componentId:"sc-1i3hi1g-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),yx=[{value:"left",label:r.jsxs($a,{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($a,{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($a,{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($a,{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 Cx(e){const t=bx(()=>(e.available_alignments??["left","center","right"]).map(n=>yx.find(i=>i.value===n)).filter(n=>n!=null),[e.available_alignments]);return r.jsx(ur,{...e,options:t})}const _x=window.React.useMemo,zl=m.span.withConfig({displayName:"PositionBuilder__StyledOptionItem",componentId:"sc-vce992-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Sx=[{value:"left",label:r.jsxs(zl,{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(zl,{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(zl,{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 jx(e){const t=_x(()=>(e.available_positions??["left","bottom","right"]).map(n=>Sx.find(i=>i.value===n)??null).filter(n=>n!=null),[e.available_positions]);return r.jsx(ur,{...e,options:t})}const kx=window.React.useMemo;function R1(e){const{current:t}=ye(),n=kx(()=>je(e.value,t),[t,e.value]),{ResetInheritButton:i}=Ur({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(Dx,{children:[r.jsx(i,{}),r.jsx(ut,{title:e.title})]}),r.jsx(pt,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx("div",{className:"text-[12px] italic",dangerouslySetInnerHTML:{__html:e.description}})]})}var Dx=m("div").withConfig({displayName:"DropdownBuilder___StyledDiv",componentId:"sc-133xc9-0"})({position:"relative"});const $x=window.React.useMemo;function Ex(e){const{current:t}=ye(),n=$x(()=>je(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsx(Mt,{multiple:!0,options:e.options??[],onChange:e.onChange,selected:n,buttonStyle:"solid"})]})}const Hx=m.div` ${{borderBottomWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem","&:last-child":{borderBottomWidth:"0px"}}} `,Mx=[{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 Ix({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(Nx,{children:[r.jsx(ze,{children:r.jsx(Bx,{children:"Position"})}),r.jsx(pt,{options:Mx,selected:e,onChange:n,style:{width:200}})]})}const Tx=[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}];function Lx({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(Ox,{children:[r.jsx(ze,{children:r.jsx(Px,{children:"Size"})}),r.jsx(pt,{options:Tx,selected:e,onChange:n,style:{width:200}})]})}function Ax({value:e,onChange:t}){const n=i=>{Array.isArray(i)||t(i)};return r.jsxs(Vx,{children:[r.jsx(ze,{children:r.jsx(zx,{children:"Overlay color"})}),r.jsx(De,{color:e,onChange:n})]})}const ro=m.div({padding:"10px"});function Rx({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(Hx,{children:r.jsx(Oh,{value:e.url,onChange:n("url")})}),e.url&&r.jsxs(r.Fragment,{children:[r.jsx(ro,{children:r.jsx(Ax,{value:e.overlay_color,onChange:n("overlay_color")})}),r.jsx(ro,{children:r.jsx(Lx,{value:e.size,onChange:n("size")})}),r.jsx(ro,{children:r.jsx(Ix,{value:e.position,onChange:n("position")})}),e.position==="custom"&&r.jsxs(r.Fragment,{children:[r.jsx(ro,{children:r.jsx(at,{min:e.top.min,max:e.top.max,value:e.top,title:r.jsx(ze,{children:r.jsx(Fx,{children:"Top"})}),onChange:n("top")})}),r.jsx(ro,{children:r.jsx(at,{min:e.left.min,max:e.left.max,value:e.left,title:r.jsx(ze,{children:r.jsx(Zx,{children:"Left"})}),onChange:n("left")})})]})]})]})}var Nx=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Bx=m("span")({fontSize:"13px"}),Ox=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Px=m("span")({fontSize:"13px"}),Vx=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),zx=m("span")({fontSize:"13px"}),Fx=m("span")({fontSize:"13px"}),Zx=m("span").withConfig({displayName:"Image___StyledSpan5",componentId:"sc-1ul140t-0"})({fontSize:"13px"});const Wx=window.React.createContext,Gx=window.React.useEffect,tr=window.React.useMemo,Fl=window.React.useState,Ux=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],Yx=Wx({});function Jx({value:e,onChange:t=()=>!1}){const n=tr(()=>e.type,[e.type]),i=tr(()=>e.solid_color,[e.solid_color]),o=tr(()=>e.gradient_color,[e.gradient_color]),a=tr(()=>e.image,[e.image]),s=tr(()=>{const _=N=>{t(N,"type")},H=N=>{t(N,"solid_color")},x=Hi(N=>{t(N,"gradient_color")},0);return{backgroundType:n,solidColor:i,gradientColor:o,image:a,changeType:_,changeSolidColor:H,changeGradientColor:x,changeImage:N=>{t(N,"image")}}},[n,i,o,a,e,t]),l=tr(()=>n==="image"?{backgroundImage:`url(${a.url})`,backgroundPosition:"center",backgroundSize:"contain"}:{background:n==="solid"?i:o},[n,i,o,a]),[c,d]=Fl(null),[u,h]=Fl(null),{styles:f,attributes:p}=$n(c,u),[g,v]=Fl(!1),w=()=>{v(!0)},k=()=>{v(!1)};Gx(()=>{const _=x=>{var N;c==null&&u==null&&k();const y=(N=document.getElementById("brandy-upload-media"))==null?void 0:N.closest(".media-modal.wp-core-ui");!(y!=null&&y.contains(x.target))&&!(u!=null&&u.contains(x.target))&&!(c!=null&&c.contains(x.target))&&k()},H=()=>{const x=window.jQuery("#brandy-upload-media").closest(".media-modal.wp-core-ui").parent();x&&x.remove()};return window.jQuery(document).on("click","body",_),()=>{window.jQuery(document).off("click","body",_),H()}},[c,u]);const $=tr(()=>e.type==="solid"?445:e.type==="gradient"?530:e.image.url===""?150:500,[e.type,e.image.url]),D=tr(()=>n==="solid"?i==null||i.endsWith("00")&&i.length>6:n==="gradient"?o.indexOf(",0)")!==o.lastIndexOf(",0)")&&o.indexOf(",0)")!==-1&&o.lastIndexOf(",0)")!==-1||o.indexOf(",0)")!==o.lastIndexOf(", 0)")&&o.indexOf(",0)")!==-1&&o.lastIndexOf(", 0)")!==-1||o.indexOf(", 0)")!==o.lastIndexOf(",0)")&&o.indexOf(", 0)")!==-1&&o.lastIndexOf(",0)")!==-1||o.indexOf(", 0)")!==o.lastIndexOf(", 0)")&&o.indexOf(", 0)")!==-1&&o.lastIndexOf(", 0)")!==-1:a.url==="",[n,i,o,a.url]);return r.jsx(Yx.Provider,{value:s,children:r.jsxs(Xx,{children:[r.jsx(Qx,{style:l,ref:d,onClick:w,$_css2:[{height:"30px",width:"30px",cursor:"pointer"},{borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity))","--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"},g&&{outlineColor:"#1e1e1e"},D&&de(["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:D&&r.jsx(qx,{children:r.jsx(gh,{})})}),g&&r.jsx(Kx,{ref:h,style:f.popper,...p.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))"},{position:"absolute",zIndex:"999992"},{borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))"},{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(Nn,{className:"color-picker-popup",style:{height:$},autoHide:!0,children:[r.jsx(e7,{children:r.jsx(Mt,{options:Ux,selected:n,onChange:s.changeType})}),r.jsxs("div",{children:[n==="solid"&&r.jsx($h,{color:i,onChange:s.changeSolidColor}),n==="gradient"&&r.jsx(Dh,{value:o,onChange:s.changeGradientColor}),n==="image"&&r.jsx(Rx,{value:a,onChange:s.changeImage})]})]})})]})})}var Xx=m("div")({position:"relative"}),Qx=m("div")`${e=>e.$_css2}`,qx=m("span")({position:"relative",left:"50%",top:"50%",display:"inline-block","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-translate-y":"-50%"}),Kx=m("div")`${e=>e.$_css3}`,e7=m("div").withConfig({displayName:"BackgroundPicker___StyledDiv4",componentId:"sc-1vzs4ya-0"})({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"});const t7=window.React.useMemo;function n7(e){const{current:t}=ye(),n=t7(()=>je(e.value,t),[t,e.value]),i=(o,a)=>{e.onChange({...n,[a]:o})};return r.jsxs(r7,{children:[r.jsx(ut,{title:e.title,className:"mb-0"}),r.jsxs(i7,{children:[r.jsx(el,{...e,reset_paths:[e.value_path],title:null,reset_action:"row_settings"}),r.jsx(Jx,{value:n,onChange:i})]})]})}var r7=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),i7=m("div").withConfig({displayName:"BackgroundBuilder___StyledDiv2",componentId:"sc-18ksi7m-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const o7=window.React.useMemo,Zl=m.span.withConfig({displayName:"VerticalAlignmentBuilder__StyledOptionItem",componentId:"sc-16og1d2-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),a7=[{value:"top",label:r.jsxs(Zl,{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(Zl,{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(Zl,{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 s7(e){const t=o7(()=>a7.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(ur,{...e,options:t})}const l7=window.React.useMemo;function c7(e){return l7(()=>r.jsxs("div",{children:[r.jsx(d7,{children:r.jsx(ut,{className:_e(["mb-0"]),title:e.title})}),e.content&&r.jsx("div",{dangerouslySetInnerHTML:{__html:e.content}})]}),[e.content,e.title])}var d7=m("div").withConfig({displayName:"FlexibleBuilder___StyledDiv",componentId:"sc-17nqz4o-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const u7=window.React.useMemo,Wl=m.span.withConfig({displayName:"HorizontalAlignmentBuilder__StyledOptionItem",componentId:"sc-1ebs2zw-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),h7=[{value:"left",label:r.jsxs(Wl,{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(Wl,{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(Wl,{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 f7(e){const t=u7(()=>h7.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(ur,{...e,options:t})}const p7=window.React.useEffect,Vh=[[{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:''}]],g7=Vh.reduce((e,t)=>[...e,t.map(n=>n.key).join(" ")],[]).join(" | "),m7=Vh.reduce((e,t)=>[...e,...t],[]);function v7({id:e,value:t,onChange:n}){p7(()=>{var a,s,l,c;window.wp.editor.initialize(e,{tinymce:{class:"brandy-tinymce",toolbar1:g7,style_formats_merge:!0,style_formats:[],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,v)=>{var k;const w=m7[v];if(w){if(["fontsizeselect","formatselect","styleselect"].includes(w.key)){const $=new DOMParser().parseFromString(w.icon,"image/svg+xml").documentElement;(k=g.querySelector(".mce-caret"))==null||k.replaceWith($);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 w7=window.React.useMemo;function zh({id:e,value:t,onChange:n}){const i=w7(()=>t,[t]),o=l=>{n(l),s(l)},s=Hi(l=>l,200);return r.jsx(v7,{id:e,onChange:o,value:i})}const x7=window.React.useMemo,b7=window.React.useState;function y7(e){const t=x7(()=>e.prefilleds??[],[e.prefilleds]),n=a=>{const s=window.tinymce.get(e.sectionId);s&&s.setContent(a),e.onChange(a)},[i,o]=b7(!1);return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsxs("div",{className:"bg-[#F6F7F7] rounded-base overflow-hidden",children:[r.jsx(zh,{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(C7,{children:e.description})]})}var C7=m("div").withConfig({displayName:"PrefilledHTML___StyledDiv",componentId:"sc-uzr3vx-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});function _7(e){return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsx(zh,{value:e.value,onChange:e.onChange,id:e.sectionId,toolbars:""}),e.description&&r.jsx(S7,{children:e.description})]},e.sectionId)}var S7=m("div").withConfig({displayName:"HTMLBuilder___StyledDiv",componentId:"sc-kly0zw-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});const j7=window.React.useState;function k7(e){const[t,n]=j7(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{__:V0}=window.wp.i18n,{__experimentalLibrary:D7}=window.wp.blockEditor;function $7({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:V0("Add a block")}),r.jsx("button",{className:"customize-widgets-layout__inserter-panel-header-close-button w-[24px] h-[24px]",onClick:e,"aria-label":V0("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(D7,{onSelect:e})})]})}const E7=window.React.useContext,H7=window.ReactDOM.createPortal;function M7(){const{inserter:e,sidebar:t}=E7(F1),{isOpen:n,openInserter:i,closeInserter:o,toggleInserter:a}=k7(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=H7(n?r.jsx($7,{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:_e(["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:_e(["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 I7=window.React.useEffect,{useDispatch:T7,useSelect:L7}=window.wp.data,{store:z0}=window.wp.blockEditor;function A7(e,t){const{hasSelectedBlock:n,hasMultiSelection:i}=L7(z0),{clearSelectedBlock:o}=T7(z0);I7(()=>{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 R7(e,t){return e==null||e!==e?t:e}var N7=R7;const B7=Qt(N7),O7=window.React.useMemo,{useSelect:P7}=window.wp.data,{store:V7}=window.wp.coreData,{uploadMedia:z7}=window.wp.mediaUtils;function Fh(){const e=window.brandyWidgetsBlockEditorSettings,{hasUploadPermission:t}=P7(i=>({hasUploadPermission:B7(i(V7).canUser("create","media"),!0)}));return{settings:O7(()=>{let i;return t&&(i=({onError:o,...a})=>{z7({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:s})=>o(s),...a})}),{...e,mediaUpload:i,__unstableHasCustomAppender:!0,keepCaretInsideBlock:!0}},[t])}}var F7=200,N1="__lodash_hash_undefined__",Z7=1/0,Zh=9007199254740991,W7="[object Arguments]",G7="[object Function]",U7="[object GeneratorFunction]",Y7="[object Symbol]",J7=/[\\^$.*+?()[\]{}|]/g,X7=/^\[object .+?Constructor\]$/,Q7=/^(?:0|[1-9]\d*)$/,q7=typeof ot=="object"&&ot&&ot.Object===Object&&ot,K7=typeof self=="object"&&self&&self.Object===Object&&self,B1=q7||K7||Function("return this")();function eb(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 tb(e,t){var n=e?e.length:0;return!!n&&ib(e,t,0)>-1}function nb(e,t,n){for(var i=-1,o=e?e.length:0;++i-1}function Db(e,t){var n=this.__data__,i=nl(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Vi.prototype.clear=_b;Vi.prototype.delete=Sb;Vi.prototype.get=jb;Vi.prototype.has=kb;Vi.prototype.set=Db;function zi(e){var t=-1,n=e?e.length:0;for(this.clear();++t=F7&&(a=lb,s=!1,t=new ds(t));e:for(;++o0&&n(l)?t>1?Yh(l,t-1,n,i,o):O1(o,l):i||(o[o.length]=l)}return o}function Nb(e,t,n){var i=t(e);return V1(e)?i:O1(i,n(e))}function Bb(e){if(!z1(e)||Jb(e))return!1;var t=qh(e)||db(e)?fb:X7;return t.test(Kb(e))}function Ob(e){if(!z1(e))return Qb(e);var t=Xb(e),n=[];for(var i in e)i=="constructor"&&(t||!Pi.call(e,i))||n.push(i);return n}function Pb(e,t){return e=Object(e),Vb(e,t,function(n,i){return i in e})}function Vb(e,t,n){for(var i=-1,o=t.length,a={};++i-1&&e%1==0&&e-1&&e%1==0&&e<=Zh}function z1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kh(e){return!!e&&typeof e=="object"}function ry(e){return typeof e=="symbol"||Kh(e)&&P1.call(e)==Y7}function iy(e){return Qh(e)?Ab(e,!0):Ob(e)}var oy=zb(function(e,t){return e==null?{}:(t=Wh(Yh(t,1),qb),Pb(e,Rb(Fb(e),t)))});function ef(){return[]}var ay=oy;const sy=Qt(ay),{serialize:ly,parse:cy,createBlock:Ul}=window.wp.blocks,{addWidgetIdToBlock:dy}=window.wp.widgets;function U0(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:ly(e)}}};return{...sy(t,["form","rendered"]),...n}}function Y0({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=cy(l.content);o=d.length?d[0]:Ul("core/paragraph",{})}else n?o=Ul("core/legacy-widget",{idBase:t,instance:{encoded:a,hash:s,raw:l,...c}}):o=Ul("core/legacy-widget",{id:e});return dy(o,e)}const uy=window.React.useCallback,hy=window.React.useEffect,fy=window.React.useState,{isShallowEqualArrays:Ea}=window.wp.isShallowEqual,{getWidgetIdFromBlock:Yl,addWidgetIdToBlock:py}=window.wp.widgets;function gy(e){const[t,n]=fy(e.getWidgets().map(o=>Y0(o)));hy(()=>e.subscribe((o,a)=>{n(s=>{const l=new Map(o.map(u=>[u.id,u])),c=new Map(s.map(u=>[Yl(u),u])),d=a.map(u=>{const h=l.get(u.id);return h&&h===u?c.get(u.id):Y0(u)});return Ea(s,d)?s:d})}),[e]);const i=uy(o=>{n(a=>{if(Ea(a,o))return a;const s=new Map(a.map(d=>[Yl(d),d])),l=o.map(d=>{const u=Yl(d);if(u&&s.has(u)){const h=s.get(u),f=e.getWidget(u);return Ea(JSON.stringify(d),JSON.stringify(h))&&f?f:U0(d,f)}return U0(d)});if(Ea(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]=py(u,f)),d},o)})},[e]);return{blocks:t,updateBlocks:i}}const{BlockList:my,BlockTools:vy,BlockSelectionClearer:wy,CopyHandler:xy,ObserveTyping:by,WritingFlow:yy,__unstableEditorStyles:Cy,ButtonBlockAppender:_y}=window.wp.blockEditor;function Sy(){const{settings:e}=Fh();return r.jsx("div",{className:"brandy-widget-content__inspector",children:r.jsx(xy,{children:r.jsxs(vy,{children:[r.jsx(Cy,{styles:[...e.defaultEditorStyles,{css:"body{font-size: 13px !important;}"}]}),r.jsx(wy,{children:r.jsx(yy,{className:"editor-styles-wrapper",children:r.jsx(by,{children:r.jsx(my,{renderAppender:_y})})})})]})})})}const jy=window.React.useEffect,{useShortcut:Jl,store:ky}=window.wp.keyboardShortcuts,{useDispatch:Dy}=window.wp.data;function Fc({undo:e,redo:t,save:n}){return Jl("core/customize-widgets/undo",i=>{e(),i.preventDefault()}),Jl("core/customize-widgets/redo",i=>{t(),i.preventDefault()}),Jl("core/customize-widgets/save",i=>{i.preventDefault(),n()}),null}function $y(){const{registerShortcut:e,unregisterShortcut:t}=Dy(ky);return jy(()=>(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}Fc.Register=$y;const Ey=window.React.useContext,{__unstableBlockSettingsMenuFirstItem:Hy}=window.wp.blockEditor,{MenuItem:My}=window.wp.components;function Iy(){const{inspector:e}=Ey(F1);return r.jsx(Hy,{children:({onClose:t})=>r.jsx(My,{onClick:()=>{e.open(),t()},inspector:e,children:"Show more settings"})})}const Ty=de` ${{"--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}} &:after { ${{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity))"}} } `,Ly=de` &: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"}} } `,Ay=m(({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))"},Ly,e&&Ty]);function Ry({current:e,items:t,onChange:n,styledCSS:i}){return r.jsx(Ny,{$_css2:[{display:"flex","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},i],children:t.map(({label:o,key:a})=>r.jsx(Ay,{onClick:()=>{n(a)},isActive:e===a,className:e===a?"active":"",children:o},a))})}var Ny=m("div").withConfig({displayName:"Tabs___StyledDiv",componentId:"sc-1e1ax13-1"})(["",""],e=>e.$_css2);const J0=window.React.useMemo,By=window.React.useState,Oy=[{label:"General",key:"general"},{label:"Designs",key:"designs"}];function Fi(e){const t=J0(()=>(e==null?void 0:e.items)??Oy,[e]),[n,i]=By(t[0].key);return{contextHolder:J0(()=>r.jsx(Ry,{items:t,current:n,onChange:i}),[t,n,i]),items:t,currentTab:n,setCurrentTab:i}}function Bn({title:e,onGoBack:t,hasBottomPart:n=!0}){return r.jsxs(r.Fragment,{children:[r.jsxs(Py,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsx(Vy,{children:e??r.jsxs(r.Fragment,{children:[r.jsxs(zy,{children:[I("Customizing")," ▸ ",I("Not found")]}),r.jsx(Fy,{children:I("Not found")})]})})]}),n&&r.jsx(Zy,{})]})}var Py=m("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))"}),Vy=m("div")({height:"100%",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"0.75rem"}),zy=m("div")({fontSize:"13px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Fy=m("div")({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"}),Zy=m("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))"});const Wy=window.React,Gy=window.React.memo,Uy=window.React.useCallback,tf=window.React.useContext,nf=window.React.useMemo,Ze=Wy.createContext({});function Yy(e){const{builder:t}=tf(Ft),n=ne(t)(l=>l.deselectSection),i=ne(t)(l=>{var c;return((c=l.chosenElement)==null?void 0:c.title)??""}),o=ne(t)(l=>{var c,d;return((d=(c=l.previewTemplate)==null?void 0:c.settings)==null?void 0:d.name)??t}),a=Uy(()=>{Lt(),n()},[Lt,n]),s=nf(()=>({builder:t,goBack:a}),[t,a]);return r.jsxs(Ze.Provider,{value:s,children:[r.jsx(Bn,{onGoBack:a,builder:t,title:r.jsxs(r.Fragment,{children:[r.jsxs(Qy,{children:[I("Customizing")," ▸ ",o]}),r.jsx(qy,{children:i||"Not found"})]})}),r.jsx(Xy,{elementId:e.elementId,clonedFromId:e.clonedFromId})]})}function Jy({elementId:e,clonedFromId:t}){const{builder:n}=tf(Ze),{contextHolder:i,currentTab:o}=Fi(),a=ne(n)(c=>{var d;return((d=c.chosenElement)==null?void 0:d.settings)??{}}),s=ne(n)(c=>c.changeElementSettings),l=nf(()=>{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(m1,{children:l.map((c,d)=>r.jsx(aa,{section:c,sectionKey:`${o}-${d}`,sectionId:e,settings:a,onChange:s,builder:n,clonedFromId:t},`${o}-${d}`))})]})}const Xy=Gy(Jy);var Qy=m("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),qy=m("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))"});const Ky=window.React.createContext,eC=window.React.useContext,tC=window.React.useEffect,io=window.React.useMemo,nC=window.React.useRef,X0=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 F1=Ky({});function dC(e){const{builder:t}=eC(Ze),n=io(()=>`${t}_${e.sectionId}`,[e.sectionId,t]),i=io(()=>window.wp.customize.control(`sidebars_widgets[${n}]`),[n]),{blocks:o,updateBlocks:a}=gy(i.sidebarAdapter),{settings:s}=Fh(),l=nC(null);A7(i,l);const c=io(()=>`#sub-accordion-section-widgets-inspector-sidebar-widgets-${n}`,[n]),d=io(()=>`#sub-accordion-section-sidebar-widgets-${n}`,[n]),u=io(()=>({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=X0(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(F1.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(Fc.Register,{}),r.jsxs(iC,{value:o,onChange:f,onInput:p,useSubRegistry:!1,settings:s,children:[r.jsx(Fc,{undo:u.sidebar.undo,redo:u.sidebar.redo,save:u.sidebar.save}),r.jsx(M7,{}),r.jsx(Sy,{}),X0(r.jsx("form",{className:"hehehihi",onSubmit:g=>g.preventDefault(),children:r.jsx(oC,{})}),document.querySelector(c)??document.body)]}),r.jsx(Iy,{})]})}),h]})})}const uC=window.React.useMemo;function hC(e){return uC(()=>r.jsx(dC,{sectionId:e.sectionId}),[])}const fC=window.React.useEffect,Q0=window.React.useMemo,Xl=window.React.useState;function pC({options:e,selected:t,onChange:n=()=>!1,style:i={}}){const[o,a]=Xl(null),[s,l]=Xl(null),{styles:c,attributes:d}=$n(o,s),[u,h]=Xl(!1),f=Q0(()=>(o==null?void 0:o.getBoundingClientRect().width)??0,[o]),p=()=>{h(D=>!D)},g=()=>{h(!1)};fC(()=>{const D=_=>{(o==null||s==null)&&g(),!(o!=null&&o.contains(_.target))&&!(s!=null&&s.contains(_.target))&&g()};return window.jQuery(document).on("click","body",D),()=>{window.jQuery(document).off("click","body",D)}},[o,s]);const v=D=>{const _=t.indexOf(D);let H=[];_===-1?H=[...t,D]:H=t.filter(x=>x!==D),n(H)},w=D=>{const _=t.filter(H=>H!==D);n(_)},k=D=>t.includes(D),$=Q0(()=>e.length*47>300?300:e.length*47,[e]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:_e(["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 _=e.find(H=>H.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:_==null?void 0:_.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:H=>{H.stopPropagation(),w((_==null?void 0:_.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:_e(["my-2 z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Nn,{autoHide:!0,className:"bg-gutenberg-white",style:{height:$},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:()=>v(D.value),$_css:[{display:"flex",alignItems:"center",justifyContent:"space-between","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"},{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))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},k(D.value)&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity)) !important"}],children:[D.label,k(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=m("div").withConfig({displayName:"MultipleSelect___StyledDiv",componentId:"sc-k7vdlx-0"})(["",""],e=>e.$_css);const mC=window.React.useMemo;function vC(e){const{current:t}=ye(),n=mC(()=>je(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(ut,{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=m("div").withConfig({displayName:"MultipleSelectBuilder___StyledDiv",componentId:"sc-eadnfz-0"})({marginTop:"0.5rem",fontSize:"12px",fontStyle:"italic"}),rf={exports:{}};/**! * Sortable 1.15.3 * @author RubaXa * @author owenm * @license MIT */function q0(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 An(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 Zc(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 Zc(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 Zc(e,t)}}function Zc(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 lf(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function dn(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&us(e,t):us(e,t))||i&&e===n)return e;if(e===n)break}while(e=lf(e))}return null}var eu=/\s+/g;function et(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(eu," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(eu," ")}}function se(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 Lr(e,t){var n="";if(typeof e=="string")n=e;else do{var i=se(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 cf(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===Tn())break;i=sr(i,!1)}return!1}function Mi(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);oa.pluginEvent.bind(ge)(t,n,An({dragEl:q,parentEl:rt,ghostEl:xe,rootEl:Xe,nextEl:kr,lastDownEl:Ja,cloneEl:Ke,cloneHidden:or,dragStarted:fo,putSortable:xt,activeSortable:ge.active,originalEvent:o,oldIndex:fi,oldDraggableIndex:jo,newIndex:Ut,newDraggableIndex:ir,hideGhostForTarget:mf,unhideGhostForTarget:vf,cloneNowHidden:function(){or=!0},cloneNowShown:function(){or=!1},dispatchSortableEvent:function(l){Ht({sortable:n,name:l,originalEvent:o})}},a))};function Ht(e){ho(An({putSortable:xt,cloneEl:Ke,targetEl:q,rootEl:Xe,oldIndex:fi,oldDraggableIndex:jo,newIndex:Ut,newDraggableIndex:ir},e))}var q,rt,xe,Xe,kr,Ja,Ke,or,fi,Ut,jo,ir,Ha,xt,ci=!1,hs=!1,fs=[],Cr,Cn,ec,tc,iu,ou,fo,oi,ko,Do=!1,Ma=!1,Xa,jt,nc=[],Wc=!1,ps=[],il=typeof document<"u",Ia=of,au=ia||Jn?"cssFloat":"float",AC=il&&!af&&!of&&"draggable"in document.createElement("div"),ff=function(){if(il){if(Jn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),pf=function(t,n){var i=se(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=Mi(t,0,n),s=Mi(t,1,n),l=a&&se(a),c=s&&se(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ye(a).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Ye(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[au]==="none"||s&&i[au]==="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},NC=function(t,n){var i;return fs.some(function(o){var a=o[bt].options.emptyInsertThreshold;if(!(!a||Z1(o))){var s=Ye(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},gf=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||Ya(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},mf=function(){!ff&&xe&&se(xe,"display","none")},vf=function(){!ff&&xe&&se(xe,"display","")};il&&!af&&document.addEventListener("click",function(e){if(hs)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),hs=!1,!1},!0);var _r=function(t){if(q){t=t.touches?t.touches[0]:t;var n=NC(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[bt]._onDragOver(i)}}},BC=function(t){q&&q.parentNode[bt]._isOutsideThisEl(t.target)};function ge(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=mn({},t),e[bt]=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 pf(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:ge.supportPointer!==!1&&"PointerEvent"in window&&!_o,emptyInsertThreshold:5};oa.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);gf(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?He(e,"pointerdown",this._onTapStart):(He(e,"mousedown",this._onTapStart),He(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(He(e,"dragover",this),He(e,"dragenter",this)),fs.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),mn(this,MC())}ge.prototype={constructor:ge,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(oi=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&&_o&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=dn(c,o.draggable,i,!1),!(c&&c.animated)&&Ja!==c)){if(fi=it(c),jo=it(c,o.draggable),typeof u=="function"){if(u.call(this,t,c,this)){Ht({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:i,fromEl:i}),At("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(h){if(h=dn(d,h.trim(),i,!1),h)return Ht({sortable:n,rootEl:h,name:"filter",targetEl:c,fromEl:i,toEl:i}),At("filter",n,{evt:t}),!0}),u)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!dn(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=Ye(i);if(Xe=a,q=i,rt=q.parentNode,kr=q.nextSibling,Ja=i,Ha=s.group,ge.dragged=q,Cr={target:q,clientX:(n||t).clientX,clientY:(n||t).clientY},iu=Cr.clientX-d.left,ou=Cr.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,q.style["will-change"]="all",c=function(){if(At("delayEnded",o,{evt:t}),ge.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!K0&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(t,n),Ht({sortable:o,name:"choose",originalEvent:t}),et(q,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){cf(q,u.trim(),rc)}),He(l,"dragover",_r),He(l,"mousemove",_r),He(l,"touchmove",_r),He(l,"mouseup",o._onDrop),He(l,"touchend",o._onDrop),He(l,"touchcancel",o._onDrop),K0&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),At("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ia||Jn))){if(ge.eventCanceled){this._onDrop();return}He(l,"mouseup",o._disableDelayedDrag),He(l,"touchend",o._disableDelayedDrag),He(l,"touchcancel",o._disableDelayedDrag),He(l,"mousemove",o._delayedDragTouchMoveHandler),He(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&He(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&&rc(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ke(t,"mouseup",this._disableDelayedDrag),ke(t,"touchend",this._disableDelayedDrag),ke(t,"touchcancel",this._disableDelayedDrag),ke(t,"mousemove",this._delayedDragTouchMoveHandler),ke(t,"touchmove",this._delayedDragTouchMoveHandler),ke(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?He(document,"pointermove",this._onTouchMove):n?He(document,"touchmove",this._onTouchMove):He(document,"mousemove",this._onTouchMove):(He(q,"dragend",this),He(Xe,"dragstart",this._onDragStart));try{document.selection?Qa(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ci=!1,Xe&&q){At("dragStarted",this,{evt:n}),this.nativeDraggable&&He(document,"dragover",BC);var i=this.options;!t&&et(q,i.dragClass,!1),et(q,i.ghostClass,!0),ge.active=this,t&&this._appendGhost(),Ht({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Cn){this._lastX=Cn.clientX,this._lastY=Cn.clientY,mf();for(var t=document.elementFromPoint(Cn.clientX,Cn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Cn.clientX,Cn.clientY),t!==n);)n=t;if(q.parentNode[bt]._isOutsideThisEl(t),n)do{if(n[bt]){var i=void 0;if(i=n[bt]._onDragOver({clientX:Cn.clientX,clientY:Cn.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=lf(n));vf()}},_onTouchMove:function(t){if(Cr){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=xe&&Lr(xe,!0),l=xe&&s&&s.a,c=xe&&s&&s.d,d=Ia&&jt&&nu(jt),u=(a.clientX-Cr.clientX+o.x)/(l||1)+(d?d[0]-nc[0]:0)/(l||1),h=(a.clientY-Cr.clientY+o.y)/(c||1)+(d?d[1]-nc[1]:0)/(c||1);if(!ge.active&&!ci){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(Ht({rootEl:rt,name:"add",toEl:rt,fromEl:Xe,originalEvent:t}),Ht({sortable:this,name:"remove",toEl:rt,originalEvent:t}),Ht({rootEl:rt,name:"sort",toEl:rt,fromEl:Xe,originalEvent:t}),Ht({sortable:this,name:"sort",toEl:rt,originalEvent:t})),xt&&xt.save()):Ut!==fi&&Ut>=0&&(Ht({sortable:this,name:"update",toEl:rt,originalEvent:t}),Ht({sortable:this,name:"sort",toEl:rt,originalEvent:t})),ge.active&&((Ut==null||Ut===-1)&&(Ut=fi,ir=jo),Ht({sortable:this,name:"end",toEl:rt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){At("nulling",this),Xe=q=rt=xe=kr=Ke=Ja=or=Cr=Cn=fo=Ut=ir=fi=jo=oi=ko=xt=Ha=ge.dragged=ge.ghost=ge.clone=ge.active=null,ps.forEach(function(t){t.checked=!0}),ps.length=ec=tc=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":q&&(this._onDragOver(t),OC(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&&Xau+d*a/2:ch-Xa)return-ko}else if(c>u+d*(1-o)/2&&ch-d*a/2)?c>u+d/2?1:-1:0}function ZC(e){return it(q)1&&(we.forEach(function(l){a.addAnimationState({target:l,rect:Rt?Ye(l):s}),ql(l),l.fromRect=s,i.removeAnimationState(l)}),Rt=!1,QC(!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(),ao=!1,d.animation&&we.length>1&&(Rt||!o&&!s.options.sort&&!c)){var u=Ye(Fe,!1,!0,!0);we.forEach(function(f){f!==Fe&&(ru(f,u),l.appendChild(f))}),Rt=!0}if(!o)if(Rt||Aa(),we.length>1){var h=La;s._showClone(i),s.options.animation&&!La&&h&&Gt.forEach(function(f){s.addAnimationState({target:f,rect:so}),f.fromRect=so,f.thisAnimationDuration=null})}else s._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,o=n.isOwner,a=n.activeSortable;if(we.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){so=mn({},i);var s=Lr(Fe,!0);so.top-=s.f,so.left-=s.e}},dragOverAnimationComplete:function(){Rt&&(Rt=!1,Aa())},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(!ai)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),et(Fe,h.selectedClass,!~we.indexOf(Fe)),~we.indexOf(Fe))we.splice(we.indexOf(Fe),1),oo=null,ho({sortable:s,rootEl:o,name:"deselect",targetEl:Fe,originalEvent:i});else{if(we.push(Fe),ho({sortable:s,rootEl:o,name:"select",targetEl:Fe,originalEvent:i}),i.shiftKey&&oo&&s.el.contains(oo)){var p=it(oo),g=it(Fe);if(~p&&~g&&p!==g){var v,w;for(g>p?(w=p,v=g):(w=g,v=p+1);w1){var k=Ye(Fe),$=it(Fe,":not(."+this.options.selectedClass+")");if(!ao&&h.animation&&(Fe.thisAnimationDuration=null),u.captureAnimationState(),!ao&&(h.animation&&(Fe.fromRect=k,we.forEach(function(_){if(_.thisAnimationDuration=null,_!==Fe){var H=Rt?Ye(_):k;_.fromRect=H,u.addAnimationState({target:_,rect:H})}})),Aa(),we.forEach(function(_){f[$]?a.insertBefore(_,f[$]):a.appendChild(_),$++}),c===it(Fe))){var D=!1;we.forEach(function(_){if(_.sortableIndex!==it(_)){D=!0;return}}),D&&(l("update"),l("sort"))}we.forEach(function(_){ql(_)}),u.animateAll()}_n=u}(o===a||d&&d.lastPutMode!=="clone")&&Gt.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=ai=!1,Gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ke(document,"pointerup",this._deselectMultiDrag),ke(document,"mouseup",this._deselectMultiDrag),ke(document,"touchend",this._deselectMultiDrag),ke(document,"keydown",this._checkKeyDown),ke(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ai<"u"&&ai)&&_n===this.sortable&&!(n&&dn(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;we.length;){var i=we[0];et(i,this.options.selectedClass,!1),we.shift(),ho({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)}},mn(e,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[bt];!i||!i.options.multiDrag||~we.indexOf(n)||(_n&&_n!==i&&(_n.multiDrag._deselectMultiDrag(),_n=i),et(n,i.options.selectedClass,!0),we.push(n))},deselect:function(n){var i=n.parentNode[bt],o=we.indexOf(n);!i||!i.options.multiDrag||!~o||(et(n,i.options.selectedClass,!1),we.splice(o,1))}},eventProperties:function(){var n=this,i=[],o=[];return we.forEach(function(a){i.push({multiDragElement:a,index:a.sortableIndex});var s;Rt&&a!==Fe?s=-1:Rt?s=it(a,":not(."+n.options.selectedClass+")"):s=it(a),o.push({multiDragElement:a,index:s})}),{items:CC(we),clones:[].concat(Gt),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 QC(e,t){we.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function lu(e,t){Gt.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Aa(){we.forEach(function(e){e!==Fe&&e.parentNode&&e.parentNode.removeChild(e)})}ge.mount(new UC);ge.mount(U1,G1);const qC=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:XC,Sortable:ge,Swap:YC,default:ge},Symbol.toStringTag,{value:"Module"})),KC=Nu(qC);var xf={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",()=>_);function c(x){x.parentElement!==null&&x.parentElement.removeChild(x)}function d(x,y,N){const O=x.children[N]||null;x.insertBefore(y,O)}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 N=w(x),O={parentElement:x.from};let S=[];switch(N){case"normal":S=[{element:x.item,newIndex:x.newIndex,oldIndex:x.oldIndex,parentElement:x.from}];break;case"swap":const P={element:x.item,oldIndex:x.oldIndex,newIndex:x.newIndex,...O},z={element:x.swapItem,oldIndex:x.newIndex,newIndex:x.oldIndex,...O};S=[P,z];break;case"multidrag":S=x.oldIndicies.map((M,V)=>({element:M.multiDragElement,oldIndex:M.index,newIndex:x.newIndicies[V].index,...O}));break}return k(S,y)}function p(x,y){const N=g(x,y);return v(x,N)}function g(x,y){const N=[...y];return x.concat().reverse().forEach(O=>N.splice(O.oldIndex,1)),N}function v(x,y,N,O){const S=[...y];return x.forEach(A=>{const E=O&&N&&O(A.item,N);S.splice(A.newIndex,0,E||A.item)}),S}function w(x){return x.oldIndicies&&x.oldIndicies.length>0?"multidrag":x.swapItem?"swap":"normal"}function k(x,y){return x.map(O=>({...O,item:y[O.oldIndex]})).sort((O,S)=>O.oldIndex-S.oldIndex)}function $(x){const{list:y,setList:N,children:O,tag:S,style:A,className:E,clone:P,onAdd:z,onChange:M,onChoose:V,onClone:R,onEnd:Z,onFilter:L,onRemove:W,onSort:J,onStart:Y,onUnchoose:ce,onUpdate:he,onMove:F,onSpill:ee,onSelect:ue,onDeselect:re,...te}=x;return te}const D={dragging:null};class _ extends i.Component{constructor(y){super(y),this.ref=(0,i.createRef)();const N=[...y.list].map(O=>Object.assign(O,{chosen:!1,selected:!1}));y.setList(N,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:N,className:O,id:S}=this.props,A={style:N,className:O,id:S},E=!y||y===null?"div":y;return(0,i.createElement)(E,{ref:this.ref,...A},this.getChildren())}getChildren(){const{children:y,dataIdAttr:N,selectedClass:O="sortable-selected",chosenClass:S="sortable-chosen",dragClass:A="sortable-drag",fallbackClass:E="sortable-falback",ghostClass:P="sortable-ghost",swapClass:z="sortable-swap-highlight",filter:M="sortable-filter",list:V}=this.props;if(!y||y==null)return null;const R=N||"data-id";return i.Children.map(y,(Z,L)=>{if(Z===void 0)return;const W=V[L]||{},{className:J}=Z.props,Y=typeof M=="string"&&{[M.replace(".","")]:!!W.filtered},ce=a(n)(J,{[O]:W.selected,[S]:W.chosen,...Y});return(0,i.cloneElement)(Z,{[R]:Z.key,className:ce})})}get sortable(){const y=this.ref.current;if(y===null)return null;const N=Object.keys(y).find(O=>O.includes("Sortable"));return N?y[N]:null}makeOptions(){const y=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],N=["onChange","onClone","onFilter","onSort"],O=$(this.props);return y.forEach(A=>O[A]=this.prepareOnHandlerPropAndDOM(A)),N.forEach(A=>O[A]=this.prepareOnHandlerProp(A)),{...O,onMove:(A,E)=>{const{onMove:P}=this.props,z=A.willInsertAfter||-1;if(!P)return z;const M=P(A,E,this.sortable,D);return typeof M>"u"?!1:M}}}prepareOnHandlerPropAndDOM(y){return N=>{this.callOnHandlerProp(N,y),this[y](N)}}prepareOnHandlerProp(y){return N=>{this.callOnHandlerProp(N,y)}}callOnHandlerProp(y,N){const O=this.props[N];O&&O(y,this.sortable,D)}onAdd(y){const{list:N,setList:O,clone:S}=this.props,A=[...D.dragging.props.list],E=f(y,A);u(E);const P=v(E,N,y,S).map(z=>Object.assign(z,{selected:!1}));O(P,this.sortable,D)}onRemove(y){const{list:N,setList:O}=this.props,S=w(y),A=f(y,N);h(A);let E=[...N];if(y.pullMode!=="clone")E=g(A,E);else{let P=A;switch(S){case"multidrag":P=A.map((z,M)=>({...z,element:y.clones[M]}));break;case"normal":P=A.map(z=>({...z,element:y.clone}));break;case"swap":default:a(o)(!0,`mode "${S}" cannot clone. Please remove "props.clone" from when using the "${S}" plugin`)}u(P),A.forEach(z=>{const M=z.oldIndex,V=this.props.clone(z.item,y);E.splice(M,1,V)})}E=E.map(P=>Object.assign(P,{selected:!1})),O(E,this.sortable,D)}onUpdate(y){const{list:N,setList:O}=this.props,S=f(y,N);u(S),h(S);const A=p(S,N);return O(A,this.sortable,D)}onStart(){D.dragging=this}onEnd(){D.dragging=null}onChoose(y){const{list:N,setList:O}=this.props,S=N.map((A,E)=>{let P=A;return E===y.oldIndex&&(P=Object.assign(A,{chosen:!0})),P});O(S,this.sortable,D)}onUnchoose(y){const{list:N,setList:O}=this.props,S=N.map((A,E)=>{let P=A;return E===y.oldIndex&&(P=Object.assign(P,{chosen:!1})),P});O(S,this.sortable,D)}onSpill(y){const{removeOnSpill:N,revertOnSpill:O}=this.props;N&&!O&&c(y.item)}onSelect(y){const{list:N,setList:O}=this.props,S=N.map(A=>Object.assign(A,{selected:!1}));y.newIndicies.forEach(A=>{const E=A.index;if(E===-1){console.log(`"${y.type}" had indice of "${A.index}", which is probably -1 and doesn't usually happen here.`),console.log(y);return}S[E].selected=!0}),O(S,this.sortable,D)}onDeselect(y){const{list:N,setList:O}=this.props,S=N.map(A=>Object.assign(A,{selected:!1}));y.newIndicies.forEach(A=>{const E=A.index;E!==-1&&(S[E].selected=!0)}),O(S,this.sortable,D)}}gd(_,"defaultProps",{clone:y=>y});var H={};l(e.exports,H)})(rf);var hr=rf.exports;const o_=window.React.forwardRef,fr=o_(({searchText:e="",onSearch:t=()=>!1,placeholder:n=I("Search"),...i},o)=>r.jsx(a_,{value:e,onChange:t,ref:o,type:"text",prefix:r.jsx(s_,{children:r.jsx($6,{})}),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))"}},de(["",""],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity)) !important"})]}));var a_=m(st)`${e=>e.$_css2}`,s_=m("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,Y1=window.React.useContext,bf=window.React.useEffect,ms=window.React.useMemo,d_=window.React.useRef,$o=window.React.useState,u_=l_({}),h_=e=>{const{builder:t}=Y1(Ze),n=ne(t)(l=>l.changeElementSettings),i=ne(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)}),$e().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))"},o&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],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:_e([!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:yf[e.item.flag]??""}}),r.jsx("span",{className:_e(["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:[de(["&: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:[de(["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:[de(["padding:0 !important;overflow:hidden;"])]})})]})},f_=window.brandyCustomizerData.language.list,yf=window.brandyCustomizerData.language.flags;function p_(e){const{builder:t}=Y1(Ze),n=ms(()=>e.value??e.default_value,[e.value,e.default_value]),i=ne(t)(w=>{var k;return((k=w.chosenElement)==null?void 0:k.id)??""}),[o,a]=$o(null),[s,l]=$o(null),{styles:c,attributes:d}=$n(o,s),[u,h]=$o(!1),f=()=>{h(w=>!w)},p=()=>{h(!1)};bf(()=>{const w=k=>{(o==null||s==null)&&p(),!(o!=null&&o.contains(k.target))&&!(s!=null&&s.contains(k.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),$e().refreshPartial(`${t}_${i}`))},v=ms(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(u_.Provider,{value:v,children:r.jsxs(__,{children:[r.jsxs(S_,{children:[r.jsx(ze,{className:"m-0",children:I("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(hr.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}=Y1(Ze),a=ne(o)(g=>g.changeElementSettings),s=ne(o)(g=>{var v,w;return((w=(v=g.chosenElement)==null?void 0:v.settings)==null?void 0:w.languages)??[]}),l=ne(o)(g=>{var v;return((v=g.chosenElement)==null?void 0:v.id)??""}),[c,d]=$o(""),u=ms(()=>f_.filter(g=>!s.map(v=>v.id).includes(g.id)),[s]),h=ms(()=>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(v=>{v.languages.push(g)}),$e().refreshPartial(`${o}_${l}`),t()},p=d_(null);return bf(()=>{var g,v;return(v=(g=p.current)==null?void 0:g.querySelector("input"))==null?void 0:v.focus()},[p.current]),r.jsxs(D_,{style:e,ref:i,...n,children:[r.jsxs($_,{children:[r.jsx(E_,{children:"Add language"}),r.jsx(H_,{onClick:()=>{t()},children:r.jsx(ta,{})})]}),r.jsx(M_,{children:r.jsx(fr,{ref:p,searchText:c,onSearch:g=>{d(g.toString())},placeholder:I("Search language")})}),r.jsx(Nn,{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:yf[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_=m("div")`${e=>e.$_css2}`,v_=m("div")`${e=>e.$_css3}`,w_=m("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_=m("div")`${e=>e.$_css4}`,b_=m("span")`${e=>e.$_css5}`,y_=m(st)`${e=>e.$_css6}`,C_=m("span")`${e=>e.$_css7}`,__=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),S_=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),j_=m("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_=m("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),D_=m("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))","--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)"}),$_=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),E_=m("span")({fontSize:"16px",fontWeight:"500"}),H_=m("span")({cursor:"pointer",padding:"0.25rem"}),M_=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),I_=m("div")({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.25rem",padding:"1rem"}),T_=m("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))"}}),L_=m("span")`${e=>e.$_css8}`,A_=m("div").withConfig({displayName:"ListLanguages___StyledDiv12",componentId:"sc-1uj33jr-0"})({gridColumn:"span 4 / span 4",margin:"auto","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"});const R_=window.React.createContext,N_=window.React.forwardRef,J1=window.React.useContext,Cf=window.React.useEffect,vs=window.React.useMemo,B_=window.React.useRef,Eo=window.React.useState,O_=R_({}),P_=e=>{const{builder:t}=J1(Ze),n=Ie(s=>s.changeElementSettings),[i,o]=Eo(!1),a=()=>{n(s=>{s.currencies=s.currencies.filter(l=>l.id!==e.item.id)}),$e().refreshPartial(`${t}_currency`)};return r.jsx(F_,{className:"currency-item",$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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(Z_,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},i&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))"},i&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],children:[r.jsxs(W_,{children:[r.jsx(G_,{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:_e([!i&&"group-hover:[&_*]:fill-brandy-text",i&&`[&_*]: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.jsxs(U_,{className:_e(["group-hover:text-brandy-text",i&&"group-hover:text-gutenberg-white"]),children:[r.jsx(Y_,{src:e.item.flag,alt:"currency-flag"}),r.jsx(J_,{children:e.item.id})]})]}),r.jsx(X_,{$_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"}},i&&{visibility:"visible !important",opacity:"1 !important"}],children:r.jsx(Q_,{onClick:a,$_css5:[{cursor:"pointer",padding:"0.25rem"},de(["&: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})]})})})]})})},_f=window.brandyCustomizerData.currency.list;function V_(e){const{builder:t}=J1(Ze),n=vs(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Eo(null),[a,s]=Eo(null),{styles:l,attributes:c}=$n(i,a),[d,u]=Eo(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};Cf(()=>{const v=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",v),()=>{window.jQuery(document).off("click","body",v)}},[i,a]);const p=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),$e().refreshPartial(`${t}_currency`))},g=vs(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(O_.Provider,{value:g,children:r.jsxs(q_,{children:[r.jsxs(K_,{children:[r.jsx(ze,{className:"m-0",children:I("List Currencies")}),r.jsx(eS,{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(tS,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),_f.length<1&&r.jsx("div",{dangerouslySetInnerHTML:{__html:I('Please install YayCurrency to add currencies')}}),r.jsx(hr.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(v=>r.jsx("div",{children:r.jsx(P_,{item:v})},v.id))}),d&&r.jsx(z_,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})})}const z_=N_(({style:e,onClose:t,...n},i)=>{const{builder:o}=J1(Ze),a=Ie(p=>p.changeElementSettings),s=Ie(p=>{var g,v;return((v=(g=p.chosenElement)==null?void 0:g.settings)==null?void 0:v.currencies)??[]}),[l,c]=Eo(""),d=vs(()=>_f.filter(p=>!s.map(g=>g.id).includes(p.id)),[s]),u=vs(()=>d.filter(p=>p.name.toLowerCase().includes(l.toLowerCase())||p.id.toLowerCase().includes(l.toLowerCase())),[d,l]),h=p=>()=>{a(g=>{g.currencies.push(p)}),$e().refreshPartial(`${o}_currency`),t()},f=B_(null);return Cf(()=>{var p,g;return(g=(p=f.current)==null?void 0:p.querySelector("input"))==null?void 0:g.focus()},[f.current]),r.jsxs(nS,{style:e,ref:i,...n,$_css6:[{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))"},{"--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(rS,{children:[r.jsx(iS,{children:"Add currency"}),r.jsx(oS,{onClick:()=>{t()},children:r.jsx(ta,{})})]}),r.jsx(aS,{children:r.jsx(fr,{ref:f,searchText:l,onSearch:p=>{c(p.toString())},placeholder:I("Search currency")})}),r.jsx(Nn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(sS,{children:[u.map(p=>r.jsxs(lS,{onClick:h(p),$_css7:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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)"}}],children:[r.jsx(cS,{src:p.flag,alt:"currency-flag"}),r.jsx(dS,{children:p.id})]},p.id)),u.length===0&&r.jsx(uS,{children:"No currency found"})]})})]})});var F_=m("div")`${e=>e.$_css2}`,Z_=m("div")`${e=>e.$_css3}`,W_=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),G_=m("span")({cursor:"grab",padding:"0.5rem"}),U_=m("span")({display:"flex",alignItems:"center"}),Y_=m("img")({marginRight:"0.5rem",display:"inline-block",width:"30px",borderRadius:"3px"}),J_=m("span")({fontWeight:"500"}),X_=m("div")`${e=>e.$_css4}`,Q_=m("span")`${e=>e.$_css5}`,q_=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),K_=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),eS=m("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"}}),tS=m("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),nS=m("div")`${e=>e.$_css6}`,rS=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),iS=m("span")({fontSize:"16px",fontWeight:"500"}),oS=m("span")({cursor:"pointer",padding:"0.25rem"}),aS=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),sS=m("div")({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),lS=m("div")`${e=>e.$_css7}`,cS=m("img")({marginRight:"0.5rem",width:"40px",borderRadius:"3px"}),dS=m("span")({fontWeight:"500"}),uS=m("div").withConfig({displayName:"ListCurrencies___StyledDiv13",componentId:"sc-gaezvr-0"})({gridColumn:"span 4 / span 4",margin:"auto","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"});const hS=window.React.useContext;function fS(e){const t=hS(Ze);return r.jsx("div",{className:"flex flex-col gap-4",children:r.jsxs("div",{children:[r.jsx(el,{...e}),r.jsxs("div",{className:"text-brandy-text-secondary mt-2",children:[I("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 pS=window.React.useContext,cu=window.React.useMemo,gS=window.brandyCustomizerData.icons.account;function mS(e){const{builder:t}=pS(Ft),n=cu(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=ne(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=cu(()=>Object.entries(gS[i]??{}).map(([a,s])=>({value:a,label:r.jsx("span",{className:_e(["brandy-icon"]),dangerouslySetInnerHTML:{__html:s}})})),[i]);return r.jsx(Rn,{...e,options:o,itemCss:[de(["&.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 vS=window.React.useMemo,wS={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 Sf({state:e}){const t=vS(()=>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:wS[e]})]})}const xS=()=>r.jsx(Sf,{state:"logged_in"}),bS=()=>r.jsx(Sf,{state:"logged_out"}),yS=window.React.useMemo,CS=window.brandyCustomizerData.icons.button;function _S(e){const t=yS(()=>Object.entries(CS??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:_e(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(Rn,{...e,options:t,className:"[&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-4"})}const SS=window.React.useContext,jS=window.React.useMemo,kS=window.brandyCustomizerData.icons.cart;function DS(e){const{builder:t}=SS(Ft),n=ne(t)(o=>{var a;return(a=o.chosenElement)==null?void 0:a.settings.icon_style}),i=jS(()=>Object.entries(kS[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:_e(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(Rn,{...e,options:i})}const $S=window.React.forwardRef,X1=window.React.useContext,jf=window.React.useEffect,Jc=window.React.useMemo,ES=window.React.useRef,Ho=window.React.useState,HS=e=>{const{builder:t}=X1(Ze),n=ne(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=ne(t)(h=>h.changeElementSettings),[o,a]=Ho(!1),s=h=>{h.stopPropagation(),n.items.forEach((f,p)=>{f.id===e.item.id&&i(g=>{g.items[p].visible=!n.items[p].visible})}),$e().refreshPartial(`${t}_contact`)},l=()=>{i(h=>{h.items=n.items.filter(f=>f.id!==e.item.id)}),$e().refreshPartial(`${t}_contact`)},c=()=>{a(h=>!h)},d=h=>{n.items.forEach((f,p)=>{if(f.id===e.item.id){const g=oe(_t("contact",t)+` .brandy-contact-item[type="${f.id}"] .brandy-contact-item__text`);g&&window.jQuery(g).html(h.toString()),i(v=>{v.items[p].content=h.toString()})}})},u=h=>{n.items.forEach((f,p)=>{if(f.id===e.item.id){const g=oe(_t("contact",t)+` .brandy-contact-item[type="${f.id}"]`);g&&window.jQuery(g).attr("href",h.toString()),i(v=>{v.items[p].url=h.toString()})}})};return r.jsxs(LS,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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(AS,{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))"},o&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],children:[r.jsxs(RS,{children:[r.jsx(NS,{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:_e([!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:_e(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(BS,{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(OS,{className:"p-1 cursor-pointer",onClick:l,$_css5:[de(["&: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("span",{onClick:s,className:"p-1 cursor-pointer",children:e.item.visible?r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21322 9.65625C7.21322 8.13747 8.43575 6.90625 9.94382 6.90625C11.4519 6.90625 12.6744 8.13747 12.6744 9.65625C12.6744 11.175 11.4519 12.4063 9.94382 12.4063C8.43575 12.4063 7.21322 11.175 7.21322 9.65625ZM6.01336 5.76716C8.14608 3.61928 11.6039 3.61928 13.7366 5.76716L15.2165 7.25756C15.6445 7.68849 16.0132 8.05979 16.2687 8.39713C16.5426 8.75864 16.75 9.16072 16.75 9.65625C16.75 10.1518 16.5426 10.5539 16.2687 10.9154C16.0132 11.2527 15.6445 11.624 15.2165 12.0549L13.7366 13.5453C11.6039 15.6932 8.14608 15.6932 6.01336 13.5453L4.53346 12.0549C4.10553 11.624 3.73681 11.2527 3.48125 10.9154C3.20737 10.5539 3 10.1518 3 9.65625C3 9.16072 3.20737 8.75864 3.48125 8.39712C3.73681 8.0598 4.10553 7.6885 4.53347 7.25757C4.54402 7.24694 4.55461 7.23627 4.56524 7.22557L6.01336 5.76716Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.94342 8.28125C9.18939 8.28125 8.57812 8.89686 8.57812 9.65625C8.57812 10.4156 9.18939 11.0313 9.94342 11.0313C10.6975 11.0313 11.3087 10.4156 11.3087 9.65625C11.3087 8.89686 10.6975 8.28125 9.94342 8.28125Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}):r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.56821 4.64479C9.56073 3.73048 11.9917 4.09905 13.6323 5.75445L15.6616 7.80205C15.682 7.82261 15.7022 7.84294 15.7222 7.86308C15.9974 8.14007 16.235 8.37932 16.3788 8.6519C16.6957 9.25283 16.6957 9.97343 16.3788 10.5744C16.235 10.8469 15.9974 11.0862 15.7222 11.3632C15.7022 11.3833 15.682 11.4036 15.6616 11.4242L15.6264 11.4597C15.3624 11.7261 14.9344 11.7261 14.6704 11.4597C14.4064 11.1933 14.4064 10.7614 14.6704 10.495L14.7056 10.4595C15.0763 10.0855 15.1497 10.0008 15.1852 9.93354C15.2908 9.73323 15.2908 9.49303 15.1852 9.29272C15.1497 9.22547 15.0763 9.14078 14.7056 8.76672L12.6763 6.71912C11.4472 5.4789 9.62411 5.2001 8.12791 5.88666C7.78805 6.04261 7.38724 5.89103 7.23269 5.5481C7.07813 5.20517 7.22835 4.80075 7.56821 4.64479Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37445 4.50556C3.60367 4.20819 4.0284 4.15462 4.32311 4.38591L16.4915 13.9356C16.7862 14.1669 16.8393 14.5955 16.61 14.8929C16.3808 15.1902 15.9561 15.2438 15.6614 15.0125L13.6598 13.4416L13.6324 13.4693C11.5204 15.6004 8.09611 15.6004 5.98409 13.4693L4.51857 11.9905C4.0948 11.563 3.72965 11.1946 3.47658 10.8599C3.20536 10.5012 3 10.1022 3 9.61059C3 9.11894 3.20536 8.72 3.47658 8.36131C3.72965 8.02662 4.09479 7.65823 4.51858 7.23067L5.05544 6.68896L3.49304 5.46278C3.19833 5.23149 3.14524 4.80293 3.37445 4.50556ZM10.3879 10.8739L11.5296 11.7699C11.0725 12.1267 10.499 12.3391 9.87639 12.3391C8.38296 12.3391 7.17231 11.1175 7.17231 9.61059C7.17231 9.22476 7.25168 8.85763 7.39484 8.52492L8.53724 9.42147C8.52874 9.48329 8.52435 9.54644 8.52435 9.61062C8.52435 10.3641 9.12968 10.9749 9.87639 10.9749C10.0574 10.9749 10.2301 10.939 10.3879 10.8739Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(PS,{onClick:c,className:"p-1 cursor-pointer",$_css6:[de(["&: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(VS,{children:[r.jsxs(zS,{children:[r.jsx("div",{children:"Content"}),r.jsx(st,{value:e.item.content,onChange:d})]}),r.jsxs(FS,{children:[r.jsx("div",{children:"Link"}),r.jsx(ZS,{value:e.item.url,onChange:u,prefix:r.jsx(WS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:kf[e.item.icon]??""},$_css8:[de(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[de(["padding:0 !important;overflow:hidden;"])]})]})]})]})},MS=window.brandyCustomizerData.all_contacts,kf=window.brandyCustomizerData.icons.contact;function IS(e){const{builder:t}=X1(Ze),n=Jc(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Ho(null),[a,s]=Ho(null),{styles:l,attributes:c}=$n(i,a),[d,u]=Ho(!1),h=()=>{u(g=>!g)},f=()=>{u(!1)};jf(()=>{const g=v=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(v.target))&&!(a!=null&&a.contains(v.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),$e().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(ze,{className:"m-0",children:I("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(hr.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(HS,{item:g})},g.id))}),d&&r.jsx(TS,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const TS=$S(({style:e,onClose:t,...n},i)=>{const{builder:o}=X1(Ze),a=ne(o)(p=>{var g;return(g=p.chosenElement)==null?void 0:g.settings}),s=ne(o)(p=>p.changeElementSettings),[l,c]=Ho(""),d=Jc(()=>MS.filter(p=>!a.items.map(g=>g.id).includes(p.id)),[a.items]),u=Jc(()=>d.filter(p=>p.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=p=>()=>{s(g=>{g.items.push(p)}),$e().refreshPartial(`${o}_contact`),t()},f=ES(null);return jf(()=>{var p,g;return(g=(p=f.current)==null?void 0:p.querySelector("input"))==null?void 0:g.focus()},[f.current]),r.jsxs(GS,{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(ta,{})})]}),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:I("Search contact")})}),r.jsx(Nn,{className:"h-[250px]",autoHide:!0,children:r.jsxs("div",{className:"p-4 flex flex-col gap-1",children:[u.map(p=>r.jsxs(US,{className:"group",onClick:h(p),$_css10:[{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))"},{"&:hover":{backgroundColor:"rgba(34, 113, 177, 0.03)"}}],children:[r.jsx(YS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:kf[p.icon]??""},$_css11:[de(["svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7",".group:hover &":{stroke:"#2271B1"}},{fill:"#A1ABB7",".group:hover &":{fill:"#2271B1"}})]}),r.jsx(JS,{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 LS=m("div")`${e=>e.$_css2}`,AS=m("div")`${e=>e.$_css3}`,RS=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),NS=m("span")({cursor:"grab",padding:"0.5rem"}),BS=m("div")`${e=>e.$_css4}`,OS=m("span")`${e=>e.$_css5}`,PS=m("span")`${e=>e.$_css6}`,VS=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),zS=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),FS=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),ZS=m(st)`${e=>e.$_css7}`,WS=m("span")`${e=>e.$_css8}`,GS=m("div")`${e=>e.$_css9}`,US=m("div")`${e=>e.$_css10}`,YS=m("span")`${e=>e.$_css11}`,JS=m("span").withConfig({displayName:"ListContacts___StyledSpan6",componentId:"sc-1q0j5o-0"})({"--tw-text-opacity":"1",color:"rgb(66 66 66 / var(--tw-text-opacity))",".group:hover &":{"--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}});const XS=window.React.useContext,QS=window.React.useMemo,qS=[{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"})})]})}],KS=m.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))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"}]);var ej=m(KS).withConfig({displayName:"ActiveTypeSelection___StyledStyledItem",componentId:"sc-5cnq7j-1"})(["",""],e=>e.$_css2);function tj(e){const{builder:t}=XS(Ze),n=ne(t)(s=>s.changeElementSettings),{current:i}=ye(),o=QS(()=>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(()=>{Dn({sectionId:e.sectionId,settings:l,device:i})},1)}),e.onChange(s))};return r.jsxs(r.Fragment,{children:[r.jsx(ze,{children:I("Select menu item active type")}),r.jsx("div",{className:"flex flex-col gap-4",children:qS.map(s=>r.jsx(ej,{onClick:()=>{a(s.value)},selected:o===s.value,$_css2:[de` svg { width: 100%; } `],children:s.label},s.value))})]})}const nj=window.React.useContext,rj=window.React.useMemo,ij=window.brandyCustomizerData.wp_nav_menus,oj=ij.map(e=>({label:e.name,value:e.slug}));function aj(e){const t=nj(Ze),n=rj(()=>e.value??e.default_value,[e.value,e.default_value]);return r.jsxs(r.Fragment,{children:[r.jsx(ze,{children:"Select Menu"}),r.jsx(pt,{options:oj,selected:n,onChange:e.onChange}),r.jsxs("div",{className:"text-brandy-text-secondary mt-2",children:[I("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 sj=window.React.useMemo,lj=window.brandyCustomizerData.icons.search;function cj(e){const t=sj(()=>Object.entries(lj??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:_e(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(Rn,{...e,options:t})}const dj=[{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","fill-opacity":"0.2"}),r.jsx("rect",{x:"9",y:"9",width:"20",height:"5",rx:"2",fill:"black","fill-opacity":"0.1"}),r.jsx("path",{d:"M157 14H140V15H157V14Z",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"145",y:"8.5",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"167",y:"10",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"184",y:"10",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"201",y:"10",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"218",y:"10",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"235",y:"10",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"252",y:"10",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"270",y:"5.5",width:"12",height:"12",rx:"2",fill:"black","fill-opacity":"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",{"clip-path":"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",{"fill-rule":"evenodd","clip-rule":"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","color-interpolation-filters":"sRGB",children:[r.jsx("feFlood",{"flood-opacity":"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","fill-opacity":"0.2"}),r.jsx("rect",{x:"14",y:"10",width:"20",height:"5",rx:"2",fill:"black","fill-opacity":"0.1"}),r.jsx("path",{d:"M140 15H123V16H140V15Z",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"128",y:"9.5",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"150",y:"11",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"167",y:"11",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"184",y:"11",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"201",y:"11",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"218",y:"11",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"0.1"}),r.jsx("rect",{x:"235",y:"11",width:"7",height:"3",rx:"1.5",fill:"black","fill-opacity":"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",{"fill-rule":"evenodd","clip-rule":"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","fill-opacity":"0.2"}),r.jsx("rect",{x:"8",y:"10",width:"25",height:"5",rx:"2",fill:"black","fill-opacity":"0.05"}),r.jsx("rect",{x:"46",y:"10",width:"14",height:"5",rx:"2",fill:"black","fill-opacity":"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",{"fill-rule":"evenodd","clip-rule":"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","fill-opacity":"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","fill-opacity":"0.2"}),r.jsx("rect",{x:"8",y:"10",width:"25",height:"5",rx:"2",fill:"black","fill-opacity":"0.05"}),r.jsx("rect",{x:"46",y:"10",width:"14",height:"5",rx:"2",fill:"black","fill-opacity":"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",{"fill-rule":"evenodd","clip-rule":"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","fill-opacity":"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 uj(e){return r.jsx(Rn,{...e,options:(e.options??[]).map(t=>dj.find(n=>n.value===t.value)),className:"live-result-type-group [&_.brandy-radio-item]:pb-0",itemCss:[de(["&.selected{border:1px solid #000;}"])]})}const hj=window.React.useMemo,fj=window.React.useState;function pj(e){const[t,n]=fj(""),i=l=>{n(l.toString())},o=hj(()=>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(st,{placeholder:"Typing suggestion then enter",onChange:i,value:t,onKeyUp:a,type:"text"}),r.jsx(gj,{tags:o,onRemove:s})]})}function gj({tags:e,onRemove:t}){return r.jsx(mj,{children:e.map(n=>r.jsxs(vj,{children:[n,r.jsx("span",{onClick:()=>{t(n)},children:r.jsxs(wj,{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 mj=m("div")({marginTop:"0.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"}),vj=m("span")({display:"flex",alignItems:"center",gap:"0.5rem",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"0.5rem"}),wj=m("svg").withConfig({displayName:"Suggestions___StyledSvg",componentId:"sc-vw3nn3-0"})({height:"8px",width:"8px",cursor:"pointer"});const xj=window.React.forwardRef,Q1=window.React.useContext,Df=window.React.useEffect,Ka=window.React.useMemo,bj=window.React.useRef,Mo=window.React.useState,yj=e=>{const{builder:t}=Q1(Ze),n=ne(t)(f=>{var p;return(p=f.chosenElement)==null?void 0:p.settings}),i=ne(t)(f=>f.changeElementSettings),o=ne(t)(f=>{var p;return(p=f.chosenElement)==null?void 0:p.id}),[a,s]=Mo(!1),l=f=>{f.stopPropagation(),n.items.forEach((p,g)=>{p.id===e.item.id&&i(v=>{v.items[g].visible=!n.items[g].visible})}),$e().refreshPartial(`${t}_${o}`)},c=()=>{i(f=>{f.items=n.items.filter(p=>p.id!==e.item.id)}),$e().refreshPartial(`${t}_${o}`)},d=()=>{s(f=>!f)},u=f=>{n.items.forEach((p,g)=>{if(p.id===e.item.id){const v=oe(_t(o??"",t)+` .brandy-social-item[data-social-id="${p.id}"] .brandy-social-item__label`);v&&window.jQuery(v).html(f),i(w=>{w.items[g].label=f.toString()})}})},h=f=>{n.items.forEach((p,g)=>{if(p.id===e.item.id){const v=oe(_t(o??"",t)+` .brandy-social-item[data-social-id="${p.id}"]`);v&&window.jQuery(v).attr("href",f),i(w=>{w.items[g].url=f.toString()})}})};return r.jsxs(jj,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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(kj,{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))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],children:[r.jsxs(Dj,{children:[r.jsx($j,{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:_e([!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:_e(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Ej,{$_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(Hj,{onClick:c,$_css5:[{cursor:"pointer",padding:"0.25rem"},de(["&: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("span",{onClick:l,className:"p-1 cursor-pointer",children:e.item.visible?r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21322 9.65625C7.21322 8.13747 8.43575 6.90625 9.94382 6.90625C11.4519 6.90625 12.6744 8.13747 12.6744 9.65625C12.6744 11.175 11.4519 12.4063 9.94382 12.4063C8.43575 12.4063 7.21322 11.175 7.21322 9.65625ZM6.01336 5.76716C8.14608 3.61928 11.6039 3.61928 13.7366 5.76716L15.2165 7.25756C15.6445 7.68849 16.0132 8.05979 16.2687 8.39713C16.5426 8.75864 16.75 9.16072 16.75 9.65625C16.75 10.1518 16.5426 10.5539 16.2687 10.9154C16.0132 11.2527 15.6445 11.624 15.2165 12.0549L13.7366 13.5453C11.6039 15.6932 8.14608 15.6932 6.01336 13.5453L4.53346 12.0549C4.10553 11.624 3.73681 11.2527 3.48125 10.9154C3.20737 10.5539 3 10.1518 3 9.65625C3 9.16072 3.20737 8.75864 3.48125 8.39712C3.73681 8.0598 4.10553 7.6885 4.53347 7.25757C4.54402 7.24694 4.55461 7.23627 4.56524 7.22557L6.01336 5.76716Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.94342 8.28125C9.18939 8.28125 8.57812 8.89686 8.57812 9.65625C8.57812 10.4156 9.18939 11.0313 9.94342 11.0313C10.6975 11.0313 11.3087 10.4156 11.3087 9.65625C11.3087 8.89686 10.6975 8.28125 9.94342 8.28125Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}):r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.56821 4.64479C9.56073 3.73048 11.9917 4.09905 13.6323 5.75445L15.6616 7.80205C15.682 7.82261 15.7022 7.84294 15.7222 7.86308C15.9974 8.14007 16.235 8.37932 16.3788 8.6519C16.6957 9.25283 16.6957 9.97343 16.3788 10.5744C16.235 10.8469 15.9974 11.0862 15.7222 11.3632C15.7022 11.3833 15.682 11.4036 15.6616 11.4242L15.6264 11.4597C15.3624 11.7261 14.9344 11.7261 14.6704 11.4597C14.4064 11.1933 14.4064 10.7614 14.6704 10.495L14.7056 10.4595C15.0763 10.0855 15.1497 10.0008 15.1852 9.93354C15.2908 9.73323 15.2908 9.49303 15.1852 9.29272C15.1497 9.22547 15.0763 9.14078 14.7056 8.76672L12.6763 6.71912C11.4472 5.4789 9.62411 5.2001 8.12791 5.88666C7.78805 6.04261 7.38724 5.89103 7.23269 5.5481C7.07813 5.20517 7.22835 4.80075 7.56821 4.64479Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37445 4.50556C3.60367 4.20819 4.0284 4.15462 4.32311 4.38591L16.4915 13.9356C16.7862 14.1669 16.8393 14.5955 16.61 14.8929C16.3808 15.1902 15.9561 15.2438 15.6614 15.0125L13.6598 13.4416L13.6324 13.4693C11.5204 15.6004 8.09611 15.6004 5.98409 13.4693L4.51857 11.9905C4.0948 11.563 3.72965 11.1946 3.47658 10.8599C3.20536 10.5012 3 10.1022 3 9.61059C3 9.11894 3.20536 8.72 3.47658 8.36131C3.72965 8.02662 4.09479 7.65823 4.51858 7.23067L5.05544 6.68896L3.49304 5.46278C3.19833 5.23149 3.14524 4.80293 3.37445 4.50556ZM10.3879 10.8739L11.5296 11.7699C11.0725 12.1267 10.499 12.3391 9.87639 12.3391C8.38296 12.3391 7.17231 11.1175 7.17231 9.61059C7.17231 9.22476 7.25168 8.85763 7.39484 8.52492L8.53724 9.42147C8.52874 9.48329 8.52435 9.54644 8.52435 9.61062C8.52435 10.3641 9.12968 10.9749 9.87639 10.9749C10.0574 10.9749 10.2301 10.939 10.3879 10.8739Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(Mj,{onClick:d,$_css6:[{cursor:"pointer",padding:"0.25rem"},de(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsxs(Ij,{children:[r.jsxs(Tj,{children:[r.jsx("div",{children:"Label"}),r.jsx(st,{value:e.item.label,onChange:u})]}),r.jsxs(Lj,{children:[r.jsx("div",{children:"Link"}),r.jsx(Aj,{value:e.item.url,onChange:h,prefix:r.jsx(Rj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:(ws[e.item.icon]&&ws[e.item.icon][n.icon_color_type])??""},$_css8:[de(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[de(["padding:0 !important;overflow:hidden;"])]})]})]})]})},Cj=window.brandyCustomizerData.all_socials,ws=window.brandyCustomizerData.icons.socials;function _j(e){const{builder:t}=Q1(Ze),n=Ka(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Mo(null),[a,s]=Mo(null),{styles:l,attributes:c}=$n(i,a),[d,u]=Mo(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};Df(()=>{const v=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",v),()=>{window.jQuery(document).off("click","body",v)}},[i,a]);const p=ne(t)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),g=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),$e().refreshPartial(`${t}_${p}`))};return r.jsxs(Nj,{children:[r.jsxs(Bj,{children:[r.jsx(ze,{className:"m-0",children:"List socials"}),r.jsx(Oj,{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(Pj,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(hr.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(v=>r.jsx("div",{children:r.jsx(yj,{item:v})},v.id))}),d&&r.jsx(Sj,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const Sj=xj(({style:e,onClose:t,...n},i)=>{const{builder:o}=Q1(Ze),a=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.settings}),s=ne(o)(v=>v.changeElementSettings),[l,c]=Mo(""),d=Ka(()=>Cj.filter(v=>!a.items.map(w=>w.id).includes(v.id)),[a.items]),u=Ka(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=Ka(()=>a.icon_color_type,[a.icon_color_type]),f=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),p=v=>()=>{s(w=>{w.items.push(v)}),$e().refreshPartial(`${o}_${f}`),t()},g=bj(null);return Df(()=>{var v,w;return(w=(v=g.current)==null?void 0:v.querySelector("input"))==null?void 0:w.focus()},[g.current]),r.jsxs(Vj,{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))"},{"--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(zj,{children:[r.jsx(Fj,{children:"Add social icon"}),r.jsx(Zj,{onClick:()=>{t()},children:r.jsx(ta,{})})]}),r.jsx(Wj,{children:r.jsx(fr,{ref:g,searchText:l,onSearch:v=>{c(v.toString())},placeholder:I("Search socials")})}),r.jsx(Nn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Gj,{children:[u.map(v=>r.jsx(Uj,{onClick:p(v),$_css10:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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"&&de(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:(ws[v.icon]&&ws[v.icon][h])??""}})},v.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var jj=m("div")`${e=>e.$_css2}`,kj=m("div")`${e=>e.$_css3}`,Dj=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),$j=m("span")({cursor:"grab",padding:"0.5rem"}),Ej=m("div")`${e=>e.$_css4}`,Hj=m("span")`${e=>e.$_css5}`,Mj=m("span")`${e=>e.$_css6}`,Ij=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Tj=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Lj=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Aj=m(st)`${e=>e.$_css7}`,Rj=m("span")`${e=>e.$_css8}`,Nj=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Bj=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Oj=m("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"}}),Pj=m("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),Vj=m("div")`${e=>e.$_css9}`,zj=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),Fj=m("span")({fontSize:"16px",fontWeight:"500"}),Zj=m("span")({cursor:"pointer",padding:"0.25rem"}),Wj=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),Gj=m("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),Uj=m("div").withConfig({displayName:"ListSocials___StyledDiv15",componentId:"sc-hody2l-0"})(["",""],e=>e.$_css10);const Yj=window.React.forwardRef,q1=window.React.useContext,$f=window.React.useEffect,es=window.React.useMemo,Jj=window.React.useRef,Io=window.React.useState,Xj=e=>{const{builder:t}=q1(Ze),n=ne(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=ne(t)(h=>h.changeElementSettings),o=ne(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.id}),[a,s]=Io(!1),l=h=>{h.stopPropagation(),n.items.forEach((f,p)=>{f.id===e.item.id&&i(g=>{g.items[p].visible=!n.items[p].visible})}),$e().refreshPartial(`${t}_${o}`)},c=()=>{i(h=>{h.items=n.items.filter(f=>f.id!==e.item.id)}),$e().refreshPartial(`${t}_${o}`)},d=()=>{s(h=>!h)},u=h=>{n.items.forEach((f,p)=>{if(f.id===e.item.id){const g=oe(_t(o??"",t)+` .brandy-payment-item[data-payment-id="${f.id}"]`);g&&window.jQuery(g).attr("href",Ls(h)),i(v=>{v.items[p].url=h.toString()})}})};return r.jsxs(ek,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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(tk,{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))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],children:[r.jsxs(nk,{children:[r.jsx(rk,{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:_e([!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:_e(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(ik,{$_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(ok,{onClick:c,$_css5:[{cursor:"pointer",padding:"0.25rem"},de(["&: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("span",{onClick:l,className:"p-1 cursor-pointer",children:e.item.visible?r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21322 9.65625C7.21322 8.13747 8.43575 6.90625 9.94382 6.90625C11.4519 6.90625 12.6744 8.13747 12.6744 9.65625C12.6744 11.175 11.4519 12.4063 9.94382 12.4063C8.43575 12.4063 7.21322 11.175 7.21322 9.65625ZM6.01336 5.76716C8.14608 3.61928 11.6039 3.61928 13.7366 5.76716L15.2165 7.25756C15.6445 7.68849 16.0132 8.05979 16.2687 8.39713C16.5426 8.75864 16.75 9.16072 16.75 9.65625C16.75 10.1518 16.5426 10.5539 16.2687 10.9154C16.0132 11.2527 15.6445 11.624 15.2165 12.0549L13.7366 13.5453C11.6039 15.6932 8.14608 15.6932 6.01336 13.5453L4.53346 12.0549C4.10553 11.624 3.73681 11.2527 3.48125 10.9154C3.20737 10.5539 3 10.1518 3 9.65625C3 9.16072 3.20737 8.75864 3.48125 8.39712C3.73681 8.0598 4.10553 7.6885 4.53347 7.25757C4.54402 7.24694 4.55461 7.23627 4.56524 7.22557L6.01336 5.76716Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.94342 8.28125C9.18939 8.28125 8.57812 8.89686 8.57812 9.65625C8.57812 10.4156 9.18939 11.0313 9.94342 11.0313C10.6975 11.0313 11.3087 10.4156 11.3087 9.65625C11.3087 8.89686 10.6975 8.28125 9.94342 8.28125Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}):r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.56821 4.64479C9.56073 3.73048 11.9917 4.09905 13.6323 5.75445L15.6616 7.80205C15.682 7.82261 15.7022 7.84294 15.7222 7.86308C15.9974 8.14007 16.235 8.37932 16.3788 8.6519C16.6957 9.25283 16.6957 9.97343 16.3788 10.5744C16.235 10.8469 15.9974 11.0862 15.7222 11.3632C15.7022 11.3833 15.682 11.4036 15.6616 11.4242L15.6264 11.4597C15.3624 11.7261 14.9344 11.7261 14.6704 11.4597C14.4064 11.1933 14.4064 10.7614 14.6704 10.495L14.7056 10.4595C15.0763 10.0855 15.1497 10.0008 15.1852 9.93354C15.2908 9.73323 15.2908 9.49303 15.1852 9.29272C15.1497 9.22547 15.0763 9.14078 14.7056 8.76672L12.6763 6.71912C11.4472 5.4789 9.62411 5.2001 8.12791 5.88666C7.78805 6.04261 7.38724 5.89103 7.23269 5.5481C7.07813 5.20517 7.22835 4.80075 7.56821 4.64479Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37445 4.50556C3.60367 4.20819 4.0284 4.15462 4.32311 4.38591L16.4915 13.9356C16.7862 14.1669 16.8393 14.5955 16.61 14.8929C16.3808 15.1902 15.9561 15.2438 15.6614 15.0125L13.6598 13.4416L13.6324 13.4693C11.5204 15.6004 8.09611 15.6004 5.98409 13.4693L4.51857 11.9905C4.0948 11.563 3.72965 11.1946 3.47658 10.8599C3.20536 10.5012 3 10.1022 3 9.61059C3 9.11894 3.20536 8.72 3.47658 8.36131C3.72965 8.02662 4.09479 7.65823 4.51858 7.23067L5.05544 6.68896L3.49304 5.46278C3.19833 5.23149 3.14524 4.80293 3.37445 4.50556ZM10.3879 10.8739L11.5296 11.7699C11.0725 12.1267 10.499 12.3391 9.87639 12.3391C8.38296 12.3391 7.17231 11.1175 7.17231 9.61059C7.17231 9.22476 7.25168 8.85763 7.39484 8.52492L8.53724 9.42147C8.52874 9.48329 8.52435 9.54644 8.52435 9.61062C8.52435 10.3641 9.12968 10.9749 9.87639 10.9749C10.0574 10.9749 10.2301 10.939 10.3879 10.8739Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(ak,{onClick:d,$_css6:[{cursor:"pointer",padding:"0.25rem"},de(["&: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(sk,{children:r.jsxs(lk,{children:[r.jsx("div",{children:"Link"}),r.jsx(ck,{value:e.item.url,onChange:u,prefix:r.jsx(dk,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Ef[e.item.icon]??""},$_css8:[de(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;"])]}),$_css7:[de(["padding:0 !important;overflow:hidden;"])]})]})})]})},Qj=window.brandyCustomizerData.all_payments,Ef=window.brandyCustomizerData.icons.payments;function qj(e){const{builder:t}=q1(Ze),n=es(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Io(null),[a,s]=Io(null),{styles:l,attributes:c}=$n(i,a),[d,u]=Io(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};$f(()=>{const v=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",v),()=>{window.jQuery(document).off("click","body",v)}},[i,a]);const p=ne(t)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),g=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),$e().refreshPartial(`${t}_${p}`))};return r.jsxs(uk,{children:[r.jsxs(hk,{children:[r.jsx(ze,{className:"m-0",children:"List payments"}),r.jsx(fk,{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(pk,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(hr.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(v=>r.jsx("div",{children:r.jsx(Xj,{item:v})},v.id))}),d&&r.jsx(Kj,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const Kj=Yj(({style:e,onClose:t,...n},i)=>{const{builder:o}=q1(Ze),a=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.settings}),s=ne(o)(v=>v.changeElementSettings),[l,c]=Io(""),d=es(()=>Qj.filter(v=>!a.items.map(w=>w.id).includes(v.id)),[a.items]),u=es(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=es(()=>a.icon_color_type,[a.icon_color_type]),f=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),p=v=>()=>{s(w=>{w.items.push(v)}),$e().refreshPartial(`${o}_${f}`),t()},g=Jj(null);return $f(()=>{var v,w;return(w=(v=g.current)==null?void 0:v.querySelector("input"))==null?void 0:w.focus()},[g.current]),r.jsxs(gk,{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))"},{"--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(mk,{children:[r.jsx(vk,{children:"Add payment icon"}),r.jsx(wk,{onClick:()=>{t()},children:r.jsx(ta,{})})]}),r.jsx(xk,{children:r.jsx(fr,{ref:g,searchText:l,onSearch:v=>{c(v.toString())},placeholder:I("Search payment")})}),r.jsx(Nn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(bk,{children:[u.map(v=>r.jsx(yk,{onClick:p(v),$_css10:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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"&&de(["&: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:Ef[v.icon]??""}})},v.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No payment found"})]})})]})});var ek=m("div")`${e=>e.$_css2}`,tk=m("div")`${e=>e.$_css3}`,nk=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),rk=m("span")({cursor:"grab",padding:"0.5rem"}),ik=m("div")`${e=>e.$_css4}`,ok=m("span")`${e=>e.$_css5}`,ak=m("span")`${e=>e.$_css6}`,sk=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),lk=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),ck=m(st)`${e=>e.$_css7}`,dk=m("span")`${e=>e.$_css8}`,uk=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),hk=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),fk=m("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"}}),pk=m("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),gk=m("div")`${e=>e.$_css9}`,mk=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),vk=m("span")({fontSize:"16px",fontWeight:"500"}),wk=m("span")({cursor:"pointer",padding:"0.25rem"}),xk=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),bk=m("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),yk=m("div").withConfig({displayName:"ListPayments___StyledDiv14",componentId:"sc-wzxanx-0"})(["",""],e=>e.$_css10);const Ck=window.React.useContext,_k=window.React.useMemo,Sk=window.brandyCustomizerData.icons.wishlist;function jk(e){const{builder:t}=Ck(Ft),n=ne(t)(o=>{var a,s;return((s=(a=o.chosenElement)==null?void 0:a.settings)==null?void 0:s.icon_style)??"outline"}),i=_k(()=>Object.entries(Sk[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:_e(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(Rn,{...e,options:i,itemCss:n==="outline"?[de(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]:[de(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]})}const kk=window.React.useContext,Dk=window.React.useMemo;function $k(e){const{builder:t}=kk(Ft),n=Dk(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=ne(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=oe(_t(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(R1,{...e,onChange:o})}const Ek=window.React.useContext,sc={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},button_design_icon:{size:{desktop:{unit:"px",value:10,min:10,max:50},tablet:null,mobile:null}}},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},button_design_icon:{size:{desktop:{unit:"px",value:14,min:10,max:50},tablet:null,mobile:null}}},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},button_design_icon:{size:{desktop:{unit:"px",value:18,min:10,max:50},tablet:null,mobile:null}}}};function Hk(e){const{builder:t}=Ek(Ze),{current:n}=ye(),i=ne(t)(a=>a.changeElementSettings),o=a=>{i(s=>{Ne(s,["button_design_text","typography","font_size"],sc[a].button_design_text.typography.font_size),Ne(s,["button_design_padding"],sc[a].button_design_padding),Ne(s,["button_design_icon","size"],sc[a].button_design_icon.size),Dn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(ur,{...e,onChange:o})}const Mk=window.React.useContext;function Ik(e){const{builder:t}=Mk(Ze),{current:n}=ye(),i=ne(t)(a=>a.changeElementSettings),o=a=>{if(e.settings.inherit_theme??!0){const s=oe(_t(e.sectionId,t)+" .brandy-element-wrapper"),l=oe(_t(e.sectionId,t)+" .brandy-button");if(s&&l){const c="is-style-outline is-style-outline--1 wp-block-button",d="wp-element-button wp-block-button__link";a==="outline"?(window.jQuery(s).addClass(c),window.jQuery(l).addClass(d)):(window.jQuery(s).removeClass(c),window.jQuery(l).removeClass(d),window.jQuery(l).addClass("wp-element-button"))}e.onChange(a);return}i(a==="outline"?s=>{const l={normal:{desktop:"var(--wp--preset--color--brandy-primary-text)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-accent)",tablet:null,mobile:null}};s.button_design.border.color=l,s.button_design_text.color=l,s.button_design_text.color.hover={desktop:"#ffffff",tablet:null,mobile:null},s.button_design_icon.color=s.button_design_text.color,s.button_design.border.width.desktop.value==0&&(s.button_design.border.width.desktop.value=1),s.button_design.border.width.desktop.unit="px",s.button_design.border.width.tablet=null,s.button_design.border.width.mobile=null,s.button_design.background_color={normal:{desktop:"#ffffff00",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-accent)",tablet:null,mobile:null}},Dn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}:s=>{const l={desktop:"#fff",tablet:null,mobile:null};s.button_design_text.color={normal:l,hover:l},s.button_design_icon.color={normal:l,hover:l},s.button_design.background_color={normal:{desktop:"var(--wp--preset--color--brandy-primary-text)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-accent)",tablet:null,mobile:null}},Dn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(ur,{...e,onChange:o})}const lc=window.React.useMemo,Tk=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"15",width:"48",height:"36",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"15",width:"48",height:"36",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_15432)"})]}),value:"6,6"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"24",height:"36",transform:"matrix(-1 0 0 1 110 15)",fill:"#A1ABB7"}),r.jsx("rect",{width:"72",height:"36",transform:"matrix(-1 0 0 1 83 15)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_75917)"})]}),value:"9,3"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"15",width:"24",height:"36",fill:"#A1ABB7"}),r.jsx("rect",{x:"38",y:"15",width:"72",height:"36",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_75957)"})]}),value:"3,9"}],Lk=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"31",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"31",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"31",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137253)"})]}),value:"4,4,4"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"63",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"95",y:"11",width:"15",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137262)"})]}),value:"8,2,2"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"63",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 44 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137269)"})]}),value:"2,2,8"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"63",height:"44",transform:"matrix(-1 0 0 1 92 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137276)"})]}),value:"2,8,2"}],Ak=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"36.5",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"87.5",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137283)"})]}),value:"3,3,3,3"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"45",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 62 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 44 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137304)"})]}),value:"2,2,2,6"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"45",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"59",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"95",y:"11",width:"15",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137295)"})]}),value:"6,2,2,2"}],Rk=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"31.4004",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"51.7998",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"72.2002",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"92.5996",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137313)"})]}),value:"2.4,2.4,2.4,2.4,2.4"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.5 11H79V55H94.5H110V11H94.5Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151083)"})]}),value:"2,2,2,2,4"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.5 11H45V55H60.5H76V11H60.5Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151113)"})]}),value:"2,2,4,2,2"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 11H11V55H26.5H42V11H26.5Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151132)"})]}),value:"4,2,2,2,2"}],Nk=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137327)"})]}),value:"layout_1"}];function Bk(e){var s;const{current:t}=ye(),n=lc(()=>{var l,c;return((l=e.settings)==null?void 0:l.number_column[t])??((c=e.settings)==null?void 0:c.number_column.desktop)},[(s=e.settings)==null?void 0:s.number_column[t],t]),i=lc(()=>n===3?Lk:n===4?Ak:n===5?Rk:n===6?Nk:Tk,[n]);if(n===1)return!1;const o=lc(()=>{const l=me(e.settings,["column_span",t])??{};let c=[];for(let d=1;d<=n;d++)c.push(l[`column_${d}`]??"");return c.join(",")},[e.settings,n]),a=l=>{const c=JSON.parse(JSON.stringify(me(e.settings,["column_span"])??{desktop:{column_1:1,column_2:1,column_3:1,column_4:1,column_5:1,column_6:1},tablet:null,mobile:null}));(l.split(",")??[]).forEach((u,h)=>{c[t]==null&&(c[t]={}),c[t][`column_${h+1}`]=u}),e.onChange(c,["column_span"]),Dn({sectionId:e.sectionId,device:t,settings:{column_span:c},builder:"footer"})};return r.jsx(Rn,{...e,options:i,className:"column-layout-group [&>div:first-child]:mb-2 [&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-2",itemCss:[de(["&.selected{border:1px solid #000;}"])],onChange:a,value:o})}function Ok(e){const{current:t}=ye(),n=Je(t),i=o=>{let a=o;const s=Te.getState().chosenRow;if(!s)return;const c={...Te.getState().previewTemplate.row_configurations[s].number_column,[t]:o};Object.keys(c).forEach(f=>{c[f]==null&&(f==="desktop"&&(c[f]=1),f==="tablet"&&(c[f]=c.desktop),f==="mobile"&&(c[f]=c.tablet))}),t==="mobile"&&(c.tablet=c.mobile),t==="tablet"&&(c.mobile=c.tablet),e.onChange(c),a=c[t];const d=JSON.parse(JSON.stringify(me(e.settings,["column_span"])??{desktop:{column_1:1,column_2:1,column_3:1,column_4:1,column_5:1,column_6:1},tablet:null,mobile:null})),u=12/a;Array(a).fill(u).forEach((f,p)=>{d[n]==null&&(d[n]={}),d[n][`column_${p+1}`]=f}),e.onChange(d,["column_span"]),Dn({sectionId:e.sectionId,device:n,settings:{column_span:d},builder:"footer"}),Te.setState(f=>{const p=f.chosenRow;if(p==null)return;const g=f.previewTemplate.placements[n][p],v=g.length;if(vH>a-1?[...D,..._]:D,[]).length<1){f.previewTemplate.placements[n][p]=g.slice(0,a);return}const k=g.reduce((D,_)=>[...D,..._],[]),$=[];for(let D=0;De.value,[e.value]),i=ne(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(Rn,{...e,onChange:a=>o(a),value:n,options:Zk,className:"theme-layout-type-group [&_.brandy-radio-group]:grid [&_.brandy-radio-group]:grid-cols-2",itemCss:[de(["&.selected{border:1px solid #000;}"])]})}const Gk=window.React.useMemo;function Uk(e){const{current:t}=ye(),n=Ie(o=>o.previewTemplate.placements[Je(t)].toggle),i=Gk(()=>[{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(R1,{...e,options:i})}const Yk=window.React.useState;function Jk(e){const[t,n]=Yk(window.wp.customize("blogname")),i=o=>{n(o),window.wp.customize("blogname")(o)};return r.jsx(A1,{...e,value:t,onChange:i})}const Xk=window.React.useState;function Qk(e){const[t,n]=Xk(window.wp.customize("blogdescription")),i=o=>{n(o),window.wp.customize("blogdescription")(o)};return r.jsx(A1,{...e,value:t,onChange:i})}const cc=window.React.useMemo;function qk(e){const{current:t}=ye(),n=cc(()=>Je(t),[t]),i=cc(()=>[...e.value_path,n],[n,e.value_path]),o=s=>{const l=oe(`#brandy-header > div[device="${n}"] [data-section-id="${e.sectionId}"] .header-container`);l!=null&&window.jQuery(l).attr("item-layout",s?"stretch":"normal"),e.onChange(s,i)},a=cc(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(T1,{...e,value:a,onChange:o})}const dc=window.React.useMemo;function Kk(e){const{current:t}=ye(),n=dc(()=>Je(t),[t]),i=dc(()=>[...e.value_path,n],[n,e.value_path]),o=s=>{const l=oe(`#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=dc(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(T1,{...e,value:a,onChange:o})}const kt=window.React.useMemo,eD=window.React.useState,cn={unit:"px",value:12};function tD(e){const{current:t}=ye(),[n,i]=eD("column_1"),o=kt(()=>["column_items_direction"],[]),a=kt(()=>["column_horizontal_alignment"],[]),s=kt(()=>["column_vertical_alignment"],[]),l=kt(()=>["column_flex_wrap"],[]),c=kt(()=>["column_item_vertical_spacing"],[]),d=kt(()=>["column_span"],[]),u=kt(()=>["column_item_horizontal_spacing"],[]),h=kt(()=>["column_item_grow"],[]),f=kt(()=>{const E=me(e.settings,o);return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,o,t,n]),p=kt(()=>{const E=me(e.settings,a);return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,a,t,n]),g=kt(()=>{const E=me(e.settings,s);return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,s,t,n]),v=kt(()=>{const E=me(e.settings,l);return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,l,t,n]),w=kt(()=>{const E=me(e.settings,d);return E==null?1:E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,d,t,n]),k=kt(()=>{const E=me(e.settings,c)??{desktop:{column_1:cn,column_2:cn,column_3:cn,column_4:cn,column_5:cn,column_6:cn}};return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,c,t,n]),$=kt(()=>{const E=me(e.settings,u)??{desktop:{column_1:cn,column_2:cn,column_3:cn,column_4:cn,column_5:cn,column_6:cn}};return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,u,t,n]),D=kt(()=>{const E=me(e.settings,h)??{desktop:{column_1:"initial",column_2:"initial",column_3:"initial",column_4:"initial",column_5:"initial",column_6:"initial"}};return E[t]==null||E[t][n]==null?E.desktop[n]:E[t][n]},[e.settings,h,t,n]),_=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).attr(`data-items-direction-${t}`,E);const M=JSON.parse(JSON.stringify(me(e.settings,[...o,t])??{}));M[n]=E,e.onChange(M,[...o,t],[...o,t])},H=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-horizontal-alignment-${t}`,E);const M=JSON.parse(JSON.stringify(me(e.settings,[...a,t])??{}));M[n]=E,e.onChange(M,[...a,t],[...a,t])},x=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-vertical-alignment-${t}`,E);const M=JSON.parse(JSON.stringify(me(e.settings,[...s,t])??{}));M[n]=E,e.onChange(M,[...s,t],[...s,t])},y=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-flex-wrap-${t}`,E?"wrap":"nowrap");const M=JSON.parse(JSON.stringify(me(e.settings,[...l,t])??{}));M[n]=E,e.onChange(M,[...l,t],[...l,t])},N=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-item-horizontal-spacing-${t}`,yt(E));const M=JSON.parse(JSON.stringify(me(e.settings,[...u,t])??{}));M[n]=E,e.onChange(M,[...u,t],[...u,t])},O=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-item-vertical-spacing-${t}`,yt(E));const M=JSON.parse(JSON.stringify(me(e.settings,[...c,t])??{}));M[n]=E,e.onChange(M,[...c,t],[...c,t])},S=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-item-grow-${t}`,E);const M=JSON.parse(JSON.stringify(me(e.settings,[...h,t])??{}));M[n]=E,e.onChange(M,[...h,t],[...h,t])},A=E=>{const P=parseInt(n.replace("column_","")),z=oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${P})`);z!=null&&window.jQuery(z).css(`--brandy-footer-column-span-${t}`,E);const M=JSON.parse(JSON.stringify(me(e.settings,[...d,t])??{}));M[n]=E,e.onChange(M,[...d,t],[...d,t])};return r.jsxs("div",{children:[r.jsxs(aD,{children:[r.jsxs(sD,{children:[I("Customize column"),r.jsx(L1,{})]}),r.jsx(lD,{children:I("Choose column to customize")}),r.jsx(Mt,{options:nD,selected:n,onChange:i})]}),r.jsxs(cD,{children:[r.jsx(dD,{children:I("Item direction")}),r.jsx(Mt,{options:rD,selected:f,onChange:_})]}),r.jsxs(uD,{children:[r.jsx(hD,{children:I("Horizontal alignment")}),r.jsx(Mt,{options:iD,selected:p,onChange:H,className:"grid grid-cols-4",itemCss:de(["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)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),r.jsxs(fD,{children:[r.jsx(pD,{children:I("Vertical alignment")}),r.jsx(Mt,{options:oD,selected:g,onChange:x,className:"grid grid-cols-4",itemCss:de(["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)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),r.jsx(gD,{children:r.jsx(at,{title:I("Horizontal gap"),value:$,min:0,max:300,onChange:N})}),r.jsx(mD,{children:r.jsx(at,{title:I("Vertical gap"),value:k,min:0,max:300,onChange:O})}),r.jsxs(vD,{children:[r.jsx(wD,{children:I("Fit across x columns")}),r.jsx(xD,{children:I("Fit column content across X columns")}),r.jsx(st,{wrapperStyle:{width:70},type:"number",value:w,min:1,max:12,onChange:A})]}),r.jsxs(bD,{children:[r.jsx(yD,{children:I("Auto expand")}),r.jsx(CD,{children:I("Auto expand column elements to fill the space")}),r.jsx(Mt,{options:[{label:"None",value:"auto"},{label:"Expand",value:"100%"}],selected:D,onChange:S})]}),r.jsxs(_D,{children:[r.jsxs(SD,{children:[r.jsx("div",{children:I("Allow items to wrap")}),r.jsx(ea,{checked:v,onChange:y})]}),r.jsx(jD,{children:I("Allow items to wrap to the next line")})]})]})}const nD=Array.from({length:6}).map((e,t)=>({label:t+1,value:`column_${t+1}`})),rD=[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],iD=[{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"}],oD=[{label:r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"5.83325",y:"15.5",width:"10",height:"5",transform:"rotate(-90 5.83325 15.5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3333 1.5L0.333252 1.5L0.333252 0L16.3333 1.39876e-06L16.3333 1.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),value:"flex-start"},{label:r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:window.brandyCustomizerData.colors.icon.normal})}),value:"center"},{label:r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"10",height:"5",transform:"matrix(-4.37114e-08 1 1 4.37114e-08 5.6665 2.18557e-08)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6665 14.5L0.666504 14.5L0.666504 16L16.6665 16L16.6665 14.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),value:"flex-end"},{label:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 9.5H18V8H0V9.5ZM0 16.5H18V15H0V16.5ZM0 1V2.5H18V1H0Z",fill:"#A1ABB7"})}),value:"space-between"}];var aD=m("div")({marginBottom:"1rem"}),sD=m("div")({marginBottom:"0.5rem",fontWeight:"700",textTransform:"capitalize"}),lD=m("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}),cD=m("div")({marginBottom:"1rem"}),dD=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),uD=m("div")({marginBottom:"1rem"}),hD=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),fD=m("div")({marginBottom:"1rem"}),pD=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),gD=m("div")({marginBottom:"1rem"}),mD=m("div")({marginBottom:"1rem"}),vD=m("div")({marginBottom:"1rem"}),wD=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),xD=m("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}),bD=m("div")({marginBottom:"1rem"}),yD=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),CD=m("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}),_D=m("div")({marginBottom:"1rem"}),SD=m("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"space-between",textTransform:"capitalize"}),jD=m("div").withConfig({displayName:"ColumnContentLayout___StyledDiv20",componentId:"sc-1864esf-0"})({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"});const Hf=window.React.useContext,kD=window.React.useMemo,DD=window.React.useState,$D=e=>{const{builder:t}=Hf(Ze),n=ne(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=ne(t)(h=>h.changeElementSettings),o=ne(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.id}),[a,s]=DD(!1),l=()=>{i(h=>{h.items=n.items.filter((f,p)=>p!==e.position)}),$e().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,p)=>{if(e.position===p){const g=oe(_t(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);g&&window.jQuery(g).html(h),i(v=>{v.items[p].label=h.toString()})}})},u=h=>{n.items.forEach((f,p)=>{if(p===e.position){const g=oe(_t(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);g&&window.jQuery(g).attr("href",Ls(h)),i(v=>{v.items[p].url=h.toString()})}})};return r.jsxs(HD,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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(MD,{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))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],children:[r.jsxs(ID,{children:[r.jsx(TD,{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:_e([!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:_e(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(LD,{$_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(AD,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},de(["&: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(RD,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},de(["&: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(ND,{children:[r.jsxs(BD,{children:[r.jsx("div",{children:"Label"}),r.jsx(st,{value:e.item.label,onChange:d})]}),r.jsxs(OD,{children:[r.jsx("div",{children:"Link"}),r.jsx(st,{value:e.item.url,onChange:u})]})]})]})};function ED(e){const{builder:t}=Hf(Ze),n=kD(()=>e.value??e.default_value,[e.value,e.default_value]),i=ne(t)(s=>{var l;return(l=s.chosenElement)==null?void 0:l.id}),o=s=>{JSON.stringify(n)!==JSON.stringify(s)&&(e.onChange(s),$e().refreshPartial(`${t}_${i}`))},a=()=>{const s=JSON.parse(JSON.stringify(n));s.push({label:"Custom link",url:"#"}),e.onChange(s),$e().refreshPartial(`${t}_${i}`)};return r.jsxs(PD,{children:[r.jsxs(VD,{children:[r.jsx(ze,{className:"m-0",children:"List Link"}),r.jsx(zD,{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(FD,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(hr.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($D,{item:s,position:l},l))})]})}var HD=m("div")`${e=>e.$_css2}`,MD=m("div")`${e=>e.$_css3}`,ID=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),TD=m("span")({cursor:"grab",padding:"0.5rem"}),LD=m("div")`${e=>e.$_css4}`,AD=m("span")`${e=>e.$_css5}`,RD=m("span")`${e=>e.$_css6}`,ND=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),BD=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),OD=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),PD=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),VD=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),zD=m("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"}}),FD=m("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 ZD=window.React.useCallback,WD=window.React.useContext,GD=window.React.useMemo;function UD(e){const{builder:t}=WD(Ft),n=ne(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=ne(t)(l=>l.previewTemplate),o=t==="header"?i.elements.logo_1.settings:i.elements.logo_2.settings,a=me(o,e.reset_paths[0]),s=ZD(()=>{n(l=>{if(l!=null)if(Ne(l,e.reset_paths[0],""),e.reset_paths[0].includes("logo_mobile")){const c=oe(`${_t(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=oe(`${_t(e.sectionId,t)} .brandy-logo__img.logo-desktop`),d=oe(`${_t(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 GD(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(YD,{children:[r.jsx(ut,{className:_e(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Ah,{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 YD=m("div").withConfig({displayName:"ResetLogo___StyledDiv",componentId:"sc-1axmblk-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});function JD(e){return{ButtonGroup:ur,IconGroup:Rn,BoxShadow:uo,ColorGroup:qw,Dimension:n9,Image:p9,Switcher:T1,Typography:ax,EnabledDevices:dx,TextInput:A1,Spacing:wx,Alignment:Cx,Position:jx,Dropdown:R1,Reset:el,MultipleChoice:Ex,Background:n7,FlexibleContent:c7,VerticalAlignment:s7,HorizontalAlignment:f7,PrefilledHTML:y7,HTML:_7,Widget:hC,MultipleSelect:vC,NumberInput:fx,ResetLogo:UD,ListLanguages:p_,ListCurrencies:V_,CanvasTitle:fS,MenuSelection:aj,MenuActiveType:tj,ListSocials:_j,ListPayments:qj,AccountLoggedInTitle:xS,AccountLoggedOutTitle:bS,AccountIconSelection:mS,AccountClickAction:$k,ButtonIconSelection:_S,ButtonType:Ik,ButtonSize:Hk,SearchIconSelection:cj,LiveResultsType:uj,SearchSuggestions:pj,CartIconSelection:DS,ListContacts:IS,WishlistIconSelection:jk,NewsletterLayoutType:Wk,FooterColumnLayout:Bk,FooterNumberColumn:Ok,FooterStretchItem:Kk,ColumnContentLayout:tD,HeaderStretchItem:qk,ToggleOffCanvasType:Vk,ToggleOffCanvasAlignBottomFrom:Uk,SiteTitle:Jk,SiteTagline:Qk,ListLink:ED}[e]}const XD=window.React.useCallback,Dr=window.React.useMemo,K1=({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",K1({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=me(t,s.value_path);if(c==null&&s.default_check_value!=null&&(c=s.default_check_value),c==null)return!1;c=Ci(c)?je(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 aa({section:e,sectionId:t,settings:n,onChange:i,builder:o="header",clonedFromId:a}){var d,u;const{current:s}=ye(),l=ne(o)(h=>{var f;return t.includes("menu")&&((f=h.previewTemplate.placements[Je(s)].toggle)==null?void 0:f.includes(t))});return!Dr(()=>K1({conditions:e.visible_conditions,settings:n,device:s,inToggle:l}),[e.visible_conditions,n,s])||(u=(d=e.components[0])==null?void 0:d.value_path)!=null&&u.includes("expand_on_mobile")&&t!=="top_header"?!1:r.jsx(Xo,{children:e.components.map((h,f)=>r.jsx(QD,{data:h,sectionId:t,settings:n,onChange:i,builder:o,clonedFromId:a},f))})}function QD(e){var d;const t=Dr(()=>e.data,[e.data]),{current:n}=ye(),i=Dr(()=>e.builder??"header",[e.builder]),o=Dr(()=>JD(t.type)??!1,[t.type]),a=Dr(()=>me(e.settings,t.value_path),[e.settings,t.value_path]),s=Dr(()=>t.default_value,[t.default_value]),l=Dr(()=>K1({conditions:t.visible_conditions,settings:e.settings,device:n}),[t.visible_conditions,e.settings,n,s]),c=XD((u,h=null,f=null,p=!1)=>{e.onChange(g=>{var $,D,_,H;const v=h??t.value_path;let w=me(g,v);if(w==null&&(p||t.is_responsive?Ne(g,v,{desktop:null,tablet:null,mobile:null}):Ne(g,v,null)),w=me(g,v),w==null&&(w=f?me(t.default_value,f):t.default_value),Ci(w)&&!Ci(u)||p?Ne(g,v,{...w,[n]:u}):Ne(g,v,u),(($=t.render_options)==null?void 0:$.type)==="force_refresh")if(["top_header","bottom_header","middle_header","top_footer","bottom_footer","middle_footer"].includes(e.sectionId))["desktop","tablet","mobile"].forEach(x=>{$e().refreshPartial(`${e.sectionId}_${x}`)});else{let x="";["header","toggle_off_canvas","footer"].includes(e.sectionId)?x=e.sectionId:x=`${i}_${e.sectionId}`,$e().refreshPartial(x)}let k=null;((D=t.render_options)==null?void 0:D.type)==="content"&&(k=km),((_=t.render_options)==null?void 0:_.type)==="data_attribute"&&(k=N2),((H=t.render_options)==null?void 0:H.type)==="variable"&&(k=Dn),k!=null&&k({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:Mf(a,s),onChange:c,sectionId:e.sectionId,builder:i,settings:e.settings})}function Mf(e,t,n=!1){if(e===void 0)return t;if(e===null)return n?null:t;if(Array.isArray(t)||!w2(t))return e;const i=t;return Object.keys(t).forEach(o=>{i[o]=Mf(e[o],t[o],!0)}),JSON.parse(JSON.stringify(i))}const ut=e=>e.title?r.jsxs(qD,{className:e.className??(e.title.show_devices?"mb-0":"mb-[8px]"),children:[r.jsxs(KD,{className:_e([e.title.type==="bold"&&"font-bold","brandy-setting-title-text"]),children:[e.title.text,e.title.tooltip&&r.jsxs(e$,{className:"brandy-setting-title-mark",$_css2:[{display:"inline-block",height:"15px",width:"15px",cursor:"pointer"},de(["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(t$,{className:"brandy-setting-title-tooltip",dangerouslySetInnerHTML:{__html:e.title.tooltip}})]})]}),e.title.show_devices&&r.jsx(L1,{})]}):!1;var qD=m("div")({display:"flex",alignItems:"center","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"}),KD=m("div")({display:"flex",alignItems:"center",gap:"5px",textTransform:"capitalize"}),e$=m("span")`${e=>e.$_css2}`,t$=m("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))",padding:"0.5rem",textAlign:"center",fontWeight:"400",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.3s"});const n$={isDragging:!1},Wo=Ts()(e=>({...n$,startDragging:()=>{e(()=>({isDragging:!0}))},stopDragging:()=>{e(()=>({isDragging:!1}))}}));const r$=window.React.useEffect,du=window.React.useRef,i$=window.React.useState;function If({items:e,builder:t,disabledItems:n=[]}){const{startDragging:i,stopDragging:o}=Wo(s=>({startDragging:s.startDragging,stopDragging:s.stopDragging})),a=()=>!1;return r.jsx(hr.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})=>r.jsxs(a$,{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))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.75rem",paddingBottom:"0.75rem","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"}},{borderRadius:"5px"},{cursor:"grab",backgroundColor:"rgba(255, 255, 255, 0.80)","--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity))"},{"--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))"}},de(["&.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))","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))","--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(k6,{})}),r.jsx(o$,{name:l,id:s,builder:t,disabled:n.includes(s)})]},s))})}function o$({id:e,name:t,builder:n,disabled:i=!1}){const[o,a]=i$(!1),s=d=>{let u=Ie;n==="footer"&&(u=Te),u.getState().changeElementItemTitle(e,d)},l=du(null),c=du(null);return r$(()=>{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(s$,{value:t,type:"text",onChange:s,ref:l}):r.jsx("span",{ref:c,children:t||""})}var a$=m("span")`${e=>e.$_css2}`,s$=m(st).withConfig({displayName:"ElementDraggable___StyledInput",componentId:"sc-19ouxax-0"})({borderRadius:"0px !important",borderLeftWidth:"0px !important",borderRightWidth:"0px !important",borderTopWidth:"0px !important",padding:"0px !important"});const l$=window.React.useMemo;function ed(e,t="header"){const n=ne(t)(o=>o.previewTemplate.elements),i=l$(()=>j2(e),[e]);return{allElements:Object.values(n),usingElementIds:i,unusedElements:Object.values(n).filter(o=>(o.builders??["header"]).includes(t)&&!i.includes(o.id))}}const c$=window.React.useMemo,d$=window.React.useState,u$=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function h$(){const{current:e}=ye(),t=ne("header")(c=>c.previewTemplate.placements[Je(e)]),[n,i]=d$(""),o=c=>{typeof c!="number"&&i(c)},{allElements:a,usingElementIds:s}=ed(t,"header"),l=c$(()=>a.filter(c=>n===""||c.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:I("Search element")})}),r.jsx(O2,{children:r.jsx(Xo,{children:l.length<=0?r.jsx(u$,{}):r.jsx(If,{items:l,disabledItems:s,builder:"header"})})})]})}const f$=window.React.useMemo;function p$(){const e=Ie(i=>i.previewTemplate.settings),t=f$(()=>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(aa,{section:i,sectionKey:`header-${o}`,sectionId:"header",settings:e,onChange:n,builder:"header"},`header-${o}`))})}const g$=[{label:I("Elements"),key:"elements"},{label:I("Settings"),key:"settings"}];function m$(){const{contextHolder:e,currentTab:t}=Fi({items:g$}),n=Ie(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{Lt()};return r.jsxs(ol,{children:[r.jsx(Bn,{onGoBack:i,builder:"header",title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("Header")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:n})]})}),e,t==="elements"?r.jsx(h$,{}):r.jsx(p$,{})]})}const uu=window.React.useCallback,v$=window.React.useEffect,mo=window.React.useMemo,Ra=window.React.useState,w$=[{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)"})})]})]})}}],uc=({children:e})=>r.jsx(ze,{className:"mb-2 font-semibold",children:e});function x$(){const e=Ie(S=>S.addTemplate),t=Ie(S=>S.choosePreviewTemplate),n=Ie(S=>S.removeTemplate),i=Ie(S=>S.templates),o=Ie(S=>S.previewTemplate),[a]=Ra(o.id),s=mo(()=>`template-${Date.now()}`,[]),[l,c]=Ra(`Header #${i.length+1}`),[d,u]=Ra(""),[h,f]=Ra(""),p=mo(()=>[{label:"Select header",value:""},...i.filter(S=>S.id!==s).map(S=>({label:S.id==="default"?"Default header":S.settings.name,value:S.id}))],[i]),g=S=>{typeof S!="number"&&c(S)};v$(()=>()=>{D2()},[]);const v=uu(S=>i.find(A=>A.id===S)??window.brandyCustomizerData.defaults.header,[i]),w=uu(S=>window.brandyHeaderPresets[S],[]),k=()=>{Lt()},$=(S,A)=>{let E=null,P=null;return S?E=v(S):E=w(A),E!=null&&(P=JSON.parse(JSON.stringify(E)),P.id=s,P.settings.name=l),P},D=S=>{S.preventDefault();const A=$(h,d);if(A==null)return;const E=JSON.parse(JSON.stringify(A));n(s),e({...E,id:s,settings:{...E.settings,name:l}}),t(s),k()},_=mo(()=>i.filter(S=>S.settings.name===l||l==="Default header").length>1,[l,i]),H=mo(()=>l===""||d===""&&h===""||_,[h,d,l,_]),x=(S,A)=>{const E=$(S,A);if(E==null)return;const P=JSON.parse(JSON.stringify(E));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),setTimeout(()=>{k2()},200)},y=S=>{S!==d&&(u(S),x(h,S))},N=S=>{f(S),S==""?x(h,d):(u(""),x(S,d))},O=()=>{t(a),n(s),k()};return r.jsxs(ol,{children:[r.jsx(Bn,{onGoBack:O,title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("Header")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:I("Create new header")})]}),hasBottomPart:!1}),r.jsx(Xo,{className:"after:hidden",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-[#757575] text-xs",children:I("Create a new header and assign it to different pages or posts based on your conditions.")}),r.jsxs("div",{children:[r.jsx(uc,{children:I("Header name")}),r.jsx(st,{value:l,onChange:g,className:_?"!border-red-500 focus-within:!border-red-500":"",placeholder:I("Your header name")}),_&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:I("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(uc,{children:I("Copy elements & styles from")}),r.jsx(pt,{options:p,onChange:N,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(uc,{children:I("Using header presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:w$.map(S=>r.jsx(b$,{isActive:S.value===d,data:S,onSelect:()=>{y(S.value)}},S.value))})]})]})}),r.jsx(y$,{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))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity))","--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(Ns,{primary:!0,onClick:D,disabled:H,children:I("Create header")})})]})}const b$=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=ye(),o=mo(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(C$,{onClick:n,$_css2:[{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity))"},{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(_$,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(S$,{$_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))"}:{"--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity))"}],children:t==null?void 0:t.label})]})};var y$=m("div")`${e=>e.$_css}`,C$=m("div")`${e=>e.$_css2}`,_$=m("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),S$=m("p").withConfig({displayName:"NewHeader___StyledP",componentId:"sc-6re12p-0"})(["",""],e=>e.$_css3);const j$=window.React,k$=window.React.memo,D$=window.React.useCallback,Tf=window.React.useContext,Lf=window.React.useMemo,Af=j$.createContext({});function $$(){const{builder:e}=Tf(Ft),t=ne(e)(s=>s.deselectRow),n=ne(e)(s=>s.chosenRow??"not found"),i=ne(e)(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??e}),o=D$(()=>{Lt(),t()},[Lt,t]),a=Lf(()=>({builder:e,goBack:o}),[e,o]);return r.jsxs(Af.Provider,{value:a,children:[r.jsx(Bn,{onGoBack:o,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(M$,{children:[I("Customizing")," ▸ ",i]}),r.jsxs(I$,{children:[n," ",e]})]})}),r.jsx(H$,{})]})}function E$(){const{builder:e}=Tf(Af),t=ne(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=Fi(),o=Lf(()=>window.brandySettingsLayouts[`${t}_${e}`],[t,e]),a=ne(e)(l=>t!=null&&l.previewTemplate.row_configurations[t]||{}),s=ne(e)(l=>l.changeRowSettings);return t==null||o==null||a==null?!1:r.jsxs(r.Fragment,{children:[n,r.jsx(m1,{children:o[i].sections.map((l,c)=>r.jsx(aa,{section:l,sectionKey:`${i}-${c}`,sectionId:`${t}_${e}`,settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const H$=k$(E$);var M$=m("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),I$=m("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))"});const T$=window.React.useMemo,L$=window.React.useState,A$=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function R$(){const{current:e}=ye(),t=ne("footer")(c=>c.previewTemplate.placements[Je(e)]),[n,i]=L$(""),o=c=>{typeof c!="number"&&i(c)},{allElements:a,usingElementIds:s}=ed(t,"footer"),l=T$(()=>a.filter(c=>n===""||c.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:I("Search element")})}),r.jsx(O2,{children:r.jsx(Xo,{children:l.length<=0?r.jsx(A$,{}):r.jsx(If,{items:l,builder:"footer",disabledItems:s})})})]})}const N$=window.React.useMemo;function B$(){const e=Te(i=>i.previewTemplate.settings),t=N$(()=>window.brandySettingsLayouts.footer,[]),n=Te(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(aa,{section:i,sectionKey:`footer-${o}`,sectionId:"footer",settings:e,onChange:n,builder:"footer"},`footer-${o}`))})}const O$=[{label:I("Elements"),key:"elements"},{label:I("Settings"),key:"settings"}];function P$(){const{contextHolder:e,currentTab:t}=Fi({items:O$}),n=Te(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{Lt()};return r.jsxs(ol,{children:[r.jsx(Bn,{onGoBack:i,builder:"footer",title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("Footer")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:n})]})}),e,t==="elements"?r.jsx(R$,{}):r.jsx(B$,{})]})}const hu=window.React.useCallback,V$=window.React.useEffect,vo=window.React.useMemo,Na=window.React.useState,z$=[{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)"})})})]})}}],hc=({children:e})=>r.jsx(ze,{className:"mb-2 font-semibold",children:e});function F$(){const e=Te(S=>S.addTemplate),t=Te(S=>S.choosePreviewTemplate),n=Te(S=>S.removeTemplate),i=Te(S=>S.templates),o=Te(S=>S.previewTemplate),[a]=Na(o.id),s=vo(()=>`template-${Date.now()}`,[]),[l,c]=Na(`Footer #${i.length+1}`),[d,u]=Na(""),[h,f]=Na(""),p=vo(()=>[{label:"Select footer",value:""},...i.filter(S=>S.id!==s).map(S=>({label:S.id==="default"?"Default footer":S.settings.name,value:S.id}))],[i,s]),g=S=>{typeof S!="number"&&c(S)};V$(()=>()=>{D2()},[]);const v=hu(S=>i.find(A=>A.id===S)??window.brandyCustomizerData.defaults.footer,[i]),w=hu(S=>window.brandyFooterPresets[S],[]),k=()=>{Lt()},$=(S,A)=>{let E=null,P=null;return S?E=v(S):E=w(A),E!=null&&(P=JSON.parse(JSON.stringify(E)),P.id=s,P.settings.name=l),P},D=S=>{S.preventDefault();const A=$(h,d);if(A==null)return;const E=JSON.parse(JSON.stringify(A));n(s),e({...E,id:s,settings:{...E.settings,name:l}}),t(s),k()},_=vo(()=>i.filter(S=>S.settings.name===l||l==="Default footer").length>1,[l,i]),H=vo(()=>l===""||d===""&&h===""||_,[h,d,l,_]),x=(S,A)=>{const E=$(S,A);if(E==null)return;const P=JSON.parse(JSON.stringify(E));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),setTimeout(()=>{k2()},200)},y=S=>{S!==d&&(u(S),x(h,S))},N=S=>{f(S),S==""?x(h,d):(u(""),x(S,d))},O=()=>{t(a),n(s),k()};return r.jsxs(ol,{children:[r.jsx(Bn,{onGoBack:O,title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("Footer")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:I("Create new footer")})]}),hasBottomPart:!1}),r.jsx(Xo,{className:"after:hidden",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-[#757575] text-xs",children:I("Create a new footer and assign it to different pages or posts based on your conditions.")}),r.jsxs("div",{children:[r.jsx(hc,{children:I("Footer name")}),r.jsx(st,{value:l,onChange:g,className:_?"!border-red-500 focus-within:!border-red-500":"",placeholder:I("Your footer name")}),_&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:I("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(hc,{children:I("Copy elements & styles from")}),r.jsx(pt,{options:p,onChange:N,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(hc,{children:I("Using footer presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:z$.map(S=>r.jsx(Z$,{isActive:S.value===d,data:S,onSelect:()=>{y(S.value)}},S.value))})]})]})}),r.jsx(W$,{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))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity))","--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(Ns,{primary:!0,onClick:D,disabled:H,children:I("Create footer")})})]})}const Z$=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=ye(),o=vo(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(G$,{onClick:n,$_css2:[{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity))"},{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(U$,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(Y$,{$_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))"}:{"--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity))"}],children:t==null?void 0:t.label})]})};var W$=m("div")`${e=>e.$_css}`,G$=m("div")`${e=>e.$_css2}`,U$=m("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),Y$=m("p").withConfig({displayName:"NewFooter___StyledP",componentId:"sc-15uicft-0"})(["",""],e=>e.$_css3);const J$=window.React,X$=window.React.memo,Q$=window.React.useCallback,Rf=window.React.useContext,Nf=window.React.useMemo,Bf=J$.createContext({});function fu(){const{builder:e}=Rf(Ft),t=ne(e)(a=>a.deselectRow),n=ne(e)(a=>{var s,l;return((l=(s=a.previewTemplate)==null?void 0:s.settings)==null?void 0:l.name)??e}),i=Q$(()=>{Lt(),t()},[Lt,t]),o=Nf(()=>({builder:e,goBack:i}),[e,i]);return r.jsxs(Bf.Provider,{value:o,children:[r.jsx(Bn,{onGoBack:i,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(eE,{children:[I("Customizing")," ▸ ",n]}),r.jsx(tE,{children:I("Toggle off canvas")})]})}),r.jsx(K$,{})]})}function q$(){const{builder:e}=Rf(Bf),t=ne(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=Fi(),o=Nf(()=>window.brandySettingsLayouts.toggle_off_canvas,[t,e]),a=ne(e)(l=>t!=null&&l.previewTemplate.row_configurations.toggle||{}),s=ne(e)(l=>l.changeRowSettings);return t==null||o==null||a==null?!1:r.jsxs(r.Fragment,{children:[n,r.jsx(m1,{children:o[i].sections.map((l,c)=>r.jsx(aa,{section:l,sectionKey:`${i}-${c}`,sectionId:"toggle_off_canvas",settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const K$=X$(q$);var eE=m("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),tE=m("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))"});const sa=m.div.withConfig({displayName:"Styleds__SettingLine",componentId:"sc-1ff79ea-0"})(["",""],{marginTop:"0.75rem"}),Sr=window.React.useState,fc=[{label:I("Hidden"),value:"hidden"},{label:I("Optional"),value:"optional"},{label:I("Required"),value:"required"}],pu=Object.entries(window.brandyCustomizerData.pages).map(([e,t])=>({label:t.title,value:e})),nE=m(sa)` ${{marginTop:"0px"}} `;function si({title:e,description:t,children:n}){return r.jsxs(nE,{children:[r.jsx(iE,{children:e}),t&&r.jsx(oE,{children:t}),n]})}function rE(){const[e,t]=Sr(()=>window.wp.customize("woocommerce_checkout_company_field")()),[n,i]=Sr(()=>window.wp.customize("woocommerce_checkout_address_2_field")()),[o,a]=Sr(()=>window.wp.customize("woocommerce_checkout_phone_field")()),[s,l]=Sr(()=>window.wp.customize("woocommerce_checkout_highlight_required_fields")()),[c,d]=Sr(()=>window.wp.customize("wp_page_for_privacy_policy")()),[u,h]=Sr(()=>window.wp.customize("woocommerce_terms_page_id")()),[f,p]=Sr(()=>window.wp.customize("woocommerce_checkout_privacy_policy_text")()),g=H=>{t(H),window.wp.customize("woocommerce_checkout_company_field")(H)},v=H=>{i(H),window.wp.customize("woocommerce_checkout_address_2_field")(H)},w=H=>{a(H),window.wp.customize("woocommerce_checkout_phone_field")(H)},k=H=>{const x=H.target.checked;l(x),window.wp.customize("woocommerce_checkout_highlight_required_fields")(x)},$=H=>{d(H),window.wp.customize("wp_page_for_privacy_policy")(H)},D=H=>{h(H),window.wp.customize("woocommerce_terms_page_id")(H)},_=H=>{const x=H.target.value;p(x),window.wp.customize("woocommerce_checkout_privacy_policy_text")(x)};return r.jsxs(aE,{children:[r.jsx("div",{children:I("These options let you change the appearance of the WooCommerce checkout.")}),r.jsx(si,{title:I("Company name field"),children:r.jsx(pt,{options:fc,selected:e,onChange:g})}),r.jsx(si,{title:I("Address line 2 field"),children:r.jsx(pt,{options:fc,selected:n,onChange:v})}),r.jsx(si,{title:I("Phone field"),children:r.jsx(pt,{options:fc,selected:o,onChange:w})}),r.jsxs(sE,{children:[r.jsx(lE,{type:"checkbox",checked:s,onChange:k}),r.jsx("label",{children:I("Highlight required fields with an asterisk")})]}),r.jsx(si,{title:I("Privacy policy page"),children:r.jsx(pt,{options:pu,selected:c,onChange:$})}),r.jsx(si,{title:I("Terms and conditions page"),children:r.jsx(pt,{options:pu,selected:u,onChange:D})}),r.jsx(si,{title:I("Privacy policy"),description:I("Optionally add some text about your store privacy policy to show during checkout."),children:r.jsx(cE,{value:f,onChange:_,rows:4})})]})}var iE=m("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))"}),oE=m("div")({marginBottom:"0.5rem"}),aE=m("div")({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),sE=m("div")({display:"flex",alignItems:"center",gap:"0.25rem"}),lE=m("input")({margin:"0px"}),cE=m("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))",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 Ba=window.React.useState,gu=[{label:I("Show products"),value:""},{label:I("Show categories"),value:"subcategories"},{label:I("Show categories & products"),value:"both"}],dE=[{label:I("Default sorting (custom ordering + name)"),value:"menu_order"},{label:I("Popularity (sales)"),value:"popularity"},{label:I("Average rating"),value:"rating"},{label:I("Sort by most recent"),value:"date"},{label:I("Sort by price (asc)"),value:"price"},{label:I("Sort by price (desc)"),value:"price-desc"}],uE=m(sa)` ${{marginTop:"0px"}} `;function Oa({title:e,description:t="",children:n}){return r.jsxs(uE,{children:[r.jsx(fE,{children:e}),r.jsx(pE,{children:t}),n]})}function hE(){const[e,t]=Ba(()=>window.wp.customize("woocommerce_shop_page_display")()),[n,i]=Ba(()=>window.wp.customize("woocommerce_category_archive_display")()),[o,a]=Ba(()=>window.wp.customize("woocommerce_default_catalog_orderby")()),[s,l]=Ba(()=>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(oe("body")).css("--product-thumb-aspect-ratio",f=="size_1"?"3/4":"1")};return r.jsxs(gE,{children:[r.jsx(Oa,{title:I("Shop page display"),description:I("Choose what to display on the main shop page."),children:r.jsx(pt,{options:gu,selected:e,onChange:c})}),r.jsx(Oa,{title:I("Category display"),description:I("Choose what to display on product category pages."),children:r.jsx(pt,{options:gu,selected:n,onChange:d})}),r.jsx(Oa,{title:I("Default product sorting"),description:I("How should products be sorted in the catalog by default?"),children:r.jsx(pt,{options:dE,selected:o,onChange:u})}),r.jsx(Oa,{title:I("Products thumb size"),children:r.jsx(Mt,{options:[{value:"size_1",label:I("Rectangular")},{value:"size_2",label:I("Square")}],selected:s.product_thumb_size??"size_1",onChange:h})})]})}var fE=m("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))"}),pE=m("div")({marginBottom:"0.5rem"}),gE=m("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))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"});const mE=window.React.useState;function vE(){const[e,t]=mE(window.wp.customize("sale_badge")()??window.brandyCustomizerData.woocommerce.default_settings.sale_badge),n=u=>h=>{const f=JSON.parse(JSON.stringify({...e,[u]:h}));t(f),window.wp.customize("sale_badge")(f)},i=u=>{n("text_color")(u);const h=oe("body");window.jQuery(h).css("--wc-sale-badge-text-color",u)},o=u=>{n("background_color")(u);const h=oe("body");window.jQuery(h).css("--wc-sale-badge-background-color",u)},a=u=>{n("font_size")(u);const h=oe("body");window.jQuery(h).css("--wc-sale-badge-font-size",yt(u))},s=u=>{n("border")({...e.border,color:u});const h=oe("body");window.jQuery(h).css("--wc-sale-badge-border-color",u)},l=u=>{n("border")({...e.border,width:u});const h=oe("body");window.jQuery(h).css("--wc-sale-badge-border-width",yt(u))},c=u=>{n("border")({...e.border,radius:u});const h=oe("body");window.jQuery(h).css("--wc-sale-badge-border-radius",yt(u))},d=u=>{n("padding")(u);const h=oe("body");window.jQuery(h).css("--wc-sale-badge-padding",Jo(u))};return r.jsxs(wE,{children:[r.jsxs(xE,{children:[r.jsx("label",{children:I("Text color")}),r.jsx(bE,{children:r.jsx(De,{color:e.text_color,onChange:i})})]}),r.jsxs(yE,{children:[r.jsx("label",{children:I("Background color")}),r.jsx(CE,{children:r.jsx(De,{color:e.background_color,onChange:o})})]}),r.jsx(at,{title:I("Text size"),value:e.font_size,onChange:a,units:["px","rem"]}),r.jsxs(_E,{children:[r.jsx("label",{children:I("Border color")}),r.jsx(SE,{children:r.jsx(De,{color:e.border.color,onChange:s})})]}),r.jsx(at,{title:I("Border width"),value:e.border.width,onChange:l,units:["px"]}),r.jsx(at,{title:I("Border radius"),value:e.border.radius,onChange:c,units:["px","%"]}),r.jsx(ra,{title:I("Padding"),value:e.padding,onChange:d,units:["px"]})]})}var wE=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),xE=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),bE=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),yE=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),CE=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),_E=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),SE=m("div").withConfig({displayName:"SaleBadge___StyledDiv7",componentId:"sc-9dtrrq-0"})({display:"flex",alignItems:"center",gap:"1rem"});const jE=window.React.useState,pc=m(sa)` ${{display:"flex",alignItems:"center",justifyContent:"space-between"}} `,gc=({title:e="",settings:t,onChange:n,dataKey:i})=>{const o=(a,s=null)=>l=>{const c=JSON.parse(JSON.stringify(t));if(Ne(c,a,l),n(c),s==null)return;const d=oe("body");let u=l;switch(s){case"dimension":u=yt(l);break}window.jQuery(d).css(`--wc-${i}-${a.join("-")}`,u)};return r.jsxs(DE,{children:[r.jsx($E,{children:e}),r.jsxs(pc,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(EE,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:t.text_color.normal,onChange:o(["text_color","normal"],"color")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:t.text_color.hover,onChange:o(["text_color","hover"],"color")})})]})]}),r.jsxs(pc,{children:[r.jsx("label",{children:I("Background")}),r.jsx(HE,{children:r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:t.background.normal,onChange:o(["background","normal"],"color")})})})]}),r.jsxs(pc,{children:[r.jsx("label",{children:I("Border color")}),r.jsx(ME,{children:r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:t.border.color.normal,onChange:o(["border","color","normal"],"color")})})})]}),r.jsx(sa,{children:r.jsx(at,{title:I("Border width"),value:t.border.width,units:["px"],onChange:o(["border","width"],"dimension"),min:t.border.width.min,max:t.border.width.max})})]})};function kE(){const[e,t]=jE(window.wp.customize("wc_store_notices")()??window.brandyCustomizerData.woocommerce.default_settings.wc_store_notices),n=i=>o=>{const a=JSON.parse(JSON.stringify({...e,[i]:o}));t(a),window.wp.customize("wc_store_notices")(a)};return r.jsxs("div",{children:[r.jsx(gc,{settings:e.information,title:I("Information notice"),onChange:n("information"),dataKey:"information"}),r.jsx(gc,{settings:e.success,title:I("Success notice"),onChange:n("success"),dataKey:"success"}),r.jsx(gc,{settings:e.error,title:I("Error notice"),onChange:n("error"),dataKey:"error"})]})}var DE=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),$E=m("h3")({fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),EE=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),HE=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),ME=m("div").withConfig({displayName:"StoreNotices___StyledDiv4",componentId:"sc-69yra-0"})({display:"flex",alignItems:"center",gap:"1rem"});const IE=window.React.useState,TE=m(sa)` ${{marginTop:"0px"}} `;function mu({title:e,description:t="",children:n}){return r.jsxs(TE,{children:[r.jsx(AE,{children:e}),r.jsx(RE,{children:t}),n]})}function LE(){const[e,t]=IE(()=>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(oe("body")).css("--single-product-viewport-image-ratio",a),window.jQuery(oe(".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(oe("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(oe("body")).css("--single-product-gallery-thumb-image-height",(a.value??100)+"px")};return r.jsxs(NE,{children:[r.jsx(mu,{title:I("Product viewport ratio"),children:r.jsx(st,{step:.1,wrapperStyle:{width:70},type:"number",value:e.product_gallery_viewport_image_ratio??1,onChange:n})}),r.jsxs(mu,{title:I("Product gallery thumb size"),children:[r.jsx(at,{units:["px"],value:{value:e.product_gallery_thumb_image_width??100,unit:"px"},min:30,max:500,onChange:i,title:I("Thumb Width")}),r.jsx("br",{}),r.jsx(at,{units:["px"],value:{value:e.product_gallery_thumb_image_height??100,unit:"px"},min:30,max:500,onChange:o,title:I("Thumb Height")})]})]})}var AE=m("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))"}),RE=m("div")({marginBottom:"0.5rem"}),NE=m("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))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"});const BE=window.React.useContext,OE=window.React.useEffect,vu=window.React.useMemo;function PE(){const{sectionId:e}=BE(Ft);OE(()=>{e==="wc_checkout"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_checkout_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_checkout_page),e==="wc_product_catalog"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_shop_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_shop_page),e==="wc_single_product"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_single_product_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_single_product_page)},[e]);const t=vu(()=>{switch(e){case"wc_store_notices":return kE;case"wc_product_catalog":return hE;case"wc_single_product":return LE;case"wc_checkout":return rE;case"sale_badge":return vE;default:return!1}},[e]),n=vu(()=>window.brandyCustomizerData.woocommerce.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Bn,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("WooCommerce")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??I("Not found")})]}),hasBottomPart:!1,onGoBack:Lt}),r.jsx(VE,{children:r.jsx(t,{})})]})}var VE=m("div").withConfig({displayName:"Section___StyledDiv",componentId:"sc-gsppkr-0"})({marginTop:"1rem"});const zE=[{value:"type_1",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_6704_160336",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:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),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_6704_160336)"}),r.jsx("g",{opacity:"0.3",children:r.jsx("rect",{x:"27",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M77 39L81 43L77 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("rect",{x:"92",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7",fillOpacity:"0.5"}),r.jsx("path",{d:"M142 39L146 43L142 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("g",{opacity:"0.7",children:r.jsx("rect",{x:"157",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M207 39L211 43L207 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("rect",{x:"222",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7"})]})},{value:"type_2",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_6704_143530",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:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),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_6704_143530)"}),r.jsx("g",{opacity:"0.3",children:r.jsx("rect",{x:"27",y:"35",width:"37.5",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M74.5 39L78.5 43L74.5 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M78.5 39L82.5 43L78.5 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("rect",{x:"92.5",y:"35",width:"37.5",height:"16",rx:"2",fill:"#A1ABB7",fillOpacity:"0.5"}),r.jsx("path",{d:"M140 39L144 43L140 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M144 39L148 43L144 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("g",{opacity:"0.7",children:r.jsx("rect",{x:"158",y:"35",width:"37.5",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M205.5 39L209.5 43L205.5 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M209.5 39L213.5 43L209.5 47",stroke:"#A1ABB7",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("rect",{x:"223.5",y:"35",width:"37.5",height:"16",rx:"2",fill:"#A1ABB7"})]})},{value:"type_3",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_6704_156713",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:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),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_6704_156713)"}),r.jsx("g",{opacity:"0.25",children:r.jsx("rect",{x:"27",y:"35",width:"41.25",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M78.2502 48.3695L81.2502 37.6329",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("rect",{x:"91.25",y:"35",width:"41.25",height:"16",rx:"2",fill:"#A1ABB7",fillOpacity:"0.4"}),r.jsx("path",{d:"M142.5 48.3695L145.5 37.6329",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"155.5",y:"35",width:"41.25",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M206.75 48.3695L209.75 37.6329",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("g",{opacity:"0.8",children:r.jsx("rect",{x:"219.75",y:"35",width:"41.25",height:"16",rx:"2",fill:"#A1ABB7"})})]})},{value:"type_4",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_6704_164424",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:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),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_6704_164424)"}),r.jsx("g",{opacity:"0.25",children:r.jsx("rect",{x:"27",y:"35",width:"40.5",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M77.5001 47L79.5001 39",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("path",{d:"M79.5001 47L81.5001 39",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("rect",{x:"91.5",y:"35",width:"40.5",height:"16",rx:"2",fill:"#A1ABB7",fillOpacity:"0.4"}),r.jsx("path",{d:"M142 47L144 39",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("path",{d:"M144 47L146 39",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"156",y:"35",width:"40.5",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M206.5 47L208.5 39",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("path",{d:"M208.5 47L210.5 39",stroke:"#A1ABB7",strokeLinecap:"round"}),r.jsx("g",{opacity:"0.8",children:r.jsx("rect",{x:"220.5",y:"35",width:"40.5",height:"16",rx:"2",fill:"#A1ABB7"})})]})},{value:"type_5",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_6704_59859",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:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),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_6704_59859)"}),r.jsx("g",{opacity:"0.25",children:r.jsx("rect",{x:"27",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M76.5 48L81.5 43L76.5 38L76.5 48Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"92",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7",fillOpacity:"0.4"}),r.jsx("path",{d:"M141.5 48L146.5 43L141.5 38L141.5 48Z",fill:"#A1ABB7"}),r.jsx("g",{opacity:"0.6",children:r.jsx("rect",{x:"157",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7"})}),r.jsx("path",{d:"M206.5 48L211.5 43L206.5 38L206.5 48Z",fill:"#A1ABB7"}),r.jsx("g",{opacity:"0.8",children:r.jsx("rect",{x:"222",y:"35",width:"39",height:"16",rx:"2",fill:"#A1ABB7"})})]})}],FE=window.React.useState,wu="breadcrumb_settings";function ZE(){const[e,t]=FE(window.wp.customize(wu)()??window.brandyCustomizerData.general.default_settings.breadcrumb_settings),{contextHolder:n,currentTab:i}=Fi({items:[{label:I("General"),key:"general"},{label:I("Design"),key:"design"}]}),o=a=>s=>{Ro(()=>{const l=JSON.parse(JSON.stringify(e));Ne(l,a,s),t(l),window.wp.customize(wu)(l)})};return r.jsxs("div",{children:[r.jsx(qE,{children:I("Customizing: Breadcrumb")}),n,r.jsx(KE,{children:i==="general"?r.jsx(WE,{value:e.separator_type,onChange:o}):r.jsxs(r.Fragment,{children:[r.jsx(GE,{value:e.typography,onChange:o}),r.jsx(UE,{value:e.text_color,onChange:o}),r.jsx(QE,{value:e,onChange:o}),r.jsx(YE,{bgColor:e.container_background_color,borderRadius:e.container_border_radius,onChange:o}),r.jsx(JE,{bgColor:e.item_background_color,borderRadius:e.item_border_radius,padding:e.item_padding??{unit:"px",top:0,bottom:0,right:0,left:0},onChange:o}),r.jsx(XE,{value:e.item_spacing,onChange:o})]})})]})}function WE({value:e,onChange:t}){const n=i=>o=>{t(i)(o),Li.refreshView()};return r.jsxs("div",{children:[r.jsx(ze,{children:I("Type separator")}),r.jsx(Mt,{className:"mt-3 grid grid-cols-1 gap-4 [&_.brandy-radio-item]:bg-[#FFFFFFA6] [&_.brandy-radio-item]:p-[16px] [&_.brandy-radio-item]:pb-0 [&_.brandy-radio-item]:rounded-[5px] [&_.brandy-radio-item]:border-transparent [&_.brandy-radio-item]:!border-r-[1px]",itemCss:[de(["&.selected{border-color:#000000 !important;}&:hover,&.selected{background-color:#ffffff !important;}svg *{transition:all ease-in-out 0.1s;}"])],selected:e,onChange:n(["separator_type"]),options:zE})]})}function GE({value:e,onChange:t}){return r.jsxs(eH,{children:[r.jsx(ze,{children:I("Typography")}),r.jsx(Ph,{value:e,onChange:t(["typography"])})]})}function UE({value:e,onChange:t}){const n=i=>o=>{t(["text_color",i])(o);const a=oe("body");window.jQuery(a).css(`--breadcrumb-text-color-${i}`,o)};return r.jsxs(tH,{children:[r.jsx(ze,{children:I("Text color")}),r.jsxs(nH,{children:[r.jsx(Le,{title:"Normal",style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.normal,onChange:n("normal")})}),r.jsx(Le,{title:"Hover",style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.hover,onChange:n("hover")})}),r.jsx(Le,{title:"Active",style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.active,onChange:n("active")})})]})]})}function YE({bgColor:e,borderRadius:t,onChange:n}){const i=a=>{n(["container_background_color"])(a);const s=oe("body");window.jQuery(s).css("--breadcrumb-container-background-color",a)},o=a=>{n(["container_border_radius"])(a);const s=oe("body");window.jQuery(s).css("--breadcrumb-container-border-radius",yt(a))};return r.jsxs("div",{children:[r.jsx(ze,{children:I("Container")}),r.jsxs(rH,{children:[r.jsx("span",{children:I("Background color")}),r.jsx(De,{color:e,onChange:i})]}),r.jsx(iH,{children:r.jsx(at,{title:I("Border radius"),value:t,onChange:o,units:["px","%"],min:0,max:50})})]})}function JE({bgColor:e,borderRadius:t,padding:n,onChange:i}){const o=l=>{i(["item_background_color"])(l);const c=oe("body");window.jQuery(c).css("--breadcrumb-item-background-color",l)},a=l=>{i(["item_border_radius"])(l);const c=oe("body");window.jQuery(c).css("--breadcrumb-item-border-radius",yt(l))},s=l=>{i(["item_padding"])(l);const c=oe("body");window.jQuery(c).css("--breadcrumb-item-padding",Jo(l))};return r.jsxs("div",{children:[r.jsx(ze,{children:I("Item")}),r.jsxs(oH,{children:[r.jsx("span",{children:I("Background color")}),r.jsx(De,{color:e,onChange:o})]}),r.jsx(aH,{children:r.jsx(at,{title:I("Border radius"),value:t,onChange:a,units:["px","%"],min:0,max:50})}),r.jsx(sH,{children:r.jsx(ra,{title:I("Padding"),value:n,onChange:s,units:["px"]})})]})}function XE({value:e,onChange:t}){const{current:n}=u1(),i=je(e,n),o=a=>{t(["item_spacing"])(a);const s=oe("body");window.jQuery(s).css("--breadcrumb-item-spacing",yt(a))};return r.jsx(at,{title:r.jsx(ze,{children:I("Item Spacing")}),value:i,onChange:o,units:["px"],min:5,max:30})}function QE({value:e,onChange:t}){const n=i=>o=>{let a="";i==="separator_color"?a="--bradcrumb-separator-color-normal":a="--breadcrumb-separator-color-hover",t([i])(o);const s=oe("body");window.jQuery(s).css(a,o)};return r.jsxs(lH,{children:[r.jsx(ze,{children:I("Separator color")}),r.jsxs(cH,{children:[r.jsx(Le,{title:"Normal",style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.separator_color??"var(--wp--preset--color--brandy-secondary-text)",onChange:n("separator_color")})}),r.jsx(Le,{title:"Hover",style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.separator_hover_color??"var(--wp--preset--color--brandy-primary-text)",onChange:n("separator_hover_color")})})]})]})}var qE=m("div")({padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"14px",fontWeight:"500"}),KE=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),eH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),tH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),nH=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),rH=m("div")({marginTop:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),iH=m("div")({marginTop:"1rem"}),oH=m("div")({marginTop:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),aH=m("div")({marginTop:"1rem"}),sH=m("div")({marginTop:"1rem"}),lH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),cH=m("div").withConfig({displayName:"BreadcrumbSettings___StyledDiv12",componentId:"sc-zf9q46-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const dH=window.React.useState,Et=window.brandyCustomizerData.general.default_settings.button_settings;function uH(){const[e,t]=dH(window.wp.customize("button_settings")()??Et),n=(d,u="")=>h=>{const f=JSON.parse(JSON.stringify(e));Ne(f,[`${d}_${u?u+"_":""}color`],h),t(f),window.wp.customize("button_settings")(f);const p=oe("body");window.jQuery(p).css(`--${d}-button-${u?u+"-":""}color`,h)},i=(d,u="")=>h=>{const f=JSON.parse(JSON.stringify(e));Ne(f,[`${d}_${u?u+"_":""}background_color`],h),t(f),window.wp.customize("button_settings")(f);const p=oe("body");window.jQuery(p).css(`--${d}-button-${u?u+"-":""}background-color`,h)},o=(d,u="")=>h=>{const f=JSON.parse(JSON.stringify(e));Ne(f,[`${d}_${u?u+"_":""}box_shadow`],h),t(f),window.wp.customize("button_settings")(f);const p=oe("body");let g="";h.enabled?g=B2(h):g="0",window.jQuery(p).css(`--${d}-button-${u?u+"-":""}box-shadow`,g)},a=(d,u="")=>h=>{const f=JSON.parse(JSON.stringify(e));Ne(f,[`${d}_${u?u+"_":""}border_color`],h),t(f),window.wp.customize("button_settings")(f);const p=oe("body");window.jQuery(p).css(`--${d}-button-${u?u+"-":""}border-color`,h)},s=d=>u=>{const h=JSON.parse(JSON.stringify(e));Ne(h,[`${d}_border_width`],u),t(h),window.wp.customize("button_settings")(h);const f=oe("body");window.jQuery(f).css(`--${d}-button-border-width`,yt(u))},l=d=>{const u=JSON.parse(JSON.stringify(e));Ne(u,"auto_generate_colors",d),t(u),window.wp.customize("button_settings")(u)},c={};return r.jsxs(hH,{children:[r.jsxs(fH,{children:[r.jsx(pH,{children:I("General")}),r.jsxs(gH,{children:[r.jsx(mH,{children:I("Auto generate colors when global styles changed")}),r.jsx(ea,{checked:e.auto_generate_colors??!0,onChange:l})]}),r.jsx(vH,{children:I("These settings will be generated: Primary hover color, Primary shadow")})]}),["primary","outline"].map(d=>r.jsxs(wH,{children:[r.jsxs(xH,{children:[d,d=="primary"?" (Filled)":""]}),r.jsxs(bH,{children:[r.jsx("label",{children:I("Hover text color")}),r.jsx(yH,{children:r.jsx(De,{color:e[`${d}_hover_color`]??Et[`${d}_hover_color`],onChange:n(d,"hover")})})]}),r.jsxs(CH,{children:[r.jsx("label",{children:I("Hover background color")}),r.jsx(_H,{children:r.jsx(De,{color:e[`${d}_hover_background_color`]??Et[`${d}_hover_background_color`],onChange:i(d,"hover")})})]}),d==="outline"&&r.jsxs(SH,{children:[r.jsx("label",{children:I("Hover border color")}),r.jsx(jH,{children:r.jsx(De,{color:e.outline_hover_border_color??Et.outline_hover_border_color,onChange:a("outline","hover")})})]}),r.jsx(uo,{...c,value:e[`${d}_box_shadow`]??Et[`${d}_box_shadow`],title:{text:I("Box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o(d),value_path:[]}),r.jsx(uo,{...c,value:e[`${d}_hover_box_shadow`]??Et[`${d}hover_box_shadow`],title:{text:I("Hover box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o(d,"hover"),value_path:[]})]},d)),r.jsxs(kH,{children:[r.jsx(DH,{children:"Secondary"}),r.jsxs($H,{children:["Used for ",r.jsx("strong",{children:"coupon form button"}),","," ",r.jsx("strong",{children:"calculate shipping button"})]}),r.jsxs(EH,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(HH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.secondary_color??Et.secondary_color,onChange:n("secondary")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.secondary_hover_color??Et.secondary_hover_color,onChange:n("secondary","hover")})})]})]}),r.jsxs(MH,{children:[r.jsx("label",{children:I("Background")}),r.jsxs(IH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.secondary_background_color??Et.secondary_background_color,onChange:i("secondary")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.secondary_hover_background_color??Et.secondary_hover_background_color,onChange:i("secondary","hover")})})]})]}),r.jsxs(TH,{children:[r.jsx("label",{children:I("Border color")}),r.jsxs(LH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.secondary_border_color??Et.secondary_border_color,onChange:a("secondary")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:e.secondary_hover_border_color??Et.secondary_hover_border_color,onChange:a("secondary","hover")})})]})]}),r.jsx(at,{title:"Border width",value:e.secondary_border_width??Et.secondary_border_width,onChange:s("secondary")}),r.jsx(uo,{...c,value:e.secondary_box_shadow??Et.secondary_box_shadow,title:{text:I("Box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o("secondary"),value_path:[]}),r.jsx(uo,{...c,value:e.secondary_hover_box_shadow??Et.secondary_hover_box_shadow,title:{text:I("Hover box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o("secondary","hover"),value_path:[]})]})]})}var hH=m("div")({display:"flex",flexDirection:"column"}),fH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),pH=m("div")({fontWeight:"600",textTransform:"capitalize"}),gH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),mH=m("label")({maxWidth:"200px"}),vH=m("div")({fontSize:"12px",fontStyle:"italic"}),wH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),xH=m("div")({fontWeight:"600",textTransform:"capitalize"}),bH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),yH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),CH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),_H=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),SH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),jH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),kH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),DH=m("div")({fontWeight:"600",textTransform:"capitalize"}),$H=m("div")({fontSize:"11px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),EH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),HH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),MH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),IH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),TH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),LH=m("div").withConfig({displayName:"ButtonSettings___StyledDiv22",componentId:"sc-a0rhg7-0"})({display:"flex",alignItems:"center",gap:"1rem"});const AH=window.React.useState,Nt=window.brandyCustomizerData.general.default_settings.input_settings;function RH(){var c,d,u,h,f,p,g,v,w,k,$,D,_,H,x,y,N,O;const[e,t]=AH(window.wp.customize("input_settings")()??Nt),n=S=>A=>{const E=JSON.parse(JSON.stringify(e));Ne(E,["text_color",S],A),t(E),window.wp.customize("input_settings")(E);const P=oe("body");window.jQuery(P).css(`--input-text-color-${S}`,A)},i=S=>A=>{const E=JSON.parse(JSON.stringify(e));Ne(E,["background_color",S],A),t(E),window.wp.customize("input_settings")(E);const P=oe("body");window.jQuery(P).css(`--input-background-color-${S}`,A)},o=S=>A=>{const E=JSON.parse(JSON.stringify(e));Ne(E,["border","color",S],A),t(E),window.wp.customize("input_settings")(E);const P=oe("body");window.jQuery(P).css(`--input-border-color-${S}`,A)},a=S=>{Ro(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","width"],S),t(A),window.wp.customize("input_settings")(A);const E=oe("body");window.jQuery(E).css("--input-border-width",yt(S))})},s=S=>{Ro(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","radius"],S),t(A),window.wp.customize("input_settings")(A);const E=oe("body");window.jQuery(E).css("--input-border-radius",yt(S))})},l=S=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["padding"],S),t(A),window.wp.customize("input_settings")(A);const E=oe("body");window.jQuery(E).css("--input-padding",Jo(S))};return r.jsxs(NH,{children:[r.jsxs(BH,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(OH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((c=e==null?void 0:e.text_color)==null?void 0:c.normal)??((d=Nt.text_color)==null?void 0:d.normal),onChange:n("normal")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((u=e==null?void 0:e.text_color)==null?void 0:u.hover)??((h=Nt.text_color)==null?void 0:h.hover),onChange:n("hover")})})]})]}),r.jsxs(PH,{children:[r.jsx("label",{children:I("Background color")}),r.jsxs(VH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((p=Nt==null?void 0:Nt.background_color)==null?void 0:p.normal),onChange:i("normal")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((g=e==null?void 0:e.background_color)==null?void 0:g.hover)??((v=Nt.background_color)==null?void 0:v.hover),onChange:i("hover")})})]})]}),r.jsxs(zH,{children:[r.jsx("label",{children:I("Border color")}),r.jsxs(FH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((k=(w=e==null?void 0:e.border)==null?void 0:w.color)==null?void 0:k.normal)??((D=($=Nt==null?void 0:Nt.border)==null?void 0:$.color)==null?void 0:D.normal),onChange:o("normal")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((H=(_=e==null?void 0:e.border)==null?void 0:_.color)==null?void 0:H.hover)??((y=(x=Nt.border)==null?void 0:x.color)==null?void 0:y.hover),onChange:o("hover")})})]})]}),r.jsx(at,{title:I("Border width"),value:((N=e==null?void 0:e.border)==null?void 0:N.width)??Nt.border.width,onChange:a}),r.jsx(at,{title:I("Border radius"),value:((O=e==null?void 0:e.border)==null?void 0:O.radius)??Nt.border.radius,onChange:s}),r.jsx(ra,{title:I("Padding"),units:["px"],value:(e==null?void 0:e.padding)??Nt.padding,onChange:l})]})}var NH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),BH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),OH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),PH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),VH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),zH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),FH=m("div").withConfig({displayName:"InputSettings___StyledDiv7",componentId:"sc-1ocb9dp-0"})({display:"flex",alignItems:"center",gap:"1rem"});const ZH=window.React.useState,Bt=window.brandyCustomizerData.general.default_settings.select_settings;function WH(){var c,d,u,h,f,p,g,v,w,k,$,D,_,H,x,y,N,O;const[e,t]=ZH(window.wp.customize("select_settings")()??Bt),n=S=>A=>{const E=JSON.parse(JSON.stringify(e));Ne(E,["text_color",S],A),t(E),window.wp.customize("select_settings")(E);const P=oe("body");window.jQuery(P).css(`--select-text-color-${S}`,A)},i=S=>A=>{const E=JSON.parse(JSON.stringify(e));Ne(E,["background_color",S],A),t(E),window.wp.customize("select_settings")(E);const P=oe("body");window.jQuery(P).css(`--select-background-color-${S}`,A)},o=S=>A=>{const E=JSON.parse(JSON.stringify(e));Ne(E,["border","color",S],A),t(E),window.wp.customize("select_settings")(E);const P=oe("body");window.jQuery(P).css(`--select-border-color-${S}`,A)},a=S=>{Ro(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","width"],S),t(A),window.wp.customize("select_settings")(A);const E=oe("body");window.jQuery(E).css("--select-border-width",yt(S))})},s=S=>{Ro(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","radius"],S),t(A),window.wp.customize("select_settings")(A);const E=oe("body");window.jQuery(E).css("--select-border-radius",yt(S))})},l=S=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["padding"],S),t(A),window.wp.customize("select_settings")(A);const E=oe("body");window.jQuery(E).css("--select-padding",Jo(S))};return r.jsxs(GH,{children:[r.jsxs(UH,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(YH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((c=e==null?void 0:e.text_color)==null?void 0:c.normal)??((d=Bt.text_color)==null?void 0:d.normal),onChange:n("normal")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((u=e==null?void 0:e.text_color)==null?void 0:u.hover)??((h=Bt.text_color)==null?void 0:h.hover),onChange:n("hover")})})]})]}),r.jsxs(JH,{children:[r.jsx("label",{children:I("Background color")}),r.jsxs(XH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((p=Bt==null?void 0:Bt.background_color)==null?void 0:p.normal),onChange:i("normal")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((g=e==null?void 0:e.background_color)==null?void 0:g.hover)??((v=Bt.background_color)==null?void 0:v.hover),onChange:i("hover")})})]})]}),r.jsxs(QH,{children:[r.jsx("label",{children:I("Border color")}),r.jsxs(qH,{children:[r.jsx(Le,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((k=(w=e==null?void 0:e.border)==null?void 0:w.color)==null?void 0:k.normal)??((D=($=Bt==null?void 0:Bt.border)==null?void 0:$.color)==null?void 0:D.normal),onChange:o("normal")})}),r.jsx(Le,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(De,{color:((H=(_=e==null?void 0:e.border)==null?void 0:_.color)==null?void 0:H.hover)??((y=(x=Bt.border)==null?void 0:x.color)==null?void 0:y.hover),onChange:o("hover")})})]})]}),r.jsx(at,{title:I("Border width"),value:((N=e==null?void 0:e.border)==null?void 0:N.width)??Bt.border.width,onChange:a}),r.jsx(at,{title:I("Border radius"),value:((O=e==null?void 0:e.border)==null?void 0:O.radius)??Bt.border.radius,onChange:s}),r.jsx(ra,{title:I("Padding"),units:["px"],value:(e==null?void 0:e.padding)??Bt.padding,onChange:l})]})}var GH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),UH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),YH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),JH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),XH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),QH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),qH=m("div").withConfig({displayName:"SelectSettings___StyledDiv7",componentId:"sc-13p5h44-0"})({display:"flex",alignItems:"center",gap:"1rem"});const KH=window.React.useContext,xu=window.React.useMemo;function eM(){const{sectionId:e}=KH(Ft),t=xu(()=>{switch(e){case"button_settings":return uH;case"breadcrumb_settings":return ZE;case"select_settings":return WH;case"input_settings":return RH;default:return null}},[e]),n=xu(()=>window.brandyCustomizerData.general.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Bn,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("General")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??"Not found"})]}),hasBottomPart:!1,onGoBack:Lt}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const tM=window.React.useState,nM={sync_enabled:!0};function rM(){const[e,t]=tM(window.wp.customize("elementor_settings")()??nM),n=i=>{const o=JSON.parse(JSON.stringify({data:e}));o.sync_enabled=i,t(o),Li.refreshView()};return r.jsxs(iM,{children:[r.jsx(oM,{children:I("Choose items you want to sync with Brandy")}),r.jsxs(aM,{children:[r.jsx("span",{children:I("Button")}),r.jsx(ea,{checked:e.sync_enabled,onChange:n})]})]})}var iM=m("div")({padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),oM=m("label")({marginBottom:"0.5rem",display:"block",fontWeight:"600"}),aM=m("div").withConfig({displayName:"OverrideSettings___StyledDiv2",componentId:"sc-vdgna1-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const sM=window.React.useContext,bu=window.React.useMemo;function lM(){const{sectionId:e}=sM(Ft),t=bu(()=>{switch(e){case"elementor_override_settings":return rM}},[e]),n=bu(()=>window.brandyCustomizerData.elementor.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Bn,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[I("Customizing")," ▸ ",I("Elementor")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??"Not found"})]}),hasBottomPart:!1,onGoBack:Lt}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const cM=window.React.createContext,yu=window.React.useMemo,ol=m.div.withConfig({displayName:"BrandySection__StyledSectionWrapper",componentId:"sc-ywrqgm-0"})({height:"100%"}),Ft=cM({});function dM(e){const{sectionId:t,builder:n,clonedFromId:i}=e,o=yu(()=>({sectionId:t,builder:n}),[t,n]),a=yu(()=>t==="new_header"&&n==="header"?r.jsx(x$,{}):t==="new_footer"&&n==="footer"?r.jsx(F$,{}):t==="settings"&&n==="header"?r.jsx(m$,{}):t==="settings"&&n==="footer"?r.jsx(P$,{}):t.endsWith("_header")&&n==="header"||t.endsWith("_footer")&&n==="footer"?r.jsx($$,{}):t==="toggle_off_canvas"?r.jsx(fu,{}):t==="toggle"?r.jsx(fu,{}):n==="woocommerce-settings"?r.jsx(PE,{}):n==="general-settings"?r.jsx(eM,{}):n==="elementor-settings"?r.jsx(lM,{}):r.jsx(Yy,{elementId:t,clonedFromId:i}),[t,n]);return r.jsx(Ft.Provider,{value:o,children:a})}const un=[],uM=(e,t)=>{if(t.endsWith("_header")&&e==="header"||t.endsWith("_footer")&&e==="footer"){fM(e,t);return}if(t==="toggle_off_canvas"){hM();return}pM(e,t)},hM=()=>{Ie.setState(e=>{e.chosenRow="toggle",e.chosenElement=null})},fM=(e,t)=>{let n=Ie;e==="footer"&&(n=Te),["top","middle","bottom"].forEach(o=>{t.includes(o)&&n.setState(a=>{a.chosenRow=o,a.chosenElement=null})})},pM=(e,t)=>{let n=Ie;e==="footer"&&(n=Te),n.setState(i=>{const o=i.previewTemplate.elements[t];o!=null&&(i.chosenElement=o,i.chosenRow=null)})},Of=300,vn=(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(un==null?void 0:un.find(d=>d.dom.dataset.sectionId===t&&d.dom.dataset.builder===e))return;if(un.length>0&&un.forEach(d=>{let u=d.dom.cloneNode(!0);d.dom.replaceWith(u),d.root.unmount(),setTimeout(()=>{window.jQuery(u).remove(),un.shift()},Of)}),i!=null){const d=Cu(e,i);s==null||s.appendChild(d)}const c=Cu(e,t);s==null||s.appendChild(c)};function Cu(e,t){const n=document.createElement("div");n.className="customize-pane-child",n.dataset.sectionId=t,n.dataset.builder=e,uM(e,t);const i=Ar.createRoot(n);return un.push({root:i,dom:n}),i.render(r.jsx(dM,{builder:e,sectionId:t})),setTimeout(()=>{n.classList.add("current-panel")},100),n}const Lt=()=>{un.length>0&&un.forEach((e,t)=>{un.length>1&&t!=un.length-1||(e.dom.classList.add("section-close"),setTimeout(()=>{e.root.unmount(),e.dom.remove(),un.pop()},Of))})},oe=e=>{const t=b5();return t==null||t.contentDocument==null?[]:t.contentDocument.querySelectorAll(e)},_t=(e,t)=>e==="header"||e==="footer"?`[data-section-id="${e}"]`:`[data-section-id="${e}"][data-builder="${t}"]`;var Pf=Symbol.for("immer-nothing"),_u=Symbol.for("immer-draftable"),Jt=Symbol.for("immer-state");function Sn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ii=Object.getPrototypeOf;function Ti(e){return!!e&&!!e[Jt]}function Pr(e){var t;return e?Vf(e)||Array.isArray(e)||!!e[_u]||!!((t=e.constructor)!=null&&t[_u])||sl(e)||ll(e):!1}var gM=Object.prototype.constructor.toString();function Vf(e){if(!e||typeof e!="object")return!1;const t=Ii(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===gM}function xs(e,t){al(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,i)=>t(i,n,e))}function al(e){const t=e[Jt];return t?t.type_:Array.isArray(e)?1:sl(e)?2:ll(e)?3:0}function Xc(e,t){return al(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zf(e,t,n){const i=al(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function mM(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function sl(e){return e instanceof Map}function ll(e){return e instanceof Set}function $r(e){return e.copy_||e.base_}function Qc(e,t){if(sl(e))return new Map(e);if(ll(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Vf(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[Jt];let o=Reflect.ownKeys(i);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=vM),Object.freeze(e),t&&Object.entries(e).forEach(([n,i])=>td(i,!0))),e}function vM(){Sn(2)}function cl(e){return Object.isFrozen(e)}var wM={};function Vr(e){const t=wM[e];return t||Sn(0,e),t}var Go;function Ff(){return Go}function xM(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Su(e,t){t&&(Vr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qc(e){Kc(e),e.drafts_.forEach(bM),e.drafts_=null}function Kc(e){e===Go&&(Go=e.parent_)}function ju(e){return Go=xM(Go,e)}function bM(e){const t=e[Jt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ku(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Jt].modified_&&(qc(t),Sn(4)),Pr(e)&&(e=bs(t,e),t.parent_||ys(t,e)),t.patches_&&Vr("Patches").generateReplacementPatches_(n[Jt].base_,e,t.patches_,t.inversePatches_)):e=bs(t,n,[]),qc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Pf?e:void 0}function bs(e,t,n){if(cl(t))return t;const i=t[Jt];if(!i)return xs(t,(o,a)=>Du(e,i,t,o,a,n)),t;if(i.scope_!==e)return t;if(!i.modified_)return ys(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,s=!1;i.type_===3&&(a=new Set(o),o.clear(),s=!0),xs(a,(l,c)=>Du(e,i,o,l,c,n,s)),ys(e,o,!1),n&&e.patches_&&Vr("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Du(e,t,n,i,o,a,s){if(Ti(o)){const l=a&&t&&t.type_!==3&&!Xc(t.assigned_,i)?a.concat(i):void 0,c=bs(e,o,l);if(zf(n,i,c),Ti(c))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Pr(o)&&!cl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;bs(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,i)&&ys(e,o)}}function ys(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&td(t,n)}function yM(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Ff(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=nd;n&&(o=[i],a=Uo);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var nd={get(e,t){if(t===Jt)return e;const n=$r(e);if(!Xc(n,t))return CM(e,n,t);const i=n[t];return e.finalized_||!Pr(i)?i:i===mc(e.base_,t)?(vc(e),e.copy_[t]=t1(i,e)):i},has(e,t){return t in $r(e)},ownKeys(e){return Reflect.ownKeys($r(e))},set(e,t,n){const i=Zf($r(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=mc($r(e),t),a=o==null?void 0:o[Jt];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(mM(n,o)&&(n!==void 0||Xc(e.base_,t)))return!0;vc(e),e1(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 mc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,vc(e),e1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=$r(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){Sn(11)},getPrototypeOf(e){return Ii(e.base_)},setPrototypeOf(){Sn(12)}},Uo={};xs(nd,(e,t)=>{Uo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Uo.deleteProperty=function(e,t){return Uo.set.call(this,e,t,void 0)};Uo.set=function(e,t,n){return nd.set.call(this,e[0],t,n,e[0])};function mc(e,t){const n=e[Jt];return(n?$r(n):e)[t]}function CM(e,t,n){var o;const i=Zf(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function Zf(e,t){if(!(t in e))return;let n=Ii(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Ii(n)}}function e1(e){e.modified_||(e.modified_=!0,e.parent_&&e1(e.parent_))}function vc(e){e.copy_||(e.copy_=Qc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _M=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...d){return s.produce(c,u=>n.call(this,u,...d))}}typeof n!="function"&&Sn(6),i!==void 0&&typeof i!="function"&&Sn(7);let o;if(Pr(t)){const a=ju(this),s=t1(t,void 0);let l=!0;try{o=n(s),l=!1}finally{l?qc(a):Kc(a)}return Su(a,i),ku(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Pf&&(o=void 0),this.autoFreeze_&&td(o,!0),i){const a=[],s=[];Vr("Patches").generateReplacementPatches_(t,o,a,s),i(a,s)}return o}else Sn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let i,o;return[this.produce(t,n,(s,l)=>{i=s,o=l}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Pr(e)||Sn(8),Ti(e)&&(e=SM(e));const t=ju(this),n=t1(e,void 0);return n[Jt].isManual_=!0,Kc(t),n}finishDraft(e,t){const n=e&&e[Jt];(!n||!n.isManual_)&&Sn(9);const{scope_:i}=n;return Su(i,t),ku(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=Vr("Patches").applyPatches_;return Ti(e)?i(e,t):this.produce(e,o=>i(o,t))}};function t1(e,t){const n=sl(e)?Vr("MapSet").proxyMap_(e,t):ll(e)?Vr("MapSet").proxySet_(e,t):yM(e,t);return(t?t.scope_:Ff()).drafts_.push(n),n}function SM(e){return Ti(e)||Sn(10,e),Wf(e)}function Wf(e){if(!Pr(e)||cl(e))return e;const t=e[Jt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qc(e,!0);return xs(n,(i,o)=>{zf(n,i,Wf(o))}),t&&(t.finalized_=!1),n}var Xt=new _M,jM=Xt.produce;Xt.produceWithPatches.bind(Xt);var Gf=Xt.setAutoFreeze.bind(Xt);Xt.setUseStrictShallowCopy.bind(Xt);Xt.applyPatches.bind(Xt);Xt.createDraft.bind(Xt);Xt.finishDraft.bind(Xt);const kM=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)},Uf=kM,DM=e=>(t,n,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?jM(o):o;return t(l,a,...s)},e(i.setState,n,i)),Yf=DM;function mi(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}Gf(!1);let Te;const jr="footer";Ai.panel(jr,function(){const e=()=>$e().getTemplates(jr),t=()=>{const o=e(),a=$e().getPreviewTemplate(jr).id;return o.find(s=>s.id===a)},n=()=>{const o=e(),a=$e().getCurrentTemplate(jr).id;return(o.find(s=>s.id===a)??o[0]).id},i=()=>{$e().refreshPartial(`${jr}_placements`)};Te=Ts(Uf(Yf((o,a)=>({templates:e(),previewTemplate:t(),currentTemplateId:n(),chosenElement:null,chosenRow:null,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}),$e().updateCurrentTemplateId("footer",c)},cloneElementItem:s=>{o(l=>{const c=l.previewTemplate.elements[s];if(c==null)return;const d=c.cloned_from??s,u=d+new Date().getTime(),h=`Cloned ${c.title}`,f={...c,id:u,title:h,cloned_from:d},p={};Object.keys(l.previewTemplate.elements).forEach(g=>{p[g]=l.previewTemplate.elements[g],g===s&&(p[u]=f)}),l.previewTemplate.elements=JSON.parse(JSON.stringify(p))})},removeElementItem:s=>{o(l=>{delete l.previewTemplate.elements[s],l.previewTemplate.elements=JSON.parse(JSON.stringify(l.previewTemplate.elements))})},changeElementItemTitle:(s,l)=>{o(c=>{c.previewTemplate.elements[s]!=null&&(c.previewTemplate.elements[s].title=l)})},addElement:s=>{_2({...s,template:a().previewTemplate}).then(l=>{o(c=>{c.previewTemplate.placements[Je(s.device)]=l}),i()})},setElements:({row:s,col:l,changedList:c,device:d})=>{const u=a().previewTemplate,h=JSON.parse(JSON.stringify(u.placements[Je(d)]));s==="toggle"&&(h.toggle=c),s!=="toggle"&&l!=null&&(h[s][l]=c),o(f=>{f.previewTemplate.placements[Je(d)]=h}),I1(h,u.placements[Je(d)])||i()},removeElement:s=>{var l;S2({...s,template:a().previewTemplate}).then(c=>{o(d=>{var u;d.previewTemplate.placements[Je(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)&&Lt()},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})}})))),Te.subscribe(o=>o.chosenElement,(o,a)=>{a!=null&&Te.setState(s=>{(o==null?void 0:o.id)!=null&&(s.previewTemplate.elements[o==null?void 0:o.id]=o)})},{equalityFn:mi}),Te.subscribe(o=>o.previewTemplate,o=>{Te.setState(a=>{const s=a.templates.findIndex(l=>l.id===o.id)||0;a.templates[s]=o})},{equalityFn:mi}),Te.subscribe(o=>o.previewTemplate.id,(o,a)=>{o!==a&&$e().updatePreviewTemplateId(jr,o??"default")}),Te.subscribe(o=>o.templates,(o,a)=>{JSON.stringify(o)!==JSON.stringify(a)&&$e().updateTemplates(jr,o)},{equalityFn:mi})});const li=e=>{var n;if(!Ie||!Te){let i;return e==="header"?i=window.brandyHeaderSettings:i=window.brandyFooterSettings,i??null}let t;return e==="header"?t=Ie.getState():t=Te.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}},wc=(e,t)=>{window.wp.customize(`${e}_settings`)!=null&&window.wp.customize(`${e}_settings`)(new Date().getTime())};class $M{constructor(){}getPreviewTemplate(t){const n=li(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=li(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=li(t);return n?n.templates??[]:[]}updateTemplates(t,n){const i=li(t);wc(t,JSON.parse(JSON.stringify({...i,templates:n})))}updatePreviewTemplateId(t,n){const i=li(t);wc(t,JSON.parse(JSON.stringify({...i,preview_template_id:n})))}updateCurrentTemplateId(t,n){const i=li(t);wc(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=Te.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 $e=()=>new $M;Gf(!1);let Ie;const nr="header";Ai.panel(nr,function(){const e=$e().getPreviewTemplate(nr),t=()=>e.toggle_off_canvas,n=()=>$e().getTemplates(nr),i=()=>{const s=n(),l=$e().getPreviewTemplate(nr).id;return s.find(c=>c.id===l)??s[0]},o=()=>{const s=n(),l=$e().getCurrentTemplate(nr).id;return(s.find(c=>c.id===l)??s[0]).id},a=()=>{$e().refreshPartial(`${nr}_placements`)};Ie=Ts(Uf(Yf((s,l)=>({templates:n(),previewTemplate:i(),currentTemplateId:o(),chosenElement:null,chosenRow:null,toggleOffCanvas:t(),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}),$e().updateCurrentTemplateId("header",u)},cloneElementItem:c=>{s(d=>{const u=d.previewTemplate.elements[c];if(u==null)return;const h=u.cloned_from??c,f=h+new Date().getTime(),p=`Cloned ${u.title}`,g={...u,id:f,title:p,cloned_from:h},v={};Object.keys(d.previewTemplate.elements).forEach(w=>{v[w]=d.previewTemplate.elements[w],w===c&&(v[f]=g)}),d.previewTemplate.elements=JSON.parse(JSON.stringify(v))})},removeElementItem:c=>{s(d=>{delete d.previewTemplate.elements[c],d.previewTemplate.elements=JSON.parse(JSON.stringify(d.previewTemplate.elements))})},changeElementItemTitle:(c,d)=>{s(u=>{u.previewTemplate.elements[c]!=null&&(u.previewTemplate.elements[c].title=d)})},addElement:c=>{_2({...c,template:l().previewTemplate}).then(d=>{s(u=>{u.previewTemplate.placements[Je(c.device)]=d}),a()})},setElements:({row:c,col:d,changedList:u,device:h})=>{const f=l().previewTemplate,p=JSON.parse(JSON.stringify(f.placements[Je(h)]));c==="toggle"&&(p.toggle=u),c!=="toggle"&&d!=null&&(p[c][d]=u),s(g=>{g.previewTemplate.placements[Je(h)]=p}),I1(p,f.placements[Je(h)])||a()},removeElement:c=>{var d;S2({...c,template:l().previewTemplate}).then(u=>{s(h=>{var f;h.previewTemplate.placements[Je(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)&&Lt()},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:mi}),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:mi}),Ie.subscribe(s=>s.previewTemplate.id,(s,l)=>{s!==l&&$e().updatePreviewTemplateId(nr,s??"default")}),Ie.subscribe(s=>s.templates,(s,l)=>{JSON.stringify(s)!==JSON.stringify(l)&&$e().updateTemplates(nr,s)},{equalityFn:mi})});function EM({template:e,device:t,builder:n}){const i=Je(t),o=e.placements[i];o.toggle&&Array.isArray(o.toggle)&&o.toggle.forEach(a=>{const s=e.elements[a];s!=null&&Dn({sectionId:s.id,settings:s.settings,device:t,builder:n,clonedFromId:s.cloned_from})})}function HM({template:e,device:t,builder:n}){const i=Je(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&&Dn({sectionId:c.id,settings:c.settings,device:t,builder:n,clonedFromId:c.cloned_from})})})})}function MM({template:e,device:t,builder:n}){Object.keys(e.row_configurations).forEach(i=>{const o=e.row_configurations[i],a=i+"_"+n;Dn({sectionId:a,settings:o,device:t,builder:n})})}const Li={updateResponsiveControl(e,t){const i=(e==="header"?Ie:Te).getState().previewTemplate;EM({template:i,device:t,builder:e}),HM({template:i,device:t,builder:e}),MM({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()}},IM=()=>{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)}},TM=()=>{const e=document.querySelector("#customize-theme-controls");if(e){const t=document.createElement("div");t.id="brandy-section",e.appendChild(t)}},LM=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-header-placements",window.jQuery(t).insertAfter(e)}},AM=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-footer-placements",window.jQuery(t).insertAfter(e)}},RM=()=>{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)}},NM=()=>{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)}},BM=()=>{IM(),TM(),LM(),AM(),RM(),NM()};function Jf(){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 Xf(){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 OM=window.React.createContext,PM=window.React.useMemo;OM({});function VM(){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=PM(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),vn("header","new_header")},c=u=>{s===u?vn("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(FM,{children:[r.jsxs(ZM,{children:[r.jsx(WM,{children:I("Global header")}),r.jsx(pt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(GM,{children:I("Your headers")}),r.jsx(UM,{children:I("Choose to preview and click again to customize")}),r.jsx(YM,{children:e.map(u=>{var h;return r.jsx(zM,{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(JM,{children:r.jsx(Ns,{primary:!0,onClick:l,children:I("Create new header")})})]})}const zM=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>{const s=r.jsx(XM,{children:e});return r.jsxs(QM,{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)"}},de(["&:hover .arrow-icon svg *{","}"],{stroke:"#000 !important"})],children:[(e??"").toString().length>28?r.jsx(Le,{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(Xf,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Jf,{})})]})]},a)};var FM=m("div")({display:"flex",flexGrow:"1",flexDirection:"column"}),ZM=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem"}),WM=m("p")({marginBottom:"0.25rem",fontWeight:"600"}),GM=m("div")({"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"16px",fontSize:"14px",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"}),UM=m("div")({padding:"1rem",paddingBottom:"0px"}),YM=m("div")({display:"grid",gap:"1rem",padding:"1rem"}),JM=m("div")({marginTop:"auto",borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity))",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)"}),XM=m("span")` overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; `,QM=m("div").withConfig({displayName:"Headers___StyledDiv7",componentId:"sc-1aiksvl-0"})(["",""],e=>e.$_css2);function qM(){return r.jsx(VM,{})}var Mu,Iu;const KM=((Iu=(Mu=window.brandyCustomizerData)==null?void 0:Mu.elementor)==null?void 0:Iu.sections)??[];function eI(){return r.jsx(tI,{className:"brandy-elementor-panel__content",children:r.jsx("div",{className:"elementor-settings__navigations",children:KM.map(e=>r.jsxs(nI,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),vn("elementor-settings",e.id)},children:[r.jsx(rI,{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(iI,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var tI=m("div")({marginTop:"1rem"}),nI=m("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))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}}),rI=m("span")({fontWeight:"500"}),iI=m("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-d7ecr8-0"})({".group:hover &":{fill:"#2271B1"}});const oI=window.React.createContext,aI=window.React.useMemo;oI({});function sI(){const e=Te(u=>u.templates),t=Te(u=>u.currentTemplateId),n=Te(u=>u.setCurrentTemplateId),i=Te(u=>u.previewTemplate),o=Te(u=>u.choosePreviewTemplate),a=Te(u=>u.removeTemplate),s=aI(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),vn("footer","new_footer")},c=u=>{s===u?vn("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(cI,{children:[r.jsx(dI,{children:I("Global footer")}),r.jsx(pt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(uI,{children:I("Your footers")}),r.jsx(hI,{children:I("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(lI,{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(fI,{className:"p-4 mt-auto",$_css2:[{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity))","--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(Ns,{primary:!0,onClick:l,children:I("Create new footer")})})]})}const lI=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>r.jsxs(pI,{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)"}},de(["&: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(Xf,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Jf,{})})]})]},a);var cI=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem"}),dI=m("p")({marginBottom:"0.25rem",fontWeight:"600"}),uI=m("div")({"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"16px",fontSize:"14px",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"}),hI=m("div")({padding:"1rem",paddingBottom:"0px"}),fI=m("div")`${e=>e.$_css2}`,pI=m("div").withConfig({displayName:"Footers___StyledDiv5",componentId:"sc-1jo1m6-0"})(["",""],e=>e.$_css3);function gI(){return r.jsx(sI,{})}var Tu,Lu;const mI=((Lu=(Tu=window.brandyCustomizerData)==null?void 0:Tu.general)==null?void 0:Lu.sections)??[];function vI(){return r.jsx(wI,{className:"brandy-general-panel__content",children:r.jsx("div",{className:"general-settings__navigations",children:mI.map(e=>r.jsxs(xI,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),vn("general-settings",e.id)},children:[r.jsx(bI,{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(yI,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var wI=m("div")({marginTop:"1rem"}),xI=m("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))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}}),bI=m("span")({fontWeight:"500"}),yI=m("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1qa3lxj-0"})({".group:hover &":{fill:"#2271B1"}}),Au,Ru;const CI=((Ru=(Au=window.brandyCustomizerData)==null?void 0:Au.woocommerce)==null?void 0:Ru.sections)??[];function _I(){return r.jsx(SI,{className:"brandy-woocommerce-panel__content",children:r.jsx("div",{className:"woocommerce-settings__navigations",children:CI.map(e=>r.jsxs(jI,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),vn("woocommerce-settings",e.id)},children:[r.jsx(kI,{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(DI,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var SI=m("div")({marginTop:"1rem"}),jI=m("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))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}}),kI=m("span")({fontWeight:"500"}),DI=m("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1n2dri3-0"})({".group:hover &":{fill:"#2271B1"}});const $I=window.React.useContext;function EI(){const{panelData:e}=$I(rd);return e.id==="header"?r.jsx(qM,{}):e.id==="footer"?r.jsx(gI,{}):e.id==="woocommerce-settings"?r.jsx(_I,{}):e.id==="general-settings"?r.jsx(vI,{}):e.id==="elementor-settings"?r.jsx(eI,{}):"Not found"}const HI=window.React.useContext;function MI(){const{panelData:e,goBack:t}=HI(rd);return r.jsxs(II,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(TI,{children:[r.jsx(LI,{children:I("Customizing")}),r.jsx(AI,{children:(e==null?void 0:e.title)??"Not found"})]})]})}var II=m("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px",borderTopWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",borderTopColor:"rgb(227 232 238 / var(--tw-border-opacity))"}),TI=m("div")({width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"0.75rem"}),LI=m("div")({fontSize:"13px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),AI=m("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))"});const RI=window.React.createContext,NI=window.React.useCallback,$u=window.React.useMemo,rd=RI({});function Qf({builder:e,title:t}){const n=NI(()=>{const a=window.wp.customize.panel(e);a&&a.expanded(!1)},[e]),i=$u(()=>({id:e,title:t||(e==="header"?"Header":"Footer")}),[e,t]),o=$u(()=>({goBack:n,panelData:i,builder:e}),[n,i,e]);return r.jsx(rd.Provider,{value:o,children:r.jsxs(BI,{className:"brandy-panel-wrapper",children:[r.jsx(MI,{}),r.jsx(EI,{})]})})}var BI=m("div").withConfig({displayName:"BrandyPanel___StyledDiv",componentId:"sc-1y7egfl-0"})({display:"flex",height:"100%",flexDirection:"column"});function qf({items:e,builder:t,row:n,col:i=0}){const o=ne(t)(g=>g.setElements),{current:a}=ye(),s=ne(t)(g=>g.removeElement),l=ne(t)(g=>g.selectElement),c=ne(t)(g=>{var v;return(v=g.chosenElement)==null?void 0:v.id}),d=Wo(g=>g.startDragging),u=Wo(g=>g.stopDragging),h=g=>{o({row:n,col:i,changedList:g.map(v=>v.id),device:a})},f=g=>v=>{v.preventDefault(),v.stopPropagation(),s({row:n,col:i,removeId:g,device:a})},p=g=>v=>{v.preventDefault(),v.stopPropagation(),setTimeout(()=>{l({element:g})},200),vn(t,g.id,g.cloned_from,"settings")};return r.jsx(hr.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=>r.jsxs(OI,{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))",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))"},{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))","--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))",outlineColor:"#1E1E1E"}],children:[r.jsx("span",{children:g.title}),r.jsx(PI,{onClick:f(g.id),children:r.jsx($1,{})})]},g.id))})}var OI=m("span")`${e=>e.$_css}`,PI=m("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))"});const VI=window.React,n1=window.React.useEffect,zI=window.React.useMemo,Kf=window.React.useRef,ep=window.React.useState,FI=m.div.withConfig({displayName:"useAddElementPopup__StyledListItem",componentId:"sc-hvpjws-0"})({display:"grid",gridAutoRows:"minmax(0, 1fr)",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"5px"}),ZI=m.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))",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))",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))"}});var WI=m(ZI).withConfig({displayName:"useAddElementPopup___StyledStyledItem",componentId:"sc-hvpjws-2"})(["",""],e=>e.$_css5);const GI=()=>r.jsx("div",{className:"text-brandy-text text-center",children:"No element found"}),UI=VI.forwardRef(({builder:e="header",onClose:t,row:n,col:i,lastPush:o=!0},a)=>{const{current:s}=ye(),l=ne(e)(w=>w.previewTemplate.placements[Je(s)]),c=ne(e)(w=>w.addElement),[d,u]=ep(""),h=w=>()=>{c({row:n,col:i,lastPush:o,addId:w,device:s}),t()},f=w=>{typeof w!="number"&&u(w)},{unusedElements:p}=ed(l,e),g=zI(()=>d===""?p:p.filter(w=>w.title.toLowerCase().includes(d.toLowerCase())),[l,d,p]),v=Kf(null);return n1(()=>{var w,k;(k=(w=v.current)==null?void 0:w.querySelector("input"))==null||k.focus()},[v]),r.jsx(YI,{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(JI,{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))",borderRightColor:"transparent",borderTopColor:"rgb(255 255 255 / var(--tw-border-opacity))","--tw-content":"''"}},{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},{borderRadius:"5px"},{cursor:"auto"},{width:"66.666667%",minWidth:"360px"}],children:[r.jsxs(XI,{children:[r.jsxs(QI,{children:[r.jsx(qI,{children:I("Add an element")}),r.jsx(KI,{onClick:t,$_css4:[{cursor:"pointer",padding:"7px","& svg":{height:"12px",width:"12px"}},de` svg * { ${{fill:"#A1ABB7"}} } `],children:r.jsx($1,{})})]}),r.jsx(eT,{searchText:d,onSearch:f,ref:v,placeholder:I("Search element")})]}),r.jsx(Nn,{className:"h-[300px]",autoHide:!0,children:r.jsx("div",{className:"p-4",children:g.length<=0?r.jsx(GI,{}):r.jsx(FI,{children:g.map(w=>r.jsxs(WI,{onClick:h(w.id),$_css5:[de` &:hover svg { *[fill] { ${{fill:"#2271B1"}} } *[stroke] { ${{stroke:"#2271B1"}} } } `],children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:w.icon}}),w.title]},w.id))})})})]})})});function tp({activatorNode:e=null,builder:t="header",col:n=1,row:i="top",lastPush:o=!0}){const a=Kf(null),[s,l]=ep(!1);n1(()=>{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 n1(()=>{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(UI,{ref:a,builder:t,row:i,col:n,onClose:()=>{c()},lastPush:o}):!1,popupApi:{open:d,close:c}}}var YI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv",componentId:"sc-hvpjws-3"})(["",""],e=>e.$_css2),JI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv2",componentId:"sc-hvpjws-4"})(["",""],e=>e.$_css3),XI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv3",componentId:"sc-hvpjws-5"})({borderBottomWidth:"1px",borderColor:"#dddddd4d",padding:"1rem"}),QI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv4",componentId:"sc-hvpjws-6"})({marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),qI=m("h4").withConfig({displayName:"useAddElementPopup___StyledH",componentId:"sc-hvpjws-7"})({fontSize:"16px",fontWeight:"500"}),KI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv5",componentId:"sc-hvpjws-8"})(["",""],e=>e.$_css4),eT=m(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))"},"& svg *":{fill:"#757575"}});const tT=window.React.useContext,nT=window.React.useMemo,rT=window.React.useRef,iT=window.React.useState,oT=de([".add-icon{transition:all ease-in-out 0.2s;}&:hover{.add-icon{visibility:visible;opacity:1;}}"]);function aT({row:e,colPosition:t,elements:n,position:i},o){const[a,s]=iT(!1),l=Wo(p=>p.isDragging),c=rT(null),{builder:d}=tT(id),u=nT(()=>!l&&a,[l,a]),{popupApi:h,contextHolder:f}=tp({activatorNode:c.current,builder:d,row:e,col:t,lastPush:i==="left"||i==="middle"});return r.jsxs(sT,{onClick:()=>{h.open()},ref:c,className:_e(["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))","&: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))","&: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))"},oT],children:[r.jsx(qf,{builder:d,items:n,row:e,col:t}),f]},o)}var sT=m("div").withConfig({displayName:"PlacementCol___StyledDiv",componentId:"sc-1qvtqv7-0"})(["",""],e=>e.$_css2);const lT=window.React.useContext,cT=window.React.useMemo,np=de` ${{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}} `,dT=m.div.withConfig({displayName:"RowPlacement__StyledRowWrapper",componentId:"sc-1g1fjfw-0"})(()=>[{display:"flex",minHeight:"50px",cursor:"pointer",borderRadius:"0.375rem"},np,{"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 249 249 / var(--tw-bg-opacity))"}},{"&: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)"}}]);function xc({row:e}){const{builder:t}=lT(id),n=ne(t)(l=>l.chosenRow),i=()=>{vn(t,`${e}_${t}`,null,"settings")},{current:o}=ye(),a=ne(t)(l=>l.previewTemplate.placements[Je(o)][e].reduce((c,d)=>(c.push(d.filter(u=>l.previewTemplate.elements[u]!=null).map(u=>l.previewTemplate.elements[u])),c),[])),s=cT(()=>n==null?void 0:n.includes(e),[n,e]);return r.jsxs(dT,{className:"group builder-row",children:[r.jsx(uT,{onClick:i,$_css2:[{borderEndStartRadius:"5px",borderStartStartRadius:"5px",borderWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity))",padding:"10px"},s&&{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity))","& svg *":{fill:"#fff"}},{".group:hover &":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity))"},"& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},".group:hover & svg *":{fill:"#fff"}},np],children:r.jsx(mh,{})}),r.jsx("div",{className:"w-full flex",children:a.map((l,c)=>{const d=Math.round(a.length/2);let u="left";return c+1===d&&a.length%2!=0&&(u="middle"),c+1>d&&(u="right"),r.jsx(aT,{row:e,colPosition:c,position:u,elements:l},c)})})]})}var uT=m("button").withConfig({displayName:"RowPlacement___StyledButton",componentId:"sc-1g1fjfw-1"})(["",""],e=>e.$_css2);const hT=window.React.useMemo,fT=window.React.useRef,pT=window.React.useState;function gT(){const{current:e}=ye(),t=ne("header")(h=>h.previewTemplate.placements[Je(e)].toggle.map(f=>h.previewTemplate.elements[f])),n=ne("header")(h=>h.chosenRow),i=fT(null),{contextHolder:o,popupApi:a}=tp({activatorNode:i.current,row:"toggle",builder:"header",col:1}),[s,l]=pT(!1),{isDragging:c}=Wo(),d=hT(()=>!c&&s,[c,s]),u=()=>{vn("header","toggle_off_canvas",null,"settings")};return r.jsxs(mT,{className:"group",children:[r.jsxs(vT,{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))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},".group:hover & svg *":{fill:"#fff"}},n==="toggle"&&de([""," svg{*[fill]{fill:white;}*[stroke]{stroke:white;}}"],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity)) !important","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}),de(["svg{*{transition:all ease-in-out 0.2s;}}"])],children:[r.jsx("span",{children:r.jsx(mh,{})}),r.jsx(wT,{children:"Toggle off-canvas"})]}),r.jsx(Nn,{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(xT,{className:_e(["toggle-off-elements",d?"show-add-btn":""]),ref:i,children:r.jsx(qf,{builder:"header",items:t||[],row:"toggle"})})}),o]})}var mT=m("div")({position:"relative",display:"flex",height:"100%",cursor:"pointer",flexDirection:"column"}),vT=m("div")`${e=>e.$_css2}`,wT=m("span")({fontSize:"12px",fontWeight:"600"}),xT=m("div").withConfig({displayName:"Toggle___StyledDiv3",componentId:"sc-15k3s0k-0"})({position:"relative",height:"100%",minHeight:"100px",padding:"10px"});const bT=window.React.createContext,yT=window.React.useMemo,id=bT({});function CT({builder:e}){const{current:t}=ye(),n=ne(e)(o=>{const s=o.previewTemplate.placements[Je(t)];return!!j2(s).includes("toggle_button")}),i=yT(()=>({builder:e}),[e]);return r.jsx(_T,{$_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(id.Provider,{value:i,children:[n&&r.jsx(ST,{children:r.jsx(gT,{})}),r.jsxs(jT,{children:[r.jsx(xc,{row:"top"}),r.jsx(xc,{row:"middle"}),r.jsx(xc,{row:"bottom"})]})]})})}var _T=m("div")`${e=>e.$_css}`,ST=m("div")({height:"100%",width:"170px"}),jT=m("div").withConfig({displayName:"PlacementsBuilder___StyledDiv3",componentId:"sc-1m09crd-0"})({display:"flex",flex:"1 1 auto",flexDirection:"column",gap:"1rem"}),kT=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=Eu[t.format]||Eu.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=ET("message"in t?t.message:$T),window.prompt(i,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var MT=HT;const IT=Qt(MT);const rp=window.React.useState,TT=window.ReactDOM.createPortal,LT=window.brandyCustomizerData.content_variables??{};function AT(){const[e,t]=rp(!1);return r.jsxs(NT,{onClick:()=>{t(n=>!n)},children:[r.jsx("span",{children:"Variables selection"}),e&&TT(r.jsx(RT,{onClose:()=>{t(!1)}}),document.querySelector("body"))]})}let Hu;function RT({onClose:e}){const[t,n]=rp(!1);return r.jsxs(BT,{className:"variable-modal",onClick:i=>{i.stopPropagation()},children:[r.jsxs(OT,{children:[r.jsx(PT,{children:I("Click to copy and paste to use in some input settings")}),r.jsx(VT,{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(zT,{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(FT,{children:Object.entries(LT).map(([i,o],a)=>r.jsxs(ZT,{onClick:()=>{IT(`[${i}]`),clearTimeout(Hu),n(a),Hu=setTimeout(()=>{n(!1)},2e3)},children:[r.jsxs(WT,{children:["[",i,"]",t===a&&r.jsx(GT,{children:I("Copied")})]}),r.jsx(UT,{dangerouslySetInnerHTML:{__html:o}})]},a))})]})}var NT=m("div")({cursor:"pointer",borderRadius:"3px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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))"}}),BT=m("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))",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)"}),OT=m("div")({marginBottom:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),PT=m("p")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),VT=m("span")({cursor:"pointer",padding:"0.25rem"}),zT=m("path")({".group:hover &":{fill:"#000"}}),FT=m("div")({display:"flex",maxHeight:"400px",flexDirection:"column",overflow:"auto"}),ZT=m("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))"}}),WT=m("span")({fontWeight:"600"}),GT=m("span")({fontSize:"12px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(20 134 92 / var(--tw-text-opacity))"}),UT=m("span").withConfig({displayName:"StringVariablesSelection___StyledSpan4",componentId:"sc-u8jk1j-0"})({borderLeftWidth:"1px"});const YT=(e="header")=>{let t=null;Ai.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=Ar.createRoot(a),t.render(r.jsx(CT,{builder:e}))),o===!1&&(i.classList.remove("with-opened-placements"),a.classList.remove("opened"),setTimeout(()=>{t&&(t.unmount(),t=null)},200)))})})},JT=(e="header")=>{let t=null;Ai.panel(e,function(n){const i=document.querySelector(`#sub-accordion-panel-${e}`);i!=null&&n.expanded.bind(function(o){const a=Li.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=Ar.createRoot(i),t.render(r.jsx(Qf,{builder:e,children:void 0}))),o===!1&&setTimeout(()=>{t!=null&&(t.unmount(),t=null)},500)})})},XT=(e,t)=>{let n=null;const i=e;Ai.panel(i,function(o){const a=document.querySelector(`#sub-accordion-panel-${i}`);a!=null&&o.expanded.bind(function(s){s&&n==null&&(n=Ar.createRoot(a),n.render(r.jsx(Qf,{builder:i,title:t,children:void 0}))),s===!1&&setTimeout(()=>{n!=null&&(n.unmount(),n=null)},500)})})},QT=()=>{let e=null;if(document.getElementById("customize-preview")==null)return;const n=document.getElementById("brandy-string-variables");n!=null&&(e=Ar.createRoot(n),e.render(r.jsx(AT,{})))};document.addEventListener("DOMContentLoaded",function(){BM(),["header","footer"].forEach(t=>{YT(t),JT(t)}),(window.brandyCustomizerData.extra_panels??[]).forEach(t=>{XT(t.id,t.title)}),QT()});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?vn(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=Li.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=Te.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&&vn(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){u1.setState(()=>({current:e})),Li.updateResponsiveControl("header",e),Li.updateResponsiveControl("footer",e)})})});