@billgangcom/theme-lib 1.44.0 → 1.44.1

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 U, a as K, S as st, T as qt, b as et, C as ft, u as $t, d as Nt, D as wt, e as Ct, v as Bt, B as lt, f as _t, P as St, g as Tt, h as Pt, i as Vt, k as Et, l as jt, m as At, M as Mt, n as Dt, o as Lt, p as Ut } from "./index-CsriRi8a.js";
2
- import { q as Aa, L as Ma } from "./index-CsriRi8a.js";
1
+ import { j as t, I as v, c as U, a as K, S as st, T as qt, b as et, C as ft, u as $t, d as Nt, D as wt, e as Ct, v as Bt, B as lt, f as _t, P as St, g as Tt, h as Pt, i as Vt, k as Et, l as jt, m as At, M as Mt, n as Dt, o as Lt, p as Ut } from "./index-Dg3e7rFo.js";
2
+ import { q as Aa, L as Ma } from "./index-Dg3e7rFo.js";
3
3
  import f from "react";
4
4
  import "@phosphor-icons/react";
5
5
  const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1ibay_15", Wt = "_subtitle_1ibay_22", Jt = "_alignmentContent_1ibay_29", Qt = "_alignments_1ibay_37", Kt = "_alignment_1ibay_8", Zt = "_circle_1ibay_60", te = "_paddings_1ibay_67", ee = "_padding_1ibay_67", se = "_active_1ibay_91", ne = "_input_1ibay_98", J = {
@@ -27,8 +27,8 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
27
27
  "bottomRight"
