@billgangcom/theme-lib 1.116.2 → 1.116.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{builder-C7KDCjPK.cjs → builder-BbDQDQrb.cjs} +2 -2
  2. package/dist/{builder-q7_i-usP.js → builder-BxbzpE8L.js} +5 -5
  3. package/dist/{builder-components-DTCH52Zj.cjs → builder-components-D210UQ3i.cjs} +1 -1
  4. package/dist/{builder-components-C8GR-K0b.js → builder-components-D7GdWNk9.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-D5cvaKFj.js → charge-DUg5z8eK.js} +98 -87
  8. package/dist/{charge-CjJu8ZCC.cjs → charge-qTFpN1-9.cjs} +2 -2
  9. package/dist/{checkout-Dbu7YMSx.cjs → checkout-CY_mJip8.cjs} +1 -1
  10. package/dist/{checkout-CsTsjmHG.js → checkout-DE1hYKE4.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-BLeoCjpE.js → index-7rCRUMf-.js} +5 -5
  14. package/dist/{index-B1UP_MbR.cjs → index-BVnWKrze.cjs} +1 -1
  15. package/dist/{index-DU5z0tPJ.js → index-BZRtiGGG.js} +5 -5
  16. package/dist/{index-B-z0PneZ.cjs → index-ByxtRAc0.cjs} +1 -1
  17. package/dist/{index-DXroLqaD.cjs → index-C-CUeFbE.cjs} +1 -1
  18. package/dist/{index-C9TT9z5B.js → index-CHyxn7qG.js} +5 -5
  19. package/dist/{index-BbZMD5la.js → index-CVt4F5cd.js} +5 -5
  20. package/dist/{index-2oIkoScp.cjs → index-DG3V4uj_.cjs} +1 -1
  21. package/dist/{index-r9HLobSy.cjs → index-DKcDTB5C.cjs} +1 -1
  22. package/dist/{index-d8l00Hpw.js → index-xU7khwA8.js} +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/order-DI9sn7mR.cjs +1 -0
  26. package/dist/{order-Cveqw4gC.js → order-SRQ_7LpS.js} +17 -16
  27. package/dist/src/abstractions/PageContext.d.ts +9 -1
  28. package/dist/src/storefront/models/checkout.d.ts +1 -0
  29. package/dist/{subscription-BvsNAnoC.cjs → subscription-D4myRIdo.cjs} +1 -1
  30. package/dist/{subscription-Bz6FRE3J.js → subscription-DtKONUxk.js} +5 -5
  31. package/dist/{ticket-DU1t1M0h.js → ticket-CagcFJkx.js} +5 -5
  32. package/dist/{ticket-B90nYD05.cjs → ticket-Dj3SlggC.cjs} +1 -1
  33. package/dist/{top-up-CFc0wZAg.cjs → top-up-B1JOfumd.cjs} +1 -1
  34. package/dist/{top-up-2OMBI611.js → top-up-C01sQrCu.js} +5 -5
  35. package/dist/{ui-components-B79-9qoP.cjs → ui-components-DIzybKgf.cjs} +1 -1
  36. package/dist/{ui-components-BxH-lR8m.js → ui-components-yWvpA_6p.js} +4 -4
  37. package/dist/ui.cjs.js +1 -1
  38. package/dist/ui.es.js +1 -1
  39. package/dist/{validation-Crn-70HH.cjs → validation-BJICmiG6.cjs} +1 -1
  40. package/dist/{validation-DpREFoxz.js → validation-bJbqIOfB.js} +5 -5
  41. package/package.json +1 -1
  42. package/dist/order-d9OX_gLP.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { j as We, K as Ke, r as Ye, M as sn, N as jt, O as dn, Q as bs, U as fr, e as Dt, v as Ie, V as $e, W as _s, p as _n, f as ne, X as va, Y as Lr, Z as it, _ as Qe, J as rt, $ as xt, b as b2, u as _2, a as Cs, a0 as C2, a1 as E2, a2 as Au, a3 as Vi, a4 as y2, a5 as To, a6 as Dl, a7 as Es, a8 as wa, a9 as T2 } from "./builder-q7_i-usP.js";
1
+ import { j as We, K as Ke, r as Ye, M as sn, N as jt, O as dn, Q as bs, U as fr, e as Dt, v as Ae, V as $e, W as _s, p as _n, f as ne, X as va, Y as Lr, Z as it, _ as Qe, J as rt, $ as xt, b as b2, u as _2, a as Cs, a0 as C2, a1 as E2, a2 as Au, a3 as Vi, a4 as y2, a5 as To, a6 as Dl, a7 as Es, a8 as wa, a9 as T2 } from "./builder-BxbzpE8L.js";
2
2
  import { jsx as c, jsxs as b, Fragment as Fe } from "react/jsx-runtime";
