var R3=Object.defineProperty;var O3=(e,t,n)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kn=(e,t,n)=>(O3(e,typeof t!="symbol"?t+"":t,n),n);/* empty css              */const Vo=window.wp.customize,E0=e=>{let t;const n=new Set,i=(u,h)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const m=t;t=h??(typeof f!="object"||f===null)?f:Object.assign({},t,f),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},N3=e=>e?E0(e):E0;var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function J2(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 K2={exports:{}},q2={},Q2={exports:{}},ef={};/**
 * @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 P3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var B3=typeof Object.is=="function"?Object.is:P3,V3=Eo.useState,z3=Eo.useEffect,F3=Eo.useLayoutEffect,Z3=Eo.useDebugValue;function W3(e,t){var n=t(),i=V3({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return F3(function(){o.value=n,o.getSnapshot=t,$c(o)&&a({inst:o})},[e,n,t]),z3(function(){return $c(o)&&a({inst:o}),e(function(){$c(o)&&a({inst:o})})},[e]),Z3(n),n}function $c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!B3(e,n)}catch{return!0}}function G3(e,t){return t()}var U3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?G3:W3;ef.useSyncExternalStore=Eo.useSyncExternalStore!==void 0?Eo.useSyncExternalStore:U3;Q2.exports=ef;var Y3=Q2.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 gl=window.React,X3=Y3;function J3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var K3=typeof Object.is=="function"?Object.is:J3,q3=X3.useSyncExternalStore,Q3=gl.useRef,em=gl.useEffect,tm=gl.useMemo,nm=gl.useDebugValue;q2.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var a=Q3(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=tm(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 h=p}return h=m}if(p=h,K3(u,m))return p;var v=i(m);return o!==void 0&&o(p,v)?(u=m,p):(u=m,h=v)}var d=!1,u,h,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,i,o]);var l=q3(e,a[0],a[1]);return em(function(){s.hasValue=!0,s.value=l},[l]),nm(l),l};K2.exports=q2;var rm=K2.exports;const im=xn(rm),om=window.React,{useDebugValue:am}=om,{useSyncExternalStoreWithSelector:sm}=im;const lm=e=>e;function cm(e,t=lm,n){const i=sm(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return am(i),i}const D0=e=>{const t=typeof e=="function"?N3(e):e,n=(i,o)=>cm(t,i,o);return Object.assign(n,t),n},ml=e=>e?D0(e):D0,Js=ml()(e=>({current:"desktop",changeCurrent:t=>{e(()=>({current:t}))}})),$0=30,dm=500;class um{constructor(){kn(this,"stack",[]);kn(this,"cursor",-1);kn(this,"isRestoring",!1);kn(this,"debounceTimer",null);kn(this,"pendingCapture",null);kn(this,"listeners",new Set);kn(this,"initializedStores",new Set);kn(this,"keyboardListenerActive",!1);kn(this,"stores",new Map);kn(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)},dm))}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>$0&&(this.stack=this.stack.slice(this.stack.length-$0)),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(h=>{var m;const f=(m=h.chosenElement)==null?void 0:m.id;h.previewTemplate=i.previewTemplate,h.templates=i.templates,h.currentTemplateId=i.currentTemplateId,f&&i.previewTemplate.elements[f]?h.chosenElement=i.previewTemplate.elements[f]:h.chosenElement=null,h.chosenRow=null}),setTimeout(()=>{const h=Js.getState().current;ki.updateResponsiveControl(t.store,h)},0);const c=JSON.stringify(i.previewTemplate.placements);if(a!==c||s!==i.currentTemplateId)Ne().refreshPartial(`${t.store}_placements`);else{const h=i.previewTemplate.elements;for(const f of Object.keys(h))JSON.stringify(l[f])!==JSON.stringify(h[f])&&this.elementNeedsRefresh(((u=h[f])==null?void 0:u.cloned_from)??f)&&Ne().refreshPartial(`${t.store}_${f}`)}}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 on=new um;var tf={exports:{}},vl={};/**
 * @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 hm=window.React,fm=Symbol.for("react.element"),pm=Symbol.for("react.fragment"),gm=Object.prototype.hasOwnProperty,mm=hm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vm={key:!0,ref:!0,__self:!0,__source:!0};function nf(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)gm.call(t,i)&&!vm.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:fm,type:e,key:a,ref:s,props:o,_owner:mm.current}}vl.Fragment=pm;vl.jsx=nf;vl.jsxs=nf;tf.exports=vl;var r=tf.exports,Ti={},H0=window.ReactDOM;Ti.createRoot=H0.createRoot,Ti.hydrateRoot=H0.hydrateRoot;var Ke="-ms-",xa="-moz-",Be="-webkit-",rf="comm",wl="rule",xd="decl",wm="@import",xm="@namespace",of="@keyframes",bm="@layer",af=Math.abs,bd=String.fromCharCode,I1=Object.assign;function ym(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 sf(e){return e.trim()}function jr(e,t){return(e=t.exec(e))?e[0]:e}function Me(e,t,n){return e.replace(t,n)}function Rs(e,t,n){return e.indexOf(t,n)}function _t(e,t){return e.charCodeAt(t)|0}function Ii(e,t,n){return e.slice(t,n)}function Yn(e){return e.length}function lf(e){return e.length}function da(e,t){return t.push(e),e}function Cm(e,t){return e.map(t).join("")}function M0(e,t){return e.filter(function(n){return!jr(n,t)})}var xl=1,Do=1,cf=0,Tn=0,vt=0,zo="";function bl(e,t,n,i,o,a,s,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:xl,column:Do,length:s,return:"",siblings:l}}function Gr(e,t){return I1(bl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function oo(e){for(;e.root;)e=Gr(e.root,{children:[e]});da(e,e.siblings)}function _m(){return vt}function Sm(){return vt=Tn>0?_t(zo,--Tn):0,Do--,vt===10&&(Do=1,xl--),vt}function Kn(){return vt=Tn<cf?_t(zo,Tn++):0,Do++,vt===10&&(Do=1,xl++),vt}function Xr(){return _t(zo,Tn)}function Os(){return Tn}function yl(e,t){return Ii(zo,e,t)}function La(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 jm(e){return xl=Do=1,cf=Yn(zo=e),Tn=0,[]}function km(e){return zo="",e}function Hc(e){return sf(yl(Tn-1,L1(e===91?e+2:e===40?e+1:e)))}function Em(e){for(;(vt=Xr())&&vt<33;)Kn();return La(e)>2||La(vt)>3?"":" "}function Dm(e,t){for(;--t&&Kn()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return yl(e,Os()+(t<6&&Xr()==32&&Kn()==32))}function L1(e){for(;Kn();)switch(vt){case e:return Tn;case 34:case 39:e!==34&&e!==39&&L1(vt);break;case 40:e===41&&L1(e);break;case 92:Kn();break}return Tn}function $m(e,t){for(;Kn()&&e+vt!==47+10;)if(e+vt===42+42&&Xr()===47)break;return"/*"+yl(t,Tn-1)+"*"+bd(e===47?e:Kn())}function Hm(e){for(;!La(Xr());)Kn();return yl(e,Tn)}function Mm(e){return km(Ns("",null,null,null,[""],e=jm(e),0,[0],e))}function Ns(e,t,n,i,o,a,s,l,c){for(var d=0,u=0,h=s,f=0,m=0,p=0,v=1,x=1,E=1,C=0,j="",I=o,$=a,_=i,b=j;x;)switch(p=C,C=Kn()){case 40:if(p!=108&&_t(b,h-1)==58){Rs(b+=Me(Hc(C),"&","&\f"),"&\f",af(d?l[d-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:b+=Hc(C);break;case 9:case 10:case 13:case 32:b+=Em(p);break;case 92:b+=Dm(Os()-1,7);continue;case 47:switch(Xr()){case 42:case 47:da(Tm($m(Kn(),Os()),t,n,c),c),(La(p||1)==5||La(Xr()||1)==5)&&Yn(b)&&Ii(b,-1,void 0)!==" "&&(b+=" ");break;default:b+="/"}break;case 123*v:l[d++]=Yn(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&&(Yn(b)-h||v===0&&p===47)&&da(m>32?I0(b+";",i,n,h-1,c):I0(Me(b," ","")+";",i,n,h-2,c),c);break;case 59:b+=";";default:if(da(_=T0(b,t,n,d,u,o,l,j,I=[],$=[],h,a),a),C===123)if(u===0)Ns(b,t,_,_,I,a,h,l,$);else{switch(f){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?Ns(e,_,_,i&&da(T0(e,_,_,0,0,o,l,j,o,I=[],h,$),$),o,$,h,l,i?I:$):Ns(b,_,_,_,[""],$,0,l,$)}}d=u=m=0,v=E=1,j=b="",h=s;break;case 58:h=1+Yn(b),m=p;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&Sm()==125)continue}switch(b+=bd(C),C*v){case 38:E=u>0?1:(b+="\f",-1);break;case 44:l[d++]=(Yn(b)-1)*E,E=1;break;case 64:Xr()===45&&(b+=Hc(Kn())),f=Xr(),u=h=Yn(j=b+=Hm(Os())),C++;break;case 45:p===45&&Yn(b)==2&&(v=0)}}return a}function T0(e,t,n,i,o,a,s,l,c,d,u,h){for(var f=o-1,m=o===0?a:[""],p=lf(m),v=0,x=0,E=0;v<i;++v)for(var C=0,j=Ii(e,f+1,f=af(x=s[v])),I=e;C<p;++C)(I=sf(x>0?m[C]+" "+j:Me(j,/&\f/g,m[C])))&&(c[E++]=I);return bl(e,t,n,o===0?wl:l,c,d,u,h)}function Tm(e,t,n,i){return bl(e,t,n,rf,bd(_m()),Ii(e,2,-2),0,i)}function I0(e,t,n,i,o){return bl(e,t,n,xd,Ii(e,0,i),Ii(e,i+1,-1),i,o)}function df(e,t,n){switch(ym(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 xa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+xa+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,"")+(jr(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(!jr(e,/flex-|baseline/))return Ke+"grid-column-align"+Ii(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,jr(i.props,/grid-\w+-end/)})?~Rs(e+(n=n[t].value),"span",0)?e:Ke+Me(e,"-start","")+e+Ke+"grid-row-span:"+(~Rs(n,"span",0)?jr(n,/\d+/):+jr(n,/\d+/)-+jr(e,/\d+/))+";":Ke+Me(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return jr(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(Yn(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"+xa+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rs(e,"stretch",0)?df(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 Ks(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function Im(e,t,n,i){switch(e.type){case bm:if(e.children.length)break;case wm:case xm:case xd:return e.return=e.return||e.value;case rf:return"";case of:return e.return=e.value+"{"+Ks(e.children,i)+"}";case wl:if(!Yn(e.value=e.props.join(",")))return""}return Yn(n=Ks(e.children,i))?e.return=e.value+"{"+n+"}":""}function Lm(e){var t=lf(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 Am(e){return function(t){t.root||(t=t.return)&&e(t)}}function Rm(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case xd:e.return=df(e.value,e.length,n);return;case of:return Ks([Gr(e,{value:Me(e.value,"@","@"+Be)})],i);case wl:if(e.length)return Cm(n=e.props,function(o){switch(jr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":oo(Gr(e,{props:[Me(o,/:(read-\w+)/,":"+xa+"$1")]})),oo(Gr(e,{props:[o]})),I1(e,{props:M0(n,i)});break;case"::placeholder":oo(Gr(e,{props:[Me(o,/:(plac\w+)/,":"+Be+"input-$1")]})),oo(Gr(e,{props:[Me(o,/:(plac\w+)/,":"+xa+"$1")]})),oo(Gr(e,{props:[Me(o,/:(plac\w+)/,Ke+"input-$1")]})),oo(Gr(e,{props:[o]})),I1(e,{props:M0(n,i)});break}return""})}}const _o=window.React,Om=window.React.createElement;var Mc,Tc;const $o=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",uf="active",hf="data-styled-version",Cl="6.4.1",yd=`/*!sc*/
`,ba=typeof window<"u"&&typeof document<"u";function L0(e){if(typeof process<"u"&&process.env!==void 0){const t=process.env[e];if(t!==void 0&&t!=="")return t!=="false"}}const Nm=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(Tc=(Mc=L0("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&Mc!==void 0?Mc:L0("SC_DISABLE_SPEEDY"))!==null&&Tc!==void 0?Tc:typeof process>"u"||process.env===void 0),Pm="sc-keyframes-";function _l(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 Ps=new Map,qs=new Map,Bs=1;const gs=e=>{if(Ps.has(e))return Ps.get(e);for(;qs.has(Bs);)Bs++;const t=Bs++;return Ps.set(e,t),qs.set(t,e),t},Bm=e=>qs.get(e),Vm=(e,t)=>{Bs=t+1,Ps.set(e,t),qs.set(t,e)},Cd=Object.freeze([]),Ho=Object.freeze({});function zm(e,t,n=Ho){return e.theme!==n.theme&&e.theme||t||n.theme}const Fm=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Zm=/(^-|-$)/g;function ff(e){return e.replace(Fm,"-").replace(Zm,"")}const Wm=/(a)(d)/gi,A0=e=>String.fromCharCode(e+(e>25?39:97));function pf(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=A0(t%52)+n;return(A0(t%52)+n).replace(Wm,"$1-$2")}const A1=5381,Ei=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},gf=e=>Ei(A1,e);function Gm(e){return pf(gf(e)>>>0)}function Um(e){return e.displayName||e.name||"Component"}function R1(e){return typeof e=="string"&&!0}function Ym(e){return R1(e)?`styled.${e}`:`Styled(${Um(e)})`}const mf=Symbol.for("react.memo"),Xm=Symbol.for("react.forward_ref"),Jm={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Km={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qm={[Xm]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[mf]:vf};function R0(e){return("type"in(t=e)&&t.type.$$typeof)===mf?vf:"$$typeof"in e?qm[e.$$typeof]:Jm;var t}const Qm=Object.defineProperty,e5=Object.getOwnPropertyNames,t5=Object.getOwnPropertySymbols,n5=Object.getOwnPropertyDescriptor,r5=Object.getPrototypeOf,i5=Object.prototype;function wf(e,t,n){if(typeof t!="string"){const i=r5(t);i&&i!==i5&&wf(e,i,n);const o=e5(t).concat(t5(t)),a=R0(e),s=R0(t);for(let l=0;l<o.length;++l){const c=o[l];if(!(c in Km||n&&n[c]||s&&c in s||a&&c in a)){const d=n5(t,c);try{Qm(e,c,d)}catch{}}}}return e}function Sl(e){return typeof e=="function"}function xf(e){return typeof e=="object"&&"styledComponentId"in e}function ua(e,t){return e&&t?e+" "+t:e||t||""}function O0(e,t){return e.join(t||"")}function Aa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function O1(e,t,n=!1){if(!n&&!Aa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let i=0;i<t.length;i++)e[i]=O1(e[i],t[i]);else if(Aa(t))for(const i in t)e[i]=O1(e[i],t[i]);return e}function bf(e,t){Object.defineProperty(e,"toString",{value:t})}const o5=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 _l(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)+yd;return t}},a5=`style[${$o}][${hf}="${Cl}"]`,s5=new RegExp(`^${$o}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),N0=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,N1=e=>{if(!e)return document;if(N0(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(N0(t))return t}return document},l5=(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)},c5=(e,t)=>{var n;const i=((n=t.textContent)!==null&&n!==void 0?n:"").split(yd),o=[];for(let a=0,s=i.length;a<s;a++){const l=i[a].trim();if(!l)continue;const c=l.match(s5);if(c){const d=0|parseInt(c[1],10),u=c[2];d!==0&&(Vm(u,d),l5(e,u,c[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}},Ic=e=>{const t=N1(e.options.target).querySelectorAll(a5);for(let n=0,i=t.length;n<i;n++){const o=t[n];o&&o.getAttribute($o)!==uf&&(c5(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let Ko=!1;function d5(){if(Ko!==!1)return Ko;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Ko=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Ko=t.getAttribute("content")||void 0}return Ko=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const yf=(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,uf),o.setAttribute(hf,Cl);const l=t||d5();return l&&o.setAttribute("nonce",l),i.insertBefore(o,s),o},u5=class{constructor(e,t){this.element=yf(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 _l(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:""}},h5=class{constructor(e,t){this.element=yf(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 P0=ba;const f5={isServer:!ba,useCSSOMInjection:!Nm};class jl{static registerId(t){return gs(t)}constructor(t=Ho,n={},i){this.options=Object.assign(Object.assign({},f5),t),this.gs=n,this.keyframeIds=new Set,this.names=new Map(i),this.server=!!t.isServer,!this.server&&ba&&P0&&(P0=!1,Ic(this)),bf(this,()=>(o=>{const a=o.getTag(),{length:s}=a;let l="";for(let c=0;c<s;c++){const d=Bm(c);if(d===void 0)continue;const u=o.names.get(d);if(u===void 0||!u.size)continue;const h=a.getGroup(c);if(h.length===0)continue;const f=$o+".g"+c+'[id="'+d+'"]';let m="";for(const p of u)p.length>0&&(m+=p+",");l+=h+f+'{content:"'+m+'"}'+yd}return l})(this))}rehydrate(){!this.server&&ba&&Ic(this)}reconstructWithOptions(t,n=!0){const i=new jl(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return i.keyframeIds=new Set(this.keyframeIds),!this.server&&ba&&t.target!==this.options.target&&N1(this.options.target)!==N1(t.target)&&Ic(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 u5(i,o):new h5(i,o))(this.options),new o5(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){gs(t),t.startsWith(Pm)&&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(gs(t),i)}clearNames(t){this.names.has(t)&&this.names.get(t).clear()}clearRules(t){this.getTag().clearGroup(gs(t)),this.clearNames(t)}clearTag(){this.tag=void 0}}const Cf=new WeakSet,p5={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 g5(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in p5||e.startsWith("--")?String(t).trim():t+"px"}const ji=47;function B0(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 m5=Symbol.for("sc-keyframes");function v5(e){return typeof e=="object"&&e!==null&&m5 in e}function _f(e){return Sl(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Sf=e=>e==null||e===!1||e==="",w5=Symbol.for("react.client.reference");function V0(e){return e.$$typeof===w5}function jf(e,t){for(const n in e){const i=e[n];e.hasOwnProperty(n)&&!Sf(i)&&(Array.isArray(i)&&Cf.has(i)||Sl(i)?t.push(B0(n)+":",i,";"):Aa(i)?(t.push(n+" {"),jf(i,t),t.push("}")):t.push(B0(n)+": "+g5(n,i)+";"))}}function Di(e,t,n,i,o=[]){if(Sf(e))return o;const a=typeof e;if(a==="string")return o.push(e),o;if(a==="function"){if(V0(e))return o;if(_f(e)&&t){const s=e(t);return Di(s,t,n,i,o)}return o.push(e),o}if(Array.isArray(e)){for(let s=0;s<e.length;s++)Di(e[s],t,n,i,o);return o}return xf(e)?(o.push(`.${e.styledComponentId}`),o):v5(e)?(n?(e.inject(n,i),o.push(e.getName(i))):o.push(e),o):V0(e)?o:Aa(e)?(jf(e,o),o):(o.push(e.toString()),o)}const x5=gf(Cl);class b5{constructor(t,n,i){this.rules=t,this.componentId=n,this.baseHash=Ei(x5,n),this.baseStyle=i,jl.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(_f(l)){const c=l(t);typeof c=="string"?a+=c:c!=null&&c!==!1&&(a+=O0(Di(c,t,n,i)))}else a+=O0(Di(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=pf(Ei(Ei(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=ua(o,l)}}return o}}const y5=/&/g;function kf(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function Lc(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!==ji||e.charCodeAt(c+1)!==42)if(s)d===42&&e.charCodeAt(c+1)===ji&&(s=!1,c++);else if(d!==34&&d!==39||kf(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 h=e.charCodeAt(u);if(h===59||h===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 Ef(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"&&Ef(a.children,t)}return e}function C5({options:e=Ho,plugins:t=Cd}=Ho){let n,i,o;const a=(f,m,p)=>p.startsWith(i)&&p.endsWith(i)&&p.replaceAll(i,"").length>0?`.${n}`:f,s=t.slice();s.push(f=>{f.type===wl&&f.value.includes("&")&&(o||(o=new RegExp(`\\${i}\\b`,"g")),f.props[0]=f.props[0].replace(y5,i).replace(o,a))}),e.prefix&&s.push(Rm),s.push(Im);let l=[];const c=Lm(s.concat(Am(f=>l.push(f)))),d=(f,m="",p="",v="&")=>{n=v,i=m,o=void 0;const x=function(C){const j=C.indexOf("//")!==-1,I=C.indexOf("}")!==-1;if(!j&&!I)return C;if(!j)return Lc(C);const $=C.length;let _="",b=0,H=0,B=0,y=0,T=0,L=!1;for(;H<$;){const F=C.charCodeAt(H);if(F!==34&&F!==39||kf(C,H))if(B===0)if(F===ji&&H+1<$&&C.charCodeAt(H+1)===42){for(H+=2;H+1<$&&(C.charCodeAt(H)!==42||C.charCodeAt(H+1)!==ji);)H++;H+=2}else if(F!==40)if(F!==41)if(y>0)H++;else if(F===42&&H+1<$&&C.charCodeAt(H+1)===ji)_+=C.substring(b,H),H+=2,b=H,L=!0;else if(F===ji&&H+1<$&&C.charCodeAt(H+1)===ji){for(_+=C.substring(b,H);H<$&&C.charCodeAt(H)!==10;)H++;b=H,L=!0}else F===123?T++:F===125&&T--,H++;else y>0&&y--,H++;else y++,H++;else H++;else B===0?B=F:B===F&&(B=0),H++}return L?(b<$&&(_+=C.substring(b)),T===0?_:Lc(_)):T===0?C:Lc(C)}(f);let E=Mm(p||m?p+" "+m+" { "+x+" }":x);return e.namespace&&(E=Ef(E,e.namespace)),l=[],Ks(E,c),l},u=e;let h=A1;for(let f=0;f<t.length;f++)t[f].name||_l(15),h=Ei(h,t[f].name);return u!=null&&u.namespace&&(h=Ei(h,u.namespace)),u!=null&&u.prefix&&(h=Ei(h,"p")),d.hash=h!==A1?h.toString():"",d}const _5=new jl,S5=C5(),Df=_o.createContext({shouldForwardProp:void 0,styleSheet:_5,stylis:S5,stylisPlugins:void 0});Df.Consumer;function j5(){return _o.useContext(Df)}const $f=_o.createContext(void 0);$f.Consumer;const z0=Object.prototype.hasOwnProperty,Ac={};function k5(e,t){const n=typeof e!="string"?"sc":ff(e);Ac[n]=(Ac[n]||0)+1;const i=n+"-"+Gm(Cl+n+Ac[n]);return t?t+"-"+i:i}function E5(e,t,n){const i=xf(e),o=e,a=!R1(e),{attrs:s=Cd,componentId:l=k5(t.displayName,t.parentComponentId),displayName:c=Ym(e)}=t,d=t.displayName&&t.componentId?ff(t.displayName)+"-"+t.componentId:t.componentId||l,u=i&&o.attrs?o.attrs.concat(s).filter(Boolean):s;let{shouldForwardProp:h}=t;if(i&&o.shouldForwardProp){const v=o.shouldForwardProp;if(t.shouldForwardProp){const x=t.shouldForwardProp;h=(E,C)=>v(E,C)&&x(E,C)}else h=v}const f=new b5(n,d,i?o.componentStyle:void 0);function m(v,x){return function(E,C,j){const{attrs:I,componentStyle:$,defaultProps:_,foldedComponentIds:b,styledComponentId:H,target:B}=E,y=_o.useContext($f),T=j5(),L=E.shouldForwardProp||T.shouldForwardProp,F=zm(C,y,_)||Ho;let G,R;{const O=_o.useRef(null),X=O.current;if(X!==null&&X[1]===F&&X[2]===T.styleSheet&&X[3]===T.stylis&&X[7]===$&&function(ee,q,ae){const ce=ee,W=q;let re=0;for(const fe in W)if(z0.call(W,fe)&&(re++,ce[fe]!==W[fe]))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 fe=0;fe<q.length;fe++){const de=q[fe],se=Sl(de)?de(re?Object.assign({},W):W):de;for(const xe in se)xe==="className"?W.className=ua(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=ua(W.className,ae.className)),W}(I,C,F),R=function(q,ae,ce,W){return q.generateAndInjectStyles(ae,ce,W)}($,G,T.styleSheet,T.stylis);let ee=0;for(const q in C)z0.call(C,q)&&ee++;O.current=[C,F,T.styleSheet,T.stylis,ee,G,R,$]}}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=ua(b,H);return R&&(U+=" "+R),G.className&&(U+=" "+G.className),V[R1(Z)&&Z.includes("-")?"class":"className"]=U,j&&(V.ref=j),Om(Z,V)}(p,v,x)}m.displayName=c;let p=_o.forwardRef(m);return p.attrs=u,p.componentStyle=f,p.displayName=c,p.shouldForwardProp=h,p.foldedComponentIds=i?ua(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)O1(x,C,!0);return x}({},o.defaultProps,v):v}}),bf(p,()=>`.${p.styledComponentId}`),a&&wf(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),p}var D5=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 F0(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 Z0=e=>(Cf.add(e),e);function me(e,...t){if(Sl(e)||Aa(e))return Z0(Di(F0(Cd,[e,...t])));const n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Di(n):Z0(Di(F0(n,t)))}function P1(e,t,n=Ho){if(!t)throw _l(1,t);const i=(o,...a)=>e(t,n,me(o,...a));return i.attrs=o=>P1(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),i.withConfig=o=>P1(e,t,Object.assign(Object.assign({},n),o)),i}const Hf=e=>P1(E5,e),w=Hf;D5.forEach(e=>{w[e]=Hf(e)});var $5="Expected a function",Mf="__lodash_hash_undefined__",Tf=1/0,H5=9007199254740991,M5="[object Function]",T5="[object GeneratorFunction]",I5="[object Symbol]",L5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A5=/^\w*$/,R5=/^\./,O5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N5=/[\\^$.*+?()[\]{}|]/g,P5=/\\(\\)?/g,B5=/^\[object .+?Constructor\]$/,V5=/^(?:0|[1-9]\d*)$/,z5=typeof ut=="object"&&ut&&ut.Object===Object&&ut,F5=typeof self=="object"&&self&&self.Object===Object&&self,_d=z5||F5||Function("return this")();function Z5(e,t){return e==null?void 0:e[t]}function W5(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var G5=Array.prototype,U5=Function.prototype,If=Object.prototype,Rc=_d["__core-js_shared__"],W0=function(){var e=/[^.]+$/.exec(Rc&&Rc.keys&&Rc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Lf=U5.toString,kl=If.hasOwnProperty,Af=If.toString,Y5=RegExp("^"+Lf.call(kl).replace(N5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G0=_d.Symbol,X5=G5.splice,J5=Rf(_d,"Map"),Ra=Rf(Object,"create"),U0=G0?G0.prototype:void 0,Y0=U0?U0.toString:void 0;function Li(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 K5(){this.__data__=Ra?Ra(null):{}}function q5(e){return this.has(e)&&delete this.__data__[e]}function Q5(e){var t=this.__data__;if(Ra){var n=t[e];return n===Mf?void 0:n}return kl.call(t,e)?t[e]:void 0}function e4(e){var t=this.__data__;return Ra?t[e]!==void 0:kl.call(t,e)}function t4(e,t){var n=this.__data__;return n[e]=Ra&&t===void 0?Mf:t,this}Li.prototype.clear=K5;Li.prototype.delete=q5;Li.prototype.get=Q5;Li.prototype.has=e4;Li.prototype.set=t4;function Fo(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 n4(){this.__data__=[]}function r4(e){var t=this.__data__,n=El(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():X5.call(t,n,1),!0}function i4(e){var t=this.__data__,n=El(t,e);return n<0?void 0:t[n][1]}function o4(e){return El(this.__data__,e)>-1}function a4(e,t){var n=this.__data__,i=El(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Fo.prototype.clear=n4;Fo.prototype.delete=r4;Fo.prototype.get=i4;Fo.prototype.has=o4;Fo.prototype.set=a4;function Bi(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 s4(){this.__data__={hash:new Li,map:new(J5||Fo),string:new Li}}function l4(e){return Dl(this,e).delete(e)}function c4(e){return Dl(this,e).get(e)}function d4(e){return Dl(this,e).has(e)}function u4(e,t){return Dl(this,e).set(e,t),this}Bi.prototype.clear=s4;Bi.prototype.delete=l4;Bi.prototype.get=c4;Bi.prototype.has=d4;Bi.prototype.set=u4;function h4(e,t,n){var i=e[t];(!(kl.call(e,t)&&Of(i,n))||n===void 0&&!(t in e))&&(e[t]=n)}function El(e,t){for(var n=e.length;n--;)if(Of(e[n][0],t))return n;return-1}function f4(e){if(!Qs(e)||b4(e))return!1;var t=S4(e)||W5(e)?Y5:B5;return t.test(_4(e))}function p4(e,t,n,i){if(!Qs(e))return e;t=w4(t,e)?[t]:m4(t);for(var o=-1,a=t.length,s=a-1,l=e;l!=null&&++o<a;){var c=C4(t[o]),d=n;if(o!=s){var u=l[c];d=i?i(u,c,l):void 0,d===void 0&&(d=Qs(u)?u:v4(t[o+1])?[]:{})}h4(l,c,d),l=l[c]}return e}function g4(e){if(typeof e=="string")return e;if(jd(e))return Y0?Y0.call(e):"";var t=e+"";return t=="0"&&1/e==-Tf?"-0":t}function m4(e){return Nf(e)?e:y4(e)}function Dl(e,t){var n=e.__data__;return x4(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Rf(e,t){var n=Z5(e,t);return f4(n)?n:void 0}function v4(e,t){return t=t??H5,!!t&&(typeof e=="number"||V5.test(e))&&e>-1&&e%1==0&&e<t}function w4(e,t){if(Nf(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jd(e)?!0:A5.test(e)||!L5.test(e)||t!=null&&e in Object(t)}function x4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function b4(e){return!!W0&&W0 in e}var y4=Sd(function(e){e=k4(e);var t=[];return R5.test(e)&&t.push(""),e.replace(O5,function(n,i,o,a){t.push(o?a.replace(P5,"$1"):i||n)}),t});function C4(e){if(typeof e=="string"||jd(e))return e;var t=e+"";return t=="0"&&1/e==-Tf?"-0":t}function _4(e){if(e!=null){try{return Lf.call(e)}catch{}try{return e+""}catch{}}return""}function Sd(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError($5);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(Sd.Cache||Bi),n}Sd.Cache=Bi;function Of(e,t){return e===t||e!==e&&t!==t}var Nf=Array.isArray;function S4(e){var t=Qs(e)?Af.call(e):"";return t==M5||t==T5}function Qs(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function j4(e){return!!e&&typeof e=="object"}function jd(e){return typeof e=="symbol"||j4(e)&&Af.call(e)==I5}function k4(e){return e==null?"":g4(e)}function E4(e,t,n){return e==null?e:p4(e,t,n)}var D4=E4;const Gt=xn(D4);function $4(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}var H4=$4;const Pf=xn(H4),Mo=e=>Pf(e)&&"desktop"in e,X0=(e,t)=>{const n={};return Gt(n,e,t),n};function Bf({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 Vf({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 M4=e=>e==="header",Qe=(e="desktop")=>e==="tablet"?"mobile":e,zf=(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},T4=()=>document.querySelector("#customize-preview iframe"),J0=(e,t=0)=>{setTimeout(()=>{e()},t)},Ff=()=>{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")},Zf=()=>{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")},$l=e=>{const t=(window==null?void 0:window.brandyCustomizerData.content_variables)??{};return Object.keys(t).forEach(n=>{e=e.replace(`[${n}]`,t[n])}),e},I4=window.React.useMemo;function oe(e){return I4(()=>M4(e)?Le:Ie,[e])}const L4=window.React.useEffect;function De(){const{current:e}=Js();return L4(()=>{},[]),{current:e,changeDevice:n=>{Vo.previewedDevice(n)}}}const Hl=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(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))","&:hover":{"--tw-border-opacity":"1",borderColor:"rgb(19 94 150 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(19 94 150 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}},n&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity, 1))"},i&&{cursor:"not-allowed","--tw-border-opacity":"1",borderColor:"rgb(220 220 222 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(246 247 247 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(167 170 173 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(167 170 173 / var(--tw-text-opacity, 1))"}}]),kd=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))"}),Xa=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"}}),Wf=w.div.withConfig({displayName:"Layoutsstyled__StyledSectionLayout",componentId:"sc-o6y3t-3"})({height:"fit-content"});var A4="Expected a function",Gf="__lodash_hash_undefined__",Uf=1/0,R4="[object Function]",O4="[object GeneratorFunction]",N4="[object Symbol]",P4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,B4=/^\w*$/,V4=/^\./,z4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F4=/[\\^$.*+?()[\]{}|]/g,Z4=/\\(\\)?/g,W4=/^\[object .+?Constructor\]$/,G4=typeof ut=="object"&&ut&&ut.Object===Object&&ut,U4=typeof self=="object"&&self&&self.Object===Object&&self,Ed=G4||U4||Function("return this")();function Y4(e,t){return e==null?void 0:e[t]}function X4(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var J4=Array.prototype,K4=Function.prototype,Yf=Object.prototype,Oc=Ed["__core-js_shared__"],K0=function(){var e=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xf=K4.toString,Dd=Yf.hasOwnProperty,Jf=Yf.toString,q4=RegExp("^"+Xf.call(Dd).replace(F4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q0=Ed.Symbol,Q4=J4.splice,ev=Kf(Ed,"Map"),Oa=Kf(Object,"create"),Q0=q0?q0.prototype:void 0,eu=Q0?Q0.toString:void 0;function Ai(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 tv(){this.__data__=Oa?Oa(null):{}}function nv(e){return this.has(e)&&delete this.__data__[e]}function rv(e){var t=this.__data__;if(Oa){var n=t[e];return n===Gf?void 0:n}return Dd.call(t,e)?t[e]:void 0}function iv(e){var t=this.__data__;return Oa?t[e]!==void 0:Dd.call(t,e)}function ov(e,t){var n=this.__data__;return n[e]=Oa&&t===void 0?Gf:t,this}Ai.prototype.clear=tv;Ai.prototype.delete=nv;Ai.prototype.get=rv;Ai.prototype.has=iv;Ai.prototype.set=ov;function Zo(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 av(){this.__data__=[]}function sv(e){var t=this.__data__,n=Ml(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Q4.call(t,n,1),!0}function lv(e){var t=this.__data__,n=Ml(t,e);return n<0?void 0:t[n][1]}function cv(e){return Ml(this.__data__,e)>-1}function dv(e,t){var n=this.__data__,i=Ml(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Zo.prototype.clear=av;Zo.prototype.delete=sv;Zo.prototype.get=lv;Zo.prototype.has=cv;Zo.prototype.set=dv;function Vi(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 uv(){this.__data__={hash:new Ai,map:new(ev||Zo),string:new Ai}}function hv(e){return Tl(this,e).delete(e)}function fv(e){return Tl(this,e).get(e)}function pv(e){return Tl(this,e).has(e)}function gv(e,t){return Tl(this,e).set(e,t),this}Vi.prototype.clear=uv;Vi.prototype.delete=hv;Vi.prototype.get=fv;Vi.prototype.has=pv;Vi.prototype.set=gv;function Ml(e,t){for(var n=e.length;n--;)if(kv(e[n][0],t))return n;return-1}function mv(e,t){t=bv(t,e)?[t]:xv(t);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Sv(t[n++])];return n&&n==i?e:void 0}function vv(e){if(!Qf(e)||Cv(e))return!1;var t=Ev(e)||X4(e)?q4:W4;return t.test(jv(e))}function wv(e){if(typeof e=="string")return e;if(Hd(e))return eu?eu.call(e):"";var t=e+"";return t=="0"&&1/e==-Uf?"-0":t}function xv(e){return qf(e)?e:_v(e)}function Tl(e,t){var n=e.__data__;return yv(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Kf(e,t){var n=Y4(e,t);return vv(n)?n:void 0}function bv(e,t){if(qf(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Hd(e)?!0:B4.test(e)||!P4.test(e)||t!=null&&e in Object(t)}function yv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cv(e){return!!K0&&K0 in e}var _v=$d(function(e){e=$v(e);var t=[];return V4.test(e)&&t.push(""),e.replace(z4,function(n,i,o,a){t.push(o?a.replace(Z4,"$1"):i||n)}),t});function Sv(e){if(typeof e=="string"||Hd(e))return e;var t=e+"";return t=="0"&&1/e==-Uf?"-0":t}function jv(e){if(e!=null){try{return Xf.call(e)}catch{}try{return e+""}catch{}}return""}function $d(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(A4);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($d.Cache||Vi),n}$d.Cache=Vi;function kv(e,t){return e===t||e!==e&&t!==t}var qf=Array.isArray;function Ev(e){var t=Qf(e)?Jf.call(e):"";return t==R4||t==O4}function Qf(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Dv(e){return!!e&&typeof e=="object"}function Hd(e){return typeof e=="symbol"||Dv(e)&&Jf.call(e)==N4}function $v(e){return e==null?"":wv(e)}function Hv(e,t,n){var i=e==null?void 0:mv(e,t);return i===void 0?n:i}var Mv=Hv;const ke=xn(Mv),Md=({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",Md({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 Tv="[object String]",Iv=Object.prototype,Lv=Iv.toString,Av=Array.isArray;function Rv(e){return!!e&&typeof e=="object"}function Ov(e){return typeof e=="string"||!Av(e)&&Rv(e)&&Lv.call(e)==Tv}var Nv=Ov;const ep=xn(Nv),ar=window.jQuery,tp=({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 h=ke(t,d.value_path.map(p=>p==="mobile"||p==="tablet"?"desktop":p)),f=ke(t,d.value_path.map(p=>p==="mobile"?"tablet":p));u==null&&(u=f??u),u==null&&(u=h??u),u=ye(u,n),d.fallback_value!=null&&!u&&(u=d.fallback_value),ep(u)&&(u=$l(u)),d.type==="switcher"&&d.enabled_value!=null&&d.disabled_value!=null&&(u?u=d.enabled_value:u=d.disabled_value);const m=Oe(d.select_from_body?d.selector:`${kt(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?(ar(m).addClass(d.enabled_class??""),ar(m).removeClass(d.disabled_class)):(ar(m).removeClass(d.enabled_class),ar(m).addClass(d.disabled_class??""));else if(d.custom_class){const p=ar(m).attr("data-brandy-custom-class")||"";p&&ar(m).removeClass(p);const v=String(u||"").trim();v&&ar(m).addClass(v),ar(m).attr("data-brandy-custom-class",v)}else ar(m).attr(d.name,`${d.default_class} ${u}`);return}ar(m).attr(d.name,u)})})})})},Pv=window.jQuery,Bv=({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=Oe(`${kt(e,i)} ${d.selector}`);let h=ke(t,d.value_path);const f=ke(t,d.value_path.map(m=>m==="mobile"||m==="tablet"?"desktop":m));h==null&&f!=null&&(h=f),ep(h)&&(h=$l(h)),Pv(u).html(Mo(h)?ye(h,n):h)})})})})},Vv=(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},Ri=e=>`${e.value}${e.unit}`,zv=(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"?Ri(e.image.left)+" "+Ri(e.image.top):e.image.position,selector:i}),o},np=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}`,Fv=(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},Zv=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,Wv=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)"}),Zv(t)},tu=window.jQuery,hr=({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(...Gv(d,t,n))})})}),s.length>0){const l=Oe(kt(e,i));if(!l)return;const c={},d="__root__";s.forEach(u=>{const h=u.selector||d;c[h]||(c[h]={}),c[h][u.name]=u.value}),Object.entries(c).forEach(([u,h])=>{const f=u===d?l:tu(l).find(u);f&&Object.entries(h).forEach(([m,p])=>{tu(f).each((v,x)=>{x.style.setProperty(m,String(p))})})})}};function Gv(e,t,n){let i=[];return e.render_options.data.forEach(({type:o,value_path:a,name:s,enabled_value:l,disabled_value:c,mapping_variables:d,selector:u})=>{let h=null;switch(o){case"color":h=Uv;break;case"dimension":h=Yv;break;case"typography":h=Xv;break;case"spacing":h=Jv;break;case"background":h=Kv;break;case"switcher":h=qv;break;case"box_shadow":h=Qv;break;case"custom_variables":h=tw;break;default:h=nw}h!==null&&i.push(...h(t,{variableName:s,valuePath:a,enabledValue:l,disabledValue:c,mappingVariables:d,selector:u??""},n))}),i}function Uv(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 Yv(e,t,n){const i=[],o=ke(e,t.valuePath);return o==null?[]:(i.push({name:`${t.variableName}`,value:Ri(ye(o,n)),selector:t.selector}),i)}function Xv(e,t,n){let i=ke(e,t.valuePath);return i==null&&(i={}),Vv(i,n,t.selector)}function Jv(e,t,n){const i=ke(e,t.valuePath);if(i==null)return[];const o=[];return o.push({name:`${t.variableName}`,value:np(ye(i,n)),selector:t.selector}),o.push(...Fv(t.variableName,ye(i,n),t.selector)),o}function Kv(e,t,n){const i=ke(e,["background"]);return i==null?[]:zv(i,n,t.variableName,t.selector)}function qv(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 Qv(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:Wv(o),selector:t.selector}),a}function ew(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 tw(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||!ew(l,d,s.condition.value))return;const u=s.mapping[n];u&&Object.entries(u).forEach(([h,f])=>{o.push({name:h,value:f,selector:t.selector})})}),o}function nw(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 rp={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})()})(rp);var rw=rp.exports;const Ae=xn(rw),iw=window.React.useMemo,ow=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))"}),aw={selected:{multiple:me([""," & + *{","}svg *[fill]{","}svg *[stroke]{","}"],{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1 !important",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1)) !important","--tw-text-opacity":"1 !important",color:"rgb(255 255 255 / var(--tw-text-opacity, 1)) !important"},{"--tw-border-opacity":"1",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))"},{fill:"#fff !important"},{stroke:"#fff !important"}),single:me([""," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}&.selected + *{","}&.selected{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"},{borderRightWidth:"1px"})}};function mn({options:e=[],selected:t="",onChange:n=()=>!1,className:i="",multiple:o=!1,itemCss:a=null,canDeselect:s=!1}){const l=iw(()=>t??(o?[e[0].value]:e[0].value),[o,t,e]),c=d=>{let u;o&&Array.isArray(l)?l.includes(d)?u=l.filter(f=>f!==d):u=[...l,d]:u=d,((o&&Array.isArray(l)?u.length!=l.length:u!==l)||s)&&n(u)};return r.jsx(sw,{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(lw,{className:Ae(["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?aw.selected[o?"multiple":"single"]:"",u&&o&&me([""," &.selected ~ .selected{","}"],{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity, 1)) !important","&:first-child":{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(34 113 177 / var(--tw-border-opacity, 1)) !important"}},{"--tw-border-opacity":"1 !important",borderLeftColor:"rgb(227 232 238 / var(--tw-border-opacity, 1)) !important"})]],children:typeof d.label=="string"?r.jsx("span",{dangerouslySetInnerHTML:{__html:d.label}}):d.label},d.value),d.title&&r.jsx("span",{className:`-mt-1 font-[300] ${u&&"font-[500]"}`,children:d.title},`${d.value}-descripiton`)]})})})}var sw=w("div")`${ow}`,lw=w("span").withConfig({displayName:"RadioGroup___StyledSpan",componentId:"sc-60p899-0"})(["",""],e=>e.$_css2);const cw=window.React.useMemo;function fr(e){const{current:t}=De(),n=cw(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{className:e.className,children:[r.jsx(pt,{title:e.title}),r.jsx(mn,{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 nu=window.React;var ru=function(t){return t.reduce(function(n,i){var o=i[0],a=i[1];return n[o]=a,n},{})},iu=typeof window<"u"&&window.document&&window.document.createElement?nu.useLayoutEffect:nu.useEffect,ln="top",In="bottom",Ln="right",cn="left",Td="auto",Ja=[ln,In,Ln,cn],To="start",Na="end",dw="clippingParents",ip="viewport",qo="popper",uw="reference",ou=Ja.reduce(function(e,t){return e.concat([t+"-"+To,t+"-"+Na])},[]),op=[].concat(Ja,[Td]).reduce(function(e,t){return e.concat([t,t+"-"+To,t+"-"+Na])},[]),hw="beforeRead",fw="read",pw="afterRead",gw="beforeMain",mw="main",vw="afterMain",ww="beforeWrite",xw="write",bw="afterWrite",yw=[hw,fw,pw,gw,mw,vw,ww,xw,bw];function dr(e){return e?(e.nodeName||"").toLowerCase():null}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Oi(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Mn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Id(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cw(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];!Mn(a)||!dr(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 _w(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},{});!Mn(o)||!dr(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const Sw={name:"applyStyles",enabled:!0,phase:"write",fn:Cw,effect:_w,requires:["computeStyles"]};function lr(e){return e.split("-")[0]}var $i=Math.max,el=Math.min,Io=Math.round;function B1(){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 ap(){return!/^((?!chrome|android).)*safari/i.test(B1())}function Lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&Mn(e)&&(o=e.offsetWidth>0&&Io(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Io(i.height)/e.offsetHeight||1);var s=Oi(e)?vn(e):window,l=s.visualViewport,c=!ap()&&n,d=(i.left+(c&&l?l.offsetLeft:0))/o,u=(i.top+(c&&l?l.offsetTop:0))/a,h=i.width/o,f=i.height/a;return{width:h,height:f,top:u,right:d+h,bottom:u+f,left:d,x:d,y:u}}function Ld(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 sp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Id(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ir(e){return vn(e).getComputedStyle(e)}function jw(e){return["table","td","th"].indexOf(dr(e))>=0}function ti(e){return((Oi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Il(e){return dr(e)==="html"?e:e.assignedSlot||e.parentNode||(Id(e)?e.host:null)||ti(e)}function au(e){return!Mn(e)||Ir(e).position==="fixed"?null:e.offsetParent}function kw(e){var t=/firefox/i.test(B1()),n=/Trident/i.test(B1());if(n&&Mn(e)){var i=Ir(e);if(i.position==="fixed")return null}var o=Il(e);for(Id(o)&&(o=o.host);Mn(o)&&["html","body"].indexOf(dr(o))<0;){var a=Ir(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 Ka(e){for(var t=vn(e),n=au(e);n&&jw(n)&&Ir(n).position==="static";)n=au(n);return n&&(dr(n)==="html"||dr(n)==="body"&&Ir(n).position==="static")?t:n||kw(e)||t}function Ad(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ya(e,t,n){return $i(e,el(t,n))}function Ew(e,t,n){var i=ya(e,t,n);return i>n?n:i}function lp(){return{top:0,right:0,bottom:0,left:0}}function cp(e){return Object.assign({},lp(),e)}function dp(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Dw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cp(typeof t!="number"?t:dp(t,Ja))};function $w(e){var t,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=lr(n.placement),c=Ad(l),d=[cn,Ln].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var h=Dw(o.padding,n),f=Ld(a),m=c==="y"?ln:cn,p=c==="y"?In:Ln,v=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],x=s[c]-n.rects.reference[c],E=Ka(a),C=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,j=v/2-x/2,I=h[m],$=C-f[u]-h[p],_=C/2-f[u]/2+j,b=ya(I,_,$),H=c;n.modifiersData[i]=(t={},t[H]=b,t.centerOffset=b-_,t)}}function Hw(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)||sp(t.elements.popper,o)&&(t.elements.arrow=o))}const Mw={name:"arrow",enabled:!0,phase:"main",fn:$w,effect:Hw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ao(e){return e.split("-")[1]}var Tw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Iw(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 su(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=s.x,m=f===void 0?0:f,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=cn,I=ln,$=window;if(d){var _=Ka(n),b="clientHeight",H="clientWidth";if(_===vn(n)&&(_=ti(n),Ir(_).position!=="static"&&l==="absolute"&&(b="scrollHeight",H="scrollWidth")),_=_,o===ln||(o===cn||o===Ln)&&a===Na){I=In;var B=h&&_===$&&$.visualViewport?$.visualViewport.height:_[b];v-=B-i.height,v*=c?1:-1}if(o===cn||(o===ln||o===In)&&a===Na){j=Ln;var y=h&&_===$&&$.visualViewport?$.visualViewport.width:_[H];m-=y-i.width,m*=c?1:-1}}var T=Object.assign({position:l},d&&Tw),L=u===!0?Iw({x:m,y:v},vn(n)):{x:m,y:v};if(m=L.x,v=L.y,c){var F;return Object.assign({},T,(F={},F[I]=C?"0":"",F[j]=E?"0":"",F.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",F))}return Object.assign({},T,(t={},t[I]=C?v+"px":"",t[j]=E?m+"px":"",t.transform="",t))}function Lw(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:lr(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,su(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,su(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 Aw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lw,data:{}};var ms={passive:!0};function Rw(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=vn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",n.update,ms)}),l&&c.addEventListener("resize",n.update,ms),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ms)}),l&&c.removeEventListener("resize",n.update,ms)}}const Ow={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rw,data:{}};var Nw={left:"right",right:"left",bottom:"top",top:"bottom"};function Vs(e){return e.replace(/left|right|bottom|top/g,function(t){return Nw[t]})}var Pw={start:"end",end:"start"};function lu(e){return e.replace(/start|end/g,function(t){return Pw[t]})}function Rd(e){var t=vn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Od(e){return Lo(ti(e)).left+Rd(e).scrollLeft}function Bw(e,t){var n=vn(e),i=ti(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var d=ap();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+Od(e),y:c}}function Vw(e){var t,n=ti(e),i=Rd(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=$i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=$i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+Od(e),c=-i.scrollTop;return Ir(o||n).direction==="rtl"&&(l+=$i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function Nd(e){var t=Ir(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function up(e){return["html","body","#document"].indexOf(dr(e))>=0?e.ownerDocument.body:Mn(e)&&Nd(e)?e:up(Il(e))}function Ca(e,t){var n;t===void 0&&(t=[]);var i=up(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=vn(i),s=o?[a].concat(a.visualViewport||[],Nd(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(Ca(Il(s)))}function V1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zw(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 cu(e,t,n){return t===ip?V1(Bw(e,n)):Oi(t)?zw(t,n):V1(Vw(ti(e)))}function Fw(e){var t=Ca(Il(e)),n=["absolute","fixed"].indexOf(Ir(e).position)>=0,i=n&&Mn(e)?Ka(e):e;return Oi(i)?t.filter(function(o){return Oi(o)&&sp(o,i)&&dr(o)!=="body"}):[]}function Zw(e,t,n,i){var o=t==="clippingParents"?Fw(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,d){var u=cu(e,d,i);return c.top=$i(u.top,c.top),c.right=el(u.right,c.right),c.bottom=el(u.bottom,c.bottom),c.left=$i(u.left,c.left),c},cu(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 hp(e){var t=e.reference,n=e.element,i=e.placement,o=i?lr(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 ln:c={x:s,y:t.y-n.height};break;case In:c={x:s,y:t.y+t.height};break;case Ln:c={x:t.x+t.width,y:l};break;case cn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Ad(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 Na:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function Pa(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?dw:l,d=n.rootBoundary,u=d===void 0?ip:d,h=n.elementContext,f=h===void 0?qo:h,m=n.altBoundary,p=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,E=cp(typeof x!="number"?x:dp(x,Ja)),C=f===qo?uw:qo,j=e.rects.popper,I=e.elements[p?C:f],$=Zw(Oi(I)?I:I.contextElement||ti(e.elements.popper),c,u,s),_=Lo(e.elements.reference),b=hp({reference:_,element:j,strategy:"absolute",placement:o}),H=V1(Object.assign({},j,b)),B=f===qo?H:_,y={top:$.top-B.top+E.top,bottom:B.bottom-$.bottom+E.bottom,left:$.left-B.left+E.left,right:B.right-$.right+E.right},T=e.modifiersData.offset;if(f===qo&&T){var L=T[o];Object.keys(y).forEach(function(F){var G=[Ln,In].indexOf(F)>=0?1:-1,R=[ln,In].indexOf(F)>=0?"y":"x";y[F]+=L[R]*G})}return y}function Ww(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?op:c,u=Ao(i),h=u?l?ou:ou.filter(function(p){return Ao(p)===u}):Ja,f=h.filter(function(p){return d.indexOf(p)>=0});f.length===0&&(f=h);var m=f.reduce(function(p,v){return p[v]=Pa(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[lr(v)],p},{});return Object.keys(m).sort(function(p,v){return m[p]-m[v]})}function Gw(e){if(lr(e)===Td)return[];var t=Vs(e);return[lu(e),t,lu(t)]}function Uw(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,E=lr(x),C=E===x,j=c||(C||!p?[Vs(x)]:Gw(x)),I=[x].concat(j).reduce(function(ce,W){return ce.concat(lr(W)===Td?Ww(t,{placement:W,boundary:u,rootBoundary:h,padding:d,flipVariations:p,allowedAutoPlacements:v}):W)},[]),$=t.rects.reference,_=t.rects.popper,b=new Map,H=!0,B=I[0],y=0;y<I.length;y++){var T=I[y],L=lr(T),F=Ao(T)===To,G=[ln,In].indexOf(L)>=0,R=G?"width":"height",Z=Pa(t,{placement:T,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),V=G?F?Ln:cn:F?In:ln;$[R]>_[R]&&(V=Vs(V));var U=Vs(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=T,H=!1;break}b.set(T,O)}if(H)for(var X=p?3:1,ee=function(W){var re=I.find(function(fe){var de=b.get(fe);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 Yw={name:"flip",enabled:!0,phase:"main",fn:Uw,requiresIfExists:["offset"],data:{_skip:!1}};function du(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 uu(e){return[ln,Ln,In,cn].some(function(t){return e[t]>=0})}function Xw(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Pa(t,{elementContext:"reference"}),l=Pa(t,{altBoundary:!0}),c=du(s,i),d=du(l,o,a),u=uu(c),h=uu(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const Jw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xw};function Kw(e,t,n){var i=lr(e),o=[cn,ln].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,[cn,Ln].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function qw(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=op.reduce(function(u,h){return u[h]=Kw(h,t.rects,a),u},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}const Qw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qw};function ex(e){var t=e.state,n=e.name;t.modifiersData[n]=hp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tx={name:"popperOffsets",enabled:!0,phase:"read",fn:ex,data:{}};function nx(e){return e==="x"?"y":"x"}function rx(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,m=f===void 0?!0:f,p=n.tetherOffset,v=p===void 0?0:p,x=Pa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),E=lr(t.placement),C=Ao(t.placement),j=!C,I=Ad(E),$=nx(I),_=t.modifiersData.popperOffsets,b=t.rects.reference,H=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),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(_){if(a){var F,G=I==="y"?ln:cn,R=I==="y"?In:Ln,Z=I==="y"?"height":"width",V=_[I],U=V+x[G],O=V-x[R],X=m?-H[Z]/2:0,ee=C===To?b[Z]:H[Z],q=C===To?-H[Z]:-b[Z],ae=t.elements.arrow,ce=m&&ae?Ld(ae):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lp(),re=W[G],fe=W[R],de=ya(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+fe+y.mainAxis:q+de+fe+y.mainAxis,Ye=t.elements.arrow&&Ka(t.elements.arrow),et=Ye?I==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,S=(F=T==null?void 0:T[I])!=null?F:0,A=V+se-S-et,M=V+xe-S,Y=ya(m?el(U,A):U,V,m?$i(O,M):O);_[I]=Y,L[I]=Y-V}if(l){var J,te=I==="x"?ln:cn,ve=I==="x"?In:Ln,ue=_[$],Re=$==="y"?"height":"width",Pe=ue+x[te],Nt=ue-x[ve],Ge=[ln,cn].indexOf(E)!==-1,un=(J=T==null?void 0:T[$])!=null?J:0,Qn=Ge?Pe:ue-b[Re]-H[Re]-un+y.altAxis,Pt=Ge?ue+b[Re]+H[Re]-un-y.altAxis:Nt,yn=m&&Ge?Ew(Qn,ue,Pt):ya(m?Qn:Pe,ue,m?Pt:Nt);_[$]=yn,L[$]=yn-ue}t.modifiersData[i]=L}}const ix={name:"preventOverflow",enabled:!0,phase:"main",fn:rx,requiresIfExists:["offset"]};function ox(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ax(e){return e===vn(e)||!Mn(e)?Rd(e):ox(e)}function sx(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 lx(e,t,n){n===void 0&&(n=!1);var i=Mn(t),o=Mn(t)&&sx(t),a=ti(t),s=Lo(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((dr(t)!=="body"||Nd(a))&&(l=ax(t)),Mn(t)?(c=Lo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Od(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function cx(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 dx(e){var t=cx(e);return yw.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function ux(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hx(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 hu={placement:"bottom",modifiers:[],strategy:"absolute"};function fu(){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 fx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?hu:o;return function(l,c,d){d===void 0&&(d=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hu,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],f=!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:Oi(l)?Ca(l):l.contextElement?Ca(l.contextElement):[],popper:Ca(c)};var j=dx(hx([].concat(i,u.options.modifiers)));return u.orderedModifiers=j.filter(function(I){return I.enabled}),p(),m.update()},forceUpdate:function(){if(!f){var E=u.elements,C=E.reference,j=E.popper;if(fu(C,j)){u.rects={reference:lx(C,Ka(j),u.options.strategy==="fixed"),popper:Ld(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 I=0;I<u.orderedModifiers.length;I++){if(u.reset===!0){u.reset=!1,I=-1;continue}var $=u.orderedModifiers[I],_=$.fn,b=$.options,H=b===void 0?{}:b,B=$.name;typeof _=="function"&&(u=_({state:u,options:H,name:B,instance:m})||u)}}}},update:ux(function(){return new Promise(function(x){m.forceUpdate(),x(u)})}),destroy:function(){v(),f=!0}};if(!fu(l,c))return m;m.setOptions(d).then(function(x){!f&&d.onFirstUpdate&&d.onFirstUpdate(x)});function p(){u.orderedModifiers.forEach(function(x){var E=x.name,C=x.options,j=C===void 0?{}:C,I=x.effect;if(typeof I=="function"){var $=I({state:u,name:E,instance:m,options:j}),_=function(){};h.push($||_)}})}function v(){h.forEach(function(x){return x()}),h=[]}return m}}var px=[Ow,tx,Aw,Sw,Qw,Yw,ix,Mw,Jw],gx=fx({defaultModifiers:px}),mx=typeof Element<"u",vx=typeof Map=="function",wx=typeof Set=="function",xx=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function zs(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(!zs(e[i],t[i]))return!1;return!0}var a;if(vx&&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(!zs(i.value[1],t.get(i.value[0])))return!1;return!0}if(wx&&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(xx&&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(mx&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!zs(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var bx=function(t,n){try{return zs(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 yx=xn(bx),Qo=window.React,Cx=window.ReactDOM;var _x=[],pr=function(t,n,i){i===void 0&&(i={});var o=Qo.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||_x},s=Qo.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],d=Qo.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var p=m.state,v=Object.keys(p.elements);Cx.flushSync(function(){c({styles:ru(v.map(function(x){return[x,p.styles[x]||{}]})),attributes:ru(v.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),u=Qo.useMemo(function(){var f={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[d,{name:"applyStyles",enabled:!1}])};return yx(o.current,f)?o.current||f:(o.current=f,f)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,d]),h=Qo.useRef();return iu(function(){h.current&&h.current.setOptions(u)},[u]),iu(function(){if(!(t==null||n==null)){var f=i.createPopper||gx,m=f(t,n,u);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,i.createPopper]),{state:h.current?h.current.state:null,styles:l.styles,attributes:l.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},fp={},pp={},Ll={exports:{}},ha={exports:{}};(function(){var e,t,n,i,o,a;typeof performance<"u"&&performance!==null&&performance.now?ha.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ha.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?(ha.exports=function(){return Date.now()-n},n=Date.now()):(ha.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(ut);var Sx=ha.exports,jx=Sx,$r=typeof window>"u"?ut:window,vs=["moz","webkit"],So="AnimationFrame",Ro=$r["request"+So],Ba=$r["cancel"+So]||$r["cancelRequest"+So];for(var ea=0;!Ro&&ea<vs.length;ea++)Ro=$r[vs[ea]+"Request"+So],Ba=$r[vs[ea]+"Cancel"+So]||$r[vs[ea]+"CancelRequest"+So];if(!Ro||!Ba){var Nc=0,pu=0,vi=[],kx=1e3/60;Ro=function(e){if(vi.length===0){var t=jx(),n=Math.max(0,kx-(t-Nc));Nc=n+t,setTimeout(function(){var i=vi.slice(0);vi.length=0;for(var o=0;o<i.length;o++)if(!i[o].cancelled)try{i[o].callback(Nc)}catch(a){setTimeout(function(){throw a},0)}},Math.round(n))}return vi.push({handle:++pu,callback:e,cancelled:!1}),pu},Ba=function(e){for(var t=0;t<vi.length;t++)vi[t].handle===e&&(vi[t].cancelled=!0)}}Ll.exports=function(e){return Ro.call($r,e)};Ll.exports.cancel=function(){Ba.apply($r,arguments)};Ll.exports.polyfill=function(e){e||(e=$r),e.requestAnimationFrame=Ro,e.cancelAnimationFrame=Ba};var Ex=Ll.exports,Al={exports:{}},Pc=null,gu=["Webkit","Moz","O","ms"],Dx=function(t){Pc||(Pc=document.createElement("div"));var n=Pc.style;if(t in n)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),o=gu.length;o>=0;o--){var a=gu[o]+i;if(a in n)return a}return!1},$x=Ix,Hx=/\s/,Mx=/(_|-|\.|:)/,Tx=/([a-z][A-Z]|[A-Z][a-z])/;function Ix(e){return Hx.test(e)?e.toLowerCase():Mx.test(e)?(Ax(e)||e).toLowerCase():Tx.test(e)?Ox(e).toLowerCase():e.toLowerCase()}var Lx=/[\W_]+(.|$)/g;function Ax(e){return e.replace(Lx,function(t,n){return n?" "+n:""})}var Rx=/(.)([A-Z]+)/g;function Ox(e){return e.replace(Rx,function(t,n,i){return n+" "+i.toLowerCase().split("").join(" ")})}var Nx=$x,Px=Bx;function Bx(e){return Nx(e).replace(/[\W_]+(.|$)/g,function(t,n){return n?" "+n:""}).trim()}var Vx=Px,zx=Fx;function Fx(e){return Vx(e).replace(/\s(\w)/g,function(t,n){return n.toUpperCase()})}var Zx={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},Wx=function(e,t){return typeof t=="number"&&!Zx[e]?t+"px":t},Gx=Dx,Ux=zx,Fs={float:"cssFloat"},Yx=Wx;function tl(e,t,n){var i=Fs[t];if(typeof i>"u"&&(i=Jx(t)),i){if(n===void 0)return e.style[i];e.style[i]=Yx(i,n)}}function Xx(e,t){for(var n in t)t.hasOwnProperty(n)&&tl(e,n,t[n])}function Jx(e){var t=Ux(e),n=Gx(t);return Fs[t]=Fs[e]=Fs[n]=n,n}function gp(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:Xx(arguments[0],arguments[1]):tl(arguments[0],arguments[1],arguments[2])}Al.exports=gp;Al.exports.set=gp;Al.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(n,i){return n[i]=tl(e,i||""),n},{}):tl(e,t||"")};var mp=Al.exports,vp={exports:{}},Kx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qx=Kx,Qx=qx;function wp(){}function xp(){}xp.resetWarningCache=wp;var e8=function(){function e(i,o,a,s,l,c){if(c!==Qx){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:xp,resetWarningCache:wp};return n.PropTypes=n,n};vp.exports=e8();var t8=vp.exports,bp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}})(bp);var yp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=mp,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}})(yp);var Cp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}})(Cp);var _p={};(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)}})(_p);var Sp={};(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)}})(Sp);var bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};bn.containerStyleAutoHeight={height:"auto"};bn.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};bn.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};bn.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};bn.trackHorizontalStyleDefault={position:"absolute",height:6};bn.trackVerticalStyleDefault={position:"absolute",width:6};bn.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};bn.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};bn.disableSelectStyle={userSelect:"none"};bn.disableSelectStyleReset={userSelect:""};var zi={};Object.defineProperty(zi,"__esModule",{value:!0});var Qr=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=i8;zi.renderTrackHorizontalDefault=o8;zi.renderTrackVerticalDefault=a8;zi.renderThumbHorizontalDefault=s8;zi.renderThumbVerticalDefault=l8;var n8=window.React,qa=r8(n8);function r8(e){return e&&e.__esModule?e:{default:e}}function Rl(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 i8(e){return qa.default.createElement("div",e)}function o8(e){var t=e.style,n=Rl(e,["style"]),i=Qr({},t,{right:2,bottom:2,left:2,borderRadius:3});return qa.default.createElement("div",Qr({style:i},n))}function a8(e){var t=e.style,n=Rl(e,["style"]),i=Qr({},t,{right:2,bottom:2,top:2,borderRadius:3});return qa.default.createElement("div",Qr({style:i},n))}function s8(e){var t=e.style,n=Rl(e,["style"]),i=Qr({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return qa.default.createElement("div",Qr({style:i},n))}function l8(e){var t=e.style,n=Rl(e,["style"]),i=Qr({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return qa.default.createElement("div",Qr({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=Ex,o=_(i),a=mp,s=_(a),l=window.React,c=t8,d=_(c),u=bp,h=_(u),f=yp,m=_(f),p=Cp,v=_(p),x=_p,E=_(x),C=Sp,j=_(C),I=bn,$=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 H(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 T=function(L){y(F,L);function F(G){var R;H(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,fe=re===void 0?0:re;return{left:V/(ee-W)||0,top:O/(ae-fe)||0,scrollLeft:V,scrollTop:O,scrollWidth:ee,scrollHeight:ae,clientWidth:W,clientHeight:fe}}},{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,I.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=v.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,I.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,fe=-ce+q-re;this.view.scrollTop=this.getScrollTopForOffset(fe)}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)"},fe=O.scrollTop,de=O.clientHeight,se=O.scrollHeight,xe=(0,j.default)(this.trackVertical),Ye=this.getThumbVerticalHeight(),et=fe/(se-de)*(xe-Ye),S={height:Ye,transform:"translateY("+et+"px)"};if(U){var A={visibility:q>ee?"visible":"hidden"},M={visibility:se>de?"visible":"hidden"};(0,s.default)(this.trackHorizontal,A),(0,s.default)(this.trackVertical,M)}(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,fe=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({},I.containerStyleDefault,fe&&t({},I.containerStyleAutoHeight,{minHeight:de,maxHeight:se}),xe),M=t({},I.viewStyleDefault,{marginRight:Z?-Z:0,marginBottom:Z?-Z:0},fe&&t({},I.viewStyleAutoHeight,{minHeight:(0,h.default)(de)?"calc("+de+" + "+Z+"px)":de+Z,maxHeight:(0,h.default)(se)?"calc("+se+" + "+Z+"px)":se+Z}),fe&&re&&!S&&{minHeight:de,maxHeight:se},re&&!S&&I.viewStyleUniversalInitial),Y={transition:"opacity "+W+"ms",opacity:0},J=t({},I.trackHorizontalStyleDefault,ce&&Y,(!Z||re&&!S)&&{display:"none"}),te=t({},I.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:M}),{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:I.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:I.thumbVerticalStyleDefault}),{ref:function(ue){R.thumbVertical=ue}}))])}}]),F}(l.Component);e.default=T,T.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},T.defaultProps={renderView:$.renderViewDefault,renderTrackHorizontal:$.renderTrackHorizontalDefault,renderTrackVertical:$.renderTrackVerticalDefault,renderThumbHorizontal:$.renderThumbHorizontalDefault,renderThumbVertical:$.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(pp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=pp,n=i(t);function i(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default})(fp);const c8=xn(fp);function Lr({children:e,...t}){return r.jsx(c8,{...t,...window.brandyCustomizerData.rtl?{renderView:n=>r.jsx("div",{...n,style:{...n.style,marginLeft:n.style.marginRight,marginRight:0}})}:{},children:e})}const d8=window.React.useEffect,u8=window.React.useRef,Bc=window.React.useState;function St({title:e="",children:t,style:n={}}){const[i,o]=Bc(null),[a,s]=Bc(null),{styles:l,attributes:c}=pr(i,a),[d,u]=Bc(!1),h=()=>{u(!0)},f=()=>{u(!1)};if(!e)return!1;const m=u8(null);return d8(()=>{setTimeout(()=>{o(m.current)},300)},[m.current]),r.jsxs("div",{className:"brandy-with-tooltip",children:[r.jsx("div",{className:"brandy-tooltip-activator",onMouseMove:()=>{h()},onMouseLeave:()=>{f()},ref:m,children:t}),r.jsx(h8,{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 h8=w("div").withConfig({displayName:"Tooltip___StyledDiv",componentId:"sc-gmfqn3-0"})(["",""],e=>e.$_css);const f8=window.React.useEffect,Vc=window.React.useMemo,zc=window.React.useState,p8=38,jp=5,kp=5;function jt({options:e,selected:t,onChange:n=()=>!1,style:i={},popupHeight:o=null}){const[a,s]=zc(null),[l,c]=zc(null),{styles:d,attributes:u}=pr(a,l),[h,f]=zc(!1),m=Vc(()=>(a==null?void 0:a.getBoundingClientRect().width)??0,[a]),p=()=>{f(j=>!j)},v=()=>{f(!1)},x=Vc(()=>e.find(I=>I.value===t),[e,t]),E=j=>{const I=j.currentTarget.dataset.value;n(I??"")};f8(()=>{const j=I=>{(a==null||l==null)&&v(),!(a!=null&&a.contains(I.target))&&!(l!=null&&l.contains(I.target))&&v()};return window.jQuery(document).on("click","body",j),()=>{window.jQuery(document).off("click","body",j)}},[a,l]);const C=Vc(()=>{if(o)return o;const j=Math.min(e.length,4);return j*p8+(j-1)*jp+kp*2},[e,o]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:Ae(["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"})})})]}),h&&r.jsx("div",{ref:c,style:{...d.popper,width:m,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...u.popper,className:Ae(["my-2  z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Lr,{autoHide:!0,className:"bg-gutenberg-white",style:{height:C},children:r.jsx(g8,{className:"flex flex-col",children:e.map(j=>r.jsxs(m8,{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:"rgba(34, 113, 177, 0.03)","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity, 1))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},t===j.value&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"}],children:[r.jsx(v8,{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 g8=w("div")`
                padding: ${kp}px;
                gap: ${jp}px;
              `,m8=w("div")`${e=>e.$_css}`,v8=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 w8=window.React,x8=window.React.useEffect,b8=window.React.useState,Va=w8.forwardRef(({id:e,className:t,checked:n=!1,disabled:i=!1,size:o="sm",onChange:a=()=>!1},s)=>{const[l,c]=b8(!1),d=u=>{u.preventDefault(),u.stopPropagation(),a(!n)};return x8(()=>{const u=()=>{c(!1)};return window.addEventListener("mouseup",u),()=>{window.removeEventListener("mouseup",u)}},[]),r.jsx("button",{id:e,type:"button",className:Ae(["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"})})}),ht=window.React,Hi=window.React.useRef,y8=window.React.useMemo,nl=window.React.useEffect,C8=window.React.useState,_8=window.React.useCallback,S8=window.React.useLayoutEffect;function Ol(){return(Ol=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 Ep(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 z1(e){var t=Hi(e),n=Hi(function(i){t.current&&t.current(i)});return t.current=e,n.current}var Oo=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},_a=function(e){return"touches"in e},F1=function(e){return e&&e.ownerDocument.defaultView||self},mu=function(e,t,n){var i=e.getBoundingClientRect(),o=_a(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:Oo((o.pageX-(i.left+F1(e).pageXOffset))/i.width),top:Oo((o.pageY-(i.top+F1(e).pageYOffset))/i.height)}},vu=function(e){!_a(e)&&e.preventDefault()},Pd=ht.memo(function(e){var t=e.onMove,n=e.onKey,i=Ep(e,["onMove","onKey"]),o=Hi(null),a=z1(t),s=z1(n),l=Hi(null),c=Hi(!1),d=y8(function(){var m=function(x){vu(x),(_a(x)?x.touches.length>0:x.buttons>0)&&o.current?a(mu(o.current,x,l.current)):v(!1)},p=function(){return v(!1)};function v(x){var E=c.current,C=F1(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&&(vu(E),!function(I,$){return $&&!_a(I)}(E,c.current)&&C)){if(_a(E)){c.current=!0;var j=E.changedTouches||[];j.length&&(l.current=j[0].identifier)}C.focus(),a(mu(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],h=d[1],f=d[2];return nl(function(){return f},[f]),ht.createElement("div",Ol({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),Nl=function(e){return e.filter(Boolean).join(" ")},Bd=function(e){var t=e.color,n=e.left,i=e.top,o=i===void 0?.5:i,a=Nl(["react-colorful__pointer",e.className]);return ht.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},ht.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},$t=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},j8=function(e){return $8(Z1(e))},Z1=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?$t(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?$t(parseInt(e.substring(6,8),16)/255,2):1}},k8=function(e){return D8(E8(e))},Dp=function(e){var t=e.s,n=e.v,i=e.a,o=(200-t)*n/100;return{h:$t(e.h),s:$t(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:$t(o/2),a:$t(i,2)}},W1=function(e){var t=Dp(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Fc=function(e){var t=Dp(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},E8=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:$t(255*[i,l,s,s,c,i][d]),g:$t(255*[c,i,i,l,s,s][d]),b:$t(255*[s,s,c,i,i,l][d]),a:$t(o,2)}},ws=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},D8=function(e){var t=e.r,n=e.g,i=e.b,o=e.a,a=o<1?ws($t(255*o)):"";return"#"+ws(t)+ws(n)+ws(i)+a},$8=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:$t(60*(l<0?l+6:l)),s:$t(a?s/a*100:0),v:$t(a/255*100),a:o}},H8=ht.memo(function(e){var t=e.hue,n=e.onChange,i=Nl(["react-colorful__hue",e.className]);return ht.createElement("div",{className:i},ht.createElement(Pd,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Oo(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":$t(t),"aria-valuemax":"360","aria-valuemin":"0"},ht.createElement(Bd,{className:"react-colorful__hue-pointer",left:t/360,color:W1({h:t,s:100,v:100,a:1})})))}),M8=ht.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:W1({h:t.h,s:100,v:100,a:1})};return ht.createElement("div",{className:"react-colorful__saturation",style:i},ht.createElement(Pd,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Oo(t.s+100*o.left,0,100),v:Oo(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+$t(t.s)+"%, Brightness "+$t(t.v)+"%"},ht.createElement(Bd,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:W1(t)})))}),$p=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},T8=function(e,t){return e.toLowerCase()===t.toLowerCase()||$p(Z1(e),Z1(t))};function I8(e,t,n){var i=z1(n),o=C8(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=Hi({color:t,hsva:a});nl(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},s(d)}},[t,e]),nl(function(){var d;$p(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=_8(function(d){s(function(u){return Object.assign({},u,d)})},[]);return[a,c]}var L8=typeof window<"u"?S8:nl,A8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},wu=new Map,R8=function(e){L8(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!wu.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}`,wu.set(t,n);var i=A8();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},O8=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Fc(Object.assign({},n,{a:0}))+", "+Fc(Object.assign({},n,{a:1}))+")"},a=Nl(["react-colorful__alpha",t]),s=$t(100*n.a);return ht.createElement("div",{className:a},ht.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),ht.createElement(Pd,{onMove:function(l){i({a:l.left})},onKey:function(l){i({a:Oo(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},ht.createElement(Bd,{className:"react-colorful__alpha-pointer",left:n.a,color:Fc(n)})))},N8=function(e){var t=e.className,n=e.colorModel,i=e.color,o=i===void 0?n.defaultColor:i,a=e.onChange,s=Ep(e,["className","colorModel","color","onChange"]),l=Hi(null);R8(l);var c=I8(n,o,a),d=c[0],u=c[1],h=Nl(["react-colorful",t]);return ht.createElement("div",Ol({},s,{ref:l,className:h}),ht.createElement(M8,{hsva:d,onChange:u}),ht.createElement(H8,{hue:d.h,onChange:u}),ht.createElement(O8,{hsva:d,onChange:u,className:"react-colorful__last-control"}))},P8={defaultColor:"0001",toHsva:j8,fromHsva:k8,equal:T8},B8=function(e){return ht.createElement(N8,Ol({},e,{colorModel:P8}))};function Pl(){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 Hp(){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 V8(){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 Mp(){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 Tp(){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 z8(){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 F8(){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 Ip(){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 Z8(){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 W8=window.React.forwardRef;let Zc,ta;const ft=W8(({onChange:e=()=>!1,type:t="text",className:n="",prefix:i=!1,wrapperStyle:o={},...a},s)=>{const l=f=>{let m=f.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(ta);function f(){let m=++a.value;e(Math.min(m,a.max??Number.MAX_SAFE_INTEGER))}f(),ta=setTimeout(()=>{Zc=setInterval(()=>{f()},80)},400)},u=()=>{clearTimeout(ta);function f(){let m=--a.value;e(Math.max(m,a.min??Number.MIN_SAFE_INTEGER))}f(),ta=setTimeout(()=>{Zc=setInterval(()=>{f()},80)},400)},h=()=>{clearInterval(Zc),clearTimeout(ta)};return r.jsxs(G8,{className:Ae(["brandy-input group",n]),style:o,ref:s,$_css:[{position:"relative",display:"flex",minHeight:"30px",alignItems:"center",gap:"0.5rem",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",lineHeight:"1","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s","&:focus-within":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))"},"&:focus":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},`
          &:hover {
            .brandy-input-access-arrow {
              display: block;
            }
          }
        `],children:[i,r.jsx("input",{className:"w-full bg-inherit p-0 border-0 focus:outline-none focus:border-0 focus:shadow-none",...a,type:t,onChange:l,onBlur:c}),t==="number"&&r.jsxs(r.Fragment,{children:[r.jsx(U8,{className:"brandy-input-access-arrow",onMouseUp:h,onMouseLeave:h,onMouseDown:d,$_css2:[{position:"absolute",right:"3px",top:"calc(50% - 12px)",display:"none",cursor:"pointer",borderRadius:"3px 3px 0 0",padding:"5px 4px 3px 4px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(241 241 241 / var(--tw-bg-opacity, 1))"}},`
                &:hover {
                  svg path {
                    fill: #5a6d80;
                  }
                }
              `],children:r.jsx("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4L4 3.49691e-07L0 4L8 4Z",fill:"#C6D4E1"})})}),r.jsx(Y8,{className:"brandy-input-access-arrow",onMouseUp:h,onMouseLeave:h,onMouseDown:u,$_css3:[{position:"absolute",right:"3px",top:"calc(50% + 1px)",display:"none",cursor:"pointer",borderRadius:"0 0 3px 3px",padding:"3px 4px 5px 4px",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(241 241 241 / var(--tw-bg-opacity, 1))"}},`
                &:hover {
                  svg path {
                    fill: #5a6d80;
                  }
                }
              `],children:r.jsx("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L4 4L8 0L0 0Z",fill:"#C6D4E1"})})})]})]})});var G8=w("div")`${e=>e.$_css}`,U8=w("span")`${e=>e.$_css2}`,Y8=w("span").withConfig({displayName:"Input___StyledSpan2",componentId:"sc-aibt7d-0"})(["",""],e=>e.$_css3);function Lp(){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 G1=e=>{if(!e||typeof e!="string")return e;const t=e.match(/^light-dark\(\s*([^,]+)\s*,\s*([^)]+)\s*\)$/);if(!t)return e;const[,n,i]=t;return U1()==="dark"?i.trim():n.trim()},U1=()=>{var n;const e=document.getElementById("customize-preview");if((n=e==null?void 0:e.contentDocument)!=null&&n.documentElement){const i=e.contentDocument.documentElement.getAttribute("data-theme");if(i==="dark"||i==="light")return i}const t=localStorage.getItem("brandy-color-scheme");return t==="dark"||t==="light"?t:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},Ap=()=>{const e=window.brandyCustomizerData.theme_settings.color.palette.theme.map(n=>({...n,color:G1(n.color),value:`var(--wp--preset--color--${n.slug})`})),t=window.brandyCustomizerData.theme_settings.color.palette.default.map(n=>({...n,color:G1(n.color),value:`var(--wp--preset--color--${n.slug})`}));return{theme:e,palette:t}},Vd=e=>{if(e==null)return{isGlobal:!1,color:""};const t=Ap(),n=[...t.theme,...t.palette].find(o=>o.value==e);return n?{isGlobal:!0,color:n.color}:e.includes("var(")?{isGlobal:!0,color:e}:{isGlobal:!1,color:G1(e)}},X8=window.React.useEffect,J8=window.React.useState,xu="brandy-color-scheme-change",zd=()=>{const[e,t]=J8(()=>U1());return X8(()=>{const n=()=>{const c=U1();t(c)};window.addEventListener(xu,n);const i=c=>{var d;((d=c.data)==null?void 0:d.type)==="brandy-color-scheme-change"&&n()};window.addEventListener("message",i);let o=null,a=null;const s=()=>{var u;const c=document.getElementById("customize-preview"),d=c==null?void 0:c.querySelector("iframe");if(d)try{const h=d.contentDocument||((u=d.contentWindow)==null?void 0:u.document);if(!(h!=null&&h.documentElement)||a===h)return;a=h,o==null||o.disconnect(),o=new MutationObserver(f=>{for(const m of f)if(m.type==="attributes"&&m.attributeName==="data-theme"){n();break}}),o.observe(h.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}catch{}};s();const l=setInterval(s,1e3);return()=>{window.removeEventListener(xu,n),window.removeEventListener("message",i),o==null||o.disconnect(),clearInterval(l)}},[]),e};function P(e){var t;return(((t=window.brandyCustomizerData)==null?void 0:t.i18n)??{})[e]??e}var K8="Expected a function",bu=0/0,q8="[object Symbol]",Q8=/^\s+|\s+$/g,e6=/^[-+]0x[0-9a-f]+$/i,t6=/^0b[01]+$/i,n6=/^0o[0-7]+$/i,r6=parseInt,i6=typeof ut=="object"&&ut&&ut.Object===Object&&ut,o6=typeof self=="object"&&self&&self.Object===Object&&self,a6=i6||o6||Function("return this")(),s6=Object.prototype,l6=s6.toString,c6=Math.max,d6=Math.min,Wc=function(){return a6.Date.now()};function u6(e,t,n){var i,o,a,s,l,c,d=0,u=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(K8);t=yu(t)||0,Y1(n)&&(u=!!n.leading,h="maxWait"in n,a=h?c6(yu(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function m(_){var b=i,H=o;return i=o=void 0,d=_,s=e.apply(H,b),s}function p(_){return d=_,l=setTimeout(E,t),u?m(_):s}function v(_){var b=_-c,H=_-d,B=t-b;return h?d6(B,a-H):B}function x(_){var b=_-c,H=_-d;return c===void 0||b>=t||b<0||h&&H>=a}function E(){var _=Wc();if(x(_))return C(_);l=setTimeout(E,v(_))}function C(_){return l=void 0,f&&i?m(_):(i=o=void 0,s)}function j(){l!==void 0&&clearTimeout(l),d=0,i=c=o=l=void 0}function I(){return l===void 0?s:C(Wc())}function $(){var _=Wc(),b=x(_);if(i=arguments,o=this,c=_,b){if(l===void 0)return p(c);if(h)return l=setTimeout(E,t),m(c)}return l===void 0&&(l=setTimeout(E,t)),s}return $.cancel=j,$.flush=I,$}function Y1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function h6(e){return!!e&&typeof e=="object"}function f6(e){return typeof e=="symbol"||h6(e)&&l6.call(e)==q8}function yu(e){if(typeof e=="number")return e;if(f6(e))return bu;if(Y1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Q8,"");var n=t6.test(e);return n||n6.test(e)?r6(e.slice(2),n?2:8):e6.test(e)?bu:+e}var p6=u6;const No=xn(p6);function Fd(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,Ut=window.React.useState,Yt=window.React.useEffect,Fi=window.React.useRef,g6=window.React.memo,Cu=window.React.useCallback,_u=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 m6(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 Rp(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(It(arguments[t]));return e}Fd(`.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 v6(e){var t={exports:{}};return e(t,t.exports),t.exports}var it=v6(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 M=u(S);this._originalInput=S,this._r=M.r,this._g=M.g,this._b=M.b,this._a=M.a,this._roundA=a(100*this._a)/100,this._format=A.format||M.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=M.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,M,Y,J,te,ve;return A=S.r/255,M=S.g/255,Y=S.b/255,A<=.03928?J=A/12.92:J=t.pow((A+.055)/1.055,2.4),M<=.03928?te=M/12.92:te=t.pow((M+.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),M=a(S.s*100),Y=a(S.v*100);return this._a==1?"hsv("+A+", "+M+"%, "+Y+"%)":"hsva("+A+", "+M+"%, "+Y+"%, "+this._roundA+")"},toHsl:function(){var S=f(this._r,this._g,this._b);return{h:S.h*360,s:S.s,l:S.l,a:this._a}},toHslString:function(){var S=f(this._r,this._g,this._b),A=a(S.h*360),M=a(S.s*100),Y=a(S.l*100);return this._a==1?"hsl("+A+", "+M+"%, "+Y+"%)":"hsla("+A+", "+M+"%, "+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),M=A,Y=this._gradientType?"GradientType = 1, ":"";if(S){var J=d(S);M="#"+C(J._r,J._g,J._b,J._a)}return"progid:DXImageTransform.Microsoft.gradient("+Y+"startColorstr="+A+",endColorstr="+M+")"},toString:function(S){var A=!!S;S=S||this._format;var M=!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"&&(M=this.toRgbString()),S==="prgb"&&(M=this.toPercentageRgbString()),(S==="hex"||S==="hex6")&&(M=this.toHexString()),S==="hex3"&&(M=this.toHexString(!0)),S==="hex4"&&(M=this.toHex8String(!0)),S==="hex8"&&(M=this.toHex8String()),S==="name"&&(M=this.toName()),S==="hsl"&&(M=this.toHslString()),S==="hsv"&&(M=this.toHsvString()),M||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(S,A){var M=S.apply(null,[this].concat([].slice.call(A)));return this._r=M._r,this._g=M._g,this._b=M._b,this.setAlpha(M._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(j,arguments)},saturate:function(){return this._applyModification(I,arguments)},greyscale:function(){return this._applyModification($,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(T,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},d.fromRatio=function(S,A){if(typeof S=="object"){var M={};for(var Y in S)S.hasOwnProperty(Y)&&(Y==="a"?M[Y]=S[Y]:M[Y]=re(S[Y]));S=M}return d(S,A)};function u(S){var A={r:0,g:0,b:0},M=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=h(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")&&(M=S.a)),M=O(M),{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:M}}function h(S,A,M){return{r:X(S,255)*255,g:X(A,255)*255,b:X(M,255)*255}}function f(S,A,M){S=X(S,255),A=X(A,255),M=X(M,255);var Y=l(S,A,M),J=s(S,A,M),te,ve,ue=(Y+J)/2;if(Y==J)te=ve=0;else{var Re=Y-J;switch(ve=ue>.5?Re/(2-Y-J):Re/(Y+J),Y){case S:te=(A-M)/Re+(A<M?6:0);break;case A:te=(M-S)/Re+2;break;case M:te=(S-A)/Re+4;break}te/=6}return{h:te,s:ve,l:ue}}function m(S,A,M){var Y,J,te;S=X(S,360),A=X(A,100),M=X(M,100);function ve(Pe,Nt,Ge){return Ge<0&&(Ge+=1),Ge>1&&(Ge-=1),Ge<1/6?Pe+(Nt-Pe)*6*Ge:Ge<1/2?Nt:Ge<2/3?Pe+(Nt-Pe)*(2/3-Ge)*6:Pe}if(A===0)Y=J=te=M;else{var ue=M<.5?M*(1+A):M+A-M*A,Re=2*M-ue;Y=ve(Re,ue,S+1/3),J=ve(Re,ue,S),te=ve(Re,ue,S-1/3)}return{r:Y*255,g:J*255,b:te*255}}function p(S,A,M){S=X(S,255),A=X(A,255),M=X(M,255);var Y=l(S,A,M),J=s(S,A,M),te,ve,ue=Y,Re=Y-J;if(ve=Y===0?0:Re/Y,Y==J)te=0;else{switch(Y){case S:te=(A-M)/Re+(A<M?6:0);break;case A:te=(M-S)/Re+2;break;case M:te=(S-A)/Re+4;break}te/=6}return{h:te,s:ve,v:ue}}function v(S,A,M){S=X(S,360)*6,A=X(A,100),M=X(M,100);var Y=t.floor(S),J=S-Y,te=M*(1-A),ve=M*(1-J*A),ue=M*(1-(1-J)*A),Re=Y%6,Pe=[M,ve,te,te,ue,M][Re],Nt=[ue,M,M,ve,te,te][Re],Ge=[te,te,ue,M,M,ve][Re];return{r:Pe*255,g:Nt*255,b:Ge*255}}function x(S,A,M,Y){var J=[W(a(S).toString(16)),W(a(A).toString(16)),W(a(M).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,M,Y,J){var te=[W(a(S).toString(16)),W(a(A).toString(16)),W(a(M).toString(16)),W(fe(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,M,Y){var J=[W(fe(Y)),W(a(S).toString(16)),W(a(A).toString(16)),W(a(M).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 M=d(S).toHsl();return M.s-=A/100,M.s=ee(M.s),d(M)}function I(S,A){A=A===0?0:A||10;var M=d(S).toHsl();return M.s+=A/100,M.s=ee(M.s),d(M)}function $(S){return d(S).desaturate(100)}function _(S,A){A=A===0?0:A||10;var M=d(S).toHsl();return M.l+=A/100,M.l=ee(M.l),d(M)}function b(S,A){A=A===0?0:A||10;var M=d(S).toRgb();return M.r=l(0,s(255,M.r-a(255*-(A/100)))),M.g=l(0,s(255,M.g-a(255*-(A/100)))),M.b=l(0,s(255,M.b-a(255*-(A/100)))),d(M)}function H(S,A){A=A===0?0:A||10;var M=d(S).toHsl();return M.l-=A/100,M.l=ee(M.l),d(M)}function B(S,A){var M=d(S).toHsl(),Y=(M.h+A)%360;return M.h=Y<0?360+Y:Y,d(M)}function y(S){var A=d(S).toHsl();return A.h=(A.h+180)%360,d(A)}function T(S){var A=d(S).toHsl(),M=A.h;return[d(S),d({h:(M+120)%360,s:A.s,l:A.l}),d({h:(M+240)%360,s:A.s,l:A.l})]}function L(S){var A=d(S).toHsl(),M=A.h;return[d(S),d({h:(M+90)%360,s:A.s,l:A.l}),d({h:(M+180)%360,s:A.s,l:A.l}),d({h:(M+270)%360,s:A.s,l:A.l})]}function F(S){var A=d(S).toHsl(),M=A.h;return[d(S),d({h:(M+72)%360,s:A.s,l:A.l}),d({h:(M+216)%360,s:A.s,l:A.l})]}function G(S,A,M){A=A||6,M=M||30;var Y=d(S).toHsl(),J=360/M,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 M=d(S).toHsv(),Y=M.h,J=M.s,te=M.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,M){M=M===0?0:M||50;var Y=d(S).toRgb(),J=d(A).toRgb(),te=M/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 M=d(S),Y=d(A);return(t.max(M.getLuminance(),Y.getLuminance())+.05)/(t.min(M.getLuminance(),Y.getLuminance())+.05)},d.isReadable=function(S,A,M){var Y=d.readability(S,A),J,te;switch(te=!1,J=et(M),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,M){var Y=null,J=0,te,ve,ue,Re;M=M||{},ve=M.includeFallbackColors,ue=M.level,Re=M.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:Re})||!ve?Y:(M.includeFallbackColors=!1,d.mostReadable(S,["#fff","#000"],M))};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 M in S)S.hasOwnProperty(M)&&(A[S[M]]=M);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 M=ce(S);return S=s(A,l(0,parseFloat(S))),M&&(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 fe(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+%?",M="(?:"+A+")|(?:"+S+")",Y="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",J="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?";return{CSS_UNIT:new RegExp(M),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 M;return(M=se.rgb.exec(S))?{r:M[1],g:M[2],b:M[3]}:(M=se.rgba.exec(S))?{r:M[1],g:M[2],b:M[3],a:M[4]}:(M=se.hsl.exec(S))?{h:M[1],s:M[2],l:M[3]}:(M=se.hsla.exec(S))?{h:M[1],s:M[2],l:M[3],a:M[4]}:(M=se.hsv.exec(S))?{h:M[1],s:M[2],v:M[3]}:(M=se.hsva.exec(S))?{h:M[1],s:M[2],v:M[3],a:M[4]}:(M=se.hex8.exec(S))?{r:q(M[1]),g:q(M[2]),b:q(M[3]),a:de(M[4]),format:A?"name":"hex8"}:(M=se.hex6.exec(S))?{r:q(M[1]),g:q(M[2]),b:q(M[3]),format:A?"name":"hex"}:(M=se.hex4.exec(S))?{r:q(M[1]+""+M[1]),g:q(M[2]+""+M[2]),b:q(M[3]+""+M[3]),a:de(M[4]+""+M[4]),format:A?"name":"hex8"}:(M=se.hex3.exec(S))?{r:q(M[1]+""+M[1]),g:q(M[2]+""+M[2]),b:q(M[3]+""+M[3]),format:A?"name":"hex"}:!1}function et(S){var A,M;return S=S||{level:"AA",size:"small"},A=(S.level||"AA").toUpperCase(),M=(S.size||"small").toLowerCase(),A!=="AA"&&A!=="AAA"&&(A="AA"),M!=="small"&&M!=="large"&&(M="small"),{level:A,size:M}}e.exports?e.exports=d:window.tinycolor=d})(Math)}),X1=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},Op=function(e,t){var n=It(Ut(e),2),i=n[0],o=n[1];return Yt(function(){var a=setTimeout(function(){o(e)},t);return function(){clearTimeout(a)}},[e,t]),i},w6=[{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"}],Np=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=Pp(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],h=d[2];if(!u||!h)return console.warn("Incorrect gradient value"),o;var f=(t=w6.find(function(v){return v.name===c}))===null||t===void 0?void 0:t.angle,m=u==="linear"?"180":"circle at center",p=f||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})}}},Sa=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},Dr=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 Sa(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")"),typeof n=="string"&&(a="linear-gradient("+n+", "+t.map(function(s){return Sa(s[0],i,o)+" "+Math.round(s[1]*100).toFixed(2)+"%"})+")");break;case"radial":a="radial-gradient("+n+", "+t.map(function(s){return Sa(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})}},Fa=function(e){if(!Array.isArray(e)||e.length<3||e.length>4)return"";var t=e.map(function(n){var i=(+n).toString(16);return i.length===1&&(i="0"+i),i},[]);return~t.indexOf("NaN")?"":"#"+t.join("")},x6=function(e){return!!Fa(e)},ao=function(e,t){return new RegExp(e.reduce(function(n,i){return n+(typeof i=="string"?i:i.source)},""),t)},b6=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=ao(["(?:",a,"|","(?:rgb|hsl)",s,"|","(?:rgba|hsla)",l,"|",d,")"],""),h=ao([u,"(?:\\s+",c,"(?:\\s+",c,")?)?"],""),f=ao(["(?:",h,o,")*",h],""),m=ao(["(?:(",t,")|",n,"|",i,")"],""),p=ao(["(?:(",m,")",o,")?(",f,")"],e),v=ao(["\\s*(",u,")","(?:\\s+","(",c,"))?","(?:",o,"\\s*)?"],e);return{gradientSearch:p,colorStopSearch:v}},y6=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},Pp=function(e){var t=b6(),n,i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/,o=i.exec(e);return o!==null?(n=y6(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},Zd=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}(),C6=200,_6=150,S6=function(e){var t=e.rootPrefixCls,n=e.color,i=e.colorBoardHeight,o=e.onChange,a=e.setChange,s=Fi(),l=function(){a(!1),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",p)},c=function(){a(!1),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",f)};Yt(function(){return function(){l(),c()}},[]);var d=function(_){_.preventDefault();var b=_.buttons;if(b===1){l();var H=_.clientX,B=_.clientY;x({x:H,y:B}),window.addEventListener("mousemove",m),window.addEventListener("mouseup",p)}},u=function(_){if(_.cancelable&&_.preventDefault(),_.touches.length===1){c();var b=_.targetTouches[0].clientX,H=_.targetTouches[0].clientY;x({x:b,y:H}),window.addEventListener("touchmove",h,{passive:!1}),window.addEventListener("touchend",f,{passive:!1})}},h=function(_){_.cancelable&&_.preventDefault();var b=_.targetTouches[0].clientX,H=_.targetTouches[0].clientY;x({x:b,y:H})},f=function(){c()},m=function(_){_.preventDefault();var b=_.clientX,H=_.clientY;x({x:b,y:H})},p=function(_){_.preventDefault();var b=_.clientX,H=_.clientY;x({x:b,y:H}),l()},v=function(){return t+"-board"},x=function(_){var b=s&&s.current.getBoundingClientRect(),H=_.x-b.left,B=_.y-b.top,y=b.width||C6,T=b.height||_6;H=Math.max(0,H),H=Math.min(H,y),B=Math.max(0,B),B=Math.min(B,T),n.saturation=H/y,n.brightness=1-B/T,o(n)},E=v(),C={h:n.hue,s:1,v:1},j=new Zd(C).toHexString(),I=n.saturation*100,$=(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("+I+"% - 7px)",top:"calc("+$+"% - 7px)",backgroundColor:n.toHexString()}}),ne.createElement("div",{className:E+"-handler",onMouseDown:d,onTouchStart:u}))},j6=function(e){var t=e.rootPrefixCls,n=e.color,i=e.onChange,o=e.setChange,a=Fi(),s=function(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",u)},l=function(){o(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",m)};Yt(function(){return function(){s(),l()}},[]);var c=function($){$.preventDefault();var _=$.clientX,b=$.clientY;v({x:_,y:b}),window.addEventListener("mousemove",d),window.addEventListener("mouseup",u)},d=function($){var _=$.clientX,b=$.clientY;v({x:_,y:b})},u=function($){var _=$.clientX,b=$.clientY;v({x:_,y:b}),o(!1),s()},h=function($){if($.cancelable&&$.preventDefault(),$.touches.length===1){l();var _=$.targetTouches[0].clientX,b=$.targetTouches[0].clientY;v({x:_,y:b}),window.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("touchend",m,{passive:!1})}},f=function($){$.cancelable&&$.preventDefault();var _=$.targetTouches[0].clientX,b=$.targetTouches[0].clientY;v({x:_,y:b})},m=function(){l()},p=function(){return t+"-ribbon"},v=function($){var _=a&&a.current.getBoundingClientRect(),b=_.width,H=$.x-_.left;H=Math.max(0,H),H=Math.min(H,b);var B=H/b,y=B*360;n.hue=y,i(n)},x={h:n.hue,s:1,v:1},E=new Zd(x).toHexString(),C=p(),j=n.hue,I=j/360*100;return ne.createElement("div",{className:C,ref:a,onMouseDown:c,onTouchStart:h},ne.createElement("div",{className:"color-picker-panel-ribbon-bg"}),ne.createElement("span",{style:{left:I+"%",backgroundColor:E}}),ne.createElement("div",{className:C+"-handler"}))},Su=function(e,t,n,i){return"rgba("+[e,t,n,i/100].join(",")+")"},k6=function(e){var t=e.rootPrefixCls,n=e.color,i=e.alpha,o=e.onChange,a=e.setChange,s=Fi(),l=function(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},c=function(){a(!1),window.removeEventListener("touchmove",m),window.removeEventListener("touchend",p)};Yt(function(){return function(){l(),c()}},[]);var d=function(I){var $=I.clientX,_=I.clientY;E({x:$,y:_}),window.addEventListener("mousemove",u),window.addEventListener("mouseup",h)},u=function(I){var $=I.clientX,_=I.clientY;E({x:$,y:_})},h=function(I){var $=I.clientX,_=I.clientY;E({x:$,y:_}),a(!1),l()},f=function(I){if(I.cancelable&&I.preventDefault(),I.touches.length===1){c();var $=I.targetTouches[0].clientX,_=I.targetTouches[0].clientY;E({x:$,y:_}),window.addEventListener("touchmove",m,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}},m=function(I){I.cancelable&&I.preventDefault();var $=I.targetTouches[0].clientX,_=I.targetTouches[0].clientY;E({x:$,y:_})},p=function(){c()},v=function(){var I=n.red,$=n.green,_=n.blue,b="linear-gradient(to right, "+Su(I,$,_,0)+" , "+Su(I,$,_,100)+")";return b},x=function(){return t+"-alpha"},E=function(I){var $=s&&s.current.getBoundingClientRect(),_=$.width,b=I.x-$.left;b=Math.max(0,b),b=Math.min(b,_);var H=Math.round(b/_*100);o(H)},C=function(){var I=n.red,$=n.green,_=n.blue,b=(i||1)/100;return"rgba("+I+", "+$+", "+_+", "+b+")"},j=x();return ne.createElement("div",{className:j,ref:s,onMouseDown:d,onTouchStart:f},ne.createElement("div",{className:j+"-bg",style:{background:v()}}),ne.createElement("span",{style:{left:i+"%",backgroundColor:C()}}),ne.createElement("div",{className:j+"-handler"}))},Bp=function(e){var t=e.alpha,n=e.className,i=e.hex,o=e.colorBoardHeight,a=e.showAlpha,s=e.onChange,l=Fi(),c=new Zd(i);c.alpha=t;var d=It(Ut({color:c,alpha:t}),2),u=d[0],h=d[1],f=It(Ut(!1),2),m=f[0],p=f[1];Yt(function(){m||h({color:c,alpha:t})},[i,t]);var v=function(E){p(!0);var C=u.color;C.alpha=E,h({color:C,alpha:E}),s({hex:C.toHexString(),alpha:E})},x=function(E){p(!0);var C=u.alpha;E.alpha=C,h(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(S6,{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(j6,{rootPrefixCls:"color-picker-panel",color:u.color,onChange:x,setChange:p})),a&&ne.createElement("div",{className:"color-picker-panel-wrap-alpha"},ne.createElement(k6,{rootPrefixCls:"color-picker-panel",alpha:u.alpha,color:u.color,onChange:v,setChange:p})))))};Fd(`.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 E6=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},D6=function(e){return e?e.substr(0,3).replace(/[^\d]/g,""):""},$6=function(e){return e&&e.substring(0,1)==="#"&&(e=e.substring(1)),e?e.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""},H6=function(e,t){e.key==="Enter"&&t()},M6=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($6(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(D6(i.target.value))},name:"alpha"};return e.showAlpha===!1?[t]:[t,n]},Vp=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(Ut({alpha:n,hex:t}),2),u=d[0],h=d[1],f=function(x){var E=E6(x);h(we(we({},u),{alpha:Number(E)}))},m=function(x){h(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(Sa(x.toRgbString(),o,s,u.alpha))):(h({hex:t,alpha:n}),l({hex:t,alpha:n}))};Yt(function(){h({hex:t,alpha:n})},[t,n]);var v={alphaValue:u.alpha,hexValue:u.hex.replace(/#/i,""),onChangeAlpha:f,onChangeHex:m,showAlpha:s};return ne.createElement("div",{className:"input_rgba"},ne.createElement("div",{className:"input_rgba-wrap"},M6(v).map(function(x,E){var C=x.wrapClass,j=x.labelSymbol,I=x.idInput,$=x.valueInput,_=x.labelText,b=x.labelArea,H=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:I,className:"input_rgba-alpha-label"},"%"),ne.createElement("input",{type:"text",id:I,value:$,"aria-label":b,onChange:function(T){return B(T)},onBlur:p,onKeyPress:function(T){return H6(T,p)}}),ne.createElement("div",{className:H},_))})))},T6=function(e){var t=e.color,n=e.setColor,i=e.activeColor,o=e.setActiveColor,a=e.setInit,s=e.format,l=s===void 0?"rgb":s,c=e.showAlpha,d=c===void 0?!0:c,u=e.allowAddGradientStops,h=u===void 0?!0:u,f=Fi(),m=It(Ut(!1),2),p=m[0],v=m[1],x=It(Ut(!1),2),E=x[0],C=x[1],j=t.stops,I=t.type,$=t.modifier,_=function(V){if(a(!1),V.stopPropagation(),!!h){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=Rp(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:""+Dr(I,ae,$,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",T)},H=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",T)}},y=function(V){var U,O=V.clientX,X=V.clientY,ee=(U=f==null?void 0:f.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})},T=function(V){var U,O=V.clientX,X=V.clientY,ee=(U=f==null?void 0:f.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){H();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=f==null?void 0:f.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(){H()},R=function(V){var U=f&&f.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=Fa([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:""+Dr(I,V,$,l,d),stops:V}))}};return Yt(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:""+Dr(I,V,$,l,d),stops:V}))},[i.loc,p]),Yt(function(){return function(){b(),H()}},[]),ne.createElement("div",{className:"gradient-stops",onClick:function(V){return _(V)},ref:f},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})})))},I6=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(x6([i[0],i[1],i[2]]))return t="solid",t}else return t="gradient",t}return t},ju=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=Rp(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=Pp(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[]}},zp=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(!zp(e[n],t[n]))return!1;return!0}else return e===t},L6=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=m6(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},A6=["#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%)"],ku=[{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}],R6=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,h=u===void 0?!0:u,f=e.showGradientStops,m=f===void 0?!0:f,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,I=e.allowAddGradientStops,$=I===void 0?!0:I,_=Fi(),b=t.stops,H=t.gradient,B=t.type,y=t.modifier,T=It(Ut(ku),2),L=T[0],F=T[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:""+Dr("radial",b,(W==null?void 0:W.css)||y,l,d),type:"radial"}));break}case"radial":{n(we(we({},t),{gradient:""+Dr("linear",b,180,l,d),type:"linear"}));break}}},R=function(W){a(!1);var re=W.target,fe=re.getAttribute("data-pos"),de=L.map(function(xe){return xe.pos===fe?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:""+Dr("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,fe=W.clientY,de=W.shiftKey,se=W.ctrlKey*2;W.target.className!=="gradient-mode"&&B==="linear"&&(ce({x:re,y:fe,shiftKey:de,ctrlKey:se}),window.addEventListener("mousemove",O),window.addEventListener("mouseup",X))}},O=function(W){var re=W.clientX,fe=W.clientY,de=W.shiftKey,se=W.ctrlKey*2;ce({x:re,y:fe,shiftKey:de,ctrlKey:se})},X=function(W){var re=W.clientX,fe=W.clientY,de=W.shiftKey,se=W.ctrlKey*2;ce({x:re,y:fe,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,fe=W.targetTouches[0].clientY,de=!1,se=0;ce({x:re,y:fe,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,fe=W.targetTouches[0].clientY,de=!1,se=0;ce({x:re,y:fe,shiftKey:de,ctrlKey:se})},ae=function(){V()},ce=function(W){var re=_&&_.current.getBoundingClientRect(),fe=re.left+re.width/2,de=re.top+re.height/2,se=Math.atan2(W.x-fe,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:""+Dr(B,b,et,l,d),modifier:et}))};return Yt(function(){return function(){Z(),V()}},[]),Yt(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:""+Dr("radial",b,(W==null?void 0:W.css)||y,l,d)})),F(ku.map(function(re){return re.css===y?we(we({},re),{active:!0}):we(we({},re),{active:!1})}))}},[y]),ne.createElement("div",{className:"gradient-interaction"},h&&ne.createElement("div",{className:"gradient-result",onMouseDown:E?U:void 0,onTouchStart:E?ee:void 0,style:{background:H}},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(T6,{color:t,setColor:n,activeColor:i,setActiveColor:o,setInit:a,format:l,showAlpha:d,allowAddGradientStops:$}))},O6=function(e,t){return!!(zp(e.color.stops,t.color.stops)&&e.color.modifier===t.color.modifier&&e.color.type===t.color.type&&L6(e.activeColor,t.activeColor))},N6=g6(R6,O6),Fp=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(Ut(-1),2),c=l[0],d=l[1],u=It(Ut([]),2),h=u[0],f=u[1];Yt(function(){f(s==="gradient"?ju(n,"grad").map(function(p){return Np(p)}):ju(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=Fa([E[0],E[1],E[2]]),I=x[x.length-1][2];a(!1),i(p),o&&o({hex:j,alpha:Number(Math.round(E[3]*100)),loc:C,index:I}),d(v)}else s!=="gradient"&&typeof p=="string"&&(a(!1),i(X1(p)),d(v))};return!Array.isArray(n)||!n.length?null:ne.createElement("div",{className:"default-color-panel"},h.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}}))},Eu=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,h=e.showAlpha,f=h===void 0?!0:h,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,I=j===void 0?!0:j,$=e.showGradientAngle,_=$===void 0?!0:$,b=e.showGradientPosition,H=b===void 0?!0:b,B=e.allowAddGradientStops,y=B===void 0?!0:B,T=e.colorBoardHeight,L=T===void 0?120:T,F=e.defaultColors,G=Cu(function(){return Np(n)},[n]),R=G(),Z=R.stops,V=za(Z[Z.length-1][0]),U=Z[Z.length-1][1],O=Fa([V[0],V[1],V[2]]),X=Z[Z.length-1][2],ee=It(Ut(!0),2),q=ee[0],ae=ee[1],ce=It(Ut({hex:O,alpha:Number(Math.round(V[3]*100)),loc:U,index:X}),2),W=ce[0],re=ce[1],fe=It(Ut(R),2),de=fe[0],se=fe[1],xe=Op(de,c);Yt(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]),Yt(function(){se(R);var S=R.stops.find(function(M){return M[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=Cu(function(S){ae(!1),re(we(we({},W),{hex:S.hex,alpha:Number(Math.round(S.alpha))}));var A=de.stops,M=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:""+Dr(M,te,Y,s,f),stops:te}))},[W,de]),et=function(S){var A=za(S),M=Fa([A[0],A[1],A[2]]);Ye({hex:M,alpha:A[3]*100})};return ne.createElement("div",{className:"colorpicker"},ne.createElement(Bp,{hex:W.hex,alpha:W.alpha,showAlpha:f,onChange:Ye,colorBoardHeight:L}),p&&ne.createElement(Vp,{hex:W.hex,alpha:W.alpha,showAlpha:f,onChange:function(S){return re(function(A){return we(we({},A),{hex:S.hex,alpha:S.alpha})})},onSubmitChange:et}),ne.createElement(N6,{color:de,setColor:se,activeColor:W,setActiveColor:re,setInit:ae,format:s,showAlpha:f,showGradientResult:x,showGradientStops:C,showGradientMode:I,showGradientAngle:_,showGradientPosition:H,allowAddGradientStops:y}),ne.createElement(Fp,{defaultColors:F,setColor:se,setActiveColor:re,setInit:ae,colorType:"gradient"}))},Du=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,h=e.showAlpha,f=h===void 0?!0:h,m=e.showInputs,p=m===void 0?!0:m,v=e.colorBoardHeight,x=v===void 0?120:v,E=e.defaultColors,C=Fi(null),j=It(Ut(!0),2),I=j[0],$=j[1],_=It(Ut(X1(n)),2),b=_[0],H=_[1],B=Op(b,c);Yt(function(){if(u&&B&&I===!1){n==="transparent"&&b.alpha===0&&(b.alpha=100);var T=it(b.hex);if(T.setAlpha(b.alpha/100),it(T).toRgbString()===it(n).toRgbString())return;o(Sa(T.toRgbString(),s,f,B.alpha))}},[B]),Yt(function(){H(X1(n))},[n]);var y=function(T){$(!1),H({hex:T.hex,alpha:Math.round(T.alpha)})};return ne.createElement("div",{ref:C,className:"colorpicker"},ne.createElement(Bp,{hex:b.hex,alpha:b.alpha,colorBoardHeight:x,showAlpha:f,onChange:y}),p&&ne.createElement(Vp,{hex:b.hex,alpha:b.alpha,format:s,showAlpha:f,onChange:H,onSubmitChange:o}),ne.createElement(Fp,{defaultColors:E,setColor:H,setInit:$,colorType:"solid"}))};Fd(`.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)},Hu=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)},P6=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)},Mu=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)},Tu=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},B6=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,h=e.debounce,f=h===void 0?!0:h,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,I=j===void 0?!0:j,$=e.showGradientMode,_=$===void 0?!0:$,b=e.showGradientAngle,H=b===void 0?!0:b,B=e.showGradientPosition,y=B===void 0?!0:B,T=e.allowAddGradientStops,L=T===void 0?!0:T,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?A6:V,O=e.defaultActiveTab,X=e.onChangeTabs,ee=e.onChange,q=ee===void 0?function(){return{}}:ee,ae=It(Ut(O||I6(n)),2),ce=ae[0],W=ae[1],re=function(se){q(se)},fe=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(P6,null,ne.createElement(Hu,{tabName:"solid",onClick:function(){return de("solid")}},"Solid"),ne.createElement(Hu,{tabName:"gradient",onClick:function(){return de("gradient")}},"Gradient")),ne.createElement(Mu,null,ne.createElement(Tu,{tabName:"solid"},ne.createElement(Du,{onChange:re,value:n,format:o,defaultColors:U,debounceMS:u,debounce:f,showAlpha:p,showInputs:x,colorBoardHeight:Z})),ne.createElement(Tu,{tabName:"gradient"},ne.createElement(Eu,{onChange:fe,value:n,format:o,defaultColors:U,debounceMS:u,debounce:f,showAlpha:p,showInputs:x,showGradientResult:C,showGradientStops:I,showGradientMode:_,showGradientAngle:H,showGradientPosition:y,allowAddGradientStops:L,colorBoardHeight:Z})))):ne.createElement(ne.Fragment,null,c||s?ne.createElement($u,{popupWidth:G},ne.createElement(Mu,null,c?ne.createElement(Du,{onChange:re,value:n,format:o,defaultColors:U,debounceMS:u,debounce:f,showAlpha:p,showInputs:x,colorBoardHeight:Z}):ne.createElement(_u,null),s?ne.createElement(Eu,{onChange:fe,value:n,format:o,defaultColors:U,debounceMS:u,debounce:f,showAlpha:p,showInputs:x,showGradientResult:C,showGradientStops:I,showGradientMode:_,showGradientAngle:H,showGradientPosition:y,allowAddGradientStops:L,colorBoardHeight:Z}):ne.createElement(_u,null))):null)};const V6=window.brandyCustomizerData.theme_settings.color.gradients.default.map(e=>e.gradient);function Zp({value:e,onChange:t}){const n=No(i=>{t(i)},0);return r.jsx("div",{className:"brandy-gradient-picker",children:r.jsx(B6,{value:e,onChange:n,gradient:!0,solid:!1,defaultColors:V6})})}function Wd(){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 z6=window.React.useEffect,bo=window.React.useMemo,xs=window.React.useState,F6=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"}];function Ct({color:e,onChange:t=()=>!1,hideGlobals:n=!1,usingGradient:i=!1}){const[o,a]=xs(null),[s,l]=xs(null),{styles:c,attributes:d}=pr(o,s),[u,h]=xs(!1),f=()=>{h($=>!$)},m=()=>{h(!1)},p=zd(),v=bo(()=>Vd(e),[e,p]),[x,E]=xs(e!=null&&e.includes("gradient")?"gradient":"solid");z6(()=>{const $=_=>{o==null&&s==null&&m(),!(s!=null&&s.contains(_.target))&&!(o!=null&&o.contains(_.target))&&m()};return window.jQuery(document).on("click","body",$),()=>{window.jQuery(document).off("click","body",$)}},[o,s]);const C=bo(()=>v.color==""||v.color.endsWith("00")&&v.color.length>7,[v]),j=bo(()=>v.color=="",[v]),I=bo(()=>v.isGlobal,[v]);return r.jsxs(W6,{className:"brandy-color-picker",children:[r.jsxs(G6,{className:"brandy-color-preview",style:{background:v.color||"transparent"},ref:a,onClick:f,$_css2:[{display:"flex",height:"30px",width:"30px",alignItems:"center",justifyContent:"center"},{borderWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(255 255 255 / var(--tw-border-opacity, 1))"},{outlineStyle:"solid",outlineWidth:"2px",outlineColor:"#0000001A","&:hover":{outlineColor:"#1e1e1e"}},{cursor:"pointer",borderRadius:"9999px"},{transitionProperty:"outline",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},u&&{outlineColor:"#1e1e1e"},C&&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:[C&&r.jsx(U6,{className:"[&_svg]:fill-[#A1ABB7]",children:j?r.jsx(Wd,{}):r.jsx(Tp,{})}),I&&r.jsx(Y6,{children:r.jsx(Lp,{})})]}),u&&r.jsxs(X6,{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(J6,{children:r.jsx(mn,{options:F6,selected:x??"solid",onChange:$=>{E($)}})}),i&&x==="gradient"?r.jsx(Zp,{value:e??"",onChange:t}):r.jsx(Wp,{color:e,onChange:t,hideGlobals:n})]})]})}const Gc=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:"#2271B1"}),Z6="#ffffff00",Wp=({color:e,onChange:t=()=>!1,hideGlobals:n=!1})=>{const i=zd(),o=bo(()=>Ap(),[i]),a=bo(()=>Vd(e),[e,i]);return r.jsxs(r.Fragment,{children:[r.jsx(K6,{children:r.jsx(B8,{color:a.color||Z6,onChange:s=>{a.color==""||a.color==null||a.color.endsWith("00")&&a.color.length>7?t(s.slice(0,-2)+"ff"):t(s)}})}),r.jsx(q6,{children:r.jsx(Q6,{value:a.color||"",onChange:t})}),!n&&r.jsxs("div",{children:[r.jsx(e9,{children:P("Theme colors")}),r.jsx(t9,{children:o.theme.map((s,l)=>r.jsx(St,{title:s.name,children:r.jsx(n9,{className:`dashicons ${s.value===e?"selected":""} global-block`,style:{background:s.color},onClick:()=>{t(s.value)},$_css4:[Gc]})},l))}),r.jsx(r9,{children:P("Palette colors")}),r.jsxs(i9,{children:[o.palette.map((s,l)=>r.jsx(St,{title:s.name,style:{textTransform:"capitalize"},children:r.jsx(o9,{className:`dashicons ${s.value===e?"selected":""} global-block`,style:{background:s.color},onClick:()=>{t(s.value)},$_css5:[Gc]})},l)),r.jsx(a9,{className:`dashicons ${a.color==""?"selected":""} global-block transparent-block`,onClick:()=>{t("")},$_css6:[Gc]})]})]})]})};var W6=w("div")({position:"relative"}),G6=w("div")`${e=>e.$_css2}`,U6=w("span")({position:"relative",display:"inline-block"}),Y6=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"}}),X6=w("div")`${e=>e.$_css3}`,J6=w("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"}),K6=w("div")({padding:"1rem",">.react-colorful":{width:"100%"}}),q6=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"}),Q6=w(ft)({width:"100%"}),e9=w("div")({marginLeft:"1rem",marginRight:"1rem",marginTop:"1rem",fontWeight:"500"}),t9=w("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),n9=w("div")`${e=>e.$_css4}`,r9=w("div")({marginLeft:"1rem",marginRight:"1rem",fontWeight:"500"}),i9=w("div")({display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.5rem",padding:"1rem"}),o9=w("div")`${e=>e.$_css5}`,a9=w("div").withConfig({displayName:"ColorPicker___StyledDiv11",componentId:"sc-g829wk-0"})(["",""],e=>e.$_css6);function ei(e){"@babel/helpers - typeof";return ei=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},ei(e)}function s9(e,t){if(ei(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(ei(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l9(e){var t=s9(e,"string");return ei(t)=="symbol"?t:t+""}function Jn(e,t,n){return(t=l9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iu(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 Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(i){Jn(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function J1(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 c9(e){if(Array.isArray(e))return J1(e)}function d9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gp(e,t){if(e){if(typeof e=="string")return J1(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)?J1(e,t):void 0}}function u9(){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 Jr(e){return c9(e)||d9(e)||Gp(e)||u9()}function h9(e){if(Array.isArray(e))return e}function f9(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 p9(){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 sn(e,t){return h9(e)||f9(e,t)||Gp(e,t)||p9()}const Lu=window.React;function K1(e){var t=Lu.useRef();t.current=e;var n=Lu.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 g9(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const q1=window.React;var Au=g9()?q1.useLayoutEffect:q1.useEffect,m9=function(t,n){var i=q1.useRef(!0);Au(function(){return t(i.current)},n),Au(function(){return i.current=!1,function(){i.current=!0}},[])},Ru=function(t,n){m9(function(i){if(!i)return t()},n)};const Uc=window.React;function Ou(e){var t=Uc.useRef(!1),n=Uc.useState(e),i=sn(n,2),o=i[0],a=i[1];Uc.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(l,c){c&&t.current||a(l)}return[o,s]}function Yc(e){return e!==void 0}function v9(e,t){var n=t||{},i=n.defaultValue,o=n.value,a=n.onChange,s=n.postState,l=Ou(function(){return Yc(o)?o:Yc(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),c=sn(l,2),d=c[0],u=c[1],h=o!==void 0?o:d,f=s?s(h):h,m=K1(a),p=Ou([h]),v=sn(p,2),x=v[0],E=v[1];Ru(function(){var j=x[0];d!==j&&m(d,j)},[x]),Ru(function(){Yc(o)||u(o)},[o]);var C=K1(function(j,I){u(j,I),E([h],I)});return[f,C]}var Q1={},w9=function(t){};function x9(e,t){}function b9(e,t){}function y9(){Q1={}}function Up(e,t,n){!t&&!Q1[n]&&(e(!1,n),Q1[n]=!0)}function Qa(e,t){Up(x9,e,t)}function C9(e,t){Up(b9,e,t)}Qa.preMessage=w9;Qa.resetWarned=y9;Qa.noteOnce=C9;function _9(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(Qa(!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&&ei(a)==="object"&&ei(s)==="object"){var h=Object.keys(a);return h.length!==Object.keys(s).length?!1:h.every(function(f){return o(a[f],s[f],d)})}return!1}return o(e,t)}function Za(){return Za=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},Za.apply(null,arguments)}function S9(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 Yp(e,t){if(e==null)return{};var n,i,o=S9(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 ed(e,t,n){return(e-t)/(n-t)}function Gd(e,t,n,i){var o=ed(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 he={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>=he.F1&&n<=he.F12)return!1;switch(n){case he.ALT:case he.CAPS_LOCK:case he.CONTEXT_MENU:case he.CTRL:case he.DOWN:case he.END:case he.ESC:case he.HOME:case he.INSERT:case he.LEFT:case he.MAC_FF_META:case he.META:case he.NUMLOCK:case he.NUM_CENTER:case he.PAGE_DOWN:case he.PAGE_UP:case he.PAUSE:case he.PRINT_SCREEN:case he.RIGHT:case he.SHIFT:case he.UP:case he.WIN_KEY:case he.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=he.ZERO&&t<=he.NINE||t>=he.NUM_ZERO&&t<=he.NUM_MULTIPLY||t>=he.A&&t<=he.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case he.SPACE:case he.QUESTION_MARK:case he.NUM_PLUS:case he.NUM_MINUS:case he.NUM_PERIOD:case he.NUM_DIVISION:case he.SEMICOLON:case he.DASH:case he.EQUALS:case he.COMMA:case he.PERIOD:case he.SLASH:case he.APOSTROPHE:case he.SINGLE_QUOTE:case he.OPEN_SQUARE_BRACKET:case he.BACKSLASH:case he.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const j9=window.React;var Zi=j9.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),k9=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const Xc=window.React;var Nu=Xc.forwardRef(function(e,t){var n=e.prefixCls,i=e.value,o=e.valueIndex,a=e.onStartMove,s=e.style,l=e.render,c=e.dragging,d=e.onOffsetChange,u=e.onChangeComplete,h=e.onFocus,f=e.onMouseEnter,m=Yp(e,k9),p=Xc.useContext(Zi),v=p.min,x=p.max,E=p.direction,C=p.disabled,j=p.keyboard,I=p.range,$=p.tabIndex,_=p.ariaLabelForHandle,b=p.ariaLabelledByForHandle,H=p.ariaValueTextFormatterForHandle,B=p.styles,y=p.classNames,T="".concat(n,"-handle"),L=function(q){C||a(q,o)},F=function(q){h==null||h(q,o)},G=function(q){f(q,o)},R=function(q){if(!C&&j){var ae=null;switch(q.which||q.keyCode){case he.LEFT:ae=E==="ltr"||E==="btt"?-1:1;break;case he.RIGHT:ae=E==="ltr"||E==="btt"?1:-1;break;case he.UP:ae=E!=="ttb"?1:-1;break;case he.DOWN:ae=E!=="ttb"?-1:1;break;case he.HOME:ae="min";break;case he.END:ae="max";break;case he.PAGE_UP:ae=2;break;case he.PAGE_DOWN:ae=-2;break}ae!==null&&(q.preventDefault(),d(ae,o))}},Z=function(q){switch(q.which||q.keyCode){case he.LEFT:case he.RIGHT:case he.UP:case he.DOWN:case he.HOME:case he.END:case he.PAGE_UP:case he.PAGE_DOWN:u==null||u();break}},V=Gd(E,i,v,x),U={};if(o!==null){var O;U={tabIndex:C?null:yo($,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(H,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=Xc.createElement("div",Za({ref:t,className:Ae(T,Jn(Jn({},"".concat(T,"-").concat(o+1),o!==null&&I),"".concat(T,"-dragging"),c),y.handle),style:Ot(Ot(Ot({},V),s),B.handle)},U,m));return l&&(X=l(X,{index:o,prefixCls:n,value:i,dragging:c})),X}),E9=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"];const Zr=window.React;var D9=Zr.forwardRef(function(e,t){var n=e.prefixCls,i=e.style,o=e.onStartMove,a=e.onOffsetChange,s=e.values,l=e.handleRender,c=e.activeHandleRender,d=e.draggingIndex,u=e.onFocus,h=Yp(e,E9),f=Zr.useRef({});Zr.useImperativeHandle(t,function(){return{focus:function($){var _;(_=f.current[$])===null||_===void 0||_.focus()}}});var m=Zr.useState(-1),p=sn(m,2),v=p[0],x=p[1],E=function($,_){x(_),u==null||u($)},C=function($,_){x(_)},j=Ot({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:E,onMouseEnter:C},h);return Zr.createElement(Zr.Fragment,null,s.map(function(I,$){return Zr.createElement(Nu,Za({ref:function(b){b?f.current[$]=b:delete f.current[$]},dragging:d===$,style:yo(i,$),key:$,value:I,valueIndex:$},j))}),c&&Zr.createElement(Nu,Za({key:"a11y"},j,{value:s[v],valueIndex:null,dragging:d!==-1,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const Pu=window.React;var $9=function(t){var n=t.prefixCls,i=t.style,o=t.children,a=t.value,s=t.onClick,l=Pu.useContext(Zi),c=l.min,d=l.max,u=l.direction,h=l.includedStart,f=l.includedEnd,m=l.included,p="".concat(n,"-text"),v=Gd(u,a,c,d);return Pu.createElement("span",{className:Ae(p,Jn({},"".concat(p,"-active"),m&&h<=a&&a<=f)),style:Ot(Ot({},v),i),onMouseDown:function(E){E.stopPropagation()},onClick:function(){s(a)}},o)};const Bu=window.React;var H9=function(t){var n=t.prefixCls,i=t.marks,o=t.onClick,a="".concat(n,"-mark");return i.length?Bu.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,d=s.label;return Bu.createElement($9,{key:l,prefixCls:a,style:c,value:l,onClick:o},d)})):null};const Vu=window.React;var M9=function(t){var n=t.prefixCls,i=t.value,o=t.style,a=t.activeStyle,s=Vu.useContext(Zi),l=s.min,c=s.max,d=s.direction,u=s.included,h=s.includedStart,f=s.includedEnd,m="".concat(n,"-dot"),p=u&&h<=i&&i<=f,v=Ot(Ot({},Gd(d,i,l,c)),typeof o=="function"?o(i):o);return p&&(v=Ot(Ot({},v),typeof a=="function"?a(i):a)),Vu.createElement("span",{className:Ae(m,Jn({},"".concat(m,"-active"),p)),style:v})};const bs=window.React;var T9=function(t){var n=t.prefixCls,i=t.marks,o=t.dots,a=t.style,s=t.activeStyle,l=bs.useContext(Zi),c=l.min,d=l.max,u=l.step,h=bs.useMemo(function(){var f=new Set;if(i.forEach(function(p){f.add(p.value)}),o&&u!==null)for(var m=c;m<=d;)f.add(m),m+=u;return Array.from(f)},[c,d,u,o,i]);return bs.createElement("div",{className:"".concat(n,"-step")},h.map(function(f){return bs.createElement(M9,{prefixCls:n,key:f,value:f,style:a,activeStyle:s})}))};const zu=window.React;var Fu=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=zu.useContext(Zi),u=d.direction,h=d.min,f=d.max,m=d.disabled,p=d.range,v=d.classNames,x="".concat(n,"-track"),E=ed(o,h,f),C=ed(a,h,f),j=function(b){!m&&l&&l(b,-1)},I={};switch(u){case"rtl":I.right="".concat(E*100,"%"),I.width="".concat(C*100-E*100,"%");break;case"btt":I.bottom="".concat(E*100,"%"),I.height="".concat(C*100-E*100,"%");break;case"ttb":I.top="".concat(E*100,"%"),I.height="".concat(C*100-E*100,"%");break;default:I.left="".concat(E*100,"%"),I.width="".concat(C*100-E*100,"%")}var $=c||Ae(x,Jn(Jn({},"".concat(x,"-").concat(s+1),s!==null&&p),"".concat(n,"-track-draggable"),l),v.track);return zu.createElement("div",{className:$,style:Ot(Ot({},I),i),onMouseDown:j,onTouchStart:j})};const so=window.React;var I9=function(t){var n=t.prefixCls,i=t.style,o=t.values,a=t.startPoint,s=t.onStartMove,l=so.useContext(Zi),c=l.included,d=l.range,u=l.min,h=l.styles,f=l.classNames,m=so.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=f.tracks||h.tracks?so.createElement(Fu,{index:null,prefixCls:n,start:m[0].start,end:m[m.length-1].end,replaceCls:Ae(f.tracks,"".concat(n,"-tracks")),style:h.tracks}):null;return so.createElement(so.Fragment,null,p,m.map(function(v,x){var E=v.start,C=v.end;return so.createElement(Fu,{index:x,prefixCls:n,style:Ot(Ot({},yo(i,x)),h.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 Ud=Symbol.for("react.element"),Yd=Symbol.for("react.portal"),Bl=Symbol.for("react.fragment"),Vl=Symbol.for("react.strict_mode"),zl=Symbol.for("react.profiler"),Fl=Symbol.for("react.provider"),Zl=Symbol.for("react.context"),L9=Symbol.for("react.server_context"),Wl=Symbol.for("react.forward_ref"),Gl=Symbol.for("react.suspense"),Ul=Symbol.for("react.suspense_list"),Yl=Symbol.for("react.memo"),Xl=Symbol.for("react.lazy"),A9=Symbol.for("react.offscreen"),Xp;Xp=Symbol.for("react.module.reference");function On(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ud:switch(e=e.type,e){case Bl:case zl:case Vl:case Gl:case Ul:return e;default:switch(e=e&&e.$$typeof,e){case L9:case Zl:case Wl:case Xl:case Yl:case Fl:return e;default:return t}}case Yd:return t}}}Ze.ContextConsumer=Zl;Ze.ContextProvider=Fl;Ze.Element=Ud;Ze.ForwardRef=Wl;Ze.Fragment=Bl;Ze.Lazy=Xl;Ze.Memo=Yl;Ze.Portal=Yd;Ze.Profiler=zl;Ze.StrictMode=Vl;Ze.Suspense=Gl;Ze.SuspenseList=Ul;Ze.isAsyncMode=function(){return!1};Ze.isConcurrentMode=function(){return!1};Ze.isContextConsumer=function(e){return On(e)===Zl};Ze.isContextProvider=function(e){return On(e)===Fl};Ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ud};Ze.isForwardRef=function(e){return On(e)===Wl};Ze.isFragment=function(e){return On(e)===Bl};Ze.isLazy=function(e){return On(e)===Xl};Ze.isMemo=function(e){return On(e)===Yl};Ze.isPortal=function(e){return On(e)===Yd};Ze.isProfiler=function(e){return On(e)===zl};Ze.isStrictMode=function(e){return On(e)===Vl};Ze.isSuspense=function(e){return On(e)===Gl};Ze.isSuspenseList=function(e){return On(e)===Ul};Ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bl||e===zl||e===Vl||e===Gl||e===Ul||e===A9||typeof e=="object"&&e!==null&&(e.$$typeof===Xl||e.$$typeof===Yl||e.$$typeof===Fl||e.$$typeof===Zl||e.$$typeof===Wl||e.$$typeof===Xp||e.getModuleId!==void 0)};Ze.typeOf=On;window.React.isValidElement;const R9=window.React.version;Number(R9.split(".")[0]);const _r=window.React;function Zu(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function O9(e,t,n,i,o,a,s,l,c){var d=_r.useState(null),u=sn(d,2),h=u[0],f=u[1],m=_r.useState(-1),p=sn(m,2),v=p[0],x=p[1],E=_r.useState(n),C=sn(E,2),j=C[0],I=C[1],$=_r.useState(n),_=sn($,2),b=_[0],H=_[1],B=_r.useRef(null),y=_r.useRef(null);_r.useLayoutEffect(function(){v===-1&&I(n)},[n,v]),_r.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 T=function(Z,V){j.some(function(U,O){return U!==Z[O]})&&(V!==void 0&&f(V),I(Z),s(Z))},L=K1(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(fe){return fe+ee});T(ae)}else{var ce=(o-i)*Z,W=Jr(j);W[R]=b[R];var re=c(W,ce,R,"dist");T(re.values,re.value)}}),F=function(Z,V,U){Z.stopPropagation();var O=U||n,X=O[V];x(V),f(X),H(O);var ee=Zu(Z),q=ee.pageX,ae=ee.pageY,ce=function(fe){fe.preventDefault();var de=Zu(fe),se=de.pageX,xe=de.pageY,Ye=se-q,et=xe-ae,S=e.current.getBoundingClientRect(),A=S.width,M=S.height,Y;switch(t){case"btt":Y=-et/M;break;case"ttb":Y=et/M;break;case"rtl":Y=-Ye/A;break;default:Y=Ye/A}L(V,Y)},W=function re(fe){fe.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=_r.useMemo(function(){var R=Jr(n).sort(function(V,U){return V-U}),Z=Jr(j).sort(function(V,U){return V-U});return R.every(function(V,U){return V===Z[U]})?j:n},[n,j]);return[v,h,G,F]}const Jc=window.React;function N9(e,t,n,i,o,a){var s=Jc.useCallback(function(m){return Math.max(e,Math.min(t,m))},[e,t]),l=Jc.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=Jc.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],I=j+v,$=[];i.forEach(function(y){$.push(y.value)}),$.push(e,t),$.push(l(j));var _=v>0?1:-1;E==="unit"?$.push(l(j+_*n)):$.push(l(I)),$=$.filter(function(y){return y!==null}).filter(function(y){return v<0?y<=j:y>=j}),E==="unit"&&($=$.filter(function(y){return y!==j}));var b=E==="unit"?j:I;C=$[0];var H=Math.abs(C-b);if($.forEach(function(y){var T=Math.abs(y-b);T<H&&(C=y,H=T)}),C===void 0)return v<0?e:t;if(E==="dist")return C;if(Math.abs(v)>1){var B=Jr(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}},h=function(p){return a===null&&p===0||typeof a=="number"&&p<a},f=function(p,v,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=p.map(c),j=C[x],I=d(C,v,x,E);if(C[x]=I,o===!1){var $=a||0;x>0&&C[x-1]!==j&&(C[x]=Math.max(C[x],C[x-1]+$)),x<C.length-1&&C[x+1]!==j&&(C[x]=Math.min(C[x],C[x+1]-$))}else if(typeof a=="number"||a===null){for(var _=x+1;_<C.length;_+=1)for(var b=!0;h(C[_]-C[_-1])&&b;){var H=u(C,1,_);C[_]=H.value,b=H.changed}for(var B=x;B>0;B-=1)for(var y=!0;h(C[B]-C[B-1])&&y;){var T=u(C,-1,B-1);C[B-1]=T.value,y=T.changed}for(var L=C.length-1;L>0;L-=1)for(var F=!0;h(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;h(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,f]}const Fe=window.React;var P9=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,h=u===void 0?!0:u,f=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,I=j===void 0?1:j,$=e.value,_=e.defaultValue,b=e.range,H=e.count,B=e.onChange,y=e.onBeforeChange,T=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,fe=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,M=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]),Re=Fe.useMemo(function(){return isFinite(C)?C:100},[C]),Pe=Fe.useMemo(function(){return I!==null&&I<=0?1:I},[I]),Nt=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&&ei(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]),un=N9(ue,Re,Pe,Ge,G,Nt),Qn=sn(un,2),Pt=Qn[0],yn=Qn[1],Yi=v9(_,{value:$}),Bt=sn(Yi,2),hn=Bt[0],ri=Bt[1],Lt=Fe.useMemo(function(){var ze=hn==null?[]:Array.isArray(hn)?hn:[hn],Ce=sn(ze,1),He=Ce[0],ot=He===void 0?ue:He,Xe=hn===null?[]:[ot];if(b){if(Xe=Jr(ze),H||hn===void 0){var Et=H>=0?H+1:2;for(Xe=Xe.slice(0,Et);Xe.length<Et;){var At;Xe.push((At=Xe[Xe.length-1])!==null&&At!==void 0?At:ue)}}Xe.sort(function(Vt,bt){return Vt-bt})}return Xe.forEach(function(Vt,bt){Xe[bt]=Pt(Vt)}),Xe},[hn,b,ue,H,Pt]),gr=Fe.useRef(Lt);gr.current=Lt;var Jt=function(Ce){return b?Ce:Ce[0]},Or=function(Ce){var He=Jr(Ce).sort(function(ot,Xe){return ot-Xe});B&&!_9(He,gr.current,!0)&&B(Jt(He)),ri(He)},Nr=function(){var Ce=Jt(gr.current);T==null||T(Ce),Qa(!T,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L==null||L(Ce)},Go=O9(te,ve,Lt,ue,Re,Pt,Or,Nr,yn),Kt=sn(Go,4),er=Kt[0],ii=Kt[1],tr=Kt[2],xt=Kt[3],Nn=function(Ce,He){if(!d){var ot=0,Xe=Re-ue;Lt.forEach(function(bt,Sn){var vr=Math.abs(Ce-bt);vr<=Xe&&(Xe=vr,ot=Sn)});var Et=Jr(Lt);if(Et[ot]=Ce,b&&!Lt.length&&H===void 0&&Et.push(Ce),y==null||y(Jt(Et)),Or(Et),He){var At,Vt;(At=document.activeElement)===null||At===void 0||(Vt=At.blur)===null||Vt===void 0||Vt.call(At),J.current.focus(ot),xt(He,ot,Et)}}},Pr=function(Ce){Ce.preventDefault();var He=te.current.getBoundingClientRect(),ot=He.width,Xe=He.height,Et=He.left,At=He.top,Vt=He.bottom,bt=He.right,Sn=Ce.clientX,vr=Ce.clientY,wr;switch(ve){case"btt":wr=(Vt-vr)/Xe;break;case"ttb":wr=(vr-At)/Xe;break;case"rtl":wr=(bt-Sn)/ot;break;default:wr=(Sn-Et)/ot}var Uo=ue+wr*(Re-ue);Nn(Pt(Uo),Ce)},oi=Fe.useState(null),Br=sn(oi,2),qt=Br[0],Pn=Br[1],Xi=function(Ce,He){if(!d){var ot=yn(Lt,Ce,He);y==null||y(Jt(Lt)),Or(ot.values),Pn(ot.value)}};Fe.useEffect(function(){if(qt!==null){var ze=Lt.indexOf(qt);ze>=0&&J.current.focus(ze)}Pn(null)},[qt]);var Ji=Fe.useMemo(function(){return V&&Pe===null?!1:V},[V,Pe]),Vr=function(Ce,He){xt(Ce,He),y==null||y(Jt(gr.current))},ai=er!==-1;Fe.useEffect(function(){if(!ai){var ze=Lt.lastIndexOf(ii);J.current.focus(ze)}},[ai]);var Cn=Fe.useMemo(function(){return Jr(tr).sort(function(ze,Ce){return ze-Ce})},[tr]),si=Fe.useMemo(function(){return b?[Cn[0],Cn[Cn.length-1]]:[ue,Cn[0]]},[Cn,b,ue]),fn=sn(si,2),_n=fn[0],mr=fn[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(){f&&J.current.focus(0)},[]);var li=Fe.useMemo(function(){return{min:ue,max:Re,direction:ve,disabled:d,keyboard:h,step:Pe,included:ee,includedStart:_n,includedEnd:mr,range:b,tabIndex:S,ariaLabelForHandle:A,ariaLabelledByForHandle:M,ariaValueTextFormatterForHandle:Y,styles:l||{},classNames:s||{}}},[ue,Re,ve,d,h,Pe,ee,_n,mr,b,S,A,M,Y,l,s]);return Fe.createElement(Zi.Provider,{value:li},Fe.createElement("div",{ref:te,className:Ae(i,o,Jn(Jn(Jn(Jn({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),O),"".concat(i,"-horizontal"),!O),"".concat(i,"-with-marks"),Ge.length)),style:a,onMouseDown:Pr},Fe.createElement("div",{className:Ae("".concat(i,"-rail"),s==null?void 0:s.rail),style:Ot(Ot({},W),l==null?void 0:l.rail)}),Fe.createElement(I9,{prefixCls:i,style:ae,values:Cn,startPoint:q,onStartMove:Ji?Vr:void 0}),Fe.createElement(T9,{prefixCls:i,marks:Ge,dots:se,style:re,activeStyle:fe}),Fe.createElement(D9,{ref:J,prefixCls:i,style:ce,values:tr,draggingIndex:er,onStartMove:Vr,onOffsetChange:Xi,onFocus:m,onBlur:p,handleRender:xe,activeHandleRender:Ye,onChangeComplete:Nr}),Fe.createElement(H9,{prefixCls:i,marks:Ge,onClick:Nn})))});function Jl({value:e,onChange:t=()=>!1,min:n=0,max:i,defaultValue:o,className:a="",step:s=1,marks:l,dots:c}){const d=No(u=>{t(u)},0);return r.jsx(P9,{className:Ae(["brandy-component-slider",a]),value:e,onChange:d,min:n,max:i,step:s,defaultValue:o,marks:l,dots:c})}var rl={exports:{}};rl.exports;(function(e,t){var n=200,i="__lodash_hash_undefined__",o=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",p="[object GeneratorFunction]",v="[object Map]",x="[object Number]",E="[object Null]",C="[object Object]",j="[object Promise]",I="[object Proxy]",$="[object RegExp]",_="[object Set]",b="[object String]",H="[object Symbol]",B="[object Undefined]",y="[object WeakMap]",T="[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[T]=W[u]=W[L]=W[h]=W[f]=W[m]=W[v]=W[x]=W[C]=W[$]=W[_]=W[b]=W[y]=!1;var re=typeof ut=="object"&&ut&&ut.Object===Object&&ut,fe=typeof self=="object"&&self&&self.Object===Object&&self,de=re||fe||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 M(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 Re(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 Nt(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 un=Array.prototype,Qn=Function.prototype,Pt=Object.prototype,yn=de["__core-js_shared__"],Yi=Qn.toString,Bt=Pt.hasOwnProperty,hn=function(){var k=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""}(),ri=Pt.toString,Lt=RegExp("^"+Yi.call(Bt).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gr=Ye?de.Buffer:void 0,Jt=de.Symbol,Or=de.Uint8Array,Nr=Pt.propertyIsEnumerable,Go=un.splice,Kt=Jt?Jt.toStringTag:void 0,er=Object.getOwnPropertySymbols,ii=gr?gr.isBuffer:void 0,tr=Nt(Object.keys,Object),xt=zr(de,"DataView"),Nn=zr(de,"Map"),Pr=zr(de,"Promise"),oi=zr(de,"Set"),Br=zr(de,"WeakMap"),qt=zr(Object,"create"),Pn=br(xt),Xi=br(Nn),Ji=br(Pr),Vr=br(oi),ai=br(Br),Cn=Jt?Jt.prototype:void 0,si=Cn?Cn.valueOf:void 0;function fn(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 _n(){this.__data__=qt?qt(null):{},this.size=0}function mr(k){var z=this.has(k)&&delete this.__data__[k];return this.size-=z?1:0,z}function li(k){var z=this.__data__;if(qt){var K=z[k];return K===i?void 0:K}return Bt.call(z,k)?z[k]:void 0}function ze(k){var z=this.__data__;return qt?z[k]!==void 0:Bt.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}fn.prototype.clear=_n,fn.prototype.delete=mr,fn.prototype.get=li,fn.prototype.has=ze,fn.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=Qi(z,k);if(K<0)return!1;var le=z.length-1;return K==le?z.pop():Go.call(z,K,1),--this.size,!0}function Et(k){var z=this.__data__,K=Qi(z,k);return K<0?void 0:z[K][1]}function At(k){return Qi(this.__data__,k)>-1}function Vt(k,z){var K=this.__data__,le=Qi(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=Et,He.prototype.has=At,He.prototype.set=Vt;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 Sn(){this.size=0,this.__data__={hash:new fn,map:new(Nn||He),string:new fn}}function vr(k){var z=zn(this,k).delete(k);return this.size-=z?1:0,z}function wr(k){return zn(this,k).get(k)}function Uo(k){return zn(this,k).has(k)}function rc(k,z){var K=zn(this,k),le=K.size;return K.set(k,z),this.size+=K.size==le?0:1,this}bt.prototype.clear=Sn,bt.prototype.delete=vr,bt.prototype.get=wr,bt.prototype.has=Uo,bt.prototype.set=rc;function Ki(k){var z=-1,K=k==null?0:k.length;for(this.__data__=new bt;++z<K;)this.add(k[z])}function qi(k){return this.__data__.set(k,i),this}function os(k){return this.__data__.has(k)}Ki.prototype.add=Ki.prototype.push=qi,Ki.prototype.has=os;function Bn(k){var z=this.__data__=new He(k);this.size=z.size}function ic(){this.__data__=new He,this.size=0}function xr(k){var z=this.__data__,K=z.delete(k);return this.size=z.size,K}function oc(k){return this.__data__.get(k)}function ac(k){return this.__data__.has(k)}function sc(k,z){var K=this.__data__;if(K instanceof He){var le=K.__data__;if(!Nn||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}Bn.prototype.clear=ic,Bn.prototype.delete=xr,Bn.prototype.get=oc,Bn.prototype.has=ac,Bn.prototype.set=sc;function lc(k,z){var K=di(k),le=!K&&to(k),We=!K&&!le&&no(k),_e=!K&&!le&&!We&&ps(k),tt=K||le||We||_e,gt=tt?te(k.length,String):[],yt=gt.length;for(var Je in k)(z||Bt.call(k,Je))&&!(tt&&(Je=="length"||We&&(Je=="offset"||Je=="parent")||_e&&(Je=="buffer"||Je=="byteLength"||Je=="byteOffset")||mc(Je,yt)))&&gt.push(Je);return gt}function Qi(k,z){for(var K=k.length;K--;)if(Yo(k[K][0],z))return K;return-1}function Vn(k,z,K){var le=z(k);return di(k)?le:Y(le,K(k))}function ci(k){return k==null?k===void 0?B:E:Kt&&Kt in Object(k)?pc(k):vc(k)}function as(k){return ui(k)&&ci(k)==l}function ss(k,z,K,le,We){return k===z?!0:k==null||z==null||!ui(k)&&!ui(z)?k!==k&&z!==z:cc(k,z,K,le,ss,We)}function cc(k,z,K,le,We,_e){var tt=di(k),gt=di(z),yt=tt?c:rr(k),Je=gt?c:rr(z);yt=yt==l?C:yt,Je=Je==l?C:Je;var zt=yt==C,Ht=Je==C,Dt=yt==Je;if(Dt&&no(k)){if(!no(z))return!1;tt=!0,zt=!1}if(Dt&&!zt)return _e||(_e=new Bn),tt||ps(k)?ls(k,z,K,le,We,_e):hc(k,z,yt,K,le,We,_e);if(!(K&o)){var Qt=zt&&Bt.call(k,"__wrapped__"),en=Ht&&Bt.call(z,"__wrapped__");if(Qt||en){var ir=Qt?k.value():k,Fn=en?z.value():z;return _e||(_e=new Bn),We(ir,Fn,K,le,_e)}}return Dt?(_e||(_e=new Bn),fc(k,z,K,le,We,_e)):!1}function dc(k){if(!fs(k)||us(k))return!1;var z=Xo(k)?Lt:ae;return z.test(br(k))}function nr(k){return ui(k)&&hs(k.length)&&!!W[ci(k)]}function uc(k){if(!eo(k))return tr(k);var z=[];for(var K in Object(k))Bt.call(k,K)&&K!="constructor"&&z.push(K);return z}function ls(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 zt=-1,Ht=!0,Dt=K&a?new Ki:void 0;for(_e.set(k,z),_e.set(z,k);++zt<gt;){var Qt=k[zt],en=z[zt];if(le)var ir=tt?le(en,Qt,zt,z,k,_e):le(Qt,en,zt,k,z,_e);if(ir!==void 0){if(ir)continue;Ht=!1;break}if(Dt){if(!J(z,function(Fn,or){if(!ue(Dt,or)&&(Qt===Fn||We(Qt,Fn,K,le,_e)))return Dt.push(or)})){Ht=!1;break}}else if(!(Qt===en||We(Qt,en,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 T:return!(k.byteLength!=z.byteLength||!_e(new Or(k),new Or(z)));case u:case h:case x:return Yo(+k,+z);case f:return k.name==z.name&&k.message==z.message;case $: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 zt=ls(gt(k),gt(z),le,We,_e,tt);return tt.delete(k),zt;case H:if(si)return si.call(k)==si.call(z)}return!1}function fc(k,z,K,le,We,_e){var tt=K&o,gt=cs(k),yt=gt.length,Je=cs(z),zt=Je.length;if(yt!=zt&&!tt)return!1;for(var Ht=yt;Ht--;){var Dt=gt[Ht];if(!(tt?Dt in z:Bt.call(z,Dt)))return!1}var Qt=_e.get(k);if(Qt&&_e.get(z))return Qt==z;var en=!0;_e.set(k,z),_e.set(z,k);for(var ir=tt;++Ht<yt;){Dt=gt[Ht];var Fn=k[Dt],or=z[Dt];if(le)var hi=tt?le(or,Fn,Dt,z,k,_e):le(Fn,or,Dt,k,z,_e);if(!(hi===void 0?Fn===or||We(Fn,or,K,le,_e):hi)){en=!1;break}ir||(ir=Dt=="constructor")}if(en&&!ir){var jn=k.constructor,ro=z.constructor;jn!=ro&&"constructor"in k&&"constructor"in z&&!(typeof jn=="function"&&jn instanceof jn&&typeof ro=="function"&&ro instanceof ro)&&(en=!1)}return _e.delete(k),_e.delete(z),en}function cs(k){return Vn(k,xc,gc)}function zn(k,z){var K=k.__data__;return ds(z)?K[typeof z=="string"?"string":"hash"]:K.map}function zr(k,z){var K=Re(k,z);return dc(K)?K:void 0}function pc(k){var z=Bt.call(k,Kt),K=k[Kt];try{k[Kt]=void 0;var le=!0}catch{}var We=ri.call(k);return le&&(z?k[Kt]=K:delete k[Kt]),We}var gc=er?function(k){return k==null?[]:(k=Object(k),M(er(k),function(z){return Nr.call(k,z)}))}:bc,rr=ci;(xt&&rr(new xt(new ArrayBuffer(1)))!=L||Nn&&rr(new Nn)!=v||Pr&&rr(Pr.resolve())!=j||oi&&rr(new oi)!=_||Br&&rr(new Br)!=y)&&(rr=function(k){var z=ci(k),K=z==C?k.constructor:void 0,le=K?br(K):"";if(le)switch(le){case Pn:return L;case Xi:return v;case Ji:return j;case Vr:return _;case ai:return y}return z});function mc(k,z){return z=z??s,!!z&&(typeof k=="number"||ce.test(k))&&k>-1&&k%1==0&&k<z}function ds(k){var z=typeof k;return z=="string"||z=="number"||z=="symbol"||z=="boolean"?k!=="__proto__":k===null}function us(k){return!!hn&&hn in k}function eo(k){var z=k&&k.constructor,K=typeof z=="function"&&z.prototype||Pt;return k===K}function vc(k){return ri.call(k)}function br(k){if(k!=null){try{return Yi.call(k)}catch{}try{return k+""}catch{}}return""}function Yo(k,z){return k===z||k!==k&&z!==z}var to=as(function(){return arguments}())?as:function(k){return ui(k)&&Bt.call(k,"callee")&&!Nr.call(k,"callee")},di=Array.isArray;function wc(k){return k!=null&&hs(k.length)&&!Xo(k)}var no=ii||yc;function yr(k,z){return ss(k,z)}function Xo(k){if(!fs(k))return!1;var z=ci(k);return z==m||z==p||z==d||z==I}function hs(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=s}function fs(k){var z=typeof k;return k!=null&&(z=="object"||z=="function")}function ui(k){return k!=null&&typeof k=="object"}var ps=A?ve(A):nr;function xc(k){return wc(k)?lc(k):uc(k)}function bc(){return[]}function yc(){return!1}e.exports=yr})(rl,rl.exports);var B9=rl.exports;const Xd=xn(B9);function Jp({onReset:e,hasChanged:t=!1}){const n=()=>{t&&e()};return r.jsx(V9,{onClick:n,$_css:[{cursor:"pointer","& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"}},t?{"& svg *":{fill:"#2271B1",stroke:"#2271B1"}}:""],children:r.jsx(z8,{})})}var V9=w("div").withConfig({displayName:"ResetButton___StyledDiv",componentId:"sc-n1cbpg-0"})(["",""],e=>e.$_css);const z9=window.React.useCallback,F9=window.React.useContext,Wu=window.React.useMemo;function Gu(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 Kl(e){const{builder:t}=F9(Xt),n=oe(t)(l=>e.reset_action==="row_settings"?l.changeRowSettings:l.changeElementSettings),i=oe(t)(l=>l.previewTemplate),{current:o}=De(),a=z9(()=>{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=Gu(e.sectionId),c&&(e.reset_paths??[]).forEach(h=>{const f=ke(c.settings,h);Gt(l,h,f),hr({sectionId:e.sectionId,settings:X0(h,f),device:o,builder:t,clonedFromId:e.cloned_from}),tp({sectionId:e.sectionId,settings:X0(h,f),device:o,builder:t})})})},[n,e,o,t]),s=Wu(()=>{var u,h;let l,c;(u=window.brandyCustomizerData.defaults[t])!=null&&u.elements[e.sectionId]?(c=(h=window.brandyCustomizerData.defaults[t])==null?void 0:h.elements[e.sectionId],l=i.elements[e.sectionId]):(c=Gu(e.sectionId),["top_header","top_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.top}),["middle_header","middle_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.middle}),["bottom_header","bottom_footer"].includes(e.sectionId)&&(l={settings:i.row_configurations.bottom}),(e.sectionId==="header"||e.sectionId==="footer")&&(l=i));let d=!1;return l&&c&&(e.reset_paths??[]).forEach(f=>{if(d==!0)return;const m=ke(l.settings,f),p=ke(c.settings,f);Xd(m,p)||(d=!0)},!1),d},[o,e.sectionId,e.reset_paths,i,t]);return Wu(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(Z9,{children:[r.jsx(pt,{className:Ae(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Jp,{onReset:a,hasChanged:s})]}),e.description&&r.jsx("div",{className:"text-[12px] italic mt-2",dangerouslySetInnerHTML:{__html:e.description}})]})}),[a,e.title])}var Z9=w("div").withConfig({displayName:"Reset___StyledDiv",componentId:"sc-pc751i-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const W9=window.React.useMemo,G9=window.React.useState,U9=[{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"}],Y9={x:{title:P("X offset")},y:{title:P("Y offset")},blur:{title:P("Blur")},spread:{title:P("Spread")}};function X9(e){const{current:t}=De(),n=W9(()=>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]=G9(!1);return r.jsxs(J9,{children:[r.jsxs(K9,{children:[r.jsxs(q9,{children:[r.jsx(pt,{title:e.title,className:"mb-0"}),n.enabled&&r.jsx(Q9,{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(e7,{children:[(e.can_reset??!0)&&r.jsx(Kl,{...e,title:{text:""},reset_paths:[e.value_path]}),r.jsx(Va,{checked:n.enabled,onChange:i})]})]}),n.enabled&&s&&r.jsxs(t7,{className:"box-shadow-wrapper",children:[r.jsx(jt,{options:U9,selected:n.type,onChange:o,popupHeight:220}),n.type==="custom"&&r.jsxs(r.Fragment,{children:[r.jsxs(n7,{children:[r.jsx(r7,{children:"Shadow color"}),r.jsx(Ct,{color:n.custom_value.color??"#cdcdcd",onChange:a("color")})]}),Object.entries(Y9).map(([c,d])=>r.jsxs("div",{children:[r.jsx(i7,{children:d.title}),r.jsxs(o7,{children:[r.jsx(a7,{type:"number",value:n.custom_value[c],min:-10,max:40,onChange:a(c)}),r.jsx(Jl,{value:n.custom_value[c],min:-10,max:40,onChange:a(c)})]})]},c))]})]})]})}var J9=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),K9=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),q9=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Q9=w("span")`${e=>e.$_css}`,e7=w("div")({display:"flex",alignItems:"center",gap:"0.5rem"}),t7=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),n7=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),r7=w("span")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),i7=w("div")({"--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),o7=w("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.75rem"}),a7=w(ft).withConfig({displayName:"BoxShadowBuilder___StyledInput",componentId:"sc-no79k6-0"})({width:"60px"});const s7=window.React.useCallback,Kc=window.React.useMemo;function Wi({inputValue:e,onChange:t}){const{current:n}=De(),i=Kc(()=>r.jsxs("svg",{fill:"#2271B1",viewBox:"0 0 35 35",children:[r.jsx("path",{d:"M17.5,26L17.5,26C12.8,26,9,22.2,9,17.5v0C9,12.8,12.8,9,17.5,9h0c4.7,0,8.5,3.8,8.5,8.5v0C26,22.2,22.2,26,17.5,26z"}),r.jsx("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "})]}),[]),o=Kc(()=>{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=s7(()=>{n!=="desktop"&&t(null)},[n,t]);return{ResetInheritButton:Kc(()=>o?()=>!1:({className:l=""})=>r.jsx(l7,{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 l7=w("span").withConfig({displayName:"useInheritResponsive___StyledSpan",componentId:"sc-l0r28k-0"})(["",""],e=>e.$_css);const c7=window.React.useMemo;function ni(e){const{current:t}=De(),n=c7(()=>ye(e.value,t),[t,e.value]),{ResetInheritButton:i}=Wi({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(d7,{children:[!e.disableInherit&&r.jsx(i,{}),r.jsx(pt,{title:e.title,className:"mb-2"})]}),r.jsx(mn,{selected:n,options:e.options??[],onChange:e.onChange})]})}var d7=w("div").withConfig({displayName:"ButtonGroupBuilder___StyledDiv",componentId:"sc-t3hi5f-0"})({position:"relative"});const u7=window.React.createElement,h7=window.React.useCallback,Kp=window.React.useMemo;function f7(e){const{ResetInheritButton:t}=Wi({inputValue:e.value,onChange:i=>{Object.keys(e.value).forEach(o=>{e.onChange(i,[...e.value_path,o])})}}),n=Kp(()=>e.value.enabled_gradient,[e.value.enabled_gradient]);return r.jsxs(g7,{children:[r.jsx(t,{}),r.jsx(pt,{title:e.title,className:"mb-0"}),r.jsx(m7,{children:Object.entries(e.value).map((i,o)=>{if(i[0]!=="enabled_gradient")return u7(p7,{...e,attributeKey:i[0],color:i[1],key:o,usingGradient:n})})})]})}function p7(e){const{current:t}=De(),n=Kp(()=>ye(e.color,t),[e.color,t]),i=h7(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 g7=w("div")({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"}),m7=w("div").withConfig({displayName:"ColorGroupBuilder___StyledDiv2",componentId:"sc-d3agj8-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const qp=["px","em","rem","%"],v7={wp:"Preset"},Qp=({options:e=qp,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:Ae(["uppercase text-brandy-text-secondary cursor-pointer text-[10px] hover:text-brandy-text",t===o&&"text-wp hover:!text-wp"]),onClick:i(o),children:v7[o]??o},o))})},Uu=window.React.useCallback;function An({value:e,onChange:t=()=>!1,title:n="Dimension",units:i=qp,min:o=0,max:a=100,hideUnitSelection:s=!1,step:l=1}){const c=No(f=>{t({...e,unit:f})},0),d=Uu(f=>{c(f)},[c]),u=No(f=>{t({...e,value:f})},0),h=Uu(f=>{u(f)},[u]);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between items-center mb-2",children:[n,!s&&r.jsx(Qp,{options:i,value:(e==null?void 0:e.unit)??"px",onChange:d})]}),r.jsxs("div",{className:"flex gap-5 items-center",children:[r.jsx(ft,{type:"number",className:"w-1/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l}),r.jsx(Jl,{className:"w-2/3",value:(e==null?void 0:e.value)??0,onChange:h,min:o,max:a,step:l})]})]})}const na=window.React.useMemo;function w7(e){const{current:t}=De(),n=na(()=>ye(e.value,t),[t,e.value]),i=na(()=>ye(e.default_value,t),[e.default_value,t]),o=na(()=>(i==null?void 0:i.min)??0,[i]),a=na(()=>(i==null?void 0:i.max)??100,[i]),{ResetInheritButton:s}=Wi({inputValue:{inputValue:e.value},onChange:e.onChange});return na(()=>r.jsxs(x7,{children:[r.jsx(An,{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 x7=w("div").withConfig({displayName:"DimensionBuilder___StyledDiv",componentId:"sc-k78v94-0"})({position:"relative"});const Yu=window.React.useEffect,b7=window.React.useState,y7="Select image",C7="Use this image";function _7(e={}){const t=(e==null?void 0:e.title)??y7,n=(e==null?void 0:e.buttonText)??C7,[i,o]=b7(null);return Yu(()=>{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]),Yu(()=>()=>{window.jQuery("#brandy-upload-media").closest('[id^="__wp-uploader-id"]').remove()},[]),{media:i}}function eg({value:e,onChange:t}){const{media:n}=_7({onSelect:t}),i=o=>{o.preventDefault(),n&&n.open()};return r.jsx(r.Fragment,{children:e?r.jsxs(S7,{className:"group",children:[r.jsxs(j7,{children:[r.jsx(k7,{}),e&&r.jsx(E7,{src:e})]}),r.jsx(D7,{onClick:i,children:"Change photo"})]}):r.jsx($7,{onClick:i,children:"Select photo"})})}var S7=w("div")({position:"relative",display:"flex",width:"100%",flexDirection:"column",gap:"0.5rem"}),j7=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"}),k7=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"}}),E7=w("img")({height:"100%",width:"100%",objectFit:"contain"}),D7=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(34 113 177 / var(--tw-bg-opacity, 1))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))",opacity:"0",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms",".group:hover &":{visibility:"visible",opacity:"1"}}),$7=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(34 113 177 / var(--tw-border-opacity, 1))","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}});const Xu=window.React.useMemo;function H7(e){const{current:t}=De(),n=Xu(()=>ye(e.value,t),[t,e.value]);return Xu(()=>r.jsxs(M7,{children:[r.jsx(pt,{title:e.title}),r.jsx(eg,{value:n,onChange:e.onChange})]}),[n,e.onChange,e.title])}var M7=w("div").withConfig({displayName:"ImageBuilder___StyledDiv",componentId:"sc-1enyrgi-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const T7=window.React;function tg(e){const{current:t}=De(),{ResetInheritButton:n}=Wi({inputValue:{inputValue:e.value},onChange:e.onChange}),i=T7.useMemo(()=>ye(e.value,t),[t,e.value]);return r.jsxs(I7,{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(L7,{children:[r.jsx(n,{}),r.jsx(pt,{title:e.title,className:"!mb-0"})]}),r.jsx(Va,{checked:i,onChange:e.onChange}),e.description&&r.jsx(A7,{dangerouslySetInnerHTML:{__html:e.description}})]})}var I7=w("div")`${e=>e.$_css2}`,L7=w("div")({position:"relative"}),A7=w("div").withConfig({displayName:"SwitcherBuilder___StyledDiv3",componentId:"sc-10j4p3z-0"})({marginTop:"10px",width:"100%",fontSize:"12px",fontStyle:"italic"});const R7=window.React.createContext,wi=window.React.useMemo,Wo=R7({});function O7({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=wi(()=>e.font_size,[e]),u=wi(()=>e.line_height,[e]),h=wi(()=>e.letter_spacing,[e]),f=wi(()=>e.font_style,[e.font_style]),m=wi(()=>e.transform,[e.transform]),p=wi(()=>e.decoration,[e.decoration]),v=wi(()=>({fontSize:d,lineHeight:u,letterSpacing:h,fontStyle:f,transform:m,decoration:p,onChange:n,fontSizeMin:i,fontSizeMax:o,lineHeightMin:a,lineHeightMax:s,letterSpacingMin:l,letterSpacingMax:c}),[d,u,h,f,n,i,o,a,s,l,c,p,m]);return r.jsx(Wo.Provider,{value:v,children:t})}const N7=window.React.useContext,P7=window.React.useMemo;function B7(){const{current:e}=De(),{fontSize:t,onChange:n,fontSizeMin:i,fontSizeMax:o}=N7(Wo),a=l=>{n("font_size",l)},s=P7(()=>ye(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-font-size",children:r.jsx(An,{title:r.jsx(V7,{children:P("Font size")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var V7=w(wt).withConfig({displayName:"FontSize___StyledStyledSettingLabel",componentId:"sc-16fkzly-0"})({margin:"0px"});const z7=window.React.forwardRef,F7=window.React.useEffect,Z7=window.React.useMemo,qc=window.React.useRef,W7=window.React.useState,G7=window.ReactDOM.createPortal,U7=me(["svg{*[fill]{","}*[stroke]{","}}"],{fill:"#2271B1"},{stroke:"#2271B1"}),td=[{name:"desktop",icon:r.jsx(Hp,{})},{name:"tablet",icon:r.jsx(Z8,{})},{name:"mobile",icon:r.jsx(Mp,{})}],Y7=z7(({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:td.map(i=>r.jsx(X7,{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&&U7],children:i.icon},i.name))}));function Jd(){const{current:e,changeDevice:t}=De(),[n,i]=W7(!1),o=f=>{t(f)},a=Z7(()=>td.find(f=>f.name===e)??td[0],[e]),s=f=>{f.preventDefault(),i(m=>!m)},l=()=>{i(!1)},c=qc(null),d=qc(null),u=qc(null),h=G7(n?r.jsx(Y7,{currentDevice:e,onChange:o,ref:d}):!1,u.current??document.body);return F7(()=>{const f=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",f),()=>{window.jQuery(document).off("click","body",f)}},[c.current,d.current]),r.jsxs("div",{className:"relative inline-flex",children:[r.jsx("div",{className:"w-[34px] m-auto transition-all ease-in-out duration-base cursor-pointer inline-flex justify-center",onClick:s,ref:c,children:a.icon},a.name),r.jsx("div",{className:"brandy-selection-popup",ref:u,children:h})]})}var X7=w("div").withConfig({displayName:"DeviceSwitcher___StyledDiv",componentId:"sc-1sdffvj-0"})(["",""],e=>e.$_css2);const nd=[{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"}],J7=window.React.useContext,Qc=window.React.useMemo,K7=nd.map(e=>({value:e.key,label:e.label}));function q7(){const{current:e}=De(),{fontStyle:t,onChange:n}=J7(Wo),i=Qc(()=>{var l;return((l=ye(t,e))==null?void 0:l.weight)??400},[e,t]),o=Qc(()=>{var l;return((l=ye(t,e))==null?void 0:l.italic)??!1},[e,t]),a=Qc(()=>nd.find(l=>l.weight===i&&l.italic===o),[i,o]),s=l=>{const c=nd.find(d=>d.key===l);c&&n("font_style",{weight:c.weight,italic:c.italic})};return r.jsxs("div",{children:[r.jsxs(Q7,{children:[r.jsx(eb,{children:P("Font style")}),r.jsx(Jd,{})]}),r.jsx(jt,{options:K7,selected:(a==null?void 0:a.key)??"",onChange:s})]})}var Q7=w("div")({marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"0.5rem"}),eb=w(wt).withConfig({displayName:"FontStyle___StyledStyledSettingLabel",componentId:"sc-7wg633-0"})({margin:"0px"});const tb=window.React.useContext,nb=window.React.useMemo;function rb(){const{current:e}=De(),{letterSpacing:t,onChange:n,letterSpacingMin:i,letterSpacingMax:o}=tb(Wo),a=l=>{n("letter_spacing",l)},s=nb(()=>ye(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-letter-spacing",children:r.jsx(An,{title:r.jsx(ib,{children:P("Letter spacing")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var ib=w(wt).withConfig({displayName:"LetterSpacing___StyledStyledSettingLabel",componentId:"sc-1occtdz-0"})({margin:"0px"});const ob=window.React.useContext,ab=window.React.useMemo;function sb(){const{current:e}=De(),{lineHeight:t,onChange:n,lineHeightMin:i,lineHeightMax:o}=ob(Wo),a=l=>{n("line_height",l)},s=ab(()=>ye(t,e)??{value:"",unit:"px"},[t,e]);return r.jsx("div",{className:"brandy-font-item brandy-line-height",children:r.jsx(An,{title:r.jsx(lb,{children:P("Line height")}),units:["px","em","rem"],value:s,onChange:a,min:i,max:o})})}var lb=w(wt).withConfig({displayName:"LineHeight___StyledStyledSettingLabel",componentId:"sc-15u33dd-0"})({margin:"0px"});const cb=window.React.useContext,Ju=window.React.useMemo,jo=w.span({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center"}),db=[{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"})})})}],ub=[{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 hb(){const{current:e}=De(),{transform:t,decoration:n,onChange:i}=cb(Wo),o=Ju(()=>ye(t,e)??"auto",[t,e]),a=Ju(()=>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(fb,{children:P("Type")}),r.jsxs(pb,{children:[r.jsx(mn,{canDeselect:!0,options:db,selected:o,buttonStyle:"solid",onChange:s}),r.jsx(mn,{canDeselect:!0,options:ub,selected:a,buttonStyle:"solid",onChange:l})]})]})}var fb=w(wt)({marginBottom:"0.5rem"}),pb=w("div").withConfig({displayName:"Type___StyledDiv",componentId:"sc-1s138yn-0"})({display:"flex",gap:"1rem"});const gb=window.React.useEffect,e1=window.React.useState;function mb({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]=e1(null),[u,h]=e1(null),{styles:f,attributes:m}=pr(c,u),[p,v]=e1(!1),x=()=>{v(!0)},E=()=>{v(!1)};return gb(()=>{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(O7,{value:e,onChange:t,fontSizeMin:n,fontSizeMax:i,lineHeightMin:o,lineHeightMax:a,letterSpacingMin:s,letterSpacingMax:l,children:r.jsxs(vb,{children:[r.jsx(wb,{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(xb,{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(bb,{className:"font-popup",ref:h,style:f.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(q7,{}),r.jsx(B7,{}),r.jsx(sb,{}),r.jsx(rb,{}),r.jsx(hb,{})]})]})})}var vb=w("div")({position:"relative"}),wb=w("div")`${e=>e.$_css}`,xb=w("span")({position:"relative",display:"inline-block"}),bb=w("div").withConfig({displayName:"TypographyPicker___StyledDiv3",componentId:"sc-wkun31-0"})(["",""],e=>e.$_css2);const yb=window.React,Cb=window.React.useCallback,Ku={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 _b(e){const t=yb.useMemo(()=>e.value,[e.value]),n=Cb((o,a)=>{e.onChange(a,[...e.value_path,o],void 0,!0)},[e]),{ResetInheritButton:i}=Wi({inputValue:e.value??Ku,onChange:o=>{Object.keys(e.value).forEach(a=>{e.onChange(o,[...e.value_path,a])})}});return r.jsxs(Sb,{children:[r.jsx(i,{}),r.jsx(pt,{title:e.title,className:"mb-0"}),r.jsx(mb,{value:t??Ku,onChange:n})]})}var Sb=w("div").withConfig({displayName:"TypographyBuilder___StyledDiv",componentId:"sc-1r71o9z-0"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"});const jb=window.React.useContext,qu=w.span.withConfig({displayName:"EnabledDevices__StyledOptionLabel",componentId:"sc-1joegxg-0"})({display:"flex",alignItems:"center",gap:"0.5rem"}),kb=[{value:"desktop",label:r.jsxs(qu,{children:[r.jsx(Hp,{}),r.jsx("span",{children:"Desktop"})]})},{value:"mobile",label:r.jsxs(qu,{children:[r.jsx(Mp,{}),r.jsx("span",{children:"Tablet/Mobile"})]})}];function Eb(e){const{builder:t}=jb(Xt),n=i=>{const o=e.render_options,a=Oe(o!=null&&o.select_from_body?o==null?void 0:o.selector:`${kt(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(mn,{multiple:!0,options:kb,onChange:n,selected:e.value,buttonStyle:"solid"})]})}const Db=window.React.useMemo;function Kd(e){const{current:t}=De(),n=Db(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(ft,{value:n,onChange:e.onChange,wrapperStyle:{width:"100%"},placeholder:e.placeholder??""})]})}const $b=window.React.useMemo;function Hb(e){const{current:t}=De(),n=$b(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(ft,{type:"number",value:n,onChange:e.onChange,wrapperStyle:{width:150},min:e.min,max:e.max})]})}const t1=["all","axial","individual"],Mb={all:"All sides",axial:"Horizontal & Vertical",individual:"Individual sides"},Tb={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"]}]},Ib="#2271B1",Lb="#E3E8EE";function Ab({activeSides:e}){const t=n=>e.includes(n)?Ib:Lb;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 Rb({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 Ob(){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 Nb(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 Qu=window.React.useMemo,eh=window.React.useState,Pb=["left","right","top","bottom"];function ng({value:e,onChange:t,title:n="Spacing",units:i=["px","em","rem","%"],aspectTitles:o=null,description:a=""}){const[s,l]=eh(()=>Nb(e)),c=()=>{const y=t1[(t1.indexOf(s)+1)%t1.length];l(y);const T={...e,is_constraints:y==="all"};y==="all"?T.top=T.right=T.bottom=e.left:y==="axial"&&(T.right=e.left,T.bottom=e.top),t(T)},d=y=>{t({...e,unit:y})},u=y=>T=>{if(typeof T=="string"&&T!=""&&e.unit!=="wp")return;const L={...e};e.is_constraints?L.top=L.left=L.bottom=L.right=T:L[y]=T,t(L)},h=()=>{const y={...e,is_constraints:!e.is_constraints};y.is_constraints&&(y.top=y.right=y.bottom=e.left),t(y)},f=Qu(()=>["0",...window.brandyCustomizerData.theme_settings.spacing.spacingSizes.theme.map(T=>`var(--wp--preset--spacing--${T.slug})`)],[]),m=Qu(()=>{const y={};return f.forEach((T,L)=>{y[L]=String(L)}),y},[f]),p=y=>{const T=String(y??"0");return T==="0"||T===""?0:f.indexOf(T)},v=y=>f[y]??"0",x=y=>p(y)!==-1,[E,C]=eh(()=>({top:!x(e.top),right:!x(e.right),bottom:!x(e.bottom),left:!x(e.left)})),j=(y,T)=>{const L={...e,is_constraints:s==="all"};y.forEach(F=>{L[F]=T}),t(L)},I=y=>T=>{const L=typeof T=="number"?T:T[0];j(y,v(L))},$=y=>T=>{j(y,T)},_=y=>{C(F=>{const G={...F};return y.forEach(R=>{G[R]=!1}),G});const T={...e,is_constraints:s==="all"};let L=!1;y.forEach(F=>{x(e[F])||(T[F]="0",L=!0)}),L&&t(T)},b=y=>()=>{const L=String(e[y[0]]??"").trim();!L||L==="0"||/^\d+(\.\d+)?$/.test(L)&&j(y,`${L}px`)},H=y=>T=>{if(T.key!=="ArrowUp"&&T.key!=="ArrowDown")return;const F=String(e[y[0]]??"0").match(/^(-?\d+(?:\.\d+)?)\s*(px|em|rem|%|vh|vw)?$/);if(!F)return;T.preventDefault();const G=parseFloat(F[1]),R=F[2]||"px",Z=T.shiftKey?10:1,V=T.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(Qp,{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:Mb[s],children:r.jsx(Rb,{mode:s})})}),Tb[s].map(y=>{const T=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(Ab,{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:H(y.sides),children:r.jsx(ft,{value:e[y.sides[0]],onChange:$(y.sides)})}):r.jsx(Jl,{min:0,max:f.length-1,step:1,marks:m,dots:!0,value:p(T),onChange:I(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(Ob,{})})]},y.label)})]}):r.jsxs("div",{className:"flex gap-1 items-start",children:[Pb.map((y,T)=>r.jsxs("div",{className:"w-1/4 flex flex-col gap-2 items-center justify-start",children:[r.jsx(ft,{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[T]:y})]},y)),r.jsx("div",{onClick:h,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 Bb=window.React.useMemo;function Vb(e){const{current:t}=De(),n=Bb(()=>ye(e.value,t),[t,e.value]),{ResetInheritButton:i}=Wi({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs(zb,{children:[r.jsx(ng,{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 zb=w("div").withConfig({displayName:"SpacingBuilder___StyledDiv",componentId:"sc-8ikjor-0"})({position:"relative"});const Fb=window.React.useMemo,ys=w.span.withConfig({displayName:"AlignmentBuilder__StyledOptionItem",componentId:"sc-1i3hi1g-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Zb=[{value:"left",label:r.jsxs(ys,{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(ys,{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(ys,{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(ys,{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 Wb(e){const t=Fb(()=>(e.available_alignments??["left","center","right"]).map(n=>Zb.find(i=>i.value===n)).filter(n=>n!=null),[e.available_alignments]);return r.jsx(ni,{...e,options:t})}const Gb=window.React.useMemo,n1=w.span.withConfig({displayName:"PositionBuilder__StyledOptionItem",componentId:"sc-vce992-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Ub=[{value:"left",label:r.jsxs(n1,{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(n1,{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(n1,{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 Yb(e){const t=Gb(()=>(e.available_positions??["left","bottom","right"]).map(n=>Ub.find(i=>i.value===n)??null).filter(n=>n!=null),[e.available_positions]);return r.jsx(ni,{...e,options:t})}const Xb=window.React.useMemo;function qd(e){const{current:t}=De(),n=Xb(()=>ye(e.value,t),[t,e.value]),{ResetInheritButton:i}=Wi({inputValue:{inputValue:e.value},onChange:e.onChange});return r.jsxs("div",{children:[r.jsxs(Jb,{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 Jb=w("div").withConfig({displayName:"DropdownBuilder___StyledDiv",componentId:"sc-133xc9-0"})({position:"relative"});const Kb=window.React.useMemo;function qb(e){const{current:t}=De(),n=Kb(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(mn,{multiple:!0,options:e.options??[],onChange:e.onChange,selected:n,buttonStyle:"solid"})]})}const Qb=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"}}}
`,ey=[{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 ty({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(ay,{children:[r.jsx(wt,{children:r.jsx(sy,{children:"Position"})}),r.jsx(jt,{options:ey,selected:e,onChange:n,style:{width:200}})]})}const ny=[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}];function ry({value:e,onChange:t}){const n=i=>{t(i)};return r.jsxs(ly,{children:[r.jsx(wt,{children:r.jsx(cy,{children:"Size"})}),r.jsx(jt,{options:ny,selected:e,onChange:n,style:{width:200}})]})}function iy({value:e,onChange:t}){const n=i=>{Array.isArray(i)||t(i)};return r.jsxs(dy,{children:[r.jsx(wt,{children:r.jsx(uy,{children:"Overlay color"})}),r.jsx(Ct,{color:e,onChange:n})]})}const ra=w.div({padding:"10px"});function oy({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(Qb,{children:r.jsx(eg,{value:e.url,onChange:n("url")})}),e.url&&r.jsxs(r.Fragment,{children:[r.jsx(ra,{children:r.jsx(iy,{value:e.overlay_color,onChange:n("overlay_color")})}),r.jsx(ra,{children:r.jsx(ry,{value:e.size,onChange:n("size")})}),r.jsx(ra,{children:r.jsx(ty,{value:e.position,onChange:n("position")})}),e.position==="custom"&&r.jsxs(r.Fragment,{children:[r.jsx(ra,{children:r.jsx(An,{min:e.top.min,max:e.top.max,value:e.top,title:r.jsx(wt,{children:r.jsx(hy,{children:"Top"})}),onChange:n("top")})}),r.jsx(ra,{children:r.jsx(An,{min:e.left.min,max:e.left.max,value:e.left,title:r.jsx(wt,{children:r.jsx(fy,{children:"Left"})}),onChange:n("left")})})]})]})]})}var ay=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),sy=w("span")({fontSize:"13px"}),ly=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),cy=w("span")({fontSize:"13px"}),dy=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),uy=w("span")({fontSize:"13px"}),hy=w("span")({fontSize:"13px"}),fy=w("span").withConfig({displayName:"Image___StyledSpan5",componentId:"sc-1ul140t-0"})({fontSize:"13px"});const py=window.React.createContext,gy=window.React.useEffect,sr=window.React.useMemo,r1=window.React.useState,my=[{label:"Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],vy=py({});function wy({value:e,onChange:t=()=>!1}){const n=zd(),i=sr(()=>e.type,[e.type]),o=sr(()=>e.solid_color,[e.solid_color]),a=sr(()=>e.gradient_color,[e.gradient_color]),s=sr(()=>e.image,[e.image]),l=sr(()=>Vd(o),[o,n]),c=sr(()=>{const b=T=>{t(T,"type")},H=T=>{t(T,"solid_color")},B=No(T=>{t(T,"gradient_color")},0);return{backgroundType:i,solidColor:o,gradientColor:a,image:s,changeType:b,changeSolidColor:H,changeGradientColor:B,changeImage:T=>{t(T,"image")}}},[i,o,a,s,e,t]),d=sr(()=>i==="image"?{backgroundImage:`url(${s.url})`,backgroundPosition:"center",backgroundSize:"contain"}:{background:i==="solid"?l.color:a},[i,l.color,a,s]),[u,h]=r1(null),[f,m]=r1(null),{styles:p,attributes:v}=pr(u,f),[x,E]=r1(!1),C=()=>{E(!0)},j=()=>{E(!1)};gy(()=>{const b=B=>{var T;u==null&&f==null&&j();const y=(T=document.getElementById("brandy-upload-media"))==null?void 0:T.closest(".media-modal.wp-core-ui");!(y!=null&&y.contains(B.target))&&!(f!=null&&f.contains(B.target))&&!(u!=null&&u.contains(B.target))&&j()},H=()=>{const B=window.jQuery("#brandy-upload-media").closest(".media-modal.wp-core-ui").parent();B&&B.remove()};return window.jQuery(document).on("click","body",b),()=>{window.jQuery(document).off("click","body",b),H()}},[u,f]);const I=sr(()=>e.type==="solid"?445:e.type==="gradient"?530:e.image.url===""?150:500,[e.type,e.image.url]),$=sr(()=>i==="solid"?l.color===""||l.color.endsWith("00")&&l.color.length>7:i==="gradient"?a.indexOf(",0)")!==a.lastIndexOf(",0)")&&a.indexOf(",0)")!==-1&&a.lastIndexOf(",0)")!==-1||a.indexOf(",0)")!==a.lastIndexOf(", 0)")&&a.indexOf(",0)")!==-1&&a.lastIndexOf(", 0)")!==-1||a.indexOf(", 0)")!==a.lastIndexOf(",0)")&&a.indexOf(", 0)")!==-1&&a.lastIndexOf(",0)")!==-1||a.indexOf(", 0)")!==a.lastIndexOf(", 0)")&&a.indexOf(", 0)")!==-1&&a.lastIndexOf(", 0)")!==-1:s.url==="",[i,l.color,a,s.url]),_=sr(()=>i==="solid"&&l.isGlobal,[i,l.isGlobal]);return r.jsx(vy.Provider,{value:c,children:r.jsxs(xy,{children:[r.jsxs(by,{style:d,ref:h,onClick:C,$_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"},x&&{outlineColor:"#1e1e1e"},$&&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:[$&&r.jsx(yy,{className:"[&_svg]:fill-[#A1ABB7]",children:r.jsx(Tp,{})}),_&&!$&&r.jsx(Cy,{children:r.jsx(Lp,{})})]}),x&&r.jsx(_y,{ref:m,style:p.popper,...v.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(Lr,{className:"color-picker-popup",style:{height:I},autoHide:!0,children:[r.jsx(Sy,{children:r.jsx(mn,{options:my,selected:i,onChange:c.changeType})}),r.jsxs("div",{children:[i==="solid"&&r.jsx(Wp,{color:o,onChange:c.changeSolidColor}),i==="gradient"&&r.jsx(Zp,{value:a,onChange:c.changeGradientColor}),i==="image"&&r.jsx(oy,{value:s,onChange:c.changeImage})]})]})})]})})}var xy=w("div")({position:"relative"}),by=w("div")`${e=>e.$_css2}`,yy=w("span")({position:"relative",display:"inline-block"}),Cy=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"}}),_y=w("div")`${e=>e.$_css3}`,Sy=w("div").withConfig({displayName:"BackgroundPicker___StyledDiv4",componentId:"sc-1vzs4ya-0"})({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"});const jy=window.React.useMemo;function ky(e){const{current:t}=De(),n=jy(()=>ye(e.value,t),[t,e.value]),i=(o,a)=>{e.onChange({...n,[a]:o})};return r.jsxs(Ey,{children:[r.jsx(pt,{title:e.title,className:"mb-0"}),r.jsxs(Dy,{children:[r.jsx(Kl,{...e,reset_paths:[e.value_path],title:null,reset_action:"row_settings"}),r.jsx(wy,{value:n,onChange:i})]})]})}var Ey=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Dy=w("div").withConfig({displayName:"BackgroundBuilder___StyledDiv2",componentId:"sc-18ksi7m-0"})({display:"flex",alignItems:"center",gap:"0.75rem"});const $y=window.React.useMemo,i1=w.span.withConfig({displayName:"VerticalAlignmentBuilder__StyledOptionItem",componentId:"sc-16og1d2-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Hy=[{value:"top",label:r.jsxs(i1,{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(i1,{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(i1,{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 My(e){const t=$y(()=>Hy.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(ni,{...e,options:t})}const Ty=window.React.useMemo;function Iy(e){return Ty(()=>r.jsxs("div",{children:[r.jsx(Ly,{children:r.jsx(pt,{className:Ae(["mb-0"]),title:e.title})}),e.content&&r.jsx("div",{dangerouslySetInnerHTML:{__html:e.content}})]}),[e.content,e.title])}var Ly=w("div").withConfig({displayName:"FlexibleBuilder___StyledDiv",componentId:"sc-17nqz4o-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});const Ay=window.React.useMemo,o1=w.span.withConfig({displayName:"HorizontalAlignmentBuilder__StyledOptionItem",componentId:"sc-1ebs2zw-0"})({display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"}),Ry=[{value:"left",label:r.jsxs(o1,{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(o1,{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(o1,{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 Oy(e){const t=Ay(()=>Ry.filter(n=>e.available_alignments?e.available_alignments.includes(n.value):!0),[e.available_alignments]);return r.jsx(ni,{...e,options:t})}const Ny=window.React.useEffect,rg=[[{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>'}]],Py=rg.reduce((e,t)=>[...e,t.map(n=>n.key).join(" ")],[]).join(" | "),By=rg.reduce((e,t)=>[...e,...t],[]);function Vy({id:e,value:t,onChange:n}){Ny(()=>{var a,s,l,c;window.wp.editor.initialize(e,{tinymce:{class:"brandy-tinymce",toolbar1:Py,style_formats_merge:!0,style_formats:[{title:"Font Weights",items:[{title:"Light (300)",inline:"span",styles:{"font-weight":"300"}},{title:"Normal (400)",inline:"span",styles:{"font-weight":"400"}},{title:"Medium (500)",inline:"span",styles:{"font-weight":"500"}},{title:"Semi Bold (600)",inline:"span",styles:{"font-weight":"600"}},{title:"Bold (700)",inline:"span",styles:{"font-weight":"700"}},{title:"Extra Bold (800)",inline:"span",styles:{"font-weight":"800"}}]}],fontsize_formats:"8px 9px 10px 11px 12px 13px 14px 15px 16px 18px 21px 24px 30px 36px 40px 70px",textcolor_map:[...(((s=(a=window.brandyCustomizerData.theme_settings.color)==null?void 0:a.palette)==null?void 0:s.theme)??[]).reduce((d,u)=>[...d,u.color.replace("#",""),u.name],[])],font_formats:(((c=(l=window.brandyCustomizerData.theme_settings.typography)==null?void 0:l.fontFamilies)==null?void 0:c.theme)??[]).map(d=>`${d.name}=${d.fontFamily};`).join("")+"Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Oswald=oswald; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats"},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"}});const o=window.tinymce.get(e);return o.on("init",()=>{var f,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=By[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 h=document.createElement("button");h.className="insert-media add_media brandy-insert-media",h.innerHTML="+ Add media",(m=(f=d.querySelector(".mce-last.mce-btn-group"))==null?void 0:f.parentElement)==null||m.appendChild(h)}),o.on("change",()=>{n(o.getContent())}),o.on("keyup undo redo",()=>{n(o.getContent())}),()=>{var d;window.wp.editor.remove(e),(d=document.querySelector(".ui-menu.ui-widget"))==null||d.remove()}},[]);const i=o=>{n(o.target.value)};return r.jsx("div",{className:"brandy-customize-editor",id:`customize-editor-${e}`,children:r.jsx("textarea",{value:t,id:e,onChange:i,className:"brandy-editor-textarea"})})}const zy=window.React.useMemo;function ig({id:e,value:t,onChange:n}){const i=zy(()=>t,[t]),o=l=>{n(l),s(l)},s=No(l=>l,200);return r.jsx(Vy,{id:e,onChange:o,value:i})}const Fy=window.React.useMemo,Zy=window.React.useState;function Wy(e){const t=Fy(()=>e.prefilleds??[],[e.prefilleds]),n=a=>{const s=window.tinymce.get(e.sectionId);s&&s.setContent(a),e.onChange(a)},[i,o]=Zy(!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(ig,{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(Gy,{children:e.description})]})}var Gy=w("div").withConfig({displayName:"PrefilledHTML___StyledDiv",componentId:"sc-uzr3vx-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});function Uy(e){return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(ig,{value:e.value,onChange:e.onChange,id:e.sectionId,toolbars:""}),e.description&&r.jsx(Yy,{children:e.description})]},e.sectionId)}var Yy=w("div").withConfig({displayName:"HTMLBuilder___StyledDiv",componentId:"sc-kly0zw-0"})({marginTop:"1rem",fontSize:"12px",fontStyle:"italic"});const Xy=window.React.useState;function Jy(e){const[t,n]=Xy(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{__:th}=window.wp.i18n,{__experimentalLibrary:Ky}=window.wp.blockEditor;function qy({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:th("Add a block")}),r.jsx("button",{className:"customize-widgets-layout__inserter-panel-header-close-button w-[24px] h-[24px]",onClick:e,"aria-label":th("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(Ky,{onSelect:e})})]})}const Qy=window.React.useContext,nh=window.React.useSyncExternalStore,eC=window.ReactDOM.createPortal;function tC(){const{inserter:e,sidebar:t}=Qy(Qd),{isOpen:n,openInserter:i,closeInserter:o,toggleInserter:a}=Jy(e),s=nh(on.subscribe,()=>on.canUndo()),l=nh(on.subscribe,()=>on.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()},h=p=>{p.preventDefault(),p.stopPropagation(),on.canUndo()?on.undo():t.undo()},f=p=>{p.preventDefault(),p.stopPropagation(),on.canRedo()?on.redo():t.redo()},m=eC(n?r.jsx(qy,{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:h,className:Ae(["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:f,className:Ae(["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 nC=window.React.useEffect,{useDispatch:rC,useSelect:iC}=window.wp.data,{store:rh}=window.wp.blockEditor;function oC(e,t){const{hasSelectedBlock:n,hasMultiSelection:i}=iC(rh),{clearSelectedBlock:o}=rC(rh);nC(()=>{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 aC(e,t){return e==null||e!==e?t:e}var sC=aC;const lC=xn(sC),cC=window.React.useMemo,{useSelect:dC}=window.wp.data,{store:uC}=window.wp.coreData,{uploadMedia:hC}=window.wp.mediaUtils;function og(){const e=window.brandyWidgetsBlockEditorSettings,{hasUploadPermission:t}=dC(i=>({hasUploadPermission:lC(i(uC).canUser("create","media"),!0)}));return{settings:cC(()=>{let i;return t&&(i=({onError:o,...a})=>{hC({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:s})=>o(s),...a})}),{...e,mediaUpload:i,__unstableHasCustomAppender:!0,keepCaretInsideBlock:!0}},[t])}}var il={exports:{}};il.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,h=1/0,f=9007199254740991,m="[object Arguments]",p="[object Array]",v="[object AsyncFunction]",x="[object Boolean]",E="[object Date]",C="[object Error]",j="[object Function]",I="[object GeneratorFunction]",$="[object Map]",_="[object Number]",b="[object Null]",H="[object Object]",B="[object Promise]",y="[object Proxy]",T="[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]",fe="[object Uint32Array]",de=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,se=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/[\\^$.*+?()[\]{}|]/g,et=/\\(\\)?/g,S=/\w*$/,A=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,Y={};Y[O]=Y[X]=Y[ee]=Y[q]=Y[ae]=Y[ce]=Y[W]=Y[re]=Y[fe]=!0,Y[m]=Y[p]=Y[V]=Y[x]=Y[U]=Y[E]=Y[C]=Y[j]=Y[$]=Y[_]=Y[H]=Y[T]=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[$]=J[_]=J[H]=J[T]=J[L]=J[F]=J[G]=J[ce]=J[W]=J[re]=J[fe]=!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")(),Re=t&&!t.nodeType&&t,Pe=Re&&!0&&e&&!e.nodeType&&e,Nt=Pe&&Pe.exports===Re,Ge=Nt&&te.process,un=function(){try{var g=Pe&&Pe.require&&Pe.require("util").types;return g||Ge&&Ge.binding&&Ge.binding("util")}catch{}}(),Qn=un&&un.isMap,Pt=un&&un.isSet,yn=un&&un.isTypedArray;function Yi(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 Bt(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 ri(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 gr(g,D){for(var N=-1,Q=Array(g);++N<g;)Q[N]=D(N);return Q}function Jt(g){return function(D){return g(D)}}function Or(g,D){return g==null?void 0:g[D]}function Nr(g,D){return function(N){return g(D(N))}}var Go=Array.prototype,Kt=Function.prototype,er=Object.prototype,ii=ue["__core-js_shared__"],tr=Kt.toString,xt=er.hasOwnProperty,Nn=function(){var g=/[^.]+$/.exec(ii&&ii.keys&&ii.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),Pr=er.toString,oi=tr.call(Object),Br=RegExp("^"+tr.call(xt).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qt=Nt?ue.Buffer:void 0,Pn=ue.Symbol,Xi=ue.Uint8Array,Ji=qt?qt.allocUnsafe:void 0,Vr=Nr(Object.getPrototypeOf,Object),ai=Object.create,Cn=er.propertyIsEnumerable,si=Go.splice,fn=Pn?Pn.isConcatSpreadable:void 0,_n=Pn?Pn.toStringTag:void 0,mr=function(){try{var g=jn(Object,"defineProperty");return g({},"",{}),g}catch{}}(),li=Object.getOwnPropertySymbols,ze=qt?qt.isBuffer:void 0,Ce=Nr(Object.keys,Object),He=Math.max,ot=Date.now,Xe=jn(ue,"DataView"),Et=jn(ue,"Map"),At=jn(ue,"Promise"),Vt=jn(ue,"Set"),bt=jn(ue,"WeakMap"),Sn=jn(Object,"create"),vr=fi(Xe),wr=fi(Et),Uo=fi(At),rc=fi(Vt),Ki=fi(bt),qi=Pn?Pn.prototype:void 0,os=qi?qi.valueOf:void 0,Bn=qi?qi.toString:void 0,ic=function(){function g(){}return function(D){if(!Jo(D))return{};if(ai)return ai(D);g.prototype=D;var N=new g;return g.prototype=void 0,N}}();function xr(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 oc(){this.__data__=Sn?Sn(null):{},this.size=0}function ac(g){var D=this.has(g)&&delete this.__data__[g];return this.size-=D?1:0,D}function sc(g){var D=this.__data__;if(Sn){var N=D[g];return N===o?void 0:N}return xt.call(D,g)?D[g]:void 0}function lc(g){var D=this.__data__;return Sn?D[g]!==void 0:xt.call(D,g)}function Qi(g,D){var N=this.__data__;return this.size+=this.has(g)?0:1,N[g]=Sn&&D===void 0?o:D,this}xr.prototype.clear=oc,xr.prototype.delete=ac,xr.prototype.get=sc,xr.prototype.has=lc,xr.prototype.set=Qi;function Vn(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 ci(){this.__data__=[],this.size=0}function as(g){var D=this.__data__,N=eo(D,g);if(N<0)return!1;var Q=D.length-1;return N==Q?D.pop():si.call(D,N,1),--this.size,!0}function ss(g){var D=this.__data__,N=eo(D,g);return N<0?void 0:D[N][1]}function cc(g){return eo(this.__data__,g)>-1}function dc(g,D){var N=this.__data__,Q=eo(N,g);return Q<0?(++this.size,N.push([g,D])):N[Q][1]=D,this}Vn.prototype.clear=ci,Vn.prototype.delete=as,Vn.prototype.get=ss,Vn.prototype.has=cc,Vn.prototype.set=dc;function nr(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 uc(){this.size=0,this.__data__={hash:new xr,map:new(Et||Vn),string:new xr}}function ls(g){var D=hi(this,g).delete(g);return this.size-=D?1:0,D}function hc(g){return hi(this,g).get(g)}function fc(g){return hi(this,g).has(g)}function cs(g,D){var N=hi(this,g),Q=N.size;return N.set(g,D),this.size+=N.size==Q?0:1,this}nr.prototype.clear=uc,nr.prototype.delete=ls,nr.prototype.get=hc,nr.prototype.has=fc,nr.prototype.set=cs;function zn(g){var D=this.__data__=new Vn(g);this.size=D.size}function zr(){this.__data__=new Vn,this.size=0}function pc(g){var D=this.__data__,N=D.delete(g);return this.size=D.size,N}function gc(g){return this.__data__.get(g)}function rr(g){return this.__data__.has(g)}function mc(g,D){var N=this.__data__;if(N instanceof Vn){var Q=N.__data__;if(!Et||Q.length<n-1)return Q.push([g,D]),this.size=++N.size,this;N=this.__data__=new nr(Q)}return N.set(g,D),this.size=N.size,this}zn.prototype.clear=zr,zn.prototype.delete=pc,zn.prototype.get=gc,zn.prototype.has=rr,zn.prototype.set=mc;function ds(g,D){var N=pi(g),Q=!N&&v0(g),ge=!N&&!Q&&x0(g),Ee=!N&&!Q&&!ge&&$3(g),Ve=N||Q||ge||Ee,nt=Ve?gr(g.length,String):[],Zn=nt.length;for(var Wn in g)(D||xt.call(g,Wn))&&!(Ve&&(Wn=="length"||ge&&(Wn=="offset"||Wn=="parent")||Ee&&(Wn=="buffer"||Wn=="byteLength"||Wn=="byteOffset")||h3(Wn,Zn)))&&nt.push(Wn);return nt}function us(g,D,N){var Q=g[D];(!(xt.call(g,D)&&m0(Q,N))||N===void 0&&!(D in g))&&Yo(g,D,N)}function eo(g,D){for(var N=g.length;N--;)if(m0(g[N][0],D))return N;return-1}function vc(g,D){return g&&Ht(D,Ec(D),g)}function br(g,D){return g&&Ht(D,Dc(D),g)}function Yo(g,D,N){D=="__proto__"&&mr?mr(g,D,{configurable:!0,enumerable:!0,value:N,writable:!0}):g[D]=N}function to(g,D,N,Q,ge,Ee){var Ve,nt=D&s,Zn=D&l,Wn=D&c;if(N&&(Ve=ge?N(g,Q,ge,Ee):N(g)),Ve!==void 0)return Ve;if(!Jo(g))return g;var _0=pi(g);if(_0){if(Ve=l3(g),!nt)return zt(g,Ve)}else{var io=Cr(g),S0=io==j||io==I;if(x0(g))return We(g,nt);if(io==H||io==m||S0&&!ge){if(Ve=Zn||S0?{}:c3(g),!nt)return Zn?Qt(g,br(Ve,g)):Dt(g,vc(Ve,g))}else{if(!J[io])return ge?g:{};Ve=d3(g,io,nt)}}Ee||(Ee=new zn);var j0=Ee.get(g);if(j0)return j0;Ee.set(g,Ve),D3(g)?g.forEach(function(Fr){Ve.add(to(Fr,D,N,Fr,g,Ee))}):k3(g)&&g.forEach(function(Fr,mi){Ve.set(mi,to(Fr,D,N,mi,g,Ee))});var A3=Wn?Zn?or:Fn:Zn?Dc:Ec,k0=_0?void 0:A3(g);return Bt(k0||g,function(Fr,mi){k0&&(mi=Fr,Fr=g[mi]),us(Ve,mi,to(Fr,D,N,mi,g,Ee))}),Ve}function di(g,D,N,Q,ge){var Ee=-1,Ve=g.length;for(N||(N=u3),ge||(ge=[]);++Ee<Ve;){var nt=g[Ee];D>0&&N(nt)?D>1?di(nt,D-1,N,Q,ge):Lt(ge,nt):Q||(ge[ge.length]=nt)}return ge}function wc(g,D){D=le(D,g);for(var N=0,Q=D.length;g!=null&&N<Q;)g=g[Sc(D[N++])];return N&&N==Q?g:void 0}function no(g,D,N){var Q=D(g);return pi(g)?Q:Lt(Q,N(g))}function yr(g){return g==null?g===void 0?R:b:_n&&_n in Object(g)?ro(g):w3(g)}function Xo(g){return gi(g)&&yr(g)==m}function hs(g){return gi(g)&&Cr(g)==$}function fs(g){if(!Jo(g)||g3(g))return!1;var D=b0(g)?Br:A;return D.test(fi(g))}function ui(g){return gi(g)&&Cr(g)==L}function ps(g){return gi(g)&&y0(g.length)&&!!Y[yr(g)]}function xc(g){if(!_c(g))return Ce(g);var D=[];for(var N in Object(g))xt.call(g,N)&&N!="constructor"&&D.push(N);return D}function bc(g){if(!Jo(g))return v3(g);var D=_c(g),N=[];for(var Q in g)Q=="constructor"&&(D||!xt.call(g,Q))||N.push(Q);return N}var yc=mr?function(g,D){return mr(g,"toString",{configurable:!0,enumerable:!1,value:T3(D),writable:!0})}:I3;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(pi(g))return ri(g,z)+"";if(kc(g))return Bn?Bn.call(g):"";var D=g+"";return D=="0"&&1/g==-h?"-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=Sc(D[N]);if(ge==="__proto__"&&!xt.call(g,"__proto__")||(ge==="constructor"||ge==="prototype")&&N<Q-1)return!1}var Ee=b3(g,D);return Ee==null||delete Ee[Sc(j3(D))]}function le(g,D){return pi(g)?g:f3(g,D)?[g]:_3(H3(g))}function We(g,D){if(D)return g.slice();var N=g.length,Q=Ji?Ji(N):new g.constructor(N);return g.copy(Q),Q}function _e(g){var D=new g.constructor(g.byteLength);return new Xi(D).set(new Xi(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 os?Object(os.call(g)):{}}function Je(g,D){var N=D?_e(g.buffer):g.buffer;return new g.constructor(N,g.byteOffset,g.length)}function zt(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?Yo(N,nt,Zn):us(N,nt,Zn)}return N}function Dt(g,D){return Ht(g,Cc(g),D)}function Qt(g,D){return Ht(g,g0(g),D)}function en(g){return E3(g)?void 0:g}function ir(g){return y3(x3(g,void 0,S3),g+"")}function Fn(g){return no(g,Ec,Cc)}function or(g){return no(g,Dc,g0)}function hi(g,D){var N=g.__data__;return p3(D)?N[typeof D=="string"?"string":"hash"]:N.map}function jn(g,D){var N=Or(g,D);return fs(N)?N:void 0}function ro(g){var D=xt.call(g,_n),N=g[_n];try{g[_n]=void 0;var Q=!0}catch{}var ge=Pr.call(g);return Q&&(D?g[_n]=N:delete g[_n]),ge}var Cc=li?function(g){return g==null?[]:(g=Object(g),hn(li(g),function(D){return Cn.call(g,D)}))}:C0,g0=li?function(g){for(var D=[];g;)Lt(D,Cc(g)),g=Vr(g);return D}:C0,Cr=yr;(Xe&&Cr(new Xe(new ArrayBuffer(1)))!=U||Et&&Cr(new Et)!=$||At&&Cr(At.resolve())!=B||Vt&&Cr(new Vt)!=L||bt&&Cr(new bt)!=Z)&&(Cr=function(g){var D=yr(g),N=D==H?g.constructor:void 0,Q=N?fi(N):"";if(Q)switch(Q){case vr:return U;case wr:return $;case Uo:return B;case rc:return L;case Ki:return Z}return D});function l3(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 c3(g){return typeof g.constructor=="function"&&!_c(g)?ic(Vr(g)):{}}function d3(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 fe:return Je(g,N);case $:return new Q;case _:case F:return new Q(g);case T:return gt(g);case L:return new Q;case G:return yt(g)}}function u3(g){return pi(g)||v0(g)||!!(fn&&g&&g[fn])}function h3(g,D){var N=typeof g;return D=D??f,!!D&&(N=="number"||N!="symbol"&&M.test(g))&&g>-1&&g%1==0&&g<D}function f3(g,D){if(pi(g))return!1;var N=typeof g;return N=="number"||N=="symbol"||N=="boolean"||g==null||kc(g)?!0:se.test(g)||!de.test(g)||D!=null&&g in Object(D)}function p3(g){var D=typeof g;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?g!=="__proto__":g===null}function g3(g){return!!Nn&&Nn in g}function _c(g){var D=g&&g.constructor,N=typeof D=="function"&&D.prototype||er;return g===N}function m3(g){var D=jc(g,function(Q){return N.size===a&&N.clear(),Q}),N=D.cache;return D}function v3(g){var D=[];if(g!=null)for(var N in Object(g))D.push(N);return D}function w3(g){return Pr.call(g)}function x3(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),Yi(g,this,nt)}}function b3(g,D){return D.length<2?g:wc(g,k(D,0,-1))}var y3=C3(yc);function C3(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 _3=m3(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 Sc(g){if(typeof g=="string"||kc(g))return g;var D=g+"";return D=="0"&&1/g==-h?"-0":D}function fi(g){if(g!=null){try{return tr.call(g)}catch{}try{return g+""}catch{}}return""}function S3(g){var D=g==null?0:g.length;return D?di(g,1):[]}function j3(g){var D=g==null?0:g.length;return D?g[D-1]:void 0}function jc(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(jc.Cache||nr),N}jc.Cache=nr;function m0(g,D){return g===D||g!==g&&D!==D}var v0=Xo(function(){return arguments}())?Xo:function(g){return gi(g)&&xt.call(g,"callee")&&!Cn.call(g,"callee")},pi=Array.isArray;function w0(g){return g!=null&&y0(g.length)&&!b0(g)}var x0=ze||L3;function b0(g){if(!Jo(g))return!1;var D=yr(g);return D==j||D==I||D==v||D==y}function y0(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=f}function Jo(g){var D=typeof g;return g!=null&&(D=="object"||D=="function")}function gi(g){return g!=null&&typeof g=="object"}var k3=Qn?Jt(Qn):hs;function E3(g){if(!gi(g)||yr(g)!=H)return!1;var D=Vr(g);if(D===null)return!0;var N=xt.call(D,"constructor")&&D.constructor;return typeof N=="function"&&N instanceof N&&tr.call(N)==oi}var D3=Pt?Jt(Pt):ui;function kc(g){return typeof g=="symbol"||gi(g)&&yr(g)==G}var $3=yn?Jt(yn):ps;function H3(g){return g==null?"":z(g)}function Ec(g){return w0(g)?ds(g):xc(g)}function Dc(g){return w0(g)?ds(g,!0):bc(g)}var M3=ir(function(g,D){var N={};if(g==null)return N;var Q=!1;D=ri(D,function(Ee){return Ee=le(Ee,g),Q||(Q=Ee.length>1),Ee}),Ht(g,or(g),N),Q&&(N=to(N,s|l|c,en));for(var ge=D.length;ge--;)K(N,D[ge]);return N});function T3(g){return function(){return g}}function I3(g){return g}function C0(){return[]}function L3(){return!1}e.exports=M3})(il,il.exports);var fC=il.exports;const pC=xn(fC),{serialize:gC,parse:mC,createBlock:a1}=window.wp.blocks,{addWidgetIdToBlock:vC}=window.wp.widgets;function ih(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:gC(e)}}};return{...pC(t,["form","rendered"]),...n}}function oh({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=mC(l.content);o=d.length?d[0]:a1("core/paragraph",{})}else n?o=a1("core/legacy-widget",{idBase:t,instance:{encoded:a,hash:s,raw:l,...c}}):o=a1("core/legacy-widget",{id:e});return vC(o,e)}const wC=window.React.useCallback,xC=window.React.useEffect,bC=window.React.useState,{isShallowEqualArrays:Cs}=window.wp.isShallowEqual,{getWidgetIdFromBlock:s1,addWidgetIdToBlock:yC}=window.wp.widgets;function CC(e){const[t,n]=bC(e.getWidgets().map(o=>oh(o)));xC(()=>e.subscribe((o,a)=>{n(s=>{const l=new Map(o.map(u=>[u.id,u])),c=new Map(s.map(u=>[s1(u),u])),d=a.map(u=>{const h=l.get(u.id);return h&&h===u?c.get(u.id):oh(u)});return Cs(s,d)?s:d})}),[e]);const i=wC(o=>{n(a=>{if(Cs(a,o))return a;const s=new Map(a.map(d=>[s1(d),d])),l=o.map(d=>{const u=s1(d);if(u&&s.has(u)){const h=s.get(u),f=e.getWidget(u);return Cs(JSON.stringify(d),JSON.stringify(h))&&f?f:ih(d,f)}return ih(d)});if(Cs(e.getWidgets(),l))return a;const c=e.setWidgets(l);return o.reduce((d,u,h)=>{const f=c[h];return f!==null&&(d===o&&(d=o.slice()),d[h]=yC(u,f)),d},o)})},[e]);return{blocks:t,updateBlocks:i}}const{BlockList:_C,BlockTools:SC,BlockSelectionClearer:jC,CopyHandler:kC,ObserveTyping:EC,WritingFlow:DC,__unstableEditorStyles:$C,ButtonBlockAppender:HC}=window.wp.blockEditor;function MC(){const{settings:e}=og();return r.jsx("div",{className:"brandy-widget-content__inspector",children:r.jsx(kC,{children:r.jsxs(SC,{children:[r.jsx($C,{styles:[...e.defaultEditorStyles,{css:"body{font-size: 13px !important;}"}]}),r.jsx(jC,{children:r.jsx(DC,{className:"editor-styles-wrapper",children:r.jsx(EC,{children:r.jsx(_C,{renderAppender:HC})})})})]})})})}const TC=window.React.useEffect,{useShortcut:l1,store:IC}=window.wp.keyboardShortcuts,{useDispatch:LC}=window.wp.data;function rd({undo:e,redo:t,save:n}){return l1("core/customize-widgets/undo",i=>{e(),i.preventDefault()}),l1("core/customize-widgets/redo",i=>{t(),i.preventDefault()}),l1("core/customize-widgets/save",i=>{i.preventDefault(),n()}),null}function AC(){const{registerShortcut:e,unregisterShortcut:t}=LC(IC);return TC(()=>(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}rd.Register=AC;const RC=window.React.useContext,{__unstableBlockSettingsMenuFirstItem:OC}=window.wp.blockEditor,{MenuItem:NC}=window.wp.components;function PC(){const{inspector:e}=RC(Qd);return r.jsx(OC,{children:({onClose:t})=>r.jsx(NC,{onClick:()=>{e.open(),t()},inspector:e,children:"Show more settings"})})}const BC=me`
  ${{"--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}}
  &:after {
    ${{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))"}}
  }
`,VC=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"}}
  }
`,zC=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))"},VC,e&&BC]);function FC({current:e,items:t,onChange:n,styledCSS:i}){return r.jsx(ZC,{$_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(zC,{onClick:()=>{n(a)},isActive:e===a,className:e===a?"active":"",children:o},a))})}var ZC=w("div").withConfig({displayName:"Tabs___StyledDiv",componentId:"sc-1e1ax13-1"})(["",""],e=>e.$_css2);const ah=window.React.useMemo,WC=window.React.useState,GC=[{label:"General",key:"general"},{label:"Designs",key:"designs"}];function es(e){const t=ah(()=>(e==null?void 0:e.items)??GC,[e]),[n,i]=WC(t[0].key);return{contextHolder:ah(()=>r.jsx(FC,{items:t,current:n,onChange:i}),[t,n,i]),items:t,currentTab:n,setCurrentTab:i}}const UC=window.React.useMemo;function Ar({title:e,onGoBack:t,hasBottomPart:n=!0,builder:i}){const o=oe(i??"header"),a=o(h=>h.chosenElement),s=o(h=>h.previewTemplate.id),l=o(h=>h.resetTemplate),c=o(h=>h.resetElement),d=()=>{a?c(a.id):l()},u=UC(()=>s?[...i==="header"?window.brandyNichesHeaders:window.brandyNichesFooters,...Object.values(i==="header"?window.brandyHeaderPresets:window.brandyFooterPresets)].find(f=>f.id===s)!==void 0:!1,[s]);return r.jsxs(r.Fragment,{children:[r.jsxs(YC,{className:"brandy-panel-header",children:[r.jsx("div",{className:"customize-section-back",onClick:t}),r.jsxs(XC,{children:[e??r.jsxs(r.Fragment,{children:[r.jsxs(JC,{children:[P("Customizing")," ▸ ",P("Not found")]}),r.jsx(KC,{children:P("Not found")})]}),u&&r.jsx(qC,{onClick:d,children:P(a?"Reset to default":"Reset template to default")})]})]}),n&&r.jsx(QC,{})]})}var YC=w("div")({display:"flex",alignItems:"center",borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))"}),XC=w("div")({height:"100%",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"0.75rem"}),JC=w("div")({fontSize:"13px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),KC=w("div")({fontSize:"20px",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),qC=w("p")({marginTop:"0.5rem",cursor:"pointer","--tw-text-opacity":"1",color:"rgb(34 113 177 / var(--tw-text-opacity, 1))"}),QC=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 e_=window.React,t_=window.React.memo,n_=window.React.useCallback,ag=window.React.useContext,sg=window.React.useMemo,lt=e_.createContext({});function r_(e){const{builder:t}=ag(Xt),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=n_(()=>{dn(),n()},[dn,n]),s=sg(()=>({builder:t,goBack:a}),[t,a]);return r.jsxs(lt.Provider,{value:s,children:[r.jsx(Ar,{onGoBack:a,builder:t,title:r.jsxs(r.Fragment,{children:[r.jsxs(a_,{children:[P("Customizing")," ▸ ",o]}),r.jsx(s_,{children:i||"Not found"})]})}),r.jsx(o_,{elementId:e.elementId,clonedFromId:e.clonedFromId})]})}function i_({elementId:e,clonedFromId:t}){const{builder:n}=ag(lt),{contextHolder:i,currentTab:o}=es(),a=oe(n)(c=>{var d;return((d=c.chosenElement)==null?void 0:d.settings)??{}}),s=oe(n)(c=>c.changeElementSettings),l=sg(()=>{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(kd,{children:l.map((c,d)=>r.jsx(rs,{section:c,sectionKey:`${o}-${d}`,sectionId:e,settings:a,onChange:s,builder:n,clonedFromId:t},`${o}-${d}`))})]})}const o_=t_(i_);var a_=w("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),s_=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 l_=window.React.createContext,c_=window.React.useContext,d_=window.React.useEffect,ia=window.React.useMemo,u_=window.React.useRef,sh=window.ReactDOM.createPortal,{BlockEditorKeyboardShortcuts:h_,BlockEditorProvider:f_,BlockInspector:p_}=window.wp.blockEditor,{ShortcutProvider:g_}=window.wp.keyboardShortcuts,{SlotFillProvider:m_,Popover:v_}=window.wp.components,{removeFilter:w_}=window.wp.hooks;w_("editor.BlockEdit","core/customize-widgets/block-edit");const Qd=l_({});function x_(e){const{builder:t}=c_(lt),n=ia(()=>`${t}_${e.sectionId}`,[e.sectionId,t]),i=ia(()=>window.wp.customize.control(`sidebars_widgets[${n}]`),[n]),{blocks:o,updateBlocks:a}=CC(i.sidebarAdapter),{settings:s}=og(),l=u_(null);oC(i,l);const c=ia(()=>`#sub-accordion-section-widgets-inspector-sidebar-widgets-${n}`,[n]),d=ia(()=>`#sub-accordion-section-sidebar-widgets-${n}`,[n]),u=ia(()=>({inserter:i.inserter,sidebar:i.sidebarAdapter,inspector:i.inspector}),[i]);d_(()=>{var p;return(p=document.querySelector(d))==null||p.remove(),u.inspector.triggerActiveCallbacks=()=>{},()=>{u.inserter.close()}},[]);const h=sh(r.jsx("div",{className:"customize-widgets-popover",ref:l,children:r.jsx(v_.Slot,{})}),document.body),f=p=>{a(p)},m=p=>{a(p)};return r.jsx(Qd.Provider,{value:u,children:r.jsxs(m_,{children:[r.jsx("div",{className:"brandy-block-inspector",children:r.jsxs(g_,{children:[r.jsx(h_.Register,{}),r.jsx(rd.Register,{}),r.jsxs(f_,{value:o,onChange:f,onInput:m,useSubRegistry:!1,settings:s,children:[r.jsx(rd,{undo:u.sidebar.undo,redo:u.sidebar.redo,save:u.sidebar.save}),r.jsx(tC,{}),r.jsx(MC,{}),sh(r.jsx("form",{className:"hehehihi",onSubmit:p=>p.preventDefault(),children:r.jsx(p_,{})}),document.querySelector(c)??document.body)]}),r.jsx(PC,{})]})}),h]})})}const b_=window.React.useMemo;function y_(e){return b_(()=>r.jsx(x_,{sectionId:e.sectionId}),[])}const C_=window.React.useEffect,lh=window.React.useMemo,c1=window.React.useState;function __({options:e,selected:t,onChange:n=()=>!1,style:i={}}){const[o,a]=c1(null),[s,l]=c1(null),{styles:c,attributes:d}=pr(o,s),[u,h]=c1(!1),f=lh(()=>(o==null?void 0:o.getBoundingClientRect().width)??0,[o]),m=()=>{h(j=>!j)},p=()=>{h(!1)};C_(()=>{const j=I=>{(o==null||s==null)&&p(),!(o!=null&&o.contains(I.target))&&!(s!=null&&s.contains(I.target))&&p()};return window.jQuery(document).on("click","body",j),()=>{window.jQuery(document).off("click","body",j)}},[o,s]);const v=j=>{const I=t.indexOf(j);let $=[];I===-1?$=[...t,j]:$=t.filter(_=>_!==j),n($)},x=j=>{const I=t.filter($=>$!==j);n(I)},E=j=>t.includes(j),C=lh(()=>e.length*47>300?300:e.length*47,[e]);return r.jsxs("div",{className:"brandy-select",style:i,children:[r.jsxs("div",{className:Ae(["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 I=e.find($=>$.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:I==null?void 0:I.label}),r.jsx("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false","data-icon":"close",width:"10px",height:"10px",fill:"currentColor","aria-hidden":"true",className:"text-[#848484] hover:text-[#000]",onClick:$=>{$.stopPropagation(),x((I==null?void 0:I.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:f,boxShadow:"0px 0px 8px 0px rgba(51, 51, 51, 0.10)"},...d.popper,className:Ae(["my-2  z-[99999999999] rounded-base overflow-hidden","cursor-pointer"]),children:r.jsx(Lr,{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(S_,{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:"rgba(34, 113, 177, 0.03)","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity, 1))"}},{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"},E(j.value)&&{backgroundColor:"#2271B10D !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / 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 S_=w("div").withConfig({displayName:"MultipleSelect___StyledDiv",componentId:"sc-k7vdlx-0"})(["",""],e=>e.$_css);const j_=window.React.useMemo;function k_(e){const{current:t}=De(),n=j_(()=>ye(e.value,t),[t,e.value]);return r.jsxs("div",{children:[r.jsx(pt,{title:e.title}),r.jsx(__,{selected:n,options:e.options??[],onChange:e.onChange}),e.description&&r.jsx(E_,{dangerouslySetInnerHTML:{__html:e.description}})]})}var E_=w("div").withConfig({displayName:"MultipleSelectBuilder___StyledDiv",componentId:"sc-eadnfz-0"})({marginTop:"0.5rem",fontSize:"12px",fontStyle:"italic"}),lg={exports:{}};/**!
 * Sortable 1.15.7
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function id(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 D_(e){if(Array.isArray(e))return id(e)}function $_(e,t,n){return(t=R_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rn(){return Rn=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},Rn.apply(null,arguments)}function H_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M_(){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 ch(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 ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ch(Object(n),!0).forEach(function(i){$_(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function T_(e,t){if(e==null)return{};var n,i,o=I_(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 I_(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 L_(e){return D_(e)||H_(e)||O_(e)||M_()}function A_(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 R_(e){var t=A_(e,"string");return typeof t=="symbol"?t:t+""}function od(e){"@babel/helpers - typeof";return od=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},od(e)}function O_(e,t){if(e){if(typeof e=="string")return id(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)?id(e,t):void 0}}var N_="1.15.7";function Hr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Rr=Hr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ts=Hr(/Edge/i),dh=Hr(/firefox/i),ja=Hr(/safari/i)&&!Hr(/chrome/i)&&!Hr(/android/i),e0=Hr(/iP(ad|od|hone)/i),cg=Hr(/chrome/i)&&Hr(/android/i),dg={capture:!1,passive:!1};function Te(e,t,n){e.addEventListener(t,n,!Rr&&dg)}function $e(e,t,n){e.removeEventListener(t,n,!Rr&&dg)}function ol(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 ug(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function an(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ol(e,t):ol(e,t))||i&&e===n)return e;if(e===n)break}while(e=ug(e))}return null}var uh=/\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(uh," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(uh," ")}}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 Mi(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 hg(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 cr(){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,h;if(e!==window&&e.parentNode&&e!==cr()?(a=e.getBoundingClientRect(),s=a.top,l=a.left,c=a.bottom,d=a.right,u=a.height,h=a.width):(s=0,l=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Rr))do if(o&&o.getBoundingClientRect&&(pe(o,"transform")!=="none"||n&&pe(o,"position")!=="static")){var f=o.getBoundingClientRect();s-=f.top+parseInt(pe(o,"border-top-width")),l-=f.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=Mi(o||e),p=m&&m.a,v=m&&m.d;m&&(s/=v,l/=p,h/=p,u/=v,c=s+u,d=l+h)}return{top:s,left:l,bottom:c,right:d,width:h,height:u}}}function hh(e,t,n){for(var i=Kr(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===cr())break;i=Kr(i,!1)}return!1}function Po(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)&&an(s[a],n.draggable,e,!1)){if(o===t)return s[a];o++}a++}return null}function t0(e,t){for(var n=e.lastElementChild;n&&(n===be.ghost||pe(n,"display")==="none"||t&&!ol(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||ol(e,t))&&n++;return n}function fh(e){var t=0,n=0,i=cr();if(e)do{var o=Mi(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 P_(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 Kr(e,t){if(!e||!e.getBoundingClientRect)return cr();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 cr();if(i||t)return n;i=!0}}while(n=n.parentNode);return cr()}function B_(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function d1(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 ka;function fg(e,t){return function(){if(!ka){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),ka=setTimeout(function(){ka=void 0},t)}}}function V_(){clearTimeout(ka),ka=void 0}function pg(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function n0(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 ph(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 u1(e){pe(e,"position",""),pe(e,"top",""),pe(e,"left",""),pe(e,"width",""),pe(e,"height","")}function gg(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var a,s,l,c;if(!(!an(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 z_(){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=ur({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=Mi(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(P_(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,h=qe(d),f=d.prevFromRect,m=d.prevToRect,p=l.rect,v=Mi(d,!0);v&&(h.top-=v.f,h.left-=v.e),d.toRect=h,d.thisAnimationDuration&&d1(f,h)&&!d1(u,h)&&(p.top-h.top)/(p.left-h.left)===(u.top-h.top)/(u.left-h.left)&&(c=Z_(p,f,m,o.options)),d1(h,u)||(d.prevFromRect=u,d.prevToRect=h,c||(c=o.options.animation),o.animate(d,p,h,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=Mi(this.el),c=l&&l.a,d=l&&l.d,u=(o.left-a.left)/(c||1),h=(o.top-a.top)/(d||1);i.animatingX=!!u,i.animatingY=!!h,pe(i,"transform","translate3d("+u+"px,"+h+"px,0)"),this.forRepaintDummy=F_(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 F_(e){return e.offsetWidth}function Z_(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 lo=[],h1={initializeByDefault:!0},ns={mount:function(t){for(var n in h1)h1.hasOwnProperty(n)&&!(n in t)&&(t[n]=h1[n]);lo.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),lo.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var a=t+"Global";lo.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][a]&&n[s.pluginName][a](ur({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](ur({sortable:n},i)))})},initializePlugins:function(t,n,i,o){lo.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,Rn(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 lo.forEach(function(o){typeof o.eventProperties=="function"&&Rn(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return lo.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],i))}),o}};function fa(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,h=e.newDraggableIndex,f=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&&!Rr&&!ts?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=h,v.originalEvent=f,v.pullMode=m?m.lastPutMode:void 0;var C=ur(ur({},p),ns.getEventProperties(i,t));for(var j in C)v[j]=C[j];n&&n.dispatchEvent(v),x[E]&&x[E].call(t,v)}}var W_=["evt"],tn=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,a=T_(i,W_);ns.pluginEvent.bind(be)(t,n,ur({dragEl:ie,parentEl:ct,ghostEl:je,rootEl:rt,nextEl:_i,lastDownEl:Zs,cloneEl:at,cloneHidden:Yr,dragStarted:pa,putSortable:Mt,activeSortable:be.active,originalEvent:o,oldIndex:Co,oldDraggableIndex:Ea,newIndex:gn,newDraggableIndex:Ur,hideGhostForTarget:xg,unhideGhostForTarget:bg,cloneNowHidden:function(){Yr=!0},cloneNowShown:function(){Yr=!1},dispatchSortableEvent:function(l){Ft({sortable:n,name:l,originalEvent:o})}},a))};function Ft(e){fa(ur({putSortable:Mt,cloneEl:at,targetEl:ie,rootEl:rt,oldIndex:Co,oldDraggableIndex:Ea,newIndex:gn,newDraggableIndex:Ur},e))}var ie,ct,je,rt,_i,Zs,at,Yr,Co,gn,Ea,Ur,_s,Mt,xo=!1,al=!1,sl=[],xi,Gn,f1,p1,gh,mh,pa,co,Da,$a=!1,Ss=!1,Ws,Rt,g1=[],ad=!1,ll=[],ql=typeof document<"u",js=e0,vh=ts||Rr?"cssFloat":"float",G_=ql&&!cg&&!e0&&"draggable"in document.createElement("div"),mg=function(){if(ql){if(Rr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),vg=function(t,n){var i=pe(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=Po(t,0,n),s=Po(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 h=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===h)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&i[vh]==="none"||s&&i[vh]==="none"&&d+u>o)?"vertical":"horizontal"},U_=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},Y_=function(t,n){var i;return sl.some(function(o){var a=o[Tt].options.emptyInsertThreshold;if(!(!a||t0(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},wg=function(t){function n(a,s){return function(l,c,d,u){var h=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(s||h))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(l,c,d,u),s)(l,c,d,u);var f=(s?l:c).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var i={},o=t.group;(!o||od(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},xg=function(){!mg&&je&&pe(je,"display","none")},bg=function(){!mg&&je&&pe(je,"display","")};ql&&!cg&&document.addEventListener("click",function(e){if(al)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),al=!1,!1},!0);var bi=function(t){if(ie){t=t.touches?t.touches[0]:t;var n=Y_(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)}}},X_=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=Rn({},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 vg(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&&(!ja||e0),emptyInsertThreshold:5};ns.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);wg(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:G_,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)),sl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Rn(this,z_())}be.prototype={constructor:be,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(co=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(rS(i),!ie&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&ja&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=an(c,o.draggable,i,!1),!(c&&c.animated)&&Zs!==c)){if(Co=dt(c),Ea=dt(c,o.draggable),typeof u=="function"){if(u.call(this,t,c,this)){Ft({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:i,fromEl:i}),tn("filter",n,{evt:t}),a&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(h){if(h=an(d,h.trim(),i,!1),h)return Ft({sortable:n,rootEl:h,name:"filter",targetEl:c,fromEl:i,toEl:i}),tn("filter",n,{evt:t}),!0}),u)){a&&t.preventDefault();return}o.handle&&!an(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,_i=ie.nextSibling,Zs=i,_s=s.group,be.dragged=ie,xi={target:ie,clientX:(n||t).clientX,clientY:(n||t).clientY},gh=xi.clientX-d.left,mh=xi.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,ie.style["will-change"]="all",c=function(){if(tn("delayEnded",o,{evt:t}),be.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!dh&&o.nativeDraggable&&(ie.draggable=!0),o._triggerDragStart(t,n),Ft({sortable:o,name:"choose",originalEvent:t}),st(ie,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){hg(ie,u.trim(),m1)}),Te(l,"dragover",bi),Te(l,"mousemove",bi),Te(l,"touchmove",bi),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)),dh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),tn("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ts||Rr))){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&&m1(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?Gs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(xo=!1,rt&&ie){tn("dragStarted",this,{evt:n}),this.nativeDraggable&&Te(document,"dragover",X_);var i=this.options;!t&&st(ie,i.dragClass,!1),st(ie,i.ghostClass,!0),be.active=this,t&&this._appendGhost(),Ft({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Gn){this._lastX=Gn.clientX,this._lastY=Gn.clientY,xg();for(var t=document.elementFromPoint(Gn.clientX,Gn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Gn.clientX,Gn.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:Gn.clientX,clientY:Gn.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=ug(n));bg()}},_onTouchMove:function(t){if(xi){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=je&&Mi(je,!0),l=je&&s&&s.a,c=je&&s&&s.d,d=js&&Rt&&fh(Rt),u=(a.clientX-xi.clientX+o.x)/(l||1)+(d?d[0]-g1[0]:0)/(l||1),h=(a.clientY-xi.clientY+o.y)/(c||1)+(d?d[1]-g1[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-(f1||0),s.f+=h-(p1||0)):s={a:1,b:0,c:0,d:1,e:u,f:h};var f="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");pe(je,"webkitTransform",f),pe(je,"mozTransform",f),pe(je,"msTransform",f),pe(je,"transform",f),f1=u,p1=h,Gn=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!je){var t=this.options.fallbackOnBody?document.body:rt,n=qe(ie,!0,js,!0,t),i=this.options;if(js){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=cr()),n.top+=Rt.scrollTop,n.left+=Rt.scrollLeft):Rt=cr(),g1=fh(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",js?"absolute":"fixed"),pe(je,"zIndex","100000"),pe(je,"pointerEvents","none"),be.ghost=je,t.appendChild(je),pe(je,"transform-origin",gh/parseInt(je.style.width)*100+"% "+mh/parseInt(je.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,a=i.options;if(tn("dragStart",this,{evt:t}),be.eventCanceled){this._onDrop();return}tn("setupClone",this),be.eventCanceled||(at=n0(ie),at.removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),st(at,this.options.chosenClass,!1),be.clone=at),i.cloneId=Gs(function(){tn("clone",i),!be.eventCanceled&&(i.options.removeCloneOnHide||rt.insertBefore(at,ie),i._hideClone(),Ft({sortable:i,name:"clone"}))}),!n&&st(ie,a.dragClass,!0),n?(al=!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=Gs(i._dragStarted.bind(i,n,t)),Te(document,"selectstart",i),pa=!0,window.getSelection().removeAllRanges(),ja&&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=_s===c,h=l.sort,f=Mt||d,m,p=this,v=!1;if(ad)return;function x(U,O){tn(U,p,ur({evt:t,isOwner:u,axis:m?"vertical":"horizontal",revert:s,dragRect:o,targetRect:a,canSort:h,fromSortable:f,target:i,completed:C,onMove:function(ee,q){return ks(rt,n,ie,o,ee,qe(ee),t,q)},changed:j},O))}function E(){x("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function C(U){return x("dragOverCompleted",{insertion:U}),U&&(u?d._hideClone():d._showClone(p),p!==f&&(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),f===p&&(p._ignoreWhileAnimating=i),p.animateAll(function(){x("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(i===ie&&!ie.animated||i===n&&!i.animated)&&(co=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(ie.parentNode[Tt]._isOutsideThisEl(t.target),!U&&bi(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function j(){gn=dt(ie),Ur=dt(ie,l.draggable),Ft({sortable:p,name:"change",toEl:n,newIndex:gn,newDraggableIndex:Ur,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=an(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(al=!1,d&&!l.disabled&&(u?h||(s=ct!==rt):Mt===this||(this.lastPutMode=_s.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||(_i?rt.insertBefore(ie,_i):rt.appendChild(ie)),C(!0);var I=t0(n,l.draggable);if(!I||Q_(t,m,this)&&!I.animated){if(I===ie)return C(!1);if(I&&n===t.target&&(i=I),i&&(a=qe(i)),ks(rt,n,ie,o,i,a,t,!!i)!==!1)return E(),I&&I.nextSibling?n.insertBefore(ie,I.nextSibling):n.appendChild(ie),ct=n,j(),C(!0)}else if(I&&q_(t,m,this)){var $=Po(n,0,l,!0);if($===ie)return C(!1);if(i=$,a=qe(i),ks(rt,n,ie,o,i,a,t,!1)!==!1)return E(),n.insertBefore(ie,$),ct=n,j(),C(!0)}else if(i.parentNode===n){a=qe(i);var _=0,b,H=ie.parentNode!==n,B=!U_(ie.animated&&ie.toRect||o,i.animated&&i.toRect||a,m),y=m?"top":"left",T=hh(i,"top","top")||hh(ie,"top","top"),L=T?T.scrollTop:void 0;co!==i&&(b=a[y],$a=!1,Ss=!B&&l.invertSwap||H),_=eS(t,i,a,m,B?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Ss,co===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);co=i,Da=_;var R=i.nextElementSibling,Z=!1;Z=_===1;var V=ks(rt,n,ie,o,i,a,t,Z);if(V!==!1)return(V===1||V===-1)&&(Z=V===1),ad=!0,setTimeout(K_,30),E(),Z&&!R?n.appendChild(ie):i.parentNode.insertBefore(ie,Z?R:i),T&&pg(T,0,L-T.scrollTop),ct=ie.parentNode,b!==void 0&&!Ss&&(Ws=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",bi),$e(document,"mousemove",bi),$e(document,"touchmove",bi)},_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(gn=dt(ie),Ur=dt(ie,i.draggable),tn("drop",this,{evt:t}),ct=ie&&ie.parentNode,gn=dt(ie),Ur=dt(ie,i.draggable),be.eventCanceled){this._nulling();return}xo=!1,Ss=!1,$a=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),sd(this.cloneId),sd(this._dragStartId),this.nativeDraggable&&($e(document,"drop",this),$e(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ja&&pe(document.body,"user-select",""),pe(ie,"transform",""),t&&(pa&&(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),m1(ie),ie.style["will-change"]="",pa&&!xo&&st(ie,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),st(ie,this.options.chosenClass,!1),Ft({sortable:this,name:"unchoose",toEl:ct,newIndex:null,newDraggableIndex:null,originalEvent:t}),rt!==ct?(gn>=0&&(Ft({rootEl:ct,name:"add",toEl:ct,fromEl:rt,originalEvent:t}),Ft({sortable:this,name:"remove",toEl:ct,originalEvent:t}),Ft({rootEl:ct,name:"sort",toEl:ct,fromEl:rt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:ct,originalEvent:t})),Mt&&Mt.save()):gn!==Co&&gn>=0&&(Ft({sortable:this,name:"update",toEl:ct,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:ct,originalEvent:t})),be.active&&((gn==null||gn===-1)&&(gn=Co,Ur=Ea),Ft({sortable:this,name:"end",toEl:ct,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){tn("nulling",this),rt=ie=ct=je=_i=at=Zs=Yr=xi=Gn=pa=gn=Ur=Co=Ea=co=Da=Mt=_s=be.dragged=be.ghost=be.clone=be.active=null;var t=this.el;ll.forEach(function(n){t.contains(n)&&(n.checked=!0)}),ll.length=f1=p1=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ie&&(this._onDragOver(t),J_(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],an(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||nS(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(a,s){var l=o.children[s];an(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 an(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=ns.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&wg(i)},destroy:function(){tn("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(),sl.splice(sl.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Yr){if(tn("hideClone",this),be.eventCanceled)return;pe(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),Yr=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Yr){if(tn("showClone",this),be.eventCanceled)return;ie.parentNode==rt&&!this.options.group.revertClone?rt.insertBefore(at,ie):_i?rt.insertBefore(at,_i):rt.appendChild(at),this.options.group.revertClone&&this.animate(ie,at),pe(at,"display",""),Yr=!1}}};function J_(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ks(e,t,n,i,o,a,s,l){var c,d=e[Tt],u=d.options.onMove,h;return window.CustomEvent&&!Rr&&!ts?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&&(h=u.call(d,c,s)),h}function m1(e){e.draggable=!1}function K_(){ad=!1}function q_(e,t,n){var i=qe(Po(n.el,0,n.options,!0)),o=gg(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 Q_(e,t,n){var i=qe(t0(n.el,n.options.draggable)),o=gg(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 eS(e,t,n,i,o,a,s,l){var c=i?e.clientY:e.clientX,d=i?n.height:n.width,u=i?n.top:n.left,h=i?n.bottom:n.right,f=!1;if(!s){if(l&&Ws<d*o){if(!$a&&(Da===1?c>u+d*a/2:c<h-d*a/2)&&($a=!0),$a)f=!0;else if(Da===1?c<u+Ws:c>h-Ws)return-Da}else if(c>u+d*(1-o)/2&&c<h-d*(1-o)/2)return tS(t)}return f=f||s,f&&(c<u+d*a/2||c>h-d*a/2)?c>u+d/2?1:-1:0}function tS(e){return dt(ie)<dt(e)?1:-1}function nS(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 rS(e){ll.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&ll.push(i)}}function Gs(e){return setTimeout(e,0)}function sd(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:hg,is:function(t,n){return!!an(t,n,t,!1)},extend:B_,throttle:fg,closest:an,toggleClass:st,clone:n0,index:dt,nextTick:Gs,cancelNextTick:sd,detectDirection:vg,getChild:Po,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=ur(ur({},be.utils),i.utils)),ns.mount(i)})};be.create=function(e,t){return new be(e,t)};be.version=N_;var mt=[],ga,ld,cd=!1,v1,w1,cl,ma;function iS(){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)),wh(),Us(),V_()},nulling:function(){cl=ld=ga=cd=ma=v1=w1=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(cl=n,i||this.options.forceAutoScrollFallback||ts||Rr||ja){x1(n,this.options,l,i);var c=Kr(l,!0);cd&&(!ma||a!==v1||s!==w1)&&(ma&&wh(),ma=setInterval(function(){var d=Kr(document.elementFromPoint(a,s),!0);d!==c&&(c=d,Us()),x1(n,o.options,d,i)},10),v1=a,w1=s)}else{if(!this.options.bubbleScroll||Kr(l,!0)===cr()){Us();return}x1(n,this.options,Kr(l,!1),!1)}}},Rn(e,{pluginName:"scroll",initializeByDefault:!0})}function Us(){mt.forEach(function(e){clearInterval(e.pid)}),mt=[]}function wh(){clearInterval(ma)}var x1=fg(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=cr(),d=!1,u;ld!==n&&(ld=n,Us(),ga=t.scroll,u=t.scrollFn,ga===!0&&(ga=Kr(n,!0)));var h=0,f=ga;do{var m=f,p=qe(m),v=p.top,x=p.bottom,E=p.left,C=p.right,j=p.width,I=p.height,$=void 0,_=void 0,b=m.scrollWidth,H=m.scrollHeight,B=pe(m),y=m.scrollLeft,T=m.scrollTop;m===c?($=j<b&&(B.overflowX==="auto"||B.overflowX==="scroll"||B.overflowX==="visible"),_=I<H&&(B.overflowY==="auto"||B.overflowY==="scroll"||B.overflowY==="visible")):($=j<b&&(B.overflowX==="auto"||B.overflowX==="scroll"),_=I<H&&(B.overflowY==="auto"||B.overflowY==="scroll"));var L=$&&(Math.abs(C-o)<=s&&y+j<b)-(Math.abs(E-o)<=s&&!!y),F=_&&(Math.abs(x-a)<=s&&T+I<H)-(Math.abs(v-a)<=s&&!!T);if(!mt[h])for(var G=0;G<=h;G++)mt[G]||(mt[G]={});(mt[h].vx!=L||mt[h].vy!=F||mt[h].el!==m)&&(mt[h].el=m,mt[h].vx=L,mt[h].vy=F,clearInterval(mt[h].pid),(L!=0||F!=0)&&(d=!0,mt[h].pid=setInterval((function(){i&&this.layer===0&&be.active._onTouchMove(cl);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,cl,mt[this.layer].el)!=="continue"||pg(mt[this.layer].el,Z,R)}).bind({layer:h}),24))),h++}while(t.bubbleScroll&&f!==c&&(f=Kr(f,!1)));cd=d}},30),yg=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,h=document.elementFromPoint(u.clientX,u.clientY);c(),d&&!d.el.contains(h)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function r0(){}r0.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=Po(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:yg};Rn(r0,{pluginName:"revertOnSpill"});function i0(){}i0.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:yg};Rn(i0,{pluginName:"removeOnSpill"});var En;function oS(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var i=n.dragEl;En=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 h=En;a(o)!==!1?(st(o,u.swapClass,!0),En=o):En=null,h&&h!==En&&st(h,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;En&&st(En,l.swapClass,!1),En&&(l.swap||o&&o.options.swap)&&a!==En&&(s.captureAnimationState(),s!==i&&i.captureAnimationState(),aS(a,En),s.animateAll(),s!==i&&i.animateAll())},nulling:function(){En=null}},Rn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:En}}})}function aS(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=[],pn=[],oa,Un,aa=!1,nn=!1,uo=!1,Ue,sa,Es;function sS(){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&&Un===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++)pn.push(n0(Se[a])),pn[a].sortableIndex=Se[a].sortableIndex,pn[a].draggable=!1,pn[a].style["will-change"]="",st(pn[a],this.options.selectedClass,!1),Se[a]===Ue&&st(pn[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&&Un===i&&(xh(!0,o),a("clone"),s()))},showClone:function(n){var i=n.cloneNowShown,o=n.rootEl,a=n.cancel;this.isMultiDrag&&(xh(!1,o),pn.forEach(function(s){pe(s,"display","")}),i(),Es=!1,a())},hideClone:function(n){var i=this;n.sortable;var o=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(pn.forEach(function(s){pe(s,"display","none"),i.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),Es=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Un&&Un.multiDrag._deselectMultiDrag(),Se.forEach(function(i){i.sortableIndex=dt(i)}),Se=Se.sort(function(i,o){return i.sortableIndex-o.sortableIndex}),uo=!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&&ph(s,a)}),nn=!0,aa=!0}o.animateAll(function(){nn=!1,aa=!1,i.options.animation&&Se.forEach(function(s){u1(s)}),i.options.sort&&Ds()})}},dragOver:function(n){var i=n.target,o=n.completed,a=n.cancel;nn&&~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:nn?qe(l):s}),u1(l),l.fromRect=s,i.removeAnimationState(l)}),nn=!1,lS(!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(),aa=!1,d.animation&&Se.length>1&&(nn||!o&&!s.options.sort&&!c)){var u=qe(Ue,!1,!0,!0);Se.forEach(function(f){f!==Ue&&(ph(f,u),l.appendChild(f))}),nn=!0}if(!o)if(nn||Ds(),Se.length>1){var h=Es;s._showClone(i),s.options.animation&&!Es&&h&&pn.forEach(function(f){s.addAnimationState({target:f,rect:sa}),f.fromRect=sa,f.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){sa=Rn({},i);var s=Mi(Ue,!0);sa.top-=s.f,sa.left-=s.e}},dragOverAnimationComplete:function(){nn&&(nn=!1,Ds())},drop:function(n){var i=n.originalEvent,o=n.rootEl,a=n.parentEl,s=n.sortable,l=n.dispatchSortableEvent,c=n.oldIndex,d=n.putSortable,u=d||this.sortable;if(i){var h=this.options,f=a.children;if(!uo)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),st(Ue,h.selectedClass,!~Se.indexOf(Ue)),~Se.indexOf(Ue))Se.splice(Se.indexOf(Ue),1),oa=null,fa({sortable:s,rootEl:o,name:"deselect",targetEl:Ue,originalEvent:i});else{if(Se.push(Ue),fa({sortable:s,rootEl:o,name:"select",targetEl:Ue,originalEvent:i}),i.shiftKey&&oa&&s.el.contains(oa)){var m=dt(oa),p=dt(Ue);~m&&~p&&m!==p&&function(){var C,j;p>m?(j=m,C=p):(j=p,C=m+1);for(var I=h.filter;j<C;j++)if(!~Se.indexOf(f[j])&&an(f[j],h.draggable,a,!1)){var $=I&&(typeof I=="function"?I.call(s,i,f[j],s):I.split(",").some(function(_){return an(f[j],_.trim(),a,!1)}));$||(st(f[j],h.selectedClass,!0),Se.push(f[j]),fa({sortable:s,rootEl:o,name:"select",targetEl:f[j],originalEvent:i}))}}()}else oa=Ue;Un=u}if(uo&&this.isMultiDrag){if(nn=!1,(a[Tt].options.sort||a!==o)&&Se.length>1){var v=qe(Ue),x=dt(Ue,":not(."+this.options.selectedClass+")");if(!aa&&h.animation&&(Ue.thisAnimationDuration=null),u.captureAnimationState(),!aa&&(h.animation&&(Ue.fromRect=v,Se.forEach(function(C){if(C.thisAnimationDuration=null,C!==Ue){var j=nn?qe(C):v;C.fromRect=j,u.addAnimationState({target:C,rect:j})}})),Ds(),Se.forEach(function(C){f[x]?a.insertBefore(C,f[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){u1(C)}),u.animateAll()}Un=u}(o===a||d&&d.lastPutMode!=="clone")&&pn.forEach(function(C){C.parentNode&&C.parentNode.removeChild(C)})}},nullingGlobal:function(){this.isMultiDrag=uo=!1,pn.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 uo<"u"&&uo)&&Un===this.sortable&&!(n&&an(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(),fa({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)}},Rn(e,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[Tt];!i||!i.options.multiDrag||~Se.indexOf(n)||(Un&&Un!==i&&(Un.multiDrag._deselectMultiDrag(),Un=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;nn&&a!==Ue?s=-1:nn?s=dt(a,":not(."+n.options.selectedClass+")"):s=dt(a),o.push({multiDragElement:a,index:s})}),{items:L_(Se),clones:[].concat(pn),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 lS(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 xh(e,t){pn.forEach(function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Ds(){Se.forEach(function(e){e!==Ue&&e.parentNode&&e.parentNode.removeChild(e)})}be.mount(new iS);be.mount(i0,r0);const cS=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:sS,Sortable:be,Swap:oS,default:be},Symbol.toStringTag,{value:"Module"})),dS=J2(cS);var Cg={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})()})(Cg);var uS=Cg.exports,hS="Invariant failed";function fS(e,t){if(!e)throw new Error(hS)}const pS=Object.freeze(Object.defineProperty({__proto__:null,default:fS},Symbol.toStringTag,{value:"Module"})),gS=J2(pS);(function(e){var t=dS,n=uS,i=window.React,o=gS;function a(_){return _&&_.__esModule?_.default:_}function s(_,b,H,B){Object.defineProperty(_,b,{get:H,set:B,enumerable:!0,configurable:!0})}function l(_,b){return Object.keys(b).forEach(function(H){H==="default"||H==="__esModule"||_.hasOwnProperty(H)||Object.defineProperty(_,H,{enumerable:!0,get:function(){return b[H]}})}),_}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",()=>I);function c(_){_.parentElement!==null&&_.parentElement.removeChild(_)}function d(_,b,H){const B=_.children[H]||null;_.insertBefore(b,B)}function u(_){_.forEach(b=>c(b.element))}function h(_){_.forEach(b=>{d(b.parentElement,b.element,b.oldIndex)})}function f(_,b){const H=x(_),B={parentElement:_.from};let y=[];switch(H){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 H=p(_,b);return v(_,H)}function p(_,b){const H=[...b];return _.concat().reverse().forEach(B=>H.splice(B.oldIndex,1)),H}function v(_,b,H,B){const y=[...b];return _.forEach(T=>{const L=B&&H&&B(T.item,H);y.splice(T.newIndex,0,L||T.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:H,children:B,tag:y,style:T,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:fe,onDeselect:de,...se}=_;return se}const j={dragging:null};class I extends i.Component{constructor(b){super(b),this.ref=(0,i.createRef)();const H=[...b.list].map(B=>Object.assign(B,{chosen:!1,selected:!1}));b.setList(H,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:H,className:B,id:y}=this.props,T={style:H,className:B,id:y},L=!b||b===null?"div":b;return(0,i.createElement)(L,{ref:this.ref,...T},this.getChildren())}getChildren(){const{children:b,dataIdAttr:H,selectedClass:B="sortable-selected",chosenClass:y="sortable-chosen",dragClass:T="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=H||"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 H=Object.keys(b).find(B=>B.includes("Sortable"));return H?b[H]:null}makeOptions(){const b=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],H=["onChange","onClone","onFilter","onSort"],B=C(this.props);return b.forEach(T=>B[T]=this.prepareOnHandlerPropAndDOM(T)),H.forEach(T=>B[T]=this.prepareOnHandlerProp(T)),{...B,onMove:(T,L)=>{const{onMove:F}=this.props,G=T.willInsertAfter||-1;if(!F)return G;const R=F(T,L,this.sortable,j);return typeof R>"u"?!1:R}}}prepareOnHandlerPropAndDOM(b){return H=>{this.callOnHandlerProp(H,b),this[b](H)}}prepareOnHandlerProp(b){return H=>{this.callOnHandlerProp(H,b)}}callOnHandlerProp(b,H){const B=this.props[H];B&&B(b,this.sortable,j)}onAdd(b){const{list:H,setList:B,clone:y}=this.props,T=[...j.dragging.props.list],L=f(b,T);u(L);const F=v(L,H,b,y).map(G=>Object.assign(G,{selected:!1}));B(F,this.sortable,j)}onRemove(b){const{list:H,setList:B}=this.props,y=x(b),T=f(b,H);h(T);let L=[...H];if(b.pullMode!=="clone")L=p(T,L);else{let F=T;switch(y){case"multidrag":F=T.map((G,R)=>({...G,element:b.clones[R]}));break;case"normal":F=T.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),T.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:H,setList:B}=this.props,y=f(b,H);u(y),h(y);const T=m(y,H);return B(T,this.sortable,j)}onStart(){j.dragging=this}onEnd(){j.dragging=null}onChoose(b){const{list:H,setList:B}=this.props,y=H.map((T,L)=>{let F=T;return L===b.oldIndex&&(F=Object.assign(T,{chosen:!0})),F});B(y,this.sortable,j)}onUnchoose(b){const{list:H,setList:B}=this.props,y=H.map((T,L)=>{let F=T;return L===b.oldIndex&&(F=Object.assign(F,{chosen:!1})),F});B(y,this.sortable,j)}onSpill(b){const{removeOnSpill:H,revertOnSpill:B}=this.props;H&&!B&&c(b.item)}onSelect(b){const{list:H,setList:B}=this.props,y=H.map(T=>Object.assign(T,{selected:!1}));b.newIndicies.forEach(T=>{const L=T.index;if(L===-1){console.log(`"${b.type}" had indice of "${T.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:H,setList:B}=this.props,y=H.map(T=>Object.assign(T,{selected:!1}));b.newIndicies.forEach(T=>{const L=T.index;L!==-1&&(y[L].selected=!0)}),B(y,this.sortable,j)}}kn(I,"defaultProps",{clone:b=>b});var $={};l(e.exports,$)})(lg);var Gi=lg.exports;const mS=window.React.forwardRef,Ui=mS(({searchText:e="",onSearch:t=()=>!1,placeholder:n=P("Search"),...i},o)=>r.jsx(vS,{value:e,onChange:t,ref:o,type:"text",prefix:r.jsx(wS,{children:r.jsx(F8,{})}),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 vS=w(ft)`${e=>e.$_css2}`,wS=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 xS=window.React.createContext,bS=window.React.forwardRef,o0=window.React.useContext,_g=window.React.useEffect,dl=window.React.useMemo,yS=window.React.useRef,Ha=window.React.useState,CS=xS({}),_S=e=>{const{builder:t}=o0(lt),n=oe(t)(l=>l.changeElementSettings),i=oe(t)(l=>{var c;return((c=l.chosenElement)==null?void 0:c.id)??""}),[o]=Ha(!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(ES,{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(DS,{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:Ae([!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($S,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Sg[e.item.flag]??""}}),r.jsx("span",{className:Ae(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.language_name})]}),r.jsx(HS,{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(MS,{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(TS,{value:e.item.url,onChange:s,prefix:r.jsx(IS,{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;"])]})})]})},SS=window.brandyCustomizerData.language.list,Sg=window.brandyCustomizerData.language.flags;function jS(e){const{builder:t}=o0(lt),n=dl(()=>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]=Ha(null),[s,l]=Ha(null),{styles:c,attributes:d}=pr(o,s),[u,h]=Ha(!1),f=()=>{h(x=>!x)},m=()=>{h(!1)};_g(()=>{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=dl(()=>({defaultValue:e.default_value}),[e.default_value]);return r.jsx(CS.Provider,{value:v,children:r.jsxs(LS,{children:[r.jsxs(AS,{children:[r.jsx(wt,{className:"m-0",children:P("List languages")}),r.jsx(RS,{className:"group",ref:a,onClick:f,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(OS,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gi.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(_S,{item:x})},x.id))}),u&&r.jsx(kS,{ref:l,style:{...c.popper},...d.popper,onClose:m})]})})}const kS=bS(({style:e,onClose:t,...n},i)=>{const{builder:o}=o0(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]=Ha(""),u=dl(()=>SS.filter(p=>!s.map(v=>v.id).includes(p.id)),[s]),h=dl(()=>u.filter(p=>p.language_name.toLowerCase().includes(c.toLowerCase())||p.language_code.toLowerCase().includes(c.toLowerCase())||p.country_code.toLowerCase().includes(c.toLowerCase())||(p.english_name??"").toLowerCase().includes(c.toLowerCase())),[u,c]),f=p=>()=>{a(v=>{v.languages.push(p)}),Ne().refreshPartial(`${o}_${l}`),t()},m=yS(null);return _g(()=>{var p,v;return(v=(p=m.current)==null?void 0:p.querySelector("input"))==null?void 0:v.focus()},[m.current]),r.jsxs(NS,{style:e,ref:i,...n,children:[r.jsxs(PS,{children:[r.jsx(BS,{children:"Add language"}),r.jsx(VS,{onClick:()=>{t()},children:r.jsx(Pl,{})})]}),r.jsx(zS,{children:r.jsx(Ui,{ref:m,searchText:c,onSearch:p=>{d(p.toString())},placeholder:P("Search language")})}),r.jsx(Lr,{className:"h-[300px]",autoHide:!0,children:r.jsxs(FS,{children:[h.map(p=>r.jsxs(ZS,{onClick:f(p),children:[r.jsx(WS,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Sg[p.flag]??""},$_css8:[`
                  display: inline-flex;
                  width: 30px;
                  height: 100%;
                  svg {
                    width: 100%;
                    height: 100%;
                  }`]}),r.jsx("span",{children:p.english_name})]},p.id)),h.length===0&&r.jsx(GS,{children:"No language found"})]})})]})});var ES=w("div")`${e=>e.$_css2}`,DS=w("div")`${e=>e.$_css3}`,$S=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;
              }
            `,HS=w("div")`${e=>e.$_css4}`,MS=w("span")`${e=>e.$_css5}`,TS=w(ft)`${e=>e.$_css6}`,IS=w("span")`${e=>e.$_css7}`,LS=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),AS=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),RS=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:"#D1EAFFB2"}}),OS=w("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),NS=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)"}),PS=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),BS=w("span")({fontSize:"16px",fontWeight:"500"}),VS=w("span")({cursor:"pointer",padding:"0.25rem"}),zS=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),FS=w("div")({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.25rem",padding:"1rem"}),ZS=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))"}}),WS=w("span")`${e=>e.$_css8}`,GS=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 US=e=>{var t;return r.jsx(XS,{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(JS,{className:"group",children:r.jsx(KS,{children:r.jsxs(qS,{className:Ae(["group-hover:text-brandy-text"]),children:[r.jsx(QS,{src:((t=window.brandyCustomizerData.currency.list.find(n=>n.id==e.item.id))==null?void 0:t.flag)??"",alt:"currency-flag"}),r.jsx(ej,{children:e.item.id})]})})})})},la=window.brandyCustomizerData.currency.list;function YS(){return r.jsxs(tj,{children:[r.jsx(nj,{children:r.jsx(wt,{className:"m-0",children:P("List Currencies")})}),la==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')}}),la==null?void 0:la.map(e=>r.jsx("div",{children:r.jsx(US,{item:e})},e.id)),la!=null&&r.jsx(rj,{href:window.brandyCustomizerData.paths.yay_currency_manage,target:"_blank",children:P("Manage currencies")})]})}var XS=w("div")`${e=>e.$_css}`,JS=w("div")({display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"}),KS=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),qS=w("span")({display:"flex",alignItems:"center"}),QS=w("img")({marginRight:"0.5rem",display:"inline-block",width:"30px",borderRadius:"3px"}),ej=w("span")({fontWeight:"500"}),tj=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),nj=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),rj=w("a").withConfig({displayName:"ListCurrencies___StyledA",componentId:"sc-gaezvr-0"})({textDecorationLine:"underline"});const ij=window.React.useContext;function oj(e){const t=ij(lt);return r.jsx("div",{className:"flex flex-col gap-4",children:r.jsxs("div",{children:[r.jsx(Kl,{...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 aj=window.React.useContext,bh=window.React.useMemo,sj=window.brandyCustomizerData.icons.account;function lj(e){const{builder:t}=aj(Xt),n=bh(()=>e.value_path.indexOf("logged_in")!==-1?"logged_in":"logged_out",[e.value_path]),i=oe(t)(a=>{var s,l,c,d,u,h,f,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=(f=(h=(u=a.chosenElement)==null?void 0:u.settings)==null?void 0:h.logged_out)==null?void 0:f.icon)==null?void 0:m.style)??"outline"}),o=bh(()=>Object.entries(sj[i]??{}).map(([a,s])=>({value:a,label:r.jsx("span",{className:Ae(["brandy-icon"]),dangerouslySetInnerHTML:{__html:s}})})),[i]);return r.jsx(fr,{...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 cj=window.React.useMemo,dj={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 jg({state:e}){const t=cj(()=>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:dj[e]})]})}const uj=()=>r.jsx(jg,{state:"logged_in"}),hj=()=>r.jsx(jg,{state:"logged_out"}),fj=window.React.useMemo,pj=window.brandyCustomizerData.icons.button;function gj(e){const t=fj(()=>Object.entries(pj??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:"text-[#A1ABB7]",dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(fr,{...e,options:t,className:"[&_.brandy-icon-group]:grid [&_.brandy-icon-group]:grid-cols-4"})}const mj=window.React.useContext,vj=window.React.useMemo,wj=window.brandyCustomizerData.icons.cart;function xj(e){const{builder:t}=mj(Xt),n=oe(t)(o=>{var a;return(a=o.chosenElement)==null?void 0:a.settings.icon_style}),i=vj(()=>Object.entries(wj[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:Ae(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(fr,{...e,options:i})}const bj=window.React.forwardRef,a0=window.React.useContext,kg=window.React.useEffect,dd=window.React.useMemo,yj=window.React.useRef,Ma=window.React.useState,Cj=e=>{const{builder:t}=a0(lt),n=oe(t)(u=>{var h;return(h=u.chosenElement)==null?void 0:h.settings}),i=oe(t)(u=>u.changeElementSettings),[o,a]=Ma(!1),s=()=>{i(u=>{u.items=n.items.filter(h=>h.id!==e.item.id)}),Ne().refreshPartial(`${t}_contact`)},l=()=>{a(u=>!u)},c=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const m=Oe(kt("contact",t)+` .brandy-contact-item[type="${h.id}"] .brandy-contact-item__text`);m&&window.jQuery(m).html(u.toString()),i(p=>{p.items[f].content=u.toString()})}})},d=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const m=Oe(kt("contact",t)+` .brandy-contact-item[type="${h.id}"]`);m&&window.jQuery(m).attr("href",u.toString()),i(p=>{p.items[f].url=u.toString()})}})};return r.jsxs(kj,{$_css2:[{overflow:"hidden",borderRadius:"5px","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},{"--tw-shadow":"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px -1px 0px 0px rgba(0, 0, 0, 0.02)","--tw-shadow-colored":"0px 1px 1px 0px var(--tw-shadow-color), 0px -1px 0px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"&:hover":{"--tw-shadow":"2px 4px 10px 0px rgba(105, 116, 132, 0.20)","--tw-shadow-colored":"2px 4px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],children:[r.jsxs(Ej,{className:"group",$_css3:[{display:"flex",height:"44px",userSelect:"none",alignItems:"center",justifyContent:"space-between",padding:"0.75rem"},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(Dj,{children:[r.jsx($j,{className:"brandy-social-drag-handle",children:r.jsxs("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Ae([!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:Ae(["group-hover:text-brandy-text",o&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Hj,{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(Mj,{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(Tj,{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(Ij,{children:[r.jsxs(Lj,{children:[r.jsx("div",{children:"Content"}),r.jsx(ft,{value:e.item.content,onChange:c})]}),r.jsxs(Aj,{children:[r.jsx("div",{children:"Link"}),r.jsx(Rj,{value:e.item.url,onChange:d,prefix:r.jsx(Oj,{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;svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7"},{fill:"#A1ABB7"})]}),$_css7:[me(["padding:0 !important;overflow:hidden;"])]})]})]})]})},_j=window.brandyCustomizerData.all_contacts,Eg=window.brandyCustomizerData.icons.contact;function Sj(e){const{builder:t}=a0(lt),n=dd(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Ma(null),[a,s]=Ma(null),{styles:l,attributes:c}=pr(i,a),[d,u]=Ma(!1),h=()=>{u(p=>!p)},f=()=>{u(!1)};kg(()=>{const p=v=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(v.target))&&!(a!=null&&a.contains(v.target))&&f()};return window.jQuery(document).on("click","body",p),()=>{window.jQuery(document).off("click","body",p)}},[i,a]);const 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:h,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{className:"group-hover:fill-wp transition-all ease-in-out duration-base",d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gi.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(Cj,{item:p})},p.id))}),d&&r.jsx(jj,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const jj=bj(({style:e,onClose:t,...n},i)=>{const{builder:o}=a0(lt),a=oe(o)(m=>{var p;return(p=m.chosenElement)==null?void 0:p.settings}),s=oe(o)(m=>m.changeElementSettings),[l,c]=Ma(""),d=dd(()=>_j.filter(m=>!a.items.map(p=>p.id).includes(m.id)),[a.items]),u=dd(()=>d.filter(m=>m.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=m=>()=>{s(p=>{p.items.push(m)}),Ne().refreshPartial(`${o}_contact`),t()},f=yj(null);return kg(()=>{var m,p;return(p=(m=f.current)==null?void 0:m.querySelector("input"))==null?void 0:p.focus()},[f.current]),r.jsxs(Nj,{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(Pl,{})})]}),r.jsx("div",{className:"p-4 pt-2 border-b border-b-brandy-border-light",children:r.jsx(Ui,{ref:f,searchText:l,onSearch:m=>{c(m.toString())},placeholder:P("Search contact")})}),r.jsx(Lr,{className:"h-[250px]",autoHide:!0,children:r.jsxs("div",{className:"p-4 flex flex-col gap-1",children:[u.map(m=>r.jsxs(Pj,{className:"group",onClick:h(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:"rgba(34, 113, 177, 0.03)"}}],children:[r.jsx(Bj,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Eg[m.icon]??""},$_css1:[me(["svg{*[stroke]{","}*[fill]{","}}"],{stroke:"#A1ABB7",".group:hover &":{stroke:"#2271B1"}},{fill:"#A1ABB7",".group:hover &":{fill:"#2271B1"}})]}),r.jsx(Vj,{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 kj=w("div")`${e=>e.$_css2}`,Ej=w("div")`${e=>e.$_css3}`,Dj=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),$j=w("span")({cursor:"grab",padding:"0.5rem"}),Hj=w("div")`${e=>e.$_css4}`,Mj=w("span")`${e=>e.$_css5}`,Tj=w("span")`${e=>e.$_css6}`,Ij=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),Lj=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Aj=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Rj=w(ft)`${e=>e.$_css7}`,Oj=w("span")`${e=>e.$_css8}`,Nj=w("div")`${e=>e.$_css9}`,Pj=w("div")`${e=>e.$_css0}`,Bj=w("span")`${e=>e.$_css1}`,Vj=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(34 113 177 / var(--tw-text-opacity, 1))"}});const zj=window.React.useContext,Fj=window.React.useMemo,Zj=[{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"})})]})}],Wj=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 Gj=w(Wj).withConfig({displayName:"ActiveTypeSelection___StyledStyledItem",componentId:"sc-5cnq7j-1"})(["",""],e=>e.$_css2);function Uj(e){const{builder:t}=zj(lt),n=oe(t)(s=>s.changeElementSettings),{current:i}=De(),o=Fj(()=>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(()=>{hr({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:Zj.map(s=>r.jsx(Gj,{onClick:()=>{a(s.value)},selected:o===s.value,$_css2:[me`
                svg {
                  width: 100%;
                }
              `],children:s.label},s.value))})]})}const Yj=window.React.useContext,Xj=window.React.useMemo,Jj=window.brandyCustomizerData.wp_nav_menus,Kj=Jj.map(e=>({label:e.name,value:e.slug}));function qj(e){const t=Yj(lt),n=Xj(()=>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:Kj,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 Qj=window.React.useMemo,ek=window.brandyCustomizerData.icons.search;function tk(e){const t=Qj(()=>Object.entries(ek??{}).map(([n,i])=>({value:n,label:r.jsx("span",{className:Ae(["brandy-icon"]),dangerouslySetInnerHTML:{__html:i}})})),[]);return r.jsx(fr,{...e,options:t})}const nk=[{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 rk(e){return r.jsx(fr,{...e,options:(e.options??[]).map(t=>nk.find(n=>n.value===t.value)),className:"live-result-type-group [&_.brandy-radio-item]:pb-0",itemCss:[me(["&.selected{border:1px solid #000;}"])]})}const ik=window.React.useMemo,ok=window.React.useState;function ak(e){const[t,n]=ok(""),i=l=>{n(l.toString())},o=ik(()=>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(ft,{placeholder:"Typing suggestion then enter",onChange:i,value:t,onKeyUp:a,type:"text"}),r.jsx(sk,{tags:o,onRemove:s})]})}function sk({tags:e,onRemove:t}){return r.jsx(lk,{children:e.map(n=>r.jsxs(ck,{children:[n,r.jsx("span",{onClick:()=>{t(n)},children:r.jsxs(dk,{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 lk=w("div")({marginTop:"0.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"}),ck=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"}),dk=w("svg").withConfig({displayName:"Suggestions___StyledSvg",componentId:"sc-vw3nn3-0"})({height:"8px",width:"8px",cursor:"pointer"});const uk=window.React.forwardRef,s0=window.React.useContext,Dg=window.React.useEffect,Ys=window.React.useMemo,hk=window.React.useRef,Ta=window.React.useState,fk=e=>{const{builder:t}=s0(lt),n=oe(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=oe(t)(h=>h.changeElementSettings),o=oe(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.id}),[a,s]=Ta(!1),l=()=>{i(h=>{h.items=n.items.filter(f=>f.id!==e.item.id)}),Ne().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,m)=>{if(f.id===e.item.id){const p=Oe(kt(o??"",t)+` .brandy-social-item[data-social-id="${f.id}"] .brandy-social-item__label`);p&&window.jQuery(p).html(h),i(v=>{v.items[m].label=h.toString()})}})},u=h=>{n.items.forEach((f,m)=>{if(f.id===e.item.id){const p=Oe(kt(o??"",t)+` .brandy-social-item[data-social-id="${f.id}"]`);p&&window.jQuery(p).attr("href",h),i(v=>{v.items[m].url=h.toString()})}})};return r.jsxs(vk,{$_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(wk,{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(xk,{children:[r.jsx(bk,{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:Ae([!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:Ae(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(yk,{$_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(Ck,{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(_k,{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(Sk,{children:[r.jsxs(jk,{children:[r.jsx("div",{children:"Label"}),r.jsx(ft,{value:e.item.label,onChange:d})]}),r.jsxs(kk,{children:[r.jsx("div",{children:"Link"}),r.jsx(Ek,{value:e.item.url,onChange:u,prefix:r.jsx(Dk,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:(ul[e.item.icon]&&ul[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;"])]})]})]})]})},pk=window.brandyCustomizerData.all_socials,ul=window.brandyCustomizerData.icons.socials;function gk(e){const{builder:t}=s0(lt),n=Ys(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Ta(null),[a,s]=Ta(null),{styles:l,attributes:c}=pr(i,a),[d,u]=Ta(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};Dg(()=>{const v=x=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(x.target))&&!(a!=null&&a.contains(x.target))&&f()};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($k,{children:[r.jsxs(Hk,{children:[r.jsx(wt,{className:"m-0",children:"List socials"}),r.jsx(Mk,{className:"group",ref:o,onClick:h,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(Tk,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gi.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(fk,{item:v})},v.id))}),d&&r.jsx(mk,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const mk=uk(({style:e,onClose:t,...n},i)=>{const{builder:o}=s0(lt),a=oe(o)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.settings}),s=oe(o)(v=>v.changeElementSettings),[l,c]=Ta(""),d=Ys(()=>pk.filter(v=>!a.items.map(x=>x.id).includes(v.id)),[a.items]),u=Ys(()=>d.filter(v=>v.label.toLowerCase().includes(l.toLowerCase())),[d,l]),h=Ys(()=>a.icon_color_type,[a.icon_color_type]),f=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}_${f}`),t()},p=hk(null);return Dg(()=>{var v,x;return(x=(v=p.current)==null?void 0:v.querySelector("input"))==null?void 0:x.focus()},[p.current]),r.jsxs(Ik,{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(Lk,{children:[r.jsx(Ak,{children:"Add social icon"}),r.jsx(Rk,{onClick:()=>{t()},children:r.jsx(Pl,{})})]}),r.jsx(Ok,{children:r.jsx(Ui,{ref:p,searchText:l,onSearch:v=>{c(v.toString())},placeholder:P("Search socials")})}),r.jsx(Lr,{className:"h-[300px]",autoHide:!0,children:r.jsxs(Nk,{children:[u.map(v=>r.jsx(Pk,{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)"}},h==="custom"&&me(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:(ul[v.icon]&&ul[v.icon][h])??""}})},v.id)),u.length===0&&r.jsx("div",{className:"text-brandy-text-secondary col-span-4 m-auto",children:"No social found"})]})})]})});var vk=w("div")`${e=>e.$_css2}`,wk=w("div")`${e=>e.$_css3}`,xk=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),bk=w("span")({cursor:"grab",padding:"0.5rem"}),yk=w("div")`${e=>e.$_css4}`,Ck=w("span")`${e=>e.$_css5}`,_k=w("span")`${e=>e.$_css6}`,Sk=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),jk=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),kk=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),Ek=w(ft)`${e=>e.$_css7}`,Dk=w("span")`${e=>e.$_css8}`,$k=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),Hk=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),Mk=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:"#D1EAFFB2"}}),Tk=w("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),Ik=w("div")`${e=>e.$_css9}`,Lk=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),Ak=w("span")({fontSize:"16px",fontWeight:"500"}),Rk=w("span")({cursor:"pointer",padding:"0.25rem"}),Ok=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),Nk=w("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),Pk=w("div").withConfig({displayName:"ListSocials___StyledDiv13",componentId:"sc-hody2l-0"})(["",""],e=>e.$_css0);const Bk=window.React.forwardRef,l0=window.React.useContext,$g=window.React.useEffect,Xs=window.React.useMemo,Vk=window.React.useRef,Ia=window.React.useState,zk=e=>{const{builder:t}=l0(lt),n=oe(t)(u=>{var h;return(h=u.chosenElement)==null?void 0:h.settings}),i=oe(t)(u=>u.changeElementSettings),o=oe(t)(u=>{var h;return(h=u.chosenElement)==null?void 0:h.id}),[a,s]=Ia(!1),l=()=>{i(u=>{u.items=n.items.filter(h=>h.id!==e.item.id)}),Ne().refreshPartial(`${t}_${o}`)},c=()=>{s(u=>!u)},d=u=>{n.items.forEach((h,f)=>{if(h.id===e.item.id){const m=Oe(kt(o??"",t)+` .brandy-payment-item[data-payment-id="${h.id}"]`);m&&window.jQuery(m).attr("href",$l(u)),i(p=>{p.items[f].url=u.toString()})}})};return r.jsxs(Gk,{$_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(Uk,{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(Yk,{children:[r.jsx(Xk,{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:Ae([!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:Ae(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(Jk,{$_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(Kk,{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(qk,{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(Qk,{children:r.jsxs(eE,{children:[r.jsx("div",{children:"Link"}),r.jsx(tE,{value:e.item.url,onChange:d,prefix:r.jsx(nE,{className:"brandy-icon",dangerouslySetInnerHTML:{__html:Hg[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;"])]})]})})]})},Fk=window.brandyCustomizerData.all_payments,Hg=window.brandyCustomizerData.icons.payments;function Zk(e){const{builder:t}=l0(lt),n=Xs(()=>e.value??e.default_value,[e.value,e.default_value]),[i,o]=Ia(null),[a,s]=Ia(null),{styles:l,attributes:c}=pr(i,a),[d,u]=Ia(!1),h=()=>{u(v=>!v)},f=()=>{u(!1)};$g(()=>{const v=x=>{(i==null||a==null)&&f(),!(i!=null&&i.contains(x.target))&&!(a!=null&&a.contains(x.target))&&f()};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(rE,{children:[r.jsxs(iE,{children:[r.jsx(wt,{className:"m-0",children:"List payments"}),r.jsx(oE,{className:"group",ref:o,onClick:h,children:r.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx(aE,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gi.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(zk,{item:v})},v.id))}),d&&r.jsx(Wk,{ref:s,style:{...l.popper},...c.popper,onClose:f})]})}const Wk=Bk(({style:e,onClose:t,...n},i)=>{const{builder:o}=l0(lt),a=oe(o)(v=>{var x;return(x=v.chosenElement)==null?void 0:x.settings}),s=oe(o)(v=>v.changeElementSettings),[l,c]=Ia(""),d=Xs(()=>Fk.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]),h=Xs(()=>a.icon_color_type,[a.icon_color_type]),f=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}_${f}`),t()},p=Vk(null);return $g(()=>{var v,x;return(x=(v=p.current)==null?void 0:v.querySelector("input"))==null?void 0:x.focus()},[p.current]),r.jsxs(sE,{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(lE,{children:[r.jsx(cE,{children:"Add payment icon"}),r.jsx(dE,{onClick:()=>{t()},children:r.jsx(Pl,{})})]}),r.jsx(uE,{children:r.jsx(Ui,{ref:p,searchText:l,onSearch:v=>{c(v.toString())},placeholder:P("Search payment")})}),r.jsx(Lr,{className:"h-[300px]",autoHide:!0,children:r.jsxs(hE,{children:[u.map(v=>r.jsx(fE,{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)"}},h==="custom"&&me(["&:hover{svg{*[stroke]{","}*[fill]{","}}}"],{stroke:"#2271B1"},{fill:"#2271B1"})],children:r.jsx("span",{className:`brandy-icon [&_svg]:w-[50px] [&_svg]:h-[40px] ${h==="custom"&&"[&_svg]:fill-icon"}`,dangerouslySetInnerHTML:{__html:Hg[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 Gk=w("div")`${e=>e.$_css2}`,Uk=w("div")`${e=>e.$_css3}`,Yk=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),Xk=w("span")({cursor:"grab",padding:"0.5rem"}),Jk=w("div")`${e=>e.$_css4}`,Kk=w("span")`${e=>e.$_css5}`,qk=w("span")`${e=>e.$_css6}`,Qk=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),eE=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),tE=w(ft)`${e=>e.$_css7}`,nE=w("span")`${e=>e.$_css8}`,rE=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),iE=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),oE=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:"#D1EAFFB2"}}),aE=w("path")({transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s",".group:hover &":{fill:"#2271B1"}}),sE=w("div")`${e=>e.$_css9}`,lE=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",paddingBottom:"0.5rem"}),cE=w("span")({fontSize:"16px",fontWeight:"500"}),dE=w("span")({cursor:"pointer",padding:"0.25rem"}),uE=w("div")({borderBottomWidth:"1px","--tw-border-opacity":"1",borderBottomColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))",padding:"1rem",paddingTop:"0.5rem"}),hE=w("div")({display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem",padding:"1rem"}),fE=w("div").withConfig({displayName:"ListPayments___StyledDiv12",componentId:"sc-wzxanx-0"})(["",""],e=>e.$_css0);const pE=window.React.useContext,gE=window.React.useMemo,mE=window.brandyCustomizerData.icons.wishlist;function vE(e){const{builder:t}=pE(Xt),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=gE(()=>Object.entries(mE[n]??{}).map(([o,a])=>({value:o,label:r.jsx("span",{className:Ae(["brandy-icon"]),dangerouslySetInnerHTML:{__html:a}})})),[n]);return r.jsx(fr,{...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 wE=window.React.useContext,xE=window.React.useMemo;function bE(e){const{builder:t}=wE(Xt),n=xE(()=>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=Oe(kt(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(qd,{...e,onChange:o})}const yE=window.React.useContext,yh={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 CE(e){const{builder:t}=yE(lt),{current:n}=De(),i=oe(t)(a=>a.changeElementSettings),o=a=>{i(s=>{Gt(s,["button_design_text","typography","font_size"],yh[a].button_design_text.typography.font_size),Gt(s,["button_design_padding"],yh[a].button_design_padding),hr({sectionId:e.sectionId,settings:s,device:n,clonedFromId:e.cloned_from})}),e.onChange(a)};return r.jsx(ni,{...e,onChange:o})}const _E=window.React.useContext;function SE(e){const{builder:t}=_E(lt),{current:n}=De(),i=oe(t)(a=>a.changeElementSettings),o=a=>{const s=Oe(kt(e.sectionId,t)+" .brandy-element-wrapper"),l=Oe(kt(e.sectionId,t)+" .brandy-button");if(!s||!l)return;let c,d;c=parseInt(window.jQuery(l).css("border-width"));const u=e.settings.inherit_theme??!0,h=a==="outline";if(u){const f="wp-block-button",m="is-style-outline is-style-outline--1",p="wp-element-button wp-block-button__link";h?window.jQuery(s).addClass(m):window.jQuery(s).removeClass(m),window.jQuery(s).addClass(f),window.jQuery(l).addClass(p)}e.onChange(a),setTimeout(()=>{i(f=>{h?(f.button_design.border.color={normal:{desktop:"var(--wp--preset--color--brandy-foreground)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null}},f.button_design_text.color={normal:{desktop:"var(--wp--preset--color--brandy-foreground)",tablet:null,mobile:null},hover:{desktop:"#ffffff",tablet:null,mobile:null}},f.button_design.background_color={normal:{desktop:"#ffffff",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null}},f.button_design.border.width.desktop={unit:"px",min:0,max:20,value:2},f.button_design.border.width.tablet=null,f.button_design.border.width.mobile=null):(f.button_design.border.color={normal:{desktop:"",tablet:null,mobile:null},hover:{desktop:"",tablet:null,mobile:null}},f.button_design_text.color={normal:{desktop:"#ffffff",tablet:null,mobile:null},hover:{desktop:"#ffffff",tablet:null,mobile:null}},f.button_design.background_color={normal:{desktop:"var(--wp--preset--color--brandy-primary)",tablet:null,mobile:null},hover:{desktop:"var(--wp--preset--color--brandy-foreground)",tablet:null,mobile:null}},f.button_design.border.width.desktop.value=0,f.button_design.border.width.desktop.unit="px",f.button_design.border.width.tablet=null,f.button_design.border.width.mobile=null),u?d=parseInt(window.jQuery(l).css("border-width")):(c=h?0:2,d=h?2:0);const m=d-c;f.button_design_padding.top=Math.max(0,f.button_design_padding.top-m),f.button_design_padding.bottom=Math.max(0,f.button_design_padding.bottom-m),f.button_design_padding.left=Math.max(0,f.button_design_padding.left-m),f.button_design_padding.right=Math.max(0,f.button_design_padding.right-m),hr({sectionId:e.sectionId,settings:f,device:n,clonedFromId:e.cloned_from})})},u?400:0)};return r.jsx(ni,{...e,onChange:o})}const Ch=window.React.useMemo,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 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"}],kE=[{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"}],EE=[{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"}],DE=[{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"}],$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:"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 HE(e){var a,s,l;const{current:t}=De(),n=Ch(()=>{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=Ch(()=>n===3?kE:n===4?EE:n===5?DE:n===6?$E:jE,[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"]),hr({sectionId:e.sectionId,device:t,settings:{column_layout:d},builder:"footer"})};return r.jsx(fr,{...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 ME(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"]),hr({sectionId:e.sectionId,device:n,settings:{column_layout:d},builder:"footer"}),Ie.setState(u=>{const h=u.chosenRow;if(h==null)return;const f=u.previewTemplate.placements[n][h],m=f.length;if(m<a){u.previewTemplate.placements[n][h].push(...Array(a-m).fill([]));return}if(f.reduce((E,C,j)=>j>a-1?[...E,...C]:E,[]).length<1){u.previewTemplate.placements[n][h]=f.slice(0,a);return}const v=f.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][h]=x})};return r.jsx(ni,{...e,onChange:i,options:e.options,disableInherit:!0})}const TE=[{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 IE(e){return r.jsx(fr,{...e,options:TE,className:"live-result-type-group",itemCss:[me(["&.brandy-radio-item{padding:16px 16px 0 16px !important;}&.selected{border:1px solid #000;}"])]})}const LE=window.React.useContext,AE=window.React.useMemo,RE=[{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 OE(e){const{builder:t}=LE(lt),n=AE(()=>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(fr,{...e,onChange:a=>o(a),value:n,options:RE,className:"theme-layout-type-group [&_.brandy-radio-group]:grid [&_.brandy-radio-group]:grid-cols-2",itemCss:[me(["&.selected{border:1px solid #000;}"])]})}const NE=window.React.useMemo;function PE(e){const{current:t}=De(),n=Le(o=>o.previewTemplate.placements[Qe(t)].toggle),i=NE(()=>[{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(qd,{...e,options:i})}const BE=window.React.useContext,VE=window.React.useMemo;function zE(e){const{builder:t}=BE(Xt),n=VE(()=>window.wp.customize("blogname")(),[]),i=o=>{const a=o||n;e.onChange(o);const s=Oe(`${kt(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(Kd,{...e,onChange:i,placeholder:n})}const FE=window.React.useContext,ZE=window.React.useMemo;function WE(e){const{builder:t}=FE(Xt),n=ZE(()=>window.wp.customize("blogdescription")(),[]),i=o=>{const a=o||n;e.onChange(o);const s=Oe(`${kt(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(Kd,{...e,onChange:i,placeholder:n})}const b1=window.React.useMemo;function GE(e){const{current:t}=De(),n=b1(()=>Qe(t),[t]),i=b1(()=>[...e.value_path,n],[n,e.value_path]),o=s=>{const l=Oe(`#brandy-footer > div[device="${n}"] [data-section-id="${e.sectionId}"] .footer-container`);l!=null&&window.jQuery(l).attr("item-layout",s?"stretch":"normal"),e.onChange(s,i)},a=b1(()=>e.value[n]==null?e.value.desktop:e.value[n],[e.value,n]);return r.jsx(tg,{...e,value:a,onChange:o})}const UE=window.React.useCallback,yi=window.React.useEffect,Zt=window.React.useMemo,YE=window.React.useState,_h={unit:"px",value:12};function XE(e){const{current:t}=De(),[n,i]=YE("column_1"),o=Zt(()=>["column_items_direction"],[]),a=Zt(()=>["column_horizontal_alignment"],[]),s=Zt(()=>["column_vertical_alignment"],[]),l=Zt(()=>["column_item_vertical_spacing"],[]),c=Zt(()=>["column_item_horizontal_spacing"],[]),d=Zt(()=>["column_item_evenly_distributed"],[]),u=Zt(()=>{var B,y,T,L;const b=ke(e.settings,o),H={desktop:((B=b.desktop)==null?void 0:B[n])??"vertical",tablet:(y=b.tablet)==null?void 0:y[n],mobile:(T=b.mobile)==null?void 0:T[n],[t]:(L=b[t])==null?void 0:L[n]};return ye(H,t)},[e.settings,o,t,n]),h=Zt(()=>{var B,y,T,L;const b=ke(e.settings,a),H={desktop:((B=b.desktop)==null?void 0:B[n])??"flex-start",tablet:(y=b.tablet)==null?void 0:y[n],mobile:(T=b.mobile)==null?void 0:T[n],[t]:(L=b[t])==null?void 0:L[n]};return ye(H,t)},[e.settings,a,t,n]),f=Zt(()=>{var B,y,T,L;const b=ke(e.settings,s),H={desktop:((B=b.desktop)==null?void 0:B[n])??"flex-start",tablet:(y=b.tablet)==null?void 0:y[n],mobile:(T=b.mobile)==null?void 0:T[n],[t]:(L=b[t])==null?void 0:L[n]};return ye(H,t)},[e.settings,s,t,n]),m=Zt(()=>{var B,y,T,L;const b=ke(e.settings,l),H={desktop:((B=b.desktop)==null?void 0:B[n])??_h,tablet:(y=b.tablet)==null?void 0:y[n],mobile:(T=b.mobile)==null?void 0:T[n],[t]:(L=b[t])==null?void 0:L[n]};return ye(H,t)},[e.settings,l,t,n]),p=Zt(()=>{var B,y,T,L;const b=ke(e.settings,c),H={desktop:((B=b.desktop)==null?void 0:B[n])??_h,tablet:(y=b.tablet)==null?void 0:y[n],mobile:(T=b.mobile)==null?void 0:T[n],[t]:(L=b[t])==null?void 0:L[n]};return ye(H,t)},[e.settings,c,t,n]),v=Zt(()=>{var B,y,T,L;const b=ke(e.settings,d),H={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:(T=b==null?void 0:b.mobile)==null?void 0:T[n],[t]:((L=b==null?void 0:b[t])==null?void 0:L[n])??!0};return ye(H,t)},[e.settings,d,t,n]),x=b=>{const H=JSON.parse(JSON.stringify(ke(e.settings,[...o,t])??{}));H[n]=b,e.onChange(H,[...o,t],[...o,t])};yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);H!=null&&window.jQuery(H).attr(`data-items-direction-${t}`,u)},[u,t,n,e.sectionId]);const E=b=>{const H=JSON.parse(JSON.stringify(ke(e.settings,[...a,t])??{}));H[n]=b,e.onChange(H,[...a,t],[...a,t])};yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);H!=null&&window.jQuery(H).css("--horizontal-alignment",h).css("--text-alignment",{"flex-start":"left",center:"center","flex-end":"right","space-between":"space-between"}[h]??"left")},[h,t,n,e.sectionId]);const C=b=>{const H=JSON.parse(JSON.stringify(ke(e.settings,[...s,t])??{}));H[n]=b,e.onChange(H,[...s,t],[...s,t])};yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);H!=null&&window.jQuery(H).css(`--footer-col-vertical-alignment-${t}`,f)},[f,t,n,e.sectionId]);const j=b=>{const H=JSON.parse(JSON.stringify(ke(e.settings,[...c,t])??{}));H[n]=b,e.onChange(H,[...c,t],[...c,t])};yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);H!=null&&window.jQuery(H).css(`--footer-col-horizontal-spacing-${t}`,Ri(p))},[p,t,n,e.sectionId]);const I=b=>{const H=JSON.parse(JSON.stringify(ke(e.settings,[...l,t])??{}));H[n]=b,e.onChange(H,[...l,t],[...l,t])};yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);H!=null&&window.jQuery(H).css(`--footer-col-vertical-spacing-${t}`,Ri(m))},[m,t,n,e.sectionId]);const $=b=>{const H=JSON.parse(JSON.stringify(ke(e.settings,[...d,t])??{}));H[n]=b,e.onChange(H,[...d,t],[...d,t])};yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);H!=null&&window.jQuery(H).css(`--item-evenly-distributed-${t}`,v?"1":"none")},[v,t,n,e.sectionId]);const _=Zt(()=>{const b=ke(e.settings,["number_column",t]);return Array.from({length:b}).map((H,B)=>({label:B+1,value:`column_${B+1}`}))},[e,t]);return yi(()=>{const b=parseInt(n.replace("column_","")),H=Oe(`#brandy-footer [data-section-id="${e.sectionId}"] .footer-col:nth-child(${b})`);return H!=null&&window.jQuery(H).css("outline","1px dashed #007cba"),()=>{H!=null&&window.jQuery(H).css("outline","none")}},[n,e.sectionId]),r.jsxs("div",{children:[r.jsxs(QE,{children:[r.jsxs(eD,{children:[P("Customize column"),r.jsx(Jd,{})]}),r.jsx(tD,{children:P("Choose column to customize")}),r.jsx(mn,{options:_,selected:n,onChange:i})]}),r.jsxs(nD,{children:[r.jsxs(rD,{children:[P("Items direction"),r.jsx(ca,{settings:e.settings,mainKey:"column_items_direction",subKey:n,onChange:x})]}),r.jsx(mn,{options:JE,selected:u,onChange:x})]}),r.jsxs(iD,{children:[r.jsxs(oD,{children:[P("Horizontal Alignment"),r.jsx(ca,{settings:e.settings,mainKey:"column_horizontal_alignment",subKey:n,onChange:E})]}),r.jsx(mn,{options:KE,selected:h,onChange:E,className:"grid grid-cols-4",itemCss:me(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),r.jsxs(aD,{children:[r.jsxs(sD,{children:[P("Vertical Alignment"),r.jsx(ca,{settings:e.settings,mainKey:"column_vertical_alignment",subKey:n,onChange:C})]}),r.jsx(mn,{options:qE,selected:f,onChange:C,className:"grid grid-cols-4",itemCss:me(["height:100%;&.selected{"," "," > *{","}svg *[fill]{","}svg *[stroke]{","}& + *{","}}&.selected + *{","}"],{borderColor:"rgba(209, 234, 255, 0.70)",backgroundColor:"rgba(209, 234, 255, 0.70) !important","--tw-text-opacity":"1 !important",color:"rgb(34 113 177 / var(--tw-text-opacity, 1)) !important"},{borderRightWidth:"1px"},{fill:"#2271B1 !important"},{fill:"#2271B1 !important"},{stroke:"#2271B1 !important"},{borderLeftColor:"transparent"},{borderLeftColor:"rgba(209, 234, 255, 0.70)"})})]}),u==="horizontal"&&r.jsxs(r.Fragment,{children:[r.jsxs(lD,{children:[r.jsx(cD,{children:r.jsx(ca,{settings:e.settings,mainKey:"column_item_horizontal_spacing",subKey:n,onChange:j})}),r.jsx(An,{title:P("Item spacing"),value:p,min:0,max:300,onChange:j})]}),r.jsxs(dD,{children:[r.jsx("label",{children:P("Items evenly distributed")}),r.jsx(Va,{checked:v??!0,onChange:$})]})]}),u==="vertical"&&r.jsxs(uD,{children:[r.jsx(hD,{children:r.jsx(ca,{settings:e.settings,mainKey:"column_item_vertical_spacing",subKey:n,onChange:I})}),r.jsx(An,{title:P("Item spacing"),value:m,min:0,max:300,onChange:I})]})]})}const JE=[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],KE=[{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"}],qE=[{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 ca({settings:e,mainKey:t,subKey:n,onChange:i}){const{current:o}=De(),a=Zt(()=>r.jsxs("svg",{fill:"#2271B1",viewBox:"0 0 35 35",children:[r.jsx("path",{d:"M17.5,26L17.5,26C12.8,26,9,22.2,9,17.5v0C9,12.8,12.8,9,17.5,9h0c4.7,0,8.5,3.8,8.5,8.5v0C26,22.2,22.2,26,17.5,26z"}),r.jsx("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "})]}),[]),s=Zt(()=>o=="desktop"?!0:ke(e,[t,o,n])==null,[o,e,t,n]),l=UE(()=>{o!=="desktop"&&i(null,[t,o,n])},[o,i,t,n]);return s?!1:r.jsx(fD,{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 QE=w("div")({marginBottom:"1rem"}),eD=w("div")({marginBottom:"0.5rem",fontWeight:"700",textTransform:"capitalize"}),tD=w("div")({marginBottom:"0.5rem",fontSize:"12px",fontStyle:"italic","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),nD=w("div")({marginBottom:"1rem"}),rD=w("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),iD=w("div")({marginBottom:"1rem"}),oD=w("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),aD=w("div")({marginBottom:"1rem"}),sD=w("div")({position:"relative",marginBottom:"0.5rem",textTransform:"capitalize"}),lD=w("div")({position:"relative",marginBottom:"1rem"}),cD=w("div")({position:"absolute",top:"10px"}),dD=w("div")({position:"relative",marginBottom:"1rem",display:"flex",alignItems:"center",gap:"0.5rem"}),uD=w("div")({position:"relative",marginBottom:"1rem"}),hD=w("div")({position:"absolute",top:"10px"}),fD=w("span").withConfig({displayName:"ColumnContentLayout___StyledSpan",componentId:"sc-1864esf-0"})(["",""],e=>e.$_css2);const Mg=window.React.useContext,pD=window.React.useMemo,gD=window.React.useState,mD=e=>{const{builder:t}=Mg(lt),n=oe(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.settings}),i=oe(t)(h=>h.changeElementSettings),o=oe(t)(h=>{var f;return(f=h.chosenElement)==null?void 0:f.id}),[a,s]=gD(!1),l=()=>{i(h=>{h.items=n.items.filter((f,m)=>m!==e.position)}),Ne().refreshPartial(`${t}_${o}`)},c=()=>{s(h=>!h)},d=h=>{n.items.forEach((f,m)=>{if(e.position===m){const p=Oe(kt(o??"",t)+` .brandy-list-link-item:nth-child(${m+1})`);p&&window.jQuery(p).html(h),i(v=>{v.items[m].label=h.toString()})}})},u=h=>{n.items.forEach((f,m)=>{if(m===e.position){const p=Oe(kt(o??"",t)+` .brandy-list-link-item:nth-child(${m+1})`);p&&window.jQuery(p).attr("href",$l(h)),i(v=>{v.items[m].url=h.toString()})}})};return r.jsxs(wD,{$_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(xD,{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(bD,{children:[r.jsx(yD,{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:Ae([!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:Ae(["group-hover:text-brandy-text",a&&"group-hover:text-gutenberg-white"]),children:e.item.label})]}),r.jsxs(CD,{$_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(_D,{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(SD,{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(jD,{children:[r.jsxs(kD,{children:[r.jsx("div",{children:"Label"}),r.jsx(ft,{value:e.item.label,onChange:d})]}),r.jsxs(ED,{children:[r.jsx("div",{children:"Link"}),r.jsx(ft,{value:e.item.url,onChange:u})]})]})]})};function vD(e){const{builder:t}=Mg(lt),n=pD(()=>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(DD,{children:[r.jsxs($D,{children:[r.jsx(wt,{className:"m-0",children:"List Link"}),r.jsx(HD,{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(MD,{d:"M12 5.3H7.2V0.5H4.8V5.3H0V7.7H4.8V12.5H7.2V7.7H12V5.3Z",fill:window.brandyCustomizerData.colors.icon.normal})})})]}),r.jsx(Gi.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(mD,{item:s,position:l},l))})]})}var wD=w("div")`${e=>e.$_css2}`,xD=w("div")`${e=>e.$_css3}`,bD=w("div")({display:"flex",alignItems:"center",gap:"0.75rem"}),yD=w("span")({cursor:"grab",padding:"0.5rem"}),CD=w("div")`${e=>e.$_css4}`,_D=w("span")`${e=>e.$_css5}`,SD=w("span")`${e=>e.$_css6}`,jD=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}),kD=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),ED=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),DD=w("div")({display:"flex",flexDirection:"column",gap:"1rem"}),$D=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),HD=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:"#D1EAFFB2"}}),MD=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:"#2271B1"}});const TD=window.React.useCallback,ID=window.React.useContext,LD=window.React.useMemo;function AD(e){const{builder:t}=ID(Xt),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=TD(()=>{n(l=>{if(l!=null)if(Gt(l,e.reset_paths[0],""),e.reset_paths[0].includes("logo_mobile")){const c=Oe(`${kt(e.sectionId,t)} .brandy-logo__img.logo-mobile`);c&&(window.jQuery(c).attr("src",l.logo.url?l.logo.url:window.brandyCustomizerData.others.site_icon),window.jQuery(c).attr("data-using-desktop-source","true"))}else{const c=Oe(`${kt(e.sectionId,t)} .brandy-logo__img.logo-desktop`),d=Oe(`${kt(e.sectionId,t)} .brandy-logo__img.logo-mobile[data-using-desktop-source="true"]`);c&&window.jQuery(c).attr("src",window.brandyCustomizerData.others.site_icon),d&&window.jQuery(d).attr("src",l.logo.url?l.logo.url:window.brandyCustomizerData.others.site_icon)}})},[n,e,t]);return LD(()=>r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsxs(RD,{children:[r.jsx(pt,{className:Ae(["mb-0"]),title:e.title}),e.reset_paths&&r.jsx(Jp,{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 RD=w("div").withConfig({displayName:"ResetLogo___StyledDiv",componentId:"sc-1axmblk-0"})({display:"flex",alignItems:"center",justifyContent:"space-between"});function OD(e){return{ButtonGroup:ni,IconGroup:fr,BoxShadow:X9,ColorGroup:f7,Dimension:w7,Image:H7,Switcher:tg,Typography:_b,EnabledDevices:Eb,TextInput:Kd,Spacing:Vb,Alignment:Wb,Position:Yb,Dropdown:qd,Reset:Kl,MultipleChoice:qb,Background:ky,FlexibleContent:Iy,VerticalAlignment:My,HorizontalAlignment:Oy,PrefilledHTML:Wy,HTML:Uy,Widget:y_,MultipleSelect:k_,NumberInput:Hb,ResetLogo:AD,ListLanguages:jS,ListCurrencies:YS,CanvasTitle:oj,MenuSelection:qj,MenuActiveType:Uj,ListSocials:gk,ListPayments:Zk,AccountLoggedInTitle:uj,AccountLoggedOutTitle:hj,AccountIconSelection:lj,AccountClickAction:bE,ButtonIconSelection:gj,ButtonType:SE,ButtonSize:CE,SearchIconSelection:tk,LiveResultsType:rk,SearchSuggestions:ak,CartIconSelection:xj,ListContacts:Sj,WishlistIconSelection:vE,NewsletterLayoutType:OE,FooterColumnLayout:HE,FooterNumberColumn:ME,FooterStretchItem:GE,ColumnContentLayout:XE,ToggleOffCanvasType:IE,ToggleOffCanvasAlignBottomFrom:PE,SiteTitle:zE,SiteTagline:WE,ListLink:vD}[e]}function Tg(e,t,n=!1){if(e===void 0)return t;if(e===null)return n?null:t;if(Array.isArray(t)||!Pf(t))return e;const i=t;return Object.keys(t).forEach(o=>{i[o]=Tg(e[o],t[o],!0)}),JSON.parse(JSON.stringify(i))}const pt=e=>e.title?r.jsxs(ND,{className:e.className??(e.title.show_devices?"mb-0":"mb-[8px]"),children:[r.jsxs(PD,{className:Ae([e.title.type==="bold"&&"font-bold","brandy-setting-title-text"]),children:[e.title.text,e.title.tooltip&&r.jsxs(BD,{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(VD,{className:"brandy-setting-title-tooltip",dangerouslySetInnerHTML:{__html:e.title.tooltip}})]})]}),e.title.show_devices&&r.jsx(Jd,{})]}):!1;var ND=w("div")({display:"flex",alignItems:"center","--tw-text-opacity":"1",color:"rgb(30 30 30 / var(--tw-text-opacity, 1))"}),PD=w("div")({display:"flex",alignItems:"center",gap:"5px",textTransform:"capitalize"}),BD=w("span")`${e=>e.$_css2}`,VD=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 zD=window.React.useCallback,ho=window.React.useMemo;function FD(e){var d;const t=ho(()=>e.data,[e.data]),{current:n}=De(),i=ho(()=>e.builder??"header",[e.builder]),o=ho(()=>OD(t.type)??!1,[t.type]),a=ho(()=>ke(e.settings,t.value_path),[e.settings,t.value_path]),s=ho(()=>t.default_value,[t.default_value]),l=ho(()=>Md({conditions:t.visible_conditions,settings:e.settings,device:n}),[t.visible_conditions,e.settings,n,s]),c=zD((u,h=null,f=null,m=!1)=>{e.onChange(p=>{var C,j,I,$;const v=h??t.value_path;let x=ke(p,v);if(x==null&&(m||t.is_responsive?Gt(p,v,{desktop:null,tablet:null,mobile:null}):Gt(p,v,null)),x=ke(p,v),x==null&&(x=f?ke(t.default_value,f):t.default_value),Mo(x)&&!Mo(u)||m?Gt(p,v,{...x,[n]:u}):Gt(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=Bv),((I=t.render_options)==null?void 0:I.type)==="data_attribute"&&(E=tp),(($=t.render_options)==null?void 0:$.type)==="variable"&&(E=hr),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:Tg(a,s),onChange:c,sectionId:e.sectionId,builder:i,settings:e.settings})}const ZD=window.React.useMemo;function rs({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 ZD(()=>Md({conditions:e.visible_conditions,settings:n,device:s,inToggle:l}),[e.visible_conditions,n,s])?r.jsx(Xa,{children:e.components.map((d,u)=>r.jsx(FD,{data:d,sectionId:t,settings:n,onChange:i,builder:o,clonedFromId:a},u))}):!1}const WD=["elements","placements","settings","row_configurations"],GD="1.0";function Ig(e,t){return JSON.stringify({type:e,version:GD,template:{id:t.id,elements:t.elements,placements:t.placements,settings:t.settings,row_configurations:t.row_configurations}},null,2)}function Lg(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 WD)if(!(i in n.template))throw new Error(P("Missing required field:")+" "+i);return{template:n.template}}async function UD(e,t){const n=Ig(e,t);await navigator.clipboard.writeText(n)}async function YD(e){const t=await navigator.clipboard.readText();if(!t)throw new Error(P("Clipboard is empty"));const{template:n}=Lg(t,e);return n}function XD(e,t){var d;const n=Ig(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 JD(e,t){return new Promise((n,i)=>{const o=new FileReader;o.onload=()=>{try{const{template:a}=Lg(o.result,t);n(a)}catch(a){i(a)}},o.onerror=()=>i(new Error(P("Failed to read file"))),o.readAsText(e)})}const KD=window.React.useRef,qD=window.React.useState;function Ag({type:e,label:t,getCurrentTemplate:n,onImport:i}){const[o,a]=qD(""),s=KD(null),l=m=>{a(m),setTimeout(()=>a(""),2e3)},c=async()=>{try{await UD(e,n()),l(P("Copied!"))}catch(m){window.alert(m.message||P("Copy failed"))}},d=async()=>{try{const m=await YD(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{XD(e,n()),l(P("Exported!"))}catch(m){window.alert(m.message||P("Export failed"))}},h=async m=>{var v;const p=(v=m.target.files)==null?void 0:v[0];if(p){m.target.value="";try{const x=await JD(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"))}}},f="bg-white px-2 py-1 text-[12px] rounded-[3px] cursor-pointer hover:bg-[rgba(209,234,255,0.70)] hover:text-[rgb(34,113,177)] transition-all ease-in-out duration-200 border-0";return r.jsxs(QD,{children:[t&&r.jsxs(e$,{children:[t,":"]}),r.jsx("button",{type:"button",className:f,onClick:c,title:P("Copy to clipboard"),children:P("Copy")}),r.jsx("button",{type:"button",className:f,onClick:d,title:P("Paste from clipboard"),children:P("Paste")}),r.jsx("button",{type:"button",className:f,onClick:u,title:P("Export as JSON file"),children:P("Export")}),r.jsx("button",{type:"button",className:f,onClick:()=>{var m;return(m=s.current)==null?void 0:m.click()},title:P("Import from JSON file"),children:P("Import")}),r.jsx(t$,{ref:s,type:"file",accept:".json",onChange:h}),o&&r.jsx(n$,{children:o})]})}var QD=w("div")({marginTop:"0.5rem",display:"flex",alignItems:"center",gap:"0.125rem"}),e$=w("span")({marginRight:"0.125rem",fontSize:"11px","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))"}),t$=w("input")({display:"none"}),n$=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 r$={isDragging:!1},Wa=ml()(e=>({...r$,startDragging:()=>{e(()=>({isDragging:!0}))},stopDragging:()=>{e(()=>({isDragging:!1}))}}));const i$=window.React.useEffect,Sh=window.React.useRef,o$=window.React.useState;function Rg({items:e,builder:t,disabledItems:n=[]}){const{startDragging:i,stopDragging:o}=Wa(s=>({startDragging:s.startDragging,stopDragging:s.stopDragging})),a=()=>!1;return r.jsx(Gi.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(s$,{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(V8,{})}),r.jsx(a$,{name:l??((c=window.brandyElements[s])==null?void 0:c.title)??"",id:s,builder:t,disabled:n.includes(s)})]},s)})})}function a$({id:e,name:t,builder:n,disabled:i=!1}){const[o,a]=o$(!1),s=d=>{let u=Le;n==="footer"&&(u=Ie),u.getState().changeElementItemTitle(e,d)},l=Sh(null),c=Sh(null);return i$(()=>{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(l$,{value:t,type:"text",onChange:s,ref:l}):r.jsx("span",{ref:c,children:t||"<Empty>"})}var s$=w("span")`${e=>e.$_css2}`,l$=w(ft).withConfig({displayName:"ElementDraggable___StyledInput",componentId:"sc-19ouxax-0"})({borderRadius:"0px !important",borderLeftWidth:"0px !important",borderRightWidth:"0px !important",borderTopWidth:"0px !important",padding:"0px !important"});const c$=window.React.useMemo;function c0(e,t="header"){const n=oe(t)(o=>o.previewTemplate.elements),i=c$(()=>zf(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 d$=window.React.useMemo,u$=window.React.useState,h$=()=>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]=u$(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=c0(t,"header"),l=d$(()=>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(Ui,{searchText:n,onSearch:o,placeholder:P("Search element")})}),r.jsx(Wf,{children:r.jsx(Xa,{children:l.length<=0?r.jsx(h$,{}):r.jsx(Rg,{items:l,disabledItems:s,builder:"header"})})})]})}const jh=window.React.useCallback,p$=window.React.useMemo;function g$(){const e=Le(i=>i.previewTemplate.settings),t=p$(()=>window.brandySettingsLayouts.header,[]),n=Le(i=>i.changeTemplateSettings);return t==null?!1:r.jsx(r.Fragment,{children:t.general.sections.map((i,o)=>r.jsx(rs,{section:i,sectionKey:`header-${o}`,sectionId:"header",settings:e,onChange:n,builder:"header"},`header-${o}`))})}const m$=[{label:P("Elements"),key:"elements"},{label:P("Settings"),key:"settings"}];function v$(){const{contextHolder:e,currentTab:t}=es({items:m$}),n=Le(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??""}),i=()=>{dn()},o=jh(()=>{const s=Le.getState();return s.templates.find(c=>c.id===s.currentTemplateId)??s.templates[0]},[]),a=jh(s=>{var h,f,m,p,v,x,E,C,j,I;const l=Le.getState(),c=l.currentTemplateId,d=JSON.parse(JSON.stringify({...s,id:c})),u=l.templates.map($=>$.id===c?d:$);Le.setState({templates:u,previewTemplate:d}),(m=(f=(h=window.wp)==null?void 0:h.customize)==null?void 0:f.call(h,"unsaved_header_settings"))==null||m({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()),(I=(j=(C=(E=window.wp)==null?void 0:E.customize)==null?void 0:C.previewer)==null?void 0:j.refresh)==null||I.call(j)},[]);return r.jsxs(Ql,{children:[r.jsx(Ar,{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(Ag,{type:"brandy-header",getCurrentTemplate:o,onImport:a})}),e,t==="elements"?r.jsx(f$,{}):r.jsx(g$,{})]})}const kh=window.React.useCallback,w$=window.React.useEffect,va=window.React.useMemo,$s=window.React.useState,x$=[{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)"})})]})]})}}],y1=({children:e})=>r.jsx(wt,{className:"mb-2 font-semibold",children:e});function b$(){const e=Le(y=>y.addTemplate),t=Le(y=>y.choosePreviewTemplate),n=Le(y=>y.removeTemplate),i=Le(y=>y.templates),o=Le(y=>y.previewTemplate),[a]=$s(o.id),s=va(()=>`template-${Date.now()}`,[]),[l,c]=$s(`Header #${i.length+1}`),[d,u]=$s(""),[h,f]=$s(""),m=va(()=>[{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)};w$(()=>()=>{Zf()},[]);const v=kh(y=>i.find(T=>T.id===y)??window.brandyCustomizerData.defaults.header,[i]),x=kh(y=>window.brandyHeaderPresets[y],[]),E=()=>{dn()},C=(y,T)=>{let L=null,F=null;return y?L=v(y):L=x(T),L!=null&&(F=JSON.parse(JSON.stringify(L)),F.id=s,F.settings.name=l),F},j=y=>{y.preventDefault();const T=C(h,d);if(T==null)return;const L=JSON.parse(JSON.stringify(T));n(s),e({...L,id:s,settings:{...L.settings,name:l}}),t(s),E()},I=va(()=>i.filter(y=>y.settings.name===l||l==="Default header").length>1,[l,i]),$=va(()=>l===""||d===""&&h===""||I,[h,d,l,I]),_=(y,T)=>{const L=C(y,T);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(()=>{Ff()},200)},b=y=>{y!==d&&(u(y),_(h,y))},H=y=>{f(y),y==""?_(h,d):(u(""),_(y,d))},B=()=>{t(a),n(s),E()};return r.jsxs(Ql,{children:[r.jsx(Ar,{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(Xa,{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(y1,{children:P("Header name")}),r.jsx(ft,{value:l,onChange:p,className:I?"!border-red-500 focus-within:!border-red-500":"",placeholder:P("Your header name")}),I&&r.jsx("div",{className:"text-red-500 mt-[3px]",children:P("Theme name has existed")})]}),r.jsxs("div",{children:[r.jsx(y1,{children:P("Copy elements & styles from")}),r.jsx(jt,{options:m,onChange:H,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(y1,{children:P("Using header presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:x$.map(y=>r.jsx(y$,{isActive:y.value===d,data:y,onSelect:()=>{b(y.value)}},y.value))})]})]})}),r.jsx(C$,{className:"sticky p-4 bottom-0",$_css:[h!==""&&{position:"absolute !important",width:"100%"},{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Hl,{primary:!0,onClick:j,disabled:$,children:P("Create header")})})]})}const y$=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=De(),o=va(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(_$,{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(S$,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(j$,{$_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 C$=w("div")`${e=>e.$_css}`,_$=w("div")`${e=>e.$_css2}`,S$=w("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),j$=w("p").withConfig({displayName:"NewHeader___StyledP",componentId:"sc-6re12p-0"})(["",""],e=>e.$_css3);const k$=window.React,E$=window.React.memo,D$=window.React.useCallback,Og=window.React.useContext,Ng=window.React.useMemo,Pg=k$.createContext({});function $$(){const{builder:e}=Og(Xt),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=D$(()=>{dn(),t()},[dn,t]),a=Ng(()=>({builder:e,goBack:o}),[e,o]);return r.jsxs(Pg.Provider,{value:a,children:[r.jsx(Ar,{onGoBack:o,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(T$,{children:[P("Customizing")," ▸ ",i]}),r.jsxs(I$,{children:[n," ",e]})]})}),r.jsx(M$,{})]})}function H$(){const{builder:e}=Og(Pg),t=oe(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=es(),o=Ng(()=>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(kd,{children:o[i].sections.map((l,c)=>r.jsx(rs,{section:l,sectionKey:`${i}-${c}`,sectionId:`${t}_${e}`,settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const M$=E$(H$);var T$=w("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),I$=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 L$=window.React.useMemo,A$=window.React.useState,R$=()=>r.jsx("div",{className:"text-brandy-text-secondary",children:"No element found"});function O$(){const{current:e}=De(),t=oe("footer")(c=>c.previewTemplate.placements[Qe(e)]),[n,i]=A$(""),o=c=>{typeof c!="number"&&i(c)},{unusedElements:a,usingElementIds:s}=c0(t,"footer"),l=L$(()=>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(Ui,{searchText:n,onSearch:o,placeholder:P("Search element")})}),r.jsx(Wf,{children:r.jsx(Xa,{children:l.length<=0?r.jsx(R$,{}):r.jsx(Rg,{items:l,builder:"footer",disabledItems:s})})})]})}const Eh=window.React.useCallback,N$=window.React.useMemo;function P$(){const e=Ie(i=>i.previewTemplate.settings),t=N$(()=>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(rs,{section:i,sectionKey:`footer-${o}`,sectionId:"footer",settings:e,onChange:n,builder:"footer"},`footer-${o}`))})}const B$=[{label:P("Elements"),key:"elements"},{label:P("Settings"),key:"settings"}];function V$(){const{contextHolder:e,currentTab:t}=es({items:B$}),n=Ie(s=>{var l,c;return((c=(l=s.previewTemplate)==null?void 0:l.settings)==null?void 0:c.name)??""}),i=()=>{dn()},o=Eh(()=>{const s=Ie.getState();return s.templates.find(c=>c.id===s.currentTemplateId)??s.templates[0]},[]),a=Eh(s=>{var h,f,m,p,v,x,E,C,j,I;const l=Ie.getState(),c=l.currentTemplateId,d=JSON.parse(JSON.stringify({...s,id:c})),u=l.templates.map($=>$.id===c?d:$);Ie.setState({templates:u,previewTemplate:d}),(m=(f=(h=window.wp)==null?void 0:h.customize)==null?void 0:f.call(h,"unsaved_footer_settings"))==null||m({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()),(I=(j=(C=(E=window.wp)==null?void 0:E.customize)==null?void 0:C.previewer)==null?void 0:j.refresh)==null||I.call(j)},[]);return r.jsxs(Ql,{children:[r.jsx(Ar,{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(Ag,{type:"brandy-footer",getCurrentTemplate:o,onImport:a})}),e,t==="elements"?r.jsx(O$,{}):r.jsx(P$,{})]})}const Dh=window.React.useCallback,z$=window.React.useEffect,wa=window.React.useMemo,Hs=window.React.useState,F$=[{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)"})})})]})}}],C1=({children:e})=>r.jsx(wt,{className:"mb-2 font-semibold",children:e});function Z$(){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]=Hs(o.id),s=wa(()=>`template-${Date.now()}`,[]),[l,c]=Hs(`Footer #${i.length+1}`),[d,u]=Hs(""),[h,f]=Hs(""),m=wa(()=>[{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)};z$(()=>()=>{Zf()},[]);const v=Dh(y=>i.find(T=>T.id===y)??window.brandyCustomizerData.defaults.footer,[i]),x=Dh(y=>window.brandyFooterPresets[y],[]),E=()=>{dn()},C=(y,T)=>{let L=null,F=null;return y?L=v(y):L=x(T),L!=null&&(F=JSON.parse(JSON.stringify(L)),F.id=s,F.settings.name=l),F},j=y=>{y.preventDefault();const T=C(h,d);if(T==null)return;const L=JSON.parse(JSON.stringify(T));n(s),e({...L,id:s,settings:{...L.settings,name:l}}),t(s),E()},I=wa(()=>i.filter(y=>y.settings.name===l||l==="Default footer").length>1,[l,i]),$=wa(()=>l===""||d===""&&h===""||I,[h,d,l,I]),_=(y,T)=>{const L=C(y,T);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(()=>{Ff()},200)},b=y=>{y!==d&&(u(y),_(h,y))},H=y=>{f(y),y==""?_(h,d):(u(""),_(y,d))},B=()=>{t(a),n(s),E()};return r.jsxs(Ql,{children:[r.jsx(Ar,{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(Xa,{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(C1,{children:P("Footer name")}),r.jsx(ft,{value:l,onChange:p,className:I?"!border-red-500 focus-within:!border-red-500":"",placeholder:P("Your footer name")}),I&&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:H,selected:h})]}),h===""&&r.jsxs("div",{children:[r.jsx(C1,{children:P("Using footer presets")}),r.jsx("div",{className:"flex flex-col gap-4",children:F$.map(y=>r.jsx(W$,{isActive:y.value===d,data:y,onSelect:()=>{b(y.value)}},y.value))})]})]})}),r.jsx(G$,{className:"sticky p-4 bottom-0",$_css:[h!==""&&{position:"absolute !important",width:"100%"},{borderRightWidth:"1px",borderStyle:"solid","--tw-border-opacity":"1",borderColor:"rgb(227 232 238 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(240 240 241 / var(--tw-bg-opacity, 1))","--tw-shadow":"0px -1px 10px 0px rgba(90, 90, 90, 0.10)","--tw-shadow-colored":"0px -1px 10px 0px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],children:r.jsx(Hl,{primary:!0,onClick:j,disabled:$,children:P("Create footer")})})]})}const W$=({isActive:e=!1,data:t,onSelect:n})=>{var a;const{current:i}=De(),o=wa(()=>i==="tablet"?"mobile":i,[i]);return r.jsxs(U$,{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(Y$,{children:(a=t==null?void 0:t.icon)==null?void 0:a[o]}),r.jsx(X$,{$_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 G$=w("div")`${e=>e.$_css}`,U$=w("div")`${e=>e.$_css2}`,Y$=w("div")({marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}),X$=w("p").withConfig({displayName:"NewFooter___StyledP",componentId:"sc-15uicft-0"})(["",""],e=>e.$_css3);const J$=window.React,K$=window.React.memo,q$=window.React.useCallback,Bg=window.React.useContext,Vg=window.React.useMemo,zg=J$.createContext({});function $h(){const{builder:e}=Bg(Xt),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=q$(()=>{dn(),t()},[dn,t]),o=Vg(()=>({builder:e,goBack:i}),[e,i]);return r.jsxs(zg.Provider,{value:o,children:[r.jsx(Ar,{onGoBack:i,builder:e,title:r.jsxs(r.Fragment,{children:[r.jsxs(tH,{children:[P("Customizing")," ▸ ",n]}),r.jsx(nH,{children:P("Toggle off canvas")})]})}),r.jsx(eH,{})]})}function Q$(){const{builder:e}=Bg(zg),t=oe(e)(l=>l.chosenRow),{contextHolder:n,currentTab:i}=es(),o=Vg(()=>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(kd,{children:o[i].sections.map((l,c)=>r.jsx(rs,{section:l,sectionKey:`${i}-${c}`,sectionId:"toggle_off_canvas",settings:a,onChange:s,builder:e},`${i}-${c}`))})]})}const eH=K$(Q$);var tH=w("div")({fontSize:"13px",fontWeight:"300",textTransform:"capitalize","--tw-text-opacity":"1",color:"rgb(90 109 128 / var(--tw-text-opacity, 1))"}),nH=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 d0=w.div.withConfig({displayName:"Styleds__SettingLine",componentId:"sc-1ff79ea-0"})(["",""],{marginTop:"0.75rem"}),Ci=window.React.useState,_1=[{label:P("Hidden"),value:"hidden"},{label:P("Optional"),value:"optional"},{label:P("Required"),value:"required"}],Hh=Object.entries(window.brandyCustomizerData.pages).map(([e,t])=>({label:t.title,value:e})),rH=w(d0)`
  ${{marginTop:"0px"}}
`;function fo({title:e,description:t,children:n}){return r.jsxs(rH,{children:[r.jsx(oH,{children:e}),t&&r.jsx(aH,{children:t}),n]})}function iH(){const[e,t]=Ci(()=>window.wp.customize("woocommerce_checkout_company_field")()),[n,i]=Ci(()=>window.wp.customize("woocommerce_checkout_address_2_field")()),[o,a]=Ci(()=>window.wp.customize("woocommerce_checkout_phone_field")()),[s,l]=Ci(()=>window.wp.customize("woocommerce_checkout_highlight_required_fields")()),[c,d]=Ci(()=>window.wp.customize("wp_page_for_privacy_policy")()),[u,h]=Ci(()=>window.wp.customize("woocommerce_terms_page_id")()),[f,m]=Ci(()=>window.wp.customize("woocommerce_checkout_privacy_policy_text")()),p=$=>{t($),window.wp.customize("woocommerce_checkout_company_field")($)},v=$=>{i($),window.wp.customize("woocommerce_checkout_address_2_field")($)},x=$=>{a($),window.wp.customize("woocommerce_checkout_phone_field")($)},E=$=>{const _=$.target.checked;l(_),window.wp.customize("woocommerce_checkout_highlight_required_fields")(_)},C=$=>{d($),window.wp.customize("wp_page_for_privacy_policy")($)},j=$=>{h($),window.wp.customize("woocommerce_terms_page_id")($)},I=$=>{const _=$.target.value;m(_),window.wp.customize("woocommerce_checkout_privacy_policy_text")(_)};return r.jsxs(sH,{children:[r.jsx("div",{children:P("These options let you change the appearance of the WooCommerce checkout.")}),r.jsx(fo,{title:P("Company name field"),children:r.jsx(jt,{options:_1,selected:e,onChange:p})}),r.jsx(fo,{title:P("Address line 2 field"),children:r.jsx(jt,{options:_1,selected:n,onChange:v})}),r.jsx(fo,{title:P("Phone field"),children:r.jsx(jt,{options:_1,selected:o,onChange:x})}),r.jsxs(lH,{children:[r.jsx(cH,{type:"checkbox",checked:s,onChange:E}),r.jsx("label",{children:P("Highlight required fields with an asterisk")})]}),r.jsx(fo,{title:P("Privacy policy page"),children:r.jsx(jt,{options:Hh,selected:c,onChange:C})}),r.jsx(fo,{title:P("Terms and conditions page"),children:r.jsx(jt,{options:Hh,selected:u,onChange:j})}),r.jsx(fo,{title:P("Privacy policy"),description:P("Optionally add some text about your store privacy policy to show during checkout."),children:r.jsx(dH,{value:f,onChange:I,rows:4})})]})}var oH=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))"}),aH=w("div")({marginBottom:"0.5rem"}),sH=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"}),lH=w("div")({display:"flex",alignItems:"center",gap:"0.25rem"}),cH=w("input")({margin:"0px"}),dH=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 Ms=window.React.useState,Mh=[{label:P("Show products"),value:""},{label:P("Show categories"),value:"subcategories"},{label:P("Show categories & products"),value:"both"}],uH=[{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"}],hH=w(d0)`
  ${{marginTop:"0px"}}
`;function Ts({title:e,description:t="",children:n}){return r.jsxs(hH,{children:[r.jsx(pH,{children:e}),r.jsx(gH,{children:t}),n]})}function fH(){const[e,t]=Ms(()=>window.wp.customize("woocommerce_shop_page_display")()),[n,i]=Ms(()=>window.wp.customize("woocommerce_category_archive_display")()),[o,a]=Ms(()=>window.wp.customize("woocommerce_default_catalog_orderby")()),[s,l]=Ms(()=>window.wp.customize("wc_product_catalog")()),c=f=>{t(f),window.wp.customize("woocommerce_shop_page_display")(f)},d=f=>{i(f),window.wp.customize("woocommerce_shop_page_display")(f)},u=f=>{a(f),window.wp.customize("woocommerce_default_catalog_orderby")(f)},h=f=>{const m={...s,product_thumb_size:f};l(m),window.wp.customize("wc_product_catalog")(m),window.jQuery(Oe("body")).css("--product-thumb-aspect-ratio",f=="size_1"?"3/4":"1")};return r.jsxs(mH,{children:[r.jsx(Ts,{title:P("Shop page display"),description:P("Choose what to display on the main shop page."),children:r.jsx(jt,{options:Mh,selected:e,onChange:c})}),r.jsx(Ts,{title:P("Category display"),description:P("Choose what to display on product category pages."),children:r.jsx(jt,{options:Mh,selected:n,onChange:d})}),r.jsx(Ts,{title:P("Default product sorting"),description:P("How should products be sorted in the catalog by default?"),children:r.jsx(jt,{options:uH,selected:o,onChange:u})}),r.jsx(Ts,{title:P("Products thumb size"),children:r.jsx(mn,{options:[{value:"size_1",label:P("Rectangular")},{value:"size_2",label:P("Square")}],selected:s.product_thumb_size??"size_1",onChange:h})})]})}var pH=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))"}),gH=w("div")({marginBottom:"0.5rem"}),mH=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 vH=window.React.useState,wH=w(d0)`
  ${{marginTop:"0px"}}
`;function Th({title:e,description:t="",children:n}){return r.jsxs(wH,{children:[r.jsx(bH,{children:e}),r.jsx(yH,{children:t}),n]})}function xH(){const[e,t]=vH(()=>window.wp.customize("wc_single_product")()),n=a=>{const s={...e,product_gallery_viewport_image_ratio:a};t(s),window.wp.customize("wc_single_product")(s),window.jQuery(Oe("body")).css("--single-product-viewport-image-ratio",a),window.jQuery(Oe(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image")).each(function(){var l=window.jQuery(this);l&&setTimeout(function(){var c=l.height(),d=l.closest(".flex-viewport");c&&d&&d.height(c)},100)})},i=a=>{const s={...e,product_gallery_thumb_image_width:a.value};t(s),window.wp.customize("wc_single_product")(s),window.jQuery(Oe("body")).css("--single-product-gallery-thumb-image-width",(a.value??100)+"px")},o=a=>{const s={...e,product_gallery_thumb_image_height:a.value};t(s),window.wp.customize("wc_single_product")(s),window.jQuery(Oe("body")).css("--single-product-gallery-thumb-image-height",(a.value??100)+"px")};return r.jsxs(CH,{children:[r.jsx(Th,{title:P("Product viewport ratio"),children:r.jsx(ft,{step:.1,wrapperStyle:{width:70},type:"number",value:e.product_gallery_viewport_image_ratio??1,onChange:n})}),r.jsxs(Th,{title:P("Product gallery thumb size"),children:[r.jsx(An,{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(An,{units:["px"],value:{value:e.product_gallery_thumb_image_height??100,unit:"px"},min:30,max:500,onChange:o,title:P("Thumb Height")})]})]})}var bH=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))"}),yH=w("div")({marginBottom:"0.5rem"}),CH=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 Is=window.React.useState;function _H(){const[e,t]=Is(()=>window.wp.customize("enable_product_image_hover_effect")()),[n,i]=Is(()=>window.wp.customize("product_image_hover_effect")()),[o,a]=Is(()=>window.wp.customize("enable_product_image_hover_zoom")()),[s,l]=Is(()=>window.wp.customize("product_image_hover_scale")()??1.1),c=f=>{t(f),window.wp.customize("enable_product_image_hover_effect")(f)},d=f=>{i(f),window.wp.customize("product_image_hover_effect")(f)},u=f=>{a(f),window.wp.customize("enable_product_image_hover_zoom")(f)},h=f=>{l(f),window.wp.customize("product_image_hover_scale")(f)};return r.jsxs(SH,{children:[r.jsx("div",{children:P("These options let you change the general WooCommerce settings.")}),r.jsxs(jH,{children:[r.jsx(kH,{children:P("Product Image")}),r.jsxs(EH,{children:[r.jsx(DH,{htmlFor:"enable_product_image_hover_zoom",children:P("Zoom when hovering product card")}),r.jsx(Va,{checked:o,onChange:u})]}),o&&r.jsxs("div",{children:[r.jsx($H,{htmlFor:"product_image_hover_scale",children:P("Hover scale")}),r.jsx(Jl,{value:s,onChange:f=>h(f),min:1,max:1.4,step:.05})]}),r.jsxs(HH,{children:[r.jsx(MH,{htmlFor:"enable_product_image_hover_effect",children:P("Product Image Hover Animation")}),r.jsx(Va,{checked:e,onChange:c})]}),e&&r.jsxs("div",{children:[r.jsx(TH,{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 SH=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"}),jH=w("div")({display:"flex",flexDirection:"column",gap:"0.75rem"}),kH=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))"}),EH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),DH=w("label")({display:"inline-block"}),$H=w("label")({marginBottom:"0.5rem",display:"inline-block"}),HH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),MH=w("label")({display:"inline-block"}),TH=w("label").withConfig({displayName:"General___StyledLabel5",componentId:"sc-htnm6n-0"})({marginBottom:"0.5rem",display:"inline-block"});const IH=window.React.useContext,LH=window.React.useEffect,Ih=window.React.useMemo;function AH(){const{sectionId:e}=IH(Xt);LH(()=>{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=Ih(()=>{switch(e){case"wc_product_catalog":return fH;case"wc_single_product":return xH;case"wc_checkout":return iH;case"wc_general":return _H;default:return!1}},[e]),n=Ih(()=>window.brandyCustomizerData.woocommerce.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Ar,{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:dn}),r.jsx(RH,{children:r.jsx(t,{})})]})}var RH=w("div").withConfig({displayName:"Section___StyledDiv",componentId:"sc-gsppkr-0"})({marginTop:"1rem"});const Lh=window.React.useRef,S1=window.React.useState;var Jh;const Mr=((Jh=window.brandyCustomizerData)==null?void 0:Jh.wp_global_styles)??{};var Kh;const Wt=((Kh=window.brandyCustomizerData)==null?void 0:Kh.theme_settings)??{};var qh;const kr=((qh=Mr==null?void 0:Mr.elements)==null?void 0:qh.button)??{},po=(kr==null?void 0:kr[":hover"])??{};var Qh,e2,t2;const j1=((t2=(e2=(Qh=Mr==null?void 0:Mr.blocks)==null?void 0:Qh["core/button"])==null?void 0:e2.variations)==null?void 0:t2.outline)??{};var n2,r2,i2;const Dn=((i2=(r2=(n2=Wt==null?void 0:Wt.custom)==null?void 0:n2.color)==null?void 0:r2.button)==null?void 0:i2.outline)??{};var o2,a2,s2;const go=((s2=(a2=(o2=Mr==null?void 0:Mr.blocks)==null?void 0:o2["core/button"])==null?void 0:a2.variations)==null?void 0:s2.secondary)??{};var l2,c2,d2;const k1=((d2=(c2=(l2=Wt==null?void 0:Wt.custom)==null?void 0:l2.color)==null?void 0:c2.button)==null?void 0:d2.secondary)??{};var u2,h2,f2,p2,g2,m2;const OH=[...((h2=(u2=Wt==null?void 0:Wt.color)==null?void 0:u2.palette)==null?void 0:h2.custom)??[],...((p2=(f2=Wt==null?void 0:Wt.color)==null?void 0:f2.palette)==null?void 0:p2.theme)??[],...((m2=(g2=Wt==null?void 0:Wt.color)==null?void 0:g2.palette)==null?void 0:m2.default)??[]];function Ls(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=OH.find(i=>i.slug===t);return(n==null?void 0:n.color)??e}var v2,w2,x2,b2;const NH={buttonBg:((v2=kr==null?void 0:kr.color)==null?void 0:v2.background)??"",buttonText:((w2=kr==null?void 0:kr.color)==null?void 0:w2.text)??"",hoverBg:((x2=po==null?void 0:po.color)==null?void 0:x2.background)??"",hoverText:((b2=po==null?void 0:po.color)==null?void 0:b2.text)??""};var y2;const PH={mainColor:((y2=j1==null?void 0:j1.color)==null?void 0:y2.text)??(Dn==null?void 0:Dn["hover-background"])??"",hoverStyle:(Dn==null?void 0:Dn["hover-style"])??"solid",hoverBg:(Dn==null?void 0:Dn["hover-background"])??"",hoverText:(Dn==null?void 0:Dn["hover-foreground"])??""};var C2,_2;const BH={bg:((C2=go==null?void 0:go.color)==null?void 0:C2.background)??"#ededed",text:((_2=go==null?void 0:go.color)==null?void 0:_2.text)??"",hoverBg:(k1==null?void 0:k1["hover-background"])??"#efefef"};var S2;const Tr=((S2=window.brandyCustomizerData)==null?void 0:S2.theme_default_styles)??{};var j2;const ko=((j2=window.brandyCustomizerData)==null?void 0:j2.theme_default_settings)??{};var k2;const Er=((k2=Tr==null?void 0:Tr.elements)==null?void 0:k2.button)??{},mo=(Er==null?void 0:Er[":hover"])??{};var E2,D2,$2;const E1=(($2=(D2=(E2=Tr==null?void 0:Tr.blocks)==null?void 0:E2["core/button"])==null?void 0:D2.variations)==null?void 0:$2.outline)??{};var H2,M2,T2;const $n=((T2=(M2=(H2=ko==null?void 0:ko.custom)==null?void 0:H2.color)==null?void 0:M2.button)==null?void 0:T2.outline)??{};var I2,L2,A2;const vo=((A2=(L2=(I2=Tr==null?void 0:Tr.blocks)==null?void 0:I2["core/button"])==null?void 0:L2.variations)==null?void 0:A2.secondary)??{};var R2,O2,N2;const D1=((N2=(O2=(R2=ko==null?void 0:ko.custom)==null?void 0:R2.color)==null?void 0:O2.button)==null?void 0:N2.secondary)??{};var P2,B2,V2,z2;const Ah={buttonBg:((P2=Er==null?void 0:Er.color)==null?void 0:P2.background)??"",buttonText:((B2=Er==null?void 0:Er.color)==null?void 0:B2.text)??"",hoverBg:((V2=mo==null?void 0:mo.color)==null?void 0:V2.background)??"",hoverText:((z2=mo==null?void 0:mo.color)==null?void 0:z2.text)??""};var F2;const Rh={mainColor:((F2=E1==null?void 0:E1.color)==null?void 0:F2.text)??($n==null?void 0:$n["hover-background"])??"",hoverStyle:($n==null?void 0:$n["hover-style"])??"solid",hoverBg:($n==null?void 0:$n["hover-background"])??"",hoverText:($n==null?void 0:$n["hover-foreground"])??""};var Z2,W2;const Oh={bg:((Z2=vo==null?void 0:vo.color)==null?void 0:Z2.background)??"#ededed",text:((W2=vo==null?void 0:vo.color)==null?void 0:W2.text)??"",hoverBg:(D1==null?void 0:D1["hover-background"])??"#efefef"};function VH(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(h=>Math.min(255,Math.floor(h+(255-h)*.1))):d.map(h=>Math.max(0,Math.floor(h*.88)))).map(h=>h.toString(16).padStart(2,"0")).join("")}function zH(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 h=(t.mainColor||"").replace(/^#/,"").substring(0,6),f=h.length===6?`#${h}1a`:"";s=f?`background-color: ${f} !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;`:""}
    }
    .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 FH(){var C;const[e,t]=S1(NH),[n,i]=S1(PH),[o,a]=S1(BH),s=Lh(!1),l=Lh(!1),c=(j,I,$)=>{window.wp.customize("button_settings")({...j,outline:I,secondary:$}),zH(j,I,$)},d=()=>{s.current=!1,t(Ah),c(Ah,n,o)},u=()=>{i(Rh),c(e,Rh,o)},h=()=>{l.current=!1,a(Oh),c(e,n,Oh)},f=j=>I=>{const $={...e,[j]:I};if(j==="hoverBg"&&(s.current=!0),j==="buttonBg"&&!s.current){const _=Ls(I);$.hoverBg=VH(_)}t($),c($,n,o)},m=j=>I=>{const $={...n,[j]:I};if(j==="mainColor"&&$.hoverStyle==="solid"){const _=Ls(I);$.hoverBg=_,$.hoverText="#ffffff"}i($),c(e,$,o)},p=j=>{const I={...n,hoverStyle:j};if(j==="solid"){const $=Ls(n.mainColor);I.hoverBg=$,I.hoverText="#ffffff"}i(I),c(e,I,o)},v=j=>I=>{const $={...o,[j]:I};if(j==="hoverBg"&&(l.current=!0),j==="bg"&&!l.current){const b=Ls(I).replace(/^#/,"");b.length===6&&($.hoverBg=`#${b}cc`)}a($),c(e,n,$)},E=`${((C=window.ajaxurl)==null?void 0:C.replace("/admin-ajax.php","/"))??"/wp-admin/"}site-editor.php?path=%2Fwp_global_styles`;return r.jsxs(ZH,{children:[r.jsxs(WH,{children:[r.jsxs(GH,{children:[r.jsx(UH,{children:P("Fill Button")}),r.jsx(YH,{type:"button",onClick:d,children:P("Reset")})]}),r.jsxs(XH,{children:[r.jsx("label",{children:P("Background color")}),r.jsxs(JH,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.buttonBg,onChange:f("buttonBg")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.hoverBg,onChange:f("hoverBg")})})]})]}),r.jsxs(KH,{children:[r.jsx("label",{children:P("Text color")}),r.jsxs(qH,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.buttonText,onChange:f("buttonText")})}),r.jsx(St,{title:P("Hover"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:e.hoverText,onChange:f("hoverText")})})]})]})]}),r.jsxs(QH,{children:[r.jsxs(eM,{children:[r.jsx(tM,{children:P("Outline Button")}),r.jsx(nM,{type:"button",onClick:u,children:P("Reset")})]}),r.jsxs(rM,{children:[r.jsx("label",{children:P("Main color")}),r.jsx(Ct,{color:n.mainColor,onChange:m("mainColor")})]}),r.jsxs(iM,{children:[r.jsx("label",{children:P("Hover style")}),r.jsxs(oM,{children:[r.jsxs(aM,{children:[r.jsx("input",{type:"radio",name:"outline-hover-style",checked:n.hoverStyle==="solid",onChange:()=>p("solid")}),P("Solid fill")]}),r.jsxs(sM,{children:[r.jsx("input",{type:"radio",name:"outline-hover-style",checked:n.hoverStyle==="tinted",onChange:()=>p("tinted")}),P("Tinted")]})]})]}),n.hoverStyle==="solid"&&r.jsxs(lM,{children:[r.jsx("label",{children:P("Hover color")}),r.jsxs(cM,{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(dM,{children:[r.jsxs(uM,{children:[r.jsx(hM,{children:P("Secondary Button")}),r.jsx(fM,{type:"button",onClick:h,children:P("Reset")})]}),r.jsxs(pM,{children:[r.jsx("label",{children:P("Background color")}),r.jsxs(gM,{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(mM,{children:[r.jsx("label",{children:P("Text color")}),r.jsx(Ct,{color:o.text,onChange:v("text")})]})]}),r.jsx(vM,{children:r.jsxs(wM,{href:E,target:"_blank",rel:"noopener noreferrer",children:[P("Advanced settings in Site Editor")," ↗"]})})]})}var ZH=w("div")({display:"flex",flexDirection:"column"}),WH=w("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","&:first-child":{borderTopWidth:"0px"}}),GH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),UH=w("label")({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),YH=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))"}}),XH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),JH=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),KH=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),qH=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"}),eM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),tM=w("label")({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),nM=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))"}}),rM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),iM=w("div")({display:"flex",flexDirection:"column",gap:"0.5rem"}),oM=w("div")({display:"flex",gap:"1rem"}),aM=w("label")({display:"flex",cursor:"pointer",alignItems:"center",gap:"0.375rem",fontSize:"0.875rem",lineHeight:"1.25rem"}),sM=w("label")({display:"flex",cursor:"pointer",alignItems:"center",gap:"0.375rem",fontSize:"0.875rem",lineHeight:"1.25rem"}),lM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),cM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),dM=w("div")({display:"flex",flexDirection:"column",gap:"1rem",borderTopWidth:"1px",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),uM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),hM=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))"}}),pM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),gM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),mM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),vM=w("div")({paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingBottom:"0.75rem"}),wM=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 xM=window.React.useState,rn=window.brandyCustomizerData.general.default_settings.input_settings;function bM(){var c,d,u,h,f,m,p,v,x,E,C,j,I,$,_,b,H,B;const[e,t]=xM(window.wp.customize("input_settings")()??rn),n=y=>T=>{const L=JSON.parse(JSON.stringify(e));Gt(L,["text_color",y],T),t(L),window.wp.customize("input_settings")(L);const F=Oe("body");window.jQuery(F).css(`--input-text-color-${y}`,T)},i=y=>T=>{const L=JSON.parse(JSON.stringify(e));Gt(L,["background_color",y],T),t(L),window.wp.customize("input_settings")(L);const F=Oe("body");window.jQuery(F).css(`--input-background-color-${y}`,T)},o=y=>T=>{const L=JSON.parse(JSON.stringify(e));Gt(L,["border","color",y],T),t(L),window.wp.customize("input_settings")(L);const F=Oe("body");window.jQuery(F).css(`--input-border-color-${y}`,T)},a=y=>{J0(()=>{const T=JSON.parse(JSON.stringify(e));Gt(T,["border","width"],y),t(T),window.wp.customize("input_settings")(T);const L=Oe("body");window.jQuery(L).css("--input-border-width",Ri(y))})},s=y=>{J0(()=>{const T=JSON.parse(JSON.stringify(e));Gt(T,["border","radius"],y),t(T),window.wp.customize("input_settings")(T);const L=Oe("body");window.jQuery(L).css("--input-border-radius",Ri(y))})},l=y=>{const T=JSON.parse(JSON.stringify(e));Gt(T,["padding"],y),t(T),window.wp.customize("input_settings")(T);const L=Oe("body");window.jQuery(L).css("--input-padding",np(y))};return r.jsxs(yM,{children:[r.jsxs(CM,{children:[r.jsx("label",{children:P("Text color")}),r.jsxs(_M,{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=rn.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)??((h=rn.text_color)==null?void 0:h.hover),onChange:n("hover")})})]})]}),r.jsxs(SM,{children:[r.jsx("label",{children:P("Background color")}),r.jsxs(jM,{children:[r.jsx(St,{title:P("Normal"),style:{textTransform:"capitalize"},children:r.jsx(Ct,{color:((f=e==null?void 0:e.background_color)==null?void 0:f.normal)??((m=rn==null?void 0:rn.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=rn.background_color)==null?void 0:v.hover),onChange:i("hover")})})]})]}),r.jsxs(kM,{children:[r.jsx("label",{children:P("Border color")}),r.jsxs(EM,{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=rn==null?void 0:rn.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:(($=(I=e==null?void 0:e.border)==null?void 0:I.color)==null?void 0:$.hover)??((b=(_=rn.border)==null?void 0:_.color)==null?void 0:b.hover),onChange:o("hover")})})]})]}),r.jsx(An,{title:P("Border width"),value:((H=e==null?void 0:e.border)==null?void 0:H.width)??rn.border.width,onChange:a}),r.jsx(An,{title:P("Border radius"),value:((B=e==null?void 0:e.border)==null?void 0:B.radius)??rn.border.radius,onChange:s}),r.jsx(ng,{title:P("Padding"),units:["px"],value:(e==null?void 0:e.padding)??rn.padding,onChange:l})]})}var yM=w("div")({display:"flex",flexDirection:"column",gap:"1rem",padding:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem"}),CM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),_M=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),SM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),jM=w("div")({display:"flex",alignItems:"center",gap:"1rem"}),kM=w("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),EM=w("div").withConfig({displayName:"InputSettings___StyledDiv7",componentId:"sc-1ocb9dp-0"})({display:"flex",alignItems:"center",gap:"1rem"});const DM=window.React.useContext,Nh=window.React.useMemo;function $M(){const{sectionId:e}=DM(Xt),t=Nh(()=>{switch(e){case"button_settings":return FH;case"input_settings":return bM;default:return null}},[e]),n=Nh(()=>window.brandyCustomizerData.general.sections.find(i=>i.id===e),[e]);return r.jsxs(r.Fragment,{children:[r.jsx(Ar,{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:dn}),r.jsx("div",{tw:"mt-4",children:r.jsx(t,{})})]})}const HM=window.React.createContext,Ph=window.React.useMemo,Ql=w.div.withConfig({displayName:"BrandySection__StyledSectionWrapper",componentId:"sc-ywrqgm-0"})({height:"100%"}),Xt=HM({});function MM(e){const{sectionId:t,builder:n,clonedFromId:i}=e,o=Ph(()=>({sectionId:t,builder:n}),[t,n]),a=Ph(()=>t==="new_header"&&n==="header"?r.jsx(b$,{}):t==="new_footer"&&n==="footer"?r.jsx(Z$,{}):t==="settings"&&n==="header"?r.jsx(v$,{}):t==="settings"&&n==="footer"?r.jsx(V$,{}):t.endsWith("_header")&&n==="header"||t.endsWith("_footer")&&n==="footer"?r.jsx($$,{}):t==="toggle_off_canvas"?r.jsx($h,{}):t==="toggle"?r.jsx($h,{}):n==="woocommerce-settings"?r.jsx(AH,{}):n==="general-settings"?r.jsx($M,{}):r.jsx(r_,{elementId:t,clonedFromId:i}),[t,n]);return r.jsx(Xt.Provider,{value:o,children:a})}const Hn=[],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=()=>{Le.setState(e=>{e.chosenRow="toggle",e.chosenElement=null})},LM=(e,t)=>{let n=Le;e==="footer"&&(n=Ie),["top","middle","bottom"].forEach(o=>{t.includes(o)&&n.setState(a=>{a.chosenRow=o,a.chosenElement=null})})},AM=(e,t)=>{let n=Le;e==="footer"&&(n=Ie),n.setState(i=>{const o=i.previewTemplate.elements[t];o!=null&&(i.chosenElement=o,i.chosenRow=null)})},Fg=300,qn=(e,t,n,i)=>{const o=document.querySelector("#brandy-section .current-panel");if((o==null?void 0:o.dataset.sectionId)==="new_header")return;const a=window.wp.customize.panel(e);a.expanded()||a.expanded(!0);const s=document.querySelector("#brandy-section");if(Hn==null?void 0:Hn.find(d=>d.dom.dataset.sectionId===t&&d.dom.dataset.builder===e))return;if(Hn.length>0&&Hn.forEach(d=>{let u=d.dom.cloneNode(!0);d.dom.replaceWith(u),d.root.unmount(),setTimeout(()=>{window.jQuery(u).remove(),Hn.shift()},Fg)}),i!=null){const d=Bh(e,i);s==null||s.appendChild(d)}const c=Bh(e,t);s==null||s.appendChild(c)};function Bh(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=Ti.createRoot(n);return Hn.push({root:i,dom:n}),i.render(r.jsx(MM,{builder:e,sectionId:t})),setTimeout(()=>{n.classList.add("current-panel")},100),n}const dn=()=>{Hn.length>0&&Hn.forEach((e,t)=>{Hn.length>1&&t!=Hn.length-1||(e.dom.classList.add("section-close"),setTimeout(()=>{e.root.unmount(),e.dom.remove(),Hn.pop()},Fg))})},Oe=e=>{const t=T4();return t==null||t.contentDocument==null?[]:t.contentDocument.querySelectorAll(e)},kt=(e,t)=>e==="header"||e==="footer"?`[data-section-id="${e}"]`:`[data-section-id="${e}"][data-builder="${t}"]`;var Zg=Symbol.for("immer-nothing"),Vh=Symbol.for("immer-draftable"),wn=Symbol.for("immer-state");function Xn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ga=Object.getPrototypeOf;function Bo(e){return!!e&&!!e[wn]}function Ni(e){var t;return e?Wg(e)||Array.isArray(e)||!!e[Vh]||!!((t=e.constructor)!=null&&t[Vh])||is(e)||tc(e):!1}var RM=Object.prototype.constructor.toString(),zh=new WeakMap;function Wg(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=zh.get(n);return i===void 0&&(i=Function.toString.call(n),zh.set(n,i)),i===RM}function hl(e,t,n=!0){ec(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 ec(e){const t=e[wn];return t?t.type_:Array.isArray(e)?1:is(e)?2:tc(e)?3:0}function ud(e,t){return ec(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gg(e,t,n){const i=ec(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 is(e){return e instanceof Map}function tc(e){return e instanceof Set}function Si(e){return e.copy_||e.base_}function hd(e,t){if(is(e))return new Map(e);if(tc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Wg(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[wn];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(Ga(e),i)}else{const i=Ga(e);if(i!==null&&n)return{...e};const o=Object.create(i);return Object.assign(o,e)}}function u0(e,t=!1){return nc(e)||Bo(e)||!Ni(e)||(ec(e)>1&&Object.defineProperties(e,{set:As,add:As,clear:As,delete:As}),Object.freeze(e),t&&Object.values(e).forEach(n=>u0(n,!0))),e}function NM(){Xn(2)}var As={value:NM};function nc(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var PM={};function Pi(e){const t=PM[e];return t||Xn(0,e),t}var Ua;function Ug(){return Ua}function BM(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Fh(e,t){t&&(Pi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fd(e){pd(e),e.drafts_.forEach(VM),e.drafts_=null}function pd(e){e===Ua&&(Ua=e.parent_)}function Zh(e){return Ua=BM(Ua,e)}function VM(e){const t=e[wn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Wh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[wn].modified_&&(fd(t),Xn(4)),Ni(e)&&(e=fl(t,e),t.parent_||pl(t,e)),t.patches_&&Pi("Patches").generateReplacementPatches_(n[wn].base_,e,t.patches_,t.inversePatches_)):e=fl(t,n,[]),fd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zg?e:void 0}function fl(e,t,n){if(nc(t))return t;const i=e.immer_.shouldUseStrictIteration(),o=t[wn];if(!o)return hl(t,(a,s)=>Gh(e,o,t,a,s,n),i),t;if(o.scope_!==e)return t;if(!o.modified_)return pl(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)=>Gh(e,o,a,c,d,n,l),i),pl(e,a,!1),n&&e.patches_&&Pi("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Gh(e,t,n,i,o,a,s){if(o==null||typeof o!="object"&&!s)return;const l=nc(o);if(!(l&&!s)){if(Bo(o)){const c=a&&t&&t.type_!==3&&!ud(t.assigned_,i)?a.concat(i):void 0,d=fl(e,o,c);if(Gg(n,i,d),Bo(d))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Ni(o)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[i]===o&&l)return;fl(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(is(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&pl(e,o)}}}function pl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&u0(t,n)}function zM(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Ug(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=h0;n&&(o=[i],a=Ya);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var h0={get(e,t){if(t===wn)return e;const n=Si(e);if(!ud(n,t))return FM(e,n,t);const i=n[t];return e.finalized_||!Ni(i)?i:i===$1(e.base_,t)?(H1(e),e.copy_[t]=md(i,e)):i},has(e,t){return t in Si(e)},ownKeys(e){return Reflect.ownKeys(Si(e))},set(e,t,n){const i=Yg(Si(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=$1(Si(e),t),a=o==null?void 0:o[wn];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(OM(n,o)&&(n!==void 0||ud(e.base_,t)))return!0;H1(e),gd(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 $1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,H1(e),gd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Si(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){Xn(11)},getPrototypeOf(e){return Ga(e.base_)},setPrototypeOf(){Xn(12)}},Ya={};hl(h0,(e,t)=>{Ya[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ya.deleteProperty=function(e,t){return Ya.set.call(this,e,t,void 0)};Ya.set=function(e,t,n){return h0.set.call(this,e[0],t,n,e[0])};function $1(e,t){const n=e[wn];return(n?Si(n):e)[t]}function FM(e,t,n){var o;const i=Yg(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function Yg(e,t){if(!(t in e))return;let n=Ga(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Ga(n)}}function gd(e){e.modified_||(e.modified_=!0,e.parent_&&gd(e.parent_))}function H1(e){e.copy_||(e.copy_=hd(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"&&Xn(6),i!==void 0&&typeof i!="function"&&Xn(7);let o;if(Ni(t)){const a=Zh(this),s=md(t,void 0);let l=!0;try{o=n(s),l=!1}finally{l?fd(a):pd(a)}return Fh(a,i),Wh(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Zg&&(o=void 0),this.autoFreeze_&&u0(o,!0),i){const a=[],s=[];Pi("Patches").generateReplacementPatches_(t,o,a,s),i(a,s)}return o}else Xn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let i,o;return[this.produce(t,n,(s,l)=>{i=s,o=l}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ni(e)||Xn(8),Bo(e)&&(e=WM(e));const t=Zh(this),n=md(e,void 0);return n[wn].isManual_=!0,pd(t),n}finishDraft(e,t){const n=e&&e[wn];(!n||!n.isManual_)&&Xn(9);const{scope_:i}=n;return Fh(i,t),Wh(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=Pi("Patches").applyPatches_;return Bo(e)?i(e,t):this.produce(e,o=>i(o,t))}};function md(e,t){const n=is(e)?Pi("MapSet").proxyMap_(e,t):tc(e)?Pi("MapSet").proxySet_(e,t):zM(e,t);return(t?t.scope_:Ug()).drafts_.push(n),n}function WM(e){return Bo(e)||Xn(10,e),Xg(e)}function Xg(e){if(!Ni(e)||nc(e))return e;const t=e[wn];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=hd(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=hd(e,!0);return hl(n,(o,a)=>{Gg(n,o,Xg(a))},i),t&&(t.finalized_=!1),n}var vd=new ZM,GM=vd.produce,Jg=vd.setAutoFreeze.bind(vd);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 h=s(i.getState());d=f=>{const m=s(f);if(!u(h,m)){const p=h;l(h=m,p)}},c!=null&&c.fireImmediately&&l(h,h)}return o(d)},e(t,n,i)},Kg=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)),qg=YM;function qr(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}Jg(!1);let Ie;const Wr="footer";Vo.panel(Wr,function(){const e=()=>Ne().getTemplates(Wr),t=()=>{const o=e(),a=Ne().getPreviewTemplate(Wr).id;return o.find(s=>s.id===a)??o[0]},n=()=>{const o=e(),a=Ne().getCurrentTemplate(Wr).id;return(o.find(s=>s.id===a)??o[0]).id},i=()=>{Ne().refreshPartial(`${Wr}_placements`)};Ie=ml(Kg(qg((o,a)=>({templates:e(),previewTemplate:t(),currentTemplateId:n(),chosenElement:null,chosenRow:null,resetTemplate:()=>{const s=a().previewTemplate.id;if(!s)return;const l=[...window.brandyNichesFooters,...Object.values(window.brandyFooterPresets)].find(c=>c.id===s);l&&(o(c=>{c.previewTemplate=l}),i())},resetElement:s=>{var d;if(((d=a().chosenElement)==null?void 0:d.id)!==s)return;const l=a().previewTemplate.id;if(!l)return;const c=[...window.brandyNichesFooters,...Object.values(window.brandyFooterPresets)].find(u=>u.id===l);c&&(o(u=>{var h;(h=u.chosenElement)!=null&&h.settings&&(u.chosenElement.settings=c.elements[s].settings)}),Ne().refreshPartial(`${Wr}_${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=>{Bf({...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,h=JSON.parse(JSON.stringify(u.placements[Qe(d)]));s==="toggle"&&(h.toggle=c),s!=="toggle"&&l!=null&&(h[s][l]=c),o(f=>{f.previewTemplate.placements[Qe(d)]=h}),Xd(h,u.placements[Qe(d)])||i()},removeElement:s=>{var l;Vf({...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)&&dn()},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:qr}),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:qr}),Ie.subscribe(o=>o.previewTemplate.id,(o,a)=>{o!==a&&Ne().updatePreviewTemplateId(Wr,o??"default")}),Ie.subscribe(o=>o.templates,(o,a)=>{JSON.stringify(o)!==JSON.stringify(a)&&Ne().updateTemplates(Wr,o)},{equalityFn:qr}),on.registerStore("footer",Ie),on.captureInitial("footer",Ie.getState),Ie.subscribe(o=>o.previewTemplate,()=>{on.capture("footer",Ie.getState)},{equalityFn:qr})});const wo=e=>{var n;if(!Le||!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=Le.getState():t=Ie.getState(),{current_template_id:t.currentTemplateId,templates:JSON.parse(JSON.stringify(t.templates)),preview_template_id:((n=t.previewTemplate)==null?void 0:n.id)??t.currentTemplateId}},M1=(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}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}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);M1(t,JSON.parse(JSON.stringify({...i,templates:n})))}updatePreviewTemplateId(t,n){const i=wo(t);M1(t,JSON.parse(JSON.stringify({...i,preview_template_id:n})))}updateCurrentTemplateId(t,n){const i=wo(t);M1(t,JSON.parse(JSON.stringify({...i,current_template_id:n})))}refreshPartial(t){setTimeout(()=>{var i,o;if(t.includes("header")){const a=Le.getState();window.wp.customize("unsaved_header_settings")({current_template_id:a.currentTemplateId,templates:a.templates.filter(s=>{var l;return s.id===a.currentTemplateId||s.id===((l=a.previewTemplate)==null?void 0:l.id)}),preview_template_id:((i=a.previewTemplate)==null?void 0:i.id)??a.currentTemplateId})}if(t.includes("footer")){const a=Ie.getState();window.wp.customize("unsaved_footer_settings")({current_template_id:a.currentTemplateId,templates:a.templates.filter(s=>{var l;return s.id===a.currentTemplateId||s.id===((l=a.previewTemplate)==null?void 0:l.id)}),preview_template_id:((o=a.previewTemplate)==null?void 0:o.id)??a.currentTemplateId})}const n=window.wp.customize(t);n&&n.set(Date.now())},0)}}const Ne=()=>new XM;Jg(!1);let Le;const Sr="header";Vo.panel(Sr,function(){const e=Ne().getPreviewTemplate(Sr),t=()=>e.toggle_off_canvas,n=()=>Ne().getTemplates(Sr),i=()=>{const s=n(),l=Ne().getPreviewTemplate(Sr).id;return s.find(c=>c.id===l)??s[0]},o=()=>{const s=n(),l=Ne().getCurrentTemplate(Sr).id;return(s.find(c=>c.id===l)??s[0]).id},a=()=>{Ne().refreshPartial(`${Sr}_placements`)};Le=ml(Kg(qg((s,l)=>({templates:n(),previewTemplate:i(),currentTemplateId:o(),chosenElement:null,chosenRow:null,toggleOffCanvas:t(),resetTemplate:()=>{const c=l().previewTemplate.id;if(!c)return;const d=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(u=>u.id===c);d&&(s(u=>{u.previewTemplate=d}),a())},resetElement:c=>{var h;if(((h=l().chosenElement)==null?void 0:h.id)!==c)return;const d=l().previewTemplate.id;if(!d)return;const u=[...window.brandyNichesHeaders,...Object.values(window.brandyHeaderPresets)].find(f=>f.id===d);u&&(s(f=>{var m;(m=f.chosenElement)!=null&&m.settings&&(f.chosenElement.settings=u.elements[c].settings)}),Ne().refreshPartial(`${Sr}_${c}`))},addTemplate:c=>{s(d=>{d.templates.push(c)}),a()},removeTemplate:c=>{const d=n().filter(u=>u.id!==c);s(u=>{u.templates=d,c===u.previewTemplate.id&&(u.previewTemplate=d[0])})},choosePreviewTemplate:c=>{const d=l().templates;l().previewTemplate.id!==c&&(s(h=>{h.previewTemplate=d.find(f=>f.id===c)??d[0]}),a())},setCurrentTemplateId:c=>{const d=l().templates;if(l().currentTemplateId===c)return;const u=d.find(h=>h.id===c)==null?d[0].id:c;s(h=>{h.currentTemplateId=u}),Ne().updateCurrentTemplateId("header",u)},changeElementItemTitle:(c,d)=>{s(u=>{u.previewTemplate.elements[c]!=null&&(u.previewTemplate.elements[c].title=d)})},addElement:c=>{Bf({...c,template:l().previewTemplate}).then(d=>{s(u=>{u.previewTemplate.placements[Qe(c.device)]=d}),a()})},setElements:({row:c,col:d,changedList:u,device:h})=>{const f=l().previewTemplate,m=JSON.parse(JSON.stringify(f.placements[Qe(h)]));c==="toggle"&&(m.toggle=u),c!=="toggle"&&d!=null&&(m[c][d]=u),s(p=>{p.previewTemplate.placements[Qe(h)]=m}),Xd(m,f.placements[Qe(h)])||a()},removeElement:c=>{var d;Vf({...c,template:l().previewTemplate}).then(u=>{s(h=>{var f;h.previewTemplate.placements[Qe(c.device)]=u,c.removeId===((f=h.chosenElement)==null?void 0:f.id)&&(h.chosenElement=null)}),a()}),c.removeId===((d=l().chosenElement)==null?void 0:d.id)&&dn()},selectElement:c=>{s(d=>{d.chosenElement=c.element}),s(d=>{d.chosenRow=null})},deselectSection:()=>{s(c=>{c.chosenElement=null}),s(c=>{c.chosenRow=null})},changeElementSettings:c=>{s(d=>{var u;return c((u=d.chosenElement)==null?void 0:u.settings)})},changeTemplateSettings:c=>{s(d=>{var u;return c((u=d.previewTemplate)==null?void 0:u.settings)})},changeRowSettings:c=>{s(d=>{d.previewTemplate&&d.chosenRow&&d.chosenRow in d.previewTemplate.row_configurations&&c(d.previewTemplate.row_configurations[d.chosenRow])})},selectRow:c=>{s(d=>{c in d.previewTemplate.row_configurations&&(d.chosenRow=c,d.chosenElement=null)})},deselectRow:()=>{s(c=>{c.chosenRow=null})}})))),Le.subscribe(s=>s.chosenElement,(s,l)=>{l==null||s==null||Le.setState(c=>{c.previewTemplate.elements[s==null?void 0:s.id]=s})},{equalityFn:qr}),Le.subscribe(s=>s.previewTemplate,s=>{Le.setState(l=>{const c=l.templates.findIndex(d=>d.id===s.id)||0;l.templates[c]=s})},{equalityFn:qr}),Le.subscribe(s=>s.previewTemplate.id,(s,l)=>{s!==l&&Ne().updatePreviewTemplateId(Sr,s??"default")}),Le.subscribe(s=>s.templates,(s,l)=>{JSON.stringify(s)!==JSON.stringify(l)&&Ne().updateTemplates(Sr,s)},{equalityFn:qr}),on.registerStore("header",Le),on.captureInitial("header",Le.getState),Le.subscribe(s=>s.previewTemplate,()=>{on.capture("header",Le.getState)},{equalityFn:qr})});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&&hr({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&&hr({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;hr({sectionId:a,settings:o,device:t,builder:n})})}const ki={updateResponsiveControl(e,t){const i=(e==="header"?Le: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 Qg(){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 e3(){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=Le(u=>u.templates),t=Le(u=>u.currentTemplateId),n=Le(u=>u.setCurrentTemplateId),i=Le(u=>u.previewTemplate),o=Le(u=>u.choosePreviewTemplate),a=Le(u=>u.removeTemplate),s=sT(()=>i.id,[i.id]),l=u=>{u.preventDefault(),u.stopPropagation(),qn("header","new_header")},c=u=>{s===u?qn("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(hT,{children:P("Global header")}),r.jsx(jt,{options:e.map(u=>({label:u.settings.name,value:u.id})),selected:t,onChange:n}),r.jsx(fT,{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 h;return r.jsx(cT,{isActive:u.id===s,templateId:u.id,onChoose:f=>{f.preventDefault(),f.stopPropagation(),c(u.id)},onRemove:f=>{f.preventDefault(),f.stopPropagation(),d(u.id)},children:(h=u.settings)==null?void 0:h.name},u.id)})}),r.jsx(vT,{children:r.jsx(Hl,{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(e3,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Qg,{})})]})]},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"}),hT=w("p")({marginBottom:"0.25rem",fontWeight:"600"}),fT=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(),qn("footer","new_footer")},c=u=>{s===u?qn("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 h;return r.jsx(ST,{isActive:u.id===s,templateId:u.id,onChoose:f=>{f.preventDefault(),f.stopPropagation(),c(u.id)},onRemove:f=>{f.preventDefault(),f.stopPropagation(),d(u.id)},children:(h=u.settings)==null?void 0:h.name},u.id)})}),r.jsx($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(Hl,{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(e3,{})}),r.jsx("span",{className:"arrow-icon [&_*]:stroke-icon",children:r.jsx(Qg,{})})]})]},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 G2,U2;const TT=((U2=(G2=window.brandyCustomizerData)==null?void 0:G2.general)==null?void 0:U2.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(),qn("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(34 113 177 / var(--tw-text-opacity, 1))"}}),RT=w("span")({fontWeight:"500"}),OT=w("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1qa3lxj-0"})({".group:hover &":{fill:"#2271B1"}}),Y2,X2;const NT=((X2=(Y2=window.brandyCustomizerData)==null?void 0:Y2.woocommerce)==null?void 0:X2.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(),qn("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(34 113 177 / var(--tw-text-opacity, 1))"}}),zT=w("span")({fontWeight:"500"}),FT=w("path").withConfig({displayName:"Panel___StyledPath",componentId:"sc-1n2dri3-0"})({".group:hover &":{fill:"#2271B1"}});const ZT=window.React.useContext;function WT(){const{panelData:e}=ZT(f0);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(f0);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,Uh=window.React.useMemo,f0=qT({});function t3({builder:e,title:t}){const n=QT(()=>{const a=window.wp.customize.panel(e);a&&a.expanded(!1)},[e]),i=Uh(()=>({id:e,title:t||(e==="header"?"Header":"Footer")}),[e,t]),o=Uh(()=>({goBack:n,panelData:i,builder:e}),[n,i,e]);return r.jsx(f0.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 n3({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=Wa(p=>p.startDragging),u=Wa(p=>p.stopDragging),h=p=>{o({row:n,col:i,changedList:p.map(v=>v.id),device:a})},f=p=>v=>{v.preventDefault(),v.stopPropagation(),s({row:n,col:i,removeId:p,device:a})},m=p=>v=>{v.preventDefault(),v.stopPropagation(),setTimeout(()=>{l({element:p})},200),qn(t,p.id,p.cloned_from,"settings")};return r.jsx(Gi.ReactSortable,{list:e,setList:h,group:`${t}-elements-builder`,className:"flex gap-3 items-center w-full h-full element-sortable-container",tag:"div",animation:150,easing:"ease-in-out",ghostClass:"element-builder-sortable-ghost",chosenClass:"element-builder-sortable-chosen",onStart:()=>{d()},onEnd:()=>{u()},children:e.map(p=>{var v;return r.jsxs(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:f(p.id),children:r.jsx(Wd,{})})]},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,wd=window.React.useEffect,iI=window.React.useMemo,r3=window.React.useRef,i3=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]=i3(""),h=x=>()=>{c({row:n,col:i,lastPush:o,addId:x,device:s}),t()},f=x=>{typeof x!="number"&&u(x)},{unusedElements:m}=c0(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=r3(null);return wd(()=>{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(hI,{children:[r.jsxs(fI,{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(Wd,{})})]}),r.jsx(mI,{searchText:d,onSearch:f,ref:v,placeholder:P("Search element")})]}),r.jsx(Lr,{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:h(x.id),$_css5:[me`
                            &:hover svg {
                              *[fill] {
                                ${{fill:"#2271B1"}}
                              }
                              *[stroke] {
                                ${{stroke:"#2271B1"}}
                              }
                            }
                          `],children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:E}}),x.title??((j=window.brandyElements[x.id])==null?void 0:j.title)]},x.id)})})})})]})})});function o3({activatorNode:e=null,builder:t="header",col:n=1,row:i="top",lastPush:o=!0}){const a=r3(null),[s,l]=i3(!1);wd(()=>{s?window.jQuery("brandy-placements").css("zIndex",10):window.jQuery("brandy-placements").css("zIndex",9)},[s]);const c=()=>{var f;const h=document.querySelector("#customize-preview > iframe");window.jQuery((f=h==null?void 0:h.contentWindow)==null?void 0:f.document).off("click",c),l(!1)},d=()=>{var f;const h=document.querySelector("#customize-preview > iframe");window.jQuery((f=h==null?void 0:h.contentWindow)==null?void 0:f.document).on("click",c),l(!0)};return wd(()=>{const h=f=>{e==null&&a.current==null&&c();const m=e??a.current;m!=null&&m.contains(f.target)||c()};return window.jQuery(document).on("click","body",h),()=>{window.jQuery(document).off("click","body",h)}},[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),hI=w("div").withConfig({displayName:"useAddElementPopup___StyledDiv3",componentId:"sc-hvpjws-5"})({borderBottomWidth:"1px",borderColor:"#dddddd4d",padding:"1rem"}),fI=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(Ui).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=Wa(m=>m.isDragging),c=xI(null),{builder:d}=vI(p0),u=wI(()=>!l&&a,[l,a]),{popupApi:h,contextHolder:f}=o3({activatorNode:c.current,builder:d,row:e,col:t,lastPush:i==="left"||i==="middle"});return r.jsxs(_I,{onClick:()=>{h.open()},ref:c,className:Ae(["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(n3,{builder:d,items:n,row:e,col:t}),f]},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,a3=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"},a3,{"&: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 T1({row:e}){const{builder:t}=SI(p0),n=oe(t)(c=>c.chosenRow),i=()=>{qn(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(h=>c.previewTemplate.elements[h]!=null).map(h=>c.previewTemplate.elements[h])),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(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))","& svg *":{fill:"#fff"}},{".group:hover &":{"--tw-border-opacity":"1",borderColor:"rgb(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))"},"& svg *":{transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"0.2s"},".group:hover & svg *":{fill:"#fff"}},a3],children:r.jsx(Ip,{})}),r.jsx("div",{className:"w-full flex",children:a.map((c,d)=>{const u=Math.round(a.length/2);let h="left";return d+1===u&&a.length%2!=0&&(h="middle"),d+1>u&&(h="right"),r.jsx(CI,{row:e,colPosition:d,position:h,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")(h=>h.previewTemplate.placements[Qe(e)].toggle.map(f=>h.previewTemplate.elements[f])),n=oe("header")(h=>h.chosenRow),i=HI(null),{contextHolder:o,popupApi:a}=o3({activatorNode:i.current,row:"toggle",builder:"header",col:1}),[s,l]=MI(!1),{isDragging:c}=Wa(),d=$I(()=>!c&&s,[c,s]),u=()=>{qn("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(34 113 177 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"},".group:hover & svg *":{fill:"#fff"}},n==="toggle"&&me([""," svg{*[fill]{fill:white;}*[stroke]{stroke:white;}}"],{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(34 113 177 / var(--tw-bg-opacity, 1)) !important","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity, 1))"}),me(["svg{*{transition:all ease-in-out 0.2s;}}"])],children:[r.jsx("span",{children:r.jsx(Ip,{})}),r.jsx(AI,{children:"Toggle off-canvas"})]}),r.jsx(Lr,{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:Ae(["toggle-off-elements",d?"show-add-btn":""]),ref:i,children:r.jsx(n3,{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,p0=OI({});function PI({builder:e}){const{current:t}=De(),n=oe(e)(o=>{const s=o.previewTemplate.placements[Qe(t)];return!!zf(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(p0.Provider,{value:i,children:[n&&r.jsx(VI,{children:r.jsx(TI,{})}),r.jsxs(zI,{children:[r.jsx(T1,{row:"top"}),r.jsx(T1,{row:"middle"}),r.jsx(T1,{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,Yh={"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 h=Yh[t.format]||Yh.default;window.clipboardData.setData(h,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),s.addRange(a);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");c=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),i=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=xn(YI);const s3=window.React.useState,JI=window.ReactDOM.createPortal,KI=window.brandyCustomizerData.content_variables??{};function qI(){const[e,t]=s3(!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 Xh;function QI({onClose:e}){const[t,n]=s3(!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(Xh),n(a),Xh=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:"rgba(209, 234, 255, 0.70)","--tw-text-opacity":"1",color:"rgb(34 113 177 / 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;Vo.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=Ti.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)))})})},hL=(e="header")=>{let t=null;Vo.panel(e,function(n){const i=document.querySelector(`#sub-accordion-panel-${e}`);i!=null&&n.expanded.bind(function(o){const a=ki.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=Ti.createRoot(i),t.render(r.jsx(t3,{builder:e,children:void 0}))),o===!1&&setTimeout(()=>{t!=null&&(t.unmount(),t=null)},500)})})},fL=(e,t)=>{let n=null;const i=e;Vo.panel(i,function(o){const a=document.querySelector(`#sub-accordion-panel-${i}`);a!=null&&o.expanded.bind(function(s){s&&n==null&&(n=Ti.createRoot(a),n.render(r.jsx(t3,{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=Ti.createRoot(n),e.render(r.jsx(qI,{})))};document.addEventListener("DOMContentLoaded",function(){oT(),["header","footer"].forEach(t=>{uL(t),hL(t)}),(window.brandyCustomizerData.extra_panels??[]).forEach(t=>{fL(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?qn(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){var t,n,i;if(console.log(e),(t=e.customized)!=null&&t.includes("header_settings")){const o=Le.getState();e.header_settings=JSON.stringify({current_template_id:o.currentTemplateId,templates:o.templates})}if((n=e.customized)!=null&&n.includes("footer_settings")){const o=Ie.getState();e.footer_settings=JSON.stringify({current_template_id:o.currentTemplateId,templates:o.templates})}if((i=e.customized)!=null&&i.includes("button_settings")){const o=window.wp.customize("button_settings")();o&&(e.button_global_styles=JSON.stringify(o))}return e}),window.wp.customize.previewer.bind("ready",function(){var t,n,i,o,a,s,l;const e=ki.getPreviewerWindow();(i=(n=(t=e==null?void 0:e.wp)==null?void 0:t.customize)==null?void 0:n.selectiveRefresh)==null||i.bind("render-partials-response",function(){setTimeout(()=>{e==null||e.dispatchEvent(new Event("resize"))},0),setTimeout(()=>{e==null||e.dispatchEvent(new Event("partials-refreshed"))},0),window.wp.customize("unsaved_header_settings")&&window.wp.customize("unsaved_header_settings")({}),window.wp.customize("unsaved_footer_settings")&&window.wp.customize("unsaved_footer_settings")({})}),window.wp.customize("blogname",function(c){c.bind(function(d){e==null||e.jQuery(".brandy-logo__title:not([data-text])").html(d)})}),window.wp.customize("blogdescription",function(c){c.bind(function(d){e==null||e.jQuery(".brandy-logo__tagline:not([data-text])").html(d)})}),setTimeout(()=>{const c=Js.getState().current;ki.updateResponsiveControl("header",c),ki.updateResponsiveControl("footer",c)},100),window.jQuery((l=(s=(a=(o=window.wp)==null?void 0:o.customize)==null?void 0:a.previewer)==null?void 0:s.targetWindow())==null?void 0:l.document).on("click",".edit-button",function(c){const d=c.target.closest(".editable-part");if(d){c.preventDefault(),c.stopPropagation();const u=d.dataset.sectionId,h=d.dataset.builder;u&&qn(h,u,null,"settings")}}),window.wp.customize.previewedDevice.bind(function(c){Js.setState(()=>({current:c})),ki.updateResponsiveControl("header",c),ki.updateResponsiveControl("footer",c)})})});
