@billgangcom/theme-lib 1.116.8 → 1.117.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 (40) hide show
  1. package/dist/{builder-f0ugx4fz.js → builder-VKA664PR.js} +5 -5
  2. package/dist/{builder-components-CqkelDOu.cjs → builder-components-BER5mJmk.cjs} +1 -1
  3. package/dist/{builder-components-BK2fDGJl.js → builder-components-xx5QFYCm.js} +4 -4
  4. package/dist/{builder-DmYqtNP5.cjs → builder-tYS_fx1j.cjs} +2 -2
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-qD5mRJMf.cjs → charge-BTTelVH9.cjs} +12 -12
  8. package/dist/{charge-1negffI8.js → charge-BVSghUTp.js} +255 -250
  9. package/dist/{checkout-DIRNbVFS.js → checkout-BvZF5GBN.js} +5 -5
  10. package/dist/{checkout-0ERLAcm8.cjs → checkout-Czl0XXKy.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-DX-dir-7.js → index-BFAsDjg4.js} +5 -5
  14. package/dist/{index-_yYkATZJ.js → index-CJ3NwBR_.js} +5 -5
  15. package/dist/{index-DpNZtNdj.cjs → index-CQGjV27J.cjs} +1 -1
  16. package/dist/{index-CidwOaYu.js → index-Cfuai6uk.js} +1 -1
  17. package/dist/{index-CEMM_pXQ.js → index-D-Y2LPyz.js} +5 -5
  18. package/dist/{index-CEeFFpYv.cjs → index-D9JwIfEP.cjs} +1 -1
  19. package/dist/{index-yxPurcYj.js → index-DlH7nhLu.js} +5 -5
  20. package/dist/{index-CPO9oLj9.cjs → index-EV9sIbPf.cjs} +1 -1
  21. package/dist/{index-D_AQGApz.cjs → index-WSIj7mXJ.cjs} +1 -1
  22. package/dist/{index-DBWEXhcg.cjs → index-YoA87E0j.cjs} +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-BrYztFSw.js → order-Cxub8VWB.js} +5 -5
  26. package/dist/{order-CnCo2Gt1.cjs → order-D6bEahqA.cjs} +1 -1
  27. package/dist/src/storefront/models/order.d.ts +2 -1
  28. package/dist/{subscription-0kB79dBi.cjs → subscription-4ntHL0jJ.cjs} +1 -1
  29. package/dist/{subscription-B24hZj7z.js → subscription-BxRKKLjT.js} +5 -5
  30. package/dist/{ticket-3757pxOF.cjs → ticket-BMP7CWTV.cjs} +1 -1
  31. package/dist/{ticket-CrHG13A9.js → ticket-ZryFt3Gl.js} +5 -5
  32. package/dist/{top-up-CFmQGXRJ.js → top-up-CkfL0jBe.js} +5 -5
  33. package/dist/{top-up-C3RpekTg.cjs → top-up-DR2Qy-73.cjs} +1 -1
  34. package/dist/{ui-components-eSiLgpmM.js → ui-components-CL3XRzDd.js} +4 -4
  35. package/dist/{ui-components-Ca0Z19h_.cjs → ui-components-Wg6-hSGe.cjs} +1 -1
  36. package/dist/ui.cjs.js +1 -1
  37. package/dist/ui.es.js +1 -1
  38. package/dist/{validation-BMZ9cbHF.js → validation-8UtoT5cR.js} +5 -5
  39. package/dist/{validation-Cajf8X9j.cjs → validation-CZt2YZyc.cjs} +1 -1
  40. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { j as je, K as Qe, r as Ge, M as cn, N as Gt, O as hn, Q as bs, U as fr, e as Lt, v as Ie, V as ze, W as _s, p as En, f as te, X as va, Y as Lr, Z as st, _ as Je, J as ut, $ as xt, b as _2, u as C2, a as Cs, a0 as E2, a1 as y2, a2 as Au, a3 as Vi, a4 as T2, a5 as To, a6 as Dl, a7 as Es, a8 as wa, a9 as x2 } from "./builder-f0ugx4fz.js";
1
+ import { j as je, K as Qe, r as Ge, M as cn, N as Gt, O as hn, Q as bs, U as fr, e as Lt, v as Ie, V as ze, W as _s, p as En, f as te, X as va, Y as Lr, Z as st, _ as Je, J as ut, $ as xt, b as _2, u as C2, a as Cs, a0 as E2, a1 as y2, a2 as Au, a3 as Vi, a4 as T2, a5 as To, a6 as Dl, a7 as Es, a8 as wa, a9 as x2 } from "./builder-VKA664PR.js";
2
2
  import { jsx as c, jsxs as b, Fragment as $e } from "react/jsx-runtime";
3
- import * as he from "react";
4
- import Y, { useEffect as bn, forwardRef as Ll, createElement as ft, Component as k2, isValidElement as A2, useState as pe, useRef as un, useCallback as Pl, useMemo as Yn } from "react";
5
- import { I as H, e as It, f as _n, g as ae, S as Rl, M as Ht, W as I2, h as Ol, i as Ml, j as Ou, k as fa, R as S2 } from "./ui-components-eSiLgpmM.js";
6
- import { F as Fl } from "./builder-components-BK2fDGJl.js";
7
- import { T as Bl } from "./ticket-CrHG13A9.js";
3
+ import * as pe from "react";
4
+ import Y, { useEffect as bn, forwardRef as Ll, createElement as ft, Component as k2, isValidElement as A2, useState as me, useRef as un, useCallback as Pl, useMemo as Yn } from "react";
5
+ import { I as H, e as It, f as _n, g as ae, S as Rl, M as Ht, W as I2, h as Ol, i as Ml, j as Ou, k as fa, R as S2 } from "./ui-components-CL3XRzDd.js";
6
+ import { F as Fl } from "./builder-components-xx5QFYCm.js";
7
+ import { T as Bl } from "./ticket-ZryFt3Gl.js";
8
8
  import { createPortal as Hl } from "react-dom";
9
- import { O as Ul } from "./order-BrYztFSw.js";
10
- import { S as N2 } from "./subscription-B24hZj7z.js";
9
+ import { O as Ul } from "./order-Cxub8VWB.js";
10
+ import { S as N2 } from "./subscription-BxRKKLjT.js";
11
11
  const v2 = () => typeof document < "u" ? document.documentElement.hasAttribute("translated") || document.documentElement.querySelector(".translated-ltr, .translated-rtl") !== null || // Safari переводчик добавляет мета-тег с name="_translator"
12
12
  document.head.querySelector('meta[name="_translator"]') !== null : !1, w2 = ({
13
13
  children: e,
@@ -785,7 +785,7 @@ function hf() {
785
785
  }
786
786
  }
787
787
  }
788
- var I = o, S = l, O = s, j = i, $ = t, D = h, F = r, R = g, J = p, ce = n, ue = a, me = u, Ne = f, qe = !1;
788
+ var I = o, S = l, O = s, j = i, $ = t, D = h, F = r, R = g, J = p, ce = n, ue = a, ge = u, Ne = f, qe = !1;
789
789
  function Me(U) {
790
790
  return qe || (qe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(U) || w(U) === o;
791
791
  }
@@ -825,7 +825,7 @@ function hf() {
825
825
  function ve(U) {
826
826
  return w(U) === f;
827
827
  }
828
- Ye.AsyncMode = I, Ye.ConcurrentMode = S, Ye.ContextConsumer = O, Ye.ContextProvider = j, Ye.Element = $, Ye.ForwardRef = D, Ye.Fragment = F, Ye.Lazy = R, Ye.Memo = J, Ye.Portal = ce, Ye.Profiler = ue, Ye.StrictMode = me, Ye.Suspense = Ne, Ye.isAsyncMode = Me, Ye.isConcurrentMode = y, Ye.isContextConsumer = G, Ye.isContextProvider = ie, Ye.isElement = A, Ye.isForwardRef = ne, Ye.isFragment = se, Ye.isLazy = re, Ye.isMemo = le, Ye.isPortal = q, Ye.isProfiler = ee, Ye.isStrictMode = oe, Ye.isSuspense = ve, Ye.isValidElementType = x, Ye.typeOf = w;
828
+ Ye.AsyncMode = I, Ye.ConcurrentMode = S, Ye.ContextConsumer = O, Ye.ContextProvider = j, Ye.Element = $, Ye.ForwardRef = D, Ye.Fragment = F, Ye.Lazy = R, Ye.Memo = J, Ye.Portal = ce, Ye.Profiler = ue, Ye.StrictMode = ge, Ye.Suspense = Ne, Ye.isAsyncMode = Me, Ye.isConcurrentMode = y, Ye.isContextConsumer = G, Ye.isContextProvider = ie, Ye.isElement = A, Ye.isForwardRef = ne, Ye.isFragment = se, Ye.isLazy = re, Ye.isMemo = le, Ye.isPortal = q, Ye.isProfiler = ee, Ye.isStrictMode = oe, Ye.isSuspense = ve, Ye.isValidElementType = x, Ye.typeOf = w;
829
829
  }()), Ye;
830
830
  }
831
831
  var vo;
@@ -1020,7 +1020,7 @@ function gf() {
1020
1020
  }
