@billgangcom/theme-lib 1.44.3 → 1.45.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,6 +1,6 @@
1
- import { j as t, I as b, c as Y, a as tt, S as st, T as Et, b as et, C as bt, u as yt, d as kt, D as $t, e as It, v as Nt, B as ot, f as ht, P as wt, g as Ct, h as St, i as Vt, s as Yt, k as Dt, l as Bt, m as Ot, M as Mt, n as Ut, o as Ht, p as Gt } from "./index-FNbiNtjB.js";
2
- import { q as uc, L as _c } from "./index-FNbiNtjB.js";
3
- import f from "react";
1
+ import { j as t, I as b, c as Y, a as tt, S as st, T as Et, b as et, C as bt, u as yt, d as kt, D as $t, e as It, v as wt, B as ot, f as _t, P as Nt, g as Ct, h as St, i as Vt, s as Yt, k as Ut, l as Bt, m as Ot, M as Mt, n as Dt, o as Lt, p as Gt } from "./index-COq92Nlh.js";
2
+ import { q as uc, L as mc } from "./index-COq92Nlh.js";
3
+ import g from "react";
4
4
  import "@phosphor-icons/react";
5
5
  const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1ibay_15", Qt = "_subtitle_1ibay_22", Kt = "_alignmentContent_1ibay_29", Zt = "_alignments_1ibay_37", te = "_alignment_1ibay_8", ee = "_circle_1ibay_60", se = "_paddings_1ibay_67", ne = "_padding_1ibay_67", ie = "_active_1ibay_91", oe = "_input_1ibay_98", K = {
6
6
  wrapper: Xt,
@@ -25,10 +25,10 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
25
25
  "bottomLeft",
26
26
  "bottom",
27
27
  "bottomRight"
