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