@billgangcom/theme-lib 1.72.6 → 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { j as t, I as j, c as z, d as Nt, e as pt, g as mt, P as gt, S as lt, h as kt, D as ft, i as xt, v as _t, B as dt, k as ot, a as wt, l as Tt, O as ht, m as J, n as yt, C as jt, o as V, p as At, q as Dt, r as bt, t as Et, w as vt, x as W, L as Rt, y as Ct, z as St, A as ct, s as at, f as Q, E as Lt, F as R, G as Ut, M as ut, H as zt, J as rt, K as Mt, N as Ft, Q as Bt, T as Ht, U as $t, V as Vt } from "./index-CVvVQkzN.js";
2
- import { a1 as si, a5 as ni, $ as ii, Z as ai, a4 as oi, a3 as ci, Y as ri, _ as li, W as di, X as ui, a0 as hi, a2 as pi } from "./index-CVvVQkzN.js";
1
+ import { j as t, I as j, c as H, d as Nt, e as pt, g as mt, P as gt, S as lt, h as kt, D as ft, i as xt, v as _t, B as dt, k as ot, a as wt, l as Tt, O as ht, m as J, n as yt, C as jt, o as V, p as At, q as Dt, r as bt, t as Et, w as vt, x as W, L as Rt, y as Ct, z as St, A as ct, s as at, f as Q, E as Lt, F as R, G as Ut, M as ut, H as Ht, J as rt, K as Mt, N as zt, Q as Bt, T as Ft, U as $t, V as Vt } from "./index-CQeHFwIE.js";
2
+ import { a1 as si, a5 as ni, $ as ii, Z as ai, a4 as oi, a3 as ci, Y as ri, _ as li, W as di, X as ui, a0 as hi, a2 as pi } from "./index-CQeHFwIE.js";
3
3
  import g from "react";
4
4
  import "react-dom";
5
5
  const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23", Xt = "_alignmentContent_kh9z8_30", Qt = "_alignments_kh9z8_39", Jt = "_alignment_kh9z8_30", Kt = "_circle_kh9z8_64", Zt = "_paddings_kh9z8_71", te = "_padding_kh9z8_71", ee = "_active_kh9z8_97", G = {
@@ -28,7 +28,7 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
28
28
  alignment: a,
29
29
  padding: o,
30
30
  setPadding: s,
31
- setAlignment: c,
31
+ setAlignment: r,
32
32
  isAlignment: e = !0,
33
33
  isPadding: u = !0
34
34
  } = h;
@@ -62,7 +62,7 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
62
62
  return "AlignBottom";
63
63
  }
64
64
  }
