@billgangcom/theme-lib 1.117.2 → 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.
Files changed (55) hide show
  1. package/README.md +2 -6
  2. package/dist/{builder-DS9oBIXt.cjs → builder-C6H1N4FP.cjs} +2 -2
  3. package/dist/{builder-DcfIyRTw.js → builder-Dcp5JIX2.js} +5 -5
  4. package/dist/{builder-components-B7SAxgEM.cjs → builder-components-Bj_ecWtd.cjs} +2 -2
  5. package/dist/{builder-components-Dm-kWtxj.js → builder-components-D_-yBjUv.js} +4 -4
  6. package/dist/builder.cjs.js +1 -1
  7. package/dist/builder.es.js +207 -205
  8. package/dist/{charge-B9XSDHYf.cjs → charge-CDdwR76I.cjs} +13 -13
  9. package/dist/{charge-CXy5zGzq.js → charge-_CEEL_lC.js} +144 -141
  10. package/dist/{checkout-C4QKsh6P.cjs → checkout-BY7eHMQg.cjs} +1 -1
  11. package/dist/{checkout-C8pOrYnl.js → checkout-LuD-xUEH.js} +5 -5
  12. package/dist/exports.cjs.js +1 -1
  13. package/dist/exports.es.js +6 -6
  14. package/dist/{index-CgKO4Rfc.js → index-6C0r0b28.js} +5 -5
  15. package/dist/{index-BRTHm-r0.cjs → index-C8knQe3w.cjs} +1 -1
  16. package/dist/{index-CWMP7EHj.js → index-CRXry6Nc.js} +1 -1
  17. package/dist/{index-B60hdPLY.cjs → index-Cyvdq9bC.cjs} +1 -1
  18. package/dist/{index-DHDz9Z2M.cjs → index-DOGDvdAe.cjs} +1 -1
  19. package/dist/{index-BtS9bwZU.cjs → index-DU5qhu5H.cjs} +1 -1
  20. package/dist/{index-BPwoye0T.js → index-Dj9WbMhN.js} +5 -5
  21. package/dist/{index-AhJGutkd.cjs → index-DlUuba7X.cjs} +1 -1
  22. package/dist/{index-CVXfHRHS.js → index-Dnj_qRMe.js} +5 -5
  23. package/dist/{index-DWwyC_5W.js → index-GWi3v3LH.js} +5 -5
  24. package/dist/index.cjs.js +1 -1
  25. package/dist/index.d.ts +4 -0
  26. package/dist/index.es.js +66 -44
  27. package/dist/{order-VgDnKBla.cjs → order-B2keJNN9.cjs} +1 -1
  28. package/dist/{order-BMAFH2EL.js → order-CRkNBk1l.js} +5 -5
  29. package/dist/src/assets/icons/index.d.ts +3 -0
  30. package/dist/src/constants/icon.d.ts +3 -2
  31. package/dist/src/hooks/useDynamicIconRegistration.d.ts +10 -0
  32. package/dist/src/storefront/components/StatusIndicator/index.d.ts +1 -1
  33. package/dist/src/ui/Icon/index.d.ts +5 -0
  34. package/dist/src/ui/SelectInfiniteList/index.d.ts +5 -0
  35. package/dist/src/ui/SelectSettings/index.d.ts +22 -0
  36. package/dist/src/ui/SelectSettings/utils/index.d.ts +2 -0
  37. package/dist/src/ui/index.d.ts +1 -0
  38. package/dist/src/utils/iconHelpers.d.ts +12 -0
  39. package/dist/src/utils/iconSelectHelpers.d.ts +35 -0
  40. package/dist/style.css +1 -1
  41. package/dist/{subscription-LF680WJT.js → subscription-qxCpanQb.js} +5 -5
  42. package/dist/{subscription-DaibYXfW.cjs → subscription-v64vRqA-.cjs} +1 -1
  43. package/dist/{ticket-CQD0ZMj2.js → ticket-BK3fx1Sw.js} +5 -5
  44. package/dist/{ticket-CraKfT7J.cjs → ticket-C-A_Ok9u.cjs} +1 -1
  45. package/dist/{top-up-BY8uNtks.cjs → top-up-DCz_tgnE.cjs} +1 -1
  46. package/dist/{top-up-zL4MfdVN.js → top-up-DvRo2FT6.js} +5 -5
  47. package/dist/ui-components-DD5zQkng.js +8390 -0
  48. package/dist/ui-components-DsX_DjBg.cjs +1 -0
  49. package/dist/ui.cjs.js +1 -1
  50. package/dist/ui.es.js +30 -29
  51. package/dist/{validation-Db2Od6AE.js → validation-Coc0Q-Ug.js} +5 -5
  52. package/dist/{validation-lxk5WFtw.cjs → validation-gGpkWETM.cjs} +1 -1
  53. package/package.json +1 -1
  54. package/dist/ui-components-JBzZAyzL.cjs +0 -1
  55. package/dist/ui-components-fiCrAhU8.js +0 -6542