3
3
  import * as pe from "react";
4
4
  import W, { useEffect as mn, forwardRef as Ll, createElement as dt, Component as x2, isValidElement as k2, useState as me, useRef as xn, useCallback as Pl, useMemo as Yn } from "react";
5
- import { I as H, e as Nt, f as gn, g as ae, S as Rl, M as Ht, W as A2, h as Ol, i as Ml, j as Ou, k as fa, R as I2 } from "./ui-components-BxH-lR8m.js";
6
- import { F as Fl } from "./builder-components-C8GR-K0b.js";
7
- import { T as Bl } from "./ticket-DU1t1M0h.js";
5
+ import { I as H, e as Nt, f as gn, g as ae, S as Rl, M as Ht, W as A2, h as Ol, i as Ml, j as Ou, k as fa, R as I2 } from "./ui-components-yWvpA_6p.js";
6
+ import { F as Fl } from "./builder-components-D7GdWNk9.js";
7
+ import { T as Bl } from "./ticket-CagcFJkx.js";
8
8
  import "react-dom";
9
- import { O as Hl } from "./order-Cveqw4gC.js";
10
- import { S as S2 } from "./subscription-Bz6FRE3J.js";
9
+ import { O as Hl } from "./order-SRQ_7LpS.js";
10
+ import { S as S2 } from "./subscription-DtKONUxk.js";
11
11
  const N2 = () => 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, v2 = ({
13
13
  children: e,
@@ -461,7 +461,7 @@ const uf = async (e, t, n, r) => {
461
461
  {
462
462
  message: "There should be a gateway for the coupon",
463
463
  status: "error",
464
- id: Ie()
464
+ id: Ae()
465
465
  }
466
466
  ]));
467
467
  const I = N.map((Y) => Y.productId);
@@ -477,7 +477,7 @@ const uf = async (e, t, n, r) => {
477
477
  {
478
478
  message: "Coupon is applied",
479
479
  status: "success",
480
- id: Ie()
480
+ id: Ae()
481
481
  }
482
482
  ]), i((V) => ({ ...V, coupon: C }));
483
483
  } catch (Y) {
@@ -487,7 +487,7 @@ const uf = async (e, t, n, r) => {
487
487
  {
488
488
  message: `Coupon is not applied: ${V.message}`,
489
489
  status: "error",
490
- id: Ie()
490
+ id: Ae()
491
491
  }
492
492
  ]), i((D) => ({ ...D, coupon: null })), o(null), h(!1);
493
493
  }
@@ -622,7 +622,7 @@ const uf = async (e, t, n, r) => {
622
622
  {
623
623
  message: `Failed to create order: ${w.message}`,
624
624
  status: "error",
625
- id: Ie()
625
+ id: Ae()
626
626
  }
627
627
  ]);
628
628
  }
@@ -656,7 +656,7 @@ const uf = async (e, t, n, r) => {
656
656
  {
657
657
  status: "success",
658
658
  message: "Successfully copied",
659
- id: Ie()
659
+ id: Ae()
660
660
  }
661
661
  ]);
662
662
  };
@@ -1656,7 +1656,7 @@ const Bf = Of(Ff, {
1656
1656
  {
1657
1657
  message: "[ReCAPTCHA] executeRecaptcha called before ref is ready",
1658
1658
  status: "error",
1659
- id: Ie()
1659
+ id: Ae()
1660
1660
  }
1661
1661
  ]), null;
1662
1662
  const i = await t.current.executeAsync();
@@ -1665,7 +1665,7 @@ const Bf = Of(Ff, {
1665
1665
  {
1666
1666
  message: "[ReCAPTCHA] Received empty token",
1667
1667
  status: "error",
1668
- id: Ie()
1668
+ id: Ae()
1669
1669
  }
1670
1670
  ]), null);
1671
1671
  } catch {
@@ -1674,7 +1674,7 @@ const Bf = Of(Ff, {
1674
1674
  {
1675
1675
  message: "[ReCAPTCHA] executeRecaptcha error",
1676
1676
  status: "error",
1677
- id: Ie()
1677
+ id: Ae()
1678
1678
  }
1679
1679
  ]), null;
1680
1680
  }