65
- const [_, T] = g.useState(null), [I, r] = g.useState(null);
65
+ const [_, T] = g.useState(null), [I, c] = g.useState(null);
66
66
  return /* @__PURE__ */ t.jsxs("div", { className: G.layout, children: [
67
67
  /* @__PURE__ */ t.jsx("h3", { className: G.title, children: "Layout (for Desktop version)" }),
68
68
  /* @__PURE__ */ t.jsxs("div", { className: G.alignmentContent, children: [
@@ -72,7 +72,7 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
72
72
  "div",
73
73
  {
74
74
  onClick: () => {
75
- c(l);
75
+ r(l);
76
76
  },
77
77
  className: G.alignment,
78
78
  onMouseEnter: () => {
@@ -111,14 +111,14 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
111
111
  /* @__PURE__ */ t.jsx("div", { className: G.paddings, children: ne.map((l) => /* @__PURE__ */ t.jsxs(
112
112
  "label",
113
113
  {
114
- className: z(G.padding, {
114
+ className: H(G.padding, {
115
115
  [G.active]: I === l
116
116
  }),
117
117
  onFocus: () => {
118
- r(l);
118
+ c(l);
119
119
  },
120
120
  onBlur: () => {
121
- r(null);
121
+ c(null);
122
122
  },
123
123
  children: [
124
124
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -167,7 +167,7 @@ function ge({ id: h, children: a }) {
167
167
  const {
168
168
  attributes: o,
169
169
  listeners: s,
170
- setNodeRef: c,
170
+ setNodeRef: r,
171
171
  transform: e,
172
172
  transition: u,
173
173
  isDragging: d
@@ -180,7 +180,7 @@ function ge({ id: h, children: a }) {
180
180
  return /* @__PURE__ */ t.jsx(
181
181
  "div",
182
182
  {
183
- ref: c,
183
+ ref: r,
184
184
  style: f,
185
185
  className: `${X.product} ${d ? X.dragging : ""}`,
186
186
  ...o,
@@ -194,7 +194,7 @@ const Un = (h) => {
194
194
  isActiveItems: a,
195
195
  setIsActiveItems: o,
196
196
  items: s,
197
- setItems: c,
197
+ setItems: r,
198
198
  other: e,
199
199
  tags: u,
200
200
  title: d,
@@ -202,7 +202,7 @@ const Un = (h) => {
202
202
  draggable: _ = !1,
203
203
  withImage: T = !1,
204
204
  addable: I = !0,
205
- itemsOptions: r,
205
+ itemsOptions: c,
206
206
  hasRangeSelector: l = !1,
207
207
  rangeSelectorOptions: y,
208
208
  limit: x,
@@ -222,7 +222,7 @@ const Un = (h) => {
222
222
  const O = s.findIndex((C) => C === N.id), M = s.findIndex((C) => C === S.id);
223
223
  if (O !== -1 && M !== -1) {
224
224
  const C = [...s], [v] = C.splice(O, 1);
225
- C.splice(M, 0, v), c(C);
225
+ C.splice(M, 0, v), r(C);
226
226
  }
227
227
  }
228
228
  };
@@ -246,8 +246,8 @@ const Un = (h) => {
246
246
  }
247
247
  );
248
248
  }
249
- const F = (n, N = !1) => {
250
- const S = r.find((M) => M.id === n);
249
+ const z = (n, N = !1) => {
250
+ const S = c.find((M) => M.id === n);
251
251
  if (!S) return;
252
252
  const O = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
253
253
  _ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -263,14 +263,14 @@ const Un = (h) => {
263
263
  ot,
264
264
  {
265
265
  onChange: (M) => {
266
- const C = [...s], v = r.find((m) => m.name === M);
266
+ const C = [...s], v = c.find((m) => m.name === M);
267
267
  if (!v) return;
268
- const A = v.id, H = C.map((m) => m === n ? A : m);
269
- c([...H]);
268
+ const A = v.id, F = C.map((m) => m === n ? A : m);
269
+ r([...F]);
270
270
  },
271
271
  value: S.name,
272
- options: r.filter((M) => !s.find((C) => C === M.id)).map((M) => M.name),
273
- leftAddonOptions: r.map((M) => ({
272
+ options: c.filter((M) => !s.find((C) => C === M.id)).map((M) => M.name),
273
+ leftAddonOptions: c.map((M) => ({
274
274
  value: M.name,
275
275
  addon: K(M.images)
276
276
  }))
@@ -284,7 +284,7 @@ const Un = (h) => {
284
284
  width: 20,
285
285
  height: 20,
286
286
  fill: "#C12A2A",
287
- onClick: () => c(s.filter((M) => M !== n))
287
+ onClick: () => r(s.filter((M) => M !== n))
288
288
  }
289
289
  ) }) })
290
290
  ] });
@@ -328,11 +328,11 @@ const Un = (h) => {
328
328
  {
329
329
  items: s,
330
330
  strategy: _t,
331
- children: s.map((n) => F(n, i))
331
+ children: s.map((n) => z(n, i))
332
332
  }
333
333
  )
334
334
  }
335
- ) : s.map((n) => F(n, i)),
335
+ ) : s.map((n) => z(n, i)),
336
336
  I && /* @__PURE__ */ t.jsx(
337
337
  "div",
338
338
  {
@@ -346,22 +346,22 @@ const Un = (h) => {
346
346
  dt,
347
347
  {
348
348
  withoutHover: !0,
349
- className: z(X.button, {
350
- [X.disabled]: !!(x && x <= s.length || s.length === r.length)
349
+ className: H(X.button, {
350
+ [X.disabled]: !!(x && x <= s.length || s.length === c.length)
351
351
  }),
352
352
  size: "s",
353
- disabled: !!(x && x <= s.length || s.length === r.length),
353
+ disabled: !!(x && x <= s.length || s.length === c.length),
354
354
  onClick: () => {
355
355
  const n = [...s];
356
356
  let N = null;
357
- if (r) {
358
- for (let S = 0; S < r.length; S++)
359
- if (!s.find((O) => O === r[S].id)) {
360
- N = r[S];
357
+ if (c) {
358
+ for (let S = 0; S < c.length; S++)
359
+ if (!s.find((O) => O === c[S].id)) {
360
+ N = c[S];
361
361
  break;
362
362
  }
363
363
  }
364
- n.push((N == null ? void 0 : N.id) || r[0].id), c(n);
364
+ n.push((N == null ? void 0 : N.id) || c[0].id), r(n);
365
365
  },
366
366
  style: {
367
367
  width: "fit-content"
@@ -439,7 +439,7 @@ function Pe({ product: h, children: a }) {
439
439
  const {
440
440
  attributes: o,
441
441
  listeners: s,
442
- setNodeRef: c,
442
+ setNodeRef: r,
443
443
  transform: e,
444
444
  transition: u,
445
445
  isDragging: d
@@ -452,7 +452,7 @@ function Pe({ product: h, children: a }) {
452
452
  return /* @__PURE__ */ t.jsx(
453
453
  "div",
454
454
  {
455
- ref: c,
455
+ ref: r,
456
456
  style: f,
457
457
  className: `${Y.product} ${d ? Y.dragging : ""}`,
458
458
  ...o,
@@ -461,12 +461,12 @@ function Pe({ product: h, children: a }) {
461
461
  }
462
462
  );
463
463
  }
464
- const zn = (h) => {
464
+ const Hn = (h) => {
465
465
  const {
466
466
  isActiveItems: a,
467
467
  setIsActiveItems: o,
468
468
  items: s,
469
- setItems: c,
469
+ setItems: r,
470
470
  title: e,
471
471
  subtitle: u,
472
472
  editable: d = !0,
@@ -474,7 +474,7 @@ const zn = (h) => {
474
474
  deletable: _ = !0,
475
475
  addable: T = !0,
476
476
  itemsType: I,
477
- itemsOptions: r,
477
+ itemsOptions: c,
478
478
  addableOptions: l = {},
479
479
  limit: y
480
480
  } = h, [x, p] = g.useState(null), [i, b] = g.useState(null), w = g.useRef(null), q = pt(
@@ -487,7 +487,7 @@ const zn = (h) => {
487
487
  g.useEffect(() => {
488
488
  if (x) {
489
489
  const n = [...s].map((N) => N.id === x.id ? x : N);
490
- c(n);
490
+ r(n);
491
491
  }
492
492
  }, [x]), g.useEffect(() => {
493
493
  w.current && i && (w.current.getBoundingClientRect().height, i.top);
@@ -505,10 +505,10 @@ const zn = (h) => {
505
505
  const O = s.findIndex((C) => C.id === N.id), M = s.findIndex((C) => C.id === S.id);
506
506
  if (O !== -1 && M !== -1) {
507
507
  const C = [...s], [v] = C.splice(O, 1);
508
- C.splice(M, 0, v), c(C);
508
+ C.splice(M, 0, v), r(C);
509
509
  }
510
510
  }
511
- }, F = (n, N) => {
511
+ }, z = (n, N) => {
512
512
  const S = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
513
513
  f && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
514
514
  j,
@@ -519,11 +519,11 @@ const zn = (h) => {
519
519
  height: 20
520
520
  }
521
521
  ) }),
522
- I === "select" && r && /* @__PURE__ */ t.jsx(
522
+ I === "select" && c && /* @__PURE__ */ t.jsx(
523
523
  ot,
524
524
  {
525
525
  onChange: (O) => {
526
- const M = [...s], C = r.find((A) => A.name === O);
526
+ const M = [...s], C = c.find((A) => A.name === O);
527
527
  if (!C) return;
528
528
  const v = M.map((A) => A.id === n.id ? {
529
529
  ...C,
@@ -536,10 +536,10 @@ const zn = (h) => {
536
536
  name: {
537
537
  "en-US": O
538
538
  }
539
- }), c([...v]);
539
+ }), r([...v]);
540
540
  },
541
541
  value: n.name,
542
- options: r.filter((O) => !s.find((M) => M.name === O.name)).map((O) => O.name)
542
+ options: c.filter((O) => !s.find((M) => M.name === O.name)).map((O) => O.name)
543
543
  }
544
544
  ),
545
545
  /* @__PURE__ */ t.jsxs("div", { className: Y.buttons, children: [
@@ -561,7 +561,7 @@ const zn = (h) => {
561
561
  width: 20,
562
562
  height: 20,
563
563
  fill: "#C12A2A",
564
- onClick: () => c(s.filter((O) => O.id !== n.id))
564
+ onClick: () => r(s.filter((O) => O.id !== n.id))
565
565
  }
566
566
  ) })
567
567
  ] })
@@ -606,11 +606,11 @@ const zn = (h) => {
606
606
  {
607
607
  items: s.map((n) => n.id),
608
608
  strategy: _t,
609
- children: s.map((n, N) => F(n, N))
609
+ children: s.map((n, N) => z(n, N))
610
610
  }
611
611
  )
612
612
  }
613
- ) : s.map((n, N) => F(n, N)),
613
+ ) : s.map((n, N) => z(n, N)),
614
614
  T && /* @__PURE__ */ t.jsx(
615
615
  "div",
616
616
  {
@@ -623,26 +623,26 @@ const zn = (h) => {
623
623
  dt,
624
624
  {
625
625
  withoutHover: !0,
626
- className: z(Y.button, {
627
- [Y.disabled]: !!(y && y <= s.length || s.length === (r == null ? void 0 : r.length))
626
+ className: H(Y.button, {
627
+ [Y.disabled]: !!(y && y <= s.length || s.length === (c == null ? void 0 : c.length))
628
628
  }),
629
629
  size: "s",
630
- disabled: !!(y && y <= s.length || s.length === (r == null ? void 0 : r.length)),
630
+ disabled: !!(y && y <= s.length || s.length === (c == null ? void 0 : c.length)),
631
631
  onClick: () => {
632
632
  const n = [...s];
633
633
  let N = null;
634
- if (r) {
635
- for (let S = 0; S < r.length; S++)
636
- if (!s.find((O) => O.id === r[S].id)) {
637
- N = r[S];
634
+ if (c) {
635
+ for (let S = 0; S < c.length; S++)
636
+ if (!s.find((O) => O.id === c[S].id)) {
637
+ N = c[S];
638
638
  break;
639
639
  }
640
640
  }
641
- I === "select" && r && n.push({
642
- name: N ? N.name : r[0].name,
643
- id: (N == null ? void 0 : N.id) || r[0].id,
641
+ I === "select" && c && n.push({
642
+ name: N ? N.name : c[0].name,
643
+ id: (N == null ? void 0 : N.id) || c[0].id,
644
644
  ...l
645
- }), c(n);
645
+ }), r(n);
646
646
  },
647
647
  style: {
648
648
  width: "fit-content"
@@ -666,7 +666,7 @@ const zn = (h) => {
666
666
  ] });
667
667
  };
668
668
  function ke(h) {
669
- const { product: a, children: o } = h, { attributes: s, listeners: c, setNodeRef: e, transform: u, transition: d, isDragging: f } = yt({
669
+ const { product: a, children: o } = h, { attributes: s, listeners: r, setNodeRef: e, transform: u, transition: d, isDragging: f } = yt({
670
670
  id: a.id
671
671
  }), _ = {
672
672
  transform: jt.Transform.toString(u),
@@ -679,17 +679,17 @@ function ke(h) {
679
679
  style: _,
680
680
  className: `${V.product} ${f ? V.dragging : ""}`,
681
681
  ...s,
682
- ...c,
682
+ ...r,
683
683
  children: o
684
684
  }
685
685
  );
686
686
  }
687
- const Fn = (h) => {
687
+ const zn = (h) => {
688
688
  const {
689
689
  isActiveItems: a,
690
690
  setIsActiveItems: o,
691
691
  items: s,
692
- setItems: c,
692
+ setItems: r,
693
693
  other: e,
694
694
  title: u,
695
695
  subtitle: d,
@@ -697,7 +697,7 @@ const Fn = (h) => {
697
697
  draggable: _ = !1,
698
698
  deletable: T = !0,
699
699
  addable: I = !0,
700
- itemsType: r,
700
+ itemsType: c,
701
701
  itemsPlaceholder: l = "",
702
702
  itemsOptions: y,
703
703
  hasRangeSelector: x = !1,
@@ -705,7 +705,7 @@ const Fn = (h) => {
705
705
  modalOptions: i,
706
706
  addableOptions: b = {},
707
707
  limit: w
708
- } = h, [q, E] = g.useState(null), [K, F] = g.useState({
708
+ } = h, [q, E] = g.useState(null), [K, z] = g.useState({
709
709
  top: 0,
710
710
  left: 0
711
711
  }), [n, N] = g.useState(null), S = g.useRef(null), [O, M] = g.useState(!1), C = pt(
@@ -725,13 +725,13 @@ const Fn = (h) => {
725
725
  }, []), g.useEffect(() => {
726
726
  if (q) {
727
727
  const m = [...s].map(($) => $.id === q.id ? q : $);
728
- c(m);
728
+ r(m);
729
729
  }
730
730
  }, [q]), g.useEffect(() => {
731
731
  if (S.current && n) {
732
732
  const m = S.current.getBoundingClientRect().height, $ = window.innerHeight;
733
733
  let P = n.top;
734
- P + m > $ + window.scrollY - 200 && (P = $ + window.scrollY - m - 200), P < 0 && (P = 10), F({
734
+ P + m > $ + window.scrollY - 200 && (P = $ + window.scrollY - m - 200), P < 0 && (P = 10), z({
735
735
  top: P,
736
736
  left: n.left
737
737
  });
@@ -750,10 +750,10 @@ const Fn = (h) => {
750
750
  const D = s.findIndex((L) => L.id === $.id), et = s.findIndex((L) => L.id === P.id);
751
751
  if (D !== -1 && et !== -1) {
752
752
  const L = [...s], [tt] = L.splice(D, 1);
753
- L.splice(et, 0, tt), c(L);
753
+ L.splice(et, 0, tt), r(L);
754
754
  }
755
755
  }
756
- }, H = (m) => {
756
+ }, F = (m) => {
757
757
  var P;
758
758
  const $ = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
759
759
  _ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -765,7 +765,7 @@ const Fn = (h) => {
765
765
  height: 20
766
766
  }
767
767
  ) }),
768
- r === "select" && y && /* @__PURE__ */ t.jsx(
768
+ c === "select" && y && /* @__PURE__ */ t.jsx(
769
769
  ot,
770
770
  {
771
771
  onChange: (D) => {
@@ -780,7 +780,7 @@ const Fn = (h) => {
780
780
  name: {
781
781
  "en-US": D
782
782
  }
783
- }), c([...L]);
783
+ }), r([...L]);
784
784
  },
785
785
  value: m.name["en-US"],
786
786
  options: y.filter(
@@ -788,7 +788,7 @@ const Fn = (h) => {
788
788
  )
789
789
  }
790
790
  ),
791
- r === "input" && /* @__PURE__ */ t.jsx(
791
+ c === "input" && /* @__PURE__ */ t.jsx(
792
792
  Nt,
793
793
  {
794
794
  onChange: (D) => {
@@ -798,13 +798,13 @@ const Fn = (h) => {
798
798
  "en-US": D
799
799
  }
800
800
  } : tt);
801
- c([...L]);
801
+ r([...L]);
802
802
  },
803
803
  value: m.name["en-US"],
804
804
  placeholder: l
805
805
  }
806
806
  ),
807
- r === "image" && /* @__PURE__ */ t.jsx(
807
+ c === "image" && /* @__PURE__ */ t.jsx(
808
808
  Dt,
809
809
  {
810
810
  onChange: (D) => {
@@ -812,7 +812,7 @@ const Fn = (h) => {
812
812
  ...m,
813
813
  images: D
814
814
  } : tt);
815
- c([...L]);
815
+ r([...L]);
816
816
  },
817
817
  activeImage: (P = s.find((D) => D.id === m.id)) == null ? void 0 : P.images[0]
818
818
  }
@@ -836,7 +836,7 @@ const Fn = (h) => {
836
836
  width: 20,
837
837
  height: 20,
838
838
  fill: "#C12A2A",
839
- onClick: () => c(s.filter((D) => D.id !== m.id))
839
+ onClick: () => r(s.filter((D) => D.id !== m.id))
840
840
  }
841
841
  ) })
842
842
  ] })
@@ -892,11 +892,11 @@ const Fn = (h) => {
892
892
  {
893
893
  items: s.map((m) => m.id),
894
894
  strategy: _t,
895
- children: s.map((m) => H(m))
895
+ children: s.map((m) => F(m))
896
896
  }
897
897
  )
898
898
  }
899
- ) : s.map((m) => H(m)),
899
+ ) : s.map((m) => F(m)),
900
900
  I && /* @__PURE__ */ t.jsx(
901
901
  "div",
902
902
  {
@@ -909,7 +909,7 @@ const Fn = (h) => {
909
909
  dt,
910
910
  {
911
911
  withoutHover: !0,
912
- className: z(V.button, {
912
+ className: H(V.button, {
913
913
  [V.disabled]: !!(w && w <= s.length)
914
914
  }),
915
915
  size: "s",
@@ -924,7 +924,7 @@ const Fn = (h) => {
924
924
  break;
925
925
  }
926
926
  }
927
- r === "select" && y ? m.push({
927
+ c === "select" && y ? m.push({
928
928
  name: {
929
929
  "en-US": $ || y[0]
930
930
  },
@@ -932,7 +932,7 @@ const Fn = (h) => {
932
932
  ...b,
933
933
  maxSymbols: 100
934
934
  // пример значения
935
- }) : r === "input" ? m.push({
935
+ }) : c === "input" ? m.push({
936
936
  name: {
937
937
  "en-US": ""
938
938
  },
@@ -946,7 +946,7 @@ const Fn = (h) => {
946
946
  id: J(),
947
947
  ...b,
948
948
  maxSymbols: 100
949
- }), c(m);
949
+ }), r(m);
950
950
  },
951
951
  style: {
952
952
  width: "fit-content"
@@ -984,10 +984,10 @@ const Fn = (h) => {
984
984
  addButton: Oe,
985
985
  deleteButton: qe
986
986
  }, Ae = (h) => {
987
- const { buttons: a, setButtons: o, deletable: s = !0, addable: c = !0, editableLink: e = !0 } = h, { pages: u } = bt(), [d, f] = g.useState(null), [_, T] = g.useState({
987
+ const { buttons: a, setButtons: o, deletable: s = !0, addable: r = !0, editableLink: e = !0 } = h, { pages: u } = bt(), [d, f] = g.useState(null), [_, T] = g.useState({
988
988
  top: 0,
989
989
  left: 0
990
- }), [I, r] = g.useState(null), l = g.useRef(null);
990
+ }), [I, c] = g.useState(null), l = g.useRef(null);
991
991
  g.useEffect(() => {
992
992
  if (d) {
993
993
  const p = [...a].map((i) => i.id === d.id ? d : i);
@@ -1006,9 +1006,9 @@ const Fn = (h) => {
1006
1006
  const y = (p, i) => {
1007
1007
  p.stopPropagation();
1008
1008
  const b = p.target.getBoundingClientRect();
1009
- r({
1009
+ c({
1010
1010
  top: b.top + window.scrollY - 70,
1011
- left: b.left - (c ? 30 : 65)
1011
+ left: b.left - (r ? 30 : 65)
1012
1012
  }), f(i);
1013
1013
  }, x = (p, i) => {
1014
1014
  const b = [...a], w = {
@@ -1093,7 +1093,7 @@ const Fn = (h) => {
1093
1093
  editableLink: e
1094
1094
  }
1095
1095
  ),
1096
- c && /* @__PURE__ */ t.jsx(
1096
+ r && /* @__PURE__ */ t.jsx(
1097
1097
  "div",
1098
1098
  {
1099
1099
  style: {
@@ -1150,12 +1150,12 @@ const Fn = (h) => {
1150
1150
  }
1151
1151
  )
1152
1152
  ] });
1153
- }, Hn = (h) => {
1153
+ }, Fn = (h) => {
1154
1154
  const {
1155
1155
  isActiveButtons: a,
1156
1156
  setIsActiveButtons: o,
1157
1157
  buttons: s,
1158
- setButtons: c,
1158
+ setButtons: r,
1159
1159
  editableLink: e = !0,
1160
1160
  addable: u = !0,
1161
1161
  deletable: d = !0
@@ -1175,7 +1175,7 @@ const Fn = (h) => {
1175
1175
  Ae,
1176
1176
  {
1177
1177
  buttons: s,
1178
- setButtons: c,
1178
+ setButtons: r,
1179
1179
  editableLink: e,
1180
1180
  addable: u,
1181
1181
  deletable: d
@@ -1184,7 +1184,7 @@ const Fn = (h) => {
1184
1184
  ] }) });
1185
1185
  };
1186
1186
  function De(h) {
1187
- const { product: a, children: o } = h, { attributes: s, listeners: c, setNodeRef: e, transform: u, transition: d, isDragging: f } = yt({
1187
+ const { product: a, children: o } = h, { attributes: s, listeners: r, setNodeRef: e, transform: u, transition: d, isDragging: f } = yt({
1188
1188
  id: String(a.listingId)
1189
1189
  }), _ = {
1190
1190
  transform: jt.Transform.toString(u),
@@ -1197,7 +1197,7 @@ function De(h) {
1197
1197
  style: _,
1198
1198
  className: `${W.product} ${f ? W.dragging : ""}`,
1199
1199
  ...s,
1200
- ...c,
1200
+ ...r,
1201
1201
  children: o
1202
1202
  }
1203
1203
  );
@@ -1207,7 +1207,7 @@ const Vn = (h) => {
1207
1207
  isActiveItems: a,
1208
1208
  setIsActiveItems: o,
1209
1209
  items: s,
1210
- setItems: c,
1210
+ setItems: r,
1211
1211
  other: e,
1212
1212
  title: u,
1213
1213
  subtitle: d,
@@ -1215,7 +1215,7 @@ const Vn = (h) => {
1215
1215
  draggable: _ = !1,
1216
1216
  withImage: T = !1,
1217
1217
  deletable: I = !0,
1218
- addable: r = !0,
1218
+ addable: c = !0,
1219
1219
  itemsType: l,
1220
1220
  itemsOptions: y,
1221
1221
  limit: x,
@@ -1226,7 +1226,7 @@ const Vn = (h) => {
1226
1226
  ), [q, E] = g.useState({
1227
1227
  top: 0,
1228
1228
  left: 0
1229
- }), [K, F] = g.useState(!1), n = pt(
1229
+ }), [K, z] = g.useState(!1), n = pt(
1230
1230
  mt(gt, {
1231
1231
  activationConstraint: {
1232
1232
  distance: 5
@@ -1235,24 +1235,24 @@ const Vn = (h) => {
1235
1235
  );
1236
1236
  g.useEffect(() => {
1237
1237
  const v = () => {
1238
- w(null), F(!1);
1238
+ w(null), z(!1);
1239
1239
  };
1240
- return document.body.addEventListener("click", v), w(null), F(!1), () => {
1241
- w(null), F(!1), document.body.removeEventListener("click", v);
1240
+ return document.body.addEventListener("click", v), w(null), z(!1), () => {
1241
+ w(null), z(!1), document.body.removeEventListener("click", v);
1242
1242
  };
1243
1243
  }, []), g.useEffect(() => {
1244
1244
  if (b) {
1245
1245
  const v = [...s].map((A) => A.listingId === b.listingId ? b : A);
1246
- c(v);
1246
+ r(v);
1247
1247
  }
1248
1248
  }, [b]);
1249
1249
  const N = (v, A) => {
1250
1250
  v.stopPropagation();
1251
- const H = v.target.getBoundingClientRect(), m = 100, $ = window.innerHeight;
1252
- let P = H.top + window.scrollY;
1253
- P + m > $ && (P = $ - m - 20), F(!0), E({
1251
+ const F = v.target.getBoundingClientRect(), m = 100, $ = window.innerHeight;
1252
+ let P = F.top + window.scrollY;
1253
+ P + m > $ && (P = $ - m - 20), z(!0), E({
1254
1254
  top: P - 80,
1255
- left: H.left - 30
1255
+ left: F.left - 30
1256
1256
  }), w(A);
1257
1257
  };
1258
1258
  function S(v) {
@@ -1276,18 +1276,18 @@ const Vn = (h) => {
1276
1276
  );
1277
1277
  }
1278
1278
  const O = (v) => {
1279
- const { active: A, over: H } = v;
1280
- if (H && A.id !== H.id) {
1281
- const m = s.findIndex((P) => String(P.listingId) === A.id), $ = s.findIndex((P) => String(P.listingId) === H.id);
1279
+ const { active: A, over: F } = v;
1280
+ if (F && A.id !== F.id) {
1281
+ const m = s.findIndex((P) => String(P.listingId) === A.id), $ = s.findIndex((P) => String(P.listingId) === F.id);
1282
1282
  if (m !== -1 && $ !== -1) {
1283
1283
  const P = [...s], [D] = P.splice(m, 1);
1284
- P.splice($, 0, D), c(P);
1284
+ P.splice($, 0, D), r(P);
1285
1285
  }
1286
1286
  }
1287
1287
  }, M = (v) => {
1288
1288
  const A = y.find((m) => v.listingId === m.id);
1289
1289
  if (!A) return null;
1290
- const H = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1290
+ const F = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1291
1291
  _ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1292
1292
  j,
1293
1293
  {
@@ -1307,7 +1307,7 @@ const Vn = (h) => {
1307
1307
  listingId: P.id,
1308
1308
  image: P.productData.images.length > 0 ? P.productData.images[0].cfId : ""
1309
1309
  }, et = $.map((L) => L.listingId === v.listingId ? D : L);
1310
- w(D), c([...et]);
1310
+ w(D), r([...et]);
1311
1311
  },
1312
1312
  value: A.productData.name,
1313
1313
  options: [
@@ -1341,7 +1341,7 @@ const Vn = (h) => {
1341
1341
  width: 20,
1342
1342
  height: 20,
1343
1343
  fill: "#C12A2A",
1344
- onClick: () => c(s.filter((m) => m !== v))
1344
+ onClick: () => r(s.filter((m) => m !== v))
1345
1345
  }
1346
1346
  ) })
1347
1347
  ] })
@@ -1350,14 +1350,14 @@ const Vn = (h) => {
1350
1350
  De,
1351
1351
  {
1352
1352
  product: v,
1353
- children: H
1353
+ children: F
1354
1354
  },
1355
1355
  v.listingId
1356
1356
  ) : /* @__PURE__ */ t.jsx(
1357
1357
  "div",
1358
1358
  {
1359
1359
  className: W.product,
1360
- children: H
1360
+ children: F
1361
1361
  },
1362
1362
  v.listingId
1363
1363
  );
@@ -1379,7 +1379,7 @@ const Vn = (h) => {
1379
1379
  ref: C,
1380
1380
  activeItem: b,
1381
1381
  setActiveItem: w,
1382
- setIsOpenModal: F,
1382
+ setIsOpenModal: z,
1383
1383
  popupPosition: q,
1384
1384
  itemsOptions: y
1385
1385
  }
@@ -1401,7 +1401,7 @@ const Vn = (h) => {
1401
1401
  )
1402
1402
  }
1403
1403
  ) : s.map((v) => M(v)),
1404
- r && /* @__PURE__ */ t.jsx(
1404
+ c && /* @__PURE__ */ t.jsx(
1405
1405
  "div",
1406
1406
  {
1407
1407
  style: {
@@ -1418,14 +1418,14 @@ const Vn = (h) => {
1418
1418
  onClick: () => {
1419
1419
  const v = [...s];
1420
1420
  for (let A = 0; A < y.length; A++)
1421
- if (!s.find((H) => H.listingId === y[A].id)) {
1421
+ if (!s.find((F) => F.listingId === y[A].id)) {
1422
1422
  v.push({
1423
1423
  listingId: y[A].id,
1424
1424
  image: y[A].productData.images.length > 0 ? y[A].productData.images[0].cfId : ""
1425
1425
  });
1426
1426
  break;
1427
1427
  }
1428
- c(v);
1428
+ r(v);
1429
1429
  },
1430
1430
  disabled: s.length === (x || y.length),
1431
1431
  style: {
@@ -1464,14 +1464,14 @@ const Vn = (h) => {
1464
1464
  }
1465
1465
  )
1466
1466
  ] });
1467
- }, Ee = "_options_s4lx3_1", Re = "_price_s4lx3_18", Le = "_oldPrice_s4lx3_25", Ue = "_newPrice_s4lx3_34", ze = "_animate_s4lx3_42", Fe = "_meta_s4lx3_60", He = "_info_s4lx3_66", Ve = "_infoRight_s4lx3_75", Ye = "_buttons_s4lx3_82", Ge = "_variants_s4lx3_89", We = "_variant_s4lx3_89", Xe = "_stock_s4lx3_107", Qe = "_variantInfo_s4lx3_115", Je = "_quantity_s4lx3_122", Ke = "_button_s4lx3_82", Ze = "_activeVariant_s4lx3_168", ts = "_chargeTypes_s4lx3_172", es = "_charge_s4lx3_172", ss = "_chargeActive_s4lx3_197", ns = "_title_s4lx3_205", B = {
1467
+ }, Ee = "_options_s4lx3_1", Re = "_price_s4lx3_18", Le = "_oldPrice_s4lx3_25", Ue = "_newPrice_s4lx3_34", He = "_animate_s4lx3_42", ze = "_meta_s4lx3_60", Fe = "_info_s4lx3_66", Ve = "_infoRight_s4lx3_75", Ye = "_buttons_s4lx3_82", Ge = "_variants_s4lx3_89", We = "_variant_s4lx3_89", Xe = "_stock_s4lx3_107", Qe = "_variantInfo_s4lx3_115", Je = "_quantity_s4lx3_122", Ke = "_button_s4lx3_82", Ze = "_activeVariant_s4lx3_168", ts = "_chargeTypes_s4lx3_172", es = "_charge_s4lx3_172", ss = "_chargeActive_s4lx3_197", ns = "_title_s4lx3_205", B = {
1468
1468
  options: Ee,
1469
1469
  price: Re,
1470
1470
  oldPrice: Le,
1471
1471
  newPrice: Ue,
1472
- animate: ze,
1473
- meta: Fe,
1474
- info: He,
1472
+ animate: He,
1473
+ meta: ze,
1474
+ info: Fe,
1475
1475
  infoRight: Ve,
1476
1476
  buttons: Ye,
1477
1477
  variants: Ge,
@@ -1488,22 +1488,22 @@ const Vn = (h) => {
1488
1488
  };
1489
1489
  var Ot = /* @__PURE__ */ ((h) => (h.ONE_TIME = "One-Time", h.RECURRING = "Subscribe & Save", h))(Ot || {});
1490
1490
  const is = (h) => {
1491
- var K, F;
1492
- const { product: a, setIsOpen: o, isCartEnabled: s = !0 } = h, { variants: c } = a, [e, u] = g.useState(c[0]), [d, f] = g.useState(
1491
+ var K, z;
1492
+ const { product: a, setIsOpen: o, isCartEnabled: s = !0 } = h, { variants: r } = a, [e, u] = g.useState(r[0]), [d, f] = g.useState(
1493
1493
  e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
1494
- ), { notifications: _, setNotifications: T } = Ct(), I = St(), [r, l] = g.useState(1), { cart: y, reset: x, addProductToCart: p } = ct(), [i, b] = g.useState(!1);
1494
+ ), { notifications: _, setNotifications: T } = Ct(), I = St(), [c, l] = g.useState(1), { cart: y, reset: x, addProductToCart: p } = ct(), [i, b] = g.useState(!1);
1495
1495
  g.useEffect(() => {
1496
1496
  b(!0);
1497
1497
  const n = setTimeout(() => b(!1), 600);
1498
1498
  return () => clearTimeout(n);
1499
- }, [r]);
1499
+ }, [c]);
1500
1500
  async function w() {
1501
1501
  try {
1502
1502
  p({
1503
1503
  productId: a.id,
1504
1504
  productVariantId: e.id,
1505
1505
  chargeType: d,
1506
- quantity: r
1506
+ quantity: c
1507
1507
  }), T([
1508
1508
  ..._,
1509
1509
  {
@@ -1552,7 +1552,7 @@ const is = (h) => {
1552
1552
  e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: B.chargeTypes, children: e.chargeTypes.map((n) => /* @__PURE__ */ t.jsx(
1553
1553
  "div",
1554
1554
  {
1555
- className: z(B.charge, {
1555
+ className: H(B.charge, {
1556
1556
  [B.chargeActive]: d === n
1557
1557
  }),
1558
1558
  onClick: () => f(n),
@@ -1560,7 +1560,7 @@ const is = (h) => {
1560
1560
  },
1561
1561
  n
1562
1562
  )) }),
1563
- /* @__PURE__ */ t.jsx("div", { className: B.variants, children: c.filter((n) => {
1563
+ /* @__PURE__ */ t.jsx("div", { className: B.variants, children: r.filter((n) => {
1564
1564
  var N;
1565
1565
  return (N = n.chargeTypes) == null ? void 0 : N.includes(d);
1566
1566
  }).map((n) => {
@@ -1568,7 +1568,7 @@ const is = (h) => {
1568
1568
  return /* @__PURE__ */ t.jsxs(
1569
1569
  "div",
1570
1570
  {
1571
- className: z(B.variant, {
1571
+ className: H(B.variant, {
1572
1572
  [B.activeVariant]: e.id === n.id
1573
1573
  }),
1574
1574
  onClick: () => {
@@ -1581,7 +1581,9 @@ const is = (h) => {
1581
1581
  {
1582
1582
  className: B.title,
1583
1583
  id: "h4",
1584
- children: at(n.name)
1584
+ dangerouslySetInnerHTML: {
1585
+ __html: at(n.name)
1586
+ }
1585
1587
  }
1586
1588
  ),
1587
1589
  /* @__PURE__ */ t.jsxs("span", { id: "md", children: [
@@ -1621,10 +1623,10 @@ const is = (h) => {
1621
1623
  {
1622
1624
  type: "Secondary",
1623
1625
  onClick: () => {
1624
- r > 1 ? l((n) => n - 1) : l(1);
1626
+ c > 1 ? l((n) => n - 1) : l(1);
1625
1627
  },
1626
1628
  className: B.button,
1627
- disabled: e.quantity.available && e.quantity.restrictions && r <= e.quantity.restrictions.min || e.quantity.available === 0,
1629
+ disabled: e.quantity.available && e.quantity.restrictions && c <= e.quantity.restrictions.min || e.quantity.available === 0,
1628
1630
  children: /* @__PURE__ */ t.jsx(j, { name: "Minus" })
1629
1631
  }
1630
1632
  ),
@@ -1632,14 +1634,14 @@ const is = (h) => {
1632
1634
  Ut,
1633
1635
  {
1634
1636
  type: "number",
1635
- value: String(r),
1637
+ value: String(c),
1636
1638
  onChange: (n) => {
1637
1639
  e.quantity.available && Number(n) > e.quantity.available ? l(e.quantity.available) : l(Number(n));
1638
1640
  },
1639
1641
  max: ((K = e.quantity.restrictions) == null ? void 0 : K.max) || e.quantity.available || Number.POSITIVE_INFINITY,
1640
- min: ((F = e.quantity.restrictions) == null ? void 0 : F.min) || 0,
1642
+ min: ((z = e.quantity.restrictions) == null ? void 0 : z.min) || 0,
1641
1643
  centered: !0,
1642
- disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 && r >= e.quantity.restrictions.max
1644
+ disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 && c >= e.quantity.restrictions.max
1643
1645
  }
1644
1646
  ),
1645
1647
  /* @__PURE__ */ t.jsx(
@@ -1650,7 +1652,7 @@ const is = (h) => {
1650
1652
  l((n) => n + 1);
1651
1653
  },
1652
1654
  className: B.button,
1653
- disabled: !!(e.quantity.available && e.quantity.restrictions && r >= e.quantity.restrictions.max || e.quantity.available === 0 || e.quantity.available && r >= e.quantity.available),
1655
+ disabled: !!(e.quantity.available && e.quantity.restrictions && c >= e.quantity.restrictions.max || e.quantity.available === 0 || e.quantity.available && c >= e.quantity.available),
1654
1656
  children: /* @__PURE__ */ t.jsx(j, { name: "Plus" })
1655
1657
  }
1656
1658
  )
@@ -1681,8 +1683,8 @@ const is = (h) => {
1681
1683
  className: B.price,
1682
1684
  id: "md",
1683
1685
  children: [
1684
- /* @__PURE__ */ t.jsx("span", { className: z(B.newPrice, { [B.animate]: i }), children: Q({
1685
- amount: e.price.amount * r,
1686
+ /* @__PURE__ */ t.jsx("span", { className: H(B.newPrice, { [B.animate]: i }), children: Q({
1687
+ amount: e.price.amount * c,
1686
1688
  currency: e.price.currency
1687
1689
  }) }),
1688
1690
  /* @__PURE__ */ t.jsx(
@@ -1691,7 +1693,7 @@ const is = (h) => {
1691
1693
  className: B.oldPrice,
1692
1694
  id: "md",
1693
1695
  children: Q({
1694
- amount: e.compareAtPrice.amount * r,
1696
+ amount: e.compareAtPrice.amount * c,
1695
1697
  currency: e.compareAtPrice.currency
1696
1698
  })
1697
1699
  }
@@ -1701,10 +1703,10 @@ const is = (h) => {
1701
1703
  ) : /* @__PURE__ */ t.jsx(
1702
1704
  "span",
1703
1705
  {
1704
- className: z(B.newPrice, { [B.animate]: i }),
1706
+ className: H(B.newPrice, { [B.animate]: i }),
1705
1707
  id: "md",
1706
1708
  children: Q({
1707
- amount: e.price.amount * r,
1709
+ amount: e.price.amount * c,
1708
1710
  currency: e.price.currency
1709
1711
  })
1710
1712
  }
@@ -1717,10 +1719,10 @@ const is = (h) => {
1717
1719
  /* @__PURE__ */ t.jsx(
1718
1720
  "span",
1719
1721
  {
1720
- className: z(B.newPrice, { [B.animate]: i }),
1722
+ className: H(B.newPrice, { [B.animate]: i }),
1721
1723
  id: "md",
1722
1724
  children: Q({
1723
- amount: e.subscriptionSettings.price.amount * r,
1725
+ amount: e.subscriptionSettings.price.amount * c,
1724
1726
  currency: e.subscriptionSettings.price.currency
1725
1727
  })
1726
1728
  }
@@ -1731,7 +1733,7 @@ const is = (h) => {
1731
1733
  className: B.oldPrice,
1732
1734
  id: "md",
1733
1735
  children: Q({
1734
- amount: e.subscriptionSettings.compareAtPrice.amount * r,
1736
+ amount: e.subscriptionSettings.compareAtPrice.amount * c,
1735
1737
  currency: e.subscriptionSettings.compareAtPrice.currency
1736
1738
  })
1737
1739
  }
@@ -1741,10 +1743,10 @@ const is = (h) => {
1741
1743
  ) : e.subscriptionSettings && /* @__PURE__ */ t.jsx(
1742
1744
  "span",
1743
1745
  {
1744
- className: z(B.newPrice, { [B.animate]: i }),
1746
+ className: H(B.newPrice, { [B.animate]: i }),
1745
1747
  id: "md",
1746
1748
  children: Q({
1747
- amount: e.subscriptionSettings.price.amount * r,
1749
+ amount: e.subscriptionSettings.price.amount * c,
1748
1750
  currency: e.subscriptionSettings.price.currency
1749
1751
  })
1750
1752
  }
@@ -1757,7 +1759,7 @@ const is = (h) => {
1757
1759
  {
1758
1760
  type: "Primary",
1759
1761
  onClick: () => q(),
1760
- disabled: e.quantity && e.quantity.available === 0,
1762
+ disabled: e.quantity && e.quantity.available === 0 || c === 0,
1761
1763
  children: d === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
1762
1764
  }
1763
1765
  ),
@@ -1766,7 +1768,7 @@ const is = (h) => {
1766
1768
  {
1767
1769
  type: "Secondary",
1768
1770
  onClick: () => w(),
1769
- disabled: e.quantity && e.quantity.available === 0,
1771
+ disabled: e.quantity && e.quantity.available === 0 || c === 0,
1770
1772
  children: y.parts.some(
1771
1773
  (n) => n.productId === a.id && n.productVariantId === e.id
1772
1774
  ) ? "Add More" : "Add to Cart"
@@ -1817,10 +1819,10 @@ const is = (h) => {
1817
1819
  s && /* @__PURE__ */ t.jsx(qt, { signUp: o })
1818
1820
  ] }) });
1819
1821
  }, Rs = () => {
1820
- const [h, a] = g.useState(!1), [o, s] = g.useState([]), [c, e] = g.useState(!1), { cart: u, products: d } = ct();
1822
+ const [h, a] = g.useState(!1), [o, s] = g.useState([]), [r, e] = g.useState(!1), { cart: u, products: d } = ct();
1821
1823
  g.useEffect(() => {
1822
1824
  (async () => {
1823
- const r = u.parts.map((x) => String(x.productId)), l = d.filter((x) => r.includes(String(x.id))) || [], y = u.parts.map((x) => {
1825
+ const c = u.parts.map((x) => String(x.productId)), l = d.filter((x) => c.includes(String(x.id))) || [], y = u.parts.map((x) => {
1824
1826
  const p = l.find((i) => i.id === x.productId);
1825
1827
  return p ? {
1826
1828
  ...p,
@@ -1874,7 +1876,7 @@ const is = (h) => {
1874
1876
  {
1875
1877
  activeProducts: o,
1876
1878
  isCartNotEmpty: _,
1877
- isOpen: c,
1879
+ isOpen: r,
1878
1880
  close: T
1879
1881
  }
1880
1882
  )
@@ -1883,11 +1885,11 @@ const is = (h) => {
1883
1885
  ] });
1884
1886
  }, Ls = (h) => {
1885
1887
  var x, p;
1886
- const { activeProducts: a, isCartNotEmpty: o, isOpen: s, close: c } = h, { cart: e, reset: u, getTotalAndDiscount: d, updateQuantityOfProduct: f, removeProduct: _ } = ct(), T = St();
1888
+ const { activeProducts: a, isCartNotEmpty: o, isOpen: s, close: r } = h, { cart: e, reset: u, getTotalAndDiscount: d, updateQuantityOfProduct: f, removeProduct: _ } = ct(), T = St();
1887
1889
  function I(i, b) {
1888
1890
  T(i, { replace: b });
1889
1891
  }
1890
- function r(i) {
1892
+ function c(i) {
1891
1893
  i.quantity && f({
1892
1894
  productId: i.id,
1893
1895
  productVariantId: i.activeVariantId,
@@ -1914,7 +1916,7 @@ const is = (h) => {
1914
1916
  return /* @__PURE__ */ t.jsxs(
1915
1917
  "div",
1916
1918
  {
1917
- className: z(k.modal, {
1919
+ className: H(k.modal, {
1918
1920
  [k.closing]: !s
1919
1921
  }),
1920
1922
  onClick: (i) => i.stopPropagation(),
@@ -1942,7 +1944,7 @@ const is = (h) => {
1942
1944
  o && /* @__PURE__ */ t.jsx(
1943
1945
  "button",
1944
1946
  {
1945
- className: z(k.clear, {
1947
+ className: H(k.clear, {
1946
1948
  [k.activeClear]: o
1947
1949
  }),
1948
1950
  disabled: !o,
@@ -1955,7 +1957,7 @@ const is = (h) => {
1955
1957
  j,
1956
1958
  {
1957
1959
  name: "X",
1958
- onClick: c,
1960
+ onClick: r,
1959
1961
  hoverable: !0,
1960
1962
  width: 24,
1961
1963
  height: 24,
@@ -1990,9 +1992,19 @@ const is = (h) => {
1990
1992
  }
1991
1993
  ) }),
1992
1994
  /* @__PURE__ */ t.jsxs("div", { className: k.content, children: [
1993
- /* @__PURE__ */ t.jsx("div", { className: k.name, children: at(
1994
- ((b = i.variants.find((q) => q.id === i.activeVariantId)) == null ? void 0 : b.name) || i.name
1995
- ) }),
1995
+ /* @__PURE__ */ t.jsx(
1996
+ "div",
1997
+ {
1998
+ className: k.name,
1999
+ dangerouslySetInnerHTML: {
2000
+ __html: at(
2001
+ ((b = i.variants.find(
2002
+ (q) => q.id === i.activeVariantId
2003
+ )) == null ? void 0 : b.name) || i.name
2004
+ )
2005
+ }
2006
+ }
2007
+ ),
1996
2008
  /* @__PURE__ */ t.jsx("div", { className: k.price, children: Q({
1997
2009
  amount: i.variants.find(
1998
2010
  (q) => q.id === i.activeVariantId
@@ -2050,7 +2062,7 @@ const is = (h) => {
2050
2062
  R,
2051
2063
  {
2052
2064
  type: "Secondary",
2053
- onClick: () => r(i),
2065
+ onClick: () => c(i),
2054
2066
  className: k.productButton,
2055
2067
  disabled: i.quantity === i.variants.find((q) => q.id === i.activeVariantId).quantity.available,
2056
2068
  children: /* @__PURE__ */ t.jsx(
@@ -2129,11 +2141,11 @@ const is = (h) => {
2129
2141
  )
2130
2142
  ] })
2131
2143
  ] }), qt = ({ signUp: h, close: a }) => {
2132
- const { token: o } = zt(), s = St(), [c, e] = g.useState("test-email@gmail.com");
2144
+ const { token: o } = Ht(), s = St(), [r, e] = g.useState("test-email@gmail.com");
2133
2145
  g.useEffect(() => {
2134
2146
  o && (async () => {
2135
2147
  if (!o) return;
2136
- const f = Ft(o);
2148
+ const f = zt(o);
2137
2149
  e(f.email);
2138
2150
  })();
2139
2151
  }, [o]);
@@ -2148,7 +2160,7 @@ const is = (h) => {
2148
2160
  onClick: () => {
2149
2161
  u("/customer-dash"), a == null || a();
2150
2162
  },
2151
- children: /* @__PURE__ */ t.jsx("div", { children: c || "test-email@gmail.com" })
2163
+ children: /* @__PURE__ */ t.jsx("div", { children: r || "test-email@gmail.com" })
2152
2164
  }
2153
2165
  ) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2154
2166
  /* @__PURE__ */ t.jsx(
@@ -2179,15 +2191,15 @@ const is = (h) => {
2179
2191
  }
2180
2192
  )
2181
2193
  ] });
2182
- }, zs = ({
2194
+ }, Hs = ({
2183
2195
  logo: h,
2184
2196
  setIsOpen: a,
2185
2197
  signUp: o,
2186
2198
  pages: s
2187
2199
  }) => {
2188
- const { setIsOpen: c } = rt(), e = () => {
2189
- c(!1), setTimeout(() => {
2190
- a(!1), c(!0);
2200
+ const { setIsOpen: r } = rt(), e = () => {
2201
+ r(!1), setTimeout(() => {
2202
+ a(!1), r(!0);
2191
2203
  }, 300);
2192
2204
  };
2193
2205
  return /* @__PURE__ */ t.jsxs(
@@ -2233,19 +2245,19 @@ const is = (h) => {
2233
2245
  }
2234
2246
  );
2235
2247
  }, Gn = ({ logo: h, signUp: a, pages: o }) => {
2236
- const [s, c] = g.useState(!1);
2248
+ const [s, r] = g.useState(!1);
2237
2249
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2238
- /* @__PURE__ */ t.jsx(Fs, { setIsOpenModal: c }),
2250
+ /* @__PURE__ */ t.jsx(zs, { setIsOpenModal: r }),
2239
2251
  s && /* @__PURE__ */ t.jsx(
2240
2252
  ut,
2241
2253
  {
2242
- close: () => c(!1),
2254
+ close: () => r(!1),
2243
2255
  hasPadding: !1,
2244
2256
  children: /* @__PURE__ */ t.jsx(
2245
- zs,
2257
+ Hs,
2246
2258
  {
2247
2259
  logo: h,
2248
- setIsOpen: c,
2260
+ setIsOpen: r,
2249
2261
  signUp: a,
2250
2262
  pages: o
2251
2263
  }
@@ -2253,7 +2265,7 @@ const is = (h) => {
2253
2265
  }
2254
2266
  )
2255
2267
  ] });
2256
- }, Fs = (h) => {
2268
+ }, zs = (h) => {
2257
2269
  const { setIsOpenModal: a } = h;
2258
2270
  return /* @__PURE__ */ t.jsx(
2259
2271
  R,
@@ -2268,8 +2280,8 @@ const is = (h) => {
2268
2280
  children: /* @__PURE__ */ t.jsx(j, { name: "List" })
2269
2281
  }
2270
2282
  );
2271
- }, Hs = "_share_onabp_1", Vs = "_modal_onabp_8", Ys = "_header_onabp_20", Gs = "_title_onabp_46", Ws = "_copyWrapper_onabp_53", Xs = "_copyText_onabp_62", Qs = "_copyTextMobile_onabp_75", Js = "_copyTextMiniMobile_onabp_94", nt = {
2272
- share: Hs,
2283
+ }, Fs = "_share_onabp_1", Vs = "_modal_onabp_8", Ys = "_header_onabp_20", Gs = "_title_onabp_46", Ws = "_copyWrapper_onabp_53", Xs = "_copyText_onabp_62", Qs = "_copyTextMobile_onabp_75", Js = "_copyTextMiniMobile_onabp_94", nt = {
2284
+ share: Fs,
2273
2285
  modal: Vs,
2274
2286
  header: Ys,
2275
2287
  title: Gs,
@@ -2287,8 +2299,8 @@ const is = (h) => {
2287
2299
  R,
2288
2300
  {
2289
2301
  className: nt.share,
2290
- onClick: (c) => {
2291
- c.stopPropagation(), s();
2302
+ onClick: (r) => {
2303
+ r.stopPropagation(), s();
2292
2304
  },
2293
2305
  type: "Secondary",
2294
2306
  children: /* @__PURE__ */ t.jsx(
@@ -2304,7 +2316,7 @@ const is = (h) => {
2304
2316
  a && /* @__PURE__ */ t.jsx(ut, { close: o, children: /* @__PURE__ */ t.jsx(Ks, { title: h }) })
2305
2317
  ] });
2306
2318
  }, Ks = ({ title: h = "Copy Product Link" }) => {
2307
- const { setIsOpenModal: a } = Bt(), { notifications: o, setNotifications: s } = Ct(), { setIsOpen: c } = rt(), e = window.location.href;
2319
+ const { setIsOpenModal: a } = Bt(), { notifications: o, setNotifications: s } = Ct(), { setIsOpen: r } = rt(), e = window.location.href;
2308
2320
  function u() {
2309
2321
  navigator.clipboard.writeText(e), s([
2310
2322
  ...o,
@@ -2316,8 +2328,8 @@ const is = (h) => {
2316
2328
  ]);
2317
2329
  }
2318
2330
  function d() {
2319
- c(!1), setTimeout(() => {
2320
- a(!1), c(!0);
2331
+ r(!1), setTimeout(() => {
2332
+ a(!1), r(!0);
2321
2333
  }, 300);
2322
2334
  }
2323
2335
  function f(_, T) {
@@ -2408,8 +2420,8 @@ const is = (h) => {
2408
2420
  contentOpen: an,
2409
2421
  contentText: on
2410
2422
  }, Xn = ({ title: h, content: a, defaultOpen: o = !1 }) => {
2411
- const [s, c] = g.useState(o), [e, u] = g.useState(0), d = g.useRef(null), f = () => {
2412
- c(!s);
2423
+ const [s, r] = g.useState(o), [e, u] = g.useState(0), d = g.useRef(null), f = () => {
2424
+ r(!s);
2413
2425
  };
2414
2426
  return g.useEffect(() => {
2415
2427
  d.current && u(s ? d.current.scrollHeight : 0);
@@ -2421,11 +2433,11 @@ const is = (h) => {
2421
2433
  onClick: f,
2422
2434
  children: [
2423
2435
  /* @__PURE__ */ t.jsx("h5", { id: "h5", children: h }),
2424
- /* @__PURE__ */ t.jsx("div", { className: z(it.icon, { [it.open]: s }), children: /* @__PURE__ */ t.jsx(j, { name: "CaretDown" }) })
2436
+ /* @__PURE__ */ t.jsx("div", { className: H(it.icon, { [it.open]: s }), children: /* @__PURE__ */ t.jsx(j, { name: "CaretDown" }) })
2425
2437
  ]
2426
2438
  }
2427
2439
  ),
2428
- /* @__PURE__ */ t.jsx("div", { className: z(it.content, { [it.contentOpen]: s }), children: /* @__PURE__ */ t.jsx(
2440
+ /* @__PURE__ */ t.jsx("div", { className: H(it.content, { [it.contentOpen]: s }), children: /* @__PURE__ */ t.jsx(
2429
2441
  "p",
2430
2442
  {
2431
2443
  id: "md",
@@ -2441,24 +2453,24 @@ const is = (h) => {
2441
2453
  cartDisabled: rn
2442
2454
  }, Qn = (h) => {
2443
2455
  var T, I;
2444
- const { setIsOpen: a, setModalType: o, productId: s, isCartEnabled: c = !0 } = h, { cart: e } = ct(), { pageContext: u } = bt(), d = (T = u == null ? void 0 : u.listings) == null ? void 0 : T.find((r) => r.id === s);
2456
+ const { setIsOpen: a, setModalType: o, productId: s, isCartEnabled: r = !0 } = h, { cart: e } = ct(), { pageContext: u } = bt(), d = (T = u == null ? void 0 : u.listings) == null ? void 0 : T.find((c) => c.id === s);
2445
2457
  if (!d)
2446
2458
  return null;
2447
2459
  const f = (I = u == null ? void 0 : u.products) == null ? void 0 : I.find(
2448
- (r) => r.uniquePath === d.productData.uniquePath
2460
+ (c) => c.uniquePath === d.productData.uniquePath
2449
2461
  );
2450
2462
  if (!f)
2451
2463
  return null;
2452
- const _ = e.parts.find((r) => r.productId === f.id);
2464
+ const _ = e.parts.find((c) => c.productId === f.id);
2453
2465
  return /* @__PURE__ */ t.jsxs(
2454
2466
  "div",
2455
2467
  {
2456
- className: z(Pt.buttonsBlock, {
2457
- [Pt.cartDisabled]: !c
2468
+ className: H(Pt.buttonsBlock, {
2469
+ [Pt.cartDisabled]: !r
2458
2470
  }),
2459
- onClick: (r) => r.stopPropagation(),
2471
+ onClick: (c) => c.stopPropagation(),
2460
2472
  children: [
2461
- c && /* @__PURE__ */ t.jsx(
2473
+ r && /* @__PURE__ */ t.jsx(
2462
2474
  R,
2463
2475
  {
2464
2476
  type: "Secondary",
@@ -2492,10 +2504,10 @@ const is = (h) => {
2492
2504
  logo: dn,
2493
2505
  info: un
2494
2506
  }, Jn = ({ date: h }) => {
2495
- const { general: a } = Ht();
2507
+ const { general: a } = Ft();
2496
2508
  if (!a) return /* @__PURE__ */ t.jsx(t.Fragment, {});
2497
2509
  function o(s) {
2498
- const c = new Date(s), e = {
2510
+ const r = new Date(s), e = {
2499
2511
  month: "short",
2500
2512
  day: "2-digit",
2501
2513
  year: "numeric",
@@ -2503,7 +2515,7 @@ const is = (h) => {
2503
2515
  minute: "2-digit",
2504
2516
  hour12: !1
2505
2517
  };
2506
- return c.toLocaleDateString("en-US", e);
2518
+ return r.toLocaleDateString("en-US", e);
2507
2519
  }
2508
2520
  return /* @__PURE__ */ t.jsxs("div", { className: It.wrapper, children: [
2509
2521
  /* @__PURE__ */ t.jsx("div", { className: It.logo, children: a.info.logo ? /* @__PURE__ */ t.jsx(
@@ -2537,19 +2549,19 @@ const is = (h) => {
2537
2549
  productOptions: yn,
2538
2550
  loading: jn
2539
2551
  }, Kn = (h) => {
2540
- var r;
2541
- const { pageContext: a } = bt(), o = (r = a == null ? void 0 : a.listings) == null ? void 0 : r.find((l) => l.id === h.productId), [s, c] = g.useState(!0), [e, u] = g.useState(null), d = (e == null ? void 0 : e.variants[0]) || null, [f, _] = g.useState(
2552
+ var c;
2553
+ const { pageContext: a } = bt(), o = (c = a == null ? void 0 : a.listings) == null ? void 0 : c.find((l) => l.id === h.productId), [s, r] = g.useState(!0), [e, u] = g.useState(null), d = (e == null ? void 0 : e.variants[0]) || null, [f, _] = g.useState(
2542
2554
  "ONE_TIME"
2543
2555
  ), { addProducts: T } = ct(), { setIsOpen: I } = rt();
2544
2556
  return g.useEffect(() => {
2545
2557
  (async () => {
2546
- c(!0);
2558
+ r(!0);
2547
2559
  const y = await Vt(
2548
2560
  encodeURIComponent(
2549
2561
  `/product/${o.productData.uniquePath}`
2550
2562
  )
2551
2563
  );
2552
- T(y == null ? void 0 : y.data.products), u(y == null ? void 0 : y.data.products[0]), c(!1);
2564
+ T(y == null ? void 0 : y.data.products), u(y == null ? void 0 : y.data.products[0]), r(!1);
2553
2565
  })();
2554
2566
  }, []), g.useEffect(() => {
2555
2567
  I(!0);
@@ -2583,9 +2595,9 @@ const is = (h) => {
2583
2595
  }
2584
2596
  ) });
2585
2597
  }, bn = (h) => {
2586
- const { variants: a, activeChargeType: o, productId: s, setIsOpen: c } = h, { cart: e, addProductToCart: u, addProducts: d, updateQuantityOfProduct: f } = ct(), { notifications: _, setNotifications: T } = Ct(), { pageContext: I } = bt(), { setIsOpen: r } = rt(), l = () => {
2587
- r(!1), setTimeout(() => {
2588
- c(!1);
2598
+ const { variants: a, activeChargeType: o, productId: s, setIsOpen: r } = h, { cart: e, addProductToCart: u, addProducts: d, updateQuantityOfProduct: f } = ct(), { notifications: _, setNotifications: T } = Ct(), { pageContext: I } = bt(), { setIsOpen: c } = rt(), l = () => {
2599
+ c(!1), setTimeout(() => {
2600
+ r(!1);
2589
2601
  }, 300);
2590
2602
  };
2591
2603
  async function y(x) {
@@ -2657,9 +2669,9 @@ const is = (h) => {
2657
2669
  return /* @__PURE__ */ t.jsxs(
2658
2670
  "div",
2659
2671
  {
2660
- className: z(Z.variant),
2672
+ className: H(Z.variant),
2661
2673
  onClick: () => {
2662
- y(x.id), c(!1);
2674
+ y(x.id), r(!1);
2663
2675
  },
2664
2676
  children: [
2665
2677
  /* @__PURE__ */ t.jsxs("div", { className: Z.variantInfo, children: [
@@ -2695,22 +2707,21 @@ const is = (h) => {
2695
2707
  }) })
2696
2708
  ] });
2697
2709
  }, vn = (h) => {
2698
- const { product: a, setIsOpen: o, isCartEnabled: s } = h, { setIsOpen: c } = rt(), e = () => {
2699
- c(!1), setTimeout(() => {
2710
+ const { product: a, setIsOpen: o, isCartEnabled: s } = h, { setIsOpen: r } = rt(), e = () => {
2711
+ r(!1), setTimeout(() => {
2700
2712
  o(!1);
2701
2713
  }, 300);
2702
2714
  };
2703
2715
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2704
2716
  /* @__PURE__ */ t.jsxs("div", { className: Z.header, children: [
2705
- /* @__PURE__ */ t.jsxs(
2717
+ /* @__PURE__ */ t.jsx(
2706
2718
  "div",
2707
2719
  {
2708
2720
  id: "h3",
2709
2721
  className: Z.title,
2710
- children: [
2711
- "Buy ",
2712
- at(a.name)
2713
- ]
2722
+ dangerouslySetInnerHTML: {
2723
+ __html: `Buy ${at(a.name)}`
2724
+ }
2714
2725
  }
2715
2726
  ),
2716
2727
  /* @__PURE__ */ t.jsx(
@@ -2758,7 +2769,7 @@ const is = (h) => {
2758
2769
  setIsOpen: a,
2759
2770
  pageContext: o,
2760
2771
  groupData: s,
2761
- setProductId: c,
2772
+ setProductId: r,
2762
2773
  setIsProductModalOpen: e,
2763
2774
  setShowDropdown: u
2764
2775
  } = h, [d, f] = g.useState(null), [_, T] = g.useState(!0), { setIsOpen: I } = rt();
@@ -2772,7 +2783,7 @@ const is = (h) => {
2772
2783
  }, [o]), g.useEffect(() => {
2773
2784
  I(!0);
2774
2785
  }, []);
2775
- const r = () => {
2786
+ const c = () => {
2776
2787
  I(!1), setTimeout(() => {
2777
2788
  a(!1);
2778
2789
  }, 300);
@@ -2789,7 +2800,9 @@ const is = (h) => {
2789
2800
  {
2790
2801
  className: U.title,
2791
2802
  id: "h4",
2792
- children: at(s.name)
2803
+ dangerouslySetInnerHTML: {
2804
+ __html: at(s.name)
2805
+ }
2793
2806
  }
2794
2807
  ),
2795
2808
  /* @__PURE__ */ t.jsx(
@@ -2797,7 +2810,7 @@ const is = (h) => {
2797
2810
  {
2798
2811
  name: "X",
2799
2812
  hoverable: !0,
2800
- onClick: r,
2813
+ onClick: c,
2801
2814
  fill: "var(--text-primary)"
2802
2815
  }
2803
2816
  )
@@ -2816,7 +2829,7 @@ const is = (h) => {
2816
2829
  height: 64,
2817
2830
  className: U.modalImage
2818
2831
  }
2819
- ) : /* @__PURE__ */ t.jsx("div", { className: z(U.blockImage, U.modalImage), children: /* @__PURE__ */ t.jsx(j, { name: "Image" }) }) }),
2832
+ ) : /* @__PURE__ */ t.jsx("div", { className: H(U.blockImage, U.modalImage), children: /* @__PURE__ */ t.jsx(j, { name: "Image" }) }) }),
2820
2833
  /* @__PURE__ */ t.jsxs("div", { className: U.cardInfo, children: [
2821
2834
  /* @__PURE__ */ t.jsx(
2822
2835
  "div",
@@ -2824,7 +2837,7 @@ const is = (h) => {
2824
2837
  className: U.name,
2825
2838
  id: "h5",
2826
2839
  children: l.productData.compareAtPrice && (l.productData.compareAtPrice.amount || 0) - (l.productData.minPrice.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2827
- at(l.productData.name),
2840
+ at(l.productData.name, !1),
2828
2841
  /* @__PURE__ */ t.jsxs(
2829
2842
  "span",
2830
2843
  {
@@ -2857,7 +2870,7 @@ const is = (h) => {
2857
2870
  }
2858
2871
  )
2859
2872
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2860
- at(l.productData.name),
2873
+ at(l.productData.name, !1),
2861
2874
  /* @__PURE__ */ t.jsx(
2862
2875
  "span",
2863
2876
  {
@@ -2877,7 +2890,9 @@ const is = (h) => {
2877
2890
  {
2878
2891
  className: U.short,
2879
2892
  id: "md",
2880
- children: at(l.productData.shortDescription)
2893
+ dangerouslySetInnerHTML: {
2894
+ __html: at(l.productData.shortDescription)
2895
+ }
2881
2896
  }
2882
2897
  )
2883
2898
  ] }),
@@ -2887,7 +2902,7 @@ const is = (h) => {
2887
2902
  {
2888
2903
  type: "Secondary",
2889
2904
  onClick: () => {
2890
- c(l.id), a(!1), e(!0);
2905
+ r(l.id), a(!1), e(!0);
2891
2906
  },
2892
2907
  children: "Buy"
2893
2908
  }
@@ -2898,7 +2913,7 @@ const is = (h) => {
2898
2913
  type: "Primary",
2899
2914
  style: { whiteSpace: "nowrap" },
2900
2915
  onClick: () => {
2901
- u(!1), r();
2916
+ u(!1), c();
2902
2917
  },
2903
2918
  children: "View Details"
2904
2919
  }
@@ -2916,16 +2931,16 @@ const is = (h) => {
2916
2931
  export {
2917
2932
  Xn as Accordion,
2918
2933
  si as AlignText,
2919
- Fs as BurgerMenuButton,
2934
+ zs as BurgerMenuButton,
2920
2935
  R as Button,
2921
2936
  Ae as ButtonTypeSettings,
2922
- Hn as ButtonsSettings,
2937
+ Fn as ButtonsSettings,
2923
2938
  Un as CategorySettings,
2924
2939
  Ot as ChargeTypes,
2925
2940
  Dt as ChooseImage,
2926
2941
  ni as ChooseImageModal,
2927
2942
  Us as EmptyCart,
2928
- Fn as FormSettings,
2943
+ zn as FormSettings,
2929
2944
  Zn as GroupCardModal,
2930
2945
  Yn as HeaderButtons,
2931
2946
  j as Icon,
@@ -2939,8 +2954,8 @@ export {
2939
2954
  Jn as MetaInfoPost,
2940
2955
  ut as Modal,
2941
2956
  Gn as PagesMobileMenu,
2942
- zs as PagesMobileModal,
2943
- zn as PagesSettings,
2957
+ Hs as PagesMobileModal,
2958
+ Hn as PagesSettings,
2944
2959
  Qn as ProductCardButtons,
2945
2960
  Kn as ProductCardModal,
2946
2961
  is as ProductOptions,