@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.
Files changed (55) hide show
  1. package/README.md +2 -6
  2. package/dist/{builder-ING-1TC5.js → builder-CcLZHVq3.js} +5 -5
  3. package/dist/{builder-hB8NmH8C.cjs → builder-JKkaOMOl.cjs} +2 -2
  4. package/dist/{builder-components-oKxTX6fj.cjs → builder-components-B0SvEDG4.cjs} +2 -2
  5. package/dist/{builder-components-ClJQSJ2L.js → builder-components-Dl3dEzV6.js} +4 -4
  6. package/dist/builder.cjs.js +1 -1
  7. package/dist/builder.es.js +210 -207
  8. package/dist/{charge-CuNPpaJ7.js → charge-DC4f3U8I.js} +235 -233
  9. package/dist/{charge-C1osb-bm.cjs → charge-LGilmNUv.cjs} +3 -3
  10. package/dist/{checkout-BnsWDYDl.js → checkout-B_qFvrUF.js} +5 -5
  11. package/dist/{checkout-DMKbVPtL.cjs → checkout-BaZLmyfk.cjs} +1 -1
  12. package/dist/exports.cjs.js +1 -1
  13. package/dist/exports.es.js +6 -6
  14. package/dist/{index--_-vRaQR.js → index-BFZm601D.js} +5 -5
  15. package/dist/{index-BMrIA4yw.js → index-Bh3_Rczn.js} +1 -1
  16. package/dist/{index-Dqp9j9qF.js → index-BqtOxv5i.js} +5 -5
  17. package/dist/{index-zDmFKbp8.cjs → index-BtQ89Hj3.cjs} +1 -1
  18. package/dist/{index-CDeg6Sk-.js → index-C-SrHRJh.js} +5 -5
  19. package/dist/{index-lINjLxQX.cjs → index-CmO3iWeV.cjs} +1 -1
  20. package/dist/{index-vFyF3Ow6.cjs → index-CyiCR5lK.cjs} +1 -1
  21. package/dist/{index-BFVW04-o.cjs → index-D4Hp4-Qp.cjs} +1 -1
  22. package/dist/{index-BKrDDMuH.cjs → index-DtcojRuS.cjs} +1 -1
  23. package/dist/{index-BiAMlV6S.js → index-Ek3qYkbu.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-BGMoWRhn.js → order-Bd24i-W3.js} +5 -5
  28. package/dist/{order-BqB3_Sr9.cjs → order-t2QoTU6S.cjs} +1 -1
  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/pages/home/model.d.ts +1 -0
  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-BYPJHXT2.js → subscription-CqhnWDq_.js} +5 -5
  42. package/dist/{subscription-C27f2W_a.cjs → subscription-DHhmsQxH.cjs} +1 -1
  43. package/dist/{ticket-Bru9-GYY.cjs → ticket-Cv2XbF6y.cjs} +1 -1
  44. package/dist/{ticket-eMmtCmvN.js → ticket-r3Kx22M9.js} +5 -5
  45. package/dist/{top-up-BbY79ujW.js → top-up-9OWzVCVP.js} +5 -5
  46. package/dist/{top-up-CMpoWJbT.cjs → top-up-Ba_v68et.cjs} +1 -1
  47. package/dist/ui-components-BGzv0KT2.js +8390 -0
  48. package/dist/ui-components-C4hKK4aN.cjs +1 -0
  49. package/dist/ui.cjs.js +1 -1
  50. package/dist/ui.es.js +30 -29
  51. package/dist/{validation-CBWyX-kx.js → validation-BUpHL2xL.js} +5 -5
  52. package/dist/{validation-CtRwKk0C.cjs → validation-D3IO5HzB.cjs} +1 -1
  53. package/package.json +1 -1
  54. package/dist/ui-components-BrBBLOj0.cjs +0 -1
  55. package/dist/ui-components-CmN3s0-4.js +0 -6542
