@billgangcom/theme-lib 1.113.0 → 1.114.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.
Files changed (41) hide show
  1. package/dist/{builder-DCG_rKLl.js → builder-Bd2jS6z5.js} +211 -213
  2. package/dist/{builder-tlfk07XU.cjs → builder-DoAHiGfI.cjs} +2 -2
  3. package/dist/{builder-components-AImqs4dE.cjs → builder-components-B6Q1FJdO.cjs} +1 -1
  4. package/dist/{builder-components-CvCnVAKT.js → builder-components-DOXVQePh.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +87 -86
  7. package/dist/{charge-BFX6SXea.cjs → charge-By0YRAtN.cjs} +43 -43
  8. package/dist/{charge-CKZp4zQi.js → charge-CYkPC1xJ.js} +5934 -5806
  9. package/dist/{checkout-Cmeyss5G.cjs → checkout-BBaq5eLv.cjs} +1 -1
  10. package/dist/{checkout-D_xfWCWz.js → checkout-BacYMk5p.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CYZyAwBn.cjs → index-B1J6oyyZ.cjs} +1 -1
  14. package/dist/{index-CRHFyKXf.cjs → index-B86a6HK7.cjs} +1 -1
  15. package/dist/{index-JpZDgvfI.js → index-BCgXuVzB.js} +1 -1
  16. package/dist/{index-CIvEpWP9.cjs → index-C5xaXw2a.cjs} +1 -1
  17. package/dist/{index-apLxO6zR.cjs → index-CULiMl6h.cjs} +1 -1
  18. package/dist/{index-C3cH2PFK.js → index-D14heDcK.js} +5 -5
  19. package/dist/{index-u_Bjlw7n.js → index-DA2EeXd3.js} +5 -5
  20. package/dist/{index-Bx89f_4A.js → index-DNGCgy8g.js} +5 -5
  21. package/dist/{index-CK7UKF-8.cjs → index-DZVqcJh_.cjs} +1 -1
  22. package/dist/{index-ho-UznN6.js → index-Dv-y6xYv.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-CviSw7zw.js → order-BkDz1lDn.js} +5 -5
  26. package/dist/{order-CXwHDXJN.cjs → order-BsI3Djg7.cjs} +1 -1
  27. package/dist/src/storefront/api/order.d.ts +2 -1
  28. package/dist/style.css +1 -1
  29. package/dist/{subscription-7CuU3nB5.cjs → subscription-DYa6vxo1.cjs} +1 -1
  30. package/dist/{subscription-DzjUTqSQ.js → subscription-mYFIz-QI.js} +5 -5
  31. package/dist/{ticket-DZ2eg4MX.cjs → ticket-Djdg5CC8.cjs} +1 -1
  32. package/dist/{ticket-DKw8gvGf.js → ticket-ckMFdKTG.js} +5 -5
  33. package/dist/{top-up-Cpz4gJGX.js → top-up-3v6D0_10.js} +5 -5
  34. package/dist/{top-up-Bh_RGoNj.cjs → top-up-CuY2N9Qr.cjs} +1 -1
  35. package/dist/{ui-components-BkCPFgEA.js → ui-components-Bfju659N.js} +4 -4
  36. package/dist/{ui-components-CFXj3WGq.cjs → ui-components-foi2BEtM.cjs} +1 -1
  37. package/dist/ui.cjs.js +1 -1
  38. package/dist/ui.es.js +1 -1
  39. package/dist/{validation-U25w3oxY.cjs → validation-BSQGHn4r.cjs} +1 -1
  40. package/dist/{validation-COeamQDf.js → validation-CnxmZXnT.js} +5 -5
  41. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { jsx as t, Fragment as W, jsxs as z } from "react/jsx-runtime";
2
- import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-DCG_rKLl.js";
3
- import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-DKw8gvGf.js";
2
+ import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-Bd2jS6z5.js";
3
+ import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-ckMFdKTG.js";
4
4
  import r, { Suspense as te } from "react";
5
- import { W as re, X as oe, Y as ne } from "./charge-CKZp4zQi.js";
6
- import { o as ae } from "./ui-components-BkCPFgEA.js";
7
- import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Shield as de, Question as he, CalendarCheck as ue, Medal as me, CurrencyCircleDollar as pe, House as fe, Calendar as ge, User as ye, Heart as Se, ArrowRight as ke, ArrowLeft as Pe, DotsSixVertical as Ce, ChatsTeardrop as we, PaperPlaneRight as Ee, Wallet as Re, SignOut as De, TelegramLogo as be, DiscordLogo as ze, DownloadSimple as Te, BookOpen as Ae, FileText as Le, Lightning as Be, Fire as Ie, Star as ve, XCircle as Fe, CheckCircle as Oe, ArrowLineDown as xe, MagnifyingGlass as He, CaretDown as Ue, CaretRight as We, ArrowLineUpRight as je, ArrowUp as _e, Crown as Me, Eye as Ve, Bag as Ne, Handbag as Xe, List as Ge, Image as Je, Sliders as Ke, Trash as Qe, Copy as Ye, Info as $e, Clock as qe, Check as Ze, Minus as et, Plus as tt, X as rt } from "@phosphor-icons/react";
8
- const ot = ({
5
+ import { W as re, X as oe, Y as ne } from "./charge-CYkPC1xJ.js";
6
+ import { o as ae } from "./ui-components-Bfju659N.js";
7
+ import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Shield as de, Question as he, CalendarCheck as ue, Medal as me, CurrencyCircleDollar as pe, House as fe, Calendar as ge, User as ye, Heart as Se, ArrowRight as ke, ArrowLeft as Pe, DotsSixVertical as Ce, ChatsTeardrop as we, PaperPlaneRight as Ee, Wallet as Re, SignOut as De, TelegramLogo as be, DiscordLogo as ze, DownloadSimple as Ae, BookOpen as Te, FileText as Ie, Lightning as Le, Fire as Be, Star as ve, XCircle as Fe, CheckCircle as Oe, CloudArrowUpIcon as Ue, ArrowLineDown as xe, MagnifyingGlass as He, CaretDown as We, CaretRight as je, ArrowLineUpRight as _e, ArrowUp as Me, Crown as Ve, Eye as Ne, Bag as Xe, Handbag as Ge, List as Je, Image as Ke, Sliders as Qe, Trash as Ye, Copy as $e, Info as qe, Clock as Ze, Check as et, Minus as tt, Plus as rt, X as ot } from "@phosphor-icons/react";
8
+ const nt = ({
9
9
  children: e,
10
10
  shopDomain: c,
11
11
  shopId: l,
@@ -34,43 +34,44 @@ const ot = ({
34
34
  };
35
35
  m(c), k(l), d && P(d), u && C(u), n(), g(), w();
36
36
  }, [c, l, d]), /* @__PURE__ */ t(W, { children: e });
37
- }, nt = "_wrapper_1xuz3_18", T = {
38
- wrapper: nt
37
+ }, at = "_wrapper_1xuz3_18", A = {
38
+ wrapper: at
39
39
  };
40
- function at() {
40
+ function st() {
41
41
  ae({
42
42
  // Основные UI иконки
43
- X: rt,
44
- Plus: tt,
45
- Minus: et,
46
- Check: Ze,
47
- Clock: qe,
48
- Info: $e,
49
- Copy: Ye,
50
- Trash: Qe,
51
- Sliders: Ke,
52
- Image: Je,
53
- List: Ge,
54
- Handbag: Xe,
55
- Bag: Ne,
56
- Eye: Ve,
57
- Crown: Me,
58
- ArrowUp: _e,
59
- ArrowLineUpRight: je,
60
- CaretRight: We,
61
- CaretDown: Ue,
43
+ X: ot,
44
+ Plus: rt,
45
+ Minus: tt,
46
+ Check: et,
47
+ Clock: Ze,
48
+ Info: qe,
49
+ Copy: $e,
50
+ Trash: Ye,
51
+ Sliders: Qe,
52
+ Image: Ke,
53
+ List: Je,
54
+ Handbag: Ge,
55
+ Bag: Xe,
56
+ Eye: Ne,
57
+ Crown: Ve,
58
+ ArrowUp: Me,
59
+ ArrowLineUpRight: _e,
60
+ CaretRight: je,
61
+ CaretDown: We,
62
62
  MagnifyingGlass: He,
63
63
  ArrowLineDown: xe,
64
+ CloudArrowUpIcon: Ue,
64
65
  // Статусы и действия
65
66
  CheckCircle: Oe,
66
67
  XCircle: Fe,
67
68
  Star: ve,
68
- Fire: Ie,
69
- Lightning: Be,
69
+ Fire: Be,
70
+ Lightning: Le,
70
71
  // Файлы и документы
71
- FileText: Le,
72
- BookOpen: Ae,
73
- DownloadSimple: Te,
72
+ FileText: Ie,
73
+ BookOpen: Te,
74
+ DownloadSimple: Ae,
74
75
  // Социальные сети
75
76
  DiscordLogo: ze,
76
77
  TelegramLogo: be,
@@ -101,46 +102,46 @@ function at() {
101
102
  WarningDiamond: se
102
103
  });
103
104
  }
104
- const st = r.lazy(
105
- () => import("./builder-DCG_rKLl.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
106
- ), it = r.lazy(
107
- () => import("./index-Bx89f_4A.js").then((e) => ({ default: e.ErrorPage }))
105
+ const it = r.lazy(
106
+ () => import("./builder-Bd2jS6z5.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
108
107
  ), ct = r.lazy(
109
- () => import("./index-JpZDgvfI.js").then((e) => ({ default: e.ActivePage }))
108
+ () => import("./index-DNGCgy8g.js").then((e) => ({ default: e.ErrorPage }))
110
109
  ), lt = r.lazy(
111
- () => import("./validation-COeamQDf.js").then((e) => ({ default: e.ValidationPage }))
110
+ () => import("./index-BCgXuVzB.js").then((e) => ({ default: e.ActivePage }))
112
111
  ), dt = r.lazy(
113
- () => import("./index-C3cH2PFK.js").then((e) => ({ default: e.WrapperPage }))
112
+ () => import("./validation-CnxmZXnT.js").then((e) => ({ default: e.ValidationPage }))
114
113
  ), ht = r.lazy(
115
- () => import("./index-u_Bjlw7n.js").then((e) => ({ default: e.RouterErrorPage }))
116
- ), a = r.lazy(
117
- () => import("./index-ho-UznN6.js").then((e) => ({ default: e.DynamicErrorPage }))
114
+ () => import("./index-D14heDcK.js").then((e) => ({ default: e.WrapperPage }))
118
115
  ), ut = r.lazy(
119
- () => import("./checkout-D_xfWCWz.js").then((e) => ({ default: e.Checkout }))
116
+ () => import("./index-DA2EeXd3.js").then((e) => ({ default: e.RouterErrorPage }))
117
+ ), a = r.lazy(
118
+ () => import("./index-Dv-y6xYv.js").then((e) => ({ default: e.DynamicErrorPage }))
120
119
  ), mt = r.lazy(
121
- () => import("./charge-CKZp4zQi.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
120
+ () => import("./checkout-BacYMk5p.js").then((e) => ({ default: e.Checkout }))
122
121
  ), pt = r.lazy(
123
- () => import("./ticket-DKw8gvGf.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
122
+ () => import("./charge-CYkPC1xJ.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
124
123
  ), ft = r.lazy(
125
- () => import("./subscription-DzjUTqSQ.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
124
+ () => import("./ticket-ckMFdKTG.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
126
125
  ), gt = r.lazy(
127
- () => import("./top-up-Cpz4gJGX.js").then((e) => ({ default: e.TopUpBalance }))
126
+ () => import("./subscription-mYFIz-QI.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
128
127
  ), yt = r.lazy(
129
- () => import("./order-CviSw7zw.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
128
+ () => import("./top-up-3v6D0_10.js").then((e) => ({ default: e.TopUpBalance }))
130
129
  ), St = r.lazy(
131
- () => import("./charge-CKZp4zQi.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
132
- ), A = r.lazy(
133
- () => import("./charge-CKZp4zQi.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
134
- ), kt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(kt, {}), children: e }), Pt = r.lazy(
135
- () => import("./builder-components-CvCnVAKT.js").then((e) => e.i).then((e) => ({
130
+ () => import("./order-BkDz1lDn.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
131
+ ), kt = r.lazy(
132
+ () => import("./charge-CYkPC1xJ.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
133
+ ), T = r.lazy(
134
+ () => import("./charge-CYkPC1xJ.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
135
+ ), Pt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(Pt, {}), children: e }), Ct = r.lazy(
136
+ () => import("./builder-components-DOXVQePh.js").then((e) => e.i).then((e) => ({
136
137
  default: e.RenderAnnouncement
137
138
  }))
138
- ), L = r.lazy(
139
- () => import("./builder-components-CvCnVAKT.js").then((e) => e.i).then((e) => ({
139
+ ), I = r.lazy(
140
+ () => import("./builder-components-DOXVQePh.js").then((e) => e.i).then((e) => ({
140
141
  default: e.RenderFooter
141
142
  }))
142
- ), B = r.lazy(
143
- () => import("./builder-components-CvCnVAKT.js").then((e) => e.i).then((e) => ({
143
+ ), L = r.lazy(
144
+ () => import("./builder-components-DOXVQePh.js").then((e) => e.i).then((e) => ({
144
145
  default: e.RenderHeader
145
146
  }))
146
147
  ), Tt = (e) => {
@@ -156,12 +157,12 @@ const st = r.lazy(
156
157
  isAntistock: s = !1
157
158
  } = e, [f, C] = r.useState(null), { general: n, setIsAntistock: g } = _(), { setApiUrls: w } = M(), {
158
159
  setBlocks: i,
159
- setSourceBlocks: I,
160
+ setSourceBlocks: B,
160
161
  setHeader: v,
161
162
  setFooter: F,
162
163
  setAnnouncement: O,
163
- setSettings: x
164
- } = V(), { themeSettings: y } = N(), { settings: E, setSettings: H } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
164
+ setSettings: U
165
+ } = V(), { themeSettings: y } = N(), { settings: E, setSettings: x } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, H = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
165
166
  return r.useEffect(() => {
166
167
  g(s);
167
168
  }, [s, g]), r.useEffect(() => {
@@ -175,32 +176,32 @@ const st = r.lazy(
175
176
  }
176
177
  }, [y, JSON.stringify(E), window.location.hostname]), r.useEffect(() => {
177
178
  const R = new l().blockSettings;
178
- H(R);
179
+ x(R);
179
180
  }, []), r.useEffect(() => {
180
- at();
181
+ st();
181
182
  }, []), r.useLayoutEffect(() => {
182
183
  const h = {};
183
184
  Object.keys(c).map((b) => {
184
185
  h[b] = c[b];
185
- }), I(h), i(h), v(d), F(u), O(m), x(l), p && w(p);
186
+ }), B(h), i(h), v(d), F(u), O(m), U(l), p && w(p);
186
187
  const R = J([
187
188
  {
188
189
  element: /* @__PURE__ */ t(
189
- ot,
190
+ nt,
190
191
  {
191
192
  shopDomain: S,
192
193
  shopId: D,
193
- shopPassword: U || void 0,
194
+ shopPassword: H || void 0,
194
195
  shopLogo: P,
195
- children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(dt, { children: /* @__PURE__ */ t(K, {}) }) })
196
+ children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t(K, {}) }) })
196
197
  }
197
198
  ),
198
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ht, {}) }),
199
+ errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ut, {}) }),
199
200
  children: [
200
201
  {
201
202
  path: "/admin/builder/*",
202
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ct, { children: /* @__PURE__ */ t(
203
- st,
203
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, { children: /* @__PURE__ */ t(
204
+ it,
204
205
  {
205
206
  blocks: c,
206
207
  settings: l,
@@ -209,68 +210,68 @@ const st = r.lazy(
209
210
  announcement: m
210
211
  }
211
212
  ) }) }),
212
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(it, {}) })
213
+ errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ct, {}) })
213
214
  },
214
215
  ...k,
215
216
  {
216
217
  path: "/checkout",
217
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ut, {}) }),
218
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
218
219
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
219
220
  loader: () => (document.title = "Checkout", !0)
220
221
  },
221
222
  {
222
223
  path: "/top-up",
223
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(gt, {}) }),
224
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(yt, {}) }),
224
225
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
225
226
  loader: () => (document.title = "Top Up Balance", !0)
226
227
  },
227
228
  {
228
229
  path: "/charges/:id",
229
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
230
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(pt, {}) }),
230
231
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
231
232
  loader: () => (document.title = "Charges", !0)
232
233
  },
233
234
  {
234
235
  path: "/orders/:id/:accessToken?",
235
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(yt, {}) }),
236
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(St, {}) }),
236
237
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
237
238
  loader: () => (document.title = "Orders", !0)
