@billgangcom/theme-lib 1.110.5 → 1.110.6

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.
Files changed (45) hide show
  1. package/dist/{builder-BLDXBzNl.cjs → builder-B7hjBRYI.cjs} +2 -2
  2. package/dist/{builder-C64dSizd.js → builder-D_zv5ue0.js} +5 -5
  3. package/dist/{builder-components-DHTh1VoV.cjs → builder-components-BjoFBErH.cjs} +1 -1
  4. package/dist/{builder-components-FfKRBcLk.js → builder-components-DN-mNdj8.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +293 -6
  7. package/dist/{charge-BHULUGTw.cjs → charge-BAP3iPAM.cjs} +1 -1
  8. package/dist/{charge-BcGATQ-j.js → charge-BQUHzEju.js} +6 -6
  9. package/dist/{checkout-C_l1R6-u.cjs → checkout-CUct7uCm.cjs} +1 -1
  10. package/dist/{checkout-DzoPtqLk.js → checkout-uzxtu1pZ.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-T0XXq2pq.cjs → index-BBMTjm8A.cjs} +1 -1
  14. package/dist/{index-BLcplkmB.js → index-BJMeFohP.js} +1 -1
  15. package/dist/{index-BWeBpiO8.cjs → index-BXhAWCRX.cjs} +1 -1
  16. package/dist/{index-DugPvosX.cjs → index-CEMbDy4G.cjs} +1 -1
  17. package/dist/{index-DyfD4eoN.js → index-CMECtXvH.js} +5 -5
  18. package/dist/{index-C2mw0EhF.js → index-CX1FV9wS.js} +5 -5
  19. package/dist/{index-C23qWl0W.cjs → index-Cbqz9kIG.cjs} +1 -1
  20. package/dist/{index-Bj_McHvo.js → index-CzkkQ8sH.js} +5 -5
  21. package/dist/{index-T7iWZCzU.cjs → index-R_FZBtaZ.cjs} +1 -1
  22. package/dist/{index-Cl9CSdbF.js → index-hCDY-ip7.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +16 -16
  25. package/dist/{order-_mx45K-F.cjs → order-BOaO9a-C.cjs} +1 -1
  26. package/dist/{order-rZVNwk6i.js → order-CdPcB1OE.js} +5 -5
  27. package/dist/{subscription-CZ9Buxql.js → subscription-DIDUTEI3.js} +5 -5
  28. package/dist/{subscription-D-GVTc5C.cjs → subscription-iNnLGi0T.cjs} +1 -1
  29. package/dist/{ticket-D8MxvdiA.js → ticket-B0VGIvyK.js} +5 -5
  30. package/dist/{ticket-SllRZ1vs.cjs → ticket-DXz_-29l.cjs} +1 -1
  31. package/dist/{top-up-CyEK2j7V.cjs → top-up-B7E7FUjn.cjs} +1 -1
  32. package/dist/{top-up-7XHWZMR7.js → top-up-BhB8jhP6.js} +5 -5
  33. package/dist/ui-components-BTotDG_w.js +6447 -0
  34. package/dist/ui-components-CWLDlDmG.cjs +1 -0
  35. package/dist/ui.cjs.js +1 -1
  36. package/dist/ui.es.js +6 -6
  37. package/dist/{validation-_p4G1oC2.cjs → validation-BVAD1q1L.cjs} +1 -1
  38. package/dist/{validation-DOeo0z9F.js → validation-jCwzu5MC.js} +5 -5
  39. package/package.json +1 -1
  40. package/dist/App-BwVII14K.cjs +0 -1
  41. package/dist/App-ytDoD626.js +0 -315
  42. package/dist/src/assets/icon-registry/runtime.d.ts +0 -8
  43. package/dist/src/assets/icons/index.d.ts +0 -3
  44. package/dist/ui-components-D2ccINdB.cjs +0 -1
  45. package/dist/ui-components-DSaAYQJp.js +0 -9475
@@ -1,315 +0,0 @@
1
- import { jsx as t, Fragment as W, jsxs as D } from "react/jsx-runtime";
2
- import { M as _, V as M, j as V, c as N, m as X, a as G, K as J, ai as K, aj as Q, ak as Y } from "./builder-C64dSizd.js";
3
- import { f as $, l as q, j as Z, k as ee, D as te } from "./ticket-D8MxvdiA.js";
4
- import r, { Suspense as re } from "react";
5
- import { W as ne, X as oe, Y as ae } from "./charge-BcGATQ-j.js";
6
- import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as ue, Medal as he, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye, DotsSixVertical as Se, ChatsTeardrop as ke, PaperPlaneRight as Pe, Wallet as Ce, SignOut as Ee, TelegramLogo as Re, DiscordLogo as be, DownloadSimple as we, BookOpen as Ie, FileText as ze, Lightning as De, Fire as Te, Star as Ae, XCircle as ve, CheckCircle as Be, MagnifyingGlass as Le, CaretRight as Oe, ArrowLineUpRight as Fe, ArrowUp as je, Handbag as xe, List as He, Image as Ue, Sliders as We, Trash as _e, Copy as Me, Info as Ve, Clock as Ne, Check as Xe, Minus as Ge, Plus as Je, X as Ke } from "@phosphor-icons/react";
7
- const Qe = ({
8
- children: e,
9
- shopDomain: o,
10
- shopId: i,
11
- shopPassword: d,
12
- shopLogo: h
13
- }) => {
14
- const {
15
- setShopDomain: m,
16
- setShopId: P,
17
- setShopPassword: C,
18
- setShopTerms: p,
19
- setShopPrivacyPolicy: c,
20
- setShopRefundPolicy: f,
21
- setShopLogo: E
22
- } = _();
23
- return r.useLayoutEffect(() => {
24
- const a = async () => {
25
- const { data: l } = await ne();
26
- p(l);
27
- }, g = async () => {
28
- const { data: l } = await oe();
29
- c(l);
30
- }, R = async () => {
31
- const { data: l } = await ae();
32
- f(l);
33
- };
34
- m(o), P(i), d && C(d), h && E(h), a(), g(), R();
35
- }, [o, i, d]), /* @__PURE__ */ t(W, { children: e });
36
- }, Ye = "_wrapper_1xuz3_18", T = {
37
- wrapper: Ye
38
- }, k = /* @__PURE__ */ new Map();
39
- function $e(e, o) {
40
- k.set(e, o);
41
- }
42
- function Ct(e) {
43
- return k.get(e) || null;
44
- }
45
- function Et(e) {
46
- return k.has(e);
47
- }
48
- function Rt() {
49
- return Array.from(k.keys());
50
- }
51
- function qe(e) {
52
- Object.entries(e).forEach(([o, i]) => {
53
- $e(o, i);
54
- });
55
- }
56
- function Ze() {
57
- qe({
58
- // Основные UI иконки
59
- X: Ke,
60
- Plus: Je,
61
- Minus: Ge,
62
- Check: Xe,
63
- Clock: Ne,
64
- Info: Ve,
65
- Copy: Me,
66
- Trash: _e,
67
- Sliders: We,
68
- Image: Ue,
69
- List: He,
70
- Handbag: xe,
71
- ArrowUp: je,
72
- ArrowLineUpRight: Fe,
73
- CaretRight: Oe,
74
- MagnifyingGlass: Le,
75
- // Статусы и действия
76
- CheckCircle: Be,
77
- XCircle: ve,
78
- Star: Ae,
79
- Fire: Te,
80
- Lightning: De,
81
- // Файлы и документы
82
- FileText: ze,
83
- BookOpen: Ie,
84
- DownloadSimple: we,
85
- // Социальные сети
86
- DiscordLogo: be,
87
- TelegramLogo: Re,
88
- // Навигация и интерфейс
89
- SignOut: Ee,
90
- Wallet: Ce,
91
- PaperPlaneRight: Pe,
92
- ChatsTeardrop: ke,
93
- DotsSixVertical: Se,
94
- // Специальные иконки
95
- Heart: ye,
96
- User: ge,
97
- Calendar: fe,
98
- // Иконки для навигации в сайдбаре
99
- House: pe,
100
- CurrencyCircleDollar: me,
101
- Medal: he,
102
- CalendarCheck: ue,
103
- Question: de,
104
- // Безопасность и файлы (для Checkout/Secured)
105
- ShieldCheck: le,
106
- FileCloud: ce,
107
- // Иконки для статусов
108
- Warning: ie,
109
- WarningDiamond: se
110
- });
111
- }
112
- const et = r.lazy(
113
- () => import("./builder-C64dSizd.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
114
- ), tt = r.lazy(
115
- () => import("./index-Bj_McHvo.js").then((e) => ({ default: e.ErrorPage }))
116
- ), rt = r.lazy(
117
- () => import("./index-BLcplkmB.js").then((e) => ({ default: e.ActivePage }))
118
- ), nt = r.lazy(
119
- () => import("./validation-DOeo0z9F.js").then((e) => ({ default: e.ValidationPage }))
120
- ), ot = r.lazy(
121
- () => import("./index-Cl9CSdbF.js").then((e) => ({ default: e.WrapperPage }))
122
- ), at = r.lazy(
123
- () => import("./index-C2mw0EhF.js").then((e) => ({ default: e.RouterErrorPage }))
124
- ), s = r.lazy(
125
- () => import("./index-DyfD4eoN.js").then((e) => ({ default: e.DynamicErrorPage }))
126
- ), st = r.lazy(
127
- () => import("./checkout-DzoPtqLk.js").then((e) => ({ default: e.Checkout }))
128
- ), it = r.lazy(
129
- () => import("./charge-BcGATQ-j.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
130
- ), ct = r.lazy(
131
- () => import("./ticket-D8MxvdiA.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
132
- ), lt = r.lazy(
133
- () => import("./subscription-CZ9Buxql.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
134
- ), dt = r.lazy(
135
- () => import("./top-up-7XHWZMR7.js").then((e) => ({ default: e.TopUpBalance }))
136
- ), ut = r.lazy(
137
- () => import("./order-rZVNwk6i.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
138
- ), ht = r.lazy(
139
- () => import("./charge-BcGATQ-j.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
140
- ), A = r.lazy(
141
- () => import("./charge-BcGATQ-j.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
142
- ), mt = () => null, n = ({ children: e }) => /* @__PURE__ */ t(re, { fallback: /* @__PURE__ */ t(mt, {}), children: e }), pt = r.lazy(
143
- () => import("./builder-components-FfKRBcLk.js").then((e) => e.i).then((e) => ({
144
- default: e.RenderAnnouncement
145
- }))
146
- ), v = r.lazy(
147
- () => import("./builder-components-FfKRBcLk.js").then((e) => e.i).then((e) => ({
148
- default: e.RenderFooter
149
- }))
150
- ), B = r.lazy(
151
- () => import("./builder-components-FfKRBcLk.js").then((e) => e.i).then((e) => ({
152
- default: e.RenderHeader
153
- }))
154
- ), bt = (e) => {
155
- const {
156
- blocks: o,
157
- settings: i,
158
- header: d,
159
- footer: h,
160
- announcement: m,
161
- routes: P = [],
162
- shopLogo: C,
163
- apiURLs: p,
164
- isAntistock: c = !1
165
- } = e, [f, E] = r.useState(null), { general: a, setIsAntistock: g } = M(), { setApiUrls: R } = V(), {
166
- setBlocks: l,
167
- setSourceBlocks: L,
168
- setHeader: O,
169
- setFooter: F,
170
- setAnnouncement: j,
171
- setSettings: x
172
- } = N(), { themeSettings: y } = X(), { settings: b, setSettings: H } = G(), S = J ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), I = localStorage.getItem("shopId") || "";
173
- return r.useEffect(() => {
174
- g(c);
175
- }, [c, g]), r.useEffect(() => {
176
- !I && (a != null && a.info.id) && localStorage.setItem("shopId", a == null ? void 0 : a.info.id);
177
- }, [a]), r.useEffect(() => {
178
- !S && !c && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && c && localStorage.setItem("fakeDomain", "eva8.astck.io");
179
- }, [S]), r.useEffect(() => {
180
- if (y && b) {
181
- const u = $(y, b);
182
- q(), Z(y), ee(u);
183
- }
184
- }, [y, JSON.stringify(b), window.location.hostname]), r.useEffect(() => {
185
- const w = new i().blockSettings;
186
- H(w);
187
- }, []), r.useEffect(() => {
188
- Ze();
189
- }, []), r.useLayoutEffect(() => {
190
- const u = {};
191
- Object.keys(o).map((z) => {
192
- u[z] = o[z];
193
- }), L(u), l(u), O(d), F(h), j(m), x(i), p && R(p);
194
- const w = K([
195
- {
196
- element: /* @__PURE__ */ t(
197
- Qe,
198
- {
199
- shopDomain: S,
200
- shopId: I,
201
- shopPassword: U || void 0,
202
- shopLogo: C,
203
- children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(Q, {}) }) })
204
- }
205
- ),
206
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(at, {}) }),
207
- children: [
208
- {
209
- path: "/admin/builder/*",
210
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(rt, { children: /* @__PURE__ */ t(
211
- et,
212
- {
213
- blocks: o,
214
- settings: i,
215
- header: d,
216
- footer: h,
217
- announcement: m
218
- }
219
- ) }) }),
220
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(tt, {}) })
221
- },
222
- ...P,
223
- {
224
- path: "/checkout",
225
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(st, {}) }),
226
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
227
- loader: () => (document.title = "Checkout", !0)
228
- },
229
- {
230
- path: "/top-up",
231
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(dt, {}) }),
232
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
233
- loader: () => (document.title = "Top Up Balance", !0)
234
- },
235
- {
236
- path: "/charges/:id",
237
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(it, {}) }),
238
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
239
- loader: () => (document.title = "Charges", !0)
240
- },
241
- {
242
- path: "/orders/:id/:accessToken?",
243
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ut, {}) }),
244
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
245
- loader: () => (document.title = "Orders", !0)
246
- },
247
- {
248
- path: "/subscriptions/:id/:accessToken?",
249
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lt, {}) }),
250
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
251
- loader: () => (document.title = "Subscriptions", !0)
252
- },
253
- {
254
- path: c ? "/account" : "/customer-dash",
255
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ D("div", { className: T.wrapper, children: [
256
- /* @__PURE__ */ t(pt, {}),
257
- /* @__PURE__ */ t(B, {}),
258
- /* @__PURE__ */ t(
259
- "div",
260
- {
261
- style: {
262
- flex: "1 1 auto"
263
- },
264
- children: /* @__PURE__ */ t(ht, {})
265
- }
266
- ),
267
- /* @__PURE__ */ t(v, {})
268
- ] }) }),
269
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
270
- loader: () => (document.title = c ? "Account" : "Customer Dashboard", !0)
271
- },
272
- {
273
- path: "/validation",
274
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(nt, {}) }),
275
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
276
- loader: () => (document.title = "Validation", !0)
277
- },
278
- {
279
- path: "/ticket/:id/:accessToken",
280
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ D("div", { className: T.wrapper, children: [
281
- /* @__PURE__ */ t(B, {}),
282
- /* @__PURE__ */ t(
283
- "div",
284
- {
285
- style: {
286
- flex: 1,
287
- width: "100%",
288
- height: "100%"
289
- },
290
- children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ct, {}) })
291
- }
292
- ),
293
- /* @__PURE__ */ t(v, {})
294
- ] }) }),
295
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
296
- loader: () => (document.title = "Ticket", !0)
297
- },
298
- {
299
- path: "*",
300
- element: /* @__PURE__ */ t(te, {}),
301
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) })
302
- }
303
- ]
304
- }
305
- ]);
306
- E(w);
307
- }, [a]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: f && /* @__PURE__ */ t(Y, { router: f }) });
308
- };
309
- export {
310
- bt as A,
311
- Rt as a,
312
- Ct as g,
313
- Et as i,
314
- $e as r
315
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { type IconName } from '../icons/index.js';
3
- export type LazyIconComponent = React.LazyExoticComponent<React.ComponentType<React.SVGProps<SVGSVGElement>>>;
4
- export declare function getLazyIcon(name: IconName): LazyIconComponent;
5
- export declare const IconLazy: React.FC<{
6
- name: IconName;
7
- fallback?: React.ReactNode;
8
- } & Omit<React.SVGProps<SVGSVGElement>, 'ref'>>;
@@ -1,3 +0,0 @@
1
- export declare const iconLoaders: Record<string, () => Promise<any>>;
2
- export type IconName = string;
3
- export declare function loadIcon(name: string): Promise<any>;