@billgangcom/theme-lib 1.113.0 → 1.114.1
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-tlfk07XU.cjs → builder-BVVH9Uc0.cjs} +8 -8
- package/dist/{builder-components-CvCnVAKT.js → builder-components-BD45uk6H.js} +4 -4
- package/dist/{builder-components-AImqs4dE.cjs → builder-components-BEFw4EcA.cjs} +1 -1
- package/dist/{builder-DCG_rKLl.js → builder-dGixT-_d.js} +402 -401
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +87 -86
- package/dist/{charge-BFX6SXea.cjs → charge-DAXMrlAq.cjs} +43 -43
- package/dist/{charge-CKZp4zQi.js → charge-Nfq6BBT0.js} +5934 -5806
- package/dist/{checkout-D_xfWCWz.js → checkout-DJA7m9bE.js} +5 -5
- package/dist/{checkout-Cmeyss5G.cjs → checkout-DaksJ-vl.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-CYZyAwBn.cjs → index-BE-LNEM-.cjs} +1 -1
- package/dist/{index-CK7UKF-8.cjs → index-CMngiHt6.cjs} +1 -1
- package/dist/{index-u_Bjlw7n.js → index-CSYLpXUY.js} +5 -5
- package/dist/{index-ho-UznN6.js → index-CX9eAqxn.js} +5 -5
- package/dist/{index-JpZDgvfI.js → index-CgAhbfol.js} +1 -1
- package/dist/{index-apLxO6zR.cjs → index-Cq-HG360.cjs} +1 -1
- package/dist/{index-CRHFyKXf.cjs → index-CwBlGUFg.cjs} +1 -1
- package/dist/{index-CIvEpWP9.cjs → index-CxES4Y2E.cjs} +1 -1
- package/dist/{index-Bx89f_4A.js → index-DKVA1wV8.js} +5 -5
- package/dist/{index-C3cH2PFK.js → index-Drs_bUt0.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-CviSw7zw.js → order-BiWH1GaD.js} +5 -5
- package/dist/{order-CXwHDXJN.cjs → order-EtDX2zwp.cjs} +1 -1
- package/dist/src/storefront/api/order.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/{subscription-DzjUTqSQ.js → subscription-BsED7sfb.js} +5 -5
- package/dist/{subscription-7CuU3nB5.cjs → subscription-DuCTTG3r.cjs} +1 -1
- package/dist/{ticket-DZ2eg4MX.cjs → ticket-CbHpWM1U.cjs} +1 -1
- package/dist/{ticket-DKw8gvGf.js → ticket-D82dpA86.js} +5 -5
- package/dist/{top-up-Cpz4gJGX.js → top-up-CKuuSysp.js} +5 -5
- package/dist/{top-up-Bh_RGoNj.cjs → top-up-Czf-dtwC.cjs} +1 -1
- package/dist/{ui-components-BkCPFgEA.js → ui-components-D3S3Wicn.js} +4 -4
- package/dist/{ui-components-CFXj3WGq.cjs → ui-components-DgahiZcB.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-COeamQDf.js → validation-BVXpLz7D.js} +5 -5
- package/dist/{validation-U25w3oxY.cjs → validation-otConG8r.cjs} +1 -1
- package/package.json +1 -1
package/dist/builder.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-BVVH9Uc0.cjs"),p=require("./ticket-CbHpWM1U.cjs"),n=require("react"),E=require("./charge-DAXMrlAq.cjs"),M=require("./ui-components-DgahiZcB.cjs"),r=require("@phosphor-icons/react"),V=({children:t,shopDomain:d,shopId:u,shopPassword:h,shopLogo:g})=>{const{setShopDomain:x,setShopId:C,setShopPassword:k,setShopTerms:f,setShopPrivacyPolicy:l,setShopRefundPolicy:j,setShopLogo:w}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const s=async()=>{const{data:c}=await E.fetchTerms();f(c)},S=async()=>{const{data:c}=await E.fetchPrivacyPolicy();l(c)},v=async()=>{const{data:c}=await E.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&w(g),s(),S(),v()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",L={wrapper:_};function X(){M.registerIcons({X:r.X,Plus:r.Plus,Minus:r.Minus,Check:r.Check,Clock:r.Clock,Info:r.Info,Copy:r.Copy,Trash:r.Trash,Sliders:r.Sliders,Image:r.Image,List:r.List,Handbag:r.Handbag,Bag:r.Bag,Eye:r.Eye,Crown:r.Crown,ArrowUp:r.ArrowUp,ArrowLineUpRight:r.ArrowLineUpRight,CaretRight:r.CaretRight,CaretDown:r.CaretDown,MagnifyingGlass:r.MagnifyingGlass,ArrowLineDown:r.ArrowLineDown,CloudArrowUpIcon:r.CloudArrowUpIcon,CheckCircle:r.CheckCircle,XCircle:r.XCircle,Star:r.Star,Fire:r.Fire,Lightning:r.Lightning,FileText:r.FileText,BookOpen:r.BookOpen,DownloadSimple:r.DownloadSimple,DiscordLogo:r.DiscordLogo,TelegramLogo:r.TelegramLogo,SignOut:r.SignOut,Wallet:r.Wallet,PaperPlaneRight:r.PaperPlaneRight,ChatsTeardrop:r.ChatsTeardrop,DotsSixVertical:r.DotsSixVertical,ArrowLeft:r.ArrowLeft,ArrowRight:r.ArrowRight,Heart:r.Heart,User:r.User,Calendar:r.Calendar,House:r.House,CurrencyCircleDollar:r.CurrencyCircleDollar,Medal:r.Medal,CalendarCheck:r.CalendarCheck,Question:r.Question,Shield:r.Shield,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const G=n.lazy(()=>Promise.resolve().then(()=>require("./builder-BVVH9Uc0.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-BE-LNEM-.cjs")).then(t=>({default:t.ErrorPage}))),Q=n.lazy(()=>Promise.resolve().then(()=>require("./index-CwBlGUFg.cjs")).then(t=>({default:t.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-otConG8r.cjs")).then(t=>({default:t.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-CxES4Y2E.cjs")).then(t=>({default:t.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-CMngiHt6.cjs")).then(t=>({default:t.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-Cq-HG360.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-DaksJ-vl.cjs")).then(t=>({default:t.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DAXMrlAq.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-CbHpWM1U.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-DuCTTG3r.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-Czf-dtwC.cjs")).then(t=>({default:t.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-EtDX2zwp.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DAXMrlAq.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),b=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DAXMrlAq.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),se=()=>null,o=({children:t})=>e.jsx(n.Suspense,{fallback:e.jsx(se,{}),children:t}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BEFw4EcA.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),T=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BEFw4EcA.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),I=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BEFw4EcA.cjs")).then(t=>t.index).then(t=>({default:t.RenderHeader}))),ie=t=>{const{blocks:d,settings:u,header:h,footer:g,announcement:x,routes:C=[],shopLogo:k,apiURLs:f,isAntistock:l=!1}=t,[j,w]=n.useState(null),{general:s,setIsAntistock:S}=a.useGeneralStore(),{setApiUrls:v}=a.useApiStore(),{setBlocks:c,setSourceBlocks:z,setHeader:B,setFooter:F,setAnnouncement:O,setSettings:U}=a.useBlocksStore(),{themeSettings:y}=a.useThemeSettingsStore(),{settings:D,setSettings:H}=a.useSettingsStore(),P=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),A=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(l)},[l,S]),n.useEffect(()=>{!A&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!P&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!P&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[P]),n.useEffect(()=>{if(y&&D){const m=p.generateDynamicStyles(y,D);p.loadCustomFonts(),p.setupDynamicFonts(y),p.injectStylesToDOM(m)}},[y,JSON.stringify(D),window.location.hostname]),n.useEffect(()=>{const R=new u().blockSettings;H(R)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const m={};Object.keys(d).map(q=>{m[q]=d[q]}),z(m),c(m),B(h),F(g),O(x),U(u),f&&v(f);const R=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:P,shopId:A,shopPassword:W||void 0,shopLogo:k,children:e.jsx(b,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(o,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(o,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(o,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(o,{children:e.jsx(Y,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(o,{children:e.jsx(re,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(o,{children:e.jsx(Z,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(o,{children:e.jsx(ne,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(o,{children:e.jsx(te,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(o,{children:e.jsxs("div",{className:L.wrapper,children:[e.jsx(ae,{}),e.jsx(I,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(oe,{})}),e.jsx(T,{})]})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(o,{children:e.jsx(J,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(o,{children:e.jsxs("div",{className:L.wrapper,children:[e.jsx(I,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(b,{children:e.jsx(ee,{})})}),e.jsx(T,{})]})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(o,{children:e.jsx(i,{})})}]}]);w(R)},[s]),e.jsx(n.Suspense,{fallback:null,children:j&&e.jsx(a.RouterProvider,{router:j})})};exports.App=ie;
|
package/dist/builder.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t, Fragment as W, jsxs as z } from "react/jsx-runtime";
|
|
2
|
-
import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-
|
|
3
|
-
import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-
|
|
2
|
+
import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-dGixT-_d.js";
|
|
3
|
+
import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-D82dpA86.js";
|
|
4
4
|
import r, { Suspense as te } from "react";
|
|
5
|
-
import { W as re, X as oe, Y as ne } from "./charge-
|
|
6
|
-
import { o as ae } from "./ui-components-
|
|
7
|
-
import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Shield as de, Question as he, CalendarCheck as ue, Medal as me, CurrencyCircleDollar as pe, House as fe, Calendar as ge, User as ye, Heart as Se, ArrowRight as ke, ArrowLeft as Pe, DotsSixVertical as Ce, ChatsTeardrop as we, PaperPlaneRight as Ee, Wallet as Re, SignOut as De, TelegramLogo as be, DiscordLogo as ze, DownloadSimple as
|
|
8
|
-
const
|
|
5
|
+
import { W as re, X as oe, Y as ne } from "./charge-Nfq6BBT0.js";
|
|
6
|
+
import { o as ae } from "./ui-components-D3S3Wicn.js";
|
|
7
|
+
import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Shield as de, Question as he, CalendarCheck as ue, Medal as me, CurrencyCircleDollar as pe, House as fe, Calendar as ge, User as ye, Heart as Se, ArrowRight as ke, ArrowLeft as Pe, DotsSixVertical as Ce, ChatsTeardrop as we, PaperPlaneRight as Ee, Wallet as Re, SignOut as De, TelegramLogo as be, DiscordLogo as ze, DownloadSimple as Ae, BookOpen as Te, FileText as Ie, Lightning as Le, Fire as Be, Star as ve, XCircle as Fe, CheckCircle as Oe, CloudArrowUpIcon as Ue, ArrowLineDown as xe, MagnifyingGlass as He, CaretDown as We, CaretRight as je, ArrowLineUpRight as _e, ArrowUp as Me, Crown as Ve, Eye as Ne, Bag as Xe, Handbag as Ge, List as Je, Image as Ke, Sliders as Qe, Trash as Ye, Copy as $e, Info as qe, Clock as Ze, Check as et, Minus as tt, Plus as rt, X as ot } from "@phosphor-icons/react";
|
|
8
|
+
const nt = ({
|
|
9
9
|
children: e,
|
|
10
10
|
shopDomain: c,
|
|
11
11
|
shopId: l,
|
|
@@ -34,43 +34,44 @@ const ot = ({
|
|
|
34
34
|
};
|
|
35
35
|
m(c), k(l), d && P(d), u && C(u), n(), g(), w();
|
|
36
36
|
}, [c, l, d]), /* @__PURE__ */ t(W, { children: e });
|
|
37
|
-
},
|
|
38
|
-
wrapper:
|
|
37
|
+
}, at = "_wrapper_1xuz3_18", A = {
|
|
38
|
+
wrapper: at
|
|
39
39
|
};
|
|
40
|
-
function
|
|
40
|
+
function st() {
|
|
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
|
-
ArrowLineUpRight:
|
|
60
|
-
CaretRight:
|
|
61
|
-
CaretDown:
|
|
43
|
+
X: ot,
|
|
44
|
+
Plus: rt,
|
|
45
|
+
Minus: tt,
|
|
46
|
+
Check: et,
|
|
47
|
+
Clock: Ze,
|
|
48
|
+
Info: qe,
|
|
49
|
+
Copy: $e,
|
|
50
|
+
Trash: Ye,
|
|
51
|
+
Sliders: Qe,
|
|
52
|
+
Image: Ke,
|
|
53
|
+
List: Je,
|
|
54
|
+
Handbag: Ge,
|
|
55
|
+
Bag: Xe,
|
|
56
|
+
Eye: Ne,
|
|
57
|
+
Crown: Ve,
|
|
58
|
+
ArrowUp: Me,
|
|
59
|
+
ArrowLineUpRight: _e,
|
|
60
|
+
CaretRight: je,
|
|
61
|
+
CaretDown: We,
|
|
62
62
|
MagnifyingGlass: He,
|
|
63
63
|
ArrowLineDown: xe,
|
|
64
|
+
CloudArrowUpIcon: Ue,
|
|
64
65
|
// Статусы и действия
|
|
65
66
|
CheckCircle: Oe,
|
|
66
67
|
XCircle: Fe,
|
|
67
68
|
Star: ve,
|
|
68
|
-
Fire:
|
|
69
|
-
Lightning:
|
|
69
|
+
Fire: Be,
|
|
70
|
+
Lightning: Le,
|
|
70
71
|
// Файлы и документы
|
|
71
|
-
FileText:
|
|
72
|
-
BookOpen:
|
|
73
|
-
DownloadSimple:
|
|
72
|
+
FileText: Ie,
|
|
73
|
+
BookOpen: Te,
|
|
74
|
+
DownloadSimple: Ae,
|
|
74
75
|
// Социальные сети
|
|
75
76
|
DiscordLogo: ze,
|
|
76
77
|
TelegramLogo: be,
|
|
@@ -101,46 +102,46 @@ function at() {
|
|
|
101
102
|
WarningDiamond: se
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
|
-
const
|
|
105
|
-
() => import("./builder-
|
|
106
|
-
), it = r.lazy(
|
|
107
|
-
() => import("./index-Bx89f_4A.js").then((e) => ({ default: e.ErrorPage }))
|
|
105
|
+
const it = r.lazy(
|
|
106
|
+
() => import("./builder-dGixT-_d.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
108
107
|
), ct = r.lazy(
|
|
109
|
-
() => import("./index-
|
|
108
|
+
() => import("./index-DKVA1wV8.js").then((e) => ({ default: e.ErrorPage }))
|
|
110
109
|
), lt = r.lazy(
|
|
111
|
-
() => import("./
|
|
110
|
+
() => import("./index-CgAhbfol.js").then((e) => ({ default: e.ActivePage }))
|
|
112
111
|
), dt = r.lazy(
|
|
113
|
-
() => import("./
|
|
112
|
+
() => import("./validation-BVXpLz7D.js").then((e) => ({ default: e.ValidationPage }))
|
|
114
113
|
), ht = r.lazy(
|
|
115
|
-
() => import("./index-
|
|
116
|
-
), a = r.lazy(
|
|
117
|
-
() => import("./index-ho-UznN6.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
114
|
+
() => import("./index-Drs_bUt0.js").then((e) => ({ default: e.WrapperPage }))
|
|
118
115
|
), ut = r.lazy(
|
|
119
|
-
() => import("./
|
|
116
|
+
() => import("./index-CSYLpXUY.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
117
|
+
), a = r.lazy(
|
|
118
|
+
() => import("./index-CX9eAqxn.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
120
119
|
), mt = r.lazy(
|
|
121
|
-
() => import("./
|
|
120
|
+
() => import("./checkout-DJA7m9bE.js").then((e) => ({ default: e.Checkout }))
|
|
122
121
|
), pt = r.lazy(
|
|
123
|
-
() => import("./
|
|
122
|
+
() => import("./charge-Nfq6BBT0.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
|
|
124
123
|
), ft = r.lazy(
|
|
125
|
-
() => import("./
|
|
124
|
+
() => import("./ticket-D82dpA86.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
126
125
|
), gt = r.lazy(
|
|
127
|
-
() => import("./
|
|
126
|
+
() => import("./subscription-BsED7sfb.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
128
127
|
), yt = r.lazy(
|
|
129
|
-
() => import("./
|
|
128
|
+
() => import("./top-up-CKuuSysp.js").then((e) => ({ default: e.TopUpBalance }))
|
|
130
129
|
), St = r.lazy(
|
|
131
|
-
() => import("./
|
|
132
|
-
),
|
|
133
|
-
() => import("./charge-
|
|
134
|
-
),
|
|
135
|
-
() => import("./
|
|
130
|
+
() => import("./order-BiWH1GaD.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
131
|
+
), kt = r.lazy(
|
|
132
|
+
() => import("./charge-Nfq6BBT0.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
|
|
133
|
+
), T = r.lazy(
|
|
134
|
+
() => import("./charge-Nfq6BBT0.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
135
|
+
), Pt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(Pt, {}), children: e }), Ct = r.lazy(
|
|
136
|
+
() => import("./builder-components-BD45uk6H.js").then((e) => e.i).then((e) => ({
|
|
136
137
|
default: e.RenderAnnouncement
|
|
137
138
|
}))
|
|
138
|
-
),
|
|
139
|
-
() => import("./builder-components-
|
|
139
|
+
), I = r.lazy(
|
|
140
|
+
() => import("./builder-components-BD45uk6H.js").then((e) => e.i).then((e) => ({
|
|
140
141
|
default: e.RenderFooter
|
|
141
142
|
}))
|
|
142
|
-
),
|
|
143
|
-
() => import("./builder-components-
|
|
143
|
+
), L = r.lazy(
|
|
144
|
+
() => import("./builder-components-BD45uk6H.js").then((e) => e.i).then((e) => ({
|
|
144
145
|
default: e.RenderHeader
|
|
145
146
|
}))
|
|
146
147
|
), Tt = (e) => {
|
|
@@ -156,12 +157,12 @@ const st = r.lazy(
|
|
|
156
157
|
isAntistock: s = !1
|
|
157
158
|
} = e, [f, C] = r.useState(null), { general: n, setIsAntistock: g } = _(), { setApiUrls: w } = M(), {
|
|
158
159
|
setBlocks: i,
|
|
159
|
-
setSourceBlocks:
|
|
160
|
+
setSourceBlocks: B,
|
|
160
161
|
setHeader: v,
|
|
161
162
|
setFooter: F,
|
|
162
163
|
setAnnouncement: O,
|
|
163
|
-
setSettings:
|
|
164
|
-
} = V(), { themeSettings: y } = N(), { settings: E, setSettings:
|
|
164
|
+
setSettings: U
|
|
165
|
+
} = V(), { themeSettings: y } = N(), { settings: E, setSettings: x } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, H = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
|
|
165
166
|
return r.useEffect(() => {
|
|
166
167
|
g(s);
|
|
167
168
|
}, [s, g]), r.useEffect(() => {
|
|
@@ -175,32 +176,32 @@ const st = r.lazy(
|
|
|
175
176
|
}
|
|
176
177
|
}, [y, JSON.stringify(E), window.location.hostname]), r.useEffect(() => {
|
|
177
178
|
const R = new l().blockSettings;
|
|
178
|
-
|
|
179
|
+
x(R);
|
|
179
180
|
}, []), r.useEffect(() => {
|
|
180
|
-
|
|
181
|
+
st();
|
|
181
182
|
}, []), r.useLayoutEffect(() => {
|
|
182
183
|
const h = {};
|
|
183
184
|
Object.keys(c).map((b) => {
|
|
184
185
|
h[b] = c[b];
|
|
185
|
-
}),
|
|
186
|
+
}), B(h), i(h), v(d), F(u), O(m), U(l), p && w(p);
|
|
186
187
|
const R = J([
|
|
187
188
|
{
|
|
188
189
|
element: /* @__PURE__ */ t(
|
|
189
|
-
|
|
190
|
+
nt,
|
|
190
191
|
{
|
|
191
192
|
shopDomain: S,
|
|
192
193
|
shopId: D,
|
|
193
|
-
shopPassword:
|
|
194
|
+
shopPassword: H || void 0,
|
|
194
195
|
shopLogo: P,
|
|
195
|
-
children: /* @__PURE__ */ t(
|
|
196
|
+
children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t(K, {}) }) })
|
|
196
197
|
}
|
|
197
198
|
),
|
|
198
|
-
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
199
|
+
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ut, {}) }),
|
|
199
200
|
children: [
|
|
200
201
|
{
|
|
201
202
|
path: "/admin/builder/*",
|
|
202
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
203
|
-
|
|
203
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, { children: /* @__PURE__ */ t(
|
|
204
|
+
it,
|
|
204
205
|
{
|
|
205
206
|
blocks: c,
|
|
206
207
|
settings: l,
|
|
@@ -209,68 +210,68 @@ const st = r.lazy(
|
|
|
209
210
|
announcement: m
|
|
210
211
|
}
|
|
211
212
|
) }) }),
|
|
212
|
-
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
213
|
+
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ct, {}) })
|
|
213
214
|
},
|
|
214
215
|
...k,
|
|
215
216
|
{
|
|
216
217
|
path: "/checkout",
|
|
217
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
218
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
|
|
218
219
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
219
220
|
loader: () => (document.title = "Checkout", !0)
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
223
|
path: "/top-up",
|
|
223
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
224
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(yt, {}) }),
|
|
224
225
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
225
226
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
226
227
|
},
|
|
227
228
|
{
|
|
228
229
|
path: "/charges/:id",
|
|
229
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
230
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(pt, {}) }),
|
|
230
231
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
231
232
|
loader: () => (document.title = "Charges", !0)
|
|
232
233
|
},
|
|
233
234
|
{
|
|
234
235
|
path: "/orders/:id/:accessToken?",
|
|
235
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
236
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(St, {}) }),
|
|
236
237
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
237
238
|
loader: () => (document.title = "Orders", !0)
|
|
238
239
|
},
|
|
239
240
|
{
|
|
240
241
|
path: "/subscriptions/:id/:accessToken?",
|
|
241
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
242
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(gt, {}) }),
|
|
242
243
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
243
244
|
loader: () => (document.title = "Subscriptions", !0)
|
|
244
245
|
},
|
|
245
246
|
{
|
|
246
247
|
path: s ? "/account" : "/customer-dash",
|
|
247
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className:
|
|
248
|
-
/* @__PURE__ */ t(
|
|
249
|
-
/* @__PURE__ */ t(
|
|
248
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: A.wrapper, children: [
|
|
249
|
+
/* @__PURE__ */ t(Ct, {}),
|
|
250
|
+
/* @__PURE__ */ t(L, {}),
|
|
250
251
|
/* @__PURE__ */ t(
|
|
251
252
|
"div",
|
|
252
253
|
{
|
|
253
254
|
style: {
|
|
254
255
|
flex: "1 1 auto"
|
|
255
256
|
},
|
|
256
|
-
children: /* @__PURE__ */ t(
|
|
257
|
+
children: /* @__PURE__ */ t(kt, {})
|
|
257
258
|
}
|
|
258
259
|
),
|
|
259
|
-
/* @__PURE__ */ t(
|
|
260
|
+
/* @__PURE__ */ t(I, {})
|
|
260
261
|
] }) }),
|
|
261
262
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
262
263
|
loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
|
|
263
264
|
},
|
|
264
265
|
{
|
|
265
266
|
path: "/validation",
|
|
266
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
267
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(dt, {}) }),
|
|
267
268
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
268
269
|
loader: () => (document.title = "Validation", !0)
|
|
269
270
|
},
|
|
270
271
|
{
|
|
271
272
|
path: "/ticket/:id/:accessToken",
|
|
272
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className:
|
|
273
|
-
/* @__PURE__ */ t(
|
|
273
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: A.wrapper, children: [
|
|
274
|
+
/* @__PURE__ */ t(L, {}),
|
|
274
275
|
/* @__PURE__ */ t(
|
|
275
276
|
"div",
|
|
276
277
|
{
|
|
@@ -279,10 +280,10 @@ const st = r.lazy(
|
|
|
279
280
|
width: "100%",
|
|
280
281
|
height: "100%"
|
|
281
282
|
},
|
|
282
|
-
children: /* @__PURE__ */ t(
|
|
283
|
+
children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(ft, {}) })
|
|
283
284
|
}
|
|
284
285
|
),
|
|
285
|
-
/* @__PURE__ */ t(
|
|
286
|
+
/* @__PURE__ */ t(I, {})
|
|
286
287
|
] }) }),
|
|
287
288
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
288
289
|
loader: () => (document.title = "Ticket", !0)
|