@@ -6439,7 +6439,7 @@ const x0 = ({ adaptiveStyles: e }) => {
6439
6439
  {
6440
6440
  message: "Order created successfully",
6441
6441
  status: "success",
6442
- id: Ie()
6442
+ id: Ae()
6443
6443
  }
6444
6444
  ]), p(`/charges/${R.data.chargeId}`);
6445
6445
  } catch (R) {
@@ -6449,7 +6449,7 @@ const x0 = ({ adaptiveStyles: e }) => {
6449
6449
  {
6450
6450
  message: `Order creation failed: ${J.message}`,
6451
6451
  status: "error",
6452
- id: Ie()
6452
+ id: Ae()
6453
6453
  }
6454
6454
  ]);
6455
6455
  } finally {
@@ -7037,7 +7037,7 @@ const x0 = ({ adaptiveStyles: e }) => {
7037
7037
  {
7038
7038
  message: "Reward claimed successfully",
7039
7039
  status: "success",
7040
- id: Ie()
7040
+ id: Ae()
7041
7041
  }
7042
7042
  ]);
7043
7043
  const f = await Is();
@@ -7048,7 +7048,7 @@ const x0 = ({ adaptiveStyles: e }) => {
7048
7048
  {
7049
7049
  message: "Failed to claim reward",
7050
7050
  status: "error",
7051
- id: Ie()
7051
+ id: Ae()
7052
7052
  }
7053
7053
  ]);
7054
7054
  }
@@ -7863,7 +7863,7 @@ const Q4 = () => typeof it > "u" ? (console.warn("Routes not available for Route
7863
7863
  {
7864
7864
  message: "Referral Code has been applied",
7865
7865
  status: "success",
7866
- id: Ie()
7866
+ id: Ae()
7867
7867
  }
7868
7868
  ]);
7869
7869
  } catch (m) {
@@ -7873,7 +7873,7 @@ const Q4 = () => typeof it > "u" ? (console.warn("Routes not available for Route
7873
7873
  {
7874
7874
  message: p.message,
7875
7875
  status: "error",
7876
- id: Ie()
7876
+ id: Ae()
7877
7877
  }
7878
7878
  ]);
7879
7879
  }
@@ -8279,7 +8279,7 @@ const Q4 = () => typeof it > "u" ? (console.warn("Routes not available for Route
8279
8279
  {
8280
8280
  message: "Link copied to clipboard",
8281
8281
  status: "success",
8282
- id: Ie()
8282
+ id: Ae()
8283
8283
  }
8284
8284
  ]);
8285
8285
  },
