@billgangcom/theme-lib 1.117.5 → 1.118.0
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.
- package/dist/{builder-Dcp5JIX2.js → builder-CcLZHVq3.js} +5 -5
- package/dist/{builder-C6H1N4FP.cjs → builder-JKkaOMOl.cjs} +2 -2
- package/dist/{builder-components-Bj_ecWtd.cjs → builder-components-B0SvEDG4.cjs} +1 -1
- package/dist/{builder-components-D_-yBjUv.js → builder-components-Dl3dEzV6.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +67 -66
- package/dist/{charge-_CEEL_lC.js → charge-DC4f3U8I.js} +235 -233
- package/dist/{charge-CDdwR76I.cjs → charge-LGilmNUv.cjs} +3 -3
- package/dist/{checkout-LuD-xUEH.js → checkout-B_qFvrUF.js} +5 -5
- package/dist/{checkout-BY7eHMQg.cjs → checkout-BaZLmyfk.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Dnj_qRMe.js → index-BFZm601D.js} +5 -5
- package/dist/{index-CRXry6Nc.js → index-Bh3_Rczn.js} +1 -1
- package/dist/{index-GWi3v3LH.js → index-BqtOxv5i.js} +5 -5
- package/dist/{index-C8knQe3w.cjs → index-BtQ89Hj3.cjs} +1 -1
- package/dist/{index-Dj9WbMhN.js → index-C-SrHRJh.js} +5 -5
- package/dist/{index-Cyvdq9bC.cjs → index-CmO3iWeV.cjs} +1 -1
- package/dist/{index-DU5qhu5H.cjs → index-CyiCR5lK.cjs} +1 -1
- package/dist/{index-DOGDvdAe.cjs → index-D4Hp4-Qp.cjs} +1 -1
- package/dist/{index-DlUuba7X.cjs → index-DtcojRuS.cjs} +1 -1
- package/dist/{index-6C0r0b28.js → index-Ek3qYkbu.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-CRkNBk1l.js → order-Bd24i-W3.js} +5 -5
- package/dist/{order-B2keJNN9.cjs → order-t2QoTU6S.cjs} +1 -1
- package/dist/src/pages/home/model.d.ts +1 -0
- package/dist/{subscription-qxCpanQb.js → subscription-CqhnWDq_.js} +5 -5
- package/dist/{subscription-v64vRqA-.cjs → subscription-DHhmsQxH.cjs} +1 -1
- package/dist/{ticket-C-A_Ok9u.cjs → ticket-Cv2XbF6y.cjs} +1 -1
- package/dist/{ticket-BK3fx1Sw.js → ticket-r3Kx22M9.js} +5 -5
- package/dist/{top-up-DvRo2FT6.js → top-up-9OWzVCVP.js} +5 -5
- package/dist/{top-up-DCz_tgnE.cjs → top-up-Ba_v68et.cjs} +1 -1
- package/dist/{ui-components-DD5zQkng.js → ui-components-BGzv0KT2.js} +4 -4
- package/dist/{ui-components-DsX_DjBg.cjs → ui-components-C4hKK4aN.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-Coc0Q-Ug.js → validation-BUpHL2xL.js} +5 -5
- package/dist/{validation-gGpkWETM.cjs → validation-D3IO5HzB.cjs} +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import * as E from "react";
|
|
|
2
2
|
import Te, { useRef as jr, useEffect as Ta } from "react";
|
|
3
3
|
import * as _a from "react-dom";
|
|
4
4
|
import { jsx as M, jsxs as Re, Fragment as Pa } from "react/jsx-runtime";
|
|
5
|
-
import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-
|
|
6
|
-
import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-
|
|
7
|
-
import "./charge-
|
|
8
|
-
import "./ticket-
|
|
5
|
+
import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-BGzv0KT2.js";
|
|
6
|
+
import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-Dl3dEzV6.js";
|
|
7
|
+
import "./charge-DC4f3U8I.js";
|
|
8
|
+
import "./ticket-r3Kx22M9.js";
|
|
9
9
|
/**
|
|
10
10
|
* @remix-run/router v1.23.0
|
|
11
11
|
*
|
|
@@ -5262,7 +5262,7 @@ const {
|
|
|
5262
5262
|
const b = (v = p.response) == null ? void 0 : v.status;
|
|
5263
5263
|
if (b === 401)
|
|
5264
5264
|
try {
|
|
5265
|
-
const T = await import("./charge-
|
|
5265
|
+
const T = await import("./charge-DC4f3U8I.js").then((N) => N.a1);
|
|
5266
5266
|
T && T.logoutCustomer ? await T.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
|
|
5267
5267
|
} catch (T) {
|
|
5268
5268
|
console.error("Failed to import logoutCustomer:", T), localStorage.removeItem("token"), window.location.reload();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const we=require("react"),$a=require("react-dom"),L=require("react/jsx-runtime"),je=require("./ui-components-
|
|
1
|
+
"use strict";const we=require("react"),$a=require("react-dom"),L=require("react/jsx-runtime"),je=require("./ui-components-C4hKK4aN.cjs"),Dt=require("./builder-components-B0SvEDG4.cjs");require("./charge-LGilmNUv.cjs");require("./ticket-Cv2XbF6y.cjs");function Oo(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=Oo(we),za=Oo($a);/**
|
|
2
2
|
* @remix-run/router v1.23.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
@@ -33,7 +33,7 @@
|
|
|
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[wo]=this[wo]={accessors:{}}).accessors,o=this.prototype;function a(s){const i=jt(s);r[i]||(rc(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 Qn(e,t){const n=this||en,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 ha(e){return!!(e&&e.__CANCEL__)}function Pt(e,t,n){$.call(this,e??"canceled",$.ERR_CANCELED,t,n),this.name="CanceledError"}C.inherits(Pt,$,{__CANCEL__:!0});function pa(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 oc(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ac(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 sc(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 Tn=(e,t,n=3)=>{let r=0;const o=ac(50,250);return sc(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)},bo=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},So=e=>(...t)=>C.asap(()=>e(...t)),ic=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,lc=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 cc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uc(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ma(e,t,n){let r=!cc(t);return e&&r||n==!1?uc(e,t):t}const Co=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(Co(c),Co(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 ga=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=ua(ma(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&&ic(t.url))){const c=o&&a&&lc.read(a);c&&s.set(o,c)}return t},dc=typeof XMLHttpRequest<"u",fc=dc&&function(e){return new Promise(function(n,r){const o=ga(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 k=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:k,config:e,request:v};pa(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 _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||da;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new $(_,T.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,v)),v=null},a===void 0&&s.setContentType(null),"setRequestHeader"in v&&C.forEach(s.toJSON(),function(_,T){v.setRequestHeader(T,_)}),C.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),i&&i!=="json"&&(v.responseType=o.responseType),c&&([h,m]=Tn(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,y]=Tn(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(u=k=>{v&&(r(!k||k.type?new Pt(null,e,v):k),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=oc(o.url);if(b&&Ne.protocols.indexOf(b)===-1){r(new $("Unsupported protocol "+b+":",$.ERR_BAD_REQUEST,e));return}v.send(a||null)})},hc=(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 Pt(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}},pc=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},mc=async function*(e,t){for await(const n of gc(e))yield*pc(n,t)},gc=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()}},Eo=(e,t,n,r)=>{const o=mc(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})},Un=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",va=Un&&typeof ReadableStream=="function",vc=Un&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ya=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yc=va&&ya(()=>{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}),xo=64*1024,hr=va&&ya(()=>C.isReadableStream(new Response("").body)),_n={stream:hr&&(e=>e.body)};Un&&(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 wc=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 vc(e)).byteLength},bc=async(e,t)=>{const n=C.toFiniteNumber(e.getContentLength());return n??wc(t)},Sc=Un&&(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}=ga(e);c=c?(c+"").toLowerCase():"text";let y=hc([o,a&&a.toAbortSignal()],s),m;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(l&&yc&&n!=="get"&&n!=="head"&&(v=await bc(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,P]=bo(v,Tn(So(l)));r=Eo(T.body,xo,w,P)}}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 k=hr&&(c==="stream"||c==="response");if(hr&&(i||k&&p)){const T={};["status","statusText","headers"].forEach(G=>{T[G]=b[G]});const H=C.toFiniteNumber(b.headers.get("content-length")),[w,P]=i&&bo(H,Tn(So(i),!0))||[];b=new Response(Eo(b.body,xo,w,()=>{P&&P(),p&&p()}),T)}c=c||"text";let _=await _n[C.findKey(_n,c)||"text"](b,e);return!k&&p&&p(),await new Promise((T,H)=>{pa(T,H,{data:_,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)}}),pr={http:Fl,xhr:fc,fetch:Sc};C.forEach(pr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ro=e=>`- ${e}`,Cc=e=>C.isFunction(e)||e===null||e===!1,wa={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,!Cc(n)&&(r=pr[(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(Ro).join(`
|
|
35
35
|
`):" "+Ro(a[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:pr};function er(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pt(null,e)}function ko(e){return er(e),e.headers=De.from(e.headers),e.data=Qn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wa.getAdapter(e.adapter||en.adapter)(e).then(function(r){return er(e),r.data=Qn.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return ha(r)||(er(e),r&&r.response&&(r.response.data=Qn.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const ba="1.8.1",Vn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Lo={};Vn.transitional=function(t,n,r){function o(a,s){return"[Axios v"+ba+"] 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&&!Lo[s]&&(Lo[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}};Vn.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Ec(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 En={assertOptions:Ec,validators:Vn},Ye=En.validators;let wt=class{constructor(t){this.defaults=t,this.interceptors={request:new yo,response:new yo}}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&&En.assertOptions(r,{silentJSONParsing:Ye.transitional(Ye.boolean),forcedJSONParsing:Ye.transitional(Ye.boolean),clarifyTimeoutError:Ye.transitional(Ye.boolean)},!1),o!=null&&(C.isFunction(o)?n.paramsSerializer={serialize:o}:En.assertOptions(o,{encode:Ye.function,serialize:Ye.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),En.assertOptions(n,{baseUrl:Ye.spelling("baseURL"),withXsrfToken:Ye.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=ma(t.baseURL,t.url,t.allowAbsoluteUrls);return ua(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 xc=class Sa{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 Pt(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 Sa(function(o){t=o}),cancel:t}}};function Rc(e){return function(n){return e.apply(null,n)}}function kc(e){return C.isObject(e)&&e.isAxiosError===!0}const mr={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(mr).forEach(([e,t])=>{mr[t]=e});function Ca(e){const t=new wt(e),n=Qo(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 Ca(bt(e,o))},n}const ce=Ca(en);ce.Axios=wt;ce.CanceledError=Pt;ce.CancelToken=xc;ce.isCancel=ha;ce.VERSION=ba;ce.toFormData=Hn;ce.AxiosError=$;ce.Cancel=ce.CanceledError;ce.all=function(t){return Promise.all(t)};ce.spread=Rc;ce.isAxiosError=kc;ce.mergeConfig=bt;ce.AxiosHeaders=De;ce.formToJSON=e=>fa(C.isHTMLForm(e)?new FormData(e):e);ce.getAdapter=wa.getAdapter;ce.HttpStatusCode=mr;ce.default=ce;const{Axios:o0,AxiosError:Lc,CanceledError:a0,isCancel:s0,CancelToken:i0,VERSION:l0,all:c0,Cancel:u0,isAxiosError:d0,spread:f0,toFormData:h0,AxiosHeaders:p0,HttpStatusCode:m0,formToJSON:g0,getAdapter:v0,mergeConfig:y0}=ce,mn="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?mn:t,{headers:d});break;case"post":m=await ce.post(u?mn:t,o,{headers:d});break;case"put":m=await ce.put(u?mn:t,o,{headers:d});break;case"delete":m=await ce.delete(u?mn: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 _=await Promise.resolve().then(()=>require("./charge-CDdwR76I.cjs")).then(T=>T.auth);_&&_.logoutCustomer?await _.logoutCustomer():localStorage.removeItem("token"),window.location.reload()}catch(_){console.error("Failed to import logoutCustomer:",_),localStorage.removeItem("token"),window.location.reload()}const k=new Lc(R,(b==null?void 0:b.toString())||"400");throw k.response=p.response,k}},Nc="https://g-api.billgang.com",Tc="https://www.googleapis.com/webfonts/v1/webfonts",_c="https://stores-api.billgang.com",Pc="https://sl-api.billgang.com",Oc="https://customers-api.billgang.com",Mc="https://cashapp-api.billgang.com",Ac={api:Nc,googleFonts:Tc,storeApi:_c,slApi:Pc,customersApi:Oc,cashappApi:Mc},Dc=(e,t="300")=>e==="not found"?"empty":`https://imagedelivery.net/${e}/w=${t}`,Fc=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)},Ic=(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},Bc=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`},jc=e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),Hc=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]},gr=e=>{const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return t}},No=(e,t)=>{(t===null||typeof t!="object")&&window.localStorage.setItem(e,String(t));const n=JSON.stringify(t);window.localStorage.setItem(e,n)},tr="f10120ab-7ebb-4785-b240-7428edaa3c4e",Ht="https://t-api.billgang.com",Ut="https://internal-t-api.antistock.io",Jt="I",Uc=10*1e3,Vc=15*1e3,$c=15*60*1e3,Ea=()=>{var t;const e=gr(Jt);return((t=e==null?void 0:e.s)==null?void 0:t.i)||null},zc=(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?Ut:Ht}/${e}/t/p`,method:"post",withToken:!1})).data.data.id,l=async m=>(await at({url:`${n?Ut:Ht}/${e}/t/p/${t==="development"?tr:m}/s`,method:"post",withToken:!1})).data.data.id,c=async(m,p,v,R)=>{const b=t==="development"?tr:m;try{return(await at({url:`${n?Ut:Ht}/${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?Ut:Ht}/${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?Ut:Ht}/${e}/t/p/${t==="development"?tr:m}/s/${p}/e/${v}/h`,method:"post",withToken:!1});const b=gr(Jt);b&&(b.s.u=s().toString(),b.lu=s().toString(),No(Jt,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()}},Uc)},h=async()=>{var R,b,k,_;const m=`${window.location.hostname}${r}`,p=gr(Jt),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)||((k=p==null?void 0:p.s)==null?void 0:k.c)),P=!H||v-w>$c;(!H||P)&&(H=await l(T));const G=Number((p==null?void 0:p.lu)||0),B=v-G>Vc,ae=await c(T,H,m,p!=null&&p.l&&!B?p.l:void 0),ee={p:T,s:{i:H,c:((_=p==null?void 0:p.s)==null?void 0:_.c)??v.toString(),u:v.toString()},l:ae,lu:v.toString()};No(Jt,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])},Jc={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:Ea()};let Nt=null;const To=localStorage.getItem("token");if(To)try{Nt=Xo(JSON.parse(To)||"")}catch{Nt=null}const qc=ie(e=>({cart:{...Jc,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}}))})),Wc=ie(e=>({page:1,setPage:t=>e(()=>({page:t})),resetPage:()=>e(()=>({page:1}))})),Zc=ie(e=>({discordInfo:null,setDiscordInfo:t=>e(()=>({discordInfo:t}))})),Gc=ie(e=>({subscription:null,setSubscription:t=>e({subscription:t})})),tn=ie(e=>({apiUrls:Ac,setApiUrls:t=>e(()=>({apiUrls:t}))})),xa=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}))})),Ra=ie(e=>({general:null,setGeneral:t=>e(()=>({general:t})),isAntistock:!1,setIsAntistock:t=>e(()=>({isAntistock:t}))})),vr=ie(e=>({settings:null,setSettings:t=>{e(()=>({settings:t}))},isLoadingSettings:!0,setIsLoadingSettings:t=>e(()=>({isLoadingSettings:t}))})),Pn=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));Pe.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));Pe.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));Pe.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));Pe.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));Pe.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 Pe.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}))})),Kc=ie(e=>({isOpen:!0,setIsOpen:t=>e(()=>({isOpen:t}))}));var Le=[];for(var nr=0;nr<256;++nr)Le.push((nr+256).toString(16).slice(1));function Yc(e,t=0){return(Le[e[t+0]]+Le[e[t+1]]+Le[e[t+2]]+Le[e[t+3]]+"-"+Le[e[t+4]]+Le[e[t+5]]+"-"+Le[e[t+6]]+Le[e[t+7]]+"-"+Le[e[t+8]]+Le[e[t+9]]+"-"+Le[e[t+10]]+Le[e[t+11]]+Le[e[t+12]]+Le[e[t+13]]+Le[e[t+14]]+Le[e[t+15]]).toLowerCase()}var gn,Xc=new Uint8Array(16);function Qc(){if(!gn&&(gn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gn(Xc)}var eu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const _o={randomUUID:eu};function ot(e,t,n){if(_o.randomUUID&&!e)return _o.randomUUID();e=e||{};var r=e.random||(e.rng||Qc)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Yc(r)}function tu(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 yr=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return yr(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return yr(r)(n)}}}},nu=(e,t)=>(n,r,o)=>{let a={storage:tu(()=>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 k;return b((k=r())!=null?k:h)});const R=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(p=r())!=null?p:h))||void 0;return yr(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 k;const[_,T]=b;if(y=a.merge(T,(k=r())!=null?k:h),n(y,!0),_)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},$n=nu,Kt=ie($n((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}}})),ru=ie(e=>({isOpenModal:!1,setIsOpenModal:t=>e(()=>({isOpenModal:t}))})),On=ie($n((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&&Pe.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&&Pe.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&&Pe.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}=Kt.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));Pe.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));Pe.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));Pe.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(Pe.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));Pe.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}),ka.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}}})),Pe=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}=On.getState(),{themeSettings:m,setThemeSettings:p}=Pn.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}=On.getState(),{themeSettings:h,setThemeSettings:y}=Pn.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)}})),ka=ie($n(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}}})),La=[{icon:"TreeStructure",name:"Layers"},{icon:"Plus",name:"Add"},{icon:"Palette",name:"Theme"},{icon:"Gear",name:"Settings"}],ou=[{icon:"Desktop",value:"desktop"},{icon:"DeviceTabletCamera",value:"tablet"},{icon:"DeviceMobileCamera",value:"mobile"}],au=[{icon:"PaintBrushBroad",name:"Colors"},{icon:"TextAa",name:"Fonts"},{icon:"CornersOut",name:"Borders"},{icon:"ArrowSquareIn",name:"Buttons"},{icon:"Textbox",name:"Inputs"}],su=[12,14,16,18,20,24,28,32,40,48].map(e=>String(e)),iu=["/","/reviews","/faqs","/contact","/products","/ticket","/login"],Vt={"/":{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"}},lu=typeof window<"u"&&(window.location.hostname.includes("localhost")||window.location.hostname.includes("192")||window.location.hostname.includes("local-rst.sp-internal.work")),cu={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)"},uu={None:"var(--border-none)",1:"var(--border-sm)",2:"var(--border-md)",4:"var(--border-lg)"},du={"1:1":"1:1","4:3":"4:3","16:9":"16:9","9:16":"9:16"},fu=[{value:"4:3",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:18.5,height:14.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"16:9",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:20.5,height:12.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"9:16",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:14.5,height:18.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"1:1",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:16.5,height:16.5,border:"1.5px solid #252525",borderRadius:3}})})}],hu={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"},pu=ie(e=>({activeBlock:La[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}))})),mu=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 gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pa={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&&En.assertOptions(r,{silentJSONParsing:Ye.transitional(Ye.boolean),forcedJSONParsing:Ye.transitional(Ye.boolean),clarifyTimeoutError:Ye.transitional(Ye.boolean)},!1),o!=null&&(C.isFunction(o)?n.paramsSerializer={serialize:o}:En.assertOptions(o,{encode:Ye.function,serialize:Ye.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),En.assertOptions(n,{baseUrl:Ye.spelling("baseURL"),withXsrfToken:Ye.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=ma(t.baseURL,t.url,t.allowAbsoluteUrls);return ua(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 xc=class Sa{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 Pt(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 Sa(function(o){t=o}),cancel:t}}};function Rc(e){return function(n){return e.apply(null,n)}}function kc(e){return C.isObject(e)&&e.isAxiosError===!0}const mr={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(mr).forEach(([e,t])=>{mr[t]=e});function Ca(e){const t=new wt(e),n=Qo(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 Ca(bt(e,o))},n}const ce=Ca(en);ce.Axios=wt;ce.CanceledError=Pt;ce.CancelToken=xc;ce.isCancel=ha;ce.VERSION=ba;ce.toFormData=Hn;ce.AxiosError=$;ce.Cancel=ce.CanceledError;ce.all=function(t){return Promise.all(t)};ce.spread=Rc;ce.isAxiosError=kc;ce.mergeConfig=bt;ce.AxiosHeaders=De;ce.formToJSON=e=>fa(C.isHTMLForm(e)?new FormData(e):e);ce.getAdapter=wa.getAdapter;ce.HttpStatusCode=mr;ce.default=ce;const{Axios:o0,AxiosError:Lc,CanceledError:a0,isCancel:s0,CancelToken:i0,VERSION:l0,all:c0,Cancel:u0,isAxiosError:d0,spread:f0,toFormData:h0,AxiosHeaders:p0,HttpStatusCode:m0,formToJSON:g0,getAdapter:v0,mergeConfig:y0}=ce,mn="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?mn:t,{headers:d});break;case"post":m=await ce.post(u?mn:t,o,{headers:d});break;case"put":m=await ce.put(u?mn:t,o,{headers:d});break;case"delete":m=await ce.delete(u?mn: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 _=await Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(T=>T.auth);_&&_.logoutCustomer?await _.logoutCustomer():localStorage.removeItem("token"),window.location.reload()}catch(_){console.error("Failed to import logoutCustomer:",_),localStorage.removeItem("token"),window.location.reload()}const k=new Lc(R,(b==null?void 0:b.toString())||"400");throw k.response=p.response,k}},Nc="https://g-api.billgang.com",Tc="https://www.googleapis.com/webfonts/v1/webfonts",_c="https://stores-api.billgang.com",Pc="https://sl-api.billgang.com",Oc="https://customers-api.billgang.com",Mc="https://cashapp-api.billgang.com",Ac={api:Nc,googleFonts:Tc,storeApi:_c,slApi:Pc,customersApi:Oc,cashappApi:Mc},Dc=(e,t="300")=>e==="not found"?"empty":`https://imagedelivery.net/${e}/w=${t}`,Fc=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)},Ic=(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},Bc=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`},jc=e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),Hc=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]},gr=e=>{const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return t}},No=(e,t)=>{(t===null||typeof t!="object")&&window.localStorage.setItem(e,String(t));const n=JSON.stringify(t);window.localStorage.setItem(e,n)},tr="f10120ab-7ebb-4785-b240-7428edaa3c4e",Ht="https://t-api.billgang.com",Ut="https://internal-t-api.antistock.io",Jt="I",Uc=10*1e3,Vc=15*1e3,$c=15*60*1e3,Ea=()=>{var t;const e=gr(Jt);return((t=e==null?void 0:e.s)==null?void 0:t.i)||null},zc=(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?Ut:Ht}/${e}/t/p`,method:"post",withToken:!1})).data.data.id,l=async m=>(await at({url:`${n?Ut:Ht}/${e}/t/p/${t==="development"?tr:m}/s`,method:"post",withToken:!1})).data.data.id,c=async(m,p,v,R)=>{const b=t==="development"?tr:m;try{return(await at({url:`${n?Ut:Ht}/${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?Ut:Ht}/${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?Ut:Ht}/${e}/t/p/${t==="development"?tr:m}/s/${p}/e/${v}/h`,method:"post",withToken:!1});const b=gr(Jt);b&&(b.s.u=s().toString(),b.lu=s().toString(),No(Jt,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()}},Uc)},h=async()=>{var R,b,k,_;const m=`${window.location.hostname}${r}`,p=gr(Jt),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)||((k=p==null?void 0:p.s)==null?void 0:k.c)),P=!H||v-w>$c;(!H||P)&&(H=await l(T));const G=Number((p==null?void 0:p.lu)||0),B=v-G>Vc,ae=await c(T,H,m,p!=null&&p.l&&!B?p.l:void 0),ee={p:T,s:{i:H,c:((_=p==null?void 0:p.s)==null?void 0:_.c)??v.toString(),u:v.toString()},l:ae,lu:v.toString()};No(Jt,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])},Jc={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:Ea()};let Nt=null;const To=localStorage.getItem("token");if(To)try{Nt=Xo(JSON.parse(To)||"")}catch{Nt=null}const qc=ie(e=>({cart:{...Jc,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}}))})),Wc=ie(e=>({page:1,setPage:t=>e(()=>({page:t})),resetPage:()=>e(()=>({page:1}))})),Zc=ie(e=>({discordInfo:null,setDiscordInfo:t=>e(()=>({discordInfo:t}))})),Gc=ie(e=>({subscription:null,setSubscription:t=>e({subscription:t})})),tn=ie(e=>({apiUrls:Ac,setApiUrls:t=>e(()=>({apiUrls:t}))})),xa=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}))})),Ra=ie(e=>({general:null,setGeneral:t=>e(()=>({general:t})),isAntistock:!1,setIsAntistock:t=>e(()=>({isAntistock:t}))})),vr=ie(e=>({settings:null,setSettings:t=>{e(()=>({settings:t}))},isLoadingSettings:!0,setIsLoadingSettings:t=>e(()=>({isLoadingSettings:t}))})),Pn=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));Pe.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));Pe.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));Pe.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));Pe.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));Pe.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 Pe.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}))})),Kc=ie(e=>({isOpen:!0,setIsOpen:t=>e(()=>({isOpen:t}))}));var Le=[];for(var nr=0;nr<256;++nr)Le.push((nr+256).toString(16).slice(1));function Yc(e,t=0){return(Le[e[t+0]]+Le[e[t+1]]+Le[e[t+2]]+Le[e[t+3]]+"-"+Le[e[t+4]]+Le[e[t+5]]+"-"+Le[e[t+6]]+Le[e[t+7]]+"-"+Le[e[t+8]]+Le[e[t+9]]+"-"+Le[e[t+10]]+Le[e[t+11]]+Le[e[t+12]]+Le[e[t+13]]+Le[e[t+14]]+Le[e[t+15]]).toLowerCase()}var gn,Xc=new Uint8Array(16);function Qc(){if(!gn&&(gn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gn(Xc)}var eu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const _o={randomUUID:eu};function ot(e,t,n){if(_o.randomUUID&&!e)return _o.randomUUID();e=e||{};var r=e.random||(e.rng||Qc)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Yc(r)}function tu(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 yr=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return yr(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return yr(r)(n)}}}},nu=(e,t)=>(n,r,o)=>{let a={storage:tu(()=>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 k;return b((k=r())!=null?k:h)});const R=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(p=r())!=null?p:h))||void 0;return yr(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 k;const[_,T]=b;if(y=a.merge(T,(k=r())!=null?k:h),n(y,!0),_)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},$n=nu,Kt=ie($n((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}}})),ru=ie(e=>({isOpenModal:!1,setIsOpenModal:t=>e(()=>({isOpenModal:t}))})),On=ie($n((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&&Pe.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&&Pe.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&&Pe.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}=Kt.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));Pe.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));Pe.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));Pe.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(Pe.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));Pe.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}),ka.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}}})),Pe=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}=On.getState(),{themeSettings:m,setThemeSettings:p}=Pn.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}=On.getState(),{themeSettings:h,setThemeSettings:y}=Pn.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)}})),ka=ie($n(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}}})),La=[{icon:"TreeStructure",name:"Layers"},{icon:"Plus",name:"Add"},{icon:"Palette",name:"Theme"},{icon:"Gear",name:"Settings"}],ou=[{icon:"Desktop",value:"desktop"},{icon:"DeviceTabletCamera",value:"tablet"},{icon:"DeviceMobileCamera",value:"mobile"}],au=[{icon:"PaintBrushBroad",name:"Colors"},{icon:"TextAa",name:"Fonts"},{icon:"CornersOut",name:"Borders"},{icon:"ArrowSquareIn",name:"Buttons"},{icon:"Textbox",name:"Inputs"}],su=[12,14,16,18,20,24,28,32,40,48].map(e=>String(e)),iu=["/","/reviews","/faqs","/contact","/products","/ticket","/login"],Vt={"/":{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"}},lu=typeof window<"u"&&(window.location.hostname.includes("localhost")||window.location.hostname.includes("192")||window.location.hostname.includes("local-rst.sp-internal.work")),cu={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)"},uu={None:"var(--border-none)",1:"var(--border-sm)",2:"var(--border-md)",4:"var(--border-lg)"},du={"1:1":"1:1","4:3":"4:3","16:9":"16:9","9:16":"9:16"},fu=[{value:"4:3",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:18.5,height:14.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"16:9",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:20.5,height:12.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"9:16",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:14.5,height:18.5,border:"1.5px solid #252525",borderRadius:3}})})},{value:"1:1",addon:L.jsx("div",{style:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:L.jsx("div",{style:{width:16.5,height:16.5,border:"1.5px solid #252525",borderRadius:3}})})}],hu={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"},pu=ie(e=>({activeBlock:La[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}))})),mu=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 gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pa={exports:{}};/*!
|
|
37
37
|
Copyright (c) 2018 Jed Watson.
|
|
38
38
|
Licensed under the MIT License (MIT), see
|
|
39
39
|
http://jedwatson.github.io/classnames
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),f=require("react"),l=require("./builder-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),f=require("react"),l=require("./builder-JKkaOMOl.cjs"),k=require("./ui-components-C4hKK4aN.cjs");require("./charge-LGilmNUv.cjs");require("./ticket-Cv2XbF6y.cjs");const ct=require("react-dom"),Tt=({render:e,block:t})=>e(t),dn=({settings:e,pageContext:t})=>{const{footer:n}=l.useLayersStore(),{settings:s}=l.useSettingsStore(),{pageContext:o}=l.usePagesStore(),{footer:i}=l.useBlocksStore();if(!i||!n)return null;const c=new i;return Object.keys(n).map(a=>{c[a]=n[a]}),c.renderBlock((e==null?void 0:e.blockSettings)||s,t||o)},hn=({settings:e,pageContext:t})=>{const{header:n}=l.useLayersStore(),{settings:s}=l.useSettingsStore(),{pageContext:o}=l.usePagesStore(),{header:i}=l.useBlocksStore();if(!i||!n)return null;const c=new i;return Object.keys(n).map(a=>{c[a]=n[a]}),c.renderBlock((e==null?void 0:e.blockSettings)||s,t||o)},fn=({settings:e,pageContext:t})=>{const{announcement:n}=l.useLayersStore(),{settings:s}=l.useSettingsStore(),{pageContext:o}=l.usePagesStore(),{announcement:i}=l.useBlocksStore();if(!i||!n)return null;const c=new i;return Object.keys(n).map(a=>{c[a]=n[a]}),c.renderBlock(e||s,t||o)},Us=Object.freeze(Object.defineProperty({__proto__:null,RenderAnnouncement:fn,RenderBlock:Tt,RenderFooter:dn,RenderHeader:hn},Symbol.toStringTag,{value:"Module"}));function Vs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>s=>{t.forEach(o=>o(s))},t)}const Mt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function qe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function gn(e){return"nodeType"in e}function J(e){var t,n;return e?qe(e)?e:gn(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function pn(e){const{Document:t}=J(e);return e instanceof t}function ft(e){return qe(e)?!1:e instanceof J(e).HTMLElement}function Qn(e){return e instanceof J(e).SVGElement}function Xe(e){return e?qe(e)?e.document:gn(e)?pn(e)?e:ft(e)||Qn(e)?e.ownerDocument:document:document:document}const be=Mt?f.useLayoutEffect:f.useEffect;function mn(e){const t=f.useRef(e);return be(()=>{t.current=e}),f.useCallback(function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t.current==null?void 0:t.current(...s)},[])}function Ks(){const e=f.useRef(null),t=f.useCallback((s,o)=>{e.current=setInterval(s,o)},[]),n=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function dt(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return be(()=>{n.current!==e&&(n.current=e)},t),n}function gt(e,t){const n=f.useRef();return f.useMemo(()=>{const s=e(n.current);return n.current=s,s},[...t])}function At(e){const t=mn(e),n=f.useRef(null),s=f.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,s]}function Qt(e){const t=f.useRef();return f.useEffect(()=>{t.current=e},[e]),t.current}let zt={};function pt(e,t){return f.useMemo(()=>{if(t)return t;const n=zt[e]==null?0:zt[e]+1;return zt[e]=n,e+"-"+n},[e,t])}function Zn(e){return function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return s.reduce((i,c)=>{const a=Object.entries(c);for(const[u,h]of a){const d=i[u];d!=null&&(i[u]=d+e*h)}return i},{...t})}}const Ye=Zn(1),Nt=Zn(-1);function Ys(e){return"clientX"in e&&"clientY"in e}function vn(e){if(!e)return!1;const{KeyboardEvent:t}=J(e.target);return t&&e instanceof t}function Gs(e){if(!e)return!1;const{TouchEvent:t}=J(e.target);return t&&e instanceof t}function Zt(e){if(Gs(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Ys(e)?{x:e.clientX,y:e.clientY}:null}const Ge=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ge.Translate.toString(e),Ge.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:s}=e;return t+" "+n+"ms "+s}}}),En="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function qs(e){return e.matches(En)?e:e.querySelector(En)}const Xs={display:"none"};function Js(e){let{id:t,value:n}=e;return f.createElement("div",{id:t,style:Xs},n)}function Qs(e){let{id:t,announcement:n,ariaLiveType:s="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return f.createElement("div",{id:t,style:o,role:"status","aria-live":s,"aria-atomic":!0},n)}function Zs(){const[e,t]=f.useState("");return{announce:f.useCallback(s=>{s!=null&&t(s)},[]),announcement:e}}const es=f.createContext(null);function eo(e){const t=f.useContext(es);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function to(){const[e]=f.useState(()=>new Set),t=f.useCallback(s=>(e.add(s),()=>e.delete(s)),[e]);return[f.useCallback(s=>{let{type:o,event:i}=s;e.forEach(c=>{var a;return(a=c[o])==null?void 0:a.call(c,i)})},[e]),t]}const no={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import A, { useLayoutEffect as Tr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Mr, useReducer as Rr, createContext as Lt, useContext as nt } from "react";
|
|
3
|
-
import { u as ne, a as qe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as mt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as X, n as jo, L as ot, o as Gn, p as rt, q as $r, s as Yn, t as tt, w as hn, x as Rt, y as zo, A as Pr, S as Lr, C as Fr, z as ft, B as jr, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zr, K as Hr } from "./builder-
|
|
4
|
-
import { I as R, u as Wr, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-
|
|
5
|
-
import "./charge-
|
|
6
|
-
import "./ticket-
|
|
3
|
+
import { u as ne, a as qe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as mt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as X, n as jo, L as ot, o as Gn, p as rt, q as $r, s as Yn, t as tt, w as hn, x as Rt, y as zo, A as Pr, S as Lr, C as Fr, z as ft, B as jr, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zr, K as Hr } from "./builder-CcLZHVq3.js";
|
|
4
|
+
import { I as R, u as Wr, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-BGzv0KT2.js";
|
|
5
|
+
import "./charge-DC4f3U8I.js";
|
|
6
|
+
import "./ticket-r3Kx22M9.js";
|
|
7
7
|
import { unstable_batchedUpdates as Kt, createPortal as Vr } from "react-dom";
|
|
8
8
|
const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext: t }) => {
|
|
9
9
|
const { footer: n } = ne(), { settings: o } = qe(), { pageContext: r } = J(), { footer: s } = se();
|
package/dist/builder.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-JKkaOMOl.cjs"),m=require("./ticket-Cv2XbF6y.cjs"),n=require("react"),v=require("./charge-LGilmNUv.cjs"),G=require("./ui-components-C4hKK4aN.cjs"),e=require("@phosphor-icons/react"),W=({children:r,shopDomain:u,shopId:h,shopPassword:d,shopLogo:g})=>{const{setShopDomain:x,setShopId:j,setShopPassword:y,setShopTerms:p,setShopPrivacyPolicy:a,setShopRefundPolicy:f,setShopLogo:A}=c.useStorefrontStore();return n.useLayoutEffect(()=>{const s=async()=>{const{data:l}=await v.fetchTerms();p(l)},S=async()=>{const{data:l}=await v.fetchPrivacyPolicy();a(l)},w=async()=>{const{data:l}=await v.fetchRefundPolicy();f(l)};x(u),j(h),d&&y(d),g&&A(g),s(),S(),w()},[u,h,d]),t.jsx(t.Fragment,{children:r})},V="_wrapper_1xuz3_18",L={wrapper:V};function _(){G.registerIcons({X:e.XIcon,Plus:e.PlusIcon,Minus:e.MinusIcon,Check:e.CheckIcon,Clock:e.ClockIcon,Info:e.InfoIcon,Copy:e.CopyIcon,Trash:e.TrashIcon,Sliders:e.SlidersIcon,Image:e.ImageIcon,List:e.ListIcon,Handbag:e.HandbagIcon,Bag:e.BagIcon,Eye:e.EyeIcon,Crown:e.CrownIcon,ArrowUp:e.ArrowUpIcon,ArrowDown:e.ArrowDownIcon,Confetti:e.ConfettiIcon,ArrowLeft:e.ArrowLeftIcon,ArrowRight:e.ArrowRightIcon,ArrowLineUpRight:e.ArrowLineUpRightIcon,ArrowUpRight:e.ArrowUpRightIcon,ArrowUUpLeft:e.ArrowUUpLeftIcon,ArrowUUpRight:e.ArrowUUpRightIcon,CaretRight:e.CaretRightIcon,CaretDown:e.CaretDownIcon,CaretUp:e.CaretUpIcon,CaretLeft:e.CaretLeftIcon,MagnifyingGlass:e.MagnifyingGlassIcon,MagnifyingGlassMinus:e.MagnifyingGlassMinusIcon,ArrowLineDown:e.ArrowLineDownIcon,Selection:e.SelectionIcon,CloudArrowUpIcon:e.CloudArrowUpIcon,ArrowsHorizontal:e.ArrowsHorizontalIcon,ArrowsVertical:e.ArrowsVerticalIcon,CheckCircle:e.CheckCircleIcon,XCircle:e.XCircleIcon,Star:e.StarIcon,Fire:e.FireIcon,Lightning:e.LightningIcon,AlignCenterHorizontal:e.AlignCenterHorizontalIcon,File:e.FileIcon,FileText:e.FileTextIcon,BookOpen:e.BookOpenIcon,DownloadSimple:e.DownloadSimpleIcon,DiscordLogo:e.DiscordLogoIcon,TelegramLogo:e.TelegramLogoIcon,SignOut:e.SignOutIcon,Wallet:e.WalletIcon,PaperPlaneRight:e.PaperPlaneRightIcon,ChatsTeardrop:e.ChatsTeardropIcon,DotsSixVertical:e.DotsSixVerticalIcon,Share:e.ShareIcon,Shield:e.ShieldIcon,ShieldCheck:e.ShieldCheckIcon,FileCloud:e.FileCloudIcon,Lock:e.LockIcon,Heart:e.HeartIcon,User:e.UserIcon,Calendar:e.CalendarIcon,Smiley:e.SmileyIcon,Globe:e.GlobeIcon,House:e.HouseIcon,HouseSimple:e.HouseSimpleIcon,CurrencyCircleDollar:e.CurrencyCircleDollarIcon,Medal:e.MedalIcon,CalendarCheck:e.CalendarCheckIcon,Question:e.QuestionIcon,Warning:e.WarningIcon,WarningDiamond:e.WarningDiamondIcon,TreeStructure:e.TreeStructureIcon,Palette:e.PaletteIcon,Gear:e.GearIcon,PaintBrushBroad:e.PaintBrushBroadIcon,TextAa:e.TextAaIcon,TextB:e.TextBIcon,TextH:e.TextHIcon,CornersOut:e.CornersOutIcon,ArrowSquareIn:e.ArrowSquareInIcon,Textbox:e.TextboxIcon,SquaresFour:e.SquaresFourIcon,SealQuestion:e.SealQuestionIcon,ChatCentered:e.ChatCenteredIcon,Ticket:e.TicketIcon,UserCircleGear:e.UserCircleGearIcon,Desktop:e.DesktopIcon,DeviceTabletCamera:e.DeviceTabletCameraIcon,DeviceMobileCamera:e.DeviceMobileCameraIcon,Cards:e.CardsIcon,PushPin:e.PushPinIcon,TextAlignLeft:e.TextAlignLeftIcon,TextAlignRight:e.TextAlignRightIcon,TextAlignCenter:e.TextAlignCenterIcon,AlignLeft:e.AlignLeftIcon,AlignRight:e.AlignRightIcon,AlignTop:e.AlignTopIcon,AlignBottom:e.AlignBottomIcon,TextItalic:e.TextItalicIcon,TextStrikethrough:e.TextStrikethroughIcon,TextUnderline:e.TextUnderlineIcon})}const Q=n.lazy(()=>Promise.resolve().then(()=>require("./builder-JKkaOMOl.cjs")).then(r=>r.index).then(r=>({default:r.BuilderPage}))),X=n.lazy(()=>Promise.resolve().then(()=>require("./index-DtcojRuS.cjs")).then(r=>({default:r.ErrorPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-D4Hp4-Qp.cjs")).then(r=>({default:r.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-D3IO5HzB.cjs")).then(r=>({default:r.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-CyiCR5lK.cjs")).then(r=>({default:r.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-CmO3iWeV.cjs")).then(r=>({default:r.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-BtQ89Hj3.cjs")).then(r=>({default:r.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-BaZLmyfk.cjs")).then(r=>({default:r.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(r=>r.index$1).then(r=>({default:r.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-Cv2XbF6y.cjs")).then(r=>r.index).then(r=>({default:r.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-DHhmsQxH.cjs")).then(r=>r.index).then(r=>({default:r.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-Ba_v68et.cjs")).then(r=>({default:r.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-t2QoTU6S.cjs")).then(r=>r.index).then(r=>({default:r.OrderPage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(r=>r.index).then(r=>({default:r.CustomerDashboard}))),b=n.lazy(()=>Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(r=>r.recapcha).then(r=>({default:r.ReCaptchaProvider}))),se=()=>null,o=({children:r})=>t.jsx(n.Suspense,{fallback:t.jsx(se,{}),children:r}),ce=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B0SvEDG4.cjs")).then(r=>r.index).then(r=>({default:r.RenderAnnouncement}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B0SvEDG4.cjs")).then(r=>r.index).then(r=>({default:r.RenderFooter}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B0SvEDG4.cjs")).then(r=>r.index).then(r=>({default:r.RenderHeader}))),ie=r=>{const{blocks:u,settings:h,header:d,footer:g,announcement:x,routes:j=[],shopLogo:y,apiURLs:p,isAntistock:a=!1}=r,[f,A]=n.useState(null),{general:s,setIsAntistock:S}=c.useGeneralStore(),{setApiUrls:w}=c.useApiStore(),{setBlocks:l,setSourceBlocks:B,setHeader:E,setFooter:z,setAnnouncement:H,setSettings:F}=c.useBlocksStore(),{themeSettings:C}=c.useThemeSettingsStore(),{settings:T,setSettings:O}=c.useSettingsStore(),P=c.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,M=localStorage.getItem("shopPassword"),D=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(a)},[a,S]),n.useEffect(()=>{!D&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!P&&!a&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!P&&a&&localStorage.setItem("fakeDomain","eva8.astck.io")},[P]),n.useEffect(()=>{if(C&&T){const I=m.generateDynamicStyles(C,T);m.loadCustomFonts(),m.setupDynamicFonts(C),m.injectStylesToDOM(I)}},[C,JSON.stringify(T),window.location.hostname]),n.useEffect(()=>{const k=new h().blockSettings;O(k)},[]),n.useEffect(()=>{_()},[]),n.useLayoutEffect(()=>{const I={};Object.keys(u).map(R=>{I[R]=u[R]}),B(I),l(I),E(d),z(g),H(x),F(h),p&&w(p);const k=c.createBrowserRouter([{element:t.jsx(W,{shopDomain:P,shopId:D,shopPassword:M||void 0,shopLogo:y,children:t.jsx(b,{children:t.jsx($,{children:t.jsx(c.Outlet,{})})})}),errorElement:t.jsx(o,{children:t.jsx(K,{})}),children:[{path:"/admin/builder/*",element:t.jsx(o,{children:t.jsx(N,{children:t.jsx(Q,{blocks:u,settings:h,header:d,footer:g,announcement:x})})}),errorElement:t.jsx(o,{children:t.jsx(X,{})})},...j,{path:"/checkout",element:t.jsx(o,{children:t.jsx(Y,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(o,{children:t.jsx(re,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(o,{children:t.jsx(Z,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(ne,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(te,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:a?"/account":"/customer-dash",element:t.jsx(o,{children:t.jsxs("div",{className:L.wrapper,children:[t.jsx(ce,{}),t.jsx(U,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(oe,{})}),t.jsx(q,{})]})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title=a?"Account":"Customer Dashboard",!0)},{path:"/validation",element:t.jsx(o,{children:t.jsx(J,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(o,{children:t.jsxs("div",{className:L.wrapper,children:[t.jsx(U,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(b,{children:t.jsx(ee,{})})}),t.jsx(q,{})]})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:t.jsx(m.DynamicRouteWrapper,{}),errorElement:t.jsx(o,{children:t.jsx(i,{})})}]}]);A(k)},[s]),t.jsx(n.Suspense,{fallback:null,children:f&&t.jsx(c.RouterProvider,{router:f})})};exports.App=ie;
|
package/dist/builder.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t, Fragment as M, jsxs as L } from "react/jsx-runtime";
|
|
2
|
-
import { N as G, K as W, j as _, c as j, m as V, a as q, M as N, ai as Q, aj as X, ak as J } from "./builder-
|
|
3
|
-
import { f as K, l as Z, j as $, k as Y, D as ee } from "./ticket-
|
|
2
|
+
import { N as G, K as W, j as _, c as j, m as V, a as q, M as N, ai as Q, aj as X, ak as J } from "./builder-CcLZHVq3.js";
|
|
3
|
+
import { f as K, l as Z, j as $, k as Y, D as ee } from "./ticket-r3Kx22M9.js";
|
|
4
4
|
import o, { Suspense as te } from "react";
|
|
5
|
-
import { Z as oe, _ as ne, $ as re } from "./charge-
|
|
6
|
-
import { v as ae } from "./ui-components-
|
|
7
|
-
import { TextUnderlineIcon as ce, TextStrikethroughIcon as ie, TextItalicIcon as le, AlignBottomIcon as se, AlignTopIcon as de, AlignRightIcon as he, AlignLeftIcon as ue, TextAlignCenterIcon as Ie, TextAlignRightIcon as me, TextAlignLeftIcon as ge, PushPinIcon as pe, CardsIcon as fe, DeviceMobileCameraIcon as Se, DeviceTabletCameraIcon as Ce, DesktopIcon as ye, UserCircleGearIcon as Ae, TicketIcon as ke, ChatCenteredIcon as we, SealQuestionIcon as Te, SquaresFourIcon as Pe, TextboxIcon as De, ArrowSquareInIcon as Le, CornersOutIcon as Re, TextHIcon as xe, TextBIcon as be, TextAaIcon as Ue, PaintBrushBroadIcon as Be, GearIcon as Ee, PaletteIcon as ze, TreeStructureIcon as ve, WarningDiamondIcon as He, WarningIcon as Fe, QuestionIcon as Oe, CalendarCheckIcon as Me, MedalIcon as Ge, CurrencyCircleDollarIcon as We, HouseSimpleIcon as _e, HouseIcon as je, GlobeIcon as Ve, SmileyIcon as qe, CalendarIcon as Ne, UserIcon as Qe, HeartIcon as Xe, LockIcon as Je, FileCloudIcon as Ke, ShieldCheckIcon as Ze, ShieldIcon as $e, ShareIcon as Ye, DotsSixVerticalIcon as et, ChatsTeardropIcon as tt, PaperPlaneRightIcon as ot, WalletIcon as nt, SignOutIcon as rt, TelegramLogoIcon as at, DiscordLogoIcon as ct, DownloadSimpleIcon as it, BookOpenIcon as lt, FileTextIcon as st, FileIcon as dt, AlignCenterHorizontalIcon as ht, LightningIcon as ut, FireIcon as It, StarIcon as mt, XCircleIcon as gt, CheckCircleIcon as pt, ArrowsVerticalIcon as ft, ArrowsHorizontalIcon as St, CloudArrowUpIcon as Ct, SelectionIcon as yt, ArrowLineDownIcon as At, MagnifyingGlassMinusIcon as kt, MagnifyingGlassIcon as wt, CaretLeftIcon as Tt, CaretUpIcon as Pt, CaretDownIcon as Dt, CaretRightIcon as Lt, ArrowUUpRightIcon as Rt, ArrowUUpLeftIcon as xt, ArrowUpRightIcon as bt, ArrowLineUpRightIcon as Ut, ArrowRightIcon as Bt, ArrowLeftIcon as Et,
|
|
8
|
-
const
|
|
5
|
+
import { Z as oe, _ as ne, $ as re } from "./charge-DC4f3U8I.js";
|
|
6
|
+
import { v as ae } from "./ui-components-BGzv0KT2.js";
|
|
7
|
+
import { TextUnderlineIcon as ce, TextStrikethroughIcon as ie, TextItalicIcon as le, AlignBottomIcon as se, AlignTopIcon as de, AlignRightIcon as he, AlignLeftIcon as ue, TextAlignCenterIcon as Ie, TextAlignRightIcon as me, TextAlignLeftIcon as ge, PushPinIcon as pe, CardsIcon as fe, DeviceMobileCameraIcon as Se, DeviceTabletCameraIcon as Ce, DesktopIcon as ye, UserCircleGearIcon as Ae, TicketIcon as ke, ChatCenteredIcon as we, SealQuestionIcon as Te, SquaresFourIcon as Pe, TextboxIcon as De, ArrowSquareInIcon as Le, CornersOutIcon as Re, TextHIcon as xe, TextBIcon as be, TextAaIcon as Ue, PaintBrushBroadIcon as Be, GearIcon as Ee, PaletteIcon as ze, TreeStructureIcon as ve, WarningDiamondIcon as He, WarningIcon as Fe, QuestionIcon as Oe, CalendarCheckIcon as Me, MedalIcon as Ge, CurrencyCircleDollarIcon as We, HouseSimpleIcon as _e, HouseIcon as je, GlobeIcon as Ve, SmileyIcon as qe, CalendarIcon as Ne, UserIcon as Qe, HeartIcon as Xe, LockIcon as Je, FileCloudIcon as Ke, ShieldCheckIcon as Ze, ShieldIcon as $e, ShareIcon as Ye, DotsSixVerticalIcon as et, ChatsTeardropIcon as tt, PaperPlaneRightIcon as ot, WalletIcon as nt, SignOutIcon as rt, TelegramLogoIcon as at, DiscordLogoIcon as ct, DownloadSimpleIcon as it, BookOpenIcon as lt, FileTextIcon as st, FileIcon as dt, AlignCenterHorizontalIcon as ht, LightningIcon as ut, FireIcon as It, StarIcon as mt, XCircleIcon as gt, CheckCircleIcon as pt, ArrowsVerticalIcon as ft, ArrowsHorizontalIcon as St, CloudArrowUpIcon as Ct, SelectionIcon as yt, ArrowLineDownIcon as At, MagnifyingGlassMinusIcon as kt, MagnifyingGlassIcon as wt, CaretLeftIcon as Tt, CaretUpIcon as Pt, CaretDownIcon as Dt, CaretRightIcon as Lt, ArrowUUpRightIcon as Rt, ArrowUUpLeftIcon as xt, ArrowUpRightIcon as bt, ArrowLineUpRightIcon as Ut, ArrowRightIcon as Bt, ArrowLeftIcon as Et, ConfettiIcon as zt, ArrowDownIcon as vt, ArrowUpIcon as Ht, CrownIcon as Ft, EyeIcon as Ot, BagIcon as Mt, HandbagIcon as Gt, ListIcon as Wt, ImageIcon as _t, SlidersIcon as jt, TrashIcon as Vt, CopyIcon as qt, InfoIcon as Nt, ClockIcon as Qt, CheckIcon as Xt, MinusIcon as Jt, PlusIcon as Kt, XIcon as Zt } from "@phosphor-icons/react";
|
|
8
|
+
const $t = ({
|
|
9
9
|
children: e,
|
|
10
10
|
shopDomain: l,
|
|
11
11
|
shopId: s,
|
|
@@ -34,29 +34,30 @@ const Zt = ({
|
|
|
34
34
|
};
|
|
35
35
|
I(l), C(s), d && y(d), u && A(u), r(), p(), k();
|
|
36
36
|
}, [l, s, d]), /* @__PURE__ */ t(M, { children: e });
|
|
37
|
-
},
|
|
38
|
-
wrapper:
|
|
37
|
+
}, Yt = "_wrapper_1xuz3_18", R = {
|
|
38
|
+
wrapper: Yt
|
|
39
39
|
};
|
|
40
|
-
function
|
|
40
|
+
function eo() {
|
|
41
41
|
ae({
|
|
42
42
|
// Основные UI иконки
|
|
43
|
-
X:
|
|
44
|
-
Plus:
|
|
45
|
-
Minus:
|
|
46
|
-
Check:
|
|
47
|
-
Clock:
|
|
48
|
-
Info:
|
|
49
|
-
Copy:
|
|
50
|
-
Trash:
|
|
51
|
-
Sliders:
|
|
52
|
-
Image:
|
|
53
|
-
List:
|
|
54
|
-
Handbag:
|
|
55
|
-
Bag:
|
|
56
|
-
Eye:
|
|
57
|
-
Crown:
|
|
58
|
-
ArrowUp:
|
|
59
|
-
ArrowDown:
|
|
43
|
+
X: Zt,
|
|
44
|
+
Plus: Kt,
|
|
45
|
+
Minus: Jt,
|
|
46
|
+
Check: Xt,
|
|
47
|
+
Clock: Qt,
|
|
48
|
+
Info: Nt,
|
|
49
|
+
Copy: qt,
|
|
50
|
+
Trash: Vt,
|
|
51
|
+
Sliders: jt,
|
|
52
|
+
Image: _t,
|
|
53
|
+
List: Wt,
|
|
54
|
+
Handbag: Gt,
|
|
55
|
+
Bag: Mt,
|
|
56
|
+
Eye: Ot,
|
|
57
|
+
Crown: Ft,
|
|
58
|
+
ArrowUp: Ht,
|
|
59
|
+
ArrowDown: vt,
|
|
60
|
+
Confetti: zt,
|
|
60
61
|
ArrowLeft: Et,
|
|
61
62
|
ArrowRight: Bt,
|
|
62
63
|
ArrowLineUpRight: Ut,
|
|
@@ -152,49 +153,49 @@ function Yt() {
|
|
|
152
153
|
TextUnderline: ce
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
|
-
const
|
|
156
|
-
() => import("./builder-
|
|
157
|
-
), to = o.lazy(
|
|
158
|
-
() => import("./index-6C0r0b28.js").then((e) => ({ default: e.ErrorPage }))
|
|
156
|
+
const to = o.lazy(
|
|
157
|
+
() => import("./builder-CcLZHVq3.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
159
158
|
), oo = o.lazy(
|
|
160
|
-
() => import("./index-
|
|
159
|
+
() => import("./index-Ek3qYkbu.js").then((e) => ({ default: e.ErrorPage }))
|
|
161
160
|
), no = o.lazy(
|
|
162
|
-
() => import("./
|
|
161
|
+
() => import("./index-Bh3_Rczn.js").then((e) => ({ default: e.ActivePage }))
|
|
163
162
|
), ro = o.lazy(
|
|
164
|
-
() => import("./
|
|
163
|
+
() => import("./validation-BUpHL2xL.js").then((e) => ({ default: e.ValidationPage }))
|
|
165
164
|
), ao = o.lazy(
|
|
166
|
-
() => import("./index-
|
|
167
|
-
), a = o.lazy(
|
|
168
|
-
() => import("./index-GWi3v3LH.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
165
|
+
() => import("./index-C-SrHRJh.js").then((e) => ({ default: e.WrapperPage }))
|
|
169
166
|
), co = o.lazy(
|
|
170
|
-
() => import("./
|
|
167
|
+
() => import("./index-BFZm601D.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
168
|
+
), a = o.lazy(
|
|
169
|
+
() => import("./index-BqtOxv5i.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
171
170
|
), io = o.lazy(
|
|
172
|
-
() => import("./
|
|
171
|
+
() => import("./checkout-B_qFvrUF.js").then((e) => ({ default: e.Checkout }))
|
|
173
172
|
), lo = o.lazy(
|
|
174
|
-
() => import("./
|
|
173
|
+
() => import("./charge-DC4f3U8I.js").then((e) => e.a4).then((e) => ({ default: e.ChargePage }))
|
|
175
174
|
), so = o.lazy(
|
|
176
|
-
() => import("./
|
|
175
|
+
() => import("./ticket-r3Kx22M9.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
177
176
|
), ho = o.lazy(
|
|
178
|
-
() => import("./
|
|
177
|
+
() => import("./subscription-CqhnWDq_.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
179
178
|
), uo = o.lazy(
|
|
180
|
-
() => import("./
|
|
179
|
+
() => import("./top-up-9OWzVCVP.js").then((e) => ({ default: e.TopUpBalance }))
|
|
181
180
|
), Io = o.lazy(
|
|
182
|
-
() => import("./
|
|
181
|
+
() => import("./order-Bd24i-W3.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
182
|
+
), mo = o.lazy(
|
|
183
|
+
() => import("./charge-DC4f3U8I.js").then((e) => e.a3).then((e) => ({ default: e.CustomerDashboard }))
|
|
183
184
|
), x = o.lazy(
|
|
184
|
-
() => import("./charge-
|
|
185
|
-
),
|
|
186
|
-
() => import("./builder-components-
|
|
185
|
+
() => import("./charge-DC4f3U8I.js").then((e) => e.a2).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
186
|
+
), go = () => null, n = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(go, {}), children: e }), po = o.lazy(
|
|
187
|
+
() => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
|
|
187
188
|
default: e.RenderAnnouncement
|
|
188
189
|
}))
|
|
189
190
|
), b = o.lazy(
|
|
190
|
-
() => import("./builder-components-
|
|
191
|
+
() => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
|
|
191
192
|
default: e.RenderFooter
|
|
192
193
|
}))
|
|
193
194
|
), U = o.lazy(
|
|
194
|
-
() => import("./builder-components-
|
|
195
|
+
() => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
|
|
195
196
|
default: e.RenderHeader
|
|
196
197
|
}))
|
|
197
|
-
),
|
|
198
|
+
), To = (e) => {
|
|
198
199
|
const {
|
|
199
200
|
blocks: l,
|
|
200
201
|
settings: s,
|
|
@@ -228,7 +229,7 @@ const eo = o.lazy(
|
|
|
228
229
|
const T = new s().blockSettings;
|
|
229
230
|
F(T);
|
|
230
231
|
}, []), o.useEffect(() => {
|
|
231
|
-
|
|
232
|
+
eo();
|
|
232
233
|
}, []), o.useLayoutEffect(() => {
|
|
233
234
|
const h = {};
|
|
234
235
|
Object.keys(l).map((D) => {
|
|
@@ -237,21 +238,21 @@ const eo = o.lazy(
|
|
|
237
238
|
const T = Q([
|
|
238
239
|
{
|
|
239
240
|
element: /* @__PURE__ */ t(
|
|
240
|
-
|
|
241
|
+
$t,
|
|
241
242
|
{
|
|
242
243
|
shopDomain: S,
|
|
243
244
|
shopId: P,
|
|
244
245
|
shopPassword: O || void 0,
|
|
245
246
|
shopLogo: y,
|
|
246
|
-
children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(
|
|
247
|
+
children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(ao, { children: /* @__PURE__ */ t(X, {}) }) })
|
|
247
248
|
}
|
|
248
249
|
),
|
|
249
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
250
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, {}) }),
|
|
250
251
|
children: [
|
|
251
252
|
{
|
|
252
253
|
path: "/admin/builder/*",
|
|
253
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
254
|
-
|
|
254
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(no, { children: /* @__PURE__ */ t(
|
|
255
|
+
to,
|
|
255
256
|
{
|
|
256
257
|
blocks: l,
|
|
257
258
|
settings: s,
|
|
@@ -260,43 +261,43 @@ const eo = o.lazy(
|
|
|
260
261
|
announcement: I
|
|
261
262
|
}
|
|
262
263
|
) }) }),
|
|
263
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
264
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(oo, {}) })
|
|
264
265
|
},
|
|
265
266
|
...C,
|
|
266
267
|
{
|
|
267
268
|
path: "/checkout",
|
|
268
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
269
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(io, {}) }),
|
|
269
270
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
270
271
|
loader: () => (document.title = "Checkout", !0)
|
|
271
272
|
},
|
|
272
273
|
{
|
|
273
274
|
path: "/top-up",
|
|
274
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
275
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(uo, {}) }),
|
|
275
276
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
276
277
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
277
278
|
},
|
|
278
279
|
{
|
|
279
280
|
path: "/charges/:id",
|
|
280
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
281
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
|
|
281
282
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
282
283
|
loader: () => (document.title = "Charges", !0)
|
|
283
284
|
},
|
|
284
285
|
{
|
|
285
286
|
path: "/orders/:id/:accessToken?",
|
|
286
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
287
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(Io, {}) }),
|
|
287
288
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
288
289
|
loader: () => (document.title = "Orders", !0)
|
|
289
290
|
},
|
|
290
291
|
{
|
|
291
292
|
path: "/subscriptions/:id/:accessToken?",
|
|
292
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
293
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ho, {}) }),
|
|
293
294
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
294
295
|
loader: () => (document.title = "Subscriptions", !0)
|
|
295
296
|
},
|
|
296
297
|
{
|
|
297
298
|
path: c ? "/account" : "/customer-dash",
|
|
298
299
|
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ L("div", { className: R.wrapper, children: [
|
|
299
|
-
/* @__PURE__ */ t(
|
|
300
|
+
/* @__PURE__ */ t(po, {}),
|
|
300
301
|
/* @__PURE__ */ t(U, {}),
|
|
301
302
|
/* @__PURE__ */ t(
|
|
302
303
|
"div",
|
|
@@ -304,7 +305,7 @@ const eo = o.lazy(
|
|
|
304
305
|
style: {
|
|
305
306
|
flex: "1 1 auto"
|
|
306
307
|
},
|
|
307
|
-
children: /* @__PURE__ */ t(
|
|
308
|
+
children: /* @__PURE__ */ t(mo, {})
|
|
308
309
|
}
|
|
309
310
|
),
|
|
310
311
|
/* @__PURE__ */ t(b, {})
|
|
@@ -314,7 +315,7 @@ const eo = o.lazy(
|
|
|
314
315
|
},
|
|
315
316
|
{
|
|
316
317
|
path: "/validation",
|
|
317
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
318
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ro, {}) }),
|
|
318
319
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
319
320
|
loader: () => (document.title = "Validation", !0)
|
|
320
321
|
},
|
|
@@ -330,7 +331,7 @@ const eo = o.lazy(
|
|
|
330
331
|
width: "100%",
|
|
331
332
|
height: "100%"
|
|
332
333
|
},
|
|
333
|
-
children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(
|
|
334
|
+
children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(so, {}) })
|
|
334
335
|
}
|
|
335
336
|
),
|
|
336
337
|
/* @__PURE__ */ t(b, {})
|
|
@@ -350,5 +351,5 @@ const eo = o.lazy(
|
|
|
350
351
|
}, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
|
|
351
352
|
};
|
|
352
353
|
export {
|
|
353
|
-
|
|
354
|
+
To as App
|
|
354
355
|
};
|