@billgangcom/theme-lib 1.114.0 → 1.114.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 (39) hide show
  1. package/dist/{builder-DoAHiGfI.cjs → builder-BVVH9Uc0.cjs} +8 -8
  2. package/dist/{builder-components-DOXVQePh.js → builder-components-BD45uk6H.js} +4 -4
  3. package/dist/{builder-components-B6Q1FJdO.cjs → builder-components-BEFw4EcA.cjs} +1 -1
  4. package/dist/{builder-Bd2jS6z5.js → builder-dGixT-_d.js} +260 -257
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-By0YRAtN.cjs → charge-DAXMrlAq.cjs} +1 -1
  8. package/dist/{charge-CYkPC1xJ.js → charge-Nfq6BBT0.js} +6 -6
  9. package/dist/{checkout-BacYMk5p.js → checkout-DJA7m9bE.js} +5 -5
  10. package/dist/{checkout-BBaq5eLv.cjs → checkout-DaksJ-vl.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-B1J6oyyZ.cjs → index-BE-LNEM-.cjs} +1 -1
  14. package/dist/{index-DZVqcJh_.cjs → index-CMngiHt6.cjs} +1 -1
  15. package/dist/{index-DA2EeXd3.js → index-CSYLpXUY.js} +5 -5
  16. package/dist/{index-Dv-y6xYv.js → index-CX9eAqxn.js} +5 -5
  17. package/dist/{index-BCgXuVzB.js → index-CgAhbfol.js} +1 -1
  18. package/dist/{index-CULiMl6h.cjs → index-Cq-HG360.cjs} +1 -1
  19. package/dist/{index-B86a6HK7.cjs → index-CwBlGUFg.cjs} +1 -1
  20. package/dist/{index-C5xaXw2a.cjs → index-CxES4Y2E.cjs} +1 -1
  21. package/dist/{index-DNGCgy8g.js → index-DKVA1wV8.js} +5 -5
  22. package/dist/{index-D14heDcK.js → index-Drs_bUt0.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-BkDz1lDn.js → order-BiWH1GaD.js} +5 -5
  26. package/dist/{order-BsI3Djg7.cjs → order-EtDX2zwp.cjs} +1 -1
  27. package/dist/{subscription-mYFIz-QI.js → subscription-BsED7sfb.js} +5 -5
  28. package/dist/{subscription-DYa6vxo1.cjs → subscription-DuCTTG3r.cjs} +1 -1
  29. package/dist/{ticket-Djdg5CC8.cjs → ticket-CbHpWM1U.cjs} +1 -1
  30. package/dist/{ticket-ckMFdKTG.js → ticket-D82dpA86.js} +5 -5
  31. package/dist/{top-up-3v6D0_10.js → top-up-CKuuSysp.js} +5 -5
  32. package/dist/{top-up-CuY2N9Qr.cjs → top-up-Czf-dtwC.cjs} +1 -1
  33. package/dist/{ui-components-Bfju659N.js → ui-components-D3S3Wicn.js} +4 -4
  34. package/dist/{ui-components-foi2BEtM.cjs → ui-components-DgahiZcB.cjs} +1 -1
  35. package/dist/ui.cjs.js +1 -1
  36. package/dist/ui.es.js +1 -1
  37. package/dist/{validation-CnxmZXnT.js → validation-BVXpLz7D.js} +5 -5
  38. package/dist/{validation-BSQGHn4r.cjs → validation-otConG8r.cjs} +1 -1
  39. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import * as C from "react";
2
2
  import _e, { useRef as jr, useEffect as _a } from "react";
3
3
  import * as La from "react-dom";
