@billgangcom/theme-lib 1.114.1 → 1.114.3

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-dGixT-_d.js → builder-C4IiRjp5.js} +5 -5
  2. package/dist/{builder-BVVH9Uc0.cjs → builder-CZiRl_4b.cjs} +2 -2
  3. package/dist/{builder-components-BD45uk6H.js → builder-components-DUtnQsMR.js} +4 -4
  4. package/dist/{builder-components-BEFw4EcA.cjs → builder-components-Ds0B6KAh.cjs} +1 -1
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-Nfq6BBT0.js → charge-BAjv22Uu.js} +6 -6
  8. package/dist/{charge-DAXMrlAq.cjs → charge-Swo2yUda.cjs} +1 -1
  9. package/dist/{checkout-DaksJ-vl.cjs → checkout-BihRJw1G.cjs} +1 -1
  10. package/dist/{checkout-DJA7m9bE.js → checkout-CsTWd6tI.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CMngiHt6.cjs → index-0itRmU2L.cjs} +1 -1
  14. package/dist/{index-BE-LNEM-.cjs → index-BQKbOYps.cjs} +1 -1
  15. package/dist/{index-DKVA1wV8.js → index-BXuENnlY.js} +5 -5
  16. package/dist/{index-CgAhbfol.js → index-BbTAMqA3.js} +1 -1
  17. package/dist/{index-Drs_bUt0.js → index-CGhg-CkV.js} +5 -5
  18. package/dist/{index-CwBlGUFg.cjs → index-CJ8gac-X.cjs} +1 -1
  19. package/dist/{index-CSYLpXUY.js → index-D4BCHJ4l.js} +5 -5
  20. package/dist/{index-CxES4Y2E.cjs → index-DEpz6kqr.cjs} +1 -1
  21. package/dist/{index-CX9eAqxn.js → index-DcAv5U36.js} +5 -5
  22. package/dist/{index-Cq-HG360.cjs → index-eaTS3-Aj.cjs} +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/order-DepPRtns.cjs +1 -0
  26. package/dist/{order-BiWH1GaD.js → order-sMlMoj4y.js} +119 -117
  27. package/dist/{subscription-BsED7sfb.js → subscription-2rmlPxD5.js} +5 -5
  28. package/dist/{subscription-DuCTTG3r.cjs → subscription-BAy6WRcF.cjs} +1 -1
  29. package/dist/{ticket-CbHpWM1U.cjs → ticket-Buu-gWi7.cjs} +1 -1
  30. package/dist/{ticket-D82dpA86.js → ticket-D5JmN5l9.js} +5 -5
  31. package/dist/{top-up-Czf-dtwC.cjs → top-up-Cj3r_l4u.cjs} +1 -1
  32. package/dist/{top-up-CKuuSysp.js → top-up-iDz6xeq5.js} +5 -5
  33. package/dist/{ui-components-D3S3Wicn.js → ui-components-CAvXxpG4.js} +371 -371
  34. package/dist/{ui-components-DgahiZcB.cjs → ui-components-DhvDTRiU.cjs} +1 -1
  35. package/dist/ui.cjs.js +1 -1
  36. package/dist/ui.es.js +1 -1
  37. package/dist/{validation-otConG8r.cjs → validation-BzWFnVQz.cjs} +1 -1
  38. package/dist/{validation-BVXpLz7D.js → validation-CVlQrUBl.js} +5 -5
  39. package/package.json +1 -1
  40. package/dist/order-EtDX2zwp.cjs +0 -1
@@ -1,12 +1,12 @@
1
1
  var sn = Object.defineProperty;
