@billgangcom/theme-lib 1.65.0 → 1.65.2

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 V, a as yt, u as ut, d as mt, P as ht, S as ot, R as St, D as pt, e as _t, v as gt, B as ct, O as It, f as rt, g as ft, C as xt, h as H, i as Pt, k as at, l as Tt, m as lt, n as Mt, o as jt, p as G, L as At, r as vt, t as dt, s as Nt, w as F, x as Ot, M as kt, y as $t, z as Et, A as wt, E as qt, F as Dt, G as Rt } from "./index-BPn2qi_o.js";
2
- import { Q as Zi, J as ta, N as ea, H as na, T as sa, K as ia } from "./index-BPn2qi_o.js";
1
+ import { j as t, I as v, c as V, a as yt, u as ut, d as mt, P as ht, S as ot, R as St, D as pt, e as _t, v as gt, B as ct, O as It, f as rt, g as st, h as ft, C as xt, i as H, k as Pt, l as Tt, m as lt, n as Mt, o as jt, p as G, L as At, r as vt, t as dt, s as Nt, w as F, x as Ot, M as kt, y as $t, z as Et, A as wt, E as qt, F as Dt, G as Rt } from "./index-CMw6nNKj.js";
2
+ import { Q as Zi, J as ta, N as ea, H as na, T as sa, K as ia } from "./index-CMw6nNKj.js";
3
3
  import x from "react";
4
4
  import "@phosphor-icons/react";
