@billgangcom/theme-lib 1.117.3 → 1.118.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/README.md +2 -6
- package/dist/{builder-ING-1TC5.js → builder-CcLZHVq3.js} +5 -5
- package/dist/{builder-hB8NmH8C.cjs → builder-JKkaOMOl.cjs} +2 -2
- package/dist/{builder-components-oKxTX6fj.cjs → builder-components-B0SvEDG4.cjs} +2 -2
- package/dist/{builder-components-ClJQSJ2L.js → builder-components-Dl3dEzV6.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +210 -207
- package/dist/{charge-CuNPpaJ7.js → charge-DC4f3U8I.js} +235 -233
- package/dist/{charge-C1osb-bm.cjs → charge-LGilmNUv.cjs} +3 -3
- package/dist/{checkout-BnsWDYDl.js → checkout-B_qFvrUF.js} +5 -5
- package/dist/{checkout-DMKbVPtL.cjs → checkout-BaZLmyfk.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index--_-vRaQR.js → index-BFZm601D.js} +5 -5
- package/dist/{index-BMrIA4yw.js → index-Bh3_Rczn.js} +1 -1
- package/dist/{index-Dqp9j9qF.js → index-BqtOxv5i.js} +5 -5
- package/dist/{index-zDmFKbp8.cjs → index-BtQ89Hj3.cjs} +1 -1
- package/dist/{index-CDeg6Sk-.js → index-C-SrHRJh.js} +5 -5
- package/dist/{index-lINjLxQX.cjs → index-CmO3iWeV.cjs} +1 -1
- package/dist/{index-vFyF3Ow6.cjs → index-CyiCR5lK.cjs} +1 -1
- package/dist/{index-BFVW04-o.cjs → index-D4Hp4-Qp.cjs} +1 -1
- package/dist/{index-BKrDDMuH.cjs → index-DtcojRuS.cjs} +1 -1
- package/dist/{index-BiAMlV6S.js → index-Ek3qYkbu.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-BGMoWRhn.js → order-Bd24i-W3.js} +5 -5
- package/dist/{order-BqB3_Sr9.cjs → order-t2QoTU6S.cjs} +1 -1
- 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/pages/home/model.d.ts +1 -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-CqhnWDq_.js} +5 -5
- package/dist/{subscription-C27f2W_a.cjs → subscription-DHhmsQxH.cjs} +1 -1
- package/dist/{ticket-Bru9-GYY.cjs → ticket-Cv2XbF6y.cjs} +1 -1
- package/dist/{ticket-eMmtCmvN.js → ticket-r3Kx22M9.js} +5 -5
- package/dist/{top-up-BbY79ujW.js → top-up-9OWzVCVP.js} +5 -5
- package/dist/{top-up-CMpoWJbT.cjs → top-up-Ba_v68et.cjs} +1 -1
- package/dist/ui-components-BGzv0KT2.js +8390 -0
- package/dist/ui-components-C4hKK4aN.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +30 -29
- package/dist/{validation-CBWyX-kx.js → validation-BUpHL2xL.js} +5 -5
- package/dist/{validation-CtRwKk0C.cjs → validation-D3IO5HzB.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,99 @@
|
|
|
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-CcLZHVq3.js";
|
|
3
|
+
import { f as K, l as Z, j as $, k as Y, D as ee } from "./ticket-r3Kx22M9.js";
|
|
4
|
+
import o, { Suspense as te } from "react";
|
|
5
|
+
import { Z as oe, _ as ne, $ as re } from "./charge-DC4f3U8I.js";
|
|
6
|
+
import { v as ae } from "./ui-components-BGzv0KT2.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, ConfettiIcon as zt, ArrowDownIcon as vt, ArrowUpIcon as Ht, CrownIcon as Ft, EyeIcon as Ot, BagIcon as Mt, HandbagIcon as Gt, ListIcon as Wt, ImageIcon as _t, SlidersIcon as jt, TrashIcon as Vt, CopyIcon as qt, InfoIcon as Nt, ClockIcon as Qt, CheckIcon as Xt, MinusIcon as Jt, PlusIcon as Kt, XIcon as Zt } from "@phosphor-icons/react";
|
|
8
|
+
const $t = ({
|
|
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
|
+
}, Yt = "_wrapper_1xuz3_18", R = {
|
|
38
|
+
wrapper: Yt
|
|
39
39
|
};
|
|
40
|
-
function
|
|
40
|
+
function eo() {
|
|
41
41
|
ae({
|
|
42
42
|
// Основные UI иконки
|
|
43
|
-
X:
|
|
44
|
-
Plus:
|
|
45
|
-
Minus:
|
|
46
|
-
Check:
|
|
47
|
-
Clock:
|
|
48
|
-
Info:
|
|
49
|
-
Copy:
|
|
50
|
-
Trash:
|
|
51
|
-
Sliders:
|
|
52
|
-
Image:
|
|
53
|
-
List:
|
|
54
|
-
Handbag:
|
|
55
|
-
Bag:
|
|
56
|
-
Eye:
|
|
57
|
-
Crown:
|
|
58
|
-
ArrowUp:
|
|
59
|
-
ArrowDown:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
43
|
+
X: Zt,
|
|
44
|
+
Plus: Kt,
|
|
45
|
+
Minus: Jt,
|
|
46
|
+
Check: Xt,
|
|
47
|
+
Clock: Qt,
|
|
48
|
+
Info: Nt,
|
|
49
|
+
Copy: qt,
|
|
50
|
+
Trash: Vt,
|
|
51
|
+
Sliders: jt,
|
|
52
|
+
Image: _t,
|
|
53
|
+
List: Wt,
|
|
54
|
+
Handbag: Gt,
|
|
55
|
+
Bag: Mt,
|
|
56
|
+
Eye: Ot,
|
|
57
|
+
Crown: Ft,
|
|
58
|
+
ArrowUp: Ht,
|
|
59
|
+
ArrowDown: vt,
|
|
60
|
+
Confetti: zt,
|
|
61
|
+
ArrowLeft: Et,
|
|
62
|
+
ArrowRight: Bt,
|
|
63
|
+
ArrowLineUpRight: Ut,
|
|
63
64
|
ArrowUpRight: bt,
|
|
64
|
-
ArrowUUpLeft:
|
|
65
|
-
ArrowUUpRight:
|
|
66
|
-
CaretRight:
|
|
67
|
-
CaretDown:
|
|
68
|
-
CaretUp:
|
|
69
|
-
CaretLeft:
|
|
70
|
-
MagnifyingGlass:
|
|
71
|
-
MagnifyingGlassMinus:
|
|
72
|
-
ArrowLineDown:
|
|
73
|
-
|
|
65
|
+
ArrowUUpLeft: xt,
|
|
66
|
+
ArrowUUpRight: Rt,
|
|
67
|
+
CaretRight: Lt,
|
|
68
|
+
CaretDown: Dt,
|
|
69
|
+
CaretUp: Pt,
|
|
70
|
+
CaretLeft: Tt,
|
|
71
|
+
MagnifyingGlass: wt,
|
|
72
|
+
MagnifyingGlassMinus: kt,
|
|
73
|
+
ArrowLineDown: At,
|
|
74
|
+
Selection: yt,
|
|
75
|
+
CloudArrowUpIcon: Ct,
|
|
74
76
|
ArrowsHorizontal: St,
|
|
75
77
|
ArrowsVertical: ft,
|
|
76
78
|
// Статусы и действия
|
|
77
|
-
CheckCircle:
|
|
78
|
-
XCircle:
|
|
79
|
+
CheckCircle: pt,
|
|
80
|
+
XCircle: gt,
|
|
79
81
|
Star: mt,
|
|
80
|
-
Fire:
|
|
81
|
-
Lightning:
|
|
82
|
+
Fire: It,
|
|
83
|
+
Lightning: ut,
|
|
84
|
+
AlignCenterHorizontal: ht,
|
|
82
85
|
// Файлы и документы
|
|
83
86
|
File: dt,
|
|
84
|
-
FileText:
|
|
87
|
+
FileText: st,
|
|
85
88
|
BookOpen: lt,
|
|
86
89
|
DownloadSimple: it,
|
|
87
90
|
// Социальные сети
|
|
88
|
-
DiscordLogo:
|
|
91
|
+
DiscordLogo: ct,
|
|
89
92
|
TelegramLogo: at,
|
|
90
93
|
// Навигация и интерфейс
|
|
91
|
-
SignOut:
|
|
92
|
-
Wallet:
|
|
93
|
-
PaperPlaneRight:
|
|
94
|
+
SignOut: rt,
|
|
95
|
+
Wallet: nt,
|
|
96
|
+
PaperPlaneRight: ot,
|
|
94
97
|
ChatsTeardrop: tt,
|
|
95
98
|
DotsSixVertical: et,
|
|
96
99
|
Share: Ye,
|
|
@@ -102,224 +105,224 @@ function Zt() {
|
|
|
102
105
|
// Специальные иконки
|
|
103
106
|
Heart: Xe,
|
|
104
107
|
User: Qe,
|
|
105
|
-
Calendar:
|
|
106
|
-
Smiley:
|
|
108
|
+
Calendar: Ne,
|
|
109
|
+
Smiley: qe,
|
|
107
110
|
Globe: Ve,
|
|
108
111
|
// Иконки для навигации в сайдбаре
|
|
109
|
-
House:
|
|
110
|
-
HouseSimple:
|
|
111
|
-
CurrencyCircleDollar:
|
|
112
|
-
Medal:
|
|
112
|
+
House: je,
|
|
113
|
+
HouseSimple: _e,
|
|
114
|
+
CurrencyCircleDollar: We,
|
|
115
|
+
Medal: Ge,
|
|
113
116
|
CalendarCheck: Me,
|
|
114
|
-
Question:
|
|
117
|
+
Question: Oe,
|
|
115
118
|
// Иконки для статусов
|
|
116
|
-
Warning:
|
|
117
|
-
WarningDiamond:
|
|
119
|
+
Warning: Fe,
|
|
120
|
+
WarningDiamond: He,
|
|
118
121
|
// Иконки для билдера (Builder icons)
|
|
119
|
-
TreeStructure:
|
|
120
|
-
Palette:
|
|
121
|
-
Gear:
|
|
122
|
-
PaintBrushBroad:
|
|
123
|
-
TextAa:
|
|
124
|
-
TextB:
|
|
125
|
-
TextH:
|
|
126
|
-
CornersOut:
|
|
127
|
-
ArrowSquareIn:
|
|
122
|
+
TreeStructure: ve,
|
|
123
|
+
Palette: ze,
|
|
124
|
+
Gear: Ee,
|
|
125
|
+
PaintBrushBroad: Be,
|
|
126
|
+
TextAa: Ue,
|
|
127
|
+
TextB: be,
|
|
128
|
+
TextH: xe,
|
|
129
|
+
CornersOut: Re,
|
|
130
|
+
ArrowSquareIn: Le,
|
|
128
131
|
Textbox: De,
|
|
129
|
-
SquaresFour:
|
|
132
|
+
SquaresFour: Pe,
|
|
130
133
|
SealQuestion: Te,
|
|
131
|
-
ChatCentered:
|
|
132
|
-
Ticket:
|
|
133
|
-
UserCircleGear:
|
|
134
|
-
Desktop:
|
|
135
|
-
DeviceTabletCamera:
|
|
136
|
-
DeviceMobileCamera:
|
|
137
|
-
Cards:
|
|
138
|
-
PushPin:
|
|
134
|
+
ChatCentered: we,
|
|
135
|
+
Ticket: ke,
|
|
136
|
+
UserCircleGear: Ae,
|
|
137
|
+
Desktop: ye,
|
|
138
|
+
DeviceTabletCamera: Ce,
|
|
139
|
+
DeviceMobileCamera: Se,
|
|
140
|
+
Cards: fe,
|
|
141
|
+
PushPin: pe,
|
|
139
142
|
// Иконки для выравнивания текста и отступов
|
|
140
143
|
TextAlignLeft: ge,
|
|
141
|
-
TextAlignRight:
|
|
142
|
-
TextAlignCenter:
|
|
144
|
+
TextAlignRight: me,
|
|
145
|
+
TextAlignCenter: Ie,
|
|
143
146
|
AlignLeft: ue,
|
|
144
147
|
AlignRight: he,
|
|
145
148
|
AlignTop: de,
|
|
146
|
-
AlignBottom:
|
|
149
|
+
AlignBottom: se,
|
|
147
150
|
// Иконки для форматирования текста
|
|
148
151
|
TextItalic: le,
|
|
149
152
|
TextStrikethrough: ie,
|
|
150
|
-
TextUnderline:
|
|
153
|
+
TextUnderline: ce
|
|
151
154
|
});
|
|
152
155
|
}
|
|
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-
|
|
156
|
+
const to = o.lazy(
|
|
157
|
+
() => import("./builder-CcLZHVq3.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
158
|
+
), oo = o.lazy(
|
|
159
|
+
() => import("./index-Ek3qYkbu.js").then((e) => ({ default: e.ErrorPage }))
|
|
160
|
+
), no = o.lazy(
|
|
161
|
+
() => import("./index-Bh3_Rczn.js").then((e) => ({ default: e.ActivePage }))
|
|
162
|
+
), ro = o.lazy(
|
|
163
|
+
() => import("./validation-BUpHL2xL.js").then((e) => ({ default: e.ValidationPage }))
|
|
164
|
+
), ao = o.lazy(
|
|
165
|
+
() => import("./index-C-SrHRJh.js").then((e) => ({ default: e.WrapperPage }))
|
|
166
|
+
), co = o.lazy(
|
|
167
|
+
() => import("./index-BFZm601D.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
168
|
+
), a = o.lazy(
|
|
169
|
+
() => import("./index-BqtOxv5i.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
170
|
+
), io = o.lazy(
|
|
171
|
+
() => import("./checkout-B_qFvrUF.js").then((e) => ({ default: e.Checkout }))
|
|
172
|
+
), lo = o.lazy(
|
|
173
|
+
() => import("./charge-DC4f3U8I.js").then((e) => e.a4).then((e) => ({ default: e.ChargePage }))
|
|
174
|
+
), so = o.lazy(
|
|
175
|
+
() => import("./ticket-r3Kx22M9.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
176
|
+
), ho = o.lazy(
|
|
177
|
+
() => import("./subscription-CqhnWDq_.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
178
|
+
), uo = o.lazy(
|
|
179
|
+
() => import("./top-up-9OWzVCVP.js").then((e) => ({ default: e.TopUpBalance }))
|
|
180
|
+
), Io = o.lazy(
|
|
181
|
+
() => import("./order-Bd24i-W3.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
182
|
+
), mo = o.lazy(
|
|
183
|
+
() => import("./charge-DC4f3U8I.js").then((e) => e.a3).then((e) => ({ default: e.CustomerDashboard }))
|
|
184
|
+
), x = o.lazy(
|
|
185
|
+
() => import("./charge-DC4f3U8I.js").then((e) => e.a2).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
186
|
+
), go = () => null, n = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(go, {}), children: e }), po = o.lazy(
|
|
187
|
+
() => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
|
|
185
188
|
default: e.RenderAnnouncement
|
|
186
189
|
}))
|
|
187
|
-
),
|
|
188
|
-
() => import("./builder-components-
|
|
190
|
+
), b = o.lazy(
|
|
191
|
+
() => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
|
|
189
192
|
default: e.RenderFooter
|
|
190
193
|
}))
|
|
191
|
-
),
|
|
192
|
-
() => import("./builder-components-
|
|
194
|
+
), U = o.lazy(
|
|
195
|
+
() => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
|
|
193
196
|
default: e.RenderHeader
|
|
194
197
|
}))
|
|
195
|
-
),
|
|
198
|
+
), To = (e) => {
|
|
196
199
|
const {
|
|
197
200
|
blocks: l,
|
|
198
|
-
settings:
|
|
201
|
+
settings: s,
|
|
199
202
|
header: d,
|
|
200
203
|
footer: u,
|
|
201
|
-
announcement:
|
|
202
|
-
routes:
|
|
203
|
-
shopLogo:
|
|
204
|
-
apiURLs:
|
|
205
|
-
isAntistock:
|
|
206
|
-
} = e, [g,
|
|
204
|
+
announcement: I,
|
|
205
|
+
routes: C = [],
|
|
206
|
+
shopLogo: y,
|
|
207
|
+
apiURLs: m,
|
|
208
|
+
isAntistock: c = !1
|
|
209
|
+
} = e, [g, A] = o.useState(null), { general: r, setIsAntistock: p } = W(), { setApiUrls: k } = _(), {
|
|
207
210
|
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(), $(
|
|
211
|
+
setSourceBlocks: B,
|
|
212
|
+
setHeader: E,
|
|
213
|
+
setFooter: z,
|
|
214
|
+
setAnnouncement: v,
|
|
215
|
+
setSettings: H
|
|
216
|
+
} = 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") || "";
|
|
217
|
+
return o.useEffect(() => {
|
|
218
|
+
p(c);
|
|
219
|
+
}, [c, p]), o.useEffect(() => {
|
|
220
|
+
!P && (r != null && r.info.id) && localStorage.setItem("shopId", r == null ? void 0 : r.info.id);
|
|
221
|
+
}, [r]), o.useEffect(() => {
|
|
222
|
+
!S && !c && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && c && localStorage.setItem("fakeDomain", "eva8.astck.io");
|
|
223
|
+
}, [S]), o.useEffect(() => {
|
|
224
|
+
if (f && w) {
|
|
225
|
+
const h = K(f, w);
|
|
226
|
+
Z(), $(f), Y(h);
|
|
224
227
|
}
|
|
225
|
-
}, [
|
|
226
|
-
const T = new
|
|
227
|
-
|
|
228
|
-
}, []),
|
|
229
|
-
|
|
230
|
-
}, []),
|
|
228
|
+
}, [f, JSON.stringify(w), window.location.hostname]), o.useEffect(() => {
|
|
229
|
+
const T = new s().blockSettings;
|
|
230
|
+
F(T);
|
|
231
|
+
}, []), o.useEffect(() => {
|
|
232
|
+
eo();
|
|
233
|
+
}, []), o.useLayoutEffect(() => {
|
|
231
234
|
const h = {};
|
|
232
235
|
Object.keys(l).map((D) => {
|
|
233
236
|
h[D] = l[D];
|
|
234
|
-
}),
|
|
237
|
+
}), B(h), i(h), E(d), z(u), v(I), H(s), m && k(m);
|
|
235
238
|
const T = Q([
|
|
236
239
|
{
|
|
237
240
|
element: /* @__PURE__ */ t(
|
|
238
|
-
|
|
241
|
+
$t,
|
|
239
242
|
{
|
|
240
|
-
shopDomain:
|
|
241
|
-
shopId:
|
|
242
|
-
shopPassword:
|
|
243
|
-
shopLogo:
|
|
244
|
-
children: /* @__PURE__ */ t(
|
|
243
|
+
shopDomain: S,
|
|
244
|
+
shopId: P,
|
|
245
|
+
shopPassword: O || void 0,
|
|
246
|
+
shopLogo: y,
|
|
247
|
+
children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(ao, { children: /* @__PURE__ */ t(X, {}) }) })
|
|
245
248
|
}
|
|
246
249
|
),
|
|
247
|
-
errorElement: /* @__PURE__ */ t(
|
|
250
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, {}) }),
|
|
248
251
|
children: [
|
|
249
252
|
{
|
|
250
253
|
path: "/admin/builder/*",
|
|
251
|
-
element: /* @__PURE__ */ t(
|
|
252
|
-
|
|
254
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(no, { children: /* @__PURE__ */ t(
|
|
255
|
+
to,
|
|
253
256
|
{
|
|
254
257
|
blocks: l,
|
|
255
|
-
settings:
|
|
258
|
+
settings: s,
|
|
256
259
|
header: d,
|
|
257
260
|
footer: u,
|
|
258
|
-
announcement:
|
|
261
|
+
announcement: I
|
|
259
262
|
}
|
|
260
263
|
) }) }),
|
|
261
|
-
errorElement: /* @__PURE__ */ t(
|
|
264
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(oo, {}) })
|
|
262
265
|
},
|
|
263
|
-
...
|
|
266
|
+
...C,
|
|
264
267
|
{
|
|
265
268
|
path: "/checkout",
|
|
266
|
-
element: /* @__PURE__ */ t(
|
|
267
|
-
errorElement: /* @__PURE__ */ t(
|
|
269
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(io, {}) }),
|
|
270
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
268
271
|
loader: () => (document.title = "Checkout", !0)
|
|
269
272
|
},
|
|
270
273
|
{
|
|
271
274
|
path: "/top-up",
|
|
272
|
-
element: /* @__PURE__ */ t(
|
|
273
|
-
errorElement: /* @__PURE__ */ t(
|
|
275
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(uo, {}) }),
|
|
276
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
274
277
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
275
278
|
},
|
|
276
279
|
{
|
|
277
280
|
path: "/charges/:id",
|
|
278
|
-
element: /* @__PURE__ */ t(
|
|
279
|
-
errorElement: /* @__PURE__ */ t(
|
|
281
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
|
|
282
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
280
283
|
loader: () => (document.title = "Charges", !0)
|
|
281
284
|
},
|
|
282
285
|
{
|
|
283
286
|
path: "/orders/:id/:accessToken?",
|
|
284
|
-
element: /* @__PURE__ */ t(
|
|
285
|
-
errorElement: /* @__PURE__ */ t(
|
|
287
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(Io, {}) }),
|
|
288
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
286
289
|
loader: () => (document.title = "Orders", !0)
|
|
287
290
|
},
|
|
288
291
|
{
|
|
289
292
|
path: "/subscriptions/:id/:accessToken?",
|
|
290
|
-
element: /* @__PURE__ */ t(
|
|
291
|
-
errorElement: /* @__PURE__ */ t(
|
|
293
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ho, {}) }),
|
|
294
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
292
295
|
loader: () => (document.title = "Subscriptions", !0)
|
|
293
296
|
},
|
|
294
297
|
{
|
|
295
|
-
path:
|
|
296
|
-
element: /* @__PURE__ */ t(
|
|
297
|
-
/* @__PURE__ */ t(
|
|
298
|
-
/* @__PURE__ */ t(
|
|
298
|
+
path: c ? "/account" : "/customer-dash",
|
|
299
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ L("div", { className: R.wrapper, children: [
|
|
300
|
+
/* @__PURE__ */ t(po, {}),
|
|
301
|
+
/* @__PURE__ */ t(U, {}),
|
|
299
302
|
/* @__PURE__ */ t(
|
|
300
303
|
"div",
|
|
301
304
|
{
|
|
302
305
|
style: {
|
|
303
306
|
flex: "1 1 auto"
|
|
304
307
|
},
|
|
305
|
-
children: /* @__PURE__ */ t(
|
|
308
|
+
children: /* @__PURE__ */ t(mo, {})
|
|
306
309
|
}
|
|
307
310
|
),
|
|
308
|
-
/* @__PURE__ */ t(
|
|
311
|
+
/* @__PURE__ */ t(b, {})
|
|
309
312
|
] }) }),
|
|
310
|
-
errorElement: /* @__PURE__ */ t(
|
|
311
|
-
loader: () => (document.title =
|
|
313
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
314
|
+
loader: () => (document.title = c ? "Account" : "Customer Dashboard", !0)
|
|
312
315
|
},
|
|
313
316
|
{
|
|
314
317
|
path: "/validation",
|
|
315
|
-
element: /* @__PURE__ */ t(
|
|
316
|
-
errorElement: /* @__PURE__ */ t(
|
|
318
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ro, {}) }),
|
|
319
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
317
320
|
loader: () => (document.title = "Validation", !0)
|
|
318
321
|
},
|
|
319
322
|
{
|
|
320
323
|
path: "/ticket/:id/:accessToken",
|
|
321
|
-
element: /* @__PURE__ */ t(
|
|
322
|
-
/* @__PURE__ */ t(
|
|
324
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ L("div", { className: R.wrapper, children: [
|
|
325
|
+
/* @__PURE__ */ t(U, {}),
|
|
323
326
|
/* @__PURE__ */ t(
|
|
324
327
|
"div",
|
|
325
328
|
{
|
|
@@ -328,25 +331,25 @@ const $t = r.lazy(
|
|
|
328
331
|
width: "100%",
|
|
329
332
|
height: "100%"
|
|
330
333
|
},
|
|
331
|
-
children: /* @__PURE__ */ t(
|
|
334
|
+
children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(so, {}) })
|
|
332
335
|
}
|
|
333
336
|
),
|
|
334
|
-
/* @__PURE__ */ t(
|
|
337
|
+
/* @__PURE__ */ t(b, {})
|
|
335
338
|
] }) }),
|
|
336
|
-
errorElement: /* @__PURE__ */ t(
|
|
339
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
|
|
337
340
|
loader: () => (document.title = "Ticket", !0)
|
|
338
341
|
},
|
|
339
342
|
{
|
|
340
343
|
path: "*",
|
|
341
344
|
element: /* @__PURE__ */ t(ee, {}),
|
|
342
|
-
errorElement: /* @__PURE__ */ t(
|
|
345
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) })
|
|
343
346
|
}
|
|
344
347
|
]
|
|
345
348
|
}
|
|
346
349
|
]);
|
|
347
|
-
|
|
348
|
-
}, [
|
|
350
|
+
A(T);
|
|
351
|
+
}, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
|
|
349
352
|
};
|
|
350
353
|
export {
|
|
351
|
-
|
|
354
|
+
To as App
|
|
352
355
|
};
|