4
- import { jsx as O, jsxs as Re, Fragment as Pa } from "react/jsx-runtime";
5
- import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-Bfju659N.js";
6
- import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-DOXVQePh.js";
7
- import "./charge-CYkPC1xJ.js";
8
- import "./ticket-ckMFdKTG.js";
4
+ import { jsx as M, jsxs as Re, Fragment as Pa } from "react/jsx-runtime";
5
+ import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-D3S3Wicn.js";
6
+ import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-BD45uk6H.js";
7
+ import "./charge-Nfq6BBT0.js";
8
+ import "./ticket-D82dpA86.js";
9
9
  /**
10
10
  * @remix-run/router v1.23.0
11
11
  *
@@ -138,13 +138,13 @@ function ja(e, t, n, r) {
138
138
  s = ve.Push;
139
139
  let b = Wt(h.location, y, k);
140
140
  c = u() + 1;
141
- let x = Jr(b, c), M = h.createHref(b);
141
+ let x = Jr(b, c), _ = h.createHref(b);
142
142
  try {
143
- i.pushState(x, "", M);
143
+ i.pushState(x, "", _);
144
144
  } catch (T) {
145
145
  if (T instanceof DOMException && T.name === "DataCloneError")
146
146
  throw T;
147
- o.location.assign(M);
147
+ o.location.assign(_);
148
148
  }
149
149
  a && l && l({
150
150
  action: s,
@@ -156,8 +156,8 @@ function ja(e, t, n, r) {
156
156
  s = ve.Replace;
157
157
  let b = Wt(h.location, y, k);
158
158
  c = u();
159
- let x = Jr(b, c), M = h.createHref(b);
160
- i.replaceState(x, "", M), a && l && l({
159
+ let x = Jr(b, c), _ = h.createHref(b);
160
+ i.replaceState(x, "", _), a && l && l({
161
161
  action: s,
162
162
  location: h.location,
163
163
  delta: 0
@@ -499,7 +499,7 @@ function gi(e) {
499
499
  v7_prependBasename: !1,
500
500
  v7_relativeSplatPath: !1,
501
501
  v7_skipActionErrorRevalidation: !1
502
- }, e.future), m = null, v = /* @__PURE__ */ new Set(), p = null, h = null, y = null, k = e.hydrationData != null, b = mt(i, e.history.location, l), x = !1, M = null;
502
+ }, e.future), m = null, v = /* @__PURE__ */ new Set(), p = null, h = null, y = null, k = e.hydrationData != null, b = mt(i, e.history.location, l), x = !1, _ = null;
503
503
  if (b == null && !u) {
504
504
  let f = Ae(404, {
505
505
  pathname: e.history.location.pathname
@@ -507,7 +507,7 @@ function gi(e) {
507
507
  matches: g,
508
508
  route: S
509
509
  } = ro(i);
510
- b = g, M = {
510
+ b = g, _ = {
511
511
  [S.id]: f
512
512
  };
513
513
  }
@@ -543,10 +543,10 @@ function gi(e) {
543
543
  revalidation: "idle",
544
544
  loaderData: e.hydrationData && e.hydrationData.loaderData || {},
545
545
  actionData: e.hydrationData && e.hydrationData.actionData || null,
546
- errors: e.hydrationData && e.hydrationData.errors || M,
546
+ errors: e.hydrationData && e.hydrationData.errors || _,
547
547
  fetchers: /* @__PURE__ */ new Map(),
548
548
  blockers: /* @__PURE__ */ new Map()
549
- }, _ = ve.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Le = [], qe = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), ke = 0, Se = -1, we = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), ft;
549
+ }, L = ve.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Le = [], qe = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), ke = 0, Se = -1, we = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), ft;
550
550
  function en() {
551
551
  if (m = e.history.listen((f) => {
552
552
  let {
@@ -621,14 +621,14 @@ function gi(e) {
621
621
  var R, N;
622
622
  let {
623
623
  flushSync: F
624
- } = S === void 0 ? {} : S, H = w.actionData != null && w.navigation.formMethod != null && je(w.navigation.formMethod) && w.navigation.state === "loading" && ((R = f.state) == null ? void 0 : R._isRedirect) !== !0, P;
625
- g.actionData ? Object.keys(g.actionData).length > 0 ? P = g.actionData : P = null : H ? P = w.actionData : P = null;
626
- let A = g.loaderData ? to(w.loaderData, g.loaderData, g.matches || [], g.errors) : w.loaderData, L = w.blockers;
627
- L.size > 0 && (L = new Map(L), L.forEach((Y, xe) => L.set(xe, Dt)));
624
+ } = S === void 0 ? {} : S, H = w.actionData != null && w.navigation.formMethod != null && je(w.navigation.formMethod) && w.navigation.state === "loading" && ((R = f.state) == null ? void 0 : R._isRedirect) !== !0, O;
625
+ g.actionData ? Object.keys(g.actionData).length > 0 ? O = g.actionData : O = null : H ? O = w.actionData : O = null;
626
+ let A = g.loaderData ? to(w.loaderData, g.loaderData, g.matches || [], g.errors) : w.loaderData, P = w.blockers;
627
+ P.size > 0 && (P = new Map(P), P.forEach((Y, xe) => P.set(xe, Dt)));
628
628
  let D = K === !0 || w.navigation.formMethod != null && je(w.navigation.formMethod) && ((N = f.state) == null ? void 0 : N._isRedirect) !== !0;
629
- s && (i = s, s = void 0), he || _ === ve.Pop || (_ === ve.Push ? e.history.push(f, f.state) : _ === ve.Replace && e.history.replace(f, f.state));
629
+ s && (i = s, s = void 0), he || L === ve.Pop || (L === ve.Push ? e.history.push(f, f.state) : L === ve.Replace && e.history.replace(f, f.state));
630
630
  let J;
631
- if (_ === ve.Pop) {
631
+ if (L === ve.Pop) {
632
632
  let Y = ee.get(w.location.pathname);
633
633
  Y && Y.has(f.pathname) ? J = {
634
634
  currentLocation: w.location,
@@ -645,20 +645,20 @@ function gi(e) {
645
645
  };
646
646
  }
647
647
  Ce(fe({}, g, {
648
- actionData: P,
648
+ actionData: O,
649
649
  loaderData: A,
650
- historyAction: _,
650
+ historyAction: L,
651
651
  location: f,
652
652
  initialized: !0,
653
653
  navigation: qn,
654
654
  revalidation: "idle",
655
655
  restoreScrollPosition: Ur(f, g.matches || w.matches),
656
656
  preventScrollReset: D,
657
- blockers: L
657
+ blockers: P
658
658
  }), {
659
659
  viewTransitionOpts: J,
660
660
  flushSync: F === !0
661
- }), _ = ve.Pop, K = !1, ae = !1, he = !1, Oe = !1, Le = [];
661
+ }), L = ve.Pop, K = !1, ae = !1, he = !1, Oe = !1, Le = [];
662
662
  }
663
663
  async function nn(f, g) {
664
664
  if (typeof f == "number") {
@@ -669,25 +669,25 @@ function gi(e) {
669
669
  path: R,
670
670
  submission: N,
671
671
  error: F
672
- } = qr(d.v7_normalizeFormMethod, !1, S, g), H = w.location, P = Wt(w.location, R, g && g.state);
673
- P = fe({}, P, e.history.encodeLocation(P));
674
- let A = g && g.replace != null ? g.replace : void 0, L = ve.Push;
675
- A === !0 ? L = ve.Replace : A === !1 || N != null && je(N.formMethod) && N.formAction === w.location.pathname + w.location.search && (L = ve.Replace);
672
+ } = qr(d.v7_normalizeFormMethod, !1, S, g), H = w.location, O = Wt(w.location, R, g && g.state);
673
+ O = fe({}, O, e.history.encodeLocation(O));
674
+ let A = g && g.replace != null ? g.replace : void 0, P = ve.Push;
675
+ A === !0 ? P = ve.Replace : A === !1 || N != null && je(N.formMethod) && N.formAction === w.location.pathname + w.location.search && (P = ve.Replace);
676
676
  let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, Y = Br({
677
677
  currentLocation: H,
678
- nextLocation: P,
679
- historyAction: L
678
+ nextLocation: O,
679
+ historyAction: P
680
680
  });
681
681
  if (Y) {
682
682
  an(Y, {
683
683
  state: "blocked",
684
- location: P,
684
+ location: O,
685
685
  proceed() {
686
686
  an(Y, {
687
687
  state: "proceeding",
688
688
  proceed: void 0,
689
689
  reset: void 0,
690
- location: P
690
+ location: O
691
691
  }), nn(f, g);
692
692
  },
693
693
  reset() {
@@ -699,7 +699,7 @@ function gi(e) {
699
699
  });
700
700
  return;
701
701
  }
702
- return await Ze(L, P, {
702
+ return await Ze(P, O, {
703
703
  submission: N,
704
704
  // Send through the formData serialization error if we have one so we can
705
705
  // render at the right error boundary after we match routes
@@ -720,7 +720,7 @@ function gi(e) {
720
720
  });
721
721
  return;
722
722
  }
723
- Ze(_ || w.historyAction, w.navigation.location, {
723
+ Ze(L || w.historyAction, w.navigation.location, {
724
724
  overrideNavigation: w.navigation,
725
725
  // Proxy through any rending view transition
726
726
  enableViewTransition: ae === !0
@@ -728,7 +728,7 @@ function gi(e) {
728
728
  }
729
729
  }
730
730
  async function Ze(f, g, S) {
731
- B && B.abort(), B = null, _ = f, he = (S && S.startUninterruptedRevalidation) === !0, ka(w.location, w.matches), K = (S && S.preventScrollReset) === !0, ae = (S && S.enableViewTransition) === !0;
731
+ B && B.abort(), B = null, L = f, he = (S && S.startUninterruptedRevalidation) === !0, ka(w.location, w.matches), K = (S && S.preventScrollReset) === !0, ae = (S && S.enableViewTransition) === !0;
732
732
  let R = s || i, N = S && S.overrideNavigation, F = S != null && S.initialHydration && w.matches && w.matches.length > 0 && !x ? (
733
733
  // `matchRoutes()` has already been called if we're in here via `router.initialize()`
734
734
  w.matches
@@ -741,8 +741,8 @@ function gi(e) {
741
741
  });
742
742
  return;
743
743
  }
744
- let P = sn(F, R, g.pathname);
745
- if (P.active && P.matches && (F = P.matches), !F) {
744
+ let O = sn(F, R, g.pathname);
745
+ if (O.active && O.matches && (F = O.matches), !F) {
746
746
  let {
747
747
  error: le,
748
748
  notFoundMatches: Q,
@@ -760,14 +760,14 @@ function gi(e) {
760
760
  return;
761
761
  }
762
762
  B = new AbortController();
763
- let A = Rt(e.history, g, B.signal, S && S.submission), L;
763
+ let A = Rt(e.history, g, B.signal, S && S.submission), P;
764
764
  if (S && S.pendingError)
765
- L = [gt(F).route.id, {
765
+ P = [gt(F).route.id, {
766
766
  type: oe.error,
767
767
  error: S.pendingError
768
768
  }];
769
769
  else if (S && S.submission && je(S.submission.formMethod)) {
770
- let le = await j(A, g, S.submission, F, P.active, {
770
+ let le = await j(A, g, S.submission, F, O.active, {
771
771
  replace: S.replace,
772
772
  flushSync: H
773
773
  });
@@ -786,17 +786,17 @@ function gi(e) {
786
786
  return;
787
787
  }
788
788
  }
789
- F = le.matches || F, L = le.pendingActionResult, N = Zn(g, S.submission), H = !1, P.active = !1, A = Rt(e.history, A.url, A.signal);
789
+ F = le.matches || F, P = le.pendingActionResult, N = Zn(g, S.submission), H = !1, O.active = !1, A = Rt(e.history, A.url, A.signal);
790
790
  }
791
791
  let {
792
792
  shortCircuited: D,
793
793
  matches: J,
794
794
  loaderData: Y,
795
795
  errors: xe
796
- } = await V(A, g, F, P.active, N, S && S.submission, S && S.fetcherSubmission, S && S.replace, S && S.initialHydration === !0, H, L);
796
+ } = await V(A, g, F, O.active, N, S && S.submission, S && S.fetcherSubmission, S && S.replace, S && S.initialHydration === !0, H, P);
797
797
  D || (B = null, Qe(g, fe({
798
798
  matches: J || F
799
- }, no(L), {
799
+ }, no(P), {
800
800
  loaderData: Y,
801
801
  errors: xe
802
802
  })));
@@ -809,22 +809,22 @@ function gi(e) {
809
809
  }, {
810
810
  flushSync: F.flushSync === !0
811
811
  }), N) {
812
- let L = await ln(R, g.pathname, f.signal);
813
- if (L.type === "aborted")
812
+ let P = await ln(R, g.pathname, f.signal);
813
+ if (P.type === "aborted")
814
814
  return {
815
815
  shortCircuited: !0
816
816
  };
817
- if (L.type === "error") {
818
- let D = gt(L.partialMatches).route.id;
817
+ if (P.type === "error") {
818
+ let D = gt(P.partialMatches).route.id;
819
819
  return {
820
- matches: L.partialMatches,
820
+ matches: P.partialMatches,
821
821
  pendingActionResult: [D, {
822
822
  type: oe.error,
823
- error: L.error
823
+ error: P.error
824
824
  }]
825
825
  };
826
- } else if (L.matches)
827
- R = L.matches;
826
+ } else if (P.matches)
827
+ R = P.matches;
828
828
  else {
829
829
  let {
830
830
  notFoundMatches: D,
@@ -840,9 +840,9 @@ function gi(e) {
840
840
  };
841
841
  }
842
842
  }
843
- let P, A = jt(R, g);
843
+ let O, A = jt(R, g);
844
844
  if (!A.route.action && !A.route.lazy)
845
- P = {
845
+ O = {
846
846
  type: oe.error,
847
847
  error: Ae(405, {
848
848
  method: f.method,
@@ -850,36 +850,36 @@ function gi(e) {
850
850
  routeId: A.route.id
851
851
  })
852
852
  };
853
- else if (P = (await ue("action", w, f, [A], R, null))[A.route.id], f.signal.aborted)
853
+ else if (O = (await ue("action", w, f, [A], R, null))[A.route.id], f.signal.aborted)
854
854
  return {
855
855
  shortCircuited: !0
856
856
  };
857
- if (yt(P)) {
858
- let L;
859
- return F && F.replace != null ? L = F.replace : L = Xr(P.response.headers.get("Location"), new URL(f.url), l) === w.location.pathname + w.location.search, await Z(f, P, !0, {
857
+ if (yt(O)) {
858
+ let P;
859
+ return F && F.replace != null ? P = F.replace : P = Xr(O.response.headers.get("Location"), new URL(f.url), l) === w.location.pathname + w.location.search, await Z(f, O, !0, {
860
860
  submission: S,
861
- replace: L
861
+ replace: P
862
862
  }), {
863
863
  shortCircuited: !0
864
864
  };
865
865
  }
866
- if (lt(P))
866
+ if (lt(O))
867
867
  throw Ae(400, {
868
868
  type: "defer-action"
869
869
  });
870
- if (Ie(P)) {
871
- let L = gt(R, A.route.id);
872
- return (F && F.replace) !== !0 && (_ = ve.Push), {
870
+ if (Ie(O)) {
871
+ let P = gt(R, A.route.id);
872
+ return (F && F.replace) !== !0 && (L = ve.Push), {
873
873
  matches: R,
874
- pendingActionResult: [L.route.id, P]
874
+ pendingActionResult: [P.route.id, O]
875
875
  };
876
876
  }
877
877
  return {
878
878
  matches: R,
879
- pendingActionResult: [A.route.id, P]
879
+ pendingActionResult: [A.route.id, O]
880
880
  };
881
881
  }
882
- async function V(f, g, S, R, N, F, H, P, A, L, D) {
882
+ async function V(f, g, S, R, N, F, H, O, A, P, D) {
883
883
  let J = N || Zn(g, F), Y = F || H || ao(J), xe = !he && (!d.v7_partialHydration || !A);
884
884
  if (R) {
885
885
  if (xe) {
@@ -889,7 +889,7 @@ function gi(e) {
889
889
  }, ge !== void 0 ? {
890
890
  actionData: ge
891
891
  } : {}), {
892
- flushSync: L
892
+ flushSync: P
893
893
  });
894
894
  }
895
895
  let X = await ln(S, g.pathname, f.signal);
@@ -936,7 +936,7 @@ function gi(e) {
936
936
  }, no(D), X ? {
937
937
  fetchers: new Map(w.fetchers)
938
938
  } : {}), {
939
- flushSync: L
939
+ flushSync: P
940
940
  }), {
941
941
  shortCircuited: !0
942
942
  };
@@ -949,7 +949,7 @@ function gi(e) {
949
949
  ge !== void 0 && (X.actionData = ge);
950
950
  }
951
951
  me.length > 0 && (X.fetchers = z(me)), Ce(X, {
952
- flushSync: L
952
+ flushSync: P
953
953
  });
954
954
  }
955
955
  me.forEach((X) => {
@@ -969,13 +969,13 @@ function gi(e) {
969
969
  let Ge = dn(Ot);
970
970
  if (Ge)
971
971
  return await Z(f, Ge.result, !0, {
972
- replace: P
972
+ replace: O
973
973
  }), {
974
974
  shortCircuited: !0
975
975
  };
976
976
  if (Ge = dn(nt), Ge)
977
977
  return Pe.add(Ge.key), await Z(f, Ge.result, !0, {
978
- replace: P
978
+ replace: O
979
979
  }), {
980
980
  shortCircuited: !0
981
981
  };
@@ -1015,8 +1015,8 @@ function gi(e) {
1015
1015
  if (r)
1016
1016
  throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
1017
1017
  ot(f);
1018
- let N = (R && R.flushSync) === !0, F = s || i, H = or(w.location, w.matches, l, d.v7_prependBasename, S, d.v7_relativeSplatPath, g, R == null ? void 0 : R.relative), P = mt(F, H, l), A = sn(P, F, H);
1019
- if (A.active && A.matches && (P = A.matches), !P) {
1018
+ let N = (R && R.flushSync) === !0, F = s || i, H = or(w.location, w.matches, l, d.v7_prependBasename, S, d.v7_relativeSplatPath, g, R == null ? void 0 : R.relative), O = mt(F, H, l), A = sn(O, F, H);
1019
+ if (A.active && A.matches && (O = A.matches), !O) {
1020
1020
  tt(f, g, Ae(404, {
1021
1021
  pathname: H
1022
1022
  }), {
@@ -1025,7 +1025,7 @@ function gi(e) {
1025
1025
  return;
1026
1026
  }
1027
1027
  let {
1028
- path: L,
1028
+ path: P,
1029
1029
  submission: D,
1030
1030
  error: J
1031
1031
  } = qr(d.v7_normalizeFormMethod, !0, H, R);
@@ -1035,19 +1035,19 @@ function gi(e) {
1035
1035
  });
1036
1036
  return;
1037
1037
  }
1038
- let Y = jt(P, L), xe = (R && R.preventScrollReset) === !0;
1038
+ let Y = jt(O, P), xe = (R && R.preventScrollReset) === !0;
1039
1039
  if (D && je(D.formMethod)) {
1040
- W(f, g, L, Y, P, A.active, N, xe, D);
1040
+ W(f, g, P, Y, O, A.active, N, xe, D);
1041
1041
  return;
1042
1042
  }
1043
1043
  He.set(f, {
1044
1044
  routeId: g,
1045
- path: L
1046
- }), re(f, g, L, Y, P, A.active, N, xe, D);
1045
+ path: P
1046
+ }), re(f, g, P, Y, O, A.active, N, xe, D);
1047
1047
  }
1048
- async function W(f, g, S, R, N, F, H, P, A) {
1048
+ async function W(f, g, S, R, N, F, H, O, A) {
1049
1049
  ht(), He.delete(f);
1050
- function L(ye) {
1050
+ function P(ye) {
1051
1051
  if (!ye.route.action && !ye.route.lazy) {
1052
1052
  let Ct = Ae(405, {
1053
1053
  method: A.formMethod,
@@ -1060,7 +1060,7 @@ function gi(e) {
1060
1060
  }
1061
1061
  return !1;
1062
1062
  }
1063
- if (!F && L(R))
1063
+ if (!F && P(R))
1064
1064
  return;
1065
1065
  let D = w.fetchers.get(f);
1066
1066
  Ke(f, Mi(A, D), {
@@ -1077,7 +1077,7 @@ function gi(e) {
1077
1077
  });
1078
1078
  return;
1079
1079
  } else if (ye.matches) {
1080
- if (N = ye.matches, R = jt(N, S), L(R))
1080
+ if (N = ye.matches, R = jt(N, S), P(R))
1081
1081
  return;
1082
1082
  } else {
1083
1083
  tt(f, g, Ae(404, {
@@ -1107,7 +1107,7 @@ function gi(e) {
1107
1107
  } else
1108
1108
  return Pe.add(f), Ke(f, Ft(A)), Z(Y, Q, !1, {
1109
1109
  fetcherSubmission: A,
1110
- preventScrollReset: P
1110
+ preventScrollReset: O
1111
1111
  });
1112
1112
  if (Ie(Q)) {
1113
1113
  tt(f, g, Q.error);
@@ -1143,11 +1143,11 @@ function gi(e) {
1143
1143
  let ge = dn(un);
1144
1144
  if (ge)
1145
1145
  return Z(St, ge.result, !1, {
1146
- preventScrollReset: P
1146
+ preventScrollReset: O
1147
1147
  });
1148
1148
  if (ge = dn(X), ge)
1149
1149
  return Pe.add(ge.key), Z(St, ge.result, !1, {
1150
- preventScrollReset: P
1150
+ preventScrollReset: O
1151
1151
  });
1152
1152
  let {
1153
1153
  loaderData: Et,
@@ -1157,7 +1157,7 @@ function gi(e) {
1157
1157
  let ye = at(Q.data);
1158
1158
  w.fetchers.set(f, ye);
1159
1159
  }
1160
- Fr(Ge), w.navigation.state === "loading" && Ge > Se ? (I(_, "Expected pending action"), B && B.abort(), Qe(w.navigation.location, {
1160
+ Fr(Ge), w.navigation.state === "loading" && Ge > Se ? (I(L, "Expected pending action"), B && B.abort(), Qe(w.navigation.location, {
1161
1161
  matches: nt,
1162
1162
  loaderData: Et,
1163
1163
  errors: At,
@@ -1168,9 +1168,9 @@ function gi(e) {
1168
1168
  fetchers: new Map(w.fetchers)
1169
1169
  }), Oe = !1);
1170
1170
  }
1171
- async function re(f, g, S, R, N, F, H, P, A) {
1172
- let L = w.fetchers.get(f);
1173
- Ke(f, Ft(A, L ? L.data : void 0), {
1171
+ async function re(f, g, S, R, N, F, H, O, A) {
1172
+ let P = w.fetchers.get(f);
1173
+ Ke(f, Ft(A, P ? P.data : void 0), {
1174
1174
  flushSync: H
1175
1175
  });
1176
1176
  let D = new AbortController(), J = Rt(e.history, S, D.signal);
@@ -1207,7 +1207,7 @@ function gi(e) {
1207
1207
  return;
1208
1208
  } else {
1209
1209
  Pe.add(f), await Z(J, le, !1, {
1210
- preventScrollReset: P
1210
+ preventScrollReset: O
1211
1211
  });
1212
1212
  return;
1213
1213
  }
@@ -1223,12 +1223,12 @@ function gi(e) {
1223
1223
  submission: N,
1224
1224
  fetcherSubmission: F,
1225
1225
  preventScrollReset: H,
1226
- replace: P
1226
+ replace: O
1227
1227
  } = R === void 0 ? {} : R;
1228
1228
  g.response.headers.has("X-Remix-Revalidate") && (Oe = !0);
1229
1229
  let A = g.response.headers.get("Location");
1230
1230
  I(A, "Expected a Location header on the redirect Response"), A = Xr(A, new URL(f.url), l);
1231
- let L = Wt(w.location, A, {
1231
+ let P = Wt(w.location, A, {
1232
1232
  _isRedirect: !0
1233
1233
  });
1234
1234
  if (n) {
@@ -1242,12 +1242,12 @@ function gi(e) {
1242
1242
  $e(me.pathname, l) == null;
1243
1243
  }
1244
1244
  if (Q) {
1245
- P ? t.location.replace(A) : t.location.assign(A);
1245
+ O ? t.location.replace(A) : t.location.assign(A);
1246
1246
  return;
1247
1247
  }
1248
1248
  }
1249
1249
  B = null;
1250
- let D = P === !0 || g.response.headers.has("X-Remix-Replace") ? ve.Replace : ve.Push, {
1250
+ let D = O === !0 || g.response.headers.has("X-Remix-Replace") ? ve.Replace : ve.Push, {
1251
1251
  formMethod: J,
1252
1252
  formAction: Y,
1253
1253
  formEncType: xe
@@ -1255,7 +1255,7 @@ function gi(e) {
1255
1255
  !N && !F && J && Y && xe && (N = ao(w.navigation));
1256
1256
  let le = N || F;
1257
1257
  if (hi.has(g.response.status) && le && je(le.formMethod))
1258
- await Ze(D, L, {
1258
+ await Ze(D, P, {
1259
1259
  submission: fe({}, le, {
1260
1260
  formAction: A
1261
1261
  }),
@@ -1264,8 +1264,8 @@ function gi(e) {
1264
1264
  enableViewTransition: S ? ae : void 0
1265
1265
  });
1266
1266
  else {
1267
- let Q = Zn(L, N);
1268
- await Ze(D, L, {
1267
+ let Q = Zn(P, N);
1268
+ await Ze(D, P, {
1269
1269
  overrideNavigation: Q,
1270
1270
  // Send fetcher submissions through for shouldRevalidate
1271
1271
  fetcherSubmission: F,
@@ -1276,30 +1276,30 @@ function gi(e) {
1276
1276
  }
1277
1277
  }
1278
1278
  async function ue(f, g, S, R, N, F) {
1279
- let H, P = {};
1279
+ let H, O = {};
1280
1280
  try {
1281
1281
  H = await Si(c, f, g, S, R, N, F, a, o);
1282
1282
  } catch (A) {
1283
- return R.forEach((L) => {
1284
- P[L.route.id] = {
1283
+ return R.forEach((P) => {
1284
+ O[P.route.id] = {
1285
1285
  type: oe.error,
1286
1286
  error: A
1287
1287
  };
1288
- }), P;
1288
+ }), O;
1289
1289
  }
1290
- for (let [A, L] of Object.entries(H))
1291
- if (Ni(L)) {
1292
- let D = L.result;
1293
- P[A] = {
1290
+ for (let [A, P] of Object.entries(H))
1291
+ if (Ni(P)) {
1292
+ let D = P.result;
1293
+ O[A] = {
1294
1294
  type: oe.redirect,
1295
1295
  response: Ri(D, S, A, N, l, d.v7_relativeSplatPath)
1296
1296
  };
1297
1297
  } else
1298
- P[A] = await Ci(L);
1299
- return P;
1298
+ O[A] = await Ci(P);
1299
+ return O;
1300
1300
  }
1301
1301
  async function et(f, g, S, R, N) {
1302
- let F = f.matches, H = ue("loader", f, N, S, g, null), P = Promise.all(R.map(async (D) => {
1302
+ let F = f.matches, H = ue("loader", f, N, S, g, null), O = Promise.all(R.map(async (D) => {
1303
1303
  if (D.matches && D.match && D.controller) {
1304
1304
  let Y = (await ue("loader", f, Rt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
1305
1305
  return {
@@ -1314,10 +1314,10 @@ function gi(e) {
1314
1314
  })
1315
1315
  }
1316
1316
  });
1317
- })), A = await H, L = (await P).reduce((D, J) => Object.assign(D, J), {});
1318
- return await Promise.all([Li(g, A, N.signal, F, f.loaderData), Pi(g, L, R)]), {
1317
+ })), A = await H, P = (await O).reduce((D, J) => Object.assign(D, J), {});
1318
+ return await Promise.all([Li(g, A, N.signal, F, f.loaderData), Pi(g, P, R)]), {
1319
1319
  loaderResults: A,
1320
- fetcherResults: L
1320
+ fetcherResults: P
1321
1321
  };
1322
1322
  }
1323
1323
  function ht() {
@@ -1408,8 +1408,8 @@ function gi(e) {
1408
1408
  if (Ee.size === 0)
1409
1409
  return;
1410
1410
  Ee.size > 1 && be(!1, "A router only supports one blocker at a time");
1411
- let N = Array.from(Ee.entries()), [F, H] = N[N.length - 1], P = w.blockers.get(F);
1412
- if (!(P && P.state === "proceeding") && H({
1411
+ let N = Array.from(Ee.entries()), [F, H] = N[N.length - 1], O = w.blockers.get(F);
1412
+ if (!(O && O.state === "proceeding") && H({
1413
1413
  currentLocation: g,
1414
1414
  nextLocation: S,
1415
1415
  historyAction: R
@@ -1490,7 +1490,7 @@ function gi(e) {
1490
1490
  };
1491
1491
  let N = f;
1492
1492
  for (; ; ) {
1493
- let F = s == null, H = s || i, P = a;
1493
+ let F = s == null, H = s || i, O = a;
1494
1494
  try {
1495
1495
  await u({
1496
1496
  signal: S,
@@ -1498,7 +1498,7 @@ function gi(e) {
1498
1498
  matches: N,
1499
1499
  fetcherKey: R,
1500
1500
  patch: (D, J) => {
1501
- S.aborted || Yr(D, J, H, P, o);
1501
+ S.aborted || Yr(D, J, H, O, o);
1502
1502
  }
1503
1503
  });
1504
1504
  } catch (D) {
@@ -1520,13 +1520,13 @@ function gi(e) {
1520
1520
  type: "success",
1521
1521
  matches: A
1522
1522
  };
1523
- let L = gn(H, g, l, !0);
1524
- if (!L || N.length === L.length && N.every((D, J) => D.route.id === L[J].route.id))
1523
+ let P = gn(H, g, l, !0);
1524
+ if (!P || N.length === P.length && N.every((D, J) => D.route.id === P[J].route.id))
1525
1525
  return {
1526
1526
  type: "success",
1527
1527
  matches: null
1528
1528
  };
1529
- N = L;
1529
+ N = P;
1530
1530
  }
1531
1531
  }
1532
1532
  function xa(f) {
@@ -1708,27 +1708,27 @@ function Zr(e, t, n) {
1708
1708
  function Kr(e, t, n, r, o, a, i, s, l, c, u, d, m, v, p, h) {
1709
1709
  let y = h ? Ie(h[1]) ? h[1].error : h[1].data : void 0, k = e.createURL(t.location), b = e.createURL(o), x = n;
1710
1710
  a && t.errors ? x = Zr(n, Object.keys(t.errors)[0], !0) : h && Ie(h[1]) && (x = Zr(n, h[0]));
1711
- let M = h ? h[1].statusCode : void 0, T = i && M && M >= 400, U = x.filter((_, K) => {
1711
+ let _ = h ? h[1].statusCode : void 0, T = i && _ && _ >= 400, U = x.filter((L, K) => {
1712
1712
  let {
1713
1713
  route: B
1714
- } = _;
1714
+ } = L;
1715
1715
  if (B.lazy)
1716
1716
  return !0;
1717
1717
  if (B.loader == null)
1718
1718
  return !1;
1719
1719
  if (a)
1720
1720
  return ar(B, t.loaderData, t.errors);
1721
- if (vi(t.loaderData, t.matches[K], _) || l.some((te) => te === _.route.id))
1721
+ if (vi(t.loaderData, t.matches[K], L) || l.some((te) => te === L.route.id))
1722
1722
  return !0;
1723
- let ae = t.matches[K], ee = _;
1724
- return Gr(_, fe({
1723
+ let ae = t.matches[K], ee = L;
1724
+ return Gr(L, fe({
1725
1725
  currentUrl: k,
1726
1726
  currentParams: ae.params,
1727
1727
  nextUrl: b,
1728
1728
  nextParams: ee.params
1729
1729
  }, r, {
1730
1730
  actionResult: y,
1731
- actionStatus: M,
1731
+ actionStatus: _,
1732
1732
  defaultShouldRevalidate: T ? !1 : (
1733
1733
  // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
1734
1734
  s || k.pathname + k.search === b.pathname + b.search || // Search params affect all loaders
@@ -1736,22 +1736,22 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, m, v, p, h) {
1736
1736
  )
1737
1737
  }));
1738
1738
  }), w = [];
1739
- return d.forEach((_, K) => {
1740
- if (a || !n.some((he) => he.route.id === _.routeId) || u.has(K))
1739
+ return d.forEach((L, K) => {
1740
+ if (a || !n.some((he) => he.route.id === L.routeId) || u.has(K))
1741
1741
  return;
1742
- let B = mt(v, _.path, p);
1742
+ let B = mt(v, L.path, p);
1743
1743
  if (!B) {
1744
1744
  w.push({
1745
1745
  key: K,
1746
- routeId: _.routeId,
1747
- path: _.path,
1746
+ routeId: L.routeId,
1747
+ path: L.path,
1748
1748
  matches: null,
1749
1749
  match: null,
1750
1750
  controller: null
1751
1751
  });
1752
1752
  return;
1753
1753
  }
1754
- let ae = t.fetchers.get(K), ee = jt(B, _.path), te = !1;
1754
+ let ae = t.fetchers.get(K), ee = jt(B, L.path), te = !1;
1755
1755
  m.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Gr(ee, fe({
1756
1756
  currentUrl: k,
1757
1757
  currentParams: t.matches[t.matches.length - 1].params,
@@ -1759,12 +1759,12 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, m, v, p, h) {
1759
1759
  nextParams: n[n.length - 1].params
1760
1760
  }, r, {
1761
1761
  actionResult: y,
1762
- actionStatus: M,
1762
+ actionStatus: _,
1763
1763
  defaultShouldRevalidate: T ? !1 : s
1764
1764
  })), te && w.push({
1765
1765
  key: K,
1766
- routeId: _.routeId,
1767
- path: _.path,
1766
+ routeId: L.routeId,
1767
+ path: L.path,
1768
1768
  matches: B,
1769
1769
  match: ee,
1770
1770
  controller: new AbortController()
@@ -3039,20 +3039,20 @@ function Td(e) {
3039
3039
  isTransitioning: !1
3040
3040
  }), [u, d] = C.useState(), [m, v] = C.useState(), [p, h] = C.useState(), y = C.useRef(/* @__PURE__ */ new Map()), {
3041
3041
  v7_startTransition: k
3042
- } = r || {}, b = C.useCallback((_) => {
3043
- k ? bs(_) : _();
3044
- }, [k]), x = C.useCallback((_, K) => {
3042
+ } = r || {}, b = C.useCallback((L) => {
3043
+ k ? bs(L) : L();
3044
+ }, [k]), x = C.useCallback((L, K) => {
3045
3045
  let {
3046
3046
  deletedFetchers: B,
3047
3047
  flushSync: ae,
3048
3048
  viewTransitionOpts: ee
3049
3049
  } = K;
3050
- _.fetchers.forEach((he, Oe) => {
3050
+ L.fetchers.forEach((he, Oe) => {
3051
3051
  he.data !== void 0 && y.current.set(Oe, he.data);
3052
3052
  }), B.forEach((he) => y.current.delete(he));
3053
3053
  let te = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
3054
3054
  if (!ee || te) {
3055
- ae ? It(() => a(_)) : b(() => a(_));
3055
+ ae ? It(() => a(L)) : b(() => a(L));
3056
3056
  return;
3057
3057
  }
3058
3058
  if (ae) {
@@ -3065,7 +3065,7 @@ function Td(e) {
3065
3065
  });
3066
3066
  });
3067
3067
  let he = n.window.document.startViewTransition(() => {
3068
- It(() => a(_));
3068
+ It(() => a(L));
3069
3069
  });
3070
3070
  he.finished.finally(() => {
3071
3071
  It(() => {
@@ -3077,10 +3077,10 @@ function Td(e) {
3077
3077
  return;
3078
3078
  }
3079
3079
  m ? (u && u.resolve(), m.skipTransition(), h({
3080
- state: _,
3080
+ state: L,
3081
3081
  currentLocation: ee.currentLocation,
3082
3082
  nextLocation: ee.nextLocation
3083
- })) : (s(_), c({
3083
+ })) : (s(L), c({
3084
3084
  isTransitioning: !0,
3085
3085
  flushSync: !1,
3086
3086
  currentLocation: ee.currentLocation,
@@ -3091,8 +3091,8 @@ function Td(e) {
3091
3091
  l.isTransitioning && !l.flushSync && d(new Ss());
3092
3092
  }, [l]), C.useEffect(() => {
3093
3093
  if (u && i && n.window) {
3094
- let _ = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
3095
- b(() => a(_)), await K;
3094
+ let L = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
3095
+ b(() => a(L)), await K;
3096
3096
  });
3097
3097
  B.finished.finally(() => {
3098
3098
  d(void 0), v(void 0), s(void 0), c({
@@ -3112,25 +3112,25 @@ function Td(e) {
3112
3112
  }, [l.isTransitioning, p]), C.useEffect(() => {
3113
3113
  process.env.NODE_ENV !== "production" && be(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
3114
3114
  }, []);
3115
- let M = C.useMemo(() => ({
3115
+ let _ = C.useMemo(() => ({
3116
3116
  createHref: n.createHref,
3117
3117
  encodeLocation: n.encodeLocation,
3118
- go: (_) => n.navigate(_),
3119
- push: (_, K, B) => n.navigate(_, {
3118
+ go: (L) => n.navigate(L),
3119
+ push: (L, K, B) => n.navigate(L, {
3120
3120
  state: K,
3121
3121
  preventScrollReset: B == null ? void 0 : B.preventScrollReset
3122
3122
  }),
3123
- replace: (_, K, B) => n.navigate(_, {
3123
+ replace: (L, K, B) => n.navigate(L, {
3124
3124
  replace: !0,
3125
3125
  state: K,
3126
3126
  preventScrollReset: B == null ? void 0 : B.preventScrollReset
3127
3127
  })
3128
3128
  }), [n]), T = n.basename || "/", U = C.useMemo(() => ({
3129
3129
  router: n,
3130
- navigator: M,
3130
+ navigator: _,
3131
3131
  static: !1,
3132
3132
  basename: T
3133
- }), [n, M, T]), w = C.useMemo(() => ({
3133
+ }), [n, _, T]), w = C.useMemo(() => ({
3134
3134
  v7_relativeSplatPath: n.future.v7_relativeSplatPath
3135
3135
  }), [n.future.v7_relativeSplatPath]);
3136
3136
  return C.useEffect(() => es(r, n.future), [r, n.future]), /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(_t.Provider, {
@@ -3145,7 +3145,7 @@ function Td(e) {
3145
3145
  basename: T,
3146
3146
  location: o.location,
3147
3147
  navigationType: o.historyAction,
3148
- navigator: M,
3148
+ navigator: _,
3149
3149
  future: w
3150
3150
  }, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ C.createElement(Es, {
3151
3151
  routes: n.routes,
@@ -3179,8 +3179,8 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3179
3179
  } = C.useContext(ze), p, h = !1;
3180
3180
  if (typeof c == "string" && ks.test(c) && (p = c, Rs))
3181
3181
  try {
3182
- let x = new URL(window.location.href), M = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), T = $e(M.pathname, v);
3183
- M.origin === x.origin && T != null ? c = T + M.search + M.hash : h = !0;
3182
+ let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), T = $e(_.pathname, v);
3183
+ _.origin === x.origin && T != null ? c = T + _.search + _.hash : h = !0;
3184
3184
  } catch {
3185
3185
  process.env.NODE_ENV !== "production" && be(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
3186
3186
  }
@@ -3225,16 +3225,16 @@ const xs = /* @__PURE__ */ C.forwardRef(function(t, n) {
3225
3225
  basename: y
3226
3226
  } = C.useContext(ze), k = p != null && // Conditional usage is OK here because the usage of a data router is static
3227
3227
  // eslint-disable-next-line react-hooks/rules-of-hooks
3228
- Ds(m) && c === !0, b = h.encodeLocation ? h.encodeLocation(m).pathname : m.pathname, x = v.pathname, M = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
3229
- o || (x = x.toLowerCase(), M = M ? M.toLowerCase() : null, b = b.toLowerCase()), M && y && (M = $e(M, y) || M);
3228
+ Ds(m) && c === !0, b = h.encodeLocation ? h.encodeLocation(m).pathname : m.pathname, x = v.pathname, _ = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
3229
+ o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, b = b.toLowerCase()), _ && y && (_ = $e(_, y) || _);
3230
3230
  const T = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
3231
- let U = x === b || !i && x.startsWith(b) && x.charAt(T) === "/", w = M != null && (M === b || !i && M.startsWith(b) && M.charAt(b.length) === "/"), _ = {
3231
+ let U = x === b || !i && x.startsWith(b) && x.charAt(T) === "/", w = _ != null && (_ === b || !i && _.startsWith(b) && _.charAt(b.length) === "/"), L = {
3232
3232
  isActive: U,
3233
3233
  isPending: w,
3234
3234
  isTransitioning: k
3235
3235
  }, K = U ? r : void 0, B;
3236
- typeof a == "function" ? B = a(_) : B = [a, U ? "active" : null, w ? "pending" : null, k ? "transitioning" : null].filter(Boolean).join(" ");
3237
- let ae = typeof s == "function" ? s(_) : s;
3236
+ typeof a == "function" ? B = a(L) : B = [a, U ? "active" : null, w ? "pending" : null, k ? "transitioning" : null].filter(Boolean).join(" ");
3237
+ let ae = typeof s == "function" ? s(L) : s;
3238
3238
  return /* @__PURE__ */ C.createElement(Wo, ut({}, d, {
3239
3239
  "aria-current": K,
3240
3240
  className: B,
@@ -3242,7 +3242,7 @@ const xs = /* @__PURE__ */ C.forwardRef(function(t, n) {
3242
3242
  style: ae,
3243
3243
  to: l,
3244
3244
  viewTransition: c
3245
- }), typeof u == "function" ? u(_) : u);
3245
+ }), typeof u == "function" ? u(L) : u);
3246
3246
  });
3247
3247
  process.env.NODE_ENV !== "production" && (xs.displayName = "NavLink");
3248
3248
  const Ns = /* @__PURE__ */ C.forwardRef((e, t) => {
@@ -3263,10 +3263,10 @@ const Ns = /* @__PURE__ */ C.forwardRef((e, t) => {
3263
3263
  }), y = s.toLowerCase() === "get" ? "get" : "post", k = (b) => {
3264
3264
  if (c && c(b), b.defaultPrevented) return;
3265
3265
  b.preventDefault();
3266
- let x = b.nativeEvent.submitter, M = (x == null ? void 0 : x.getAttribute("formmethod")) || s;
3266
+ let x = b.nativeEvent.submitter, _ = (x == null ? void 0 : x.getAttribute("formmethod")) || s;
3267
3267
  p(x || b.currentTarget, {
3268
3268
  fetcherKey: n,
3269
- method: M,
3269
+ method: _,
3270
3270
  navigate: r,
3271
3271
  replace: a,
3272
3272
  state: i,
@@ -3858,10 +3858,10 @@ function Fn(e, t, n) {
3858
3858
  if (E.endsWith(h, "{}"))
3859
3859
  h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
3860
3860
  else if (E.isArray(p) && Tl(p) || (E.isFileList(p) || E.endsWith(h, "[]")) && (k = E.toArray(p)))
3861
- return h = oa(h), k.forEach(function(x, M) {
3861
+ return h = oa(h), k.forEach(function(x, _) {
3862
3862
  !(E.isUndefined(x) || x === null) && t.append(
3863
3863
  // eslint-disable-next-line no-nested-ternary
3864
- i === !0 ? mo([h], M, a) : i === null ? h : h + "[]",
3864
+ i === !0 ? mo([h], _, a) : i === null ? h : h + "[]",
3865
3865
  c(x)
3866
3866
  );
3867
3867
  }), !1;
@@ -4570,16 +4570,16 @@ const fa = (e) => {
4570
4570
  }, y.onerror = function() {
4571
4571
  r(new $("Network Error", $.ERR_NETWORK, e, y)), y = null;
4572
4572
  }, y.ontimeout = function() {
4573
- let M = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
4573
+ let _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
4574
4574
  const T = o.transitional || sa;
4575
- o.timeoutErrorMessage && (M = o.timeoutErrorMessage), r(new $(
4576
- M,
4575
+ o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), r(new $(
4576
+ _,
4577
4577
  T.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
4578
4578
  e,
4579
4579
  y
4580
4580
  )), y = null;
4581
- }, a === void 0 && i.setContentType(null), "setRequestHeader" in y && E.forEach(i.toJSON(), function(M, T) {
4582
- y.setRequestHeader(T, M);
4581
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in y && E.forEach(i.toJSON(), function(_, T) {
4582
+ y.setRequestHeader(T, _);
4583
4583
  }), E.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), s && s !== "json" && (y.responseType = o.responseType), c && ([m, p] = Nn(c, !0), y.addEventListener("progress", m)), l && y.upload && ([d, v] = Nn(l), y.upload.addEventListener("progress", d), y.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (u = (x) => {
4584
4584
  y && (r(!x || x.type ? new Pt(null, e, y) : x), y.abort(), y = null);
4585
4585
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
@@ -4742,11 +4742,11 @@ const uc = async (e) => {
4742
4742
  duplex: "half"
4743
4743
  }), U;
4744
4744
  if (E.isFormData(r) && (U = T.headers.get("content-type")) && u.setContentType(U), T.body) {
4745
- const [w, _] = wo(
4745
+ const [w, L] = wo(
4746
4746
  y,
4747
4747
  Nn(bo(l))
4748
4748
  );
4749
- r = Eo(T.body, Co, w, _);
4749
+ r = Eo(T.body, Co, w, L);
4750
4750
  }
4751
4751
  }
4752
4752
  E.isString(d) || (d = d ? "include" : "omit");
@@ -4767,22 +4767,22 @@ const uc = async (e) => {
4767
4767
  ["status", "statusText", "headers"].forEach((K) => {
4768
4768
  T[K] = b[K];
4769
4769
  });
4770
- const U = E.toFiniteNumber(b.headers.get("content-length")), [w, _] = s && wo(
4770
+ const U = E.toFiniteNumber(b.headers.get("content-length")), [w, L] = s && wo(
4771
4771
  U,
4772
4772
  Nn(bo(s), !0)
4773
4773
  ) || [];
4774
4774
  b = new Response(
4775
4775
  Eo(b.body, Co, w, () => {
4776
- _ && _(), h && h();
4776
+ L && L(), h && h();
4777
4777
  }),
4778
4778
  T
4779
4779
  );
4780
4780
  }
4781
4781
  c = c || "text";
4782
- let M = await Tn[E.findKey(Tn, c) || "text"](b, e);
4782
+ let _ = await Tn[E.findKey(Tn, c) || "text"](b, e);
4783
4783
  return !x && h && h(), await new Promise((T, U) => {
4784
4784
  ua(T, U, {
4785
- data: M,
4785
+ data: _,
4786
4786
  headers: Fe.from(b.headers),
4787
4787
  status: b.status,
4788
4788
  statusText: b.statusText,
@@ -5260,10 +5260,13 @@ const {
5260
5260
  let k = "Something Went Wrong";
5261
5261
  y && (k = y.errors[0]);
5262
5262
  const b = (v = h.response) == null ? void 0 : v.status;
5263
- if (b === 401) {
5264
- const { logoutCustomer: M } = await import("./charge-CYkPC1xJ.js").then((T) => T._);
5265
- await M(), window.location.reload();
5266
- }
5263
+ if (b === 401)
5264
+ try {
5265
+ const _ = await import("./charge-Nfq6BBT0.js").then((T) => T._);
5266
+ _ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
5267
+ } catch (_) {
5268
+ console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
5269
+ }
5267
5270
  const x = new vc(k, (b == null ? void 0 : b.toString()) || "400");
5268
5271
  throw x.response = h.response, x;
5269
5272
  }
@@ -5373,14 +5376,14 @@ const {
5373
5376
  }
5374
5377
  }, xc);
5375
5378
  }, m = async () => {
5376
- var k, b, x, M;
5379
+ var k, b, x, _;
5377
5380
  const p = `${window.location.hostname}${r}`, h = pr(zt), y = i();
5378
5381
  try {
5379
5382
  let T = h == null ? void 0 : h.p;
5380
5383
  T || (T = await s());
5381
5384
  let U = (k = h == null ? void 0 : h.s) == null ? void 0 : k.i;
5382
- const w = Number(((b = h == null ? void 0 : h.s) == null ? void 0 : b.u) || ((x = h == null ? void 0 : h.s) == null ? void 0 : x.c)), _ = !U || y - w > Tc;
5383
- (!U || _) && (U = await l(T));
5385
+ const w = Number(((b = h == null ? void 0 : h.s) == null ? void 0 : b.u) || ((x = h == null ? void 0 : h.s) == null ? void 0 : x.c)), L = !U || y - w > Tc;
5386
+ (!U || L) && (U = await l(T));
5384
5387
  const K = Number((h == null ? void 0 : h.lu) || 0), B = y - K > Nc, ae = await c(
5385
5388
  T,
5386
5389
  U,
@@ -5390,7 +5393,7 @@ const {
5390
5393
  p: T,
5391
5394
  s: {
5392
5395
  i: U,
5393
- c: ((M = h == null ? void 0 : h.s) == null ? void 0 : M.c) ?? y.toString(),
5396
+ c: ((_ = h == null ? void 0 : h.s) == null ? void 0 : _.c) ?? y.toString(),
5394
5397
  u: y.toString()
5395
5398
  },
5396
5399
  l: ae,
@@ -6000,11 +6003,11 @@ const gr = (e) => (t) => {
6000
6003
  return [!1, void 0];
6001
6004
  }).then((b) => {
6002
6005
  var x;
6003
- const [M, T] = b;
6006
+ const [_, T] = b;
6004
6007
  if (v = a.merge(
6005
6008
  T,
6006
6009
  (x = r()) != null ? x : m
6007
- ), n(v, !0), M)
6010
+ ), n(v, !0), _)
6008
6011
  return u();
6009
6012
  }).then(() => {
6010
6013
  k == null || k(v, void 0), v = r(), i = !0, l.forEach((b) => b(v));
@@ -6523,7 +6526,7 @@ const gr = (e) => (t) => {
6523
6526
  }, wf = [
6524
6527
  {
6525
6528
  value: "4:3",
6526
- addon: /* @__PURE__ */ O(
6529
+ addon: /* @__PURE__ */ M(
6527
6530
  "div",
6528
6531
  {
6529
6532
  style: {
@@ -6533,7 +6536,7 @@ const gr = (e) => (t) => {
6533
6536
  alignItems: "center",
6534
6537
  justifyContent: "center"
6535
6538
  },
6536
- children: /* @__PURE__ */ O(
6539
+ children: /* @__PURE__ */ M(
6537
6540
  "div",
6538
6541
  {
6539
6542
  style: {
@@ -6549,7 +6552,7 @@ const gr = (e) => (t) => {
6549
6552
  },
6550
6553
  {
6551
6554
  value: "16:9",
6552
- addon: /* @__PURE__ */ O(
6555
+ addon: /* @__PURE__ */ M(
6553
6556
  "div",
6554
6557
  {
6555
6558
  style: {
@@ -6559,7 +6562,7 @@ const gr = (e) => (t) => {
6559
6562
  alignItems: "center",
6560
6563
  justifyContent: "center"
6561
6564
  },
6562
- children: /* @__PURE__ */ O(
6565
+ children: /* @__PURE__ */ M(
6563
6566
  "div",
6564
6567
  {
6565
6568
  style: {
@@ -6575,7 +6578,7 @@ const gr = (e) => (t) => {
6575
6578
  },
6576
6579
  {
6577
6580
  value: "9:16",
6578
- addon: /* @__PURE__ */ O(
6581
+ addon: /* @__PURE__ */ M(
6579
6582
  "div",
6580
6583
  {
6581
6584
  style: {
@@ -6585,7 +6588,7 @@ const gr = (e) => (t) => {
6585
6588
  alignItems: "center",
6586
6589
  justifyContent: "center"
6587
6590
  },
6588
- children: /* @__PURE__ */ O(
6591
+ children: /* @__PURE__ */ M(
6589
6592
  "div",
6590
6593
  {
6591
6594
  style: {
@@ -6601,7 +6604,7 @@ const gr = (e) => (t) => {
6601
6604
  },
6602
6605
  {
6603
6606
  value: "1:1",
6604
- addon: /* @__PURE__ */ O(
6607
+ addon: /* @__PURE__ */ M(
6605
6608
  "div",
6606
6609
  {
6607
6610
  style: {
@@ -6611,7 +6614,7 @@ const gr = (e) => (t) => {
6611
6614
  alignItems: "center",
6612
6615
  justifyContent: "center"
6613
6616
  },
6614
- children: /* @__PURE__ */ O(
6617
+ children: /* @__PURE__ */ M(
6615
6618
  "div",
6616
6619
  {
6617
6620
  style: {
@@ -6839,13 +6842,13 @@ const ba = se((e, t) => ({
6839
6842
  setShowTooltip: (t) => e({ showTooltip: t })
6840
6843
  })), Wc = "_loader_jr7a4_1", qc = {
6841
6844
  loader: Wc
6842
- }, kf = () => /* @__PURE__ */ O("div", { className: qc.loader }), Zc = "_tooltip_4hruj_1", Kc = {
6845
+ }, kf = () => /* @__PURE__ */ M("div", { className: qc.loader }), Zc = "_tooltip_4hruj_1", Kc = {
6843
6846
  tooltip: Zc
6844
6847
  }, xf = (e) => {
6845
6848
  const { text: t } = e, { setShowTooltip: n } = Jc();
6846
6849
  return _e.useEffect(() => (n(!0), () => {
6847
6850
  n(!1);
6848
- }), []), /* @__PURE__ */ O("div", { className: Kc.tooltip, children: t });
6851
+ }), []), /* @__PURE__ */ M("div", { className: Kc.tooltip, children: t });
6849
6852
  }, Nf = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
6850
6853
  function Tf(e, t) {
6851
6854
  if (!t || !t[e])
@@ -6879,7 +6882,7 @@ const Gc = (e, t, n, r, o, a, i) => {
6879
6882
  submodal: pu
6880
6883
  }, Lf = ({ children: e, positionTop: t, positionLeft: n }) => {
6881
6884
  const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } = ba();
6882
- return r ? /* @__PURE__ */ O(
6885
+ return r ? /* @__PURE__ */ M(
6883
6886
  "div",
6884
6887
  {
6885
6888
  className: vr.wrapper,
@@ -6898,7 +6901,7 @@ const Gc = (e, t, n, r, o, a, i) => {
6898
6901
  ) : null;
6899
6902
  }, Pf = ({ children: e }) => {
6900
6903
  const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } = ba();
6901
- return t ? /* @__PURE__ */ O(
6904
+ return t ? /* @__PURE__ */ M(
6902
6905
  "div",
6903
6906
  {
6904
6907
  className: Ve(vr.wrapper, vr.submodal),
@@ -6989,11 +6992,11 @@ const Ju = (e) => {
6989
6992
  }, x = (T) => {
6990
6993
  const U = T.target.value;
6991
6994
  l(U), tr(U) && (n(U), p(U), h(k));
6992
- }, M = () => {
6995
+ }, _ = () => {
6993
6996
  tr(s) || l(t);
6994
6997
  };
6995
6998
  return /* @__PURE__ */ Re("div", { className: q.content, children: [
6996
- /* @__PURE__ */ O(
6999
+ /* @__PURE__ */ M(
6997
7000
  "span",
6998
7001
  {
6999
7002
  className: Ve(q.name, {
@@ -7008,7 +7011,7 @@ const Ju = (e) => {
7008
7011
  className: q.label,
7009
7012
  onClick: (T) => T.stopPropagation(),
7010
7013
  children: [
7011
- /* @__PURE__ */ O(
7014
+ /* @__PURE__ */ M(
7012
7015
  "div",
7013
7016
  {
7014
7017
  className: q.colorValue,
@@ -7020,13 +7023,13 @@ const Ju = (e) => {
7020
7023
  onClick: i ? void 0 : b
7021
7024
  }
7022
7025
  ),
7023
- /* @__PURE__ */ O(
7026
+ /* @__PURE__ */ M(
7024
7027
  "input",
7025
7028
  {
7026
7029
  type: "text",
7027
7030
  value: s.includes("linear-gradient") ? s : s.toUpperCase(),
7028
7031
  onChange: x,
7029
- onBlur: M,
7032
+ onBlur: _,
7030
7033
  className: q.input,
7031
7034
  style: {
7032
7035
  textTransform: s.includes("linear-gradient") ? "none" : "uppercase"
@@ -7059,11 +7062,11 @@ const Ju = (e) => {
7059
7062
  isGradient: k,
7060
7063
  setIsGradient: b,
7061
7064
  gradientDirection: x,
7062
- setGradientDirection: M,
7065
+ setGradientDirection: _,
7063
7066
  hue2: T,
7064
7067
  saturation2: U,
7065
7068
  brightness2: w,
7066
- alpha2: _,
7069
+ alpha2: L,
7067
7070
  setHue2: K,
7068
7071
  setSaturation2: B,
7069
7072
  setBrightness2: ae,
@@ -7083,7 +7086,7 @@ const Ju = (e) => {
7083
7086
  if (k)
7084
7087
  if (te === 1) {
7085
7088
  u(j), d(V), m(ne), v(z);
7086
- const G = ke(j, V, ne, z), W = ke(T, U, w, _), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7089
+ const G = ke(j, V, ne, z), W = ke(T, U, w, L), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7087
7090
  p(Z), h(Z);
7088
7091
  } else {
7089
7092
  K(j), B(V), ae(ne), ee(z);
@@ -7096,7 +7099,7 @@ const Ju = (e) => {
7096
7099
  }
7097
7100
  }, we = (j, V, ne) => {
7098
7101
  const { width: z, height: G } = ne.getBoundingClientRect(), W = Math.max(0, Math.min(j / z * 100, 100)), re = Math.max(0, Math.min(100 - V / G * 100, 100));
7099
- k ? te === 1 ? (d(W), m(re), Se(o, W, re, s)) : (B(W), ae(re), Se(T, W, re, _)) : (d(W), m(re), Se(o, W, re, s));
7102
+ k ? te === 1 ? (d(W), m(re), Se(o, W, re, s)) : (B(W), ae(re), Se(T, W, re, L)) : (d(W), m(re), Se(o, W, re, s));
7100
7103
  }, Pe = (j) => {
7101
7104
  const { offsetX: V, offsetY: ne } = j.nativeEvent;
7102
7105
  c(!0), we(V, ne, j.currentTarget);
@@ -7146,7 +7149,7 @@ const Ju = (e) => {
7146
7149
  const z = j(n);
7147
7150
  if (z) {
7148
7151
  const { angle: G, col1: W, col2: re } = z, Z = V(W), ue = V(re);
7149
- b(!0), M(G === "0deg" ? "vertical" : "horizontal"), u(Z.h), d(Z.s), m(Z.b), v(Z.a), K(ue.h), B(ue.s), ae(ue.b), ee(ue.a), he(1);
7152
+ b(!0), _(G === "0deg" ? "vertical" : "horizontal"), u(Z.h), d(Z.s), m(Z.b), v(Z.a), K(ue.h), B(ue.s), ae(ue.b), ee(ue.a), he(1);
7150
7153
  }
7151
7154
  } else if (n) {
7152
7155
  const G = function(re) {
@@ -7158,7 +7161,7 @@ const Ju = (e) => {
7158
7161
  }, [
7159
7162
  n,
7160
7163
  b,
7161
- M,
7164
+ _,
7162
7165
  u,
7163
7166
  d,
7164
7167
  m,
@@ -7170,7 +7173,7 @@ const Ju = (e) => {
7170
7173
  he
7171
7174
  ]), _e.useEffect(() => {
7172
7175
  let j, V, ne, z;
7173
- k ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = T, V = U, ne = w, z = _) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
7176
+ k ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = T, V = U, ne = w, z = L) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
7174
7177
  }, [
7175
7178
  k,
7176
7179
  x,
@@ -7182,7 +7185,7 @@ const Ju = (e) => {
7182
7185
  T,
7183
7186
  U,
7184
7187
  w,
7185
- _
7188
+ L
7186
7189
  ]), _e.useEffect(() => {
7187
7190
  const j = (ne) => He(ne), V = () => ie();
7188
7191
  return l ? (document.addEventListener("mousemove", j), document.addEventListener("mouseup", V)) : (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V)), () => {
@@ -7193,7 +7196,7 @@ const Ju = (e) => {
7193
7196
  if (!k)
7194
7197
  y(t);
7195
7198
  else {
7196
- const j = ke(o, a, i, s), V = ke(T, U, w, _), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7199
+ const j = ke(o, a, i, s), V = ke(T, U, w, L), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7197
7200
  y(z);
7198
7201
  }
7199
7202
  r(!1);
@@ -7201,7 +7204,7 @@ const Ju = (e) => {
7201
7204
  function Me() {
7202
7205
  r(!1), p(n);
7203
7206
  }
7204
- const Ee = k ? te === 1 ? o : T : o, ft = k ? te === 1 ? a : U : a, en = k ? te === 1 ? i : w : i, Vn = k ? te === 1 ? s : _ : s, { r: tn, g: Ce, b: Qe } = qe(Ee, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ce}, ${Qe}, 0), rgba(${tn}, ${Ce}, ${Qe}, 1))`, rn = ke(o, a, i, s), Ze = ke(T, U, w, _);
7207
+ const Ee = k ? te === 1 ? o : T : o, ft = k ? te === 1 ? a : U : a, en = k ? te === 1 ? i : w : i, Vn = k ? te === 1 ? s : L : s, { r: tn, g: Ce, b: Qe } = qe(Ee, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ce}, ${Qe}, 0), rgba(${tn}, ${Ce}, ${Qe}, 1))`, rn = ke(o, a, i, s), Ze = ke(T, U, w, L);
7205
7208
  return /* @__PURE__ */ Re(
7206
7209
  "div",
7207
7210
  {
@@ -7212,7 +7215,7 @@ const Ju = (e) => {
7212
7215
  left: `${e.left}px`
7213
7216
  },
7214
7217
  children: [
7215
- /* @__PURE__ */ O("h2", { className: q.title, children: "Color" }),
7218
+ /* @__PURE__ */ M("h2", { className: q.title, children: "Color" }),
7216
7219
  Oe && /* @__PURE__ */ Re("div", { className: q.colorTypes, children: [
7217
7220
  /* @__PURE__ */ Re(
7218
7221
  "div",
@@ -7220,7 +7223,7 @@ const Ju = (e) => {
7220
7223
  className: Ve(q.colorType, { [q.colorTypeActive]: !k }),
7221
7224
  onClick: () => b(!1),
7222
7225
  children: [
7223
- /* @__PURE__ */ O(
7226
+ /* @__PURE__ */ M(
7224
7227
  "div",
7225
7228
  {
7226
7229
  style: {
@@ -7241,7 +7244,7 @@ const Ju = (e) => {
7241
7244
  className: Ve(q.colorType, { [q.colorTypeActive]: k }),
7242
7245
  onClick: () => b(!0),
7243
7246
  children: [
7244
- /* @__PURE__ */ O(
7247
+ /* @__PURE__ */ M(
7245
7248
  "div",
7246
7249
  {
7247
7250
  style: {
@@ -7258,7 +7261,7 @@ const Ju = (e) => {
7258
7261
  )
7259
7262
  ] }),
7260
7263
  k && Oe && /* @__PURE__ */ Re("div", { className: q.colorsWrapper, children: [
7261
- /* @__PURE__ */ O(
7264
+ /* @__PURE__ */ M(
7262
7265
  "div",
7263
7266
  {
7264
7267
  className: q.colors,
@@ -7267,7 +7270,7 @@ const Ju = (e) => {
7267
7270
  }
7268
7271
  }
7269
7272
  ),
7270
- /* @__PURE__ */ O(
7273
+ /* @__PURE__ */ M(
7271
7274
  "div",
7272
7275
  {
7273
7276
  className: Ve(q.color, { [q.colorActive]: te === 1 }),
@@ -7275,7 +7278,7 @@ const Ju = (e) => {
7275
7278
  style: { background: rn }
7276
7279
  }
7277
7280
  ),
7278
- /* @__PURE__ */ O(
7281
+ /* @__PURE__ */ M(
7279
7282
  "div",
7280
7283
  {
7281
7284
  className: Ve(q.color, { [q.colorActive]: te === 2 }),
@@ -7284,7 +7287,7 @@ const Ju = (e) => {
7284
7287
  }
7285
7288
  )
7286
7289
  ] }),
7287
- /* @__PURE__ */ O(
7290
+ /* @__PURE__ */ M(
7288
7291
  "div",
7289
7292
  {
7290
7293
  className: q.colorMap,
@@ -7295,7 +7298,7 @@ const Ju = (e) => {
7295
7298
  linear-gradient(to right, hsl(${Ee}, 100%, 100%), hsl(${Ee}, 100%, 50%))
7296
7299
  `
7297
7300
  },
7298
- children: /* @__PURE__ */ O(
7301
+ children: /* @__PURE__ */ M(
7299
7302
  "div",
7300
7303
  {
7301
7304
  className: q.indicator,
@@ -7309,14 +7312,14 @@ const Ju = (e) => {
7309
7312
  )
7310
7313
  }
7311
7314
  ),
7312
- /* @__PURE__ */ O(
7315
+ /* @__PURE__ */ M(
7313
7316
  "div",
7314
7317
  {
7315
7318
  className: q.hueSlider,
7316
7319
  style: {
7317
7320
  bottom: Le ? k ? "225px" : "150px" : k ? "175px" : "100px"
7318
7321
  },
7319
- children: /* @__PURE__ */ O(
7322
+ children: /* @__PURE__ */ M(
7320
7323
  "input",
7321
7324
  {
7322
7325
  type: "range",
@@ -7325,7 +7328,7 @@ const Ju = (e) => {
7325
7328
  value: Ee,
7326
7329
  onChange: (j) => {
7327
7330
  const V = Number(j.target.value);
7328
- k ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, _) : (u(V), Se(V, a, i, s));
7331
+ k ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, L) : (u(V), Se(V, a, i, s));
7329
7332
  },
7330
7333
  className: q.slider
7331
7334
  }
@@ -7340,15 +7343,15 @@ const Ju = (e) => {
7340
7343
  bottom: Le ? k ? "200px" : "125px" : k ? "150px" : "75px"
7341
7344
  },
7342
7345
  children: [
7343
- /* @__PURE__ */ O("div", { className: q.alphaBackground }),
7344
- /* @__PURE__ */ O(
7346
+ /* @__PURE__ */ M("div", { className: q.alphaBackground }),
7347
+ /* @__PURE__ */ M(
7345
7348
  "div",
7346
7349
  {
7347
7350
  className: q.alphaGradient,
7348
7351
  style: { background: nn }
7349
7352
  }
7350
7353
  ),
7351
- /* @__PURE__ */ O(
7354
+ /* @__PURE__ */ M(
7352
7355
  "input",
7353
7356
  {
7354
7357
  type: "range",
@@ -7366,17 +7369,17 @@ const Ju = (e) => {
7366
7369
  }
7367
7370
  ),
7368
7371
  k && Oe && /* @__PURE__ */ Re("div", { className: q.gradientWrapper, children: [
7369
- /* @__PURE__ */ O("h3", { className: q.subtitle, children: "Rotation" }),
7370
- /* @__PURE__ */ O("div", { className: q.gradient, children: /* @__PURE__ */ Re("div", { className: q.chargeTypes, children: [
7372
+ /* @__PURE__ */ M("h3", { className: q.subtitle, children: "Rotation" }),
7373
+ /* @__PURE__ */ M("div", { className: q.gradient, children: /* @__PURE__ */ Re("div", { className: q.chargeTypes, children: [
7371
7374
  /* @__PURE__ */ Re(
7372
7375
  "div",
7373
7376
  {
7374
7377
  className: Ve(q.charge, {
7375
7378
  [q.chargeActive]: x === "horizontal"
7376
7379
  }),
7377
- onClick: () => M("horizontal"),
7380
+ onClick: () => _("horizontal"),
7378
7381
  children: [
7379
- /* @__PURE__ */ O(
7382
+ /* @__PURE__ */ M(
7380
7383
  Jt,
7381
7384
  {
7382
7385
  name: "ArrowsHorizontal",
@@ -7394,9 +7397,9 @@ const Ju = (e) => {
7394
7397
  className: Ve(q.charge, {
7395
7398
  [q.chargeActive]: x === "vertical"
7396
7399
  }),
7397
- onClick: () => M("vertical"),
7400
+ onClick: () => _("vertical"),
7398
7401
  children: [
7399
- /* @__PURE__ */ O(
7402
+ /* @__PURE__ */ M(
7400
7403
  Jt,
7401
7404
  {
7402
7405
  name: "ArrowsVertical",
@@ -7410,7 +7413,7 @@ const Ju = (e) => {
7410
7413
  )
7411
7414
  ] }) })
7412
7415
  ] }),
7413
- Le && /* @__PURE__ */ O(
7416
+ Le && /* @__PURE__ */ M(
7414
7417
  Ju,
7415
7418
  {
7416
7419
  initialColor: t,
@@ -7420,7 +7423,7 @@ const Ju = (e) => {
7420
7423
  }
7421
7424
  ),
7422
7425
  /* @__PURE__ */ Re("div", { className: q.buttons, children: [
7423
- /* @__PURE__ */ O(
7426
+ /* @__PURE__ */ M(
7424
7427
  $r,
7425
7428
  {
7426
7429
  onClick: Me,
@@ -7429,7 +7432,7 @@ const Ju = (e) => {
7429
7432
  children: "Cancel"
7430
7433
  }
7431
7434
  ),
7432
- /* @__PURE__ */ O(
7435
+ /* @__PURE__ */ M(
7433
7436
  $r,
7434
7437
  {
7435
7438
  onClick: pe,
@@ -7447,7 +7450,7 @@ const Ju = (e) => {
7447
7450
  close: Zu
7448
7451
  }, Mf = (e) => {
7449
7452
  const { isOpen: t, isClose: n, children: r } = e;
7450
- return /* @__PURE__ */ O(
7453
+ return /* @__PURE__ */ M(
7451
7454
  "div",
7452
7455
  {
7453
7456
  className: Ve(nr.wrapper, {
@@ -7463,12 +7466,12 @@ const Ju = (e) => {
7463
7466
  active: Yu
7464
7467
  }, Af = (e) => {
7465
7468
  const { items: t, selectedItem: n, onSelect: r, getIconName: o } = e;
7466
- return /* @__PURE__ */ O("div", { className: rr.blocks, children: t.map((a) => /* @__PURE__ */ O(
7469
+ return /* @__PURE__ */ M("div", { className: rr.blocks, children: t.map((a) => /* @__PURE__ */ M(
7467
7470
  "div",
7468
7471
  {
7469
7472
  className: Ve(rr.block, { [rr.active]: n === a }),
7470
7473
  onClick: () => r(a),
7471
- children: /* @__PURE__ */ O(
7474
+ children: /* @__PURE__ */ M(
7472
7475
  Jt,
7473
7476
  {
7474
7477
  name: o(a),
@@ -7515,7 +7518,7 @@ const Ju = (e) => {
7515
7518
  padding: o,
7516
7519
  timer: a,
7517
7520
  id: i
7518
- }) : /* @__PURE__ */ O(
7521
+ }) : /* @__PURE__ */ M(
7519
7522
  "div",
7520
7523
  {
7521
7524
  style: {
@@ -7532,7 +7535,7 @@ const Ju = (e) => {
7532
7535
  }),
7533
7536
  style: r,
7534
7537
  children: [
7535
- /* @__PURE__ */ O("div", { children: /* @__PURE__ */ O(
7538
+ /* @__PURE__ */ M("div", { children: /* @__PURE__ */ M(
7536
7539
  Jt,
7537
7540
  {
7538
7541
  name: "Info",
@@ -7541,15 +7544,15 @@ const Ju = (e) => {
7541
7544
  height: 20
7542
7545
  }
7543
7546
  ) }),
7544
- /* @__PURE__ */ O("div", { className: xt.text, children: n }),
7545
- a && /* @__PURE__ */ O("div", { className: xt.timer, children: l }),
7546
- /* @__PURE__ */ O(
7547
+ /* @__PURE__ */ M("div", { className: xt.text, children: n }),
7548
+ a && /* @__PURE__ */ M("div", { className: xt.timer, children: l }),
7549
+ /* @__PURE__ */ M(
7547
7550
  "div",
7548
7551
  {
7549
7552
  style: {
7550
7553
  display: "flex"
7551
7554
  },
7552
- children: /* @__PURE__ */ O(
7555
+ children: /* @__PURE__ */ M(
7553
7556
  Jt,
7554
7557
  {
7555
7558
  name: "X",
@@ -7571,27 +7574,27 @@ const Ju = (e) => {
7571
7574
  const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Uc(), { notifications: o } = Ue(), { title: a, description: i, setTitle: s, setDescription: l, setOnConfirm: c } = Vc();
7572
7575
  return /* @__PURE__ */ Re("div", { id: "builder", children: [
7573
7576
  /* @__PURE__ */ Re("div", { className: mn.layout, children: [
7574
- /* @__PURE__ */ O(Da, {}),
7577
+ /* @__PURE__ */ M(Da, {}),
7575
7578
  /* @__PURE__ */ Re("main", { className: mn.main, children: [
7576
- /* @__PURE__ */ O(Fa, {}),
7579
+ /* @__PURE__ */ M(Fa, {}),
7577
7580
  /* @__PURE__ */ Re("div", { className: mn.content, children: [
7578
- /* @__PURE__ */ O(Ia, {}),
7579
- /* @__PURE__ */ O(Ba, {})
7581
+ /* @__PURE__ */ M(Ia, {}),
7582
+ /* @__PURE__ */ M(Ba, {})
7580
7583
  ] })
7581
7584
  ] })
7582
7585
  ] }),
7583
- a && i && /* @__PURE__ */ O(
7586
+ a && i && /* @__PURE__ */ M(
7584
7587
  Jn,
7585
7588
  {
7586
7589
  close: () => {
7587
7590
  s(null), l(null), c(null);
7588
7591
  },
7589
- children: /* @__PURE__ */ O(Oa, {})
7592
+ children: /* @__PURE__ */ M(Oa, {})
7590
7593
  }
7591
7594
  ),
7592
- e && /* @__PURE__ */ O(Jn, { close: t, children: /* @__PURE__ */ O(Ha, {}) }),
7593
- n && /* @__PURE__ */ O(Jn, { close: r, children: /* @__PURE__ */ O(Ma, {}) }),
7594
- o.length > 0 && /* @__PURE__ */ O("div", { className: mn.notifications, children: o.map((u) => /* @__PURE__ */ O(
7595
+ e && /* @__PURE__ */ M(Jn, { close: t, children: /* @__PURE__ */ M(Ha, {}) }),
7596
+ n && /* @__PURE__ */ M(Jn, { close: r, children: /* @__PURE__ */ M(Ma, {}) }),
7597
+ o.length > 0 && /* @__PURE__ */ M("div", { className: mn.notifications, children: o.map((u) => /* @__PURE__ */ M(
7595
7598
  ld,
7596
7599
  {
7597
7600
  type: u.status,
@@ -7685,17 +7688,17 @@ const pd = (e) => {
7685
7688
  setFooter: c,
7686
7689
  setAnnouncement: u,
7687
7690
  setSettings: d
7688
- } = Pc(), { fonts: m, setFonts: v } = zc(), { setSettings: p } = _o(), { setPageContext: h } = _n(), { setThemeSettings: y, setIsLoadingThemeSettings: k } = mr(), { setIsLoadingSettings: b } = _o(), { notifications: x, setNotifications: M } = Ue(), {
7691
+ } = Pc(), { fonts: m, setFonts: v } = zc(), { setSettings: p } = _o(), { setPageContext: h } = _n(), { setThemeSettings: y, setIsLoadingThemeSettings: k } = mr(), { setIsLoadingSettings: b } = _o(), { notifications: x, setNotifications: _ } = Ue(), {
7689
7692
  setBlocks: T,
7690
7693
  blocks: U,
7691
7694
  createPage: w,
7692
- setIsLoadingLayers: _,
7695
+ setIsLoadingLayers: L,
7693
7696
  setHeader: K,
7694
7697
  setAnnouncement: B,
7695
7698
  setFooter: ae
7696
7699
  } = yr(), { setPages: ee, setCurrentPage: te } = _n();
7697
7700
  return _e.useEffect(() => {
7698
- k(!0), _(!0), b(!0);
7701
+ k(!0), L(!0), b(!0);
7699
7702
  const he = {};
7700
7703
  Object.keys(t).forEach((Le) => {
7701
7704
  he[Le] = t[Le];
@@ -7732,7 +7735,7 @@ const pd = (e) => {
7732
7735
  }
7733
7736
  ke && y(ke);
7734
7737
  const Pe = await fd(), He = {};
7735
- if (Pe.status >= 400 && M([
7738
+ if (Pe.status >= 400 && _([
7736
7739
  ...x,
7737
7740
  {
7738
7741
  id: it(),
@@ -7761,9 +7764,9 @@ const pd = (e) => {
7761
7764
  })
7762
7765
  ]);
7763
7766
  }
7764
- T(Se), k(!1), _(!1), b(!1);
7767
+ T(Se), k(!1), L(!1), b(!1);
7765
7768
  })();
7766
- }, []), /* @__PURE__ */ O(cd, {});
7769
+ }, []), /* @__PURE__ */ M(cd, {});
7767
7770
  };
7768
7771
  function md() {
7769
7772
  const e = new URL(window.location.href);
@@ -7784,7 +7787,7 @@ const yd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%
7784
7787
  }
7785
7788
  }, [c]), _e.useEffect(() => {
7786
7789
  s(!0), gd() ? s(!1) : l("/");
7787
- }, []), /* @__PURE__ */ O(Pa, { children: i ? /* @__PURE__ */ O(Aa, {}) : /* @__PURE__ */ O(
7790
+ }, []), /* @__PURE__ */ M(Pa, { children: i ? /* @__PURE__ */ M(Aa, {}) : /* @__PURE__ */ M(
7788
7791
  pd,
7789
7792
  {
7790
7793
  blocks: t,