@billgangcom/theme-lib 1.119.3 → 1.120.1

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 (42) hide show
  1. package/dist/{builder-D7HVGoHJ.js → builder-CE6yg5oK.js} +5 -5
  2. package/dist/{builder-B0_nSCE7.cjs → builder-CWaG42kw.cjs} +2 -2
  3. package/dist/{builder-components-BU9TRGOm.js → builder-components-5Z24DJJP.js} +4 -4
  4. package/dist/{builder-components-DMlEyBtW.cjs → builder-components-Dyplqbia.cjs} +1 -1
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +221 -218
  7. package/dist/{charge-BHPFDh4Y.js → charge-B1GrtVWc.js} +6494 -6485
  8. package/dist/{charge-BziuEiXF.cjs → charge-BEnNfxFr.cjs} +39 -39
  9. package/dist/{checkout-C7j9Xkgo.js → checkout-B21z1TGE.js} +5 -5
  10. package/dist/{checkout-upoChrmF.cjs → checkout-CF05O03i.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-dAXIVeT9.cjs → index-1x0-wbdS.cjs} +1 -1
  14. package/dist/{index-H3iDzrby.cjs → index-BZ7C0iBt.cjs} +1 -1
  15. package/dist/{index-BNuke_Z3.js → index-Be2NRkjG.js} +5 -5
  16. package/dist/{index-BVCggNJC.cjs → index-Bl91R63p.cjs} +1 -1
  17. package/dist/{index-Bjzt_0qo.cjs → index-BpWh-qOk.cjs} +1 -1
  18. package/dist/{index-BnCHgTLo.js → index-C9ZIjLVQ.js} +5 -5
  19. package/dist/{index-xZabZ6aj.js → index-Cs9xerh4.js} +5 -5
  20. package/dist/{index-mcOpPEIh.js → index-DTAlnIyB.js} +1 -1
  21. package/dist/{index-Bnl5FU7T.cjs → index-DT_aTpZf.cjs} +1 -1
  22. package/dist/{index-Blc3pQyP.js → index-Dez8BiQX.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-Bs5YLWx2.cjs → order-BEBOxyTb.cjs} +1 -1
  26. package/dist/{order-IKJVvkIJ.js → order-dg2Oyqn4.js} +5 -5
  27. package/dist/src/storefront/components/PaymentMethods/index.d.ts +1 -0
  28. package/dist/src/storefront/models/shop.d.ts +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/{subscription-OG7SPP6m.cjs → subscription-Cd-C2FDT.cjs} +1 -1
  31. package/dist/{subscription-DxK5pjdt.js → subscription-ts1zCYfh.js} +5 -5
  32. package/dist/{ticket-3kkm5S_s.js → ticket-KYg6_LAo.js} +5 -5
  33. package/dist/{ticket-CS1Uaktn.cjs → ticket-STaDp20p.cjs} +1 -1
  34. package/dist/{top-up-Coejy8FE.cjs → top-up-ZgLo1nZF.cjs} +1 -1
  35. package/dist/{top-up-CujJ0lQv.js → top-up-dXcEKblL.js} +5 -5
  36. package/dist/{ui-components-CIIldk3l.js → ui-components-CpDQ53a4.js} +4 -4
  37. package/dist/{ui-components-CcqIAiGT.cjs → ui-components-s9Q6Wg3R.cjs} +1 -1
  38. package/dist/ui.cjs.js +1 -1
  39. package/dist/ui.es.js +1 -1
  40. package/dist/{validation-BzgPq06p.js → validation-DC8gCoJH.js} +5 -5
  41. package/dist/{validation-DNqiMxjs.cjs → validation-DLYUReRT.cjs} +1 -1
  42. package/package.json +1 -1