@@ -9530,7 +9530,7 @@ const K5 = {
9530
9530
  m([
9531
9531
  ...p,
9532
9532
  {
9533
- id: Ie(),
9533
+ id: Ae(),
9534
9534
  message: "Missing order information",
9535
9535
  status: "error"
9536
9536
  }
@@ -9543,7 +9543,7 @@ const K5 = {
9543
9543
  m([
9544
9544
  ...p,
9545
9545
  {
9546
- id: Ie(),
9546
+ id: Ae(),
9547
9547
  message: ((S = Y.data) == null ? void 0 : S.message) || "Replacement request cancelled successfully",
9548
9548
  status: "success"
9549
9549
  }
@@ -9558,7 +9558,7 @@ const K5 = {
9558
9558
  m([
9559
9559
  ...p,
9560
9560
  {
9561
- id: Ie(),
9561
+ id: Ae(),
9562
9562
  message: V,
9563
9563
  status: "error",
9564
9564
  label: D
@@ -9573,7 +9573,7 @@ const K5 = {
9573
9573
  m([
9574
9574
  ...p,
9575
9575
  {
9576
- id: Ie(),
9576
+ id: Ae(),
9577
9577
  message: "No products to copy",
9578
9578
  status: "error"
9579
9579
  }
@@ -9588,7 +9588,7 @@ const K5 = {
9588
9588
  m([
9589
9589
  ...p,
9590
9590
  {
9591
- id: Ie(),
9591
+ id: Ae(),
9592
9592
  message: "Copied to clipboard",
9593
9593
  status: "success"
9594
9594
  }
@@ -9599,7 +9599,7 @@ const K5 = {
9599
9599
  m([
9600
9600
  ...p,
9601
9601
  {
9602
- id: Ie(),
9602
+ id: Ae(),
9603
9603
  message: "No products to download",
9604
9604
  status: "error"
9605
9605
  }
@@ -9811,7 +9811,7 @@ const K5 = {
9811
9811
  }
9812
9812
  )
9813
9813
  ] });
9814
- }, M9 = "_replacementModal_1utwt_1", F9 = "_replacementModalAntistock_1utwt_12", B9 = "_replacementModalHeader_1utwt_17", H9 = "_title_1utwt_25", U9 = "_closeButton_1utwt_32", V9 = "_replacementModalContent_1utwt_46", $9 = "_bottomSheet_1utwt_53", z9 = "_content_1utwt_61", q9 = "_productReplaceContainer_1utwt_65", Z9 = "_scrollableBox_1utwt_76", W9 = "_searchContainer_1utwt_90", Y9 = "_productItem_1utwt_94", j9 = "_productItemError_1utwt_125", G9 = "_scrollIndicator_1utwt_129", X9 = "_noResults_1utwt_138", K9 = "_replacementForm_1utwt_148", Q9 = "_formField_1utwt_155", J9 = "_imagesSection_1utwt_174", eg = "_imagesTitle_1utwt_180", tg = "_requiredStar_1utwt_188", ng = "_uploadArea_1utwt_192", rg = "_uploadAreaDragOver_1utwt_206", ug = "_uploadAreaUploading_1utwt_211", ag = "_uploadAreaError_1utwt_217", ig = "_uploadContent_1utwt_224", sg = "_uploadIcon_1utwt_233", og = "_uploadText_1utwt_242", cg = "_uploadSubtext_1utwt_251", lg = "_browseText_1utwt_257", dg = "_imagesList_1utwt_268", fg = "_imageItem_1utwt_275", hg = "_imagePreview_1utwt_284", pg = "_removeButton_1utwt_290", mg = "_replacementModalFooter_1utwt_346", gg = "_fieldError_1utwt_352", bg = "_requestButton_1utwt_358", Ae = {
9814
+ }, M9 = "_replacementModal_1utwt_1", F9 = "_replacementModalAntistock_1utwt_12", B9 = "_replacementModalHeader_1utwt_17", H9 = "_title_1utwt_25", U9 = "_closeButton_1utwt_32", V9 = "_replacementModalContent_1utwt_46", $9 = "_bottomSheet_1utwt_53", z9 = "_content_1utwt_61", q9 = "_productReplaceContainer_1utwt_65", Z9 = "_scrollableBox_1utwt_76", W9 = "_searchContainer_1utwt_90", Y9 = "_productItem_1utwt_94", j9 = "_productItemError_1utwt_125", G9 = "_scrollIndicator_1utwt_129", X9 = "_noResults_1utwt_138", K9 = "_replacementForm_1utwt_148", Q9 = "_formField_1utwt_155", J9 = "_imagesSection_1utwt_174", eg = "_imagesTitle_1utwt_180", tg = "_requiredStar_1utwt_188", ng = "_uploadArea_1utwt_192", rg = "_uploadAreaDragOver_1utwt_206", ug = "_uploadAreaUploading_1utwt_211", ag = "_uploadAreaError_1utwt_217", ig = "_uploadContent_1utwt_224", sg = "_uploadIcon_1utwt_233", og = "_uploadText_1utwt_242", cg = "_uploadSubtext_1utwt_251", lg = "_browseText_1utwt_257", dg = "_imagesList_1utwt_268", fg = "_imageItem_1utwt_275", hg = "_imagePreview_1utwt_284", pg = "_removeButton_1utwt_290", mg = "_replacementModalFooter_1utwt_346", gg = "_fieldError_1utwt_352", bg = "_requestButton_1utwt_358", Ie = {
9815
9815
  replacementModal: M9,
9816
9816
  replacementModalAntistock: F9,
9817
9817
  replacementModalHeader: B9,
@@ -9868,7 +9868,7 @@ const K5 = {
9868
9868
  o([
9869
9869
  ...l,
9870
9870
  {
9871
- id: Ie(),
9871
+ id: Ae(),
9872
9872
  message: "Please select valid image files",
9873
9873
  status: "error"
9874
9874
  }
@@ -9879,7 +9879,7 @@ const K5 = {
9879
9879
  o([
9880
9880
  ...l,
9881
9881
  {
9882
- id: Ie(),
9882
+ id: Ae(),
9883
9883
  message: "File size must be less than 10MB",
9884
9884
  status: "error"
9885
9885
  }
@@ -9912,7 +9912,7 @@ const K5 = {
9912
9912
  o([
9913
9913
  ...l,
9914
9914
  {
9915
- id: Ie(),
9915
+ id: Ae(),
9916
9916
  message: Ce,
9917
9917
  status: "error",
9918
9918
  label: Oe
@@ -9983,7 +9983,7 @@ const K5 = {
9983
9983
  o([
9984
9984
  ...l,
9985
9985
  {
9986
- id: Ie(),
9986
+ id: Ae(),
9987
9987
  message: "Missing order information",
9988
9988
  status: "error"
9989
9989
  }
@@ -9992,8 +9992,19 @@ const K5 = {
9992
9992
  }
9993
9993
  D(!0);
9994
9994
  try {
9995
+ if (!n.partOrderId) {
9996
+ o([
9997
+ ...l,
9998
+ {
9999
+ id: Ae(),
10000
+ message: "Part order ID is required",
10001
+ status: "error"
10002
+ }
10003
+ ]);
10004
+ return;
10005
+ }
9995
10006
  const Ce = await H2(r, u, {
9996
- partOrderId: n.id,
10007
+ partOrderId: n.partOrderId,
9997
10008
  deliveryItemIds: O,
9998
10009
  imageIds: h.map((Oe) => Oe.id),
9999
10010
  reason: _,
@@ -10002,7 +10013,7 @@ const K5 = {
10002
10013
  o([
10003
10014
  ...l,
10004
10015
  {
10005
- id: Ie(),
10016
+ id: Ae(),
10006
10017
  message: ((j = Ce.data) == null ? void 0 : j.message) || "Replacement request submitted successfully",
10007
10018
  status: "success"
10008
10019
  }
@@ -10021,7 +10032,7 @@ const K5 = {
10021
10032
  o([
10022
10033
  ...l,
10023
10034
  {
10024
- id: Ie(),
10035
+ id: Ae(),
10025
10036
  message: Oe,
10026
10037
  status: "error",
10027
10038
  label: ye
@@ -10039,30 +10050,30 @@ const K5 = {
10039
10050
  children: /* @__PURE__ */ b(
10040
10051
  "div",
10041
10052
  {
10042
- className: ne(Ae.replacementModal, {
10043
- [Ae.replacementModalAntistock]: s
10053
+ className: ne(Ie.replacementModal, {
10054
+ [Ie.replacementModalAntistock]: s
10044
10055
  }),
10045
10056
  onClick: (L) => L.stopPropagation(),
10046
10057
  children: [
10047
- /* @__PURE__ */ b("div", { className: Ae.replacementModalHeader, children: [
10058
+ /* @__PURE__ */ b("div", { className: Ie.replacementModalHeader, children: [
10048
10059
  /* @__PURE__ */ c(
10049
10060
  "h3",
10050
10061
  {
10051
10062
  id: "h3 ",
10052
- className: Ae.title,
10063
+ className: Ie.title,
10053
10064
  children: "Request Replacement"
10054
10065
  }
10055
10066
  ),
10056
10067
  /* @__PURE__ */ c(
10057
10068
  "button",
10058
10069
  {
10059
- className: Ae.closeButton,
10070
+ className: Ie.closeButton,
10060
10071
  onClick: se,
10061
10072
  children: /* @__PURE__ */ c(H, { name: "X" })
10062
10073
  }
10063
10074
  )
10064
10075
  ] }),
10065
- /* @__PURE__ */ c("div", { className: Ae.replacementModalContent, children: /* @__PURE__ */ c("div", { className: Ae.bottomSheet, children: /* @__PURE__ */ b("div", { className: Ae.content, children: [
10076
+ /* @__PURE__ */ c("div", { className: Ie.replacementModalContent, children: /* @__PURE__ */ c("div", { className: Ie.bottomSheet, children: /* @__PURE__ */ b("div", { className: Ie.content, children: [
10066
10077
  /* @__PURE__ */ c(
10067
10078
  Ol,
10068
10079
  {
@@ -10074,8 +10085,8 @@ const K5 = {
10074
10085
  }
10075
10086
  }
10076
10087
  ),
10077
- /* @__PURE__ */ b("div", { className: Ae.productReplaceContainer, children: [
10078
- /* @__PURE__ */ c("div", { className: Ae.searchContainer, children: /* @__PURE__ */ c(
10088
+ /* @__PURE__ */ b("div", { className: Ie.productReplaceContainer, children: [
10089
+ /* @__PURE__ */ c("div", { className: Ie.searchContainer, children: /* @__PURE__ */ c(
10079
10090
  gn,
10080
10091
  {
10081
10092
  onChange: (L) => {
@@ -10091,14 +10102,14 @@ const K5 = {
10091
10102
  "div",
10092
10103
  {
10093
10104
  ref: J,
10094
- className: ne(Ae.scrollableBox, {
10095
- [Ae.scrollableBoxAntistock]: s
10105
+ className: ne(Ie.scrollableBox, {
10106
+ [Ie.scrollableBoxAntistock]: s
10096
10107
  }),
10097
10108
  children: re.length > 0 ? re.map((L) => /* @__PURE__ */ b(
10098
10109
  "div",
10099
10110
  {
10100
- className: ne(Ae.productItem, {
10101
- [Ae.productItemError]: F.selectedItems && !O.includes(L.id)
10111
+ className: ne(Ie.productItem, {
10112
+ [Ie.productItemError]: F.selectedItems && !O.includes(L.id)
10102
10113
  }),
10103
10114
  onClick: () => ee(L.id),
10104
10115
  children: [
@@ -10113,46 +10124,46 @@ const K5 = {
10113
10124
  ]
10114
10125
  },
10115
10126
  L.id
10116
- )) : /* @__PURE__ */ c("div", { className: Ae.noResults, children: /* @__PURE__ */ b("p", { children: [
10127
+ )) : /* @__PURE__ */ c("div", { className: Ie.noResults, children: /* @__PURE__ */ b("p", { children: [
10117
10128
  'No items found matching "',
10118
10129
  I,
10119
10130
  '"'
10120
10131
  ] }) })
10121
10132
  }
10122
10133
  ),
10123
- F.selectedItems && /* @__PURE__ */ c("div", { className: Ae.fieldError, children: F.selectedItems }),
10124
- /* @__PURE__ */ c("div", { className: Ae.scrollIndicator, children: /* @__PURE__ */ c("p", { children: "To continue with your replacement request, scroll down." }) })
10134
+ F.selectedItems && /* @__PURE__ */ c("div", { className: Ie.fieldError, children: F.selectedItems }),
10135
+ /* @__PURE__ */ c("div", { className: Ie.scrollIndicator, children: /* @__PURE__ */ c("p", { children: "To continue with your replacement request, scroll down." }) })
10125
10136
  ] }),
10126
- /* @__PURE__ */ b("div", { className: Ae.replacementForm, children: [
10127
- /* @__PURE__ */ c("div", { className: Ae.formField, ref: de, children: /* @__PURE__ */ b("div", { className: Ae.imagesSection, children: [
10128
- /* @__PURE__ */ b("h4", { className: Ae.imagesTitle, children: [
10137
+ /* @__PURE__ */ b("div", { className: Ie.replacementForm, children: [
10138
+ /* @__PURE__ */ c("div", { className: Ie.formField, ref: de, children: /* @__PURE__ */ b("div", { className: Ie.imagesSection, children: [
10139
+ /* @__PURE__ */ b("h4", { className: Ie.imagesTitle, children: [
10129
10140
  "Images",
10130
- /* @__PURE__ */ c("span", { className: Ae.requiredStar, children: " *" })
10141
+ /* @__PURE__ */ c("span", { className: Ie.requiredStar, children: " *" })
10131
10142
  ] }),
10132
10143
  /* @__PURE__ */ c(
10133
10144
  "div",
10134
10145
  {
10135
- className: ne(Ae.uploadArea, {
10136
- [Ae.uploadAreaDragOver]: g,
10137
- [Ae.uploadAreaUploading]: m,
10138
- [Ae.uploadAreaError]: F.images
10146
+ className: ne(Ie.uploadArea, {
10147
+ [Ie.uploadAreaDragOver]: g,
10148
+ [Ie.uploadAreaUploading]: m,
10149
+ [Ie.uploadAreaError]: F.images
10139
10150
  }),
10140
10151
  onDragOver: Re,
10141
10152
  onDragLeave: y,
10142
10153
  onDrop: G,
10143
10154
  onClick: ge,
10144
10155
  tabIndex: 0,
10145
- children: /* @__PURE__ */ b("div", { className: Ae.uploadContent, children: [
10146
- /* @__PURE__ */ c("div", { className: Ae.uploadIcon, children: /* @__PURE__ */ c(H, { name: "CloudArrowUpIcon" }) }),
10147
- /* @__PURE__ */ c("div", { className: Ae.uploadText, children: m ? /* @__PURE__ */ b(Fe, { children: [
10156
+ children: /* @__PURE__ */ b("div", { className: Ie.uploadContent, children: [
10157
+ /* @__PURE__ */ c("div", { className: Ie.uploadIcon, children: /* @__PURE__ */ c(H, { name: "CloudArrowUpIcon" }) }),
10158
+ /* @__PURE__ */ c("div", { className: Ie.uploadText, children: m ? /* @__PURE__ */ b(Fe, { children: [
10148
10159
  /* @__PURE__ */ c("p", { children: "Uploading images..." }),
10149
- /* @__PURE__ */ c("p", { className: Ae.uploadSubtext, children: "Please wait" })
10160
+ /* @__PURE__ */ c("p", { className: Ie.uploadSubtext, children: "Please wait" })
10150
10161
  ] }) : /* @__PURE__ */ b(Fe, { children: [
10151
10162
  /* @__PURE__ */ b("p", { children: [
10152
10163
  "Drop your images here, or ",
10153
- /* @__PURE__ */ c("span", { className: Ae.browseText, children: "tap to browse" })
10164
+ /* @__PURE__ */ c("span", { className: Ie.browseText, children: "tap to browse" })
10154
10165
  ] }),
10155
- /* @__PURE__ */ c("p", { className: Ae.uploadSubtext, children: "Maximum of 10MB per image" })
10166
+ /* @__PURE__ */ c("p", { className: Ie.uploadSubtext, children: "Maximum of 10MB per image" })
10156
10167
  ] }) })
10157
10168
  ] })
10158
10169
  }
@@ -10168,24 +10179,24 @@ const K5 = {
10168
10179
  style: { display: "none" }
10169
10180
  }
10170
10181
  ),
10171
- F.images && /* @__PURE__ */ c("div", { className: Ae.fieldError, children: F.images }),
10172
- h.length > 0 && /* @__PURE__ */ c("div", { className: Ae.imagesList, children: h.map((L, j) => /* @__PURE__ */ b(
10182
+ F.images && /* @__PURE__ */ c("div", { className: Ie.fieldError, children: F.images }),
10183
+ h.length > 0 && /* @__PURE__ */ c("div", { className: Ie.imagesList, children: h.map((L, j) => /* @__PURE__ */ b(
10173
10184
  "div",
10174
10185
  {
10175
- className: Ae.imageItem,
10186
+ className: Ie.imageItem,
10176
10187
  children: [
10177
10188
  /* @__PURE__ */ c(
10178
10189
  "img",
10179
10190
  {
10180
10191
  src: L.url,
10181
10192
  alt: `Uploaded image ${j + 1}`,
10182
- className: Ae.imagePreview
10193
+ className: Ie.imagePreview
10183
10194
  }
10184
10195
  ),
10185
10196
  /* @__PURE__ */ c(
10186
10197
  "button",
10187
10198
  {
10188
- className: Ae.removeButton,
10199
+ className: Ie.removeButton,
10189
10200
  onClick: () => $(j),
10190
10201
  type: "button",
10191
10202
  children: /* @__PURE__ */ c(H, { name: "Trash" })
@@ -10196,7 +10207,7 @@ const K5 = {
10196
10207
  L.id
10197
10208
  )) })
10198
10209
  ] }) }),
10199
- /* @__PURE__ */ c("div", { className: Ae.formField, ref: ue, children: /* @__PURE__ */ c(
10210
+ /* @__PURE__ */ c("div", { className: Ie.formField, ref: ue, children: /* @__PURE__ */ c(
10200
10211
  Rl,
10201
10212
  {
10202
10213
  options: (i == null ? void 0 : i.filter((L) => L !== _)) || [],
@@ -10210,7 +10221,7 @@ const K5 = {
10210
10221
  error: F.reason
10211
10222
  }
10212
10223
  ) }),
10213
- /* @__PURE__ */ c("div", { className: Ae.formField, children: /* @__PURE__ */ c(
10224
+ /* @__PURE__ */ c("div", { className: Ie.formField, children: /* @__PURE__ */ c(
10214
10225
  Ou,
10215
10226
  {
10216
10227
  placeholder: "Use this space to provide our team with additional details regarding your replacement request.",
@@ -10221,11 +10232,11 @@ const K5 = {
10221
10232
  ) })
10222
10233
  ] })
10223
10234
  ] }) }) }),
10224
- /* @__PURE__ */ c("div", { className: Ae.replacementModalFooter, children: /* @__PURE__ */ c(
10235
+ /* @__PURE__ */ c("div", { className: Ie.replacementModalFooter, children: /* @__PURE__ */ c(
10225
10236
  ae,
10226
10237
  {
10227
10238
  type: "Primary",
10228
- className: Ae.requestButton,
10239
+ className: Ie.requestButton,
10229
10240
  onClick: He,
10230
10241
  disabled: V,
10231
10242
  children: V ? "SUBMITTING..." : "REQUEST REPLACEMENT"
@@ -10762,7 +10773,7 @@ const K5 = {
10762
10773
  u([
10763
10774
  ...r,
10764
10775
  {
10765
- id: Ie(),
10776
+ id: Ae(),
10766
10777
  message: C,
10767
10778
  status: E
10768
10779
  }
@@ -27625,7 +27636,7 @@ const bo = () => {
27625
27636
  j.required && !((U = j.value) != null && U.toString().trim()) && L.push({
27626
27637
  message: `Field "${j.name}" is required.`,
27627
27638
  status: "error",
27628
- id: Ie()
27639
+ id: Ae()
27629
27640
  });
27630
27641
  }), L.length > 0 ? (te([...A, ...L]), !1) : !0;
27631
27642
  }, $ = async (L) => {
@@ -29416,7 +29427,7 @@ const bo = () => {
29416
29427
  ...s,
29417
29428
  {
29418
29429
  status: "success",
29419
- id: Ie(),
29430
+ id: Ae(),
29420
29431
  message: "Your action has been successfully completed"
29421
29432
  }
29422
29433
  ]), u({
@@ -29428,7 +29439,7 @@ const bo = () => {
29428
29439
  ...s,
29429
29440
  {
29430
29441
  status: "error",
29431
- id: Ie(),
29442
+ id: Ae(),
29432
29443
  message: "Your action has been failed. Try again!"
29433
29444
  }
29434
29445
  ]);
@@ -29915,7 +29926,7 @@ const bo = () => {
29915
29926
  ...o,
29916
29927
  {
29917
29928
  status: "success",
29918
- id: Ie(),
29929
+ id: Ae(),
29919
29930
  message: "Review left successfully"
29920
29931
  }
29921
29932
  ]), i(!1));
@@ -30075,7 +30086,7 @@ const bo = () => {
30075
30086
  const { data: w } = await W2((t == null ? void 0 : t.id) || "", {});
30076
30087
  l([
30077
30088
  {
30078
- id: Ie(),
30089
+ id: Ae(),
30079
30090
  message: "Order created successfully",
30080
30091
  status: "success"
30081
30092
  }
@@ -30085,7 +30096,7 @@ const bo = () => {
30085
30096
  l([
30086
30097
  ...h,
30087
30098
  {
30088
- id: Ie(),
30099
+ id: Ae(),
30089
30100
  message: `Order creation failed: ${I.message}`,
30090
30101
  status: "error"
30091
30102
  }
@@ -30421,7 +30432,7 @@ const bo = () => {
30421
30432
  o([
30422
30433
  ...l,
30423
30434
  {
30424
- id: Ie(),
30435
+ id: Ae(),
30425
30436
  message: "Please select a valid image file",
30426
30437
  status: "error"
30427
30438
  }
@@ -30432,7 +30443,7 @@ const bo = () => {
30432
30443
  o([
30433
30444
  ...l,
30434
30445
  {
30435
- id: Ie(),
30446
+ id: Ae(),
30436
30447
  message: "File size must be less than 10MB",
30437
30448
  status: "error"
30438
30449
  }
@@ -30455,7 +30466,7 @@ const bo = () => {
30455
30466
  o([
30456
30467
  ...l,
30457
30468
  {
30458
- id: Ie(),
30469
+ id: Ae(),
30459
30470
  message: U,
30460
30471
  status: "error"
30461
30472
  }
@@ -30493,7 +30504,7 @@ const bo = () => {
30493
30504
  o([
30494
30505
  ...l,
30495
30506
  {
30496
- id: Ie(),
30507
+ id: Ae(),
30497
30508
  message: "Missing required information",
30498
30509
  status: "error"
30499
30510
  }
@@ -30505,12 +30516,12 @@ const bo = () => {
30505
30516
  imageId: parseInt(f.id),
30506
30517
  productIds: Y.map((se) => parseInt(se)),
30507
30518
  comment: w.trim(),
30508
- tsId: Ie()
30519
+ tsId: Ae()
30509
30520
  };
30510
30521
  await uf(ce, a, r, u), o([
30511
30522
  ...l,
30512
30523
  {
30513
- id: Ie(),
30524
+ id: Ae(),
30514
30525
  message: "Vouch submitted successfully",
30515
30526
  status: "success"
30516
30527
  }
@@ -30526,7 +30537,7 @@ const bo = () => {
30526
30537
  o([
30527
30538
  ...l,
30528
30539
  {
30529
- id: Ie(),
30540
+ id: Ae(),
30530
30541
  message: se,
30531
30542
  status: "error",
30532
30543
  label: He