@billgangcom/theme-lib 1.110.7 → 1.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/{builder-D_zv5ue0.js → builder-B31b5UQu.js} +231 -227
  2. package/dist/{builder-B7hjBRYI.cjs → builder-BAYgntut.cjs} +9 -9
  3. package/dist/{builder-components-DN-mNdj8.js → builder-components-BrUaSzmu.js} +4 -4
  4. package/dist/{builder-components-BjoFBErH.cjs → builder-components-CitLV0Xf.cjs} +1 -1
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +109 -107
  7. package/dist/{charge-BQUHzEju.js → charge-DDPKMr1X.js} +10739 -9802
  8. package/dist/charge-Dj2R60Yu.cjs +109 -0
  9. package/dist/{checkout-uzxtu1pZ.js → checkout-CYXV8Y-_.js} +5 -5
  10. package/dist/{checkout-CUct7uCm.cjs → checkout-DBK6_t-t.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CEMbDy4G.cjs → index-BCuCOhBc.cjs} +1 -1
  14. package/dist/{index-BBMTjm8A.cjs → index-BoPfKksa.cjs} +1 -1
  15. package/dist/{index-R_FZBtaZ.cjs → index-Bv1mSFy_.cjs} +1 -1
  16. package/dist/{index-Cbqz9kIG.cjs → index-CSe8H52Z.cjs} +1 -1
  17. package/dist/{index-hCDY-ip7.js → index-CWq55eW7.js} +10 -9
  18. package/dist/{index-CzkkQ8sH.js → index-C_XwNA_j.js} +5 -5
  19. package/dist/{index-CMECtXvH.js → index-CcF01H3S.js} +5 -5
  20. package/dist/{index-BXhAWCRX.cjs → index-CvjUdJSD.cjs} +1 -1
  21. package/dist/{index-BJMeFohP.js → index-CwFkr47f.js} +1 -1
  22. package/dist/{index-CX1FV9wS.js → index-XroJ5pVT.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +8 -8
  25. package/dist/order-BEbWtrZ2.cjs +1 -0
  26. package/dist/order-CCJq_uKK.js +228 -0
  27. package/dist/src/constants/notification.d.ts +2 -0
  28. package/dist/src/storefront/api/checkout.d.ts +1 -0
  29. package/dist/src/storefront/api/index.d.ts +1 -0
  30. package/dist/src/storefront/api/order.d.ts +8 -0
  31. package/dist/src/storefront/components/CheckoutPrices/index.d.ts +2 -0
  32. package/dist/src/storefront/components/CheckoutProduct/index.d.ts +4 -0
  33. package/dist/src/storefront/components/ProtectYourCheckout/index.d.ts +12 -0
  34. package/dist/src/storefront/components/ReplacementModal/index.d.ts +16 -0
  35. package/dist/src/storefront/components/ReplacementRequestItem/index.d.ts +10 -0
  36. package/dist/src/storefront/components/index.d.ts +1 -0
  37. package/dist/src/storefront/models/checkout.d.ts +17 -1
  38. package/dist/src/storefront/models/order.d.ts +27 -0
  39. package/dist/src/storefront/store/useCartStore.d.ts +3 -0
  40. package/dist/src/ui/CheckboxSettings/index.d.ts +7 -0
  41. package/dist/src/ui/NotificationAntistock/index.d.ts +1 -0
  42. package/dist/src/ui/NotificationBuilder/index.d.ts +1 -0
  43. package/dist/src/ui/Select/index.d.ts +1 -0
  44. package/dist/src/ui/Tip/index.d.ts +2 -1
  45. package/dist/src/ui/index.d.ts +1 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{subscription-DIDUTEI3.js → subscription-CZuEUgCg.js} +5 -5
  48. package/dist/{subscription-iNnLGi0T.cjs → subscription-CoDJAA04.cjs} +1 -1
  49. package/dist/{ticket-B0VGIvyK.js → ticket-BsDG_oGJ.js} +5 -5
  50. package/dist/{ticket-DXz_-29l.cjs → ticket-BxlDrXfl.cjs} +1 -1
  51. package/dist/{top-up-BhB8jhP6.js → top-up-BAPxprNh.js} +5 -5
  52. package/dist/{top-up-B7E7FUjn.cjs → top-up-u-FuienE.cjs} +1 -1
  53. package/dist/ui-components-BByJn6K_.cjs +1 -0
  54. package/dist/{ui-components-BTotDG_w.js → ui-components-Bl4srrr1.js} +1856 -1787
  55. package/dist/ui.cjs.js +1 -1
  56. package/dist/ui.es.js +43 -42
  57. package/dist/{validation-BVAD1q1L.cjs → validation-DJUVonVy.cjs} +1 -1
  58. package/dist/{validation-jCwzu5MC.js → validation-DRQEnxuG.js} +5 -5
  59. package/package.json +1 -1
  60. package/dist/charge-BAP3iPAM.cjs +0 -107
  61. package/dist/order-BOaO9a-C.cjs +0 -1
  62. package/dist/order-CdPcB1OE.js +0 -222
  63. package/dist/ui-components-CWLDlDmG.cjs +0 -1
@@ -2,10 +2,10 @@ import * as C from "react";
2
2
  import Te, { useRef as jr, useEffect as Ta } from "react";
3
3
  import * as La from "react-dom";
4
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-BTotDG_w.js";
6
- import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-DN-mNdj8.js";
7
- import "./charge-BQUHzEju.js";
8
- import "./ticket-B0VGIvyK.js";
5
+ import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-Bl4srrr1.js";
6
+ import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-BrUaSzmu.js";
7
+ import "./charge-DDPKMr1X.js";
8
+ import "./ticket-BsDG_oGJ.js";
9
9
  /**
10
10
  * @remix-run/router v1.23.0
11
11
  *
@@ -130,15 +130,15 @@ function ja(e, t, n, r) {
130
130
  let y = u(), k = y == null ? null : y - c;
131
131
  c = y, l && l({
132
132
  action: s,
133
- location: p.location,
133
+ location: h.location,
134
134
  delta: k
135
135
  });
136
136
  }
137
137
  function m(y, k) {
138
138
  s = ve.Push;
139
- let b = Wt(p.location, y, k);
139
+ let b = Wt(h.location, y, k);
140
140
  c = u() + 1;
141
- let x = Jr(b, c), M = p.createHref(b);
141
+ let x = Jr(b, c), M = h.createHref(b);
142
142
  try {
143
143
  i.pushState(x, "", M);
144
144
  } catch (_) {
@@ -148,26 +148,26 @@ function ja(e, t, n, r) {
148
148
  }
149
149
  a && l && l({
150
150
  action: s,
151
- location: p.location,
151
+ location: h.location,
152
152
  delta: 1
153
153
  });
154
154
  }
155
155
  function v(y, k) {
156
156
  s = ve.Replace;
157
- let b = Wt(p.location, y, k);
157
+ let b = Wt(h.location, y, k);
158
158
  c = u();
159
- let x = Jr(b, c), M = p.createHref(b);
159
+ let x = Jr(b, c), M = h.createHref(b);
160
160
  i.replaceState(x, "", M), a && l && l({
161
161
  action: s,
162
- location: p.location,
162
+ location: h.location,
163
163
  delta: 0
164
164
  });
165
165
  }
166
- function h(y) {
166
+ function p(y) {
167
167
  let k = o.location.origin !== "null" ? o.location.origin : o.location.href, b = typeof y == "string" ? y : ct(y);
168
168
  return b = b.replace(/ $/, "%20"), I(k, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, k);
169
169
  }
170
- let p = {
170
+ let h = {
171
171
  get action() {
172
172
  return s;
173
173
  },
@@ -184,9 +184,9 @@ function ja(e, t, n, r) {
184
184
  createHref(y) {
185
185
  return t(o, y);
186
186
  },
187
- createURL: h,
187
+ createURL: p,
188
188
  encodeLocation(y) {
189
- let k = h(y);
189
+ let k = p(y);
190
190
  return {
191
191
  pathname: k.pathname,
192
192
  search: k.search,
@@ -199,7 +199,7 @@ function ja(e, t, n, r) {
199
199
  return i.go(y);
200
200
  }
201
201
  };
202
- return p;
202
+ return h;
203
203
  }
204
204
  var oe;
205
205
  (function(e) {
@@ -360,11 +360,11 @@ function Cn(e, t) {
360
360
  isOptional: v
361
361
  } = u;
362
362
  if (m === "*") {
363
- let p = s[d] || "";
364
- i = a.slice(0, a.length - p.length).replace(/(.)\/+$/, "$1");
363
+ let h = s[d] || "";
364
+ i = a.slice(0, a.length - h.length).replace(/(.)\/+$/, "$1");
365
365
  }
366
- const h = s[d];
367
- return v && !h ? c[m] = void 0 : c[m] = (h || "").replace(/%2F/g, "/"), c;
366
+ const p = s[d];
367
+ return v && !p ? c[m] = void 0 : c[m] = (p || "").replace(/%2F/g, "/"), c;
368
368
  }, {}),
369
369
  pathname: a,
370
370
  pathnameBase: i,
@@ -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(), h = null, p = 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, M = null;
503
503
  if (b == null && !u) {
504
504
  let f = Ae(404, {
505
505
  pathname: e.history.location.pathname
@@ -1436,7 +1436,7 @@ function gi(e) {
1436
1436
  }), g;
1437
1437
  }
1438
1438
  function Ra(f, g, S) {
1439
- if (h = f, y = g, p = S || null, !k && w.navigation === qn) {
1439
+ if (p = f, y = g, h = S || null, !k && w.navigation === qn) {
1440
1440
  k = !0;
1441
1441
  let R = Ur(w.location, w.matches);
1442
1442
  R != null && Ce({
@@ -1444,21 +1444,21 @@ function gi(e) {
1444
1444
  });
1445
1445
  }
1446
1446
  return () => {
1447
- h = null, y = null, p = null;
1447
+ p = null, y = null, h = null;
1448
1448
  };
1449
1449
  }
1450
1450
  function Hr(f, g) {
1451
- return p && p(f, g.map((R) => Ja(R, w.loaderData))) || f.key;
1451
+ return h && h(f, g.map((R) => Ja(R, w.loaderData))) || f.key;
1452
1452
  }
1453
1453
  function ka(f, g) {
1454
- if (h && y) {
1454
+ if (p && y) {
1455
1455
  let S = Hr(f, g);
1456
- h[S] = y();
1456
+ p[S] = y();
1457
1457
  }
1458
1458
  }
1459
1459
  function Ur(f, g) {
1460
- if (h) {
1461
- let S = Hr(f, g), R = h[S];
1460
+ if (p) {
1461
+ let S = Hr(f, g), R = p[S];
1462
1462
  if (typeof R == "number")
1463
1463
  return R;
1464
1464
  }
@@ -1596,9 +1596,9 @@ function or(e, t, n, r, o, a, i, s) {
1596
1596
  u.search = u.search ? u.search.replace(/^\?/, "?index&") : "?index";
1597
1597
  else if (!c.route.index && d) {
1598
1598
  let m = new URLSearchParams(u.search), v = m.getAll("index");
1599
- m.delete("index"), v.filter((p) => p).forEach((p) => m.append("index", p));
1600
- let h = m.toString();
1601
- u.search = h ? "?" + h : "";
1599
+ m.delete("index"), v.filter((h) => h).forEach((h) => m.append("index", h));
1600
+ let p = m.toString();
1601
+ u.search = p ? "?" + p : "";
1602
1602
  }
1603
1603
  }
1604
1604
  return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Xe([n, u.pathname])), ct(u);
@@ -1627,9 +1627,9 @@ function qr(e, t, n, r) {
1627
1627
  return o();
1628
1628
  let m = typeof r.body == "string" ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? (
1629
1629
  // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data
1630
- Array.from(r.body.entries()).reduce((v, h) => {
1631
- let [p, y] = h;
1632
- return "" + v + p + "=" + y + `
1630
+ Array.from(r.body.entries()).reduce((v, p) => {
1631
+ let [h, y] = p;
1632
+ return "" + v + h + "=" + y + `
1633
1633
  `;
1634
1634
  }, "")
1635
1635
  ) : String(r.body);
@@ -1705,10 +1705,10 @@ function Zr(e, t, n) {
1705
1705
  let r = e.findIndex((o) => o.route.id === t);
1706
1706
  return r >= 0 ? e.slice(0, n ? r + 1 : r) : e;
1707
1707
  }
1708
- function Kr(e, t, n, r, o, a, i, s, l, c, u, d, m, v, h, p) {
1709
- let y = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0, k = e.createURL(t.location), b = e.createURL(o), x = n;
1710
- a && t.errors ? x = Zr(n, Object.keys(t.errors)[0], !0) : p && Ie(p[1]) && (x = Zr(n, p[0]));
1711
- let M = p ? p[1].statusCode : void 0, _ = i && M && M >= 400, U = x.filter((T, K) => {
1708
+ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, m, v, p, h) {
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
+ 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, _ = i && M && M >= 400, U = x.filter((T, K) => {
1712
1712
  let {
1713
1713
  route: B
1714
1714
  } = T;
@@ -1739,7 +1739,7 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, m, v, h, p) {
1739
1739
  return d.forEach((T, K) => {
1740
1740
  if (a || !n.some((he) => he.route.id === T.routeId) || u.has(K))
1741
1741
  return;
1742
- let B = mt(v, T.path, h);
1742
+ let B = mt(v, T.path, p);
1743
1743
  if (!B) {
1744
1744
  w.push({
1745
1745
  key: K,
@@ -1849,11 +1849,11 @@ async function bi(e) {
1849
1849
  }), {});
1850
1850
  }
1851
1851
  async function Si(e, t, n, r, o, a, i, s, l, c) {
1852
- let u = a.map((v) => v.route.lazy ? wi(v.route, l, s) : void 0), d = a.map((v, h) => {
1853
- let p = u[h], y = o.some((b) => b.route.id === v.route.id);
1852
+ let u = a.map((v) => v.route.lazy ? wi(v.route, l, s) : void 0), d = a.map((v, p) => {
1853
+ let h = u[p], y = o.some((b) => b.route.id === v.route.id);
1854
1854
  return fe({}, v, {
1855
1855
  shouldLoad: y,
1856
- resolve: async (b) => (b && r.method === "GET" && (v.route.lazy || v.route.loader) && (y = !0), y ? Ei(t, r, v, p, b, c) : Promise.resolve({
1856
+ resolve: async (b) => (b && r.method === "GET" && (v.route.lazy || v.route.loader) && (y = !0), y ? Ei(t, r, v, h, b, c) : Promise.resolve({
1857
1857
  type: oe.data,
1858
1858
  result: void 0
1859
1859
  }))
@@ -1873,22 +1873,22 @@ async function Si(e, t, n, r, o, a, i, s, l, c) {
1873
1873
  }
1874
1874
  async function Ei(e, t, n, r, o, a) {
1875
1875
  let i, s, l = (c) => {
1876
- let u, d = new Promise((h, p) => u = p);
1876
+ let u, d = new Promise((p, h) => u = h);
1877
1877
  s = () => u(), t.signal.addEventListener("abort", s);
1878
- let m = (h) => typeof c != "function" ? Promise.reject(new Error("You cannot call the handler for a route which defines a boolean " + ('"' + e + '" [routeId: ' + n.route.id + "]"))) : c({
1878
+ let m = (p) => typeof c != "function" ? Promise.reject(new Error("You cannot call the handler for a route which defines a boolean " + ('"' + e + '" [routeId: ' + n.route.id + "]"))) : c({
1879
1879
  request: t,
1880
1880
  params: n.params,
1881
1881
  context: a
1882
- }, ...h !== void 0 ? [h] : []), v = (async () => {
1882
+ }, ...p !== void 0 ? [p] : []), v = (async () => {
1883
1883
  try {
1884
1884
  return {
1885
1885
  type: "data",
1886
- result: await (o ? o((p) => m(p)) : m())
1886
+ result: await (o ? o((h) => m(h)) : m())
1887
1887
  };
1888
- } catch (h) {
1888
+ } catch (p) {
1889
1889
  return {
1890
1890
  type: "error",
1891
- result: h
1891
+ result: p
1892
1892
  };
1893
1893
  }
1894
1894
  })();
@@ -2069,11 +2069,11 @@ function ki(e, t, n, r, o) {
2069
2069
  return;
2070
2070
  let m = d.route.id, v = t[m];
2071
2071
  if (I(!yt(v), "Cannot handle redirect results in processLoaderData"), Ie(v)) {
2072
- let h = v.error;
2073
- u !== void 0 && (h = u, u = void 0), i = i || {};
2072
+ let p = v.error;
2073
+ u !== void 0 && (p = u, u = void 0), i = i || {};
2074
2074
  {
2075
- let p = gt(e, m);
2076
- i[p.route.id] == null && (i[p.route.id] = h);
2075
+ let h = gt(e, m);
2076
+ i[h.route.id] == null && (i[h.route.id] = p);
2077
2077
  }
2078
2078
  a[m] = void 0, l || (l = !0, s = qt(v.error) ? v.error.status : 500), v.headers && (c[m] = v.headers);
2079
2079
  } else
@@ -2100,17 +2100,17 @@ function eo(e, t, n, r, o, a, i) {
2100
2100
  } = c, v = a[u];
2101
2101
  if (I(v, "Did not find corresponding fetcher result"), !(m && m.signal.aborted))
2102
2102
  if (Ie(v)) {
2103
- let h = gt(e.matches, d == null ? void 0 : d.route.id);
2104
- l && l[h.route.id] || (l = fe({}, l, {
2105
- [h.route.id]: v.error
2103
+ let p = gt(e.matches, d == null ? void 0 : d.route.id);
2104
+ l && l[p.route.id] || (l = fe({}, l, {
2105
+ [p.route.id]: v.error
2106
2106
  })), e.fetchers.delete(u);
2107
2107
  } else if (yt(v))
2108
2108
  I(!1, "Unhandled fetcher revalidation redirect");
2109
2109
  else if (lt(v))
2110
2110
  I(!1, "Unhandled fetcher deferred data");
2111
2111
  else {
2112
- let h = at(v.data);
2113
- e.fetchers.set(u, h);
2112
+ let p = at(v.data);
2113
+ e.fetchers.set(u, p);
2114
2114
  }
2115
2115
  }), {
2116
2116
  loaderData: s,
@@ -2564,13 +2564,13 @@ function Vi(e, t, n, r) {
2564
2564
  }
2565
2565
  let m = rt(), v;
2566
2566
  v = m;
2567
- let h = v.pathname || "/", p = h;
2567
+ let p = v.pathname || "/", h = p;
2568
2568
  if (u !== "/") {
2569
2569
  let b = u.replace(/^\//, "").split("/");
2570
- p = "/" + h.replace(/^\//, "").split("/").slice(b.length).join("/");
2570
+ h = "/" + p.replace(/^\//, "").split("/").slice(b.length).join("/");
2571
2571
  }
2572
2572
  let y = !a && n && n.matches && n.matches.length > 0 ? n.matches : mt(e, {
2573
- pathname: p
2573
+ pathname: h
2574
2574
  });
2575
2575
  return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && be(d || y != null, 'No routes matched location "' + v.pathname + v.search + v.hash + '" '), process.env.NODE_ENV !== "production" && be(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + v.pathname + v.search + v.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), Wi(y && y.map((b) => Object.assign({}, b, {
2576
2576
  params: Object.assign({}, l, b.params),
@@ -2679,19 +2679,19 @@ function Wi(e, t, n, r) {
2679
2679
  let {
2680
2680
  loaderData: m,
2681
2681
  errors: v
2682
- } = n, h = d.route.loader && m[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
2683
- if (d.route.lazy || h) {
2682
+ } = n, p = d.route.loader && m[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
2683
+ if (d.route.lazy || p) {
2684
2684
  l = !0, c >= 0 ? i = i.slice(0, c + 1) : i = [i[0]];
2685
2685
  break;
2686
2686
  }
2687
2687
  }
2688
2688
  }
2689
2689
  return i.reduceRight((u, d, m) => {
2690
- let v, h = !1, p = null, y = null;
2691
- n && (v = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || $i, l && (c < 0 && m === 0 ? (zo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), h = !0, y = null) : c === m && (h = !0, y = d.route.hydrateFallbackElement || null)));
2690
+ let v, p = !1, h = null, y = null;
2691
+ n && (v = s && d.route.id ? s[d.route.id] : void 0, h = d.route.errorElement || $i, l && (c < 0 && m === 0 ? (zo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), p = !0, y = null) : c === m && (p = !0, y = d.route.hydrateFallbackElement || null)));
2692
2692
  let k = t.concat(i.slice(0, m + 1)), b = () => {
2693
2693
  let x;
2694
- return v ? x = p : h ? x = y : d.route.Component ? x = /* @__PURE__ */ C.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ C.createElement(Ji, {
2694
+ return v ? x = h : p ? x = y : d.route.Component ? x = /* @__PURE__ */ C.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ C.createElement(Ji, {
2695
2695
  match: d,
2696
2696
  routeContext: {
2697
2697
  outlet: u,
@@ -2704,7 +2704,7 @@ function Wi(e, t, n, r) {
2704
2704
  return n && (d.route.ErrorBoundary || d.route.errorElement || m === 0) ? /* @__PURE__ */ C.createElement(zi, {
2705
2705
  location: n.location,
2706
2706
  revalidation: n.revalidation,
2707
- component: p,
2707
+ component: h,
2708
2708
  error: v,
2709
2709
  children: b(),
2710
2710
  routeContext: {
@@ -2799,8 +2799,8 @@ function ts(e) {
2799
2799
  search: d = "",
2800
2800
  hash: m = "",
2801
2801
  state: v = null,
2802
- key: h = "default"
2803
- } = r, p = C.useMemo(() => {
2802
+ key: p = "default"
2803
+ } = r, h = C.useMemo(() => {
2804
2804
  let y = $e(u, l);
2805
2805
  return y == null ? null : {
2806
2806
  location: {
@@ -2808,16 +2808,16 @@ function ts(e) {
2808
2808
  search: d,
2809
2809
  hash: m,
2810
2810
  state: v,
2811
- key: h
2811
+ key: p
2812
2812
  },
2813
2813
  navigationType: o
2814
2814
  };
2815
- }, [l, u, d, m, v, h, o]);
2816
- return process.env.NODE_ENV !== "production" && be(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + m + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ C.createElement(ze.Provider, {
2815
+ }, [l, u, d, m, v, p, o]);
2816
+ return process.env.NODE_ENV !== "production" && be(h != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + m + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), h == null ? null : /* @__PURE__ */ C.createElement(ze.Provider, {
2817
2817
  value: c
2818
2818
  }, /* @__PURE__ */ C.createElement(Pn.Provider, {
2819
2819
  children: n,
2820
- value: p
2820
+ value: h
2821
2821
  }));
2822
2822
  }
2823
2823
  new Promise(() => {
@@ -3037,7 +3037,7 @@ function _d(e) {
3037
3037
  future: r
3038
3038
  } = e, [o, a] = C.useState(n.state), [i, s] = C.useState(), [l, c] = C.useState({
3039
3039
  isTransitioning: !1
3040
- }), [u, d] = C.useState(), [m, v] = C.useState(), [h, p] = C.useState(), y = C.useRef(/* @__PURE__ */ new Map()), {
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
3042
  } = r || {}, b = C.useCallback((T) => {
3043
3043
  k ? bs(T) : T();
@@ -3076,7 +3076,7 @@ function _d(e) {
3076
3076
  }), It(() => v(he));
3077
3077
  return;
3078
3078
  }
3079
- m ? (u && u.resolve(), m.skipTransition(), p({
3079
+ m ? (u && u.resolve(), m.skipTransition(), h({
3080
3080
  state: T,
3081
3081
  currentLocation: ee.currentLocation,
3082
3082
  nextLocation: ee.nextLocation
@@ -3103,13 +3103,13 @@ function _d(e) {
3103
3103
  }, [b, i, u, n.window]), C.useEffect(() => {
3104
3104
  u && i && o.location.key === i.location.key && u.resolve();
3105
3105
  }, [u, m, o.location, i]), C.useEffect(() => {
3106
- !l.isTransitioning && h && (s(h.state), c({
3106
+ !l.isTransitioning && p && (s(p.state), c({
3107
3107
  isTransitioning: !0,
3108
3108
  flushSync: !1,
3109
- currentLocation: h.currentLocation,
3110
- nextLocation: h.nextLocation
3111
- }), p(void 0));
3112
- }, [l.isTransitioning, h]), C.useEffect(() => {
3109
+ currentLocation: p.currentLocation,
3110
+ nextLocation: p.nextLocation
3111
+ }), h(void 0));
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
3115
  let M = C.useMemo(() => ({
@@ -3176,11 +3176,11 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3176
3176
  viewTransition: d
3177
3177
  } = t, m = _r(t, fs), {
3178
3178
  basename: v
3179
- } = C.useContext(ze), h, p = !1;
3180
- if (typeof c == "string" && ks.test(c) && (h = c, Rs))
3179
+ } = C.useContext(ze), p, h = !1;
3180
+ if (typeof c == "string" && ks.test(c) && (p = c, Rs))
3181
3181
  try {
3182
3182
  let x = new URL(window.location.href), M = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), _ = $e(M.pathname, v);
3183
- M.origin === x.origin && _ != null ? c = _ + M.search + M.hash : p = !0;
3183
+ M.origin === x.origin && _ != null ? c = _ + M.search + M.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
  }
@@ -3200,8 +3200,8 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3200
3200
  return (
3201
3201
  // eslint-disable-next-line jsx-a11y/anchor-has-content
3202
3202
  /* @__PURE__ */ C.createElement("a", ut({}, m, {
3203
- href: h || y,
3204
- onClick: p || a ? r : b,
3203
+ href: p || y,
3204
+ onClick: h || a ? r : b,
3205
3205
  ref: n,
3206
3206
  target: l
3207
3207
  }))
@@ -3220,12 +3220,12 @@ const xs = /* @__PURE__ */ C.forwardRef(function(t, n) {
3220
3220
  children: u
3221
3221
  } = t, d = _r(t, hs), m = Yt(l, {
3222
3222
  relative: d.relative
3223
- }), v = rt(), h = C.useContext(Ln), {
3224
- navigator: p,
3223
+ }), v = rt(), p = C.useContext(Ln), {
3224
+ navigator: h,
3225
3225
  basename: y
3226
- } = C.useContext(ze), k = h != null && // Conditional usage is OK here because the usage of a data router is static
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 = p.encodeLocation ? p.encodeLocation(m).pathname : m.pathname, x = v.pathname, M = h && h.navigation && h.navigation.location ? h.navigation.location.pathname : null;
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
3229
  o || (x = x.toLowerCase(), M = M ? M.toLowerCase() : null, b = b.toLowerCase()), M && y && (M = $e(M, y) || M);
3230
3230
  const _ = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
3231
3231
  let U = x === b || !i && x.startsWith(b) && x.charAt(_) === "/", w = M != null && (M === b || !i && M.startsWith(b) && M.charAt(b.length) === "/"), T = {
@@ -3258,13 +3258,13 @@ const Ns = /* @__PURE__ */ C.forwardRef((e, t) => {
3258
3258
  relative: u,
3259
3259
  preventScrollReset: d,
3260
3260
  viewTransition: m
3261
- } = e, v = _r(e, ps), h = Ms(), p = As(l, {
3261
+ } = e, v = _r(e, ps), p = Ms(), h = As(l, {
3262
3262
  relative: u
3263
3263
  }), y = s.toLowerCase() === "get" ? "get" : "post", k = (b) => {
3264
3264
  if (c && c(b), b.defaultPrevented) return;
3265
3265
  b.preventDefault();
3266
3266
  let x = b.nativeEvent.submitter, M = (x == null ? void 0 : x.getAttribute("formmethod")) || s;
3267
- h(x || b.currentTarget, {
3267
+ p(x || b.currentTarget, {
3268
3268
  fetcherKey: n,
3269
3269
  method: M,
3270
3270
  navigate: r,
@@ -3278,7 +3278,7 @@ const Ns = /* @__PURE__ */ C.forwardRef((e, t) => {
3278
3278
  return /* @__PURE__ */ C.createElement("form", ut({
3279
3279
  ref: t,
3280
3280
  method: y,
3281
- action: p,
3281
+ action: h,
3282
3282
  onSubmit: o ? c : k
3283
3283
  }, v));
3284
3284
  });
@@ -3838,53 +3838,53 @@ function Fn(e, t, n) {
3838
3838
  metaTokens: !0,
3839
3839
  dots: !1,
3840
3840
  indexes: !1
3841
- }, !1, function(p, y) {
3842
- return !E.isUndefined(y[p]);
3841
+ }, !1, function(h, y) {
3842
+ return !E.isUndefined(y[h]);
3843
3843
  });
3844
3844
  const r = n.metaTokens, o = n.visitor || u, a = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && E.isSpecCompliantForm(t);
3845
3845
  if (!E.isFunction(o))
3846
3846
  throw new TypeError("visitor must be a function");
3847
- function c(h) {
3848
- if (h === null) return "";
3849
- if (E.isDate(h))
3850
- return h.toISOString();
3851
- if (!l && E.isBlob(h))
3847
+ function c(p) {
3848
+ if (p === null) return "";
3849
+ if (E.isDate(p))
3850
+ return p.toISOString();
3851
+ if (!l && E.isBlob(p))
3852
3852
  throw new $("Blob is not supported. Use a Buffer instead.");
3853
- return E.isArrayBuffer(h) || E.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
3854
- }
3855
- function u(h, p, y) {
3856
- let k = h;
3857
- if (h && !y && typeof h == "object") {
3858
- if (E.endsWith(p, "{}"))
3859
- p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
3860
- else if (E.isArray(h) && _l(h) || (E.isFileList(h) || E.endsWith(p, "[]")) && (k = E.toArray(h)))
3861
- return p = oa(p), k.forEach(function(x, M) {
3853
+ return E.isArrayBuffer(p) || E.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
3854
+ }
3855
+ function u(p, h, y) {
3856
+ let k = p;
3857
+ if (p && !y && typeof p == "object") {
3858
+ if (E.endsWith(h, "{}"))
3859
+ h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
3860
+ else if (E.isArray(p) && _l(p) || (E.isFileList(p) || E.endsWith(h, "[]")) && (k = E.toArray(p)))
3861
+ return h = oa(h), k.forEach(function(x, M) {
3862
3862
  !(E.isUndefined(x) || x === null) && t.append(
3863
3863
  // eslint-disable-next-line no-nested-ternary
3864
- i === !0 ? mo([p], M, a) : i === null ? p : p + "[]",
3864
+ i === !0 ? mo([h], M, a) : i === null ? h : h + "[]",
3865
3865
  c(x)
3866
3866
  );
3867
3867
  }), !1;
3868
3868
  }
3869
- return cr(h) ? !0 : (t.append(mo(y, p, a), c(h)), !1);
3869
+ return cr(p) ? !0 : (t.append(mo(y, h, a), c(p)), !1);
3870
3870
  }
3871
3871
  const d = [], m = Object.assign(Tl, {
3872
3872
  defaultVisitor: u,
3873
3873
  convertValue: c,
3874
3874
  isVisitable: cr
3875
3875
  });
3876
- function v(h, p) {
3877
- if (!E.isUndefined(h)) {
3878
- if (d.indexOf(h) !== -1)
3879
- throw Error("Circular reference detected in " + p.join("."));
3880
- d.push(h), E.forEach(h, function(k, b) {
3876
+ function v(p, h) {
3877
+ if (!E.isUndefined(p)) {
3878
+ if (d.indexOf(p) !== -1)
3879
+ throw Error("Circular reference detected in " + h.join("."));
3880
+ d.push(p), E.forEach(p, function(k, b) {
3881
3881
  (!(E.isUndefined(k) || k === null) && o.call(
3882
3882
  t,
3883
3883
  k,
3884
3884
  E.isString(b) ? b.trim() : b,
3885
- p,
3885
+ h,
3886
3886
  m
3887
- )) === !0 && v(k, p ? p.concat(b) : [b]);
3887
+ )) === !0 && v(k, h ? h.concat(b) : [b]);
3888
3888
  }), d.pop();
3889
3889
  }
3890
3890
  }
@@ -4538,9 +4538,9 @@ const fa = (e) => {
4538
4538
  const o = fa(e);
4539
4539
  let a = o.data;
4540
4540
  const i = Fe.from(o.headers).normalize();
4541
- let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, m, v, h;
4542
- function p() {
4543
- v && v(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
4541
+ let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, m, v, p;
4542
+ function h() {
4543
+ v && v(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
4544
4544
  }
4545
4545
  let y = new XMLHttpRequest();
4546
4546
  y.open(o.method.toUpperCase(), o.url, !0), y.timeout = o.timeout;
@@ -4558,9 +4558,9 @@ const fa = (e) => {
4558
4558
  request: y
4559
4559
  };
4560
4560
  ua(function(w) {
4561
- n(w), p();
4561
+ n(w), h();
4562
4562
  }, function(w) {
4563
- r(w), p();
4563
+ r(w), h();
4564
4564
  }, _), y = null;
4565
4565
  }
4566
4566
  "onloadend" in y ? y.onloadend = k : y.onreadystatechange = function() {
@@ -4580,7 +4580,7 @@ const fa = (e) => {
4580
4580
  )), y = null;
4581
4581
  }, a === void 0 && i.setContentType(null), "setRequestHeader" in y && E.forEach(i.toJSON(), function(M, _) {
4582
4582
  y.setRequestHeader(_, M);
4583
- }), E.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), s && s !== "json" && (y.responseType = o.responseType), c && ([m, h] = 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) => {
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)));
4586
4586
  const b = Kl(o.url);
@@ -4729,8 +4729,8 @@ const uc = async (e) => {
4729
4729
  fetchOptions: m
4730
4730
  } = fa(e);
4731
4731
  c = c ? (c + "").toLowerCase() : "text";
4732
- let v = oc([o, a && a.toAbortSignal()], i), h;
4733
- const p = v && v.unsubscribe && (() => {
4732
+ let v = oc([o, a && a.toAbortSignal()], i), p;
4733
+ const h = v && v.unsubscribe && (() => {
4734
4734
  v.unsubscribe();
4735
4735
  });
4736
4736
  let y;
@@ -4751,7 +4751,7 @@ const uc = async (e) => {
4751
4751
  }
4752
4752
  E.isString(d) || (d = d ? "include" : "omit");
4753
4753
  const k = "credentials" in Request.prototype;
4754
- h = new Request(t, {
4754
+ p = new Request(t, {
4755
4755
  ...m,
4756
4756
  signal: v,
4757
4757
  method: n.toUpperCase(),
@@ -4760,9 +4760,9 @@ const uc = async (e) => {
4760
4760
  duplex: "half",
4761
4761
  credentials: k ? d : void 0
4762
4762
  });
4763
- let b = await fetch(h);
4763
+ let b = await fetch(p);
4764
4764
  const x = dr && (c === "stream" || c === "response");
4765
- if (dr && (s || x && p)) {
4765
+ if (dr && (s || x && h)) {
4766
4766
  const _ = {};
4767
4767
  ["status", "statusText", "headers"].forEach((K) => {
4768
4768
  _[K] = b[K];
@@ -4773,30 +4773,30 @@ const uc = async (e) => {
4773
4773
  ) || [];
4774
4774
  b = new Response(
4775
4775
  Eo(b.body, Co, w, () => {
4776
- T && T(), p && p();
4776
+ T && T(), h && h();
4777
4777
  }),
4778
4778
  _
4779
4779
  );
4780
4780
  }
4781
4781
  c = c || "text";
4782
4782
  let M = await _n[E.findKey(_n, c) || "text"](b, e);
4783
- return !x && p && p(), await new Promise((_, U) => {
4783
+ return !x && h && h(), await new Promise((_, U) => {
4784
4784
  ua(_, U, {
4785
4785
  data: M,
4786
4786
  headers: Fe.from(b.headers),
4787
4787
  status: b.status,
4788
4788
  statusText: b.statusText,
4789
4789
  config: e,
4790
- request: h
4790
+ request: p
4791
4791
  });
4792
4792
  });
4793
4793
  } catch (k) {
4794
- throw p && p(), k && k.name === "TypeError" && /fetch/i.test(k.message) ? Object.assign(
4795
- new $("Network Error", $.ERR_NETWORK, e, h),
4794
+ throw h && h(), k && k.name === "TypeError" && /fetch/i.test(k.message) ? Object.assign(
4795
+ new $("Network Error", $.ERR_NETWORK, e, p),
4796
4796
  {
4797
4797
  cause: k.cause || k
4798
4798
  }
4799
- ) : $.from(k, k && k.code, e, h);
4799
+ ) : $.from(k, k && k.code, e, p);
4800
4800
  }
4801
4801
  }), fr = {
4802
4802
  http: Nl,
@@ -4968,41 +4968,41 @@ let wt = class {
4968
4968
  );
4969
4969
  a && E.forEach(
4970
4970
  ["delete", "get", "head", "post", "put", "patch", "common"],
4971
- (h) => {
4972
- delete a[h];
4971
+ (p) => {
4972
+ delete a[p];
4973
4973
  }
4974
4974
  ), n.headers = Fe.concat(i, a);
4975
4975
  const s = [];
4976
4976
  let l = !0;
4977
- this.interceptors.request.forEach(function(p) {
4978
- typeof p.runWhen == "function" && p.runWhen(n) === !1 || (l = l && p.synchronous, s.unshift(p.fulfilled, p.rejected));
4977
+ this.interceptors.request.forEach(function(h) {
4978
+ typeof h.runWhen == "function" && h.runWhen(n) === !1 || (l = l && h.synchronous, s.unshift(h.fulfilled, h.rejected));
4979
4979
  });
4980
4980
  const c = [];
4981
- this.interceptors.response.forEach(function(p) {
4982
- c.push(p.fulfilled, p.rejected);
4981
+ this.interceptors.response.forEach(function(h) {
4982
+ c.push(h.fulfilled, h.rejected);
4983
4983
  });
4984
4984
  let u, d = 0, m;
4985
4985
  if (!l) {
4986
- const h = [ko.bind(this), void 0];
4987
- for (h.unshift.apply(h, s), h.push.apply(h, c), m = h.length, u = Promise.resolve(n); d < m; )
4988
- u = u.then(h[d++], h[d++]);
4986
+ const p = [ko.bind(this), void 0];
4987
+ for (p.unshift.apply(p, s), p.push.apply(p, c), m = p.length, u = Promise.resolve(n); d < m; )
4988
+ u = u.then(p[d++], p[d++]);
4989
4989
  return u;
4990
4990
  }
4991
4991
  m = s.length;
4992
4992
  let v = n;
4993
4993
  for (d = 0; d < m; ) {
4994
- const h = s[d++], p = s[d++];
4994
+ const p = s[d++], h = s[d++];
4995
4995
  try {
4996
- v = h(v);
4996
+ v = p(v);
4997
4997
  } catch (y) {
4998
- p.call(this, y);
4998
+ h.call(this, y);
4999
4999
  break;
5000
5000
  }
5001
5001
  }
5002
5002
  try {
5003
5003
  u = ko.call(this, v);
5004
- } catch (h) {
5005
- return Promise.reject(h);
5004
+ } catch (p) {
5005
+ return Promise.reject(p);
5006
5006
  }
5007
5007
  for (d = 0, m = c.length; d < m; )
5008
5008
  u = u.then(c[d++], c[d++]);
@@ -5237,36 +5237,37 @@ const {
5237
5237
  };
5238
5238
  n && c && (d.Authorization = `Bearer ${c}`);
5239
5239
  try {
5240
- let h = null;
5240
+ let p = null;
5241
5241
  switch (r) {
5242
5242
  case "get":
5243
- h = await de.get(u ? hn : t, { headers: d });
5243
+ p = await de.get(u ? hn : t, { headers: d });
5244
5244
  break;
5245
5245
  case "post":
5246
- h = await de.post(u ? hn : t, o, { headers: d });
5246
+ p = await de.post(u ? hn : t, o, { headers: d });
5247
5247
  break;
5248
5248
  case "put":
5249
- h = await de.put(u ? hn : t, o, { headers: d });
5249
+ p = await de.put(u ? hn : t, o, { headers: d });
5250
5250
  break;
5251
5251
  case "delete":
5252
- h = await de.delete(u ? hn : t, { headers: d });
5252
+ p = await de.delete(u ? hn : t, { headers: d });
5253
5253
  break;
5254
5254
  }
5255
5255
  return {
5256
- data: h == null ? void 0 : h.data,
5257
- status: h == null ? void 0 : h.status,
5258
- headers: h == null ? void 0 : h.headers
5256
+ data: p == null ? void 0 : p.data,
5257
+ status: p == null ? void 0 : p.status,
5258
+ headers: p == null ? void 0 : p.headers
5259
5259
  };
5260
- } catch (h) {
5261
- const p = h, y = (m = p.response) == null ? void 0 : m.data;
5260
+ } catch (p) {
5261
+ const h = p, y = (m = h.response) == null ? void 0 : m.data;
5262
5262
  let k = "Something Went Wrong";
5263
5263
  y && (k = y.errors[0]);
5264
- const b = (v = p.response) == null ? void 0 : v.status;
5264
+ const b = (v = h.response) == null ? void 0 : v.status;
5265
5265
  if (b === 401) {
5266
- const { logoutCustomer: x } = await import("./charge-BQUHzEju.js").then((M) => M._);
5267
- await x(), window.location.reload();
5266
+ const { logoutCustomer: M } = await import("./charge-DDPKMr1X.js").then((_) => _._);
5267
+ await M(), window.location.reload();
5268
5268
  }
5269
- throw new vc(k, (b == null ? void 0 : b.toString()) || "400");
5269
+ const x = new vc(k, (b == null ? void 0 : b.toString()) || "400");
5270
+ throw x.response = h.response, x;
5270
5271
  }
5271
5272
  }, wc = "https://g-api.billgang.com", bc = "https://www.googleapis.com/webfonts/v1/webfonts", Sc = "https://stores-api.billgang.com", Ec = "https://sl-api.billgang.com", Cc = "https://customers-api.billgang.com", Rc = "https://cashapp-api.billgang.com", kc = {
5272
5273
  api: wc,
@@ -5333,65 +5334,65 @@ const {
5333
5334
  url: `${n ? Ut : Ht}/${e}/t/p`,
5334
5335
  method: "post",
5335
5336
  withToken: !1
5336
- })).data.data.id, l = async (h) => (await st({
5337
- url: `${n ? Ut : Ht}/${e}/t/p/${t === "development" ? Qn : h}/s`,
5337
+ })).data.data.id, l = async (p) => (await st({
5338
+ url: `${n ? Ut : Ht}/${e}/t/p/${t === "development" ? Qn : p}/s`,
5338
5339
  method: "post",
5339
5340
  withToken: !1
5340
- })).data.data.id, c = async (h, p, y, k) => {
5341
- const b = t === "development" ? Qn : h;
5341
+ })).data.data.id, c = async (p, h, y, k) => {
5342
+ const b = t === "development" ? Qn : p;
5342
5343
  try {
5343
5344
  return (await st({
5344
- url: `${n ? Ut : Ht}/${e}/t/p/${b}/s/${p}/e`,
5345
+ url: `${n ? Ut : Ht}/${e}/t/p/${b}/s/${h}/e`,
5345
5346
  method: "post",
5346
5347
  withToken: !1,
5347
5348
  body: { url: y, oldEventId: k },
5348
5349
  contentType: "application/json"
5349
5350
  })).data.data.id;
5350
5351
  } catch {
5351
- return p = await l(h), (await st({
5352
- url: `${n ? Ut : Ht}/${e}/t/p/${b}/s/${p}/e`,
5352
+ return h = await l(p), (await st({
5353
+ url: `${n ? Ut : Ht}/${e}/t/p/${b}/s/${h}/e`,
5353
5354
  method: "post",
5354
5355
  withToken: !1,
5355
5356
  body: { url: y },
5356
5357
  contentType: "application/json"
5357
5358
  })).data.data.id;
5358
5359
  }
5359
- }, u = async (h, p, y) => {
5360
+ }, u = async (p, h, y) => {
5360
5361
  await st({
5361
- url: `${n ? Ut : Ht}/${e}/t/p/${t === "development" ? Qn : h}/s/${p}/e/${y}/h`,
5362
+ url: `${n ? Ut : Ht}/${e}/t/p/${t === "development" ? Qn : p}/s/${h}/e/${y}/h`,
5362
5363
  method: "post",
5363
5364
  withToken: !1
5364
5365
  });
5365
5366
  const b = pr(zt);
5366
5367
  b && (b.s.u = i().toString(), b.lu = i().toString(), No(zt, b));
5367
- }, d = (h, p, y) => {
5368
+ }, d = (p, h, y) => {
5368
5369
  o.current && clearInterval(o.current), o.current = setInterval(async () => {
5369
5370
  if (document.visibilityState === "visible")
5370
5371
  try {
5371
- await u(h, p, y);
5372
+ await u(p, h, y);
5372
5373
  } catch {
5373
5374
  await m();
5374
5375
  }
5375
5376
  }, xc);
5376
5377
  }, m = async () => {
5377
5378
  var k, b, x, M;
5378
- const h = `${window.location.hostname}${r}`, p = pr(zt), y = i();
5379
+ const p = `${window.location.hostname}${r}`, h = pr(zt), y = i();
5379
5380
  try {
5380
- let _ = p == null ? void 0 : p.p;
5381
+ let _ = h == null ? void 0 : h.p;
5381
5382
  _ || (_ = await s());
5382
- let U = (k = p == null ? void 0 : p.s) == null ? void 0 : k.i;
5383
- const w = Number(((b = p == null ? void 0 : p.s) == null ? void 0 : b.u) || ((x = p == null ? void 0 : p.s) == null ? void 0 : x.c)), T = !U || y - w > _c;
5383
+ let U = (k = h == null ? void 0 : h.s) == null ? void 0 : k.i;
5384
+ 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)), T = !U || y - w > _c;
5384
5385
  (!U || T) && (U = await l(_));
5385
- const K = Number((p == null ? void 0 : p.lu) || 0), B = y - K > Nc, ae = await c(
5386
+ const K = Number((h == null ? void 0 : h.lu) || 0), B = y - K > Nc, ae = await c(
5386
5387
  _,
5387
5388
  U,
5388
- h,
5389
- p != null && p.l && !B ? p.l : void 0
5389
+ p,
5390
+ h != null && h.l && !B ? h.l : void 0
5390
5391
  ), ee = {
5391
5392
  p: _,
5392
5393
  s: {
5393
5394
  i: U,
5394
- c: ((M = p == null ? void 0 : p.s) == null ? void 0 : M.c) ?? y.toString(),
5395
+ c: ((M = h == null ? void 0 : h.s) == null ? void 0 : M.c) ?? y.toString(),
5395
5396
  u: y.toString()
5396
5397
  },
5397
5398
  l: ae,
@@ -5439,6 +5440,7 @@ const rf = se((e) => ({
5439
5440
  recaptcha: "",
5440
5441
  priceAdjustment: null,
5441
5442
  serviceFee: null,
5443
+ replacementConfig: null,
5442
5444
  setCart: (t) => e((n) => ({
5443
5445
  cart: typeof t == "function" ? t(n.cart) : t
5444
5446
  })),
@@ -5451,7 +5453,9 @@ const rf = se((e) => ({
5451
5453
  setApplyCouponPending: (t) => e({ applyCouponPending: t }),
5452
5454
  setCustomerEmail: (t) => e({ customerEmail: t }),
5453
5455
  setPriceAdjustment: (t) => e({ priceAdjustment: t }),
5454
- setServiceFee: (t) => e({ serviceFee: t })
5456
+ setServiceFee: (t) => e({ serviceFee: t }),
5457
+ setReplacementConfig: (t) => e({ replacementConfig: t }),
5458
+ setUsePriorityReplacement: (t) => e((n) => ({ cart: { ...n.cart, usePriorityReplacement: t } }))
5455
5459
  })), of = se((e) => ({
5456
5460
  page: 1,
5457
5461
  setPage: (t) => e(() => ({ page: t })),
@@ -5932,11 +5936,11 @@ const gr = (e) => (t) => {
5932
5936
  }, Ic = (e, t) => (n, r, o) => {
5933
5937
  let a = {
5934
5938
  storage: Fc(() => localStorage),
5935
- partialize: (p) => p,
5939
+ partialize: (h) => h,
5936
5940
  version: 0,
5937
- merge: (p, y) => ({
5941
+ merge: (h, y) => ({
5938
5942
  ...y,
5939
- ...p
5943
+ ...h
5940
5944
  }),
5941
5945
  ...t
5942
5946
  }, i = !1;
@@ -5944,41 +5948,41 @@ const gr = (e) => (t) => {
5944
5948
  let c = a.storage;
5945
5949
  if (!c)
5946
5950
  return e(
5947
- (...p) => {
5951
+ (...h) => {
5948
5952
  console.warn(
5949
5953
  `[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
5950
- ), n(...p);
5954
+ ), n(...h);
5951
5955
  },
5952
5956
  r,
5953
5957
  o
5954
5958
  );
5955
5959
  const u = () => {
5956
- const p = a.partialize({ ...r() });
5960
+ const h = a.partialize({ ...r() });
5957
5961
  return c.setItem(a.name, {
5958
- state: p,
5962
+ state: h,
5959
5963
  version: a.version
5960
5964
  });
5961
5965
  }, d = o.setState;
5962
- o.setState = (p, y) => {
5963
- d(p, y), u();
5966
+ o.setState = (h, y) => {
5967
+ d(h, y), u();
5964
5968
  };
5965
5969
  const m = e(
5966
- (...p) => {
5967
- n(...p), u();
5970
+ (...h) => {
5971
+ n(...h), u();
5968
5972
  },
5969
5973
  r,
5970
5974
  o
5971
5975
  );
5972
5976
  o.getInitialState = () => m;
5973
5977
  let v;
5974
- const h = () => {
5975
- var p, y;
5978
+ const p = () => {
5979
+ var h, y;
5976
5980
  if (!c) return;
5977
5981
  i = !1, s.forEach((b) => {
5978
5982
  var x;
5979
5983
  return b((x = r()) != null ? x : m);
5980
5984
  });
5981
- const k = ((y = a.onRehydrateStorage) == null ? void 0 : y.call(a, (p = r()) != null ? p : m)) || void 0;
5985
+ const k = ((y = a.onRehydrateStorage) == null ? void 0 : y.call(a, (h = r()) != null ? h : m)) || void 0;
5982
5986
  return gr(c.getItem.bind(c))(a.name).then((b) => {
5983
5987
  if (b)
5984
5988
  if (typeof b.version == "number" && b.version !== a.version) {
@@ -6011,25 +6015,25 @@ const gr = (e) => (t) => {
6011
6015
  });
6012
6016
  };
6013
6017
  return o.persist = {
6014
- setOptions: (p) => {
6018
+ setOptions: (h) => {
6015
6019
  a = {
6016
6020
  ...a,
6017
- ...p
6018
- }, p.storage && (c = p.storage);
6021
+ ...h
6022
+ }, h.storage && (c = h.storage);
6019
6023
  },
6020
6024
  clearStorage: () => {
6021
6025
  c == null || c.removeItem(a.name);
6022
6026
  },
6023
6027
  getOptions: () => a,
6024
- rehydrate: () => h(),
6028
+ rehydrate: () => p(),
6025
6029
  hasHydrated: () => i,
6026
- onHydrate: (p) => (s.add(p), () => {
6027
- s.delete(p);
6030
+ onHydrate: (h) => (s.add(h), () => {
6031
+ s.delete(h);
6028
6032
  }),
6029
- onFinishHydration: (p) => (l.add(p), () => {
6030
- l.delete(p);
6033
+ onFinishHydration: (h) => (l.add(h), () => {
6034
+ l.delete(h);
6031
6035
  })
6032
- }, a.skipHydration || h(), v || m;
6036
+ }, a.skipHydration || p(), v || m;
6033
6037
  }, Un = Ic, Tn = se(
6034
6038
  Un(
6035
6039
  (e, t) => ({
@@ -6310,8 +6314,8 @@ const gr = (e) => (t) => {
6310
6314
  setHeader: d,
6311
6315
  setFooter: m,
6312
6316
  setAnnouncement: v
6313
- } = yr.getState(), { themeSettings: h, setThemeSettings: p } = mr.getState(), y = {
6314
- themeSettings: JSON.parse(JSON.stringify(h)),
6317
+ } = yr.getState(), { themeSettings: p, setThemeSettings: h } = mr.getState(), y = {
6318
+ themeSettings: JSON.parse(JSON.stringify(p)),
6315
6319
  layers: JSON.parse(JSON.stringify(i)),
6316
6320
  header: JSON.parse(JSON.stringify(s)),
6317
6321
  footer: JSON.parse(JSON.stringify(l)),
@@ -6321,7 +6325,7 @@ const gr = (e) => (t) => {
6321
6325
  e({
6322
6326
  past: a,
6323
6327
  future: [y, ...r]
6324
- }), o.themeSettings && p(o.themeSettings), o.layers && u(o.layers), o.header && d(o.header, !1), o.footer && m(o.footer, !1), o.announcement && v(o.announcement, !1);
6328
+ }), o.themeSettings && h(o.themeSettings), o.layers && u(o.layers), o.header && d(o.header, !1), o.footer && m(o.footer, !1), o.announcement && v(o.announcement, !1);
6325
6329
  },
6326
6330
  // Повтор (redo)
6327
6331
  redo: () => {
@@ -6336,7 +6340,7 @@ const gr = (e) => (t) => {
6336
6340
  setHeader: c,
6337
6341
  setFooter: u,
6338
6342
  setAnnouncement: d
6339
- } = yr.getState(), { themeSettings: m, setThemeSettings: v } = mr.getState(), h = r[0], p = r.slice(1), y = {
6343
+ } = yr.getState(), { themeSettings: m, setThemeSettings: v } = mr.getState(), p = r[0], h = r.slice(1), y = {
6340
6344
  themeSettings: JSON.parse(JSON.stringify(m)),
6341
6345
  layers: JSON.parse(JSON.stringify(o)),
6342
6346
  header: JSON.parse(JSON.stringify(a)),
@@ -6346,8 +6350,8 @@ const gr = (e) => (t) => {
6346
6350
  };
6347
6351
  e({
6348
6352
  past: [...n, y],
6349
- future: p
6350
- }), h.themeSettings && v(h.themeSettings), h.layers && l(h.layers), h.header && c(h.header, !1), h.footer && u(h.footer, !1), h.announcement && d(h.announcement, !1);
6353
+ future: h
6354
+ }), p.themeSettings && v(p.themeSettings), p.layers && l(p.layers), p.header && c(p.header, !1), p.footer && u(p.footer, !1), p.announcement && d(p.announcement, !1);
6351
6355
  }
6352
6356
  })), Bc = se(
6353
6357
  Un(
@@ -6962,15 +6966,15 @@ const Ju = (e) => {
6962
6966
  setInitialColor: d,
6963
6967
  setShowModal: m,
6964
6968
  setUpdate: v,
6965
- setColor: h,
6966
- setColorChange: p,
6969
+ setColor: p,
6970
+ setColorChange: h,
6967
6971
  setIsGradientActive: y,
6968
6972
  colorChange: k
6969
6973
  } = Sa();
6970
6974
  Te.useEffect(() => {
6971
6975
  const _ = () => {
6972
6976
  m(!1), c(null), d(t), v(() => {
6973
- }), h(t), p(() => {
6977
+ }), p(t), h(() => {
6974
6978
  });
6975
6979
  };
6976
6980
  return document.body.addEventListener("click", _), () => {
@@ -6978,7 +6982,7 @@ const Ju = (e) => {
6978
6982
  };
6979
6983
  }, [t]);
6980
6984
  const b = (_) => {
6981
- _.stopPropagation(), m(!0), p(l), v(n), d(t), h(s), y(a);
6985
+ _.stopPropagation(), m(!0), h(l), v(n), d(t), p(s), y(a);
6982
6986
  const { top: U, left: w } = Gc(_, 600, 288, 10, 20, 230, 80);
6983
6987
  u({
6984
6988
  top: U,
@@ -6986,7 +6990,7 @@ const Ju = (e) => {
6986
6990
  });
6987
6991
  }, x = (_) => {
6988
6992
  const U = _.target.value;
6989
- l(U), tr(U) && (n(U), h(U), p(k));
6993
+ l(U), tr(U) && (n(U), p(U), h(k));
6990
6994
  }, M = () => {
6991
6995
  tr(s) || l(t);
6992
6996
  };
@@ -7051,8 +7055,8 @@ const Ju = (e) => {
7051
7055
  setSaturation: d,
7052
7056
  setBrightness: m,
7053
7057
  setAlpha: v,
7054
- colorChange: h,
7055
- setColor: p,
7058
+ colorChange: p,
7059
+ setColor: h,
7056
7060
  update: y,
7057
7061
  isGradient: k,
7058
7062
  setIsGradient: b,
@@ -7082,15 +7086,15 @@ const Ju = (e) => {
7082
7086
  if (te === 1) {
7083
7087
  u(j), d(V), m(ne), v(z);
7084
7088
  const G = ke(j, V, ne, z), W = ke(_, U, w, T), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7085
- h(Z), p(Z);
7089
+ p(Z), h(Z);
7086
7090
  } else {
7087
7091
  K(j), B(V), ae(ne), ee(z);
7088
7092
  const G = ke(j, V, ne, z), W = ke(o, a, i, s), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${G} 100%)`;
7089
- h(Z), p(Z);
7093
+ p(Z), h(Z);
7090
7094
  }
7091
7095
  else {
7092
7096
  const G = ke(j, V, ne, z);
7093
- h(G), p(G);
7097
+ p(G), h(G);
7094
7098
  }
7095
7099
  }, we = (j, V, ne) => {
7096
7100
  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));
@@ -7197,7 +7201,7 @@ const Ju = (e) => {
7197
7201
  r(!1);
7198
7202
  }
7199
7203
  function Me() {
7200
- r(!1), h(n);
7204
+ r(!1), p(n);
7201
7205
  }
7202
7206
  const Ee = k ? te === 1 ? o : _ : o, ft = k ? te === 1 ? a : U : a, en = k ? te === 1 ? i : w : i, Vn = k ? te === 1 ? s : T : 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(_, U, w, T);
7203
7207
  return /* @__PURE__ */ Re(
@@ -7412,7 +7416,7 @@ const Ju = (e) => {
7412
7416
  Ju,
7413
7417
  {
7414
7418
  initialColor: t,
7415
- onChange: (j) => p(j),
7419
+ onChange: (j) => h(j),
7416
7420
  title: "",
7417
7421
  isBlockSettings: Le
7418
7422
  }
@@ -7495,7 +7499,7 @@ const Ju = (e) => {
7495
7499
  }, ld = (e) => {
7496
7500
  const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = Te.useState(a), { setNotifications: u } = Ue();
7497
7501
  function d() {
7498
- const v = Ue.getState().notifications.filter((h) => h.id !== i);
7502
+ const v = Ue.getState().notifications.filter((p) => p.id !== i);
7499
7503
  u([...v]);
7500
7504
  }
7501
7505
  return Te.useEffect(() => {
@@ -7683,7 +7687,7 @@ const pd = (e) => {
7683
7687
  setFooter: c,
7684
7688
  setAnnouncement: u,
7685
7689
  setSettings: d
7686
- } = Pc(), { fonts: m, setFonts: v } = zc(), { setSettings: h } = To(), { setPageContext: p } = Tn(), { setThemeSettings: y, setIsLoadingThemeSettings: k } = mr(), { setIsLoadingSettings: b } = To(), { notifications: x, setNotifications: M } = Ue(), {
7690
+ } = Pc(), { fonts: m, setFonts: v } = zc(), { setSettings: p } = To(), { setPageContext: h } = Tn(), { setThemeSettings: y, setIsLoadingThemeSettings: k } = mr(), { setIsLoadingSettings: b } = To(), { notifications: x, setNotifications: M } = Ue(), {
7687
7691
  setBlocks: _,
7688
7692
  blocks: U,
7689
7693
  createPage: w,
@@ -7712,7 +7716,7 @@ const pd = (e) => {
7712
7716
  Object.keys(qe).map((ie) => {
7713
7717
  const pe = ie;
7714
7718
  Le[pe] = qe[pe].value.data;
7715
- }), p(Le);
7719
+ }), h(Le);
7716
7720
  const { data: ce } = await hd(), { themeSettings: ke, layers: Se, settings: we } = ce || {};
7717
7721
  if (we) {
7718
7722
  if (we.settings) {
@@ -7721,12 +7725,12 @@ const pd = (e) => {
7721
7725
  displayName: "Settings",
7722
7726
  isAddable: !1,
7723
7727
  ...we.settings
7724
- }, h(ie.blockSettings);
7728
+ }, p(ie.blockSettings);
7725
7729
  }
7726
7730
  we.header && K(we.header), we.footer && ae(we.footer), we.announcement && B(we.announcement);
7727
7731
  } else {
7728
7732
  const ie = new n();
7729
- h(ie.blockSettings);
7733
+ p(ie.blockSettings);
7730
7734
  }
7731
7735
  ke && y(ke);
7732
7736
  const Pe = await fd(), He = {};