@@ -1,14 +1,14 @@
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-D7HVGoHJ.js";
3
- import { f as K, l as $, j as Y, k as Z, D as ee } from "./ticket-3kkm5S_s.js";
4
- import o, { Suspense as te } from "react";
5
- import { _ as oe, $ as ne, a0 as re } from "./charge-BHPFDh4Y.js";
6
- import { w as ae } from "./ui-components-CIIldk3l.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 we, ChatCenteredIcon as ke, 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 $e, ShieldIcon as Ye, ShareIcon as Ze, 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 wt, MagnifyingGlassIcon as kt, 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 $t } from "@phosphor-icons/react";
8
- const Yt = ({
1
+ import { jsx as t, Fragment as W, jsxs as x } from "react/jsx-runtime";
2
+ import { N as _, K as j, j as V, c as N, m as q, a as Q, M as X, ai as J, aj as K, ak as $ } from "./builder-CE6yg5oK.js";
3
+ import { f as Y, l as Z, j as ee, k as te, D as oe } from "./ticket-KYg6_LAo.js";
4
+ import o, { Suspense as ne } from "react";
5
+ import { _ as re, $ as ce, a0 as ae } from "./charge-B1GrtVWc.js";
6
+ import { w as ie } from "./ui-components-CpDQ53a4.js";
7
+ import { TextUnderlineIcon as se, TextStrikethroughIcon as le, TextItalicIcon as de, AlignBottomIcon as he, AlignTopIcon as ue, AlignRightIcon as Ie, AlignLeftIcon as me, TextAlignCenterIcon as ge, TextAlignRightIcon as pe, TextAlignLeftIcon as fe, PushPinIcon as Se, CardsIcon as Ce, DeviceMobileCameraIcon as ye, DeviceTabletCameraIcon as Ae, DesktopIcon as we, UserCircleGearIcon as ke, TicketIcon as Te, ChatCenteredIcon as Pe, SealQuestionIcon as De, SquaresFourIcon as Le, TextboxIcon as Re, ArrowSquareInIcon as xe, CornersOutIcon as be, TextHIcon as Be, TextBIcon as Ee, TextAaIcon as Ue, PaintBrushBroadIcon as ze, GearIcon as ve, PaletteIcon as He, TreeStructureIcon as Fe, WarningDiamondIcon as Oe, WarningIcon as Me, QuestionIcon as Ge, CalendarCheckIcon as We, MedalIcon as _e, CurrencyCircleDollarIcon as je, HouseSimpleIcon as Ve, HouseIcon as Ne, GlobeIcon as qe, SmileyIcon as Qe, CalendarIcon as Xe, UserIcon as Je, HeartIcon as Ke, LockIcon as $e, FileCloudIcon as Ye, ShieldCheckIcon as Ze, ShieldIcon as et, ShareIcon as tt, DotsSixVerticalIcon as ot, ChatsTeardropIcon as nt, PaperPlaneRightIcon as rt, WalletIcon as ct, SignOutIcon as at, TelegramLogoIcon as it, DiscordLogoIcon as st, DownloadSimpleIcon as lt, BookOpenIcon as dt, FileTextIcon as ht, FileIcon as ut, AlignCenterHorizontalIcon as It, LightningIcon as mt, FireIcon as gt, StarIcon as pt, XCircleIcon as ft, CheckCircleIcon as St, ArrowsVerticalIcon as Ct, ArrowsHorizontalIcon as yt, CloudArrowUpIcon as At, SelectionIcon as wt, ArrowLineDownIcon as kt, MagnifyingGlassMinusIcon as Tt, MagnifyingGlassIcon as Pt, CaretLeftIcon as Dt, CaretUpIcon as Lt, CaretDownIcon as Rt, CaretRightIcon as xt, ArrowUUpRightIcon as bt, ArrowUUpLeftIcon as Bt, ArrowUpRightIcon as Et, ArrowLineUpRightIcon as Ut, ArrowRightIcon as zt, ArrowLeftIcon as vt, ConfettiIcon as Ht, ArrowDownIcon as Ft, ArrowUpIcon as Ot, CrownIcon as Mt, EyeIcon as Gt, BagIcon as Wt, HandbagIcon as _t, ListIcon as jt, ImageIcon as Vt, SlidersIcon as Nt, TrashIcon as qt, CopyIcon as Qt, InfoIcon as Xt, ClockIcon as Jt, CheckIcon as Kt, MinusIcon as $t, PlusIcon as Yt, XIcon as Zt } from "@phosphor-icons/react";
8
+ const eo = ({
9
9
  children: e,
10
- shopDomain: l,
11
- shopId: s,
10
+ shopDomain: s,
11
+ shopId: l,
12
12
  shopPassword: d,
13
13
  shopLogo: u
14
14
  }) => {
@@ -17,311 +17,314 @@ const Yt = ({
17
17
  setShopId: C,
18
18
  setShopPassword: y,
19
19
  setShopTerms: m,
20
- setShopPrivacyPolicy: c,
20
+ setShopPrivacyPolicy: a,
21
21
  setShopRefundPolicy: g,
22
22
  setShopLogo: A
23
- } = G();
23
+ } = _();
24
24
  return o.useLayoutEffect(() => {
25
25
  const r = async () => {
26
- const { data: i } = await oe();
26
+ const { data: i } = await re();
27
27
  m(i);
28
28
  }, p = async () => {
29
- const { data: i } = await ne();
30
- c(i);
29
+ const { data: i } = await ce();
30
+ a(i);
31
31
  }, w = async () => {
32
- const { data: i } = await re();
32
+ const { data: i } = await ae();
33
33
  g(i);
34
34
  };
35
- I(l), C(s), d && y(d), u && A(u), r(), p(), w();
36
- }, [l, s, d]), /* @__PURE__ */ t(M, { children: e });
37
- }, Zt = "_wrapper_1xuz3_18", R = {
38
- wrapper: Zt
35
+ I(s), C(l), d && y(d), u && A(u), r(), p(), w();
36
+ }, [s, l, d]), /* @__PURE__ */ t(W, { children: e });
37
+ }, to = "_wrapper_1xuz3_18", b = {
38
+ wrapper: to
39
39
  };