1021
1021
  function _(y) {
1022
1022
  function G(ie, A, ne, se, re, le) {
1023
- var q = ie[A], ee = me(q);
1023
+ var q = ie[A], ee = ge(q);
1024
1024
  if (ee !== y) {
1025
1025
  var oe = Ne(q);
1026
1026
  return new C(
@@ -1041,7 +1041,7 @@ function gf() {
1041
1041
  return new C("Property `" + re + "` of component `" + ne + "` has invalid PropType notation inside arrayOf.");
1042
1042
  var le = ie[A];
1043
1043
  if (!Array.isArray(le)) {
1044
- var q = me(le);
1044
+ var q = ge(le);
1045
1045
  return new C("Invalid " + se + " `" + re + "` of type " + ("`" + q + "` supplied to `" + ne + "`, expected an array."));
1046
1046
  }
1047
1047
  for (var ee = 0; ee < le.length; ee++) {
@@ -1057,7 +1057,7 @@ function gf() {
1057
1057
  function y(G, ie, A, ne, se) {
1058
1058
  var re = G[ie];
1059
1059
  if (!s(re)) {
1060
- var le = me(re);
1060
+ var le = ge(re);
1061
1061
  return new C("Invalid " + ne + " `" + se + "` of type " + ("`" + le + "` supplied to `" + A + "`, expected a single ReactElement."));
1062
1062
  }
1063
1063
  return null;
@@ -1068,7 +1068,7 @@ function gf() {
1068
1068
  function y(G, ie, A, ne, se) {
1069
1069
  var re = G[ie];
1070
1070
  if (!e.isValidElementType(re)) {
1071
- var le = me(re);
1071
+ var le = ge(re);
1072
1072
  return new C("Invalid " + ne + " `" + se + "` of type " + ("`" + le + "` supplied to `" + A + "`, expected a single ReactElement type."));
1073
1073
  }
1074
1074
  return null;
@@ -1106,7 +1106,7 @@ function gf() {
1106
1106
  function G(ie, A, ne, se, re) {
1107
1107
  if (typeof y != "function")
1108
1108
  return new C("Property `" + re + "` of component `" + ne + "` has invalid PropType notation inside objectOf.");
1109
- var le = ie[A], q = me(le);
1109
+ var le = ie[A], q = ge(le);
1110
1110
  if (q !== "object")
1111
1111
  return new C("Invalid " + se + " `" + re + "` of type " + ("`" + q + "` supplied to `" + ne + "`, expected an object."));
1112
1112
  for (var ee in le)
@@ -1154,7 +1154,7 @@ function gf() {
1154
1154
  }
1155
1155
  function R(y) {
1156
1156
  function G(ie, A, ne, se, re) {
1157
- var le = ie[A], q = me(le);
1157
+ var le = ie[A], q = ge(le);
1158
1158
  if (q !== "object")
1159
1159
  return new C("Invalid " + se + " `" + re + "` of type `" + q + "` " + ("supplied to `" + ne + "`, expected `object`."));
1160
1160
  for (var ee in y) {
@@ -1171,7 +1171,7 @@ function gf() {
1171
1171
  }
1172
1172
  function J(y) {
1173
1173
  function G(ie, A, ne, se, re) {
1174
- var le = ie[A], q = me(le);
1174
+ var le = ie[A], q = ge(le);
1175
1175
  if (q !== "object")
1176
1176
  return new C("Invalid " + se + " `" + re + "` of type `" + q + "` " + ("supplied to `" + ne + "`, expected `object`."));
1177
1177
  var ee = t({}, ie[A], y);
@@ -1228,14 +1228,14 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1228
1228
  function ue(y, G) {
1229
1229
  return y === "symbol" ? !0 : G ? G["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && G instanceof Symbol : !1;
1230
1230
  }
1231
- function me(y) {
1231
+ function ge(y) {
1232
1232
  var G = typeof y;
1233
1233
  return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : ue(G, y) ? "symbol" : G;
1234
1234
  }
1235
1235
  function Ne(y) {
1236
1236
  if (typeof y > "u" || y === null)
1237
1237
  return "" + y;
1238
- var G = me(y);
1238
+ var G = ge(y);
1239
1239
  if (G === "object") {
1240
1240
  if (y instanceof Date)
1241
1241
  return "date";
@@ -1416,11 +1416,11 @@ var Ra = /* @__PURE__ */ function(e) {
1416
1416
  var u = this.props;
1417
1417
  u.sitekey, u.onChange, u.theme, u.type, u.tabindex, u.onExpired, u.onErrored, u.size, u.stoken, u.grecaptcha, u.badge, u.hl, u.isolated;
1418
1418
  var a = Tf(u, yf);
1419
- return /* @__PURE__ */ he.createElement("div", Zi({}, a, {
1419
+ return /* @__PURE__ */ pe.createElement("div", Zi({}, a, {
1420
1420
  ref: this.handleRecaptchaRef
1421
1421
  }));
1422
1422
  }, t;
1423
- }(he.Component);
1423
+ }(pe.Component);
1424
1424
  Ra.displayName = "ReCAPTCHA";
1425
1425
  Ra.propTypes = {
1426
1426
  sitekey: qt.string.isRequired,
@@ -1981,7 +1981,7 @@ const ih = (e) => {
1981
1981
  return e;
1982
1982
  }
1983
1983
  };
1984
- var Re = /* @__PURE__ */ ((e) => (e.New = "NEW", e.Pending = "PENDING", e.Completed = "COMPLETED", e.Cancelled = "CANCELLED", e.Expired = "EXPIRED", e.FullDeliveryFailure = "FULL_DELIVERY_FAILURE", e.PartiallyDelivered = "PARTIALLY_DELIVERED", e.Refunded = "REFUNDED", e.Failed = "FAILED", e))(Re || {}), Ee = /* @__PURE__ */ ((e) => (e.PENDING = "PENDING", e.APPROVED = "APPROVED", e.DECLINED = "DECLINED", e.AUTO_APPROVED = "AUTO_APPROVED", e.CANCELLED = "CANCELLED", e.EXPIRED = "EXPIRED", e.PROCESSING = "PROCESSING", e.COMPLETED = "COMPLETED", e))(Ee || {}), Ze = /* @__PURE__ */ ((e) => (e.Text = "TEXT", e.Serial = "SERIALS", e.Ebook = "EBOOK", e.Link = "LINK", e.Download = "DOWNLOAD", e.Discord = "DISCORD", e.Telegram = "TELEGRAM", e.Custom = "CUSTOM", e))(Ze || {}), Zn = /* @__PURE__ */ ((e) => (e.RIAL = "RIAL", e.AWAITING_PAYMENT = "AWAITING_PAYMENT", e.ACTIVE = "ACTIVE", e.PAST_DUE = "PAST_DUE", e.CANCELLED = "CANCELLED", e.EXPIRED = "EXPIRED", e.CHANGED_GATEWAY = "CHANGED_GATEWAY", e.REPLACED = "REPLACED", e))(Zn || {});
1984
+ var Re = /* @__PURE__ */ ((e) => (e.New = "NEW", e.Pending = "PENDING", e.Completed = "COMPLETED", e.Cancelled = "CANCELLED", e.Expired = "EXPIRED", e.FullDeliveryFailure = "FULL_DELIVERY_FAILURE", e.PartiallyDelivered = "PARTIALLY_DELIVERED", e.Refunded = "REFUNDED", e.Failed = "FAILED", e))(Re || {}), fe = /* @__PURE__ */ ((e) => (e.PENDING = "PENDING", e.APPROVED = "APPROVED", e.DECLINED = "DECLINED", e.AUTO_APPROVED = "AUTO_APPROVED", e.CANCELLED = "CANCELLED", e.EXPIRED = "EXPIRED", e.PROCESSING = "PROCESSING", e.COMPLETED = "COMPLETED", e.FAILED = "FAILED", e))(fe || {}), Ze = /* @__PURE__ */ ((e) => (e.Text = "TEXT", e.Serial = "SERIALS", e.Ebook = "EBOOK", e.Link = "LINK", e.Download = "DOWNLOAD", e.Discord = "DISCORD", e.Telegram = "TELEGRAM", e.Custom = "CUSTOM", e))(Ze || {}), Zn = /* @__PURE__ */ ((e) => (e.RIAL = "RIAL", e.AWAITING_PAYMENT = "AWAITING_PAYMENT", e.ACTIVE = "ACTIVE", e.PAST_DUE = "PAST_DUE", e.CANCELLED = "CANCELLED", e.EXPIRED = "EXPIRED", e.CHANGED_GATEWAY = "CHANGED_GATEWAY", e.REPLACED = "REPLACED", e))(Zn || {});
1985
1985
  const Fa = async (e) => (await K2(e)).data, sh = async () => {
1986
1986
  var n;
1987
1987
  const t = (await F2()).data;
@@ -3600,7 +3600,7 @@ function I3(e, t, n, r) {
3600
3600
  if (e.listIndent = e.blkIndent, e.blkIndent = j, e.tight = !0, e.tShift[o] = S - e.bMarks[o], e.sCount[o] = I, S >= u && e.isEmpty(o + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, o, n, !0), (!e.tight || _) && (l = !1), _ = e.line - o > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = J, e.tShift[o] = F, e.sCount[o] = R, e.tight = D, s = e.push("list_item_close", "li", -1), s.markup = String.fromCharCode(g), o = e.line, $[1] = o, o >= n || e.sCount[o] < e.blkIndent || e.sCount[o] - e.blkIndent >= 4)
3601
3601
  break;
3602
3602
  let ce = !1;
3603
- for (let ue = 0, me = N.length; ue < me; ue++)
3603
+ for (let ue = 0, ge = N.length; ue < ge; ue++)
3604
3604
  if (N[ue](e, o, n, !0)) {
3605
3605
  ce = !0;
3606
3606
  break;
@@ -5402,10 +5402,10 @@ function D6(e, t) {
5402
5402
  var L6 = function() {
5403
5403
  return Math.random().toString(36).substring(6);
5404
5404
  }, P6 = function(e) {
5405
- var t = e.animate, n = t === void 0 ? !0 : t, r = e.backgroundColor, u = r === void 0 ? "#f5f6f7" : r, a = e.backgroundOpacity, i = a === void 0 ? 1 : a, s = e.baseUrl, o = s === void 0 ? "" : s, l = e.children, h = e.foregroundColor, f = h === void 0 ? "#eee" : h, m = e.foregroundOpacity, p = m === void 0 ? 1 : m, g = e.gradientRatio, C = g === void 0 ? 2 : g, E = e.uniqueKey, _ = e.rtl, N = _ === void 0 ? !1 : _, x = e.speed, w = x === void 0 ? 1.2 : x, I = e.style, S = I === void 0 ? {} : I, O = e.title, j = O === void 0 ? "Loading..." : O, $ = e.beforeMask, D = $ === void 0 ? null : $, F = D6(e, ["animate", "backgroundColor", "backgroundOpacity", "baseUrl", "children", "foregroundColor", "foregroundOpacity", "gradientRatio", "uniqueKey", "rtl", "speed", "style", "title", "beforeMask"]), R = E || L6(), J = "".concat(R, "-diff"), ce = "".concat(R, "-animated-diff"), ue = "".concat(R, "-aria"), me = N ? { transform: "scaleX(-1)" } : null, Ne = "".concat(w, "s"), qe = "".concat(C * -1, " 0"), Me = "".concat(C, " 0");
5405
+ var t = e.animate, n = t === void 0 ? !0 : t, r = e.backgroundColor, u = r === void 0 ? "#f5f6f7" : r, a = e.backgroundOpacity, i = a === void 0 ? 1 : a, s = e.baseUrl, o = s === void 0 ? "" : s, l = e.children, h = e.foregroundColor, f = h === void 0 ? "#eee" : h, m = e.foregroundOpacity, p = m === void 0 ? 1 : m, g = e.gradientRatio, C = g === void 0 ? 2 : g, E = e.uniqueKey, _ = e.rtl, N = _ === void 0 ? !1 : _, x = e.speed, w = x === void 0 ? 1.2 : x, I = e.style, S = I === void 0 ? {} : I, O = e.title, j = O === void 0 ? "Loading..." : O, $ = e.beforeMask, D = $ === void 0 ? null : $, F = D6(e, ["animate", "backgroundColor", "backgroundOpacity", "baseUrl", "children", "foregroundColor", "foregroundOpacity", "gradientRatio", "uniqueKey", "rtl", "speed", "style", "title", "beforeMask"]), R = E || L6(), J = "".concat(R, "-diff"), ce = "".concat(R, "-animated-diff"), ue = "".concat(R, "-aria"), ge = N ? { transform: "scaleX(-1)" } : null, Ne = "".concat(w, "s"), qe = "".concat(C * -1, " 0"), Me = "".concat(C, " 0");
5406
5406
  return ft(
5407
5407
  "svg",
5408
- lr({ "aria-labelledby": ue, role: "img", style: lr(lr({}, S), me) }, F),
5408
+ lr({ "aria-labelledby": ue, role: "img", style: lr(lr({}, S), ge) }, F),
5409
5409
  j ? ft("title", { id: ue }, j) : null,
5410
5410
  D && A2(D) ? D : null,
5411
5411
  ft("rect", { role: "presentation", x: "0", y: "0", width: "100%", height: "100%", clipPath: "url(".concat(o, "#").concat(J, ")"), style: { fill: "url(".concat(o, "#").concat(ce, ")") } }),
@@ -6780,7 +6780,7 @@ const k0 = ({ adaptiveStyles: e }) => {
6780
6780
  iconWrapper: Om,
6781
6781
  loader: Mm,
6782
6782
  title: Fm
6783
- }, Bm = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", P0 = (e) => /* @__PURE__ */ he.createElement("svg", { width: 20, height: 20, viewBox: "0 0 19 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ he.createElement("path", { d: "M0.0103662 23.5362C0.0538052 22.4425 0.370173 21.4309 1.08058 20.6127C1.92699 19.6379 2.91375 19.2329 4.14841 19.1732C4.162 20.1401 4.15111 21.1085 4.15091 22.0756L4.70583 22.0747L7.42027 22.0755C7.95952 22.0752 8.50027 22.0844 9.03933 22.0742L9.17755 22.0731L10.6132 22.0759C10.8265 22.0759 11.0767 22.1021 11.2852 22.0658C11.3052 22.0703 11.3534 22.0735 11.3625 22.0928C11.3917 22.1543 11.3688 31.0517 11.3725 31.9631C11.1563 32.0856 10.2676 31.8701 10.0303 31.7947C9.89866 31.7528 9.644 31.6914 9.54946 31.5874L9.51914 31.584C9.46943 31.5736 9.44171 31.5537 9.40126 31.5222C9.30218 31.5131 9.14954 31.4132 9.07718 31.343C9.00129 31.3163 8.92757 31.2576 8.85921 31.2134L8.85617 31.2002C8.5748 31.0715 8.14929 30.6244 7.94318 30.376C7.35205 29.6639 6.93892 28.7659 6.83493 27.8203C6.78763 27.3904 6.7994 26.9595 6.80055 26.5277C6.80084 26.4202 6.82996 26.126 6.78242 26.0387L6.71237 26.023C6.54382 26.0528 6.34316 26.0328 6.17124 26.0324L1.0194 26.0325L0.942306 26.0307C0.74237 26.0326 0.173082 26.0689 0.0224192 26.0192L0.00848581 26.0029C0.022853 25.8597 0.0136924 25.7065 0.013837 25.562L0.0113299 24.6651L0.0117161 24.5253C0.0150266 24.1956 0.0145767 23.8659 0.0103662 23.5362Z", fill: "currentColor" }), /* @__PURE__ */ he.createElement("path", { d: "M6.79824 0.00127802C6.88001 -0.000781892 6.96176 -0.000351703 7.04349 0.00256876C7.12523 0.00549261 7.20682 0.0108998 7.28827 0.0187905C7.36968 0.0266845 7.45082 0.0370518 7.53169 0.0498924C7.61259 0.0627296 7.69305 0.078018 7.77309 0.0957576C7.85312 0.113501 7.93259 0.133663 8.0115 0.156244C8.09044 0.178828 8.16868 0.203796 8.24624 0.231148C8.3238 0.258499 8.40053 0.28819 8.47645 0.32022C8.55237 0.352247 8.62736 0.386559 8.70141 0.423156L8.71428 0.423492C8.76476 0.450874 8.815 0.479135 8.8661 0.50516C8.947 0.550491 9.03065 0.593185 9.10687 0.646856L9.24939 0.733144C9.31674 0.78126 9.38361 0.83049 9.45202 0.87695C10.462 1.67615 11.1434 2.77146 11.325 4.10211C11.4076 4.70784 11.3729 5.34243 11.372 5.9541C11.4625 5.96599 11.5526 5.9664 11.6436 5.96762C12.6033 5.93794 13.5708 5.96289 14.5314 5.96294C15.459 5.96305 16.3927 5.93758 17.3195 5.9633C17.5874 5.96523 17.9062 6.00101 18.1677 5.95273C18.1496 6.13096 18.1583 6.31472 18.1585 6.49401L18.1598 7.38388L18.1595 7.51855C18.1591 7.83084 18.14 8.15609 18.1607 8.46685C18.109 9.73893 17.6972 10.8198 16.8003 11.6891C15.9969 12.4676 15.0894 12.76 14.0228 12.8194L14.021 10.9083C14.0209 10.5892 14.0389 10.2573 14.0163 9.93952C14.0002 9.92849 13.9879 9.91884 13.9692 9.9133C13.7941 9.93418 13.6055 9.92148 13.4293 9.92133H9.15258L9.04077 9.92082L7.56664 9.92209C7.31676 9.92224 7.04528 9.94526 6.79858 9.90893L6.79824 0.00127802Z", fill: "currentColor" }), /* @__PURE__ */ he.createElement("path", { d: "M4.13987 5.96279C4.65941 5.9653 5.17894 5.96467 5.69847 5.96091C5.70059 7.27995 5.71757 8.60219 5.69833 9.92082L4.15072 9.92046L4.15106 11.4065C4.15096 11.6783 4.1406 11.9555 4.15443 12.2266C4.73799 12.8393 5.31307 13.4655 5.90921 14.0644L5.98321 14.0407C6.25311 14.0833 6.6928 14.0501 6.97981 14.0499L12.7386 14.0492L13.5943 14.0482C13.7363 14.0479 13.9068 14.0286 14.0457 14.0577L15.8019 15.9078L15.8915 15.997L15.9615 16.0784L15.9955 16.1093L17.4221 17.6163C17.6528 17.8599 17.9077 18.0979 18.1211 18.3569C18.1463 18.3875 18.1599 18.4086 18.1691 18.4477C18.1415 18.6757 18.1577 18.9211 18.1579 19.1514L18.1594 20.4531C18.1597 21.8112 18.142 23.1721 18.1599 24.5297L18.1589 24.6625L18.158 25.5556C18.158 25.7089 18.1437 25.8808 18.1676 26.0315L18.0995 26.031L17.2568 26.0329L17.2101 26.0308C16.2512 26.0486 15.2892 26.0305 14.3299 26.0308C13.7488 26.031 13.0694 26.064 12.4959 26.0258L12.4831 26.0202C12.4481 25.9239 12.4717 22.4806 12.47 22.075L14.0216 22.0744C14.0024 21.3241 14.0324 20.5711 14.0173 19.8203C13.4629 19.2116 12.887 18.6041 12.3052 18.0244L12.293 17.9978C12.0554 18.0392 11.5401 18.0054 11.2777 18.0053L8.9362 18.0074C7.75375 17.9793 6.56306 18.0065 5.37994 18.0069C5.13497 18.007 4.32737 18.0401 4.13472 17.9962L2.36331 16.1262L2.29219 16.0566L2.21959 15.9758L2.15074 15.9102C1.93803 15.6694 1.70849 15.441 1.48797 15.2079L0 13.631C0.0383768 13.4512 0.014078 13.2231 0.013837 13.0369L0.0121494 11.9198L0.0113299 7.52017L0.0122943 7.34622C0.0134032 6.9143 0.0453199 6.37479 0.00371286 5.95329C0.115854 5.96772 0.229056 5.9664 0.341872 5.96777C0.589393 5.96198 0.836946 5.96042 1.08453 5.9631L3.10905 5.96548C3.44789 5.96554 3.80282 5.98825 4.13987 5.96279Z", fill: "currentColor" })), ic = ({ children: e }) => /* @__PURE__ */ c("div", { className: Dn.statContainer, children: e }), R0 = ({ adaptiveStyles: e }) => {
6783
+ }, Bm = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", P0 = (e) => /* @__PURE__ */ pe.createElement("svg", { width: 20, height: 20, viewBox: "0 0 19 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ pe.createElement("path", { d: "M0.0103662 23.5362C0.0538052 22.4425 0.370173 21.4309 1.08058 20.6127C1.92699 19.6379 2.91375 19.2329 4.14841 19.1732C4.162 20.1401 4.15111 21.1085 4.15091 22.0756L4.70583 22.0747L7.42027 22.0755C7.95952 22.0752 8.50027 22.0844 9.03933 22.0742L9.17755 22.0731L10.6132 22.0759C10.8265 22.0759 11.0767 22.1021 11.2852 22.0658C11.3052 22.0703 11.3534 22.0735 11.3625 22.0928C11.3917 22.1543 11.3688 31.0517 11.3725 31.9631C11.1563 32.0856 10.2676 31.8701 10.0303 31.7947C9.89866 31.7528 9.644 31.6914 9.54946 31.5874L9.51914 31.584C9.46943 31.5736 9.44171 31.5537 9.40126 31.5222C9.30218 31.5131 9.14954 31.4132 9.07718 31.343C9.00129 31.3163 8.92757 31.2576 8.85921 31.2134L8.85617 31.2002C8.5748 31.0715 8.14929 30.6244 7.94318 30.376C7.35205 29.6639 6.93892 28.7659 6.83493 27.8203C6.78763 27.3904 6.7994 26.9595 6.80055 26.5277C6.80084 26.4202 6.82996 26.126 6.78242 26.0387L6.71237 26.023C6.54382 26.0528 6.34316 26.0328 6.17124 26.0324L1.0194 26.0325L0.942306 26.0307C0.74237 26.0326 0.173082 26.0689 0.0224192 26.0192L0.00848581 26.0029C0.022853 25.8597 0.0136924 25.7065 0.013837 25.562L0.0113299 24.6651L0.0117161 24.5253C0.0150266 24.1956 0.0145767 23.8659 0.0103662 23.5362Z", fill: "currentColor" }), /* @__PURE__ */ pe.createElement("path", { d: "M6.79824 0.00127802C6.88001 -0.000781892 6.96176 -0.000351703 7.04349 0.00256876C7.12523 0.00549261 7.20682 0.0108998 7.28827 0.0187905C7.36968 0.0266845 7.45082 0.0370518 7.53169 0.0498924C7.61259 0.0627296 7.69305 0.078018 7.77309 0.0957576C7.85312 0.113501 7.93259 0.133663 8.0115 0.156244C8.09044 0.178828 8.16868 0.203796 8.24624 0.231148C8.3238 0.258499 8.40053 0.28819 8.47645 0.32022C8.55237 0.352247 8.62736 0.386559 8.70141 0.423156L8.71428 0.423492C8.76476 0.450874 8.815 0.479135 8.8661 0.50516C8.947 0.550491 9.03065 0.593185 9.10687 0.646856L9.24939 0.733144C9.31674 0.78126 9.38361 0.83049 9.45202 0.87695C10.462 1.67615 11.1434 2.77146 11.325 4.10211C11.4076 4.70784 11.3729 5.34243 11.372 5.9541C11.4625 5.96599 11.5526 5.9664 11.6436 5.96762C12.6033 5.93794 13.5708 5.96289 14.5314 5.96294C15.459 5.96305 16.3927 5.93758 17.3195 5.9633C17.5874 5.96523 17.9062 6.00101 18.1677 5.95273C18.1496 6.13096 18.1583 6.31472 18.1585 6.49401L18.1598 7.38388L18.1595 7.51855C18.1591 7.83084 18.14 8.15609 18.1607 8.46685C18.109 9.73893 17.6972 10.8198 16.8003 11.6891C15.9969 12.4676 15.0894 12.76 14.0228 12.8194L14.021 10.9083C14.0209 10.5892 14.0389 10.2573 14.0163 9.93952C14.0002 9.92849 13.9879 9.91884 13.9692 9.9133C13.7941 9.93418 13.6055 9.92148 13.4293 9.92133H9.15258L9.04077 9.92082L7.56664 9.92209C7.31676 9.92224 7.04528 9.94526 6.79858 9.90893L6.79824 0.00127802Z", fill: "currentColor" }), /* @__PURE__ */ pe.createElement("path", { d: "M4.13987 5.96279C4.65941 5.9653 5.17894 5.96467 5.69847 5.96091C5.70059 7.27995 5.71757 8.60219 5.69833 9.92082L4.15072 9.92046L4.15106 11.4065C4.15096 11.6783 4.1406 11.9555 4.15443 12.2266C4.73799 12.8393 5.31307 13.4655 5.90921 14.0644L5.98321 14.0407C6.25311 14.0833 6.6928 14.0501 6.97981 14.0499L12.7386 14.0492L13.5943 14.0482C13.7363 14.0479 13.9068 14.0286 14.0457 14.0577L15.8019 15.9078L15.8915 15.997L15.9615 16.0784L15.9955 16.1093L17.4221 17.6163C17.6528 17.8599 17.9077 18.0979 18.1211 18.3569C18.1463 18.3875 18.1599 18.4086 18.1691 18.4477C18.1415 18.6757 18.1577 18.9211 18.1579 19.1514L18.1594 20.4531C18.1597 21.8112 18.142 23.1721 18.1599 24.5297L18.1589 24.6625L18.158 25.5556C18.158 25.7089 18.1437 25.8808 18.1676 26.0315L18.0995 26.031L17.2568 26.0329L17.2101 26.0308C16.2512 26.0486 15.2892 26.0305 14.3299 26.0308C13.7488 26.031 13.0694 26.064 12.4959 26.0258L12.4831 26.0202C12.4481 25.9239 12.4717 22.4806 12.47 22.075L14.0216 22.0744C14.0024 21.3241 14.0324 20.5711 14.0173 19.8203C13.4629 19.2116 12.887 18.6041 12.3052 18.0244L12.293 17.9978C12.0554 18.0392 11.5401 18.0054 11.2777 18.0053L8.9362 18.0074C7.75375 17.9793 6.56306 18.0065 5.37994 18.0069C5.13497 18.007 4.32737 18.0401 4.13472 17.9962L2.36331 16.1262L2.29219 16.0566L2.21959 15.9758L2.15074 15.9102C1.93803 15.6694 1.70849 15.441 1.48797 15.2079L0 13.631C0.0383768 13.4512 0.014078 13.2231 0.013837 13.0369L0.0121494 11.9198L0.0113299 7.52017L0.0122943 7.34622C0.0134032 6.9143 0.0453199 6.37479 0.00371286 5.95329C0.115854 5.96772 0.229056 5.9664 0.341872 5.96777C0.589393 5.96198 0.836946 5.96042 1.08453 5.9631L3.10905 5.96548C3.44789 5.96554 3.80282 5.98825 4.13987 5.96279Z", fill: "currentColor" })), ic = ({ children: e }) => /* @__PURE__ */ c("div", { className: Dn.statContainer, children: e }), R0 = ({ adaptiveStyles: e }) => {
6784
6784
  var f, m, p;
6785
6785
  const [t, n] = Y.useState(null), { setBalanceSettings: r } = Gt(), { pageContext: u } = _2(), { general: a, isAntistock: i } = ze();
6786
6786
  console.log(a);
@@ -7333,20 +7333,20 @@ function C5(e) {
7333
7333
  return [t, n, r];
7334
7334
  }
7335
7335
  function E5(e) {
7336
- let t = he.useRef();
7337
- return he.useEffect(() => {
7336
+ let t = pe.useRef();
7337
+ return pe.useEffect(() => {
7338
7338
  t.current = e;
7339
7339
  }), t.current;
7340
7340
  }
7341
7341
  var y5 = 18, B0 = 40, T5 = `${B0}px`, x5 = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
7342
7342
  function k5({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
7343
- let [u, a] = he.useState(!1), [i, s] = he.useState(!1), [o, l] = he.useState(!1), h = he.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && u && i, [u, i, n]), f = he.useCallback(() => {
7343
+ let [u, a] = pe.useState(!1), [i, s] = pe.useState(!1), [o, l] = pe.useState(!1), h = pe.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && u && i, [u, i, n]), f = pe.useCallback(() => {
7344
7344
  let m = e.current, p = t.current;
7345
7345
  if (!m || !p || o || n === "none") return;
7346
7346
  let g = m, C = g.getBoundingClientRect().left + g.offsetWidth, E = g.getBoundingClientRect().top + g.offsetHeight / 2, _ = C - y5, N = E;
7347
7347
  document.querySelectorAll(x5).length === 0 && document.elementFromPoint(_, N) === m || (a(!0), l(!0));
7348
7348
  }, [e, t, o, n]);
7349
- return he.useEffect(() => {
7349
+ return pe.useEffect(() => {
7350
7350
  let m = e.current;
7351
7351
  if (!m || n === "none") return;
7352
7352
  function p() {
@@ -7358,7 +7358,7 @@ function k5({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
7358
7358
  return () => {
7359
7359
  clearInterval(g);
7360
7360
  };
7361
- }, [e, n]), he.useEffect(() => {
7361
+ }, [e, n]), pe.useEffect(() => {
7362
7362
  let m = r || document.activeElement === t.current;
7363
7363
  if (n === "none" || !m) return;
7364
7364
  let p = setTimeout(f, 0), g = setTimeout(f, 2e3), C = setTimeout(f, 5e3), E = setTimeout(() => {
@@ -7369,25 +7369,25 @@ function k5({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
7369
7369
  };
7370
7370
  }, [t, r, n, f]), { hasPWMBadge: u, willPushPWMBadge: h, PWM_BADGE_SPACE_WIDTH: T5 };
7371
7371
  }
7372
- var A5 = he.createContext({}), H0 = he.forwardRef((e, t) => {
7372
+ var A5 = pe.createContext({}), H0 = pe.forwardRef((e, t) => {
7373
7373
  var n = e, { value: r, onChange: u, maxLength: a, textAlign: i = "left", pattern: s, placeholder: o, inputMode: l = "numeric", onComplete: h, pushPasswordManagerStrategy: f = "increase-width", pasteTransformer: m, containerClassName: p, noScriptCSSFallback: g = I5, render: C, children: E } = n, _ = _5(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), N, x, w, I, S;
7374
- let [O, j] = he.useState(typeof _.defaultValue == "string" ? _.defaultValue : ""), $ = r ?? O, D = E5($), F = he.useCallback((P) => {
7374
+ let [O, j] = pe.useState(typeof _.defaultValue == "string" ? _.defaultValue : ""), $ = r ?? O, D = E5($), F = pe.useCallback((P) => {
7375
7375
  u == null || u(P), j(P);
7376
- }, [u]), R = he.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), J = he.useRef(null), ce = he.useRef(null), ue = he.useRef({ value: $, onChange: F, isIOS: typeof window < "u" && ((x = (N = window == null ? void 0 : window.CSS) == null ? void 0 : N.supports) == null ? void 0 : x.call(N, "-webkit-touch-callout", "none")) }), me = he.useRef({ prev: [(w = J.current) == null ? void 0 : w.selectionStart, (I = J.current) == null ? void 0 : I.selectionEnd, (S = J.current) == null ? void 0 : S.selectionDirection] });
7377
- he.useImperativeHandle(t, () => J.current, []), he.useEffect(() => {
7376
+ }, [u]), R = pe.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), J = pe.useRef(null), ce = pe.useRef(null), ue = pe.useRef({ value: $, onChange: F, isIOS: typeof window < "u" && ((x = (N = window == null ? void 0 : window.CSS) == null ? void 0 : N.supports) == null ? void 0 : x.call(N, "-webkit-touch-callout", "none")) }), ge = pe.useRef({ prev: [(w = J.current) == null ? void 0 : w.selectionStart, (I = J.current) == null ? void 0 : I.selectionEnd, (S = J.current) == null ? void 0 : S.selectionDirection] });
7377
+ pe.useImperativeHandle(t, () => J.current, []), pe.useEffect(() => {
7378
7378
  let P = J.current, Z = ce.current;
7379
7379
  if (!P || !Z) return;
7380
- ue.current.value !== P.value && ue.current.onChange(P.value), me.current.prev = [P.selectionStart, P.selectionEnd, P.selectionDirection];
7381
- function fe() {
7380
+ ue.current.value !== P.value && ue.current.onChange(P.value), ge.current.prev = [P.selectionStart, P.selectionEnd, P.selectionDirection];
7381
+ function he() {
7382
7382
  if (document.activeElement !== P) {
7383
7383
  ie(null), ne(null);
7384
7384
  return;
7385
7385
  }
7386
- let be = P.selectionStart, Ce = P.selectionEnd, Be = P.selectionDirection, He = P.maxLength, Ot = P.value, Ut = me.current.prev, Nn = -1, B = -1, Q;
7387
- if (Ot.length !== 0 && be !== null && Ce !== null) {
7388
- let Kt = be === Ce, Un = be === Ot.length && Ot.length < He;
7386
+ let _e = P.selectionStart, Ee = P.selectionEnd, Be = P.selectionDirection, He = P.maxLength, Ot = P.value, Ut = ge.current.prev, Nn = -1, B = -1, Q;
7387
+ if (Ot.length !== 0 && _e !== null && Ee !== null) {
7388
+ let Kt = _e === Ee, Un = _e === Ot.length && Ot.length < He;
7389
7389
  if (Kt && !Un) {
7390
- let St = be;
7390
+ let St = _e;
7391
7391
  if (St === 0) Nn = 0, B = 1, Q = "forward";
7392
7392
  else if (St === He) Nn = St - 1, B = St, Q = "backward";
7393
7393
  else if (He > 1 && Ot.length > 1) {
@@ -7402,62 +7402,62 @@ var A5 = he.createContext({}), H0 = he.forwardRef((e, t) => {
7402
7402
  }
7403
7403
  Nn !== -1 && B !== -1 && Nn !== B && J.current.setSelectionRange(Nn, B, Q);
7404
7404
  }
7405
- let _e = Nn !== -1 ? Nn : be, Le = B !== -1 ? B : Ce, Xe = Q ?? Be;
7406
- ie(_e), ne(Le), me.current.prev = [_e, Le, Xe];
7405
+ let Ce = Nn !== -1 ? Nn : _e, Le = B !== -1 ? B : Ee, Xe = Q ?? Be;
7406
+ ie(Ce), ne(Le), ge.current.prev = [Ce, Le, Xe];
7407
7407
  }
7408
- if (document.addEventListener("selectionchange", fe, { capture: !0 }), fe(), document.activeElement === P && y(!0), !document.getElementById("input-otp-style")) {
7409
- let be = document.createElement("style");
7410
- if (be.id = "input-otp-style", document.head.appendChild(be), be.sheet) {
7411
- let Ce = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
7412
- iu(be.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), iu(be.sheet, `[data-input-otp]:autofill { ${Ce} }`), iu(be.sheet, `[data-input-otp]:-webkit-autofill { ${Ce} }`), iu(be.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), iu(be.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
7408
+ if (document.addEventListener("selectionchange", he, { capture: !0 }), he(), document.activeElement === P && y(!0), !document.getElementById("input-otp-style")) {
7409
+ let _e = document.createElement("style");
7410
+ if (_e.id = "input-otp-style", document.head.appendChild(_e), _e.sheet) {
7411
+ let Ee = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
7412
+ iu(_e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), iu(_e.sheet, `[data-input-otp]:autofill { ${Ee} }`), iu(_e.sheet, `[data-input-otp]:-webkit-autofill { ${Ee} }`), iu(_e.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), iu(_e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
7413
7413
  }
7414
7414
  }
7415
- let ge = () => {
7415
+ let be = () => {
7416
7416
  Z && Z.style.setProperty("--root-height", `${P.clientHeight}px`);
7417
7417
  };
7418
- ge();
7419
- let Te = new ResizeObserver(ge);
7418
+ be();
7419
+ let Te = new ResizeObserver(be);
7420
7420
  return Te.observe(P), () => {
7421
- document.removeEventListener("selectionchange", fe, { capture: !0 }), Te.disconnect();
7421
+ document.removeEventListener("selectionchange", he, { capture: !0 }), Te.disconnect();
7422
7422
  };
7423
7423
  }, []);
7424
- let [Ne, qe] = he.useState(!1), [Me, y] = he.useState(!1), [G, ie] = he.useState(null), [A, ne] = he.useState(null);
7425
- he.useEffect(() => {
7424
+ let [Ne, qe] = pe.useState(!1), [Me, y] = pe.useState(!1), [G, ie] = pe.useState(null), [A, ne] = pe.useState(null);
7425
+ pe.useEffect(() => {
7426
7426
  C5(() => {
7427
- var P, Z, fe, ge;
7427
+ var P, Z, he, be;
7428
7428
  (P = J.current) == null || P.dispatchEvent(new Event("input"));
7429
- let Te = (Z = J.current) == null ? void 0 : Z.selectionStart, be = (fe = J.current) == null ? void 0 : fe.selectionEnd, Ce = (ge = J.current) == null ? void 0 : ge.selectionDirection;
7430
- Te !== null && be !== null && (ie(Te), ne(be), me.current.prev = [Te, be, Ce]);
7429
+ let Te = (Z = J.current) == null ? void 0 : Z.selectionStart, _e = (he = J.current) == null ? void 0 : he.selectionEnd, Ee = (be = J.current) == null ? void 0 : be.selectionDirection;
7430
+ Te !== null && _e !== null && (ie(Te), ne(_e), ge.current.prev = [Te, _e, Ee]);
7431
7431
  });
7432
- }, [$, Me]), he.useEffect(() => {
7432
+ }, [$, Me]), pe.useEffect(() => {
7433
7433
  D !== void 0 && $ !== D && D.length < a && $.length === a && (h == null || h($));
7434
7434
  }, [a, h, D, $]);
7435
- let se = k5({ containerRef: ce, inputRef: J, pushPasswordManagerStrategy: f, isFocused: Me }), re = he.useCallback((P) => {
7435
+ let se = k5({ containerRef: ce, inputRef: J, pushPasswordManagerStrategy: f, isFocused: Me }), re = pe.useCallback((P) => {
7436
7436
  let Z = P.currentTarget.value.slice(0, a);
7437
7437
  if (Z.length > 0 && R && !R.test(Z)) {
7438
7438
  P.preventDefault();
7439
7439
  return;
7440
7440
  }
7441
7441
  typeof D == "string" && Z.length < D.length && document.dispatchEvent(new Event("selectionchange")), F(Z);
7442
- }, [a, F, D, R]), le = he.useCallback(() => {
7442
+ }, [a, F, D, R]), le = pe.useCallback(() => {
7443
7443
  var P;
7444
7444
  if (J.current) {
7445
- let Z = Math.min(J.current.value.length, a - 1), fe = J.current.value.length;
7446
- (P = J.current) == null || P.setSelectionRange(Z, fe), ie(Z), ne(fe);
7445
+ let Z = Math.min(J.current.value.length, a - 1), he = J.current.value.length;
7446
+ (P = J.current) == null || P.setSelectionRange(Z, he), ie(Z), ne(he);
7447
7447
  }
7448
7448
  y(!0);
7449
- }, [a]), q = he.useCallback((P) => {
7450
- var Z, fe;
7451
- let ge = J.current;
7452
- if (!m && (!ue.current.isIOS || !P.clipboardData || !ge)) return;
7453
- let Te = P.clipboardData.getData("text/plain"), be = m ? m(Te) : Te;
7449
+ }, [a]), q = pe.useCallback((P) => {
7450
+ var Z, he;
7451
+ let be = J.current;
7452
+ if (!m && (!ue.current.isIOS || !P.clipboardData || !be)) return;
7453
+ let Te = P.clipboardData.getData("text/plain"), _e = m ? m(Te) : Te;
7454
7454
  P.preventDefault();
7455
- let Ce = (Z = J.current) == null ? void 0 : Z.selectionStart, Be = (fe = J.current) == null ? void 0 : fe.selectionEnd, He = (Ce !== Be ? $.slice(0, Ce) + be + $.slice(Be) : $.slice(0, Ce) + be + $.slice(Ce)).slice(0, a);
7455
+ let Ee = (Z = J.current) == null ? void 0 : Z.selectionStart, Be = (he = J.current) == null ? void 0 : he.selectionEnd, He = (Ee !== Be ? $.slice(0, Ee) + _e + $.slice(Be) : $.slice(0, Ee) + _e + $.slice(Ee)).slice(0, a);
7456
7456
  if (He.length > 0 && R && !R.test(He)) return;
7457
- ge.value = He, F(He);
7457
+ be.value = He, F(He);
7458
7458
  let Ot = Math.min(He.length, a - 1), Ut = He.length;
7459
- ge.setSelectionRange(Ot, Ut), ie(Ot), ne(Ut);
7460
- }, [a, F, R, $]), ee = he.useMemo(() => ({ position: "relative", cursor: _.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [_.disabled]), oe = he.useMemo(() => ({ position: "absolute", inset: 0, width: se.willPushPWMBadge ? `calc(100% + ${se.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: se.willPushPWMBadge ? `inset(0 ${se.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [se.PWM_BADGE_SPACE_WIDTH, se.willPushPWMBadge, i]), ve = he.useMemo(() => he.createElement("input", b5(g5({ autoComplete: _.autoComplete || "one-time-code" }, _), { "data-input-otp": !0, "data-input-otp-placeholder-shown": $.length === 0 || void 0, "data-input-otp-mss": G, "data-input-otp-mse": A, inputMode: l, pattern: R == null ? void 0 : R.source, "aria-placeholder": o, style: oe, maxLength: a, value: $, ref: J, onPaste: (P) => {
7459
+ be.setSelectionRange(Ot, Ut), ie(Ot), ne(Ut);
7460
+ }, [a, F, R, $]), ee = pe.useMemo(() => ({ position: "relative", cursor: _.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [_.disabled]), oe = pe.useMemo(() => ({ position: "absolute", inset: 0, width: se.willPushPWMBadge ? `calc(100% + ${se.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: se.willPushPWMBadge ? `inset(0 ${se.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [se.PWM_BADGE_SPACE_WIDTH, se.willPushPWMBadge, i]), ve = pe.useMemo(() => pe.createElement("input", b5(g5({ autoComplete: _.autoComplete || "one-time-code" }, _), { "data-input-otp": !0, "data-input-otp-placeholder-shown": $.length === 0 || void 0, "data-input-otp-mss": G, "data-input-otp-mse": A, inputMode: l, pattern: R == null ? void 0 : R.source, "aria-placeholder": o, style: oe, maxLength: a, value: $, ref: J, onPaste: (P) => {
7461
7461
  var Z;
7462
7462
  q(P), (Z = _.onPaste) == null || Z.call(_, P);
7463
7463
  }, onChange: re, onMouseOver: (P) => {
@@ -7472,12 +7472,12 @@ var A5 = he.createContext({}), H0 = he.forwardRef((e, t) => {
7472
7472
  }, onBlur: (P) => {
7473
7473
  var Z;
7474
7474
  y(!1), (Z = _.onBlur) == null || Z.call(_, P);
7475
- } })), [re, le, q, l, oe, a, A, G, _, R == null ? void 0 : R.source, $]), U = he.useMemo(() => ({ slots: Array.from({ length: a }).map((P, Z) => {
7476
- var fe;
7477
- let ge = Me && G !== null && A !== null && (G === A && Z === G || Z >= G && Z < A), Te = $[Z] !== void 0 ? $[Z] : null, be = $[0] !== void 0 ? null : (fe = o == null ? void 0 : o[Z]) != null ? fe : null;
7478
- return { char: Te, placeholderChar: be, isActive: ge, hasFakeCaret: ge && Te === null };
7479
- }), isFocused: Me, isHovering: !_.disabled && Ne }), [Me, Ne, a, A, G, _.disabled, $]), V = he.useMemo(() => C ? C(U) : he.createElement(A5.Provider, { value: U }, E), [E, U, C]);
7480
- return he.createElement(he.Fragment, null, g !== null && he.createElement("noscript", null, he.createElement("style", null, g)), he.createElement("div", { ref: ce, "data-input-otp-container": !0, style: ee, className: p }, V, he.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ve)));
7475
+ } })), [re, le, q, l, oe, a, A, G, _, R == null ? void 0 : R.source, $]), U = pe.useMemo(() => ({ slots: Array.from({ length: a }).map((P, Z) => {
7476
+ var he;
7477
+ let be = Me && G !== null && A !== null && (G === A && Z === G || Z >= G && Z < A), Te = $[Z] !== void 0 ? $[Z] : null, _e = $[0] !== void 0 ? null : (he = o == null ? void 0 : o[Z]) != null ? he : null;
7478
+ return { char: Te, placeholderChar: _e, isActive: be, hasFakeCaret: be && Te === null };
7479
+ }), isFocused: Me, isHovering: !_.disabled && Ne }), [Me, Ne, a, A, G, _.disabled, $]), V = pe.useMemo(() => C ? C(U) : pe.createElement(A5.Provider, { value: U }, E), [E, U, C]);
7480
+ return pe.createElement(pe.Fragment, null, g !== null && pe.createElement("noscript", null, pe.createElement("style", null, g)), pe.createElement("div", { ref: ce, "data-input-otp-container": !0, style: ee, className: p }, V, pe.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ve)));
7481
7481
  });
7482
7482
  H0.displayName = "Input";
7483
7483
  function iu(e, t) {
@@ -7579,7 +7579,7 @@ const j5 = (e) => {
7579
7579
  ]
7580
7580
  }
7581
7581
  ), V0 = ({ error: e }) => e ? /* @__PURE__ */ c("div", { className: dt.formError, children: e }) : null, $0 = () => {
7582
- const [e, t] = pe(""), [n, r] = pe(null), [u, a] = pe(!1), { executeRecaptcha: i } = Oa(), { setOtpRequest: s } = Gt(), { isAntistock: o } = ze();
7582
+ const [e, t] = me(""), [n, r] = me(null), [u, a] = me(!1), { executeRecaptcha: i } = Oa(), { setOtpRequest: s } = Gt(), { isAntistock: o } = ze();
7583
7583
  return /* @__PURE__ */ b(
7584
7584
  "form",
7585
7585
  {
@@ -7653,7 +7653,7 @@ const j5 = (e) => {
7653
7653
  }
7654
7654
  );
7655
7655
  }, z0 = ({ onSignIn: e }) => {
7656
- const { otpRequest: t, setOtpRequest: n } = Gt(), { isAntistock: r } = ze(), [u, a] = pe(""), [i, s] = pe(null), [o, l] = pe(!1), { executeRecaptcha: h } = Oa(), f = async () => {
7656
+ const { otpRequest: t, setOtpRequest: n } = Gt(), { isAntistock: r } = ze(), [u, a] = me(""), [i, s] = me(null), [o, l] = me(!1), { executeRecaptcha: h } = Oa(), f = async () => {
7657
7657
  s(null);
7658
7658
  const p = G5(u);
7659
7659
  if (p) {
@@ -9176,7 +9176,7 @@ const Q4 = {
9176
9176
  replacementLabel: l,
9177
9177
  replacementAmount: h
9178
9178
  }) => {
9179
- const f = Math.max(0, n), [m, p] = pe(!1), [g, C] = pe(!1), { priceAdjustment: E } = hn(), { isAntistock: _ } = ze(), { settings: N } = Cs(), x = {
9179
+ const f = Math.max(0, n), [m, p] = me(!1), [g, C] = me(!1), { priceAdjustment: E } = hn(), { isAntistock: _ } = ze(), { settings: N } = Cs(), x = {
9180
9180
  isDiscount: !1,
9181
9181
  fixedAmount: 10,
9182
9182
  percentage: 10
@@ -9429,7 +9429,7 @@ const Q4 = {
9429
9429
  const t = e.type;
9430
9430
  return t === Ze.Text || t === Ze.Custom || t === Ze.Serial || t === Ze.Discord ? /* @__PURE__ */ c(a9, { deliveryConfiguration: e }) : /* @__PURE__ */ c(i9, { deliveryConfiguration: e });
9431
9431
  }, a9 = ({ deliveryConfiguration: e }) => {
9432
- const t = e.type, [n, r] = pe(!1), { setIsOpen: u } = ut(), { isAntistock: a } = ze(), i = () => {
9432
+ const t = e.type, [n, r] = me(!1), { setIsOpen: u } = ut(), { isAntistock: a } = ze(), i = () => {
9433
9433
  u(!0), r(!0);
9434
9434
  };
9435
9435
  return /* @__PURE__ */ b($e, { children: [
@@ -9522,7 +9522,7 @@ const Q4 = {
9522
9522
  onCancel: r
9523
9523
  }) => {
9524
9524
  var w, I;
9525
- const [u, a] = pe(!1), [i, s] = pe(!1), [o, l] = pe(!1), { setIsOpen: h } = ut(), { isAntistock: f } = ze(), { setNotifications: m, notifications: p } = Lt(), g = () => {
9525
+ const [u, a] = me(!1), [i, s] = me(!1), [o, l] = me(!1), { setIsOpen: h } = ut(), { isAntistock: f } = ze(), { setNotifications: m, notifications: p } = Lt(), g = () => {
9526
9526
  h(!0), a(!0);
9527
9527
  }, C = async () => {
9528
9528
  var S, O;
@@ -9613,34 +9613,37 @@ const Q4 = {
9613
9613
  $.href = j, $.download = `replacement-request-${e.id}.txt`, document.body.appendChild($), $.click(), document.body.removeChild($), URL.revokeObjectURL(j);
9614
9614
  }, N = (S) => {
9615
9615
  switch (S) {
9616
- case Ee.PENDING:
9617
- case Ee.PROCESSING:
9616
+ case fe.PENDING:
9617
+ case fe.PROCESSING:
9618
9618
  return Ve.statusPending;
9619
- case Ee.APPROVED:
9620
- case Ee.AUTO_APPROVED:
9621
- case Ee.COMPLETED:
9619
+ case fe.APPROVED:
9620
+ case fe.AUTO_APPROVED:
9621
+ case fe.COMPLETED:
9622
9622
  return Ve.statusApproved;
9623
- case Ee.DECLINED:
9623
+ case fe.DECLINED:
9624
+ case fe.FAILED:
9624
9625
  return Ve.statusDeclined;
9625
- case Ee.CANCELLED:
9626
- case Ee.EXPIRED:
9626
+ case fe.CANCELLED:
9627
+ case fe.EXPIRED:
9627
9628
  return Ve.statusCancelled;
9628
9629
  default:
9629
9630
  return Ve.statusPending;
9630
9631
  }
9631
9632
  }, x = (S) => {
9632
9633
  switch (S) {
9633
- case Ee.PENDING:
9634
- case Ee.PROCESSING:
9634
+ case fe.PENDING:
9635
+ case fe.PROCESSING:
9635
9636
  return "In Progress";
9636
- case Ee.APPROVED:
9637
- case Ee.AUTO_APPROVED:
9638
- case Ee.COMPLETED:
9637
+ case fe.APPROVED:
9638
+ case fe.AUTO_APPROVED:
9639
+ case fe.COMPLETED:
9639
9640
  return "Approved";
9640
- case Ee.DECLINED:
9641
+ case fe.DECLINED:
9641
9642
  return "Denied";
9642
- case Ee.CANCELLED:
9643
- case Ee.EXPIRED:
9643
+ case fe.FAILED:
9644
+ return "Failed";
9645
+ case fe.CANCELLED:
9646
+ case fe.EXPIRED:
9644
9647
  return "Cancelled";
9645
9648
  default:
9646
9649
  return "In Progress";
@@ -9663,10 +9666,10 @@ const Q4 = {
9663
9666
  /* @__PURE__ */ c("span", { className: te(Ve.statusBadge, N(e.status)), children: x(e.status) })
9664
9667
  ] }),
9665
9668
  /* @__PURE__ */ b("div", { className: Ve.replacementRequestDescription, children: [
9666
- (e.status === Ee.PENDING || e.status === Ee.PROCESSING) && "We're currently investigating your replacement. It may take a minimum of 24-48 hours for our team to get back to you.",
9667
- (e.status === Ee.APPROVED || e.status === Ee.AUTO_APPROVED || e.status === Ee.COMPLETED) && "We've approved your replacement request. Your replaced products are attached to this section.",
9668
- e.status === Ee.DECLINED && "We've denied your replacement request. You will not be able to request a replacement for these products in the future.",
9669
- (e.status === Ee.CANCELLED || e.status === Ee.EXPIRED) && "Your replacement request has been cancelled."
9669
+ (e.status === fe.PENDING || e.status === fe.PROCESSING) && "We're currently investigating your replacement. It may take a minimum of 24-48 hours for our team to get back to you.",
9670
+ (e.status === fe.APPROVED || e.status === fe.AUTO_APPROVED || e.status === fe.COMPLETED) && "We've approved your replacement request. Your replaced products are attached to this section.",
9671
+ e.status === fe.DECLINED && "We've denied your replacement request. You will not be able to request a replacement for these products in the future.",
9672
+ (e.status === fe.CANCELLED || e.status === fe.EXPIRED) && "Your replacement request has been cancelled."
9670
9673
  ] })
9671
9674
  ]
9672
9675
  }
@@ -9699,19 +9702,21 @@ const Q4 = {
9699
9702
  /* @__PURE__ */ b("div", { className: Ve.statusSection, children: [
9700
9703
  /* @__PURE__ */ c("span", { className: te(Ve.statusBadge, N(e.status)), children: x(e.status) }),
9701
9704
  /* @__PURE__ */ b("h4", { className: Ve.statusTitle, children: [
9702
- (e.status === Ee.PENDING || e.status === Ee.PROCESSING) && "Your Replacement Is In Progress",
9703
- (e.status === Ee.APPROVED || e.status === Ee.AUTO_APPROVED || e.status === Ee.COMPLETED) && "Your Replacement Was Approved",
9704
- e.status === Ee.DECLINED && "Your Replacement Was Denied",
9705
- (e.status === Ee.CANCELLED || e.status === Ee.EXPIRED) && "Your Replacement Was Cancelled"
9705
+ (e.status === fe.PENDING || e.status === fe.PROCESSING) && "Your Replacement Is In Progress",
9706
+ (e.status === fe.APPROVED || e.status === fe.AUTO_APPROVED || e.status === fe.COMPLETED) && "Your Replacement Was Approved",
9707
+ e.status === fe.DECLINED && "Your Replacement Was Denied",
9708
+ e.status === fe.FAILED && "Your Replacement Was Failed",
9709
+ (e.status === fe.CANCELLED || e.status === fe.EXPIRED) && "Your Replacement Was Cancelled"
9706
9710
  ] }),
9707
9711
  /* @__PURE__ */ b("p", { className: Ve.statusDescription, children: [
9708
- (e.status === Ee.PENDING || e.status === Ee.PROCESSING) && "We're currently investigating your request. It may take a minimum of 24-48 hours for our team to get back to you.",
9709
- (e.status === Ee.APPROVED || e.status === Ee.AUTO_APPROVED || e.status === Ee.COMPLETED) && "We've approved your replacement request. Your replaced products are attached below.",
9710
- e.status === Ee.DECLINED && "We've denied your replacement request. You will not be able to request a replacement for these products in the future.",
9711
- (e.status === Ee.CANCELLED || e.status === Ee.EXPIRED) && "Your replacement request has been cancelled."
9712
+ (e.status === fe.PENDING || e.status === fe.PROCESSING) && "We're currently investigating your request. It may take a minimum of 24-48 hours for our team to get back to you.",
9713
+ (e.status === fe.APPROVED || e.status === fe.AUTO_APPROVED || e.status === fe.COMPLETED) && "We've approved your replacement request. Your replaced products are attached below.",
9714
+ e.status === fe.DECLINED && "We've denied your replacement request. You will not be able to request a replacement for these products in the future.",
9715
+ e.status === fe.FAILED && "We've failed your replacement request. You will not be able to request a replacement for these products in the future.",
9716
+ (e.status === fe.CANCELLED || e.status === fe.EXPIRED) && "Your replacement request has been cancelled."
9712
9717
  ] })
9713
9718
  ] }),
9714
- (e.status === Ee.APPROVED || e.status === Ee.AUTO_APPROVED || e.status === Ee.COMPLETED) && /* @__PURE__ */ b($e, { children: [
9719
+ (e.status === fe.APPROVED || e.status === fe.AUTO_APPROVED || e.status === fe.COMPLETED) && /* @__PURE__ */ b($e, { children: [
9715
9720
  /* @__PURE__ */ b("div", { className: Ve.productsSection, children: [
9716
9721
  /* @__PURE__ */ b("div", { className: Ve.actionButtons, children: [
9717
9722
  /* @__PURE__ */ b(
@@ -9792,7 +9797,7 @@ const Q4 = {
9792
9797
  ] })
9793
9798
  ] })
9794
9799
  ] }),
9795
- /* @__PURE__ */ c("div", { className: Ve.replacementModalFooter, children: e.status === Ee.PENDING && /* @__PURE__ */ c(
9800
+ /* @__PURE__ */ c("div", { className: Ve.replacementModalFooter, children: e.status === fe.PENDING && /* @__PURE__ */ c(
9796
9801
  ae,
9797
9802
  {
9798
9803
  type: "Secondary",
@@ -9867,14 +9872,14 @@ const Q4 = {
9867
9872
  onSuccess: a,
9868
9873
  allowedReplacementReasons: i
9869
9874
  }) => {
9870
- const { isAntistock: s } = ze(), { setNotifications: o, notifications: l } = Lt(), [h, f] = pe([]), [m, p] = pe(!1), [g, C] = pe(!1), E = un(null), [_, N] = pe((i == null ? void 0 : i[0]) || ""), [x, w] = pe(""), [I, S] = pe(""), [O, j] = pe([]), [$, D] = pe(!1), [F, R] = pe({}), J = un(null), ce = un(null), ue = un(null), me = un(null), Ne = () => {
9875
+ const { isAntistock: s } = ze(), { setNotifications: o, notifications: l } = Lt(), [h, f] = me([]), [m, p] = me(!1), [g, C] = me(!1), E = un(null), [_, N] = me((i == null ? void 0 : i[0]) || ""), [x, w] = me(""), [I, S] = me(""), [O, j] = me([]), [$, D] = me(!1), [F, R] = me({}), J = un(null), ce = un(null), ue = un(null), ge = un(null), Ne = () => {
9871
9876
  var V;
9872
9877
  (V = E.current) == null || V.click();
9873
9878
  }, qe = Pl(async (V) => {
9874
- var fe;
9879
+ var he;
9875
9880
  const P = Array.from(V);
9876
- for (const ge of P) {
9877
- if (!ge.type.startsWith("image/")) {
9881
+ for (const be of P) {
9882
+ if (!be.type.startsWith("image/")) {
9878
9883
  o([
9879
9884
  ...l,
9880
9885
  {
@@ -9885,7 +9890,7 @@ const Q4 = {
9885
9890
  ]);
9886
9891
  return;
9887
9892
  }
9888
- if (ge.size > 10 * 1024 * 1024) {
9893
+ if (be.size > 10 * 1024 * 1024) {
9889
9894
  o([
9890
9895
  ...l,
9891
9896
  {
@@ -9897,11 +9902,11 @@ const Q4 = {
9897
9902
  return;
9898
9903
  }
9899
9904
  }
9900
- p(!0), R((ge) => ({ ...ge, images: void 0 }));
9901
- const Z = P.map(async (ge) => {
9902
- var Te, be, Ce, Be;
9905
+ p(!0), R((be) => ({ ...be, images: void 0 }));
9906
+ const Z = P.map(async (be) => {
9907
+ var Te, _e, Ee, Be;
9903
9908
  try {
9904
- const He = await Vl(ge), Ot = (be = (Te = He.data) == null ? void 0 : Te.data) == null ? void 0 : be.imageId, Ut = (Be = (Ce = He.data) == null ? void 0 : Ce.data) == null ? void 0 : Be.url;
9909
+ const He = await Vl(be), Ot = (_e = (Te = He.data) == null ? void 0 : Te.data) == null ? void 0 : _e.imageId, Ut = (Be = (Ee = He.data) == null ? void 0 : Ee.data) == null ? void 0 : Be.url;
9905
9910
  if (!Ot || !Ut)
9906
9911
  throw new Error(He.data.message || "Upload failed");
9907
9912
  return { id: Ot.toString(), url: Ut };
@@ -9910,22 +9915,22 @@ const Q4 = {
9910
9915
  }
9911
9916
  });
9912
9917
  try {
9913
- const ge = await Promise.all(Z);
9914
- f((Te) => [...Te, ...ge]);
9915
- } catch (ge) {
9916
- let Te = "Failed to upload images", be = "";
9917
- const Ce = ge;
9918
- if ((fe = Ce == null ? void 0 : Ce.response) != null && fe.data) {
9919
- const Be = Ce.response.data;
9920
- Be.message && Be.errors && Array.isArray(Be.errors) ? (be = Be.message, Te = Be.errors.join(", ")) : Be.errors && Array.isArray(Be.errors) ? Te = Be.errors.join(", ") : Be.message && (Te = Be.message);
9921
- } else ge instanceof Error && (Te = ge.message);
9918
+ const be = await Promise.all(Z);
9919
+ f((Te) => [...Te, ...be]);
9920
+ } catch (be) {
9921
+ let Te = "Failed to upload images", _e = "";
9922
+ const Ee = be;
9923
+ if ((he = Ee == null ? void 0 : Ee.response) != null && he.data) {
9924
+ const Be = Ee.response.data;
9925
+ Be.message && Be.errors && Array.isArray(Be.errors) ? (_e = Be.message, Te = Be.errors.join(", ")) : Be.errors && Array.isArray(Be.errors) ? Te = Be.errors.join(", ") : Be.message && (Te = Be.message);
9926
+ } else be instanceof Error && (Te = be.message);
9922
9927
  o([
9923
9928
  ...l,
9924
9929
  {
9925
9930
  id: Ie(),
9926
9931
  message: Te,
9927
9932
  status: "error",
9928
- label: be
9933
+ label: _e
9929
9934
  }
9930
9935
  ]);
9931
9936
  } finally {
@@ -9945,19 +9950,19 @@ const Q4 = {
9945
9950
  };
9946
9951
  bn(() => {
9947
9952
  const V = async (P) => {
9948
- var ge;
9953
+ var be;
9949
9954
  if (!e) return;
9950
- const Z = (ge = P.clipboardData) == null ? void 0 : ge.items;
9955
+ const Z = (be = P.clipboardData) == null ? void 0 : be.items;
9951
9956
  if (!Z) return;
9952
- const fe = [];
9957
+ const he = [];
9953
9958
  for (let Te = 0; Te < Z.length; Te++) {
9954
- const be = Z[Te];
9955
- if (be.type.startsWith("image/")) {
9956
- const Ce = be.getAsFile();
9957
- Ce && fe.push(Ce);
9959
+ const _e = Z[Te];
9960
+ if (_e.type.startsWith("image/")) {
9961
+ const Ee = _e.getAsFile();
9962
+ Ee && he.push(Ee);
9958
9963
  }
9959
9964
  }
9960
- fe.length > 0 && (P.preventDefault(), await qe(fe));
9965
+ he.length > 0 && (P.preventDefault(), await qe(he));
9961
9966
  };
9962
9967
  return e && document.addEventListener("paste", V), () => {
9963
9968
  document.removeEventListener("paste", V);
@@ -9972,7 +9977,7 @@ const Q4 = {
9972
9977
  keys: ["serialKey"],
9973
9978
  threshold: 0.4
9974
9979
  }), [se]), le = Yn(() => I.trim() ? re.search(I).map((V) => V.item) : se, [I, re, se]), q = (V) => {
9975
- f((P) => P.filter((Z, fe) => fe !== V));
9980
+ f((P) => P.filter((Z, he) => he !== V));
9976
9981
  }, ee = (V) => {
9977
9982
  j((P) => P.includes(V) ? P.filter((Z) => Z !== V) : [...P, V]), F.selectedItems && R((P) => ({ ...P, selectedItems: void 0 }));
9978
9983
  }, oe = () => {
@@ -9980,7 +9985,7 @@ const Q4 = {
9980
9985
  }, ve = () => {
9981
9986
  oe(), t();
9982
9987
  }, U = async () => {
9983
- var P, Z, fe, ge;
9988
+ var P, Z, he, be;
9984
9989
  R({});
9985
9990
  const V = {};
9986
9991
  if (O.length === 0 && (V.selectedItems = "Please select at least one item to replace"), h.length === 0 && (V.images = "Please add at least one image"), _.trim() || (V.reason = "Please select a reason for replacement"), Object.keys(V).length > 0) {
@@ -10016,7 +10021,7 @@ const Q4 = {
10016
10021
  const Te = await U2(r, u, {
10017
10022
  partOrderId: n.partOrderId,
10018
10023
  deliveryItemIds: O,
10019
- imageIds: h.map((be) => be.id),
10024
+ imageIds: h.map((_e) => _e.id),
10020
10025
  reason: _,
10021
10026
  message: x
10022
10027
  });
@@ -10027,25 +10032,25 @@ const Q4 = {
10027
10032
  message: ((P = Te.data) == null ? void 0 : P.message) || "Replacement request submitted successfully",
10028
10033
  status: "success"
10029
10034
  }
10030
- ]), (Z = Te.data) != null && Z.id && ((fe = Te.data) != null && fe.status) && (a == null || a({
10035
+ ]), (Z = Te.data) != null && Z.id && ((he = Te.data) != null && he.status) && (a == null || a({
10031
10036
  id: Te.data.id,
10032
10037
  status: Te.data.status
10033
10038
  })), ve();
10034
10039
  } catch (Te) {
10035
10040
  console.log({ error: Te });
10036
- let be = "Failed to submit replacement request", Ce = "";
10041
+ let _e = "Failed to submit replacement request", Ee = "";
10037
10042
  const Be = Te;
10038
- if ((ge = Be == null ? void 0 : Be.response) != null && ge.data) {
10043
+ if ((be = Be == null ? void 0 : Be.response) != null && be.data) {
10039
10044
  const He = Be.response.data;
10040
- He.message && He.errors && Array.isArray(He.errors) ? (Ce = He.message, be = He.errors.join(", ")) : He.errors && Array.isArray(He.errors) ? be = He.errors.join(", ") : He.message && (be = He.message);
10041
- } else Te instanceof Error && (be = Te.message);
10045
+ He.message && He.errors && Array.isArray(He.errors) ? (Ee = He.message, _e = He.errors.join(", ")) : He.errors && Array.isArray(He.errors) ? _e = He.errors.join(", ") : He.message && (_e = He.message);
10046
+ } else Te instanceof Error && (_e = Te.message);
10042
10047
  o([
10043
10048
  ...l,
10044
10049
  {
10045
10050
  id: Ie(),
10046
- message: be,
10051
+ message: _e,
10047
10052
  status: "error",
10048
- label: Ce
10053
+ label: Ee
10049
10054
  }
10050
10055
  ]);
10051
10056
  } finally {
@@ -10165,7 +10170,7 @@ const Q4 = {
10165
10170
  tabIndex: 0,
10166
10171
  children: /* @__PURE__ */ b("div", { className: xe.uploadContent, children: [
10167
10172
  /* @__PURE__ */ c("div", { className: xe.uploadIcon, children: /* @__PURE__ */ c(H, { name: "CloudArrowUpIcon" }) }),
10168
- /* @__PURE__ */ c("div", { className: xe.uploadText, ref: me, children: m ? /* @__PURE__ */ c(Eg, { isUploading: m, containerRef: me }) : /* @__PURE__ */ b($e, { children: [
10173
+ /* @__PURE__ */ c("div", { className: xe.uploadText, ref: ge, children: m ? /* @__PURE__ */ c(Eg, { isUploading: m, containerRef: ge }) : /* @__PURE__ */ b($e, { children: [
10169
10174
  /* @__PURE__ */ b("p", { children: [
10170
10175
  "Drop your images here, or ",
10171
10176
  /* @__PURE__ */ c("span", { className: xe.browseText, children: "tap to browse" })
@@ -10263,7 +10268,7 @@ const Q4 = {
10263
10268
  allowedReplacementReasons: a
10264
10269
  }) => {
10265
10270
  var E;
10266
- const { shopGeneral: i } = cn(), s = t.subscriptionSettings, { cart: o } = Pa(), { isAntistock: l } = ze(), [h, f] = pe(!1), { setIsOpen: m } = ut(), p = Yn(() => t.replacementRequests ? new Set(
10271
+ const { shopGeneral: i } = cn(), s = t.subscriptionSettings, { cart: o } = Pa(), { isAntistock: l } = ze(), [h, f] = me(!1), { setIsOpen: m } = ut(), p = Yn(() => t.replacementRequests ? new Set(
10267
10272
  t.replacementRequests.flatMap((_) => _.replacementItems || []).map((_) => _.originalSerialKey)
10268
10273
  ) : /* @__PURE__ */ new Set(), [t.replacementRequests]), g = Yn(() => {
10269
10274
  var N;
@@ -10448,7 +10453,7 @@ const Q4 = {
10448
10453
  couponInput: Sg,
10449
10454
  couponInputContainer: Ng
10450
10455
  }, vg = ({ applyCoupon: e, couponData: t, discount: n, removeCoupon: r, gateway: u }) => {
10451
- const [a, i] = pe(null), [s, o] = pe(!1), { isAntistock: l } = ze();
10456
+ const [a, i] = me(null), [s, o] = me(!1), { isAntistock: l } = ze();
10452
10457
  return /* @__PURE__ */ b("div", { className: Kn.coupon, children: [
10453
10458
  s && /* @__PURE__ */ c(
10454
10459
  Sr,
@@ -14360,7 +14365,7 @@ function NC(e, t, n) {
14360
14365
  return A === null || de(A) ? R(A) : Oe(A) ? (e.consume(A), F) : n(A);
14361
14366
  }
14362
14367
  function R(A) {
14363
- return A === 45 && u === 2 ? (e.consume(A), me) : A === 60 && u === 1 ? (e.consume(A), Ne) : A === 62 && u === 4 ? (e.consume(A), G) : A === 63 && u === 3 ? (e.consume(A), y) : A === 93 && u === 5 ? (e.consume(A), Me) : de(A) && (u === 6 || u === 7) ? (e.exit("htmlFlowData"), e.check(AC, ie, J)(A)) : A === null || de(A) ? (e.exit("htmlFlowData"), J(A)) : (e.consume(A), R);
14368
+ return A === 45 && u === 2 ? (e.consume(A), ge) : A === 60 && u === 1 ? (e.consume(A), Ne) : A === 62 && u === 4 ? (e.consume(A), G) : A === 63 && u === 3 ? (e.consume(A), y) : A === 93 && u === 5 ? (e.consume(A), Me) : de(A) && (u === 6 || u === 7) ? (e.exit("htmlFlowData"), e.check(AC, ie, J)(A)) : A === null || de(A) ? (e.exit("htmlFlowData"), J(A)) : (e.consume(A), R);
14364
14369
  }
14365
14370
  function J(A) {
14366
14371
  return e.check(IC, ce, ie)(A);
@@ -14371,7 +14376,7 @@ function NC(e, t, n) {
14371
14376
  function ue(A) {
14372
14377
  return A === null || de(A) ? J(A) : (e.enter("htmlFlowData"), R(A));
14373
14378
  }
14374
- function me(A) {
14379
+ function ge(A) {
14375
14380
  return A === 45 ? (e.consume(A), y) : R(A);
14376
14381
  }
14377
14382
  function Ne(A) {
@@ -14440,7 +14445,7 @@ function LC(e, t, n) {
14440
14445
  return y === 45 ? (e.consume(y), p) : f(y);
14441
14446
  }
14442
14447
  function p(y) {
14443
- return y === 62 ? me(y) : y === 45 ? m(y) : f(y);
14448
+ return y === 62 ? ge(y) : y === 45 ? m(y) : f(y);
14444
14449
  }
14445
14450
  function g(y) {
14446
14451
  const G = "CDATA[";
@@ -14453,16 +14458,16 @@ function LC(e, t, n) {
14453
14458
  return y === 93 ? (e.consume(y), _) : C(y);
14454
14459
  }
14455
14460
  function _(y) {
14456
- return y === 62 ? me(y) : y === 93 ? (e.consume(y), _) : C(y);
14461
+ return y === 62 ? ge(y) : y === 93 ? (e.consume(y), _) : C(y);
14457
14462
  }
14458
14463
  function N(y) {
14459
- return y === null || y === 62 ? me(y) : de(y) ? (i = N, Ne(y)) : (e.consume(y), N);
14464
+ return y === null || y === 62 ? ge(y) : de(y) ? (i = N, Ne(y)) : (e.consume(y), N);
14460
14465
  }
14461
14466
  function x(y) {
14462
14467
  return y === null ? n(y) : y === 63 ? (e.consume(y), w) : de(y) ? (i = x, Ne(y)) : (e.consume(y), x);
14463
14468
  }
14464
14469
  function w(y) {
14465
- return y === 62 ? me(y) : x(y);
14470
+ return y === 62 ? ge(y) : x(y);
14466
14471
  }
14467
14472
  function I(y) {
14468
14473
  return Bt(y) ? (e.consume(y), S) : n(y);
@@ -14471,13 +14476,13 @@ function LC(e, t, n) {
14471
14476
  return y === 45 || Dt(y) ? (e.consume(y), S) : O(y);
14472
14477
  }
14473
14478
  function O(y) {
14474
- return de(y) ? (i = O, Ne(y)) : Oe(y) ? (e.consume(y), O) : me(y);
14479
+ return de(y) ? (i = O, Ne(y)) : Oe(y) ? (e.consume(y), O) : ge(y);
14475
14480
  }
14476
14481
  function j(y) {
14477
14482
  return y === 45 || Dt(y) ? (e.consume(y), j) : y === 47 || y === 62 || et(y) ? $(y) : n(y);
14478
14483
  }
14479
14484
  function $(y) {
14480
- return y === 47 ? (e.consume(y), me) : y === 58 || y === 95 || Bt(y) ? (e.consume(y), D) : de(y) ? (i = $, Ne(y)) : Oe(y) ? (e.consume(y), $) : me(y);
14485
+ return y === 47 ? (e.consume(y), ge) : y === 58 || y === 95 || Bt(y) ? (e.consume(y), D) : de(y) ? (i = $, Ne(y)) : Oe(y) ? (e.consume(y), $) : ge(y);
14481
14486
  }
14482
14487
  function D(y) {
14483
14488
  return y === 45 || y === 46 || y === 58 || y === 95 || Dt(y) ? (e.consume(y), D) : F(y);
@@ -14497,7 +14502,7 @@ function LC(e, t, n) {
14497
14502
  function ue(y) {
14498
14503
  return y === 47 || y === 62 || et(y) ? $(y) : n(y);
14499
14504
  }
14500
- function me(y) {
14505
+ function ge(y) {
14501
14506
  return y === 62 ? (e.consume(y), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(y);
14502
14507
  }
14503
14508
  function Ne(y) {
@@ -15127,7 +15132,7 @@ function CE(e, t, n) {
15127
15132
  }
15128
15133
  function O(F, R) {
15129
15134
  return J;
15130
- function J(ce, ue, me) {
15135
+ function J(ce, ue, ge) {
15131
15136
  let Ne, qe, Me, y;
15132
15137
  return Array.isArray(ce) ? (
15133
15138
  /* c8 ignore next 1 */
@@ -15152,7 +15157,7 @@ function CE(e, t, n) {
15152
15157
  }
15153
15158
  }
15154
15159
  function ie(re) {
15155
- return Ne = re, qe = 0, re.length === 0 ? me : A(re[qe]);
15160
+ return Ne = re, qe = 0, re.length === 0 ? ge : A(re[qe]);
15156
15161
  }
15157
15162
  function A(re) {
15158
15163
  return le;
@@ -15172,7 +15177,7 @@ function CE(e, t, n) {
15172
15177
  return F(Me, y), ue;
15173
15178
  }
15174
15179
  function se(re) {
15175
- return y.restore(), ++qe < Ne.length ? A(Ne[qe]) : me;
15180
+ return y.restore(), ++qe < Ne.length ? A(Ne[qe]) : ge;
15176
15181
  }
15177
15182
  }
15178
15183
  }
@@ -15183,9 +15188,9 @@ function CE(e, t, n) {
15183
15188
  const F = g(), R = l.previous, J = l.currentConstruct, ce = l.events.length, ue = Array.from(s);
15184
15189
  return {
15185
15190
  from: ce,
15186
- restore: me
15191
+ restore: ge
15187
15192
  };
15188
- function me() {
15193
+ function ge() {
15189
15194
  r = F, l.previous = R, l.currentConstruct = J, l.events.length = ce, s = ue, D();
15190
15195
  }
15191
15196
  }
@@ -15332,7 +15337,7 @@ function vE(e) {
15332
15337
  transforms: [],
15333
15338
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
15334
15339
  enter: {
15335
- autolink: a(be),
15340
+ autolink: a(_e),
15336
15341
  autolinkProtocol: $,
15337
15342
  autolinkEmail: $,
15338
15343
  atxHeading: a(Z),
@@ -15352,19 +15357,19 @@ function vE(e) {
15352
15357
  definitionLabelString: i,
15353
15358
  definitionTitleString: i,
15354
15359
  emphasis: a(P),
15355
- hardBreakEscape: a(fe),
15356
- hardBreakTrailing: a(fe),
15357
- htmlFlow: a(ge, i),
15360
+ hardBreakEscape: a(he),
15361
+ hardBreakTrailing: a(he),
15362
+ htmlFlow: a(be, i),
15358
15363
  htmlFlowData: $,
15359
- htmlText: a(ge, i),
15364
+ htmlText: a(be, i),
15360
15365
  htmlTextData: $,
15361
15366
  image: a(Te),
15362
15367
  label: i,
15363
- link: a(be),
15368
+ link: a(_e),
15364
15369
  listItem: a(Be),
15365
15370
  listItemValue: m,
15366
- listOrdered: a(Ce, f),
15367
- listUnordered: a(Ce),
15371
+ listOrdered: a(Ee, f),
15372
+ listUnordered: a(Ee),
15368
15373
  paragraph: a(He),
15369
15374
  reference: A,
15370
15375
  referenceString: i,
@@ -15410,7 +15415,7 @@ function vE(e) {
15410
15415
  label: Me,
15411
15416
  labelText: qe,
15412
15417
  lineEnding: F,
15413
- link: o(me),
15418
+ link: o(ge),
15414
15419
  listItem: o(),
15415
15420
  listOrdered: o(),
15416
15421
  listUnordered: o(),
@@ -15434,7 +15439,7 @@ function vE(e) {
15434
15439
  type: "root",
15435
15440
  children: []
15436
15441
  };
15437
- const _e = {
15442
+ const Ce = {
15438
15443
  stack: [Q],
15439
15444
  tokenStack: [],
15440
15445
  config: t,
@@ -15457,11 +15462,11 @@ function vE(e) {
15457
15462
  const Kt = t[B[Xe][0]];
15458
15463
  D1.call(Kt, B[Xe][1].type) && Kt[B[Xe][1].type].call(Object.assign({
15459
15464
  sliceSerialize: B[Xe][2].sliceSerialize
15460
- }, _e), B[Xe][1]);
15465
+ }, Ce), B[Xe][1]);
15461
15466
  }
15462
- if (_e.tokenStack.length > 0) {
15463
- const Kt = _e.tokenStack[_e.tokenStack.length - 1];
15464
- (Kt[1] || Oc).call(_e, void 0, Kt[0]);
15467
+ if (Ce.tokenStack.length > 0) {
15468
+ const Kt = Ce.tokenStack[Ce.tokenStack.length - 1];
15469
+ (Kt[1] || Oc).call(Ce, void 0, Kt[0]);
15465
15470
  }
15466
15471
  for (Q.position = {
15467
15472
  start: Qn(B.length > 0 ? B[0][1].start : {
@@ -15478,9 +15483,9 @@ function vE(e) {
15478
15483
  Q = t.transforms[Xe](Q) || Q;
15479
15484
  return Q;
15480
15485
  }
15481
- function u(B, Q, _e) {
15486
+ function u(B, Q, Ce) {
15482
15487
  let Le = Q - 1, Xe = -1, Kt = !1, Un, St, Vn, mr;
15483
- for (; ++Le <= _e; ) {
15488
+ for (; ++Le <= Ce; ) {
15484
15489
  const Qt = B[Le];
15485
15490
  switch (Qt[1].type) {
15486
15491
  case "listUnordered":
@@ -15512,7 +15517,7 @@ function vE(e) {
15512
15517
  St && (B[St][1].type = "lineEndingBlank", Kt = !0), $n[1].type = "lineEnding", St = Dr;
15513
15518
  } else if (!($n[1].type === "linePrefix" || $n[1].type === "blockQuotePrefix" || $n[1].type === "blockQuotePrefixWhitespace" || $n[1].type === "blockQuoteMarker" || $n[1].type === "listItemIndent")) break;
15514
15519
  }
15515
- Vn && (!St || Vn < St) && (Un._spread = !0), Un.end = Object.assign({}, St ? B[St][1].start : Qt[1].end), B.splice(St || Le, 0, ["exit", Un, Qt[2]]), Le++, _e++;
15520
+ Vn && (!St || Vn < St) && (Un._spread = !0), Un.end = Object.assign({}, St ? B[St][1].start : Qt[1].end), B.splice(St || Le, 0, ["exit", Un, Qt[2]]), Le++, Ce++;
15516
15521
  }
15517
15522
  if (Qt[1].type === "listItemPrefix") {
15518
15523
  const Dr = {
@@ -15522,15 +15527,15 @@ function vE(e) {
15522
15527
  // @ts-expect-error: we’ll add `end` in a second.
15523
15528
  end: void 0
15524
15529
  };
15525
- Un = Dr, B.splice(Le, 0, ["enter", Dr, Qt[2]]), Le++, _e++, Vn = void 0, mr = !0;
15530
+ Un = Dr, B.splice(Le, 0, ["enter", Dr, Qt[2]]), Le++, Ce++, Vn = void 0, mr = !0;
15526
15531
  }
15527
15532
  }
15528
15533
  }
15529
- return B[Q][1]._spread = Kt, _e;
15534
+ return B[Q][1]._spread = Kt, Ce;
15530
15535
  }
15531
15536
  function a(B, Q) {
15532
- return _e;
15533
- function _e(Le) {
15537
+ return Ce;
15538
+ function Ce(Le) {
15534
15539
  s.call(this, B(Le), Le), Q && Q.call(this, Le);
15535
15540
  }
15536
15541
  }
@@ -15540,8 +15545,8 @@ function vE(e) {
15540
15545
  children: []
15541
15546
  });
15542
15547
  }
15543
- function s(B, Q, _e) {
15544
- this.stack[this.stack.length - 1].children.push(B), this.stack.push(B), this.tokenStack.push([Q, _e || void 0]), B.position = {
15548
+ function s(B, Q, Ce) {
15549
+ this.stack[this.stack.length - 1].children.push(B), this.stack.push(B), this.tokenStack.push([Q, Ce || void 0]), B.position = {
15545
15550
  start: Qn(Q.start),
15546
15551
  // @ts-expect-error: `end` will be patched later.
15547
15552
  end: void 0
@@ -15549,19 +15554,19 @@ function vE(e) {
15549
15554
  }
15550
15555
  function o(B) {
15551
15556
  return Q;
15552
- function Q(_e) {
15553
- B && B.call(this, _e), l.call(this, _e);
15557
+ function Q(Ce) {
15558
+ B && B.call(this, Ce), l.call(this, Ce);
15554
15559
  }
15555
15560
  }
15556
15561
  function l(B, Q) {
15557
- const _e = this.stack.pop(), Le = this.tokenStack.pop();
15562
+ const Ce = this.stack.pop(), Le = this.tokenStack.pop();
15558
15563
  if (Le)
15559
15564
  Le[0].type !== B.type && (Q ? Q.call(this, B, Le[0]) : (Le[1] || Oc).call(this, B, Le[0]));
15560
15565
  else throw new Error("Cannot close `" + B.type + "` (" + bu({
15561
15566
  start: B.start,
15562
15567
  end: B.end
15563
15568
  }) + "): it’s not open");
15564
- _e.position.end = Qn(B.end);
15569
+ Ce.position.end = Qn(B.end);
15565
15570
  }
15566
15571
  function h() {
15567
15572
  return Ks(this.stack.pop());
@@ -15595,8 +15600,8 @@ function vE(e) {
15595
15600
  Q.value = B.replace(/(\r?\n|\r)$/g, "");
15596
15601
  }
15597
15602
  function N(B) {
15598
- const Q = this.resume(), _e = this.stack[this.stack.length - 1];
15599
- _e.label = Q, _e.identifier = kn(this.sliceSerialize(B)).toLowerCase();
15603
+ const Q = this.resume(), Ce = this.stack[this.stack.length - 1];
15604
+ Ce.label = Q, Ce.identifier = kn(this.sliceSerialize(B)).toLowerCase();
15600
15605
  }
15601
15606
  function x() {
15602
15607
  const B = this.resume(), Q = this.stack[this.stack.length - 1];
@@ -15609,8 +15614,8 @@ function vE(e) {
15609
15614
  function I(B) {
15610
15615
  const Q = this.stack[this.stack.length - 1];
15611
15616
  if (!Q.depth) {
15612
- const _e = this.sliceSerialize(B).length;
15613
- Q.depth = _e;
15617
+ const Ce = this.sliceSerialize(B).length;
15618
+ Q.depth = Ce;
15614
15619
  }
15615
15620
  }
15616
15621
  function S() {
@@ -15624,13 +15629,13 @@ function vE(e) {
15624
15629
  this.data.setextHeadingSlurpLineEnding = void 0;
15625
15630
  }
15626
15631
  function $(B) {
15627
- const _e = this.stack[this.stack.length - 1].children;
15628
- let Le = _e[_e.length - 1];
15632
+ const Ce = this.stack[this.stack.length - 1].children;
15633
+ let Le = Ce[Ce.length - 1];
15629
15634
  (!Le || Le.type !== "text") && (Le = Ut(), Le.position = {
15630
15635
  start: Qn(B.start),
15631
15636
  // @ts-expect-error: we’ll add `end` later.
15632
15637
  end: void 0
15633
- }, _e.push(Le)), this.stack.push(Le);
15638
+ }, Ce.push(Le)), this.stack.push(Le);
15634
15639
  }
15635
15640
  function D(B) {
15636
15641
  const Q = this.stack.pop();
@@ -15639,8 +15644,8 @@ function vE(e) {
15639
15644
  function F(B) {
15640
15645
  const Q = this.stack[this.stack.length - 1];
15641
15646
  if (this.data.atHardBreak) {
15642
- const _e = Q.children[Q.children.length - 1];
15643
- _e.position.end = Qn(B.end), this.data.atHardBreak = void 0;
15647
+ const Ce = Q.children[Q.children.length - 1];
15648
+ Ce.position.end = Qn(B.end), this.data.atHardBreak = void 0;
15644
15649
  return;
15645
15650
  }
15646
15651
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Q.type) && ($.call(this, B), D.call(this, B));
@@ -15660,7 +15665,7 @@ function vE(e) {
15660
15665
  const B = this.resume(), Q = this.stack[this.stack.length - 1];
15661
15666
  Q.value = B;
15662
15667
  }
15663
- function me() {
15668
+ function ge() {
15664
15669
  const B = this.stack[this.stack.length - 1];
15665
15670
  if (this.data.inReference) {
15666
15671
  const Q = this.data.referenceType || "shortcut";
@@ -15679,16 +15684,16 @@ function vE(e) {
15679
15684
  this.data.referenceType = void 0;
15680
15685
  }
15681
15686
  function qe(B) {
15682
- const Q = this.sliceSerialize(B), _e = this.stack[this.stack.length - 2];
15683
- _e.label = IE(Q), _e.identifier = kn(Q).toLowerCase();
15687
+ const Q = this.sliceSerialize(B), Ce = this.stack[this.stack.length - 2];
15688
+ Ce.label = IE(Q), Ce.identifier = kn(Q).toLowerCase();
15684
15689
  }
15685
15690
  function Me() {
15686
- const B = this.stack[this.stack.length - 1], Q = this.resume(), _e = this.stack[this.stack.length - 1];
15687
- if (this.data.inReference = !0, _e.type === "link") {
15691
+ const B = this.stack[this.stack.length - 1], Q = this.resume(), Ce = this.stack[this.stack.length - 1];
15692
+ if (this.data.inReference = !0, Ce.type === "link") {
15688
15693
  const Le = B.children;
15689
- _e.children = Le;
15694
+ Ce.children = Le;
15690
15695
  } else
15691
- _e.alt = Q;
15696
+ Ce.alt = Q;
15692
15697
  }
15693
15698
  function y() {
15694
15699
  const B = this.resume(), Q = this.stack[this.stack.length - 1];
@@ -15705,16 +15710,16 @@ function vE(e) {
15705
15710
  this.data.referenceType = "collapsed";
15706
15711
  }
15707
15712
  function ne(B) {
15708
- const Q = this.resume(), _e = this.stack[this.stack.length - 1];
15709
- _e.label = Q, _e.identifier = kn(this.sliceSerialize(B)).toLowerCase(), this.data.referenceType = "full";
15713
+ const Q = this.resume(), Ce = this.stack[this.stack.length - 1];
15714
+ Ce.label = Q, Ce.identifier = kn(this.sliceSerialize(B)).toLowerCase(), this.data.referenceType = "full";
15710
15715
  }
15711
15716
  function se(B) {
15712
15717
  this.data.characterReferenceType = B.type;
15713
15718
  }
15714
15719
  function re(B) {
15715
- const Q = this.sliceSerialize(B), _e = this.data.characterReferenceType;
15720
+ const Q = this.sliceSerialize(B), Ce = this.data.characterReferenceType;
15716
15721
  let Le;
15717
- _e ? (Le = y1(Q, _e === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Le = Qs(Q);
15722
+ Ce ? (Le = y1(Q, Ce === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Le = Qs(Q);
15718
15723
  const Xe = this.stack[this.stack.length - 1];
15719
15724
  Xe.value += Le;
15720
15725
  }
@@ -15775,12 +15780,12 @@ function vE(e) {
15775
15780
  children: []
15776
15781
  };
15777
15782
  }
15778
- function fe() {
15783
+ function he() {
15779
15784
  return {
15780
15785
  type: "break"
15781
15786
  };
15782
15787
  }
15783
- function ge() {
15788
+ function be() {
15784
15789
  return {
15785
15790
  type: "html",
15786
15791
  value: ""
@@ -15794,7 +15799,7 @@ function vE(e) {
15794
15799
  alt: null
15795
15800
  };
15796
15801
  }
15797
- function be() {
15802
+ function _e() {
15798
15803
  return {
15799
15804
  type: "link",
15800
15805
  title: null,
@@ -15802,7 +15807,7 @@ function vE(e) {
15802
15807
  children: []
15803
15808
  };
15804
15809
  }
15805
- function Ce(B) {
15810
+ function Ee(B) {
15806
15811
  return {
15807
15812
  type: "list",
15808
15813
  ordered: B.type === "listOrdered",
@@ -27606,7 +27611,7 @@ const bo = () => {
27606
27611
  setReplacementConfig: j
27607
27612
  } = hn(), $ = w != null && w.authorized ? w.id : void 0, D = En(), F = Y.useMemo(() => e(), [r.parts]), [R, J] = Y.useState(
27608
27613
  null
27609
- ), [ce, ue] = Y.useState(!1), [me, Ne] = Y.useState(null), qe = !!((ve = R == null ? void 0 : R.priorityReplacement) != null && ve.enabled), Me = ce && qe, [y, G] = Y.useState(!1), { setIsOpen: ie } = ut(), { notifications: A, setNotifications: ne } = Lt();
27614
+ ), [ce, ue] = Y.useState(!1), [ge, Ne] = Y.useState(null), qe = !!((ve = R == null ? void 0 : R.priorityReplacement) != null && ve.enabled), Me = ce && qe, [y, G] = Y.useState(!1), { setIsOpen: ie } = ut(), { notifications: A, setNotifications: ne } = Lt();
27610
27615
  Y.useEffect(() => {
27611
27616
  const V = Io(r.parts, u).map((P) => P.type === ur.Checkbox ? {
27612
27617
  ...P,
@@ -27618,10 +27623,10 @@ const bo = () => {
27618
27623
  g((V) => {
27619
27624
  const P = new Map(V.map((Z) => [Z.name, Z]));
27620
27625
  return U.map((Z) => {
27621
- const fe = P.get(Z.name);
27622
- return fe && fe.value ? {
27626
+ const he = P.get(Z.name);
27627
+ return he && he.value ? {
27623
27628
  ...Z,
27624
- value: fe.value
27629
+ value: he.value
27625
27630
  } : Z.type === ur.Checkbox ? {
27626
27631
  ...Z,
27627
27632
  value: String(Z.defaultValue)
@@ -27648,39 +27653,39 @@ const bo = () => {
27648
27653
  });
27649
27654
  }), U.length > 0 ? (ne([...A, ...U]), !1) : !0;
27650
27655
  }, le = async (U) => {
27651
- var fe, ge, Te, be;
27656
+ var he, be, Te, _e;
27652
27657
  if (U.stopPropagation(), r.gateway === "Balance" && !_) {
27653
27658
  ie(!0), G(!0);
27654
27659
  return;
27655
27660
  }
27656
27661
  if (!re()) return;
27657
- const V = !!(R && ((fe = R.priorityReplacement) != null && fe.enabled));
27662
+ const V = !!(R && ((he = R.priorityReplacement) != null && he.enabled));
27658
27663
  if (V && !Me) {
27659
- ue(!0), me === null && ((ge = R == null ? void 0 : R.priorityReplacement) != null && ge.enabled) && (Ne("PRIORITY"), O(!0));
27664
+ ue(!0), ge === null && ((be = R == null ? void 0 : R.priorityReplacement) != null && be.enabled) && (Ne("PRIORITY"), O(!0));
27660
27665
  return;
27661
27666
  }
27662
- V || (Te = R == null ? void 0 : R.standardReplacement) != null && Te.enabled && !((be = R == null ? void 0 : R.priorityReplacement) != null && be.enabled) && (me === null && Ne("STANDARD"), O(!1));
27667
+ V || (Te = R == null ? void 0 : R.standardReplacement) != null && Te.enabled && !((_e = R == null ? void 0 : R.priorityReplacement) != null && _e.enabled) && (ge === null && Ne("STANDARD"), O(!1));
27663
27668
  const P = Object.fromEntries(
27664
- p.map((Ce) => [Ce.name, Ce.value || ""])
27669
+ p.map((Ee) => [Ee.name, Ee.value || ""])
27665
27670
  );
27666
27671
  s({ ...P }), $ && m.isEnabled && l($);
27667
27672
  const Z = await x();
27668
27673
  if (Z) {
27669
- const Ce = await a(Z), Be = JSON.parse(localStorage.getItem("orders") || "{}");
27674
+ const Ee = await a(Z), Be = JSON.parse(localStorage.getItem("orders") || "{}");
27670
27675
  if (Object.keys(Be).length > 10) {
27671
27676
  const He = Date.now() - 864e5;
27672
27677
  Object.keys(Be).forEach((Ot) => {
27673
27678
  Be[Ot].createdAt <= He && delete Be[Ot];
27674
27679
  });
27675
27680
  }
27676
- "order" in Ce ? Be[Ce.order.id] = {
27681
+ "order" in Ee ? Be[Ee.order.id] = {
27677
27682
  createdAt: Date.now(),
27678
- fullAccessToken: Ce.order.fullAccessToken
27679
- } : Be[Ce.id] = {
27683
+ fullAccessToken: Ee.order.fullAccessToken
27684
+ } : Be[Ee.id] = {
27680
27685
  createdAt: Date.now(),
27681
- fullAccessToken: Ce.fullAccessToken
27686
+ fullAccessToken: Ee.fullAccessToken
27682
27687
  }, localStorage.setItem("orders", JSON.stringify(Be)), D(
27683
- `/orders/${"order" in Ce ? Ce.order.id : Ce.id}/${"order" in Ce ? Ce.order.fullAccessToken : Ce.fullAccessToken}`
27688
+ `/orders/${"order" in Ee ? Ee.order.id : Ee.id}/${"order" in Ee ? Ee.order.fullAccessToken : Ee.fullAccessToken}`
27684
27689
  ), setTimeout(() => i(), 2e3);
27685
27690
  }
27686
27691
  };
@@ -27723,7 +27728,7 @@ const bo = () => {
27723
27728
  if (!U) return "USD";
27724
27729
  const V = u.find((Z) => Z.id === U.productId), P = V == null ? void 0 : V.variants.find((Z) => Z.id === U.productVariantId);
27725
27730
  if (P != null && P.gateways && r.gateway) {
27726
- const Z = P.gateways.find((fe) => fe.name === r.gateway && fe.overrodePrice);
27731
+ const Z = P.gateways.find((he) => he.name === r.gateway && he.overrodePrice);
27727
27732
  if (Z != null && Z.overrodePrice) return Z.overrodePrice.currency;
27728
27733
  }
27729
27734
  return (P == null ? void 0 : P.price.currency) || "USD";
@@ -27771,7 +27776,7 @@ const bo = () => {
27771
27776
  {
27772
27777
  config: R,
27773
27778
  totalAmount: o.totalWithDiscount ?? o.total,
27774
- selected: me,
27779
+ selected: ge,
27775
27780
  onSelect: q,
27776
27781
  onBack: () => ue(!1),
27777
27782
  formatter: oe
@@ -28639,7 +28644,7 @@ const bo = () => {
28639
28644
  modal: pv,
28640
28645
  header: mv
28641
28646
  }, f2 = ({ chargeId: e, setIsOpen: t }) => {
28642
- const [n, r] = pe(""), [u, a] = pe(""), { setIsOpen: i } = ut(), s = (h) => {
28647
+ const [n, r] = me(""), [u, a] = me(""), { setIsOpen: i } = ut(), s = (h) => {
28643
28648
  try {
28644
28649
  return new URL(h), !0;
28645
28650
  } catch {
@@ -29243,7 +29248,7 @@ const bo = () => {
29243
29248
  setIsOpen: t,
29244
29249
  subscription: n
29245
29250
  }) => {
29246
- const [r, u] = pe(null), [a, i] = pe(null), [s, o] = pe(null), { id: l, accessToken: h } = Es(), [f, m] = pe(!1), [p, g] = pe(!1), { setIsOpen: C } = ut();
29251
+ const [r, u] = me(null), [a, i] = me(null), [s, o] = me(null), { id: l, accessToken: h } = Es(), [f, m] = me(!1), [p, g] = me(!1), { setIsOpen: C } = ut();
29247
29252
  Y.useEffect(() => {
29248
29253
  e && m(!0);
29249
29254
  }, [e]);
@@ -29629,7 +29634,7 @@ const bo = () => {
29629
29634
  id: t,
29630
29635
  accessToken: n
29631
29636
  }) => {
29632
- const [r, u] = pe(!1), { setIsOpen: a } = ut();
29637
+ const [r, u] = me(!1), { setIsOpen: a } = ut();
29633
29638
  return /* @__PURE__ */ b($e, { children: [
29634
29639
  /* @__PURE__ */ b(
29635
29640
  "div",
@@ -30208,7 +30213,7 @@ const bo = () => {
30208
30213
  id: n,
30209
30214
  accessToken: r
30210
30215
  }) => {
30211
- const [u, a] = pe(0), [i, s] = pe(!1), [o, l] = pe(""), [h, f] = pe(""), { setIsOpen: m } = ut(), p = async () => {
30216
+ const [u, a] = me(0), [i, s] = me(!1), [o, l] = me(""), [h, f] = me(""), { setIsOpen: m } = ut(), p = async () => {
30212
30217
  if (!o) return;
30213
30218
  s(!0);
30214
30219
  const C = await q2(n, r, {
@@ -30440,9 +30445,9 @@ const bo = () => {
30440
30445
  shopDomain: a,
30441
30446
  onSuccess: i
30442
30447
  }) => {
30443
- const { isAntistock: s } = ze(), { setNotifications: o, notifications: l } = Lt(), { setIsOpen: h } = ut(), [f, m] = pe(null), [p, g] = pe(!1), [C, E] = pe(!1), [_, N] = pe(!1), x = un(null), [w, I] = pe(""), [S, O] = pe(""), [j, $] = pe(
30448
+ const { isAntistock: s } = ze(), { setNotifications: o, notifications: l } = Lt(), { setIsOpen: h } = ut(), [f, m] = me(null), [p, g] = me(!1), [C, E] = me(!1), [_, N] = me(!1), x = un(null), [w, I] = me(""), [S, O] = me(""), [j, $] = me(
30444
30449
  n.map((q) => q.id.toString())
30445
- ), [D, F] = pe(!1), [R, J] = pe({}), ce = un(null), ue = un(null), me = un(null), Ne = un(null), qe = () => {
30450
+ ), [D, F] = me(!1), [R, J] = me({}), ce = un(null), ue = un(null), ge = un(null), Ne = un(null), qe = () => {
30446
30451
  var q;
30447
30452
  (q = x.current) == null || q.click();
30448
30453
  }, Me = Pl(async (q) => {
@@ -30471,16 +30476,16 @@ const bo = () => {
30471
30476
  }
30472
30477
  g(!0), J((P) => ({ ...P, image: void 0 }));
30473
30478
  try {
30474
- const P = await Vl(q), Z = (oe = (ee = P.data) == null ? void 0 : ee.data) == null ? void 0 : oe.imageId, fe = (U = (ve = P.data) == null ? void 0 : ve.data) == null ? void 0 : U.url;
30475
- if (!Z || !fe)
30479
+ const P = await Vl(q), Z = (oe = (ee = P.data) == null ? void 0 : ee.data) == null ? void 0 : oe.imageId, he = (U = (ve = P.data) == null ? void 0 : ve.data) == null ? void 0 : U.url;
30480
+ if (!Z || !he)
30476
30481
  throw new Error(P.data.message || "Upload failed");
30477
- m({ id: Z.toString(), url: fe }), E(!0);
30482
+ m({ id: Z.toString(), url: he }), E(!0);
30478
30483
  } catch (P) {
30479
30484
  let Z = "Failed to upload image";
30480
- const fe = P;
30481
- if ((V = fe == null ? void 0 : fe.response) != null && V.data) {
30482
- const ge = fe.response.data;
30483
- ge.message && ge.errors && Array.isArray(ge.errors) || ge.errors && Array.isArray(ge.errors) ? Z = ge.errors.join(", ") : ge.message && (Z = ge.message);
30485
+ const he = P;
30486
+ if ((V = he == null ? void 0 : he.response) != null && V.data) {
30487
+ const be = he.response.data;
30488
+ be.message && be.errors && Array.isArray(be.errors) || be.errors && Array.isArray(be.errors) ? Z = be.errors.join(", ") : be.message && (Z = be.message);
30484
30489
  } else P instanceof Error && (Z = P.message);
30485
30490
  o([
30486
30491
  ...l,
@@ -30515,7 +30520,7 @@ const bo = () => {
30515
30520
  const q = {};
30516
30521
  if (j.length === 0 && (q.selectedProducts = "Please select at least one product"), f || (q.image = "Please upload a screenshot"), w.trim() || (q.message = "Please enter a message"), Object.keys(q).length > 0) {
30517
30522
  J(q), setTimeout(() => {
30518
- q.selectedProducts && ce.current ? ce.current.scrollIntoView({ behavior: "smooth", block: "center" }) : q.image && ue.current ? ue.current.scrollIntoView({ behavior: "smooth", block: "center" }) : q.message && me.current && me.current.scrollIntoView({ behavior: "smooth", block: "center" });
30523
+ q.selectedProducts && ce.current ? ce.current.scrollIntoView({ behavior: "smooth", block: "center" }) : q.image && ue.current ? ue.current.scrollIntoView({ behavior: "smooth", block: "center" }) : q.message && ge.current && ge.current.scrollIntoView({ behavior: "smooth", block: "center" });
30519
30524
  }, 100);
30520
30525
  return;
30521
30526
  }
@@ -30706,7 +30711,7 @@ const bo = () => {
30706
30711
  ),
30707
30712
  R.image && /* @__PURE__ */ c("div", { className: Se.fieldError, children: R.image })
30708
30713
  ] }),
30709
- /* @__PURE__ */ b("div", { className: Se.formField, ref: me, children: [
30714
+ /* @__PURE__ */ b("div", { className: Se.formField, ref: ge, children: [
30710
30715
  /* @__PURE__ */ c(
30711
30716
  Ou,
30712
30717
  {
@@ -30823,7 +30828,7 @@ const bo = () => {
30823
30828
  footer: RP,
30824
30829
  loaderContainer: OP
30825
30830
  }, MP = () => {
30826
- const { id: e } = Es(), [t, n] = Dl(), [r, u] = pe(!1), [a, i] = pe(), [s, o] = pe(!0), l = En(), h = un(), f = un(!1), { setIsOpen: m } = ut(), { isAntistock: p } = ze();
30831
+ const { id: e } = Es(), [t, n] = Dl(), [r, u] = me(!1), [a, i] = me(), [s, o] = me(!0), l = En(), h = un(), f = un(!1), { setIsOpen: m } = ut(), { isAntistock: p } = ze();
30827
30832
  return bn(() => {
30828
30833
  const g = async (E, _ = !1) => {
30829
30834
  _ || u(!0);