@billgangcom/theme-lib 1.123.1 → 1.123.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{builder-BNQD7fm1.cjs → builder-BOLCAzvt.cjs} +3 -3
  2. package/dist/{builder-components-B6Ct-1cI.js → builder-components-C6ut91u1.js} +148 -148
  3. package/dist/builder-components-DWWPmNmI.cjs +5 -0
  4. package/dist/{builder-Cbzb-Pzj.js → builder-fFmq4_MA.js} +6 -6
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +23 -23
  7. package/dist/{charge-DcKd_es2.cjs → charge-CfJ0VtUT.cjs} +1 -1
  8. package/dist/{charge-Bv8wu-fV.js → charge-Dd7ZVW4n.js} +6 -6
  9. package/dist/{checkout-DkIvY2zs.js → checkout-CRG_AIof.js} +5 -5
  10. package/dist/{checkout-BQwNBpVW.cjs → checkout-rulhfb4v.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-DozNvPOR.cjs → index-BqRvogz6.cjs} +1 -1
  14. package/dist/{index-D1W9Fza6.js → index-CKCaGCwV.js} +5 -5
  15. package/dist/{index-CtZBWOyf.js → index-Ch5oUfGB.js} +5 -5
  16. package/dist/{index-DoklSmf4.cjs → index-Ci9wiySE.cjs} +1 -1
  17. package/dist/{index-BtqOzf1F.cjs → index-CjPIDcQG.cjs} +1 -1
  18. package/dist/{index-BHLQHIsH.js → index-ClGEV98b.js} +2 -2
  19. package/dist/{index-Dyg2ZZW6.cjs → index-DFYhKoko.cjs} +1 -1
  20. package/dist/{index-BnMpELp_.cjs → index-DRGwwUaI.cjs} +1 -1
  21. package/dist/{index-BYdRgPyI.cjs → index-DU12etk7.cjs} +1 -1
  22. package/dist/{index-C-OH-0Jj.js → index-DVWyoqbz.js} +1 -1
  23. package/dist/{index-Bk-mY9E3.js → index-DgFHjyWj.js} +5 -5
  24. package/dist/{index-BIfw5wrd.js → index-Nzke2v3S.js} +5 -5
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-S6e2WcCX.js → order-Dj61ft1k.js} +5 -5
  28. package/dist/{order-B0gf5VEi.cjs → order-zD22nXsz.cjs} +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/{subscription-5ytxlwXp.cjs → subscription-BIjKGaYi.cjs} +1 -1
  31. package/dist/{subscription-HEpvSKgZ.js → subscription-_sP5Hq4m.js} +5 -5
  32. package/dist/{ticket-CbQabuyp.js → ticket-CljttyKl.js} +5 -5
  33. package/dist/{ticket-C5g3kw8c.cjs → ticket-DOW_--eV.cjs} +1 -1
  34. package/dist/{top-up-lubckd9w.js → top-up-DBfbqtUp.js} +5 -5
  35. package/dist/{top-up-CrbYB293.cjs → top-up-DRZbmTCi.cjs} +1 -1
  36. package/dist/{ui-components-BhVIVLV-.js → ui-components-C-rczZ94.js} +5 -5
  37. package/dist/ui-components-D25PvLKh.cjs +1 -0
  38. package/dist/ui.cjs.js +1 -1
  39. package/dist/ui.es.js +1 -1
  40. package/dist/{validation-lwFWEACU.js → validation-B6paMD88.js} +5 -5
  41. package/dist/{validation-Be-6h5-8.cjs → validation-BLYCGS5g.cjs} +1 -1
  42. package/package.json +1 -1
  43. package/dist/builder-components-B8gWw88v.cjs +0 -5
  44. package/dist/ui-components-jkqz3-Kc.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const we=require("react"),$a=require("react-dom"),k=require("react/jsx-runtime"),je=require("./ui-components-jkqz3-Kc.cjs"),Ft=require("./builder-components-B8gWw88v.cjs");require("./charge-DcKd_es2.cjs");require("./ticket-C5g3kw8c.cjs");function Ao(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Ao(we),za=Ao($a);/**
1
+ "use strict";const we=require("react"),$a=require("react-dom"),k=require("react/jsx-runtime"),je=require("./ui-components-D25PvLKh.cjs"),Ft=require("./builder-components-DWWPmNmI.cjs");require("./charge-CfJ0VtUT.cjs");require("./ticket-DOW_--eV.cjs");function Ao(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Ao(we),za=Ao($a);/**
2
2
  * @remix-run/router v1.23.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -33,11 +33,11 @@
33
33
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[bo]=this[bo]={accessors:{}}).accessors,o=this.prototype;function a(s){const i=Ht(s);r[i]||(oc(o,s),r[i]=!0)}return C.isArray(t)?t.forEach(a):a(t),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});C.freezeMethods(De);function tr(e,t){const n=this||tn,r=t||n,o=De.from(r.headers);let a=r.data;return C.forEach(e,function(i){a=i.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function pa(e){return!!(e&&e.__CANCEL__)}function Ot(e,t,n){$.call(this,e??"canceled",$.ERR_CANCELED,t,n),this.name="CanceledError"}C.inherits(Ot,$,{__CANCEL__:!0});function ma(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ac(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sc(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];s||(s=c),n[o]=l,r[o]=c;let d=a,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-s<t)return;const y=u&&c-u;return y?Math.round(h*1e3/y):void 0}}function ic(e,t){let n=0,r=1e3/t,o,a;const s=(c,u=Date.now())=>{n=u,o=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,a||(a=setTimeout(()=>{a=null,s(o)},r-d)))},()=>o&&s(o)]}const Pn=(e,t,n=3)=>{let r=0;const o=sc(50,250);return ic(a=>{const s=a.loaded,i=a.lengthComputable?a.total:void 0,l=s-r,c=o(l),u=s<=i;r=s;const d={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:a,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(d)},n)},So=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Co=e=>(...t)=>C.asap(()=>e(...t)),lc=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,cc=Ne.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];C.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),C.isString(r)&&s.push("path="+r),C.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function uc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dc(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ga(e,t,n){let r=!uc(t);return e&&r||n==!1?dc(e,t):t}const Eo=e=>e instanceof De?{...e}:e;function bt(e,t){t=t||{};const n={};function r(c,u,d,h){return C.isPlainObject(c)&&C.isPlainObject(u)?C.merge.call({caseless:h},c,u):C.isPlainObject(u)?C.merge({},u):C.isArray(u)?u.slice():u}function o(c,u,d,h){if(C.isUndefined(u)){if(!C.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function a(c,u){if(!C.isUndefined(u))return r(void 0,u)}function s(c,u){if(C.isUndefined(u)){if(!C.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function i(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(c,u,d)=>o(Eo(c),Eo(u),d,!0)};return C.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,h=d(e[u],t[u],u);C.isUndefined(h)&&d!==i||(n[u]=h)}),n}const va=e=>{const t=bt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:i}=t;t.headers=s=De.from(s),t.url=da(ga(t.baseURL,t.url),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(C.isFormData(n)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ne.hasStandardBrowserEnv&&(r&&C.isFunction(r)&&(r=r(t)),r||r!==!1&&lc(t.url))){const c=o&&a&&cc.read(a);c&&s.set(o,c)}return t},fc=typeof XMLHttpRequest<"u",hc=fc&&function(e){return new Promise(function(n,r){const o=va(e);let a=o.data;const s=De.from(o.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=o,u,d,h,y,m;function p(){y&&y(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function R(){if(!v)return;const L=De.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),T={data:!i||i==="text"||i==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:L,config:e,request:v};ma(function(w){n(w),p()},function(w){r(w),p()},T),v=null}"onloadend"in v?v.onloadend=R:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(R)},v.onabort=function(){v&&(r(new $("Request aborted",$.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||fa;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),r(new $(P,T.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,v)),v=null},a===void 0&&s.setContentType(null),"setRequestHeader"in v&&C.forEach(s.toJSON(),function(P,T){v.setRequestHeader(T,P)}),C.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),i&&i!=="json"&&(v.responseType=o.responseType),c&&([h,m]=Pn(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,y]=Pn(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(u=L=>{v&&(r(!L||L.type?new Ot(null,e,v):L),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=ac(o.url);if(b&&Ne.protocols.indexOf(b)===-1){r(new $("Unsupported protocol "+b+":",$.ERR_BAD_REQUEST,e));return}v.send(a||null)})},pc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(c){if(!o){o=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof $?u:new Ot(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,a(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>C.asap(i),l}},mc=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},gc=async function*(e,t){for await(const n of vc(e))yield*mc(n,t)},vc=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},xo=(e,t,n,r)=>{const o=gc(e,t);let a=0,s,i=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){i(),l.close();return}let d=u.byteLength;if(n){let h=a+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw i(c),c}},cancel(l){return i(l),o.return()}},{highWaterMark:2})},$n=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ya=$n&&typeof ReadableStream=="function",yc=$n&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wc=ya&&wa(()=>{let e=!1;const t=new Request(Ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ro=64*1024,mr=ya&&wa(()=>C.isReadableStream(new Response("").body)),_n={stream:mr&&(e=>e.body)};$n&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_n[t]&&(_n[t]=C.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new $(`Response type '${t}' is not supported`,$.ERR_NOT_SUPPORT,r)})})})(new Response);const bc=async e=>{if(e==null)return 0;if(C.isBlob(e))return e.size;if(C.isSpecCompliantForm(e))return(await new Request(Ne.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(C.isArrayBufferView(e)||C.isArrayBuffer(e))return e.byteLength;if(C.isURLSearchParams(e)&&(e=e+""),C.isString(e))return(await yc(e)).byteLength},Sc=async(e,t)=>{const n=C.toFiniteNumber(e.getContentLength());return n??bc(t)},Cc=$n&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=va(e);c=c?(c+"").toLowerCase():"text";let y=pc([o,a&&a.toAbortSignal()],s),m;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(l&&wc&&n!=="get"&&n!=="head"&&(v=await Sc(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),H;if(C.isFormData(r)&&(H=T.headers.get("content-type"))&&u.setContentType(H),T.body){const[w,_]=So(v,Pn(Co(l)));r=xo(T.body,Ro,w,_)}}C.isString(d)||(d=d?"include":"omit");const R="credentials"in Request.prototype;m=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:R?d:void 0});let b=await fetch(m);const L=mr&&(c==="stream"||c==="response");if(mr&&(i||L&&p)){const T={};["status","statusText","headers"].forEach(G=>{T[G]=b[G]});const H=C.toFiniteNumber(b.headers.get("content-length")),[w,_]=i&&So(H,Pn(Co(i),!0))||[];b=new Response(xo(b.body,Ro,w,()=>{_&&_(),p&&p()}),T)}c=c||"text";let P=await _n[C.findKey(_n,c)||"text"](b,e);return!L&&p&&p(),await new Promise((T,H)=>{ma(T,H,{data:P,headers:De.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(R){throw p&&p(),R&&R.name==="TypeError"&&/fetch/i.test(R.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,e,m),{cause:R.cause||R}):$.from(R,R&&R.code,e,m)}}),gr={http:Il,xhr:hc,fetch:Cc};C.forEach(gr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lo=e=>`- ${e}`,Ec=e=>C.isFunction(e)||e===null||e===!1,ba={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){n=e[a];let s;if(r=n,!Ec(n)&&(r=gr[(s=String(n)).toLowerCase()],r===void 0))throw new $(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+a]=r}if(!r){const a=Object.entries(o).map(([i,l])=>`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
34
34
  `+a.map(Lo).join(`
35
35
  `):" "+Lo(a[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:gr};function nr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ot(null,e)}function ko(e){return nr(e),e.headers=De.from(e.headers),e.data=tr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ba.getAdapter(e.adapter||tn.adapter)(e).then(function(r){return nr(e),r.data=tr.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return pa(r)||(nr(e),r&&r.response&&(r.response.data=tr.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const Sa="1.8.1",zn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const No={};zn.transitional=function(t,n,r){function o(a,s){return"[Axios v"+Sa+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,i)=>{if(t===!1)throw new $(o(s," has been removed"+(n?" in "+n:"")),$.ERR_DEPRECATED);return n&&!No[s]&&(No[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,i):!0}};zn.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xc(e,t,n){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const i=e[a],l=i===void 0||s(i,a,e);if(l!==!0)throw new $("option "+a+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $("Unknown option "+a,$.ERR_BAD_OPTION)}}const xn={assertOptions:xc,validators:zn},Xe=xn.validators;let wt=class{constructor(t){this.defaults=t,this.interceptors={request:new wo,response:new wo}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
36
- `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&xn.assertOptions(r,{silentJSONParsing:Xe.transitional(Xe.boolean),forcedJSONParsing:Xe.transitional(Xe.boolean),clarifyTimeoutError:Xe.transitional(Xe.boolean)},!1),o!=null&&(C.isFunction(o)?n.paramsSerializer={serialize:o}:xn.assertOptions(o,{encode:Xe.function,serialize:Xe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xn.assertOptions(n,{baseUrl:Xe.spelling("baseURL"),withXsrfToken:Xe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&C.merge(a.common,a[n.method]);a&&C.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=De.concat(s,a);const i=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const m=[ko.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);d<h;)u=u.then(m[d++],m[d++]);return u}h=i.length;let y=n;for(d=0;d<h;){const m=i[d++],p=i[d++];try{y=m(y)}catch(v){p.call(this,v);break}}try{u=ko.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=bt(this.defaults,t);const n=ga(t.baseURL,t.url,t.allowAbsoluteUrls);return da(n,t.params,t.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(t){wt.prototype[t]=function(n,r){return this.request(bt(r||{},{method:t,url:n,data:(r||{}).data}))}});C.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,i){return this.request(bt(i||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}wt.prototype[t]=n(),wt.prototype[t+"Form"]=n(!0)});let Rc=class Ca{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(i=>{r.subscribe(i),a=i}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,i){r.reason||(r.reason=new Ot(a,s,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ca(function(o){t=o}),cancel:t}}};function Lc(e){return function(n){return e.apply(null,n)}}function kc(e){return C.isObject(e)&&e.isAxiosError===!0}const vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vr).forEach(([e,t])=>{vr[t]=e});function Ea(e){const t=new wt(e),n=ea(wt.prototype.request,t);return C.extend(n,wt.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ea(bt(e,o))},n}const ce=Ea(tn);ce.Axios=wt;ce.CanceledError=Ot;ce.CancelToken=Rc;ce.isCancel=pa;ce.VERSION=Sa;ce.toFormData=Vn;ce.AxiosError=$;ce.Cancel=ce.CanceledError;ce.all=function(t){return Promise.all(t)};ce.spread=Lc;ce.isAxiosError=kc;ce.mergeConfig=bt;ce.AxiosHeaders=De;ce.formToJSON=e=>ha(C.isHTMLForm(e)?new FormData(e):e);ce.getAdapter=ba.getAdapter;ce.HttpStatusCode=vr;ce.default=ce;const{Axios:a0,AxiosError:Nc,CanceledError:s0,isCancel:i0,CancelToken:l0,VERSION:c0,all:u0,Cancel:d0,isAxiosError:f0,spread:h0,toFormData:p0,AxiosHeaders:m0,HttpStatusCode:g0,formToJSON:v0,getAdapter:y0,mergeConfig:w0}=ce,gn="https://localhost:5043",at=async e=>{var h,y;const{url:t,withToken:n,method:r,body:o,contentType:a,typeToken:s="seller"}=e,i=n?localStorage.getItem("sellerAccessToken"):null,l=n?localStorage.getItem("token"):null,c=s==="seller"?i:l,u=localStorage.getItem("dv"),d={};a&&!(o instanceof FormData)?d["Content-Type"]=a:o instanceof FormData||(d["Content-Type"]="application/json"),n&&c&&(d.Authorization=`Bearer ${c}`);try{let m=null;switch(r){case"get":m=await ce.get(u?gn:t,{headers:d});break;case"post":m=await ce.post(u?gn:t,o,{headers:d});break;case"put":m=await ce.put(u?gn:t,o,{headers:d});break;case"delete":m=await ce.delete(u?gn:t,{headers:d});break}return{data:m==null?void 0:m.data,status:m==null?void 0:m.status,headers:m==null?void 0:m.headers}}catch(m){const p=m,v=(h=p.response)==null?void 0:h.data;let R="Something Went Wrong";v&&(R=v.errors[0]);const b=(y=p.response)==null?void 0:y.status;if(b===401)try{const P=await Promise.resolve().then(()=>require("./charge-DcKd_es2.cjs")).then(T=>T.auth);P&&P.logoutCustomer?await P.logoutCustomer():localStorage.removeItem("token"),window.location.reload()}catch(P){console.error("Failed to import logoutCustomer:",P),localStorage.removeItem("token"),window.location.reload()}const L=new Nc(R,(b==null?void 0:b.toString())||"400");throw L.response=p.response,L}},Tc="https://g-api.billgang.com",Pc="https://www.googleapis.com/webfonts/v1/webfonts",_c="https://stores-api.billgang.com",Oc="https://sl-api.billgang.com",Ac="https://customers-api.billgang.com",Mc="https://cashapp-api.billgang.com",Dc={api:Tc,googleFonts:Pc,storeApi:_c,slApi:Oc,customersApi:Ac,cashappApi:Mc},Fc=(e,t="300")=>e==="not found"?"empty":`https://imagedelivery.net/${e}/w=${t}`,Ic=e=>{const t=new Intl.NumberFormat("en-US",{style:"currency",currency:e.currency||"USD"});let n=e.amount;return e.quantity&&(n=n*e.quantity),t.format(n)},Bc=(e,t)=>{if(e===0)throw new Error("Old value cannot be zero, as it would result in division by zero.");return(t-e)/Math.abs(e)*100},jc=e=>{if(Math.abs(e-365)<=15){const a=Math.round(e/365);return a===1?"year":`${a} years`}else if(Math.abs(e-30)<=5){const a=Math.round(e/30);return a===1?"month":`${a} months`}else return`${e} days`},Hc=e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),Uc=e=>{const t=new Date(e),n={day:"2-digit",month:"2-digit",year:"numeric"},r={hour:"2-digit",minute:"2-digit"},o=t.toLocaleString("en-US",n),a=t.toLocaleString("en-US",r);return[o,a]},yr=e=>{const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return t}},To=(e,t)=>{(t===null||typeof t!="object")&&window.localStorage.setItem(e,String(t));const n=JSON.stringify(t);window.localStorage.setItem(e,n)},rr="f10120ab-7ebb-4785-b240-7428edaa3c4e",Ut="https://t-api.billgang.com",Vt="https://internal-t-api.antistock.io",qt="I",Vc=10*1e3,$c=15*1e3,zc=15*60*1e3,xa=()=>{var t;const e=yr(qt);return((t=e==null?void 0:e.s)==null?void 0:t.i)||null},Jc=(e,t="production",n)=>{const{pathname:r}=qe(),o=we.useRef(),a=we.useRef(document.visibilityState);we.useEffect(()=>{if(!e)return;const s=()=>Date.now(),i=async()=>(await at({url:`${n?Vt:Ut}/${e}/t/p`,method:"post",withToken:!1})).data.data.id,l=async m=>(await at({url:`${n?Vt:Ut}/${e}/t/p/${t==="development"?rr:m}/s`,method:"post",withToken:!1})).data.data.id,c=async(m,p,v,R)=>{const b=t==="development"?rr:m;try{return(await at({url:`${n?Vt:Ut}/${e}/t/p/${b}/s/${p}/e`,method:"post",withToken:!1,body:{url:v,oldEventId:R},contentType:"application/json"})).data.data.id}catch{return p=await l(m),(await at({url:`${n?Vt:Ut}/${e}/t/p/${b}/s/${p}/e`,method:"post",withToken:!1,body:{url:v},contentType:"application/json"})).data.data.id}},u=async(m,p,v)=>{await at({url:`${n?Vt:Ut}/${e}/t/p/${t==="development"?rr:m}/s/${p}/e/${v}/h`,method:"post",withToken:!1});const b=yr(qt);b&&(b.s.u=s().toString(),b.lu=s().toString(),To(qt,b))},d=(m,p,v)=>{o.current&&clearInterval(o.current),o.current=setInterval(async()=>{if(document.visibilityState==="visible")try{await u(m,p,v)}catch{await h()}},Vc)},h=async()=>{var R,b,L,P;const m=`${window.location.hostname}${r}`,p=yr(qt),v=s();try{let T=p==null?void 0:p.p;T||(T=await i());let H=(R=p==null?void 0:p.s)==null?void 0:R.i;const w=Number(((b=p==null?void 0:p.s)==null?void 0:b.u)||((L=p==null?void 0:p.s)==null?void 0:L.c)),_=!H||v-w>zc;(!H||_)&&(H=await l(T));const G=Number((p==null?void 0:p.lu)||0),B=v-G>$c,ae=await c(T,H,m,p!=null&&p.l&&!B?p.l:void 0),ee={p:T,s:{i:H,c:((P=p==null?void 0:p.s)==null?void 0:P.c)??v.toString(),u:v.toString()},l:ae,lu:v.toString()};To(qt,ee),d(T,H,ae)}catch(T){console.error("[TrackingAnalytics] error",T)}};h();const y=()=>{document.visibilityState==="visible"&&a.current!=="visible"&&h(),a.current=document.visibilityState};return document.addEventListener("visibilitychange",y),()=>{o.current&&clearInterval(o.current),document.removeEventListener("visibilitychange",y)}},[r,e,t])},qc={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:xa()};let Nt=null;const Po=localStorage.getItem("token");if(Po)try{Nt=Qo(JSON.parse(Po)||"")}catch{Nt=null}const Wc=ie(e=>({cart:{...qc,customerEmail:Nt?Nt.email:""},products:[],coupon:null,pending:!1,applyCouponPending:!1,customerEmail:Nt?Nt.email:"",recaptcha:"",priceAdjustment:null,serviceFee:null,replacementConfig:null,setCart:t=>e(n=>({cart:typeof t=="function"?t(n.cart):t})),setProducts:t=>e(n=>({products:typeof t=="function"?t(n.products):t})),setRecaptcha:t=>e({recaptcha:t}),setCoupon:t=>e({coupon:t}),setPending:t=>e({pending:t}),setApplyCouponPending:t=>e({applyCouponPending:t}),setCustomerEmail:t=>e({customerEmail:t}),setPriceAdjustment:t=>e({priceAdjustment:t}),setServiceFee:t=>e({serviceFee:t}),setReplacementConfig:t=>e({replacementConfig:t}),setUsePriorityReplacement:t=>e(n=>({cart:{...n.cart,usePriorityReplacement:t}}))})),Zc=ie(e=>({page:1,setPage:t=>e(()=>({page:t})),resetPage:()=>e(()=>({page:1}))})),Gc=ie(e=>({discordInfo:null,setDiscordInfo:t=>e(()=>({discordInfo:t}))})),Kc=ie(e=>({subscription:null,setSubscription:t=>e({subscription:t})})),nn=ie(e=>({apiUrls:Dc,setApiUrls:t=>e(()=>({apiUrls:t}))})),Ra=ie(e=>({header:null,footer:null,announcement:null,setHeader:t=>e(()=>({header:t})),setFooter:t=>e(()=>({footer:t})),setAnnouncement:t=>e(()=>({announcement:t})),blocks:null,setBlocks:t=>e(()=>({blocks:t})),activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t})),sourceBlocks:{},setSourceBlocks:t=>e(()=>({sourceBlocks:t})),currentInstance:null,setCurrentInstance:t=>e(()=>({currentInstance:t})),settings:null,setSettings:t=>e(()=>({settings:t})),settingsInstance:null,setSettingsInstance:t=>e(()=>({settingsInstance:t}))})),Mr=ie(e=>({general:null,setGeneral:t=>e(()=>({general:t})),isAntistock:!1,setIsAntistock:t=>e(()=>({isAntistock:t}))})),wr=ie(e=>({settings:null,setSettings:t=>{e(()=>({settings:t}))},isLoadingSettings:!0,setIsLoadingSettings:t=>e(()=>({isLoadingSettings:t}))})),On=ie((e,t)=>({activeBlock:null,setActiveBlock:n=>e(()=>({activeBlock:n})),activeFont:null,setActiveFont:n=>e(()=>({activeFont:n})),setThemeSettings:n=>e(()=>({themeSettings:n})),activeColorCategory:null,setActiveColorCategory:n=>e(()=>({activeColorCategory:n})),themeSettings:{colors:{text:{primary:"#252525",secondary:"#757575",tertiary:"#C2C2C2",inverted:"#FFFFFF",action:"#FF3F19",actionHover:"#DA2400",disabled:"#C2C2C2",warning:"#C1972A",error:"#C12A2A",success:"#338B13",information:"#3683F7",link:"#3683F7"},icon:{primary:"#252525",secondary:"#555555",tertiary:"#C2C2C2",inverted:"#FFFFFF",action:"#FF3F19",actionHover:"#DA2400",disabled:"#C2C2C2",warning:"#C1972A",error:"#C12A2A",success:"#338B13",information:"#3683F7",link:"#3683F7"},border:{primary:"#C2C2C2",secondary:"#E6E6E6",action:"#FF3F19",actionHover:"#DA2400",disabled:"#E6E6E6",warning:"#C1972A",error:"#C12A2A",success:"#338B13",information:"#3683F7",focus:"#FF3F19"},surface:{primary:"#FFFFFF",secondary:"#F8F8F8",action1:"#FF3F19",action1Hover:"#DA2400",action2:"#FFFFFF",action2Hover:"#F8F8F8",disabled:"#C2C2C2",warning:"#FAF4E6",error:"#FAE6E6",success:"#E5FADD",information:"#E9F1FE",modal:"rgba(1, 1, 4, 0.4)"}},fonts:{mobile:{fontSizePercentage:30},tablet:{fontSizePercentage:50},desktop:{heading:{h1:{font:"Archivo",weight:"700",size:48,boldWeight:"900",case:"normal"},h2:{font:"Archivo",weight:"700",size:32,boldWeight:"800",case:"normal"},h3:{font:"Archivo",weight:"600",size:24,boldWeight:"700",case:"normal"},h4:{font:"Archivo",weight:"500",size:20,boldWeight:"700",case:"normal"},h5:{font:"Archivo",weight:"400",size:16,boldWeight:"700",case:"normal"},h6:{font:"Archivo",weight:"400",size:14,boldWeight:"700",case:"uppercase"},h7:{font:"Archivo",weight:"400",size:14,boldWeight:"700",case:"normal"}},body:{lg:{font:"Archivo",size:16,weight:"400",boldWeight:"700",case:"normal"},md:{font:"Archivo",size:14,weight:"400",boldWeight:"700",case:"normal"},sm:{font:"Archivo",size:12,weight:"400",boldWeight:"700",case:"normal"}}}},borders:{radius:"var(--radius-lg)",thickness:"var(--border-none)"},buttons:{primary:{size:26,alignment:"left",radius:32,height:40,background:"#ff3f19",hover:!0,font:"Archivo",boxShadow:{left:0,top:0,blur:0,spread:0,color:"#000000"},color:"#ffffff",colorHover:"#ffffff",backgroundHover:"#ff3f19"},secondary:{size:26,alignment:"left",radius:10,height:20,background:"#c2c2c2",hover:!1,font:"Archivo",boxShadow:{left:0,top:4,blur:10,spread:0,color:"#000000"},color:"#757575",colorHover:"#757575",backgroundHover:"#c2c2c2"},tertiary:{size:12,alignment:"left",radius:30,height:30,background:"#c2c2c2",hover:!0,font:"Archivo",boxShadow:{left:0,top:4,blur:10,spread:0,color:"#000000"},color:"#757575",colorHover:"#757575",backgroundHover:"#c2c2c2"}},inputs:{field:{color:"#f3f3f3",active:!0,opacity:40},label:{size:14,color:"#555555",height:40,alignment:"left"},border:{color:"#f3f3f3",style:"solid",active:!0,radius:14,thickness:0},general:{size:14,color:"#252525",height:40},placeholder:{color:"#C2C2C2"}}},updateColor:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:s});const i={...a.themeSettings.colors,[n]:{...a.themeSettings.colors[n],[r]:o}};return{themeSettings:{...a.themeSettings,colors:i}}}),updateFont:(n,r,o,a,s)=>e(i=>{const l=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:l});const c={...i.themeSettings.fonts,[n]:{...i.themeSettings.fonts[n],[r]:{...i.themeSettings.fonts[n][r],[o]:{...i.themeSettings.fonts[n][r][o],[a]:s}}}};return{themeSettings:{...i.themeSettings,fonts:c}}}),updateFontSizePercentage:(n,r)=>e(o=>{const a=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:a});const s={...o.themeSettings.fonts,[n]:{...o.themeSettings.fonts[n],fontSizePercentage:r}};return{themeSettings:{...o.themeSettings,fonts:s}}}),updateBorder:(n,r)=>e(o=>{const a=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:a});const s={...o.themeSettings.borders,[n]:r};return{themeSettings:{...o.themeSettings,borders:s}}}),updateButton:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:s});const i={...a.themeSettings.buttons[n],[r]:o},l={...a.themeSettings.buttons,[n]:i};return{themeSettings:{...a.themeSettings,buttons:l}}}),updateInput:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().themeSettings));return _e.getState().addHistory({themeSettings:s}),{themeSettings:{...a.themeSettings,inputs:{...a.themeSettings.inputs,[n]:{...a.themeSettings.inputs[n],[o]:r}}}}}),isLoadingThemeSettings:!1,setIsLoadingThemeSettings:n=>e(()=>({isLoadingThemeSettings:n}))})),Fe=ie(e=>({notifications:[],setNotifications:t=>e(()=>({notifications:t}))})),Yc=ie(e=>({isOpen:!0,setIsOpen:t=>e(()=>({isOpen:t}))}));var ke=[];for(var or=0;or<256;++or)ke.push((or+256).toString(16).slice(1));function Xc(e,t=0){return(ke[e[t+0]]+ke[e[t+1]]+ke[e[t+2]]+ke[e[t+3]]+"-"+ke[e[t+4]]+ke[e[t+5]]+"-"+ke[e[t+6]]+ke[e[t+7]]+"-"+ke[e[t+8]]+ke[e[t+9]]+"-"+ke[e[t+10]]+ke[e[t+11]]+ke[e[t+12]]+ke[e[t+13]]+ke[e[t+14]]+ke[e[t+15]]).toLowerCase()}var vn,Qc=new Uint8Array(16);function eu(){if(!vn&&(vn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vn(Qc)}var tu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const _o={randomUUID:tu};function ot(e,t,n){if(_o.randomUUID&&!e)return _o.randomUUID();e=e||{};var r=e.random||(e.rng||eu)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Xc(r)}function nu(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const s=l=>l===null?null:JSON.parse(l,void 0),i=(a=n.getItem(o))!=null?a:null;return i instanceof Promise?i.then(s):s(i)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const br=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return br(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return br(r)(n)}}}},ru=(e,t)=>(n,r,o)=>{let a={storage:nu(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},s=!1;const i=new Set,l=new Set;let c=a.storage;if(!c)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const u=()=>{const p=a.partialize({...r()});return c.setItem(a.name,{state:p,version:a.version})},d=o.setState;o.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},r,o);o.getInitialState=()=>h;let y;const m=()=>{var p,v;if(!c)return;s=!1,i.forEach(b=>{var L;return b((L=r())!=null?L:h)});const R=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(p=r())!=null?p:h))||void 0;return br(c.getItem.bind(c))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return[!0,a.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var L;const[P,T]=b;if(y=a.merge(T,(L=r())!=null?L:h),n(y,!0),P)return u()}).then(()=>{R==null||R(y,void 0),y=r(),s=!0,l.forEach(b=>b(y))}).catch(b=>{R==null||R(void 0,b)})};return o.persist={setOptions:p=>{a={...a,...p},p.storage&&(c=p.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:p=>(i.add(p),()=>{i.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},a.skipHydration||m(),y||h},Jn=ru,Yt=ie(Jn((e,t)=>({pages:null,currentPage:"",setPages:n=>e(()=>({pages:n})),pageContext:{listings:null,products:null,reviews:null,categories:null,faqs:null,general:null,fullPosts:null,posts:null,preserveContent:!1,vouches:null},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:n=>e(()=>({editedPage:n})),setCurrentPage:n=>e(()=>({currentPage:n})),setPageContext:n=>e(()=>({pageContext:n})),setIsOpenModal:n=>e(()=>({isOpenModal:n})),setIsOpenSelectModal:n=>e(()=>({isOpenSelectModal:n})),setIsEdit:n=>e(()=>({isEdit:n})),createPage:n=>{const r=t().pages,o=ot();if(r)r[o]=n,e({pages:r});else{const a=t().setPages;a({});const s=t().pages;s[o]=n,e({pages:s})}},updatePage:(n,r)=>{const o=t().pages;o&&(o[n]={...r},e({pages:o}))},deletePage:n=>{const r=t().pages;r&&(delete r[n],e({pages:r}))}}),{name:"pages-storage",partialize:e=>{const{pages:t,pageContext:n}=e;return{pages:t,pageContext:n}}})),ou=ie(e=>({isOpenModal:!1,setIsOpenModal:t=>e(()=>({isOpenModal:t}))})),An=ie(Jn((e,t)=>({header:null,blocks:{},announcement:null,footer:null,currentBlock:null,positionBlock:null,setBlocks:n=>{e({blocks:n})},setHeader:(n,r=!0)=>{const o=JSON.parse(JSON.stringify(t().header)),a=JSON.parse(JSON.stringify(n));JSON.stringify(o)!==JSON.stringify(a)&&r&&_e.getState().addHistory({header:o}),e({header:a})},setFooter:(n,r=!0)=>{const o=JSON.parse(JSON.stringify(t().footer)),a=JSON.parse(JSON.stringify(n));JSON.stringify(o)!==JSON.stringify(a)&&r&&_e.getState().addHistory({footer:o}),e({footer:a})},setAnnouncement:(n,r=!0)=>{const o=JSON.parse(JSON.stringify(t().announcement)),a=JSON.parse(JSON.stringify(n));JSON.stringify(o)!==JSON.stringify(a)&&r&&_e.getState().addHistory({announcement:o}),e({announcement:a})},createPage:n=>{const r=t().blocks;r[n]={data:{},order:[]},e({blocks:r})},deletePage:n=>{const r=t().blocks;delete r[n],e({blocks:r})},updatePage:(n,r)=>{const o=t().blocks;if(o[r])return;const a=o[n];delete o[n],o[r]=a,e({blocks:o})},setCurrentBlock:n=>{e({currentBlock:n})},setPositionBlock:(n,r=!1)=>{const{blocks:o}=t(),{currentPage:a,pages:s}=Yt.getState();if(!a||!s||!s[a]||!o[s[a].path]){console.error("Cannot set position: invalid page or block data");return}const i=s[a].path,l=o[i],c=n?l.order.indexOf(n):-1;if(c===-1&&n){console.error(`Block with ID "${n}" not found in page "${i}"`);return}const u=c!==-1?c+(r?1:0):l.order.length;e({positionBlock:u})},addBlock:(n,r)=>{const o=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:o});const a={...t().blocks},s=a[n]||{data:{},order:[]},i=t().positionBlock,l=ot(),c={name:r.name,value:r.value};return s.data[l]=c,i===null||i>=s.order.length?s.order.push(l):s.order.splice(i,0,l),e({blocks:{...a,[n]:{data:s.data,order:s.order}},currentBlock:l,positionBlock:null}),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully added",status:"success"}]),l},editBlock:(n,r,o)=>{const a=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:a});const s=t().blocks,i=s[n]||{};i.data[r]={name:o.name,value:{...o.value}},e({blocks:{...s,[n]:i}})},removeBlock:(n,r)=>{const o=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:o});const a=JSON.parse(JSON.stringify(t().blocks)),s=a[n];if(!s){console.error(`Page at path "${n}" does not exist.`);return}delete s.data[r],s.order=s.order.filter(i=>i!==r),e({blocks:{...a,[n]:s}}),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully deleted",status:"success"}])},moveBlock:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().blocks));if(_e.getState().addHistory({layers:s}),!a.blocks[n])return console.error(`Path ${n} does not exist in blocks`),a;const i={...a.blocks[n]},l=[...i.order];if(r<0||o<0||r>=l.length||o>=l.length)return console.error(`Invalid indices: fromIndex=${r}, toIndex=${o}`),a;const[c]=l.splice(r,1);return l.splice(o,0,c),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully moved",status:"success"}]),{blocks:{...a.blocks,[n]:{...i,order:l}}}}),duplicateBlock:(n,r)=>{const o=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:o});const a=JSON.parse(JSON.stringify(t().blocks)),s=a[n];if(!s||!s.data[r]){console.error(`Block with ID "${r}" not found in page "${n}"`);return}const i=ot(),l=s.data[r],c={name:l.name,value:JSON.parse(JSON.stringify({...l.value}))};s.data[i]={...c};const u=s.order.indexOf(r);if(u===-1){console.error(`Block ID "${r}" not found in order array`);return}s.order.splice(u+1,0,i),e({blocks:{...a,[n]:s},currentBlock:i}),La.getState().setActiveBlock({id:i,neededScroll:!0}),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully duplicated",status:"success"}])},isLoadingLayers:!1,setIsLoadingLayers:n=>e(()=>({isLoadingLayers:n}))}),{name:"layers-storage",partialize:e=>{const{blocks:t,header:n,footer:r,announcement:o}=e;return{blocks:t,header:n,footer:r,announcement:o}}})),_e=ie((e,t)=>({past:[],future:[],addHistory:n=>{e(r=>{const o=r.past[r.past.length-1];return o&&JSON.stringify(o)===JSON.stringify(n)?r:{past:[...r.past,n],future:[]}})},undo:()=>{const{past:n,future:r}=t();if(n.length===0)return;const o=n[n.length-1],a=n.slice(0,-1),{blocks:s,header:i,footer:l,announcement:c,setBlocks:u,setHeader:d,setFooter:h,setAnnouncement:y}=An.getState(),{themeSettings:m,setThemeSettings:p}=On.getState(),v={themeSettings:JSON.parse(JSON.stringify(m)),layers:JSON.parse(JSON.stringify(s)),header:JSON.parse(JSON.stringify(i)),footer:JSON.parse(JSON.stringify(l)),announcement:JSON.parse(JSON.stringify(c))};e({past:a,future:[v,...r]}),o.themeSettings&&p(o.themeSettings),o.layers&&u(o.layers),o.header&&d(o.header,!1),o.footer&&h(o.footer,!1),o.announcement&&y(o.announcement,!1)},redo:()=>{const{past:n,future:r}=t();if(r.length===0)return;const{blocks:o,header:a,footer:s,announcement:i,setBlocks:l,setHeader:c,setFooter:u,setAnnouncement:d}=An.getState(),{themeSettings:h,setThemeSettings:y}=On.getState(),m=r[0],p=r.slice(1),v={themeSettings:JSON.parse(JSON.stringify(h)),layers:JSON.parse(JSON.stringify(o)),header:JSON.parse(JSON.stringify(a)),footer:JSON.parse(JSON.stringify(s)),announcement:JSON.parse(JSON.stringify(i))};e({past:[...n,v],future:p}),m.themeSettings&&y(m.themeSettings),m.layers&&l(m.layers),m.header&&c(m.header,!1),m.footer&&u(m.footer,!1),m.announcement&&d(m.announcement,!1)}})),La=ie(Jn(e=>({onPreview:!0,setOnPreview:t=>e(()=>({onPreview:t})),activeBlock:{id:null,neededScroll:!1},setActiveBlock:t=>e(()=>({activeBlock:t})),zoomLevel:1,setZoomLevel:t=>e(()=>({zoomLevel:t}))}),{name:"preview-storage",partialize:e=>{const{onPreview:t}=e;return{onPreview:t}}})),ka=[{icon:"TreeStructure",name:"Layers"},{icon:"Plus",name:"Add"},{icon:"Palette",name:"Theme"},{icon:"Gear",name:"Settings"}],au=[{icon:"Desktop",value:"desktop"},{icon:"DeviceTabletCamera",value:"tablet"},{icon:"DeviceMobileCamera",value:"mobile"}],su=[{icon:"PaintBrushBroad",name:"Colors"},{icon:"TextAa",name:"Fonts"},{icon:"CornersOut",name:"Borders"},{icon:"ArrowSquareIn",name:"Buttons"},{icon:"Textbox",name:"Inputs"}],iu=[12,14,16,18,20,24,28,32,40,48].map(e=>String(e)),lu=["/","/reviews","/faqs","/contact","/products","/ticket","/login"],$t={"/":{path:"/",name:"Home",icon:"HouseSimple",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/products":{path:"/products",name:"Products",icon:"SquaresFour",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/faqs":{path:"/faqs",name:"Faqs",icon:"SealQuestion",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/reviews":{path:"/reviews",name:"Reviews",icon:"Star",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/contact":{path:"/contact",name:"Contact",icon:"ChatCentered",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/ticket":{path:"/ticket",name:"Ticket",icon:"Ticket",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/login":{path:"/login",name:"Login",icon:"UserCircleGear",seo:{pageDescription:"",pageTitle:""},visibility:"public"}},cu=typeof window<"u"&&(window.location.hostname.includes("localhost")||window.location.hostname.includes("192")||window.location.hostname.includes("local-rst.sp-internal.work")),uu={None:"var(--radius-none)",4:"var(--radius-xs)",8:"var(--radius-sm)",12:"var(--radius-md)",16:"var(--radius-lg)",20:"var(--radius-xl)",24:"var(--radius-2xl)"},du={None:"var(--border-none)",1:"var(--border-sm)",2:"var(--border-md)",4:"var(--border-lg)"},fu={"1:1":"1:1","4:3":"4:3","16:9":"16:9","9:16":"9:16"},hu=[{value:"4:3",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:18.5,height:14.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"16:9",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:20.5,height:12.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"9:16",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:14.5,height:18.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"1:1",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:16.5,height:16.5,border:"1.5px solid #252525",borderRadius:3}})})}],pu={h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",h7:"Heading 7",lg:"Paragraph Large",md:"Paragraph Medium",sm:"Paragraph Small"},mu=ie(e=>({activeBlock:ka[0],setActiveBlock:t=>e(()=>({activeBlock:t}))})),Na=ie(e=>({openModal:!1,setOpenModal:t=>e(()=>({openModal:t})),onChange:null,setOnChange:t=>e(()=>({onChange:t})),tip:"",setTip:t=>e(()=>({tip:t}))})),gu=ie(e=>({error:null,setError:t=>e(()=>({error:t}))})),Ta=ie(e=>({title:null,description:null,onConfirm:null,setTitle:t=>e(()=>({title:t})),setDescription:t=>e(()=>({description:t})),setOnConfirm:t=>e(()=>({onConfirm:t}))}));var vu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _a={exports:{}};/*!
36
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&xn.assertOptions(r,{silentJSONParsing:Xe.transitional(Xe.boolean),forcedJSONParsing:Xe.transitional(Xe.boolean),clarifyTimeoutError:Xe.transitional(Xe.boolean)},!1),o!=null&&(C.isFunction(o)?n.paramsSerializer={serialize:o}:xn.assertOptions(o,{encode:Xe.function,serialize:Xe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xn.assertOptions(n,{baseUrl:Xe.spelling("baseURL"),withXsrfToken:Xe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&C.merge(a.common,a[n.method]);a&&C.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=De.concat(s,a);const i=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const m=[ko.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);d<h;)u=u.then(m[d++],m[d++]);return u}h=i.length;let y=n;for(d=0;d<h;){const m=i[d++],p=i[d++];try{y=m(y)}catch(v){p.call(this,v);break}}try{u=ko.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=bt(this.defaults,t);const n=ga(t.baseURL,t.url,t.allowAbsoluteUrls);return da(n,t.params,t.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(t){wt.prototype[t]=function(n,r){return this.request(bt(r||{},{method:t,url:n,data:(r||{}).data}))}});C.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,i){return this.request(bt(i||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}wt.prototype[t]=n(),wt.prototype[t+"Form"]=n(!0)});let Rc=class Ca{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(i=>{r.subscribe(i),a=i}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,i){r.reason||(r.reason=new Ot(a,s,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ca(function(o){t=o}),cancel:t}}};function Lc(e){return function(n){return e.apply(null,n)}}function kc(e){return C.isObject(e)&&e.isAxiosError===!0}const vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vr).forEach(([e,t])=>{vr[t]=e});function Ea(e){const t=new wt(e),n=ea(wt.prototype.request,t);return C.extend(n,wt.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ea(bt(e,o))},n}const ce=Ea(tn);ce.Axios=wt;ce.CanceledError=Ot;ce.CancelToken=Rc;ce.isCancel=pa;ce.VERSION=Sa;ce.toFormData=Vn;ce.AxiosError=$;ce.Cancel=ce.CanceledError;ce.all=function(t){return Promise.all(t)};ce.spread=Lc;ce.isAxiosError=kc;ce.mergeConfig=bt;ce.AxiosHeaders=De;ce.formToJSON=e=>ha(C.isHTMLForm(e)?new FormData(e):e);ce.getAdapter=ba.getAdapter;ce.HttpStatusCode=vr;ce.default=ce;const{Axios:a0,AxiosError:Nc,CanceledError:s0,isCancel:i0,CancelToken:l0,VERSION:c0,all:u0,Cancel:d0,isAxiosError:f0,spread:h0,toFormData:p0,AxiosHeaders:m0,HttpStatusCode:g0,formToJSON:v0,getAdapter:y0,mergeConfig:w0}=ce,gn="https://localhost:5043",at=async e=>{var h,y;const{url:t,withToken:n,method:r,body:o,contentType:a,typeToken:s="seller"}=e,i=n?localStorage.getItem("sellerAccessToken"):null,l=n?localStorage.getItem("token"):null,c=s==="seller"?i:l,u=localStorage.getItem("dv"),d={};a&&!(o instanceof FormData)?d["Content-Type"]=a:o instanceof FormData||(d["Content-Type"]="application/json"),n&&c&&(d.Authorization=`Bearer ${c}`);try{let m=null;switch(r){case"get":m=await ce.get(u?gn:t,{headers:d});break;case"post":m=await ce.post(u?gn:t,o,{headers:d});break;case"put":m=await ce.put(u?gn:t,o,{headers:d});break;case"delete":m=await ce.delete(u?gn:t,{headers:d});break}return{data:m==null?void 0:m.data,status:m==null?void 0:m.status,headers:m==null?void 0:m.headers}}catch(m){const p=m,v=(h=p.response)==null?void 0:h.data;let R="Something Went Wrong";v&&(R=v.errors[0]);const b=(y=p.response)==null?void 0:y.status;if(b===401)try{const P=await Promise.resolve().then(()=>require("./charge-CfJ0VtUT.cjs")).then(T=>T.auth);P&&P.logoutCustomer?await P.logoutCustomer():localStorage.removeItem("token"),window.location.reload()}catch(P){console.error("Failed to import logoutCustomer:",P),localStorage.removeItem("token"),window.location.reload()}const L=new Nc(R,(b==null?void 0:b.toString())||"400");throw L.response=p.response,L}},Tc="https://g-api.billgang.com",Pc="https://www.googleapis.com/webfonts/v1/webfonts",_c="https://stores-api.billgang.com",Oc="https://sl-api.billgang.com",Ac="https://customers-api.billgang.com",Mc="https://cashapp-api.billgang.com",Dc={api:Tc,googleFonts:Pc,storeApi:_c,slApi:Oc,customersApi:Ac,cashappApi:Mc},Fc=(e,t="300")=>e==="not found"?"empty":`https://imagedelivery.net/${e}/w=${t}`,Ic=e=>{const t=new Intl.NumberFormat("en-US",{style:"currency",currency:e.currency||"USD"});let n=e.amount;return e.quantity&&(n=n*e.quantity),t.format(n)},Bc=(e,t)=>{if(e===0)throw new Error("Old value cannot be zero, as it would result in division by zero.");return(t-e)/Math.abs(e)*100},jc=e=>{if(Math.abs(e-365)<=15){const a=Math.round(e/365);return a===1?"year":`${a} years`}else if(Math.abs(e-30)<=5){const a=Math.round(e/30);return a===1?"month":`${a} months`}else return`${e} days`},Hc=e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),Uc=e=>{const t=new Date(e),n={day:"2-digit",month:"2-digit",year:"numeric"},r={hour:"2-digit",minute:"2-digit"},o=t.toLocaleString("en-US",n),a=t.toLocaleString("en-US",r);return[o,a]},yr=e=>{const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return t}},To=(e,t)=>{(t===null||typeof t!="object")&&window.localStorage.setItem(e,String(t));const n=JSON.stringify(t);window.localStorage.setItem(e,n)},rr="f10120ab-7ebb-4785-b240-7428edaa3c4e",Ut="https://t-api.billgang.com",Vt="https://internal-t-api.antistock.io",qt="I",Vc=10*1e3,$c=15*1e3,zc=15*60*1e3,xa=()=>{var t;const e=yr(qt);return((t=e==null?void 0:e.s)==null?void 0:t.i)||null},Jc=(e,t="production",n)=>{const{pathname:r}=qe(),o=we.useRef(),a=we.useRef(document.visibilityState);we.useEffect(()=>{if(!e)return;const s=()=>Date.now(),i=async()=>(await at({url:`${n?Vt:Ut}/${e}/t/p`,method:"post",withToken:!1})).data.data.id,l=async m=>(await at({url:`${n?Vt:Ut}/${e}/t/p/${t==="development"?rr:m}/s`,method:"post",withToken:!1})).data.data.id,c=async(m,p,v,R)=>{const b=t==="development"?rr:m;try{return(await at({url:`${n?Vt:Ut}/${e}/t/p/${b}/s/${p}/e`,method:"post",withToken:!1,body:{url:v,oldEventId:R},contentType:"application/json"})).data.data.id}catch{return p=await l(m),(await at({url:`${n?Vt:Ut}/${e}/t/p/${b}/s/${p}/e`,method:"post",withToken:!1,body:{url:v},contentType:"application/json"})).data.data.id}},u=async(m,p,v)=>{await at({url:`${n?Vt:Ut}/${e}/t/p/${t==="development"?rr:m}/s/${p}/e/${v}/h`,method:"post",withToken:!1});const b=yr(qt);b&&(b.s.u=s().toString(),b.lu=s().toString(),To(qt,b))},d=(m,p,v)=>{o.current&&clearInterval(o.current),o.current=setInterval(async()=>{if(document.visibilityState==="visible")try{await u(m,p,v)}catch{await h()}},Vc)},h=async()=>{var R,b,L,P;const m=`${window.location.hostname}${r}`,p=yr(qt),v=s();try{let T=p==null?void 0:p.p;T||(T=await i());let H=(R=p==null?void 0:p.s)==null?void 0:R.i;const w=Number(((b=p==null?void 0:p.s)==null?void 0:b.u)||((L=p==null?void 0:p.s)==null?void 0:L.c)),_=!H||v-w>zc;(!H||_)&&(H=await l(T));const G=Number((p==null?void 0:p.lu)||0),B=v-G>$c,ae=await c(T,H,m,p!=null&&p.l&&!B?p.l:void 0),ee={p:T,s:{i:H,c:((P=p==null?void 0:p.s)==null?void 0:P.c)??v.toString(),u:v.toString()},l:ae,lu:v.toString()};To(qt,ee),d(T,H,ae)}catch(T){console.error("[TrackingAnalytics] error",T)}};h();const y=()=>{document.visibilityState==="visible"&&a.current!=="visible"&&h(),a.current=document.visibilityState};return document.addEventListener("visibilitychange",y),()=>{o.current&&clearInterval(o.current),document.removeEventListener("visibilitychange",y)}},[r,e,t])},qc={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:xa()};let Nt=null;const Po=localStorage.getItem("token");if(Po)try{Nt=Qo(JSON.parse(Po)||"")}catch{Nt=null}const Wc=ie(e=>({cart:{...qc,customerEmail:Nt?Nt.email:""},products:[],coupon:null,pending:!1,applyCouponPending:!1,customerEmail:Nt?Nt.email:"",recaptcha:"",priceAdjustment:null,serviceFee:null,replacementConfig:null,setCart:t=>e(n=>({cart:typeof t=="function"?t(n.cart):t})),setProducts:t=>e(n=>({products:typeof t=="function"?t(n.products):t})),setRecaptcha:t=>e({recaptcha:t}),setCoupon:t=>e({coupon:t}),setPending:t=>e({pending:t}),setApplyCouponPending:t=>e({applyCouponPending:t}),setCustomerEmail:t=>e({customerEmail:t}),setPriceAdjustment:t=>e({priceAdjustment:t}),setServiceFee:t=>e({serviceFee:t}),setReplacementConfig:t=>e({replacementConfig:t}),setUsePriorityReplacement:t=>e(n=>({cart:{...n.cart,usePriorityReplacement:t}}))})),Zc=ie(e=>({page:1,setPage:t=>e(()=>({page:t})),resetPage:()=>e(()=>({page:1}))})),Gc=ie(e=>({discordInfo:null,setDiscordInfo:t=>e(()=>({discordInfo:t}))})),Kc=ie(e=>({subscription:null,setSubscription:t=>e({subscription:t})})),nn=ie(e=>({apiUrls:Dc,setApiUrls:t=>e(()=>({apiUrls:t}))})),Ra=ie(e=>({header:null,footer:null,announcement:null,setHeader:t=>e(()=>({header:t})),setFooter:t=>e(()=>({footer:t})),setAnnouncement:t=>e(()=>({announcement:t})),blocks:null,setBlocks:t=>e(()=>({blocks:t})),activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t})),sourceBlocks:{},setSourceBlocks:t=>e(()=>({sourceBlocks:t})),currentInstance:null,setCurrentInstance:t=>e(()=>({currentInstance:t})),settings:null,setSettings:t=>e(()=>({settings:t})),settingsInstance:null,setSettingsInstance:t=>e(()=>({settingsInstance:t}))})),Mr=ie(e=>({general:null,setGeneral:t=>e(()=>({general:t})),isAntistock:!1,setIsAntistock:t=>e(()=>({isAntistock:t}))})),wr=ie(e=>({settings:null,setSettings:t=>{e(()=>({settings:t}))},isLoadingSettings:!0,setIsLoadingSettings:t=>e(()=>({isLoadingSettings:t}))})),On=ie((e,t)=>({activeBlock:null,setActiveBlock:n=>e(()=>({activeBlock:n})),activeFont:null,setActiveFont:n=>e(()=>({activeFont:n})),setThemeSettings:n=>e(()=>({themeSettings:n})),activeColorCategory:null,setActiveColorCategory:n=>e(()=>({activeColorCategory:n})),themeSettings:{colors:{text:{primary:"#252525",secondary:"#757575",tertiary:"#C2C2C2",inverted:"#FFFFFF",action:"#FF3F19",actionHover:"#DA2400",disabled:"#C2C2C2",warning:"#C1972A",error:"#C12A2A",success:"#338B13",information:"#3683F7",link:"#3683F7"},icon:{primary:"#252525",secondary:"#555555",tertiary:"#C2C2C2",inverted:"#FFFFFF",action:"#FF3F19",actionHover:"#DA2400",disabled:"#C2C2C2",warning:"#C1972A",error:"#C12A2A",success:"#338B13",information:"#3683F7",link:"#3683F7"},border:{primary:"#C2C2C2",secondary:"#E6E6E6",action:"#FF3F19",actionHover:"#DA2400",disabled:"#E6E6E6",warning:"#C1972A",error:"#C12A2A",success:"#338B13",information:"#3683F7",focus:"#FF3F19"},surface:{primary:"#FFFFFF",secondary:"#F8F8F8",action1:"#FF3F19",action1Hover:"#DA2400",action2:"#FFFFFF",action2Hover:"#F8F8F8",disabled:"#C2C2C2",warning:"#FAF4E6",error:"#FAE6E6",success:"#E5FADD",information:"#E9F1FE",modal:"rgba(1, 1, 4, 0.4)"}},fonts:{mobile:{fontSizePercentage:30},tablet:{fontSizePercentage:50},desktop:{heading:{h1:{font:"Archivo",weight:"700",size:48,boldWeight:"900",case:"normal"},h2:{font:"Archivo",weight:"700",size:32,boldWeight:"800",case:"normal"},h3:{font:"Archivo",weight:"600",size:24,boldWeight:"700",case:"normal"},h4:{font:"Archivo",weight:"500",size:20,boldWeight:"700",case:"normal"},h5:{font:"Archivo",weight:"400",size:16,boldWeight:"700",case:"normal"},h6:{font:"Archivo",weight:"400",size:14,boldWeight:"700",case:"uppercase"},h7:{font:"Archivo",weight:"400",size:14,boldWeight:"700",case:"normal"}},body:{lg:{font:"Archivo",size:16,weight:"400",boldWeight:"700",case:"normal"},md:{font:"Archivo",size:14,weight:"400",boldWeight:"700",case:"normal"},sm:{font:"Archivo",size:12,weight:"400",boldWeight:"700",case:"normal"}}}},borders:{radius:"var(--radius-lg)",thickness:"var(--border-none)"},buttons:{primary:{size:26,alignment:"left",radius:32,height:40,background:"#ff3f19",hover:!0,font:"Archivo",boxShadow:{left:0,top:0,blur:0,spread:0,color:"#000000"},color:"#ffffff",colorHover:"#ffffff",backgroundHover:"#ff3f19"},secondary:{size:26,alignment:"left",radius:10,height:20,background:"#c2c2c2",hover:!1,font:"Archivo",boxShadow:{left:0,top:4,blur:10,spread:0,color:"#000000"},color:"#757575",colorHover:"#757575",backgroundHover:"#c2c2c2"},tertiary:{size:12,alignment:"left",radius:30,height:30,background:"#c2c2c2",hover:!0,font:"Archivo",boxShadow:{left:0,top:4,blur:10,spread:0,color:"#000000"},color:"#757575",colorHover:"#757575",backgroundHover:"#c2c2c2"}},inputs:{field:{color:"#f3f3f3",active:!0,opacity:40},label:{size:14,color:"#555555",height:40,alignment:"left"},border:{color:"#f3f3f3",style:"solid",active:!0,radius:14,thickness:0},general:{size:14,color:"#252525",height:40},placeholder:{color:"#C2C2C2"}}},updateColor:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:s});const i={...a.themeSettings.colors,[n]:{...a.themeSettings.colors[n],[r]:o}};return{themeSettings:{...a.themeSettings,colors:i}}}),updateFont:(n,r,o,a,s)=>e(i=>{const l=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:l});const c={...i.themeSettings.fonts,[n]:{...i.themeSettings.fonts[n],[r]:{...i.themeSettings.fonts[n][r],[o]:{...i.themeSettings.fonts[n][r][o],[a]:s}}}};return{themeSettings:{...i.themeSettings,fonts:c}}}),updateFontSizePercentage:(n,r)=>e(o=>{const a=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:a});const s={...o.themeSettings.fonts,[n]:{...o.themeSettings.fonts[n],fontSizePercentage:r}};return{themeSettings:{...o.themeSettings,fonts:s}}}),updateBorder:(n,r)=>e(o=>{const a=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:a});const s={...o.themeSettings.borders,[n]:r};return{themeSettings:{...o.themeSettings,borders:s}}}),updateButton:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().themeSettings));_e.getState().addHistory({themeSettings:s});const i={...a.themeSettings.buttons[n],[r]:o},l={...a.themeSettings.buttons,[n]:i};return{themeSettings:{...a.themeSettings,buttons:l}}}),updateInput:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().themeSettings));return _e.getState().addHistory({themeSettings:s}),{themeSettings:{...a.themeSettings,inputs:{...a.themeSettings.inputs,[n]:{...a.themeSettings.inputs[n],[o]:r}}}}}),isLoadingThemeSettings:!1,setIsLoadingThemeSettings:n=>e(()=>({isLoadingThemeSettings:n}))})),Fe=ie(e=>({notifications:[],setNotifications:t=>e(()=>({notifications:t}))})),Yc=ie(e=>({isOpen:!0,setIsOpen:t=>e(()=>({isOpen:t}))}));var ke=[];for(var or=0;or<256;++or)ke.push((or+256).toString(16).slice(1));function Xc(e,t=0){return(ke[e[t+0]]+ke[e[t+1]]+ke[e[t+2]]+ke[e[t+3]]+"-"+ke[e[t+4]]+ke[e[t+5]]+"-"+ke[e[t+6]]+ke[e[t+7]]+"-"+ke[e[t+8]]+ke[e[t+9]]+"-"+ke[e[t+10]]+ke[e[t+11]]+ke[e[t+12]]+ke[e[t+13]]+ke[e[t+14]]+ke[e[t+15]]).toLowerCase()}var vn,Qc=new Uint8Array(16);function eu(){if(!vn&&(vn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vn(Qc)}var tu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const _o={randomUUID:tu};function ot(e,t,n){if(_o.randomUUID&&!e)return _o.randomUUID();e=e||{};var r=e.random||(e.rng||eu)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Xc(r)}function nu(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const s=l=>l===null?null:JSON.parse(l,void 0),i=(a=n.getItem(o))!=null?a:null;return i instanceof Promise?i.then(s):s(i)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const br=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return br(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return br(r)(n)}}}},ru=(e,t)=>(n,r,o)=>{let a={storage:nu(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},s=!1;const i=new Set,l=new Set;let c=a.storage;if(!c)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...p)},r,o);const u=()=>{const p=a.partialize({...r()});return c.setItem(a.name,{state:p,version:a.version})},d=o.setState;o.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},r,o);o.getInitialState=()=>h;let y;const m=()=>{var p,v;if(!c)return;s=!1,i.forEach(b=>{var L;return b((L=r())!=null?L:h)});const R=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(p=r())!=null?p:h))||void 0;return br(c.getItem.bind(c))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return[!0,a.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var L;const[P,T]=b;if(y=a.merge(T,(L=r())!=null?L:h),n(y,!0),P)return u()}).then(()=>{R==null||R(y,void 0),y=r(),s=!0,l.forEach(b=>b(y))}).catch(b=>{R==null||R(void 0,b)})};return o.persist={setOptions:p=>{a={...a,...p},p.storage&&(c=p.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:p=>(i.add(p),()=>{i.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},a.skipHydration||m(),y||h},Jn=ru,Yt=ie(Jn((e,t)=>({pages:null,currentPage:"",setPages:n=>e(()=>({pages:n})),pageContext:{listings:null,products:null,reviews:null,categories:null,faqs:null,general:null,fullPosts:null,posts:null,preserveContent:!1,vouches:null},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:n=>e(()=>({editedPage:n})),setCurrentPage:n=>e(()=>({currentPage:n})),setPageContext:n=>e(()=>({pageContext:n})),setIsOpenModal:n=>e(()=>({isOpenModal:n})),setIsOpenSelectModal:n=>e(()=>({isOpenSelectModal:n})),setIsEdit:n=>e(()=>({isEdit:n})),createPage:n=>{const r=t().pages,o=ot();if(r)r[o]=n,e({pages:r});else{const a=t().setPages;a({});const s=t().pages;s[o]=n,e({pages:s})}},updatePage:(n,r)=>{const o=t().pages;o&&(o[n]={...r},e({pages:o}))},deletePage:n=>{const r=t().pages;r&&(delete r[n],e({pages:r}))}}),{name:"pages-storage",partialize:e=>{const{pages:t,pageContext:n}=e;return{pages:t,pageContext:n}}})),ou=ie(e=>({isOpenModal:!1,setIsOpenModal:t=>e(()=>({isOpenModal:t}))})),An=ie(Jn((e,t)=>({header:null,blocks:{},announcement:null,footer:null,currentBlock:null,positionBlock:null,setBlocks:n=>{e({blocks:n})},setHeader:(n,r=!0)=>{const o=JSON.parse(JSON.stringify(t().header)),a=JSON.parse(JSON.stringify(n));JSON.stringify(o)!==JSON.stringify(a)&&r&&_e.getState().addHistory({header:o}),e({header:a})},setFooter:(n,r=!0)=>{const o=JSON.parse(JSON.stringify(t().footer)),a=JSON.parse(JSON.stringify(n));JSON.stringify(o)!==JSON.stringify(a)&&r&&_e.getState().addHistory({footer:o}),e({footer:a})},setAnnouncement:(n,r=!0)=>{const o=JSON.parse(JSON.stringify(t().announcement)),a=JSON.parse(JSON.stringify(n));JSON.stringify(o)!==JSON.stringify(a)&&r&&_e.getState().addHistory({announcement:o}),e({announcement:a})},createPage:n=>{const r=t().blocks;r[n]={data:{},order:[]},e({blocks:r})},deletePage:n=>{const r=t().blocks;delete r[n],e({blocks:r})},updatePage:(n,r)=>{const o=t().blocks;if(o[r])return;const a=o[n];delete o[n],o[r]=a,e({blocks:o})},setCurrentBlock:n=>{e({currentBlock:n})},setPositionBlock:(n,r=!1)=>{const{blocks:o}=t(),{currentPage:a,pages:s}=Yt.getState();if(!a||!s||!s[a]||!o[s[a].path]){console.error("Cannot set position: invalid page or block data");return}const i=s[a].path,l=o[i],c=n?l.order.indexOf(n):-1;if(c===-1&&n){console.error(`Block with ID "${n}" not found in page "${i}"`);return}const u=c!==-1?c+(r?1:0):l.order.length;e({positionBlock:u})},addBlock:(n,r)=>{const o=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:o});const a={...t().blocks},s=a[n]||{data:{},order:[]},i=t().positionBlock,l=ot(),c={name:r.name,value:r.value};return s.data[l]=c,i===null||i>=s.order.length?s.order.push(l):s.order.splice(i,0,l),e({blocks:{...a,[n]:{data:s.data,order:s.order}},currentBlock:l,positionBlock:null}),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully added",status:"success"}]),l},editBlock:(n,r,o)=>{const a=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:a});const s=t().blocks,i=s[n]||{};i.data[r]={name:o.name,value:{...o.value}},e({blocks:{...s,[n]:i}})},removeBlock:(n,r)=>{const o=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:o});const a=JSON.parse(JSON.stringify(t().blocks)),s=a[n];if(!s){console.error(`Page at path "${n}" does not exist.`);return}delete s.data[r],s.order=s.order.filter(i=>i!==r),e({blocks:{...a,[n]:s}}),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully deleted",status:"success"}])},moveBlock:(n,r,o)=>e(a=>{const s=JSON.parse(JSON.stringify(t().blocks));if(_e.getState().addHistory({layers:s}),!a.blocks[n])return console.error(`Path ${n} does not exist in blocks`),a;const i={...a.blocks[n]},l=[...i.order];if(r<0||o<0||r>=l.length||o>=l.length)return console.error(`Invalid indices: fromIndex=${r}, toIndex=${o}`),a;const[c]=l.splice(r,1);return l.splice(o,0,c),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully moved",status:"success"}]),{blocks:{...a.blocks,[n]:{...i,order:l}}}}),duplicateBlock:(n,r)=>{const o=JSON.parse(JSON.stringify(t().blocks));_e.getState().addHistory({layers:o});const a=JSON.parse(JSON.stringify(t().blocks)),s=a[n];if(!s||!s.data[r]){console.error(`Block with ID "${r}" not found in page "${n}"`);return}const i=ot(),l=s.data[r],c={name:l.name,value:JSON.parse(JSON.stringify({...l.value}))};s.data[i]={...c};const u=s.order.indexOf(r);if(u===-1){console.error(`Block ID "${r}" not found in order array`);return}s.order.splice(u+1,0,i),e({blocks:{...a,[n]:s},currentBlock:i}),La.getState().setActiveBlock({id:i,neededScroll:!0}),Fe.getState().setNotifications([...Fe.getState().notifications,{id:ot(),message:"Block successfully duplicated",status:"success"}])},isLoadingLayers:!1,setIsLoadingLayers:n=>e(()=>({isLoadingLayers:n}))}),{name:"layers-storage",partialize:e=>{const{blocks:t,header:n,footer:r,announcement:o}=e;return{blocks:t,header:n,footer:r,announcement:o}}})),_e=ie((e,t)=>({past:[],future:[],addHistory:n=>{e(r=>{const o=r.past[r.past.length-1];return o&&JSON.stringify(o)===JSON.stringify(n)?r:{past:[...r.past,n],future:[]}})},undo:()=>{const{past:n,future:r}=t();if(n.length===0)return;const o=n[n.length-1],a=n.slice(0,-1),{blocks:s,header:i,footer:l,announcement:c,setBlocks:u,setHeader:d,setFooter:h,setAnnouncement:y}=An.getState(),{themeSettings:m,setThemeSettings:p}=On.getState(),v={themeSettings:JSON.parse(JSON.stringify(m)),layers:JSON.parse(JSON.stringify(s)),header:JSON.parse(JSON.stringify(i)),footer:JSON.parse(JSON.stringify(l)),announcement:JSON.parse(JSON.stringify(c))};e({past:a,future:[v,...r]}),o.themeSettings&&p(o.themeSettings),o.layers&&u(o.layers),o.header&&d(o.header,!1),o.footer&&h(o.footer,!1),o.announcement&&y(o.announcement,!1)},redo:()=>{const{past:n,future:r}=t();if(r.length===0)return;const{blocks:o,header:a,footer:s,announcement:i,setBlocks:l,setHeader:c,setFooter:u,setAnnouncement:d}=An.getState(),{themeSettings:h,setThemeSettings:y}=On.getState(),m=r[0],p=r.slice(1),v={themeSettings:JSON.parse(JSON.stringify(h)),layers:JSON.parse(JSON.stringify(o)),header:JSON.parse(JSON.stringify(a)),footer:JSON.parse(JSON.stringify(s)),announcement:JSON.parse(JSON.stringify(i))};e({past:[...n,v],future:p}),m.themeSettings&&y(m.themeSettings),m.layers&&l(m.layers),m.header&&c(m.header,!1),m.footer&&u(m.footer,!1),m.announcement&&d(m.announcement,!1)}})),La=ie(Jn(e=>({onPreview:!0,setOnPreview:t=>e(()=>({onPreview:t})),activeBlock:{id:null,neededScroll:!1},setActiveBlock:t=>e(()=>({activeBlock:t})),zoomLevel:1,setZoomLevel:t=>e(()=>({zoomLevel:t}))}),{name:"preview-storage",partialize:e=>{const{onPreview:t}=e;return{onPreview:t}}})),ka=[{icon:"TreeStructure",name:"Layers"},{icon:"Plus",name:"Add"},{icon:"Palette",name:"Theme"},{icon:"Gear",name:"Settings"}],au=[{icon:"Desktop",value:"desktop"},{icon:"DeviceTabletCamera",value:"tablet"},{icon:"DeviceMobileCamera",value:"mobile"}],su=[{icon:"PaintBrushBroad",name:"Colors"},{icon:"TextAa",name:"Fonts"},{icon:"CornersOut",name:"Borders"},{icon:"ArrowSquareIn",name:"Buttons"},{icon:"Textbox",name:"Inputs"}],iu=[12,14,16,18,20,24,28,32,40,48].map(e=>String(e)),lu=["/","/reviews","/faqs","/contact","/products","/ticket","/login"],$t={"/":{path:"/",name:"Home",icon:"HouseSimple",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/products":{path:"/products",name:"Products",icon:"SquaresFour",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/faqs":{path:"/faqs",name:"Faqs",icon:"SealQuestion",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/reviews":{path:"/reviews",name:"Reviews",icon:"Star",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/contact":{path:"/contact",name:"Contact",icon:"ChatCentered",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/ticket":{path:"/ticket",name:"Ticket",icon:"Ticket",seo:{pageDescription:"",pageTitle:""},visibility:"public"},"/login":{path:"/login",name:"Login",icon:"UserCircleGear",seo:{pageDescription:"",pageTitle:""},visibility:"public"}},cu=typeof window<"u"&&(window.location.hostname.includes("localhost")||window.location.hostname.includes("192")||window.location.hostname.includes("local-rst.sp-internal.work")),uu={None:"var(--radius-none)",4:"var(--radius-xs)",8:"var(--radius-sm)",12:"var(--radius-md)",16:"var(--radius-lg)",20:"var(--radius-xl)",24:"var(--radius-2xl)"},du={None:"var(--border-none)",1:"var(--border-sm)",2:"var(--border-md)",4:"var(--border-lg)"},fu={"1:1":"1:1","4:3":"4:3","16:9":"16:9","9:16":"9:16"},hu=[{value:"4:3",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:18.5,height:14.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"16:9",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:20.5,height:12.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"9:16",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:14.5,height:18.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"1:1",addon:k.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("div",{style:{width:16.5,height:16.5,border:"1.5px solid #252525",borderRadius:3}})})}],pu={h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",h7:"Heading 7",lg:"Paragraph Large",md:"Paragraph Medium",sm:"Paragraph Small"},mu=ie(e=>({activeBlock:ka[0],setActiveBlock:t=>e(()=>({activeBlock:t}))})),Na=ie(e=>({openModal:!1,setOpenModal:t=>e(()=>({openModal:t})),onChange:null,setOnChange:t=>e(()=>({onChange:t})),tip:"",setTip:t=>e(()=>({tip:t}))})),gu=ie(e=>({error:null,setError:t=>e(()=>({error:t}))})),Ta=ie(e=>({title:null,description:null,onConfirm:null,setTitle:t=>e(()=>({title:t})),setDescription:t=>e(()=>({description:t})),setOnConfirm:t=>e(()=>({onConfirm:t}))}));var vu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _a={exports:{}};/*!
37
37
  Copyright (c) 2018 Jed Watson.
38
38
  Licensed under the MIT License (MIT), see
39
39
  http://jedwatson.github.io/classnames
40
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(a=o(a,r(i)))}return a}function r(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 i in a)t.call(a,i)&&a[i]&&(s=o(s,i));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})()})(_a);var yu=_a.exports;const Be=Pa(yu),wu=ie(e=>({currentDevice:{icon:"Desktop",value:"desktop"},setCurrentDevice:t=>e(()=>({currentDevice:t}))}));ie(e=>({pageData:null,setPageData:t=>e(()=>({pageData:t}))}));const Dr=ie((e,t)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,setHoverBlockId:n=>{e({hoverBlockId:n})},showModal:(n,r="hoverBlockId")=>{t().hideTimeout&&clearTimeout(t().hideTimeout),e({isModalVisible:!0,[r]:n})},hideModal:(n="hoverBlockId")=>{e({isModalVisible:!1,[n]:null})},startHideTimeout:()=>{if(!t().isMouseOverModal){const n=setTimeout(()=>{e({isModalVisible:!1,hoverBlockId:null,keyBlock:null})},500);e({hideTimeout:n})}},clearHideTimeout:()=>{t().hideTimeout&&(clearTimeout(t().hideTimeout),e({hideTimeout:null}))},setMouseOverModal:n=>{e({isMouseOverModal:n})},isPreviewVisible:!1,showPreview:(n,r="hoverBlockId")=>{e({isPreviewVisible:!0,[r]:n})},hidePreview:(n="hoverBlockId")=>{e({isPreviewVisible:!1,[n]:null})},keyBlock:null,setKeyBlock:n=>{e({keyBlock:n})},hoverBlockTopPosition:null,setHoverBlockTopPosition:n=>{e({hoverBlockTopPosition:n})}})),Oa=ie(Jn(e=>({fonts:[],setFonts:t=>e(()=>({fonts:t}))}),{name:"fonts-storage"})),Fr=ie()(e=>({color:"default",initialColor:"",setInitialColor:t=>e(()=>({initialColor:t})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,alpha:100,isGradientActive:!0,isBlockSettings:!1,isGradient:!1,setIsGradient:t=>e(()=>({isGradient:t})),gradientDirection:"vertical",setGradientDirection:t=>e(()=>({gradientDirection:t})),hue2:0,saturation2:100,brightness2:100,alpha2:100,setHue2:t=>e(()=>({hue2:t})),setSaturation2:t=>e(()=>({saturation2:t})),setBrightness2:t=>e(()=>({brightness2:t})),setAlpha2:t=>e(()=>({alpha2:t})),activeColorIndex:1,setActiveColorIndex:t=>e(()=>({activeColorIndex:t})),setModalPosition:t=>e(()=>({modalPosition:t})),setHue:t=>e(()=>({hue:t})),setSaturation:t=>e(()=>({saturation:t})),setBrightness:t=>e(()=>({brightness:t})),setIsBlockSettings:t=>e(()=>({isBlockSettings:t})),setShowModal:t=>e({isBlockSettings:!1,showModal:t}),setDragging:t=>e(()=>({dragging:t})),setActiveLabel:t=>e(()=>({activeLabel:t})),setColor:t=>e(()=>({color:t})),setUpdate:t=>e(()=>({update:t})),setColorChange:t=>e(()=>({colorChange:t})),setAlpha:t=>e(()=>({alpha:t})),setIsGradientActive:t=>e(()=>({isGradientActive:t})),resetColors:()=>e(()=>({color:"default",initialColor:"",activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,alpha:100,isGradient:!1,gradientDirection:"vertical",hue2:0,saturation2:100,brightness2:100,alpha2:100,activeColorIndex:1,isGradientActive:!0}))})),Aa=ie(e=>({showTooltip:!1,setShowTooltip:t=>e({showTooltip:t})})),bu="_loader_jr7a4_1",Su={loader:bu},Cu=()=>k.jsx("div",{className:Su.loader}),Eu="_tooltip_7oy60_1",xu={tooltip:Eu},Ru=e=>{const{text:t}=e,{setShowTooltip:n}=Aa();return we.useEffect(()=>(n(!0),()=>{n(!1)}),[]),k.jsx("div",{className:xu.tooltip,children:t})},Lu=e=>e?e.replace(/_/g," ").split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" and "):"";function ku(e,t){if(!t||!t[e])return"unknown name";const n=new t[e];return!n.blockSettings||!n.blockSettings.displayName?"unknown name":n.blockSettings.displayName}const Ma=(e,t,n,r,o,a,s)=>{const i=e.currentTarget.getBoundingClientRect(),l=window.innerHeight-i.bottom,c=i.top,u=window.innerWidth-i.right,d=i.left;let h,y;return h=i.bottom+r+window.scrollY,y=i.left,(l<t||l<o)&&(c>=t+s?h=i.top-t-r+window.scrollY:h=window.scrollY+s),h-window.scrollY<s&&(h=window.scrollY+s),(u<n||u<a)&&(d>=n?y=i.right-n:y=(window.innerWidth-n)/2),y<i.right+a&&(y=i.right+a),y<i.right&&y+n>i.left&&h<i.bottom&&h+t>i.top&&(u>=n+a?y=i.right+r+a:l>=t?h=i.bottom+r+window.scrollY:(h=window.scrollY+s,y=(window.innerWidth-n)/2)),{top:h,left:y}},Nu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.25%2015.45V8.55C20.25%206.86984%2020.25%206.02976%2019.923%205.38803C19.6354%204.82354%2019.1765%204.3646%2018.612%204.07698C17.9702%203.75%2017.1302%203.75%2015.45%203.75H8.55C6.86984%203.75%206.02976%203.75%205.38803%204.07698C4.82354%204.3646%204.3646%204.82354%204.07698%205.38803C3.75%206.02976%203.75%206.86984%203.75%208.55V15.45C3.75%2017.1302%203.75%2017.9702%204.07698%2018.612C4.3646%2019.1765%204.82354%2019.6354%205.38803%2019.923C6.02976%2020.25%206.86984%2020.25%208.55%2020.25H15.45C17.1302%2020.25%2017.9702%2020.25%2018.612%2019.923C19.1765%2019.6354%2019.6354%2019.1765%2019.923%2018.612C20.25%2017.9702%2020.25%2017.1302%2020.25%2015.45Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Tu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.0002%2012V20.5M12.0002%2012L4.5%207.78125M12.0002%2012L19.2627%207.91474M20.25%209.11392V14.8861C20.25%2015.9699%2019.6654%2016.9695%2018.7208%2017.5008L13.4708%2020.4539C12.5575%2020.9676%2011.4425%2020.9676%2010.5292%2020.4539L5.27922%2017.5008C4.33459%2016.9695%203.75%2015.9699%203.75%2014.8861V9.11392C3.75%208.0301%204.33459%207.03055%205.27922%206.49919L10.5292%203.54607C11.4425%203.03237%2012.5575%203.03237%2013.4708%203.54607L18.7208%206.4992C19.6654%207.03055%2020.25%208.0301%2020.25%209.11392Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Pu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.25%2020.25H6.75C5.09315%2020.25%203.75%2018.9069%203.75%2017.25V15.75M15.75%2020.25H17.25C18.9069%2020.25%2020.25%2018.9069%2020.25%2017.25V15.75M3.75%208.25V6.75C3.75%205.09315%205.09315%203.75%206.75%203.75H8.25M15.75%203.75H17.25C18.9069%203.75%2020.25%205.09315%2020.25%206.75V8.25M15.25%2010.3571L12%2011.9999M12%2011.9999L8.75%2010.3571M12%2011.9999V15.2856M11.0077%208.28125L9.25772%209.28125C8.63457%209.63733%208.25%2010.3%208.25%2011.0177V12.9822C8.25%2013.6999%208.63457%2014.3626%209.25772%2014.7186L11.0077%2015.7186C11.6226%2016.07%2012.3774%2016.07%2012.9923%2015.7186L14.7423%2014.7186C15.3654%2014.3626%2015.75%2013.6999%2015.75%2012.9822V11.0177C15.75%2010.3%2015.3654%209.63733%2014.7423%209.28125L12.9923%208.28125C12.3774%207.9299%2011.6226%207.9299%2011.0077%208.28125Z'%20stroke='%23252525'%20stroke-width='1.40625'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",_u="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.125%203.125H16.875'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.9167%205.625C12.1113%205.625%2011.4583%206.27792%2011.4583%207.08333V12.0833C11.4583%2012.8887%2012.1113%2013.5417%2012.9167%2013.5417C13.7221%2013.5417%2014.375%2012.8887%2014.375%2012.0833V7.08333C14.375%206.27792%2013.7221%205.625%2012.9167%205.625Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08333%205.625C6.27792%205.625%205.625%206.27792%205.625%207.08333V15.4167C5.625%2016.2221%206.27792%2016.875%207.08333%2016.875C7.88875%2016.875%208.54167%2016.2221%208.54167%2015.4167V7.08333C8.54167%206.27792%207.88875%205.625%207.08333%205.625Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ou="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.1073%2017.1577C17.1073%2018.8655%2015.7213%2020.25%2014.0116%2020.25C12.3019%2020.25%2010.9159%2018.8655%2010.9159%2017.1577C10.9159%2015.4499%2012.3019%2014.0654%2014.0116%2014.0654C15.7213%2014.0654%2017.1073%2015.4499%2017.1073%2017.1577Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.99145%206.98598L10.4681%2011.5764L3.75%2014.0189L4.99145%206.98598Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.0106%204.46532C14.1536%203.9321%2014.7017%203.61567%2015.235%203.75841L19.2835%204.842C19.8172%204.98485%2020.1339%205.53345%2019.9908%206.06708L18.9065%2010.1093C18.7635%2010.6425%2018.2154%2010.9589%2017.6821%2010.8162L13.6336%209.73258C13.0999%209.58973%2012.7832%209.04113%2012.9263%208.50749L14.0106%204.46532Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e",Au="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.25%2014.75H10C10%2014.3358%209.66421%2014%209.25%2014V14.75ZM3.75%2020.25H3V21H3.75V20.25ZM14.75%209.25H15.5C15.5%208.83579%2015.1642%208.5%2014.75%208.5V9.25ZM20.25%2020.25V21H21V20.25H20.25ZM1.75%2019.5C1.33579%2019.5%201%2019.8358%201%2020.25C1%2020.6642%201.33579%2021%201.75%2021V19.5ZM22.25%2021C22.6642%2021%2023%2020.6642%2023%2020.25C23%2019.8358%2022.6642%2019.5%2022.25%2019.5V21ZM5.25%2015.5H9.25V14H5.25V15.5ZM8.5%2014.75V20.25H10V14.75H8.5ZM9.25%2019.5H3.75V21H9.25V19.5ZM4.5%2020.25V16.25H3V20.25H4.5ZM5.25%2014C4.00736%2014%203%2015.0074%203%2016.25H4.5C4.5%2015.8358%204.83579%2015.5%205.25%2015.5V14ZM10.75%2010H14.75V8.5H10.75V10ZM14%209.25V20.25H15.5V9.25H14ZM14.75%2019.5H9.25V21H14.75V19.5ZM10%2020.25V10.75H8.5V20.25H10ZM10.75%208.5C9.50736%208.5%208.5%209.50736%208.5%2010.75H10C10%2010.3358%2010.3358%2010%2010.75%2010V8.5ZM16.25%204.5H18.75V3H16.25V4.5ZM19.5%205.25V20.25H21V5.25H19.5ZM20.25%2019.5H14.75V21H20.25V19.5ZM15.5%2020.25V5.25H14V20.25H15.5ZM18.75%204.5C19.1642%204.5%2019.5%204.83579%2019.5%205.25H21C21%204.00736%2019.9926%203%2018.75%203V4.5ZM16.25%203C15.0074%203%2014%204.00736%2014%205.25H15.5C15.5%204.83579%2015.8358%204.5%2016.25%204.5V3ZM1.75%2021H22.25V19.5H1.75V21Z'%20fill='%23252525'/%3e%3c/svg%3e",Mu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2014.2105L6.84488%2012.0821C7.66137%2011.5378%208.75215%2011.6663%209.41987%2012.3853C10.9123%2013.9926%2012.6426%2015.4538%2015%2015.4538C17.1727%2015.4538%2018.6125%2014.6485%2020%2013.261M6.75%2020.25H17.25C18.9069%2020.25%2020.25%2018.9069%2020.25%2017.25V6.75C20.25%205.09315%2018.9069%203.75%2017.25%203.75H6.75C5.09315%203.75%203.75%205.09315%203.75%206.75V17.25C3.75%2018.9069%205.09315%2020.25%206.75%2020.25ZM17.25%208.75C17.25%209.85457%2016.3546%2010.75%2015.25%2010.75C14.1454%2010.75%2013.25%209.85457%2013.25%208.75C13.25%207.64543%2014.1454%206.75%2015.25%206.75C16.3546%206.75%2017.25%207.64543%2017.25%208.75Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Du="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.252%2019.25H6.74803C5.26465%2019.25%204.29985%2017.6884%204.96324%2016.3611L10.2152%205.85345C10.9506%204.38218%2013.0494%204.38218%2013.7848%205.85345L19.0368%2016.3611C19.7001%2017.6884%2018.7354%2019.25%2017.252%2019.25Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202.75V4.5M16.9069%205.09326L15.5962%206.40392M6.40381%2015.5962L5.09315%2016.9069M4.5%2011H2.75M6.40381%206.40381L5.09315%205.09315M14.1323%2020.999L10.5777%2011.3226C10.3542%2010.7143%2010.9552%2010.1281%2011.5577%2010.3666L21.0397%2014.1199C21.4283%2014.2737%2021.4679%2014.8081%2021.1062%2015.0175L17.4231%2017.1498C17.3097%2017.2155%2017.2155%2017.3097%2017.1498%2017.4231L15.0343%2021.0771C14.822%2021.4438%2014.2784%2021.3967%2014.1323%2020.999Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Iu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.38803%2019.923L5.72852%2019.2548H5.72852L5.38803%2019.923ZM4.07698%2018.612L3.40873%2018.9525H3.40873L4.07698%2018.612ZM19.923%2018.612L19.2548%2018.2715V18.2715L19.923%2018.612ZM18.612%2019.923L18.2715%2019.2548H18.2715L18.612%2019.923ZM19.923%205.38803L19.2548%205.72852V5.72852L19.923%205.38803ZM18.612%204.07698L18.9525%203.40873V3.40873L18.612%204.07698ZM4.07698%205.38803L4.74524%205.72852L4.07698%205.38803ZM5.38803%204.07698L5.72852%204.74524L5.38803%204.07698ZM19.5%208.55V15.45H21V8.55H19.5ZM15.45%2019.5H8.55V21H15.45V19.5ZM4.5%2015.45V8.55H3V15.45H4.5ZM8.55%204.5H15.45V3H8.55V4.5ZM8.55%2019.5C7.69755%2019.5%207.10331%2019.4994%206.64068%2019.4616C6.1868%2019.4245%205.92604%2019.3554%205.72852%2019.2548L5.04754%2020.5913C5.49175%2020.8176%205.97189%2020.912%206.51853%2020.9566C7.05641%2021.0006%207.7223%2021%208.55%2021V19.5ZM3%2015.45C3%2016.2777%202.99942%2016.9436%203.04336%2017.4815C3.08803%2018.0281%203.18238%2018.5082%203.40873%2018.9525L4.74524%2018.2715C4.6446%2018.074%204.57546%2017.8132%204.53838%2017.3593C4.50058%2016.8967%204.5%2016.3025%204.5%2015.45H3ZM5.72852%2019.2548C5.30516%2019.039%204.96095%2018.6948%204.74524%2018.2715L3.40873%2018.9525C3.76825%2019.6581%204.34193%2020.2317%205.04754%2020.5913L5.72852%2019.2548ZM19.5%2015.45C19.5%2016.3025%2019.4994%2016.8967%2019.4616%2017.3593C19.4245%2017.8132%2019.3554%2018.074%2019.2548%2018.2715L20.5913%2018.9525C20.8176%2018.5082%2020.912%2018.0281%2020.9566%2017.4815C21.0006%2016.9436%2021%2016.2777%2021%2015.45H19.5ZM15.45%2021C16.2777%2021%2016.9436%2021.0006%2017.4815%2020.9566C18.0281%2020.912%2018.5082%2020.8176%2018.9525%2020.5913L18.2715%2019.2548C18.074%2019.3554%2017.8132%2019.4245%2017.3593%2019.4616C16.8967%2019.4994%2016.3025%2019.5%2015.45%2019.5V21ZM19.2548%2018.2715C19.0391%2018.6948%2018.6948%2019.039%2018.2715%2019.2548L18.9525%2020.5913C19.6581%2020.2317%2020.2318%2019.6581%2020.5913%2018.9525L19.2548%2018.2715ZM21%208.55C21%207.7223%2021.0006%207.05641%2020.9566%206.51853C20.912%205.97189%2020.8176%205.49175%2020.5913%205.04754L19.2548%205.72852C19.3554%205.92604%2019.4245%206.1868%2019.4616%206.64068C19.4994%207.10331%2019.5%207.69755%2019.5%208.55H21ZM15.45%204.5C16.3025%204.5%2016.8967%204.50058%2017.3593%204.53838C17.8132%204.57546%2018.074%204.6446%2018.2715%204.74524L18.9525%203.40873C18.5082%203.18238%2018.0281%203.08803%2017.4815%203.04336C16.9436%202.99942%2016.2777%203%2015.45%203V4.5ZM20.5913%205.04754C20.2318%204.34193%2019.6581%203.76825%2018.9525%203.40873L18.2715%204.74524C18.6948%204.96095%2019.0391%205.30516%2019.2548%205.72852L20.5913%205.04754ZM4.5%208.55C4.5%207.69755%204.50058%207.10331%204.53838%206.64068C4.57546%206.1868%204.6446%205.92604%204.74524%205.72852L3.40873%205.04754C3.18238%205.49175%203.08803%205.97189%203.04336%206.51853C2.99942%207.05641%203%207.7223%203%208.55H4.5ZM8.55%203C7.7223%203%207.05641%202.99942%206.51853%203.04336C5.97189%203.08803%205.49175%203.18238%205.04754%203.40873L5.72852%204.74524C5.92604%204.6446%206.1868%204.57546%206.64068%204.53838C7.10331%204.50058%207.69755%204.5%208.55%204.5V3ZM4.74524%205.72852C4.96095%205.30516%205.30516%204.96095%205.72852%204.74524L5.04754%203.40873C4.34193%203.76825%203.76825%204.34193%203.40873%205.04754L4.74524%205.72852Z'%20fill='%23252525'/%3e%3cpath%20d='M20.25%2015H21V13.5H20.25V15ZM3.75%2013.5H3V15H3.75V13.5ZM3.75%2015H20.25V13.5H3.75V15Z'%20fill='%23252525'/%3e%3c/svg%3e",Bu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.0858%202.32272C11.4533%201.55909%2012.5467%201.55909%2012.9142%202.32272L15.0872%206.83907C15.2351%207.14651%2015.5293%207.35876%2015.8692%207.40319L20.8676%208.05664C21.7134%208.16721%2022.0517%209.20388%2021.4322%209.78704L17.779%2013.2263C17.5295%2013.4612%2017.4167%2013.8058%2017.4795%2014.1417L18.3971%2019.0563C18.5526%2019.8892%2017.6676%2020.5294%2016.9183%2020.1261L12.4825%2017.7385C12.1815%2017.5764%2011.8185%2017.5764%2011.5175%2017.7385L7.08174%2020.1261C6.33244%2020.5294%205.44743%2019.8892%205.60294%2019.0563L6.52054%2014.1417C6.58325%2013.8058%206.47048%2013.4612%206.22097%2013.2263L2.56776%209.78704C1.94833%209.20388%202.28661%208.16721%203.13241%208.05664L8.13078%207.40319C8.47066%207.35876%208.7649%207.14651%208.91282%206.83907L11.0858%202.32272Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ju="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.25%204.75H5.75C4.09315%204.75%202.75%206.09315%202.75%207.75V8.25M17.75%204.75H18.25C19.9069%204.75%2021.25%206.09315%2021.25%207.75V8.25M21.25%2015.75V16.25C21.25%2017.9069%2019.9069%2019.25%2018.25%2019.25H17.75M6.25%2019.25H5.75C4.09315%2019.25%202.75%2017.9069%202.75%2016.25V15.75'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.75%209.75H16.25'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.75%2014.25H14.25'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Hu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.25%2010.75V6.75C20.25%205.09315%2018.9069%203.75%2017.25%203.75H6.75C5.09315%203.75%203.75%205.09315%203.75%206.75V17.25C3.75%2018.9069%205.09315%2020.25%206.75%2020.25H10.75M14.1879%2020.8366L12.0869%2013.0056C11.9372%2012.4478%2012.4478%2011.9372%2013.0056%2012.0869L20.8366%2014.1879C21.2665%2014.3032%2021.3428%2014.8805%2020.9576%2015.1035L17.4231%2017.1498C17.3097%2017.2155%2017.2155%2017.3097%2017.1498%2017.4231L15.1035%2020.9576C14.8805%2021.3428%2014.3032%2021.2665%2014.1879%2020.8366Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uu="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.125%2016.875H16.875'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.9167%206.45833C12.1113%206.45833%2011.4583%207.11125%2011.4583%207.91667V12.9167C11.4583%2013.7221%2012.1113%2014.375%2012.9167%2014.375C13.7221%2014.375%2014.375%2013.7221%2014.375%2012.9167V7.91667C14.375%207.11125%2013.7221%206.45833%2012.9167%206.45833Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08333%203.125C6.27792%203.125%205.625%203.77792%205.625%204.58333V12.9167C5.625%2013.7221%206.27792%2014.375%207.08333%2014.375C7.88875%2014.375%208.54167%2013.7221%208.54167%2012.9167V4.58333C8.54167%203.77792%207.88875%203.125%207.08333%203.125Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Vu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%2018.25H7.25M3.75%2012H9.25M3.75%205.75H20.25M17%2010.5L18.5%2013.5L21.5%2015L18.5%2016.5L17%2019.5L15.5%2016.5L12.5%2015L15.5%2013.5L17%2010.5Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",$u="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.9016%209.48786L10.3899%203.2788C8.39443%201.97623%205.75%203.40798%205.75%205.79094V18.2091C5.75%2020.592%208.39442%2022.0238%2010.3899%2020.7212L19.9016%2014.5121C21.7151%2013.3283%2021.7151%2010.6717%2019.9016%209.48786Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e",zu={Header:_u,Announcement:Vu,PrimaryHero:Hu,ProductHero:Nu,Items:Tu,FeaturedItems:Pu,Content:Ou,Stats:Au,ImageGallery:Mu,Logos:Du,CTA:Fu,FAQ:Iu,Reviews:Bu,ContactUs:ju,Footer:Uu,Video:$u},Ju="_wrapper_1jz8n_1",qu="_submodal_1jz8n_14",Sr={wrapper:Ju,submodal:qu},Wu=({children:e,positionTop:t,positionLeft:n})=>{const{keyBlock:r,startHideTimeout:o,clearHideTimeout:a,setMouseOverModal:s}=Dr();return r?k.jsx("div",{className:Sr.wrapper,style:t?{top:t,left:n||void 0}:{},onMouseEnter:()=>{a(),s(!0)},onMouseLeave:()=>{s(!1),o()},children:e}):null},Zu=({children:e})=>{const{hoverBlockId:t,startHideTimeout:n,clearHideTimeout:r,setMouseOverModal:o}=Dr();return t?k.jsx("div",{className:Be(Sr.wrapper,Sr.submodal),onMouseEnter:()=>{r(),o(!0)},onMouseLeave:()=>{o(!1),n()},children:e}):null},Gu="_applyButton_17aa5_2",Ku="_content_17aa5_7",Yu="_title_17aa5_14",Xu="_label_17aa5_21",Qu="_colorValue_17aa5_40",ed="_colorMap_17aa5_48",td="_indicator_17aa5_57",nd="_hueSlider_17aa5_66",rd="_slider_17aa5_97",od="_buttons_17aa5_102",ad="_name_17aa5_109",sd="_secondary_17aa5_114",id="_input_17aa5_122",ld="_modal_17aa5_160",cd="_alphaSlider_17aa5_249",ud="_alphaBackground_17aa5_257",dd="_alphaGradient_17aa5_268",fd="_chargeTypes_17aa5_297",hd="_charge_17aa5_297",pd="_chargeActive_17aa5_326",md="_gradient_17aa5_334",gd="_color_17aa5_40",vd="_colorActive_17aa5_355",yd="_gradientWrapper_17aa5_362",wd="_subtitle_17aa5_368",bd="_colorTypes_17aa5_375",Sd="_colorType_17aa5_375",Cd="_colorTypeActive_17aa5_399",Ed="_colorsWrapper_17aa5_404",xd="_colors_17aa5_404",W={applyButton:Gu,content:Ku,title:Yu,label:Xu,colorValue:Qu,colorMap:ed,indicator:td,hueSlider:nd,slider:rd,buttons:od,name:ad,secondary:sd,input:id,modal:ld,alphaSlider:cd,alphaBackground:ud,alphaGradient:dd,chargeTypes:fd,charge:hd,chargeActive:pd,gradient:md,color:gd,colorActive:vd,gradientWrapper:yd,subtitle:wd,colorTypes:bd,colorType:Sd,colorTypeActive:Cd,colorsWrapper:Ed,colors:xd};function ar(e){return(e.includes("linear-gradient")||e.includes("radial-gradient"))&&/^linear-gradient\(\d+deg,\s*#[A-Fa-f0-9]{8}\s+\d+%,\s*#[A-Fa-f0-9]{8}\s+\d+%\)$/.test(e)?!0:/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e)}const Da=e=>{const{initialColor:t,onChange:n,title:r,labelStyle:o="primary",isGradientActive:a=!0,isBlockSettings:s}=e,[i,l]=we.useState(t);we.useEffect(()=>{l(t)},[t]);const{setActiveLabel:c,setModalPosition:u,setInitialColor:d,setShowModal:h,setUpdate:y,setColor:m,setColorChange:p,setIsGradientActive:v,colorChange:R}=Fr();we.useEffect(()=>{const T=()=>{h(!1),c(null),d(t),y(()=>{}),m(t),p(()=>{})};return document.body.addEventListener("click",T),()=>{document.body.removeEventListener("click",T)}},[t]);const b=T=>{T.stopPropagation(),h(!0),p(l),y(n),d(t),m(i),v(a);const{top:H,left:w}=Ma(T,600,288,10,20,230,80);u({top:H,left:w})},L=T=>{const H=T.target.value;l(H),ar(H)&&(n(H),m(H),p(R))},P=()=>{ar(i)||l(t)};return k.jsxs("div",{className:W.content,children:[k.jsx("span",{className:Be(W.name,{[W.secondary]:o==="secondary"}),children:r}),k.jsxs("label",{className:W.label,onClick:T=>T.stopPropagation(),children:[k.jsx("div",{className:W.colorValue,style:{background:ar(i)?i:t},onClick:s?void 0:b}),k.jsx("input",{type:"text",value:i.includes("linear-gradient")?i:i.toUpperCase(),onChange:L,onBlur:P,className:W.input,style:{textTransform:i.includes("linear-gradient")?"none":"uppercase"}})]})]})},Rd=()=>{const{modalPosition:e,color:t,initialColor:n,setShowModal:r,hue:o,saturation:a,brightness:s,alpha:i,dragging:l,setDragging:c,setHue:u,setSaturation:d,setBrightness:h,setAlpha:y,colorChange:m,setColor:p,update:v,isGradient:R,setIsGradient:b,gradientDirection:L,setGradientDirection:P,hue2:T,saturation2:H,brightness2:w,alpha2:_,setHue2:G,setSaturation2:B,setBrightness2:ae,setAlpha2:ee,activeColorIndex:te,setActiveColorIndex:he,isGradientActive:Oe,isBlockSettings:Te}=Fr(),Ze=(V,U,ne)=>{U/=100,ne/=100;const z=de=>(de+V/60)%6,K=de=>ne*(1-U*Math.max(0,Math.min(z(de),4-z(de),1))),q=Math.round(255*K(5)),re=Math.round(255*K(3)),Z=Math.round(255*K(1));return{r:q,g:re,b:Z}},ue=V=>V.toString(16).padStart(2,"0"),Re=(V,U,ne,z)=>{const{r:K,g:q,b:re}=Ze(V,U,ne),Z=Math.round(z/100*255);return`#${ue(K)}${ue(q)}${ue(re)}${ue(Z)}`},Ce=(V,U,ne,z)=>{if(R)if(te===1){u(V),d(U),h(ne),y(z);const K=Re(V,U,ne,z),q=Re(T,H,w,_),Z=`linear-gradient(${L==="vertical"?"0deg":"90deg"}, ${K} 0%, ${q} 100%)`;m(Z),p(Z)}else{G(V),B(U),ae(ne),ee(z);const K=Re(V,U,ne,z),q=Re(o,a,s,i),Z=`linear-gradient(${L==="vertical"?"0deg":"90deg"}, ${q} 0%, ${K} 100%)`;m(Z),p(Z)}else{const K=Re(V,U,ne,z);m(K),p(K)}},Se=(V,U,ne)=>{const{width:z,height:K}=ne.getBoundingClientRect(),q=Math.max(0,Math.min(V/z*100,100)),re=Math.max(0,Math.min(100-U/K*100,100));R?te===1?(d(q),h(re),Ce(o,q,re,i)):(B(q),ae(re),Ce(T,q,re,_)):(d(q),h(re),Ce(o,q,re,i))},Pe=V=>{const{offsetX:U,offsetY:ne}=V.nativeEvent;c(!0),Se(U,ne,V.currentTarget)},Ue=V=>{if(l){const U=document.querySelector(`.${W.colorMap}`),{left:ne,top:z}=U.getBoundingClientRect(),K=V.clientX-ne,q=V.clientY-z;Se(K,q,U)}},se=()=>{c(!1)};we.useEffect(()=>{function V(z){const K=/linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/,q=z.match(K);if(q){const re=q[1],Z=q[2],de=q[3];return{angle:re,col1:Z,col2:de}}return null}function U(z){const K=parseInt(z.slice(1,3),16),q=parseInt(z.slice(3,5),16),re=parseInt(z.slice(5,7),16),Z=parseInt(z.slice(7,9),16)/255*100,{h:de,s:tt,b:ht}=ne(K,q,re);return{h:de,s:tt,b:ht,a:Z}}function ne(z,K,q){z/=255,K/=255,q/=255;const re=Math.max(z,K,q),Z=Math.min(z,K,q);let de=0;const tt=re-Z,ht=(re===0?0:tt/re)*100,Ke=re*100;if(re===Z)de=0;else switch(re){case z:de=((K-q)/tt+(K<q?6:0))*60;break;case K:de=((q-z)/tt+2)*60;break;case q:de=((z-K)/tt+4)*60;break}return{h:de,s:ht,b:Ke}}if(n&&n.startsWith("linear-gradient")){const z=V(n);if(z){const{angle:K,col1:q,col2:re}=z,Z=U(q),de=U(re);b(!0),P(K==="0deg"?"vertical":"horizontal"),u(Z.h),d(Z.s),h(Z.b),y(Z.a),G(de.h),B(de.s),ae(de.b),ee(de.a),he(1)}}else if(n){const K=function(re){let Z=re;return Z.length===7?Z+"ff":Z.length===9?Z:Z.length===4?Z[0]+Z[1].repeat(2)+Z[2].repeat(2)+Z[3].repeat(2)+"ff":"#000000ff"}(n),q=U(K);b(!1),u(q.h),d(q.s),h(q.b),y(q.a)}},[n,b,P,u,d,h,y,G,B,ae,ee,he]),we.useEffect(()=>{let V,U,ne,z;R?te===1?(V=o,U=a,ne=s,z=i):(V=T,U=H,ne=w,z=_):(V=o,U=a,ne=s,z=i),Ce(V,U,ne,z)},[R,L,te,o,a,s,i,T,H,w,_]),we.useEffect(()=>{const V=ne=>Ue(ne),U=()=>se();return l?(document.addEventListener("mousemove",V),document.addEventListener("mouseup",U)):(document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",U)),()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",U)}},[l,R,L]);function pe(){if(!R)v(t);else{const V=Re(o,a,s,i),U=Re(T,H,w,_),z=`linear-gradient(${L==="vertical"?"0deg":"90deg"}, ${V} 0%, ${U} 100%)`;v(z)}r(!1)}function Ae(){r(!1),m(n)}const Ee=R?te===1?o:T:o,ft=R?te===1?a:H:a,rn=R?te===1?s:w:s,qn=R?te===1?i:_:i,{r:on,g:xe,b:et}=Ze(Ee,ft,rn),an=`linear-gradient(to right, rgba(${on}, ${xe}, ${et}, 0), rgba(${on}, ${xe}, ${et}, 1))`,sn=Re(o,a,s,i),Ge=Re(T,H,w,_);return k.jsxs("div",{className:W.modal,onClick:V=>V.stopPropagation(),style:{top:`${e.top}px`,left:`${e.left}px`},children:[k.jsx("h2",{className:W.title,children:"Color"}),Oe&&k.jsxs("div",{className:W.colorTypes,children:[k.jsxs("div",{className:Be(W.colorType,{[W.colorTypeActive]:!R}),onClick:()=>b(!1),children:[k.jsx("div",{style:{background:"#757575",width:"16px",height:"16px",borderRadius:"50%"}}),"Solid"]}),k.jsxs("div",{className:Be(W.colorType,{[W.colorTypeActive]:R}),onClick:()=>b(!0),children:[k.jsx("div",{style:{background:"linear-gradient(to bottom, #757575 0%, #DBDBDB 100%)",width:"16px",height:"16px",borderRadius:"50%"}}),"Linear"]})]}),R&&Oe&&k.jsxs("div",{className:W.colorsWrapper,children:[k.jsx("div",{className:W.colors,style:{background:`linear-gradient(90deg, ${sn} 0%, ${Ge} 100%)`}}),k.jsx("div",{className:Be(W.color,{[W.colorActive]:te===1}),onClick:()=>he(1),style:{background:sn}}),k.jsx("div",{className:Be(W.color,{[W.colorActive]:te===2}),onClick:()=>he(2),style:{background:Ge}})]}),k.jsx("div",{className:W.colorMap,onMouseDown:Pe,style:{background:`
40
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(a=o(a,r(i)))}return a}function r(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 i in a)t.call(a,i)&&a[i]&&(s=o(s,i));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})()})(_a);var yu=_a.exports;const Be=Pa(yu),wu=ie(e=>({currentDevice:{icon:"Desktop",value:"desktop"},setCurrentDevice:t=>e(()=>({currentDevice:t}))}));ie(e=>({pageData:null,setPageData:t=>e(()=>({pageData:t}))}));const Dr=ie((e,t)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,setHoverBlockId:n=>{e({hoverBlockId:n})},showModal:(n,r="hoverBlockId")=>{t().hideTimeout&&clearTimeout(t().hideTimeout),e({isModalVisible:!0,[r]:n})},hideModal:(n="hoverBlockId")=>{e({isModalVisible:!1,[n]:null})},startHideTimeout:()=>{if(!t().isMouseOverModal){const n=setTimeout(()=>{e({isModalVisible:!1,hoverBlockId:null,keyBlock:null})},500);e({hideTimeout:n})}},clearHideTimeout:()=>{t().hideTimeout&&(clearTimeout(t().hideTimeout),e({hideTimeout:null}))},setMouseOverModal:n=>{e({isMouseOverModal:n})},isPreviewVisible:!1,showPreview:(n,r="hoverBlockId")=>{e({isPreviewVisible:!0,[r]:n})},hidePreview:(n="hoverBlockId")=>{e({isPreviewVisible:!1,[n]:null})},keyBlock:null,setKeyBlock:n=>{e({keyBlock:n})},hoverBlockTopPosition:null,setHoverBlockTopPosition:n=>{e({hoverBlockTopPosition:n})}})),Oa=ie(Jn(e=>({fonts:[],setFonts:t=>e(()=>({fonts:t}))}),{name:"fonts-storage"})),Fr=ie()(e=>({color:"default",initialColor:"",setInitialColor:t=>e(()=>({initialColor:t})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,alpha:100,isGradientActive:!0,isBlockSettings:!1,isGradient:!1,setIsGradient:t=>e(()=>({isGradient:t})),gradientDirection:"vertical",setGradientDirection:t=>e(()=>({gradientDirection:t})),hue2:0,saturation2:100,brightness2:100,alpha2:100,setHue2:t=>e(()=>({hue2:t})),setSaturation2:t=>e(()=>({saturation2:t})),setBrightness2:t=>e(()=>({brightness2:t})),setAlpha2:t=>e(()=>({alpha2:t})),activeColorIndex:1,setActiveColorIndex:t=>e(()=>({activeColorIndex:t})),setModalPosition:t=>e(()=>({modalPosition:t})),setHue:t=>e(()=>({hue:t})),setSaturation:t=>e(()=>({saturation:t})),setBrightness:t=>e(()=>({brightness:t})),setIsBlockSettings:t=>e(()=>({isBlockSettings:t})),setShowModal:t=>e({isBlockSettings:!1,showModal:t}),setDragging:t=>e(()=>({dragging:t})),setActiveLabel:t=>e(()=>({activeLabel:t})),setColor:t=>e(()=>({color:t})),setUpdate:t=>e(()=>({update:t})),setColorChange:t=>e(()=>({colorChange:t})),setAlpha:t=>e(()=>({alpha:t})),setIsGradientActive:t=>e(()=>({isGradientActive:t})),resetColors:()=>e(()=>({color:"default",initialColor:"",activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,alpha:100,isGradient:!1,gradientDirection:"vertical",hue2:0,saturation2:100,brightness2:100,alpha2:100,activeColorIndex:1,isGradientActive:!0}))})),Aa=ie(e=>({showTooltip:!1,setShowTooltip:t=>e({showTooltip:t})})),bu="_loader_jr7a4_1",Su={loader:bu},Cu=()=>k.jsx("div",{className:Su.loader}),Eu="_tooltip_7oy60_1",xu={tooltip:Eu},Ru=e=>{const{text:t}=e,{setShowTooltip:n}=Aa();return we.useEffect(()=>(n(!0),()=>{n(!1)}),[]),k.jsx("div",{className:xu.tooltip,children:t})},Lu=e=>e?e.replace(/_/g," ").split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" and "):"";function ku(e,t){if(!t||!t[e])return"unknown name";const n=new t[e];return!n.blockSettings||!n.blockSettings.displayName?"unknown name":n.blockSettings.displayName}const Ma=(e,t,n,r,o,a,s)=>{const i=e.currentTarget.getBoundingClientRect(),l=window.innerHeight-i.bottom,c=i.top,u=window.innerWidth-i.right,d=i.left;let h,y;return h=i.bottom+r+window.scrollY,y=i.left,(l<t||l<o)&&(c>=t+s?h=i.top-t-r+window.scrollY:h=window.scrollY+s),h-window.scrollY<s&&(h=window.scrollY+s),(u<n||u<a)&&(d>=n?y=i.right-n:y=(window.innerWidth-n)/2),y<i.right+a&&(y=i.right+a),y<i.right&&y+n>i.left&&h<i.bottom&&h+t>i.top&&(u>=n+a?y=i.right+r+a:l>=t?h=i.bottom+r+window.scrollY:(h=window.scrollY+s,y=(window.innerWidth-n)/2)),{top:h,left:y}},Nu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.25%2015.45V8.55C20.25%206.86984%2020.25%206.02976%2019.923%205.38803C19.6354%204.82354%2019.1765%204.3646%2018.612%204.07698C17.9702%203.75%2017.1302%203.75%2015.45%203.75H8.55C6.86984%203.75%206.02976%203.75%205.38803%204.07698C4.82354%204.3646%204.3646%204.82354%204.07698%205.38803C3.75%206.02976%203.75%206.86984%203.75%208.55V15.45C3.75%2017.1302%203.75%2017.9702%204.07698%2018.612C4.3646%2019.1765%204.82354%2019.6354%205.38803%2019.923C6.02976%2020.25%206.86984%2020.25%208.55%2020.25H15.45C17.1302%2020.25%2017.9702%2020.25%2018.612%2019.923C19.1765%2019.6354%2019.6354%2019.1765%2019.923%2018.612C20.25%2017.9702%2020.25%2017.1302%2020.25%2015.45Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Tu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.0002%2012V20.5M12.0002%2012L4.5%207.78125M12.0002%2012L19.2627%207.91474M20.25%209.11392V14.8861C20.25%2015.9699%2019.6654%2016.9695%2018.7208%2017.5008L13.4708%2020.4539C12.5575%2020.9676%2011.4425%2020.9676%2010.5292%2020.4539L5.27922%2017.5008C4.33459%2016.9695%203.75%2015.9699%203.75%2014.8861V9.11392C3.75%208.0301%204.33459%207.03055%205.27922%206.49919L10.5292%203.54607C11.4425%203.03237%2012.5575%203.03237%2013.4708%203.54607L18.7208%206.4992C19.6654%207.03055%2020.25%208.0301%2020.25%209.11392Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Pu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.25%2020.25H6.75C5.09315%2020.25%203.75%2018.9069%203.75%2017.25V15.75M15.75%2020.25H17.25C18.9069%2020.25%2020.25%2018.9069%2020.25%2017.25V15.75M3.75%208.25V6.75C3.75%205.09315%205.09315%203.75%206.75%203.75H8.25M15.75%203.75H17.25C18.9069%203.75%2020.25%205.09315%2020.25%206.75V8.25M15.25%2010.3571L12%2011.9999M12%2011.9999L8.75%2010.3571M12%2011.9999V15.2856M11.0077%208.28125L9.25772%209.28125C8.63457%209.63733%208.25%2010.3%208.25%2011.0177V12.9822C8.25%2013.6999%208.63457%2014.3626%209.25772%2014.7186L11.0077%2015.7186C11.6226%2016.07%2012.3774%2016.07%2012.9923%2015.7186L14.7423%2014.7186C15.3654%2014.3626%2015.75%2013.6999%2015.75%2012.9822V11.0177C15.75%2010.3%2015.3654%209.63733%2014.7423%209.28125L12.9923%208.28125C12.3774%207.9299%2011.6226%207.9299%2011.0077%208.28125Z'%20stroke='%23252525'%20stroke-width='1.40625'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",_u="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.125%203.125H16.875'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.9167%205.625C12.1113%205.625%2011.4583%206.27792%2011.4583%207.08333V12.0833C11.4583%2012.8887%2012.1113%2013.5417%2012.9167%2013.5417C13.7221%2013.5417%2014.375%2012.8887%2014.375%2012.0833V7.08333C14.375%206.27792%2013.7221%205.625%2012.9167%205.625Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08333%205.625C6.27792%205.625%205.625%206.27792%205.625%207.08333V15.4167C5.625%2016.2221%206.27792%2016.875%207.08333%2016.875C7.88875%2016.875%208.54167%2016.2221%208.54167%2015.4167V7.08333C8.54167%206.27792%207.88875%205.625%207.08333%205.625Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ou="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.1073%2017.1577C17.1073%2018.8655%2015.7213%2020.25%2014.0116%2020.25C12.3019%2020.25%2010.9159%2018.8655%2010.9159%2017.1577C10.9159%2015.4499%2012.3019%2014.0654%2014.0116%2014.0654C15.7213%2014.0654%2017.1073%2015.4499%2017.1073%2017.1577Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.99145%206.98598L10.4681%2011.5764L3.75%2014.0189L4.99145%206.98598Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.0106%204.46532C14.1536%203.9321%2014.7017%203.61567%2015.235%203.75841L19.2835%204.842C19.8172%204.98485%2020.1339%205.53345%2019.9908%206.06708L18.9065%2010.1093C18.7635%2010.6425%2018.2154%2010.9589%2017.6821%2010.8162L13.6336%209.73258C13.0999%209.58973%2012.7832%209.04113%2012.9263%208.50749L14.0106%204.46532Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e",Au="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.25%2014.75H10C10%2014.3358%209.66421%2014%209.25%2014V14.75ZM3.75%2020.25H3V21H3.75V20.25ZM14.75%209.25H15.5C15.5%208.83579%2015.1642%208.5%2014.75%208.5V9.25ZM20.25%2020.25V21H21V20.25H20.25ZM1.75%2019.5C1.33579%2019.5%201%2019.8358%201%2020.25C1%2020.6642%201.33579%2021%201.75%2021V19.5ZM22.25%2021C22.6642%2021%2023%2020.6642%2023%2020.25C23%2019.8358%2022.6642%2019.5%2022.25%2019.5V21ZM5.25%2015.5H9.25V14H5.25V15.5ZM8.5%2014.75V20.25H10V14.75H8.5ZM9.25%2019.5H3.75V21H9.25V19.5ZM4.5%2020.25V16.25H3V20.25H4.5ZM5.25%2014C4.00736%2014%203%2015.0074%203%2016.25H4.5C4.5%2015.8358%204.83579%2015.5%205.25%2015.5V14ZM10.75%2010H14.75V8.5H10.75V10ZM14%209.25V20.25H15.5V9.25H14ZM14.75%2019.5H9.25V21H14.75V19.5ZM10%2020.25V10.75H8.5V20.25H10ZM10.75%208.5C9.50736%208.5%208.5%209.50736%208.5%2010.75H10C10%2010.3358%2010.3358%2010%2010.75%2010V8.5ZM16.25%204.5H18.75V3H16.25V4.5ZM19.5%205.25V20.25H21V5.25H19.5ZM20.25%2019.5H14.75V21H20.25V19.5ZM15.5%2020.25V5.25H14V20.25H15.5ZM18.75%204.5C19.1642%204.5%2019.5%204.83579%2019.5%205.25H21C21%204.00736%2019.9926%203%2018.75%203V4.5ZM16.25%203C15.0074%203%2014%204.00736%2014%205.25H15.5C15.5%204.83579%2015.8358%204.5%2016.25%204.5V3ZM1.75%2021H22.25V19.5H1.75V21Z'%20fill='%23252525'/%3e%3c/svg%3e",Mu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2014.2105L6.84488%2012.0821C7.66137%2011.5378%208.75215%2011.6663%209.41987%2012.3853C10.9123%2013.9926%2012.6426%2015.4538%2015%2015.4538C17.1727%2015.4538%2018.6125%2014.6485%2020%2013.261M6.75%2020.25H17.25C18.9069%2020.25%2020.25%2018.9069%2020.25%2017.25V6.75C20.25%205.09315%2018.9069%203.75%2017.25%203.75H6.75C5.09315%203.75%203.75%205.09315%203.75%206.75V17.25C3.75%2018.9069%205.09315%2020.25%206.75%2020.25ZM17.25%208.75C17.25%209.85457%2016.3546%2010.75%2015.25%2010.75C14.1454%2010.75%2013.25%209.85457%2013.25%208.75C13.25%207.64543%2014.1454%206.75%2015.25%206.75C16.3546%206.75%2017.25%207.64543%2017.25%208.75Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Du="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.252%2019.25H6.74803C5.26465%2019.25%204.29985%2017.6884%204.96324%2016.3611L10.2152%205.85345C10.9506%204.38218%2013.0494%204.38218%2013.7848%205.85345L19.0368%2016.3611C19.7001%2017.6884%2018.7354%2019.25%2017.252%2019.25Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202.75V4.5M16.9069%205.09326L15.5962%206.40392M6.40381%2015.5962L5.09315%2016.9069M4.5%2011H2.75M6.40381%206.40381L5.09315%205.09315M14.1323%2020.999L10.5777%2011.3226C10.3542%2010.7143%2010.9552%2010.1281%2011.5577%2010.3666L21.0397%2014.1199C21.4283%2014.2737%2021.4679%2014.8081%2021.1062%2015.0175L17.4231%2017.1498C17.3097%2017.2155%2017.2155%2017.3097%2017.1498%2017.4231L15.0343%2021.0771C14.822%2021.4438%2014.2784%2021.3967%2014.1323%2020.999Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Iu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.38803%2019.923L5.72852%2019.2548H5.72852L5.38803%2019.923ZM4.07698%2018.612L3.40873%2018.9525H3.40873L4.07698%2018.612ZM19.923%2018.612L19.2548%2018.2715V18.2715L19.923%2018.612ZM18.612%2019.923L18.2715%2019.2548H18.2715L18.612%2019.923ZM19.923%205.38803L19.2548%205.72852V5.72852L19.923%205.38803ZM18.612%204.07698L18.9525%203.40873V3.40873L18.612%204.07698ZM4.07698%205.38803L4.74524%205.72852L4.07698%205.38803ZM5.38803%204.07698L5.72852%204.74524L5.38803%204.07698ZM19.5%208.55V15.45H21V8.55H19.5ZM15.45%2019.5H8.55V21H15.45V19.5ZM4.5%2015.45V8.55H3V15.45H4.5ZM8.55%204.5H15.45V3H8.55V4.5ZM8.55%2019.5C7.69755%2019.5%207.10331%2019.4994%206.64068%2019.4616C6.1868%2019.4245%205.92604%2019.3554%205.72852%2019.2548L5.04754%2020.5913C5.49175%2020.8176%205.97189%2020.912%206.51853%2020.9566C7.05641%2021.0006%207.7223%2021%208.55%2021V19.5ZM3%2015.45C3%2016.2777%202.99942%2016.9436%203.04336%2017.4815C3.08803%2018.0281%203.18238%2018.5082%203.40873%2018.9525L4.74524%2018.2715C4.6446%2018.074%204.57546%2017.8132%204.53838%2017.3593C4.50058%2016.8967%204.5%2016.3025%204.5%2015.45H3ZM5.72852%2019.2548C5.30516%2019.039%204.96095%2018.6948%204.74524%2018.2715L3.40873%2018.9525C3.76825%2019.6581%204.34193%2020.2317%205.04754%2020.5913L5.72852%2019.2548ZM19.5%2015.45C19.5%2016.3025%2019.4994%2016.8967%2019.4616%2017.3593C19.4245%2017.8132%2019.3554%2018.074%2019.2548%2018.2715L20.5913%2018.9525C20.8176%2018.5082%2020.912%2018.0281%2020.9566%2017.4815C21.0006%2016.9436%2021%2016.2777%2021%2015.45H19.5ZM15.45%2021C16.2777%2021%2016.9436%2021.0006%2017.4815%2020.9566C18.0281%2020.912%2018.5082%2020.8176%2018.9525%2020.5913L18.2715%2019.2548C18.074%2019.3554%2017.8132%2019.4245%2017.3593%2019.4616C16.8967%2019.4994%2016.3025%2019.5%2015.45%2019.5V21ZM19.2548%2018.2715C19.0391%2018.6948%2018.6948%2019.039%2018.2715%2019.2548L18.9525%2020.5913C19.6581%2020.2317%2020.2318%2019.6581%2020.5913%2018.9525L19.2548%2018.2715ZM21%208.55C21%207.7223%2021.0006%207.05641%2020.9566%206.51853C20.912%205.97189%2020.8176%205.49175%2020.5913%205.04754L19.2548%205.72852C19.3554%205.92604%2019.4245%206.1868%2019.4616%206.64068C19.4994%207.10331%2019.5%207.69755%2019.5%208.55H21ZM15.45%204.5C16.3025%204.5%2016.8967%204.50058%2017.3593%204.53838C17.8132%204.57546%2018.074%204.6446%2018.2715%204.74524L18.9525%203.40873C18.5082%203.18238%2018.0281%203.08803%2017.4815%203.04336C16.9436%202.99942%2016.2777%203%2015.45%203V4.5ZM20.5913%205.04754C20.2318%204.34193%2019.6581%203.76825%2018.9525%203.40873L18.2715%204.74524C18.6948%204.96095%2019.0391%205.30516%2019.2548%205.72852L20.5913%205.04754ZM4.5%208.55C4.5%207.69755%204.50058%207.10331%204.53838%206.64068C4.57546%206.1868%204.6446%205.92604%204.74524%205.72852L3.40873%205.04754C3.18238%205.49175%203.08803%205.97189%203.04336%206.51853C2.99942%207.05641%203%207.7223%203%208.55H4.5ZM8.55%203C7.7223%203%207.05641%202.99942%206.51853%203.04336C5.97189%203.08803%205.49175%203.18238%205.04754%203.40873L5.72852%204.74524C5.92604%204.6446%206.1868%204.57546%206.64068%204.53838C7.10331%204.50058%207.69755%204.5%208.55%204.5V3ZM4.74524%205.72852C4.96095%205.30516%205.30516%204.96095%205.72852%204.74524L5.04754%203.40873C4.34193%203.76825%203.76825%204.34193%203.40873%205.04754L4.74524%205.72852Z'%20fill='currentColor'/%3e%3cpath%20d='M20.25%2015H21V13.5H20.25V15ZM3.75%2013.5H3V15H3.75V13.5ZM3.75%2015H20.25V13.5H3.75V15Z'%20fill='currentColor'/%3e%3c/svg%3e",Bu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.0858%202.32272C11.4533%201.55909%2012.5467%201.55909%2012.9142%202.32272L15.0872%206.83907C15.2351%207.14651%2015.5293%207.35876%2015.8692%207.40319L20.8676%208.05664C21.7134%208.16721%2022.0517%209.20388%2021.4322%209.78704L17.779%2013.2263C17.5295%2013.4612%2017.4167%2013.8058%2017.4795%2014.1417L18.3971%2019.0563C18.5526%2019.8892%2017.6676%2020.5294%2016.9183%2020.1261L12.4825%2017.7385C12.1815%2017.5764%2011.8185%2017.5764%2011.5175%2017.7385L7.08174%2020.1261C6.33244%2020.5294%205.44743%2019.8892%205.60294%2019.0563L6.52054%2014.1417C6.58325%2013.8058%206.47048%2013.4612%206.22097%2013.2263L2.56776%209.78704C1.94833%209.20388%202.28661%208.16721%203.13241%208.05664L8.13078%207.40319C8.47066%207.35876%208.7649%207.14651%208.91282%206.83907L11.0858%202.32272Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ju="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.25%204.75H5.75C4.09315%204.75%202.75%206.09315%202.75%207.75V8.25M17.75%204.75H18.25C19.9069%204.75%2021.25%206.09315%2021.25%207.75V8.25M21.25%2015.75V16.25C21.25%2017.9069%2019.9069%2019.25%2018.25%2019.25H17.75M6.25%2019.25H5.75C4.09315%2019.25%202.75%2017.9069%202.75%2016.25V15.75'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.75%209.75H16.25'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.75%2014.25H14.25'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Hu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.25%2010.75V6.75C20.25%205.09315%2018.9069%203.75%2017.25%203.75H6.75C5.09315%203.75%203.75%205.09315%203.75%206.75V17.25C3.75%2018.9069%205.09315%2020.25%206.75%2020.25H10.75M14.1879%2020.8366L12.0869%2013.0056C11.9372%2012.4478%2012.4478%2011.9372%2013.0056%2012.0869L20.8366%2014.1879C21.2665%2014.3032%2021.3428%2014.8805%2020.9576%2015.1035L17.4231%2017.1498C17.3097%2017.2155%2017.2155%2017.3097%2017.1498%2017.4231L15.1035%2020.9576C14.8805%2021.3428%2014.3032%2021.2665%2014.1879%2020.8366Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uu="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.125%2016.875H16.875'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.9167%206.45833C12.1113%206.45833%2011.4583%207.11125%2011.4583%207.91667V12.9167C11.4583%2013.7221%2012.1113%2014.375%2012.9167%2014.375C13.7221%2014.375%2014.375%2013.7221%2014.375%2012.9167V7.91667C14.375%207.11125%2013.7221%206.45833%2012.9167%206.45833Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08333%203.125C6.27792%203.125%205.625%203.77792%205.625%204.58333V12.9167C5.625%2013.7221%206.27792%2014.375%207.08333%2014.375C7.88875%2014.375%208.54167%2013.7221%208.54167%2012.9167V4.58333C8.54167%203.77792%207.88875%203.125%207.08333%203.125Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Vu="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%2018.25H7.25M3.75%2012H9.25M3.75%205.75H20.25M17%2010.5L18.5%2013.5L21.5%2015L18.5%2016.5L17%2019.5L15.5%2016.5L12.5%2015L15.5%2013.5L17%2010.5Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",$u="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.9016%209.48786L10.3899%203.2788C8.39443%201.97623%205.75%203.40798%205.75%205.79094V18.2091C5.75%2020.592%208.39442%2022.0238%2010.3899%2020.7212L19.9016%2014.5121C21.7151%2013.3283%2021.7151%2010.6717%2019.9016%209.48786Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e",zu={Header:_u,Announcement:Vu,PrimaryHero:Hu,ProductHero:Nu,Items:Tu,FeaturedItems:Pu,Content:Ou,Stats:Au,ImageGallery:Mu,Logos:Du,CTA:Fu,FAQ:Iu,Reviews:Bu,ContactUs:ju,Footer:Uu,Video:$u},Ju="_wrapper_1jz8n_1",qu="_submodal_1jz8n_14",Sr={wrapper:Ju,submodal:qu},Wu=({children:e,positionTop:t,positionLeft:n})=>{const{keyBlock:r,startHideTimeout:o,clearHideTimeout:a,setMouseOverModal:s}=Dr();return r?k.jsx("div",{className:Sr.wrapper,style:t?{top:t,left:n||void 0}:{},onMouseEnter:()=>{a(),s(!0)},onMouseLeave:()=>{s(!1),o()},children:e}):null},Zu=({children:e})=>{const{hoverBlockId:t,startHideTimeout:n,clearHideTimeout:r,setMouseOverModal:o}=Dr();return t?k.jsx("div",{className:Be(Sr.wrapper,Sr.submodal),onMouseEnter:()=>{r(),o(!0)},onMouseLeave:()=>{o(!1),n()},children:e}):null},Gu="_applyButton_17aa5_2",Ku="_content_17aa5_7",Yu="_title_17aa5_14",Xu="_label_17aa5_21",Qu="_colorValue_17aa5_40",ed="_colorMap_17aa5_48",td="_indicator_17aa5_57",nd="_hueSlider_17aa5_66",rd="_slider_17aa5_97",od="_buttons_17aa5_102",ad="_name_17aa5_109",sd="_secondary_17aa5_114",id="_input_17aa5_122",ld="_modal_17aa5_160",cd="_alphaSlider_17aa5_249",ud="_alphaBackground_17aa5_257",dd="_alphaGradient_17aa5_268",fd="_chargeTypes_17aa5_297",hd="_charge_17aa5_297",pd="_chargeActive_17aa5_326",md="_gradient_17aa5_334",gd="_color_17aa5_40",vd="_colorActive_17aa5_355",yd="_gradientWrapper_17aa5_362",wd="_subtitle_17aa5_368",bd="_colorTypes_17aa5_375",Sd="_colorType_17aa5_375",Cd="_colorTypeActive_17aa5_399",Ed="_colorsWrapper_17aa5_404",xd="_colors_17aa5_404",W={applyButton:Gu,content:Ku,title:Yu,label:Xu,colorValue:Qu,colorMap:ed,indicator:td,hueSlider:nd,slider:rd,buttons:od,name:ad,secondary:sd,input:id,modal:ld,alphaSlider:cd,alphaBackground:ud,alphaGradient:dd,chargeTypes:fd,charge:hd,chargeActive:pd,gradient:md,color:gd,colorActive:vd,gradientWrapper:yd,subtitle:wd,colorTypes:bd,colorType:Sd,colorTypeActive:Cd,colorsWrapper:Ed,colors:xd};function ar(e){return(e.includes("linear-gradient")||e.includes("radial-gradient"))&&/^linear-gradient\(\d+deg,\s*#[A-Fa-f0-9]{8}\s+\d+%,\s*#[A-Fa-f0-9]{8}\s+\d+%\)$/.test(e)?!0:/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e)}const Da=e=>{const{initialColor:t,onChange:n,title:r,labelStyle:o="primary",isGradientActive:a=!0,isBlockSettings:s}=e,[i,l]=we.useState(t);we.useEffect(()=>{l(t)},[t]);const{setActiveLabel:c,setModalPosition:u,setInitialColor:d,setShowModal:h,setUpdate:y,setColor:m,setColorChange:p,setIsGradientActive:v,colorChange:R}=Fr();we.useEffect(()=>{const T=()=>{h(!1),c(null),d(t),y(()=>{}),m(t),p(()=>{})};return document.body.addEventListener("click",T),()=>{document.body.removeEventListener("click",T)}},[t]);const b=T=>{T.stopPropagation(),h(!0),p(l),y(n),d(t),m(i),v(a);const{top:H,left:w}=Ma(T,600,288,10,20,230,80);u({top:H,left:w})},L=T=>{const H=T.target.value;l(H),ar(H)&&(n(H),m(H),p(R))},P=()=>{ar(i)||l(t)};return k.jsxs("div",{className:W.content,children:[k.jsx("span",{className:Be(W.name,{[W.secondary]:o==="secondary"}),children:r}),k.jsxs("label",{className:W.label,onClick:T=>T.stopPropagation(),children:[k.jsx("div",{className:W.colorValue,style:{background:ar(i)?i:t},onClick:s?void 0:b}),k.jsx("input",{type:"text",value:i.includes("linear-gradient")?i:i.toUpperCase(),onChange:L,onBlur:P,className:W.input,style:{textTransform:i.includes("linear-gradient")?"none":"uppercase"}})]})]})},Rd=()=>{const{modalPosition:e,color:t,initialColor:n,setShowModal:r,hue:o,saturation:a,brightness:s,alpha:i,dragging:l,setDragging:c,setHue:u,setSaturation:d,setBrightness:h,setAlpha:y,colorChange:m,setColor:p,update:v,isGradient:R,setIsGradient:b,gradientDirection:L,setGradientDirection:P,hue2:T,saturation2:H,brightness2:w,alpha2:_,setHue2:G,setSaturation2:B,setBrightness2:ae,setAlpha2:ee,activeColorIndex:te,setActiveColorIndex:he,isGradientActive:Oe,isBlockSettings:Te}=Fr(),Ze=(V,U,ne)=>{U/=100,ne/=100;const z=de=>(de+V/60)%6,K=de=>ne*(1-U*Math.max(0,Math.min(z(de),4-z(de),1))),q=Math.round(255*K(5)),re=Math.round(255*K(3)),Z=Math.round(255*K(1));return{r:q,g:re,b:Z}},ue=V=>V.toString(16).padStart(2,"0"),Re=(V,U,ne,z)=>{const{r:K,g:q,b:re}=Ze(V,U,ne),Z=Math.round(z/100*255);return`#${ue(K)}${ue(q)}${ue(re)}${ue(Z)}`},Ce=(V,U,ne,z)=>{if(R)if(te===1){u(V),d(U),h(ne),y(z);const K=Re(V,U,ne,z),q=Re(T,H,w,_),Z=`linear-gradient(${L==="vertical"?"0deg":"90deg"}, ${K} 0%, ${q} 100%)`;m(Z),p(Z)}else{G(V),B(U),ae(ne),ee(z);const K=Re(V,U,ne,z),q=Re(o,a,s,i),Z=`linear-gradient(${L==="vertical"?"0deg":"90deg"}, ${q} 0%, ${K} 100%)`;m(Z),p(Z)}else{const K=Re(V,U,ne,z);m(K),p(K)}},Se=(V,U,ne)=>{const{width:z,height:K}=ne.getBoundingClientRect(),q=Math.max(0,Math.min(V/z*100,100)),re=Math.max(0,Math.min(100-U/K*100,100));R?te===1?(d(q),h(re),Ce(o,q,re,i)):(B(q),ae(re),Ce(T,q,re,_)):(d(q),h(re),Ce(o,q,re,i))},Pe=V=>{const{offsetX:U,offsetY:ne}=V.nativeEvent;c(!0),Se(U,ne,V.currentTarget)},Ue=V=>{if(l){const U=document.querySelector(`.${W.colorMap}`),{left:ne,top:z}=U.getBoundingClientRect(),K=V.clientX-ne,q=V.clientY-z;Se(K,q,U)}},se=()=>{c(!1)};we.useEffect(()=>{function V(z){const K=/linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/,q=z.match(K);if(q){const re=q[1],Z=q[2],de=q[3];return{angle:re,col1:Z,col2:de}}return null}function U(z){const K=parseInt(z.slice(1,3),16),q=parseInt(z.slice(3,5),16),re=parseInt(z.slice(5,7),16),Z=parseInt(z.slice(7,9),16)/255*100,{h:de,s:tt,b:ht}=ne(K,q,re);return{h:de,s:tt,b:ht,a:Z}}function ne(z,K,q){z/=255,K/=255,q/=255;const re=Math.max(z,K,q),Z=Math.min(z,K,q);let de=0;const tt=re-Z,ht=(re===0?0:tt/re)*100,Ke=re*100;if(re===Z)de=0;else switch(re){case z:de=((K-q)/tt+(K<q?6:0))*60;break;case K:de=((q-z)/tt+2)*60;break;case q:de=((z-K)/tt+4)*60;break}return{h:de,s:ht,b:Ke}}if(n&&n.startsWith("linear-gradient")){const z=V(n);if(z){const{angle:K,col1:q,col2:re}=z,Z=U(q),de=U(re);b(!0),P(K==="0deg"?"vertical":"horizontal"),u(Z.h),d(Z.s),h(Z.b),y(Z.a),G(de.h),B(de.s),ae(de.b),ee(de.a),he(1)}}else if(n){const K=function(re){let Z=re;return Z.length===7?Z+"ff":Z.length===9?Z:Z.length===4?Z[0]+Z[1].repeat(2)+Z[2].repeat(2)+Z[3].repeat(2)+"ff":"#000000ff"}(n),q=U(K);b(!1),u(q.h),d(q.s),h(q.b),y(q.a)}},[n,b,P,u,d,h,y,G,B,ae,ee,he]),we.useEffect(()=>{let V,U,ne,z;R?te===1?(V=o,U=a,ne=s,z=i):(V=T,U=H,ne=w,z=_):(V=o,U=a,ne=s,z=i),Ce(V,U,ne,z)},[R,L,te,o,a,s,i,T,H,w,_]),we.useEffect(()=>{const V=ne=>Ue(ne),U=()=>se();return l?(document.addEventListener("mousemove",V),document.addEventListener("mouseup",U)):(document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",U)),()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",U)}},[l,R,L]);function pe(){if(!R)v(t);else{const V=Re(o,a,s,i),U=Re(T,H,w,_),z=`linear-gradient(${L==="vertical"?"0deg":"90deg"}, ${V} 0%, ${U} 100%)`;v(z)}r(!1)}function Ae(){r(!1),m(n)}const Ee=R?te===1?o:T:o,ft=R?te===1?a:H:a,rn=R?te===1?s:w:s,qn=R?te===1?i:_:i,{r:on,g:xe,b:et}=Ze(Ee,ft,rn),an=`linear-gradient(to right, rgba(${on}, ${xe}, ${et}, 0), rgba(${on}, ${xe}, ${et}, 1))`,sn=Re(o,a,s,i),Ge=Re(T,H,w,_);return k.jsxs("div",{className:W.modal,onClick:V=>V.stopPropagation(),style:{top:`${e.top}px`,left:`${e.left}px`},children:[k.jsx("h2",{className:W.title,children:"Color"}),Oe&&k.jsxs("div",{className:W.colorTypes,children:[k.jsxs("div",{className:Be(W.colorType,{[W.colorTypeActive]:!R}),onClick:()=>b(!1),children:[k.jsx("div",{style:{background:"#757575",width:"16px",height:"16px",borderRadius:"50%"}}),"Solid"]}),k.jsxs("div",{className:Be(W.colorType,{[W.colorTypeActive]:R}),onClick:()=>b(!0),children:[k.jsx("div",{style:{background:"linear-gradient(to bottom, #757575 0%, #DBDBDB 100%)",width:"16px",height:"16px",borderRadius:"50%"}}),"Linear"]})]}),R&&Oe&&k.jsxs("div",{className:W.colorsWrapper,children:[k.jsx("div",{className:W.colors,style:{background:`linear-gradient(90deg, ${sn} 0%, ${Ge} 100%)`}}),k.jsx("div",{className:Be(W.color,{[W.colorActive]:te===1}),onClick:()=>he(1),style:{background:sn}}),k.jsx("div",{className:Be(W.color,{[W.colorActive]:te===2}),onClick:()=>he(2),style:{background:Ge}})]}),k.jsx("div",{className:W.colorMap,onMouseDown:Pe,style:{background:`
41
41
  linear-gradient(to top, black, transparent),
42
42
  linear-gradient(to right, hsl(${Ee}, 100%, 100%), hsl(${Ee}, 100%, 50%))
43
43
  `},children:k.jsx("div",{className:W.indicator,style:{position:"absolute",left:`${ft}%`,top:`${100-rn}%`,transform:"translate(-50%, -50%)"}})}),k.jsx("div",{className:W.hueSlider,style:{bottom:Te?R?"225px":"150px":R?"175px":"100px"},children:k.jsx("input",{type:"range",min:"0",max:"360",value:Ee,onChange:V=>{const U=Number(V.target.value);R?te===1?Ce(U,a,s,i):Ce(U,H,w,_):(u(U),Ce(U,a,s,i))},className:W.slider})}),k.jsxs("div",{className:W.alphaSlider,style:{bottom:Te?R?"200px":"125px":R?"150px":"75px"},children:[k.jsx("div",{className:W.alphaBackground}),k.jsx("div",{className:W.alphaGradient,style:{background:an}}),k.jsx("input",{type:"range",min:"0",max:"100",value:qn,onChange:V=>{const U=Number(V.target.value);R?te===1?Ce(o,a,s,U):Ce(T,H,w,U):(y(U),Ce(o,a,s,U))},className:W.slider})]}),R&&Oe&&k.jsxs("div",{className:W.gradientWrapper,children:[k.jsx("h3",{className:W.subtitle,children:"Rotation"}),k.jsx("div",{className:W.gradient,children:k.jsxs("div",{className:W.chargeTypes,children:[k.jsxs("div",{className:Be(W.charge,{[W.chargeActive]:L==="horizontal"}),onClick:()=>P("horizontal"),children:[k.jsx(je.Icon,{name:"ArrowsHorizontal",width:20,height:20}),"Horizontal"]}),k.jsxs("div",{className:Be(W.charge,{[W.chargeActive]:L==="vertical"}),onClick:()=>P("vertical"),children:[k.jsx(je.Icon,{name:"ArrowsVertical",width:20,height:20}),"Vertical"]})]})})]}),Te&&k.jsx(Da,{initialColor:t,onChange:V=>p(V),title:"",isBlockSettings:Te}),k.jsxs("div",{className:W.buttons,children:[k.jsx(je.ButtonSettings,{onClick:Ae,className:Be(W.applyButton,W.cancelButton),type:"Secondary",children:"Cancel"}),k.jsx(je.ButtonSettings,{onClick:pe,className:W.applyButton,type:"Primary",children:"Apply"})]})]})},Ld="_wrapper_1bsje_1",kd="_open_1bsje_16",Nd="_close_1bsje_20",sr={wrapper:Ld,open:kd,close:Nd},Td=e=>{const{isOpen:t,isClose:n,children:r}=e;return k.jsx("div",{className:Be(sr.wrapper,{[sr.open]:t,[sr.close]:n}),children:r})},Pd="_blocks_1h216_1",_d="_block_1h216_1",Od="_active_1h216_21",ir={blocks:Pd,block:_d,active:Od},Ad=e=>{const{items:t,selectedItem:n,onSelect:r,getIconName:o}=e;return k.jsx("div",{className:ir.blocks,children:t.map(a=>k.jsx("div",{className:Be(ir.block,{[ir.active]:n===a}),onClick:()=>r(a),children:k.jsx(je.Icon,{name:o(a),fill:n===a?"#252525":"#757575"})},String(a)))})},Md="_layout_1pjho_1",Dd="_main_1pjho_10",Fd="_content_1pjho_18",Id="_notifications_1pjho_26",yn={layout:Md,main:Dd,content:Fd,notifications:Id},Bd="_notification_rpmz2_1",jd="_text_rpmz2_22",Hd="_timer_rpmz2_27",Ud="_warning_rpmz2_32",Vd="_error_rpmz2_37",$d="_success_rpmz2_42",Lt={notification:Bd,text:jd,timer:Hd,warning:Ud,error:Vd,success:$d},Oo={warning:"#C1972A",error:"#FF3F19",success:"#338B13"},zd=e=>{const{type:t,message:n,style:r,padding:o,timer:a,id:s,element:i}=e,[l,c]=we.useState(a),{setNotifications:u}=Fe();function d(){const y=Fe.getState().notifications.filter(m=>m.id!==s);u([...y])}return we.useEffect(()=>{const h=setTimeout(()=>{d()},a*1e3);return()=>clearTimeout(h)},[a]),we.useEffect(()=>{const h=setInterval(()=>c(y=>y-1),1e3);return()=>clearInterval(h)},[l]),i?i({type:t,message:n,style:r,padding:o,timer:a,id:s}):k.jsx("div",{style:{padding:o,position:"relative"},children:k.jsxs("div",{className:Be(Lt.notification,{[Lt.warning]:t==="warning",[Lt.error]:t==="error",[Lt.success]:t==="success"}),style:r,children:[k.jsx("div",{children:k.jsx(je.Icon,{name:"Info",fill:Oo[t],width:20,height:20})}),k.jsx("div",{className:Lt.text,children:n}),a&&k.jsx("div",{className:Lt.timer,children:l}),k.jsx("div",{style:{display:"flex"},children:k.jsx(je.Icon,{name:"X",fill:Oo[t],width:20,height:20,hoverable:!0,onClick:()=>d()})})]})})},Jd=()=>{const{isOpenModal:e,setIsOpenModal:t}=Yt(),{openModal:n,setOpenModal:r}=Na(),{isAntistock:o}=Mr(),{notifications:a}=Fe(),{title:s,description:i,setTitle:l,setDescription:c,setOnConfirm:u}=Ta();return k.jsxs("div",{id:"builder",className:o?"builder-dark":"",children:[k.jsxs("div",{className:yn.layout,children:[k.jsx(Ft.Navbar,{}),k.jsxs("main",{className:yn.main,children:[k.jsx(Ft.Header,{}),k.jsxs("div",{className:yn.content,children:[k.jsx(Ft.Sidebar,{}),k.jsx(Ft.Preview,{})]})]})]}),s&&i&&k.jsx(je.BuilderModal,{close:()=>{l(null),c(null),u(null)},children:k.jsx(je.ConfirmationModal,{})}),e&&k.jsx(je.BuilderModal,{close:t,children:k.jsx(Ft.ModifyPage,{})}),n&&k.jsx(je.BuilderModal,{close:r,children:k.jsx(je.ChooseImageModal,{})}),a.length>0&&k.jsx("div",{className:yn.notifications,children:a.map(d=>k.jsx(zd,{type:d.status,message:d.message,timer:d.timer||10,id:d.id,element:d.component},d.id))})]})};async function kt(e,t){const n=localStorage.getItem("shopId")||void 0,o=`${nn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;return(await at({url:o,withToken:!0,method:"get"})).data}async function qd(){try{const[e,t,n,r,o,a,s,i,l]=await Promise.allSettled([kt("v1","general"),kt("v1","faqs"),kt("v1","listings"),kt("v1","products"),kt("v1","reviews"),kt("v1","categories"),{data:null},{data:null},{data:null}]);return{general:e,faqs:t,listings:n,products:r,reviews:o,categories:a,fullPosts:s,posts:i,vouches:l}}catch(e){throw console.error("Error fetching page data:",e),e}}async function Wd(){const e=nn.getState().apiUrls;try{const{data:t}=await ce.get(`${e.googleFonts}?key=AIzaSyAEsTbjAPUz_TeuFCq4z4LPK9w_vst0Pfw`);return t.items}catch(t){throw console.error("Error fetching page data:",t),t}}async function Zd(){var o;const e=localStorage.getItem("shopId"),t=localStorage.getItem("draftId"),r=`${nn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/pages`;try{return(await at({url:r,withToken:!0,method:"get"})).data}catch(a){return{data:[],status:(o=a.response)==null?void 0:o.status}}}async function Gd(){const e=localStorage.getItem("shopId")||void 0,t=localStorage.getItem("draftId")||void 0,r=`${nn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/all`;return(await at({url:r,withToken:!0,method:"get"})).data}const Kd=e=>{const{blocks:t,settings:n,header:r,footer:o,announcement:a}=e,{setBlocks:s,setSourceBlocks:i,setHeader:l,setFooter:c,setAnnouncement:u,setSettings:d}=Ra(),{fonts:h,setFonts:y}=Oa(),{setSettings:m}=wr(),{setPageContext:p}=Yt(),{setThemeSettings:v,setIsLoadingThemeSettings:R}=On(),{setIsLoadingSettings:b}=wr(),{notifications:L,setNotifications:P}=Fe(),{setBlocks:T,blocks:H,createPage:w,setIsLoadingLayers:_,setHeader:G,setAnnouncement:B,setFooter:ae}=An(),{setPages:ee,setCurrentPage:te}=Yt();return we.useEffect(()=>{R(!0),_(!0),b(!0);const he={};Object.keys(t).forEach(Te=>{he[Te]=t[Te]}),i(he),s(he),l(r),c(o),u(a),d(n),(async()=>{const Te={listings:null,products:null,reviews:null,categories:null,faqs:null,general:null,fullPosts:null,posts:null,preserveContent:!1,vouches:null},Ze=await qd();Object.keys(Ze).map(se=>{const pe=se;Te[pe]=Ze[pe].value.data}),p(Te);const{data:ue}=await Gd(),{themeSettings:Re,layers:Ce,settings:Se}=ue||{};if(Se){if(Se.settings){const se=new n;se.blockSettings={displayName:"Settings",isAddable:!1,...Se.settings},m(se.blockSettings)}Se.header&&G(Se.header),Se.footer&&ae(Se.footer),Se.announcement&&B(Se.announcement)}else{const se=new n;m(se.blockSettings)}Re&&v(Re);const Pe=await Zd(),Ue={};if(Pe.status>=400&&P([...L,{id:ot(),message:"Error fetching pages",status:"error"}]),Pe.data.length>0?(Pe.data.forEach(se=>{var pe,Ae;H[se.path]||w(se.path),Ue[se.id||se.path]={...se,icon:$t[se.path]?$t[se.path].icon:"File",name:se.name||((pe=se.seo)==null?void 0:pe.pageTitle)||((Ae=$t[se.path])==null?void 0:Ae.name)||se.path}}),ee(Ue),te(Object.keys(Ue)[0])):(ee($t),te(Object.keys($t)[0])),h.length===0){const se=await Wd();y([...se.map(pe=>{const Ae=pe.variants.map(Ee=>{if(!Ee.includes("italic"))return Ee==="regular"?"400":Ee}).filter(Ee=>Ee!==void 0);return{name:pe.family,weights:Ae}})])}T(Ce),R(!1),_(!1),b(!1)})()},[]),k.jsx(Jd,{})};function Yd(){const e=new URL(window.location.href);window.history.replaceState(null,"",e.pathname+e.hash)}function Xd(){const e=new URLSearchParams(document.location.search),t=e.get("shopId")||localStorage.getItem("shopId"),n=e.get("sellerAccessToken")||localStorage.getItem("sellerAccessToken"),r=e.get("draftId")||localStorage.getItem("draftId");return Yd(),n&&localStorage.setItem("sellerAccessToken",n),t&&localStorage.setItem("shopId",t),r&&localStorage.setItem("draftId",r),!!(n&&t&&r)}const Qd="data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%200%20204%20241'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M204%200V118.282L154.174%20134.707V69.0074L49.7111%20102.77V43.5716L204%200Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M154.174%20134.694V191.155L0%20241V117.471L49.7114%20102.757V169.597L154.174%20134.694Z'%20fill='%23FF3F19'/%3e%3c/svg%3e",e0="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2019%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.0103662%2023.5362C0.0538052%2022.4425%200.370173%2021.4309%201.08058%2020.6127C1.92699%2019.6379%202.91375%2019.2329%204.14841%2019.1732C4.162%2020.1401%204.15111%2021.1085%204.15091%2022.0756L4.70583%2022.0747L7.42027%2022.0755C7.95952%2022.0752%208.50027%2022.0844%209.03933%2022.0742L9.17755%2022.0731L10.6132%2022.0759C10.8265%2022.0759%2011.0767%2022.1021%2011.2852%2022.0658C11.3052%2022.0703%2011.3534%2022.0735%2011.3625%2022.0928C11.3917%2022.1543%2011.3688%2031.0517%2011.3725%2031.9631C11.1563%2032.0856%2010.2676%2031.8701%2010.0303%2031.7947C9.89866%2031.7528%209.644%2031.6914%209.54946%2031.5874L9.51914%2031.584C9.46943%2031.5736%209.44171%2031.5537%209.40126%2031.5222C9.30218%2031.5131%209.14954%2031.4132%209.07718%2031.343C9.00129%2031.3163%208.92757%2031.2576%208.85921%2031.2134L8.85617%2031.2002C8.5748%2031.0715%208.14929%2030.6244%207.94318%2030.376C7.35205%2029.6639%206.93892%2028.7659%206.83493%2027.8203C6.78763%2027.3904%206.7994%2026.9595%206.80055%2026.5277C6.80084%2026.4202%206.82996%2026.126%206.78242%2026.0387L6.71237%2026.023C6.54382%2026.0528%206.34316%2026.0328%206.17124%2026.0324L1.0194%2026.0325L0.942306%2026.0307C0.74237%2026.0326%200.173082%2026.0689%200.0224192%2026.0192L0.00848581%2026.0029C0.022853%2025.8597%200.0136924%2025.7065%200.013837%2025.562L0.0113299%2024.6651L0.0117161%2024.5253C0.0150266%2024.1956%200.0145767%2023.8659%200.0103662%2023.5362Z'%20fill='currentColor'/%3e%3cpath%20d='M6.79824%200.00127802C6.88001%20-0.000781892%206.96176%20-0.000351703%207.04349%200.00256876C7.12523%200.00549261%207.20682%200.0108998%207.28827%200.0187905C7.36968%200.0266845%207.45082%200.0370518%207.53169%200.0498924C7.61259%200.0627296%207.69305%200.078018%207.77309%200.0957576C7.85312%200.113501%207.93259%200.133663%208.0115%200.156244C8.09044%200.178828%208.16868%200.203796%208.24624%200.231148C8.3238%200.258499%208.40053%200.28819%208.47645%200.32022C8.55237%200.352247%208.62736%200.386559%208.70141%200.423156L8.71428%200.423492C8.76476%200.450874%208.815%200.479135%208.8661%200.50516C8.947%200.550491%209.03065%200.593185%209.10687%200.646856L9.24939%200.733144C9.31674%200.78126%209.38361%200.83049%209.45202%200.87695C10.462%201.67615%2011.1434%202.77146%2011.325%204.10211C11.4076%204.70784%2011.3729%205.34243%2011.372%205.9541C11.4625%205.96599%2011.5526%205.9664%2011.6436%205.96762C12.6033%205.93794%2013.5708%205.96289%2014.5314%205.96294C15.459%205.96305%2016.3927%205.93758%2017.3195%205.9633C17.5874%205.96523%2017.9062%206.00101%2018.1677%205.95273C18.1496%206.13096%2018.1583%206.31472%2018.1585%206.49401L18.1598%207.38388L18.1595%207.51855C18.1591%207.83084%2018.14%208.15609%2018.1607%208.46685C18.109%209.73893%2017.6972%2010.8198%2016.8003%2011.6891C15.9969%2012.4676%2015.0894%2012.76%2014.0228%2012.8194L14.021%2010.9083C14.0209%2010.5892%2014.0389%2010.2573%2014.0163%209.93952C14.0002%209.92849%2013.9879%209.91884%2013.9692%209.9133C13.7941%209.93418%2013.6055%209.92148%2013.4293%209.92133H9.15258L9.04077%209.92082L7.56664%209.92209C7.31676%209.92224%207.04528%209.94526%206.79858%209.90893L6.79824%200.00127802Z'%20fill='currentColor'/%3e%3cpath%20d='M4.13987%205.96279C4.65941%205.9653%205.17894%205.96467%205.69847%205.96091C5.70059%207.27995%205.71757%208.60219%205.69833%209.92082L4.15072%209.92046L4.15106%2011.4065C4.15096%2011.6783%204.1406%2011.9555%204.15443%2012.2266C4.73799%2012.8393%205.31307%2013.4655%205.90921%2014.0644L5.98321%2014.0407C6.25311%2014.0833%206.6928%2014.0501%206.97981%2014.0499L12.7386%2014.0492L13.5943%2014.0482C13.7363%2014.0479%2013.9068%2014.0286%2014.0457%2014.0577L15.8019%2015.9078L15.8915%2015.997L15.9615%2016.0784L15.9955%2016.1093L17.4221%2017.6163C17.6528%2017.8599%2017.9077%2018.0979%2018.1211%2018.3569C18.1463%2018.3875%2018.1599%2018.4086%2018.1691%2018.4477C18.1415%2018.6757%2018.1577%2018.9211%2018.1579%2019.1514L18.1594%2020.4531C18.1597%2021.8112%2018.142%2023.1721%2018.1599%2024.5297L18.1589%2024.6625L18.158%2025.5556C18.158%2025.7089%2018.1437%2025.8808%2018.1676%2026.0315L18.0995%2026.031L17.2568%2026.0329L17.2101%2026.0308C16.2512%2026.0486%2015.2892%2026.0305%2014.3299%2026.0308C13.7488%2026.031%2013.0694%2026.064%2012.4959%2026.0258L12.4831%2026.0202C12.4481%2025.9239%2012.4717%2022.4806%2012.47%2022.075L14.0216%2022.0744C14.0024%2021.3241%2014.0324%2020.5711%2014.0173%2019.8203C13.4629%2019.2116%2012.887%2018.6041%2012.3052%2018.0244L12.293%2017.9978C12.0554%2018.0392%2011.5401%2018.0054%2011.2777%2018.0053L8.9362%2018.0074C7.75375%2017.9793%206.56306%2018.0065%205.37994%2018.0069C5.13497%2018.007%204.32737%2018.0401%204.13472%2017.9962L2.36331%2016.1262L2.29219%2016.0566L2.21959%2015.9758L2.15074%2015.9102C1.93803%2015.6694%201.70849%2015.441%201.48797%2015.2079L0%2013.631C0.0383768%2013.4512%200.014078%2013.2231%200.013837%2013.0369L0.0121494%2011.9198L0.0113299%207.52017L0.0122943%207.34622C0.0134032%206.9143%200.0453199%206.37479%200.00371286%205.95329C0.115854%205.96772%200.229056%205.9664%200.341872%205.96777C0.589393%205.96198%200.836946%205.96042%201.08453%205.9631L3.10905%205.96548C3.44789%205.96554%203.80282%205.98825%204.13987%205.96279Z'%20fill='currentColor'/%3e%3c/svg%3e",t0=e=>{const{blocks:t,settings:n,header:r,footer:o,announcement:a}=e,{isAntistock:s}=Mr(),[i,l]=we.useState(!0),c=Xt(),u=qe();return we.useEffect(()=>{const d=u.pathname;if(d.startsWith("/admin/builder")){d==="/admin/builder/add"?document.title="Add Section | Builder":d==="/admin/builder/theme"?document.title="Theme Settings | Builder":d==="/admin/builder/settings"?document.title="Settings | Builder":document.title=`Builder | ${s?"Antistock":"Billgang "}`;let h=document.querySelector("link[rel~='icon']");h||(h=document.createElement("link"),h.rel="icon",document.head.appendChild(h)),h&&(h.href=s?e0:Qd)}},[u]),we.useEffect(()=>{l(!0),Xd()?l(!1):c("/")},[]),k.jsx(k.Fragment,{children:i?k.jsx(je.LoaderBuilder,{}):k.jsx(Kd,{blocks:t,settings:n,header:r,footer:o,announcement:a})})},n0=Object.freeze(Object.defineProperty({__proto__:null,BuilderPage:t0},Symbol.toStringTag,{value:"Module"}));exports.AddSectionSubmodal=Zu;exports.AnimatedPanel=Td;exports.AntistockRoutes=Xo;exports.ColorPicker=Da;exports.ColorPickerModal=Rd;exports.IS_LOCAL_HOST=cu;exports.Loader=Cu;exports.NavLink=Ko;exports.Navigate=si;exports.Outlet=ii;exports.Picker=Ad;exports.RadiusVariables=uu;exports.RouterProvider=Pi;exports.Routes=Pr;exports.Submodal=Wu;exports.ThicknessVariables=du;exports.Tooltip=Ru;exports.aspectRatio=fu;exports.aspectRatioOptions=hu;exports.axios=ce;exports.blockIcons=zu;exports.clx=Be;exports.commonjsGlobal=vu;exports.convertCfImageIdToUrl=Fc;exports.createBrowserRouter=Ei;exports.defaultPagePaths=lu;exports.devices=au;exports.extractDateAndTime=Uc;exports.formatLabel=Lu;exports.formatPrice=Ic;exports.formatTimestamp=Hc;exports.getDefaultExportFromCjs=Pa;exports.getDisplayName=ku;exports.getModalPosition=Ma;exports.index=n0;exports.jwtDecode=Qo;exports.navbarBlocks=ka;exports.normalizeInterval=jc;exports.percentageDifference=Bc;exports.referralSteps=Ji;exports.request=at;exports.sizeOptions=iu;exports.themeSettingsBlocks=su;exports.typeFontOptions=pu;exports.useApiStore=nn;exports.useBlocksStore=Ra;exports.useCartStore=Wc;exports.useChooseImageStore=Na;exports.useColorPickerStore=Fr;exports.useConfirmationModalStore=Ta;exports.useCustomerDashboardStore=Gi;exports.useDeviceStore=wu;exports.useDiscordStore=Gc;exports.useErrorStore=gu;exports.useFontsStore=Oa;exports.useGeneralStore=Mr;exports.useGetTsId=xa;exports.useHistoryStore=_e;exports.useLayersStore=An;exports.useLocation=qe;exports.useModalStore=Yc;exports.useNavbarStore=mu;exports.useNavigate=Xt;exports.useNotificationStore=Fe;exports.usePagesStore=Yt;exports.usePaginationPagesStore=Zc;exports.useParams=qs;exports.usePreviewStore=La;exports.useRouteError=qo;exports.useSearchParams=Bi;exports.useSettingsStore=wr;exports.useShareLinkStore=ou;exports.useStorefrontStore=Ki;exports.useSubmodalStore=Dr;exports.useSubscriptionStore=Kc;exports.useThemeSettingsStore=On;exports.useTooltipStore=Aa;exports.useTrackingAnalytics=Jc;exports.v4=ot;