var I3=Object.defineProperty;var L3=(e,t,n)=>t in e?I3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var En=(e,t,n)=>(L3(e,typeof t!="symbol"?t+"":t,n),n);/* empty css              */const Fo=window.wp.customize,C0=e=>{let t;const n=new Set,i=(u,f)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const m=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(p=>p(t,m))}},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},A3=e=>e?C0(e):C0;var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yh(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 Xh={exports:{}},Jh={},Kh={exports:{}},qh={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Eo=window.React;function R3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var O3=typeof Object.is=="function"?Object.is:R3,N3=Eo.useState,P3=Eo.useEffect,B3=Eo.useLayoutEffect,V3=Eo.useDebugValue;function z3(e,t){var n=t(),i=N3({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return B3(function(){o.value=n,o.getSnapshot=t,Hc(o)&&a({inst:o})},[e,n,t]),P3(function(){return Hc(o)&&a({inst:o}),e(function(){Hc(o)&&a({inst:o})})},[e]),V3(n),n}function Hc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!O3(e,n)}catch{return!0}}function F3(e,t){return t()}var Z3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?F3:z3;qh.useSyncExternalStore=Eo.useSyncExternalStore!==void 0?Eo.useSyncExternalStore:Z3;Kh.exports=qh;var W3=Kh.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ml=window.React,G3=W3;function U3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Y3=typeof Object.is=="function"?Object.is:U3,X3=G3.useSyncExternalStore,J3=ml.useRef,K3=ml.useEffect,q3=ml.useMemo,Q3=ml.useDebugValue;Jh.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var a=J3(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=q3(function(){function c(m){if(!d){if(d=!0,u=m,m=i(m),o!==void 0&&s.hasValue){var p=s.value;if(o(p,m))return f=p}return f=m}if(p=f,Y3(u,m))return p;var v=i(m);return o!==void 0&&o(p,v)?(u=m,p):(u=m,f=v)}var d=!1,u,f,h=n===void 0?null:n;return[function(){return c(t())},h===null?void 0:function(){return c(h())}]},[t,n,i,o]);var l=X3(e,a[0],a[1]);return K3(function(){s.hasValue=!0,s.value=l},[l]),Q3(l),l};Xh.exports=Jh;var em=Xh.exports;const tm=bn(em),nm=window.React,{useDebugValue:rm}=nm,{useSyncExternalStoreWithSelector:im}=tm;const om=e=>e;function am(e,t=om,n){const i=im(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return rm(i),i}const _0=e=>{const t=typeof e=="function"?A3(e):e,n=(i,o)=>am(t,i,o);return Object.assign(n,t),n},vl=e=>e?_0(e):_0,Ks=vl()(e=>({current:"desktop",changeCurrent:t=>{e(()=>({current:t}))}})),S0=30,sm=500;class lm{constructor(){En(this,"stack",[]);En(this,"cursor",-1);En(this,"isRestoring",!1);En(this,"debounceTimer",null);En(this,"pendingCapture",null);En(this,"listeners",new Set);En(this,"initializedStores",new Set);En(this,"keyboardListenerActive",!1);En(this,"stores",new Map);En(this,"subscribe",t=>(this.listeners.add(t),()=>this.listeners.delete(t)))}registerStore(t,n){this.stores.set(t,n),this.initKeyboardListener()}initKeyboardListener(){this.keyboardListenerActive||(this.keyboardListenerActive=!0,document.addEventListener("keydown",t=>{if(!(t.metaKey||t.ctrlKey)||t.key.toLowerCase()!=="z")return;const i=document.activeElement;if(i){const o=i.tagName.toLowerCase();if(o==="input"||o==="textarea"||i.isContentEditable)return}t.shiftKey?this.canRedo()&&(t.preventDefault(),t.stopPropagation(),this.redo()):(this.flushPending(),this.canUndo()&&(t.preventDefault(),t.stopPropagation(),this.undo()))},{capture:!0}))}captureInitial(t,n){this.initializedStores.has(t)||(this.initializedStores.add(t),this.pushEntry(t,this.takeSnapshot(n())))}capture(t,n){this.isRestoring||(this.debounceTimer&&clearTimeout(this.debounceTimer),this.pendingCapture=()=>{const i=this.takeSnapshot(n());this.pushEntry(t,i),this.pendingCapture=null},this.debounceTimer=setTimeout(()=>{var i;this.debounceTimer=null,(i=this.pendingCapture)==null||i.call(this)},sm))}undo(){if(this.flushPending(),!!this.canUndo()){this.isRestoring=!0;try{this.cursor--,this.restoreEntry(this.stack[this.cursor])}finally{this.isRestoring=!1}this.notifyListeners()}}redo(){if(this.canRedo()){this.isRestoring=!0;try{this.cursor++,this.restoreEntry(this.stack[this.cursor])}finally{this.isRestoring=!1}this.notifyListeners()}}canUndo(){return this.cursor>0}canRedo(){return this.cursor<this.stack.length-1}clear(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.pendingCapture=null,this.stack=[],this.cursor=-1,this.initializedStores.clear(),this.notifyListeners()}takeSnapshot(t){return JSON.parse(JSON.stringify({previewTemplate:t.previewTemplate,templates:t.templates,currentTemplateId:t.currentTemplateId}))}pushEntry(t,n){this.cursor<this.stack.length-1&&(this.stack=this.stack.slice(0,this.cursor+1)),this.stack.push({store:t,snapshot:n}),this.stack.length>S0&&(this.stack=this.stack.slice(this.stack.length-S0)),this.cursor=this.stack.length-1,this.notifyListeners()}restoreEntry(t){var u;const n=this.stores.get(t.store);if(!n)return;const i=JSON.parse(JSON.stringify(t.snapshot)),o=n.getState(),a=JSON.stringify(o.previewTemplate.placements),s=o.currentTemplateId,l=o.previewTemplate.elements;n.setState(f=>{var m;const h=(m=f.chosenElement)==null?void 0:m.id;f.previewTemplate=i.previewTemplate,f.templates=i.templates,f.currentTemplateId=i.currentTemplateId,h&&i.previewTemplate.elements[h]?f.chosenElement=i.previewTemplate.elements[h]:f.chosenElement=null,f.chosenRow=null}),setTimeout(()=>{const f=Ks.getState().current;Di.updateResponsiveControl(t.store,f)},0);const c=JSON.stringify(i.previewTemplate.placements);if(a!==c||s!==i.currentTemplateId)Ne().refreshPartial(`${t.store}_placements`);else{const f=i.previewTemplate.elements;for(const h of Object.keys(f))JSON.stringify(l[h])!==JSON.stringify(f[h])&&this.elementNeedsRefresh(((u=f[h])==null?void 0:u.cloned_from)??h)&&Ne().refreshPartial(`${t.store}_${h}`)}}elementNeedsRefresh(t){var i;const n=(i=window.brandySettingsLayouts)==null?void 0:i[t];return n?Object.values(n).some(o=>{var a;return(a=o==null?void 0:o.sections)==null?void 0:a.some(s=>{var l;return(l=s==null?void 0:s.components)==null?void 0:l.some(c=>{var d;return((d=c==null?void 0:c.render_options)==null?void 0:d.type)==="force_refresh"})})}):!1}flushPending(){var t;this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),(t=this.pendingCapture)==null||t.call(this)}notifyListeners(){this.listeners.forEach(t=>t())}}const an=new lm;var Qh={exports:{}},wl={};/**
 * @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 cm=window.React,dm=Symbol.for("react.element"),um=Symbol.for("react.fragment"),fm=Object.prototype.hasOwnProperty,hm=cm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pm={key:!0,ref:!0,__self:!0,__source:!0};function e2(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)fm.call(t,i)&&!pm.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:dm,type:e,key:a,ref:s,props:o,_owner:hm.current}}wl.Fragment=um;wl.jsx=e2;wl.jsxs=e2;Qh.exports=wl;var r=Qh.exports,Li={},j0=window.ReactDOM;Li.createRoot=j0.createRoot,Li.hydrateRoot=j0.hydrateRoot;var Ke="-ms-",Ca="-moz-",Be="-webkit-",t2="comm",xl="rule",gd="decl",gm="@import",mm="@namespace",n2="@keyframes",vm="@layer",r2=Math.abs,md=String.fromCharCode,H1=Object.assign;function wm(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}function i2(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Me(e,t,n){return e.replace(t,n)}function Os(e,t,n){return e.indexOf(t,n)}function _t(e,t){return e.charCodeAt(t)|0}function Ai(e,t,n){return e.slice(t,n)}function Gn(e){return e.length}function o2(e){return e.length}function fa(e,t){return t.push(e),e}function xm(e,t){return e.map(t).join("")}function k0(e,t){return e.filter(function(n){return!Er(n,t)})}var bl=1,Do=1,a2=0,Hn=0,vt=0,Zo="";function yl(e,t,n,i,o,a,s,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:bl,column:Do,length:s,return:"",siblings:l}}function Yr(e,t){return H1(yl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=Yr(e.root,{children:[e]});fa(e,e.siblings)}function bm(){return vt}function ym(){return vt=Hn>0?_t(Zo,--Hn):0,Do--,vt===10&&(Do=1,bl--),vt}function Xn(){return vt=Hn<a2?_t(Zo,Hn++):0,Do++,vt===10&&(Do=1,bl++),vt}function Kr(){return _t(Zo,Hn)}function Ns(){return Hn}function Cl(e,t){return Ai(Zo,e,t)}function Oa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cm(e){return bl=Do=1,a2=Gn(Zo=e),Hn=0,[]}function _m(e){return Zo="",e}function Mc(e){return i2(Cl(Hn-1,M1(e===91?e+2:e===40?e+1:e)))}function Sm(e){for(;(vt=Kr())&&vt<33;)Xn();return Oa(e)>2||Oa(vt)>3?"":" "}function jm(e,t){for(;--t&&Xn()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Cl(e,Ns()+(t<6&&Kr()==32&&Xn()==32))}function M1(e){for(;Xn();)switch(vt){case e:return Hn;case 34:case 39:e!==34&&e!==39&&M1(vt);break;case 40:e===41&&M1(e);break;case 92:Xn();break}return Hn}function km(e,t){for(;Xn()&&e+vt!==47+10;)if(e+vt===42+42&&Kr()===47)break;return"/*"+Cl(t,Hn-1)+"*"+md(e===47?e:Xn())}function Em(e){for(;!Oa(Kr());)Xn();return Cl(e,Hn)}function Dm(e){return _m(Ps("",null,null,null,[""],e=Cm(e),0,[0],e))}function Ps(e,t,n,i,o,a,s,l,c){for(var d=0,u=0,f=s,h=0,m=0,p=0,v=1,x=1,E=1,C=0,j="",M=o,T=a,_=i,b=j;x;)switch(p=C,C=Xn()){case 40:if(p!=108&&_t(b,f-1)==58){Os(b+=Me(Mc(C),"&","&\f"),"&\f",r2(d?l[d-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:b+=Mc(C);break;case 9:case 10:case 13:case 32:b+=Sm(p);break;case 92:b+=jm(Ns()-1,7);continue;case 47:switch(Kr()){case 42:case 47:fa($m(km(Xn(),Ns()),t,n,c),c),(Oa(p||1)==5||Oa(Kr()||1)==5)&&Gn(b)&&Ai(b,-1,void 0)!==" "&&(b+=" ");break;default:b+="/"}break;case 123*v:l[d++]=Gn(b)*E;case 125*v:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+u:E==-1&&(b=Me(b,/\f/g,"")),m>0&&(Gn(b)-f||v===0&&p===47)&&fa(m>32?D0(b+";",i,n,f-1,c):D0(Me(b," ","")+";",i,n,f-2,c),c);break;case 59:b+=";";default:if(fa(_=E0(b,t,n,d,u,o,l,j,M=[],T=[],f,a),a),C===123)if(u===0)Ps(b,t,_,_,M,a,f,l,T);else{switch(h){case 99:if(_t(b,3)===110)break;case 108:if(_t(b,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ps(e,_,_,i&&fa(E0(e,_,_,0,0,o,l,j,o,M=[],f,T),T),o,T,f,l,i?M:T):Ps(b,_,_,_,[""],T,0,l,T)}}d=u=m=0,v=E=1,j=b="",f=s;break;case 58:f=1+Gn(b),m=p;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&ym()==125)continue}switch(b+=md(C),C*v){case 38:E=u>0?1:(b+="\f",-1);break;case 44:l[d++]=(Gn(b)-1)*E,E=1;break;case 64:Kr()===45&&(b+=Mc(Xn())),h=Kr(),u=f=Gn(j=b+=Em(Ns())),C++;break;case 45:p===45&&Gn(b)==2&&(v=0)}}return a}function E0(e,t,n,i,o,a,s,l,c,d,u,f){for(var h=o-1,m=o===0?a:[""],p=o2(m),v=0,x=0,E=0;v<i;++v)for(var C=0,j=Ai(e,h+1,h=r2(x=s[v])),M=e;C<p;++C)(M=i2(x>0?m[C]+" "+j:Me(j,/&\f/g,m[C])))&&(c[E++]=M);return yl(e,t,n,o===0?xl:l,c,d,u,f)}function $m(e,t,n,i){return yl(e,t,n,t2,md(bm()),Ai(e,2,-2),0,i)}function D0(e,t,n,i,o){return yl(e,t,n,gd,Ai(e,0,i),Ai(e,i+1,-1),i,o)}function s2(e,t,n){switch(wm(e,t)){case 5103:return Be+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Be+e+e;case 4855:return Be+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ca+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+Ca+e+Ke+e+e;case 5936:switch(_t(e,t+11)){case 114:return Be+e+Ke+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Ke+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Ke+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Be+e+Ke+e+e;case 6165:return Be+e+Ke+"flex-"+e+e;case 5187:return Be+e+Me(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return Be+e+Ke+"flex-item-"+Me(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":Ke+"grid-row-"+Me(e,/flex-|-self/g,""))+e;case 4675:return Be+e+Ke+"flex-line-pack"+Me(e,/align-content|flex-|-self/g,"")+e;case 5548:return Be+e+Ke+Me(e,"shrink","negative")+e;case 5292:return Be+e+Ke+Me(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+Me(e,"-grow","")+Be+e+Ke+Me(e,"grow","positive")+e;case 4554:return Be+Me(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+Ke+"flex-pack:$3"),/space-between/,"justify")+Be+e+e;case 4200:if(!Er(e,/flex-|baseline/))return Ke+"grid-column-align"+Ai(e,t)+e;break;case 2592:case 3360:return Ke+Me(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~Os(e+(n=n[t].value),"span",0)?e:Ke+Me(e,"-start","")+e+Ke+"grid-row-span:"+(~Os(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":Ke+Me(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:Ke+Me(Me(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,Be+"$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(Gn(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+Ca+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch",0)?s2(Me(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Me(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,s,l,c,d){return Ke+o+":"+a+d+(s?Ke+o+"-span:"+(l?c:+c-+a)+d:"")+e});case 4949:if(_t(e,t+6)===121)return Me(e,":",":"+Be)+e;break;case 6444:switch(_t(e,_t(e,14)===45?18:11)){case 120:return Me(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Be+(_t(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Ke+"$2box$3")+e;case 100:return Me(e,":",":"+Ke)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Me(e,"scroll-","scroll-snap-")+e}return e}function qs(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function Hm(e,t,n,i){switch(e.type){case vm:if(e.children.length)break;case gm:case mm:case gd:return e.return=e.return||e.value;case t2:return"";case n2:return e.return=e.value+"{"+qs(e.children,i)+"}";case xl:if(!Gn(e.value=e.props.join(",")))return""}return Gn(n=qs(e.children,i))?e.return=e.value+"{"+n+"}":""}function Mm(e){var t=o2(e);return function(n,i,o,a){for(var s="",l=0;l<t;l++)s+=e[l](n,i,o,a)||"";return s}}function Tm(e){return function(t){t.root||(t=t.return)&&e(t)}}function Im(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case gd:e.return=s2(e.value,e.length,n);return;case n2:return qs([Yr(e,{value:Me(e.value,"@","@"+Be)})],i);case xl:if(e.length)return xm(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(Yr(e,{props:[Me(o,/:(read-\w+)/,":"+Ca+"$1")]})),so(Yr(e,{props:[o]})),H1(e,{props:k0(n,i)});break;case"::placeholder":so(Yr(e,{props:[Me(o,/:(plac\w+)/,":"+Be+"input-$1")]})),so(Yr(e,{props:[Me(o,/:(plac\w+)/,":"+Ca+"$1")]})),so(Yr(e,{props:[Me(o,/:(plac\w+)/,Ke+"input-$1")]})),so(Yr(e,{props:[o]})),H1(e,{props:k0(n,i)});break}return""})}}const _o=window.React,Lm=window.React.createElement;var Tc,Ic;const $o=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",l2="active",c2="data-styled-version",_l="6.4.1",vd=`/*!sc*/
`,_a=typeof window<"u"&&typeof document<"u";function $0(e){if(typeof process<"u"&&process.env!==void 0){const t=process.env[e];if(t!==void 0&&t!=="")return t!=="false"}}const Am=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(Ic=(Tc=$0("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&Tc!==void 0?Tc:$0("SC_DISABLE_SPEEDY"))!==null&&Ic!==void 0?Ic:typeof process>"u"||process.env===void 0),Rm="sc-keyframes-";function Sl(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Bs=new Map,Qs=new Map,Vs=1;const vs=e=>{if(Bs.has(e))return Bs.get(e);for(;Qs.has(Vs);)Vs++;const t=Vs++;return Bs.set(e,t),Qs.set(t,e),t},Om=e=>Qs.get(e),Nm=(e,t)=>{Vs=t+1,Bs.set(e,t),Qs.set(t,e)},wd=Object.freeze([]),Ho=Object.freeze({});function Pm(e,t,n=Ho){return e.theme!==n.theme&&e.theme||t||n.theme}const Bm=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Vm=/(^-|-$)/g;function d2(e){return e.replace(Bm,"-").replace(Vm,"")}const zm=/(a)(d)/gi,H0=e=>String.fromCharCode(e+(e>25?39:97));function u2(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=H0(t%52)+n;return(H0(t%52)+n).replace(zm,"$1-$2")}const T1=5381,$i=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},f2=e=>$i(T1,e);function Fm(e){return u2(f2(e)>>>0)}function Zm(e){return e.displayName||e.name||"Component"}function I1(e){return typeof e=="string"&&!0}function Wm(e){return I1(e)?`styled.${e}`:`Styled(${Zm(e)})`}const h2=Symbol.for("react.memo"),Gm=Symbol.for("react.forward_ref"),Um={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ym={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xm={[Gm]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[h2]:p2};function M0(e){return("type"in(t=e)&&t.type.$$typeof)===h2?p2:"$$typeof"in e?Xm[e.$$typeof]:Um;var t}const Jm=Object.defineProperty,Km=Object.getOwnPropertyNames,qm=Object.getOwnPropertySymbols,Qm=Object.getOwnPropertyDescriptor,e5=Object.getPrototypeOf,t5=Object.prototype;function g2(e,t,n){if(typeof t!="string"){const i=e5(t);i&&i!==t5&&g2(e,i,n);const o=Km(t).concat(qm(t)),a=M0(e),s=M0(t);for(let l=0;l<o.length;++l){const c=o[l];if(!(c in Ym||n&&n[c]||s&&c in s||a&&c in a)){const d=Qm(t,c);try{Jm(e,c,d)}catch{}}}}return e}function jl(e){return typeof e=="function"}function m2(e){return typeof e=="object"&&"styledComponentId"in e}function ha(e,t){return e&&t?e+" "+t:e||t||""}function T0(e,t){return e.join(t||"")}function Na(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function L1(e,t,n=!1){if(!n&&!Na(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let i=0;i<t.length;i++)e[i]=L1(e[i],t[i]);else if(Na(t))for(const i in t)e[i]=L1(e[i],t[i]);return e}function v2(e,t){Object.defineProperty(e,"toString",{value:t})}const n5=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const o=this.groupSizes,a=o.length;let s=a;for(;e>=s;)if(s<<=1,s<0)throw Sl(16,`${e}`);this.groupSizes=new Uint32Array(s),this.groupSizes.set(o),this.length=s;for(let l=a;l<s;l++)this.groupSizes[l]=0}let n=this.indexOfGroup(e+1),i=0;for(let o=0,a=t.length;o<a;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,i++);i>0&&this._cGroup>e&&(this._cIndex+=i)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(let o=n;o<i;o++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||this.groupSizes[e]===0)return t;const n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n;for(let a=i;a<o;a++)t+=this.tag.getRule(a)+vd;return t}},r5=`style[${$o}][${c2}="${_l}"]`,i5=new RegExp(`^${$o}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),I0=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,A1=e=>{if(!e)return document;if(I0(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(I0(t))return t}return document},o5=(e,t,n)=>{const i=n.split(",");let o;for(let a=0,s=i.length;a<s;a++)(o=i[a])&&e.registerName(t,o)},a5=(e,t)=>{var n;const i=((n=t.textContent)!==null&&n!==void 0?n:"").split(vd),o=[];for(let a=0,s=i.length;a<s;a++){const l=i[a].trim();if(!l)continue;const c=l.match(i5);if(c){const d=0|parseInt(c[1],10),u=c[2];d!==0&&(Nm(u,d),o5(e,u,c[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}},Lc=e=>{const t=A1(e.options.target).querySelectorAll(r5);for(let n=0,i=t.length;n<i;n++){const o=t[n];o&&o.getAttribute($o)!==l2&&(a5(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let Qo=!1;function s5(){if(Qo!==!1)return Qo;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Qo=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Qo=t.getAttribute("content")||void 0}return Qo=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const w2=(e,t)=>{const n=document.head,i=e||n,o=document.createElement("style"),a=(c=>{const d=Array.from(c.querySelectorAll(`style[${$o}]`));return d[d.length-1]})(i),s=a!==void 0?a.nextSibling:null;o.setAttribute($o,l2),o.setAttribute(c2,_l);const l=t||s5();return l&&o.setAttribute("nonce",l),i.insertBefore(o,s),o},l5=class{constructor(e,t){this.element=w2(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(n=>{var i;if(n.sheet)return n.sheet;const o=(i=n.getRootNode().styleSheets)!==null&&i!==void 0?i:document.styleSheets;for(let a=0,s=o.length;a<s;a++){const l=o[a];if(l.ownerNode===n)return l}throw Sl(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},c5=class{constructor(e,t){this.element=w2(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let L0=_a;const d5={isServer:!_a,useCSSOMInjection:!Am};class kl{static registerId(t){return vs(t)}constructor(t=Ho,n={},i){this.options=Object.assign(Object.assign({},d5),t),this.gs=n,this.keyframeIds=new Set,this.names=new Map(i),this.server=!!t.isServer,!this.server&&_a&&L0&&(L0=!1,Lc(this)),v2(this,()=>(o=>{const a=o.getTag(),{length:s}=a;let l="";for(let c=0;c<s;c++){const d=Om(c);if(d===void 0)continue;const u=o.names.get(d);if(u===void 0||!u.size)continue;const f=a.getGroup(c);if(f.length===0)continue;const h=$o+".g"+c+'[id="'+d+'"]';let m="";for(const p of u)p.length>0&&(m+=p+",");l+=f+h+'{content:"'+m+'"}'+vd}return l})(this))}rehydrate(){!this.server&&_a&&Lc(this)}reconstructWithOptions(t,n=!0){const i=new kl(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return i.keyframeIds=new Set(this.keyframeIds),!this.server&&_a&&t.target!==this.options.target&&A1(this.options.target)!==A1(t.target)&&Lc(i),i}allocateGSInstance(t){return this.gs[t]=(this.gs[t]||0)+1}getTag(){return this.tag||(this.tag=(t=(({useCSSOMInjection:n,target:i,nonce:o})=>n?new l5(i,o):new c5(i,o))(this.options),new n5(t)));var t}hasNameForId(t,n){var i,o;return(o=(i=this.names.get(t))===null||i===void 0?void 0:i.has(n))!==null&&o!==void 0&&o}registerName(t,n){vs(t),t.startsWith(Rm)&&this.keyframeIds.add(t);const i=this.names.get(t);i?i.add(n):this.names.set(t,new Set([n]))}insertRules(t,n,i){this.registerName(t,n),this.getTag().insertRules(vs(t),i)}clearNames(t){this.names.has(t)&&this.names.get(t).clear()}clearRules(t){this.getTag().clearGroup(vs(t)),this.clearNames(t)}clearTag(){this.tag=void 0}}const x2=new WeakSet,u5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function f5(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in u5||e.startsWith("--")?String(t).trim():t+"px"}const Ei=47;function A0(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t+=i>=65&&i<=90?"-"+String.fromCharCode(i+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const h5=Symbol.for("sc-keyframes");function p5(e){return typeof e=="object"&&e!==null&&h5 in e}function b2(e){return jl(e)&&!(e.prototype&&e.prototype.isReactComponent)}const y2=e=>e==null||e===!1||e==="",g5=Symbol.for("react.client.reference");function R0(e){return e.$$typeof===g5}function C2(e,t){for(const n in e){const i=e[n];e.hasOwnProperty(n)&&!y2(i)&&(Array.isArray(i)&&x2.has(i)||jl(i)?t.push(A0(n)+":",i,";"):Na(i)?(t.push(n+" {"),C2(i,t),t.push("}")):t.push(A0(n)+": "+f5(n,i)+";"))}}function Hi(e,t,n,i,o=[]){if(y2(e))return o;const a=typeof e;if(a==="string")return o.push(e),o;if(a==="function"){if(R0(e))return o;if(b2(e)&&t){const s=e(t);return Hi(s,t,n,i,o)}return o.push(e),o}if(Array.isArray(e)){for(let s=0;s<e.length;s++)Hi(e[s],t,n,i,o);return o}return m2(e)?(o.push(`.${e.styledComponentId}`),o):p5(e)?(n?(e.inject(n,i),o.push(e.getName(i))):o.push(e),o):R0(e)?o:Na(e)?(C2(e,o),o):(o.push(e.toString()),o)}const m5=f2(_l);class v5{constructor(t,n,i){this.rules=t,this.componentId=n,this.baseHash=$i(m5,n),this.baseStyle=i,kl.registerId(n)}generateAndInjectStyles(t,n,i){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";{let a="";for(let s=0;s<this.rules.length;s++){const l=this.rules[s];if(typeof l=="string")a+=l;else if(l)if(b2(l)){const c=l(t);typeof c=="string"?a+=c:c!=null&&c!==!1&&(a+=T0(Hi(c,t,n,i)))}else a+=T0(Hi(l,t,n,i))}if(a){this.dynamicNameCache||(this.dynamicNameCache=new Map);const s=i.hash?i.hash+a:a;let l=this.dynamicNameCache.get(s);if(!l){if(l=u2($i($i(this.baseHash,i.hash),a)>>>0),this.dynamicNameCache.size>=200){const c=this.dynamicNameCache.keys().next().value;c!==void 0&&this.dynamicNameCache.delete(c)}this.dynamicNameCache.set(s,l)}if(!n.hasNameForId(this.componentId,l)){const c=i(a,"."+l,void 0,this.componentId);n.insertRules(this.componentId,l,c)}o=ha(o,l)}}return o}}const w5=/&/g;function _2(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function Ac(e){const t=e.length;let n="",i=0,o=0,a=0,s=!1,l=!1;for(let c=0;c<t;c++){const d=e.charCodeAt(c);if(a!==0||s||d!==Ei||e.charCodeAt(c+1)!==42)if(s)d===42&&e.charCodeAt(c+1)===Ei&&(s=!1,c++);else if(d!==34&&d!==39||_2(e,c)){if(a===0)if(d===123)o++;else if(d===125){if(o--,o<0){l=!0;let u=c+1;for(;u<t;){const f=e.charCodeAt(u);if(f===59||f===10)break;u++}u<t&&e.charCodeAt(u)===59&&u++,o=0,c=u-1,i=u;continue}o===0&&(n+=e.substring(i,c+1),i=c+1)}else d===59&&o===0&&(n+=e.substring(i,c+1),i=c+1)}else a===0?a=d:a===d&&(a=0);else s=!0,c++}return l||o!==0||a!==0?(i<t&&o===0&&a===0&&(n+=e.substring(i)),n):e}function S2(e,t){const n=t+" ",i=","+n;for(let o=0;o<e.length;o++){const a=e[o];if(a.type==="rule"){a.value=(n+a.value).replaceAll(",",i);const s=a.props,l=[];for(let c=0;c<s.length;c++)l[c]=n+s[c];a.props=l}Array.isArray(a.children)&&a.type!=="@keyframes"&&S2(a.children,t)}return e}function x5({options:e=Ho,plugins:t=wd}=Ho){let n,i,o;const a=(h,m,p)=>p.startsWith(i)&&p.endsWith(i)&&p.replaceAll(i,"").length>0?`.${n}`:h,s=t.slice();s.push(h=>{h.type===xl&&h.value.includes("&")&&(o||(o=new RegExp(`\\${i}\\b`,"g")),h.props[0]=h.props[0].replace(w5,i).replace(o,a))}),e.prefix&&s.push(Im),s.push(Hm);let l=[];const c=Mm(s.concat(Tm(h=>l.push(h)))),d=(h,m="",p="",v="&")=>{n=v,i=m,o=void 0;const x=function(C){const j=C.indexOf("//")!==-1,M=C.indexOf("}")!==-1;if(!j&&!M)return C;if(!j)return Ac(C);const T=C.length;let _="",b=0,$=0,B=0,y=0,I=0,L=!1;for(;$<T;){const F=C.charCodeAt($);if(F!==34&&F!==39||_2(C,$))if(B===0)if(F===Ei&&$+1<T&&C.charCodeAt($+1)===42){for($+=2;$+1<T&&(C.charCodeAt($)!==42||C.charCodeAt($+1)!==Ei);)$++;$+=2}else if(F!==40)if(F!==41)if(y>0)$++;else if(F===42&&$+1<T&&C.charCodeAt($+1)===Ei)_+=C.substring(b,$),$+=2,b=$,L=!0;else if(F===Ei&&$+1<T&&C.charCodeAt($+1)===Ei){for(_+=C.substring(b,$);$<T&&C.charCodeAt($)!==10;)$++;b=$,L=!0}else F===123?I++:F===125&&I--,$++;else y>0&&y--,$++;else y++,$++;else $++;else B===0?B=F:B===F&&(B=0),$++}return L?(b<T&&(_+=C.substring(b)),I===0?_:Ac(_)):I===0?C:Ac(C)}(h);let E=Dm(p||m?p+" "+m+" { "+x+" }":x);return e.namespace&&(E=S2(E,e.namespace)),l=[],qs(E,c),l},u=e;let f=T1;for(let h=0;h<t.length;h++)t[h].name||Sl(15),f=$i(f,t[h].name);return u!=null&&u.namespace&&(f=$i(f,u.namespace)),u!=null&&u.prefix&&(f=$i(f,"p")),d.hash=f!==T1?f.toString():"",d}const b5=new kl,y5=x5(),j2=_o.createContext({shouldForwardProp:void 0,styleSheet:b5,stylis:y5,stylisPlugins:void 0});j2.Consumer;function C5(){return _o.useContext(j2)}const k2=_o.createContext(void 0);k2.Consumer;const O0=Object.prototype.hasOwnProperty,Rc={};function _5(e,t){const n=typeof e!="string"?"sc":d2(e);Rc[n]=(Rc[n]||0)+1;const i=n+"-"+Fm(_l+n+Rc[n]);return t?t+"-"+i:i}function S5(e,t,n){const i=m2(e),o=e,a=!I1(e),{attrs:s=wd,componentId:l=_5(t.displayName,t.parentComponentId),displayName:c=Wm(e)}=t,d=t.displayName&&t.componentId?d2(t.displayName)+"-"+t.componentId:t.componentId||l,u=i&&o.attrs?o.attrs.concat(s).filter(Boolean):s;let{shouldForwardProp:f}=t;if(i&&o.shouldForwardProp){const v=o.shouldForwardProp;if(t.shouldForwardProp){const x=t.shouldForwardProp;f=(E,C)=>v(E,C)&&x(E,C)}else f=v}const h=new v5(n,d,i?o.componentStyle:void 0);function m(v,x){return function(E,C,j){const{attrs:M,componentStyle:T,defaultProps:_,foldedComponentIds:b,styledComponentId:$,target:B}=E,y=_o.useContext(k2),I=C5(),L=E.shouldForwardProp||I.shouldForwardProp,F=Pm(C,y,_)||Ho;let G,R;{const O=_o.useRef(null),X=O.current;if(X!==null&&X[1]===F&&X[2]===I.styleSheet&&X[3]===I.stylis&&X[7]===T&&function(ee,q,ae){const ce=ee,W=q;let re=0;for(const he in W)if(O0.call(W,he)&&(re++,ce[he]!==W[he]))return!1;return re===ae}(X[0],C,X[4]))G=X[5],R=X[6];else{G=function(q,ae,ce){const W=Object.assign(Object.assign({},ae),{className:void 0,theme:ce}),re=q.length>1;for(let he=0;he<q.length;he++){const de=q[he],se=jl(de)?de(re?Object.assign({},W):W):de;for(const xe in se)xe==="className"?W.className=ha(W.className,se[xe]):xe==="style"?W.style=Object.assign(Object.assign({},W.style),se[xe]):xe in ae&&ae[xe]===void 0||(W[xe]=se[xe])}return"className"in ae&&typeof ae.className=="string"&&(W.className=ha(W.className,ae.className)),W}(M,C,F),R=function(q,ae,ce,W){return q.generateAndInjectStyles(ae,ce,W)}(T,G,I.styleSheet,I.stylis);let ee=0;for(const q in C)O0.call(C,q)&&ee++;O.current=[C,F,I.styleSheet,I.stylis,ee,G,R,T]}}const Z=G.as||B,V=function(O,X,ee,q){const ae={};for(const ce in O)O[ce]===void 0||ce[0]==="$"||ce==="as"||ce==="theme"&&O.theme===ee||(ce==="forwardedAs"?ae.as=O.forwardedAs:q&&!q(ce,X)||(ae[ce]=O[ce]));return ae}(G,Z,F,L);let U=ha(b,$);return R&&(U+=" "+R),G.className&&(U+=" "+G.className),V[I1(Z)&&Z.includes("-")?"class":"className"]=U,j&&(V.ref=j),Lm(Z,V)}(p,v,x)}m.displayName=c;let p=_o.forwardRef(m);return p.attrs=u,p.componentStyle=h,p.displayName=c,p.shouldForwardProp=f,p.foldedComponentIds=i?ha(o.foldedComponentIds,o.styledComponentId):"",p.styledComponentId=d,p.target=i?o.target:e,Object.defineProperty(p,"defaultProps",{get(){return this._foldedDefaultProps},set(v){this._foldedDefaultProps=i?function(x,...E){for(const C of E)L1(x,C,!0);return x}({},o.defaultProps,v):v}}),v2(p,()=>`.${p.styledComponentId}`),a&&g2(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),p}var j5=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function N0(e,t){const n=[e[0]];for(let i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}const P0=e=>(x2.add(e),e);function me(e,...t){if(jl(e)||Na(e))return P0(Hi(N0(wd,[e,...t])));const n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Hi(n):P0(Hi(N0(n,t)))}function R1(e,t,n=Ho){if(!t)throw Sl(1,t);const i=(o,...a)=>e(t,n,me(o,...a));return i.attrs=o=>R1(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),i.withConfig=o=>R1(e,t,Object.assign(Object.assign({},n),o)),i}const E2=e=>R1(S5,e),w=E2;j5.forEach(e=>{w[e]=E2(e)});var k5="Expected a function",D2="__lodash_hash_undefined__",$2=1/0,E5=9007199254740991,D5="[object Function]",$5="[object GeneratorFunction]",H5="[object Symbol]",M5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T5=/^\w*$/,I5=/^\./,L5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A5=/[\\^$.*+?()[\]{}|]/g,R5=/\\(\\)?/g,O5=/^\[object .+?Constructor\]$/,N5=/^(?:0|[1-9]\d*)$/,P5=typeof ut=="object"&&ut&&ut.Object===Object&&ut,B5=typeof self=="object"&&self&&self.Object===Object&&self,xd=P5||B5||Function("return this")();function V5(e,t){return e==null?void 0:e[t]}function z5(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var F5=Array.prototype,Z5=Function.prototype,H2=Object.prototype,Oc=xd["__core-js_shared__"],B0=function(){var e=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M2=Z5.toString,El=H2.hasOwnProperty,T2=H2.toString,W5=RegExp("^"+M2.call(El).replace(A5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V0=xd.Symbol,G5=F5.splice,U5=I2(xd,"Map"),Pa=I2(Object,"create"),z0=V0?V0.prototype:void 0,F0=z0?z0.toString:void 0;function Ri(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Y5(){this.__data__=Pa?Pa(null):{}}function X5(e){return this.has(e)&&delete this.__data__[e]}function J5(e){var t=this.__data__;if(Pa){var n=t[e];return n===D2?void 0:n}return El.call(t,e)?t[e]:void 0}function K5(e){var t=this.__data__;return Pa?t[e]!==void 0:El.call(t,e)}function q5(e,t){var n=this.__data__;return n[e]=Pa&&t===void 0?D2:t,this}Ri.prototype.clear=Y5;Ri.prototype.delete=X5;Ri.prototype.get=J5;Ri.prototype.has=K5;Ri.prototype.set=q5;function Wo(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Q5(){this.__data__=[]}function e4(e){var t=this.__data__,n=Dl(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():G5.call(t,n,1),!0}function t4(e){var t=this.__data__,n=Dl(t,e);return n<0?void 0:t[n][1]}function n4(e){return Dl(this.__data__,e)>-1}function r4(e,t){var n=this.__data__,i=Dl(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Wo.prototype.clear=Q5;Wo.prototype.delete=e4;Wo.prototype.get=t4;Wo.prototype.has=n4;Wo.prototype.set=r4;function zi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function i4(){this.__data__={hash:new Ri,map:new(U5||Wo),string:new Ri}}function o4(e){return $l(this,e).delete(e)}function a4(e){return $l(this,e).get(e)}function s4(e){return $l(this,e).has(e)}function l4(e,t){return $l(this,e).set(e,t),this}zi.prototype.clear=i4;zi.prototype.delete=o4;zi.prototype.get=a4;zi.prototype.has=s4;zi.prototype.set=l4;function c4(e,t,n){var i=e[t];(!(El.call(e,t)&&L2(i,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Dl(e,t){for(var n=e.length;n--;)if(L2(e[n][0],t))return n;return-1}function d4(e){if(!el(e)||v4(e))return!1;var t=y4(e)||z5(e)?W5:O5;return t.test(b4(e))}function u4(e,t,n,i){if(!el(e))return e;t=g4(t,e)?[t]:h4(t);for(var o=-1,a=t.length,s=a-1,l=e;l!=null&&++o<a;){var c=x4(t[o]),d=n;if(o!=s){var u=l[c];d=i?i(u,c,l):void 0,d===void 0&&(d=el(u)?u:p4(t[o+1])?[]:{})}c4(l,c,d),l=l[c]}return e}function f4(e){if(typeof e=="string")return e;if(yd(e))return F0?F0.call(e):"";var t=e+"";return t=="0"&&1/e==-$2?"-0":t}function h4(e){return A2(e)?e:w4(e)}function $l(e,t){var n=e.__data__;return m4(t)?n[typeof t=="string"?"string":"hash"]:n.map}function I2(e,t){var n=V5(e,t);return d4(n)?n:void 0}function p4(e,t){return t=t??E5,!!t&&(typeof e=="number"||N5.test(e))&&e>-1&&e%1==0&&e<t}function g4(e,t){if(A2(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yd(e)?!0:T5.test(e)||!M5.test(e)||t!=null&&e in Object(t)}function m4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function v4(e){return!!B0&&B0 in e}var w4=bd(function(e){e=_4(e);var t=[];return I5.test(e)&&t.push(""),e.replace(L5,function(n,i,o,a){t.push(o?a.replace(R5,"$1"):i||n)}),t});function x4(e){if(typeof e=="string"||yd(e))return e;var t=e+"";return t=="0"&&1/e==-$2?"-0":t}function b4(e){if(e!=null){try{return M2.call(e)}catch{}try{return e+""}catch{}}return""}function bd(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(k5);var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return n.cache=a.set(o,s),s};return n.cache=new(bd.Cache||zi),n}bd.Cache=zi;function L2(e,t){return e===t||e!==e&&t!==t}var A2=Array.isArray;function y4(e){var t=el(e)?T2.call(e):"";return t==D5||t==$5}function el(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function C4(e){return!!e&&typeof e=="object"}function yd(e){return typeof e=="symbol"||C4(e)&&T2.call(e)==H5}function _4(e){return e==null?"":f4(e)}function S4(e,t,n){return e==null?e:u4(e,t,n)}var j4=S4;const Ut=bn(j4);function k4(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}var E4=k4;const R2=bn(E4),Mo=e=>R2(e)&&"desktop"in e,Z0=(e,t)=>{const n={};return Ut(n,e,t),n};function O2({template:e,row:t,col:n=null,addId:i,lastPush:o=!0,device:a="desktop"}){return new Promise(s=>{const l=e.placements[Qe(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 N2({template:e,row:t,col:n,removeId:i,device:o="desktop"}){return new Promise(a=>{const s=e.placements[Qe(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 D4=e=>e==="header",Qe=(e="desktop")=>e==="tablet"?"mobile":e,P2=(e={top:[],middle:[],bottom:[],toggle:[]})=>{const t=Object.keys(e).reduce((n,i)=>i==="toggle"?[...n,...e[i]]:(e[i].forEach(o=>{n=[...n,...o]}),n),[]);return[...new Set(t)]},ye=(e,t)=>{if(Mo(e)){const n=e.desktop;return t==="mobile"?e.mobile??e.tablet??n:e[t]??n}return e},$4=()=>document.querySelector("#customize-preview iframe"),W0=(e,t=0)=>{setTimeout(()=>{e()},t)},B2=()=>{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")},V2=()=>{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")},Hl=e=>{const t=(window==null?void 0:window.brandyCustomizerData.content_variables)??{};return Object.keys(t).forEach(n=>{e=e.replace(`[${n}]`,t[n])}),e},H4=window.React.useMemo;function oe(e){return H4(()=>D4(e)?Ae:Ie,[e])}const M4=window.React.useEffect;function De(){const{current:e}=Ks();return M4(()=>{},[]),{current:e,changeDevice:n=>{Fo.previewedDevice(n)}}}const Ml=w.button.withConfig({displayName:"Buttonstyled__Button",componentId:"sc-43c5mk-0"})(({rounded:e=!1,primary:t=!1,secondary:n=!1,disabled:i})=>[{width:"100%",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity, 1))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"1rem",lineHeight:"1.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},e&&{borderRadius:"0.125rem"},t&&!i&&{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))","&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(33 69 230 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(33 69 230 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}},n&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity, 1))"},i&&{cursor:"not-allowed","--tw-border-opacity":"1",borderColor:"rgb(220 220 222 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(167 170 173 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(167 170 173 / var(--tw-text-opacity, 1))"}}]),Cd=w.div.withConfig({displayName:"Layoutsstyled__StyledSettingsLayout",componentId:"sc-o6y3t-0"})({height:"fit-content"}),wt=w.label.withConfig({displayName:"Layoutsstyled__StyledSettingLabel",componentId:"sc-o6y3t-1"})({display:"inline-block",fontSize:"13px",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),Ka=w.div.withConfig({displayName:"Layoutsstyled__StyledSettingsSection",componentId:"sc-o6y3t-2"})({position:"relative",display:"flex",flexDirection:"column",gap:"16px",padding:"1.25rem","&::after":{content:"var(--tw-content)",position:"absolute",bottom:"0px",left:"50%",height:"1px",width:"calc(100% - 2.5rem)","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-bg-opacity":"1",backgroundColor:"rgb(227 232 238 / var(--tw-bg-opacity, 1))"},"&:last-child::after":{content:"var(--tw-content)",height:"0px"}}),z2=w.div.withConfig({displayName:"Layoutsstyled__StyledSectionLayout",componentId:"sc-o6y3t-3"})({height:"fit-content"});var T4="Expected a function",F2="__lodash_hash_undefined__",Z2=1/0,I4="[object Function]",L4="[object GeneratorFunction]",A4="[object Symbol]",R4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O4=/^\w*$/,N4=/^\./,P4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B4=/[\\^$.*+?()[\]{}|]/g,V4=/\\(\\)?/g,z4=/^\[object .+?Constructor\]$/,F4=typeof ut=="object"&&ut&&ut.Object===Object&&ut,Z4=typeof self=="object"&&self&&self.Object===Object&&self,_d=F4||Z4||Function("return this")();function W4(e,t){return e==null?void 0:e[t]}function G4(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var U4=Array.prototype,Y4=Function.prototype,W2=Object.prototype,Nc=_d["__core-js_shared__"],G0=function(){var e=/[^.]+$/.exec(Nc&&Nc.keys&&Nc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),G2=Y4.toString,Sd=W2.hasOwnProperty,U2=W2.toString,X4=RegExp("^"+G2.call(Sd).replace(B4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U0=_d.Symbol,J4=U4.splice,K4=Y2(_d,"Map"),Ba=Y2(Object,"create"),Y0=U0?U0.prototype:void 0,X0=Y0?Y0.toString:void 0;function Oi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function q4(){this.__data__=Ba?Ba(null):{}}function Q4(e){return this.has(e)&&delete this.__data__[e]}function ev(e){var t=this.__data__;if(Ba){var n=t[e];return n===F2?void 0:n}return Sd.call(t,e)?t[e]:void 0}function tv(e){var t=this.__data__;return Ba?t[e]!==void 0:Sd.call(t,e)}function nv(e,t){var n=this.__data__;return n[e]=Ba&&t===void 0?F2:t,this}Oi.prototype.clear=q4;Oi.prototype.delete=Q4;Oi.prototype.get=ev;Oi.prototype.has=tv;Oi.prototype.set=nv;function Go(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function rv(){this.__data__=[]}function iv(e){var t=this.__data__,n=Tl(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():J4.call(t,n,1),!0}function ov(e){var t=this.__data__,n=Tl(t,e);return n<0?void 0:t[n][1]}function av(e){return Tl(this.__data__,e)>-1}function sv(e,t){var n=this.__data__,i=Tl(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Go.prototype.clear=rv;Go.prototype.delete=iv;Go.prototype.get=ov;Go.prototype.has=av;Go.prototype.set=sv;function Fi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function lv(){this.__data__={hash:new Oi,map:new(K4||Go),string:new Oi}}function cv(e){return Il(this,e).delete(e)}function dv(e){return Il(this,e).get(e)}function uv(e){return Il(this,e).has(e)}function fv(e,t){return Il(this,e).set(e,t),this}Fi.prototype.clear=lv;Fi.prototype.delete=cv;Fi.prototype.get=dv;Fi.prototype.has=uv;Fi.prototype.set=fv;function Tl(e,t){for(var n=e.length;n--;)if(_v(e[n][0],t))return n;return-1}function hv(e,t){t=vv(t,e)?[t]:mv(t);for(var n=0,i=t.length;e!=null&&n<i;)e=e[yv(t[n++])];return n&&n==i?e:void 0}function pv(e){if(!J2(e)||xv(e))return!1;var t=Sv(e)||G4(e)?X4:z4;return t.test(Cv(e))}function gv(e){if(typeof e=="string")return e;if(kd(e))return X0?X0.call(e):"";var t=e+"";return t=="0"&&1/e==-Z2?"-0":t}function mv(e){return X2(e)?e:bv(e)}function Il(e,t){var n=e.__data__;return wv(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Y2(e,t){var n=W4(e,t);return pv(n)?n:void 0}function vv(e,t){if(X2(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||kd(e)?!0:O4.test(e)||!R4.test(e)||t!=null&&e in Object(t)}function wv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xv(e){return!!G0&&G0 in e}var bv=jd(function(e){e=kv(e);var t=[];return N4.test(e)&&t.push(""),e.replace(P4,function(n,i,o,a){t.push(o?a.replace(V4,"$1"):i||n)}),t});function yv(e){if(typeof e=="string"||kd(e))return e;var t=e+"";return t=="0"&&1/e==-Z2?"-0":t}function Cv(e){if(e!=null){try{return G2.call(e)}catch{}try{return e+""}catch{}}return""}function jd(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(T4);var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return n.cache=a.set(o,s),s};return n.cache=new(jd.Cache||Fi),n}jd.Cache=Fi;function _v(e,t){return e===t||e!==e&&t!==t}var X2=Array.isArray;function Sv(e){var t=J2(e)?U2.call(e):"";return t==I4||t==L4}function J2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function jv(e){return!!e&&typeof e=="object"}function kd(e){return typeof e=="symbol"||jv(e)&&U2.call(e)==A4}function kv(e){return e==null?"":gv(e)}function Ev(e,t,n){var i=e==null?void 0:hv(e,t);return i===void 0?n:i}var Dv=Ev;const ke=bn(Dv),Ed=({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",Ed({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=ke(t,s.value_path);if(c==null&&s.default_check_value!=null&&(c=s.default_check_value),c==null)return!1;c=Mo(c)?ye(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})};var $v="[object String]",Hv=Object.prototype,Mv=Hv.toString,Tv=Array.isArray;function Iv(e){return!!e&&typeof e=="object"}function Lv(e){return typeof e=="string"||!Tv(e)&&Iv(e)&&Mv.call(e)==$v}var Av=Lv;const K2=bn(Av),ir=window.jQuery,q2=({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==="data_attribute"&&c.render_options.data.forEach(d=>{if(ke(t,d.value_path)===void 0)return;let u=ke(t,d.value_path);const f=ke(t,d.value_path.map(p=>p==="mobile"||p==="tablet"?"desktop":p)),h=ke(t,d.value_path.map(p=>p==="mobile"?"tablet":p));u==null&&(u=h??u),u==null&&(u=f??u),u=ye(u,n),d.fallback_value!=null&&!u&&(u=d.fallback_value),K2(u)&&(u=Hl(u)),d.type==="switcher"&&d.enabled_value!=null&&d.disabled_value!=null&&(u?u=d.enabled_value:u=d.disabled_value);const m=Le(d.select_from_body?d.selector:`${$t(e,i)} ${d.selector}`);if(d.name==="class"){if(d.enabled_class!=null)u==(d==null?void 0:d.enabled_value)||(d==null?void 0:d.enabled_value)==null&&u?(ir(m).addClass(d.enabled_class??""),ir(m).removeClass(d.disabled_class)):(ir(m).removeClass(d.enabled_class),ir(m).addClass(d.disabled_class??""));else if(d.custom_class){const p=ir(m).attr("data-brandy-custom-class")||"";p&&ir(m).removeClass(p);const v=String(u||"").trim();v&&ir(m).addClass(v),ir(m).attr("data-brandy-custom-class",v)}else ir(m).attr(d.name,`${d.default_class} ${u}`);return}ir(m).attr(d.name,u)})})})})},Rv=window.jQuery,Ov=({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(ke(t,d.value_path)===void 0)return;const u=Le(`${$t(e,i)} ${d.selector}`);let f=ke(t,d.value_path);const h=ke(t,d.value_path.map(m=>m==="mobile"||m==="tablet"?"desktop":m));f==null&&h!=null&&(f=h),K2(f)&&(f=Hl(f)),Rv(u).html(Mo(f)?ye(f,n):f)})})})})},Nv=(e,t="desktop",n)=>{const i=[];if(e.font_style){const l=ye(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=ye(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=ye(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=ye(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:ye(e.transform,t),selector:n}):i.push({name:"text-transform",value:"auto",selector:n}),e.decoration!=null?i.push({name:"text-decoration",value:ye(e.decoration,t),selector:n}):i.push({name:"text-decoration",value:"none",selector:n}),i},Ni=e=>`${e.value}${e.unit}`,Pv=(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"?Ni(e.image.left)+" "+Ni(e.image.top):e.image.position,selector:i}),o},Q2=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}`,Bv=(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},Vv=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,zv=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)"}),Vv(t)},J0=window.jQuery,dr=({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.push(...Fv(d,t,n))})})}),s.length>0){const l=Le($t(e,i));if(!l)return;const c={},d="__root__";s.forEach(u=>{const f=u.selector||d;c[f]||(c[f]={}),c[f][u.name]=u.value}),Object.entries(c).forEach(([u,f])=>{const h=u===d?l:J0(l).find(u);h&&Object.entries(f).forEach(([m,p])=>{J0(h).each((v,x)=>{x.style.setProperty(m,String(p))})})})}};function Fv(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 f=null;switch(o){case"color":f=Zv;break;case"dimension":f=Wv;break;case"typography":f=Gv;break;case"spacing":f=Uv;break;case"background":f=Yv;break;case"switcher":f=Xv;break;case"box_shadow":f=Jv;break;case"custom_variables":f=qv;break;default:f=Qv}f!==null&&i.push(...f(t,{variableName:s,valuePath:a,enabledValue:l,disabledValue:c,mappingVariables:d,selector:u??""},n))}),i}function Zv(e,t,n){const i=[],o=ke(e,t.valuePath);return o==null?[]:(Object.entries(o).forEach(([a,s])=>{if(a==="enabled_gradient")return;const l=ye(o.hover,n),c=ye(o.normal,n);let d=ye(s,n);a!=="normal"&&!d&&(d=l),d||(d=c),d||(d="currentColor"),i.push({name:`${t.variableName}-${a}`,value:d,selector:t.selector})}),i)}function Wv(e,t,n){const i=[],o=ke(e,t.valuePath);return o==null?[]:(i.push({name:`${t.variableName}`,value:Ni(ye(o,n)),selector:t.selector}),i)}function Gv(e,t,n){let i=ke(e,t.valuePath);return i==null&&(i={}),Nv(i,n,t.selector)}function Uv(e,t,n){const i=ke(e,t.valuePath);if(i==null)return[];const o=[];return o.push({name:`${t.variableName}`,value:Q2(ye(i,n)),selector:t.selector}),o.push(...Bv(t.variableName,ye(i,n),t.selector)),o}function Yv(e,t,n){const i=ke(e,["background"]);return i==null?[]:Pv(i,n,t.variableName,t.selector)}function Xv(e,t,n){const i=ke(e,t.valuePath);if(i==null)return[];const o=ye(i,n),a=[];return a.push({name:`${t.variableName}`,value:o?t.enabledValue:t.disabledValue,selector:t.selector}),a}function Jv(e,t,n){const i=ke(e,t.valuePath);if(i==null)return[];const o=ye(i,n),a=[];return a.push({name:t.variableName,value:zv(o),selector:t.selector}),a}function Kv(e,t,n){switch(e){case"equal":return t===n;case"not_equal":return t!==n;case"contains":return typeof t=="string"&&typeof n=="string"&&t.includes(n);case"not_contains":return typeof t=="string"&&typeof n=="string"&&!t.includes(n);case"in_array":return Array.isArray(n)&&n.includes(t);case"not_in_array":return Array.isArray(n)&&!n.includes(t);default:return!1}}function qv(e,t,n){const i=t.mappingVariables;if(i==null){const s=ke(e,t.valuePath);if(s==null)return[];const l=ye(s,n);return[{name:t.variableName,value:l,selector:t.selector}]}const o=[],a=ke(e,t.valuePath);return a==null||i.forEach(s=>{const l=s.condition.operator,c=s.path;let d=a;if(c.length>0&&(d=ke(a,c)),d==null||!Kv(l,d,s.condition.value))return;const u=s.mapping[n];u&&Object.entries(u).forEach(([f,h])=>{o.push({name:f,value:h,selector:t.selector})})}),o}function Qv(e,t,n){const i=ke(e,t.valuePath);if(i==null)return[];const o=ye(i,n);if(o==null)return[];const a=[];return a.push({name:`${t.variableName}`,value:String(o),selector:t.selector}),a}var ep={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;s<arguments.length;s++){var l=arguments[s];l&&(a=o(a,i(l)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var l in a)t.call(a,l)&&a[l]&&(s=o(s,l));return s}function o(a,s){return s?a?a+" "+s:a+s:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ep);var ew=ep.exports;const Re=bn(ew),tw=window.React.useMemo,nw=me([""," .brandy-radio-item{"," &:first-child{border-start-start-radius:4px;border-end-start-radius:4px;}&:last-child{border-start-end-radius:4px;border-end-end-radius:4px;border-right-width:1px !important;}}"],{display:"flex",width:"100%"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),rw={selected:{multiple:me([""," & + *{","}svg *[fill]{","}svg *[stroke]{","}"],{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1 !important",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1)) !important","--tw-text-opacity":"1 !important",color:"rgb(255 255 255 / var(--tw-text-opacity, 1)) !important"},{"--tw-border-opacity":"1",borderLeftColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))"},{fill:"#fff !important"},{stroke:"#fff !important"}),single:me([""," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}&.selected + *{","}&.selected{","}"],{borderColor:"#E7EBFCB2",backgroundColor:"#E7EBFCB2 !important","--tw-text-opacity":"1 !important",color:"rgb(56 88 233 / var(--tw-text-opacity, 1)) !important"},{fill:"#3858e9 !important"},{fill:"#3858e9 !important"},{stroke:"#3858e9 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"#E7EBFCB2"},{borderRightWidth:"1px"})}};function vn({options:e=[],selected:t="",onChange:n=()=>!1,className:i="",multiple:o=!1,itemCss:a=null,canDeselect:s=!1}){const l=tw(()=>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(h=>h!==d):u=[...l,d]:u=d,((o&&Array.isArray(l)?u.length!=l.length:u!==l)||s)&&n(u)};return r.jsx(iw,{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(ow,{className:Re(["brandy-radio-item min-h-[32px] p-2 relative inline-flex px-3 items-center flex-auto justify-center border-r-0 transition-all duration-100 ease-in cursor-pointer",u&&"selected",e.length===3&&"w-1/3",e.length===2&&"w-1/2"]),onClick:()=>{c(d.value)},$_css2:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},a??[u?rw.selected[o?"multiple":"single"]:"",u&&o&&me([""," &.selected ~ .selected{","}"],{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(56 88 233 / var(--tw-border-opacity, 1)) !important","&:first-child":{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(56 88 233 / var(--tw-border-opacity, 1)) !important"}},{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(227 232 238 / var(--tw-border-opacity, 1)) !important"})]],children:typeof d.label=="string"?r.jsx("span",{dangerouslySetInnerHTML:{__html:d.label}}):d.label},d.value),d.title&&r.jsx("span",{className:`-mt-1 font-[300] ${u&&"font-[500]"}`,children:d.title},`${d.value}-descripiton`)]})})})}var iw=w("div")`${nw}`,ow=w("span").withConfig({displayName:"RadioGroup___StyledSpan",componentId:"sc-60p899-0"})(["",""],e=>e.$_css2);const aw=window.React.useMemo;function ur(e){const{current:t}=De(),n=aw(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{className:e.className,children:[r.jsx(pt,{title:e.title}),r.jsx(vn,{className:"brandy-icon-group",selected:n,options:e.options??[],onChange:e.onChange,itemCss:e.itemCss??[me(['&.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 K0=window.React;var q0=function(t){return t.reduce(function(n,i){var o=i[0],a=i[1];return n[o]=a,n},{})},Q0=typeof window<"u"&&window.document&&window.document.createElement?K0.useLayoutEffect:K0.useEffect,cn="top",Mn="bottom",Tn="right",dn="left",Dd="auto",qa=[cn,Mn,Tn,dn],To="start",Va="end",sw="clippingParents",tp="viewport",ea="popper",lw="reference",eu=qa.reduce(function(e,t){return e.concat([t+"-"+To,t+"-"+Va])},[]),np=[].concat(qa,[Dd]).reduce(function(e,t){return e.concat([t,t+"-"+To,t+"-"+Va])},[]),cw="beforeRead",dw="read",uw="afterRead",fw="beforeMain",hw="main",pw="afterMain",gw="beforeWrite",mw="write",vw="afterWrite",ww=[cw,dw,uw,fw,hw,pw,gw,mw,vw];function lr(e){return e?(e.nodeName||"").toLowerCase():null}function wn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pi(e){var t=wn(e).Element;return e instanceof t||e instanceof Element}function $n(e){var t=wn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $d(e){if(typeof ShadowRoot>"u")return!1;var t=wn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xw(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];!$n(a)||!lr(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 bw(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},{});!$n(o)||!lr(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const yw={name:"applyStyles",enabled:!0,phase:"write",fn:xw,effect:bw,requires:["computeStyles"]};function ar(e){return e.split("-")[0]}var Mi=Math.max,tl=Math.min,Io=Math.round;function O1(){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 rp(){return!/^((?!chrome|android).)*safari/i.test(O1())}function Lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&$n(e)&&(o=e.offsetWidth>0&&Io(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Io(i.height)/e.offsetHeight||1);var s=Pi(e)?wn(e):window,l=s.visualViewport,c=!rp()&&n,d=(i.left+(c&&l?l.offsetLeft:0))/o,u=(i.top+(c&&l?l.offsetTop:0))/a,f=i.width/o,h=i.height/a;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function Hd(e){var t=Lo(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 ip(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$d(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ar(e){return wn(e).getComputedStyle(e)}function Cw(e){return["table","td","th"].indexOf(lr(e))>=0}function ri(e){return((Pi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ll(e){return lr(e)==="html"?e:e.assignedSlot||e.parentNode||($d(e)?e.host:null)||ri(e)}function tu(e){return!$n(e)||Ar(e).position==="fixed"?null:e.offsetParent}function _w(e){var t=/firefox/i.test(O1()),n=/Trident/i.test(O1());if(n&&$n(e)){var i=Ar(e);if(i.position==="fixed")return null}var o=Ll(e);for($d(o)&&(o=o.host);$n(o)&&["html","body"].indexOf(lr(o))<0;){var a=Ar(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 Qa(e){for(var t=wn(e),n=tu(e);n&&Cw(n)&&Ar(n).position==="static";)n=tu(n);return n&&(lr(n)==="html"||lr(n)==="body"&&Ar(n).position==="static")?t:n||_w(e)||t}function Md(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sa(e,t,n){return Mi(e,tl(t,n))}function Sw(e,t,n){var i=Sa(e,t,n);return i>n?n:i}function op(){return{top:0,right:0,bottom:0,left:0}}function ap(e){return Object.assign({},op(),e)}function sp(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var jw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ap(typeof t!="number"?t:sp(t,qa))};function kw(e){var t,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=ar(n.placement),c=Md(l),d=[dn,Tn].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var f=jw(o.padding,n),h=Hd(a),m=c==="y"?cn:dn,p=c==="y"?Mn:Tn,v=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],x=s[c]-n.rects.reference[c],E=Qa(a),C=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,j=v/2-x/2,M=f[m],T=C-h[u]-f[p],_=C/2-h[u]/2+j,b=Sa(M,_,T),$=c;n.modifiersData[i]=(t={},t[$]=b,t.centerOffset=b-_,t)}}function Ew(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)||ip(t.elements.popper,o)&&(t.elements.arrow=o))}const Dw={name:"arrow",enabled:!0,phase:"main",fn:kw,effect:Ew,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ao(e){return e.split("-")[1]}var $w={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hw(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Io(n*o)/o||0,y:Io(i*o)/o||0}}function nu(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,f=e.isFixed,h=s.x,m=h===void 0?0:h,p=s.y,v=p===void 0?0:p,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var E=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),j=dn,M=cn,T=window;if(d){var _=Qa(n),b="clientHeight",$="clientWidth";if(_===wn(n)&&(_=ri(n),Ar(_).position!=="static"&&l==="absolute"&&(b="scrollHeight",$="scrollWidth")),_=_,o===cn||(o===dn||o===Tn)&&a===Va){M=Mn;var B=f&&_===T&&T.visualViewport?T.visualViewport.height:_[b];v-=B-i.height,v*=c?1:-1}if(o===dn||(o===cn||o===Mn)&&a===Va){j=Tn;var y=f&&_===T&&T.visualViewport?T.visualViewport.width:_[$];m-=y-i.width,m*=c?1:-1}}var I=Object.assign({position:l},d&&$w),L=u===!0?Hw({x:m,y:v},wn(n)):{x:m,y:v};if(m=L.x,v=L.y,c){var F;return Object.assign({},I,(F={},F[M]=C?"0":"",F[j]=E?"0":"",F.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",F))}return Object.assign({},I,(t={},t[M]=C?v+"px":"",t[j]=E?m+"px":"",t.transform="",t))}function Mw(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:ar(t.placement),variation:Ao(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,nu(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,nu(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 Tw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mw,data:{}};var ws={passive:!0};function Iw(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=wn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,ws)}),l&&c.addEventListener("resize",n.update,ws),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ws)}),l&&c.removeEventListener("resize",n.update,ws)}}const Lw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Iw,data:{}};var Aw={left:"right",right:"left",bottom:"top",top:"bottom"};function zs(e){return e.replace(/left|right|bottom|top/g,function(t){return Aw[t]})}var Rw={start:"end",end:"start"};function ru(e){return e.replace(/start|end/g,function(t){return Rw[t]})}function Td(e){var t=wn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Id(e){return Lo(ri(e)).left+Td(e).scrollLeft}function Ow(e,t){var n=wn(e),i=ri(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=rp();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+Id(e),y:c}}function Nw(e){var t,n=ri(e),i=Td(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Mi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Mi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+Id(e),c=-i.scrollTop;return Ar(o||n).direction==="rtl"&&(l+=Mi(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function Ld(e){var t=Ar(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function lp(e){return["html","body","#document"].indexOf(lr(e))>=0?e.ownerDocument.body:$n(e)&&Ld(e)?e:lp(Ll(e))}function ja(e,t){var n;t===void 0&&(t=[]);var i=lp(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=wn(i),s=o?[a].concat(a.visualViewport||[],Ld(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(ja(Ll(s)))}function N1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pw(e,t){var n=Lo(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 iu(e,t,n){return t===tp?N1(Ow(e,n)):Pi(t)?Pw(t,n):N1(Nw(ri(e)))}function Bw(e){var t=ja(Ll(e)),n=["absolute","fixed"].indexOf(Ar(e).position)>=0,i=n&&$n(e)?Qa(e):e;return Pi(i)?t.filter(function(o){return Pi(o)&&ip(o,i)&&lr(o)!=="body"}):[]}function Vw(e,t,n,i){var o=t==="clippingParents"?Bw(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var u=iu(e,d,i);return c.top=Mi(u.top,c.top),c.right=tl(u.right,c.right),c.bottom=tl(u.bottom,c.bottom),c.left=Mi(u.left,c.left),c},iu(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 cp(e){var t=e.reference,n=e.element,i=e.placement,o=i?ar(i):null,a=i?Ao(i):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case cn:c={x:s,y:t.y-n.height};break;case Mn:c={x:s,y:t.y+t.height};break;case Tn:c={x:t.x+t.width,y:l};break;case dn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Md(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(a){case To:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Va:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function za(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?sw:l,d=n.rootBoundary,u=d===void 0?tp:d,f=n.elementContext,h=f===void 0?ea:f,m=n.altBoundary,p=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,E=ap(typeof x!="number"?x:sp(x,qa)),C=h===ea?lw:ea,j=e.rects.popper,M=e.elements[p?C:h],T=Vw(Pi(M)?M:M.contextElement||ri(e.elements.popper),c,u,s),_=Lo(e.elements.reference),b=cp({reference:_,element:j,strategy:"absolute",placement:o}),$=N1(Object.assign({},j,b)),B=h===ea?$:_,y={top:T.top-B.top+E.top,bottom:B.bottom-T.bottom+E.bottom,left:T.left-B.left+E.left,right:B.right-T.right+E.right},I=e.modifiersData.offset;if(h===ea&&I){var L=I[o];Object.keys(y).forEach(function(F){var G=[Tn,Mn].indexOf(F)>=0?1:-1,R=[cn,Mn].indexOf(F)>=0?"y":"x";y[F]+=L[R]*G})}return y}function zw(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?np:c,u=Ao(i),f=u?l?eu:eu.filter(function(p){return Ao(p)===u}):qa,h=f.filter(function(p){return d.indexOf(p)>=0});h.length===0&&(h=f);var m=h.reduce(function(p,v){return p[v]=za(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[ar(v)],p},{});return Object.keys(m).sort(function(p,v){return m[p]-m[v]})}function Fw(e){if(ar(e)===Dd)return[];var t=zs(e);return[ru(e),t,ru(t)]}function Zw(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,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,E=ar(x),C=E===x,j=c||(C||!p?[zs(x)]:Fw(x)),M=[x].concat(j).reduce(function(ce,W){return ce.concat(ar(W)===Dd?zw(t,{placement:W,boundary:u,rootBoundary:f,padding:d,flipVariations:p,allowedAutoPlacements:v}):W)},[]),T=t.rects.reference,_=t.rects.popper,b=new Map,$=!0,B=M[0],y=0;y<M.length;y++){var I=M[y],L=ar(I),F=Ao(I)===To,G=[cn,Mn].indexOf(L)>=0,R=G?"width":"height",Z=za(t,{placement:I,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),V=G?F?Tn:dn:F?Mn:cn;T[R]>_[R]&&(V=zs(V));var U=zs(V),O=[];if(a&&O.push(Z[L]<=0),l&&O.push(Z[V]<=0,Z[U]<=0),O.every(function(ce){return ce})){B=I,$=!1;break}b.set(I,O)}if($)for(var X=p?3:1,ee=function(W){var re=M.find(function(he){var de=b.get(he);if(de)return de.slice(0,W).every(function(se){return se})});if(re)return B=re,"break"},q=X;q>0;q--){var ae=ee(q);if(ae==="break")break}t.placement!==B&&(t.modifiersData[i]._skip=!0,t.placement=B,t.reset=!0)}}const Ww={name:"flip",enabled:!0,phase:"main",fn:Zw,requiresIfExists:["offset"],data:{_skip:!1}};function ou(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 au(e){return[cn,Tn,Mn,dn].some(function(t){return e[t]>=0})}function Gw(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=za(t,{elementContext:"reference"}),l=za(t,{altBoundary:!0}),c=ou(s,i),d=ou(l,o,a),u=au(c),f=au(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Uw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gw};function Yw(e,t,n){var i=ar(e),o=[dn,cn].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,[dn,Tn].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Xw(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=np.reduce(function(u,f){return u[f]=Yw(f,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 Jw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xw};function Kw(e){var t=e.state,n=e.name;t.modifiersData[n]=cp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qw={name:"popperOffsets",enabled:!0,phase:"read",fn:Kw,data:{}};function Qw(e){return e==="x"?"y":"x"}function e8(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,f=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,x=za(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),E=ar(t.placement),C=Ao(t.placement),j=!C,M=Md(E),T=Qw(M),_=t.modifiersData.popperOffsets,b=t.rects.reference,$=t.rects.popper,B=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,y=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(_){if(a){var F,G=M==="y"?cn:dn,R=M==="y"?Mn:Tn,Z=M==="y"?"height":"width",V=_[M],U=V+x[G],O=V-x[R],X=m?-$[Z]/2:0,ee=C===To?b[Z]:$[Z],q=C===To?-$[Z]:-b[Z],ae=t.elements.arrow,ce=m&&ae?Hd(ae):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:op(),re=W[G],he=W[R],de=Sa(0,b[Z],ce[Z]),se=j?b[Z]/2-X-de-re-y.mainAxis:ee-de-re-y.mainAxis,xe=j?-b[Z]/2+X+de+he+y.mainAxis:q+de+he+y.mainAxis,Ye=t.elements.arrow&&Qa(t.elements.arrow),et=Ye?M==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,S=(F=I==null?void 0:I[M])!=null?F:0,A=V+se-S-et,H=V+xe-S,Y=Sa(m?tl(U,A):U,V,m?Mi(O,H):O);_[M]=Y,L[M]=Y-V}if(l){var J,te=M==="x"?cn:dn,ve=M==="x"?Mn:Tn,ue=_[T],Oe=T==="y"?"height":"width",Pe=ue+x[te],Pt=ue-x[ve],Ge=[cn,dn].indexOf(E)!==-1,fn=(J=I==null?void 0:I[T])!=null?J:0,Kn=Ge?Pe:ue-b[Oe]-$[Oe]-fn+y.altAxis,Bt=Ge?ue+b[Oe]+$[Oe]-fn-y.altAxis:Pt,Cn=m&&Ge?Sw(Kn,ue,Bt):Sa(m?Kn:Pe,ue,m?Bt:Pt);_[T]=Cn,L[T]=Cn-ue}t.modifiersData[i]=L}}const t8={name:"preventOverflow",enabled:!0,phase:"main",fn:e8,requiresIfExists:["offset"]};function n8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function r8(e){return e===wn(e)||!$n(e)?Td(e):n8(e)}function i8(e){var t=e.getBoundingClientRect(),n=Io(t.width)/e.offsetWidth||1,i=Io(t.height)/e.offsetHeight||1;return n!==1||i!==1}function o8(e,t,n){n===void 0&&(n=!1);var i=$n(t),o=$n(t)&&i8(t),a=ri(t),s=Lo(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((lr(t)!=="body"||Ld(a))&&(l=r8(t)),$n(t)?(c=Lo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Id(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function a8(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 s8(e){var t=a8(e);return ww.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function l8(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function c8(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 su={placement:"bottom",modifiers:[],strategy:"absolute"};function lu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function d8(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?su:o;return function(l,c,d){d===void 0&&(d=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},su,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:u,setOptions:function(E){var C=typeof E=="function"?E(u.options):E;v(),u.options=Object.assign({},a,u.options,C),u.scrollParents={reference:Pi(l)?ja(l):l.contextElement?ja(l.contextElement):[],popper:ja(c)};var j=s8(c8([].concat(i,u.options.modifiers)));return u.orderedModifiers=j.filter(function(M){return M.enabled}),p(),m.update()},forceUpdate:function(){if(!h){var E=u.elements,C=E.reference,j=E.popper;if(lu(C,j)){u.rects={reference:o8(C,Qa(j),u.options.strategy==="fixed"),popper:Hd(j)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(y){return u.modifiersData[y.name]=Object.assign({},y.data)});for(var M=0;M<u.orderedModifiers.length;M++){if(u.reset===!0){u.reset=!1,M=-1;continue}var T=u.orderedModifiers[M],_=T.fn,b=T.options,$=b===void 0?{}:b,B=T.name;typeof _=="function"&&(u=_({state:u,options:$,name:B,instance:m})||u)}}}},update:l8(function(){return new Promise(function(x){m.forceUpdate(),x(u)})}),destroy:function(){v(),h=!0}};if(!lu(l,c))return m;m.setOptions(d).then(function(x){!h&&d.onFirstUpdate&&d.onFirstUpdate(x)});function p(){u.orderedModifiers.forEach(function(x){var E=x.name,C=x.options,j=C===void 0?{}:C,M=x.effect;if(typeof M=="function"){var T=M({state:u,name:E,instance:m,options:j}),_=function(){};f.push(T||_)}})}function v(){f.forEach(function(x){return x()}),f=[]}return m}}var u8=[Lw,qw,Tw,yw,Jw,Ww,t8,Dw,Uw],f8=d8({defaultModifiers:u8}),h8=typeof Element<"u",p8=typeof Map=="function",g8=typeof Set=="function",m8=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Fs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!Fs(e[i],t[i]))return!1;return!0}var a;if(p8&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!t.has(i.value[0]))return!1;for(a=e.entries();!(i=a.next()).done;)if(!Fs(i.value[1],t.get(i.value[0])))return!1;return!0}if(g8&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(m8&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;if(h8&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!Fs(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var v8=function(t,n){try{return Fs(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const w8=bn(v8),ta=window.React,x8=window.ReactDOM;var b8=[],fr=function(t,n,i){i===void 0&&(i={});var o=ta.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||b8},s=ta.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],d=ta.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var p=m.state,v=Object.keys(p.elements);x8.flushSync(function(){c({styles:q0(v.map(function(x){return[x,p.styles[x]||{}]})),attributes:q0(v.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),u=ta.useMemo(function(){var h={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[d,{name:"applyStyles",enabled:!1}])};return w8(o.current,h)?o.current||h:(o.current=h,h)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,d]),f=ta.useRef();return Q0(function(){f.current&&f.current.setOptions(u)},[u]),Q0(function(){if(!(t==null||n==null)){var h=i.createPopper||f8,m=h(t,n,u);return f.current=m,function(){m.destroy(),f.current=null}}},[t,n,i.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},dp={},up={},Al={exports:{}},pa={exports:{}};(function(){var e,t,n,i,o,a;typeof performance<"u"&&performance!==null&&performance.now?pa.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(pa.exports=function(){return(e()-o)/1e6},t=process.hrtime,e=function(){var s;return s=t(),s[0]*1e9+s[1]},i=e(),a=process.uptime()*1e9,o=i-a):Date.now?(pa.exports=function(){return Date.now()-n},n=Date.now()):(pa.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(ut);var y8=pa.exports,C8=y8,Mr=typeof window>"u"?ut:window,xs=["moz","webkit"],So="AnimationFrame",Ro=Mr["request"+So],Fa=Mr["cancel"+So]||Mr["cancelRequest"+So];for(var na=0;!Ro&&na<xs.length;na++)Ro=Mr[xs[na]+"Request"+So],Fa=Mr[xs[na]+"Cancel"+So]||Mr[xs[na]+"CancelRequest"+So];if(!Ro||!Fa){var Pc=0,cu=0,xi=[],_8=1e3/60;Ro=function(e){if(xi.length===0){var t=C8(),n=Math.max(0,_8-(t-Pc));Pc=n+t,setTimeout(function(){var i=xi.slice(0);xi.length=0;for(var o=0;o<i.length;o++)if(!i[o].cancelled)try{i[o].callback(Pc)}catch(a){setTimeout(function(){throw a},0)}},Math.round(n))}return xi.push({handle:++cu,callback:e,cancelled:!1}),cu},Fa=function(e){for(var t=0;t<xi.length;t++)xi[t].handle===e&&(xi[t].cancelled=!0)}}Al.exports=function(e){return Ro.call(Mr,e)};Al.exports.cancel=function(){Fa.apply(Mr,arguments)};Al.exports.polyfill=function(e){e||(e=Mr),e.requestAnimationFrame=Ro,e.cancelAnimationFrame=Fa};var S8=Al.exports,Rl={exports:{}},Bc=null,du=["Webkit","Moz","O","ms"],j8=function(t){Bc||(Bc=document.createElement("div"));var n=Bc.style;if(t in n)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),o=du.length;o>=0;o--){var a=du[o]+i;if(a in n)return a}return!1},k8=H8,E8=/\s/,D8=/(_|-|\.|:)/,$8=/([a-z][A-Z]|[A-Z][a-z])/;function H8(e){return E8.test(e)?e.toLowerCase():D8.test(e)?(T8(e)||e).toLowerCase():$8.test(e)?L8(e).toLowerCase():e.toLowerCase()}var M8=/[\W_]+(.|$)/g;function T8(e){return e.replace(M8,function(t,n){return n?" "+n:""})}var I8=/(.)([A-Z]+)/g;function L8(e){return e.replace(I8,function(t,n,i){return n+" "+i.toLowerCase().split("").join(" ")})}var A8=k8,R8=O8;function O8(e){return A8(e).replace(/[\W_]+(.|$)/g,function(t,n){return n?" "+n:""}).trim()}var N8=R8,P8=B8;function B8(e){return N8(e).replace(/\s(\w)/g,function(t,n){return n.toUpperCase()})}var V8={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},z8=function(e,t){return typeof t=="number"&&!V8[e]?t+"px":t},F8=j8,Z8=P8,Zs={float:"cssFloat"},W8=z8;function nl(e,t,n){var i=Zs[t];if(typeof i>"u"&&(i=U8(t)),i){if(n===void 0)return e.style[i];e.style[i]=W8(i,n)}}function G8(e,t){for(var n in t)t.hasOwnProperty(n)&&nl(e,n,t[n])}function U8(e){var t=Z8(e),n=F8(t);return Zs[t]=Zs[e]=Zs[n]=n,n}function fp(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:G8(arguments[0],arguments[1]):nl(arguments[0],arguments[1],arguments[2])}Rl.exports=fp;Rl.exports.set=fp;Rl.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(n,i){return n[i]=nl(e,i||""),n},{}):nl(e,t||"")};var hp=Rl.exports,pp={exports:{}},Y8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",X8=Y8,J8=X8;function gp(){}function mp(){}mp.resetWarningCache=gp;var K8=function(){function e(i,o,a,s,l,c){if(c!==J8){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:mp,resetWarningCache:gp};return n.PropTypes=n,n};pp.exports=K8();var q8=pp.exports,vp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}})(vp);var wp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=hp,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}})(wp);var xp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}})(xp);var bp={};(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)}})(bp);var yp={};(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)}})(yp);var yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};yn.containerStyleAutoHeight={height:"auto"};yn.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};yn.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};yn.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};yn.trackHorizontalStyleDefault={position:"absolute",height:6};yn.trackVerticalStyleDefault={position:"absolute",width:6};yn.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};yn.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};yn.disableSelectStyle={userSelect:"none"};yn.disableSelectStyleReset={userSelect:""};var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});var ti=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};Zi.renderViewDefault=tx;Zi.renderTrackHorizontalDefault=nx;Zi.renderTrackVerticalDefault=rx;Zi.renderThumbHorizontalDefault=ix;Zi.renderThumbVerticalDefault=ox;var Q8=window.React,es=ex(Q8);function ex(e){return e&&e.__esModule?e:{default:e}}function Ol(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function tx(e){return es.default.createElement("div",e)}function nx(e){var t=e.style,n=Ol(e,["style"]),i=ti({},t,{right:2,bottom:2,left:2,borderRadius:3});return es.default.createElement("div",ti({style:i},n))}function rx(e){var t=e.style,n=Ol(e,["style"]),i=ti({},t,{right:2,bottom:2,top:2,borderRadius:3});return es.default.createElement("div",ti({style:i},n))}function ix(e){var t=e.style,n=Ol(e,["style"]),i=ti({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return es.default.createElement("div",ti({style:i},n))}function ox(e){var t=e.style,n=Ol(e,["style"]),i=ti({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return es.default.createElement("div",ti({style:i},n))}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(L){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var R in G)Object.prototype.hasOwnProperty.call(G,R)&&(L[R]=G[R])}return L},n=function(){function L(F,G){for(var R=0;R<G.length;R++){var Z=G[R];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(F,Z.key,Z)}}return function(F,G,R){return G&&L(F.prototype,G),R&&L(F,R),F}}(),i=S8,o=_(i),a=hp,s=_(a),l=window.React,c=q8,d=_(c),u=vp,f=_(u),h=wp,m=_(h),p=xp,v=_(p),x=bp,E=_(x),C=yp,j=_(C),M=yn,T=Zi;function _(L){return L&&L.__esModule?L:{default:L}}function b(L,F){var G={};for(var R in L)F.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(L,R)&&(G[R]=L[R]);return G}function $(L,F){if(!(L instanceof F))throw new TypeError("Cannot call a class as a function")}function B(L,F){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:L}function y(L,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);L.prototype=Object.create(F&&F.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(L,F):L.__proto__=F)}var I=function(L){y(F,L);function F(G){var R;$(this,F);for(var Z=arguments.length,V=Array(Z>1?Z-1:0),U=1;U<Z;U++)V[U-1]=arguments[U];var O=B(this,(R=F.__proto__||Object.getPrototypeOf(F)).call.apply(R,[this,G].concat(V)));return O.getScrollLeft=O.getScrollLeft.bind(O),O.getScrollTop=O.getScrollTop.bind(O),O.getScrollWidth=O.getScrollWidth.bind(O),O.getScrollHeight=O.getScrollHeight.bind(O),O.getClientWidth=O.getClientWidth.bind(O),O.getClientHeight=O.getClientHeight.bind(O),O.getValues=O.getValues.bind(O),O.getThumbHorizontalWidth=O.getThumbHorizontalWidth.bind(O),O.getThumbVerticalHeight=O.getThumbVerticalHeight.bind(O),O.getScrollLeftForOffset=O.getScrollLeftForOffset.bind(O),O.getScrollTopForOffset=O.getScrollTopForOffset.bind(O),O.scrollLeft=O.scrollLeft.bind(O),O.scrollTop=O.scrollTop.bind(O),O.scrollToLeft=O.scrollToLeft.bind(O),O.scrollToTop=O.scrollToTop.bind(O),O.scrollToRight=O.scrollToRight.bind(O),O.scrollToBottom=O.scrollToBottom.bind(O),O.handleTrackMouseEnter=O.handleTrackMouseEnter.bind(O),O.handleTrackMouseLeave=O.handleTrackMouseLeave.bind(O),O.handleHorizontalTrackMouseDown=O.handleHorizontalTrackMouseDown.bind(O),O.handleVerticalTrackMouseDown=O.handleVerticalTrackMouseDown.bind(O),O.handleHorizontalThumbMouseDown=O.handleHorizontalThumbMouseDown.bind(O),O.handleVerticalThumbMouseDown=O.handleVerticalThumbMouseDown.bind(O),O.handleWindowResize=O.handleWindowResize.bind(O),O.handleScroll=O.handleScroll.bind(O),O.handleDrag=O.handleDrag.bind(O),O.handleDragEnd=O.handleDragEnd.bind(O),O.state={didMountUniversal:!1},O}return n(F,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var R=this.props.universal;R&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var R=this.view||{},Z=R.scrollLeft,V=Z===void 0?0:Z,U=R.scrollTop,O=U===void 0?0:U,X=R.scrollWidth,ee=X===void 0?0:X,q=R.scrollHeight,ae=q===void 0?0:q,ce=R.clientWidth,W=ce===void 0?0:ce,re=R.clientHeight,he=re===void 0?0:re;return{left:V/(ee-W)||0,top:O/(ae-he)||0,scrollLeft:V,scrollTop:O,scrollWidth:ee,scrollHeight:ae,clientWidth:W,clientHeight:he}}},{key:"getThumbHorizontalWidth",value:function(){var R=this.props,Z=R.thumbSize,V=R.thumbMinSize,U=this.view,O=U.scrollWidth,X=U.clientWidth,ee=(0,E.default)(this.trackHorizontal),q=Math.ceil(X/O*ee);return ee<=q?0:Z||Math.max(q,V)}},{key:"getThumbVerticalHeight",value:function(){var R=this.props,Z=R.thumbSize,V=R.thumbMinSize,U=this.view,O=U.scrollHeight,X=U.clientHeight,ee=(0,j.default)(this.trackVertical),q=Math.ceil(X/O*ee);return ee<=q?0:Z||Math.max(q,V)}},{key:"getScrollLeftForOffset",value:function(R){var Z=this.view,V=Z.scrollWidth,U=Z.clientWidth,O=(0,E.default)(this.trackHorizontal),X=this.getThumbHorizontalWidth();return R/(O-X)*(V-U)}},{key:"getScrollTopForOffset",value:function(R){var Z=this.view,V=Z.scrollHeight,U=Z.clientHeight,O=(0,j.default)(this.trackVertical),X=this.getThumbVerticalHeight();return R/(O-X)*(V-U)}},{key:"scrollLeft",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=R)}},{key:"scrollTop",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=R)}},{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 R=this.view,Z=this.trackHorizontal,V=this.trackVertical,U=this.thumbHorizontal,O=this.thumbVertical;R.addEventListener("scroll",this.handleScroll),(0,m.default)()&&(Z.addEventListener("mouseenter",this.handleTrackMouseEnter),Z.addEventListener("mouseleave",this.handleTrackMouseLeave),Z.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),V.addEventListener("mouseenter",this.handleTrackMouseEnter),V.addEventListener("mouseleave",this.handleTrackMouseLeave),V.addEventListener("mousedown",this.handleVerticalTrackMouseDown),U.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),O.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var R=this.view,Z=this.trackHorizontal,V=this.trackVertical,U=this.thumbHorizontal,O=this.thumbVertical;R.removeEventListener("scroll",this.handleScroll),(0,m.default)()&&(Z.removeEventListener("mouseenter",this.handleTrackMouseEnter),Z.removeEventListener("mouseleave",this.handleTrackMouseLeave),Z.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),V.removeEventListener("mouseenter",this.handleTrackMouseEnter),V.removeEventListener("mouseleave",this.handleTrackMouseLeave),V.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),U.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),O.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(R){var Z=this,V=this.props,U=V.onScroll,O=V.onScrollFrame;U&&U(R),this.update(function(X){var ee=X.scrollLeft,q=X.scrollTop;Z.viewScrollLeft=ee,Z.viewScrollTop=q,O&&O(X)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var R=this.props.onScrollStart;R&&R(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var R=this.props.autoHide;R&&this.showTracks()}},{key:"handleScrollStop",value:function(){var R=this.props.onScrollStop;R&&R(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var R=this.props.autoHide;R&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,m.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(R){R.preventDefault();var Z=R.target,V=R.clientX,U=Z.getBoundingClientRect(),O=U.left,X=this.getThumbHorizontalWidth(),ee=Math.abs(O-V)-X/2;this.view.scrollLeft=this.getScrollLeftForOffset(ee)}},{key:"handleVerticalTrackMouseDown",value:function(R){R.preventDefault();var Z=R.target,V=R.clientY,U=Z.getBoundingClientRect(),O=U.top,X=this.getThumbVerticalHeight(),ee=Math.abs(O-V)-X/2;this.view.scrollTop=this.getScrollTopForOffset(ee)}},{key:"handleHorizontalThumbMouseDown",value:function(R){R.preventDefault(),this.handleDragStart(R);var Z=R.target,V=R.clientX,U=Z.offsetWidth,O=Z.getBoundingClientRect(),X=O.left;this.prevPageX=U-(V-X)}},{key:"handleVerticalThumbMouseDown",value:function(R){R.preventDefault(),this.handleDragStart(R);var Z=R.target,V=R.clientY,U=Z.offsetHeight,O=Z.getBoundingClientRect(),X=O.top;this.prevPageY=U-(V-X)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,M.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=v.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,M.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(R){this.dragging=!0,R.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(R){if(this.prevPageX){var Z=R.clientX,V=this.trackHorizontal.getBoundingClientRect(),U=V.left,O=this.getThumbHorizontalWidth(),X=O-this.prevPageX,ee=-U+Z-X;this.view.scrollLeft=this.getScrollLeftForOffset(ee)}if(this.prevPageY){var q=R.clientY,ae=this.trackVertical.getBoundingClientRect(),ce=ae.top,W=this.getThumbVerticalHeight(),re=W-this.prevPageY,he=-ce+q-re;this.view.scrollTop=this.getScrollTopForOffset(he)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var R=this.props.autoHide;R&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var R=this.props.autoHide;R&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var R=this.props.autoHide;R&&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 R=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var Z=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(R.trackHorizontal,{opacity:0}),(0,s.default)(R.trackVertical,{opacity:0})},Z)}}},{key:"detectScrolling",value:function(){var R=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){R.lastViewScrollLeft===R.viewScrollLeft&&R.lastViewScrollTop===R.viewScrollTop&&(clearInterval(R.detectScrollingInterval),R.scrolling=!1,R.handleScrollStop()),R.lastViewScrollLeft=R.viewScrollLeft,R.lastViewScrollTop=R.viewScrollTop},100))}},{key:"raf",value:function(R){var Z=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){Z.requestFrame=void 0,R()})}},{key:"update",value:function(R){var Z=this;this.raf(function(){return Z._update(R)})}},{key:"_update",value:function(R){var Z=this.props,V=Z.onUpdate,U=Z.hideTracksWhenNotNeeded,O=this.getValues();if((0,m.default)()){var X=O.scrollLeft,ee=O.clientWidth,q=O.scrollWidth,ae=(0,E.default)(this.trackHorizontal),ce=this.getThumbHorizontalWidth(),W=X/(q-ee)*(ae-ce),re={width:ce,transform:"translateX("+W+"px)"},he=O.scrollTop,de=O.clientHeight,se=O.scrollHeight,xe=(0,j.default)(this.trackVertical),Ye=this.getThumbVerticalHeight(),et=he/(se-de)*(xe-Ye),S={height:Ye,transform:"translateY("+et+"px)"};if(U){var A={visibility:q>ee?"visible":"hidden"},H={visibility:se>de?"visible":"hidden"};(0,s.default)(this.trackHorizontal,A),(0,s.default)(this.trackVertical,H)}(0,s.default)(this.thumbHorizontal,re),(0,s.default)(this.thumbVertical,S)}V&&V(O),typeof R=="function"&&R(O)}},{key:"render",value:function(){var R=this,Z=(0,m.default)(),V=this.props;V.onScroll,V.onScrollFrame,V.onScrollStart,V.onScrollStop,V.onUpdate;var U=V.renderView,O=V.renderTrackHorizontal,X=V.renderTrackVertical,ee=V.renderThumbHorizontal,q=V.renderThumbVertical,ae=V.tagName;V.hideTracksWhenNotNeeded;var ce=V.autoHide;V.autoHideTimeout;var W=V.autoHideDuration;V.thumbSize,V.thumbMinSize;var re=V.universal,he=V.autoHeight,de=V.autoHeightMin,se=V.autoHeightMax,xe=V.style,Ye=V.children,et=b(V,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),S=this.state.didMountUniversal,A=t({},M.containerStyleDefault,he&&t({},M.containerStyleAutoHeight,{minHeight:de,maxHeight:se}),xe),H=t({},M.viewStyleDefault,{marginRight:Z?-Z:0,marginBottom:Z?-Z:0},he&&t({},M.viewStyleAutoHeight,{minHeight:(0,f.default)(de)?"calc("+de+" + "+Z+"px)":de+Z,maxHeight:(0,f.default)(se)?"calc("+se+" + "+Z+"px)":se+Z}),he&&re&&!S&&{minHeight:de,maxHeight:se},re&&!S&&M.viewStyleUniversalInitial),Y={transition:"opacity "+W+"ms",opacity:0},J=t({},M.trackHorizontalStyleDefault,ce&&Y,(!Z||re&&!S)&&{display:"none"}),te=t({},M.trackVerticalStyleDefault,ce&&Y,(!Z||re&&!S)&&{display:"none"});return(0,l.createElement)(ae,t({},et,{style:A,ref:function(ue){R.container=ue}}),[(0,l.cloneElement)(U({style:H}),{key:"view",ref:function(ue){R.view=ue}},Ye),(0,l.cloneElement)(O({style:J}),{key:"trackHorizontal",ref:function(ue){R.trackHorizontal=ue}},(0,l.cloneElement)(ee({style:M.thumbHorizontalStyleDefault}),{ref:function(ue){R.thumbHorizontal=ue}})),(0,l.cloneElement)(X({style:te}),{key:"trackVertical",ref:function(ue){R.trackVertical=ue}},(0,l.cloneElement)(q({style:M.thumbVerticalStyleDefault}),{ref:function(ue){R.thumbVertical=ue}}))])}}]),F}(l.Component);e.default=I,I.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},I.defaultProps={renderView:T.renderViewDefault,renderTrackHorizontal:T.renderTrackHorizontalDefault,renderTrackVertical:T.renderTrackVerticalDefault,renderThumbHorizontal:T.renderThumbHorizontalDefault,renderThumbVertical:T.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(up);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=up,n=i(t);function i(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default})(dp);const ax=bn(dp);function Rr({children:e,...t}){return r.jsx(ax,{...t,...window.brandyCustomizerData.rtl?{renderView:n=>r.jsx("div",{...n,style:{...n.style,marginLeft:n.style.marginRight,marginRight:0}})}:{},children:e})}const sx=window.React.useEffect,lx=window.React.useRef,Vc=window.React.useState;function St({title:e="",children:t,style:n={}}){const[i,o]=Vc(null),[a,s]=Vc(null),{styles:l,attributes:c}=fr(i,a),[d,u]=Vc(!1),f=()=>{u(!0)},h=()=>{u(!1)};if(!e)return!1;const m=lx(null);return sx(()=>{setTimeout(()=>{o(m.current)},300)},[m.current]),r.jsxs("div",{className:"brandy-with-tooltip",children:[r.jsx("div",{className:"brandy-tooltip-activator",onMouseMove:()=>{f()},onMouseLeave:()=>{h()},ref:m,children:t}),r.jsx(cx,{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 cx=w("div").withConfig({displayName:"Tooltip___StyledDiv",componentId:"sc-gmfqn3-0"})(["",""],e=>e.$_css);const dx=window.React.useEffect,zc=window.React.useMemo,Fc=window.React.useState,ux=38,Cp=5,_p=5;function jt({options:e,selected:t,onChange:n=()=>!1,style:i={},popupHeight:o=null}){const[a,s]=Fc(null),[l,c]=Fc(null),{styles:d,attributes:u}=fr(a,l),[f,h]=Fc(!1),m=zc(()=>(a==null?void 0:a.getBoundingClientRect().width)??0,[a]),p=()=>{h(j=>!j)},v=()=>{h(!1)},x=zc(()=>e.find(M=>M.value===t),[e,t]),E=j=>{const M=j.currentTarget.dataset.value;n(M??"")};dx(()=>{const j=M=>{(a==null||l==null)&&v(),!(a!=null&&a.contains(M.target))&&!(l!=null&&l.contains(M.target))&&v()};return window.jQuery(document).on("click","body",j),()=>{window.jQuery(document).off("click","body",j)}},[a,l]);const C=zc(()=>{if(o)return o;const j=Math.min(e.length,4);return j*ux+(j-1)*Cp+_p*2},[e,o]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:Re(["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:(x==null?void 0:x.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"})})})]}),f&&r.jsx("div",{ref:c,style:{...d.popper,width:m,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...u.popper,className:Re(["my-2  z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Rr,{autoHide:!0,className:"bg-gutenberg-white",style:{height:C},children:r.jsx(fx,{className:"flex flex-col",children:e.map(j=>r.jsxs(hx,{className:"brandy-select__option-content","data-value":j.value,onClick:E,$_css:[{display:"flex",alignItems:"center",justifyContent:"space-between","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"},{minHeight:"38px",borderRadius:"5px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"9px",paddingBottom:"9px","&:hover":{backgroundColor:"rgb(56 88 233 / 0.03)","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity, 1))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},t===j.value&&{backgroundColor:"#3858e90D !important","--tw-text-opacity":"1 !important",color:"rgb(56 88 233 / var(--tw-text-opacity, 1)) !important"}],children:[r.jsx(px,{children:(j.label??"").toString().length>30?r.jsx(St,{title:j.label,children:j.label}):j.label}),j.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"})})]},j.value))})})})]})}var fx=w("div")`
                padding: ${_p}px;
                gap: ${Cp}px;
              `,hx=w("div")`${e=>e.$_css}`,px=w("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 gx=window.React,mx=window.React.useEffect,vx=window.React.useState,Oo=gx.forwardRef(({id:e,className:t,checked:n=!1,disabled:i=!1,size:o="sm",onChange:a=()=>!1},s)=>{const[l,c]=vx(!1),d=u=>{u.preventDefault(),u.stopPropagation(),a(!n)};return mx(()=>{const u=()=>{c(!1)};return window.addEventListener("mouseup",u),()=>{window.removeEventListener("mouseup",u)}},[]),r.jsx("button",{id:e,type:"button",className:Re(["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"})})}),ft=window.React,Ti=window.React.useRef,wx=window.React.useMemo,rl=window.React.useEffect,xx=window.React.useState,bx=window.React.useCallback,yx=window.React.useLayoutEffect;function Nl(){return(Nl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Sp(e,t){if(e==null)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)t.indexOf(n=a[i])>=0||(o[n]=e[n]);return o}function P1(e){var t=Ti(e),n=Ti(function(i){t.current&&t.current(i)});return t.current=e,n.current}var No=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},ka=function(e){return"touches"in e},B1=function(e){return e&&e.ownerDocument.defaultView||self},uu=function(e,t,n){var i=e.getBoundingClientRect(),o=ka(t)?function(a,s){for(var l=0;l<a.length;l++)if(a[l].identifier===s)return a[l];return a[0]}(t.touches,n):t;return{left:No((o.pageX-(i.left+B1(e).pageXOffset))/i.width),top:No((o.pageY-(i.top+B1(e).pageYOffset))/i.height)}},fu=function(e){!ka(e)&&e.preventDefault()},Ad=ft.memo(function(e){var t=e.onMove,n=e.onKey,i=Sp(e,["onMove","onKey"]),o=Ti(null),a=P1(t),s=P1(n),l=Ti(null),c=Ti(!1),d=wx(function(){var m=function(x){fu(x),(ka(x)?x.touches.length>0:x.buttons>0)&&o.current?a(uu(o.current,x,l.current)):v(!1)},p=function(){return v(!1)};function v(x){var E=c.current,C=B1(o.current),j=x?C.addEventListener:C.removeEventListener;j(E?"touchmove":"mousemove",m),j(E?"touchend":"mouseup",p)}return[function(x){var E=x.nativeEvent,C=o.current;if(C&&(fu(E),!function(M,T){return T&&!ka(M)}(E,c.current)&&C)){if(ka(E)){c.current=!0;var j=E.changedTouches||[];j.length&&(l.current=j[0].identifier)}C.focus(),a(uu(C,E,l.current)),v(!0)}},function(x){var E=x.which||x.keyCode;E<37||E>40||(x.preventDefault(),s({left:E===39?.05:E===37?-.05:0,top:E===40?.05:E===38?-.05:0}))},v]},[s,a]),u=d[0],f=d[1],h=d[2];return rl(function(){return h},[h]),ft.createElement("div",Nl({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Pl=function(e){return e.filter(Boolean).join(" ")},Rd=function(e){var t=e.color,n=e.left,i=e.top,o=i===void 0?.5:i,a=Pl(["react-colorful__pointer",e.className]);return ft.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},ft.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Dt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Cx=function(e){return kx(V1(e))},V1=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?Dt(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?Dt(parseInt(e.substring(6,8),16)/255,2):1}},_x=function(e){return jx(Sx(e))},jp=function(e){var t=e.s,n=e.v,i=e.a,o=(200-t)*n/100;return{h:Dt(e.h),s:Dt(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Dt(o/2),a:Dt(i,2)}},z1=function(e){var t=jp(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Zc=function(e){var t=jp(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Sx=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:Dt(255*[i,l,s,s,c,i][d]),g:Dt(255*[c,i,i,l,s,s][d]),b:Dt(255*[s,s,c,i,i,l][d]),a:Dt(o,2)}},bs=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},jx=function(e){var t=e.r,n=e.g,i=e.b,o=e.a,a=o<1?bs(Dt(255*o)):"";return"#"+bs(t)+bs(n)+bs(i)+a},kx=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:Dt(60*(l<0?l+6:l)),s:Dt(a?s/a*100:0),v:Dt(a/255*100),a:o}},Ex=ft.memo(function(e){var t=e.hue,n=e.onChange,i=Pl(["react-colorful__hue",e.className]);return ft.createElement("div",{className:i},ft.createElement(Ad,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:No(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Dt(t),"aria-valuemax":"360","aria-valuemin":"0"},ft.createElement(Rd,{className:"react-colorful__hue-pointer",left:t/360,color:z1({h:t,s:100,v:100,a:1})})))}),Dx=ft.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:z1({h:t.h,s:100,v:100,a:1})};return ft.createElement("div",{className:"react-colorful__saturation",style:i},ft.createElement(Ad,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:No(t.s+100*o.left,0,100),v:No(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Dt(t.s)+"%, Brightness "+Dt(t.v)+"%"},ft.createElement(Rd,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:z1(t)})))}),kp=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},$x=function(e,t){return e.toLowerCase()===t.toLowerCase()||kp(V1(e),V1(t))};function Hx(e,t,n){var i=P1(n),o=xx(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=Ti({color:t,hsva:a});rl(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},s(d)}},[t,e]),rl(function(){var d;kp(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=bx(function(d){s(function(u){return Object.assign({},u,d)})},[]);return[a,c]}var Mx=typeof window<"u"?yx:rl,Tx=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},hu=new Map,Ix=function(e){Mx(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!hu.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,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,hu.set(t,n);var i=Tx();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},Lx=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Zc(Object.assign({},n,{a:0}))+", "+Zc(Object.assign({},n,{a:1}))+")"},a=Pl(["react-colorful__alpha",t]),s=Dt(100*n.a);return ft.createElement("div",{className:a},ft.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),ft.createElement(Ad,{onMove:function(l){i({a:l.left})},onKey:function(l){i({a:No(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},ft.createElement(Rd,{className:"react-colorful__alpha-pointer",left:n.a,color:Zc(n)})))},Ax=function(e){var t=e.className,n=e.colorModel,i=e.color,o=i===void 0?n.defaultColor:i,a=e.onChange,s=Sp(e,["className","colorModel","color","onChange"]),l=Ti(null);Ix(l);var c=Hx(n,o,a),d=c[0],u=c[1],f=Pl(["react-colorful",t]);return ft.createElement("div",Nl({},s,{ref:l,className:f}),ft.createElement(Dx,{hsva:d,onChange:u}),ft.createElement(Ex,{hue:d.h,onChange:u}),ft.createElement(Lx,{hsva:d,onChange:u,className:"react-colorful__last-control"}))},Rx={defaultColor:"0001",toHsva:Cx,fromHsva:_x,equal:$x},Ox=function(e){return ft.createElement(Ax,Nl({},e,{colorModel:Rx}))};function Bl(){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 Ep(){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 Nx(){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 Dp(){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 $p(){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 Px(){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 Bx(){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 Hp(){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 Vx(){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 zx=window.React.forwardRef;let Wc,ra;const ht=zx(({onChange:e=()=>!1,type:t="text",className:n="",prefix:i=!1,wrapperStyle:o={},...a},s)=>{const l=h=>{let m=h.target.value;t==="number"&&m!=""&&(m=+m),e(m)},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(ra);function h(){let m=++a.value;e(Math.min(m,a.max??Number.MAX_SAFE_INTEGER))}h(),ra=setTimeout(()=>{Wc=setInterval(()=>{h()},80)},400)},u=()=>{clearTimeout(ra);function h(){let m=--a.value;e(Math.max(m,a.min??Number.MIN_SAFE_INTEGER))}h(),ra=setTimeout(()=>{Wc=setInterval(()=>{h()},80)},400)},f=()=>{clearInterval(Wc),clearTimeout(ra)};return r.jsxs(Fx,{className:Re(["brandy-input group",n]),style:o,ref:s,$_css:[{position:"relative",display:"flex",minHeight:"30px",alignItems:"center",gap:"0.5rem",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",lineHeight:"1","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:focus-within":{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))"},"&:focus":{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},`
          &:hover {
            .brandy-input-access-arrow {
              display: block;
            }
          }
        `],children:[i,r.jsx("input",{className:"w-full bg-inherit p-0 border-0 focus:outline-none focus:border-0 focus:shadow-none",...a,type:t,onChange:l,onBlur:c}),t==="number"&&r.jsxs(r.Fragment,{children:[r.jsx(Zx,{className:"brandy-input-access-arrow",onMouseUp:f,onMouseLeave:f,onMouseDown:d,$_css2:[{position:"absolute",right:"3px",top:"calc(50% - 12px)",display:"none",cursor:"pointer",borderRadius:"3px 3px 0 0",padding:"5px 4px 3px 4px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(241 241 241 / var(--tw-bg-opacity, 1))"}},`
                &:hover {
                  svg path {
                    fill: #5a6d80;
                  }
                }
              `],children:r.jsx("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4L4 3.49691e-07L0 4L8 4Z",fill:"#C6D4E1"})})}),r.jsx(Wx,{className:"brandy-input-access-arrow",onMouseUp:f,onMouseLeave:f,onMouseDown:u,$_css3:[{position:"absolute",right:"3px",top:"calc(50% + 1px)",display:"none",cursor:"pointer",borderRadius:"0 0 3px 3px",padding:"3px 4px 5px 4px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(241 241 241 / var(--tw-bg-opacity, 1))"}},`
                &:hover {
                  svg path {
                    fill: #5a6d80;
                  }
                }
              `],children:r.jsx("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L4 4L8 0L0 0Z",fill:"#C6D4E1"})})})]})]})});var Fx=w("div")`${e=>e.$_css}`,Zx=w("span")`${e=>e.$_css2}`,Wx=w("span").withConfig({displayName:"Input___StyledSpan2",componentId:"sc-aibt7d-0"})(["",""],e=>e.$_css3);function Mp(){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 Tp=()=>{const e=window.brandyCustomizerData.theme_settings.color.palette.theme.map(n=>({...n,color:n.color,value:`var(--wp--preset--color--${n.slug})`})),t=window.brandyCustomizerData.theme_settings.color.palette.default.map(n=>({...n,color:n.color,value:`var(--wp--preset--color--${n.slug})`}));return{theme:e,palette:t}},Od=e=>{if(e==null)return{isGlobal:!1,color:""};const t=Tp(),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 P(e){var t;return(((t=window.brandyCustomizerData)==null?void 0:t.i18n)??{})[e]??e}var Gx="Expected a function",pu=0/0,Ux="[object Symbol]",Yx=/^\s+|\s+$/g,Xx=/^[-+]0x[0-9a-f]+$/i,Jx=/^0b[01]+$/i,Kx=/^0o[0-7]+$/i,qx=parseInt,Qx=typeof ut=="object"&&ut&&ut.Object===Object&&ut,e6=typeof self=="object"&&self&&self.Object===Object&&self,t6=Qx||e6||Function("return this")(),n6=Object.prototype,r6=n6.toString,i6=Math.max,o6=Math.min,Gc=function(){return t6.Date.now()};function a6(e,t,n){var i,o,a,s,l,c,d=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Gx);t=gu(t)||0,F1(n)&&(u=!!n.leading,f="maxWait"in n,a=f?i6(gu(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(_){var b=i,$=o;return i=o=void 0,d=_,s=e.apply($,b),s}function p(_){return d=_,l=setTimeout(E,t),u?m(_):s}function v(_){var b=_-c,$=_-d,B=t-b;return f?o6(B,a-$):B}function x(_){var b=_-c,$=_-d;return c===void 0||b>=t||b<0||f&&$>=a}function E(){var _=Gc();if(x(_))return C(_);l=setTimeout(E,v(_))}function C(_){return l=void 0,h&&i?m(_):(i=o=void 0,s)}function j(){l!==void 0&&clearTimeout(l),d=0,i=c=o=l=void 0}function M(){return l===void 0?s:C(Gc())}function T(){var _=Gc(),b=x(_);if(i=arguments,o=this,c=_,b){if(l===void 0)return p(c);if(f)return l=setTimeout(E,t),m(c)}return l===void 0&&(l=setTimeout(E,t)),s}return T.cancel=j,T.flush=M,T}function F1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function s6(e){return!!e&&typeof e=="object"}function l6(e){return typeof e=="symbol"||s6(e)&&r6.call(e)==Ux}function gu(e){if(typeof e=="number")return e;if(l6(e))return pu;if(F1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=F1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Yx,"");var n=Jx.test(e);return n||Kx.test(e)?qx(e.slice(2),n?2:8):Xx.test(e)?pu:+e}var c6=a6;const Po=bn(c6);function Nd(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 ne=window.React,Yt=window.React.useState,Xt=window.React.useEffect,Wi=window.React.useRef,d6=window.React.memo,mu=window.React.useCallback,vu=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 we=function(){return we=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)};function u6(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&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 It(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 Ip(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(It(arguments[t]));return e}Nd(`.colorpicker {
  background-color: #fff;
  z-index: 1;
}
.colorpicker * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.colorpicker .colorpicker-form {
  display: flex;
}
.colorpicker .colorpicker-form .colorpicker-hex {
  padding-right: 16px;
}
.colorpicker .colorpicker-form .colorpicker-alpha {
  flex-basis: 82px;
}
.colorpicker .color-picker-panel-wrap-has-alpha {
  display: flex;
  height: 36px;
}
.colorpicker-static {
  position: absolute;
  top: 5px;
  left: 0;
}
.colorpicker .color-picker-panel {
  background-color: #fff;
  box-sizing: border-box;
  outline: none;
  z-index: 9;
  padding-bottom: 20px;
  border-radius: 4px;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.colorpicker .color-picker-panel-ribbon {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZjAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjZmY5OTAwIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjIwJSIgc3RvcC1jb2xvcj0iI2NkZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIzMCUiIHN0b3AtY29sb3I9IiMzNWZmMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjMDBmZjY2IiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzAwZmZmZCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiMwMDY2ZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNzAlIiBzdG9wLWNvbG9yPSIjMzIwMGZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2NkMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI5MCUiIHN0b3AtY29sb3I9IiNmZjAwOTkiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);
  background-image: -webkit-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
  background-image: -moz-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
  background-image: -o-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
  background-image: linear-gradient(to right, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
}
.colorpicker .color-picker-panel-ribbon-bg {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZjAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjZmY5OTAwIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjIwJSIgc3RvcC1jb2xvcj0iI2NkZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIzMCUiIHN0b3AtY29sb3I9IiMzNWZmMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjMDBmZjY2IiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzAwZmZmZCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiMwMDY2ZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNzAlIiBzdG9wLWNvbG9yPSIjMzIwMGZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2NkMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI5MCUiIHN0b3AtY29sb3I9IiNmZjAwOTkiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);
  background-image: -webkit-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
  background-image: -moz-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
  background-image: -o-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
  background-image: linear-gradient(to right, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);
}
.colorpicker .color-picker-panel-ribbon-handler {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.colorpicker .color-picker-panel-ribbon span {
  position: absolute;
  top: -3px;
  display: block;
  height: 14px;
  width: 14px;
  padding: 1px 0;
  border-radius: 50%;
  margin-left: -7px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
  border: solid 2px #fff;
  cursor: grab;
}
.colorpicker .color-picker-panel-alpha {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, transparent, black), url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');
  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, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');
  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, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');
  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 f6(e){var t={exports:{}};return e(t,t.exports),t.exports}var it=f6(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(S,A){if(S=S||"",A=A||{},S instanceof d)return S;if(!(this instanceof d))return new d(S,A);var H=u(S);this._originalInput=S,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=A.format||H.format,this._gradientType=A.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=H.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 S=this.toRgb();return(S.r*299+S.g*587+S.b*114)/1e3},getLuminance:function(){var S=this.toRgb(),A,H,Y,J,te,ve;return A=S.r/255,H=S.g/255,Y=S.b/255,A<=.03928?J=A/12.92:J=t.pow((A+.055)/1.055,2.4),H<=.03928?te=H/12.92:te=t.pow((H+.055)/1.055,2.4),Y<=.03928?ve=Y/12.92:ve=t.pow((Y+.055)/1.055,2.4),.2126*J+.7152*te+.0722*ve},setAlpha:function(S){return this._a=O(S),this._roundA=a(100*this._a)/100,this},toHsv:function(){var S=p(this._r,this._g,this._b);return{h:S.h*360,s:S.s,v:S.v,a:this._a}},toHsvString:function(){var S=p(this._r,this._g,this._b),A=a(S.h*360),H=a(S.s*100),Y=a(S.v*100);return this._a==1?"hsv("+A+", "+H+"%, "+Y+"%)":"hsva("+A+", "+H+"%, "+Y+"%, "+this._roundA+")"},toHsl:function(){var S=h(this._r,this._g,this._b);return{h:S.h*360,s:S.s,l:S.l,a:this._a}},toHslString:function(){var S=h(this._r,this._g,this._b),A=a(S.h*360),H=a(S.s*100),Y=a(S.l*100);return this._a==1?"hsl("+A+", "+H+"%, "+Y+"%)":"hsla("+A+", "+H+"%, "+Y+"%, "+this._roundA+")"},toHex:function(S){return x(this._r,this._g,this._b,S)},toHexString:function(S){return"#"+this.toHex(S)},toHex8:function(S){return E(this._r,this._g,this._b,this._a,S)},toHex8String:function(S){return"#"+this.toHex8(S)},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(X(this._r,255)*100)+"%",g:a(X(this._g,255)*100)+"%",b:a(X(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(X(this._r,255)*100)+"%, "+a(X(this._g,255)*100)+"%, "+a(X(this._b,255)*100)+"%)":"rgba("+a(X(this._r,255)*100)+"%, "+a(X(this._g,255)*100)+"%, "+a(X(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:V[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(S){var A="#"+C(this._r,this._g,this._b,this._a),H=A,Y=this._gradientType?"GradientType = 1, ":"";if(S){var J=d(S);H="#"+C(J._r,J._g,J._b,J._a)}return"progid:DXImageTransform.Microsoft.gradient("+Y+"startColorstr="+A+",endColorstr="+H+")"},toString:function(S){var A=!!S;S=S||this._format;var H=!1,Y=this._a<1&&this._a>=0,J=!A&&Y&&(S==="hex"||S==="hex6"||S==="hex3"||S==="hex4"||S==="hex8"||S==="name");return J?S==="name"&&this._a===0?this.toName():this.toRgbString():(S==="rgb"&&(H=this.toRgbString()),S==="prgb"&&(H=this.toPercentageRgbString()),(S==="hex"||S==="hex6")&&(H=this.toHexString()),S==="hex3"&&(H=this.toHexString(!0)),S==="hex4"&&(H=this.toHex8String(!0)),S==="hex8"&&(H=this.toHex8String()),S==="name"&&(H=this.toName()),S==="hsl"&&(H=this.toHslString()),S==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(S,A){var H=S.apply(null,[this].concat([].slice.call(A)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(j,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(S,A){return S.apply(null,[this].concat([].slice.call(A)))},analogous:function(){return this._applyCombination(G,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(I,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},d.fromRatio=function(S,A){if(typeof S=="object"){var H={};for(var Y in S)S.hasOwnProperty(Y)&&(Y==="a"?H[Y]=S[Y]:H[Y]=re(S[Y]));S=H}return d(S,A)};function u(S){var A={r:0,g:0,b:0},H=1,Y=null,J=null,te=null,ve=!1,ue=!1;return typeof S=="string"&&(S=Ye(S)),typeof S=="object"&&(xe(S.r)&&xe(S.g)&&xe(S.b)?(A=f(S.r,S.g,S.b),ve=!0,ue=String(S.r).substr(-1)==="%"?"prgb":"rgb"):xe(S.h)&&xe(S.s)&&xe(S.v)?(Y=re(S.s),J=re(S.v),A=v(S.h,Y,J),ve=!0,ue="hsv"):xe(S.h)&&xe(S.s)&&xe(S.l)&&(Y=re(S.s),te=re(S.l),A=m(S.h,Y,te),ve=!0,ue="hsl"),S.hasOwnProperty("a")&&(H=S.a)),H=O(H),{ok:ve,format:S.format||ue,r:s(255,l(A.r,0)),g:s(255,l(A.g,0)),b:s(255,l(A.b,0)),a:H}}function f(S,A,H){return{r:X(S,255)*255,g:X(A,255)*255,b:X(H,255)*255}}function h(S,A,H){S=X(S,255),A=X(A,255),H=X(H,255);var Y=l(S,A,H),J=s(S,A,H),te,ve,ue=(Y+J)/2;if(Y==J)te=ve=0;else{var Oe=Y-J;switch(ve=ue>.5?Oe/(2-Y-J):Oe/(Y+J),Y){case S:te=(A-H)/Oe+(A<H?6:0);break;case A:te=(H-S)/Oe+2;break;case H:te=(S-A)/Oe+4;break}te/=6}return{h:te,s:ve,l:ue}}function m(S,A,H){var Y,J,te;S=X(S,360),A=X(A,100),H=X(H,100);function ve(Pe,Pt,Ge){return Ge<0&&(Ge+=1),Ge>1&&(Ge-=1),Ge<1/6?Pe+(Pt-Pe)*6*Ge:Ge<1/2?Pt:Ge<2/3?Pe+(Pt-Pe)*(2/3-Ge)*6:Pe}if(A===0)Y=J=te=H;else{var ue=H<.5?H*(1+A):H+A-H*A,Oe=2*H-ue;Y=ve(Oe,ue,S+1/3),J=ve(Oe,ue,S),te=ve(Oe,ue,S-1/3)}return{r:Y*255,g:J*255,b:te*255}}function p(S,A,H){S=X(S,255),A=X(A,255),H=X(H,255);var Y=l(S,A,H),J=s(S,A,H),te,ve,ue=Y,Oe=Y-J;if(ve=Y===0?0:Oe/Y,Y==J)te=0;else{switch(Y){case S:te=(A-H)/Oe+(A<H?6:0);break;case A:te=(H-S)/Oe+2;break;case H:te=(S-A)/Oe+4;break}te/=6}return{h:te,s:ve,v:ue}}function v(S,A,H){S=X(S,360)*6,A=X(A,100),H=X(H,100);var Y=t.floor(S),J=S-Y,te=H*(1-A),ve=H*(1-J*A),ue=H*(1-(1-J)*A),Oe=Y%6,Pe=[H,ve,te,te,ue,H][Oe],Pt=[ue,H,H,ve,te,te][Oe],Ge=[te,te,ue,H,H,ve][Oe];return{r:Pe*255,g:Pt*255,b:Ge*255}}function x(S,A,H,Y){var J=[W(a(S).toString(16)),W(a(A).toString(16)),W(a(H).toString(16))];return Y&&J[0].charAt(0)==J[0].charAt(1)&&J[1].charAt(0)==J[1].charAt(1)&&J[2].charAt(0)==J[2].charAt(1)?J[0].charAt(0)+J[1].charAt(0)+J[2].charAt(0):J.join("")}function E(S,A,H,Y,J){var te=[W(a(S).toString(16)),W(a(A).toString(16)),W(a(H).toString(16)),W(he(Y))];return J&&te[0].charAt(0)==te[0].charAt(1)&&te[1].charAt(0)==te[1].charAt(1)&&te[2].charAt(0)==te[2].charAt(1)&&te[3].charAt(0)==te[3].charAt(1)?te[0].charAt(0)+te[1].charAt(0)+te[2].charAt(0)+te[3].charAt(0):te.join("")}function C(S,A,H,Y){var J=[W(he(Y)),W(a(S).toString(16)),W(a(A).toString(16)),W(a(H).toString(16))];return J.join("")}d.equals=function(S,A){return!S||!A?!1:d(S).toRgbString()==d(A).toRgbString()},d.random=function(){return d.fromRatio({r:c(),g:c(),b:c()})};function j(S,A){A=A===0?0:A||10;var H=d(S).toHsl();return H.s-=A/100,H.s=ee(H.s),d(H)}function M(S,A){A=A===0?0:A||10;var H=d(S).toHsl();return H.s+=A/100,H.s=ee(H.s),d(H)}function T(S){return d(S).desaturate(100)}function _(S,A){A=A===0?0:A||10;var H=d(S).toHsl();return H.l+=A/100,H.l=ee(H.l),d(H)}function b(S,A){A=A===0?0:A||10;var H=d(S).toRgb();return H.r=l(0,s(255,H.r-a(255*-(A/100)))),H.g=l(0,s(255,H.g-a(255*-(A/100)))),H.b=l(0,s(255,H.b-a(255*-(A/100)))),d(H)}function $(S,A){A=A===0?0:A||10;var H=d(S).toHsl();return H.l-=A/100,H.l=ee(H.l),d(H)}function B(S,A){var H=d(S).toHsl(),Y=(H.h+A)%360;return H.h=Y<0?360+Y:Y,d(H)}function y(S){var A=d(S).toHsl();return A.h=(A.h+180)%360,d(A)}function I(S){var A=d(S).toHsl(),H=A.h;return[d(S),d({h:(H+120)%360,s:A.s,l:A.l}),d({h:(H+240)%360,s:A.s,l:A.l})]}function L(S){var A=d(S).toHsl(),H=A.h;return[d(S),d({h:(H+90)%360,s:A.s,l:A.l}),d({h:(H+180)%360,s:A.s,l:A.l}),d({h:(H+270)%360,s:A.s,l:A.l})]}function F(S){var A=d(S).toHsl(),H=A.h;return[d(S),d({h:(H+72)%360,s:A.s,l:A.l}),d({h:(H+216)%360,s:A.s,l:A.l})]}function G(S,A,H){A=A||6,H=H||30;var Y=d(S).toHsl(),J=360/H,te=[d(S)];for(Y.h=(Y.h-(J*A>>1)+720)%360;--A;)Y.h=(Y.h+J)%360,te.push(d(Y));return te}function R(S,A){A=A||6;for(var H=d(S).toHsv(),Y=H.h,J=H.s,te=H.v,ve=[],ue=1/A;A--;)ve.push(d({h:Y,s:J,v:te})),te=(te+ue)%1;return ve}d.mix=function(S,A,H){H=H===0?0:H||50;var Y=d(S).toRgb(),J=d(A).toRgb(),te=H/100,ve={r:(J.r-Y.r)*te+Y.r,g:(J.g-Y.g)*te+Y.g,b:(J.b-Y.b)*te+Y.b,a:(J.a-Y.a)*te+Y.a};return d(ve)},d.readability=function(S,A){var H=d(S),Y=d(A);return(t.max(H.getLuminance(),Y.getLuminance())+.05)/(t.min(H.getLuminance(),Y.getLuminance())+.05)},d.isReadable=function(S,A,H){var Y=d.readability(S,A),J,te;switch(te=!1,J=et(H),J.level+J.size){case"AAsmall":case"AAAlarge":te=Y>=4.5;break;case"AAlarge":te=Y>=3;break;case"AAAsmall":te=Y>=7;break}return te},d.mostReadable=function(S,A,H){var Y=null,J=0,te,ve,ue,Oe;H=H||{},ve=H.includeFallbackColors,ue=H.level,Oe=H.size;for(var Pe=0;Pe<A.length;Pe++)te=d.readability(S,A[Pe]),te>J&&(J=te,Y=d(A[Pe]));return d.isReadable(S,Y,{level:ue,size:Oe})||!ve?Y:(H.includeFallbackColors=!1,d.mostReadable(S,["#fff","#000"],H))};var Z=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"},V=d.hexNames=U(Z);function U(S){var A={};for(var H in S)S.hasOwnProperty(H)&&(A[S[H]]=H);return A}function O(S){return S=parseFloat(S),(isNaN(S)||S<0||S>1)&&(S=1),S}function X(S,A){ae(S)&&(S="100%");var H=ce(S);return S=s(A,l(0,parseFloat(S))),H&&(S=parseInt(S*A,10)/100),t.abs(S-A)<1e-6?1:S%A/parseFloat(A)}function ee(S){return s(1,l(0,S))}function q(S){return parseInt(S,16)}function ae(S){return typeof S=="string"&&S.indexOf(".")!=-1&&parseFloat(S)===1}function ce(S){return typeof S=="string"&&S.indexOf("%")!=-1}function W(S){return S.length==1?"0"+S:""+S}function re(S){return S<=1&&(S=S*100+"%"),S}function he(S){return t.round(parseFloat(S)*255).toString(16)}function de(S){return q(S)/255}var se=function(){var S="[-\\+]?\\d+%?",A="[-\\+]?\\d*\\.\\d+%?",H="(?:"+A+")|(?:"+S+")",Y="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",J="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+Y),rgba:new RegExp("rgba"+J),hsl:new RegExp("hsl"+Y),hsla:new RegExp("hsla"+J),hsv:new RegExp("hsv"+Y),hsva:new RegExp("hsva"+J),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function xe(S){return!!se.CSS_UNIT.exec(S)}function Ye(S){S=S.replace(n,"").replace(i,"").toLowerCase();var A=!1;if(Z[S])S=Z[S],A=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=se.rgb.exec(S))?{r:H[1],g:H[2],b:H[3]}:(H=se.rgba.exec(S))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=se.hsl.exec(S))?{h:H[1],s:H[2],l:H[3]}:(H=se.hsla.exec(S))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=se.hsv.exec(S))?{h:H[1],s:H[2],v:H[3]}:(H=se.hsva.exec(S))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=se.hex8.exec(S))?{r:q(H[1]),g:q(H[2]),b:q(H[3]),a:de(H[4]),format:A?"name":"hex8"}:(H=se.hex6.exec(S))?{r:q(H[1]),g:q(H[2]),b:q(H[3]),format:A?"name":"hex"}:(H=se.hex4.exec(S))?{r:q(H[1]+""+H[1]),g:q(H[2]+""+H[2]),b:q(H[3]+""+H[3]),a:de(H[4]+""+H[4]),format:A?"name":"hex8"}:(H=se.hex3.exec(S))?{r:q(H[1]+""+H[1]),g:q(H[2]+""+H[2]),b:q(H[3]+""+H[3]),format:A?"name":"hex"}:!1}function et(S){var A,H;return S=S||{level:"AA",size:"small"},A=(S.level||"AA").toUpperCase(),H=(S.size||"small").toLowerCase(),A!=="AA"&&A!=="AAA"&&(A="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:A,size:H}}e.exports?e.exports=d:window.tinycolor=d})(Math)}),Z1=function(e){var t={hex:"#ffffff",alpha:100},n=it(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},Lp=function(e,t){var n=It(Yt(e),2),i=n[0],o=n[1];return Xt(function(){var a=setTimeout(function(){o(e)},t);return function(){clearTimeout(a)}},[e,t]),i},h6=[{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"}],Ap=function(e){var t,n,i=it(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=Rp(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=It(e.match(/^(\w+)-gradient\((.*)\)$/i)||[],3),u=d[1],f=d[2];if(!u||!f)return console.warn("Incorrect gradient value"),o;var h=(t=h6.find(function(v){return v.name===c}))===null||t===void 0?void 0:t.angle,m=u==="linear"?"180":"circle at center",p=h||c||m;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,x){var E=[""+v.color,x];return(v.position||v.position===0)&&E.splice(1,0,v.position),E})}}},Ea=function(e,t,n,i){var o=it(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},Hr=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 Ea(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")"),typeof n=="string"&&(a="linear-gradient("+n+", "+t.map(function(s){return Ea(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")");break;case"radial":a="radial-gradient("+n+", "+t.map(function(s){return Ea(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")";break}return a},Za=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})}},Wa=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("")},p6=function(e){return!!Wa(e)},lo=function(e,t){return new RegExp(e.reduce(function(n,i){return n+(typeof i=="string"?i:i.source)},""),t)},g6=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=lo(["(?:",a,"|","(?:rgb|hsl)",s,"|","(?:rgba|hsla)",l,"|",d,")"],""),f=lo([u,"(?:\\s+",c,"(?:\\s+",c,")?)?"],""),h=lo(["(?:",f,o,")*",f],""),m=lo(["(?:(",t,")|",n,"|",i,")"],""),p=lo(["(?:(",m,")",o,")?(",h,")"],e),v=lo(["\\s*(",u,")","(?:\\s+","(",c,"))?","(?:",o,"\\s*)?"],e);return{gradientSearch:p,colorStopSearch:v}},m6=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=we(we({},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=it(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},Rp=function(e){var t=g6(),n,i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/,o=i.exec(e);return o!==null?(n=m6(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},Pd=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=it(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 it(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=it({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=it({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=it({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=it({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=it(we(we({},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=it(we(we({},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=it(we(we({},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}(),v6=200,w6=150,x6=function(e){var t=e.rootPrefixCls,n=e.color,i=e.colorBoardHeight,o=e.onChange,a=e.setChange,s=Wi(),l=function(){a(!1),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",p)},c=function(){a(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",h)};Xt(function(){return function(){l(),c()}},[]);var d=function(_){_.preventDefault();var b=_.buttons;if(b===1){l();var $=_.clientX,B=_.clientY;x({x:$,y:B}),window.addEventListener("mousemove",m),window.addEventListener("mouseup",p)}},u=function(_){if(_.cancelable&&_.preventDefault(),_.touches.length===1){c();var b=_.targetTouches[0].clientX,$=_.targetTouches[0].clientY;x({x:b,y:$}),window.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("touchend",h,{passive:!1})}},f=function(_){_.cancelable&&_.preventDefault();var b=_.targetTouches[0].clientX,$=_.targetTouches[0].clientY;x({x:b,y:$})},h=function(){c()},m=function(_){_.preventDefault();var b=_.clientX,$=_.clientY;x({x:b,y:$})},p=function(_){_.preventDefault();var b=_.clientX,$=_.clientY;x({x:b,y:$}),l()},v=function(){return t+"-board"},x=function(_){var b=s&&s.current.getBoundingClientRect(),$=_.x-b.left,B=_.y-b.top,y=b.width||v6,I=b.height||w6;$=Math.max(0,$),$=Math.min($,y),B=Math.max(0,B),B=Math.min(B,I),n.saturation=$/y,n.brightness=1-B/I,o(n)},E=v(),C={h:n.hue,s:1,v:1},j=new Pd(C).toHexString(),M=n.saturation*100,T=(1-n.brightness)*100;return ne.createElement("div",{className:E,ref:s},ne.createElement("div",{className:E+"-hsv",style:{backgroundColor:j,height:i+"px",minHeight:i+"px"}},ne.createElement("div",{className:E+"-value"}),ne.createElement("div",{className:E+"-saturation"})),ne.createElement("span",{style:{left:"calc("+M+"% - 7px)",top:"calc("+T+"% - 7px)",backgroundColor:n.toHexString()}}),ne.createElement("div",{className:E+"-handler",onMouseDown:d,onTouchStart:u}))},b6=function(e){var t=e.rootPrefixCls,n=e.color,i=e.onChange,o=e.setChange,a=Wi(),s=function(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",u)},l=function(){o(!1),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",m)};Xt(function(){return function(){s(),l()}},[]);var c=function(T){T.preventDefault();var _=T.clientX,b=T.clientY;v({x:_,y:b}),window.addEventListener("mousemove",d),window.addEventListener("mouseup",u)},d=function(T){var _=T.clientX,b=T.clientY;v({x:_,y:b})},u=function(T){var _=T.clientX,b=T.clientY;v({x:_,y:b}),o(!1),s()},f=function(T){if(T.cancelable&&T.preventDefault(),T.touches.length===1){l();var _=T.targetTouches[0].clientX,b=T.targetTouches[0].clientY;v({x:_,y:b}),window.addEventListener("touchmove",h,{passive:!1}),window.addEventListener("touchend",m,{passive:!1})}},h=function(T){T.cancelable&&T.preventDefault();var _=T.targetTouches[0].clientX,b=T.targetTouches[0].clientY;v({x:_,y:b})},m=function(){l()},p=function(){return t+"-ribbon"},v=function(T){var _=a&&a.current.getBoundingClientRect(),b=_.width,$=T.x-_.left;$=Math.max(0,$),$=Math.min($,b);var B=$/b,y=B*360;n.hue=y,i(n)},x={h:n.hue,s:1,v:1},E=new Pd(x).toHexString(),C=p(),j=n.hue,M=j/360*100;return ne.createElement("div",{className:C,ref:a,onMouseDown:c,onTouchStart:f},ne.createElement("div",{className:"color-picker-panel-ribbon-bg"}),ne.createElement("span",{style:{left:M+"%",backgroundColor:E}}),ne.createElement("div",{className:C+"-handler"}))},wu=function(e,t,n,i){return"rgba("+[e,t,n,i/100].join(",")+")"},y6=function(e){var t=e.rootPrefixCls,n=e.color,i=e.alpha,o=e.onChange,a=e.setChange,s=Wi(),l=function(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",f)},c=function(){a(!1),window.removeEventListener("touchmove",m),window.removeEventListener("touchend",p)};Xt(function(){return function(){l(),c()}},[]);var d=function(M){var T=M.clientX,_=M.clientY;E({x:T,y:_}),window.addEventListener("mousemove",u),window.addEventListener("mouseup",f)},u=function(M){var T=M.clientX,_=M.clientY;E({x:T,y:_})},f=function(M){var T=M.clientX,_=M.clientY;E({x:T,y:_}),a(!1),l()},h=function(M){if(M.cancelable&&M.preventDefault(),M.touches.length===1){c();var T=M.targetTouches[0].clientX,_=M.targetTouches[0].clientY;E({x:T,y:_}),window.addEventListener("touchmove",m,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}},m=function(M){M.cancelable&&M.preventDefault();var T=M.targetTouches[0].clientX,_=M.targetTouches[0].clientY;E({x:T,y:_})},p=function(){c()},v=function(){var M=n.red,T=n.green,_=n.blue,b="linear-gradient(to right, "+wu(M,T,_,0)+" , "+wu(M,T,_,100)+")";return b},x=function(){return t+"-alpha"},E=function(M){var T=s&&s.current.getBoundingClientRect(),_=T.width,b=M.x-T.left;b=Math.max(0,b),b=Math.min(b,_);var $=Math.round(b/_*100);o($)},C=function(){var M=n.red,T=n.green,_=n.blue,b=(i||1)/100;return"rgba("+M+", "+T+", "+_+", "+b+")"},j=x();return ne.createElement("div",{className:j,ref:s,onMouseDown:d,onTouchStart:h},ne.createElement("div",{className:j+"-bg",style:{background:v()}}),ne.createElement("span",{style:{left:i+"%",backgroundColor:C()}}),ne.createElement("div",{className:j+"-handler"}))},Op=function(e){var t=e.alpha,n=e.className,i=e.hex,o=e.colorBoardHeight,a=e.showAlpha,s=e.onChange,l=Wi(),c=new Pd(i);c.alpha=t;var d=It(Yt({color:c,alpha:t}),2),u=d[0],f=d[1],h=It(Yt(!1),2),m=h[0],p=h[1];Xt(function(){m||f({color:c,alpha:t})},[i,t]);var v=function(E){p(!0);var C=u.color;C.alpha=E,f({color:C,alpha:E}),s({hex:C.toHexString(),alpha:E})},x=function(E){p(!0);var C=u.alpha;E.alpha=C,f(we(we({},u),{color:E,alpha:E.alpha})),s({hex:E.toHexString(),alpha:E.alpha})};return ne.createElement("div",{ref:l,className:["color-picker-panel",n].join(" "),tabIndex:0},ne.createElement("div",{className:"color-picker-panel-inner"},ne.createElement(x6,{rootPrefixCls:"color-picker-panel",color:u.color,colorBoardHeight:o,onChange:x,setChange:p}),ne.createElement("div",{className:"color-picker-panel-wrap"+(a?" color-picker-panel-wrap-has-alpha":"")},ne.createElement("div",{className:"color-picker-panel-wrap-ribbon"},ne.createElement(b6,{rootPrefixCls:"color-picker-panel",color:u.color,onChange:x,setChange:p})),a&&ne.createElement("div",{className:"color-picker-panel-wrap-alpha"},ne.createElement(y6,{rootPrefixCls:"color-picker-panel",alpha:u.alpha,color:u.color,onChange:v,setChange:p})))))};Nd(`.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 C6=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},_6=function(e){return e?e.substr(0,3).replace(/[^\d]/g,""):""},S6=function(e){return e&&e.substring(0,1)==="#"&&(e=e.substring(1)),e?e.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""},j6=function(e,t){e.key==="Enter"&&t()},k6=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(S6(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(_6(i.target.value))},name:"alpha"};return e.showAlpha===!1?[t]:[t,n]},Np=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=It(Yt({alpha:n,hex:t}),2),u=d[0],f=d[1],h=function(x){var E=C6(x);f(we(we({},u),{alpha:Number(E)}))},m=function(x){f(we(we({},u),{hex:x}))},p=function(){var x=it(u.hex[0]==="#"?u.hex:"#"+u.hex);x.setAlpha(Number(u.alpha)/100),x&&(u.alpha!==n||u.hex!==t)?(l({hex:u.hex[0]==="#"?u.hex:"#"+u.hex,alpha:Number(u.alpha)}),c&&c(Ea(x.toRgbString(),o,s,u.alpha))):(f({hex:t,alpha:n}),l({hex:t,alpha:n}))};Xt(function(){f({hex:t,alpha:n})},[t,n]);var v={alphaValue:u.alpha,hexValue:u.hex.replace(/#/i,""),onChangeAlpha:h,onChangeHex:m,showAlpha:s};return ne.createElement("div",{className:"input_rgba"},ne.createElement("div",{className:"input_rgba-wrap"},k6(v).map(function(x,E){var C=x.wrapClass,j=x.labelSymbol,M=x.idInput,T=x.valueInput,_=x.labelText,b=x.labelArea,$=x.labelClass,B=x.onChangeInput,y=x.name;return ne.createElement("div",{className:C,key:E},j&&ne.createElement("label",{htmlFor:"rgba-hex",className:"input_rgba-hex-label"},"#"),y==="alpha"&&ne.createElement("label",{htmlFor:M,className:"input_rgba-alpha-label"},"%"),ne.createElement("input",{type:"text",id:M,value:T,"aria-label":b,onChange:function(I){return B(I)},onBlur:p,onKeyPress:function(I){return j6(I,p)}}),ne.createElement("div",{className:$},_))})))},E6=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,f=u===void 0?!0:u,h=Wi(),m=It(Yt(!1),2),p=m[0],v=m[1],x=It(Yt(!1),2),E=x[0],C=x[1],j=t.stops,M=t.type,T=t.modifier,_=function(V){if(a(!1),V.stopPropagation(),!!f){var U=V.target;if(U.className!=="gradient-marker"){var O=U.getBoundingClientRect(),X=V.clientX-O.left,ee=Number((100/O.width*X).toFixed(0))/100,q=it(i.hex);q.setAlpha(i.alpha/100);var ae=Ip(t.stops,[[q.toRgbString(),ee,t.stops.length]]).sort(function(ce,W){return ce[1]-W[1]}).map(function(ce,W){return ce[2]=W,ce});n(we(we({},t),{gradient:""+Hr(M,ae,T,l,d),stops:ae})),o(we(we({},i),{loc:ee,index:ae.find(function(ce){return ce[1]===ee})[2]}))}}},b=function(){window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",I)},$=function(){window.removeEventListener("touchmove",F),window.removeEventListener("touchend",G)},B=function(V,U){if(V.preventDefault(),V.stopPropagation(),V.nativeEvent.stopImmediatePropagation(),V.detail!==2&&(a(!1),V.button===0)){var O=it(U[0]);o({hex:"#"+O.toHex(),alpha:O.getAlpha()*100,loc:U[1],index:U[2]});var X=V.clientX,ee=V.clientY;R({x:X,y:ee}),window.addEventListener("mousemove",y),window.addEventListener("mouseup",I)}},y=function(V){var U,O=V.clientX,X=V.clientY,ee=(U=h==null?void 0:h.current)===null||U===void 0?void 0:U.getBoundingClientRect(),q=X-ee.y;if(q>80&&j.length>2){C(!0);return}else C(!1);R({x:O,y:X})},I=function(V){var U,O=V.clientX,X=V.clientY,ee=(U=h==null?void 0:h.current)===null||U===void 0?void 0:U.getBoundingClientRect(),q=X-ee.y;q>80&&j.length>2&&v(!0),R({x:O,y:X}),b()},L=function(V,U){if(a(!1),V.cancelable&&V.preventDefault(),V.touches.length===1){$();var O=it(U[0]);o({hex:"#"+O.toHex(),alpha:O.getAlpha()*100,loc:U[1],index:U[2]});var X=V.targetTouches[0].clientX,ee=V.targetTouches[0].clientY;R({x:X,y:ee}),window.addEventListener("touchmove",F,{passive:!1}),window.addEventListener("touchend",G,{passive:!1})}},F=function(V){var U;V.cancelable&&V.preventDefault();var O=V.targetTouches[0].clientX,X=V.targetTouches[0].clientY,ee=(U=h==null?void 0:h.current)===null||U===void 0?void 0:U.getBoundingClientRect(),q=X-ee.y;if(q>80&&j.length>2){C(!0);return}else C(!1);R({x:O,y:X})},G=function(){$()},R=function(V){var U=h&&h.current.getBoundingClientRect(),O=U.width,X=V.x-U.left;X=Math.max(0,X),X=Math.min(X,O);var ee=Number((100/U.width*X).toFixed(0))/100;o(function(q){return we(we({},q),{loc:ee})})},Z=function(){if(!(j.length<=2)){var V=j.filter(function(q){return q[2]!==i.index}).map(function(q,ae){return q[2]=ae,q}),U=Za(V[V.length-1][0]),O=V[V.length-1][1],X=Wa([U[0],U[1],U[2]]),ee=V[V.length-1][2];return v(!1),C(!1),o({hex:X,alpha:Number(Math.round(U[3]*100)),loc:O,index:ee}),n(we(we({},t),{gradient:""+Hr(M,V,T,l,d),stops:V}))}};return Xt(function(){if(p)return Z();var V=j.map(function(U){return i.index===U[2]?[U[0],i.loc,U[2]]:U});n(we(we({},t),{gradient:""+Hr(M,V,T,l,d),stops:V}))},[i.loc,p]),Xt(function(){return function(){b(),$()}},[]),ne.createElement("div",{className:"gradient-stops",onClick:function(V){return _(V)},ref:h},ne.createElement("div",{className:"gradient-stop-preview",style:{background:"linear-gradient(to right, "+j.map(function(V){return V[0]+" "+V[1]*100+"%"}).join(", ")+")"}}),ne.createElement("div",{className:"gradient-stop-marker"},j.map(function(V){var U=V[1]*100,O=V[0];return ne.createElement("div",{key:O+U+Math.random()*100,className:"gradient-marker"+(E&&i.index===V[2]?" hide":"")+(!E&&i.index===V[2]?" active":""),style:{left:Math.abs(Math.min(U,100))+"%",color:O},onTouchStart:function(X){return L(X,V)},onMouseDown:function(X){return B(X,V)},onClick:function(X){return X.stopPropagation()},onDoubleClick:Z})})))},D6=function(e){var t="solid",n=it(e).isValid();if(e){if(e==="transparent"||n&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient"))return t="solid",t;var i=Za(e);if(i){if(p6([i[0],i[1],i[2]]))return t="solid",t}else return t="gradient",t}return t},xu=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=Ip(new Set(e));switch(t){case"solid":return n.filter(function(i,o){var a=it(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=Rp(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[]}},Pp=function(e,t){if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Pp(e[n],t[n]))return!1;return!0}else return e===t},$6=function(e,t){var n,i,o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;try{for(var s=u6(o),l=s.next();!l.done;l=s.next()){var c=l.value;if(e[c]!==t[c])return!1}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return!0},H6=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#607d8b","#EB144C","#F78DA7","#ba68c8","#9900EF","linear-gradient(0deg, rgb(255, 177, 153) 0%, rgb(255, 8, 68) 100%)","linear-gradient(270deg, rgb(251, 171, 126) 8.00%, rgb(247, 206, 104) 92.00%)","linear-gradient(315deg, rgb(150, 230, 161) 8.00%, rgb(212, 252, 121) 92.00%)","linear-gradient(to left, rgb(249, 240, 71) 0%, rgb(15, 216, 80) 100%)","linear-gradient(315deg, rgb(194, 233, 251) 8.00%, rgb(161, 196, 253) 92.00%)","linear-gradient(0deg, rgb(0, 198, 251) 0%, rgb(0, 91, 234) 100%)","linear-gradient(0deg, rgb(167, 166, 203) 0%, rgb(137, 137, 186) 51.00%, rgb(137, 137, 186) 100%)","linear-gradient(0deg, rgb(80, 82, 133) 0%, rgb(88, 94, 146) 15.0%, rgb(101, 104, 159) 28.00%, rgb(116, 116, 176) 43.00%, rgb(126, 126, 187) 57.00%, rgb(131, 137, 199) 71.00%, rgb(151, 149, 212) 82.00%, rgb(162, 161, 220) 92.00%, rgb(181, 174, 228) 100%)","linear-gradient(270deg, rgb(255, 126, 179) 0%, rgb(255, 117, 140) 100%)","linear-gradient(90deg, rgb(120, 115, 245) 0%, rgb(236, 119, 171) 100%)","linear-gradient(45deg, #2e266f 0.00%, #9664dd38 100.00%)","radial-gradient(circle at center, yellow 0%, #009966 50%, purple 100%)"],bu=[{pos:"tl",css:"circle at left top",active:!1},{pos:"tm",css:"circle at center top",active:!1},{pos:"tr",css:"circle at right top",active:!1},{pos:"l",css:"circle at left",active:!1},{pos:"m",css:"circle at center",active:!0},{pos:"r",css:"circle at right",active:!1},{pos:"bl",css:"circle at left bottom",active:!1},{pos:"bm",css:"circle at center bottom",active:!1},{pos:"br",css:"circle at right bottom",active:!1}],M6=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.showGradientResult,f=u===void 0?!0:u,h=e.showGradientStops,m=h===void 0?!0:h,p=e.showGradientMode,v=p===void 0?!0:p,x=e.showGradientAngle,E=x===void 0?!0:x,C=e.showGradientPosition,j=C===void 0?!0:C,M=e.allowAddGradientStops,T=M===void 0?!0:M,_=Wi(),b=t.stops,$=t.gradient,B=t.type,y=t.modifier,I=It(Yt(bu),2),L=I[0],F=I[1],G=function(){switch(a(!1),B){case"linear":{var W=L.find(function(re){return re.active});n(we(we({},t),{modifier:(W==null?void 0:W.css)||y,gradient:""+Hr("radial",b,(W==null?void 0:W.css)||y,l,d),type:"radial"}));break}case"radial":{n(we(we({},t),{gradient:""+Hr("linear",b,180,l,d),type:"linear"}));break}}},R=function(W){a(!1);var re=W.target,he=re.getAttribute("data-pos"),de=L.map(function(xe){return xe.pos===he?we(we({},xe),{active:!0}):we(we({},xe),{active:!1})});F(de);var se=de.find(function(xe){return xe.active});n(we(we({},t),{modifier:(se==null?void 0:se.css)||y,gradient:""+Hr("radial",b,(se==null?void 0:se.css)||y,l,d)}))},Z=function(){window.removeEventListener("mousemove",O),window.removeEventListener("mouseup",X)},V=function(){window.removeEventListener("touchmove",q),window.removeEventListener("touchend",ae)},U=function(W){if(W.preventDefault(),a(!1),W.button===0){var re=W.clientX,he=W.clientY,de=W.shiftKey,se=W.ctrlKey*2;W.target.className!=="gradient-mode"&&B==="linear"&&(ce({x:re,y:he,shiftKey:de,ctrlKey:se}),window.addEventListener("mousemove",O),window.addEventListener("mouseup",X))}},O=function(W){var re=W.clientX,he=W.clientY,de=W.shiftKey,se=W.ctrlKey*2;ce({x:re,y:he,shiftKey:de,ctrlKey:se})},X=function(W){var re=W.clientX,he=W.clientY,de=W.shiftKey,se=W.ctrlKey*2;ce({x:re,y:he,shiftKey:de,ctrlKey:se}),Z()},ee=function(W){if(a(!1),W.cancelable&&W.preventDefault(),W.touches.length===1){V();var re=W.targetTouches[0].clientX,he=W.targetTouches[0].clientY,de=!1,se=0;ce({x:re,y:he,shiftKey:de,ctrlKey:se}),window.addEventListener("touchmove",q,{passive:!1}),window.addEventListener("touchend",ae,{passive:!1})}},q=function(W){W.cancelable&&W.preventDefault();var re=W.targetTouches[0].clientX,he=W.targetTouches[0].clientY,de=!1,se=0;ce({x:re,y:he,shiftKey:de,ctrlKey:se})},ae=function(){V()},ce=function(W){var re=_&&_.current.getBoundingClientRect(),he=re.left+re.width/2,de=re.top+re.height/2,se=Math.atan2(W.x-he,W.y-de)-Math.PI,xe=Math.abs(se*180/Math.PI),Ye=[1,2,4][Number(W.shiftKey||W.ctrlKey)],et=xe-xe%(45/Ye);n(we(we({},t),{gradient:""+Hr(B,b,et,l,d),modifier:et}))};return Xt(function(){return function(){Z(),V()}},[]),Xt(function(){if(B==="radial"){var W=L.find(function(re){return re.css===y});n(we(we({},t),{modifier:(W==null?void 0:W.css)||y,gradient:""+Hr("radial",b,(W==null?void 0:W.css)||y,l,d)})),F(bu.map(function(re){return re.css===y?we(we({},re),{active:!0}):we(we({},re),{active:!1})}))}},[y]),ne.createElement("div",{className:"gradient-interaction"},f&&ne.createElement("div",{className:"gradient-result",onMouseDown:E?U:void 0,onTouchStart:E?ee:void 0,style:{background:$}},v&&ne.createElement("div",{"data-mode":B,className:"gradient-mode",onClick:function(){return G()}}),E&&ne.createElement("div",{className:"gradient-angle",ref:_,style:{visibility:B==="linear"?"visible":"hidden"}},ne.createElement("div",{style:{transform:"rotate("+(typeof y=="number"?y-90+"deg":y)+")"}})),j&&ne.createElement("div",{className:"gradient-pos",style:{opacity:B==="radial"?"1":"0",visibility:B==="radial"?"visible":"hidden"}},L.map(function(W){return ne.createElement("div",{key:W.pos,"data-pos":W.pos,className:W.active?"gradient-active":"",onClick:function(re){return R(re)}})}))),m&&ne.createElement(E6,{color:t,setColor:n,activeColor:i,setActiveColor:o,setInit:a,format:l,showAlpha:d,allowAddGradientStops:T}))},T6=function(e,t){return!!(Pp(e.color.stops,t.color.stops)&&e.color.modifier===t.color.modifier&&e.color.type===t.color.type&&$6(e.activeColor,t.activeColor))},I6=d6(M6,T6),Bp=function(e){var t=e.defaultColors,n=t===void 0?[]:t,i=e.setColor,o=e.setActiveColor,a=e.setInit,s=e.colorType,l=It(Yt(-1),2),c=l[0],d=l[1],u=It(Yt([]),2),f=u[0],h=u[1];Xt(function(){h(s==="gradient"?xu(n,"grad").map(function(p){return Ap(p)}):xu(n,"solid"))},[]);var m=function(p,v){if(v!==c)if(s==="gradient"&&typeof p!="string"){var x=p.stops,E=Za(x[x.length-1][0]),C=x[x.length-1][1],j=Wa([E[0],E[1],E[2]]),M=x[x.length-1][2];a(!1),i(p),o&&o({hex:j,alpha:Number(Math.round(E[3]*100)),loc:C,index:M}),d(v)}else s!=="gradient"&&typeof p=="string"&&(a(!1),i(Z1(p)),d(v))};return!Array.isArray(n)||!n.length?null:ne.createElement("div",{className:"default-color-panel"},f.map(function(p,v){switch(s){case"gradient":if(typeof p!="string"){var x=p.gradient;return ne.createElement("div",{onClick:function(){return m(p,v)},key:p.gradient+v,className:"default-color-panel_item"+(c===v?" default-color-panel_item-active":""),style:{background:x}},ne.createElement("div",{className:"item_qub"}))}else return null;case"solid":return typeof p=="string"?ne.createElement("div",{onClick:function(){return m(p,v)},key:p+v,className:"default-color-panel_item"+(c===v?" default-color-panel_item-active":""),style:{background:p,boxShadow:c===v?p+" 0px 0px 4px":"none"}},ne.createElement("div",{className:"item_qub"})):null;default:return null}}))},yu=function(e){var t=e.value,n=t===void 0?"#ffffff":t,i=e.onChange,o=i===void 0?function(){return{}}:i,a=e.format,s=a===void 0?"rgb":a,l=e.debounceMS,c=l===void 0?300:l,d=e.debounce,u=d===void 0?!0:d,f=e.showAlpha,h=f===void 0?!0:f,m=e.showInputs,p=m===void 0?!0:m,v=e.showGradientResult,x=v===void 0?!0:v,E=e.showGradientStops,C=E===void 0?!0:E,j=e.showGradientMode,M=j===void 0?!0:j,T=e.showGradientAngle,_=T===void 0?!0:T,b=e.showGradientPosition,$=b===void 0?!0:b,B=e.allowAddGradientStops,y=B===void 0?!0:B,I=e.colorBoardHeight,L=I===void 0?120:I,F=e.defaultColors,G=mu(function(){return Ap(n)},[n]),R=G(),Z=R.stops,V=Za(Z[Z.length-1][0]),U=Z[Z.length-1][1],O=Wa([V[0],V[1],V[2]]),X=Z[Z.length-1][2],ee=It(Yt(!0),2),q=ee[0],ae=ee[1],ce=It(Yt({hex:O,alpha:Number(Math.round(V[3]*100)),loc:U,index:X}),2),W=ce[0],re=ce[1],he=It(Yt(R),2),de=he[0],se=he[1],xe=Lp(de,c);Xt(function(){if(u&&xe&&q===!1){if(xe.gradient===R.gradient)return;o&&o(xe.gradient)}else if(q===!1){if(xe.gradient===R.gradient)return;o&&o(xe.gradient)}},[xe]),Xt(function(){se(R);var S=R.stops.find(function(H){return H[2]===W.index});if(S){var A=it(String(S[0]));"#"+A.toHex()!==W.hex&&re(we(we({},W),{hex:"#"+A.toHex(),alpha:A.getAlpha()*100}))}},[n]);var Ye=mu(function(S){ae(!1),re(we(we({},W),{hex:S.hex,alpha:Number(Math.round(S.alpha))}));var A=de.stops,H=de.type,Y=de.modifier,J=it(S.hex);J.setAlpha(S.alpha/100);var te=A.map(function(ve){return ve[1]===W.loc?[J.toRgbString(),ve[1],ve[2]]:ve});se(we(we({},de),{gradient:""+Hr(H,te,Y,s,h),stops:te}))},[W,de]),et=function(S){var A=Za(S),H=Wa([A[0],A[1],A[2]]);Ye({hex:H,alpha:A[3]*100})};return ne.createElement("div",{className:"colorpicker"},ne.createElement(Op,{hex:W.hex,alpha:W.alpha,showAlpha:h,onChange:Ye,colorBoardHeight:L}),p&&ne.createElement(Np,{hex:W.hex,alpha:W.alpha,showAlpha:h,onChange:function(S){return re(function(A){return we(we({},A),{hex:S.hex,alpha:S.alpha})})},onSubmitChange:et}),ne.createElement(I6,{color:de,setColor:se,activeColor:W,setActiveColor:re,setInit:ae,format:s,showAlpha:h,showGradientResult:x,showGradientStops:C,showGradientMode:M,showGradientAngle:_,showGradientPosition:$,allowAddGradientStops:y}),ne.createElement(Bp,{defaultColors:F,setColor:se,setActiveColor:re,setInit:ae,colorType:"gradient"}))},Cu=function(e){var t=e.value,n=t===void 0?"#ffffff":t,i=e.onChange,o=i===void 0?function(){return{}}:i,a=e.format,s=a===void 0?"rgb":a,l=e.debounceMS,c=l===void 0?300:l,d=e.debounce,u=d===void 0?!0:d,f=e.showAlpha,h=f===void 0?!0:f,m=e.showInputs,p=m===void 0?!0:m,v=e.colorBoardHeight,x=v===void 0?120:v,E=e.defaultColors,C=Wi(null),j=It(Yt(!0),2),M=j[0],T=j[1],_=It(Yt(Z1(n)),2),b=_[0],$=_[1],B=Lp(b,c);Xt(function(){if(u&&B&&M===!1){n==="transparent"&&b.alpha===0&&(b.alpha=100);var I=it(b.hex);if(I.setAlpha(b.alpha/100),it(I).toRgbString()===it(n).toRgbString())return;o(Ea(I.toRgbString(),s,h,B.alpha))}},[B]),Xt(function(){$(Z1(n))},[n]);var y=function(I){T(!1),$({hex:I.hex,alpha:Math.round(I.alpha)})};return ne.createElement("div",{ref:C,className:"colorpicker"},ne.createElement(Op,{hex:b.hex,alpha:b.alpha,colorBoardHeight:x,showAlpha:h,onChange:y}),p&&ne.createElement(Np,{hex:b.hex,alpha:b.alpha,format:s,showAlpha:h,onChange:$,onSubmitChange:o}),ne.createElement(Bp,{defaultColors:E,setColor:$,setInit:T,colorType:"solid"}))};Nd(`.popup_tabs {
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}
.popup_tabs-header {
  width: 100%;
  height: 49px;
  box-shadow: inset 0 2px 6px 0 rgba(0, 0, 0, 0.04);
  background-color: #f6f7f9;
  display: flex;
  border-radius: 6px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  overflow: hidden;
}
.popup_tabs-header .popup_tabs-header-label {
  width: 100%;
  height: 49px;
  font-size: 14px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0.5px;
  text-align: center;
  color: #929fb7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: uppercase;
}
.popup_tabs-header .popup_tabs-header-label-active {
  background-color: #ffffff;
  cursor: default;
  color: #312e55;
}
.popup_tabs-body {
  padding: 16px;
}`);var _u=function(e){var t=e.children,n=e.activeTab,i=e.popupWidth,o=ne.Children.map(t,function(a){return ne.cloneElement(a,{activeTab:n})});return ne.createElement("div",{className:"popup_tabs",style:{width:i+"px"}},o)},Su=function(e){var t=e.children,n=e.activeTab,i=e.tabName,o=e.onClick;return ne.createElement("div",{className:"popup_tabs-header-label"+(n===i?" popup_tabs-header-label-active":""),onClick:o},t)},L6=function(e){var t=e.children,n=e.activeTab,i=ne.Children.map(t,function(o){return ne.cloneElement(o,{activeTab:n})});return ne.createElement("div",{className:"popup_tabs-header"},i)},ju=function(e){var t=e.children,n=e.activeTab,i=ne.Children.map(t,function(o){return ne.cloneElement(o,{activeTab:n})});return ne.createElement("div",{className:"popup_tabs-body"},i)},ku=function(e){var t=e.children,n=e.activeTab,i=e.tabName;return n===i?ne.createElement("div",{className:"popup_tabs-body-item"},t):null},A6=function(e){var t=e.value,n=t===void 0?"#ffffff":t,i=e.format,o=i===void 0?"rgb":i,a=e.gradient,s=a===void 0?!1:a,l=e.solid,c=l===void 0?!0:l,d=e.debounceMS,u=d===void 0?300:d,f=e.debounce,h=f===void 0?!0:f,m=e.showAlpha,p=m===void 0?!0:m,v=e.showInputs,x=v===void 0?!0:v,E=e.showGradientResult,C=E===void 0?!0:E,j=e.showGradientStops,M=j===void 0?!0:j,T=e.showGradientMode,_=T===void 0?!0:T,b=e.showGradientAngle,$=b===void 0?!0:b,B=e.showGradientPosition,y=B===void 0?!0:B,I=e.allowAddGradientStops,L=I===void 0?!0:I,F=e.popupWidth,G=F===void 0?267:F,R=e.colorBoardHeight,Z=R===void 0?120:R,V=e.defaultColors,U=V===void 0?H6:V,O=e.defaultActiveTab,X=e.onChangeTabs,ee=e.onChange,q=ee===void 0?function(){return{}}:ee,ae=It(Yt(O||D6(n)),2),ce=ae[0],W=ae[1],re=function(se){q(se)},he=function(se){q(se)},de=function(se){W(se),typeof X=="function"&&X&&X(se)};return c&&s?ne.createElement(_u,{activeTab:ce,popupWidth:G},ne.createElement(L6,null,ne.createElement(Su,{tabName:"solid",onClick:function(){return de("solid")}},"Solid"),ne.createElement(Su,{tabName:"gradient",onClick:function(){return de("gradient")}},"Gradient")),ne.createElement(ju,null,ne.createElement(ku,{tabName:"solid"},ne.createElement(Cu,{onChange:re,value:n,format:o,defaultColors:U,debounceMS:u,debounce:h,showAlpha:p,showInputs:x,colorBoardHeight:Z})),ne.createElement(ku,{tabName:"gradient"},ne.createElement(yu,{onChange:he,value:n,format:o,defaultColors:U,debounceMS:u,debounce:h,showAlpha:p,showInputs:x,showGradientResult:C,showGradientStops:M,showGradientMode:_,showGradientAngle:$,showGradientPosition:y,allowAddGradientStops:L,colorBoardHeight:Z})))):ne.createElement(ne.Fragment,null,c||s?ne.createElement(_u,{popupWidth:G},ne.createElement(ju,null,c?ne.createElement(Cu,{onChange:re,value:n,format:o,defaultColors:U,debounceMS:u,debounce:h,showAlpha:p,showInputs:x,colorBoardHeight:Z}):ne.createElement(vu,null),s?ne.createElement(yu,{onChange:he,value:n,format:o,defaultColors:U,debounceMS:u,debounce:h,showAlpha:p,showInputs:x,showGradientResult:C,showGradientStops:M,showGradientMode:_,showGradientAngle:$,showGradientPosition:y,allowAddGradientStops:L,colorBoardHeight:Z}):ne.createElement(vu,null))):null)};const R6=window.brandyCustomizerData.theme_settings.color.gradients.default.map(e=>e.gradient);function Vp({value:e,onChange:t}){const n=Po(i=>{t(i)},0);return r.jsx("div",{className:"brandy-gradient-picker",children:r.jsx(A6,{value:e,onChange:n,gradient:!0,solid:!1,defaultColors:R6})})}function Bd(){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 O6=window.React.useEffect,bo=window.React.useMemo,ys=window.React.useState,N6=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"}];function Ct({color:e,onChange:t=()=>!1,hideGlobals:n=!1,usingGradient:i=!1}){const[o,a]=ys(null),[s,l]=ys(null),{styles:c,attributes:d}=fr(o,s),[u,f]=ys(!1),h=()=>{f(M=>!M)},m=()=>{f(!1)},p=bo(()=>Od(e),[e]),[v,x]=ys(e!=null&&e.includes("gradient")?"gradient":"solid");O6(()=>{const M=T=>{o==null&&s==null&&m(),!(s!=null&&s.contains(T.target))&&!(o!=null&&o.contains(T.target))&&m()};return window.jQuery(document).on("click","body",M),()=>{window.jQuery(document).off("click","body",M)}},[o,s]);const E=bo(()=>p.color==""||p.color.endsWith("00")&&p.color.length>7,[p]),C=bo(()=>p.color=="",[p]),j=bo(()=>p.isGlobal,[p]);return r.jsxs(B6,{className:"brandy-color-picker",children:[r.jsxs(V6,{className:"brandy-color-preview",style:{background:p.color||"transparent"},ref:a,onClick:h,$_css2:[{display:"flex",height:"30px",width:"30px",alignItems:"center",justifyContent:"center"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#1e1e1e"}},{cursor:"pointer",borderRadius:"9999px"},{transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},u&&{outlineColor:"#1e1e1e"},E&&me(["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(z6,{className:"[&_svg]:fill-[#A1ABB7]",children:C?r.jsx(Bd,{}):r.jsx($p,{})}),j&&r.jsx(F6,{children:r.jsx(Mp,{})})]}),u&&r.jsxs(Z6,{ref:l,className:"color-picker-popup",style:c.popper,...d.popper,$_css3:[{position:"absolute",right:"0px",marginTop:"0.5rem",marginBottom:"0.5rem",width:"250px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{zIndex:"99999999"},{borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},{cursor:"auto"},{"--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{display:"flex",flexDirection:"column",overflow:"hidden"}],children:[i&&r.jsx(W6,{children:r.jsx(vn,{options:N6,selected:v??"solid",onChange:M=>{x(M)}})}),i&&v==="gradient"?r.jsx(Vp,{value:e??"",onChange:t}):r.jsx(zp,{color:e,onChange:t,hideGlobals:n})]})]})}const Uc=me([""," &.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:"#3858e9"}),P6="#ffffff00",zp=({color:e,onChange:t=()=>!1,hideGlobals:n=!1})=>{const i=bo(()=>Tp(),[]),o=bo(()=>Od(e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(G6,{children:r.jsx(Ox,{color:o.color||P6,onChange:a=>{o.color==""||o.color==null||o.color.endsWith("00")&&o.color.length>7?t(a.slice(0,-2)+"ff"):t(a)}})}),r.jsx(U6,{children:r.jsx(Y6,{value:o.color||"",onChange:t})}),!n&&r.jsxs("div",{children:[r.jsx(X6,{children:P("Theme colors")}),r.jsx(J6,{children:i.theme.map((a,s)=>r.jsx(St,{title:a.name,children:r.jsx(K6,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css4:[Uc]})},s))}),r.jsx(q6,{children:P("Palette colors")}),r.jsxs(Q6,{children:[i.palette.map((a,s)=>r.jsx(St,{title:a.name,style:{textTransform:"capitalize"},children:r.jsx(e9,{className:`dashicons ${a.value===e?"selected":""} global-block`,style:{background:a.color},onClick:()=>{t(a.value)},$_css5:[Uc]})},s)),r.jsx(t9,{className:`dashicons ${o.color==""?"selected":""} global-block transparent-block`,onClick:()=>{t("")},$_css6:[Uc]})]})]})]})};var B6=w("div")({position:"relative"}),V6=w("div")`${e=>e.$_css2}`,z6=w("span")({position:"relative",display:"inline-block"}),F6=w("span")({position:"relative",display:"inline-block","& svg":{height:"16px",width:"16px",borderRadius:"50%",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(214 214 215 / var(--tw-border-opacity, 1))"},"& svg *[fill]":{fill:"#fff"}}),Z6=w("div")`${e=>e.$_css3}`,W6=w("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"}),G6=w("div")({padding:"1rem",">.react-colorful":{width:"100%"}}),U6=w("div")({borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),Y6=w(ht)({width:"100%"}),X6=w("div")({marginLeft:"1rem",marginRight:"1rem",marginTop:"1rem",fontWeight:"500"}),J6=w("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),K6=w("div")`${e=>e.$_css4}`,q6=w("div")({marginLeft:"1rem",marginRight:"1rem",fontWeight:"500"}),Q6=w("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),e9=w("div")`${e=>e.$_css5}`,t9=w("div").withConfig({displayName:"ColorPicker___StyledDiv11",componentId:"sc-g829wk-0"})(["",""],e=>e.$_css6);function ni(e){"@babel/helpers - typeof";return ni=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},ni(e)}function n9(e,t){if(ni(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(ni(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r9(e){var t=n9(e,"string");return ni(t)=="symbol"?t:t+""}function Yn(e,t,n){return(t=r9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(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 Nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eu(Object(n),!0).forEach(function(i){Yn(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function W1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function i9(e){if(Array.isArray(e))return W1(e)}function o9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fp(e,t){if(e){if(typeof e=="string")return W1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W1(e,t):void 0}}function a9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qr(e){return i9(e)||o9(e)||Fp(e)||a9()}function s9(e){if(Array.isArray(e))return e}function l9(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,a,s,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,o=u}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return l}}function c9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ln(e,t){return s9(e)||l9(e,t)||Fp(e,t)||c9()}const Du=window.React;function G1(e){var t=Du.useRef();t.current=e;var n=Du.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=t.current)===null||i===void 0?void 0:i.call.apply(i,[t].concat(a))},[]);return n}function d9(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const U1=window.React;var $u=d9()?U1.useLayoutEffect:U1.useEffect,u9=function(t,n){var i=U1.useRef(!0);$u(function(){return t(i.current)},n),$u(function(){return i.current=!1,function(){i.current=!0}},[])},Hu=function(t,n){u9(function(i){if(!i)return t()},n)};const Yc=window.React;function Mu(e){var t=Yc.useRef(!1),n=Yc.useState(e),i=ln(n,2),o=i[0],a=i[1];Yc.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(l,c){c&&t.current||a(l)}return[o,s]}function Xc(e){return e!==void 0}function f9(e,t){var n=t||{},i=n.defaultValue,o=n.value,a=n.onChange,s=n.postState,l=Mu(function(){return Xc(o)?o:Xc(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),c=ln(l,2),d=c[0],u=c[1],f=o!==void 0?o:d,h=s?s(f):f,m=G1(a),p=Mu([f]),v=ln(p,2),x=v[0],E=v[1];Hu(function(){var j=x[0];d!==j&&m(d,j)},[x]),Hu(function(){Xc(o)||u(o)},[o]);var C=G1(function(j,M){u(j,M),E([f],M)});return[h,C]}var Y1={},h9=function(t){};function p9(e,t){}function g9(e,t){}function m9(){Y1={}}function Zp(e,t,n){!t&&!Y1[n]&&(e(!1,n),Y1[n]=!0)}function ts(e,t){Zp(p9,e,t)}function v9(e,t){Zp(g9,e,t)}ts.preMessage=h9;ts.resetWarned=m9;ts.noteOnce=v9;function w9(e,t){var n=arguments.length>2&&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(ts(!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<a.length;u++)if(!o(a[u],s[u],d))return!1;return!0}if(a&&s&&ni(a)==="object"&&ni(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(h){return o(a[h],s[h],d)})}return!1}return o(e,t)}function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ga.apply(null,arguments)}function x9(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Wp(e,t){if(e==null)return{};var n,i,o=x9(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X1(e,t,n){return(e-t)/(n-t)}function Vd(e,t,n,i){var o=X1(t,n,i),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function yo(e,t){return Array.isArray(e)?e[t]:e}var fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=fe.F1&&n<=fe.F12)return!1;switch(n){case fe.ALT:case fe.CAPS_LOCK:case fe.CONTEXT_MENU:case fe.CTRL:case fe.DOWN:case fe.END:case fe.ESC:case fe.HOME:case fe.INSERT:case fe.LEFT:case fe.MAC_FF_META:case fe.META:case fe.NUMLOCK:case fe.NUM_CENTER:case fe.PAGE_DOWN:case fe.PAGE_UP:case fe.PAUSE:case fe.PRINT_SCREEN:case fe.RIGHT:case fe.SHIFT:case fe.UP:case fe.WIN_KEY:case fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=fe.ZERO&&t<=fe.NINE||t>=fe.NUM_ZERO&&t<=fe.NUM_MULTIPLY||t>=fe.A&&t<=fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case fe.SPACE:case fe.QUESTION_MARK:case fe.NUM_PLUS:case fe.NUM_MINUS:case fe.NUM_PERIOD:case fe.NUM_DIVISION:case fe.SEMICOLON:case fe.DASH:case fe.EQUALS:case fe.COMMA:case fe.PERIOD:case fe.SLASH:case fe.APOSTROPHE:case fe.SINGLE_QUOTE:case fe.OPEN_SQUARE_BRACKET:case fe.BACKSLASH:case fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const b9=window.React;var Gi=b9.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),y9=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const Jc=window.React;var Tu=Jc.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,f=e.onFocus,h=e.onMouseEnter,m=Wp(e,y9),p=Jc.useContext(Gi),v=p.min,x=p.max,E=p.direction,C=p.disabled,j=p.keyboard,M=p.range,T=p.tabIndex,_=p.ariaLabelForHandle,b=p.ariaLabelledByForHandle,$=p.ariaValueTextFormatterForHandle,B=p.styles,y=p.classNames,I="".concat(n,"-handle"),L=function(q){C||a(q,o)},F=function(q){f==null||f(q,o)},G=function(q){h(q,o)},R=function(q){if(!C&&j){var ae=null;switch(q.which||q.keyCode){case fe.LEFT:ae=E==="ltr"||E==="btt"?-1:1;break;case fe.RIGHT:ae=E==="ltr"||E==="btt"?1:-1;break;case fe.UP:ae=E!=="ttb"?1:-1;break;case fe.DOWN:ae=E!=="ttb"?-1:1;break;case fe.HOME:ae="min";break;case fe.END:ae="max";break;case fe.PAGE_UP:ae=2;break;case fe.PAGE_DOWN:ae=-2;break}ae!==null&&(q.preventDefault(),d(ae,o))}},Z=function(q){switch(q.which||q.keyCode){case fe.LEFT:case fe.RIGHT:case fe.UP:case fe.DOWN:case fe.HOME:case fe.END:case fe.PAGE_UP:case fe.PAGE_DOWN:u==null||u();break}},V=Vd(E,i,v,x),U={};if(o!==null){var O;U={tabIndex:C?null:yo(T,o),role:"slider","aria-valuemin":v,"aria-valuemax":x,"aria-valuenow":i,"aria-disabled":C,"aria-label":yo(_,o),"aria-labelledby":yo(b,o),"aria-valuetext":(O=yo($,o))===null||O===void 0?void 0:O(i),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:L,onTouchStart:L,onFocus:F,onMouseEnter:G,onKeyDown:R,onKeyUp:Z}}var X=Jc.createElement("div",Ga({ref:t,className:Re(I,Yn(Yn({},"".concat(I,"-").concat(o+1),o!==null&&M),"".concat(I,"-dragging"),c),y.handle),style:Nt(Nt(Nt({},V),s),B.handle)},U,m));return l&&(X=l(X,{index:o,prefixCls:n,value:i,dragging:c})),X}),C9=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"];const Gr=window.React;var _9=Gr.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,f=Wp(e,C9),h=Gr.useRef({});Gr.useImperativeHandle(t,function(){return{focus:function(T){var _;(_=h.current[T])===null||_===void 0||_.focus()}}});var m=Gr.useState(-1),p=ln(m,2),v=p[0],x=p[1],E=function(T,_){x(_),u==null||u(T)},C=function(T,_){x(_)},j=Nt({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:E,onMouseEnter:C},f);return Gr.createElement(Gr.Fragment,null,s.map(function(M,T){return Gr.createElement(Tu,Ga({ref:function(b){b?h.current[T]=b:delete h.current[T]},dragging:d===T,style:yo(i,T),key:T,value:M,valueIndex:T},j))}),c&&Gr.createElement(Tu,Ga({key:"a11y"},j,{value:s[v],valueIndex:null,dragging:d!==-1,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const Iu=window.React;var S9=function(t){var n=t.prefixCls,i=t.style,o=t.children,a=t.value,s=t.onClick,l=Iu.useContext(Gi),c=l.min,d=l.max,u=l.direction,f=l.includedStart,h=l.includedEnd,m=l.included,p="".concat(n,"-text"),v=Vd(u,a,c,d);return Iu.createElement("span",{className:Re(p,Yn({},"".concat(p,"-active"),m&&f<=a&&a<=h)),style:Nt(Nt({},v),i),onMouseDown:function(E){E.stopPropagation()},onClick:function(){s(a)}},o)};const Lu=window.React;var j9=function(t){var n=t.prefixCls,i=t.marks,o=t.onClick,a="".concat(n,"-mark");return i.length?Lu.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,d=s.label;return Lu.createElement(S9,{key:l,prefixCls:a,style:c,value:l,onClick:o},d)})):null};const Au=window.React;var k9=function(t){var n=t.prefixCls,i=t.value,o=t.style,a=t.activeStyle,s=Au.useContext(Gi),l=s.min,c=s.max,d=s.direction,u=s.included,f=s.includedStart,h=s.includedEnd,m="".concat(n,"-dot"),p=u&&f<=i&&i<=h,v=Nt(Nt({},Vd(d,i,l,c)),typeof o=="function"?o(i):o);return p&&(v=Nt(Nt({},v),typeof a=="function"?a(i):a)),Au.createElement("span",{className:Re(m,Yn({},"".concat(m,"-active"),p)),style:v})};const Cs=window.React;var E9=function(t){var n=t.prefixCls,i=t.marks,o=t.dots,a=t.style,s=t.activeStyle,l=Cs.useContext(Gi),c=l.min,d=l.max,u=l.step,f=Cs.useMemo(function(){var h=new Set;if(i.forEach(function(p){h.add(p.value)}),o&&u!==null)for(var m=c;m<=d;)h.add(m),m+=u;return Array.from(h)},[c,d,u,o,i]);return Cs.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return Cs.createElement(k9,{prefixCls:n,key:h,value:h,style:a,activeStyle:s})}))};const Ru=window.React;var Ou=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=Ru.useContext(Gi),u=d.direction,f=d.min,h=d.max,m=d.disabled,p=d.range,v=d.classNames,x="".concat(n,"-track"),E=X1(o,f,h),C=X1(a,f,h),j=function(b){!m&&l&&l(b,-1)},M={};switch(u){case"rtl":M.right="".concat(E*100,"%"),M.width="".concat(C*100-E*100,"%");break;case"btt":M.bottom="".concat(E*100,"%"),M.height="".concat(C*100-E*100,"%");break;case"ttb":M.top="".concat(E*100,"%"),M.height="".concat(C*100-E*100,"%");break;default:M.left="".concat(E*100,"%"),M.width="".concat(C*100-E*100,"%")}var T=c||Re(x,Yn(Yn({},"".concat(x,"-").concat(s+1),s!==null&&p),"".concat(n,"-track-draggable"),l),v.track);return Ru.createElement("div",{className:T,style:Nt(Nt({},M),i),onMouseDown:j,onTouchStart:j})};const co=window.React;var D9=function(t){var n=t.prefixCls,i=t.style,o=t.values,a=t.startPoint,s=t.onStartMove,l=co.useContext(Gi),c=l.included,d=l.range,u=l.min,f=l.styles,h=l.classNames,m=co.useMemo(function(){if(!d){if(o.length===0)return[];var v=a??u,x=o[0];return[{start:Math.min(v,x),end:Math.max(v,x)}]}for(var E=[],C=0;C<o.length-1;C+=1)E.push({start:o[C],end:o[C+1]});return E},[o,d,a,u]);if(!c)return null;var p=h.tracks||f.tracks?co.createElement(Ou,{index:null,prefixCls:n,start:m[0].start,end:m[m.length-1].end,replaceCls:Re(h.tracks,"".concat(n,"-tracks")),style:f.tracks}):null;return co.createElement(co.Fragment,null,p,m.map(function(v,x){var E=v.start,C=v.end;return co.createElement(Ou,{index:x,prefixCls:n,style:Nt(Nt({},yo(i,x)),f.track),start:E,end:C,key:x,onStartMove:s})}))},Ze={};/**
 * @license React
 * react-is.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 zd=Symbol.for("react.element"),Fd=Symbol.for("react.portal"),Vl=Symbol.for("react.fragment"),zl=Symbol.for("react.strict_mode"),Fl=Symbol.for("react.profiler"),Zl=Symbol.for("react.provider"),Wl=Symbol.for("react.context"),$9=Symbol.for("react.server_context"),Gl=Symbol.for("react.forward_ref"),Ul=Symbol.for("react.suspense"),Yl=Symbol.for("react.suspense_list"),Xl=Symbol.for("react.memo"),Jl=Symbol.for("react.lazy"),H9=Symbol.for("react.offscreen"),Gp;Gp=Symbol.for("react.module.reference");function An(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zd:switch(e=e.type,e){case Vl:case Fl:case zl:case Ul:case Yl:return e;default:switch(e=e&&e.$$typeof,e){case $9:case Wl:case Gl:case Jl:case Xl:case Zl:return e;default:return t}}case Fd:return t}}}Ze.ContextConsumer=Wl;Ze.ContextProvider=Zl;Ze.Element=zd;Ze.ForwardRef=Gl;Ze.Fragment=Vl;Ze.Lazy=Jl;Ze.Memo=Xl;Ze.Portal=Fd;Ze.Profiler=Fl;Ze.StrictMode=zl;Ze.Suspense=Ul;Ze.SuspenseList=Yl;Ze.isAsyncMode=function(){return!1};Ze.isConcurrentMode=function(){return!1};Ze.isContextConsumer=function(e){return An(e)===Wl};Ze.isContextProvider=function(e){return An(e)===Zl};Ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zd};Ze.isForwardRef=function(e){return An(e)===Gl};Ze.isFragment=function(e){return An(e)===Vl};Ze.isLazy=function(e){return An(e)===Jl};Ze.isMemo=function(e){return An(e)===Xl};Ze.isPortal=function(e){return An(e)===Fd};Ze.isProfiler=function(e){return An(e)===Fl};Ze.isStrictMode=function(e){return An(e)===zl};Ze.isSuspense=function(e){return An(e)===Ul};Ze.isSuspenseList=function(e){return An(e)===Yl};Ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vl||e===Fl||e===zl||e===Ul||e===Yl||e===H9||typeof e=="object"&&e!==null&&(e.$$typeof===Jl||e.$$typeof===Xl||e.$$typeof===Zl||e.$$typeof===Wl||e.$$typeof===Gl||e.$$typeof===Gp||e.getModuleId!==void 0)};Ze.typeOf=An;window.React.isValidElement;const M9=window.React.version;Number(M9.split(".")[0]);const yr=window.React;function Nu(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function T9(e,t,n,i,o,a,s,l,c){var d=yr.useState(null),u=ln(d,2),f=u[0],h=u[1],m=yr.useState(-1),p=ln(m,2),v=p[0],x=p[1],E=yr.useState(n),C=ln(E,2),j=C[0],M=C[1],T=yr.useState(n),_=ln(T,2),b=_[0],$=_[1],B=yr.useRef(null),y=yr.useRef(null);yr.useLayoutEffect(function(){v===-1&&M(n)},[n,v]),yr.useEffect(function(){return function(){document.removeEventListener("mousemove",B.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",B.current),document.removeEventListener("touchend",y.current)}},[]);var I=function(Z,V){j.some(function(U,O){return U!==Z[O]})&&(V!==void 0&&h(V),M(Z),s(Z))},L=G1(function(R,Z){if(R===-1){var V=b[0],U=b[b.length-1],O=i-V,X=o-U,ee=Z*(o-i);ee=Math.max(ee,O),ee=Math.min(ee,X);var q=a(V+ee);ee=q-V;var ae=b.map(function(he){return he+ee});I(ae)}else{var ce=(o-i)*Z,W=qr(j);W[R]=b[R];var re=c(W,ce,R,"dist");I(re.values,re.value)}}),F=function(Z,V,U){Z.stopPropagation();var O=U||n,X=O[V];x(V),h(X),$(O);var ee=Nu(Z),q=ee.pageX,ae=ee.pageY,ce=function(he){he.preventDefault();var de=Nu(he),se=de.pageX,xe=de.pageY,Ye=se-q,et=xe-ae,S=e.current.getBoundingClientRect(),A=S.width,H=S.height,Y;switch(t){case"btt":Y=-et/H;break;case"ttb":Y=et/H;break;case"rtl":Y=-Ye/A;break;default:Y=Ye/A}L(V,Y)},W=function re(he){he.preventDefault(),document.removeEventListener("mouseup",re),document.removeEventListener("mousemove",ce),document.removeEventListener("touchend",re),document.removeEventListener("touchmove",ce),B.current=null,y.current=null,x(-1),l()};document.addEventListener("mouseup",W),document.addEventListener("mousemove",ce),document.addEventListener("touchend",W),document.addEventListener("touchmove",ce),B.current=ce,y.current=W},G=yr.useMemo(function(){var R=qr(n).sort(function(V,U){return V-U}),Z=qr(j).sort(function(V,U){return V-U});return R.every(function(V,U){return V===Z[U]})?j:n},[n,j]);return[v,f,G,F]}const Kc=window.React;function I9(e,t,n,i,o,a){var s=Kc.useCallback(function(m){return Math.max(e,Math.min(t,m))},[e,t]),l=Kc.useCallback(function(m){if(n!==null){var p=e+Math.round((s(m)-e)/n)*n,v=function(j){return(String(j).split(".")[1]||"").length},x=Math.max(v(n),v(t),v(e)),E=Number(p.toFixed(x));return e<=E&&E<=t?E:null}return null},[n,e,t,s]),c=Kc.useCallback(function(m){var p=s(m),v=i.map(function(C){return C.value});n!==null&&v.push(l(m)),v.push(e,t);var x=v[0],E=t-e;return v.forEach(function(C){var j=Math.abs(p-C);j<=E&&(x=C,E=j)}),x},[e,t,i,n,s,l]),d=function m(p,v,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var C,j=p[x],M=j+v,T=[];i.forEach(function(y){T.push(y.value)}),T.push(e,t),T.push(l(j));var _=v>0?1:-1;E==="unit"?T.push(l(j+_*n)):T.push(l(M)),T=T.filter(function(y){return y!==null}).filter(function(y){return v<0?y<=j:y>=j}),E==="unit"&&(T=T.filter(function(y){return y!==j}));var b=E==="unit"?j:M;C=T[0];var $=Math.abs(C-b);if(T.forEach(function(y){var I=Math.abs(y-b);I<$&&(C=y,$=I)}),C===void 0)return v<0?e:t;if(E==="dist")return C;if(Math.abs(v)>1){var B=qr(p);return B[x]=C,m(B,v-_,x,E)}return C}else{if(v==="min")return e;if(v==="max")return t}},u=function(p,v,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=p[x],j=d(p,v,x,E);return{value:j,changed:j!==C}},f=function(p){return a===null&&p===0||typeof a=="number"&&p<a},h=function(p,v,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=p.map(c),j=C[x],M=d(C,v,x,E);if(C[x]=M,o===!1){var T=a||0;x>0&&C[x-1]!==j&&(C[x]=Math.max(C[x],C[x-1]+T)),x<C.length-1&&C[x+1]!==j&&(C[x]=Math.min(C[x],C[x+1]-T))}else if(typeof a=="number"||a===null){for(var _=x+1;_<C.length;_+=1)for(var b=!0;f(C[_]-C[_-1])&&b;){var $=u(C,1,_);C[_]=$.value,b=$.changed}for(var B=x;B>0;B-=1)for(var y=!0;f(C[B]-C[B-1])&&y;){var I=u(C,-1,B-1);C[B-1]=I.value,y=I.changed}for(var L=C.length-1;L>0;L-=1)for(var F=!0;f(C[L]-C[L-1])&&F;){var G=u(C,-1,L-1);C[L-1]=G.value,F=G.changed}for(var R=0;R<C.length-1;R+=1)for(var Z=!0;f(C[R+1]-C[R])&&Z;){var V=u(C,1,R+1);C[R+1]=V.value,Z=V.changed}}return{value:C[x],values:C}};return[c,h]}const Fe=window.React;var L9=Fe.forwardRef(function(e,t){var n=e.prefixCls,i=n===void 0?"rc-slider":n,o=e.className,a=e.style,s=e.classNames,l=e.styles,c=e.disabled,d=c===void 0?!1:c,u=e.keyboard,f=u===void 0?!0:u,h=e.autoFocus,m=e.onFocus,p=e.onBlur,v=e.min,x=v===void 0?0:v,E=e.max,C=E===void 0?100:E,j=e.step,M=j===void 0?1:j,T=e.value,_=e.defaultValue,b=e.range,$=e.count,B=e.onChange,y=e.onBeforeChange,I=e.onAfterChange,L=e.onChangeComplete,F=e.allowCross,G=F===void 0?!0:F,R=e.pushable,Z=R===void 0?!1:R,V=e.draggableTrack,U=e.reverse,O=e.vertical,X=e.included,ee=X===void 0?!0:X,q=e.startPoint,ae=e.trackStyle,ce=e.handleStyle,W=e.railStyle,re=e.dotStyle,he=e.activeDotStyle,de=e.marks,se=e.dots,xe=e.handleRender,Ye=e.activeHandleRender,et=e.tabIndex,S=et===void 0?0:et,A=e.ariaLabelForHandle,H=e.ariaLabelledByForHandle,Y=e.ariaValueTextFormatterForHandle,J=Fe.useRef(null),te=Fe.useRef(null),ve=Fe.useMemo(function(){return O?U?"ttb":"btt":U?"rtl":"ltr"},[U,O]),ue=Fe.useMemo(function(){return isFinite(x)?x:0},[x]),Oe=Fe.useMemo(function(){return isFinite(C)?C:100},[C]),Pe=Fe.useMemo(function(){return M!==null&&M<=0?1:M},[M]),Pt=Fe.useMemo(function(){return typeof Z=="boolean"?Z?Pe:!1:Z>=0?Z:!1},[Z,Pe]),Ge=Fe.useMemo(function(){return Object.keys(de||{}).map(function(ze){var Ce=de[ze],He={value:Number(ze)};return Ce&&ni(Ce)==="object"&&!Fe.isValidElement(Ce)&&("label"in Ce||"style"in Ce)?(He.style=Ce.style,He.label=Ce.label):He.label=Ce,He}).filter(function(ze){var Ce=ze.label;return Ce||typeof Ce=="number"}).sort(function(ze,Ce){return ze.value-Ce.value})},[de]),fn=I9(ue,Oe,Pe,Ge,G,Pt),Kn=ln(fn,2),Bt=Kn[0],Cn=Kn[1],Ji=f9(_,{value:T}),Vt=ln(Ji,2),hn=Vt[0],oi=Vt[1],Lt=Fe.useMemo(function(){var ze=hn==null?[]:Array.isArray(hn)?hn:[hn],Ce=ln(ze,1),He=Ce[0],ot=He===void 0?ue:He,Xe=hn===null?[]:[ot];if(b){if(Xe=qr(ze),$||hn===void 0){var kt=$>=0?$+1:2;for(Xe=Xe.slice(0,kt);Xe.length<kt;){var At;Xe.push((At=Xe[Xe.length-1])!==null&&At!==void 0?At:ue)}}Xe.sort(function(zt,bt){return zt-bt})}return Xe.forEach(function(zt,bt){Xe[bt]=Bt(zt)}),Xe},[hn,b,ue,$,Bt]),hr=Fe.useRef(Lt);hr.current=Lt;var Kt=function(Ce){return b?Ce:Ce[0]},Pr=function(Ce){var He=qr(Ce).sort(function(ot,Xe){return ot-Xe});B&&!w9(He,hr.current,!0)&&B(Kt(He)),oi(He)},Br=function(){var Ce=Kt(hr.current);I==null||I(Ce),ts(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L==null||L(Ce)},Yo=T9(te,ve,Lt,ue,Oe,Bt,Pr,Br,Cn),qt=ln(Yo,4),qn=qt[0],ai=qt[1],Qn=qt[2],xt=qt[3],Rn=function(Ce,He){if(!d){var ot=0,Xe=Oe-ue;Lt.forEach(function(bt,jn){var gr=Math.abs(Ce-bt);gr<=Xe&&(Xe=gr,ot=jn)});var kt=qr(Lt);if(kt[ot]=Ce,b&&!Lt.length&&$===void 0&&kt.push(Ce),y==null||y(Kt(kt)),Pr(kt),He){var At,zt;(At=document.activeElement)===null||At===void 0||(zt=At.blur)===null||zt===void 0||zt.call(At),J.current.focus(ot),xt(He,ot,kt)}}},Vr=function(Ce){Ce.preventDefault();var He=te.current.getBoundingClientRect(),ot=He.width,Xe=He.height,kt=He.left,At=He.top,zt=He.bottom,bt=He.right,jn=Ce.clientX,gr=Ce.clientY,mr;switch(ve){case"btt":mr=(zt-gr)/Xe;break;case"ttb":mr=(gr-At)/Xe;break;case"rtl":mr=(bt-jn)/ot;break;default:mr=(jn-kt)/ot}var Xo=ue+mr*(Oe-ue);Rn(Bt(Xo),Ce)},si=Fe.useState(null),zr=ln(si,2),Qt=zr[0],On=zr[1],Ki=function(Ce,He){if(!d){var ot=Cn(Lt,Ce,He);y==null||y(Kt(Lt)),Pr(ot.values),On(ot.value)}};Fe.useEffect(function(){if(Qt!==null){var ze=Lt.indexOf(Qt);ze>=0&&J.current.focus(ze)}On(null)},[Qt]);var qi=Fe.useMemo(function(){return V&&Pe===null?!1:V},[V,Pe]),Fr=function(Ce,He){xt(Ce,He),y==null||y(Kt(hr.current))},li=qn!==-1;Fe.useEffect(function(){if(!li){var ze=Lt.lastIndexOf(ai);J.current.focus(ze)}},[li]);var _n=Fe.useMemo(function(){return qr(Qn).sort(function(ze,Ce){return ze-Ce})},[Qn]),ci=Fe.useMemo(function(){return b?[_n[0],_n[_n.length-1]]:[ue,_n[0]]},[_n,b,ue]),pn=ln(ci,2),Sn=pn[0],pr=pn[1];Fe.useImperativeHandle(t,function(){return{focus:function(){J.current.focus(0)},blur:function(){var Ce,He=document,ot=He.activeElement;(Ce=te.current)!==null&&Ce!==void 0&&Ce.contains(ot)&&(ot==null||ot.blur())}}}),Fe.useEffect(function(){h&&J.current.focus(0)},[]);var di=Fe.useMemo(function(){return{min:ue,max:Oe,direction:ve,disabled:d,keyboard:f,step:Pe,included:ee,includedStart:Sn,includedEnd:pr,range:b,tabIndex:S,ariaLabelForHandle:A,ariaLabelledByForHandle:H,ariaValueTextFormatterForHandle:Y,styles:l||{},classNames:s||{}}},[ue,Oe,ve,d,f,Pe,ee,Sn,pr,b,S,A,H,Y,l,s]);return Fe.createElement(Gi.Provider,{value:di},Fe.createElement("div",{ref:te,className:Re(i,o,Yn(Yn(Yn(Yn({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),O),"".concat(i,"-horizontal"),!O),"".concat(i,"-with-marks"),Ge.length)),style:a,onMouseDown:Vr},Fe.createElement("div",{className:Re("".concat(i,"-rail"),s==null?void 0:s.rail),style:Nt(Nt({},W),l==null?void 0:l.rail)}),Fe.createElement(D9,{prefixCls:i,style:ae,values:_n,startPoint:q,onStartMove:qi?Fr:void 0}),Fe.createElement(E9,{prefixCls:i,marks:Ge,dots:se,style:re,activeStyle:he}),Fe.createElement(_9,{ref:J,prefixCls:i,style:ce,values:Qn,draggingIndex:qn,onStartMove:Fr,onOffsetChange:Ki,onFocus:m,onBlur:p,handleRender:xe,activeHandleRender:Ye,onChangeComplete:Br}),Fe.createElement(j9,{prefixCls:i,marks:Ge,onClick:Rn})))});function Kl({value:e,onChange:t=()=>!1,min:n=0,max:i,defaultValue:o,className:a="",step:s=1,marks:l,dots:c}){const d=Po(u=>{t(u)},0);return r.jsx(L9,{className:Re(["brandy-component-slider",a]),value:e,onChange:d,min:n,max:i,step:s,defaultValue:o,marks:l,dots:c})}var il={exports:{}};il.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]",f="[object Date]",h="[object Error]",m="[object Function]",p="[object GeneratorFunction]",v="[object Map]",x="[object Number]",E="[object Null]",C="[object Object]",j="[object Promise]",M="[object Proxy]",T="[object RegExp]",_="[object Set]",b="[object String]",$="[object Symbol]",B="[object Undefined]",y="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",F="[object Float32Array]",G="[object Float64Array]",R="[object Int8Array]",Z="[object Int16Array]",V="[object Int32Array]",U="[object Uint8Array]",O="[object Uint8ClampedArray]",X="[object Uint16Array]",ee="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,ae=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,W={};W[F]=W[G]=W[R]=W[Z]=W[V]=W[U]=W[O]=W[X]=W[ee]=!0,W[l]=W[c]=W[I]=W[u]=W[L]=W[f]=W[h]=W[m]=W[v]=W[x]=W[C]=W[T]=W[_]=W[b]=W[y]=!1;var re=typeof ut=="object"&&ut&&ut.Object===Object&&ut,he=typeof self=="object"&&self&&self.Object===Object&&self,de=re||he||Function("return this")(),se=t&&!t.nodeType&&t,xe=se&&!0&&e&&!e.nodeType&&e,Ye=xe&&xe.exports===se,et=Ye&&re.process,S=function(){try{return et&&et.binding&&et.binding("util")}catch{}}(),A=S&&S.isTypedArray;function H(k,z){for(var K=-1,le=k==null?0:k.length,We=0,_e=[];++K<le;){var tt=k[K];z(tt,K,k)&&(_e[We++]=tt)}return _e}function Y(k,z){for(var K=-1,le=z.length,We=k.length;++K<le;)k[We+K]=z[K];return k}function J(k,z){for(var K=-1,le=k==null?0:k.length;++K<le;)if(z(k[K],K,k))return!0;return!1}function te(k,z){for(var K=-1,le=Array(k);++K<k;)le[K]=z(K);return le}function ve(k){return function(z){return k(z)}}function ue(k,z){return k.has(z)}function Oe(k,z){return k==null?void 0:k[z]}function Pe(k){var z=-1,K=Array(k.size);return k.forEach(function(le,We){K[++z]=[We,le]}),K}function Pt(k,z){return function(K){return k(z(K))}}function Ge(k){var z=-1,K=Array(k.size);return k.forEach(function(le){K[++z]=le}),K}var fn=Array.prototype,Kn=Function.prototype,Bt=Object.prototype,Cn=de["__core-js_shared__"],Ji=Kn.toString,Vt=Bt.hasOwnProperty,hn=function(){var k=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""}(),oi=Bt.toString,Lt=RegExp("^"+Ji.call(Vt).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=Ye?de.Buffer:void 0,Kt=de.Symbol,Pr=de.Uint8Array,Br=Bt.propertyIsEnumerable,Yo=fn.splice,qt=Kt?Kt.toStringTag:void 0,qn=Object.getOwnPropertySymbols,ai=hr?hr.isBuffer:void 0,Qn=Pt(Object.keys,Object),xt=Zr(de,"DataView"),Rn=Zr(de,"Map"),Vr=Zr(de,"Promise"),si=Zr(de,"Set"),zr=Zr(de,"WeakMap"),Qt=Zr(Object,"create"),On=wr(xt),Ki=wr(Rn),qi=wr(Vr),Fr=wr(si),li=wr(zr),_n=Kt?Kt.prototype:void 0,ci=_n?_n.valueOf:void 0;function pn(k){var z=-1,K=k==null?0:k.length;for(this.clear();++z<K;){var le=k[z];this.set(le[0],le[1])}}function Sn(){this.__data__=Qt?Qt(null):{},this.size=0}function pr(k){var z=this.has(k)&&delete this.__data__[k];return this.size-=z?1:0,z}function di(k){var z=this.__data__;if(Qt){var K=z[k];return K===i?void 0:K}return Vt.call(z,k)?z[k]:void 0}function ze(k){var z=this.__data__;return Qt?z[k]!==void 0:Vt.call(z,k)}function Ce(k,z){var K=this.__data__;return this.size+=this.has(k)?0:1,K[k]=Qt&&z===void 0?i:z,this}pn.prototype.clear=Sn,pn.prototype.delete=pr,pn.prototype.get=di,pn.prototype.has=ze,pn.prototype.set=Ce;function He(k){var z=-1,K=k==null?0:k.length;for(this.clear();++z<K;){var le=k[z];this.set(le[0],le[1])}}function ot(){this.__data__=[],this.size=0}function Xe(k){var z=this.__data__,K=to(z,k);if(K<0)return!1;var le=z.length-1;return K==le?z.pop():Yo.call(z,K,1),--this.size,!0}function kt(k){var z=this.__data__,K=to(z,k);return K<0?void 0:z[K][1]}function At(k){return to(this.__data__,k)>-1}function zt(k,z){var K=this.__data__,le=to(K,k);return le<0?(++this.size,K.push([k,z])):K[le][1]=z,this}He.prototype.clear=ot,He.prototype.delete=Xe,He.prototype.get=kt,He.prototype.has=At,He.prototype.set=zt;function bt(k){var z=-1,K=k==null?0:k.length;for(this.clear();++z<K;){var le=k[z];this.set(le[0],le[1])}}function jn(){this.size=0,this.__data__={hash:new pn,map:new(Rn||He),string:new pn}}function gr(k){var z=Bn(this,k).delete(k);return this.size-=z?1:0,z}function mr(k){return Bn(this,k).get(k)}function Xo(k){return Bn(this,k).has(k)}function ic(k,z){var K=Bn(this,k),le=K.size;return K.set(k,z),this.size+=K.size==le?0:1,this}bt.prototype.clear=jn,bt.prototype.delete=gr,bt.prototype.get=mr,bt.prototype.has=Xo,bt.prototype.set=ic;function Qi(k){var z=-1,K=k==null?0:k.length;for(this.__data__=new bt;++z<K;)this.add(k[z])}function eo(k){return this.__data__.set(k,i),this}function ss(k){return this.__data__.has(k)}Qi.prototype.add=Qi.prototype.push=eo,Qi.prototype.has=ss;function Nn(k){var z=this.__data__=new He(k);this.size=z.size}function oc(){this.__data__=new He,this.size=0}function vr(k){var z=this.__data__,K=z.delete(k);return this.size=z.size,K}function ac(k){return this.__data__.get(k)}function sc(k){return this.__data__.has(k)}function lc(k,z){var K=this.__data__;if(K instanceof He){var le=K.__data__;if(!Rn||le.length<n-1)return le.push([k,z]),this.size=++K.size,this;K=this.__data__=new bt(le)}return K.set(k,z),this.size=K.size,this}Nn.prototype.clear=oc,Nn.prototype.delete=vr,Nn.prototype.get=ac,Nn.prototype.has=sc,Nn.prototype.set=lc;function cc(k,z){var K=fi(k),le=!K&&ro(k),We=!K&&!le&&io(k),_e=!K&&!le&&!We&&ms(k),tt=K||le||We||_e,gt=tt?te(k.length,String):[],yt=gt.length;for(var Je in k)(z||Vt.call(k,Je))&&!(tt&&(Je=="length"||We&&(Je=="offset"||Je=="parent")||_e&&(Je=="buffer"||Je=="byteLength"||Je=="byteOffset")||vc(Je,yt)))&&gt.push(Je);return gt}function to(k,z){for(var K=k.length;K--;)if(Jo(k[K][0],z))return K;return-1}function Pn(k,z,K){var le=z(k);return fi(k)?le:Y(le,K(k))}function ui(k){return k==null?k===void 0?B:E:qt&&qt in Object(k)?gc(k):wc(k)}function ls(k){return hi(k)&&ui(k)==l}function cs(k,z,K,le,We){return k===z?!0:k==null||z==null||!hi(k)&&!hi(z)?k!==k&&z!==z:dc(k,z,K,le,cs,We)}function dc(k,z,K,le,We,_e){var tt=fi(k),gt=fi(z),yt=tt?c:tr(k),Je=gt?c:tr(z);yt=yt==l?C:yt,Je=Je==l?C:Je;var Ft=yt==C,Ht=Je==C,Et=yt==Je;if(Et&&io(k)){if(!io(z))return!1;tt=!0,Ft=!1}if(Et&&!Ft)return _e||(_e=new Nn),tt||ms(k)?ds(k,z,K,le,We,_e):hc(k,z,yt,K,le,We,_e);if(!(K&o)){var en=Ft&&Vt.call(k,"__wrapped__"),tn=Ht&&Vt.call(z,"__wrapped__");if(en||tn){var nr=en?k.value():k,Vn=tn?z.value():z;return _e||(_e=new Nn),We(nr,Vn,K,le,_e)}}return Et?(_e||(_e=new Nn),pc(k,z,K,le,We,_e)):!1}function uc(k){if(!gs(k)||hs(k))return!1;var z=Ko(k)?Lt:ae;return z.test(wr(k))}function er(k){return hi(k)&&ps(k.length)&&!!W[ui(k)]}function fc(k){if(!no(k))return Qn(k);var z=[];for(var K in Object(k))Vt.call(k,K)&&K!="constructor"&&z.push(K);return z}function ds(k,z,K,le,We,_e){var tt=K&o,gt=k.length,yt=z.length;if(gt!=yt&&!(tt&&yt>gt))return!1;var Je=_e.get(k);if(Je&&_e.get(z))return Je==z;var Ft=-1,Ht=!0,Et=K&a?new Qi:void 0;for(_e.set(k,z),_e.set(z,k);++Ft<gt;){var en=k[Ft],tn=z[Ft];if(le)var nr=tt?le(tn,en,Ft,z,k,_e):le(en,tn,Ft,k,z,_e);if(nr!==void 0){if(nr)continue;Ht=!1;break}if(Et){if(!J(z,function(Vn,rr){if(!ue(Et,rr)&&(en===Vn||We(en,Vn,K,le,_e)))return Et.push(rr)})){Ht=!1;break}}else if(!(en===tn||We(en,tn,K,le,_e))){Ht=!1;break}}return _e.delete(k),_e.delete(z),Ht}function hc(k,z,K,le,We,_e,tt){switch(K){case L:if(k.byteLength!=z.byteLength||k.byteOffset!=z.byteOffset)return!1;k=k.buffer,z=z.buffer;case I:return!(k.byteLength!=z.byteLength||!_e(new Pr(k),new Pr(z)));case u:case f:case x:return Jo(+k,+z);case h:return k.name==z.name&&k.message==z.message;case T:case b:return k==z+"";case v:var gt=Pe;case _:var yt=le&o;if(gt||(gt=Ge),k.size!=z.size&&!yt)return!1;var Je=tt.get(k);if(Je)return Je==z;le|=a,tt.set(k,z);var Ft=ds(gt(k),gt(z),le,We,_e,tt);return tt.delete(k),Ft;case $:if(ci)return ci.call(k)==ci.call(z)}return!1}function pc(k,z,K,le,We,_e){var tt=K&o,gt=us(k),yt=gt.length,Je=us(z),Ft=Je.length;if(yt!=Ft&&!tt)return!1;for(var Ht=yt;Ht--;){var Et=gt[Ht];if(!(tt?Et in z:Vt.call(z,Et)))return!1}var en=_e.get(k);if(en&&_e.get(z))return en==z;var tn=!0;_e.set(k,z),_e.set(z,k);for(var nr=tt;++Ht<yt;){Et=gt[Ht];var Vn=k[Et],rr=z[Et];if(le)var pi=tt?le(rr,Vn,Et,z,k,_e):le(Vn,rr,Et,k,z,_e);if(!(pi===void 0?Vn===rr||We(Vn,rr,K,le,_e):pi)){tn=!1;break}nr||(nr=Et=="constructor")}if(tn&&!nr){var kn=k.constructor,oo=z.constructor;kn!=oo&&"constructor"in k&&"constructor"in z&&!(typeof kn=="function"&&kn instanceof kn&&typeof oo=="function"&&oo instanceof oo)&&(tn=!1)}return _e.delete(k),_e.delete(z),tn}function us(k){return Pn(k,bc,mc)}function Bn(k,z){var K=k.__data__;return fs(z)?K[typeof z=="string"?"string":"hash"]:K.map}function Zr(k,z){var K=Oe(k,z);return uc(K)?K:void 0}function gc(k){var z=Vt.call(k,qt),K=k[qt];try{k[qt]=void 0;var le=!0}catch{}var We=oi.call(k);return le&&(z?k[qt]=K:delete k[qt]),We}var mc=qn?function(k){return k==null?[]:(k=Object(k),H(qn(k),function(z){return Br.call(k,z)}))}:yc,tr=ui;(xt&&tr(new xt(new ArrayBuffer(1)))!=L||Rn&&tr(new Rn)!=v||Vr&&tr(Vr.resolve())!=j||si&&tr(new si)!=_||zr&&tr(new zr)!=y)&&(tr=function(k){var z=ui(k),K=z==C?k.constructor:void 0,le=K?wr(K):"";if(le)switch(le){case On:return L;case Ki:return v;case qi:return j;case Fr:return _;case li:return y}return z});function vc(k,z){return z=z??s,!!z&&(typeof k=="number"||ce.test(k))&&k>-1&&k%1==0&&k<z}function fs(k){var z=typeof k;return z=="string"||z=="number"||z=="symbol"||z=="boolean"?k!=="__proto__":k===null}function hs(k){return!!hn&&hn in k}function no(k){var z=k&&k.constructor,K=typeof z=="function"&&z.prototype||Bt;return k===K}function wc(k){return oi.call(k)}function wr(k){if(k!=null){try{return Ji.call(k)}catch{}try{return k+""}catch{}}return""}function Jo(k,z){return k===z||k!==k&&z!==z}var ro=ls(function(){return arguments}())?ls:function(k){return hi(k)&&Vt.call(k,"callee")&&!Br.call(k,"callee")},fi=Array.isArray;function xc(k){return k!=null&&ps(k.length)&&!Ko(k)}var io=ai||Cc;function xr(k,z){return cs(k,z)}function Ko(k){if(!gs(k))return!1;var z=ui(k);return z==m||z==p||z==d||z==M}function ps(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=s}function gs(k){var z=typeof k;return k!=null&&(z=="object"||z=="function")}function hi(k){return k!=null&&typeof k=="object"}var ms=A?ve(A):er;function bc(k){return xc(k)?cc(k):fc(k)}function yc(){return[]}function Cc(){return!1}e.exports=xr})(il,il.exports);var A9=il.exports;const Zd=bn(A9);function Up({onReset:e,hasChanged:t=!1}){const n=()=>{t&&e()};return r.jsx(R9,{onClick:n,$_css:[{cursor:"pointer","& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"}},t?{"& svg *":{fill:"#3858e9",stroke:"#3858e9"}}:""],children:r.jsx(Px,{})})}var R9=w("div").withConfig({displayName:"ResetButton___StyledDiv",componentId:"sc-n1cbpg-0"})(["",""],e=>e.$_css);const O9=window.React.useCallback,N9=window.React.useContext,Pu=window.React.useMemo;function Bu(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 ql(e){const{builder:t}=N9(Jt),n=oe(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=oe(t)(l=>l.previewTemplate),{current:o}=De(),a=O9(()=>{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=Bu(e.sectionId),c&&(e.reset_paths??[]).forEach(f=>{const h=ke(c.settings,f);Ut(l,f,h),dr({sectionId:e.sectionId,settings:Z0(f,h),device:o,builder:t,clonedFromId:e.cloned_from}),q2({sectionId:e.sectionId,settings:Z0(f,h),device:o,builder:t})})})},[n,e,o,t]),s=Pu(()=>{var u,f;let l,c;(u=window.brandyCustomizerData.defaults[t])!=null&&u.elements[e.sectionId]?(c=(f=window.brandyCustomizerData.defaults[t])==null?void 0:f.elements[e.sectionId],l=i.elements[e.sectionId]):(c=Bu(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(h=>{if(d==!0)return;const m=ke(l.settings,h),p=ke(c.settings,h);Zd(m,p)||(d=!0)},!1),d},[o,e.sectionId,e.reset_paths,i,t]);return Pu(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(P9,{children:[r.jsx(pt,{className:Re(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Up,{onReset:a,hasChanged:s})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[a,e.title])}var P9=w("div").withConfig({displayName:"Reset___StyledDiv",componentId:"sc-pc751i-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const B9=window.React.useMemo,V9=window.React.useState,z9=[{label:P("Default"),value:"default"},{label:P("Small"),value:"small"},{label:P("Medium"),value:"medium"},{label:P("Large"),value:"large"},{label:P("Custom shadow"),value:"custom"}],F9={x:{title:P("X offset")},y:{title:P("Y offset")},blur:{title:P("Blur")},spread:{title:P("Spread")}};function Z9(e){const{current:t}=De(),n=B9(()=>ye(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]=V9(!1);return r.jsxs(W9,{children:[r.jsxs(G9,{children:[r.jsxs(U9,{children:[r.jsx(pt,{title:e.title,className:"mb-0"}),n.enabled&&r.jsx(Y9,{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(X9,{children:[(e.can_reset??!0)&&r.jsx(ql,{...e,title:{text:""},reset_paths:[e.value_path]}),r.jsx(Oo,{checked:n.enabled,onChange:i})]})]}),n.enabled&&s&&r.jsxs(J9,{className:"box-shadow-wrapper",children:[r.jsx(jt,{options:z9,selected:n.type,onChange:o,popupHeight:220}),n.type==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(K9,{children:[r.jsx(q9,{children:"Shadow color"}),r.jsx(Ct,{color:n.custom_value.color??"#cdcdcd",onChange:a("color")})]}),Object.entries(F9).map(([c,d])=>r.jsxs("div",{children:[r.jsx(Q9,{children:d.title}),r.jsxs(e7,{children:[r.jsx(t7,{type:"number",value:n.custom_value[c],min:-10,max:40,onChange:a(c)}),r.jsx(Kl,{value:n.custom_value[c],min:-10,max:40,onChange:a(c)})]})]},c))]})]})]})}var W9=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),G9=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),U9=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Y9=w("span")`${e=>e.$_css}`,X9=w("div")({display:"flex",alignItems:"center",gap:"0.5rem"}),J9=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),K9=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),q9=w("span")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),Q9=w("div")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),e7=w("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.75rem"}),t7=w(ht).withConfig({displayName:"BoxShadowBuilder___StyledInput",componentId:"sc-no79k6-0"})({width:"60px"});const n7=window.React.useCallback,qc=window.React.useMemo;function Ui({inputValue:e,onChange:t}){const{current:n}=De(),i=qc(()=>r.jsxs("svg",{fill:"#3858e9",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=qc(()=>{if(n=="desktop")return!0;let l=!0;return Object.values(e).forEach(c=>{Mo(c)&&c[n]!=null&&(l=!1)}),l},[n,e]),a=n7(()=>{n!=="desktop"&&t(null)},[n,t]);return{ResetInheritButton:qc(()=>o?()=>!1:({className:l=""})=>r.jsx(r7,{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 r7=w("span").withConfig({displayName:"useInheritResponsive___StyledSpan",componentId:"sc-l0r28k-0"})(["",""],e=>e.$_css);const i7=window.React.useMemo;function ii(e){const{current:t}=De(),n=i7(()=>ye(e.value,t),[t,e.value]),{ResetInheritButton:i}=Ui({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(o7,{children:[!e.disableInherit&&r.jsx(i,{}),r.jsx(pt,{title:e.title,className:"mb-2"})]}),r.jsx(vn,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx(a7,{dangerouslySetInnerHTML:{__html:e.description}})]})}var o7=w("div")({position:"relative"}),a7=w("div").withConfig({displayName:"ButtonGroupBuilder___StyledDiv2",componentId:"sc-t3hi5f-0"})({marginTop:"0.5rem",fontSize:"12px","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"});const s7=window.React.createElement,l7=window.React.useCallback,Yp=window.React.useMemo;function c7(e){const{ResetInheritButton:t}=Ui({inputValue:e.value,onChange:i=>{Object.keys(e.value).forEach(o=>{e.onChange(i,[...e.value_path,o])})}}),n=Yp(()=>e.value.enabled_gradient,[e.value.enabled_gradient]);return r.jsxs(u7,{children:[r.jsx(t,{}),r.jsx(pt,{title:e.title,className:"mb-0"}),r.jsx(f7,{children:Object.entries(e.value).map((i,o)=>{if(i[0]!=="enabled_gradient")return s7(d7,{...e,attributeKey:i[0],color:i[1],key:o,usingGradient:n})})})]})}function d7(e){const{current:t}=De(),n=Yp(()=>ye(e.color,t),[e.color,t]),i=l7(o=>{e.onChange(o,[...e.value_path,e.attributeKey])},[e]);return r.jsx(St,{title:e.attributeKey,style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:n,onChange:i,usingGradient:e.usingGradient})})}var u7=w("div")({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"}),f7=w("div").withConfig({displayName:"ColorGroupBuilder___StyledDiv2",componentId:"sc-d3agj8-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const Xp=["px","em","rem","%"],h7={wp:"Preset"},Jp=({options:e=Xp,value:t="px",onChange:n=()=>!1})=>{const i=o=>a=>{a.preventDefault(),n(t===o?"":o)};return r.jsx("div",{className:"flex gap-2",children:e.map(o=>r.jsx("span",{className:Re(["uppercase text-brandy-text-secondary cursor-pointer text-[10px] hover:text-brandy-text",t===o&&"text-wp hover:!text-wp"]),onClick:i(o),children:h7[o]??o},o))})},Vu=window.React.useCallback;function In({value:e,onChange:t=()=>!1,title:n="Dimension",units:i=Xp,min:o=0,max:a=100,hideUnitSelection:s=!1,step:l=1}){const c=Po(h=>{t({...e,unit:h})},0),d=Vu(h=>{c(h)},[c]),u=Po(h=>{t({...e,value:h})},0),f=Vu(h=>{u(h)},[u]);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between items-center mb-2",children:[n,!s&&r.jsx(Jp,{options:i,value:(e==null?void 0:e.unit)??"px",onChange:d})]}),r.jsxs("div",{className:"flex gap-5 items-center",children:[r.jsx(ht,{type:"number",className:"w-1/3",value:(e==null?void 0:e.value)??0,onChange:f,min:o,max:a,step:l}),r.jsx(Kl,{className:"w-2/3",value:(e==null?void 0:e.value)??0,onChange:f,min:o,max:a,step:l})]})]})}const ia=window.React.useMemo;function p7(e){const{current:t}=De(),n=ia(()=>ye(e.value,t),[t,e.value]),i=ia(()=>ye(e.default_value,t),[e.default_value,t]),o=ia(()=>(i==null?void 0:i.min)??0,[i]),a=ia(()=>(i==null?void 0:i.max)??100,[i]),{ResetInheritButton:s}=Ui({inputValue:{inputValue:e.value},onChange:e.onChange});return ia(()=>r.jsxs(g7,{children:[r.jsx(In,{title:r.jsx(pt,{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 g7=w("div").withConfig({displayName:"DimensionBuilder___StyledDiv",componentId:"sc-k78v94-0"})({position:"relative"});const zu=window.React.useEffect,m7=window.React.useState,v7="Select image",w7="Use this image";function x7(e={}){const t=(e==null?void 0:e.title)??v7,n=(e==null?void 0:e.buttonText)??w7,[i,o]=m7(null);return zu(()=>{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]),zu(()=>()=>{window.jQuery("#brandy-upload-media").closest('[id^="__wp-uploader-id"]').remove()},[]),{media:i}}function Kp({value:e,onChange:t}){const{media:n}=x7({onSelect:t}),i=o=>{o.preventDefault(),n&&n.open()};return r.jsx(r.Fragment,{children:e?r.jsxs(b7,{className:"group",children:[r.jsxs(y7,{children:[r.jsx(C7,{}),e&&r.jsx(_7,{src:e})]}),r.jsx(S7,{onClick:i,children:"Change photo"})]}):r.jsx(j7,{onClick:i,children:"Select photo"})})}var b7=w("div")({position:"relative",display:"flex",width:"100%",flexDirection:"column",gap:"0.5rem"}),y7=w("div")({margin:"auto",height:"200px",width:"100%",overflow:"hidden",borderRadius:"5px",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 240 / var(--tw-bg-opacity, 1))",backgroundSize:"cover",backgroundPosition:"center",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),C7=w("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"}}),_7=w("img")({height:"100%",width:"100%",objectFit:"contain"}),S7=w("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(56 88 233 / var(--tw-bg-opacity, 1))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms",".group:hover &":{visibility:"visible",opacity:"1"}}),j7=w("button").withConfig({displayName:"ImagePicker___StyledButton2",componentId:"sc-i4u663-0"})({width:"100%",borderRadius:"5px",borderWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(248 248 248 / var(--tw-bg-opacity, 1))",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}});const Fu=window.React.useMemo;function k7(e){const{current:t}=De(),n=Fu(()=>ye(e.value,t),[t,e.value]);return Fu(()=>r.jsxs(E7,{children:[r.jsx(pt,{title:e.title}),r.jsx(Kp,{value:n,onChange:e.onChange})]}),[n,e.onChange,e.title])}var E7=w("div").withConfig({displayName:"ImageBuilder___StyledDiv",componentId:"sc-1enyrgi-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const D7=window.React;function qp(e){const{current:t}=De(),{ResetInheritButton:n}=Ui({inputValue:{inputValue:e.value},onChange:e.onChange}),i=D7.useMemo(()=>ye(e.value,t),[t,e.value]);return r.jsxs($7,{className:"switcher-builder",$_css2:[{marginBottom:"-4px",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},me(["& + .switcher-builder{margin-top:8px;margin-bottom:0 !important;}"])],children:[r.jsxs(H7,{children:[r.jsx(n,{}),r.jsx(pt,{title:e.title,className:"!mb-0"})]}),r.jsx(Oo,{checked:i,onChange:e.onChange}),e.description&&r.jsx(M7,{dangerouslySetInnerHTML:{__html:e.description}})]})}var $7=w("div")`${e=>e.$_css2}`,H7=w("div")({position:"relative"}),M7=w("div").withConfig({displayName:"SwitcherBuilder___StyledDiv3",componentId:"sc-10j4p3z-0"})({marginTop:"10px",width:"100%",fontSize:"12px",fontStyle:"italic"});const T7=window.React.createContext,bi=window.React.useMemo,Uo=T7({});function I7({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=bi(()=>e.font_size,[e]),u=bi(()=>e.line_height,[e]),f=bi(()=>e.letter_spacing,[e]),h=bi(()=>e.font_style,[e.font_style]),m=bi(()=>e.transform,[e.transform]),p=bi(()=>e.decoration,[e.decoration]),v=bi(()=>({fontSize:d,lineHeight:u,letterSpacing:f,fontStyle:h,transform:m,decoration:p,onChange:n,fontSizeMin:i,fontSizeMax:o,lineHeightMin:a,lineHeightMax:s,letterSpacingMin:l,letterSpacingMax:c}),[d,u,f,h,n,i,o,a,s,l,c,p,m]);return r.jsx(Uo.Provider,{value:v,children:t})}const L7=window.React.useContext,A7=window.React.useMemo;function R7(){const{current:e}=De(),{fontSize:t,onChange:n,fontSizeMin:i,fontSizeMax:o}=L7(Uo),a=l=>{n("font_size",l)},s=A7(()=>ye(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-font-size",children:r.jsx(In,{title:r.jsx(O7,{children:P("Font size")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var O7=w(wt).withConfig({displayName:"FontSize___StyledStyledSettingLabel",componentId:"sc-16fkzly-0"})({margin:"0px"});const N7=window.React.forwardRef,P7=window.React.useEffect,B7=window.React.useMemo,Qc=window.React.useRef,V7=window.React.useState,z7=window.ReactDOM.createPortal,F7=me(["svg{*[fill]{","}*[stroke]{","}}"],{fill:"#3858e9"},{stroke:"#3858e9"}),J1=[{name:"desktop",icon:r.jsx(Ep,{})},{name:"tablet",icon:r.jsx(Vx,{})},{name:"mobile",icon:r.jsx(Dp,{})}],Z7=N7(({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:J1.map(i=>r.jsx(W7,{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&&F7],children:i.icon},i.name))}));function Wd(){const{current:e,changeDevice:t}=De(),[n,i]=V7(!1),o=h=>{t(h)},a=B7(()=>J1.find(h=>h.name===e)??J1[0],[e]),s=h=>{h.preventDefault(),i(m=>!m)},l=()=>{i(!1)},c=Qc(null),d=Qc(null),u=Qc(null),f=z7(n?r.jsx(Z7,{currentDevice:e,onChange:o,ref:d}):!1,u.current??document.body);return P7(()=>{const h=m=>{var p,v;c.current==null&&d.current==null&&l(),!((p=c==null?void 0:c.current)!=null&&p.contains(m.target))&&!((v=d.current)!=null&&v.contains(m.target))&&l()};return window.jQuery(document).on("click","body",h),()=>{window.jQuery(document).off("click","body",h)}},[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:f})]})}var W7=w("div").withConfig({displayName:"DeviceSwitcher___StyledDiv",componentId:"sc-1sdffvj-0"})(["",""],e=>e.$_css2);const K1=[{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"}],G7=window.React.useContext,e1=window.React.useMemo,U7=K1.map(e=>({value:e.key,label:e.label}));function Y7(){const{current:e}=De(),{fontStyle:t,onChange:n}=G7(Uo),i=e1(()=>{var l;return((l=ye(t,e))==null?void 0:l.weight)??400},[e,t]),o=e1(()=>{var l;return((l=ye(t,e))==null?void 0:l.italic)??!1},[e,t]),a=e1(()=>K1.find(l=>l.weight===i&&l.italic===o),[i,o]),s=l=>{const c=K1.find(d=>d.key===l);c&&n("font_style",{weight:c.weight,italic:c.italic})};return r.jsxs("div",{children:[r.jsxs(X7,{children:[r.jsx(J7,{children:P("Font style")}),r.jsx(Wd,{})]}),r.jsx(jt,{options:U7,selected:(a==null?void 0:a.key)??"",onChange:s})]})}var X7=w("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"0.5rem"}),J7=w(wt).withConfig({displayName:"FontStyle___StyledStyledSettingLabel",componentId:"sc-7wg633-0"})({margin:"0px"});const K7=window.React.useContext,q7=window.React.useMemo;function Q7(){const{current:e}=De(),{letterSpacing:t,onChange:n,letterSpacingMin:i,letterSpacingMax:o}=K7(Uo),a=l=>{n("letter_spacing",l)},s=q7(()=>ye(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-letter-spacing",children:r.jsx(In,{title:r.jsx(eb,{children:P("Letter spacing")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var eb=w(wt).withConfig({displayName:"LetterSpacing___StyledStyledSettingLabel",componentId:"sc-1occtdz-0"})({margin:"0px"});const tb=window.React.useContext,nb=window.React.useMemo;function rb(){const{current:e}=De(),{lineHeight:t,onChange:n,lineHeightMin:i,lineHeightMax:o}=tb(Uo),a=l=>{n("line_height",l)},s=nb(()=>ye(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-line-height",children:r.jsx(In,{title:r.jsx(ib,{children:P("Line height")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var ib=w(wt).withConfig({displayName:"LineHeight___StyledStyledSettingLabel",componentId:"sc-15u33dd-0"})({margin:"0px"});const ob=window.React.useContext,Zu=window.React.useMemo,jo=w.span({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center"}),ab=[{value:"uppercase",label:r.jsx(jo,{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(jo,{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(jo,{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"})})})}],sb=[{value:"none",label:r.jsx(jo,{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(jo,{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(jo,{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 lb(){const{current:e}=De(),{transform:t,decoration:n,onChange:i}=ob(Uo),o=Zu(()=>ye(t,e)??"auto",[t,e]),a=Zu(()=>ye(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(cb,{children:P("Type")}),r.jsxs(db,{children:[r.jsx(vn,{canDeselect:!0,options:ab,selected:o,buttonStyle:"solid",onChange:s}),r.jsx(vn,{canDeselect:!0,options:sb,selected:a,buttonStyle:"solid",onChange:l})]})]})}var cb=w(wt)({marginBottom:"0.5rem"}),db=w("div").withConfig({displayName:"Type___StyledDiv",componentId:"sc-1s138yn-0"})({display:"flex",gap:"1rem"});const ub=window.React.useEffect,t1=window.React.useState;function fb({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]=t1(null),[u,f]=t1(null),{styles:h,attributes:m}=fr(c,u),[p,v]=t1(!1),x=()=>{v(!0)},E=()=>{v(!1)};return ub(()=>{const C=j=>{c==null&&u==null&&E(),!(u!=null&&u.contains(j.target))&&!(c!=null&&c.contains(j.target))&&E()};return window.jQuery(document).on("click","body",C),()=>{window.jQuery(document).off("click","body",C)}},[c,u]),r.jsx(I7,{value:e,onChange:t,fontSizeMin:n,fontSizeMax:i,lineHeightMin:o,lineHeightMax:a,letterSpacingMin:s,letterSpacingMax:l,children:r.jsxs(hb,{children:[r.jsx(pb,{onClick:x,ref:d,$_css:[{display:"flex",alignItems:"center",justifyContent:"center"},{height:"30px",width:"30px",cursor:"pointer",borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))",transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#000"}},p&&{outlineColor:"#000"}],children:r.jsx(gb,{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(mb,{className:"font-popup",ref:f,style:h.popper,...m.popper,$_css2:[{marginTop:"0.5rem",marginBottom:"0.5rem",minWidth:"280px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{position:"absolute",zIndex:"99999999",display:"flex",flexDirection:"column",gap:"1.25rem"},{borderRadius:"5px",padding:"20px 16px"},{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsx(Y7,{}),r.jsx(R7,{}),r.jsx(rb,{}),r.jsx(Q7,{}),r.jsx(lb,{})]})]})})}var hb=w("div")({position:"relative"}),pb=w("div")`${e=>e.$_css}`,gb=w("span")({position:"relative",display:"inline-block"}),mb=w("div").withConfig({displayName:"TypographyPicker___StyledDiv3",componentId:"sc-wkun31-0"})(["",""],e=>e.$_css2);const vb=window.React,wb=window.React.useCallback,Wu={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 xb(e){const t=vb.useMemo(()=>e.value,[e.value]),n=wb((o,a)=>{e.onChange(a,[...e.value_path,o],void 0,!0)},[e]),{ResetInheritButton:i}=Ui({inputValue:e.value??Wu,onChange:o=>{Object.keys(e.value).forEach(a=>{e.onChange(o,[...e.value_path,a])})}});return r.jsxs(bb,{children:[r.jsx(i,{}),r.jsx(pt,{title:e.title,className:"mb-0"}),r.jsx(fb,{value:t??Wu,onChange:n})]})}var bb=w("div").withConfig({displayName:"TypographyBuilder___StyledDiv",componentId:"sc-1r71o9z-0"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"});const yb=window.React.useContext,Gu=w.span.withConfig({displayName:"EnabledDevices__StyledOptionLabel",componentId:"sc-1joegxg-0"})({display:"flex",alignItems:"center",gap:"0.5rem"}),Cb=[{value:"desktop",label:r.jsxs(Gu,{children:[r.jsx(Ep,{}),r.jsx("span",{children:"Desktop"})]})},{value:"mobile",label:r.jsxs(Gu,{children:[r.jsx(Dp,{}),r.jsx("span",{children:"Tablet/Mobile"})]})}];function _b(e){const{builder:t}=yb(Jt),n=i=>{const o=e.render_options,a=Le(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(pt,{title:e.title}),r.jsx(vn,{multiple:!0,options:Cb,onChange:n,selected:e.value,buttonStyle:"solid"})]})}const Sb=window.React.useMemo;function Gd(e){const{current:t}=De(),n=Sb(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(ht,{value:n,onChange:e.onChange,wrapperStyle:{width:"100%"},placeholder:e.placeholder??""})]})}const jb=window.React.useMemo;function kb(e){const{current:t}=De(),n=jb(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(ht,{type:"number",value:n,onChange:e.onChange,wrapperStyle:{width:150},min:e.min,max:e.max})]})}const n1=["all","axial","individual"],Eb={all:"All sides",axial:"Horizontal & Vertical",individual:"Individual sides"},Db={all:[{label:"All",sides:["top","right","bottom","left"]}],axial:[{label:"H",sides:["left","right"]},{label:"V",sides:["top","bottom"]}],individual:[{label:"T",sides:["top"]},{label:"R",sides:["right"]},{label:"B",sides:["bottom"]},{label:"L",sides:["left"]}]},$b="#3858e9",Hb="#E3E8EE";function Mb({activeSides:e}){const t=n=>e.includes(n)?$b:Hb;return r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"flex-shrink-0",children:[r.jsx("path",{d:"M5 2H13",stroke:t("top"),strokeWidth:"1.5",strokeLinecap:"round"}),r.jsx("path",{d:"M16 5V13",stroke:t("right"),strokeWidth:"1.5",strokeLinecap:"round"}),r.jsx("path",{d:"M13 16H5",stroke:t("bottom"),strokeWidth:"1.5",strokeLinecap:"round"}),r.jsx("path",{d:"M2 13V5",stroke:t("left"),strokeWidth:"1.5",strokeLinecap:"round"})]})}function Tb({mode:e}){return e==="all"?r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[r.jsx("path",{d:"M6.5 9.5a3.5 3.5 0 004.95 0l1.5-1.5a3.5 3.5 0 00-4.95-4.95L7.1 3.95",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M9.5 6.5a3.5 3.5 0 00-4.95 0l-1.5 1.5a3.5 3.5 0 004.95 4.95l.9-.9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):e==="axial"?r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[r.jsx("path",{d:"M3 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),r.jsx("path",{d:"M5 5.5L3 8L5 10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M11 5.5L13 8L11 10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[r.jsx("circle",{cx:"5",cy:"5",r:"1.5",fill:"currentColor"}),r.jsx("circle",{cx:"11",cy:"5",r:"1.5",fill:"currentColor"}),r.jsx("circle",{cx:"5",cy:"11",r:"1.5",fill:"currentColor"}),r.jsx("circle",{cx:"11",cy:"11",r:"1.5",fill:"currentColor"})]})}function Ib(){return r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",className:"flex-shrink-0",children:r.jsx("path",{d:"M10 1.5l2.5 2.5L4.5 12H2v-2.5L10 1.5z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Lb(e){const t=String(e.top??"0"),n=String(e.right??"0"),i=String(e.bottom??"0"),o=String(e.left??"0");return t===n&&n===i&&i===o?"all":t===i&&o===n?"axial":"individual"}const Uu=window.React.useMemo,Yu=window.React.useState,Ab=["left","right","top","bottom"];function Qp({value:e,onChange:t,title:n="Spacing",units:i=["px","em","rem","%"],aspectTitles:o=null,description:a=""}){const[s,l]=Yu(()=>Lb(e)),c=()=>{const y=n1[(n1.indexOf(s)+1)%n1.length];l(y);const I={...e,is_constraints:y==="all"};y==="all"?I.top=I.right=I.bottom=e.left:y==="axial"&&(I.right=e.left,I.bottom=e.top),t(I)},d=y=>{t({...e,unit:y})},u=y=>I=>{if(typeof I=="string"&&I!=""&&e.unit!=="wp")return;const L={...e};e.is_constraints?L.top=L.left=L.bottom=L.right=I:L[y]=I,t(L)},f=()=>{const y={...e,is_constraints:!e.is_constraints};y.is_constraints&&(y.top=y.right=y.bottom=e.left),t(y)},h=Uu(()=>["0",...window.brandyCustomizerData.theme_settings.spacing.spacingSizes.theme.map(I=>`var(--wp--preset--spacing--${I.slug})`)],[]),m=Uu(()=>{const y={};return h.forEach((I,L)=>{y[L]=String(L)}),y},[h]),p=y=>{const I=String(y??"0");return I==="0"||I===""?0:h.indexOf(I)},v=y=>h[y]??"0",x=y=>p(y)!==-1,[E,C]=Yu(()=>({top:!x(e.top),right:!x(e.right),bottom:!x(e.bottom),left:!x(e.left)})),j=(y,I)=>{const L={...e,is_constraints:s==="all"};y.forEach(F=>{L[F]=I}),t(L)},M=y=>I=>{const L=typeof I=="number"?I:I[0];j(y,v(L))},T=y=>I=>{j(y,I)},_=y=>{C(F=>{const G={...F};return y.forEach(R=>{G[R]=!1}),G});const I={...e,is_constraints:s==="all"};let L=!1;y.forEach(F=>{x(e[F])||(I[F]="0",L=!0)}),L&&t(I)},b=y=>()=>{const L=String(e[y[0]]??"").trim();!L||L==="0"||/^\d+(\.\d+)?$/.test(L)&&j(y,`${L}px`)},$=y=>I=>{if(I.key!=="ArrowUp"&&I.key!=="ArrowDown")return;const F=String(e[y[0]]??"0").match(/^(-?\d+(?:\.\d+)?)\s*(px|em|rem|%|vh|vw)?$/);if(!F)return;I.preventDefault();const G=parseFloat(F[1]),R=F[2]||"px",Z=I.shiftKey?10:1,V=I.key==="ArrowUp"?G+Z:G-Z;j(y,`${Math.max(0,V)}${R}`)},B=y=>{E[y[0]]?_(y):C(L=>{const F={...L};return y.forEach(G=>{F[G]=!0}),F})};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(Jp,{options:[...i,"wp"],value:e.unit,onChange:d})]}),a&&r.jsx("div",{className:"text-[12px] mt-2 mb-2",dangerouslySetInnerHTML:{__html:a}}),e.unit==="wp"?r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{type:"button",onClick:c,className:"p-1 rounded hover:bg-wp-light text-brandy-text-secondary hover:text-wp transition-all ease-in-out duration-base",title:Eb[s],children:r.jsx(Tb,{mode:s})})}),Db[s].map(y=>{const I=String(e[y.sides[0]]??"0"),L=E[y.sides[0]];return r.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[r.jsx(Mb,{activeSides:y.sides}),r.jsx("div",{className:"flex-1 min-w-0",children:L?r.jsx("div",{className:"flex flex-col gap-1",onBlur:b(y.sides),onKeyDown:$(y.sides),children:r.jsx(ht,{value:e[y.sides[0]],onChange:T(y.sides)})}):r.jsx(Kl,{min:0,max:h.length-1,step:1,marks:m,dots:!0,value:p(I),onChange:M(y.sides)})}),r.jsx("button",{type:"button",onClick:()=>B(y.sides),className:"p-0.5 rounded hover:bg-wp-light text-brandy-text-secondary hover:text-wp transition-all ease-in-out duration-base",title:L?"Use preset":"Custom value",children:r.jsx(Ib,{})})]},y.label)})]}):r.jsxs("div",{className:"flex gap-1 items-start",children:[Ab.map((y,I)=>r.jsxs("div",{className:"w-1/4 flex flex-col gap-2 items-center justify-start",children:[r.jsx(ht,{type:"number",value:e[y],onChange:u(y),min:0}),r.jsx("span",{className:"uppercase text-brandy-text-secondary text-[10px] select-none",children:o?o[I]:y})]},y)),r.jsx("div",{onClick:f,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 Rb=window.React.useMemo;function Ob(e){const{current:t}=De(),n=Rb(()=>ye(e.value,t),[t,e.value]),{ResetInheritButton:i}=Ui({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs(Nb,{children:[r.jsx(Qp,{title:r.jsx(pt,{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 Nb=w("div").withConfig({displayName:"SpacingBuilder___StyledDiv",componentId:"sc-8ikjor-0"})({position:"relative"});const Pb=window.React.useMemo,_s=w.span.withConfig({displayName:"AlignmentBuilder__StyledOptionItem",componentId:"sc-1i3hi1g-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Bb=[{value:"left",label:r.jsxs(_s,{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(_s,{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(_s,{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(_s,{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 Vb(e){const t=Pb(()=>(e.available_alignments??["left","center","right"]).map(n=>Bb.find(i=>i.value===n)).filter(n=>n!=null),[e.available_alignments]);return r.jsx(ii,{...e,options:t})}const zb=window.React.useMemo,r1=w.span.withConfig({displayName:"PositionBuilder__StyledOptionItem",componentId:"sc-vce992-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Fb=[{value:"left",label:r.jsxs(r1,{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(r1,{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(r1,{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 Zb(e){const t=zb(()=>(e.available_positions??["left","bottom","right"]).map(n=>Fb.find(i=>i.value===n)??null).filter(n=>n!=null),[e.available_positions]);return r.jsx(ii,{...e,options:t})}const Wb=window.React.useMemo;function Ud(e){const{current:t}=De(),n=Wb(()=>ye(e.value,t),[t,e.value]),{ResetInheritButton:i}=Ui({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(Gb,{children:[r.jsx(i,{}),r.jsx(pt,{title:e.title})]}),r.jsx(jt,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx("div",{className:"text-[12px] italic",dangerouslySetInnerHTML:{__html:e.description}})]})}var Gb=w("div").withConfig({displayName:"DropdownBuilder___StyledDiv",componentId:"sc-133xc9-0"})({position:"relative"});const Ub=window.React.useMemo;function Yb(e){const{current:t}=De(),n=Ub(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(vn,{multiple:!0,options:e.options??[],onChange:e.onChange,selected:n,buttonStyle:"solid"})]})}const Xb=w.div`
  ${{borderBottomWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem","&:last-child":{borderBottomWidth:"0px"}}}
`,Jb=[{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 Kb({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(ny,{children:[r.jsx(wt,{children:r.jsx(ry,{children:"Position"})}),r.jsx(jt,{options:Jb,selected:e,onChange:n,style:{width:200}})]})}const qb=[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}];function Qb({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(iy,{children:[r.jsx(wt,{children:r.jsx(oy,{children:"Size"})}),r.jsx(jt,{options:qb,selected:e,onChange:n,style:{width:200}})]})}function ey({value:e,onChange:t}){const n=i=>{Array.isArray(i)||t(i)};return r.jsxs(ay,{children:[r.jsx(wt,{children:r.jsx(sy,{children:"Overlay color"})}),r.jsx(Ct,{color:e,onChange:n})]})}const oa=w.div({padding:"10px"});function ty({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(Xb,{children:r.jsx(Kp,{value:e.url,onChange:n("url")})}),e.url&&r.jsxs(r.Fragment,{children:[r.jsx(oa,{children:r.jsx(ey,{value:e.overlay_color,onChange:n("overlay_color")})}),r.jsx(oa,{children:r.jsx(Qb,{value:e.size,onChange:n("size")})}),r.jsx(oa,{children:r.jsx(Kb,{value:e.position,onChange:n("position")})}),e.position==="custom"&&r.jsxs(r.Fragment,{children:[r.jsx(oa,{children:r.jsx(In,{min:e.top.min,max:e.top.max,value:e.top,title:r.jsx(wt,{children:r.jsx(ly,{children:"Top"})}),onChange:n("top")})}),r.jsx(oa,{children:r.jsx(In,{min:e.left.min,max:e.left.max,value:e.left,title:r.jsx(wt,{children:r.jsx(cy,{children:"Left"})}),onChange:n("left")})})]})]})]})}var ny=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),ry=w("span")({fontSize:"13px"}),iy=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),oy=w("span")({fontSize:"13px"}),ay=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),sy=w("span")({fontSize:"13px"}),ly=w("span")({fontSize:"13px"}),cy=w("span").withConfig({displayName:"Image___StyledSpan5",componentId:"sc-1ul140t-0"})({fontSize:"13px"});const dy=window.React.createContext,uy=window.React.useEffect,or=window.React.useMemo,i1=window.React.useState,fy=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],hy=dy({});function py({value:e,onChange:t=()=>!1}){const n=or(()=>e.type,[e.type]),i=or(()=>e.solid_color,[e.solid_color]),o=or(()=>e.gradient_color,[e.gradient_color]),a=or(()=>e.image,[e.image]),s=or(()=>Od(i),[i]),l=or(()=>{const _=y=>{t(y,"type")},b=y=>{t(y,"solid_color")},$=Po(y=>{t(y,"gradient_color")},0);return{backgroundType:n,solidColor:i,gradientColor:o,image:a,changeType:_,changeSolidColor:b,changeGradientColor:$,changeImage:y=>{t(y,"image")}}},[n,i,o,a,e,t]),c=or(()=>n==="image"?{backgroundImage:`url(${a.url})`,backgroundPosition:"center",backgroundSize:"contain"}:{background:n==="solid"?s.color:o},[n,s.color,o,a]),[d,u]=i1(null),[f,h]=i1(null),{styles:m,attributes:p}=fr(d,f),[v,x]=i1(!1),E=()=>{x(!0)},C=()=>{x(!1)};uy(()=>{const _=$=>{var y;d==null&&f==null&&C();const B=(y=document.getElementById("brandy-upload-media"))==null?void 0:y.closest(".media-modal.wp-core-ui");!(B!=null&&B.contains($.target))&&!(f!=null&&f.contains($.target))&&!(d!=null&&d.contains($.target))&&C()},b=()=>{const $=window.jQuery("#brandy-upload-media").closest(".media-modal.wp-core-ui").parent();$&&$.remove()};return window.jQuery(document).on("click","body",_),()=>{window.jQuery(document).off("click","body",_),b()}},[d,f]);const j=or(()=>e.type==="solid"?445:e.type==="gradient"?530:e.image.url===""?150:500,[e.type,e.image.url]),M=or(()=>n==="solid"?s.color===""||s.color.endsWith("00")&&s.color.length>7: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,s.color,o,a.url]),T=or(()=>n==="solid"&&s.isGlobal,[n,s.isGlobal]);return r.jsx(hy.Provider,{value:l,children:r.jsxs(gy,{children:[r.jsxs(my,{style:c,ref:u,onClick:E,$_css2:[{display:"flex",height:"30px",width:"30px",cursor:"pointer",alignItems:"center",justifyContent:"center"},{borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#1e1e1e"}},{transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},v&&{outlineColor:"#1e1e1e"},M&&me(["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:[M&&r.jsx(vy,{className:"[&_svg]:fill-[#A1ABB7]",children:r.jsx($p,{})}),T&&!M&&r.jsx(wy,{children:r.jsx(Mp,{})})]}),v&&r.jsx(xy,{ref:h,style:m.popper,...p.popper,$_css3:[{marginTop:"0.5rem",marginBottom:"0.5rem",maxHeight:"700px",width:"314px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{position:"absolute",zIndex:"999992"},{borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},{cursor:"auto"},{"--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{display:"flex",flexDirection:"column"}],children:r.jsxs(Rr,{className:"color-picker-popup",style:{height:j},autoHide:!0,children:[r.jsx(by,{children:r.jsx(vn,{options:fy,selected:n,onChange:l.changeType})}),r.jsxs("div",{children:[n==="solid"&&r.jsx(zp,{color:i,onChange:l.changeSolidColor}),n==="gradient"&&r.jsx(Vp,{value:o,onChange:l.changeGradientColor}),n==="image"&&r.jsx(ty,{value:a,onChange:l.changeImage})]})]})})]})})}var gy=w("div")({position:"relative"}),my=w("div")`${e=>e.$_css2}`,vy=w("span")({position:"relative",display:"inline-block"}),wy=w("span")({position:"relative",display:"inline-block","& svg":{height:"16px",width:"16px",borderRadius:"50%",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(214 214 215 / var(--tw-border-opacity, 1))"},"& svg *[fill]":{fill:"#fff"}}),xy=w("div")`${e=>e.$_css3}`,by=w("div").withConfig({displayName:"BackgroundPicker___StyledDiv4",componentId:"sc-1vzs4ya-0"})({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"});const yy=window.React.useMemo;function Cy(e){const{current:t}=De(),n=yy(()=>ye(e.value,t),[t,e.value]),i=(o,a)=>{e.onChange({...n,[a]:o})};return r.jsxs(_y,{children:[r.jsx(pt,{title:e.title,className:"mb-0"}),r.jsxs(Sy,{children:[r.jsx(ql,{...e,reset_paths:[e.value_path],title:null,reset_action:"row_settings"}),r.jsx(py,{value:n,onChange:i})]})]})}var _y=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Sy=w("div").withConfig({displayName:"BackgroundBuilder___StyledDiv2",componentId:"sc-18ksi7m-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const jy=window.React.useMemo,o1=w.span.withConfig({displayName:"VerticalAlignmentBuilder__StyledOptionItem",componentId:"sc-16og1d2-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),ky=[{value:"top",label:r.jsxs(o1,{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(o1,{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(o1,{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 Ey(e){const t=jy(()=>ky.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(ii,{...e,options:t})}const Dy=window.React.useMemo;function $y(e){return Dy(()=>r.jsxs("div",{children:[r.jsx(Hy,{children:r.jsx(pt,{className:Re(["mb-0"]),title:e.title})}),e.content&&r.jsx("div",{dangerouslySetInnerHTML:{__html:e.content}})]}),[e.content,e.title])}var Hy=w("div").withConfig({displayName:"FlexibleBuilder___StyledDiv",componentId:"sc-17nqz4o-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const My=window.React.useMemo,a1=w.span.withConfig({displayName:"HorizontalAlignmentBuilder__StyledOptionItem",componentId:"sc-1ebs2zw-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Ty=[{value:"left",label:r.jsxs(a1,{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(a1,{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(a1,{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 Iy(e){const t=My(()=>Ty.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(ii,{...e,options:t})}const Ly=window.React.useEffect,eg=[[{key:"formatselect",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fillRule="evenodd" clipRule="evenodd" d="M6.07358 11.2539C6.22954 11.098 6.44103 11.0104 6.66156 11.0104C6.88209 11.0104 7.09358 11.098 7.24954 11.2539L9.9882 13.9926L12.7269 11.2539C12.8036 11.1745 12.8953 11.1111 12.9968 11.0675C13.0983 11.0239 13.2074 11.001 13.3178 11C13.4283 10.9991 13.5378 11.0201 13.64 11.0619C13.7422 11.1037 13.835 11.1655 13.9131 11.2436C13.9912 11.3217 14.053 11.4145 14.0948 11.5167C14.1366 11.6189 14.1576 11.7285 14.1567 11.8389C14.1557 11.9493 14.1328 12.0584 14.0892 12.1599C14.0456 12.2614 13.9823 12.3531 13.9028 12.4299L10.5762 15.7565C10.4202 15.9124 10.2087 16 9.9882 16C9.76767 16 9.55617 15.9124 9.40022 15.7565L6.07358 12.4299C5.91766 12.2739 5.83008 12.0624 5.83008 11.8419C5.83008 11.6214 5.91766 11.4099 6.07358 11.2539Z" fill="#9CA3AF"/><path fillRule="evenodd" clipRule="evenodd" d="M13.9132 8.7461C13.7573 8.90202 13.5458 8.9896 13.3252 8.9896C13.1047 8.9896 12.8932 8.90202 12.7373 8.7461L9.9986 6.00745L7.25994 8.7461C7.18322 8.82554 7.09145 8.88889 6.98999 8.93248C6.88852 8.97607 6.77939 8.99901 6.66896 8.99997C6.55854 9.00093 6.44902 8.97989 6.34682 8.93807C6.24461 8.89625 6.15175 8.8345 6.07367 8.75641C5.99558 8.67833 5.93383 8.58547 5.89201 8.48326C5.85019 8.38105 5.82915 8.27154 5.83011 8.16111C5.83107 8.05069 5.85401 7.94156 5.8976 7.84009C5.94118 7.73862 6.00454 7.64685 6.08397 7.57014L9.41061 4.2435C9.56657 4.08759 9.77807 4 9.9986 4C10.2191 4 10.4306 4.08759 10.5866 4.2435L13.9132 7.57014C14.0691 7.7261 14.1567 7.93759 14.1567 8.15812C14.1567 8.37865 14.0691 8.59015 13.9132 8.7461Z" fill="#9CA3AF"/></svg>'}],[{key:"styleselect",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fillRule="evenodd" clipRule="evenodd" d="M6.07358 11.2539C6.22954 11.098 6.44103 11.0104 6.66156 11.0104C6.88209 11.0104 7.09358 11.098 7.24954 11.2539L9.9882 13.9926L12.7269 11.2539C12.8036 11.1745 12.8953 11.1111 12.9968 11.0675C13.0983 11.0239 13.2074 11.001 13.3178 11C13.4283 10.9991 13.5378 11.0201 13.64 11.0619C13.7422 11.1037 13.835 11.1655 13.9131 11.2436C13.9912 11.3217 14.053 11.4145 14.0948 11.5167C14.1366 11.6189 14.1576 11.7285 14.1567 11.8389C14.1557 11.9493 14.1328 12.0584 14.0892 12.1599C14.0456 12.2614 13.9823 12.3531 13.9028 12.4299L10.5762 15.7565C10.4202 15.9124 10.2087 16 9.9882 16C9.76767 16 9.55617 15.9124 9.40022 15.7565L6.07358 12.4299C5.91766 12.2739 5.83008 12.0624 5.83008 11.8419C5.83008 11.6214 5.91766 11.4099 6.07358 11.2539Z" fill="#9CA3AF"/><path fillRule="evenodd" clipRule="evenodd" d="M13.9132 8.7461C13.7573 8.90202 13.5458 8.9896 13.3252 8.9896C13.1047 8.9896 12.8932 8.90202 12.7373 8.7461L9.9986 6.00745L7.25994 8.7461C7.18322 8.82554 7.09145 8.88889 6.98999 8.93248C6.88852 8.97607 6.77939 8.99901 6.66896 8.99997C6.55854 9.00093 6.44902 8.97989 6.34682 8.93807C6.24461 8.89625 6.15175 8.8345 6.07367 8.75641C5.99558 8.67833 5.93383 8.58547 5.89201 8.48326C5.85019 8.38105 5.82915 8.27154 5.83011 8.16111C5.83107 8.05069 5.85401 7.94156 5.8976 7.84009C5.94118 7.73862 6.00454 7.64685 6.08397 7.57014L9.41061 4.2435C9.56657 4.08759 9.77807 4 9.9986 4C10.2191 4 10.4306 4.08759 10.5866 4.2435L13.9132 7.57014C14.0691 7.7261 14.1567 7.93759 14.1567 8.15812C14.1567 8.37865 14.0691 8.59015 13.9132 8.7461Z" fill="#9CA3AF"/></svg>'}],[{key:"fontsizeselect",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fillRule="evenodd" clipRule="evenodd" d="M6.07358 11.2539C6.22954 11.098 6.44103 11.0104 6.66156 11.0104C6.88209 11.0104 7.09358 11.098 7.24954 11.2539L9.9882 13.9926L12.7269 11.2539C12.8036 11.1745 12.8953 11.1111 12.9968 11.0675C13.0983 11.0239 13.2074 11.001 13.3178 11C13.4283 10.9991 13.5378 11.0201 13.64 11.0619C13.7422 11.1037 13.835 11.1655 13.9131 11.2436C13.9912 11.3217 14.053 11.4145 14.0948 11.5167C14.1366 11.6189 14.1576 11.7285 14.1567 11.8389C14.1557 11.9493 14.1328 12.0584 14.0892 12.1599C14.0456 12.2614 13.9823 12.3531 13.9028 12.4299L10.5762 15.7565C10.4202 15.9124 10.2087 16 9.9882 16C9.76767 16 9.55617 15.9124 9.40022 15.7565L6.07358 12.4299C5.91766 12.2739 5.83008 12.0624 5.83008 11.8419C5.83008 11.6214 5.91766 11.4099 6.07358 11.2539Z" fill="#9CA3AF"/><path fillRule="evenodd" clipRule="evenodd" d="M13.9132 8.7461C13.7573 8.90202 13.5458 8.9896 13.3252 8.9896C13.1047 8.9896 12.8932 8.90202 12.7373 8.7461L9.9986 6.00745L7.25994 8.7461C7.18322 8.82554 7.09145 8.88889 6.98999 8.93248C6.88852 8.97607 6.77939 8.99901 6.66896 8.99997C6.55854 9.00093 6.44902 8.97989 6.34682 8.93807C6.24461 8.89625 6.15175 8.8345 6.07367 8.75641C5.99558 8.67833 5.93383 8.58547 5.89201 8.48326C5.85019 8.38105 5.82915 8.27154 5.83011 8.16111C5.83107 8.05069 5.85401 7.94156 5.8976 7.84009C5.94118 7.73862 6.00454 7.64685 6.08397 7.57014L9.41061 4.2435C9.56657 4.08759 9.77807 4 9.9986 4C10.2191 4 10.4306 4.08759 10.5866 4.2435L13.9132 7.57014C14.0691 7.7261 14.1567 7.93759 14.1567 8.15812C14.1567 8.37865 14.0691 8.59015 13.9132 8.7461Z" fill="#9CA3AF"/></svg>'}],[{key:"undo",icon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fillRule="evenodd" clipRule="evenodd" d="M6.67014 10.75L9.56056 7.49825L8.43945 6.50171L3.96963 11.5303L8.46968 16.0303L9.53034 14.9697L6.81067 12.25H15.9976C16.5992 12.25 16.9909 12.4521 17.2778 12.7483C17.5861 13.0666 17.8156 13.5401 17.9731 14.1307C18.259 15.2035 18.2527 16.4274 18.2485 17.2394C18.248 17.3319 18.2476 17.4191 18.2476 17.5001L19.7476 17.4999C19.7476 17.4272 19.7481 17.345 19.7488 17.2544C19.7544 16.4618 19.7645 15.0276 19.4224 13.7443C19.23 13.0224 18.9096 12.2771 18.3553 11.7048C17.7797 11.1104 16.9963 10.75 15.9976 10.75H6.67014Z" fill="#1E1E1E"/> </svg>'},{key:"redo",icon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fillRule="evenodd" clipRule="evenodd" d="M17.3299 10.75L14.4394 7.49825L15.5606 6.50171L20.0304 11.5303L15.5303 16.0303L14.4697 14.9697L17.1893 12.25H8.00243C7.40083 12.25 7.00906 12.4521 6.72218 12.7483C6.41392 13.0666 6.18438 13.5401 6.02694 14.1307C5.74096 15.2035 5.7473 16.4274 5.75151 17.2394C5.75199 17.3319 5.75244 17.4191 5.75243 17.5001L4.25243 17.4999C4.25244 17.4272 4.25186 17.345 4.25122 17.2544C4.24561 16.4618 4.23546 15.0276 4.57756 13.7443C4.77001 13.0224 5.09039 12.2771 5.64466 11.7048C6.22031 11.1104 7.00368 10.75 8.00243 10.75H17.3299Z" fill="#1E1E1E"/> </svg>'}],[{key:"bold",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.74 8.34C13.5133 8.91333 14.4 10.14 14.4 12.02C14.4 13.2733 13.9933 14.2533 13.18 14.96C12.3667 15.6533 11.2533 16 9.84 16H4V2H9.28C11.9467 2 13.28 3.12667 13.28 5.38C13.28 6.76667 12.7667 7.75333 11.74 8.34ZM6.56 7.5H8.9C9.52667 7.5 9.99333 7.37333 10.3 7.12C10.6067 6.85333 10.76 6.44667 10.76 5.9C10.76 5.32667 10.6067 4.91333 10.3 4.66C9.99333 4.40667 9.52667 4.28 8.9 4.28H6.56V7.5ZM9.46 13.72C10.2067 13.72 10.7733 13.5733 11.16 13.28C11.56 12.9733 11.76 12.46 11.76 11.74C11.76 11.0333 11.5533 10.5333 11.14 10.24C10.74 9.93333 10.18 9.78 9.46 9.78H6.56V13.72H9.46Z" fill="#1E1E1E"/></svg>'},{key:"italic",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 2L8.6 16H7L9.4 2H11Z" fill="#1E1E1E" /></svg>'},{key:"underline",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M4 15V16H14V15H4ZM9 13C10.5 13 11.6 12.6 12.4 11.8C13.2 11 13.5 9.8 13.5 8.3V2H12V7.8C12 9 11.8 9.9 11.4 10.6C11 11.3 10.2 11.6 9 11.6C7.8 11.6 7 11.3 6.6 10.6C6.2 9.9 6 9 6 7.8V2H4.5V8.2C4.5 9.7 4.9 10.9 5.6 11.7C6.4 12.6 7.5 13 9 13Z" fill="#1E1E1E"/></svg>'},{key:"strikethrough",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.1 6V5.5C6.1 4.9 6.3 4.4 6.8 4.1C7.3 3.8 8 3.6 8.8 3.6C9.5 3.6 10.2 3.7 10.9 3.9C11.6 4.1 12.3 4.4 13 4.8L13.2 2.9C12.6 2.6 12 2.4 11.3 2.2C10.5 2.1 9.7 2 8.9 2C7.4 2 6.2 2.3 5.3 3C4.5 3.7 4.1 4.5 4.1 5.6V6H6.1ZM17 9H1V10H9.3C9.6 10.1 9.9 10.2 10.1 10.3C10.6 10.5 11 10.8 11.2 11.1C11.5 11.4 11.6 11.8 11.6 12.3C11.6 13 11.4 13.4 10.8 13.8C10.3 14.1 9.6 14.3 8.7 14.3C7.9 14.3 7.1 14.2 6.3 14C5.5 13.8 4.8 13.5 4.1 13.2L4 15.1C4.5 15.3 5.2 15.5 6 15.7C6.8 15.9 7.6 16 8.4 16C10.1 16 11.4 15.7 12.3 15C13.2 14.3 13.6 13.4 13.6 12.2C13.6 11.3 13.4 10.5 12.9 10H17V9Z"fill="#1E1E1E"/></svg>'}],[{key:"bullist",icon:'<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M8.82363 12.8H17.7236V11.3H8.82363V12.8ZM8.82363 4.2V5.7H17.7236V4.2H8.82363ZM3.72363 10C2.62363 10 1.72363 10.9 1.72363 12C1.72363 13.1 2.62363 14 3.72363 14C4.82363 14 5.72363 13.1 5.72363 12C5.72363 10.9 4.82363 10 3.72363 10ZM3.72363 3C2.62363 3 1.72363 3.9 1.72363 5C1.72363 6.1 2.62363 7 3.72363 7C4.82363 7 5.72363 6.1 5.72363 5C5.72363 3.9 4.82363 3 3.72363 3Z" fill="#1E1E1E" /></svg>'},{key:"numlist",icon:'<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.02363 13.5H17.9236V12H9.02363V13.5ZM9.02363 4.9V6.4H17.9236V4.9H9.02363ZM2.92363 4.4V7.7H3.92363V3L1.72363 3.7L2.12363 4.7L2.92363 4.4ZM2.52363 10.1C2.22363 10.2 2.02363 10.3 1.82363 10.4L1.92363 11.5C2.12363 11.3 2.42363 11.1 2.72363 11C3.02363 10.9 3.32363 11 3.42363 11.1C3.62363 11.4 3.42363 11.9 3.22363 12.2C2.72363 13 2.32363 13.8 1.82363 14.7H4.52363V13.7H3.52363C3.82363 13.1 4.32363 12.3 4.42363 11.6C4.52363 11.3 4.42363 10.8 4.22363 10.5C3.72363 9.9 2.92363 10 2.52363 10.1Z" fill="#1E1E1E"/></svg>'},{key:"indent",icon:'<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M17.1714 2.5H1.17139V1H17.1714V2.5ZM9.17139 9.5H1.17139V8H9.17139V9.5ZM17.1714 17V15.5H1.17139V17H17.1714ZM17.2017 6.03033L14.2321 9L17.2017 11.9697L16.1411 13.0303L12.6411 9.5303L12.1107 9L12.6411 8.4697L16.1411 4.96967L17.2017 6.03033Z" fill="#1E1E1E"/></svg>'},{key:"outdent",icon:'<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.1714 2.5H1.17139V1H17.1714V2.5ZM9.17139 9.5H1.17139V8H9.17139V9.5ZM17.1714 17V15.5H1.17139V17H17.1714ZM12.6411 11.9697L15.6107 9L12.6411 6.03033L13.7017 4.96967L17.2017 8.4697L17.7321 9L17.2017 9.5303L13.7017 13.0303L12.6411 11.9697Z" fill="#1E1E1E" /></svg>'}],[{key:"alignleft",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M0 16.6H10.0125V15.1H0V16.6ZM10.0125 1H0V2.5H10.0125V1ZM0 8V9.5H18V8H0Z" fill="#1E1E1E" /></svg>'},{key:"aligncenter",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M13.95 1H4.05V2.5H14.0625V1H13.95ZM0 8V9.5H18V8H0ZM4.05 16.6H14.0625V15.1H4.05V16.6Z" fill="#1E1E1E" /></svg>'},{key:"alignright",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.9875 17.55H18V15.8625H7.9875V17.55ZM7.9875 0V1.6875H18V0H7.9875ZM0 9.675H18V7.9875H0V9.675Z" fill="#1E1E1E" /></svg>'},{key:"alignjustify",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 9.5H18V8H0V9.5ZM0 16.5H18V15H0V16.5ZM0 1V2.5H18V1H0Z" fill="#1E1E1E" /></svg>'}],[{key:"link",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.6818 4H11.0455V5.5H12.6818C14.7273 5.5 16.4659 7.2 16.4659 9.2C16.4659 11.2 14.7273 12.9 12.6818 12.9H11.0455V14.4H12.6818C15.5455 14.4 18 12.1 18 9.2C18 6.3 15.6477 4 12.6818 4ZM1.53409 9.2C1.53409 7.2 3.27273 5.5 5.31818 5.5H6.95455V4H5.31818C2.35227 4 0 6.3 0 9.2C0 12.1 2.35227 14.4 5.31818 14.4H6.95455V12.9H5.31818C3.27273 12.9 1.53409 11.2 1.53409 9.2ZM6.23864 10.1H11.6591V8.6H6.23864V10.1Z" fill="#1E1E1E"/></svg>'}],[{key:"fontselect",icon:'<svg width="21" height="9" viewBox="0 0 21 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.880682 8V0.727273H5.24148V1.50852H1.76136V3.96591H4.91477V4.74716H1.76136V8H0.880682ZM8.4517 8.11364C7.95928 8.11364 7.52723 7.99645 7.15554 7.76207C6.78622 7.5277 6.4974 7.19981 6.28906 6.77841C6.0831 6.35701 5.98011 5.86458 5.98011 5.30114C5.98011 4.73295 6.0831 4.23698 6.28906 3.81321C6.4974 3.38944 6.78622 3.06037 7.15554 2.82599C7.52723 2.59162 7.95928 2.47443 8.4517 2.47443C8.94413 2.47443 9.375 2.59162 9.74432 2.82599C10.116 3.06037 10.4048 3.38944 10.6108 3.81321C10.8191 4.23698 10.9233 4.73295 10.9233 5.30114C10.9233 5.86458 10.8191 6.35701 10.6108 6.77841C10.4048 7.19981 10.116 7.5277 9.74432 7.76207C9.375 7.99645 8.94413 8.11364 8.4517 8.11364ZM8.4517 7.3608C8.82576 7.3608 9.13352 7.26491 9.375 7.07315C9.61648 6.88139 9.79522 6.62926 9.91122 6.31676C10.0272 6.00426 10.0852 5.66572 10.0852 5.30114C10.0852 4.93655 10.0272 4.59683 9.91122 4.28196C9.79522 3.96709 9.61648 3.71259 9.375 3.51847C9.13352 3.32434 8.82576 3.22727 8.4517 3.22727C8.07765 3.22727 7.76989 3.32434 7.52841 3.51847C7.28693 3.71259 7.10819 3.96709 6.99219 4.28196C6.87618 4.59683 6.81818 4.93655 6.81818 5.30114C6.81818 5.66572 6.87618 6.00426 6.99219 6.31676C7.10819 6.62926 7.28693 6.88139 7.52841 7.07315C7.76989 7.26491 8.07765 7.3608 8.4517 7.3608ZM13.0407 4.71875V8H12.2026V2.54545H13.0123V3.39773H13.0833C13.2111 3.12074 13.4052 2.8982 13.6657 2.73011C13.9261 2.55966 14.2623 2.47443 14.6742 2.47443C15.0435 2.47443 15.3667 2.55019 15.6436 2.7017C15.9206 2.85085 16.1361 3.07812 16.29 3.38352C16.4438 3.68655 16.5208 4.07008 16.5208 4.53409V8H15.6827V4.59091C15.6827 4.16241 15.5714 3.8286 15.3489 3.58949C15.1264 3.34801 14.821 3.22727 14.4327 3.22727C14.1652 3.22727 13.9261 3.28527 13.7154 3.40128C13.507 3.51728 13.3425 3.68655 13.2218 3.90909C13.101 4.13163 13.0407 4.40152 13.0407 4.71875ZM20.4244 2.54545V3.25568H17.5977V2.54545H20.4244ZM18.4215 1.23864H19.2596V6.4375C19.2596 6.67424 19.2939 6.8518 19.3626 6.97017C19.4336 7.08617 19.5236 7.1643 19.6325 7.20455C19.7437 7.24242 19.8609 7.26136 19.984 7.26136C20.0763 7.26136 20.1521 7.25663 20.2113 7.24716C20.2705 7.23532 20.3178 7.22585 20.3533 7.21875L20.5238 7.97159C20.467 7.9929 20.3877 8.0142 20.2859 8.03551C20.1841 8.05919 20.055 8.07102 19.8988 8.07102C19.6621 8.07102 19.43 8.02012 19.2028 7.91832C18.9779 7.81652 18.7908 7.66146 18.6417 7.45312C18.4949 7.24479 18.4215 6.98201 18.4215 6.66477V1.23864Z" fill="black"/></svg>'},{key:"forecolor",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.6818 4H11.0455V5.5H12.6818C14.7273 5.5 16.4659 7.2 16.4659 9.2C16.4659 11.2 14.7273 12.9 12.6818 12.9H11.0455V14.4H12.6818C15.5455 14.4 18 12.1 18 9.2C18 6.3 15.6477 4 12.6818 4ZM1.53409 9.2C1.53409 7.2 3.27273 5.5 5.31818 5.5H6.95455V4H5.31818C2.35227 4 0 6.3 0 9.2C0 12.1 2.35227 14.4 5.31818 14.4H6.95455V12.9H5.31818C3.27273 12.9 1.53409 11.2 1.53409 9.2ZM6.23864 10.1H11.6591V8.6H6.23864V10.1Z" fill="#1E1E1E"/></svg>'},{key:"backcolor",icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.6818 4H11.0455V5.5H12.6818C14.7273 5.5 16.4659 7.2 16.4659 9.2C16.4659 11.2 14.7273 12.9 12.6818 12.9H11.0455V14.4H12.6818C15.5455 14.4 18 12.1 18 9.2C18 6.3 15.6477 4 12.6818 4ZM1.53409 9.2C1.53409 7.2 3.27273 5.5 5.31818 5.5H6.95455V4H5.31818C2.35227 4 0 6.3 0 9.2C0 12.1 2.35227 14.4 5.31818 14.4H6.95455V12.9H5.31818C3.27273 12.9 1.53409 11.2 1.53409 9.2ZM6.23864 10.1H11.6591V8.6H6.23864V10.1Z" fill="#1E1E1E"/></svg>'}]],Ay=eg.reduce((e,t)=>[...e,t.map(n=>n.key).join(" ")],[]).join(" | "),Ry=eg.reduce((e,t)=>[...e,...t],[]);function Oy({id:e,value:t,onChange:n}){Ly(()=>{var a,s,l,c;window.wp.editor.initialize(e,{tinymce:{class:"brandy-tinymce",toolbar1:Ay,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 h,m;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 E;const x=Ry[v];if(x){if(["fontsizeselect","formatselect","styleselect"].includes(x.key)){const C=new DOMParser().parseFromString(x.icon,"image/svg+xml").documentElement;(E=p.querySelector(".mce-caret"))==null||E.replaceWith(C);return}if(["forecolor","backcolor"].includes(x.key))return;p.innerHTML=x.icon}});const f=document.createElement("button");f.className="insert-media add_media brandy-insert-media",f.innerHTML="+ Add media",(m=(h=d.querySelector(".mce-last.mce-btn-group"))==null?void 0:h.parentElement)==null||m.appendChild(f)}),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 Ny=window.React.useMemo;function tg({id:e,value:t,onChange:n}){const i=Ny(()=>t,[t]),o=l=>{n(l),s(l)},s=Po(l=>l,200);return r.jsx(Oy,{id:e,onChange:o,value:i})}const Py=window.React.useMemo,By=window.React.useState;function Vy(e){const t=Py(()=>e.prefilleds??[],[e.prefilleds]),n=a=>{const s=window.tinymce.get(e.sectionId);s&&s.setContent(a),e.onChange(a)},[i,o]=By(!1);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsxs("div",{className:"bg-[#F6F7F7] rounded-base overflow-hidden",children:[r.jsx(tg,{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(zy,{children:e.description})]})}var zy=w("div").withConfig({displayName:"PrefilledHTML___StyledDiv",componentId:"sc-uzr3vx-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});function Fy(e){return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(tg,{value:e.value,onChange:e.onChange,id:e.sectionId,toolbars:""}),e.description&&r.jsx(Zy,{children:e.description})]},e.sectionId)}var Zy=w("div").withConfig({displayName:"HTMLBuilder___StyledDiv",componentId:"sc-kly0zw-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});const Wy=window.React.useState;function Gy(e){const[t,n]=Wy(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{__:Xu}=window.wp.i18n,{__experimentalLibrary:Uy}=window.wp.blockEditor;function Yy({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:Xu("Add a block")}),r.jsx("button",{className:"customize-widgets-layout__inserter-panel-header-close-button w-[24px] h-[24px]",onClick:e,"aria-label":Xu("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(Uy,{onSelect:e})})]})}const Xy=window.React.useContext,Ju=window.React.useSyncExternalStore,Jy=window.ReactDOM.createPortal;function Ky(){const{inserter:e,sidebar:t}=Xy(Yd),{isOpen:n,openInserter:i,closeInserter:o,toggleInserter:a}=Gy(e),s=Ju(an.subscribe,()=>an.canUndo()),l=Ju(an.subscribe,()=>an.canRedo()),c=p=>{p.preventDefault(),p.stopPropagation(),i()},d=p=>{p!=null&&p.preventDefault&&p.preventDefault(),p!=null&&p.stopPropagation&&p.stopPropagation(),o()},u=p=>{p.preventDefault(),p.stopPropagation(),a()},f=p=>{p.preventDefault(),p.stopPropagation(),an.canUndo()?an.undo():t.undo()},h=p=>{p.preventDefault(),p.stopPropagation(),an.canRedo()?an.redo():t.redo()},m=Jy(n?r.jsx(Yy,{onOpen:c,onClose:d}):!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:f,className:Re(["rounded-md cursor-pointer",!s&&!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:h,className:Re(["rounded-md cursor-pointer",!l&&!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:u,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"})})})]}),m]})}const qy=window.React.useEffect,{useDispatch:Qy,useSelect:eC}=window.wp.data,{store:Ku}=window.wp.blockEditor;function tC(e,t){const{hasSelectedBlock:n,hasMultiSelection:i}=eC(Ku),{clearSelectedBlock:o}=Qy(Ku);qy(()=>{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 nC(e,t){return e==null||e!==e?t:e}var rC=nC;const iC=bn(rC),oC=window.React.useMemo,{useSelect:aC}=window.wp.data,{store:sC}=window.wp.coreData,{uploadMedia:lC}=window.wp.mediaUtils;function ng(){const e=window.brandyWidgetsBlockEditorSettings,{hasUploadPermission:t}=aC(i=>({hasUploadPermission:iC(i(sC).canUser("create","media"),!0)}));return{settings:oC(()=>{let i;return t&&(i=({onError:o,...a})=>{lC({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:s})=>o(s),...a})}),{...e,mediaUpload:i,__unstableHasCustomAppender:!0,keepCaretInsideBlock:!0}},[t])}}var ol={exports:{}};ol.exports;(function(e,t){var n=200,i="Expected a function",o="__lodash_hash_undefined__",a=500,s=1,l=2,c=4,d=800,u=16,f=1/0,h=9007199254740991,m="[object Arguments]",p="[object Array]",v="[object AsyncFunction]",x="[object Boolean]",E="[object Date]",C="[object Error]",j="[object Function]",M="[object GeneratorFunction]",T="[object Map]",_="[object Number]",b="[object Null]",$="[object Object]",B="[object Promise]",y="[object Proxy]",I="[object RegExp]",L="[object Set]",F="[object String]",G="[object Symbol]",R="[object Undefined]",Z="[object WeakMap]",V="[object ArrayBuffer]",U="[object DataView]",O="[object Float32Array]",X="[object Float64Array]",ee="[object Int8Array]",q="[object Int16Array]",ae="[object Int32Array]",ce="[object Uint8Array]",W="[object Uint8ClampedArray]",re="[object Uint16Array]",he="[object Uint32Array]",de=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,se=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/[\\^$.*+?()[\]{}|]/g,et=/\\(\\)?/g,S=/\w*$/,A=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,Y={};Y[O]=Y[X]=Y[ee]=Y[q]=Y[ae]=Y[ce]=Y[W]=Y[re]=Y[he]=!0,Y[m]=Y[p]=Y[V]=Y[x]=Y[U]=Y[E]=Y[C]=Y[j]=Y[T]=Y[_]=Y[$]=Y[I]=Y[L]=Y[F]=Y[Z]=!1;var J={};J[m]=J[p]=J[V]=J[U]=J[x]=J[E]=J[O]=J[X]=J[ee]=J[q]=J[ae]=J[T]=J[_]=J[$]=J[I]=J[L]=J[F]=J[G]=J[ce]=J[W]=J[re]=J[he]=!0,J[C]=J[j]=J[Z]=!1;var te=typeof ut=="object"&&ut&&ut.Object===Object&&ut,ve=typeof self=="object"&&self&&self.Object===Object&&self,ue=te||ve||Function("return this")(),Oe=t&&!t.nodeType&&t,Pe=Oe&&!0&&e&&!e.nodeType&&e,Pt=Pe&&Pe.exports===Oe,Ge=Pt&&te.process,fn=function(){try{var g=Pe&&Pe.require&&Pe.require("util").types;return g||Ge&&Ge.binding&&Ge.binding("util")}catch{}}(),Kn=fn&&fn.isMap,Bt=fn&&fn.isSet,Cn=fn&&fn.isTypedArray;function Ji(g,D,N){switch(N.length){case 0:return g.call(D);case 1:return g.call(D,N[0]);case 2:return g.call(D,N[0],N[1]);case 3:return g.call(D,N[0],N[1],N[2])}return g.apply(D,N)}function Vt(g,D){for(var N=-1,Q=g==null?0:g.length;++N<Q&&D(g[N],N,g)!==!1;);return g}function hn(g,D){for(var N=-1,Q=g==null?0:g.length,ge=0,Ee=[];++N<Q;){var Ve=g[N];D(Ve,N,g)&&(Ee[ge++]=Ve)}return Ee}function oi(g,D){for(var N=-1,Q=g==null?0:g.length,ge=Array(Q);++N<Q;)ge[N]=D(g[N],N,g);return ge}function Lt(g,D){for(var N=-1,Q=D.length,ge=g.length;++N<Q;)g[ge+N]=D[N];return g}function hr(g,D){for(var N=-1,Q=Array(g);++N<g;)Q[N]=D(N);return Q}function Kt(g){return function(D){return g(D)}}function Pr(g,D){return g==null?void 0:g[D]}function Br(g,D){return function(N){return g(D(N))}}var Yo=Array.prototype,qt=Function.prototype,qn=Object.prototype,ai=ue["__core-js_shared__"],Qn=qt.toString,xt=qn.hasOwnProperty,Rn=function(){var g=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),Vr=qn.toString,si=Qn.call(Object),zr=RegExp("^"+Qn.call(xt).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qt=Pt?ue.Buffer:void 0,On=ue.Symbol,Ki=ue.Uint8Array,qi=Qt?Qt.allocUnsafe:void 0,Fr=Br(Object.getPrototypeOf,Object),li=Object.create,_n=qn.propertyIsEnumerable,ci=Yo.splice,pn=On?On.isConcatSpreadable:void 0,Sn=On?On.toStringTag:void 0,pr=function(){try{var g=kn(Object,"defineProperty");return g({},"",{}),g}catch{}}(),di=Object.getOwnPropertySymbols,ze=Qt?Qt.isBuffer:void 0,Ce=Br(Object.keys,Object),He=Math.max,ot=Date.now,Xe=kn(ue,"DataView"),kt=kn(ue,"Map"),At=kn(ue,"Promise"),zt=kn(ue,"Set"),bt=kn(ue,"WeakMap"),jn=kn(Object,"create"),gr=gi(Xe),mr=gi(kt),Xo=gi(At),ic=gi(zt),Qi=gi(bt),eo=On?On.prototype:void 0,ss=eo?eo.valueOf:void 0,Nn=eo?eo.toString:void 0,oc=function(){function g(){}return function(D){if(!qo(D))return{};if(li)return li(D);g.prototype=D;var N=new g;return g.prototype=void 0,N}}();function vr(g){var D=-1,N=g==null?0:g.length;for(this.clear();++D<N;){var Q=g[D];this.set(Q[0],Q[1])}}function ac(){this.__data__=jn?jn(null):{},this.size=0}function sc(g){var D=this.has(g)&&delete this.__data__[g];return this.size-=D?1:0,D}function lc(g){var D=this.__data__;if(jn){var N=D[g];return N===o?void 0:N}return xt.call(D,g)?D[g]:void 0}function cc(g){var D=this.__data__;return jn?D[g]!==void 0:xt.call(D,g)}function to(g,D){var N=this.__data__;return this.size+=this.has(g)?0:1,N[g]=jn&&D===void 0?o:D,this}vr.prototype.clear=ac,vr.prototype.delete=sc,vr.prototype.get=lc,vr.prototype.has=cc,vr.prototype.set=to;function Pn(g){var D=-1,N=g==null?0:g.length;for(this.clear();++D<N;){var Q=g[D];this.set(Q[0],Q[1])}}function ui(){this.__data__=[],this.size=0}function ls(g){var D=this.__data__,N=no(D,g);if(N<0)return!1;var Q=D.length-1;return N==Q?D.pop():ci.call(D,N,1),--this.size,!0}function cs(g){var D=this.__data__,N=no(D,g);return N<0?void 0:D[N][1]}function dc(g){return no(this.__data__,g)>-1}function uc(g,D){var N=this.__data__,Q=no(N,g);return Q<0?(++this.size,N.push([g,D])):N[Q][1]=D,this}Pn.prototype.clear=ui,Pn.prototype.delete=ls,Pn.prototype.get=cs,Pn.prototype.has=dc,Pn.prototype.set=uc;function er(g){var D=-1,N=g==null?0:g.length;for(this.clear();++D<N;){var Q=g[D];this.set(Q[0],Q[1])}}function fc(){this.size=0,this.__data__={hash:new vr,map:new(kt||Pn),string:new vr}}function ds(g){var D=pi(this,g).delete(g);return this.size-=D?1:0,D}function hc(g){return pi(this,g).get(g)}function pc(g){return pi(this,g).has(g)}function us(g,D){var N=pi(this,g),Q=N.size;return N.set(g,D),this.size+=N.size==Q?0:1,this}er.prototype.clear=fc,er.prototype.delete=ds,er.prototype.get=hc,er.prototype.has=pc,er.prototype.set=us;function Bn(g){var D=this.__data__=new Pn(g);this.size=D.size}function Zr(){this.__data__=new Pn,this.size=0}function gc(g){var D=this.__data__,N=D.delete(g);return this.size=D.size,N}function mc(g){return this.__data__.get(g)}function tr(g){return this.__data__.has(g)}function vc(g,D){var N=this.__data__;if(N instanceof Pn){var Q=N.__data__;if(!kt||Q.length<n-1)return Q.push([g,D]),this.size=++N.size,this;N=this.__data__=new er(Q)}return N.set(g,D),this.size=N.size,this}Bn.prototype.clear=Zr,Bn.prototype.delete=gc,Bn.prototype.get=mc,Bn.prototype.has=tr,Bn.prototype.set=vc;function fs(g,D){var N=mi(g),Q=!N&&f0(g),ge=!N&&!Q&&p0(g),Ee=!N&&!Q&&!ge&&k3(g),Ve=N||Q||ge||Ee,nt=Ve?hr(g.length,String):[],zn=nt.length;for(var Fn in g)(D||xt.call(g,Fn))&&!(Ve&&(Fn=="length"||ge&&(Fn=="offset"||Fn=="parent")||Ee&&(Fn=="buffer"||Fn=="byteLength"||Fn=="byteOffset")||c3(Fn,zn)))&&nt.push(Fn);return nt}function hs(g,D,N){var Q=g[D];(!(xt.call(g,D)&&u0(Q,N))||N===void 0&&!(D in g))&&Jo(g,D,N)}function no(g,D){for(var N=g.length;N--;)if(u0(g[N][0],D))return N;return-1}function wc(g,D){return g&&Ht(D,Dc(D),g)}function wr(g,D){return g&&Ht(D,$c(D),g)}function Jo(g,D,N){D=="__proto__"&&pr?pr(g,D,{configurable:!0,enumerable:!0,value:N,writable:!0}):g[D]=N}function ro(g,D,N,Q,ge,Ee){var Ve,nt=D&s,zn=D&l,Fn=D&c;if(N&&(Ve=ge?N(g,Q,ge,Ee):N(g)),Ve!==void 0)return Ve;if(!qo(g))return g;var w0=mi(g);if(w0){if(Ve=o3(g),!nt)return Ft(g,Ve)}else{var ao=br(g),x0=ao==j||ao==M;if(p0(g))return We(g,nt);if(ao==$||ao==m||x0&&!ge){if(Ve=zn||x0?{}:a3(g),!nt)return zn?en(g,wr(Ve,g)):Et(g,wc(Ve,g))}else{if(!J[ao])return ge?g:{};Ve=s3(g,ao,nt)}}Ee||(Ee=new Bn);var b0=Ee.get(g);if(b0)return b0;Ee.set(g,Ve),j3(g)?g.forEach(function(Wr){Ve.add(ro(Wr,D,N,Wr,g,Ee))}):_3(g)&&g.forEach(function(Wr,wi){Ve.set(wi,ro(Wr,D,N,wi,g,Ee))});var T3=Fn?zn?rr:Vn:zn?$c:Dc,y0=w0?void 0:T3(g);return Vt(y0||g,function(Wr,wi){y0&&(wi=Wr,Wr=g[wi]),hs(Ve,wi,ro(Wr,D,N,wi,g,Ee))}),Ve}function fi(g,D,N,Q,ge){var Ee=-1,Ve=g.length;for(N||(N=l3),ge||(ge=[]);++Ee<Ve;){var nt=g[Ee];D>0&&N(nt)?D>1?fi(nt,D-1,N,Q,ge):Lt(ge,nt):Q||(ge[ge.length]=nt)}return ge}function xc(g,D){D=le(D,g);for(var N=0,Q=D.length;g!=null&&N<Q;)g=g[jc(D[N++])];return N&&N==Q?g:void 0}function io(g,D,N){var Q=D(g);return mi(g)?Q:Lt(Q,N(g))}function xr(g){return g==null?g===void 0?R:b:Sn&&Sn in Object(g)?oo(g):g3(g)}function Ko(g){return vi(g)&&xr(g)==m}function ps(g){return vi(g)&&br(g)==T}function gs(g){if(!qo(g)||f3(g))return!1;var D=g0(g)?zr:A;return D.test(gi(g))}function hi(g){return vi(g)&&br(g)==L}function ms(g){return vi(g)&&m0(g.length)&&!!Y[xr(g)]}function bc(g){if(!Sc(g))return Ce(g);var D=[];for(var N in Object(g))xt.call(g,N)&&N!="constructor"&&D.push(N);return D}function yc(g){if(!qo(g))return p3(g);var D=Sc(g),N=[];for(var Q in g)Q=="constructor"&&(D||!xt.call(g,Q))||N.push(Q);return N}var Cc=pr?function(g,D){return pr(g,"toString",{configurable:!0,enumerable:!1,value:$3(D),writable:!0})}:H3;function k(g,D,N){var Q=-1,ge=g.length;D<0&&(D=-D>ge?0:ge+D),N=N>ge?ge:N,N<0&&(N+=ge),ge=D>N?0:N-D>>>0,D>>>=0;for(var Ee=Array(ge);++Q<ge;)Ee[Q]=g[Q+D];return Ee}function z(g){if(typeof g=="string")return g;if(mi(g))return oi(g,z)+"";if(Ec(g))return Nn?Nn.call(g):"";var D=g+"";return D=="0"&&1/g==-f?"-0":D}function K(g,D){D=le(D,g);var N=-1,Q=D.length;if(!Q)return!0;for(;++N<Q;){var ge=jc(D[N]);if(ge==="__proto__"&&!xt.call(g,"__proto__")||(ge==="constructor"||ge==="prototype")&&N<Q-1)return!1}var Ee=v3(g,D);return Ee==null||delete Ee[jc(C3(D))]}function le(g,D){return mi(g)?g:d3(g,D)?[g]:b3(E3(g))}function We(g,D){if(D)return g.slice();var N=g.length,Q=qi?qi(N):new g.constructor(N);return g.copy(Q),Q}function _e(g){var D=new g.constructor(g.byteLength);return new Ki(D).set(new Ki(g)),D}function tt(g,D){var N=D?_e(g.buffer):g.buffer;return new g.constructor(N,g.byteOffset,g.byteLength)}function gt(g){var D=new g.constructor(g.source,S.exec(g));return D.lastIndex=g.lastIndex,D}function yt(g){return ss?Object(ss.call(g)):{}}function Je(g,D){var N=D?_e(g.buffer):g.buffer;return new g.constructor(N,g.byteOffset,g.length)}function Ft(g,D){var N=-1,Q=g.length;for(D||(D=Array(Q));++N<Q;)D[N]=g[N];return D}function Ht(g,D,N,Q){var ge=!N;N||(N={});for(var Ee=-1,Ve=D.length;++Ee<Ve;){var nt=D[Ee],zn=Q?Q(N[nt],g[nt],nt,N,g):void 0;zn===void 0&&(zn=g[nt]),ge?Jo(N,nt,zn):hs(N,nt,zn)}return N}function Et(g,D){return Ht(g,_c(g),D)}function en(g,D){return Ht(g,d0(g),D)}function tn(g){return S3(g)?void 0:g}function nr(g){return w3(m3(g,void 0,y3),g+"")}function Vn(g){return io(g,Dc,_c)}function rr(g){return io(g,$c,d0)}function pi(g,D){var N=g.__data__;return u3(D)?N[typeof D=="string"?"string":"hash"]:N.map}function kn(g,D){var N=Pr(g,D);return gs(N)?N:void 0}function oo(g){var D=xt.call(g,Sn),N=g[Sn];try{g[Sn]=void 0;var Q=!0}catch{}var ge=Vr.call(g);return Q&&(D?g[Sn]=N:delete g[Sn]),ge}var _c=di?function(g){return g==null?[]:(g=Object(g),hn(di(g),function(D){return _n.call(g,D)}))}:v0,d0=di?function(g){for(var D=[];g;)Lt(D,_c(g)),g=Fr(g);return D}:v0,br=xr;(Xe&&br(new Xe(new ArrayBuffer(1)))!=U||kt&&br(new kt)!=T||At&&br(At.resolve())!=B||zt&&br(new zt)!=L||bt&&br(new bt)!=Z)&&(br=function(g){var D=xr(g),N=D==$?g.constructor:void 0,Q=N?gi(N):"";if(Q)switch(Q){case gr:return U;case mr:return T;case Xo:return B;case ic:return L;case Qi:return Z}return D});function o3(g){var D=g.length,N=new g.constructor(D);return D&&typeof g[0]=="string"&&xt.call(g,"index")&&(N.index=g.index,N.input=g.input),N}function a3(g){return typeof g.constructor=="function"&&!Sc(g)?oc(Fr(g)):{}}function s3(g,D,N){var Q=g.constructor;switch(D){case V:return _e(g);case x:case E:return new Q(+g);case U:return tt(g,N);case O:case X:case ee:case q:case ae:case ce:case W:case re:case he:return Je(g,N);case T:return new Q;case _:case F:return new Q(g);case I:return gt(g);case L:return new Q;case G:return yt(g)}}function l3(g){return mi(g)||f0(g)||!!(pn&&g&&g[pn])}function c3(g,D){var N=typeof g;return D=D??h,!!D&&(N=="number"||N!="symbol"&&H.test(g))&&g>-1&&g%1==0&&g<D}function d3(g,D){if(mi(g))return!1;var N=typeof g;return N=="number"||N=="symbol"||N=="boolean"||g==null||Ec(g)?!0:se.test(g)||!de.test(g)||D!=null&&g in Object(D)}function u3(g){var D=typeof g;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?g!=="__proto__":g===null}function f3(g){return!!Rn&&Rn in g}function Sc(g){var D=g&&g.constructor,N=typeof D=="function"&&D.prototype||qn;return g===N}function h3(g){var D=kc(g,function(Q){return N.size===a&&N.clear(),Q}),N=D.cache;return D}function p3(g){var D=[];if(g!=null)for(var N in Object(g))D.push(N);return D}function g3(g){return Vr.call(g)}function m3(g,D,N){return D=He(D===void 0?g.length-1:D,0),function(){for(var Q=arguments,ge=-1,Ee=He(Q.length-D,0),Ve=Array(Ee);++ge<Ee;)Ve[ge]=Q[D+ge];ge=-1;for(var nt=Array(D+1);++ge<D;)nt[ge]=Q[ge];return nt[D]=N(Ve),Ji(g,this,nt)}}function v3(g,D){return D.length<2?g:xc(g,k(D,0,-1))}var w3=x3(Cc);function x3(g){var D=0,N=0;return function(){var Q=ot(),ge=u-(Q-N);if(N=Q,ge>0){if(++D>=d)return arguments[0]}else D=0;return g.apply(void 0,arguments)}}var b3=h3(function(g){var D=[];return g.charCodeAt(0)===46&&D.push(""),g.replace(xe,function(N,Q,ge,Ee){D.push(ge?Ee.replace(et,"$1"):Q||N)}),D});function jc(g){if(typeof g=="string"||Ec(g))return g;var D=g+"";return D=="0"&&1/g==-f?"-0":D}function gi(g){if(g!=null){try{return Qn.call(g)}catch{}try{return g+""}catch{}}return""}function y3(g){var D=g==null?0:g.length;return D?fi(g,1):[]}function C3(g){var D=g==null?0:g.length;return D?g[D-1]:void 0}function kc(g,D){if(typeof g!="function"||D!=null&&typeof D!="function")throw new TypeError(i);var N=function(){var Q=arguments,ge=D?D.apply(this,Q):Q[0],Ee=N.cache;if(Ee.has(ge))return Ee.get(ge);var Ve=g.apply(this,Q);return N.cache=Ee.set(ge,Ve)||Ee,Ve};return N.cache=new(kc.Cache||er),N}kc.Cache=er;function u0(g,D){return g===D||g!==g&&D!==D}var f0=Ko(function(){return arguments}())?Ko:function(g){return vi(g)&&xt.call(g,"callee")&&!_n.call(g,"callee")},mi=Array.isArray;function h0(g){return g!=null&&m0(g.length)&&!g0(g)}var p0=ze||M3;function g0(g){if(!qo(g))return!1;var D=xr(g);return D==j||D==M||D==v||D==y}function m0(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=h}function qo(g){var D=typeof g;return g!=null&&(D=="object"||D=="function")}function vi(g){return g!=null&&typeof g=="object"}var _3=Kn?Kt(Kn):ps;function S3(g){if(!vi(g)||xr(g)!=$)return!1;var D=Fr(g);if(D===null)return!0;var N=xt.call(D,"constructor")&&D.constructor;return typeof N=="function"&&N instanceof N&&Qn.call(N)==si}var j3=Bt?Kt(Bt):hi;function Ec(g){return typeof g=="symbol"||vi(g)&&xr(g)==G}var k3=Cn?Kt(Cn):ms;function E3(g){return g==null?"":z(g)}function Dc(g){return h0(g)?fs(g):bc(g)}function $c(g){return h0(g)?fs(g,!0):yc(g)}var D3=nr(function(g,D){var N={};if(g==null)return N;var Q=!1;D=oi(D,function(Ee){return Ee=le(Ee,g),Q||(Q=Ee.length>1),Ee}),Ht(g,rr(g),N),Q&&(N=ro(N,s|l|c,tn));for(var ge=D.length;ge--;)K(N,D[ge]);return N});function $3(g){return function(){return g}}function H3(g){return g}function v0(){return[]}function M3(){return!1}e.exports=D3})(ol,ol.exports);var cC=ol.exports;const dC=bn(cC),{serialize:uC,parse:fC,createBlock:s1}=window.wp.blocks,{addWidgetIdToBlock:hC}=window.wp.widgets;function qu(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:uC(e)}}};return{...dC(t,["form","rendered"]),...n}}function Qu({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=fC(l.content);o=d.length?d[0]:s1("core/paragraph",{})}else n?o=s1("core/legacy-widget",{idBase:t,instance:{encoded:a,hash:s,raw:l,...c}}):o=s1("core/legacy-widget",{id:e});return hC(o,e)}const pC=window.React.useCallback,gC=window.React.useEffect,mC=window.React.useState,{isShallowEqualArrays:Ss}=window.wp.isShallowEqual,{getWidgetIdFromBlock:l1,addWidgetIdToBlock:vC}=window.wp.widgets;function wC(e){const[t,n]=mC(e.getWidgets().map(o=>Qu(o)));gC(()=>e.subscribe((o,a)=>{n(s=>{const l=new Map(o.map(u=>[u.id,u])),c=new Map(s.map(u=>[l1(u),u])),d=a.map(u=>{const f=l.get(u.id);return f&&f===u?c.get(u.id):Qu(u)});return Ss(s,d)?s:d})}),[e]);const i=pC(o=>{n(a=>{if(Ss(a,o))return a;const s=new Map(a.map(d=>[l1(d),d])),l=o.map(d=>{const u=l1(d);if(u&&s.has(u)){const f=s.get(u),h=e.getWidget(u);return Ss(JSON.stringify(d),JSON.stringify(f))&&h?h:qu(d,h)}return qu(d)});if(Ss(e.getWidgets(),l))return a;const c=e.setWidgets(l);return o.reduce((d,u,f)=>{const h=c[f];return h!==null&&(d===o&&(d=o.slice()),d[f]=vC(u,h)),d},o)})},[e]);return{blocks:t,updateBlocks:i}}const{BlockList:xC,BlockTools:bC,BlockSelectionClearer:yC,CopyHandler:CC,ObserveTyping:_C,WritingFlow:SC,__unstableEditorStyles:jC,ButtonBlockAppender:kC}=window.wp.blockEditor;function EC(){const{settings:e}=ng();return r.jsx("div",{className:"brandy-widget-content__inspector",children:r.jsx(CC,{children:r.jsxs(bC,{children:[r.jsx(jC,{styles:[...e.defaultEditorStyles,{css:"body{font-size: 13px !important;}"}]}),r.jsx(yC,{children:r.jsx(SC,{className:"editor-styles-wrapper",children:r.jsx(_C,{children:r.jsx(xC,{renderAppender:kC})})})})]})})})}const DC=window.React.useEffect,{useShortcut:c1,store:$C}=window.wp.keyboardShortcuts,{useDispatch:HC}=window.wp.data;function q1({undo:e,redo:t,save:n}){return c1("core/customize-widgets/undo",i=>{e(),i.preventDefault()}),c1("core/customize-widgets/redo",i=>{t(),i.preventDefault()}),c1("core/customize-widgets/save",i=>{i.preventDefault(),n()}),null}function MC(){const{registerShortcut:e,unregisterShortcut:t}=HC($C);return DC(()=>(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}q1.Register=MC;const TC=window.React.useContext,{__unstableBlockSettingsMenuFirstItem:IC}=window.wp.blockEditor,{MenuItem:LC}=window.wp.components;function AC(){const{inspector:e}=TC(Yd);return r.jsx(IC,{children:({onClose:t})=>r.jsx(LC,{onClick:()=>{e.open(),t()},inspector:e,children:"Show more settings"})})}const RC=me`
  ${{"--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}}
  &:after {
    ${{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1))"}}
  }
`,OC=me`
  &: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"}}
  }
`,NC=w(({isActive:e,...t})=>r.jsx("span",{...t})).withConfig({displayName:"Tabs__StyledTabItem",componentId:"sc-1e1ax13-0"})(["",""],({isActive:e})=>[{position:"relative",flex:"1 1 0%",cursor:"pointer",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",textAlign:"center",fontSize:"16px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"},OC,e&&RC]);function PC({current:e,items:t,onChange:n,styledCSS:i}){return r.jsx(BC,{$_css2:[{display:"flex","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},i],children:t.map(({label:o,key:a})=>r.jsx(NC,{onClick:()=>{n(a)},isActive:e===a,className:e===a?"active":"",children:o},a))})}var BC=w("div").withConfig({displayName:"Tabs___StyledDiv",componentId:"sc-1e1ax13-1"})(["",""],e=>e.$_css2);const ef=window.React.useMemo,VC=window.React.useState,zC=[{label:"General",key:"general"},{label:"Designs",key:"designs"}];function ns(e){const t=ef(()=>(e==null?void 0:e.items)??zC,[e]),[n,i]=VC(t[0].key);return{contextHolder:ef(()=>r.jsx(PC,{items:t,current:n,onChange:i}),[t,n,i]),items:t,currentTab:n,setCurrentTab:i}}const FC=window.React.useMemo;function Or({title:e,onGoBack:t,hasBottomPart:n=!0,builder:i}){const o=oe(i??"header"),a=o(f=>f.chosenElement),s=o(f=>f.previewTemplate.id),l=o(f=>f.resetTemplate),c=o(f=>f.resetElement),d=()=>{a?c(a.id):l()},u=FC(()=>s?[...i==="header"?window.brandyNichesHeaders:window.brandyNichesFooters,...Object.values(i==="header"?window.brandyHeaderPresets:window.brandyFooterPresets)].find(h=>h.id===s)!==void 0:!1,[s]);return r.jsxs(r.Fragment,{children:[r.jsxs(ZC,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(WC,{children:[e??r.jsxs(r.Fragment,{children:[r.jsxs(GC,{children:[P("Customizing")," ▸ ",P("Not found")]}),r.jsx(UC,{children:P("Not found")})]}),u&&r.jsx(YC,{onClick:d,children:P(a?"Reset to default":"Reset template to default")})]})]}),n&&r.jsx(XC,{})]})}var ZC=w("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),WC=w("div")({height:"100%",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),GC=w("div")({fontSize:"13px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),UC=w("div")({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),YC=w("p")({marginTop:"0.5rem",cursor:"pointer","--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}),XC=w("div").withConfig({displayName:"Header___StyledDiv5",componentId:"sc-27w5k5-0"})({borderBottomWidth:"1px",padding:"1rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const JC=window.React,KC=window.React.memo,qC=window.React.useCallback,rg=window.React.useContext,ig=window.React.useMemo,lt=JC.createContext({});function QC(e){const{builder:t}=rg(Jt),n=oe(t)(l=>l.deselectSection),i=oe(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=oe(t)(l=>{var c,d;return((d=(c=l.previewTemplate)==null?void 0:c.settings)==null?void 0:d.name)??t}),a=qC(()=>{un(),n()},[un,n]),s=ig(()=>({builder:t,goBack:a}),[t,a]);return r.jsxs(lt.Provider,{value:s,children:[r.jsx(Or,{onGoBack:a,builder:t,title:r.jsxs(r.Fragment,{children:[r.jsxs(n_,{children:[P("Customizing")," ▸ ",o]}),r.jsx(r_,{children:i||"Not found"})]})}),r.jsx(t_,{elementId:e.elementId,clonedFromId:e.clonedFromId})]})}function e_({elementId:e,clonedFromId:t}){const{builder:n}=rg(lt),{contextHolder:i,currentTab:o}=ns(),a=oe(n)(c=>{var d;return((d=c.chosenElement)==null?void 0:d.settings)??{}}),s=oe(n)(c=>c.changeElementSettings),l=ig(()=>{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(Cd,{children:l.map((c,d)=>r.jsx(os,{section:c,sectionKey:`${o}-${d}`,sectionId:e,settings:a,onChange:s,builder:n,clonedFromId:t},`${o}-${d}`))})]})}const t_=KC(e_);var n_=w("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),r_=w("div").withConfig({displayName:"ElementSection___StyledDiv2",componentId:"sc-1dfz9mj-0"})({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const i_=window.React.createContext,o_=window.React.useContext,a_=window.React.useEffect,aa=window.React.useMemo,s_=window.React.useRef,tf=window.ReactDOM.createPortal,{BlockEditorKeyboardShortcuts:l_,BlockEditorProvider:c_,BlockInspector:d_}=window.wp.blockEditor,{ShortcutProvider:u_}=window.wp.keyboardShortcuts,{SlotFillProvider:f_,Popover:h_}=window.wp.components,{removeFilter:p_}=window.wp.hooks;p_("editor.BlockEdit","core/customize-widgets/block-edit");const Yd=i_({});function g_(e){const{builder:t}=o_(lt),n=aa(()=>`${t}_${e.sectionId}`,[e.sectionId,t]),i=aa(()=>window.wp.customize.control(`sidebars_widgets[${n}]`),[n]),{blocks:o,updateBlocks:a}=wC(i.sidebarAdapter),{settings:s}=ng(),l=s_(null);tC(i,l);const c=aa(()=>`#sub-accordion-section-widgets-inspector-sidebar-widgets-${n}`,[n]),d=aa(()=>`#sub-accordion-section-sidebar-widgets-${n}`,[n]),u=aa(()=>({inserter:i.inserter,sidebar:i.sidebarAdapter,inspector:i.inspector}),[i]);a_(()=>{var p;return(p=document.querySelector(d))==null||p.remove(),u.inspector.triggerActiveCallbacks=()=>{},()=>{u.inserter.close()}},[]);const f=tf(r.jsx("div",{className:"customize-widgets-popover",ref:l,children:r.jsx(h_.Slot,{})}),document.body),h=p=>{a(p)},m=p=>{a(p)};return r.jsx(Yd.Provider,{value:u,children:r.jsxs(f_,{children:[r.jsx("div",{className:"brandy-block-inspector",children:r.jsxs(u_,{children:[r.jsx(l_.Register,{}),r.jsx(q1.Register,{}),r.jsxs(c_,{value:o,onChange:h,onInput:m,useSubRegistry:!1,settings:s,children:[r.jsx(q1,{undo:u.sidebar.undo,redo:u.sidebar.redo,save:u.sidebar.save}),r.jsx(Ky,{}),r.jsx(EC,{}),tf(r.jsx("form",{className:"hehehihi",onSubmit:p=>p.preventDefault(),children:r.jsx(d_,{})}),document.querySelector(c)??document.body)]}),r.jsx(AC,{})]})}),f]})})}const m_=window.React.useMemo;function v_(e){return m_(()=>r.jsx(g_,{sectionId:e.sectionId}),[])}const w_=window.React.useEffect,nf=window.React.useMemo,d1=window.React.useState;function x_({options:e,selected:t,onChange:n=()=>!1,style:i={}}){const[o,a]=d1(null),[s,l]=d1(null),{styles:c,attributes:d}=fr(o,s),[u,f]=d1(!1),h=nf(()=>(o==null?void 0:o.getBoundingClientRect().width)??0,[o]),m=()=>{f(j=>!j)},p=()=>{f(!1)};w_(()=>{const j=M=>{(o==null||s==null)&&p(),!(o!=null&&o.contains(M.target))&&!(s!=null&&s.contains(M.target))&&p()};return window.jQuery(document).on("click","body",j),()=>{window.jQuery(document).off("click","body",j)}},[o,s]);const v=j=>{const M=t.indexOf(j);let T=[];M===-1?T=[...t,j]:T=t.filter(_=>_!==j),n(T)},x=j=>{const M=t.filter(T=>T!==j);n(M)},E=j=>t.includes(j),C=nf(()=>e.length*47>300?300:e.length*47,[e]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:Re(["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:m,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(j=>{const M=e.find(T=>T.value===j);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:M==null?void 0:M.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:T=>{T.stopPropagation(),x((M==null?void 0:M.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"})})]},j)})}):"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:h,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...d.popper,className:Re(["my-2  z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Rr,{autoHide:!0,className:"bg-gutenberg-white",style:{height:C},children:r.jsx("div",{className:"p-[5px] flex flex-col gap-[5px]",children:e.map(j=>r.jsxs(b_,{className:"brandy-select__option-content","data-value":j.value,onClick:()=>v(j.value),$_css:[{display:"flex",alignItems:"center",justifyContent:"space-between","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"},{minHeight:"38px",borderRadius:"5px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"9px",paddingBottom:"9px","&:hover":{backgroundColor:"rgb(56 88 233 / 0.03)","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity, 1))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},E(j.value)&&{backgroundColor:"#3858e90D !important","--tw-text-opacity":"1 !important",color:"rgb(56 88 233 / var(--tw-text-opacity, 1)) !important"}],children:[j.label,E(j.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"})})]},j.value))})})})]})}var b_=w("div").withConfig({displayName:"MultipleSelect___StyledDiv",componentId:"sc-k7vdlx-0"})(["",""],e=>e.$_css);const y_=window.React.useMemo;function C_(e){const{current:t}=De(),n=y_(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(x_,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx(__,{dangerouslySetInnerHTML:{__html:e.description}})]})}var __=w("div").withConfig({displayName:"MultipleSelectBuilder___StyledDiv",componentId:"sc-eadnfz-0"})({marginTop:"0.5rem",fontSize:"12px",fontStyle:"italic"}),og={exports:{}};/**!
 * Sortable 1.15.7
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function S_(e){if(Array.isArray(e))return Q1(e)}function j_(e,t,n){return(t=T_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ln.apply(null,arguments)}function k_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rf(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 cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rf(Object(n),!0).forEach(function(i){j_(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function D_(e,t){if(e==null)return{};var n,i,o=$_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $_(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function H_(e){return S_(e)||k_(e)||I_(e)||E_()}function M_(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T_(e){var t=M_(e,"string");return typeof t=="symbol"?t:t+""}function ed(e){"@babel/helpers - typeof";return ed=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},ed(e)}function I_(e,t){if(e){if(typeof e=="string")return Q1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q1(e,t):void 0}}var L_="1.15.7";function Tr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Nr=Tr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),rs=Tr(/Edge/i),of=Tr(/firefox/i),Da=Tr(/safari/i)&&!Tr(/chrome/i)&&!Tr(/android/i),Xd=Tr(/iP(ad|od|hone)/i),ag=Tr(/chrome/i)&&Tr(/android/i),sg={capture:!1,passive:!1};function Te(e,t,n){e.addEventListener(t,n,!Nr&&sg)}function $e(e,t,n){e.removeEventListener(t,n,!Nr&&sg)}function al(e,t){if(t){if(t[0]===">"&&(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 lg(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function sn(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&al(e,t):al(e,t))||i&&e===n)return e;if(e===n)break}while(e=lg(e))}return null}var af=/\s+/g;function st(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(af," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(af," ")}}function pe(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 Ii(e,t){var n="";if(typeof e=="string")n=e;else do{var i=pe(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 cg(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,a=i.length;if(n)for(;o<a;o++)n(i[o],o);return i}return[]}function sr(){var e=document.scrollingElement;return e||document.documentElement}function qe(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,l,c,d,u,f;if(e!==window&&e.parentNode&&e!==sr()?(a=e.getBoundingClientRect(),s=a.top,l=a.left,c=a.bottom,d=a.right,u=a.height,f=a.width):(s=0,l=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Nr))do if(o&&o.getBoundingClientRect&&(pe(o,"transform")!=="none"||n&&pe(o,"position")!=="static")){var h=o.getBoundingClientRect();s-=h.top+parseInt(pe(o,"border-top-width")),l-=h.left+parseInt(pe(o,"border-left-width")),c=s+a.height,d=l+a.width;break}while(o=o.parentNode);if(i&&e!==window){var m=Ii(o||e),p=m&&m.a,v=m&&m.d;m&&(s/=v,l/=p,f/=p,u/=v,c=s+u,d=l+f)}return{top:s,left:l,bottom:c,right:d,width:f,height:u}}}function sf(e,t,n){for(var i=Qr(e,!0),o=qe(e)[t];i;){var a=qe(i)[n],s=void 0;if(n==="top"||n==="left"?s=o>=a:s=o<=a,!s)return i;if(i===sr())break;i=Qr(i,!1)}return!1}function Bo(e,t,n,i){for(var o=0,a=0,s=e.children;a<s.length;){if(s[a].style.display!=="none"&&s[a]!==be.ghost&&(i||s[a]!==be.dragged)&&sn(s[a],n.draggable,e,!1)){if(o===t)return s[a];o++}a++}return null}function Jd(e,t){for(var n=e.lastElementChild;n&&(n===be.ghost||pe(n,"display")==="none"||t&&!al(n,t));)n=n.previousElementSibling;return n||null}function dt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==be.clone&&(!t||al(e,t))&&n++;return n}function lf(e){var t=0,n=0,i=sr();if(e)do{var o=Ii(e),a=o.a,s=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function A_(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function Qr(e,t){if(!e||!e.getBoundingClientRect)return sr();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=pe(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return sr();if(i||t)return n;i=!0}}while(n=n.parentNode);return sr()}function R_(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function u1(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var $a;function dg(e,t){return function(){if(!$a){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),$a=setTimeout(function(){$a=void 0},t)}}}function O_(){clearTimeout($a),$a=void 0}function ug(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Kd(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function cf(e,t){pe(e,"position","absolute"),pe(e,"top",t.top),pe(e,"left",t.left),pe(e,"width",t.width),pe(e,"height",t.height)}function f1(e){pe(e,"position",""),pe(e,"top",""),pe(e,"left",""),pe(e,"width",""),pe(e,"height","")}function fg(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var a,s,l,c;if(!(!sn(o,t.draggable,e,!1)||o.animated||o===n)){var d=qe(o);i.left=Math.min((a=i.left)!==null&&a!==void 0?a:1/0,d.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,d.top),i.right=Math.max((l=i.right)!==null&&l!==void 0?l:-1/0,d.right),i.bottom=Math.max((c=i.bottom)!==null&&c!==void 0?c:-1/0,d.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Tt="Sortable"+new Date().getTime();function N_(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(pe(o,"display")==="none"||o===be.ghost)){e.push({target:o,rect:qe(o)});var a=cr({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=Ii(o,!0);s&&(a.top-=s.f,a.left-=s.e)}o.fromRect=a}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(A_(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var a=!1,s=0;e.forEach(function(l){var c=0,d=l.target,u=d.fromRect,f=qe(d),h=d.prevFromRect,m=d.prevToRect,p=l.rect,v=Ii(d,!0);v&&(f.top-=v.f,f.left-=v.e),d.toRect=f,d.thisAnimationDuration&&u1(h,f)&&!u1(u,f)&&(p.top-f.top)/(p.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(c=B_(p,h,m,o.options)),u1(f,u)||(d.prevFromRect=u,d.prevToRect=f,c||(c=o.options.animation),o.animate(d,p,f,c)),c&&(a=!0,s=Math.max(s,c),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},c),d.thisAnimationDuration=c)}),clearTimeout(t),a?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,a,s){if(s){pe(i,"transition",""),pe(i,"transform","");var l=Ii(this.el),c=l&&l.a,d=l&&l.d,u=(o.left-a.left)/(c||1),f=(o.top-a.top)/(d||1);i.animatingX=!!u,i.animatingY=!!f,pe(i,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=P_(i),pe(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),pe(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){pe(i,"transition",""),pe(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function P_(e){return e.offsetWidth}function B_(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var uo=[],h1={initializeByDefault:!0},is={mount:function(t){for(var n in h1)h1.hasOwnProperty(n)&&!(n in t)&&(t[n]=h1[n]);uo.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),uo.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var a=t+"Global";uo.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][a]&&n[s.pluginName][a](cr({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](cr({sortable:n},i)))})},initializePlugins:function(t,n,i,o){uo.forEach(function(l){var c=l.pluginName;if(!(!t.options[c]&&!l.initializeByDefault)){var d=new l(t,n,t.options);d.sortable=t,d.options=t.options,t[c]=d,Ln(i,d.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s<"u"&&(t.options[a]=s)}},getEventProperties:function(t,n){var i={};return uo.forEach(function(o){typeof o.eventProperties=="function"&&Ln(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return uo.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],i))}),o}};function ga(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,m=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[Tt],!!t){var v,x=t.options,E="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Nr&&!rs?v=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(i,!0,!0)),v.to=s||n,v.from=l||n,v.item=o||n,v.clone=a,v.oldIndex=c,v.newIndex=d,v.oldDraggableIndex=u,v.newDraggableIndex=f,v.originalEvent=h,v.pullMode=m?m.lastPutMode:void 0;var C=cr(cr({},p),is.getEventProperties(i,t));for(var j in C)v[j]=C[j];n&&n.dispatchEvent(v),x[E]&&x[E].call(t,v)}}var V_=["evt"],nn=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,a=D_(i,V_);is.pluginEvent.bind(be)(t,n,cr({dragEl:ie,parentEl:ct,ghostEl:je,rootEl:rt,nextEl:ji,lastDownEl:Ws,cloneEl:at,cloneHidden:Jr,dragStarted:ma,putSortable:Mt,activeSortable:be.active,originalEvent:o,oldIndex:Co,oldDraggableIndex:Ha,newIndex:mn,newDraggableIndex:Xr,hideGhostForTarget:mg,unhideGhostForTarget:vg,cloneNowHidden:function(){Jr=!0},cloneNowShown:function(){Jr=!1},dispatchSortableEvent:function(l){Wt({sortable:n,name:l,originalEvent:o})}},a))};function Wt(e){ga(cr({putSortable:Mt,cloneEl:at,targetEl:ie,rootEl:rt,oldIndex:Co,oldDraggableIndex:Ha,newIndex:mn,newDraggableIndex:Xr},e))}var ie,ct,je,rt,ji,Ws,at,Jr,Co,mn,Ha,Xr,js,Mt,xo=!1,sl=!1,ll=[],yi,Zn,p1,g1,df,uf,ma,fo,Ma,Ta=!1,ks=!1,Gs,Rt,m1=[],td=!1,cl=[],Ql=typeof document<"u",Es=Xd,ff=rs||Nr?"cssFloat":"float",z_=Ql&&!ag&&!Xd&&"draggable"in document.createElement("div"),hg=function(){if(Ql){if(Nr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),pg=function(t,n){var i=pe(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=Bo(t,0,n),s=Bo(t,1,n),l=a&&pe(a),c=s&&pe(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qe(a).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+qe(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 f=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&i[ff]==="none"||s&&i[ff]==="none"&&d+u>o)?"vertical":"horizontal"},F_=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},Z_=function(t,n){var i;return ll.some(function(o){var a=o[Tt].options.emptyInsertThreshold;if(!(!a||Jd(o))){var s=qe(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},gg=function(t){function n(a,s){return function(l,c,d,u){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(s||f))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 h=(s?l:c).options.group.name;return a===!0||typeof a=="string"&&a===h||a.join&&a.indexOf(h)>-1}}var i={},o=t.group;(!o||ed(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},mg=function(){!hg&&je&&pe(je,"display","none")},vg=function(){!hg&&je&&pe(je,"display","")};Ql&&!ag&&document.addEventListener("click",function(e){if(sl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),sl=!1,!1},!0);var Ci=function(t){if(ie){t=t.touches?t.touches[0]:t;var n=Z_(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[Tt]._onDragOver(i)}}},W_=function(t){ie&&ie.parentNode[Tt]._isOutsideThisEl(t.target)};function be(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=Ln({},t),e[Tt]=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 pg(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:be.supportPointer!==!1&&"PointerEvent"in window&&(!Da||Xd),emptyInsertThreshold:5};is.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);gg(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:z_,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Te(e,"pointerdown",this._onTapStart):(Te(e,"mousedown",this._onTapStart),Te(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Te(e,"dragover",this),Te(e,"dragenter",this)),ll.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ln(this,N_())}be.prototype={constructor:be,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(fo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,ie):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(Q_(i),!ie&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Da&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=sn(c,o.draggable,i,!1),!(c&&c.animated)&&Ws!==c)){if(Co=dt(c),Ha=dt(c,o.draggable),typeof u=="function"){if(u.call(this,t,c,this)){Wt({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:i,fromEl:i}),nn("filter",n,{evt:t}),a&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=sn(d,f.trim(),i,!1),f)return Wt({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:i,toEl:i}),nn("filter",n,{evt:t}),!0}),u)){a&&t.preventDefault();return}o.handle&&!sn(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&&!ie&&i.parentNode===a){var d=qe(i);if(rt=a,ie=i,ct=ie.parentNode,ji=ie.nextSibling,Ws=i,js=s.group,be.dragged=ie,yi={target:ie,clientX:(n||t).clientX,clientY:(n||t).clientY},df=yi.clientX-d.left,uf=yi.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,ie.style["will-change"]="all",c=function(){if(nn("delayEnded",o,{evt:t}),be.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!of&&o.nativeDraggable&&(ie.draggable=!0),o._triggerDragStart(t,n),Wt({sortable:o,name:"choose",originalEvent:t}),st(ie,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){cg(ie,u.trim(),v1)}),Te(l,"dragover",Ci),Te(l,"mousemove",Ci),Te(l,"touchmove",Ci),s.supportPointer?(Te(l,"pointerup",o._onDrop),!this.nativeDraggable&&Te(l,"pointercancel",o._onDrop)):(Te(l,"mouseup",o._onDrop),Te(l,"touchend",o._onDrop),Te(l,"touchcancel",o._onDrop)),of&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),nn("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(rs||Nr))){if(be.eventCanceled){this._onDrop();return}s.supportPointer?(Te(l,"pointerup",o._disableDelayedDrag),Te(l,"pointercancel",o._disableDelayedDrag)):(Te(l,"mouseup",o._disableDelayedDrag),Te(l,"touchend",o._disableDelayedDrag),Te(l,"touchcancel",o._disableDelayedDrag)),Te(l,"mousemove",o._delayedDragTouchMoveHandler),Te(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&Te(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(){ie&&v1(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;$e(t,"mouseup",this._disableDelayedDrag),$e(t,"touchend",this._disableDelayedDrag),$e(t,"touchcancel",this._disableDelayedDrag),$e(t,"pointerup",this._disableDelayedDrag),$e(t,"pointercancel",this._disableDelayedDrag),$e(t,"mousemove",this._delayedDragTouchMoveHandler),$e(t,"touchmove",this._delayedDragTouchMoveHandler),$e(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Te(document,"pointermove",this._onTouchMove):n?Te(document,"touchmove",this._onTouchMove):Te(document,"mousemove",this._onTouchMove):(Te(ie,"dragend",this),Te(rt,"dragstart",this._onDragStart));try{document.selection?Us(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(xo=!1,rt&&ie){nn("dragStarted",this,{evt:n}),this.nativeDraggable&&Te(document,"dragover",W_);var i=this.options;!t&&st(ie,i.dragClass,!1),st(ie,i.ghostClass,!0),be.active=this,t&&this._appendGhost(),Wt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Zn){this._lastX=Zn.clientX,this._lastY=Zn.clientY,mg();for(var t=document.elementFromPoint(Zn.clientX,Zn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Zn.clientX,Zn.clientY),t!==n);)n=t;if(ie.parentNode[Tt]._isOutsideThisEl(t),n)do{if(n[Tt]){var i=void 0;if(i=n[Tt]._onDragOver({clientX:Zn.clientX,clientY:Zn.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=lg(n));vg()}},_onTouchMove:function(t){if(yi){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=je&&Ii(je,!0),l=je&&s&&s.a,c=je&&s&&s.d,d=Es&&Rt&&lf(Rt),u=(a.clientX-yi.clientX+o.x)/(l||1)+(d?d[0]-m1[0]:0)/(l||1),f=(a.clientY-yi.clientY+o.y)/(c||1)+(d?d[1]-m1[1]:0)/(c||1);if(!be.active&&!xo){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(je){s?(s.e+=u-(p1||0),s.f+=f-(g1||0)):s={a:1,b:0,c:0,d:1,e:u,f};var h="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");pe(je,"webkitTransform",h),pe(je,"mozTransform",h),pe(je,"msTransform",h),pe(je,"transform",h),p1=u,g1=f,Zn=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!je){var t=this.options.fallbackOnBody?document.body:rt,n=qe(ie,!0,Es,!0,t),i=this.options;if(Es){for(Rt=t;pe(Rt,"position")==="static"&&pe(Rt,"transform")==="none"&&Rt!==document;)Rt=Rt.parentNode;Rt!==document.body&&Rt!==document.documentElement?(Rt===document&&(Rt=sr()),n.top+=Rt.scrollTop,n.left+=Rt.scrollLeft):Rt=sr(),m1=lf(Rt)}je=ie.cloneNode(!0),st(je,i.ghostClass,!1),st(je,i.fallbackClass,!0),st(je,i.dragClass,!0),pe(je,"transition",""),pe(je,"transform",""),pe(je,"box-sizing","border-box"),pe(je,"margin",0),pe(je,"top",n.top),pe(je,"left",n.left),pe(je,"width",n.width),pe(je,"height",n.height),pe(je,"opacity","0.8"),pe(je,"position",Es?"absolute":"fixed"),pe(je,"zIndex","100000"),pe(je,"pointerEvents","none"),be.ghost=je,t.appendChild(je),pe(je,"transform-origin",df/parseInt(je.style.width)*100+"% "+uf/parseInt(je.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,a=i.options;if(nn("dragStart",this,{evt:t}),be.eventCanceled){this._onDrop();return}nn("setupClone",this),be.eventCanceled||(at=Kd(ie),at.removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),st(at,this.options.chosenClass,!1),be.clone=at),i.cloneId=Us(function(){nn("clone",i),!be.eventCanceled&&(i.options.removeCloneOnHide||rt.insertBefore(at,ie),i._hideClone(),Wt({sortable:i,name:"clone"}))}),!n&&st(ie,a.dragClass,!0),n?(sl=!0,i._loopId=setInterval(i._emulateDragOver,50)):($e(document,"mouseup",i._onDrop),$e(document,"touchend",i._onDrop),$e(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(i,o,ie)),Te(document,"drop",i),pe(ie,"transform","translateZ(0)")),xo=!0,i._dragStartId=Us(i._dragStarted.bind(i,n,t)),Te(document,"selectstart",i),ma=!0,window.getSelection().removeAllRanges(),Da&&pe(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,a,s,l=this.options,c=l.group,d=be.active,u=js===c,f=l.sort,h=Mt||d,m,p=this,v=!1;if(td)return;function x(U,O){nn(U,p,cr({evt:t,isOwner:u,axis:m?"vertical":"horizontal",revert:s,dragRect:o,targetRect:a,canSort:f,fromSortable:h,target:i,completed:C,onMove:function(ee,q){return Ds(rt,n,ie,o,ee,qe(ee),t,q)},changed:j},O))}function E(){x("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function C(U){return x("dragOverCompleted",{insertion:U}),U&&(u?d._hideClone():d._showClone(p),p!==h&&(st(ie,Mt?Mt.options.ghostClass:d.options.ghostClass,!1),st(ie,l.ghostClass,!0)),Mt!==p&&p!==be.active?Mt=p:p===be.active&&Mt&&(Mt=null),h===p&&(p._ignoreWhileAnimating=i),p.animateAll(function(){x("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(i===ie&&!ie.animated||i===n&&!i.animated)&&(fo=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(ie.parentNode[Tt]._isOutsideThisEl(t.target),!U&&Ci(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function j(){mn=dt(ie),Xr=dt(ie,l.draggable),Wt({sortable:p,name:"change",toEl:n,newIndex:mn,newDraggableIndex:Xr,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=sn(i,l.draggable,n,!0),x("dragOver"),be.eventCanceled)return v;if(ie.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||p._ignoreWhileAnimating===i)return C(!1);if(sl=!1,d&&!l.disabled&&(u?f||(s=ct!==rt):Mt===this||(this.lastPutMode=js.checkPull(this,d,ie,t))&&c.checkPut(this,d,ie,t))){if(m=this._getDirection(t,i)==="vertical",o=qe(ie),x("dragOverValid"),be.eventCanceled)return v;if(s)return ct=rt,E(),this._hideClone(),x("revert"),be.eventCanceled||(ji?rt.insertBefore(ie,ji):rt.appendChild(ie)),C(!0);var M=Jd(n,l.draggable);if(!M||X_(t,m,this)&&!M.animated){if(M===ie)return C(!1);if(M&&n===t.target&&(i=M),i&&(a=qe(i)),Ds(rt,n,ie,o,i,a,t,!!i)!==!1)return E(),M&&M.nextSibling?n.insertBefore(ie,M.nextSibling):n.appendChild(ie),ct=n,j(),C(!0)}else if(M&&Y_(t,m,this)){var T=Bo(n,0,l,!0);if(T===ie)return C(!1);if(i=T,a=qe(i),Ds(rt,n,ie,o,i,a,t,!1)!==!1)return E(),n.insertBefore(ie,T),ct=n,j(),C(!0)}else if(i.parentNode===n){a=qe(i);var _=0,b,$=ie.parentNode!==n,B=!F_(ie.animated&&ie.toRect||o,i.animated&&i.toRect||a,m),y=m?"top":"left",I=sf(i,"top","top")||sf(ie,"top","top"),L=I?I.scrollTop:void 0;fo!==i&&(b=a[y],Ta=!1,ks=!B&&l.invertSwap||$),_=J_(t,i,a,m,B?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,ks,fo===i);var F;if(_!==0){var G=dt(ie);do G-=_,F=ct.children[G];while(F&&(pe(F,"display")==="none"||F===je))}if(_===0||F===i)return C(!1);fo=i,Ma=_;var R=i.nextElementSibling,Z=!1;Z=_===1;var V=Ds(rt,n,ie,o,i,a,t,Z);if(V!==!1)return(V===1||V===-1)&&(Z=V===1),td=!0,setTimeout(U_,30),E(),Z&&!R?n.appendChild(ie):i.parentNode.insertBefore(ie,Z?R:i),I&&ug(I,0,L-I.scrollTop),ct=ie.parentNode,b!==void 0&&!ks&&(Gs=Math.abs(b-qe(i)[y])),j(),C(!0)}if(n.contains(ie))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){$e(document,"mousemove",this._onTouchMove),$e(document,"touchmove",this._onTouchMove),$e(document,"pointermove",this._onTouchMove),$e(document,"dragover",Ci),$e(document,"mousemove",Ci),$e(document,"touchmove",Ci)},_offUpEvents:function(){var t=this.el.ownerDocument;$e(t,"mouseup",this._onDrop),$e(t,"touchend",this._onDrop),$e(t,"pointerup",this._onDrop),$e(t,"pointercancel",this._onDrop),$e(t,"touchcancel",this._onDrop),$e(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(mn=dt(ie),Xr=dt(ie,i.draggable),nn("drop",this,{evt:t}),ct=ie&&ie.parentNode,mn=dt(ie),Xr=dt(ie,i.draggable),be.eventCanceled){this._nulling();return}xo=!1,ks=!1,Ta=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),nd(this.cloneId),nd(this._dragStartId),this.nativeDraggable&&($e(document,"drop",this),$e(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Da&&pe(document.body,"user-select",""),pe(ie,"transform",""),t&&(ma&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(rt===ct||Mt&&Mt.lastPutMode!=="clone")&&at&&at.parentNode&&at.parentNode.removeChild(at),ie&&(this.nativeDraggable&&$e(ie,"dragend",this),v1(ie),ie.style["will-change"]="",ma&&!xo&&st(ie,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),st(ie,this.options.chosenClass,!1),Wt({sortable:this,name:"unchoose",toEl:ct,newIndex:null,newDraggableIndex:null,originalEvent:t}),rt!==ct?(mn>=0&&(Wt({rootEl:ct,name:"add",toEl:ct,fromEl:rt,originalEvent:t}),Wt({sortable:this,name:"remove",toEl:ct,originalEvent:t}),Wt({rootEl:ct,name:"sort",toEl:ct,fromEl:rt,originalEvent:t}),Wt({sortable:this,name:"sort",toEl:ct,originalEvent:t})),Mt&&Mt.save()):mn!==Co&&mn>=0&&(Wt({sortable:this,name:"update",toEl:ct,originalEvent:t}),Wt({sortable:this,name:"sort",toEl:ct,originalEvent:t})),be.active&&((mn==null||mn===-1)&&(mn=Co,Xr=Ha),Wt({sortable:this,name:"end",toEl:ct,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){nn("nulling",this),rt=ie=ct=je=ji=at=Ws=Jr=yi=Zn=ma=mn=Xr=Co=Ha=fo=Ma=Mt=js=be.dragged=be.ghost=be.clone=be.active=null;var t=this.el;cl.forEach(function(n){t.contains(n)&&(n.checked=!0)}),cl.length=p1=g1=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ie&&(this._onDragOver(t),G_(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;o<a;o++)n=i[o],sn(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||q_(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(a,s){var l=o.children[s];sn(l,this.options.draggable,o,!1)&&(i[a]=l)},this),n&&this.captureAnimationState(),t.forEach(function(a){i[a]&&(o.removeChild(i[a]),o.appendChild(i[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return sn(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=is.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&gg(i)},destroy:function(){nn("destroy",this);var t=this.el;t[Tt]=null,$e(t,"mousedown",this._onTapStart),$e(t,"touchstart",this._onTapStart),$e(t,"pointerdown",this._onTapStart),this.nativeDraggable&&($e(t,"dragover",this),$e(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ll.splice(ll.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Jr){if(nn("hideClone",this),be.eventCanceled)return;pe(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),Jr=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Jr){if(nn("showClone",this),be.eventCanceled)return;ie.parentNode==rt&&!this.options.group.revertClone?rt.insertBefore(at,ie):ji?rt.insertBefore(at,ji):rt.appendChild(at),this.options.group.revertClone&&this.animate(ie,at),pe(at,"display",""),Jr=!1}}};function G_(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ds(e,t,n,i,o,a,s,l){var c,d=e[Tt],u=d.options.onMove,f;return window.CustomEvent&&!Nr&&!rs?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=i,c.related=o||t,c.relatedRect=a||qe(t),c.willInsertAfter=l,c.originalEvent=s,e.dispatchEvent(c),u&&(f=u.call(d,c,s)),f}function v1(e){e.draggable=!1}function U_(){td=!1}function Y_(e,t,n){var i=qe(Bo(n.el,0,n.options,!0)),o=fg(n.el,n.options,je),a=10;return t?e.clientX<o.left-a||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-a||e.clientY<i.bottom&&e.clientX<i.left}function X_(e,t,n){var i=qe(Jd(n.el,n.options.draggable)),o=fg(n.el,n.options,je),a=10;return t?e.clientX>o.right+a||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+a||e.clientX>i.right&&e.clientY>i.top}function J_(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,f=i?n.bottom:n.right,h=!1;if(!s){if(l&&Gs<d*o){if(!Ta&&(Ma===1?c>u+d*a/2:c<f-d*a/2)&&(Ta=!0),Ta)h=!0;else if(Ma===1?c<u+Gs:c>f-Gs)return-Ma}else if(c>u+d*(1-o)/2&&c<f-d*(1-o)/2)return K_(t)}return h=h||s,h&&(c<u+d*a/2||c>f-d*a/2)?c>u+d/2?1:-1:0}function K_(e){return dt(ie)<dt(e)?1:-1}function q_(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Q_(e){cl.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&cl.push(i)}}function Us(e){return setTimeout(e,0)}function nd(e){return clearTimeout(e)}Ql&&Te(document,"touchmove",function(e){(be.active||xo)&&e.cancelable&&e.preventDefault()});be.utils={on:Te,off:$e,css:pe,find:cg,is:function(t,n){return!!sn(t,n,t,!1)},extend:R_,throttle:dg,closest:sn,toggleClass:st,clone:Kd,index:dt,nextTick:Us,cancelNextTick:nd,detectDirection:pg,getChild:Bo,expando:Tt};be.get=function(e){return e[Tt]};be.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(be.utils=cr(cr({},be.utils),i.utils)),is.mount(i)})};be.create=function(e,t){return new be(e,t)};be.version=L_;var mt=[],va,rd,id=!1,w1,x1,dl,wa;function eS(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?Te(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Te(document,"pointermove",this._handleFallbackAutoScroll):i.touches?Te(document,"touchmove",this._handleFallbackAutoScroll):Te(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?$e(document,"dragover",this._handleAutoScroll):($e(document,"pointermove",this._handleFallbackAutoScroll),$e(document,"touchmove",this._handleFallbackAutoScroll),$e(document,"mousemove",this._handleFallbackAutoScroll)),hf(),Ys(),O_()},nulling:function(){dl=rd=va=id=wa=w1=x1=null,mt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,a=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(a,s);if(dl=n,i||this.options.forceAutoScrollFallback||rs||Nr||Da){b1(n,this.options,l,i);var c=Qr(l,!0);id&&(!wa||a!==w1||s!==x1)&&(wa&&hf(),wa=setInterval(function(){var d=Qr(document.elementFromPoint(a,s),!0);d!==c&&(c=d,Ys()),b1(n,o.options,d,i)},10),w1=a,x1=s)}else{if(!this.options.bubbleScroll||Qr(l,!0)===sr()){Ys();return}b1(n,this.options,Qr(l,!1),!1)}}},Ln(e,{pluginName:"scroll",initializeByDefault:!0})}function Ys(){mt.forEach(function(e){clearInterval(e.pid)}),mt=[]}function hf(){clearInterval(wa)}var b1=dg(function(e,t,n,i){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=sr(),d=!1,u;rd!==n&&(rd=n,Ys(),va=t.scroll,u=t.scrollFn,va===!0&&(va=Qr(n,!0)));var f=0,h=va;do{var m=h,p=qe(m),v=p.top,x=p.bottom,E=p.left,C=p.right,j=p.width,M=p.height,T=void 0,_=void 0,b=m.scrollWidth,$=m.scrollHeight,B=pe(m),y=m.scrollLeft,I=m.scrollTop;m===c?(T=j<b&&(B.overflowX==="auto"||B.overflowX==="scroll"||B.overflowX==="visible"),_=M<$&&(B.overflowY==="auto"||B.overflowY==="scroll"||B.overflowY==="visible")):(T=j<b&&(B.overflowX==="auto"||B.overflowX==="scroll"),_=M<$&&(B.overflowY==="auto"||B.overflowY==="scroll"));var L=T&&(Math.abs(C-o)<=s&&y+j<b)-(Math.abs(E-o)<=s&&!!y),F=_&&(Math.abs(x-a)<=s&&I+M<$)-(Math.abs(v-a)<=s&&!!I);if(!mt[f])for(var G=0;G<=f;G++)mt[G]||(mt[G]={});(mt[f].vx!=L||mt[f].vy!=F||mt[f].el!==m)&&(mt[f].el=m,mt[f].vx=L,mt[f].vy=F,clearInterval(mt[f].pid),(L!=0||F!=0)&&(d=!0,mt[f].pid=setInterval((function(){i&&this.layer===0&&be.active._onTouchMove(dl);var R=mt[this.layer].vy?mt[this.layer].vy*l:0,Z=mt[this.layer].vx?mt[this.layer].vx*l:0;typeof u=="function"&&u.call(be.dragged.parentNode[Tt],Z,R,e,dl,mt[this.layer].el)!=="continue"||ug(mt[this.layer].el,Z,R)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&h!==c&&(h=Qr(h,!1)));id=d}},30),wg=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(n){var d=i||a;l();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);c(),d&&!d.el.contains(f)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function qd(){}qd.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Bo(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:wg};Ln(qd,{pluginName:"revertOnSpill"});function Qd(){}Qd.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:wg};Ln(Qd,{pluginName:"removeOnSpill"});var Dn;function tS(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var i=n.dragEl;Dn=i},dragOverValid:function(n){var i=n.completed,o=n.target,a=n.onMove,s=n.activeSortable,l=n.changed,c=n.cancel;if(s.options.swap){var d=this.sortable.el,u=this.options;if(o&&o!==d){var f=Dn;a(o)!==!1?(st(o,u.swapClass,!0),Dn=o):Dn=null,f&&f!==Dn&&st(f,u.swapClass,!1)}l(),i(!0),c()}},drop:function(n){var i=n.activeSortable,o=n.putSortable,a=n.dragEl,s=o||this.sortable,l=this.options;Dn&&st(Dn,l.swapClass,!1),Dn&&(l.swap||o&&o.options.swap)&&a!==Dn&&(s.captureAnimationState(),s!==i&&i.captureAnimationState(),nS(a,Dn),s.animateAll(),s!==i&&i.animateAll())},nulling:function(){Dn=null}},Ln(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Dn}}})}function nS(e,t){var n=e.parentNode,i=t.parentNode,o,a;!n||!i||n.isEqualNode(t)||i.isEqualNode(e)||(o=dt(e),a=dt(t),n.isEqualNode(i)&&o<a&&a++,n.insertBefore(t,n.children[o]),i.insertBefore(e,i.children[a]))}var Se=[],gn=[],sa,Wn,la=!1,rn=!1,ho=!1,Ue,ca,$s;function rS(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.avoidImplicitDeselect||(t.options.supportPointer?Te(document,"pointerup",this._deselectMultiDrag):(Te(document,"mouseup",this._deselectMultiDrag),Te(document,"touchend",this._deselectMultiDrag))),Te(document,"keydown",this._checkKeyDown),Te(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(o,a){var s="";Se.length&&Wn===t?Se.forEach(function(l,c){s+=(c?", ":"")+l.textContent}):s=a.textContent,o.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var i=n.dragEl;Ue=i},delayEnded:function(){this.isMultiDrag=~Se.indexOf(Ue)},setupClone:function(n){var i=n.sortable,o=n.cancel;if(this.isMultiDrag){for(var a=0;a<Se.length;a++)gn.push(Kd(Se[a])),gn[a].sortableIndex=Se[a].sortableIndex,gn[a].draggable=!1,gn[a].style["will-change"]="",st(gn[a],this.options.selectedClass,!1),Se[a]===Ue&&st(gn[a],this.options.chosenClass,!1);i._hideClone(),o()}},clone:function(n){var i=n.sortable,o=n.rootEl,a=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Se.length&&Wn===i&&(pf(!0,o),a("clone"),s()))},showClone:function(n){var i=n.cloneNowShown,o=n.rootEl,a=n.cancel;this.isMultiDrag&&(pf(!1,o),gn.forEach(function(s){pe(s,"display","")}),i(),$s=!1,a())},hideClone:function(n){var i=this;n.sortable;var o=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(gn.forEach(function(s){pe(s,"display","none"),i.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),$s=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Wn&&Wn.multiDrag._deselectMultiDrag(),Se.forEach(function(i){i.sortableIndex=dt(i)}),Se=Se.sort(function(i,o){return i.sortableIndex-o.sortableIndex}),ho=!0},dragStarted:function(n){var i=this,o=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){Se.forEach(function(s){s!==Ue&&pe(s,"position","absolute")});var a=qe(Ue,!1,!0,!0);Se.forEach(function(s){s!==Ue&&cf(s,a)}),rn=!0,la=!0}o.animateAll(function(){rn=!1,la=!1,i.options.animation&&Se.forEach(function(s){f1(s)}),i.options.sort&&Hs()})}},dragOver:function(n){var i=n.target,o=n.completed,a=n.cancel;rn&&~Se.indexOf(i)&&(o(!1),a())},revert:function(n){var i=n.fromSortable,o=n.rootEl,a=n.sortable,s=n.dragRect;Se.length>1&&(Se.forEach(function(l){a.addAnimationState({target:l,rect:rn?qe(l):s}),f1(l),l.fromRect=s,i.removeAnimationState(l)}),rn=!1,iS(!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(),la=!1,d.animation&&Se.length>1&&(rn||!o&&!s.options.sort&&!c)){var u=qe(Ue,!1,!0,!0);Se.forEach(function(h){h!==Ue&&(cf(h,u),l.appendChild(h))}),rn=!0}if(!o)if(rn||Hs(),Se.length>1){var f=$s;s._showClone(i),s.options.animation&&!$s&&f&&gn.forEach(function(h){s.addAnimationState({target:h,rect:ca}),h.fromRect=ca,h.thisAnimationDuration=null})}else s._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,o=n.isOwner,a=n.activeSortable;if(Se.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){ca=Ln({},i);var s=Ii(Ue,!0);ca.top-=s.f,ca.left-=s.e}},dragOverAnimationComplete:function(){rn&&(rn=!1,Hs())},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 f=this.options,h=a.children;if(!ho)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),st(Ue,f.selectedClass,!~Se.indexOf(Ue)),~Se.indexOf(Ue))Se.splice(Se.indexOf(Ue),1),sa=null,ga({sortable:s,rootEl:o,name:"deselect",targetEl:Ue,originalEvent:i});else{if(Se.push(Ue),ga({sortable:s,rootEl:o,name:"select",targetEl:Ue,originalEvent:i}),i.shiftKey&&sa&&s.el.contains(sa)){var m=dt(sa),p=dt(Ue);~m&&~p&&m!==p&&function(){var C,j;p>m?(j=m,C=p):(j=p,C=m+1);for(var M=f.filter;j<C;j++)if(!~Se.indexOf(h[j])&&sn(h[j],f.draggable,a,!1)){var T=M&&(typeof M=="function"?M.call(s,i,h[j],s):M.split(",").some(function(_){return sn(h[j],_.trim(),a,!1)}));T||(st(h[j],f.selectedClass,!0),Se.push(h[j]),ga({sortable:s,rootEl:o,name:"select",targetEl:h[j],originalEvent:i}))}}()}else sa=Ue;Wn=u}if(ho&&this.isMultiDrag){if(rn=!1,(a[Tt].options.sort||a!==o)&&Se.length>1){var v=qe(Ue),x=dt(Ue,":not(."+this.options.selectedClass+")");if(!la&&f.animation&&(Ue.thisAnimationDuration=null),u.captureAnimationState(),!la&&(f.animation&&(Ue.fromRect=v,Se.forEach(function(C){if(C.thisAnimationDuration=null,C!==Ue){var j=rn?qe(C):v;C.fromRect=j,u.addAnimationState({target:C,rect:j})}})),Hs(),Se.forEach(function(C){h[x]?a.insertBefore(C,h[x]):a.appendChild(C),x++}),c===dt(Ue))){var E=!1;Se.forEach(function(C){if(C.sortableIndex!==dt(C)){E=!0;return}}),E&&(l("update"),l("sort"))}Se.forEach(function(C){f1(C)}),u.animateAll()}Wn=u}(o===a||d&&d.lastPutMode!=="clone")&&gn.forEach(function(C){C.parentNode&&C.parentNode.removeChild(C)})}},nullingGlobal:function(){this.isMultiDrag=ho=!1,gn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),$e(document,"pointerup",this._deselectMultiDrag),$e(document,"mouseup",this._deselectMultiDrag),$e(document,"touchend",this._deselectMultiDrag),$e(document,"keydown",this._checkKeyDown),$e(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ho<"u"&&ho)&&Wn===this.sortable&&!(n&&sn(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Se.length;){var i=Se[0];st(i,this.options.selectedClass,!1),Se.shift(),ga({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)}},Ln(e,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[Tt];!i||!i.options.multiDrag||~Se.indexOf(n)||(Wn&&Wn!==i&&(Wn.multiDrag._deselectMultiDrag(),Wn=i),st(n,i.options.selectedClass,!0),Se.push(n))},deselect:function(n){var i=n.parentNode[Tt],o=Se.indexOf(n);!i||!i.options.multiDrag||!~o||(st(n,i.options.selectedClass,!1),Se.splice(o,1))}},eventProperties:function(){var n=this,i=[],o=[];return Se.forEach(function(a){i.push({multiDragElement:a,index:a.sortableIndex});var s;rn&&a!==Ue?s=-1:rn?s=dt(a,":not(."+n.options.selectedClass+")"):s=dt(a),o.push({multiDragElement:a,index:s})}),{items:H_(Se),clones:[].concat(gn),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 iS(e,t){Se.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function pf(e,t){gn.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Hs(){Se.forEach(function(e){e!==Ue&&e.parentNode&&e.parentNode.removeChild(e)})}be.mount(new eS);be.mount(Qd,qd);const oS=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:rS,Sortable:be,Swap:tS,default:be},Symbol.toStringTag,{value:"Module"})),aS=Yh(oS);var xg={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<arguments.length;o++){var a=arguments[o];if(a){var s=typeof a;if(s==="string"||s==="number")i.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&i.push(l)}}else if(s==="object")if(a.toString===Object.prototype.toString)for(var c in a)t.call(a,c)&&a[c]&&i.push(c);else i.push(a.toString())}}return i.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(xg);var sS=xg.exports,lS="Invariant failed";function cS(e,t){if(!e)throw new Error(lS)}const dS=Object.freeze(Object.defineProperty({__proto__:null,default:cS},Symbol.toStringTag,{value:"Module"})),uS=Yh(dS);(function(e){var t=aS,n=sS,i=window.React,o=uS;function a(_){return _&&_.__esModule?_.default:_}function s(_,b,$,B){Object.defineProperty(_,b,{get:$,set:B,enumerable:!0,configurable:!0})}function l(_,b){return Object.keys(b).forEach(function($){$==="default"||$==="__esModule"||_.hasOwnProperty($)||Object.defineProperty(_,$,{enumerable:!0,get:function(){return b[$]}})}),_}s(e.exports,"Sortable",()=>$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",()=>M);function c(_){_.parentElement!==null&&_.parentElement.removeChild(_)}function d(_,b,$){const B=_.children[$]||null;_.insertBefore(b,B)}function u(_){_.forEach(b=>c(b.element))}function f(_){_.forEach(b=>{d(b.parentElement,b.element,b.oldIndex)})}function h(_,b){const $=x(_),B={parentElement:_.from};let y=[];switch($){case"normal":y=[{element:_.item,newIndex:_.newIndex,oldIndex:_.oldIndex,parentElement:_.from}];break;case"swap":const F={element:_.item,oldIndex:_.oldIndex,newIndex:_.newIndex,...B},G={element:_.swapItem,oldIndex:_.newIndex,newIndex:_.oldIndex,...B};y=[F,G];break;case"multidrag":y=_.oldIndicies.map((R,Z)=>({element:R.multiDragElement,oldIndex:R.index,newIndex:_.newIndicies[Z].index,...B}));break}return E(y,b)}function m(_,b){const $=p(_,b);return v(_,$)}function p(_,b){const $=[...b];return _.concat().reverse().forEach(B=>$.splice(B.oldIndex,1)),$}function v(_,b,$,B){const y=[...b];return _.forEach(I=>{const L=B&&$&&B(I.item,$);y.splice(I.newIndex,0,L||I.item)}),y}function x(_){return _.oldIndicies&&_.oldIndicies.length>0?"multidrag":_.swapItem?"swap":"normal"}function E(_,b){return _.map(B=>({...B,item:b[B.oldIndex]})).sort((B,y)=>B.oldIndex-y.oldIndex)}function C(_){const{list:b,setList:$,children:B,tag:y,style:I,className:L,clone:F,onAdd:G,onChange:R,onChoose:Z,onClone:V,onEnd:U,onFilter:O,onRemove:X,onSort:ee,onStart:q,onUnchoose:ae,onUpdate:ce,onMove:W,onSpill:re,onSelect:he,onDeselect:de,...se}=_;return se}const j={dragging:null};class M extends i.Component{constructor(b){super(b),this.ref=(0,i.createRef)();const $=[...b.list].map(B=>Object.assign(B,{chosen:!1,selected:!1}));b.setList($,this.sortable,j),a(o)(!b.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 b=this.makeOptions();a(t).create(this.ref.current,b)}componentDidUpdate(b){b.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:b,style:$,className:B,id:y}=this.props,I={style:$,className:B,id:y},L=!b||b===null?"div":b;return(0,i.createElement)(L,{ref:this.ref,...I},this.getChildren())}getChildren(){const{children:b,dataIdAttr:$,selectedClass:B="sortable-selected",chosenClass:y="sortable-chosen",dragClass:I="sortable-drag",fallbackClass:L="sortable-falback",ghostClass:F="sortable-ghost",swapClass:G="sortable-swap-highlight",filter:R="sortable-filter",list:Z}=this.props;if(!b||b==null)return null;const V=$||"data-id";return i.Children.map(b,(U,O)=>{if(U===void 0)return;const X=Z[O]||{},{className:ee}=U.props,q=typeof R=="string"&&{[R.replace(".","")]:!!X.filtered},ae=a(n)(ee,{[B]:X.selected,[y]:X.chosen,...q});return(0,i.cloneElement)(U,{[V]:U.key,className:ae})})}get sortable(){const b=this.ref.current;if(b===null)return null;const $=Object.keys(b).find(B=>B.includes("Sortable"));return $?b[$]:null}makeOptions(){const b=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],$=["onChange","onClone","onFilter","onSort"],B=C(this.props);return b.forEach(I=>B[I]=this.prepareOnHandlerPropAndDOM(I)),$.forEach(I=>B[I]=this.prepareOnHandlerProp(I)),{...B,onMove:(I,L)=>{const{onMove:F}=this.props,G=I.willInsertAfter||-1;if(!F)return G;const R=F(I,L,this.sortable,j);return typeof R>"u"?!1:R}}}prepareOnHandlerPropAndDOM(b){return $=>{this.callOnHandlerProp($,b),this[b]($)}}prepareOnHandlerProp(b){return $=>{this.callOnHandlerProp($,b)}}callOnHandlerProp(b,$){const B=this.props[$];B&&B(b,this.sortable,j)}onAdd(b){const{list:$,setList:B,clone:y}=this.props,I=[...j.dragging.props.list],L=h(b,I);u(L);const F=v(L,$,b,y).map(G=>Object.assign(G,{selected:!1}));B(F,this.sortable,j)}onRemove(b){const{list:$,setList:B}=this.props,y=x(b),I=h(b,$);f(I);let L=[...$];if(b.pullMode!=="clone")L=p(I,L);else{let F=I;switch(y){case"multidrag":F=I.map((G,R)=>({...G,element:b.clones[R]}));break;case"normal":F=I.map(G=>({...G,element:b.clone}));break;case"swap":default:a(o)(!0,`mode "${y}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${y}" plugin`)}u(F),I.forEach(G=>{const R=G.oldIndex,Z=this.props.clone(G.item,b);L.splice(R,1,Z)})}L=L.map(F=>Object.assign(F,{selected:!1})),B(L,this.sortable,j)}onUpdate(b){const{list:$,setList:B}=this.props,y=h(b,$);u(y),f(y);const I=m(y,$);return B(I,this.sortable,j)}onStart(){j.dragging=this}onEnd(){j.dragging=null}onChoose(b){const{list:$,setList:B}=this.props,y=$.map((I,L)=>{let F=I;return L===b.oldIndex&&(F=Object.assign(I,{chosen:!0})),F});B(y,this.sortable,j)}onUnchoose(b){const{list:$,setList:B}=this.props,y=$.map((I,L)=>{let F=I;return L===b.oldIndex&&(F=Object.assign(F,{chosen:!1})),F});B(y,this.sortable,j)}onSpill(b){const{removeOnSpill:$,revertOnSpill:B}=this.props;$&&!B&&c(b.item)}onSelect(b){const{list:$,setList:B}=this.props,y=$.map(I=>Object.assign(I,{selected:!1}));b.newIndicies.forEach(I=>{const L=I.index;if(L===-1){console.log(`"${b.type}" had indice of "${I.index}", which is probably -1 and doesn't usually happen here.`),console.log(b);return}y[L].selected=!0}),B(y,this.sortable,j)}onDeselect(b){const{list:$,setList:B}=this.props,y=$.map(I=>Object.assign(I,{selected:!1}));b.newIndicies.forEach(I=>{const L=I.index;L!==-1&&(y[L].selected=!0)}),B(y,this.sortable,j)}}En(M,"defaultProps",{clone:b=>b});var T={};l(e.exports,T)})(og);var Yi=og.exports;const fS=window.React.forwardRef,Xi=fS(({searchText:e="",onSearch:t=()=>!1,placeholder:n=P("Search"),...i},o)=>r.jsx(hS,{value:e,onChange:t,ref:o,type:"text",prefix:r.jsx(pS,{children:r.jsx(Bx,{})}),placeholder:n,...i,$_css2:[{height:"40px",width:"100%",borderRadius:"5px",borderWidth:"0px !important",paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"8px",">input":{"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}},me(["",""],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1)) !important"})]}));var hS=w(ht)`${e=>e.$_css2}`,pS=w("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 gS=window.React.createContext,mS=window.React.forwardRef,e0=window.React.useContext,bg=window.React.useEffect,ul=window.React.useMemo,vS=window.React.useRef,Ia=window.React.useState,wS=gS({}),xS=e=>{const{builder:t}=e0(lt),n=oe(t)(l=>l.changeElementSettings),i=oe(t)(l=>{var c;return((c=l.chosenElement)==null?void 0:c.id)??""}),[o]=Ia(!1),a=()=>{n(l=>{l.languages=l.languages.filter(c=>c.id!==e.item.id)}),Ne().refreshPartial(`${t}_${i}`)},s=l=>{n(c=>{const d=c.languages.findIndex(u=>u.id===e.item.id);d!==-1&&(c.languages[d].url=l.toString())})};return r.jsxs(_S,{className:"bg-gutenberg-white rounded-base transition-all ease-in-out duration-base overflow-hidden",$_css2:[{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(SS,{className:"group flex justify-between items-center p-3 select-none h-[44px]",$_css3:[o&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},o&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("span",{className:"brandy-social-drag-handle cursor-grab p-2",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Re([!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(jS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:yg[e.item.flag]??""}}),r.jsx("span",{className:Re(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.language_name})]}),r.jsx(kS,{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(ES,{className:"p-1 cursor-pointer",onClick:a,$_css5:[me(["&: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(DS,{value:e.item.url,onChange:s,prefix:r.jsx($S,{className:"brandy-icon",$_css7:[me(["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:[me(["padding:0 !important;overflow:hidden;"])]})})]})},bS=window.brandyCustomizerData.language.list,yg=window.brandyCustomizerData.language.flags;function yS(e){const{builder:t}=e0(lt),n=ul(()=>e.value??e.default_value,[e.value,e.default_value]),i=oe(t)(x=>{var E;return((E=x.chosenElement)==null?void 0:E.id)??""}),[o,a]=Ia(null),[s,l]=Ia(null),{styles:c,attributes:d}=fr(o,s),[u,f]=Ia(!1),h=()=>{f(x=>!x)},m=()=>{f(!1)};bg(()=>{const x=E=>{(o==null||s==null)&&m(),!(o!=null&&o.contains(E.target))&&!(s!=null&&s.contains(E.target))&&m()};return window.jQuery(document).on("click","body",x),()=>{window.jQuery(document).off("click","body",x)}},[o,s]);const p=x=>{JSON.stringify(n)!==JSON.stringify(x)&&(e.onChange(x),Ne().refreshPartial(`${t}_${i}`))},v=ul(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(wS.Provider,{value:v,children:r.jsxs(HS,{children:[r.jsxs(MS,{children:[r.jsx(wt,{className:"m-0",children:P("List languages")}),r.jsx(TS,{className:"group",ref:a,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(IS,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Yi.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(x=>r.jsx("div",{children:r.jsx(xS,{item:x})},x.id))}),u&&r.jsx(CS,{ref:l,style:{...c.popper},...d.popper,onClose:m})]})})}const CS=mS(({style:e,onClose:t,...n},i)=>{const{builder:o}=e0(lt),a=oe(o)(p=>p.changeElementSettings),s=oe(o)(p=>{var v,x;return((x=(v=p.chosenElement)==null?void 0:v.settings)==null?void 0:x.languages)??[]}),l=oe(o)(p=>{var v;return((v=p.chosenElement)==null?void 0:v.id)??""}),[c,d]=Ia(""),u=ul(()=>bS.filter(p=>!s.map(v=>v.id).includes(p.id)),[s]),f=ul(()=>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]),h=p=>()=>{a(v=>{v.languages.push(p)}),Ne().refreshPartial(`${o}_${l}`),t()},m=vS(null);return bg(()=>{var p,v;return(v=(p=m.current)==null?void 0:p.querySelector("input"))==null?void 0:v.focus()},[m.current]),r.jsxs(LS,{style:e,ref:i,...n,children:[r.jsxs(AS,{children:[r.jsx(RS,{children:"Add language"}),r.jsx(OS,{onClick:()=>{t()},children:r.jsx(Bl,{})})]}),r.jsx(NS,{children:r.jsx(Xi,{ref:m,searchText:c,onSearch:p=>{d(p.toString())},placeholder:P("Search language")})}),r.jsx(Rr,{className:"h-[300px]",autoHide:!0,children:r.jsxs(PS,{children:[f.map(p=>r.jsxs(BS,{onClick:h(p),children:[r.jsx(VS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:yg[p.flag]??""},$_css8:[`
                  display: inline-flex;
                  width: 30px;
                  height: 100%;
                  svg {
                    width: 100%;
                    height: 100%;
                  }`]}),r.jsx("span",{children:p.english_name})]},p.id)),f.length===0&&r.jsx(zS,{children:"No language found"})]})})]})});var _S=w("div")`${e=>e.$_css2}`,SS=w("div")`${e=>e.$_css3}`,jS=w("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;
              }
            `,kS=w("div")`${e=>e.$_css4}`,ES=w("span")`${e=>e.$_css5}`,DS=w(ht)`${e=>e.$_css6}`,$S=w("span")`${e=>e.$_css7}`,HS=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),MS=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),TS=w("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#E7EBFCB2"}}),IS=w("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#3858e9"}}),LS=w("div")({zIndex:"10",marginTop:"0.5rem",marginBottom:"0.5rem",width:"320px",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),AS=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),RS=w("span")({fontSize:"16px",fontWeight:"500"}),OS=w("span")({cursor:"pointer",padding:"0.25rem"}),NS=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),PS=w("div")({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.25rem",padding:"1rem"}),BS=w("div")({display:"flex",minHeight:"45px",cursor:"pointer",alignItems:"center",gap:"0.5rem",borderRadius:"3px",padding:"0.5rem","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 244 249 / var(--tw-bg-opacity, 1))"}}),VS=w("span")`${e=>e.$_css8}`,zS=w("div").withConfig({displayName:"ListLanguages___StyledDiv10",componentId:"sc-1uj33jr-0"})({gridColumn:"span 4 / span 4",margin:"auto","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"});const FS=e=>{var t;return r.jsx(WS,{className:"currency-item",$_css:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(GS,{className:"group",children:r.jsx(US,{children:r.jsxs(YS,{className:Re(["group-hover:text-brandy-text"]),children:[r.jsx(XS,{src:((t=window.brandyCustomizerData.currency.list.find(n=>n.id==e.item.id))==null?void 0:t.flag)??"",alt:"currency-flag"}),r.jsx(JS,{children:e.item.id})]})})})})},da=window.brandyCustomizerData.currency.list;function ZS(){return r.jsxs(KS,{children:[r.jsx(qS,{children:r.jsx(wt,{className:"m-0",children:P("List Currencies")})}),da==null&&r.jsx("div",{dangerouslySetInnerHTML:{__html:P('Please install <a href="https://wordpress.org/plugins/yaycurrency/" target="_blank"><strong>YayCurrency</strong></a> to add currencies')}}),da==null?void 0:da.map(e=>r.jsx("div",{children:r.jsx(FS,{item:e})},e.id)),da!=null&&r.jsx(QS,{href:window.brandyCustomizerData.paths.yay_currency_manage,target:"_blank",children:P("Manage currencies")})]})}var WS=w("div")`${e=>e.$_css}`,GS=w("div")({display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"}),US=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),YS=w("span")({display:"flex",alignItems:"center"}),XS=w("img")({marginRight:"0.5rem",display:"inline-block",width:"30px",borderRadius:"3px"}),JS=w("span")({fontWeight:"500"}),KS=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),qS=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),QS=w("a").withConfig({displayName:"ListCurrencies___StyledA",componentId:"sc-gaezvr-0"})({textDecorationLine:"underline"});const ej=window.React.useContext;function tj(e){const t=ej(lt);return r.jsx("div",{className:"flex flex-col gap-4",children:r.jsxs("div",{children:[r.jsx(ql,{...e}),r.jsxs("div",{className:"text-brandy-text-secondary mt-2",children:[P("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 nj=window.React.useContext,gf=window.React.useMemo,rj=window.brandyCustomizerData.icons.account;function ij(e){const{builder:t}=nj(Jt),n=gf(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=oe(t)(a=>{var s,l,c,d,u,f,h,m;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:(m=(h=(f=(u=a.chosenElement)==null?void 0:u.settings)==null?void 0:f.logged_out)==null?void 0:h.icon)==null?void 0:m.style)??"outline"}),o=gf(()=>Object.entries(rj[i]??{}).map(([a,s])=>({value:a,label:r.jsx("span",{className:Re(["brandy-icon"]),dangerouslySetInnerHTML:{__html:s}})})),[i]);return r.jsx(ur,{...e,options:o,itemCss:[me(["&.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 oj=window.React.useMemo,aj={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 Cg({state:e}){const t=oj(()=>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:aj[e]})]})}const sj=()=>r.jsx(Cg,{state:"logged_in"}),lj=()=>r.jsx(Cg,{state:"logged_out"}),cj=window.React.useMemo,dj=window.brandyCustomizerData.icons.button;function uj(e){const t=cj(()=>Object.entries(dj??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:"text-[#A1ABB7]",dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(ur,{...e,options:t,className:"[&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-4"})}const fj=window.React.useContext,hj=window.React.useMemo,pj=window.brandyCustomizerData.icons.cart;function gj(e){const{builder:t}=fj(Jt),n=oe(t)(o=>{var a;return(a=o.chosenElement)==null?void 0:a.settings.icon_style}),i=hj(()=>Object.entries(pj[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:Re(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(ur,{...e,options:i})}const mj=window.React.forwardRef,t0=window.React.useContext,_g=window.React.useEffect,od=window.React.useMemo,vj=window.React.useRef,La=window.React.useState,wj=e=>{const{builder:t}=t0(lt),n=oe(t)(u=>{var f;return(f=u.chosenElement)==null?void 0:f.settings}),i=oe(t)(u=>u.changeElementSettings),[o,a]=La(!1),s=()=>{i(u=>{u.items=n.items.filter(f=>f.id!==e.item.id)}),Ne().refreshPartial(`${t}_contact`)},l=()=>{a(u=>!u)},c=u=>{n.items.forEach((f,h)=>{if(f.id===e.item.id){const m=Le($t("contact",t)+` .brandy-contact-item[type="${f.id}"] .brandy-contact-item__text`);m&&window.jQuery(m).html(u.toString()),i(p=>{p.items[h].content=u.toString()})}})},d=u=>{n.items.forEach((f,h)=>{if(f.id===e.item.id){const m=Le($t("contact",t)+` .brandy-contact-item[type="${f.id}"]`);m&&window.jQuery(m).attr("href",u.toString()),i(p=>{p.items[h].url=u.toString()})}})};return r.jsxs(Cj,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(_j,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},o&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},o&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(Sj,{children:[r.jsx(jj,{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:Re([!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:Re(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(kj,{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(Ej,{className:"p-1 cursor-pointer",onClick:s,$_css5:[me(["&: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(Dj,{onClick:l,className:"p-1 cursor-pointer",$_css6:[me(["&: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($j,{children:[r.jsxs(Hj,{children:[r.jsx("div",{children:"Content"}),r.jsx(ht,{value:e.item.content,onChange:c})]}),r.jsxs(Mj,{children:[r.jsx("div",{children:"Link"}),r.jsx(Tj,{value:e.item.url,onChange:d,prefix:r.jsx(Ij,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Sg[e.item.icon]??""},$_css8:[me(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[me(["padding:0 !important;overflow:hidden;"])]})]})]})]})},xj=window.brandyCustomizerData.all_contacts,Sg=window.brandyCustomizerData.icons.contact;function bj(e){const{builder:t}=t0(lt),n=od(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=La(null),[a,s]=La(null),{styles:l,attributes:c}=fr(i,a),[d,u]=La(!1),f=()=>{u(p=>!p)},h=()=>{u(!1)};_g(()=>{const p=v=>{(i==null||a==null)&&h(),!(i!=null&&i.contains(v.target))&&!(a!=null&&a.contains(v.target))&&h()};return window.jQuery(document).on("click","body",p),()=>{window.jQuery(document).off("click","body",p)}},[i,a]);const m=p=>{JSON.stringify(n)!==JSON.stringify(p)&&(e.onChange(p),Ne().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(wt,{className:"m-0",children:P("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: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("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(Yi.ReactSortable,{list:n,setList:m,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(wj,{item:p})},p.id))}),d&&r.jsx(yj,{ref:s,style:{...l.popper},...c.popper,onClose:h})]})}const yj=mj(({style:e,onClose:t,...n},i)=>{const{builder:o}=t0(lt),a=oe(o)(m=>{var p;return(p=m.chosenElement)==null?void 0:p.settings}),s=oe(o)(m=>m.changeElementSettings),[l,c]=La(""),d=od(()=>xj.filter(m=>!a.items.map(p=>p.id).includes(m.id)),[a.items]),u=od(()=>d.filter(m=>m.label.toLowerCase().includes(l.toLowerCase())),[d,l]),f=m=>()=>{s(p=>{p.items.push(m)}),Ne().refreshPartial(`${o}_contact`),t()},h=vj(null);return _g(()=>{var m,p;return(p=(m=h.current)==null?void 0:m.querySelector("input"))==null?void 0:p.focus()},[h.current]),r.jsxs(Lj,{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(Bl,{})})]}),r.jsx("div",{className:"p-4 pt-2 border-b border-b-brandy-border-light",children:r.jsx(Xi,{ref:h,searchText:l,onSearch:m=>{c(m.toString())},placeholder:P("Search contact")})}),r.jsx(Rr,{className:"h-[250px]",autoHide:!0,children:r.jsxs("div",{className:"p-4 flex flex-col gap-1",children:[u.map(m=>r.jsxs(Aj,{className:"group",onClick:f(m),$_css0:[{display:"flex",width:"100%",alignItems:"center",gap:"10px",borderRadius:"3px",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"16px",paddingBottom:"16px"},{cursor:"pointer",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{"&:hover":{backgroundColor:"rgb(56 88 233 / 0.03)"}}],children:[r.jsx(Rj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Sg[m.icon]??""},$_css1:[me(["svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7",".group:hover &":{stroke:"#3858e9"}},{fill:"#A1ABB7",".group:hover &":{fill:"#3858e9"}})]}),r.jsx(Oj,{children:m.label})]},m.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var Cj=w("div")`${e=>e.$_css2}`,_j=w("div")`${e=>e.$_css3}`,Sj=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),jj=w("span")({cursor:"grab",padding:"0.5rem"}),kj=w("div")`${e=>e.$_css4}`,Ej=w("span")`${e=>e.$_css5}`,Dj=w("span")`${e=>e.$_css6}`,$j=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Hj=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Mj=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Tj=w(ht)`${e=>e.$_css7}`,Ij=w("span")`${e=>e.$_css8}`,Lj=w("div")`${e=>e.$_css9}`,Aj=w("div")`${e=>e.$_css0}`,Rj=w("span")`${e=>e.$_css1}`,Oj=w("span").withConfig({displayName:"ListContacts___StyledSpan6",componentId:"sc-1q0j5o-0"})({"--tw-text-opacity":"1",color:"rgb(66 66 66 / var(--tw-text-opacity, 1))",".group:hover &":{"--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}});const Nj=window.React.useContext,Pj=window.React.useMemo,Bj=[{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"})})]})}],Vj=w.div.withConfig({displayName:"ActiveTypeSelection__StyledItem",componentId:"sc-5cnq7j-0"})(({selected:e})=>[{backgroundColor:"rgba(255, 255, 255, 0.65)",padding:"1.25rem","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.80)"}},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{cursor:"pointer",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"}]);var zj=w(Vj).withConfig({displayName:"ActiveTypeSelection___StyledStyledItem",componentId:"sc-5cnq7j-1"})(["",""],e=>e.$_css2);function Fj(e){const{builder:t}=Nj(lt),n=oe(t)(s=>s.changeElementSettings),{current:i}=De(),o=Pj(()=>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(()=>{dr({sectionId:e.sectionId,settings:l,device:i})},1)}),e.onChange(s))};return r.jsxs(r.Fragment,{children:[r.jsx(wt,{children:P("Select menu item active type")}),r.jsx("div",{className:"flex flex-col gap-4",children:Bj.map(s=>r.jsx(zj,{onClick:()=>{a(s.value)},selected:o===s.value,$_css2:[me`
                svg {
                  width: 100%;
                }
              `],children:s.label},s.value))})]})}const Zj=window.React.useContext,Wj=window.React.useMemo,Gj=window.brandyCustomizerData.wp_nav_menus,Uj=Gj.map(e=>({label:e.name,value:e.slug}));function Yj(e){const t=Zj(lt),n=Wj(()=>e.value??e.default_value,[e.value,e.default_value]);return r.jsxs(r.Fragment,{children:[r.jsx(wt,{children:"Select Menu"}),r.jsx(jt,{options:Uj,selected:n,onChange:e.onChange}),r.jsxs("div",{className:"text-brandy-text-secondary mt-2",children:[P("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 Xj=window.React.useMemo,Jj=window.brandyCustomizerData.icons.search;function Kj(e){const t=Xj(()=>Object.entries(Jj??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:Re(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(ur,{...e,options:t})}const qj=[{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 Qj(e){return r.jsx(ur,{...e,options:(e.options??[]).map(t=>qj.find(n=>n.value===t.value)),className:"live-result-type-group [&_.brandy-radio-item]:pb-0",itemCss:[me(["&.selected{border:1px solid #000;}"])]})}const ek=window.React.useMemo,tk=window.React.useState;function nk(e){const[t,n]=tk(""),i=l=>{n(l.toString())},o=ek(()=>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(ht,{placeholder:"Typing suggestion then enter",onChange:i,value:t,onKeyUp:a,type:"text"}),r.jsx(rk,{tags:o,onRemove:s})]})}function rk({tags:e,onRemove:t}){return r.jsx(ik,{children:e.map(n=>r.jsxs(ok,{children:[n,r.jsx("span",{onClick:()=>{t(n)},children:r.jsxs(ak,{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 ik=w("div")({marginTop:"0.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"}),ok=w("span")({display:"flex",alignItems:"center",gap:"0.5rem",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.5rem"}),ak=w("svg").withConfig({displayName:"Suggestions___StyledSvg",componentId:"sc-vw3nn3-0"})({height:"8px",width:"8px",cursor:"pointer"});const sk=window.React.forwardRef,n0=window.React.useContext,jg=window.React.useEffect,Xs=window.React.useMemo,lk=window.React.useRef,Aa=window.React.useState,ck=e=>{const{builder:t}=n0(lt),n=oe(t)(f=>{var h;return(h=f.chosenElement)==null?void 0:h.settings}),i=oe(t)(f=>f.changeElementSettings),o=oe(t)(f=>{var h;return(h=f.chosenElement)==null?void 0:h.id}),[a,s]=Aa(!1),l=()=>{i(f=>{f.items=n.items.filter(h=>h.id!==e.item.id)}),Ne().refreshPartial(`${t}_${o}`)},c=()=>{s(f=>!f)},d=f=>{n.items.forEach((h,m)=>{if(h.id===e.item.id){const p=Le($t(o??"",t)+` .brandy-social-item[data-social-id="${h.id}"] .brandy-social-item__label`);p&&window.jQuery(p).html(f),i(v=>{v.items[m].label=f.toString()})}})},u=f=>{n.items.forEach((h,m)=>{if(h.id===e.item.id){const p=Le($t(o??"",t)+` .brandy-social-item[data-social-id="${h.id}"]`);p&&window.jQuery(p).attr("href",f),i(v=>{v.items[m].url=f.toString()})}})};return r.jsxs(hk,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(pk,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},a&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(gk,{children:[r.jsx(mk,{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:Re([!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:Re(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(vk,{$_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(wk,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},me(["&: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(xk,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},me(["&: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(bk,{children:[r.jsxs(yk,{children:[r.jsx("div",{children:"Label"}),r.jsx(ht,{value:e.item.label,onChange:d})]}),r.jsxs(Ck,{children:[r.jsx("div",{children:"Link"}),r.jsx(_k,{value:e.item.url,onChange:u,prefix:r.jsx(Sk,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:(fl[e.item.icon]&&fl[e.item.icon][n.icon_color_type])??""},$_css8:[me(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[me(["padding:0 !important;overflow:hidden;"])]})]})]})]})},dk=window.brandyCustomizerData.all_socials,fl=window.brandyCustomizerData.icons.socials;function uk(e){const{builder:t}=n0(lt),n=Xs(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Aa(null),[a,s]=Aa(null),{styles:l,attributes:c}=fr(i,a),[d,u]=Aa(!1),f=()=>{u(v=>!v)},h=()=>{u(!1)};jg(()=>{const v=x=>{(i==null||a==null)&&h(),!(i!=null&&i.contains(x.target))&&!(a!=null&&a.contains(x.target))&&h()};return window.jQuery(document).on("click","body",v),()=>{window.jQuery(document).off("click","body",v)}},[i,a]);const m=oe(t)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.id}),p=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),Ne().refreshPartial(`${t}_${m}`))};return r.jsxs(jk,{children:[r.jsxs(kk,{children:[r.jsx(wt,{className:"m-0",children:"List socials"}),r.jsx(Ek,{className:"group",ref:o,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(Dk,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Yi.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(ck,{item:v})},v.id))}),d&&r.jsx(fk,{ref:s,style:{...l.popper},...c.popper,onClose:h})]})}const fk=sk(({style:e,onClose:t,...n},i)=>{const{builder:o}=n0(lt),a=oe(o)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.settings}),s=oe(o)(v=>v.changeElementSettings),[l,c]=Aa(""),d=Xs(()=>dk.filter(v=>!a.items.map(x=>x.id).includes(v.id)),[a.items]),u=Xs(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),f=Xs(()=>a.icon_color_type,[a.icon_color_type]),h=oe(o)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.id}),m=v=>()=>{s(x=>{x.items.push(v)}),Ne().refreshPartial(`${o}_${h}`),t()},p=lk(null);return jg(()=>{var v,x;return(x=(v=p.current)==null?void 0:v.querySelector("input"))==null?void 0:x.focus()},[p.current]),r.jsxs($k,{style:e,ref:i,...n,$_css9:[{zIndex:"10",marginTop:"0.5rem",marginBottom:"0.5rem",width:"320px",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{"--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsxs(Hk,{children:[r.jsx(Mk,{children:"Add social icon"}),r.jsx(Tk,{onClick:()=>{t()},children:r.jsx(Bl,{})})]}),r.jsx(Ik,{children:r.jsx(Xi,{ref:p,searchText:l,onSearch:v=>{c(v.toString())},placeholder:P("Search socials")})}),r.jsx(Rr,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Lk,{children:[u.map(v=>r.jsx(Ak,{onClick:m(v),$_css0:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"1rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},f==="custom"&&me(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#3858e9"},{fill:"#3858e9"})],children:r.jsx("span",{className:`brandy-icon ${f==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:(fl[v.icon]&&fl[v.icon][f])??""}})},v.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var hk=w("div")`${e=>e.$_css2}`,pk=w("div")`${e=>e.$_css3}`,gk=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),mk=w("span")({cursor:"grab",padding:"0.5rem"}),vk=w("div")`${e=>e.$_css4}`,wk=w("span")`${e=>e.$_css5}`,xk=w("span")`${e=>e.$_css6}`,bk=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),yk=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Ck=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),_k=w(ht)`${e=>e.$_css7}`,Sk=w("span")`${e=>e.$_css8}`,jk=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),kk=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Ek=w("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#E7EBFCB2"}}),Dk=w("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#3858e9"}}),$k=w("div")`${e=>e.$_css9}`,Hk=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),Mk=w("span")({fontSize:"16px",fontWeight:"500"}),Tk=w("span")({cursor:"pointer",padding:"0.25rem"}),Ik=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),Lk=w("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),Ak=w("div").withConfig({displayName:"ListSocials___StyledDiv13",componentId:"sc-hody2l-0"})(["",""],e=>e.$_css0);const Rk=window.React.forwardRef,r0=window.React.useContext,kg=window.React.useEffect,Js=window.React.useMemo,Ok=window.React.useRef,Ra=window.React.useState,Nk=e=>{const{builder:t}=r0(lt),n=oe(t)(u=>{var f;return(f=u.chosenElement)==null?void 0:f.settings}),i=oe(t)(u=>u.changeElementSettings),o=oe(t)(u=>{var f;return(f=u.chosenElement)==null?void 0:f.id}),[a,s]=Ra(!1),l=()=>{i(u=>{u.items=n.items.filter(f=>f.id!==e.item.id)}),Ne().refreshPartial(`${t}_${o}`)},c=()=>{s(u=>!u)},d=u=>{n.items.forEach((f,h)=>{if(f.id===e.item.id){const m=Le($t(o??"",t)+` .brandy-payment-item[data-payment-id="${f.id}"]`);m&&window.jQuery(m).attr("href",Hl(u)),i(p=>{p.items[h].url=u.toString()})}})};return r.jsxs(zk,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(Fk,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},a&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(Zk,{children:[r.jsx(Wk,{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:Re([!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:Re(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Gk,{$_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(Uk,{onClick:l,$_css5:[{cursor:"pointer",padding:"0.25rem"},me(["&: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(Yk,{onClick:c,$_css6:[{cursor:"pointer",padding:"0.25rem"},me(["&: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(Xk,{children:r.jsxs(Jk,{children:[r.jsx("div",{children:"Link"}),r.jsx(Kk,{value:e.item.url,onChange:d,prefix:r.jsx(qk,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Eg[e.item.icon]??""},$_css8:[me(["padding:6px;background:#fafafa;border-radius:5px 0 0 5px;border-right:1px solid #e3e8ee;"])]}),$_css7:[me(["padding:0 !important;overflow:hidden;"])]})]})})]})},Pk=window.brandyCustomizerData.all_payments,Eg=window.brandyCustomizerData.icons.payments;function Bk(e){const{builder:t}=r0(lt),n=Js(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Ra(null),[a,s]=Ra(null),{styles:l,attributes:c}=fr(i,a),[d,u]=Ra(!1),f=()=>{u(v=>!v)},h=()=>{u(!1)};kg(()=>{const v=x=>{(i==null||a==null)&&h(),!(i!=null&&i.contains(x.target))&&!(a!=null&&a.contains(x.target))&&h()};return window.jQuery(document).on("click","body",v),()=>{window.jQuery(document).off("click","body",v)}},[i,a]);const m=oe(t)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.id}),p=v=>{JSON.stringify(n)!==JSON.stringify(v)&&(e.onChange(v),Ne().refreshPartial(`${t}_${m}`))};return r.jsxs(Qk,{children:[r.jsxs(eE,{children:[r.jsx(wt,{className:"m-0",children:"List payments"}),r.jsx(tE,{className:"group",ref:o,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(nE,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Yi.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(Nk,{item:v})},v.id))}),d&&r.jsx(Vk,{ref:s,style:{...l.popper},...c.popper,onClose:h})]})}const Vk=Rk(({style:e,onClose:t,...n},i)=>{const{builder:o}=r0(lt),a=oe(o)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.settings}),s=oe(o)(v=>v.changeElementSettings),[l,c]=Ra(""),d=Js(()=>Pk.filter(v=>!a.items.map(x=>x.id).includes(v.id)),[a.items]),u=Js(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),f=Js(()=>a.icon_color_type,[a.icon_color_type]),h=oe(o)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.id}),m=v=>()=>{s(x=>{x.items.push(v)}),Ne().refreshPartial(`${o}_${h}`),t()},p=Ok(null);return kg(()=>{var v,x;return(x=(v=p.current)==null?void 0:v.querySelector("input"))==null?void 0:x.focus()},[p.current]),r.jsxs(rE,{style:e,ref:i,...n,$_css9:[{zIndex:"10",marginTop:"0.5rem",marginBottom:"0.5rem",width:"320px",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{"--tw-shadow":"0px 0px 8px 0px rgba(51, 51, 51, 0.10)","--tw-shadow-colored":"0px 0px 8px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:[r.jsxs(iE,{children:[r.jsx(oE,{children:"Add payment icon"}),r.jsx(aE,{onClick:()=>{t()},children:r.jsx(Bl,{})})]}),r.jsx(sE,{children:r.jsx(Xi,{ref:p,searchText:l,onSearch:v=>{c(v.toString())},placeholder:P("Search payment")})}),r.jsx(Rr,{className:"h-[300px]",autoHide:!0,children:r.jsxs(lE,{children:[u.map(v=>r.jsx(cE,{onClick:m(v),$_css0:[{display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},f==="custom"&&me(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#3858e9"},{fill:"#3858e9"})],children:r.jsx("span",{className:`brandy-icon [&_svg]:w-[50px] [&_svg]:h-[40px] ${f==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:Eg[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 zk=w("div")`${e=>e.$_css2}`,Fk=w("div")`${e=>e.$_css3}`,Zk=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Wk=w("span")({cursor:"grab",padding:"0.5rem"}),Gk=w("div")`${e=>e.$_css4}`,Uk=w("span")`${e=>e.$_css5}`,Yk=w("span")`${e=>e.$_css6}`,Xk=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Jk=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Kk=w(ht)`${e=>e.$_css7}`,qk=w("span")`${e=>e.$_css8}`,Qk=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),eE=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),tE=w("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#E7EBFCB2"}}),nE=w("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#3858e9"}}),rE=w("div")`${e=>e.$_css9}`,iE=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),oE=w("span")({fontSize:"16px",fontWeight:"500"}),aE=w("span")({cursor:"pointer",padding:"0.25rem"}),sE=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),lE=w("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),cE=w("div").withConfig({displayName:"ListPayments___StyledDiv12",componentId:"sc-wzxanx-0"})(["",""],e=>e.$_css0);const dE=window.React.useContext,uE=window.React.useMemo,fE=window.brandyCustomizerData.icons.wishlist;function hE(e){const{builder:t}=dE(Jt),n=oe(t)(o=>{var a,s;return((s=(a=o.chosenElement)==null?void 0:a.settings)==null?void 0:s.icon_style)??"outline"}),i=uE(()=>Object.entries(fE[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:Re(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(ur,{...e,options:i,itemCss:n==="outline"?[me(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]:[me(["&.selected{border:1px solid black;svg *[stroke]{stroke:#000 !important;}svg *[fill]{fill:#000 !important;}}"])]})}const pE=window.React.useContext,gE=window.React.useMemo;function mE(e){const{builder:t}=pE(Jt),n=gE(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=oe(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=Le($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(Ud,{...e,onChange:o})}const vE=window.React.useContext,mf={small:{button_design_text:{typography:{font_size:{desktop:{unit:"px",value:"12",min:1,max:30},tablet:null,mobile:null}}},button_design_padding:{unit:"px",top:7,bottom:7,left:16,right:16,is_constraints:!1}},medium:{button_design_text:{typography:{font_size:{desktop:{unit:"px",value:14,min:1,max:30},tablet:null,mobile:null}}},button_design_padding:{unit:"px",top:10,bottom:10,left:16,right:16,is_constraints:!1}},large:{button_design_text:{typography:{font_size:{desktop:{unit:"px",value:"18",min:1,max:30},tablet:null,mobile:null}}},button_design_padding:{unit:"px",top:12,bottom:12,left:16,right:16,is_constraints:!1}}};function wE(e){const{builder:t}=vE(lt),{current:n}=De(),i=oe(t)(a=>a.changeElementSettings),o=a=>{i(s=>{Ut(s,["button_design_text","typography","font_size"],mf[a].button_design_text.typography.font_size),Ut(s,["button_design_padding"],mf[a].button_design_padding),dr({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(ii,{...e,onChange:o})}const xE=window.React.useContext;function bE(e){const{builder:t}=xE(lt),{current:n}=De(),i=oe(t)(a=>a.changeElementSettings),o=a=>{const s=Le($t(e.sectionId,t)+" .brandy-element-wrapper"),l=Le($t(e.sectionId,t)+" .brandy-button");if(!s||!l)return;let c,d;c=parseInt(window.jQuery(l).css("border-width"));const u=e.settings.inherit_theme??!0,f=a==="outline";if(u){const h="wp-block-button",m="is-style-outline is-style-outline--1",p="wp-element-button wp-block-button__link";f?window.jQuery(s).addClass(m):window.jQuery(s).removeClass(m),window.jQuery(s).addClass(h),window.jQuery(l).addClass(p)}e.onChange(a),setTimeout(()=>{i(h=>{f?(h.button_design.border.color={normal:{desktop:"var(--wp--preset--color--brandy-foreground)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null}},h.button_design_text.color={normal:{desktop:"var(--wp--preset--color--brandy-foreground)",tablet:null,mobile:null},hover:{desktop:"#ffffff",tablet:null,mobile:null}},h.button_design.background_color={normal:{desktop:"#ffffff",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null}},h.button_design.border.width.desktop={unit:"px",min:0,max:20,value:2},h.button_design.border.width.tablet=null,h.button_design.border.width.mobile=null):(h.button_design.border.color={normal:{desktop:"",tablet:null,mobile:null},hover:{desktop:"",tablet:null,mobile:null}},h.button_design_text.color={normal:{desktop:"#ffffff",tablet:null,mobile:null},hover:{desktop:"#ffffff",tablet:null,mobile:null}},h.button_design.background_color={normal:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-foreground)",tablet:null,mobile:null}},h.button_design.border.width.desktop.value=0,h.button_design.border.width.desktop.unit="px",h.button_design.border.width.tablet=null,h.button_design.border.width.mobile=null),u?d=parseInt(window.jQuery(l).css("border-width")):(c=f?0:2,d=f?2:0);const m=d-c;h.button_design_padding.top=Math.max(0,h.button_design_padding.top-m),h.button_design_padding.bottom=Math.max(0,h.button_design_padding.bottom-m),h.button_design_padding.left=Math.max(0,h.button_design_padding.left-m),h.button_design_padding.right=Math.max(0,h.button_design_padding.right-m),dr({sectionId:e.sectionId,settings:h,device:n,clonedFromId:e.cloned_from})})},u?400:0)};return r.jsx(ii,{...e,onChange:o})}const vf=window.React.useMemo,yE=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"15",width:"48",height:"36",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"15",width:"48",height:"36",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_15432)"})]}),value:"1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"24",height:"36",transform:"matrix(-1 0 0 1 110 15)",fill:"#A1ABB7"}),r.jsx("rect",{width:"72",height:"36",transform:"matrix(-1 0 0 1 83 15)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_75917)"})]}),value:"2fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"15",width:"24",height:"36",fill:"#A1ABB7"}),r.jsx("rect",{x:"38",y:"15",width:"72",height:"36",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM120 65H1H120ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4343_75957)"})]}),value:"1fr 2fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],CE=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"31",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"31",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"31",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137253)"})]}),value:"1fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"63",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"95",y:"11",width:"15",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137262)"})]}),value:"3fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"63",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 44 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137269)"})]}),value:"1fr 1fr 3fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"63",height:"44",transform:"matrix(-1 0 0 1 92 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137276)"})]}),value:"1fr 3fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],_E=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"36.5",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"87.5",y:"11",width:"22.5",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137283)"})]}),value:"repeat(4,1fr)"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{width:"45",height:"44",transform:"matrix(-1 0 0 1 110 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 62 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 44 11)",fill:"#A1ABB7"}),r.jsx("rect",{width:"15",height:"44",transform:"matrix(-1 0 0 1 26 11)",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137304)"})]}),value:"1fr 1fr 1fr 3fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"45",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"59",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"77",y:"11",width:"15",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"95",y:"11",width:"15",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137295)"})]}),value:"3fr 1fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],SE=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"31.4004",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"51.7998",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"72.2002",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"92.5996",y:"11",width:"17.4",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137313)"})]}),value:"1fr 1fr 1fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.5 11H79V55H94.5H110V11H94.5Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151083)"})]}),value:"1fr 1fr 1fr 1fr 2fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.5 11H45V55H60.5H76V11H60.5Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151113)"})]}),value:"1fr 1fr 2fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 11H11V55H26.5H42V11H26.5Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_4555_151132)"})]}),value:"2fr 1fr 1fr 1fr 1fr"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}],jE=[{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H115C117.761 1 120 3.23858 120 6V65H1V6Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("rect",{x:"11",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"28",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"45",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"62",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"79",y:"11",width:"14",height:"44",fill:"#A1ABB7"}),r.jsx("rect",{x:"96",y:"11",width:"14",height:"44",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H115C118.314 0 121 2.68629 121 6H119C119 3.79086 117.209 2 115 2H6C3.79086 2 2 3.79086 2 6H0ZM120 65H1H120ZM0 65V6C0 2.68629 2.68629 0 6 0V2C3.79086 2 2 3.79086 2 6V65H0ZM115 0C118.314 0 121 2.68629 121 6V65H119V6C119 3.79086 117.209 2 115 2V0Z",fill:"#E3E8EE",mask:"url(#path-1-outside-1_3120_137327)"})]}),value:"repeat(6,1fr)"},{label:r.jsxs("svg",{width:"121",height:"65",viewBox:"0 0 121 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsxs("g",{"clip-path":"url(#clip0_3028_6314)",children:[r.jsx("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.35",children:[r.jsx("path",{d:"M110 11H10V33H110V11Z",fill:"#A1ABB7"}),r.jsx("path",{d:"M110 38H10V60H110V38Z",fill:"#A1ABB7"})]}),r.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H117C119.209 0 121 1.79086 121 4H119C119 2.89543 118.105 2 117 2H4C2.89543 2 2 2.89543 2 4H0ZM0 65V4C0 1.79086 1.79086 0 4 0V2C2.89543 2 2 2.89543 2 4V65H0ZM117 0C119.209 0 121 1.79086 121 4V65H119V4C119 2.89543 118.105 2 117 2V0Z",fill:"#E3E8EE"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_3028_6314",children:r.jsx("rect",{width:"121",height:"65",fill:"white"})})})]}),value:"1fr"}];function kE(e){var a,s,l;const{current:t}=De(),n=vf(()=>{var c,d;return((c=e.settings)==null?void 0:c.number_column[t])??((d=e.settings)==null?void 0:d.number_column.desktop)},[(a=e.settings)==null?void 0:a.number_column[t],t]),i=vf(()=>n===3?CE:n===4?_E:n===5?SE:n===6?jE:yE,[n]);if(n===1)return!1;const o=c=>{const d=JSON.parse(JSON.stringify(ke(e.settings,["column_layout"])??{desktop:"",tablet:null,mobile:null}));d[t]=c,e.onChange(d,["column_layout"]),dr({sectionId:e.sectionId,device:t,settings:{column_layout:d},builder:"footer"})};return r.jsx(ur,{...e,options:i,className:"column-layout-group [&>div:first-child]:mb-2 [&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-2",itemCss:[me(["&.selected{border:1px solid #000;}"])],onChange:o,value:((l=(s=e.settings)==null?void 0:s.column_layout)==null?void 0:l[t])??""})}function EE(e){const{current:t}=De(),n=Qe(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(u=>{c[u]==null&&(u==="desktop"&&(c[u]=1),u==="tablet"&&(c[u]=c.desktop),u==="mobile"&&(c[u]=c.tablet))}),t==="mobile"&&(c.tablet=c.mobile),t==="tablet"&&(c.mobile=c.tablet),e.onChange(c),a=c[t];const d=JSON.parse(JSON.stringify(ke(e.settings,["column_layout"])??{desktop:"repeat(var(--brandy-footer-number-col-desktop),1fr)",tablet:"repeat(var(--brandy-footer-number-col-tablet),1fr)",mobile:null}));d[n]=`repeat(${a},1fr)`,e.onChange(d,["column_layout"]),dr({sectionId:e.sectionId,device:n,settings:{column_layout:d},builder:"footer"}),Ie.setState(u=>{const f=u.chosenRow;if(f==null)return;const h=u.previewTemplate.placements[n][f],m=h.length;if(m<a){u.previewTemplate.placements[n][f].push(...Array(a-m).fill([]));return}if(h.reduce((E,C,j)=>j>a-1?[...E,...C]:E,[]).length<1){u.previewTemplate.placements[n][f]=h.slice(0,a);return}const v=h.reduce((E,C)=>[...E,...C],[]),x=[];for(let E=0;E<a;E++){const C=v.length;let j=E==a-1?C:C/a;j<1&&(j=C),x.push(v.splice(0,j))}u.previewTemplate.placements[n][f]=x})};return r.jsx(ii,{...e,onChange:i,options:e.options,disableInherit:!0})}const DE=[{label:r.jsxs("svg",{width:"288",height:"88",viewBox:"0 0 288 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"white"}),r.jsx("rect",{x:"9",y:"10",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"145",y:"9.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("path",{d:"M157 15H140V16H157V15Z",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"167",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"184",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"201",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"218",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"235",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"252",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"270",y:"6.5",width:"12",height:"12",rx:"2",fill:"black",fillOpacity:"0.3"}),r.jsx("path",{d:"M273 9.5V10.25H280V9.5H273ZM273 13.4H280V12.65H273V13.4ZM273 16.5H280V15.75H273V16.5Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H284C285.657 1 287 2.34315 287 4V85H1V4Z",fill:"#FEFEFE"}),r.jsx("path",{d:"M276 16.0298L277.856 17.8863L278.386 17.3563L276.53 15.4998L278.386 13.6438L277.856 13.1138L276 14.9688L274.144 13.1133L273.613 13.6433L275.469 15.4998L273.613 17.3558L274.143 17.8863L276 16.0303V16.0298Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"104",y:"18",width:"80",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"88",y:"29",width:"112",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"95",y:"40",width:"99",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"115",y:"51",width:"58",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"82",y:"62",width:"124",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"96",y:"73",width:"96",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),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_4721_33849)"})]}),value:"default",title:"Full screen - default"},{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:"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.1"}),r.jsx("rect",{x:"9",y:"10",width:"20",height:"5",rx:"2",fill:"black",fillOpacity:"0.3"}),r.jsx("rect",{x:"145",y:"9.5",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M157 15H140V16H157V15Z",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:"252",y:"11",width:"7",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"270",y:"6.5",width:"12",height:"12",rx:"2",fill:"black",fillOpacity:"0.1"}),r.jsx("path",{d:"M273 9.5V10.1429H279V9.5H273ZM273 12.8429H279V12.2H273V12.8429ZM273 15.5H279V14.8571H273V15.5Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),r.jsx("path",{d:"M1 4C1 2.34314 2.34315 1 4 1H111V85H1V4Z",fill:"white",fillOpacity:"0.97"}),r.jsx("path",{d:"M101 12.5298L102.856 14.3863L103.386 13.8563L101.53 11.9998L103.386 10.1438L102.856 9.61378L101 11.4688L99.1438 9.61328L98.6133 10.1433L100.469 11.9998L98.6133 13.8558L99.1433 14.3863L101 12.5303V12.5298Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"10",y:"21",width:"58.3095",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"10",y:"31",width:"36.6786",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"10",y:"41",width:"58.3095",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"10",y:"51",width:"79",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"10",y:"61",width:"18.8095",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{x:"10",y:"71",width:"28.2143",height:"3",rx:"1.5",fill:"black",fillOpacity:"0.1"}),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_4721_78624)"})]}),value:"left_panel",title:"Left panel"},{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:"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.1"}),r.jsx("rect",{x:"9",y:"9",width:"20",height:"5",rx:"2",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("path",{d:"M157 14H140V15H157V14Z",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_4721_80190)",children:[r.jsx("g",{filter:"url(#filter0_d_4721_80190)",children:r.jsx("path",{d:"M177 1H284C285.657 1 287 2.34315 287 4V85H177V1Z",fill:"white"})}),r.jsx("rect",{width:"59.0476",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276 22)",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{width:"37.1429",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276 32)",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{width:"59.0476",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276 42)",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{width:"80",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276 52)",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{width:"19.0476",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276 62)",fill:"black",fillOpacity:"0.1"}),r.jsx("rect",{width:"28.5714",height:"3",rx:"1.5",transform:"matrix(-1 0 0 1 276 72)",fill:"black",fillOpacity:"0.1"}),r.jsx("g",{clipPath:"url(#clip1_4721_80190)",children:r.jsx("path",{d:"M273 12.0298L274.856 13.8863L275.386 13.3563L273.53 11.4998L275.386 9.64378L274.856 9.11378L273 10.9688L271.144 9.11328L270.613 9.64328L272.469 11.4998L270.613 13.3558L271.143 13.8863L273 12.0303V12.0298Z",fill:"#A1ABB7"})})]}),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_4721_80190)"}),r.jsxs("defs",{children:[r.jsxs("filter",{id:"filter0_d_4721_80190",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_4721_80190"}),r.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4721_80190",result:"shape"})]}),r.jsx("clipPath",{id:"clip0_4721_80190",children:r.jsx("rect",{width:"110",height:"84",fill:"white",transform:"translate(177 1)"})}),r.jsx("clipPath",{id:"clip1_4721_80190",children:r.jsx("rect",{x:"270",y:"9",width:"6",height:"5",rx:"2",fill:"white"})})]})]}),title:"Right panel",value:"right_panel"}];function $E(e){return r.jsx(ur,{...e,options:DE,className:"live-result-type-group",itemCss:[me(["&.brandy-radio-item{padding:16px 16px 0 16px !important;}&.selected{border:1px solid #000;}"])]})}const HE=window.React.useContext,ME=window.React.useMemo,TE=[{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:"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:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.5",children:[r.jsx("rect",{x:"11",y:"19",width:"99",height:"3",rx:"1.5",fill:"#A1ABB7"}),r.jsx("rect",{x:"11",y:"10",width:"46",height:"4",rx:"2",fill:"#A1ABB7"}),r.jsx("rect",{x:"11",y:"29",width:"99",height:"10",rx:"1",fill:"#F0F0F1",stroke:"#A1ABB7",strokeWidth:"0.5"}),r.jsx("path",{d:"M16.0498 32.4771H17.2876C17.8491 32.4771 18.2983 32.8457 18.2983 33.4292C18.2983 34.252 17.6782 34.7427 16.8945 34.7427H16.0156L15.7495 36H15.3003L16.0498 32.4771ZM16.416 32.8677L16.0986 34.3521H16.8677C17.4487 34.3521 17.8394 34.0347 17.8394 33.4683C17.8394 33.0874 17.5635 32.8677 17.1338 32.8677H16.416ZM18.4521 36L19.2334 32.3232H19.6631L18.8818 36H18.4521ZM20.6396 35.6826C21.0352 35.6826 21.3696 35.4214 21.4478 35.0649L21.5137 34.7622L20.813 34.7964C20.3833 34.8184 20.1343 34.9966 20.1343 35.2725C20.1343 35.5117 20.3418 35.6826 20.6396 35.6826ZM20.5078 36.0464C20.0488 36.0464 19.7021 35.729 19.7021 35.3188C19.7021 34.8013 20.1074 34.4888 20.8374 34.457L21.5845 34.4229L21.6235 34.2446C21.6333 34.1909 21.6382 34.1592 21.6382 34.1201C21.6382 33.854 21.4282 33.6978 21.0742 33.6978C20.7788 33.6978 20.5737 33.8149 20.4907 34.0273H20.0464C20.1636 33.5928 20.5737 33.3218 21.1084 33.3218C21.687 33.3218 22.0654 33.6123 22.0654 34.0591C22.0654 34.1299 22.0581 34.2007 22.0435 34.2739L21.6772 36H21.2695L21.3428 35.6558H21.3037C21.1206 35.8975 20.8276 36.0464 20.5078 36.0464ZM23.9624 33.3218C24.4824 33.3218 24.8901 33.6294 24.9707 34.0591C24.978 34.0957 24.9805 34.1348 24.9829 34.1738H24.5532C24.5264 33.9004 24.2627 33.7002 23.9282 33.7002C23.4058 33.7002 23.0151 34.208 23.0151 34.8745C23.0151 35.3652 23.269 35.6631 23.6743 35.6631C23.999 35.6631 24.2456 35.5117 24.3457 35.248H24.7827C24.6753 35.7266 24.2163 36.0464 23.6377 36.0464C22.998 36.0464 22.5732 35.6045 22.5732 34.9307C22.5732 34.0078 23.1592 33.3218 23.9624 33.3218ZM25.8472 34.4424H27.2754C27.2778 34.4277 27.2803 34.374 27.2803 34.3325C27.2803 33.9858 27.0752 33.6929 26.6797 33.6929C26.2744 33.6929 25.9692 33.9932 25.8472 34.4424ZM26.4185 36.0464C25.8301 36.0464 25.3491 35.6558 25.3491 34.9453C25.3491 33.9736 25.9155 33.3218 26.7188 33.3218C27.2607 33.3218 27.7173 33.7026 27.7197 34.3862C27.7197 34.4888 27.7051 34.6816 27.688 34.7817H25.791C25.7886 34.8257 25.7861 34.8696 25.7861 34.9136C25.7861 35.4556 26.1279 35.6631 26.4453 35.6631C26.792 35.6631 26.9971 35.5312 27.1069 35.3286H27.5537C27.4463 35.7339 27.0312 36.0464 26.4185 36.0464ZM28.1055 36L28.8916 32.3232H29.3188L29.0088 33.7612H29.0479C29.2114 33.5269 29.4336 33.3218 29.8364 33.3218C30.3516 33.3218 30.6567 33.6953 30.6567 34.1128C30.6567 34.2056 30.6445 34.3081 30.6226 34.4155L30.2856 36H29.8584L30.1807 34.4888C30.2002 34.3936 30.2124 34.3081 30.2124 34.2324C30.2124 33.915 30.0195 33.7002 29.6582 33.7002C29.2432 33.7002 28.96 33.9956 28.8745 34.3936L28.5327 36H28.1055ZM32.3145 35.668C32.8052 35.668 33.2031 35.1455 33.2031 34.5059C33.2031 34.0054 32.9541 33.7002 32.5415 33.7002C31.9995 33.7002 31.6309 34.186 31.6309 34.9062C31.6309 35.3628 31.9043 35.668 32.3145 35.668ZM32.5806 33.3218C33.2178 33.3218 33.6523 33.7612 33.6523 34.4058C33.6523 35.353 33.064 36.0464 32.2607 36.0464C31.6235 36.0464 31.1841 35.6021 31.1841 34.9575C31.1841 34.0005 31.7627 33.3218 32.5806 33.3218ZM34.0332 36L34.8145 32.3232H35.2441L34.4629 36H34.0332ZM36.355 36.0464C35.8301 36.0464 35.3979 35.6313 35.3979 34.9795C35.3979 34.0273 35.9961 33.3218 36.7554 33.3218C37.1362 33.3218 37.4512 33.5391 37.5439 33.854H37.583L37.9077 32.3232H38.335L37.5537 36H37.1484L37.2241 35.6411H37.1851C36.9946 35.8901 36.6895 36.0464 36.355 36.0464ZM36.4893 35.668C37.0337 35.668 37.4487 35.1235 37.4487 34.4277C37.4487 33.981 37.1948 33.7002 36.7871 33.7002C36.25 33.7002 35.8374 34.208 35.8374 34.916C35.8374 35.3604 36.1011 35.668 36.4893 35.668ZM38.9966 34.4424H40.4248C40.4272 34.4277 40.4297 34.374 40.4297 34.3325C40.4297 33.9858 40.2246 33.6929 39.8291 33.6929C39.4238 33.6929 39.1187 33.9932 38.9966 34.4424ZM39.5679 36.0464C38.9795 36.0464 38.4985 35.6558 38.4985 34.9453C38.4985 33.9736 39.0649 33.3218 39.8682 33.3218C40.4102 33.3218 40.8667 33.7026 40.8691 34.3862C40.8691 34.4888 40.8545 34.6816 40.8374 34.7817H38.9404C38.938 34.8257 38.9355 34.8696 38.9355 34.9136C38.9355 35.4556 39.2773 35.6631 39.5947 35.6631C39.9414 35.6631 40.1465 35.5312 40.2563 35.3286H40.7031C40.5957 35.7339 40.1807 36.0464 39.5679 36.0464ZM41.2109 36L41.77 33.3682H42.1753L42.1045 33.7026H42.1436C42.3169 33.4414 42.5415 33.3218 42.8491 33.3218C42.9639 33.3218 43.1055 33.3389 43.1567 33.3584L43.0664 33.7612C42.9907 33.7441 42.8223 33.7295 42.7344 33.7295C42.312 33.7295 42.0703 33.9541 41.9653 34.4448L41.6357 36H41.2109Z",fill:"#F0F0F1"}),r.jsx("rect",{x:"11",y:"46",width:"29",height:"10",rx:"1",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_5360_126644)"})]}),value:"type_1"},{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:"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:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.5",children:[r.jsx("rect",{x:"11",y:"18",width:"39",height:"4",rx:"1",fill:"#A1ABB7"}),r.jsx("rect",{x:"11",y:"27",width:"67",height:"3",rx:"1",fill:"#A1ABB7"}),r.jsx("rect",{x:"11",y:"37",width:"67",height:"10",rx:"1",fill:"#F7F7F8",stroke:"#A1ABB7",strokeWidth:"0.5"}),r.jsx("path",{d:"M15.0498 40.4771H16.2876C16.8491 40.4771 17.2983 40.8457 17.2983 41.4292C17.2983 42.252 16.6782 42.7427 15.8945 42.7427H15.0156L14.7495 44H14.3003L15.0498 40.4771ZM15.416 40.8677L15.0986 42.3521H15.8677C16.4487 42.3521 16.8394 42.0347 16.8394 41.4683C16.8394 41.0874 16.5635 40.8677 16.1338 40.8677H15.416ZM17.4521 44L18.2334 40.3232H18.6631L17.8818 44H17.4521ZM19.6396 43.6826C20.0352 43.6826 20.3696 43.4214 20.4478 43.0649L20.5137 42.7622L19.813 42.7964C19.3833 42.8184 19.1343 42.9966 19.1343 43.2725C19.1343 43.5117 19.3418 43.6826 19.6396 43.6826ZM19.5078 44.0464C19.0488 44.0464 18.7021 43.729 18.7021 43.3188C18.7021 42.8013 19.1074 42.4888 19.8374 42.457L20.5845 42.4229L20.6235 42.2446C20.6333 42.1909 20.6382 42.1592 20.6382 42.1201C20.6382 41.854 20.4282 41.6978 20.0742 41.6978C19.7788 41.6978 19.5737 41.8149 19.4907 42.0273H19.0464C19.1636 41.5928 19.5737 41.3218 20.1084 41.3218C20.687 41.3218 21.0654 41.6123 21.0654 42.0591C21.0654 42.1299 21.0581 42.2007 21.0435 42.2739L20.6772 44H20.2695L20.3428 43.6558H20.3037C20.1206 43.8975 19.8276 44.0464 19.5078 44.0464ZM22.9624 41.3218C23.4824 41.3218 23.8901 41.6294 23.9707 42.0591C23.978 42.0957 23.9805 42.1348 23.9829 42.1738H23.5532C23.5264 41.9004 23.2627 41.7002 22.9282 41.7002C22.4058 41.7002 22.0151 42.208 22.0151 42.8745C22.0151 43.3652 22.269 43.6631 22.6743 43.6631C22.999 43.6631 23.2456 43.5117 23.3457 43.248H23.7827C23.6753 43.7266 23.2163 44.0464 22.6377 44.0464C21.998 44.0464 21.5732 43.6045 21.5732 42.9307C21.5732 42.0078 22.1592 41.3218 22.9624 41.3218ZM24.8472 42.4424H26.2754C26.2778 42.4277 26.2803 42.374 26.2803 42.3325C26.2803 41.9858 26.0752 41.6929 25.6797 41.6929C25.2744 41.6929 24.9692 41.9932 24.8472 42.4424ZM25.4185 44.0464C24.8301 44.0464 24.3491 43.6558 24.3491 42.9453C24.3491 41.9736 24.9155 41.3218 25.7188 41.3218C26.2607 41.3218 26.7173 41.7026 26.7197 42.3862C26.7197 42.4888 26.7051 42.6816 26.688 42.7817H24.791C24.7886 42.8257 24.7861 42.8696 24.7861 42.9136C24.7861 43.4556 25.1279 43.6631 25.4453 43.6631C25.792 43.6631 25.9971 43.5312 26.1069 43.3286H26.5537C26.4463 43.7339 26.0312 44.0464 25.4185 44.0464ZM27.1055 44L27.8916 40.3232H28.3188L28.0088 41.7612H28.0479C28.2114 41.5269 28.4336 41.3218 28.8364 41.3218C29.3516 41.3218 29.6567 41.6953 29.6567 42.1128C29.6567 42.2056 29.6445 42.3081 29.6226 42.4155L29.2856 44H28.8584L29.1807 42.4888C29.2002 42.3936 29.2124 42.3081 29.2124 42.2324C29.2124 41.915 29.0195 41.7002 28.6582 41.7002C28.2432 41.7002 27.96 41.9956 27.8745 42.3936L27.5327 44H27.1055ZM31.3145 43.668C31.8052 43.668 32.2031 43.1455 32.2031 42.5059C32.2031 42.0054 31.9541 41.7002 31.5415 41.7002C30.9995 41.7002 30.6309 42.186 30.6309 42.9062C30.6309 43.3628 30.9043 43.668 31.3145 43.668ZM31.5806 41.3218C32.2178 41.3218 32.6523 41.7612 32.6523 42.4058C32.6523 43.353 32.064 44.0464 31.2607 44.0464C30.6235 44.0464 30.1841 43.6021 30.1841 42.9575C30.1841 42.0005 30.7627 41.3218 31.5806 41.3218ZM33.0332 44L33.8145 40.3232H34.2441L33.4629 44H33.0332ZM35.355 44.0464C34.8301 44.0464 34.3979 43.6313 34.3979 42.9795C34.3979 42.0273 34.9961 41.3218 35.7554 41.3218C36.1362 41.3218 36.4512 41.5391 36.5439 41.854H36.583L36.9077 40.3232H37.335L36.5537 44H36.1484L36.2241 43.6411H36.1851C35.9946 43.8901 35.6895 44.0464 35.355 44.0464ZM35.4893 43.668C36.0337 43.668 36.4487 43.1235 36.4487 42.4277C36.4487 41.981 36.1948 41.7002 35.7871 41.7002C35.25 41.7002 34.8374 42.208 34.8374 42.916C34.8374 43.3604 35.1011 43.668 35.4893 43.668ZM37.9966 42.4424H39.4248C39.4272 42.4277 39.4297 42.374 39.4297 42.3325C39.4297 41.9858 39.2246 41.6929 38.8291 41.6929C38.4238 41.6929 38.1187 41.9932 37.9966 42.4424ZM38.5679 44.0464C37.9795 44.0464 37.4985 43.6558 37.4985 42.9453C37.4985 41.9736 38.0649 41.3218 38.8682 41.3218C39.4102 41.3218 39.8667 41.7026 39.8691 42.3862C39.8691 42.4888 39.8545 42.6816 39.8374 42.7817H37.9404C37.938 42.8257 37.9355 42.8696 37.9355 42.9136C37.9355 43.4556 38.2773 43.6631 38.5947 43.6631C38.9414 43.6631 39.1465 43.5312 39.2563 43.3286H39.7031C39.5957 43.7339 39.1807 44.0464 38.5679 44.0464ZM40.2109 44L40.77 41.3682H41.1753L41.1045 41.7026H41.1436C41.3169 41.4414 41.5415 41.3218 41.8491 41.3218C41.9639 41.3218 42.1055 41.3389 42.1567 41.3584L42.0664 41.7612C41.9907 41.7441 41.8223 41.7295 41.7344 41.7295C41.312 41.7295 41.0703 41.9541 40.9653 42.4448L40.6357 44H40.2109Z",fill:"#F7F7F8"}),r.jsx("rect",{x:"81",y:"37",width:"29",height:"10",rx:"1",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_5360_143619)"})]}),value:"type_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:"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:"M1 4C1 2.34315 2.34315 1 4 1H117C118.657 1 120 2.34315 120 4V65H1V4Z",fill:"white"}),r.jsxs("g",{opacity:"0.5",children:[r.jsx("rect",{x:"11",y:"18",width:"45",height:"4",rx:"1",fill:"#A1ABB7"}),r.jsx("rect",{x:"11",y:"27",width:"67",height:"3",rx:"1",fill:"#A1ABB7"}),r.jsx("rect",{x:"11",y:"37",width:"99",height:"10",rx:"1",fill:"#F7F7F8",stroke:"#A1ABB7",strokeWidth:"0.5"}),r.jsx("rect",{x:"81",y:"37",width:"29",height:"10",rx:"1",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_5360_140967)"})]}),value:"type_3"}];function IE(e){const{builder:t}=HE(lt),n=ME(()=>e.value,[e.value]),i=oe(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(ur,{...e,onChange:a=>o(a),value:n,options:TE,className:"theme-layout-type-group [&_.brandy-radio-group]:grid [&_.brandy-radio-group]:grid-cols-2",itemCss:[me(["&.selected{border:1px solid #000;}"])]})}const LE=window.React.useMemo;function AE(e){const{current:t}=De(),n=Ae(o=>o.previewTemplate.placements[Qe(t)].toggle),i=LE(()=>[{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(Ud,{...e,options:i})}const RE=window.React.useContext,OE=window.React.useMemo;function NE(e){const{builder:t}=RE(Jt),n=OE(()=>window.wp.customize("blogname")(),[]),i=o=>{const a=o||n;e.onChange(o);const s=Le(`${$t(e.sectionId,t)} .brandy-logo__title`);s&&(window.jQuery(s).html(a),o?window.jQuery(s).attr("data-text",o):window.jQuery(s).removeAttr("data-text"))};return r.jsx(Gd,{...e,onChange:i,placeholder:n})}const PE=window.React.useContext,BE=window.React.useMemo;function VE(e){const{builder:t}=PE(Jt),n=BE(()=>window.wp.customize("blogdescription")(),[]),i=o=>{const a=o||n;e.onChange(o);const s=Le(`${$t(e.sectionId,t)} .brandy-logo__tagline`);s&&(window.jQuery(s).html(a),o?window.jQuery(s).attr("data-text",o):window.jQuery(s).removeAttr("data-text"))};return r.jsx(Gd,{...e,onChange:i,placeholder:n})}const y1=window.React.useMemo;function zE(e){const{current:t}=De(),n=y1(()=>Qe(t),[t]),i=y1(()=>[...e.value_path,n],[n,e.value_path]),o=s=>{const l=Le(`#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=y1(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(qp,{...e,value:a,onChange:o})}const FE=window.React.useCallback,_i=window.React.useEffect,Gt=window.React.useMemo,ZE=window.React.useState,wf={unit:"px",value:12};function WE(e){const{current:t}=De(),[n,i]=ZE("column_1"),o=Gt(()=>["column_items_direction"],[]),a=Gt(()=>["column_horizontal_alignment"],[]),s=Gt(()=>["column_vertical_alignment"],[]),l=Gt(()=>["column_item_vertical_spacing"],[]),c=Gt(()=>["column_item_horizontal_spacing"],[]),d=Gt(()=>["column_item_evenly_distributed"],[]),u=Gt(()=>{var B,y,I,L;const b=ke(e.settings,o),$={desktop:((B=b.desktop)==null?void 0:B[n])??"vertical",tablet:(y=b.tablet)==null?void 0:y[n],mobile:(I=b.mobile)==null?void 0:I[n],[t]:(L=b[t])==null?void 0:L[n]};return ye($,t)},[e.settings,o,t,n]),f=Gt(()=>{var B,y,I,L;const b=ke(e.settings,a),$={desktop:((B=b.desktop)==null?void 0:B[n])??"flex-start",tablet:(y=b.tablet)==null?void 0:y[n],mobile:(I=b.mobile)==null?void 0:I[n],[t]:(L=b[t])==null?void 0:L[n]};return ye($,t)},[e.settings,a,t,n]),h=Gt(()=>{var B,y,I,L;const b=ke(e.settings,s),$={desktop:((B=b.desktop)==null?void 0:B[n])??"flex-start",tablet:(y=b.tablet)==null?void 0:y[n],mobile:(I=b.mobile)==null?void 0:I[n],[t]:(L=b[t])==null?void 0:L[n]};return ye($,t)},[e.settings,s,t,n]),m=Gt(()=>{var B,y,I,L;const b=ke(e.settings,l),$={desktop:((B=b.desktop)==null?void 0:B[n])??wf,tablet:(y=b.tablet)==null?void 0:y[n],mobile:(I=b.mobile)==null?void 0:I[n],[t]:(L=b[t])==null?void 0:L[n]};return ye($,t)},[e.settings,l,t,n]),p=Gt(()=>{var B,y,I,L;const b=ke(e.settings,c),$={desktop:((B=b.desktop)==null?void 0:B[n])??wf,tablet:(y=b.tablet)==null?void 0:y[n],mobile:(I=b.mobile)==null?void 0:I[n],[t]:(L=b[t])==null?void 0:L[n]};return ye($,t)},[e.settings,c,t,n]),v=Gt(()=>{var B,y,I,L;const b=ke(e.settings,d),$={desktop:((B=b==null?void 0:b.desktop)==null?void 0:B[n])??!0,tablet:(y=b==null?void 0:b.tablet)==null?void 0:y[n],mobile:(I=b==null?void 0:b.mobile)==null?void 0:I[n],[t]:((L=b==null?void 0:b[t])==null?void 0:L[n])??!0};return ye($,t)},[e.settings,d,t,n]),x=b=>{const $=JSON.parse(JSON.stringify(ke(e.settings,[...o,t])??{}));$[n]=b,e.onChange($,[...o,t],[...o,t])};_i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);$!=null&&window.jQuery($).attr(`data-items-direction-${t}`,u)},[u,t,n,e.sectionId]);const E=b=>{const $=JSON.parse(JSON.stringify(ke(e.settings,[...a,t])??{}));$[n]=b,e.onChange($,[...a,t],[...a,t])};_i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);$!=null&&window.jQuery($).css("--horizontal-alignment",f).css("--text-alignment",{"flex-start":"left",center:"center","flex-end":"right","space-between":"space-between"}[f]??"left")},[f,t,n,e.sectionId]);const C=b=>{const $=JSON.parse(JSON.stringify(ke(e.settings,[...s,t])??{}));$[n]=b,e.onChange($,[...s,t],[...s,t])};_i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);$!=null&&window.jQuery($).css(`--footer-col-vertical-alignment-${t}`,h)},[h,t,n,e.sectionId]);const j=b=>{const $=JSON.parse(JSON.stringify(ke(e.settings,[...c,t])??{}));$[n]=b,e.onChange($,[...c,t],[...c,t])};_i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);$!=null&&window.jQuery($).css(`--footer-col-horizontal-spacing-${t}`,Ni(p))},[p,t,n,e.sectionId]);const M=b=>{const $=JSON.parse(JSON.stringify(ke(e.settings,[...l,t])??{}));$[n]=b,e.onChange($,[...l,t],[...l,t])};_i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);$!=null&&window.jQuery($).css(`--footer-col-vertical-spacing-${t}`,Ni(m))},[m,t,n,e.sectionId]);const T=b=>{const $=JSON.parse(JSON.stringify(ke(e.settings,[...d,t])??{}));$[n]=b,e.onChange($,[...d,t],[...d,t])};_i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);$!=null&&window.jQuery($).css(`--item-evenly-distributed-${t}`,v?"1":"none")},[v,t,n,e.sectionId]);const _=Gt(()=>{const b=ke(e.settings,["number_column",t]);return Array.from({length:b}).map(($,B)=>({label:B+1,value:`column_${B+1}`}))},[e,t]);return _i(()=>{const b=parseInt(n.replace("column_","")),$=Le(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);return $!=null&&window.jQuery($).css("outline","1px dashed var(--brandy-edit-primary-color)"),()=>{$!=null&&window.jQuery($).css("outline","none")}},[n,e.sectionId]),r.jsxs("div",{children:[r.jsxs(XE,{children:[r.jsxs(JE,{children:[P("Customize column"),r.jsx(Wd,{})]}),r.jsx(KE,{children:P("Choose column to customize")}),r.jsx(vn,{options:_,selected:n,onChange:i})]}),r.jsxs(qE,{children:[r.jsxs(QE,{children:[P("Items direction"),r.jsx(ua,{settings:e.settings,mainKey:"column_items_direction",subKey:n,onChange:x})]}),r.jsx(vn,{options:GE,selected:u,onChange:x})]}),r.jsxs(eD,{children:[r.jsxs(tD,{children:[P("Horizontal Alignment"),r.jsx(ua,{settings:e.settings,mainKey:"column_horizontal_alignment",subKey:n,onChange:E})]}),r.jsx(vn,{options:UE,selected:f,onChange:E,className:"grid grid-cols-4",itemCss:me(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"#E7EBFCB2",backgroundColor:"#E7EBFCB2 !important","--tw-text-opacity":"1 !important",color:"rgb(56 88 233 / var(--tw-text-opacity, 1)) !important"},{borderRightWidth:"1px"},{fill:"#3858e9 !important"},{fill:"#3858e9 !important"},{stroke:"#3858e9 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"#E7EBFCB2"})})]}),r.jsxs(nD,{children:[r.jsxs(rD,{children:[P("Vertical Alignment"),r.jsx(ua,{settings:e.settings,mainKey:"column_vertical_alignment",subKey:n,onChange:C})]}),r.jsx(vn,{options:YE,selected:h,onChange:C,className:"grid grid-cols-4",itemCss:me(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"#E7EBFCB2",backgroundColor:"#E7EBFCB2 !important","--tw-text-opacity":"1 !important",color:"rgb(56 88 233 / var(--tw-text-opacity, 1)) !important"},{borderRightWidth:"1px"},{fill:"#3858e9 !important"},{fill:"#3858e9 !important"},{stroke:"#3858e9 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"#E7EBFCB2"})})]}),u==="horizontal"&&r.jsxs(r.Fragment,{children:[r.jsxs(iD,{children:[r.jsx(oD,{children:r.jsx(ua,{settings:e.settings,mainKey:"column_item_horizontal_spacing",subKey:n,onChange:j})}),r.jsx(In,{title:P("Item spacing"),value:p,min:0,max:300,onChange:j})]}),r.jsxs(aD,{children:[r.jsx("label",{children:P("Items evenly distributed")}),r.jsx(Oo,{checked:v??!0,onChange:T})]})]}),u==="vertical"&&r.jsxs(sD,{children:[r.jsx(lD,{children:r.jsx(ua,{settings:e.settings,mainKey:"column_item_vertical_spacing",subKey:n,onChange:M})}),r.jsx(In,{title:P("Item spacing"),value:m,min:0,max:300,onChange:M})]})]})}const GE=[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],UE=[{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"}],YE=[{label:r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"5.83325",y:"15.5",width:"10",height:"5",transform:"rotate(-90 5.83325 15.5)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3333 1.5L0.333252 1.5L0.333252 0L16.3333 1.39876e-06L16.3333 1.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),value:"flex-start"},{label:r.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:window.brandyCustomizerData.colors.icon.normal})}),value:"center"},{label:r.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"10",height:"5",transform:"matrix(-4.37114e-08 1 1 4.37114e-08 5.6665 2.18557e-08)",fill:window.brandyCustomizerData.colors.icon.normal,stroke:window.brandyCustomizerData.colors.icon.normal}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6665 14.5L0.666504 14.5L0.666504 16L16.6665 16L16.6665 14.5Z",fill:window.brandyCustomizerData.colors.icon.normal})]}),value:"flex-end"},{label:r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 9.5H18V8H0V9.5ZM0 16.5H18V15H0V16.5ZM0 1V2.5H18V1H0Z",fill:"#A1ABB7"})}),value:"space-between"}];function ua({settings:e,mainKey:t,subKey:n,onChange:i}){const{current:o}=De(),a=Gt(()=>r.jsxs("svg",{fill:"#3858e9",viewBox:"0 0 35 35",children:[r.jsx("path",{d:"M17.5,26L17.5,26C12.8,26,9,22.2,9,17.5v0C9,12.8,12.8,9,17.5,9h0c4.7,0,8.5,3.8,8.5,8.5v0C26,22.2,22.2,26,17.5,26z"}),r.jsx("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "})]}),[]),s=Gt(()=>o=="desktop"?!0:ke(e,[t,o,n])==null,[o,e,t,n]),l=FE(()=>{o!=="desktop"&&i(null,[t,o,n])},[o,i,t,n]);return s?!1:r.jsx(cD,{onClick:l,$_css2:[{position:"absolute",left:"-17px",top:"50%","--tw-translate-y":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",cursor:"pointer",padding:"0.25rem","& svg":{height:"10px",width:"10px"}},`
        svg path {
          transform: scale(1);
          opacity: 1;
          transform-origin: center;
          transition: opacity 0.15s ease, transform 0.15s ease;
        }
        svg polygon {
          transform: scale(0.5);
          opacity: 0;
          transform-origin: center;
          transition: opacity 0.15s ease, transform 0.15s ease;
        }
        &:hover {
          svg polygon {
            opacity: 1;
            transform: scale(1);
          }

          svg path {
            opacity: 0;
            transform: scale(0.5);
          }
        }
      `],children:a})}var XE=w("div")({marginBottom:"1rem"}),JE=w("div")({marginBottom:"0.5rem",fontWeight:"700",textTransform:"capitalize"}),KE=w("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),qE=w("div")({marginBottom:"1rem"}),QE=w("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),eD=w("div")({marginBottom:"1rem"}),tD=w("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),nD=w("div")({marginBottom:"1rem"}),rD=w("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),iD=w("div")({position:"relative",marginBottom:"1rem"}),oD=w("div")({position:"absolute",top:"10px"}),aD=w("div")({position:"relative",marginBottom:"1rem",display:"flex",alignItems:"center",gap:"0.5rem"}),sD=w("div")({position:"relative",marginBottom:"1rem"}),lD=w("div")({position:"absolute",top:"10px"}),cD=w("span").withConfig({displayName:"ColumnContentLayout___StyledSpan",componentId:"sc-1864esf-0"})(["",""],e=>e.$_css2);const Dg=window.React.useContext,dD=window.React.useMemo,uD=window.React.useState,fD=e=>{const{builder:t}=Dg(lt),n=oe(t)(h=>{var m;return(m=h.chosenElement)==null?void 0:m.settings}),i=oe(t)(h=>h.changeElementSettings),o=oe(t)(h=>{var m;return(m=h.chosenElement)==null?void 0:m.id}),[a,s]=uD(!1),l=()=>{i(h=>{h.items=n.items.filter((m,p)=>p!==e.position)}),Ne().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((m,p)=>{if(e.position===p){const v=Le($t(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);v&&window.jQuery(v).html(h),i(x=>{x.items[p].label=h.toString()})}})},u=h=>{n.items.forEach((m,p)=>{if(p===e.position){const v=Le($t(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);v&&window.jQuery(v).attr("href",Hl(h)),i(x=>{x.items[p].url=h.toString()})}})},f=h=>{n.items.forEach((m,p)=>{if(p===e.position){const v=Le($t(o??"",t)+` .brandy-list-link-item:nth-child(${p+1})`);v&&window.jQuery(v).attr("target",h?"_blank":"_self"),i(x=>{x.items[p].open_in_new_tab=h})}})};return r.jsxs(pD,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(gD,{className:"group",onClick:c,$_css3:[{display:"flex",height:"44px",cursor:"pointer",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},a&&{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"},a&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(30 30 30 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}],children:[r.jsxs(mD,{children:[r.jsx(vD,{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:Re([!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:Re(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(wD,{$_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(xD,{onClick:h=>{h.stopPropagation(),l()},$_css5:[{cursor:"pointer",padding:"0.25rem"},me(["&: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(bD,{$_css6:[{cursor:"pointer",padding:"0.25rem"},me(["&: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(yD,{children:[r.jsxs(CD,{children:[r.jsx("div",{children:"Label"}),r.jsx(ht,{value:e.item.label,onChange:d})]}),r.jsxs(_D,{children:[r.jsx("div",{children:"Link"}),r.jsx(ht,{value:e.item.url,onChange:u})]}),r.jsxs(SD,{children:[r.jsx("div",{children:"Open in new tab"}),r.jsx(Oo,{checked:e.item.open_in_new_tab??!0,onChange:f})]})]})]})};function hD(e){const{builder:t}=Dg(lt),n=dD(()=>e.value??e.default_value,[e.value,e.default_value]),i=oe(t)(s=>{var l;return(l=s.chosenElement)==null?void 0:l.id}),o=s=>{JSON.stringify(n)!==JSON.stringify(s)&&(e.onChange(s),Ne().refreshPartial(`${t}_${i}`))},a=()=>{const s=JSON.parse(JSON.stringify(n));s.push({label:"Custom link",url:"#"}),e.onChange(s),Ne().refreshPartial(`${t}_${i}`)};return r.jsxs(jD,{children:[r.jsxs(kD,{children:[r.jsx(wt,{className:"m-0",children:"List Link"}),r.jsx(ED,{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(DD,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Yi.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(fD,{item:s,position:l},l))})]})}var pD=w("div")`${e=>e.$_css2}`,gD=w("div")`${e=>e.$_css3}`,mD=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),vD=w("span")({cursor:"grab",padding:"0.5rem"}),wD=w("div")`${e=>e.$_css4}`,xD=w("span")`${e=>e.$_css5}`,bD=w("span")`${e=>e.$_css6}`,yD=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),CD=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),_D=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),SD=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),jD=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),kD=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),ED=w("div")({cursor:"pointer",borderRadius:"5px",padding:"0.5rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:hover":{backgroundColor:"#E7EBFCB2"}}),DD=w("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:"#3858e9"}});const $D=window.React.useCallback,HD=window.React.useContext,MD=window.React.useMemo;function TD(e){const{builder:t}=HD(Jt),n=oe(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=oe(t)(l=>l.previewTemplate),o=t==="header"?i.elements.logo_1.settings:i.elements.logo_2.settings,a=ke(o,e.reset_paths[0]),s=$D(()=>{n(l=>{if(l==null)return;Ut(l,e.reset_paths[0],"");const c=$t(e.sectionId,t),d=Le(c)[0],u=(d==null?void 0:d.getAttribute("data-site-logo"))||(d==null?void 0:d.getAttribute("data-site-icon"))||"";if(e.reset_paths[0].includes("logo_mobile")){const f=Le(`${c} .brandy-logo__img.logo-mobile`);f&&(window.jQuery(f).attr("src",l.logo.url?l.logo.url:u),window.jQuery(f).attr("data-using-desktop-source","true"))}else{const f=Le(`${c} .brandy-logo__img.logo-desktop`),h=Le(`${c} .brandy-logo__img.logo-mobile[data-using-desktop-source="true"]`);f&&window.jQuery(f).attr("src",u),h&&window.jQuery(h).attr("src",l.logo.url?l.logo.url:u)}})},[n,e,t]);return MD(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(ID,{children:[r.jsx(pt,{className:Re(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Up,{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 ID=w("div").withConfig({displayName:"ResetLogo___StyledDiv",componentId:"sc-1axmblk-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});function LD(e){return{ButtonGroup:ii,IconGroup:ur,BoxShadow:Z9,ColorGroup:c7,Dimension:p7,Image:k7,Switcher:qp,Typography:xb,EnabledDevices:_b,TextInput:Gd,Spacing:Ob,Alignment:Vb,Position:Zb,Dropdown:Ud,Reset:ql,MultipleChoice:Yb,Background:Cy,FlexibleContent:$y,VerticalAlignment:Ey,HorizontalAlignment:Iy,PrefilledHTML:Vy,HTML:Fy,Widget:v_,MultipleSelect:C_,NumberInput:kb,ResetLogo:TD,ListLanguages:yS,ListCurrencies:ZS,CanvasTitle:tj,MenuSelection:Yj,MenuActiveType:Fj,ListSocials:uk,ListPayments:Bk,AccountLoggedInTitle:sj,AccountLoggedOutTitle:lj,AccountIconSelection:ij,AccountClickAction:mE,ButtonIconSelection:uj,ButtonType:bE,ButtonSize:wE,SearchIconSelection:Kj,LiveResultsType:Qj,SearchSuggestions:nk,CartIconSelection:gj,ListContacts:bj,WishlistIconSelection:hE,NewsletterLayoutType:IE,FooterColumnLayout:kE,FooterNumberColumn:EE,FooterStretchItem:zE,ColumnContentLayout:WE,ToggleOffCanvasType:$E,ToggleOffCanvasAlignBottomFrom:AE,SiteTitle:NE,SiteTagline:VE,ListLink:hD}[e]}function $g(e,t,n=!1){if(e===void 0)return t;if(e===null)return n?null:t;if(Array.isArray(t)||!R2(t))return e;const i=t;return Object.keys(t).forEach(o=>{i[o]=$g(e[o],t[o],!0)}),JSON.parse(JSON.stringify(i))}const pt=e=>e.title?r.jsxs(AD,{className:e.className??(e.title.show_devices?"mb-0":"mb-[8px]"),children:[r.jsxs(RD,{className:Re([e.title.type==="bold"&&"font-bold","brandy-setting-title-text"]),children:[e.title.text,e.title.tooltip&&r.jsxs(OD,{className:"brandy-setting-title-mark",$_css2:[{display:"inline-block",height:"15px",width:"15px",cursor:"pointer"},me(["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(ND,{className:"brandy-setting-title-tooltip",dangerouslySetInnerHTML:{__html:e.title.tooltip}})]})]}),e.title.show_devices&&r.jsx(Wd,{})]}):!1;var AD=w("div")({display:"flex",alignItems:"center","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),RD=w("div")({display:"flex",alignItems:"center",gap:"5px",textTransform:"capitalize"}),OD=w("span")`${e=>e.$_css2}`,ND=w("span").withConfig({displayName:"SettingsTitle___StyledSpan2",componentId:"sc-83fvul-0"})({visibility:"hidden",position:"absolute",left:"-50%",bottom:"calc(100% + 1px )",zIndex:"10",width:"150px",borderRadius:"3px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.5rem",textAlign:"center",fontWeight:"400",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.3s"});const PD=window.React.useCallback,po=window.React.useMemo;function BD(e){var d;const t=po(()=>e.data,[e.data]),{current:n}=De(),i=po(()=>e.builder??"header",[e.builder]),o=po(()=>LD(t.type)??!1,[t.type]),a=po(()=>ke(e.settings,t.value_path),[e.settings,t.value_path]),s=po(()=>t.default_value,[t.default_value]),l=po(()=>Ed({conditions:t.visible_conditions,settings:e.settings,device:n}),[t.visible_conditions,e.settings,n,s]),c=PD((u,f=null,h=null,m=!1)=>{e.onChange(p=>{var C,j,M,T;const v=f??t.value_path;let x=ke(p,v);if(x==null&&(m||t.is_responsive?Ut(p,v,{desktop:null,tablet:null,mobile:null}):Ut(p,v,null)),x=ke(p,v),x==null&&(x=h?ke(t.default_value,h):t.default_value),Mo(x)&&!Mo(u)||m?Ut(p,v,{...x,[n]:u}):Ut(p,v,u),((C=t.render_options)==null?void 0:C.type)==="force_refresh")if(["top_header","bottom_header","middle_header","top_footer","bottom_footer","middle_footer"].includes(e.sectionId))["desktop","tablet","mobile"].forEach(_=>{Ne().refreshPartial(`${e.sectionId}_${_}`)});else{let _="";["header","toggle_off_canvas","footer"].includes(e.sectionId)?_=e.sectionId:_=`${i}_${e.sectionId}`,Ne().refreshPartial(_)}let E=null;((j=t.render_options)==null?void 0:j.type)==="content"&&(E=Ov),((M=t.render_options)==null?void 0:M.type)==="data_attribute"&&(E=q2),((T=t.render_options)==null?void 0:T.type)==="variable"&&(E=dr),E!=null&&E({builder:i,sectionId:e.sectionId,settings:p,device:n,clonedFromId:e.clonedFromId})})},[e.onChange,t.value_path,n,(d=t.render_options)==null?void 0:d.type,e.sectionId,i]);return o===!1||!l?!1:r.jsx(o,{...t,value:$g(a,s),onChange:c,sectionId:e.sectionId,builder:i,settings:e.settings})}const VD=window.React.useMemo;function os({section:e,sectionId:t,settings:n,onChange:i,builder:o="header",clonedFromId:a}){const{current:s}=De(),l=oe(o)(d=>{var u;return t.includes("menu")&&((u=d.previewTemplate.placements[Qe(s)].toggle)==null?void 0:u.includes(t))});return VD(()=>Ed({conditions:e.visible_conditions,settings:n,device:s,inToggle:l}),[e.visible_conditions,n,s])?r.jsx(Ka,{children:e.components.map((d,u)=>r.jsx(BD,{data:d,sectionId:t,settings:n,onChange:i,builder:o,clonedFromId:a},u))}):!1}const zD=["elements","placements","settings","row_configurations"],FD="1.0";function Hg(e,t){return JSON.stringify({type:e,version:FD,template:{id:t.id,elements:t.elements,placements:t.placements,settings:t.settings,row_configurations:t.row_configurations}},null,2)}function Mg(e,t){let n;try{n=JSON.parse(e)}catch{throw new Error(P("Invalid JSON format"))}if(!n||typeof n!="object")throw new Error(P("Invalid data format"));if(n.type!==t){const i=t==="brandy-header"?"header":"footer";throw new Error(P("Wrong template type. Expected:")+" "+i)}if(!n.template||typeof n.template!="object")throw new Error(P("Missing template data"));for(const i of zD)if(!(i in n.template))throw new Error(P("Missing required field:")+" "+i);return{template:n.template}}async function ZD(e,t){const n=Hg(e,t);await navigator.clipboard.writeText(n)}async function WD(e){const t=await navigator.clipboard.readText();if(!t)throw new Error(P("Clipboard is empty"));const{template:n}=Mg(t,e);return n}function GD(e,t){var d;const n=Hg(e,t),i=new Blob([n],{type:"application/json"}),o=URL.createObjectURL(i),s=(((d=t.settings)==null?void 0:d.name)??e).toLowerCase().replace(/[^a-z0-9]+/g,"-"),l=`${e}-${s}.json`,c=document.createElement("a");c.href=o,c.download=l,c.click(),URL.revokeObjectURL(o)}function UD(e,t){return new Promise((n,i)=>{const o=new FileReader;o.onload=()=>{try{const{template:a}=Mg(o.result,t);n(a)}catch(a){i(a)}},o.onerror=()=>i(new Error(P("Failed to read file"))),o.readAsText(e)})}const YD=window.React.useRef,XD=window.React.useState;function Tg({type:e,label:t,getCurrentTemplate:n,onImport:i}){const[o,a]=XD(""),s=YD(null),l=m=>{a(m),setTimeout(()=>a(""),2e3)},c=async()=>{try{await ZD(e,n()),l(P("Copied!"))}catch(m){window.alert(m.message||P("Copy failed"))}},d=async()=>{try{const m=await WD(e);window.confirm(P("Replace current template with pasted data?"))&&(i(m),l(P("Imported!")))}catch(m){window.alert(m.message||P("Paste failed"))}},u=()=>{try{GD(e,n()),l(P("Exported!"))}catch(m){window.alert(m.message||P("Export failed"))}},f=async m=>{var v;const p=(v=m.target.files)==null?void 0:v[0];if(p){m.target.value="";try{const x=await UD(p,e);window.confirm(P("Replace current template with imported data?"))&&(i(x),l(P("Imported!")))}catch(x){window.alert(x.message||P("Import failed"))}}},h="bg-white px-2 py-1 text-[12px] rounded-[3px] cursor-pointer hover:bg-wp-light hover:text-wp transition-all ease-in-out duration-200 border-0";return r.jsxs(JD,{children:[t&&r.jsxs(KD,{children:[t,":"]}),r.jsx("button",{type:"button",className:h,onClick:c,title:P("Copy to clipboard"),children:P("Copy")}),r.jsx("button",{type:"button",className:h,onClick:d,title:P("Paste from clipboard"),children:P("Paste")}),r.jsx("button",{type:"button",className:h,onClick:u,title:P("Export as JSON file"),children:P("Export")}),r.jsx("button",{type:"button",className:h,onClick:()=>{var m;return(m=s.current)==null?void 0:m.click()},title:P("Import from JSON file"),children:P("Import")}),r.jsx(qD,{ref:s,type:"file",accept:".json",onChange:f}),o&&r.jsx(QD,{children:o})]})}var JD=w("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.125rem"}),KD=w("span")({marginRight:"0.125rem",fontSize:"11px","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),qD=w("input")({display:"none"}),QD=w("span").withConfig({displayName:"TemplateExportImport___StyledSpan2",componentId:"sc-1akddsc-0"})({fontSize:"11px","--tw-text-opacity":"1",color:"rgb(22 163 74 / var(--tw-text-opacity, 1))"});const ko=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ad=e=>{if(Array.isArray(e))return e.map(ad);if(!ko(e))return e;const t="value"in e,n={};for(const i of Object.keys(e))t&&(i==="min"||i==="max")||(n[i]=ad(e[i]));return n},Vo=e=>{let t={};try{t=window.brandyElements??{}}catch{t={}}return ad(t$(e,t))},e$=e=>{const t=new Set;if(!ko(e))return t;for(const n of Object.values(e))if(ko(n)){for(const i of Object.values(n))if(Array.isArray(i))for(const o of i)typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(a=>typeof a=="string"&&t.add(a))}return t},t$=(e,t)=>{if(!ko(e)||!Array.isArray(e.templates))return e;const n=e.templates.map(i=>{if(!ko(i)||!ko(i.elements))return i;const o=e$(i.placements),a={};for(const[s,l]of Object.entries(i.elements)){const c=t[s],d=c!==void 0&&JSON.stringify(l)===JSON.stringify(c);(o.has(s)||!d)&&(a[s]=l)}return{...i,elements:a}});return{...e,templates:n}},xf=(e,t,n)=>{try{if(typeof localStorage>"u"||!localStorage.getItem("brandyPayloadDebug"))return;const i=JSON.stringify(t).length,o=JSON.stringify(n).length,a=i?Math.round((1-o/i)*100):0;console.debug(`[brandy payload] ${e}: ${i} -> ${o} bytes (${a}% smaller)`)}catch{}},n$={isDragging:!1},Ua=vl()(e=>({...n$,startDragging:()=>{e(()=>({isDragging:!0}))},stopDragging:()=>{e(()=>({isDragging:!1}))}}));const r$=window.React.useEffect,bf=window.React.useRef,i$=window.React.useState;function Ig({items:e,builder:t,disabledItems:n=[]}){const{startDragging:i,stopDragging:o}=Ua(s=>({startDragging:s.startDragging,stopDragging:s.stopDragging})),a=()=>!1;return r.jsx(Yi.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(a$,{className:`element-item ${n.includes(s)?"brandy-undraggable-item":""}`,$_css2:[{height:"44px"},{display:"flex",alignItems:"center",gap:"12px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.75rem",paddingBottom:"0.75rem","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"}},{borderRadius:"5px"},{cursor:"grab",backgroundColor:"rgba(255, 255, 255, 0.80)","--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"&:hover":{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}},me(["&.brandy-undraggable-item{cursor:initial;"," display:none;}&:hover{&:.brandy-undraggable-item .drag-icon{svg{*[fill]{","}*[stroke]{","}}}.duplicate-icon,.remove-icon{visibility:visible;opacity:1;transition:all ease-in-out 0.2s;svg *[fill],svg *[stroke]{transition:all ease-in-out 0.2s;}&:hover{svg{*[fill]{","}*[stroke]{","}}}}.remove-icon{&:hover{svg{*[fill]{","}*[stroke]{","}}}}}"],{"--tw-bg-opacity":"1",backgroundColor:"rgb(220 221 227 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{fill:"#1E1E1E"},{stroke:"#1E1E1E"},{fill:"#1E1E1E"},{stroke:"#1E1E1E"},{fill:"#FF5F5D"},{stroke:"#FF5F5D"})],children:[r.jsx("span",{className:"drag-icon",children:r.jsx(Nx,{})}),r.jsx(o$,{name:l??((c=window.brandyElements[s])==null?void 0:c.title)??"",id:s,builder:t,disabled:n.includes(s)})]},s)})})}function o$({id:e,name:t,builder:n,disabled:i=!1}){const[o,a]=i$(!1),s=d=>{let u=Ae;n==="footer"&&(u=Ie),u.getState().changeElementItemTitle(e,d)},l=bf(null),c=bf(null);return r$(()=>{function d(u){if(!o&&c.current!=null&&c.current.contains(u.target)&&!i){a(!0);return}l.current!=null&&o&&(l.current.contains(u.target)||a(!1))}return window.addEventListener("click",d),()=>{window.removeEventListener("click",d)}},[l.current,o,c]),o?r.jsx(s$,{value:t,type:"text",onChange:s,ref:l}):r.jsx("span",{ref:c,children:t||"<Empty>"})}var a$=w("span")`${e=>e.$_css2}`,s$=w(ht).withConfig({displayName:"ElementDraggable___StyledInput",componentId:"sc-19ouxax-0"})({borderRadius:"0px !important",borderLeftWidth:"0px !important",borderRightWidth:"0px !important",borderTopWidth:"0px !important",padding:"0px !important"});const l$=window.React.useMemo;function i0(e,t="header"){const n=oe(t)(o=>o.previewTemplate.elements),i=l$(()=>P2(e),[e]);return{allElements:Object.values(n),usingElementIds:i,unusedElements:Object.values(n).filter(o=>{var s;return(o.builders??((s=window.brandyElements[o.id])==null?void 0:s.builders)??["header"]).includes(t)&&!i.includes(o.id)})}}const c$=window.React.useMemo,d$=window.React.useState,u$=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function f$(){const{current:e}=De(),t=oe("header")(c=>c.previewTemplate.placements[Qe(e)]),[n,i]=d$(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=i0(t,"header"),l=c$(()=>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(Xi,{searchText:n,onSearch:o,placeholder:P("Search element")})}),r.jsx(z2,{children:r.jsx(Ka,{children:l.length<=0?r.jsx(u$,{}):r.jsx(Ig,{items:l,disabledItems:s,builder:"header"})})})]})}const yf=window.React.useCallback,h$=window.React.useMemo;function p$(){const e=Ae(i=>i.previewTemplate.settings),t=h$(()=>window.brandySettingsLayouts.header,[]),n=Ae(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(os,{section:i,sectionKey:`header-${o}`,sectionId:"header",settings:e,onChange:n,builder:"header"},`header-${o}`))})}const g$=[{label:P("Elements"),key:"elements"},{label:P("Settings"),key:"settings"}];function m$(){const{contextHolder:e,currentTab:t}=ns({items:g$}),n=Ae(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??""}),i=()=>{un()},o=yf(()=>{const s=Ae.getState();return s.templates.find(c=>c.id===s.currentTemplateId)??s.templates[0]},[]),a=yf(s=>{var f,h,m,p,v,x,E,C,j,M;const l=Ae.getState(),c=l.currentTemplateId,d=JSON.parse(JSON.stringify({...s,id:c})),u=l.templates.map(T=>T.id===c?d:T);Ae.setState({templates:u,previewTemplate:d}),(m=(h=(f=window.wp)==null?void 0:f.customize)==null?void 0:h.call(f,"unsaved_header_settings"))==null||m(Vo({current_template_id:c,templates:u,preview_template_id:c})),(x=(v=(p=window.wp)==null?void 0:p.customize)==null?void 0:v.call(p,"header_settings"))==null||x(Date.now()),(M=(j=(C=(E=window.wp)==null?void 0:E.customize)==null?void 0:C.previewer)==null?void 0:j.refresh)==null||M.call(j)},[]);return r.jsxs(ec,{children:[r.jsx(Or,{onGoBack:i,builder:"header",title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[P("Customizing")," ▸ ",P("Header")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:n})]})}),r.jsx("div",{className:"px-4 pb-2",children:r.jsx(Tg,{type:"brandy-header",getCurrentTemplate:o,onImport:a})}),e,t==="elements"?r.jsx(f$,{}):r.jsx(p$,{})]})}const Cf=window.React.useCallback,v$=window.React.useEffect,xa=window.React.useMemo,Ms=window.React.useState,w$=[{value:"preset_default",label:"Default header",icon:{desktop:r.jsxs("svg",{width:"286",height:"52",viewBox:"0 0 286 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"51",rx:"4.5",fill:"white"}),r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"51",rx:"4.5",stroke:"#E3E8EE"}),r.jsx("path",{d:"M1 5C1 2.79086 2.79086 1 5 1H281C283.209 1 285 2.79086 285 5V23H1V5Z",fill:"url(#paint0_linear_6147_167127)"}),r.jsx("rect",{x:"14",y:"10",width:"12",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"31",y:"10",width:"12",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"48",y:"10",width:"12",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"247",y:"10",width:"10",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"262",y:"10",width:"10",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"118",y:"10",width:"55",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("path",{d:"M36.3976 28.203C36.3976 29.4196 35.4111 30.4061 34.1945 30.4061C32.9779 30.4061 31.9914 29.4196 31.9914 28.203C31.9914 26.9865 32.9775 26 34.1945 26C35.4116 26 36.3976 26.9865 36.3976 28.203ZM20.9002 33.9036C20.4246 33.9515 20.3494 34.6137 20.8021 34.7668C23.6811 35.7405 27.8219 36.6544 29.8671 37.0803C30.5715 37.2268 31.0269 37.9101 30.8954 38.6176C30.3124 41.7455 29.2238 45.0872 28.533 47.4271C28.4014 47.8728 28.9558 48.1962 29.2788 47.8623C36.7285 40.1629 40.9151 32.2558 42.4551 28.9985C42.6457 28.5955 42.1907 28.1956 41.8141 28.434C36.1033 32.0521 25.2629 33.4653 20.9002 33.9036Z",fill:"#A1ABB7"}),r.jsx("rect",{x:"88",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"117",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"146",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"175",y:"35",width:"22",height:"4",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"237",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"247",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"257",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"267",y:"34.5",width:"5",height:"5",rx:"2",fill:"#DCDDE3"}),r.jsx("defs",{children:r.jsxs("linearGradient",{id:"paint0_linear_6147_167127",x1:"154.198",y1:"1",x2:"154.198",y2:"23",gradientUnits:"userSpaceOnUse",children:[r.jsx("stop",{stopColor:"white",stopOpacity:"0.71"}),r.jsx("stop",{offset:"1",stopColor:"#F1F6FE",stopOpacity:"0.55"})]})})]}),mobile:r.jsxs("svg",{width:"286",height:"70",viewBox:"0 0 286 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"69.0007",rx:"4.5",fill:"white"}),r.jsx("rect",{x:"0.5",y:"0.5",width:"285",height:"69.0007",rx:"4.5",stroke:"#E3E8EE"}),r.jsx("path",{d:"M1 5C1 2.79086 2.79086 1 5 1H281C283.209 1 285 2.79086 285 5V31.1797H1V5Z",fill:"url(#paint0_linear_6147_167365)"}),r.jsx("rect",{x:"16",y:"13.5",width:"130",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M263.249 15.7507L263.249 19.0007H264.749V15.7507H268V14.2505H264.749V11H263.249L263.249 14.2505H260V15.7507H263.249Z",fill:"#5A6D80"}),r.jsx("g",{clipPath:"url(#clip0_6147_167365)",children:r.jsx("path",{d:"M31.8976 40.203C31.8976 41.4196 30.9111 42.4061 29.6945 42.4061C28.4779 42.4061 27.4914 41.4196 27.4914 40.203C27.4914 38.9865 28.4775 38 29.6945 38C30.9116 38 31.8976 38.9865 31.8976 40.203ZM16.4002 45.9036C15.9246 45.9515 15.8494 46.6137 16.3021 46.7668C19.1811 47.7405 23.3219 48.6544 25.3671 49.0803C26.0715 49.2268 26.5269 49.9101 26.3954 50.6176C25.8124 53.7455 24.7238 57.0872 24.033 59.4271C23.9014 59.8728 24.4558 60.1962 24.7788 59.8623C32.2285 52.1629 36.4151 44.2558 37.9551 40.9985C38.1457 40.5955 37.6907 40.1956 37.3141 40.434C31.6033 44.0521 20.7629 45.4653 16.4002 45.9036Z",fill:"#A1ABB7"})}),r.jsx("rect",{x:"194",y:"42",width:"14",height:"14",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"224",y:"42",width:"14",height:"14",rx:"2",fill:"#DCDDE3"}),r.jsx("rect",{x:"254",y:"43",width:"16",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"254",y:"48",width:"16",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("rect",{x:"254",y:"53",width:"16",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsxs("defs",{children:[r.jsxs("linearGradient",{id:"paint0_linear_6147_167365",x1:"145.5",y1:"2.21756",x2:"145.5",y2:"31.1797",gradientUnits:"userSpaceOnUse",children:[r.jsx("stop",{stopColor:"white",stopOpacity:"0.71"}),r.jsx("stop",{offset:"1",stopColor:"#F1F6FE",stopOpacity:"0.55"})]}),r.jsx("clipPath",{id:"clip0_6147_167365",children:r.jsx("rect",{width:"22",height:"22",fill:"white",transform:"translate(16 38)"})})]})]})}}],C1=({children:e})=>r.jsx(wt,{className:"mb-2 font-semibold",children:e});function x$(){const e=Ae(y=>y.addTemplate),t=Ae(y=>y.choosePreviewTemplate),n=Ae(y=>y.removeTemplate),i=Ae(y=>y.templates),o=Ae(y=>y.previewTemplate),[a]=Ms(o.id),s=xa(()=>`template-${Date.now()}`,[]),[l,c]=Ms(`Header #${i.length+1}`),[d,u]=Ms(""),[f,h]=Ms(""),m=xa(()=>[{label:"Select header",value:""},...i.filter(y=>y.id!==s).map(y=>({label:y.id==="default"?"Default header":y.settings.name,value:y.id}))],[i]),p=y=>{typeof y!="number"&&c(y)};v$(()=>()=>{V2()},[]);const v=Cf(y=>i.find(I=>I.id===y)??window.brandyCustomizerData.defaults.header,[i]),x=Cf(y=>window.brandyHeaderPresets[y],[]),E=()=>{un()},C=(y,I)=>{let L=null,F=null;return y?L=v(y):L=x(I),L!=null&&(F=JSON.parse(JSON.stringify(L)),F.id=s,F.settings.name=l),F},j=y=>{y.preventDefault();const I=C(f,d);if(I==null)return;const L=JSON.parse(JSON.stringify(I));n(s),e({...L,id:s,settings:{...L.settings,name:l}}),t(s),E()},M=xa(()=>i.filter(y=>y.settings.name===l||l==="Default header").length>1,[l,i]),T=xa(()=>l===""||d===""&&f===""||M,[f,d,l,M]),_=(y,I)=>{const L=C(y,I);if(L==null)return;const F=JSON.parse(JSON.stringify(L));n(s),e({...F,id:s,settings:{...F.settings,name:l}}),t(s),setTimeout(()=>{B2()},200)},b=y=>{y!==d&&(u(y),_(f,y))},$=y=>{h(y),y==""?_(f,d):(u(""),_(y,d))},B=()=>{t(a),n(s),E()};return r.jsxs(ec,{children:[r.jsx(Or,{onGoBack:B,title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[P("Customizing")," ▸ ",P("Header")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:P("Create new header")})]}),hasBottomPart:!1}),r.jsx(Ka,{className:"after:hidden",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-[#757575] text-xs",children:P("Create a new header and assign it to different pages or posts based on your conditions.")}),r.jsxs("div",{children:[r.jsx(C1,{children:P("Header name")}),r.jsx(ht,{value:l,onChange:p,className:M?"!border-red-500 focus-within:!border-red-500":"",placeholder:P("Your header name")}),M&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:P("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(C1,{children:P("Copy elements & styles from")}),r.jsx(jt,{options:m,onChange:$,selected:f})]}),f===""&&r.jsxs("div",{children:[r.jsx(C1,{children:P("Using header presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:w$.map(y=>r.jsx(b$,{isActive:y.value===d,data:y,onSelect:()=>{b(y.value)}},y.value))})]})]})}),r.jsx(y$,{className:"sticky p-4 bottom-0",$_css:[f!==""&&{position:"absolute !important",width:"100%"},{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Ml,{primary:!0,onClick:j,disabled:T,children:P("Create header")})})]})}const b$=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=De(),o=xa(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(C$,{onClick:n,$_css2:[{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity, 1))"},{cursor:"pointer",borderRadius:"5px",backgroundColor:"rgba(255, 255, 255, 0.70)",padding:"1rem","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}],children:[r.jsx(_$,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(S$,{$_css3:[{textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontStyle:"italic"},e?{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}:{"--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"}],children:t==null?void 0:t.label})]})};var y$=w("div")`${e=>e.$_css}`,C$=w("div")`${e=>e.$_css2}`,_$=w("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),S$=w("p").withConfig({displayName:"NewHeader___StyledP",componentId:"sc-6re12p-0"})(["",""],e=>e.$_css3);const j$=window.React,k$=window.React.memo,E$=window.React.useCallback,Lg=window.React.useContext,Ag=window.React.useMemo,Rg=j$.createContext({});function D$(){const{builder:e}=Lg(Jt),t=oe(e)(s=>s.deselectRow),n=oe(e)(s=>s.chosenRow??"not found"),i=oe(e)(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??e}),o=E$(()=>{un(),t()},[un,t]),a=Ag(()=>({builder:e,goBack:o}),[e,o]);return r.jsxs(Rg.Provider,{value:a,children:[r.jsx(Or,{onGoBack:o,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(M$,{children:[P("Customizing")," ▸ ",i]}),r.jsxs(T$,{children:[n," ",e]})]})}),r.jsx(H$,{})]})}function $$(){const{builder:e}=Lg(Rg),t=oe(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=ns(),o=Ag(()=>window.brandySettingsLayouts[`${t}_${e}`],[t,e]),a=oe(e)(l=>t!=null&&l.previewTemplate.row_configurations[t]||{}),s=oe(e)(l=>l.changeRowSettings);return t==null||o==null||a==null?!1:r.jsxs(r.Fragment,{children:[n,r.jsx(Cd,{children:o[i].sections.map((l,c)=>r.jsx(os,{section:l,sectionKey:`${i}-${c}`,sectionId:`${t}_${e}`,settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const H$=k$($$);var M$=w("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),T$=w("div").withConfig({displayName:"RowSettingsSection___StyledDiv2",componentId:"sc-1y9zy4h-0"})({fontSize:"20px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const I$=window.React.useMemo,L$=window.React.useState,A$=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function R$(){const{current:e}=De(),t=oe("footer")(c=>c.previewTemplate.placements[Qe(e)]),[n,i]=L$(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=i0(t,"footer"),l=I$(()=>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(Xi,{searchText:n,onSearch:o,placeholder:P("Search element")})}),r.jsx(z2,{children:r.jsx(Ka,{children:l.length<=0?r.jsx(A$,{}):r.jsx(Ig,{items:l,builder:"footer",disabledItems:s})})})]})}const _f=window.React.useCallback,O$=window.React.useMemo;function N$(){const e=Ie(i=>i.previewTemplate.settings),t=O$(()=>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(os,{section:i,sectionKey:`footer-${o}`,sectionId:"footer",settings:e,onChange:n,builder:"footer"},`footer-${o}`))})}const P$=[{label:P("Elements"),key:"elements"},{label:P("Settings"),key:"settings"}];function B$(){const{contextHolder:e,currentTab:t}=ns({items:P$}),n=Ie(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??""}),i=()=>{un()},o=_f(()=>{const s=Ie.getState();return s.templates.find(c=>c.id===s.currentTemplateId)??s.templates[0]},[]),a=_f(s=>{var f,h,m,p,v,x,E,C,j,M;const l=Ie.getState(),c=l.currentTemplateId,d=JSON.parse(JSON.stringify({...s,id:c})),u=l.templates.map(T=>T.id===c?d:T);Ie.setState({templates:u,previewTemplate:d}),(m=(h=(f=window.wp)==null?void 0:f.customize)==null?void 0:h.call(f,"unsaved_footer_settings"))==null||m(Vo({current_template_id:c,templates:u,preview_template_id:c})),(x=(v=(p=window.wp)==null?void 0:p.customize)==null?void 0:v.call(p,"footer_settings"))==null||x(Date.now()),(M=(j=(C=(E=window.wp)==null?void 0:E.customize)==null?void 0:C.previewer)==null?void 0:j.refresh)==null||M.call(j)},[]);return r.jsxs(ec,{children:[r.jsx(Or,{onGoBack:i,builder:"footer",title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[P("Customizing")," ▸ ",P("Footer")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:n})]})}),r.jsx("div",{className:"px-4 pb-2",children:r.jsx(Tg,{type:"brandy-footer",getCurrentTemplate:o,onImport:a})}),e,t==="elements"?r.jsx(R$,{}):r.jsx(N$,{})]})}const Sf=window.React.useCallback,V$=window.React.useEffect,ba=window.React.useMemo,Ts=window.React.useState,z$=[{value:"preset_default",label:"Default footer",icon:{desktop:r.jsxs("svg",{width:"286",height:"75",viewBox:"0 0 286 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{y:"0.820312",width:"286",height:"73.5",rx:"5",fill:"white"}),r.jsx("rect",{x:"0.5",y:"1.32031",width:"285",height:"72.5",rx:"4.5",stroke:"#E3E8EE"}),r.jsx("path",{d:"M23.3948 18.7969L22.3431 20.4384V21.4885H21.746V20.4384L20.6982 18.7969H21.3743L22.0465 19.847L22.7187 18.7969H23.3948Z",fill:"#FFC900"}),r.jsx("path",{d:"M24.0592 19.5312C24.3755 19.5312 24.6127 19.6829 24.7076 19.8649L24.7432 19.5692H25.3047V21.4874H24.7432L24.7076 21.1917C24.6127 21.3737 24.3755 21.5253 24.0592 21.5253C23.4859 21.5253 23.0786 21.078 23.0786 20.5283C23.0786 19.9786 23.4859 19.5312 24.0592 19.5312ZM24.162 20.9832C24.4506 20.9832 24.6364 20.7747 24.6364 20.5283C24.6364 20.2819 24.4506 20.0696 24.162 20.0696C23.8694 20.0696 23.6757 20.2819 23.6757 20.5283C23.6757 20.7747 23.8694 20.9832 24.162 20.9832Z",fill:"#FFC900"}),r.jsx("path",{d:"M26.1781 19.5703L26.6961 20.7758L27.2101 19.5703H27.8506L26.617 22.3605H25.9883L26.3758 21.4885L25.5376 19.5703H26.1781Z",fill:"#FFC900"}),r.jsx("path",{d:"M31.1304 19.1976C30.6006 19.1976 30.1538 19.588 30.1538 20.1415C30.1538 20.695 30.6006 21.0854 31.1304 21.0854C31.5337 21.0854 31.7947 20.8921 31.8935 20.7898V21.2598C31.7709 21.3622 31.4981 21.5252 31.0711 21.5252C30.2882 21.5252 29.6675 20.9224 29.6675 20.1415C29.6675 19.3606 30.2882 18.7578 31.0711 18.7578C31.4981 18.7578 31.7709 18.9208 31.8935 19.0232V19.4933C31.7907 19.3871 31.5337 19.1976 31.1304 19.1976Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M32.1821 20.5283C32.1821 19.9786 32.6289 19.5312 33.2576 19.5312C33.8823 19.5312 34.3251 19.9786 34.3251 20.5283C34.3251 21.078 33.8823 21.5253 33.2576 21.5253C32.6289 21.5253 32.1821 21.078 32.1821 20.5283ZM33.8388 20.5283C33.8388 20.225 33.5976 19.971 33.2576 19.971C32.9136 19.971 32.6684 20.225 32.6684 20.5283C32.6684 20.8315 32.9136 21.0855 33.2576 21.0855C33.5976 21.0855 33.8388 20.8315 33.8388 20.5283Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M37.773 20.2819V21.4874H37.2867V20.4411C37.2867 20.1606 37.1641 19.971 36.9308 19.971C36.6422 19.971 36.4682 20.2667 36.4563 20.661V21.4874H35.97V20.4411C35.97 20.1606 35.8474 19.971 35.6142 19.971C35.3255 19.971 35.1516 20.2667 35.1357 20.661V21.4874H34.6494V19.5692H35.1081L35.1318 19.8383C35.3057 19.6601 35.5311 19.5312 35.8 19.5312C36.0926 19.5312 36.2903 19.6753 36.3852 19.9066C36.571 19.6943 36.8161 19.5312 37.1206 19.5312C37.5476 19.5312 37.773 19.8421 37.773 20.2819Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M41.3116 20.2819V21.4874H40.8252V20.4411C40.8252 20.1606 40.7027 19.971 40.4694 19.971C40.1808 19.971 40.0068 20.2667 39.9949 20.661V21.4874H39.5086V20.4411C39.5086 20.1606 39.386 19.971 39.1527 19.971C38.8641 19.971 38.6901 20.2667 38.6743 20.661V21.4874H38.188V19.5692H38.6466L38.6704 19.8383C38.8443 19.6601 39.0697 19.5312 39.3386 19.5312C39.6311 19.5312 39.8288 19.6753 39.9237 19.9066C40.1096 19.6943 40.3547 19.5312 40.6592 19.5312C41.0862 19.5312 41.3116 19.8421 41.3116 20.2819Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M43.6208 20.6723H42.1064C42.1183 20.9074 42.3041 21.1121 42.656 21.1121C42.9091 21.1121 43.0712 20.9832 43.1503 20.8505L43.5773 20.896C43.518 21.1576 43.2056 21.5253 42.6521 21.5253C42.0353 21.5253 41.6201 21.078 41.6201 20.5169C41.6201 19.9824 42.0155 19.5312 42.6205 19.5312C43.2373 19.5312 43.6208 20.0013 43.6208 20.551V20.6723ZM42.1064 20.3501H43.1345C43.1186 20.1378 42.9249 19.9444 42.6205 19.9444C42.3239 19.9445 42.1183 20.1302 42.1064 20.3501Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M45.1033 19.6146L45.0321 20.0203C44.9926 19.9975 44.9135 19.971 44.8344 19.971C44.5735 19.971 44.4311 20.2288 44.4311 20.6344V21.4874H43.9448V19.5692H44.4035L44.4232 19.7777C44.5498 19.6298 44.6961 19.5313 44.8621 19.5313C44.9768 19.5312 45.0598 19.5729 45.1033 19.6146Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M46.2975 19.971C46.001 19.971 45.7044 20.1947 45.7044 20.5283C45.7044 20.8619 46.001 21.0855 46.2975 21.0855C46.4834 21.0855 46.6494 21.0249 46.8076 20.8808V21.3282C46.6731 21.4419 46.4754 21.5253 46.2184 21.5253C45.6253 21.5253 45.1904 21.0704 45.1904 20.5283C45.1904 19.99 45.6253 19.5312 46.2184 19.5312C46.4754 19.5312 46.6731 19.6147 46.8076 19.7284V20.1719C46.6494 20.0279 46.4834 19.971 46.2975 19.971Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M49.0768 20.6723H47.5625C47.5744 20.9074 47.7602 21.1121 48.1121 21.1121C48.3651 21.1121 48.5273 20.9832 48.6063 20.8505L49.0333 20.896C48.974 21.1576 48.6617 21.5253 48.1081 21.5253C47.4913 21.5253 47.0762 21.078 47.0762 20.5169C47.0762 19.9824 47.4715 19.5312 48.0765 19.5312C48.6933 19.5312 49.0768 20.0013 49.0768 20.551V20.6723ZM47.5625 20.3501H48.5905C48.5747 20.1378 48.381 19.9444 48.0765 19.9444C47.78 19.9445 47.5744 20.1302 47.5625 20.3501Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M28.1108 21.2533C28.1108 21.0976 28.2371 20.9766 28.3994 20.9766C28.5618 20.9766 28.6881 21.0976 28.6881 21.2533C28.6881 21.4089 28.5618 21.53 28.3994 21.53C28.2371 21.53 28.1108 21.4089 28.1108 21.2533Z",fill:"#FFC900"}),r.jsx("path",{d:"M28.5576 18.7969H29.1543L28.7555 20.6844H28.2725L28.5576 18.7969Z",fill:"#FFC900"}),r.jsx("path",{d:"M18.522 17.4211C18.522 17.753 18.2415 18.022 17.8954 18.022C17.5493 18.022 17.2687 17.753 17.2687 17.4211C17.2687 17.0893 17.5493 16.8203 17.8954 16.8203C18.2415 16.8203 18.522 17.0893 18.522 17.4211ZM14.1139 18.9759C13.9786 18.9889 13.9571 19.1695 14.0859 19.2113C14.9048 19.4768 16.0827 19.726 16.6645 19.8422C16.8648 19.8822 16.9944 20.0686 16.9569 20.2615C16.7911 21.1146 16.4814 22.026 16.285 22.6641C16.2475 22.7856 16.4052 22.8738 16.4971 22.7828C18.6161 20.683 19.807 18.5265 20.2451 17.6381C20.2993 17.5282 20.1699 17.4191 20.0628 17.4842C18.4384 18.4709 15.3548 18.8564 14.1139 18.9759Z",fill:"#FFC900"}),r.jsx("rect",{x:"14",y:"26.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"32.3203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"37.8203",width:"35.0767",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"22",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"30",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"38",y:"43.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"19.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"25.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"31.3203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"36.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"76.6665",y:"42.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"19.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"25.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"31.3203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"36.8203",width:"46.6667",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"139.333",y:"42.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"18.8203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"24.3203",width:"45.7817",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"29.8203",width:"70",height:"9",rx:"1",fill:"#F6F7F7"}),r.jsx("rect",{x:"256.022",y:"29.8203",width:"15.9557",height:"9",rx:"0.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"202",y:"42.8203",width:"18.5132",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("path",{d:"M14 62.4453H272V62.1953H14V62.4453Z",fill:"#E3E8EE"}),r.jsx("rect",{x:"115",y:"67.3203",width:"56",height:"2",rx:"1",fill:"#DCDDE3"})]}),mobile:r.jsxs("svg",{width:"286",height:"184",viewBox:"0 0 286 184",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("rect",{x:"0.5",y:"1.32031",width:"285",height:"182",rx:"4.5",stroke:"#E3E8EE"}),r.jsxs("g",{clipPath:"url(#clip0_6109_159963)",children:[r.jsx("path",{d:"M23.7977 18.1221C23.7977 18.8411 23.1898 19.4239 22.44 19.4239C21.6901 19.4239 21.0822 18.8411 21.0822 18.1221C21.0822 17.4031 21.6901 16.8203 22.44 16.8203C23.1898 16.8203 23.7977 17.4031 23.7977 18.1221ZM14.2467 21.4907C13.9535 21.5189 13.9071 21.9102 14.1862 22.0007C15.9604 22.5761 18.5126 23.1161 19.773 23.3678C20.2071 23.4545 20.4879 23.8582 20.4067 24.2762C20.0473 26.1246 19.3765 28.0992 18.9507 29.4818C18.8697 29.745 19.2112 29.9362 19.4103 29.739C24.0016 25.1895 26.5819 20.5171 27.5311 18.5922C27.6485 18.354 27.3682 18.1176 27.1361 18.2586C23.6165 20.3965 16.9355 21.2317 14.2467 21.4907Z",fill:"#FFC900"}),r.jsx("path",{d:"M34.4011 16.8984L32.1224 20.455V22.7302H30.8288V20.455L28.5586 16.8984H30.0235L31.4799 19.1737L32.9362 16.8984H34.4011Z",fill:"#FFC900"}),r.jsx("path",{d:"M35.8409 18.4922C36.5262 18.4922 37.0402 18.8207 37.2458 19.215L37.3229 18.5743H38.5394V22.7305H37.3229L37.2458 22.0898C37.0402 22.4841 36.5262 22.8126 35.8409 22.8126C34.5987 22.8126 33.7163 21.8434 33.7163 20.6524C33.7163 19.4615 34.5987 18.4922 35.8409 18.4922ZM36.0636 21.6381C36.689 21.6381 37.0916 21.1863 37.0916 20.6524C37.0916 20.1185 36.689 19.6585 36.0636 19.6585C35.4297 19.6585 35.0099 20.1185 35.0099 20.6524C35.0099 21.1863 35.4297 21.6381 36.0636 21.6381Z",fill:"#FFC900"}),r.jsx("path",{d:"M40.4313 18.5781L41.5535 21.1901L42.6672 18.5781H44.055L41.3822 24.6234H40.0201L40.8596 22.7343L39.0435 18.5781H40.4313Z",fill:"#FFC900"}),r.jsx("path",{d:"M51.1614 17.7731C50.0135 17.7731 49.0454 18.6191 49.0454 19.8183C49.0454 21.0175 50.0135 21.8635 51.1614 21.8635C52.0352 21.8635 52.6006 21.4446 52.8148 21.2229V22.2414C52.5492 22.4631 51.9581 22.8164 51.0329 22.8164C49.3367 22.8164 47.9917 21.5104 47.9917 19.8183C47.9917 18.1263 49.3367 16.8203 51.0329 16.8203C51.9581 16.8203 52.5492 17.1735 52.8148 17.3953V18.4138C52.5921 18.1838 52.0352 17.7731 51.1614 17.7731Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M53.4399 20.6524C53.4399 19.4614 54.408 18.4922 55.7701 18.4922C57.1236 18.4922 58.0831 19.4614 58.0831 20.6524C58.0831 21.8434 57.1236 22.8126 55.7701 22.8126C54.408 22.8126 53.4399 21.8434 53.4399 20.6524ZM57.0294 20.6524C57.0294 19.9953 56.5068 19.445 55.7701 19.445C55.0248 19.445 54.4936 19.9953 54.4936 20.6524C54.4936 21.3095 55.0248 21.8598 55.7701 21.8598C56.5068 21.8598 57.0294 21.3095 57.0294 20.6524Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M65.5539 20.1185V22.7305H64.5002V20.4635C64.5002 19.8557 64.2346 19.445 63.7291 19.445C63.1038 19.445 62.7268 20.0857 62.7011 20.9399V22.7305H61.6474V20.4635C61.6474 19.8557 61.3819 19.445 60.8764 19.445C60.251 19.445 59.8741 20.0857 59.8398 20.9399V22.7305H58.7861V18.5743H59.7799L59.8313 19.1575C60.2082 18.7714 60.6965 18.4922 61.279 18.4922C61.913 18.4922 62.3413 18.8043 62.5469 19.3053C62.9496 18.8454 63.4807 18.4922 64.1403 18.4922C65.0656 18.4922 65.5539 19.1657 65.5539 20.1185Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M73.2204 20.1185V22.7305H72.1667V20.4635C72.1667 19.8557 71.9011 19.445 71.3957 19.445C70.7703 19.445 70.3934 20.0857 70.3676 20.9399V22.7305H69.3139V20.4635C69.3139 19.8557 69.0484 19.445 68.5429 19.445C67.9175 19.445 67.5406 20.0857 67.5063 20.9399V22.7305H66.4526V18.5743H67.4464L67.4978 19.1575C67.8747 18.7714 68.363 18.4922 68.9455 18.4922C69.5795 18.4922 70.0078 18.8043 70.2134 19.3053C70.6161 18.8454 71.1472 18.4922 71.8068 18.4922C72.7321 18.4922 73.2204 19.1657 73.2204 20.1185Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M78.2235 20.9645H74.9424C74.9681 21.4738 75.3707 21.9173 76.1332 21.9173C76.6814 21.9173 77.0327 21.6381 77.204 21.3506L78.1292 21.4491C78.0007 22.0159 77.3239 22.8126 76.1246 22.8126C74.7882 22.8126 73.8887 21.8434 73.8887 20.6278C73.8887 19.4696 74.7453 18.4922 76.0561 18.4922C77.3925 18.4922 78.2235 19.5107 78.2235 20.7017V20.9645ZM74.9424 20.2663H77.1697C77.1355 19.8064 76.7157 19.3874 76.0561 19.3874C75.4136 19.3875 74.9681 19.7899 74.9424 20.2663Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M81.4358 18.6729L81.2816 19.5517C81.1959 19.5025 81.0246 19.445 80.8533 19.445C80.2879 19.445 79.9795 20.0035 79.9795 20.8824V22.7305H78.9258V18.5743H79.9195L79.9623 19.0261C80.2365 18.7057 80.5535 18.4922 80.9133 18.4922C81.1617 18.4922 81.3415 18.5825 81.4358 18.6729Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M84.0237 19.445C83.3812 19.445 82.7387 19.9296 82.7387 20.6524C82.7387 21.3752 83.3812 21.8598 84.0237 21.8598C84.4263 21.8598 84.7861 21.7284 85.1288 21.4163V22.3855C84.8375 22.6319 84.4092 22.8126 83.8524 22.8126C82.5673 22.8126 81.625 21.827 81.625 20.6524C81.625 19.486 82.5673 18.4922 83.8524 18.4922C84.4092 18.4922 84.8375 18.6729 85.1288 18.9193V19.8803C84.7861 19.5682 84.4263 19.445 84.0237 19.445Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M90.0457 20.9645H86.7647C86.7904 21.4738 87.193 21.9173 87.9554 21.9173C88.5037 21.9173 88.855 21.6381 89.0263 21.3506L89.9515 21.4491C89.823 22.0159 89.1462 22.8126 87.9469 22.8126C86.6104 22.8126 85.7109 21.8434 85.7109 20.6278C85.7109 19.4696 86.5676 18.4922 87.8783 18.4922C89.2147 18.4922 90.0457 19.5107 90.0457 20.7017V20.9645ZM86.7647 20.2663H88.992C88.9578 19.8064 88.538 19.3874 87.8784 19.3874C87.2358 19.3875 86.7903 19.7899 86.7647 20.2663Z",fill:"#A5A5A5"}),r.jsx("path",{d:"M44.6187 22.2246C44.6187 21.8873 44.8922 21.625 45.244 21.625C45.5957 21.625 45.8693 21.8873 45.8693 22.2246C45.8693 22.5618 45.5957 22.8241 45.244 22.8241C44.8922 22.8241 44.6187 22.5618 44.6187 22.2246Z",fill:"#FFC900"}),r.jsx("path",{d:"M45.587 16.9062H46.8798L46.0158 20.9958H44.9692L45.587 16.9062Z",fill:"#FFC900"})]}),r.jsx("rect",{x:"14",y:"36.8203",width:"191.254",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"42.3203",width:"120",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"47.8203",width:"35.0767",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"22",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"30",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"38",y:"53.3203",width:"3",height:"3",rx:"1.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"72.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"78.8203",width:"116",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"84.3203",width:"80",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"89.8203",width:"50",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"95.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"72.3203",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"78.8203",width:"116",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"84.3203",width:"80",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"89.8203",width:"50",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"150",y:"95.3203",width:"22",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"110.57",width:"17",height:"2.5",rx:"1.25",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"116.07",width:"153.726",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"121.57",width:"258",height:"16",rx:"1",fill:"#F6F7F7"}),r.jsx("rect",{x:"234.519",y:"121.57",width:"37.4591",height:"16",rx:"0.5",fill:"#DCDDE3"}),r.jsx("rect",{x:"14",y:"141.57",width:"100.134",height:"1.5",rx:"0.75",fill:"#DCDDE3"}),r.jsx("rect",{x:"115",y:"171.82",width:"56",height:"2",rx:"1",fill:"#DCDDE3"}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_6109_159963",children:r.jsx("rect",{width:"76.0458",height:"16",fill:"white",transform:"translate(14 16.8203)"})})})]})}}],_1=({children:e})=>r.jsx(wt,{className:"mb-2 font-semibold",children:e});function F$(){const e=Ie(y=>y.addTemplate),t=Ie(y=>y.choosePreviewTemplate),n=Ie(y=>y.removeTemplate),i=Ie(y=>y.templates),o=Ie(y=>y.previewTemplate),[a]=Ts(o.id),s=ba(()=>`template-${Date.now()}`,[]),[l,c]=Ts(`Footer #${i.length+1}`),[d,u]=Ts(""),[f,h]=Ts(""),m=ba(()=>[{label:"Select footer",value:""},...i.filter(y=>y.id!==s).map(y=>({label:y.id==="default"?"Default footer":y.settings.name,value:y.id}))],[i,s]),p=y=>{typeof y!="number"&&c(y)};V$(()=>()=>{V2()},[]);const v=Sf(y=>i.find(I=>I.id===y)??window.brandyCustomizerData.defaults.footer,[i]),x=Sf(y=>window.brandyFooterPresets[y],[]),E=()=>{un()},C=(y,I)=>{let L=null,F=null;return y?L=v(y):L=x(I),L!=null&&(F=JSON.parse(JSON.stringify(L)),F.id=s,F.settings.name=l),F},j=y=>{y.preventDefault();const I=C(f,d);if(I==null)return;const L=JSON.parse(JSON.stringify(I));n(s),e({...L,id:s,settings:{...L.settings,name:l}}),t(s),E()},M=ba(()=>i.filter(y=>y.settings.name===l||l==="Default footer").length>1,[l,i]),T=ba(()=>l===""||d===""&&f===""||M,[f,d,l,M]),_=(y,I)=>{const L=C(y,I);if(L==null)return;const F=JSON.parse(JSON.stringify(L));n(s),e({...F,id:s,settings:{...F.settings,name:l}}),t(s),setTimeout(()=>{B2()},200)},b=y=>{y!==d&&(u(y),_(f,y))},$=y=>{h(y),y==""?_(f,d):(u(""),_(y,d))},B=()=>{t(a),n(s),E()};return r.jsxs(ec,{children:[r.jsx(Or,{onGoBack:B,title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[P("Customizing")," ▸ ",P("Footer")]}),r.jsx("div",{className:"font-[300] text-[20px] text-brandy-text",children:P("Create new footer")})]}),hasBottomPart:!1}),r.jsx(Ka,{className:"after:hidden",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-[#757575] text-xs",children:P("Create a new footer and assign it to different pages or posts based on your conditions.")}),r.jsxs("div",{children:[r.jsx(_1,{children:P("Footer name")}),r.jsx(ht,{value:l,onChange:p,className:M?"!border-red-500 focus-within:!border-red-500":"",placeholder:P("Your footer name")}),M&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:P("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(_1,{children:P("Copy elements & styles from")}),r.jsx(jt,{options:m,onChange:$,selected:f})]}),f===""&&r.jsxs("div",{children:[r.jsx(_1,{children:P("Using footer presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:z$.map(y=>r.jsx(Z$,{isActive:y.value===d,data:y,onSelect:()=>{b(y.value)}},y.value))})]})]})}),r.jsx(W$,{className:"sticky p-4 bottom-0",$_css:[f!==""&&{position:"absolute !important",width:"100%"},{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Ml,{primary:!0,onClick:j,disabled:T,children:P("Create footer")})})]})}const Z$=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=De(),o=ba(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(G$,{onClick:n,$_css2:[{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent"},e&&{"--tw-border-opacity":"1",borderColor:"rgb(0 0 0 / var(--tw-border-opacity, 1))"},{cursor:"pointer",borderRadius:"5px",backgroundColor:"rgba(255, 255, 255, 0.70)",padding:"1rem","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}],children:[r.jsx(U$,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(Y$,{$_css3:[{textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontStyle:"italic"},e?{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}:{"--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"}],children:t==null?void 0:t.label})]})};var W$=w("div")`${e=>e.$_css}`,G$=w("div")`${e=>e.$_css2}`,U$=w("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),Y$=w("p").withConfig({displayName:"NewFooter___StyledP",componentId:"sc-15uicft-0"})(["",""],e=>e.$_css3);const X$=window.React,J$=window.React.memo,K$=window.React.useCallback,Og=window.React.useContext,Ng=window.React.useMemo,Pg=X$.createContext({});function jf(){const{builder:e}=Og(Jt),t=oe(e)(a=>a.deselectRow),n=oe(e)(a=>{var s,l;return((l=(s=a.previewTemplate)==null?void 0:s.settings)==null?void 0:l.name)??e}),i=K$(()=>{un(),t()},[un,t]),o=Ng(()=>({builder:e,goBack:i}),[e,i]);return r.jsxs(Pg.Provider,{value:o,children:[r.jsx(Or,{onGoBack:i,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(eH,{children:[P("Customizing")," ▸ ",n]}),r.jsx(tH,{children:P("Toggle off canvas")})]})}),r.jsx(Q$,{})]})}function q$(){const{builder:e}=Og(Pg),t=oe(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=ns(),o=Ng(()=>window.brandySettingsLayouts.toggle_off_canvas,[t,e]),a=oe(e)(l=>t!=null&&l.previewTemplate.row_configurations.toggle||{}),s=oe(e)(l=>l.changeRowSettings);return t==null||o==null||a==null?!1:r.jsxs(r.Fragment,{children:[n,r.jsx(Cd,{children:o[i].sections.map((l,c)=>r.jsx(os,{section:l,sectionKey:`${i}-${c}`,sectionId:"toggle_off_canvas",settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const Q$=J$(q$);var eH=w("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),tH=w("div").withConfig({displayName:"ToggleOffCanvasSection___StyledDiv2",componentId:"sc-1fkkjdj-0"})({fontSize:"20px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const o0=w.div.withConfig({displayName:"Styleds__SettingLine",componentId:"sc-1ff79ea-0"})(["",""],{marginTop:"0.75rem"}),Si=window.React.useState,S1=[{label:P("Hidden"),value:"hidden"},{label:P("Optional"),value:"optional"},{label:P("Required"),value:"required"}],kf=Object.entries(window.brandyCustomizerData.pages).map(([e,t])=>({label:t.title,value:e})),nH=w(o0)`
  ${{marginTop:"0px"}}
`;function go({title:e,description:t,children:n}){return r.jsxs(nH,{children:[r.jsx(iH,{children:e}),t&&r.jsx(oH,{children:t}),n]})}function rH(){const[e,t]=Si(()=>window.wp.customize("woocommerce_checkout_company_field")()),[n,i]=Si(()=>window.wp.customize("woocommerce_checkout_address_2_field")()),[o,a]=Si(()=>window.wp.customize("woocommerce_checkout_phone_field")()),[s,l]=Si(()=>window.wp.customize("woocommerce_checkout_highlight_required_fields")()),[c,d]=Si(()=>window.wp.customize("wp_page_for_privacy_policy")()),[u,f]=Si(()=>window.wp.customize("woocommerce_terms_page_id")()),[h,m]=Si(()=>window.wp.customize("woocommerce_checkout_privacy_policy_text")()),p=T=>{t(T),window.wp.customize("woocommerce_checkout_company_field")(T)},v=T=>{i(T),window.wp.customize("woocommerce_checkout_address_2_field")(T)},x=T=>{a(T),window.wp.customize("woocommerce_checkout_phone_field")(T)},E=T=>{const _=T.target.checked;l(_),window.wp.customize("woocommerce_checkout_highlight_required_fields")(_)},C=T=>{d(T),window.wp.customize("wp_page_for_privacy_policy")(T)},j=T=>{f(T),window.wp.customize("woocommerce_terms_page_id")(T)},M=T=>{const _=T.target.value;m(_),window.wp.customize("woocommerce_checkout_privacy_policy_text")(_)};return r.jsxs(aH,{children:[r.jsx("div",{children:P("These options let you change the appearance of the WooCommerce checkout.")}),r.jsx(go,{title:P("Company name field"),children:r.jsx(jt,{options:S1,selected:e,onChange:p})}),r.jsx(go,{title:P("Address line 2 field"),children:r.jsx(jt,{options:S1,selected:n,onChange:v})}),r.jsx(go,{title:P("Phone field"),children:r.jsx(jt,{options:S1,selected:o,onChange:x})}),r.jsxs(sH,{children:[r.jsx(lH,{type:"checkbox",checked:s,onChange:E}),r.jsx("label",{children:P("Highlight required fields with an asterisk")})]}),r.jsx(go,{title:P("Privacy policy page"),children:r.jsx(jt,{options:kf,selected:c,onChange:C})}),r.jsx(go,{title:P("Terms and conditions page"),children:r.jsx(jt,{options:kf,selected:u,onChange:j})}),r.jsx(go,{title:P("Privacy policy"),description:P("Optionally add some text about your store privacy policy to show during checkout."),children:r.jsx(cH,{value:h,onChange:M,rows:4})})]})}var iH=w("label")({marginBottom:"0.5rem",display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),oH=w("div")({marginBottom:"0.5rem"}),aH=w("div")({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),sH=w("div")({display:"flex",alignItems:"center",gap:"0.25rem"}),lH=w("input")({margin:"0px"}),cH=w("textarea").withConfig({displayName:"Checkout___StyledTextarea",componentId:"sc-1q6zqyc-0"})({width:"100%",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.5rem","&:focus":{"--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",outlineWidth:"0px"}});const Is=window.React.useState,Ef=[{label:P("Show products"),value:""},{label:P("Show categories"),value:"subcategories"},{label:P("Show categories & products"),value:"both"}],dH=[{label:P("Default sorting (custom ordering + name)"),value:"menu_order"},{label:P("Popularity (sales)"),value:"popularity"},{label:P("Average rating"),value:"rating"},{label:P("Sort by most recent"),value:"date"},{label:P("Sort by price (asc)"),value:"price"},{label:P("Sort by price (desc)"),value:"price-desc"}],uH=w(o0)`
  ${{marginTop:"0px"}}
`;function Ls({title:e,description:t="",children:n}){return r.jsxs(uH,{children:[r.jsx(hH,{children:e}),r.jsx(pH,{children:t}),n]})}function fH(){const[e,t]=Is(()=>window.wp.customize("woocommerce_shop_page_display")()),[n,i]=Is(()=>window.wp.customize("woocommerce_category_archive_display")()),[o,a]=Is(()=>window.wp.customize("woocommerce_default_catalog_orderby")()),[s,l]=Is(()=>window.wp.customize("wc_product_catalog")()),c=h=>{t(h),window.wp.customize("woocommerce_shop_page_display")(h)},d=h=>{i(h),window.wp.customize("woocommerce_shop_page_display")(h)},u=h=>{a(h),window.wp.customize("woocommerce_default_catalog_orderby")(h)},f=h=>{const m={...s,product_thumb_size:h};l(m),window.wp.customize("wc_product_catalog")(m),window.jQuery(Le("body")).css("--product-thumb-aspect-ratio",h=="size_1"?"3/4":"1")};return r.jsxs(gH,{children:[r.jsx(Ls,{title:P("Shop page display"),description:P("Choose what to display on the main shop page."),children:r.jsx(jt,{options:Ef,selected:e,onChange:c})}),r.jsx(Ls,{title:P("Category display"),description:P("Choose what to display on product category pages."),children:r.jsx(jt,{options:Ef,selected:n,onChange:d})}),r.jsx(Ls,{title:P("Default product sorting"),description:P("How should products be sorted in the catalog by default?"),children:r.jsx(jt,{options:dH,selected:o,onChange:u})}),r.jsx(Ls,{title:P("Products thumb size"),children:r.jsx(vn,{options:[{value:"size_1",label:P("Rectangular")},{value:"size_2",label:P("Square")}],selected:s.product_thumb_size??"size_1",onChange:f})})]})}var hH=w("label")({marginBottom:"0.5rem",display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),pH=w("div")({marginBottom:"0.5rem"}),gH=w("div").withConfig({displayName:"ProductCatalog___StyledDiv2",componentId:"sc-1b5kzi6-0"})({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"});const mH=window.React.useState,vH=w(o0)`
  ${{marginTop:"0px"}}
`;function Df({title:e,description:t="",children:n}){return r.jsxs(vH,{children:[r.jsx(xH,{children:e}),r.jsx(bH,{children:t}),n]})}function wH(){const[e,t]=mH(()=>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(Le("body")).css("--single-product-viewport-image-ratio",a),window.jQuery(Le(".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(Le("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(Le("body")).css("--single-product-gallery-thumb-image-height",(a.value??100)+"px")};return r.jsxs(yH,{children:[r.jsx(Df,{title:P("Product viewport ratio"),children:r.jsx(ht,{step:.1,wrapperStyle:{width:70},type:"number",value:e.product_gallery_viewport_image_ratio??1,onChange:n})}),r.jsxs(Df,{title:P("Product gallery thumb size"),children:[r.jsx(In,{units:["px"],value:{value:e.product_gallery_thumb_image_width??100,unit:"px"},min:30,max:500,onChange:i,title:P("Thumb Width")}),r.jsx("br",{}),r.jsx(In,{units:["px"],value:{value:e.product_gallery_thumb_image_height??100,unit:"px"},min:30,max:500,onChange:o,title:P("Thumb Height")})]})]})}var xH=w("label")({marginBottom:"0.5rem",display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),bH=w("div")({marginBottom:"0.5rem"}),yH=w("div").withConfig({displayName:"SingleProduct___StyledDiv2",componentId:"sc-1m2uk4u-0"})({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"});const As=window.React.useState;function CH(){const[e,t]=As(()=>window.wp.customize("enable_product_image_hover_effect")()),[n,i]=As(()=>window.wp.customize("product_image_hover_effect")()),[o,a]=As(()=>window.wp.customize("enable_product_image_hover_zoom")()),[s,l]=As(()=>window.wp.customize("product_image_hover_scale")()??1.1),c=h=>{t(h),window.wp.customize("enable_product_image_hover_effect")(h)},d=h=>{i(h),window.wp.customize("product_image_hover_effect")(h)},u=h=>{a(h),window.wp.customize("enable_product_image_hover_zoom")(h)},f=h=>{l(h),window.wp.customize("product_image_hover_scale")(h)};return r.jsxs(_H,{children:[r.jsx("div",{children:P("These options let you change the general WooCommerce settings.")}),r.jsxs(SH,{children:[r.jsx(jH,{children:P("Product Image")}),r.jsxs(kH,{children:[r.jsx(EH,{htmlFor:"enable_product_image_hover_zoom",children:P("Zoom when hovering product card")}),r.jsx(Oo,{checked:o,onChange:u})]}),o&&r.jsxs("div",{children:[r.jsx(DH,{htmlFor:"product_image_hover_scale",children:P("Hover scale")}),r.jsx(Kl,{value:s,onChange:h=>f(h),min:1,max:1.4,step:.05})]}),r.jsxs($H,{children:[r.jsx(HH,{htmlFor:"enable_product_image_hover_effect",children:P("Product Image Hover Animation")}),r.jsx(Oo,{checked:e,onChange:c})]}),e&&r.jsxs("div",{children:[r.jsx(MH,{htmlFor:"product_image_hover_effect",children:P("Hover effect")}),r.jsx(jt,{selected:n??"display-secondary-image",onChange:d,options:[{label:P("Secondary Image on Hover"),value:"display-secondary-image"},{label:P("Slideshow on Hover"),value:"display-slider"}]})]})]})]})}var _H=w("div")({display:"flex",flexDirection:"column",gap:"1.5rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),SH=w("div")({display:"flex",flexDirection:"column",gap:"0.75rem"}),jH=w("label")({display:"inline-block",width:"100%",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),kH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),EH=w("label")({display:"inline-block"}),DH=w("label")({marginBottom:"0.5rem",display:"inline-block"}),$H=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),HH=w("label")({display:"inline-block"}),MH=w("label").withConfig({displayName:"General___StyledLabel5",componentId:"sc-htnm6n-0"})({marginBottom:"0.5rem",display:"inline-block"});const TH=window.React.useContext,IH=window.React.useEffect,$f=window.React.useMemo;function LH(){const{sectionId:e}=TH(Jt);IH(()=>{e==="wc_checkout"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_checkout_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_checkout_page),e==="wc_general"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_shop_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_shop_page),e==="wc_product_catalog"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_shop_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_shop_page),e==="wc_single_product"&&!window.wp.customize.previewer.previewUrl().includes(window.brandyCustomizerData.paths.wc_single_product_page)&&window.wp.customize.previewer.previewUrl.set(window.brandyCustomizerData.paths.wc_single_product_page)},[e]);const t=$f(()=>{switch(e){case"wc_product_catalog":return fH;case"wc_single_product":return wH;case"wc_checkout":return rH;case"wc_general":return CH;default:return!1}},[e]),n=$f(()=>window.brandyCustomizerData.woocommerce.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Or,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[P("Customizing")," ▸ ",P("WooCommerce")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??P("Not found")})]}),hasBottomPart:!1,onGoBack:un}),r.jsx(AH,{children:r.jsx(t,{})})]})}var AH=w("div").withConfig({displayName:"Section___StyledDiv",componentId:"sc-gsppkr-0"})({marginTop:"1rem"});const Hf=window.React.useRef,j1=window.React.useState;var Gf;const Ir=((Gf=window.brandyCustomizerData)==null?void 0:Gf.wp_global_styles)??{};var Uf;const Cr=((Uf=window.brandyCustomizerData)==null?void 0:Uf.theme_settings)??{};var Yf;const Dr=((Yf=Ir==null?void 0:Ir.elements)==null?void 0:Yf.button)??{},mo=(Dr==null?void 0:Dr[":hover"])??{};var Xf,Jf,Kf;const Zt=((Kf=(Jf=(Xf=Ir==null?void 0:Ir.blocks)==null?void 0:Xf["core/button"])==null?void 0:Jf.variations)==null?void 0:Kf.outline)??{};var qf,Qf,eh;const _r=((eh=(Qf=(qf=Ir==null?void 0:Ir.blocks)==null?void 0:qf["core/button"])==null?void 0:Qf.variations)==null?void 0:eh.secondary)??{};var th,nh,rh,ih,oh,ah;const RH=[...((nh=(th=Cr==null?void 0:Cr.color)==null?void 0:th.palette)==null?void 0:nh.custom)??[],...((ih=(rh=Cr==null?void 0:Cr.color)==null?void 0:rh.palette)==null?void 0:ih.theme)??[],...((ah=(oh=Cr==null?void 0:Cr.color)==null?void 0:oh.palette)==null?void 0:ah.default)??[]];function ya(e){if(!e||typeof e!="string")return e;let t="";if(e.startsWith("var(--wp--preset--color--")?t=e.replace("var(--wp--preset--color--","").replace(")",""):e.startsWith("var:preset|color|")&&(t=e.replace("var:preset|color|","")),!t)return e;const n=RH.find(i=>i.slug===t);return(n==null?void 0:n.color)??e}var sh,lh,ch,dh;const OH={buttonBg:((sh=Dr==null?void 0:Dr.color)==null?void 0:sh.background)??"",buttonText:((lh=Dr==null?void 0:Dr.color)==null?void 0:lh.text)??"",hoverBg:((ch=mo==null?void 0:mo.color)==null?void 0:ch.background)??"",hoverText:((dh=mo==null?void 0:mo.color)==null?void 0:dh.text)??""};var uh,fh,hh,ph,gh,mh,vh,wh;const NH={mainColor:(uh=Zt==null?void 0:Zt.color)==null?void 0:uh.text,hoverStyle:((hh=(fh=Zt==null?void 0:Zt[":hover"])==null?void 0:fh.color)==null?void 0:hh.background)!==((ph=Zt==null?void 0:Zt.color)==null?void 0:ph.background)?"tinted":"solid",hoverBg:(mh=(gh=Zt==null?void 0:Zt[":hover"])==null?void 0:gh.color)==null?void 0:mh.background,hoverText:(wh=(vh=Zt==null?void 0:Zt[":hover"])==null?void 0:vh.color)==null?void 0:wh.text};var xh,bh,yh,Ch;const PH={bg:((xh=_r==null?void 0:_r.color)==null?void 0:xh.background)??"#ededed",text:((bh=_r==null?void 0:_r.color)==null?void 0:bh.text)??"",hoverBg:(Ch=(yh=_r==null?void 0:_r[":hover"])==null?void 0:yh.color)==null?void 0:Ch.background};var _h;const Lr=((_h=window.brandyCustomizerData)==null?void 0:_h.theme_default_styles)??{};var Sh;const $r=((Sh=Lr==null?void 0:Lr.elements)==null?void 0:Sh.button)??{},vo=($r==null?void 0:$r[":hover"])??{};var jh,kh,Eh;const Sr=((Eh=(kh=(jh=Lr==null?void 0:Lr.blocks)==null?void 0:jh["core/button"])==null?void 0:kh.variations)==null?void 0:Eh.outline)??{};var Dh,$h,Hh;const jr=((Hh=($h=(Dh=Lr==null?void 0:Lr.blocks)==null?void 0:Dh["core/button"])==null?void 0:$h.variations)==null?void 0:Hh.secondary)??{};var Mh,Th,Ih,Lh;const Mf={buttonBg:((Mh=$r==null?void 0:$r.color)==null?void 0:Mh.background)??"",buttonText:((Th=$r==null?void 0:$r.color)==null?void 0:Th.text)??"",hoverBg:((Ih=vo==null?void 0:vo.color)==null?void 0:Ih.background)??"",hoverText:((Lh=vo==null?void 0:vo.color)==null?void 0:Lh.text)??""};var Ah,Rh,Oh,Nh,Ph;const Tf={mainColor:((Ah=Sr==null?void 0:Sr.color)==null?void 0:Ah.text)??"",hoverStyle:"solid",hoverBg:((Oh=(Rh=Sr==null?void 0:Sr[":hover"])==null?void 0:Rh.color)==null?void 0:Oh.background)??"",hoverText:((Ph=(Nh=Sr==null?void 0:Sr[":hover"])==null?void 0:Nh.color)==null?void 0:Ph.text)??""};var Bh,Vh,zh,Fh;const If={bg:((Bh=jr==null?void 0:jr.color)==null?void 0:Bh.background)??"#ededed",text:((Vh=jr==null?void 0:jr.color)==null?void 0:Vh.text)??"",hoverBg:((Fh=(zh=jr==null?void 0:jr[":hover"])==null?void 0:zh.color)==null?void 0:Fh.background)??"#efefef"};function BH(e){if(!e)return e;const t=e.replace(/^#/,"");if(t.length!==6)return e;const n=parseInt(t.substring(0,2),16)/255,i=parseInt(t.substring(2,4),16)/255,o=parseInt(t.substring(4,6),16)/255,a=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),s=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),l=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),c=.2126*a+.7152*s+.0722*l,d=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)];return"#"+(c<.2?d.map(f=>Math.min(255,Math.floor(f+(255-f)*.1))):d.map(f=>Math.max(0,Math.floor(f*.88)))).map(f=>f.toString(16).padStart(2,"0")).join("")}function VH(e,t,n){var l,c,d,u;const i=(u=(d=(c=(l=window.wp)==null?void 0:l.customize)==null?void 0:c.previewer)==null?void 0:d.targetWindow)==null?void 0:u.call(d);if(!i)return;const o=i.document;let a=o.getElementById("brandy-button-preview");a||(a=o.createElement("style"),a.id="brandy-button-preview",o.head.appendChild(a));let s="";if(t.hoverStyle==="tinted"){const f=ya(t.mainColor||"").replace(/^#/,"").substring(0,6),h=f.length===6?`#${f}1a`:"";s=h?`background-color: ${h} !important;`:""}else s=`
      background-color: ${t.hoverBg} !important;
      color: ${t.hoverText} !important;
      border-color: ${t.hoverBg} !important;
    `;a.textContent=`
    .wp-block-button:not(.is-style-outline, .is-style-secondary) .wp-element-button:not(.has-background),
    .wp-block-button:not(.is-style-outline, .is-style-secondary) .wp-block-button__link:not(.has-background) {
      ${e.buttonBg?`background-color: ${e.buttonBg} !important;`:""}
      ${e.buttonText?`color: ${e.buttonText} !important;`:""}
    }
    .wp-block-button:not(.is-style-outline, .is-style-secondary, [style*='--hover-background-color']) .wp-element-button:hover,
    .wp-block-button:not(.is-style-outline, .is-style-secondary, [style*='--hover-background-color']) .wp-block-button__link:hover {
      ${e.hoverBg?`background-color: ${e.hoverBg} !important;`:""}
      ${e.hoverText?`color: ${e.hoverText} !important;`:""}
    }
    .wp-block-button.is-style-outline .wp-element-button,
    .wp-block-button.is-style-outline .wp-block-button__link {
      ${t.mainColor?`border-color: ${t.mainColor} !important; color: ${t.mainColor} !important; background-color: ffffff00;`:""}
    }
    .wp-block-button.is-style-outline .wp-element-button:hover,
    .wp-block-button.is-style-outline .wp-block-button__link:hover {
      ${s}
    }
    .wp-block-button.is-style-secondary .wp-element-button,
    .wp-block-button.is-style-secondary .wp-block-button__link {
      ${n.bg?`background-color: ${n.bg} !important;`:""}
      ${n.text?`color: ${n.text} !important;`:""}
    }
    .wp-block-button.is-style-secondary .wp-element-button:hover,
    .wp-block-button.is-style-secondary .wp-block-button__link:hover {
      ${n.hoverBg?`background-color: ${n.hoverBg} !important;`:""}
    }
  `}function zH(){var C;const[e,t]=j1(OH),[n,i]=j1(NH),[o,a]=j1(PH),s=Hf(!1),l=Hf(!1),c=(j,M,T)=>{window.wp.customize("button_settings")({...j,outline:M,secondary:T}),VH(j,M,T)},d=()=>{s.current=!1,t(Mf),c(Mf,n,o)},u=()=>{i(Tf),c(e,Tf,o)},f=()=>{l.current=!1,a(If),c(e,n,If)},h=j=>M=>{const T={...e,[j]:M};if(j==="hoverBg"&&(s.current=!0),j==="buttonBg"){const _=ya(M);T.hoverBg=BH(_)}t(T),c(T,n,o)},m=j=>M=>{const T={...n,[j]:M};if(j==="mainColor"&&T.hoverStyle==="solid"){const _=ya(M);T.hoverBg=_,T.hoverText="#ffffff"}i(T),c(e,T,o)},p=j=>{const M={...n,hoverStyle:j};if(j==="solid"){const T=ya(n.mainColor);M.hoverBg=T,M.hoverText="#ffffff"}i(M),c(e,M,o)},v=j=>M=>{const T={...o,[j]:M};if(j==="hoverBg"&&(l.current=!0),j==="bg"&&!l.current){const b=ya(M).replace(/^#/,"");b.length===6&&(T.hoverBg=`#${b}cc`)}a(T),c(e,n,T)},E=`${((C=window.ajaxurl)==null?void 0:C.replace("/admin-ajax.php","/"))??"/wp-admin/"}site-editor.php?path=%2Fwp_global_styles`;return r.jsxs(FH,{children:[r.jsxs(ZH,{children:[r.jsxs(WH,{children:[r.jsx(GH,{children:P("Fill Button")}),r.jsx(UH,{type:"button",onClick:d,children:P("Reset")})]}),r.jsxs(YH,{children:[r.jsx("label",{children:P("Background color")}),r.jsxs(XH,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.buttonBg,onChange:h("buttonBg")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.hoverBg,onChange:h("hoverBg")})})]})]}),r.jsxs(JH,{children:[r.jsx("label",{children:P("Text color")}),r.jsxs(KH,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.buttonText,onChange:h("buttonText")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.hoverText,onChange:h("hoverText")})})]})]})]}),r.jsxs(qH,{children:[r.jsxs(QH,{children:[r.jsx(eM,{children:P("Outline Button")}),r.jsx(tM,{type:"button",onClick:u,children:P("Reset")})]}),r.jsxs(nM,{children:[r.jsx("label",{children:P("Main color")}),r.jsx(Ct,{color:n.mainColor,onChange:m("mainColor")})]}),r.jsxs(rM,{children:[r.jsx("label",{children:P("Hover style")}),r.jsxs(iM,{children:[r.jsxs(oM,{children:[r.jsx("input",{type:"radio",name:"outline-hover-style",checked:n.hoverStyle==="solid",onChange:()=>p("solid")}),P("Solid fill")]}),r.jsxs(aM,{children:[r.jsx("input",{type:"radio",name:"outline-hover-style",checked:n.hoverStyle==="tinted",onChange:()=>p("tinted")}),P("Tinted")]})]})]}),n.hoverStyle==="solid"&&r.jsxs(sM,{children:[r.jsx("label",{children:P("Hover color")}),r.jsxs(lM,{children:[r.jsx(St,{title:P("Background"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:n.hoverBg,onChange:m("hoverBg")})}),r.jsx(St,{title:P("Text"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:n.hoverText,onChange:m("hoverText")})})]})]})]}),r.jsxs(cM,{children:[r.jsxs(dM,{children:[r.jsx(uM,{children:P("Secondary Button")}),r.jsx(fM,{type:"button",onClick:f,children:P("Reset")})]}),r.jsxs(hM,{children:[r.jsx("label",{children:P("Background color")}),r.jsxs(pM,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:o.bg,onChange:v("bg")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:o.hoverBg,onChange:v("hoverBg")})})]})]}),r.jsxs(gM,{children:[r.jsx("label",{children:P("Text color")}),r.jsx(Ct,{color:o.text,onChange:v("text")})]})]}),r.jsx(mM,{children:r.jsxs(vM,{href:E,target:"_blank",rel:"noopener noreferrer",children:[P("Advanced settings in Site Editor")," ↗"]})})]})}var FH=w("div")({display:"flex",flexDirection:"column"}),ZH=w("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),WH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),GH=w("label")({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),UH=w("button")({cursor:"pointer",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(37 99 235 / var(--tw-text-opacity, 1))"}}),YH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),XH=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),JH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),KH=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),qH=w("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),QH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),eM=w("label")({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),tM=w("button")({cursor:"pointer",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(37 99 235 / var(--tw-text-opacity, 1))"}}),nM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),rM=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),iM=w("div")({display:"flex",gap:"1rem"}),oM=w("label")({display:"flex",cursor:"pointer",alignItems:"center",gap:"0.375rem",fontSize:"0.875rem",lineHeight:"1.25rem"}),aM=w("label")({display:"flex",cursor:"pointer",alignItems:"center",gap:"0.375rem",fontSize:"0.875rem",lineHeight:"1.25rem"}),sM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),lM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),cM=w("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),dM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),uM=w("label")({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),fM=w("button")({cursor:"pointer",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(37 99 235 / var(--tw-text-opacity, 1))"}}),hM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),pM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),gM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),mM=w("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingBottom:"0.75rem"}),vM=w("a").withConfig({displayName:"ButtonSettings___StyledA",componentId:"sc-a0rhg7-0"})({display:"inline-flex",alignItems:"center",gap:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(37 99 235 / var(--tw-text-opacity, 1))"}});const wM=window.React.useState,on=window.brandyCustomizerData.general.default_settings.input_settings;function xM(){var c,d,u,f,h,m,p,v,x,E,C,j,M,T,_,b,$,B;const[e,t]=wM(window.wp.customize("input_settings")()??on),n=y=>I=>{const L=JSON.parse(JSON.stringify(e));Ut(L,["text_color",y],I),t(L),window.wp.customize("input_settings")(L);const F=Le("body");window.jQuery(F).css(`--input-text-color-${y}`,I)},i=y=>I=>{const L=JSON.parse(JSON.stringify(e));Ut(L,["background_color",y],I),t(L),window.wp.customize("input_settings")(L);const F=Le("body");window.jQuery(F).css(`--input-background-color-${y}`,I)},o=y=>I=>{const L=JSON.parse(JSON.stringify(e));Ut(L,["border","color",y],I),t(L),window.wp.customize("input_settings")(L);const F=Le("body");window.jQuery(F).css(`--input-border-color-${y}`,I)},a=y=>{W0(()=>{const I=JSON.parse(JSON.stringify(e));Ut(I,["border","width"],y),t(I),window.wp.customize("input_settings")(I);const L=Le("body");window.jQuery(L).css("--input-border-width",Ni(y))})},s=y=>{W0(()=>{const I=JSON.parse(JSON.stringify(e));Ut(I,["border","radius"],y),t(I),window.wp.customize("input_settings")(I);const L=Le("body");window.jQuery(L).css("--input-border-radius",Ni(y))})},l=y=>{const I=JSON.parse(JSON.stringify(e));Ut(I,["padding"],y),t(I),window.wp.customize("input_settings")(I);const L=Le("body");window.jQuery(L).css("--input-padding",Q2(y))};return r.jsxs(bM,{children:[r.jsxs(yM,{children:[r.jsx("label",{children:P("Text color")}),r.jsxs(CM,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((c=e==null?void 0:e.text_color)==null?void 0:c.normal)??((d=on.text_color)==null?void 0:d.normal),onChange:n("normal")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((u=e==null?void 0:e.text_color)==null?void 0:u.hover)??((f=on.text_color)==null?void 0:f.hover),onChange:n("hover")})})]})]}),r.jsxs(_M,{children:[r.jsx("label",{children:P("Background color")}),r.jsxs(SM,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((h=e==null?void 0:e.background_color)==null?void 0:h.normal)??((m=on==null?void 0:on.background_color)==null?void 0:m.normal),onChange:i("normal")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((p=e==null?void 0:e.background_color)==null?void 0:p.hover)??((v=on.background_color)==null?void 0:v.hover),onChange:i("hover")})})]})]}),r.jsxs(jM,{children:[r.jsx("label",{children:P("Border color")}),r.jsxs(kM,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((E=(x=e==null?void 0:e.border)==null?void 0:x.color)==null?void 0:E.normal)??((j=(C=on==null?void 0:on.border)==null?void 0:C.color)==null?void 0:j.normal),onChange:o("normal")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((T=(M=e==null?void 0:e.border)==null?void 0:M.color)==null?void 0:T.hover)??((b=(_=on.border)==null?void 0:_.color)==null?void 0:b.hover),onChange:o("hover")})})]})]}),r.jsx(In,{title:P("Border width"),value:(($=e==null?void 0:e.border)==null?void 0:$.width)??on.border.width,onChange:a}),r.jsx(In,{title:P("Border radius"),value:((B=e==null?void 0:e.border)==null?void 0:B.radius)??on.border.radius,onChange:s}),r.jsx(Qp,{title:P("Padding"),units:["px"],value:(e==null?void 0:e.padding)??on.padding,onChange:l})]})}var bM=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),yM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),CM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),_M=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),SM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),jM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),kM=w("div").withConfig({displayName:"InputSettings___StyledDiv7",componentId:"sc-1ocb9dp-0"})({display:"flex",alignItems:"center",gap:"1rem"});const EM=window.React.useContext,Lf=window.React.useMemo;function DM(){const{sectionId:e}=EM(Jt),t=Lf(()=>{switch(e){case"button_settings":return zH;case"input_settings":return xM;default:return null}},[e]),n=Lf(()=>window.brandyCustomizerData.general.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Or,{title:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"font-[300] text-[13px] text-brandy-text-secondary",children:[P("Customizing")," ▸ ",P("General")]}),r.jsx("div",{className:"text-[20px] text-brandy-text font-[300]",children:(n==null?void 0:n.title)??"Not found"})]}),hasBottomPart:!1,onGoBack:un}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const $M=window.React.createContext,Af=window.React.useMemo,ec=w.div.withConfig({displayName:"BrandySection__StyledSectionWrapper",componentId:"sc-ywrqgm-0"})({height:"100%"}),Jt=$M({});function HM(e){const{sectionId:t,builder:n,clonedFromId:i}=e,o=Af(()=>({sectionId:t,builder:n}),[t,n]),a=Af(()=>t==="new_header"&&n==="header"?r.jsx(x$,{}):t==="new_footer"&&n==="footer"?r.jsx(F$,{}):t==="settings"&&n==="header"?r.jsx(m$,{}):t==="settings"&&n==="footer"?r.jsx(B$,{}):t.endsWith("_header")&&n==="header"||t.endsWith("_footer")&&n==="footer"?r.jsx(D$,{}):t==="toggle_off_canvas"?r.jsx(jf,{}):t==="toggle"?r.jsx(jf,{}):n==="woocommerce-settings"?r.jsx(LH,{}):n==="general-settings"?r.jsx(DM,{}):r.jsx(QC,{elementId:t,clonedFromId:i}),[t,n]);return r.jsx(Jt.Provider,{value:o,children:a})}const Ot=[],MM=()=>{for(let e=Ot.length-1;e>=0;e--)if(!Ot[e].dom.isConnected){try{Ot[e].root.unmount()}catch{}Ot.splice(e,1)}},TM=(e,t)=>{if(t.endsWith("_header")&&e==="header"||t.endsWith("_footer")&&e==="footer"){LM(e,t);return}if(t==="toggle_off_canvas"){IM();return}AM(e,t)},IM=()=>{Ae.setState(e=>{e.chosenRow="toggle",e.chosenElement=null})},LM=(e,t)=>{let n=Ae;e==="footer"&&(n=Ie),["top","middle","bottom"].forEach(o=>{t.includes(o)&&n.setState(a=>{a.chosenRow=o,a.chosenElement=null})})},AM=(e,t)=>{let n=Ae;e==="footer"&&(n=Ie),n.setState(i=>{const o=i.previewTemplate.elements[t];o!=null&&(i.chosenElement=o,i.chosenRow=null)})},Bg=300,Jn=(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=document.querySelector("#brandy-section");if(a==null){console.warn("[brandy] openSection aborted: #brandy-section not found",{builder:e,sectionId:t});return}const s=window.wp.customize.panel(e);if(s==null){console.warn("[brandy] openSection aborted: builder panel not registered",{builder:e,sectionId:t});return}if(s.expanded()||s.expanded(!0),MM(),Ot==null?void 0:Ot.find(d=>d.dom.dataset.sectionId===t&&d.dom.dataset.builder===e))return;if(Ot.length>0&&Ot.forEach(d=>{let u=d.dom.cloneNode(!0);d.dom.replaceWith(u),d.root.unmount(),setTimeout(()=>{window.jQuery(u).remove(),Ot.shift()},Bg)}),i!=null){const d=Rf(e,i);a==null||a.appendChild(d)}const c=Rf(e,t);a==null||a.appendChild(c)};function Rf(e,t){const n=document.createElement("div");n.className="customize-pane-child",n.dataset.sectionId=t,n.dataset.builder=e,TM(e,t);const i=Li.createRoot(n);return Ot.push({root:i,dom:n}),i.render(r.jsx(HM,{builder:e,sectionId:t})),setTimeout(()=>{n.classList.add("current-panel")},100),n}const un=()=>{Ot.length>0&&Ot.forEach((e,t)=>{Ot.length>1&&t!=Ot.length-1||(e.dom.classList.add("section-close"),setTimeout(()=>{e.root.unmount(),e.dom.remove(),Ot.pop()},Bg))})},Le=e=>{const t=$4();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 Vg=Symbol.for("immer-nothing"),Of=Symbol.for("immer-draftable"),xn=Symbol.for("immer-state");function Un(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ya=Object.getPrototypeOf;function zo(e){return!!e&&!!e[xn]}function Bi(e){var t;return e?zg(e)||Array.isArray(e)||!!e[Of]||!!((t=e.constructor)!=null&&t[Of])||as(e)||nc(e):!1}var RM=Object.prototype.constructor.toString(),Nf=new WeakMap;function zg(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let i=Nf.get(n);return i===void 0&&(i=Function.toString.call(n),Nf.set(n,i)),i===RM}function hl(e,t,n=!0){tc(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function tc(e){const t=e[xn];return t?t.type_:Array.isArray(e)?1:as(e)?2:nc(e)?3:0}function sd(e,t){return tc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fg(e,t,n){const i=tc(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function OM(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function as(e){return e instanceof Map}function nc(e){return e instanceof Set}function ki(e){return e.copy_||e.base_}function ld(e,t){if(as(e))return new Map(e);if(nc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=zg(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[xn];let o=Reflect.ownKeys(i);for(let a=0;a<o.length;a++){const s=o[a],l=i[s];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(i[s]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[s]})}return Object.create(Ya(e),i)}else{const i=Ya(e);if(i!==null&&n)return{...e};const o=Object.create(i);return Object.assign(o,e)}}function a0(e,t=!1){return rc(e)||zo(e)||!Bi(e)||(tc(e)>1&&Object.defineProperties(e,{set:Rs,add:Rs,clear:Rs,delete:Rs}),Object.freeze(e),t&&Object.values(e).forEach(n=>a0(n,!0))),e}function NM(){Un(2)}var Rs={value:NM};function rc(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var PM={};function Vi(e){const t=PM[e];return t||Un(0,e),t}var Xa;function Zg(){return Xa}function BM(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Pf(e,t){t&&(Vi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cd(e){dd(e),e.drafts_.forEach(VM),e.drafts_=null}function dd(e){e===Xa&&(Xa=e.parent_)}function Bf(e){return Xa=BM(Xa,e)}function VM(e){const t=e[xn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xn].modified_&&(cd(t),Un(4)),Bi(e)&&(e=pl(t,e),t.parent_||gl(t,e)),t.patches_&&Vi("Patches").generateReplacementPatches_(n[xn].base_,e,t.patches_,t.inversePatches_)):e=pl(t,n,[]),cd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Vg?e:void 0}function pl(e,t,n){if(rc(t))return t;const i=e.immer_.shouldUseStrictIteration(),o=t[xn];if(!o)return hl(t,(a,s)=>zf(e,o,t,a,s,n),i),t;if(o.scope_!==e)return t;if(!o.modified_)return gl(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const a=o.copy_;let s=a,l=!1;o.type_===3&&(s=new Set(a),a.clear(),l=!0),hl(s,(c,d)=>zf(e,o,a,c,d,n,l),i),gl(e,a,!1),n&&e.patches_&&Vi("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function zf(e,t,n,i,o,a,s){if(o==null||typeof o!="object"&&!s)return;const l=rc(o);if(!(l&&!s)){if(zo(o)){const c=a&&t&&t.type_!==3&&!sd(t.assigned_,i)?a.concat(i):void 0,d=pl(e,o,c);if(Fg(n,i,d),zo(d))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Bi(o)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[i]===o&&l)return;pl(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(as(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&gl(e,o)}}}function gl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&a0(t,n)}function zM(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Zg(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=s0;n&&(o=[i],a=Ja);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var s0={get(e,t){if(t===xn)return e;const n=ki(e);if(!sd(n,t))return FM(e,n,t);const i=n[t];return e.finalized_||!Bi(i)?i:i===k1(e.base_,t)?(E1(e),e.copy_[t]=fd(i,e)):i},has(e,t){return t in ki(e)},ownKeys(e){return Reflect.ownKeys(ki(e))},set(e,t,n){const i=Wg(ki(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=k1(ki(e),t),a=o==null?void 0:o[xn];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(OM(n,o)&&(n!==void 0||sd(e.base_,t)))return!0;E1(e),ud(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 k1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,E1(e),ud(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ki(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){Un(11)},getPrototypeOf(e){return Ya(e.base_)},setPrototypeOf(){Un(12)}},Ja={};hl(s0,(e,t)=>{Ja[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ja.deleteProperty=function(e,t){return Ja.set.call(this,e,t,void 0)};Ja.set=function(e,t,n){return s0.set.call(this,e[0],t,n,e[0])};function k1(e,t){const n=e[xn];return(n?ki(n):e)[t]}function FM(e,t,n){var o;const i=Wg(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function Wg(e,t){if(!(t in e))return;let n=Ya(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Ya(n)}}function ud(e){e.modified_||(e.modified_=!0,e.parent_&&ud(e.parent_))}function E1(e){e.copy_||(e.copy_=ld(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ZM=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...d){return s.produce(c,u=>n.call(this,u,...d))}}typeof n!="function"&&Un(6),i!==void 0&&typeof i!="function"&&Un(7);let o;if(Bi(t)){const a=Bf(this),s=fd(t,void 0);let l=!0;try{o=n(s),l=!1}finally{l?cd(a):dd(a)}return Pf(a,i),Vf(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Vg&&(o=void 0),this.autoFreeze_&&a0(o,!0),i){const a=[],s=[];Vi("Patches").generateReplacementPatches_(t,o,a,s),i(a,s)}return o}else Un(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let i,o;return[this.produce(t,n,(s,l)=>{i=s,o=l}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Bi(e)||Un(8),zo(e)&&(e=WM(e));const t=Bf(this),n=fd(e,void 0);return n[xn].isManual_=!0,dd(t),n}finishDraft(e,t){const n=e&&e[xn];(!n||!n.isManual_)&&Un(9);const{scope_:i}=n;return Pf(i,t),Vf(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=Vi("Patches").applyPatches_;return zo(e)?i(e,t):this.produce(e,o=>i(o,t))}};function fd(e,t){const n=as(e)?Vi("MapSet").proxyMap_(e,t):nc(e)?Vi("MapSet").proxySet_(e,t):zM(e,t);return(t?t.scope_:Zg()).drafts_.push(n),n}function WM(e){return zo(e)||Un(10,e),Gg(e)}function Gg(e){if(!Bi(e)||rc(e))return e;const t=e[xn];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ld(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=ld(e,!0);return hl(n,(o,a)=>{Fg(n,o,Gg(a))},i),t&&(t.finalized_=!1),n}var hd=new ZM,GM=hd.produce,Ug=hd.setAutoFreeze.bind(hd);const UM=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 f=s(i.getState());d=h=>{const m=s(h);if(!u(f,m)){const p=f;l(f=m,p)}},c!=null&&c.fireImmediately&&l(f,f)}return o(d)},e(t,n,i)},Yg=UM,YM=e=>(t,n,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?GM(o):o;return t(l,a,...s)},e(i.setState,n,i)),Xg=YM;function ei(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}Ug(!1);let Ie;const Ur="footer";Fo.panel(Ur,function(){const e=()=>Ne().getTemplates(Ur),t=()=>{const o=e(),a=Ne().getPreviewTemplate(Ur).id;return o.find(s=>s.id===a)??o[0]},n=()=>{const o=e(),a=Ne().getCurrentTemplate(Ur).id;return(o.find(s=>s.id===a)??o[0]).id},i=()=>{Ne().refreshPartial(`${Ur}_placements`)};Ie=vl(Yg(Xg((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 f;(f=u.chosenElement)!=null&&f.settings&&(u.chosenElement.settings=c.elements[s].settings)}),Ne().refreshPartial(`${Ur}_${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}),Ne().updateCurrentTemplateId("footer",c)},changeElementItemTitle:(s,l)=>{o(c=>{c.previewTemplate.elements[s]!=null&&(c.previewTemplate.elements[s].title=l)})},addElement:s=>{O2({...s,template:a().previewTemplate}).then(l=>{o(c=>{c.previewTemplate.placements[Qe(s.device)]=l}),i()})},setElements:({row:s,col:l,changedList:c,device:d})=>{const u=a().previewTemplate,f=JSON.parse(JSON.stringify(u.placements[Qe(d)]));s==="toggle"&&(f.toggle=c),s!=="toggle"&&l!=null&&(f[s][l]=c),o(h=>{h.previewTemplate.placements[Qe(d)]=f}),Zd(f,u.placements[Qe(d)])||i()},removeElement:s=>{var l;N2({...s,template:a().previewTemplate}).then(c=>{o(d=>{var u;d.previewTemplate.placements[Qe(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)&&un()},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:ei}),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:ei}),Ie.subscribe(o=>o.previewTemplate.id,(o,a)=>{o!==a&&Ne().updatePreviewTemplateId(Ur,o??"default")}),Ie.subscribe(o=>o.templates,(o,a)=>{JSON.stringify(o)!==JSON.stringify(a)&&Ne().updateTemplates(Ur,o)},{equalityFn:ei}),an.registerStore("footer",Ie),an.captureInitial("footer",Ie.getState),Ie.subscribe(o=>o.previewTemplate,()=>{an.capture("footer",Ie.getState)},{equalityFn:ei})});const wo=e=>{var n;if(!Ae||!Ie){let i;return e==="header"?i=JSON.parse(JSON.stringify(window.brandyHeaderSettings)):i=JSON.parse(JSON.stringify(window.brandyFooterSettings)),i??null}let t;return e==="header"?t=Ae.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}},D1=(e,t)=>{window.wp.customize(`${e}_settings`)!=null&&window.wp.customize(`${e}_settings`)(new Date().getTime())};class XM{constructor(){}getPreviewTemplate(t){const n=wo(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??n.templates[0]??null}getCurrentTemplate(t){const n=wo(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??n.templates[0]??null}getTemplates(t){const n=wo(t);if(n){const i=n.templates??[];return i.forEach((o,a)=>{Object.entries(window.brandyElements).forEach(([s,l])=>{o.elements[l.id]||l.builders&&l.builders.includes(t)&&(i[a].elements[l.id]=l)})}),i}return[]}updateTemplates(t,n){const i=wo(t);D1(t,JSON.parse(JSON.stringify({...i,templates:n})))}updatePreviewTemplateId(t,n){const i=wo(t);D1(t,JSON.parse(JSON.stringify({...i,preview_template_id:n})))}updateCurrentTemplateId(t,n){const i=wo(t);D1(t,JSON.parse(JSON.stringify({...i,current_template_id:n})))}refreshPartial(t){setTimeout(()=>{var i,o;if(t.includes("header")){const a=Ae.getState();window.wp.customize("unsaved_header_settings")(Vo({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")(Vo({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 Ne=()=>new XM;Ug(!1);let Ae;const kr="header";Fo.panel(kr,function(){const e=Ne().getPreviewTemplate(kr),t=()=>e.toggle_off_canvas,n=()=>Ne().getTemplates(kr),i=()=>{const s=n(),l=Ne().getPreviewTemplate(kr).id;return s.find(c=>c.id===l)??s[0]},o=()=>{const s=n(),l=Ne().getCurrentTemplate(kr).id;return(s.find(c=>c.id===l)??s[0]).id},a=()=>{Ne().refreshPartial(`${kr}_placements`)};Ae=vl(Yg(Xg((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 f;if(((f=l().chosenElement)==null?void 0:f.id)!==c)return;const d=l().previewTemplate.id;if(!d)return;const u=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(h=>h.id===d);u&&(s(h=>{var m;(m=h.chosenElement)!=null&&m.settings&&(h.chosenElement.settings=u.elements[c].settings)}),Ne().refreshPartial(`${kr}_${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(f=>{f.previewTemplate=d.find(h=>h.id===c)??d[0]}),a())},setCurrentTemplateId:c=>{const d=l().templates;if(l().currentTemplateId===c)return;const u=d.find(f=>f.id===c)==null?d[0].id:c;s(f=>{f.currentTemplateId=u}),Ne().updateCurrentTemplateId("header",u)},changeElementItemTitle:(c,d)=>{s(u=>{u.previewTemplate.elements[c]!=null&&(u.previewTemplate.elements[c].title=d)})},addElement:c=>{O2({...c,template:l().previewTemplate}).then(d=>{s(u=>{u.previewTemplate.placements[Qe(c.device)]=d}),a()})},setElements:({row:c,col:d,changedList:u,device:f})=>{const h=l().previewTemplate,m=JSON.parse(JSON.stringify(h.placements[Qe(f)]));c==="toggle"&&(m.toggle=u),c!=="toggle"&&d!=null&&(m[c][d]=u),s(p=>{p.previewTemplate.placements[Qe(f)]=m}),Zd(m,h.placements[Qe(f)])||a()},removeElement:c=>{var d;N2({...c,template:l().previewTemplate}).then(u=>{s(f=>{var h;f.previewTemplate.placements[Qe(c.device)]=u,c.removeId===((h=f.chosenElement)==null?void 0:h.id)&&(f.chosenElement=null)}),a()}),c.removeId===((d=l().chosenElement)==null?void 0:d.id)&&un()},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})}})))),Ae.subscribe(s=>s.chosenElement,(s,l)=>{l==null||s==null||Ae.setState(c=>{c.previewTemplate.elements[s==null?void 0:s.id]=s})},{equalityFn:ei}),Ae.subscribe(s=>s.previewTemplate,s=>{Ae.setState(l=>{const c=l.templates.findIndex(d=>d.id===s.id)||0;l.templates[c]=s})},{equalityFn:ei}),Ae.subscribe(s=>s.previewTemplate.id,(s,l)=>{s!==l&&Ne().updatePreviewTemplateId(kr,s??"default")}),Ae.subscribe(s=>s.templates,(s,l)=>{JSON.stringify(s)!==JSON.stringify(l)&&Ne().updateTemplates(kr,s)},{equalityFn:ei}),an.registerStore("header",Ae),an.captureInitial("header",Ae.getState),Ae.subscribe(s=>s.previewTemplate,()=>{an.capture("header",Ae.getState)},{equalityFn:ei})});function JM({template:e,device:t,builder:n}){const i=Qe(t),o=e.placements[i];o.toggle&&Array.isArray(o.toggle)&&o.toggle.forEach(a=>{const s=e.elements[a];s!=null&&dr({sectionId:s.id,settings:s.settings,device:t,builder:n,clonedFromId:s.cloned_from})})}function KM({template:e,device:t,builder:n}){const i=Qe(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&&dr({sectionId:c.id,settings:c.settings,device:t,builder:n,clonedFromId:c.cloned_from})})})})}function qM({template:e,device:t,builder:n}){Object.keys(e.row_configurations).forEach(i=>{const o=e.row_configurations[i],a=i+"_"+n;dr({sectionId:a,settings:o,device:t,builder:n})})}const Di={updateResponsiveControl(e,t){const i=(e==="header"?Ae:Ie).getState().previewTemplate;JM({template:i,device:t,builder:e}),KM({template:i,device:t,builder:e}),qM({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()}},QM=()=>{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)}},eT=()=>{const e=document.querySelector("#customize-theme-controls");if(e){const t=document.createElement("div");t.id="brandy-section",e.appendChild(t)}},tT=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-header-placements",window.jQuery(t).insertAfter(e)}},nT=()=>{const e=document.getElementById("customize-preview");if(e){const t=document.createElement("brandy-placements");t.id="brandy-footer-placements",window.jQuery(t).insertAfter(e)}},rT=()=>{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)}},iT=()=>{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)}},oT=()=>{QM(),eT(),tT(),nT(),rT(),iT()};function Jg(){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 Kg(){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 aT=window.React.createContext,sT=window.React.useMemo;aT({});function lT(){const e=Ae(u=>u.templates),t=Ae(u=>u.currentTemplateId),n=Ae(u=>u.setCurrentTemplateId),i=Ae(u=>u.previewTemplate),o=Ae(u=>u.choosePreviewTemplate),a=Ae(u=>u.removeTemplate),s=sT(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),Jn("header","new_header")},c=u=>{s===u?Jn("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(dT,{children:[r.jsxs(uT,{children:[r.jsx(fT,{children:P("Global header")}),r.jsx(jt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n}),r.jsx(hT,{href:"https://images.wpbrandy.com/uploads/select-header-instruction.png",target:"_blank",children:P("How to assign a header to a specific page?")})]}),r.jsx(pT,{children:P("Your headers")}),r.jsx(gT,{children:P("Choose to preview and click again to customize")}),r.jsx(mT,{children:e.map(u=>{var f;return r.jsx(cT,{isActive:u.id===s,templateId:u.id,onChoose:h=>{h.preventDefault(),h.stopPropagation(),c(u.id)},onRemove:h=>{h.preventDefault(),h.stopPropagation(),d(u.id)},children:(f=u.settings)==null?void 0:f.name},u.id)})}),r.jsx(vT,{children:r.jsx(Ml,{primary:!0,onClick:l,children:P("Create new header")})})]})}const cT=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>{const s=r.jsx(wT,{children:e});return r.jsxs(xT,{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)"}},me(["&:hover .arrow-icon svg *{","}"],{stroke:"#000 !important"})],children:[(e??"").toString().length>28?r.jsx(St,{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(Kg,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Jg,{})})]})]},a)};var dT=w("div")({display:"flex",flexGrow:"1",flexDirection:"column"}),uT=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem"}),fT=w("p")({marginBottom:"0.25rem",fontWeight:"600"}),hT=w("a")({marginTop:"1rem",display:"inline-block"}),pT=w("div")({"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"16px",fontSize:"14px",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),gT=w("div")({padding:"1rem",paddingBottom:"0px"}),mT=w("div")({display:"grid",gap:"1rem",padding:"1rem"}),vT=w("div")({marginTop:"auto",borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))",padding:"1rem","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),wT=w("span")`
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
      `,xT=w("div").withConfig({displayName:"Headers___StyledDiv7",componentId:"sc-1aiksvl-0"})(["",""],e=>e.$_css2);function bT(){return r.jsx(lT,{})}const yT=window.React.createContext,CT=window.React.useMemo;yT({});function _T(){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=CT(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),Jn("footer","new_footer")},c=u=>{s===u?Jn("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(jT,{children:[r.jsx(kT,{children:P("Global footer")}),r.jsx(jt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n})]}),r.jsx(ET,{children:P("Your footers")}),r.jsx(DT,{children:P("Choose your footer to preview then click again to customize")}),r.jsx("div",{className:"grid gap-4 p-4",children:e.map(u=>{var f;return r.jsx(ST,{isActive:u.id===s,templateId:u.id,onChoose:h=>{h.preventDefault(),h.stopPropagation(),c(u.id)},onRemove:h=>{h.preventDefault(),h.stopPropagation(),d(u.id)},children:(f=u.settings)==null?void 0:f.name},u.id)})}),r.jsx($T,{className:"p-4 mt-auto",$_css2:[{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Ml,{primary:!0,onClick:l,children:P("Create new footer")})})]})}const ST=({children:e,isActive:t,templateId:n="preset_default",onChoose:i,onRemove:o},a)=>r.jsxs(HT,{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)"}},me(["&: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(Kg,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Jg,{})})]})]},a);var jT=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem"}),kT=w("p")({marginBottom:"0.25rem",fontWeight:"600"}),ET=w("div")({"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"16px",fontSize:"14px",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),DT=w("div")({padding:"1rem",paddingBottom:"0px"}),$T=w("div")`${e=>e.$_css2}`,HT=w("div").withConfig({displayName:"Footers___StyledDiv5",componentId:"sc-1jo1m6-0"})(["",""],e=>e.$_css3);function MT(){return r.jsx(_T,{})}var Zh,Wh;const TT=((Wh=(Zh=window.brandyCustomizerData)==null?void 0:Zh.general)==null?void 0:Wh.sections)??[];function IT(){return r.jsx(LT,{className:"brandy-general-panel__content",children:r.jsx("div",{className:"general-settings__navigations",children:TT.map(e=>r.jsxs(AT,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),Jn("general-settings",e.id)},children:[r.jsx(RT,{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(OT,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var LT=w("div")({marginTop:"1rem"}),AT=w("div")({display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"space-between",borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:last-child":{borderBottomWidth:"0px"},"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}}),RT=w("span")({fontWeight:"500"}),OT=w("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1qa3lxj-0"})({".group:hover &":{fill:"#3858e9"}}),Gh,Uh;const NT=((Uh=(Gh=window.brandyCustomizerData)==null?void 0:Gh.woocommerce)==null?void 0:Uh.sections)??[];function PT(){return r.jsx(BT,{className:"brandy-woocommerce-panel__content",children:r.jsx("div",{className:"woocommerce-settings__navigations",children:NT.map(e=>r.jsxs(VT,{className:"group",onClick:t=>{t.preventDefault(),t.stopPropagation(),Jn("woocommerce-settings",e.id)},children:[r.jsx(zT,{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(FT,{d:"M10.6 6L9.40002 7L14 12L9.40002 17L10.6 18L16 12L10.6 6Z",fill:"black"})]})})]},e.id))})})}var BT=w("div")({marginTop:"1rem"}),VT=w("div")({display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"space-between",borderBottomWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:last-child":{borderBottomWidth:"0px"},"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}}),zT=w("span")({fontWeight:"500"}),FT=w("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1n2dri3-0"})({".group:hover &":{fill:"#3858e9"}});const ZT=window.React.useContext;function WT(){const{panelData:e}=ZT(l0);return e.id==="header"?r.jsx(bT,{}):e.id==="footer"?r.jsx(MT,{}):e.id==="woocommerce-settings"?r.jsx(PT,{}):e.id==="general-settings"?r.jsx(IT,{}):"Not found"}const GT=window.React.useContext;function UT(){const{panelData:e,goBack:t}=GT(l0);return r.jsxs(YT,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(XT,{children:[r.jsx(JT,{children:P("Customizing")}),r.jsx(KT,{children:(e==null?void 0:e.title)??"Not found"})]})]})}var YT=w("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px",borderTopWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",borderTopColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),XT=w("div")({width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),JT=w("div")({fontSize:"13px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),KT=w("div").withConfig({displayName:"Header___StyledDiv4",componentId:"sc-1uapsz7-0"})({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"});const qT=window.React.createContext,QT=window.React.useCallback,Ff=window.React.useMemo,l0=qT({});function qg({builder:e,title:t}){const n=QT(()=>{const a=window.wp.customize.panel(e);a&&a.expanded(!1)},[e]),i=Ff(()=>({id:e,title:t||(e==="header"?"Header":"Footer")}),[e,t]),o=Ff(()=>({goBack:n,panelData:i,builder:e}),[n,i,e]);return r.jsx(l0.Provider,{value:o,children:r.jsxs(eI,{className:"brandy-panel-wrapper",children:[r.jsx(UT,{}),r.jsx(WT,{})]})})}var eI=w("div").withConfig({displayName:"BrandyPanel___StyledDiv",componentId:"sc-1y7egfl-0"})({display:"flex",height:"100%",flexDirection:"column"});function Qg({items:e,builder:t,row:n,col:i=0}){const o=oe(t)(p=>p.setElements),{current:a}=De(),s=oe(t)(p=>p.removeElement),l=oe(t)(p=>p.selectElement),c=oe(t)(p=>{var v;return(v=p.chosenElement)==null?void 0:v.id}),d=Ua(p=>p.startDragging),u=Ua(p=>p.stopDragging),f=p=>{o({row:n,col:i,changedList:p.map(v=>v.id),device:a})},h=p=>v=>{v.preventDefault(),v.stopPropagation(),s({row:n,col:i,removeId:p,device:a})},m=p=>v=>{v.preventDefault(),v.stopPropagation(),setTimeout(()=>{l({element:p})},200),Jn(t,p.id,p.cloned_from,"settings")};return r.jsx(Yi.ReactSortable,{list:e,setList:f,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(tI,{className:"builder-item",onClick:m(p),$_css:[{position:"relative",display:"flex",width:"fit-content",alignItems:"center",justifyContent:"space-between","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"12px",paddingRight:"12px",paddingTop:"6px",paddingBottom:"6px",paddingInlineEnd:"3px",fontSize:"14px","--tw-text-opacity":"1",color:"rgb(96 96 96 / var(--tw-text-opacity, 1))"},{borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",outlineStyle:"solid",outlineWidth:"1px",outlineColor:"transparent"},{"&:hover":{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))","--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},{transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},c===p.id&&{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))",outlineColor:"#1E1E1E"}],children:[r.jsx("span",{children:p.title??((v=window.brandyElements[p.id])==null?void 0:v.title)??""}),r.jsx(nI,{onClick:h(p.id),children:r.jsx(Bd,{})})]},p.id)})})}var tI=w("span")`${e=>e.$_css}`,nI=w("button").withConfig({displayName:"ElementSortable___StyledButton",componentId:"sc-14le66y-0"})({position:"relative",display:"inline-flex",height:"24px",width:"24px",alignItems:"center",justifyContent:"flex-end",padding:"8px","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"});const rI=window.React,pd=window.React.useEffect,iI=window.React.useMemo,e3=window.React.useRef,t3=window.React.useState,oI=w.div.withConfig({displayName:"useAddElementPopup__StyledListItem",componentId:"sc-hvpjws-0"})({display:"grid",gridAutoRows:"minmax(0, 1fr)",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"5px"}),aI=w.div.withConfig({displayName:"useAddElementPopup__StyledItem",componentId:"sc-hvpjws-1"})({display:"flex",minHeight:"100px",cursor:"pointer",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"5px",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"8px",paddingRight:"8px",paddingTop:"10px",paddingBottom:"10px",textAlign:"center",fontSize:"12px","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 248 252 / var(--tw-bg-opacity, 1))"}});var sI=w(aI).withConfig({displayName:"useAddElementPopup___StyledStyledItem",componentId:"sc-hvpjws-2"})(["",""],e=>e.$_css5);const lI=()=>r.jsx("div",{className:"text-brandy-text text-center",children:"No element found"}),cI=rI.forwardRef(({builder:e="header",onClose:t,row:n,col:i,lastPush:o=!0},a)=>{const{current:s}=De(),l=oe(e)(x=>x.previewTemplate.placements[Qe(s)]),c=oe(e)(x=>x.addElement),[d,u]=t3(""),f=x=>()=>{c({row:n,col:i,lastPush:o,addId:x,device:s}),t()},h=x=>{typeof x!="number"&&u(x)},{unusedElements:m}=i0(l,e),p=iI(()=>d===""?m:m.filter(x=>{var E;return(x.title??((E=window.brandyElements[x.id])==null?void 0:E.title)??"").toLowerCase().includes(d.toLowerCase())}),[l,d,m]),v=e3(null);return pd(()=>{var x,E;(E=(x=v.current)==null?void 0:x.querySelector("input"))==null||E.focus()},[v]),r.jsx(dI,{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(uI,{style:{filter:"drop-shadow(0px 0px 30px rgba(42, 48, 57, 0.20))"},onClick:x=>{x.stopPropagation(),x.preventDefault()},$_css3:[{"&::before":{content:"var(--tw-content)",position:"absolute",left:"50%",top:"calc(100% - 25px)","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-rotate":"225deg",borderRadius:"5px",borderWidth:"15px",borderStyle:"solid",borderBottomColor:"transparent","--tw-border-opacity":"1",borderLeftColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))",borderRightColor:"transparent",borderTopColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))","--tw-content":"''"}},{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))"},{borderRadius:"5px"},{cursor:"auto"},{width:"66.666667%",minWidth:"360px"}],children:[r.jsxs(fI,{children:[r.jsxs(hI,{children:[r.jsx(pI,{children:P("Add an element")}),r.jsx(gI,{onClick:t,$_css4:[{cursor:"pointer",padding:"7px","& svg":{height:"12px",width:"12px"}},me`
                    svg * {
                      ${{fill:"#A1ABB7"}}
                    }
                  `],children:r.jsx(Bd,{})})]}),r.jsx(mI,{searchText:d,onSearch:h,ref:v,placeholder:P("Search element")})]}),r.jsx(Rr,{className:"h-[300px]",autoHide:!0,children:r.jsx("div",{className:"p-4",children:p.length<=0?r.jsx(lI,{}):r.jsx(oI,{children:p.map(x=>{var C,j;const E=x.icon??((C=window.brandyElements[x.id])==null?void 0:C.icon)??"";return r.jsxs(sI,{onClick:f(x.id),$_css5:[me`
                            &:hover svg {
                              *[fill] {
                                ${{fill:"#3858e9"}}
                              }
                              *[stroke] {
                                ${{stroke:"#3858e9"}}
                              }
                            }
                          `],children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:E}}),x.title??((j=window.brandyElements[x.id])==null?void 0:j.title)]},x.id)})})})})]})})});function n3({activatorNode:e=null,builder:t="header",col:n=1,row:i="top",lastPush:o=!0}){const a=e3(null),[s,l]=t3(!1);pd(()=>{s?window.jQuery("brandy-placements").css("zIndex",10):window.jQuery("brandy-placements").css("zIndex",9)},[s]);const c=()=>{var h;const f=document.querySelector("#customize-preview > iframe");window.jQuery((h=f==null?void 0:f.contentWindow)==null?void 0:h.document).off("click",c),l(!1)},d=()=>{var h;const f=document.querySelector("#customize-preview > iframe");window.jQuery((h=f==null?void 0:f.contentWindow)==null?void 0:h.document).on("click",c),l(!0)};return pd(()=>{const f=h=>{e==null&&a.current==null&&c();const m=e??a.current;m!=null&&m.contains(h.target)||c()};return window.jQuery(document).on("click","body",f),()=>{window.jQuery(document).off("click","body",f)}},[e]),{contextHolder:s?r.jsx(cI,{ref:a,builder:t,row:i,col:n,onClose:()=>{c()},lastPush:o}):!1,popupApi:{open:d,close:c}}}var dI=w("div").withConfig({displayName:"useAddElementPopup___StyledDiv",componentId:"sc-hvpjws-3"})(["",""],e=>e.$_css2),uI=w("div").withConfig({displayName:"useAddElementPopup___StyledDiv2",componentId:"sc-hvpjws-4"})(["",""],e=>e.$_css3),fI=w("div").withConfig({displayName:"useAddElementPopup___StyledDiv3",componentId:"sc-hvpjws-5"})({borderBottomWidth:"1px",borderColor:"#dddddd4d",padding:"1rem"}),hI=w("div").withConfig({displayName:"useAddElementPopup___StyledDiv4",componentId:"sc-hvpjws-6"})({marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),pI=w("h4").withConfig({displayName:"useAddElementPopup___StyledH",componentId:"sc-hvpjws-7"})({fontSize:"16px",fontWeight:"500"}),gI=w("div").withConfig({displayName:"useAddElementPopup___StyledDiv5",componentId:"sc-hvpjws-8"})(["",""],e=>e.$_css4),mI=w(Xi).withConfig({displayName:"useAddElementPopup___StyledSearchBox",componentId:"sc-hvpjws-9"})({height:"44px !important",gap:"3px !important","& input":{"--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"},"& svg *":{fill:"#757575"}});const vI=window.React.useContext,wI=window.React.useMemo,xI=window.React.useRef,bI=window.React.useState,yI=me([".add-icon{transition:all ease-in-out 0.2s;}&:hover{.add-icon{visibility:visible;opacity:1;}}"]);function CI({row:e,colPosition:t,elements:n,position:i},o){const[a,s]=bI(!1),l=Ua(m=>m.isDragging),c=xI(null),{builder:d}=vI(c0),u=wI(()=>!l&&a,[l,a]),{popupApi:f,contextHolder:h}=n3({activatorNode:c.current,builder:d,row:e,col:t,lastPush:i==="left"||i==="middle"});return r.jsxs(_I,{onClick:()=>{f.open()},ref:c,className:Re(["builder-col",`${i}-col`,l&&"is-on-dragging",u&&"show-add-btn"]),"data-is-empty":n.length<1,"data-builder":d,onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},$_css2:[{position:"relative",display:"flex",flex:"1 1 0%",alignItems:"center",justifyContent:"center",padding:"0.5rem"},...window.brandyCustomizerData.rtl?[{borderRightWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))","&:first-child":{borderRightWidth:"0px"}},{"&:last-child":{borderEndEndRadius:"5px",borderStartEndRadius:"5px",borderLeftWidth:"1px"}}]:[{borderLeftWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))","&:first-child":{borderLeftWidth:"0px"}},{"&:last-child":{borderEndEndRadius:"5px",borderStartEndRadius:"5px",borderRightWidth:"1px"}}],{borderBottomWidth:"1px",borderTopWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))"},yI],children:[r.jsx(Qg,{builder:d,items:n,row:e,col:t}),h]},o)}var _I=w("div").withConfig({displayName:"PlacementCol___StyledDiv",componentId:"sc-1qvtqv7-0"})(["",""],e=>e.$_css2);const SI=window.React.useContext,jI=window.React.useMemo,r3=me`
  ${{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"}}
`,kI=w.div.withConfig({displayName:"RowPlacement__StyledRowWrapper",componentId:"sc-1g1fjfw-0"})(()=>[{display:"flex",minHeight:"50px",cursor:"pointer",borderRadius:"0.375rem"},r3,{"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 249 249 / var(--tw-bg-opacity, 1))"}},{"&:hover":{borderColor:"transparent"}},{"&:hover":{"--tw-shadow":"0px 4px 10px 0px rgba(177, 177, 177, 0.15)","--tw-shadow-colored":"0px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}]);var EI=w(kI).withConfig({displayName:"RowPlacement___StyledStyledRowWrapper",componentId:"sc-1g1fjfw-1"})(["position:relative;",""],e=>e.$_css2);function $1({row:e}){const{builder:t}=SI(c0),n=oe(t)(c=>c.chosenRow),i=()=>{Jn(t,`${e}_${t}`,null,"settings")},{current:o}=De(),a=oe(t)(c=>c.previewTemplate.placements[Qe(o)][e].reduce((d,u)=>(d.push(u.filter(f=>c.previewTemplate.elements[f]!=null).map(f=>c.previewTemplate.elements[f])),d),[])),s=jI(()=>n==null?void 0:n.includes(e),[n,e]),l=oe(t)(c=>c.previewTemplate.row_configurations[e].enabled_devices.includes(Qe(o)));return r.jsxs(EI,{className:"group builder-row",$_css2:l?"":`
        &::before {
          content: "Not visible on this device";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          color: #fff;
          font-size: 10px;
          font-weight: 500;
          text-transform: uppercase;
          letter-spacing: 0.05em;
          padding: 5px 10px;
          background-color: #cecece;
          border-radius: 5px;
          transition: none;
          z-index: 99;
        }
        `,children:[r.jsx(DI,{onClick:i,$_css3:[{borderEndStartRadius:"5px",borderStartStartRadius:"5px",borderWidth:"1px",borderStyle:"dashed","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))",padding:"10px"},s&&{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1))","& svg *":{fill:"#fff"}},{".group:hover &":{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1))"},"& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},".group:hover & svg *":{fill:"#fff"}},r3],children:r.jsx(Hp,{})}),r.jsx("div",{className:"w-full flex",children:a.map((c,d)=>{const u=Math.round(a.length/2);let f="left";return d+1===u&&a.length%2!=0&&(f="middle"),d+1>u&&(f="right"),r.jsx(CI,{row:e,colPosition:d,position:f,elements:c},d)})})]})}var DI=w("button").withConfig({displayName:"RowPlacement___StyledButton",componentId:"sc-1g1fjfw-2"})(["",""],e=>e.$_css3);const $I=window.React.useMemo,HI=window.React.useRef,MI=window.React.useState;function TI(){const{current:e}=De(),t=oe("header")(f=>f.previewTemplate.placements[Qe(e)].toggle.map(h=>f.previewTemplate.elements[h])),n=oe("header")(f=>f.chosenRow),i=HI(null),{contextHolder:o,popupApi:a}=n3({activatorNode:i.current,row:"toggle",builder:"header",col:1}),[s,l]=MI(!1),{isDragging:c}=Ua(),d=$I(()=>!c&&s,[c,s]),u=()=>{Jn("header","toggle_off_canvas",null,"settings")};return r.jsxs(II,{className:"group",children:[r.jsxs(LI,{className:"toggle-header",onClick:u,$_css2:[{display:"flex",alignItems:"center",gap:"0.5rem",borderStartEndRadius:"5px",borderStartStartRadius:"5px",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(161 171 183 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"10px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{"--tw-border-opacity":"1",borderColor:"rgb(56 88 233 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"},".group:hover & svg *":{fill:"#fff"}},n==="toggle"&&me([""," svg{*[fill]{fill:white;}*[stroke]{stroke:white;}}"],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(56 88 233 / var(--tw-bg-opacity, 1)) !important","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}),me(["svg{*{transition:all ease-in-out 0.2s;}}"])],children:[r.jsx("span",{children:r.jsx(Hp,{})}),r.jsx(AI,{children:"Toggle off-canvas"})]}),r.jsx(Rr,{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(RI,{className:Re(["toggle-off-elements",d?"show-add-btn":""]),ref:i,children:r.jsx(Qg,{builder:"header",items:t||[],row:"toggle"})})}),o]})}var II=w("div")({position:"relative",display:"flex",height:"100%",cursor:"pointer",flexDirection:"column"}),LI=w("div")`${e=>e.$_css2}`,AI=w("span")({fontSize:"12px",fontWeight:"600"}),RI=w("div").withConfig({displayName:"Toggle___StyledDiv3",componentId:"sc-15k3s0k-0"})({position:"relative",height:"100%",minHeight:"100px",padding:"10px"});const OI=window.React.createContext,NI=window.React.useMemo,c0=OI({});function PI({builder:e}){const{current:t}=De(),n=oe(e)(o=>{const s=o.previewTemplate.placements[Qe(t)];return!!P2(s).includes("toggle_button")}),i=NI(()=>({builder:e}),[e]);return r.jsx(BI,{$_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(c0.Provider,{value:i,children:[n&&r.jsx(VI,{children:r.jsx(TI,{})}),r.jsxs(zI,{children:[r.jsx($1,{row:"top"}),r.jsx($1,{row:"middle"}),r.jsx($1,{row:"bottom"})]})]})})}var BI=w("div")`${e=>e.$_css}`,VI=w("div")({height:"100%",width:"170px"}),zI=w("div").withConfig({displayName:"PlacementsBuilder___StyledDiv3",componentId:"sc-1m09crd-0"})({display:"flex",flex:"1 1 auto",flexDirection:"column",gap:"1rem"}),FI=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},ZI=FI,Zf={"text/plain":"Text","text/html":"Url",default:"Text"},WI="Copy to clipboard: #{key}, Enter";function GI(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function UI(e,t){var n,i,o,a,s,l,c=!1;t||(t={}),n=t.debug||!1;try{o=ZI(),a=document.createRange(),s=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Zf[t.format]||Zf.default;window.clipboardData.setData(f,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(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),i=GI("message"in t?t.message:WI),window.prompt(i,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var YI=UI;const XI=bn(YI);const i3=window.React.useState,JI=window.ReactDOM.createPortal,KI=window.brandyCustomizerData.content_variables??{};function qI(){const[e,t]=i3(!1);return r.jsxs(eL,{onClick:()=>{t(n=>!n)},children:[r.jsx("span",{children:"Variables selection"}),e&&JI(r.jsx(QI,{onClose:()=>{t(!1)}}),document.querySelector("body"))]})}let Wf;function QI({onClose:e}){const[t,n]=i3(!1);return r.jsxs(tL,{className:"variable-modal",onClick:i=>{i.stopPropagation()},children:[r.jsxs(nL,{children:[r.jsx(rL,{children:P("Click to copy and paste to use in some input settings")}),r.jsx(iL,{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(oL,{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(aL,{children:Object.entries(KI).map(([i,o],a)=>r.jsxs(sL,{onClick:()=>{XI(`[${i}]`),clearTimeout(Wf),n(a),Wf=setTimeout(()=>{n(!1)},2e3)},children:[r.jsxs(lL,{children:["[",i,"]",t===a&&r.jsx(cL,{children:P("Copied")})]}),r.jsx(dL,{dangerouslySetInnerHTML:{__html:o}})]},a))})]})}var eL=w("div")({cursor:"pointer",borderRadius:"3px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"12px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{backgroundColor:"#E7EBFCB2","--tw-text-opacity":"1",color:"rgb(56 88 233 / var(--tw-text-opacity, 1))"}}),tL=w("div")({position:"absolute",left:"50%",top:"50%",zIndex:"100000000",maxWidth:"700px","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-translate-y":"-50%",borderRadius:"2px",borderWidth:"1px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"1rem","--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),nL=w("div")({marginBottom:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between"}),rL=w("p")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),iL=w("span")({cursor:"pointer",padding:"0.25rem"}),oL=w("path")({".group:hover &":{fill:"#000"}}),aL=w("div")({display:"flex",maxHeight:"400px",flexDirection:"column",overflow:"auto"}),sL=w("div")({display:"grid",cursor:"pointer",gridTemplateColumns:"250px 1fr",borderWidth:"1px",borderBottomWidth:"0px",borderStyle:"solid","&:last-child":{borderBottomWidth:"1px"},"& *":{padding:"0.75rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"},"&:hover *":{"--tw-bg-opacity":"1",backgroundColor:"rgb(248 248 248 / var(--tw-bg-opacity, 1))"}}),lL=w("span")({fontWeight:"600"}),cL=w("span")({fontSize:"12px",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(20 134 92 / var(--tw-text-opacity, 1))"}),dL=w("span").withConfig({displayName:"StringVariablesSelection___StyledSpan4",componentId:"sc-u8jk1j-0"})({borderLeftWidth:"1px"});const uL=(e="header")=>{let t=null;Fo.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=Li.createRoot(a),t.render(r.jsx(PI,{builder:e}))),o===!1&&(i.classList.remove("with-opened-placements"),a.classList.remove("opened"),setTimeout(()=>{t&&(t.unmount(),t=null)},200)))})})},fL=(e="header")=>{let t=null;Fo.panel(e,function(n){const i=document.querySelector(`#sub-accordion-panel-${e}`);i!=null&&n.expanded.bind(function(o){const a=Di.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=Li.createRoot(i),t.render(r.jsx(qg,{builder:e,children:void 0}))),o===!1&&setTimeout(()=>{t!=null&&(t.unmount(),t=null)},500)})})},hL=(e,t)=>{let n=null;const i=e;Fo.panel(i,function(o){const a=document.querySelector(`#sub-accordion-panel-${i}`);a!=null&&o.expanded.bind(function(s){s&&n==null&&(n=Li.createRoot(a),n.render(r.jsx(qg,{builder:i,title:t,children:void 0}))),s===!1&&setTimeout(()=>{n!=null&&(n.unmount(),n=null)},500)})})},pL=()=>{let e=null;if(document.getElementById("customize-preview")==null)return;const n=document.getElementById("brandy-string-variables");n!=null&&(e=Li.createRoot(n),e.render(r.jsx(qI,{})))};document.addEventListener("DOMContentLoaded",function(){oT(),["header","footer"].forEach(t=>{uL(t),fL(t)}),(window.brandyCustomizerData.extra_panels??[]).forEach(t=>{hL(t.id,t.title)}),pL()});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?Jn(t,i):o.expand());let a=window.wp.customize.section(n);n!=null&&a!=null&&a.expand()}})},1);window.wp.customize.bind("ready",function(){window.wp.customize.bind("save-request-params",function(e){let t={};try{t=JSON.parse(e.customized??"{}")??{}}catch{t={}}if("header_settings"in t){const n=Ae.getState(),i={current_template_id:n.currentTemplateId,templates:n.templates},o=Vo(i);xf("header save",i,o),e.header_settings=JSON.stringify(o)}if("footer_settings"in t){const n=Ie.getState(),i={current_template_id:n.currentTemplateId,templates:n.templates},o=Vo(i);xf("footer save",i,o),e.footer_settings=JSON.stringify(o)}if("button_settings"in t){const n=window.wp.customize("button_settings")();n&&(e.button_global_styles=JSON.stringify(n))}return e}),window.wp.customize.previewer.bind("ready",function(){var n,i,o,a,s,l,c;const e=Di.getPreviewerWindow();(o=(i=(n=e==null?void 0:e.wp)==null?void 0:n.customize)==null?void 0:i.selectiveRefresh)==null||o.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("blogname",function(d){d.bind(function(u){e==null||e.jQuery(".brandy-logo__title:not([data-text])").html(u)})}),window.wp.customize("blogdescription",function(d){d.bind(function(u){e==null||e.jQuery(".brandy-logo__tagline:not([data-text])").html(u)})}),setTimeout(()=>{const d=Ks.getState().current;Di.updateResponsiveControl("header",d),Di.updateResponsiveControl("footer",d)},100);const t=(c=(l=(s=(a=window.wp)==null?void 0:a.customize)==null?void 0:s.previewer)==null?void 0:l.targetWindow())==null?void 0:c.document;t==null?console.warn("[brandy] edit-button binding skipped: preview targetWindow/document unavailable"):window.jQuery(t).off("click.brandyEdit",".edit-button").on("click.brandyEdit",".edit-button",function(d){const u=d.target.closest(".editable-part");if(u){d.preventDefault(),d.stopPropagation();const f=u.dataset.sectionId,h=u.dataset.builder;f&&Jn(h,f,null,"settings")}}),window.wp.customize.previewedDevice.bind(function(d){Ks.setState(()=>({current:d})),Di.updateResponsiveControl("header",d),Di.updateResponsiveControl("footer",d)})})});
