@billgangcom/theme-lib 1.114.3 → 1.116.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{builder-C4IiRjp5.js → builder-Bj8ViroH.js} +5 -5
  2. package/dist/{builder-CZiRl_4b.cjs → builder-CUCCG2gi.cjs} +2 -2
  3. package/dist/{builder-components-Ds0B6KAh.cjs → builder-components-D2219YPy.cjs} +1 -1
  4. package/dist/{builder-components-DUtnQsMR.js → builder-components-R1dTBy7D.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +34 -34
  7. package/dist/charge-BrY_-ls8.cjs +109 -0
  8. package/dist/{charge-BAjv22Uu.js → charge-Cti1lSP2.js} +8418 -8034
  9. package/dist/{checkout-BihRJw1G.cjs → checkout-C-7bV9sk.cjs} +1 -1
  10. package/dist/{checkout-CsTWd6tI.js → checkout-CTbZMuPC.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +7 -7
  13. package/dist/{index-CGhg-CkV.js → index-B03fd16N.js} +8 -8
  14. package/dist/{index-D4BCHJ4l.js → index-BBcZT0G2.js} +5 -5
  15. package/dist/{index-eaTS3-Aj.cjs → index-CILywG47.cjs} +1 -1
  16. package/dist/{index-0itRmU2L.cjs → index-CQm0i92r.cjs} +1 -1
  17. package/dist/{index-BbTAMqA3.js → index-CUFJfAc6.js} +1 -1
  18. package/dist/{index-BXuENnlY.js → index-CUnfTwF8.js} +5 -5
  19. package/dist/{index-CJ8gac-X.cjs → index-HhcLQjbw.cjs} +1 -1
  20. package/dist/{index-BQKbOYps.cjs → index-O5YekXKo.cjs} +1 -1
  21. package/dist/{index-DcAv5U36.js → index-OTW9ycHk.js} +5 -5
  22. package/dist/{index-DEpz6kqr.cjs → index-xbQ-1j9f.cjs} +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +14 -14
  25. package/dist/order-1lHCRSUw.js +355 -0
  26. package/dist/order-DNaXADFJ.cjs +1 -0
  27. package/dist/src/storefront/api/index.d.ts +1 -0
  28. package/dist/src/storefront/api/vouches.d.ts +7 -0
  29. package/dist/src/storefront/components/VouchCard/index.d.ts +7 -0
  30. package/dist/src/storefront/components/VouchModal/index.d.ts +12 -0
  31. package/dist/src/storefront/components/index.d.ts +2 -0
  32. package/dist/src/storefront/models/shop.d.ts +3 -0
  33. package/dist/src/ui/Checkbox/index.d.ts +1 -0
  34. package/dist/src/ui/Textarea/index.d.ts +1 -0
  35. package/dist/style.css +1 -1
  36. package/dist/{subscription-BAy6WRcF.cjs → subscription-BS-hdxzD.cjs} +1 -1
  37. package/dist/{subscription-2rmlPxD5.js → subscription-DBjS-E8T.js} +5 -5
  38. package/dist/{ticket-D5JmN5l9.js → ticket-BtcmMwIl.js} +420 -414
  39. package/dist/{ticket-Buu-gWi7.cjs → ticket-myEl0GYr.cjs} +62 -62
  40. package/dist/{top-up-iDz6xeq5.js → top-up-DNSDJwN-.js} +8 -8
  41. package/dist/{top-up-Cj3r_l4u.cjs → top-up-DTVCb-zx.cjs} +1 -1
  42. package/dist/ui-components-BR9v0VH1.cjs +1 -0
  43. package/dist/{ui-components-CAvXxpG4.js → ui-components-PK209o-T.js} +978 -968
  44. package/dist/ui.cjs.js +1 -1
  45. package/dist/ui.es.js +1 -1
  46. package/dist/{validation-BzWFnVQz.cjs → validation-D3uB6IO3.cjs} +1 -1
  47. package/dist/{validation-CVlQrUBl.js → validation-DgaNU463.js} +9 -9
  48. package/package.json +1 -1
  49. package/dist/charge-Swo2yUda.cjs +0 -109
  50. package/dist/order-DepPRtns.cjs +0 -1
  51. package/dist/order-sMlMoj4y.js +0 -320
  52. package/dist/ui-components-DhvDTRiU.cjs +0 -1
@@ -2,15 +2,15 @@ var sn = Object.defineProperty;
2
2
  var an = (c, t, s) => t in c ? sn(c, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : c[t] = s;
3
3
  var Tt = (c, t, s) => an(c, typeof t != "symbol" ? t + "" : t, s);
4
4
  import { jsx as e, jsxs as h, Fragment as G } from "react/jsx-runtime";
5
- import b, { createElement as gt, PureComponent as on } from "react";
6
- import { f as q, ac as it, j as jt, r as Ht, m as pt, V as ze, ad as Vt, J as be, v as le, ae as kt, af as Ct, b as We, l as cn, e as He, p as mt, _ as me, a4 as rn, M as ln, ag as dn, ah as Wt, k as un } from "./builder-C4IiRjp5.js";
7
- import { U as hn, u as Fe, G as pn } from "./charge-BAjv22Uu.js";
8
- import { u as Ge, d as Xe, D as Ye, e as Ke, v as Qe, f as Je, g as Ze, C as et, F as Gt } from "./builder-components-DUtnQsMR.js";
9
- import { s as Oe, g as mn, u as fn } from "./ticket-D5JmN5l9.js";
10
- import gn from "react-dom";
11
- const _n = "_wrapper_5w9s8_1", vn = {
12
- wrapper: _n
13
- }, Td = (c) => {
5
+ import b, { createElement as _t, PureComponent as on } from "react";
6
+ import { f as q, ac as at, j as Ut, r as Ht, m as pt, V as ze, ad as Vt, J as Ie, v as le, ae as xt, af as kt, b as Ge, l as cn, e as Ve, p as mt, _ as me, a4 as rn, M as ln, ag as dn, ah as Wt, k as un } from "./builder-Bj8ViroH.js";
7
+ import { W as hn, u as Fe, H as pn } from "./charge-Cti1lSP2.js";
8
+ import { u as Xe, d as Ye, D as Ke, e as Qe, v as Je, f as Ze, g as et, C as tt, F as Gt } from "./builder-components-R1dTBy7D.js";
9
+ import { s as Oe, g as mn, u as fn } from "./ticket-BtcmMwIl.js";
10
+ import _n from "react-dom";
11
+ const gn = "_wrapper_5w9s8_1", vn = {
12
+ wrapper: gn
13
+ }, Ad = (c) => {
14
14
  const { error: t } = c;
15
15
  return /* @__PURE__ */ e("div", { className: vn.wrapper, children: t });
16
16
  }, yn = "_icon_bsuj2_1", bn = "_hoverable_bsuj2_5", Pt = {
@@ -20,21 +20,21 @@ const _n = "_wrapper_5w9s8_1", vn = {
20
20
  function In(c, t) {
21
21
  ft.set(c, t);
22
22
  }
23
- function Nn(c) {
23
+ function Sn(c) {
24
24
  return ft.get(c) || null;
25
25
  }
26
- function Pd(c) {
26
+ function Bd(c) {
27
27
  return ft.has(c);
28
28
  }
29
- function Od() {
29
+ function Md() {
30
30
  return Array.from(ft.keys());
31
31
  }
32
- function Ad(c) {
32
+ function Ed(c) {
33
33
  Object.entries(c).forEach(([t, s]) => {
34
34
  In(t, s);
35
35
  });
36
36
  }
37
- const x = ({
37
+ const C = ({
38
38
  name: c,
39
39
  fill: t = "currentColor",
40
40
  hoverable: s = !1,
@@ -44,8 +44,8 @@ const x = ({
44
44
  height: d = 24,
45
45
  style: r = {}
46
46
  }) => {
47
- const o = Nn(c);
48
- return o ? /* @__PURE__ */ e(Sn, { children: /* @__PURE__ */ e(
47
+ const o = Sn(c);
48
+ return o ? /* @__PURE__ */ e(Nn, { children: /* @__PURE__ */ e(
49
49
  o,
50
50
  {
51
51
  fill: t,
@@ -64,7 +64,7 @@ const x = ({
64
64
  `Icon "${c}" is not registered. Please register it using useIconRegistration or registerIcons.`
65
65
  ), null);
66
66
  };
67
- class Sn extends b.Component {
67
+ class Nn extends b.Component {
68
68
  constructor() {
69
69
  super(...arguments);
70
70
  Tt(this, "state", { hasError: !1 });
@@ -76,18 +76,18 @@ class Sn extends b.Component {
76
76
  return this.state.hasError ? null : this.props.children;
77
77
  }
78
78
  }
79
- const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23", xn = "_alignmentContent_kh9z8_30", $n = "_alignments_kh9z8_39", Tn = "_alignment_kh9z8_30", Pn = "_circle_kh9z8_64", On = "_paddings_kh9z8_71", An = "_padding_kh9z8_71", Bn = "_active_kh9z8_97", he = {
79
+ const wn = "_block_kh9z8_8", xn = "_title_kh9z8_16", kn = "_subtitle_kh9z8_23", Cn = "_alignmentContent_kh9z8_30", $n = "_alignments_kh9z8_39", Tn = "_alignment_kh9z8_30", Pn = "_circle_kh9z8_64", On = "_paddings_kh9z8_71", An = "_padding_kh9z8_71", Bn = "_active_kh9z8_97", he = {
80
80
  block: wn,
81
- title: kn,
82
- subtitle: Cn,
83
- alignmentContent: xn,
81
+ title: xn,
82
+ subtitle: kn,
83
+ alignmentContent: Cn,
84
84
  alignments: $n,
85
85
  alignment: Tn,
86
86
  circle: Pn,
87
87
  paddings: On,
88
88
  padding: An,
89
89
  active: Bn
90
- }, Mn = "_wrapper_187gl_1", En = "_label_187gl_9", qn = "_input_187gl_17", Dn = "_required_187gl_47", Rn = "_paddingless_187gl_54", Ln = "_content_187gl_58", zn = "_borderless_187gl_66", Fn = "_rightIcon_187gl_77", Un = "_inputPostfix_187gl_83", ke = {
90
+ }, Mn = "_wrapper_187gl_1", En = "_label_187gl_9", qn = "_input_187gl_17", Dn = "_required_187gl_47", Rn = "_paddingless_187gl_54", Ln = "_content_187gl_58", zn = "_borderless_187gl_66", Fn = "_rightIcon_187gl_77", jn = "_inputPostfix_187gl_83", ke = {
91
91
  wrapper: Mn,
92
92
  label: En,
93
93
  input: qn,
@@ -96,8 +96,8 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
96
96
  content: Ln,
97
97
  borderless: zn,
98
98
  rightIcon: Fn,
99
- inputPostfix: Un
100
- }, ge = (c) => {
99
+ inputPostfix: jn
100
+ }, _e = (c) => {
101
101
  const {
102
102
  onChange: t,
103
103
  style: s,
@@ -109,7 +109,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
109
109
  placeholder: o,
110
110
  disabled: u = !1,
111
111
  required: g = !1,
112
- regex: k,
112
+ regex: x,
113
113
  paddingless: _ = !1,
114
114
  borderless: f = !1,
115
115
  editable: I = !1,
@@ -117,11 +117,11 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
117
117
  postfix: m,
118
118
  id: p = n
119
119
  } = c, [y, w] = b.useState(!1);
120
- function S(A) {
120
+ function N(A) {
121
121
  return Number(A) < 0 ? String(d) : A;
122
122
  }
123
123
  function $(A) {
124
- return !g || !k ? !0 : new RegExp(k).test(A);
124
+ return !g || !x ? !0 : new RegExp(x).test(A);
125
125
  }
126
126
  return /* @__PURE__ */ h("div", { className: ke.wrapper, children: [
127
127
  n && /* @__PURE__ */ e(
@@ -141,7 +141,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
141
141
  onChange: (A) => {
142
142
  if (A.stopPropagation(), i === "text") t(A.target.value);
143
143
  else {
144
- const O = S(A.target.value);
144
+ const O = N(A.target.value);
145
145
  t(O);
146
146
  }
147
147
  },
@@ -164,7 +164,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
164
164
  ),
165
165
  m && /* @__PURE__ */ e("span", { className: ke.inputPostfix, children: m }),
166
166
  l && /* @__PURE__ */ e("div", { className: ke.rightIcon, children: /* @__PURE__ */ e(
167
- x,
167
+ C,
168
168
  {
169
169
  name: "MagnifyingGlass",
170
170
  fill: "var(--text-secondary)",
@@ -173,7 +173,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
173
173
  }
174
174
  ) }),
175
175
  I && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
176
- x,
176
+ C,
177
177
  {
178
178
  name: "Sliders",
179
179
  width: 20,
@@ -183,7 +183,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
183
183
  ) })
184
184
  ] })
185
185
  ] });
186
- }, jn = [
186
+ }, Un = [
187
187
  "topLeft",
188
188
  "top",
189
189
  "topRight",
@@ -193,7 +193,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
193
193
  "bottomLeft",
194
194
  "bottom",
195
195
  "bottomRight"
196
- ], Hn = ["left", "top", "right", "bottom"], Bd = (c) => {
196
+ ], Hn = ["left", "top", "right", "bottom"], qd = (c) => {
197
197
  const {
198
198
  alignment: t,
199
199
  padding: s,
@@ -232,13 +232,13 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
232
232
  return "AlignBottom";
233
233
  }
234
234
  }
235
- const [u, g] = b.useState(null), [k, _] = b.useState(null);
235
+ const [u, g] = b.useState(null), [x, _] = b.useState(null);
236
236
  return /* @__PURE__ */ h("div", { className: he.layout, children: [
237
237
  /* @__PURE__ */ e("h3", { className: he.title, children: "Layout (for Desktop version)" }),
238
238
  /* @__PURE__ */ h("div", { className: he.alignmentContent, children: [
239
239
  i && /* @__PURE__ */ h("div", { className: he.block, children: [
240
240
  /* @__PURE__ */ e("h5", { className: he.subtitle, children: "Alignment" }),
241
- /* @__PURE__ */ e("div", { className: he.alignments, children: jn.map((f) => /* @__PURE__ */ h(
241
+ /* @__PURE__ */ e("div", { className: he.alignments, children: Un.map((f) => /* @__PURE__ */ h(
242
242
  "div",
243
243
  {
244
244
  onClick: () => {
@@ -254,7 +254,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
254
254
  children: [
255
255
  f !== t && u !== f && /* @__PURE__ */ e("div", { className: he.circle }),
256
256
  f !== t && u === f && /* @__PURE__ */ e(
257
- x,
257
+ C,
258
258
  {
259
259
  name: r(u),
260
260
  fill: "#c2c2c2",
@@ -263,7 +263,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
263
263
  }
264
264
  ),
265
265
  f === t && /* @__PURE__ */ e(
266
- x,
266
+ C,
267
267
  {
268
268
  name: r(t),
269
269
  fill: "#FF3F19",
@@ -282,7 +282,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
282
282
  "label",
283
283
  {
284
284
  className: q(he.padding, {
285
- [he.active]: k === f
285
+ [he.active]: x === f
286
286
  }),
287
287
  onFocus: () => {
288
288
  _(f);
@@ -292,7 +292,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
292
292
  },
293
293
  children: [
294
294
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
295
- x,
295
+ C,
296
296
  {
297
297
  name: o(f),
298
298
  width: 20,
@@ -300,7 +300,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
300
300
  }
301
301
  ) }),
302
302
  /* @__PURE__ */ e(
303
- ge,
303
+ _e,
304
304
  {
305
305
  type: "number",
306
306
  value: String(s[f]),
@@ -327,7 +327,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
327
327
  top: Xn,
328
328
  itemsBlock: Yn,
329
329
  textSettings: Kn
330
- }, Qn = "_typeTexts_1gfda_1", Jn = "_block_1gfda_8", Zn = "_active_1gfda_25", _t = {
330
+ }, Qn = "_typeTexts_1gfda_1", Jn = "_block_1gfda_8", Zn = "_active_1gfda_25", gt = {
331
331
  typeTexts: Qn,
332
332
  block: Jn,
333
333
  active: Zn
@@ -345,11 +345,11 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
345
345
  return "TextUnderline";
346
346
  }
347
347
  }
348
- return /* @__PURE__ */ e("div", { className: _t.typeTexts, children: es.map((a) => /* @__PURE__ */ e(
348
+ return /* @__PURE__ */ e("div", { className: gt.typeTexts, children: es.map((a) => /* @__PURE__ */ e(
349
349
  "div",
350
350
  {
351
- className: q(_t.block, {
352
- [_t.active]: t.includes(a)
351
+ className: q(gt.block, {
352
+ [gt.active]: t.includes(a)
353
353
  }),
354
354
  onClick: () => {
355
355
  const i = [...t];
@@ -360,7 +360,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
360
360
  i.push(a), s(i);
361
361
  },
362
362
  children: /* @__PURE__ */ e(
363
- x,
363
+ C,
364
364
  {
365
365
  name: n(a),
366
366
  fill: t.includes(a) ? "#252525" : "#757575",
@@ -371,7 +371,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
371
371
  },
372
372
  String(a)
373
373
  )) });
374
- }, ts = "_wrapper_34cvp_1", ns = "_label_34cvp_10", ss = "_textarea_34cvp_18", is = "_length_34cvp_46", as = "_full_34cvp_54", je = {
374
+ }, ts = "_wrapper_34cvp_1", ns = "_label_34cvp_10", ss = "_textarea_34cvp_18", is = "_length_34cvp_46", as = "_full_34cvp_54", Ue = {
375
375
  wrapper: ts,
376
376
  label: ns,
377
377
  textarea: ss,
@@ -379,11 +379,11 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
379
379
  full: as
380
380
  }, Yt = (c) => {
381
381
  const { onChange: t, label: s, value: n, maxLength: a, placeholder: i = "Type something..." } = c, [d, r] = b.useState(n.length);
382
- return /* @__PURE__ */ h("div", { className: je.wrapper, children: [
382
+ return /* @__PURE__ */ h("div", { className: Ue.wrapper, children: [
383
383
  s && /* @__PURE__ */ e(
384
384
  "label",
385
385
  {
386
- className: je.label,
386
+ className: Ue.label,
387
387
  htmlFor: s,
388
388
  children: s
389
389
  }
@@ -397,15 +397,15 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
397
397
  r(o.target.value.length), t(o.target.value);
398
398
  },
399
399
  placeholder: i,
400
- className: je.textarea,
400
+ className: Ue.textarea,
401
401
  maxLength: a
402
402
  }
403
403
  ),
404
404
  a && /* @__PURE__ */ h(
405
405
  "div",
406
406
  {
407
- className: q(je.length, {
408
- [je.full]: d === a
407
+ className: q(Ue.length, {
408
+ [Ue.full]: d === a
409
409
  }),
410
410
  children: [
411
411
  d,
@@ -431,13 +431,13 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
431
431
  ue,
432
432
  {
433
433
  label: "Type Text",
434
- options: Object.values(it),
434
+ options: Object.values(at),
435
435
  onChange: (d) => s(
436
- Object.keys(it).find(
437
- (r) => it[r] === d
436
+ Object.keys(at).find(
437
+ (r) => at[r] === d
438
438
  )
439
439
  ),
440
- value: it[t],
440
+ value: at[t],
441
441
  postfixs: n
442
442
  }
443
443
  );
@@ -467,7 +467,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
467
467
  s(a);
468
468
  },
469
469
  children: /* @__PURE__ */ e(
470
- x,
470
+ C,
471
471
  {
472
472
  name: n(a),
473
473
  fill: t === a ? "#252525" : "#757575",
@@ -490,7 +490,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
490
490
  subtitle: o = "Items",
491
491
  typeFont: u,
492
492
  setTypeFont: g,
493
- alignText: k,
493
+ alignText: x,
494
494
  setAlignText: _
495
495
  } = c;
496
496
  return /* @__PURE__ */ h("div", { className: qe.text, children: [
@@ -524,7 +524,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
524
524
  /* @__PURE__ */ e(
525
525
  ds,
526
526
  {
527
- alignText: k,
527
+ alignText: x,
528
528
  setAlignText: _
529
529
  }
530
530
  )
@@ -538,25 +538,25 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
538
538
  )
539
539
  ] })
540
540
  ] });
541
- }, us = "_title_msd5s_1", hs = "_subtitle_msd5s_5", ps = "_productsBlock_msd5s_14", ms = "_top_msd5s_26", fs = "_products_msd5s_14", gs = "_product_msd5s_14", _s = "_button_msd5s_80", vs = "_disabled_msd5s_91", ys = "_buttons_msd5s_118", bs = "_modal_msd5s_125", Is = "_link_msd5s_146", Ns = "_modalOptions_msd5s_152", Ss = "_addButton_msd5s_165", ws = "_deleteButton_msd5s_180", ks = "_closeIcon_msd5s_192", Z = {
541
+ }, us = "_title_msd5s_1", hs = "_subtitle_msd5s_5", ps = "_productsBlock_msd5s_14", ms = "_top_msd5s_26", fs = "_products_msd5s_14", _s = "_product_msd5s_14", gs = "_button_msd5s_80", vs = "_disabled_msd5s_91", ys = "_buttons_msd5s_118", bs = "_modal_msd5s_125", Is = "_link_msd5s_146", Ss = "_modalOptions_msd5s_152", Ns = "_addButton_msd5s_165", ws = "_deleteButton_msd5s_180", xs = "_closeIcon_msd5s_192", Z = {
542
542
  title: us,
543
543
  subtitle: hs,
544
544
  productsBlock: ps,
545
545
  top: ms,
546
546
  products: fs,
547
- product: gs,
548
- button: _s,
547
+ product: _s,
548
+ button: gs,
549
549
  disabled: vs,
550
550
  buttons: ys,
551
551
  modal: bs,
552
552
  link: Is,
553
- modalOptions: Ns,
554
- addButton: Ss,
553
+ modalOptions: Ss,
554
+ addButton: Ns,
555
555
  deleteButton: ws,
556
- closeIcon: ks
557
- }, Cs = "_wrapper_1yh21_2", xs = "_label_1yh21_9", $s = "_icon_1yh21_16", Ts = "_text_1yh21_28", Ps = "_content_1yh21_37", Os = "_modal_1yh21_48", As = "_top_1yh21_56", Bs = "_title_1yh21_65", Ms = "_modalContent_1yh21_72", Es = "_images_1yh21_81", qs = "_add_1yh21_91", Ds = "_dragging_1yh21_111", Rs = "_description_1yh21_115", Ls = "_bottom_1yh21_125", zs = "_cancel_1yh21_139", Fs = "_highlight_1yh21_144", Us = "_accent_1yh21_149", js = "_image_1yh21_81", Hs = "_selected_1yh21_169", Vs = "_checkbox_1yh21_177", Ws = "_loading_1yh21_183", Gs = "_spinner_1yh21_197", X = {
558
- wrapper: Cs,
559
- label: xs,
556
+ closeIcon: xs
557
+ }, ks = "_wrapper_1yh21_2", Cs = "_label_1yh21_9", $s = "_icon_1yh21_16", Ts = "_text_1yh21_28", Ps = "_content_1yh21_37", Os = "_modal_1yh21_48", As = "_top_1yh21_56", Bs = "_title_1yh21_65", Ms = "_modalContent_1yh21_72", Es = "_images_1yh21_81", qs = "_add_1yh21_91", Ds = "_dragging_1yh21_111", Rs = "_description_1yh21_115", Ls = "_bottom_1yh21_125", zs = "_cancel_1yh21_139", Fs = "_highlight_1yh21_144", js = "_accent_1yh21_149", Us = "_image_1yh21_81", Hs = "_selected_1yh21_169", Vs = "_checkbox_1yh21_177", Ws = "_loading_1yh21_183", Gs = "_spinner_1yh21_197", X = {
558
+ wrapper: ks,
559
+ label: Cs,
560
560
  icon: $s,
561
561
  text: Ts,
562
562
  content: Ps,
@@ -571,21 +571,21 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
571
571
  bottom: Ls,
572
572
  cancel: zs,
573
573
  highlight: Fs,
574
- accent: Us,
575
- image: js,
574
+ accent: js,
575
+ image: Us,
576
576
  selected: Hs,
577
577
  checkbox: Vs,
578
578
  loading: Ws,
579
579
  spinner: Gs
580
580
  }, Xs = async () => {
581
- const c = localStorage.getItem("shopId") || void 0, s = `${jt.getState().apiUrls.api}/v1/dash/shops/${c}/images`;
581
+ const c = localStorage.getItem("shopId") || void 0, s = `${Ut.getState().apiUrls.api}/v1/dash/shops/${c}/images`;
582
582
  return await Ht({
583
583
  url: s,
584
584
  withToken: !0,
585
585
  method: "get"
586
586
  });
587
587
  }, Ys = async (c) => {
588
- const t = localStorage.getItem("shopId") || void 0, n = `${jt.getState().apiUrls.api}/v1/dash/shops/${t}/images`;
588
+ const t = localStorage.getItem("shopId") || void 0, n = `${Ut.getState().apiUrls.api}/v1/dash/shops/${t}/images`;
589
589
  return await Ht({
590
590
  url: n,
591
591
  withToken: !0,
@@ -593,7 +593,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
593
593
  body: c,
594
594
  contentType: "mutlipart/form-data"
595
595
  });
596
- }, Ks = "_button_jptux_1", Qs = "_primary_jptux_20", Js = "_primaryHovered_jptux_30", Zs = "_secondary_jptux_35", ei = "_secondaryHovered_jptux_45", ti = "_secondaryAntistock_jptux_50", ni = "_tertiary_jptux_61", si = "_special_jptux_71", ii = "_tertiaryHovered_jptux_75", ai = "_content_jptux_80", oi = "_isAntistock_jptux_88", _e = {
596
+ }, Ks = "_button_jptux_1", Qs = "_primary_jptux_20", Js = "_primaryHovered_jptux_30", Zs = "_secondary_jptux_35", ei = "_secondaryHovered_jptux_45", ti = "_secondaryAntistock_jptux_50", ni = "_tertiary_jptux_61", si = "_special_jptux_71", ii = "_tertiaryHovered_jptux_75", ai = "_content_jptux_80", oi = "_isAntistock_jptux_88", ge = {
597
597
  button: Ks,
598
598
  primary: Qs,
599
599
  primaryHovered: Js,
@@ -614,34 +614,34 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
614
614
  disabled: i = !1,
615
615
  type: d = "Primary",
616
616
  dangerouslySetInnerHTML: r
617
- } = c, { themeSettings: o } = pt(), { isAntistock: u } = ze(), g = (l) => typeof l == "string" ? /* @__PURE__ */ e(hn, { children: l }) : l, k = {
617
+ } = c, { themeSettings: o } = pt(), { isAntistock: u } = ze(), g = (l) => typeof l == "string" ? /* @__PURE__ */ e(hn, { children: l }) : l, x = {
618
618
  onClick: s,
619
619
  disabled: i,
620
620
  style: n,
621
- className: q(_e.button, a, {
622
- [_e.primary]: d === "Primary",
623
- [_e.secondary]: d === "Secondary" && !u,
624
- [_e.secondaryAntistock]: d === "Secondary" && u,
625
- [_e.tertiary]: d === "Tertiary",
626
- [_e.primaryHovered]: d === "Primary" && !i && o.buttons.primary.hover && !u,
627
- [_e.secondaryHovered]: d === "Secondary" && !i && o.buttons.secondary.hover && !u,
628
- [_e.tertiaryHovered]: d === "Tertiary" && !i && o.buttons.tertiary.hover && !u,
629
- [_e.isAntistock]: u
621
+ className: q(ge.button, a, {
622
+ [ge.primary]: d === "Primary",
623
+ [ge.secondary]: d === "Secondary" && !u,
624
+ [ge.secondaryAntistock]: d === "Secondary" && u,
625
+ [ge.tertiary]: d === "Tertiary",
626
+ [ge.primaryHovered]: d === "Primary" && !i && o.buttons.primary.hover && !u,
627
+ [ge.secondaryHovered]: d === "Secondary" && !i && o.buttons.secondary.hover && !u,
628
+ [ge.tertiaryHovered]: d === "Tertiary" && !i && o.buttons.tertiary.hover && !u,
629
+ [ge.isAntistock]: u
630
630
  })
631
631
  };
632
632
  if (d === "Special")
633
633
  return /* @__PURE__ */ e(
634
634
  "button",
635
635
  {
636
- ...k,
637
- className: _e.special,
636
+ ...x,
637
+ className: ge.special,
638
638
  ...r ? { dangerouslySetInnerHTML: r } : { children: g(t) }
639
639
  }
640
640
  );
641
- const _ = d.toLowerCase(), f = o.buttons[_], I = d === "Tertiary" ? /* @__PURE__ */ h("div", { className: _e.content, children: [
641
+ const _ = d.toLowerCase(), f = o.buttons[_], I = d === "Tertiary" ? /* @__PURE__ */ h("div", { className: ge.content, children: [
642
642
  g(t),
643
643
  /* @__PURE__ */ e(
644
- x,
644
+ C,
645
645
  {
646
646
  name: "ArrowRight",
647
647
  fill: "var(--text-tertiary)",
@@ -653,7 +653,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
653
653
  return /* @__PURE__ */ e(
654
654
  "button",
655
655
  {
656
- ...k,
656
+ ...x,
657
657
  style: {
658
658
  ...n,
659
659
  textAlign: f.alignment
@@ -661,7 +661,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
661
661
  ...r ? { dangerouslySetInnerHTML: r } : { children: I }
662
662
  }
663
663
  );
664
- }, tt = (c) => {
664
+ }, nt = (c) => {
665
665
  const { label: t, onChange: s, activeImage: n, tip: a } = c, { setOpenModal: i, setOnChange: d, setTip: r } = Vt();
666
666
  return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h(
667
667
  "div",
@@ -690,7 +690,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
690
690
  }
691
691
  }
692
692
  ) : /* @__PURE__ */ e(
693
- x,
693
+ C,
694
694
  {
695
695
  name: "Plus",
696
696
  width: 20,
@@ -700,7 +700,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
700
700
  ) }),
701
701
  /* @__PURE__ */ e("span", { className: X.text, children: n ? "Change Image" : "Select Image" }),
702
702
  n && /* @__PURE__ */ e(
703
- x,
703
+ C,
704
704
  {
705
705
  name: "X",
706
706
  width: 20,
@@ -718,17 +718,17 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
718
718
  ]
719
719
  }
720
720
  ) });
721
- }, Md = () => {
722
- const { setOpenModal: c, onChange: t, tip: s, setTip: n } = Vt(), { setIsOpen: a } = be(), [i, d] = b.useState(!1), r = () => {
721
+ }, Dd = () => {
722
+ const { setOpenModal: c, onChange: t, tip: s, setTip: n } = Vt(), { setIsOpen: a } = Ie(), [i, d] = b.useState(!1), r = () => {
723
723
  var y;
724
724
  (y = o.current) == null || y.click();
725
- }, o = b.useRef(null), [u, g] = b.useState([]), [k, _] = b.useState(!1), f = async (y) => {
725
+ }, o = b.useRef(null), [u, g] = b.useState([]), [x, _] = b.useState(!1), f = async (y) => {
726
726
  var O;
727
727
  const w = ((O = y.target.files) == null ? void 0 : O[0]) || null;
728
728
  if (!w) return;
729
- const S = new FormData();
730
- S.append("file", w), _(!0);
731
- const { data: $ } = await Ys(S), A = [...u];
729
+ const N = new FormData();
730
+ N.append("file", w), _(!0);
731
+ const { data: $ } = await Ys(N), A = [...u];
732
732
  A.unshift({
733
733
  ...$.data,
734
734
  cfId: $.data.path
@@ -747,9 +747,9 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
747
747
  c(!1), a(!0);
748
748
  }, 300);
749
749
  }, m = (y) => {
750
- const w = u.map((S) => ({
751
- ...S,
752
- isSelected: S.id === y.id ? !S.isSelected : !1
750
+ const w = u.map((N) => ({
751
+ ...N,
752
+ isSelected: N.id === y.id ? !N.isSelected : !1
753
753
  }));
754
754
  g([...w]);
755
755
  };
@@ -759,11 +759,11 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
759
759
  }
760
760
  return b.useEffect(() => {
761
761
  (async () => {
762
- const { data: w } = await Xs(), S = w.data.map(($) => ({
762
+ const { data: w } = await Xs(), N = w.data.map(($) => ({
763
763
  ...$,
764
764
  isSelected: !1
765
765
  }));
766
- g(S);
766
+ g(N);
767
767
  })();
768
768
  }, []), /* @__PURE__ */ h(
769
769
  "div",
@@ -774,7 +774,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
774
774
  /* @__PURE__ */ h("div", { className: X.top, children: [
775
775
  /* @__PURE__ */ e("h4", { className: X.title, children: "Select Image" }),
776
776
  /* @__PURE__ */ e(
777
- x,
777
+ C,
778
778
  {
779
779
  name: "X",
780
780
  width: 20,
@@ -811,7 +811,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
811
811
  }),
812
812
  children: [
813
813
  /* @__PURE__ */ e("div", { className: X.icon, children: /* @__PURE__ */ e(
814
- x,
814
+ C,
815
815
  {
816
816
  name: "Plus",
817
817
  width: 20,
@@ -842,7 +842,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
842
842
  ]
843
843
  }
844
844
  ),
845
- k && /* @__PURE__ */ e(Ot, {}),
845
+ x && /* @__PURE__ */ e(Ot, {}),
846
846
  u.map((y) => /* @__PURE__ */ e(
847
847
  ci,
848
848
  {
@@ -892,7 +892,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
892
892
  },
893
893
  children: [
894
894
  /* @__PURE__ */ e("div", { className: X.checkbox, children: /* @__PURE__ */ e(
895
- Rl,
895
+ zl,
896
896
  {
897
897
  value: t.isSelected,
898
898
  onChange: (n) => {
@@ -916,7 +916,7 @@ const wn = "_block_kh9z8_8", kn = "_title_kh9z8_16", Cn = "_subtitle_kh9z8_23",
916
916
  t.id
917
917
  );
918
918
  }, Ot = () => /* @__PURE__ */ e("div", { className: X.loading, children: /* @__PURE__ */ e("div", { className: X.spinner }) });
919
- function nt(c, t) {
919
+ function st(c, t) {
920
920
  b.useEffect(() => {
921
921
  function s(n) {
922
922
  !c.current || c.current.contains(n.target) || t(n);
@@ -929,7 +929,7 @@ function nt(c, t) {
929
929
  const ri = b.forwardRef(
930
930
  (c, t) => {
931
931
  const { activeItem: s, setActiveItem: n, popupPosition: a, modalOptions: i, setIsOpenModal: d } = c;
932
- nt(t, () => {
932
+ st(t, () => {
933
933
  n(null), d(!1);
934
934
  });
935
935
  function r(o, u) {
@@ -951,7 +951,7 @@ const ri = b.forwardRef(
951
951
  /* @__PURE__ */ h("div", { className: Z.top, children: [
952
952
  /* @__PURE__ */ e("h3", { className: Z.title, children: r(s.name["en-US"], 20) }),
953
953
  /* @__PURE__ */ e("div", { className: Z.closeIcon, children: /* @__PURE__ */ e(
954
- x,
954
+ C,
955
955
  {
956
956
  name: "X",
957
957
  height: 20,
@@ -965,7 +965,7 @@ const ri = b.forwardRef(
965
965
  /* @__PURE__ */ e("div", { className: Z.modalOptions, children: i.map((o) => {
966
966
  if (o.type === "image")
967
967
  return /* @__PURE__ */ e(
968
- tt,
968
+ nt,
969
969
  {
970
970
  label: "Put up an attractive image",
971
971
  activeImage: s[o.field],
@@ -1023,7 +1023,7 @@ const ri = b.forwardRef(
1023
1023
  );
1024
1024
  if (o.type === "input")
1025
1025
  return /* @__PURE__ */ e(
1026
- ge,
1026
+ _e,
1027
1027
  {
1028
1028
  onChange: (u) => {
1029
1029
  const g = {
@@ -1040,7 +1040,7 @@ const ri = b.forwardRef(
1040
1040
  if (o.type === "inputSwitch")
1041
1041
  return /* @__PURE__ */ h("div", { className: Z.link, children: [
1042
1042
  /* @__PURE__ */ e(
1043
- ge,
1043
+ _e,
1044
1044
  {
1045
1045
  onChange: (u) => {
1046
1046
  const g = {
@@ -1172,7 +1172,7 @@ const ri = b.forwardRef(
1172
1172
  other: li,
1173
1173
  subtitle: di,
1174
1174
  items: ui
1175
- }, Ve = (c) => {
1175
+ }, We = (c) => {
1176
1176
  const { items: t, otherTitle: s, tagsTitle: n } = c;
1177
1177
  return /* @__PURE__ */ h("div", { className: yt.other, children: [
1178
1178
  /* @__PURE__ */ e("h5", { className: yt.subtitle, children: s || n }),
@@ -1197,10 +1197,10 @@ function hi({ product: c, children: t }) {
1197
1197
  transform: i,
1198
1198
  transition: d,
1199
1199
  isDragging: r
1200
- } = Ze({
1200
+ } = et({
1201
1201
  id: c.id
1202
1202
  }), o = {
1203
- transform: et.Transform.toString(i),
1203
+ transform: tt.Transform.toString(i),
1204
1204
  transition: d
1205
1205
  };
1206
1206
  return /* @__PURE__ */ e(
@@ -1227,7 +1227,7 @@ const pi = (c) => {
1227
1227
  editable: o = !0,
1228
1228
  draggable: u = !1,
1229
1229
  withImage: g = !1,
1230
- deletable: k = !0,
1230
+ deletable: x = !0,
1231
1231
  addable: _ = !0,
1232
1232
  itemsType: f,
1233
1233
  itemsPlaceholder: I = "",
@@ -1236,16 +1236,16 @@ const pi = (c) => {
1236
1236
  rangeSelectorOptions: p,
1237
1237
  modalOptions: y,
1238
1238
  addableOptions: w = {},
1239
- limit: S,
1239
+ limit: N,
1240
1240
  autoInterval: $,
1241
1241
  tip: A,
1242
1242
  aspectRatio: O,
1243
1243
  setAspectRatio: v
1244
- } = c, [T, M] = b.useState(null), [L, N] = b.useState({
1244
+ } = c, [T, M] = b.useState(null), [L, S] = b.useState({
1245
1245
  top: 0,
1246
1246
  left: 0
1247
- }), [C, D] = b.useState(null), E = b.useRef(null), [V, P] = b.useState(!1), z = Ge(
1248
- Xe(Je, {
1247
+ }), [k, D] = b.useState(null), E = b.useRef(null), [V, P] = b.useState(!1), z = Xe(
1248
+ Ye(Ze, {
1249
1249
  activationConstraint: {
1250
1250
  distance: 5
1251
1251
  }
@@ -1257,16 +1257,16 @@ const pi = (c) => {
1257
1257
  a(B);
1258
1258
  }
1259
1259
  }, [T]), b.useEffect(() => {
1260
- if (E.current && C) {
1260
+ if (E.current && k) {
1261
1261
  const B = E.current.getBoundingClientRect().height, W = window.innerHeight;
1262
- let Y = C.top;
1263
- Y + B > W + window.scrollY - 200 && (Y = W + window.scrollY - B - 200), Y < 0 && (Y = 10), N({
1262
+ let Y = k.top;
1263
+ Y + B > W + window.scrollY - 200 && (Y = W + window.scrollY - B - 200), Y < 0 && (Y = 10), S({
1264
1264
  top: Y - 30,
1265
- left: C.left
1265
+ left: k.left
1266
1266
  });
1267
1267
  }
1268
- }, [E.current, C]);
1269
- const U = (B, W) => {
1268
+ }, [E.current, k]);
1269
+ const j = (B, W) => {
1270
1270
  B.stopPropagation();
1271
1271
  const Y = B.target.getBoundingClientRect();
1272
1272
  D({
@@ -1274,12 +1274,12 @@ const pi = (c) => {
1274
1274
  left: Y.left - (_ ? 30 : 65)
1275
1275
  }), M(W), P(!0);
1276
1276
  }, F = (B, W) => {
1277
- const Y = [...n], Ie = {
1277
+ const Y = [...n], Se = {
1278
1278
  ...B,
1279
1279
  id: Math.random().toString(36).substr(2, 9)
1280
1280
  // Генерируем новый уникальный ID
1281
1281
  };
1282
- Y.splice(W + 1, 0, Ie), a(Y);
1282
+ Y.splice(W + 1, 0, Se), a(Y);
1283
1283
  };
1284
1284
  function se(B) {
1285
1285
  if (g)
@@ -1292,7 +1292,7 @@ const pi = (c) => {
1292
1292
  height: 16
1293
1293
  }
1294
1294
  ) : /* @__PURE__ */ e(
1295
- x,
1295
+ C,
1296
1296
  {
1297
1297
  name: "Image",
1298
1298
  width: 16,
@@ -1304,17 +1304,17 @@ const pi = (c) => {
1304
1304
  const te = (B) => {
1305
1305
  const { active: W, over: Y } = B;
1306
1306
  if (Y && W.id !== Y.id) {
1307
- const Ie = n.findIndex((R) => R.id === W.id), Ue = n.findIndex((R) => R.id === Y.id);
1308
- if (Ie !== -1 && Ue !== -1) {
1309
- const R = [...n], [ie] = R.splice(Ie, 1);
1310
- R.splice(Ue, 0, ie), a(R);
1307
+ const Se = n.findIndex((R) => R.id === W.id), je = n.findIndex((R) => R.id === Y.id);
1308
+ if (Se !== -1 && je !== -1) {
1309
+ const R = [...n], [ie] = R.splice(Se, 1);
1310
+ R.splice(je, 0, ie), a(R);
1311
1311
  }
1312
1312
  }
1313
1313
  }, Q = (B, W) => {
1314
- var Ie, Ue;
1314
+ var Se, je;
1315
1315
  const Y = /* @__PURE__ */ h(G, { children: [
1316
1316
  u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1317
- x,
1317
+ C,
1318
1318
  {
1319
1319
  name: "DotsSixVertical",
1320
1320
  hoverable: !0,
@@ -1326,20 +1326,20 @@ const pi = (c) => {
1326
1326
  ue,
1327
1327
  {
1328
1328
  onChange: (R) => {
1329
- const ie = [...n], Ne = l.find((we) => we.name["en-US"] === R);
1329
+ const ie = [...n], Ne = l.find((xe) => xe.name["en-US"] === R);
1330
1330
  if (!Ne) return;
1331
- const Se = ie.map((we) => we.id === B.id ? {
1331
+ const we = ie.map((xe) => xe.id === B.id ? {
1332
1332
  ...Ne,
1333
1333
  name: {
1334
1334
  "en-US": R
1335
1335
  }
1336
- } : we);
1336
+ } : xe);
1337
1337
  M({
1338
1338
  ...B,
1339
1339
  name: {
1340
1340
  "en-US": R
1341
1341
  }
1342
- }), a([...Se]);
1342
+ }), a([...we]);
1343
1343
  },
1344
1344
  value: B.name["en-US"],
1345
1345
  options: l.filter((R) => !n.find((ie) => ie.name["en-US"] === R.name["en-US"])).map((R) => R.name["en-US"]),
@@ -1356,20 +1356,20 @@ const pi = (c) => {
1356
1356
  nn,
1357
1357
  {
1358
1358
  onChange: (R) => {
1359
- const ie = [...n], Ne = l.find((we) => we.name["en-US"] === R);
1359
+ const ie = [...n], Ne = l.find((xe) => xe.name["en-US"] === R);
1360
1360
  if (!Ne) return;
1361
- const Se = ie.map((we) => we.id === B.id ? {
1361
+ const we = ie.map((xe) => xe.id === B.id ? {
1362
1362
  ...Ne,
1363
1363
  name: {
1364
1364
  "en-US": R
1365
1365
  }
1366
- } : we);
1366
+ } : xe);
1367
1367
  M({
1368
1368
  ...B,
1369
1369
  name: {
1370
1370
  "en-US": R
1371
1371
  }
1372
- }), a([...Se]);
1372
+ }), a([...we]);
1373
1373
  },
1374
1374
  value: B.name["en-US"],
1375
1375
  options: l.filter((R) => !n.find((ie) => ie.name["en-US"] === R.name["en-US"])).map((R) => R.name["en-US"]),
@@ -1383,15 +1383,15 @@ const pi = (c) => {
1383
1383
  }
1384
1384
  ),
1385
1385
  f === "input" && /* @__PURE__ */ e(
1386
- ge,
1386
+ _e,
1387
1387
  {
1388
1388
  onChange: (R) => {
1389
- const Ne = [...n].map((Se) => Se.id === B.id ? {
1389
+ const Ne = [...n].map((we) => we.id === B.id ? {
1390
1390
  ...B,
1391
1391
  name: {
1392
1392
  "en-US": R
1393
1393
  }
1394
- } : Se);
1394
+ } : we);
1395
1395
  a([...Ne]);
1396
1396
  },
1397
1397
  value: B.name["en-US"],
@@ -1399,22 +1399,22 @@ const pi = (c) => {
1399
1399
  }
1400
1400
  ),
1401
1401
  f === "image" && /* @__PURE__ */ e(
1402
- tt,
1402
+ nt,
1403
1403
  {
1404
1404
  onChange: (R) => {
1405
- const Ne = [...n].map((Se) => Se.id === B.id ? {
1405
+ const Ne = [...n].map((we) => we.id === B.id ? {
1406
1406
  ...B,
1407
1407
  images: R
1408
- } : Se);
1408
+ } : we);
1409
1409
  a([...Ne]);
1410
1410
  },
1411
- activeImage: (Ie = n.find((R) => R.id === B.id)) != null && Ie.images ? (Ue = n.find((R) => R.id === B.id)) == null ? void 0 : Ue.images[0] : void 0,
1411
+ activeImage: (Se = n.find((R) => R.id === B.id)) != null && Se.images ? (je = n.find((R) => R.id === B.id)) == null ? void 0 : je.images[0] : void 0,
1412
1412
  tip: A
1413
1413
  }
1414
1414
  ),
1415
1415
  /* @__PURE__ */ h("div", { className: Z.buttons, children: [
1416
- S && S > n.length && _ && /* @__PURE__ */ e("div", { className: Z.deleteButton, children: /* @__PURE__ */ e(
1417
- x,
1416
+ N && N > n.length && _ && /* @__PURE__ */ e("div", { className: Z.deleteButton, children: /* @__PURE__ */ e(
1417
+ C,
1418
1418
  {
1419
1419
  name: "Copy",
1420
1420
  hoverable: !0,
@@ -1426,19 +1426,19 @@ const pi = (c) => {
1426
1426
  }
1427
1427
  ) }),
1428
1428
  o && /* @__PURE__ */ e("div", { className: Z.deleteButton, children: /* @__PURE__ */ e(
1429
- x,
1429
+ C,
1430
1430
  {
1431
1431
  name: "Sliders",
1432
1432
  hoverable: !0,
1433
1433
  width: 20,
1434
1434
  height: 20,
1435
1435
  onClick: (R) => {
1436
- U(R, B);
1436
+ j(R, B);
1437
1437
  }
1438
1438
  }
1439
1439
  ) }),
1440
- k && /* @__PURE__ */ e("div", { className: Z.deleteButton, children: /* @__PURE__ */ e(
1441
- x,
1440
+ x && /* @__PURE__ */ e("div", { className: Z.deleteButton, children: /* @__PURE__ */ e(
1441
+ C,
1442
1442
  {
1443
1443
  name: "Trash",
1444
1444
  hoverable: !0,
@@ -1489,19 +1489,19 @@ const pi = (c) => {
1489
1489
  setIsOpenModal: P
1490
1490
  }
1491
1491
  ),
1492
- (t === void 0 || t) && m && p && /* @__PURE__ */ e(xt, { ...p }),
1492
+ (t === void 0 || t) && m && p && /* @__PURE__ */ e(Ct, { ...p }),
1493
1493
  (t === void 0 || t) && /* @__PURE__ */ h("div", { className: Z.products, children: [
1494
1494
  r && /* @__PURE__ */ e("h5", { className: Z.subtitle, children: r }),
1495
1495
  u ? /* @__PURE__ */ e(
1496
- Ye,
1496
+ Ke,
1497
1497
  {
1498
1498
  sensors: z,
1499
1499
  onDragEnd: te,
1500
1500
  children: /* @__PURE__ */ e(
1501
- Ke,
1501
+ Qe,
1502
1502
  {
1503
1503
  items: n.map((B) => B.id),
1504
- strategy: Qe,
1504
+ strategy: Je,
1505
1505
  children: n.map((B, W) => Q(B, W))
1506
1506
  }
1507
1507
  )
@@ -1520,16 +1520,16 @@ const pi = (c) => {
1520
1520
  {
1521
1521
  withoutHover: !0,
1522
1522
  className: q(Z.button, {
1523
- [Z.disabled]: !!(S && S <= n.length || n.length === (l == null ? void 0 : l.length))
1523
+ [Z.disabled]: !!(N && N <= n.length || n.length === (l == null ? void 0 : l.length))
1524
1524
  }),
1525
1525
  size: "s",
1526
- disabled: !!(S && S <= n.length || n.length === (l == null ? void 0 : l.length)),
1526
+ disabled: !!(N && N <= n.length || n.length === (l == null ? void 0 : l.length)),
1527
1527
  onClick: () => {
1528
1528
  const B = [...n];
1529
1529
  let W = null;
1530
1530
  if (l) {
1531
1531
  for (let Y = 0; Y < l.length; Y++)
1532
- if (!n.find((Ie) => Ie.id === l[Y].id)) {
1532
+ if (!n.find((Se) => Se.id === l[Y].id)) {
1533
1533
  W = l[Y];
1534
1534
  break;
1535
1535
  }
@@ -1558,7 +1558,7 @@ const pi = (c) => {
1558
1558
  children: /* @__PURE__ */ h("div", { className: Z.addButton, children: [
1559
1559
  /* @__PURE__ */ e("span", { children: "Add Option" }),
1560
1560
  /* @__PURE__ */ e(
1561
- x,
1561
+ C,
1562
1562
  {
1563
1563
  name: "Plus",
1564
1564
  width: 16,
@@ -1576,20 +1576,20 @@ const pi = (c) => {
1576
1576
  {
1577
1577
  value: O,
1578
1578
  label: "Aspect Ratio",
1579
- options: Object.keys(Ct),
1579
+ options: Object.keys(kt),
1580
1580
  onChange: (B) => v(B),
1581
- leftAddonOptions: kt
1581
+ leftAddonOptions: xt
1582
1582
  }
1583
1583
  ),
1584
1584
  (t === void 0 || t) && i !== void 0 && /* @__PURE__ */ e(
1585
- Ve,
1585
+ We,
1586
1586
  {
1587
1587
  otherTitle: "Other",
1588
1588
  items: i
1589
1589
  }
1590
1590
  ),
1591
1591
  (t === void 0 || t) && $ !== void 0 && /* @__PURE__ */ e(
1592
- ge,
1592
+ _e,
1593
1593
  {
1594
1594
  label: $.title || "Auto scroll interval",
1595
1595
  type: "number",
@@ -1604,22 +1604,22 @@ const pi = (c) => {
1604
1604
  }
1605
1605
  )
1606
1606
  ] });
1607
- }, mi = "_title_82zux_1", fi = "_subtitle_82zux_5", gi = "_productsBlock_82zux_14", _i = "_top_82zux_26", vi = "_products_82zux_14", yi = "_product_82zux_14", bi = "_button_82zux_80", Ii = "_disabled_82zux_91", Ni = "_buttons_82zux_118", Si = "_addButton_82zux_157", wi = "_deleteButton_82zux_179", pe = {
1607
+ }, mi = "_title_82zux_1", fi = "_subtitle_82zux_5", _i = "_productsBlock_82zux_14", gi = "_top_82zux_26", vi = "_products_82zux_14", yi = "_product_82zux_14", bi = "_button_82zux_80", Ii = "_disabled_82zux_91", Si = "_buttons_82zux_118", Ni = "_addButton_82zux_157", wi = "_deleteButton_82zux_179", pe = {
1608
1608
  title: mi,
1609
1609
  subtitle: fi,
1610
- productsBlock: gi,
1611
- top: _i,
1610
+ productsBlock: _i,
1611
+ top: gi,
1612
1612
  products: vi,
1613
1613
  product: yi,
1614
1614
  button: bi,
1615
1615
  disabled: Ii,
1616
- buttons: Ni,
1617
- addButton: Si,
1616
+ buttons: Si,
1617
+ addButton: Ni,
1618
1618
  deleteButton: wi
1619
- }, ki = "_button_1gxoe_1", Ci = "_primary_1gxoe_14", xi = "_secondary_1gxoe_22", $i = "_tertiary_1gxoe_30", Ti = "_content_1gxoe_38", Pi = "_withoutHover_1gxoe_45", De = {
1620
- button: ki,
1621
- primary: Ci,
1622
- secondary: xi,
1619
+ }, xi = "_button_1gxoe_1", ki = "_primary_1gxoe_14", Ci = "_secondary_1gxoe_22", $i = "_tertiary_1gxoe_30", Ti = "_content_1gxoe_38", Pi = "_withoutHover_1gxoe_45", De = {
1620
+ button: xi,
1621
+ primary: ki,
1622
+ secondary: Ci,
1623
1623
  tertiary: $i,
1624
1624
  content: Ti,
1625
1625
  withoutHover: Pi
@@ -1652,7 +1652,7 @@ const pi = (c) => {
1652
1652
  children: r === "Tertiary" ? /* @__PURE__ */ h("div", { className: De.content, children: [
1653
1653
  t,
1654
1654
  /* @__PURE__ */ e(
1655
- x,
1655
+ C,
1656
1656
  {
1657
1657
  name: "ArrowRight",
1658
1658
  fill: "#757575",
@@ -1672,10 +1672,10 @@ function Oi({ id: c, children: t }) {
1672
1672
  transform: i,
1673
1673
  transition: d,
1674
1674
  isDragging: r
1675
- } = Ze({
1675
+ } = et({
1676
1676
  id: c
1677
1677
  }), o = {
1678
- transform: et.Transform.toString(i),
1678
+ transform: tt.Transform.toString(i),
1679
1679
  transition: d
1680
1680
  };
1681
1681
  return /* @__PURE__ */ e(
@@ -1690,7 +1690,7 @@ function Oi({ id: c, children: t }) {
1690
1690
  }
1691
1691
  );
1692
1692
  }
1693
- const Ed = (c) => {
1693
+ const Rd = (c) => {
1694
1694
  const {
1695
1695
  isActiveItems: t,
1696
1696
  setIsActiveItems: s,
@@ -1702,7 +1702,7 @@ const Ed = (c) => {
1702
1702
  subtitle: o,
1703
1703
  draggable: u = !1,
1704
1704
  withImage: g = !1,
1705
- addable: k = !0,
1705
+ addable: x = !0,
1706
1706
  itemsOptions: _,
1707
1707
  hasRangeSelector: f = !1,
1708
1708
  rangeSelectorOptions: I,
@@ -1711,8 +1711,8 @@ const Ed = (c) => {
1711
1711
  deletable: p,
1712
1712
  aspectRatio: y,
1713
1713
  setAspectRatio: w
1714
- } = c, S = Ge(
1715
- Xe(Je, {
1714
+ } = c, N = Xe(
1715
+ Ye(Ze, {
1716
1716
  activationConstraint: {
1717
1717
  distance: 5
1718
1718
  }
@@ -1720,10 +1720,10 @@ const Ed = (c) => {
1720
1720
  ), $ = (v) => {
1721
1721
  const { active: T, over: M } = v;
1722
1722
  if (M && T.id !== M.id) {
1723
- const L = n.findIndex((C) => C === T.id), N = n.findIndex((C) => C === M.id);
1724
- if (L !== -1 && N !== -1) {
1725
- const C = [...n], [D] = C.splice(L, 1);
1726
- C.splice(N, 0, D), a(C);
1723
+ const L = n.findIndex((k) => k === T.id), S = n.findIndex((k) => k === M.id);
1724
+ if (L !== -1 && S !== -1) {
1725
+ const k = [...n], [D] = k.splice(L, 1);
1726
+ k.splice(S, 0, D), a(k);
1727
1727
  }
1728
1728
  }
1729
1729
  };
@@ -1738,7 +1738,7 @@ const Ed = (c) => {
1738
1738
  height: 16
1739
1739
  }
1740
1740
  ) : /* @__PURE__ */ e(
1741
- x,
1741
+ C,
1742
1742
  {
1743
1743
  name: "Image",
1744
1744
  width: 16,
@@ -1748,11 +1748,11 @@ const Ed = (c) => {
1748
1748
  );
1749
1749
  }
1750
1750
  const O = (v, T = !1) => {
1751
- const M = _.find((N) => N.id === v);
1751
+ const M = _.find((S) => S.id === v);
1752
1752
  if (!M) return;
1753
1753
  const L = /* @__PURE__ */ h(G, { children: [
1754
1754
  u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1755
- x,
1755
+ C,
1756
1756
  {
1757
1757
  name: "DotsSixVertical",
1758
1758
  hoverable: !0,
@@ -1763,29 +1763,29 @@ const Ed = (c) => {
1763
1763
  /* @__PURE__ */ e(
1764
1764
  ue,
1765
1765
  {
1766
- onChange: (N) => {
1767
- const C = [...n], D = _.find((P) => P.name === N);
1766
+ onChange: (S) => {
1767
+ const k = [...n], D = _.find((P) => P.name === S);
1768
1768
  if (!D) return;
1769
- const E = D.id, V = C.map((P) => P === v ? E : P);
1769
+ const E = D.id, V = k.map((P) => P === v ? E : P);
1770
1770
  a([...V]);
1771
1771
  },
1772
1772
  value: M.name,
1773
- options: _.filter((N) => !n.find((C) => C === N.id)).map((N) => N.name),
1774
- leftAddonOptions: _.map((N) => ({
1775
- value: N.name,
1776
- addon: A(N.images)
1773
+ options: _.filter((S) => !n.find((k) => k === S.id)).map((S) => S.name),
1774
+ leftAddonOptions: _.map((S) => ({
1775
+ value: S.name,
1776
+ addon: A(S.images)
1777
1777
  }))
1778
1778
  }
1779
1779
  ),
1780
1780
  T && /* @__PURE__ */ e("div", { className: pe.buttons, children: /* @__PURE__ */ e("div", { className: pe.deleteButton, children: /* @__PURE__ */ e(
1781
- x,
1781
+ C,
1782
1782
  {
1783
1783
  name: "Trash",
1784
1784
  hoverable: !0,
1785
1785
  width: 20,
1786
1786
  height: 20,
1787
1787
  fill: "#C12A2A",
1788
- onClick: () => a(n.filter((N) => N !== v))
1788
+ onClick: () => a(n.filter((S) => S !== v))
1789
1789
  }
1790
1790
  ) }) })
1791
1791
  ] });
@@ -1816,25 +1816,25 @@ const Ed = (c) => {
1816
1816
  }
1817
1817
  )
1818
1818
  ] }),
1819
- f && I && /* @__PURE__ */ e(xt, { ...I }),
1819
+ f && I && /* @__PURE__ */ e(Ct, { ...I }),
1820
1820
  /* @__PURE__ */ h("div", { className: pe.products, children: [
1821
1821
  o && /* @__PURE__ */ e("h5", { className: pe.subtitle, children: o }),
1822
1822
  u ? /* @__PURE__ */ e(
1823
- Ye,
1823
+ Ke,
1824
1824
  {
1825
- sensors: S,
1825
+ sensors: N,
1826
1826
  onDragEnd: $,
1827
1827
  children: /* @__PURE__ */ e(
1828
- Ke,
1828
+ Qe,
1829
1829
  {
1830
1830
  items: n,
1831
- strategy: Qe,
1831
+ strategy: Je,
1832
1832
  children: n.map((v) => O(v, p))
1833
1833
  }
1834
1834
  )
1835
1835
  }
1836
1836
  ) : n.map((v) => O(v, p)),
1837
- k && /* @__PURE__ */ e(
1837
+ x && /* @__PURE__ */ e(
1838
1838
  "div",
1839
1839
  {
1840
1840
  style: {
@@ -1870,7 +1870,7 @@ const Ed = (c) => {
1870
1870
  children: /* @__PURE__ */ h("div", { className: pe.addButton, children: [
1871
1871
  /* @__PURE__ */ e("span", { children: "Add Option" }),
1872
1872
  /* @__PURE__ */ e(
1873
- x,
1873
+ C,
1874
1874
  {
1875
1875
  name: "Plus",
1876
1876
  width: 16,
@@ -1888,27 +1888,27 @@ const Ed = (c) => {
1888
1888
  {
1889
1889
  value: y,
1890
1890
  label: "Aspect Ratio",
1891
- options: Object.keys(Ct),
1891
+ options: Object.keys(kt),
1892
1892
  onChange: (v) => w(v),
1893
- leftAddonOptions: kt
1893
+ leftAddonOptions: xt
1894
1894
  }
1895
1895
  ),
1896
1896
  d !== void 0 && /* @__PURE__ */ e(
1897
- Ve,
1897
+ We,
1898
1898
  {
1899
1899
  tagsTitle: "Tags",
1900
1900
  items: d
1901
1901
  }
1902
1902
  ),
1903
1903
  i !== void 0 && /* @__PURE__ */ e(
1904
- Ve,
1904
+ We,
1905
1905
  {
1906
1906
  otherTitle: "Other",
1907
1907
  items: i
1908
1908
  }
1909
1909
  ),
1910
1910
  m !== void 0 && /* @__PURE__ */ e(
1911
- ge,
1911
+ _e,
1912
1912
  {
1913
1913
  label: "Auto scroll interval",
1914
1914
  type: "number",
@@ -1923,7 +1923,7 @@ const Ed = (c) => {
1923
1923
  }
1924
1924
  )
1925
1925
  ] });
1926
- }, Ai = "_title_roi3a_1", Bi = "_subtitle_roi3a_5", Mi = "_productsBlock_roi3a_14", Ei = "_top_roi3a_26", qi = "_products_roi3a_14", Di = "_product_roi3a_14", Ri = "_button_roi3a_80", Li = "_disabled_roi3a_91", zi = "_buttons_roi3a_118", Fi = "_addButton_roi3a_164", Ui = "_deleteButton_roi3a_179", de = {
1926
+ }, Ai = "_title_roi3a_1", Bi = "_subtitle_roi3a_5", Mi = "_productsBlock_roi3a_14", Ei = "_top_roi3a_26", qi = "_products_roi3a_14", Di = "_product_roi3a_14", Ri = "_button_roi3a_80", Li = "_disabled_roi3a_91", zi = "_buttons_roi3a_118", Fi = "_addButton_roi3a_164", ji = "_deleteButton_roi3a_179", de = {
1927
1927
  title: Ai,
1928
1928
  subtitle: Bi,
1929
1929
  productsBlock: Mi,
@@ -1934,9 +1934,9 @@ const Ed = (c) => {
1934
1934
  disabled: Li,
1935
1935
  buttons: zi,
1936
1936
  addButton: Fi,
1937
- deleteButton: Ui
1937
+ deleteButton: ji
1938
1938
  };
1939
- function ji({ product: c, children: t }) {
1939
+ function Ui({ product: c, children: t }) {
1940
1940
  const {
1941
1941
  attributes: s,
1942
1942
  listeners: n,
@@ -1944,10 +1944,10 @@ function ji({ product: c, children: t }) {
1944
1944
  transform: i,
1945
1945
  transition: d,
1946
1946
  isDragging: r
1947
- } = Ze({
1947
+ } = et({
1948
1948
  id: c.id
1949
1949
  }), o = {
1950
- transform: et.Transform.toString(i),
1950
+ transform: tt.Transform.toString(i),
1951
1951
  transition: d
1952
1952
  };
1953
1953
  return /* @__PURE__ */ e(
@@ -1962,7 +1962,7 @@ function ji({ product: c, children: t }) {
1962
1962
  }
1963
1963
  );
1964
1964
  }
1965
- const qd = (c) => {
1965
+ const Ld = (c) => {
1966
1966
  const {
1967
1967
  isActiveItems: t,
1968
1968
  setIsActiveItems: s,
@@ -1974,12 +1974,12 @@ const qd = (c) => {
1974
1974
  draggable: o = !1,
1975
1975
  deletable: u = !0,
1976
1976
  addable: g = !0,
1977
- itemsType: k,
1977
+ itemsType: x,
1978
1978
  itemsOptions: _,
1979
1979
  addableOptions: f = {},
1980
1980
  limit: I
1981
- } = c, [l, m] = b.useState(null), [p, y] = b.useState(null), w = b.useRef(null), S = Ge(
1982
- Xe(Je, {
1981
+ } = c, [l, m] = b.useState(null), [p, y] = b.useState(null), w = b.useRef(null), N = Xe(
1982
+ Ye(Ze, {
1983
1983
  activationConstraint: {
1984
1984
  distance: 5
1985
1985
  }
@@ -2003,16 +2003,16 @@ const qd = (c) => {
2003
2003
  }, A = (v) => {
2004
2004
  const { active: T, over: M } = v;
2005
2005
  if (M && T.id !== M.id) {
2006
- const L = n.findIndex((C) => C.id === T.id), N = n.findIndex((C) => C.id === M.id);
2007
- if (L !== -1 && N !== -1) {
2008
- const C = [...n], [D] = C.splice(L, 1);
2009
- C.splice(N, 0, D), a(C);
2006
+ const L = n.findIndex((k) => k.id === T.id), S = n.findIndex((k) => k.id === M.id);
2007
+ if (L !== -1 && S !== -1) {
2008
+ const k = [...n], [D] = k.splice(L, 1);
2009
+ k.splice(S, 0, D), a(k);
2010
2010
  }
2011
2011
  }
2012
2012
  }, O = (v, T) => {
2013
2013
  const M = /* @__PURE__ */ h(G, { children: [
2014
2014
  o && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
2015
- x,
2015
+ C,
2016
2016
  {
2017
2017
  name: "DotsSixVertical",
2018
2018
  hoverable: !0,
@@ -2020,14 +2020,14 @@ const qd = (c) => {
2020
2020
  height: 20
2021
2021
  }
2022
2022
  ) }),
2023
- k === "select" && _ && /* @__PURE__ */ e(
2023
+ x === "select" && _ && /* @__PURE__ */ e(
2024
2024
  ue,
2025
2025
  {
2026
2026
  onChange: (L) => {
2027
- const N = [...n], C = _.find((E) => E.name === L);
2028
- if (!C) return;
2029
- const D = N.map((E) => E.id === v.id ? {
2030
- ...C,
2027
+ const S = [...n], k = _.find((E) => E.name === L);
2028
+ if (!k) return;
2029
+ const D = S.map((E) => E.id === v.id ? {
2030
+ ...k,
2031
2031
  name: {
2032
2032
  "en-US": L
2033
2033
  }
@@ -2040,12 +2040,12 @@ const qd = (c) => {
2040
2040
  }), a([...D]);
2041
2041
  },
2042
2042
  value: v.name,
2043
- options: _.filter((L) => !n.find((N) => N.name === L.name)).map((L) => L.name)
2043
+ options: _.filter((L) => !n.find((S) => S.name === L.name)).map((L) => L.name)
2044
2044
  }
2045
2045
  ),
2046
2046
  /* @__PURE__ */ h("div", { className: de.buttons, children: [
2047
2047
  r && /* @__PURE__ */ e("div", { className: de.deleteButton, children: /* @__PURE__ */ e(
2048
- x,
2048
+ C,
2049
2049
  {
2050
2050
  name: "Sliders",
2051
2051
  hoverable: !0,
@@ -2055,7 +2055,7 @@ const qd = (c) => {
2055
2055
  }
2056
2056
  ) }),
2057
2057
  u && /* @__PURE__ */ e("div", { className: de.deleteButton, children: /* @__PURE__ */ e(
2058
- x,
2058
+ C,
2059
2059
  {
2060
2060
  name: "Trash",
2061
2061
  hoverable: !0,
@@ -2068,7 +2068,7 @@ const qd = (c) => {
2068
2068
  ] })
2069
2069
  ] });
2070
2070
  return o ? /* @__PURE__ */ e(
2071
- ji,
2071
+ Ui,
2072
2072
  {
2073
2073
  product: v,
2074
2074
  index: T,
@@ -2098,15 +2098,15 @@ const qd = (c) => {
2098
2098
  /* @__PURE__ */ h("div", { className: de.products, children: [
2099
2099
  d && /* @__PURE__ */ e("h5", { className: de.subtitle, children: d }),
2100
2100
  o ? /* @__PURE__ */ e(
2101
- Ye,
2101
+ Ke,
2102
2102
  {
2103
- sensors: S,
2103
+ sensors: N,
2104
2104
  onDragEnd: A,
2105
2105
  children: /* @__PURE__ */ e(
2106
- Ke,
2106
+ Qe,
2107
2107
  {
2108
2108
  items: n.map((v) => v.id),
2109
- strategy: Qe,
2109
+ strategy: Je,
2110
2110
  children: n.map((v, T) => O(v, T))
2111
2111
  }
2112
2112
  )
@@ -2139,7 +2139,7 @@ const qd = (c) => {
2139
2139
  break;
2140
2140
  }
2141
2141
  }
2142
- k === "select" && _ && v.push({
2142
+ x === "select" && _ && v.push({
2143
2143
  name: T ? T.name : _[0].name,
2144
2144
  id: (T == null ? void 0 : T.id) || _[0].id,
2145
2145
  ...f
@@ -2151,7 +2151,7 @@ const qd = (c) => {
2151
2151
  children: /* @__PURE__ */ h("div", { className: de.addButton, children: [
2152
2152
  /* @__PURE__ */ e("span", { children: "Add Option" }),
2153
2153
  /* @__PURE__ */ e(
2154
- x,
2154
+ C,
2155
2155
  {
2156
2156
  name: "Plus",
2157
2157
  width: 16,
@@ -2184,7 +2184,7 @@ const qd = (c) => {
2184
2184
  }, aa = b.forwardRef(
2185
2185
  (c, t) => {
2186
2186
  const { activeItem: s, setActiveItem: n, popupPosition: a, modalOptions: i, setIsOpenModal: d } = c;
2187
- return nt(t, () => {
2187
+ return st(t, () => {
2188
2188
  n(null), d(!1);
2189
2189
  }), /* @__PURE__ */ h(
2190
2190
  "div",
@@ -2202,7 +2202,7 @@ const qd = (c) => {
2202
2202
  /* @__PURE__ */ h("div", { className: ee.top, children: [
2203
2203
  /* @__PURE__ */ e("h3", { className: ee.title, children: s.name["en-US"] }),
2204
2204
  /* @__PURE__ */ e("div", { className: ee.closeIcon, children: /* @__PURE__ */ e(
2205
- x,
2205
+ C,
2206
2206
  {
2207
2207
  name: "X",
2208
2208
  height: 20,
@@ -2217,7 +2217,7 @@ const qd = (c) => {
2217
2217
  /* @__PURE__ */ e("div", { className: ee.modalOptions, children: i.map((r) => {
2218
2218
  if (r.type === "image")
2219
2219
  return /* @__PURE__ */ e(
2220
- tt,
2220
+ nt,
2221
2221
  {
2222
2222
  label: "Put up an attractive image",
2223
2223
  activeImage: s[r.field],
@@ -2275,7 +2275,7 @@ const qd = (c) => {
2275
2275
  );
2276
2276
  if (r.type === "input")
2277
2277
  return /* @__PURE__ */ e(
2278
- ge,
2278
+ _e,
2279
2279
  {
2280
2280
  onChange: (o) => {
2281
2281
  const u = {
@@ -2293,7 +2293,7 @@ const qd = (c) => {
2293
2293
  );
2294
2294
  if (r.type === "inputNumber")
2295
2295
  return /* @__PURE__ */ e(
2296
- ge,
2296
+ _e,
2297
2297
  {
2298
2298
  onChange: (o) => {
2299
2299
  const u = {
@@ -2311,7 +2311,7 @@ const qd = (c) => {
2311
2311
  if (r.type === "inputSwitch")
2312
2312
  return /* @__PURE__ */ h("div", { className: ee.link, children: [
2313
2313
  /* @__PURE__ */ e(
2314
- ge,
2314
+ _e,
2315
2315
  {
2316
2316
  onChange: (o) => {
2317
2317
  const u = {
@@ -2366,10 +2366,10 @@ const qd = (c) => {
2366
2366
  }
2367
2367
  );
2368
2368
  function oa(c) {
2369
- const { product: t, children: s } = c, { attributes: n, listeners: a, setNodeRef: i, transform: d, transition: r, isDragging: o } = Ze({
2369
+ const { product: t, children: s } = c, { attributes: n, listeners: a, setNodeRef: i, transform: d, transition: r, isDragging: o } = et({
2370
2370
  id: t.id
2371
2371
  }), u = {
2372
- transform: et.Transform.toString(d),
2372
+ transform: tt.Transform.toString(d),
2373
2373
  transition: r
2374
2374
  };
2375
2375
  return /* @__PURE__ */ e(
@@ -2384,7 +2384,7 @@ function oa(c) {
2384
2384
  }
2385
2385
  );
2386
2386
  }
2387
- const Dd = (c) => {
2387
+ const zd = (c) => {
2388
2388
  const {
2389
2389
  isActiveItems: t,
2390
2390
  setIsActiveItems: s,
@@ -2396,7 +2396,7 @@ const Dd = (c) => {
2396
2396
  editable: o = !0,
2397
2397
  draggable: u = !1,
2398
2398
  deletable: g = !0,
2399
- addable: k = !0,
2399
+ addable: x = !0,
2400
2400
  itemsType: _,
2401
2401
  itemsPlaceholder: f = "",
2402
2402
  itemsOptions: I,
@@ -2405,11 +2405,11 @@ const Dd = (c) => {
2405
2405
  modalOptions: p,
2406
2406
  addableOptions: y = {},
2407
2407
  limit: w
2408
- } = c, [S, $] = b.useState(null), [A, O] = b.useState({
2408
+ } = c, [N, $] = b.useState(null), [A, O] = b.useState({
2409
2409
  top: 0,
2410
2410
  left: 0
2411
- }), [v, T] = b.useState(null), M = b.useRef(null), [L, N] = b.useState(!1), C = Ge(
2412
- Xe(Je, {
2411
+ }), [v, T] = b.useState(null), M = b.useRef(null), [L, S] = b.useState(!1), k = Xe(
2412
+ Ye(Ze, {
2413
2413
  activationConstraint: {
2414
2414
  distance: 5
2415
2415
  }
@@ -2417,47 +2417,47 @@ const Dd = (c) => {
2417
2417
  );
2418
2418
  b.useEffect(() => {
2419
2419
  const P = () => {
2420
- $(null), N(!1);
2420
+ $(null), S(!1);
2421
2421
  };
2422
- return document.body.addEventListener("click", P), $(null), N(!1), () => {
2423
- $(null), N(!1), document.body.removeEventListener("click", P);
2422
+ return document.body.addEventListener("click", P), $(null), S(!1), () => {
2423
+ $(null), S(!1), document.body.removeEventListener("click", P);
2424
2424
  };
2425
2425
  }, []), b.useEffect(() => {
2426
- if (S) {
2427
- const P = [...n].map((z) => z.id === S.id ? S : z);
2426
+ if (N) {
2427
+ const P = [...n].map((z) => z.id === N.id ? N : z);
2428
2428
  a(P);
2429
2429
  }
2430
- }, [S]), b.useEffect(() => {
2430
+ }, [N]), b.useEffect(() => {
2431
2431
  if (M.current && v) {
2432
2432
  const P = M.current.getBoundingClientRect().height, z = window.innerHeight;
2433
- let U = v.top;
2434
- U + P > z + window.scrollY - 200 && (U = z + window.scrollY - P - 200), U < 0 && (U = 10), O({
2435
- top: U,
2433
+ let j = v.top;
2434
+ j + P > z + window.scrollY - 200 && (j = z + window.scrollY - P - 200), j < 0 && (j = 10), O({
2435
+ top: j,
2436
2436
  left: v.left
2437
2437
  });
2438
2438
  }
2439
2439
  }, [M.current, v]);
2440
2440
  const D = (P, z) => {
2441
2441
  P.stopPropagation();
2442
- const U = P.target.getBoundingClientRect();
2442
+ const j = P.target.getBoundingClientRect();
2443
2443
  T({
2444
- top: U.top + window.scrollY,
2445
- left: U.left - 30
2446
- }), $(z), N(!0);
2444
+ top: j.top + window.scrollY,
2445
+ left: j.left - 30
2446
+ }), $(z), S(!0);
2447
2447
  }, E = (P) => {
2448
- const { active: z, over: U } = P;
2449
- if (U && z.id !== U.id) {
2450
- const F = n.findIndex((te) => te.id === z.id), se = n.findIndex((te) => te.id === U.id);
2448
+ const { active: z, over: j } = P;
2449
+ if (j && z.id !== j.id) {
2450
+ const F = n.findIndex((te) => te.id === z.id), se = n.findIndex((te) => te.id === j.id);
2451
2451
  if (F !== -1 && se !== -1) {
2452
2452
  const te = [...n], [Q] = te.splice(F, 1);
2453
2453
  te.splice(se, 0, Q), a(te);
2454
2454
  }
2455
2455
  }
2456
2456
  }, V = (P) => {
2457
- var U;
2457
+ var j;
2458
2458
  const z = /* @__PURE__ */ h(G, { children: [
2459
2459
  u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
2460
- x,
2460
+ C,
2461
2461
  {
2462
2462
  name: "DotsSixVertical",
2463
2463
  hoverable: !0,
@@ -2489,7 +2489,7 @@ const Dd = (c) => {
2489
2489
  }
2490
2490
  ),
2491
2491
  _ === "input" && /* @__PURE__ */ e(
2492
- ge,
2492
+ _e,
2493
2493
  {
2494
2494
  onChange: (F) => {
2495
2495
  const te = [...n].map((Q) => Q.id === P.id ? {
@@ -2505,7 +2505,7 @@ const Dd = (c) => {
2505
2505
  }
2506
2506
  ),
2507
2507
  _ === "image" && /* @__PURE__ */ e(
2508
- tt,
2508
+ nt,
2509
2509
  {
2510
2510
  onChange: (F) => {
2511
2511
  const te = [...n].map((Q) => Q.id === P.id ? {
@@ -2514,12 +2514,12 @@ const Dd = (c) => {
2514
2514
  } : Q);
2515
2515
  a([...te]);
2516
2516
  },
2517
- activeImage: (U = n.find((F) => F.id === P.id)) == null ? void 0 : U.images[0]
2517
+ activeImage: (j = n.find((F) => F.id === P.id)) == null ? void 0 : j.images[0]
2518
2518
  }
2519
2519
  ),
2520
2520
  /* @__PURE__ */ h("div", { className: ee.buttons, children: [
2521
2521
  o && /* @__PURE__ */ e("div", { className: ee.deleteButton, children: /* @__PURE__ */ e(
2522
- x,
2522
+ C,
2523
2523
  {
2524
2524
  name: "Sliders",
2525
2525
  hoverable: !0,
@@ -2529,7 +2529,7 @@ const Dd = (c) => {
2529
2529
  }
2530
2530
  ) }),
2531
2531
  g && /* @__PURE__ */ e("div", { className: ee.deleteButton, children: /* @__PURE__ */ e(
2532
- x,
2532
+ C,
2533
2533
  {
2534
2534
  name: "Trash",
2535
2535
  hoverable: !0,
@@ -2568,36 +2568,36 @@ const Dd = (c) => {
2568
2568
  }
2569
2569
  )
2570
2570
  ] }),
2571
- S && o && p && L && /* @__PURE__ */ e(
2571
+ N && o && p && L && /* @__PURE__ */ e(
2572
2572
  aa,
2573
2573
  {
2574
2574
  ref: M,
2575
- activeItem: S,
2575
+ activeItem: N,
2576
2576
  setActiveItem: $,
2577
2577
  popupPosition: A,
2578
2578
  modalOptions: p,
2579
- setIsOpenModal: N
2579
+ setIsOpenModal: S
2580
2580
  }
2581
2581
  ),
2582
- l && m && /* @__PURE__ */ e(xt, { ...m }),
2582
+ l && m && /* @__PURE__ */ e(Ct, { ...m }),
2583
2583
  /* @__PURE__ */ h("div", { className: ee.products, children: [
2584
2584
  r && /* @__PURE__ */ e("h5", { className: ee.subtitle, children: r }),
2585
2585
  u ? /* @__PURE__ */ e(
2586
- Ye,
2586
+ Ke,
2587
2587
  {
2588
- sensors: C,
2588
+ sensors: k,
2589
2589
  onDragEnd: E,
2590
2590
  children: /* @__PURE__ */ e(
2591
- Ke,
2591
+ Qe,
2592
2592
  {
2593
2593
  items: n.map((P) => P.id),
2594
- strategy: Qe,
2594
+ strategy: Je,
2595
2595
  children: n.map((P) => V(P))
2596
2596
  }
2597
2597
  )
2598
2598
  }
2599
2599
  ) : n.map((P) => V(P)),
2600
- k && /* @__PURE__ */ e(
2600
+ x && /* @__PURE__ */ e(
2601
2601
  "div",
2602
2602
  {
2603
2603
  style: {
@@ -2618,9 +2618,9 @@ const Dd = (c) => {
2618
2618
  const P = [...n];
2619
2619
  let z = null;
2620
2620
  if (I) {
2621
- for (let U = 0; U < I.length; U++)
2622
- if (!n.find((F) => F.name["en-US"] === I[U])) {
2623
- z = I[U];
2621
+ for (let j = 0; j < I.length; j++)
2622
+ if (!n.find((F) => F.name["en-US"] === I[j])) {
2623
+ z = I[j];
2624
2624
  break;
2625
2625
  }
2626
2626
  }
@@ -2654,7 +2654,7 @@ const Dd = (c) => {
2654
2654
  children: /* @__PURE__ */ h("div", { className: ee.addButton, children: [
2655
2655
  /* @__PURE__ */ e("span", { children: "Add Option" }),
2656
2656
  /* @__PURE__ */ e(
2657
- x,
2657
+ C,
2658
2658
  {
2659
2659
  name: "Plus",
2660
2660
  width: 16,
@@ -2668,7 +2668,7 @@ const Dd = (c) => {
2668
2668
  )
2669
2669
  ] }),
2670
2670
  i !== void 0 && /* @__PURE__ */ e(
2671
- Ve,
2671
+ We,
2672
2672
  {
2673
2673
  otherTitle: "Other",
2674
2674
  items: i
@@ -2684,8 +2684,8 @@ const Dd = (c) => {
2684
2684
  closeIcon: ha
2685
2685
  }, pa = b.forwardRef((c, t) => {
2686
2686
  var w;
2687
- const { activeButton: s, setActiveButton: n, popupPosition: a, editableLink: i = !0 } = c, [d, r] = b.useState(s.typesText), [o, u] = b.useState(s.destination), [g, k] = b.useState(s.page), [_, f] = b.useState(s.link || ""), [I, l] = b.useState(s.text || { "en-US": "" }), [m, p] = b.useState(s.openInNewTab), { pages: y } = We();
2688
- return nt(t, () => {
2687
+ const { activeButton: s, setActiveButton: n, popupPosition: a, editableLink: i = !0 } = c, [d, r] = b.useState(s.typesText), [o, u] = b.useState(s.destination), [g, x] = b.useState(s.page), [_, f] = b.useState(s.link || ""), [I, l] = b.useState(s.text || { "en-US": "" }), [m, p] = b.useState(s.openInNewTab), { pages: y } = Ge();
2688
+ return st(t, () => {
2689
2689
  n(null);
2690
2690
  }), b.useEffect(() => {
2691
2691
  n({
@@ -2703,8 +2703,8 @@ const Dd = (c) => {
2703
2703
  "div",
2704
2704
  {
2705
2705
  className: Pe.modal,
2706
- onClick: (S) => {
2707
- S.stopPropagation();
2706
+ onClick: (N) => {
2707
+ N.stopPropagation();
2708
2708
  },
2709
2709
  style: {
2710
2710
  top: `${a.top}px`,
@@ -2715,7 +2715,7 @@ const Dd = (c) => {
2715
2715
  /* @__PURE__ */ h("div", { className: Pe.top, children: [
2716
2716
  /* @__PURE__ */ e("h3", { className: Pe.title, children: s.type }),
2717
2717
  /* @__PURE__ */ e("div", { className: Pe.closeIcon, children: /* @__PURE__ */ e(
2718
- x,
2718
+ C,
2719
2719
  {
2720
2720
  name: "X",
2721
2721
  height: 20,
@@ -2730,8 +2730,8 @@ const Dd = (c) => {
2730
2730
  ue,
2731
2731
  {
2732
2732
  label: "Destination",
2733
- onChange: (S) => u(S),
2734
- options: ["Go to Page", "Open Link"].filter((S) => S !== o),
2733
+ onChange: (N) => u(N),
2734
+ options: ["Go to Page", "Open Link"].filter((N) => N !== o),
2735
2735
  value: o
2736
2736
  }
2737
2737
  ),
@@ -2739,28 +2739,28 @@ const Dd = (c) => {
2739
2739
  ue,
2740
2740
  {
2741
2741
  label: "Go to",
2742
- onChange: (S) => {
2743
- if (S === "Sign In")
2744
- k("/customer-dash");
2742
+ onChange: (N) => {
2743
+ if (N === "Sign In")
2744
+ x("/customer-dash");
2745
2745
  else if (y) {
2746
2746
  for (const $ in y)
2747
- if (y[$].name === S) {
2748
- k(y[$].path);
2747
+ if (y[$].name === N) {
2748
+ x(y[$].path);
2749
2749
  break;
2750
2750
  }
2751
2751
  } else
2752
- k(cn[0]);
2752
+ x(cn[0]);
2753
2753
  },
2754
2754
  options: y ? [
2755
- ...Object.values(y).filter((S) => S.path !== g).map((S) => S.name),
2755
+ ...Object.values(y).filter((N) => N.path !== g).map((N) => N.name),
2756
2756
  "Sign In"
2757
2757
  ] : ["Sign In"],
2758
- value: y ? g === "/customer-dash" ? "Sign In" : ((w = Object.values(y).find((S) => S.path === g)) == null ? void 0 : w.name) || "Home" : "Home"
2758
+ value: y ? g === "/customer-dash" ? "Sign In" : ((w = Object.values(y).find((N) => N.path === g)) == null ? void 0 : w.name) || "Home" : "Home"
2759
2759
  }
2760
2760
  ) : /* @__PURE__ */ e(
2761
- ge,
2761
+ _e,
2762
2762
  {
2763
- onChange: (S) => f(S),
2763
+ onChange: (N) => f(N),
2764
2764
  value: _,
2765
2765
  placeholder: "https://",
2766
2766
  label: "Link"
@@ -2771,13 +2771,13 @@ const Dd = (c) => {
2771
2771
  {
2772
2772
  current: s.openInNewTab,
2773
2773
  label: "Open in new tab",
2774
- onChange: (S) => p(S)
2774
+ onChange: (N) => p(N)
2775
2775
  }
2776
2776
  ),
2777
2777
  /* @__PURE__ */ e(
2778
2778
  Yt,
2779
2779
  {
2780
- onChange: (S) => l({ "en-US": S }),
2780
+ onChange: (N) => l({ "en-US": N }),
2781
2781
  value: I["en-US"],
2782
2782
  label: "Text"
2783
2783
  }
@@ -2793,34 +2793,34 @@ const Dd = (c) => {
2793
2793
  ]
2794
2794
  }
2795
2795
  );
2796
- }), ma = "_subtitle_jql1y_1", fa = "_products_jql1y_10", ga = "_product_jql1y_10", _a = "_button_jql1y_11", va = "_buttons_jql1y_11", ya = "_addButton_jql1y_150", ba = "_deleteButton_jql1y_165", Ce = {
2796
+ }), ma = "_subtitle_jql1y_1", fa = "_products_jql1y_10", _a = "_product_jql1y_10", ga = "_button_jql1y_11", va = "_buttons_jql1y_11", ya = "_addButton_jql1y_150", ba = "_deleteButton_jql1y_165", Ce = {
2797
2797
  subtitle: ma,
2798
2798
  products: fa,
2799
- product: ga,
2800
- button: _a,
2799
+ product: _a,
2800
+ button: ga,
2801
2801
  buttons: va,
2802
2802
  addButton: ya,
2803
2803
  deleteButton: ba
2804
2804
  }, Ia = (c) => {
2805
- const { buttons: t, setButtons: s, deletable: n = !0, addable: a = !0, editableLink: i = !0 } = c, { pages: d } = We(), [r, o] = b.useState(null), [u, g] = b.useState({
2805
+ const { buttons: t, setButtons: s, deletable: n = !0, addable: a = !0, editableLink: i = !0 } = c, { pages: d } = Ge(), [r, o] = b.useState(null), [u, g] = b.useState({
2806
2806
  top: 0,
2807
2807
  left: 0
2808
- }), [k, _] = b.useState(null), f = b.useRef(null);
2808
+ }), [x, _] = b.useState(null), f = b.useRef(null);
2809
2809
  b.useEffect(() => {
2810
2810
  if (r) {
2811
2811
  const m = [...t].map((p) => p.id === r.id ? r : p);
2812
2812
  s(m);
2813
2813
  }
2814
2814
  }, [r]), b.useEffect(() => {
2815
- if (f.current && k) {
2815
+ if (f.current && x) {
2816
2816
  const m = f.current.getBoundingClientRect().height, p = window.innerHeight;
2817
- let y = k.top;
2817
+ let y = x.top;
2818
2818
  y + m > p + window.scrollY - 200 && (y = p + window.scrollY - m - 200), y < 0 && (y = 10), g({
2819
2819
  top: y,
2820
- left: k.left
2820
+ left: x.left
2821
2821
  });
2822
2822
  }
2823
- }, [f.current, k]);
2823
+ }, [f.current, x]);
2824
2824
  const I = (m, p) => {
2825
2825
  m.stopPropagation();
2826
2826
  const y = m.target.getBoundingClientRect();
@@ -2847,11 +2847,11 @@ const Dd = (c) => {
2847
2847
  ue,
2848
2848
  {
2849
2849
  onChange: (y) => {
2850
- const S = [...t].map(($) => $.id === m.id ? {
2850
+ const N = [...t].map(($) => $.id === m.id ? {
2851
2851
  ...m,
2852
2852
  type: y
2853
2853
  } : $);
2854
- s(S);
2854
+ s(N);
2855
2855
  },
2856
2856
  value: m.type,
2857
2857
  options: ["Primary", "Secondary", "Tertiary"]
@@ -2859,7 +2859,7 @@ const Dd = (c) => {
2859
2859
  ),
2860
2860
  /* @__PURE__ */ h("div", { className: Ce.buttons, children: [
2861
2861
  /* @__PURE__ */ e("div", { className: Ce.deleteButton, children: /* @__PURE__ */ e(
2862
- x,
2862
+ C,
2863
2863
  {
2864
2864
  name: "Copy",
2865
2865
  hoverable: !0,
@@ -2871,7 +2871,7 @@ const Dd = (c) => {
2871
2871
  }
2872
2872
  ) }),
2873
2873
  /* @__PURE__ */ e("div", { className: Ce.deleteButton, children: /* @__PURE__ */ e(
2874
- x,
2874
+ C,
2875
2875
  {
2876
2876
  name: "Sliders",
2877
2877
  hoverable: !0,
@@ -2883,7 +2883,7 @@ const Dd = (c) => {
2883
2883
  }
2884
2884
  ) }),
2885
2885
  n && /* @__PURE__ */ e("div", { className: Ce.deleteButton, children: /* @__PURE__ */ e(
2886
- x,
2886
+ C,
2887
2887
  {
2888
2888
  name: "Trash",
2889
2889
  hoverable: !0,
@@ -2955,7 +2955,7 @@ const Dd = (c) => {
2955
2955
  children: /* @__PURE__ */ h("div", { className: Ce.addButton, children: [
2956
2956
  /* @__PURE__ */ e("span", { children: "Add Option" }),
2957
2957
  /* @__PURE__ */ e(
2958
- x,
2958
+ C,
2959
2959
  {
2960
2960
  name: "Plus",
2961
2961
  width: 16,
@@ -2968,7 +2968,7 @@ const Dd = (c) => {
2968
2968
  }
2969
2969
  )
2970
2970
  ] });
2971
- }, Rd = (c) => {
2971
+ }, Fd = (c) => {
2972
2972
  const {
2973
2973
  isActiveButtons: t,
2974
2974
  setIsActiveButtons: s,
@@ -3000,13 +3000,13 @@ const Dd = (c) => {
3000
3000
  }
3001
3001
  )
3002
3002
  ] }) });
3003
- }, Na = "_wrapper_m18qi_1", Sa = "_subtitle_m18qi_7", wa = "_content_m18qi_14", ka = "_range_m18qi_22", Ca = "_track_m18qi_27", xa = "_progress_m18qi_36", $a = "_dots_m18qi_46", Ta = "_dot_m18qi_46", Pa = "_active_m18qi_65", Oa = "_input_m18qi_77", Aa = "_countBlock_m18qi_91", Ba = "_controls_m18qi_107", Ma = "_button_m18qi_113", ce = {
3004
- wrapper: Na,
3005
- subtitle: Sa,
3003
+ }, Sa = "_wrapper_m18qi_1", Na = "_subtitle_m18qi_7", wa = "_content_m18qi_14", xa = "_range_m18qi_22", ka = "_track_m18qi_27", Ca = "_progress_m18qi_36", $a = "_dots_m18qi_46", Ta = "_dot_m18qi_46", Pa = "_active_m18qi_65", Oa = "_input_m18qi_77", Aa = "_countBlock_m18qi_91", Ba = "_controls_m18qi_107", Ma = "_button_m18qi_113", ce = {
3004
+ wrapper: Sa,
3005
+ subtitle: Na,
3006
3006
  content: wa,
3007
- range: ka,
3008
- track: Ca,
3009
- progress: xa,
3007
+ range: xa,
3008
+ track: ka,
3009
+ progress: Ca,
3010
3010
  dots: $a,
3011
3011
  dot: Ta,
3012
3012
  active: Pa,
@@ -3014,8 +3014,8 @@ const Dd = (c) => {
3014
3014
  countBlock: Aa,
3015
3015
  controls: Ba,
3016
3016
  button: Ma
3017
- }, xt = (c) => {
3018
- const { label: t, min: s = 1, max: n = 4, step: a = 1, count: i, setCount: d } = c, [r, o] = b.useState(!1), u = Array.from({ length: (n - s) / a + 1 }), g = (i - s) / (n - s) * 100, k = () => {
3017
+ }, Ct = (c) => {
3018
+ const { label: t, min: s = 1, max: n = 4, step: a = 1, count: i, setCount: d } = c, [r, o] = b.useState(!1), u = Array.from({ length: (n - s) / a + 1 }), g = (i - s) / (n - s) * 100, x = () => {
3019
3019
  i < n && d(i + a);
3020
3020
  }, _ = () => {
3021
3021
  i > s && d(i - a);
@@ -3070,7 +3070,7 @@ const Dd = (c) => {
3070
3070
  ] }),
3071
3071
  /* @__PURE__ */ h("div", { className: ce.countBlock, children: [
3072
3072
  /* @__PURE__ */ e(
3073
- ge,
3073
+ _e,
3074
3074
  {
3075
3075
  type: "number",
3076
3076
  min: s,
@@ -3087,12 +3087,12 @@ const Dd = (c) => {
3087
3087
  /* @__PURE__ */ e(
3088
3088
  "button",
3089
3089
  {
3090
- onClick: k,
3090
+ onClick: x,
3091
3091
  disabled: i >= n,
3092
3092
  className: ce.button,
3093
3093
  "aria-label": "Increment count",
3094
3094
  children: /* @__PURE__ */ e(
3095
- x,
3095
+ C,
3096
3096
  {
3097
3097
  name: "CaretUp",
3098
3098
  width: 15,
@@ -3109,7 +3109,7 @@ const Dd = (c) => {
3109
3109
  className: ce.button,
3110
3110
  "aria-label": "Decrement count",
3111
3111
  children: /* @__PURE__ */ e(
3112
- x,
3112
+ C,
3113
3113
  {
3114
3114
  name: "CaretDown",
3115
3115
  width: 15,
@@ -3122,7 +3122,7 @@ const Dd = (c) => {
3122
3122
  ] })
3123
3123
  ] })
3124
3124
  ] });
3125
- }, Ea = "_title_11jyy_1", qa = "_subtitle_11jyy_5", Da = "_productsBlock_11jyy_14", Ra = "_top_11jyy_26", La = "_products_11jyy_14", za = "_product_11jyy_14", Fa = "_button_11jyy_80", Ua = "_buttons_11jyy_114", ja = "_modal_11jyy_121", Ha = "_modalOptions_11jyy_148", Va = "_addButton_11jyy_161", Wa = "_deleteButton_11jyy_176", Ga = "_closeIcon_11jyy_188", oe = {
3125
+ }, Ea = "_title_11jyy_1", qa = "_subtitle_11jyy_5", Da = "_productsBlock_11jyy_14", Ra = "_top_11jyy_26", La = "_products_11jyy_14", za = "_product_11jyy_14", Fa = "_button_11jyy_80", ja = "_buttons_11jyy_114", Ua = "_modal_11jyy_121", Ha = "_modalOptions_11jyy_148", Va = "_addButton_11jyy_161", Wa = "_deleteButton_11jyy_176", Ga = "_closeIcon_11jyy_188", oe = {
3126
3126
  title: Ea,
3127
3127
  subtitle: qa,
3128
3128
  productsBlock: Da,
@@ -3130,8 +3130,8 @@ const Dd = (c) => {
3130
3130
  products: La,
3131
3131
  product: za,
3132
3132
  button: Fa,
3133
- buttons: Ua,
3134
- modal: ja,
3133
+ buttons: ja,
3134
+ modal: Ua,
3135
3135
  modalOptions: Ha,
3136
3136
  addButton: Va,
3137
3137
  deleteButton: Wa,
@@ -3139,7 +3139,7 @@ const Dd = (c) => {
3139
3139
  }, Xa = b.forwardRef(
3140
3140
  (c, t) => {
3141
3141
  const { activeItem: s, setActiveItem: n, popupPosition: a, setIsOpenModal: i, itemsOptions: d } = c, r = d.find((o) => o.id === s.listingId);
3142
- return nt(t, () => {
3142
+ return st(t, () => {
3143
3143
  n(null), i(!1);
3144
3144
  }), r ? /* @__PURE__ */ h(
3145
3145
  "div",
@@ -3163,7 +3163,7 @@ const Dd = (c) => {
3163
3163
  }
3164
3164
  ),
3165
3165
  /* @__PURE__ */ e("div", { className: oe.closeIcon, children: /* @__PURE__ */ e(
3166
- x,
3166
+ C,
3167
3167
  {
3168
3168
  name: "X",
3169
3169
  height: 20,
@@ -3175,7 +3175,7 @@ const Dd = (c) => {
3175
3175
  ) })
3176
3176
  ] }),
3177
3177
  /* @__PURE__ */ e("div", { className: oe.modalOptions, children: /* @__PURE__ */ e(
3178
- tt,
3178
+ nt,
3179
3179
  {
3180
3180
  label: "Put up an attractive image",
3181
3181
  activeImage: r.productData.images.length > 0 ? r.productData.images[0].cfId : s.image ? s.image : void 0,
@@ -3194,10 +3194,10 @@ const Dd = (c) => {
3194
3194
  }
3195
3195
  );
3196
3196
  function Ya(c) {
3197
- const { product: t, children: s } = c, { attributes: n, listeners: a, setNodeRef: i, transform: d, transition: r, isDragging: o } = Ze({
3197
+ const { product: t, children: s } = c, { attributes: n, listeners: a, setNodeRef: i, transform: d, transition: r, isDragging: o } = et({
3198
3198
  id: String(t.listingId)
3199
3199
  }), u = {
3200
- transform: et.Transform.toString(d),
3200
+ transform: tt.Transform.toString(d),
3201
3201
  transition: r
3202
3202
  };
3203
3203
  return /* @__PURE__ */ e(
@@ -3212,7 +3212,7 @@ function Ya(c) {
3212
3212
  }
3213
3213
  );
3214
3214
  }
3215
- const Ld = (c) => {
3215
+ const jd = (c) => {
3216
3216
  const {
3217
3217
  isActiveItems: t,
3218
3218
  setIsActiveItems: s,
@@ -3224,7 +3224,7 @@ const Ld = (c) => {
3224
3224
  editable: o = !0,
3225
3225
  draggable: u = !1,
3226
3226
  withImage: g = !1,
3227
- deletable: k = !0,
3227
+ deletable: x = !0,
3228
3228
  addable: _ = !0,
3229
3229
  itemsType: f,
3230
3230
  itemsOptions: I,
@@ -3233,11 +3233,11 @@ const Ld = (c) => {
3233
3233
  setAspectRatio: p
3234
3234
  } = c, [y, w] = b.useState(
3235
3235
  null
3236
- ), [S, $] = b.useState({
3236
+ ), [N, $] = b.useState({
3237
3237
  top: 0,
3238
3238
  left: 0
3239
- }), [A, O] = b.useState(!1), v = Ge(
3240
- Xe(Je, {
3239
+ }), [A, O] = b.useState(!1), v = Xe(
3240
+ Ye(Ze, {
3241
3241
  activationConstraint: {
3242
3242
  distance: 5
3243
3243
  }
@@ -3258,9 +3258,9 @@ const Ld = (c) => {
3258
3258
  }, [y]);
3259
3259
  const T = (E, V) => {
3260
3260
  E.stopPropagation();
3261
- const P = E.target.getBoundingClientRect(), z = 100, U = window.innerHeight;
3261
+ const P = E.target.getBoundingClientRect(), z = 100, j = window.innerHeight;
3262
3262
  let F = P.top + window.scrollY;
3263
- F + z > U && (F = U - z - 20), O(!0), $({
3263
+ F + z > j && (F = j - z - 20), O(!0), $({
3264
3264
  top: F - 80,
3265
3265
  left: P.left - 30
3266
3266
  }), w(V);
@@ -3276,7 +3276,7 @@ const Ld = (c) => {
3276
3276
  height: 16
3277
3277
  }
3278
3278
  ) : /* @__PURE__ */ e(
3279
- x,
3279
+ C,
3280
3280
  {
3281
3281
  name: "Image",
3282
3282
  width: 16,
@@ -3288,20 +3288,20 @@ const Ld = (c) => {
3288
3288
  const L = (E) => {
3289
3289
  const { active: V, over: P } = E;
3290
3290
  if (P && V.id !== P.id) {
3291
- const z = n.findIndex((F) => String(F.listingId) === V.id), U = n.findIndex((F) => String(F.listingId) === P.id);
3292
- if (z !== -1 && U !== -1) {
3291
+ const z = n.findIndex((F) => String(F.listingId) === V.id), j = n.findIndex((F) => String(F.listingId) === P.id);
3292
+ if (z !== -1 && j !== -1) {
3293
3293
  const F = [...n], [se] = F.splice(z, 1);
3294
- F.splice(U, 0, se), a(F);
3294
+ F.splice(j, 0, se), a(F);
3295
3295
  }
3296
3296
  }
3297
- }, N = () => {
3297
+ }, S = () => {
3298
3298
  O(!1), w(null);
3299
- }, C = (E) => {
3299
+ }, k = (E) => {
3300
3300
  const V = I.find((z) => E.listingId === z.id);
3301
3301
  if (!V) return null;
3302
3302
  const P = /* @__PURE__ */ h(G, { children: [
3303
3303
  u && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3304
- x,
3304
+ C,
3305
3305
  {
3306
3306
  name: "DotsSixVertical",
3307
3307
  hoverable: !0,
@@ -3313,30 +3313,30 @@ const Ld = (c) => {
3313
3313
  ue,
3314
3314
  {
3315
3315
  onChange: (z) => {
3316
- const U = [...n], F = I.find((Q) => Q.productData.name === z);
3316
+ const j = [...n], F = I.find((Q) => Q.productData.name === z);
3317
3317
  if (!F) return;
3318
3318
  const se = {
3319
3319
  listingId: F.id,
3320
3320
  image: F.productData.images.length > 0 ? F.productData.images[0].cfId : ""
3321
- }, te = U.map((Q) => Q.listingId === E.listingId ? se : Q);
3321
+ }, te = j.map((Q) => Q.listingId === E.listingId ? se : Q);
3322
3322
  w(se), a([...te]);
3323
3323
  },
3324
3324
  value: V.productData.name,
3325
3325
  options: [
3326
- ...I.filter((z) => !n.find((U) => U.listingId === z.id)).map((z) => z.productData.name)
3326
+ ...I.filter((z) => !n.find((j) => j.listingId === z.id)).map((z) => z.productData.name)
3327
3327
  ],
3328
3328
  leftAddonOptions: I.map((z) => {
3329
- var U;
3329
+ var j;
3330
3330
  return {
3331
3331
  value: z.productData.name,
3332
- addon: M(((U = z.productData.images[0]) == null ? void 0 : U.cfId) || "")
3332
+ addon: M(((j = z.productData.images[0]) == null ? void 0 : j.cfId) || "")
3333
3333
  };
3334
3334
  })
3335
3335
  }
3336
3336
  ),
3337
3337
  /* @__PURE__ */ h("div", { className: oe.buttons, children: [
3338
3338
  o && /* @__PURE__ */ e("div", { className: oe.deleteButton, children: /* @__PURE__ */ e(
3339
- x,
3339
+ C,
3340
3340
  {
3341
3341
  name: "Sliders",
3342
3342
  hoverable: !0,
@@ -3345,8 +3345,8 @@ const Ld = (c) => {
3345
3345
  onClick: (z) => T(z, E)
3346
3346
  }
3347
3347
  ) }),
3348
- k && /* @__PURE__ */ e("div", { className: oe.deleteButton, children: /* @__PURE__ */ e(
3349
- x,
3348
+ x && /* @__PURE__ */ e("div", { className: oe.deleteButton, children: /* @__PURE__ */ e(
3349
+ C,
3350
3350
  {
3351
3351
  name: "Trash",
3352
3352
  hoverable: !0,
@@ -3392,28 +3392,28 @@ const Ld = (c) => {
3392
3392
  activeItem: y,
3393
3393
  setActiveItem: w,
3394
3394
  setIsOpenModal: O,
3395
- popupPosition: S,
3395
+ popupPosition: N,
3396
3396
  itemsOptions: I
3397
3397
  }
3398
3398
  ),
3399
3399
  t && /* @__PURE__ */ h("div", { className: oe.products, children: [
3400
3400
  r && /* @__PURE__ */ e("h5", { className: oe.subtitle, children: r }),
3401
3401
  u ? /* @__PURE__ */ e(
3402
- Ye,
3402
+ Ke,
3403
3403
  {
3404
3404
  sensors: v,
3405
3405
  onDragEnd: L,
3406
- onDragStart: N,
3406
+ onDragStart: S,
3407
3407
  children: /* @__PURE__ */ e(
3408
- Ke,
3408
+ Qe,
3409
3409
  {
3410
3410
  items: n.map((E) => String(E.listingId)),
3411
- strategy: Qe,
3412
- children: n.map((E) => C(E))
3411
+ strategy: Je,
3412
+ children: n.map((E) => k(E))
3413
3413
  }
3414
3414
  )
3415
3415
  }
3416
- ) : n.map((E) => C(E)),
3416
+ ) : n.map((E) => k(E)),
3417
3417
  _ && /* @__PURE__ */ e(
3418
3418
  "div",
3419
3419
  {
@@ -3447,7 +3447,7 @@ const Ld = (c) => {
3447
3447
  children: /* @__PURE__ */ h("div", { className: oe.addButton, children: [
3448
3448
  /* @__PURE__ */ e("span", { children: "Add Option" }),
3449
3449
  /* @__PURE__ */ e(
3450
- x,
3450
+ C,
3451
3451
  {
3452
3452
  name: "Plus",
3453
3453
  width: 16,
@@ -3464,20 +3464,20 @@ const Ld = (c) => {
3464
3464
  ue,
3465
3465
  {
3466
3466
  value: m,
3467
- options: Object.keys(Ct),
3467
+ options: Object.keys(kt),
3468
3468
  onChange: (E) => p(E),
3469
- leftAddonOptions: kt
3469
+ leftAddonOptions: xt
3470
3470
  }
3471
3471
  ),
3472
3472
  t && i !== void 0 && /* @__PURE__ */ e(
3473
- Ve,
3473
+ We,
3474
3474
  {
3475
3475
  otherTitle: "Other",
3476
3476
  items: i
3477
3477
  }
3478
3478
  )
3479
3479
  ] });
3480
- }, Ka = "_options_s4lx3_1", Qa = "_price_s4lx3_18", Ja = "_oldPrice_s4lx3_25", Za = "_newPrice_s4lx3_34", eo = "_animate_s4lx3_42", to = "_meta_s4lx3_60", no = "_info_s4lx3_66", so = "_infoRight_s4lx3_75", io = "_buttons_s4lx3_82", ao = "_variants_s4lx3_89", oo = "_variant_s4lx3_89", co = "_stock_s4lx3_107", ro = "_variantInfo_s4lx3_115", lo = "_quantity_s4lx3_122", uo = "_button_s4lx3_82", ho = "_activeVariant_s4lx3_168", po = "_chargeTypes_s4lx3_172", mo = "_charge_s4lx3_172", fo = "_chargeActive_s4lx3_197", go = "_title_s4lx3_205", H = {
3480
+ }, Ka = "_options_s4lx3_1", Qa = "_price_s4lx3_18", Ja = "_oldPrice_s4lx3_25", Za = "_newPrice_s4lx3_34", eo = "_animate_s4lx3_42", to = "_meta_s4lx3_60", no = "_info_s4lx3_66", so = "_infoRight_s4lx3_75", io = "_buttons_s4lx3_82", ao = "_variants_s4lx3_89", oo = "_variant_s4lx3_89", co = "_stock_s4lx3_107", ro = "_variantInfo_s4lx3_115", lo = "_quantity_s4lx3_122", uo = "_button_s4lx3_82", ho = "_activeVariant_s4lx3_168", po = "_chargeTypes_s4lx3_172", mo = "_charge_s4lx3_172", fo = "_chargeActive_s4lx3_197", _o = "_title_s4lx3_205", H = {
3481
3481
  options: Ka,
3482
3482
  price: Qa,
3483
3483
  oldPrice: Ja,
@@ -3497,19 +3497,19 @@ const Ld = (c) => {
3497
3497
  chargeTypes: po,
3498
3498
  charge: mo,
3499
3499
  chargeActive: fo,
3500
- title: go
3501
- }, _o = "_wrapper_1qlwq_1", vo = "_label_1qlwq_9", yo = "_input_1qlwq_18", bo = "_disabled_1qlwq_31", Io = "_paddingless_1qlwq_36", No = "_content_1qlwq_47", So = "_contentBorder_1qlwq_60", wo = "_contentField_1qlwq_65", ko = "_contentIsAntistock_1qlwq_69", Co = "_borderless_1qlwq_74", xo = "_rightIcon_1qlwq_79", $o = "_leftIcon_1qlwq_87", To = "_requiredStar_1qlwq_94", Po = "_contentError_1qlwq_98", Oo = "_errorMessage_1qlwq_102", ae = {
3502
- wrapper: _o,
3500
+ title: _o
3501
+ }, go = "_wrapper_1qlwq_1", vo = "_label_1qlwq_9", yo = "_input_1qlwq_18", bo = "_disabled_1qlwq_31", Io = "_paddingless_1qlwq_36", So = "_content_1qlwq_47", No = "_contentBorder_1qlwq_60", wo = "_contentField_1qlwq_65", xo = "_contentIsAntistock_1qlwq_69", ko = "_borderless_1qlwq_74", Co = "_rightIcon_1qlwq_79", $o = "_leftIcon_1qlwq_87", To = "_requiredStar_1qlwq_94", Po = "_contentError_1qlwq_98", Oo = "_errorMessage_1qlwq_102", ae = {
3502
+ wrapper: go,
3503
3503
  label: vo,
3504
3504
  input: yo,
3505
3505
  disabled: bo,
3506
3506
  paddingless: Io,
3507
- content: No,
3508
- contentBorder: So,
3507
+ content: So,
3508
+ contentBorder: No,
3509
3509
  contentField: wo,
3510
- contentIsAntistock: ko,
3511
- borderless: Co,
3512
- rightIcon: xo,
3510
+ contentIsAntistock: xo,
3511
+ borderless: ko,
3512
+ rightIcon: Co,
3513
3513
  leftIcon: $o,
3514
3514
  requiredStar: To,
3515
3515
  contentError: Po,
@@ -3526,7 +3526,7 @@ const Ld = (c) => {
3526
3526
  placeholder: o,
3527
3527
  disabled: u = !1,
3528
3528
  required: g = !1,
3529
- regex: k,
3529
+ regex: x,
3530
3530
  paddingless: _ = !1,
3531
3531
  borderless: f = !1,
3532
3532
  editable: I = !1,
@@ -3535,20 +3535,20 @@ const Ld = (c) => {
3535
3535
  maxSymbols: p,
3536
3536
  rightIcon: y,
3537
3537
  onFocus: w,
3538
- leftIcon: S,
3538
+ leftIcon: N,
3539
3539
  error: $
3540
3540
  } = c, { themeSettings: A } = pt(), { isAntistock: O } = ze(), { inputs: v } = A, [T, M] = b.useState(!1);
3541
- function L(C) {
3542
- if (Number(C) < 0) return String(d);
3543
- const D = C.replace(/[^\d-]/g, "");
3541
+ function L(k) {
3542
+ if (Number(k) < 0) return String(d);
3543
+ const D = k.replace(/[^\d-]/g, "");
3544
3544
  return Number(D) < 0 ? String(d) : D;
3545
3545
  }
3546
- function N(C) {
3547
- if (!g || !k) return !0;
3546
+ function S(k) {
3547
+ if (!g || !x) return !0;
3548
3548
  try {
3549
- return new RegExp(k).test(C);
3549
+ return new RegExp(x).test(k);
3550
3550
  } catch (D) {
3551
- return console.error("Invalid regex pattern:", k, D), !0;
3551
+ return console.error("Invalid regex pattern:", x, D), !0;
3552
3552
  }
3553
3553
  }
3554
3554
  return /* @__PURE__ */ h("div", { className: ae.wrapper, children: [
@@ -3580,17 +3580,17 @@ const Ld = (c) => {
3580
3580
  ...s
3581
3581
  },
3582
3582
  children: [
3583
- S && /* @__PURE__ */ e("div", { className: ae.leftIcon, children: S }),
3583
+ N && /* @__PURE__ */ e("div", { className: ae.leftIcon, children: N }),
3584
3584
  /* @__PURE__ */ e(
3585
3585
  "input",
3586
3586
  {
3587
3587
  maxLength: p,
3588
3588
  id: n,
3589
3589
  type: i || "text",
3590
- onChange: (C) => {
3591
- if (i === "text") t(C.target.value);
3590
+ onChange: (k) => {
3591
+ if (i === "text") t(k.target.value);
3592
3592
  else {
3593
- const D = L(C.target.value);
3593
+ const D = L(k.target.value);
3594
3594
  t(D);
3595
3595
  }
3596
3596
  },
@@ -3598,7 +3598,7 @@ const Ld = (c) => {
3598
3598
  autoComplete: "off",
3599
3599
  placeholder: o || "Type something...",
3600
3600
  className: q(ae.input, {
3601
- [ae.required]: T && g && !N(a),
3601
+ [ae.required]: T && g && !S(a),
3602
3602
  [ae.paddingless]: _,
3603
3603
  [ae.borderless]: f
3604
3604
  }),
@@ -3610,13 +3610,13 @@ const Ld = (c) => {
3610
3610
  disabled: u,
3611
3611
  style: {
3612
3612
  textAlign: m ? "center" : "left",
3613
- padding: l ? `7px ${Number(v.general.size) + 20}px 7px ${S ? 35 : 11}px` : O ? `4.5px ${y ? 35 : 11}px 4px ${S ? 35 : 11}px` : `7px ${y ? 35 : 11}px 7px ${S ? 35 : 11}px`
3613
+ padding: l ? `7px ${Number(v.general.size) + 20}px 7px ${N ? 35 : 11}px` : O ? `4.5px ${y ? 35 : 11}px 4px ${N ? 35 : 11}px` : `7px ${y ? 35 : 11}px 7px ${N ? 35 : 11}px`
3614
3614
  }
3615
3615
  }
3616
3616
  ),
3617
3617
  y && /* @__PURE__ */ e("div", { className: ae.rightIcon, children: y }),
3618
3618
  l && /* @__PURE__ */ e("div", { className: ae.rightIcon, children: /* @__PURE__ */ e(
3619
- x,
3619
+ C,
3620
3620
  {
3621
3621
  name: "MagnifyingGlass",
3622
3622
  fill: "var(--text-secondary)",
@@ -3625,7 +3625,7 @@ const Ld = (c) => {
3625
3625
  }
3626
3626
  ) }),
3627
3627
  I && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3628
- x,
3628
+ C,
3629
3629
  {
3630
3630
  name: "Sliders",
3631
3631
  width: 20,
@@ -3694,7 +3694,7 @@ const Ld = (c) => {
3694
3694
  style: n,
3695
3695
  children: [
3696
3696
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3697
- x,
3697
+ C,
3698
3698
  {
3699
3699
  name: "Info",
3700
3700
  fill: Bt[t],
@@ -3711,7 +3711,7 @@ const Ld = (c) => {
3711
3711
  }
3712
3712
  ),
3713
3713
  d && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3714
- x,
3714
+ C,
3715
3715
  {
3716
3716
  name: "X",
3717
3717
  fill: Bt[t],
@@ -3726,15 +3726,17 @@ const Ld = (c) => {
3726
3726
  )
3727
3727
  }
3728
3728
  );
3729
- }, Uo = "_wrapper_d9z4o_1", jo = "_label_d9z4o_10", Ho = "_contentBorder_d9z4o_19", Vo = "_textarea_d9z4o_23", Wo = "_contentField_d9z4o_35", Go = "_antistock_d9z4o_49", Xo = "_length_d9z4o_58", xe = {
3730
- wrapper: Uo,
3731
- label: jo,
3729
+ }, jo = "_wrapper_bjppv_1", Uo = "_label_bjppv_10", Ho = "_contentBorder_bjppv_19", Vo = "_textarea_bjppv_23", Wo = "_contentField_bjppv_35", Go = "_antistock_bjppv_49", Xo = "_length_bjppv_58", Yo = "_requiredStar_bjppv_66", Ko = "_contentError_bjppv_70", ye = {
3730
+ wrapper: jo,
3731
+ label: Uo,
3732
3732
  contentBorder: Ho,
3733
3733
  textarea: Vo,
3734
3734
  contentField: Wo,
3735
3735
  antistock: Go,
3736
- length: Xo
3737
- }, zd = (c) => {
3736
+ length: Xo,
3737
+ requiredStar: Yo,
3738
+ contentError: Ko
3739
+ }, Ud = (c) => {
3738
3740
  const {
3739
3741
  onChange: t,
3740
3742
  label: s,
@@ -3742,23 +3744,27 @@ const Ld = (c) => {
3742
3744
  maxLength: a,
3743
3745
  placeholder: i = "Type something...",
3744
3746
  type: d = "text",
3745
- required: r = !1
3746
- } = c, [o, u] = b.useState(n.length), { themeSettings: g } = pt(), { isAntistock: k } = ze();
3747
- function _(f) {
3748
- return d === "number" ? f.replace(/[^\d\n]+/g, "") : f;
3747
+ required: r = !1,
3748
+ error: o
3749
+ } = c, [u, g] = b.useState(n.length), { themeSettings: x } = pt(), { isAntistock: _ } = ze();
3750
+ function f(I) {
3751
+ return d === "number" ? I.replace(/[^\d\n]+/g, "") : I;
3749
3752
  }
3750
- return /* @__PURE__ */ h("div", { className: xe.wrapper, children: [
3753
+ return /* @__PURE__ */ h("div", { className: ye.wrapper, children: [
3751
3754
  s && /* @__PURE__ */ h(
3752
3755
  "label",
3753
3756
  {
3754
- className: xe.label,
3757
+ className: ye.label,
3755
3758
  htmlFor: s,
3756
3759
  style: {
3757
- color: k ? "var(--text-secondary)" : void 0
3760
+ color: _ ? "var(--text-secondary)" : void 0
3758
3761
  },
3759
3762
  children: [
3760
- s,
3761
- r && /* @__PURE__ */ e("span", { className: xe.requiredStar, children: "*" })
3763
+ s.includes("*") ? /* @__PURE__ */ h(G, { children: [
3764
+ s.replace(" *", "").replace("*", ""),
3765
+ /* @__PURE__ */ e("span", { className: ye.requiredStar, children: " *" })
3766
+ ] }) : s,
3767
+ r && /* @__PURE__ */ e("span", { className: ye.requiredStar, children: "*" })
3762
3768
  ]
3763
3769
  }
3764
3770
  ),
@@ -3767,32 +3773,33 @@ const Ld = (c) => {
3767
3773
  {
3768
3774
  id: s,
3769
3775
  value: n,
3770
- onChange: (f) => {
3771
- const I = _(f.target.value);
3772
- u(I.length), t(I);
3776
+ onChange: (I) => {
3777
+ const l = f(I.target.value);
3778
+ g(l.length), t(l);
3773
3779
  },
3774
3780
  placeholder: i,
3775
- className: q(xe.textarea, {
3776
- [xe.contentBorder]: g.inputs.border.active,
3777
- [xe.contentField]: g.inputs.field.active,
3778
- [xe.antistock]: k
3781
+ className: q(ye.textarea, {
3782
+ [ye.contentBorder]: x.inputs.border.active,
3783
+ [ye.contentField]: x.inputs.field.active,
3784
+ [ye.antistock]: _,
3785
+ [ye.contentError]: o
3779
3786
  }),
3780
3787
  maxLength: a
3781
3788
  }
3782
3789
  ),
3783
- a && /* @__PURE__ */ h("div", { className: xe.length, children: [
3784
- o,
3790
+ a && /* @__PURE__ */ h("div", { className: ye.length, children: [
3791
+ u,
3785
3792
  "/",
3786
3793
  a
3787
3794
  ] })
3788
3795
  ] });
3789
3796
  };
3790
3797
  var Zt = /* @__PURE__ */ ((c) => (c.ONE_TIME = "One-Time", c.RECURRING = "Subscribe & Save", c))(Zt || {});
3791
- const Yo = (c) => {
3798
+ const Qo = (c) => {
3792
3799
  var A, O;
3793
3800
  const { product: t, setIsOpen: s, isCartEnabled: n = !0 } = c, { variants: a } = t, [i, d] = b.useState(a[0]), [r, o] = b.useState(
3794
3801
  i.chargeTypes ? i.chargeTypes[0] : "ONE_TIME"
3795
- ), { notifications: u, setNotifications: g } = He(), k = mt(), [_, f] = b.useState(1), { cart: I, reset: l, addProductToCart: m } = Fe(), [p, y] = b.useState(!1);
3802
+ ), { notifications: u, setNotifications: g } = Ve(), x = mt(), [_, f] = b.useState(1), { cart: I, reset: l, addProductToCart: m } = Fe(), [p, y] = b.useState(!1);
3796
3803
  b.useEffect(() => {
3797
3804
  y(!0);
3798
3805
  const v = setTimeout(() => y(!1), 600);
@@ -3826,22 +3833,22 @@ const Yo = (c) => {
3826
3833
  }
3827
3834
  s == null || s(!1);
3828
3835
  }
3829
- function S() {
3830
- l(), w(), k("/checkout");
3836
+ function N() {
3837
+ l(), w(), x("/checkout");
3831
3838
  }
3832
3839
  function $(v) {
3833
3840
  if (v >= 864e5) {
3834
- const C = Math.floor(v / 864e5);
3835
- return `${C} ${C === 1 ? "day" : "days"}`;
3841
+ const k = Math.floor(v / 864e5);
3842
+ return `${k} ${k === 1 ? "day" : "days"}`;
3836
3843
  } else if (v >= 36e5) {
3837
- const C = Math.floor(v / 36e5);
3838
- return `${C} ${C === 1 ? "hour" : "hours"}`;
3844
+ const k = Math.floor(v / 36e5);
3845
+ return `${k} ${k === 1 ? "hour" : "hours"}`;
3839
3846
  } else if (v >= 6e4) {
3840
- const C = Math.floor(v / 6e4);
3841
- return `${C} ${C === 1 ? "minute" : "minutes"}`;
3847
+ const k = Math.floor(v / 6e4);
3848
+ return `${k} ${k === 1 ? "minute" : "minutes"}`;
3842
3849
  } else {
3843
- const C = Math.floor(v / 1e3);
3844
- return `${C} ${C === 1 ? "second" : "seconds"}`;
3850
+ const k = Math.floor(v / 1e3);
3851
+ return `${k} ${k === 1 ? "second" : "seconds"}`;
3845
3852
  }
3846
3853
  }
3847
3854
  return b.useEffect(() => {
@@ -3929,7 +3936,7 @@ const Yo = (c) => {
3929
3936
  },
3930
3937
  className: H.button,
3931
3938
  disabled: i.quantity.available && i.quantity.restrictions && _ <= i.quantity.restrictions.min || i.quantity.available === 0,
3932
- children: /* @__PURE__ */ e(x, { name: "Minus" })
3939
+ children: /* @__PURE__ */ e(C, { name: "Minus" })
3933
3940
  }
3934
3941
  ),
3935
3942
  /* @__PURE__ */ e(
@@ -3955,7 +3962,7 @@ const Yo = (c) => {
3955
3962
  },
3956
3963
  className: H.button,
3957
3964
  disabled: !!(i.quantity.available && i.quantity.restrictions && _ >= i.quantity.restrictions.max || i.quantity.available === 0 || i.quantity.available && _ >= i.quantity.available),
3958
- children: /* @__PURE__ */ e(x, { name: "Plus" })
3965
+ children: /* @__PURE__ */ e(C, { name: "Plus" })
3959
3966
  }
3960
3967
  )
3961
3968
  ]
@@ -3966,7 +3973,7 @@ const Yo = (c) => {
3966
3973
  /* @__PURE__ */ e("span", { id: "md", children: "Delivery" }),
3967
3974
  /* @__PURE__ */ h("div", { className: H.infoRight, children: [
3968
3975
  /* @__PURE__ */ e(
3969
- x,
3976
+ C,
3970
3977
  {
3971
3978
  name: "Lightning",
3972
3979
  fill: "var(--text-action)",
@@ -4060,7 +4067,7 @@ const Yo = (c) => {
4060
4067
  K,
4061
4068
  {
4062
4069
  type: "Primary",
4063
- onClick: () => S(),
4070
+ onClick: () => N(),
4064
4071
  disabled: i.quantity && i.quantity.available === 0 || _ === 0,
4065
4072
  children: r === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
4066
4073
  }
@@ -4078,49 +4085,49 @@ const Yo = (c) => {
4078
4085
  )
4079
4086
  ] })
4080
4087
  ] });
4081
- }, Ko = "_buttons_1uy6y_23", Qo = "_modal_1uy6y_32", Jo = "_closing_1uy6y_65", Zo = "_info_1uy6y_114", ec = "_top_1uy6y_121", tc = "_title_1uy6y_132", nc = "_clear_1uy6y_139", sc = "_activeClear_1uy6y_146", ic = "_count_1uy6y_150", ac = "_cart_1uy6y_165", oc = "_empty_1uy6y_173", cc = "_product_1uy6y_199", rc = "_products_1uy6y_208", lc = "_image_1uy6y_216", dc = "_productInfo_1uy6y_233", uc = "_content_1uy6y_240", hc = "_name_1uy6y_246", pc = "_price_1uy6y_252", mc = "_productButtons_1uy6y_258", fc = "_productButton_1uy6y_258", gc = "_productCount_1uy6y_275", _c = "_bottom_1uy6y_292", vc = "_subtotal_1uy6y_300", yc = "_block_1uy6y_308", bc = "_shoppingCount_1uy6y_315", Ic = "_total_1uy6y_335", Nc = "_link_1uy6y_341", Sc = "_userInfo_1uy6y_348", wc = "_pagesMobileModal_1uy6y_360", kc = "_pagesMobileModalContent_1uy6y_374", Cc = "_pagesMobileModalHeader_1uy6y_380", xc = "_pagesMobileModalFooter_1uy6y_390", $c = "_pageLink_1uy6y_397", Tc = "_rightButtons_1uy6y_406", j = {
4082
- buttons: Ko,
4083
- modal: Qo,
4084
- closing: Jo,
4085
- info: Zo,
4086
- top: ec,
4087
- title: tc,
4088
- clear: nc,
4089
- activeClear: sc,
4090
- count: ic,
4091
- cart: ac,
4092
- empty: oc,
4093
- product: cc,
4094
- products: rc,
4095
- image: lc,
4096
- productInfo: dc,
4097
- content: uc,
4098
- name: hc,
4099
- price: pc,
4100
- productButtons: mc,
4101
- productButton: fc,
4102
- productCount: gc,
4103
- bottom: _c,
4104
- subtotal: vc,
4105
- block: yc,
4106
- shoppingCount: bc,
4107
- total: Ic,
4108
- link: Nc,
4109
- userInfo: Sc,
4110
- pagesMobileModal: wc,
4111
- pagesMobileModalContent: kc,
4112
- pagesMobileModalHeader: Cc,
4113
- pagesMobileModalFooter: xc,
4114
- pageLink: $c,
4115
- rightButtons: Tc,
4088
+ }, Jo = "_buttons_1uy6y_23", Zo = "_modal_1uy6y_32", ec = "_closing_1uy6y_65", tc = "_info_1uy6y_114", nc = "_top_1uy6y_121", sc = "_title_1uy6y_132", ic = "_clear_1uy6y_139", ac = "_activeClear_1uy6y_146", oc = "_count_1uy6y_150", cc = "_cart_1uy6y_165", rc = "_empty_1uy6y_173", lc = "_product_1uy6y_199", dc = "_products_1uy6y_208", uc = "_image_1uy6y_216", hc = "_productInfo_1uy6y_233", pc = "_content_1uy6y_240", mc = "_name_1uy6y_246", fc = "_price_1uy6y_252", _c = "_productButtons_1uy6y_258", gc = "_productButton_1uy6y_258", vc = "_productCount_1uy6y_275", yc = "_bottom_1uy6y_292", bc = "_subtotal_1uy6y_300", Ic = "_block_1uy6y_308", Sc = "_shoppingCount_1uy6y_315", Nc = "_total_1uy6y_335", wc = "_link_1uy6y_341", xc = "_userInfo_1uy6y_348", kc = "_pagesMobileModal_1uy6y_360", Cc = "_pagesMobileModalContent_1uy6y_374", $c = "_pagesMobileModalHeader_1uy6y_380", Tc = "_pagesMobileModalFooter_1uy6y_390", Pc = "_pageLink_1uy6y_397", Oc = "_rightButtons_1uy6y_406", U = {
4089
+ buttons: Jo,
4090
+ modal: Zo,
4091
+ closing: ec,
4092
+ info: tc,
4093
+ top: nc,
4094
+ title: sc,
4095
+ clear: ic,
4096
+ activeClear: ac,
4097
+ count: oc,
4098
+ cart: cc,
4099
+ empty: rc,
4100
+ product: lc,
4101
+ products: dc,
4102
+ image: uc,
4103
+ productInfo: hc,
4104
+ content: pc,
4105
+ name: mc,
4106
+ price: fc,
4107
+ productButtons: _c,
4108
+ productButton: gc,
4109
+ productCount: vc,
4110
+ bottom: yc,
4111
+ subtotal: bc,
4112
+ block: Ic,
4113
+ shoppingCount: Sc,
4114
+ total: Nc,
4115
+ link: wc,
4116
+ userInfo: xc,
4117
+ pagesMobileModal: kc,
4118
+ pagesMobileModalContent: Cc,
4119
+ pagesMobileModalHeader: $c,
4120
+ pagesMobileModalFooter: Tc,
4121
+ pageLink: Pc,
4122
+ rightButtons: Oc,
4116
4123
  delete: "_delete_1uy6y_413"
4117
- }, Fd = (c) => {
4124
+ }, Hd = (c) => {
4118
4125
  const { shopping: t, signUp: s, isShowUserInfo: n = !0 } = c;
4119
- return /* @__PURE__ */ e(G, { children: (t || n) && /* @__PURE__ */ h("div", { className: j.buttons, children: [
4120
- t && /* @__PURE__ */ e(Pc, {}),
4126
+ return /* @__PURE__ */ e(G, { children: (t || n) && /* @__PURE__ */ h("div", { className: U.buttons, children: [
4127
+ t && /* @__PURE__ */ e(Ac, {}),
4121
4128
  n && /* @__PURE__ */ e(en, { signUp: s })
4122
4129
  ] }) });
4123
- }, Pc = () => {
4130
+ }, Ac = () => {
4124
4131
  const [c, t] = b.useState(!1), [s, n] = b.useState([]), [a, i] = b.useState(!1), { cart: d, products: r } = Fe();
4125
4132
  b.useEffect(() => {
4126
4133
  (async () => {
@@ -4136,8 +4143,8 @@ const Yo = (c) => {
4136
4143
  n(I);
4137
4144
  })();
4138
4145
  }, [d.parts, r]);
4139
- function o(k) {
4140
- return !k || !(k != null && k.variants) ? !1 : k.chargeType === "RECURRING";
4146
+ function o(x) {
4147
+ return !x || !(x != null && x.variants) ? !1 : x.chargeType === "RECURRING";
4141
4148
  }
4142
4149
  const u = d.parts.length > 0 && s.length > 0 && !o(s[0]);
4143
4150
  function g() {
@@ -4154,27 +4161,27 @@ const Yo = (c) => {
4154
4161
  padding: 10,
4155
4162
  position: "relative"
4156
4163
  },
4157
- onClick: (k) => {
4158
- k.stopPropagation(), window.location.pathname.includes("/admin/builder") || (t(!0), i(!0));
4164
+ onClick: (x) => {
4165
+ x.stopPropagation(), window.location.pathname.includes("/admin/builder") || (t(!0), i(!0));
4159
4166
  },
4160
4167
  children: [
4161
4168
  /* @__PURE__ */ e(
4162
- x,
4169
+ C,
4163
4170
  {
4164
4171
  name: "Handbag"
4165
4172
  }
4166
4173
  ),
4167
- u && /* @__PURE__ */ e("div", { className: j.shoppingCount, children: d.parts.length })
4174
+ u && /* @__PURE__ */ e("div", { className: U.shoppingCount, children: d.parts.length })
4168
4175
  ]
4169
4176
  }
4170
4177
  ),
4171
4178
  c && /* @__PURE__ */ e(
4172
- st,
4179
+ it,
4173
4180
  {
4174
4181
  close: g,
4175
4182
  withAnimation: !1,
4176
4183
  children: /* @__PURE__ */ e(
4177
- Oc,
4184
+ Bc,
4178
4185
  {
4179
4186
  activeProducts: s,
4180
4187
  isCartNotEmpty: u,
@@ -4185,10 +4192,10 @@ const Yo = (c) => {
4185
4192
  }
4186
4193
  )
4187
4194
  ] });
4188
- }, Oc = (c) => {
4195
+ }, Bc = (c) => {
4189
4196
  var l, m;
4190
4197
  const { activeProducts: t, isCartNotEmpty: s, isOpen: n, close: a } = c, { cart: i, reset: d, getTotalAndDiscount: r, updateQuantityOfProduct: o, removeProduct: u } = Fe(), g = mt();
4191
- function k(p, y) {
4198
+ function x(p, y) {
4192
4199
  g(p, { replace: y });
4193
4200
  }
4194
4201
  function _(p) {
@@ -4218,17 +4225,17 @@ const Yo = (c) => {
4218
4225
  return /* @__PURE__ */ h(
4219
4226
  "div",
4220
4227
  {
4221
- className: q(j.modal, {
4222
- [j.closing]: !n
4228
+ className: q(U.modal, {
4229
+ [U.closing]: !n
4223
4230
  }),
4224
4231
  onClick: (p) => p.stopPropagation(),
4225
4232
  children: [
4226
- /* @__PURE__ */ h("div", { className: j.top, children: [
4227
- /* @__PURE__ */ h("div", { className: j.info, children: [
4233
+ /* @__PURE__ */ h("div", { className: U.top, children: [
4234
+ /* @__PURE__ */ h("div", { className: U.info, children: [
4228
4235
  /* @__PURE__ */ e(
4229
4236
  "span",
4230
4237
  {
4231
- className: j.title,
4238
+ className: U.title,
4232
4239
  id: "h4",
4233
4240
  children: "Cart"
4234
4241
  }
@@ -4236,18 +4243,18 @@ const Yo = (c) => {
4236
4243
  s && /* @__PURE__ */ e(
4237
4244
  "div",
4238
4245
  {
4239
- className: j.count,
4246
+ className: U.count,
4240
4247
  id: "md",
4241
4248
  children: i.parts.length
4242
4249
  }
4243
4250
  )
4244
4251
  ] }),
4245
- /* @__PURE__ */ h("div", { className: j.rightButtons, children: [
4252
+ /* @__PURE__ */ h("div", { className: U.rightButtons, children: [
4246
4253
  s && /* @__PURE__ */ e(
4247
4254
  "button",
4248
4255
  {
4249
- className: q(j.clear, {
4250
- [j.activeClear]: s
4256
+ className: q(U.clear, {
4257
+ [U.activeClear]: s
4251
4258
  }),
4252
4259
  disabled: !s,
4253
4260
  onClick: d,
@@ -4256,7 +4263,7 @@ const Yo = (c) => {
4256
4263
  }
4257
4264
  ),
4258
4265
  /* @__PURE__ */ e(
4259
- x,
4266
+ C,
4260
4267
  {
4261
4268
  name: "X",
4262
4269
  onClick: a,
@@ -4268,15 +4275,15 @@ const Yo = (c) => {
4268
4275
  )
4269
4276
  ] })
4270
4277
  ] }),
4271
- s ? /* @__PURE__ */ h("div", { className: j.cart, children: [
4272
- /* @__PURE__ */ e("div", { className: j.products, children: t.map((p) => {
4278
+ s ? /* @__PURE__ */ h("div", { className: U.cart, children: [
4279
+ /* @__PURE__ */ e("div", { className: U.products, children: t.map((p) => {
4273
4280
  var y, w;
4274
4281
  return /* @__PURE__ */ h(
4275
4282
  "div",
4276
4283
  {
4277
- className: j.product,
4284
+ className: U.product,
4278
4285
  children: [
4279
- /* @__PURE__ */ h("div", { className: j.productInfo, children: [
4286
+ /* @__PURE__ */ h("div", { className: U.productInfo, children: [
4280
4287
  p.images.length > 0 ? /* @__PURE__ */ e(
4281
4288
  "img",
4282
4289
  {
@@ -4284,40 +4291,40 @@ const Yo = (c) => {
4284
4291
  alt: "image",
4285
4292
  width: "100%",
4286
4293
  height: "100%",
4287
- className: j.image
4294
+ className: U.image
4288
4295
  }
4289
- ) : /* @__PURE__ */ e("div", { className: j.image, children: /* @__PURE__ */ e(
4290
- x,
4296
+ ) : /* @__PURE__ */ e("div", { className: U.image, children: /* @__PURE__ */ e(
4297
+ C,
4291
4298
  {
4292
4299
  name: "Image",
4293
4300
  fill: "var(--text-secondary)"
4294
4301
  }
4295
4302
  ) }),
4296
- /* @__PURE__ */ h("div", { className: j.content, children: [
4303
+ /* @__PURE__ */ h("div", { className: U.content, children: [
4297
4304
  /* @__PURE__ */ e(
4298
4305
  "div",
4299
4306
  {
4300
- className: j.name,
4307
+ className: U.name,
4301
4308
  dangerouslySetInnerHTML: {
4302
4309
  __html: Oe(
4303
4310
  ((y = p.variants.find(
4304
- (S) => S.id === p.activeVariantId
4311
+ (N) => N.id === p.activeVariantId
4305
4312
  )) == null ? void 0 : y.name) || p.name
4306
4313
  )
4307
4314
  }
4308
4315
  }
4309
4316
  ),
4310
- /* @__PURE__ */ e("div", { className: j.price, children: me({
4317
+ /* @__PURE__ */ e("div", { className: U.price, children: me({
4311
4318
  amount: p.variants.find(
4312
- (S) => S.id === p.activeVariantId
4319
+ (N) => N.id === p.activeVariantId
4313
4320
  ).price.amount * ((p == null ? void 0 : p.quantity) || 1),
4314
4321
  currency: p.variants.find(
4315
- (S) => S.id === p.activeVariantId
4322
+ (N) => N.id === p.activeVariantId
4316
4323
  ).price.currency
4317
4324
  }) })
4318
4325
  ] })
4319
4326
  ] }),
4320
- /* @__PURE__ */ h("div", { className: j.productButtons, children: [
4327
+ /* @__PURE__ */ h("div", { className: U.productButtons, children: [
4321
4328
  /* @__PURE__ */ e(
4322
4329
  K,
4323
4330
  {
@@ -4325,10 +4332,10 @@ const Yo = (c) => {
4325
4332
  onClick: () => {
4326
4333
  p.quantity !== 1 && f(p);
4327
4334
  },
4328
- className: j.productButton,
4335
+ className: U.productButton,
4329
4336
  disabled: p.quantity === 1,
4330
4337
  children: /* @__PURE__ */ e(
4331
- x,
4338
+ C,
4332
4339
  {
4333
4340
  name: "Minus",
4334
4341
  fill: "#757575",
@@ -4341,12 +4348,12 @@ const Yo = (c) => {
4341
4348
  /* @__PURE__ */ e(
4342
4349
  "input",
4343
4350
  {
4344
- className: j.productCount,
4351
+ className: U.productCount,
4345
4352
  type: "number",
4346
4353
  value: ((w = p.quantity) == null ? void 0 : w.toString()) || "",
4347
- onChange: (S) => {
4354
+ onChange: (N) => {
4348
4355
  const $ = Math.min(
4349
- Number(S.target.value),
4356
+ Number(N.target.value),
4350
4357
  p.variants.find((A) => A.id === p.activeVariantId).quantity.available || 1 / 0
4351
4358
  );
4352
4359
  $ < 1 || o({
@@ -4357,7 +4364,7 @@ const Yo = (c) => {
4357
4364
  });
4358
4365
  },
4359
4366
  min: 1,
4360
- max: p.variants.find((S) => S.id === p.activeVariantId).quantity.available || 1 / 0
4367
+ max: p.variants.find((N) => N.id === p.activeVariantId).quantity.available || 1 / 0
4361
4368
  }
4362
4369
  ),
4363
4370
  /* @__PURE__ */ e(
@@ -4365,10 +4372,10 @@ const Yo = (c) => {
4365
4372
  {
4366
4373
  type: "Secondary",
4367
4374
  onClick: () => _(p),
4368
- className: j.productButton,
4369
- disabled: p.quantity === p.variants.find((S) => S.id === p.activeVariantId).quantity.available,
4375
+ className: U.productButton,
4376
+ disabled: p.quantity === p.variants.find((N) => N.id === p.activeVariantId).quantity.available,
4370
4377
  children: /* @__PURE__ */ e(
4371
- x,
4378
+ C,
4372
4379
  {
4373
4380
  name: "Plus",
4374
4381
  fill: "#757575",
@@ -4378,8 +4385,8 @@ const Yo = (c) => {
4378
4385
  )
4379
4386
  }
4380
4387
  ),
4381
- /* @__PURE__ */ e("div", { className: j.delete, children: /* @__PURE__ */ e(
4382
- x,
4388
+ /* @__PURE__ */ e("div", { className: U.delete, children: /* @__PURE__ */ e(
4389
+ C,
4383
4390
  {
4384
4391
  name: "Trash",
4385
4392
  fill: "var(--text-action)",
@@ -4395,12 +4402,12 @@ const Yo = (c) => {
4395
4402
  p.id
4396
4403
  );
4397
4404
  }) }),
4398
- /* @__PURE__ */ h("div", { className: j.bottom, children: [
4399
- /* @__PURE__ */ h("div", { className: j.subtotal, children: [
4400
- /* @__PURE__ */ h("div", { className: j.block, children: [
4405
+ /* @__PURE__ */ h("div", { className: U.bottom, children: [
4406
+ /* @__PURE__ */ h("div", { className: U.subtotal, children: [
4407
+ /* @__PURE__ */ h("div", { className: U.block, children: [
4401
4408
  /* @__PURE__ */ e("span", { children: "Subtotal" }),
4402
4409
  /* @__PURE__ */ e(
4403
- x,
4410
+ C,
4404
4411
  {
4405
4412
  name: "Info",
4406
4413
  width: 20,
@@ -4409,20 +4416,20 @@ const Yo = (c) => {
4409
4416
  }
4410
4417
  )
4411
4418
  ] }),
4412
- /* @__PURE__ */ e("div", { className: j.total, children: me({
4419
+ /* @__PURE__ */ e("div", { className: U.total, children: me({
4413
4420
  amount: r().total,
4414
4421
  currency: i.parts.length > 0 && ((m = (l = t.find((p) => p.id === i.parts[0].productId)) == null ? void 0 : l.variants.find((p) => p.id === i.parts[0].productVariantId)) == null ? void 0 : m.price.currency) || "USD"
4415
4422
  }) })
4416
4423
  ] }),
4417
- /* @__PURE__ */ e(K, { onClick: () => k("/checkout", !1), children: "Checkout" })
4424
+ /* @__PURE__ */ e(K, { onClick: () => x("/checkout", !1), children: "Checkout" })
4418
4425
  ] })
4419
- ] }) : /* @__PURE__ */ e(Ac, {})
4426
+ ] }) : /* @__PURE__ */ e(Mc, {})
4420
4427
  ]
4421
4428
  }
4422
4429
  );
4423
- }, Ac = () => /* @__PURE__ */ h("div", { className: j.empty, children: [
4430
+ }, Mc = () => /* @__PURE__ */ h("div", { className: U.empty, children: [
4424
4431
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
4425
- x,
4432
+ C,
4426
4433
  {
4427
4434
  name: "Handbag",
4428
4435
  fill: "var(--text-secondary)"
@@ -4436,7 +4443,7 @@ const Yo = (c) => {
4436
4443
  "a",
4437
4444
  {
4438
4445
  href: "/products",
4439
- className: j.link,
4446
+ className: U.link,
4440
4447
  id: "md",
4441
4448
  children: "view products"
4442
4449
  }
@@ -4458,7 +4465,7 @@ const Yo = (c) => {
4458
4465
  K,
4459
4466
  {
4460
4467
  type: "Secondary",
4461
- className: j.userInfo,
4468
+ className: U.userInfo,
4462
4469
  onClick: () => {
4463
4470
  r(n ? "/account" : "/customer-dash"), t == null || t();
4464
4471
  },
@@ -4493,13 +4500,13 @@ const Yo = (c) => {
4493
4500
  }
4494
4501
  )
4495
4502
  ] });
4496
- }, Bc = ({
4503
+ }, Ec = ({
4497
4504
  logo: c,
4498
4505
  setIsOpen: t,
4499
4506
  signUp: s,
4500
4507
  pages: n
4501
4508
  }) => {
4502
- const { setIsOpen: a } = be(), i = () => {
4509
+ const { setIsOpen: a } = Ie(), i = () => {
4503
4510
  a(!1), setTimeout(() => {
4504
4511
  t(!1), a(!0);
4505
4512
  }, 300);
@@ -4507,24 +4514,24 @@ const Yo = (c) => {
4507
4514
  return /* @__PURE__ */ h(
4508
4515
  "div",
4509
4516
  {
4510
- className: j.pagesMobileModal,
4517
+ className: U.pagesMobileModal,
4511
4518
  onClick: (d) => d.stopPropagation(),
4512
4519
  children: [
4513
- /* @__PURE__ */ h("div", { className: j.pagesMobileModalHeader, children: [
4520
+ /* @__PURE__ */ h("div", { className: U.pagesMobileModalHeader, children: [
4514
4521
  /* @__PURE__ */ e("div", { children: c }),
4515
4522
  /* @__PURE__ */ e(
4516
4523
  K,
4517
4524
  {
4518
4525
  type: "Secondary",
4519
4526
  onClick: i,
4520
- children: /* @__PURE__ */ e(x, { name: "X" })
4527
+ children: /* @__PURE__ */ e(C, { name: "X" })
4521
4528
  }
4522
4529
  )
4523
4530
  ] }),
4524
- /* @__PURE__ */ e("div", { className: j.pagesMobileModalContent, children: n.length > 0 && n.map((d) => /* @__PURE__ */ e(
4531
+ /* @__PURE__ */ e("div", { className: U.pagesMobileModalContent, children: n.length > 0 && n.map((d) => /* @__PURE__ */ e(
4525
4532
  "div",
4526
4533
  {
4527
- className: j.pageLink,
4534
+ className: U.pageLink,
4528
4535
  onClick: i,
4529
4536
  children: /* @__PURE__ */ e(
4530
4537
  tn,
@@ -4536,7 +4543,7 @@ const Yo = (c) => {
4536
4543
  )
4537
4544
  }
4538
4545
  )) }),
4539
- /* @__PURE__ */ e("div", { className: j.pagesMobileModalFooter, children: /* @__PURE__ */ e(
4546
+ /* @__PURE__ */ e("div", { className: U.pagesMobileModalFooter, children: /* @__PURE__ */ e(
4540
4547
  en,
4541
4548
  {
4542
4549
  signUp: s,
@@ -4546,17 +4553,17 @@ const Yo = (c) => {
4546
4553
  ]
4547
4554
  }
4548
4555
  );
4549
- }, Ud = ({ logo: c, signUp: t, pages: s }) => {
4556
+ }, Vd = ({ logo: c, signUp: t, pages: s }) => {
4550
4557
  const [n, a] = b.useState(!1);
4551
4558
  return /* @__PURE__ */ h(G, { children: [
4552
- /* @__PURE__ */ e(Mc, { setIsOpenModal: a }),
4559
+ /* @__PURE__ */ e(qc, { setIsOpenModal: a }),
4553
4560
  n && /* @__PURE__ */ e(
4554
- st,
4561
+ it,
4555
4562
  {
4556
4563
  close: () => a(!1),
4557
4564
  hasPadding: !1,
4558
4565
  children: /* @__PURE__ */ e(
4559
- Bc,
4566
+ Ec,
4560
4567
  {
4561
4568
  logo: c,
4562
4569
  setIsOpen: a,
@@ -4567,7 +4574,7 @@ const Yo = (c) => {
4567
4574
  }
4568
4575
  )
4569
4576
  ] });
4570
- }, Mc = (c) => {
4577
+ }, qc = (c) => {
4571
4578
  const { setIsOpenModal: t } = c;
4572
4579
  return /* @__PURE__ */ e(
4573
4580
  K,
@@ -4579,28 +4586,28 @@ const Yo = (c) => {
4579
4586
  onClick: (s) => {
4580
4587
  s.stopPropagation(), window.location.pathname.includes("/admin/builder") || t(!0);
4581
4588
  },
4582
- children: /* @__PURE__ */ e(x, { name: "List" })
4589
+ children: /* @__PURE__ */ e(C, { name: "List" })
4583
4590
  }
4584
4591
  );
4585
- }, Ec = "_share_onabp_1", qc = "_modal_onabp_8", Dc = "_header_onabp_20", Rc = "_title_onabp_46", Lc = "_copyWrapper_onabp_53", zc = "_copyText_onabp_62", Fc = "_copyTextMobile_onabp_75", Uc = "_copyTextMiniMobile_onabp_94", Te = {
4586
- share: Ec,
4587
- modal: qc,
4588
- header: Dc,
4589
- title: Rc,
4590
- copyWrapper: Lc,
4591
- copyText: zc,
4592
- copyTextMobile: Fc,
4593
- copyTextMiniMobile: Uc
4594
- }, jc = "_modal_1iz94_1", Hc = "_padding_1iz94_17", Vc = "_content_1iz94_21", Wc = "_close_1iz94_42", at = {
4595
- modal: jc,
4596
- padding: Hc,
4597
- content: Vc,
4598
- close: Wc
4599
- }, st = (c) => {
4600
- const { close: t, children: s, withAnimation: n = !0, hasPadding: a = !0 } = c, { isOpen: i, setIsOpen: d } = be(), { themeSettings: r } = pt(), { isAntistock: o } = pn(), u = (k) => {
4601
- const _ = k.replace("#", "");
4592
+ }, Dc = "_share_onabp_1", Rc = "_modal_onabp_8", Lc = "_header_onabp_20", zc = "_title_onabp_46", Fc = "_copyWrapper_onabp_53", jc = "_copyText_onabp_62", Uc = "_copyTextMobile_onabp_75", Hc = "_copyTextMiniMobile_onabp_94", Te = {
4593
+ share: Dc,
4594
+ modal: Rc,
4595
+ header: Lc,
4596
+ title: zc,
4597
+ copyWrapper: Fc,
4598
+ copyText: jc,
4599
+ copyTextMobile: Uc,
4600
+ copyTextMiniMobile: Hc
4601
+ }, Vc = "_modal_1iz94_1", Wc = "_padding_1iz94_17", Gc = "_content_1iz94_21", Xc = "_close_1iz94_42", ot = {
4602
+ modal: Vc,
4603
+ padding: Wc,
4604
+ content: Gc,
4605
+ close: Xc
4606
+ }, it = (c) => {
4607
+ const { close: t, children: s, withAnimation: n = !0, hasPadding: a = !0 } = c, { isOpen: i, setIsOpen: d } = Ie(), { themeSettings: r } = pt(), { isAntistock: o } = pn(), u = (x) => {
4608
+ const _ = x.replace("#", "");
4602
4609
  if (!/^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(_))
4603
- return console.warn("Invalid hex color:", k), k;
4610
+ return console.warn("Invalid hex color:", x), x;
4604
4611
  let f = _;
4605
4612
  return _.length === 3 && (f = _.split("").map((I) => I + I).join("")), `#${f}e6`;
4606
4613
  }, g = () => {
@@ -4609,25 +4616,25 @@ const Yo = (c) => {
4609
4616
  }, 300) : (t(!1), d(!0));
4610
4617
  };
4611
4618
  return b.useEffect(() => {
4612
- const k = (_) => {
4619
+ const x = (_) => {
4613
4620
  _.key === "Escape" && g();
4614
4621
  };
4615
- return document.addEventListener("keydown", k), () => {
4616
- document.removeEventListener("keydown", k);
4622
+ return document.addEventListener("keydown", x), () => {
4623
+ document.removeEventListener("keydown", x);
4617
4624
  };
4618
- }, []), gn.createPortal(
4625
+ }, []), _n.createPortal(
4619
4626
  /* @__PURE__ */ e(
4620
4627
  "div",
4621
4628
  {
4622
- className: q(at.modal, { [at.padding]: a }),
4629
+ className: q(ot.modal, { [ot.padding]: a }),
4623
4630
  style: { backgroundColor: o ? u(r.colors.surface.primary) : void 0 },
4624
4631
  onClick: g,
4625
- children: n ? /* @__PURE__ */ e("div", { className: q(at.content, { [at.close]: !i }), children: s }) : /* @__PURE__ */ e(G, { children: s })
4632
+ children: n ? /* @__PURE__ */ e("div", { className: q(ot.content, { [ot.close]: !i }), children: s }) : /* @__PURE__ */ e(G, { children: s })
4626
4633
  }
4627
4634
  ),
4628
4635
  document.body
4629
4636
  );
4630
- }, jd = ({ title: c = "Copy Product Link" }) => {
4637
+ }, Wd = ({ title: c = "Copy Product Link" }) => {
4631
4638
  const { isOpenModal: t, setIsOpenModal: s } = Wt();
4632
4639
  function n() {
4633
4640
  s(!0);
@@ -4642,7 +4649,7 @@ const Yo = (c) => {
4642
4649
  },
4643
4650
  type: "Secondary",
4644
4651
  children: /* @__PURE__ */ e(
4645
- x,
4652
+ C,
4646
4653
  {
4647
4654
  name: "Share",
4648
4655
  fill: "#757575",
@@ -4651,10 +4658,10 @@ const Yo = (c) => {
4651
4658
  )
4652
4659
  }
4653
4660
  ),
4654
- t && /* @__PURE__ */ e(st, { close: s, children: /* @__PURE__ */ e(Gc, { title: c }) })
4661
+ t && /* @__PURE__ */ e(it, { close: s, children: /* @__PURE__ */ e(Yc, { title: c }) })
4655
4662
  ] });
4656
- }, Gc = ({ title: c = "Copy Product Link" }) => {
4657
- const { setIsOpenModal: t } = Wt(), { notifications: s, setNotifications: n } = He(), { setIsOpen: a } = be(), i = window.location.href;
4663
+ }, Yc = ({ title: c = "Copy Product Link" }) => {
4664
+ const { setIsOpenModal: t } = Wt(), { notifications: s, setNotifications: n } = Ve(), { setIsOpen: a } = Ie(), i = window.location.href;
4658
4665
  function d() {
4659
4666
  navigator.clipboard.writeText(i), n([
4660
4667
  ...s,
@@ -4689,7 +4696,7 @@ const Yo = (c) => {
4689
4696
  }
4690
4697
  ),
4691
4698
  /* @__PURE__ */ e(
4692
- x,
4699
+ C,
4693
4700
  {
4694
4701
  name: "X",
4695
4702
  fill: "#757575",
@@ -4742,22 +4749,22 @@ const Yo = (c) => {
4742
4749
  onClick: d,
4743
4750
  children: s.find(
4744
4751
  (u) => u.message === "Link copied to clipboard"
4745
- ) ? /* @__PURE__ */ e(x, { name: "Check" }) : /* @__PURE__ */ e(x, { name: "Copy" })
4752
+ ) ? /* @__PURE__ */ e(C, { name: "Check" }) : /* @__PURE__ */ e(C, { name: "Copy" })
4746
4753
  }
4747
4754
  )
4748
4755
  ] })
4749
4756
  ]
4750
4757
  }
4751
4758
  );
4752
- }, Xc = "_accordion_153d4_1", Yc = "_header_153d4_12", Kc = "_icon_153d4_21", Qc = "_open_153d4_24", Jc = "_content_153d4_28", Zc = "_contentOpen_153d4_36", er = "_contentText_153d4_40", Me = {
4753
- accordion: Xc,
4754
- header: Yc,
4755
- icon: Kc,
4756
- open: Qc,
4757
- content: Jc,
4758
- contentOpen: Zc,
4759
- contentText: er
4760
- }, Hd = ({ title: c, content: t, defaultOpen: s = !1 }) => {
4759
+ }, Kc = "_accordion_153d4_1", Qc = "_header_153d4_12", Jc = "_icon_153d4_21", Zc = "_open_153d4_24", er = "_content_153d4_28", tr = "_contentOpen_153d4_36", nr = "_contentText_153d4_40", Me = {
4760
+ accordion: Kc,
4761
+ header: Qc,
4762
+ icon: Jc,
4763
+ open: Zc,
4764
+ content: er,
4765
+ contentOpen: tr,
4766
+ contentText: nr
4767
+ }, Gd = ({ title: c, content: t, defaultOpen: s = !1 }) => {
4761
4768
  const [n, a] = b.useState(s), [i, d] = b.useState(0), r = b.useRef(null), o = () => {
4762
4769
  a(!n);
4763
4770
  };
@@ -4771,7 +4778,7 @@ const Yo = (c) => {
4771
4778
  onClick: o,
4772
4779
  children: [
4773
4780
  /* @__PURE__ */ e("h5", { id: "h5", children: c }),
4774
- /* @__PURE__ */ e("div", { className: q(Me.icon, { [Me.open]: n }), children: /* @__PURE__ */ e(x, { name: "CaretDown" }) })
4781
+ /* @__PURE__ */ e("div", { className: q(Me.icon, { [Me.open]: n }), children: /* @__PURE__ */ e(C, { name: "CaretDown" }) })
4775
4782
  ]
4776
4783
  }
4777
4784
  ),
@@ -4812,15 +4819,15 @@ const Yo = (c) => {
4812
4819
  children: c
4813
4820
  }
4814
4821
  );
4815
- }, tr = "_buttonsBlock_1x6xf_1", nr = "_cartDisabled_1x6xf_25", Mt = {
4816
- buttonsBlock: tr,
4817
- cartDisabled: nr
4818
- }, Vd = (c) => {
4819
- var g, k;
4820
- const { setIsOpen: t, setModalType: s, productId: n, isCartEnabled: a = !0 } = c, { cart: i } = Fe(), { pageContext: d } = We(), r = (g = d == null ? void 0 : d.listings) == null ? void 0 : g.find((_) => _.id === n);
4822
+ }, sr = "_buttonsBlock_1x6xf_1", ir = "_cartDisabled_1x6xf_25", Mt = {
4823
+ buttonsBlock: sr,
4824
+ cartDisabled: ir
4825
+ }, Xd = (c) => {
4826
+ var g, x;
4827
+ const { setIsOpen: t, setModalType: s, productId: n, isCartEnabled: a = !0 } = c, { cart: i } = Fe(), { pageContext: d } = Ge(), r = (g = d == null ? void 0 : d.listings) == null ? void 0 : g.find((_) => _.id === n);
4821
4828
  if (!r)
4822
4829
  return null;
4823
- const o = (k = d == null ? void 0 : d.products) == null ? void 0 : k.find(
4830
+ const o = (x = d == null ? void 0 : d.products) == null ? void 0 : x.find(
4824
4831
  (_) => _.uniquePath === r.productData.uniquePath
4825
4832
  );
4826
4833
  if (!o)
@@ -4863,11 +4870,11 @@ const Yo = (c) => {
4863
4870
  ]
4864
4871
  }
4865
4872
  );
4866
- }, sr = "_wrapper_27wzz_1", ir = "_logo_27wzz_8", ar = "_info_27wzz_12", bt = {
4867
- wrapper: sr,
4868
- logo: ir,
4869
- info: ar
4870
- }, Wd = ({ date: c }) => {
4873
+ }, ar = "_wrapper_27wzz_1", or = "_logo_27wzz_8", cr = "_info_27wzz_12", bt = {
4874
+ wrapper: ar,
4875
+ logo: or,
4876
+ info: cr
4877
+ }, Yd = ({ date: c }) => {
4871
4878
  const { general: t } = ze();
4872
4879
  if (!t) return /* @__PURE__ */ e(G, {});
4873
4880
  function s(n) {
@@ -4890,7 +4897,7 @@ const Yo = (c) => {
4890
4897
  style: { objectFit: "contain", width: "48px", height: "48px" }
4891
4898
  }
4892
4899
  ) : /* @__PURE__ */ e(
4893
- x,
4900
+ C,
4894
4901
  {
4895
4902
  name: "Image",
4896
4903
  width: 48,
@@ -4902,21 +4909,21 @@ const Yo = (c) => {
4902
4909
  /* @__PURE__ */ e("p", { id: "p", children: s(c) })
4903
4910
  ] })
4904
4911
  ] });
4905
- }, or = "_variants_18tbu_82", cr = "_variant_18tbu_82", rr = "_stock_18tbu_100", lr = "_variantInfo_18tbu_108", dr = "_title_18tbu_202", ur = "_modal_18tbu_208", hr = "_header_18tbu_228", pr = "_productOptions_18tbu_236", mr = "_loading_18tbu_244", ve = {
4906
- variants: or,
4907
- variant: cr,
4908
- stock: rr,
4909
- variantInfo: lr,
4910
- title: dr,
4911
- modal: ur,
4912
- header: hr,
4913
- productOptions: pr,
4914
- loading: mr
4915
- }, Gd = (c) => {
4912
+ }, rr = "_variants_18tbu_82", lr = "_variant_18tbu_82", dr = "_stock_18tbu_100", ur = "_variantInfo_18tbu_108", hr = "_title_18tbu_202", pr = "_modal_18tbu_208", mr = "_header_18tbu_228", fr = "_productOptions_18tbu_236", _r = "_loading_18tbu_244", ve = {
4913
+ variants: rr,
4914
+ variant: lr,
4915
+ stock: dr,
4916
+ variantInfo: ur,
4917
+ title: hr,
4918
+ modal: pr,
4919
+ header: mr,
4920
+ productOptions: fr,
4921
+ loading: _r
4922
+ }, Kd = (c) => {
4916
4923
  var _;
4917
- const { pageContext: t } = We(), s = (_ = t == null ? void 0 : t.listings) == null ? void 0 : _.find((f) => f.id === c.productId), [n, a] = b.useState(!0), [i, d] = b.useState(null), r = (i == null ? void 0 : i.variants[0]) || null, [o, u] = b.useState(
4924
+ const { pageContext: t } = Ge(), s = (_ = t == null ? void 0 : t.listings) == null ? void 0 : _.find((f) => f.id === c.productId), [n, a] = b.useState(!0), [i, d] = b.useState(null), r = (i == null ? void 0 : i.variants[0]) || null, [o, u] = b.useState(
4918
4925
  "ONE_TIME"
4919
- ), { addProducts: g } = Fe(), { setIsOpen: k } = be();
4926
+ ), { addProducts: g } = Fe(), { setIsOpen: x } = Ie();
4920
4927
  return b.useEffect(() => {
4921
4928
  (async () => {
4922
4929
  a(!0);
@@ -4928,8 +4935,8 @@ const Yo = (c) => {
4928
4935
  g(I == null ? void 0 : I.data.products), d(I == null ? void 0 : I.data.products[0]), a(!1);
4929
4936
  })();
4930
4937
  }, []), b.useEffect(() => {
4931
- k(!0);
4932
- }, []), /* @__PURE__ */ e(st, { close: c.setIsOpen, children: /* @__PURE__ */ h(
4938
+ x(!0);
4939
+ }, []), /* @__PURE__ */ e(it, { close: c.setIsOpen, children: /* @__PURE__ */ h(
4933
4940
  "div",
4934
4941
  {
4935
4942
  className: ve.modal,
@@ -4937,7 +4944,7 @@ const Yo = (c) => {
4937
4944
  children: [
4938
4945
  n && /* @__PURE__ */ e("div", { className: ve.loading, children: /* @__PURE__ */ e(Jt, {}) }),
4939
4946
  c.type === "Add To Cart" && c.isCartEnabled && i && r && !n && /* @__PURE__ */ e(
4940
- fr,
4947
+ gr,
4941
4948
  {
4942
4949
  variants: i.variants,
4943
4950
  activeVariant: r,
@@ -4948,7 +4955,7 @@ const Yo = (c) => {
4948
4955
  }
4949
4956
  ),
4950
4957
  c.type === "Buy Now" && i && !n && /* @__PURE__ */ e(
4951
- gr,
4958
+ vr,
4952
4959
  {
4953
4960
  product: i,
4954
4961
  setIsOpen: c.setIsOpen,
@@ -4958,8 +4965,8 @@ const Yo = (c) => {
4958
4965
  ]
4959
4966
  }
4960
4967
  ) });
4961
- }, fr = (c) => {
4962
- const { variants: t, activeChargeType: s, productId: n, setIsOpen: a } = c, { cart: i, addProductToCart: d, addProducts: r, updateQuantityOfProduct: o } = Fe(), { notifications: u, setNotifications: g } = He(), { pageContext: k } = We(), { setIsOpen: _ } = be(), f = () => {
4968
+ }, gr = (c) => {
4969
+ const { variants: t, activeChargeType: s, productId: n, setIsOpen: a } = c, { cart: i, addProductToCart: d, addProducts: r, updateQuantityOfProduct: o } = Fe(), { notifications: u, setNotifications: g } = Ve(), { pageContext: x } = Ge(), { setIsOpen: _ } = Ie(), f = () => {
4963
4970
  _(!1), setTimeout(() => {
4964
4971
  a(!1);
4965
4972
  }, 300);
@@ -4983,7 +4990,7 @@ const Yo = (c) => {
4983
4990
  chargeType: s
4984
4991
  });
4985
4992
  else {
4986
- k != null && k.products && r(k.products);
4993
+ x != null && x.products && r(x.products);
4987
4994
  try {
4988
4995
  d({
4989
4996
  productId: n,
@@ -4999,12 +5006,12 @@ const Yo = (c) => {
4999
5006
  }
5000
5007
  ]);
5001
5008
  } catch (w) {
5002
- const S = w;
5009
+ const N = w;
5003
5010
  g([
5004
5011
  ...u,
5005
5012
  {
5006
5013
  id: le(),
5007
- message: `Product failed to add to cart: ${S.message}`,
5014
+ message: `Product failed to add to cart: ${N.message}`,
5008
5015
  status: "error"
5009
5016
  }
5010
5017
  ]);
@@ -5015,7 +5022,7 @@ const Yo = (c) => {
5015
5022
  /* @__PURE__ */ h("div", { className: ve.header, children: [
5016
5023
  /* @__PURE__ */ e("div", { id: "h3", children: "Choose a Variant" }),
5017
5024
  /* @__PURE__ */ e(
5018
- x,
5025
+ C,
5019
5026
  {
5020
5027
  name: "X",
5021
5028
  width: 24,
@@ -5071,8 +5078,8 @@ const Yo = (c) => {
5071
5078
  );
5072
5079
  }) })
5073
5080
  ] });
5074
- }, gr = (c) => {
5075
- const { product: t, setIsOpen: s, isCartEnabled: n } = c, { setIsOpen: a } = be(), i = () => {
5081
+ }, vr = (c) => {
5082
+ const { product: t, setIsOpen: s, isCartEnabled: n } = c, { setIsOpen: a } = Ie(), i = () => {
5076
5083
  a(!1), setTimeout(() => {
5077
5084
  s(!1);
5078
5085
  }, 300);
@@ -5090,7 +5097,7 @@ const Yo = (c) => {
5090
5097
  }
5091
5098
  ),
5092
5099
  /* @__PURE__ */ e(
5093
- x,
5100
+ C,
5094
5101
  {
5095
5102
  name: "X",
5096
5103
  width: 24,
@@ -5106,7 +5113,7 @@ const Yo = (c) => {
5106
5113
  )
5107
5114
  ] }),
5108
5115
  /* @__PURE__ */ e("div", { className: ve.productOptions, children: /* @__PURE__ */ e(
5109
- Yo,
5116
+ Qo,
5110
5117
  {
5111
5118
  product: t,
5112
5119
  setIsOpen: s,
@@ -5114,22 +5121,22 @@ const Yo = (c) => {
5114
5121
  }
5115
5122
  ) })
5116
5123
  ] });
5117
- }, _r = "_contentModal_m2tf9_1", vr = "_modalTop_m2tf9_12", yr = "_loading_m2tf9_19", br = "_modalCards_m2tf9_28", Ir = "_modalImage_m2tf9_34", Nr = "_card_m2tf9_39", Sr = "_cardInfo_m2tf9_51", wr = "_cardButtons_m2tf9_58", kr = "_title_m2tf9_64", Cr = "_blockImage_m2tf9_71", xr = "_short_m2tf9_80", $r = "_price_m2tf9_84", Tr = "_oldPrice_m2tf9_91", Pr = "_newPrice_m2tf9_100", re = {
5118
- contentModal: _r,
5119
- modalTop: vr,
5120
- loading: yr,
5121
- modalCards: br,
5122
- modalImage: Ir,
5123
- card: Nr,
5124
- cardInfo: Sr,
5125
- cardButtons: wr,
5126
- title: kr,
5127
- blockImage: Cr,
5128
- short: xr,
5129
- price: $r,
5130
- oldPrice: Tr,
5131
- newPrice: Pr
5132
- }, Xd = (c) => {
5124
+ }, yr = "_contentModal_m2tf9_1", br = "_modalTop_m2tf9_12", Ir = "_loading_m2tf9_19", Sr = "_modalCards_m2tf9_28", Nr = "_modalImage_m2tf9_34", wr = "_card_m2tf9_39", xr = "_cardInfo_m2tf9_51", kr = "_cardButtons_m2tf9_58", Cr = "_title_m2tf9_64", $r = "_blockImage_m2tf9_71", Tr = "_short_m2tf9_80", Pr = "_price_m2tf9_84", Or = "_oldPrice_m2tf9_91", Ar = "_newPrice_m2tf9_100", re = {
5125
+ contentModal: yr,
5126
+ modalTop: br,
5127
+ loading: Ir,
5128
+ modalCards: Sr,
5129
+ modalImage: Nr,
5130
+ card: wr,
5131
+ cardInfo: xr,
5132
+ cardButtons: kr,
5133
+ title: Cr,
5134
+ blockImage: $r,
5135
+ short: Tr,
5136
+ price: Pr,
5137
+ oldPrice: Or,
5138
+ newPrice: Ar
5139
+ }, Qd = (c) => {
5133
5140
  const {
5134
5141
  setIsOpen: t,
5135
5142
  pageContext: s,
@@ -5137,7 +5144,7 @@ const Yo = (c) => {
5137
5144
  setProductId: a,
5138
5145
  setIsProductModalOpen: i,
5139
5146
  setShowDropdown: d
5140
- } = c, [r, o] = b.useState(null), [u, g] = b.useState(!0), { setIsOpen: k } = be();
5147
+ } = c, [r, o] = b.useState(null), [u, g] = b.useState(!0), { setIsOpen: x } = Ie();
5141
5148
  b.useEffect(() => {
5142
5149
  var I;
5143
5150
  g(!0);
@@ -5146,14 +5153,14 @@ const Yo = (c) => {
5146
5153
  );
5147
5154
  f && o([...f]), g(!1);
5148
5155
  }, [s]), b.useEffect(() => {
5149
- k(!0);
5156
+ x(!0);
5150
5157
  }, []);
5151
5158
  const _ = () => {
5152
- k(!1), setTimeout(() => {
5159
+ x(!1), setTimeout(() => {
5153
5160
  t(!1);
5154
5161
  }, 300);
5155
5162
  };
5156
- return /* @__PURE__ */ e(st, { close: () => t(!1), children: /* @__PURE__ */ h(
5163
+ return /* @__PURE__ */ e(it, { close: () => t(!1), children: /* @__PURE__ */ h(
5157
5164
  "div",
5158
5165
  {
5159
5166
  className: re.contentModal,
@@ -5171,7 +5178,7 @@ const Yo = (c) => {
5171
5178
  }
5172
5179
  ),
5173
5180
  /* @__PURE__ */ e(
5174
- x,
5181
+ C,
5175
5182
  {
5176
5183
  name: "X",
5177
5184
  hoverable: !0,
@@ -5194,7 +5201,7 @@ const Yo = (c) => {
5194
5201
  height: 64,
5195
5202
  className: re.modalImage
5196
5203
  }
5197
- ) : /* @__PURE__ */ e("div", { className: q(re.blockImage, re.modalImage), children: /* @__PURE__ */ e(x, { name: "Image" }) }) }),
5204
+ ) : /* @__PURE__ */ e("div", { className: q(re.blockImage, re.modalImage), children: /* @__PURE__ */ e(C, { name: "Image" }) }) }),
5198
5205
  /* @__PURE__ */ h("div", { className: re.cardInfo, children: [
5199
5206
  /* @__PURE__ */ e("div", { id: "h5", children: f.productData.compareAtPrice && (f.productData.compareAtPrice.amount || 0) - (f.productData.minPrice.amount || 0) > 0 ? /* @__PURE__ */ h(G, { children: [
5200
5207
  Oe(f.productData.name, !1),
@@ -5285,10 +5292,10 @@ const Yo = (c) => {
5285
5292
  ]
5286
5293
  }
5287
5294
  ) });
5288
- }, Or = "_container_6vcrl_1", Ar = "_wrapper_6vcrl_5", Et = {
5289
- container: Or,
5290
- wrapper: Ar
5291
- }, ot = 16, Yd = ({
5295
+ }, Br = "_container_6vcrl_1", Mr = "_wrapper_6vcrl_5", Et = {
5296
+ container: Br,
5297
+ wrapper: Mr
5298
+ }, ct = 16, Jd = ({
5292
5299
  children: c,
5293
5300
  padding: t,
5294
5301
  style: s,
@@ -5308,10 +5315,10 @@ const Yo = (c) => {
5308
5315
  className: Et.wrapper,
5309
5316
  style: {
5310
5317
  maxWidth: a,
5311
- paddingTop: d === "desktop" ? t == null ? void 0 : t.top : n ? 0 : ot,
5312
- paddingBottom: d === "desktop" ? t == null ? void 0 : t.bottom : n ? 0 : ot,
5313
- paddingLeft: d === "desktop" ? t == null ? void 0 : t.left : n ? 0 : ot,
5314
- paddingRight: d === "desktop" ? t == null ? void 0 : t.right : n ? 0 : ot,
5318
+ paddingTop: d === "desktop" ? t == null ? void 0 : t.top : n ? 0 : ct,
5319
+ paddingBottom: d === "desktop" ? t == null ? void 0 : t.bottom : n ? 0 : ct,
5320
+ paddingLeft: d === "desktop" ? t == null ? void 0 : t.left : n ? 0 : ct,
5321
+ paddingRight: d === "desktop" ? t == null ? void 0 : t.right : n ? 0 : ct,
5315
5322
  ...s
5316
5323
  },
5317
5324
  children: c(d)
@@ -5319,28 +5326,28 @@ const Yo = (c) => {
5319
5326
  )
5320
5327
  }
5321
5328
  );
5322
- }, Br = "_wrapper_2lef2_2", Mr = "_label_2lef2_9", Er = "_top_2lef2_17", qr = "_select_2lef2_23", Dr = "_borderFocused_2lef2_42", Rr = "_input_2lef2_49", Lr = "_icon_2lef2_59", zr = "_rotate_2lef2_64", Fr = "_content_2lef2_68", Ur = "_options_2lef2_72", jr = "_filteredOptions_2lef2_93", Hr = "_open_2lef2_97", Vr = "_option_2lef2_72", Wr = "_focused_2lef2_115", Gr = "_addon_2lef2_119", Xr = "_value_2lef2_130", Yr = "_postfix_2lef2_135", Kr = "_leftAddon_2lef2_139", Qr = "_selectError_2lef2_145", Jr = "_errorMessage_2lef2_152", Zr = "_requiredStar_2lef2_158", J = {
5323
- wrapper: Br,
5324
- label: Mr,
5325
- top: Er,
5326
- select: qr,
5327
- borderFocused: Dr,
5328
- input: Rr,
5329
- icon: Lr,
5330
- rotate: zr,
5331
- content: Fr,
5332
- options: Ur,
5333
- filteredOptions: jr,
5334
- open: Hr,
5335
- option: Vr,
5336
- focused: Wr,
5337
- addon: Gr,
5338
- value: Xr,
5339
- postfix: Yr,
5340
- leftAddon: Kr,
5341
- selectError: Qr,
5342
- errorMessage: Jr,
5343
- requiredStar: Zr
5329
+ }, Er = "_wrapper_2lef2_2", qr = "_label_2lef2_9", Dr = "_top_2lef2_17", Rr = "_select_2lef2_23", Lr = "_borderFocused_2lef2_42", zr = "_input_2lef2_49", Fr = "_icon_2lef2_59", jr = "_rotate_2lef2_64", Ur = "_content_2lef2_68", Hr = "_options_2lef2_72", Vr = "_filteredOptions_2lef2_93", Wr = "_open_2lef2_97", Gr = "_option_2lef2_72", Xr = "_focused_2lef2_115", Yr = "_addon_2lef2_119", Kr = "_value_2lef2_130", Qr = "_postfix_2lef2_135", Jr = "_leftAddon_2lef2_139", Zr = "_selectError_2lef2_145", el = "_errorMessage_2lef2_152", tl = "_requiredStar_2lef2_158", J = {
5330
+ wrapper: Er,
5331
+ label: qr,
5332
+ top: Dr,
5333
+ select: Rr,
5334
+ borderFocused: Lr,
5335
+ input: zr,
5336
+ icon: Fr,
5337
+ rotate: jr,
5338
+ content: Ur,
5339
+ options: Hr,
5340
+ filteredOptions: Vr,
5341
+ open: Wr,
5342
+ option: Gr,
5343
+ focused: Xr,
5344
+ addon: Yr,
5345
+ value: Kr,
5346
+ postfix: Qr,
5347
+ leftAddon: Jr,
5348
+ selectError: Zr,
5349
+ errorMessage: el,
5350
+ requiredStar: tl
5344
5351
  }, ue = (c) => {
5345
5352
  var M, L;
5346
5353
  const {
@@ -5354,30 +5361,30 @@ const Yo = (c) => {
5354
5361
  leftAddonOptions: o,
5355
5362
  isMaxLength: u = !0,
5356
5363
  error: g
5357
- } = c, [k, _] = b.useState(!1), [f, I] = b.useState(""), [l, m] = b.useState(null), [p, y] = b.useState(!1), w = b.useRef(null);
5358
- nt(w, () => _(!1));
5359
- function S(N) {
5360
- I(""), t(N), _(!1), m(null);
5364
+ } = c, [x, _] = b.useState(!1), [f, I] = b.useState(""), [l, m] = b.useState(null), [p, y] = b.useState(!1), w = b.useRef(null);
5365
+ st(w, () => _(!1));
5366
+ function N(S) {
5367
+ I(""), t(S), _(!1), m(null);
5361
5368
  }
5362
- function $(N, C) {
5363
- return N ? N.length > C + 3 ? `${N.slice(0, C)}...` : N : "";
5369
+ function $(S, k) {
5370
+ return S ? S.length > k + 3 ? `${S.slice(0, k)}...` : S : "";
5364
5371
  }
5365
- function A(N) {
5366
- if (!k) {
5367
- (N.key === "Enter" || N.key === "ArrowDown") && _(!0);
5372
+ function A(S) {
5373
+ if (!x) {
5374
+ (S.key === "Enter" || S.key === "ArrowDown") && _(!0);
5368
5375
  return;
5369
5376
  }
5370
- const C = T;
5371
- N.key === "ArrowDown" && (N.preventDefault(), m(
5372
- (D) => D === null || D === C.length - 1 ? 0 : D + 1
5373
- )), N.key === "ArrowUp" && (N.preventDefault(), m(
5374
- (D) => D === null || D === 0 ? C.length - 1 : D - 1
5375
- )), N.key === "Enter" && l !== null && (N.preventDefault(), S(C[l])), N.key === "Escape" && _(!1);
5377
+ const k = T;
5378
+ S.key === "ArrowDown" && (S.preventDefault(), m(
5379
+ (D) => D === null || D === k.length - 1 ? 0 : D + 1
5380
+ )), S.key === "ArrowUp" && (S.preventDefault(), m(
5381
+ (D) => D === null || D === 0 ? k.length - 1 : D - 1
5382
+ )), S.key === "Enter" && l !== null && (S.preventDefault(), N(k[l])), S.key === "Escape" && _(!1);
5376
5383
  }
5377
5384
  const O = b.useRef(null), v = b.useMemo(() => new Gt(a, {
5378
5385
  threshold: 0.4,
5379
5386
  minMatchCharLength: 2
5380
- }), [a]), T = b.useMemo(() => p && f.trim() !== "" ? v.search(f).map((N) => N.item) : a, [f, a, p, v]);
5387
+ }), [a]), T = b.useMemo(() => p && f.trim() !== "" ? v.search(f).map((S) => S.item) : a, [f, a, p, v]);
5381
5388
  return /* @__PURE__ */ h(
5382
5389
  "div",
5383
5390
  {
@@ -5414,17 +5421,17 @@ const Yo = (c) => {
5414
5421
  "div",
5415
5422
  {
5416
5423
  className: q(J.select, {
5417
- [J.borderFocused]: k,
5424
+ [J.borderFocused]: x,
5418
5425
  [J.selectError]: g
5419
5426
  }),
5420
5427
  onKeyDown: A,
5421
- onClick: (N) => {
5422
- N.stopPropagation(), _((C) => !C), y(!1);
5428
+ onClick: (S) => {
5429
+ S.stopPropagation(), _((k) => !k), y(!1);
5423
5430
  },
5424
5431
  ref: O,
5425
5432
  tabIndex: 0,
5426
5433
  children: [
5427
- o && o.length > 0 && /* @__PURE__ */ e("div", { className: J.addon, children: (M = o.find((N) => N.value === n)) == null ? void 0 : M.addon }),
5434
+ o && o.length > 0 && /* @__PURE__ */ e("div", { className: J.addon, children: (M = o.find((S) => S.value === n)) == null ? void 0 : M.addon }),
5428
5435
  /* @__PURE__ */ e(
5429
5436
  "div",
5430
5437
  {
@@ -5436,12 +5443,12 @@ const Yo = (c) => {
5436
5443
  /* @__PURE__ */ e(
5437
5444
  "div",
5438
5445
  {
5439
- className: q(J.icon, { [J.rotate]: k }),
5440
- onClick: (N) => {
5441
- N.stopPropagation(), _((C) => !C);
5446
+ className: q(J.icon, { [J.rotate]: x }),
5447
+ onClick: (S) => {
5448
+ S.stopPropagation(), _((k) => !k);
5442
5449
  },
5443
5450
  children: /* @__PURE__ */ e(
5444
- x,
5451
+ C,
5445
5452
  {
5446
5453
  name: "CaretDown",
5447
5454
  width: 16,
@@ -5457,7 +5464,7 @@ const Yo = (c) => {
5457
5464
  /* @__PURE__ */ h(
5458
5465
  "div",
5459
5466
  {
5460
- className: q(J.options, { [J.open]: k }),
5467
+ className: q(J.options, { [J.open]: x }),
5461
5468
  style: {
5462
5469
  top: ((L = O.current) == null ? void 0 : L.clientHeight) + 10
5463
5470
  },
@@ -5468,33 +5475,33 @@ const Yo = (c) => {
5468
5475
  type: "text",
5469
5476
  value: f,
5470
5477
  placeholder: "Search...",
5471
- onChange: (N) => {
5472
- I(N), y(!0);
5478
+ onChange: (S) => {
5479
+ I(S), y(!0);
5473
5480
  },
5474
5481
  isSearch: !0
5475
5482
  }
5476
5483
  ),
5477
5484
  /* @__PURE__ */ h("div", { className: J.filteredOptions, children: [
5478
- T.map((N, C) => {
5485
+ T.map((S, k) => {
5479
5486
  var D;
5480
5487
  return /* @__PURE__ */ h(
5481
5488
  "div",
5482
5489
  {
5483
5490
  className: q(J.option, {
5484
- [J.focused]: C === l
5491
+ [J.focused]: k === l
5485
5492
  }),
5486
5493
  onClick: () => {
5487
- S(N), _(!1);
5494
+ N(S), _(!1);
5488
5495
  },
5489
5496
  id: "md",
5490
5497
  children: [
5491
- o && o.length > 0 && /* @__PURE__ */ e("div", { className: J.leftAddon, children: (D = o.find((E) => E.value === N)) == null ? void 0 : D.addon }),
5498
+ o && o.length > 0 && /* @__PURE__ */ e("div", { className: J.leftAddon, children: (D = o.find((E) => E.value === S)) == null ? void 0 : D.addon }),
5492
5499
  /* @__PURE__ */ e(
5493
5500
  "span",
5494
5501
  {
5495
5502
  className: J.value,
5496
5503
  id: "md",
5497
- children: u ? $(N, 20) : N
5504
+ children: u ? $(S, 20) : S
5498
5505
  }
5499
5506
  ),
5500
5507
  r && /* @__PURE__ */ e(
@@ -5502,12 +5509,12 @@ const Yo = (c) => {
5502
5509
  {
5503
5510
  className: J.postfix,
5504
5511
  id: "md",
5505
- children: r[C]
5512
+ children: r[k]
5506
5513
  }
5507
5514
  )
5508
5515
  ]
5509
5516
  },
5510
- N
5517
+ S
5511
5518
  );
5512
5519
  }),
5513
5520
  T.length === 0 && /* @__PURE__ */ e("div", { children: "No results found." })
@@ -5522,13 +5529,13 @@ const Yo = (c) => {
5522
5529
  ]
5523
5530
  }
5524
5531
  );
5525
- }, el = "_wrapper_mmfra_1", tl = "_active_mmfra_27", nl = "_toggle_mmfra_30", sl = "_background_mmfra_42", il = "_padding_mmfra_46", ye = {
5526
- wrapper: el,
5532
+ }, nl = "_wrapper_mmfra_1", sl = "_active_mmfra_27", il = "_toggle_mmfra_30", al = "_background_mmfra_42", ol = "_padding_mmfra_46", be = {
5533
+ wrapper: nl,
5527
5534
  switch: "_switch_mmfra_14",
5528
- active: tl,
5529
- toggle: nl,
5530
- background: sl,
5531
- padding: il
5535
+ active: sl,
5536
+ toggle: il,
5537
+ background: al,
5538
+ padding: ol
5532
5539
  }, fe = (c) => {
5533
5540
  const { onChange: t, style: s, current: n, label: a, hasBackground: i = !1, paddingless: d = !0 } = c, [r, o] = b.useState(n), u = () => {
5534
5541
  o((g) => !g), t == null || t(!r);
@@ -5538,45 +5545,45 @@ const Yo = (c) => {
5538
5545
  }, [n]), /* @__PURE__ */ e(G, { children: a ? /* @__PURE__ */ h(
5539
5546
  "div",
5540
5547
  {
5541
- className: q(ye.wrapper, {
5542
- [ye.background]: i,
5543
- [ye.padding]: !d
5548
+ className: q(be.wrapper, {
5549
+ [be.background]: i,
5550
+ [be.padding]: !d
5544
5551
  }),
5545
5552
  children: [
5546
5553
  /* @__PURE__ */ e(
5547
5554
  "div",
5548
5555
  {
5549
- className: q(ye.switch, {
5550
- [ye.active]: r
5556
+ className: q(be.switch, {
5557
+ [be.active]: r
5551
5558
  }),
5552
5559
  onClick: u,
5553
5560
  style: s,
5554
- children: /* @__PURE__ */ e("div", { className: ye.toggle })
5561
+ children: /* @__PURE__ */ e("div", { className: be.toggle })
5555
5562
  }
5556
5563
  ),
5557
- /* @__PURE__ */ e("span", { className: ye.value, children: a })
5564
+ /* @__PURE__ */ e("span", { className: be.value, children: a })
5558
5565
  ]
5559
5566
  }
5560
5567
  ) : /* @__PURE__ */ e(
5561
5568
  "div",
5562
5569
  {
5563
- className: q(ye.switch, {
5564
- [ye.active]: r
5570
+ className: q(be.switch, {
5571
+ [be.active]: r
5565
5572
  }),
5566
5573
  onClick: u,
5567
5574
  style: s,
5568
- children: /* @__PURE__ */ e("div", { className: ye.toggle })
5575
+ children: /* @__PURE__ */ e("div", { className: be.toggle })
5569
5576
  }
5570
5577
  ) });
5571
5578
  };
5572
- function St() {
5573
- return St = Object.assign ? Object.assign.bind() : function(c) {
5579
+ function Nt() {
5580
+ return Nt = Object.assign ? Object.assign.bind() : function(c) {
5574
5581
  for (var t = 1; t < arguments.length; t++) {
5575
5582
  var s = arguments[t];
5576
5583
  for (var n in s) ({}).hasOwnProperty.call(s, n) && (c[n] = s[n]);
5577
5584
  }
5578
5585
  return c;
5579
- }, St.apply(null, arguments);
5586
+ }, Nt.apply(null, arguments);
5580
5587
  }
5581
5588
  function qt(c) {
5582
5589
  if (c === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -5587,25 +5594,25 @@ function wt(c, t) {
5587
5594
  return s.__proto__ = n, s;
5588
5595
  }, wt(c, t);
5589
5596
  }
5590
- function al(c, t) {
5597
+ function cl(c, t) {
5591
5598
  c.prototype = Object.create(t.prototype), c.prototype.constructor = c, wt(c, t);
5592
5599
  }
5593
5600
  var Dt = Number.isNaN || function(t) {
5594
5601
  return typeof t == "number" && t !== t;
5595
5602
  };
5596
- function ol(c, t) {
5603
+ function rl(c, t) {
5597
5604
  return !!(c === t || Dt(c) && Dt(t));
5598
5605
  }
5599
- function cl(c, t) {
5606
+ function ll(c, t) {
5600
5607
  if (c.length !== t.length)
5601
5608
  return !1;
5602
5609
  for (var s = 0; s < c.length; s++)
5603
- if (!ol(c[s], t[s]))
5610
+ if (!rl(c[s], t[s]))
5604
5611
  return !1;
5605
5612
  return !0;
5606
5613
  }
5607
5614
  function It(c, t) {
5608
- t === void 0 && (t = cl);
5615
+ t === void 0 && (t = ll);
5609
5616
  var s, n = [], a, i = !1;
5610
5617
  function d() {
5611
5618
  for (var r = [], o = 0; o < arguments.length; o++)
@@ -5614,7 +5621,7 @@ function It(c, t) {
5614
5621
  }
5615
5622
  return d;
5616
5623
  }
5617
- var rl = typeof performance == "object" && typeof performance.now == "function", Rt = rl ? function() {
5624
+ var dl = typeof performance == "object" && typeof performance.now == "function", Rt = dl ? function() {
5618
5625
  return performance.now();
5619
5626
  } : function() {
5620
5627
  return Date.now();
@@ -5622,7 +5629,7 @@ var rl = typeof performance == "object" && typeof performance.now == "function",
5622
5629
  function Lt(c) {
5623
5630
  cancelAnimationFrame(c.id);
5624
5631
  }
5625
- function ll(c, t) {
5632
+ function ul(c, t) {
5626
5633
  var s = Rt();
5627
5634
  function n() {
5628
5635
  Rt() - s >= t ? c.call(null) : a.id = requestAnimationFrame(n);
@@ -5632,13 +5639,13 @@ function ll(c, t) {
5632
5639
  };
5633
5640
  return a;
5634
5641
  }
5635
- var Nt = -1;
5642
+ var St = -1;
5636
5643
  function zt(c) {
5637
- if (c === void 0 && (c = !1), Nt === -1 || c) {
5644
+ if (c === void 0 && (c = !1), St === -1 || c) {
5638
5645
  var t = document.createElement("div"), s = t.style;
5639
- s.width = "50px", s.height = "50px", s.overflow = "scroll", document.body.appendChild(t), Nt = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
5646
+ s.width = "50px", s.height = "50px", s.overflow = "scroll", document.body.appendChild(t), St = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
5640
5647
  }
5641
- return Nt;
5648
+ return St;
5642
5649
  }
5643
5650
  var Re = null;
5644
5651
  function Ft(c) {
@@ -5651,17 +5658,17 @@ function Ft(c) {
5651
5658
  return Re;
5652
5659
  }
5653
5660
  process.env.NODE_ENV;
5654
- var dl = 150, ul = function(t, s) {
5661
+ var hl = 150, pl = function(t, s) {
5655
5662
  return t;
5656
5663
  }, ut = null, ht = null;
5657
5664
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (ut = /* @__PURE__ */ new WeakSet(), ht = /* @__PURE__ */ new WeakSet());
5658
- function hl(c) {
5665
+ function ml(c) {
5659
5666
  var t, s = c.getItemOffset, n = c.getEstimatedTotalSize, a = c.getItemSize, i = c.getOffsetForIndexAndAlignment, d = c.getStartIndexForOffset, r = c.getStopIndexForStartIndex, o = c.initInstanceProps, u = c.shouldResetStyleCacheOnItemSizeChange, g = c.validateProps;
5660
- return t = /* @__PURE__ */ function(k) {
5661
- al(_, k);
5667
+ return t = /* @__PURE__ */ function(x) {
5668
+ cl(_, x);
5662
5669
  function _(I) {
5663
5670
  var l;
5664
- return l = k.call(this, I) || this, l._instanceProps = o(l.props, qt(l)), l._outerRef = void 0, l._resetIsScrollingTimeoutId = null, l.state = {
5671
+ return l = x.call(this, I) || this, l._instanceProps = o(l.props, qt(l)), l._outerRef = void 0, l._resetIsScrollingTimeoutId = null, l.state = {
5665
5672
  instance: qt(l),
5666
5673
  isScrolling: !1,
5667
5674
  scrollDirection: "forward",
@@ -5681,11 +5688,11 @@ function hl(c) {
5681
5688
  scrollUpdateWasRequested: y
5682
5689
  });
5683
5690
  }), l._getItemStyle = void 0, l._getItemStyle = function(m) {
5684
- var p = l.props, y = p.direction, w = p.itemSize, S = p.layout, $ = l._getItemStyleCache(u && w, u && S, u && y), A;
5691
+ var p = l.props, y = p.direction, w = p.itemSize, N = p.layout, $ = l._getItemStyleCache(u && w, u && N, u && y), A;
5685
5692
  if ($.hasOwnProperty(m))
5686
5693
  A = $[m];
5687
5694
  else {
5688
- var O = s(l.props, m, l._instanceProps), v = a(l.props, m, l._instanceProps), T = y === "horizontal" || S === "horizontal", M = y === "rtl", L = T ? O : 0;
5695
+ var O = s(l.props, m, l._instanceProps), v = a(l.props, m, l._instanceProps), T = y === "horizontal" || N === "horizontal", M = y === "rtl", L = T ? O : 0;
5689
5696
  $[m] = A = {
5690
5697
  position: "absolute",
5691
5698
  left: M ? void 0 : L,
@@ -5699,7 +5706,7 @@ function hl(c) {
5699
5706
  }, l._getItemStyleCache = void 0, l._getItemStyleCache = It(function(m, p, y) {
5700
5707
  return {};
5701
5708
  }), l._onScrollHorizontal = function(m) {
5702
- var p = m.currentTarget, y = p.clientWidth, w = p.scrollLeft, S = p.scrollWidth;
5709
+ var p = m.currentTarget, y = p.clientWidth, w = p.scrollLeft, N = p.scrollWidth;
5703
5710
  l.setState(function($) {
5704
5711
  if ($.scrollOffset === w)
5705
5712
  return null;
@@ -5710,10 +5717,10 @@ function hl(c) {
5710
5717
  O = -w;
5711
5718
  break;
5712
5719
  case "positive-descending":
5713
- O = S - y - w;
5720
+ O = N - y - w;
5714
5721
  break;
5715
5722
  }
5716
- return O = Math.max(0, Math.min(O, S - y)), {
5723
+ return O = Math.max(0, Math.min(O, N - y)), {
5717
5724
  isScrolling: !0,
5718
5725
  scrollDirection: $.scrollOffset < O ? "forward" : "backward",
5719
5726
  scrollOffset: O,
@@ -5721,11 +5728,11 @@ function hl(c) {
5721
5728
  };
5722
5729
  }, l._resetIsScrollingDebounced);
5723
5730
  }, l._onScrollVertical = function(m) {
5724
- var p = m.currentTarget, y = p.clientHeight, w = p.scrollHeight, S = p.scrollTop;
5731
+ var p = m.currentTarget, y = p.clientHeight, w = p.scrollHeight, N = p.scrollTop;
5725
5732
  l.setState(function($) {
5726
- if ($.scrollOffset === S)
5733
+ if ($.scrollOffset === N)
5727
5734
  return null;
5728
- var A = Math.max(0, Math.min(S, w - y));
5735
+ var A = Math.max(0, Math.min(N, w - y));
5729
5736
  return {
5730
5737
  isScrolling: !0,
5731
5738
  scrollDirection: $.scrollOffset < A ? "forward" : "backward",
@@ -5737,7 +5744,7 @@ function hl(c) {
5737
5744
  var p = l.props.outerRef;
5738
5745
  l._outerRef = m, typeof p == "function" ? p(m) : p != null && typeof p == "object" && p.hasOwnProperty("current") && (p.current = m);
5739
5746
  }, l._resetIsScrollingDebounced = function() {
5740
- l._resetIsScrollingTimeoutId !== null && Lt(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ll(l._resetIsScrolling, dl);
5747
+ l._resetIsScrollingTimeoutId !== null && Lt(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ul(l._resetIsScrolling, hl);
5741
5748
  }, l._resetIsScrolling = function() {
5742
5749
  l._resetIsScrollingTimeoutId = null, l.setState({
5743
5750
  isScrolling: !1
@@ -5747,7 +5754,7 @@ function hl(c) {
5747
5754
  }, l;
5748
5755
  }
5749
5756
  _.getDerivedStateFromProps = function(l, m) {
5750
- return pl(l, m), g(l), null;
5757
+ return fl(l, m), g(l), null;
5751
5758
  };
5752
5759
  var f = _.prototype;
5753
5760
  return f.scrollTo = function(l) {
@@ -5760,14 +5767,14 @@ function hl(c) {
5760
5767
  }, this._resetIsScrollingDebounced);
5761
5768
  }, f.scrollToItem = function(l, m) {
5762
5769
  m === void 0 && (m = "auto");
5763
- var p = this.props, y = p.itemCount, w = p.layout, S = this.state.scrollOffset;
5770
+ var p = this.props, y = p.itemCount, w = p.layout, N = this.state.scrollOffset;
5764
5771
  l = Math.max(0, Math.min(l, y - 1));
5765
5772
  var $ = 0;
5766
5773
  if (this._outerRef) {
5767
5774
  var A = this._outerRef;
5768
5775
  w === "vertical" ? $ = A.scrollWidth > A.clientWidth ? zt() : 0 : $ = A.scrollHeight > A.clientHeight ? zt() : 0;
5769
5776
  }
5770
- this.scrollTo(i(this.props, l, m, S, this._instanceProps, $));
5777
+ this.scrollTo(i(this.props, l, m, N, this._instanceProps, $));
5771
5778
  }, f.componentDidMount = function() {
5772
5779
  var l = this.props, m = l.direction, p = l.initialScrollOffset, y = l.layout;
5773
5780
  if (typeof p == "number" && this._outerRef != null) {
@@ -5776,8 +5783,8 @@ function hl(c) {
5776
5783
  }
5777
5784
  this._callPropsCallbacks();
5778
5785
  }, f.componentDidUpdate = function() {
5779
- var l = this.props, m = l.direction, p = l.layout, y = this.state, w = y.scrollOffset, S = y.scrollUpdateWasRequested;
5780
- if (S && this._outerRef != null) {
5786
+ var l = this.props, m = l.direction, p = l.layout, y = this.state, w = y.scrollOffset, N = y.scrollUpdateWasRequested;
5787
+ if (N && this._outerRef != null) {
5781
5788
  var $ = this._outerRef;
5782
5789
  if (m === "horizontal" || p === "horizontal")
5783
5790
  if (m === "rtl")
@@ -5802,10 +5809,10 @@ function hl(c) {
5802
5809
  }, f.componentWillUnmount = function() {
5803
5810
  this._resetIsScrollingTimeoutId !== null && Lt(this._resetIsScrollingTimeoutId);
5804
5811
  }, f.render = function() {
5805
- var l = this.props, m = l.children, p = l.className, y = l.direction, w = l.height, S = l.innerRef, $ = l.innerElementType, A = l.innerTagName, O = l.itemCount, v = l.itemData, T = l.itemKey, M = T === void 0 ? ul : T, L = l.layout, N = l.outerElementType, C = l.outerTagName, D = l.style, E = l.useIsScrolling, V = l.width, P = this.state.isScrolling, z = y === "horizontal" || L === "horizontal", U = z ? this._onScrollHorizontal : this._onScrollVertical, F = this._getRangeToRender(), se = F[0], te = F[1], Q = [];
5812
+ var l = this.props, m = l.children, p = l.className, y = l.direction, w = l.height, N = l.innerRef, $ = l.innerElementType, A = l.innerTagName, O = l.itemCount, v = l.itemData, T = l.itemKey, M = T === void 0 ? pl : T, L = l.layout, S = l.outerElementType, k = l.outerTagName, D = l.style, E = l.useIsScrolling, V = l.width, P = this.state.isScrolling, z = y === "horizontal" || L === "horizontal", j = z ? this._onScrollHorizontal : this._onScrollVertical, F = this._getRangeToRender(), se = F[0], te = F[1], Q = [];
5806
5813
  if (O > 0)
5807
5814
  for (var B = se; B <= te; B++)
5808
- Q.push(gt(m, {
5815
+ Q.push(_t(m, {
5809
5816
  data: v,
5810
5817
  key: M(B, v),
5811
5818
  index: B,
@@ -5813,11 +5820,11 @@ function hl(c) {
5813
5820
  style: this._getItemStyle(B)
5814
5821
  }));
5815
5822
  var W = n(this.props, this._instanceProps);
5816
- return gt(N || C || "div", {
5823
+ return _t(S || k || "div", {
5817
5824
  className: p,
5818
- onScroll: U,
5825
+ onScroll: j,
5819
5826
  ref: this._outerRefSetter,
5820
- style: St({
5827
+ style: Nt({
5821
5828
  position: "relative",
5822
5829
  height: w,
5823
5830
  width: V,
@@ -5826,9 +5833,9 @@ function hl(c) {
5826
5833
  willChange: "transform",
5827
5834
  direction: y
5828
5835
  }, D)
5829
- }, gt($ || A || "div", {
5836
+ }, _t($ || A || "div", {
5830
5837
  children: Q,
5831
- ref: S,
5838
+ ref: N,
5832
5839
  style: {
5833
5840
  height: z ? "100%" : W,
5834
5841
  pointerEvents: P ? "none" : void 0,
@@ -5839,8 +5846,8 @@ function hl(c) {
5839
5846
  if (typeof this.props.onItemsRendered == "function") {
5840
5847
  var l = this.props.itemCount;
5841
5848
  if (l > 0) {
5842
- var m = this._getRangeToRender(), p = m[0], y = m[1], w = m[2], S = m[3];
5843
- this._callOnItemsRendered(p, y, w, S);
5849
+ var m = this._getRangeToRender(), p = m[0], y = m[1], w = m[2], N = m[3];
5850
+ this._callOnItemsRendered(p, y, w, N);
5844
5851
  }
5845
5852
  }
5846
5853
  if (typeof this.props.onScroll == "function") {
@@ -5848,10 +5855,10 @@ function hl(c) {
5848
5855
  this._callOnScroll(A, O, v);
5849
5856
  }
5850
5857
  }, f._getRangeToRender = function() {
5851
- var l = this.props, m = l.itemCount, p = l.overscanCount, y = this.state, w = y.isScrolling, S = y.scrollDirection, $ = y.scrollOffset;
5858
+ var l = this.props, m = l.itemCount, p = l.overscanCount, y = this.state, w = y.isScrolling, N = y.scrollDirection, $ = y.scrollOffset;
5852
5859
  if (m === 0)
5853
5860
  return [0, 0, 0, 0];
5854
- var A = d(this.props, $, this._instanceProps), O = r(this.props, A, $, this._instanceProps), v = !w || S === "backward" ? Math.max(1, p) : 1, T = !w || S === "forward" ? Math.max(1, p) : 1;
5861
+ var A = d(this.props, $, this._instanceProps), O = r(this.props, A, $, this._instanceProps), v = !w || N === "backward" ? Math.max(1, p) : 1, T = !w || N === "forward" ? Math.max(1, p) : 1;
5855
5862
  return [Math.max(0, A - v), Math.max(0, Math.min(m - 1, O + T)), A, O];
5856
5863
  }, _;
5857
5864
  }(on), t.defaultProps = {
@@ -5862,11 +5869,11 @@ function hl(c) {
5862
5869
  useIsScrolling: !1
5863
5870
  }, t;
5864
5871
  }
5865
- var pl = function(t, s) {
5872
+ var fl = function(t, s) {
5866
5873
  var n = t.children, a = t.direction, i = t.height, d = t.layout, r = t.innerTagName, o = t.outerTagName, u = t.width, g = s.instance;
5867
5874
  if (process.env.NODE_ENV !== "production") {
5868
5875
  (r != null || o != null) && ht && !ht.has(g) && (ht.add(g), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
5869
- var k = a === "horizontal" || d === "horizontal";
5876
+ var x = a === "horizontal" || d === "horizontal";
5870
5877
  switch (a) {
5871
5878
  case "horizontal":
5872
5879
  case "vertical":
@@ -5887,12 +5894,12 @@ var pl = function(t, s) {
5887
5894
  }
5888
5895
  if (n == null)
5889
5896
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
5890
- if (k && typeof u != "number")
5897
+ if (x && typeof u != "number")
5891
5898
  throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (u === null ? "null" : typeof u) + '" was specified.'));
5892
- if (!k && typeof i != "number")
5899
+ if (!x && typeof i != "number")
5893
5900
  throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
5894
5901
  }
5895
- }, ml = /* @__PURE__ */ hl({
5902
+ }, _l = /* @__PURE__ */ ml({
5896
5903
  getItemOffset: function(t, s) {
5897
5904
  var n = t.itemSize;
5898
5905
  return s * n;
@@ -5906,7 +5913,7 @@ var pl = function(t, s) {
5906
5913
  return n * s;
5907
5914
  },
5908
5915
  getOffsetForIndexAndAlignment: function(t, s, n, a, i, d) {
5909
- var r = t.direction, o = t.height, u = t.itemCount, g = t.itemSize, k = t.layout, _ = t.width, f = r === "horizontal" || k === "horizontal", I = f ? _ : o, l = Math.max(0, u * g - I), m = Math.min(l, s * g), p = Math.max(0, s * g - I + g + d);
5916
+ var r = t.direction, o = t.height, u = t.itemCount, g = t.itemSize, x = t.layout, _ = t.width, f = r === "horizontal" || x === "horizontal", I = f ? _ : o, l = Math.max(0, u * g - I), m = Math.min(l, s * g), p = Math.max(0, s * g - I + g + d);
5910
5917
  switch (n === "smart" && (a >= p - I && a <= m + I ? n = "auto" : n = "center"), n) {
5911
5918
  case "start":
5912
5919
  return m;
@@ -5926,7 +5933,7 @@ var pl = function(t, s) {
5926
5933
  return Math.max(0, Math.min(n - 1, Math.floor(s / a)));
5927
5934
  },
5928
5935
  getStopIndexForStartIndex: function(t, s, n) {
5929
- var a = t.direction, i = t.height, d = t.itemCount, r = t.itemSize, o = t.layout, u = t.width, g = a === "horizontal" || o === "horizontal", k = s * r, _ = g ? u : i, f = Math.ceil((_ + n - k) / r);
5936
+ var a = t.direction, i = t.height, d = t.itemCount, r = t.itemSize, o = t.layout, u = t.width, g = a === "horizontal" || o === "horizontal", x = s * r, _ = g ? u : i, f = Math.ceil((_ + n - x) / r);
5930
5937
  return Math.max(0, Math.min(
5931
5938
  d - 1,
5932
5939
  s + f - 1
@@ -5942,27 +5949,27 @@ var pl = function(t, s) {
5942
5949
  throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (s === null ? "null" : typeof s) + '" was specified.'));
5943
5950
  }
5944
5951
  });
5945
- const fl = "_wrapper_1gk74_2", gl = "_label_1gk74_9", _l = "_top_1gk74_17", vl = "_select_1gk74_23", yl = "_borderFocused_1gk74_42", bl = "_input_1gk74_49", Il = "_icon_1gk74_59", Nl = "_rotate_1gk74_64", Sl = "_content_1gk74_68", wl = "_options_1gk74_72", kl = "_filteredOptions_1gk74_93", Cl = "_open_1gk74_97", xl = "_option_1gk74_72", $l = "_focused_1gk74_115", Tl = "_addon_1gk74_119", Pl = "_value_1gk74_130", Ol = "_postfix_1gk74_134", Al = "_leftAddon_1gk74_138", ne = {
5946
- wrapper: fl,
5947
- label: gl,
5948
- top: _l,
5949
- select: vl,
5950
- borderFocused: yl,
5951
- input: bl,
5952
- icon: Il,
5953
- rotate: Nl,
5954
- content: Sl,
5955
- options: wl,
5956
- filteredOptions: kl,
5957
- open: Cl,
5958
- option: xl,
5959
- focused: $l,
5960
- addon: Tl,
5961
- value: Pl,
5962
- postfix: Ol,
5963
- leftAddon: Al
5952
+ const gl = "_wrapper_1gk74_2", vl = "_label_1gk74_9", yl = "_top_1gk74_17", bl = "_select_1gk74_23", Il = "_borderFocused_1gk74_42", Sl = "_input_1gk74_49", Nl = "_icon_1gk74_59", wl = "_rotate_1gk74_64", xl = "_content_1gk74_68", kl = "_options_1gk74_72", Cl = "_filteredOptions_1gk74_93", $l = "_open_1gk74_97", Tl = "_option_1gk74_72", Pl = "_focused_1gk74_115", Ol = "_addon_1gk74_119", Al = "_value_1gk74_130", Bl = "_postfix_1gk74_134", Ml = "_leftAddon_1gk74_138", ne = {
5953
+ wrapper: gl,
5954
+ label: vl,
5955
+ top: yl,
5956
+ select: bl,
5957
+ borderFocused: Il,
5958
+ input: Sl,
5959
+ icon: Nl,
5960
+ rotate: wl,
5961
+ content: xl,
5962
+ options: kl,
5963
+ filteredOptions: Cl,
5964
+ open: $l,
5965
+ option: Tl,
5966
+ focused: Pl,
5967
+ addon: Ol,
5968
+ value: Al,
5969
+ postfix: Bl,
5970
+ leftAddon: Ml
5964
5971
  };
5965
- function Bl(c, t) {
5972
+ function El(c, t) {
5966
5973
  b.useEffect(() => {
5967
5974
  function s(n) {
5968
5975
  !c.current || c.current.contains(n.target) || t(n);
@@ -5974,53 +5981,53 @@ function Bl(c, t) {
5974
5981
  }
5975
5982
  const nn = (c) => {
5976
5983
  var L;
5977
- const { onChange: t, label: s, value: n, options: a, style: i, switcher: d, postfixs: r, leftAddonOptions: o } = c, [u, g] = b.useState(!1), [k, _] = b.useState(""), [f, I] = b.useState(null), [l, m] = b.useState(!1), p = b.useRef(null);
5978
- Bl(p, () => g(!1));
5979
- function y(N) {
5980
- _(""), t(N), g(!1), I(null);
5984
+ const { onChange: t, label: s, value: n, options: a, style: i, switcher: d, postfixs: r, leftAddonOptions: o } = c, [u, g] = b.useState(!1), [x, _] = b.useState(""), [f, I] = b.useState(null), [l, m] = b.useState(!1), p = b.useRef(null);
5985
+ El(p, () => g(!1));
5986
+ function y(S) {
5987
+ _(""), t(S), g(!1), I(null);
5981
5988
  }
5982
- function w(N, C) {
5983
- return N ? N.length > C + 3 ? `${N.slice(0, C)}...` : N : "";
5989
+ function w(S, k) {
5990
+ return S ? S.length > k + 3 ? `${S.slice(0, k)}...` : S : "";
5984
5991
  }
5985
- function S(N) {
5992
+ function N(S) {
5986
5993
  if (!u) {
5987
- (N.key === "Enter" || N.key === "ArrowDown") && g(!0);
5994
+ (S.key === "Enter" || S.key === "ArrowDown") && g(!0);
5988
5995
  return;
5989
5996
  }
5990
- const C = O;
5991
- N.key === "ArrowDown" && (N.preventDefault(), I(
5992
- (D) => D === null || D === C.length - 1 ? 0 : D + 1
5993
- )), N.key === "ArrowUp" && (N.preventDefault(), I(
5994
- (D) => D === null || D === 0 ? C.length - 1 : D - 1
5995
- )), N.key === "Enter" && f !== null && (N.preventDefault(), y(C[f])), N.key === "Escape" && g(!1);
5997
+ const k = O;
5998
+ S.key === "ArrowDown" && (S.preventDefault(), I(
5999
+ (D) => D === null || D === k.length - 1 ? 0 : D + 1
6000
+ )), S.key === "ArrowUp" && (S.preventDefault(), I(
6001
+ (D) => D === null || D === 0 ? k.length - 1 : D - 1
6002
+ )), S.key === "Enter" && f !== null && (S.preventDefault(), y(k[f])), S.key === "Escape" && g(!1);
5996
6003
  }
5997
6004
  const $ = b.useRef(null), A = b.useMemo(() => new Gt(a, {
5998
6005
  threshold: 0.4,
5999
6006
  minMatchCharLength: 2
6000
- }), [a]), O = b.useMemo(() => l && k.trim() !== "" ? A.search(k).map((N) => N.item) : a, [k, a, l, A]), v = b.useMemo(() => {
6001
- const N = /* @__PURE__ */ new Map();
6002
- return o == null || o.forEach((C) => {
6003
- N.set(C.value, C.addon);
6004
- }), N;
6007
+ }), [a]), O = b.useMemo(() => l && x.trim() !== "" ? A.search(x).map((S) => S.item) : a, [x, a, l, A]), v = b.useMemo(() => {
6008
+ const S = /* @__PURE__ */ new Map();
6009
+ return o == null || o.forEach((k) => {
6010
+ S.set(k.value, k.addon);
6011
+ }), S;
6005
6012
  }, [o]), T = b.useMemo(() => {
6006
6013
  if (!r) return /* @__PURE__ */ new Map();
6007
- const N = /* @__PURE__ */ new Map();
6014
+ const S = /* @__PURE__ */ new Map();
6008
6015
  if (r.length === a.length)
6009
- for (let C = 0; C < a.length; C++)
6010
- N.set(a[C], r[C]);
6011
- return N;
6016
+ for (let k = 0; k < a.length; k++)
6017
+ S.set(a[k], r[k]);
6018
+ return S;
6012
6019
  }, [a, r]), M = b.useCallback(
6013
- ({ index: N, style: C }) => {
6014
- const D = O[N];
6020
+ ({ index: S, style: k }) => {
6021
+ const D = O[S];
6015
6022
  if (!D) return null;
6016
- const E = f === N, V = v.get(D), P = T.get(D);
6023
+ const E = f === S, V = v.get(D), P = T.get(D);
6017
6024
  return /* @__PURE__ */ h(
6018
6025
  "div",
6019
6026
  {
6020
6027
  className: q(ne.option, {
6021
6028
  [ne.focused]: E
6022
6029
  }),
6023
- style: C,
6030
+ style: k,
6024
6031
  onClick: () => y(D),
6025
6032
  children: [
6026
6033
  V && /* @__PURE__ */ e("div", { className: ne.leftAddon, children: V }),
@@ -6066,9 +6073,9 @@ const nn = (c) => {
6066
6073
  "div",
6067
6074
  {
6068
6075
  className: q(ne.select, { [ne.borderFocused]: u }),
6069
- onKeyDown: S,
6070
- onClick: (N) => {
6071
- N.stopPropagation(), g((C) => !C), m(!1);
6076
+ onKeyDown: N,
6077
+ onClick: (S) => {
6078
+ S.stopPropagation(), g((k) => !k), m(!1);
6072
6079
  },
6073
6080
  ref: $,
6074
6081
  tabIndex: 0,
@@ -6079,11 +6086,11 @@ const nn = (c) => {
6079
6086
  "div",
6080
6087
  {
6081
6088
  className: q(ne.icon, { [ne.rotate]: u }),
6082
- onClick: (N) => {
6083
- N.stopPropagation(), g((C) => !C);
6089
+ onClick: (S) => {
6090
+ S.stopPropagation(), g((k) => !k);
6084
6091
  },
6085
6092
  children: /* @__PURE__ */ e(
6086
- x,
6093
+ C,
6087
6094
  {
6088
6095
  name: "CaretDown",
6089
6096
  width: 16,
@@ -6107,10 +6114,10 @@ const nn = (c) => {
6107
6114
  $t,
6108
6115
  {
6109
6116
  type: "text",
6110
- value: k,
6117
+ value: x,
6111
6118
  placeholder: "Search...",
6112
- onChange: (N) => {
6113
- _(N), m(!0);
6119
+ onChange: (S) => {
6120
+ _(S), m(!0);
6114
6121
  },
6115
6122
  isSearch: !0
6116
6123
  }
@@ -6118,13 +6125,13 @@ const nn = (c) => {
6118
6125
  /* @__PURE__ */ h("div", { className: ne.filteredOptions, children: [
6119
6126
  O.length === 0 && /* @__PURE__ */ e("div", { children: "No results found." }),
6120
6127
  O.length > 0 && /* @__PURE__ */ e(
6121
- ml,
6128
+ _l,
6122
6129
  {
6123
6130
  height: 200,
6124
6131
  itemCount: O.length,
6125
6132
  itemSize: 36,
6126
6133
  width: "100%",
6127
- itemKey: (N) => O[N] || N,
6134
+ itemKey: (S) => O[S] || S,
6128
6135
  children: M
6129
6136
  }
6130
6137
  )
@@ -6138,12 +6145,12 @@ const nn = (c) => {
6138
6145
  ]
6139
6146
  }
6140
6147
  );
6141
- }, Ml = "_customCheckbox_w9x8g_1", El = "_checkboxBox_w9x8g_7", ql = "_checked_w9x8g_23", Dl = "_icon_w9x8g_31", ct = {
6142
- customCheckbox: Ml,
6143
- checkboxBox: El,
6144
- checked: ql,
6145
- icon: Dl
6146
- }, Rl = (c) => {
6148
+ }, ql = "_customCheckbox_w9x8g_1", Dl = "_checkboxBox_w9x8g_7", Rl = "_checked_w9x8g_23", Ll = "_icon_w9x8g_31", rt = {
6149
+ customCheckbox: ql,
6150
+ checkboxBox: Dl,
6151
+ checked: Rl,
6152
+ icon: Ll
6153
+ }, zl = (c) => {
6147
6154
  const { value: t, onChange: s } = c, [n, a] = b.useState(t), i = () => {
6148
6155
  a(!n), s(!n);
6149
6156
  };
@@ -6152,7 +6159,7 @@ const nn = (c) => {
6152
6159
  }, [t]), /* @__PURE__ */ h(
6153
6160
  "label",
6154
6161
  {
6155
- className: ct.customCheckbox,
6162
+ className: rt.customCheckbox,
6156
6163
  onClick: (d) => d.stopPropagation(),
6157
6164
  children: [
6158
6165
  /* @__PURE__ */ e(
@@ -6167,13 +6174,13 @@ const nn = (c) => {
6167
6174
  /* @__PURE__ */ e(
6168
6175
  "span",
6169
6176
  {
6170
- className: q(ct.checkboxBox, {
6171
- [ct.checked]: n
6177
+ className: q(rt.checkboxBox, {
6178
+ [rt.checked]: n
6172
6179
  })
6173
6180
  }
6174
6181
  ),
6175
- n && /* @__PURE__ */ e("div", { className: ct.icon, children: /* @__PURE__ */ e(
6176
- x,
6182
+ n && /* @__PURE__ */ e("div", { className: rt.icon, children: /* @__PURE__ */ e(
6183
+ C,
6177
6184
  {
6178
6185
  name: "Check",
6179
6186
  width: 14,
@@ -6184,42 +6191,45 @@ const nn = (c) => {
6184
6191
  ]
6185
6192
  }
6186
6193
  );
6187
- }, Ll = "_customCheckbox_a8vq7_1", zl = "_checkboxBox_a8vq7_7", Fl = "_checked_a8vq7_23", Ul = "_icon_a8vq7_30", rt = {
6188
- customCheckbox: Ll,
6189
- checkboxBox: zl,
6190
- checked: Fl,
6191
- icon: Ul
6192
- }, Kd = (c) => {
6193
- const { value: t, onChange: s } = c, [n, a] = b.useState(t), i = () => {
6194
- a(!n), s(!n);
6194
+ }, Fl = "_customCheckbox_12xbb_1", jl = "_checkboxBox_12xbb_7", Ul = "_checked_12xbb_23", Hl = "_icon_12xbb_30", Vl = "_disabled_12xbb_36", He = {
6195
+ customCheckbox: Fl,
6196
+ checkboxBox: jl,
6197
+ checked: Ul,
6198
+ icon: Hl,
6199
+ disabled: Vl
6200
+ }, Zd = (c) => {
6201
+ const { value: t, onChange: s, disabled: n = !1 } = c, [a, i] = b.useState(t), d = () => {
6202
+ n || (i(!a), s(!a));
6195
6203
  };
6196
6204
  return b.useEffect(() => {
6197
- a(t);
6205
+ i(t);
6198
6206
  }, [t]), /* @__PURE__ */ h(
6199
6207
  "label",
6200
6208
  {
6201
- className: rt.customCheckbox,
6202
- onClick: (d) => d.stopPropagation(),
6209
+ className: q(He.customCheckbox, {
6210
+ [He.disabled]: n
6211
+ }),
6212
+ onClick: (r) => r.stopPropagation(),
6203
6213
  children: [
6204
6214
  /* @__PURE__ */ e(
6205
6215
  "input",
6206
6216
  {
6207
6217
  type: "checkbox",
6208
- checked: n,
6209
- onChange: i,
6218
+ checked: a,
6219
+ onChange: d,
6210
6220
  style: { display: "none" }
6211
6221
  }
6212
6222
  ),
6213
6223
  /* @__PURE__ */ e(
6214
6224
  "span",
6215
6225
  {
6216
- className: q(rt.checkboxBox, {
6217
- [rt.checked]: n
6226
+ className: q(He.checkboxBox, {
6227
+ [He.checked]: a
6218
6228
  })
6219
6229
  }
6220
6230
  ),
6221
- n && /* @__PURE__ */ e("div", { className: rt.icon, children: /* @__PURE__ */ e(
6222
- x,
6231
+ a && /* @__PURE__ */ e("div", { className: He.icon, children: /* @__PURE__ */ e(
6232
+ C,
6223
6233
  {
6224
6234
  name: "Check",
6225
6235
  width: 14,
@@ -6230,12 +6240,12 @@ const nn = (c) => {
6230
6240
  ]
6231
6241
  }
6232
6242
  );
6233
- }, jl = "_modal_1h74q_1", Hl = "_title_1h74q_14", Vl = "_buttons_1h74q_20", lt = {
6234
- modal: jl,
6235
- title: Hl,
6236
- buttons: Vl
6237
- }, Qd = () => {
6238
- const { title: c, description: t, onConfirm: s, setTitle: n, setDescription: a, setOnConfirm: i } = un(), { setIsOpen: d } = be();
6243
+ }, Wl = "_modal_1h74q_1", Gl = "_title_1h74q_14", Xl = "_buttons_1h74q_20", lt = {
6244
+ modal: Wl,
6245
+ title: Gl,
6246
+ buttons: Xl
6247
+ }, eu = () => {
6248
+ const { title: c, description: t, onConfirm: s, setTitle: n, setDescription: a, setOnConfirm: i } = un(), { setIsOpen: d } = Ie();
6239
6249
  function r() {
6240
6250
  d(!1), setTimeout(() => {
6241
6251
  n(null), a(null), i(null), d(!0);
@@ -6265,22 +6275,22 @@ const nn = (c) => {
6265
6275
  ]
6266
6276
  }
6267
6277
  );
6268
- }, Wl = "_notification_2jmah_1", Gl = "_text_2jmah_22", Xl = "_timer_2jmah_27", Yl = "_warning_2jmah_32", Kl = "_error_2jmah_37", Ql = "_success_2jmah_42", Le = {
6269
- notification: Wl,
6270
- text: Gl,
6271
- timer: Xl,
6272
- warning: Yl,
6273
- error: Kl,
6274
- success: Ql
6275
- }, Ut = {
6278
+ }, Yl = "_notification_2jmah_1", Kl = "_text_2jmah_22", Ql = "_timer_2jmah_27", Jl = "_warning_2jmah_32", Zl = "_error_2jmah_37", ed = "_success_2jmah_42", Le = {
6279
+ notification: Yl,
6280
+ text: Kl,
6281
+ timer: Ql,
6282
+ warning: Jl,
6283
+ error: Zl,
6284
+ success: ed
6285
+ }, jt = {
6276
6286
  warning: "#C1972A",
6277
6287
  error: "#FF3F19",
6278
6288
  success: "#338B13"
6279
- }, Jd = (c) => {
6280
- const { type: t, message: s, style: n, padding: a, timer: i, id: d, element: r, label: o } = c, [u, g] = b.useState(i), { setNotifications: k } = He();
6289
+ }, tu = (c) => {
6290
+ const { type: t, message: s, style: n, padding: a, timer: i, id: d, element: r, label: o } = c, [u, g] = b.useState(i), { setNotifications: x } = Ve();
6281
6291
  function _() {
6282
- const I = He.getState().notifications.filter((l) => l.id !== d);
6283
- k([...I]);
6292
+ const I = Ve.getState().notifications.filter((l) => l.id !== d);
6293
+ x([...I]);
6284
6294
  }
6285
6295
  return b.useEffect(() => {
6286
6296
  const f = setTimeout(() => {
@@ -6316,10 +6326,10 @@ const nn = (c) => {
6316
6326
  style: n,
6317
6327
  children: [
6318
6328
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
6319
- x,
6329
+ C,
6320
6330
  {
6321
6331
  name: "Info",
6322
- fill: Ut[t],
6332
+ fill: jt[t],
6323
6333
  width: 20,
6324
6334
  height: 20
6325
6335
  }
@@ -6333,10 +6343,10 @@ const nn = (c) => {
6333
6343
  display: "flex"
6334
6344
  },
6335
6345
  children: /* @__PURE__ */ e(
6336
- x,
6346
+ C,
6337
6347
  {
6338
6348
  name: "X",
6339
- fill: Ut[t],
6349
+ fill: jt[t],
6340
6350
  width: 20,
6341
6351
  height: 20,
6342
6352
  hoverable: !0,
@@ -6350,17 +6360,17 @@ const nn = (c) => {
6350
6360
  )
6351
6361
  }
6352
6362
  );
6353
- }, Jl = "_loader_jr7a4_1", Zl = {
6354
- loader: Jl
6355
- }, Zd = () => /* @__PURE__ */ e("div", { className: Zl.loader }), ed = "_wrapper_2vleg_1", td = "_label_2vleg_9", nd = "_options_2vleg_17", sd = "_radioLabel_2vleg_23", id = "_radio_2vleg_23", ad = "_custom_2vleg_38", od = "_option_2vleg_17", Ee = {
6356
- wrapper: ed,
6357
- label: td,
6358
- options: nd,
6359
- radioLabel: sd,
6360
- radio: id,
6361
- custom: ad,
6362
- option: od
6363
- }, eu = (c) => {
6363
+ }, td = "_loader_jr7a4_1", nd = {
6364
+ loader: td
6365
+ }, nu = () => /* @__PURE__ */ e("div", { className: nd.loader }), sd = "_wrapper_2vleg_1", id = "_label_2vleg_9", ad = "_options_2vleg_17", od = "_radioLabel_2vleg_23", cd = "_radio_2vleg_23", rd = "_custom_2vleg_38", ld = "_option_2vleg_17", Ee = {
6366
+ wrapper: sd,
6367
+ label: id,
6368
+ options: ad,
6369
+ radioLabel: od,
6370
+ radio: cd,
6371
+ custom: rd,
6372
+ option: ld
6373
+ }, su = (c) => {
6364
6374
  const { defaultValue: t, options: s, onChange: n, label: a, flexDirection: i = "row" } = c, [d, r] = b.useState(t), o = (u) => {
6365
6375
  const g = u.target.value;
6366
6376
  r(g), n(g);
@@ -6396,13 +6406,13 @@ const nn = (c) => {
6396
6406
  }
6397
6407
  )
6398
6408
  ] });
6399
- }, cd = "_modal_270ti_1", rd = "_padding_270ti_17", ld = "_content_270ti_21", dd = "_close_270ti_42", dt = {
6400
- modal: cd,
6401
- padding: rd,
6402
- content: ld,
6403
- close: dd
6404
- }, tu = (c) => {
6405
- const { close: t, children: s, withAnimation: n = !0, hasPadding: a = !0 } = c, { isOpen: i, setIsOpen: d } = be();
6409
+ }, dd = "_modal_270ti_1", ud = "_padding_270ti_17", hd = "_content_270ti_21", pd = "_close_270ti_42", dt = {
6410
+ modal: dd,
6411
+ padding: ud,
6412
+ content: hd,
6413
+ close: pd
6414
+ }, iu = (c) => {
6415
+ const { close: t, children: s, withAnimation: n = !0, hasPadding: a = !0 } = c, { isOpen: i, setIsOpen: d } = Ie();
6406
6416
  return b.useEffect(() => {
6407
6417
  const r = () => {
6408
6418
  d(!1), n ? setTimeout(() => {
@@ -6413,21 +6423,21 @@ const nn = (c) => {
6413
6423
  document.body.removeEventListener("click", r);
6414
6424
  };
6415
6425
  }, []), /* @__PURE__ */ e("div", { className: q(dt.modal, { [dt.padding]: a }), children: n ? /* @__PURE__ */ e("div", { className: q(dt.content, { [dt.close]: !i }), children: s }) : /* @__PURE__ */ e(G, { children: s }) });
6416
- }, ud = "_notification_o93uc_1", hd = "_accent_o93uc_15", pd = "_body_o93uc_23", md = "_label_o93uc_30", fd = "_content_o93uc_36", gd = "_timer_o93uc_41", _d = "_warning_o93uc_48", vd = "_error_o93uc_53", yd = "_success_o93uc_58", $e = {
6417
- notification: ud,
6418
- accent: hd,
6419
- body: pd,
6420
- label: md,
6421
- content: fd,
6422
- timer: gd,
6423
- warning: _d,
6424
- error: vd,
6425
- success: yd
6426
- }, bd = {
6426
+ }, md = "_notification_o93uc_1", fd = "_accent_o93uc_15", _d = "_body_o93uc_23", gd = "_label_o93uc_30", vd = "_content_o93uc_36", yd = "_timer_o93uc_41", bd = "_warning_o93uc_48", Id = "_error_o93uc_53", Sd = "_success_o93uc_58", $e = {
6427
+ notification: md,
6428
+ accent: fd,
6429
+ body: _d,
6430
+ label: gd,
6431
+ content: vd,
6432
+ timer: yd,
6433
+ warning: bd,
6434
+ error: Id,
6435
+ success: Sd
6436
+ }, Nd = {
6427
6437
  warning: "Warning",
6428
6438
  error: "Error",
6429
6439
  success: "Success"
6430
- }, nu = ({
6440
+ }, au = ({
6431
6441
  type: c,
6432
6442
  message: t,
6433
6443
  style: s,
@@ -6456,7 +6466,7 @@ const nn = (c) => {
6456
6466
  t
6457
6467
  ] }) : t : /* @__PURE__ */ h(G, { children: [
6458
6468
  /* @__PURE__ */ h("span", { className: $e.label, children: [
6459
- bd[c],
6469
+ Nd[c],
6460
6470
  ":"
6461
6471
  ] }),
6462
6472
  " ",
@@ -6471,62 +6481,62 @@ export {
6471
6481
  tn as $,
6472
6482
  ds as A,
6473
6483
  Ae as B,
6474
- Qd as C,
6475
- Ld as D,
6476
- Td as E,
6477
- Dd as F,
6484
+ eu as C,
6485
+ jd as D,
6486
+ Ad as E,
6487
+ zd as F,
6478
6488
  Zt as G,
6479
- Yo as H,
6480
- x as I,
6481
- Fd as J,
6482
- Pc as K,
6483
- Zd as L,
6484
- st as M,
6485
- Jd as N,
6486
- Oc as O,
6487
- qd as P,
6488
- Ac as Q,
6489
- eu as R,
6489
+ Qo as H,
6490
+ C as I,
6491
+ Hd as J,
6492
+ Ac as K,
6493
+ nu as L,
6494
+ it as M,
6495
+ tu as N,
6496
+ Bc as O,
6497
+ Ld as P,
6498
+ Mc as Q,
6499
+ su as R,
6490
6500
  ue as S,
6491
6501
  Yt as T,
6492
6502
  en as U,
6493
- Bc as V,
6494
- Yd as W,
6495
- Ud as X,
6496
- Mc as Y,
6497
- jd as Z,
6498
- Hd as _,
6499
- tu as a,
6500
- Vd as a0,
6501
- Wd as a1,
6502
- Gd as a2,
6503
- Xd as a3,
6503
+ Ec as V,
6504
+ Jd as W,
6505
+ Vd as X,
6506
+ qc as Y,
6507
+ Wd as Z,
6508
+ Gd as _,
6509
+ iu as a,
6510
+ Xd as a0,
6511
+ Yd as a1,
6512
+ Kd as a2,
6513
+ Qd as a3,
6504
6514
  Kt as a4,
6505
- tt as a5,
6515
+ nt as a5,
6506
6516
  nn as a6,
6507
- Md as b,
6508
- ge as c,
6517
+ Dd as b,
6518
+ _e as c,
6509
6519
  fe as d,
6510
6520
  Jt as e,
6511
6521
  $t as f,
6512
6522
  K as g,
6513
6523
  Fo as h,
6514
- Kd as i,
6515
- zd as j,
6516
- Rl as k,
6517
- Nn as l,
6518
- Pd as m,
6519
- Od as n,
6520
- Ad as o,
6521
- nu as p,
6522
- Bd as q,
6524
+ Zd as i,
6525
+ Ud as j,
6526
+ zl as k,
6527
+ Sn as l,
6528
+ Bd as m,
6529
+ Md as n,
6530
+ Ed as o,
6531
+ au as p,
6532
+ qd as q,
6523
6533
  In as r,
6524
6534
  Qt as s,
6525
6535
  pi as t,
6526
- nt as u,
6527
- Ed as v,
6528
- Rd as w,
6536
+ st as u,
6537
+ Rd as v,
6538
+ Fd as w,
6529
6539
  Xt as x,
6530
6540
  Ia as y,
6531
- xt as z
6541
+ Ct as z
6532
6542
  };