@@ -1,96 +1,99 @@
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-ING-1TC5.js";
3
- import { f as K, l as Z, j as $, k as Y, D as ee } from "./ticket-eMmtCmvN.js";
4
- import r, { Suspense as te } from "react";
5
- import { Z as re, _ as oe, $ as ne } from "./charge-CuNPpaJ7.js";
6
- import { o as ae } from "./ui-components-CmN3s0-4.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-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: 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
+ }, Yt = "_wrapper_1xuz3_18", R = {
38
+ wrapper: Yt
39
39
  };
40
- function Zt() {
40
+ function eo() {
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,
50
- Trash: jt,
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,
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: 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,
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: gt,
78
- XCircle: pt,
79
+ CheckCircle: pt,
80
+ XCircle: gt,
79
81
  Star: mt,
80
- Fire: ut,
81
- Lightning: ht,
82
+ Fire: It,
83
+ Lightning: ut,
84
+ AlignCenterHorizontal: ht,
82
85
  // Файлы и документы
83
86
  File: dt,
84
- FileText: ct,
87
+ FileText: st,
85
88
  BookOpen: lt,
86
89
  DownloadSimple: it,
87
90
  // Социальные сети
88
- DiscordLogo: st,
91
+ DiscordLogo: ct,
89
92
  TelegramLogo: at,
90
93
  // Навигация и интерфейс
91
- SignOut: nt,
92
- Wallet: ot,
93
- PaperPlaneRight: rt,
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: qe,
106
- Smiley: Ne,
108
+ Calendar: Ne,
109
+ Smiley: qe,
107
110
  Globe: Ve,
108
111
  // Иконки для навигации в сайдбаре
109
- House: Ge,
110
- HouseSimple: We,
111
- CurrencyCircleDollar: je,
112
- Medal: _e,
112
+ House: je,
113
+ HouseSimple: _e,
114
+ CurrencyCircleDollar: We,
115
+ Medal: Ge,
113
116
  CalendarCheck: Me,
114
- Question: He,
117
+ Question: Oe,
115
118
  // Иконки для статусов
116
- Warning: Oe,
117
- WarningDiamond: Fe,
119
+ Warning: Fe,
120
+ WarningDiamond: He,
118
121
  // Иконки для билдера (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,
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: Re,
132
+ SquaresFour: Pe,
130
133
  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,
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: pe,
142
- TextAlignCenter: me,
144
+ TextAlignRight: me,
145
+ TextAlignCenter: Ie,
143
146
  AlignLeft: ue,
144
147
  AlignRight: he,
145
148
  AlignTop: de,
146
- AlignBottom: ce,
149
+ AlignBottom: se,
147
150
  // Иконки для форматирования текста
148
151
  TextItalic: le,
149
152
  TextStrikethrough: ie,
150
- TextUnderline: se
153
+ TextUnderline: ce
151
154
  });
152
155
  }