2
2
  var an = (c, t, s) => t in c ? sn(c, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : c[t] = s;
3
3
  var Tt = (c, t, s) => an(c, typeof t != "symbol" ? t + "" : t, s);
4
- import { jsx as e, jsxs as u, Fragment as G } from "react/jsx-runtime";
4
+ import { jsx as e, jsxs as h, Fragment as G } from "react/jsx-runtime";
5
5
  import b, { createElement as gt, PureComponent as on } from "react";
6
- import { f as q, ac as it, j as jt, r as Ht, m as pt, V as Ve, ad as Vt, J as be, v as le, ae as kt, af as Ct, b as We, l as cn, e as je, p as mt, _ as me, a4 as rn, M as ln, ag as dn, ah as Wt, k as un } from "./builder-dGixT-_d.js";
7
- import { U as hn, u as ze, G as pn } from "./charge-Nfq6BBT0.js";
8
- import { u as Ge, d as Xe, D as Ye, e as Ke, v as Qe, f as Je, g as Ze, C as et, F as Gt } from "./builder-components-BD45uk6H.js";
9
- import { s as Oe, g as mn, u as fn } from "./ticket-D82dpA86.js";
6
+ import { f as q, ac as it, j as jt, r as Ht, m as pt, V as ze, ad as Vt, J as be, v as le, ae as kt, af as Ct, b as We, l as cn, e as He, p as mt, _ as me, a4 as rn, M as ln, ag as dn, ah as Wt, k as un } from "./builder-C4IiRjp5.js";
7
+ import { U as hn, u as Fe, G as pn } from "./charge-BAjv22Uu.js";
8
+ import { u as Ge, d as Xe, D as Ye, e as Ke, v as Qe, f as Je, g as Ze, C as et, F as Gt } from "./builder-components-DUtnQsMR.js";
9
+ import { s as Oe, g as mn, u as fn } from "./ticket-D5JmN5l9.js";
10
10
  import gn from "react-dom";
11
11
  const _n = "_wrapper_5w9s8_1", vn = {
12
12
  wrapper: _n
@@ -107,7 +107,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
107
107
  min: d,
108
108
  max: r,
109
109
  placeholder: o,
110
- disabled: h = !1,
110
+ disabled: u = !1,
111
111
  required: g = !1,
112
112
  regex: k,
113
113
  paddingless: _ = !1,
@@ -123,7 +123,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
123
123
  function $(A) {
124
124
  return !g || !k ? !0 : new RegExp(k).test(A);
125
125
  }
126
- return /* @__PURE__ */ u("div", { className: ke.wrapper, children: [
126
+ return /* @__PURE__ */ h("div", { className: ke.wrapper, children: [
127
127
  n && /* @__PURE__ */ e(
128
128
  "label",
129
129
  {
@@ -132,7 +132,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
132
132
  children: n
133
133
  }
134
134
  ),
135
- /* @__PURE__ */ u("div", { className: ke.content, children: [
135
+ /* @__PURE__ */ h("div", { className: ke.content, children: [
136
136
  /* @__PURE__ */ e(
137
137
  "input",
138
138
  {
@@ -155,7 +155,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
155
155
  }),
156
156
  min: i === "number" ? d : void 0,
157
157
  max: i === "number" ? r : void 0,
158
- disabled: h,
158
+ disabled: u,
159
159
  onFocus: () => {
160
160
  f || w(!0);
161
161
  },
@@ -232,13 +232,13 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
232
232
  return "AlignBottom";
233
233
  }
234
234
  }
235
- const [h, g] = b.useState(null), [k, _] = b.useState(null);
236
- return /* @__PURE__ */ u("div", { className: he.layout, children: [
235
+ const [u, g] = b.useState(null), [k, _] = b.useState(null);
236
+ return /* @__PURE__ */ h("div", { className: he.layout, children: [
237
237
  /* @__PURE__ */ e("h3", { className: he.title, children: "Layout (for Desktop version)" }),
238
- /* @__PURE__ */ u("div", { className: he.alignmentContent, children: [
239
- i && /* @__PURE__ */ u("div", { className: he.block, children: [
238
+ /* @__PURE__ */ h("div", { className: he.alignmentContent, children: [
239
+ i && /* @__PURE__ */ h("div", { className: he.block, children: [
240
240
  /* @__PURE__ */ e("h5", { className: he.subtitle, children: "Alignment" }),
241
- /* @__PURE__ */ e("div", { className: he.alignments, children: jn.map((f) => /* @__PURE__ */ u(
241
+ /* @__PURE__ */ e("div", { className: he.alignments, children: jn.map((f) => /* @__PURE__ */ h(
242
242
  "div",
243
243
  {
244
244
  onClick: () => {
@@ -252,11 +252,11 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
252
252
  g(null);
253
253
  },
254
254
  children: [
255
- f !== t && h !== f && /* @__PURE__ */ e("div", { className: he.circle }),
256
- f !== t && h === f && /* @__PURE__ */ e(
255
+ f !== t && u !== f && /* @__PURE__ */ e("div", { className: he.circle }),
256
+ f !== t && u === f && /* @__PURE__ */ e(
257
257
  x,
258
258
  {
259
- name: r(h),
259
+ name: r(u),
260
260
  fill: "#c2c2c2",
261
261
  width: 22,
262
262
  height: 22
@@ -276,9 +276,9 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
276
276
  f
277
277
  )) })
278
278
  ] }),
279
- d && /* @__PURE__ */ u("div", { className: he.block, children: [
279
+ d && /* @__PURE__ */ h("div", { className: he.block, children: [
280
280
  /* @__PURE__ */ e("h5", { className: he.subtitle, children: "Paddings" }),
281
- /* @__PURE__ */ e("div", { className: he.paddings, children: Hn.map((f) => /* @__PURE__ */ u(
281
+ /* @__PURE__ */ e("div", { className: he.paddings, children: Hn.map((f) => /* @__PURE__ */ h(
282
282
  "label",
283
283
  {
284
284
  className: q(he.padding, {
@@ -371,7 +371,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
371
371
  },
372
372
  String(a)
373
373
  )) });
374
- }, ts = "_wrapper_34cvp_1", ns = "_label_34cvp_10", ss = "_textarea_34cvp_18", is = "_length_34cvp_46", as = "_full_34cvp_54", Ue = {
374
+ }, ts = "_wrapper_34cvp_1", ns = "_label_34cvp_10", ss = "_textarea_34cvp_18", is = "_length_34cvp_46", as = "_full_34cvp_54", je = {
375
375
  wrapper: ts,
376
376
  label: ns,
377
377
  textarea: ss,
@@ -379,11 +379,11 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
379
379
  full: as
380
380
  }, Yt = (c) => {
381
381
  const { onChange: t, label: s, value: n, maxLength: a, placeholder: i = "Type something..." } = c, [d, r] = b.useState(n.length);
382
- return /* @__PURE__ */ u("div", { className: Ue.wrapper, children: [
382
+ return /* @__PURE__ */ h("div", { className: je.wrapper, children: [
383
383
  s && /* @__PURE__ */ e(
384
384
  "label",
385
385
  {
386
- className: Ue.label,
386
+ className: je.label,
387
387
  htmlFor: s,
388
388
  children: s
389
389
  }
@@ -397,15 +397,15 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
397
397
  r(o.target.value.length), t(o.target.value);
398
398
  },
399
399
  placeholder: i,
400
- className: Ue.textarea,
400
+ className: je.textarea,
401
401
  maxLength: a
402
402
  }
403
403
  ),
404
- a && /* @__PURE__ */ u(
404
+ a && /* @__PURE__ */ h(
405
405
  "div",
406
406
  {
407
- className: q(Ue.length, {
408
- [Ue.full]: d === a
407
+ className: q(je.length, {
408
+ [je.full]: d === a
409
409
  }),
410
410
  children: [
411
411
  d,
@@ -419,10 +419,10 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
419
419
  const { typeFont: t, setTypeFont: s } = c, [n, a] = b.useState([]), i = () => {
420
420
  const d = document.documentElement, r = getComputedStyle(d), o = ["h1", "h2", "h3", "h4", "h5", "h6", "h7"].map(
421
421
  (g) => r.getPropertyValue(`--font-heading-${g}-size`).trim()
422
- ), h = ["lg", "md", "sm"].map(
422
+ ), u = ["lg", "md", "sm"].map(
423
423
  (g) => r.getPropertyValue(`--font-body-${g}-size`).trim()
424
424
  );
425
- return o.push(...h), o;
425
+ return o.push(...u), o;
426
426
  };
427
427
  return b.useEffect(() => {
428
428
  const d = i();
@@ -488,13 +488,13 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
488
488
  setTypesText: d,
489
489
  title: r,
490
490
  subtitle: o = "Items",
491
- typeFont: h,
491
+ typeFont: u,
492
492
  setTypeFont: g,
493
493
  alignText: k,
494
494
  setAlignText: _
495
495
  } = c;
496
- return /* @__PURE__ */ u("div", { className: qe.text, children: [
497
- (r || s !== void 0) && /* @__PURE__ */ u("div", { className: qe.top, children: [
496
+ return /* @__PURE__ */ h("div", { className: qe.text, children: [
497
+ (r || s !== void 0) && /* @__PURE__ */ h("div", { className: qe.top, children: [
498
498
  r && /* @__PURE__ */ e("h3", { className: qe.title, children: r }),
499
499
  s !== void 0 && n && /* @__PURE__ */ e(
500
500
  fe,
@@ -504,7 +504,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
504
504
  }
505
505
  )
506
506
  ] }),
507
- (s === void 0 || s) && /* @__PURE__ */ u("div", { className: qe.itemsBlock, children: [
507
+ (s === void 0 || s) && /* @__PURE__ */ h("div", { className: qe.itemsBlock, children: [
508
508
  /* @__PURE__ */ e("h5", { className: qe.subtitle, children: o }),
509
509
  /* @__PURE__ */ e(
510
510
  Yt,
@@ -513,7 +513,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
513
513
  value: a
514
514
  }
515
515
  ),
516
- /* @__PURE__ */ u("div", { className: qe.textSettings, children: [
516
+ /* @__PURE__ */ h("div", { className: qe.textSettings, children: [
517
517
  /* @__PURE__ */ e(
518
518
  Xt,
519
519
  {
@@ -532,7 +532,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
532
532
  /* @__PURE__ */ e(
533
533
  Kt,
534
534
  {
535
- typeFont: h,
535
+ typeFont: u,
536
536
  setTypeFont: g
537
537
  }
538
538
  )
@@ -614,19 +614,19 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
614
614
  disabled: i = !1,
615
615
  type: d = "Primary",
616
616
  dangerouslySetInnerHTML: r
617
- } = c, { themeSettings: o } = pt(), { isAntistock: h } = Ve(), g = (l) => typeof l == "string" ? /* @__PURE__ */ e(hn, { children: l }) : l, k = {
617
+ } = c, { themeSettings: o } = pt(), { isAntistock: u } = ze(), g = (l) => typeof l == "string" ? /* @__PURE__ */ e(hn, { children: l }) : l, k = {
618
618
  onClick: s,
619
619
  disabled: i,
620
620
  style: n,
621
621
  className: q(_e.button, a, {
622
622
  [_e.primary]: d === "Primary",
623
- [_e.secondary]: d === "Secondary" && !h,
624
- [_e.secondaryAntistock]: d === "Secondary" && h,
623
+ [_e.secondary]: d === "Secondary" && !u,
624
+ [_e.secondaryAntistock]: d === "Secondary" && u,
625
625
  [_e.tertiary]: d === "Tertiary",
626
- [_e.primaryHovered]: d === "Primary" && !i && o.buttons.primary.hover && !h,
627
- [_e.secondaryHovered]: d === "Secondary" && !i && o.buttons.secondary.hover && !h,
628
- [_e.tertiaryHovered]: d === "Tertiary" && !i && o.buttons.tertiary.hover && !h,
629
- [_e.isAntistock]: h
626
+ [_e.primaryHovered]: d === "Primary" && !i && o.buttons.primary.hover && !u,
627
+ [_e.secondaryHovered]: d === "Secondary" && !i && o.buttons.secondary.hover && !u,
628
+ [_e.tertiaryHovered]: d === "Tertiary" && !i && o.buttons.tertiary.hover && !u,
629
+ [_e.isAntistock]: u
630
630
  })
631
631
  };
632
632
  if (d === "Special")
@@ -638,7 +638,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
638
638
  ...r ? { dangerouslySetInnerHTML: r } : { children: g(t) }
639
639
  }
640
640
  );
641
- const _ = d.toLowerCase(), f = o.buttons[_], I = d === "Tertiary" ? /* @__PURE__ */ u("div", { className: _e.content, children: [
641
+ const _ = d.toLowerCase(), f = o.buttons[_], I = d === "Tertiary" ? /* @__PURE__ */ h("div", { className: _e.content, children: [
642
642
  g(t),
643
643
  /* @__PURE__ */ e(
644
644
  x,
@@ -663,14 +663,14 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
663
663
  );
664
664
  }, tt = (c) => {
665
665
  const { label: t, onChange: s, activeImage: n, tip: a } = c, { setOpenModal: i, setOnChange: d, setTip: r } = Vt();
666
- return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ u(
666
+ return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h(
667
667
  "div",
668
668
  {
669
669
  className: X.wrapper,
670
670
  onClick: (o) => o.stopPropagation(),
671
671
  children: [
672
672
  t && /* @__PURE__ */ e("h4", { className: X.label, children: t }),
673
- /* @__PURE__ */ u(
673
+ /* @__PURE__ */ h(
674
674
  "div",
675
675
  {
676
676
  onClick: () => {
@@ -722,13 +722,13 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
722
722
  const { setOpenModal: c, onChange: t, tip: s, setTip: n } = Vt(), { setIsOpen: a } = be(), [i, d] = b.useState(!1), r = () => {
723
723
  var y;
724
724
  (y = o.current) == null || y.click();
725
- }, o = b.useRef(null), [h, g] = b.useState([]), [k, _] = b.useState(!1), f = async (y) => {
725
+ }, o = b.useRef(null), [u, g] = b.useState([]), [k, _] = b.useState(!1), f = async (y) => {
726
726
  var O;
727
727
  const w = ((O = y.target.files) == null ? void 0 : O[0]) || null;
728
728
  if (!w) return;
729
729
  const S = new FormData();
730
730
  S.append("file", w), _(!0);
731
- const { data: $ } = await Ys(S), A = [...h];
731
+ const { data: $ } = await Ys(S), A = [...u];
732
732
  A.unshift({
733
733
  ...$.data,
734
734
  cfId: $.data.path
@@ -747,14 +747,14 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
747
747
  c(!1), a(!0);
748
748
  }, 300);
749
749
  }, m = (y) => {
750
- const w = h.map((S) => ({
750
+ const w = u.map((S) => ({
751
751
  ...S,
752
752
  isSelected: S.id === y.id ? !S.isSelected : !1
753
753
  }));
754
754
  g([...w]);
755
755
  };
756
756
  function p() {
757
- const y = h.find((w) => w.isSelected);
757
+ const y = u.find((w) => w.isSelected);
758
758
  y && (t == null || t([y.cfId]));
759
759
  }
760
760
  return b.useEffect(() => {
@@ -765,13 +765,13 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
765
765
  }));
766
766
  g(S);
767
767
  })();
768
- }, []), /* @__PURE__ */ u(
768
+ }, []), /* @__PURE__ */ h(
769
769
  "div",
770
770
  {
771
771
  onClick: (y) => y.stopPropagation(),
772
772
  className: X.modal,
773
773
  children: [
774
- /* @__PURE__ */ u("div", { className: X.top, children: [
774
+ /* @__PURE__ */ h("div", { className: X.top, children: [
775
775
  /* @__PURE__ */ e("h4", { className: X.title, children: "Select Image" }),
776
776
  /* @__PURE__ */ e(
777
777
  x,
@@ -792,8 +792,8 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
792
792
  padding: 5
793
793
  }
794
794
  ),
795
- /* @__PURE__ */ e("div", { className: X.modalContent, children: /* @__PURE__ */ u("div", { className: X.images, children: [
796
- /* @__PURE__ */ u(
795
+ /* @__PURE__ */ e("div", { className: X.modalContent, children: /* @__PURE__ */ h("div", { className: X.images, children: [
796
+ /* @__PURE__ */ h(
797
797
  "div",
798
798
  {
799
799
  className: X.input,
@@ -802,7 +802,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
802
802
  onDragLeave: () => d(!1),
803
803
  onDrop: I,
804
804
  children: [
805
- /* @__PURE__ */ u(
805
+ /* @__PURE__ */ h(
806
806
  "div",
807
807
  {
808
808
  onClick: r,
@@ -819,7 +819,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
819
819
  fill: "#757575"
820
820
  }
821
821
  ) }),
822
- /* @__PURE__ */ u("div", { className: X.description, children: [
822
+ /* @__PURE__ */ h("div", { className: X.description, children: [
823
823
  /* @__PURE__ */ e("span", { children: "Drag and drop images here, or " }),
824
824
  /* @__PURE__ */ e("span", { className: X.highlight, children: "click to browse" }),
825
825
  /* @__PURE__ */ e("br", {}),
@@ -843,7 +843,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
843
843
  }
844
844
  ),
845
845
  k && /* @__PURE__ */ e(Ot, {}),
846
- h.map((y) => /* @__PURE__ */ e(
846
+ u.map((y) => /* @__PURE__ */ e(
847
847
  ci,
848
848
  {
849
849
  image: y,
@@ -851,9 +851,9 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
851
851
  },
852
852
  y.id
853
853
  )),
854
- h.length === 0 && [...new Array(5)].map((y, w) => /* @__PURE__ */ e(Ot, {}, w))
854
+ u.length === 0 && [...new Array(5)].map((y, w) => /* @__PURE__ */ e(Ot, {}, w))
855
855
  ] }) }),
856
- /* @__PURE__ */ u("div", { className: X.bottom, children: [
856
+ /* @__PURE__ */ h("div", { className: X.bottom, children: [
857
857
  /* @__PURE__ */ e(
858
858
  K,
859
859
  {
@@ -878,7 +878,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
878
878
  );
879
879
  }, ci = (c) => {
880
880
  const { image: t, updateImage: s } = c;
881
- return /* @__PURE__ */ u(
881
+ return /* @__PURE__ */ h(
882
882
  "div",
883
883
  {
884
884
  className: q(X.image, {
@@ -932,10 +932,10 @@ const ri = b.forwardRef(
932
932
  nt(t, () => {
933
933
  n(null), d(!1);
934
934
  });
935
- function r(o, h) {
936
- return o.length > h ? `${o.slice(0, h)}...` : o;
935
+ function r(o, u) {
936
+ return o.length > u ? `${o.slice(0, u)}...` : o;
937
937
  }
938
- return /* @__PURE__ */ u(
938
+ return /* @__PURE__ */ h(
939
939
  "div",
940
940
  {
941
941
  ref: t,
@@ -948,7 +948,7 @@ const ri = b.forwardRef(
948
948
  left: `${a.left}px`
949
949
  },
950
950
  children: [
951
- /* @__PURE__ */ u("div", { className: Z.top, children: [
951
+ /* @__PURE__ */ h("div", { className: Z.top, children: [
952
952
  /* @__PURE__ */ e("h3", { className: Z.title, children: r(s.name["en-US"], 20) }),
953
953
  /* @__PURE__ */ e("div", { className: Z.closeIcon, children: /* @__PURE__ */ e(
954
954
  x,
@@ -969,10 +969,10 @@ const ri = b.forwardRef(
969
969
  {
970
970
  label: "Put up an attractive image",
971
971
  activeImage: s[o.field],
972
- onChange: (h) => {
972
+ onChange: (u) => {
973
973
  const g = {
974
974
  ...s,
975
- [o.field]: h
975
+ [o.field]: u
976
976
  };
977
977
  n(g);
978
978
  }
@@ -985,36 +985,36 @@ const ri = b.forwardRef(
985
985
  {
986
986
  isActiveText: !0,
987
987
  typesText: s[o.field.type],
988
- setTypesText: (h) => {
988
+ setTypesText: (u) => {
989
989
  const g = {
990
990
  ...s,
991
- [o.field.type]: h
991
+ [o.field.type]: u
992
992
  };
993
993
  n(g);
994
994
  },
995
995
  alignText: s[o.field.alignText],
996
- setAlignText: (h) => {
996
+ setAlignText: (u) => {
997
997
  const g = {
998
998
  ...s,
999
- [o.field.alignText]: h
999
+ [o.field.alignText]: u
1000
1000
  };
1001
1001
  n(g);
1002
1002
  },
1003
1003
  text: s[o.field.text]["en-US"] || "",
1004
- setText: (h) => {
1004
+ setText: (u) => {
1005
1005
  const g = {
1006
1006
  ...s,
1007
1007
  [o.field.text]: {
1008
- "en-US": h
1008
+ "en-US": u
1009
1009
  }
1010
1010
  };
1011
1011
  n(g);
1012
1012
  },
1013
1013
  typeFont: s[o.field.typeFont],
1014
- setTypeFont: (h) => {
1014
+ setTypeFont: (u) => {
1015
1015
  const g = {
1016
1016
  ...s,
1017
- [o.field.typeFont]: h
1017
+ [o.field.typeFont]: u
1018
1018
  };
1019
1019
  n(g);
1020
1020
  },
@@ -1025,10 +1025,10 @@ const ri = b.forwardRef(
1025
1025
  return /* @__PURE__ */ e(
1026
1026
  ge,
1027
1027
  {
1028
- onChange: (h) => {
1028
+ onChange: (u) => {
1029
1029
  const g = {
1030
1030
  ...s,
1031
- [o.field]: h
1031
+ [o.field]: u
1032
1032
  };
1033
1033
  n(g);
1034
1034
  },
@@ -1038,14 +1038,14 @@ const ri = b.forwardRef(
1038
1038
  }
1039
1039
  );
1040
1040
  if (o.type === "inputSwitch")
1041
- return /* @__PURE__ */ u("div", { className: Z.link, children: [
1041
+ return /* @__PURE__ */ h("div", { className: Z.link, children: [
1042
1042
  /* @__PURE__ */ e(
1043
1043
  ge,
1044
1044
  {
1045
- onChange: (h) => {
1045
+ onChange: (u) => {
1046
1046
  const g = {
1047
1047
  ...s,
1048
- [o.field.text]: h
1048
+ [o.field.text]: u
1049
1049
  };
1050
1050
  n(g);
1051
1051
  },
@@ -1059,10 +1059,10 @@ const ri = b.forwardRef(
1059
1059
  {
1060
1060
  current: !!s[o.field.switch] || !1,
1061
1061
  label: o.switchLabel,
1062
- onChange: (h) => {
1062
+ onChange: (u) => {
1063
1063
  const g = {
1064
1064
  ...s,
1065
- [o.field.switch]: h
1065
+ [o.field.switch]: u
1066
1066
  };
1067
1067
  n(g);
1068
1068
  }
@@ -1074,10 +1074,10 @@ const ri = b.forwardRef(
1074
1074
  pi,
1075
1075
  {
1076
1076
  items: s[o.field] || [],
1077
- setItems: (h) => {
1077
+ setItems: (u) => {
1078
1078
  const g = {
1079
1079
  ...s,
1080
- [o.field]: h
1080
+ [o.field]: u
1081
1081
  };
1082
1082
  n(g);
1083
1083
  },
@@ -1096,10 +1096,10 @@ const ri = b.forwardRef(
1096
1096
  ue,
1097
1097
  {
1098
1098
  options: o.itemsOptions,
1099
- onChange: (h) => {
1099
+ onChange: (u) => {
1100
1100
  const g = {
1101
1101
  ...s,
1102
- [o.field]: h
1102
+ [o.field]: u
1103
1103
  };
1104
1104
  n(g);
1105
1105
  },
@@ -1108,11 +1108,11 @@ const ri = b.forwardRef(
1108
1108
  leftAddonOptions: o.leftAddonOptions,
1109
1109
  switcher: o.switcher ? {
1110
1110
  value: !!s[o.switcher],
1111
- onChange: (h) => {
1111
+ onChange: (u) => {
1112
1112
  if (o.switcher === "isActive") {
1113
1113
  const g = {
1114
1114
  ...s,
1115
- [o.switcher]: h
1115
+ [o.switcher]: u
1116
1116
  };
1117
1117
  n(g);
1118
1118
  }
@@ -1125,10 +1125,10 @@ const ri = b.forwardRef(
1125
1125
  Kt,
1126
1126
  {
1127
1127
  typeFont: s[o.field],
1128
- setTypeFont: (h) => {
1128
+ setTypeFont: (u) => {
1129
1129
  const g = {
1130
1130
  ...s,
1131
- [o.field]: h
1131
+ [o.field]: u
1132
1132
  };
1133
1133
  n(g);
1134
1134
  }
@@ -1139,10 +1139,10 @@ const ri = b.forwardRef(
1139
1139
  nn,
1140
1140
  {
1141
1141
  options: o.itemsOptions,
1142
- onChange: (h) => {
1142
+ onChange: (u) => {
1143
1143
  const g = {
1144
1144
  ...s,
1145
- [o.field]: h
1145
+ [o.field]: u
1146
1146
  };
1147
1147
  n(g);
1148
1148
  },
@@ -1151,11 +1151,11 @@ const ri = b.forwardRef(
1151
1151
  leftAddonOptions: o.leftAddonOptions,
1152
1152
  switcher: o.switcher ? {
1153
1153
  value: !!s[o.switcher],
1154
- onChange: (h) => {
1154
+ onChange: (u) => {
1155
1155
  if (o.switcher === "isActive") {
1156
1156
  const g = {
1157
1157
  ...s,
1158
- [o.switcher]: h
1158
+ [o.switcher]: u
1159
1159
  };
1160
1160
  n(g);
1161
1161
  }
@@ -1172,9 +1172,9 @@ const ri = b.forwardRef(
1172
1172
  other: li,
1173
1173
  subtitle: di,
1174
1174
  items: ui
1175
- }, He = (c) => {
1175
+ }, Ve = (c) => {
1176
1176
  const { items: t, otherTitle: s, tagsTitle: n } = c;
1177
- return /* @__PURE__ */ u("div", { className: yt.other, children: [
1177
+ return /* @__PURE__ */ h("div", { className: yt.other, children: [
1178
1178
  /* @__PURE__ */ e("h5", { className: yt.subtitle, children: s || n }),
1179
1179
  /* @__PURE__ */ e("div", { className: yt.items, children: t.map((a, i) => /* @__PURE__ */ e(
1180
1180
  fe,
@@ -1225,7 +1225,7 @@ const pi = (c) => {
1225
1225
  title: d,
1226
1226
  subtitle: r,
1227
1227
  editable: o = !0,
1228
- draggable: h = !1,
1228
+ draggable: u = !1,
1229
1229
  withImage: g = !1,
1230
1230
  deletable: k = !0,
1231
1231
  addable: _ = !0,
@@ -1304,16 +1304,16 @@ const pi = (c) => {
1304
1304
  const te = (B) => {
1305
1305
  const { active: W, over: Y } = B;
1306
1306
  if (Y && W.id !== Y.id) {
1307
- const Ie = n.findIndex((R) => R.id === W.id), Fe = n.findIndex((R) => R.id === Y.id);
1308
- if (Ie !== -1 && Fe !== -1) {
1307
+ const Ie = n.findIndex((R) => R.id === W.id), Ue = n.findIndex((R) => R.id === Y.id);
1308
+ if (Ie !== -1 && Ue !== -1) {
1309
1309
  const R = [...n], [ie] = R.splice(Ie, 1);
1310
- R.splice(Fe, 0, ie), a(R);
1310
+ R.splice(Ue, 0, ie), a(R);
1311
1311
  }
1312
1312
  }
1313
1313
  }, Q = (B, W) => {
1314
- var Ie, Fe;
1315
- const Y = /* @__PURE__ */ u(G, { children: [
1316
- h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1314
+ var Ie, Ue;
1315
+ const Y = /* @__PURE__ */ h(G, { children: [
1316
+ u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1317
1317
  x,
1318
1318
  {
1319
1319
  name: "DotsSixVertical",
@@ -1408,11 +1408,11 @@ const pi = (c) => {
1408
1408
  } : Se);
1409
1409
  a([...Ne]);
1410
1410
  },
1411
- activeImage: (Ie = n.find((R) => R.id === B.id)) != null && Ie.images ? (Fe = n.find((R) => R.id === B.id)) == null ? void 0 : Fe.images[0] : void 0,
1411
+ activeImage: (Ie = n.find((R) => R.id === B.id)) != null && Ie.images ? (Ue = n.find((R) => R.id === B.id)) == null ? void 0 : Ue.images[0] : void 0,
1412
1412
  tip: A
1413
1413
  }
1414
1414
  ),
1415
- /* @__PURE__ */ u("div", { className: Z.buttons, children: [
1415
+ /* @__PURE__ */ h("div", { className: Z.buttons, children: [
1416
1416
  S && S > n.length && _ && /* @__PURE__ */ e("div", { className: Z.deleteButton, children: /* @__PURE__ */ e(
1417
1417
  x,
1418
1418
  {
@@ -1450,7 +1450,7 @@ const pi = (c) => {
1450
1450
  ) })
1451
1451
  ] })
1452
1452
  ] });
1453
- return h ? /* @__PURE__ */ e(
1453
+ return u ? /* @__PURE__ */ e(
1454
1454
  hi,
1455
1455
  {
1456
1456
  product: B,
@@ -1467,8 +1467,8 @@ const pi = (c) => {
1467
1467
  B.id
1468
1468
  );
1469
1469
  };
1470
- return /* @__PURE__ */ u("div", { className: Z.productsBlock, children: [
1471
- (d || t !== void 0) && /* @__PURE__ */ u("div", { className: Z.top, children: [
1470
+ return /* @__PURE__ */ h("div", { className: Z.productsBlock, children: [
1471
+ (d || t !== void 0) && /* @__PURE__ */ h("div", { className: Z.top, children: [
1472
1472
  d && /* @__PURE__ */ e("h3", { className: Z.title, children: d }),
1473
1473
  t !== void 0 && /* @__PURE__ */ e(
1474
1474
  fe,
@@ -1490,9 +1490,9 @@ const pi = (c) => {
1490
1490
  }
1491
1491
  ),
1492
1492
  (t === void 0 || t) && m && p && /* @__PURE__ */ e(xt, { ...p }),
1493
- (t === void 0 || t) && /* @__PURE__ */ u("div", { className: Z.products, children: [
1493
+ (t === void 0 || t) && /* @__PURE__ */ h("div", { className: Z.products, children: [
1494
1494
  r && /* @__PURE__ */ e("h5", { className: Z.subtitle, children: r }),
1495
- h ? /* @__PURE__ */ e(
1495
+ u ? /* @__PURE__ */ e(
1496
1496
  Ye,
1497
1497
  {
1498
1498
  sensors: z,
@@ -1555,7 +1555,7 @@ const pi = (c) => {
1555
1555
  style: {
1556
1556
  width: "fit-content"
1557
1557
  },
1558
- children: /* @__PURE__ */ u("div", { className: Z.addButton, children: [
1558
+ children: /* @__PURE__ */ h("div", { className: Z.addButton, children: [
1559
1559
  /* @__PURE__ */ e("span", { children: "Add Option" }),
1560
1560
  /* @__PURE__ */ e(
1561
1561
  x,
@@ -1582,7 +1582,7 @@ const pi = (c) => {
1582
1582
  }
1583
1583
  ),
1584
1584
  (t === void 0 || t) && i !== void 0 && /* @__PURE__ */ e(
1585
- He,
1585
+ Ve,
1586
1586
  {
1587
1587
  otherTitle: "Other",
1588
1588
  items: i
@@ -1649,7 +1649,7 @@ const pi = (c) => {
1649
1649
  fontSize: d === "m" ? 14 : d === "s" ? 12 : 16
1650
1650
  },
1651
1651
  disabled: i,
1652
- children: r === "Tertiary" ? /* @__PURE__ */ u("div", { className: De.content, children: [
1652
+ children: r === "Tertiary" ? /* @__PURE__ */ h("div", { className: De.content, children: [
1653
1653
  t,
1654
1654
  /* @__PURE__ */ e(
1655
1655
  x,
@@ -1700,7 +1700,7 @@ const Ed = (c) => {
1700
1700
  tags: d,
1701
1701
  title: r,
1702
1702
  subtitle: o,
1703
- draggable: h = !1,
1703
+ draggable: u = !1,
1704
1704
  withImage: g = !1,
1705
1705
  addable: k = !0,
1706
1706
  itemsOptions: _,
@@ -1750,8 +1750,8 @@ const Ed = (c) => {
1750
1750
  const O = (v, T = !1) => {
1751
1751
  const M = _.find((N) => N.id === v);
1752
1752
  if (!M) return;
1753
- const L = /* @__PURE__ */ u(G, { children: [
1754
- h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1753
+ const L = /* @__PURE__ */ h(G, { children: [
1754
+ u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1755
1755
  x,
1756
1756
  {
1757
1757
  name: "DotsSixVertical",
@@ -1789,7 +1789,7 @@ const Ed = (c) => {
1789
1789
  }
1790
1790
  ) }) })
1791
1791
  ] });
1792
- return h ? /* @__PURE__ */ e(
1792
+ return u ? /* @__PURE__ */ e(
1793
1793
  Oi,
1794
1794
  {
1795
1795
  id: v,
@@ -1805,8 +1805,8 @@ const Ed = (c) => {
1805
1805
  le()
1806
1806
  );
1807
1807
  };
1808
- return /* @__PURE__ */ u("div", { className: pe.productsBlock, children: [
1809
- (r || t !== void 0) && /* @__PURE__ */ u("div", { className: pe.top, children: [
1808
+ return /* @__PURE__ */ h("div", { className: pe.productsBlock, children: [
1809
+ (r || t !== void 0) && /* @__PURE__ */ h("div", { className: pe.top, children: [
1810
1810
  r && /* @__PURE__ */ e("h3", { className: pe.title, children: r }),
1811
1811
  t !== void 0 && /* @__PURE__ */ e(
1812
1812
  fe,
@@ -1817,9 +1817,9 @@ const Ed = (c) => {
1817
1817
  )
1818
1818
  ] }),
1819
1819
  f && I && /* @__PURE__ */ e(xt, { ...I }),
1820
- /* @__PURE__ */ u("div", { className: pe.products, children: [
1820
+ /* @__PURE__ */ h("div", { className: pe.products, children: [
1821
1821
  o && /* @__PURE__ */ e("h5", { className: pe.subtitle, children: o }),
1822
- h ? /* @__PURE__ */ e(
1822
+ u ? /* @__PURE__ */ e(
1823
1823
  Ye,
1824
1824
  {
1825
1825
  sensors: S,
@@ -1867,7 +1867,7 @@ const Ed = (c) => {
1867
1867
  style: {
1868
1868
  width: "fit-content"
1869
1869
  },
1870
- children: /* @__PURE__ */ u("div", { className: pe.addButton, children: [
1870
+ children: /* @__PURE__ */ h("div", { className: pe.addButton, children: [
1871
1871
  /* @__PURE__ */ e("span", { children: "Add Option" }),
1872
1872
  /* @__PURE__ */ e(
1873
1873
  x,
@@ -1894,14 +1894,14 @@ const Ed = (c) => {
1894
1894
  }
1895
1895
  ),
1896
1896
  d !== void 0 && /* @__PURE__ */ e(
1897
- He,
1897
+ Ve,
1898
1898
  {
1899
1899
  tagsTitle: "Tags",
1900
1900
  items: d
1901
1901
  }
1902
1902
  ),
1903
1903
  i !== void 0 && /* @__PURE__ */ e(
1904
- He,
1904
+ Ve,
1905
1905
  {
1906
1906
  otherTitle: "Other",
1907
1907
  items: i
@@ -1972,7 +1972,7 @@ const qd = (c) => {
1972
1972
  subtitle: d,
1973
1973
  editable: r = !0,
1974
1974
  draggable: o = !1,
1975
- deletable: h = !0,
1975
+ deletable: u = !0,
1976
1976
  addable: g = !0,
1977
1977
  itemsType: k,
1978
1978
  itemsOptions: _,
@@ -2010,7 +2010,7 @@ const qd = (c) => {
2010
2010
  }
2011
2011
  }
2012
2012
  }, O = (v, T) => {
2013
- const M = /* @__PURE__ */ u(G, { children: [
2013
+ const M = /* @__PURE__ */ h(G, { children: [
2014
2014
  o && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
2015
2015
  x,
2016
2016
  {
@@ -2043,7 +2043,7 @@ const qd = (c) => {
2043
2043
  options: _.filter((L) => !n.find((N) => N.name === L.name)).map((L) => L.name)
2044
2044
  }
2045
2045
  ),
2046
- /* @__PURE__ */ u("div", { className: de.buttons, children: [
2046
+ /* @__PURE__ */ h("div", { className: de.buttons, children: [
2047
2047
  r && /* @__PURE__ */ e("div", { className: de.deleteButton, children: /* @__PURE__ */ e(
2048
2048
  x,
2049
2049
  {
@@ -2054,7 +2054,7 @@ const qd = (c) => {
2054
2054
  onClick: (L) => $(L, v)
2055
2055
  }
2056
2056
  ) }),
2057
- h && /* @__PURE__ */ e("div", { className: de.deleteButton, children: /* @__PURE__ */ e(
2057
+ u && /* @__PURE__ */ e("div", { className: de.deleteButton, children: /* @__PURE__ */ e(
2058
2058
  x,
2059
2059
  {
2060
2060
  name: "Trash",
@@ -2084,8 +2084,8 @@ const qd = (c) => {
2084
2084
  v.id
2085
2085
  );
2086
2086
  };
2087
- return /* @__PURE__ */ u("div", { className: de.productsBlock, children: [
2088
- (i || t !== void 0) && /* @__PURE__ */ u("div", { className: de.top, children: [
2087
+ return /* @__PURE__ */ h("div", { className: de.productsBlock, children: [
2088
+ (i || t !== void 0) && /* @__PURE__ */ h("div", { className: de.top, children: [
2089
2089
  i && /* @__PURE__ */ e("h3", { className: de.title, children: i }),
2090
2090
  t !== void 0 && /* @__PURE__ */ e(
2091
2091
  fe,
@@ -2095,7 +2095,7 @@ const qd = (c) => {
2095
2095
  }
2096
2096
  )
2097
2097
  ] }),
2098
- /* @__PURE__ */ u("div", { className: de.products, children: [
2098
+ /* @__PURE__ */ h("div", { className: de.products, children: [
2099
2099
  d && /* @__PURE__ */ e("h5", { className: de.subtitle, children: d }),
2100
2100
  o ? /* @__PURE__ */ e(
2101
2101
  Ye,
@@ -2148,7 +2148,7 @@ const qd = (c) => {
2148
2148
  style: {
2149
2149
  width: "fit-content"
2150
2150
  },
2151
- children: /* @__PURE__ */ u("div", { className: de.addButton, children: [
2151
+ children: /* @__PURE__ */ h("div", { className: de.addButton, children: [
2152
2152
  /* @__PURE__ */ e("span", { children: "Add Option" }),
2153
2153
  /* @__PURE__ */ e(
2154
2154
  x,
@@ -2186,7 +2186,7 @@ const qd = (c) => {
2186
2186
  const { activeItem: s, setActiveItem: n, popupPosition: a, modalOptions: i, setIsOpenModal: d } = c;
2187
2187
  return nt(t, () => {
2188
2188
  n(null), d(!1);
2189
- }), /* @__PURE__ */ u(
2189
+ }), /* @__PURE__ */ h(
2190
2190
  "div",
2191
2191
  {
2192
2192
  ref: t,
@@ -2199,7 +2199,7 @@ const qd = (c) => {
2199
2199
  left: `${a.left}px`
2200
2200
  },
2201
2201
  children: [
2202
- /* @__PURE__ */ u("div", { className: ee.top, children: [
2202
+ /* @__PURE__ */ h("div", { className: ee.top, children: [
2203
2203
  /* @__PURE__ */ e("h3", { className: ee.title, children: s.name["en-US"] }),
2204
2204
  /* @__PURE__ */ e("div", { className: ee.closeIcon, children: /* @__PURE__ */ e(
2205
2205
  x,
@@ -2222,11 +2222,11 @@ const qd = (c) => {
2222
2222
  label: "Put up an attractive image",
2223
2223
  activeImage: s[r.field],
2224
2224
  onChange: (o) => {
2225
- const h = {
2225
+ const u = {
2226
2226
  ...s,
2227
2227
  [r.field]: o
2228
2228
  };
2229
- n(h);
2229
+ n(u);
2230
2230
  }
2231
2231
  },
2232
2232
  String(r.field)
@@ -2238,37 +2238,37 @@ const qd = (c) => {
2238
2238
  isActiveText: !0,
2239
2239
  typesText: s[r.field.type],
2240
2240
  setTypesText: (o) => {
2241
- const h = {
2241
+ const u = {
2242
2242
  ...s,
2243
2243
  [r.field.type]: o
2244
2244
  };
2245
- n(h);
2245
+ n(u);
2246
2246
  },
2247
2247
  alignText: s[r.field.alignText],
2248
2248
  setAlignText: (o) => {
2249
- const h = {
2249
+ const u = {
2250
2250
  ...s,
2251
2251
  [r.field.alignText]: o
2252
2252
  };
2253
- n(h);
2253
+ n(u);
2254
2254
  },
2255
2255
  text: s[r.field.text]["en-US"] || "",
2256
2256
  setText: (o) => {
2257
- const h = {
2257
+ const u = {
2258
2258
  ...s,
2259
2259
  [r.field.text]: {
2260
2260
  "en-US": o
2261
2261
  }
2262
2262
  };
2263
- n(h);
2263
+ n(u);
2264
2264
  },
2265
2265
  typeFont: s[r.field.type],
2266
2266
  setTypeFont: (o) => {
2267
- const h = {
2267
+ const u = {
2268
2268
  ...s,
2269
2269
  [r.field.type]: o
2270
2270
  };
2271
- n(h);
2271
+ n(u);
2272
2272
  },
2273
2273
  subtitle: r.label
2274
2274
  }
@@ -2278,13 +2278,13 @@ const qd = (c) => {
2278
2278
  ge,
2279
2279
  {
2280
2280
  onChange: (o) => {
2281
- const h = {
2281
+ const u = {
2282
2282
  ...s,
2283
2283
  [r.field]: {
2284
2284
  "en-US": o
2285
2285
  }
2286
2286
  };
2287
- n(h);
2287
+ n(u);
2288
2288
  },
2289
2289
  value: s[r.field]["en-US"] || "",
2290
2290
  label: r.label,
@@ -2296,11 +2296,11 @@ const qd = (c) => {
2296
2296
  ge,
2297
2297
  {
2298
2298
  onChange: (o) => {
2299
- const h = {
2299
+ const u = {
2300
2300
  ...s,
2301
2301
  [r.field]: o
2302
2302
  };
2303
- n(h);
2303
+ n(u);
2304
2304
  },
2305
2305
  value: s[r.field] || "",
2306
2306
  label: r.label,
@@ -2309,18 +2309,18 @@ const qd = (c) => {
2309
2309
  }
2310
2310
  );
2311
2311
  if (r.type === "inputSwitch")
2312
- return /* @__PURE__ */ u("div", { className: ee.link, children: [
2312
+ return /* @__PURE__ */ h("div", { className: ee.link, children: [
2313
2313
  /* @__PURE__ */ e(
2314
2314
  ge,
2315
2315
  {
2316
2316
  onChange: (o) => {
2317
- const h = {
2317
+ const u = {
2318
2318
  ...s,
2319
2319
  [r.field.text]: {
2320
2320
  "en-US": o
2321
2321
  }
2322
2322
  };
2323
- n(h);
2323
+ n(u);
2324
2324
  },
2325
2325
  value: s[r.field.text]["en-US"] || "",
2326
2326
  label: r.inputLabel,
@@ -2333,11 +2333,11 @@ const qd = (c) => {
2333
2333
  current: !!s[r.field.switch] || !1,
2334
2334
  label: r.switchLabel,
2335
2335
  onChange: (o) => {
2336
- const h = {
2336
+ const u = {
2337
2337
  ...s,
2338
2338
  [r.field.switch]: o
2339
2339
  };
2340
- n(h);
2340
+ n(u);
2341
2341
  }
2342
2342
  }
2343
2343
  )
@@ -2348,11 +2348,11 @@ const qd = (c) => {
2348
2348
  {
2349
2349
  options: r.itemsOptions,
2350
2350
  onChange: (o) => {
2351
- const h = {
2351
+ const u = {
2352
2352
  ...s,
2353
2353
  [r.field]: o
2354
2354
  };
2355
- n(h);
2355
+ n(u);
2356
2356
  },
2357
2357
  label: r.label,
2358
2358
  value: s[r.field] || "String",
@@ -2368,7 +2368,7 @@ const qd = (c) => {
2368
2368
  function oa(c) {
2369
2369
  const { product: t, children: s } = c, { attributes: n, listeners: a, setNodeRef: i, transform: d, transition: r, isDragging: o } = Ze({
2370
2370
  id: t.id
2371
- }), h = {
2371
+ }), u = {
2372
2372
  transform: et.Transform.toString(d),
2373
2373
  transition: r
2374
2374
  };
@@ -2376,7 +2376,7 @@ function oa(c) {
2376
2376
  "div",
2377
2377
  {
2378
2378
  ref: i,
2379
- style: h,
2379
+ style: u,
2380
2380
  className: `${ee.product} ${o ? ee.dragging : ""}`,
2381
2381
  ...n,
2382
2382
  ...a,
@@ -2394,7 +2394,7 @@ const Dd = (c) => {
2394
2394
  title: d,
2395
2395
  subtitle: r,
2396
2396
  editable: o = !0,
2397
- draggable: h = !1,
2397
+ draggable: u = !1,
2398
2398
  deletable: g = !0,
2399
2399
  addable: k = !0,
2400
2400
  itemsType: _,
@@ -2455,8 +2455,8 @@ const Dd = (c) => {
2455
2455
  }
2456
2456
  }, V = (P) => {
2457
2457
  var U;
2458
- const z = /* @__PURE__ */ u(G, { children: [
2459
- h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
2458
+ const z = /* @__PURE__ */ h(G, { children: [
2459
+ u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
2460
2460
  x,
2461
2461
  {
2462
2462
  name: "DotsSixVertical",
@@ -2517,7 +2517,7 @@ const Dd = (c) => {
2517
2517
  activeImage: (U = n.find((F) => F.id === P.id)) == null ? void 0 : U.images[0]
2518
2518
  }
2519
2519
  ),
2520
- /* @__PURE__ */ u("div", { className: ee.buttons, children: [
2520
+ /* @__PURE__ */ h("div", { className: ee.buttons, children: [
2521
2521
  o && /* @__PURE__ */ e("div", { className: ee.deleteButton, children: /* @__PURE__ */ e(
2522
2522
  x,
2523
2523
  {
@@ -2541,7 +2541,7 @@ const Dd = (c) => {
2541
2541
  ) })
2542
2542
  ] })
2543
2543
  ] });
2544
- return h ? /* @__PURE__ */ e(
2544
+ return u ? /* @__PURE__ */ e(
2545
2545
  oa,
2546
2546
  {
2547
2547
  product: P,
@@ -2557,8 +2557,8 @@ const Dd = (c) => {
2557
2557
  P.id
2558
2558
  );
2559
2559
  };
2560
- return /* @__PURE__ */ u("div", { className: ee.productsBlock, children: [
2561
- (d || t !== void 0) && /* @__PURE__ */ u("div", { className: ee.top, children: [
2560
+ return /* @__PURE__ */ h("div", { className: ee.productsBlock, children: [
2561
+ (d || t !== void 0) && /* @__PURE__ */ h("div", { className: ee.top, children: [
2562
2562
  d && /* @__PURE__ */ e("h3", { className: ee.title, children: d }),
2563
2563
  t !== void 0 && /* @__PURE__ */ e(
2564
2564
  fe,
@@ -2580,9 +2580,9 @@ const Dd = (c) => {
2580
2580
  }
2581
2581
  ),
2582
2582
  l && m && /* @__PURE__ */ e(xt, { ...m }),
2583
- /* @__PURE__ */ u("div", { className: ee.products, children: [
2583
+ /* @__PURE__ */ h("div", { className: ee.products, children: [
2584
2584
  r && /* @__PURE__ */ e("h5", { className: ee.subtitle, children: r }),
2585
- h ? /* @__PURE__ */ e(
2585
+ u ? /* @__PURE__ */ e(
2586
2586
  Ye,
2587
2587
  {
2588
2588
  sensors: C,
@@ -2651,7 +2651,7 @@ const Dd = (c) => {
2651
2651
  style: {
2652
2652
  width: "fit-content"
2653
2653
  },
2654
- children: /* @__PURE__ */ u("div", { className: ee.addButton, children: [
2654
+ children: /* @__PURE__ */ h("div", { className: ee.addButton, children: [
2655
2655
  /* @__PURE__ */ e("span", { children: "Add Option" }),
2656
2656
  /* @__PURE__ */ e(
2657
2657
  x,
@@ -2668,7 +2668,7 @@ const Dd = (c) => {
2668
2668
  )
2669
2669
  ] }),
2670
2670
  i !== void 0 && /* @__PURE__ */ e(
2671
- He,
2671
+ Ve,
2672
2672
  {
2673
2673
  otherTitle: "Other",
2674
2674
  items: i
@@ -2684,7 +2684,7 @@ const Dd = (c) => {
2684
2684
  closeIcon: ha
2685
2685
  }, pa = b.forwardRef((c, t) => {
2686
2686
  var w;
2687
- const { activeButton: s, setActiveButton: n, popupPosition: a, editableLink: i = !0 } = c, [d, r] = b.useState(s.typesText), [o, h] = b.useState(s.destination), [g, k] = b.useState(s.page), [_, f] = b.useState(s.link || ""), [I, l] = b.useState(s.text || { "en-US": "" }), [m, p] = b.useState(s.openInNewTab), { pages: y } = We();
2687
+ const { activeButton: s, setActiveButton: n, popupPosition: a, editableLink: i = !0 } = c, [d, r] = b.useState(s.typesText), [o, u] = b.useState(s.destination), [g, k] = b.useState(s.page), [_, f] = b.useState(s.link || ""), [I, l] = b.useState(s.text || { "en-US": "" }), [m, p] = b.useState(s.openInNewTab), { pages: y } = We();
2688
2688
  return nt(t, () => {
2689
2689
  n(null);
2690
2690
  }), b.useEffect(() => {
@@ -2699,7 +2699,7 @@ const Dd = (c) => {
2699
2699
  openInNewTab: m
2700
2700
  }
2701
2701
  });
2702
- }, [d, o, _, I, g, m]), /* @__PURE__ */ u(
2702
+ }, [d, o, _, I, g, m]), /* @__PURE__ */ h(
2703
2703
  "div",
2704
2704
  {
2705
2705
  className: Pe.modal,
@@ -2712,7 +2712,7 @@ const Dd = (c) => {
2712
2712
  },
2713
2713
  ref: t,
2714
2714
  children: [
2715
- /* @__PURE__ */ u("div", { className: Pe.top, children: [
2715
+ /* @__PURE__ */ h("div", { className: Pe.top, children: [
2716
2716
  /* @__PURE__ */ e("h3", { className: Pe.title, children: s.type }),
2717
2717
  /* @__PURE__ */ e("div", { className: Pe.closeIcon, children: /* @__PURE__ */ e(
2718
2718
  x,
@@ -2725,12 +2725,12 @@ const Dd = (c) => {
2725
2725
  }
2726
2726
  ) })
2727
2727
  ] }),
2728
- /* @__PURE__ */ u("div", { className: Pe.options, children: [
2728
+ /* @__PURE__ */ h("div", { className: Pe.options, children: [
2729
2729
  i && /* @__PURE__ */ e(
2730
2730
  ue,
2731
2731
  {
2732
2732
  label: "Destination",
2733
- onChange: (S) => h(S),
2733
+ onChange: (S) => u(S),
2734
2734
  options: ["Go to Page", "Open Link"].filter((S) => S !== o),
2735
2735
  value: o
2736
2736
  }
@@ -2802,7 +2802,7 @@ const Dd = (c) => {
2802
2802
  addButton: ya,
2803
2803
  deleteButton: ba
2804
2804
  }, Ia = (c) => {
2805
- const { buttons: t, setButtons: s, deletable: n = !0, addable: a = !0, editableLink: i = !0 } = c, { pages: d } = We(), [r, o] = b.useState(null), [h, g] = b.useState({
2805
+ const { buttons: t, setButtons: s, deletable: n = !0, addable: a = !0, editableLink: i = !0 } = c, { pages: d } = We(), [r, o] = b.useState(null), [u, g] = b.useState({
2806
2806
  top: 0,
2807
2807
  left: 0
2808
2808
  }), [k, _] = b.useState(null), f = b.useRef(null);
@@ -2836,9 +2836,9 @@ const Dd = (c) => {
2836
2836
  };
2837
2837
  y.splice(p + 1, 0, w), s(y);
2838
2838
  };
2839
- return /* @__PURE__ */ u("div", { className: Ce.products, children: [
2839
+ return /* @__PURE__ */ h("div", { className: Ce.products, children: [
2840
2840
  /* @__PURE__ */ e("h5", { className: Ce.subtitle, children: "Button Type" }),
2841
- t.map((m, p) => /* @__PURE__ */ u(
2841
+ t.map((m, p) => /* @__PURE__ */ h(
2842
2842
  "div",
2843
2843
  {
2844
2844
  className: Ce.product,
@@ -2857,7 +2857,7 @@ const Dd = (c) => {
2857
2857
  options: ["Primary", "Secondary", "Tertiary"]
2858
2858
  }
2859
2859
  ),
2860
- /* @__PURE__ */ u("div", { className: Ce.buttons, children: [
2860
+ /* @__PURE__ */ h("div", { className: Ce.buttons, children: [
2861
2861
  /* @__PURE__ */ e("div", { className: Ce.deleteButton, children: /* @__PURE__ */ e(
2862
2862
  x,
2863
2863
  {
@@ -2907,7 +2907,7 @@ const Dd = (c) => {
2907
2907
  ref: f,
2908
2908
  activeButton: r,
2909
2909
  setActiveButton: o,
2910
- popupPosition: h,
2910
+ popupPosition: u,
2911
2911
  editableLink: i
2912
2912
  }
2913
2913
  ),
@@ -2952,7 +2952,7 @@ const Dd = (c) => {
2952
2952
  style: {
2953
2953
  width: "fit-content"
2954
2954
  },
2955
- children: /* @__PURE__ */ u("div", { className: Ce.addButton, children: [
2955
+ children: /* @__PURE__ */ h("div", { className: Ce.addButton, children: [
2956
2956
  /* @__PURE__ */ e("span", { children: "Add Option" }),
2957
2957
  /* @__PURE__ */ e(
2958
2958
  x,
@@ -2978,8 +2978,8 @@ const Dd = (c) => {
2978
2978
  addable: d = !0,
2979
2979
  deletable: r = !0
2980
2980
  } = c;
2981
- return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ u("div", { className: Pe.buttonsBlock, children: [
2982
- /* @__PURE__ */ u("div", { className: Pe.top, children: [
2981
+ return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h("div", { className: Pe.buttonsBlock, children: [
2982
+ /* @__PURE__ */ h("div", { className: Pe.top, children: [
2983
2983
  /* @__PURE__ */ e("h3", { className: Pe.title, children: "Buttons" }),
2984
2984
  /* @__PURE__ */ e(
2985
2985
  fe,
@@ -3015,7 +3015,7 @@ const Dd = (c) => {
3015
3015
  controls: Ba,
3016
3016
  button: Ma
3017
3017
  }, xt = (c) => {
3018
- const { label: t, min: s = 1, max: n = 4, step: a = 1, count: i, setCount: d } = c, [r, o] = b.useState(!1), h = Array.from({ length: (n - s) / a + 1 }), g = (i - s) / (n - s) * 100, k = () => {
3018
+ const { label: t, min: s = 1, max: n = 4, step: a = 1, count: i, setCount: d } = c, [r, o] = b.useState(!1), u = Array.from({ length: (n - s) / a + 1 }), g = (i - s) / (n - s) * 100, k = () => {
3019
3019
  i < n && d(i + a);
3020
3020
  }, _ = () => {
3021
3021
  i > s && d(i - a);
@@ -3023,10 +3023,10 @@ const Dd = (c) => {
3023
3023
  const l = s + I * a;
3024
3024
  d(l);
3025
3025
  };
3026
- return /* @__PURE__ */ u("div", { className: ce.wrapper, children: [
3026
+ return /* @__PURE__ */ h("div", { className: ce.wrapper, children: [
3027
3027
  t && /* @__PURE__ */ e("h5", { className: ce.subtitle, children: t }),
3028
- /* @__PURE__ */ u("div", { className: ce.content, children: [
3029
- /* @__PURE__ */ u("div", { className: ce.range, children: [
3028
+ /* @__PURE__ */ h("div", { className: ce.content, children: [
3029
+ /* @__PURE__ */ h("div", { className: ce.range, children: [
3030
3030
  /* @__PURE__ */ e("div", { className: ce.track }),
3031
3031
  /* @__PURE__ */ e(
3032
3032
  "div",
@@ -3035,7 +3035,7 @@ const Dd = (c) => {
3035
3035
  style: { width: `${g}%` }
3036
3036
  }
3037
3037
  ),
3038
- /* @__PURE__ */ e("div", { className: ce.dots, children: h.map((I, l) => {
3038
+ /* @__PURE__ */ e("div", { className: ce.dots, children: u.map((I, l) => {
3039
3039
  const m = l <= (i - s) / a;
3040
3040
  return /* @__PURE__ */ e(
3041
3041
  "button",
@@ -3068,7 +3068,7 @@ const Dd = (c) => {
3068
3068
  }
3069
3069
  )
3070
3070
  ] }),
3071
- /* @__PURE__ */ u("div", { className: ce.countBlock, children: [
3071
+ /* @__PURE__ */ h("div", { className: ce.countBlock, children: [
3072
3072
  /* @__PURE__ */ e(
3073
3073
  ge,
3074
3074
  {
@@ -3083,7 +3083,7 @@ const Dd = (c) => {
3083
3083
  value: String(i)
3084
3084
  }
3085
3085
  ),
3086
- /* @__PURE__ */ u("div", { className: ce.controls, children: [
3086
+ /* @__PURE__ */ h("div", { className: ce.controls, children: [
3087
3087
  /* @__PURE__ */ e(
3088
3088
  "button",
3089
3089
  {
@@ -3141,7 +3141,7 @@ const Dd = (c) => {
3141
3141
  const { activeItem: s, setActiveItem: n, popupPosition: a, setIsOpenModal: i, itemsOptions: d } = c, r = d.find((o) => o.id === s.listingId);
3142
3142
  return nt(t, () => {
3143
3143
  n(null), i(!1);
3144
- }), r ? /* @__PURE__ */ u(
3144
+ }), r ? /* @__PURE__ */ h(
3145
3145
  "div",
3146
3146
  {
3147
3147
  className: oe.modal,
@@ -3153,7 +3153,7 @@ const Dd = (c) => {
3153
3153
  left: `${a.left}px`
3154
3154
  },
3155
3155
  children: [
3156
- /* @__PURE__ */ u("div", { className: oe.top, children: [
3156
+ /* @__PURE__ */ h("div", { className: oe.top, children: [
3157
3157
  /* @__PURE__ */ e(
3158
3158
  "h3",
3159
3159
  {
@@ -3180,11 +3180,11 @@ const Dd = (c) => {
3180
3180
  label: "Put up an attractive image",
3181
3181
  activeImage: r.productData.images.length > 0 ? r.productData.images[0].cfId : s.image ? s.image : void 0,
3182
3182
  onChange: (o) => {
3183
- const h = {
3183
+ const u = {
3184
3184
  ...s,
3185
3185
  image: o[0]
3186
3186
  };
3187
- n(h);
3187
+ n(u);
3188
3188
  }
3189
3189
  }
3190
3190
  ) })
@@ -3196,7 +3196,7 @@ const Dd = (c) => {
3196
3196
  function Ya(c) {
3197
3197
  const { product: t, children: s } = c, { attributes: n, listeners: a, setNodeRef: i, transform: d, transition: r, isDragging: o } = Ze({
3198
3198
  id: String(t.listingId)
3199
- }), h = {
3199
+ }), u = {
3200
3200
  transform: et.Transform.toString(d),
3201
3201
  transition: r
3202
3202
  };
@@ -3204,7 +3204,7 @@ function Ya(c) {
3204
3204
  "div",
3205
3205
  {
3206
3206
  ref: i,
3207
- style: h,
3207
+ style: u,
3208
3208
  className: `${oe.product} ${o ? oe.dragging : ""}`,
3209
3209
  ...n,
3210
3210
  ...a,
@@ -3222,7 +3222,7 @@ const Ld = (c) => {
3222
3222
  title: d,
3223
3223
  subtitle: r,
3224
3224
  editable: o = !0,
3225
- draggable: h = !1,
3225
+ draggable: u = !1,
3226
3226
  withImage: g = !1,
3227
3227
  deletable: k = !0,
3228
3228
  addable: _ = !0,
@@ -3299,8 +3299,8 @@ const Ld = (c) => {
3299
3299
  }, C = (E) => {
3300
3300
  const V = I.find((z) => E.listingId === z.id);
3301
3301
  if (!V) return null;
3302
- const P = /* @__PURE__ */ u(G, { children: [
3303
- h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3302
+ const P = /* @__PURE__ */ h(G, { children: [
3303
+ u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3304
3304
  x,
3305
3305
  {
3306
3306
  name: "DotsSixVertical",
@@ -3334,7 +3334,7 @@ const Ld = (c) => {
3334
3334
  })
3335
3335
  }
3336
3336
  ),
3337
- /* @__PURE__ */ u("div", { className: oe.buttons, children: [
3337
+ /* @__PURE__ */ h("div", { className: oe.buttons, children: [
3338
3338
  o && /* @__PURE__ */ e("div", { className: oe.deleteButton, children: /* @__PURE__ */ e(
3339
3339
  x,
3340
3340
  {
@@ -3358,7 +3358,7 @@ const Ld = (c) => {
3358
3358
  ) })
3359
3359
  ] })
3360
3360
  ] });
3361
- return h ? /* @__PURE__ */ e(
3361
+ return u ? /* @__PURE__ */ e(
3362
3362
  Ya,
3363
3363
  {
3364
3364
  product: E,
@@ -3374,8 +3374,8 @@ const Ld = (c) => {
3374
3374
  E.listingId
3375
3375
  );
3376
3376
  }, D = b.useRef(null);
3377
- return /* @__PURE__ */ u("div", { className: oe.productsBlock, children: [
3378
- (d || t !== void 0) && /* @__PURE__ */ u("div", { className: oe.top, children: [
3377
+ return /* @__PURE__ */ h("div", { className: oe.productsBlock, children: [
3378
+ (d || t !== void 0) && /* @__PURE__ */ h("div", { className: oe.top, children: [
3379
3379
  d && /* @__PURE__ */ e("h3", { className: oe.title, children: d }),
3380
3380
  t !== void 0 && /* @__PURE__ */ e(
3381
3381
  fe,
@@ -3396,9 +3396,9 @@ const Ld = (c) => {
3396
3396
  itemsOptions: I
3397
3397
  }
3398
3398
  ),
3399
- t && /* @__PURE__ */ u("div", { className: oe.products, children: [
3399
+ t && /* @__PURE__ */ h("div", { className: oe.products, children: [
3400
3400
  r && /* @__PURE__ */ e("h5", { className: oe.subtitle, children: r }),
3401
- h ? /* @__PURE__ */ e(
3401
+ u ? /* @__PURE__ */ e(
3402
3402
  Ye,
3403
3403
  {
3404
3404
  sensors: v,
@@ -3444,7 +3444,7 @@ const Ld = (c) => {
3444
3444
  style: {
3445
3445
  width: "fit-content"
3446
3446
  },
3447
- children: /* @__PURE__ */ u("div", { className: oe.addButton, children: [
3447
+ children: /* @__PURE__ */ h("div", { className: oe.addButton, children: [
3448
3448
  /* @__PURE__ */ e("span", { children: "Add Option" }),
3449
3449
  /* @__PURE__ */ e(
3450
3450
  x,
@@ -3470,7 +3470,7 @@ const Ld = (c) => {
3470
3470
  }
3471
3471
  ),
3472
3472
  t && i !== void 0 && /* @__PURE__ */ e(
3473
- He,
3473
+ Ve,
3474
3474
  {
3475
3475
  otherTitle: "Other",
3476
3476
  items: i
@@ -3524,7 +3524,7 @@ const Ld = (c) => {
3524
3524
  min: d,
3525
3525
  max: r,
3526
3526
  placeholder: o,
3527
- disabled: h = !1,
3527
+ disabled: u = !1,
3528
3528
  required: g = !1,
3529
3529
  regex: k,
3530
3530
  paddingless: _ = !1,
@@ -3537,7 +3537,7 @@ const Ld = (c) => {
3537
3537
  onFocus: w,
3538
3538
  leftIcon: S,
3539
3539
  error: $
3540
- } = c, { themeSettings: A } = pt(), { isAntistock: O } = Ve(), { inputs: v } = A, [T, M] = b.useState(!1);
3540
+ } = c, { themeSettings: A } = pt(), { isAntistock: O } = ze(), { inputs: v } = A, [T, M] = b.useState(!1);
3541
3541
  function L(C) {
3542
3542
  if (Number(C) < 0) return String(d);
3543
3543
  const D = C.replace(/[^\d-]/g, "");
@@ -3551,7 +3551,7 @@ const Ld = (c) => {
3551
3551
  return console.error("Invalid regex pattern:", k, D), !0;
3552
3552
  }
3553
3553
  }
3554
- return /* @__PURE__ */ u("div", { className: ae.wrapper, children: [
3554
+ return /* @__PURE__ */ h("div", { className: ae.wrapper, children: [
3555
3555
  n && /* @__PURE__ */ e(
3556
3556
  "label",
3557
3557
  {
@@ -3560,19 +3560,19 @@ const Ld = (c) => {
3560
3560
  style: {
3561
3561
  color: O ? "var(--text-secondary)" : void 0
3562
3562
  },
3563
- children: n.includes("*") ? /* @__PURE__ */ u(G, { children: [
3563
+ children: n.includes("*") ? /* @__PURE__ */ h(G, { children: [
3564
3564
  n.replace(" *", "").replace("*", ""),
3565
3565
  /* @__PURE__ */ e("span", { className: ae.requiredStar, children: " *" })
3566
3566
  ] }) : n
3567
3567
  }
3568
3568
  ),
3569
- /* @__PURE__ */ u(
3569
+ /* @__PURE__ */ h(
3570
3570
  "div",
3571
3571
  {
3572
3572
  className: q(ae.content, {
3573
3573
  [ae.contentBorder]: !O && v.border.active,
3574
3574
  [ae.contentField]: v.field.active,
3575
- [ae.disabled]: h,
3575
+ [ae.disabled]: u,
3576
3576
  [ae.contentIsAntistock]: O,
3577
3577
  [ae.contentError]: $
3578
3578
  }),
@@ -3607,7 +3607,7 @@ const Ld = (c) => {
3607
3607
  onFocus: () => {
3608
3608
  w == null || w(), M(!0);
3609
3609
  },
3610
- disabled: h,
3610
+ disabled: u,
3611
3611
  style: {
3612
3612
  textAlign: m ? "center" : "left",
3613
3613
  padding: l ? `7px ${Number(v.general.size) + 20}px 7px ${S ? 35 : 11}px` : O ? `4.5px ${y ? 35 : 11}px 4px ${S ? 35 : 11}px` : `7px ${y ? 35 : 11}px 7px ${S ? 35 : 11}px`
@@ -3642,7 +3642,7 @@ const Ld = (c) => {
3642
3642
  loader: Ao,
3643
3643
  loaderAntistock: Bo
3644
3644
  }, Jt = (c) => {
3645
- const { isAntistock: t } = Ve();
3645
+ const { isAntistock: t } = ze();
3646
3646
  return t ? /* @__PURE__ */ e(
3647
3647
  "span",
3648
3648
  {
@@ -3681,7 +3681,7 @@ const Ld = (c) => {
3681
3681
  style: {
3682
3682
  padding: a
3683
3683
  },
3684
- children: /* @__PURE__ */ u(
3684
+ children: /* @__PURE__ */ h(
3685
3685
  "div",
3686
3686
  {
3687
3687
  className: q(Be.tip, {
@@ -3743,12 +3743,12 @@ const Ld = (c) => {
3743
3743
  placeholder: i = "Type something...",
3744
3744
  type: d = "text",
3745
3745
  required: r = !1
3746
- } = c, [o, h] = b.useState(n.length), { themeSettings: g } = pt(), { isAntistock: k } = Ve();
3746
+ } = c, [o, u] = b.useState(n.length), { themeSettings: g } = pt(), { isAntistock: k } = ze();
3747
3747
  function _(f) {
3748
3748
  return d === "number" ? f.replace(/[^\d\n]+/g, "") : f;
3749
3749
  }
3750
- return /* @__PURE__ */ u("div", { className: xe.wrapper, children: [
3751
- s && /* @__PURE__ */ u(
3750
+ return /* @__PURE__ */ h("div", { className: xe.wrapper, children: [
3751
+ s && /* @__PURE__ */ h(
3752
3752
  "label",
3753
3753
  {
3754
3754
  className: xe.label,
@@ -3769,7 +3769,7 @@ const Ld = (c) => {
3769
3769
  value: n,
3770
3770
  onChange: (f) => {
3771
3771
  const I = _(f.target.value);
3772
- h(I.length), t(I);
3772
+ u(I.length), t(I);
3773
3773
  },
3774
3774
  placeholder: i,
3775
3775
  className: q(xe.textarea, {
@@ -3780,7 +3780,7 @@ const Ld = (c) => {
3780
3780
  maxLength: a
3781
3781
  }
3782
3782
  ),
3783
- a && /* @__PURE__ */ u("div", { className: xe.length, children: [
3783
+ a && /* @__PURE__ */ h("div", { className: xe.length, children: [
3784
3784
  o,
3785
3785
  "/",
3786
3786
  a
@@ -3792,7 +3792,7 @@ const Yo = (c) => {
3792
3792
  var A, O;
3793
3793
  const { product: t, setIsOpen: s, isCartEnabled: n = !0 } = c, { variants: a } = t, [i, d] = b.useState(a[0]), [r, o] = b.useState(
3794
3794
  i.chargeTypes ? i.chargeTypes[0] : "ONE_TIME"
3795
- ), { notifications: h, setNotifications: g } = je(), k = mt(), [_, f] = b.useState(1), { cart: I, reset: l, addProductToCart: m } = ze(), [p, y] = b.useState(!1);
3795
+ ), { notifications: u, setNotifications: g } = He(), k = mt(), [_, f] = b.useState(1), { cart: I, reset: l, addProductToCart: m } = Fe(), [p, y] = b.useState(!1);
3796
3796
  b.useEffect(() => {
3797
3797
  y(!0);
3798
3798
  const v = setTimeout(() => y(!1), 600);
@@ -3806,7 +3806,7 @@ const Yo = (c) => {
3806
3806
  chargeType: r,
3807
3807
  quantity: _
3808
3808
  }), g([
3809
- ...h,
3809
+ ...u,
3810
3810
  {
3811
3811
  id: le(),
3812
3812
  message: "Product added to cart",
@@ -3816,7 +3816,7 @@ const Yo = (c) => {
3816
3816
  } catch (v) {
3817
3817
  const T = v;
3818
3818
  g([
3819
- ...h,
3819
+ ...u,
3820
3820
  {
3821
3821
  id: le(),
3822
3822
  message: `Product failed to add to cart: ${T.message}`,
@@ -3850,7 +3850,7 @@ const Yo = (c) => {
3850
3850
  i.chargeTypes && o(
3851
3851
  i.chargeTypes.includes(r) ? r : i.chargeTypes[0]
3852
3852
  );
3853
- }, [i.chargeTypes]), /* @__PURE__ */ u("div", { className: H.options, children: [
3853
+ }, [i.chargeTypes]), /* @__PURE__ */ h("div", { className: H.options, children: [
3854
3854
  i.chargeTypes && i.chargeTypes.length > 1 && /* @__PURE__ */ e("div", { className: H.chargeTypes, children: i.chargeTypes.map((v) => /* @__PURE__ */ e(
3855
3855
  "div",
3856
3856
  {
@@ -3867,7 +3867,7 @@ const Yo = (c) => {
3867
3867
  return (T = v.chargeTypes) == null ? void 0 : T.includes(r);
3868
3868
  }).map((v) => {
3869
3869
  var T, M;
3870
- return /* @__PURE__ */ u(
3870
+ return /* @__PURE__ */ h(
3871
3871
  "div",
3872
3872
  {
3873
3873
  className: q(H.variant, {
@@ -3877,7 +3877,7 @@ const Yo = (c) => {
3877
3877
  d(v), f(1);
3878
3878
  },
3879
3879
  children: [
3880
- /* @__PURE__ */ u("div", { className: H.variantInfo, children: [
3880
+ /* @__PURE__ */ h("div", { className: H.variantInfo, children: [
3881
3881
  /* @__PURE__ */ e(
3882
3882
  "span",
3883
3883
  {
@@ -3888,7 +3888,7 @@ const Yo = (c) => {
3888
3888
  }
3889
3889
  }
3890
3890
  ),
3891
- /* @__PURE__ */ u("span", { id: "md", children: [
3891
+ /* @__PURE__ */ h("span", { id: "md", children: [
3892
3892
  me({
3893
3893
  amount: r === "ONE_TIME" ? v.price.amount : v.subscriptionSettings ? v.subscriptionSettings.price.amount : 0,
3894
3894
  currency: r === "ONE_TIME" ? v.price.currency : v.subscriptionSettings ? v.subscriptionSettings.price.currency : "USD"
@@ -3897,7 +3897,7 @@ const Yo = (c) => {
3897
3897
  r === "RECURRING" && v.subscriptionSettings && ` / ${rn(v.subscriptionSettings.recurringIntervalDays || 0)}`
3898
3898
  ] })
3899
3899
  ] }),
3900
- /* @__PURE__ */ e("div", { id: "md", children: r === "ONE_TIME" && /* @__PURE__ */ u(
3900
+ /* @__PURE__ */ e("div", { id: "md", children: r === "ONE_TIME" && /* @__PURE__ */ h(
3901
3901
  "span",
3902
3902
  {
3903
3903
  className: H.stock,
@@ -3914,7 +3914,7 @@ const Yo = (c) => {
3914
3914
  v.id
3915
3915
  );
3916
3916
  }) }),
3917
- r === "ONE_TIME" && /* @__PURE__ */ u(
3917
+ r === "ONE_TIME" && /* @__PURE__ */ h(
3918
3918
  "div",
3919
3919
  {
3920
3920
  className: H.quantity,
@@ -3961,10 +3961,10 @@ const Yo = (c) => {
3961
3961
  ]
3962
3962
  }
3963
3963
  ),
3964
- /* @__PURE__ */ u("div", { className: H.meta, children: [
3965
- /* @__PURE__ */ u("div", { className: H.info, children: [
3964
+ /* @__PURE__ */ h("div", { className: H.meta, children: [
3965
+ /* @__PURE__ */ h("div", { className: H.info, children: [
3966
3966
  /* @__PURE__ */ e("span", { id: "md", children: "Delivery" }),
3967
- /* @__PURE__ */ u("div", { className: H.infoRight, children: [
3967
+ /* @__PURE__ */ h("div", { className: H.infoRight, children: [
3968
3968
  /* @__PURE__ */ e(
3969
3969
  x,
3970
3970
  {
@@ -3977,9 +3977,9 @@ const Yo = (c) => {
3977
3977
  /* @__PURE__ */ e("span", { id: "md", children: !i.deliveryTime || i.deliveryTime === 0 ? "Instant" : $(i.deliveryTime) })
3978
3978
  ] })
3979
3979
  ] }),
3980
- /* @__PURE__ */ u("div", { className: H.info, children: [
3980
+ /* @__PURE__ */ h("div", { className: H.info, children: [
3981
3981
  /* @__PURE__ */ e("span", { id: "md", children: "Price" }),
3982
- /* @__PURE__ */ e("div", { className: H.infoRight, children: r === "ONE_TIME" ? i.compareAtPrice && (i.compareAtPrice.amount || 0) - (i.price.amount || 0) > 0 ? /* @__PURE__ */ u(
3982
+ /* @__PURE__ */ e("div", { className: H.infoRight, children: r === "ONE_TIME" ? i.compareAtPrice && (i.compareAtPrice.amount || 0) - (i.price.amount || 0) > 0 ? /* @__PURE__ */ h(
3983
3983
  "div",
3984
3984
  {
3985
3985
  className: H.price,
@@ -4012,7 +4012,7 @@ const Yo = (c) => {
4012
4012
  currency: i.price.currency
4013
4013
  })
4014
4014
  }
4015
- ) : i.subscriptionSettings && i.subscriptionSettings.compareAtPrice && (i.subscriptionSettings.compareAtPrice.amount || 0) - (i.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ u(
4015
+ ) : i.subscriptionSettings && i.subscriptionSettings.compareAtPrice && (i.subscriptionSettings.compareAtPrice.amount || 0) - (i.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ h(
4016
4016
  "div",
4017
4017
  {
4018
4018
  className: H.price,
@@ -4055,7 +4055,7 @@ const Yo = (c) => {
4055
4055
  ) })
4056
4056
  ] })
4057
4057
  ] }),
4058
- /* @__PURE__ */ u("div", { className: H.buttons, children: [
4058
+ /* @__PURE__ */ h("div", { className: H.buttons, children: [
4059
4059
  /* @__PURE__ */ e(
4060
4060
  K,
4061
4061
  {
@@ -4116,12 +4116,12 @@ const Yo = (c) => {
4116
4116
  delete: "_delete_1uy6y_413"
4117
4117
  }, Fd = (c) => {
4118
4118
  const { shopping: t, signUp: s, isShowUserInfo: n = !0 } = c;
4119
- return /* @__PURE__ */ e(G, { children: (t || n) && /* @__PURE__ */ u("div", { className: j.buttons, children: [
4119
+ return /* @__PURE__ */ e(G, { children: (t || n) && /* @__PURE__ */ h("div", { className: j.buttons, children: [
4120
4120
  t && /* @__PURE__ */ e(Pc, {}),
4121
4121
  n && /* @__PURE__ */ e(en, { signUp: s })
4122
4122
  ] }) });
4123
4123
  }, Pc = () => {
4124
- const [c, t] = b.useState(!1), [s, n] = b.useState([]), [a, i] = b.useState(!1), { cart: d, products: r } = ze();
4124
+ const [c, t] = b.useState(!1), [s, n] = b.useState([]), [a, i] = b.useState(!1), { cart: d, products: r } = Fe();
4125
4125
  b.useEffect(() => {
4126
4126
  (async () => {
4127
4127
  const _ = d.parts.map((l) => String(l.productId)), f = r.filter((l) => _.includes(String(l.id))) || [], I = d.parts.map((l) => {
@@ -4139,14 +4139,14 @@ const Yo = (c) => {
4139
4139
  function o(k) {
4140
4140
  return !k || !(k != null && k.variants) ? !1 : k.chargeType === "RECURRING";
4141
4141
  }
4142
- const h = d.parts.length > 0 && s.length > 0 && !o(s[0]);
4142
+ const u = d.parts.length > 0 && s.length > 0 && !o(s[0]);
4143
4143
  function g() {
4144
4144
  i(!1), setTimeout(() => {
4145
4145
  t(!1);
4146
4146
  }, 300);
4147
4147
  }
4148
- return /* @__PURE__ */ u(G, { children: [
4149
- /* @__PURE__ */ u(
4148
+ return /* @__PURE__ */ h(G, { children: [
4149
+ /* @__PURE__ */ h(
4150
4150
  K,
4151
4151
  {
4152
4152
  type: "Secondary",
@@ -4164,7 +4164,7 @@ const Yo = (c) => {
4164
4164
  name: "Handbag"
4165
4165
  }
4166
4166
  ),
4167
- h && /* @__PURE__ */ e("div", { className: j.shoppingCount, children: d.parts.length })
4167
+ u && /* @__PURE__ */ e("div", { className: j.shoppingCount, children: d.parts.length })
4168
4168
  ]
4169
4169
  }
4170
4170
  ),
@@ -4177,7 +4177,7 @@ const Yo = (c) => {
4177
4177
  Oc,
4178
4178
  {
4179
4179
  activeProducts: s,
4180
- isCartNotEmpty: h,
4180
+ isCartNotEmpty: u,
4181
4181
  isOpen: a,
4182
4182
  close: g
4183
4183
  }
@@ -4187,7 +4187,7 @@ const Yo = (c) => {
4187
4187
  ] });
4188
4188
  }, Oc = (c) => {
4189
4189
  var l, m;
4190
- const { activeProducts: t, isCartNotEmpty: s, isOpen: n, close: a } = c, { cart: i, reset: d, getTotalAndDiscount: r, updateQuantityOfProduct: o, removeProduct: h } = ze(), g = mt();
4190
+ const { activeProducts: t, isCartNotEmpty: s, isOpen: n, close: a } = c, { cart: i, reset: d, getTotalAndDiscount: r, updateQuantityOfProduct: o, removeProduct: u } = Fe(), g = mt();
4191
4191
  function k(p, y) {
4192
4192
  g(p, { replace: y });
4193
4193
  }
@@ -4208,14 +4208,14 @@ const Yo = (c) => {
4208
4208
  });
4209
4209
  }
4210
4210
  function I(p) {
4211
- h({
4211
+ u({
4212
4212
  productId: p.id,
4213
4213
  productVariantId: p.activeVariantId,
4214
4214
  quantity: p.quantity || 1,
4215
4215
  chargeType: p.chargeType
4216
4216
  });
4217
4217
  }
4218
- return /* @__PURE__ */ u(
4218
+ return /* @__PURE__ */ h(
4219
4219
  "div",
4220
4220
  {
4221
4221
  className: q(j.modal, {
@@ -4223,8 +4223,8 @@ const Yo = (c) => {
4223
4223
  }),
4224
4224
  onClick: (p) => p.stopPropagation(),
4225
4225
  children: [
4226
- /* @__PURE__ */ u("div", { className: j.top, children: [
4227
- /* @__PURE__ */ u("div", { className: j.info, children: [
4226
+ /* @__PURE__ */ h("div", { className: j.top, children: [
4227
+ /* @__PURE__ */ h("div", { className: j.info, children: [
4228
4228
  /* @__PURE__ */ e(
4229
4229
  "span",
4230
4230
  {
@@ -4242,7 +4242,7 @@ const Yo = (c) => {
4242
4242
  }
4243
4243
  )
4244
4244
  ] }),
4245
- /* @__PURE__ */ u("div", { className: j.rightButtons, children: [
4245
+ /* @__PURE__ */ h("div", { className: j.rightButtons, children: [
4246
4246
  s && /* @__PURE__ */ e(
4247
4247
  "button",
4248
4248
  {
@@ -4268,15 +4268,15 @@ const Yo = (c) => {
4268
4268
  )
4269
4269
  ] })
4270
4270
  ] }),
4271
- s ? /* @__PURE__ */ u("div", { className: j.cart, children: [
4271
+ s ? /* @__PURE__ */ h("div", { className: j.cart, children: [
4272
4272
  /* @__PURE__ */ e("div", { className: j.products, children: t.map((p) => {
4273
4273
  var y, w;
4274
- return /* @__PURE__ */ u(
4274
+ return /* @__PURE__ */ h(
4275
4275
  "div",
4276
4276
  {
4277
4277
  className: j.product,
4278
4278
  children: [
4279
- /* @__PURE__ */ u("div", { className: j.productInfo, children: [
4279
+ /* @__PURE__ */ h("div", { className: j.productInfo, children: [
4280
4280
  p.images.length > 0 ? /* @__PURE__ */ e(
4281
4281
  "img",
4282
4282
  {
@@ -4293,7 +4293,7 @@ const Yo = (c) => {
4293
4293
  fill: "var(--text-secondary)"
4294
4294
  }
4295
4295
  ) }),
4296
- /* @__PURE__ */ u("div", { className: j.content, children: [
4296
+ /* @__PURE__ */ h("div", { className: j.content, children: [
4297
4297
  /* @__PURE__ */ e(
4298
4298
  "div",
4299
4299
  {
@@ -4317,7 +4317,7 @@ const Yo = (c) => {
4317
4317
  }) })
4318
4318
  ] })
4319
4319
  ] }),
4320
- /* @__PURE__ */ u("div", { className: j.productButtons, children: [
4320
+ /* @__PURE__ */ h("div", { className: j.productButtons, children: [
4321
4321
  /* @__PURE__ */ e(
4322
4322
  K,
4323
4323
  {
@@ -4395,9 +4395,9 @@ const Yo = (c) => {
4395
4395
  p.id
4396
4396
  );
4397
4397
  }) }),
4398
- /* @__PURE__ */ u("div", { className: j.bottom, children: [
4399
- /* @__PURE__ */ u("div", { className: j.subtotal, children: [
4400
- /* @__PURE__ */ u("div", { className: j.block, children: [
4398
+ /* @__PURE__ */ h("div", { className: j.bottom, children: [
4399
+ /* @__PURE__ */ h("div", { className: j.subtotal, children: [
4400
+ /* @__PURE__ */ h("div", { className: j.block, children: [
4401
4401
  /* @__PURE__ */ e("span", { children: "Subtotal" }),
4402
4402
  /* @__PURE__ */ e(
4403
4403
  x,
@@ -4420,7 +4420,7 @@ const Yo = (c) => {
4420
4420
  ]
4421
4421
  }
4422
4422
  );
4423
- }, Ac = () => /* @__PURE__ */ u("div", { className: j.empty, children: [
4423
+ }, Ac = () => /* @__PURE__ */ h("div", { className: j.empty, children: [
4424
4424
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
4425
4425
  x,
4426
4426
  {
@@ -4429,7 +4429,7 @@ const Yo = (c) => {
4429
4429
  }
4430
4430
  ) }),
4431
4431
  /* @__PURE__ */ e("span", { id: "h5", children: "Empty Cart" }),
4432
- /* @__PURE__ */ u("span", { id: "md", children: [
4432
+ /* @__PURE__ */ h("span", { id: "md", children: [
4433
4433
  "You don’t have any items in your shopping cart yet,",
4434
4434
  " ",
4435
4435
  /* @__PURE__ */ e(
@@ -4443,16 +4443,16 @@ const Yo = (c) => {
4443
4443
  )
4444
4444
  ] })
4445
4445
  ] }), en = ({ signUp: c, close: t }) => {
4446
- const { token: s } = ln(), n = mt(), [a, i] = b.useState("test-email@gmail.com");
4446
+ const { token: s } = ln(), { isAntistock: n } = ze(), a = mt(), [i, d] = b.useState("test-email@gmail.com");
4447
4447
  b.useEffect(() => {
4448
4448
  s && (async () => {
4449
4449
  if (!s) return;
4450
- const o = dn(s);
4451
- i(o.email);
4450
+ const u = dn(s);
4451
+ d(u.email);
4452
4452
  })();
4453
4453
  }, [s]);
4454
- function d(r) {
4455
- window.location.pathname.includes("/admin/builder") || n(r);
4454
+ function r(o) {
4455
+ window.location.pathname.includes("/admin/builder") || a(o);
4456
4456
  }
4457
4457
  return s ? /* @__PURE__ */ e(
4458
4458
  K,
@@ -4460,16 +4460,16 @@ const Yo = (c) => {
4460
4460
  type: "Secondary",
4461
4461
  className: j.userInfo,
4462
4462
  onClick: () => {
4463
- d("/customer-dash"), t == null || t();
4463
+ r(n ? "/account" : "/customer-dash"), t == null || t();
4464
4464
  },
4465
- children: /* @__PURE__ */ e("div", { children: a || "test-email@gmail.com" })
4465
+ children: /* @__PURE__ */ e("div", { children: i || "test-email@gmail.com" })
4466
4466
  }
4467
- ) : /* @__PURE__ */ u(G, { children: [
4467
+ ) : /* @__PURE__ */ h(G, { children: [
4468
4468
  /* @__PURE__ */ e(
4469
4469
  K,
4470
4470
  {
4471
4471
  onClick: () => {
4472
- d("/customer-dash"), t == null || t();
4472
+ r(n ? "/account" : "/customer-dash"), t == null || t();
4473
4473
  },
4474
4474
  type: "Secondary",
4475
4475
  style: {
@@ -4482,7 +4482,7 @@ const Yo = (c) => {
4482
4482
  K,
4483
4483
  {
4484
4484
  onClick: () => {
4485
- d("/customer-dash"), t == null || t();
4485
+ r(n ? "/account" : "/customer-dash"), t == null || t();
4486
4486
  },
4487
4487
  type: "Primary",
4488
4488
  style: {
@@ -4504,13 +4504,13 @@ const Yo = (c) => {
4504
4504
  t(!1), a(!0);
4505
4505
  }, 300);
4506
4506
  };
4507
- return /* @__PURE__ */ u(
4507
+ return /* @__PURE__ */ h(
4508
4508
  "div",
4509
4509
  {
4510
4510
  className: j.pagesMobileModal,
4511
4511
  onClick: (d) => d.stopPropagation(),
4512
4512
  children: [
4513
- /* @__PURE__ */ u("div", { className: j.pagesMobileModalHeader, children: [
4513
+ /* @__PURE__ */ h("div", { className: j.pagesMobileModalHeader, children: [
4514
4514
  /* @__PURE__ */ e("div", { children: c }),
4515
4515
  /* @__PURE__ */ e(
4516
4516
  K,
@@ -4548,7 +4548,7 @@ const Yo = (c) => {
4548
4548
  );
4549
4549
  }, Ud = ({ logo: c, signUp: t, pages: s }) => {
4550
4550
  const [n, a] = b.useState(!1);
4551
- return /* @__PURE__ */ u(G, { children: [
4551
+ return /* @__PURE__ */ h(G, { children: [
4552
4552
  /* @__PURE__ */ e(Mc, { setIsOpenModal: a }),
4553
4553
  n && /* @__PURE__ */ e(
4554
4554
  st,
@@ -4597,7 +4597,7 @@ const Yo = (c) => {
4597
4597
  content: Vc,
4598
4598
  close: Wc
4599
4599
  }, st = (c) => {
4600
- const { close: t, children: s, withAnimation: n = !0, hasPadding: a = !0 } = c, { isOpen: i, setIsOpen: d } = be(), { themeSettings: r } = pt(), { isAntistock: o } = pn(), h = (k) => {
4600
+ const { close: t, children: s, withAnimation: n = !0, hasPadding: a = !0 } = c, { isOpen: i, setIsOpen: d } = be(), { themeSettings: r } = pt(), { isAntistock: o } = pn(), u = (k) => {
4601
4601
  const _ = k.replace("#", "");
4602
4602
  if (!/^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(_))
4603
4603
  return console.warn("Invalid hex color:", k), k;
@@ -4620,7 +4620,7 @@ const Yo = (c) => {
4620
4620
  "div",
4621
4621
  {
4622
4622
  className: q(at.modal, { [at.padding]: a }),
4623
- style: { backgroundColor: o ? h(r.colors.surface.primary) : void 0 },
4623
+ style: { backgroundColor: o ? u(r.colors.surface.primary) : void 0 },
4624
4624
  onClick: g,
4625
4625
  children: n ? /* @__PURE__ */ e("div", { className: q(at.content, { [at.close]: !i }), children: s }) : /* @__PURE__ */ e(G, { children: s })
4626
4626
  }
@@ -4632,7 +4632,7 @@ const Yo = (c) => {
4632
4632
  function n() {
4633
4633
  s(!0);
4634
4634
  }
4635
- return /* @__PURE__ */ u(G, { children: [
4635
+ return /* @__PURE__ */ h(G, { children: [
4636
4636
  /* @__PURE__ */ e(
4637
4637
  K,
4638
4638
  {
@@ -4654,7 +4654,7 @@ const Yo = (c) => {
4654
4654
  t && /* @__PURE__ */ e(st, { close: s, children: /* @__PURE__ */ e(Gc, { title: c }) })
4655
4655
  ] });
4656
4656
  }, Gc = ({ title: c = "Copy Product Link" }) => {
4657
- const { setIsOpenModal: t } = Wt(), { notifications: s, setNotifications: n } = je(), { setIsOpen: a } = be(), i = window.location.href;
4657
+ const { setIsOpenModal: t } = Wt(), { notifications: s, setNotifications: n } = He(), { setIsOpen: a } = be(), i = window.location.href;
4658
4658
  function d() {
4659
4659
  navigator.clipboard.writeText(i), n([
4660
4660
  ...s,
@@ -4670,16 +4670,16 @@ const Yo = (c) => {
4670
4670
  t(!1), a(!0);
4671
4671
  }, 300);
4672
4672
  }
4673
- function o(h, g) {
4674
- return h.length > g ? h.slice(0, g) + "..." : h;
4673
+ function o(u, g) {
4674
+ return u.length > g ? u.slice(0, g) + "..." : u;
4675
4675
  }
4676
- return /* @__PURE__ */ u(
4676
+ return /* @__PURE__ */ h(
4677
4677
  "div",
4678
4678
  {
4679
4679
  className: Te.modal,
4680
- onClick: (h) => h.stopPropagation(),
4680
+ onClick: (u) => u.stopPropagation(),
4681
4681
  children: [
4682
- /* @__PURE__ */ u("div", { className: Te.header, children: [
4682
+ /* @__PURE__ */ h("div", { className: Te.header, children: [
4683
4683
  /* @__PURE__ */ e(
4684
4684
  "div",
4685
4685
  {
@@ -4698,8 +4698,8 @@ const Yo = (c) => {
4698
4698
  }
4699
4699
  )
4700
4700
  ] }),
4701
- /* @__PURE__ */ u("div", { className: Te.copyWrapper, children: [
4702
- /* @__PURE__ */ u(
4701
+ /* @__PURE__ */ h("div", { className: Te.copyWrapper, children: [
4702
+ /* @__PURE__ */ h(
4703
4703
  K,
4704
4704
  {
4705
4705
  type: "Secondary",
@@ -4741,7 +4741,7 @@ const Yo = (c) => {
4741
4741
  type: "Secondary",
4742
4742
  onClick: d,
4743
4743
  children: s.find(
4744
- (h) => h.message === "Link copied to clipboard"
4744
+ (u) => u.message === "Link copied to clipboard"
4745
4745
  ) ? /* @__PURE__ */ e(x, { name: "Check" }) : /* @__PURE__ */ e(x, { name: "Copy" })
4746
4746
  }
4747
4747
  )
@@ -4763,8 +4763,8 @@ const Yo = (c) => {
4763
4763
  };
4764
4764
  return b.useEffect(() => {
4765
4765
  r.current && d(n ? r.current.scrollHeight : 0);
4766
- }, [n]), /* @__PURE__ */ u("div", { className: Me.accordion, children: [
4767
- /* @__PURE__ */ u(
4766
+ }, [n]), /* @__PURE__ */ h("div", { className: Me.accordion, children: [
4767
+ /* @__PURE__ */ h(
4768
4768
  "div",
4769
4769
  {
4770
4770
  className: Me.header,
@@ -4817,7 +4817,7 @@ const Yo = (c) => {
4817
4817
  cartDisabled: nr
4818
4818
  }, Vd = (c) => {
4819
4819
  var g, k;
4820
- const { setIsOpen: t, setModalType: s, productId: n, isCartEnabled: a = !0 } = c, { cart: i } = ze(), { pageContext: d } = We(), r = (g = d == null ? void 0 : d.listings) == null ? void 0 : g.find((_) => _.id === n);
4820
+ const { setIsOpen: t, setModalType: s, productId: n, isCartEnabled: a = !0 } = c, { cart: i } = Fe(), { pageContext: d } = We(), r = (g = d == null ? void 0 : d.listings) == null ? void 0 : g.find((_) => _.id === n);
4821
4821
  if (!r)
4822
4822
  return null;
4823
4823
  const o = (k = d == null ? void 0 : d.products) == null ? void 0 : k.find(
@@ -4825,8 +4825,8 @@ const Yo = (c) => {
4825
4825
  );
4826
4826
  if (!o)
4827
4827
  return null;
4828
- const h = i.parts.find((_) => _.productId === o.id);
4829
- return /* @__PURE__ */ u(
4828
+ const u = i.parts.find((_) => _.productId === o.id);
4829
+ return /* @__PURE__ */ h(
4830
4830
  "div",
4831
4831
  {
4832
4832
  className: q(Mt.buttonsBlock, {
@@ -4844,7 +4844,7 @@ const Yo = (c) => {
4844
4844
  onClick: () => {
4845
4845
  s("Add To Cart"), t(!0);
4846
4846
  },
4847
- children: h ? "Add More" : "Add To Cart"
4847
+ children: u ? "Add More" : "Add To Cart"
4848
4848
  }
4849
4849
  ),
4850
4850
  /* @__PURE__ */ e(
@@ -4868,7 +4868,7 @@ const Yo = (c) => {
4868
4868
  logo: ir,
4869
4869
  info: ar
4870
4870
  }, Wd = ({ date: c }) => {
4871
- const { general: t } = Ve();
4871
+ const { general: t } = ze();
4872
4872
  if (!t) return /* @__PURE__ */ e(G, {});
4873
4873
  function s(n) {
4874
4874
  const a = new Date(n), i = {
@@ -4881,7 +4881,7 @@ const Yo = (c) => {
4881
4881
  };
4882
4882
  return a.toLocaleDateString("en-US", i);
4883
4883
  }
4884
- return /* @__PURE__ */ u("div", { className: bt.wrapper, children: [
4884
+ return /* @__PURE__ */ h("div", { className: bt.wrapper, children: [
4885
4885
  /* @__PURE__ */ e("div", { className: bt.logo, children: t.info.logo ? /* @__PURE__ */ e(
4886
4886
  "img",
4887
4887
  {
@@ -4897,7 +4897,7 @@ const Yo = (c) => {
4897
4897
  height: 48
4898
4898
  }
4899
4899
  ) }),
4900
- /* @__PURE__ */ u("div", { className: bt.info, children: [
4900
+ /* @__PURE__ */ h("div", { className: bt.info, children: [
4901
4901
  /* @__PURE__ */ e("h3", { id: "h4", children: t.info.name }),
4902
4902
  /* @__PURE__ */ e("p", { id: "p", children: s(c) })
4903
4903
  ] })
@@ -4914,9 +4914,9 @@ const Yo = (c) => {
4914
4914
  loading: mr
4915
4915
  }, Gd = (c) => {
4916
4916
  var _;
4917
- const { pageContext: t } = We(), s = (_ = t == null ? void 0 : t.listings) == null ? void 0 : _.find((f) => f.id === c.productId), [n, a] = b.useState(!0), [i, d] = b.useState(null), r = (i == null ? void 0 : i.variants[0]) || null, [o, h] = b.useState(
4917
+ const { pageContext: t } = We(), s = (_ = t == null ? void 0 : t.listings) == null ? void 0 : _.find((f) => f.id === c.productId), [n, a] = b.useState(!0), [i, d] = b.useState(null), r = (i == null ? void 0 : i.variants[0]) || null, [o, u] = b.useState(
4918
4918
  "ONE_TIME"
4919
- ), { addProducts: g } = ze(), { setIsOpen: k } = be();
4919
+ ), { addProducts: g } = Fe(), { setIsOpen: k } = be();
4920
4920
  return b.useEffect(() => {
4921
4921
  (async () => {
4922
4922
  a(!0);
@@ -4929,7 +4929,7 @@ const Yo = (c) => {
4929
4929
  })();
4930
4930
  }, []), b.useEffect(() => {
4931
4931
  k(!0);
4932
- }, []), /* @__PURE__ */ e(st, { close: c.setIsOpen, children: /* @__PURE__ */ u(
4932
+ }, []), /* @__PURE__ */ e(st, { close: c.setIsOpen, children: /* @__PURE__ */ h(
4933
4933
  "div",
4934
4934
  {
4935
4935
  className: ve.modal,
@@ -4942,7 +4942,7 @@ const Yo = (c) => {
4942
4942
  variants: i.variants,
4943
4943
  activeVariant: r,
4944
4944
  activeChargeType: o,
4945
- setActiveChargeType: h,
4945
+ setActiveChargeType: u,
4946
4946
  productId: i.id,
4947
4947
  setIsOpen: c.setIsOpen
4948
4948
  }
@@ -4959,7 +4959,7 @@ const Yo = (c) => {
4959
4959
  }
4960
4960
  ) });
4961
4961
  }, fr = (c) => {
4962
- const { variants: t, activeChargeType: s, productId: n, setIsOpen: a } = c, { cart: i, addProductToCart: d, addProducts: r, updateQuantityOfProduct: o } = ze(), { notifications: h, setNotifications: g } = je(), { pageContext: k } = We(), { setIsOpen: _ } = be(), f = () => {
4962
+ const { variants: t, activeChargeType: s, productId: n, setIsOpen: a } = c, { cart: i, addProductToCart: d, addProducts: r, updateQuantityOfProduct: o } = Fe(), { notifications: u, setNotifications: g } = He(), { pageContext: k } = We(), { setIsOpen: _ } = be(), f = () => {
4963
4963
  _(!1), setTimeout(() => {
4964
4964
  a(!1);
4965
4965
  }, 300);
@@ -4970,7 +4970,7 @@ const Yo = (c) => {
4970
4970
  );
4971
4971
  if ((m == null ? void 0 : m.quantity.available) && (m == null ? void 0 : m.quantity.restrictions) && ((p == null ? void 0 : p.quantity) || 0) + 1 > (m == null ? void 0 : m.quantity.restrictions.max) || (m == null ? void 0 : m.quantity.available) === 0 || (m == null ? void 0 : m.quantity.available) && ((p == null ? void 0 : p.quantity) || 0) + 1 > (m == null ? void 0 : m.quantity.available)) {
4972
4972
  g([
4973
- ...h,
4973
+ ...u,
4974
4974
  { id: le(), message: "Product is out of stock", status: "error" }
4975
4975
  ]);
4976
4976
  return;
@@ -4991,7 +4991,7 @@ const Yo = (c) => {
4991
4991
  quantity: 1,
4992
4992
  chargeType: s
4993
4993
  }), g([
4994
- ...h,
4994
+ ...u,
4995
4995
  {
4996
4996
  id: le(),
4997
4997
  message: "Product added to cart",
@@ -5001,7 +5001,7 @@ const Yo = (c) => {
5001
5001
  } catch (w) {
5002
5002
  const S = w;
5003
5003
  g([
5004
- ...h,
5004
+ ...u,
5005
5005
  {
5006
5006
  id: le(),
5007
5007
  message: `Product failed to add to cart: ${S.message}`,
@@ -5011,8 +5011,8 @@ const Yo = (c) => {
5011
5011
  }
5012
5012
  }
5013
5013
  }
5014
- return /* @__PURE__ */ u(G, { children: [
5015
- /* @__PURE__ */ u("div", { className: ve.header, children: [
5014
+ return /* @__PURE__ */ h(G, { children: [
5015
+ /* @__PURE__ */ h("div", { className: ve.header, children: [
5016
5016
  /* @__PURE__ */ e("div", { id: "h3", children: "Choose a Variant" }),
5017
5017
  /* @__PURE__ */ e(
5018
5018
  x,
@@ -5031,7 +5031,7 @@ const Yo = (c) => {
5031
5031
  return (m = l.chargeTypes) == null ? void 0 : m.includes(s);
5032
5032
  }).map((l) => {
5033
5033
  var m, p, y;
5034
- return /* @__PURE__ */ u(
5034
+ return /* @__PURE__ */ h(
5035
5035
  "div",
5036
5036
  {
5037
5037
  className: q(ve.variant),
@@ -5039,7 +5039,7 @@ const Yo = (c) => {
5039
5039
  I(l.id), a(!1);
5040
5040
  },
5041
5041
  children: [
5042
- /* @__PURE__ */ u("div", { className: ve.variantInfo, children: [
5042
+ /* @__PURE__ */ h("div", { className: ve.variantInfo, children: [
5043
5043
  /* @__PURE__ */ e(
5044
5044
  "span",
5045
5045
  {
@@ -5053,7 +5053,7 @@ const Yo = (c) => {
5053
5053
  currency: s === "ONE_TIME" ? l.price.currency : ((m = l.subscriptionSettings) == null ? void 0 : m.price.currency) || "USD"
5054
5054
  }) })
5055
5055
  ] }),
5056
- /* @__PURE__ */ e("div", { id: "md", children: s === "ONE_TIME" && /* @__PURE__ */ u(
5056
+ /* @__PURE__ */ e("div", { id: "md", children: s === "ONE_TIME" && /* @__PURE__ */ h(
5057
5057
  "span",
5058
5058
  {
5059
5059
  className: ve.stock,
@@ -5077,8 +5077,8 @@ const Yo = (c) => {
5077
5077
  s(!1);
5078
5078
  }, 300);
5079
5079
  };
5080
- return /* @__PURE__ */ u(G, { children: [
5081
- /* @__PURE__ */ u("div", { className: ve.header, children: [
5080
+ return /* @__PURE__ */ h(G, { children: [
5081
+ /* @__PURE__ */ h("div", { className: ve.header, children: [
5082
5082
  /* @__PURE__ */ e(
5083
5083
  "div",
5084
5084
  {
@@ -5137,7 +5137,7 @@ const Yo = (c) => {
5137
5137
  setProductId: a,
5138
5138
  setIsProductModalOpen: i,
5139
5139
  setShowDropdown: d
5140
- } = c, [r, o] = b.useState(null), [h, g] = b.useState(!0), { setIsOpen: k } = be();
5140
+ } = c, [r, o] = b.useState(null), [u, g] = b.useState(!0), { setIsOpen: k } = be();
5141
5141
  b.useEffect(() => {
5142
5142
  var I;
5143
5143
  g(!0);
@@ -5153,13 +5153,13 @@ const Yo = (c) => {
5153
5153
  t(!1);
5154
5154
  }, 300);
5155
5155
  };
5156
- return /* @__PURE__ */ e(st, { close: () => t(!1), children: /* @__PURE__ */ u(
5156
+ return /* @__PURE__ */ e(st, { close: () => t(!1), children: /* @__PURE__ */ h(
5157
5157
  "div",
5158
5158
  {
5159
5159
  className: re.contentModal,
5160
5160
  onClick: (f) => f.stopPropagation(),
5161
5161
  children: [
5162
- /* @__PURE__ */ u("div", { className: re.modalTop, children: [
5162
+ /* @__PURE__ */ h("div", { className: re.modalTop, children: [
5163
5163
  /* @__PURE__ */ e(
5164
5164
  "span",
5165
5165
  {
@@ -5180,7 +5180,7 @@ const Yo = (c) => {
5180
5180
  }
5181
5181
  )
5182
5182
  ] }),
5183
- !h && r && /* @__PURE__ */ e("div", { className: re.modalCards, children: r.map((f) => /* @__PURE__ */ u(
5183
+ !u && r && /* @__PURE__ */ e("div", { className: re.modalCards, children: r.map((f) => /* @__PURE__ */ h(
5184
5184
  "div",
5185
5185
  {
5186
5186
  className: re.card,
@@ -5195,10 +5195,10 @@ const Yo = (c) => {
5195
5195
  className: re.modalImage
5196
5196
  }
5197
5197
  ) : /* @__PURE__ */ e("div", { className: q(re.blockImage, re.modalImage), children: /* @__PURE__ */ e(x, { name: "Image" }) }) }),
5198
- /* @__PURE__ */ u("div", { className: re.cardInfo, children: [
5199
- /* @__PURE__ */ e("div", { id: "h5", children: f.productData.compareAtPrice && (f.productData.compareAtPrice.amount || 0) - (f.productData.minPrice.amount || 0) > 0 ? /* @__PURE__ */ u(G, { children: [
5198
+ /* @__PURE__ */ h("div", { className: re.cardInfo, children: [
5199
+ /* @__PURE__ */ e("div", { id: "h5", children: f.productData.compareAtPrice && (f.productData.compareAtPrice.amount || 0) - (f.productData.minPrice.amount || 0) > 0 ? /* @__PURE__ */ h(G, { children: [
5200
5200
  Oe(f.productData.name, !1),
5201
- /* @__PURE__ */ u(
5201
+ /* @__PURE__ */ h(
5202
5202
  "span",
5203
5203
  {
5204
5204
  className: re.price,
@@ -5229,7 +5229,7 @@ const Yo = (c) => {
5229
5229
  ]
5230
5230
  }
5231
5231
  )
5232
- ] }) : /* @__PURE__ */ u(G, { children: [
5232
+ ] }) : /* @__PURE__ */ h(G, { children: [
5233
5233
  Oe(f.productData.name, !1),
5234
5234
  /* @__PURE__ */ e(
5235
5235
  "span",
@@ -5254,7 +5254,7 @@ const Yo = (c) => {
5254
5254
  }
5255
5255
  )
5256
5256
  ] }),
5257
- /* @__PURE__ */ u("div", { className: re.cardButtons, children: [
5257
+ /* @__PURE__ */ h("div", { className: re.cardButtons, children: [
5258
5258
  /* @__PURE__ */ e(
5259
5259
  K,
5260
5260
  {
@@ -5281,7 +5281,7 @@ const Yo = (c) => {
5281
5281
  },
5282
5282
  f.id
5283
5283
  )) }),
5284
- h && /* @__PURE__ */ e("div", { className: re.loading, children: /* @__PURE__ */ e(Jt, {}) })
5284
+ u && /* @__PURE__ */ e("div", { className: re.loading, children: /* @__PURE__ */ e(Jt, {}) })
5285
5285
  ]
5286
5286
  }
5287
5287
  ) });
@@ -5352,7 +5352,7 @@ const Yo = (c) => {
5352
5352
  switcher: d,
5353
5353
  postfixs: r,
5354
5354
  leftAddonOptions: o,
5355
- isMaxLength: h = !0,
5355
+ isMaxLength: u = !0,
5356
5356
  error: g
5357
5357
  } = c, [k, _] = b.useState(!1), [f, I] = b.useState(""), [l, m] = b.useState(null), [p, y] = b.useState(!1), w = b.useRef(null);
5358
5358
  nt(w, () => _(!1));
@@ -5378,19 +5378,19 @@ const Yo = (c) => {
5378
5378
  threshold: 0.4,
5379
5379
  minMatchCharLength: 2
5380
5380
  }), [a]), T = b.useMemo(() => p && f.trim() !== "" ? v.search(f).map((N) => N.item) : a, [f, a, p, v]);
5381
- return /* @__PURE__ */ u(
5381
+ return /* @__PURE__ */ h(
5382
5382
  "div",
5383
5383
  {
5384
5384
  className: J.wrapper,
5385
5385
  style: { ...i },
5386
5386
  children: [
5387
- s && /* @__PURE__ */ u("div", { className: J.top, children: [
5387
+ s && /* @__PURE__ */ h("div", { className: J.top, children: [
5388
5388
  /* @__PURE__ */ e(
5389
5389
  "label",
5390
5390
  {
5391
5391
  className: J.label,
5392
5392
  htmlFor: s,
5393
- children: s.includes("*") ? /* @__PURE__ */ u(G, { children: [
5393
+ children: s.includes("*") ? /* @__PURE__ */ h(G, { children: [
5394
5394
  s.replace(" *", "").replace("*", ""),
5395
5395
  /* @__PURE__ */ e("span", { className: J.requiredStar, children: " *" })
5396
5396
  ] }) : s
@@ -5404,13 +5404,13 @@ const Yo = (c) => {
5404
5404
  }
5405
5405
  )
5406
5406
  ] }),
5407
- /* @__PURE__ */ u(
5407
+ /* @__PURE__ */ h(
5408
5408
  "label",
5409
5409
  {
5410
5410
  className: J.content,
5411
5411
  ref: w,
5412
5412
  children: [
5413
- /* @__PURE__ */ u(
5413
+ /* @__PURE__ */ h(
5414
5414
  "div",
5415
5415
  {
5416
5416
  className: q(J.select, {
@@ -5430,7 +5430,7 @@ const Yo = (c) => {
5430
5430
  {
5431
5431
  className: J.input,
5432
5432
  id: "md",
5433
- children: h ? $(n, 15) : n
5433
+ children: u ? $(n, 15) : n
5434
5434
  }
5435
5435
  ),
5436
5436
  /* @__PURE__ */ e(
@@ -5454,7 +5454,7 @@ const Yo = (c) => {
5454
5454
  ]
5455
5455
  }
5456
5456
  ),
5457
- /* @__PURE__ */ u(
5457
+ /* @__PURE__ */ h(
5458
5458
  "div",
5459
5459
  {
5460
5460
  className: q(J.options, { [J.open]: k }),
@@ -5474,10 +5474,10 @@ const Yo = (c) => {
5474
5474
  isSearch: !0
5475
5475
  }
5476
5476
  ),
5477
- /* @__PURE__ */ u("div", { className: J.filteredOptions, children: [
5477
+ /* @__PURE__ */ h("div", { className: J.filteredOptions, children: [
5478
5478
  T.map((N, C) => {
5479
5479
  var D;
5480
- return /* @__PURE__ */ u(
5480
+ return /* @__PURE__ */ h(
5481
5481
  "div",
5482
5482
  {
5483
5483
  className: q(J.option, {
@@ -5494,7 +5494,7 @@ const Yo = (c) => {
5494
5494
  {
5495
5495
  className: J.value,
5496
5496
  id: "md",
5497
- children: h ? $(N, 20) : N
5497
+ children: u ? $(N, 20) : N
5498
5498
  }
5499
5499
  ),
5500
5500
  r && /* @__PURE__ */ e(
@@ -5530,12 +5530,12 @@ const Yo = (c) => {
5530
5530
  background: sl,
5531
5531
  padding: il
5532
5532
  }, fe = (c) => {
5533
- const { onChange: t, style: s, current: n, label: a, hasBackground: i = !1, paddingless: d = !0 } = c, [r, o] = b.useState(n), h = () => {
5533
+ const { onChange: t, style: s, current: n, label: a, hasBackground: i = !1, paddingless: d = !0 } = c, [r, o] = b.useState(n), u = () => {
5534
5534
  o((g) => !g), t == null || t(!r);
5535
5535
  };
5536
5536
  return b.useEffect(() => {
5537
5537
  o(n);
5538
- }, [n]), /* @__PURE__ */ e(G, { children: a ? /* @__PURE__ */ u(
5538
+ }, [n]), /* @__PURE__ */ e(G, { children: a ? /* @__PURE__ */ h(
5539
5539
  "div",
5540
5540
  {
5541
5541
  className: q(ye.wrapper, {
@@ -5549,7 +5549,7 @@ const Yo = (c) => {
5549
5549
  className: q(ye.switch, {
5550
5550
  [ye.active]: r
5551
5551
  }),
5552
- onClick: h,
5552
+ onClick: u,
5553
5553
  style: s,
5554
5554
  children: /* @__PURE__ */ e("div", { className: ye.toggle })
5555
5555
  }
@@ -5563,7 +5563,7 @@ const Yo = (c) => {
5563
5563
  className: q(ye.switch, {
5564
5564
  [ye.active]: r
5565
5565
  }),
5566
- onClick: h,
5566
+ onClick: u,
5567
5567
  style: s,
5568
5568
  children: /* @__PURE__ */ e("div", { className: ye.toggle })
5569
5569
  }
@@ -5656,7 +5656,7 @@ var dl = 150, ul = function(t, s) {
5656
5656
  }, ut = null, ht = null;
5657
5657
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (ut = /* @__PURE__ */ new WeakSet(), ht = /* @__PURE__ */ new WeakSet());
5658
5658
  function hl(c) {
5659
- var t, s = c.getItemOffset, n = c.getEstimatedTotalSize, a = c.getItemSize, i = c.getOffsetForIndexAndAlignment, d = c.getStartIndexForOffset, r = c.getStopIndexForStartIndex, o = c.initInstanceProps, h = c.shouldResetStyleCacheOnItemSizeChange, g = c.validateProps;
5659
+ var t, s = c.getItemOffset, n = c.getEstimatedTotalSize, a = c.getItemSize, i = c.getOffsetForIndexAndAlignment, d = c.getStartIndexForOffset, r = c.getStopIndexForStartIndex, o = c.initInstanceProps, u = c.shouldResetStyleCacheOnItemSizeChange, g = c.validateProps;
5660
5660
  return t = /* @__PURE__ */ function(k) {
5661
5661
  al(_, k);
5662
5662
  function _(I) {
@@ -5681,7 +5681,7 @@ function hl(c) {
5681
5681
  scrollUpdateWasRequested: y
5682
5682
  });
5683
5683
  }), l._getItemStyle = void 0, l._getItemStyle = function(m) {
5684
- var p = l.props, y = p.direction, w = p.itemSize, S = p.layout, $ = l._getItemStyleCache(h && w, h && S, h && y), A;
5684
+ var p = l.props, y = p.direction, w = p.itemSize, S = p.layout, $ = l._getItemStyleCache(u && w, u && S, u && y), A;
5685
5685
  if ($.hasOwnProperty(m))
5686
5686
  A = $[m];
5687
5687
  else {
@@ -5863,7 +5863,7 @@ function hl(c) {
5863
5863
  }, t;
5864
5864
  }
5865
5865
  var pl = function(t, s) {
5866
- var n = t.children, a = t.direction, i = t.height, d = t.layout, r = t.innerTagName, o = t.outerTagName, h = t.width, g = s.instance;
5866
+ var n = t.children, a = t.direction, i = t.height, d = t.layout, r = t.innerTagName, o = t.outerTagName, u = t.width, g = s.instance;
5867
5867
  if (process.env.NODE_ENV !== "production") {
5868
5868
  (r != null || o != null) && ht && !ht.has(g) && (ht.add(g), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
5869
5869
  var k = a === "horizontal" || d === "horizontal";
@@ -5887,8 +5887,8 @@ var pl = function(t, s) {
5887
5887
  }
5888
5888
  if (n == null)
5889
5889
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
5890
- if (k && typeof h != "number")
5891
- throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (h === null ? "null" : typeof h) + '" was specified.'));
5890
+ if (k && typeof u != "number")
5891
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (u === null ? "null" : typeof u) + '" was specified.'));
5892
5892
  if (!k && typeof i != "number")
5893
5893
  throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
5894
5894
  }
@@ -5906,7 +5906,7 @@ var pl = function(t, s) {
5906
5906
  return n * s;
5907
5907
  },
5908
5908
  getOffsetForIndexAndAlignment: function(t, s, n, a, i, d) {
5909
- var r = t.direction, o = t.height, h = t.itemCount, g = t.itemSize, k = t.layout, _ = t.width, f = r === "horizontal" || k === "horizontal", I = f ? _ : o, l = Math.max(0, h * g - I), m = Math.min(l, s * g), p = Math.max(0, s * g - I + g + d);
5909
+ var r = t.direction, o = t.height, u = t.itemCount, g = t.itemSize, k = t.layout, _ = t.width, f = r === "horizontal" || k === "horizontal", I = f ? _ : o, l = Math.max(0, u * g - I), m = Math.min(l, s * g), p = Math.max(0, s * g - I + g + d);
5910
5910
  switch (n === "smart" && (a >= p - I && a <= m + I ? n = "auto" : n = "center"), n) {
5911
5911
  case "start":
5912
5912
  return m;
@@ -5926,7 +5926,7 @@ var pl = function(t, s) {
5926
5926
  return Math.max(0, Math.min(n - 1, Math.floor(s / a)));
5927
5927
  },
5928
5928
  getStopIndexForStartIndex: function(t, s, n) {
5929
- var a = t.direction, i = t.height, d = t.itemCount, r = t.itemSize, o = t.layout, h = t.width, g = a === "horizontal" || o === "horizontal", k = s * r, _ = g ? h : i, f = Math.ceil((_ + n - k) / r);
5929
+ var a = t.direction, i = t.height, d = t.itemCount, r = t.itemSize, o = t.layout, u = t.width, g = a === "horizontal" || o === "horizontal", k = s * r, _ = g ? u : i, f = Math.ceil((_ + n - k) / r);
5930
5930
  return Math.max(0, Math.min(
5931
5931
  d - 1,
5932
5932
  s + f - 1
@@ -5974,7 +5974,7 @@ function Bl(c, t) {
5974
5974
  }
5975
5975
  const nn = (c) => {
5976
5976
  var L;
5977
- const { onChange: t, label: s, value: n, options: a, style: i, switcher: d, postfixs: r, leftAddonOptions: o } = c, [h, g] = b.useState(!1), [k, _] = b.useState(""), [f, I] = b.useState(null), [l, m] = b.useState(!1), p = b.useRef(null);
5977
+ const { onChange: t, label: s, value: n, options: a, style: i, switcher: d, postfixs: r, leftAddonOptions: o } = c, [u, g] = b.useState(!1), [k, _] = b.useState(""), [f, I] = b.useState(null), [l, m] = b.useState(!1), p = b.useRef(null);
5978
5978
  Bl(p, () => g(!1));
5979
5979
  function y(N) {
5980
5980
  _(""), t(N), g(!1), I(null);
@@ -5983,7 +5983,7 @@ const nn = (c) => {
5983
5983
  return N ? N.length > C + 3 ? `${N.slice(0, C)}...` : N : "";
5984
5984
  }
5985
5985
  function S(N) {
5986
- if (!h) {
5986
+ if (!u) {
5987
5987
  (N.key === "Enter" || N.key === "ArrowDown") && g(!0);
5988
5988
  return;
5989
5989
  }
@@ -6014,7 +6014,7 @@ const nn = (c) => {
6014
6014
  const D = O[N];
6015
6015
  if (!D) return null;
6016
6016
  const E = f === N, V = v.get(D), P = T.get(D);
6017
- return /* @__PURE__ */ u(
6017
+ return /* @__PURE__ */ h(
6018
6018
  "div",
6019
6019
  {
6020
6020
  className: q(ne.option, {
@@ -6033,13 +6033,13 @@ const nn = (c) => {
6033
6033
  },
6034
6034
  [O, f, v, T]
6035
6035
  );
6036
- return /* @__PURE__ */ u(
6036
+ return /* @__PURE__ */ h(
6037
6037
  "div",
6038
6038
  {
6039
6039
  className: ne.wrapper,
6040
6040
  style: { ...i },
6041
6041
  children: [
6042
- s && /* @__PURE__ */ u("div", { className: ne.top, children: [
6042
+ s && /* @__PURE__ */ h("div", { className: ne.top, children: [
6043
6043
  /* @__PURE__ */ e(
6044
6044
  "label",
6045
6045
  {
@@ -6056,16 +6056,16 @@ const nn = (c) => {
6056
6056
  }
6057
6057
  )
6058
6058
  ] }),
6059
- /* @__PURE__ */ u(
6059
+ /* @__PURE__ */ h(
6060
6060
  "label",
6061
6061
  {
6062
6062
  className: ne.content,
6063
6063
  ref: p,
6064
6064
  children: [
6065
- /* @__PURE__ */ u(
6065
+ /* @__PURE__ */ h(
6066
6066
  "div",
6067
6067
  {
6068
- className: q(ne.select, { [ne.borderFocused]: h }),
6068
+ className: q(ne.select, { [ne.borderFocused]: u }),
6069
6069
  onKeyDown: S,
6070
6070
  onClick: (N) => {
6071
6071
  N.stopPropagation(), g((C) => !C), m(!1);
@@ -6078,7 +6078,7 @@ const nn = (c) => {
6078
6078
  /* @__PURE__ */ e(
6079
6079
  "div",
6080
6080
  {
6081
- className: q(ne.icon, { [ne.rotate]: h }),
6081
+ className: q(ne.icon, { [ne.rotate]: u }),
6082
6082
  onClick: (N) => {
6083
6083
  N.stopPropagation(), g((C) => !C);
6084
6084
  },
@@ -6095,10 +6095,10 @@ const nn = (c) => {
6095
6095
  ]
6096
6096
  }
6097
6097
  ),
6098
- /* @__PURE__ */ u(
6098
+ /* @__PURE__ */ h(
6099
6099
  "div",
6100
6100
  {
6101
- className: q(ne.options, { [ne.open]: h }),
6101
+ className: q(ne.options, { [ne.open]: u }),
6102
6102
  style: {
6103
6103
  top: ((L = $.current) == null ? void 0 : L.clientHeight) + 10
6104
6104
  },
@@ -6115,7 +6115,7 @@ const nn = (c) => {
6115
6115
  isSearch: !0
6116
6116
  }
6117
6117
  ),
6118
- /* @__PURE__ */ u("div", { className: ne.filteredOptions, children: [
6118
+ /* @__PURE__ */ h("div", { className: ne.filteredOptions, children: [
6119
6119
  O.length === 0 && /* @__PURE__ */ e("div", { children: "No results found." }),
6120
6120
  O.length > 0 && /* @__PURE__ */ e(
6121
6121
  ml,
@@ -6149,7 +6149,7 @@ const nn = (c) => {
6149
6149
  };
6150
6150
  return b.useEffect(() => {
6151
6151
  a(t);
6152
- }, [t]), /* @__PURE__ */ u(
6152
+ }, [t]), /* @__PURE__ */ h(
6153
6153
  "label",
6154
6154
  {
6155
6155
  className: ct.customCheckbox,
@@ -6195,7 +6195,7 @@ const nn = (c) => {
6195
6195
  };
6196
6196
  return b.useEffect(() => {
6197
6197
  a(t);
6198
- }, [t]), /* @__PURE__ */ u(
6198
+ }, [t]), /* @__PURE__ */ h(
6199
6199
  "label",
6200
6200
  {
6201
6201
  className: rt.customCheckbox,
@@ -6241,7 +6241,7 @@ const nn = (c) => {
6241
6241
  n(null), a(null), i(null), d(!0);
6242
6242
  }, 300);
6243
6243
  }
6244
- return c && t && s && /* @__PURE__ */ u(
6244
+ return c && t && s && /* @__PURE__ */ h(
6245
6245
  "div",
6246
6246
  {
6247
6247
  className: lt.modal,
@@ -6249,7 +6249,7 @@ const nn = (c) => {
6249
6249
  children: [
6250
6250
  /* @__PURE__ */ e("div", { className: lt.title, children: c }),
6251
6251
  /* @__PURE__ */ e("div", { className: lt.description, children: t }),
6252
- /* @__PURE__ */ u("div", { className: lt.buttons, children: [
6252
+ /* @__PURE__ */ h("div", { className: lt.buttons, children: [
6253
6253
  /* @__PURE__ */ e(Ae, { onClick: r, children: "Cancel" }),
6254
6254
  /* @__PURE__ */ e(
6255
6255
  Ae,
@@ -6277,9 +6277,9 @@ const nn = (c) => {
6277
6277
  error: "#FF3F19",
6278
6278
  success: "#338B13"
6279
6279
  }, Jd = (c) => {
6280
- const { type: t, message: s, style: n, padding: a, timer: i, id: d, element: r, label: o } = c, [h, g] = b.useState(i), { setNotifications: k } = je();
6280
+ const { type: t, message: s, style: n, padding: a, timer: i, id: d, element: r, label: o } = c, [u, g] = b.useState(i), { setNotifications: k } = He();
6281
6281
  function _() {
6282
- const I = je.getState().notifications.filter((l) => l.id !== d);
6282
+ const I = He.getState().notifications.filter((l) => l.id !== d);
6283
6283
  k([...I]);
6284
6284
  }
6285
6285
  return b.useEffect(() => {
@@ -6290,7 +6290,7 @@ const nn = (c) => {
6290
6290
  }, [i]), b.useEffect(() => {
6291
6291
  const f = setInterval(() => g((I) => I - 1), 1e3);
6292
6292
  return () => clearInterval(f);
6293
- }, [h]), r ? r({
6293
+ }, [u]), r ? r({
6294
6294
  type: t,
6295
6295
  message: s,
6296
6296
  style: n,
@@ -6305,7 +6305,7 @@ const nn = (c) => {
6305
6305
  padding: a,
6306
6306
  position: "relative"
6307
6307
  },
6308
- children: /* @__PURE__ */ u(
6308
+ children: /* @__PURE__ */ h(
6309
6309
  "div",
6310
6310
  {
6311
6311
  className: q(Le.notification, {
@@ -6325,7 +6325,7 @@ const nn = (c) => {
6325
6325
  }
6326
6326
  ) }),
6327
6327
  /* @__PURE__ */ e("div", { className: Le.text, children: s }),
6328
- i && /* @__PURE__ */ e("div", { className: Le.timer, children: h }),
6328
+ i && /* @__PURE__ */ e("div", { className: Le.timer, children: u }),
6329
6329
  /* @__PURE__ */ e(
6330
6330
  "div",
6331
6331
  {
@@ -6361,18 +6361,18 @@ const nn = (c) => {
6361
6361
  custom: ad,
6362
6362
  option: od
6363
6363
  }, eu = (c) => {
6364
- const { defaultValue: t, options: s, onChange: n, label: a, flexDirection: i = "row" } = c, [d, r] = b.useState(t), o = (h) => {
6365
- const g = h.target.value;
6364
+ const { defaultValue: t, options: s, onChange: n, label: a, flexDirection: i = "row" } = c, [d, r] = b.useState(t), o = (u) => {
6365
+ const g = u.target.value;
6366
6366
  r(g), n(g);
6367
6367
  };
6368
- return /* @__PURE__ */ u("div", { className: Ee.wrapper, children: [
6368
+ return /* @__PURE__ */ h("div", { className: Ee.wrapper, children: [
6369
6369
  /* @__PURE__ */ e("span", { className: Ee.label, children: a }),
6370
6370
  /* @__PURE__ */ e(
6371
6371
  "div",
6372
6372
  {
6373
6373
  className: Ee.options,
6374
6374
  style: { flexDirection: i },
6375
- children: s.map((h) => /* @__PURE__ */ u(
6375
+ children: s.map((u) => /* @__PURE__ */ h(
6376
6376
  "label",
6377
6377
  {
6378
6378
  className: Ee.radioLabel,
@@ -6381,17 +6381,17 @@ const nn = (c) => {
6381
6381
  "input",
6382
6382
  {
6383
6383
  type: "radio",
6384
- value: h.value,
6385
- checked: d === h.value,
6384
+ value: u.value,
6385
+ checked: d === u.value,
6386
6386
  onChange: o,
6387
6387
  className: Ee.radio
6388
6388
  }
6389
6389
  ),
6390
6390
  /* @__PURE__ */ e("span", { className: Ee.custom }),
6391
- /* @__PURE__ */ e("span", { className: Ee.option, children: h.label })
6391
+ /* @__PURE__ */ e("span", { className: Ee.option, children: u.label })
6392
6392
  ]
6393
6393
  },
6394
- h.value
6394
+ u.value
6395
6395
  ))
6396
6396
  }
6397
6397
  )
@@ -6438,24 +6438,24 @@ const nn = (c) => {
6438
6438
  const [d, r] = b.useState(a);
6439
6439
  return b.useEffect(() => {
6440
6440
  if (!a) return;
6441
- const o = setInterval(() => r((h) => h - 1), 1e3);
6441
+ const o = setInterval(() => r((u) => u - 1), 1e3);
6442
6442
  return () => clearInterval(o);
6443
- }, []), /* @__PURE__ */ e("div", { style: { padding: n, position: "relative" }, children: /* @__PURE__ */ u(
6443
+ }, []), /* @__PURE__ */ e("div", { style: { padding: n, position: "relative" }, children: /* @__PURE__ */ h(
6444
6444
  "div",
6445
6445
  {
6446
6446
  className: q($e.notification, $e[c]),
6447
6447
  style: s,
6448
6448
  children: [
6449
6449
  /* @__PURE__ */ e("div", { className: $e.accent }),
6450
- /* @__PURE__ */ e("div", { className: $e.body, children: /* @__PURE__ */ e("div", { className: $e.content, children: i !== void 0 ? i ? /* @__PURE__ */ u(G, { children: [
6451
- /* @__PURE__ */ u("span", { className: $e.label, children: [
6450
+ /* @__PURE__ */ e("div", { className: $e.body, children: /* @__PURE__ */ e("div", { className: $e.content, children: i !== void 0 ? i ? /* @__PURE__ */ h(G, { children: [
6451
+ /* @__PURE__ */ h("span", { className: $e.label, children: [
6452
6452
  i,
6453
6453
  ":"
6454
6454
  ] }),
6455
6455
  " ",
6456
6456
  t
6457
- ] }) : t : /* @__PURE__ */ u(G, { children: [
6458
- /* @__PURE__ */ u("span", { className: $e.label, children: [
6457
+ ] }) : t : /* @__PURE__ */ h(G, { children: [
6458
+ /* @__PURE__ */ h("span", { className: $e.label, children: [
6459
6459
  bd[c],
6460
6460
  ":"
6461
6461
  ] }),