@billgangcom/theme-lib 1.37.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,21 +1,21 @@
1
- import { j as t, I as b, c as F, a as W, S as Z, T as Ot, C as gt, b as st, u as It, d as $t, D as Nt, e as wt, v as Ct, B as ct, f as _t, P as Bt, g as St, h as Tt, i as Ht, k as vt, l as Pt, m as qt, M as Et, n as Dt, o as zt } from "./index-CncZkk5o.js";
2
- import { p as ja, L as ya } from "./index-CncZkk5o.js";
1
+ import { j as t, I as v, c as F, a as W, S as Z, T as Ot, C as gt, b as st, u as It, d as $t, D as Nt, e as wt, v as Ct, B as ct, f as mt, P as Bt, g as St, h as Tt, i as Ht, k as bt, l as Pt, m as qt, M as Et, n as Dt, o as zt, p as Ft } from "./index-BRelv8dA.js";
2
+ import { q as ya, L as ka } from "./index-BRelv8dA.js";
3
3
  import p from "react";
4
4
  import "@phosphor-icons/react";
5
- const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1ibay_15", Yt = "_subtitle_1ibay_22", Gt = "_alignmentContent_1ibay_29", Wt = "_alignments_1ibay_37", Xt = "_alignment_1ibay_8", Jt = "_circle_1ibay_60", Qt = "_paddings_1ibay_67", Kt = "_padding_1ibay_67", Zt = "_active_1ibay_91", te = "_input_1ibay_98", J = {
6
- wrapper: Ft,
7
- alignmentBlock: Vt,
8
- title: Ut,
9
- subtitle: Yt,
10
- alignmentContent: Gt,
11
- alignments: Wt,
12
- alignment: Xt,
13
- circle: Jt,
14
- paddings: Qt,
15
- padding: Kt,
16
- active: Zt,
17
- input: te
18
- }, ee = [
5
+ const Vt = "_wrapper_1ibay_2", Ut = "_alignmentBlock_1ibay_8", Yt = "_title_1ibay_15", Gt = "_subtitle_1ibay_22", Wt = "_alignmentContent_1ibay_29", Xt = "_alignments_1ibay_37", Jt = "_alignment_1ibay_8", Qt = "_circle_1ibay_60", Kt = "_paddings_1ibay_67", Zt = "_padding_1ibay_67", te = "_active_1ibay_91", ee = "_input_1ibay_98", J = {
6
+ wrapper: Vt,
7
+ alignmentBlock: Ut,
8
+ title: Yt,
9
+ subtitle: Gt,
10
+ alignmentContent: Wt,
11
+ alignments: Xt,
12
+ alignment: Jt,
13
+ circle: Qt,
14
+ paddings: Kt,
15
+ padding: Zt,
16
+ active: te,
17
+ input: ee
18
+ }, se = [
19
19
  "topLeft",
20
20
  "top",
21
21
  "topRight",
@@ -25,10 +25,10 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
25
25
  "bottomLeft",
26
26
  "bottom",
27
27
  "bottomRight"
28
- ], se = ["left", "top", "right", "bottom"], la = (r) => {
28
+ ], ne = ["left", "top", "right", "bottom"], ra = (r) => {
29
29
  const { alignment: a, padding: e, setPadding: s, setAlignment: i } = r;
30
- function o(f) {
31
- switch (f) {
30
+ function o(x) {
31
+ switch (x) {
32
32
  case "left":
33
33
  case "topLeft":
34
34
  case "bottomLeft":
@@ -45,8 +45,8 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
45
45
  return "TextAlignCenter";
46
46
  }
47
47
  }
48
- function l(f) {
49
- switch (f) {
48
+ function l(x) {
49
+ switch (x) {
50
50
  case "left":
51
51
  return "AlignLeft";
52
52
  case "right":
@@ -57,29 +57,29 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
57
57
  return "AlignBottom";
58
58
  }
59
59
  }
60
- const [d, n] = p.useState(null), [c, v] = p.useState(null);
60
+ const [d, n] = p.useState(null), [c, b] = p.useState(null);
61
61
  return /* @__PURE__ */ t.jsxs("div", { className: J.layout, children: [
62
62
  /* @__PURE__ */ t.jsx("h3", { className: J.title, children: "Layout" }),
63
63
  /* @__PURE__ */ t.jsxs("div", { className: J.alignmentBlock, children: [
64
64
  /* @__PURE__ */ t.jsx("h5", { className: J.subtitle, children: "Alignment" }),
65
65
  /* @__PURE__ */ t.jsxs("div", { className: J.alignmentContent, children: [
66
- /* @__PURE__ */ t.jsx("div", { className: J.alignments, children: ee.map((f) => /* @__PURE__ */ t.jsxs(
66
+ /* @__PURE__ */ t.jsx("div", { className: J.alignments, children: se.map((x) => /* @__PURE__ */ t.jsxs(
67
67
  "div",
68
68
  {
69
69
  onClick: () => {
70
- i(f);
70
+ i(x);
71
71
  },
72
72
  className: J.alignment,
73
73
  onMouseEnter: () => {
74
- n(f);
74
+ n(x);
75
75
  },
76
76
  onMouseLeave: () => {
77
77
  n(null);
78
78
  },
79
79
  children: [
80
- f !== a && d !== f && /* @__PURE__ */ t.jsx("div", { className: J.circle }),
81
- f !== a && d === f && /* @__PURE__ */ t.jsx(
82
- b,
80
+ x !== a && d !== x && /* @__PURE__ */ t.jsx("div", { className: J.circle }),
81
+ x !== a && d === x && /* @__PURE__ */ t.jsx(
82
+ v,
83
83
  {
84
84
  name: o(d),
85
85
  fill: "#c2c2c2",
@@ -87,8 +87,8 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
87
87
  height: 22
88
88
  }
89
89
  ),
90
- f === a && /* @__PURE__ */ t.jsx(
91
- b,
90
+ x === a && /* @__PURE__ */ t.jsx(
91
+ v,
92
92
  {
93
93
  name: o(a),
94
94
  fill: "#FF3F19",
@@ -98,25 +98,25 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
98
98
  )
99
99
  ]
100
100
  },
101
- f
101
+ x
102
102
  )) }),
103
- /* @__PURE__ */ t.jsx("div", { className: J.paddings, children: se.map((f) => /* @__PURE__ */ t.jsxs(
103
+ /* @__PURE__ */ t.jsx("div", { className: J.paddings, children: ne.map((x) => /* @__PURE__ */ t.jsxs(
104
104
  "label",
105
105
  {
106
106
  className: F(J.padding, {
107
- [J.active]: c === f
107
+ [J.active]: c === x
108
108
  }),
109
109
  onFocus: () => {
110
- v(f);
110
+ b(x);
111
111
  },
112
112
  onBlur: () => {
113
- v(null);
113
+ b(null);
114
114
  },
115
115
  children: [
116
116
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
117
- b,
117
+ v,
118
118
  {
119
- name: l(f),
119
+ name: l(x),
120
120
  width: 20,
121
121
  height: 20
122
122
  }
@@ -125,10 +125,10 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
125
125
  W,
126
126
  {
127
127
  type: "number",
128
- value: String(e[f]),
129
- onChange: (m) => s({
128
+ value: String(e[x]),
129
+ onChange: (h) => s({
130
130
  ...e,
131
- [f]: Number(m)
131
+ [x]: Number(h)
132
132
  }),
133
133
  paddingless: !0,
134
134
  borderless: !0
@@ -136,22 +136,22 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
136
136
  )
137
137
  ]
138
138
  },
139
- f
139
+ x
140
140
  )) })
141
141
  ] })
142
142
  ] })
143
143
  ] });
144
- }, ne = "_title_1jkiw_1", ie = "_subtitle_1jkiw_5", oe = "_header_1jkiw_12", ae = "_text_1jkiw_13", ce = "_top_1jkiw_20", le = "_itemsBlock_1jkiw_29", ht = {
145
- title: ne,
146
- subtitle: ie,
147
- header: oe,
148
- text: ae,
149
- top: ce,
150
- itemsBlock: le
151
- }, re = "_typeTexts_167ez_1", de = "_block_167ez_8", ue = "_active_167ez_25", jt = {
152
- typeTexts: re,
153
- block: de,
154
- active: ue
144
+ }, ie = "_title_1jkiw_1", oe = "_subtitle_1jkiw_5", ae = "_header_1jkiw_12", ce = "_text_1jkiw_13", le = "_top_1jkiw_20", re = "_itemsBlock_1jkiw_29", _t = {
145
+ title: ie,
146
+ subtitle: oe,
147
+ header: ae,
148
+ text: ce,
149
+ top: le,
150
+ itemsBlock: re
151
+ }, de = "_typeTexts_167ez_1", ue = "_block_167ez_8", me = "_active_167ez_25", jt = {
152
+ typeTexts: de,
153
+ block: ue,
154
+ active: me
155
155
  }, _e = ["bold", "italic", "underline", "strike-through", "code"], Lt = (r) => {
156
156
  const { typesText: a, setTypesText: e } = r;
157
157
  function s(i) {
@@ -183,7 +183,7 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
183
183
  o.push(i), e(o);
184
184
  },
185
185
  children: /* @__PURE__ */ t.jsx(
186
- b,
186
+ v,
187
187
  {
188
188
  name: s(i),
189
189
  fill: a.includes(i) ? "#252525" : "#757575",
@@ -205,9 +205,9 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
205
205
  title: d,
206
206
  subtitle: n = "Items"
207
207
  } = r;
208
- return /* @__PURE__ */ t.jsxs("div", { className: ht.text, children: [
209
- (d || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: ht.top, children: [
210
- d && /* @__PURE__ */ t.jsx("h3", { className: ht.title, children: d }),
208
+ return /* @__PURE__ */ t.jsxs("div", { className: _t.text, children: [
209
+ (d || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: _t.top, children: [
210
+ d && /* @__PURE__ */ t.jsx("h3", { className: _t.title, children: d }),
211
211
  e !== void 0 && s && /* @__PURE__ */ t.jsx(
212
212
  Z,
213
213
  {
@@ -216,8 +216,8 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
216
216
  }
217
217
  )
218
218
  ] }),
219
- /* @__PURE__ */ t.jsxs("div", { className: ht.itemsBlock, children: [
220
- /* @__PURE__ */ t.jsx("h5", { className: ht.subtitle, children: n }),
219
+ /* @__PURE__ */ t.jsxs("div", { className: _t.itemsBlock, children: [
220
+ /* @__PURE__ */ t.jsx("h5", { className: _t.subtitle, children: n }),
221
221
  /* @__PURE__ */ t.jsx(
222
222
  Ot,
223
223
  {
@@ -235,32 +235,32 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
235
235
  )
236
236
  ] })
237
237
  ] });
238
- }, he = "_title_v8pu8_1", me = "_subtitle_v8pu8_5", pe = "_header_v8pu8_12", ge = "_text_v8pu8_13", fe = "_productsBlock_v8pu8_14", xe = "_top_v8pu8_26", ve = "_itemsBlock_v8pu8_35", be = "_typeTexts_v8pu8_41", je = "_block_v8pu8_48", ye = "_active_v8pu8_61", ke = "_products_v8pu8_14", Ie = "_product_v8pu8_14", $e = "_button_v8pu8_80", Ne = "_disabled_v8pu8_91", we = "_image_v8pu8_95", Ce = "_info_v8pu8_102", Be = "_name_v8pu8_114", Se = "_buttons_v8pu8_118", Te = "_modal_v8pu8_125", Pe = "_link_v8pu8_145", Ae = "_modalOptions_v8pu8_151", Oe = "_addButton_v8pu8_164", qe = "_deleteButton_v8pu8_179", Ee = "_closeIcon_v8pu8_191", M = {
238
+ }, he = "_title_xma5o_1", pe = "_subtitle_xma5o_5", ge = "_header_xma5o_12", xe = "_text_xma5o_13", fe = "_productsBlock_xma5o_14", be = "_top_xma5o_26", ve = "_itemsBlock_xma5o_35", je = "_typeTexts_xma5o_41", ye = "_block_xma5o_48", ke = "_active_xma5o_61", Ie = "_products_xma5o_14", $e = "_product_xma5o_14", Ne = "_button_xma5o_80", we = "_disabled_xma5o_91", Ce = "_image_xma5o_95", Be = "_info_xma5o_102", Se = "_name_xma5o_114", Te = "_buttons_xma5o_118", Pe = "_modal_xma5o_125", Ae = "_link_xma5o_145", Oe = "_modalOptions_xma5o_151", qe = "_addButton_xma5o_165", Ee = "_deleteButton_xma5o_180", De = "_closeIcon_xma5o_192", M = {
239
239
  title: he,
240
- subtitle: me,
241
- header: pe,
242
- text: ge,
240
+ subtitle: pe,
241
+ header: ge,
242
+ text: xe,
243
243
  productsBlock: fe,
244
- top: xe,
244
+ top: be,
245
245
  itemsBlock: ve,
246
- typeTexts: be,
247
- block: je,
248
- active: ye,
249
- products: ke,
250
- product: Ie,
251
- button: $e,
252
- disabled: Ne,
253
- image: we,
254
- info: Ce,
255
- name: Be,
256
- buttons: Se,
257
- modal: Te,
258
- link: Pe,
259
- modalOptions: Ae,
260
- addButton: Oe,
261
- deleteButton: qe,
262
- closeIcon: Ee
263
- }, De = p.forwardRef(
246
+ typeTexts: je,
247
+ block: ye,
248
+ active: ke,
249
+ products: Ie,
250
+ product: $e,
251
+ button: Ne,
252
+ disabled: we,
253
+ image: Ce,
254
+ info: Be,
255
+ name: Se,
256
+ buttons: Te,
257
+ modal: Pe,
258
+ link: Ae,
259
+ modalOptions: Oe,
260
+ addButton: qe,
261
+ deleteButton: Ee,
262
+ closeIcon: De
263
+ }, Le = p.forwardRef(
264
264
  (r, a) => {
265
265
  const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: o, setIsOpenModal: l } = r;
266
266
  function d(n, c) {
@@ -282,7 +282,7 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
282
282
  /* @__PURE__ */ t.jsxs("div", { className: M.top, children: [
283
283
  /* @__PURE__ */ t.jsx("h3", { className: M.title, children: d(e.name, 20) }),
284
284
  /* @__PURE__ */ t.jsx("div", { className: M.closeIcon, children: /* @__PURE__ */ t.jsx(
285
- b,
285
+ v,
286
286
  {
287
287
  name: "X",
288
288
  height: 20,
@@ -301,11 +301,11 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
301
301
  label: "Put up an attractive image",
302
302
  activeImage: e[n.field],
303
303
  onChange: (c) => {
304
- const v = {
304
+ const b = {
305
305
  ...e,
306
306
  [n.field]: c
307
307
  };
308
- s(v);
308
+ s(b);
309
309
  }
310
310
  },
311
311
  String(n.field)
@@ -316,19 +316,19 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
316
316
  {
317
317
  typesText: e[n.field.type],
318
318
  setTypesText: (c) => {
319
- const v = {
319
+ const b = {
320
320
  ...e,
321
321
  [n.field.type]: c
322
322
  };
323
- s(v);
323
+ s(b);
324
324
  },
325
325
  text: e[n.field.text] || "",
326
326
  setText: (c) => {
327
- const v = {
327
+ const b = {
328
328
  ...e,
329
329
  [n.field.text]: c
330
330
  };
331
- s(v);
331
+ s(b);
332
332
  },
333
333
  subtitle: n.label
334
334
  }
@@ -338,11 +338,11 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
338
338
  W,
339
339
  {
340
340
  onChange: (c) => {
341
- const v = {
341
+ const b = {
342
342
  ...e,
343
343
  [n.field]: c
344
344
  };
345
- s(v);
345
+ s(b);
346
346
  },
347
347
  value: e[n.field] || "",
348
348
  label: n.label,
@@ -355,11 +355,11 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
355
355
  W,
356
356
  {
357
357
  onChange: (c) => {
358
- const v = {
358
+ const b = {
359
359
  ...e,
360
360
  [n.field.text]: c
361
361
  };
362
- s(v);
362
+ s(b);
363
363
  },
364
364
  value: e[n.field.text] || "",
365
365
  label: n.inputLabel,
@@ -372,26 +372,26 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
372
372
  current: !!e[n.field.switch] || !1,
373
373
  label: n.switchLabel,
374
374
  onChange: (c) => {
375
- const v = {
375
+ const b = {
376
376
  ...e,
377
377
  [n.field.switch]: c
378
378
  };
379
- s(v);
379
+ s(b);
380
380
  }
381
381
  }
382
382
  )
383
383
  ] });
384
384
  if (n.type === "list")
385
385
  return /* @__PURE__ */ t.jsx(
386
- ze,
386
+ Fe,
387
387
  {
388
388
  items: e[n.field] || [],
389
389
  setItems: (c) => {
390
- const v = {
390
+ const b = {
391
391
  ...e,
392
392
  [n.field]: c
393
393
  };
394
- s(v);
394
+ s(b);
395
395
  },
396
396
  itemsType: "select",
397
397
  draggable: n.draggable || !1,
@@ -408,15 +408,15 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
408
408
  {
409
409
  options: n.itemsOptions,
410
410
  onChange: (c) => {
411
- const v = {
411
+ const b = {
412
412
  ...e,
413
413
  [n.field]: c
414
414
  };
415
- s(v);
415
+ s(b);
416
416
  },
417
417
  label: n.label,
418
418
  value: e[n.field] || "String",
419
- leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(b, { name: e[n.field] })
419
+ leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(v, { name: e[n.field] })
420
420
  }
421
421
  );
422
422
  }) })
@@ -424,11 +424,11 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
424
424
  }
425
425
  );
426
426
  }
427
- ), Le = "_other_g74jx_1", Re = "_subtitle_g74jx_7", Me = "_items_g74jx_14", yt = {
428
- other: Le,
429
- subtitle: Re,
430
- items: Me
431
- }, bt = (r) => {
427
+ ), Re = "_other_g74jx_1", Me = "_subtitle_g74jx_7", He = "_items_g74jx_14", yt = {
428
+ other: Re,
429
+ subtitle: Me,
430
+ items: He
431
+ }, vt = (r) => {
432
432
  const { items: a, title: e = "Other" } = r;
433
433
  return /* @__PURE__ */ t.jsxs("div", { className: yt.other, children: [
434
434
  /* @__PURE__ */ t.jsx("h5", { className: yt.subtitle, children: e }),
@@ -445,7 +445,7 @@ const Ft = "_wrapper_1ibay_2", Vt = "_alignmentBlock_1ibay_8", Ut = "_title_1iba
445
445
  )) })
446
446
  ] });
447
447
  };
448
- function He({ product: r, children: a }) {
448
+ function ze({ product: r, children: a }) {
449
449
  const {
450
450
  attributes: e,
451
451
  listeners: s,
@@ -471,7 +471,7 @@ function He({ product: r, children: a }) {
471
471
  }
472
472
  );
473
473
  }
474
- const ze = (r) => {
474
+ const Fe = (r) => {
475
475
  const {
476
476
  isActiveItems: a,
477
477
  setIsActiveItems: e,
@@ -482,10 +482,10 @@ const ze = (r) => {
482
482
  subtitle: d,
483
483
  editable: n = !0,
484
484
  draggable: c = !1,
485
- withImage: v = !1,
486
- deletable: f = !0,
487
- addable: m = !0,
488
- itemsType: h,
485
+ withImage: b = !1,
486
+ deletable: x = !0,
487
+ addable: h = !0,
488
+ itemsType: _,
489
489
  itemsPlaceholder: g = "",
490
490
  itemsOptions: u,
491
491
  hasRangeSelector: w = !1,
@@ -494,7 +494,7 @@ const ze = (r) => {
494
494
  addableOptions: L = {},
495
495
  limit: B,
496
496
  autoScrollInterval: S
497
- } = r, [x, D] = p.useState(null), [X, tt] = p.useState({
497
+ } = r, [f, D] = p.useState(null), [X, tt] = p.useState({
498
498
  top: 0,
499
499
  left: 0
500
500
  }), [y, $] = p.useState(null), E = p.useRef(null), [G, A] = p.useState(!1), H = It(
@@ -505,47 +505,47 @@ const ze = (r) => {
505
505
  })
506
506
  );
507
507
  p.useEffect(() => {
508
- const _ = () => {
508
+ const m = () => {
509
509
  D(null), A(!1);
510
510
  };
511
- return document.body.addEventListener("click", _), D(null), A(!1), () => {
512
- D(null), A(!1), document.body.removeEventListener("click", _);
511
+ return document.body.addEventListener("click", m), D(null), A(!1), () => {
512
+ D(null), A(!1), document.body.removeEventListener("click", m);
513
513
  };
514
514
  }, []), p.useEffect(() => {
515
- if (x) {
516
- const _ = [...s].map((I) => I.id === x.id ? x : I);
517
- i(_);
515
+ if (f) {
516
+ const m = [...s].map((I) => I.id === f.id ? f : I);
517
+ i(m);
518
518
  }
519
- }, [x]), p.useEffect(() => {
519
+ }, [f]), p.useEffect(() => {
520
520
  if (E.current && y) {
521
- const _ = E.current.getBoundingClientRect().height, I = window.innerHeight;
521
+ const m = E.current.getBoundingClientRect().height, I = window.innerHeight;
522
522
  let T = y.top;
523
- T + _ > I + window.scrollY - 200 && (T = I + window.scrollY - _ - 200), T < 0 && (T = 10), tt({
523
+ T + m > I + window.scrollY - 200 && (T = I + window.scrollY - m - 200), T < 0 && (T = 10), tt({
524
524
  top: T,
525
525
  left: y.left
526
526
  });
527
527
  }
528
528
  }, [E.current, y]);
529
- const K = (_, I) => {
530
- _.stopPropagation();
531
- const T = _.target.getBoundingClientRect();
529
+ const K = (m, I) => {
530
+ m.stopPropagation();
531
+ const T = m.target.getBoundingClientRect();
532
532
  $({
533
533
  top: T.top + window.scrollY,
534
534
  left: T.left - 30
535
535
  }), D(I), A(!0);
536
536
  };
537
- function lt(_) {
538
- if (v)
539
- return _ ? /* @__PURE__ */ t.jsx(
537
+ function lt(m) {
538
+ if (b)
539
+ return m ? /* @__PURE__ */ t.jsx(
540
540
  "img",
541
541
  {
542
- src: `https://imagedelivery.net/${_[0]}/w=1000`,
542
+ src: `https://imagedelivery.net/${m[0]}/w=1000`,
543
543
  alt: "image",
544
544
  width: 16,
545
545
  height: 16
546
546
  }
547
547
  ) : /* @__PURE__ */ t.jsx(
548
- b,
548
+ v,
549
549
  {
550
550
  name: "Image",
551
551
  width: 16,
@@ -554,8 +554,8 @@ const ze = (r) => {
554
554
  }
555
555
  );
556
556
  }
557
- const j = (_) => {
558
- const { active: I, over: T } = _;
557
+ const j = (m) => {
558
+ const { active: I, over: T } = m;
559
559
  if (T && I.id !== T.id) {
560
560
  const R = s.findIndex((P) => P.id === I.id), U = s.findIndex((P) => P.id === T.id);
561
561
  if (R !== -1 && U !== -1) {
@@ -563,11 +563,11 @@ const ze = (r) => {
563
563
  P.splice(U, 0, rt), i(P);
564
564
  }
565
565
  }
566
- }, O = (_, I) => {
566
+ }, O = (m, I) => {
567
567
  var R, U;
568
568
  const T = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
569
569
  c && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
570
- b,
570
+ v,
571
571
  {
572
572
  name: "DotsSixVertical",
573
573
  hoverable: !0,
@@ -575,92 +575,92 @@ const ze = (r) => {
575
575
  height: 20
576
576
  }
577
577
  ) }),
578
- h === "select" && u && /* @__PURE__ */ t.jsx(
578
+ _ === "select" && u && /* @__PURE__ */ t.jsx(
579
579
  st,
580
580
  {
581
581
  onChange: (P) => {
582
- const rt = [...s], ut = u.find((ft) => ft.name === P);
582
+ const rt = [...s], ut = u.find((xt) => xt.name === P);
583
583
  if (!ut) return;
584
- const dt = rt.map((ft) => ft.id === _.id ? {
584
+ const dt = rt.map((xt) => xt.id === m.id ? {
585
585
  ...ut,
586
586
  name: P
587
- } : ft);
587
+ } : xt);
588
588
  D({
589
- ..._,
589
+ ...m,
590
590
  name: P
591
591
  }), i([...dt]);
592
592
  },
593
- value: _.name,
593
+ value: m.name,
594
594
  options: u.filter((P) => !s.find((rt) => rt.name === P.name)).map((P) => P.name),
595
- leftAddon: lt(_.images)
595
+ leftAddon: lt(m.images)
596
596
  }
597
597
  ),
598
- h === "input" && /* @__PURE__ */ t.jsx(
598
+ _ === "input" && /* @__PURE__ */ t.jsx(
599
599
  W,
600
600
  {
601
601
  onChange: (P) => {
602
- const ut = [...s].map((dt) => dt.id === _.id ? {
603
- ..._,
602
+ const ut = [...s].map((dt) => dt.id === m.id ? {
603
+ ...m,
604
604
  name: P
605
605
  } : dt);
606
606
  i([...ut]);
607
607
  },
608
- value: _.name,
608
+ value: m.name,
609
609
  placeholder: g
610
610
  }
611
611
  ),
612
- h === "image" && /* @__PURE__ */ t.jsx(
612
+ _ === "image" && /* @__PURE__ */ t.jsx(
613
613
  gt,
614
614
  {
615
615
  onChange: (P) => {
616
- const ut = [...s].map((dt) => dt.id === _.id ? {
617
- ..._,
616
+ const ut = [...s].map((dt) => dt.id === m.id ? {
617
+ ...m,
618
618
  images: P
619
619
  } : dt);
620
620
  i([...ut]);
621
621
  },
622
- activeImage: (R = s.find((P) => P.id === _.id)) != null && R.images ? (U = s.find((P) => P.id === _.id)) == null ? void 0 : U.images[0] : void 0
622
+ activeImage: (R = s.find((P) => P.id === m.id)) != null && R.images ? (U = s.find((P) => P.id === m.id)) == null ? void 0 : U.images[0] : void 0
623
623
  }
624
624
  ),
625
625
  /* @__PURE__ */ t.jsxs("div", { className: M.buttons, children: [
626
626
  n && /* @__PURE__ */ t.jsx("div", { className: M.deleteButton, children: /* @__PURE__ */ t.jsx(
627
- b,
627
+ v,
628
628
  {
629
629
  name: "Sliders",
630
630
  hoverable: !0,
631
631
  width: 20,
632
632
  height: 20,
633
- onClick: (P) => K(P, _)
633
+ onClick: (P) => K(P, m)
634
634
  }
635
635
  ) }),
636
- f && /* @__PURE__ */ t.jsx("div", { className: M.deleteButton, children: /* @__PURE__ */ t.jsx(
637
- b,
636
+ x && /* @__PURE__ */ t.jsx("div", { className: M.deleteButton, children: /* @__PURE__ */ t.jsx(
637
+ v,
638
638
  {
639
639
  name: "Trash",
640
640
  hoverable: !0,
641
641
  width: 20,
642
642
  height: 20,
643
643
  fill: "#C12A2A",
644
- onClick: () => i(s.filter((P) => P.id !== _.id))
644
+ onClick: () => i(s.filter((P) => P.id !== m.id))
645
645
  }
646
646
  ) })
647
647
  ] })
648
648
  ] });
649
649
  return c ? /* @__PURE__ */ t.jsx(
650
- He,
650
+ ze,
651
651
  {
652
- product: _,
652
+ product: m,
653
653
  index: I,
654
654
  children: T
655
655
  },
656
- _.id
656
+ m.id
657
657
  ) : /* @__PURE__ */ t.jsx(
658
658
  "div",
659
659
  {
660
660
  className: M.product,
661
661
  children: T
662
662
  },
663
- _.id
663
+ m.id
664
664
  );
665
665
  };
666
666
  return /* @__PURE__ */ t.jsxs("div", { className: M.productsBlock, children: [
@@ -670,15 +670,15 @@ const ze = (r) => {
670
670
  Z,
671
671
  {
672
672
  current: a,
673
- onChange: (_) => e == null ? void 0 : e(_)
673
+ onChange: (m) => e == null ? void 0 : e(m)
674
674
  }
675
675
  )
676
676
  ] }),
677
- x && n && k && G && /* @__PURE__ */ t.jsx(
678
- De,
677
+ f && n && k && G && /* @__PURE__ */ t.jsx(
678
+ Le,
679
679
  {
680
680
  ref: E,
681
- activeItem: x,
681
+ activeItem: f,
682
682
  setActiveItem: D,
683
683
  popupPosition: X,
684
684
  modalOptions: k,
@@ -696,14 +696,14 @@ const ze = (r) => {
696
696
  children: /* @__PURE__ */ t.jsx(
697
697
  wt,
698
698
  {
699
- items: s.map((_) => _.id),
699
+ items: s.map((m) => m.id),
700
700
  strategy: Ct,
701
- children: s.map((_, I) => O(_, I))
701
+ children: s.map((m, I) => O(m, I))
702
702
  }
703
703
  )
704
704
  }
705
- ) : s.map((_, I) => O(_, I)),
706
- m && /* @__PURE__ */ t.jsx(
705
+ ) : s.map((m, I) => O(m, I)),
706
+ h && /* @__PURE__ */ t.jsx(
707
707
  "div",
708
708
  {
709
709
  style: {
@@ -721,7 +721,7 @@ const ze = (r) => {
721
721
  size: "s",
722
722
  disabled: !!(B && B <= s.length || s.length === (u == null ? void 0 : u.length)),
723
723
  onClick: () => {
724
- const _ = [...s];
724
+ const m = [...s];
725
725
  let I = null;
726
726
  if (u) {
727
727
  for (let T = 0; T < u.length; T++)
@@ -730,19 +730,19 @@ const ze = (r) => {
730
730
  break;
731
731
  }
732
732
  }
733
- h === "select" && u ? _.push({
733
+ _ === "select" && u ? m.push({
734
734
  name: I ? I.name : u[0].name,
735
735
  id: (I == null ? void 0 : I.id) || u[0].id,
736
736
  ...L
737
- }) : h === "input" ? _.push({
737
+ }) : _ === "input" ? m.push({
738
738
  name: "",
739
- id: _t(),
739
+ id: mt(),
740
740
  ...L
741
- }) : _.push({
741
+ }) : m.push({
742
742
  name: `Image ${s.length + 1}`,
743
- id: _t(),
743
+ id: mt(),
744
744
  ...L
745
- }), i(_);
745
+ }), i(m);
746
746
  },
747
747
  style: {
748
748
  width: "fit-content"
@@ -750,7 +750,7 @@ const ze = (r) => {
750
750
  children: /* @__PURE__ */ t.jsxs("div", { className: M.addButton, children: [
751
751
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
752
752
  /* @__PURE__ */ t.jsx(
753
- b,
753
+ v,
754
754
  {
755
755
  name: "Plus",
756
756
  width: 16,
@@ -763,14 +763,14 @@ const ze = (r) => {
763
763
  }
764
764
  )
765
765
  ] }),
766
- o !== void 0 && /* @__PURE__ */ t.jsx(bt, { items: o }),
766
+ o !== void 0 && /* @__PURE__ */ t.jsx(vt, { items: o }),
767
767
  S !== void 0 && /* @__PURE__ */ t.jsx(
768
768
  W,
769
769
  {
770
770
  label: "Auto scroll interval",
771
771
  type: "number",
772
772
  value: String(S.scrollInterval),
773
- onChange: (_) => S.setScrollInterval(Number(_)),
773
+ onChange: (m) => S.setScrollInterval(Number(m)),
774
774
  min: 0.1,
775
775
  max: 100,
776
776
  style: {
@@ -780,31 +780,31 @@ const ze = (r) => {
780
780
  }
781
781
  )
782
782
  ] });
783
- }, Fe = "_title_82zux_1", Ve = "_subtitle_82zux_5", Ue = "_header_82zux_12", Ye = "_text_82zux_13", Ge = "_productsBlock_82zux_14", We = "_top_82zux_26", Xe = "_itemsBlock_82zux_35", Je = "_typeTexts_82zux_41", Qe = "_block_82zux_48", Ke = "_active_82zux_61", Ze = "_products_82zux_14", ts = "_product_82zux_14", es = "_button_82zux_80", ss = "_disabled_82zux_91", ns = "_image_82zux_95", is = "_info_82zux_102", os = "_name_82zux_114", as = "_buttons_82zux_118", cs = "_modal_82zux_125", ls = "_link_82zux_145", rs = "_modalOptions_82zux_151", ds = "_addButton_82zux_157", us = "_deleteButton_82zux_179", Q = {
784
- title: Fe,
785
- subtitle: Ve,
786
- header: Ue,
787
- text: Ye,
788
- productsBlock: Ge,
789
- top: We,
790
- itemsBlock: Xe,
791
- typeTexts: Je,
792
- block: Qe,
793
- active: Ke,
794
- products: Ze,
795
- product: ts,
796
- button: es,
797
- disabled: ss,
798
- image: ns,
799
- info: is,
800
- name: os,
801
- buttons: as,
802
- modal: cs,
803
- link: ls,
804
- modalOptions: rs,
805
- addButton: ds,
806
- deleteButton: us
807
- }, ra = (r) => {
783
+ }, Ve = "_title_82zux_1", Ue = "_subtitle_82zux_5", Ye = "_header_82zux_12", Ge = "_text_82zux_13", We = "_productsBlock_82zux_14", Xe = "_top_82zux_26", Je = "_itemsBlock_82zux_35", Qe = "_typeTexts_82zux_41", Ke = "_block_82zux_48", Ze = "_active_82zux_61", ts = "_products_82zux_14", es = "_product_82zux_14", ss = "_button_82zux_80", ns = "_disabled_82zux_91", is = "_image_82zux_95", os = "_info_82zux_102", as = "_name_82zux_114", cs = "_buttons_82zux_118", ls = "_modal_82zux_125", rs = "_link_82zux_145", ds = "_modalOptions_82zux_151", us = "_addButton_82zux_157", ms = "_deleteButton_82zux_179", Q = {
784
+ title: Ve,
785
+ subtitle: Ue,
786
+ header: Ye,
787
+ text: Ge,
788
+ productsBlock: We,
789
+ top: Xe,
790
+ itemsBlock: Je,
791
+ typeTexts: Qe,
792
+ block: Ke,
793
+ active: Ze,
794
+ products: ts,
795
+ product: es,
796
+ button: ss,
797
+ disabled: ns,
798
+ image: is,
799
+ info: os,
800
+ name: as,
801
+ buttons: cs,
802
+ modal: ls,
803
+ link: rs,
804
+ modalOptions: ds,
805
+ addButton: us,
806
+ deleteButton: ms
807
+ }, da = (r) => {
808
808
  const {
809
809
  isActiveItems: a,
810
810
  setIsActiveItems: e,
@@ -815,10 +815,10 @@ const ze = (r) => {
815
815
  subtitle: d,
816
816
  draggable: n = !1,
817
817
  withImage: c = !1,
818
- addable: v = !0,
819
- itemsOptions: f,
820
- hasRangeSelector: m = !1,
821
- rangeSelectorOptions: h,
818
+ addable: b = !0,
819
+ itemsOptions: x,
820
+ hasRangeSelector: h = !1,
821
+ rangeSelectorOptions: _,
822
822
  limit: g,
823
823
  autoScrollInterval: u
824
824
  } = r;
@@ -833,7 +833,7 @@ const ze = (r) => {
833
833
  height: 16
834
834
  }
835
835
  ) : /* @__PURE__ */ t.jsx(
836
- b,
836
+ v,
837
837
  {
838
838
  name: "Image",
839
839
  width: 16,
@@ -843,11 +843,11 @@ const ze = (r) => {
843
843
  );
844
844
  }
845
845
  const q = (k) => {
846
- const L = f.find((S) => S.id === k);
846
+ const L = x.find((S) => S.id === k);
847
847
  if (!L) return;
848
848
  const B = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
849
849
  n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
850
- b,
850
+ v,
851
851
  {
852
852
  name: "DotsSixVertical",
853
853
  hoverable: !0,
@@ -859,18 +859,18 @@ const ze = (r) => {
859
859
  st,
860
860
  {
861
861
  onChange: (S) => {
862
- const x = [...s], D = f.find((y) => y.name === S);
862
+ const f = [...s], D = x.find((y) => y.name === S);
863
863
  if (!D) return;
864
- const X = D.id, tt = x.map((y) => y === k ? X : y);
864
+ const X = D.id, tt = f.map((y) => y === k ? X : y);
865
865
  i([...tt]);
866
866
  },
867
867
  value: L.name,
868
- options: f.filter((S) => !s.find((x) => x === S.id)).map((S) => S.name),
868
+ options: x.filter((S) => !s.find((f) => f === S.id)).map((S) => S.name),
869
869
  leftAddon: w(L.images)
870
870
  }
871
871
  ),
872
872
  /* @__PURE__ */ t.jsx("div", { className: Q.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Q.deleteButton, children: /* @__PURE__ */ t.jsx(
873
- b,
873
+ v,
874
874
  {
875
875
  name: "Trash",
876
876
  hoverable: !0,
@@ -901,11 +901,11 @@ const ze = (r) => {
901
901
  }
902
902
  )
903
903
  ] }),
904
- m && h && /* @__PURE__ */ t.jsx(At, { ...h }),
904
+ h && _ && /* @__PURE__ */ t.jsx(At, { ..._ }),
905
905
  /* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
906
906
  d && /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: d }),
907
907
  s.map((k) => q(k)),
908
- v && /* @__PURE__ */ t.jsx(
908
+ b && /* @__PURE__ */ t.jsx(
909
909
  "div",
910
910
  {
911
911
  style: {
@@ -919,21 +919,21 @@ const ze = (r) => {
919
919
  {
920
920
  withoutHover: !0,
921
921
  className: F(Q.button, {
922
- [Q.disabled]: !!(g && g <= s.length || s.length === f.length)
922
+ [Q.disabled]: !!(g && g <= s.length || s.length === x.length)
923
923
  }),
924
924
  size: "s",
925
- disabled: !!(g && g <= s.length || s.length === f.length),
925
+ disabled: !!(g && g <= s.length || s.length === x.length),
926
926
  onClick: () => {
927
927
  const k = [...s];
928
928
  let L = null;
929
- if (f) {
930
- for (let B = 0; B < f.length; B++)
931
- if (!s.find((S) => S === f[B].id)) {
932
- L = f[B];
929
+ if (x) {
930
+ for (let B = 0; B < x.length; B++)
931
+ if (!s.find((S) => S === x[B].id)) {
932
+ L = x[B];
933
933
  break;
934
934
  }
935
935
  }
936
- k.push((L == null ? void 0 : L.id) || f[0].id), i(k);
936
+ k.push((L == null ? void 0 : L.id) || x[0].id), i(k);
937
937
  },
938
938
  style: {
939
939
  width: "fit-content"
@@ -941,7 +941,7 @@ const ze = (r) => {
941
941
  children: /* @__PURE__ */ t.jsxs("div", { className: Q.addButton, children: [
942
942
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
943
943
  /* @__PURE__ */ t.jsx(
944
- b,
944
+ v,
945
945
  {
946
946
  name: "Plus",
947
947
  width: 16,
@@ -954,7 +954,7 @@ const ze = (r) => {
954
954
  }
955
955
  )
956
956
  ] }),
957
- o !== void 0 && /* @__PURE__ */ t.jsx(bt, { items: o }),
957
+ o !== void 0 && /* @__PURE__ */ t.jsx(vt, { items: o }),
958
958
  u !== void 0 && /* @__PURE__ */ t.jsx(
959
959
  W,
960
960
  {
@@ -971,32 +971,32 @@ const ze = (r) => {
971
971
  }
972
972
  )
973
973
  ] });
974
- }, _s = "_title_1lgwl_1", hs = "_subtitle_1lgwl_5", ms = "_header_1lgwl_12", ps = "_text_1lgwl_13", gs = "_productsBlock_1lgwl_14", fs = "_top_1lgwl_26", xs = "_itemsBlock_1lgwl_35", vs = "_typeTexts_1lgwl_41", bs = "_block_1lgwl_48", js = "_active_1lgwl_61", ys = "_products_1lgwl_14", ks = "_product_1lgwl_14", Is = "_button_1lgwl_80", $s = "_disabled_1lgwl_91", Ns = "_image_1lgwl_95", ws = "_info_1lgwl_102", Cs = "_name_1lgwl_114", Bs = "_buttons_1lgwl_118", Ss = "_modal_1lgwl_125", Ts = "_link_1lgwl_146", Ps = "_modalOptions_1lgwl_152", As = "_addButton_1lgwl_164", Os = "_deleteButton_1lgwl_179", qs = "_closeIcon_1lgwl_191", z = {
974
+ }, _s = "_title_wjbkg_1", hs = "_subtitle_wjbkg_5", ps = "_header_wjbkg_12", gs = "_text_wjbkg_13", xs = "_productsBlock_wjbkg_14", fs = "_top_wjbkg_26", bs = "_itemsBlock_wjbkg_35", vs = "_typeTexts_wjbkg_41", js = "_block_wjbkg_48", ys = "_active_wjbkg_61", ks = "_products_wjbkg_14", Is = "_product_wjbkg_14", $s = "_button_wjbkg_80", Ns = "_disabled_wjbkg_91", ws = "_image_wjbkg_95", Cs = "_info_wjbkg_102", Bs = "_name_wjbkg_114", Ss = "_buttons_wjbkg_118", Ts = "_modal_wjbkg_125", Ps = "_link_wjbkg_146", As = "_modalOptions_wjbkg_152", Os = "_addButton_wjbkg_165", qs = "_deleteButton_wjbkg_180", Es = "_closeIcon_wjbkg_192", z = {
975
975
  title: _s,
976
976
  subtitle: hs,
977
- header: ms,
978
- text: ps,
979
- productsBlock: gs,
977
+ header: ps,
978
+ text: gs,
979
+ productsBlock: xs,
980
980
  top: fs,
981
- itemsBlock: xs,
981
+ itemsBlock: bs,
982
982
  typeTexts: vs,
983
- block: bs,
984
- active: js,
985
- products: ys,
986
- product: ks,
987
- button: Is,
988
- disabled: $s,
989
- image: Ns,
990
- info: ws,
991
- name: Cs,
992
- buttons: Bs,
993
- modal: Ss,
994
- link: Ts,
995
- modalOptions: Ps,
996
- addButton: As,
997
- deleteButton: Os,
998
- closeIcon: qs
999
- }, Es = p.forwardRef(
983
+ block: js,
984
+ active: ys,
985
+ products: ks,
986
+ product: Is,
987
+ button: $s,
988
+ disabled: Ns,
989
+ image: ws,
990
+ info: Cs,
991
+ name: Bs,
992
+ buttons: Ss,
993
+ modal: Ts,
994
+ link: Ps,
995
+ modalOptions: As,
996
+ addButton: Os,
997
+ deleteButton: qs,
998
+ closeIcon: Es
999
+ }, Ds = p.forwardRef(
1000
1000
  (r, a) => {
1001
1001
  const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: o, setIsOpenModal: l } = r;
1002
1002
  function d(n, c) {
@@ -1018,7 +1018,7 @@ const ze = (r) => {
1018
1018
  /* @__PURE__ */ t.jsxs("div", { className: z.top, children: [
1019
1019
  /* @__PURE__ */ t.jsx("h3", { className: z.title, children: d(e.name, 20) }),
1020
1020
  /* @__PURE__ */ t.jsx("div", { className: z.closeIcon, children: /* @__PURE__ */ t.jsx(
1021
- b,
1021
+ v,
1022
1022
  {
1023
1023
  name: "X",
1024
1024
  height: 20,
@@ -1038,11 +1038,11 @@ const ze = (r) => {
1038
1038
  label: "Put up an attractive image",
1039
1039
  activeImage: e[n.field],
1040
1040
  onChange: (c) => {
1041
- const v = {
1041
+ const b = {
1042
1042
  ...e,
1043
1043
  [n.field]: c
1044
1044
  };
1045
- s(v);
1045
+ s(b);
1046
1046
  }
1047
1047
  },
1048
1048
  String(n.field)
@@ -1053,19 +1053,19 @@ const ze = (r) => {
1053
1053
  {
1054
1054
  typesText: e[n.field.type],
1055
1055
  setTypesText: (c) => {
1056
- const v = {
1056
+ const b = {
1057
1057
  ...e,
1058
1058
  [n.field.type]: c
1059
1059
  };
1060
- s(v);
1060
+ s(b);
1061
1061
  },
1062
1062
  text: e[n.field.text] || "",
1063
1063
  setText: (c) => {
1064
- const v = {
1064
+ const b = {
1065
1065
  ...e,
1066
1066
  [n.field.text]: c
1067
1067
  };
1068
- s(v);
1068
+ s(b);
1069
1069
  },
1070
1070
  subtitle: n.label
1071
1071
  }
@@ -1075,11 +1075,11 @@ const ze = (r) => {
1075
1075
  W,
1076
1076
  {
1077
1077
  onChange: (c) => {
1078
- const v = {
1078
+ const b = {
1079
1079
  ...e,
1080
1080
  [n.field]: c
1081
1081
  };
1082
- s(v);
1082
+ s(b);
1083
1083
  },
1084
1084
  value: e[n.field] || "",
1085
1085
  label: n.label,
@@ -1092,11 +1092,11 @@ const ze = (r) => {
1092
1092
  W,
1093
1093
  {
1094
1094
  onChange: (c) => {
1095
- const v = {
1095
+ const b = {
1096
1096
  ...e,
1097
1097
  [n.field.text]: c
1098
1098
  };
1099
- s(v);
1099
+ s(b);
1100
1100
  },
1101
1101
  value: e[n.field.text] || "",
1102
1102
  label: n.inputLabel,
@@ -1109,11 +1109,11 @@ const ze = (r) => {
1109
1109
  current: !!e[n.field.switch] || !1,
1110
1110
  label: n.switchLabel,
1111
1111
  onChange: (c) => {
1112
- const v = {
1112
+ const b = {
1113
1113
  ...e,
1114
1114
  [n.field.switch]: c
1115
1115
  };
1116
- s(v);
1116
+ s(b);
1117
1117
  }
1118
1118
  }
1119
1119
  )
@@ -1124,15 +1124,15 @@ const ze = (r) => {
1124
1124
  {
1125
1125
  options: n.itemsOptions,
1126
1126
  onChange: (c) => {
1127
- const v = {
1127
+ const b = {
1128
1128
  ...e,
1129
1129
  [n.field]: c
1130
1130
  };
1131
- s(v);
1131
+ s(b);
1132
1132
  },
1133
1133
  label: n.label,
1134
1134
  value: e[n.field] || "String",
1135
- leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(b, { name: e[n.field] })
1135
+ leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(v, { name: e[n.field] })
1136
1136
  }
1137
1137
  );
1138
1138
  }) })
@@ -1141,7 +1141,7 @@ const ze = (r) => {
1141
1141
  );
1142
1142
  }
1143
1143
  );
1144
- function Ds(r) {
1144
+ function Ls(r) {
1145
1145
  const { product: a, children: e } = r, { attributes: s, listeners: i, setNodeRef: o, transform: l, transition: d, isDragging: n } = St({
1146
1146
  id: a.id
1147
1147
  }), c = {
@@ -1160,7 +1160,7 @@ function Ds(r) {
1160
1160
  }
1161
1161
  );
1162
1162
  }
1163
- const da = (r) => {
1163
+ const ua = (r) => {
1164
1164
  const {
1165
1165
  isActiveItems: a,
1166
1166
  setIsActiveItems: e,
@@ -1171,17 +1171,17 @@ const da = (r) => {
1171
1171
  subtitle: d,
1172
1172
  editable: n = !0,
1173
1173
  draggable: c = !1,
1174
- withImage: v = !1,
1175
- deletable: f = !0,
1176
- addable: m = !0,
1177
- itemsType: h,
1174
+ withImage: b = !1,
1175
+ deletable: x = !0,
1176
+ addable: h = !0,
1177
+ itemsType: _,
1178
1178
  itemsPlaceholder: g = "",
1179
1179
  itemsOptions: u,
1180
1180
  hasRangeSelector: w = !1,
1181
1181
  rangeSelectorOptions: q,
1182
1182
  modalOptions: k,
1183
1183
  addableOptions: L = {}
1184
- } = r, [B, S] = p.useState(null), [x, D] = p.useState({
1184
+ } = r, [B, S] = p.useState(null), [f, D] = p.useState({
1185
1185
  top: 0,
1186
1186
  left: 0
1187
1187
  }), [X, tt] = p.useState(null), y = p.useRef(null), [$, E] = p.useState(!1), G = It(
@@ -1206,23 +1206,23 @@ const da = (r) => {
1206
1206
  }, [B]), p.useEffect(() => {
1207
1207
  if (y.current && X) {
1208
1208
  const j = y.current.getBoundingClientRect().height, O = window.innerHeight;
1209
- let _ = X.top;
1210
- _ + j > O + window.scrollY - 200 && (_ = O + window.scrollY - j - 200), _ < 0 && (_ = 10), D({
1211
- top: _,
1209
+ let m = X.top;
1210
+ m + j > O + window.scrollY - 200 && (m = O + window.scrollY - j - 200), m < 0 && (m = 10), D({
1211
+ top: m,
1212
1212
  left: X.left
1213
1213
  });
1214
1214
  }
1215
1215
  }, [y.current, X]);
1216
1216
  const A = (j, O) => {
1217
1217
  j.stopPropagation();
1218
- const _ = j.target.getBoundingClientRect();
1218
+ const m = j.target.getBoundingClientRect();
1219
1219
  tt({
1220
- top: _.top + window.scrollY,
1221
- left: _.left - 30
1220
+ top: m.top + window.scrollY,
1221
+ left: m.left - 30
1222
1222
  }), S(O), E(!0);
1223
1223
  };
1224
1224
  function H(j) {
1225
- if (v)
1225
+ if (b)
1226
1226
  return j ? /* @__PURE__ */ t.jsx(
1227
1227
  "img",
1228
1228
  {
@@ -1232,7 +1232,7 @@ const da = (r) => {
1232
1232
  height: 16
1233
1233
  }
1234
1234
  ) : /* @__PURE__ */ t.jsx(
1235
- b,
1235
+ v,
1236
1236
  {
1237
1237
  name: "Image",
1238
1238
  width: 16,
@@ -1242,19 +1242,19 @@ const da = (r) => {
1242
1242
  );
1243
1243
  }
1244
1244
  const K = (j) => {
1245
- const { active: O, over: _ } = j;
1246
- if (_ && O.id !== _.id) {
1247
- const I = s.findIndex((R) => R.id === O.id), T = s.findIndex((R) => R.id === _.id);
1245
+ const { active: O, over: m } = j;
1246
+ if (m && O.id !== m.id) {
1247
+ const I = s.findIndex((R) => R.id === O.id), T = s.findIndex((R) => R.id === m.id);
1248
1248
  if (I !== -1 && T !== -1) {
1249
1249
  const R = [...s], [U] = R.splice(I, 1);
1250
1250
  R.splice(T, 0, U), i(R);
1251
1251
  }
1252
1252
  }
1253
1253
  }, lt = (j) => {
1254
- var _;
1254
+ var m;
1255
1255
  const O = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1256
1256
  c && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1257
- b,
1257
+ v,
1258
1258
  {
1259
1259
  name: "DotsSixVertical",
1260
1260
  hoverable: !0,
@@ -1262,7 +1262,7 @@ const da = (r) => {
1262
1262
  height: 20
1263
1263
  }
1264
1264
  ) }),
1265
- h === "select" && u && /* @__PURE__ */ t.jsx(
1265
+ _ === "select" && u && /* @__PURE__ */ t.jsx(
1266
1266
  st,
1267
1267
  {
1268
1268
  onChange: (I) => {
@@ -1280,7 +1280,7 @@ const da = (r) => {
1280
1280
  leftAddon: H(j.images)
1281
1281
  }
1282
1282
  ),
1283
- h === "input" && /* @__PURE__ */ t.jsx(
1283
+ _ === "input" && /* @__PURE__ */ t.jsx(
1284
1284
  W,
1285
1285
  {
1286
1286
  onChange: (I) => {
@@ -1294,7 +1294,7 @@ const da = (r) => {
1294
1294
  placeholder: g
1295
1295
  }
1296
1296
  ),
1297
- h === "image" && /* @__PURE__ */ t.jsx(
1297
+ _ === "image" && /* @__PURE__ */ t.jsx(
1298
1298
  gt,
1299
1299
  {
1300
1300
  onChange: (I) => {
@@ -1304,12 +1304,12 @@ const da = (r) => {
1304
1304
  } : U);
1305
1305
  i([...R]);
1306
1306
  },
1307
- activeImage: (_ = s.find((I) => I.id === j.id)) == null ? void 0 : _.images[0]
1307
+ activeImage: (m = s.find((I) => I.id === j.id)) == null ? void 0 : m.images[0]
1308
1308
  }
1309
1309
  ),
1310
1310
  /* @__PURE__ */ t.jsxs("div", { className: z.buttons, children: [
1311
1311
  n && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
1312
- b,
1312
+ v,
1313
1313
  {
1314
1314
  name: "Sliders",
1315
1315
  hoverable: !0,
@@ -1318,8 +1318,8 @@ const da = (r) => {
1318
1318
  onClick: (I) => A(I, j)
1319
1319
  }
1320
1320
  ) }),
1321
- f && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
1322
- b,
1321
+ x && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
1322
+ v,
1323
1323
  {
1324
1324
  name: "Trash",
1325
1325
  hoverable: !0,
@@ -1332,7 +1332,7 @@ const da = (r) => {
1332
1332
  ] })
1333
1333
  ] });
1334
1334
  return c ? /* @__PURE__ */ t.jsx(
1335
- Ds,
1335
+ Ls,
1336
1336
  {
1337
1337
  product: j,
1338
1338
  children: O
@@ -1359,12 +1359,12 @@ const da = (r) => {
1359
1359
  )
1360
1360
  ] }),
1361
1361
  B && n && k && $ && /* @__PURE__ */ t.jsx(
1362
- Es,
1362
+ Ds,
1363
1363
  {
1364
1364
  ref: y,
1365
1365
  activeItem: B,
1366
1366
  setActiveItem: S,
1367
- popupPosition: x,
1367
+ popupPosition: f,
1368
1368
  modalOptions: k,
1369
1369
  setIsOpenModal: E
1370
1370
  }
@@ -1387,7 +1387,7 @@ const da = (r) => {
1387
1387
  )
1388
1388
  }
1389
1389
  ) : s.map((j) => lt(j)),
1390
- m && /* @__PURE__ */ t.jsx(
1390
+ h && /* @__PURE__ */ t.jsx(
1391
1391
  "div",
1392
1392
  {
1393
1393
  style: {
@@ -1405,26 +1405,26 @@ const da = (r) => {
1405
1405
  const j = [...s];
1406
1406
  let O = null;
1407
1407
  if (u) {
1408
- for (let _ = 0; _ < u.length; _++)
1409
- if (!s.find((I) => I.name === u[_])) {
1410
- O = u[_];
1408
+ for (let m = 0; m < u.length; m++)
1409
+ if (!s.find((I) => I.name === u[m])) {
1410
+ O = u[m];
1411
1411
  break;
1412
1412
  }
1413
1413
  }
1414
- h === "select" && u ? j.push({
1414
+ _ === "select" && u ? j.push({
1415
1415
  name: O || u[0],
1416
- id: _t(),
1416
+ id: mt(),
1417
1417
  ...L,
1418
1418
  maxSymbols: 100
1419
1419
  // пример значения
1420
- }) : h === "input" ? j.push({
1420
+ }) : _ === "input" ? j.push({
1421
1421
  name: "",
1422
- id: _t(),
1422
+ id: mt(),
1423
1423
  ...L,
1424
1424
  maxSymbols: 100
1425
1425
  }) : j.push({
1426
1426
  name: `Image ${s.length + 1}`,
1427
- id: _t(),
1427
+ id: mt(),
1428
1428
  ...L,
1429
1429
  maxSymbols: 100
1430
1430
  }), i(j);
@@ -1435,7 +1435,7 @@ const da = (r) => {
1435
1435
  children: /* @__PURE__ */ t.jsxs("div", { className: z.addButton, children: [
1436
1436
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1437
1437
  /* @__PURE__ */ t.jsx(
1438
- b,
1438
+ v,
1439
1439
  {
1440
1440
  name: "Plus",
1441
1441
  width: 16,
@@ -1448,46 +1448,46 @@ const da = (r) => {
1448
1448
  }
1449
1449
  )
1450
1450
  ] }),
1451
- o !== void 0 && /* @__PURE__ */ t.jsx(bt, { items: o })
1451
+ o !== void 0 && /* @__PURE__ */ t.jsx(vt, { items: o })
1452
1452
  ] });
1453
- }, Ls = "_title_bn7sv_1", Rs = "_subtitle_bn7sv_5", Ms = "_header_bn7sv_12", Hs = "_text_bn7sv_13", zs = "_productsBlock_bn7sv_14", Fs = "_buttonsBlock_bn7sv_15", Vs = "_top_bn7sv_26", Us = "_itemsBlock_bn7sv_35", Ys = "_typeTexts_bn7sv_41", Gs = "_block_bn7sv_48", Ws = "_active_bn7sv_60", Xs = "_products_bn7sv_14", Js = "_product_bn7sv_14", Qs = "_button_bn7sv_15", Ks = "_image_bn7sv_90", Zs = "_info_bn7sv_97", tn = "_name_bn7sv_109", en = "_buttons_bn7sv_15", sn = "_modal_bn7sv_120", nn = "_other_bn7sv_139", on = "_options_bn7sv_145", an = "_closeIcon_bn7sv_153", at = {
1454
- title: Ls,
1455
- subtitle: Rs,
1456
- header: Ms,
1457
- text: Hs,
1458
- productsBlock: zs,
1459
- buttonsBlock: Fs,
1460
- top: Vs,
1461
- itemsBlock: Us,
1462
- typeTexts: Ys,
1463
- block: Gs,
1464
- active: Ws,
1465
- products: Xs,
1466
- product: Js,
1467
- button: Qs,
1468
- image: Ks,
1469
- info: Zs,
1470
- name: tn,
1471
- buttons: en,
1472
- modal: sn,
1473
- other: nn,
1474
- options: on,
1475
- closeIcon: an
1476
- }, cn = p.forwardRef((r, a) => {
1477
- const { activeButton: e, setActiveButton: s, popupPosition: i } = r, [o, l] = p.useState(e.typesText), [d, n] = p.useState(e.destination), [c, v] = p.useState(e.page), [f, m] = p.useState(e.link || ""), [h, g] = p.useState(e.text || ""), [u, w] = p.useState(e.openInNewTab), { pages: q } = Ht();
1453
+ }, Rs = "_title_bn7sv_1", Ms = "_subtitle_bn7sv_5", Hs = "_header_bn7sv_12", zs = "_text_bn7sv_13", Fs = "_productsBlock_bn7sv_14", Vs = "_buttonsBlock_bn7sv_15", Us = "_top_bn7sv_26", Ys = "_itemsBlock_bn7sv_35", Gs = "_typeTexts_bn7sv_41", Ws = "_block_bn7sv_48", Xs = "_active_bn7sv_60", Js = "_products_bn7sv_14", Qs = "_product_bn7sv_14", Ks = "_button_bn7sv_15", Zs = "_image_bn7sv_90", tn = "_info_bn7sv_97", en = "_name_bn7sv_109", sn = "_buttons_bn7sv_15", nn = "_modal_bn7sv_120", on = "_other_bn7sv_139", an = "_options_bn7sv_145", cn = "_closeIcon_bn7sv_153", at = {
1454
+ title: Rs,
1455
+ subtitle: Ms,
1456
+ header: Hs,
1457
+ text: zs,
1458
+ productsBlock: Fs,
1459
+ buttonsBlock: Vs,
1460
+ top: Us,
1461
+ itemsBlock: Ys,
1462
+ typeTexts: Gs,
1463
+ block: Ws,
1464
+ active: Xs,
1465
+ products: Js,
1466
+ product: Qs,
1467
+ button: Ks,
1468
+ image: Zs,
1469
+ info: tn,
1470
+ name: en,
1471
+ buttons: sn,
1472
+ modal: nn,
1473
+ other: on,
1474
+ options: an,
1475
+ closeIcon: cn
1476
+ }, ln = p.forwardRef((r, a) => {
1477
+ const { activeButton: e, setActiveButton: s, popupPosition: i } = r, [o, l] = p.useState(e.typesText), [d, n] = p.useState(e.destination), [c, b] = p.useState(e.page), [x, h] = p.useState(e.link || ""), [_, g] = p.useState(e.text || ""), [u, w] = p.useState(e.openInNewTab), { pages: q } = Ht();
1478
1478
  return p.useEffect(() => {
1479
1479
  s({
1480
1480
  ...e,
1481
1481
  ...{
1482
- text: h,
1483
- link: f,
1482
+ text: _,
1483
+ link: x,
1484
1484
  destination: d,
1485
1485
  typesText: o,
1486
1486
  page: c,
1487
1487
  openInNewTab: u
1488
1488
  }
1489
1489
  });
1490
- }, [o, d, f, h, c, u]), /* @__PURE__ */ t.jsxs(
1490
+ }, [o, d, x, _, c, u]), /* @__PURE__ */ t.jsxs(
1491
1491
  "div",
1492
1492
  {
1493
1493
  className: at.modal,
@@ -1503,7 +1503,7 @@ const da = (r) => {
1503
1503
  /* @__PURE__ */ t.jsxs("div", { className: at.top, children: [
1504
1504
  /* @__PURE__ */ t.jsx("h3", { className: at.title, children: e.type }),
1505
1505
  /* @__PURE__ */ t.jsx("div", { className: at.closeIcon, children: /* @__PURE__ */ t.jsx(
1506
- b,
1506
+ v,
1507
1507
  {
1508
1508
  name: "X",
1509
1509
  height: 20,
@@ -1527,15 +1527,15 @@ const da = (r) => {
1527
1527
  st,
1528
1528
  {
1529
1529
  label: "Go to",
1530
- onChange: (k) => v(k),
1530
+ onChange: (k) => b(k),
1531
1531
  options: q ? Object.values(q).filter((k) => k.name !== c).map((k) => k.name) : [],
1532
1532
  value: c
1533
1533
  }
1534
1534
  ) : /* @__PURE__ */ t.jsx(
1535
1535
  W,
1536
1536
  {
1537
- onChange: (k) => m(k),
1538
- value: f,
1537
+ onChange: (k) => h(k),
1538
+ value: x,
1539
1539
  placeholder: "https://",
1540
1540
  label: "Link"
1541
1541
  }
@@ -1552,7 +1552,7 @@ const da = (r) => {
1552
1552
  Ot,
1553
1553
  {
1554
1554
  onChange: (k) => g(k),
1555
- value: h,
1555
+ value: _,
1556
1556
  label: "Text",
1557
1557
  maxLength: 150
1558
1558
  }
@@ -1568,67 +1568,67 @@ const da = (r) => {
1568
1568
  ]
1569
1569
  }
1570
1570
  );
1571
- }), ln = "_subtitle_jql1y_1", rn = "_header_jql1y_8", dn = "_text_jql1y_9", un = "_productsBlock_jql1y_10", _n = "_buttonsBlock_jql1y_11", hn = "_top_jql1y_23", mn = "_itemsBlock_jql1y_32", pn = "_typeTexts_jql1y_38", gn = "_block_jql1y_45", fn = "_active_jql1y_58", xn = "_products_jql1y_10", vn = "_product_jql1y_10", bn = "_button_jql1y_11", jn = "_image_jql1y_88", yn = "_info_jql1y_95", kn = "_name_jql1y_107", In = "_buttons_jql1y_11", $n = "_modal_jql1y_118", Nn = "_other_jql1y_138", wn = "_options_jql1y_144", Cn = "_addButton_jql1y_150", Bn = "_deleteButton_jql1y_165", nt = {
1572
- subtitle: ln,
1573
- header: rn,
1574
- text: dn,
1575
- productsBlock: un,
1571
+ }), rn = "_subtitle_jql1y_1", dn = "_header_jql1y_8", un = "_text_jql1y_9", mn = "_productsBlock_jql1y_10", _n = "_buttonsBlock_jql1y_11", hn = "_top_jql1y_23", pn = "_itemsBlock_jql1y_32", gn = "_typeTexts_jql1y_38", xn = "_block_jql1y_45", fn = "_active_jql1y_58", bn = "_products_jql1y_10", vn = "_product_jql1y_10", jn = "_button_jql1y_11", yn = "_image_jql1y_88", kn = "_info_jql1y_95", In = "_name_jql1y_107", $n = "_buttons_jql1y_11", Nn = "_modal_jql1y_118", wn = "_other_jql1y_138", Cn = "_options_jql1y_144", Bn = "_addButton_jql1y_150", Sn = "_deleteButton_jql1y_165", nt = {
1572
+ subtitle: rn,
1573
+ header: dn,
1574
+ text: un,
1575
+ productsBlock: mn,
1576
1576
  buttonsBlock: _n,
1577
1577
  top: hn,
1578
- itemsBlock: mn,
1579
- typeTexts: pn,
1580
- block: gn,
1578
+ itemsBlock: pn,
1579
+ typeTexts: gn,
1580
+ block: xn,
1581
1581
  active: fn,
1582
- products: xn,
1582
+ products: bn,
1583
1583
  product: vn,
1584
- button: bn,
1585
- image: jn,
1586
- info: yn,
1587
- name: kn,
1588
- buttons: In,
1589
- modal: $n,
1590
- other: Nn,
1591
- options: wn,
1592
- addButton: Cn,
1593
- deleteButton: Bn
1594
- }, Sn = (r) => {
1584
+ button: jn,
1585
+ image: yn,
1586
+ info: kn,
1587
+ name: In,
1588
+ buttons: $n,
1589
+ modal: Nn,
1590
+ other: wn,
1591
+ options: Cn,
1592
+ addButton: Bn,
1593
+ deleteButton: Sn
1594
+ }, Tn = (r) => {
1595
1595
  const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0 } = r, [o, l] = p.useState(null), [d, n] = p.useState({
1596
1596
  top: 0,
1597
1597
  left: 0
1598
- }), [c, v] = p.useState(null), f = p.useRef(null);
1598
+ }), [c, b] = p.useState(null), x = p.useRef(null);
1599
1599
  p.useEffect(() => {
1600
- const h = () => {
1600
+ const _ = () => {
1601
1601
  l(null);
1602
1602
  };
1603
- return document.body.addEventListener("click", h), l(null), () => {
1604
- l(null), document.body.removeEventListener("click", h);
1603
+ return document.body.addEventListener("click", _), l(null), () => {
1604
+ l(null), document.body.removeEventListener("click", _);
1605
1605
  };
1606
1606
  }, []), p.useEffect(() => {
1607
1607
  if (o) {
1608
- const h = [...a].map((g) => g.id === o.id ? o : g);
1609
- e(h);
1608
+ const _ = [...a].map((g) => g.id === o.id ? o : g);
1609
+ e(_);
1610
1610
  }
1611
1611
  }, [o]), p.useEffect(() => {
1612
- if (f.current && c) {
1613
- const h = f.current.getBoundingClientRect().height, g = window.innerHeight;
1612
+ if (x.current && c) {
1613
+ const _ = x.current.getBoundingClientRect().height, g = window.innerHeight;
1614
1614
  let u = c.top;
1615
- u + h > g + window.scrollY - 200 && (u = g + window.scrollY - h - 200), u < 0 && (u = 10), n({
1615
+ u + _ > g + window.scrollY - 200 && (u = g + window.scrollY - _ - 200), u < 0 && (u = 10), n({
1616
1616
  top: u,
1617
1617
  left: c.left
1618
1618
  });
1619
1619
  }
1620
- }, [f.current, c]);
1621
- const m = (h, g) => {
1622
- h.stopPropagation();
1623
- const u = h.target.getBoundingClientRect();
1624
- v({
1620
+ }, [x.current, c]);
1621
+ const h = (_, g) => {
1622
+ _.stopPropagation();
1623
+ const u = _.target.getBoundingClientRect();
1624
+ b({
1625
1625
  top: u.top + window.scrollY,
1626
1626
  left: u.left - 30
1627
1627
  }), l(g);
1628
1628
  };
1629
1629
  return /* @__PURE__ */ t.jsxs("div", { className: nt.products, children: [
1630
1630
  /* @__PURE__ */ t.jsx("h5", { className: nt.subtitle, children: "Button Type" }),
1631
- a.map((h) => /* @__PURE__ */ t.jsxs(
1631
+ a.map((_) => /* @__PURE__ */ t.jsxs(
1632
1632
  "div",
1633
1633
  {
1634
1634
  className: nt.product,
@@ -1637,36 +1637,36 @@ const da = (r) => {
1637
1637
  st,
1638
1638
  {
1639
1639
  onChange: (g) => {
1640
- const w = [...a].map((q) => q.id === h.id ? {
1641
- ...h,
1640
+ const w = [...a].map((q) => q.id === _.id ? {
1641
+ ..._,
1642
1642
  type: g
1643
1643
  } : q);
1644
1644
  e(w);
1645
1645
  },
1646
- value: h.type,
1646
+ value: _.type,
1647
1647
  options: ["Primary", "Secondary", "Tertiary"]
1648
1648
  }
1649
1649
  ),
1650
1650
  /* @__PURE__ */ t.jsxs("div", { className: nt.buttons, children: [
1651
1651
  /* @__PURE__ */ t.jsx("div", { className: nt.deleteButton, children: /* @__PURE__ */ t.jsx(
1652
- b,
1652
+ v,
1653
1653
  {
1654
1654
  name: "Sliders",
1655
1655
  hoverable: !0,
1656
1656
  width: 20,
1657
1657
  height: 20,
1658
1658
  onClick: (g) => {
1659
- m(g, h);
1659
+ h(g, _);
1660
1660
  }
1661
1661
  }
1662
1662
  ) }),
1663
1663
  s && /* @__PURE__ */ t.jsx("div", { className: nt.deleteButton, children: /* @__PURE__ */ t.jsx(
1664
- b,
1664
+ v,
1665
1665
  {
1666
1666
  name: "Trash",
1667
1667
  hoverable: !0,
1668
1668
  onClick: () => {
1669
- const g = a.filter((u) => u.id !== h.id);
1669
+ const g = a.filter((u) => u.id !== _.id);
1670
1670
  e(g);
1671
1671
  },
1672
1672
  width: 20,
@@ -1677,12 +1677,12 @@ const da = (r) => {
1677
1677
  ] })
1678
1678
  ]
1679
1679
  },
1680
- h.id
1680
+ _.id
1681
1681
  )),
1682
1682
  o && /* @__PURE__ */ t.jsx(
1683
- cn,
1683
+ ln,
1684
1684
  {
1685
- ref: f,
1685
+ ref: x,
1686
1686
  activeButton: o,
1687
1687
  setActiveButton: l,
1688
1688
  popupPosition: d
@@ -1703,16 +1703,16 @@ const da = (r) => {
1703
1703
  className: nt.button,
1704
1704
  size: "s",
1705
1705
  onClick: () => {
1706
- const h = [...a];
1707
- h.push({
1706
+ const _ = [...a];
1707
+ _.push({
1708
1708
  type: "Primary",
1709
- id: _t(),
1709
+ id: mt(),
1710
1710
  typesText: [],
1711
1711
  destination: "Go to Page",
1712
1712
  text: "Button Name",
1713
1713
  page: "home",
1714
1714
  openInNewTab: !0
1715
- }), e(h);
1715
+ }), e(_);
1716
1716
  },
1717
1717
  style: {
1718
1718
  width: "fit-content"
@@ -1720,7 +1720,7 @@ const da = (r) => {
1720
1720
  children: /* @__PURE__ */ t.jsxs("div", { className: nt.addButton, children: [
1721
1721
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
1722
1722
  /* @__PURE__ */ t.jsx(
1723
- b,
1723
+ v,
1724
1724
  {
1725
1725
  name: "Plus",
1726
1726
  width: 16,
@@ -1733,7 +1733,7 @@ const da = (r) => {
1733
1733
  }
1734
1734
  )
1735
1735
  ] });
1736
- }, ua = (r) => {
1736
+ }, ma = (r) => {
1737
1737
  const { isActiveButtons: a, setIsActiveButtons: e, buttons: s, setButtons: i } = r;
1738
1738
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: at.buttonsBlock, children: [
1739
1739
  /* @__PURE__ */ t.jsxs("div", { className: at.top, children: [
@@ -1747,34 +1747,34 @@ const da = (r) => {
1747
1747
  )
1748
1748
  ] }),
1749
1749
  /* @__PURE__ */ t.jsx(
1750
- Sn,
1750
+ Tn,
1751
1751
  {
1752
1752
  buttons: s,
1753
1753
  setButtons: i
1754
1754
  }
1755
1755
  )
1756
1756
  ] }) });
1757
- }, Tn = "_wrapper_m18qi_1", Pn = "_subtitle_m18qi_7", An = "_content_m18qi_14", On = "_range_m18qi_22", qn = "_track_m18qi_27", En = "_progress_m18qi_36", Dn = "_dots_m18qi_46", Ln = "_dot_m18qi_46", Rn = "_active_m18qi_65", Mn = "_input_m18qi_77", Hn = "_countBlock_m18qi_91", zn = "_count_m18qi_91", Fn = "_controls_m18qi_107", Vn = "_button_m18qi_113", Y = {
1758
- wrapper: Tn,
1759
- subtitle: Pn,
1760
- content: An,
1761
- range: On,
1762
- track: qn,
1763
- progress: En,
1764
- dots: Dn,
1765
- dot: Ln,
1766
- active: Rn,
1767
- input: Mn,
1768
- countBlock: Hn,
1769
- count: zn,
1770
- controls: Fn,
1771
- button: Vn
1757
+ }, Pn = "_wrapper_m18qi_1", An = "_subtitle_m18qi_7", On = "_content_m18qi_14", qn = "_range_m18qi_22", En = "_track_m18qi_27", Dn = "_progress_m18qi_36", Ln = "_dots_m18qi_46", Rn = "_dot_m18qi_46", Mn = "_active_m18qi_65", Hn = "_input_m18qi_77", zn = "_countBlock_m18qi_91", Fn = "_count_m18qi_91", Vn = "_controls_m18qi_107", Un = "_button_m18qi_113", Y = {
1758
+ wrapper: Pn,
1759
+ subtitle: An,
1760
+ content: On,
1761
+ range: qn,
1762
+ track: En,
1763
+ progress: Dn,
1764
+ dots: Ln,
1765
+ dot: Rn,
1766
+ active: Mn,
1767
+ input: Hn,
1768
+ countBlock: zn,
1769
+ count: Fn,
1770
+ controls: Vn,
1771
+ button: Un
1772
1772
  }, At = (r) => {
1773
- const { label: a, min: e = 1, max: s = 4, step: i = 1, count: o, setCount: l } = r, [d, n] = p.useState(!1), c = Array.from({ length: (s - e) / i + 1 }), v = (o - e) / (s - e) * 100, f = () => {
1773
+ const { label: a, min: e = 1, max: s = 4, step: i = 1, count: o, setCount: l } = r, [d, n] = p.useState(!1), c = Array.from({ length: (s - e) / i + 1 }), b = (o - e) / (s - e) * 100, x = () => {
1774
1774
  o < s && l(o + i);
1775
- }, m = () => {
1775
+ }, h = () => {
1776
1776
  o > e && l(o - i);
1777
- }, h = (g) => {
1777
+ }, _ = (g) => {
1778
1778
  const u = e + g * i;
1779
1779
  l(u);
1780
1780
  };
@@ -1787,7 +1787,7 @@ const da = (r) => {
1787
1787
  "div",
1788
1788
  {
1789
1789
  className: Y.progress,
1790
- style: { width: `${v}%` }
1790
+ style: { width: `${b}%` }
1791
1791
  }
1792
1792
  ),
1793
1793
  /* @__PURE__ */ t.jsx("div", { className: Y.dots, children: c.map((g, u) => {
@@ -1795,7 +1795,7 @@ const da = (r) => {
1795
1795
  return /* @__PURE__ */ t.jsx(
1796
1796
  "button",
1797
1797
  {
1798
- onClick: () => h(u),
1798
+ onClick: () => _(u),
1799
1799
  className: F(Y.dot, {
1800
1800
  [Y.active]: w,
1801
1801
  [Y.inactive]: !w,
@@ -1842,12 +1842,12 @@ const da = (r) => {
1842
1842
  /* @__PURE__ */ t.jsx(
1843
1843
  "button",
1844
1844
  {
1845
- onClick: f,
1845
+ onClick: x,
1846
1846
  disabled: o >= s,
1847
1847
  className: Y.button,
1848
1848
  "aria-label": "Increment count",
1849
1849
  children: /* @__PURE__ */ t.jsx(
1850
- b,
1850
+ v,
1851
1851
  {
1852
1852
  name: "CaretUp",
1853
1853
  width: 15,
@@ -1859,12 +1859,12 @@ const da = (r) => {
1859
1859
  /* @__PURE__ */ t.jsx(
1860
1860
  "button",
1861
1861
  {
1862
- onClick: m,
1862
+ onClick: h,
1863
1863
  disabled: o <= e,
1864
1864
  className: Y.button,
1865
1865
  "aria-label": "Decrement count",
1866
1866
  children: /* @__PURE__ */ t.jsx(
1867
- b,
1867
+ v,
1868
1868
  {
1869
1869
  name: "CaretDown",
1870
1870
  width: 15,
@@ -1877,31 +1877,31 @@ const da = (r) => {
1877
1877
  ] })
1878
1878
  ] })
1879
1879
  ] });
1880
- }, Un = "_title_12elg_1", Yn = "_subtitle_12elg_5", Gn = "_header_12elg_12", Wn = "_text_12elg_13", Xn = "_productsBlock_12elg_14", Jn = "_top_12elg_26", Qn = "_itemsBlock_12elg_35", Kn = "_typeTexts_12elg_41", Zn = "_block_12elg_48", ti = "_active_12elg_61", ei = "_products_12elg_14", si = "_product_12elg_14", ni = "_button_12elg_80", ii = "_image_12elg_91", oi = "_info_12elg_98", ai = "_name_12elg_110", ci = "_buttons_12elg_114", li = "_modal_12elg_121", ri = "_link_12elg_141", di = "_modalOptions_12elg_147", ui = "_addButton_12elg_159", _i = "_deleteButton_12elg_174", hi = "_closeIcon_12elg_186", V = {
1881
- title: Un,
1882
- subtitle: Yn,
1883
- header: Gn,
1884
- text: Wn,
1885
- productsBlock: Xn,
1886
- top: Jn,
1887
- itemsBlock: Qn,
1888
- typeTexts: Kn,
1889
- block: Zn,
1890
- active: ti,
1891
- products: ei,
1892
- product: si,
1893
- button: ni,
1894
- image: ii,
1895
- info: oi,
1896
- name: ai,
1897
- buttons: ci,
1898
- modal: li,
1899
- link: ri,
1900
- modalOptions: di,
1901
- addButton: ui,
1880
+ }, Yn = "_title_ix5ax_1", Gn = "_subtitle_ix5ax_5", Wn = "_header_ix5ax_12", Xn = "_text_ix5ax_13", Jn = "_productsBlock_ix5ax_14", Qn = "_top_ix5ax_26", Kn = "_itemsBlock_ix5ax_35", Zn = "_typeTexts_ix5ax_41", ti = "_block_ix5ax_48", ei = "_active_ix5ax_61", si = "_products_ix5ax_14", ni = "_product_ix5ax_14", ii = "_button_ix5ax_80", oi = "_image_ix5ax_91", ai = "_info_ix5ax_98", ci = "_name_ix5ax_110", li = "_buttons_ix5ax_114", ri = "_modal_ix5ax_121", di = "_link_ix5ax_141", ui = "_modalOptions_ix5ax_147", mi = "_addButton_ix5ax_160", _i = "_deleteButton_ix5ax_175", hi = "_closeIcon_ix5ax_187", V = {
1881
+ title: Yn,
1882
+ subtitle: Gn,
1883
+ header: Wn,
1884
+ text: Xn,
1885
+ productsBlock: Jn,
1886
+ top: Qn,
1887
+ itemsBlock: Kn,
1888
+ typeTexts: Zn,
1889
+ block: ti,
1890
+ active: ei,
1891
+ products: si,
1892
+ product: ni,
1893
+ button: ii,
1894
+ image: oi,
1895
+ info: ai,
1896
+ name: ci,
1897
+ buttons: li,
1898
+ modal: ri,
1899
+ link: di,
1900
+ modalOptions: ui,
1901
+ addButton: mi,
1902
1902
  deleteButton: _i,
1903
1903
  closeIcon: hi
1904
- }, mi = (r) => {
1904
+ }, pi = (r) => {
1905
1905
  const { activeItem: a, setActiveItem: e, popupPosition: s, setIsOpenModal: i, itemsOptions: o } = r, l = o.find((n) => n.id === a.listingId);
1906
1906
  if (!l) return null;
1907
1907
  function d(n, c) {
@@ -1922,7 +1922,7 @@ const da = (r) => {
1922
1922
  /* @__PURE__ */ t.jsxs("div", { className: V.top, children: [
1923
1923
  /* @__PURE__ */ t.jsx("h3", { children: d(l.productData.name, 20) }),
1924
1924
  /* @__PURE__ */ t.jsx("div", { className: V.closeIcon, children: /* @__PURE__ */ t.jsx(
1925
- b,
1925
+ v,
1926
1926
  {
1927
1927
  name: "X",
1928
1928
  height: 20,
@@ -1951,7 +1951,7 @@ const da = (r) => {
1951
1951
  }
1952
1952
  );
1953
1953
  };
1954
- function pi(r) {
1954
+ function gi(r) {
1955
1955
  const { product: a, children: e } = r, { attributes: s, listeners: i, setNodeRef: o, transform: l, transition: d, isDragging: n } = St({
1956
1956
  id: String(a.listingId)
1957
1957
  }), c = {
@@ -1981,10 +1981,10 @@ const _a = (r) => {
1981
1981
  subtitle: d,
1982
1982
  editable: n = !0,
1983
1983
  draggable: c = !1,
1984
- withImage: v = !1,
1985
- deletable: f = !0,
1986
- addable: m = !0,
1987
- itemsType: h,
1984
+ withImage: b = !1,
1985
+ deletable: x = !0,
1986
+ addable: h = !0,
1987
+ itemsType: _,
1988
1988
  itemsOptions: g
1989
1989
  } = r, [u, w] = p.useState(
1990
1990
  null
@@ -2011,7 +2011,7 @@ const _a = (r) => {
2011
2011
  i(y);
2012
2012
  }
2013
2013
  }, [u]);
2014
- const x = (y, $) => {
2014
+ const f = (y, $) => {
2015
2015
  y.stopPropagation();
2016
2016
  const E = y.target.getBoundingClientRect(), G = 100, A = window.innerHeight;
2017
2017
  let H = E.top + window.scrollY;
@@ -2021,7 +2021,7 @@ const _a = (r) => {
2021
2021
  }), w($);
2022
2022
  };
2023
2023
  function D(y) {
2024
- if (v)
2024
+ if (b)
2025
2025
  return y ? /* @__PURE__ */ t.jsx(
2026
2026
  "img",
2027
2027
  {
@@ -2031,7 +2031,7 @@ const _a = (r) => {
2031
2031
  height: 16
2032
2032
  }
2033
2033
  ) : /* @__PURE__ */ t.jsx(
2034
- b,
2034
+ v,
2035
2035
  {
2036
2036
  name: "Image",
2037
2037
  width: 16,
@@ -2054,7 +2054,7 @@ const _a = (r) => {
2054
2054
  if (!E) return null;
2055
2055
  const G = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2056
2056
  c && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2057
- b,
2057
+ v,
2058
2058
  {
2059
2059
  name: "DotsSixVertical",
2060
2060
  hoverable: !0,
@@ -2062,7 +2062,7 @@ const _a = (r) => {
2062
2062
  height: 20
2063
2063
  }
2064
2064
  ) }),
2065
- h === "select" && /* @__PURE__ */ t.jsx(
2065
+ _ === "select" && /* @__PURE__ */ t.jsx(
2066
2066
  st,
2067
2067
  {
2068
2068
  onChange: (A) => {
@@ -2086,17 +2086,17 @@ const _a = (r) => {
2086
2086
  ),
2087
2087
  /* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
2088
2088
  n && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
2089
- b,
2089
+ v,
2090
2090
  {
2091
2091
  name: "Sliders",
2092
2092
  hoverable: !0,
2093
2093
  width: 20,
2094
2094
  height: 20,
2095
- onClick: (A) => x(A, y)
2095
+ onClick: (A) => f(A, y)
2096
2096
  }
2097
2097
  ) }),
2098
- f && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
2099
- b,
2098
+ x && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
2099
+ v,
2100
2100
  {
2101
2101
  name: "Trash",
2102
2102
  hoverable: !0,
@@ -2109,7 +2109,7 @@ const _a = (r) => {
2109
2109
  ] })
2110
2110
  ] });
2111
2111
  return c ? /* @__PURE__ */ t.jsx(
2112
- pi,
2112
+ gi,
2113
2113
  {
2114
2114
  product: y,
2115
2115
  children: G
@@ -2136,7 +2136,7 @@ const _a = (r) => {
2136
2136
  )
2137
2137
  ] }),
2138
2138
  L && u && /* @__PURE__ */ t.jsx(
2139
- mi,
2139
+ pi,
2140
2140
  {
2141
2141
  activeItem: u,
2142
2142
  setActiveItem: w,
@@ -2162,7 +2162,7 @@ const _a = (r) => {
2162
2162
  )
2163
2163
  }
2164
2164
  ) : s.map((y, $) => tt(y, $)),
2165
- m && /* @__PURE__ */ t.jsx(
2165
+ h && /* @__PURE__ */ t.jsx(
2166
2166
  "div",
2167
2167
  {
2168
2168
  style: {
@@ -2195,7 +2195,7 @@ const _a = (r) => {
2195
2195
  children: /* @__PURE__ */ t.jsxs("div", { className: V.addButton, children: [
2196
2196
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
2197
2197
  /* @__PURE__ */ t.jsx(
2198
- b,
2198
+ v,
2199
2199
  {
2200
2200
  name: "Plus",
2201
2201
  width: 16,
@@ -2208,106 +2208,106 @@ const _a = (r) => {
2208
2208
  }
2209
2209
  )
2210
2210
  ] }),
2211
- o !== void 0 && /* @__PURE__ */ t.jsx(bt, { items: o })
2211
+ o !== void 0 && /* @__PURE__ */ t.jsx(vt, { items: o })
2212
2212
  ] });
2213
- }, gi = "_options_d1lk6_1", fi = "_price_d1lk6_12", xi = "_oldPrice_d1lk6_19", vi = "_newPrice_d1lk6_27", bi = "_animate_d1lk6_34", ji = "_appearAndBounce_d1lk6_1", yi = "_meta_d1lk6_52", ki = "_info_d1lk6_58", Ii = "_infoRight_d1lk6_66", $i = "_buttons_d1lk6_73", Ni = "_variants_d1lk6_80", wi = "_variant_d1lk6_80", Ci = "_stock_d1lk6_98", Bi = "_variantInfo_d1lk6_105", Si = "_quantity_d1lk6_111", Ti = "_count_d1lk6_118", Pi = "_focused_d1lk6_135", Ai = "_button_d1lk6_73", Oi = "_activeVariant_d1lk6_161", qi = "_chargeTypes_d1lk6_165", Ei = "_charge_d1lk6_165", Di = "_chargeActive_d1lk6_190", Li = "_title_d1lk6_198", N = {
2214
- options: gi,
2213
+ }, xi = "_options_d1lk6_1", fi = "_price_d1lk6_12", bi = "_oldPrice_d1lk6_19", vi = "_newPrice_d1lk6_27", ji = "_animate_d1lk6_34", yi = "_appearAndBounce_d1lk6_1", ki = "_meta_d1lk6_52", Ii = "_info_d1lk6_58", $i = "_infoRight_d1lk6_66", Ni = "_buttons_d1lk6_73", wi = "_variants_d1lk6_80", Ci = "_variant_d1lk6_80", Bi = "_stock_d1lk6_98", Si = "_variantInfo_d1lk6_105", Ti = "_quantity_d1lk6_111", Pi = "_count_d1lk6_118", Ai = "_focused_d1lk6_135", Oi = "_button_d1lk6_73", qi = "_activeVariant_d1lk6_161", Ei = "_chargeTypes_d1lk6_165", Di = "_charge_d1lk6_165", Li = "_chargeActive_d1lk6_190", Ri = "_title_d1lk6_198", N = {
2214
+ options: xi,
2215
2215
  price: fi,
2216
- oldPrice: xi,
2216
+ oldPrice: bi,
2217
2217
  newPrice: vi,
2218
- animate: bi,
2219
- appearAndBounce: ji,
2220
- meta: yi,
2221
- info: ki,
2222
- infoRight: Ii,
2223
- buttons: $i,
2224
- variants: Ni,
2225
- variant: wi,
2226
- stock: Ci,
2227
- variantInfo: Bi,
2228
- quantity: Si,
2229
- count: Ti,
2230
- focused: Pi,
2231
- button: Ai,
2232
- activeVariant: Oi,
2233
- chargeTypes: qi,
2234
- charge: Ei,
2235
- chargeActive: Di,
2236
- title: Li
2218
+ animate: ji,
2219
+ appearAndBounce: yi,
2220
+ meta: ki,
2221
+ info: Ii,
2222
+ infoRight: $i,
2223
+ buttons: Ni,
2224
+ variants: wi,
2225
+ variant: Ci,
2226
+ stock: Bi,
2227
+ variantInfo: Si,
2228
+ quantity: Ti,
2229
+ count: Pi,
2230
+ focused: Ai,
2231
+ button: Oi,
2232
+ activeVariant: qi,
2233
+ chargeTypes: Ei,
2234
+ charge: Di,
2235
+ chargeActive: Li,
2236
+ title: Ri
2237
2237
  };
2238
2238
  var Mt = /* @__PURE__ */ ((r) => (r.ONE_TIME = "One-Time", r.RECURRING = "Subscribe & Save", r))(Mt || {});
2239
2239
  const ha = (r) => {
2240
2240
  var B, S;
2241
- const { variants: a } = r, [e, s] = p.useState(a[0]), [i, o] = p.useState(e.chargeTypes[0]), l = vt(), [d, n] = p.useState(1), [c, v] = p.useState(!1), { reset: f, addProductToCart: m, getProducts: h } = Pt(), [g, u] = p.useState(!1);
2241
+ const { variants: a } = r, [e, s] = p.useState(a[0]), [i, o] = p.useState(e.chargeTypes[0]), l = bt(), [d, n] = p.useState(1), [c, b] = p.useState(!1), { reset: x, addProductToCart: h, getProducts: _ } = Pt(), [g, u] = p.useState(!1);
2242
2242
  p.useEffect(() => {
2243
2243
  u(!0);
2244
- const x = setTimeout(() => u(!1), 600);
2245
- return () => clearTimeout(x);
2244
+ const f = setTimeout(() => u(!1), 600);
2245
+ return () => clearTimeout(f);
2246
2246
  }, [d]);
2247
2247
  async function w() {
2248
- await h(), await m({
2248
+ await _(), await h({
2249
2249
  productId: r.id,
2250
2250
  productVariantId: e.id,
2251
2251
  quantity: d
2252
2252
  });
2253
2253
  }
2254
2254
  function q() {
2255
- f(), w(), l("/checkout");
2255
+ x(), w(), l("/checkout");
2256
2256
  }
2257
- function k(x) {
2258
- if (x >= 864e5) {
2259
- const $ = Math.floor(x / 864e5);
2257
+ function k(f) {
2258
+ if (f >= 864e5) {
2259
+ const $ = Math.floor(f / 864e5);
2260
2260
  return `${$} ${$ === 1 ? "day" : "days"}`;
2261
- } else if (x >= 36e5) {
2262
- const $ = Math.floor(x / 36e5);
2261
+ } else if (f >= 36e5) {
2262
+ const $ = Math.floor(f / 36e5);
2263
2263
  return `${$} ${$ === 1 ? "hour" : "hours"}`;
2264
- } else if (x >= 6e4) {
2265
- const $ = Math.floor(x / 6e4);
2264
+ } else if (f >= 6e4) {
2265
+ const $ = Math.floor(f / 6e4);
2266
2266
  return `${$} ${$ === 1 ? "minute" : "minutes"}`;
2267
2267
  } else {
2268
- const $ = Math.floor(x / 1e3);
2268
+ const $ = Math.floor(f / 1e3);
2269
2269
  return `${$} ${$ === 1 ? "second" : "seconds"}`;
2270
2270
  }
2271
2271
  }
2272
- function L(x, D) {
2273
- return x.length > D ? x.slice(0, D) + "..." : x;
2272
+ function L(f, D) {
2273
+ return f.length > D ? f.slice(0, D) + "..." : f;
2274
2274
  }
2275
2275
  return /* @__PURE__ */ t.jsxs("div", { className: N.options, children: [
2276
- e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: N.chargeTypes, children: e.chargeTypes.map((x) => /* @__PURE__ */ t.jsx(
2276
+ e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: N.chargeTypes, children: e.chargeTypes.map((f) => /* @__PURE__ */ t.jsx(
2277
2277
  "div",
2278
2278
  {
2279
2279
  className: F(N.charge, {
2280
- [N.chargeActive]: i === x
2280
+ [N.chargeActive]: i === f
2281
2281
  }),
2282
- onClick: () => o(x),
2283
- children: Mt[x]
2282
+ onClick: () => o(f),
2283
+ children: Mt[f]
2284
2284
  },
2285
- x
2285
+ f
2286
2286
  )) }),
2287
- /* @__PURE__ */ t.jsx("div", { className: N.variants, children: a.map((x) => {
2287
+ /* @__PURE__ */ t.jsx("div", { className: N.variants, children: a.map((f) => {
2288
2288
  var D;
2289
2289
  return /* @__PURE__ */ t.jsxs(
2290
2290
  "div",
2291
2291
  {
2292
2292
  className: F(N.variant, {
2293
- [N.activeVariant]: e.id === x.id
2293
+ [N.activeVariant]: e.id === f.id
2294
2294
  }),
2295
- onClick: () => s(x),
2295
+ onClick: () => s(f),
2296
2296
  children: [
2297
2297
  /* @__PURE__ */ t.jsxs("div", { className: N.variantInfo, children: [
2298
- /* @__PURE__ */ t.jsx("span", { className: N.title, children: L(x.name, 15) }),
2298
+ /* @__PURE__ */ t.jsx("span", { className: N.title, children: L(f.name, 15) }),
2299
2299
  /* @__PURE__ */ t.jsxs("span", { children: [
2300
2300
  "$",
2301
- i === "ONE_TIME" ? x.price.amount : x.subscriptionSettings ? x.subscriptionSettings.price.amount : "Price Not Found"
2301
+ i === "ONE_TIME" ? f.price.amount : f.subscriptionSettings ? f.subscriptionSettings.price.amount : "Price Not Found"
2302
2302
  ] })
2303
2303
  ] }),
2304
2304
  /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: N.stock, children: [
2305
- ((D = x.quantity.restrictions) == null ? void 0 : D.max) || x.quantity.available || 0,
2305
+ ((D = f.quantity.restrictions) == null ? void 0 : D.max) || f.quantity.available || 0,
2306
2306
  " in stock"
2307
2307
  ] }) })
2308
2308
  ]
2309
2309
  },
2310
- x.id
2310
+ f.id
2311
2311
  );
2312
2312
  }) }),
2313
2313
  i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: N.quantity, children: [
@@ -2315,11 +2315,11 @@ const ha = (r) => {
2315
2315
  "button",
2316
2316
  {
2317
2317
  onClick: () => {
2318
- d > 1 ? n((x) => x - 1) : n(1);
2318
+ d > 1 ? n((f) => f - 1) : n(1);
2319
2319
  },
2320
2320
  className: N.button,
2321
2321
  disabled: e.quantity.restrictions && d <= e.quantity.restrictions.min,
2322
- children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
2322
+ children: /* @__PURE__ */ t.jsx(v, { name: "Minus" })
2323
2323
  }
2324
2324
  ),
2325
2325
  /* @__PURE__ */ t.jsx(
@@ -2328,14 +2328,14 @@ const ha = (r) => {
2328
2328
  className: F(N.count, {
2329
2329
  [N.focused]: c
2330
2330
  }),
2331
- onFocus: () => v(!0),
2332
- onBlur: () => v(!1),
2331
+ onFocus: () => b(!0),
2332
+ onBlur: () => b(!1),
2333
2333
  children: /* @__PURE__ */ t.jsx(
2334
2334
  W,
2335
2335
  {
2336
2336
  type: "number",
2337
2337
  value: String(d),
2338
- onChange: (x) => n(Number(x)),
2338
+ onChange: (f) => n(Number(f)),
2339
2339
  max: ((B = e.quantity.restrictions) == null ? void 0 : B.max) || e.quantity.available || 1 / 0,
2340
2340
  min: ((S = e.quantity.restrictions) == null ? void 0 : S.min) || 0,
2341
2341
  style: {
@@ -2351,11 +2351,11 @@ const ha = (r) => {
2351
2351
  "button",
2352
2352
  {
2353
2353
  onClick: () => {
2354
- n((x) => x + 1);
2354
+ n((f) => f + 1);
2355
2355
  },
2356
2356
  className: N.button,
2357
2357
  disabled: !!(e.quantity.restrictions && d >= e.quantity.restrictions.max || e.quantity.available && d >= e.quantity.available),
2358
- children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
2358
+ children: /* @__PURE__ */ t.jsx(v, { name: "Plus" })
2359
2359
  }
2360
2360
  )
2361
2361
  ] }),
@@ -2364,7 +2364,7 @@ const ha = (r) => {
2364
2364
  /* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
2365
2365
  /* @__PURE__ */ t.jsxs("div", { className: N.infoRight, children: [
2366
2366
  /* @__PURE__ */ t.jsx(
2367
- b,
2367
+ v,
2368
2368
  {
2369
2369
  name: "Lightning",
2370
2370
  fill: "#FF3F19",
@@ -2423,49 +2423,49 @@ const ha = (r) => {
2423
2423
  )
2424
2424
  ] })
2425
2425
  ] });
2426
- }, Ri = "_button_oyh2y_1", Mi = "_login_oyh2y_14", Hi = "_signUp_oyh2y_18", zi = "_buttons_oyh2y_23", Fi = "_modal_oyh2y_32", Vi = "_closing_oyh2y_61", Ui = "_info_oyh2y_85", Yi = "_top_oyh2y_92", Gi = "_title_oyh2y_103", Wi = "_clear_oyh2y_110", Xi = "_activeClear_oyh2y_117", Ji = "_count_oyh2y_121", Qi = "_cart_oyh2y_136", Ki = "_empty_oyh2y_144", Zi = "_product_oyh2y_170", to = "_products_oyh2y_179", eo = "_image_oyh2y_187", so = "_productInfo_oyh2y_193", no = "_content_oyh2y_200", io = "_name_oyh2y_206", oo = "_price_oyh2y_212", ao = "_productButtons_oyh2y_218", co = "_productButton_oyh2y_218", lo = "_productCount_oyh2y_238", ro = "_bottom_oyh2y_254", uo = "_subtotal_oyh2y_262", _o = "_block_oyh2y_270", ho = "_shoppingCount_oyh2y_277", mo = "_total_oyh2y_297", po = "_link_oyh2y_303", go = "_userInfo_oyh2y_310", C = {
2427
- button: Ri,
2428
- login: Mi,
2429
- signUp: Hi,
2430
- buttons: zi,
2431
- modal: Fi,
2426
+ }, Mi = "_button_oyh2y_1", Hi = "_login_oyh2y_14", zi = "_signUp_oyh2y_18", Fi = "_buttons_oyh2y_23", Vi = "_modal_oyh2y_32", Ui = "_closing_oyh2y_61", Yi = "_info_oyh2y_85", Gi = "_top_oyh2y_92", Wi = "_title_oyh2y_103", Xi = "_clear_oyh2y_110", Ji = "_activeClear_oyh2y_117", Qi = "_count_oyh2y_121", Ki = "_cart_oyh2y_136", Zi = "_empty_oyh2y_144", to = "_product_oyh2y_170", eo = "_products_oyh2y_179", so = "_image_oyh2y_187", no = "_productInfo_oyh2y_193", io = "_content_oyh2y_200", oo = "_name_oyh2y_206", ao = "_price_oyh2y_212", co = "_productButtons_oyh2y_218", lo = "_productButton_oyh2y_218", ro = "_productCount_oyh2y_238", uo = "_bottom_oyh2y_254", mo = "_subtotal_oyh2y_262", _o = "_block_oyh2y_270", ho = "_shoppingCount_oyh2y_277", po = "_total_oyh2y_297", go = "_link_oyh2y_303", xo = "_userInfo_oyh2y_310", C = {
2427
+ button: Mi,
2428
+ login: Hi,
2429
+ signUp: zi,
2430
+ buttons: Fi,
2431
+ modal: Vi,
2432
2432
  "slide-in-fade": "_slide-in-fade_oyh2y_1",
2433
- closing: Vi,
2433
+ closing: Ui,
2434
2434
  "slide-out-fade": "_slide-out-fade_oyh2y_1",
2435
- info: Ui,
2436
- top: Yi,
2437
- title: Gi,
2438
- clear: Wi,
2439
- activeClear: Xi,
2440
- count: Ji,
2441
- cart: Qi,
2442
- empty: Ki,
2443
- product: Zi,
2444
- products: to,
2445
- image: eo,
2446
- productInfo: so,
2447
- content: no,
2448
- name: io,
2449
- price: oo,
2450
- productButtons: ao,
2451
- productButton: co,
2452
- productCount: lo,
2453
- bottom: ro,
2454
- subtotal: uo,
2435
+ info: Yi,
2436
+ top: Gi,
2437
+ title: Wi,
2438
+ clear: Xi,
2439
+ activeClear: Ji,
2440
+ count: Qi,
2441
+ cart: Ki,
2442
+ empty: Zi,
2443
+ product: to,
2444
+ products: eo,
2445
+ image: so,
2446
+ productInfo: no,
2447
+ content: io,
2448
+ name: oo,
2449
+ price: ao,
2450
+ productButtons: co,
2451
+ productButton: lo,
2452
+ productCount: ro,
2453
+ bottom: uo,
2454
+ subtotal: mo,
2455
2455
  block: _o,
2456
2456
  shoppingCount: ho,
2457
- total: mo,
2458
- link: po,
2459
- userInfo: go
2460
- }, fo = "_button_85085_1", xo = "_primary_85085_20", vo = "_primaryHovered_85085_30", bo = "_secondary_85085_34", jo = "_secondaryHovered_85085_44", yo = "_tertiary_85085_48", ko = "_tertiaryHovered_85085_58", Io = "_content_85085_62", it = {
2457
+ total: po,
2458
+ link: go,
2459
+ userInfo: xo
2460
+ }, fo = "_button_85085_1", bo = "_primary_85085_20", vo = "_primaryHovered_85085_30", jo = "_secondary_85085_34", yo = "_secondaryHovered_85085_44", ko = "_tertiary_85085_48", Io = "_tertiaryHovered_85085_58", $o = "_content_85085_62", it = {
2461
2461
  button: fo,
2462
- primary: xo,
2462
+ primary: bo,
2463
2463
  primaryHovered: vo,
2464
- secondary: bo,
2465
- secondaryHovered: jo,
2466
- tertiary: yo,
2467
- tertiaryHovered: ko,
2468
- content: Io
2464
+ secondary: jo,
2465
+ secondaryHovered: yo,
2466
+ tertiary: ko,
2467
+ tertiaryHovered: Io,
2468
+ content: $o
2469
2469
  }, kt = (r) => {
2470
2470
  const { children: a, onClick: e, style: s, className: i, disabled: o = !1, type: l = "Primary" } = r, { themeSettings: d } = qt();
2471
2471
  return /* @__PURE__ */ t.jsx(
@@ -2485,16 +2485,16 @@ const ha = (r) => {
2485
2485
  },
2486
2486
  disabled: o,
2487
2487
  children: l === "Tertiary" ? /* @__PURE__ */ t.jsxs("div", { className: it.content, children: [
2488
+ a,
2488
2489
  /* @__PURE__ */ t.jsx(
2489
- b,
2490
+ v,
2490
2491
  {
2491
2492
  name: "ArrowRight",
2492
2493
  fill: "#757575",
2493
2494
  width: 20,
2494
2495
  height: 20
2495
2496
  }
2496
- ),
2497
- a
2497
+ )
2498
2498
  ] }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: a })
2499
2499
  }
2500
2500
  );
@@ -2502,13 +2502,13 @@ const ha = (r) => {
2502
2502
  class pt extends Error {
2503
2503
  }
2504
2504
  pt.prototype.name = "InvalidTokenError";
2505
- function $o(r) {
2505
+ function No(r) {
2506
2506
  return decodeURIComponent(atob(r).replace(/(.)/g, (a, e) => {
2507
2507
  let s = e.charCodeAt(0).toString(16).toUpperCase();
2508
2508
  return s.length < 2 && (s = "0" + s), "%" + s;
2509
2509
  }));
2510
2510
  }
2511
- function No(r) {
2511
+ function wo(r) {
2512
2512
  let a = r.replace(/-/g, "+").replace(/_/g, "/");
2513
2513
  switch (a.length % 4) {
2514
2514
  case 0:
@@ -2523,12 +2523,12 @@ function No(r) {
2523
2523
  throw new Error("base64 string is not of the correct length");
2524
2524
  }
2525
2525
  try {
2526
- return $o(a);
2526
+ return No(a);
2527
2527
  } catch {
2528
2528
  return atob(a);
2529
2529
  }
2530
2530
  }
2531
- function wo(r, a) {
2531
+ function Co(r, a) {
2532
2532
  if (typeof r != "string")
2533
2533
  throw new pt("Invalid token specified: must be a string");
2534
2534
  a || (a = {});
@@ -2537,7 +2537,7 @@ function wo(r, a) {
2537
2537
  throw new pt(`Invalid token specified: missing part #${e + 1}`);
2538
2538
  let i;
2539
2539
  try {
2540
- i = No(s);
2540
+ i = wo(s);
2541
2541
  } catch (o) {
2542
2542
  throw new pt(`Invalid token specified: invalid base64 for part #${e + 1} (${o.message})`);
2543
2543
  }
@@ -2547,14 +2547,14 @@ function wo(r, a) {
2547
2547
  throw new pt(`Invalid token specified: invalid json for part #${e + 1} (${o.message})`);
2548
2548
  }
2549
2549
  }
2550
- const ma = (r) => {
2551
- const { shopping: a, signUp: e } = r, s = vt();
2550
+ const pa = (r) => {
2551
+ const { shopping: a, signUp: e } = r, s = bt();
2552
2552
  function i(l) {
2553
2553
  s(l);
2554
2554
  }
2555
2555
  const o = JSON.parse(localStorage.getItem("token") || "{}");
2556
2556
  return /* @__PURE__ */ t.jsxs("div", { className: C.buttons, children: [
2557
- a && /* @__PURE__ */ t.jsx(Co, {}),
2557
+ a && /* @__PURE__ */ t.jsx(Bo, {}),
2558
2558
  !o.data && /* @__PURE__ */ t.jsx(
2559
2559
  kt,
2560
2560
  {
@@ -2577,25 +2577,25 @@ const ma = (r) => {
2577
2577
  children: "Sign Up"
2578
2578
  }
2579
2579
  ),
2580
- o.data && /* @__PURE__ */ t.jsx(To, { token: o.data })
2580
+ o.data && /* @__PURE__ */ t.jsx(Po, { token: o.data })
2581
2581
  ] });
2582
- }, Co = () => {
2582
+ }, Bo = () => {
2583
2583
  const [r, a] = p.useState(!1), [e, s] = p.useState([]), { cart: i, getProducts: o } = Pt();
2584
- function l(m) {
2585
- for (let h = 0; h < i.parts.length; h++)
2586
- for (let g = 0; g < m.variants.length; g++)
2587
- if (i.parts[h].productVariantId === m.variants[h].id)
2588
- return i.parts[h].productVariantId;
2584
+ function l(h) {
2585
+ for (let _ = 0; _ < i.parts.length; _++)
2586
+ for (let g = 0; g < h.variants.length; g++)
2587
+ if (i.parts[_].productVariantId === h.variants[_].id)
2588
+ return i.parts[_].productVariantId;
2589
2589
  }
2590
- function d(m) {
2591
- for (let h = 0; h < i.parts.length; h++)
2592
- for (let g = 0; g < m.variants.length; g++)
2593
- if (i.parts[h].productVariantId === m.variants[h].id)
2594
- return i.parts[h].quantity;
2590
+ function d(h) {
2591
+ for (let _ = 0; _ < i.parts.length; _++)
2592
+ for (let g = 0; g < h.variants.length; g++)
2593
+ if (i.parts[_].productVariantId === h.variants[_].id)
2594
+ return i.parts[_].quantity;
2595
2595
  }
2596
2596
  p.useEffect(() => {
2597
2597
  (async () => {
2598
- const h = i.parts.map((w) => String(w.productId)), u = (await o([...h])).map((w) => ({
2598
+ const _ = i.parts.map((w) => String(w.productId)), u = (await o([..._])).map((w) => ({
2599
2599
  ...w,
2600
2600
  activeVariantId: l(w),
2601
2601
  quantity: d(w)
@@ -2603,22 +2603,22 @@ const ma = (r) => {
2603
2603
  s(u);
2604
2604
  })();
2605
2605
  }, [i.parts.length]);
2606
- function n(m) {
2607
- var h;
2608
- return !m || !(m != null && m.variants) ? !1 : (h = m.variants.find((g) => g.id === m.activeVariantId)) == null ? void 0 : h.subscriptionSettings;
2606
+ function n(h) {
2607
+ var _;
2608
+ return !h || !(h != null && h.variants) ? !1 : (_ = h.variants.find((g) => g.id === h.activeVariantId)) == null ? void 0 : _.subscriptionSettings;
2609
2609
  }
2610
- const c = i.parts.length > 0 && e.length > 0 && !n(e[0]), [v, f] = p.useState(!1);
2610
+ const c = i.parts.length > 0 && e.length > 0 && !n(e[0]), [b, x] = p.useState(!1);
2611
2611
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2612
2612
  /* @__PURE__ */ t.jsxs(
2613
2613
  "div",
2614
2614
  {
2615
2615
  className: C.button,
2616
- onClick: (m) => {
2617
- m.stopPropagation(), a(!0), f(!0);
2616
+ onClick: (h) => {
2617
+ h.stopPropagation(), a(!0), x(!0);
2618
2618
  },
2619
2619
  children: [
2620
2620
  /* @__PURE__ */ t.jsx(
2621
- b,
2621
+ v,
2622
2622
  {
2623
2623
  name: "Handbag",
2624
2624
  fill: "var(--icon-primary)"
@@ -2632,38 +2632,39 @@ const ma = (r) => {
2632
2632
  Et,
2633
2633
  {
2634
2634
  close: () => {
2635
- f(!1), setTimeout(() => {
2635
+ x(!1), setTimeout(() => {
2636
2636
  a(!1);
2637
2637
  }, 300);
2638
2638
  },
2639
+ withAnimation: !1,
2639
2640
  children: /* @__PURE__ */ t.jsx(
2640
- Bo,
2641
+ So,
2641
2642
  {
2642
2643
  activeProducts: e,
2643
2644
  isCartNotEmpty: c,
2644
- isOpen: v
2645
+ isOpen: b
2645
2646
  }
2646
2647
  )
2647
2648
  }
2648
2649
  )
2649
2650
  ] });
2650
- }, Bo = (r) => {
2651
- const { activeProducts: a, isCartNotEmpty: e, isOpen: s } = r, { cart: i, reset: o, getTotalAndDiscount: l, updateQuantityOfProduct: d } = Pt(), n = vt();
2652
- function c(m) {
2653
- n(m);
2651
+ }, So = (r) => {
2652
+ const { activeProducts: a, isCartNotEmpty: e, isOpen: s } = r, { cart: i, reset: o, getTotalAndDiscount: l, updateQuantityOfProduct: d } = Pt(), n = bt();
2653
+ function c(h) {
2654
+ n(h);
2654
2655
  }
2655
- function v(m) {
2656
+ function b(h) {
2656
2657
  d({
2657
- productId: m.id,
2658
- productVariantId: m.activeVariantId,
2659
- quantity: m.quantity + 1
2658
+ productId: h.id,
2659
+ productVariantId: h.activeVariantId,
2660
+ quantity: h.quantity + 1
2660
2661
  });
2661
2662
  }
2662
- function f(m) {
2663
+ function x(h) {
2663
2664
  d({
2664
- productId: m.id,
2665
- productVariantId: m.activeVariantId,
2666
- quantity: m.quantity - 1
2665
+ productId: h.id,
2666
+ productVariantId: h.activeVariantId,
2667
+ quantity: h.quantity - 1
2667
2668
  });
2668
2669
  }
2669
2670
  return /* @__PURE__ */ t.jsxs(
@@ -2672,7 +2673,7 @@ const ma = (r) => {
2672
2673
  className: F(C.modal, {
2673
2674
  [C.closing]: !s
2674
2675
  }),
2675
- onClick: (m) => m.stopPropagation(),
2676
+ onClick: (h) => h.stopPropagation(),
2676
2677
  children: [
2677
2678
  /* @__PURE__ */ t.jsxs("div", { className: C.top, children: [
2678
2679
  /* @__PURE__ */ t.jsxs("div", { className: C.info, children: [
@@ -2692,7 +2693,7 @@ const ma = (r) => {
2692
2693
  )
2693
2694
  ] }),
2694
2695
  e ? /* @__PURE__ */ t.jsxs("div", { className: C.cart, children: [
2695
- /* @__PURE__ */ t.jsx("div", { className: C.products, children: a.map((m) => /* @__PURE__ */ t.jsxs(
2696
+ /* @__PURE__ */ t.jsx("div", { className: C.products, children: a.map((h) => /* @__PURE__ */ t.jsxs(
2696
2697
  "div",
2697
2698
  {
2698
2699
  className: C.product,
@@ -2701,7 +2702,7 @@ const ma = (r) => {
2701
2702
  /* @__PURE__ */ t.jsx(
2702
2703
  "img",
2703
2704
  {
2704
- src: `https://imagedelivery.net/${m.images[0].cfId}/w=500`,
2705
+ src: `https://imagedelivery.net/${h.images[0].cfId}/w=500`,
2705
2706
  alt: "image",
2706
2707
  width: "100%",
2707
2708
  height: "100%",
@@ -2709,10 +2710,10 @@ const ma = (r) => {
2709
2710
  }
2710
2711
  ),
2711
2712
  /* @__PURE__ */ t.jsxs("div", { className: C.content, children: [
2712
- /* @__PURE__ */ t.jsx("div", { className: C.name, children: m.name }),
2713
+ /* @__PURE__ */ t.jsx("div", { className: C.name, children: h.name }),
2713
2714
  /* @__PURE__ */ t.jsxs("div", { className: C.price, children: [
2714
2715
  "$",
2715
- m.variants.find((h) => h.id === m.activeVariantId).price.amount * ((m == null ? void 0 : m.quantity) || 1)
2716
+ h.variants.find((_) => _.id === h.activeVariantId).price.amount * ((h == null ? void 0 : h.quantity) || 1)
2716
2717
  ] })
2717
2718
  ] })
2718
2719
  ] }),
@@ -2721,11 +2722,11 @@ const ma = (r) => {
2721
2722
  "div",
2722
2723
  {
2723
2724
  onClick: () => {
2724
- m.quantity !== 1 && f(m);
2725
+ h.quantity !== 1 && x(h);
2725
2726
  },
2726
2727
  className: C.productButton,
2727
2728
  children: /* @__PURE__ */ t.jsx(
2728
- b,
2729
+ v,
2729
2730
  {
2730
2731
  name: "Minus",
2731
2732
  fill: "#757575",
@@ -2735,14 +2736,14 @@ const ma = (r) => {
2735
2736
  )
2736
2737
  }
2737
2738
  ),
2738
- /* @__PURE__ */ t.jsx("div", { className: C.productCount, children: m.quantity }),
2739
+ /* @__PURE__ */ t.jsx("div", { className: C.productCount, children: h.quantity }),
2739
2740
  /* @__PURE__ */ t.jsx(
2740
2741
  "div",
2741
2742
  {
2742
- onClick: () => v(m),
2743
+ onClick: () => b(h),
2743
2744
  className: C.productButton,
2744
2745
  children: /* @__PURE__ */ t.jsx(
2745
- b,
2746
+ v,
2746
2747
  {
2747
2748
  name: "Plus",
2748
2749
  fill: "#757575",
@@ -2755,14 +2756,14 @@ const ma = (r) => {
2755
2756
  ] })
2756
2757
  ]
2757
2758
  },
2758
- m.id
2759
+ h.id
2759
2760
  )) }),
2760
2761
  /* @__PURE__ */ t.jsxs("div", { className: C.bottom, children: [
2761
2762
  /* @__PURE__ */ t.jsxs("div", { className: C.subtotal, children: [
2762
2763
  /* @__PURE__ */ t.jsxs("div", { className: C.block, children: [
2763
2764
  /* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
2764
2765
  /* @__PURE__ */ t.jsx(
2765
- b,
2766
+ v,
2766
2767
  {
2767
2768
  name: "Info",
2768
2769
  width: 20,
@@ -2778,13 +2779,13 @@ const ma = (r) => {
2778
2779
  ] }),
2779
2780
  /* @__PURE__ */ t.jsx(kt, { onClick: () => c("/checkout"), children: "Checkout" })
2780
2781
  ] })
2781
- ] }) : /* @__PURE__ */ t.jsx(So, {})
2782
+ ] }) : /* @__PURE__ */ t.jsx(To, {})
2782
2783
  ]
2783
2784
  }
2784
2785
  );
2785
- }, So = () => /* @__PURE__ */ t.jsxs("div", { className: C.empty, children: [
2786
+ }, To = () => /* @__PURE__ */ t.jsxs("div", { className: C.empty, children: [
2786
2787
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2787
- b,
2788
+ v,
2788
2789
  {
2789
2790
  name: "Handbag",
2790
2791
  fill: "var(--icon-secondary)"
@@ -2803,11 +2804,11 @@ const ma = (r) => {
2803
2804
  }
2804
2805
  )
2805
2806
  ] })
2806
- ] }), To = ({ token: r }) => {
2807
- const [a, e] = p.useState("test-email@gmail.com"), s = vt();
2807
+ ] }), Po = ({ token: r }) => {
2808
+ const [a, e] = p.useState("test-email@gmail.com"), s = bt();
2808
2809
  p.useEffect(() => {
2809
2810
  (async () => {
2810
- const l = wo(r);
2811
+ const l = Co(r);
2811
2812
  e(l.email);
2812
2813
  })();
2813
2814
  }, [r]);
@@ -2822,17 +2823,17 @@ const ma = (r) => {
2822
2823
  children: /* @__PURE__ */ t.jsx("div", { children: a || "test-email@gmail.com" })
2823
2824
  }
2824
2825
  );
2825
- }, Po = "_share_11u0d_1", Ao = "_modal_11u0d_8", Oo = "_header_11u0d_14", qo = "_socials_11u0d_24", Eo = "_social_11u0d_24", Do = "_copy_11u0d_34", Lo = "_title_11u0d_41", Ro = "_copyWrapper_11u0d_47", Mo = "_copyText_11u0d_56", ot = {
2826
- share: Po,
2827
- modal: Ao,
2828
- header: Oo,
2829
- socials: qo,
2830
- social: Eo,
2831
- copy: Do,
2832
- title: Lo,
2833
- copyWrapper: Ro,
2834
- copyText: Mo
2835
- }, pa = () => {
2826
+ }, Ao = "_share_11u0d_1", Oo = "_modal_11u0d_8", qo = "_header_11u0d_14", Eo = "_socials_11u0d_24", Do = "_social_11u0d_24", Lo = "_copy_11u0d_34", Ro = "_title_11u0d_41", Mo = "_copyWrapper_11u0d_47", Ho = "_copyText_11u0d_56", ot = {
2827
+ share: Ao,
2828
+ modal: Oo,
2829
+ header: qo,
2830
+ socials: Eo,
2831
+ social: Do,
2832
+ copy: Lo,
2833
+ title: Ro,
2834
+ copyWrapper: Mo,
2835
+ copyText: Ho
2836
+ }, ga = () => {
2836
2837
  const { isOpenModal: r, setIsOpenModal: a } = Dt();
2837
2838
  function e() {
2838
2839
  a(!0);
@@ -2847,7 +2848,7 @@ const ma = (r) => {
2847
2848
  },
2848
2849
  type: "Secondary",
2849
2850
  children: /* @__PURE__ */ t.jsx(
2850
- b,
2851
+ v,
2851
2852
  {
2852
2853
  name: "Share",
2853
2854
  fill: "#757575",
@@ -2856,30 +2857,35 @@ const ma = (r) => {
2856
2857
  )
2857
2858
  }
2858
2859
  ),
2859
- r && /* @__PURE__ */ t.jsx(Et, { close: a, children: /* @__PURE__ */ t.jsx(Ho, {}) })
2860
+ r && /* @__PURE__ */ t.jsx(Et, { close: a, children: /* @__PURE__ */ t.jsx(zo, {}) })
2860
2861
  ] });
2861
- }, Ho = () => {
2862
- const { setIsOpenModal: r } = Dt(), { notification: a, setNotification: e } = zt(), s = window.location.href;
2863
- function i() {
2864
- navigator.clipboard.writeText(s), e({
2862
+ }, zo = () => {
2863
+ const { setIsOpenModal: r } = Dt(), { notification: a, setNotification: e } = zt(), { setIsOpen: s } = Ft(), i = window.location.href;
2864
+ function o() {
2865
+ navigator.clipboard.writeText(i), e({
2865
2866
  message: "Link copied to clipboard",
2866
2867
  status: "success"
2867
2868
  });
2868
2869
  }
2870
+ function l() {
2871
+ s(!1), setTimeout(() => {
2872
+ r(!1), s(!0);
2873
+ }, 300);
2874
+ }
2869
2875
  return /* @__PURE__ */ t.jsxs(
2870
2876
  "div",
2871
2877
  {
2872
2878
  className: ot.modal,
2873
- onClick: (o) => o.stopPropagation(),
2879
+ onClick: (d) => d.stopPropagation(),
2874
2880
  children: [
2875
2881
  /* @__PURE__ */ t.jsxs("div", { className: ot.header, children: [
2876
2882
  /* @__PURE__ */ t.jsx("div", { className: ot.title, children: "Copy Product Link" }),
2877
2883
  /* @__PURE__ */ t.jsx(
2878
- b,
2884
+ v,
2879
2885
  {
2880
2886
  name: "X",
2881
2887
  fill: "#757575",
2882
- onClick: () => r(!1),
2888
+ onClick: l,
2883
2889
  hoverable: !0
2884
2890
  }
2885
2891
  )
@@ -2889,43 +2895,43 @@ const ma = (r) => {
2889
2895
  "div",
2890
2896
  {
2891
2897
  className: F(ot.copy, ot.copyText),
2892
- onClick: i,
2893
- children: s
2898
+ onClick: o,
2899
+ children: i
2894
2900
  }
2895
2901
  ),
2896
2902
  /* @__PURE__ */ t.jsx(
2897
2903
  "div",
2898
2904
  {
2899
- onClick: i,
2905
+ onClick: o,
2900
2906
  className: ot.copy,
2901
- children: a ? /* @__PURE__ */ t.jsx(b, { name: "Check" }) : /* @__PURE__ */ t.jsx(b, { name: "Copy" })
2907
+ children: a ? /* @__PURE__ */ t.jsx(v, { name: "Check" }) : /* @__PURE__ */ t.jsx(v, { name: "Copy" })
2902
2908
  }
2903
2909
  )
2904
2910
  ] })
2905
2911
  ]
2906
2912
  }
2907
2913
  );
2908
- }, zo = "_accordion_1s1lq_1", Fo = "_header_1s1lq_9", Vo = "_icon_1s1lq_18", Uo = "_open_1s1lq_21", Yo = "_content_1s1lq_25", mt = {
2909
- accordion: zo,
2910
- header: Fo,
2911
- icon: Vo,
2912
- open: Uo,
2913
- content: Yo
2914
- }, ga = ({ title: r, content: a }) => {
2914
+ }, Fo = "_accordion_1s1lq_1", Vo = "_header_1s1lq_9", Uo = "_icon_1s1lq_18", Yo = "_open_1s1lq_21", Go = "_content_1s1lq_25", ht = {
2915
+ accordion: Fo,
2916
+ header: Vo,
2917
+ icon: Uo,
2918
+ open: Yo,
2919
+ content: Go
2920
+ }, xa = ({ title: r, content: a }) => {
2915
2921
  const [e, s] = p.useState(!1), [i, o] = p.useState(0), l = p.useRef(null), d = () => {
2916
2922
  s(!e);
2917
2923
  };
2918
2924
  return p.useEffect(() => {
2919
2925
  l.current && o(e ? l.current.scrollHeight : 0);
2920
- }, [e]), /* @__PURE__ */ t.jsxs("div", { className: mt.accordion, children: [
2926
+ }, [e]), /* @__PURE__ */ t.jsxs("div", { className: ht.accordion, children: [
2921
2927
  /* @__PURE__ */ t.jsxs(
2922
2928
  "div",
2923
2929
  {
2924
- className: mt.header,
2930
+ className: ht.header,
2925
2931
  onClick: d,
2926
2932
  children: [
2927
2933
  /* @__PURE__ */ t.jsx("h5", { id: "h5", children: r }),
2928
- /* @__PURE__ */ t.jsx("div", { className: F(mt.icon, { [mt.open]: e }), children: /* @__PURE__ */ t.jsx(b, { name: "CaretDown" }) })
2934
+ /* @__PURE__ */ t.jsx("div", { className: F(ht.icon, { [ht.open]: e }), children: /* @__PURE__ */ t.jsx(v, { name: "CaretDown" }) })
2929
2935
  ]
2930
2936
  }
2931
2937
  ),
@@ -2933,21 +2939,21 @@ const ma = (r) => {
2933
2939
  "div",
2934
2940
  {
2935
2941
  ref: l,
2936
- className: mt.content,
2942
+ className: ht.content,
2937
2943
  style: { height: `${i}px` },
2938
2944
  children: /* @__PURE__ */ t.jsx("p", { id: "p", children: a })
2939
2945
  }
2940
2946
  )
2941
2947
  ] });
2942
- }, Go = "_wrapper_p74l6_1", Wo = "_label_p74l6_9", Xo = "_input_p74l6_18", Jo = "_paddingless_p74l6_31", Qo = "_content_p74l6_35", Ko = "_contentBorder_p74l6_48", Zo = "_borderless_p74l6_53", ta = "_rightIcon_p74l6_58", et = {
2943
- wrapper: Go,
2944
- label: Wo,
2945
- input: Xo,
2946
- paddingless: Jo,
2947
- content: Qo,
2948
- contentBorder: Ko,
2949
- borderless: Zo,
2950
- rightIcon: ta
2948
+ }, Wo = "_wrapper_p74l6_1", Xo = "_label_p74l6_9", Jo = "_input_p74l6_18", Qo = "_paddingless_p74l6_31", Ko = "_content_p74l6_35", Zo = "_contentBorder_p74l6_48", ta = "_borderless_p74l6_53", ea = "_rightIcon_p74l6_58", et = {
2949
+ wrapper: Wo,
2950
+ label: Xo,
2951
+ input: Jo,
2952
+ paddingless: Qo,
2953
+ content: Ko,
2954
+ contentBorder: Zo,
2955
+ borderless: ta,
2956
+ rightIcon: ea
2951
2957
  }, fa = (r) => {
2952
2958
  const {
2953
2959
  onChange: a,
@@ -2959,18 +2965,18 @@ const ma = (r) => {
2959
2965
  max: d,
2960
2966
  placeholder: n,
2961
2967
  disabled: c = !1,
2962
- required: v = !1,
2963
- regex: f,
2964
- paddingless: m = !1,
2965
- borderless: h = !1,
2968
+ required: b = !1,
2969
+ regex: x,
2970
+ paddingless: h = !1,
2971
+ borderless: _ = !1,
2966
2972
  editable: g = !1,
2967
2973
  isSearch: u = !1
2968
2974
  } = r, { themeSettings: w } = qt(), { inputs: q } = w, [k, L] = p.useState(!1);
2969
- function B(x) {
2970
- return Number(x) < 0 ? String(l) : x;
2975
+ function B(f) {
2976
+ return Number(f) < 0 ? String(l) : f;
2971
2977
  }
2972
- function S(x) {
2973
- return !v || !f ? !0 : new RegExp(f).test(x);
2978
+ function S(f) {
2979
+ return !b || !x ? !0 : new RegExp(x).test(f);
2974
2980
  }
2975
2981
  return /* @__PURE__ */ t.jsxs("div", { className: et.wrapper, children: [
2976
2982
  s && /* @__PURE__ */ t.jsx(
@@ -2998,10 +3004,10 @@ const ma = (r) => {
2998
3004
  {
2999
3005
  id: s,
3000
3006
  type: o || "text",
3001
- onChange: (x) => {
3002
- if (o === "text") a(x.target.value);
3007
+ onChange: (f) => {
3008
+ if (o === "text") a(f.target.value);
3003
3009
  else {
3004
- const D = B(x.target.value);
3010
+ const D = B(f.target.value);
3005
3011
  a(D);
3006
3012
  }
3007
3013
  },
@@ -3009,9 +3015,9 @@ const ma = (r) => {
3009
3015
  autoComplete: "off",
3010
3016
  placeholder: n || "Type something...",
3011
3017
  className: F(et.input, {
3012
- [et.required]: k && v && !S(i),
3013
- [et.paddingless]: m,
3014
- [et.borderless]: h
3018
+ [et.required]: k && b && !S(i),
3019
+ [et.paddingless]: h,
3020
+ [et.borderless]: _
3015
3021
  }),
3016
3022
  min: o === "number" ? l : void 0,
3017
3023
  max: o === "number" ? d : void 0,
@@ -3020,7 +3026,7 @@ const ma = (r) => {
3020
3026
  }
3021
3027
  ),
3022
3028
  u && /* @__PURE__ */ t.jsx("div", { className: et.rightIcon, children: /* @__PURE__ */ t.jsx(
3023
- b,
3029
+ v,
3024
3030
  {
3025
3031
  name: "MagnifyingGlass",
3026
3032
  fill: "var(--icon-secondary)",
@@ -3029,7 +3035,7 @@ const ma = (r) => {
3029
3035
  }
3030
3036
  ) }),
3031
3037
  g && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
3032
- b,
3038
+ v,
3033
3039
  {
3034
3040
  name: "Sliders",
3035
3041
  width: 20,
@@ -3041,18 +3047,18 @@ const ma = (r) => {
3041
3047
  }
3042
3048
  )
3043
3049
  ] });
3044
- }, ea = "_wrapper_st58d_1", sa = "_label_st58d_10", na = "_textarea_st58d_18", ia = "_length_st58d_33", xt = {
3045
- wrapper: ea,
3046
- label: sa,
3047
- textarea: na,
3048
- length: ia
3049
- }, xa = (r) => {
3050
+ }, sa = "_wrapper_st58d_1", na = "_label_st58d_10", ia = "_textarea_st58d_18", oa = "_length_st58d_33", ft = {
3051
+ wrapper: sa,
3052
+ label: na,
3053
+ textarea: ia,
3054
+ length: oa
3055
+ }, ba = (r) => {
3050
3056
  const { onChange: a, label: e, value: s, maxLength: i, placeholder: o = "Type something..." } = r, [l, d] = p.useState(s.length);
3051
- return /* @__PURE__ */ t.jsxs("div", { className: xt.wrapper, children: [
3057
+ return /* @__PURE__ */ t.jsxs("div", { className: ft.wrapper, children: [
3052
3058
  e && /* @__PURE__ */ t.jsx(
3053
3059
  "label",
3054
3060
  {
3055
- className: xt.label,
3061
+ className: ft.label,
3056
3062
  htmlFor: e,
3057
3063
  children: e
3058
3064
  }
@@ -3066,11 +3072,11 @@ const ma = (r) => {
3066
3072
  d(n.target.value.length), a(n.target.value);
3067
3073
  },
3068
3074
  placeholder: o,
3069
- className: xt.textarea,
3075
+ className: ft.textarea,
3070
3076
  maxLength: i
3071
3077
  }
3072
3078
  ),
3073
- i && /* @__PURE__ */ t.jsxs("div", { className: xt.length, children: [
3079
+ i && /* @__PURE__ */ t.jsxs("div", { className: ft.length, children: [
3074
3080
  l,
3075
3081
  "/",
3076
3082
  i
@@ -3078,34 +3084,34 @@ const ma = (r) => {
3078
3084
  ] });
3079
3085
  };
3080
3086
  export {
3081
- ga as Accordion,
3087
+ xa as Accordion,
3082
3088
  kt as Button,
3083
- Sn as ButtonTypeSettings,
3084
- ua as ButtonsSettings,
3085
- ra as CategorySettings,
3089
+ Tn as ButtonTypeSettings,
3090
+ ma as ButtonsSettings,
3091
+ da as CategorySettings,
3086
3092
  gt as ChooseImage,
3087
- ja as ChooseImageModal,
3088
- So as EmptyCart,
3089
- da as FormSettings,
3090
- ma as HeaderButtons,
3091
- b as Icon,
3093
+ ya as ChooseImageModal,
3094
+ To as EmptyCart,
3095
+ ua as FormSettings,
3096
+ pa as HeaderButtons,
3097
+ v as Icon,
3092
3098
  W as InputSettings,
3093
3099
  fa as InputUI,
3094
- ze as ItemsSettings,
3095
- la as LayoutSettings,
3100
+ Fe as ItemsSettings,
3101
+ ra as LayoutSettings,
3096
3102
  _a as ListingSelector,
3097
- ya as Loader,
3103
+ ka as Loader,
3098
3104
  Et as Modal,
3099
3105
  ha as ProductOptions,
3100
3106
  At as RangeSelector,
3101
3107
  st as Select,
3102
- pa as ShareLink,
3103
- Co as ShoppingButton,
3104
- Bo as ShoppingModalCart,
3108
+ ga as ShareLink,
3109
+ Bo as ShoppingButton,
3110
+ So as ShoppingModalCart,
3105
3111
  Z as Switch,
3106
3112
  Rt as TextSettings,
3107
3113
  Ot as TextareaSettings,
3108
- xa as TextareaUI,
3114
+ ba as TextareaUI,
3109
3115
  Lt as TypesText,
3110
- To as UserInfo
3116
+ Po as UserInfo
3111
3117
  };