153
- const $t = r.lazy(
154
- () => import("./builder-ING-1TC5.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
155
- ), Yt = r.lazy(
156
- () => import("./index-BiAMlV6S.js").then((e) => ({ default: e.ErrorPage }))
157
- ), er = r.lazy(
158
- () => import("./index-BMrIA4yw.js").then((e) => ({ default: e.ActivePage }))
159
- ), tr = r.lazy(
160
- () => import("./validation-CBWyX-kx.js").then((e) => ({ default: e.ValidationPage }))
161
- ), rr = r.lazy(
162
- () => import("./index-CDeg6Sk-.js").then((e) => ({ default: e.WrapperPage }))
163
- ), or = r.lazy(
164
- () => import("./index--_-vRaQR.js").then((e) => ({ default: e.RouterErrorPage }))
165
- ), a = r.lazy(
166
- () => import("./index-Dqp9j9qF.js").then((e) => ({ default: e.DynamicErrorPage }))
167
- ), nr = r.lazy(
168
- () => import("./checkout-BnsWDYDl.js").then((e) => ({ default: e.Checkout }))
169
- ), ar = r.lazy(
170
- () => import("./charge-CuNPpaJ7.js").then((e) => e.a4).then((e) => ({ default: e.ChargePage }))
171
- ), sr = r.lazy(
172
- () => import("./ticket-eMmtCmvN.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
173
- ), ir = r.lazy(
174
- () => import("./subscription-BYPJHXT2.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
175
- ), lr = r.lazy(
176
- () => import("./top-up-BbY79ujW.js").then((e) => ({ default: e.TopUpBalance }))
177
- ), cr = r.lazy(
178
- () => import("./order-BGMoWRhn.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
179
- ), dr = r.lazy(
180
- () => import("./charge-CuNPpaJ7.js").then((e) => e.a3).then((e) => ({ default: e.CustomerDashboard }))
181
- ), L = r.lazy(
182
- () => import("./charge-CuNPpaJ7.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-ClJQSJ2L.js").then((e) => e.i).then((e) => ({
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
- ), z = r.lazy(
188
- () => import("./builder-components-ClJQSJ2L.js").then((e) => e.i).then((e) => ({
190
+ ), b = o.lazy(
191
+ () => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
189
192
  default: e.RenderFooter
190
193
  }))
191
- ), B = r.lazy(
192
- () => import("./builder-components-ClJQSJ2L.js").then((e) => e.i).then((e) => ({
194
+ ), U = o.lazy(
195
+ () => import("./builder-components-Dl3dEzV6.js").then((e) => e.i).then((e) => ({
193
196
  default: e.RenderHeader
194
197
  }))
195
- ), Cr = (e) => {
198
+ ), To = (e) => {
196
199
  const {
197
200
  blocks: l,
198
- settings: c,
201
+ settings: s,
199
202
  header: d,
200
203
  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(), {
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: 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);
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
- }, [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(() => {
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
- }), I(h), i(h), x(d), v(u), U(m), F(c), p && w(p);
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
- Jt,
241
+ $t,
239
242
  {
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, {}) }) })
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(o, { children: /* @__PURE__ */ t(or, {}) }),
250
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, {}) }),
248
251
  children: [
249
252
  {
250
253
  path: "/admin/builder/*",
251
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(er, { children: /* @__PURE__ */ t(
252
- $t,
254
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(no, { children: /* @__PURE__ */ t(
255
+ to,
253
256
  {
254
257
  blocks: l,
255
- settings: c,
258
+ settings: s,
256
259
  header: d,
257
260
  footer: u,
258
- announcement: m
261
+ announcement: I
259
262
  }
260
263
  ) }) }),
261
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(Yt, {}) })
264
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(oo, {}) })
262
265
  },
263
- ...k,
266
+ ...C,
264
267
  {
265
268
  path: "/checkout",
266
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(nr, {}) }),
267
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(lr, {}) }),
273
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(ar, {}) }),
279
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(cr, {}) }),
285
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(ir, {}) }),
291
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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: 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, {}),
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(dr, {})
308
+ children: /* @__PURE__ */ t(mo, {})
306
309
  }
307
310
  ),
308
- /* @__PURE__ */ t(z, {})
311
+ /* @__PURE__ */ t(b, {})
309
312
  ] }) }),
310
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
311
- loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
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(o, { children: /* @__PURE__ */ t(tr, {}) }),
316
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ E("div", { className: b.wrapper, children: [
322
- /* @__PURE__ */ t(B, {}),
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(L, { children: /* @__PURE__ */ t(sr, {}) })
334
+ children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(so, {}) })
332
335
  }
333
336
  ),
334
- /* @__PURE__ */ t(z, {})
337
+ /* @__PURE__ */ t(b, {})
335
338
  ] }) }),
336
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
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(o, { children: /* @__PURE__ */ t(a, {}) })
345
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) })
343
346
  }
344
347
  ]
345
348
  }
346
349
  ]);
347
- P(T);
348
- }, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
350
+ A(T);
351
+ }, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
349
352
  };
350
353
  export {
351
- Cr as App
354
+ To as App
352
355
  };