40
- function eo() {
41
- ae({
40
+ function oo() {
41
+ ie({
42
42
  // Основные UI иконки
43
- X: $t,
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,
43
+ X: Zt,
44
+ Plus: Yt,
45
+ Minus: $t,
46
+ Check: Kt,
47
+ Clock: Jt,
48
+ Info: Xt,
49
+ Copy: Qt,
50
+ Trash: qt,
51
+ Sliders: Nt,
52
+ Image: Vt,
53
+ List: jt,
54
+ Handbag: _t,
55
+ Bag: Wt,
56
+ Eye: Gt,
57
+ Crown: Mt,
58
+ ArrowUp: Ot,
59
+ ArrowDown: Ft,
60
+ Confetti: Ht,
61
+ ArrowLeft: vt,
62
+ ArrowRight: zt,
63
63
  ArrowLineUpRight: Ut,
64
- ArrowUpRight: bt,
65
- ArrowUUpLeft: xt,
66
- ArrowUUpRight: Rt,
67
- CaretRight: Lt,
68
- CaretDown: Dt,
69
- CaretUp: Pt,
70
- CaretLeft: Tt,
71
- MagnifyingGlass: kt,
72
- MagnifyingGlassMinus: wt,
73
- ArrowLineDown: At,
74
- Selection: yt,
75
- CloudArrowUpIcon: Ct,
76
- ArrowsHorizontal: St,
77
- ArrowsVertical: ft,
64
+ ArrowUpRight: Et,
65
+ ArrowUUpLeft: Bt,
66
+ ArrowUUpRight: bt,
67
+ CaretRight: xt,
68
+ CaretDown: Rt,
69
+ CaretUp: Lt,
70
+ CaretLeft: Dt,
71
+ MagnifyingGlass: Pt,
72
+ MagnifyingGlassMinus: Tt,
73
+ ArrowLineDown: kt,
74
+ Selection: wt,
75
+ CloudArrowUpIcon: At,
76
+ ArrowsHorizontal: yt,
77
+ ArrowsVertical: Ct,
78
78
  // Статусы и действия
79
- CheckCircle: pt,
80
- XCircle: gt,
81
- Star: mt,
82
- Fire: It,
83
- Lightning: ut,
84
- AlignCenterHorizontal: ht,
79
+ CheckCircle: St,
80
+ XCircle: ft,
81
+ Star: pt,
82
+ Fire: gt,
83
+ Lightning: mt,
84
+ AlignCenterHorizontal: It,
85
85
  // Файлы и документы
86
- File: dt,
87
- FileText: st,
88
- BookOpen: lt,
89
- DownloadSimple: it,
86
+ File: ut,
87
+ FileText: ht,
88
+ BookOpen: dt,
89
+ DownloadSimple: lt,
90
90
  // Социальные сети
91
- DiscordLogo: ct,
92
- TelegramLogo: at,
91
+ DiscordLogo: st,
92
+ TelegramLogo: it,
93
93
  // Навигация и интерфейс
94
- SignOut: rt,
95
- Wallet: nt,
96
- PaperPlaneRight: ot,
97
- ChatsTeardrop: tt,
98
- DotsSixVertical: et,
99
- Share: Ze,
94
+ SignOut: at,
95
+ Wallet: ct,
96
+ PaperPlaneRight: rt,
97
+ ChatsTeardrop: nt,
98
+ DotsSixVertical: ot,
99
+ Share: tt,
100
100
  // Безопасность и файлы (для Checkout/Secured)
101
- Shield: Ye,
102
- ShieldCheck: $e,
103
- FileCloud: Ke,
104
- Lock: Je,
101
+ Shield: et,
102
+ ShieldCheck: Ze,
103
+ FileCloud: Ye,
104
+ Lock: $e,
105
105
  // Специальные иконки
106
- Heart: Xe,
107
- User: Qe,
108
- Calendar: Ne,
109
- Smiley: qe,
110
- Globe: Ve,
106
+ Heart: Ke,
107
+ User: Je,
108
+ Calendar: Xe,
109
+ Smiley: Qe,
110
+ Globe: qe,
111
111
  // Иконки для навигации в сайдбаре
112
- House: je,
113
- HouseSimple: _e,
114
- CurrencyCircleDollar: We,
115
- Medal: Ge,
116
- CalendarCheck: Me,
117
- Question: Oe,
112
+ House: Ne,
113
+ HouseSimple: Ve,
114
+ CurrencyCircleDollar: je,
115
+ Medal: _e,
116
+ CalendarCheck: We,
117
+ Question: Ge,
118
118
  // Иконки для статусов
119
- Warning: Fe,
120
- WarningDiamond: He,
119
+ Warning: Me,
120
+ WarningDiamond: Oe,
121
121
  // Иконки для билдера (Builder icons)
122
- TreeStructure: ve,
123
- Palette: ze,
124
- Gear: Ee,
125
- PaintBrushBroad: Be,
122
+ TreeStructure: Fe,
123
+ Palette: He,
124
+ Gear: ve,
125
+ PaintBrushBroad: ze,
126
126
  TextAa: Ue,
127
- TextB: be,
128
- TextH: xe,
129
- CornersOut: Re,
130
- ArrowSquareIn: Le,
131
- Textbox: De,
132
- SquaresFour: Pe,
133
- SealQuestion: Te,
134
- ChatCentered: ke,
135
- Ticket: we,
136
- UserCircleGear: Ae,
137
- Desktop: ye,
138
- DeviceTabletCamera: Ce,
139
- DeviceMobileCamera: Se,
140
- Cards: fe,
141
- PushPin: pe,
127
+ TextB: Ee,
128
+ TextH: Be,
129
+ CornersOut: be,
130
+ ArrowSquareIn: xe,
131
+ Textbox: Re,
132
+ SquaresFour: Le,
133
+ SealQuestion: De,
134
+ ChatCentered: Pe,
135
+ Ticket: Te,
136
+ UserCircleGear: ke,
137
+ Desktop: we,
138
+ DeviceTabletCamera: Ae,
139
+ DeviceMobileCamera: ye,
140
+ Cards: Ce,
141
+ PushPin: Se,
142
142
  // Иконки для выравнивания текста и отступов
143
- TextAlignLeft: ge,
144
- TextAlignRight: me,
145
- TextAlignCenter: Ie,
146
- AlignLeft: ue,
147
- AlignRight: he,
148
- AlignTop: de,
149
- AlignBottom: se,
143
+ TextAlignLeft: fe,
144
+ TextAlignRight: pe,
145
+ TextAlignCenter: ge,
146
+ AlignLeft: me,
147
+ AlignRight: Ie,
148
+ AlignTop: ue,
149
+ AlignBottom: he,
150
150
  // Иконки для форматирования текста
151
- TextItalic: le,
152
- TextStrikethrough: ie,
153
- TextUnderline: ce
151
+ TextItalic: de,
152
+ TextStrikethrough: le,
153
+ TextUnderline: se
154
154
  });
155
155
  }
156
- const to = o.lazy(
157
- () => import("./builder-D7HVGoHJ.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
158
- ), oo = o.lazy(
159
- () => import("./index-BNuke_Z3.js").then((e) => ({ default: e.ErrorPage }))
160
- ), no = o.lazy(
161
- () => import("./index-mcOpPEIh.js").then((e) => ({ default: e.ActivePage }))
156
+ const no = o.lazy(
157
+ () => import("./builder-CE6yg5oK.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
162
158
  ), ro = o.lazy(
163
- () => import("./validation-BzgPq06p.js").then((e) => ({ default: e.ValidationPage }))
164
- ), ao = o.lazy(
165
- () => import("./index-BnCHgTLo.js").then((e) => ({ default: e.WrapperPage }))
159
+ () => import("./index-Be2NRkjG.js").then((e) => ({ default: e.ErrorPage }))
166
160
  ), co = o.lazy(
167
- () => import("./index-Blc3pQyP.js").then((e) => ({ default: e.RouterErrorPage }))
168
- ), a = o.lazy(
169
- () => import("./index-xZabZ6aj.js").then((e) => ({ default: e.DynamicErrorPage }))
161
+ () => import("./index-DTAlnIyB.js").then((e) => ({ default: e.ActivePage }))
162
+ ), ao = o.lazy(
163
+ () => import("./validation-DC8gCoJH.js").then((e) => ({ default: e.ValidationPage }))
170
164
  ), io = o.lazy(
171
- () => import("./checkout-C7j9Xkgo.js").then((e) => ({ default: e.Checkout }))
172
- ), lo = o.lazy(
173
- () => import("./charge-BHPFDh4Y.js").then((e) => e.a5).then((e) => ({ default: e.ChargePage }))
165
+ () => import("./index-C9ZIjLVQ.js").then((e) => ({ default: e.WrapperPage }))
174
166
  ), so = o.lazy(
175
- () => import("./ticket-3kkm5S_s.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
167
+ () => import("./index-Dez8BiQX.js").then((e) => ({ default: e.RouterErrorPage }))
168
+ ), c = o.lazy(
169
+ () => import("./index-Cs9xerh4.js").then((e) => ({ default: e.DynamicErrorPage }))
170
+ ), lo = o.lazy(
171
+ () => import("./checkout-B21z1TGE.js").then((e) => ({ default: e.Checkout }))
176
172
  ), ho = o.lazy(
177
- () => import("./subscription-DxK5pjdt.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
173
+ () => import("./charge-B1GrtVWc.js").then((e) => e.a5).then((e) => ({ default: e.ChargePage }))
178
174
  ), uo = o.lazy(
179
- () => import("./top-up-CujJ0lQv.js").then((e) => ({ default: e.TopUpBalance }))
175
+ () => import("./ticket-KYg6_LAo.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
180
176
  ), Io = o.lazy(
181
- () => import("./order-IKJVvkIJ.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
177
+ () => import("./subscription-ts1zCYfh.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
182
178
  ), mo = o.lazy(
183
- () => import("./charge-BHPFDh4Y.js").then((e) => e.a4).then((e) => ({ default: e.CustomerDashboard }))
184
- ), x = o.lazy(
185
- () => import("./charge-BHPFDh4Y.js").then((e) => e.a3).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-BU9TRGOm.js").then((e) => e.i).then((e) => ({
179
+ () => import("./top-up-dXcEKblL.js").then((e) => ({ default: e.TopUpBalance }))
180
+ ), go = o.lazy(
181
+ () => import("./order-dg2Oyqn4.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
182
+ ), po = o.lazy(
183
+ () => import("./charge-B1GrtVWc.js").then((e) => e.a4).then((e) => ({ default: e.CustomerDashboard }))
184
+ ), B = o.lazy(
185
+ () => import("./charge-B1GrtVWc.js").then((e) => e.a3).then((e) => ({ default: e.ReCaptchaProvider }))
186
+ ), fo = () => null, n = ({ children: e }) => /* @__PURE__ */ t(ne, { fallback: /* @__PURE__ */ t(fo, {}), children: e }), So = o.lazy(
187
+ () => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
188
188
  default: e.RenderAnnouncement
189
189
  }))
190
- ), b = o.lazy(
191
- () => import("./builder-components-BU9TRGOm.js").then((e) => e.i).then((e) => ({
190
+ ), E = o.lazy(
191
+ () => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
192
192
  default: e.RenderFooter
193
193
  }))
194
194
  ), U = o.lazy(
195
- () => import("./builder-components-BU9TRGOm.js").then((e) => e.i).then((e) => ({
195
+ () => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
196
196
  default: e.RenderHeader
197
197
  }))
198
- ), To = (e) => {
198
+ ), Do = (e) => {
199
199
  const {
200
- blocks: l,
201
- settings: s,
200
+ blocks: s,
201
+ settings: l,
202
202
  header: d,
203
203
  footer: u,
204
204
  announcement: I,
205
205
  routes: C = [],
206
206
  shopLogo: y,
207
207
  apiURLs: m,
208
- isAntistock: c = !1
209
- } = e, [g, A] = o.useState(null), { general: r, setIsAntistock: p } = W(), { setApiUrls: w } = _(), {
208
+ isAntistock: a = !1
209
+ } = e, [g, A] = o.useState(null), { general: r, setIsAntistock: p } = j(), { setApiUrls: w } = V(), {
210
210
  setBlocks: i,
211
- setSourceBlocks: B,
212
- setHeader: E,
213
- setFooter: z,
214
- setAnnouncement: v,
215
- setSettings: H
216
- } = j(), { themeSettings: f } = V(), { settings: k, setSettings: F } = q(), S = N ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, O = localStorage.getItem("shopPassword"), P = localStorage.getItem("shopId") || "";
211
+ setSourceBlocks: z,
212
+ setHeader: v,
213
+ setFooter: H,
214
+ setAnnouncement: F,
215
+ setSettings: O
216
+ } = N(), { themeSettings: f } = q(), { settings: k, setSettings: M } = Q(), S = X ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, G = localStorage.getItem("shopPassword"), P = localStorage.getItem("shopId") || "";
217
217
  return o.useEffect(() => {
218
- p(c);
219
- }, [c, p]), o.useEffect(() => {
218
+ p(a);
219
+ }, [a, p]), o.useEffect(() => {
220
220
  !P && (r != null && r.info.id) && localStorage.setItem("shopId", r == null ? void 0 : r.info.id);
221
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");
222
+ !S && !a && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && a && localStorage.setItem("fakeDomain", "eva8.astck.io");
223
223
  }, [S]), o.useEffect(() => {
224
224
  if (f && k) {
225
- const h = K(f, k);
226
- $(), Y(f), Z(h);
225
+ const h = Y(f, k);
226
+ Z(), ee(f), te(h);
227
227
  }
228
228
  }, [f, JSON.stringify(k), window.location.hostname]), o.useEffect(() => {
229
- const T = new s().blockSettings;
230
- F(T);
229
+ const T = new l().blockSettings;
230
+ M(T);
231
231
  }, []), o.useEffect(() => {
232
- eo();
232
+ oo();
233
233
  }, []), o.useLayoutEffect(() => {
234
+ var D, L;
234
235
  const h = {};
235
- Object.keys(l).map((D) => {
236
- h[D] = l[D];
237
- }), B(h), i(h), E(d), z(u), v(I), H(s), m && w(m);
238
- const T = Q([
236
+ Object.keys(s).map((R) => {
237
+ h[R] = s[R];
238
+ }), z(h), i(h), v(d), H(u), F(I), O(l), m && w(m), console.log((D = r == null ? void 0 : r.info) == null ? void 0 : D.customerAccountSettings);
239
+ const T = J([
239
240
  {
240
241
  element: /* @__PURE__ */ t(
241
- Yt,
242
+ eo,
242
243
  {
243
244
  shopDomain: S,
244
245
  shopId: P,
245
- shopPassword: O || void 0,
246
+ shopPassword: G || void 0,
246
247
  shopLogo: y,
247
- children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(ao, { children: /* @__PURE__ */ t(X, {}) }) })
248
+ children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(io, { children: /* @__PURE__ */ t(K, {}) }) })
248
249
  }
249
250
  ),
250
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, {}) }),
251
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(so, {}) }),
251
252
  children: [
252
253
  {
253
254
  path: "/admin/builder/*",
254
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(no, { children: /* @__PURE__ */ t(
255
- to,
255
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, { children: /* @__PURE__ */ t(
256
+ no,
256
257
  {
257
- blocks: l,
258
- settings: s,
258
+ blocks: s,
259
+ settings: l,
259
260
  header: d,
260
261
  footer: u,
261
262
  announcement: I
262
263
  }
263
264
  ) }) }),
264
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(oo, {}) })
265
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ro, {}) })
265
266
  },
266
267
  ...C,
267
268
  {
268
269
  path: "/checkout",
269
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(io, {}) }),
270
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
270
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
271
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
271
272
  loader: () => (document.title = "Checkout", !0)
272
273
  },
273
274
  {
274
275
  path: "/top-up",
275
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(uo, {}) }),
276
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
276
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(mo, {}) }),
277
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
277
278
  loader: () => (document.title = "Top Up Balance", !0)