5
5
  const Lt = "_wrapper_1vmyb_2", zt = "_alignmentBlock_1vmyb_8", Ft = "_title_1vmyb_15", Vt = "_subtitle_1vmyb_22", Ut = "_alignmentContent_1vmyb_29", Ht = "_alignments_1vmyb_37", Yt = "_alignment_1vmyb_8", Wt = "_circle_1vmyb_60", Gt = "_paddings_1vmyb_67", Qt = "_padding_1vmyb_67", Xt = "_active_1vmyb_91", Jt = "_input_1vmyb_98", J = {
@@ -79,7 +79,7 @@ const Lt = "_wrapper_1vmyb_2", zt = "_alignmentBlock_1vmyb_8", Ft = "_title_1vmy
79
79
  children: [
80
80
  l !== s && r !== l && /* @__PURE__ */ t.jsx("div", { className: J.circle }),
81
81
  l !== s && r === l && /* @__PURE__ */ t.jsx(
82
- j,
82
+ v,
83
83
  {
84
84
  name: c(r),
85
85
  fill: "#c2c2c2",
@@ -88,7 +88,7 @@ const Lt = "_wrapper_1vmyb_2", zt = "_alignmentBlock_1vmyb_8", Ft = "_title_1vmy
88
88
  }
89
89
  ),
90
90
  l === s && /* @__PURE__ */ t.jsx(
91
- j,
91
+ v,
92
92
  {
93
93
  name: c(s),
94
94
  fill: "#FF3F19",
@@ -114,7 +114,7 @@ const Lt = "_wrapper_1vmyb_2", zt = "_alignmentBlock_1vmyb_8", Ft = "_title_1vmy
114
114
  },
115
115
  children: [
116
116
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
117
- j,
117
+ v,
118
118
  {
119
119
  name: u(l),
120
120
  width: 20,
@@ -207,7 +207,7 @@ const Ei = (o) => {
207
207
  addable: B = !0,
208
208
  itemsOptions: l,
209
209
  hasRangeSelector: a = !1,
210
- rangeSelectorOptions: b,
210
+ rangeSelectorOptions: j,
211
211
  limit: d,
212
212
  autoScrollInterval: S,
213
213
  deletable: g
@@ -217,9 +217,9 @@ const Ei = (o) => {
217
217
  distance: 5
218
218
  }
219
219
  })
220
- ), q = (v) => {
220
+ ), q = (y) => {
221
221
  console.log("Trigger?");
222
- const { active: M, over: O } = v;
222
+ const { active: M, over: O } = y;
223
223
  if (O && M.id !== O.id) {
224
224
  const I = n.findIndex(($) => $ === M.id), h = n.findIndex(($) => $ === O.id);
225
225
  if (I !== -1 && h !== -1) {
@@ -228,18 +228,18 @@ const Ei = (o) => {
228
228
  }
229
229
  }
230
230
  };
231
- function E(v) {
231
+ function E(y) {
232
232
  if (p)
233
- return v ? /* @__PURE__ */ t.jsx(
233
+ return y ? /* @__PURE__ */ t.jsx(
234
234
  "img",
235
235
  {
236
- src: `https://imagedelivery.net/${v[0]}/w=1000`,
236
+ src: `https://imagedelivery.net/${y[0]}/w=1000`,
237
237
  alt: "image",
238
238
  width: 16,
239
239
  height: 16
240
240
  }
241
241
  ) : /* @__PURE__ */ t.jsx(
242
- j,
242
+ v,
243
243
  {
244
244
  name: "Image",
245
245
  width: 16,
@@ -248,12 +248,12 @@ const Ei = (o) => {
248
248
  }
249
249
  );
250
250
  }
251
- const f = (v, M = !1) => {
252
- const O = l.find((h) => h.id === v);
251
+ const f = (y, M = !1) => {
252
+ const O = l.find((h) => h.id === y);
253
253
  if (!O) return;
254
254
  const I = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
255
255
  m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
256
- j,
256
+ v,
257
257
  {
258
258
  name: "DotsSixVertical",
259
259
  hoverable: !0,
@@ -267,7 +267,7 @@ const Ei = (o) => {
267
267
  onChange: (h) => {
268
268
  const $ = [...n], P = l.find((A) => A.name === h);
269
269
  if (!P) return;
270
- const y = P.id, N = $.map((A) => A === v ? y : A);
270
+ const b = P.id, N = $.map((A) => A === y ? b : A);
271
271
  i([...N]);
272
272
  },
273
273
  value: O.name,
@@ -276,31 +276,31 @@ const Ei = (o) => {
276
276
  }
277
277
  ),
278
278
  M && /* @__PURE__ */ t.jsx("div", { className: Q.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Q.deleteButton, children: /* @__PURE__ */ t.jsx(
279
- j,
279
+ v,
280
280
  {
281
281
  name: "Trash",
282
282
  hoverable: !0,
283
283
  width: 20,
284
284
  height: 20,
285
285
  fill: "#C12A2A",
286
- onClick: () => i(n.filter((h) => h !== v))
286
+ onClick: () => i(n.filter((h) => h !== y))
287
287
  }
288
288
  ) }) })
289
289
  ] });
290
290
  return m ? /* @__PURE__ */ t.jsx(
291
291
  Ie,
292
292
  {
293
- id: v,
293
+ id: y,
294
294
  children: I
295
295
  },
296
- v
296
+ st()
297
297
  ) : /* @__PURE__ */ t.jsx(
298
298
  "div",
299
299
  {
300
300
  className: Q.product,
301
301
  children: I
302
302
  },
303
- v
303
+ st()
304
304
  );
305
305
  };
306
306
  return /* @__PURE__ */ t.jsxs("div", { className: Q.productsBlock, children: [
@@ -310,11 +310,11 @@ const Ei = (o) => {
310
310
  ot,
311
311
  {
312
312
  current: s,
313
- onChange: (v) => e == null ? void 0 : e(v)
313
+ onChange: (y) => e == null ? void 0 : e(y)
314
314
  }
315
315
  )
316
316
  ] }),
317
- a && b && /* @__PURE__ */ t.jsx(St, { ...b }),
317
+ a && j && /* @__PURE__ */ t.jsx(St, { ...j }),
318
318
  /* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
319
319
  r && /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: r }),
320
320
  m ? /* @__PURE__ */ t.jsx(
@@ -327,11 +327,11 @@ const Ei = (o) => {
327
327
  {
328
328
  items: n,
329
329
  strategy: gt,
330
- children: n.map((v) => f(v, g))
330
+ children: n.map((y) => f(y, g))
331
331
  }
332
332
  )
333
333
  }
334
- ) : n.map((v) => f(v, g)),
334
+ ) : n.map((y) => f(y, g)),
335
335
  B && /* @__PURE__ */ t.jsx(
336
336
  "div",
337
337
  {
@@ -351,7 +351,7 @@ const Ei = (o) => {
351
351
  size: "s",
352
352
  disabled: !!(d && d <= n.length || n.length === l.length),
353
353
  onClick: () => {
354
- const v = [...n];
354
+ const y = [...n];
355
355
  let M = null;
356
356
  if (l) {
357
357
  for (let O = 0; O < l.length; O++)
@@ -360,7 +360,7 @@ const Ei = (o) => {
360
360
  break;
361
361
  }
362
362
  }
363
- v.push((M == null ? void 0 : M.id) || l[0].id), i(v);
363
+ y.push((M == null ? void 0 : M.id) || l[0].id), i(y);
364
364
  },
365
365
  style: {
366
366
  width: "fit-content"
@@ -368,7 +368,7 @@ const Ei = (o) => {
368
368
  children: /* @__PURE__ */ t.jsxs("div", { className: Q.addButton, children: [
369
369
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
370
370
  /* @__PURE__ */ t.jsx(
371
- j,
371
+ v,
372
372
  {
373
373
  name: "Plus",
374
374
  width: 16,
@@ -388,7 +388,7 @@ const Ei = (o) => {
388
388
  label: "Auto scroll interval",
389
389
  type: "number",
390
390
  value: String(S.scrollInterval),
391
- onChange: (v) => S.setScrollInterval(Number(v)),
391
+ onChange: (y) => S.setScrollInterval(Number(y)),
392
392
  min: 0.1,
393
393
  max: 100,
394
394
  style: {
@@ -464,7 +464,7 @@ const Di = (o) => {
464
464
  addable: B = !0,
465
465
  itemsType: l,
466
466
  itemsOptions: a,
467
- addableOptions: b = {},
467
+ addableOptions: j = {},
468
468
  limit: d
469
469
  } = o, [S, g] = x.useState(null), [k, q] = x.useState(null), E = x.useRef(null), f = ut(
470
470
  mt(ht, {
@@ -481,7 +481,7 @@ const Di = (o) => {
481
481
  }, [S]), x.useEffect(() => {
482
482
  E.current && k && (E.current.getBoundingClientRect().height, k.top);
483
483
  }, [E.current, k]);
484
- const v = (I, h) => {
484
+ const y = (I, h) => {
485
485
  I.stopPropagation();
486
486
  const $ = I.target.getBoundingClientRect();
487
487
  q({
@@ -491,16 +491,16 @@ const Di = (o) => {
491
491
  }, M = (I) => {
492
492
  const { active: h, over: $ } = I;
493
493
  if ($ && h.id !== $.id) {
494
- const P = n.findIndex((N) => N.id === h.id), y = n.findIndex((N) => N.id === $.id);
495
- if (P !== -1 && y !== -1) {
494
+ const P = n.findIndex((N) => N.id === h.id), b = n.findIndex((N) => N.id === $.id);
495
+ if (P !== -1 && b !== -1) {
496
496
  const N = [...n], [A] = N.splice(P, 1);
497
- N.splice(y, 0, A), i(N);
497
+ N.splice(b, 0, A), i(N);
498
498
  }
499
499
  }
500
500
  }, O = (I, h) => {
501
501
  const $ = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
502
502
  m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
503
- j,
503
+ v,
504
504
  {
505
505
  name: "DotsSixVertical",
506
506
  hoverable: !0,
@@ -512,9 +512,9 @@ const Di = (o) => {
512
512
  rt,
513
513
  {
514
514
  onChange: (P) => {
515
- const y = [...n], N = a.find((U) => U.name === P);
515
+ const b = [...n], N = a.find((U) => U.name === P);
516
516
  if (!N) return;
517
- const A = y.map((U) => U.id === I.id ? {
517
+ const A = b.map((U) => U.id === I.id ? {
518
518
  ...N,
519
519
  name: {
520
520
  "en-US": P
@@ -528,22 +528,22 @@ const Di = (o) => {
528
528
  }), i([...A]);
529
529
  },
530
530
  value: I.name,
531
- options: a.filter((P) => !n.find((y) => y.name === P.name)).map((P) => P.name)
531
+ options: a.filter((P) => !n.find((b) => b.name === P.name)).map((P) => P.name)
532
532
  }
533
533
  ),
534
534
  /* @__PURE__ */ t.jsxs("div", { className: Y.buttons, children: [
535
535
  r && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
536
- j,
536
+ v,
537
537
  {
538
538
  name: "Sliders",
539
539
  hoverable: !0,
540
540
  width: 20,
541
541
  height: 20,
542
- onClick: (P) => v(P, I)
542
+ onClick: (P) => y(P, I)
543
543
  }
544
544
  ) }),
545
545
  p && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
546
- j,
546
+ v,
547
547
  {
548
548
  name: "Trash",
549
549
  hoverable: !0,
@@ -630,7 +630,7 @@ const Di = (o) => {
630
630
  l === "select" && a && I.push({
631
631
  name: h ? h.name : a[0].name,
632
632
  id: (h == null ? void 0 : h.id) || a[0].id,
633
- ...b
633
+ ...j
634
634
  }), i(I);
635
635
  },
636
636
  style: {
@@ -639,7 +639,7 @@ const Di = (o) => {
639
639
  children: /* @__PURE__ */ t.jsxs("div", { className: Y.addButton, children: [
640
640
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
641
641
  /* @__PURE__ */ t.jsx(
642
- j,
642
+ v,
643
643
  {
644
644
  name: "Plus",
645
645
  width: 16,
@@ -687,7 +687,7 @@ const Ri = (o) => {
687
687
  withImage: B = !1,
688
688
  deletable: l = !0,
689
689
  addable: a = !0,
690
- itemsType: b,
690
+ itemsType: j,
691
691
  itemsPlaceholder: d = "",
692
692
  itemsOptions: S,
693
693
  hasRangeSelector: g = !1,
@@ -695,10 +695,10 @@ const Ri = (o) => {
695
695
  modalOptions: q,
696
696
  addableOptions: E = {},
697
697
  limit: f
698
- } = o, [v, M] = x.useState(null), [O, I] = x.useState({
698
+ } = o, [y, M] = x.useState(null), [O, I] = x.useState({
699
699
  top: 0,
700
700
  left: 0
701
- }), [h, $] = x.useState(null), P = x.useRef(null), [y, N] = x.useState(!1), A = ut(
701
+ }), [h, $] = x.useState(null), P = x.useRef(null), [b, N] = x.useState(!1), A = ut(
702
702
  mt(ht, {
703
703
  activationConstraint: {
704
704
  distance: 5
@@ -713,11 +713,11 @@ const Ri = (o) => {
713
713
  M(null), N(!1), document.body.removeEventListener("click", _);
714
714
  };
715
715
  }, []), x.useEffect(() => {
716
- if (v) {
717
- const _ = [...n].map((R) => R.id === v.id ? v : R);
716
+ if (y) {
717
+ const _ = [...n].map((R) => R.id === y.id ? y : R);
718
718
  i(_);
719
719
  }
720
- }, [v]), x.useEffect(() => {
720
+ }, [y]), x.useEffect(() => {
721
721
  if (P.current && h) {
722
722
  const _ = P.current.getBoundingClientRect().height, R = window.innerHeight;
723
723
  let T = h.top;
@@ -746,7 +746,7 @@ const Ri = (o) => {
746
746
  height: 16
747
747
  }
748
748
  ) : /* @__PURE__ */ t.jsx(
749
- j,
749
+ v,
750
750
  {
751
751
  name: "Image",
752
752
  width: 16,
@@ -768,7 +768,7 @@ const Ri = (o) => {
768
768
  var T;
769
769
  const R = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
770
770
  p && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
771
- j,
771
+ v,
772
772
  {
773
773
  name: "DotsSixVertical",
774
774
  hoverable: !0,
@@ -776,7 +776,7 @@ const Ri = (o) => {
776
776
  height: 20
777
777
  }
778
778
  ) }),
779
- b === "select" && S && /* @__PURE__ */ t.jsx(
779
+ j === "select" && S && /* @__PURE__ */ t.jsx(
780
780
  rt,
781
781
  {
782
782
  onChange: (L) => {
@@ -800,7 +800,7 @@ const Ri = (o) => {
800
800
  leftAddon: D(_.images)
801
801
  }
802
802
  ),
803
- b === "input" && /* @__PURE__ */ t.jsx(
803
+ j === "input" && /* @__PURE__ */ t.jsx(
804
804
  yt,
805
805
  {
806
806
  onChange: (L) => {
@@ -816,7 +816,7 @@ const Ri = (o) => {
816
816
  placeholder: d
817
817
  }
818
818
  ),
819
- b === "image" && /* @__PURE__ */ t.jsx(
819
+ j === "image" && /* @__PURE__ */ t.jsx(
820
820
  Tt,
821
821
  {
822
822
  onChange: (L) => {
@@ -831,7 +831,7 @@ const Ri = (o) => {
831
831
  ),
832
832
  /* @__PURE__ */ t.jsxs("div", { className: H.buttons, children: [
833
833
  m && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
834
- j,
834
+ v,
835
835
  {
836
836
  name: "Sliders",
837
837
  hoverable: !0,
@@ -841,7 +841,7 @@ const Ri = (o) => {
841
841
  }
842
842
  ) }),
843
843
  l && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
844
- j,
844
+ v,
845
845
  {
846
846
  name: "Trash",
847
847
  hoverable: !0,
@@ -880,11 +880,11 @@ const Ri = (o) => {
880
880
  }
881
881
  )
882
882
  ] }),
883
- v && m && q && y && /* @__PURE__ */ t.jsx(
883
+ y && m && q && b && /* @__PURE__ */ t.jsx(
884
884
  Pt,
885
885
  {
886
886
  ref: P,
887
- activeItem: v,
887
+ activeItem: y,
888
888
  setActiveItem: M,
889
889
  popupPosition: O,
890
890
  modalOptions: q,
@@ -936,26 +936,26 @@ const Ri = (o) => {
936
936
  break;
937
937
  }
938
938
  }
939
- b === "select" && S ? _.push({
939
+ j === "select" && S ? _.push({
940
940
  name: {
941
941
  "en-US": R || S[0]
942
942
  },
943
- id: at(),
943
+ id: st(),
944
944
  ...E,
945
945
  maxSymbols: 100
946
946
  // пример значения
947
- }) : b === "input" ? _.push({
947
+ }) : j === "input" ? _.push({
948
948
  name: {
949
949
  "en-US": ""
950
950
  },
951
- id: at(),
951
+ id: st(),
952
952
  ...E,
953
953
  maxSymbols: 100
954
954
  }) : _.push({
955
955
  name: {
956
956
  "en-US": `Image ${n.length + 1}`
957
957
  },
958
- id: at(),
958
+ id: st(),
959
959
  ...E,
960
960
  maxSymbols: 100
961
961
  }), i(_);
@@ -966,7 +966,7 @@ const Ri = (o) => {
966
966
  children: /* @__PURE__ */ t.jsxs("div", { className: H.addButton, children: [
967
967
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
968
968
  /* @__PURE__ */ t.jsx(
969
- j,
969
+ v,
970
970
  {
971
971
  name: "Plus",
972
972
  width: 16,
@@ -1008,22 +1008,22 @@ const Ri = (o) => {
1008
1008
  const { buttons: s, setButtons: e, deletable: n = !0, addable: i = !0, editableLink: c = !0 } = o, { pages: u } = lt(), [r, m] = x.useState(null), [p, B] = x.useState({
1009
1009
  top: 0,
1010
1010
  left: 0
1011
- }), [l, a] = x.useState(null), b = x.useRef(null);
1011
+ }), [l, a] = x.useState(null), j = x.useRef(null);
1012
1012
  x.useEffect(() => {
1013
1013
  if (r) {
1014
1014
  const g = [...s].map((k) => k.id === r.id ? r : k);
1015
1015
  e(g);
1016
1016
  }
1017
1017
  }, [r]), x.useEffect(() => {
1018
- if (b.current && l) {
1019
- const g = b.current.getBoundingClientRect().height, k = window.innerHeight;
1018
+ if (j.current && l) {
1019
+ const g = j.current.getBoundingClientRect().height, k = window.innerHeight;
1020
1020
  let q = l.top;
1021
1021
  q + g > k + window.scrollY - 200 && (q = k + window.scrollY - g - 200), q < 0 && (q = 10), B({
1022
1022
  top: q,
1023
1023
  left: l.left
1024
1024
  });
1025
1025
  }
1026
- }, [b.current, l]);
1026
+ }, [j.current, l]);
1027
1027
  const d = (g, k) => {
1028
1028
  g.stopPropagation();
1029
1029
  const q = g.target.getBoundingClientRect();
@@ -1050,10 +1050,10 @@ const Ri = (o) => {
1050
1050
  rt,
1051
1051
  {
1052
1052
  onChange: (q) => {
1053
- const f = [...s].map((v) => v.id === g.id ? {
1053
+ const f = [...s].map((y) => y.id === g.id ? {
1054
1054
  ...g,
1055
1055
  type: q
1056
- } : v);
1056
+ } : y);
1057
1057
  e(f);
1058
1058
  },
1059
1059
  value: g.type,
@@ -1062,7 +1062,7 @@ const Ri = (o) => {
1062
1062
  ),
1063
1063
  /* @__PURE__ */ t.jsxs("div", { className: tt.buttons, children: [
1064
1064
  /* @__PURE__ */ t.jsx("div", { className: tt.deleteButton, children: /* @__PURE__ */ t.jsx(
1065
- j,
1065
+ v,
1066
1066
  {
1067
1067
  name: "Copy",
1068
1068
  hoverable: !0,
@@ -1074,7 +1074,7 @@ const Ri = (o) => {
1074
1074
  }
1075
1075
  ) }),
1076
1076
  /* @__PURE__ */ t.jsx("div", { className: tt.deleteButton, children: /* @__PURE__ */ t.jsx(
1077
- j,
1077
+ v,
1078
1078
  {
1079
1079
  name: "Sliders",
1080
1080
  hoverable: !0,
@@ -1086,7 +1086,7 @@ const Ri = (o) => {
1086
1086
  }
1087
1087
  ) }),
1088
1088
  n && /* @__PURE__ */ t.jsx("div", { className: tt.deleteButton, children: /* @__PURE__ */ t.jsx(
1089
- j,
1089
+ v,
1090
1090
  {
1091
1091
  name: "Trash",
1092
1092
  hoverable: !0,
@@ -1107,7 +1107,7 @@ const Ri = (o) => {
1107
1107
  r && /* @__PURE__ */ t.jsx(
1108
1108
  Mt,
1109
1109
  {
1110
- ref: b,
1110
+ ref: j,
1111
1111
  activeButton: r,
1112
1112
  setActiveButton: m,
1113
1113
  popupPosition: p,
@@ -1132,7 +1132,7 @@ const Ri = (o) => {
1132
1132
  const g = [...s];
1133
1133
  c ? g.push({
1134
1134
  type: "Primary",
1135
- id: at(),
1135
+ id: st(),
1136
1136
  typesText: [],
1137
1137
  text: {
1138
1138
  "en-US": "Button Name"
@@ -1142,7 +1142,7 @@ const Ri = (o) => {
1142
1142
  openInNewTab: !1
1143
1143
  }) : g.push({
1144
1144
  type: "Primary",
1145
- id: at(),
1145
+ id: st(),
1146
1146
  typesText: [],
1147
1147
  text: {
1148
1148
  "en-US": "Create Ticket"
@@ -1158,7 +1158,7 @@ const Ri = (o) => {
1158
1158
  children: /* @__PURE__ */ t.jsxs("div", { className: tt.addButton, children: [
1159
1159
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1160
1160
  /* @__PURE__ */ t.jsx(
1161
- j,
1161
+ v,
1162
1162
  {
1163
1163
  name: "Plus",
1164
1164
  width: 16,
@@ -1237,7 +1237,7 @@ const zi = (o) => {
1237
1237
  withImage: B = !1,
1238
1238
  deletable: l = !0,
1239
1239
  addable: a = !0,
1240
- itemsType: b,
1240
+ itemsType: j,
1241
1241
  itemsOptions: d,
1242
1242
  limit: S
1243
1243
  } = o, [g, k] = x.useState(
@@ -1245,7 +1245,7 @@ const zi = (o) => {
1245
1245
  ), [q, E] = x.useState({
1246
1246
  top: 0,
1247
1247
  left: 0
1248
- }), [f, v] = x.useState(!1), M = ut(
1248
+ }), [f, y] = x.useState(!1), M = ut(
1249
1249
  mt(ht, {
1250
1250
  activationConstraint: {
1251
1251
  distance: 5
@@ -1253,39 +1253,39 @@ const zi = (o) => {
1253
1253
  })
1254
1254
  );
1255
1255
  x.useEffect(() => {
1256
- const y = () => {
1257
- k(null), v(!1);
1256
+ const b = () => {
1257
+ k(null), y(!1);
1258
1258
  };
1259
- return document.body.addEventListener("click", y), k(null), v(!1), () => {
1260
- k(null), v(!1), document.body.removeEventListener("click", y);
1259
+ return document.body.addEventListener("click", b), k(null), y(!1), () => {
1260
+ k(null), y(!1), document.body.removeEventListener("click", b);
1261
1261
  };
1262
1262
  }, []), x.useEffect(() => {
1263
1263
  if (g) {
1264
- const y = [...n].map((N) => N.listingId === g.listingId ? g : N);
1265
- i(y);
1264
+ const b = [...n].map((N) => N.listingId === g.listingId ? g : N);
1265
+ i(b);
1266
1266
  }
1267
1267
  }, [g]);
1268
- const O = (y, N) => {
1269
- y.stopPropagation();
1270
- const A = y.target.getBoundingClientRect(), U = 100, D = window.innerHeight;
1268
+ const O = (b, N) => {
1269
+ b.stopPropagation();
1270
+ const A = b.target.getBoundingClientRect(), U = 100, D = window.innerHeight;
1271
1271
  let z = A.top + window.scrollY;
1272
- z + U > D && (z = D - U - 20), v(!0), E({
1272
+ z + U > D && (z = D - U - 20), y(!0), E({
1273
1273
  top: z - 80,
1274
1274
  left: A.left - 30
1275
1275
  }), k(N);
1276
1276
  };
1277
- function I(y) {
1277
+ function I(b) {
1278
1278
  if (B)
1279
- return y ? /* @__PURE__ */ t.jsx(
1279
+ return b ? /* @__PURE__ */ t.jsx(
1280
1280
  "img",
1281
1281
  {
1282
- src: `https://imagedelivery.net/${y}/w=1000`,
1282
+ src: `https://imagedelivery.net/${b}/w=1000`,
1283
1283
  alt: "image",
1284
1284
  width: 16,
1285
1285
  height: 16
1286
1286
  }
1287
1287
  ) : /* @__PURE__ */ t.jsx(
1288
- j,
1288
+ v,
1289
1289
  {
1290
1290
  name: "Image",
1291
1291
  width: 16,
@@ -1294,8 +1294,8 @@ const zi = (o) => {
1294
1294
  }
1295
1295
  );
1296
1296
  }
1297
- const h = (y) => {
1298
- const { active: N, over: A } = y;
1297
+ const h = (b) => {
1298
+ const { active: N, over: A } = b;
1299
1299
  if (A && N.id !== A.id) {
1300
1300
  const U = n.findIndex((z) => String(z.listingId) === N.id), D = n.findIndex((z) => String(z.listingId) === A.id);
1301
1301
  if (U !== -1 && D !== -1) {
@@ -1303,12 +1303,12 @@ const zi = (o) => {
1303
1303
  z.splice(D, 0, Z), i(z);
1304
1304
  }
1305
1305
  }
1306
- }, $ = (y, N) => {
1307
- const A = d.find((D) => y.listingId === D.id);
1306
+ }, $ = (b, N) => {
1307
+ const A = d.find((D) => b.listingId === D.id);
1308
1308
  if (!A) return null;
1309
1309
  const U = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1310
1310
  p && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1311
- j,
1311
+ v,
1312
1312
  {
1313
1313
  name: "DotsSixVertical",
1314
1314
  hoverable: !0,
@@ -1316,7 +1316,7 @@ const zi = (o) => {
1316
1316
  height: 20
1317
1317
  }
1318
1318
  ) }),
1319
- b === "select" && /* @__PURE__ */ t.jsx(
1319
+ j === "select" && /* @__PURE__ */ t.jsx(
1320
1320
  rt,
1321
1321
  {
1322
1322
  onChange: (D) => {
@@ -1325,7 +1325,7 @@ const zi = (o) => {
1325
1325
  const _ = {
1326
1326
  listingId: Z.id,
1327
1327
  image: Z.productData.images.length > 0 ? Z.productData.images[0].cfId : ""
1328
- }, R = z.map((T) => T.listingId === y.listingId ? _ : T);
1328
+ }, R = z.map((T) => T.listingId === b.listingId ? _ : T);
1329
1329
  k(_), i([...R]);
1330
1330
  },
1331
1331
  value: A.productData.name,
@@ -1333,31 +1333,31 @@ const zi = (o) => {
1333
1333
  ...d.filter((D) => !n.find((z) => z.listingId === D.id)).map((D) => D.productData.name)
1334
1334
  ],
1335
1335
  leftAddon: I(
1336
- y.image || A.productData.images.length > 0 && A.productData.images[0].cfId || ""
1336
+ b.image || A.productData.images.length > 0 && A.productData.images[0].cfId || ""
1337
1337
  )
1338
1338
  },
1339
1339
  N
1340
1340
  ),
1341
1341
  /* @__PURE__ */ t.jsxs("div", { className: G.buttons, children: [
1342
1342
  m && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
1343
- j,
1343
+ v,
1344
1344
  {
1345
1345
  name: "Sliders",
1346
1346
  hoverable: !0,
1347
1347
  width: 20,
1348
1348
  height: 20,
1349
- onClick: (D) => O(D, y)
1349
+ onClick: (D) => O(D, b)
1350
1350
  }
1351
1351
  ) }),
1352
1352
  l && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
1353
- j,
1353
+ v,
1354
1354
  {
1355
1355
  name: "Trash",
1356
1356
  hoverable: !0,
1357
1357
  width: 20,
1358
1358
  height: 20,
1359
1359
  fill: "#C12A2A",
1360
- onClick: () => i(n.filter((D) => D !== y))
1360
+ onClick: () => i(n.filter((D) => D !== b))
1361
1361
  }
1362
1362
  ) })
1363
1363
  ] })
@@ -1365,17 +1365,17 @@ const zi = (o) => {
1365
1365
  return p ? /* @__PURE__ */ t.jsx(
1366
1366
  jn,
1367
1367
  {
1368
- product: y,
1368
+ product: b,
1369
1369
  children: U
1370
1370
  },
1371
- y.listingId
1371
+ b.listingId
1372
1372
  ) : /* @__PURE__ */ t.jsx(
1373
1373
  "div",
1374
1374
  {
1375
1375
  className: G.product,
1376
1376
  children: U
1377
1377
  },
1378
- y.listingId
1378
+ b.listingId
1379
1379
  );
1380
1380
  }, P = x.useRef(null);
1381
1381
  return /* @__PURE__ */ t.jsxs("div", { className: G.productsBlock, children: [
@@ -1385,7 +1385,7 @@ const zi = (o) => {
1385
1385
  ot,
1386
1386
  {
1387
1387
  current: s,
1388
- onChange: (y) => e == null ? void 0 : e(y)
1388
+ onChange: (b) => e == null ? void 0 : e(b)
1389
1389
  }
1390
1390
  )
1391
1391
  ] }),
@@ -1395,7 +1395,7 @@ const zi = (o) => {
1395
1395
  ref: P,
1396
1396
  activeItem: g,
1397
1397
  setActiveItem: k,
1398
- setIsOpenModal: v,
1398
+ setIsOpenModal: y,
1399
1399
  popupPosition: q,
1400
1400
  itemsOptions: d
1401
1401
  }
@@ -1410,13 +1410,13 @@ const zi = (o) => {
1410
1410
  children: /* @__PURE__ */ t.jsx(
1411
1411
  _t,
1412
1412
  {
1413
- items: n.map((y) => String(y.listingId)),
1413
+ items: n.map((b) => String(b.listingId)),
1414
1414
  strategy: gt,
1415
- children: n.map((y, N) => $(y, N))
1415
+ children: n.map((b, N) => $(b, N))
1416
1416
  }
1417
1417
  )
1418
1418
  }
1419
- ) : n.map((y, N) => $(y, N)),
1419
+ ) : n.map((b, N) => $(b, N)),
1420
1420
  a && /* @__PURE__ */ t.jsx(
1421
1421
  "div",
1422
1422
  {
@@ -1432,16 +1432,16 @@ const zi = (o) => {
1432
1432
  className: G.button,
1433
1433
  size: "s",
1434
1434
  onClick: () => {
1435
- const y = [...n];
1435
+ const b = [...n];
1436
1436
  for (let N = 0; N < d.length; N++)
1437
1437
  if (!n.find((A) => A.listingId === d[N].id)) {
1438
- y.push({
1438
+ b.push({
1439
1439
  listingId: d[N].id,
1440
1440
  image: d[N].productData.images.length > 0 ? d[N].productData.images[0].cfId : ""
1441
1441
  });
1442
1442
  break;
1443
1443
  }
1444
- i(y);
1444
+ i(b);
1445
1445
  },
1446
1446
  disabled: n.length === (S || d.length),
1447
1447
  style: {
@@ -1450,7 +1450,7 @@ const zi = (o) => {
1450
1450
  children: /* @__PURE__ */ t.jsxs("div", { className: G.addButton, children: [
1451
1451
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1452
1452
  /* @__PURE__ */ t.jsx(
1453
- j,
1453
+ v,
1454
1454
  {
1455
1455
  name: "Plus",
1456
1456
  width: 16,
@@ -1495,7 +1495,7 @@ const Un = (o) => {
1495
1495
  var q, E;
1496
1496
  const { variants: s } = o, [e, n] = x.useState(s[0]), [i, c] = x.useState(
1497
1497
  e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
1498
- ), u = vt(), [r, m] = x.useState(1), { products: p, cart: B, reset: l, addProductToCart: a } = dt(), [b, d] = x.useState(!1);
1498
+ ), u = vt(), [r, m] = x.useState(1), { products: p, cart: B, reset: l, addProductToCart: a } = dt(), [j, d] = x.useState(!1);
1499
1499
  console.log(B), x.useEffect(() => {
1500
1500
  d(!0);
1501
1501
  const f = setTimeout(() => d(!1), 600);
@@ -1541,7 +1541,7 @@ const Un = (o) => {
1541
1541
  f
1542
1542
  )) }),
1543
1543
  /* @__PURE__ */ t.jsx("div", { className: w.variants, children: s.map((f) => {
1544
- var v, M;
1544
+ var y, M;
1545
1545
  return /* @__PURE__ */ t.jsxs(
1546
1546
  "div",
1547
1547
  {
@@ -1558,7 +1558,7 @@ const Un = (o) => {
1558
1558
  ] })
1559
1559
  ] }),
1560
1560
  /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: w.stock, children: [
1561
- (v = f.quantity.restrictions) != null && v.max || f.quantity.available !== void 0 ? ((M = f.quantity.restrictions) == null ? void 0 : M.max) || f.quantity.available : "∞",
1561
+ (y = f.quantity.restrictions) != null && y.max || f.quantity.available !== void 0 ? ((M = f.quantity.restrictions) == null ? void 0 : M.max) || f.quantity.available : "∞",
1562
1562
  " ",
1563
1563
  "in stock"
1564
1564
  ] }) })
@@ -1577,7 +1577,7 @@ const Un = (o) => {
1577
1577
  },
1578
1578
  className: w.button,
1579
1579
  disabled: e.quantity.available && e.quantity.restrictions && r <= e.quantity.restrictions.min || e.quantity.available === 0,
1580
- children: /* @__PURE__ */ t.jsx(j, { name: "Minus" })
1580
+ children: /* @__PURE__ */ t.jsx(v, { name: "Minus" })
1581
1581
  }
1582
1582
  ),
1583
1583
  /* @__PURE__ */ t.jsx(
@@ -1601,7 +1601,7 @@ const Un = (o) => {
1601
1601
  },
1602
1602
  className: w.button,
1603
1603
  disabled: !!(e.quantity.available && e.quantity.restrictions && r >= e.quantity.restrictions.max || e.quantity.available === 0),
1604
- children: /* @__PURE__ */ t.jsx(j, { name: "Plus" })
1604
+ children: /* @__PURE__ */ t.jsx(v, { name: "Plus" })
1605
1605
  }
1606
1606
  )
1607
1607
  ] }),
@@ -1610,7 +1610,7 @@ const Un = (o) => {
1610
1610
  /* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
1611
1611
  /* @__PURE__ */ t.jsxs("div", { className: w.infoRight, children: [
1612
1612
  /* @__PURE__ */ t.jsx(
1613
- j,
1613
+ v,
1614
1614
  {
1615
1615
  name: "Lightning",
1616
1616
  fill: "#FF3F19",
@@ -1624,7 +1624,7 @@ const Un = (o) => {
1624
1624
  /* @__PURE__ */ t.jsxs("div", { className: w.info, children: [
1625
1625
  /* @__PURE__ */ t.jsx("span", { children: "Price" }),
1626
1626
  /* @__PURE__ */ t.jsx("div", { className: w.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: w.price, children: [
1627
- /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: b }), children: [
1627
+ /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: j }), children: [
1628
1628
  "$ ",
1629
1629
  (e.price.amount || 0) * r
1630
1630
  ] }),
@@ -1632,11 +1632,11 @@ const Un = (o) => {
1632
1632
  "$ ",
1633
1633
  (e.compareAtPrice.amount || 0) * r
1634
1634
  ] })
1635
- ] }) : /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: b }), children: [
1635
+ ] }) : /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: j }), children: [
1636
1636
  "$ ",
1637
1637
  (e.price.amount || 0) * r
1638
1638
  ] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: w.price, children: [
1639
- /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: b }), children: [
1639
+ /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: j }), children: [
1640
1640
  "$ ",
1641
1641
  e.subscriptionSettings.price.amount || 0
1642
1642
  ] }),
@@ -1644,7 +1644,7 @@ const Un = (o) => {
1644
1644
  "$ ",
1645
1645
  e.subscriptionSettings.compareAtPrice.amount || 0
1646
1646
  ] })
1647
- ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: b }), children: [
1647
+ ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: V(w.newPrice, { [w.animate]: j }), children: [
1648
1648
  "$ ",
1649
1649
  e.subscriptionSettings.price.amount || 0
1650
1650
  ] }) })
@@ -1721,23 +1721,23 @@ const Un = (o) => {
1721
1721
  const [o, s] = x.useState(!1), [e, n] = x.useState([]), { cart: i } = dt(), { pageContext: c } = lt();
1722
1722
  function u(a) {
1723
1723
  if (a.variants.length > 0) {
1724
- for (let b = 0; b < i.parts.length; b++)
1724
+ for (let j = 0; j < i.parts.length; j++)
1725
1725
  for (let d = 0; d < a.variants.length; d++)
1726
- if (a.variants[d] && i.parts[b].productVariantId === a.variants[d].id)
1727
- return i.parts[b].productVariantId;
1726
+ if (a.variants[d] && i.parts[j].productVariantId === a.variants[d].id)
1727
+ return i.parts[j].productVariantId;
1728
1728
  }
1729
1729
  return a.variants[0].id;
1730
1730
  }
1731
1731
  function r(a) {
1732
- for (let b = 0; b < i.parts.length; b++)
1732
+ for (let j = 0; j < i.parts.length; j++)
1733
1733
  for (let d = 0; d < a.variants.length; d++)
1734
- if (a.variants[d] && i.parts[b].productVariantId === a.variants[d].id)
1735
- return i.parts[b].quantity;
1734
+ if (a.variants[d] && i.parts[j].productVariantId === a.variants[d].id)
1735
+ return i.parts[j].quantity;
1736
1736
  }
1737
1737
  x.useEffect(() => {
1738
1738
  (async () => {
1739
1739
  var g;
1740
- const b = i.parts.map((k) => String(k.productId)), S = (((g = c == null ? void 0 : c.products) == null ? void 0 : g.filter((k) => b.includes(String(k.id)))) || []).map((k) => ({
1740
+ const j = i.parts.map((k) => String(k.productId)), S = (((g = c == null ? void 0 : c.products) == null ? void 0 : g.filter((k) => j.includes(String(k.id)))) || []).map((k) => ({
1741
1741
  ...k,
1742
1742
  activeVariantId: u(k),
1743
1743
  quantity: r(k)
@@ -1746,8 +1746,8 @@ const Un = (o) => {
1746
1746
  })();
1747
1747
  }, [i.parts]);
1748
1748
  function m(a) {
1749
- var b;
1750
- return !a || !(a != null && a.variants) ? !1 : (b = a.variants.find((d) => d.id === a.activeVariantId)) == null ? void 0 : b.subscriptionSettings;
1749
+ var j;
1750
+ return !a || !(a != null && a.variants) ? !1 : (j = a.variants.find((d) => d.id === a.activeVariantId)) == null ? void 0 : j.subscriptionSettings;
1751
1751
  }
1752
1752
  const p = i.parts.length > 0 && e.length > 0 && !m(e[0]), [B, l] = x.useState(!1);
1753
1753
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -1764,7 +1764,7 @@ const Un = (o) => {
1764
1764
  },
1765
1765
  children: [
1766
1766
  /* @__PURE__ */ t.jsx(
1767
- j,
1767
+ v,
1768
1768
  {
1769
1769
  name: "Handbag",
1770
1770
  fill: "var(--text-primary)"
@@ -1855,7 +1855,7 @@ const Un = (o) => {
1855
1855
  className: C.image
1856
1856
  }
1857
1857
  ) : /* @__PURE__ */ t.jsx("div", { className: C.image, children: /* @__PURE__ */ t.jsx(
1858
- j,
1858
+ v,
1859
1859
  {
1860
1860
  name: "Image",
1861
1861
  fill: "var(--text-secondary)"
@@ -1865,7 +1865,7 @@ const Un = (o) => {
1865
1865
  /* @__PURE__ */ t.jsx("div", { className: C.name, children: Nt(a.name) }),
1866
1866
  /* @__PURE__ */ t.jsxs("div", { className: C.price, children: [
1867
1867
  "$",
1868
- a.variants.find((b) => b.id === a.activeVariantId).price.amount * ((a == null ? void 0 : a.quantity) || 1)
1868
+ a.variants.find((j) => j.id === a.activeVariantId).price.amount * ((a == null ? void 0 : a.quantity) || 1)
1869
1869
  ] })
1870
1870
  ] })
1871
1871
  ] }),
@@ -1880,7 +1880,7 @@ const Un = (o) => {
1880
1880
  className: C.productButton,
1881
1881
  disabled: a.quantity === 1,
1882
1882
  children: /* @__PURE__ */ t.jsx(
1883
- j,
1883
+ v,
1884
1884
  {
1885
1885
  name: "Minus",
1886
1886
  fill: "#757575",
@@ -1897,9 +1897,9 @@ const Un = (o) => {
1897
1897
  type: "Secondary",
1898
1898
  onClick: () => B(a),
1899
1899
  className: C.productButton,
1900
- disabled: a.quantity === a.variants.find((b) => b.id === a.activeVariantId).quantity.available,
1900
+ disabled: a.quantity === a.variants.find((j) => j.id === a.activeVariantId).quantity.available,
1901
1901
  children: /* @__PURE__ */ t.jsx(
1902
- j,
1902
+ v,
1903
1903
  {
1904
1904
  name: "Plus",
1905
1905
  fill: "#757575",
@@ -1919,7 +1919,7 @@ const Un = (o) => {
1919
1919
  /* @__PURE__ */ t.jsxs("div", { className: C.block, children: [
1920
1920
  /* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
1921
1921
  /* @__PURE__ */ t.jsx(
1922
- j,
1922
+ v,
1923
1923
  {
1924
1924
  name: "Info",
1925
1925
  width: 20,
@@ -1941,7 +1941,7 @@ const Un = (o) => {
1941
1941
  );
1942
1942
  }, $s = () => /* @__PURE__ */ t.jsxs("div", { className: C.empty, children: [
1943
1943
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1944
- j,
1944
+ v,
1945
1945
  {
1946
1946
  name: "Handbag",
1947
1947
  fill: "var(--text-secondary)"
@@ -2036,7 +2036,7 @@ const Un = (o) => {
2036
2036
  type: "Secondary",
2037
2037
  onClick: c,
2038
2038
  children: /* @__PURE__ */ t.jsx(
2039
- j,
2039
+ v,
2040
2040
  {
2041
2041
  name: "X",
2042
2042
  fill: "var(--text-primary)"
@@ -2087,7 +2087,7 @@ const Un = (o) => {
2087
2087
  e.stopPropagation(), window.location.pathname.includes("/admin/builder") || s(!0);
2088
2088
  },
2089
2089
  children: /* @__PURE__ */ t.jsx(
2090
- j,
2090
+ v,
2091
2091
  {
2092
2092
  name: "List",
2093
2093
  fill: "var(--text-primary)"
@@ -2122,7 +2122,7 @@ const Un = (o) => {
2122
2122
  },
2123
2123
  type: "Secondary",
2124
2124
  children: /* @__PURE__ */ t.jsx(
2125
- j,
2125
+ v,
2126
2126
  {
2127
2127
  name: "Share",
2128
2128
  fill: "#757575",
@@ -2158,7 +2158,7 @@ const Un = (o) => {
2158
2158
  /* @__PURE__ */ t.jsxs("div", { className: et.header, children: [
2159
2159
  /* @__PURE__ */ t.jsx("div", { className: et.title, children: o }),
2160
2160
  /* @__PURE__ */ t.jsx(
2161
- j,
2161
+ v,
2162
2162
  {
2163
2163
  name: "X",
2164
2164
  fill: "#757575",
@@ -2188,14 +2188,14 @@ const Un = (o) => {
2188
2188
  {
2189
2189
  type: "Secondary",
2190
2190
  onClick: u,
2191
- children: e ? /* @__PURE__ */ t.jsx(j, { name: "Check" }) : /* @__PURE__ */ t.jsx(j, { name: "Copy" })
2191
+ children: e ? /* @__PURE__ */ t.jsx(v, { name: "Check" }) : /* @__PURE__ */ t.jsx(v, { name: "Copy" })
2192
2192
  }
2193
2193
  )
2194
2194
  ] })
2195
2195
  ]
2196
2196
  }
2197
2197
  );
2198
- }, Vs = "_accordion_1s1lq_1", Us = "_header_1s1lq_9", Hs = "_icon_1s1lq_18", Ys = "_open_1s1lq_21", Ws = "_content_1s1lq_25", it = {
2198
+ }, Vs = "_accordion_1s1lq_1", Us = "_header_1s1lq_9", Hs = "_icon_1s1lq_18", Ys = "_open_1s1lq_21", Ws = "_content_1s1lq_25", at = {
2199
2199
  accordion: Vs,
2200
2200
  header: Us,
2201
2201
  icon: Hs,
@@ -2207,15 +2207,15 @@ const Un = (o) => {
2207
2207
  };
2208
2208
  return x.useEffect(() => {
2209
2209
  r.current && u(n ? r.current.scrollHeight : 0);
2210
- }, [n]), /* @__PURE__ */ t.jsxs("div", { className: it.accordion, children: [
2210
+ }, [n]), /* @__PURE__ */ t.jsxs("div", { className: at.accordion, children: [
2211
2211
  /* @__PURE__ */ t.jsxs(
2212
2212
  "div",
2213
2213
  {
2214
- className: it.header,
2214
+ className: at.header,
2215
2215
  onClick: m,
2216
2216
  children: [
2217
2217
  /* @__PURE__ */ t.jsx("h5", { id: "h5", children: o }),
2218
- /* @__PURE__ */ t.jsx("div", { className: V(it.icon, { [it.open]: n }), children: /* @__PURE__ */ t.jsx(j, { name: "CaretDown" }) })
2218
+ /* @__PURE__ */ t.jsx("div", { className: V(at.icon, { [at.open]: n }), children: /* @__PURE__ */ t.jsx(v, { name: "CaretDown" }) })
2219
2219
  ]
2220
2220
  }
2221
2221
  ),
@@ -2223,7 +2223,7 @@ const Un = (o) => {
2223
2223
  "div",
2224
2224
  {
2225
2225
  ref: r,
2226
- className: it.content,
2226
+ className: at.content,
2227
2227
  style: { height: `${c}px` },
2228
2228
  children: /* @__PURE__ */ t.jsx("p", { id: "p", children: s })
2229
2229
  }
@@ -2328,7 +2328,7 @@ const Un = (o) => {
2328
2328
  style: { objectFit: "contain", width: "48px", height: "48px" }
2329
2329
  }
2330
2330
  ) : /* @__PURE__ */ t.jsx(
2331
- j,
2331
+ v,
2332
2332
  {
2333
2333
  name: "Image",
2334
2334
  width: 48,
@@ -2408,7 +2408,7 @@ const Un = (o) => {
2408
2408
  );
2409
2409
  }, ki = (o) => {
2410
2410
  const { variants: s, activeChargeType: e, setActiveChargeType: n, activeVariant: i, productId: c, setIsOpen: u } = o, { cart: r, addProductToCart: m, addProducts: p, updateQuantityOfProduct: B } = dt(), { setNotification: l } = qt(), { pageContext: a } = lt();
2411
- async function b(d) {
2411
+ async function j(d) {
2412
2412
  const S = r.parts.find(
2413
2413
  (g) => g.productId === o.productId && g.productVariantId === d
2414
2414
  );
@@ -2429,7 +2429,7 @@ const Un = (o) => {
2429
2429
  /* @__PURE__ */ t.jsxs("div", { className: X.header, children: [
2430
2430
  /* @__PURE__ */ t.jsx("div", { id: "h3", children: "Choose a variant" }),
2431
2431
  /* @__PURE__ */ t.jsx(
2432
- j,
2432
+ v,
2433
2433
  {
2434
2434
  name: "X",
2435
2435
  width: 24,
@@ -2458,7 +2458,7 @@ const Un = (o) => {
2458
2458
  {
2459
2459
  className: V(X.variant),
2460
2460
  onClick: () => {
2461
- b(d.id), u(!1);
2461
+ j(d.id), u(!1);
2462
2462
  },
2463
2463
  children: [
2464
2464
  /* @__PURE__ */ t.jsxs("div", { className: X.variantInfo, children: [
@@ -2488,7 +2488,7 @@ const Un = (o) => {
2488
2488
  Nt(s.name)
2489
2489
  ] }),
2490
2490
  /* @__PURE__ */ t.jsx(
2491
- j,
2491
+ v,
2492
2492
  {
2493
2493
  name: "X",
2494
2494
  width: 24,
@@ -2505,7 +2505,7 @@ const Un = (o) => {
2505
2505
  ] }),
2506
2506
  /* @__PURE__ */ t.jsx(Un, { ...s })
2507
2507
  ] });
2508
- }, Si = "_wrapper_1efqk_1", $i = "_label_1efqk_10", wi = "_contentBorder_1efqk_19", qi = "_contentField_1efqk_23", Bi = "_textarea_1efqk_27", Pi = "_length_1efqk_42", st = {
2508
+ }, Si = "_wrapper_1efqk_1", $i = "_label_1efqk_10", wi = "_contentBorder_1efqk_19", qi = "_contentField_1efqk_23", Bi = "_textarea_1efqk_27", Pi = "_length_1efqk_42", it = {
2509
2509
  wrapper: Si,
2510
2510
  label: $i,
2511
2511
  contentBorder: wi,
@@ -2524,11 +2524,11 @@ const Un = (o) => {
2524
2524
  function B(l) {
2525
2525
  return u === "number" ? l.replace(/[^\d\n]+/g, "") : l;
2526
2526
  }
2527
- return /* @__PURE__ */ t.jsxs("div", { className: st.wrapper, children: [
2527
+ return /* @__PURE__ */ t.jsxs("div", { className: it.wrapper, children: [
2528
2528
  e && /* @__PURE__ */ t.jsx(
2529
2529
  "label",
2530
2530
  {
2531
- className: st.label,
2531
+ className: it.label,
2532
2532
  htmlFor: e,
2533
2533
  children: e
2534
2534
  }
@@ -2543,14 +2543,14 @@ const Un = (o) => {
2543
2543
  m(a.length), s(a);
2544
2544
  },
2545
2545
  placeholder: c,
2546
- className: V(st.textarea, {
2547
- [st.contentBorder]: p.inputs.border.active,
2548
- [st.contentField]: p.inputs.field.active
2546
+ className: V(it.textarea, {
2547
+ [it.contentBorder]: p.inputs.border.active,
2548
+ [it.contentField]: p.inputs.field.active
2549
2549
  }),
2550
2550
  maxLength: i
2551
2551
  }
2552
2552
  ),
2553
- i && /* @__PURE__ */ t.jsxs("div", { className: st.length, children: [
2553
+ i && /* @__PURE__ */ t.jsxs("div", { className: it.length, children: [
2554
2554
  r,
2555
2555
  "/",
2556
2556
  i
@@ -2570,7 +2570,7 @@ export {
2570
2570
  $s as EmptyCart,
2571
2571
  Ri as FormSettings,
2572
2572
  Fi as HeaderButtons,
2573
- j as Icon,
2573
+ v as Icon,
2574
2574
  yt as InputSettings,
2575
2575
  Ot as InputUI,
2576
2576
  ta as ItemsSettings,