28
- ], ce = ["left", "top", "right", "bottom"], Wa = (u) => {
29
- const { alignment: a, padding: e, setPadding: s, setAlignment: i } = u;
30
- function c(p) {
31
- switch (p) {
28
+ ], ce = ["left", "top", "right", "bottom"], Wa = (d) => {
29
+ const { alignment: a, padding: e, setPadding: s, setAlignment: i } = d;
30
+ function c(f) {
31
+ switch (f) {
32
32
  case "left":
33
33
  case "topLeft":
34
34
  case "bottomLeft":
@@ -45,8 +45,8 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
45
45
  return "TextAlignCenter";
46
46
  }
47
47
  }
48
- function l(p) {
49
- switch (p) {
48
+ function l(f) {
49
+ switch (f) {
50
50
  case "left":
51
51
  return "AlignLeft";
52
52
  case "right":
@@ -57,28 +57,28 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
57
57
  return "AlignBottom";
58
58
  }
59
59
  }
60
- const [o, n] = f.useState(null), [d, j] = f.useState(null);
60
+ const [o, n] = g.useState(null), [m, v] = g.useState(null);
61
61
  return /* @__PURE__ */ t.jsxs("div", { className: K.layout, children: [
62
62
  /* @__PURE__ */ t.jsx("h3", { className: K.title, children: "Layout" }),
63
63
  /* @__PURE__ */ t.jsxs("div", { className: K.alignmentBlock, children: [
64
64
  /* @__PURE__ */ t.jsx("h5", { className: K.subtitle, children: "Alignment" }),
65
65
  /* @__PURE__ */ t.jsxs("div", { className: K.alignmentContent, children: [
66
- /* @__PURE__ */ t.jsx("div", { className: K.alignments, children: ae.map((p) => /* @__PURE__ */ t.jsxs(
66
+ /* @__PURE__ */ t.jsx("div", { className: K.alignments, children: ae.map((f) => /* @__PURE__ */ t.jsxs(
67
67
  "div",
68
68
  {
69
69
  onClick: () => {
70
- i(p);
70
+ i(f);
71
71
  },
72
72
  className: K.alignment,
73
73
  onMouseEnter: () => {
74
- n(p);
74
+ n(f);
75
75
  },
76
76
  onMouseLeave: () => {
77
77
  n(null);
78
78
  },
79
79
  children: [
80
- p !== a && o !== p && /* @__PURE__ */ t.jsx("div", { className: K.circle }),
81
- p !== a && o === p && /* @__PURE__ */ t.jsx(
80
+ f !== a && o !== f && /* @__PURE__ */ t.jsx("div", { className: K.circle }),
81
+ f !== a && o === f && /* @__PURE__ */ t.jsx(
82
82
  b,
83
83
  {
84
84
  name: c(o),
@@ -87,7 +87,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
87
87
  height: 22
88
88
  }
89
89
  ),
90
- p === a && /* @__PURE__ */ t.jsx(
90
+ f === a && /* @__PURE__ */ t.jsx(
91
91
  b,
92
92
  {
93
93
  name: c(a),
@@ -98,25 +98,25 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
98
98
  )
99
99
  ]
100
100
  },
101
- p
101
+ f
102
102
  )) }),
103
- /* @__PURE__ */ t.jsx("div", { className: K.paddings, children: ce.map((p) => /* @__PURE__ */ t.jsxs(
103
+ /* @__PURE__ */ t.jsx("div", { className: K.paddings, children: ce.map((f) => /* @__PURE__ */ t.jsxs(
104
104
  "label",
105
105
  {
106
106
  className: Y(K.padding, {
107
- [K.active]: d === p
107
+ [K.active]: m === f
108
108
  }),
109
109
  onFocus: () => {
110
- j(p);
110
+ v(f);
111
111
  },
112
112
  onBlur: () => {
113
- j(null);
113
+ v(null);
114
114
  },
115
115
  children: [
116
116
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
117
117
  b,
118
118
  {
119
- name: l(p),
119
+ name: l(f),
120
120
  width: 20,
121
121
  height: 20
122
122
  }
@@ -125,10 +125,10 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
125
125
  tt,
126
126
  {
127
127
  type: "number",
128
- value: String(e[p]),
128
+ value: String(e[f]),
129
129
  onChange: (r) => s({
130
130
  ...e,
131
- [p]: Number(r)
131
+ [f]: Number(r)
132
132
  }),
133
133
  paddingless: !0,
134
134
  borderless: !0
@@ -136,24 +136,24 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
136
136
  )
137
137
  ]
138
138
  },
139
- p
139
+ f
140
140
  )) })
141
141
  ] })
142
142
  ] })
143
143
  ] });
144
- }, le = "_title_1jkiw_1", re = "_subtitle_1jkiw_5", de = "_header_1jkiw_12", ue = "_text_1jkiw_13", _e = "_top_1jkiw_20", me = "_itemsBlock_1jkiw_29", pt = {
144
+ }, le = "_title_1jkiw_1", re = "_subtitle_1jkiw_5", de = "_header_1jkiw_12", ue = "_text_1jkiw_13", me = "_top_1jkiw_20", _e = "_itemsBlock_1jkiw_29", pt = {
145
145
  title: le,
146
146
  subtitle: re,
147
147
  header: de,
148
148
  text: ue,
149
- top: _e,
150
- itemsBlock: me
151
- }, he = "_typeTexts_167ez_1", pe = "_block_167ez_8", fe = "_active_167ez_25", Pt = {
149
+ top: me,
150
+ itemsBlock: _e
151
+ }, he = "_typeTexts_167ez_1", pe = "_block_167ez_8", ge = "_active_167ez_25", Pt = {
152
152
  typeTexts: he,
153
153
  block: pe,
154
- active: fe
155
- }, ge = ["bold", "italic", "underline", "strike-through", "code"], Rt = (u) => {
156
- const { typesText: a, setTypesText: e } = u;
154
+ active: ge
155
+ }, fe = ["bold", "italic", "underline", "strike-through", "code"], Ht = (d) => {
156
+ const { typesText: a, setTypesText: e } = d;
157
157
  function s(i) {
158
158
  switch (i) {
159
159
  case "bold":
@@ -168,7 +168,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
168
168
  return "TextUnderline";
169
169
  }
170
170
  }
171
- return /* @__PURE__ */ t.jsx("div", { className: Pt.typeTexts, children: ge.map((i) => /* @__PURE__ */ t.jsx(
171
+ return /* @__PURE__ */ t.jsx("div", { className: Pt.typeTexts, children: fe.map((i) => /* @__PURE__ */ t.jsx(
172
172
  "div",
173
173
  {
174
174
  className: Y(Pt.block, {
@@ -194,7 +194,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
194
194
  },
195
195
  String(i)
196
196
  )) });
197
- }, ft = {
197
+ }, gt = {
198
198
  h1: "Heading 1",
199
199
  h2: "Heading 2",
200
200
  h3: "Heading 3",
@@ -202,7 +202,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
202
202
  h5: "Heading 5",
203
203
  h6: "Heading 6",
204
204
  p: "Paragraph"
205
- }, Lt = (u) => {
205
+ }, Rt = (d) => {
206
206
  const {
207
207
  typesText: a,
208
208
  isActiveText: e,
@@ -212,9 +212,9 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
212
212
  setTypesText: l,
213
213
  title: o,
214
214
  subtitle: n = "Items",
215
- typeFont: d,
216
- setTypeFont: j
217
- } = u;
215
+ typeFont: m,
216
+ setTypeFont: v
217
+ } = d;
218
218
  return /* @__PURE__ */ t.jsxs("div", { className: pt.text, children: [
219
219
  (o || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: pt.top, children: [
220
220
  o && /* @__PURE__ */ t.jsx("h3", { className: pt.title, children: o }),
@@ -222,7 +222,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
222
222
  st,
223
223
  {
224
224
  current: e,
225
- onChange: (p) => s(p)
225
+ onChange: (f) => s(f)
226
226
  }
227
227
  )
228
228
  ] }),
@@ -231,13 +231,13 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
231
231
  /* @__PURE__ */ t.jsx(
232
232
  Et,
233
233
  {
234
- onChange: (p) => c(p),
234
+ onChange: (f) => c(f),
235
235
  value: i,
236
236
  maxLength: 150
237
237
  }
238
238
  ),
239
239
  /* @__PURE__ */ t.jsx(
240
- Rt,
240
+ Ht,
241
241
  {
242
242
  typesText: a,
243
243
  setTypesText: l
@@ -247,20 +247,20 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
247
247
  et,
248
248
  {
249
249
  label: "Type Text",
250
- options: Object.values(ft).filter(
251
- (p) => p !== ft[d]
250
+ options: Object.values(gt).filter(
251
+ (f) => f !== gt[m]
252
252
  ),
253
- onChange: (p) => j(
254
- Object.keys(ft).find(
255
- (r) => ft[r] === p
253
+ onChange: (f) => v(
254
+ Object.keys(gt).find(
255
+ (r) => gt[r] === f
256
256
  )
257
257
  ),
258
- value: ft[d]
258
+ value: gt[m]
259
259
  }
260
260
  )
261
261
  ] })
262
262
  ] });
263
- }, xe = "_title_pef24_1", be = "_subtitle_pef24_5", ve = "_header_pef24_12", je = "_text_pef24_13", ye = "_productsBlock_pef24_14", ke = "_top_pef24_26", $e = "_itemsBlock_pef24_35", Ie = "_typeTexts_pef24_41", Ne = "_block_pef24_48", we = "_active_pef24_61", Ce = "_products_pef24_14", Se = "_product_pef24_14", Be = "_button_pef24_80", Te = "_disabled_pef24_91", Pe = "_image_pef24_95", Ae = "_info_pef24_102", Oe = "_name_pef24_114", Me = "_buttons_pef24_118", qe = "_modal_pef24_125", Ee = "_link_pef24_145", De = "_modalOptions_pef24_151", Ue = "_addButton_pef24_164", He = "_deleteButton_pef24_179", Re = "_closeIcon_pef24_191", z = {
263
+ }, xe = "_title_120bw_1", be = "_subtitle_120bw_5", ve = "_header_120bw_12", je = "_text_120bw_13", ye = "_productsBlock_120bw_14", ke = "_top_120bw_26", $e = "_itemsBlock_120bw_35", Ie = "_typeTexts_120bw_41", we = "_block_120bw_48", Ne = "_active_120bw_61", Ce = "_products_120bw_14", Se = "_product_120bw_14", Be = "_button_120bw_80", Te = "_disabled_120bw_91", Pe = "_image_120bw_95", Ae = "_info_120bw_102", Oe = "_name_120bw_114", Me = "_buttons_120bw_118", qe = "_modal_120bw_125", Ee = "_link_120bw_146", Ue = "_modalOptions_120bw_152", De = "_addButton_120bw_165", Le = "_deleteButton_120bw_180", He = "_closeIcon_120bw_192", z = {
264
264
  title: xe,
265
265
  subtitle: be,
266
266
  header: ve,
@@ -269,8 +269,8 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
269
269
  top: ke,
270
270
  itemsBlock: $e,
271
271
  typeTexts: Ie,
272
- block: Ne,
273
- active: we,
272
+ block: we,
273
+ active: Ne,
274
274
  products: Ce,
275
275
  product: Se,
276
276
  button: Be,
@@ -281,15 +281,15 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
281
281
  buttons: Me,
282
282
  modal: qe,
283
283
  link: Ee,
284
- modalOptions: De,
285
- addButton: Ue,
286
- deleteButton: He,
287
- closeIcon: Re
288
- }, Le = f.forwardRef(
289
- (u, a) => {
290
- const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = u;
291
- function o(n, d) {
292
- return n.length > d ? `${n.slice(0, d)}...` : n;
284
+ modalOptions: Ue,
285
+ addButton: De,
286
+ deleteButton: Le,
287
+ closeIcon: He
288
+ }, Re = g.forwardRef(
289
+ (d, a) => {
290
+ const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = d;
291
+ function o(n, m) {
292
+ return n.length > m ? `${n.slice(0, m)}...` : n;
293
293
  }
294
294
  return /* @__PURE__ */ t.jsxs(
295
295
  "div",
@@ -325,45 +325,45 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
325
325
  {
326
326
  label: "Put up an attractive image",
327
327
  activeImage: e[n.field],
328
- onChange: (d) => {
329
- const j = {
328
+ onChange: (m) => {
329
+ const v = {
330
330
  ...e,
331
- [n.field]: d
331
+ [n.field]: m
332
332
  };
333
- s(j);
333
+ s(v);
334
334
  }
335
335
  },
336
336
  String(n.field)
337
337
  );
338
338
  if (n.type === "text")
339
339
  return /* @__PURE__ */ t.jsx(
340
- Lt,
340
+ Rt,
341
341
  {
342
342
  typesText: e[n.field.type],
343
- setTypesText: (d) => {
344
- const j = {
343
+ setTypesText: (m) => {
344
+ const v = {
345
345
  ...e,
346
- [n.field.type]: d
346
+ [n.field.type]: m
347
347
  };
348
- s(j);
348
+ s(v);
349
349
  },
350
350
  text: e[n.field.text]["en-US"] || "",
351
- setText: (d) => {
352
- const j = {
351
+ setText: (m) => {
352
+ const v = {
353
353
  ...e,
354
354
  [n.field.text]: {
355
- "en-US": d
355
+ "en-US": m
356
356
  }
357
357
  };
358
- s(j);
358
+ s(v);
359
359
  },
360
360
  typeFont: e[n.field.typeFont],
361
- setTypeFont: (d) => {
362
- const j = {
361
+ setTypeFont: (m) => {
362
+ const v = {
363
363
  ...e,
364
- [n.field.typeFont]: d
364
+ [n.field.typeFont]: m
365
365
  };
366
- s(j);
366
+ s(v);
367
367
  },
368
368
  subtitle: n.label
369
369
  }
@@ -372,12 +372,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
372
372
  return /* @__PURE__ */ t.jsx(
373
373
  tt,
374
374
  {
375
- onChange: (d) => {
376
- const j = {
375
+ onChange: (m) => {
376
+ const v = {
377
377
  ...e,
378
- [n.field]: d
378
+ [n.field]: m
379
379
  };
380
- s(j);
380
+ s(v);
381
381
  },
382
382
  value: e[n.field] || "",
383
383
  label: n.label,
@@ -389,12 +389,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
389
389
  /* @__PURE__ */ t.jsx(
390
390
  tt,
391
391
  {
392
- onChange: (d) => {
393
- const j = {
392
+ onChange: (m) => {
393
+ const v = {
394
394
  ...e,
395
- [n.field.text]: d
395
+ [n.field.text]: m
396
396
  };
397
- s(j);
397
+ s(v);
398
398
  },
399
399
  value: e[n.field.text] || "",
400
400
  label: n.inputLabel,
@@ -406,12 +406,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
406
406
  {
407
407
  current: !!e[n.field.switch] || !1,
408
408
  label: n.switchLabel,
409
- onChange: (d) => {
410
- const j = {
409
+ onChange: (m) => {
410
+ const v = {
411
411
  ...e,
412
- [n.field.switch]: d
412
+ [n.field.switch]: m
413
413
  };
414
- s(j);
414
+ s(v);
415
415
  }
416
416
  }
417
417
  )
@@ -421,12 +421,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
421
421
  Ge,
422
422
  {
423
423
  items: e[n.field] || [],
424
- setItems: (d) => {
425
- const j = {
424
+ setItems: (m) => {
425
+ const v = {
426
426
  ...e,
427
- [n.field]: d
427
+ [n.field]: m
428
428
  };
429
- s(j);
429
+ s(v);
430
430
  },
431
431
  itemsType: "select",
432
432
  draggable: n.draggable || !1,
@@ -443,25 +443,25 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
443
443
  et,
444
444
  {
445
445
  options: n.itemsOptions,
446
- onChange: (d) => {
447
- const j = {
446
+ onChange: (m) => {
447
+ const v = {
448
448
  ...e,
449
- [n.field]: d
449
+ [n.field]: m
450
450
  };
451
- s(j);
451
+ s(v);
452
452
  },
453
453
  label: n.label,
454
454
  value: e[n.field] || "String",
455
455
  leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(b, { name: e[n.field] }),
456
456
  switcher: n.switcher ? {
457
457
  value: !!e[n.switcher],
458
- onChange: (d) => {
458
+ onChange: (m) => {
459
459
  if (n.switcher === "isActive") {
460
- const j = {
460
+ const v = {
461
461
  ...e,
462
- [n.switcher]: d
462
+ [n.switcher]: m
463
463
  };
464
- s(j);
464
+ s(v);
465
465
  }
466
466
  }
467
467
  } : void 0
@@ -476,8 +476,8 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
476
476
  other: ze,
477
477
  subtitle: Fe,
478
478
  items: Ve
479
- }, Tt = (u) => {
480
- const { items: a, title: e = "Other" } = u;
479
+ }, Tt = (d) => {
480
+ const { items: a, title: e = "Other" } = d;
481
481
  return /* @__PURE__ */ t.jsxs("div", { className: At.other, children: [
482
482
  /* @__PURE__ */ t.jsx("h5", { className: At.subtitle, children: e }),
483
483
  /* @__PURE__ */ t.jsx("div", { className: At.items, children: a.map((s, i) => /* @__PURE__ */ t.jsx(
@@ -493,7 +493,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
493
493
  )) })
494
494
  ] });
495
495
  };
496
- function Ye({ product: u, children: a }) {
496
+ function Ye({ product: d, children: a }) {
497
497
  const {
498
498
  attributes: e,
499
499
  listeners: s,
@@ -502,7 +502,7 @@ function Ye({ product: u, children: a }) {
502
502
  transition: l,
503
503
  isDragging: o
504
504
  } = Ct({
505
- id: u.id
505
+ id: d.id
506
506
  }), n = {
507
507
  transform: St.Transform.toString(c),
508
508
  transition: l
@@ -519,7 +519,7 @@ function Ye({ product: u, children: a }) {
519
519
  }
520
520
  );
521
521
  }
522
- const Ge = (u) => {
522
+ const Ge = (d) => {
523
523
  const {
524
524
  isActiveItems: a,
525
525
  setIsActiveItems: e,
@@ -529,65 +529,65 @@ const Ge = (u) => {
529
529
  title: l,
530
530
  subtitle: o,
531
531
  editable: n = !0,
532
- draggable: d = !1,
533
- withImage: j = !1,
534
- deletable: p = !0,
532
+ draggable: m = !1,
533
+ withImage: v = !1,
534
+ deletable: f = !0,
535
535
  addable: r = !0,
536
- itemsType: y,
536
+ itemsType: k,
537
537
  itemsPlaceholder: h = "",
538
538
  itemsOptions: _,
539
- hasRangeSelector: w = !1,
539
+ hasRangeSelector: $ = !1,
540
540
  rangeSelectorOptions: H,
541
- modalOptions: $,
542
- addableOptions: g = {},
543
- limit: B,
544
- autoInterval: E
545
- } = u, [F, T] = f.useState(null), [v, A] = f.useState({
541
+ modalOptions: M,
542
+ addableOptions: u = {},
543
+ limit: S,
544
+ autoInterval: q
545
+ } = d, [F, B] = g.useState(null), [j, P] = g.useState({
546
546
  top: 0,
547
547
  left: 0
548
- }), [x, I] = f.useState(null), C = f.useRef(null), [R, O] = f.useState(!1), U = yt(
549
- kt(wt, {
548
+ }), [x, I] = g.useState(null), N = g.useRef(null), [L, A] = g.useState(!1), D = yt(
549
+ kt(Nt, {
550
550
  activationConstraint: {
551
551
  distance: 5
552
552
  }
553
553
  })
554
554
  );
555
- f.useEffect(() => {
556
- const m = () => {
557
- T(null), O(!1);
555
+ g.useEffect(() => {
556
+ const p = () => {
557
+ B(null), A(!1);
558
558
  };
559
- return document.body.addEventListener("click", m), T(null), O(!1), () => {
560
- T(null), O(!1), document.body.removeEventListener("click", m);
559
+ return document.body.addEventListener("click", p), B(null), A(!1), () => {
560
+ B(null), A(!1), document.body.removeEventListener("click", p);
561
561
  };
562
- }, []), f.useEffect(() => {
562
+ }, []), g.useEffect(() => {
563
563
  if (F) {
564
- const m = [...s].map((N) => N.id === F.id ? F : N);
565
- i(m);
564
+ const p = [...s].map((w) => w.id === F.id ? F : w);
565
+ i(p);
566
566
  }
567
- }, [F]), f.useEffect(() => {
568
- if (C.current && x) {
569
- const m = C.current.getBoundingClientRect().height, N = window.innerHeight;
570
- let M = x.top;
571
- M + m > N + window.scrollY - 200 && (M = N + window.scrollY - m - 200), M < 0 && (M = 10), A({
572
- top: M,
567
+ }, [F]), g.useEffect(() => {
568
+ if (N.current && x) {
569
+ const p = N.current.getBoundingClientRect().height, w = window.innerHeight;
570
+ let O = x.top;
571
+ O + p > w + window.scrollY - 200 && (O = w + window.scrollY - p - 200), O < 0 && (O = 10), P({
572
+ top: O,
573
573
  left: x.left
574
574
  });
575
575
  }
576
- }, [C.current, x]);
577
- const nt = (m, N) => {
578
- m.stopPropagation();
579
- const M = m.target.getBoundingClientRect();
576
+ }, [N.current, x]);
577
+ const nt = (p, w) => {
578
+ p.stopPropagation();
579
+ const O = p.target.getBoundingClientRect();
580
580
  I({
581
- top: M.top + window.scrollY - 70,
582
- left: M.left - (r ? 30 : 65)
583
- }), T(N), O(!0);
581
+ top: O.top + window.scrollY - 70,
582
+ left: O.left - (r ? 30 : 65)
583
+ }), B(w), A(!0);
584
584
  };
585
- function dt(m) {
586
- if (j)
587
- return m ? /* @__PURE__ */ t.jsx(
585
+ function dt(p) {
586
+ if (v)
587
+ return p ? /* @__PURE__ */ t.jsx(
588
588
  "img",
589
589
  {
590
- src: `https://imagedelivery.net/${m[0]}/w=1000`,
590
+ src: `https://imagedelivery.net/${p[0]}/w=1000`,
591
591
  alt: "image",
592
592
  width: 16,
593
593
  height: 16
@@ -602,19 +602,19 @@ const Ge = (u) => {
602
602
  }
603
603
  );
604
604
  }
605
- const k = (m) => {
606
- const { active: N, over: M } = m;
607
- if (M && N.id !== M.id) {
608
- const L = s.findIndex((q) => q.id === N.id), X = s.findIndex((q) => q.id === M.id);
609
- if (L !== -1 && X !== -1) {
610
- const q = [...s], [ut] = q.splice(L, 1);
611
- q.splice(X, 0, ut), i(q);
605
+ const y = (p) => {
606
+ const { active: w, over: O } = p;
607
+ if (O && w.id !== O.id) {
608
+ const R = s.findIndex((E) => E.id === w.id), X = s.findIndex((E) => E.id === O.id);
609
+ if (R !== -1 && X !== -1) {
610
+ const E = [...s], [ut] = E.splice(R, 1);
611
+ E.splice(X, 0, ut), i(E);
612
612
  }
613
613
  }
614
- }, D = (m, N) => {
615
- var L, X;
616
- const M = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
617
- d && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
614
+ }, U = (p, w) => {
615
+ var R, X;
616
+ const O = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
617
+ m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
618
618
  b,
619
619
  {
620
620
  name: "DotsSixVertical",
@@ -623,57 +623,57 @@ const Ge = (u) => {
623
623
  height: 20
624
624
  }
625
625
  ) }),
626
- y === "select" && _ && /* @__PURE__ */ t.jsx(
626
+ k === "select" && _ && /* @__PURE__ */ t.jsx(
627
627
  et,
628
628
  {
629
- onChange: (q) => {
630
- const ut = [...s], mt = _.find((vt) => vt.name["en-US"] === q);
631
- if (!mt) return;
632
- const _t = ut.map((vt) => vt.id === m.id ? {
633
- ...mt,
629
+ onChange: (E) => {
630
+ const ut = [...s], ht = _.find((vt) => vt.name["en-US"] === E);
631
+ if (!ht) return;
632
+ const mt = ut.map((vt) => vt.id === p.id ? {
633
+ ...ht,
634
634
  name: {
635
- "en-US": q
635
+ "en-US": E
636
636
  }
637
637
  } : vt);
638
- T({
639
- ...m,
638
+ B({
639
+ ...p,
640
640
  name: {
641
- "en-US": q
641
+ "en-US": E
642
642
  }
643
- }), i([..._t]);
643
+ }), i([...mt]);
644
644
  },
645
- value: m.name["en-US"],
646
- options: _.filter((q) => !s.find((ut) => ut.name["en-US"] === q.name["en-US"])).map((q) => q.name["en-US"]),
647
- leftAddon: dt(m.images)
645
+ value: p.name["en-US"],
646
+ options: _.filter((E) => !s.find((ut) => ut.name["en-US"] === E.name["en-US"])).map((E) => E.name["en-US"]),
647
+ leftAddon: dt(p.images)
648
648
  }
649
649
  ),
650
- y === "input" && /* @__PURE__ */ t.jsx(
650
+ k === "input" && /* @__PURE__ */ t.jsx(
651
651
  tt,
652
652
  {
653
- onChange: (q) => {
654
- const mt = [...s].map((_t) => _t.id === m.id ? {
655
- ...m,
653
+ onChange: (E) => {
654
+ const ht = [...s].map((mt) => mt.id === p.id ? {
655
+ ...p,
656
656
  name: {
657
- "en-US": q
657
+ "en-US": E
658
658
  }
659
- } : _t);
660
- i([...mt]);
659
+ } : mt);
660
+ i([...ht]);
661
661
  },
662
- value: m.name["en-US"],
662
+ value: p.name["en-US"],
663
663
  placeholder: h
664
664
  }
665
665
  ),
666
- y === "image" && /* @__PURE__ */ t.jsx(
666
+ k === "image" && /* @__PURE__ */ t.jsx(
667
667
  bt,
668
668
  {
669
- onChange: (q) => {
670
- const mt = [...s].map((_t) => _t.id === m.id ? {
671
- ...m,
672
- images: q
673
- } : _t);
674
- i([...mt]);
669
+ onChange: (E) => {
670
+ const ht = [...s].map((mt) => mt.id === p.id ? {
671
+ ...p,
672
+ images: E
673
+ } : mt);
674
+ i([...ht]);
675
675
  },
676
- activeImage: (L = s.find((q) => q.id === m.id)) != null && L.images ? (X = s.find((q) => q.id === m.id)) == null ? void 0 : X.images[0] : void 0
676
+ activeImage: (R = s.find((E) => E.id === p.id)) != null && R.images ? (X = s.find((E) => E.id === p.id)) == null ? void 0 : X.images[0] : void 0
677
677
  }
678
678
  ),
679
679
  /* @__PURE__ */ t.jsxs("div", { className: z.buttons, children: [
@@ -684,12 +684,12 @@ const Ge = (u) => {
684
684
  hoverable: !0,
685
685
  width: 20,
686
686
  height: 20,
687
- onClick: (q) => {
688
- console.log(q, m), nt(q, m);
687
+ onClick: (E) => {
688
+ nt(E, p);
689
689
  }
690
690
  }
691
691
  ) }),
692
- p && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
692
+ f && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
693
693
  b,
694
694
  {
695
695
  name: "Trash",
@@ -697,26 +697,26 @@ const Ge = (u) => {
697
697
  width: 20,
698
698
  height: 20,
699
699
  fill: "#C12A2A",
700
- onClick: () => i(s.filter((q) => q.id !== m.id))
700
+ onClick: () => i(s.filter((E) => E.id !== p.id))
701
701
  }
702
702
  ) })
703
703
  ] })
704
704
  ] });
705
- return d ? /* @__PURE__ */ t.jsx(
705
+ return m ? /* @__PURE__ */ t.jsx(
706
706
  Ye,
707
707
  {
708
- product: m,
709
- index: N,
710
- children: M
708
+ product: p,
709
+ index: w,
710
+ children: O
711
711
  },
712
- m.id
712
+ p.id
713
713
  ) : /* @__PURE__ */ t.jsx(
714
714
  "div",
715
715
  {
716
716
  className: z.product,
717
- children: M
717
+ children: O
718
718
  },
719
- m.id
719
+ p.id
720
720
  );
721
721
  };
722
722
  return /* @__PURE__ */ t.jsxs("div", { className: z.productsBlock, children: [
@@ -726,39 +726,39 @@ const Ge = (u) => {
726
726
  st,
727
727
  {
728
728
  current: a,
729
- onChange: (m) => e == null ? void 0 : e(m)
729
+ onChange: (p) => e == null ? void 0 : e(p)
730
730
  }
731
731
  )
732
732
  ] }),
733
- F && n && $ && R && /* @__PURE__ */ t.jsx(
734
- Le,
733
+ F && n && M && L && /* @__PURE__ */ t.jsx(
734
+ Re,
735
735
  {
736
- ref: C,
736
+ ref: N,
737
737
  activeItem: F,
738
- setActiveItem: T,
739
- popupPosition: v,
740
- modalOptions: $,
741
- setIsOpenModal: O
738
+ setActiveItem: B,
739
+ popupPosition: j,
740
+ modalOptions: M,
741
+ setIsOpenModal: A
742
742
  }
743
743
  ),
744
- w && H && /* @__PURE__ */ t.jsx(qt, { ...H }),
744
+ $ && H && /* @__PURE__ */ t.jsx(qt, { ...H }),
745
745
  /* @__PURE__ */ t.jsxs("div", { className: z.products, children: [
746
746
  o && /* @__PURE__ */ t.jsx("h5", { className: z.subtitle, children: o }),
747
- d ? /* @__PURE__ */ t.jsx(
747
+ m ? /* @__PURE__ */ t.jsx(
748
748
  $t,
749
749
  {
750
- sensors: U,
751
- onDragEnd: k,
750
+ sensors: D,
751
+ onDragEnd: y,
752
752
  children: /* @__PURE__ */ t.jsx(
753
753
  It,
754
754
  {
755
- items: s.map((m) => m.id),
756
- strategy: Nt,
757
- children: s.map((m, N) => D(m, N))
755
+ items: s.map((p) => p.id),
756
+ strategy: wt,
757
+ children: s.map((p, w) => U(p, w))
758
758
  }
759
759
  )
760
760
  }
761
- ) : s.map((m, N) => D(m, N)),
761
+ ) : s.map((p, w) => U(p, w)),
762
762
  r && /* @__PURE__ */ t.jsx(
763
763
  "div",
764
764
  {
@@ -772,37 +772,37 @@ const Ge = (u) => {
772
772
  {
773
773
  withoutHover: !0,
774
774
  className: Y(z.button, {
775
- [z.disabled]: !!(B && B <= s.length || s.length === (_ == null ? void 0 : _.length))
775
+ [z.disabled]: !!(S && S <= s.length || s.length === (_ == null ? void 0 : _.length))
776
776
  }),
777
777
  size: "s",
778
- disabled: !!(B && B <= s.length || s.length === (_ == null ? void 0 : _.length)),
778
+ disabled: !!(S && S <= s.length || s.length === (_ == null ? void 0 : _.length)),
779
779
  onClick: () => {
780
- const m = [...s];
781
- let N = null;
780
+ const p = [...s];
781
+ let w = null;
782
782
  if (_) {
783
- for (let M = 0; M < _.length; M++)
784
- if (!s.find((L) => L.id === _[M].id)) {
785
- N = _[M];
783
+ for (let O = 0; O < _.length; O++)
784
+ if (!s.find((R) => R.id === _[O].id)) {
785
+ w = _[O];
786
786
  break;
787
787
  }
788
788
  }
789
- y === "select" && _ ? m.push({
790
- name: N ? N.name : _[0].name,
791
- id: (N == null ? void 0 : N.id) || _[0].id,
792
- ...g
793
- }) : y === "input" ? m.push({
789
+ k === "select" && _ ? p.push({
790
+ name: w ? w.name : _[0].name,
791
+ id: (w == null ? void 0 : w.id) || _[0].id,
792
+ ...u
793
+ }) : k === "input" ? p.push({
794
794
  name: {
795
795
  "en-US": ""
796
796
  },
797
- id: ht(),
798
- ...g
799
- }) : m.push({
797
+ id: _t(),
798
+ ...u
799
+ }) : p.push({
800
800
  name: {
801
801
  "en-US": `Image ${s.length + 1}`
802
802
  },
803
- id: ht(),
804
- ...g
805
- }), i(m);
803
+ id: _t(),
804
+ ...u
805
+ }), i(p);
806
806
  },
807
807
  style: {
808
808
  width: "fit-content"
@@ -824,13 +824,13 @@ const Ge = (u) => {
824
824
  )
825
825
  ] }),
826
826
  c !== void 0 && /* @__PURE__ */ t.jsx(Tt, { items: c }),
827
- E !== void 0 && /* @__PURE__ */ t.jsx(
827
+ q !== void 0 && /* @__PURE__ */ t.jsx(
828
828
  tt,
829
829
  {
830
- label: E.title || "Auto scroll interval",
830
+ label: q.title || "Auto scroll interval",
831
831
  type: "number",
832
- value: String(E.autoInterval),
833
- onChange: (m) => E.setAutoInterval(Number(m)),
832
+ value: String(q.autoInterval),
833
+ onChange: (p) => q.setAutoInterval(Number(p)),
834
834
  min: 0.1,
835
835
  max: 100,
836
836
  style: {
@@ -840,7 +840,7 @@ const Ge = (u) => {
840
840
  }
841
841
  )
842
842
  ] });
843
- }, Xe = "_title_82zux_1", We = "_subtitle_82zux_5", Je = "_header_82zux_12", Qe = "_text_82zux_13", Ke = "_productsBlock_82zux_14", Ze = "_top_82zux_26", ts = "_itemsBlock_82zux_35", es = "_typeTexts_82zux_41", ss = "_block_82zux_48", ns = "_active_82zux_61", is = "_products_82zux_14", os = "_product_82zux_14", as = "_button_82zux_80", cs = "_disabled_82zux_91", ls = "_image_82zux_95", rs = "_info_82zux_102", ds = "_name_82zux_114", us = "_buttons_82zux_118", _s = "_modal_82zux_125", ms = "_link_82zux_145", hs = "_modalOptions_82zux_151", ps = "_addButton_82zux_157", fs = "_deleteButton_82zux_179", Z = {
843
+ }, Xe = "_title_82zux_1", We = "_subtitle_82zux_5", Je = "_header_82zux_12", Qe = "_text_82zux_13", Ke = "_productsBlock_82zux_14", Ze = "_top_82zux_26", ts = "_itemsBlock_82zux_35", es = "_typeTexts_82zux_41", ss = "_block_82zux_48", ns = "_active_82zux_61", is = "_products_82zux_14", os = "_product_82zux_14", as = "_button_82zux_80", cs = "_disabled_82zux_91", ls = "_image_82zux_95", rs = "_info_82zux_102", ds = "_name_82zux_114", us = "_buttons_82zux_118", ms = "_modal_82zux_125", _s = "_link_82zux_145", hs = "_modalOptions_82zux_151", ps = "_addButton_82zux_157", gs = "_deleteButton_82zux_179", Z = {
844
844
  title: Xe,
845
845
  subtitle: We,
846
846
  header: Je,
@@ -859,12 +859,12 @@ const Ge = (u) => {
859
859
  info: rs,
860
860
  name: ds,
861
861
  buttons: us,
862
- modal: _s,
863
- link: ms,
862
+ modal: ms,
863
+ link: _s,
864
864
  modalOptions: hs,
865
865
  addButton: ps,
866
- deleteButton: fs
867
- }, Ja = (u) => {
866
+ deleteButton: gs
867
+ }, Ja = (d) => {
868
868
  const {
869
869
  isActiveItems: a,
870
870
  setIsActiveItems: e,
@@ -874,21 +874,21 @@ const Ge = (u) => {
874
874
  title: l,
875
875
  subtitle: o,
876
876
  draggable: n = !1,
877
- withImage: d = !1,
878
- addable: j = !0,
879
- itemsOptions: p,
877
+ withImage: m = !1,
878
+ addable: v = !0,
879
+ itemsOptions: f,
880
880
  hasRangeSelector: r = !1,
881
- rangeSelectorOptions: y,
881
+ rangeSelectorOptions: k,
882
882
  limit: h,
883
883
  autoScrollInterval: _,
884
- deletable: w
885
- } = u;
886
- function H(g) {
887
- if (d)
888
- return g ? /* @__PURE__ */ t.jsx(
884
+ deletable: $
885
+ } = d;
886
+ function H(u) {
887
+ if (m)
888
+ return u ? /* @__PURE__ */ t.jsx(
889
889
  "img",
890
890
  {
891
- src: `https://imagedelivery.net/${g[0]}/w=1000`,
891
+ src: `https://imagedelivery.net/${u[0]}/w=1000`,
892
892
  alt: "image",
893
893
  width: 16,
894
894
  height: 16
@@ -903,9 +903,9 @@ const Ge = (u) => {
903
903
  }
904
904
  );
905
905
  }
906
- const $ = (g, B = !1) => {
907
- const E = p.find((T) => T.id === g);
908
- if (!E) return;
906
+ const M = (u, S = !1) => {
907
+ const q = f.find((B) => B.id === u);
908
+ if (!q) return;
909
909
  const F = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
910
910
  n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
911
911
  b,
@@ -919,18 +919,18 @@ const Ge = (u) => {
919
919
  /* @__PURE__ */ t.jsx(
920
920
  et,
921
921
  {
922
- onChange: (T) => {
923
- const v = [...s], A = p.find((C) => C.name === T);
924
- if (!A) return;
925
- const x = A.id, I = v.map((C) => C === g ? x : C);
922
+ onChange: (B) => {
923
+ const j = [...s], P = f.find((N) => N.name === B);
924
+ if (!P) return;
925
+ const x = P.id, I = j.map((N) => N === u ? x : N);
926
926
  i([...I]);
927
927
  },
928
- value: E.name,
929
- options: p.filter((T) => !s.find((v) => v === T.id)).map((T) => T.name),
930
- leftAddon: H(E.images)
928
+ value: q.name,
929
+ options: f.filter((B) => !s.find((j) => j === B.id)).map((B) => B.name),
930
+ leftAddon: H(q.images)
931
931
  }
932
932
  ),
933
- B && /* @__PURE__ */ t.jsx("div", { className: Z.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Z.deleteButton, children: /* @__PURE__ */ t.jsx(
933
+ S && /* @__PURE__ */ t.jsx("div", { className: Z.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Z.deleteButton, children: /* @__PURE__ */ t.jsx(
934
934
  b,
935
935
  {
936
936
  name: "Trash",
@@ -938,7 +938,7 @@ const Ge = (u) => {
938
938
  width: 20,
939
939
  height: 20,
940
940
  fill: "#C12A2A",
941
- onClick: () => i(s.filter((T) => T !== g))
941
+ onClick: () => i(s.filter((B) => B !== u))
942
942
  }
943
943
  ) }) })
944
944
  ] });
@@ -948,7 +948,7 @@ const Ge = (u) => {
948
948
  className: Z.product,
949
949
  children: F
950
950
  },
951
- g
951
+ u
952
952
  );
953
953
  };
954
954
  return /* @__PURE__ */ t.jsxs("div", { className: Z.productsBlock, children: [
@@ -958,15 +958,15 @@ const Ge = (u) => {
958
958
  st,
959
959
  {
960
960
  current: a,
961
- onChange: (g) => e == null ? void 0 : e(g)
961
+ onChange: (u) => e == null ? void 0 : e(u)
962
962
  }
963
963
  )
964
964
  ] }),
965
- r && y && /* @__PURE__ */ t.jsx(qt, { ...y }),
965
+ r && k && /* @__PURE__ */ t.jsx(qt, { ...k }),
966
966
  /* @__PURE__ */ t.jsxs("div", { className: Z.products, children: [
967
967
  o && /* @__PURE__ */ t.jsx("h5", { className: Z.subtitle, children: o }),
968
- s.map((g) => $(g, w)),
969
- j && /* @__PURE__ */ t.jsx(
968
+ s.map((u) => M(u, $)),
969
+ v && /* @__PURE__ */ t.jsx(
970
970
  "div",
971
971
  {
972
972
  style: {
@@ -980,21 +980,21 @@ const Ge = (u) => {
980
980
  {
981
981
  withoutHover: !0,
982
982
  className: Y(Z.button, {
983
- [Z.disabled]: !!(h && h <= s.length || s.length === p.length)
983
+ [Z.disabled]: !!(h && h <= s.length || s.length === f.length)
984
984
  }),
985
985
  size: "s",
986
- disabled: !!(h && h <= s.length || s.length === p.length),
986
+ disabled: !!(h && h <= s.length || s.length === f.length),
987
987
  onClick: () => {
988
- const g = [...s];
989
- let B = null;
990
- if (p) {
991
- for (let E = 0; E < p.length; E++)
992
- if (!s.find((F) => F === p[E].id)) {
993
- B = p[E];
988
+ const u = [...s];
989
+ let S = null;
990
+ if (f) {
991
+ for (let q = 0; q < f.length; q++)
992
+ if (!s.find((F) => F === f[q].id)) {
993
+ S = f[q];
994
994
  break;
995
995
  }
996
996
  }
997
- g.push((B == null ? void 0 : B.id) || p[0].id), i(g);
997
+ u.push((S == null ? void 0 : S.id) || f[0].id), i(u);
998
998
  },
999
999
  style: {
1000
1000
  width: "fit-content"
@@ -1022,7 +1022,7 @@ const Ge = (u) => {
1022
1022
  label: "Auto scroll interval",
1023
1023
  type: "number",
1024
1024
  value: String(_.scrollInterval),
1025
- onChange: (g) => _.setScrollInterval(Number(g)),
1025
+ onChange: (u) => _.setScrollInterval(Number(u)),
1026
1026
  min: 0.1,
1027
1027
  max: 100,
1028
1028
  style: {
@@ -1032,8 +1032,8 @@ const Ge = (u) => {
1032
1032
  }
1033
1033
  )
1034
1034
  ] });
1035
- }, gs = "_title_roi3a_1", xs = "_subtitle_roi3a_5", bs = "_header_roi3a_12", vs = "_text_roi3a_13", js = "_productsBlock_roi3a_14", ys = "_top_roi3a_26", ks = "_itemsBlock_roi3a_35", $s = "_typeTexts_roi3a_41", Is = "_block_roi3a_48", Ns = "_active_roi3a_61", ws = "_products_roi3a_14", Cs = "_product_roi3a_14", Ss = "_button_roi3a_80", Bs = "_disabled_roi3a_91", Ts = "_image_roi3a_95", Ps = "_info_roi3a_102", As = "_name_roi3a_114", Os = "_buttons_roi3a_118", Ms = "_modal_roi3a_125", qs = "_link_roi3a_145", Es = "_modalOptions_roi3a_151", Ds = "_addButton_roi3a_164", Us = "_deleteButton_roi3a_179", Hs = "_closeIcon_roi3a_191", J = {
1036
- title: gs,
1035
+ }, fs = "_title_roi3a_1", xs = "_subtitle_roi3a_5", bs = "_header_roi3a_12", vs = "_text_roi3a_13", js = "_productsBlock_roi3a_14", ys = "_top_roi3a_26", ks = "_itemsBlock_roi3a_35", $s = "_typeTexts_roi3a_41", Is = "_block_roi3a_48", ws = "_active_roi3a_61", Ns = "_products_roi3a_14", Cs = "_product_roi3a_14", Ss = "_button_roi3a_80", Bs = "_disabled_roi3a_91", Ts = "_image_roi3a_95", Ps = "_info_roi3a_102", As = "_name_roi3a_114", Os = "_buttons_roi3a_118", Ms = "_modal_roi3a_125", qs = "_link_roi3a_145", Es = "_modalOptions_roi3a_151", Us = "_addButton_roi3a_164", Ds = "_deleteButton_roi3a_179", Ls = "_closeIcon_roi3a_191", J = {
1036
+ title: fs,
1037
1037
  subtitle: xs,
1038
1038
  header: bs,
1039
1039
  text: vs,
@@ -1042,8 +1042,8 @@ const Ge = (u) => {
1042
1042
  itemsBlock: ks,
1043
1043
  typeTexts: $s,
1044
1044
  block: Is,
1045
- active: Ns,
1046
- products: ws,
1045
+ active: ws,
1046
+ products: Ns,
1047
1047
  product: Cs,
1048
1048
  button: Ss,
1049
1049
  disabled: Bs,
@@ -1054,11 +1054,11 @@ const Ge = (u) => {
1054
1054
  modal: Ms,
1055
1055
  link: qs,
1056
1056
  modalOptions: Es,
1057
- addButton: Ds,
1058
- deleteButton: Us,
1059
- closeIcon: Hs
1057
+ addButton: Us,
1058
+ deleteButton: Ds,
1059
+ closeIcon: Ls
1060
1060
  };
1061
- function Rs({ product: u, children: a }) {
1061
+ function Hs({ product: d, children: a }) {
1062
1062
  const {
1063
1063
  attributes: e,
1064
1064
  listeners: s,
@@ -1067,7 +1067,7 @@ function Rs({ product: u, children: a }) {
1067
1067
  transition: l,
1068
1068
  isDragging: o
1069
1069
  } = Ct({
1070
- id: u.id
1070
+ id: d.id
1071
1071
  }), n = {
1072
1072
  transform: St.Transform.toString(c),
1073
1073
  transition: l
@@ -1084,7 +1084,7 @@ function Rs({ product: u, children: a }) {
1084
1084
  }
1085
1085
  );
1086
1086
  }
1087
- const Qa = (u) => {
1087
+ const Qa = (d) => {
1088
1088
  const {
1089
1089
  isActiveItems: a,
1090
1090
  setIsActiveItems: e,
@@ -1094,44 +1094,44 @@ const Qa = (u) => {
1094
1094
  subtitle: l,
1095
1095
  editable: o = !0,
1096
1096
  draggable: n = !1,
1097
- deletable: d = !0,
1098
- addable: j = !0,
1099
- itemsType: p,
1097
+ deletable: m = !0,
1098
+ addable: v = !0,
1099
+ itemsType: f,
1100
1100
  itemsOptions: r,
1101
- addableOptions: y = {},
1101
+ addableOptions: k = {},
1102
1102
  limit: h
1103
- } = u, [_, w] = f.useState(null), [H, $] = f.useState(null), g = f.useRef(null), B = yt(
1104
- kt(wt, {
1103
+ } = d, [_, $] = g.useState(null), [H, M] = g.useState(null), u = g.useRef(null), S = yt(
1104
+ kt(Nt, {
1105
1105
  activationConstraint: {
1106
1106
  distance: 5
1107
1107
  }
1108
1108
  })
1109
1109
  );
1110
- f.useEffect(() => {
1110
+ g.useEffect(() => {
1111
1111
  if (_) {
1112
- const v = [...s].map((A) => A.id === _.id ? _ : A);
1113
- i(v);
1112
+ const j = [...s].map((P) => P.id === _.id ? _ : P);
1113
+ i(j);
1114
1114
  }
1115
- }, [_]), f.useEffect(() => {
1116
- g.current && H && (g.current.getBoundingClientRect().height, H.top);
1117
- }, [g.current, H]);
1118
- const E = (v, A) => {
1119
- v.stopPropagation();
1120
- const x = v.target.getBoundingClientRect();
1121
- $({
1115
+ }, [_]), g.useEffect(() => {
1116
+ u.current && H && (u.current.getBoundingClientRect().height, H.top);
1117
+ }, [u.current, H]);
1118
+ const q = (j, P) => {
1119
+ j.stopPropagation();
1120
+ const x = j.target.getBoundingClientRect();
1121
+ M({
1122
1122
  top: x.top + window.scrollY,
1123
1123
  left: x.left - 30
1124
- }), w(A);
1125
- }, F = (v) => {
1126
- const { active: A, over: x } = v;
1127
- if (x && A.id !== x.id) {
1128
- const I = s.findIndex((R) => R.id === A.id), C = s.findIndex((R) => R.id === x.id);
1129
- if (I !== -1 && C !== -1) {
1130
- const R = [...s], [O] = R.splice(I, 1);
1131
- R.splice(C, 0, O), i(R);
1124
+ }), $(P);
1125
+ }, F = (j) => {
1126
+ const { active: P, over: x } = j;
1127
+ if (x && P.id !== x.id) {
1128
+ const I = s.findIndex((L) => L.id === P.id), N = s.findIndex((L) => L.id === x.id);
1129
+ if (I !== -1 && N !== -1) {
1130
+ const L = [...s], [A] = L.splice(I, 1);
1131
+ L.splice(N, 0, A), i(L);
1132
1132
  }
1133
1133
  }
1134
- }, T = (v, A) => {
1134
+ }, B = (j, P) => {
1135
1135
  const x = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1136
1136
  n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1137
1137
  b,
@@ -1142,27 +1142,27 @@ const Qa = (u) => {
1142
1142
  height: 20
1143
1143
  }
1144
1144
  ) }),
1145
- p === "select" && r && /* @__PURE__ */ t.jsx(
1145
+ f === "select" && r && /* @__PURE__ */ t.jsx(
1146
1146
  et,
1147
1147
  {
1148
1148
  onChange: (I) => {
1149
- const C = [...s], R = r.find((U) => U.name === I);
1150
- if (!R) return;
1151
- const O = C.map((U) => U.id === v.id ? {
1152
- ...R,
1149
+ const N = [...s], L = r.find((D) => D.name === I);
1150
+ if (!L) return;
1151
+ const A = N.map((D) => D.id === j.id ? {
1152
+ ...L,
1153
1153
  name: {
1154
1154
  "en-US": I
1155
1155
  }
1156
- } : U);
1157
- w({
1158
- ...v,
1156
+ } : D);
1157
+ $({
1158
+ ...j,
1159
1159
  name: {
1160
1160
  "en-US": I
1161
1161
  }
1162
- }), i([...O]);
1162
+ }), i([...A]);
1163
1163
  },
1164
- value: v.name,
1165
- options: r.filter((I) => !s.find((C) => C.name === I.name)).map((I) => I.name)
1164
+ value: j.name,
1165
+ options: r.filter((I) => !s.find((N) => N.name === I.name)).map((I) => I.name)
1166
1166
  }
1167
1167
  ),
1168
1168
  /* @__PURE__ */ t.jsxs("div", { className: J.buttons, children: [
@@ -1173,10 +1173,10 @@ const Qa = (u) => {
1173
1173
  hoverable: !0,
1174
1174
  width: 20,
1175
1175
  height: 20,
1176
- onClick: (I) => E(I, v)
1176
+ onClick: (I) => q(I, j)
1177
1177
  }
1178
1178
  ) }),
1179
- d && /* @__PURE__ */ t.jsx("div", { className: J.deleteButton, children: /* @__PURE__ */ t.jsx(
1179
+ m && /* @__PURE__ */ t.jsx("div", { className: J.deleteButton, children: /* @__PURE__ */ t.jsx(
1180
1180
  b,
1181
1181
  {
1182
1182
  name: "Trash",
@@ -1184,26 +1184,26 @@ const Qa = (u) => {
1184
1184
  width: 20,
1185
1185
  height: 20,
1186
1186
  fill: "#C12A2A",
1187
- onClick: () => i(s.filter((I) => I.id !== v.id))
1187
+ onClick: () => i(s.filter((I) => I.id !== j.id))
1188
1188
  }
1189
1189
  ) })
1190
1190
  ] })
1191
1191
  ] });
1192
1192
  return n ? /* @__PURE__ */ t.jsx(
1193
- Rs,
1193
+ Hs,
1194
1194
  {
1195
- product: v,
1196
- index: A,
1195
+ product: j,
1196
+ index: P,
1197
1197
  children: x
1198
1198
  },
1199
- v.id
1199
+ j.id
1200
1200
  ) : /* @__PURE__ */ t.jsx(
1201
1201
  "div",
1202
1202
  {
1203
1203
  className: J.product,
1204
1204
  children: x
1205
1205
  },
1206
- v.id
1206
+ j.id
1207
1207
  );
1208
1208
  };
1209
1209
  return /* @__PURE__ */ t.jsxs("div", { className: J.productsBlock, children: [
@@ -1213,7 +1213,7 @@ const Qa = (u) => {
1213
1213
  st,
1214
1214
  {
1215
1215
  current: a,
1216
- onChange: (v) => e == null ? void 0 : e(v)
1216
+ onChange: (j) => e == null ? void 0 : e(j)
1217
1217
  }
1218
1218
  )
1219
1219
  ] }),
@@ -1222,19 +1222,19 @@ const Qa = (u) => {
1222
1222
  n ? /* @__PURE__ */ t.jsx(
1223
1223
  $t,
1224
1224
  {
1225
- sensors: B,
1225
+ sensors: S,
1226
1226
  onDragEnd: F,
1227
1227
  children: /* @__PURE__ */ t.jsx(
1228
1228
  It,
1229
1229
  {
1230
- items: s.map((v) => v.id),
1231
- strategy: Nt,
1232
- children: s.map((v, A) => T(v, A))
1230
+ items: s.map((j) => j.id),
1231
+ strategy: wt,
1232
+ children: s.map((j, P) => B(j, P))
1233
1233
  }
1234
1234
  )
1235
1235
  }
1236
- ) : s.map((v, A) => T(v, A)),
1237
- j && /* @__PURE__ */ t.jsx(
1236
+ ) : s.map((j, P) => B(j, P)),
1237
+ v && /* @__PURE__ */ t.jsx(
1238
1238
  "div",
1239
1239
  {
1240
1240
  style: {
@@ -1252,20 +1252,20 @@ const Qa = (u) => {
1252
1252
  size: "s",
1253
1253
  disabled: !!(h && h <= s.length || s.length === (r == null ? void 0 : r.length)),
1254
1254
  onClick: () => {
1255
- const v = [...s];
1256
- let A = null;
1255
+ const j = [...s];
1256
+ let P = null;
1257
1257
  if (r) {
1258
1258
  for (let x = 0; x < r.length; x++)
1259
1259
  if (!s.find((I) => I.id === r[x].id)) {
1260
- A = r[x];
1260
+ P = r[x];
1261
1261
  break;
1262
1262
  }
1263
1263
  }
1264
- p === "select" && r && v.push({
1265
- name: A ? A.name : r[0].name,
1266
- id: (A == null ? void 0 : A.id) || r[0].id,
1267
- ...y
1268
- }), i(v);
1264
+ f === "select" && r && j.push({
1265
+ name: P ? P.name : r[0].name,
1266
+ id: (P == null ? void 0 : P.id) || r[0].id,
1267
+ ...k
1268
+ }), i(j);
1269
1269
  },
1270
1270
  style: {
1271
1271
  width: "fit-content"
@@ -1287,8 +1287,8 @@ const Qa = (u) => {
1287
1287
  )
1288
1288
  ] })
1289
1289
  ] });
1290
- }, Ls = "_title_1vfw9_1", zs = "_subtitle_1vfw9_5", Fs = "_header_1vfw9_12", Vs = "_text_1vfw9_13", Ys = "_productsBlock_1vfw9_14", Gs = "_top_1vfw9_26", Xs = "_itemsBlock_1vfw9_35", Ws = "_typeTexts_1vfw9_41", Js = "_block_1vfw9_48", Qs = "_active_1vfw9_61", Ks = "_products_1vfw9_14", Zs = "_product_1vfw9_14", tn = "_button_1vfw9_80", en = "_disabled_1vfw9_91", sn = "_image_1vfw9_95", nn = "_info_1vfw9_102", on = "_name_1vfw9_114", an = "_buttons_1vfw9_118", cn = "_modal_1vfw9_125", ln = "_link_1vfw9_145", rn = "_modalOptions_1vfw9_151", dn = "_addButton_1vfw9_164", un = "_deleteButton_1vfw9_179", _n = "_closeIcon_1vfw9_191", V = {
1291
- title: Ls,
1290
+ }, Rs = "_title_dbm6h_1", zs = "_subtitle_dbm6h_5", Fs = "_header_dbm6h_12", Vs = "_text_dbm6h_13", Ys = "_productsBlock_dbm6h_14", Gs = "_top_dbm6h_26", Xs = "_itemsBlock_dbm6h_35", Ws = "_typeTexts_dbm6h_41", Js = "_block_dbm6h_48", Qs = "_active_dbm6h_61", Ks = "_products_dbm6h_14", Zs = "_product_dbm6h_14", tn = "_button_dbm6h_80", en = "_disabled_dbm6h_91", sn = "_image_dbm6h_95", nn = "_info_dbm6h_102", on = "_name_dbm6h_114", an = "_buttons_dbm6h_118", cn = "_modal_dbm6h_125", ln = "_link_dbm6h_146", rn = "_modalOptions_dbm6h_152", dn = "_addButton_dbm6h_165", un = "_deleteButton_dbm6h_180", mn = "_closeIcon_dbm6h_192", V = {
1291
+ title: Rs,
1292
1292
  subtitle: zs,
1293
1293
  header: Fs,
1294
1294
  text: Vs,
@@ -1311,10 +1311,10 @@ const Qa = (u) => {
1311
1311
  modalOptions: rn,
1312
1312
  addButton: dn,
1313
1313
  deleteButton: un,
1314
- closeIcon: _n
1315
- }, mn = f.forwardRef(
1316
- (u, a) => {
1317
- const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = u;
1314
+ closeIcon: mn
1315
+ }, _n = g.forwardRef(
1316
+ (d, a) => {
1317
+ const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = d;
1318
1318
  return /* @__PURE__ */ t.jsxs(
1319
1319
  "div",
1320
1320
  {
@@ -1351,44 +1351,44 @@ const Qa = (u) => {
1351
1351
  label: "Put up an attractive image",
1352
1352
  activeImage: e[o.field],
1353
1353
  onChange: (n) => {
1354
- const d = {
1354
+ const m = {
1355
1355
  ...e,
1356
1356
  [o.field]: n
1357
1357
  };
1358
- s(d);
1358
+ s(m);
1359
1359
  }
1360
1360
  },
1361
1361
  String(o.field)
1362
1362
  );
1363
1363
  if (o.type === "text")
1364
1364
  return /* @__PURE__ */ t.jsx(
1365
- Lt,
1365
+ Rt,
1366
1366
  {
1367
1367
  typesText: e[o.field.type],
1368
1368
  setTypesText: (n) => {
1369
- const d = {
1369
+ const m = {
1370
1370
  ...e,
1371
1371
  [o.field.type]: n
1372
1372
  };
1373
- s(d);
1373
+ s(m);
1374
1374
  },
1375
1375
  text: e[o.field.text]["en-US"] || "",
1376
1376
  setText: (n) => {
1377
- const d = {
1377
+ const m = {
1378
1378
  ...e,
1379
1379
  [o.field.text]: {
1380
1380
  "en-US": n
1381
1381
  }
1382
1382
  };
1383
- s(d);
1383
+ s(m);
1384
1384
  },
1385
1385
  typeFont: e[o.field.type],
1386
1386
  setTypeFont: (n) => {
1387
- const d = {
1387
+ const m = {
1388
1388
  ...e,
1389
1389
  [o.field.type]: n
1390
1390
  };
1391
- s(d);
1391
+ s(m);
1392
1392
  },
1393
1393
  subtitle: o.label
1394
1394
  }
@@ -1398,11 +1398,11 @@ const Qa = (u) => {
1398
1398
  tt,
1399
1399
  {
1400
1400
  onChange: (n) => {
1401
- const d = {
1401
+ const m = {
1402
1402
  ...e,
1403
1403
  [o.field]: n
1404
1404
  };
1405
- s(d);
1405
+ s(m);
1406
1406
  },
1407
1407
  value: e[o.field] || "",
1408
1408
  label: o.label,
@@ -1415,11 +1415,11 @@ const Qa = (u) => {
1415
1415
  tt,
1416
1416
  {
1417
1417
  onChange: (n) => {
1418
- const d = {
1418
+ const m = {
1419
1419
  ...e,
1420
1420
  [o.field.text]: n
1421
1421
  };
1422
- s(d);
1422
+ s(m);
1423
1423
  },
1424
1424
  value: e[o.field.text] || "",
1425
1425
  label: o.inputLabel,
@@ -1432,11 +1432,11 @@ const Qa = (u) => {
1432
1432
  current: !!e[o.field.switch] || !1,
1433
1433
  label: o.switchLabel,
1434
1434
  onChange: (n) => {
1435
- const d = {
1435
+ const m = {
1436
1436
  ...e,
1437
1437
  [o.field.switch]: n
1438
1438
  };
1439
- s(d);
1439
+ s(m);
1440
1440
  }
1441
1441
  }
1442
1442
  )
@@ -1447,11 +1447,11 @@ const Qa = (u) => {
1447
1447
  {
1448
1448
  options: o.itemsOptions,
1449
1449
  onChange: (n) => {
1450
- const d = {
1450
+ const m = {
1451
1451
  ...e,
1452
1452
  [o.field]: n
1453
1453
  };
1454
- s(d);
1454
+ s(m);
1455
1455
  },
1456
1456
  label: o.label,
1457
1457
  value: e[o.field] || "String",
@@ -1464,10 +1464,10 @@ const Qa = (u) => {
1464
1464
  );
1465
1465
  }
1466
1466
  );
1467
- function hn(u) {
1468
- const { product: a, children: e } = u, { attributes: s, listeners: i, setNodeRef: c, transform: l, transition: o, isDragging: n } = Ct({
1467
+ function hn(d) {
1468
+ const { product: a, children: e } = d, { attributes: s, listeners: i, setNodeRef: c, transform: l, transition: o, isDragging: n } = Ct({
1469
1469
  id: a.id
1470
- }), d = {
1470
+ }), m = {
1471
1471
  transform: St.Transform.toString(l),
1472
1472
  transition: o
1473
1473
  };
@@ -1475,7 +1475,7 @@ function hn(u) {
1475
1475
  "div",
1476
1476
  {
1477
1477
  ref: c,
1478
- style: d,
1478
+ style: m,
1479
1479
  className: `${V.product} ${n ? V.dragging : ""}`,
1480
1480
  ...s,
1481
1481
  ...i,
@@ -1483,7 +1483,7 @@ function hn(u) {
1483
1483
  }
1484
1484
  );
1485
1485
  }
1486
- const Ka = (u) => {
1486
+ const Ka = (d) => {
1487
1487
  const {
1488
1488
  isActiveItems: a,
1489
1489
  setIsActiveItems: e,
@@ -1493,63 +1493,63 @@ const Ka = (u) => {
1493
1493
  title: l,
1494
1494
  subtitle: o,
1495
1495
  editable: n = !0,
1496
- draggable: d = !1,
1497
- withImage: j = !1,
1498
- deletable: p = !0,
1496
+ draggable: m = !1,
1497
+ withImage: v = !1,
1498
+ deletable: f = !0,
1499
1499
  addable: r = !0,
1500
- itemsType: y,
1500
+ itemsType: k,
1501
1501
  itemsPlaceholder: h = "",
1502
1502
  itemsOptions: _,
1503
- hasRangeSelector: w = !1,
1503
+ hasRangeSelector: $ = !1,
1504
1504
  rangeSelectorOptions: H,
1505
- modalOptions: $,
1506
- addableOptions: g = {}
1507
- } = u, [B, E] = f.useState(null), [F, T] = f.useState({
1505
+ modalOptions: M,
1506
+ addableOptions: u = {}
1507
+ } = d, [S, q] = g.useState(null), [F, B] = g.useState({
1508
1508
  top: 0,
1509
1509
  left: 0
1510
- }), [v, A] = f.useState(null), x = f.useRef(null), [I, C] = f.useState(!1), R = yt(
1511
- kt(wt, {
1510
+ }), [j, P] = g.useState(null), x = g.useRef(null), [I, N] = g.useState(!1), L = yt(
1511
+ kt(Nt, {
1512
1512
  activationConstraint: {
1513
1513
  distance: 5
1514
1514
  }
1515
1515
  })
1516
1516
  );
1517
- f.useEffect(() => {
1518
- const k = () => {
1519
- E(null), C(!1);
1517
+ g.useEffect(() => {
1518
+ const y = () => {
1519
+ q(null), N(!1);
1520
1520
  };
1521
- return document.body.addEventListener("click", k), E(null), C(!1), () => {
1522
- E(null), C(!1), document.body.removeEventListener("click", k);
1521
+ return document.body.addEventListener("click", y), q(null), N(!1), () => {
1522
+ q(null), N(!1), document.body.removeEventListener("click", y);
1523
1523
  };
1524
- }, []), f.useEffect(() => {
1525
- if (B) {
1526
- const k = [...s].map((D) => D.id === B.id ? B : D);
1527
- i(k);
1524
+ }, []), g.useEffect(() => {
1525
+ if (S) {
1526
+ const y = [...s].map((U) => U.id === S.id ? S : U);
1527
+ i(y);
1528
1528
  }
1529
- }, [B]), f.useEffect(() => {
1530
- if (x.current && v) {
1531
- const k = x.current.getBoundingClientRect().height, D = window.innerHeight;
1532
- let m = v.top;
1533
- m + k > D + window.scrollY - 200 && (m = D + window.scrollY - k - 200), m < 0 && (m = 10), T({
1534
- top: m,
1535
- left: v.left
1529
+ }, [S]), g.useEffect(() => {
1530
+ if (x.current && j) {
1531
+ const y = x.current.getBoundingClientRect().height, U = window.innerHeight;
1532
+ let p = j.top;
1533
+ p + y > U + window.scrollY - 200 && (p = U + window.scrollY - y - 200), p < 0 && (p = 10), B({
1534
+ top: p,
1535
+ left: j.left
1536
1536
  });
1537
1537
  }
1538
- }, [x.current, v]);
1539
- const O = (k, D) => {
1540
- k.stopPropagation();
1541
- const m = k.target.getBoundingClientRect();
1542
- A({
1543
- top: m.top + window.scrollY,
1544
- left: m.left - 30
1545
- }), E(D), C(!0);
1538
+ }, [x.current, j]);
1539
+ const A = (y, U) => {
1540
+ y.stopPropagation();
1541
+ const p = y.target.getBoundingClientRect();
1542
+ P({
1543
+ top: p.top + window.scrollY,
1544
+ left: p.left - 30
1545
+ }), q(U), N(!0);
1546
1546
  };
1547
- function U(k) {
1548
- if (j)
1549
- return k ? /* @__PURE__ */ t.jsx(
1547
+ function D(y) {
1548
+ if (v)
1549
+ return y ? /* @__PURE__ */ t.jsx(
1550
1550
  "img",
1551
1551
  {
1552
- src: `https://imagedelivery.net/${k[0]}/w=1000`,
1552
+ src: `https://imagedelivery.net/${y[0]}/w=1000`,
1553
1553
  alt: "image",
1554
1554
  width: 16,
1555
1555
  height: 16
@@ -1564,19 +1564,19 @@ const Ka = (u) => {
1564
1564
  }
1565
1565
  );
1566
1566
  }
1567
- const nt = (k) => {
1568
- const { active: D, over: m } = k;
1569
- if (m && D.id !== m.id) {
1570
- const N = s.findIndex((L) => L.id === D.id), M = s.findIndex((L) => L.id === m.id);
1571
- if (N !== -1 && M !== -1) {
1572
- const L = [...s], [X] = L.splice(N, 1);
1573
- L.splice(M, 0, X), i(L);
1567
+ const nt = (y) => {
1568
+ const { active: U, over: p } = y;
1569
+ if (p && U.id !== p.id) {
1570
+ const w = s.findIndex((R) => R.id === U.id), O = s.findIndex((R) => R.id === p.id);
1571
+ if (w !== -1 && O !== -1) {
1572
+ const R = [...s], [X] = R.splice(w, 1);
1573
+ R.splice(O, 0, X), i(R);
1574
1574
  }
1575
1575
  }
1576
- }, dt = (k) => {
1577
- var m;
1578
- const D = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1579
- d && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1576
+ }, dt = (y) => {
1577
+ var p;
1578
+ const U = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1579
+ m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1580
1580
  b,
1581
1581
  {
1582
1582
  name: "DotsSixVertical",
@@ -1585,57 +1585,57 @@ const Ka = (u) => {
1585
1585
  height: 20
1586
1586
  }
1587
1587
  ) }),
1588
- y === "select" && _ && /* @__PURE__ */ t.jsx(
1588
+ k === "select" && _ && /* @__PURE__ */ t.jsx(
1589
1589
  et,
1590
1590
  {
1591
- onChange: (N) => {
1592
- const L = [...s].map((X) => X.id === k.id ? {
1593
- ...k,
1591
+ onChange: (w) => {
1592
+ const R = [...s].map((X) => X.id === y.id ? {
1593
+ ...y,
1594
1594
  name: {
1595
- "en-US": N
1595
+ "en-US": w
1596
1596
  }
1597
1597
  } : X);
1598
- E({
1599
- ...k,
1598
+ q({
1599
+ ...y,
1600
1600
  name: {
1601
- "en-US": N
1601
+ "en-US": w
1602
1602
  }
1603
- }), i([...L]);
1603
+ }), i([...R]);
1604
1604
  },
1605
- value: k.name["en-US"],
1605
+ value: y.name["en-US"],
1606
1606
  options: _.filter(
1607
- (N) => !s.find((M) => M.name["en-US"] === N)
1607
+ (w) => !s.find((O) => O.name["en-US"] === w)
1608
1608
  ),
1609
- leftAddon: U(k.images)
1609
+ leftAddon: D(y.images)
1610
1610
  }
1611
1611
  ),
1612
- y === "input" && /* @__PURE__ */ t.jsx(
1612
+ k === "input" && /* @__PURE__ */ t.jsx(
1613
1613
  tt,
1614
1614
  {
1615
- onChange: (N) => {
1616
- const L = [...s].map((X) => X.id === k.id ? {
1617
- ...k,
1615
+ onChange: (w) => {
1616
+ const R = [...s].map((X) => X.id === y.id ? {
1617
+ ...y,
1618
1618
  name: {
1619
- "en-US": N
1619
+ "en-US": w
1620
1620
  }
1621
1621
  } : X);
1622
- i([...L]);
1622
+ i([...R]);
1623
1623
  },
1624
- value: k.name["en-US"],
1624
+ value: y.name["en-US"],
1625
1625
  placeholder: h
1626
1626
  }
1627
1627
  ),
1628
- y === "image" && /* @__PURE__ */ t.jsx(
1628
+ k === "image" && /* @__PURE__ */ t.jsx(
1629
1629
  bt,
1630
1630
  {
1631
- onChange: (N) => {
1632
- const L = [...s].map((X) => X.id === k.id ? {
1633
- ...k,
1634
- images: N
1631
+ onChange: (w) => {
1632
+ const R = [...s].map((X) => X.id === y.id ? {
1633
+ ...y,
1634
+ images: w
1635
1635
  } : X);
1636
- i([...L]);
1636
+ i([...R]);
1637
1637
  },
1638
- activeImage: (m = s.find((N) => N.id === k.id)) == null ? void 0 : m.images[0]
1638
+ activeImage: (p = s.find((w) => w.id === y.id)) == null ? void 0 : p.images[0]
1639
1639
  }
1640
1640
  ),
1641
1641
  /* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
@@ -1646,10 +1646,10 @@ const Ka = (u) => {
1646
1646
  hoverable: !0,
1647
1647
  width: 20,
1648
1648
  height: 20,
1649
- onClick: (N) => O(N, k)
1649
+ onClick: (w) => A(w, y)
1650
1650
  }
1651
1651
  ) }),
1652
- p && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
1652
+ f && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
1653
1653
  b,
1654
1654
  {
1655
1655
  name: "Trash",
@@ -1657,25 +1657,25 @@ const Ka = (u) => {
1657
1657
  width: 20,
1658
1658
  height: 20,
1659
1659
  fill: "#C12A2A",
1660
- onClick: () => i(s.filter((N) => N.id !== k.id))
1660
+ onClick: () => i(s.filter((w) => w.id !== y.id))
1661
1661
  }
1662
1662
  ) })
1663
1663
  ] })
1664
1664
  ] });
1665
- return d ? /* @__PURE__ */ t.jsx(
1665
+ return m ? /* @__PURE__ */ t.jsx(
1666
1666
  hn,
1667
1667
  {
1668
- product: k,
1669
- children: D
1668
+ product: y,
1669
+ children: U
1670
1670
  },
1671
- k.id
1671
+ y.id
1672
1672
  ) : /* @__PURE__ */ t.jsx(
1673
1673
  "div",
1674
1674
  {
1675
1675
  className: V.product,
1676
- children: D
1676
+ children: U
1677
1677
  },
1678
- k.id
1678
+ y.id
1679
1679
  );
1680
1680
  };
1681
1681
  return /* @__PURE__ */ t.jsxs("div", { className: V.productsBlock, children: [
@@ -1685,39 +1685,39 @@ const Ka = (u) => {
1685
1685
  st,
1686
1686
  {
1687
1687
  current: a,
1688
- onChange: (k) => e == null ? void 0 : e(k)
1688
+ onChange: (y) => e == null ? void 0 : e(y)
1689
1689
  }
1690
1690
  )
1691
1691
  ] }),
1692
- B && n && $ && I && /* @__PURE__ */ t.jsx(
1693
- mn,
1692
+ S && n && M && I && /* @__PURE__ */ t.jsx(
1693
+ _n,
1694
1694
  {
1695
1695
  ref: x,
1696
- activeItem: B,
1697
- setActiveItem: E,
1696
+ activeItem: S,
1697
+ setActiveItem: q,
1698
1698
  popupPosition: F,
1699
- modalOptions: $,
1700
- setIsOpenModal: C
1699
+ modalOptions: M,
1700
+ setIsOpenModal: N
1701
1701
  }
1702
1702
  ),
1703
- w && H && /* @__PURE__ */ t.jsx(qt, { ...H }),
1703
+ $ && H && /* @__PURE__ */ t.jsx(qt, { ...H }),
1704
1704
  /* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
1705
1705
  o && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: o }),
1706
- d ? /* @__PURE__ */ t.jsx(
1706
+ m ? /* @__PURE__ */ t.jsx(
1707
1707
  $t,
1708
1708
  {
1709
- sensors: R,
1709
+ sensors: L,
1710
1710
  onDragEnd: nt,
1711
1711
  children: /* @__PURE__ */ t.jsx(
1712
1712
  It,
1713
1713
  {
1714
- items: s.map((k) => k.id),
1715
- strategy: Nt,
1716
- children: s.map((k) => dt(k))
1714
+ items: s.map((y) => y.id),
1715
+ strategy: wt,
1716
+ children: s.map((y) => dt(y))
1717
1717
  }
1718
1718
  )
1719
1719
  }
1720
- ) : s.map((k) => dt(k)),
1720
+ ) : s.map((y) => dt(y)),
1721
1721
  r && /* @__PURE__ */ t.jsx(
1722
1722
  "div",
1723
1723
  {
@@ -1733,38 +1733,38 @@ const Ka = (u) => {
1733
1733
  className: V.button,
1734
1734
  size: "s",
1735
1735
  onClick: () => {
1736
- const k = [...s];
1737
- let D = null;
1736
+ const y = [...s];
1737
+ let U = null;
1738
1738
  if (_) {
1739
- for (let m = 0; m < _.length; m++)
1740
- if (!s.find((N) => N.name["en-US"] === _[m])) {
1741
- D = _[m];
1739
+ for (let p = 0; p < _.length; p++)
1740
+ if (!s.find((w) => w.name["en-US"] === _[p])) {
1741
+ U = _[p];
1742
1742
  break;
1743
1743
  }
1744
1744
  }
1745
- y === "select" && _ ? k.push({
1745
+ k === "select" && _ ? y.push({
1746
1746
  name: {
1747
- "en-US": D || _[0]
1747
+ "en-US": U || _[0]
1748
1748
  },
1749
- id: ht(),
1750
- ...g,
1749
+ id: _t(),
1750
+ ...u,
1751
1751
  maxSymbols: 100
1752
1752
  // пример значения
1753
- }) : y === "input" ? k.push({
1753
+ }) : k === "input" ? y.push({
1754
1754
  name: {
1755
1755
  "en-US": ""
1756
1756
  },
1757
- id: ht(),
1758
- ...g,
1757
+ id: _t(),
1758
+ ...u,
1759
1759
  maxSymbols: 100
1760
- }) : k.push({
1760
+ }) : y.push({
1761
1761
  name: {
1762
1762
  "en-US": `Image ${s.length + 1}`
1763
1763
  },
1764
- id: ht(),
1765
- ...g,
1764
+ id: _t(),
1765
+ ...u,
1766
1766
  maxSymbols: 100
1767
- }), i(k);
1767
+ }), i(y);
1768
1768
  },
1769
1769
  style: {
1770
1770
  width: "fit-content"
@@ -1787,10 +1787,10 @@ const Ka = (u) => {
1787
1787
  ] }),
1788
1788
  c !== void 0 && /* @__PURE__ */ t.jsx(Tt, { items: c })
1789
1789
  ] });
1790
- }, pn = "_title_bn7sv_1", fn = "_subtitle_bn7sv_5", gn = "_header_bn7sv_12", xn = "_text_bn7sv_13", bn = "_productsBlock_bn7sv_14", vn = "_buttonsBlock_bn7sv_15", jn = "_top_bn7sv_26", yn = "_itemsBlock_bn7sv_35", kn = "_typeTexts_bn7sv_41", $n = "_block_bn7sv_48", In = "_active_bn7sv_60", Nn = "_products_bn7sv_14", wn = "_product_bn7sv_14", Cn = "_button_bn7sv_15", Sn = "_image_bn7sv_90", Bn = "_info_bn7sv_97", Tn = "_name_bn7sv_109", Pn = "_buttons_bn7sv_15", An = "_modal_bn7sv_120", On = "_other_bn7sv_139", Mn = "_options_bn7sv_145", qn = "_closeIcon_bn7sv_153", rt = {
1790
+ }, pn = "_title_4we8s_1", gn = "_subtitle_4we8s_5", fn = "_header_4we8s_12", xn = "_text_4we8s_13", bn = "_productsBlock_4we8s_14", vn = "_buttonsBlock_4we8s_15", jn = "_top_4we8s_26", yn = "_itemsBlock_4we8s_35", kn = "_typeTexts_4we8s_41", $n = "_block_4we8s_48", In = "_active_4we8s_60", wn = "_products_4we8s_14", Nn = "_product_4we8s_14", Cn = "_button_4we8s_15", Sn = "_image_4we8s_90", Bn = "_info_4we8s_97", Tn = "_name_4we8s_109", Pn = "_buttons_4we8s_15", An = "_modal_4we8s_120", On = "_other_4we8s_140", Mn = "_options_4we8s_146", qn = "_closeIcon_4we8s_154", rt = {
1791
1791
  title: pn,
1792
- subtitle: fn,
1793
- header: gn,
1792
+ subtitle: gn,
1793
+ header: fn,
1794
1794
  text: xn,
1795
1795
  productsBlock: bn,
1796
1796
  buttonsBlock: vn,
@@ -1799,8 +1799,8 @@ const Ka = (u) => {
1799
1799
  typeTexts: kn,
1800
1800
  block: $n,
1801
1801
  active: In,
1802
- products: Nn,
1803
- product: wn,
1802
+ products: wn,
1803
+ product: Nn,
1804
1804
  button: Cn,
1805
1805
  image: Sn,
1806
1806
  info: Bn,
@@ -1810,26 +1810,26 @@ const Ka = (u) => {
1810
1810
  other: On,
1811
1811
  options: Mn,
1812
1812
  closeIcon: qn
1813
- }, En = f.forwardRef((u, a) => {
1814
- const { activeButton: e, setActiveButton: s, popupPosition: i } = u, [c, l] = f.useState(e.typesText), [o, n] = f.useState(e.destination), [d, j] = f.useState(e.page), [p, r] = f.useState(e.link || ""), [y, h] = f.useState(e.text || { "en-US": "" }), [_, w] = f.useState(e.openInNewTab), { pages: H } = Vt();
1815
- return f.useEffect(() => {
1813
+ }, En = g.forwardRef((d, a) => {
1814
+ const { activeButton: e, setActiveButton: s, popupPosition: i, editableLink: c = !0 } = d, [l, o] = g.useState(e.typesText), [n, m] = g.useState(e.destination), [v, f] = g.useState(e.page), [r, k] = g.useState(e.link || ""), [h, _] = g.useState(e.text || { "en-US": "" }), [$, H] = g.useState(e.openInNewTab), { pages: M } = Vt();
1815
+ return g.useEffect(() => {
1816
1816
  s({
1817
1817
  ...e,
1818
1818
  ...{
1819
- text: y,
1820
- link: p,
1821
- destination: o,
1822
- typesText: c,
1823
- page: d,
1824
- openInNewTab: _
1819
+ text: h,
1820
+ link: r,
1821
+ destination: n,
1822
+ typesText: l,
1823
+ page: v,
1824
+ openInNewTab: $
1825
1825
  }
1826
1826
  });
1827
- }, [c, o, p, y, d, _]), console.log(y), /* @__PURE__ */ t.jsxs(
1827
+ }, [l, n, r, h, v, $]), /* @__PURE__ */ t.jsxs(
1828
1828
  "div",
1829
1829
  {
1830
1830
  className: rt.modal,
1831
- onClick: ($) => {
1832
- $.stopPropagation();
1831
+ onClick: (u) => {
1832
+ u.stopPropagation();
1833
1833
  },
1834
1834
  style: {
1835
1835
  top: `${i.top}px`,
@@ -1851,66 +1851,66 @@ const Ka = (u) => {
1851
1851
  ) })
1852
1852
  ] }),
1853
1853
  /* @__PURE__ */ t.jsxs("div", { className: rt.options, children: [
1854
- /* @__PURE__ */ t.jsx(
1854
+ c && /* @__PURE__ */ t.jsx(
1855
1855
  et,
1856
1856
  {
1857
1857
  label: "Destination",
1858
- onChange: ($) => n($),
1859
- options: ["Go to Page", "Open Link"].filter(($) => $ !== o),
1860
- value: o
1858
+ onChange: (u) => m(u),
1859
+ options: ["Go to Page", "Open Link"].filter((u) => u !== n),
1860
+ value: n
1861
1861
  }
1862
1862
  ),
1863
- o === "Go to Page" ? /* @__PURE__ */ t.jsx(
1863
+ c && (n === "Go to Page" ? /* @__PURE__ */ t.jsx(
1864
1864
  et,
1865
1865
  {
1866
1866
  label: "Go to",
1867
- onChange: ($) => j($),
1868
- options: H ? Object.values(H).filter(($) => $.name !== d).map(($) => $.name) : [],
1869
- value: d
1867
+ onChange: (u) => f(u),
1868
+ options: M ? Object.values(M).filter((u) => u.name !== v).map((u) => u.name) : [],
1869
+ value: v
1870
1870
  }
1871
1871
  ) : /* @__PURE__ */ t.jsx(
1872
1872
  tt,
1873
1873
  {
1874
- onChange: ($) => r($),
1875
- value: p,
1874
+ onChange: (u) => k(u),
1875
+ value: r,
1876
1876
  placeholder: "https://",
1877
1877
  label: "Link"
1878
1878
  }
1879
- ),
1880
- /* @__PURE__ */ t.jsx(
1879
+ )),
1880
+ c && /* @__PURE__ */ t.jsx(
1881
1881
  st,
1882
1882
  {
1883
1883
  current: e.openInNewTab,
1884
1884
  label: "Open in new tab",
1885
- onChange: ($) => w($)
1885
+ onChange: (u) => H(u)
1886
1886
  }
1887
1887
  ),
1888
1888
  /* @__PURE__ */ t.jsx(
1889
1889
  Et,
1890
1890
  {
1891
- onChange: ($) => h({ "en-US": $ }),
1892
- value: y["en-US"],
1891
+ onChange: (u) => _({ "en-US": u }),
1892
+ value: h["en-US"],
1893
1893
  label: "Text",
1894
1894
  maxLength: 150
1895
1895
  }
1896
1896
  ),
1897
1897
  /* @__PURE__ */ t.jsx(
1898
- Rt,
1898
+ Ht,
1899
1899
  {
1900
- typesText: c,
1901
- setTypesText: l
1900
+ typesText: l,
1901
+ setTypesText: o
1902
1902
  }
1903
1903
  )
1904
1904
  ] })
1905
1905
  ]
1906
1906
  }
1907
1907
  );
1908
- }), Dn = "_subtitle_jql1y_1", Un = "_header_jql1y_8", Hn = "_text_jql1y_9", Rn = "_productsBlock_jql1y_10", Ln = "_buttonsBlock_jql1y_11", zn = "_top_jql1y_23", Fn = "_itemsBlock_jql1y_32", Vn = "_typeTexts_jql1y_38", Yn = "_block_jql1y_45", Gn = "_active_jql1y_58", Xn = "_products_jql1y_10", Wn = "_product_jql1y_10", Jn = "_button_jql1y_11", Qn = "_image_jql1y_88", Kn = "_info_jql1y_95", Zn = "_name_jql1y_107", ti = "_buttons_jql1y_11", ei = "_modal_jql1y_118", si = "_other_jql1y_138", ni = "_options_jql1y_144", ii = "_addButton_jql1y_150", oi = "_deleteButton_jql1y_165", at = {
1909
- subtitle: Dn,
1910
- header: Un,
1911
- text: Hn,
1912
- productsBlock: Rn,
1913
- buttonsBlock: Ln,
1908
+ }), Un = "_subtitle_jql1y_1", Dn = "_header_jql1y_8", Ln = "_text_jql1y_9", Hn = "_productsBlock_jql1y_10", Rn = "_buttonsBlock_jql1y_11", zn = "_top_jql1y_23", Fn = "_itemsBlock_jql1y_32", Vn = "_typeTexts_jql1y_38", Yn = "_block_jql1y_45", Gn = "_active_jql1y_58", Xn = "_products_jql1y_10", Wn = "_product_jql1y_10", Jn = "_button_jql1y_11", Qn = "_image_jql1y_88", Kn = "_info_jql1y_95", Zn = "_name_jql1y_107", ti = "_buttons_jql1y_11", ei = "_modal_jql1y_118", si = "_other_jql1y_138", ni = "_options_jql1y_144", ii = "_addButton_jql1y_150", oi = "_deleteButton_jql1y_165", at = {
1909
+ subtitle: Un,
1910
+ header: Dn,
1911
+ text: Ln,
1912
+ productsBlock: Hn,
1913
+ buttonsBlock: Rn,
1914
1914
  top: zn,
1915
1915
  itemsBlock: Fn,
1916
1916
  typeTexts: Vn,
@@ -1928,39 +1928,39 @@ const Ka = (u) => {
1928
1928
  options: ni,
1929
1929
  addButton: ii,
1930
1930
  deleteButton: oi
1931
- }, ai = (u) => {
1932
- const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0, editable: c = !0 } = u, [l, o] = f.useState(null), [n, d] = f.useState({
1931
+ }, ai = (d) => {
1932
+ const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0, editableLink: c = !0 } = d, [l, o] = g.useState(null), [n, m] = g.useState({
1933
1933
  top: 0,
1934
1934
  left: 0
1935
- }), [j, p] = f.useState(null), r = f.useRef(null);
1936
- f.useEffect(() => {
1935
+ }), [v, f] = g.useState(null), r = g.useRef(null);
1936
+ g.useEffect(() => {
1937
1937
  const h = () => {
1938
1938
  o(null);
1939
1939
  };
1940
1940
  return document.body.addEventListener("click", h), o(null), () => {
1941
1941
  o(null), document.body.removeEventListener("click", h);
1942
1942
  };
1943
- }, []), f.useEffect(() => {
1943
+ }, []), g.useEffect(() => {
1944
1944
  if (l) {
1945
1945
  const h = [...a].map((_) => _.id === l.id ? l : _);
1946
1946
  e(h);
1947
1947
  }
1948
- }, [l]), f.useEffect(() => {
1949
- if (r.current && j) {
1948
+ }, [l]), g.useEffect(() => {
1949
+ if (r.current && v) {
1950
1950
  const h = r.current.getBoundingClientRect().height, _ = window.innerHeight;
1951
- let w = j.top;
1952
- w + h > _ + window.scrollY - 200 && (w = _ + window.scrollY - h - 200), w < 0 && (w = 10), d({
1953
- top: w,
1954
- left: j.left
1951
+ let $ = v.top;
1952
+ $ + h > _ + window.scrollY - 200 && ($ = _ + window.scrollY - h - 200), $ < 0 && ($ = 10), m({
1953
+ top: $,
1954
+ left: v.left
1955
1955
  });
1956
1956
  }
1957
- }, [r.current, j]);
1958
- const y = (h, _) => {
1957
+ }, [r.current, v]);
1958
+ const k = (h, _) => {
1959
1959
  h.stopPropagation();
1960
- const w = h.target.getBoundingClientRect();
1961
- p({
1962
- top: w.top + window.scrollY - 70,
1963
- left: w.left - (i ? 30 : 65)
1960
+ const $ = h.target.getBoundingClientRect();
1961
+ f({
1962
+ top: $.top + window.scrollY - 70,
1963
+ left: $.left - (i ? 30 : 65)
1964
1964
  }), o(_);
1965
1965
  };
1966
1966
  return /* @__PURE__ */ t.jsxs("div", { className: at.products, children: [
@@ -1974,10 +1974,10 @@ const Ka = (u) => {
1974
1974
  et,
1975
1975
  {
1976
1976
  onChange: (_) => {
1977
- const H = [...a].map(($) => $.id === h.id ? {
1977
+ const H = [...a].map((M) => M.id === h.id ? {
1978
1978
  ...h,
1979
1979
  type: _
1980
- } : $);
1980
+ } : M);
1981
1981
  e(H);
1982
1982
  },
1983
1983
  value: h.type,
@@ -1985,7 +1985,7 @@ const Ka = (u) => {
1985
1985
  }
1986
1986
  ),
1987
1987
  /* @__PURE__ */ t.jsxs("div", { className: at.buttons, children: [
1988
- c && /* @__PURE__ */ t.jsx("div", { className: at.deleteButton, children: /* @__PURE__ */ t.jsx(
1988
+ /* @__PURE__ */ t.jsx("div", { className: at.deleteButton, children: /* @__PURE__ */ t.jsx(
1989
1989
  b,
1990
1990
  {
1991
1991
  name: "Sliders",
@@ -1993,7 +1993,7 @@ const Ka = (u) => {
1993
1993
  width: 20,
1994
1994
  height: 20,
1995
1995
  onClick: (_) => {
1996
- y(_, h);
1996
+ k(_, h);
1997
1997
  }
1998
1998
  }
1999
1999
  ) }),
@@ -2003,7 +2003,7 @@ const Ka = (u) => {
2003
2003
  name: "Trash",
2004
2004
  hoverable: !0,
2005
2005
  onClick: () => {
2006
- const _ = a.filter((w) => w.id !== h.id);
2006
+ const _ = a.filter(($) => $.id !== h.id);
2007
2007
  e(_);
2008
2008
  },
2009
2009
  width: 20,
@@ -2022,7 +2022,8 @@ const Ka = (u) => {
2022
2022
  ref: r,
2023
2023
  activeButton: l,
2024
2024
  setActiveButton: o,
2025
- popupPosition: n
2025
+ popupPosition: n,
2026
+ editableLink: c
2026
2027
  }
2027
2028
  ),
2028
2029
  i && /* @__PURE__ */ t.jsx(
@@ -2041,16 +2042,26 @@ const Ka = (u) => {
2041
2042
  size: "s",
2042
2043
  onClick: () => {
2043
2044
  const h = [...a];
2044
- h.push({
2045
+ c ? h.push({
2045
2046
  type: "Primary",
2046
- id: ht(),
2047
+ id: _t(),
2047
2048
  typesText: [],
2048
- destination: "Go to Page",
2049
2049
  text: {
2050
2050
  "en-US": "Button Name"
2051
2051
  },
2052
- page: "home",
2053
- openInNewTab: !0
2052
+ destination: "Go to Page",
2053
+ page: "",
2054
+ openInNewTab: !1
2055
+ }) : h.push({
2056
+ type: "Primary",
2057
+ id: _t(),
2058
+ typesText: [],
2059
+ text: {
2060
+ "en-US": "Create Ticket"
2061
+ },
2062
+ destination: "Go to Page",
2063
+ page: "",
2064
+ openInNewTab: !1
2054
2065
  }), e(h);
2055
2066
  },
2056
2067
  style: {
@@ -2072,8 +2083,8 @@ const Ka = (u) => {
2072
2083
  }
2073
2084
  )
2074
2085
  ] });
2075
- }, Za = (u) => {
2076
- const { isActiveButtons: a, setIsActiveButtons: e, buttons: s, setButtons: i, editable: c = !0 } = u;
2086
+ }, Za = (d) => {
2087
+ const { isActiveButtons: a, setIsActiveButtons: e, buttons: s, setButtons: i, editableLink: c = !0 } = d;
2077
2088
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: rt.buttonsBlock, children: [
2078
2089
  /* @__PURE__ */ t.jsxs("div", { className: rt.top, children: [
2079
2090
  /* @__PURE__ */ t.jsx("h3", { className: rt.title, children: "Buttons" }),
@@ -2090,31 +2101,31 @@ const Ka = (u) => {
2090
2101
  {
2091
2102
  buttons: s,
2092
2103
  setButtons: i,
2093
- editable: c
2104
+ editableLink: c
2094
2105
  }
2095
2106
  )
2096
2107
  ] }) });
2097
- }, ci = "_wrapper_m18qi_1", li = "_subtitle_m18qi_7", ri = "_content_m18qi_14", di = "_range_m18qi_22", ui = "_track_m18qi_27", _i = "_progress_m18qi_36", mi = "_dots_m18qi_46", hi = "_dot_m18qi_46", pi = "_active_m18qi_65", fi = "_input_m18qi_77", gi = "_countBlock_m18qi_91", xi = "_count_m18qi_91", bi = "_controls_m18qi_107", vi = "_button_m18qi_113", W = {
2108
+ }, ci = "_wrapper_m18qi_1", li = "_subtitle_m18qi_7", ri = "_content_m18qi_14", di = "_range_m18qi_22", ui = "_track_m18qi_27", mi = "_progress_m18qi_36", _i = "_dots_m18qi_46", hi = "_dot_m18qi_46", pi = "_active_m18qi_65", gi = "_input_m18qi_77", fi = "_countBlock_m18qi_91", xi = "_count_m18qi_91", bi = "_controls_m18qi_107", vi = "_button_m18qi_113", W = {
2098
2109
  wrapper: ci,
2099
2110
  subtitle: li,
2100
2111
  content: ri,
2101
2112
  range: di,
2102
2113
  track: ui,
2103
- progress: _i,
2104
- dots: mi,
2114
+ progress: mi,
2115
+ dots: _i,
2105
2116
  dot: hi,
2106
2117
  active: pi,
2107
- input: fi,
2108
- countBlock: gi,
2118
+ input: gi,
2119
+ countBlock: fi,
2109
2120
  count: xi,
2110
2121
  controls: bi,
2111
2122
  button: vi
2112
- }, qt = (u) => {
2113
- const { label: a, min: e = 1, max: s = 4, step: i = 1, count: c, setCount: l } = u, [o, n] = f.useState(!1), d = Array.from({ length: (s - e) / i + 1 }), j = (c - e) / (s - e) * 100, p = () => {
2123
+ }, qt = (d) => {
2124
+ const { label: a, min: e = 1, max: s = 4, step: i = 1, count: c, setCount: l } = d, [o, n] = g.useState(!1), m = Array.from({ length: (s - e) / i + 1 }), v = (c - e) / (s - e) * 100, f = () => {
2114
2125
  c < s && l(c + i);
2115
2126
  }, r = () => {
2116
2127
  c > e && l(c - i);
2117
- }, y = (h) => {
2128
+ }, k = (h) => {
2118
2129
  const _ = e + h * i;
2119
2130
  l(_);
2120
2131
  };
@@ -2127,18 +2138,18 @@ const Ka = (u) => {
2127
2138
  "div",
2128
2139
  {
2129
2140
  className: W.progress,
2130
- style: { width: `${j}%` }
2141
+ style: { width: `${v}%` }
2131
2142
  }
2132
2143
  ),
2133
- /* @__PURE__ */ t.jsx("div", { className: W.dots, children: d.map((h, _) => {
2134
- const w = _ <= (c - e) / i;
2144
+ /* @__PURE__ */ t.jsx("div", { className: W.dots, children: m.map((h, _) => {
2145
+ const $ = _ <= (c - e) / i;
2135
2146
  return /* @__PURE__ */ t.jsx(
2136
2147
  "button",
2137
2148
  {
2138
- onClick: () => y(_),
2149
+ onClick: () => k(_),
2139
2150
  className: Y(W.dot, {
2140
- [W.active]: w,
2141
- [W.inactive]: !w,
2151
+ [W.active]: $,
2152
+ [W.inactive]: !$,
2142
2153
  [W.dragging]: o
2143
2154
  }),
2144
2155
  "aria-label": `Set value to ${e + _ * i}`
@@ -2182,7 +2193,7 @@ const Ka = (u) => {
2182
2193
  /* @__PURE__ */ t.jsx(
2183
2194
  "button",
2184
2195
  {
2185
- onClick: p,
2196
+ onClick: f,
2186
2197
  disabled: c >= s,
2187
2198
  className: W.button,
2188
2199
  "aria-label": "Increment count",
@@ -2217,14 +2228,14 @@ const Ka = (u) => {
2217
2228
  ] })
2218
2229
  ] })
2219
2230
  ] });
2220
- }, ji = "_title_ix5ax_1", yi = "_subtitle_ix5ax_5", ki = "_header_ix5ax_12", $i = "_text_ix5ax_13", Ii = "_productsBlock_ix5ax_14", Ni = "_top_ix5ax_26", wi = "_itemsBlock_ix5ax_35", Ci = "_typeTexts_ix5ax_41", Si = "_block_ix5ax_48", Bi = "_active_ix5ax_61", Ti = "_products_ix5ax_14", Pi = "_product_ix5ax_14", Ai = "_button_ix5ax_80", Oi = "_image_ix5ax_91", Mi = "_info_ix5ax_98", qi = "_name_ix5ax_110", Ei = "_buttons_ix5ax_114", Di = "_modal_ix5ax_121", Ui = "_link_ix5ax_141", Hi = "_modalOptions_ix5ax_147", Ri = "_addButton_ix5ax_160", Li = "_deleteButton_ix5ax_175", zi = "_closeIcon_ix5ax_187", G = {
2231
+ }, ji = "_title_17k8m_1", yi = "_subtitle_17k8m_5", ki = "_header_17k8m_12", $i = "_text_17k8m_13", Ii = "_productsBlock_17k8m_14", wi = "_top_17k8m_26", Ni = "_itemsBlock_17k8m_35", Ci = "_typeTexts_17k8m_41", Si = "_block_17k8m_48", Bi = "_active_17k8m_61", Ti = "_products_17k8m_14", Pi = "_product_17k8m_14", Ai = "_button_17k8m_80", Oi = "_image_17k8m_91", Mi = "_info_17k8m_98", qi = "_name_17k8m_110", Ei = "_buttons_17k8m_114", Ui = "_modal_17k8m_121", Di = "_link_17k8m_142", Li = "_modalOptions_17k8m_148", Hi = "_addButton_17k8m_161", Ri = "_deleteButton_17k8m_176", zi = "_closeIcon_17k8m_188", G = {
2221
2232
  title: ji,
2222
2233
  subtitle: yi,
2223
2234
  header: ki,
2224
2235
  text: $i,
2225
2236
  productsBlock: Ii,
2226
- top: Ni,
2227
- itemsBlock: wi,
2237
+ top: wi,
2238
+ itemsBlock: Ni,
2228
2239
  typeTexts: Ci,
2229
2240
  block: Si,
2230
2241
  active: Bi,
@@ -2235,14 +2246,14 @@ const Ka = (u) => {
2235
2246
  info: Mi,
2236
2247
  name: qi,
2237
2248
  buttons: Ei,
2238
- modal: Di,
2239
- link: Ui,
2240
- modalOptions: Hi,
2241
- addButton: Ri,
2242
- deleteButton: Li,
2249
+ modal: Ui,
2250
+ link: Di,
2251
+ modalOptions: Li,
2252
+ addButton: Hi,
2253
+ deleteButton: Ri,
2243
2254
  closeIcon: zi
2244
- }, Fi = (u) => {
2245
- const { activeItem: a, setActiveItem: e, popupPosition: s, setIsOpenModal: i, itemsOptions: c } = u, l = c.find((o) => o.id === a.listingId);
2255
+ }, Fi = (d) => {
2256
+ const { activeItem: a, setActiveItem: e, popupPosition: s, setIsOpenModal: i, itemsOptions: c } = d, l = c.find((o) => o.id === a.listingId);
2246
2257
  return l ? /* @__PURE__ */ t.jsxs(
2247
2258
  "div",
2248
2259
  {
@@ -2287,10 +2298,10 @@ const Ka = (u) => {
2287
2298
  }
2288
2299
  ) : null;
2289
2300
  };
2290
- function Vi(u) {
2291
- const { product: a, children: e } = u, { attributes: s, listeners: i, setNodeRef: c, transform: l, transition: o, isDragging: n } = Ct({
2301
+ function Vi(d) {
2302
+ const { product: a, children: e } = d, { attributes: s, listeners: i, setNodeRef: c, transform: l, transition: o, isDragging: n } = Ct({
2292
2303
  id: String(a.listingId)
2293
- }), d = {
2304
+ }), m = {
2294
2305
  transform: St.Transform.toString(l),
2295
2306
  transition: o
2296
2307
  };
@@ -2298,7 +2309,7 @@ function Vi(u) {
2298
2309
  "div",
2299
2310
  {
2300
2311
  ref: c,
2301
- style: d,
2312
+ style: m,
2302
2313
  className: `${G.product} ${n ? G.dragging : ""}`,
2303
2314
  ...s,
2304
2315
  ...i,
@@ -2306,7 +2317,7 @@ function Vi(u) {
2306
2317
  }
2307
2318
  );
2308
2319
  }
2309
- const tc = (u) => {
2320
+ const tc = (d) => {
2310
2321
  const {
2311
2322
  isActiveItems: a,
2312
2323
  setIsActiveItems: e,
@@ -2316,32 +2327,32 @@ const tc = (u) => {
2316
2327
  title: l,
2317
2328
  subtitle: o,
2318
2329
  editable: n = !0,
2319
- draggable: d = !1,
2320
- withImage: j = !1,
2321
- deletable: p = !0,
2330
+ draggable: m = !1,
2331
+ withImage: v = !1,
2332
+ deletable: f = !0,
2322
2333
  addable: r = !0,
2323
- itemsType: y,
2334
+ itemsType: k,
2324
2335
  itemsOptions: h
2325
- } = u, [_, w] = f.useState(
2336
+ } = d, [_, $] = g.useState(
2326
2337
  null
2327
- ), [H, $] = f.useState({
2338
+ ), [H, M] = g.useState({
2328
2339
  top: 0,
2329
2340
  left: 0
2330
- }), [g, B] = f.useState(!1), E = yt(
2331
- kt(wt, {
2341
+ }), [u, S] = g.useState(!1), q = yt(
2342
+ kt(Nt, {
2332
2343
  activationConstraint: {
2333
2344
  distance: 5
2334
2345
  }
2335
2346
  })
2336
2347
  );
2337
- f.useEffect(() => {
2348
+ g.useEffect(() => {
2338
2349
  const x = () => {
2339
- w(null), B(!1);
2350
+ $(null), S(!1);
2340
2351
  };
2341
- return document.body.addEventListener("click", x), w(null), B(!1), () => {
2342
- w(null), B(!1), document.body.removeEventListener("click", x);
2352
+ return document.body.addEventListener("click", x), $(null), S(!1), () => {
2353
+ $(null), S(!1), document.body.removeEventListener("click", x);
2343
2354
  };
2344
- }, []), f.useEffect(() => {
2355
+ }, []), g.useEffect(() => {
2345
2356
  if (_) {
2346
2357
  const x = [...s].map((I) => I.listingId === _.listingId ? _ : I);
2347
2358
  i(x);
@@ -2349,15 +2360,15 @@ const tc = (u) => {
2349
2360
  }, [_]);
2350
2361
  const F = (x, I) => {
2351
2362
  x.stopPropagation();
2352
- const C = x.target.getBoundingClientRect(), R = 100, O = window.innerHeight;
2353
- let U = C.top + window.scrollY;
2354
- U + R > O && (U = O - R - 20), B(!0), $({
2355
- top: U - 80,
2356
- left: C.left - 30
2357
- }), w(I);
2363
+ const N = x.target.getBoundingClientRect(), L = 100, A = window.innerHeight;
2364
+ let D = N.top + window.scrollY;
2365
+ D + L > A && (D = A - L - 20), S(!0), M({
2366
+ top: D - 80,
2367
+ left: N.left - 30
2368
+ }), $(I);
2358
2369
  };
2359
- function T(x) {
2360
- if (j)
2370
+ function B(x) {
2371
+ if (v)
2361
2372
  return x ? /* @__PURE__ */ t.jsx(
2362
2373
  "img",
2363
2374
  {
@@ -2376,20 +2387,20 @@ const tc = (u) => {
2376
2387
  }
2377
2388
  );
2378
2389
  }
2379
- const v = (x) => {
2380
- const { active: I, over: C } = x;
2381
- if (C && I.id !== C.id) {
2382
- const R = s.findIndex((U) => String(U.listingId) === I.id), O = s.findIndex((U) => String(U.listingId) === C.id);
2383
- if (R !== -1 && O !== -1) {
2384
- const U = [...s], [nt] = U.splice(R, 1);
2385
- U.splice(O, 0, nt), i(U);
2390
+ const j = (x) => {
2391
+ const { active: I, over: N } = x;
2392
+ if (N && I.id !== N.id) {
2393
+ const L = s.findIndex((D) => String(D.listingId) === I.id), A = s.findIndex((D) => String(D.listingId) === N.id);
2394
+ if (L !== -1 && A !== -1) {
2395
+ const D = [...s], [nt] = D.splice(L, 1);
2396
+ D.splice(A, 0, nt), i(D);
2386
2397
  }
2387
2398
  }
2388
- }, A = (x, I) => {
2389
- const C = h.find((O) => x.listingId === O.id);
2390
- if (!C) return null;
2391
- const R = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2392
- d && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2399
+ }, P = (x, I) => {
2400
+ const N = h.find((A) => x.listingId === A.id);
2401
+ if (!N) return null;
2402
+ const L = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2403
+ m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
2393
2404
  b,
2394
2405
  {
2395
2406
  name: "DotsSixVertical",
@@ -2398,24 +2409,24 @@ const tc = (u) => {
2398
2409
  height: 20
2399
2410
  }
2400
2411
  ) }),
2401
- y === "select" && /* @__PURE__ */ t.jsx(
2412
+ k === "select" && /* @__PURE__ */ t.jsx(
2402
2413
  et,
2403
2414
  {
2404
- onChange: (O) => {
2405
- const U = [...s], nt = h.find((D) => D.productData.name === O);
2415
+ onChange: (A) => {
2416
+ const D = [...s], nt = h.find((U) => U.productData.name === A);
2406
2417
  if (!nt) return;
2407
2418
  const dt = {
2408
2419
  listingId: nt.id,
2409
2420
  image: nt.productData.images.length > 0 ? nt.productData.images[0].cfId : ""
2410
- }, k = U.map((D) => D.listingId === x.listingId ? dt : D);
2411
- w(dt), i([...k]);
2421
+ }, y = D.map((U) => U.listingId === x.listingId ? dt : U);
2422
+ $(dt), i([...y]);
2412
2423
  },
2413
- value: C.productData.name,
2424
+ value: N.productData.name,
2414
2425
  options: [
2415
- ...h.filter((O) => !s.find((U) => U.listingId === O.id)).map((O) => O.productData.name)
2426
+ ...h.filter((A) => !s.find((D) => D.listingId === A.id)).map((A) => A.productData.name)
2416
2427
  ],
2417
- leftAddon: T(
2418
- x.image || C.productData.images.length > 0 && C.productData.images[0].cfId || ""
2428
+ leftAddon: B(
2429
+ x.image || N.productData.images.length > 0 && N.productData.images[0].cfId || ""
2419
2430
  )
2420
2431
  },
2421
2432
  I
@@ -2428,10 +2439,10 @@ const tc = (u) => {
2428
2439
  hoverable: !0,
2429
2440
  width: 20,
2430
2441
  height: 20,
2431
- onClick: (O) => F(O, x)
2442
+ onClick: (A) => F(A, x)
2432
2443
  }
2433
2444
  ) }),
2434
- p && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
2445
+ f && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
2435
2446
  b,
2436
2447
  {
2437
2448
  name: "Trash",
@@ -2439,23 +2450,23 @@ const tc = (u) => {
2439
2450
  width: 20,
2440
2451
  height: 20,
2441
2452
  fill: "#C12A2A",
2442
- onClick: () => i(s.filter((O) => O !== x))
2453
+ onClick: () => i(s.filter((A) => A !== x))
2443
2454
  }
2444
2455
  ) })
2445
2456
  ] })
2446
2457
  ] });
2447
- return d ? /* @__PURE__ */ t.jsx(
2458
+ return m ? /* @__PURE__ */ t.jsx(
2448
2459
  Vi,
2449
2460
  {
2450
2461
  product: x,
2451
- children: R
2462
+ children: L
2452
2463
  },
2453
2464
  x.listingId
2454
2465
  ) : /* @__PURE__ */ t.jsx(
2455
2466
  "div",
2456
2467
  {
2457
2468
  className: G.product,
2458
- children: R
2469
+ children: L
2459
2470
  },
2460
2471
  x.listingId
2461
2472
  );
@@ -2471,33 +2482,33 @@ const tc = (u) => {
2471
2482
  }
2472
2483
  )
2473
2484
  ] }),
2474
- g && _ && /* @__PURE__ */ t.jsx(
2485
+ u && _ && /* @__PURE__ */ t.jsx(
2475
2486
  Fi,
2476
2487
  {
2477
2488
  activeItem: _,
2478
- setActiveItem: w,
2479
- setIsOpenModal: B,
2489
+ setActiveItem: $,
2490
+ setIsOpenModal: S,
2480
2491
  popupPosition: H,
2481
2492
  itemsOptions: h
2482
2493
  }
2483
2494
  ),
2484
2495
  /* @__PURE__ */ t.jsxs("div", { className: G.products, children: [
2485
2496
  o && /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: o }),
2486
- d ? /* @__PURE__ */ t.jsx(
2497
+ m ? /* @__PURE__ */ t.jsx(
2487
2498
  $t,
2488
2499
  {
2489
- sensors: E,
2490
- onDragEnd: v,
2500
+ sensors: q,
2501
+ onDragEnd: j,
2491
2502
  children: /* @__PURE__ */ t.jsx(
2492
2503
  It,
2493
2504
  {
2494
2505
  items: s.map((x) => String(x.listingId)),
2495
- strategy: Nt,
2496
- children: s.map((x, I) => A(x, I))
2506
+ strategy: wt,
2507
+ children: s.map((x, I) => P(x, I))
2497
2508
  }
2498
2509
  )
2499
2510
  }
2500
- ) : s.map((x, I) => A(x, I)),
2511
+ ) : s.map((x, I) => P(x, I)),
2501
2512
  r && /* @__PURE__ */ t.jsx(
2502
2513
  "div",
2503
2514
  {
@@ -2515,7 +2526,7 @@ const tc = (u) => {
2515
2526
  onClick: () => {
2516
2527
  const x = [...s];
2517
2528
  for (let I = 0; I < h.length; I++)
2518
- if (!s.find((C) => C.listingId === h[I].id)) {
2529
+ if (!s.find((N) => N.listingId === h[I].id)) {
2519
2530
  x.push({
2520
2531
  listingId: h[I].id,
2521
2532
  image: h[I].productData.images.length > 0 ? h[I].productData.images[0].cfId : ""
@@ -2546,7 +2557,7 @@ const tc = (u) => {
2546
2557
  ] }),
2547
2558
  c !== void 0 && /* @__PURE__ */ t.jsx(Tt, { items: c })
2548
2559
  ] });
2549
- }, Yi = "_options_6cemk_1", Gi = "_price_6cemk_12", Xi = "_oldPrice_6cemk_19", Wi = "_newPrice_6cemk_27", Ji = "_animate_6cemk_34", Qi = "_appearAndBounce_6cemk_1", Ki = "_meta_6cemk_52", Zi = "_info_6cemk_58", to = "_infoRight_6cemk_66", eo = "_buttons_6cemk_73", so = "_variants_6cemk_80", no = "_variant_6cemk_80", io = "_stock_6cemk_98", oo = "_variantInfo_6cemk_105", ao = "_quantity_6cemk_111", co = "_count_6cemk_118", lo = "_focused_6cemk_135", ro = "_button_6cemk_73", uo = "_activeVariant_6cemk_161", _o = "_chargeTypes_6cemk_165", mo = "_charge_6cemk_165", ho = "_chargeActive_6cemk_190", po = "_title_6cemk_198", P = {
2560
+ }, Yi = "_options_6cemk_1", Gi = "_price_6cemk_12", Xi = "_oldPrice_6cemk_19", Wi = "_newPrice_6cemk_27", Ji = "_animate_6cemk_34", Qi = "_appearAndBounce_6cemk_1", Ki = "_meta_6cemk_52", Zi = "_info_6cemk_58", to = "_infoRight_6cemk_66", eo = "_buttons_6cemk_73", so = "_variants_6cemk_80", no = "_variant_6cemk_80", io = "_stock_6cemk_98", oo = "_variantInfo_6cemk_105", ao = "_quantity_6cemk_111", co = "_count_6cemk_118", lo = "_focused_6cemk_135", ro = "_button_6cemk_73", uo = "_activeVariant_6cemk_161", mo = "_chargeTypes_6cemk_165", _o = "_charge_6cemk_165", ho = "_chargeActive_6cemk_190", po = "_title_6cemk_198", T = {
2550
2561
  options: Yi,
2551
2562
  price: Gi,
2552
2563
  oldPrice: Xi,
@@ -2566,20 +2577,20 @@ const tc = (u) => {
2566
2577
  focused: lo,
2567
2578
  button: ro,
2568
2579
  activeVariant: uo,
2569
- chargeTypes: _o,
2570
- charge: mo,
2580
+ chargeTypes: mo,
2581
+ charge: _o,
2571
2582
  chargeActive: ho,
2572
2583
  title: po
2573
- }, fo = "_wrapper_c1dht_1", go = "_label_c1dht_9", xo = "_input_c1dht_18", bo = "_paddingless_c1dht_31", vo = "_content_c1dht_35", jo = "_contentBorder_c1dht_47", yo = "_borderless_c1dht_52", ko = "_rightIcon_c1dht_57", it = {
2574
- wrapper: fo,
2575
- label: go,
2584
+ }, go = "_wrapper_c1dht_1", fo = "_label_c1dht_9", xo = "_input_c1dht_18", bo = "_paddingless_c1dht_31", vo = "_content_c1dht_35", jo = "_contentBorder_c1dht_47", yo = "_borderless_c1dht_52", ko = "_rightIcon_c1dht_57", it = {
2585
+ wrapper: go,
2586
+ label: fo,
2576
2587
  input: xo,
2577
2588
  paddingless: bo,
2578
2589
  content: vo,
2579
2590
  contentBorder: jo,
2580
2591
  borderless: yo,
2581
2592
  rightIcon: ko
2582
- }, $o = (u) => {
2593
+ }, $o = (d) => {
2583
2594
  const {
2584
2595
  onChange: a,
2585
2596
  style: e,
@@ -2589,20 +2600,20 @@ const tc = (u) => {
2589
2600
  min: l,
2590
2601
  max: o,
2591
2602
  placeholder: n,
2592
- disabled: d = !1,
2593
- required: j = !1,
2594
- regex: p,
2603
+ disabled: m = !1,
2604
+ required: v = !1,
2605
+ regex: f,
2595
2606
  paddingless: r = !1,
2596
- borderless: y = !1,
2607
+ borderless: k = !1,
2597
2608
  editable: h = !1,
2598
2609
  isSearch: _ = !1,
2599
- centered: w = !1
2600
- } = u, { themeSettings: H } = Dt(), { inputs: $ } = H, [g, B] = f.useState(!1);
2601
- function E(T) {
2602
- return Number(T) < 0 ? String(l) : T;
2610
+ centered: $ = !1
2611
+ } = d, { themeSettings: H } = Ut(), { inputs: M } = H, [u, S] = g.useState(!1);
2612
+ function q(B) {
2613
+ return Number(B) < 0 ? String(l) : B;
2603
2614
  }
2604
- function F(T) {
2605
- return !j || !p ? !0 : new RegExp(p).test(T);
2615
+ function F(B) {
2616
+ return !v || !f ? !0 : new RegExp(f).test(B);
2606
2617
  }
2607
2618
  return /* @__PURE__ */ t.jsxs("div", { className: it.wrapper, children: [
2608
2619
  s && /* @__PURE__ */ t.jsx(
@@ -2617,12 +2628,10 @@ const tc = (u) => {
2617
2628
  "div",
2618
2629
  {
2619
2630
  className: Y(it.content, {
2620
- [it.contentBorder]: $.border.active
2631
+ [it.contentBorder]: M.border.active
2621
2632
  }),
2622
2633
  style: {
2623
- ...e,
2624
- background: $.field.active ? $.field.color : "transparent",
2625
- padding: _ ? `7px ${Number($.general.size) + 20}px 7px 11px` : "7px 11px"
2634
+ ...e
2626
2635
  },
2627
2636
  children: [
2628
2637
  /* @__PURE__ */ t.jsx(
@@ -2630,27 +2639,29 @@ const tc = (u) => {
2630
2639
  {
2631
2640
  id: s,
2632
2641
  type: c || "text",
2633
- onChange: (T) => {
2634
- if (c === "text") a(T.target.value);
2642
+ onChange: (B) => {
2643
+ if (c === "text") a(B.target.value);
2635
2644
  else {
2636
- const v = E(T.target.value);
2637
- a(v);
2645
+ const j = q(B.target.value);
2646
+ a(j);
2638
2647
  }
2639
2648
  },
2640
2649
  value: i,
2641
2650
  autoComplete: "off",
2642
2651
  placeholder: n || "Type something...",
2643
2652
  className: Y(it.input, {
2644
- [it.required]: g && j && !F(i),
2653
+ [it.required]: u && v && !F(i),
2645
2654
  [it.paddingless]: r,
2646
- [it.borderless]: y
2655
+ [it.borderless]: k
2647
2656
  }),
2648
2657
  min: c === "number" ? l : void 0,
2649
2658
  max: c === "number" ? o : void 0,
2650
- disabled: d,
2651
- onFocus: () => B(!0),
2659
+ disabled: m,
2660
+ onFocus: () => S(!0),
2652
2661
  style: {
2653
- textAlign: w ? "center" : "left"
2662
+ textAlign: $ ? "center" : "left",
2663
+ background: M.field.active ? M.field.color : "transparent",
2664
+ padding: _ ? `7px ${Number(M.general.size) + 20}px 7px 11px` : "7px 11px"
2654
2665
  }
2655
2666
  }
2656
2667
  ),
@@ -2659,8 +2670,8 @@ const tc = (u) => {
2659
2670
  {
2660
2671
  name: "MagnifyingGlass",
2661
2672
  fill: "var(--icon-secondary)",
2662
- width: $.general.size,
2663
- height: $.general.size
2673
+ width: M.general.size,
2674
+ height: M.general.size
2664
2675
  }
2665
2676
  ) }),
2666
2677
  h && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -2676,17 +2687,17 @@ const tc = (u) => {
2676
2687
  }
2677
2688
  )
2678
2689
  ] });
2679
- }, Io = "_button_85085_1", No = "_primary_85085_20", wo = "_primaryHovered_85085_30", Co = "_secondary_85085_34", So = "_secondaryHovered_85085_44", Bo = "_tertiary_85085_48", To = "_tertiaryHovered_85085_58", Po = "_content_85085_62", ct = {
2690
+ }, Io = "_button_85085_1", wo = "_primary_85085_20", No = "_primaryHovered_85085_30", Co = "_secondary_85085_34", So = "_secondaryHovered_85085_44", Bo = "_tertiary_85085_48", To = "_tertiaryHovered_85085_58", Po = "_content_85085_62", ct = {
2680
2691
  button: Io,
2681
- primary: No,
2682
- primaryHovered: wo,
2692
+ primary: wo,
2693
+ primaryHovered: No,
2683
2694
  secondary: Co,
2684
2695
  secondaryHovered: So,
2685
2696
  tertiary: Bo,
2686
2697
  tertiaryHovered: To,
2687
2698
  content: Po
2688
- }, Q = (u) => {
2689
- const { children: a, onClick: e, style: s, className: i, disabled: c = !1, type: l = "Primary" } = u, { themeSettings: o } = Dt();
2699
+ }, Q = (d) => {
2700
+ const { children: a, onClick: e, style: s, className: i, disabled: c = !1, type: l = "Primary" } = d, { themeSettings: o } = Ut();
2690
2701
  return /* @__PURE__ */ t.jsx(
2691
2702
  "button",
2692
2703
  {
@@ -2718,89 +2729,89 @@ const tc = (u) => {
2718
2729
  }
2719
2730
  );
2720
2731
  };
2721
- var zt = /* @__PURE__ */ ((u) => (u.ONE_TIME = "One-Time", u.RECURRING = "Subscribe & Save", u))(zt || {});
2722
- const ec = (u) => {
2723
- var H, $;
2724
- const { variants: a } = u, [e, s] = f.useState(a[0]), [i, c] = f.useState(e.chargeTypes[0]), l = Bt(), [o, n] = f.useState(1), { reset: d, addProductToCart: j, getProducts: p } = Ot(), [r, y] = f.useState(!1);
2725
- f.useEffect(() => {
2726
- y(!0);
2727
- const g = setTimeout(() => y(!1), 600);
2728
- return () => clearTimeout(g);
2732
+ var zt = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(zt || {});
2733
+ const ec = (d) => {
2734
+ var H, M;
2735
+ const { variants: a } = d, [e, s] = g.useState(a[0]), [i, c] = g.useState(e.chargeTypes[0]), l = Bt(), [o, n] = g.useState(1), { reset: m, addProductToCart: v, getProducts: f } = Ot(), [r, k] = g.useState(!1);
2736
+ g.useEffect(() => {
2737
+ k(!0);
2738
+ const u = setTimeout(() => k(!1), 600);
2739
+ return () => clearTimeout(u);
2729
2740
  }, [o]);
2730
2741
  async function h() {
2731
- await p(), await j({
2732
- productId: u.id,
2742
+ await f(), await v({
2743
+ productId: d.id,
2733
2744
  productVariantId: e.id,
2734
2745
  quantity: o
2735
2746
  });
2736
2747
  }
2737
2748
  function _() {
2738
- d(), h(), l("/checkout");
2749
+ m(), h(), l("/checkout");
2739
2750
  }
2740
- function w(g) {
2741
- if (g >= 864e5) {
2742
- const v = Math.floor(g / 864e5);
2743
- return `${v} ${v === 1 ? "day" : "days"}`;
2744
- } else if (g >= 36e5) {
2745
- const v = Math.floor(g / 36e5);
2746
- return `${v} ${v === 1 ? "hour" : "hours"}`;
2747
- } else if (g >= 6e4) {
2748
- const v = Math.floor(g / 6e4);
2749
- return `${v} ${v === 1 ? "minute" : "minutes"}`;
2751
+ function $(u) {
2752
+ if (u >= 864e5) {
2753
+ const j = Math.floor(u / 864e5);
2754
+ return `${j} ${j === 1 ? "day" : "days"}`;
2755
+ } else if (u >= 36e5) {
2756
+ const j = Math.floor(u / 36e5);
2757
+ return `${j} ${j === 1 ? "hour" : "hours"}`;
2758
+ } else if (u >= 6e4) {
2759
+ const j = Math.floor(u / 6e4);
2760
+ return `${j} ${j === 1 ? "minute" : "minutes"}`;
2750
2761
  } else {
2751
- const v = Math.floor(g / 1e3);
2752
- return `${v} ${v === 1 ? "second" : "seconds"}`;
2762
+ const j = Math.floor(u / 1e3);
2763
+ return `${j} ${j === 1 ? "second" : "seconds"}`;
2753
2764
  }
2754
2765
  }
2755
- return f.useEffect(() => {
2766
+ return g.useEffect(() => {
2756
2767
  (e.quantity.available === 0 || !e.quantity.available) && n(0);
2757
- }, [e.quantity.available]), console.log(e.quantity), /* @__PURE__ */ t.jsxs("div", { className: P.options, children: [
2758
- e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: P.chargeTypes, children: e.chargeTypes.map((g) => /* @__PURE__ */ t.jsx(
2768
+ }, [e.quantity.available]), /* @__PURE__ */ t.jsxs("div", { className: T.options, children: [
2769
+ e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: T.chargeTypes, children: e.chargeTypes.map((u) => /* @__PURE__ */ t.jsx(
2759
2770
  "div",
2760
2771
  {
2761
- className: Y(P.charge, {
2762
- [P.chargeActive]: i === g
2772
+ className: Y(T.charge, {
2773
+ [T.chargeActive]: i === u
2763
2774
  }),
2764
- onClick: () => c(g),
2765
- children: zt[g]
2775
+ onClick: () => c(u),
2776
+ children: zt[u]
2766
2777
  },
2767
- g
2778
+ u
2768
2779
  )) }),
2769
- /* @__PURE__ */ t.jsx("div", { className: P.variants, children: a.map((g) => {
2770
- var B;
2780
+ /* @__PURE__ */ t.jsx("div", { className: T.variants, children: a.map((u) => {
2781
+ var S;
2771
2782
  return /* @__PURE__ */ t.jsxs(
2772
2783
  "div",
2773
2784
  {
2774
- className: Y(P.variant, {
2775
- [P.activeVariant]: e.id === g.id
2785
+ className: Y(T.variant, {
2786
+ [T.activeVariant]: e.id === u.id
2776
2787
  }),
2777
- onClick: () => s(g),
2788
+ onClick: () => s(u),
2778
2789
  children: [
2779
- /* @__PURE__ */ t.jsxs("div", { className: P.variantInfo, children: [
2780
- /* @__PURE__ */ t.jsx("span", { className: P.title, children: g.name }),
2790
+ /* @__PURE__ */ t.jsxs("div", { className: T.variantInfo, children: [
2791
+ /* @__PURE__ */ t.jsx("span", { className: T.title, children: u.name }),
2781
2792
  /* @__PURE__ */ t.jsxs("span", { children: [
2782
2793
  "$",
2783
- i === "ONE_TIME" ? g.price.amount : g.subscriptionSettings ? g.subscriptionSettings.price.amount : "Price Not Found"
2794
+ i === "ONE_TIME" ? u.price.amount : u.subscriptionSettings ? u.subscriptionSettings.price.amount : "Price Not Found"
2784
2795
  ] })
2785
2796
  ] }),
2786
- /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: P.stock, children: [
2787
- ((B = g.quantity.restrictions) == null ? void 0 : B.max) || g.quantity.available || 0,
2797
+ /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: T.stock, children: [
2798
+ ((S = u.quantity.restrictions) == null ? void 0 : S.max) || u.quantity.available || 0,
2788
2799
  " in stock"
2789
2800
  ] }) })
2790
2801
  ]
2791
2802
  },
2792
- g.id
2803
+ u.id
2793
2804
  );
2794
2805
  }) }),
2795
- i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: P.quantity, children: [
2806
+ i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: T.quantity, children: [
2796
2807
  /* @__PURE__ */ t.jsx(
2797
2808
  Q,
2798
2809
  {
2799
2810
  type: "Secondary",
2800
2811
  onClick: () => {
2801
- o > 1 ? n((g) => g - 1) : n(1);
2812
+ o > 1 ? n((u) => u - 1) : n(1);
2802
2813
  },
2803
- className: P.button,
2814
+ className: T.button,
2804
2815
  disabled: e.quantity.available === 0 || e.quantity.restrictions && o <= e.quantity.restrictions.min || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available,
2805
2816
  children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
2806
2817
  }
@@ -2810,9 +2821,9 @@ const ec = (u) => {
2810
2821
  {
2811
2822
  type: "number",
2812
2823
  value: String(o),
2813
- onChange: (g) => n(Number(g)),
2824
+ onChange: (u) => n(Number(u)),
2814
2825
  max: ((H = e.quantity.restrictions) == null ? void 0 : H.max) || e.quantity.available || 1 / 0,
2815
- min: (($ = e.quantity.restrictions) == null ? void 0 : $.min) || 0,
2826
+ min: ((M = e.quantity.restrictions) == null ? void 0 : M.min) || 0,
2816
2827
  centered: !0,
2817
2828
  disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available
2818
2829
  }
@@ -2822,18 +2833,18 @@ const ec = (u) => {
2822
2833
  {
2823
2834
  type: "Secondary",
2824
2835
  onClick: () => {
2825
- n((g) => g + 1);
2836
+ n((u) => u + 1);
2826
2837
  },
2827
- className: P.button,
2838
+ className: T.button,
2828
2839
  disabled: !!(e.quantity.restrictions && o >= e.quantity.restrictions.max || e.quantity.available !== void 0 && o >= e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available),
2829
2840
  children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
2830
2841
  }
2831
2842
  )
2832
2843
  ] }),
2833
- /* @__PURE__ */ t.jsxs("div", { className: P.meta, children: [
2834
- /* @__PURE__ */ t.jsxs("div", { className: P.info, children: [
2844
+ /* @__PURE__ */ t.jsxs("div", { className: T.meta, children: [
2845
+ /* @__PURE__ */ t.jsxs("div", { className: T.info, children: [
2835
2846
  /* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
2836
- /* @__PURE__ */ t.jsxs("div", { className: P.infoRight, children: [
2847
+ /* @__PURE__ */ t.jsxs("div", { className: T.infoRight, children: [
2837
2848
  /* @__PURE__ */ t.jsx(
2838
2849
  b,
2839
2850
  {
@@ -2843,39 +2854,39 @@ const ec = (u) => {
2843
2854
  height: 20
2844
2855
  }
2845
2856
  ),
2846
- /* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : w(e.deliveryTime) })
2857
+ /* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : $(e.deliveryTime) })
2847
2858
  ] })
2848
2859
  ] }),
2849
- /* @__PURE__ */ t.jsxs("div", { className: P.info, children: [
2860
+ /* @__PURE__ */ t.jsxs("div", { className: T.info, children: [
2850
2861
  /* @__PURE__ */ t.jsx("span", { children: "Price" }),
2851
- /* @__PURE__ */ t.jsx("div", { className: P.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: P.price, children: [
2852
- /* @__PURE__ */ t.jsxs("span", { className: Y(P.newPrice, { [P.animate]: r }), children: [
2862
+ /* @__PURE__ */ t.jsx("div", { className: T.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: T.price, children: [
2863
+ /* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
2853
2864
  "$ ",
2854
2865
  (e.price.amount || 0) * o
2855
2866
  ] }),
2856
- /* @__PURE__ */ t.jsxs("span", { className: P.oldPrice, children: [
2867
+ /* @__PURE__ */ t.jsxs("span", { className: T.oldPrice, children: [
2857
2868
  "$ ",
2858
2869
  (e.compareAtPrice.amount || 0) * o
2859
2870
  ] })
2860
- ] }) : /* @__PURE__ */ t.jsxs("span", { className: Y(P.newPrice, { [P.animate]: r }), children: [
2871
+ ] }) : /* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
2861
2872
  "$ ",
2862
2873
  (e.price.amount || 0) * o
2863
- ] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: P.price, children: [
2864
- /* @__PURE__ */ t.jsxs("span", { className: Y(P.newPrice, { [P.animate]: r }), children: [
2874
+ ] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: T.price, children: [
2875
+ /* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
2865
2876
  "$ ",
2866
2877
  e.subscriptionSettings.price.amount || 0
2867
2878
  ] }),
2868
- /* @__PURE__ */ t.jsxs("span", { className: P.oldPrice, children: [
2879
+ /* @__PURE__ */ t.jsxs("span", { className: T.oldPrice, children: [
2869
2880
  "$ ",
2870
2881
  e.subscriptionSettings.compareAtPrice.amount || 0
2871
2882
  ] })
2872
- ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: Y(P.newPrice, { [P.animate]: r }), children: [
2883
+ ] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
2873
2884
  "$ ",
2874
2885
  e.subscriptionSettings.price.amount || 0
2875
2886
  ] }) })
2876
2887
  ] })
2877
2888
  ] }),
2878
- /* @__PURE__ */ t.jsxs("div", { className: P.buttons, children: [
2889
+ /* @__PURE__ */ t.jsxs("div", { className: T.buttons, children: [
2879
2890
  /* @__PURE__ */ t.jsx(
2880
2891
  Q,
2881
2892
  {
@@ -2896,7 +2907,7 @@ const ec = (u) => {
2896
2907
  )
2897
2908
  ] })
2898
2909
  ] });
2899
- }, Ao = "_button_1tdo3_1", Oo = "_login_1tdo3_14", Mo = "_signUp_1tdo3_18", qo = "_buttons_1tdo3_23", Eo = "_modal_1tdo3_32", Do = "_closing_1tdo3_64", Uo = "_info_1tdo3_113", Ho = "_top_1tdo3_120", Ro = "_title_1tdo3_131", Lo = "_clear_1tdo3_138", zo = "_activeClear_1tdo3_145", Fo = "_count_1tdo3_149", Vo = "_cart_1tdo3_164", Yo = "_empty_1tdo3_172", Go = "_product_1tdo3_198", Xo = "_products_1tdo3_207", Wo = "_image_1tdo3_215", Jo = "_productInfo_1tdo3_221", Qo = "_content_1tdo3_228", Ko = "_name_1tdo3_234", Zo = "_price_1tdo3_240", ta = "_productButtons_1tdo3_246", ea = "_productButton_1tdo3_246", sa = "_productCount_1tdo3_266", na = "_bottom_1tdo3_282", ia = "_subtotal_1tdo3_290", oa = "_block_1tdo3_298", aa = "_shoppingCount_1tdo3_305", ca = "_total_1tdo3_325", la = "_link_1tdo3_331", ra = "_userInfo_1tdo3_338", da = "_pagesMobileModal_1tdo3_349", ua = "_pagesMobileModalContent_1tdo3_363", _a = "_pagesMobileModalHeader_1tdo3_369", ma = "_pagesMobileModalFooter_1tdo3_379", S = {
2910
+ }, Ao = "_button_1tdo3_1", Oo = "_login_1tdo3_14", Mo = "_signUp_1tdo3_18", qo = "_buttons_1tdo3_23", Eo = "_modal_1tdo3_32", Uo = "_closing_1tdo3_64", Do = "_info_1tdo3_113", Lo = "_top_1tdo3_120", Ho = "_title_1tdo3_131", Ro = "_clear_1tdo3_138", zo = "_activeClear_1tdo3_145", Fo = "_count_1tdo3_149", Vo = "_cart_1tdo3_164", Yo = "_empty_1tdo3_172", Go = "_product_1tdo3_198", Xo = "_products_1tdo3_207", Wo = "_image_1tdo3_215", Jo = "_productInfo_1tdo3_221", Qo = "_content_1tdo3_228", Ko = "_name_1tdo3_234", Zo = "_price_1tdo3_240", ta = "_productButtons_1tdo3_246", ea = "_productButton_1tdo3_246", sa = "_productCount_1tdo3_266", na = "_bottom_1tdo3_282", ia = "_subtotal_1tdo3_290", oa = "_block_1tdo3_298", aa = "_shoppingCount_1tdo3_305", ca = "_total_1tdo3_325", la = "_link_1tdo3_331", ra = "_userInfo_1tdo3_338", da = "_pagesMobileModal_1tdo3_349", ua = "_pagesMobileModalContent_1tdo3_363", ma = "_pagesMobileModalHeader_1tdo3_369", _a = "_pagesMobileModalFooter_1tdo3_379", C = {
2900
2911
  button: Ao,
2901
2912
  login: Oo,
2902
2913
  signUp: Mo,
@@ -2904,13 +2915,13 @@ const ec = (u) => {
2904
2915
  modal: Eo,
2905
2916
  "slide-in-fade": "_slide-in-fade_1tdo3_1",
2906
2917
  "mobile-slide-in-fade": "_mobile-slide-in-fade_1tdo3_1",
2907
- closing: Do,
2918
+ closing: Uo,
2908
2919
  "mobile-slide-out-fade": "_mobile-slide-out-fade_1tdo3_1",
2909
2920
  "slide-out-fade": "_slide-out-fade_1tdo3_1",
2910
- info: Uo,
2911
- top: Ho,
2912
- title: Ro,
2913
- clear: Lo,
2921
+ info: Do,
2922
+ top: Lo,
2923
+ title: Ho,
2924
+ clear: Ro,
2914
2925
  activeClear: zo,
2915
2926
  count: Fo,
2916
2927
  cart: Vo,
@@ -2934,20 +2945,20 @@ const ec = (u) => {
2934
2945
  userInfo: ra,
2935
2946
  pagesMobileModal: da,
2936
2947
  pagesMobileModalContent: ua,
2937
- pagesMobileModalHeader: _a,
2938
- pagesMobileModalFooter: ma
2948
+ pagesMobileModalHeader: ma,
2949
+ pagesMobileModalFooter: _a
2939
2950
  };
2940
2951
  class xt extends Error {
2941
2952
  }
2942
2953
  xt.prototype.name = "InvalidTokenError";
2943
- function ha(u) {
2944
- return decodeURIComponent(atob(u).replace(/(.)/g, (a, e) => {
2954
+ function ha(d) {
2955
+ return decodeURIComponent(atob(d).replace(/(.)/g, (a, e) => {
2945
2956
  let s = e.charCodeAt(0).toString(16).toUpperCase();
2946
2957
  return s.length < 2 && (s = "0" + s), "%" + s;
2947
2958
  }));
2948
2959
  }
2949
- function pa(u) {
2950
- let a = u.replace(/-/g, "+").replace(/_/g, "/");
2960
+ function pa(d) {
2961
+ let a = d.replace(/-/g, "+").replace(/_/g, "/");
2951
2962
  switch (a.length % 4) {
2952
2963
  case 0:
2953
2964
  break;
@@ -2966,11 +2977,11 @@ function pa(u) {
2966
2977
  return atob(a);
2967
2978
  }
2968
2979
  }
2969
- function fa(u, a) {
2970
- if (typeof u != "string")
2980
+ function ga(d, a) {
2981
+ if (typeof d != "string")
2971
2982
  throw new xt("Invalid token specified: must be a string");
2972
2983
  a || (a = {});
2973
- const e = a.header === !0 ? 0 : 1, s = u.split(".")[e];
2984
+ const e = a.header === !0 ? 0 : 1, s = d.split(".")[e];
2974
2985
  if (typeof s != "string")
2975
2986
  throw new xt(`Invalid token specified: missing part #${e + 1}`);
2976
2987
  let i;
@@ -2985,41 +2996,41 @@ function fa(u, a) {
2985
2996
  throw new xt(`Invalid token specified: invalid json for part #${e + 1} (${c.message})`);
2986
2997
  }
2987
2998
  }
2988
- const sc = (u) => {
2989
- const { shopping: a, signUp: e, isShowUserInfo: s = !0 } = u;
2990
- return /* @__PURE__ */ t.jsxs("div", { className: S.buttons, children: [
2991
- a && /* @__PURE__ */ t.jsx(ga, {}),
2999
+ const sc = (d) => {
3000
+ const { shopping: a, signUp: e, isShowUserInfo: s = !0 } = d;
3001
+ return /* @__PURE__ */ t.jsxs("div", { className: C.buttons, children: [
3002
+ a && /* @__PURE__ */ t.jsx(fa, {}),
2992
3003
  s && /* @__PURE__ */ t.jsx(Ft, { signUp: e })
2993
3004
  ] });
2994
- }, ga = () => {
2995
- const [u, a] = f.useState(!1), [e, s] = f.useState([]), { cart: i, getProducts: c } = Ot();
3005
+ }, fa = () => {
3006
+ const [d, a] = g.useState(!1), [e, s] = g.useState([]), { cart: i, getProducts: c } = Ot();
2996
3007
  function l(r) {
2997
- for (let y = 0; y < i.parts.length; y++)
3008
+ for (let k = 0; k < i.parts.length; k++)
2998
3009
  for (let h = 0; h < r.variants.length; h++)
2999
- if (i.parts[y].productVariantId === r.variants[y].id)
3000
- return i.parts[y].productVariantId;
3010
+ if (i.parts[k].productVariantId === r.variants[k].id)
3011
+ return i.parts[k].productVariantId;
3001
3012
  }
3002
3013
  function o(r) {
3003
- for (let y = 0; y < i.parts.length; y++)
3014
+ for (let k = 0; k < i.parts.length; k++)
3004
3015
  for (let h = 0; h < r.variants.length; h++)
3005
- if (i.parts[y].productVariantId === r.variants[y].id)
3006
- return i.parts[y].quantity;
3016
+ if (i.parts[k].productVariantId === r.variants[k].id)
3017
+ return i.parts[k].quantity;
3007
3018
  }
3008
- f.useEffect(() => {
3019
+ g.useEffect(() => {
3009
3020
  (async () => {
3010
- const y = i.parts.map((w) => String(w.productId)), _ = (await c([...y])).map((w) => ({
3011
- ...w,
3012
- activeVariantId: l(w),
3013
- quantity: o(w)
3021
+ const k = i.parts.map(($) => String($.productId)), _ = (await c([...k])).map(($) => ({
3022
+ ...$,
3023
+ activeVariantId: l($),
3024
+ quantity: o($)
3014
3025
  }));
3015
3026
  s(_);
3016
3027
  })();
3017
3028
  }, [i.parts.length]);
3018
3029
  function n(r) {
3019
- var y;
3020
- return !r || !(r != null && r.variants) ? !1 : (y = r.variants.find((h) => h.id === r.activeVariantId)) == null ? void 0 : y.subscriptionSettings;
3030
+ var k;
3031
+ return !r || !(r != null && r.variants) ? !1 : (k = r.variants.find((h) => h.id === r.activeVariantId)) == null ? void 0 : k.subscriptionSettings;
3021
3032
  }
3022
- const d = i.parts.length > 0 && e.length > 0 && !n(e[0]), [j, p] = f.useState(!1);
3033
+ const m = i.parts.length > 0 && e.length > 0 && !n(e[0]), [v, f] = g.useState(!1);
3023
3034
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3024
3035
  /* @__PURE__ */ t.jsxs(
3025
3036
  Q,
@@ -3029,7 +3040,7 @@ const sc = (u) => {
3029
3040
  padding: 10
3030
3041
  },
3031
3042
  onClick: (r) => {
3032
- r.stopPropagation(), window.location.pathname !== "/admin/builder" && (a(!0), p(!0));
3043
+ r.stopPropagation(), window.location.pathname !== "/admin/builder" && (a(!0), f(!0));
3033
3044
  },
3034
3045
  children: [
3035
3046
  /* @__PURE__ */ t.jsx(
@@ -3039,15 +3050,15 @@ const sc = (u) => {
3039
3050
  fill: "var(--icon-primary)"
3040
3051
  }
3041
3052
  ),
3042
- d && /* @__PURE__ */ t.jsx("div", { className: S.shoppingCount, children: i.parts.length })
3053
+ m && /* @__PURE__ */ t.jsx("div", { className: C.shoppingCount, children: i.parts.length })
3043
3054
  ]
3044
3055
  }
3045
3056
  ),
3046
- u && /* @__PURE__ */ t.jsx(
3057
+ d && /* @__PURE__ */ t.jsx(
3047
3058
  Mt,
3048
3059
  {
3049
3060
  close: () => {
3050
- p(!1), setTimeout(() => {
3061
+ f(!1), setTimeout(() => {
3051
3062
  a(!1);
3052
3063
  }, 300);
3053
3064
  },
@@ -3056,26 +3067,26 @@ const sc = (u) => {
3056
3067
  xa,
3057
3068
  {
3058
3069
  activeProducts: e,
3059
- isCartNotEmpty: d,
3060
- isOpen: j
3070
+ isCartNotEmpty: m,
3071
+ isOpen: v
3061
3072
  }
3062
3073
  )
3063
3074
  }
3064
3075
  )
3065
3076
  ] });
3066
- }, xa = (u) => {
3067
- const { activeProducts: a, isCartNotEmpty: e, isOpen: s } = u, { cart: i, reset: c, getTotalAndDiscount: l, updateQuantityOfProduct: o } = Ot(), n = Bt();
3068
- function d(r) {
3077
+ }, xa = (d) => {
3078
+ const { activeProducts: a, isCartNotEmpty: e, isOpen: s } = d, { cart: i, reset: c, getTotalAndDiscount: l, updateQuantityOfProduct: o } = Ot(), n = Bt();
3079
+ function m(r) {
3069
3080
  n(r);
3070
3081
  }
3071
- function j(r) {
3082
+ function v(r) {
3072
3083
  o({
3073
3084
  productId: r.id,
3074
3085
  productVariantId: r.activeVariantId,
3075
3086
  quantity: r.quantity + 1
3076
3087
  });
3077
3088
  }
3078
- function p(r) {
3089
+ function f(r) {
3079
3090
  o({
3080
3091
  productId: r.id,
3081
3092
  productVariantId: r.activeVariantId,
@@ -3085,21 +3096,21 @@ const sc = (u) => {
3085
3096
  return /* @__PURE__ */ t.jsxs(
3086
3097
  "div",
3087
3098
  {
3088
- className: Y(S.modal, {
3089
- [S.closing]: !s
3099
+ className: Y(C.modal, {
3100
+ [C.closing]: !s
3090
3101
  }),
3091
3102
  onClick: (r) => r.stopPropagation(),
3092
3103
  children: [
3093
- /* @__PURE__ */ t.jsxs("div", { className: S.top, children: [
3094
- /* @__PURE__ */ t.jsxs("div", { className: S.info, children: [
3095
- /* @__PURE__ */ t.jsx("span", { className: S.title, children: "Cart" }),
3096
- e && /* @__PURE__ */ t.jsx("div", { className: S.count, children: i.parts.length })
3104
+ /* @__PURE__ */ t.jsxs("div", { className: C.top, children: [
3105
+ /* @__PURE__ */ t.jsxs("div", { className: C.info, children: [
3106
+ /* @__PURE__ */ t.jsx("span", { className: C.title, children: "Cart" }),
3107
+ e && /* @__PURE__ */ t.jsx("div", { className: C.count, children: i.parts.length })
3097
3108
  ] }),
3098
3109
  /* @__PURE__ */ t.jsx(
3099
3110
  "button",
3100
3111
  {
3101
- className: Y(S.clear, {
3102
- [S.activeClear]: e
3112
+ className: Y(C.clear, {
3113
+ [C.activeClear]: e
3103
3114
  }),
3104
3115
  disabled: !e,
3105
3116
  onClick: c,
@@ -3107,13 +3118,13 @@ const sc = (u) => {
3107
3118
  }
3108
3119
  )
3109
3120
  ] }),
3110
- e ? /* @__PURE__ */ t.jsxs("div", { className: S.cart, children: [
3111
- /* @__PURE__ */ t.jsx("div", { className: S.products, children: a.map((r) => /* @__PURE__ */ t.jsxs(
3121
+ e ? /* @__PURE__ */ t.jsxs("div", { className: C.cart, children: [
3122
+ /* @__PURE__ */ t.jsx("div", { className: C.products, children: a.map((r) => /* @__PURE__ */ t.jsxs(
3112
3123
  "div",
3113
3124
  {
3114
- className: S.product,
3125
+ className: C.product,
3115
3126
  children: [
3116
- /* @__PURE__ */ t.jsxs("div", { className: S.productInfo, children: [
3127
+ /* @__PURE__ */ t.jsxs("div", { className: C.productInfo, children: [
3117
3128
  /* @__PURE__ */ t.jsx(
3118
3129
  "img",
3119
3130
  {
@@ -3121,25 +3132,25 @@ const sc = (u) => {
3121
3132
  alt: "image",
3122
3133
  width: "100%",
3123
3134
  height: "100%",
3124
- className: S.image
3135
+ className: C.image
3125
3136
  }
3126
3137
  ),
3127
- /* @__PURE__ */ t.jsxs("div", { className: S.content, children: [
3128
- /* @__PURE__ */ t.jsx("div", { className: S.name, children: r.name }),
3129
- /* @__PURE__ */ t.jsxs("div", { className: S.price, children: [
3138
+ /* @__PURE__ */ t.jsxs("div", { className: C.content, children: [
3139
+ /* @__PURE__ */ t.jsx("div", { className: C.name, children: r.name }),
3140
+ /* @__PURE__ */ t.jsxs("div", { className: C.price, children: [
3130
3141
  "$",
3131
- r.variants.find((y) => y.id === r.activeVariantId).price.amount * ((r == null ? void 0 : r.quantity) || 1)
3142
+ r.variants.find((k) => k.id === r.activeVariantId).price.amount * ((r == null ? void 0 : r.quantity) || 1)
3132
3143
  ] })
3133
3144
  ] })
3134
3145
  ] }),
3135
- /* @__PURE__ */ t.jsxs("div", { className: S.productButtons, children: [
3146
+ /* @__PURE__ */ t.jsxs("div", { className: C.productButtons, children: [
3136
3147
  /* @__PURE__ */ t.jsx(
3137
3148
  "div",
3138
3149
  {
3139
3150
  onClick: () => {
3140
- r.quantity !== 1 && p(r);
3151
+ r.quantity !== 1 && f(r);
3141
3152
  },
3142
- className: S.productButton,
3153
+ className: C.productButton,
3143
3154
  children: /* @__PURE__ */ t.jsx(
3144
3155
  b,
3145
3156
  {
@@ -3151,12 +3162,12 @@ const sc = (u) => {
3151
3162
  )
3152
3163
  }
3153
3164
  ),
3154
- /* @__PURE__ */ t.jsx("div", { className: S.productCount, children: r.quantity }),
3165
+ /* @__PURE__ */ t.jsx("div", { className: C.productCount, children: r.quantity }),
3155
3166
  /* @__PURE__ */ t.jsx(
3156
3167
  "div",
3157
3168
  {
3158
- onClick: () => j(r),
3159
- className: S.productButton,
3169
+ onClick: () => v(r),
3170
+ className: C.productButton,
3160
3171
  children: /* @__PURE__ */ t.jsx(
3161
3172
  b,
3162
3173
  {
@@ -3173,9 +3184,9 @@ const sc = (u) => {
3173
3184
  },
3174
3185
  r.id
3175
3186
  )) }),
3176
- /* @__PURE__ */ t.jsxs("div", { className: S.bottom, children: [
3177
- /* @__PURE__ */ t.jsxs("div", { className: S.subtotal, children: [
3178
- /* @__PURE__ */ t.jsxs("div", { className: S.block, children: [
3187
+ /* @__PURE__ */ t.jsxs("div", { className: C.bottom, children: [
3188
+ /* @__PURE__ */ t.jsxs("div", { className: C.subtotal, children: [
3189
+ /* @__PURE__ */ t.jsxs("div", { className: C.block, children: [
3179
3190
  /* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
3180
3191
  /* @__PURE__ */ t.jsx(
3181
3192
  b,
@@ -3187,18 +3198,18 @@ const sc = (u) => {
3187
3198
  }
3188
3199
  )
3189
3200
  ] }),
3190
- /* @__PURE__ */ t.jsxs("div", { className: S.total, children: [
3201
+ /* @__PURE__ */ t.jsxs("div", { className: C.total, children: [
3191
3202
  "$",
3192
3203
  l().total
3193
3204
  ] })
3194
3205
  ] }),
3195
- /* @__PURE__ */ t.jsx(Q, { onClick: () => d("/checkout"), children: "Checkout" })
3206
+ /* @__PURE__ */ t.jsx(Q, { onClick: () => m("/checkout"), children: "Checkout" })
3196
3207
  ] })
3197
3208
  ] }) : /* @__PURE__ */ t.jsx(ba, {})
3198
3209
  ]
3199
3210
  }
3200
3211
  );
3201
- }, ba = () => /* @__PURE__ */ t.jsxs("div", { className: S.empty, children: [
3212
+ }, ba = () => /* @__PURE__ */ t.jsxs("div", { className: C.empty, children: [
3202
3213
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
3203
3214
  b,
3204
3215
  {
@@ -3214,12 +3225,12 @@ const sc = (u) => {
3214
3225
  "a",
3215
3226
  {
3216
3227
  href: "/products",
3217
- className: S.link,
3228
+ className: C.link,
3218
3229
  children: "view products"
3219
3230
  }
3220
3231
  )
3221
3232
  ] })
3222
- ] }), Ft = ({ signUp: u }) => {
3233
+ ] }), Ft = ({ signUp: d }) => {
3223
3234
  const a = JSON.parse(localStorage.getItem("token") || "{}"), { data: e } = a, s = Bt();
3224
3235
  function i(o) {
3225
3236
  s(o);
@@ -3237,7 +3248,7 @@ const sc = (u) => {
3237
3248
  children: "Login"
3238
3249
  }
3239
3250
  ),
3240
- u && /* @__PURE__ */ t.jsx(
3251
+ d && /* @__PURE__ */ t.jsx(
3241
3252
  Q,
3242
3253
  {
3243
3254
  onClick: () => i("/customer-dash"),
@@ -3249,27 +3260,27 @@ const sc = (u) => {
3249
3260
  }
3250
3261
  )
3251
3262
  ] });
3252
- const [c, l] = f.useState("test-email@gmail.com");
3253
- return f.useEffect(() => {
3263
+ const [c, l] = g.useState("test-email@gmail.com");
3264
+ return g.useEffect(() => {
3254
3265
  (async () => {
3255
- const n = fa(e);
3266
+ const n = ga(e);
3256
3267
  l(n.email);
3257
3268
  })();
3258
3269
  }, [e]), /* @__PURE__ */ t.jsx(
3259
3270
  "div",
3260
3271
  {
3261
- className: S.userInfo,
3272
+ className: C.userInfo,
3262
3273
  onClick: () => i("/customer-dash"),
3263
3274
  children: /* @__PURE__ */ t.jsx("div", { children: c || "test-email@gmail.com" })
3264
3275
  }
3265
3276
  );
3266
3277
  }, va = ({
3267
- children: u,
3278
+ children: d,
3268
3279
  logo: a,
3269
3280
  setIsOpen: e,
3270
3281
  signUp: s
3271
3282
  }) => {
3272
- const { setIsOpen: i } = Ut(), c = () => {
3283
+ const { setIsOpen: i } = Dt(), c = () => {
3273
3284
  i(!1), setTimeout(() => {
3274
3285
  e(!1), i(!0);
3275
3286
  }, 300);
@@ -3277,10 +3288,10 @@ const sc = (u) => {
3277
3288
  return /* @__PURE__ */ t.jsxs(
3278
3289
  "div",
3279
3290
  {
3280
- className: S.pagesMobileModal,
3291
+ className: C.pagesMobileModal,
3281
3292
  onClick: (l) => l.stopPropagation(),
3282
3293
  children: [
3283
- /* @__PURE__ */ t.jsxs("div", { className: S.pagesMobileModalHeader, children: [
3294
+ /* @__PURE__ */ t.jsxs("div", { className: C.pagesMobileModalHeader, children: [
3284
3295
  /* @__PURE__ */ t.jsx("div", { children: a }),
3285
3296
  /* @__PURE__ */ t.jsx(
3286
3297
  Q,
@@ -3297,17 +3308,17 @@ const sc = (u) => {
3297
3308
  }
3298
3309
  )
3299
3310
  ] }),
3300
- /* @__PURE__ */ t.jsx("div", { className: S.pagesMobileModalContent, children: u }),
3301
- /* @__PURE__ */ t.jsx("div", { className: S.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(Ft, { signUp: s }) })
3311
+ /* @__PURE__ */ t.jsx("div", { className: C.pagesMobileModalContent, children: d }),
3312
+ /* @__PURE__ */ t.jsx("div", { className: C.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(Ft, { signUp: s }) })
3302
3313
  ]
3303
3314
  }
3304
3315
  );
3305
3316
  }, nc = ({
3306
- children: u,
3317
+ children: d,
3307
3318
  logo: a,
3308
3319
  signUp: e
3309
3320
  }) => {
3310
- const [s, i] = f.useState(!1);
3321
+ const [s, i] = g.useState(!1);
3311
3322
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3312
3323
  /* @__PURE__ */ t.jsx(ja, { setIsOpenModal: i }),
3313
3324
  s && /* @__PURE__ */ t.jsx(Mt, { close: () => i(!1), children: /* @__PURE__ */ t.jsx(
@@ -3316,12 +3327,12 @@ const sc = (u) => {
3316
3327
  logo: a,
3317
3328
  setIsOpen: i,
3318
3329
  signUp: e,
3319
- children: u
3330
+ children: d
3320
3331
  }
3321
3332
  ) })
3322
3333
  ] });
3323
- }, ja = (u) => {
3324
- const { setIsOpenModal: a } = u;
3334
+ }, ja = (d) => {
3335
+ const { setIsOpenModal: a } = d;
3325
3336
  return /* @__PURE__ */ t.jsx(
3326
3337
  Q,
3327
3338
  {
@@ -3341,20 +3352,20 @@ const sc = (u) => {
3341
3352
  )
3342
3353
  }
3343
3354
  );
3344
- }, ya = "_share_xddz7_1", ka = "_modal_xddz7_8", $a = "_header_xddz7_20", Ia = "_socials_xddz7_30", Na = "_social_xddz7_30", wa = "_copy_xddz7_40", Ca = "_title_xddz7_47", Sa = "_copyWrapper_xddz7_53", Ba = "_copyText_xddz7_62", Ta = "_copyTextMobile_xddz7_75", Pa = "_copyTextMiniMobile_xddz7_94", lt = {
3355
+ }, ya = "_share_xddz7_1", ka = "_modal_xddz7_8", $a = "_header_xddz7_20", Ia = "_socials_xddz7_30", wa = "_social_xddz7_30", Na = "_copy_xddz7_40", Ca = "_title_xddz7_47", Sa = "_copyWrapper_xddz7_53", Ba = "_copyText_xddz7_62", Ta = "_copyTextMobile_xddz7_75", Pa = "_copyTextMiniMobile_xddz7_94", lt = {
3345
3356
  share: ya,
3346
3357
  modal: ka,
3347
3358
  header: $a,
3348
3359
  socials: Ia,
3349
- social: Na,
3350
- copy: wa,
3360
+ social: wa,
3361
+ copy: Na,
3351
3362
  title: Ca,
3352
3363
  copyWrapper: Sa,
3353
3364
  copyText: Ba,
3354
3365
  copyTextMobile: Ta,
3355
3366
  copyTextMiniMobile: Pa
3356
3367
  }, ic = () => {
3357
- const { isOpenModal: u, setIsOpenModal: a } = Ht();
3368
+ const { isOpenModal: d, setIsOpenModal: a } = Lt();
3358
3369
  function e() {
3359
3370
  a(!0);
3360
3371
  }
@@ -3377,10 +3388,10 @@ const sc = (u) => {
3377
3388
  )
3378
3389
  }
3379
3390
  ),
3380
- u && /* @__PURE__ */ t.jsx(Mt, { close: a, children: /* @__PURE__ */ t.jsx(Aa, {}) })
3391
+ d && /* @__PURE__ */ t.jsx(Mt, { close: a, children: /* @__PURE__ */ t.jsx(Aa, {}) })
3381
3392
  ] });
3382
3393
  }, Aa = () => {
3383
- const { setIsOpenModal: u } = Ht(), { notification: a, setNotification: e } = Gt(), { setIsOpen: s } = Ut(), i = window.location.href;
3394
+ const { setIsOpenModal: d } = Lt(), { notification: a, setNotification: e } = Gt(), { setIsOpen: s } = Dt(), i = window.location.href;
3384
3395
  function c() {
3385
3396
  navigator.clipboard.writeText(i), e({
3386
3397
  message: "Link copied to clipboard",
@@ -3389,11 +3400,11 @@ const sc = (u) => {
3389
3400
  }
3390
3401
  function l() {
3391
3402
  s(!1), setTimeout(() => {
3392
- u(!1), s(!0);
3403
+ d(!1), s(!0);
3393
3404
  }, 300);
3394
3405
  }
3395
- function o(n, d) {
3396
- return n.length > d ? n.slice(0, d) + "..." : n;
3406
+ function o(n, m) {
3407
+ return n.length > m ? n.slice(0, m) + "..." : n;
3397
3408
  }
3398
3409
  return /* @__PURE__ */ t.jsxs(
3399
3410
  "div",
@@ -3441,27 +3452,27 @@ const sc = (u) => {
3441
3452
  ]
3442
3453
  }
3443
3454
  );
3444
- }, Oa = "_accordion_1s1lq_1", Ma = "_header_1s1lq_9", qa = "_icon_1s1lq_18", Ea = "_open_1s1lq_21", Da = "_content_1s1lq_25", gt = {
3455
+ }, Oa = "_accordion_1s1lq_1", Ma = "_header_1s1lq_9", qa = "_icon_1s1lq_18", Ea = "_open_1s1lq_21", Ua = "_content_1s1lq_25", ft = {
3445
3456
  accordion: Oa,
3446
3457
  header: Ma,
3447
3458
  icon: qa,
3448
3459
  open: Ea,
3449
- content: Da
3450
- }, oc = ({ title: u, content: a, defaultOpen: e = !1 }) => {
3451
- const [s, i] = f.useState(e), [c, l] = f.useState(0), o = f.useRef(null), n = () => {
3460
+ content: Ua
3461
+ }, oc = ({ title: d, content: a, defaultOpen: e = !1 }) => {
3462
+ const [s, i] = g.useState(e), [c, l] = g.useState(0), o = g.useRef(null), n = () => {
3452
3463
  i(!s);
3453
3464
  };
3454
- return f.useEffect(() => {
3465
+ return g.useEffect(() => {
3455
3466
  o.current && l(s ? o.current.scrollHeight : 0);
3456
- }, [s]), /* @__PURE__ */ t.jsxs("div", { className: gt.accordion, children: [
3467
+ }, [s]), /* @__PURE__ */ t.jsxs("div", { className: ft.accordion, children: [
3457
3468
  /* @__PURE__ */ t.jsxs(
3458
3469
  "div",
3459
3470
  {
3460
- className: gt.header,
3471
+ className: ft.header,
3461
3472
  onClick: n,
3462
3473
  children: [
3463
- /* @__PURE__ */ t.jsx("h5", { id: "h5", children: u }),
3464
- /* @__PURE__ */ t.jsx("div", { className: Y(gt.icon, { [gt.open]: s }), children: /* @__PURE__ */ t.jsx(b, { name: "CaretDown" }) })
3474
+ /* @__PURE__ */ t.jsx("h5", { id: "h5", children: d }),
3475
+ /* @__PURE__ */ t.jsx("div", { className: Y(ft.icon, { [ft.open]: s }), children: /* @__PURE__ */ t.jsx(b, { name: "CaretDown" }) })
3465
3476
  ]
3466
3477
  }
3467
3478
  ),
@@ -3469,13 +3480,13 @@ const sc = (u) => {
3469
3480
  "div",
3470
3481
  {
3471
3482
  ref: o,
3472
- className: gt.content,
3483
+ className: ft.content,
3473
3484
  style: { height: `${c}px` },
3474
3485
  children: /* @__PURE__ */ t.jsx("p", { id: "p", children: a })
3475
3486
  }
3476
3487
  )
3477
3488
  ] });
3478
- }, ac = ({ children: u, path: a, className: e, target: s = "_self", id: i }) => {
3489
+ }, ac = ({ children: d, path: a, className: e, target: s = "_self", id: i }) => {
3479
3490
  const c = Bt(), l = /^https?:\/\//.test(a), o = (n) => {
3480
3491
  l || s === "_blank" ? s === "_blank" ? window.open(a, "_blank") : window.location.href = a : (n.preventDefault(), c(a, { replace: !0 }));
3481
3492
  };
@@ -3487,13 +3498,13 @@ const sc = (u) => {
3487
3498
  role: "link",
3488
3499
  style: { cursor: "pointer" },
3489
3500
  id: i,
3490
- children: u
3501
+ children: d
3491
3502
  }
3492
3503
  );
3493
- }, Ua = "_buttonsBlock_1b2rb_1", Ha = "_slideUp_1b2rb_1", Ra = {
3494
- buttonsBlock: Ua,
3495
- slideUp: Ha
3496
- }, cc = () => /* @__PURE__ */ t.jsxs("div", { className: Ra.buttonsBlock, children: [
3504
+ }, Da = "_buttonsBlock_1b2rb_1", La = "_slideUp_1b2rb_1", Ha = {
3505
+ buttonsBlock: Da,
3506
+ slideUp: La
3507
+ }, cc = () => /* @__PURE__ */ t.jsxs("div", { className: Ha.buttonsBlock, children: [
3497
3508
  /* @__PURE__ */ t.jsx(
3498
3509
  Q,
3499
3510
  {
@@ -3501,20 +3512,17 @@ const sc = (u) => {
3501
3512
  style: {
3502
3513
  width: "100%"
3503
3514
  },
3504
- onClick: () => {
3505
- console.log("add to cart");
3506
- },
3507
3515
  children: "Add to Cart"
3508
3516
  }
3509
3517
  ),
3510
3518
  /* @__PURE__ */ t.jsx(Q, { type: "Secondary", children: "Buy" })
3511
- ] }), La = "_wrapper_st58d_1", za = "_label_st58d_10", Fa = "_textarea_st58d_18", Va = "_length_st58d_33", jt = {
3512
- wrapper: La,
3519
+ ] }), Ra = "_wrapper_st58d_1", za = "_label_st58d_10", Fa = "_textarea_st58d_18", Va = "_length_st58d_33", jt = {
3520
+ wrapper: Ra,
3513
3521
  label: za,
3514
3522
  textarea: Fa,
3515
3523
  length: Va
3516
- }, lc = (u) => {
3517
- const { onChange: a, label: e, value: s, maxLength: i, placeholder: c = "Type something..." } = u, [l, o] = f.useState(s.length);
3524
+ }, lc = (d) => {
3525
+ const { onChange: a, label: e, value: s, maxLength: i, placeholder: c = "Type something..." } = d, [l, o] = g.useState(s.length);
3518
3526
  return /* @__PURE__ */ t.jsxs("div", { className: jt.wrapper, children: [
3519
3527
  e && /* @__PURE__ */ t.jsx(
3520
3528
  "label",
@@ -3563,7 +3571,7 @@ export {
3563
3571
  Wa as LayoutSettings,
3564
3572
  ac as Link,
3565
3573
  tc as ListingSelector,
3566
- _c as Loader,
3574
+ mc as Loader,
3567
3575
  Mt as Modal,
3568
3576
  nc as PagesMobileMenu,
3569
3577
  va as PagesMobileModal,
@@ -3573,12 +3581,12 @@ export {
3573
3581
  qt as RangeSelector,
3574
3582
  et as Select,
3575
3583
  ic as ShareLink,
3576
- ga as ShoppingButton,
3584
+ fa as ShoppingButton,
3577
3585
  xa as ShoppingModalCart,
3578
3586
  st as Switch,
3579
- Lt as TextSettings,
3587
+ Rt as TextSettings,
3580
3588
  Et as TextareaSettings,
3581
3589
  lc as TextareaUI,
3582
- Rt as TypesText,
3590
+ Ht as TypesText,
3583
3591
  Ft as UserInfo
3584
3592
  };