278
279
  },
279
280
  {
280
281
  path: "/charges/:id",
281
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
282
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
282
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ho, {}) }),
283
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
283
284
  loader: () => (document.title = "Charges", !0)
284
285
  },
285
286
  {
286
287
  path: "/orders/:id/:accessToken?",
287
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(Io, {}) }),
288
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
288
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(go, {}) }),
289
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
289
290
  loader: () => (document.title = "Orders", !0)
290
291
  },
291
292
  {
292
293
  path: "/subscriptions/:id/:accessToken?",
293
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ho, {}) }),
294
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
294
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(Io, {}) }),
295
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
295
296
  loader: () => (document.title = "Subscriptions", !0)
296
297
  },
297
- {
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, {}),
302
- /* @__PURE__ */ t(
303
- "div",
304
- {
305
- style: {
306
- flex: "1 1 auto"
307
- },
308
- children: /* @__PURE__ */ t(mo, {})
309
- }
310
- ),
311
- /* @__PURE__ */ t(b, {})
312
- ] }) }),
313
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
314
- loader: () => (document.title = c ? "Account" : "Customer Dashboard", !0)
315
- },
298
+ ...(((L = r == null ? void 0 : r.info) == null ? void 0 : L.customerAccountSettings) ?? "OPTIONAL") === "DISABLED" ? [] : [
299
+ {
300
+ path: a ? "/account" : "/customer-dash",
301
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ x("div", { className: b.wrapper, children: [
302
+ /* @__PURE__ */ t(So, {}),
303
+ /* @__PURE__ */ t(U, {}),
304
+ /* @__PURE__ */ t(
305
+ "div",
306
+ {
307
+ style: {
308
+ flex: "1 1 auto"
309
+ },
310
+ children: /* @__PURE__ */ t(po, {})
311
+ }
312
+ ),
313
+ /* @__PURE__ */ t(E, {})
314
+ ] }) }),
315
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
316
+ loader: () => (document.title = a ? "Account" : "Customer Dashboard", !0)
317
+ }
318
+ ],
316
319
  {
317
320
  path: "/validation",
318
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ro, {}) }),
319
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
321
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ao, {}) }),
322
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
320
323
  loader: () => (document.title = "Validation", !0)
