@billgangcom/theme-lib 1.69.8 → 1.69.10

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.
package/dist/ui.es.js CHANGED
@@ -1,14 +1,14 @@
1
- import { j as t, I as b, c as V, b as Ct, d as pt, e as mt, P as gt, S as lt, g as wt, D as ft, h as xt, v as _t, B as dt, i as it, a as Pt, k as Mt, O as ht, l as J, m as jt, C as vt, n as H, o as $t, p as Ot, q as bt, r as At, t as It, w as W, L as Et, x as St, y as yt, z as ot, s as at, f as tt, A as R, E as Dt, M as ut, F as Rt, G as ct, H as Lt, J as Tt, K as Ut, N as Bt, Q as zt } from "./index-RnaHlebe.js";
2
- import { $ as Xn, Y as Qn, W as Jn, _ as Kn, V as Zn, X as ti, T as ei, U as si, Z as ni } from "./index-RnaHlebe.js";
1
+ import { j as t, I as b, c as V, d as Ct, e as pt, g as mt, P as gt, S as lt, h as wt, D as ft, i as xt, v as _t, B as dt, k as it, a as Pt, l as Mt, O as ht, m as J, n as jt, C as vt, o as H, p as $t, q as Ot, r as bt, t as At, w as It, x as G, L as Et, y as St, z as yt, A as ot, s as at, f as tt, E as R, F as Dt, M as ut, G as Rt, H as ct, J as Lt, K as Tt, N as Ut, Q as Bt, T as zt } from "./index-DRdLku1Y.js";
2
+ import { a1 as Xn, Z as Qn, X as Jn, a0 as Kn, W as Zn, Y as ti, U as ei, V as si, _ as ni, $ as ii } from "./index-DRdLku1Y.js";
3
3
  import g from "react";
4
4
  import "react-dom";
5
- const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23", Yt = "_alignmentContent_kh9z8_30", Gt = "_alignments_kh9z8_39", Wt = "_alignment_kh9z8_30", Xt = "_circle_kh9z8_64", Qt = "_paddings_kh9z8_71", Jt = "_padding_kh9z8_71", Kt = "_active_kh9z8_97", Y = {
5
+ const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23", Yt = "_alignmentContent_kh9z8_30", Wt = "_alignments_kh9z8_39", Gt = "_alignment_kh9z8_30", Xt = "_circle_kh9z8_64", Qt = "_paddings_kh9z8_71", Jt = "_padding_kh9z8_71", Kt = "_active_kh9z8_97", Y = {
6
6
  block: Vt,
7
7
  title: Ht,
8
8
  subtitle: Ft,
9
9
  alignmentContent: Yt,
10
- alignments: Gt,
11
- alignment: Wt,
10
+ alignments: Wt,
11
+ alignment: Gt,
12
12
  circle: Xt,
13
13
  paddings: Qt,
14
14
  padding: Jt,
@@ -25,7 +25,7 @@ const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23",
25
25
  "bottomRight"
