var kp=Object.defineProperty;var Ep=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fd=(e,t,n)=>(Ep(e,typeof t!="symbol"?t+"":t,n),n);/* empty css */const Li=window.wp.customize;var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Iu(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 Tu={exports:{}},xs={};/** * @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 Dp=window.React,$p=Symbol.for("react.element"),Hp=Symbol.for("react.fragment"),Mp=Object.prototype.hasOwnProperty,Ip=Dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tp={key:!0,ref:!0,__self:!0,__source:!0};function Lu(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)Mp.call(t,i)&&!Tp.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:$p,type:e,key:a,ref:s,props:o,_owner:Ip.current}}xs.Fragment=Hp;xs.jsx=Lu;xs.jsxs=Lu;Tu.exports=xs;var r=Tu.exports,Tr={},pd=window.ReactDOM;Tr.createRoot=pd.createRoot,Tr.hydrateRoot=pd.hydrateRoot;var Bt=function(){return Bt=Object.assign||function(t){for(var n,i=1,o=arguments.length;i0?mt(Ai,--fn):0,wi--,ft===10&&(wi=1,ys--),ft}function jn(){return ft=fn2||xc(ft)>3?"":" "}function Fp(e,t){for(;--t&&jn()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return _s(e,Ba()+(t<6&&Dr()==32&&jn()==32))}function bc(e){for(;jn();)switch(ft){case e:return fn;case 34:case 39:e!==34&&e!==39&&bc(ft);break;case 40:e===41&&bc(e);break;case 92:jn();break}return fn}function Zp(e,t){for(;jn()&&e+ft!==47+10;)if(e+ft===42+42&&Dr()===47)break;return"/*"+_s(t,fn-1)+"*"+n1(e===47?e:jn())}function Wp(e){for(;!xc(Dr());)jn();return _s(e,fn)}function Gp(e){return Vp(Pa("",null,null,null,[""],e=Pp(e),0,[0],e))}function Pa(e,t,n,i,o,a,s,l,c){for(var d=0,u=0,h=s,f=0,g=0,p=0,v=1,w=1,k=1,D=0,E="",_=o,H=a,x=i,y=E;w;)switch(p=D,D=jn()){case 40:if(p!=108&&mt(y,h-1)==58){Oa(y+=_e(gl(D),"&","&\f"),"&\f",Nu(d?l[d-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:y+=gl(D);break;case 9:case 10:case 13:case 32:y+=zp(p);break;case 92:y+=Fp(Ba()-1,7);continue;case 47:switch(Dr()){case 42:case 47:lo(Up(Zp(jn(),Ba()),t,n,c),c);break;default:y+="/"}break;case 123*v:l[d++]=Hn(y)*k;case 125*v:case 59:case 0:switch(D){case 0:case 125:w=0;case 59+u:k==-1&&(y=_e(y,/\f/g,"")),g>0&&Hn(y)-h&&lo(g>32?vd(y+";",i,n,h-1,c):vd(_e(y," ","")+";",i,n,h-2,c),c);break;case 59:y+=";";default:if(lo(x=md(y,t,n,d,u,o,l,E,_=[],H=[],h,a),a),D===123)if(u===0)Pa(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:Pa(e,x,x,i&&lo(md(e,x,x,0,0,o,l,E,o,_=[],h,H),H),o,H,h,l,i?_:H);break;default:Pa(y,x,x,x,[""],H,0,l,H)}}d=u=g=0,v=k=1,E=y="",h=s;break;case 58:h=1+Hn(y),g=p;default:if(v<1){if(D==123)--v;else if(D==125&&v++==0&&Bp()==125)continue}switch(y+=n1(D),D*v){case 38:k=u>0?1:(y+="\f",-1);break;case 44:l[d++]=(Hn(y)-1)*k,k=1;break;case 64:Dr()===45&&(y+=gl(jn())),f=Dr(),u=h=Hn(E=y+=Wp(Ba())),D++;break;case 45:p===45&&Hn(y)==2&&(v=0)}}return a}function md(e,t,n,i,o,a,s,l,c,d,u,h){for(var f=o-1,g=o===0?a:[""],p=Bu(g),v=0,w=0,k=0;v0?g[D]+" "+E:_e(E,/&\f/g,g[D])))&&(c[k++]=_);return Cs(e,t,n,o===0?bs:l,c,d,u,h)}function Up(e,t,n,i){return Cs(e,t,n,Au,n1(Op()),vi(e,2,-2),0,i)}function vd(e,t,n,i,o){return Cs(e,t,n,t1,vi(e,0,i),vi(e,i+1,-1),i,o)}function Vu(e,t,n){switch(Rp(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+Ge+e+e;case 5936:switch(mt(e,t+11)){case 114:return Re+e+Ge+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ge+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ge+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Re+e+Ge+e+e;case 6165:return Re+e+Ge+"flex-"+e+e;case 5187:return Re+e+_e(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return Re+e+Ge+"flex-item-"+_e(e,/flex-|-self/g,"")+(Fn(e,/flex-|baseline/)?"":Ge+"grid-row-"+_e(e,/flex-|-self/g,""))+e;case 4675:return Re+e+Ge+"flex-line-pack"+_e(e,/align-content|flex-|-self/g,"")+e;case 5548:return Re+e+Ge+_e(e,"shrink","negative")+e;case 5292:return Re+e+Ge+_e(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+_e(e,"-grow","")+Re+e+Ge+_e(e,"grow","positive")+e;case 4554:return Re+_e(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return _e(_e(_e(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return _e(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return _e(_e(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4200:if(!Fn(e,/flex-|baseline/))return Ge+"grid-column-align"+vi(e,t)+e;break;case 2592:case 3360:return Ge+_e(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Fn(i.props,/grid-\w+-end/)})?~Oa(e+(n=n[t].value),"span",0)?e:Ge+_e(e,"-start","")+e+Ge+"grid-row-span:"+(~Oa(n,"span",0)?Fn(n,/\d+/):+Fn(n,/\d+/)-+Fn(e,/\d+/))+";":Ge+_e(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Fn(i.props,/grid-\w+-start/)})?e:Ge+_e(_e(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _e(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(Hn(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+wo+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Oa(e,"stretch",0)?Vu(_e(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return _e(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,s,l,c,d){return Ge+o+":"+a+d+(s?Ge+o+"-span:"+(l?c:+c-+a)+d:"")+e});case 4949:if(mt(e,t+6)===121)return _e(e,":",":"+Re)+e;break;case 6444:switch(mt(e,mt(e,14)===45?18:11)){case 120:return _e(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Re+(mt(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ge+"$2box$3")+e;case 100:return _e(e,":",":"+Ge)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _e(e,"scroll-","scroll-snap-")+e}return e}function es(e,t){for(var n="",i=0;i-1&&!e.return)switch(e.type){case t1:e.return=Vu(e.value,e.length,n);return;case Ru:return es([ir(e,{value:_e(e.value,"@","@"+Re)})],i);case bs:if(e.length)return Np(n=e.props,function(o){switch(Fn(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ei(ir(e,{props:[_e(o,/:(read-\w+)/,":"+wo+"$1")]})),ei(ir(e,{props:[o]})),wc(e,{props:gd(n,i)});break;case"::placeholder":ei(ir(e,{props:[_e(o,/:(plac\w+)/,":"+Re+"input-$1")]})),ei(ir(e,{props:[_e(o,/:(plac\w+)/,":"+wo+"$1")]})),ei(ir(e,{props:[_e(o,/:(plac\w+)/,Ge+"input-$1")]})),ei(ir(e,{props:[o]})),wc(e,{props:gd(n,i)});break}return""})}}var qp={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 Io=window.React;window.React.useRef;window.React.useState;window.React.useMemo;window.React.useEffect;const Kp=window.React.useContext;window.React.useDebugValue;const e3=window.React.createElement;var xi=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",zu="active",Fu="data-styled-version",Ss="6.1.13",r1=`/*!sc*/ `,ts=typeof window<"u"&&"HTMLElement"in window,t3=!!(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),js=Object.freeze([]),bi=Object.freeze({});function n3(e,t,n){return n===void 0&&(n=bi),e.theme!==n.theme&&e.theme||t||n.theme}var Zu=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"]),r3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,i3=/(^-|-$)/g;function wd(e){return e.replace(r3,"-").replace(i3,"")}var o3=/(a)(d)/gi,xa=52,xd=function(e){return String.fromCharCode(e+(e>25?39:97))};function yc(e){var t,n="";for(t=Math.abs(e);t>xa;t=t/xa|0)n=xd(t%xa)+n;return(xd(t%xa)+n).replace(o3,"$1-$2")}var ml,Wu=5381,di=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Gu=function(e){return di(Wu,e)};function a3(e){return yc(Gu(e)>>>0)}function s3(e){return e.displayName||e.name||"Component"}function vl(e){return typeof e=="string"&&!0}var Uu=typeof Symbol=="function"&&Symbol.for,Yu=Uu?Symbol.for("react.memo"):60115,l3=Uu?Symbol.for("react.forward_ref"):60112,c3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},d3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ju={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u3=((ml={})[l3]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ml[Yu]=Ju,ml);function bd(e){return("type"in(t=e)&&t.type.$$typeof)===Yu?Ju:"$$typeof"in e?u3[e.$$typeof]:c3;var t}var h3=Object.defineProperty,f3=Object.getOwnPropertyNames,yd=Object.getOwnPropertySymbols,p3=Object.getOwnPropertyDescriptor,g3=Object.getPrototypeOf,Cd=Object.prototype;function Xu(e,t,n){if(typeof t!="string"){if(Cd){var i=g3(t);i&&i!==Cd&&Xu(e,i,n)}var o=f3(t);yd&&(o=o.concat(yd(t)));for(var a=bd(e),s=bd(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var m3=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(p).concat(v,'{content:"').concat(w,'"}').concat(r1)},u=0;u0?".".concat(t):f},u=c.slice();u.push(function(f){f.type===bs&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(E3,n).replace(i,d))}),s.prefix&&u.push(Qp),u.push(Yp);var h=function(f,g,p,v){g===void 0&&(g=""),p===void 0&&(p=""),v===void 0&&(v="&"),t=v,n=g,i=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(D3,""),k=Gp(p||g?"".concat(p," ").concat(g," { ").concat(w," }"):w);s.namespace&&(k=Ku(k,s.namespace));var D=[];return es(k,Jp(u.concat(Xp(function(E){return D.push(E)})))),D};return h.hash=c.length?c.reduce(function(f,g){return g.name||Yo(15),di(f,g.name)},Wu).toString():"",h}var H3=new qu,_c=$3(),e2=Io.createContext({shouldForwardProp:void 0,styleSheet:H3,stylis:_c});e2.Consumer;Io.createContext(void 0);function kd(){return Kp(e2)}var M3=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=_c);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,o1(this,function(){throw Yo(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=_c),this.name+t.hash},e}(),I3=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,g)||n.insertRules(this.componentId,g,i(d,".".concat(g),void 0,this.componentId)),o=Er(o,g)}}return o},e}(),r2=Io.createContext(void 0);r2.Consumer;var wl={};function R3(e,t,n){var i=i1(e),o=e,a=!vl(e),s=t.attrs,l=s===void 0?js:s,c=t.componentId,d=c===void 0?function(_,H){var x=typeof _!="string"?"sc":wd(_);wl[x]=(wl[x]||0)+1;var y="".concat(x,"-").concat(a3(Ss+x+wl[x]));return H?"".concat(H,"-").concat(y):y}(t.displayName,t.parentComponentId):c,u=t.displayName,h=u===void 0?function(_){return vl(_)?"styled.".concat(_):"Styled(".concat(s3(_),")")}(e):u,f=t.displayName&&t.componentId?"".concat(wd(t.displayName),"-").concat(t.componentId):t.componentId||d,g=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,p=t.shouldForwardProp;if(i&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;p=function(_,H){return v(_,H)&&w(_,H)}}else p=v}var k=new A3(n,f,i?o.componentStyle:void 0);function D(_,H){return function(x,y,N){var B=x.attrs,S=x.componentStyle,A=x.defaultProps,$=x.foldedComponentIds,P=x.styledComponentId,z=x.target,M=Io.useContext(r2),V=kd(),R=x.shouldForwardProp||V.shouldForwardProp,Z=n3(y,M,A)||bi,L=function(F,ee,de){for(var re,te=Bt(Bt({},ee),{className:void 0,theme:de}),be=0;be-1}function pg(e,t){var n=this.__data__,i=Es(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ri.prototype.clear=dg;Ri.prototype.delete=ug;Ri.prototype.get=hg;Ri.prototype.has=fg;Ri.prototype.set=pg;function Pr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&ef2(e)&&"desktop"in e,Ld=(e,t)=>{const n={};return Ne(n,e,t),n},Ad=e=>{let t;const n=new Set,i=(u,h)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const g=t;t=h??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(p=>p(t,g))}},o=()=>t,c={setState:i,getState:o,getInitialState:()=>d,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{n.clear()}},d=t=e(i,o,c);return c},Bg=e=>e?Ad(e):Ad;var p2={exports:{}},g2={},m2={exports:{}},v2={};/** * @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 Pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vg=typeof Object.is=="function"?Object.is:Pg,zg=_i.useState,Fg=_i.useEffect,Zg=_i.useLayoutEffect,Wg=_i.useDebugValue;function Gg(e,t){var n=t(),i=zg({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return Zg(function(){o.value=n,o.getSnapshot=t,bl(o)&&a({inst:o})},[e,n,t]),Fg(function(){return bl(o)&&a({inst:o}),e(function(){bl(o)&&a({inst:o})})},[e]),Wg(n),n}function bl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vg(e,n)}catch{return!0}}function Ug(e,t){return t()}var Yg=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ug:Gg;v2.useSyncExternalStore=_i.useSyncExternalStore!==void 0?_i.useSyncExternalStore:Yg;m2.exports=v2;var Jg=m2.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 $s=window.React,Xg=Jg;function Qg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qg=typeof Object.is=="function"?Object.is:Qg,Kg=Xg.useSyncExternalStore,e5=$s.useRef,t5=$s.useEffect,n5=$s.useMemo,r5=$s.useDebugValue;g2.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var a=e5(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=n5(function(){function c(g){if(!d){if(d=!0,u=g,g=i(g),o!==void 0&&s.hasValue){var p=s.value;if(o(p,g))return h=p}return h=g}if(p=h,qg(u,g))return p;var v=i(g);return o!==void 0&&o(p,v)?p:(u=g,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=Kg(e,a[0],a[1]);return t5(function(){s.hasValue=!0,s.value=l},[l]),r5(l),l};p2.exports=g2;var i5=p2.exports;const o5=Xt(i5),a5=window.React,{useDebugValue:s5}=a5,{useSyncExternalStoreWithSelector:l5}=o5;const c5=e=>e;function d5(e,t=c5,n){const i=l5(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s5(i),i}const Rd=e=>{const t=typeof e=="function"?Bg(e):e,n=(i,o)=>d5(t,i,o);return Object.assign(n,t),n},Hs=e=>e?Rd(e):Rd,c1=Hs()(e=>({current:"desktop",changeCurrent:t=>{e(()=>({current:t}))}})),u5=window.React.useEffect;function ye(){const{current:e}=c1();return u5(()=>{},[]),{current:e,changeDevice:n=>{Li.previewedDevice(n)}}}function w2({template:e,row:t,col:n=null,addId:i,lastPush:o=!0,device:a="desktop"}){return new Promise(s=>{const l=e.placements[Ye(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 x2({template:e,row:t,col:n,removeId:i,device:o="desktop"}){return new Promise(a=>{const s=e.placements[Ye(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 h5=e=>e==="header",Ye=(e="desktop")=>e==="tablet"?"mobile":e,b2=(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)]},Se=(e,t)=>{if(Ci(e)){const n=e.desktop;return t==="mobile"?e.mobile??e.tablet??n:e[t]??n}return e},f5=()=>document.querySelector("#customize-preview iframe"),Ao=(e,t=0)=>{setTimeout(()=>{e()},t)},y2=()=>{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")},C2=()=>{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")},Ms=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 p5="Expected a function",_2="__lodash_hash_undefined__",S2=1/0,g5="[object Function]",m5="[object GeneratorFunction]",v5="[object Symbol]",w5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x5=/^\w*$/,b5=/^\./,y5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C5=/[\\^$.*+?()[\]{}|]/g,_5=/\\(\\)?/g,S5=/^\[object .+?Constructor\]$/,j5=typeof ot=="object"&&ot&&ot.Object===Object&&ot,k5=typeof self=="object"&&self&&self.Object===Object&&self,d1=j5||k5||Function("return this")();function E5(e,t){return e==null?void 0:e[t]}function D5(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var $5=Array.prototype,H5=Function.prototype,j2=Object.prototype,yl=d1["__core-js_shared__"],Nd=function(){var e=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),k2=H5.toString,u1=j2.hasOwnProperty,E2=j2.toString,M5=RegExp("^"+k2.call(u1).replace(C5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Od=d1.Symbol,I5=$5.splice,T5=D2(d1,"Map"),Ro=D2(Object,"create"),Bd=Od?Od.prototype:void 0,Pd=Bd?Bd.toString:void 0;function Ar(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function F5(e,t){var n=this.__data__,i=Is(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ni.prototype.clear=B5;Ni.prototype.delete=P5;Ni.prototype.get=V5;Ni.prototype.has=z5;Ni.prototype.set=F5;function Vr(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(p=>p==="mobile"||p==="tablet"?"desktop":p)),f=me(t,d.value_path.map(p=>p==="mobile"?"tablet":p));u==null&&(u=f??u),u==null&&(u=h??u),u=Se(u,n),d.fallback_value!=null&&!u&&(u=d.fallback_value),M2(u)&&(u=Ms(u)),d.type==="switcher"&&d.enabled_value!=null&&d.disabled_value!=null&&(u?u=d.enabled_value:u=d.disabled_value);const g=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(g).addClass(d.enabled_class??""),ti(g).removeClass(d.disabled_class)):(ti(g).removeClass(d.enabled_class),ti(g).addClass(d.disabled_class??"")):ti(g).attr(d.name,d.name==="class"?`${d.default_class} ${u}`:u);return}ti(g).attr(d.name,u)})})})})},wm=window.jQuery,xm=({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(g=>g==="mobile"||g==="tablet"?"desktop":g));h==null&&f!=null&&(h=f),M2(h)&&(h=Ms(h)),wm(u).html(Ci(h)?Se(h,n):h)})})})})},bm=(e,t="desktop",n)=>{const i=[];if(e.font_style){const l=Se(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=Se(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=Se(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=Se(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:Se(e.transform,t),selector:n}):i.push({name:"text-transform",value:"auto",selector:n}),e.decoration!=null?i.push({name:"text-decoration",value:Se(e.decoration,t),selector:n}):i.push({name:"text-decoration",value:"none",selector:n}),i},yt=e=>`${e.value}${e.unit}`,ym=(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}`,Cm=(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},_m=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,T2=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)"}),_m(t)},Cl=window.jQuery,kn=({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,...Sm(d,t,n)])})})}),s.length>0){const l=oe(_t(e,i));s.forEach(c=>{if(c.selector){const d=Cl(l).find(c.selector);d&&Cl(d).css(c.name,c.value)}else Cl(l).css(c.name,c.value)})}};function Sm(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=jm;break;case"dimension":h=km;break;case"typography":h=Em;break;case"spacing":h=Dm;break;case"background":h=$m;break;case"switcher":h=Hm;break;case"box_shadow":h=Mm;break;case"custom_variables":h=Im;break;default:h=Tm}h!==null&&(i=[...i,...h(t,{variableName:s,valuePath:a,enabledValue:l,disabledValue:c,mappingVariables:d,selector:u??""},n)])}),i}function jm(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:Se(s,n),selector:t.selector})}),i)}function km(e,t,n){const i=[],o=me(e,t.valuePath);return o==null?[]:(i.push({name:`${t.variableName}`,value:yt(Se(o,n)),selector:t.selector}),i)}function Em(e,t,n){let i=me(e,t.valuePath);return i==null&&(i={}),bm(i,n,t.selector)}function Dm(e,t,n){const i=me(e,t.valuePath);if(i==null)return[];const o=[];return o.push({name:`${t.variableName}`,value:Jo(Se(i,n)),selector:t.selector}),o.push(...Cm(t.variableName,Se(i,n),t.selector)),o}function $m(e,t,n){const i=me(e,["background"]);return i==null?[]:ym(i,n,t.variableName,t.selector)}function Hm(e,t,n){const i=me(e,t.valuePath);if(i==null)return[];const o=Se(i,n),a=[];return a.push({name:`${t.variableName}`,value:o?t.enabledValue:t.disabledValue,selector:t.selector}),a}function Mm(e,t,n){const i=me(e,t.valuePath);if(i==null)return[];const o=Se(i,n),a=[];return a.push({name:t.variableName,value:T2(o),selector:t.selector}),a}function Im(e,t,n){if(t.mappingVariables==null){let s=me(e,t.valuePath);return s==null?[]:(s=Se(s,n),[{name:t.variableName,value:s,selector:t.selector}])}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 Tm(e,t,n){let i=me(e,t.valuePath);if(i==null)return[];i=Se(i,n);const o=[];return o.push({name:`${t.variableName}`,value:i.toString(),selector:t.selector}),o}const Ls=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))"}}]),p1=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"}}),L2=m.div.withConfig({displayName:"Layoutsstyled__StyledSectionLayout",componentId:"sc-o6y3t-3"})({height:"fit-content"});var A2={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;sh5(e)?Le:Ie,[e])}const Rm=window.React.useMemo,Nm=ue([""," .brandy-radio-item{"," &:first-child{border-start-start-radius:4px;border-end-start-radius:4px;}&:last-child{border-start-end-radius:4px;border-end-end-radius:4px;border-right-width:1px !important;}}"],{display:"flex",width:"100%"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))"}),Om={selected:{multiple:ue([""," & + *{","}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:ue([""," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}&.selected + *{","}&.selected{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity)) !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=Rm(()=>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(Bm,{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(Pm,{className:je(["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?Om.selected[o?"multiple":"single"]:"",u&&o&&ue([""," &.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 Bm=m("div")`${Nm}`,Pm=m("span").withConfig({displayName:"RadioGroup___StyledSpan",componentId:"sc-60p899-0"})(["",""],e=>e.$_css2);const Vm=window.React.useMemo;function An(e){const{current:t}=ye(),n=Vm(()=>Se(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??[ue(['&.selected{border:1px solid #000;svg{*[fill]:not([fill="white"]){fill:#000 !important;}*[stroke]:not([stroke="white"]){stroke:#000 !important;}}}&:hover{svg{*[fill]:not([fill="white"]){fill:#000 !important;}*[stroke]:not([stroke="white"]){stroke:#000 !important;}}}svg *{transition:all ease-in-out 0.1s;}'])]})]})}const Vd=window.React;var zd=function(t){return t.reduce(function(n,i){var o=i[0],a=i[1];return n[o]=a,n},{})},Fd=typeof window<"u"&&window.document&&window.document.createElement?Vd.useLayoutEffect:Vd.useEffect,Pt="top",pn="bottom",gn="right",Vt="left",g1="auto",Qo=[Pt,pn,gn,Vt],Si="start",No="end",zm="clippingParents",R2="viewport",Qi="popper",Fm="reference",Zd=Qo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+No])},[]),N2=[].concat(Qo,[g1]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+No])},[]),Zm="beforeRead",Wm="read",Gm="afterRead",Um="beforeMain",Ym="main",Jm="afterMain",Xm="beforeWrite",Qm="write",qm="afterWrite",Km=[Zm,Wm,Gm,Um,Ym,Jm,Xm,Qm,qm];function Tn(e){return e?(e.nodeName||"").toLowerCase():null}function Ut(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rr(e){var t=Ut(e).Element;return e instanceof t||e instanceof Element}function hn(e){var t=Ut(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function m1(e){if(typeof ShadowRoot>"u")return!1;var t=Ut(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function e4(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)||!Tn(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 t4(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)||!Tn(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const n4={name:"applyStyles",enabled:!0,phase:"write",fn:e4,effect:t4,requires:["computeStyles"]};function Mn(e){return e.split("-")[0]}var Hr=Math.max,is=Math.min,ji=Math.round;function jc(){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 O2(){return!/^((?!chrome|android).)*safari/i.test(jc())}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=Rr(e)?Ut(e):window,l=s.visualViewport,c=!O2()&&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 v1(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 B2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&m1(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Un(e){return Ut(e).getComputedStyle(e)}function r4(e){return["table","td","th"].indexOf(Tn(e))>=0}function ur(e){return((Rr(e)?e.ownerDocument:e.document)||window.document).documentElement}function As(e){return Tn(e)==="html"?e:e.assignedSlot||e.parentNode||(m1(e)?e.host:null)||ur(e)}function Wd(e){return!hn(e)||Un(e).position==="fixed"?null:e.offsetParent}function i4(e){var t=/firefox/i.test(jc()),n=/Trident/i.test(jc());if(n&&hn(e)){var i=Un(e);if(i.position==="fixed")return null}var o=As(e);for(m1(o)&&(o=o.host);hn(o)&&["html","body"].indexOf(Tn(o))<0;){var a=Un(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=Ut(e),n=Wd(e);n&&r4(n)&&Un(n).position==="static";)n=Wd(n);return n&&(Tn(n)==="html"||Tn(n)==="body"&&Un(n).position==="static")?t:n||i4(e)||t}function w1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,n){return Hr(e,is(t,n))}function o4(e,t,n){var i=xo(e,t,n);return i>n?n:i}function P2(){return{top:0,right:0,bottom:0,left:0}}function V2(e){return Object.assign({},P2(),e)}function z2(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var a4=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,V2(typeof t!="number"?t:z2(t,Qo))};function s4(e){var t,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Mn(n.placement),c=w1(l),d=[Vt,gn].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var h=a4(o.padding,n),f=v1(a),g=c==="y"?Pt:Vt,p=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),D=k?c==="y"?k.clientHeight||0:k.clientWidth||0:0,E=v/2-w/2,_=h[g],H=D-f[u]-h[p],x=D/2-f[u]/2+E,y=xo(_,x,H),N=c;n.modifiersData[i]=(t={},t[N]=y,t.centerOffset=y-x,t)}}function l4(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)||B2(t.elements.popper,o)&&(t.elements.arrow=o))}const c4={name:"arrow",enabled:!0,phase:"main",fn:s4,effect:l4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ei(e){return e.split("-")[1]}var d4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function u4(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 Gd(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=s.x,g=f===void 0?0:f,p=s.y,v=p===void 0?0:p,w=typeof u=="function"?u({x:g,y:v}):{x:g,y:v};g=w.x,v=w.y;var k=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),E=Vt,_=Pt,H=window;if(d){var x=qo(n),y="clientHeight",N="clientWidth";if(x===Ut(n)&&(x=ur(n),Un(x).position!=="static"&&l==="absolute"&&(y="scrollHeight",N="scrollWidth")),x=x,o===Pt||(o===Vt||o===gn)&&a===No){_=pn;var B=h&&x===H&&H.visualViewport?H.visualViewport.height:x[y];v-=B-i.height,v*=c?1:-1}if(o===Vt||(o===Pt||o===pn)&&a===No){E=gn;var S=h&&x===H&&H.visualViewport?H.visualViewport.width:x[N];g-=S-i.width,g*=c?1:-1}}var A=Object.assign({position:l},d&&d4),$=u===!0?u4({x:g,y:v},Ut(n)):{x:g,y:v};if(g=$.x,v=$.y,c){var P;return Object.assign({},A,(P={},P[_]=D?"0":"",P[E]=k?"0":"",P.transform=(H.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",P))}return Object.assign({},A,(t={},t[_]=D?v+"px":"",t[E]=k?g+"px":"",t.transform="",t))}function h4(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:Mn(t.placement),variation:Ei(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,Gd(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,Gd(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 f4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:h4,data:{}};var ya={passive:!0};function p4(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=Ut(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,ya)}),l&&c.addEventListener("resize",n.update,ya),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ya)}),l&&c.removeEventListener("resize",n.update,ya)}}const g4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:p4,data:{}};var m4={left:"right",right:"left",bottom:"top",top:"bottom"};function Fa(e){return e.replace(/left|right|bottom|top/g,function(t){return m4[t]})}var v4={start:"end",end:"start"};function Ud(e){return e.replace(/start|end/g,function(t){return v4[t]})}function x1(e){var t=Ut(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function b1(e){return ki(ur(e)).left+x1(e).scrollLeft}function w4(e,t){var n=Ut(e),i=ur(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=O2();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+b1(e),y:c}}function x4(e){var t,n=ur(e),i=x1(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Hr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Hr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+b1(e),c=-i.scrollTop;return Un(o||n).direction==="rtl"&&(l+=Hr(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function y1(e){var t=Un(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function F2(e){return["html","body","#document"].indexOf(Tn(e))>=0?e.ownerDocument.body:hn(e)&&y1(e)?e:F2(As(e))}function bo(e,t){var n;t===void 0&&(t=[]);var i=F2(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Ut(i),s=o?[a].concat(a.visualViewport||[],y1(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(bo(As(s)))}function kc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b4(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 Yd(e,t,n){return t===R2?kc(w4(e,n)):Rr(t)?b4(t,n):kc(x4(ur(e)))}function y4(e){var t=bo(As(e)),n=["absolute","fixed"].indexOf(Un(e).position)>=0,i=n&&hn(e)?qo(e):e;return Rr(i)?t.filter(function(o){return Rr(o)&&B2(o,i)&&Tn(o)!=="body"}):[]}function C4(e,t,n,i){var o=t==="clippingParents"?y4(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var u=Yd(e,d,i);return c.top=Hr(u.top,c.top),c.right=is(u.right,c.right),c.bottom=is(u.bottom,c.bottom),c.left=Hr(u.left,c.left),c},Yd(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 Z2(e){var t=e.reference,n=e.element,i=e.placement,o=i?Mn(i):null,a=i?Ei(i):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Pt: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 Vt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?w1(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 No: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?zm:l,d=n.rootBoundary,u=d===void 0?R2:d,h=n.elementContext,f=h===void 0?Qi:h,g=n.altBoundary,p=g===void 0?!1:g,v=n.padding,w=v===void 0?0:v,k=V2(typeof w!="number"?w:z2(w,Qo)),D=f===Qi?Fm:Qi,E=e.rects.popper,_=e.elements[p?D:f],H=C4(Rr(_)?_:_.contextElement||ur(e.elements.popper),c,u,s),x=ki(e.elements.reference),y=Z2({reference:x,element:E,strategy:"absolute",placement:o}),N=kc(Object.assign({},E,y)),B=f===Qi?N:x,S={top:H.top-B.top+k.top,bottom:B.bottom-H.bottom+k.bottom,left:H.left-B.left+k.left,right:B.right-H.right+k.right},A=e.modifiersData.offset;if(f===Qi&&A){var $=A[o];Object.keys(S).forEach(function(P){var z=[gn,pn].indexOf(P)>=0?1:-1,M=[Pt,pn].indexOf(P)>=0?"y":"x";S[P]+=$[M]*z})}return S}function _4(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?N2:c,u=Ei(i),h=u?l?Zd:Zd.filter(function(p){return Ei(p)===u}):Qo,f=h.filter(function(p){return d.indexOf(p)>=0});f.length===0&&(f=h);var g=f.reduce(function(p,v){return p[v]=Oo(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[Mn(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}function S4(e){if(Mn(e)===g1)return[];var t=Fa(e);return[Ud(e),t,Ud(t)]}function j4(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,v=n.allowedAutoPlacements,w=t.options.placement,k=Mn(w),D=k===w,E=c||(D||!p?[Fa(w)]:S4(w)),_=[w].concat(E).reduce(function(he,F){return he.concat(Mn(F)===g1?_4(t,{placement:F,boundary:u,rootBoundary:h,padding:d,flipVariations:p,allowedAutoPlacements:v}):F)},[]),H=t.rects.reference,x=t.rects.popper,y=new Map,N=!0,B=_[0],S=0;S<_.length;S++){var A=_[S],$=Mn(A),P=Ei(A)===Si,z=[Pt,pn].indexOf($)>=0,M=z?"width":"height",V=Oo(t,{placement:A,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),R=z?P?gn:Vt:P?pn:Pt;H[M]>x[M]&&(R=Fa(R));var Z=Fa(R),L=[];if(a&&L.push(V[$]<=0),l&&L.push(V[R]<=0,V[Z]<=0),L.every(function(he){return he})){B=A,N=!1;break}y.set(A,L)}if(N)for(var W=p?3:1,J=function(F){var ee=_.find(function(de){var re=y.get(de);if(re)return re.slice(0,F).every(function(te){return te})});if(ee)return B=ee,"break"},Y=W;Y>0;Y--){var ce=J(Y);if(ce==="break")break}t.placement!==B&&(t.modifiersData[i]._skip=!0,t.placement=B,t.reset=!0)}}const k4={name:"flip",enabled:!0,phase:"main",fn:j4,requiresIfExists:["offset"],data:{_skip:!1}};function Jd(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 Xd(e){return[Pt,gn,pn,Vt].some(function(t){return e[t]>=0})}function E4(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=Jd(s,i),d=Jd(l,o,a),u=Xd(c),h=Xd(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 D4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:E4};function $4(e,t,n){var i=Mn(e),o=[Vt,Pt].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,[Vt,gn].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function H4(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=N2.reduce(function(u,h){return u[h]=$4(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 M4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H4};function I4(e){var t=e.state,n=e.name;t.modifiersData[n]=Z2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const T4={name:"popperOffsets",enabled:!0,phase:"read",fn:I4,data:{}};function L4(e){return e==="x"?"y":"x"}function A4(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,g=f===void 0?!0:f,p=n.tetherOffset,v=p===void 0?0:p,w=Oo(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),k=Mn(t.placement),D=Ei(t.placement),E=!D,_=w1(k),H=L4(_),x=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,B=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,S=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(x){if(a){var P,z=_==="y"?Pt:Vt,M=_==="y"?pn:gn,V=_==="y"?"height":"width",R=x[_],Z=R+w[z],L=R-w[M],W=g?-N[V]/2:0,J=D===Si?y[V]:N[V],Y=D===Si?-N[V]:-y[V],ce=t.elements.arrow,he=g&&ce?v1(ce):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:P2(),ee=F[z],de=F[M],re=xo(0,y[V],he[V]),te=E?y[V]/2-W-re-ee-S.mainAxis:J-re-ee-S.mainAxis,be=E?-y[V]/2+W+re+de+S.mainAxis:Y+re+de+S.mainAxis,Be=t.elements.arrow&&qo(t.elements.arrow),Ae=Be?_==="y"?Be.clientTop||0:Be.clientLeft||0:0,b=(P=A==null?void 0:A[_])!=null?P:0,T=R+te-b-Ae,j=R+be-b,G=xo(g?is(Z,T):Z,R,g?Hr(L,j):L);x[_]=G,$[_]=G-R}if(l){var Q,K=_==="x"?Pt:Vt,pe=_==="x"?pn:gn,le=x[H],Me=H==="y"?"height":"width",Ze=le+w[K],Kt=le-w[pe],tt=[Pt,Vt].indexOf(k)!==-1,Yr=(Q=A==null?void 0:A[H])!=null?Q:0,fr=tt?Ze:le-y[Me]-N[Me]-Yr+S.altAxis,en=tt?le+y[Me]+N[Me]-Yr-S.altAxis:Kt,Nn=g&&tt?o4(fr,le,en):xo(g?fr:Ze,le,g?en:Kt);x[H]=Nn,$[H]=Nn-le}t.modifiersData[i]=$}}const R4={name:"preventOverflow",enabled:!0,phase:"main",fn:A4,requiresIfExists:["offset"]};function N4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function O4(e){return e===Ut(e)||!hn(e)?x1(e):N4(e)}function B4(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 P4(e,t,n){n===void 0&&(n=!1);var i=hn(t),o=hn(t)&&B4(t),a=ur(t),s=ki(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((Tn(t)!=="body"||y1(a))&&(l=O4(t)),hn(t)?(c=ki(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=b1(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function V4(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 z4(e){var t=V4(e);return Km.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function F4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Z4(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 Qd={placement:"bottom",modifiers:[],strategy:"absolute"};function qd(){for(var e=arguments.length,t=new Array(e),n=0;n"u"?ot:window,Ca=["moz","webkit"],pi="AnimationFrame",Di=Wn["request"+pi],Bo=Wn["cancel"+pi]||Wn["cancelRequest"+pi];for(var Ki=0;!Di&&Ki=0;o--){var a=e0[o]+i;if(a in n)return a}return!1},s8=u8,l8=/\s/,c8=/(_|-|\.|:)/,d8=/([a-z][A-Z]|[A-Z][a-z])/;function u8(e){return l8.test(e)?e.toLowerCase():c8.test(e)?(f8(e)||e).toLowerCase():d8.test(e)?g8(e).toLowerCase():e.toLowerCase()}var h8=/[\W_]+(.|$)/g;function f8(e){return e.replace(h8,function(t,n){return n?" "+n:""})}var p8=/(.)([A-Z]+)/g;function g8(e){return e.replace(p8,function(t,n,i){return n+" "+i.toLowerCase().split("").join(" ")})}var m8=s8,v8=w8;function w8(e){return m8(e).replace(/[\W_]+(.|$)/g,function(t,n){return n?" "+n:""}).trim()}var x8=v8,b8=y8;function y8(e){return x8(e).replace(/\s(\w)/g,function(t,n){return n.toUpperCase()})}var C8={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},_8=function(e,t){return typeof t=="number"&&!C8[e]?t+"px":t},S8=a8,j8=b8,Wa={float:"cssFloat"},k8=_8;function os(e,t,n){var i=Wa[t];if(typeof i>"u"&&(i=D8(t)),i){if(n===void 0)return e.style[i];e.style[i]=k8(i,n)}}function E8(e,t){for(var n in t)t.hasOwnProperty(n)&&os(e,n,t[n])}function D8(e){var t=j8(e),n=S8(t);return Wa[t]=Wa[e]=Wa[n]=n,n}function U2(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:E8(arguments[0],arguments[1]):os(arguments[0],arguments[1],arguments[2])}Ns.exports=U2;Ns.exports.set=U2;Ns.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(n,i){return n[i]=os(e,i||""),n},{}):os(e,t||"")};var Y2=Ns.exports,J2={exports:{}},$8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",H8=$8,M8=H8;function X2(){}function Q2(){}Q2.resetWarningCache=X2;var I8=function(){function e(i,o,a,s,l,c){if(c!==M8){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:Q2,resetWarningCache:X2};return n.PropTypes=n,n};J2.exports=I8();var T8=J2.exports,q2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}})(q2);var K2={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=Y2,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}})(K2);var eh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}})(eh);var th={};(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)}})(th);var nh={};(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)}})(nh);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 cr=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function R8(e){return Ko.default.createElement("div",e)}function N8(e){var t=e.style,n=Os(e,["style"]),i=cr({},t,{right:2,bottom:2,left:2,borderRadius:3});return Ko.default.createElement("div",cr({style:i},n))}function O8(e){var t=e.style,n=Os(e,["style"]),i=cr({},t,{right:2,bottom:2,top:2,borderRadius:3});return Ko.default.createElement("div",cr({style:i},n))}function B8(e){var t=e.style,n=Os(e,["style"]),i=cr({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Ko.default.createElement("div",cr({style:i},n))}function P8(e){var t=e.style,n=Os(e,["style"]),i=cr({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return Ko.default.createElement("div",cr({style:i},n))}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function($){for(var P=1;P=0||Object.prototype.hasOwnProperty.call($,M)&&(z[M]=$[M]);return z}function N($,P){if(!($ instanceof P))throw new TypeError("Cannot call a class as a function")}function B($,P){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:$}function S($,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);$.prototype=Object.create(P&&P.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf($,P):$.__proto__=P)}var A=function($){S(P,$);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,g.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,g.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,g.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,de=-he+Y-ee;this.view.scrollTop=this.getScrollTopForOffset(de)}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,g.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)"},de=L.scrollTop,re=L.clientHeight,te=L.scrollHeight,be=(0,E.default)(this.trackVertical),Be=this.getThumbVerticalHeight(),Ae=de/(te-re)*(be-Be),b={height:Be,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,g.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,de=R.autoHeight,re=R.autoHeightMin,te=R.autoHeightMax,be=R.style,Be=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,de&&t({},_.containerStyleAutoHeight,{minHeight:re,maxHeight:te}),be),j=t({},_.viewStyleDefault,{marginRight:V?-V:0,marginBottom:V?-V:0},de&&t({},_.viewStyleAutoHeight,{minHeight:(0,h.default)(re)?"calc("+re+" + "+V+"px)":re+V,maxHeight:(0,h.default)(te)?"calc("+te+" + "+V+"px)":te+V}),de&&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}},Be),(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}})(G2);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=G2,n=i(t);function i(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default})(W2);const V8=Xt(W2);function Yn({children:e,...t}){return r.jsx(V8,{...t,...window.brandyCustomizerData.rtl?{renderView:n=>r.jsx("div",{...n,style:{...n.style,marginLeft:n.style.marginRight,marginRight:0}})}:{},children:e})}const z8=window.React.useEffect,F8=window.React.useRef,jl=window.React.useState;function Te({title:e="",children:t,style:n={}}){const[i,o]=jl(null),[a,s]=jl(null),{styles:l,attributes:c}=Rn(i,a),[d,u]=jl(!1),h=()=>{u(!0)},f=()=>{u(!1)};if(!e)return!1;const g=F8(null);return z8(()=>{setTimeout(()=>{o(g.current)},300)},[g.current]),r.jsxs("div",{className:"brandy-with-tooltip",children:[r.jsx("div",{className:"brandy-tooltip-activator",onMouseMove:()=>{h()},onMouseLeave:()=>{f()},ref:g,children:t}),r.jsx(Z8,{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 Z8=m("div").withConfig({displayName:"Tooltip___StyledDiv",componentId:"sc-gmfqn3-0"})(["",""],e=>e.$_css);const W8=window.React.useEffect,kl=window.React.useMemo,El=window.React.useState,G8=38,rh=5,ih=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}=Rn(a,l),[h,f]=El(!1),g=kl(()=>(a==null?void 0:a.getBoundingClientRect().width)??0,[a]),p=()=>{f(E=>!E)},v=()=>{f(!1)},w=kl(()=>e.find(_=>_.value===t),[e,t]),k=E=>{const _=E.currentTarget.dataset.value;n(_??"")};W8(()=>{const E=_=>{(a==null||l==null)&&v(),!(a!=null&&a.contains(_.target))&&!(l!=null&&l.contains(_.target))&&v()};return window.jQuery(document).on("click","body",E),()=>{window.jQuery(document).off("click","body",E)}},[a,l]);const D=kl(()=>{if(o)return o;const E=Math.min(e.length,4);return E*G8+(E-1)*rh+ih*2},[e,o]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:je(["brandy-select__selector","w-full h-[40px] p-[12px] bg-gutenberg-white","flex justify-between items-center","border border-brandy-border-light","rounded-base cursor-pointer"]),ref:s,onClick:p,children:[r.jsx("span",{className:"brandy-select__selection-item min-h-[15px] text-brandy-text overflow-hidden text-ellipsis whitespace-nowrap",children:(w==null?void 0:w.label)??""}),r.jsx("span",{className:"brandy-select__arrow",children:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 8L10 12L6 8",stroke:window.brandyCustomizerData.colors.icon.normal,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),h&&r.jsx("div",{ref:c,style:{...d.popper,width:g,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...u.popper,className:je(["my-2 z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Yn,{autoHide:!0,className:"bg-gutenberg-white",style:{height:D},children:r.jsx(U8,{className:"flex flex-col",children:e.map(E=>r.jsxs(Y8,{className:"brandy-select__option-content","data-value":E.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===E.value&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity)) !important"}],children:[r.jsx(J8,{children:(E.label??"").toString().length>30?r.jsx(Te,{title:E.label,children:E.label}):E.label}),E.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"})})]},E.value))})})})]})}var U8=m("div")` padding: ${ih}px; gap: ${rh}px; `,Y8=m("div")`${e=>e.$_css}`,J8=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 X8=window.React,Q8=window.React.useEffect,q8=window.React.useState,C1=X8.forwardRef(({id:e,className:t,checked:n=!1,disabled:i=!1,size:o="sm",onChange:a=()=>!1},s)=>{const[l,c]=q8(!1),d=u=>{u.preventDefault(),u.stopPropagation(),a(!n)};return Q8(()=>{const u=()=>{c(!1)};return window.addEventListener("mouseup",u),()=>{window.removeEventListener("mouseup",u)}},[]),r.jsx("button",{id:e,type:"button",className:je(["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,Mr=window.React.useRef,K8=window.React.useMemo,as=window.React.useEffect,e6=window.React.useState,t6=window.React.useCallback,n6=window.React.useLayoutEffect;function Bs(){return(Bs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function Ec(e){var t=Mr(e),n=Mr(function(i){t.current&&t.current(i)});return t.current=e,n.current}var $i=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(t0(o.current,w,l.current)):v(!1)},p=function(){return v(!1)};function v(w){var k=c.current,D=Dc(o.current),E=w?D.addEventListener:D.removeEventListener;E(k?"touchmove":"mousemove",g),E(k?"touchend":"mouseup",p)}return[function(w){var k=w.nativeEvent,D=o.current;if(D&&(n0(k),!function(_,H){return H&&!yo(_)}(k,c.current)&&D)){if(yo(k)){c.current=!0;var E=k.changedTouches||[];E.length&&(l.current=E[0].identifier)}D.focus(),a(t0(D,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 as(function(){return f},[f]),dt.createElement("div",Bs({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),Ps=function(e){return e.filter(Boolean).join(" ")},S1=function(e){var t=e.color,n=e.left,i=e.top,o=i===void 0?.5:i,a=Ps(["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},r6=function(e){return s6($c(e))},$c=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}},i6=function(e){return a6(o6(e))},ah=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)}},Hc=function(e){var t=ah(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Dl=function(e){var t=ah(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},o6=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)}},_a=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},a6=function(e){var t=e.r,n=e.g,i=e.b,o=e.a,a=o<1?_a(vt(255*o)):"";return"#"+_a(t)+_a(n)+_a(i)+a},s6=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}},l6=dt.memo(function(e){var t=e.hue,n=e.onChange,i=Ps(["react-colorful__hue",e.className]);return dt.createElement("div",{className:i},dt.createElement(_1,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:$i(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":vt(t),"aria-valuemax":"360","aria-valuemin":"0"},dt.createElement(S1,{className:"react-colorful__hue-pointer",left:t/360,color:Hc({h:t,s:100,v:100,a:1})})))}),c6=dt.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:Hc({h:t.h,s:100,v:100,a:1})};return dt.createElement("div",{className:"react-colorful__saturation",style:i},dt.createElement(_1,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:$i(t.s+100*o.left,0,100),v:$i(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+vt(t.s)+"%, Brightness "+vt(t.v)+"%"},dt.createElement(S1,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Hc(t)})))}),sh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},d6=function(e,t){return e.toLowerCase()===t.toLowerCase()||sh($c(e),$c(t))};function u6(e,t,n){var i=Ec(n),o=e6(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=Mr({color:t,hsva:a});as(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},s(d)}},[t,e]),as(function(){var d;sh(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=t6(function(d){s(function(u){return Object.assign({},u,d)})},[]);return[a,c]}var h6=typeof window<"u"?n6:as,f6=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},r0=new Map,p6=function(e){h6(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!r0.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}`,r0.set(t,n);var i=f6();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},g6=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Dl(Object.assign({},n,{a:0}))+", "+Dl(Object.assign({},n,{a:1}))+")"},a=Ps(["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(_1,{onMove:function(l){i({a:l.left})},onKey:function(l){i({a:$i(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},dt.createElement(S1,{className:"react-colorful__alpha-pointer",left:n.a,color:Dl(n)})))},m6=function(e){var t=e.className,n=e.colorModel,i=e.color,o=i===void 0?n.defaultColor:i,a=e.onChange,s=oh(e,["className","colorModel","color","onChange"]),l=Mr(null);p6(l);var c=u6(n,o,a),d=c[0],u=c[1],h=Ps(["react-colorful",t]);return dt.createElement("div",Bs({},s,{ref:l,className:h}),dt.createElement(c6,{hsva:d,onChange:u}),dt.createElement(l6,{hue:d.h,onChange:u}),dt.createElement(g6,{hsva:d,onChange:u,className:"react-colorful__last-control"}))},v6={defaultColor:"0001",toHsva:r6,fromHsva:i6,equal:d6},w6=function(e){return dt.createElement(m6,Bs({},e,{colorModel:v6}))};function Vs(){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 lh(){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 x6(){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 ch(){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 dh(){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 b6(){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 y6(){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 uh(){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 C6(){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 _6=window.React.forwardRef;let $l,eo;const st=_6(({onChange:e=()=>!1,type:t="text",className:n="",prefix:i=!1,wrapperStyle:o={},...a},s)=>{const l=f=>{let g=f.target.value;t==="number"&&g!=""&&(g=+g),e(g)},c=()=>{typeof a.value=="number"&&(a.min!=null&&a.value<+a.min&&e(a.min),a.max!=null&&a.value>+a.max&&e(a.max))},d=()=>{clearTimeout(eo);function f(){let g=++a.value;e(Math.min(g,a.max??Number.MAX_SAFE_INTEGER))}f(),eo=setTimeout(()=>{$l=setInterval(()=>{f()},80)},400)},u=()=>{clearTimeout(eo);function f(){let g=--a.value;e(Math.max(g,a.min??Number.MIN_SAFE_INTEGER))}f(),eo=setTimeout(()=>{$l=setInterval(()=>{f()},80)},400)},h=()=>{clearInterval($l),clearTimeout(eo)};return r.jsxs(S6,{className:je(["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(j6,{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",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4L4 3.49691e-07L0 4L8 4Z",fill:"#C6D4E1"})})}),r.jsx(k6,{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",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L4 4L8 0L0 0Z",fill:"#C6D4E1"})})})]})]})});var S6=m("div")`${e=>e.$_css}`,j6=m("span")`${e=>e.$_css2}`,k6=m("span").withConfig({displayName:"Input___StyledSpan2",componentId:"sc-aibt7d-0"})(["",""],e=>e.$_css3);function E6(){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 hh=()=>{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}},fh=e=>{if(e==null)return{isGlobal:!1,color:""};const t=hh(),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 D6="Expected a function",i0=0/0,$6="[object Symbol]",H6=/^\s+|\s+$/g,M6=/^[-+]0x[0-9a-f]+$/i,I6=/^0b[01]+$/i,T6=/^0o[0-7]+$/i,L6=parseInt,A6=typeof ot=="object"&&ot&&ot.Object===Object&&ot,R6=typeof self=="object"&&self&&self.Object===Object&&self,N6=A6||R6||Function("return this")(),O6=Object.prototype,B6=O6.toString,P6=Math.max,V6=Math.min,Hl=function(){return N6.Date.now()};function z6(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(D6);t=o0(t)||0,Mc(n)&&(u=!!n.leading,h="maxWait"in n,a=h?P6(o0(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function g(x){var y=i,N=o;return i=o=void 0,d=x,s=e.apply(N,y),s}function p(x){return d=x,l=setTimeout(k,t),u?g(x):s}function v(x){var y=x-c,N=x-d,B=t-y;return h?V6(B,a-N):B}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=Hl();if(w(x))return D(x);l=setTimeout(k,v(x))}function D(x){return l=void 0,f&&i?g(x):(i=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),d=0,i=c=o=l=void 0}function _(){return l===void 0?s:D(Hl())}function H(){var x=Hl(),y=w(x);if(i=arguments,o=this,c=x,y){if(l===void 0)return p(c);if(h)return l=setTimeout(k,t),g(c)}return l===void 0&&(l=setTimeout(k,t)),s}return H.cancel=E,H.flush=_,H}function Mc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function F6(e){return!!e&&typeof e=="object"}function Z6(e){return typeof e=="symbol"||F6(e)&&B6.call(e)==$6}function o0(e){if(typeof e=="number")return e;if(Z6(e))return i0;if(Mc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Mc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(H6,"");var n=I6.test(e);return n||T6.test(e)?L6(e.slice(2),n?2:8):M6.test(e)?i0:+e}var W6=z6;const Hi=Xt(W6);function j1(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,Fr=window.React.useRef,G6=window.React.memo,a0=window.React.useCallback,s0=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 ph(){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 Y6(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xe=Y6(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=p(this._r,this._g,this._b);return{h:b.h*360,s:b.s,v:b.v,a:this._a}},toHsvString:function(){var b=p(this._r,this._g,this._b),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="#"+D(this._r,this._g,this._b,this._a),j=T,G=this._gradientType?"GradientType = 1, ":"";if(b){var Q=d(b);j="#"+D(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(E,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(H,arguments)},spin:function(){return this._applyModification(B,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($,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=Be(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=g(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?Ze+(Kt-Ze)*6*tt:tt<1/2?Kt:tt<2/3?Ze+(Kt-Ze)*(2/3-tt)*6:Ze}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 p(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 Ze=0;ZeQ&&(Q=K,G=d(T[Ze]));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 de(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 Be(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)}),Ic=function(e){var t={hex:"#ffffff",alpha:100},n=Xe(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},gh=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},J6=[{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"}],mh=function(e){var t,n,i=Xe(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=vh(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=J6.find(function(v){return v.name===c}))===null||t===void 0?void 0:t.angle,g=u==="linear"?"180":"circle at center",p=f||c||g;return{gradient:u+"-gradient("+(typeof s!="string"?s.original:e)+")",type:u,modifier:p.match(/\d+/)!==null?Number((n=p.match(/\d+/))===null||n===void 0?void 0:n.join("")):p,stops:l.map(function(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=Xe(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},Zn=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},Po=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})}},Vo=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("")},X6=function(e){return!!Vo(e)},ni=function(e,t){return new RegExp(e.reduce(function(n,i){return n+(typeof i=="string"?i:i.source)},""),t)},Q6=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],""),g=ni(["(?:(",t,")|",n,"|",i,")"],""),p=ni(["(?:(",g,")",o,")?(",f,")"],e),v=ni(["\\s*(",u,")","(?:\\s+","(",c,"))?","(?:",o,"\\s*)?"],e);return{gradientSearch:p,colorStopSearch:v}},q6=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=Xe(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},vh=function(e){var t=Q6(),n,i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/,o=i.exec(e);return o!==null?(n=q6(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},k1=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=Xe(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 Xe(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=Xe({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=Xe({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=Xe({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=Xe({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=Xe(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=Xe(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=Xe(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}(),K6=200,ev=150,tv=function(e){var t=e.rootPrefixCls,n=e.color,i=e.colorBoardHeight,o=e.onChange,a=e.setChange,s=Fr(),l=function(){a(!1),window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",p)},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,B=x.clientY;w({x:N,y:B}),window.addEventListener("mousemove",g),window.addEventListener("mouseup",p)}},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()},g=function(x){x.preventDefault();var y=x.clientX,N=x.clientY;w({x:y,y:N})},p=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,B=x.y-y.top,S=y.width||K6,A=y.height||ev;N=Math.max(0,N),N=Math.min(N,S),B=Math.max(0,B),B=Math.min(B,A),n.saturation=N/S,n.brightness=1-B/A,o(n)},k=v(),D={h:n.hue,s:1,v:1},E=new k1(D).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:E,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}))},nv=function(e){var t=e.rootPrefixCls,n=e.color,i=e.onChange,o=e.setChange,a=Fr(),s=function(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",u)},l=function(){o(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",g)};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",g,{passive:!1})}},f=function(H){H.cancelable&&H.preventDefault();var x=H.targetTouches[0].clientX,y=H.targetTouches[0].clientY;v({x,y})},g=function(){l()},p=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 B=N/y,S=B*360;n.hue=S,i(n)},w={h:n.hue,s:1,v:1},k=new k1(w).toHexString(),D=p(),E=n.hue,_=E/360*100;return X.createElement("div",{className:D,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:D+"-handler"}))},l0=function(e,t,n,i){return"rgba("+[e,t,n,i/100].join(",")+")"},rv=function(e){var t=e.rootPrefixCls,n=e.color,i=e.alpha,o=e.onChange,a=e.setChange,s=Fr(),l=function(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},c=function(){a(!1),window.removeEventListener("touchmove",g),window.removeEventListener("touchend",p)};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",g,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}},g=function(_){_.cancelable&&_.preventDefault();var H=_.targetTouches[0].clientX,x=_.targetTouches[0].clientY;k({x:H,y:x})},p=function(){c()},v=function(){var _=n.red,H=n.green,x=n.blue,y="linear-gradient(to right, "+l0(_,H,x,0)+" , "+l0(_,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)},D=function(){var _=n.red,H=n.green,x=n.blue,y=(i||1)/100;return"rgba("+_+", "+H+", "+x+", "+y+")"},E=w();return X.createElement("div",{className:E,ref:s,onMouseDown:d,onTouchStart:f},X.createElement("div",{className:E+"-bg",style:{background:v()}}),X.createElement("span",{style:{left:i+"%",backgroundColor:D()}}),X.createElement("div",{className:E+"-handler"}))},wh=function(e){var t=e.alpha,n=e.className,i=e.hex,o=e.colorBoardHeight,a=e.showAlpha,s=e.onChange,l=Fr(),c=new k1(i);c.alpha=t;var d=Ct(It({color:c,alpha:t}),2),u=d[0],h=d[1],f=Ct(It(!1),2),g=f[0],p=f[1];Tt(function(){g||h({color:c,alpha:t})},[i,t]);var v=function(k){p(!0);var D=u.color;D.alpha=k,h({color:D,alpha:k}),s({hex:D.toHexString(),alpha:k})},w=function(k){p(!0);var D=u.alpha;k.alpha=D,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(tv,{rootPrefixCls:"color-picker-panel",color:u.color,colorBoardHeight:o,onChange:w,setChange:p}),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(nv,{rootPrefixCls:"color-picker-panel",color:u.color,onChange:w,setChange:p})),a&&X.createElement("div",{className:"color-picker-panel-wrap-alpha"},X.createElement(rv,{rootPrefixCls:"color-picker-panel",alpha:u.alpha,color:u.color,onChange:v,setChange:p})))))};j1(`.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 iv=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},ov=function(e){return e?e.substr(0,3).replace(/[^\d]/g,""):""},av=function(e){return e&&e.substring(0,1)==="#"&&(e=e.substring(1)),e?e.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""},sv=function(e,t){e.key==="Enter"&&t()},lv=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(av(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(ov(i.target.value))},name:"alpha"};return e.showAlpha===!1?[t]:[t,n]},xh=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=iv(w);h(fe(fe({},u),{alpha:Number(k)}))},g=function(w){h(fe(fe({},u),{hex:w}))},p=function(){var w=Xe(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:g,showAlpha:s};return X.createElement("div",{className:"input_rgba"},X.createElement("div",{className:"input_rgba-wrap"},lv(v).map(function(w,k){var D=w.wrapClass,E=w.labelSymbol,_=w.idInput,H=w.valueInput,x=w.labelText,y=w.labelArea,N=w.labelClass,B=w.onChangeInput,S=w.name;return X.createElement("div",{className:D,key:k},E&&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 B(A)},onBlur:p,onKeyPress:function(A){return sv(A,p)}}),X.createElement("div",{className:N},x))})))},cv=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=Fr(),g=Ct(It(!1),2),p=g[0],v=g[1],w=Ct(It(!1),2),k=w[0],D=w[1],E=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=Xe(i.hex);Y.setAlpha(i.alpha/100);var ce=ph(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:""+Zn(_,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)},B=function(R,Z){if(R.preventDefault(),R.stopPropagation(),R.nativeEvent.stopImmediatePropagation(),R.detail!==2&&(a(!1),R.button===0)){var L=Xe(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&&E.length>2){D(!0);return}else D(!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&&E.length>2&&v(!0),M({x:L,y:W}),y()},$=function(R,Z){if(a(!1),R.cancelable&&R.preventDefault(),R.touches.length===1){N();var L=Xe(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&&E.length>2){D(!0);return}else D(!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(!(E.length<=2)){var R=E.filter(function(Y){return Y[2]!==i.index}).map(function(Y,ce){return Y[2]=ce,Y}),Z=Po(R[R.length-1][0]),L=R[R.length-1][1],W=Vo([Z[0],Z[1],Z[2]]),J=R[R.length-1][2];return v(!1),D(!1),o({hex:W,alpha:Number(Math.round(Z[3]*100)),loc:L,index:J}),n(fe(fe({},t),{gradient:""+Zn(_,R,H,l,d),stops:R}))}};return Tt(function(){if(p)return V();var R=E.map(function(Z){return i.index===Z[2]?[Z[0],i.loc,Z[2]]:Z});n(fe(fe({},t),{gradient:""+Zn(_,R,H,l,d),stops:R}))},[i.loc,p]),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, "+E.map(function(R){return R[0]+" "+R[1]*100+"%"}).join(", ")+")"}}),X.createElement("div",{className:"gradient-stop-marker"},E.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 $(W,R)},onMouseDown:function(W){return B(W,R)},onClick:function(W){return W.stopPropagation()},onDoubleClick:V})})))},dv=function(e){var t="solid",n=Xe(e).isValid();if(e){if(e==="transparent"||n&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient"))return t="solid",t;var i=Po(e);if(i){if(X6([i[0],i[1],i[2]]))return t="solid",t}else return t="gradient",t}return t},c0=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=ph(new Set(e));switch(t){case"solid":return n.filter(function(i,o){var a=Xe(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=vh(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[]}},bh=function(e,t){if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;ne.gradient);function Ch({value:e,onChange:t}){const n=Hi(i=>{t(i)},0);return r.jsx("div",{className:"brandy-gradient-picker",children:r.jsx(vv,{value:e,onChange:n,gradient:!0,solid:!1,defaultColors:wv})})}function E1(){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 xv=window.React.useEffect,ui=window.React.useMemo,Sa=window.React.useState,bv=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"}];function Ee({color:e,onChange:t=()=>!1,hideGlobals:n=!1,usingGradient:i=!1}){const[o,a]=Sa(null),[s,l]=Sa(null),{styles:c,attributes:d}=Rn(o,s),[u,h]=Sa(!1),f=()=>{h(_=>!_)},g=()=>{h(!1)},p=ui(()=>fh(e),[e]),[v,w]=Sa(e!=null&&e.includes("gradient")?"gradient":"solid");xv(()=>{const _=H=>{o==null&&s==null&&g(),!(s!=null&&s.contains(H.target))&&!(o!=null&&o.contains(H.target))&&g()};return window.jQuery(document).on("click","body",_),()=>{window.jQuery(document).off("click","body",_)}},[o,s]);const k=ui(()=>p.color==""||p.color.endsWith("00")&&p.color.length>7,[p]),D=ui(()=>p.color=="",[p]),E=ui(()=>p.isGlobal,[p]);return r.jsxs(Cv,{className:"brandy-color-picker",children:[r.jsxs(_v,{className:"brandy-color-preview",style:{background:p.color||"transparent"},ref:a,onClick:f,$_css2:[{display:"flex",height:"30px",width:"30px",alignItems:"center",justifyContent:"center"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity))"},{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&&ue(["background:linear-gradient(45deg,#e0e0e3 25%,transparent 25%),linear-gradient(-45deg,#e0e0e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e0e3 75%),linear-gradient(-45deg,transparent 75%,#e0e0e3 75%) !important;background-size:4px 4px !important;background-position:0 0,0 10px,10px -10px,-10px 0px !important;"])],children:[k&&r.jsx(Sv,{className:"[&_svg]:fill-[#A1ABB7]",children:D?r.jsx(E1,{}):r.jsx(dh,{})}),E&&r.jsx(jv,{children:r.jsx(E6,{})})]}),u&&r.jsxs(kv,{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(Ev,{children:r.jsx(Mt,{options:bv,selected:v??"solid",onChange:_=>{w(_)}})}),i&&v==="gradient"?r.jsx(Ch,{value:e??"",onChange:t}):r.jsx(_h,{color:e,onChange:t,hideGlobals:n})]})]})}const Ml=ue([""," &.selected{","}"],{position:"relative",height:"22px",width:"22px",cursor:"pointer",borderRadius:"5px","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{outlineStyle:"solid",outlineWidth:"1.5px",outlineOffset:"2px",outlineColor:"#2271B1"}),yv="#ffffff00",_h=({color:e,onChange:t=()=>!1,hideGlobals:n=!1})=>{const i=ui(()=>hh(),[]),o=ui(()=>fh(e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Dv,{children:r.jsx(w6,{color:o.color||yv,onChange:t})}),r.jsx($v,{children:r.jsx(Hv,{value:o.color||"NULL",onChange:t})}),!n&&r.jsxs("div",{children:[r.jsx(Mv,{children:I("Theme colors")}),r.jsx(Iv,{children:i.theme.map((a,s)=>r.jsx(Te,{title:a.name,children:r.jsx(Tv,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css4:[Ml]})},s))}),r.jsx(Lv,{children:I("Palette colors")}),r.jsxs(Av,{children:[i.palette.map((a,s)=>r.jsx(Te,{title:a.name,style:{textTransform:"capitalize"},children:r.jsx(Rv,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css5:[Ml]})},s)),r.jsx(Nv,{className:`dashicons ${o.color==""?"selected":""} global-block transparent-block`,onClick:()=>{t("")},$_css6:[Ml]})]})]})]})};var Cv=m("div")({position:"relative"}),_v=m("div")`${e=>e.$_css2}`,Sv=m("span")({position:"relative",display:"inline-block"}),jv=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"}}),kv=m("div")`${e=>e.$_css3}`,Ev=m("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"}),Dv=m("div")({padding:"1rem",">.react-colorful":{width:"100%"}}),$v=m("div")({borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),Hv=m(st)({width:"100%"}),Mv=m("div")({marginLeft:"1rem",marginRight:"1rem",marginTop:"1rem",fontWeight:"500"}),Iv=m("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),Tv=m("div")`${e=>e.$_css4}`,Lv=m("div")({marginLeft:"1rem",marginRight:"1rem",fontWeight:"500"}),Av=m("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),Rv=m("div")`${e=>e.$_css5}`,Nv=m("div").withConfig({displayName:"ColorPicker___StyledDiv13",componentId:"sc-g829wk-0"})(["",""],e=>e.$_css6);function dr(e){"@babel/helpers - typeof";return dr=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},dr(e)}function Ov(e,t){if(dr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(dr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bv(e){var t=Ov(e,"string");return dr(t)=="symbol"?t:t+""}function Sn(e,t,n){return(t=Bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v0(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 Et(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(ea(!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 nw=window.React;var Zr=nw.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),rw=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const Ll=window.React;var C0=Ll.forwardRef(function(e,t){var n=e.prefixCls,i=e.value,o=e.valueIndex,a=e.onStartMove,s=e.style,l=e.render,c=e.dragging,d=e.onOffsetChange,u=e.onChangeComplete,h=e.onFocus,f=e.onMouseEnter,g=kh(e,rw),p=Ll.useContext(Zr),v=p.min,w=p.max,k=p.direction,D=p.disabled,E=p.keyboard,_=p.range,H=p.tabIndex,x=p.ariaLabelForHandle,y=p.ariaLabelledByForHandle,N=p.ariaValueTextFormatterForHandle,B=p.styles,S=p.classNames,A="".concat(n,"-handle"),$=function(Y){D||a(Y,o)},P=function(Y){h==null||h(Y,o)},z=function(Y){f(Y,o)},M=function(Y){if(!D&&E){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=D1(k,i,v,w),Z={};if(o!==null){var L;Z={tabIndex:D?null:hi(H,o),role:"slider","aria-valuemin":v,"aria-valuemax":w,"aria-valuenow":i,"aria-disabled":D,"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:$,onTouchStart:$,onFocus:P,onMouseEnter:z,onKeyDown:M,onKeyUp:V}}var W=Ll.createElement("div",zo({ref:t,className:je(A,Sn(Sn({},"".concat(A,"-").concat(o+1),o!==null&&_),"".concat(A,"-dragging"),c),S.handle),style:Et(Et(Et({},R),s),B.handle)},Z,g));return l&&(W=l(W,{index:o,prefixCls:n,value:i,dragging:c})),W}),iw=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"];const tr=window.React;var ow=tr.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=kh(e,iw),f=tr.useRef({});tr.useImperativeHandle(t,function(){return{focus:function(H){var x;(x=f.current[H])===null||x===void 0||x.focus()}}});var g=tr.useState(-1),p=Ot(g,2),v=p[0],w=p[1],k=function(H,x){w(x),u==null||u(H)},D=function(H,x){w(x)},E=Et({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:k,onMouseEnter:D},h);return tr.createElement(tr.Fragment,null,s.map(function(_,H){return tr.createElement(C0,zo({ref:function(y){y?f.current[H]=y:delete f.current[H]},dragging:d===H,style:hi(i,H),key:H,value:_,valueIndex:H},E))}),c&&tr.createElement(C0,zo({key:"a11y"},E,{value:s[v],valueIndex:null,dragging:d!==-1,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const _0=window.React;var aw=function(t){var n=t.prefixCls,i=t.style,o=t.children,a=t.value,s=t.onClick,l=_0.useContext(Zr),c=l.min,d=l.max,u=l.direction,h=l.includedStart,f=l.includedEnd,g=l.included,p="".concat(n,"-text"),v=D1(u,a,c,d);return _0.createElement("span",{className:je(p,Sn({},"".concat(p,"-active"),g&&h<=a&&a<=f)),style:Et(Et({},v),i),onMouseDown:function(k){k.stopPropagation()},onClick:function(){s(a)}},o)};const S0=window.React;var sw=function(t){var n=t.prefixCls,i=t.marks,o=t.onClick,a="".concat(n,"-mark");return i.length?S0.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,d=s.label;return S0.createElement(aw,{key:l,prefixCls:a,style:c,value:l,onClick:o},d)})):null};const j0=window.React;var lw=function(t){var n=t.prefixCls,i=t.value,o=t.style,a=t.activeStyle,s=j0.useContext(Zr),l=s.min,c=s.max,d=s.direction,u=s.included,h=s.includedStart,f=s.includedEnd,g="".concat(n,"-dot"),p=u&&h<=i&&i<=f,v=Et(Et({},D1(d,i,l,c)),typeof o=="function"?o(i):o);return p&&(v=Et(Et({},v),typeof a=="function"?a(i):a)),j0.createElement("span",{className:je(g,Sn({},"".concat(g,"-active"),p)),style:v})};const ja=window.React;var cw=function(t){var n=t.prefixCls,i=t.marks,o=t.dots,a=t.style,s=t.activeStyle,l=ja.useContext(Zr),c=l.min,d=l.max,u=l.step,h=ja.useMemo(function(){var f=new Set;if(i.forEach(function(p){f.add(p.value)}),o&&u!==null)for(var g=c;g<=d;)f.add(g),g+=u;return Array.from(f)},[c,d,u,o,i]);return ja.createElement("div",{className:"".concat(n,"-step")},h.map(function(f){return ja.createElement(lw,{prefixCls:n,key:f,value:f,style:a,activeStyle:s})}))};const k0=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=k0.useContext(Zr),u=d.direction,h=d.min,f=d.max,g=d.disabled,p=d.range,v=d.classNames,w="".concat(n,"-track"),k=Nc(o,h,f),D=Nc(a,h,f),E=function(y){!g&&l&&l(y,-1)},_={};switch(u){case"rtl":_.right="".concat(k*100,"%"),_.width="".concat(D*100-k*100,"%");break;case"btt":_.bottom="".concat(k*100,"%"),_.height="".concat(D*100-k*100,"%");break;case"ttb":_.top="".concat(k*100,"%"),_.height="".concat(D*100-k*100,"%");break;default:_.left="".concat(k*100,"%"),_.width="".concat(D*100-k*100,"%")}var H=c||je(w,Sn(Sn({},"".concat(w,"-").concat(s+1),s!==null&&p),"".concat(n,"-track-draggable"),l),v.track);return k0.createElement("div",{className:H,style:Et(Et({},_),i),onMouseDown:E,onTouchStart:E})};const ri=window.React;var dw=function(t){var n=t.prefixCls,i=t.style,o=t.values,a=t.startPoint,s=t.onStartMove,l=ri.useContext(Zr),c=l.included,d=l.range,u=l.min,h=l.styles,f=l.classNames,g=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=[],D=0;D=19;const Vn=window.React;function $0(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function mw(e,t,n,i,o,a,s,l,c){var d=Vn.useState(null),u=Ot(d,2),h=u[0],f=u[1],g=Vn.useState(-1),p=Ot(g,2),v=p[0],w=p[1],k=Vn.useState(n),D=Ot(k,2),E=D[0],_=D[1],H=Vn.useState(n),x=Ot(H,2),y=x[0],N=x[1],B=Vn.useRef(null),S=Vn.useRef(null);Vn.useLayoutEffect(function(){v===-1&&_(n)},[n,v]),Vn.useEffect(function(){return function(){document.removeEventListener("mousemove",B.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",B.current),document.removeEventListener("touchend",S.current)}},[]);var A=function(V,R){E.some(function(Z,L){return Z!==V[L]})&&(R!==void 0&&f(R),_(V),s(V))},$=Lc(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(de){return de+J});A(ce)}else{var he=(o-i)*V,F=sr(E);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=$0(V),Y=J.pageX,ce=J.pageY,he=function(de){de.preventDefault();var re=$0(de),te=re.pageX,be=re.pageY,Be=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=-Be/T;break;default:G=Be/T}$(R,G)},F=function ee(de){de.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",he),document.removeEventListener("touchend",ee),document.removeEventListener("touchmove",he),B.current=null,S.current=null,w(-1),l()};document.addEventListener("mouseup",F),document.addEventListener("mousemove",he),document.addEventListener("touchend",F),document.addEventListener("touchmove",he),B.current=he,S.current=F},z=Vn.useMemo(function(){var M=sr(n).sort(function(R,Z){return R-Z}),V=sr(E).sort(function(R,Z){return R-Z});return M.every(function(R,Z){return R===V[Z]})?E:n},[n,E]);return[v,h,z,P]}const Al=window.React;function vw(e,t,n,i,o,a){var s=Al.useCallback(function(g){return Math.max(e,Math.min(t,g))},[e,t]),l=Al.useCallback(function(g){if(n!==null){var p=e+Math.round((s(g)-e)/n)*n,v=function(E){return(String(E).split(".")[1]||"").length},w=Math.max(v(n),v(t),v(e)),k=Number(p.toFixed(w));return e<=k&&k<=t?k:null}return null},[n,e,t,s]),c=Al.useCallback(function(g){var p=s(g),v=i.map(function(D){return D.value});n!==null&&v.push(l(g)),v.push(e,t);var w=v[0],k=t-e;return v.forEach(function(D){var E=Math.abs(p-D);E<=k&&(w=D,k=E)}),w},[e,t,i,n,s,l]),d=function g(p,v,w){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var D,E=p[w],_=E+v,H=[];i.forEach(function(S){H.push(S.value)}),H.push(e,t),H.push(l(E));var x=v>0?1:-1;k==="unit"?H.push(l(E+x*n)):H.push(l(_)),H=H.filter(function(S){return S!==null}).filter(function(S){return v<0?S<=E:S>=E}),k==="unit"&&(H=H.filter(function(S){return S!==E}));var y=k==="unit"?E:_;D=H[0];var N=Math.abs(D-y);if(H.forEach(function(S){var A=Math.abs(S-y);A1){var B=sr(p);return B[w]=D,g(B,v-x,w,k)}return D}else{if(v==="min")return e;if(v==="max")return t}},u=function(p,v,w){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",D=p[w],E=d(p,v,w,k);return{value:E,changed:E!==D}},h=function(p){return a===null&&p===0||typeof a=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",D=p.map(c),E=D[w],_=d(D,v,w,k);if(D[w]=_,o===!1){var H=a||0;w>0&&D[w-1]!==E&&(D[w]=Math.max(D[w],D[w-1]+H)),w0;B-=1)for(var S=!0;h(D[B]-D[B-1])&&S;){var A=u(D,-1,B-1);D[B-1]=A.value,S=A.changed}for(var $=D.length-1;$>0;$-=1)for(var P=!0;h(D[$]-D[$-1])&&P;){var z=u(D,-1,$-1);D[$-1]=z.value,P=z.changed}for(var M=0;M=0?V:!1},[V,Ze]),tt=Pe.useMemo(function(){return Object.keys(re||{}).map(function(Ve){var ve=re[Ve],De={value:Number(Ve)};return ve&&dr(ve)==="object"&&!Pe.isValidElement(ve)&&("label"in ve||"style"in ve)?(De.style=ve.style,De.label=ve.label):De.label=ve,De}).filter(function(Ve){var ve=Ve.label;return ve||typeof ve=="number"}).sort(function(Ve,ve){return Ve.value-ve.value})},[re]),Yr=vw(le,Me,Ze,tt,z,Kt),fr=Ot(Yr,2),en=fr[0],Nn=fr[1],aa=Yv(x,{value:H}),Ft=Ot(aa,2),wn=Ft[0],sa=Ft[1],tn=Pe.useMemo(function(){var Ve=wn==null?[]:Array.isArray(wn)?wn:[wn],ve=Ot(Ve,1),De=ve[0],lt=De===void 0?le:De,ct=wn===null?[]:[lt];if(y){if(ct=sr(Ve),N||wn===void 0){var rn=N>=0?N+1:2;for(ct=ct.slice(0,rn);ct.length=0&&Q.current.focus(Ve)}la(null)},[On]);var ul=Pe.useMemo(function(){return R&&Ze===null?!1:R},[R,Ze]),ca=function(ve,De){Xr(ve,De),S==null||S(Dn(pr.current))},da=Zi!==-1;Pe.useEffect(function(){if(!da){var Ve=tn.lastIndexOf(cl);Q.current.focus(Ve)}},[da]);var Bn=Pe.useMemo(function(){return sr(Wi).sort(function(Ve,ve){return Ve-ve})},[Wi]),Yi=Pe.useMemo(function(){return y?[Bn[0],Bn[Bn.length-1]]:[le,Bn[0]]},[Bn,y,le]),$n=Ot(Yi,2),ua=$n[0],ha=$n[1];Pe.useImperativeHandle(t,function(){return{focus:function(){Q.current.focus(0)},blur:function(){var ve,De=document,lt=De.activeElement;(ve=K.current)!==null&&ve!==void 0&&ve.contains(lt)&&(lt==null||lt.blur())}}}),Pe.useEffect(function(){f&&Q.current.focus(0)},[]);var hl=Pe.useMemo(function(){return{min:le,max:Me,direction:pe,disabled:d,keyboard:h,step:Ze,included:J,includedStart:ua,includedEnd:ha,range:y,tabIndex:b,ariaLabelForHandle:T,ariaLabelledByForHandle:j,ariaValueTextFormatterForHandle:G,styles:l||{},classNames:s||{}}},[le,Me,pe,d,h,Ze,J,ua,ha,y,b,T,j,G,l,s]);return Pe.createElement(Zr.Provider,{value:hl},Pe.createElement("div",{ref:K,className:je(i,o,Sn(Sn(Sn(Sn({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),L),"".concat(i,"-horizontal"),!L),"".concat(i,"-with-marks"),tt.length)),style:a,onMouseDown:Gi},Pe.createElement("div",{className:je("".concat(i,"-rail"),s==null?void 0:s.rail),style:Et(Et({},F),l==null?void 0:l.rail)}),Pe.createElement(dw,{prefixCls:i,style:ce,values:Bn,startPoint:Y,onStartMove:ul?ca:void 0}),Pe.createElement(cw,{prefixCls:i,marks:tt,dots:te,style:ee,activeStyle:de}),Pe.createElement(ow,{ref:Q,prefixCls:i,style:he,values:Wi,draggingIndex:Zi,onStartMove:ca,onOffsetChange:dl,onFocus:g,onBlur:p,handleRender:be,activeHandleRender:Be,onChangeComplete:Fi}),Pe.createElement(sw,{prefixCls:i,marks:tt,onClick:Qn})))});function $h({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(ww,{className:je(["brandy-component-slider",a]),value:e,onChange:l,min:n,max:i,step:s,defaultValue:o})}var ss={exports:{}};ss.exports;(function(e,t){var n=200,i="__lodash_hash_undefined__",o=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",p="[object GeneratorFunction]",v="[object Map]",w="[object Number]",k="[object Null]",D="[object Object]",E="[object Promise]",_="[object Proxy]",H="[object RegExp]",x="[object Set]",y="[object String]",N="[object Symbol]",B="[object Undefined]",S="[object WeakMap]",A="[object ArrayBuffer]",$="[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[$]=F[h]=F[f]=F[g]=F[v]=F[w]=F[D]=F[H]=F[x]=F[y]=F[S]=!1;var ee=typeof ot=="object"&&ot&&ot.Object===Object&&ot,de=typeof self=="object"&&self&&self.Object===Object&&self,re=ee||de||Function("return this")(),te=t&&!t.nodeType&&t,be=te&&!0&&e&&!e.nodeType&&e,Be=be&&be.exports===te,Ae=Be&&ee.process,b=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),T=b&&b.isTypedArray;function j(C,O){for(var U=-1,ie=C==null?0:C.length,We=0,Ce=[];++U-1}function xn(C,O){var U=this.__data__,ie=pa(U,C);return ie<0?(++this.size,U.push([C,O])):U[ie][1]=O,this}De.prototype.clear=lt,De.prototype.delete=ct,De.prototype.get=rn,De.prototype.has=on,De.prototype.set=xn;function Dt(C){var O=-1,U=C==null?0:C.length;for(this.clear();++Ogt))return!1;var Qe=Ce.get(C);if(Qe&&Ce.get(O))return Qe==O;var Zt=-1,bn=!0,St=U&a?new fa:void 0;for(Ce.set(C,O),Ce.set(O,C);++Zt-1&&C%1==0&&C-1&&C%1==0&&C<=s}function dd(C){var O=typeof C;return C!=null&&(O=="object"||O=="function")}function Xi(C){return C!=null&&typeof C=="object"}var ud=T?pe(T):cp;function _p(C){return yp(C)?op(C):dp(C)}function Sp(){return[]}function jp(){return!1}e.exports=Cp})(ss,ss.exports);var xw=ss.exports;const M1=Xt(xw);function Hh({onReset:e,hasChanged:t=!1}){const n=()=>{t&&e()};return r.jsx(bw,{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(b6,{})})}var bw=m("div").withConfig({displayName:"ResetButton___StyledDiv",componentId:"sc-n1cbpg-0"})(["",""],e=>e.$_css);const yw=window.React.useCallback,Cw=window.React.useContext,H0=window.React.useMemo;function M0(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 qs(e){const{builder:t}=Cw(qt),n=ne(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=ne(t)(l=>l.previewTemplate),{current:o}=ye(),a=yw(()=>{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=M0(e.sectionId),c&&(e.reset_paths??[]).forEach(h=>{const f=me(c.settings,h);Ne(l,h,f),kn({sectionId:e.sectionId,settings:Ld(h,f),device:o,builder:t,clonedFromId:e.cloned_from}),I2({sectionId:e.sectionId,settings:Ld(h,f),device:o,builder:t})})})},[n,e,o,t]),s=H0(()=>{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=M0(e.sectionId),["top_header","top_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.top}),["middle_header","middle_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.middle}),["bottom_header","bottom_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.bottom}),(e.sectionId==="header"||e.sectionId==="footer")&&(l=i));let d=!1;return l&&c&&(e.reset_paths??[]).forEach(f=>{if(d==!0)return;const g=me(l.settings,f),p=me(c.settings,f);M1(g,p)||(d=!0)},!1),d},[o,e.sectionId,e.reset_paths,i,t]);return H0(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(_w,{children:[r.jsx(ut,{className:je(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Hh,{onReset:a,hasChanged:s})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[a,e.title])}var _w=m("div").withConfig({displayName:"Reset___StyledDiv",componentId:"sc-pc751i-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const Sw=window.React.useMemo,jw=window.React.useState,kw=[{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"}],Ew={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=Sw(()=>Se(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]=jw(!1);return r.jsxs(Dw,{children:[r.jsxs($w,{children:[r.jsxs(Hw,{children:[r.jsx(ut,{title:e.title,className:"mb-0"}),n.enabled&&r.jsx(Mw,{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(Iw,{children:[(e.can_reset??!0)&&r.jsx(qs,{...e,title:{text:""},reset_paths:[e.value_path]}),r.jsx(C1,{checked:n.enabled,onChange:i})]})]}),n.enabled&&s&&r.jsxs(Tw,{className:"box-shadow-wrapper",children:[r.jsx(pt,{options:kw,selected:n.type,onChange:o,popupHeight:220}),n.type==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(Lw,{children:[r.jsx(Aw,{children:"Shadow color"}),r.jsx(Ee,{color:n.custom_value.color??"#cdcdcd",onChange:a("color")})]}),Object.entries(Ew).map(([c,d])=>r.jsxs("div",{children:[r.jsx(Rw,{children:d.title}),r.jsxs(Nw,{children:[r.jsx(Ow,{type:"number",value:n.custom_value[c],min:-10,max:40,onChange:a(c)}),r.jsx($h,{value:n.custom_value[c],min:-10,max:40,onChange:a(c)})]})]},c))]})]})]})}var Dw=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),$w=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Hw=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Mw=m("span")`${e=>e.$_css}`,Iw=m("div")({display:"flex",alignItems:"center",gap:"0.5rem"}),Tw=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Lw=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Aw=m("span")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Rw=m("div")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Nw=m("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.75rem"}),Ow=m(st).withConfig({displayName:"BoxShadowBuilder___StyledInput",componentId:"sc-no79k6-0"})({width:"60px"});const Bw=window.React.useCallback,Rl=window.React.useMemo;function Wr({inputValue:e,onChange:t}){const{current:n}=ye(),i=Rl(()=>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=Rl(()=>{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=Bw(()=>{n!=="desktop"&&t(null)},[n,t]);return{ResetInheritButton:Rl(()=>o?()=>!1:({className:l=""})=>r.jsx(Pw,{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 Pw=m("span").withConfig({displayName:"useInheritResponsive___StyledSpan",componentId:"sc-l0r28k-0"})(["",""],e=>e.$_css);const Vw=window.React.useMemo;function hr(e){const{current:t}=ye(),n=Vw(()=>Se(e.value,t),[t,e.value]),{ResetInheritButton:i}=Wr({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(zw,{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 zw=m("div").withConfig({displayName:"ButtonGroupBuilder___StyledDiv",componentId:"sc-t3hi5f-0"})({position:"relative"});const Fw=window.React.createElement,Zw=window.React.useCallback,Mh=window.React.useMemo;function Ww(e){const{ResetInheritButton:t}=Wr({inputValue:e.value,onChange:i=>{Object.keys(e.value).forEach(o=>{e.onChange(i,[...e.value_path,o])})}}),n=Mh(()=>e.value.enabled_gradient,[e.value.enabled_gradient]);return r.jsxs(Uw,{children:[r.jsx(t,{}),r.jsx(ut,{title:e.title,className:"mb-0"}),r.jsx(Yw,{children:Object.entries(e.value).map((i,o)=>{if(i[0]!=="enabled_gradient")return Fw(Gw,{...e,attributeKey:i[0],color:i[1],key:o,usingGradient:n})})})]})}function Gw(e){const{current:t}=ye(),n=Mh(()=>Se(e.color,t),[e.color,t]),i=Zw(o=>{e.onChange(o,[...e.value_path,e.attributeKey])},[e]);return r.jsx(Te,{title:e.attributeKey,style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:n,onChange:i,usingGradient:e.usingGradient})})}var Uw=m("div")({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"}),Yw=m("div").withConfig({displayName:"ColorGroupBuilder___StyledDiv2",componentId:"sc-d3agj8-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const Ih=["px","em","rem","%"],Th=({options:e=Ih,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:je(["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))})},I0=window.React.useCallback;function at({value:e,onChange:t=()=>!1,title:n="Dimension",units:i=Ih,min:o=0,max:a=100,hideUnitSelection:s=!1,step:l=1}){const c=Hi(f=>{t({...e,unit:f})},0),d=I0(f=>{c(f)},[c]),u=Hi(f=>{t({...e,value:f})},0),h=I0(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(Th,{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($h,{className:"w-2/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l})]})]})}const to=window.React.useMemo;function Jw(e){const{current:t}=ye(),n=to(()=>Se(e.value,t),[t,e.value]),i=to(()=>Se(e.default_value,t),[e.default_value,t]),o=to(()=>(i==null?void 0:i.min)??0,[i]),a=to(()=>(i==null?void 0:i.max)??100,[i]),{ResetInheritButton:s}=Wr({inputValue:{inputValue:e.value},onChange:e.onChange});return to(()=>r.jsxs(Xw,{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 Xw=m("div").withConfig({displayName:"DimensionBuilder___StyledDiv",componentId:"sc-k78v94-0"})({position:"relative"});const T0=window.React.useEffect,Qw=window.React.useState,qw="Select image",Kw="Use this image";function e9(e={}){const t=(e==null?void 0:e.title)??qw,n=(e==null?void 0:e.buttonText)??Kw,[i,o]=Qw(null);return T0(()=>{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]),T0(()=>()=>{window.jQuery("#brandy-upload-media").closest('[id^="__wp-uploader-id"]').remove()},[]),{media:i}}function Lh({value:e,onChange:t}){const{media:n}=e9({onSelect:t}),i=o=>{o.preventDefault(),n&&n.open()};return r.jsx(r.Fragment,{children:e?r.jsxs(t9,{className:"group",children:[r.jsxs(n9,{children:[r.jsx(r9,{}),e&&r.jsx(i9,{src:e})]}),r.jsx(o9,{onClick:i,children:"Change photo"})]}):r.jsx(a9,{onClick:i,children:"Select photo"})})}var t9=m("div")({position:"relative",display:"flex",width:"100%",flexDirection:"column",gap:"0.5rem"}),n9=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"}),r9=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"}}),i9=m("img")({height:"100%",width:"100%",objectFit:"contain"}),o9=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"}}),a9=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 L0=window.React.useMemo;function s9(e){const{current:t}=ye(),n=L0(()=>Se(e.value,t),[t,e.value]);return L0(()=>r.jsxs(l9,{children:[r.jsx(ut,{title:e.title}),r.jsx(Lh,{value:n,onChange:e.onChange})]}),[n,e.onChange,e.title])}var l9=m("div").withConfig({displayName:"ImageBuilder___StyledDiv",componentId:"sc-1enyrgi-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const c9=window.React;function I1(e){const{current:t}=ye(),{ResetInheritButton:n}=Wr({inputValue:{inputValue:e.value},onChange:e.onChange}),i=c9.useMemo(()=>Se(e.value,t),[t,e.value]);return r.jsxs(d9,{className:"switcher-builder",$_css2:[{marginBottom:"-4px",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},ue(["& + .switcher-builder{margin-top:8px;margin-bottom:0 !important;}"])],children:[r.jsxs(u9,{children:[r.jsx(n,{}),r.jsx(ut,{title:e.title,className:"!mb-0"})]}),r.jsx(C1,{checked:i,onChange:e.onChange}),e.description&&r.jsx(h9,{dangerouslySetInnerHTML:{__html:e.description}})]})}var d9=m("div")`${e=>e.$_css2}`,u9=m("div")({position:"relative"}),h9=m("div").withConfig({displayName:"SwitcherBuilder___StyledDiv3",componentId:"sc-10j4p3z-0"})({marginTop:"10px",width:"100%",fontSize:"12px",fontStyle:"italic"});const f9=window.React.createContext,br=window.React.useMemo,Oi=f9({});function p9({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=br(()=>e.font_size,[e]),u=br(()=>e.line_height,[e]),h=br(()=>e.letter_spacing,[e]),f=br(()=>e.font_style,[e.font_style]),g=br(()=>e.transform,[e.transform]),p=br(()=>e.decoration,[e.decoration]),v=br(()=>({fontSize:d,lineHeight:u,letterSpacing:h,fontStyle:f,transform:g,decoration:p,onChange:n,fontSizeMin:i,fontSizeMax:o,lineHeightMin:a,lineHeightMax:s,letterSpacingMin:l,letterSpacingMax:c}),[d,u,h,f,n,i,o,a,s,l,c,p,g]);return r.jsx(Oi.Provider,{value:v,children:t})}const g9=window.React.useContext,m9=window.React.useMemo;function v9(){const{current:e}=ye(),{fontSize:t,onChange:n,fontSizeMin:i,fontSizeMax:o}=g9(Oi),a=l=>{n("font_size",l)},s=m9(()=>Se(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(w9,{children:I("Font size")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var w9=m(ze).withConfig({displayName:"FontSize___StyledStyledSettingLabel",componentId:"sc-16fkzly-0"})({margin:"0px"});const x9=window.React.forwardRef,b9=window.React.useEffect,y9=window.React.useMemo,Nl=window.React.useRef,C9=window.React.useState,_9=window.ReactDOM.createPortal,S9=ue(["svg{*[fill]{","}*[stroke]{","}}"],{fill:"#2271B1"},{stroke:"#2271B1"}),Oc=[{name:"desktop",icon:r.jsx(lh,{})},{name:"tablet",icon:r.jsx(C6,{})},{name:"mobile",icon:r.jsx(ch,{})}],j9=x9(({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:Oc.map(i=>r.jsx(k9,{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&&S9],children:i.icon},i.name))}));function T1(){const{current:e,changeDevice:t}=ye(),[n,i]=C9(!1),o=f=>{t(f)},a=y9(()=>Oc.find(f=>f.name===e)??Oc[0],[e]),s=f=>{f.preventDefault(),i(g=>!g)},l=()=>{i(!1)},c=Nl(null),d=Nl(null),u=Nl(null),h=_9(n?r.jsx(j9,{currentDevice:e,onChange:o,ref:d}):!1,u.current??document.body);return b9(()=>{const f=g=>{var p,v;c.current==null&&d.current==null&&l(),!((p=c==null?void 0:c.current)!=null&&p.contains(g.target))&&!((v=d.current)!=null&&v.contains(g.target))&&l()};return window.jQuery(document).on("click","body",f),()=>{window.jQuery(document).off("click","body",f)}},[c.current,d.current]),r.jsxs("div",{className:"relative inline-flex",children:[r.jsx("div",{className:"w-[34px] m-auto transition-all ease-in-out duration-base cursor-pointer inline-flex justify-center",onClick:s,ref:c,children:a.icon},a.name),r.jsx("div",{className:"brandy-selection-popup",ref:u,children:h})]})}var k9=m("div").withConfig({displayName:"DeviceSwitcher___StyledDiv",componentId:"sc-1sdffvj-0"})(["",""],e=>e.$_css2);const Bc=[{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"}],E9=window.React.useContext,Ol=window.React.useMemo,D9=Bc.map(e=>({value:e.key,label:e.label}));function $9(){const{current:e}=ye(),{fontStyle:t,onChange:n}=E9(Oi),i=Ol(()=>{var l;return((l=Se(t,e))==null?void 0:l.weight)??400},[e,t]),o=Ol(()=>{var l;return((l=Se(t,e))==null?void 0:l.italic)??!1},[e,t]),a=Ol(()=>Bc.find(l=>l.weight===i&&l.italic===o),[i,o]),s=l=>{const c=Bc.find(d=>d.key===l);c&&n("font_style",{weight:c.weight,italic:c.italic})};return r.jsxs("div",{children:[r.jsxs(H9,{children:[r.jsx(M9,{children:I("Font style")}),r.jsx(T1,{})]}),r.jsx(pt,{options:D9,selected:(a==null?void 0:a.key)??"",onChange:s})]})}var H9=m("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"0.5rem"}),M9=m(ze).withConfig({displayName:"FontStyle___StyledStyledSettingLabel",componentId:"sc-7wg633-0"})({margin:"0px"});const I9=window.React.useContext,T9=window.React.useMemo;function L9(){const{current:e}=ye(),{letterSpacing:t,onChange:n,letterSpacingMin:i,letterSpacingMax:o}=I9(Oi),a=l=>{n("letter_spacing",l)},s=T9(()=>Se(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(A9,{children:I("Letter spacing")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var A9=m(ze).withConfig({displayName:"LetterSpacing___StyledStyledSettingLabel",componentId:"sc-1occtdz-0"})({margin:"0px"});const R9=window.React.useContext,N9=window.React.useMemo;function O9(){const{current:e}=ye(),{lineHeight:t,onChange:n,lineHeightMin:i,lineHeightMax:o}=R9(Oi),a=l=>{n("line_height",l)},s=N9(()=>Se(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(B9,{children:I("Line height")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var B9=m(ze).withConfig({displayName:"LineHeight___StyledStyledSettingLabel",componentId:"sc-15u33dd-0"})({margin:"0px"});const P9=window.React.useContext,A0=window.React.useMemo,gi=m.span({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center"}),V9=[{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"})})})}],z9=[{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 F9(){const{current:e}=ye(),{transform:t,decoration:n,onChange:i}=P9(Oi),o=A0(()=>Se(t,e)??"auto",[t,e]),a=A0(()=>Se(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(Z9,{children:I("Type")}),r.jsxs(W9,{children:[r.jsx(Mt,{canDeselect:!0,options:V9,selected:o,buttonStyle:"solid",onChange:s}),r.jsx(Mt,{canDeselect:!0,options:z9,selected:a,buttonStyle:"solid",onChange:l})]})]})}var Z9=m(ze)({marginBottom:"0.5rem"}),W9=m("div").withConfig({displayName:"Type___StyledDiv",componentId:"sc-1s138yn-0"})({display:"flex",gap:"1rem"});const G9=window.React.useEffect,Bl=window.React.useState;function Ah({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]=Bl(null),[u,h]=Bl(null),{styles:f,attributes:g}=Rn(c,u),[p,v]=Bl(!1),w=()=>{v(!0)},k=()=>{v(!1)};return G9(()=>{const D=E=>{c==null&&u==null&&k(),!(u!=null&&u.contains(E.target))&&!(c!=null&&c.contains(E.target))&&k()};return window.jQuery(document).on("click","body",D),()=>{window.jQuery(document).off("click","body",D)}},[c,u]),r.jsx(p9,{value:e,onChange:t,fontSizeMin:n,fontSizeMax:i,lineHeightMin:o,lineHeightMax:a,letterSpacingMin:s,letterSpacingMax:l,children:r.jsxs(U9,{children:[r.jsx(Y9,{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"}},p&&{outlineColor:"#000"}],children:r.jsx(J9,{children:r.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0017 2.62506L9.43025 0L2.14453 7.43766L4.71596 10.0627L12.0017 2.62506ZM4.71373 10.0622L2.1423 7.4371L1.28516 10.9372L4.71373 10.0622ZM6 12.6869H0V13.9995H6V12.6869Z",fill:"#A1ABB7"})})})}),p&&r.jsxs(X9,{className:"font-popup",ref:h,style:f.popper,...g.popper,$_css2:[{marginTop:"0.5rem",marginBottom:"0.5rem",minWidth:"280px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},{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($9,{}),r.jsx(v9,{}),r.jsx(O9,{}),r.jsx(L9,{}),r.jsx(F9,{})]})]})})}var U9=m("div")({position:"relative"}),Y9=m("div")`${e=>e.$_css}`,J9=m("span")({position:"relative",display:"inline-block"}),X9=m("div").withConfig({displayName:"TypographyPicker___StyledDiv3",componentId:"sc-wkun31-0"})(["",""],e=>e.$_css2);const Q9=window.React,q9=window.React.useCallback,R0={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 K9(e){const t=Q9.useMemo(()=>e.value,[e.value]),n=q9((o,a)=>{e.onChange(a,[...e.value_path,o],void 0,!0)},[e]),{ResetInheritButton:i}=Wr({inputValue:e.value??R0,onChange:o=>{Object.keys(e.value).forEach(a=>{e.onChange(o,[...e.value_path,a])})}});return r.jsxs(e7,{children:[r.jsx(i,{}),r.jsx(ut,{title:e.title,className:"mb-0"}),r.jsx(Ah,{value:t??R0,onChange:n})]})}var e7=m("div").withConfig({displayName:"TypographyBuilder___StyledDiv",componentId:"sc-1r71o9z-0"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"});const t7=window.React.useContext,N0=m.span.withConfig({displayName:"EnabledDevices__StyledOptionLabel",componentId:"sc-1joegxg-0"})({display:"flex",alignItems:"center",gap:"0.5rem"}),n7=[{value:"desktop",label:r.jsxs(N0,{children:[r.jsx(lh,{}),r.jsx("span",{children:"Desktop"})]})},{value:"mobile",label:r.jsxs(N0,{children:[r.jsx(ch,{}),r.jsx("span",{children:"Tablet/Mobile"})]})}];function r7(e){const{builder:t}=t7(qt),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:n7,onChange:n,selected:e.value,buttonStyle:"solid"})]})}const i7=window.React.useMemo;function L1(e){const{current:t}=ye(),n=i7(()=>Se(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 o7=window.React.useMemo;function a7(e){const{current:t}=ye(),n=o7(()=>Se(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 s7=window.React.useState,O0=["left","top","bottom","right"];function ta({value:e,onChange:t,title:n="Spacing",units:i=["px","em","rem","%"],aspectTitles:o=null,description:a=""}){const s=h=>{t({...e,unit:h})},l=h=>f=>{if(typeof f=="string"&&f!=""&&e.unit!=="wp")return;const g={...e};e.is_constraints?(g.top=f,g.left=f,g.bottom=f,g.right=f):g[h]=f,t(g)},c=()=>{const h={...e,is_constraints:!e.is_constraints};h.is_constraints&&(h.right=e.left,h.bottom=e.left,h.top=e.left),t(h)},[d,u]=s7(()=>{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(Th,{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:O0.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(Te,{title:"Use theme presets",children:r.jsx("span",{className:"cursor-pointer",onClick:()=>{u(g=>(g[f]=!g[f],[...g]))},children:d[f]?c7:l7})})})]}),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(g=>({value:`var(--wp--preset--spacing--${g.slug})`,label:`WP spacing ${g.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:[O0.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 l7=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"})]}),c7=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"})]}),d7=window.React.useMemo;function u7(e){const{current:t}=ye(),n=d7(()=>Se(e.value,t),[t,e.value]),{ResetInheritButton:i}=Wr({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs(h7,{children:[r.jsx(ta,{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 h7=m("div").withConfig({displayName:"SpacingBuilder___StyledDiv",componentId:"sc-8ikjor-0"})({position:"relative"});const f7=window.React.useMemo,ka=m.span.withConfig({displayName:"AlignmentBuilder__StyledOptionItem",componentId:"sc-1i3hi1g-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),p7=[{value:"left",label:r.jsxs(ka,{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(ka,{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(ka,{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(ka,{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 g7(e){const t=f7(()=>(e.available_alignments??["left","center","right"]).map(n=>p7.find(i=>i.value===n)).filter(n=>n!=null),[e.available_alignments]);return r.jsx(hr,{...e,options:t})}const m7=window.React.useMemo,Pl=m.span.withConfig({displayName:"PositionBuilder__StyledOptionItem",componentId:"sc-vce992-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),v7=[{value:"left",label:r.jsxs(Pl,{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(Pl,{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(Pl,{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 w7(e){const t=m7(()=>(e.available_positions??["left","bottom","right"]).map(n=>v7.find(i=>i.value===n)??null).filter(n=>n!=null),[e.available_positions]);return r.jsx(hr,{...e,options:t})}const x7=window.React.useMemo;function A1(e){const{current:t}=ye(),n=x7(()=>Se(e.value,t),[t,e.value]),{ResetInheritButton:i}=Wr({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(b7,{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 b7=m("div").withConfig({displayName:"DropdownBuilder___StyledDiv",componentId:"sc-133xc9-0"})({position:"relative"});const y7=window.React.useMemo;function C7(e){const{current:t}=ye(),n=y7(()=>Se(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 _7=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"}}} `,S7=[{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 j7({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(H7,{children:[r.jsx(ze,{children:r.jsx(M7,{children:"Position"})}),r.jsx(pt,{options:S7,selected:e,onChange:n,style:{width:200}})]})}const k7=[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}];function E7({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(I7,{children:[r.jsx(ze,{children:r.jsx(T7,{children:"Size"})}),r.jsx(pt,{options:k7,selected:e,onChange:n,style:{width:200}})]})}function D7({value:e,onChange:t}){const n=i=>{Array.isArray(i)||t(i)};return r.jsxs(L7,{children:[r.jsx(ze,{children:r.jsx(A7,{children:"Overlay color"})}),r.jsx(Ee,{color:e,onChange:n})]})}const no=m.div({padding:"10px"});function $7({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(_7,{children:r.jsx(Lh,{value:e.url,onChange:n("url")})}),e.url&&r.jsxs(r.Fragment,{children:[r.jsx(no,{children:r.jsx(D7,{value:e.overlay_color,onChange:n("overlay_color")})}),r.jsx(no,{children:r.jsx(E7,{value:e.size,onChange:n("size")})}),r.jsx(no,{children:r.jsx(j7,{value:e.position,onChange:n("position")})}),e.position==="custom"&&r.jsxs(r.Fragment,{children:[r.jsx(no,{children:r.jsx(at,{min:e.top.min,max:e.top.max,value:e.top,title:r.jsx(ze,{children:r.jsx(R7,{children:"Top"})}),onChange:n("top")})}),r.jsx(no,{children:r.jsx(at,{min:e.left.min,max:e.left.max,value:e.left,title:r.jsx(ze,{children:r.jsx(N7,{children:"Left"})}),onChange:n("left")})})]})]})]})}var H7=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),M7=m("span")({fontSize:"13px"}),I7=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),T7=m("span")({fontSize:"13px"}),L7=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),A7=m("span")({fontSize:"13px"}),R7=m("span")({fontSize:"13px"}),N7=m("span").withConfig({displayName:"Image___StyledSpan5",componentId:"sc-1ul140t-0"})({fontSize:"13px"});const O7=window.React.createContext,B7=window.React.useEffect,nr=window.React.useMemo,Vl=window.React.useState,P7=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],V7=O7({});function z7({value:e,onChange:t=()=>!1}){const n=nr(()=>e.type,[e.type]),i=nr(()=>e.solid_color,[e.solid_color]),o=nr(()=>e.gradient_color,[e.gradient_color]),a=nr(()=>e.image,[e.image]),s=nr(()=>{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=nr(()=>n==="image"?{backgroundImage:`url(${a.url})`,backgroundPosition:"center",backgroundSize:"contain"}:{background:n==="solid"?i:o},[n,i,o,a]),[c,d]=Vl(null),[u,h]=Vl(null),{styles:f,attributes:g}=Rn(c,u),[p,v]=Vl(!1),w=()=>{v(!0)},k=()=>{v(!1)};B7(()=>{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 D=nr(()=>e.type==="solid"?445:e.type==="gradient"?530:e.image.url===""?150:500,[e.type,e.image.url]),E=nr(()=>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(V7.Provider,{value:s,children:r.jsxs(F7,{children:[r.jsx(Z7,{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"},p&&{outlineColor:"#1e1e1e"},E&&ue(["background:linear-gradient(45deg,#e0e0e3 25%,transparent 25%),linear-gradient(-45deg,#e0e0e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e0e3 75%),linear-gradient(-45deg,transparent 75%,#e0e0e3 75%) !important;background-size:4px 4px !important;background-position:0 0,0 10px,10px -10px,-10px 0px !important;"])],children:E&&r.jsx(W7,{children:r.jsx(dh,{})})}),p&&r.jsx(G7,{ref:h,style:f.popper,...g.popper,$_css3:[{marginTop:"0.5rem",marginBottom:"0.5rem",maxHeight:"700px",width:"314px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},{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(Yn,{className:"color-picker-popup",style:{height:D},autoHide:!0,children:[r.jsx(U7,{children:r.jsx(Mt,{options:P7,selected:n,onChange:s.changeType})}),r.jsxs("div",{children:[n==="solid"&&r.jsx(_h,{color:i,onChange:s.changeSolidColor}),n==="gradient"&&r.jsx(Ch,{value:o,onChange:s.changeGradientColor}),n==="image"&&r.jsx($7,{value:a,onChange:s.changeImage})]})]})})]})})}var F7=m("div")({position:"relative"}),Z7=m("div")`${e=>e.$_css2}`,W7=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%"}),G7=m("div")`${e=>e.$_css3}`,U7=m("div").withConfig({displayName:"BackgroundPicker___StyledDiv4",componentId:"sc-1vzs4ya-0"})({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"});const Y7=window.React.useMemo;function J7(e){const{current:t}=ye(),n=Y7(()=>Se(e.value,t),[t,e.value]),i=(o,a)=>{e.onChange({...n,[a]:o})};return r.jsxs(X7,{children:[r.jsx(ut,{title:e.title,className:"mb-0"}),r.jsxs(Q7,{children:[r.jsx(qs,{...e,reset_paths:[e.value_path],title:null,reset_action:"row_settings"}),r.jsx(z7,{value:n,onChange:i})]})]})}var X7=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Q7=m("div").withConfig({displayName:"BackgroundBuilder___StyledDiv2",componentId:"sc-18ksi7m-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const q7=window.React.useMemo,zl=m.span.withConfig({displayName:"VerticalAlignmentBuilder__StyledOptionItem",componentId:"sc-16og1d2-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),K7=[{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 ex(e){const t=q7(()=>K7.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(hr,{...e,options:t})}const tx=window.React.useMemo;function nx(e){return tx(()=>r.jsxs("div",{children:[r.jsx(rx,{children:r.jsx(ut,{className:je(["mb-0"]),title:e.title})}),e.content&&r.jsx("div",{dangerouslySetInnerHTML:{__html:e.content}})]}),[e.content,e.title])}var rx=m("div").withConfig({displayName:"FlexibleBuilder___StyledDiv",componentId:"sc-17nqz4o-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const ix=window.React.useMemo,Fl=m.span.withConfig({displayName:"HorizontalAlignmentBuilder__StyledOptionItem",componentId:"sc-1ebs2zw-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),ox=[{value:"left",label:r.jsxs(Fl,{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(Fl,{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(Fl,{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 ax(e){const t=ix(()=>ox.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(hr,{...e,options:t})}const sx=window.React.useEffect,Rh=[[{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:''}]],lx=Rh.reduce((e,t)=>[...e,t.map(n=>n.key).join(" ")],[]).join(" | "),cx=Rh.reduce((e,t)=>[...e,...t],[]);function dx({id:e,value:t,onChange:n}){sx(()=>{var a,s,l,c;window.wp.editor.initialize(e,{tinymce:{class:"brandy-tinymce",toolbar1:lx,style_formats_merge:!0,style_formats:[{title:"Font Weights",items:[{title:"Light (300)",inline:"span",styles:{"font-weight":"300"}},{title:"Normal (400)",inline:"span",styles:{"font-weight":"400"}},{title:"Medium (500)",inline:"span",styles:{"font-weight":"500"}},{title:"Semi Bold (600)",inline:"span",styles:{"font-weight":"600"}},{title:"Bold (700)",inline:"span",styles:{"font-weight":"700"}},{title:"Extra Bold (800)",inline:"span",styles:{"font-weight":"800"}}]}],fontsize_formats:"8px 9px 10px 11px 12px 13px 14px 15px 16px 18px 21px 24px 30px 36px 40px 70px",textcolor_map:[...(((s=(a=window.brandyCustomizerData.theme_settings.color)==null?void 0:a.palette)==null?void 0:s.theme)??[]).reduce((d,u)=>[...d,u.color.replace("#",""),u.name],[])],font_formats:(((c=(l=window.brandyCustomizerData.theme_settings.typography)==null?void 0:l.fontFamilies)==null?void 0:c.theme)??[]).map(d=>`${d.name}=${d.fontFamily};`).join("")+"Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Oswald=oswald; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats"},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"}});const o=window.tinymce.get(e);return o.on("init",()=>{var f,g;o.setContent(t);const d=document.querySelector(`#customize-editor-${e}`);if(d==null)return;d.querySelectorAll(".mce-btn-group .mce-btn").forEach((p,v)=>{var k;const w=cx[v];if(w){if(["fontsizeselect","formatselect","styleselect"].includes(w.key)){const D=new DOMParser().parseFromString(w.icon,"image/svg+xml").documentElement;(k=p.querySelector(".mce-caret"))==null||k.replaceWith(D);return}if(["forecolor","backcolor"].includes(w.key))return;p.innerHTML=w.icon}});const h=document.createElement("button");h.className="insert-media add_media brandy-insert-media",h.innerHTML="+ Add media",(g=(f=d.querySelector(".mce-last.mce-btn-group"))==null?void 0:f.parentElement)==null||g.appendChild(h)}),o.on("change",()=>{n(o.getContent())}),o.on("keyup undo redo",()=>{n(o.getContent())}),()=>{var d;window.wp.editor.remove(e),(d=document.querySelector(".ui-menu.ui-widget"))==null||d.remove()}},[]);const i=o=>{n(o.target.value)};return r.jsx("div",{className:"brandy-customize-editor",id:`customize-editor-${e}`,children:r.jsx("textarea",{value:t,id:e,onChange:i,className:"brandy-editor-textarea"})})}const ux=window.React.useMemo;function Nh({id:e,value:t,onChange:n}){const i=ux(()=>t,[t]),o=l=>{n(l),s(l)},s=Hi(l=>l,200);return r.jsx(dx,{id:e,onChange:o,value:i})}const hx=window.React.useMemo,fx=window.React.useState;function px(e){const t=hx(()=>e.prefilleds??[],[e.prefilleds]),n=a=>{const s=window.tinymce.get(e.sectionId);s&&s.setContent(a),e.onChange(a)},[i,o]=fx(!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(Nh,{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(gx,{children:e.description})]})}var gx=m("div").withConfig({displayName:"PrefilledHTML___StyledDiv",componentId:"sc-uzr3vx-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});function mx(e){return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsx(Nh,{value:e.value,onChange:e.onChange,id:e.sectionId,toolbars:""}),e.description&&r.jsx(vx,{children:e.description})]},e.sectionId)}var vx=m("div").withConfig({displayName:"HTMLBuilder___StyledDiv",componentId:"sc-kly0zw-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});const wx=window.React.useState;function xx(e){const[t,n]=wx(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{__:B0}=window.wp.i18n,{__experimentalLibrary:bx}=window.wp.blockEditor;function yx({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:B0("Add a block")}),r.jsx("button",{className:"customize-widgets-layout__inserter-panel-header-close-button w-[24px] h-[24px]",onClick:e,"aria-label":B0("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(bx,{onSelect:e})})]})}const Cx=window.React.useContext,_x=window.ReactDOM.createPortal;function Sx(){const{inserter:e,sidebar:t}=Cx(z1),{isOpen:n,openInserter:i,closeInserter:o,toggleInserter:a}=xx(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=_x(n?r.jsx(yx,{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:je(["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:je(["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 jx=window.React.useEffect,{useDispatch:kx,useSelect:Ex}=window.wp.data,{store:P0}=window.wp.blockEditor;function Dx(e,t){const{hasSelectedBlock:n,hasMultiSelection:i}=Ex(P0),{clearSelectedBlock:o}=kx(P0);jx(()=>{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 $x(e,t){return e==null||e!==e?t:e}var Hx=$x;const Mx=Xt(Hx),Ix=window.React.useMemo,{useSelect:Tx}=window.wp.data,{store:Lx}=window.wp.coreData,{uploadMedia:Ax}=window.wp.mediaUtils;function Oh(){const e=window.brandyWidgetsBlockEditorSettings,{hasUploadPermission:t}=Tx(i=>({hasUploadPermission:Mx(i(Lx).canUser("create","media"),!0)}));return{settings:Ix(()=>{let i;return t&&(i=({onError:o,...a})=>{Ax({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:s})=>o(s),...a})}),{...e,mediaUpload:i,__unstableHasCustomAppender:!0,keepCaretInsideBlock:!0}},[t])}}var Rx=200,R1="__lodash_hash_undefined__",Nx=1/0,Bh=9007199254740991,Ox="[object Arguments]",Bx="[object Function]",Px="[object GeneratorFunction]",Vx="[object Symbol]",zx=/[\\^$.*+?()[\]{}|]/g,Fx=/^\[object .+?Constructor\]$/,Zx=/^(?:0|[1-9]\d*)$/,Wx=typeof ot=="object"&&ot&&ot.Object===Object&&ot,Gx=typeof self=="object"&&self&&self.Object===Object&&self,N1=Wx||Gx||Function("return this")();function Ux(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 Yx(e,t){var n=e?e.length:0;return!!n&&Qx(e,t,0)>-1}function Jx(e,t,n){for(var i=-1,o=e?e.length:0;++i-1}function bb(e,t){var n=this.__data__,i=el(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Pi.prototype.clear=mb;Pi.prototype.delete=vb;Pi.prototype.get=wb;Pi.prototype.has=xb;Pi.prototype.set=bb;function Vi(e){var t=-1,n=e?e.length:0;for(this.clear();++t=Rx&&(a=tb,s=!1,t=new ls(t));e:for(;++o0&&n(l)?t>1?Fh(l,t-1,n,i,o):O1(o,l):i||(o[o.length]=l)}return o}function Hb(e,t,n){var i=t(e);return P1(e)?i:O1(i,n(e))}function Mb(e){if(!V1(e)||zb(e))return!1;var t=Uh(e)||rb(e)?ab:Fx;return t.test(Gb(e))}function Ib(e){if(!V1(e))return Zb(e);var t=Fb(e),n=[];for(var i in e)i=="constructor"&&(t||!Bi.call(e,i))||n.push(i);return n}function Tb(e,t){return e=Object(e),Lb(e,t,function(n,i){return i in e})}function Lb(e,t,n){for(var i=-1,o=t.length,a={};++i-1&&e%1==0&&e-1&&e%1==0&&e<=Bh}function V1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Yh(e){return!!e&&typeof e=="object"}function Xb(e){return typeof e=="symbol"||Yh(e)&&B1.call(e)==Vx}function Qb(e){return Gh(e)?Db(e,!0):Ib(e)}var qb=Ab(function(e,t){return e==null?{}:(t=Ph(Fh(t,1),Wb),Tb(e,$b(Rb(e),t)))});function Jh(){return[]}var Kb=qb;const ey=Xt(Kb),{serialize:ty,parse:ny,createBlock:Wl}=window.wp.blocks,{addWidgetIdToBlock:ry}=window.wp.widgets;function W0(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:ty(e)}}};return{...ey(t,["form","rendered"]),...n}}function G0({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=ny(l.content);o=d.length?d[0]:Wl("core/paragraph",{})}else n?o=Wl("core/legacy-widget",{idBase:t,instance:{encoded:a,hash:s,raw:l,...c}}):o=Wl("core/legacy-widget",{id:e});return ry(o,e)}const iy=window.React.useCallback,oy=window.React.useEffect,ay=window.React.useState,{isShallowEqualArrays:Ea}=window.wp.isShallowEqual,{getWidgetIdFromBlock:Gl,addWidgetIdToBlock:sy}=window.wp.widgets;function ly(e){const[t,n]=ay(e.getWidgets().map(o=>G0(o)));oy(()=>e.subscribe((o,a)=>{n(s=>{const l=new Map(o.map(u=>[u.id,u])),c=new Map(s.map(u=>[Gl(u),u])),d=a.map(u=>{const h=l.get(u.id);return h&&h===u?c.get(u.id):G0(u)});return Ea(s,d)?s:d})}),[e]);const i=iy(o=>{n(a=>{if(Ea(a,o))return a;const s=new Map(a.map(d=>[Gl(d),d])),l=o.map(d=>{const u=Gl(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:W0(d,f)}return W0(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]=sy(u,f)),d},o)})},[e]);return{blocks:t,updateBlocks:i}}const{BlockList:cy,BlockTools:dy,BlockSelectionClearer:uy,CopyHandler:hy,ObserveTyping:fy,WritingFlow:py,__unstableEditorStyles:gy,ButtonBlockAppender:my}=window.wp.blockEditor;function vy(){const{settings:e}=Oh();return r.jsx("div",{className:"brandy-widget-content__inspector",children:r.jsx(hy,{children:r.jsxs(dy,{children:[r.jsx(gy,{styles:[...e.defaultEditorStyles,{css:"body{font-size: 13px !important;}"}]}),r.jsx(uy,{children:r.jsx(py,{className:"editor-styles-wrapper",children:r.jsx(fy,{children:r.jsx(cy,{renderAppender:my})})})})]})})})}const wy=window.React.useEffect,{useShortcut:Ul,store:xy}=window.wp.keyboardShortcuts,{useDispatch:by}=window.wp.data;function Vc({undo:e,redo:t,save:n}){return Ul("core/customize-widgets/undo",i=>{e(),i.preventDefault()}),Ul("core/customize-widgets/redo",i=>{t(),i.preventDefault()}),Ul("core/customize-widgets/save",i=>{i.preventDefault(),n()}),null}function yy(){const{registerShortcut:e,unregisterShortcut:t}=by(xy);return wy(()=>(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}Vc.Register=yy;const Cy=window.React.useContext,{__unstableBlockSettingsMenuFirstItem:_y}=window.wp.blockEditor,{MenuItem:Sy}=window.wp.components;function jy(){const{inspector:e}=Cy(z1);return r.jsx(_y,{children:({onClose:t})=>r.jsx(Sy,{onClick:()=>{e.open(),t()},inspector:e,children:"Show more settings"})})}const ky=ue` ${{"--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))"}} } `,Ey=ue` &:after { content: ""; ${{position:"absolute",bottom:"-1px",left:"50%",height:"3px",width:"100%","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",backgroundColor:"transparent",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"0.2s"}} } `,Dy=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))"},Ey,e&&ky]);function $y({current:e,items:t,onChange:n,styledCSS:i}){return r.jsx(Hy,{$_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(Dy,{onClick:()=>{n(a)},isActive:e===a,className:e===a?"active":"",children:o},a))})}var Hy=m("div").withConfig({displayName:"Tabs___StyledDiv",componentId:"sc-1e1ax13-1"})(["",""],e=>e.$_css2);const U0=window.React.useMemo,My=window.React.useState,Iy=[{label:"General",key:"general"},{label:"Designs",key:"designs"}];function zi(e){const t=U0(()=>(e==null?void 0:e.items)??Iy,[e]),[n,i]=My(t[0].key);return{contextHolder:U0(()=>r.jsx($y,{items:t,current:n,onChange:i}),[t,n,i]),items:t,currentTab:n,setCurrentTab:i}}const Ty=window.React.useMemo;function Jn({title:e,onGoBack:t,hasBottomPart:n=!0,builder:i}){const o=ne(i??"header"),a=o(h=>h.chosenElement),s=o(h=>h.previewTemplate.id),l=o(h=>h.resetTemplate),c=o(h=>h.resetElement),d=()=>{a?c(a.id):l()},u=Ty(()=>s?[...i==="header"?window.brandyNichesHeaders:window.brandyNichesFooters,...Object.values(i==="header"?window.brandyHeaderPresets:window.brandyFooterPresets)].find(f=>f.id===s)!==void 0:!1,[s]);return r.jsxs(r.Fragment,{children:[r.jsxs(Ly,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(Ay,{children:[e??r.jsxs(r.Fragment,{children:[r.jsxs(Ry,{children:[I("Customizing")," ▸ ",I("Not found")]}),r.jsx(Ny,{children:I("Not found")})]}),u&&r.jsx(Oy,{onClick:d,children:I("Reset to default")})]})]}),n&&r.jsx(By,{})]})}var Ly=m("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))"}),Ay=m("div")({height:"100%",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"0.75rem"}),Ry=m("div")({fontSize:"13px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Ny=m("div")({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"}),Oy=m("p")({marginTop:"0.5rem",cursor:"pointer","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity))"}),By=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 Py=window.React,Vy=window.React.memo,zy=window.React.useCallback,Xh=window.React.useContext,Qh=window.React.useMemo,et=Py.createContext({});function Fy(e){const{builder:t}=Xh(qt),n=ne(t)(l=>l.deselectSection),i=ne(t)(l=>{var c,d;return((c=l.chosenElement)==null?void 0:c.title)??((d=window.brandyElements[e.elementId])==null?void 0:d.title)??""}),o=ne(t)(l=>{var c,d;return((d=(c=l.previewTemplate)==null?void 0:c.settings)==null?void 0:d.name)??t}),a=zy(()=>{zt(),n()},[zt,n]),s=Qh(()=>({builder:t,goBack:a}),[t,a]);return r.jsxs(et.Provider,{value:s,children:[r.jsx(Jn,{onGoBack:a,builder:t,title:r.jsxs(r.Fragment,{children:[r.jsxs(Gy,{children:[I("Customizing")," ▸ ",o]}),r.jsx(Uy,{children:i||"Not found"})]})}),r.jsx(Wy,{elementId:e.elementId,clonedFromId:e.clonedFromId})]})}function Zy({elementId:e,clonedFromId:t}){const{builder:n}=Xh(et),{contextHolder:i,currentTab:o}=zi(),a=ne(n)(c=>{var d;return((d=c.chosenElement)==null?void 0:d.settings)??{}}),s=ne(n)(c=>c.changeElementSettings),l=Qh(()=>{var c;return((c=window.brandySettingsLayouts[t??e])==null?void 0:c[o].sections)??[]},[e,o]);return l.length===0?!1:r.jsxs(r.Fragment,{children:[i,r.jsx(p1,{children:l.map((c,d)=>r.jsx(ia,{section:c,sectionKey:`${o}-${d}`,sectionId:e,settings:a,onChange:s,builder:n,clonedFromId:t},`${o}-${d}`))})]})}const Wy=Vy(Zy);var Gy=m("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),Uy=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 Yy=window.React.createContext,Jy=window.React.useContext,Xy=window.React.useEffect,ro=window.React.useMemo,Qy=window.React.useRef,Y0=window.ReactDOM.createPortal,{BlockEditorKeyboardShortcuts:qy,BlockEditorProvider:Ky,BlockInspector:eC}=window.wp.blockEditor,{ShortcutProvider:tC}=window.wp.keyboardShortcuts,{SlotFillProvider:nC,Popover:rC}=window.wp.components,{removeFilter:iC}=window.wp.hooks;iC("editor.BlockEdit","core/customize-widgets/block-edit");const z1=Yy({});function oC(e){const{builder:t}=Jy(et),n=ro(()=>`${t}_${e.sectionId}`,[e.sectionId,t]),i=ro(()=>window.wp.customize.control(`sidebars_widgets[${n}]`),[n]),{blocks:o,updateBlocks:a}=ly(i.sidebarAdapter),{settings:s}=Oh(),l=Qy(null);Dx(i,l);const c=ro(()=>`#sub-accordion-section-widgets-inspector-sidebar-widgets-${n}`,[n]),d=ro(()=>`#sub-accordion-section-sidebar-widgets-${n}`,[n]),u=ro(()=>({inserter:i.inserter,sidebar:i.sidebarAdapter,inspector:i.inspector}),[i]);Xy(()=>{var p;return(p=document.querySelector(d))==null||p.remove(),u.inspector.triggerActiveCallbacks=()=>{},()=>{u.inserter.close()}},[]);const h=Y0(r.jsx("div",{className:"customize-widgets-popover",ref:l,children:r.jsx(rC.Slot,{})}),document.body),f=p=>{a(p)},g=p=>{a(p)};return r.jsx(z1.Provider,{value:u,children:r.jsxs(nC,{children:[r.jsx("div",{className:"brandy-block-inspector",children:r.jsxs(tC,{children:[r.jsx(qy.Register,{}),r.jsx(Vc.Register,{}),r.jsxs(Ky,{value:o,onChange:f,onInput:g,useSubRegistry:!1,settings:s,children:[r.jsx(Vc,{undo:u.sidebar.undo,redo:u.sidebar.redo,save:u.sidebar.save}),r.jsx(Sx,{}),r.jsx(vy,{}),Y0(r.jsx("form",{className:"hehehihi",onSubmit:p=>p.preventDefault(),children:r.jsx(eC,{})}),document.querySelector(c)??document.body)]}),r.jsx(jy,{})]})}),h]})})}const aC=window.React.useMemo;function sC(e){return aC(()=>r.jsx(oC,{sectionId:e.sectionId}),[])}const lC=window.React.useEffect,J0=window.React.useMemo,Yl=window.React.useState;function cC({options:e,selected:t,onChange:n=()=>!1,style:i={}}){const[o,a]=Yl(null),[s,l]=Yl(null),{styles:c,attributes:d}=Rn(o,s),[u,h]=Yl(!1),f=J0(()=>(o==null?void 0:o.getBoundingClientRect().width)??0,[o]),g=()=>{h(E=>!E)},p=()=>{h(!1)};lC(()=>{const E=_=>{(o==null||s==null)&&p(),!(o!=null&&o.contains(_.target))&&!(s!=null&&s.contains(_.target))&&p()};return window.jQuery(document).on("click","body",E),()=>{window.jQuery(document).off("click","body",E)}},[o,s]);const v=E=>{const _=t.indexOf(E);let H=[];_===-1?H=[...t,E]:H=t.filter(x=>x!==E),n(H)},w=E=>{const _=t.filter(H=>H!==E);n(_)},k=E=>t.includes(E),D=J0(()=>e.length*47>300?300:e.length*47,[e]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:je(["brandy-select__selector","w-full min-h-[40px] px-[12px] py-[3px] bg-gutenberg-white","flex justify-between items-center","border border-brandy-border-light","rounded-base cursor-pointer"]),ref:a,onClick:g,children:[r.jsx("span",{className:"brandy-select__selection-item min-h-[15px] text-brandy-text overflow-hidden text-ellipsis whitespace-nowrap flex flex-wrap",children:t.length>0?t.map(E=>{const _=e.find(H=>H.value===E);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"})})]},E)})}):"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:je(["my-2 z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Yn,{autoHide:!0,className:"bg-gutenberg-white",style:{height:D},children:r.jsx("div",{className:"p-[5px] flex flex-col gap-[5px]",children:e.map(E=>r.jsxs(dC,{className:"brandy-select__option-content","data-value":E.value,onClick:()=>v(E.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(E.value)&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity)) !important"}],children:[E.label,k(E.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"})})]},E.value))})})})]})}var dC=m("div").withConfig({displayName:"MultipleSelect___StyledDiv",componentId:"sc-k7vdlx-0"})(["",""],e=>e.$_css);const uC=window.React.useMemo;function hC(e){const{current:t}=ye(),n=uC(()=>Se(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(ut,{title:e.title}),r.jsx(cC,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx(fC,{dangerouslySetInnerHTML:{__html:e.description}})]})}var fC=m("div").withConfig({displayName:"MultipleSelectBuilder___StyledDiv",componentId:"sc-eadnfz-0"})({marginTop:"0.5rem",fontSize:"12px",fontStyle:"italic"}),qh={exports:{}};/**! * Sortable 1.15.3 * @author RubaXa * @author owenm * @license MIT */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 Ln(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function mC(e,t){if(e==null)return{};var n=gC(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 vC(e){return wC(e)||xC(e)||bC(e)||yC()}function wC(e){if(Array.isArray(e))return zc(e)}function xC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bC(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 nf(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&&cs(e,t):cs(e,t))||i&&e===n)return e;if(e===n)break}while(e=nf(e))}return null}var q0=/\s+/g;function Ke(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(q0," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(q0," ")}}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 Ir(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 rf(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===In())break;i=lr(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=mC(i,$C);ra.pluginEvent.bind(ge)(t,n,Ln({dragEl:q,parentEl:rt,ghostEl:xe,rootEl:Je,nextEl:Sr,lastDownEl:Ua,cloneEl:qe,cloneHidden:ar,dragStarted:fo,putSortable:xt,activeSortable:ge.active,originalEvent:o,oldIndex:fi,oldDraggableIndex:jo,newIndex:Gt,newDraggableIndex:or,hideGhostForTarget:uf,unhideGhostForTarget:hf,cloneNowHidden:function(){ar=!0},cloneNowShown:function(){ar=!1},dispatchSortableEvent:function(l){Ht({sortable:n,name:l,originalEvent:o})}},a))};function Ht(e){ho(Ln({putSortable:xt,cloneEl:qe,targetEl:q,rootEl:Je,oldIndex:fi,oldDraggableIndex:jo,newIndex:Gt,newDraggableIndex:or},e))}var q,rt,xe,Je,Sr,Ua,qe,ar,fi,Gt,jo,or,Da,xt,ci=!1,ds=!1,us=[],yr,yn,ql,Kl,nu,ru,fo,oi,ko,Eo=!1,$a=!1,Ya,jt,ec=[],Fc=!1,hs=[],nl=typeof document<"u",Ha=Kh,iu=na||Xn?"cssFloat":"float",HC=nl&&!ef&&!Kh&&"draggable"in document.createElement("div"),lf=function(){if(nl){if(Xn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),cf=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)+Ue(a).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Ue(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[iu]==="none"||s&&i[iu]==="none"&&d+u>o)?"vertical":"horizontal"},MC=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},IC=function(t,n){var i;return us.some(function(o){var a=o[bt].options.emptyInsertThreshold;if(!(!a||F1(o))){var s=Ue(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},df=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||Ga(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},uf=function(){!lf&&xe&&se(xe,"display","none")},hf=function(){!lf&&xe&&se(xe,"display","")};nl&&!ef&&document.addEventListener("click",function(e){if(ds)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ds=!1,!1},!0);var Cr=function(t){if(q){t=t.touches?t.touches[0]:t;var n=IC(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)}}},TC=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 cf(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};ra.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);df(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:HC,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)),us.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),mn(this,kC())}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(VC(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)&&Ua!==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}),Lt("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}),Lt("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=Ue(i);if(Je=a,q=i,rt=q.parentNode,Sr=q.nextSibling,Ua=i,Da=s.group,ge.dragged=q,yr={target:q,clientX:(n||t).clientX,clientY:(n||t).clientY},nu=yr.clientX-d.left,ru=yr.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,q.style["will-change"]="all",c=function(){if(Lt("delayEnded",o,{evt:t}),ge.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Q0&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(t,n),Ht({sortable:o,name:"choose",originalEvent:t}),Ke(q,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){rf(q,u.trim(),tc)}),He(l,"dragover",Cr),He(l,"mousemove",Cr),He(l,"touchmove",Cr),He(l,"mouseup",o._onDrop),He(l,"touchend",o._onDrop),He(l,"touchcancel",o._onDrop),Q0&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),Lt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(na||Xn))){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&&tc(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(Je,"dragstart",this._onDragStart));try{document.selection?Ja(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ci=!1,Je&&q){Lt("dragStarted",this,{evt:n}),this.nativeDraggable&&He(document,"dragover",TC);var i=this.options;!t&&Ke(q,i.dragClass,!1),Ke(q,i.ghostClass,!0),ge.active=this,t&&this._appendGhost(),Ht({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(yn){this._lastX=yn.clientX,this._lastY=yn.clientY,uf();for(var t=document.elementFromPoint(yn.clientX,yn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(yn.clientX,yn.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:yn.clientX,clientY:yn.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=nf(n));hf()}},_onTouchMove:function(t){if(yr){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=xe&&Ir(xe,!0),l=xe&&s&&s.a,c=xe&&s&&s.d,d=Ha&&jt&&eu(jt),u=(a.clientX-yr.clientX+o.x)/(l||1)+(d?d[0]-ec[0]:0)/(l||1),h=(a.clientY-yr.clientY+o.y)/(c||1)+(d?d[1]-ec[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:Je,originalEvent:t}),Ht({sortable:this,name:"remove",toEl:rt,originalEvent:t}),Ht({rootEl:rt,name:"sort",toEl:rt,fromEl:Je,originalEvent:t}),Ht({sortable:this,name:"sort",toEl:rt,originalEvent:t})),xt&&xt.save()):Gt!==fi&&Gt>=0&&(Ht({sortable:this,name:"update",toEl:rt,originalEvent:t}),Ht({sortable:this,name:"sort",toEl:rt,originalEvent:t})),ge.active&&((Gt==null||Gt===-1)&&(Gt=fi,or=jo),Ht({sortable:this,name:"end",toEl:rt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Lt("nulling",this),Je=q=rt=xe=Sr=qe=Ua=ar=yr=yn=fo=Gt=or=fi=jo=oi=ko=xt=Da=ge.dragged=ge.ghost=ge.clone=ge.active=null,hs.forEach(function(t){t.checked=!0}),hs.length=ql=Kl=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":q&&(this._onDragOver(t),LC(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 OC(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&&Yau+d*a/2:ch-Ya)return-ko}else if(c>u+d*(1-o)/2&&ch-d*a/2)?c>u+d/2?1:-1:0}function BC(e){return it(q)1&&(we.forEach(function(l){a.addAnimationState({target:l,rect:At?Ue(l):s}),Xl(l),l.fromRect=s,i.removeAnimationState(l)}),At=!1,GC(!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(),oo=!1,d.animation&&we.length>1&&(At||!o&&!s.options.sort&&!c)){var u=Ue(Fe,!1,!0,!0);we.forEach(function(f){f!==Fe&&(tu(f,u),l.appendChild(f))}),At=!0}if(!o)if(At||Ta(),we.length>1){var h=Ia;s._showClone(i),s.options.animation&&!Ia&&h&&Wt.forEach(function(f){s.addAnimationState({target:f,rect:ao}),f.fromRect=ao,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){ao=mn({},i);var s=Ir(Fe,!0);ao.top-=s.f,ao.left-=s.e}},dragOverAnimationComplete:function(){At&&(At=!1,Ta())},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(),Ke(Fe,h.selectedClass,!~we.indexOf(Fe)),~we.indexOf(Fe))we.splice(we.indexOf(Fe),1),io=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&&io&&s.el.contains(io)){var g=it(io),p=it(Fe);if(~g&&~p&&g!==p){var v,w;for(p>g?(w=g,v=p):(w=p,v=g+1);w1){var k=Ue(Fe),D=it(Fe,":not(."+this.options.selectedClass+")");if(!oo&&h.animation&&(Fe.thisAnimationDuration=null),u.captureAnimationState(),!oo&&(h.animation&&(Fe.fromRect=k,we.forEach(function(_){if(_.thisAnimationDuration=null,_!==Fe){var H=At?Ue(_):k;_.fromRect=H,u.addAnimationState({target:_,rect:H})}})),Ta(),we.forEach(function(_){f[D]?a.insertBefore(_,f[D]):a.appendChild(_),D++}),c===it(Fe))){var E=!1;we.forEach(function(_){if(_.sortableIndex!==it(_)){E=!0;return}}),E&&(l("update"),l("sort"))}we.forEach(function(_){Xl(_)}),u.animateAll()}Cn=u}(o===a||d&&d.lastPutMode!=="clone")&&Wt.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=ai=!1,Wt.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)&&Cn===this.sortable&&!(n&&dn(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;we.length;){var i=we[0];Ke(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)||(Cn&&Cn!==i&&(Cn.multiDrag._deselectMultiDrag(),Cn=i),Ke(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||(Ke(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;At&&a!==Fe?s=-1:At?s=it(a,":not(."+n.options.selectedClass+")"):s=it(a),o.push({multiDragElement:a,index:s})}),{items:vC(we),clones:[].concat(Wt),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 GC(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 au(e,t){Wt.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Ta(){we.forEach(function(e){e!==Fe&&e.parentNode&&e.parentNode.removeChild(e)})}ge.mount(new zC);ge.mount(G1,W1);const UC=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:WC,Sortable:ge,Swap:FC,default:ge},Symbol.toStringTag,{value:"Module"})),YC=Iu(UC);var pf={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 B=x.children[N]||null;x.insertBefore(y,B)}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),B={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,...B},z={element:x.swapItem,oldIndex:x.newIndex,newIndex:x.oldIndex,...B};S=[P,z];break;case"multidrag":S=x.oldIndicies.map((M,V)=>({element:M.multiDragElement,oldIndex:M.index,newIndex:x.newIndicies[V].index,...B}));break}return k(S,y)}function g(x,y){const N=p(x,y);return v(x,N)}function p(x,y){const N=[...y];return x.concat().reverse().forEach(B=>N.splice(B.oldIndex,1)),N}function v(x,y,N,B){const S=[...y];return x.forEach(A=>{const $=B&&N&&B(A.item,N);S.splice(A.newIndex,0,$||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(B=>({...B,item:y[B.oldIndex]})).sort((B,S)=>B.oldIndex-S.oldIndex)}function D(x){const{list:y,setList:N,children:B,tag:S,style:A,className:$,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:de,onDeselect:re,...te}=x;return te}const E={dragging:null};class _ extends i.Component{constructor(y){super(y),this.ref=(0,i.createRef)();const N=[...y.list].map(B=>Object.assign(B,{chosen:!1,selected:!1}));y.setList(N,this.sortable,E),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:B,id:S}=this.props,A={style:N,className:B,id:S},$=!y||y===null?"div":y;return(0,i.createElement)($,{ref:this.ref,...A},this.getChildren())}getChildren(){const{children:y,dataIdAttr:N,selectedClass:B="sortable-selected",chosenClass:S="sortable-chosen",dragClass:A="sortable-drag",fallbackClass:$="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,{[B]: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(B=>B.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"],B=D(this.props);return y.forEach(A=>B[A]=this.prepareOnHandlerPropAndDOM(A)),N.forEach(A=>B[A]=this.prepareOnHandlerProp(A)),{...B,onMove:(A,$)=>{const{onMove:P}=this.props,z=A.willInsertAfter||-1;if(!P)return z;const M=P(A,$,this.sortable,E);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 B=this.props[N];B&&B(y,this.sortable,E)}onAdd(y){const{list:N,setList:B,clone:S}=this.props,A=[...E.dragging.props.list],$=f(y,A);u($);const P=v($,N,y,S).map(z=>Object.assign(z,{selected:!1}));B(P,this.sortable,E)}onRemove(y){const{list:N,setList:B}=this.props,S=w(y),A=f(y,N);h(A);let $=[...N];if(y.pullMode!=="clone")$=p(A,$);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);$.splice(M,1,V)})}$=$.map(P=>Object.assign(P,{selected:!1})),B($,this.sortable,E)}onUpdate(y){const{list:N,setList:B}=this.props,S=f(y,N);u(S),h(S);const A=g(S,N);return B(A,this.sortable,E)}onStart(){E.dragging=this}onEnd(){E.dragging=null}onChoose(y){const{list:N,setList:B}=this.props,S=N.map((A,$)=>{let P=A;return $===y.oldIndex&&(P=Object.assign(A,{chosen:!0})),P});B(S,this.sortable,E)}onUnchoose(y){const{list:N,setList:B}=this.props,S=N.map((A,$)=>{let P=A;return $===y.oldIndex&&(P=Object.assign(P,{chosen:!1})),P});B(S,this.sortable,E)}onSpill(y){const{removeOnSpill:N,revertOnSpill:B}=this.props;N&&!B&&c(y.item)}onSelect(y){const{list:N,setList:B}=this.props,S=N.map(A=>Object.assign(A,{selected:!1}));y.newIndicies.forEach(A=>{const $=A.index;if($===-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[$].selected=!0}),B(S,this.sortable,E)}onDeselect(y){const{list:N,setList:B}=this.props,S=N.map(A=>Object.assign(A,{selected:!1}));y.newIndicies.forEach(A=>{const $=A.index;$!==-1&&(S[$].selected=!0)}),B(S,this.sortable,E)}}fd(_,"defaultProps",{clone:y=>y});var H={};l(e.exports,H)})(qh);var Gr=qh.exports;const e_=window.React.forwardRef,Ur=e_(({searchText:e="",onSearch:t=()=>!1,placeholder:n=I("Search"),...i},o)=>r.jsx(t_,{value:e,onChange:t,ref:o,type:"text",prefix:r.jsx(n_,{children:r.jsx(y6,{})}),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))"}},ue(["",""],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity)) !important"})]}));var t_=m(st)`${e=>e.$_css2}`,n_=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 r_=window.React.createContext,i_=window.React.forwardRef,U1=window.React.useContext,gf=window.React.useEffect,ps=window.React.useMemo,o_=window.React.useRef,Do=window.React.useState,a_=r_({}),s_=e=>{const{builder:t}=U1(et),n=ne(t)(l=>l.changeElementSettings),i=ne(t)(l=>{var c;return((c=l.chosenElement)==null?void 0:c.id)??""}),[o]=Do(!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(u_,{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(h_,{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:je([!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(f_,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:mf[e.item.flag]??""}}),r.jsx("span",{className:je(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.language_name})]}),r.jsx(p_,{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(g_,{className:"p-1 cursor-pointer",onClick:a,$_css5:[ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})})})]}),o&&r.jsx("div",{className:"p-4",children:r.jsx(m_,{value:e.item.url,onChange:s,prefix:r.jsx(v_,{className:"brandy-icon",$_css7:[ue(["padding:6px;background:#e3e8ee;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})],children:r.jsx("svg",{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M12.6 0.200012H11V1.70001H12.6C14.6 1.70001 16.3 3.40001 16.3 5.40001C16.3 7.40001 14.6 9.10001 12.6 9.10001H11V10.6H12.6C15.4 10.6 17.8 8.30001 17.8 5.40001C17.8 2.50001 15.5 0.200012 12.6 0.200012ZM1.70001 5.40001C1.70001 3.40001 3.40001 1.70001 5.40001 1.70001H7.00001V0.200012H5.40001C2.50001 0.200012 0.200012 2.50001 0.200012 5.40001C0.200012 8.30001 2.50001 10.6 5.40001 10.6H7.00001V9.10001H5.40001C3.40001 9.10001 1.70001 7.40001 1.70001 5.40001ZM6.30001 6.30001H11.6V4.80001H6.30001V6.30001Z",fill:"black"})})}),$_css6:[ue(["padding:0 !important;overflow:hidden;"])]})})]})},l_=window.brandyCustomizerData.language.list,mf=window.brandyCustomizerData.language.flags;function c_(e){const{builder:t}=U1(et),n=ps(()=>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]=Do(null),[s,l]=Do(null),{styles:c,attributes:d}=Rn(o,s),[u,h]=Do(!1),f=()=>{h(w=>!w)},g=()=>{h(!1)};gf(()=>{const w=k=>{(o==null||s==null)&&g(),!(o!=null&&o.contains(k.target))&&!(s!=null&&s.contains(k.target))&&g()};return window.jQuery(document).on("click","body",w),()=>{window.jQuery(document).off("click","body",w)}},[o,s]);const p=w=>{JSON.stringify(n)!==JSON.stringify(w)&&(e.onChange(w),$e().refreshPartial(`${t}_${i}`))},v=ps(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(a_.Provider,{value:v,children:r.jsxs(w_,{children:[r.jsxs(x_,{children:[r.jsx(ze,{className:"m-0",children:I("List languages")}),r.jsx(b_,{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(y_,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gr.ReactSortable,{list:n,setList:p,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-social-drag-handle",children:n.map(w=>r.jsx("div",{children:r.jsx(s_,{item:w})},w.id))}),u&&r.jsx(d_,{ref:l,style:{...c.popper},...d.popper,onClose:g})]})})}const d_=i_(({style:e,onClose:t,...n},i)=>{const{builder:o}=U1(et),a=ne(o)(p=>p.changeElementSettings),s=ne(o)(p=>{var v,w;return((w=(v=p.chosenElement)==null?void 0:v.settings)==null?void 0:w.languages)??[]}),l=ne(o)(p=>{var v;return((v=p.chosenElement)==null?void 0:v.id)??""}),[c,d]=Do(""),u=ps(()=>l_.filter(p=>!s.map(v=>v.id).includes(p.id)),[s]),h=ps(()=>u.filter(p=>p.language_name.toLowerCase().includes(c.toLowerCase())||p.language_code.toLowerCase().includes(c.toLowerCase())||p.country_code.toLowerCase().includes(c.toLowerCase())||(p.english_name??"").toLowerCase().includes(c.toLowerCase())),[u,c]),f=p=>()=>{a(v=>{v.languages.push(p)}),$e().refreshPartial(`${o}_${l}`),t()},g=o_(null);return gf(()=>{var p,v;return(v=(p=g.current)==null?void 0:p.querySelector("input"))==null?void 0:v.focus()},[g.current]),r.jsxs(C_,{style:e,ref:i,...n,children:[r.jsxs(__,{children:[r.jsx(S_,{children:"Add language"}),r.jsx(j_,{onClick:()=>{t()},children:r.jsx(Vs,{})})]}),r.jsx(k_,{children:r.jsx(Ur,{ref:g,searchText:c,onSearch:p=>{d(p.toString())},placeholder:I("Search language")})}),r.jsx(Yn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(E_,{children:[h.map(p=>r.jsxs(D_,{onClick:f(p),children:[r.jsx($_,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:mf[p.flag]??""},$_css8:[` display: inline-flex; width: 30px; height: 100%; svg { width: 100%; height: 100%; }`]}),r.jsx("span",{children:p.english_name})]},p.id)),h.length===0&&r.jsx(H_,{children:"No language found"})]})})]})});var u_=m("div")`${e=>e.$_css2}`,h_=m("div")`${e=>e.$_css3}`,f_=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; } `,p_=m("div")`${e=>e.$_css4}`,g_=m("span")`${e=>e.$_css5}`,m_=m(st)`${e=>e.$_css6}`,v_=m("span")`${e=>e.$_css7}`,w_=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),x_=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),b_=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"}}),y_=m("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),C_=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"}),S_=m("span")({fontSize:"16px",fontWeight:"500"}),j_=m("span")({cursor:"pointer",padding:"0.25rem"}),k_=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),E_=m("div")({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.25rem",padding:"1rem"}),D_=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))"}}),$_=m("span")`${e=>e.$_css8}`,H_=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 M_=e=>{var t;return r.jsx(T_,{className:"currency-item",$_css:[{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)"}],children:r.jsx(L_,{className:"group",children:r.jsx(A_,{children:r.jsxs(R_,{className:je(["group-hover:text-brandy-text"]),children:[r.jsx(N_,{src:((t=window.brandyCustomizerData.currency.list.find(n=>n.id==e.item.id))==null?void 0:t.flag)??"",alt:"currency-flag"}),r.jsx(O_,{children:e.item.id})]})})})})},so=window.brandyCustomizerData.currency.list;function I_(){return r.jsxs(B_,{children:[r.jsx(P_,{children:r.jsx(ze,{className:"m-0",children:I("List Currencies")})}),so==null&&r.jsx("div",{dangerouslySetInnerHTML:{__html:I('Please install YayCurrency to add currencies')}}),so==null?void 0:so.map(e=>r.jsx("div",{children:r.jsx(M_,{item:e})},e.id)),so!=null&&r.jsx(V_,{href:window.brandyCustomizerData.paths.yay_currency_manage,target:"_blank",children:I("Manage currencies")})]})}var T_=m("div")`${e=>e.$_css}`,L_=m("div")({display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"}),A_=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),R_=m("span")({display:"flex",alignItems:"center"}),N_=m("img")({marginRight:"0.5rem",display:"inline-block",width:"30px",borderRadius:"3px"}),O_=m("span")({fontWeight:"500"}),B_=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),P_=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),V_=m("a").withConfig({displayName:"ListCurrencies___StyledA",componentId:"sc-gaezvr-0"})({textDecorationLine:"underline"});const z_=window.React.useContext;function F_(e){const t=z_(et);return r.jsx("div",{className:"flex flex-col gap-4",children:r.jsxs("div",{children:[r.jsx(qs,{...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 Z_=window.React.useContext,su=window.React.useMemo,W_=window.brandyCustomizerData.icons.account;function G_(e){const{builder:t}=Z_(qt),n=su(()=>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,g;return(n==="logged_in"?(d=(c=(l=(s=a.chosenElement)==null?void 0:s.settings)==null?void 0:l.logged_in)==null?void 0:c.icon)==null?void 0:d.style:(g=(f=(h=(u=a.chosenElement)==null?void 0:u.settings)==null?void 0:h.logged_out)==null?void 0:f.icon)==null?void 0:g.style)??"outline"}),o=su(()=>Object.entries(W_[i]??{}).map(([a,s])=>({value:a,label:r.jsx("span",{className:je(["brandy-icon"]),dangerouslySetInnerHTML:{__html:s}})})),[i]);return r.jsx(An,{...e,options:o,itemCss:[ue(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}&:hover{svg{*[fill]{fill:#000 !important;}*[stroke]{stroke:#000 !important;}}}svg *{transition:all ease-in-out 0.1s;}"])]})}const U_=window.React.useMemo,Y_={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 vf({state:e}){const t=U_(()=>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:Y_[e]})]})}const J_=()=>r.jsx(vf,{state:"logged_in"}),X_=()=>r.jsx(vf,{state:"logged_out"}),Q_=window.React.useMemo,q_=window.brandyCustomizerData.icons.button;function K_(e){const t=Q_(()=>Object.entries(q_??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:je(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(An,{...e,options:t,className:"[&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-4"})}const eS=window.React.useContext,tS=window.React.useMemo,nS=window.brandyCustomizerData.icons.cart;function rS(e){const{builder:t}=eS(qt),n=ne(t)(o=>{var a;return(a=o.chosenElement)==null?void 0:a.settings.icon_style}),i=tS(()=>Object.entries(nS[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:je(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(An,{...e,options:i})}const iS=window.React.forwardRef,Y1=window.React.useContext,wf=window.React.useEffect,Uc=window.React.useMemo,oS=window.React.useRef,$o=window.React.useState,aS=e=>{const{builder:t}=Y1(et),n=ne(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=ne(t)(h=>h.changeElementSettings),[o,a]=$o(!1),s=h=>{h.stopPropagation(),n.items.forEach((f,g)=>{f.id===e.item.id&&i(p=>{p.items[g].visible=!n.items[g].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,g)=>{if(f.id===e.item.id){const p=oe(_t("contact",t)+` .brandy-contact-item[type="${f.id}"] .brandy-contact-item__text`);p&&window.jQuery(p).html(h.toString()),i(v=>{v.items[g].content=h.toString()})}})},u=h=>{n.items.forEach((f,g)=>{if(f.id===e.item.id){const p=oe(_t("contact",t)+` .brandy-contact-item[type="${f.id}"]`);p&&window.jQuery(p).attr("href",h.toString()),i(v=>{v.items[g].url=h.toString()})}})};return r.jsxs(dS,{$_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(uS,{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(hS,{children:[r.jsx(fS,{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:je([!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:je(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(pS,{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(gS,{className:"p-1 cursor-pointer",onClick:l,$_css5:[ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx("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(mS,{onClick:c,className:"p-1 cursor-pointer",$_css6:[ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},o&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),o&&r.jsxs(vS,{children:[r.jsxs(wS,{children:[r.jsx("div",{children:"Content"}),r.jsx(st,{value:e.item.content,onChange:d})]}),r.jsxs(xS,{children:[r.jsx("div",{children:"Link"}),r.jsx(bS,{value:e.item.url,onChange:u,prefix:r.jsx(yS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:xf[e.item.icon]??""},$_css8:[ue(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[ue(["padding:0 !important;overflow:hidden;"])]})]})]})]})},sS=window.brandyCustomizerData.all_contacts,xf=window.brandyCustomizerData.icons.contact;function lS(e){const{builder:t}=Y1(et),n=Uc(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=$o(null),[a,s]=$o(null),{styles:l,attributes:c}=Rn(i,a),[d,u]=$o(!1),h=()=>{u(p=>!p)},f=()=>{u(!1)};wf(()=>{const p=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",p),()=>{window.jQuery(document).off("click","body",p)}},[i,a]);const g=p=>{JSON.stringify(n)!==JSON.stringify(p)&&(e.onChange(p),$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(Gr.ReactSortable,{list:n,setList:g,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-social-drag-handle",children:n.map(p=>r.jsx("div",{children:r.jsx(aS,{item:p})},p.id))}),d&&r.jsx(cS,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const cS=iS(({style:e,onClose:t,...n},i)=>{const{builder:o}=Y1(et),a=ne(o)(g=>{var p;return(p=g.chosenElement)==null?void 0:p.settings}),s=ne(o)(g=>g.changeElementSettings),[l,c]=$o(""),d=Uc(()=>sS.filter(g=>!a.items.map(p=>p.id).includes(g.id)),[a.items]),u=Uc(()=>d.filter(g=>g.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=g=>()=>{s(p=>{p.items.push(g)}),$e().refreshPartial(`${o}_contact`),t()},f=oS(null);return wf(()=>{var g,p;return(p=(g=f.current)==null?void 0:g.querySelector("input"))==null?void 0:p.focus()},[f.current]),r.jsxs(CS,{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(Vs,{})})]}),r.jsx("div",{className:"p-4 pt-2 border-b border-b-brandy-border-light",children:r.jsx(Ur,{ref:f,searchText:l,onSearch:g=>{c(g.toString())},placeholder:I("Search contact")})}),r.jsx(Yn,{className:"h-[250px]",autoHide:!0,children:r.jsxs("div",{className:"p-4 flex flex-col gap-1",children:[u.map(g=>r.jsxs(_S,{className:"group",onClick:h(g),$_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(SS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:xf[g.icon]??""},$_css11:[ue(["svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7",".group:hover &":{stroke:"#2271B1"}},{fill:"#A1ABB7",".group:hover &":{fill:"#2271B1"}})]}),r.jsx(jS,{children:g.label})]},g.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var dS=m("div")`${e=>e.$_css2}`,uS=m("div")`${e=>e.$_css3}`,hS=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),fS=m("span")({cursor:"grab",padding:"0.5rem"}),pS=m("div")`${e=>e.$_css4}`,gS=m("span")`${e=>e.$_css5}`,mS=m("span")`${e=>e.$_css6}`,vS=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),wS=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),xS=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),bS=m(st)`${e=>e.$_css7}`,yS=m("span")`${e=>e.$_css8}`,CS=m("div")`${e=>e.$_css9}`,_S=m("div")`${e=>e.$_css10}`,SS=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 kS=window.React.useContext,ES=window.React.useMemo,DS=[{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"})})]})}],$S=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 HS=m($S).withConfig({displayName:"ActiveTypeSelection___StyledStyledItem",componentId:"sc-5cnq7j-1"})(["",""],e=>e.$_css2);function MS(e){const{builder:t}=kS(et),n=ne(t)(s=>s.changeElementSettings),{current:i}=ye(),o=ES(()=>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(()=>{kn({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:DS.map(s=>r.jsx(HS,{onClick:()=>{a(s.value)},selected:o===s.value,$_css2:[ue` svg { width: 100%; } `],children:s.label},s.value))})]})}const IS=window.React.useContext,TS=window.React.useMemo,LS=window.brandyCustomizerData.wp_nav_menus,AS=LS.map(e=>({label:e.name,value:e.slug}));function RS(e){const t=IS(et),n=TS(()=>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:AS,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 NS=window.React.useMemo,OS=window.brandyCustomizerData.icons.search;function BS(e){const t=NS(()=>Object.entries(OS??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:je(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(An,{...e,options:t})}const PS=[{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_5678_84101)"}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_5678_84101)"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"9",y:"9",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M157 14H140V15H157V14Z",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"145",y:"8.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"167",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"184",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"201",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"235",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"252",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"270",y:"5.5",width:"12",height:"12",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M273 8.5V9.25H280V8.5H273ZM273 12.4H280V11.65H273V12.4ZM273 15.5H280V14.75H273V15.5Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),r.jsxs("g",{clipPath:"url(#clip0_5678_84101)",children:[r.jsx("g",{filter:"url(#filter0_d_5678_84101)",children:r.jsx("path",{d:"M177 1H284C285.657 1 287 2.34315 287 4V85H177V1Z",fill:"white"})}),r.jsx("rect",{x:"187.012",y:"21",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 21.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187.012",y:"37",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 37.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 43.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187.012",y:"53",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 53.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 59.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187.012",y:"69",width:"24",height:"10",rx:"1",fill:"#F0F0F1"}),r.jsx("rect",{width:"40.2492",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 255.262 69.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"63.9859",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 279 75.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"187",y:"6.84375",width:"83",height:"8",rx:"1",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M191.652 8.84375C192.564 8.84375 193.303 9.58325 193.303 10.4955C193.303 10.8772 193.174 11.2286 192.957 11.5083L194 12.5518L193.708 12.8438L192.665 11.8003C192.385 12.0177 192.033 12.1472 191.652 12.1472C190.739 12.1472 190 11.4077 190 10.4955C190 9.58325 190.739 8.84375 191.652 8.84375ZM191.652 9.25668C192.336 9.25668 192.89 9.8113 192.89 10.4955C192.89 11.1796 192.336 11.7343 191.652 11.7343C190.968 11.7343 190.413 11.1796 190.413 10.4955C190.413 9.8113 190.968 9.25668 191.652 9.25668Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M278 11.2879L279.555 12.8438L280 12.3996L278.445 10.8437L280 9.28833L279.556 8.84417L278 10.3987L276.445 8.84375L276 9.28791L277.555 10.8437L276 12.3992L276.444 12.8438L278 11.2883V11.2879Z",fill:"#A1ABB7"})]}),r.jsxs("defs",{children:[r.jsxs("filter",{id:"filter0_d_5678_84101",x:"167",y:"-5",width:"130",height:"104",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[r.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.jsx("feOffset",{dy:"4"}),r.jsx("feGaussianBlur",{stdDeviation:"5"}),r.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),r.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0"}),r.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5678_84101"}),r.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_5678_84101",result:"shape"})]}),r.jsx("clipPath",{id:"clip0_5678_84101",children:r.jsx("rect",{width:"110",height:"84",fill:"white",transform:"translate(177 1)"})})]})]}),value:"type_1",title:"Panel sidebar - list view"},{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5243",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5243)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5243",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5243)"}),r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H282C284.761 1 287 3.23858 287 6V85H1V6Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"9",y:"9",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M157 14H140V15H157V14Z",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"145",y:"8.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"167",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"184",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"201",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"235",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"252",y:"10",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"270",y:"5.5",width:"12",height:"12",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M273 8.5V9.25H280V8.5H273ZM273 12.4H280V11.65H273V12.4ZM273 15.5H280V14.75H273V15.5Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),r.jsxs("g",{clipPath:"url(#clip0_563_5243)",children:[r.jsx("g",{filter:"url(#filter0_d_563_5243)",children:r.jsx("path",{d:"M177 1H284C285.657 1 287 2.34315 287 4V85H177V1Z",fill:"white"})}),r.jsx("rect",{x:"185.999",y:"20",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 202.115 39)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 227 44)",fill:"#F0F0F1"}),r.jsx("rect",{x:"237",y:"20",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 253.116 39)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 278 44)",fill:"#F0F0F1"}),r.jsx("rect",{x:"185.999",y:"53",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 202.115 72)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 227 77)",fill:"#F0F0F1"}),r.jsx("rect",{x:"237",y:"53",width:"41.0006",height:"16",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"16.0993",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 253.116 72)",fill:"#F0F0F1"}),r.jsx("rect",{width:"41.0006",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 278 77)",fill:"#F0F0F1"}),r.jsx("rect",{x:"186",y:"6.84375",width:"82",height:"8",rx:"1",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M190.652 8.84375C191.564 8.84375 192.303 9.58325 192.303 10.4955C192.303 10.8772 192.174 11.2286 191.957 11.5083L193 12.5518L192.708 12.8438L191.665 11.8003C191.385 12.0177 191.033 12.1472 190.652 12.1472C189.739 12.1472 189 11.4077 189 10.4955C189 9.58325 189.739 8.84375 190.652 8.84375ZM190.652 9.25668C191.336 9.25668 191.89 9.8113 191.89 10.4955C191.89 11.1796 191.336 11.7343 190.652 11.7343C189.968 11.7343 189.413 11.1796 189.413 10.4955C189.413 9.8113 189.968 9.25668 190.652 9.25668Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M276 11.2879L277.555 12.8438L278 12.3996L276.445 10.8437L278 9.28833L277.556 8.84417L276 10.3987L274.445 8.84375L274 9.28791L275.555 10.8437L274 12.3992L274.444 12.8438L276 11.2883V11.2879Z",fill:"#A1ABB7"})]}),r.jsxs("defs",{children:[r.jsxs("filter",{id:"filter0_d_563_5243",x:"167",y:"-5",width:"130",height:"104",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[r.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.jsx("feOffset",{dy:"4"}),r.jsx("feGaussianBlur",{stdDeviation:"5"}),r.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),r.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0"}),r.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_563_5243"}),r.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_563_5243",result:"shape"})]}),r.jsx("clipPath",{id:"clip0_563_5243",children:r.jsx("rect",{width:"110",height:"84",fill:"white",transform:"translate(177 1)"})})]})]}),value:"type_2",title:"Panel sidebar - grid view"},{label:r.jsxs("svg",{width:"288",height:"86",viewBox:"0 0 288 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_1820_74422",maskUnits:"userSpaceOnUse",x:"0",y:"0.15625",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",y:"0.15625",width:"288",height:"85"}),r.jsx("path",{d:"M1 4.15625C1 2.49939 2.34315 1.15625 4 1.15625H284C285.657 1.15625 287 2.4994 287 4.15625V85.1562H1V4.15625Z"})]}),r.jsx("path",{d:"M1 4.15625C1 2.49939 2.34315 1.15625 4 1.15625H284C285.657 1.15625 287 2.4994 287 4.15625V85.1562H1V4.15625Z",fill:"white"}),r.jsx("path",{d:"M1 6.15625C1 3.39483 3.23858 1.15625 6 1.15625H282C284.761 1.15625 287 3.39483 287 6.15625V85.1562H1V6.15625Z",fill:"black",fillOpacity:"0.2"}),r.jsx("path",{d:"M1 4.15625C1 2.49939 2.34315 1.15625 4 1.15625H284C285.657 1.15625 287 2.4994 287 4.15625V75.1562H1V4.15625Z",fill:"#FEFEFE"}),r.jsx("path",{d:"M279 9.44416L280.555 11L281 10.5558L279.445 9L281 7.44458L280.556 7.00042L279 8.555L277.445 7L277 7.44416L278.555 9L277 10.5554L277.444 11L279 9.44458V9.44416Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"8.15625",width:"140.668",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M203.441 14.3783L204.219 15.1562L204.441 14.9342L203.664 14.1562L204.441 13.3785L204.219 13.1565L203.441 13.9337L202.664 13.1562L202.441 13.3783L203.219 14.1562L202.441 14.934L202.663 15.1562L203.441 14.3785V14.3783Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M210.919 11.1562C212.287 11.1562 213.397 12.2655 213.397 13.6338C213.397 14.2064 213.202 14.7335 212.876 15.1531L214.441 16.7183L214.003 17.1562L212.438 15.5911C212.019 15.9172 211.492 16.1114 210.919 16.1114C209.551 16.1114 208.441 15.0022 208.441 13.6338C208.441 12.2655 209.551 11.1562 210.919 11.1562ZM210.919 11.7756C211.945 11.7756 212.777 12.6076 212.777 13.6338C212.777 14.6601 211.945 15.492 210.919 15.492C209.893 15.492 209.061 14.6601 209.061 13.6338C209.061 12.6076 209.893 11.7756 210.919 11.7756Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"32",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 60.2891 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 76 61.1562)",fill:"#F0F0F1"}),r.jsx("rect",{x:"92",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 120.289 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 136 61.1562)",fill:"#F0F0F1"}),r.jsx("rect",{x:"152",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 180.289 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 196 61.1562)",fill:"#F0F0F1"}),r.jsx("rect",{x:"212",y:"27.1562",width:"44",height:"22",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"28.2857",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 240.289 54.1562)",fill:"#F0F0F1"}),r.jsx("rect",{width:"44",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 256 61.1562)",fill:"#F0F0F1"}),r.jsx("path",{d:"M0 4.15625C0 1.94711 1.79086 0.15625 4 0.15625H284C286.209 0.15625 288 1.94711 288 4.15625H286C286 3.05168 285.105 2.15625 284 2.15625H4C2.89543 2.15625 2 3.05168 2 4.15625H0ZM287 85.1562H1H287ZM0 85.1562V4.15625C0 1.94711 1.79086 0.15625 4 0.15625V2.15625C2.89543 2.15625 2 3.05168 2 4.15625V85.1562H0ZM284 0.15625C286.209 0.15625 288 1.94711 288 4.15625V85.1562H286V4.15625C286 3.05168 285.105 2.15625 284 2.15625V0.15625Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_1820_74422)"})]}),title:"Panel Full-screen - grid view",value:"type_3"},{label:r.jsxs("svg",{width:"293",height:"85",viewBox:"0 0 293 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5245",maskUnits:"userSpaceOnUse",x:"5",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",x:"5",width:"288",height:"85"}),r.jsx("path",{d:"M6 6C6 3.23858 8.23858 1 11 1H287C289.761 1 292 3.23858 292 6V85H6V6Z"})]}),r.jsx("path",{d:"M5 6C5 2.68629 7.68629 0 11 0H287C290.314 0 293 2.68629 293 6H291C291 3.79086 289.209 2 287 2H11C8.79086 2 7 3.79086 7 6H5ZM292 85H6H292ZM5 85V6C5 2.68629 7.68629 0 11 0V2C8.79086 2 7 3.79086 7 6V85H5ZM287 0C290.314 0 293 2.68629 293 6V85H291V6C291 3.79086 289.209 2 287 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5245)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5245",maskUnits:"userSpaceOnUse",x:"5",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",x:"5",width:"288",height:"85"}),r.jsx("path",{d:"M6 4C6 2.34314 7.34315 1 9 1H289C290.657 1 292 2.34315 292 4V85H6V4Z"})]}),r.jsx("path",{d:"M5 4C5 1.79086 6.79086 0 9 0H289C291.209 0 293 1.79086 293 4H291C291 2.89543 290.105 2 289 2H9C7.89543 2 7 2.89543 7 4H5ZM292 85H6H292ZM5 85V4C5 1.79086 6.79086 0 9 0V2C7.89543 2 7 2.89543 7 4V85H5ZM289 0C291.209 0 293 1.79086 293 4V85H291V4C291 2.89543 290.105 2 289 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5245)"}),r.jsx("path",{d:"M6 4C6 2.34314 7.34315 1 9 1H289C290.657 1 292 2.34315 292 4V85H6V4Z",fill:"white"}),r.jsx("path",{d:"M6 4C6 2.34314 7.34315 1 9 1H289C290.657 1 292 2.34315 292 4V85H6V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"14",y:"10",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M140 15H123V16H140V15Z",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"128",y:"9.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"150",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"167",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"184",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"201",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"235",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"218",y:"6.5",width:"68",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M273 13.2221L273.778 14L274 13.7779L273.222 13L274 12.2223L273.778 12.0002L273 12.7775L272.222 12L272 12.2221L272.778 13L272 13.7777L272.222 14L273 13.2223V13.2221Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M280.478 10C281.846 10 282.955 11.1092 282.955 12.4776C282.955 13.0501 282.761 13.5773 282.435 13.9968L284 15.562L283.562 16L281.997 14.4348C281.577 14.7609 281.05 14.9552 280.478 14.9552C279.109 14.9552 278 13.8459 278 12.4776C278 11.1092 279.109 10 280.478 10ZM280.478 10.6194C281.504 10.6194 282.336 11.4513 282.336 12.4776C282.336 13.5038 281.504 14.3358 280.478 14.3358C279.451 14.3358 278.619 13.5038 278.619 12.4776C278.619 11.4513 279.451 10.6194 280.478 10.6194Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"218",y:"21",width:"68",height:"59",rx:"2",fill:"white"}),r.jsx("rect",{x:"224",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 261.902 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276.001 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"224",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 261.902 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276.001 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"224",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 261.902 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276.001 69.5)",fill:"#F0F0F1"}),r.jsx("path",{d:"M277 22.8438C277 22.2915 277.448 21.8438 278 21.8438H285V29.8438H278C277.448 29.8438 277 29.396 277 28.8438V22.8438Z",fill:"white"}),r.jsx("path",{d:"M281 26.2879L282.555 27.8438L283 27.3996L281.445 25.8437L283 24.2883L282.556 23.8442L281 25.3987L279.445 23.8438L279 24.2879L280.555 25.8437L279 27.3992L279.444 27.8438L281 26.2879Z",fill:"#A1ABB7"})]}),value:"type_4",title:"Panel dropdown - list view"},{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5246)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5246)"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"8",y:"10",width:"25",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"46",y:"10",width:"14",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"7",width:"143",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M200 13.2221L200.778 14L201 13.7779L200.222 13L201 12.2223L200.778 12.0002L200 12.7775L199.222 12L199 12.2221L199.778 13L199 13.7777L199.222 14L200 13.2223V13.2221Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M207.478 10C208.846 10 209.955 11.1092 209.955 12.4776C209.955 13.0501 209.761 13.5773 209.435 13.9968L211 15.562L210.562 16L208.997 14.4348C208.577 14.7609 208.05 14.9552 207.478 14.9552C206.109 14.9552 205 13.8459 205 12.4776C205 11.1092 206.109 10 207.478 10ZM207.478 10.6194C208.504 10.6194 209.336 11.4513 209.336 12.4776C209.336 13.5038 208.504 14.3358 207.478 14.3358C206.451 14.3358 205.619 13.5038 205.619 12.4776C205.619 11.4513 206.451 10.6194 207.478 10.6194Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"226",y:"10",width:"55",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"21",width:"143",height:"59",rx:"2",fill:"white"}),r.jsx("rect",{x:"79",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 69.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 69.5)",fill:"#F0F0F1"}),r.jsx("path",{d:"M204 22.8438C204 22.2915 204.448 21.8438 205 21.8438H212V29.8438H205C204.448 29.8438 204 29.396 204 28.8438V22.8438Z",fill:"white"}),r.jsx("path",{opacity:"0.7",d:"M208 26.2879L209.555 27.8438L210 27.3996L208.445 25.8437L210 24.2883L209.556 23.8442L208 25.3987L206.445 23.8438L206 24.2879L207.555 25.8437L206 27.3992L206.444 27.8438L208 26.2879Z",fill:"#A1ABB7"})]}),value:"type_5",title:"Panel dropdown - grid view"},{label:r.jsxs("svg",{width:"288",height:"85",viewBox:"0 0 288 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("mask",{id:"path-1-outside-1_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_563_5246)"}),r.jsxs("mask",{id:"path-3-outside-2_563_5246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"288",height:"85",fill:"black",children:[r.jsx("rect",{fill:"white",width:"288",height:"85"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H284C286.209 0 288 1.79086 288 4H286C286 2.89543 285.105 2 284 2H4C2.89543 2 2 2.89543 2 4H0ZM287 85H1H287ZM0 85V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V85H0ZM284 0C286.209 0 288 1.79086 288 4V85H286V4C286 2.89543 285.105 2 284 2V0Z",fill:"#E3E8EE",mask:"url(#path-3-outside-2_563_5246)"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"black",fillOpacity:"0.2"}),r.jsx("rect",{x:"8",y:"10",width:"25",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"46",y:"10",width:"14",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"7",width:"143",height:"12",rx:"2",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.25"}),r.jsx("path",{opacity:"0.5",d:"M200 13.2221L200.778 14L201 13.7779L200.222 13L201 12.2223L200.778 12.0002L200 12.7775L199.222 12L199 12.2221L199.778 13L199 13.7777L199.222 14L200 13.2223V13.2221Z",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M207.478 10C208.846 10 209.955 11.1092 209.955 12.4776C209.955 13.0501 209.761 13.5773 209.435 13.9968L211 15.562L210.562 16L208.997 14.4348C208.577 14.7609 208.05 14.9552 207.478 14.9552C206.109 14.9552 205 13.8459 205 12.4776C205 11.1092 206.109 10 207.478 10ZM207.478 10.6194C208.504 10.6194 209.336 11.4513 209.336 12.4776C209.336 13.5038 208.504 14.3358 207.478 14.3358C206.451 14.3358 205.619 13.5038 205.619 12.4776C205.619 11.4513 206.451 10.6194 207.478 10.6194Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"226",y:"10",width:"55",height:"5",rx:"2",fill:"black",fillOpacity:"0.05"}),r.jsx("rect",{x:"70",y:"21",width:"143",height:"59",rx:"2",fill:"white"}),r.jsx("rect",{x:"79",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"27",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 27.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 33.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"45",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 45.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 51.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"79",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 116.902 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 131.001 69.5)",fill:"#F0F0F1"}),r.jsx("rect",{x:"146.001",y:"63",width:"10",height:"10",rx:"2",fill:"#F0F0F1"}),r.jsx("rect",{width:"23.9024",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 183.904 63.5)",fill:"#F0F0F1"}),r.jsx("rect",{width:"37.9986",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 198.002 69.5)",fill:"#F0F0F1"}),r.jsx("path",{d:"M204 22.8438C204 22.2915 204.448 21.8438 205 21.8438H212V29.8438H205C204.448 29.8438 204 29.396 204 28.8438V22.8438Z",fill:"white"}),r.jsx("path",{opacity:"0.7",d:"M208 26.2879L209.555 27.8438L210 27.3996L208.445 25.8437L210 24.2883L209.556 23.8442L208 25.3987L206.445 23.8438L206 24.2879L207.555 25.8437L206 27.3992L206.444 27.8438L208 26.2879Z",fill:"#A1ABB7"})]}),value:"type_6",title:"Top dropdown"}];function VS(e){return r.jsx(An,{...e,options:(e.options??[]).map(t=>PS.find(n=>n.value===t.value)),className:"live-result-type-group [&_.brandy-radio-item]:pb-0",itemCss:[ue(["&.selected{border:1px solid #000;}"])]})}const zS=window.React.useMemo,FS=window.React.useState;function ZS(e){const[t,n]=FS(""),i=l=>{n(l.toString())},o=zS(()=>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(WS,{tags:o,onRemove:s})]})}function WS({tags:e,onRemove:t}){return r.jsx(GS,{children:e.map(n=>r.jsxs(US,{children:[n,r.jsx("span",{onClick:()=>{t(n)},children:r.jsxs(YS,{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 GS=m("div")({marginTop:"0.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"}),US=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"}),YS=m("svg").withConfig({displayName:"Suggestions___StyledSvg",componentId:"sc-vw3nn3-0"})({height:"8px",width:"8px",cursor:"pointer"});const JS=window.React.forwardRef,J1=window.React.useContext,bf=window.React.useEffect,Qa=window.React.useMemo,XS=window.React.useRef,Ho=window.React.useState,QS=e=>{const{builder:t}=J1(et),n=ne(t)(f=>{var g;return(g=f.chosenElement)==null?void 0:g.settings}),i=ne(t)(f=>f.changeElementSettings),o=ne(t)(f=>{var g;return(g=f.chosenElement)==null?void 0:g.id}),[a,s]=Ho(!1),l=f=>{f.stopPropagation(),n.items.forEach((g,p)=>{g.id===e.item.id&&i(v=>{v.items[p].visible=!n.items[p].visible})}),$e().refreshPartial(`${t}_${o}`)},c=()=>{i(f=>{f.items=n.items.filter(g=>g.id!==e.item.id)}),$e().refreshPartial(`${t}_${o}`)},d=()=>{s(f=>!f)},u=f=>{n.items.forEach((g,p)=>{if(g.id===e.item.id){const v=oe(_t(o??"",t)+` .brandy-social-item[data-social-id="${g.id}"] .brandy-social-item__label`);v&&window.jQuery(v).html(f),i(w=>{w.items[p].label=f.toString()})}})},h=f=>{n.items.forEach((g,p)=>{if(g.id===e.item.id){const v=oe(_t(o??"",t)+` .brandy-social-item[data-social-id="${g.id}"]`);v&&window.jQuery(v).attr("href",f),i(w=>{w.items[p].url=f.toString()})}})};return r.jsxs(tj,{$_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(nj,{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(rj,{children:[r.jsx(ij,{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:je([!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:je(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(oj,{$_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(aj,{onClick:c,$_css5:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx("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(sj,{onClick:d,$_css6:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsxs(lj,{children:[r.jsxs(cj,{children:[r.jsx("div",{children:"Label"}),r.jsx(st,{value:e.item.label,onChange:u})]}),r.jsxs(dj,{children:[r.jsx("div",{children:"Link"}),r.jsx(uj,{value:e.item.url,onChange:h,prefix:r.jsx(hj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:(gs[e.item.icon]&&gs[e.item.icon][n.icon_color_type])??""},$_css8:[ue(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[ue(["padding:0 !important;overflow:hidden;"])]})]})]})]})},qS=window.brandyCustomizerData.all_socials,gs=window.brandyCustomizerData.icons.socials;function KS(e){const{builder:t}=J1(et),n=Qa(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Ho(null),[a,s]=Ho(null),{styles:l,attributes:c}=Rn(i,a),[d,u]=Ho(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};bf(()=>{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 g=ne(t)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),p=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),$e().refreshPartial(`${t}_${g}`))};return r.jsxs(fj,{children:[r.jsxs(pj,{children:[r.jsx(ze,{className:"m-0",children:"List socials"}),r.jsx(gj,{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(mj,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gr.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(QS,{item:v})},v.id))}),d&&r.jsx(ej,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const ej=JS(({style:e,onClose:t,...n},i)=>{const{builder:o}=J1(et),a=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.settings}),s=ne(o)(v=>v.changeElementSettings),[l,c]=Ho(""),d=Qa(()=>qS.filter(v=>!a.items.map(w=>w.id).includes(v.id)),[a.items]),u=Qa(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=Qa(()=>a.icon_color_type,[a.icon_color_type]),f=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),g=v=>()=>{s(w=>{w.items.push(v)}),$e().refreshPartial(`${o}_${f}`),t()},p=XS(null);return bf(()=>{var v,w;return(w=(v=p.current)==null?void 0:v.querySelector("input"))==null?void 0:w.focus()},[p.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(wj,{children:[r.jsx(xj,{children:"Add social icon"}),r.jsx(bj,{onClick:()=>{t()},children:r.jsx(Vs,{})})]}),r.jsx(yj,{children:r.jsx(Ur,{ref:p,searchText:l,onSearch:v=>{c(v.toString())},placeholder:I("Search socials")})}),r.jsx(Yn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Cj,{children:[u.map(v=>r.jsx(_j,{onClick:g(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"&&ue(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:(gs[v.icon]&&gs[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 tj=m("div")`${e=>e.$_css2}`,nj=m("div")`${e=>e.$_css3}`,rj=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),ij=m("span")({cursor:"grab",padding:"0.5rem"}),oj=m("div")`${e=>e.$_css4}`,aj=m("span")`${e=>e.$_css5}`,sj=m("span")`${e=>e.$_css6}`,lj=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),cj=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),dj=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),uj=m(st)`${e=>e.$_css7}`,hj=m("span")`${e=>e.$_css8}`,fj=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),pj=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),gj=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"}}),mj=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}`,wj=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),xj=m("span")({fontSize:"16px",fontWeight:"500"}),bj=m("span")({cursor:"pointer",padding:"0.25rem"}),yj=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),Cj=m("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),_j=m("div").withConfig({displayName:"ListSocials___StyledDiv15",componentId:"sc-hody2l-0"})(["",""],e=>e.$_css10);const Sj=window.React.forwardRef,X1=window.React.useContext,yf=window.React.useEffect,qa=window.React.useMemo,jj=window.React.useRef,Mo=window.React.useState,kj=e=>{const{builder:t}=X1(et),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]=Mo(!1),l=h=>{h.stopPropagation(),n.items.forEach((f,g)=>{f.id===e.item.id&&i(p=>{p.items[g].visible=!n.items[g].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,g)=>{if(f.id===e.item.id){const p=oe(_t(o??"",t)+` .brandy-payment-item[data-payment-id="${f.id}"]`);p&&window.jQuery(p).attr("href",Ms(h)),i(v=>{v.items[g].url=h.toString()})}})};return r.jsxs(Hj,{$_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(Mj,{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(Ij,{children:[r.jsx(Tj,{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:je([!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:je(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Lj,{$_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(Aj,{onClick:c,$_css5:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx("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(Rj,{onClick:d,$_css6:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsx(Nj,{children:r.jsxs(Oj,{children:[r.jsx("div",{children:"Link"}),r.jsx(Bj,{value:e.item.url,onChange:u,prefix:r.jsx(Pj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Cf[e.item.icon]??""},$_css8:[ue(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;"])]}),$_css7:[ue(["padding:0 !important;overflow:hidden;"])]})]})})]})},Ej=window.brandyCustomizerData.all_payments,Cf=window.brandyCustomizerData.icons.payments;function Dj(e){const{builder:t}=X1(et),n=qa(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Mo(null),[a,s]=Mo(null),{styles:l,attributes:c}=Rn(i,a),[d,u]=Mo(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};yf(()=>{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 g=ne(t)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),p=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),$e().refreshPartial(`${t}_${g}`))};return r.jsxs(Vj,{children:[r.jsxs(zj,{children:[r.jsx(ze,{className:"m-0",children:"List payments"}),r.jsx(Fj,{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(Zj,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gr.ReactSortable,{list:n,setList:p,className:"flex flex-col gap-4",animation:150,easing:"ease-in-out",handle:".brandy-payment-drag-handle",children:n.map(v=>r.jsx("div",{children:r.jsx(kj,{item:v})},v.id))}),d&&r.jsx($j,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const $j=Sj(({style:e,onClose:t,...n},i)=>{const{builder:o}=X1(et),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=qa(()=>Ej.filter(v=>!a.items.map(w=>w.id).includes(v.id)),[a.items]),u=qa(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=qa(()=>a.icon_color_type,[a.icon_color_type]),f=ne(o)(v=>{var w;return(w=v.chosenElement)==null?void 0:w.id}),g=v=>()=>{s(w=>{w.items.push(v)}),$e().refreshPartial(`${o}_${f}`),t()},p=jj(null);return yf(()=>{var v,w;return(w=(v=p.current)==null?void 0:v.querySelector("input"))==null?void 0:w.focus()},[p.current]),r.jsxs(Wj,{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(Gj,{children:[r.jsx(Uj,{children:"Add payment icon"}),r.jsx(Yj,{onClick:()=>{t()},children:r.jsx(Vs,{})})]}),r.jsx(Jj,{children:r.jsx(Ur,{ref:p,searchText:l,onSearch:v=>{c(v.toString())},placeholder:I("Search payment")})}),r.jsx(Yn,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Xj,{children:[u.map(v=>r.jsx(Qj,{onClick:g(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"&&ue(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon [&_svg]:w-[50px] [&_svg]:h-[40px] ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:Cf[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 Hj=m("div")`${e=>e.$_css2}`,Mj=m("div")`${e=>e.$_css3}`,Ij=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Tj=m("span")({cursor:"grab",padding:"0.5rem"}),Lj=m("div")`${e=>e.$_css4}`,Aj=m("span")`${e=>e.$_css5}`,Rj=m("span")`${e=>e.$_css6}`,Nj=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Oj=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Bj=m(st)`${e=>e.$_css7}`,Pj=m("span")`${e=>e.$_css8}`,Vj=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),zj=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Fj=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"}}),Zj=m("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),Wj=m("div")`${e=>e.$_css9}`,Gj=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),Uj=m("span")({fontSize:"16px",fontWeight:"500"}),Yj=m("span")({cursor:"pointer",padding:"0.25rem"}),Jj=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem",paddingTop:"0.5rem"}),Xj=m("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),Qj=m("div").withConfig({displayName:"ListPayments___StyledDiv14",componentId:"sc-wzxanx-0"})(["",""],e=>e.$_css10);const qj=window.React.useContext,Kj=window.React.useMemo,ek=window.brandyCustomizerData.icons.wishlist;function tk(e){const{builder:t}=qj(qt),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=Kj(()=>Object.entries(ek[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:je(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(An,{...e,options:i,itemCss:n==="outline"?[ue(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]:[ue(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]})}const nk=window.React.useContext,rk=window.React.useMemo;function ik(e){const{builder:t}=nk(qt),n=rk(()=>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(A1,{...e,onChange:o})}const ok=window.React.useContext,oc={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 ak(e){const{builder:t}=ok(et),{current:n}=ye(),i=ne(t)(a=>a.changeElementSettings),o=a=>{i(s=>{Ne(s,["button_design_text","typography","font_size"],oc[a].button_design_text.typography.font_size),Ne(s,["button_design_padding"],oc[a].button_design_padding),Ne(s,["button_design_icon","size"],oc[a].button_design_icon.size),kn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(hr,{...e,onChange:o})}const sk=window.React.useContext;function lk(e){const{builder:t}=sk(et),{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}},kn({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}},kn({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(hr,{...e,onChange:o})}const ac=window.React.useMemo,ck=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 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"}],dk=[{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"}],uk=[{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"}],hk=[{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"}],fk=[{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 pk(e){var s;const{current:t}=ye(),n=ac(()=>{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=ac(()=>n===3?dk:n===4?uk:n===5?hk:n===6?fk:ck,[n]);if(n===1)return!1;const o=ac(()=>{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"]),kn({sectionId:e.sectionId,device:t,settings:{column_span:c},builder:"footer"})};return r.jsx(An,{...e,options:i,className:"column-layout-group [&>div:first-child]:mb-2 [&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-2",itemCss:[ue(["&.selected{border:1px solid #000;}"])],onChange:a,value:o})}function gk(e){const{current:t}=ye(),n=Ye(t),i=o=>{let a=o;const s=Ie.getState().chosenRow;if(!s)return;const c={...Ie.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,g)=>{d[n]==null&&(d[n]={}),d[n][`column_${g+1}`]=f}),e.onChange(d,["column_span"]),kn({sectionId:e.sectionId,device:n,settings:{column_span:d},builder:"footer"}),Ie.setState(f=>{const g=f.chosenRow;if(g==null)return;const p=f.previewTemplate.placements[n][g],v=p.length;if(vH>a-1?[...E,..._]:E,[]).length<1){f.previewTemplate.placements[n][g]=p.slice(0,a);return}const k=p.reduce((E,_)=>[...E,..._],[]),D=[];for(let E=0;Ee.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(An,{...e,onChange:a=>o(a),value:n,options:bk,className:"theme-layout-type-group [&_.brandy-radio-group]:grid [&_.brandy-radio-group]:grid-cols-2",itemCss:[ue(["&.selected{border:1px solid #000;}"])]})}const Ck=window.React.useMemo;function _k(e){const{current:t}=ye(),n=Le(o=>o.previewTemplate.placements[Ye(t)].toggle),i=Ck(()=>[{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(A1,{...e,options:i})}const Sk=window.React.useState;function jk(e){const[t,n]=Sk(window.wp.customize("blogname")),i=o=>{n(o),window.wp.customize("blogname")(o)};return r.jsx(L1,{...e,value:t,onChange:i})}const kk=window.React.useState;function Ek(e){const[t,n]=kk(window.wp.customize("blogdescription")),i=o=>{n(o),window.wp.customize("blogdescription")(o)};return r.jsx(L1,{...e,value:t,onChange:i})}const sc=window.React.useMemo;function Dk(e){const{current:t}=ye(),n=sc(()=>Ye(t),[t]),i=sc(()=>[...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=sc(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(I1,{...e,value:a,onChange:o})}const lc=window.React.useMemo;function $k(e){const{current:t}=ye(),n=lc(()=>Ye(t),[t]),i=lc(()=>[...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=lc(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(I1,{...e,value:a,onChange:o})}const kt=window.React.useMemo,Hk=window.React.useState,cn={unit:"px",value:12};function Mk(e){const{current:t}=ye(),[n,i]=Hk("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 $=me(e.settings,o);return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,o,t,n]),g=kt(()=>{const $=me(e.settings,a);return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,a,t,n]),p=kt(()=>{const $=me(e.settings,s);return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,s,t,n]),v=kt(()=>{const $=me(e.settings,l);return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,l,t,n]),w=kt(()=>{const $=me(e.settings,d);return $==null?1:$[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,d,t,n]),k=kt(()=>{const $=me(e.settings,c)??{desktop:{column_1:cn,column_2:cn,column_3:cn,column_4:cn,column_5:cn,column_6:cn}};return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,c,t,n]),D=kt(()=>{const $=me(e.settings,u)??{desktop:{column_1:cn,column_2:cn,column_3:cn,column_4:cn,column_5:cn,column_6:cn}};return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,u,t,n]),E=kt(()=>{const $=me(e.settings,h)??{desktop:{column_1:"initial",column_2:"initial",column_3:"initial",column_4:"initial",column_5:"initial",column_6:"initial"}};return $[t]==null||$[t][n]==null?$.desktop[n]:$[t][n]},[e.settings,h,t,n]),_=$=>{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}`,$);const M=JSON.parse(JSON.stringify(me(e.settings,[...o,t])??{}));M[n]=$,e.onChange(M,[...o,t],[...o,t])},H=$=>{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}`,$);const M=JSON.parse(JSON.stringify(me(e.settings,[...a,t])??{}));M[n]=$,e.onChange(M,[...a,t],[...a,t])},x=$=>{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}`,$);const M=JSON.parse(JSON.stringify(me(e.settings,[...s,t])??{}));M[n]=$,e.onChange(M,[...s,t],[...s,t])},y=$=>{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}`,$?"wrap":"nowrap");const M=JSON.parse(JSON.stringify(me(e.settings,[...l,t])??{}));M[n]=$,e.onChange(M,[...l,t],[...l,t])},N=$=>{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($));const M=JSON.parse(JSON.stringify(me(e.settings,[...u,t])??{}));M[n]=$,e.onChange(M,[...u,t],[...u,t])},B=$=>{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($));const M=JSON.parse(JSON.stringify(me(e.settings,[...c,t])??{}));M[n]=$,e.onChange(M,[...c,t],[...c,t])},S=$=>{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}`,$);const M=JSON.parse(JSON.stringify(me(e.settings,[...h,t])??{}));M[n]=$,e.onChange(M,[...h,t],[...h,t])},A=$=>{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}`,$);const M=JSON.parse(JSON.stringify(me(e.settings,[...d,t])??{}));M[n]=$,e.onChange(M,[...d,t],[...d,t])};return r.jsxs("div",{children:[r.jsxs(Rk,{children:[r.jsxs(Nk,{children:[I("Customize column"),r.jsx(T1,{})]}),r.jsx(Ok,{children:I("Choose column to customize")}),r.jsx(Mt,{options:Ik,selected:n,onChange:i})]}),r.jsxs(Bk,{children:[r.jsx(Pk,{children:I("Item direction")}),r.jsx(Mt,{options:Tk,selected:f,onChange:_})]}),r.jsxs(Vk,{children:[r.jsx(zk,{children:I("Horizontal alignment")}),r.jsx(Mt,{options:Lk,selected:g,onChange:H,className:"grid grid-cols-4",itemCss:ue(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),r.jsxs(Fk,{children:[r.jsx(Zk,{children:I("Vertical alignment")}),r.jsx(Mt,{options:Ak,selected:p,onChange:x,className:"grid grid-cols-4",itemCss:ue(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),r.jsx(Wk,{children:r.jsx(at,{title:I("Horizontal gap"),value:D,min:0,max:300,onChange:N})}),r.jsx(Gk,{children:r.jsx(at,{title:I("Vertical gap"),value:k,min:0,max:300,onChange:B})}),r.jsxs(Uk,{children:[r.jsx(Yk,{children:I("Fit across x columns")}),r.jsx(Jk,{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(Xk,{children:[r.jsx(Qk,{children:I("Auto expand")}),r.jsx(qk,{children:I("Auto expand column elements to fill the space")}),r.jsx(Mt,{options:[{label:"None",value:"auto"},{label:"Expand",value:"100%"}],selected:E,onChange:S})]}),r.jsxs(Kk,{children:[r.jsxs(eE,{children:[r.jsx("div",{children:I("Allow items to wrap")}),r.jsx(C1,{checked:v,onChange:y})]}),r.jsx(tE,{children:I("Allow items to wrap to the next line")})]})]})}const Ik=Array.from({length:6}).map((e,t)=>({label:t+1,value:`column_${t+1}`})),Tk=[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],Lk=[{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"}],Ak=[{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 Rk=m("div")({marginBottom:"1rem"}),Nk=m("div")({marginBottom:"0.5rem",fontWeight:"700",textTransform:"capitalize"}),Ok=m("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}),Bk=m("div")({marginBottom:"1rem"}),Pk=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Vk=m("div")({marginBottom:"1rem"}),zk=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Fk=m("div")({marginBottom:"1rem"}),Zk=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Wk=m("div")({marginBottom:"1rem"}),Gk=m("div")({marginBottom:"1rem"}),Uk=m("div")({marginBottom:"1rem"}),Yk=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),Jk=m("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}),Xk=m("div")({marginBottom:"1rem"}),Qk=m("div")({marginBottom:"0.5rem",textTransform:"capitalize"}),qk=m("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}),Kk=m("div")({marginBottom:"1rem"}),eE=m("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"space-between",textTransform:"capitalize"}),tE=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 _f=window.React.useContext,nE=window.React.useMemo,rE=window.React.useState,iE=e=>{const{builder:t}=_f(et),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]=rE(!1),l=()=>{i(h=>{h.items=n.items.filter((f,g)=>g!==e.position)}),$e().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,g)=>{if(e.position===g){const p=oe(_t(o??"",t)+` .brandy-list-link-item:nth-child(${g+1})`);p&&window.jQuery(p).html(h),i(v=>{v.items[g].label=h.toString()})}})},u=h=>{n.items.forEach((f,g)=>{if(g===e.position){const p=oe(_t(o??"",t)+` .brandy-list-link-item:nth-child(${g+1})`);p&&window.jQuery(p).attr("href",Ms(h)),i(v=>{v.items[g].url=h.toString()})}})};return r.jsxs(aE,{$_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(sE,{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(lE,{children:[r.jsx(cE,{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:je([!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:je(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(dE,{$_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(uE,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#FF5F5D"},{fill:"#FF5F5D"})],children:r.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1.67773 1.57422H11.3206L9.97478 10.3049C9.82442 11.2803 8.98504 12.0002 7.99812 12.0002H5.0002C4.01328 12.0002 3.17391 11.2803 3.02355 10.3049L1.67773 1.57422Z",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("rect",{x:"0.875",y:"1.57422",width:"11.25",height:"1.37702",fill:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{d:"M8.10686 1.57369C8.10686 1.57369 7.38732 1.57369 6.49972 1.57369C5.61212 1.57369 4.89258 1.57369 4.89258 1.57369C4.89258 0.704538 5.61212 -4.8097e-05 6.49972 -4.8097e-05C7.38732 -4.8097e-05 8.10686 0.704538 8.10686 1.57369Z",fill:window.brandyCustomizerData.colors.icon.normal})]})}),r.jsx(hE,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},ue(["&:hover svg{*[stroke]{","}*[fill]{","}}",""],{stroke:"#1E1E1E"},{fill:"#1E1E1E"},a&&{"*":{fill:"#fff !important"}})],children:r.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.28003 0.627C4.30892 0.451874 4.39853 0.292754 4.53292 0.177945C4.66731 0.0631354 4.83776 8.18362e-05 5.01395 1.09305e-07H5.98605C6.16237 -9.57618e-05 6.333 0.0628773 6.46754 0.177702C6.60208 0.292527 6.6918 0.451747 6.72072 0.627L6.90233 1.7265C7.48813 1.9215 8.02108 2.23575 8.4714 2.64L9.50826 2.2485C9.67323 2.18642 9.8547 2.18529 10.0204 2.2453C10.1861 2.3053 10.3254 2.42257 10.4134 2.57625L10.8994 3.42375C10.9878 3.57753 11.019 3.75792 10.9877 3.93277C10.9563 4.10763 10.8644 4.26558 10.7282 4.3785L9.87374 5.0865C9.99709 5.68891 9.99709 6.31034 9.87374 6.91275L10.729 7.62225C10.8649 7.73513 10.9568 7.89295 10.9881 8.06763C11.0195 8.24232 10.9883 8.42254 10.9002 8.57625L10.4141 9.42375C10.3261 9.57743 10.1869 9.6947 10.0212 9.75471C9.85544 9.81471 9.67397 9.81358 9.50901 9.7515L8.4714 9.36C8.02108 9.765 7.48887 10.0785 6.90233 10.2735L6.72072 11.373C6.6918 11.5483 6.60208 11.7075 6.46754 11.8223C6.333 11.9371 6.16237 12.0001 5.98605 12H5.01395C4.83776 11.9999 4.66731 11.9369 4.53292 11.8221C4.39853 11.7072 4.30892 11.5481 4.28003 11.373L4.09841 10.2735C3.51888 10.0803 2.98485 9.76943 2.52934 9.36L1.49173 9.7515C1.32676 9.81384 1.14519 9.8152 0.979313 9.75532C0.813441 9.69544 0.674028 9.57822 0.585874 9.4245L0.0998205 8.57625C0.0116929 8.42254 -0.0194682 8.24232 0.0118792 8.06763C0.0432266 7.89295 0.13505 7.73513 0.271018 7.62225L1.12626 6.91275C1.00293 6.31034 1.00293 5.68891 1.12626 5.0865L0.271763 4.3785C0.135794 4.26562 0.0439709 4.1078 0.0126235 3.93312C-0.0187239 3.75843 0.0124372 3.57821 0.100565 3.4245L0.586618 2.57625C0.674655 2.4224 0.814019 2.30502 0.979901 2.245C1.14578 2.18498 1.32742 2.18622 1.49248 2.2485L2.52934 2.64C2.98484 2.23055 3.51888 1.91964 4.09841 1.7265L4.28003 0.627ZM7.73376 6C7.73376 6.29547 7.676 6.58806 7.56378 6.86104C7.45156 7.13402 7.28708 7.38206 7.07973 7.59099C6.87237 7.79992 6.6262 7.96566 6.35528 8.07873C6.08436 8.1918 5.79399 8.25 5.50074 8.25C5.2075 8.25 4.91713 8.1918 4.64621 8.07873C4.37528 7.96566 4.12912 7.79992 3.92176 7.59099C3.71441 7.38206 3.54992 7.13402 3.43771 6.86104C3.32549 6.58806 3.26773 6.29547 3.26773 6C3.26773 5.40326 3.50299 4.83097 3.92176 4.40901C4.34053 3.98705 4.90851 3.75 5.50074 3.75C6.09298 3.75 6.66095 3.98705 7.07973 4.40901C7.4985 4.83097 7.73376 5.40326 7.73376 6Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]})]}),a&&r.jsxs(fE,{children:[r.jsxs(pE,{children:[r.jsx("div",{children:"Label"}),r.jsx(st,{value:e.item.label,onChange:d})]}),r.jsxs(gE,{children:[r.jsx("div",{children:"Link"}),r.jsx(st,{value:e.item.url,onChange:u})]})]})]})};function oE(e){const{builder:t}=_f(et),n=nE(()=>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(mE,{children:[r.jsxs(vE,{children:[r.jsx(ze,{className:"m-0",children:"List Link"}),r.jsx(wE,{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(xE,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gr.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(iE,{item:s,position:l},l))})]})}var aE=m("div")`${e=>e.$_css2}`,sE=m("div")`${e=>e.$_css3}`,lE=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),cE=m("span")({cursor:"grab",padding:"0.5rem"}),dE=m("div")`${e=>e.$_css4}`,uE=m("span")`${e=>e.$_css5}`,hE=m("span")`${e=>e.$_css6}`,fE=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),pE=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),gE=m("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),mE=m("div")({display:"flex",flexDirection:"column",gap:"1rem"}),vE=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),wE=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"}}),xE=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 bE=window.React.useCallback,yE=window.React.useContext,CE=window.React.useMemo;function _E(e){const{builder:t}=yE(qt),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=bE(()=>{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 CE(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(SE,{children:[r.jsx(ut,{className:je(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Hh,{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 SE=m("div").withConfig({displayName:"ResetLogo___StyledDiv",componentId:"sc-1axmblk-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});function jE(e){return{ButtonGroup:hr,IconGroup:An,BoxShadow:uo,ColorGroup:Ww,Dimension:Jw,Image:s9,Switcher:I1,Typography:K9,EnabledDevices:r7,TextInput:L1,Spacing:u7,Alignment:g7,Position:w7,Dropdown:A1,Reset:qs,MultipleChoice:C7,Background:J7,FlexibleContent:nx,VerticalAlignment:ex,HorizontalAlignment:ax,PrefilledHTML:px,HTML:mx,Widget:sC,MultipleSelect:hC,NumberInput:a7,ResetLogo:_E,ListLanguages:c_,ListCurrencies:I_,CanvasTitle:F_,MenuSelection:RS,MenuActiveType:MS,ListSocials:KS,ListPayments:Dj,AccountLoggedInTitle:J_,AccountLoggedOutTitle:X_,AccountIconSelection:G_,AccountClickAction:ik,ButtonIconSelection:K_,ButtonType:lk,ButtonSize:ak,SearchIconSelection:BS,LiveResultsType:VS,SearchSuggestions:ZS,CartIconSelection:rS,ListContacts:lS,WishlistIconSelection:tk,NewsletterLayoutType:yk,FooterColumnLayout:pk,FooterNumberColumn:gk,FooterStretchItem:$k,ColumnContentLayout:Mk,HeaderStretchItem:Dk,ToggleOffCanvasType:vk,ToggleOffCanvasAlignBottomFrom:_k,SiteTitle:jk,SiteTagline:Ek,ListLink:oE}[e]}const kE=window.React.useCallback,jr=window.React.useMemo,Q1=({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",Q1({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)?Se(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 ia({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[Ye(s)].toggle)==null?void 0:f.includes(t))});return!jr(()=>Q1({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(EE,{data:h,sectionId:t,settings:n,onChange:i,builder:o,clonedFromId:a},f))})}function EE(e){var d;const t=jr(()=>e.data,[e.data]),{current:n}=ye(),i=jr(()=>e.builder??"header",[e.builder]),o=jr(()=>jE(t.type)??!1,[t.type]),a=jr(()=>me(e.settings,t.value_path),[e.settings,t.value_path]),s=jr(()=>t.default_value,[t.default_value]),l=jr(()=>Q1({conditions:t.visible_conditions,settings:e.settings,device:n}),[t.visible_conditions,e.settings,n,s]),c=kE((u,h=null,f=null,g=!1)=>{e.onChange(p=>{var D,E,_,H;const v=h??t.value_path;let w=me(p,v);if(w==null&&(g||t.is_responsive?Ne(p,v,{desktop:null,tablet:null,mobile:null}):Ne(p,v,null)),w=me(p,v),w==null&&(w=f?me(t.default_value,f):t.default_value),Ci(w)&&!Ci(u)||g?Ne(p,v,{...w,[n]:u}):Ne(p,v,u),((D=t.render_options)==null?void 0:D.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;((E=t.render_options)==null?void 0:E.type)==="content"&&(k=xm),((_=t.render_options)==null?void 0:_.type)==="data_attribute"&&(k=I2),((H=t.render_options)==null?void 0:H.type)==="variable"&&(k=kn),k!=null&&k({builder:i,sectionId:e.sectionId,settings:p,device:n,clonedFromId:e.clonedFromId})})},[e.onChange,t.value_path,n,(d=t.render_options)==null?void 0:d.type,e.sectionId,i]);return o===!1||!l?!1:r.jsx(o,{...t,value:Sf(a,s),onChange:c,sectionId:e.sectionId,builder:i,settings:e.settings})}function Sf(e,t,n=!1){if(e===void 0)return t;if(e===null)return n?null:t;if(Array.isArray(t)||!f2(t))return e;const i=t;return Object.keys(t).forEach(o=>{i[o]=Sf(e[o],t[o],!0)}),JSON.parse(JSON.stringify(i))}const ut=e=>e.title?r.jsxs(DE,{className:e.className??(e.title.show_devices?"mb-0":"mb-[8px]"),children:[r.jsxs($E,{className:je([e.title.type==="bold"&&"font-bold","brandy-setting-title-text"]),children:[e.title.text,e.title.tooltip&&r.jsxs(HE,{className:"brandy-setting-title-mark",$_css2:[{display:"inline-block",height:"15px",width:"15px",cursor:"pointer"},ue(["position:relative;&:hover{.brandy-setting-title-tooltip{opacity:1;visibility:visible;}}"])],children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon",viewBox:"0 0 1024 1024",children:r.jsx("path",{fill:"#5a6d80",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"})}),r.jsx(ME,{className:"brandy-setting-title-tooltip",dangerouslySetInnerHTML:{__html:e.title.tooltip}})]})]}),e.title.show_devices&&r.jsx(T1,{})]}):!1;var DE=m("div")({display:"flex",alignItems:"center","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))"}),$E=m("div")({display:"flex",alignItems:"center",gap:"5px",textTransform:"capitalize"}),HE=m("span")`${e=>e.$_css2}`,ME=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 IE={isDragging:!1},Zo=Hs()(e=>({...IE,startDragging:()=>{e(()=>({isDragging:!0}))},stopDragging:()=>{e(()=>({isDragging:!1}))}}));const TE=window.React.useEffect,lu=window.React.useRef,LE=window.React.useState;function jf({items:e,builder:t,disabledItems:n=[]}){const{startDragging:i,stopDragging:o}=Zo(s=>({startDragging:s.startDragging,stopDragging:s.stopDragging})),a=()=>!1;return r.jsx(Gr.ReactSortable,{list:e,setList:a,group:{name:`${t}-elements-builder`,pull:"clone"},sort:!1,className:"flex flex-col justify-center gap-3",tag:"div",filter:".brandy-undraggable-item",preventOnFilter:!0,forceFallback:!0,fallbackOnBody:!0,fallbackClass:"brandy-sortable-fallback",dragClass:"brandy-sortable-drag",chosenClass:"brandy-sortable-chosen",removeCloneOnHide:!0,onStart:()=>{i()},onEnd:()=>{o()},children:e.map(({id:s,title:l})=>{var c;return r.jsxs(RE,{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))"}},ue(["&.brandy-undraggable-item{cursor:initial;"," display:none;}&:hover{&:.brandy-undraggable-item .drag-icon{svg{*[fill]{","}*[stroke]{","}}}.duplicate-icon,.remove-icon{visibility:visible;opacity:1;transition:all ease-in-out 0.2s;svg *[fill],svg *[stroke]{transition:all ease-in-out 0.2s;}&:hover{svg{*[fill]{","}*[stroke]{","}}}}.remove-icon{&:hover{svg{*[fill]{","}*[stroke]{","}}}}}"],{"--tw-bg-opacity":"1",backgroundColor:"rgb(220 221 227 / var(--tw-bg-opacity))","--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(x6,{})}),r.jsx(AE,{name:l??((c=window.brandyElements[s])==null?void 0:c.title)??"",id:s,builder:t,disabled:n.includes(s)})]},s)})})}function AE({id:e,name:t,builder:n,disabled:i=!1}){const[o,a]=LE(!1),s=d=>{let u=Le;n==="footer"&&(u=Ie),u.getState().changeElementItemTitle(e,d)},l=lu(null),c=lu(null);return TE(()=>{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(NE,{value:t,type:"text",onChange:s,ref:l}):r.jsx("span",{ref:c,children:t||""})}var RE=m("span")`${e=>e.$_css2}`,NE=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 OE=window.React.useMemo;function q1(e,t="header"){const n=ne(t)(o=>o.previewTemplate.elements),i=OE(()=>b2(e),[e]);return{allElements:Object.values(n),usingElementIds:i,unusedElements:Object.values(n).filter(o=>{var s;return(o.builders??((s=window.brandyElements[o.id])==null?void 0:s.builders)??["header"]).includes(t)&&!i.includes(o.id)})}}const BE=window.React.useMemo,PE=window.React.useState,VE=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function zE(){const{current:e}=ye(),t=ne("header")(c=>c.previewTemplate.placements[Ye(e)]),[n,i]=PE(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=q1(t,"header"),l=BE(()=>a.filter(c=>{var d;return n===""||(c.title??((d=window.brandyElements[c.id])==null?void 0:d.title)??"").toLowerCase().includes(n.toLowerCase())}),[n,a]);return r.jsxs("div",{className:"",children:[r.jsx("div",{className:"p-[16px] bg-gutenberg-white border-solid border-[#DDD] border-t border-b",children:r.jsx(Ur,{searchText:n,onSearch:o,placeholder:I("Search element")})}),r.jsx(L2,{children:r.jsx(Xo,{children:l.length<=0?r.jsx(VE,{}):r.jsx(jf,{items:l,disabledItems:s,builder:"header"})})})]})}const FE=window.React.useMemo;function ZE(){const e=Le(i=>i.previewTemplate.settings),t=FE(()=>window.brandySettingsLayouts.header,[]),n=Le(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(ia,{section:i,sectionKey:`header-${o}`,sectionId:"header",settings:e,onChange:n,builder:"header"},`header-${o}`))})}const WE=[{label:I("Elements"),key:"elements"},{label:I("Settings"),key:"settings"}];function GE(){const{contextHolder:e,currentTab:t}=zi({items:WE}),n=Le(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{zt()};return r.jsxs(rl,{children:[r.jsx(Jn,{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(zE,{}):r.jsx(ZE,{})]})}const cu=window.React.useCallback,UE=window.React.useEffect,mo=window.React.useMemo,La=window.React.useState,YE=[{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)"})})]})]})}}],cc=({children:e})=>r.jsx(ze,{className:"mb-2 font-semibold",children:e});function JE(){const e=Le(S=>S.addTemplate),t=Le(S=>S.choosePreviewTemplate),n=Le(S=>S.removeTemplate),i=Le(S=>S.templates),o=Le(S=>S.previewTemplate),[a]=La(o.id),s=mo(()=>`template-${Date.now()}`,[]),[l,c]=La(`Header #${i.length+1}`),[d,u]=La(""),[h,f]=La(""),g=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]),p=S=>{typeof S!="number"&&c(S)};UE(()=>()=>{C2()},[]);const v=cu(S=>i.find(A=>A.id===S)??window.brandyCustomizerData.defaults.header,[i]),w=cu(S=>window.brandyHeaderPresets[S],[]),k=()=>{zt()},D=(S,A)=>{let $=null,P=null;return S?$=v(S):$=w(A),$!=null&&(P=JSON.parse(JSON.stringify($)),P.id=s,P.settings.name=l),P},E=S=>{S.preventDefault();const A=D(h,d);if(A==null)return;const $=JSON.parse(JSON.stringify(A));n(s),e({...$,id:s,settings:{...$.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 $=D(S,A);if($==null)return;const P=JSON.parse(JSON.stringify($));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),setTimeout(()=>{y2()},200)},y=S=>{S!==d&&(u(S),x(h,S))},N=S=>{f(S),S==""?x(h,d):(u(""),x(S,d))},B=()=>{t(a),n(s),k()};return r.jsxs(rl,{children:[r.jsx(Jn,{onGoBack:B,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(cc,{children:I("Header name")}),r.jsx(st,{value:l,onChange:p,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(cc,{children:I("Copy elements & styles from")}),r.jsx(pt,{options:g,onChange:N,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(cc,{children:I("Using header presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:YE.map(S=>r.jsx(XE,{isActive:S.value===d,data:S,onSelect:()=>{y(S.value)}},S.value))})]})]})}),r.jsx(QE,{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(Ls,{primary:!0,onClick:E,disabled:H,children:I("Create header")})})]})}const XE=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=ye(),o=mo(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(qE,{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(KE,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(eD,{$_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 QE=m("div")`${e=>e.$_css}`,qE=m("div")`${e=>e.$_css2}`,KE=m("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),eD=m("p").withConfig({displayName:"NewHeader___StyledP",componentId:"sc-6re12p-0"})(["",""],e=>e.$_css3);const tD=window.React,nD=window.React.memo,rD=window.React.useCallback,kf=window.React.useContext,Ef=window.React.useMemo,Df=tD.createContext({});function iD(){const{builder:e}=kf(qt),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=rD(()=>{zt(),t()},[zt,t]),a=Ef(()=>({builder:e,goBack:o}),[e,o]);return r.jsxs(Df.Provider,{value:a,children:[r.jsx(Jn,{onGoBack:o,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(sD,{children:[I("Customizing")," ▸ ",i]}),r.jsxs(lD,{children:[n," ",e]})]})}),r.jsx(aD,{})]})}function oD(){const{builder:e}=kf(Df),t=ne(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=zi(),o=Ef(()=>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(p1,{children:o[i].sections.map((l,c)=>r.jsx(ia,{section:l,sectionKey:`${i}-${c}`,sectionId:`${t}_${e}`,settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const aD=nD(oD);var sD=m("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),lD=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 cD=window.React.useMemo,dD=window.React.useState,uD=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function hD(){const{current:e}=ye(),t=ne("footer")(c=>c.previewTemplate.placements[Ye(e)]),[n,i]=dD(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=q1(t,"footer"),l=cD(()=>a.filter(c=>{var d;return n===""||(c.title??((d=window.brandyElements[c.id])==null?void 0:d.title)??"").toLowerCase().includes(n.toLowerCase())}),[n,a]);return r.jsxs("div",{className:"",children:[r.jsx("div",{className:"p-[16px] bg-gutenberg-white border-solid border-[#DDD] border-t border-b",children:r.jsx(Ur,{searchText:n,onSearch:o,placeholder:I("Search element")})}),r.jsx(L2,{children:r.jsx(Xo,{children:l.length<=0?r.jsx(uD,{}):r.jsx(jf,{items:l,builder:"footer",disabledItems:s})})})]})}const fD=window.React.useMemo;function pD(){const e=Ie(i=>i.previewTemplate.settings),t=fD(()=>window.brandySettingsLayouts.footer,[]),n=Ie(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(ia,{section:i,sectionKey:`footer-${o}`,sectionId:"footer",settings:e,onChange:n,builder:"footer"},`footer-${o}`))})}const gD=[{label:I("Elements"),key:"elements"},{label:I("Settings"),key:"settings"}];function mD(){const{contextHolder:e,currentTab:t}=zi({items:gD}),n=Ie(o=>{var a,s;return((s=(a=o.previewTemplate)==null?void 0:a.settings)==null?void 0:s.name)??""}),i=()=>{zt()};return r.jsxs(rl,{children:[r.jsx(Jn,{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(hD,{}):r.jsx(pD,{})]})}const du=window.React.useCallback,vD=window.React.useEffect,vo=window.React.useMemo,Aa=window.React.useState,wD=[{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)"})})})]})}}],dc=({children:e})=>r.jsx(ze,{className:"mb-2 font-semibold",children:e});function xD(){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]=Aa(o.id),s=vo(()=>`template-${Date.now()}`,[]),[l,c]=Aa(`Footer #${i.length+1}`),[d,u]=Aa(""),[h,f]=Aa(""),g=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]),p=S=>{typeof S!="number"&&c(S)};vD(()=>()=>{C2()},[]);const v=du(S=>i.find(A=>A.id===S)??window.brandyCustomizerData.defaults.footer,[i]),w=du(S=>window.brandyFooterPresets[S],[]),k=()=>{zt()},D=(S,A)=>{let $=null,P=null;return S?$=v(S):$=w(A),$!=null&&(P=JSON.parse(JSON.stringify($)),P.id=s,P.settings.name=l),P},E=S=>{S.preventDefault();const A=D(h,d);if(A==null)return;const $=JSON.parse(JSON.stringify(A));n(s),e({...$,id:s,settings:{...$.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 $=D(S,A);if($==null)return;const P=JSON.parse(JSON.stringify($));n(s),e({...P,id:s,settings:{...P.settings,name:l}}),t(s),setTimeout(()=>{y2()},200)},y=S=>{S!==d&&(u(S),x(h,S))},N=S=>{f(S),S==""?x(h,d):(u(""),x(S,d))},B=()=>{t(a),n(s),k()};return r.jsxs(rl,{children:[r.jsx(Jn,{onGoBack:B,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(dc,{children:I("Footer name")}),r.jsx(st,{value:l,onChange:p,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(dc,{children:I("Copy elements & styles from")}),r.jsx(pt,{options:g,onChange:N,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(dc,{children:I("Using footer presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:wD.map(S=>r.jsx(bD,{isActive:S.value===d,data:S,onSelect:()=>{y(S.value)}},S.value))})]})]})}),r.jsx(yD,{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(Ls,{primary:!0,onClick:E,disabled:H,children:I("Create footer")})})]})}const bD=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=ye(),o=vo(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(CD,{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(_D,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(SD,{$_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 yD=m("div")`${e=>e.$_css}`,CD=m("div")`${e=>e.$_css2}`,_D=m("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),SD=m("p").withConfig({displayName:"NewFooter___StyledP",componentId:"sc-15uicft-0"})(["",""],e=>e.$_css3);const jD=window.React,kD=window.React.memo,ED=window.React.useCallback,$f=window.React.useContext,Hf=window.React.useMemo,Mf=jD.createContext({});function uu(){const{builder:e}=$f(qt),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=ED(()=>{zt(),t()},[zt,t]),o=Hf(()=>({builder:e,goBack:i}),[e,i]);return r.jsxs(Mf.Provider,{value:o,children:[r.jsx(Jn,{onGoBack:i,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(HD,{children:[I("Customizing")," ▸ ",n]}),r.jsx(MD,{children:I("Toggle off canvas")})]})}),r.jsx($D,{})]})}function DD(){const{builder:e}=$f(Mf),t=ne(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=zi(),o=Hf(()=>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(p1,{children:o[i].sections.map((l,c)=>r.jsx(ia,{section:l,sectionKey:`${i}-${c}`,sectionId:"toggle_off_canvas",settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const $D=kD(DD);var HD=m("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),MD=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 oa=m.div.withConfig({displayName:"Styleds__SettingLine",componentId:"sc-1ff79ea-0"})(["",""],{marginTop:"0.75rem"}),_r=window.React.useState,uc=[{label:I("Hidden"),value:"hidden"},{label:I("Optional"),value:"optional"},{label:I("Required"),value:"required"}],hu=Object.entries(window.brandyCustomizerData.pages).map(([e,t])=>({label:t.title,value:e})),ID=m(oa)` ${{marginTop:"0px"}} `;function si({title:e,description:t,children:n}){return r.jsxs(ID,{children:[r.jsx(LD,{children:e}),t&&r.jsx(AD,{children:t}),n]})}function TD(){const[e,t]=_r(()=>window.wp.customize("woocommerce_checkout_company_field")()),[n,i]=_r(()=>window.wp.customize("woocommerce_checkout_address_2_field")()),[o,a]=_r(()=>window.wp.customize("woocommerce_checkout_phone_field")()),[s,l]=_r(()=>window.wp.customize("woocommerce_checkout_highlight_required_fields")()),[c,d]=_r(()=>window.wp.customize("wp_page_for_privacy_policy")()),[u,h]=_r(()=>window.wp.customize("woocommerce_terms_page_id")()),[f,g]=_r(()=>window.wp.customize("woocommerce_checkout_privacy_policy_text")()),p=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)},D=H=>{d(H),window.wp.customize("wp_page_for_privacy_policy")(H)},E=H=>{h(H),window.wp.customize("woocommerce_terms_page_id")(H)},_=H=>{const x=H.target.value;g(x),window.wp.customize("woocommerce_checkout_privacy_policy_text")(x)};return r.jsxs(RD,{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:uc,selected:e,onChange:p})}),r.jsx(si,{title:I("Address line 2 field"),children:r.jsx(pt,{options:uc,selected:n,onChange:v})}),r.jsx(si,{title:I("Phone field"),children:r.jsx(pt,{options:uc,selected:o,onChange:w})}),r.jsxs(ND,{children:[r.jsx(OD,{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:hu,selected:c,onChange:D})}),r.jsx(si,{title:I("Terms and conditions page"),children:r.jsx(pt,{options:hu,selected:u,onChange:E})}),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(BD,{value:f,onChange:_,rows:4})})]})}var LD=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))"}),AD=m("div")({marginBottom:"0.5rem"}),RD=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"}),ND=m("div")({display:"flex",alignItems:"center",gap:"0.25rem"}),OD=m("input")({margin:"0px"}),BD=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 Ra=window.React.useState,fu=[{label:I("Show products"),value:""},{label:I("Show categories"),value:"subcategories"},{label:I("Show categories & products"),value:"both"}],PD=[{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"}],VD=m(oa)` ${{marginTop:"0px"}} `;function Na({title:e,description:t="",children:n}){return r.jsxs(VD,{children:[r.jsx(FD,{children:e}),r.jsx(ZD,{children:t}),n]})}function zD(){const[e,t]=Ra(()=>window.wp.customize("woocommerce_shop_page_display")()),[n,i]=Ra(()=>window.wp.customize("woocommerce_category_archive_display")()),[o,a]=Ra(()=>window.wp.customize("woocommerce_default_catalog_orderby")()),[s,l]=Ra(()=>window.wp.customize("wc_product_catalog")()),c=f=>{t(f),window.wp.customize("woocommerce_shop_page_display")(f)},d=f=>{i(f),window.wp.customize("woocommerce_shop_page_display")(f)},u=f=>{a(f),window.wp.customize("woocommerce_default_catalog_orderby")(f)},h=f=>{const g={...s,product_thumb_size:f};l(g),window.wp.customize("wc_product_catalog")(g),window.jQuery(oe("body")).css("--product-thumb-aspect-ratio",f=="size_1"?"3/4":"1")};return r.jsxs(WD,{children:[r.jsx(Na,{title:I("Shop page display"),description:I("Choose what to display on the main shop page."),children:r.jsx(pt,{options:fu,selected:e,onChange:c})}),r.jsx(Na,{title:I("Category display"),description:I("Choose what to display on product category pages."),children:r.jsx(pt,{options:fu,selected:n,onChange:d})}),r.jsx(Na,{title:I("Default product sorting"),description:I("How should products be sorted in the catalog by default?"),children:r.jsx(pt,{options:PD,selected:o,onChange:u})}),r.jsx(Na,{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 FD=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))"}),ZD=m("div")({marginBottom:"0.5rem"}),WD=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 GD=window.React.useState;function UD(){const[e,t]=GD(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(YD,{children:[r.jsxs(JD,{children:[r.jsx("label",{children:I("Text color")}),r.jsx(XD,{children:r.jsx(Ee,{color:e.text_color,onChange:i})})]}),r.jsxs(QD,{children:[r.jsx("label",{children:I("Background color")}),r.jsx(qD,{children:r.jsx(Ee,{color:e.background_color,onChange:o})})]}),r.jsx(at,{title:I("Text size"),value:e.font_size,onChange:a,units:["px","rem"]}),r.jsxs(KD,{children:[r.jsx("label",{children:I("Border color")}),r.jsx(e$,{children:r.jsx(Ee,{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(ta,{title:I("Padding"),value:e.padding,onChange:d,units:["px"]})]})}var YD=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),JD=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),XD=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),QD=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),qD=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),KD=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),e$=m("div").withConfig({displayName:"SaleBadge___StyledDiv7",componentId:"sc-9dtrrq-0"})({display:"flex",alignItems:"center",gap:"1rem"});const t$=window.React.useState,hc=m(oa)` ${{display:"flex",alignItems:"center",justifyContent:"space-between"}} `,fc=({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(r$,{children:[r.jsx(i$,{children:e}),r.jsxs(hc,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(o$,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:t.text_color.normal,onChange:o(["text_color","normal"],"color")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:t.text_color.hover,onChange:o(["text_color","hover"],"color")})})]})]}),r.jsxs(hc,{children:[r.jsx("label",{children:I("Background")}),r.jsx(a$,{children:r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:t.background.normal,onChange:o(["background","normal"],"color")})})})]}),r.jsxs(hc,{children:[r.jsx("label",{children:I("Border color")}),r.jsx(s$,{children:r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:t.border.color.normal,onChange:o(["border","color","normal"],"color")})})})]}),r.jsx(oa,{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 n$(){const[e,t]=t$(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(fc,{settings:e.information,title:I("Information notice"),onChange:n("information"),dataKey:"information"}),r.jsx(fc,{settings:e.success,title:I("Success notice"),onChange:n("success"),dataKey:"success"}),r.jsx(fc,{settings:e.error,title:I("Error notice"),onChange:n("error"),dataKey:"error"})]})}var r$=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"}),i$=m("h3")({fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),o$=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),a$=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),s$=m("div").withConfig({displayName:"StoreNotices___StyledDiv4",componentId:"sc-69yra-0"})({display:"flex",alignItems:"center",gap:"1rem"});const l$=window.React.useState,c$=m(oa)` ${{marginTop:"0px"}} `;function pu({title:e,description:t="",children:n}){return r.jsxs(c$,{children:[r.jsx(u$,{children:e}),r.jsx(h$,{children:t}),n]})}function d$(){const[e,t]=l$(()=>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(f$,{children:[r.jsx(pu,{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(pu,{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 u$=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))"}),h$=m("div")({marginBottom:"0.5rem"}),f$=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 p$=window.React.useContext,g$=window.React.useEffect,gu=window.React.useMemo;function m$(){const{sectionId:e}=p$(qt);g$(()=>{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=gu(()=>{switch(e){case"wc_store_notices":return n$;case"wc_product_catalog":return zD;case"wc_single_product":return d$;case"wc_checkout":return TD;case"sale_badge":return UD;default:return!1}},[e]),n=gu(()=>window.brandyCustomizerData.woocommerce.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Jn,{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:zt}),r.jsx(v$,{children:r.jsx(t,{})})]})}var v$=m("div").withConfig({displayName:"Section___StyledDiv",componentId:"sc-gsppkr-0"})({marginTop:"1rem"});const w$=[{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"})})]})}],x$=window.React.useState,mu="breadcrumb_settings";function b$(){const[e,t]=x$(window.wp.customize(mu)()??window.brandyCustomizerData.general.default_settings.breadcrumb_settings),{contextHolder:n,currentTab:i}=zi({items:[{label:I("General"),key:"general"},{label:I("Design"),key:"design"}]}),o=a=>s=>{Ao(()=>{const l=JSON.parse(JSON.stringify(e));Ne(l,a,s),t(l),window.wp.customize(mu)(l)})};return r.jsxs("div",{children:[r.jsx(D$,{children:I("Customizing: Breadcrumb")}),n,r.jsx($$,{children:i==="general"?r.jsx(y$,{value:e.separator_type,onChange:o}):r.jsxs(r.Fragment,{children:[r.jsx(C$,{value:e.typography,onChange:o}),r.jsx(_$,{value:e.text_color,onChange:o}),r.jsx(E$,{value:e,onChange:o}),r.jsx(S$,{bgColor:e.container_background_color,borderRadius:e.container_border_radius,onChange:o}),r.jsx(j$,{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(k$,{value:e.item_spacing,onChange:o})]})})]})}function y$({value:e,onChange:t}){const n=i=>o=>{t(i)(o),Uo.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:[ue(["&.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:w$})]})}function C$({value:e,onChange:t}){return r.jsxs(H$,{children:[r.jsx(ze,{children:I("Typography")}),r.jsx(Ah,{value:e,onChange:t(["typography"])})]})}function _$({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(M$,{children:[r.jsx(ze,{children:I("Text color")}),r.jsxs(I$,{children:[r.jsx(Te,{title:"Normal",style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.normal,onChange:n("normal")})}),r.jsx(Te,{title:"Hover",style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.hover,onChange:n("hover")})}),r.jsx(Te,{title:"Active",style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.active,onChange:n("active")})})]})]})}function S$({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(T$,{children:[r.jsx("span",{children:I("Background color")}),r.jsx(Ee,{color:e,onChange:i})]}),r.jsx(L$,{children:r.jsx(at,{title:I("Border radius"),value:t,onChange:o,units:["px","%"],min:0,max:50})})]})}function j$({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(A$,{children:[r.jsx("span",{children:I("Background color")}),r.jsx(Ee,{color:e,onChange:o})]}),r.jsx(R$,{children:r.jsx(at,{title:I("Border radius"),value:t,onChange:a,units:["px","%"],min:0,max:50})}),r.jsx(N$,{children:r.jsx(ta,{title:I("Padding"),value:n,onChange:s,units:["px"]})})]})}function k$({value:e,onChange:t}){const{current:n}=c1(),i=Se(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 E$({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(O$,{children:[r.jsx(ze,{children:I("Separator color")}),r.jsxs(B$,{children:[r.jsx(Te,{title:"Normal",style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.separator_color??"var(--wp--preset--color--brandy-secondary-text)",onChange:n("separator_color")})}),r.jsx(Te,{title:"Hover",style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.separator_hover_color??"var(--wp--preset--color--brandy-primary-text)",onChange:n("separator_hover_color")})})]})]})}var D$=m("div")({padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"14px",fontWeight:"500"}),$$=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),H$=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),M$=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),I$=m("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),T$=m("div")({marginTop:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),L$=m("div")({marginTop:"1rem"}),A$=m("div")({marginTop:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),R$=m("div")({marginTop:"1rem"}),N$=m("div")({marginTop:"1rem"}),O$=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),B$=m("div").withConfig({displayName:"BreadcrumbSettings___StyledDiv12",componentId:"sc-zf9q46-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const P$=window.React.useState,$t=window.brandyCustomizerData.general.default_settings.button_settings;function V$(){const[e,t]=P$(window.wp.customize("button_settings")()??$t),n=(c,d="")=>u=>{const h=JSON.parse(JSON.stringify(e));Ne(h,[`${c}_${d?d+"_":""}color`],u),t(h),window.wp.customize("button_settings")(h);const f=oe("body");window.jQuery(f).css(`--${c}-button-${d?d+"-":""}color`,u)},i=(c,d="")=>u=>{const h=JSON.parse(JSON.stringify(e));Ne(h,[`${c}_${d?d+"_":""}background_color`],u),t(h),window.wp.customize("button_settings")(h);const f=oe("body");window.jQuery(f).css(`--${c}-button-${d?d+"-":""}background-color`,u)},o=(c,d="")=>u=>{const h=JSON.parse(JSON.stringify(e));Ne(h,[`${c}_${d?d+"_":""}box_shadow`],u),t(h),window.wp.customize("button_settings")(h);const f=oe("body");let g="";u.enabled?g=T2(u):g="0",window.jQuery(f).css(`--${c}-button-${d?d+"-":""}box-shadow`,g)},a=(c,d="")=>u=>{const h=JSON.parse(JSON.stringify(e));Ne(h,[`${c}_${d?d+"_":""}border_color`],u),t(h),window.wp.customize("button_settings")(h);const f=oe("body");window.jQuery(f).css(`--${c}-button-${d?d+"-":""}border-color`,u)},s=c=>d=>{const u=JSON.parse(JSON.stringify(e));Ne(u,[`${c}_border_width`],d),t(u),window.wp.customize("button_settings")(u);const h=oe("body");window.jQuery(h).css(`--${c}-button-border-width`,yt(d))},l={};return r.jsxs(z$,{children:[["primary","outline"].map(c=>r.jsxs(F$,{children:[r.jsxs(Z$,{children:[c,c=="primary"?" (Filled)":""]}),r.jsxs(W$,{children:[r.jsx("label",{children:I("Hover text color")}),r.jsx(G$,{children:r.jsx(Ee,{color:e[`${c}_hover_color`]??$t[`${c}_hover_color`],onChange:n(c,"hover")})})]}),r.jsxs(U$,{children:[r.jsx("label",{children:I("Hover background color")}),r.jsx(Y$,{children:r.jsx(Ee,{color:e[`${c}_hover_background_color`]??$t[`${c}_hover_background_color`],onChange:i(c,"hover")})})]}),c==="outline"&&r.jsxs(J$,{children:[r.jsx("label",{children:I("Hover border color")}),r.jsx(X$,{children:r.jsx(Ee,{color:e.outline_hover_border_color??$t.outline_hover_border_color,onChange:a("outline","hover")})})]}),r.jsx(uo,{...l,value:e[`${c}_box_shadow`]??$t[`${c}_box_shadow`],title:{text:I("Box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o(c),value_path:[]}),r.jsx(uo,{...l,value:e[`${c}_hover_box_shadow`]??$t[`${c}hover_box_shadow`],title:{text:I("Hover box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o(c,"hover"),value_path:[]})]},c)),r.jsxs(Q$,{children:[r.jsx(q$,{children:"Secondary"}),r.jsxs(K$,{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(tH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.secondary_color??$t.secondary_color,onChange:n("secondary")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.secondary_hover_color??$t.secondary_hover_color,onChange:n("secondary","hover")})})]})]}),r.jsxs(nH,{children:[r.jsx("label",{children:I("Background")}),r.jsxs(rH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.secondary_background_color??$t.secondary_background_color,onChange:i("secondary")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.secondary_hover_background_color??$t.secondary_hover_background_color,onChange:i("secondary","hover")})})]})]}),r.jsxs(iH,{children:[r.jsx("label",{children:I("Border color")}),r.jsxs(oH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.secondary_border_color??$t.secondary_border_color,onChange:a("secondary")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:e.secondary_hover_border_color??$t.secondary_hover_border_color,onChange:a("secondary","hover")})})]})]}),r.jsx(at,{title:"Border width",value:e.secondary_border_width??$t.secondary_border_width,onChange:s("secondary")}),r.jsx(uo,{...l,value:e.secondary_box_shadow??$t.secondary_box_shadow,title:{text:I("Box shadow"),type:"normal",show_devices:!1},can_reset:!1,onChange:o("secondary"),value_path:[]}),r.jsx(uo,{...l,value:e.secondary_hover_box_shadow??$t.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 z$=m("div")({display:"flex",flexDirection:"column"}),F$=m("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),Z$=m("div")({fontWeight:"600",textTransform:"capitalize"}),W$=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),G$=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),U$=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Y$=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),J$=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),X$=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),Q$=m("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),q$=m("div")({fontWeight:"600",textTransform:"capitalize"}),K$=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"}),tH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),nH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),rH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),iH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),oH=m("div").withConfig({displayName:"ButtonSettings___StyledDiv18",componentId:"sc-a0rhg7-0"})({display:"flex",alignItems:"center",gap:"1rem"});const aH=window.React.useState,Rt=window.brandyCustomizerData.general.default_settings.input_settings;function sH(){var c,d,u,h,f,g,p,v,w,k,D,E,_,H,x,y,N,B;const[e,t]=aH(window.wp.customize("input_settings")()??Rt),n=S=>A=>{const $=JSON.parse(JSON.stringify(e));Ne($,["text_color",S],A),t($),window.wp.customize("input_settings")($);const P=oe("body");window.jQuery(P).css(`--input-text-color-${S}`,A)},i=S=>A=>{const $=JSON.parse(JSON.stringify(e));Ne($,["background_color",S],A),t($),window.wp.customize("input_settings")($);const P=oe("body");window.jQuery(P).css(`--input-background-color-${S}`,A)},o=S=>A=>{const $=JSON.parse(JSON.stringify(e));Ne($,["border","color",S],A),t($),window.wp.customize("input_settings")($);const P=oe("body");window.jQuery(P).css(`--input-border-color-${S}`,A)},a=S=>{Ao(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","width"],S),t(A),window.wp.customize("input_settings")(A);const $=oe("body");window.jQuery($).css("--input-border-width",yt(S))})},s=S=>{Ao(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","radius"],S),t(A),window.wp.customize("input_settings")(A);const $=oe("body");window.jQuery($).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 $=oe("body");window.jQuery($).css("--input-padding",Jo(S))};return r.jsxs(lH,{children:[r.jsxs(cH,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(dH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((c=e==null?void 0:e.text_color)==null?void 0:c.normal)??((d=Rt.text_color)==null?void 0:d.normal),onChange:n("normal")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((u=e==null?void 0:e.text_color)==null?void 0:u.hover)??((h=Rt.text_color)==null?void 0:h.hover),onChange:n("hover")})})]})]}),r.jsxs(uH,{children:[r.jsx("label",{children:I("Background color")}),r.jsxs(hH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((g=Rt==null?void 0:Rt.background_color)==null?void 0:g.normal),onChange:i("normal")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((p=e==null?void 0:e.background_color)==null?void 0:p.hover)??((v=Rt.background_color)==null?void 0:v.hover),onChange:i("hover")})})]})]}),r.jsxs(fH,{children:[r.jsx("label",{children:I("Border color")}),r.jsxs(pH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((k=(w=e==null?void 0:e.border)==null?void 0:w.color)==null?void 0:k.normal)??((E=(D=Rt==null?void 0:Rt.border)==null?void 0:D.color)==null?void 0:E.normal),onChange:o("normal")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((H=(_=e==null?void 0:e.border)==null?void 0:_.color)==null?void 0:H.hover)??((y=(x=Rt.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)??Rt.border.width,onChange:a}),r.jsx(at,{title:I("Border radius"),value:((B=e==null?void 0:e.border)==null?void 0:B.radius)??Rt.border.radius,onChange:s}),r.jsx(ta,{title:I("Padding"),units:["px"],value:(e==null?void 0:e.padding)??Rt.padding,onChange:l})]})}var lH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),cH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),dH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),uH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),hH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),fH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),pH=m("div").withConfig({displayName:"InputSettings___StyledDiv7",componentId:"sc-1ocb9dp-0"})({display:"flex",alignItems:"center",gap:"1rem"});const gH=window.React.useState,Nt=window.brandyCustomizerData.general.default_settings.select_settings;function mH(){var c,d,u,h,f,g,p,v,w,k,D,E,_,H,x,y,N,B;const[e,t]=gH(window.wp.customize("select_settings")()??Nt),n=S=>A=>{const $=JSON.parse(JSON.stringify(e));Ne($,["text_color",S],A),t($),window.wp.customize("select_settings")($);const P=oe("body");window.jQuery(P).css(`--select-text-color-${S}`,A)},i=S=>A=>{const $=JSON.parse(JSON.stringify(e));Ne($,["background_color",S],A),t($),window.wp.customize("select_settings")($);const P=oe("body");window.jQuery(P).css(`--select-background-color-${S}`,A)},o=S=>A=>{const $=JSON.parse(JSON.stringify(e));Ne($,["border","color",S],A),t($),window.wp.customize("select_settings")($);const P=oe("body");window.jQuery(P).css(`--select-border-color-${S}`,A)},a=S=>{Ao(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","width"],S),t(A),window.wp.customize("select_settings")(A);const $=oe("body");window.jQuery($).css("--select-border-width",yt(S))})},s=S=>{Ao(()=>{const A=JSON.parse(JSON.stringify(e));Ne(A,["border","radius"],S),t(A),window.wp.customize("select_settings")(A);const $=oe("body");window.jQuery($).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 $=oe("body");window.jQuery($).css("--select-padding",Jo(S))};return r.jsxs(vH,{children:[r.jsxs(wH,{children:[r.jsx("label",{children:I("Text color")}),r.jsxs(xH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{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(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{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(bH,{children:[r.jsx("label",{children:I("Background color")}),r.jsxs(yH,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((g=Nt==null?void 0:Nt.background_color)==null?void 0:g.normal),onChange:i("normal")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((p=e==null?void 0:e.background_color)==null?void 0:p.hover)??((v=Nt.background_color)==null?void 0:v.hover),onChange:i("hover")})})]})]}),r.jsxs(CH,{children:[r.jsx("label",{children:I("Border color")}),r.jsxs(_H,{children:[r.jsx(Te,{title:I("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{color:((k=(w=e==null?void 0:e.border)==null?void 0:w.color)==null?void 0:k.normal)??((E=(D=Nt==null?void 0:Nt.border)==null?void 0:D.color)==null?void 0:E.normal),onChange:o("normal")})}),r.jsx(Te,{title:I("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ee,{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:((B=e==null?void 0:e.border)==null?void 0:B.radius)??Nt.border.radius,onChange:s}),r.jsx(ta,{title:I("Padding"),units:["px"],value:(e==null?void 0:e.padding)??Nt.padding,onChange:l})]})}var vH=m("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),wH=m("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),xH=m("div")({display:"flex",alignItems:"center",gap:"1rem"}),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").withConfig({displayName:"SelectSettings___StyledDiv7",componentId:"sc-13p5h44-0"})({display:"flex",alignItems:"center",gap:"1rem"});const SH=window.React.useContext,vu=window.React.useMemo;function jH(){const{sectionId:e}=SH(qt),t=vu(()=>{switch(e){case"button_settings":return V$;case"breadcrumb_settings":return b$;case"select_settings":return mH;case"input_settings":return sH;default:return null}},[e]),n=vu(()=>window.brandyCustomizerData.general.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Jn,{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:zt}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const kH=window.React.createContext,wu=window.React.useMemo,rl=m.div.withConfig({displayName:"BrandySection__StyledSectionWrapper",componentId:"sc-ywrqgm-0"})({height:"100%"}),qt=kH({});function EH(e){const{sectionId:t,builder:n,clonedFromId:i}=e,o=wu(()=>({sectionId:t,builder:n}),[t,n]),a=wu(()=>t==="new_header"&&n==="header"?r.jsx(JE,{}):t==="new_footer"&&n==="footer"?r.jsx(xD,{}):t==="settings"&&n==="header"?r.jsx(GE,{}):t==="settings"&&n==="footer"?r.jsx(mD,{}):t.endsWith("_header")&&n==="header"||t.endsWith("_footer")&&n==="footer"?r.jsx(iD,{}):t==="toggle_off_canvas"?r.jsx(uu,{}):t==="toggle"?r.jsx(uu,{}):n==="woocommerce-settings"?r.jsx(m$,{}):n==="general-settings"?r.jsx(jH,{}):r.jsx(Fy,{elementId:t,clonedFromId:i}),[t,n]);return r.jsx(qt.Provider,{value:o,children:a})}const un=[],DH=(e,t)=>{if(t.endsWith("_header")&&e==="header"||t.endsWith("_footer")&&e==="footer"){HH(e,t);return}if(t==="toggle_off_canvas"){$H();return}MH(e,t)},$H=()=>{Le.setState(e=>{e.chosenRow="toggle",e.chosenElement=null})},HH=(e,t)=>{let n=Le;e==="footer"&&(n=Ie),["top","middle","bottom"].forEach(o=>{t.includes(o)&&n.setState(a=>{a.chosenRow=o,a.chosenElement=null})})},MH=(e,t)=>{let n=Le;e==="footer"&&(n=Ie),n.setState(i=>{const o=i.previewTemplate.elements[t];o!=null&&(i.chosenElement=o,i.chosenRow=null)})},If=300,En=(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()},If)}),i!=null){const d=xu(e,i);s==null||s.appendChild(d)}const c=xu(e,t);s==null||s.appendChild(c)};function xu(e,t){const n=document.createElement("div");n.className="customize-pane-child",n.dataset.sectionId=t,n.dataset.builder=e,DH(e,t);const i=Tr.createRoot(n);return un.push({root:i,dom:n}),i.render(r.jsx(EH,{builder:e,sectionId:t})),setTimeout(()=>{n.classList.add("current-panel")},100),n}const zt=()=>{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()},If))})},oe=e=>{const t=f5();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 Tf=Symbol.for("immer-nothing"),bu=Symbol.for("immer-draftable"),Yt=Symbol.for("immer-state");function _n(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[Yt]}function Or(e){var t;return e?Lf(e)||Array.isArray(e)||!!e[bu]||!!((t=e.constructor)!=null&&t[bu])||ol(e)||al(e):!1}var IH=Object.prototype.constructor.toString();function Lf(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)===IH}function ms(e,t){il(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,i)=>t(i,n,e))}function il(e){const t=e[Yt];return t?t.type_:Array.isArray(e)?1:ol(e)?2:al(e)?3:0}function Yc(e,t){return il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Af(e,t,n){const i=il(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function TH(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ol(e){return e instanceof Map}function al(e){return e instanceof Set}function kr(e){return e.copy_||e.base_}function Jc(e,t){if(ol(e))return new Map(e);if(al(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Lf(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[Yt];let o=Reflect.ownKeys(i);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=LH),Object.freeze(e),t&&Object.entries(e).forEach(([n,i])=>K1(i,!0))),e}function LH(){_n(2)}function sl(e){return Object.isFrozen(e)}var AH={};function Br(e){const t=AH[e];return t||_n(0,e),t}var Wo;function Rf(){return Wo}function RH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yu(e,t){t&&(Br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xc(e){Qc(e),e.drafts_.forEach(NH),e.drafts_=null}function Qc(e){e===Wo&&(Wo=e.parent_)}function Cu(e){return Wo=RH(Wo,e)}function NH(e){const t=e[Yt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _u(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Yt].modified_&&(Xc(t),_n(4)),Or(e)&&(e=vs(t,e),t.parent_||ws(t,e)),t.patches_&&Br("Patches").generateReplacementPatches_(n[Yt].base_,e,t.patches_,t.inversePatches_)):e=vs(t,n,[]),Xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Tf?e:void 0}function vs(e,t,n){if(sl(t))return t;const i=t[Yt];if(!i)return ms(t,(o,a)=>Su(e,i,t,o,a,n)),t;if(i.scope_!==e)return t;if(!i.modified_)return ws(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),ms(a,(l,c)=>Su(e,i,o,l,c,n,s)),ws(e,o,!1),n&&e.patches_&&Br("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Su(e,t,n,i,o,a,s){if(Ti(o)){const l=a&&t&&t.type_!==3&&!Yc(t.assigned_,i)?a.concat(i):void 0,c=vs(e,o,l);if(Af(n,i,c),Ti(c))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Or(o)&&!sl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;vs(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,i)&&ws(e,o)}}function ws(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&K1(t,n)}function OH(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Rf(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=ed;n&&(o=[i],a=Go);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var ed={get(e,t){if(t===Yt)return e;const n=kr(e);if(!Yc(n,t))return BH(e,n,t);const i=n[t];return e.finalized_||!Or(i)?i:i===pc(e.base_,t)?(gc(e),e.copy_[t]=Kc(i,e)):i},has(e,t){return t in kr(e)},ownKeys(e){return Reflect.ownKeys(kr(e))},set(e,t,n){const i=Nf(kr(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=pc(kr(e),t),a=o==null?void 0:o[Yt];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(TH(n,o)&&(n!==void 0||Yc(e.base_,t)))return!0;gc(e),qc(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 pc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,gc(e),qc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=kr(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){_n(11)},getPrototypeOf(e){return Ii(e.base_)},setPrototypeOf(){_n(12)}},Go={};ms(ed,(e,t)=>{Go[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Go.deleteProperty=function(e,t){return Go.set.call(this,e,t,void 0)};Go.set=function(e,t,n){return ed.set.call(this,e[0],t,n,e[0])};function pc(e,t){const n=e[Yt];return(n?kr(n):e)[t]}function BH(e,t,n){var o;const i=Nf(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function Nf(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 qc(e){e.modified_||(e.modified_=!0,e.parent_&&qc(e.parent_))}function gc(e){e.copy_||(e.copy_=Jc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var PH=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"&&_n(6),i!==void 0&&typeof i!="function"&&_n(7);let o;if(Or(t)){const a=Cu(this),s=Kc(t,void 0);let l=!0;try{o=n(s),l=!1}finally{l?Xc(a):Qc(a)}return yu(a,i),_u(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Tf&&(o=void 0),this.autoFreeze_&&K1(o,!0),i){const a=[],s=[];Br("Patches").generateReplacementPatches_(t,o,a,s),i(a,s)}return o}else _n(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){Or(e)||_n(8),Ti(e)&&(e=VH(e));const t=Cu(this),n=Kc(e,void 0);return n[Yt].isManual_=!0,Qc(t),n}finishDraft(e,t){const n=e&&e[Yt];(!n||!n.isManual_)&&_n(9);const{scope_:i}=n;return yu(i,t),_u(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=Br("Patches").applyPatches_;return Ti(e)?i(e,t):this.produce(e,o=>i(o,t))}};function Kc(e,t){const n=ol(e)?Br("MapSet").proxyMap_(e,t):al(e)?Br("MapSet").proxySet_(e,t):OH(e,t);return(t?t.scope_:Rf()).drafts_.push(n),n}function VH(e){return Ti(e)||_n(10,e),Of(e)}function Of(e){if(!Or(e)||sl(e))return e;const t=e[Yt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Jc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Jc(e,!0);return ms(n,(i,o)=>{Af(n,i,Of(o))}),t&&(t.finalized_=!1),n}var Jt=new PH,zH=Jt.produce;Jt.produceWithPatches.bind(Jt);var Bf=Jt.setAutoFreeze.bind(Jt);Jt.setUseStrictShallowCopy.bind(Jt);Jt.applyPatches.bind(Jt);Jt.createDraft.bind(Jt);Jt.finishDraft.bind(Jt);const FH=e=>(t,n,i)=>{const o=i.subscribe;return i.subscribe=(s,l,c)=>{let d=s;if(l){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=s(i.getState());d=f=>{const g=s(f);if(!u(h,g)){const p=h;l(h=g,p)}},c!=null&&c.fireImmediately&&l(h,h)}return o(d)},e(t,n,i)},Pf=FH,ZH=e=>(t,n,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?zH(o):o;return t(l,a,...s)},e(i.setState,n,i)),Vf=ZH;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}Bf(!1);let Ie;const rr="footer";Li.panel(rr,function(){const e=()=>$e().getTemplates(rr),t=()=>{const o=e(),a=$e().getPreviewTemplate(rr).id;return o.find(s=>s.id===a)},n=()=>{const o=e(),a=$e().getCurrentTemplate(rr).id;return(o.find(s=>s.id===a)??o[0]).id},i=()=>{$e().refreshPartial(`${rr}_placements`)};Ie=Hs(Pf(Vf((o,a)=>({templates:e(),previewTemplate:t(),currentTemplateId:n(),chosenElement:null,chosenRow:null,resetTemplate:()=>{const s=a().previewTemplate.id;if(!s)return;const l=[...window.brandyNichesFooters,...Object.values(window.brandyFooterPresets)].find(c=>c.id===s);l&&(o(c=>{c.previewTemplate=l}),i())},resetElement:s=>{var d;if(((d=a().chosenElement)==null?void 0:d.id)!==s)return;const l=a().previewTemplate.id;if(!l)return;const c=[...window.brandyNichesFooters,...Object.values(window.brandyFooterPresets)].find(u=>u.id===l);c&&(o(u=>{var h;(h=u.chosenElement)!=null&&h.settings&&(u.chosenElement.settings=c.elements[s].settings)}),$e().refreshPartial(`${rr}_${s}`))},addTemplate:s=>{o(l=>{l.templates.push(s)}),i()},removeTemplate:s=>{const l=e().filter(c=>c.id!==s);o(c=>{c.templates=l,s===c.previewTemplate.id&&(c.previewTemplate=l[0])})},choosePreviewTemplate:s=>{const l=a().templates;a().previewTemplate.id!==s&&(o(d=>{d.previewTemplate=l.find(u=>u.id===s)??l[0]}),i())},setCurrentTemplateId:s=>{const l=a().templates;if(a().currentTemplateId===s)return;const c=l.find(d=>d.id===s)==null?l[0].id:s;o(d=>{d.currentTemplateId=c}),$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},g={};Object.keys(l.previewTemplate.elements).forEach(p=>{g[p]=l.previewTemplate.elements[p],p===s&&(g[u]=f)}),l.previewTemplate.elements=JSON.parse(JSON.stringify(g))})},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=>{w2({...s,template:a().previewTemplate}).then(l=>{o(c=>{c.previewTemplate.placements[Ye(s.device)]=l}),i()})},setElements:({row:s,col:l,changedList:c,device:d})=>{const u=a().previewTemplate,h=JSON.parse(JSON.stringify(u.placements[Ye(d)]));s==="toggle"&&(h.toggle=c),s!=="toggle"&&l!=null&&(h[s][l]=c),o(f=>{f.previewTemplate.placements[Ye(d)]=h}),M1(h,u.placements[Ye(d)])||i()},removeElement:s=>{var l;x2({...s,template:a().previewTemplate}).then(c=>{o(d=>{var u;d.previewTemplate.placements[Ye(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)&&zt()},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})}})))),Ie.subscribe(o=>o.chosenElement,(o,a)=>{a!=null&&Ie.setState(s=>{(o==null?void 0:o.id)!=null&&(s.previewTemplate.elements[o==null?void 0:o.id]=o)})},{equalityFn:mi}),Ie.subscribe(o=>o.previewTemplate,o=>{Ie.setState(a=>{const s=a.templates.findIndex(l=>l.id===o.id)||0;a.templates[s]=o})},{equalityFn:mi}),Ie.subscribe(o=>o.previewTemplate.id,(o,a)=>{o!==a&&$e().updatePreviewTemplateId(rr,o??"default")}),Ie.subscribe(o=>o.templates,(o,a)=>{JSON.stringify(o)!==JSON.stringify(a)&&$e().updateTemplates(rr,o)},{equalityFn:mi})});const li=e=>{var n;if(!Le||!Ie){let i;return e==="header"?i=window.brandyHeaderSettings:i=window.brandyFooterSettings,i??null}let t;return e==="header"?t=Le.getState():t=Ie.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}},mc=(e,t)=>{window.wp.customize(`${e}_settings`)!=null&&window.wp.customize(`${e}_settings`)(new Date().getTime())};class WH{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);if(n){const i=n.templates??[];return i.forEach((o,a)=>{Object.entries(window.brandyElements).forEach(([s,l])=>{o.elements[l.id]||(i[a].elements[l.id]=l)})}),i}return[]}updateTemplates(t,n){const i=li(t);mc(t,JSON.parse(JSON.stringify({...i,templates:n})))}updatePreviewTemplateId(t,n){const i=li(t);mc(t,JSON.parse(JSON.stringify({...i,preview_template_id:n})))}updateCurrentTemplateId(t,n){const i=li(t);mc(t,JSON.parse(JSON.stringify({...i,current_template_id:n})))}refreshPartial(t){setTimeout(()=>{var i,o;if(t.includes("header")){const a=Le.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=Ie.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 WH;Bf(!1);let Le;const zn="header";Li.panel(zn,function(){const e=$e().getPreviewTemplate(zn),t=()=>e.toggle_off_canvas,n=()=>$e().getTemplates(zn),i=()=>{const s=n(),l=$e().getPreviewTemplate(zn).id;return s.find(c=>c.id===l)??s[0]},o=()=>{const s=n(),l=$e().getCurrentTemplate(zn).id;return(s.find(c=>c.id===l)??s[0]).id},a=()=>{$e().refreshPartial(`${zn}_placements`)};Le=Hs(Pf(Vf((s,l)=>({templates:n(),previewTemplate:i(),currentTemplateId:o(),chosenElement:null,chosenRow:null,toggleOffCanvas:t(),resetTemplate:()=>{const c=l().previewTemplate.id;if(!c)return;const d=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(u=>u.id===c);d&&(s(u=>{u.previewTemplate=d}),a())},resetElement:c=>{var h;if(((h=l().chosenElement)==null?void 0:h.id)!==c)return;const d=l().previewTemplate.id;if(!d)return;const u=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(f=>f.id===d);u&&(s(f=>{var g;(g=f.chosenElement)!=null&&g.settings&&(f.chosenElement.settings=u.elements[c].settings)}),$e().refreshPartial(`${zn}_${c}`))},addTemplate:c=>{s(d=>{d.templates.push(c)}),a()},removeTemplate:c=>{const d=n().filter(u=>u.id!==c);s(u=>{u.templates=d,c===u.previewTemplate.id&&(u.previewTemplate=d[0])})},choosePreviewTemplate:c=>{const d=l().templates;l().previewTemplate.id!==c&&(s(h=>{h.previewTemplate=d.find(f=>f.id===c)??d[0]}),a())},setCurrentTemplateId:c=>{const d=l().templates;if(l().currentTemplateId===c)return;const u=d.find(h=>h.id===c)==null?d[0].id:c;s(h=>{h.currentTemplateId=u}),$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(),g=`Cloned ${u.title}`,p={...u,id:f,title:g,cloned_from:h},v={};Object.keys(d.previewTemplate.elements).forEach(w=>{v[w]=d.previewTemplate.elements[w],w===c&&(v[f]=p)}),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=>{w2({...c,template:l().previewTemplate}).then(d=>{s(u=>{u.previewTemplate.placements[Ye(c.device)]=d}),a()})},setElements:({row:c,col:d,changedList:u,device:h})=>{const f=l().previewTemplate,g=JSON.parse(JSON.stringify(f.placements[Ye(h)]));c==="toggle"&&(g.toggle=u),c!=="toggle"&&d!=null&&(g[c][d]=u),s(p=>{p.previewTemplate.placements[Ye(h)]=g}),M1(g,f.placements[Ye(h)])||a()},removeElement:c=>{var d;x2({...c,template:l().previewTemplate}).then(u=>{s(h=>{var f;h.previewTemplate.placements[Ye(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)&&zt()},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})}})))),Le.subscribe(s=>s.chosenElement,(s,l)=>{l==null||s==null||Le.setState(c=>{c.previewTemplate.elements[s==null?void 0:s.id]=s})},{equalityFn:mi}),Le.subscribe(s=>s.previewTemplate,s=>{Le.setState(l=>{const c=l.templates.findIndex(d=>d.id===s.id)||0;l.templates[c]=s})},{equalityFn:mi}),Le.subscribe(s=>s.previewTemplate.id,(s,l)=>{s!==l&&$e().updatePreviewTemplateId(zn,s??"default")}),Le.subscribe(s=>s.templates,(s,l)=>{JSON.stringify(s)!==JSON.stringify(l)&&$e().updateTemplates(zn,s)},{equalityFn:mi})});function GH({template:e,device:t,builder:n}){const i=Ye(t),o=e.placements[i];o.toggle&&Array.isArray(o.toggle)&&o.toggle.forEach(a=>{const s=e.elements[a];s!=null&&kn({sectionId:s.id,settings:s.settings,device:t,builder:n,clonedFromId:s.cloned_from})})}function UH({template:e,device:t,builder:n}){const i=Ye(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&&kn({sectionId:c.id,settings:c.settings,device:t,builder:n,clonedFromId:c.cloned_from})})})})}function YH({template:e,device:t,builder:n}){Object.keys(e.row_configurations).forEach(i=>{const o=e.row_configurations[i],a=i+"_"+n;kn({sectionId:a,settings:o,device:t,builder:n})})}const Uo={updateResponsiveControl(e,t){const i=(e==="header"?Le:Ie).getState().previewTemplate;GH({template:i,device:t,builder:e}),UH({template:i,device:t,builder:e}),YH({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()}},JH=()=>{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)}},XH=()=>{const e=document.querySelector("#customize-theme-controls");if(e){const t=document.createElement("div");t.id="brandy-section",e.appendChild(t)}},QH=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-header-placements",window.jQuery(t).insertAfter(e)}},qH=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-footer-placements",window.jQuery(t).insertAfter(e)}},KH=()=>{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)}},eM=()=>{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)}},tM=()=>{JH(),XH(),QH(),qH(),KH(),eM()};function zf(){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:r.jsx("path",{d:"M9.49988 6L15.4999 12L9.49988 18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ff(){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 nM=window.React.createContext,rM=window.React.useMemo;nM({});function iM(){const e=Le(u=>u.templates),t=Le(u=>u.currentTemplateId),n=Le(u=>u.setCurrentTemplateId),i=Le(u=>u.previewTemplate),o=Le(u=>u.choosePreviewTemplate),a=Le(u=>u.removeTemplate),s=rM(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),En("header","new_header")},c=u=>{s===u?En("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(aM,{children:[r.jsxs(sM,{children:[r.jsx(lM,{children:I("Global header")}),r.jsx(pt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(cM,{children:I("Your headers")}),r.jsx(dM,{children:I("Choose to preview and click again to customize")}),r.jsx(uM,{children:e.map(u=>{var h;return r.jsx(oM,{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(hM,{children:r.jsx(Ls,{primary:!0,onClick:l,children:I("Create new header")})})]})}const oM=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>{const s=r.jsx(fM,{children:e});return r.jsxs(pM,{className:`flex items-center justify-between rounded-[5px] group bg-white pl-4 pr-1 py-3 text-[#606060] text-[14px] cursor-pointer ${t&&"border-black [&_svg_*]:stroke-black"}`,onClick:i,$_css2:[{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},ue(["&:hover .arrow-icon svg *{","}"],{stroke:"#000 !important"})],children:[(e??"").toString().length>28?r.jsx(Te,{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(Ff,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(zf,{})})]})]},a)};var aM=m("div")({display:"flex",flexGrow:"1",flexDirection:"column"}),sM=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem"}),lM=m("p")({marginBottom:"0.25rem",fontWeight:"600"}),cM=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))"}),dM=m("div")({padding:"1rem",paddingBottom:"0px"}),uM=m("div")({display:"grid",gap:"1rem",padding:"1rem"}),hM=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)"}),fM=m("span")` overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; `,pM=m("div").withConfig({displayName:"Headers___StyledDiv7",componentId:"sc-1aiksvl-0"})(["",""],e=>e.$_css2);function gM(){return r.jsx(iM,{})}const mM=window.React.createContext,vM=window.React.useMemo;mM({});function wM(){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=vM(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),En("footer","new_footer")},c=u=>{s===u?En("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(bM,{children:[r.jsx(yM,{children:I("Global footer")}),r.jsx(pt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(CM,{children:I("Your footers")}),r.jsx(_M,{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(xM,{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(SM,{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(Ls,{primary:!0,onClick:l,children:I("Create new footer")})})]})}const xM=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>r.jsxs(jM,{className:`flex items-center justify-between rounded-[5px] group bg-white pl-4 pr-1 py-3 text-[#606060] text-[14px] cursor-pointer ${t&&"border-black [&_svg_*]:stroke-black"}`,onClick:i,$_css3:[{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},ue(["&:hover .arrow-icon svg *{","}"],{stroke:"#000 !important"})],children:[e,r.jsxs("span",{className:"flex gap-2 items-center",children:[n!=="preset_default"&&r.jsx("div",{className:"invisible opacity-0 group-hover:visible group-hover:opacity-100 block [&_svg_*]:fill-delete-color [&_svg_*]:stroke-delete-color transition-all ease-in-out duration-200",onClick:o,children:r.jsx(Ff,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(zf,{})})]})]},a);var bM=m("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity))",padding:"1rem"}),yM=m("p")({marginBottom:"0.25rem",fontWeight:"600"}),CM=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))"}),_M=m("div")({padding:"1rem",paddingBottom:"0px"}),SM=m("div")`${e=>e.$_css2}`,jM=m("div").withConfig({displayName:"Footers___StyledDiv5",componentId:"sc-1jo1m6-0"})(["",""],e=>e.$_css3);function kM(){return r.jsx(wM,{})}var Du,$u;const EM=(($u=(Du=window.brandyCustomizerData)==null?void 0:Du.general)==null?void 0:$u.sections)??[];function DM(){return r.jsx($M,{className:"brandy-general-panel__content",children:r.jsx("div",{className:"general-settings__navigations",children:EM.map(e=>r.jsxs(HM,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),En("general-settings",e.id)},children:[r.jsx(MM,{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(IM,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var $M=m("div")({marginTop:"1rem"}),HM=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))"}}),MM=m("span")({fontWeight:"500"}),IM=m("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1qa3lxj-0"})({".group:hover &":{fill:"#2271B1"}}),Hu,Mu;const TM=((Mu=(Hu=window.brandyCustomizerData)==null?void 0:Hu.woocommerce)==null?void 0:Mu.sections)??[];function LM(){return r.jsx(AM,{className:"brandy-woocommerce-panel__content",children:r.jsx("div",{className:"woocommerce-settings__navigations",children:TM.map(e=>r.jsxs(RM,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),En("woocommerce-settings",e.id)},children:[r.jsx(NM,{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(OM,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var AM=m("div")({marginTop:"1rem"}),RM=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))"}}),NM=m("span")({fontWeight:"500"}),OM=m("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1n2dri3-0"})({".group:hover &":{fill:"#2271B1"}});const BM=window.React.useContext;function PM(){const{panelData:e}=BM(td);return e.id==="header"?r.jsx(gM,{}):e.id==="footer"?r.jsx(kM,{}):e.id==="woocommerce-settings"?r.jsx(LM,{}):e.id==="general-settings"?r.jsx(DM,{}):"Not found"}const VM=window.React.useContext;function zM(){const{panelData:e,goBack:t}=VM(td);return r.jsxs(FM,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(ZM,{children:[r.jsx(WM,{children:I("Customizing")}),r.jsx(GM,{children:(e==null?void 0:e.title)??"Not found"})]})]})}var FM=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))"}),ZM=m("div")({width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",padding:"0.75rem"}),WM=m("div")({fontSize:"13px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),GM=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 UM=window.React.createContext,YM=window.React.useCallback,ju=window.React.useMemo,td=UM({});function Zf({builder:e,title:t}){const n=YM(()=>{const a=window.wp.customize.panel(e);a&&a.expanded(!1)},[e]),i=ju(()=>({id:e,title:t||(e==="header"?"Header":"Footer")}),[e,t]),o=ju(()=>({goBack:n,panelData:i,builder:e}),[n,i,e]);return r.jsx(td.Provider,{value:o,children:r.jsxs(JM,{className:"brandy-panel-wrapper",children:[r.jsx(zM,{}),r.jsx(PM,{})]})})}var JM=m("div").withConfig({displayName:"BrandyPanel___StyledDiv",componentId:"sc-1y7egfl-0"})({display:"flex",height:"100%",flexDirection:"column"});function Wf({items:e,builder:t,row:n,col:i=0}){const o=ne(t)(p=>p.setElements),{current:a}=ye(),s=ne(t)(p=>p.removeElement),l=ne(t)(p=>p.selectElement),c=ne(t)(p=>{var v;return(v=p.chosenElement)==null?void 0:v.id}),d=Zo(p=>p.startDragging),u=Zo(p=>p.stopDragging),h=p=>{o({row:n,col:i,changedList:p.map(v=>v.id),device:a})},f=p=>v=>{v.preventDefault(),v.stopPropagation(),s({row:n,col:i,removeId:p,device:a})},g=p=>v=>{v.preventDefault(),v.stopPropagation(),setTimeout(()=>{l({element:p})},200),En(t,p.id,p.cloned_from,"settings")};return r.jsx(Gr.ReactSortable,{list:e,setList:h,group:`${t}-elements-builder`,className:"flex gap-3 items-center w-full h-full element-sortable-container",tag:"div",animation:150,easing:"ease-in-out",ghostClass:"element-builder-sortable-ghost",chosenClass:"element-builder-sortable-chosen",onStart:()=>{d()},onEnd:()=>{u()},children:e.map(p=>{var v;return r.jsxs(XM,{className:"builder-item",onClick:g(p),$_css:[{position:"relative",display:"flex",width:"fit-content",alignItems:"center",justifyContent:"space-between","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",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===p.id&&{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity))",outlineColor:"#1E1E1E"}],children:[r.jsx("span",{children:p.title??((v=window.brandyElements[p.id])==null?void 0:v.title)??""}),r.jsx(QM,{onClick:f(p.id),children:r.jsx(E1,{})})]},p.id)})})}var XM=m("span")`${e=>e.$_css}`,QM=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 qM=window.React,e1=window.React.useEffect,KM=window.React.useMemo,Gf=window.React.useRef,Uf=window.React.useState,eI=m.div.withConfig({displayName:"useAddElementPopup__StyledListItem",componentId:"sc-hvpjws-0"})({display:"grid",gridAutoRows:"minmax(0, 1fr)",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"5px"}),tI=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 nI=m(tI).withConfig({displayName:"useAddElementPopup___StyledStyledItem",componentId:"sc-hvpjws-2"})(["",""],e=>e.$_css5);const rI=()=>r.jsx("div",{className:"text-brandy-text text-center",children:"No element found"}),iI=qM.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[Ye(s)]),c=ne(e)(w=>w.addElement),[d,u]=Uf(""),h=w=>()=>{c({row:n,col:i,lastPush:o,addId:w,device:s}),t()},f=w=>{typeof w!="number"&&u(w)},{unusedElements:g}=q1(l,e),p=KM(()=>d===""?g:g.filter(w=>{var k;return(w.title??((k=window.brandyElements[w.id])==null?void 0:k.title)??"").toLowerCase().includes(d.toLowerCase())}),[l,d,g]),v=Gf(null);return e1(()=>{var w,k;(k=(w=v.current)==null?void 0:w.querySelector("input"))==null||k.focus()},[v]),r.jsx(oI,{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(aI,{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(sI,{children:[r.jsxs(lI,{children:[r.jsx(cI,{children:I("Add an element")}),r.jsx(dI,{onClick:t,$_css4:[{cursor:"pointer",padding:"7px","& svg":{height:"12px",width:"12px"}},ue` svg * { ${{fill:"#A1ABB7"}} } `],children:r.jsx(E1,{})})]}),r.jsx(uI,{searchText:d,onSearch:f,ref:v,placeholder:I("Search element")})]}),r.jsx(Yn,{className:"h-[300px]",autoHide:!0,children:r.jsx("div",{className:"p-4",children:p.length<=0?r.jsx(rI,{}):r.jsx(eI,{children:p.map(w=>{var D,E;const k=w.icon??((D=window.brandyElements[w.id])==null?void 0:D.icon)??"";return r.jsxs(nI,{onClick:h(w.id),$_css5:[ue` &:hover svg { *[fill] { ${{fill:"#2271B1"}} } *[stroke] { ${{stroke:"#2271B1"}} } } `],children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:k}}),w.title??((E=window.brandyElements[w.id])==null?void 0:E.title)]},w.id)})})})})]})})});function Yf({activatorNode:e=null,builder:t="header",col:n=1,row:i="top",lastPush:o=!0}){const a=Gf(null),[s,l]=Uf(!1);e1(()=>{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 e1(()=>{const h=f=>{e==null&&a.current==null&&c();const g=e??a.current;g!=null&&g.contains(f.target)||c()};return window.jQuery(document).on("click","body",h),()=>{window.jQuery(document).off("click","body",h)}},[e]),{contextHolder:s?r.jsx(iI,{ref:a,builder:t,row:i,col:n,onClose:()=>{c()},lastPush:o}):!1,popupApi:{open:d,close:c}}}var oI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv",componentId:"sc-hvpjws-3"})(["",""],e=>e.$_css2),aI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv2",componentId:"sc-hvpjws-4"})(["",""],e=>e.$_css3),sI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv3",componentId:"sc-hvpjws-5"})({borderBottomWidth:"1px",borderColor:"#dddddd4d",padding:"1rem"}),lI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv4",componentId:"sc-hvpjws-6"})({marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),cI=m("h4").withConfig({displayName:"useAddElementPopup___StyledH",componentId:"sc-hvpjws-7"})({fontSize:"16px",fontWeight:"500"}),dI=m("div").withConfig({displayName:"useAddElementPopup___StyledDiv5",componentId:"sc-hvpjws-8"})(["",""],e=>e.$_css4),uI=m(Ur).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 hI=window.React.useContext,fI=window.React.useMemo,pI=window.React.useRef,gI=window.React.useState,mI=ue([".add-icon{transition:all ease-in-out 0.2s;}&:hover{.add-icon{visibility:visible;opacity:1;}}"]);function vI({row:e,colPosition:t,elements:n,position:i},o){const[a,s]=gI(!1),l=Zo(g=>g.isDragging),c=pI(null),{builder:d}=hI(nd),u=fI(()=>!l&&a,[l,a]),{popupApi:h,contextHolder:f}=Yf({activatorNode:c.current,builder:d,row:e,col:t,lastPush:i==="left"||i==="middle"});return r.jsxs(wI,{onClick:()=>{h.open()},ref:c,className:je(["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))"},mI],children:[r.jsx(Wf,{builder:d,items:n,row:e,col:t}),f]},o)}var wI=m("div").withConfig({displayName:"PlacementCol___StyledDiv",componentId:"sc-1qvtqv7-0"})(["",""],e=>e.$_css2);const xI=window.React.useContext,bI=window.React.useMemo,Jf=ue` ${{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}} `,yI=m.div.withConfig({displayName:"RowPlacement__StyledRowWrapper",componentId:"sc-1g1fjfw-0"})(()=>[{display:"flex",minHeight:"50px",cursor:"pointer",borderRadius:"0.375rem"},Jf,{"&: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 vc({row:e}){const{builder:t}=xI(nd),n=ne(t)(l=>l.chosenRow),i=()=>{En(t,`${e}_${t}`,null,"settings")},{current:o}=ye(),a=ne(t)(l=>l.previewTemplate.placements[Ye(o)][e].reduce((c,d)=>(c.push(d.filter(u=>l.previewTemplate.elements[u]!=null).map(u=>l.previewTemplate.elements[u])),c),[])),s=bI(()=>n==null?void 0:n.includes(e),[n,e]);return r.jsxs(yI,{className:"group builder-row",children:[r.jsx(CI,{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"}},Jf],children:r.jsx(uh,{})}),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(vI,{row:e,colPosition:c,position:u,elements:l},c)})})]})}var CI=m("button").withConfig({displayName:"RowPlacement___StyledButton",componentId:"sc-1g1fjfw-1"})(["",""],e=>e.$_css2);const _I=window.React.useMemo,SI=window.React.useRef,jI=window.React.useState;function kI(){const{current:e}=ye(),t=ne("header")(h=>h.previewTemplate.placements[Ye(e)].toggle.map(f=>h.previewTemplate.elements[f])),n=ne("header")(h=>h.chosenRow),i=SI(null),{contextHolder:o,popupApi:a}=Yf({activatorNode:i.current,row:"toggle",builder:"header",col:1}),[s,l]=jI(!1),{isDragging:c}=Zo(),d=_I(()=>!c&&s,[c,s]),u=()=>{En("header","toggle_off_canvas",null,"settings")};return r.jsxs(EI,{className:"group",children:[r.jsxs(DI,{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"&&ue([""," 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))"}),ue(["svg{*{transition:all ease-in-out 0.2s;}}"])],children:[r.jsx("span",{children:r.jsx(uh,{})}),r.jsx($I,{children:"Toggle off-canvas"})]}),r.jsx(Yn,{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(HI,{className:je(["toggle-off-elements",d?"show-add-btn":""]),ref:i,children:r.jsx(Wf,{builder:"header",items:t||[],row:"toggle"})})}),o]})}var EI=m("div")({position:"relative",display:"flex",height:"100%",cursor:"pointer",flexDirection:"column"}),DI=m("div")`${e=>e.$_css2}`,$I=m("span")({fontSize:"12px",fontWeight:"600"}),HI=m("div").withConfig({displayName:"Toggle___StyledDiv3",componentId:"sc-15k3s0k-0"})({position:"relative",height:"100%",minHeight:"100px",padding:"10px"});const MI=window.React.createContext,II=window.React.useMemo,nd=MI({});function TI({builder:e}){const{current:t}=ye(),n=ne(e)(o=>{const s=o.previewTemplate.placements[Ye(t)];return!!b2(s).includes("toggle_button")}),i=II(()=>({builder:e}),[e]);return r.jsx(LI,{$_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(nd.Provider,{value:i,children:[n&&r.jsx(AI,{children:r.jsx(kI,{})}),r.jsxs(RI,{children:[r.jsx(vc,{row:"top"}),r.jsx(vc,{row:"middle"}),r.jsx(vc,{row:"bottom"})]})]})})}var LI=m("div")`${e=>e.$_css}`,AI=m("div")({height:"100%",width:"170px"}),RI=m("div").withConfig({displayName:"PlacementsBuilder___StyledDiv3",componentId:"sc-1m09crd-0"})({display:"flex",flex:"1 1 auto",flexDirection:"column",gap:"1rem"}),NI=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=ku[t.format]||ku.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=PI("message"in t?t.message:BI),window.prompt(i,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var zI=VI;const FI=Xt(zI);const Xf=window.React.useState,ZI=window.ReactDOM.createPortal,WI=window.brandyCustomizerData.content_variables??{};function GI(){const[e,t]=Xf(!1);return r.jsxs(YI,{onClick:()=>{t(n=>!n)},children:[r.jsx("span",{children:"Variables selection"}),e&&ZI(r.jsx(UI,{onClose:()=>{t(!1)}}),document.querySelector("body"))]})}let Eu;function UI({onClose:e}){const[t,n]=Xf(!1);return r.jsxs(JI,{className:"variable-modal",onClick:i=>{i.stopPropagation()},children:[r.jsxs(XI,{children:[r.jsx(QI,{children:I("Click to copy and paste to use in some input settings")}),r.jsx(qI,{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(KI,{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(eT,{children:Object.entries(WI).map(([i,o],a)=>r.jsxs(tT,{onClick:()=>{FI(`[${i}]`),clearTimeout(Eu),n(a),Eu=setTimeout(()=>{n(!1)},2e3)},children:[r.jsxs(nT,{children:["[",i,"]",t===a&&r.jsx(rT,{children:I("Copied")})]}),r.jsx(iT,{dangerouslySetInnerHTML:{__html:o}})]},a))})]})}var YI=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))"}}),JI=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)"}),XI=m("div")({marginBottom:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),QI=m("p")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity))"}),qI=m("span")({cursor:"pointer",padding:"0.25rem"}),KI=m("path")({".group:hover &":{fill:"#000"}}),eT=m("div")({display:"flex",maxHeight:"400px",flexDirection:"column",overflow:"auto"}),tT=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))"}}),nT=m("span")({fontWeight:"600"}),rT=m("span")({fontSize:"12px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(20 134 92 / var(--tw-text-opacity))"}),iT=m("span").withConfig({displayName:"StringVariablesSelection___StyledSpan4",componentId:"sc-u8jk1j-0"})({borderLeftWidth:"1px"});const oT=(e="header")=>{let t=null;Li.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=Tr.createRoot(a),t.render(r.jsx(TI,{builder:e}))),o===!1&&(i.classList.remove("with-opened-placements"),a.classList.remove("opened"),setTimeout(()=>{t&&(t.unmount(),t=null)},200)))})})},aT=(e="header")=>{let t=null;Li.panel(e,function(n){const i=document.querySelector(`#sub-accordion-panel-${e}`);i!=null&&n.expanded.bind(function(o){const a=Uo.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=Tr.createRoot(i),t.render(r.jsx(Zf,{builder:e,children:void 0}))),o===!1&&setTimeout(()=>{t!=null&&(t.unmount(),t=null)},500)})})},sT=(e,t)=>{let n=null;const i=e;Li.panel(i,function(o){const a=document.querySelector(`#sub-accordion-panel-${i}`);a!=null&&o.expanded.bind(function(s){s&&n==null&&(n=Tr.createRoot(a),n.render(r.jsx(Zf,{builder:i,title:t,children:void 0}))),s===!1&&setTimeout(()=>{n!=null&&(n.unmount(),n=null)},500)})})},lT=()=>{let e=null;if(document.getElementById("customize-preview")==null)return;const n=document.getElementById("brandy-string-variables");n!=null&&(e=Tr.createRoot(n),e.render(r.jsx(GI,{})))};document.addEventListener("DOMContentLoaded",function(){tM(),["header","footer"].forEach(t=>{oT(t),aT(t)}),(window.brandyCustomizerData.extra_panels??[]).forEach(t=>{sT(t.id,t.title)}),lT()});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?En(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=Uo.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=Le.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=Ie.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&&En(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){c1.setState(()=>({current:e})),Uo.updateResponsiveControl("header",e),Uo.updateResponsiveControl("footer",e)})})});