@@ -1,96 +1,98 @@
1
- import { jsx as t, Fragment as M, jsxs as E } from "react/jsx-runtime";
2
- import { N as _, K as j, j as W, c as G, m as V, a as N, M as q, ai as Q, aj as X, ak as J } from "./builder-DcfIyRTw.js";
3
- import { f as K, l as Z, j as $, k as Y, D as ee } from "./ticket-CQD0ZMj2.js";
4
- import r, { Suspense as te } from "react";
5
- import { Z as re, _ as oe, $ as ne } from "./charge-CXy5zGzq.js";
6
- import { o as ae } from "./ui-components-fiCrAhU8.js";
7
- import { TextUnderline as se, TextStrikethrough as ie, TextItalic as le, AlignBottom as ce, AlignTop as de, AlignRight as he, AlignLeft as ue, TextAlignCenter as me, TextAlignRight as pe, TextAlignLeft as ge, PushPin as fe, Cards as Se, DeviceMobileCamera as ye, DeviceTabletCamera as ke, Desktop as Ce, UserCircleGear as Pe, Ticket as we, ChatCentered as Ae, SealQuestion as Te, SquaresFour as Re, Textbox as De, ArrowSquareIn as Ee, CornersOut as be, TextH as Le, TextB as ze, TextAa as Be, PaintBrushBroad as Ie, Gear as xe, Palette as ve, TreeStructure as Ue, WarningDiamond as Fe, Warning as Oe, Question as He, CalendarCheck as Me, Medal as _e, CurrencyCircleDollar as je, HouseSimple as We, House as Ge, Globe as Ve, Smiley as Ne, Calendar as qe, User as Qe, Heart as Xe, Lock as Je, FileCloud as Ke, ShieldCheck as Ze, Shield as $e, Share as Ye, DotsSixVertical as et, ChatsTeardrop as tt, PaperPlaneRight as rt, Wallet as ot, SignOut as nt, TelegramLogo as at, DiscordLogo as st, DownloadSimple as it, BookOpen as lt, FileText as ct, File as dt, Lightning as ht, Fire as ut, Star as mt, XCircle as pt, CheckCircle as gt, ArrowsVertical as ft, ArrowsHorizontal as St, CloudArrowUpIcon as yt, ArrowLineDown as kt, MagnifyingGlassMinus as Ct, MagnifyingGlass as Pt, CaretLeft as wt, CaretUp as At, CaretDown as Tt, CaretRight as Rt, ArrowUUpRight as Dt, ArrowUUpLeft as Et, ArrowUpRight as bt, ArrowLineUpRight as Lt, ArrowRight as zt, ArrowLeft as Bt, ArrowDown as It, ArrowUp as xt, Crown as vt, Eye as Ut, Bag as Ft, Handbag as Ot, List as Ht, Image as Mt, Sliders as _t, Trash as jt, Copy as Wt, Info as Gt, Clock as Vt, Check as Nt, Minus as qt, Plus as Qt, X as Xt } from "@phosphor-icons/react";
8
- const Jt = ({
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: c,
11
+ shopId: s,
12
12
  shopPassword: d,
13
13
  shopLogo: u
14
14
  }) => {
15
15
  const {
16
- setShopDomain: m,
17
- setShopId: k,
18
- setShopPassword: C,
19
- setShopTerms: p,
20
- setShopPrivacyPolicy: s,
16
+ setShopDomain: I,
17
+ setShopId: C,
18
+ setShopPassword: y,
19
+ setShopTerms: m,
20
+ setShopPrivacyPolicy: c,
21
21
  setShopRefundPolicy: g,
22
- setShopLogo: P
23
- } = _();
24
- return r.useLayoutEffect(() => {
25
- const n = async () => {
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
- s(i);
31
- }, w = async () => {
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
- m(l), k(c), d && C(d), u && P(u), n(), f(), w();
36
- }, [l, c, d]), /* @__PURE__ */ t(M, { children: e });
37
- }, Kt = "_wrapper_1xuz3_18", b = {
38
- wrapper: Kt
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 Zt() {
40
+ function Yt() {
41
41
  ae({
42
42
  // Основные UI иконки
43
- X: Xt,
44
- Plus: Qt,
45
- Minus: qt,
46
- Check: Nt,
47
- Clock: Vt,
48
- Info: Gt,
49
- Copy: Wt,
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: Mt,
53
- List: Ht,
54
- Handbag: Ot,
55
- Bag: Ft,
56
- Eye: Ut,
57
- Crown: vt,
58
- ArrowUp: xt,
59
- ArrowDown: It,
60
- ArrowLeft: Bt,
61
- ArrowRight: zt,
62
- ArrowLineUpRight: Lt,
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: Et,
65
- ArrowUUpRight: Dt,
66
- CaretRight: Rt,
67
- CaretDown: Tt,
68
- CaretUp: At,
69
- CaretLeft: wt,
70
- MagnifyingGlass: Pt,
71
- MagnifyingGlassMinus: Ct,
72
- ArrowLineDown: kt,
73
- CloudArrowUpIcon: yt,
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: gt,
78
- XCircle: pt,
78
+ CheckCircle: pt,
79
+ XCircle: gt,
79
80
  Star: mt,
80
- Fire: ut,
81
- Lightning: ht,
81
+ Fire: It,
82
+ Lightning: ut,
83
+ AlignCenterHorizontal: ht,
82
84
  // Файлы и документы
83
85
  File: dt,
84
- FileText: ct,
86
+ FileText: st,
85
87
  BookOpen: lt,
86
88
  DownloadSimple: it,
87
89
  // Социальные сети
88
- DiscordLogo: st,
90
+ DiscordLogo: ct,
89
91
  TelegramLogo: at,
90
92
  // Навигация и интерфейс
91
- SignOut: nt,
92
- Wallet: ot,
93
- PaperPlaneRight: rt,
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: qe,
106
- Smiley: Ne,
107
+ Calendar: Ne,
108
+ Smiley: qe,
107
109
  Globe: Ve,
108
110
  // Иконки для навигации в сайдбаре
109
- House: Ge,
110
- HouseSimple: We,
111
- CurrencyCircleDollar: je,
112
- Medal: _e,
111
+ House: je,
112
+ HouseSimple: _e,
113
+ CurrencyCircleDollar: We,
114
+ Medal: Ge,
113
115
  CalendarCheck: Me,
114
- Question: He,
116
+ Question: Oe,
115
117
  // Иконки для статусов
116
- Warning: Oe,
117
- WarningDiamond: Fe,
118
+ Warning: Fe,
119
+ WarningDiamond: He,
118
120
  // Иконки для билдера (Builder icons)
119
- TreeStructure: Ue,
120
- Palette: ve,
121
- Gear: xe,
122
- PaintBrushBroad: Ie,
123
- TextAa: Be,
124
- TextB: ze,
125
- TextH: Le,
126
- CornersOut: be,
127
- ArrowSquareIn: Ee,
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: Re,
131
+ SquaresFour: Pe,
130
132
  SealQuestion: Te,
131
- ChatCentered: Ae,
132
- Ticket: we,
133
- UserCircleGear: Pe,
134
- Desktop: Ce,
135
- DeviceTabletCamera: ke,
136
- DeviceMobileCamera: ye,
137
- Cards: Se,
138
- PushPin: fe,
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: pe,
142
- TextAlignCenter: me,
143
+ TextAlignRight: me,
144
+ TextAlignCenter: Ie,
143
145
  AlignLeft: ue,
144
146
  AlignRight: he,
145
147
  AlignTop: de,
146
- AlignBottom: ce,
148
+ AlignBottom: se,
147
149
  // Иконки для форматирования текста
148
150
  TextItalic: le,
149
151
  TextStrikethrough: ie,
150
- TextUnderline: se
152
+ TextUnderline: ce
151
153
  });
152
154
  }
153
- const $t = r.lazy(
154
- () => import("./builder-DcfIyRTw.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
155
- ), Yt = r.lazy(
156
- () => import("./index-CgKO4Rfc.js").then((e) => ({ default: e.ErrorPage }))
157
- ), er = r.lazy(
158
- () => import("./index-CWMP7EHj.js").then((e) => ({ default: e.ActivePage }))
159
- ), tr = r.lazy(
160
- () => import("./validation-Db2Od6AE.js").then((e) => ({ default: e.ValidationPage }))
161
- ), rr = r.lazy(
162
- () => import("./index-BPwoye0T.js").then((e) => ({ default: e.WrapperPage }))
163
- ), or = r.lazy(
164
- () => import("./index-CVXfHRHS.js").then((e) => ({ default: e.RouterErrorPage }))
165
- ), a = r.lazy(
166
- () => import("./index-DWwyC_5W.js").then((e) => ({ default: e.DynamicErrorPage }))
167
- ), nr = r.lazy(
168
- () => import("./checkout-C8pOrYnl.js").then((e) => ({ default: e.Checkout }))
169
- ), ar = r.lazy(
170
- () => import("./charge-CXy5zGzq.js").then((e) => e.a4).then((e) => ({ default: e.ChargePage }))
171
- ), sr = r.lazy(
172
- () => import("./ticket-CQD0ZMj2.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
173
- ), ir = r.lazy(
174
- () => import("./subscription-LF680WJT.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
175
- ), lr = r.lazy(
176
- () => import("./top-up-zL4MfdVN.js").then((e) => ({ default: e.TopUpBalance }))
177
- ), cr = r.lazy(
178
- () => import("./order-BMAFH2EL.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
179
- ), dr = r.lazy(
180
- () => import("./charge-CXy5zGzq.js").then((e) => e.a3).then((e) => ({ default: e.CustomerDashboard }))
181
- ), L = r.lazy(
182
- () => import("./charge-CXy5zGzq.js").then((e) => e.a2).then((e) => ({ default: e.ReCaptchaProvider }))
183
- ), hr = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(hr, {}), children: e }), ur = r.lazy(
184
- () => import("./builder-components-Dm-kWtxj.js").then((e) => e.i).then((e) => ({
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
- ), z = r.lazy(
188
- () => import("./builder-components-Dm-kWtxj.js").then((e) => e.i).then((e) => ({
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
- ), B = r.lazy(
192
- () => import("./builder-components-Dm-kWtxj.js").then((e) => e.i).then((e) => ({
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
- ), Cr = (e) => {
197
+ ), wo = (e) => {
196
198
  const {
197
199
  blocks: l,
198
- settings: c,
200
+ settings: s,
199
201
  header: d,
200
202
  footer: u,
201
- announcement: m,
202
- routes: k = [],
203
- shopLogo: C,
204
- apiURLs: p,
205
- isAntistock: s = !1
206
- } = e, [g, P] = r.useState(null), { general: n, setIsAntistock: f } = j(), { setApiUrls: w } = W(), {
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: I,
209
- setHeader: x,
210
- setFooter: v,
211
- setAnnouncement: U,
212
- setSettings: F
213
- } = G(), { themeSettings: S } = V(), { settings: A, setSettings: O } = N(), y = q ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, H = localStorage.getItem("shopPassword"), R = localStorage.getItem("shopId") || "";
214
- return r.useEffect(() => {
215
- f(s);
216
- }, [s, f]), r.useEffect(() => {
217
- !R && (n != null && n.info.id) && localStorage.setItem("shopId", n == null ? void 0 : n.info.id);
218
- }, [n]), r.useEffect(() => {
219
- !y && !s && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !y && s && localStorage.setItem("fakeDomain", "eva8.astck.io");
220
- }, [y]), r.useEffect(() => {
221
- if (S && A) {
222
- const h = K(S, A);
223
- Z(), $(S), Y(h);
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
- }, [S, JSON.stringify(A), window.location.hostname]), r.useEffect(() => {
226
- const T = new c().blockSettings;
227
- O(T);
228
- }, []), r.useEffect(() => {
229
- Zt();
230
- }, []), r.useLayoutEffect(() => {
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
- }), I(h), i(h), x(d), v(u), U(m), F(c), p && w(p);
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
- Jt,
240
+ Zt,
239
241
  {
240
- shopDomain: y,
241
- shopId: R,
242
- shopPassword: H || void 0,
243
- shopLogo: C,
244
- children: /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(rr, { children: /* @__PURE__ */ t(X, {}) }) })
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(o, { children: /* @__PURE__ */ t(or, {}) }),
249
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ao, {}) }),
248
250
  children: [
249
251
  {
250
252
  path: "/admin/builder/*",
251
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(er, { children: /* @__PURE__ */ t(
252
- $t,
253
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(oo, { children: /* @__PURE__ */ t(
254
+ eo,
253
255
  {
254
256
  blocks: l,
255
- settings: c,
257
+ settings: s,
256
258
  header: d,
257
259
  footer: u,
258
- announcement: m
260
+ announcement: I
259
261
  }
260
262
  ) }) }),
261
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(Yt, {}) })
263
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(to, {}) })
262
264
  },
263
- ...k,
265
+ ...C,
264
266
  {
265
267
  path: "/checkout",
266
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(nr, {}) }),
267
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(lr, {}) }),
273
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(ar, {}) }),
279
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(cr, {}) }),
285
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(ir, {}) }),
291
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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: s ? "/account" : "/customer-dash",
296
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ E("div", { className: b.wrapper, children: [
297
- /* @__PURE__ */ t(ur, {}),
298
- /* @__PURE__ */ t(B, {}),
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(dr, {})
307
+ children: /* @__PURE__ */ t(Io, {})
306
308
  }
307
309
  ),
308
- /* @__PURE__ */ t(z, {})
310
+ /* @__PURE__ */ t(b, {})
309
311
  ] }) }),
310
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
311
- loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
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(o, { children: /* @__PURE__ */ t(tr, {}) }),
316
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ E("div", { className: b.wrapper, children: [
322
- /* @__PURE__ */ t(B, {}),
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(L, { children: /* @__PURE__ */ t(sr, {}) })
333
+ children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(lo, {}) })
332
334
  }
333
335
  ),
334
- /* @__PURE__ */ t(z, {})
336
+ /* @__PURE__ */ t(b, {})
335
337
  ] }) }),
336
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(a, {}) })
344
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) })
343
345
  }
344
346
  ]
345
347
  }
346
348
  ]);
347
- P(T);
348
- }, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
349
+ A(T);
350
+ }, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
349
351
  };
350
352
  export {
351
- Cr as App
353
+ wo as App
352
354
  };