@billgangcom/theme-lib 1.119.3 → 1.120.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-D7HVGoHJ.js → builder-COOwVmYf.js} +5 -5
- package/dist/{builder-B0_nSCE7.cjs → builder-D2Z888EH.cjs} +2 -2
- package/dist/{builder-components-DMlEyBtW.cjs → builder-components-CeV8vAD9.cjs} +1 -1
- package/dist/{builder-components-BU9TRGOm.js → builder-components-DIW3F4oN.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +204 -201
- package/dist/{charge-BziuEiXF.cjs → charge-D3lrI4Ud.cjs} +39 -39
- package/dist/{charge-BHPFDh4Y.js → charge-GM7BICIx.js} +6494 -6485
- package/dist/{checkout-C7j9Xkgo.js → checkout-7Tq3dWUe.js} +5 -5
- package/dist/{checkout-upoChrmF.cjs → checkout-CjlGQSvn.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Bjzt_0qo.cjs → index-9pUVSOhu.cjs} +1 -1
- package/dist/{index-dAXIVeT9.cjs → index-BDiRhZO4.cjs} +1 -1
- package/dist/{index-H3iDzrby.cjs → index-BNbbZxAR.cjs} +1 -1
- package/dist/{index-xZabZ6aj.js → index-BSEVf9MF.js} +5 -5
- package/dist/{index-Bnl5FU7T.cjs → index-C6t0KlJ9.cjs} +1 -1
- package/dist/{index-Blc3pQyP.js → index-CCCarAz0.js} +5 -5
- package/dist/{index-BVCggNJC.cjs → index-CjkknAhD.cjs} +1 -1
- package/dist/{index-BNuke_Z3.js → index-Cnz2WUHM.js} +5 -5
- package/dist/{index-mcOpPEIh.js → index-Cr_7GBLp.js} +1 -1
- package/dist/{index-BnCHgTLo.js → index-DqP6nS6V.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-Bs5YLWx2.cjs → order-Bww_-NyP.cjs} +1 -1
- package/dist/{order-IKJVvkIJ.js → order-D6A71mPV.js} +5 -5
- package/dist/src/storefront/components/PaymentMethods/index.d.ts +1 -0
- package/dist/src/storefront/models/shop.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-OG7SPP6m.cjs → subscription-B2CA6LXD.cjs} +1 -1
- package/dist/{subscription-DxK5pjdt.js → subscription-D4heazS1.js} +5 -5
- package/dist/{ticket-CS1Uaktn.cjs → ticket-9tbnrHX0.cjs} +1 -1
- package/dist/{ticket-3kkm5S_s.js → ticket-FbE64Ih2.js} +5 -5
- package/dist/{top-up-CujJ0lQv.js → top-up-BDG04hQY.js} +5 -5
- package/dist/{top-up-Coejy8FE.cjs → top-up-D45914YA.cjs} +1 -1
- package/dist/{ui-components-CIIldk3l.js → ui-components-B6WYf8_6.js} +4 -4
- package/dist/{ui-components-CcqIAiGT.cjs → ui-components-CUItRi8R.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DNqiMxjs.cjs → validation-BAXOBuUN.cjs} +1 -1
- package/dist/{validation-BzgPq06p.js → validation-C4E-87ir.js} +5 -5
- package/package.json +1 -1
package/dist/builder.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { N as
|
|
3
|
-
import { f as
|
|
4
|
-
import o, { Suspense as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { w as
|
|
7
|
-
import { TextUnderlineIcon as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as t, Fragment as G, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { N as W, K as _, j, c as V, m as N, a as q, M as Q, ai as X, aj as J, ak as K } from "./builder-COOwVmYf.js";
|
|
3
|
+
import { f as $, l as Y, j as Z, k as ee, D as te } from "./ticket-FbE64Ih2.js";
|
|
4
|
+
import o, { Suspense as oe } from "react";
|
|
5
|
+
import { _ as ne, $ as re, a0 as ae } from "./charge-GM7BICIx.js";
|
|
6
|
+
import { w as ce } from "./ui-components-B6WYf8_6.js";
|
|
7
|
+
import { TextUnderlineIcon as ie, TextStrikethroughIcon as se, TextItalicIcon as le, AlignBottomIcon as de, AlignTopIcon as he, AlignRightIcon as ue, AlignLeftIcon as Ie, TextAlignCenterIcon as me, TextAlignRightIcon as ge, TextAlignLeftIcon as pe, PushPinIcon as fe, CardsIcon as Se, DeviceMobileCameraIcon as Ce, DeviceTabletCameraIcon as ye, DesktopIcon as Ae, UserCircleGearIcon as we, TicketIcon as ke, ChatCenteredIcon as Te, SealQuestionIcon as Pe, SquaresFourIcon as De, TextboxIcon as Le, ArrowSquareInIcon as Re, CornersOutIcon as xe, TextHIcon as be, TextBIcon as Be, TextAaIcon as Ee, PaintBrushBroadIcon as Ue, GearIcon as ze, PaletteIcon as ve, TreeStructureIcon as He, WarningDiamondIcon as Fe, WarningIcon as Oe, QuestionIcon as Me, CalendarCheckIcon as Ge, MedalIcon as We, CurrencyCircleDollarIcon as _e, HouseSimpleIcon as je, HouseIcon as Ve, GlobeIcon as Ne, SmileyIcon as qe, CalendarIcon as Qe, UserIcon as Xe, HeartIcon as Je, LockIcon as Ke, FileCloudIcon as $e, ShieldCheckIcon as Ye, ShieldIcon as Ze, ShareIcon as et, DotsSixVerticalIcon as tt, ChatsTeardropIcon as ot, PaperPlaneRightIcon as nt, WalletIcon as rt, SignOutIcon as at, TelegramLogoIcon as ct, DiscordLogoIcon as it, DownloadSimpleIcon as st, BookOpenIcon as lt, FileTextIcon as dt, FileIcon as ht, AlignCenterHorizontalIcon as ut, LightningIcon as It, FireIcon as mt, StarIcon as gt, XCircleIcon as pt, CheckCircleIcon as ft, ArrowsVerticalIcon as St, ArrowsHorizontalIcon as Ct, CloudArrowUpIcon as yt, SelectionIcon as At, ArrowLineDownIcon as wt, MagnifyingGlassMinusIcon as kt, MagnifyingGlassIcon as Tt, CaretLeftIcon as Pt, CaretUpIcon as Dt, CaretDownIcon as Lt, CaretRightIcon as Rt, ArrowUUpRightIcon as xt, ArrowUUpLeftIcon as bt, ArrowUpRightIcon as Bt, ArrowLineUpRightIcon as Et, ArrowRightIcon as Ut, ArrowLeftIcon as zt, ConfettiIcon as vt, ArrowDownIcon as Ht, ArrowUpIcon as Ft, CrownIcon as Ot, EyeIcon as Mt, BagIcon as Gt, HandbagIcon as Wt, ListIcon as _t, ImageIcon as jt, SlidersIcon as Vt, TrashIcon as Nt, CopyIcon as qt, InfoIcon as Qt, ClockIcon as Xt, CheckIcon as Jt, MinusIcon as Kt, PlusIcon as $t, XIcon as Yt } from "@phosphor-icons/react";
|
|
8
|
+
const Zt = ({
|
|
9
9
|
children: e,
|
|
10
|
-
shopDomain:
|
|
11
|
-
shopId:
|
|
10
|
+
shopDomain: s,
|
|
11
|
+
shopId: l,
|
|
12
12
|
shopPassword: d,
|
|
13
13
|
shopLogo: u
|
|
14
14
|
}) => {
|
|
@@ -20,185 +20,185 @@ const Yt = ({
|
|
|
20
20
|
setShopPrivacyPolicy: c,
|
|
21
21
|
setShopRefundPolicy: g,
|
|
22
22
|
setShopLogo: A
|
|
23
|
-
} =
|
|
23
|
+
} = W();
|
|
24
24
|
return o.useLayoutEffect(() => {
|
|
25
25
|
const r = async () => {
|
|
26
|
-
const { data: i } = await
|
|
26
|
+
const { data: i } = await ne();
|
|
27
27
|
m(i);
|
|
28
28
|
}, p = async () => {
|
|
29
|
-
const { data: i } = await
|
|
29
|
+
const { data: i } = await re();
|
|
30
30
|
c(i);
|
|
31
31
|
}, w = async () => {
|
|
32
|
-
const { data: i } = await
|
|
32
|
+
const { data: i } = await ae();
|
|
33
33
|
g(i);
|
|
34
34
|
};
|
|
35
|
-
I(
|
|
36
|
-
}, [
|
|
37
|
-
},
|
|
38
|
-
wrapper:
|
|
35
|
+
I(s), C(l), d && y(d), u && A(u), r(), p(), w();
|
|
36
|
+
}, [s, l, d]), /* @__PURE__ */ t(G, { children: e });
|
|
37
|
+
}, eo = "_wrapper_1xuz3_18", x = {
|
|
38
|
+
wrapper: eo
|
|
39
39
|
};
|
|
40
|
-
function
|
|
41
|
-
|
|
40
|
+
function to() {
|
|
41
|
+
ce({
|
|
42
42
|
// Основные UI иконки
|
|
43
|
-
X:
|
|
44
|
-
Plus:
|
|
45
|
-
Minus:
|
|
46
|
-
Check:
|
|
47
|
-
Clock:
|
|
48
|
-
Info:
|
|
43
|
+
X: Yt,
|
|
44
|
+
Plus: $t,
|
|
45
|
+
Minus: Kt,
|
|
46
|
+
Check: Jt,
|
|
47
|
+
Clock: Xt,
|
|
48
|
+
Info: Qt,
|
|
49
49
|
Copy: qt,
|
|
50
|
-
Trash:
|
|
51
|
-
Sliders:
|
|
52
|
-
Image:
|
|
53
|
-
List:
|
|
54
|
-
Handbag:
|
|
55
|
-
Bag:
|
|
56
|
-
Eye:
|
|
57
|
-
Crown:
|
|
58
|
-
ArrowUp:
|
|
59
|
-
ArrowDown:
|
|
60
|
-
Confetti:
|
|
61
|
-
ArrowLeft:
|
|
62
|
-
ArrowRight:
|
|
63
|
-
ArrowLineUpRight:
|
|
64
|
-
ArrowUpRight:
|
|
65
|
-
ArrowUUpLeft:
|
|
66
|
-
ArrowUUpRight:
|
|
67
|
-
CaretRight:
|
|
68
|
-
CaretDown:
|
|
69
|
-
CaretUp:
|
|
70
|
-
CaretLeft:
|
|
71
|
-
MagnifyingGlass:
|
|
72
|
-
MagnifyingGlassMinus:
|
|
73
|
-
ArrowLineDown:
|
|
74
|
-
Selection:
|
|
75
|
-
CloudArrowUpIcon:
|
|
76
|
-
ArrowsHorizontal:
|
|
77
|
-
ArrowsVertical:
|
|
50
|
+
Trash: Nt,
|
|
51
|
+
Sliders: Vt,
|
|
52
|
+
Image: jt,
|
|
53
|
+
List: _t,
|
|
54
|
+
Handbag: Wt,
|
|
55
|
+
Bag: Gt,
|
|
56
|
+
Eye: Mt,
|
|
57
|
+
Crown: Ot,
|
|
58
|
+
ArrowUp: Ft,
|
|
59
|
+
ArrowDown: Ht,
|
|
60
|
+
Confetti: vt,
|
|
61
|
+
ArrowLeft: zt,
|
|
62
|
+
ArrowRight: Ut,
|
|
63
|
+
ArrowLineUpRight: Et,
|
|
64
|
+
ArrowUpRight: Bt,
|
|
65
|
+
ArrowUUpLeft: bt,
|
|
66
|
+
ArrowUUpRight: xt,
|
|
67
|
+
CaretRight: Rt,
|
|
68
|
+
CaretDown: Lt,
|
|
69
|
+
CaretUp: Dt,
|
|
70
|
+
CaretLeft: Pt,
|
|
71
|
+
MagnifyingGlass: Tt,
|
|
72
|
+
MagnifyingGlassMinus: kt,
|
|
73
|
+
ArrowLineDown: wt,
|
|
74
|
+
Selection: At,
|
|
75
|
+
CloudArrowUpIcon: yt,
|
|
76
|
+
ArrowsHorizontal: Ct,
|
|
77
|
+
ArrowsVertical: St,
|
|
78
78
|
// Статусы и действия
|
|
79
|
-
CheckCircle:
|
|
80
|
-
XCircle:
|
|
81
|
-
Star:
|
|
82
|
-
Fire:
|
|
83
|
-
Lightning:
|
|
84
|
-
AlignCenterHorizontal:
|
|
79
|
+
CheckCircle: ft,
|
|
80
|
+
XCircle: pt,
|
|
81
|
+
Star: gt,
|
|
82
|
+
Fire: mt,
|
|
83
|
+
Lightning: It,
|
|
84
|
+
AlignCenterHorizontal: ut,
|
|
85
85
|
// Файлы и документы
|
|
86
|
-
File:
|
|
87
|
-
FileText:
|
|
86
|
+
File: ht,
|
|
87
|
+
FileText: dt,
|
|
88
88
|
BookOpen: lt,
|
|
89
|
-
DownloadSimple:
|
|
89
|
+
DownloadSimple: st,
|
|
90
90
|
// Социальные сети
|
|
91
|
-
DiscordLogo:
|
|
92
|
-
TelegramLogo:
|
|
91
|
+
DiscordLogo: it,
|
|
92
|
+
TelegramLogo: ct,
|
|
93
93
|
// Навигация и интерфейс
|
|
94
|
-
SignOut:
|
|
95
|
-
Wallet:
|
|
96
|
-
PaperPlaneRight:
|
|
97
|
-
ChatsTeardrop:
|
|
98
|
-
DotsSixVertical:
|
|
99
|
-
Share:
|
|
94
|
+
SignOut: at,
|
|
95
|
+
Wallet: rt,
|
|
96
|
+
PaperPlaneRight: nt,
|
|
97
|
+
ChatsTeardrop: ot,
|
|
98
|
+
DotsSixVertical: tt,
|
|
99
|
+
Share: et,
|
|
100
100
|
// Безопасность и файлы (для Checkout/Secured)
|
|
101
|
-
Shield:
|
|
102
|
-
ShieldCheck:
|
|
103
|
-
FileCloud:
|
|
104
|
-
Lock:
|
|
101
|
+
Shield: Ze,
|
|
102
|
+
ShieldCheck: Ye,
|
|
103
|
+
FileCloud: $e,
|
|
104
|
+
Lock: Ke,
|
|
105
105
|
// Специальные иконки
|
|
106
|
-
Heart:
|
|
107
|
-
User:
|
|
108
|
-
Calendar:
|
|
106
|
+
Heart: Je,
|
|
107
|
+
User: Xe,
|
|
108
|
+
Calendar: Qe,
|
|
109
109
|
Smiley: qe,
|
|
110
|
-
Globe:
|
|
110
|
+
Globe: Ne,
|
|
111
111
|
// Иконки для навигации в сайдбаре
|
|
112
|
-
House:
|
|
113
|
-
HouseSimple:
|
|
114
|
-
CurrencyCircleDollar:
|
|
115
|
-
Medal:
|
|
116
|
-
CalendarCheck:
|
|
117
|
-
Question:
|
|
112
|
+
House: Ve,
|
|
113
|
+
HouseSimple: je,
|
|
114
|
+
CurrencyCircleDollar: _e,
|
|
115
|
+
Medal: We,
|
|
116
|
+
CalendarCheck: Ge,
|
|
117
|
+
Question: Me,
|
|
118
118
|
// Иконки для статусов
|
|
119
|
-
Warning:
|
|
120
|
-
WarningDiamond:
|
|
119
|
+
Warning: Oe,
|
|
120
|
+
WarningDiamond: Fe,
|
|
121
121
|
// Иконки для билдера (Builder icons)
|
|
122
|
-
TreeStructure:
|
|
123
|
-
Palette:
|
|
124
|
-
Gear:
|
|
125
|
-
PaintBrushBroad:
|
|
126
|
-
TextAa:
|
|
127
|
-
TextB:
|
|
128
|
-
TextH:
|
|
129
|
-
CornersOut:
|
|
130
|
-
ArrowSquareIn:
|
|
131
|
-
Textbox:
|
|
132
|
-
SquaresFour:
|
|
133
|
-
SealQuestion:
|
|
134
|
-
ChatCentered:
|
|
135
|
-
Ticket:
|
|
136
|
-
UserCircleGear:
|
|
137
|
-
Desktop:
|
|
138
|
-
DeviceTabletCamera:
|
|
139
|
-
DeviceMobileCamera:
|
|
140
|
-
Cards:
|
|
141
|
-
PushPin:
|
|
122
|
+
TreeStructure: He,
|
|
123
|
+
Palette: ve,
|
|
124
|
+
Gear: ze,
|
|
125
|
+
PaintBrushBroad: Ue,
|
|
126
|
+
TextAa: Ee,
|
|
127
|
+
TextB: Be,
|
|
128
|
+
TextH: be,
|
|
129
|
+
CornersOut: xe,
|
|
130
|
+
ArrowSquareIn: Re,
|
|
131
|
+
Textbox: Le,
|
|
132
|
+
SquaresFour: De,
|
|
133
|
+
SealQuestion: Pe,
|
|
134
|
+
ChatCentered: Te,
|
|
135
|
+
Ticket: ke,
|
|
136
|
+
UserCircleGear: we,
|
|
137
|
+
Desktop: Ae,
|
|
138
|
+
DeviceTabletCamera: ye,
|
|
139
|
+
DeviceMobileCamera: Ce,
|
|
140
|
+
Cards: Se,
|
|
141
|
+
PushPin: fe,
|
|
142
142
|
// Иконки для выравнивания текста и отступов
|
|
143
|
-
TextAlignLeft:
|
|
144
|
-
TextAlignRight:
|
|
145
|
-
TextAlignCenter:
|
|
146
|
-
AlignLeft:
|
|
147
|
-
AlignRight:
|
|
148
|
-
AlignTop:
|
|
149
|
-
AlignBottom:
|
|
143
|
+
TextAlignLeft: pe,
|
|
144
|
+
TextAlignRight: ge,
|
|
145
|
+
TextAlignCenter: me,
|
|
146
|
+
AlignLeft: Ie,
|
|
147
|
+
AlignRight: ue,
|
|
148
|
+
AlignTop: he,
|
|
149
|
+
AlignBottom: de,
|
|
150
150
|
// Иконки для форматирования текста
|
|
151
151
|
TextItalic: le,
|
|
152
|
-
TextStrikethrough:
|
|
153
|
-
TextUnderline:
|
|
152
|
+
TextStrikethrough: se,
|
|
153
|
+
TextUnderline: ie
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
() => import("./builder-
|
|
158
|
-
), oo = o.lazy(
|
|
159
|
-
() => import("./index-BNuke_Z3.js").then((e) => ({ default: e.ErrorPage }))
|
|
156
|
+
const oo = o.lazy(
|
|
157
|
+
() => import("./builder-COOwVmYf.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
160
158
|
), no = o.lazy(
|
|
161
|
-
() => import("./index-
|
|
159
|
+
() => import("./index-Cnz2WUHM.js").then((e) => ({ default: e.ErrorPage }))
|
|
162
160
|
), ro = o.lazy(
|
|
163
|
-
() => import("./
|
|
161
|
+
() => import("./index-Cr_7GBLp.js").then((e) => ({ default: e.ActivePage }))
|
|
164
162
|
), ao = o.lazy(
|
|
165
|
-
() => import("./
|
|
163
|
+
() => import("./validation-C4E-87ir.js").then((e) => ({ default: e.ValidationPage }))
|
|
166
164
|
), co = o.lazy(
|
|
167
|
-
() => import("./index-
|
|
168
|
-
), a = o.lazy(
|
|
169
|
-
() => import("./index-xZabZ6aj.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
165
|
+
() => import("./index-DqP6nS6V.js").then((e) => ({ default: e.WrapperPage }))
|
|
170
166
|
), io = o.lazy(
|
|
171
|
-
() => import("./
|
|
172
|
-
),
|
|
173
|
-
() => import("./
|
|
167
|
+
() => import("./index-CCCarAz0.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
168
|
+
), a = o.lazy(
|
|
169
|
+
() => import("./index-BSEVf9MF.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
174
170
|
), so = o.lazy(
|
|
175
|
-
() => import("./
|
|
171
|
+
() => import("./checkout-7Tq3dWUe.js").then((e) => ({ default: e.Checkout }))
|
|
172
|
+
), lo = o.lazy(
|
|
173
|
+
() => import("./charge-GM7BICIx.js").then((e) => e.a5).then((e) => ({ default: e.ChargePage }))
|
|
176
174
|
), ho = o.lazy(
|
|
177
|
-
() => import("./
|
|
175
|
+
() => import("./ticket-FbE64Ih2.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
178
176
|
), uo = o.lazy(
|
|
179
|
-
() => import("./
|
|
177
|
+
() => import("./subscription-D4heazS1.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
180
178
|
), Io = o.lazy(
|
|
181
|
-
() => import("./
|
|
179
|
+
() => import("./top-up-BDG04hQY.js").then((e) => ({ default: e.TopUpBalance }))
|
|
182
180
|
), mo = o.lazy(
|
|
183
|
-
() => import("./
|
|
184
|
-
),
|
|
185
|
-
() => import("./charge-
|
|
186
|
-
),
|
|
187
|
-
() => import("./
|
|
181
|
+
() => import("./order-D6A71mPV.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
182
|
+
), go = o.lazy(
|
|
183
|
+
() => import("./charge-GM7BICIx.js").then((e) => e.a4).then((e) => ({ default: e.CustomerDashboard }))
|
|
184
|
+
), b = o.lazy(
|
|
185
|
+
() => import("./charge-GM7BICIx.js").then((e) => e.a3).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
186
|
+
), po = () => null, n = ({ children: e }) => /* @__PURE__ */ t(oe, { fallback: /* @__PURE__ */ t(po, {}), children: e }), fo = o.lazy(
|
|
187
|
+
() => import("./builder-components-DIW3F4oN.js").then((e) => e.i).then((e) => ({
|
|
188
188
|
default: e.RenderAnnouncement
|
|
189
189
|
}))
|
|
190
|
-
),
|
|
191
|
-
() => import("./builder-components-
|
|
190
|
+
), B = o.lazy(
|
|
191
|
+
() => import("./builder-components-DIW3F4oN.js").then((e) => e.i).then((e) => ({
|
|
192
192
|
default: e.RenderFooter
|
|
193
193
|
}))
|
|
194
|
-
),
|
|
195
|
-
() => import("./builder-components-
|
|
194
|
+
), E = o.lazy(
|
|
195
|
+
() => import("./builder-components-DIW3F4oN.js").then((e) => e.i).then((e) => ({
|
|
196
196
|
default: e.RenderHeader
|
|
197
197
|
}))
|
|
198
|
-
),
|
|
198
|
+
), Po = (e) => {
|
|
199
199
|
const {
|
|
200
|
-
blocks:
|
|
201
|
-
settings:
|
|
200
|
+
blocks: s,
|
|
201
|
+
settings: l,
|
|
202
202
|
header: d,
|
|
203
203
|
footer: u,
|
|
204
204
|
announcement: I,
|
|
@@ -206,14 +206,14 @@ const to = o.lazy(
|
|
|
206
206
|
shopLogo: y,
|
|
207
207
|
apiURLs: m,
|
|
208
208
|
isAntistock: c = !1
|
|
209
|
-
} = e, [g, A] = o.useState(null), { general: r, setIsAntistock: p } =
|
|
209
|
+
} = e, [g, A] = o.useState(null), { general: r, setIsAntistock: p } = _(), { setApiUrls: w } = j(), {
|
|
210
210
|
setBlocks: i,
|
|
211
|
-
setSourceBlocks:
|
|
212
|
-
setHeader:
|
|
213
|
-
setFooter:
|
|
214
|
-
setAnnouncement:
|
|
215
|
-
setSettings:
|
|
216
|
-
} =
|
|
211
|
+
setSourceBlocks: U,
|
|
212
|
+
setHeader: z,
|
|
213
|
+
setFooter: v,
|
|
214
|
+
setAnnouncement: H,
|
|
215
|
+
setSettings: F
|
|
216
|
+
} = V(), { themeSettings: f } = N(), { settings: k, setSettings: O } = q(), S = Q ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, M = localStorage.getItem("shopPassword"), P = localStorage.getItem("shopId") || "";
|
|
217
217
|
return o.useEffect(() => {
|
|
218
218
|
p(c);
|
|
219
219
|
}, [c, p]), o.useEffect(() => {
|
|
@@ -222,57 +222,58 @@ const to = o.lazy(
|
|
|
222
222
|
!S && !c && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && c && localStorage.setItem("fakeDomain", "eva8.astck.io");
|
|
223
223
|
}, [S]), o.useEffect(() => {
|
|
224
224
|
if (f && k) {
|
|
225
|
-
const h =
|
|
226
|
-
|
|
225
|
+
const h = $(f, k);
|
|
226
|
+
Y(), Z(f), ee(h);
|
|
227
227
|
}
|
|
228
228
|
}, [f, JSON.stringify(k), window.location.hostname]), o.useEffect(() => {
|
|
229
|
-
const T = new
|
|
230
|
-
|
|
229
|
+
const T = new l().blockSettings;
|
|
230
|
+
O(T);
|
|
231
231
|
}, []), o.useEffect(() => {
|
|
232
|
-
|
|
232
|
+
to();
|
|
233
233
|
}, []), o.useLayoutEffect(() => {
|
|
234
|
+
var D;
|
|
234
235
|
const h = {};
|
|
235
|
-
Object.keys(
|
|
236
|
-
h[
|
|
237
|
-
}),
|
|
238
|
-
const T =
|
|
236
|
+
Object.keys(s).map((L) => {
|
|
237
|
+
h[L] = s[L];
|
|
238
|
+
}), U(h), i(h), z(d), v(u), H(I), F(l), m && w(m);
|
|
239
|
+
const T = X([
|
|
239
240
|
{
|
|
240
241
|
element: /* @__PURE__ */ t(
|
|
241
|
-
|
|
242
|
+
Zt,
|
|
242
243
|
{
|
|
243
244
|
shopDomain: S,
|
|
244
245
|
shopId: P,
|
|
245
|
-
shopPassword:
|
|
246
|
+
shopPassword: M || void 0,
|
|
246
247
|
shopLogo: y,
|
|
247
|
-
children: /* @__PURE__ */ t(
|
|
248
|
+
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(co, { children: /* @__PURE__ */ t(J, {}) }) })
|
|
248
249
|
}
|
|
249
250
|
),
|
|
250
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
251
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(io, {}) }),
|
|
251
252
|
children: [
|
|
252
253
|
{
|
|
253
254
|
path: "/admin/builder/*",
|
|
254
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
255
|
-
|
|
255
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ro, { children: /* @__PURE__ */ t(
|
|
256
|
+
oo,
|
|
256
257
|
{
|
|
257
|
-
blocks:
|
|
258
|
-
settings:
|
|
258
|
+
blocks: s,
|
|
259
|
+
settings: l,
|
|
259
260
|
header: d,
|
|
260
261
|
footer: u,
|
|
261
262
|
announcement: I
|
|
262
263
|
}
|
|
263
264
|
) }) }),
|
|
264
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
265
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(no, {}) })
|
|
265
266
|
},
|
|
266
267
|
...C,
|
|
267
268
|
{
|
|
268
269
|
path: "/checkout",
|
|
269
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
270
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(so, {}) }),
|
|
270
271
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
271
272
|
loader: () => (document.title = "Checkout", !0)
|
|
272
273
|
},
|
|
273
274
|
{
|
|
274
275
|
path: "/top-up",
|
|
275
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
276
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(Io, {}) }),
|
|
276
277
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
277
278
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
278
279
|
},
|
|
@@ -284,45 +285,47 @@ const to = o.lazy(
|
|
|
284
285
|
},
|
|
285
286
|
{
|
|
286
287
|
path: "/orders/:id/:accessToken?",
|
|
287
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
288
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(mo, {}) }),
|
|
288
289
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
289
290
|
loader: () => (document.title = "Orders", !0)
|
|
290
291
|
},
|
|
291
292
|
{
|
|
292
293
|
path: "/subscriptions/:id/:accessToken?",
|
|
293
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
294
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(uo, {}) }),
|
|
294
295
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
295
296
|
loader: () => (document.title = "Subscriptions", !0)
|
|
296
297
|
},
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
/* @__PURE__ */ t(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
298
|
+
...(((D = r == null ? void 0 : r.info) == null ? void 0 : D.customerAccountSettings) ?? "OPTIONAL") === "DISABLED" ? [] : [
|
|
299
|
+
{
|
|
300
|
+
path: c ? "/account" : "/customer-dash",
|
|
301
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ R("div", { className: x.wrapper, children: [
|
|
302
|
+
/* @__PURE__ */ t(fo, {}),
|
|
303
|
+
/* @__PURE__ */ t(E, {}),
|
|
304
|
+
/* @__PURE__ */ t(
|
|
305
|
+
"div",
|
|
306
|
+
{
|
|
307
|
+
style: {
|
|
308
|
+
flex: "1 1 auto"
|
|
309
|
+
},
|
|
310
|
+
children: /* @__PURE__ */ t(go, {})
|
|
311
|
+
}
|
|
312
|
+
),
|
|
313
|
+
/* @__PURE__ */ t(B, {})
|
|
314
|
+
] }) }),
|
|
315
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
316
|
+
loader: () => (document.title = c ? "Account" : "Customer Dashboard", !0)
|
|
317
|
+
}
|
|
318
|
+
],
|
|
316
319
|
{
|
|
317
320
|
path: "/validation",
|
|
318
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
321
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ao, {}) }),
|
|
319
322
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
320
323
|
loader: () => (document.title = "Validation", !0)
|
|
321
324
|
},
|
|
322
325
|
{
|
|
323
326
|
path: "/ticket/:id/:accessToken",
|
|
324
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */ t(
|
|
327
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ R("div", { className: x.wrapper, children: [
|
|
328
|
+
/* @__PURE__ */ t(E, {}),
|
|
326
329
|
/* @__PURE__ */ t(
|
|
327
330
|
"div",
|
|
328
331
|
{
|
|
@@ -331,25 +334,25 @@ const to = o.lazy(
|
|
|
331
334
|
width: "100%",
|
|
332
335
|
height: "100%"
|
|
333
336
|
},
|
|
334
|
-
children: /* @__PURE__ */ t(
|
|
337
|
+
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(ho, {}) })
|
|
335
338
|
}
|
|
336
339
|
),
|
|
337
|
-
/* @__PURE__ */ t(
|
|
340
|
+
/* @__PURE__ */ t(B, {})
|
|
338
341
|
] }) }),
|
|
339
342
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
340
343
|
loader: () => (document.title = "Ticket", !0)
|
|
341
344
|
},
|
|
342
345
|
{
|
|
343
346
|
path: "*",
|
|
344
|
-
element: /* @__PURE__ */ t(
|
|
347
|
+
element: /* @__PURE__ */ t(te, {}),
|
|
345
348
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) })
|
|
346
349
|
}
|
|
347
350
|
]
|
|
348
351
|
}
|
|
349
352
|
]);
|
|
350
353
|
A(T);
|
|
351
|
-
}, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(
|
|
354
|
+
}, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(K, { router: g }) });
|
|
352
355
|
};
|
|
353
356
|
export {
|
|
354
|
-
|
|
357
|
+
Po as App
|
|
355
358
|
};
|