26
26
  ], te = ["left", "top", "right", "bottom"], qn = (d) => {
27
27
  const {
28
- alignment: i,
28
+ alignment: n,
29
29
  padding: a,
30
30
  setPadding: s,
31
31
  setAlignment: e,
@@ -82,8 +82,8 @@ const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23",
82
82
  M(null);
83
83
  },
84
84
  children: [
85
- o !== i && v !== o && /* @__PURE__ */ t.jsx("div", { className: Y.circle }),
86
- o !== i && v === o && /* @__PURE__ */ t.jsx(
85
+ o !== n && v !== o && /* @__PURE__ */ t.jsx("div", { className: Y.circle }),
86
+ o !== n && v === o && /* @__PURE__ */ t.jsx(
87
87
  b,
88
88
  {
89
89
  name: h(v),
@@ -92,10 +92,10 @@ const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23",
92
92
  height: 22
93
93
  }
94
94
  ),
95
- o === i && /* @__PURE__ */ t.jsx(
95
+ o === n && /* @__PURE__ */ t.jsx(
96
96
  b,
97
97
  {
98
- name: h(i),
98
+ name: h(n),
99
99
  fill: "#FF3F19",
100
100
  width: 22,
101
101
  height: 22
@@ -134,9 +134,9 @@ const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23",
134
134
  {
135
135
  type: "number",
136
136
  value: String(a[o]),
137
- onChange: (n) => s({
137
+ onChange: (i) => s({
138
138
  ...a,
139
- [o]: Math.min(Number(n), 999)
139
+ [o]: Math.min(Number(i), 999)
140
140
  }),
141
141
  max: 999,
142
142
  paddingless: !0,
@@ -163,7 +163,7 @@ const Vt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23",
163
163
  addButton: de,
164
164
  deleteButton: ue
165
165
  };
166
- function he({ id: d, children: i }) {
166
+ function he({ id: d, children: n }) {
167
167
  const {
168
168
  attributes: a,
169
169
  listeners: s,
@@ -185,13 +185,13 @@ function he({ id: d, children: i }) {
185
185
  className: `${X.product} ${h ? X.dragging : ""}`,
186
186
  ...a,
187
187
  ...s,
188
- children: i
188
+ children: n
189
189
  }
190
190
  );
191
191
  }
192
192
  const $n = (d) => {
193
193
  const {
194
- isActiveItems: i,
194
+ isActiveItems: n,
195
195
  setIsActiveItems: a,
196
196
  items: s,
197
197
  setItems: e,
@@ -204,8 +204,8 @@ const $n = (d) => {
204
204
  addable: x = !0,
205
205
  itemsOptions: c,
206
206
  hasRangeSelector: o = !1,
207
- rangeSelectorOptions: n,
208
- limit: q,
207
+ rangeSelectorOptions: i,
208
+ limit: T,
209
209
  autoScrollInterval: _,
210
210
  deletable: j,
211
211
  aspectRatio: N,
@@ -305,17 +305,17 @@ const $n = (d) => {
305
305
  );
306
306
  };
307
307
  return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
308
- (h || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: X.top, children: [
308
+ (h || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: X.top, children: [
309
309
  h && /* @__PURE__ */ t.jsx("h3", { className: X.title, children: h }),
310
- i !== void 0 && /* @__PURE__ */ t.jsx(
310
+ n !== void 0 && /* @__PURE__ */ t.jsx(
311
311
  lt,
312
312
  {
313
- current: i,
313
+ current: n,
314
314
  onChange: (p) => a == null ? void 0 : a(p)
315
315
  }
316
316
  )
317
317
  ] }),
318
- o && n && /* @__PURE__ */ t.jsx(wt, { ...n }),
318
+ o && i && /* @__PURE__ */ t.jsx(wt, { ...i }),
319
319
  /* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
320
320
  f && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: f }),
321
321
  v ? /* @__PURE__ */ t.jsx(
@@ -347,10 +347,10 @@ const $n = (d) => {
347
347
  {
348
348
  withoutHover: !0,
349
349
  className: V(X.button, {
350
- [X.disabled]: !!(q && q <= s.length || s.length === c.length)
350
+ [X.disabled]: !!(T && T <= s.length || s.length === c.length)
351
351
  }),
352
352
  size: "s",
353
- disabled: !!(q && q <= s.length || s.length === c.length),
353
+ disabled: !!(T && T <= s.length || s.length === c.length),
354
354
  onClick: () => {
355
355
  const p = [...s];
356
356
  let C = null;
@@ -435,7 +435,7 @@ const $n = (d) => {
435
435
  addButton: ye,
436
436
  deleteButton: Ie
437
437
  };
438
- function Ne({ product: d, children: i }) {
438
+ function Ne({ product: d, children: n }) {
439
439
  const {
440
440
  attributes: a,
441
441
  listeners: s,
@@ -457,13 +457,13 @@ function Ne({ product: d, children: i }) {
457
457
  className: `${F.product} ${h ? F.dragging : ""}`,
458
458
  ...a,
459
459
  ...s,
460
- children: i
460
+ children: n
461
461
  }
462
462
  );
463
463
  }
464
464
  const On = (d) => {
465
465
  const {
466
- isActiveItems: i,
466
+ isActiveItems: n,
467
467
  setIsActiveItems: a,
468
468
  items: s,
469
469
  setItems: e,
@@ -476,8 +476,8 @@ const On = (d) => {
476
476
  itemsType: x,
477
477
  itemsOptions: c,
478
478
  addableOptions: o = {},
479
- limit: n
480
- } = d, [q, _] = g.useState(null), [j, N] = g.useState(null), k = g.useRef(null), D = pt(
479
+ limit: i
480
+ } = d, [T, _] = g.useState(null), [j, N] = g.useState(null), k = g.useRef(null), D = pt(
481
481
  mt(gt, {
482
482
  activationConstraint: {
483
483
  distance: 5
@@ -485,11 +485,11 @@ const On = (d) => {
485
485
  })
486
486
  );
487
487
  g.useEffect(() => {
488
- if (q) {
489
- const p = [...s].map((C) => C.id === q.id ? q : C);
488
+ if (T) {
489
+ const p = [...s].map((C) => C.id === T.id ? T : C);
490
490
  e(p);
491
491
  }
492
- }, [q]), g.useEffect(() => {
492
+ }, [T]), g.useEffect(() => {
493
493
  k.current && j && (k.current.getBoundingClientRect().height, j.top);
494
494
  }, [k.current, j]);
495
495
  const L = (p, C) => {
@@ -584,12 +584,12 @@ const On = (d) => {
584
584
  );
585
585
  };
586
586
  return /* @__PURE__ */ t.jsxs("div", { className: F.productsBlock, children: [
587
- (l || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: F.top, children: [
587
+ (l || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: F.top, children: [
588
588
  l && /* @__PURE__ */ t.jsx("h3", { className: F.title, children: l }),
589
- i !== void 0 && /* @__PURE__ */ t.jsx(
589
+ n !== void 0 && /* @__PURE__ */ t.jsx(
590
590
  lt,
591
591
  {
592
- current: i,
592
+ current: n,
593
593
  onChange: (p) => a == null ? void 0 : a(p)
594
594
  }
595
595
  )
@@ -624,10 +624,10 @@ const On = (d) => {
624
624
  {
625
625
  withoutHover: !0,
626
626
  className: V(F.button, {
627
- [F.disabled]: !!(n && n <= s.length || s.length === (c == null ? void 0 : c.length))
627
+ [F.disabled]: !!(i && i <= s.length || s.length === (c == null ? void 0 : c.length))
628
628
  }),
629
629
  size: "s",
630
- disabled: !!(n && n <= s.length || s.length === (c == null ? void 0 : c.length)),
630
+ disabled: !!(i && i <= s.length || s.length === (c == null ? void 0 : c.length)),
631
631
  onClick: () => {
632
632
  const p = [...s];
633
633
  let C = null;
@@ -666,8 +666,8 @@ const On = (d) => {
666
666
  ] });
667
667
  };
668
668
  function Ce(d) {
669
- const { product: i, children: a } = d, { attributes: s, listeners: e, setNodeRef: l, transform: r, transition: h, isDragging: f } = jt({
670
- id: i.id
669
+ const { product: n, children: a } = d, { attributes: s, listeners: e, setNodeRef: l, transform: r, transition: h, isDragging: f } = jt({
670
+ id: n.id
671
671
  }), v = {
672
672
  transform: vt.Transform.toString(r),
673
673
  transition: h
@@ -686,7 +686,7 @@ function Ce(d) {
686
686
  }
687
687
  const An = (d) => {
688
688
  const {
689
- isActiveItems: i,
689
+ isActiveItems: n,
690
690
  setIsActiveItems: a,
691
691
  items: s,
692
692
  setItems: e,
@@ -699,8 +699,8 @@ const An = (d) => {
699
699
  addable: x = !0,
700
700
  itemsType: c,
701
701
  itemsPlaceholder: o = "",
702
- itemsOptions: n,
703
- hasRangeSelector: q = !1,
702
+ itemsOptions: i,
703
+ hasRangeSelector: T = !1,
704
704
  rangeSelectorOptions: _,
705
705
  modalOptions: j,
706
706
  addableOptions: N = {},
@@ -724,30 +724,30 @@ const An = (d) => {
724
724
  };
725
725
  }, []), g.useEffect(() => {
726
726
  if (D) {
727
- const u = [...s].map((B) => B.id === D.id ? D : B);
727
+ const u = [...s].map((q) => q.id === D.id ? D : q);
728
728
  e(u);
729
729
  }
730
730
  }, [D]), g.useEffect(() => {
731
731
  if (w.current && p) {
732
- const u = w.current.getBoundingClientRect().height, B = window.innerHeight;
732
+ const u = w.current.getBoundingClientRect().height, q = window.innerHeight;
733
733
  let S = p.top;
734
- S + u > B + window.scrollY - 200 && (S = B + window.scrollY - u - 200), S < 0 && (S = 10), m({
734
+ S + u > q + window.scrollY - 200 && (S = q + window.scrollY - u - 200), S < 0 && (S = 10), m({
735
735
  top: S,
736
736
  left: p.left
737
737
  });
738
738
  }
739
739
  }, [w.current, p]);
740
- const y = (u, B) => {
740
+ const y = (u, q) => {
741
741
  u.stopPropagation();
742
742
  const S = u.target.getBoundingClientRect();
743
743
  C({
744
744
  top: S.top + window.scrollY,
745
745
  left: S.left - 30
746
- }), L(B), I(!0);
746
+ }), L(q), I(!0);
747
747
  }, A = (u) => {
748
- const { active: B, over: S } = u;
749
- if (S && B.id !== S.id) {
750
- const E = s.findIndex((U) => U.id === B.id), et = s.findIndex((U) => U.id === S.id);
748
+ const { active: q, over: S } = u;
749
+ if (S && q.id !== S.id) {
750
+ const E = s.findIndex((U) => U.id === q.id), et = s.findIndex((U) => U.id === S.id);
751
751
  if (E !== -1 && et !== -1) {
752
752
  const U = [...s], [Z] = U.splice(E, 1);
753
753
  U.splice(et, 0, Z), e(U);
@@ -755,7 +755,7 @@ const An = (d) => {
755
755
  }
756
756
  }, z = (u) => {
757
757
  var S;
758
- const B = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
758
+ const q = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
759
759
  v && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
760
760
  b,
761
761
  {
@@ -765,7 +765,7 @@ const An = (d) => {
765
765
  height: 20
766
766
  }
767
767
  ) }),
768
- c === "select" && n && /* @__PURE__ */ t.jsx(
768
+ c === "select" && i && /* @__PURE__ */ t.jsx(
769
769
  it,
770
770
  {
771
771
  onChange: (E) => {
@@ -783,7 +783,7 @@ const An = (d) => {
783
783
  }), e([...U]);
784
784
  },
785
785
  value: u.name["en-US"],
786
- options: n.filter(
786
+ options: i.filter(
787
787
  (E) => !s.find((et) => et.name["en-US"] === E)
788
788
  )
789
789
  }
@@ -845,25 +845,25 @@ const An = (d) => {
845
845
  Ce,
846
846
  {
847
847
  product: u,
848
- children: B
848
+ children: q
849
849
  },
850
850
  u.id
851
851
  ) : /* @__PURE__ */ t.jsx(
852
852
  "div",
853
853
  {
854
854
  className: H.product,
855
- children: B
855
+ children: q
856
856
  },
857
857
  u.id
858
858
  );
859
859
  };
860
860
  return /* @__PURE__ */ t.jsxs("div", { className: H.productsBlock, children: [
861
- (r || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: H.top, children: [
861
+ (r || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: H.top, children: [
862
862
  r && /* @__PURE__ */ t.jsx("h3", { className: H.title, children: r }),
863
- i !== void 0 && /* @__PURE__ */ t.jsx(
863
+ n !== void 0 && /* @__PURE__ */ t.jsx(
864
864
  lt,
865
865
  {
866
- current: i,
866
+ current: n,
867
867
  onChange: (u) => a == null ? void 0 : a(u)
868
868
  }
869
869
  )
@@ -879,7 +879,7 @@ const An = (d) => {
879
879
  setIsOpenModal: I
880
880
  }
881
881
  ),
882
- q && _ && /* @__PURE__ */ t.jsx(wt, { ..._ }),
882
+ T && _ && /* @__PURE__ */ t.jsx(wt, { ..._ }),
883
883
  /* @__PURE__ */ t.jsxs("div", { className: H.products, children: [
884
884
  h && /* @__PURE__ */ t.jsx("h5", { className: H.subtitle, children: h }),
885
885
  v ? /* @__PURE__ */ t.jsx(
@@ -916,17 +916,17 @@ const An = (d) => {
916
916
  disabled: !!(k && k <= s.length),
917
917
  onClick: () => {
918
918
  const u = [...s];
919
- let B = null;
920
- if (n) {
921
- for (let S = 0; S < n.length; S++)
922
- if (!s.find((E) => E.name["en-US"] === n[S])) {
923
- B = n[S];
919
+ let q = null;
920
+ if (i) {
921
+ for (let S = 0; S < i.length; S++)
922
+ if (!s.find((E) => E.name["en-US"] === i[S])) {
923
+ q = i[S];
924
924
  break;
925
925
  }
926
926
  }
927
- c === "select" && n ? u.push({
927
+ c === "select" && i ? u.push({
928
928
  name: {
929
- "en-US": B || n[0]
929
+ "en-US": q || i[0]
930
930
  },
931
931
  id: J(),
932
932
  ...N,
@@ -984,13 +984,13 @@ const An = (d) => {
984
984
  addButton: Te,
985
985
  deleteButton: Be
986
986
  }, qe = (d) => {
987
- const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink: l = !0 } = d, { pages: r } = bt(), [h, f] = g.useState(null), [v, M] = g.useState({
987
+ const { buttons: n, setButtons: a, deletable: s = !0, addable: e = !0, editableLink: l = !0 } = d, { pages: r } = bt(), [h, f] = g.useState(null), [v, M] = g.useState({
988
988
  top: 0,
989
989
  left: 0
990
990
  }), [x, c] = g.useState(null), o = g.useRef(null);
991
991
  g.useEffect(() => {
992
992
  if (h) {
993
- const _ = [...i].map((j) => j.id === h.id ? h : j);
993
+ const _ = [...n].map((j) => j.id === h.id ? h : j);
994
994
  a(_);
995
995
  }
996
996
  }, [h]), g.useEffect(() => {
@@ -1003,15 +1003,15 @@ const An = (d) => {
1003
1003
  });
1004
1004
  }
1005
1005
  }, [o.current, x]);
1006
- const n = (_, j) => {
1006
+ const i = (_, j) => {
1007
1007
  _.stopPropagation();
1008
1008
  const N = _.target.getBoundingClientRect();
1009
1009
  c({
1010
1010
  top: N.top + window.scrollY - 70,
1011
1011
  left: N.left - (e ? 30 : 65)
1012
1012
  }), f(j);
1013
- }, q = (_, j) => {
1014
- const N = [...i], k = {
1013
+ }, T = (_, j) => {
1014
+ const N = [...n], k = {
1015
1015
  ..._,
1016
1016
  id: Math.random().toString(36).substr(2, 9)
1017
1017
  // Генерируем новый уникальный ID
@@ -1020,7 +1020,7 @@ const An = (d) => {
1020
1020
  };
1021
1021
  return /* @__PURE__ */ t.jsxs("div", { className: st.products, children: [
1022
1022
  /* @__PURE__ */ t.jsx("h5", { className: st.subtitle, children: "Button Type" }),
1023
- i.map((_, j) => /* @__PURE__ */ t.jsxs(
1023
+ n.map((_, j) => /* @__PURE__ */ t.jsxs(
1024
1024
  "div",
1025
1025
  {
1026
1026
  className: st.product,
@@ -1029,7 +1029,7 @@ const An = (d) => {
1029
1029
  it,
1030
1030
  {
1031
1031
  onChange: (N) => {
1032
- const D = [...i].map((L) => L.id === _.id ? {
1032
+ const D = [...n].map((L) => L.id === _.id ? {
1033
1033
  ..._,
1034
1034
  type: N
1035
1035
  } : L);
@@ -1048,7 +1048,7 @@ const An = (d) => {
1048
1048
  width: 20,
1049
1049
  height: 20,
1050
1050
  onClick: () => {
1051
- q(_, j);
1051
+ T(_, j);
1052
1052
  }
1053
1053
  }
1054
1054
  ) }),
@@ -1060,7 +1060,7 @@ const An = (d) => {
1060
1060
  width: 20,
1061
1061
  height: 20,
1062
1062
  onClick: (N) => {
1063
- n(N, _);
1063
+ i(N, _);
1064
1064
  }
1065
1065
  }
1066
1066
  ) }),
@@ -1070,7 +1070,7 @@ const An = (d) => {
1070
1070
  name: "Trash",
1071
1071
  hoverable: !0,
1072
1072
  onClick: () => {
1073
- const N = i.filter((k) => k.id !== _.id);
1073
+ const N = n.filter((k) => k.id !== _.id);
1074
1074
  a(N);
1075
1075
  },
1076
1076
  width: 20,
@@ -1108,7 +1108,7 @@ const An = (d) => {
1108
1108
  className: st.button,
1109
1109
  size: "s",
1110
1110
  onClick: () => {
1111
- const _ = [...i];
1111
+ const _ = [...n];
1112
1112
  l ? _.push({
1113
1113
  type: "Primary",
1114
1114
  id: J(),
@@ -1152,7 +1152,7 @@ const An = (d) => {
1152
1152
  ] });
1153
1153
  }, En = (d) => {
1154
1154
  const {
1155
- isActiveButtons: i,
1155
+ isActiveButtons: n,
1156
1156
  setIsActiveButtons: a,
1157
1157
  buttons: s,
1158
1158
  setButtons: e,
@@ -1166,12 +1166,12 @@ const An = (d) => {
1166
1166
  /* @__PURE__ */ t.jsx(
1167
1167
  lt,
1168
1168
  {
1169
- current: i,
1169
+ current: n,
1170
1170
  onChange: (f) => a(f)
1171
1171
  }
1172
1172
  )
1173
1173
  ] }),
1174
- i && /* @__PURE__ */ t.jsx(
1174
+ n && /* @__PURE__ */ t.jsx(
1175
1175
  qe,
1176
1176
  {
1177
1177
  buttons: s,
@@ -1184,8 +1184,8 @@ const An = (d) => {
1184
1184
  ] }) });
1185
1185
  };
1186
1186
  function $e(d) {
1187
- const { product: i, children: a } = d, { attributes: s, listeners: e, setNodeRef: l, transform: r, transition: h, isDragging: f } = jt({
1188
- id: String(i.listingId)
1187
+ const { product: n, children: a } = d, { attributes: s, listeners: e, setNodeRef: l, transform: r, transition: h, isDragging: f } = jt({
1188
+ id: String(n.listingId)
1189
1189
  }), v = {
1190
1190
  transform: vt.Transform.toString(r),
1191
1191
  transition: h
@@ -1195,7 +1195,7 @@ function $e(d) {
1195
1195
  {
1196
1196
  ref: l,
1197
1197
  style: v,
1198
- className: `${W.product} ${f ? W.dragging : ""}`,
1198
+ className: `${G.product} ${f ? G.dragging : ""}`,
1199
1199
  ...s,
1200
1200
  ...e,
1201
1201
  children: a
@@ -1204,7 +1204,7 @@ function $e(d) {
1204
1204
  }
1205
1205
  const Dn = (d) => {
1206
1206
  const {
1207
- isActiveItems: i,
1207
+ isActiveItems: n,
1208
1208
  setIsActiveItems: a,
1209
1209
  items: s,
1210
1210
  setItems: e,
@@ -1217,8 +1217,8 @@ const Dn = (d) => {
1217
1217
  deletable: x = !0,
1218
1218
  addable: c = !0,
1219
1219
  itemsType: o,
1220
- itemsOptions: n,
1221
- limit: q,
1220
+ itemsOptions: i,
1221
+ limit: T,
1222
1222
  aspectRatio: _,
1223
1223
  setAspectRatio: j
1224
1224
  } = d, [N, k] = g.useState(
@@ -1248,9 +1248,9 @@ const Dn = (d) => {
1248
1248
  }, [N]);
1249
1249
  const C = (y, A) => {
1250
1250
  y.stopPropagation();
1251
- const z = y.target.getBoundingClientRect(), u = 100, B = window.innerHeight;
1251
+ const z = y.target.getBoundingClientRect(), u = 100, q = window.innerHeight;
1252
1252
  let S = z.top + window.scrollY;
1253
- S + u > B && (S = B - u - 20), m(!0), L({
1253
+ S + u > q && (S = q - u - 20), m(!0), L({
1254
1254
  top: S - 80,
1255
1255
  left: z.left - 30
1256
1256
  }), k(A);
@@ -1278,14 +1278,14 @@ const Dn = (d) => {
1278
1278
  const $ = (y) => {
1279
1279
  const { active: A, over: z } = y;
1280
1280
  if (z && A.id !== z.id) {
1281
- const u = s.findIndex((S) => String(S.listingId) === A.id), B = s.findIndex((S) => String(S.listingId) === z.id);
1282
- if (u !== -1 && B !== -1) {
1281
+ const u = s.findIndex((S) => String(S.listingId) === A.id), q = s.findIndex((S) => String(S.listingId) === z.id);
1282
+ if (u !== -1 && q !== -1) {
1283
1283
  const S = [...s], [E] = S.splice(u, 1);
1284
- S.splice(B, 0, E), e(S);
1284
+ S.splice(q, 0, E), e(S);
1285
1285
  }
1286
1286
  }
1287
1287
  }, I = (y) => {
1288
- const A = n.find((u) => y.listingId === u.id);
1288
+ const A = i.find((u) => y.listingId === u.id);
1289
1289
  if (!A) return null;
1290
1290
  const z = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1291
1291
  v && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -1301,29 +1301,29 @@ const Dn = (d) => {
1301
1301
  it,
1302
1302
  {
1303
1303
  onChange: (u) => {
1304
- const B = [...s], S = n.find((U) => U.productData.name === u);
1304
+ const q = [...s], S = i.find((U) => U.productData.name === u);
1305
1305
  if (!S) return;
1306
1306
  const E = {
1307
1307
  listingId: S.id,
1308
1308
  image: S.productData.images.length > 0 ? S.productData.images[0].cfId : ""
1309
- }, et = B.map((U) => U.listingId === y.listingId ? E : U);
1309
+ }, et = q.map((U) => U.listingId === y.listingId ? E : U);
1310
1310
  k(E), e([...et]);
1311
1311
  },
1312
1312
  value: A.productData.name,
1313
1313
  options: [
1314
- ...n.filter((u) => !s.find((B) => B.listingId === u.id)).map((u) => u.productData.name)
1314
+ ...i.filter((u) => !s.find((q) => q.listingId === u.id)).map((u) => u.productData.name)
1315
1315
  ],
1316
- leftAddonOptions: n.map((u) => {
1317
- var B;
1316
+ leftAddonOptions: i.map((u) => {
1317
+ var q;
1318
1318
  return {
1319
1319
  value: u.productData.name,
1320
- addon: w(((B = u.productData.images[0]) == null ? void 0 : B.cfId) || "")
1320
+ addon: w(((q = u.productData.images[0]) == null ? void 0 : q.cfId) || "")
1321
1321
  };
1322
1322
  })
1323
1323
  }
1324
1324
  ),
1325
- /* @__PURE__ */ t.jsxs("div", { className: W.buttons, children: [
1326
- f && /* @__PURE__ */ t.jsx("div", { className: W.deleteButton, children: /* @__PURE__ */ t.jsx(
1325
+ /* @__PURE__ */ t.jsxs("div", { className: G.buttons, children: [
1326
+ f && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
1327
1327
  b,
1328
1328
  {
1329
1329
  name: "Sliders",
@@ -1333,7 +1333,7 @@ const Dn = (d) => {
1333
1333
  onClick: (u) => C(u, y)
1334
1334
  }
1335
1335
  ) }),
1336
- x && /* @__PURE__ */ t.jsx("div", { className: W.deleteButton, children: /* @__PURE__ */ t.jsx(
1336
+ x && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
1337
1337
  b,
1338
1338
  {
1339
1339
  name: "Trash",
@@ -1356,19 +1356,19 @@ const Dn = (d) => {
1356
1356
  ) : /* @__PURE__ */ t.jsx(
1357
1357
  "div",
1358
1358
  {
1359
- className: W.product,
1359
+ className: G.product,
1360
1360
  children: z
1361
1361
  },
1362
1362
  y.listingId
1363
1363
  );
1364
1364
  }, O = g.useRef(null);
1365
- return /* @__PURE__ */ t.jsxs("div", { className: W.productsBlock, children: [
1366
- (r || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: W.top, children: [
1367
- r && /* @__PURE__ */ t.jsx("h3", { className: W.title, children: r }),
1368
- i !== void 0 && /* @__PURE__ */ t.jsx(
1365
+ return /* @__PURE__ */ t.jsxs("div", { className: G.productsBlock, children: [
1366
+ (r || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: G.top, children: [
1367
+ r && /* @__PURE__ */ t.jsx("h3", { className: G.title, children: r }),
1368
+ n !== void 0 && /* @__PURE__ */ t.jsx(
1369
1369
  lt,
1370
1370
  {
1371
- current: i,
1371
+ current: n,
1372
1372
  onChange: (y) => a == null ? void 0 : a(y)
1373
1373
  }
1374
1374
  )
@@ -1381,11 +1381,11 @@ const Dn = (d) => {
1381
1381
  setActiveItem: k,
1382
1382
  setIsOpenModal: m,
1383
1383
  popupPosition: D,
1384
- itemsOptions: n
1384
+ itemsOptions: i
1385
1385
  }
1386
1386
  ),
1387
- i && /* @__PURE__ */ t.jsxs("div", { className: W.products, children: [
1388
- h && /* @__PURE__ */ t.jsx("h5", { className: W.subtitle, children: h }),
1387
+ n && /* @__PURE__ */ t.jsxs("div", { className: G.products, children: [
1388
+ h && /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: h }),
1389
1389
  v ? /* @__PURE__ */ t.jsx(
1390
1390
  ft,
1391
1391
  {
@@ -1413,25 +1413,25 @@ const Dn = (d) => {
1413
1413
  dt,
1414
1414
  {
1415
1415
  withoutHover: !0,
1416
- className: W.button,
1416
+ className: G.button,
1417
1417
  size: "s",
1418
1418
  onClick: () => {
1419
1419
  const y = [...s];
1420
- for (let A = 0; A < n.length; A++)
1421
- if (!s.find((z) => z.listingId === n[A].id)) {
1420
+ for (let A = 0; A < i.length; A++)
1421
+ if (!s.find((z) => z.listingId === i[A].id)) {
1422
1422
  y.push({
1423
- listingId: n[A].id,
1424
- image: n[A].productData.images.length > 0 ? n[A].productData.images[0].cfId : ""
1423
+ listingId: i[A].id,
1424
+ image: i[A].productData.images.length > 0 ? i[A].productData.images[0].cfId : ""
1425
1425
  });
1426
1426
  break;
1427
1427
  }
1428
1428
  e(y);
1429
1429
  },
1430
- disabled: s.length === (q || n.length),
1430
+ disabled: s.length === (T || i.length),
1431
1431
  style: {
1432
1432
  width: "fit-content"
1433
1433
  },
1434
- children: /* @__PURE__ */ t.jsxs("div", { className: W.addButton, children: [
1434
+ children: /* @__PURE__ */ t.jsxs("div", { className: G.addButton, children: [
1435
1435
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1436
1436
  /* @__PURE__ */ t.jsx(
1437
1437
  b,
@@ -1456,7 +1456,7 @@ const Dn = (d) => {
1456
1456
  leftAddonOptions: Pt
1457
1457
  }
1458
1458
  ),
1459
- i && l !== void 0 && /* @__PURE__ */ t.jsx(
1459
+ n && l !== void 0 && /* @__PURE__ */ t.jsx(
1460
1460
  ht,
1461
1461
  {
1462
1462
  otherTitle: "Other",
@@ -1464,7 +1464,7 @@ const Dn = (d) => {
1464
1464
  }
1465
1465
  )
1466
1466
  ] });
1467
- }, Oe = "_options_167h8_1", Ae = "_price_167h8_18", Ee = "_oldPrice_167h8_25", De = "_newPrice_167h8_33", Re = "_animate_167h8_40", Le = "_meta_167h8_58", Ue = "_info_167h8_64", ze = "_infoRight_167h8_73", Ve = "_buttons_167h8_80", He = "_variants_167h8_87", Fe = "_variant_167h8_87", Ye = "_stock_167h8_105", Ge = "_variantInfo_167h8_112", We = "_quantity_167h8_119", Xe = "_button_167h8_80", Qe = "_activeVariant_167h8_165", Je = "_chargeTypes_167h8_169", Ke = "_charge_167h8_169", Ze = "_chargeActive_167h8_194", ts = "_title_167h8_202", T = {
1467
+ }, Oe = "_options_167h8_1", Ae = "_price_167h8_18", Ee = "_oldPrice_167h8_25", De = "_newPrice_167h8_33", Re = "_animate_167h8_40", Le = "_meta_167h8_58", Ue = "_info_167h8_64", ze = "_infoRight_167h8_73", Ve = "_buttons_167h8_80", He = "_variants_167h8_87", Fe = "_variant_167h8_87", Ye = "_stock_167h8_105", We = "_variantInfo_167h8_112", Ge = "_quantity_167h8_119", Xe = "_button_167h8_80", Qe = "_activeVariant_167h8_165", Je = "_chargeTypes_167h8_169", Ke = "_charge_167h8_169", Ze = "_chargeActive_167h8_194", ts = "_title_167h8_202", B = {
1468
1468
  options: Oe,
1469
1469
  price: Ae,
1470
1470
  oldPrice: Ee,
@@ -1477,8 +1477,8 @@ const Dn = (d) => {
1477
1477
  variants: He,
1478
1478
  variant: Fe,
1479
1479
  stock: Ye,
1480
- variantInfo: Ge,
1481
- quantity: We,
1480
+ variantInfo: We,
1481
+ quantity: Ge,
1482
1482
  button: Xe,
1483
1483
  activeVariant: Qe,
1484
1484
  chargeTypes: Je,
@@ -1489,9 +1489,9 @@ const Dn = (d) => {
1489
1489
  var kt = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(kt || {});
1490
1490
  const es = (d) => {
1491
1491
  var L, K;
1492
- const { product: i, setIsOpen: a } = d, { variants: s } = i, [e, l] = g.useState(s[0]), [r, h] = g.useState(
1492
+ const { product: n, setIsOpen: a } = d, { variants: s } = n, [e, l] = g.useState(s[0]), [r, h] = g.useState(
1493
1493
  e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
1494
- ), { notifications: f, setNotifications: v } = St(), M = yt(), [x, c] = g.useState(1), { cart: o, reset: n, addProductToCart: q } = ot(), [_, j] = g.useState(!1);
1494
+ ), { notifications: f, setNotifications: v } = St(), M = yt(), [x, c] = g.useState(1), { cart: o, reset: i, addProductToCart: T } = ot(), [_, j] = g.useState(!1);
1495
1495
  g.useEffect(() => {
1496
1496
  j(!0);
1497
1497
  const m = setTimeout(() => j(!1), 600);
@@ -1499,8 +1499,8 @@ const es = (d) => {
1499
1499
  }, [x]);
1500
1500
  async function N() {
1501
1501
  try {
1502
- q({
1503
- productId: i.id,
1502
+ T({
1503
+ productId: n.id,
1504
1504
  productVariantId: e.id,
1505
1505
  quantity: x
1506
1506
  }), v([
@@ -1524,7 +1524,9 @@ const es = (d) => {
1524
1524
  a == null || a(!1);
1525
1525
  }
1526
1526
  function k() {
1527
- n(), N(), M("/checkout");
1527
+ i(), N(), M("/checkout", {
1528
+ replace: !0
1529
+ });
1528
1530
  }
1529
1531
  function D(m) {
1530
1532
  if (m >= 864e5) {
@@ -1543,36 +1545,36 @@ const es = (d) => {
1543
1545
  }
1544
1546
  return g.useEffect(() => {
1545
1547
  e.quantity && e.quantity.available === 0 ? c(0) : c(1);
1546
- }, [e.quantity.available]), /* @__PURE__ */ t.jsxs("div", { className: T.options, children: [
1547
- e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: T.chargeTypes, children: e.chargeTypes.map((m) => /* @__PURE__ */ t.jsx(
1548
+ }, [e.quantity.available]), /* @__PURE__ */ t.jsxs("div", { className: B.options, children: [
1549
+ e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: B.chargeTypes, children: e.chargeTypes.map((m) => /* @__PURE__ */ t.jsx(
1548
1550
  "div",
1549
1551
  {
1550
- className: V(T.charge, {
1551
- [T.chargeActive]: r === m
1552
+ className: V(B.charge, {
1553
+ [B.chargeActive]: r === m
1552
1554
  }),
1553
1555
  onClick: () => h(m),
1554
1556
  children: kt[m]
1555
1557
  },
1556
1558
  m
1557
1559
  )) }),
1558
- /* @__PURE__ */ t.jsx("div", { className: T.variants, children: s.map((m) => {
1560
+ /* @__PURE__ */ t.jsx("div", { className: B.variants, children: s.map((m) => {
1559
1561
  var p, C;
1560
1562
  return /* @__PURE__ */ t.jsxs(
1561
1563
  "div",
1562
1564
  {
1563
- className: V(T.variant, {
1564
- [T.activeVariant]: e.id === m.id
1565
+ className: V(B.variant, {
1566
+ [B.activeVariant]: e.id === m.id
1565
1567
  }),
1566
1568
  onClick: () => l(m),
1567
1569
  children: [
1568
- /* @__PURE__ */ t.jsxs("div", { className: T.variantInfo, children: [
1569
- /* @__PURE__ */ t.jsx("span", { className: T.title, children: at(m.name) }),
1570
+ /* @__PURE__ */ t.jsxs("div", { className: B.variantInfo, children: [
1571
+ /* @__PURE__ */ t.jsx("span", { className: B.title, children: at(m.name) }),
1570
1572
  /* @__PURE__ */ t.jsx("span", { children: tt({
1571
1573
  amount: r === "ONE_TIME" ? m.price.amount : m.subscriptionSettings ? m.subscriptionSettings.price.amount : 0,
1572
1574
  currency: r === "ONE_TIME" ? m.price.currency : m.subscriptionSettings ? m.subscriptionSettings.price.currency : "USD"
1573
1575
  }) })
1574
1576
  ] }),
1575
- /* @__PURE__ */ t.jsx("div", { children: r === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: T.stock, children: [
1577
+ /* @__PURE__ */ t.jsx("div", { children: r === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: B.stock, children: [
1576
1578
  (p = m.quantity.restrictions) != null && p.max || m.quantity.available !== void 0 ? ((C = m.quantity.restrictions) == null ? void 0 : C.max) || m.quantity.available : "∞",
1577
1579
  " ",
1578
1580
  "in stock"
@@ -1582,7 +1584,7 @@ const es = (d) => {
1582
1584
  m.id
1583
1585
  );
1584
1586
  }) }),
1585
- r === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: T.quantity, children: [
1587
+ r === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: B.quantity, children: [
1586
1588
  /* @__PURE__ */ t.jsx(
1587
1589
  R,
1588
1590
  {
@@ -1590,7 +1592,7 @@ const es = (d) => {
1590
1592
  onClick: () => {
1591
1593
  x > 1 ? c((m) => m - 1) : c(1);
1592
1594
  },
1593
- className: T.button,
1595
+ className: B.button,
1594
1596
  disabled: e.quantity.available && e.quantity.restrictions && x <= e.quantity.restrictions.min || e.quantity.available === 0,
1595
1597
  children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
1596
1598
  }
@@ -1616,16 +1618,16 @@ const es = (d) => {
1616
1618
  onClick: () => {
1617
1619
  c((m) => m + 1);
1618
1620
  },
1619
- className: T.button,
1621
+ className: B.button,
1620
1622
  disabled: !!(e.quantity.available && e.quantity.restrictions && x >= e.quantity.restrictions.max || e.quantity.available === 0 || e.quantity.available && x >= e.quantity.available),
1621
1623
  children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
1622
1624
  }
1623
1625
  )
1624
1626
  ] }),
1625
- /* @__PURE__ */ t.jsxs("div", { className: T.meta, children: [
1626
- /* @__PURE__ */ t.jsxs("div", { className: T.info, children: [
1627
+ /* @__PURE__ */ t.jsxs("div", { className: B.meta, children: [
1628
+ /* @__PURE__ */ t.jsxs("div", { className: B.info, children: [
1627
1629
  /* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
1628
- /* @__PURE__ */ t.jsxs("div", { className: T.infoRight, children: [
1630
+ /* @__PURE__ */ t.jsxs("div", { className: B.infoRight, children: [
1629
1631
  /* @__PURE__ */ t.jsx(
1630
1632
  b,
1631
1633
  {
@@ -1638,36 +1640,36 @@ const es = (d) => {
1638
1640
  /* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : D(e.deliveryTime) })
1639
1641
  ] })
1640
1642
  ] }),
1641
- /* @__PURE__ */ t.jsxs("div", { className: T.info, children: [
1643
+ /* @__PURE__ */ t.jsxs("div", { className: B.info, children: [
1642
1644
  /* @__PURE__ */ t.jsx("span", { children: "Price" }),
1643
- /* @__PURE__ */ t.jsx("div", { className: T.infoRight, children: r === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: T.price, children: [
1644
- /* @__PURE__ */ t.jsx("span", { className: V(T.newPrice, { [T.animate]: _ }), children: tt({
1645
+ /* @__PURE__ */ t.jsx("div", { className: B.infoRight, children: r === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: B.price, children: [
1646
+ /* @__PURE__ */ t.jsx("span", { className: V(B.newPrice, { [B.animate]: _ }), children: tt({
1645
1647
  amount: e.price.amount * x,
1646
1648
  currency: e.price.currency
1647
1649
  }) }),
1648
- /* @__PURE__ */ t.jsx("span", { className: T.oldPrice, children: tt({
1650
+ /* @__PURE__ */ t.jsx("span", { className: B.oldPrice, children: tt({
1649
1651
  amount: e.compareAtPrice.amount * x,
1650
1652
  currency: e.compareAtPrice.currency
1651
1653
  }) })
1652
- ] }) : /* @__PURE__ */ t.jsx("span", { className: V(T.newPrice, { [T.animate]: _ }), children: tt({
1654
+ ] }) : /* @__PURE__ */ t.jsx("span", { className: V(B.newPrice, { [B.animate]: _ }), children: tt({
1653
1655
  amount: e.price.amount * x,
1654
1656
  currency: e.price.currency
1655
- }) }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: T.price, children: [
1656
- /* @__PURE__ */ t.jsx("span", { className: V(T.newPrice, { [T.animate]: _ }), children: tt({
1657
+ }) }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: B.price, children: [
1658
+ /* @__PURE__ */ t.jsx("span", { className: V(B.newPrice, { [B.animate]: _ }), children: tt({
1657
1659
  amount: e.subscriptionSettings.price.amount * x,
1658
1660
  currency: e.subscriptionSettings.price.currency
1659
1661
  }) }),
1660
- /* @__PURE__ */ t.jsx("span", { className: T.oldPrice, children: tt({
1662
+ /* @__PURE__ */ t.jsx("span", { className: B.oldPrice, children: tt({
1661
1663
  amount: e.subscriptionSettings.compareAtPrice.amount * x,
1662
1664
  currency: e.subscriptionSettings.compareAtPrice.currency
1663
1665
  }) })
1664
- ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsx("span", { className: V(T.newPrice, { [T.animate]: _ }), children: tt({
1666
+ ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsx("span", { className: V(B.newPrice, { [B.animate]: _ }), children: tt({
1665
1667
  amount: e.subscriptionSettings.price.amount * x,
1666
1668
  currency: e.subscriptionSettings.price.currency
1667
1669
  }) }) })
1668
1670
  ] })
1669
1671
  ] }),
1670
- /* @__PURE__ */ t.jsxs("div", { className: T.buttons, children: [
1672
+ /* @__PURE__ */ t.jsxs("div", { className: B.buttons, children: [
1671
1673
  /* @__PURE__ */ t.jsx(
1672
1674
  R,
1673
1675
  {
@@ -1684,7 +1686,7 @@ const es = (d) => {
1684
1686
  onClick: () => N(),
1685
1687
  disabled: e.quantity && e.quantity.available === 0,
1686
1688
  children: o.parts.some(
1687
- (m) => m.productId === i.id && m.productVariantId === e.id
1689
+ (m) => m.productId === n.id && m.productVariantId === e.id
1688
1690
  ) ? "Add More" : "Add to Cart"
1689
1691
  }
1690
1692
  )
@@ -1724,43 +1726,41 @@ const es = (d) => {
1724
1726
  pagesMobileModalHeader: Bs,
1725
1727
  pagesMobileModalFooter: qs
1726
1728
  }, Rn = (d) => {
1727
- const { shopping: i, signUp: a, isShowUserInfo: s = !0 } = d;
1729
+ const { shopping: n, signUp: a, isShowUserInfo: s = !0 } = d;
1728
1730
  return /* @__PURE__ */ t.jsxs("div", { className: P.buttons, children: [
1729
- i && /* @__PURE__ */ t.jsx($s, {}),
1731
+ n && /* @__PURE__ */ t.jsx($s, {}),
1730
1732
  s && /* @__PURE__ */ t.jsx(qt, { signUp: a })
1731
1733
  ] });
1732
1734
  }, $s = () => {
1733
- const [d, i] = g.useState(!1), [a, s] = g.useState([]), [e, l] = g.useState(!1), { cart: r, products: h } = ot();
1735
+ const [d, n] = g.useState(!1), [a, s] = g.useState([]), [e, l] = g.useState(!1), { cart: r, products: h } = ot();
1734
1736
  function f(c) {
1735
1737
  if (c.variants.length > 0) {
1736
1738
  for (let o = 0; o < r.parts.length; o++)
1737
- for (let n = 0; n < c.variants.length; n++)
1738
- if (c.variants[n] && r.parts[o].productVariantId === c.variants[n].id)
1739
+ for (let i = 0; i < c.variants.length; i++)
1740
+ if (c.variants[i] && r.parts[o].productVariantId === c.variants[i].id)
1739
1741
  return r.parts[o].productVariantId;
1740
1742
  }
1741
1743
  return c.variants[0].id;
1742
1744
  }
1743
1745
  function v(c) {
1744
1746
  for (let o = 0; o < r.parts.length; o++)
1745
- for (let n = 0; n < c.variants.length; n++)
1746
- if (c.variants[n] && r.parts[o].productVariantId === c.variants[n].id)
1747
+ for (let i = 0; i < c.variants.length; i++)
1748
+ if (c.variants[i] && r.parts[o].productVariantId === c.variants[i].id)
1747
1749
  return r.parts[o].quantity;
1748
1750
  }
1749
1751
  g.useEffect(() => {
1750
1752
  (async () => {
1751
- const o = r.parts.map((_) => String(_.productId)), n = h.filter((_) => o.includes(String(_.id))) || [];
1752
- console.log(h, "products"), console.log(o), console.log(n, "productsBuffer");
1753
- const q = n.map((_) => ({
1753
+ const o = r.parts.map((_) => String(_.productId)), T = (h.filter((_) => o.includes(String(_.id))) || []).map((_) => ({
1754
1754
  ..._,
1755
1755
  activeVariantId: f(_),
1756
1756
  quantity: v(_)
1757
1757
  }));
1758
- s(q);
1758
+ s(T);
1759
1759
  })();
1760
1760
  }, [r.parts]);
1761
1761
  function M(c) {
1762
1762
  var o;
1763
- return !c || !(c != null && c.variants) ? !1 : (o = c.variants.find((n) => n.id === c.activeVariantId)) == null ? void 0 : o.subscriptionSettings;
1763
+ return !c || !(c != null && c.variants) ? !1 : (o = c.variants.find((i) => i.id === c.activeVariantId)) == null ? void 0 : o.subscriptionSettings;
1764
1764
  }
1765
1765
  const x = r.parts.length > 0 && a.length > 0 && !M(a[0]);
1766
1766
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -1773,7 +1773,7 @@ const es = (d) => {
1773
1773
  position: "relative"
1774
1774
  },
1775
1775
  onClick: (c) => {
1776
- c.stopPropagation(), window.location.pathname.includes("/admin/builder") || (i(!0), l(!0));
1776
+ c.stopPropagation(), window.location.pathname.includes("/admin/builder") || (n(!0), l(!0));
1777
1777
  },
1778
1778
  children: [
1779
1779
  /* @__PURE__ */ t.jsx(
@@ -1791,7 +1791,7 @@ const es = (d) => {
1791
1791
  {
1792
1792
  close: () => {
1793
1793
  l(!1), setTimeout(() => {
1794
- i(!1);
1794
+ n(!1);
1795
1795
  }, 300);
1796
1796
  },
1797
1797
  withAnimation: !1,
@@ -1808,31 +1808,31 @@ const es = (d) => {
1808
1808
  ] });
1809
1809
  }, Os = (d) => {
1810
1810
  var c, o;
1811
- const { activeProducts: i, isCartNotEmpty: a, isOpen: s } = d, { cart: e, reset: l, getTotalAndDiscount: r, updateQuantityOfProduct: h } = ot(), f = yt();
1812
- function v(n) {
1813
- f(n);
1811
+ const { activeProducts: n, isCartNotEmpty: a, isOpen: s } = d, { cart: e, reset: l, getTotalAndDiscount: r, updateQuantityOfProduct: h } = ot(), f = yt();
1812
+ function v(i, T) {
1813
+ f(i, { replace: T });
1814
1814
  }
1815
- function M(n) {
1816
- n.quantity && h({
1817
- productId: n.id,
1818
- productVariantId: n.activeVariantId,
1819
- quantity: n.quantity + 1
1815
+ function M(i) {
1816
+ i.quantity && h({
1817
+ productId: i.id,
1818
+ productVariantId: i.activeVariantId,
1819
+ quantity: i.quantity + 1
1820
1820
  });
1821
1821
  }
1822
- function x(n) {
1823
- n.quantity && h({
1824
- productId: n.id,
1825
- productVariantId: n.activeVariantId,
1826
- quantity: n.quantity - 1
1822
+ function x(i) {
1823
+ i.quantity && h({
1824
+ productId: i.id,
1825
+ productVariantId: i.activeVariantId,
1826
+ quantity: i.quantity - 1
1827
1827
  });
1828
1828
  }
1829
- return console.log(i), /* @__PURE__ */ t.jsxs(
1829
+ return /* @__PURE__ */ t.jsxs(
1830
1830
  "div",
1831
1831
  {
1832
1832
  className: V(P.modal, {
1833
1833
  [P.closing]: !s
1834
1834
  }),
1835
- onClick: (n) => n.stopPropagation(),
1835
+ onClick: (i) => i.stopPropagation(),
1836
1836
  children: [
1837
1837
  /* @__PURE__ */ t.jsxs("div", { className: P.top, children: [
1838
1838
  /* @__PURE__ */ t.jsxs("div", { className: P.info, children: [
@@ -1852,16 +1852,16 @@ const es = (d) => {
1852
1852
  )
1853
1853
  ] }),
1854
1854
  a ? /* @__PURE__ */ t.jsxs("div", { className: P.cart, children: [
1855
- /* @__PURE__ */ t.jsx("div", { className: P.products, children: [...new Map(i.map((n) => [n.id, n])).values()].map((n) => /* @__PURE__ */ t.jsxs(
1855
+ /* @__PURE__ */ t.jsx("div", { className: P.products, children: [...new Map(n.map((i) => [i.id, i])).values()].map((i) => /* @__PURE__ */ t.jsxs(
1856
1856
  "div",
1857
1857
  {
1858
1858
  className: P.product,
1859
1859
  children: [
1860
1860
  /* @__PURE__ */ t.jsxs("div", { className: P.productInfo, children: [
1861
- n.images.length > 0 ? /* @__PURE__ */ t.jsx(
1861
+ i.images.length > 0 ? /* @__PURE__ */ t.jsx(
1862
1862
  "img",
1863
1863
  {
1864
- src: `https://imagedelivery.net/${n.images[0].cfId}/w=500`,
1864
+ src: `https://imagedelivery.net/${i.images[0].cfId}/w=500`,
1865
1865
  alt: "image",
1866
1866
  width: "100%",
1867
1867
  height: "100%",
@@ -1875,13 +1875,13 @@ const es = (d) => {
1875
1875
  }
1876
1876
  ) }),
1877
1877
  /* @__PURE__ */ t.jsxs("div", { className: P.content, children: [
1878
- /* @__PURE__ */ t.jsx("div", { className: P.name, children: at(n.name) }),
1878
+ /* @__PURE__ */ t.jsx("div", { className: P.name, children: at(i.name) }),
1879
1879
  /* @__PURE__ */ t.jsx("div", { className: P.price, children: tt({
1880
- amount: n.variants.find(
1881
- (q) => q.id === n.activeVariantId
1882
- ).price.amount * ((n == null ? void 0 : n.quantity) || 1),
1883
- currency: n.variants.find(
1884
- (q) => q.id === n.activeVariantId
1880
+ amount: i.variants.find(
1881
+ (T) => T.id === i.activeVariantId
1882
+ ).price.amount * ((i == null ? void 0 : i.quantity) || 1),
1883
+ currency: i.variants.find(
1884
+ (T) => T.id === i.activeVariantId
1885
1885
  ).price.currency
1886
1886
  }) })
1887
1887
  ] })
@@ -1892,10 +1892,10 @@ const es = (d) => {
1892
1892
  {
1893
1893
  type: "Secondary",
1894
1894
  onClick: () => {
1895
- n.quantity !== 1 && x(n);
1895
+ i.quantity !== 1 && x(i);
1896
1896
  },
1897
1897
  className: P.productButton,
1898
- disabled: n.quantity === 1,
1898
+ disabled: i.quantity === 1,
1899
1899
  children: /* @__PURE__ */ t.jsx(
1900
1900
  b,
1901
1901
  {
@@ -1907,14 +1907,14 @@ const es = (d) => {
1907
1907
  )
1908
1908
  }
1909
1909
  ),
1910
- /* @__PURE__ */ t.jsx("div", { className: P.productCount, children: n.quantity }),
1910
+ /* @__PURE__ */ t.jsx("div", { className: P.productCount, children: i.quantity }),
1911
1911
  /* @__PURE__ */ t.jsx(
1912
1912
  R,
1913
1913
  {
1914
1914
  type: "Secondary",
1915
- onClick: () => M(n),
1915
+ onClick: () => M(i),
1916
1916
  className: P.productButton,
1917
- disabled: n.quantity === n.variants.find((q) => q.id === n.activeVariantId).quantity.available,
1917
+ disabled: i.quantity === i.variants.find((T) => T.id === i.activeVariantId).quantity.available,
1918
1918
  children: /* @__PURE__ */ t.jsx(
1919
1919
  b,
1920
1920
  {
@@ -1929,7 +1929,7 @@ const es = (d) => {
1929
1929
  ] })
1930
1930
  ]
1931
1931
  },
1932
- n.id
1932
+ i.id
1933
1933
  )) }),
1934
1934
  /* @__PURE__ */ t.jsxs("div", { className: P.bottom, children: [
1935
1935
  /* @__PURE__ */ t.jsxs("div", { className: P.subtotal, children: [
@@ -1947,10 +1947,10 @@ const es = (d) => {
1947
1947
  ] }),
1948
1948
  /* @__PURE__ */ t.jsx("div", { className: P.total, children: tt({
1949
1949
  amount: r().total,
1950
- currency: e.parts.length > 0 && ((o = (c = i.find((n) => n.id === e.parts[0].productId)) == null ? void 0 : c.variants.find((n) => n.id === e.parts[0].productVariantId)) == null ? void 0 : o.price.currency) || "USD"
1950
+ currency: e.parts.length > 0 && ((o = (c = n.find((i) => i.id === e.parts[0].productId)) == null ? void 0 : c.variants.find((i) => i.id === e.parts[0].productVariantId)) == null ? void 0 : o.price.currency) || "USD"
1951
1951
  }) })
1952
1952
  ] }),
1953
- /* @__PURE__ */ t.jsx(R, { onClick: () => v("/checkout"), children: "Checkout" })
1953
+ /* @__PURE__ */ t.jsx(R, { onClick: () => v("/checkout", !0), children: "Checkout" })
1954
1954
  ] })
1955
1955
  ] }) : /* @__PURE__ */ t.jsx(As, {})
1956
1956
  ]
@@ -1977,7 +1977,7 @@ const es = (d) => {
1977
1977
  }
1978
1978
  )
1979
1979
  ] })
1980
- ] }), qt = ({ signUp: d, close: i }) => {
1980
+ ] }), qt = ({ signUp: d, close: n }) => {
1981
1981
  const { token: a } = Rt(), s = yt(), [e, l] = g.useState("test-email@gmail.com");
1982
1982
  g.useEffect(() => {
1983
1983
  a && (async () => {
@@ -1994,7 +1994,7 @@ const es = (d) => {
1994
1994
  {
1995
1995
  className: P.userInfo,
1996
1996
  onClick: () => {
1997
- r("/customer-dash"), i == null || i();
1997
+ r("/customer-dash"), n == null || n();
1998
1998
  },
1999
1999
  children: /* @__PURE__ */ t.jsx("div", { children: e || "test-email@gmail.com" })
2000
2000
  }
@@ -2003,7 +2003,7 @@ const es = (d) => {
2003
2003
  R,
2004
2004
  {
2005
2005
  onClick: () => {
2006
- r("/customer-dash"), i == null || i();
2006
+ r("/customer-dash"), n == null || n();
2007
2007
  },
2008
2008
  type: "Secondary",
2009
2009
  style: {
@@ -2016,7 +2016,7 @@ const es = (d) => {
2016
2016
  R,
2017
2017
  {
2018
2018
  onClick: () => {
2019
- r("/customer-dash"), i == null || i();
2019
+ r("/customer-dash"), n == null || n();
2020
2020
  },
2021
2021
  type: "Primary",
2022
2022
  style: {
@@ -2029,7 +2029,7 @@ const es = (d) => {
2029
2029
  ] });
2030
2030
  }, Es = ({
2031
2031
  children: d,
2032
- logo: i,
2032
+ logo: n,
2033
2033
  setIsOpen: a,
2034
2034
  signUp: s
2035
2035
  }) => {
@@ -2045,7 +2045,7 @@ const es = (d) => {
2045
2045
  onClick: (r) => r.stopPropagation(),
2046
2046
  children: [
2047
2047
  /* @__PURE__ */ t.jsxs("div", { className: P.pagesMobileModalHeader, children: [
2048
- /* @__PURE__ */ t.jsx("div", { children: i }),
2048
+ /* @__PURE__ */ t.jsx("div", { children: n }),
2049
2049
  /* @__PURE__ */ t.jsx(
2050
2050
  R,
2051
2051
  {
@@ -2068,7 +2068,7 @@ const es = (d) => {
2068
2068
  );
2069
2069
  }, Ln = ({
2070
2070
  children: d,
2071
- logo: i,
2071
+ logo: n,
2072
2072
  signUp: a
2073
2073
  }) => {
2074
2074
  const [s, e] = g.useState(!1);
@@ -2082,7 +2082,7 @@ const es = (d) => {
2082
2082
  children: /* @__PURE__ */ t.jsx(
2083
2083
  Es,
2084
2084
  {
2085
- logo: i,
2085
+ logo: n,
2086
2086
  setIsOpen: e,
2087
2087
  signUp: a,
2088
2088
  children: d
@@ -2092,7 +2092,7 @@ const es = (d) => {
2092
2092
  )
2093
2093
  ] });
2094
2094
  }, Ds = (d) => {
2095
- const { setIsOpenModal: i } = d;
2095
+ const { setIsOpenModal: n } = d;
2096
2096
  return /* @__PURE__ */ t.jsx(
2097
2097
  R,
2098
2098
  {
@@ -2101,7 +2101,7 @@ const es = (d) => {
2101
2101
  padding: 10
2102
2102
  },
2103
2103
  onClick: (a) => {
2104
- a.stopPropagation(), window.location.pathname.includes("/admin/builder") || i(!0);
2104
+ a.stopPropagation(), window.location.pathname.includes("/admin/builder") || n(!0);
2105
2105
  },
2106
2106
  children: /* @__PURE__ */ t.jsx(b, { name: "List" })
2107
2107
  }
@@ -2116,7 +2116,7 @@ const es = (d) => {
2116
2116
  copyTextMobile: Fs,
2117
2117
  copyTextMiniMobile: Ys
2118
2118
  }, Un = ({ title: d = "Copy Product Link" }) => {
2119
- const { isOpenModal: i, setIsOpenModal: a } = Tt();
2119
+ const { isOpenModal: n, setIsOpenModal: a } = Tt();
2120
2120
  function s() {
2121
2121
  a(!0);
2122
2122
  }
@@ -2139,10 +2139,10 @@ const es = (d) => {
2139
2139
  )
2140
2140
  }
2141
2141
  ),
2142
- i && /* @__PURE__ */ t.jsx(ut, { close: a, children: /* @__PURE__ */ t.jsx(Gs, { title: d }) })
2142
+ n && /* @__PURE__ */ t.jsx(ut, { close: a, children: /* @__PURE__ */ t.jsx(Ws, { title: d }) })
2143
2143
  ] });
2144
- }, Gs = ({ title: d = "Copy Product Link" }) => {
2145
- const { setIsOpenModal: i } = Tt(), { notifications: a, setNotifications: s } = St(), { setIsOpen: e } = ct(), l = window.location.href;
2144
+ }, Ws = ({ title: d = "Copy Product Link" }) => {
2145
+ const { setIsOpenModal: n } = Tt(), { notifications: a, setNotifications: s } = St(), { setIsOpen: e } = ct(), l = window.location.href;
2146
2146
  function r() {
2147
2147
  navigator.clipboard.writeText(l), s([
2148
2148
  ...a,
@@ -2155,7 +2155,7 @@ const es = (d) => {
2155
2155
  }
2156
2156
  function h() {
2157
2157
  e(!1), setTimeout(() => {
2158
- i(!1), e(!0);
2158
+ n(!1), e(!0);
2159
2159
  }, 300);
2160
2160
  }
2161
2161
  function f(v, M) {
@@ -2209,13 +2209,13 @@ const es = (d) => {
2209
2209
  ]
2210
2210
  }
2211
2211
  );
2212
- }, Ws = "_accordion_1s1lq_1", Xs = "_header_1s1lq_9", Qs = "_icon_1s1lq_18", Js = "_open_1s1lq_21", Ks = "_content_1s1lq_25", rt = {
2213
- accordion: Ws,
2212
+ }, Gs = "_accordion_1to77_1", Xs = "_header_1to77_9", Qs = "_icon_1to77_18", Js = "_open_1to77_21", Ks = "_content_1to77_25", rt = {
2213
+ accordion: Gs,
2214
2214
  header: Xs,
2215
2215
  icon: Qs,
2216
2216
  open: Js,
2217
2217
  content: Ks
2218
- }, zn = ({ title: d, content: i, defaultOpen: a = !1 }) => {
2218
+ }, zn = ({ title: d, content: n, defaultOpen: a = !1 }) => {
2219
2219
  const [s, e] = g.useState(a), [l, r] = g.useState(0), h = g.useRef(null), f = () => {
2220
2220
  e(!s);
2221
2221
  };
@@ -2239,11 +2239,11 @@ const es = (d) => {
2239
2239
  ref: h,
2240
2240
  className: rt.content,
2241
2241
  style: { height: `${l}px` },
2242
- children: /* @__PURE__ */ t.jsx("p", { id: "p", children: i })
2242
+ children: /* @__PURE__ */ t.jsx("p", { id: "p", children: n })
2243
2243
  }
2244
2244
  )
2245
2245
  ] });
2246
- }, Zs = ({ children: d, path: i, className: a, target: s = "_self", id: e }) => {
2246
+ }, Zs = ({ children: d, path: n, className: a, target: s = "_self", id: e }) => {
2247
2247
  if (window.location.pathname.includes("/admin/builder"))
2248
2248
  return /* @__PURE__ */ t.jsx(
2249
2249
  "div",
@@ -2255,8 +2255,8 @@ const es = (d) => {
2255
2255
  children: d
2256
2256
  }
2257
2257
  );
2258
- const l = yt(), r = /^https?:\/\//.test(i), h = (f) => {
2259
- r || s === "_blank" ? s === "_blank" ? window.open(i, "_blank") : window.open(i, "_self") : (f.preventDefault(), l(i));
2258
+ const l = yt(), r = /^https?:\/\//.test(n), h = (f) => {
2259
+ r || s === "_blank" ? s === "_blank" ? window.open(n, "_blank") : window.open(n, "_self") : (f.preventDefault(), l(n, { replace: !1 }));
2260
2260
  };
2261
2261
  return /* @__PURE__ */ t.jsx(
2262
2262
  "div",
@@ -2273,7 +2273,7 @@ const es = (d) => {
2273
2273
  buttonsBlock: tn
2274
2274
  }, Vn = (d) => {
2275
2275
  var v, M;
2276
- const { setIsOpen: i, setModalType: a, productId: s } = d, { cart: e } = ot(), { pageContext: l } = bt(), r = (v = l == null ? void 0 : l.listings) == null ? void 0 : v.find((x) => x.id === s);
2276
+ const { setIsOpen: n, setModalType: a, productId: s } = d, { cart: e } = ot(), { pageContext: l } = bt(), r = (v = l == null ? void 0 : l.listings) == null ? void 0 : v.find((x) => x.id === s);
2277
2277
  if (!r)
2278
2278
  return null;
2279
2279
  const h = (M = l == null ? void 0 : l.products) == null ? void 0 : M.find(
@@ -2296,7 +2296,7 @@ const es = (d) => {
2296
2296
  width: "100%"
2297
2297
  },
2298
2298
  onClick: () => {
2299
- a("Add To Cart"), i(!0);
2299
+ a("Add To Cart"), n(!0);
2300
2300
  },
2301
2301
  children: f ? "Add More" : "Add To Cart"
2302
2302
  }
@@ -2306,7 +2306,7 @@ const es = (d) => {
2306
2306
  {
2307
2307
  type: "Primary",
2308
2308
  onClick: () => {
2309
- a("Buy Now"), i(!0);
2309
+ a("Buy Now"), n(!0);
2310
2310
  },
2311
2311
  children: "Buy"
2312
2312
  }
@@ -2319,8 +2319,8 @@ const es = (d) => {
2319
2319
  logo: nn,
2320
2320
  info: an
2321
2321
  }, Hn = ({ date: d }) => {
2322
- const { general: i } = Ut();
2323
- if (!i) return /* @__PURE__ */ t.jsx(t.Fragment, {});
2322
+ const { general: n } = Ut();
2323
+ if (!n) return /* @__PURE__ */ t.jsx(t.Fragment, {});
2324
2324
  function a(s) {
2325
2325
  const e = new Date(s), l = {
2326
2326
  month: "short",
@@ -2333,10 +2333,10 @@ const es = (d) => {
2333
2333
  return e.toLocaleDateString("en-US", l);
2334
2334
  }
2335
2335
  return /* @__PURE__ */ t.jsxs("div", { className: Nt.wrapper, children: [
2336
- /* @__PURE__ */ t.jsx("div", { className: Nt.logo, children: i.info.logo ? /* @__PURE__ */ t.jsx(
2336
+ /* @__PURE__ */ t.jsx("div", { className: Nt.logo, children: n.info.logo ? /* @__PURE__ */ t.jsx(
2337
2337
  "img",
2338
2338
  {
2339
- src: `https://imagedelivery.net/${i.info.logo.cfId}/w=500,h=500`,
2339
+ src: `https://imagedelivery.net/${n.info.logo.cfId}/w=500,h=500`,
2340
2340
  alt: "image",
2341
2341
  style: { objectFit: "contain", width: "48px", height: "48px" }
2342
2342
  }
@@ -2349,7 +2349,7 @@ const es = (d) => {
2349
2349
  }
2350
2350
  ) }),
2351
2351
  /* @__PURE__ */ t.jsxs("div", { className: Nt.info, children: [
2352
- /* @__PURE__ */ t.jsx("h3", { id: "h4", children: i.info.name }),
2352
+ /* @__PURE__ */ t.jsx("h3", { id: "h4", children: n.info.name }),
2353
2353
  /* @__PURE__ */ t.jsx("p", { id: "p", children: a(d) })
2354
2354
  ] })
2355
2355
  ] });
@@ -2368,18 +2368,18 @@ const es = (d) => {
2368
2368
  loading: xn
2369
2369
  }, Fn = (d) => {
2370
2370
  var c;
2371
- const { pageContext: i } = bt(), a = (c = i == null ? void 0 : i.listings) == null ? void 0 : c.find((o) => o.id === d.productId), [s, e] = g.useState(!0), [l, r] = g.useState(null), h = (l == null ? void 0 : l.variants[0]) || null, [f, v] = g.useState(
2371
+ const { pageContext: n } = bt(), a = (c = n == null ? void 0 : n.listings) == null ? void 0 : c.find((o) => o.id === d.productId), [s, e] = g.useState(!0), [l, r] = g.useState(null), h = (l == null ? void 0 : l.variants[0]) || null, [f, v] = g.useState(
2372
2372
  h != null && h.chargeTypes && h.chargeTypes.length > 1 ? h.chargeTypes[0] : "ONE_TIME"
2373
2373
  ), { addProducts: M } = ot(), { setIsOpen: x } = ct();
2374
2374
  return g.useEffect(() => {
2375
2375
  (async () => {
2376
2376
  e(!0);
2377
- const n = await zt(
2377
+ const i = await zt(
2378
2378
  encodeURIComponent(
2379
2379
  `/product/${a.productData.uniquePath}`
2380
2380
  )
2381
2381
  );
2382
- M(n == null ? void 0 : n.data.products), r(n == null ? void 0 : n.data.products[0]), e(!1);
2382
+ M(i == null ? void 0 : i.data.products), r(i == null ? void 0 : i.data.products[0]), e(!1);
2383
2383
  })();
2384
2384
  }, []), g.useEffect(() => {
2385
2385
  x(!0);
@@ -2412,8 +2412,8 @@ const es = (d) => {
2412
2412
  }
2413
2413
  ) });
2414
2414
  }, _n = (d) => {
2415
- const { variants: i, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId: l, setIsOpen: r } = d, { cart: h, addProductToCart: f, addProducts: v, updateQuantityOfProduct: M } = ot(), { notifications: x, setNotifications: c } = St(), { pageContext: o } = bt(), { setIsOpen: n } = ct(), q = () => {
2416
- n(!1), setTimeout(() => {
2415
+ const { variants: n, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId: l, setIsOpen: r } = d, { cart: h, addProductToCart: f, addProducts: v, updateQuantityOfProduct: M } = ot(), { notifications: x, setNotifications: c } = St(), { pageContext: o } = bt(), { setIsOpen: i } = ct(), T = () => {
2416
+ i(!1), setTimeout(() => {
2417
2417
  r(!1);
2418
2418
  }, 300);
2419
2419
  };
@@ -2428,7 +2428,7 @@ const es = (d) => {
2428
2428
  quantity: N.quantity + 1
2429
2429
  });
2430
2430
  else {
2431
- o != null && o.products && (console.log("pageContext.products in product card modal", o.products), v(o.products));
2431
+ o != null && o.products && v(o.products);
2432
2432
  try {
2433
2433
  f({
2434
2434
  productId: l,
@@ -2465,7 +2465,7 @@ const es = (d) => {
2465
2465
  height: 24,
2466
2466
  fill: "var(--text-secondary)",
2467
2467
  hoverable: !0,
2468
- onClick: q
2468
+ onClick: T
2469
2469
  }
2470
2470
  )
2471
2471
  ] }),
@@ -2480,7 +2480,7 @@ const es = (d) => {
2480
2480
  },
2481
2481
  j
2482
2482
  )) }),
2483
- /* @__PURE__ */ t.jsx("div", { className: Q.variants, children: i.map((j) => {
2483
+ /* @__PURE__ */ t.jsx("div", { className: Q.variants, children: n.map((j) => {
2484
2484
  var N, k, D;
2485
2485
  return /* @__PURE__ */ t.jsxs(
2486
2486
  "div",
@@ -2509,7 +2509,7 @@ const es = (d) => {
2509
2509
  }) })
2510
2510
  ] });
2511
2511
  }, jn = (d) => {
2512
- const { product: i, setIsOpen: a } = d, { setIsOpen: s } = ct(), e = () => {
2512
+ const { product: n, setIsOpen: a } = d, { setIsOpen: s } = ct(), e = () => {
2513
2513
  s(!1), setTimeout(() => {
2514
2514
  a(!1);
2515
2515
  }, 300);
@@ -2518,7 +2518,7 @@ const es = (d) => {
2518
2518
  /* @__PURE__ */ t.jsxs("div", { className: Q.header, children: [
2519
2519
  /* @__PURE__ */ t.jsxs("div", { id: "h3", children: [
2520
2520
  "Buy ",
2521
- at(i.name)
2521
+ at(n.name)
2522
2522
  ] }),
2523
2523
  /* @__PURE__ */ t.jsx(
2524
2524
  b,
@@ -2539,12 +2539,12 @@ const es = (d) => {
2539
2539
  /* @__PURE__ */ t.jsx("div", { className: Q.productOptions, children: /* @__PURE__ */ t.jsx(
2540
2540
  es,
2541
2541
  {
2542
- product: i,
2542
+ product: n,
2543
2543
  setIsOpen: a
2544
2544
  }
2545
2545
  ) })
2546
2546
  ] });
2547
- }, vn = "_contentModal_2a136_1", bn = "_modalTop_2a136_13", yn = "_loading_2a136_19", In = "_modalCards_2a136_27", Nn = "_modalImage_2a136_32", Cn = "_card_2a136_37", Sn = "_cardInfo_2a136_48", kn = "_cardButtons_2a136_55", wn = "_title_2a136_61", Pn = "_blockImage_2a136_68", G = {
2547
+ }, vn = "_contentModal_2a136_1", bn = "_modalTop_2a136_13", yn = "_loading_2a136_19", In = "_modalCards_2a136_27", Nn = "_modalImage_2a136_32", Cn = "_card_2a136_37", Sn = "_cardInfo_2a136_48", kn = "_cardButtons_2a136_55", wn = "_title_2a136_61", Pn = "_blockImage_2a136_68", W = {
2548
2548
  contentModal: vn,
2549
2549
  modalTop: bn,
2550
2550
  loading: yn,
@@ -2556,12 +2556,12 @@ const es = (d) => {
2556
2556
  title: wn,
2557
2557
  blockImage: Pn
2558
2558
  }, Yn = (d) => {
2559
- const { setIsOpen: i, pageContext: a, groupData: s, setProductId: e, setIsProductModalOpen: l } = d, [r, h] = g.useState(null), [f, v] = g.useState(!0), { setIsOpen: M } = ct();
2559
+ const { setIsOpen: n, pageContext: a, groupData: s, setProductId: e, setIsProductModalOpen: l } = d, [r, h] = g.useState(null), [f, v] = g.useState(!0), { setIsOpen: M } = ct();
2560
2560
  g.useEffect(() => {
2561
- var n;
2561
+ var i;
2562
2562
  v(!0);
2563
- const o = (n = a.listings) == null ? void 0 : n.filter(
2564
- (q) => s.listingIdList.includes(q.id)
2563
+ const o = (i = a.listings) == null ? void 0 : i.filter(
2564
+ (T) => s.listingIdList.includes(T.id)
2565
2565
  );
2566
2566
  o && h([...o]), v(!1);
2567
2567
  }, [a]), g.useEffect(() => {
@@ -2569,23 +2569,23 @@ const es = (d) => {
2569
2569
  }, []);
2570
2570
  const x = () => {
2571
2571
  M(!1), setTimeout(() => {
2572
- i(!1);
2572
+ n(!1);
2573
2573
  }, 300);
2574
2574
  };
2575
2575
  function c(o) {
2576
2576
  return o.productData.compareAtPrice ? o.productData.compareAtPrice.amount : 0;
2577
2577
  }
2578
- return /* @__PURE__ */ t.jsx(ut, { close: () => i(!1), children: /* @__PURE__ */ t.jsxs(
2578
+ return /* @__PURE__ */ t.jsx(ut, { close: () => n(!1), children: /* @__PURE__ */ t.jsxs(
2579
2579
  "div",
2580
2580
  {
2581
- className: G.contentModal,
2581
+ className: W.contentModal,
2582
2582
  onClick: (o) => o.stopPropagation(),
2583
2583
  children: [
2584
- /* @__PURE__ */ t.jsxs("div", { className: G.modalTop, children: [
2584
+ /* @__PURE__ */ t.jsxs("div", { className: W.modalTop, children: [
2585
2585
  /* @__PURE__ */ t.jsx(
2586
2586
  "span",
2587
2587
  {
2588
- className: G.title,
2588
+ className: W.title,
2589
2589
  id: "h4",
2590
2590
  children: at(s.name)
2591
2591
  }
@@ -2599,10 +2599,10 @@ const es = (d) => {
2599
2599
  }
2600
2600
  )
2601
2601
  ] }),
2602
- !f && r && /* @__PURE__ */ t.jsx("div", { className: G.modalCards, children: r.map((o) => /* @__PURE__ */ t.jsxs(
2602
+ !f && r && /* @__PURE__ */ t.jsx("div", { className: W.modalCards, children: r.map((o) => /* @__PURE__ */ t.jsxs(
2603
2603
  "div",
2604
2604
  {
2605
- className: G.card,
2605
+ className: W.card,
2606
2606
  children: [
2607
2607
  /* @__PURE__ */ t.jsx("div", { children: o.productData.images[0] ? /* @__PURE__ */ t.jsx(
2608
2608
  "img",
@@ -2611,14 +2611,14 @@ const es = (d) => {
2611
2611
  alt: "",
2612
2612
  width: 64,
2613
2613
  height: 64,
2614
- className: G.modalImage
2614
+ className: W.modalImage
2615
2615
  }
2616
- ) : /* @__PURE__ */ t.jsx("div", { className: V(G.blockImage, G.modalImage), children: /* @__PURE__ */ t.jsx(b, { name: "Image" }) }) }),
2617
- /* @__PURE__ */ t.jsxs("div", { className: G.cardInfo, children: [
2616
+ ) : /* @__PURE__ */ t.jsx("div", { className: V(W.blockImage, W.modalImage), children: /* @__PURE__ */ t.jsx(b, { name: "Image" }) }) }),
2617
+ /* @__PURE__ */ t.jsxs("div", { className: W.cardInfo, children: [
2618
2618
  /* @__PURE__ */ t.jsxs(
2619
2619
  "span",
2620
2620
  {
2621
- className: G.name,
2621
+ className: W.name,
2622
2622
  id: "h5",
2623
2623
  children: [
2624
2624
  at(o.productData.name),
@@ -2633,20 +2633,20 @@ const es = (d) => {
2633
2633
  o.productData.shortDescription && /* @__PURE__ */ t.jsx(
2634
2634
  "span",
2635
2635
  {
2636
- className: G.short,
2636
+ className: W.short,
2637
2637
  id: "md",
2638
2638
  children: at(o.productData.shortDescription)
2639
2639
  }
2640
2640
  ),
2641
2641
  /* @__PURE__ */ t.jsx("span", {})
2642
2642
  ] }),
2643
- /* @__PURE__ */ t.jsxs("div", { className: G.cardButtons, children: [
2643
+ /* @__PURE__ */ t.jsxs("div", { className: W.cardButtons, children: [
2644
2644
  /* @__PURE__ */ t.jsx(
2645
2645
  R,
2646
2646
  {
2647
2647
  type: "Secondary",
2648
2648
  onClick: () => {
2649
- e(o.id), i(!1), l(!0);
2649
+ e(o.id), n(!1), l(!0);
2650
2650
  },
2651
2651
  children: "Buy"
2652
2652
  }
@@ -2657,7 +2657,7 @@ const es = (d) => {
2657
2657
  },
2658
2658
  o.id
2659
2659
  )) }),
2660
- f && /* @__PURE__ */ t.jsx("div", { className: G.loading, children: /* @__PURE__ */ t.jsx(Bt, {}) })
2660
+ f && /* @__PURE__ */ t.jsx("div", { className: W.loading, children: /* @__PURE__ */ t.jsx(Bt, {}) })
2661
2661
  ]
2662
2662
  }
2663
2663
  ) });
@@ -2705,5 +2705,6 @@ export {
2705
2705
  ei as TextareaSettings,
2706
2706
  si as TextareaUI,
2707
2707
  ni as TypesText,
2708
- qt as UserInfo
2708
+ qt as UserInfo,
2709
+ ii as Wrapper
2709
2710
  };