28
28
  ], oe = ["left", "top", "right", "bottom"], ba = (d) => {
29
29
  const { alignment: o, padding: e, setPadding: s, setAlignment: i } = d;
30
- function a(p) {
31
- switch (p) {
30
+ function a(h) {
31
+ switch (h) {
32
32
  case "left":
33
33
  case "topLeft":
34
34
  case "bottomLeft":
@@ -45,8 +45,8 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
45
45
  return "TextAlignCenter";
46
46
  }
47
47
  }
48
- function l(p) {
49
- switch (p) {
48
+ function l(h) {
49
+ switch (h) {
50
50
  case "left":
51
51
  return "AlignLeft";
52
52
  case "right":
@@ -63,23 +63,23 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
63
63
  /* @__PURE__ */ t.jsxs("div", { className: J.alignmentBlock, children: [
64
64
  /* @__PURE__ */ t.jsx("h5", { className: J.subtitle, children: "Alignment" }),
65
65
  /* @__PURE__ */ t.jsxs("div", { className: J.alignmentContent, children: [
66
- /* @__PURE__ */ t.jsx("div", { className: J.alignments, children: ie.map((p) => /* @__PURE__ */ t.jsxs(
66
+ /* @__PURE__ */ t.jsx("div", { className: J.alignments, children: ie.map((h) => /* @__PURE__ */ t.jsxs(
67
67
  "div",
68
68
  {
69
69
  onClick: () => {
70
- i(p);
70
+ i(h);
71
71
  },
72
72
  className: J.alignment,
73
73
  onMouseEnter: () => {
74
- n(p);
74
+ n(h);
75
75
  },
76
76
  onMouseLeave: () => {
77
77
  n(null);
78
78
  },
79
79
  children: [
80
- p !== o && r !== p && /* @__PURE__ */ t.jsx("div", { className: J.circle }),
81
- p !== o && r === p && /* @__PURE__ */ t.jsx(
82
- j,
80
+ h !== o && r !== h && /* @__PURE__ */ t.jsx("div", { className: J.circle }),
81
+ h !== o && r === h && /* @__PURE__ */ t.jsx(
82
+ v,
83
83
  {
84
84
  name: a(r),
85
85
  fill: "#c2c2c2",
@@ -87,8 +87,8 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
87
87
  height: 22
88
88
  }
89
89
  ),
90
- p === o && /* @__PURE__ */ t.jsx(
91
- j,
90
+ h === o && /* @__PURE__ */ t.jsx(
91
+ v,
92
92
  {
93
93
  name: a(o),
94
94
  fill: "#FF3F19",
@@ -98,25 +98,25 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
98
98
  )
99
99
  ]
100
100
  },
101
- p
101
+ h
102
102
  )) }),
103
- /* @__PURE__ */ t.jsx("div", { className: J.paddings, children: oe.map((p) => /* @__PURE__ */ t.jsxs(
103
+ /* @__PURE__ */ t.jsx("div", { className: J.paddings, children: oe.map((h) => /* @__PURE__ */ t.jsxs(
104
104
  "label",
105
105
  {
106
106
  className: U(J.padding, {
107
- [J.active]: c === p
107
+ [J.active]: c === h
108
108
  }),
109
109
  onFocus: () => {
110
- x(p);
110
+ x(h);
111
111
  },
112
112
  onBlur: () => {
113
113
  x(null);
114
114
  },
115
115
  children: [
116
116
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
117
- j,
117
+ v,
118
118
  {
119
- name: l(p),
119
+ name: l(h),
120
120
  width: 20,
121
121
  height: 20
122
122
  }
@@ -125,10 +125,10 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
125
125
  K,
126
126
  {
127
127
  type: "number",
128
- value: String(e[p]),
129
- onChange: (h) => s({
128
+ value: String(e[h]),
129
+ onChange: (p) => s({
130
130
  ...e,
131
- [p]: Number(h)
131
+ [h]: Number(p)
132
132
  }),
133
133
  paddingless: !0,
134
134
  borderless: !0
@@ -136,23 +136,23 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
136
136
  )
137
137
  ]
138
138
  },
139
- p
139
+ h
140
140
  )) })
141
141
  ] })
142
142
  ] })
143
143
  ] });
144
- }, ae = "_title_1jkiw_1", ce = "_subtitle_1jkiw_5", le = "_header_1jkiw_12", re = "_text_1jkiw_13", de = "_top_1jkiw_20", ue = "_itemsBlock_1jkiw_29", pt = {
144
+ }, ae = "_title_1jkiw_1", ce = "_subtitle_1jkiw_5", le = "_header_1jkiw_12", re = "_text_1jkiw_13", de = "_top_1jkiw_20", ue = "_itemsBlock_1jkiw_29", ht = {
145
145
  title: ae,
146
146
  subtitle: ce,
147
147
  header: le,
148
148
  text: re,
149
149
  top: de,
150
150
  itemsBlock: ue
151
- }, me = "_typeTexts_167ez_1", _e = "_block_167ez_8", pe = "_active_167ez_25", kt = {
151
+ }, me = "_typeTexts_167ez_1", _e = "_block_167ez_8", he = "_active_167ez_25", kt = {
152
152
  typeTexts: me,
153
153
  block: _e,
154
- active: pe
155
- }, he = ["bold", "italic", "underline", "strike-through", "code"], Ht = (d) => {
154
+ active: he
155
+ }, pe = ["bold", "italic", "underline", "strike-through", "code"], Ht = (d) => {
156
156
  const { typesText: o, setTypesText: e } = d;
157
157
  function s(i) {
158
158
  switch (i) {
@@ -168,7 +168,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
168
168
  return "TextUnderline";
169
169
  }
170
170
  }
171
- return /* @__PURE__ */ t.jsx("div", { className: kt.typeTexts, children: he.map((i) => /* @__PURE__ */ t.jsx(
171
+ return /* @__PURE__ */ t.jsx("div", { className: kt.typeTexts, children: pe.map((i) => /* @__PURE__ */ t.jsx(
172
172
  "div",
173
173
  {
174
174
  className: U(kt.block, {
@@ -183,7 +183,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
183
183
  a.push(i), e(a);
184
184
  },
185
185
  children: /* @__PURE__ */ t.jsx(
186
- j,
186
+ v,
187
187
  {
188
188
  name: s(i),
189
189
  fill: o.includes(i) ? "#252525" : "#757575",
@@ -194,7 +194,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
194
194
  },
195
195
  String(i)
196
196
  )) });
197
- }, ht = {
197
+ }, pt = {
198
198
  h1: "Heading 1",
199
199
  h2: "Heading 2",
200
200
  h3: "Heading 3",
@@ -202,7 +202,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
202
202
  h5: "Heading 5",
203
203
  h6: "Heading 6",
204
204
  p: "Paragraph"
205
- }, Rt = (d) => {
205
+ }, zt = (d) => {
206
206
  const {
207
207
  typesText: o,
208
208
  isActiveText: e,
@@ -215,23 +215,23 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
215
215
  typeFont: c,
216
216
  setTypeFont: x
217
217
  } = d;
218
- return /* @__PURE__ */ t.jsxs("div", { className: pt.text, children: [
219
- (r || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: pt.top, children: [
220
- r && /* @__PURE__ */ t.jsx("h3", { className: pt.title, children: r }),
218
+ return /* @__PURE__ */ t.jsxs("div", { className: ht.text, children: [
219
+ (r || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: ht.top, children: [
220
+ r && /* @__PURE__ */ t.jsx("h3", { className: ht.title, children: r }),
221
221
  e !== void 0 && s && /* @__PURE__ */ t.jsx(
222
222
  st,
223
223
  {
224
224
  current: e,
225
- onChange: (p) => s(p)
225
+ onChange: (h) => s(h)
226
226
  }
227
227
  )
228
228
  ] }),
229
- /* @__PURE__ */ t.jsxs("div", { className: pt.itemsBlock, children: [
230
- /* @__PURE__ */ t.jsx("h5", { className: pt.subtitle, children: n }),
229
+ /* @__PURE__ */ t.jsxs("div", { className: ht.itemsBlock, children: [
230
+ /* @__PURE__ */ t.jsx("h5", { className: ht.subtitle, children: n }),
231
231
  /* @__PURE__ */ t.jsx(
232
232
  qt,
233
233
  {
234
- onChange: (p) => a(p),
234
+ onChange: (h) => a(h),
235
235
  value: i,
236
236
  maxLength: 150
237
237
  }
@@ -247,15 +247,15 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
247
247
  et,
248
248
  {
249
249
  label: "Type Text",
250
- options: Object.values(ht).filter(
251
- (p) => p !== ht[c]
250
+ options: Object.values(pt).filter(
251
+ (h) => h !== pt[c]
252
252
  ),
253
- onChange: (p) => x(
254
- Object.keys(ht).find(
255
- (h) => ht[h] === p
253
+ onChange: (h) => x(
254
+ Object.keys(pt).find(
255
+ (p) => pt[p] === h
256
256
  )
257
257
  ),
258
- value: ht[c]
258
+ value: pt[c]
259
259
  }
260
260
  )
261
261
  ] })
@@ -307,7 +307,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
307
307
  /* @__PURE__ */ t.jsxs("div", { className: L.top, children: [
308
308
  /* @__PURE__ */ t.jsx("h3", { className: L.title, children: r(e.name, 20) }),
309
309
  /* @__PURE__ */ t.jsx("div", { className: L.closeIcon, children: /* @__PURE__ */ t.jsx(
310
- j,
310
+ v,
311
311
  {
312
312
  name: "X",
313
313
  height: 20,
@@ -337,7 +337,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
337
337
  );
338
338
  if (n.type === "text")
339
339
  return /* @__PURE__ */ t.jsx(
340
- Rt,
340
+ zt,
341
341
  {
342
342
  typesText: e[n.field.type],
343
343
  setTypesText: (c) => {
@@ -449,7 +449,7 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
449
449
  },
450
450
  label: n.label,
451
451
  value: e[n.field] || "String",
452
- leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(j, { name: e[n.field] })
452
+ leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(v, { name: e[n.field] })
453
453
  }
454
454
  );
455
455
  }) })
@@ -457,9 +457,9 @@ const Yt = "_wrapper_1ibay_2", Gt = "_alignmentBlock_1ibay_8", Xt = "_title_1iba
457
457
  }
458
458
  );
459
459
  }
460
- ), Re = "_other_g74jx_1", ze = "_subtitle_g74jx_7", Fe = "_items_g74jx_14", It = {
461
- other: Re,
462
- subtitle: ze,
460
+ ), ze = "_other_g74jx_1", Re = "_subtitle_g74jx_7", Fe = "_items_g74jx_14", It = {
461
+ other: ze,
462
+ subtitle: Re,
463
463
  items: Fe
464
464
  }, yt = (d) => {
465
465
  const { items: o, title: e = "Other" } = d;
@@ -516,21 +516,21 @@ const Ue = (d) => {
516
516
  editable: n = !0,
517
517
  draggable: c = !1,
518
518
  withImage: x = !1,
519
- deletable: p = !0,
520
- addable: h = !0,
519
+ deletable: h = !0,
520
+ addable: p = !0,
521
521
  itemsType: _,
522
522
  itemsPlaceholder: b = "",
523
523
  itemsOptions: u,
524
- hasRangeSelector: C = !1,
524
+ hasRangeSelector: B = !1,
525
525
  rangeSelectorOptions: H,
526
- modalOptions: v,
527
- addableOptions: O = {},
526
+ modalOptions: I,
527
+ addableOptions: N = {},
528
528
  limit: g,
529
- autoScrollInterval: $
530
- } = d, [F, q] = f.useState(null), [X, D] = f.useState({
529
+ autoScrollInterval: C
530
+ } = d, [F, S] = f.useState(null), [Y, E] = f.useState({
531
531
  top: 0,
532
532
  left: 0
533
- }), [k, A] = f.useState(null), M = f.useRef(null), [W, T] = f.useState(!1), R = $t(
533
+ }), [y, M] = f.useState(null), T = f.useRef(null), [W, O] = f.useState(!1), z = $t(
534
534
  Nt(St, {
535
535
  activationConstraint: {
536
536
  distance: 5
@@ -539,33 +539,33 @@ const Ue = (d) => {
539
539
  );
540
540
  f.useEffect(() => {
541
541
  const m = () => {
542
- q(null), T(!1);
542
+ S(null), O(!1);
543
543
  };
544
- return document.body.addEventListener("click", m), q(null), T(!1), () => {
545
- q(null), T(!1), document.body.removeEventListener("click", m);
544
+ return document.body.addEventListener("click", m), S(null), O(!1), () => {
545
+ S(null), O(!1), document.body.removeEventListener("click", m);
546
546
  };
547
547
  }, []), f.useEffect(() => {
548
548
  if (F) {
549
- const m = [...s].map((I) => I.id === F.id ? F : I);
549
+ const m = [...s].map((k) => k.id === F.id ? F : k);
550
550
  i(m);
551
551
  }
552
552
  }, [F]), f.useEffect(() => {
553
- if (M.current && k) {
554
- const m = M.current.getBoundingClientRect().height, I = window.innerHeight;
555
- let B = k.top;
556
- B + m > I + window.scrollY - 200 && (B = I + window.scrollY - m - 200), B < 0 && (B = 10), D({
557
- top: B,
558
- left: k.left
553
+ if (T.current && y) {
554
+ const m = T.current.getBoundingClientRect().height, k = window.innerHeight;
555
+ let P = y.top;
556
+ P + m > k + window.scrollY - 200 && (P = k + window.scrollY - m - 200), P < 0 && (P = 10), E({
557
+ top: P,
558
+ left: y.left
559
559
  });
560
560
  }
561
- }, [M.current, k]);
562
- const Z = (m, I) => {
561
+ }, [T.current, y]);
562
+ const Z = (m, k) => {
563
563
  m.stopPropagation();
564
- const B = m.target.getBoundingClientRect();
565
- A({
566
- top: B.top + window.scrollY,
567
- left: B.left - 30
568
- }), q(I), T(!0);
564
+ const P = m.target.getBoundingClientRect();
565
+ M({
566
+ top: P.top + window.scrollY,
567
+ left: P.left - 30
568
+ }), S(k), O(!0);
569
569
  };
570
570
  function rt(m) {
571
571
  if (x)
@@ -578,7 +578,7 @@ const Ue = (d) => {
578
578
  height: 16
579
579
  }
580
580
  ) : /* @__PURE__ */ t.jsx(
581
- j,
581
+ v,
582
582
  {
583
583
  name: "Image",
584
584
  width: 16,
@@ -587,20 +587,20 @@ const Ue = (d) => {
587
587
  }
588
588
  );
589
589
  }
590
- const y = (m) => {
591
- const { active: I, over: B } = m;
592
- if (B && I.id !== B.id) {
593
- const E = s.findIndex((S) => S.id === I.id), Y = s.findIndex((S) => S.id === B.id);
594
- if (E !== -1 && Y !== -1) {
595
- const S = [...s], [dt] = S.splice(E, 1);
596
- S.splice(Y, 0, dt), i(S);
590
+ const j = (m) => {
591
+ const { active: k, over: P } = m;
592
+ if (P && k.id !== P.id) {
593
+ const D = s.findIndex((A) => A.id === k.id), G = s.findIndex((A) => A.id === P.id);
594
+ if (D !== -1 && G !== -1) {
595
+ const A = [...s], [dt] = A.splice(D, 1);
596
+ A.splice(G, 0, dt), i(A);
597
597
  }
598
598
  }
599
- }, P = (m, I) => {
600
- var E, Y;
601
- const B = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
599
+ }, q = (m, k) => {
600
+ var D, G;
601
+ const P = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
602
602
  c && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
603
- j,
603
+ v,
604
604
  {
605
605
  name: "DotsSixVertical",
606
606
  hoverable: !0,
@@ -611,30 +611,30 @@ const Ue = (d) => {
611
611
  _ === "select" && u && /* @__PURE__ */ t.jsx(
612
612
  et,
613
613
  {
614
- onChange: (S) => {
615
- const dt = [...s], mt = u.find((bt) => bt.name === S);
614
+ onChange: (A) => {
615
+ const dt = [...s], mt = u.find((bt) => bt.name === A);
616
616
  if (!mt) return;
617
617
  const ut = dt.map((bt) => bt.id === m.id ? {
618
618
  ...mt,
619
- name: S
619
+ name: A
620
620
  } : bt);
621
- q({
621
+ S({
622
622
  ...m,
623
- name: S
623
+ name: A
624
624
  }), i([...ut]);
625
625
  },
626
626
  value: m.name,
627
- options: u.filter((S) => !s.find((dt) => dt.name === S.name)).map((S) => S.name),
627
+ options: u.filter((A) => !s.find((dt) => dt.name === A.name)).map((A) => A.name),
628
628
  leftAddon: rt(m.images)
629
629
  }
630
630
  ),
631
631
  _ === "input" && /* @__PURE__ */ t.jsx(
632
632
  K,
633
633
  {
634
- onChange: (S) => {
634
+ onChange: (A) => {
635
635
  const mt = [...s].map((ut) => ut.id === m.id ? {
636
636
  ...m,
637
- name: S
637
+ name: A
638
638
  } : ut);
639
639
  i([...mt]);
640
640
  },
@@ -645,36 +645,36 @@ const Ue = (d) => {
645
645
  _ === "image" && /* @__PURE__ */ t.jsx(
646
646
  ft,
647
647
  {
648
- onChange: (S) => {
648
+ onChange: (A) => {
649
649
  const mt = [...s].map((ut) => ut.id === m.id ? {
650
650
  ...m,
651
- images: S
651
+ images: A
652
652
  } : ut);
653
653
  i([...mt]);
654
654
  },
655
- activeImage: (E = s.find((S) => S.id === m.id)) != null && E.images ? (Y = s.find((S) => S.id === m.id)) == null ? void 0 : Y.images[0] : void 0
655
+ activeImage: (D = s.find((A) => A.id === m.id)) != null && D.images ? (G = s.find((A) => A.id === m.id)) == null ? void 0 : G.images[0] : void 0
656
656
  }
657
657
  ),
658
658
  /* @__PURE__ */ t.jsxs("div", { className: L.buttons, children: [
659
659
  n && /* @__PURE__ */ t.jsx("div", { className: L.deleteButton, children: /* @__PURE__ */ t.jsx(
660
- j,
660
+ v,
661
661
  {
662
662
  name: "Sliders",
663
663
  hoverable: !0,
664
664
  width: 20,
665
665
  height: 20,
666
- onClick: (S) => Z(S, m)
666
+ onClick: (A) => Z(A, m)
667
667
  }
668
668
  ) }),
669
- p && /* @__PURE__ */ t.jsx("div", { className: L.deleteButton, children: /* @__PURE__ */ t.jsx(
670
- j,
669
+ h && /* @__PURE__ */ t.jsx("div", { className: L.deleteButton, children: /* @__PURE__ */ t.jsx(
670
+ v,
671
671
  {
672
672
  name: "Trash",
673
673
  hoverable: !0,
674
674
  width: 20,
675
675
  height: 20,
676
676
  fill: "#C12A2A",
677
- onClick: () => i(s.filter((S) => S.id !== m.id))
677
+ onClick: () => i(s.filter((A) => A.id !== m.id))
678
678
  }
679
679
  ) })
680
680
  ] })
@@ -683,15 +683,15 @@ const Ue = (d) => {
683
683
  Ve,
684
684
  {
685
685
  product: m,
686
- index: I,
687
- children: B
686
+ index: k,
687
+ children: P
688
688
  },
689
689
  m.id
690
690
  ) : /* @__PURE__ */ t.jsx(
691
691
  "div",
692
692
  {
693
693
  className: L.product,
694
- children: B
694
+ children: P
695
695
  },
696
696
  m.id
697
697
  );
@@ -707,36 +707,36 @@ const Ue = (d) => {
707
707
  }
708
708
  )
709
709
  ] }),
710
- F && n && v && W && /* @__PURE__ */ t.jsx(
710
+ F && n && I && W && /* @__PURE__ */ t.jsx(
711
711
  He,
712
712
  {
713
- ref: M,
713
+ ref: T,
714
714
  activeItem: F,
715
- setActiveItem: q,
716
- popupPosition: X,
717
- modalOptions: v,
718
- setIsOpenModal: T
715
+ setActiveItem: S,
716
+ popupPosition: Y,
717
+ modalOptions: I,
718
+ setIsOpenModal: O
719
719
  }
720
720
  ),
721
- C && H && /* @__PURE__ */ t.jsx(Ot, { ...H }),
721
+ B && H && /* @__PURE__ */ t.jsx(Ot, { ...H }),
722
722
  /* @__PURE__ */ t.jsxs("div", { className: L.products, children: [
723
723
  r && /* @__PURE__ */ t.jsx("h5", { className: L.subtitle, children: r }),
724
724
  c ? /* @__PURE__ */ t.jsx(
725
725
  wt,
726
726
  {
727
- sensors: R,
728
- onDragEnd: y,
727
+ sensors: z,
728
+ onDragEnd: j,
729
729
  children: /* @__PURE__ */ t.jsx(
730
730
  Ct,
731
731
  {
732
732
  items: s.map((m) => m.id),
733
733
  strategy: Bt,
734
- children: s.map((m, I) => P(m, I))
734
+ children: s.map((m, k) => q(m, k))
735
735
  }
736
736
  )
737
737
  }
738
- ) : s.map((m, I) => P(m, I)),
739
- h && /* @__PURE__ */ t.jsx(
738
+ ) : s.map((m, k) => q(m, k)),
739
+ p && /* @__PURE__ */ t.jsx(
740
740
  "div",
741
741
  {
742
742
  style: {
@@ -755,26 +755,26 @@ const Ue = (d) => {
755
755
  disabled: !!(g && g <= s.length || s.length === (u == null ? void 0 : u.length)),
756
756
  onClick: () => {
757
757
  const m = [...s];
758
- let I = null;
758
+ let k = null;
759
759
  if (u) {
760
- for (let B = 0; B < u.length; B++)
761
- if (!s.find((E) => E.id === u[B].id)) {
762
- I = u[B];
760
+ for (let P = 0; P < u.length; P++)
761
+ if (!s.find((D) => D.id === u[P].id)) {
762
+ k = u[P];
763
763
  break;
764
764
  }
765
765
  }
766
766
  _ === "select" && u ? m.push({
767
- name: I ? I.name : u[0].name,
768
- id: (I == null ? void 0 : I.id) || u[0].id,
769
- ...O
767
+ name: k ? k.name : u[0].name,
768
+ id: (k == null ? void 0 : k.id) || u[0].id,
769
+ ...N
770
770
  }) : _ === "input" ? m.push({
771
771
  name: "",
772
772
  id: _t(),
773
- ...O
773
+ ...N
774
774
  }) : m.push({
775
775
  name: `Image ${s.length + 1}`,
776
776
  id: _t(),
777
- ...O
777
+ ...N
778
778
  }), i(m);
779
779
  },
780
780
  style: {
@@ -783,7 +783,7 @@ const Ue = (d) => {
783
783
  children: /* @__PURE__ */ t.jsxs("div", { className: L.addButton, children: [
784
784
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
785
785
  /* @__PURE__ */ t.jsx(
786
- j,
786
+ v,
787
787
  {
788
788
  name: "Plus",
789
789
  width: 16,
@@ -797,13 +797,13 @@ const Ue = (d) => {
797
797
  )
798
798
  ] }),
799
799
  a !== void 0 && /* @__PURE__ */ t.jsx(yt, { items: a }),
800
- $ !== void 0 && /* @__PURE__ */ t.jsx(
800
+ C !== void 0 && /* @__PURE__ */ t.jsx(
801
801
  K,
802
802
  {
803
803
  label: "Auto scroll interval",
804
804
  type: "number",
805
- value: String($.scrollInterval),
806
- onChange: (m) => $.setScrollInterval(Number(m)),
805
+ value: String(C.scrollInterval),
806
+ onChange: (m) => C.setScrollInterval(Number(m)),
807
807
  min: 0.1,
808
808
  max: 100,
809
809
  style: {
@@ -813,7 +813,7 @@ const Ue = (d) => {
813
813
  }
814
814
  )
815
815
  ] });
816
- }, Ye = "_title_82zux_1", Ge = "_subtitle_82zux_5", Xe = "_header_82zux_12", We = "_text_82zux_13", Je = "_productsBlock_82zux_14", Qe = "_top_82zux_26", Ke = "_itemsBlock_82zux_35", Ze = "_typeTexts_82zux_41", ts = "_block_82zux_48", es = "_active_82zux_61", ss = "_products_82zux_14", ns = "_product_82zux_14", is = "_button_82zux_80", os = "_disabled_82zux_91", as = "_image_82zux_95", cs = "_info_82zux_102", ls = "_name_82zux_114", rs = "_buttons_82zux_118", ds = "_modal_82zux_125", us = "_link_82zux_145", ms = "_modalOptions_82zux_151", _s = "_addButton_82zux_157", ps = "_deleteButton_82zux_179", Q = {
816
+ }, Ye = "_title_82zux_1", Ge = "_subtitle_82zux_5", Xe = "_header_82zux_12", We = "_text_82zux_13", Je = "_productsBlock_82zux_14", Qe = "_top_82zux_26", Ke = "_itemsBlock_82zux_35", Ze = "_typeTexts_82zux_41", ts = "_block_82zux_48", es = "_active_82zux_61", ss = "_products_82zux_14", ns = "_product_82zux_14", is = "_button_82zux_80", os = "_disabled_82zux_91", as = "_image_82zux_95", cs = "_info_82zux_102", ls = "_name_82zux_114", rs = "_buttons_82zux_118", ds = "_modal_82zux_125", us = "_link_82zux_145", ms = "_modalOptions_82zux_151", _s = "_addButton_82zux_157", hs = "_deleteButton_82zux_179", Q = {
817
817
  title: Ye,
818
818
  subtitle: Ge,
819
819
  header: Xe,
@@ -836,7 +836,7 @@ const Ue = (d) => {
836
836
  link: us,
837
837
  modalOptions: ms,
838
838
  addButton: _s,
839
- deleteButton: ps
839
+ deleteButton: hs
840
840
  }, va = (d) => {
841
841
  const {
842
842
  isActiveItems: o,
@@ -849,24 +849,25 @@ const Ue = (d) => {
849
849
  draggable: n = !1,
850
850
  withImage: c = !1,
851
851
  addable: x = !0,
852
- itemsOptions: p,
853
- hasRangeSelector: h = !1,
852
+ itemsOptions: h,
853
+ hasRangeSelector: p = !1,
854
854
  rangeSelectorOptions: _,
855
855
  limit: b,
856
- autoScrollInterval: u
856
+ autoScrollInterval: u,
857
+ deletable: B
857
858
  } = d;
858
- function C(v) {
859
+ function H(N) {
859
860
  if (c)
860
- return v ? /* @__PURE__ */ t.jsx(
861
+ return N ? /* @__PURE__ */ t.jsx(
861
862
  "img",
862
863
  {
863
- src: `https://imagedelivery.net/${v[0]}/w=1000`,
864
+ src: `https://imagedelivery.net/${N[0]}/w=1000`,
864
865
  alt: "image",
865
866
  width: 16,
866
867
  height: 16
867
868
  }
868
869
  ) : /* @__PURE__ */ t.jsx(
869
- j,
870
+ v,
870
871
  {
871
872
  name: "Image",
872
873
  width: 16,
@@ -875,12 +876,12 @@ const Ue = (d) => {
875
876
  }
876
877
  );
877
878
  }
878
- const H = (v) => {
879
- const O = p.find(($) => $.id === v);
880
- if (!O) return;
881
- const g = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
879
+ const I = (N, g = !1) => {
880
+ const C = h.find((S) => S.id === N);
881
+ if (!C) return;
882
+ const F = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
882
883
  n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
883
- j,
884
+ v,
884
885
  {
885
886
  name: "DotsSixVertical",
886
887
  hoverable: !0,
@@ -891,26 +892,26 @@ const Ue = (d) => {
891
892
  /* @__PURE__ */ t.jsx(
892
893
  et,
893
894
  {
894
- onChange: ($) => {
895
- const F = [...s], q = p.find((k) => k.name === $);
896
- if (!q) return;
897
- const X = q.id, D = F.map((k) => k === v ? X : k);
898
- i([...D]);
895
+ onChange: (S) => {
896
+ const Y = [...s], E = h.find((T) => T.name === S);
897
+ if (!E) return;
898
+ const y = E.id, M = Y.map((T) => T === N ? y : T);
899
+ i([...M]);
899
900
  },
900
- value: O.name,
901
- options: p.filter(($) => !s.find((F) => F === $.id)).map(($) => $.name),
902
- leftAddon: C(O.images)
901
+ value: C.name,
902
+ options: h.filter((S) => !s.find((Y) => Y === S.id)).map((S) => S.name),
903
+ leftAddon: H(C.images)
903
904
  }
904
905
  ),
905
- /* @__PURE__ */ t.jsx("div", { className: Q.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Q.deleteButton, children: /* @__PURE__ */ t.jsx(
906
- j,
906
+ g && /* @__PURE__ */ t.jsx("div", { className: Q.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Q.deleteButton, children: /* @__PURE__ */ t.jsx(
907
+ v,
907
908
  {
908
909
  name: "Trash",
909
910
  hoverable: !0,
910
911
  width: 20,
911
912
  height: 20,
912
913
  fill: "#C12A2A",
913
- onClick: () => i(s.filter(($) => $ !== v))
914
+ onClick: () => i(s.filter((S) => S !== N))
914
915
  }
915
916
  ) }) })
916
917
  ] });
@@ -918,9 +919,9 @@ const Ue = (d) => {
918
919
  "div",
919
920
  {
920
921
  className: Q.product,
921
- children: g
922
+ children: F
922
923
  },
923
- v
924
+ N
924
925
  );
925
926
  };
926
927
  return /* @__PURE__ */ t.jsxs("div", { className: Q.productsBlock, children: [
@@ -930,14 +931,14 @@ const Ue = (d) => {
930
931
  st,
931
932
  {
932
933
  current: o,
933
- onChange: (v) => e == null ? void 0 : e(v)
934
+ onChange: (N) => e == null ? void 0 : e(N)
934
935
  }
935
936
  )
936
937
  ] }),
937
- h && _ && /* @__PURE__ */ t.jsx(Ot, { ..._ }),
938
+ p && _ && /* @__PURE__ */ t.jsx(Ot, { ..._ }),
938
939
  /* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
939
940
  r && /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: r }),
940
- s.map((v) => H(v)),
941
+ s.map((N) => I(N, B)),
941
942
  x && /* @__PURE__ */ t.jsx(
942
943
  "div",
943
944
  {
@@ -952,21 +953,21 @@ const Ue = (d) => {
952
953
  {
953
954
  withoutHover: !0,
954
955
  className: U(Q.button, {
955
- [Q.disabled]: !!(b && b <= s.length || s.length === p.length)
956
+ [Q.disabled]: !!(b && b <= s.length || s.length === h.length)
956
957
  }),
957
958
  size: "s",
958
- disabled: !!(b && b <= s.length || s.length === p.length),
959
+ disabled: !!(b && b <= s.length || s.length === h.length),
959
960
  onClick: () => {
960
- const v = [...s];
961
- let O = null;
962
- if (p) {
963
- for (let g = 0; g < p.length; g++)
964
- if (!s.find(($) => $ === p[g].id)) {
965
- O = p[g];
961
+ const N = [...s];
962
+ let g = null;
963
+ if (h) {
964
+ for (let C = 0; C < h.length; C++)
965
+ if (!s.find((F) => F === h[C].id)) {
966
+ g = h[C];
966
967
  break;
967
968
  }
968
969
  }
969
- v.push((O == null ? void 0 : O.id) || p[0].id), i(v);
970
+ N.push((g == null ? void 0 : g.id) || h[0].id), i(N);
970
971
  },
971
972
  style: {
972
973
  width: "fit-content"
@@ -974,7 +975,7 @@ const Ue = (d) => {
974
975
  children: /* @__PURE__ */ t.jsxs("div", { className: Q.addButton, children: [
975
976
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
976
977
  /* @__PURE__ */ t.jsx(
977
- j,
978
+ v,
978
979
  {
979
980
  name: "Plus",
980
981
  width: 16,
@@ -994,7 +995,7 @@ const Ue = (d) => {
994
995
  label: "Auto scroll interval",
995
996
  type: "number",
996
997
  value: String(u.scrollInterval),
997
- onChange: (v) => u.setScrollInterval(Number(v)),
998
+ onChange: (N) => u.setScrollInterval(Number(N)),
998
999
  min: 0.1,
999
1000
  max: 100,
1000
1001
  style: {
@@ -1004,8 +1005,8 @@ const Ue = (d) => {
1004
1005
  }
1005
1006
  )
1006
1007
  ] });
1007
- }, hs = "_title_1vfw9_1", xs = "_subtitle_1vfw9_5", gs = "_header_1vfw9_12", fs = "_text_1vfw9_13", bs = "_productsBlock_1vfw9_14", vs = "_top_1vfw9_26", js = "_itemsBlock_1vfw9_35", ys = "_typeTexts_1vfw9_41", ks = "_block_1vfw9_48", Is = "_active_1vfw9_61", $s = "_products_1vfw9_14", Ns = "_product_1vfw9_14", ws = "_button_1vfw9_80", Cs = "_disabled_1vfw9_91", Bs = "_image_1vfw9_95", Ss = "_info_1vfw9_102", Ts = "_name_1vfw9_114", Ps = "_buttons_1vfw9_118", As = "_modal_1vfw9_125", Ms = "_link_1vfw9_145", Os = "_modalOptions_1vfw9_151", qs = "_addButton_1vfw9_164", Es = "_deleteButton_1vfw9_179", Ds = "_closeIcon_1vfw9_191", z = {
1008
- title: hs,
1008
+ }, ps = "_title_1vfw9_1", xs = "_subtitle_1vfw9_5", gs = "_header_1vfw9_12", fs = "_text_1vfw9_13", bs = "_productsBlock_1vfw9_14", vs = "_top_1vfw9_26", js = "_itemsBlock_1vfw9_35", ys = "_typeTexts_1vfw9_41", ks = "_block_1vfw9_48", Is = "_active_1vfw9_61", $s = "_products_1vfw9_14", Ns = "_product_1vfw9_14", ws = "_button_1vfw9_80", Cs = "_disabled_1vfw9_91", Bs = "_image_1vfw9_95", Ss = "_info_1vfw9_102", Ts = "_name_1vfw9_114", Ps = "_buttons_1vfw9_118", As = "_modal_1vfw9_125", Ms = "_link_1vfw9_145", Os = "_modalOptions_1vfw9_151", qs = "_addButton_1vfw9_164", Es = "_deleteButton_1vfw9_179", Ds = "_closeIcon_1vfw9_191", R = {
1009
+ title: ps,
1009
1010
  subtitle: xs,
1010
1011
  header: gs,
1011
1012
  text: fs,
@@ -1039,7 +1040,7 @@ const Ue = (d) => {
1039
1040
  "div",
1040
1041
  {
1041
1042
  ref: o,
1042
- className: z.modal,
1043
+ className: R.modal,
1043
1044
  onClick: (n) => {
1044
1045
  n.stopPropagation();
1045
1046
  },
@@ -1048,10 +1049,10 @@ const Ue = (d) => {
1048
1049
  left: `${i.left}px`
1049
1050
  },
1050
1051
  children: [
1051
- /* @__PURE__ */ t.jsxs("div", { className: z.top, children: [
1052
- /* @__PURE__ */ t.jsx("h3", { className: z.title, children: r(e.name, 20) }),
1053
- /* @__PURE__ */ t.jsx("div", { className: z.closeIcon, children: /* @__PURE__ */ t.jsx(
1054
- j,
1052
+ /* @__PURE__ */ t.jsxs("div", { className: R.top, children: [
1053
+ /* @__PURE__ */ t.jsx("h3", { className: R.title, children: r(e.name, 20) }),
1054
+ /* @__PURE__ */ t.jsx("div", { className: R.closeIcon, children: /* @__PURE__ */ t.jsx(
1055
+ v,
1055
1056
  {
1056
1057
  name: "X",
1057
1058
  height: 20,
@@ -1063,7 +1064,7 @@ const Ue = (d) => {
1063
1064
  }
1064
1065
  ) })
1065
1066
  ] }),
1066
- /* @__PURE__ */ t.jsx("div", { className: z.modalOptions, children: a.map((n) => {
1067
+ /* @__PURE__ */ t.jsx("div", { className: R.modalOptions, children: a.map((n) => {
1067
1068
  if (n.type === "image")
1068
1069
  return /* @__PURE__ */ t.jsx(
1069
1070
  ft,
@@ -1082,7 +1083,7 @@ const Ue = (d) => {
1082
1083
  );
1083
1084
  if (n.type === "text")
1084
1085
  return /* @__PURE__ */ t.jsx(
1085
- Rt,
1086
+ zt,
1086
1087
  {
1087
1088
  typesText: e[n.field.type],
1088
1089
  setTypesText: (c) => {
@@ -1128,7 +1129,7 @@ const Ue = (d) => {
1128
1129
  }
1129
1130
  );
1130
1131
  if (n.type === "inputSwitch")
1131
- return /* @__PURE__ */ t.jsxs("div", { className: z.link, children: [
1132
+ return /* @__PURE__ */ t.jsxs("div", { className: R.link, children: [
1132
1133
  /* @__PURE__ */ t.jsx(
1133
1134
  K,
1134
1135
  {
@@ -1173,7 +1174,7 @@ const Ue = (d) => {
1173
1174
  },
1174
1175
  label: n.label,
1175
1176
  value: e[n.field] || "String",
1176
- leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(j, { name: e[n.field] })
1177
+ leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(v, { name: e[n.field] })
1177
1178
  }
1178
1179
  );
1179
1180
  }) })
@@ -1194,7 +1195,7 @@ function Hs(d) {
1194
1195
  {
1195
1196
  ref: a,
1196
1197
  style: c,
1197
- className: `${z.product} ${n ? z.dragging : ""}`,
1198
+ className: `${R.product} ${n ? R.dragging : ""}`,
1198
1199
  ...s,
1199
1200
  ...i,
1200
1201
  children: e
@@ -1213,19 +1214,19 @@ const ja = (d) => {
1213
1214
  editable: n = !0,
1214
1215
  draggable: c = !1,
1215
1216
  withImage: x = !1,
1216
- deletable: p = !0,
1217
- addable: h = !0,
1217
+ deletable: h = !0,
1218
+ addable: p = !0,
1218
1219
  itemsType: _,
1219
1220
  itemsPlaceholder: b = "",
1220
1221
  itemsOptions: u,
1221
- hasRangeSelector: C = !1,
1222
+ hasRangeSelector: B = !1,
1222
1223
  rangeSelectorOptions: H,
1223
- modalOptions: v,
1224
- addableOptions: O = {}
1225
- } = d, [g, $] = f.useState(null), [F, q] = f.useState({
1224
+ modalOptions: I,
1225
+ addableOptions: N = {}
1226
+ } = d, [g, C] = f.useState(null), [F, S] = f.useState({
1226
1227
  top: 0,
1227
1228
  left: 0
1228
- }), [X, D] = f.useState(null), k = f.useRef(null), [A, M] = f.useState(!1), W = $t(
1229
+ }), [Y, E] = f.useState(null), y = f.useRef(null), [M, T] = f.useState(!1), W = $t(
1229
1230
  Nt(St, {
1230
1231
  activationConstraint: {
1231
1232
  distance: 5
@@ -1233,47 +1234,47 @@ const ja = (d) => {
1233
1234
  })
1234
1235
  );
1235
1236
  f.useEffect(() => {
1236
- const y = () => {
1237
- $(null), M(!1);
1237
+ const j = () => {
1238
+ C(null), T(!1);
1238
1239
  };
1239
- return document.body.addEventListener("click", y), $(null), M(!1), () => {
1240
- $(null), M(!1), document.body.removeEventListener("click", y);
1240
+ return document.body.addEventListener("click", j), C(null), T(!1), () => {
1241
+ C(null), T(!1), document.body.removeEventListener("click", j);
1241
1242
  };
1242
1243
  }, []), f.useEffect(() => {
1243
1244
  if (g) {
1244
- const y = [...s].map((P) => P.id === g.id ? g : P);
1245
- i(y);
1245
+ const j = [...s].map((q) => q.id === g.id ? g : q);
1246
+ i(j);
1246
1247
  }
1247
1248
  }, [g]), f.useEffect(() => {
1248
- if (k.current && X) {
1249
- const y = k.current.getBoundingClientRect().height, P = window.innerHeight;
1250
- let m = X.top;
1251
- m + y > P + window.scrollY - 200 && (m = P + window.scrollY - y - 200), m < 0 && (m = 10), q({
1249
+ if (y.current && Y) {
1250
+ const j = y.current.getBoundingClientRect().height, q = window.innerHeight;
1251
+ let m = Y.top;
1252
+ m + j > q + window.scrollY - 200 && (m = q + window.scrollY - j - 200), m < 0 && (m = 10), S({
1252
1253
  top: m,
1253
- left: X.left
1254
+ left: Y.left
1254
1255
  });
1255
1256
  }
1256
- }, [k.current, X]);
1257
- const T = (y, P) => {
1258
- y.stopPropagation();
1259
- const m = y.target.getBoundingClientRect();
1260
- D({
1257
+ }, [y.current, Y]);
1258
+ const O = (j, q) => {
1259
+ j.stopPropagation();
1260
+ const m = j.target.getBoundingClientRect();
1261
+ E({
1261
1262
  top: m.top + window.scrollY,
1262
1263
  left: m.left - 30
1263
- }), $(P), M(!0);
1264
+ }), C(q), T(!0);
1264
1265
  };
1265
- function R(y) {
1266
+ function z(j) {
1266
1267
  if (x)
1267
- return y ? /* @__PURE__ */ t.jsx(
1268
+ return j ? /* @__PURE__ */ t.jsx(
1268
1269
  "img",
1269
1270
  {
1270
- src: `https://imagedelivery.net/${y[0]}/w=1000`,
1271
+ src: `https://imagedelivery.net/${j[0]}/w=1000`,
1271
1272
  alt: "image",
1272
1273
  width: 16,
1273
1274
  height: 16
1274
1275
  }
1275
1276
  ) : /* @__PURE__ */ t.jsx(
1276
- j,
1277
+ v,
1277
1278
  {
1278
1279
  name: "Image",
1279
1280
  width: 16,
@@ -1282,20 +1283,20 @@ const ja = (d) => {
1282
1283
  }
1283
1284
  );
1284
1285
  }
1285
- const Z = (y) => {
1286
- const { active: P, over: m } = y;
1287
- if (m && P.id !== m.id) {
1288
- const I = s.findIndex((E) => E.id === P.id), B = s.findIndex((E) => E.id === m.id);
1289
- if (I !== -1 && B !== -1) {
1290
- const E = [...s], [Y] = E.splice(I, 1);
1291
- E.splice(B, 0, Y), i(E);
1286
+ const Z = (j) => {
1287
+ const { active: q, over: m } = j;
1288
+ if (m && q.id !== m.id) {
1289
+ const k = s.findIndex((D) => D.id === q.id), P = s.findIndex((D) => D.id === m.id);
1290
+ if (k !== -1 && P !== -1) {
1291
+ const D = [...s], [G] = D.splice(k, 1);
1292
+ D.splice(P, 0, G), i(D);
1292
1293
  }
1293
1294
  }
1294
- }, rt = (y) => {
1295
+ }, rt = (j) => {
1295
1296
  var m;
1296
- const P = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1297
+ const q = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1297
1298
  c && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1298
- j,
1299
+ v,
1299
1300
  {
1300
1301
  name: "DotsSixVertical",
1301
1302
  hoverable: !0,
@@ -1306,68 +1307,68 @@ const ja = (d) => {
1306
1307
  _ === "select" && u && /* @__PURE__ */ t.jsx(
1307
1308
  et,
1308
1309
  {
1309
- onChange: (I) => {
1310
- const E = [...s].map((Y) => Y.id === y.id ? {
1311
- ...y,
1312
- name: I
1313
- } : Y);
1314
- $({
1315
- ...y,
1316
- name: I
1317
- }), i([...E]);
1310
+ onChange: (k) => {
1311
+ const D = [...s].map((G) => G.id === j.id ? {
1312
+ ...j,
1313
+ name: k
1314
+ } : G);
1315
+ C({
1316
+ ...j,
1317
+ name: k
1318
+ }), i([...D]);
1318
1319
  },
1319
- value: y.name,
1320
- options: u.filter((I) => !s.find((B) => B.name === I)),
1321
- leftAddon: R(y.images)
1320
+ value: j.name,
1321
+ options: u.filter((k) => !s.find((P) => P.name === k)),
1322
+ leftAddon: z(j.images)
1322
1323
  }
1323
1324
  ),
1324
1325
  _ === "input" && /* @__PURE__ */ t.jsx(
1325
1326
  K,
1326
1327
  {
1327
- onChange: (I) => {
1328
- const E = [...s].map((Y) => Y.id === y.id ? {
1329
- ...y,
1330
- name: I
1331
- } : Y);
1332
- i([...E]);
1328
+ onChange: (k) => {
1329
+ const D = [...s].map((G) => G.id === j.id ? {
1330
+ ...j,
1331
+ name: k
1332
+ } : G);
1333
+ i([...D]);
1333
1334
  },
1334
- value: y.name,
1335
+ value: j.name,
1335
1336
  placeholder: b
1336
1337
  }
1337
1338
  ),
1338
1339
  _ === "image" && /* @__PURE__ */ t.jsx(
1339
1340
  ft,
1340
1341
  {
1341
- onChange: (I) => {
1342
- const E = [...s].map((Y) => Y.id === y.id ? {
1343
- ...y,
1344
- images: I
1345
- } : Y);
1346
- i([...E]);
1342
+ onChange: (k) => {
1343
+ const D = [...s].map((G) => G.id === j.id ? {
1344
+ ...j,
1345
+ images: k
1346
+ } : G);
1347
+ i([...D]);
1347
1348
  },
1348
- activeImage: (m = s.find((I) => I.id === y.id)) == null ? void 0 : m.images[0]
1349
+ activeImage: (m = s.find((k) => k.id === j.id)) == null ? void 0 : m.images[0]
1349
1350
  }
1350
1351
  ),
1351
- /* @__PURE__ */ t.jsxs("div", { className: z.buttons, children: [
1352
- n && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
1353
- j,
1352
+ /* @__PURE__ */ t.jsxs("div", { className: R.buttons, children: [
1353
+ n && /* @__PURE__ */ t.jsx("div", { className: R.deleteButton, children: /* @__PURE__ */ t.jsx(
1354
+ v,
1354
1355
  {
1355
1356
  name: "Sliders",
1356
1357
  hoverable: !0,
1357
1358
  width: 20,
1358
1359
  height: 20,
1359
- onClick: (I) => T(I, y)
1360
+ onClick: (k) => O(k, j)
1360
1361
  }
1361
1362
  ) }),
1362
- p && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
1363
- j,
1363
+ h && /* @__PURE__ */ t.jsx("div", { className: R.deleteButton, children: /* @__PURE__ */ t.jsx(
1364
+ v,
1364
1365
  {
1365
1366
  name: "Trash",
1366
1367
  hoverable: !0,
1367
1368
  width: 20,
1368
1369
  height: 20,
1369
1370
  fill: "#C12A2A",
1370
- onClick: () => i(s.filter((I) => I.id !== y.id))
1371
+ onClick: () => i(s.filter((k) => k.id !== j.id))
1371
1372
  }
1372
1373
  ) })
1373
1374
  ] })
@@ -1375,44 +1376,44 @@ const ja = (d) => {
1375
1376
  return c ? /* @__PURE__ */ t.jsx(
1376
1377
  Hs,
1377
1378
  {
1378
- product: y,
1379
- children: P
1379
+ product: j,
1380
+ children: q
1380
1381
  },
1381
- y.id
1382
+ j.id
1382
1383
  ) : /* @__PURE__ */ t.jsx(
1383
1384
  "div",
1384
1385
  {
1385
- className: z.product,
1386
- children: P
1386
+ className: R.product,
1387
+ children: q
1387
1388
  },
1388
- y.id
1389
+ j.id
1389
1390
  );
1390
1391
  };
1391
- return /* @__PURE__ */ t.jsxs("div", { className: z.productsBlock, children: [
1392
- (l || o !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: z.top, children: [
1393
- l && /* @__PURE__ */ t.jsx("h3", { className: z.title, children: l }),
1392
+ return /* @__PURE__ */ t.jsxs("div", { className: R.productsBlock, children: [
1393
+ (l || o !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: R.top, children: [
1394
+ l && /* @__PURE__ */ t.jsx("h3", { className: R.title, children: l }),
1394
1395
  o !== void 0 && /* @__PURE__ */ t.jsx(
1395
1396
  st,
1396
1397
  {
1397
1398
  current: o,
1398
- onChange: (y) => e == null ? void 0 : e(y)
1399
+ onChange: (j) => e == null ? void 0 : e(j)
1399
1400
  }
1400
1401
  )
1401
1402
  ] }),
1402
- g && n && v && A && /* @__PURE__ */ t.jsx(
1403
+ g && n && I && M && /* @__PURE__ */ t.jsx(
1403
1404
  Ls,
1404
1405
  {
1405
- ref: k,
1406
+ ref: y,
1406
1407
  activeItem: g,
1407
- setActiveItem: $,
1408
+ setActiveItem: C,
1408
1409
  popupPosition: F,
1409
- modalOptions: v,
1410
- setIsOpenModal: M
1410
+ modalOptions: I,
1411
+ setIsOpenModal: T
1411
1412
  }
1412
1413
  ),
1413
- C && H && /* @__PURE__ */ t.jsx(Ot, { ...H }),
1414
- /* @__PURE__ */ t.jsxs("div", { className: z.products, children: [
1415
- r && /* @__PURE__ */ t.jsx("h5", { className: z.subtitle, children: r }),
1414
+ B && H && /* @__PURE__ */ t.jsx(Ot, { ...H }),
1415
+ /* @__PURE__ */ t.jsxs("div", { className: R.products, children: [
1416
+ r && /* @__PURE__ */ t.jsx("h5", { className: R.subtitle, children: r }),
1416
1417
  c ? /* @__PURE__ */ t.jsx(
1417
1418
  wt,
1418
1419
  {
@@ -1421,14 +1422,14 @@ const ja = (d) => {
1421
1422
  children: /* @__PURE__ */ t.jsx(
1422
1423
  Ct,
1423
1424
  {
1424
- items: s.map((y) => y.id),
1425
+ items: s.map((j) => j.id),
1425
1426
  strategy: Bt,
1426
- children: s.map((y) => rt(y))
1427
+ children: s.map((j) => rt(j))
1427
1428
  }
1428
1429
  )
1429
1430
  }
1430
- ) : s.map((y) => rt(y)),
1431
- h && /* @__PURE__ */ t.jsx(
1431
+ ) : s.map((j) => rt(j)),
1432
+ p && /* @__PURE__ */ t.jsx(
1432
1433
  "div",
1433
1434
  {
1434
1435
  style: {
@@ -1440,43 +1441,43 @@ const ja = (d) => {
1440
1441
  lt,
1441
1442
  {
1442
1443
  withoutHover: !0,
1443
- className: z.button,
1444
+ className: R.button,
1444
1445
  size: "s",
1445
1446
  onClick: () => {
1446
- const y = [...s];
1447
- let P = null;
1447
+ const j = [...s];
1448
+ let q = null;
1448
1449
  if (u) {
1449
1450
  for (let m = 0; m < u.length; m++)
1450
- if (!s.find((I) => I.name === u[m])) {
1451
- P = u[m];
1451
+ if (!s.find((k) => k.name === u[m])) {
1452
+ q = u[m];
1452
1453
  break;
1453
1454
  }
1454
1455
  }
1455
- _ === "select" && u ? y.push({
1456
- name: P || u[0],
1456
+ _ === "select" && u ? j.push({
1457
+ name: q || u[0],
1457
1458
  id: _t(),
1458
- ...O,
1459
+ ...N,
1459
1460
  maxSymbols: 100
1460
1461
  // пример значения
1461
- }) : _ === "input" ? y.push({
1462
+ }) : _ === "input" ? j.push({
1462
1463
  name: "",
1463
1464
  id: _t(),
1464
- ...O,
1465
+ ...N,
1465
1466
  maxSymbols: 100
1466
- }) : y.push({
1467
+ }) : j.push({
1467
1468
  name: `Image ${s.length + 1}`,
1468
1469
  id: _t(),
1469
- ...O,
1470
+ ...N,
1470
1471
  maxSymbols: 100
1471
- }), i(y);
1472
+ }), i(j);
1472
1473
  },
1473
1474
  style: {
1474
1475
  width: "fit-content"
1475
1476
  },
1476
- children: /* @__PURE__ */ t.jsxs("div", { className: z.addButton, children: [
1477
+ children: /* @__PURE__ */ t.jsxs("div", { className: R.addButton, children: [
1477
1478
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1478
1479
  /* @__PURE__ */ t.jsx(
1479
- j,
1480
+ v,
1480
1481
  {
1481
1482
  name: "Plus",
1482
1483
  width: 16,
@@ -1491,9 +1492,9 @@ const ja = (d) => {
1491
1492
  ] }),
1492
1493
  a !== void 0 && /* @__PURE__ */ t.jsx(yt, { items: a })
1493
1494
  ] });
1494
- }, Rs = "_title_bn7sv_1", zs = "_subtitle_bn7sv_5", Fs = "_header_bn7sv_12", Vs = "_text_bn7sv_13", Us = "_productsBlock_bn7sv_14", Ys = "_buttonsBlock_bn7sv_15", Gs = "_top_bn7sv_26", Xs = "_itemsBlock_bn7sv_35", Ws = "_typeTexts_bn7sv_41", Js = "_block_bn7sv_48", Qs = "_active_bn7sv_60", Ks = "_products_bn7sv_14", Zs = "_product_bn7sv_14", tn = "_button_bn7sv_15", en = "_image_bn7sv_90", sn = "_info_bn7sv_97", nn = "_name_bn7sv_109", on = "_buttons_bn7sv_15", an = "_modal_bn7sv_120", cn = "_other_bn7sv_139", ln = "_options_bn7sv_145", rn = "_closeIcon_bn7sv_153", ct = {
1495
- title: Rs,
1496
- subtitle: zs,
1495
+ }, zs = "_title_bn7sv_1", Rs = "_subtitle_bn7sv_5", Fs = "_header_bn7sv_12", Vs = "_text_bn7sv_13", Us = "_productsBlock_bn7sv_14", Ys = "_buttonsBlock_bn7sv_15", Gs = "_top_bn7sv_26", Xs = "_itemsBlock_bn7sv_35", Ws = "_typeTexts_bn7sv_41", Js = "_block_bn7sv_48", Qs = "_active_bn7sv_60", Ks = "_products_bn7sv_14", Zs = "_product_bn7sv_14", tn = "_button_bn7sv_15", en = "_image_bn7sv_90", sn = "_info_bn7sv_97", nn = "_name_bn7sv_109", on = "_buttons_bn7sv_15", an = "_modal_bn7sv_120", cn = "_other_bn7sv_139", ln = "_options_bn7sv_145", rn = "_closeIcon_bn7sv_153", ct = {
1496
+ title: zs,
1497
+ subtitle: Rs,
1497
1498
  header: Fs,
1498
1499
  text: Vs,
1499
1500
  productsBlock: Us,
@@ -1515,25 +1516,25 @@ const ja = (d) => {
1515
1516
  options: ln,
1516
1517
  closeIcon: rn
1517
1518
  }, dn = f.forwardRef((d, o) => {
1518
- const { activeButton: e, setActiveButton: s, popupPosition: i } = d, [a, l] = f.useState(e.typesText), [r, n] = f.useState(e.destination), [c, x] = f.useState(e.page), [p, h] = f.useState(e.link || ""), [_, b] = f.useState(e.text || ""), [u, C] = f.useState(e.openInNewTab), { pages: H } = Vt();
1519
+ const { activeButton: e, setActiveButton: s, popupPosition: i } = d, [a, l] = f.useState(e.typesText), [r, n] = f.useState(e.destination), [c, x] = f.useState(e.page), [h, p] = f.useState(e.link || ""), [_, b] = f.useState(e.text || ""), [u, B] = f.useState(e.openInNewTab), { pages: H } = Vt();
1519
1520
  return f.useEffect(() => {
1520
1521
  s({
1521
1522
  ...e,
1522
1523
  ...{
1523
1524
  text: _,
1524
- link: p,
1525
+ link: h,
1525
1526
  destination: r,
1526
1527
  typesText: a,
1527
1528
  page: c,
1528
1529
  openInNewTab: u
1529
1530
  }
1530
1531
  });
1531
- }, [a, r, p, _, c, u]), /* @__PURE__ */ t.jsxs(
1532
+ }, [a, r, h, _, c, u]), /* @__PURE__ */ t.jsxs(
1532
1533
  "div",
1533
1534
  {
1534
1535
  className: ct.modal,
1535
- onClick: (v) => {
1536
- v.stopPropagation();
1536
+ onClick: (I) => {
1537
+ I.stopPropagation();
1537
1538
  },
1538
1539
  style: {
1539
1540
  top: `${i.top}px`,
@@ -1544,7 +1545,7 @@ const ja = (d) => {
1544
1545
  /* @__PURE__ */ t.jsxs("div", { className: ct.top, children: [
1545
1546
  /* @__PURE__ */ t.jsx("h3", { className: ct.title, children: e.type }),
1546
1547
  /* @__PURE__ */ t.jsx("div", { className: ct.closeIcon, children: /* @__PURE__ */ t.jsx(
1547
- j,
1548
+ v,
1548
1549
  {
1549
1550
  name: "X",
1550
1551
  height: 20,
@@ -1559,8 +1560,8 @@ const ja = (d) => {
1559
1560
  et,
1560
1561
  {
1561
1562
  label: "Destination",
1562
- onChange: (v) => n(v),
1563
- options: ["Go to Page", "Open Link"].filter((v) => v !== r),
1563
+ onChange: (I) => n(I),
1564
+ options: ["Go to Page", "Open Link"].filter((I) => I !== r),
1564
1565
  value: r
1565
1566
  }
1566
1567
  ),
@@ -1568,15 +1569,15 @@ const ja = (d) => {
1568
1569
  et,
1569
1570
  {
1570
1571
  label: "Go to",
1571
- onChange: (v) => x(v),
1572
- options: H ? Object.values(H).filter((v) => v.name !== c).map((v) => v.name) : [],
1572
+ onChange: (I) => x(I),
1573
+ options: H ? Object.values(H).filter((I) => I.name !== c).map((I) => I.name) : [],
1573
1574
  value: c
1574
1575
  }
1575
1576
  ) : /* @__PURE__ */ t.jsx(
1576
1577
  K,
1577
1578
  {
1578
- onChange: (v) => h(v),
1579
- value: p,
1579
+ onChange: (I) => p(I),
1580
+ value: h,
1580
1581
  placeholder: "https://",
1581
1582
  label: "Link"
1582
1583
  }
@@ -1586,13 +1587,13 @@ const ja = (d) => {
1586
1587
  {
1587
1588
  current: e.openInNewTab,
1588
1589
  label: "Open in new tab",
1589
- onChange: (v) => C(v)
1590
+ onChange: (I) => B(I)
1590
1591
  }
1591
1592
  ),
1592
1593
  /* @__PURE__ */ t.jsx(
1593
1594
  qt,
1594
1595
  {
1595
- onChange: (v) => b(v),
1596
+ onChange: (I) => b(I),
1596
1597
  value: _,
1597
1598
  label: "Text",
1598
1599
  maxLength: 150
@@ -1609,12 +1610,12 @@ const ja = (d) => {
1609
1610
  ]
1610
1611
  }
1611
1612
  );
1612
- }), un = "_subtitle_jql1y_1", mn = "_header_jql1y_8", _n = "_text_jql1y_9", pn = "_productsBlock_jql1y_10", hn = "_buttonsBlock_jql1y_11", xn = "_top_jql1y_23", gn = "_itemsBlock_jql1y_32", fn = "_typeTexts_jql1y_38", bn = "_block_jql1y_45", vn = "_active_jql1y_58", jn = "_products_jql1y_10", yn = "_product_jql1y_10", kn = "_button_jql1y_11", In = "_image_jql1y_88", $n = "_info_jql1y_95", Nn = "_name_jql1y_107", wn = "_buttons_jql1y_11", Cn = "_modal_jql1y_118", Bn = "_other_jql1y_138", Sn = "_options_jql1y_144", Tn = "_addButton_jql1y_150", Pn = "_deleteButton_jql1y_165", it = {
1613
+ }), un = "_subtitle_jql1y_1", mn = "_header_jql1y_8", _n = "_text_jql1y_9", hn = "_productsBlock_jql1y_10", pn = "_buttonsBlock_jql1y_11", xn = "_top_jql1y_23", gn = "_itemsBlock_jql1y_32", fn = "_typeTexts_jql1y_38", bn = "_block_jql1y_45", vn = "_active_jql1y_58", jn = "_products_jql1y_10", yn = "_product_jql1y_10", kn = "_button_jql1y_11", In = "_image_jql1y_88", $n = "_info_jql1y_95", Nn = "_name_jql1y_107", wn = "_buttons_jql1y_11", Cn = "_modal_jql1y_118", Bn = "_other_jql1y_138", Sn = "_options_jql1y_144", Tn = "_addButton_jql1y_150", Pn = "_deleteButton_jql1y_165", it = {
1613
1614
  subtitle: un,
1614
1615
  header: mn,
1615
1616
  text: _n,
1616
- productsBlock: pn,
1617
- buttonsBlock: hn,
1617
+ productsBlock: hn,
1618
+ buttonsBlock: pn,
1618
1619
  top: xn,
1619
1620
  itemsBlock: gn,
1620
1621
  typeTexts: fn,
@@ -1636,7 +1637,7 @@ const ja = (d) => {
1636
1637
  const { buttons: o, setButtons: e, deletable: s = !0, addable: i = !0 } = d, [a, l] = f.useState(null), [r, n] = f.useState({
1637
1638
  top: 0,
1638
1639
  left: 0
1639
- }), [c, x] = f.useState(null), p = f.useRef(null);
1640
+ }), [c, x] = f.useState(null), h = f.useRef(null);
1640
1641
  f.useEffect(() => {
1641
1642
  const _ = () => {
1642
1643
  l(null);
@@ -1650,16 +1651,16 @@ const ja = (d) => {
1650
1651
  e(_);
1651
1652
  }
1652
1653
  }, [a]), f.useEffect(() => {
1653
- if (p.current && c) {
1654
- const _ = p.current.getBoundingClientRect().height, b = window.innerHeight;
1654
+ if (h.current && c) {
1655
+ const _ = h.current.getBoundingClientRect().height, b = window.innerHeight;
1655
1656
  let u = c.top;
1656
1657
  u + _ > b + window.scrollY - 200 && (u = b + window.scrollY - _ - 200), u < 0 && (u = 10), n({
1657
1658
  top: u,
1658
1659
  left: c.left
1659
1660
  });
1660
1661
  }
1661
- }, [p.current, c]);
1662
- const h = (_, b) => {
1662
+ }, [h.current, c]);
1663
+ const p = (_, b) => {
1663
1664
  _.stopPropagation();
1664
1665
  const u = _.target.getBoundingClientRect();
1665
1666
  x({
@@ -1678,11 +1679,11 @@ const ja = (d) => {
1678
1679
  et,
1679
1680
  {
1680
1681
  onChange: (b) => {
1681
- const C = [...o].map((H) => H.id === _.id ? {
1682
+ const B = [...o].map((H) => H.id === _.id ? {
1682
1683
  ..._,
1683
1684
  type: b
1684
1685
  } : H);
1685
- e(C);
1686
+ e(B);
1686
1687
  },
1687
1688
  value: _.type,
1688
1689
  options: ["Primary", "Secondary", "Tertiary"]
@@ -1690,19 +1691,19 @@ const ja = (d) => {
1690
1691
  ),
1691
1692
  /* @__PURE__ */ t.jsxs("div", { className: it.buttons, children: [
1692
1693
  /* @__PURE__ */ t.jsx("div", { className: it.deleteButton, children: /* @__PURE__ */ t.jsx(
1693
- j,
1694
+ v,
1694
1695
  {
1695
1696
  name: "Sliders",
1696
1697
  hoverable: !0,
1697
1698
  width: 20,
1698
1699
  height: 20,
1699
1700
  onClick: (b) => {
1700
- h(b, _);
1701
+ p(b, _);
1701
1702
  }
1702
1703
  }
1703
1704
  ) }),
1704
1705
  s && /* @__PURE__ */ t.jsx("div", { className: it.deleteButton, children: /* @__PURE__ */ t.jsx(
1705
- j,
1706
+ v,
1706
1707
  {
1707
1708
  name: "Trash",
1708
1709
  hoverable: !0,
@@ -1723,7 +1724,7 @@ const ja = (d) => {
1723
1724
  a && /* @__PURE__ */ t.jsx(
1724
1725
  dn,
1725
1726
  {
1726
- ref: p,
1727
+ ref: h,
1727
1728
  activeButton: a,
1728
1729
  setActiveButton: l,
1729
1730
  popupPosition: r
@@ -1761,7 +1762,7 @@ const ja = (d) => {
1761
1762
  children: /* @__PURE__ */ t.jsxs("div", { className: it.addButton, children: [
1762
1763
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1763
1764
  /* @__PURE__ */ t.jsx(
1764
- j,
1765
+ v,
1765
1766
  {
1766
1767
  name: "Plus",
1767
1768
  width: 16,
@@ -1795,7 +1796,7 @@ const ja = (d) => {
1795
1796
  }
1796
1797
  )
1797
1798
  ] }) });
1798
- }, Mn = "_wrapper_m18qi_1", On = "_subtitle_m18qi_7", qn = "_content_m18qi_14", En = "_range_m18qi_22", Dn = "_track_m18qi_27", Ln = "_progress_m18qi_36", Hn = "_dots_m18qi_46", Rn = "_dot_m18qi_46", zn = "_active_m18qi_65", Fn = "_input_m18qi_77", Vn = "_countBlock_m18qi_91", Un = "_count_m18qi_91", Yn = "_controls_m18qi_107", Gn = "_button_m18qi_113", G = {
1799
+ }, Mn = "_wrapper_m18qi_1", On = "_subtitle_m18qi_7", qn = "_content_m18qi_14", En = "_range_m18qi_22", Dn = "_track_m18qi_27", Ln = "_progress_m18qi_36", Hn = "_dots_m18qi_46", zn = "_dot_m18qi_46", Rn = "_active_m18qi_65", Fn = "_input_m18qi_77", Vn = "_countBlock_m18qi_91", Un = "_count_m18qi_91", Yn = "_controls_m18qi_107", Gn = "_button_m18qi_113", X = {
1799
1800
  wrapper: Mn,
1800
1801
  subtitle: On,
1801
1802
  content: qn,
@@ -1803,44 +1804,44 @@ const ja = (d) => {
1803
1804
  track: Dn,
1804
1805
  progress: Ln,
1805
1806
  dots: Hn,
1806
- dot: Rn,
1807
- active: zn,
1807
+ dot: zn,
1808
+ active: Rn,
1808
1809
  input: Fn,
1809
1810
  countBlock: Vn,
1810
1811
  count: Un,
1811
1812
  controls: Yn,
1812
1813
  button: Gn
1813
1814
  }, Ot = (d) => {
1814
- const { label: o, min: e = 1, max: s = 4, step: i = 1, count: a, setCount: l } = d, [r, n] = f.useState(!1), c = Array.from({ length: (s - e) / i + 1 }), x = (a - e) / (s - e) * 100, p = () => {
1815
+ const { label: o, min: e = 1, max: s = 4, step: i = 1, count: a, setCount: l } = d, [r, n] = f.useState(!1), c = Array.from({ length: (s - e) / i + 1 }), x = (a - e) / (s - e) * 100, h = () => {
1815
1816
  a < s && l(a + i);
1816
- }, h = () => {
1817
+ }, p = () => {
1817
1818
  a > e && l(a - i);
1818
1819
  }, _ = (b) => {
1819
1820
  const u = e + b * i;
1820
1821
  l(u);
1821
1822
  };
1822
- return /* @__PURE__ */ t.jsxs("div", { className: G.wrapper, children: [
1823
- o && /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: o }),
1824
- /* @__PURE__ */ t.jsxs("div", { className: G.content, children: [
1825
- /* @__PURE__ */ t.jsxs("div", { className: G.range, children: [
1826
- /* @__PURE__ */ t.jsx("div", { className: G.track }),
1823
+ return /* @__PURE__ */ t.jsxs("div", { className: X.wrapper, children: [
1824
+ o && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: o }),
1825
+ /* @__PURE__ */ t.jsxs("div", { className: X.content, children: [
1826
+ /* @__PURE__ */ t.jsxs("div", { className: X.range, children: [
1827
+ /* @__PURE__ */ t.jsx("div", { className: X.track }),
1827
1828
  /* @__PURE__ */ t.jsx(
1828
1829
  "div",
1829
1830
  {
1830
- className: G.progress,
1831
+ className: X.progress,
1831
1832
  style: { width: `${x}%` }
1832
1833
  }
1833
1834
  ),
1834
- /* @__PURE__ */ t.jsx("div", { className: G.dots, children: c.map((b, u) => {
1835
- const C = u <= (a - e) / i;
1835
+ /* @__PURE__ */ t.jsx("div", { className: X.dots, children: c.map((b, u) => {
1836
+ const B = u <= (a - e) / i;
1836
1837
  return /* @__PURE__ */ t.jsx(
1837
1838
  "button",
1838
1839
  {
1839
1840
  onClick: () => _(u),
1840
- className: U(G.dot, {
1841
- [G.active]: C,
1842
- [G.inactive]: !C,
1843
- [G.dragging]: r
1841
+ className: U(X.dot, {
1842
+ [X.active]: B,
1843
+ [X.inactive]: !B,
1844
+ [X.dragging]: r
1844
1845
  }),
1845
1846
  "aria-label": `Set value to ${e + u * i}`
1846
1847
  },
@@ -1860,11 +1861,11 @@ const ja = (d) => {
1860
1861
  onMouseUp: () => n(!1),
1861
1862
  onTouchStart: () => n(!0),
1862
1863
  onTouchEnd: () => n(!1),
1863
- className: G.input
1864
+ className: X.input
1864
1865
  }
1865
1866
  )
1866
1867
  ] }),
1867
- /* @__PURE__ */ t.jsxs("div", { className: G.countBlock, children: [
1868
+ /* @__PURE__ */ t.jsxs("div", { className: X.countBlock, children: [
1868
1869
  /* @__PURE__ */ t.jsx(
1869
1870
  K,
1870
1871
  {
@@ -1879,16 +1880,16 @@ const ja = (d) => {
1879
1880
  value: String(a)
1880
1881
  }
1881
1882
  ),
1882
- /* @__PURE__ */ t.jsxs("div", { className: G.controls, children: [
1883
+ /* @__PURE__ */ t.jsxs("div", { className: X.controls, children: [
1883
1884
  /* @__PURE__ */ t.jsx(
1884
1885
  "button",
1885
1886
  {
1886
- onClick: p,
1887
+ onClick: h,
1887
1888
  disabled: a >= s,
1888
- className: G.button,
1889
+ className: X.button,
1889
1890
  "aria-label": "Increment count",
1890
1891
  children: /* @__PURE__ */ t.jsx(
1891
- j,
1892
+ v,
1892
1893
  {
1893
1894
  name: "CaretUp",
1894
1895
  width: 15,
@@ -1900,12 +1901,12 @@ const ja = (d) => {
1900
1901
  /* @__PURE__ */ t.jsx(
1901
1902
  "button",
1902
1903
  {
1903
- onClick: h,
1904
+ onClick: p,
1904
1905
  disabled: a <= e,
1905
- className: G.button,
1906
+ className: X.button,
1906
1907
  "aria-label": "Decrement count",
1907
1908
  children: /* @__PURE__ */ t.jsx(
1908
- j,
1909
+ v,
1909
1910
  {
1910
1911
  name: "CaretDown",
1911
1912
  width: 15,
@@ -1918,7 +1919,7 @@ const ja = (d) => {
1918
1919
  ] })
1919
1920
  ] })
1920
1921
  ] });
1921
- }, Xn = "_title_ix5ax_1", Wn = "_subtitle_ix5ax_5", Jn = "_header_ix5ax_12", Qn = "_text_ix5ax_13", Kn = "_productsBlock_ix5ax_14", Zn = "_top_ix5ax_26", ti = "_itemsBlock_ix5ax_35", ei = "_typeTexts_ix5ax_41", si = "_block_ix5ax_48", ni = "_active_ix5ax_61", ii = "_products_ix5ax_14", oi = "_product_ix5ax_14", ai = "_button_ix5ax_80", ci = "_image_ix5ax_91", li = "_info_ix5ax_98", ri = "_name_ix5ax_110", di = "_buttons_ix5ax_114", ui = "_modal_ix5ax_121", mi = "_link_ix5ax_141", _i = "_modalOptions_ix5ax_147", pi = "_addButton_ix5ax_160", hi = "_deleteButton_ix5ax_175", xi = "_closeIcon_ix5ax_187", V = {
1922
+ }, Xn = "_title_ix5ax_1", Wn = "_subtitle_ix5ax_5", Jn = "_header_ix5ax_12", Qn = "_text_ix5ax_13", Kn = "_productsBlock_ix5ax_14", Zn = "_top_ix5ax_26", ti = "_itemsBlock_ix5ax_35", ei = "_typeTexts_ix5ax_41", si = "_block_ix5ax_48", ni = "_active_ix5ax_61", ii = "_products_ix5ax_14", oi = "_product_ix5ax_14", ai = "_button_ix5ax_80", ci = "_image_ix5ax_91", li = "_info_ix5ax_98", ri = "_name_ix5ax_110", di = "_buttons_ix5ax_114", ui = "_modal_ix5ax_121", mi = "_link_ix5ax_141", _i = "_modalOptions_ix5ax_147", hi = "_addButton_ix5ax_160", pi = "_deleteButton_ix5ax_175", xi = "_closeIcon_ix5ax_187", V = {
1922
1923
  title: Xn,
1923
1924
  subtitle: Wn,
1924
1925
  header: Jn,
@@ -1939,8 +1940,8 @@ const ja = (d) => {
1939
1940
  modal: ui,
1940
1941
  link: mi,
1941
1942
  modalOptions: _i,
1942
- addButton: pi,
1943
- deleteButton: hi,
1943
+ addButton: hi,
1944
+ deleteButton: pi,
1944
1945
  closeIcon: xi
1945
1946
  }, gi = (d) => {
1946
1947
  const { activeItem: o, setActiveItem: e, popupPosition: s, setIsOpenModal: i, itemsOptions: a } = d, l = a.find((n) => n.id === o.listingId);
@@ -1963,7 +1964,7 @@ const ja = (d) => {
1963
1964
  /* @__PURE__ */ t.jsxs("div", { className: V.top, children: [
1964
1965
  /* @__PURE__ */ t.jsx("h3", { children: r(l.productData.name, 20) }),
1965
1966
  /* @__PURE__ */ t.jsx("div", { className: V.closeIcon, children: /* @__PURE__ */ t.jsx(
1966
- j,
1967
+ v,
1967
1968
  {
1968
1969
  name: "X",
1969
1970
  height: 20,
@@ -2023,16 +2024,16 @@ const ka = (d) => {
2023
2024
  editable: n = !0,
2024
2025
  draggable: c = !1,
2025
2026
  withImage: x = !1,
2026
- deletable: p = !0,
2027
- addable: h = !0,
2027
+ deletable: h = !0,
2028
+ addable: p = !0,
2028
2029
  itemsType: _,
2029
2030
  itemsOptions: b
2030
- } = d, [u, C] = f.useState(
2031
+ } = d, [u, B] = f.useState(
2031
2032
  null
2032
- ), [H, v] = f.useState({
2033
+ ), [H, I] = f.useState({
2033
2034
  top: 0,
2034
2035
  left: 0
2035
- }), [O, g] = f.useState(!1), $ = $t(
2036
+ }), [N, g] = f.useState(!1), C = $t(
2036
2037
  Nt(St, {
2037
2038
  activationConstraint: {
2038
2039
  distance: 5
@@ -2040,39 +2041,39 @@ const ka = (d) => {
2040
2041
  })
2041
2042
  );
2042
2043
  f.useEffect(() => {
2043
- const k = () => {
2044
- C(null), g(!1);
2044
+ const y = () => {
2045
+ B(null), g(!1);
2045
2046
  };
2046
- return document.body.addEventListener("click", k), C(null), g(!1), () => {
2047
- C(null), g(!1), document.body.removeEventListener("click", k);
2047
+ return document.body.addEventListener("click", y), B(null), g(!1), () => {
2048
+ B(null), g(!1), document.body.removeEventListener("click", y);
2048
2049
  };
2049
2050
  }, []), f.useEffect(() => {
2050
2051
  if (u) {
2051
- const k = [...s].map((A) => A.listingId === u.listingId ? u : A);
2052
- i(k);
2052
+ const y = [...s].map((M) => M.listingId === u.listingId ? u : M);
2053
+ i(y);
2053
2054
  }
2054
2055
  }, [u]);
2055
- const F = (k, A) => {
2056
- k.stopPropagation();
2057
- const M = k.target.getBoundingClientRect(), W = 100, T = window.innerHeight;
2058
- let R = M.top + window.scrollY;
2059
- R + W > T && (R = T - W - 20), g(!0), v({
2060
- top: R - 80,
2061
- left: M.left - 30
2062
- }), C(A);
2056
+ const F = (y, M) => {
2057
+ y.stopPropagation();
2058
+ const T = y.target.getBoundingClientRect(), W = 100, O = window.innerHeight;
2059
+ let z = T.top + window.scrollY;
2060
+ z + W > O && (z = O - W - 20), g(!0), I({
2061
+ top: z - 80,
2062
+ left: T.left - 30
2063
+ }), B(M);
2063
2064
  };
2064
- function q(k) {
2065
+ function S(y) {
2065
2066
  if (x)
2066
- return k ? /* @__PURE__ */ t.jsx(
2067
+ return y ? /* @__PURE__ */ t.jsx(
2067
2068
  "img",
2068
2069
  {
2069
- src: `https://imagedelivery.net/${k}/w=1000`,
2070
+ src: `https://imagedelivery.net/${y}/w=1000`,
2070
2071
  alt: "image",
2071
2072
  width: 16,
2072
2073
  height: 16
2073
2074
  }
2074
2075
  ) : /* @__PURE__ */ t.jsx(
2075
- j,
2076
+ v,
2076
2077
  {
2077
2078
  name: "Image",
2078
2079
  width: 16,
@@ -2081,21 +2082,21 @@ const ka = (d) => {
2081
2082
  }
2082
2083
  );
2083
2084
  }
2084
- const X = (k) => {
2085
- const { active: A, over: M } = k;
2086
- if (M && A.id !== M.id) {
2087
- const W = s.findIndex((R) => String(R.listingId) === A.id), T = s.findIndex((R) => String(R.listingId) === M.id);
2088
- if (W !== -1 && T !== -1) {
2089
- const R = [...s], [Z] = R.splice(W, 1);
2090
- R.splice(T, 0, Z), i(R);
2085
+ const Y = (y) => {
2086
+ const { active: M, over: T } = y;
2087
+ if (T && M.id !== T.id) {
2088
+ const W = s.findIndex((z) => String(z.listingId) === M.id), O = s.findIndex((z) => String(z.listingId) === T.id);
2089
+ if (W !== -1 && O !== -1) {
2090
+ const z = [...s], [Z] = z.splice(W, 1);
2091
+ z.splice(O, 0, Z), i(z);
2091
2092
  }
2092
2093
  }
2093
- }, D = (k, A) => {
2094
- const M = b.find((T) => k.listingId === T.id);
2095
- if (!M) return null;
2094
+ }, E = (y, M) => {
2095
+ const T = b.find((O) => y.listingId === O.id);
2096
+ if (!T) return null;
2096
2097
  const W = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2097
2098
  c && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2098
- j,
2099
+ v,
2099
2100
  {
2100
2101
  name: "DotsSixVertical",
2101
2102
  hoverable: !0,
@@ -2106,45 +2107,45 @@ const ka = (d) => {
2106
2107
  _ === "select" && /* @__PURE__ */ t.jsx(
2107
2108
  et,
2108
2109
  {
2109
- onChange: (T) => {
2110
- const R = [...s], Z = b.find((P) => P.productData.name === T);
2110
+ onChange: (O) => {
2111
+ const z = [...s], Z = b.find((q) => q.productData.name === O);
2111
2112
  if (!Z) return;
2112
2113
  const rt = {
2113
2114
  listingId: Z.id,
2114
2115
  image: Z.productData.images.length > 0 ? Z.productData.images[0].cfId : ""
2115
- }, y = R.map((P) => P.listingId === k.listingId ? rt : P);
2116
- C(rt), i([...y]);
2116
+ }, j = z.map((q) => q.listingId === y.listingId ? rt : q);
2117
+ B(rt), i([...j]);
2117
2118
  },
2118
- value: M.productData.name,
2119
+ value: T.productData.name,
2119
2120
  options: [
2120
- ...b.filter((T) => !s.find((R) => R.listingId === T.id)).map((T) => T.productData.name)
2121
+ ...b.filter((O) => !s.find((z) => z.listingId === O.id)).map((O) => O.productData.name)
2121
2122
  ],
2122
- leftAddon: q(
2123
- k.image || M.productData.images.length > 0 && M.productData.images[0].cfId || ""
2123
+ leftAddon: S(
2124
+ y.image || T.productData.images.length > 0 && T.productData.images[0].cfId || ""
2124
2125
  )
2125
2126
  },
2126
- A
2127
+ M
2127
2128
  ),
2128
2129
  /* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
2129
2130
  n && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
2130
- j,
2131
+ v,
2131
2132
  {
2132
2133
  name: "Sliders",
2133
2134
  hoverable: !0,
2134
2135
  width: 20,
2135
2136
  height: 20,
2136
- onClick: (T) => F(T, k)
2137
+ onClick: (O) => F(O, y)
2137
2138
  }
2138
2139
  ) }),
2139
- p && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
2140
- j,
2140
+ h && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
2141
+ v,
2141
2142
  {
2142
2143
  name: "Trash",
2143
2144
  hoverable: !0,
2144
2145
  width: 20,
2145
2146
  height: 20,
2146
2147
  fill: "#C12A2A",
2147
- onClick: () => i(s.filter((T) => T !== k))
2148
+ onClick: () => i(s.filter((O) => O !== y))
2148
2149
  }
2149
2150
  ) })
2150
2151
  ] })
@@ -2152,17 +2153,17 @@ const ka = (d) => {
2152
2153
  return c ? /* @__PURE__ */ t.jsx(
2153
2154
  fi,
2154
2155
  {
2155
- product: k,
2156
+ product: y,
2156
2157
  children: W
2157
2158
  },
2158
- k.listingId
2159
+ y.listingId
2159
2160
  ) : /* @__PURE__ */ t.jsx(
2160
2161
  "div",
2161
2162
  {
2162
2163
  className: V.product,
2163
2164
  children: W
2164
2165
  },
2165
- k.listingId
2166
+ y.listingId
2166
2167
  );
2167
2168
  };
2168
2169
  return /* @__PURE__ */ t.jsxs("div", { className: V.productsBlock, children: [
@@ -2172,15 +2173,15 @@ const ka = (d) => {
2172
2173
  st,
2173
2174
  {
2174
2175
  current: o,
2175
- onChange: (k) => e == null ? void 0 : e(k)
2176
+ onChange: (y) => e == null ? void 0 : e(y)
2176
2177
  }
2177
2178
  )
2178
2179
  ] }),
2179
- O && u && /* @__PURE__ */ t.jsx(
2180
+ N && u && /* @__PURE__ */ t.jsx(
2180
2181
  gi,
2181
2182
  {
2182
2183
  activeItem: u,
2183
- setActiveItem: C,
2184
+ setActiveItem: B,
2184
2185
  setIsOpenModal: g,
2185
2186
  popupPosition: H,
2186
2187
  itemsOptions: b
@@ -2191,19 +2192,19 @@ const ka = (d) => {
2191
2192
  c ? /* @__PURE__ */ t.jsx(
2192
2193
  wt,
2193
2194
  {
2194
- sensors: $,
2195
- onDragEnd: X,
2195
+ sensors: C,
2196
+ onDragEnd: Y,
2196
2197
  children: /* @__PURE__ */ t.jsx(
2197
2198
  Ct,
2198
2199
  {
2199
- items: s.map((k) => String(k.listingId)),
2200
+ items: s.map((y) => String(y.listingId)),
2200
2201
  strategy: Bt,
2201
- children: s.map((k, A) => D(k, A))
2202
+ children: s.map((y, M) => E(y, M))
2202
2203
  }
2203
2204
  )
2204
2205
  }
2205
- ) : s.map((k, A) => D(k, A)),
2206
- h && /* @__PURE__ */ t.jsx(
2206
+ ) : s.map((y, M) => E(y, M)),
2207
+ p && /* @__PURE__ */ t.jsx(
2207
2208
  "div",
2208
2209
  {
2209
2210
  style: {
@@ -2218,16 +2219,16 @@ const ka = (d) => {
2218
2219
  className: V.button,
2219
2220
  size: "s",
2220
2221
  onClick: () => {
2221
- const k = [...s];
2222
- for (let A = 0; A < b.length; A++)
2223
- if (!s.find((M) => M.listingId === b[A].id)) {
2224
- k.push({
2225
- listingId: b[A].id,
2226
- image: b[A].productData.images.length > 0 ? b[A].productData.images[0].cfId : ""
2222
+ const y = [...s];
2223
+ for (let M = 0; M < b.length; M++)
2224
+ if (!s.find((T) => T.listingId === b[M].id)) {
2225
+ y.push({
2226
+ listingId: b[M].id,
2227
+ image: b[M].productData.images.length > 0 ? b[M].productData.images[0].cfId : ""
2227
2228
  });
2228
2229
  break;
2229
2230
  }
2230
- i(k);
2231
+ i(y);
2231
2232
  },
2232
2233
  disabled: s.length === b.length,
2233
2234
  style: {
@@ -2236,7 +2237,7 @@ const ka = (d) => {
2236
2237
  children: /* @__PURE__ */ t.jsxs("div", { className: V.addButton, children: [
2237
2238
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
2238
2239
  /* @__PURE__ */ t.jsx(
2239
- j,
2240
+ v,
2240
2241
  {
2241
2242
  name: "Plus",
2242
2243
  width: 16,
@@ -2251,7 +2252,7 @@ const ka = (d) => {
2251
2252
  ] }),
2252
2253
  a !== void 0 && /* @__PURE__ */ t.jsx(yt, { items: a })
2253
2254
  ] });
2254
- }, bi = "_options_6cemk_1", vi = "_price_6cemk_12", ji = "_oldPrice_6cemk_19", yi = "_newPrice_6cemk_27", ki = "_animate_6cemk_34", Ii = "_appearAndBounce_6cemk_1", $i = "_meta_6cemk_52", Ni = "_info_6cemk_58", wi = "_infoRight_6cemk_66", Ci = "_buttons_6cemk_73", Bi = "_variants_6cemk_80", Si = "_variant_6cemk_80", Ti = "_stock_6cemk_98", Pi = "_variantInfo_6cemk_105", Ai = "_quantity_6cemk_111", Mi = "_count_6cemk_118", Oi = "_focused_6cemk_135", qi = "_button_6cemk_73", Ei = "_activeVariant_6cemk_161", Di = "_chargeTypes_6cemk_165", Li = "_charge_6cemk_165", Hi = "_chargeActive_6cemk_190", Ri = "_title_6cemk_198", w = {
2255
+ }, bi = "_options_6cemk_1", vi = "_price_6cemk_12", ji = "_oldPrice_6cemk_19", yi = "_newPrice_6cemk_27", ki = "_animate_6cemk_34", Ii = "_appearAndBounce_6cemk_1", $i = "_meta_6cemk_52", Ni = "_info_6cemk_58", wi = "_infoRight_6cemk_66", Ci = "_buttons_6cemk_73", Bi = "_variants_6cemk_80", Si = "_variant_6cemk_80", Ti = "_stock_6cemk_98", Pi = "_variantInfo_6cemk_105", Ai = "_quantity_6cemk_111", Mi = "_count_6cemk_118", Oi = "_focused_6cemk_135", qi = "_button_6cemk_73", Ei = "_activeVariant_6cemk_161", Di = "_chargeTypes_6cemk_165", Li = "_charge_6cemk_165", Hi = "_chargeActive_6cemk_190", zi = "_title_6cemk_198", w = {
2255
2256
  options: bi,
2256
2257
  price: vi,
2257
2258
  oldPrice: ji,
@@ -2274,9 +2275,9 @@ const ka = (d) => {
2274
2275
  chargeTypes: Di,
2275
2276
  charge: Li,
2276
2277
  chargeActive: Hi,
2277
- title: Ri
2278
- }, zi = "_wrapper_p74l6_1", Fi = "_label_p74l6_9", Vi = "_input_p74l6_18", Ui = "_paddingless_p74l6_31", Yi = "_content_p74l6_35", Gi = "_contentBorder_p74l6_48", Xi = "_borderless_p74l6_53", Wi = "_rightIcon_p74l6_58", nt = {
2279
- wrapper: zi,
2278
+ title: zi
2279
+ }, Ri = "_wrapper_c1dht_1", Fi = "_label_c1dht_9", Vi = "_input_c1dht_18", Ui = "_paddingless_c1dht_31", Yi = "_content_c1dht_35", Gi = "_contentBorder_c1dht_47", Xi = "_borderless_c1dht_52", Wi = "_rightIcon_c1dht_57", nt = {
2280
+ wrapper: Ri,
2280
2281
  label: Fi,
2281
2282
  input: Vi,
2282
2283
  paddingless: Ui,
@@ -2296,18 +2297,18 @@ const ka = (d) => {
2296
2297
  placeholder: n,
2297
2298
  disabled: c = !1,
2298
2299
  required: x = !1,
2299
- regex: p,
2300
- paddingless: h = !1,
2300
+ regex: h,
2301
+ paddingless: p = !1,
2301
2302
  borderless: _ = !1,
2302
2303
  editable: b = !1,
2303
2304
  isSearch: u = !1,
2304
- centered: C = !1
2305
- } = d, { themeSettings: H } = Et(), { inputs: v } = H, [O, g] = f.useState(!1);
2306
- function $(q) {
2307
- return Number(q) < 0 ? String(l) : q;
2305
+ centered: B = !1
2306
+ } = d, { themeSettings: H } = Et(), { inputs: I } = H, [N, g] = f.useState(!1);
2307
+ function C(S) {
2308
+ return Number(S) < 0 ? String(l) : S;
2308
2309
  }
2309
- function F(q) {
2310
- return !x || !p ? !0 : new RegExp(p).test(q);
2310
+ function F(S) {
2311
+ return !x || !h ? !0 : new RegExp(h).test(S);
2311
2312
  }
2312
2313
  return /* @__PURE__ */ t.jsxs("div", { className: nt.wrapper, children: [
2313
2314
  s && /* @__PURE__ */ t.jsx(
@@ -2322,12 +2323,12 @@ const ka = (d) => {
2322
2323
  "div",
2323
2324
  {
2324
2325
  className: U(nt.content, {
2325
- [nt.contentBorder]: v.border.active
2326
+ [nt.contentBorder]: I.border.active
2326
2327
  }),
2327
2328
  style: {
2328
- paddingRight: u ? v.general.height + 15 : "auto",
2329
2329
  ...e,
2330
- background: v.field.active ? v.field.color : "transparent"
2330
+ background: I.field.active ? I.field.color : "transparent",
2331
+ padding: u ? `7px ${Number(I.general.size) + 20}px 7px 11px` : "7px 11px"
2331
2332
  },
2332
2333
  children: [
2333
2334
  /* @__PURE__ */ t.jsx(
@@ -2335,19 +2336,19 @@ const ka = (d) => {
2335
2336
  {
2336
2337
  id: s,
2337
2338
  type: a || "text",
2338
- onChange: (q) => {
2339
- if (a === "text") o(q.target.value);
2339
+ onChange: (S) => {
2340
+ if (a === "text") o(S.target.value);
2340
2341
  else {
2341
- const X = $(q.target.value);
2342
- o(X);
2342
+ const Y = C(S.target.value);
2343
+ o(Y);
2343
2344
  }
2344
2345
  },
2345
2346
  value: i,
2346
2347
  autoComplete: "off",
2347
2348
  placeholder: n || "Type something...",
2348
2349
  className: U(nt.input, {
2349
- [nt.required]: O && x && !F(i),
2350
- [nt.paddingless]: h,
2350
+ [nt.required]: N && x && !F(i),
2351
+ [nt.paddingless]: p,
2351
2352
  [nt.borderless]: _
2352
2353
  }),
2353
2354
  min: a === "number" ? l : void 0,
@@ -2355,21 +2356,21 @@ const ka = (d) => {
2355
2356
  disabled: c,
2356
2357
  onFocus: () => g(!0),
2357
2358
  style: {
2358
- textAlign: C ? "center" : "left"
2359
+ textAlign: B ? "center" : "left"
2359
2360
  }
2360
2361
  }
2361
2362
  ),
2362
2363
  u && /* @__PURE__ */ t.jsx("div", { className: nt.rightIcon, children: /* @__PURE__ */ t.jsx(
2363
- j,
2364
+ v,
2364
2365
  {
2365
2366
  name: "MagnifyingGlass",
2366
2367
  fill: "var(--icon-secondary)",
2367
- width: v.general.height,
2368
- height: v.general.height
2368
+ width: I.general.size,
2369
+ height: I.general.size
2369
2370
  }
2370
2371
  ) }),
2371
2372
  b && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2372
- j,
2373
+ v,
2373
2374
  {
2374
2375
  name: "Sliders",
2375
2376
  width: 20,
@@ -2411,7 +2412,7 @@ const ka = (d) => {
2411
2412
  children: l === "Tertiary" ? /* @__PURE__ */ t.jsxs("div", { className: ot.content, children: [
2412
2413
  o,
2413
2414
  /* @__PURE__ */ t.jsx(
2414
- j,
2415
+ v,
2415
2416
  {
2416
2417
  name: "ArrowRight",
2417
2418
  fill: "var(--icon-tertiary)",
@@ -2423,17 +2424,17 @@ const ka = (d) => {
2423
2424
  }
2424
2425
  );
2425
2426
  };
2426
- var zt = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(zt || {});
2427
+ var Rt = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(Rt || {});
2427
2428
  const Ia = (d) => {
2428
- var v, O;
2429
- const { variants: o } = d, [e, s] = f.useState(o[0]), [i, a] = f.useState(e.chargeTypes[0]), l = jt(), [r, n] = f.useState(1), { reset: c, addProductToCart: x, getProducts: p } = At(), [h, _] = f.useState(!1);
2429
+ var I, N;
2430
+ const { variants: o } = d, [e, s] = f.useState(o[0]), [i, a] = f.useState(e.chargeTypes[0]), l = jt(), [r, n] = f.useState(1), { reset: c, addProductToCart: x, getProducts: h } = At(), [p, _] = f.useState(!1);
2430
2431
  f.useEffect(() => {
2431
2432
  _(!0);
2432
2433
  const g = setTimeout(() => _(!1), 600);
2433
2434
  return () => clearTimeout(g);
2434
2435
  }, [r]);
2435
2436
  async function b() {
2436
- await p(), await x({
2437
+ await h(), await x({
2437
2438
  productId: d.id,
2438
2439
  productVariantId: e.id,
2439
2440
  quantity: r
@@ -2442,23 +2443,23 @@ const Ia = (d) => {
2442
2443
  function u() {
2443
2444
  c(), b(), l("/checkout");
2444
2445
  }
2445
- function C(g) {
2446
+ function B(g) {
2446
2447
  if (g >= 864e5) {
2447
- const D = Math.floor(g / 864e5);
2448
- return `${D} ${D === 1 ? "day" : "days"}`;
2448
+ const E = Math.floor(g / 864e5);
2449
+ return `${E} ${E === 1 ? "day" : "days"}`;
2449
2450
  } else if (g >= 36e5) {
2450
- const D = Math.floor(g / 36e5);
2451
- return `${D} ${D === 1 ? "hour" : "hours"}`;
2451
+ const E = Math.floor(g / 36e5);
2452
+ return `${E} ${E === 1 ? "hour" : "hours"}`;
2452
2453
  } else if (g >= 6e4) {
2453
- const D = Math.floor(g / 6e4);
2454
- return `${D} ${D === 1 ? "minute" : "minutes"}`;
2454
+ const E = Math.floor(g / 6e4);
2455
+ return `${E} ${E === 1 ? "minute" : "minutes"}`;
2455
2456
  } else {
2456
- const D = Math.floor(g / 1e3);
2457
- return `${D} ${D === 1 ? "second" : "seconds"}`;
2457
+ const E = Math.floor(g / 1e3);
2458
+ return `${E} ${E === 1 ? "second" : "seconds"}`;
2458
2459
  }
2459
2460
  }
2460
- function H(g, $) {
2461
- return g.length > $ ? g.slice(0, $) + "..." : g;
2461
+ function H(g, C) {
2462
+ return g.length > C ? g.slice(0, C) + "..." : g;
2462
2463
  }
2463
2464
  return /* @__PURE__ */ t.jsxs("div", { className: w.options, children: [
2464
2465
  e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: w.chargeTypes, children: e.chargeTypes.map((g) => /* @__PURE__ */ t.jsx(
@@ -2468,12 +2469,12 @@ const Ia = (d) => {
2468
2469
  [w.chargeActive]: i === g
2469
2470
  }),
2470
2471
  onClick: () => a(g),
2471
- children: zt[g]
2472
+ children: Rt[g]
2472
2473
  },
2473
2474
  g
2474
2475
  )) }),
2475
2476
  /* @__PURE__ */ t.jsx("div", { className: w.variants, children: o.map((g) => {
2476
- var $;
2477
+ var C;
2477
2478
  return /* @__PURE__ */ t.jsxs(
2478
2479
  "div",
2479
2480
  {
@@ -2490,7 +2491,7 @@ const Ia = (d) => {
2490
2491
  ] })
2491
2492
  ] }),
2492
2493
  /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: w.stock, children: [
2493
- (($ = g.quantity.restrictions) == null ? void 0 : $.max) || g.quantity.available || 0,
2494
+ ((C = g.quantity.restrictions) == null ? void 0 : C.max) || g.quantity.available || 0,
2494
2495
  " in stock"
2495
2496
  ] }) })
2496
2497
  ]
@@ -2508,7 +2509,7 @@ const Ia = (d) => {
2508
2509
  },
2509
2510
  className: w.button,
2510
2511
  disabled: e.quantity.restrictions && r <= e.quantity.restrictions.min,
2511
- children: /* @__PURE__ */ t.jsx(j, { name: "Minus" })
2512
+ children: /* @__PURE__ */ t.jsx(v, { name: "Minus" })
2512
2513
  }
2513
2514
  ),
2514
2515
  /* @__PURE__ */ t.jsx(
@@ -2517,8 +2518,8 @@ const Ia = (d) => {
2517
2518
  type: "number",
2518
2519
  value: String(r),
2519
2520
  onChange: (g) => n(Number(g)),
2520
- max: ((v = e.quantity.restrictions) == null ? void 0 : v.max) || e.quantity.available || 1 / 0,
2521
- min: ((O = e.quantity.restrictions) == null ? void 0 : O.min) || 0,
2521
+ max: ((I = e.quantity.restrictions) == null ? void 0 : I.max) || e.quantity.available || 1 / 0,
2522
+ min: ((N = e.quantity.restrictions) == null ? void 0 : N.min) || 0,
2522
2523
  centered: !0
2523
2524
  }
2524
2525
  ),
@@ -2531,7 +2532,7 @@ const Ia = (d) => {
2531
2532
  },
2532
2533
  className: w.button,
2533
2534
  disabled: !!(e.quantity.restrictions && r >= e.quantity.restrictions.max || e.quantity.available && r >= e.quantity.available),
2534
- children: /* @__PURE__ */ t.jsx(j, { name: "Plus" })
2535
+ children: /* @__PURE__ */ t.jsx(v, { name: "Plus" })
2535
2536
  }
2536
2537
  )
2537
2538
  ] }),
@@ -2540,7 +2541,7 @@ const Ia = (d) => {
2540
2541
  /* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
2541
2542
  /* @__PURE__ */ t.jsxs("div", { className: w.infoRight, children: [
2542
2543
  /* @__PURE__ */ t.jsx(
2543
- j,
2544
+ v,
2544
2545
  {
2545
2546
  name: "Lightning",
2546
2547
  fill: "#FF3F19",
@@ -2548,13 +2549,13 @@ const Ia = (d) => {
2548
2549
  height: 20
2549
2550
  }
2550
2551
  ),
2551
- /* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : C(e.deliveryTime) })
2552
+ /* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : B(e.deliveryTime) })
2552
2553
  ] })
2553
2554
  ] }),
2554
2555
  /* @__PURE__ */ t.jsxs("div", { className: w.info, children: [
2555
2556
  /* @__PURE__ */ t.jsx("span", { children: "Price" }),
2556
2557
  /* @__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: [
2557
- /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: h }), children: [
2558
+ /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: p }), children: [
2558
2559
  "$ ",
2559
2560
  (e.price.amount || 0) * r
2560
2561
  ] }),
@@ -2562,11 +2563,11 @@ const Ia = (d) => {
2562
2563
  "$ ",
2563
2564
  (e.compareAtPrice.amount || 0) * r
2564
2565
  ] })
2565
- ] }) : /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: h }), children: [
2566
+ ] }) : /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: p }), children: [
2566
2567
  "$ ",
2567
2568
  (e.price.amount || 0) * r
2568
2569
  ] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: w.price, children: [
2569
- /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: h }), children: [
2570
+ /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: p }), children: [
2570
2571
  "$ ",
2571
2572
  e.subscriptionSettings.price.amount || 0
2572
2573
  ] }),
@@ -2574,7 +2575,7 @@ const Ia = (d) => {
2574
2575
  "$ ",
2575
2576
  e.subscriptionSettings.compareAtPrice.amount || 0
2576
2577
  ] })
2577
- ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: h }), children: [
2578
+ ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: U(w.newPrice, { [w.animate]: p }), children: [
2578
2579
  "$ ",
2579
2580
  e.subscriptionSettings.price.amount || 0
2580
2581
  ] }) })
@@ -2599,7 +2600,7 @@ const Ia = (d) => {
2599
2600
  )
2600
2601
  ] })
2601
2602
  ] });
2602
- }, oo = "_button_1tdo3_1", ao = "_login_1tdo3_14", co = "_signUp_1tdo3_18", lo = "_buttons_1tdo3_23", ro = "_modal_1tdo3_32", uo = "_closing_1tdo3_64", mo = "_info_1tdo3_113", _o = "_top_1tdo3_120", po = "_title_1tdo3_131", ho = "_clear_1tdo3_138", xo = "_activeClear_1tdo3_145", go = "_count_1tdo3_149", fo = "_cart_1tdo3_164", bo = "_empty_1tdo3_172", vo = "_product_1tdo3_198", jo = "_products_1tdo3_207", yo = "_image_1tdo3_215", ko = "_productInfo_1tdo3_221", Io = "_content_1tdo3_228", $o = "_name_1tdo3_234", No = "_price_1tdo3_240", wo = "_productButtons_1tdo3_246", Co = "_productButton_1tdo3_246", Bo = "_productCount_1tdo3_266", So = "_bottom_1tdo3_282", To = "_subtotal_1tdo3_290", Po = "_block_1tdo3_298", Ao = "_shoppingCount_1tdo3_305", Mo = "_total_1tdo3_325", Oo = "_link_1tdo3_331", qo = "_userInfo_1tdo3_338", Eo = "_pagesMobileModal_1tdo3_349", Do = "_pagesMobileModalContent_1tdo3_363", Lo = "_pagesMobileModalHeader_1tdo3_369", Ho = "_pagesMobileModalFooter_1tdo3_379", N = {
2603
+ }, oo = "_button_1tdo3_1", ao = "_login_1tdo3_14", co = "_signUp_1tdo3_18", lo = "_buttons_1tdo3_23", ro = "_modal_1tdo3_32", uo = "_closing_1tdo3_64", mo = "_info_1tdo3_113", _o = "_top_1tdo3_120", ho = "_title_1tdo3_131", po = "_clear_1tdo3_138", xo = "_activeClear_1tdo3_145", go = "_count_1tdo3_149", fo = "_cart_1tdo3_164", bo = "_empty_1tdo3_172", vo = "_product_1tdo3_198", jo = "_products_1tdo3_207", yo = "_image_1tdo3_215", ko = "_productInfo_1tdo3_221", Io = "_content_1tdo3_228", $o = "_name_1tdo3_234", No = "_price_1tdo3_240", wo = "_productButtons_1tdo3_246", Co = "_productButton_1tdo3_246", Bo = "_productCount_1tdo3_266", So = "_bottom_1tdo3_282", To = "_subtotal_1tdo3_290", Po = "_block_1tdo3_298", Ao = "_shoppingCount_1tdo3_305", Mo = "_total_1tdo3_325", Oo = "_link_1tdo3_331", qo = "_userInfo_1tdo3_338", Eo = "_pagesMobileModal_1tdo3_349", Do = "_pagesMobileModalContent_1tdo3_363", Lo = "_pagesMobileModalHeader_1tdo3_369", Ho = "_pagesMobileModalFooter_1tdo3_379", $ = {
2603
2604
  button: oo,
2604
2605
  login: ao,
2605
2606
  signUp: co,
@@ -2612,8 +2613,8 @@ const Ia = (d) => {
2612
2613
  "slide-out-fade": "_slide-out-fade_1tdo3_1",
2613
2614
  info: mo,
2614
2615
  top: _o,
2615
- title: po,
2616
- clear: ho,
2616
+ title: ho,
2617
+ clear: po,
2617
2618
  activeClear: xo,
2618
2619
  count: go,
2619
2620
  cart: fo,
@@ -2643,13 +2644,13 @@ const Ia = (d) => {
2643
2644
  class gt extends Error {
2644
2645
  }
2645
2646
  gt.prototype.name = "InvalidTokenError";
2646
- function Ro(d) {
2647
+ function zo(d) {
2647
2648
  return decodeURIComponent(atob(d).replace(/(.)/g, (o, e) => {
2648
2649
  let s = e.charCodeAt(0).toString(16).toUpperCase();
2649
2650
  return s.length < 2 && (s = "0" + s), "%" + s;
2650
2651
  }));
2651
2652
  }
2652
- function zo(d) {
2653
+ function Ro(d) {
2653
2654
  let o = d.replace(/-/g, "+").replace(/_/g, "/");
2654
2655
  switch (o.length % 4) {
2655
2656
  case 0:
@@ -2664,7 +2665,7 @@ function zo(d) {
2664
2665
  throw new Error("base64 string is not of the correct length");
2665
2666
  }
2666
2667
  try {
2667
- return Ro(o);
2668
+ return zo(o);
2668
2669
  } catch {
2669
2670
  return atob(o);
2670
2671
  }
@@ -2678,7 +2679,7 @@ function Fo(d, o) {
2678
2679
  throw new gt(`Invalid token specified: missing part #${e + 1}`);
2679
2680
  let i;
2680
2681
  try {
2681
- i = zo(s);
2682
+ i = Ro(s);
2682
2683
  } catch (a) {
2683
2684
  throw new gt(`Invalid token specified: invalid base64 for part #${e + 1} (${a.message})`);
2684
2685
  }
@@ -2690,39 +2691,39 @@ function Fo(d, o) {
2690
2691
  }
2691
2692
  const $a = (d) => {
2692
2693
  const { shopping: o, signUp: e, isShowUserInfo: s = !0 } = d;
2693
- return /* @__PURE__ */ t.jsxs("div", { className: N.buttons, children: [
2694
+ return /* @__PURE__ */ t.jsxs("div", { className: $.buttons, children: [
2694
2695
  o && /* @__PURE__ */ t.jsx(Vo, {}),
2695
2696
  s && /* @__PURE__ */ t.jsx(Ft, { signUp: e })
2696
2697
  ] });
2697
2698
  }, Vo = () => {
2698
2699
  const [d, o] = f.useState(!1), [e, s] = f.useState([]), { cart: i, getProducts: a } = At();
2699
- function l(h) {
2700
+ function l(p) {
2700
2701
  for (let _ = 0; _ < i.parts.length; _++)
2701
- for (let b = 0; b < h.variants.length; b++)
2702
- if (i.parts[_].productVariantId === h.variants[_].id)
2702
+ for (let b = 0; b < p.variants.length; b++)
2703
+ if (i.parts[_].productVariantId === p.variants[_].id)
2703
2704
  return i.parts[_].productVariantId;
2704
2705
  }
2705
- function r(h) {
2706
+ function r(p) {
2706
2707
  for (let _ = 0; _ < i.parts.length; _++)
2707
- for (let b = 0; b < h.variants.length; b++)
2708
- if (i.parts[_].productVariantId === h.variants[_].id)
2708
+ for (let b = 0; b < p.variants.length; b++)
2709
+ if (i.parts[_].productVariantId === p.variants[_].id)
2709
2710
  return i.parts[_].quantity;
2710
2711
  }
2711
2712
  f.useEffect(() => {
2712
2713
  (async () => {
2713
- const _ = i.parts.map((C) => String(C.productId)), u = (await a([..._])).map((C) => ({
2714
- ...C,
2715
- activeVariantId: l(C),
2716
- quantity: r(C)
2714
+ const _ = i.parts.map((B) => String(B.productId)), u = (await a([..._])).map((B) => ({
2715
+ ...B,
2716
+ activeVariantId: l(B),
2717
+ quantity: r(B)
2717
2718
  }));
2718
2719
  s(u);
2719
2720
  })();
2720
2721
  }, [i.parts.length]);
2721
- function n(h) {
2722
+ function n(p) {
2722
2723
  var _;
2723
- return !h || !(h != null && h.variants) ? !1 : (_ = h.variants.find((b) => b.id === h.activeVariantId)) == null ? void 0 : _.subscriptionSettings;
2724
+ return !p || !(p != null && p.variants) ? !1 : (_ = p.variants.find((b) => b.id === p.activeVariantId)) == null ? void 0 : _.subscriptionSettings;
2724
2725
  }
2725
- const c = i.parts.length > 0 && e.length > 0 && !n(e[0]), [x, p] = f.useState(!1);
2726
+ const c = i.parts.length > 0 && e.length > 0 && !n(e[0]), [x, h] = f.useState(!1);
2726
2727
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2727
2728
  /* @__PURE__ */ t.jsxs(
2728
2729
  tt,
@@ -2731,18 +2732,18 @@ const $a = (d) => {
2731
2732
  style: {
2732
2733
  padding: 10
2733
2734
  },
2734
- onClick: (h) => {
2735
- h.stopPropagation(), window.location.pathname !== "/admin/builder" && (o(!0), p(!0));
2735
+ onClick: (p) => {
2736
+ p.stopPropagation(), window.location.pathname !== "/admin/builder" && (o(!0), h(!0));
2736
2737
  },
2737
2738
  children: [
2738
2739
  /* @__PURE__ */ t.jsx(
2739
- j,
2740
+ v,
2740
2741
  {
2741
2742
  name: "Handbag",
2742
2743
  fill: "var(--icon-primary)"
2743
2744
  }
2744
2745
  ),
2745
- c && /* @__PURE__ */ t.jsx("div", { className: N.shoppingCount, children: i.parts.length })
2746
+ c && /* @__PURE__ */ t.jsx("div", { className: $.shoppingCount, children: i.parts.length })
2746
2747
  ]
2747
2748
  }
2748
2749
  ),
@@ -2750,7 +2751,7 @@ const $a = (d) => {
2750
2751
  Mt,
2751
2752
  {
2752
2753
  close: () => {
2753
- p(!1), setTimeout(() => {
2754
+ h(!1), setTimeout(() => {
2754
2755
  o(!1);
2755
2756
  }, 300);
2756
2757
  },
@@ -2768,41 +2769,41 @@ const $a = (d) => {
2768
2769
  ] });
2769
2770
  }, Uo = (d) => {
2770
2771
  const { activeProducts: o, isCartNotEmpty: e, isOpen: s } = d, { cart: i, reset: a, getTotalAndDiscount: l, updateQuantityOfProduct: r } = At(), n = jt();
2771
- function c(h) {
2772
- n(h);
2772
+ function c(p) {
2773
+ n(p);
2773
2774
  }
2774
- function x(h) {
2775
+ function x(p) {
2775
2776
  r({
2776
- productId: h.id,
2777
- productVariantId: h.activeVariantId,
2778
- quantity: h.quantity + 1
2777
+ productId: p.id,
2778
+ productVariantId: p.activeVariantId,
2779
+ quantity: p.quantity + 1
2779
2780
  });
2780
2781
  }
2781
- function p(h) {
2782
+ function h(p) {
2782
2783
  r({
2783
- productId: h.id,
2784
- productVariantId: h.activeVariantId,
2785
- quantity: h.quantity - 1
2784
+ productId: p.id,
2785
+ productVariantId: p.activeVariantId,
2786
+ quantity: p.quantity - 1
2786
2787
  });
2787
2788
  }
2788
2789
  return /* @__PURE__ */ t.jsxs(
2789
2790
  "div",
2790
2791
  {
2791
- className: U(N.modal, {
2792
- [N.closing]: !s
2792
+ className: U($.modal, {
2793
+ [$.closing]: !s
2793
2794
  }),
2794
- onClick: (h) => h.stopPropagation(),
2795
+ onClick: (p) => p.stopPropagation(),
2795
2796
  children: [
2796
- /* @__PURE__ */ t.jsxs("div", { className: N.top, children: [
2797
- /* @__PURE__ */ t.jsxs("div", { className: N.info, children: [
2798
- /* @__PURE__ */ t.jsx("span", { className: N.title, children: "Cart" }),
2799
- e && /* @__PURE__ */ t.jsx("div", { className: N.count, children: i.parts.length })
2797
+ /* @__PURE__ */ t.jsxs("div", { className: $.top, children: [
2798
+ /* @__PURE__ */ t.jsxs("div", { className: $.info, children: [
2799
+ /* @__PURE__ */ t.jsx("span", { className: $.title, children: "Cart" }),
2800
+ e && /* @__PURE__ */ t.jsx("div", { className: $.count, children: i.parts.length })
2800
2801
  ] }),
2801
2802
  /* @__PURE__ */ t.jsx(
2802
2803
  "button",
2803
2804
  {
2804
- className: U(N.clear, {
2805
- [N.activeClear]: e
2805
+ className: U($.clear, {
2806
+ [$.activeClear]: e
2806
2807
  }),
2807
2808
  disabled: !e,
2808
2809
  onClick: a,
@@ -2810,41 +2811,41 @@ const $a = (d) => {
2810
2811
  }
2811
2812
  )
2812
2813
  ] }),
2813
- e ? /* @__PURE__ */ t.jsxs("div", { className: N.cart, children: [
2814
- /* @__PURE__ */ t.jsx("div", { className: N.products, children: o.map((h) => /* @__PURE__ */ t.jsxs(
2814
+ e ? /* @__PURE__ */ t.jsxs("div", { className: $.cart, children: [
2815
+ /* @__PURE__ */ t.jsx("div", { className: $.products, children: o.map((p) => /* @__PURE__ */ t.jsxs(
2815
2816
  "div",
2816
2817
  {
2817
- className: N.product,
2818
+ className: $.product,
2818
2819
  children: [
2819
- /* @__PURE__ */ t.jsxs("div", { className: N.productInfo, children: [
2820
+ /* @__PURE__ */ t.jsxs("div", { className: $.productInfo, children: [
2820
2821
  /* @__PURE__ */ t.jsx(
2821
2822
  "img",
2822
2823
  {
2823
- src: `https://imagedelivery.net/${h.images[0].cfId}/w=500`,
2824
+ src: `https://imagedelivery.net/${p.images[0].cfId}/w=500`,
2824
2825
  alt: "image",
2825
2826
  width: "100%",
2826
2827
  height: "100%",
2827
- className: N.image
2828
+ className: $.image
2828
2829
  }
2829
2830
  ),
2830
- /* @__PURE__ */ t.jsxs("div", { className: N.content, children: [
2831
- /* @__PURE__ */ t.jsx("div", { className: N.name, children: h.name }),
2832
- /* @__PURE__ */ t.jsxs("div", { className: N.price, children: [
2831
+ /* @__PURE__ */ t.jsxs("div", { className: $.content, children: [
2832
+ /* @__PURE__ */ t.jsx("div", { className: $.name, children: p.name }),
2833
+ /* @__PURE__ */ t.jsxs("div", { className: $.price, children: [
2833
2834
  "$",
2834
- h.variants.find((_) => _.id === h.activeVariantId).price.amount * ((h == null ? void 0 : h.quantity) || 1)
2835
+ p.variants.find((_) => _.id === p.activeVariantId).price.amount * ((p == null ? void 0 : p.quantity) || 1)
2835
2836
  ] })
2836
2837
  ] })
2837
2838
  ] }),
2838
- /* @__PURE__ */ t.jsxs("div", { className: N.productButtons, children: [
2839
+ /* @__PURE__ */ t.jsxs("div", { className: $.productButtons, children: [
2839
2840
  /* @__PURE__ */ t.jsx(
2840
2841
  "div",
2841
2842
  {
2842
2843
  onClick: () => {
2843
- h.quantity !== 1 && p(h);
2844
+ p.quantity !== 1 && h(p);
2844
2845
  },
2845
- className: N.productButton,
2846
+ className: $.productButton,
2846
2847
  children: /* @__PURE__ */ t.jsx(
2847
- j,
2848
+ v,
2848
2849
  {
2849
2850
  name: "Minus",
2850
2851
  fill: "#757575",
@@ -2854,14 +2855,14 @@ const $a = (d) => {
2854
2855
  )
2855
2856
  }
2856
2857
  ),
2857
- /* @__PURE__ */ t.jsx("div", { className: N.productCount, children: h.quantity }),
2858
+ /* @__PURE__ */ t.jsx("div", { className: $.productCount, children: p.quantity }),
2858
2859
  /* @__PURE__ */ t.jsx(
2859
2860
  "div",
2860
2861
  {
2861
- onClick: () => x(h),
2862
- className: N.productButton,
2862
+ onClick: () => x(p),
2863
+ className: $.productButton,
2863
2864
  children: /* @__PURE__ */ t.jsx(
2864
- j,
2865
+ v,
2865
2866
  {
2866
2867
  name: "Plus",
2867
2868
  fill: "#757575",
@@ -2874,14 +2875,14 @@ const $a = (d) => {
2874
2875
  ] })
2875
2876
  ]
2876
2877
  },
2877
- h.id
2878
+ p.id
2878
2879
  )) }),
2879
- /* @__PURE__ */ t.jsxs("div", { className: N.bottom, children: [
2880
- /* @__PURE__ */ t.jsxs("div", { className: N.subtotal, children: [
2881
- /* @__PURE__ */ t.jsxs("div", { className: N.block, children: [
2880
+ /* @__PURE__ */ t.jsxs("div", { className: $.bottom, children: [
2881
+ /* @__PURE__ */ t.jsxs("div", { className: $.subtotal, children: [
2882
+ /* @__PURE__ */ t.jsxs("div", { className: $.block, children: [
2882
2883
  /* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
2883
2884
  /* @__PURE__ */ t.jsx(
2884
- j,
2885
+ v,
2885
2886
  {
2886
2887
  name: "Info",
2887
2888
  width: 20,
@@ -2890,7 +2891,7 @@ const $a = (d) => {
2890
2891
  }
2891
2892
  )
2892
2893
  ] }),
2893
- /* @__PURE__ */ t.jsxs("div", { className: N.total, children: [
2894
+ /* @__PURE__ */ t.jsxs("div", { className: $.total, children: [
2894
2895
  "$",
2895
2896
  l().total
2896
2897
  ] })
@@ -2901,9 +2902,9 @@ const $a = (d) => {
2901
2902
  ]
2902
2903
  }
2903
2904
  );
2904
- }, Yo = () => /* @__PURE__ */ t.jsxs("div", { className: N.empty, children: [
2905
+ }, Yo = () => /* @__PURE__ */ t.jsxs("div", { className: $.empty, children: [
2905
2906
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2906
- j,
2907
+ v,
2907
2908
  {
2908
2909
  name: "Handbag",
2909
2910
  fill: "var(--icon-secondary)"
@@ -2917,7 +2918,7 @@ const $a = (d) => {
2917
2918
  "a",
2918
2919
  {
2919
2920
  href: "/products",
2920
- className: N.link,
2921
+ className: $.link,
2921
2922
  children: "view products"
2922
2923
  }
2923
2924
  )
@@ -2961,7 +2962,7 @@ const $a = (d) => {
2961
2962
  }, [e]), /* @__PURE__ */ t.jsx(
2962
2963
  "div",
2963
2964
  {
2964
- className: N.userInfo,
2965
+ className: $.userInfo,
2965
2966
  onClick: () => i("/customer-dash"),
2966
2967
  children: /* @__PURE__ */ t.jsx("div", { children: a || "test-email@gmail.com" })
2967
2968
  }
@@ -2980,10 +2981,10 @@ const $a = (d) => {
2980
2981
  return /* @__PURE__ */ t.jsxs(
2981
2982
  "div",
2982
2983
  {
2983
- className: N.pagesMobileModal,
2984
+ className: $.pagesMobileModal,
2984
2985
  onClick: (l) => l.stopPropagation(),
2985
2986
  children: [
2986
- /* @__PURE__ */ t.jsxs("div", { className: N.pagesMobileModalHeader, children: [
2987
+ /* @__PURE__ */ t.jsxs("div", { className: $.pagesMobileModalHeader, children: [
2987
2988
  /* @__PURE__ */ t.jsx("div", { children: o }),
2988
2989
  /* @__PURE__ */ t.jsx(
2989
2990
  tt,
@@ -2991,7 +2992,7 @@ const $a = (d) => {
2991
2992
  type: "Secondary",
2992
2993
  onClick: a,
2993
2994
  children: /* @__PURE__ */ t.jsx(
2994
- j,
2995
+ v,
2995
2996
  {
2996
2997
  name: "X",
2997
2998
  fill: "var(--icon-primary)"
@@ -3000,8 +3001,8 @@ const $a = (d) => {
3000
3001
  }
3001
3002
  )
3002
3003
  ] }),
3003
- /* @__PURE__ */ t.jsx("div", { className: N.pagesMobileModalContent, children: d }),
3004
- /* @__PURE__ */ t.jsx("div", { className: N.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(Ft, { signUp: s }) })
3004
+ /* @__PURE__ */ t.jsx("div", { className: $.pagesMobileModalContent, children: d }),
3005
+ /* @__PURE__ */ t.jsx("div", { className: $.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(Ft, { signUp: s }) })
3005
3006
  ]
3006
3007
  }
3007
3008
  );
@@ -3036,7 +3037,7 @@ const $a = (d) => {
3036
3037
  e.stopPropagation(), o(!0);
3037
3038
  },
3038
3039
  children: /* @__PURE__ */ t.jsx(
3039
- j,
3040
+ v,
3040
3041
  {
3041
3042
  name: "List",
3042
3043
  fill: "var(--icon-primary)"
@@ -3071,7 +3072,7 @@ const $a = (d) => {
3071
3072
  },
3072
3073
  type: "Secondary",
3073
3074
  children: /* @__PURE__ */ t.jsx(
3074
- j,
3075
+ v,
3075
3076
  {
3076
3077
  name: "Share",
3077
3078
  fill: "#757575",
@@ -3107,7 +3108,7 @@ const $a = (d) => {
3107
3108
  /* @__PURE__ */ t.jsxs("div", { className: at.header, children: [
3108
3109
  /* @__PURE__ */ t.jsx("div", { className: at.title, children: "Copy Product Link" }),
3109
3110
  /* @__PURE__ */ t.jsx(
3110
- j,
3111
+ v,
3111
3112
  {
3112
3113
  name: "X",
3113
3114
  fill: "#757575",
@@ -3137,7 +3138,7 @@ const $a = (d) => {
3137
3138
  {
3138
3139
  type: "Secondary",
3139
3140
  onClick: a,
3140
- children: o ? /* @__PURE__ */ t.jsx(j, { name: "Check" }) : /* @__PURE__ */ t.jsx(j, { name: "Copy" })
3141
+ children: o ? /* @__PURE__ */ t.jsx(v, { name: "Check" }) : /* @__PURE__ */ t.jsx(v, { name: "Copy" })
3141
3142
  }
3142
3143
  )
3143
3144
  ] })
@@ -3164,7 +3165,7 @@ const $a = (d) => {
3164
3165
  onClick: n,
3165
3166
  children: [
3166
3167
  /* @__PURE__ */ t.jsx("h5", { id: "h5", children: d }),
3167
- /* @__PURE__ */ t.jsx("div", { className: U(xt.icon, { [xt.open]: s }), children: /* @__PURE__ */ t.jsx(j, { name: "CaretDown" }) })
3168
+ /* @__PURE__ */ t.jsx("div", { className: U(xt.icon, { [xt.open]: s }), children: /* @__PURE__ */ t.jsx(v, { name: "CaretDown" }) })
3168
3169
  ]
3169
3170
  }
3170
3171
  ),
@@ -3193,11 +3194,11 @@ const $a = (d) => {
3193
3194
  children: d
3194
3195
  }
3195
3196
  );
3196
- }, ma = "_wrapper_st58d_1", _a = "_label_st58d_10", pa = "_textarea_st58d_18", ha = "_length_st58d_33", vt = {
3197
+ }, ma = "_wrapper_st58d_1", _a = "_label_st58d_10", ha = "_textarea_st58d_18", pa = "_length_st58d_33", vt = {
3197
3198
  wrapper: ma,
3198
3199
  label: _a,
3199
- textarea: pa,
3200
- length: ha
3200
+ textarea: ha,
3201
+ length: pa
3201
3202
  }, Sa = (d) => {
3202
3203
  const { onChange: o, label: e, value: s, maxLength: i, placeholder: a = "Type something..." } = d, [l, r] = f.useState(s.length);
3203
3204
  return /* @__PURE__ */ t.jsxs("div", { className: vt.wrapper, children: [
@@ -3241,7 +3242,7 @@ export {
3241
3242
  Yo as EmptyCart,
3242
3243
  ja as FormSettings,
3243
3244
  $a as HeaderButtons,
3244
- j as Icon,
3245
+ v as Icon,
3245
3246
  K as InputSettings,
3246
3247
  Ji as InputUI,
3247
3248
  Ue as ItemsSettings,
@@ -3259,7 +3260,7 @@ export {
3259
3260
  Vo as ShoppingButton,
3260
3261
  Uo as ShoppingModalCart,
3261
3262
  st as Switch,
3262
- Rt as TextSettings,
3263
+ zt as TextSettings,
3263
3264
  qt as TextareaSettings,
3264
3265
  Sa as TextareaUI,
3265
3266
  Ht as TypesText,