@billgangcom/theme-lib 1.110.6 → 1.110.7
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.cjs.js +1 -1
- package/dist/builder.es.js +96 -90
- 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-B7hjBRYI.cjs"),p=require("./ticket-DXz_-29l.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-B7hjBRYI.cjs"),p=require("./ticket-DXz_-29l.cjs"),n=require("react"),D=require("./charge-BAP3iPAM.cjs"),M=require("./ui-components-CWLDlDmG.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:v}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const o=async()=>{const{data:c}=await D.fetchTerms();f(c)},y=async()=>{const{data:c}=await D.fetchPrivacyPolicy();l(c)},w=async()=>{const{data:c}=await D.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&v(g),o(),y(),w()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",T={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,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,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const G=n.lazy(()=>Promise.resolve().then(()=>require("./builder-B7hjBRYI.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-BXhAWCRX.cjs")).then(t=>({default:t.ErrorPage}))),Q=n.lazy(()=>Promise.resolve().then(()=>require("./index-CEMbDy4G.cjs")).then(t=>({default:t.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-BVAD1q1L.cjs")).then(t=>({default:t.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-BBMTjm8A.cjs")).then(t=>({default:t.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-Cbqz9kIG.cjs")).then(t=>({default:t.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-R_FZBtaZ.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-CUct7uCm.cjs")).then(t=>({default:t.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-DXz_-29l.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-iNnLGi0T.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-B7E7FUjn.cjs")).then(t=>({default:t.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-BOaO9a-C.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),L=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),oe=()=>null,s=({children:t})=>e.jsx(n.Suspense,{fallback:e.jsx(oe,{}),children:t}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),A=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),z=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.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,v]=n.useState(null),{general:o,setIsAntistock:y}=a.useGeneralStore(),{setApiUrls:w}=a.useApiStore(),{setBlocks:c,setSourceBlocks:B,setHeader:I,setFooter:F,setAnnouncement:O,setSettings:H}=a.useBlocksStore(),{themeSettings:P}=a.useThemeSettingsStore(),{settings:R,setSettings:U}=a.useSettingsStore(),S=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),q=localStorage.getItem("shopId")||"";return n.useEffect(()=>{y(l)},[l,y]),n.useEffect(()=>{!q&&(o!=null&&o.info.id)&&localStorage.setItem("shopId",o==null?void 0:o.info.id)},[o]),n.useEffect(()=>{!S&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!S&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[S]),n.useEffect(()=>{if(P&&R){const m=p.generateDynamicStyles(P,R);p.loadCustomFonts(),p.setupDynamicFonts(P),p.injectStylesToDOM(m)}},[P,JSON.stringify(R),window.location.hostname]),n.useEffect(()=>{const E=new u().blockSettings;U(E)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const m={};Object.keys(d).map(b=>{m[b]=d[b]}),B(m),c(m),I(h),F(g),O(x),H(u),f&&w(f);const E=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:S,shopId:q,shopPassword:W||void 0,shopLogo:k,children:e.jsx(L,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(s,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(s,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(s,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(s,{children:e.jsx(Y,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(s,{children:e.jsx(re,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(s,{children:e.jsx(Z,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(ne,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(te,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(s,{children:e.jsxs("div",{className:T.wrapper,children:[e.jsx(ae,{}),e.jsx(z,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(se,{})}),e.jsx(A,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(s,{children:e.jsx(J,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(s,{children:e.jsxs("div",{className:T.wrapper,children:[e.jsx(z,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(L,{children:e.jsx(ee,{})})}),e.jsx(A,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(s,{children:e.jsx(i,{})})}]}]);v(E)},[o]),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
|
-
import { jsx as t, Fragment as W, jsxs as
|
|
1
|
+
import { jsx as t, Fragment as W, jsxs as z } from "react/jsx-runtime";
|
|
2
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-D_zv5ue0.js";
|
|
3
3
|
import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-B0VGIvyK.js";
|
|
4
4
|
import r, { Suspense as te } from "react";
|
|
5
5
|
import { W as re, X as oe, Y as ne } from "./charge-BQUHzEju.js";
|
|
6
6
|
import { n as ae } from "./ui-components-BTotDG_w.js";
|
|
7
|
-
import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as he, Medal as ue, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye,
|
|
8
|
-
const
|
|
7
|
+
import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as he, Medal as ue, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye, ArrowRight as Se, ArrowLeft as ke, DotsSixVertical as Pe, ChatsTeardrop as Ce, PaperPlaneRight as Ee, Wallet as we, SignOut as Re, TelegramLogo as De, DiscordLogo as be, DownloadSimple as ze, BookOpen as Te, FileText as Ae, Lightning as Be, Fire as Ie, Star as Le, XCircle as ve, CheckCircle as Fe, MagnifyingGlass as Oe, CaretDown as xe, CaretRight as He, ArrowLineUpRight as Ue, ArrowUp as We, Crown as je, Eye as _e, Bag as Me, Handbag as Ve, List as Ne, Image as Xe, Sliders as Ge, Trash as Je, Copy as Ke, Info as Qe, Clock as Ye, Check as $e, Minus as qe, Plus as Ze, X as et } from "@phosphor-icons/react";
|
|
8
|
+
const tt = ({
|
|
9
9
|
children: e,
|
|
10
10
|
shopDomain: c,
|
|
11
11
|
shopId: l,
|
|
@@ -34,47 +34,53 @@ const Qe = ({
|
|
|
34
34
|
};
|
|
35
35
|
m(c), k(l), d && P(d), u && C(u), n(), g(), E();
|
|
36
36
|
}, [c, l, d]), /* @__PURE__ */ t(W, { children: e });
|
|
37
|
-
},
|
|
38
|
-
wrapper:
|
|
37
|
+
}, rt = "_wrapper_1xuz3_18", T = {
|
|
38
|
+
wrapper: rt
|
|
39
39
|
};
|
|
40
|
-
function
|
|
40
|
+
function ot() {
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
X: et,
|
|
44
|
+
Plus: Ze,
|
|
45
|
+
Minus: qe,
|
|
46
|
+
Check: $e,
|
|
47
|
+
Clock: Ye,
|
|
48
|
+
Info: Qe,
|
|
49
|
+
Copy: Ke,
|
|
50
|
+
Trash: Je,
|
|
51
|
+
Sliders: Ge,
|
|
52
|
+
Image: Xe,
|
|
53
|
+
List: Ne,
|
|
54
|
+
Handbag: Ve,
|
|
55
|
+
Bag: Me,
|
|
56
|
+
Eye: _e,
|
|
57
|
+
Crown: je,
|
|
58
|
+
ArrowUp: We,
|
|
59
|
+
ArrowLineUpRight: Ue,
|
|
60
|
+
CaretRight: He,
|
|
61
|
+
CaretDown: xe,
|
|
62
|
+
MagnifyingGlass: Oe,
|
|
59
63
|
// Статусы и действия
|
|
60
|
-
CheckCircle:
|
|
61
|
-
XCircle:
|
|
62
|
-
Star:
|
|
64
|
+
CheckCircle: Fe,
|
|
65
|
+
XCircle: ve,
|
|
66
|
+
Star: Le,
|
|
63
67
|
Fire: Ie,
|
|
64
|
-
Lightning:
|
|
68
|
+
Lightning: Be,
|
|
65
69
|
// Файлы и документы
|
|
66
|
-
FileText:
|
|
67
|
-
BookOpen:
|
|
68
|
-
DownloadSimple:
|
|
70
|
+
FileText: Ae,
|
|
71
|
+
BookOpen: Te,
|
|
72
|
+
DownloadSimple: ze,
|
|
69
73
|
// Социальные сети
|
|
70
74
|
DiscordLogo: be,
|
|
71
|
-
TelegramLogo:
|
|
75
|
+
TelegramLogo: De,
|
|
72
76
|
// Навигация и интерфейс
|
|
73
|
-
SignOut:
|
|
74
|
-
Wallet:
|
|
75
|
-
PaperPlaneRight:
|
|
76
|
-
ChatsTeardrop:
|
|
77
|
-
DotsSixVertical:
|
|
77
|
+
SignOut: Re,
|
|
78
|
+
Wallet: we,
|
|
79
|
+
PaperPlaneRight: Ee,
|
|
80
|
+
ChatsTeardrop: Ce,
|
|
81
|
+
DotsSixVertical: Pe,
|
|
82
|
+
ArrowLeft: ke,
|
|
83
|
+
ArrowRight: Se,
|
|
78
84
|
// Специальные иконки
|
|
79
85
|
Heart: ye,
|
|
80
86
|
User: ge,
|
|
@@ -93,49 +99,49 @@ function $e() {
|
|
|
93
99
|
WarningDiamond: se
|
|
94
100
|
});
|
|
95
101
|
}
|
|
96
|
-
const
|
|
102
|
+
const nt = r.lazy(
|
|
97
103
|
() => import("./builder-D_zv5ue0.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
98
|
-
),
|
|
104
|
+
), at = r.lazy(
|
|
99
105
|
() => import("./index-CzkkQ8sH.js").then((e) => ({ default: e.ErrorPage }))
|
|
100
|
-
),
|
|
106
|
+
), st = r.lazy(
|
|
101
107
|
() => import("./index-BJMeFohP.js").then((e) => ({ default: e.ActivePage }))
|
|
102
|
-
),
|
|
108
|
+
), it = r.lazy(
|
|
103
109
|
() => import("./validation-jCwzu5MC.js").then((e) => ({ default: e.ValidationPage }))
|
|
104
|
-
),
|
|
110
|
+
), ct = r.lazy(
|
|
105
111
|
() => import("./index-hCDY-ip7.js").then((e) => ({ default: e.WrapperPage }))
|
|
106
|
-
),
|
|
112
|
+
), lt = r.lazy(
|
|
107
113
|
() => import("./index-CX1FV9wS.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
108
114
|
), a = r.lazy(
|
|
109
115
|
() => import("./index-CMECtXvH.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
110
|
-
),
|
|
116
|
+
), dt = r.lazy(
|
|
111
117
|
() => import("./checkout-uzxtu1pZ.js").then((e) => ({ default: e.Checkout }))
|
|
112
|
-
),
|
|
118
|
+
), ht = r.lazy(
|
|
113
119
|
() => import("./charge-BQUHzEju.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
|
|
114
|
-
),
|
|
120
|
+
), ut = r.lazy(
|
|
115
121
|
() => import("./ticket-B0VGIvyK.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
116
|
-
),
|
|
122
|
+
), mt = r.lazy(
|
|
117
123
|
() => import("./subscription-DIDUTEI3.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
118
|
-
),
|
|
124
|
+
), pt = r.lazy(
|
|
119
125
|
() => import("./top-up-BhB8jhP6.js").then((e) => ({ default: e.TopUpBalance }))
|
|
120
|
-
),
|
|
126
|
+
), ft = r.lazy(
|
|
121
127
|
() => import("./order-CdPcB1OE.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
122
|
-
),
|
|
128
|
+
), gt = r.lazy(
|
|
123
129
|
() => import("./charge-BQUHzEju.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
|
|
124
|
-
),
|
|
130
|
+
), A = r.lazy(
|
|
125
131
|
() => import("./charge-BQUHzEju.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
126
|
-
),
|
|
132
|
+
), yt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(yt, {}), children: e }), St = r.lazy(
|
|
127
133
|
() => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
|
|
128
134
|
default: e.RenderAnnouncement
|
|
129
135
|
}))
|
|
130
|
-
),
|
|
136
|
+
), B = r.lazy(
|
|
131
137
|
() => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
|
|
132
138
|
default: e.RenderFooter
|
|
133
139
|
}))
|
|
134
|
-
),
|
|
140
|
+
), I = r.lazy(
|
|
135
141
|
() => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
|
|
136
142
|
default: e.RenderHeader
|
|
137
143
|
}))
|
|
138
|
-
),
|
|
144
|
+
), bt = (e) => {
|
|
139
145
|
const {
|
|
140
146
|
blocks: c,
|
|
141
147
|
settings: l,
|
|
@@ -149,50 +155,50 @@ const qe = r.lazy(
|
|
|
149
155
|
} = e, [f, C] = r.useState(null), { general: n, setIsAntistock: g } = _(), { setApiUrls: E } = M(), {
|
|
150
156
|
setBlocks: i,
|
|
151
157
|
setSourceBlocks: L,
|
|
152
|
-
setHeader:
|
|
158
|
+
setHeader: v,
|
|
153
159
|
setFooter: F,
|
|
154
160
|
setAnnouncement: O,
|
|
155
161
|
setSettings: x
|
|
156
|
-
} = V(), { themeSettings: y } = N(), { settings:
|
|
162
|
+
} = V(), { themeSettings: y } = N(), { settings: w, setSettings: H } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
|
|
157
163
|
return r.useEffect(() => {
|
|
158
164
|
g(s);
|
|
159
165
|
}, [s, g]), r.useEffect(() => {
|
|
160
|
-
!
|
|
166
|
+
!D && (n != null && n.info.id) && localStorage.setItem("shopId", n == null ? void 0 : n.info.id);
|
|
161
167
|
}, [n]), r.useEffect(() => {
|
|
162
168
|
!S && !s && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && s && localStorage.setItem("fakeDomain", "eva8.astck.io");
|
|
163
169
|
}, [S]), r.useEffect(() => {
|
|
164
|
-
if (y &&
|
|
165
|
-
const h = Y(y,
|
|
170
|
+
if (y && w) {
|
|
171
|
+
const h = Y(y, w);
|
|
166
172
|
$(), q(y), Z(h);
|
|
167
173
|
}
|
|
168
|
-
}, [y, JSON.stringify(
|
|
169
|
-
const
|
|
170
|
-
H(
|
|
174
|
+
}, [y, JSON.stringify(w), window.location.hostname]), r.useEffect(() => {
|
|
175
|
+
const R = new l().blockSettings;
|
|
176
|
+
H(R);
|
|
171
177
|
}, []), r.useEffect(() => {
|
|
172
|
-
|
|
178
|
+
ot();
|
|
173
179
|
}, []), r.useLayoutEffect(() => {
|
|
174
180
|
const h = {};
|
|
175
|
-
Object.keys(c).map((
|
|
176
|
-
h[
|
|
177
|
-
}), L(h), i(h),
|
|
178
|
-
const
|
|
181
|
+
Object.keys(c).map((b) => {
|
|
182
|
+
h[b] = c[b];
|
|
183
|
+
}), L(h), i(h), v(d), F(u), O(m), x(l), p && E(p);
|
|
184
|
+
const R = J([
|
|
179
185
|
{
|
|
180
186
|
element: /* @__PURE__ */ t(
|
|
181
|
-
|
|
187
|
+
tt,
|
|
182
188
|
{
|
|
183
189
|
shopDomain: S,
|
|
184
|
-
shopId:
|
|
190
|
+
shopId: D,
|
|
185
191
|
shopPassword: U || void 0,
|
|
186
192
|
shopLogo: P,
|
|
187
|
-
children: /* @__PURE__ */ t(
|
|
193
|
+
children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ct, { children: /* @__PURE__ */ t(K, {}) }) })
|
|
188
194
|
}
|
|
189
195
|
),
|
|
190
|
-
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
196
|
+
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, {}) }),
|
|
191
197
|
children: [
|
|
192
198
|
{
|
|
193
199
|
path: "/admin/builder/*",
|
|
194
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
195
|
-
|
|
200
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(st, { children: /* @__PURE__ */ t(
|
|
201
|
+
nt,
|
|
196
202
|
{
|
|
197
203
|
blocks: c,
|
|
198
204
|
settings: l,
|
|
@@ -201,68 +207,68 @@ const qe = r.lazy(
|
|
|
201
207
|
announcement: m
|
|
202
208
|
}
|
|
203
209
|
) }) }),
|
|
204
|
-
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
210
|
+
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(at, {}) })
|
|
205
211
|
},
|
|
206
212
|
...k,
|
|
207
213
|
{
|
|
208
214
|
path: "/checkout",
|
|
209
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
215
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(dt, {}) }),
|
|
210
216
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
211
217
|
loader: () => (document.title = "Checkout", !0)
|
|
212
218
|
},
|
|
213
219
|
{
|
|
214
220
|
path: "/top-up",
|
|
215
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
221
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(pt, {}) }),
|
|
216
222
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
217
223
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
218
224
|
},
|
|
219
225
|
{
|
|
220
226
|
path: "/charges/:id",
|
|
221
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
227
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ht, {}) }),
|
|
222
228
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
223
229
|
loader: () => (document.title = "Charges", !0)
|
|
224
230
|
},
|
|
225
231
|
{
|
|
226
232
|
path: "/orders/:id/:accessToken?",
|
|
227
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
233
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ft, {}) }),
|
|
228
234
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
229
235
|
loader: () => (document.title = "Orders", !0)
|
|
230
236
|
},
|
|
231
237
|
{
|
|
232
238
|
path: "/subscriptions/:id/:accessToken?",
|
|
233
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
239
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
|
|
234
240
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
235
241
|
loader: () => (document.title = "Subscriptions", !0)
|
|
236
242
|
},
|
|
237
243
|
{
|
|
238
244
|
path: s ? "/account" : "/customer-dash",
|
|
239
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */ t(
|
|
241
|
-
/* @__PURE__ */ t(
|
|
245
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
|
|
246
|
+
/* @__PURE__ */ t(St, {}),
|
|
247
|
+
/* @__PURE__ */ t(I, {}),
|
|
242
248
|
/* @__PURE__ */ t(
|
|
243
249
|
"div",
|
|
244
250
|
{
|
|
245
251
|
style: {
|
|
246
252
|
flex: "1 1 auto"
|
|
247
253
|
},
|
|
248
|
-
children: /* @__PURE__ */ t(
|
|
254
|
+
children: /* @__PURE__ */ t(gt, {})
|
|
249
255
|
}
|
|
250
256
|
),
|
|
251
|
-
/* @__PURE__ */ t(
|
|
257
|
+
/* @__PURE__ */ t(B, {})
|
|
252
258
|
] }) }),
|
|
253
259
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
254
260
|
loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
|
|
255
261
|
},
|
|
256
262
|
{
|
|
257
263
|
path: "/validation",
|
|
258
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
264
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(it, {}) }),
|
|
259
265
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
260
266
|
loader: () => (document.title = "Validation", !0)
|
|
261
267
|
},
|
|
262
268
|
{
|
|
263
269
|
path: "/ticket/:id/:accessToken",
|
|
264
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */ t(
|
|
270
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
|
|
271
|
+
/* @__PURE__ */ t(I, {}),
|
|
266
272
|
/* @__PURE__ */ t(
|
|
267
273
|
"div",
|
|
268
274
|
{
|
|
@@ -271,10 +277,10 @@ const qe = r.lazy(
|
|
|
271
277
|
width: "100%",
|
|
272
278
|
height: "100%"
|
|
273
279
|
},
|
|
274
|
-
children: /* @__PURE__ */ t(
|
|
280
|
+
children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ut, {}) })
|
|
275
281
|
}
|
|
276
282
|
),
|
|
277
|
-
/* @__PURE__ */ t(
|
|
283
|
+
/* @__PURE__ */ t(B, {})
|
|
278
284
|
] }) }),
|
|
279
285
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
280
286
|
loader: () => (document.title = "Ticket", !0)
|
|
@@ -287,9 +293,9 @@ const qe = r.lazy(
|
|
|
287
293
|
]
|
|
288
294
|
}
|
|
289
295
|
]);
|
|
290
|
-
C(
|
|
296
|
+
C(R);
|
|
291
297
|
}, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: f && /* @__PURE__ */ t(Q, { router: f }) });
|
|
292
298
|
};
|
|
293
299
|
export {
|
|
294
|
-
|
|
300
|
+
bt as App
|
|
295
301
|
};
|