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