238
239
  },
239
240
  {
240
241
  path: "/subscriptions/:id/:accessToken?",
241
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ft, {}) }),
242
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(gt, {}) }),
242
243
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
243
244
  loader: () => (document.title = "Subscriptions", !0)
244
245
  },
245
246
  {
246
247
  path: s ? "/account" : "/customer-dash",
247
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
248
- /* @__PURE__ */ t(Pt, {}),
249
- /* @__PURE__ */ t(B, {}),
248
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: A.wrapper, children: [
249
+ /* @__PURE__ */ t(Ct, {}),
250
+ /* @__PURE__ */ t(L, {}),
250
251
  /* @__PURE__ */ t(
251
252
  "div",
252
253
  {
253
254
  style: {
254
255
  flex: "1 1 auto"
255
256
  },
256
- children: /* @__PURE__ */ t(St, {})
257
+ children: /* @__PURE__ */ t(kt, {})
257
258
  }
258
259
  ),
259
- /* @__PURE__ */ t(L, {})
260
+ /* @__PURE__ */ t(I, {})
260
261
  ] }) }),
261
262
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
262
263
  loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
263
264
  },
264
265
  {
265
266
  path: "/validation",
266
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, {}) }),
267
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(dt, {}) }),
267
268
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
268
269
  loader: () => (document.title = "Validation", !0)
269
270
  },
270
271
  {
271
272
  path: "/ticket/:id/:accessToken",
272
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
273
- /* @__PURE__ */ t(B, {}),
273
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: A.wrapper, children: [
274
+ /* @__PURE__ */ t(L, {}),
274
275
  /* @__PURE__ */ t(
275
276
  "div",
276
277
  {
@@ -279,10 +280,10 @@ const st = r.lazy(
279
280
  width: "100%",
280
281
  height: "100%"
281
282
  },
282
- children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(pt, {}) })
283
+ children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(ft, {}) })
283
284
  }
284
285
  ),
285
- /* @__PURE__ */ t(L, {})
286
+ /* @__PURE__ */ t(I, {})
286
287
  ] }) }),
287
288
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
288
289
  loader: () => (document.title = "Ticket", !0)