321
324
  },
322
325
  {
323
326
  path: "/ticket/:id/:accessToken",
324
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ L("div", { className: R.wrapper, children: [
327
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ x("div", { className: b.wrapper, children: [
325
328
  /* @__PURE__ */ t(U, {}),
326
329
  /* @__PURE__ */ t(
327
330
  "div",
@@ -331,25 +334,25 @@ const to = o.lazy(
331
334
  width: "100%",
332
335
  height: "100%"
333
336
  },
334
- children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(so, {}) })
337
+ children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(uo, {}) })
335
338
  }
336
339
  ),
337
- /* @__PURE__ */ t(b, {})
340
+ /* @__PURE__ */ t(E, {})
338
341
  ] }) }),
339
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) }),
342
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
340
343
  loader: () => (document.title = "Ticket", !0)
341
344
  },
342
345
  {
343
346
  path: "*",
344
- element: /* @__PURE__ */ t(ee, {}),
345
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(a, {}) })
347
+ element: /* @__PURE__ */ t(oe, {}),
348
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) })
346
349
  }
347
350
  ]
348
351
  }
349
352
  ]);
350
353
  A(T);
351
- }, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
354
+ }, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t($, { router: g }) });
352
355
  };
353
356
  export {
354
- To as App
357
+ Do as App
355
358
  };