@billgangcom/theme-lib 1.25.0 → 1.26.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,5 +1,5 @@
1
- import { j as t, c as D, I as p, a as G, S as V, T as dt, C as ot, b as W, D as ut, H as _t, B as X, v as et, u as mt, d as pt, e as at, f as lt, M as ht, g as gt } from "./index-BI8lyvsO.js";
2
- import { l as di, m as ui, i as _i, E as mi, L as pi, P as hi, R as gi, h as xi, k as fi } from "./index-BI8lyvsO.js";
1
+ import { j as t, c as D, I as p, a as G, S as H, T as dt, C as it, b as W, D as ut, H as _t, B as X, v as et, u as mt, d as pt, e as at, f as lt, M as ht, g as gt } from "./index-CeRgFjoD.js";
2
+ import { l as dc, m as uc, i as _c, E as mc, L as pc, P as hc, R as gc, h as xc, k as fc } from "./index-CeRgFjoD.js";
3
3
  import f from "react";
4
4
  const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18", yt = "_open_9e4oa_21", Nt = "_content_9e4oa_25", K = {
5
5
  accordion: jt,
@@ -7,9 +7,9 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
7
7
  icon: kt,
8
8
  open: yt,
9
9
  content: Nt
10
- }, ei = ({ title: d, content: n }) => {
11
- const [e, c] = f.useState(!1), [i, l] = f.useState(0), s = f.useRef(null), o = () => {
12
- c(!e);
10
+ }, ec = ({ title: d, content: n }) => {
11
+ const [e, o] = f.useState(!1), [c, l] = f.useState(0), s = f.useRef(null), i = () => {
12
+ o(!e);
13
13
  };
14
14
  return f.useEffect(() => {
15
15
  s.current && l(e ? s.current.scrollHeight : 0);
@@ -18,7 +18,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
18
18
  "div",
19
19
  {
20
20
  className: K.header,
21
- onClick: o,
21
+ onClick: i,
22
22
  children: [
23
23
  /* @__PURE__ */ t.jsx("h3", { children: d }),
24
24
  /* @__PURE__ */ t.jsx("div", { className: D(K.icon, { [K.open]: e }), children: /* @__PURE__ */ t.jsx(p, { name: "CaretDown" }) })
@@ -30,19 +30,19 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
30
30
  {
31
31
  ref: s,
32
32
  className: K.content,
33
- style: { height: `${i}px` },
33
+ style: { height: `${c}px` },
34
34
  children: /* @__PURE__ */ t.jsx("p", { children: n })
35
35
  }
36
36
  )
37
37
  ] });
38
- }, $t = "_wrapper_9rr5j_2", Ct = "_alignmentBlock_9rr5j_8", It = "_title_9rr5j_15", Pt = "_subtitle_9rr5j_22", Tt = "_alignmentContent_9rr5j_29", Bt = "_alignments_9rr5j_37", wt = "_alignment_9rr5j_8", St = "_circle_9rr5j_58", qt = "_paddings_9rr5j_65", At = "_padding_9rr5j_65", Ot = "_input_9rr5j_84", O = {
38
+ }, $t = "_wrapper_9rr5j_2", Ct = "_alignmentBlock_9rr5j_8", It = "_title_9rr5j_15", Pt = "_subtitle_9rr5j_22", Tt = "_alignmentContent_9rr5j_29", wt = "_alignments_9rr5j_37", Bt = "_alignment_9rr5j_8", St = "_circle_9rr5j_58", qt = "_paddings_9rr5j_65", At = "_padding_9rr5j_65", Ot = "_input_9rr5j_84", O = {
39
39
  wrapper: $t,
40
40
  alignmentBlock: Ct,
41
41
  title: It,
42
42
  subtitle: Pt,
43
43
  alignmentContent: Tt,
44
- alignments: Bt,
45
- alignment: wt,
44
+ alignments: wt,
45
+ alignment: Bt,
46
46
  circle: St,
47
47
  paddings: qt,
48
48
  padding: At,
@@ -57,8 +57,8 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
57
57
  "bottomLeft",
58
58
  "bottom",
59
59
  "bottomRight"
60
- ], Dt = ["left", "top", "right", "bottom"], si = (d) => {
61
- const { alignment: n, padding: e, setPadding: c, setAlignment: i } = d;
60
+ ], Dt = ["left", "top", "right", "bottom"], sc = (d) => {
61
+ const { alignment: n, padding: e, setPadding: o, setAlignment: c } = d;
62
62
  function l() {
63
63
  switch (n) {
64
64
  case "left":
@@ -77,8 +77,8 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
77
77
  return "TextAlignCenter";
78
78
  }
79
79
  }
80
- function s(o) {
81
- switch (o) {
80
+ function s(i) {
81
+ switch (i) {
82
82
  case "left":
83
83
  return "AlignLeft";
84
84
  case "right":
@@ -94,16 +94,16 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
94
94
  /* @__PURE__ */ t.jsxs("div", { className: O.alignmentBlock, children: [
95
95
  /* @__PURE__ */ t.jsx("h5", { className: O.subtitle, children: "Alignment" }),
96
96
  /* @__PURE__ */ t.jsxs("div", { className: O.alignmentContent, children: [
97
- /* @__PURE__ */ t.jsx("div", { className: O.alignments, children: Lt.map((o) => /* @__PURE__ */ t.jsxs(
97
+ /* @__PURE__ */ t.jsx("div", { className: O.alignments, children: Lt.map((i) => /* @__PURE__ */ t.jsxs(
98
98
  "div",
99
99
  {
100
100
  onClick: () => {
101
- i(o);
101
+ c(i);
102
102
  },
103
103
  className: O.alignment,
104
104
  children: [
105
- o !== n && /* @__PURE__ */ t.jsx("div", { className: O.circle }),
106
- o === n && /* @__PURE__ */ t.jsx(
105
+ i !== n && /* @__PURE__ */ t.jsx("div", { className: O.circle }),
106
+ i === n && /* @__PURE__ */ t.jsx(
107
107
  p,
108
108
  {
109
109
  name: l(),
@@ -114,9 +114,9 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
114
114
  )
115
115
  ]
116
116
  },
117
- o
117
+ i
118
118
  )) }),
119
- /* @__PURE__ */ t.jsx("div", { className: O.paddings, children: Dt.map((o) => /* @__PURE__ */ t.jsxs(
119
+ /* @__PURE__ */ t.jsx("div", { className: O.paddings, children: Dt.map((i) => /* @__PURE__ */ t.jsxs(
120
120
  "label",
121
121
  {
122
122
  className: O.padding,
@@ -124,7 +124,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
124
124
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
125
125
  p,
126
126
  {
127
- name: s(o),
127
+ name: s(i),
128
128
  width: 20,
129
129
  height: 20
130
130
  }
@@ -133,10 +133,10 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
133
133
  G,
134
134
  {
135
135
  type: "text",
136
- value: String(e[o]),
137
- onChange: (m) => c({
136
+ value: String(e[i]),
137
+ onChange: (m) => o({
138
138
  ...e,
139
- [o]: Number(m)
139
+ [i]: Number(m)
140
140
  }),
141
141
  paddingless: !0,
142
142
  borderless: !0
@@ -144,25 +144,25 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
144
144
  )
145
145
  ]
146
146
  },
147
- o
147
+ i
148
148
  )) })
149
149
  ] })
150
150
  ] })
151
151
  ] });
152
- }, Et = "_subtitle_1qrz9_1", Mt = "_header_1qrz9_8", Rt = "_text_1qrz9_9", Ht = "_top_1qrz9_17", Vt = "_itemsBlock_1qrz9_26", Z = {
153
- subtitle: Et,
154
- header: Mt,
155
- text: Rt,
156
- top: Ht,
157
- itemsBlock: Vt
158
- }, Ft = "_typeTexts_rcw8p_1", Ut = "_block_rcw8p_8", zt = "_active_rcw8p_21", it = {
159
- typeTexts: Ft,
160
- block: Ut,
161
- active: zt
152
+ }, zt = "_subtitle_1qrz9_1", Et = "_header_1qrz9_8", Mt = "_text_1qrz9_9", Rt = "_top_1qrz9_17", Ht = "_itemsBlock_1qrz9_26", Z = {
153
+ subtitle: zt,
154
+ header: Et,
155
+ text: Mt,
156
+ top: Rt,
157
+ itemsBlock: Ht
158
+ }, Vt = "_typeTexts_rcw8p_1", Ft = "_block_rcw8p_8", Ut = "_active_rcw8p_21", ct = {
159
+ typeTexts: Vt,
160
+ block: Ft,
161
+ active: Ut
162
162
  }, Gt = ["bold", "italic", "underline", "strike-through", "code"], xt = (d) => {
163
163
  const { typesText: n, setTypesText: e } = d;
164
- function c(i) {
165
- switch (i) {
164
+ function o(c) {
165
+ switch (c) {
166
166
  case "bold":
167
167
  return "TextB";
168
168
  case "italic":
@@ -175,51 +175,51 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
175
175
  return "TextUnderline";
176
176
  }
177
177
  }
178
- return /* @__PURE__ */ t.jsx("div", { className: it.typeTexts, children: Gt.map((i) => /* @__PURE__ */ t.jsx(
178
+ return /* @__PURE__ */ t.jsx("div", { className: ct.typeTexts, children: Gt.map((c) => /* @__PURE__ */ t.jsx(
179
179
  "div",
180
180
  {
181
- className: D(it.block, {
182
- [it.active]: n.includes(i)
181
+ className: D(ct.block, {
182
+ [ct.active]: n.includes(c)
183
183
  }),
184
184
  onClick: () => {
185
185
  const l = [...n];
186
- if (l.includes(i)) {
187
- const s = l.filter((o) => o !== i);
186
+ if (l.includes(c)) {
187
+ const s = l.filter((i) => i !== c);
188
188
  e(s);
189
189
  } else
190
- l.push(i), e(l);
190
+ l.push(c), e(l);
191
191
  },
192
192
  children: /* @__PURE__ */ t.jsx(
193
193
  p,
194
194
  {
195
- name: c(i),
196
- fill: n.includes(i) ? "#252525" : "#757575",
195
+ name: o(c),
196
+ fill: n.includes(c) ? "#252525" : "#757575",
197
197
  width: 20,
198
198
  height: 20
199
199
  }
200
200
  )
201
201
  },
202
- String(i)
202
+ String(c)
203
203
  )) });
204
204
  }, Wt = (d) => {
205
205
  const {
206
206
  typesText: n,
207
207
  isActiveText: e,
208
- setIsActiveText: c,
209
- text: i,
208
+ setIsActiveText: o,
209
+ text: c,
210
210
  setText: l,
211
211
  setTypesText: s,
212
- title: o,
212
+ title: i,
213
213
  subtitle: m = "Items"
214
214
  } = d;
215
215
  return /* @__PURE__ */ t.jsxs("div", { className: Z.text, children: [
216
- (o || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Z.top, children: [
217
- o && /* @__PURE__ */ t.jsx("h3", { className: Z.title, children: o }),
218
- e !== void 0 && c && /* @__PURE__ */ t.jsx(
219
- V,
216
+ (i || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Z.top, children: [
217
+ i && /* @__PURE__ */ t.jsx("h3", { className: Z.title, children: i }),
218
+ e !== void 0 && o && /* @__PURE__ */ t.jsx(
219
+ H,
220
220
  {
221
221
  current: e,
222
- onChange: (v) => c(v)
222
+ onChange: (v) => o(v)
223
223
  }
224
224
  )
225
225
  ] }),
@@ -229,7 +229,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
229
229
  dt,
230
230
  {
231
231
  onChange: (v) => l(v),
232
- value: i,
232
+ value: c,
233
233
  maxLength: 150
234
234
  }
235
235
  ),
@@ -242,7 +242,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
242
242
  )
243
243
  ] })
244
244
  ] });
245
- }, Xt = "_subtitle_cuny2_1", Yt = "_header_cuny2_8", Qt = "_text_cuny2_9", Jt = "_productsBlock_cuny2_10", Kt = "_top_cuny2_22", Zt = "_itemsBlock_cuny2_31", te = "_typeTexts_cuny2_37", ee = "_block_cuny2_44", se = "_active_cuny2_57", ne = "_products_cuny2_10", ie = "_product_cuny2_10", ce = "_button_cuny2_76", oe = "_disabled_cuny2_87", ae = "_image_cuny2_91", le = "_info_cuny2_98", re = "_name_cuny2_110", de = "_buttons_cuny2_114", ue = "_modal_cuny2_121", _e = "_link_cuny2_141", me = "_modalOptions_cuny2_147", P = {
245
+ }, Xt = "_subtitle_cuny2_1", Yt = "_header_cuny2_8", Qt = "_text_cuny2_9", Jt = "_productsBlock_cuny2_10", Kt = "_top_cuny2_22", Zt = "_itemsBlock_cuny2_31", te = "_typeTexts_cuny2_37", ee = "_block_cuny2_44", se = "_active_cuny2_57", ne = "_products_cuny2_10", ce = "_product_cuny2_10", oe = "_button_cuny2_76", ie = "_disabled_cuny2_87", ae = "_image_cuny2_91", le = "_info_cuny2_98", re = "_name_cuny2_110", de = "_buttons_cuny2_114", ue = "_modal_cuny2_121", _e = "_link_cuny2_141", me = "_modalOptions_cuny2_147", P = {
246
246
  subtitle: Xt,
247
247
  header: Yt,
248
248
  text: Qt,
@@ -253,9 +253,9 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
253
253
  block: ee,
254
254
  active: se,
255
255
  products: ne,
256
- product: ie,
257
- button: ce,
258
- disabled: oe,
256
+ product: ce,
257
+ button: oe,
258
+ disabled: ie,
259
259
  image: ae,
260
260
  info: le,
261
261
  name: re,
@@ -264,7 +264,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
264
264
  link: _e,
265
265
  modalOptions: me
266
266
  }, pe = (d) => {
267
- const { activeItem: n, setActiveItem: e, popupPosition: c, modalOptions: i, setIsOpenModal: l } = d;
267
+ const { activeItem: n, setActiveItem: e, popupPosition: o, modalOptions: c, setIsOpenModal: l } = d;
268
268
  return /* @__PURE__ */ t.jsxs(
269
269
  "div",
270
270
  {
@@ -273,8 +273,8 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
273
273
  s.stopPropagation();
274
274
  },
275
275
  style: {
276
- top: `${c.top}px`,
277
- left: `${c.left}px`
276
+ top: `${o.top}px`,
277
+ left: `${o.left}px`
278
278
  },
279
279
  children: [
280
280
  /* @__PURE__ */ t.jsxs("div", { className: P.top, children: [
@@ -292,16 +292,16 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
292
292
  }
293
293
  )
294
294
  ] }),
295
- /* @__PURE__ */ t.jsx("div", { className: P.modalOptions, children: i.map((s) => {
295
+ /* @__PURE__ */ t.jsx("div", { className: P.modalOptions, children: c.map((s) => {
296
296
  if (s.type === "image")
297
297
  return /* @__PURE__ */ t.jsx(
298
- ot,
298
+ it,
299
299
  {
300
300
  label: "Put up an attractive image",
301
- onChange: (o) => {
301
+ onChange: (i) => {
302
302
  const m = {
303
303
  ...n,
304
- [s.field]: o
304
+ [s.field]: i
305
305
  };
306
306
  e(m);
307
307
  }
@@ -313,18 +313,18 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
313
313
  Wt,
314
314
  {
315
315
  typesText: n[s.field.type],
316
- setTypesText: (o) => {
316
+ setTypesText: (i) => {
317
317
  const m = {
318
318
  ...n,
319
- [s.field.type]: o
319
+ [s.field.type]: i
320
320
  };
321
321
  e(m);
322
322
  },
323
323
  text: n[s.field.text] || "",
324
- setText: (o) => {
324
+ setText: (i) => {
325
325
  const m = {
326
326
  ...n,
327
- [s.field.text]: o
327
+ [s.field.text]: i
328
328
  };
329
329
  e(m);
330
330
  },
@@ -335,10 +335,10 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
335
335
  return /* @__PURE__ */ t.jsx(
336
336
  G,
337
337
  {
338
- onChange: (o) => {
338
+ onChange: (i) => {
339
339
  const m = {
340
340
  ...n,
341
- [s.field]: o
341
+ [s.field]: i
342
342
  };
343
343
  e(m);
344
344
  },
@@ -352,10 +352,10 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
352
352
  /* @__PURE__ */ t.jsx(
353
353
  G,
354
354
  {
355
- onChange: (o) => {
355
+ onChange: (i) => {
356
356
  const m = {
357
357
  ...n,
358
- [s.field.text]: o
358
+ [s.field.text]: i
359
359
  };
360
360
  e(m);
361
361
  },
@@ -365,14 +365,14 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
365
365
  }
366
366
  ),
367
367
  /* @__PURE__ */ t.jsx(
368
- V,
368
+ H,
369
369
  {
370
370
  current: !!n[s.field.switch] || !1,
371
371
  label: s.switchLabel,
372
- onChange: (o) => {
372
+ onChange: (i) => {
373
373
  const m = {
374
374
  ...n,
375
- [s.field.switch]: o
375
+ [s.field.switch]: i
376
376
  };
377
377
  e(m);
378
378
  }
@@ -384,10 +384,10 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
384
384
  be,
385
385
  {
386
386
  items: n[s.field] || [],
387
- setItems: (o) => {
387
+ setItems: (i) => {
388
388
  const m = {
389
389
  ...n,
390
- [s.field]: o
390
+ [s.field]: i
391
391
  };
392
392
  e(m);
393
393
  },
@@ -404,10 +404,10 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
404
404
  W,
405
405
  {
406
406
  options: s.itemsOptions,
407
- onChange: (o) => {
407
+ onChange: (i) => {
408
408
  const m = {
409
409
  ...n,
410
- [s.field]: o
410
+ [s.field]: i
411
411
  };
412
412
  e(m);
413
413
  },
@@ -420,56 +420,56 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
420
420
  ]
421
421
  }
422
422
  );
423
- }, he = "_other_g74jx_1", ge = "_subtitle_g74jx_7", xe = "_items_g74jx_14", ct = {
423
+ }, he = "_other_g74jx_1", ge = "_subtitle_g74jx_7", xe = "_items_g74jx_14", ot = {
424
424
  other: he,
425
425
  subtitle: ge,
426
426
  items: xe
427
427
  }, ft = (d) => {
428
428
  const { items: n, title: e = "Other" } = d;
429
- return /* @__PURE__ */ t.jsxs("div", { className: ct.other, children: [
430
- /* @__PURE__ */ t.jsx("h5", { className: ct.subtitle, children: e }),
431
- /* @__PURE__ */ t.jsx("div", { className: ct.items, children: n.map((c, i) => /* @__PURE__ */ t.jsx(
432
- V,
429
+ return /* @__PURE__ */ t.jsxs("div", { className: ot.other, children: [
430
+ /* @__PURE__ */ t.jsx("h5", { className: ot.subtitle, children: e }),
431
+ /* @__PURE__ */ t.jsx("div", { className: ot.items, children: n.map((o, c) => /* @__PURE__ */ t.jsx(
432
+ H,
433
433
  {
434
- current: c.isItem,
435
- onChange: (l) => c.setIsItem(l),
436
- label: c.label,
434
+ current: o.isItem,
435
+ onChange: (l) => o.setIsItem(l),
436
+ label: o.label,
437
437
  hasBackground: !0,
438
438
  paddingless: !1
439
439
  },
440
- i
440
+ c
441
441
  )) })
442
442
  ] });
443
443
  }, fe = (d) => {
444
- const { index: n, moveProduct: e, children: c } = d, [, i] = mt({
444
+ const { index: n, moveProduct: e, children: o } = d, [, c] = mt({
445
445
  accept: "product",
446
- hover(o) {
447
- o.index !== n && (e(o.index, n), o.index = n);
446
+ hover(i) {
447
+ i.index !== n && (e(i.index, n), i.index = n);
448
448
  }
449
449
  }), [{ isDragging: l }, s] = pt({
450
450
  type: "product",
451
451
  item: { index: n },
452
- collect: (o) => ({
453
- isDragging: o.isDragging()
452
+ collect: (i) => ({
453
+ isDragging: i.isDragging()
454
454
  })
455
455
  });
456
456
  return /* @__PURE__ */ t.jsx(
457
457
  "div",
458
458
  {
459
- ref: (o) => s(i(o)),
459
+ ref: (i) => s(c(i)),
460
460
  className: `${P.product} ${l ? P.dragging : ""}`,
461
- children: c
461
+ children: o
462
462
  }
463
463
  );
464
464
  }, be = (d) => {
465
465
  const {
466
466
  isActiveItems: n,
467
467
  setIsActiveItems: e,
468
- items: c,
469
- setItems: i,
468
+ items: o,
469
+ setItems: c,
470
470
  other: l,
471
471
  title: s,
472
- subtitle: o,
472
+ subtitle: i,
473
473
  editable: m = !0,
474
474
  draggable: v = !1,
475
475
  withImage: u = !1,
@@ -478,41 +478,41 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
478
478
  itemsType: $,
479
479
  itemsPlaceholder: b = "",
480
480
  itemsOptions: r,
481
- hasRangeSelector: w = !1,
481
+ hasRangeSelector: B = !1,
482
482
  rangeSelectorOptions: Y,
483
483
  modalOptions: Q,
484
- addableOptions: F = {},
484
+ addableOptions: V = {},
485
485
  limit: y
486
- } = d, [M, R] = f.useState(null), [nt, st] = f.useState({
486
+ } = d, [E, M] = f.useState(null), [nt, st] = f.useState({
487
487
  top: 0,
488
488
  left: 0
489
489
  }), [g, k] = f.useState(!1), S = (_, T) => {
490
- const q = [...c], [N] = q.splice(_, 1);
491
- q.splice(T, 0, N), i(q);
490
+ const q = [...o], [N] = q.splice(_, 1);
491
+ q.splice(T, 0, N), c(q);
492
492
  };
493
493
  f.useEffect(() => {
494
494
  const _ = () => {
495
- R(null), k(!1);
495
+ M(null), k(!1);
496
496
  };
497
- return document.body.addEventListener("click", _), R(null), k(!1), () => {
498
- R(null), k(!1), document.body.removeEventListener("click", _);
497
+ return document.body.addEventListener("click", _), M(null), k(!1), () => {
498
+ M(null), k(!1), document.body.removeEventListener("click", _);
499
499
  };
500
500
  }, []), f.useEffect(() => {
501
- if (M) {
502
- const _ = [...c].map((T) => T.id === M.id ? M : T);
503
- i(_);
501
+ if (E) {
502
+ const _ = [...o].map((T) => T.id === E.id ? E : T);
503
+ c(_);
504
504
  }
505
- }, [M]);
505
+ }, [E]);
506
506
  const C = (_, T) => {
507
507
  _.stopPropagation(), k(!0);
508
508
  const q = _.target.getBoundingClientRect(), N = 500, J = window.innerHeight;
509
- let E = q.top + window.scrollY;
510
- E + N > J && (E = J - N - 20), st({
511
- top: E - 80,
509
+ let z = q.top + window.scrollY;
510
+ z + N > J && (z = J - N - 20), st({
511
+ top: z - 80,
512
512
  left: q.left - 30
513
- }), R(T);
513
+ }), M(T);
514
514
  };
515
- function U(_) {
515
+ function F(_) {
516
516
  if (u)
517
517
  return _ ? /* @__PURE__ */ t.jsx(
518
518
  "img",
@@ -547,43 +547,43 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
547
547
  W,
548
548
  {
549
549
  onChange: (N) => {
550
- const E = [...c].map((H) => H.id === _.id ? {
550
+ const z = [...o].map((R) => R.id === _.id ? {
551
551
  ..._,
552
552
  name: N
553
- } : H);
554
- R({
553
+ } : R);
554
+ M({
555
555
  ..._,
556
556
  name: N
557
- }), i([...E]);
557
+ }), c([...z]);
558
558
  },
559
559
  value: _.name,
560
560
  options: r,
561
- leftAddon: U(_.images)
561
+ leftAddon: F(_.images)
562
562
  }
563
563
  ),
564
564
  $ === "input" && /* @__PURE__ */ t.jsx(
565
565
  G,
566
566
  {
567
567
  onChange: (N) => {
568
- const E = [...c].map((H) => H.id === _.id ? {
568
+ const z = [...o].map((R) => R.id === _.id ? {
569
569
  ..._,
570
570
  name: N
571
- } : H);
572
- i([...E]);
571
+ } : R);
572
+ c([...z]);
573
573
  },
574
574
  value: _.name,
575
575
  placeholder: b
576
576
  }
577
577
  ),
578
578
  $ === "image" && /* @__PURE__ */ t.jsx(
579
- ot,
579
+ it,
580
580
  {
581
581
  onChange: (N) => {
582
- const E = [...c].map((H) => H.id === _.id ? {
582
+ const z = [...o].map((R) => R.id === _.id ? {
583
583
  ..._,
584
584
  images: N
585
- } : H);
586
- i([...E]);
585
+ } : R);
586
+ c([...z]);
587
587
  }
588
588
  }
589
589
  ),
@@ -606,7 +606,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
606
606
  width: 20,
607
607
  height: 20,
608
608
  fill: "#C12A2A",
609
- onClick: () => i(c.filter((N) => N.id !== _.id))
609
+ onClick: () => c(o.filter((N) => N.id !== _.id))
610
610
  }
611
611
  )
612
612
  ] })
@@ -633,50 +633,50 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
633
633
  (s || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: P.top, children: [
634
634
  s && /* @__PURE__ */ t.jsx("h3", { className: P.title, children: s }),
635
635
  n !== void 0 && /* @__PURE__ */ t.jsx(
636
- V,
636
+ H,
637
637
  {
638
638
  current: n,
639
639
  onChange: (_) => e == null ? void 0 : e(_)
640
640
  }
641
641
  )
642
642
  ] }),
643
- M && m && Q && g && /* @__PURE__ */ t.jsx(
643
+ E && m && Q && g && /* @__PURE__ */ t.jsx(
644
644
  pe,
645
645
  {
646
- activeItem: M,
647
- setActiveItem: R,
646
+ activeItem: E,
647
+ setActiveItem: M,
648
648
  popupPosition: nt,
649
649
  modalOptions: Q,
650
650
  setIsOpenModal: k
651
651
  }
652
652
  ),
653
- w && Y && /* @__PURE__ */ t.jsx(ks, { ...Y }),
653
+ B && Y && /* @__PURE__ */ t.jsx(ks, { ...Y }),
654
654
  /* @__PURE__ */ t.jsxs("div", { className: P.products, children: [
655
- o && /* @__PURE__ */ t.jsx("h5", { className: P.subtitle, children: o }),
656
- v ? /* @__PURE__ */ t.jsx(ut, { backend: _t, children: c.map((_, T) => A(_, T)) }) : c.map((_, T) => A(_, T)),
655
+ i && /* @__PURE__ */ t.jsx("h5", { className: P.subtitle, children: i }),
656
+ v ? /* @__PURE__ */ t.jsx(ut, { backend: _t, children: o.map((_, T) => A(_, T)) }) : o.map((_, T) => A(_, T)),
657
657
  h && /* @__PURE__ */ t.jsxs(
658
658
  X,
659
659
  {
660
660
  className: D(P.button, {
661
- [P.disabled]: !!(y && y <= c.length)
661
+ [P.disabled]: !!(y && y <= o.length)
662
662
  }),
663
663
  size: "s",
664
- disabled: !!(y && y <= c.length),
664
+ disabled: !!(y && y <= o.length),
665
665
  onClick: () => {
666
- const _ = [...c];
666
+ const _ = [...o];
667
667
  $ === "select" ? _.push({
668
- name: r[0] || `Product ${c.length + 1}`,
668
+ name: r[0] || `Product ${o.length + 1}`,
669
669
  id: et(),
670
- ...F
670
+ ...V
671
671
  }) : $ === "input" ? _.push({
672
672
  name: "",
673
673
  id: et(),
674
- ...F
674
+ ...V
675
675
  }) : _.push({
676
- name: `Image ${c.length + 1}`,
676
+ name: `Image ${o.length + 1}`,
677
677
  id: et(),
678
- ...F
679
- }), i(_);
678
+ ...V
679
+ }), c(_);
680
680
  },
681
681
  children: [
682
682
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
@@ -694,7 +694,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
694
694
  ] }),
695
695
  l !== void 0 && /* @__PURE__ */ t.jsx(ft, { items: l })
696
696
  ] });
697
- }, je = "_subtitle_1fb9q_1", ve = "_header_1fb9q_8", ke = "_text_1fb9q_9", ye = "_productsBlock_1fb9q_10", Ne = "_buttonsBlock_1fb9q_11", $e = "_top_1fb9q_22", Ce = "_itemsBlock_1fb9q_31", Ie = "_typeTexts_1fb9q_37", Pe = "_block_1fb9q_44", Te = "_active_1fb9q_56", Be = "_products_1fb9q_10", we = "_product_1fb9q_10", Se = "_button_1fb9q_11", qe = "_image_1fb9q_86", Ae = "_info_1fb9q_93", Oe = "_name_1fb9q_105", Le = "_buttons_1fb9q_11", De = "_modal_1fb9q_116", Ee = "_other_1fb9q_135", Me = "_options_1fb9q_141", z = {
697
+ }, je = "_subtitle_1fb9q_1", ve = "_header_1fb9q_8", ke = "_text_1fb9q_9", ye = "_productsBlock_1fb9q_10", Ne = "_buttonsBlock_1fb9q_11", $e = "_top_1fb9q_22", Ce = "_itemsBlock_1fb9q_31", Ie = "_typeTexts_1fb9q_37", Pe = "_block_1fb9q_44", Te = "_active_1fb9q_56", we = "_products_1fb9q_10", Be = "_product_1fb9q_10", Se = "_button_1fb9q_11", qe = "_image_1fb9q_86", Ae = "_info_1fb9q_93", Oe = "_name_1fb9q_105", Le = "_buttons_1fb9q_11", De = "_modal_1fb9q_116", ze = "_other_1fb9q_135", Ee = "_options_1fb9q_141", U = {
698
698
  subtitle: je,
699
699
  header: ve,
700
700
  text: ke,
@@ -705,18 +705,18 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
705
705
  typeTexts: Ie,
706
706
  block: Pe,
707
707
  active: Te,
708
- products: Be,
709
- product: we,
708
+ products: we,
709
+ product: Be,
710
710
  button: Se,
711
711
  image: qe,
712
712
  info: Ae,
713
713
  name: Oe,
714
714
  buttons: Le,
715
715
  modal: De,
716
- other: Ee,
717
- options: Me
718
- }, Re = (d) => {
719
- const { activeButton: n, setActiveButton: e, popupPosition: c } = d, [i, l] = f.useState(n.typesText), [s, o] = f.useState(n.destination), [m, v] = f.useState(n.link || ""), [u, a] = f.useState(n.text || "");
716
+ other: ze,
717
+ options: Ee
718
+ }, Me = (d) => {
719
+ const { activeButton: n, setActiveButton: e, popupPosition: o } = d, [c, l] = f.useState(n.typesText), [s, i] = f.useState(n.destination), [m, v] = f.useState(n.link || ""), [u, a] = f.useState(n.text || "");
720
720
  return f.useEffect(() => {
721
721
  e({
722
722
  ...n,
@@ -724,22 +724,22 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
724
724
  text: u,
725
725
  link: m,
726
726
  destination: s,
727
- typesText: i
727
+ typesText: c
728
728
  }
729
729
  });
730
- }, [i, s, m, u]), /* @__PURE__ */ t.jsxs(
730
+ }, [c, s, m, u]), /* @__PURE__ */ t.jsxs(
731
731
  "div",
732
732
  {
733
- className: z.modal,
733
+ className: U.modal,
734
734
  onClick: (h) => {
735
735
  h.stopPropagation();
736
736
  },
737
737
  style: {
738
- top: `${c.top}px`,
739
- left: `${c.left}px`
738
+ top: `${o.top}px`,
739
+ left: `${o.left}px`
740
740
  },
741
741
  children: [
742
- /* @__PURE__ */ t.jsxs("div", { className: z.top, children: [
742
+ /* @__PURE__ */ t.jsxs("div", { className: U.top, children: [
743
743
  /* @__PURE__ */ t.jsx("h3", { children: n.type }),
744
744
  /* @__PURE__ */ t.jsx(
745
745
  p,
@@ -752,12 +752,12 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
752
752
  }
753
753
  )
754
754
  ] }),
755
- /* @__PURE__ */ t.jsxs("div", { className: z.options, children: [
755
+ /* @__PURE__ */ t.jsxs("div", { className: U.options, children: [
756
756
  /* @__PURE__ */ t.jsx(
757
757
  W,
758
758
  {
759
759
  label: "Destination",
760
- onChange: (h) => o(h),
760
+ onChange: (h) => i(h),
761
761
  options: ["Go to Page", "Open Link"],
762
762
  value: s
763
763
  }
@@ -781,7 +781,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
781
781
  }
782
782
  ),
783
783
  /* @__PURE__ */ t.jsx(
784
- V,
784
+ H,
785
785
  {
786
786
  current: !1,
787
787
  label: "Open in new tab"
@@ -799,7 +799,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
799
799
  /* @__PURE__ */ t.jsx(
800
800
  xt,
801
801
  {
802
- typesText: i,
802
+ typesText: c,
803
803
  setTypesText: l
804
804
  }
805
805
  )
@@ -807,12 +807,12 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
807
807
  ]
808
808
  }
809
809
  );
810
- }, He = "_subtitle_m8qel_1", Ve = "_header_m8qel_8", Fe = "_text_m8qel_9", Ue = "_productsBlock_m8qel_10", ze = "_buttonsBlock_m8qel_11", Ge = "_top_m8qel_23", We = "_itemsBlock_m8qel_32", Xe = "_typeTexts_m8qel_38", Ye = "_block_m8qel_45", Qe = "_active_m8qel_58", Je = "_products_m8qel_10", Ke = "_product_m8qel_10", Ze = "_button_m8qel_11", ts = "_image_m8qel_88", es = "_info_m8qel_95", ss = "_name_m8qel_107", ns = "_buttons_m8qel_11", is = "_modal_m8qel_118", cs = "_other_m8qel_137", os = "_options_m8qel_143", tt = {
811
- subtitle: He,
812
- header: Ve,
813
- text: Fe,
814
- productsBlock: Ue,
815
- buttonsBlock: ze,
810
+ }, Re = "_subtitle_m8qel_1", He = "_header_m8qel_8", Ve = "_text_m8qel_9", Fe = "_productsBlock_m8qel_10", Ue = "_buttonsBlock_m8qel_11", Ge = "_top_m8qel_23", We = "_itemsBlock_m8qel_32", Xe = "_typeTexts_m8qel_38", Ye = "_block_m8qel_45", Qe = "_active_m8qel_58", Je = "_products_m8qel_10", Ke = "_product_m8qel_10", Ze = "_button_m8qel_11", ts = "_image_m8qel_88", es = "_info_m8qel_95", ss = "_name_m8qel_107", ns = "_buttons_m8qel_11", cs = "_modal_m8qel_118", os = "_other_m8qel_137", is = "_options_m8qel_143", tt = {
811
+ subtitle: Re,
812
+ header: He,
813
+ text: Ve,
814
+ productsBlock: Fe,
815
+ buttonsBlock: Ue,
816
816
  top: Ge,
817
817
  itemsBlock: We,
818
818
  typeTexts: Xe,
@@ -825,11 +825,11 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
825
825
  info: es,
826
826
  name: ss,
827
827
  buttons: ns,
828
- modal: is,
829
- other: cs,
830
- options: os
828
+ modal: cs,
829
+ other: os,
830
+ options: is
831
831
  }, as = (d) => {
832
- const { buttons: n, setButtons: e, deletable: c = !0, addable: i = !0 } = d, [l, s] = f.useState(null), [o, m] = f.useState({
832
+ const { buttons: n, setButtons: e, deletable: o = !0, addable: c = !0 } = d, [l, s] = f.useState(null), [i, m] = f.useState({
833
833
  top: 0,
834
834
  left: 0
835
835
  });
@@ -889,7 +889,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
889
889
  }
890
890
  }
891
891
  ),
892
- c && /* @__PURE__ */ t.jsx(
892
+ o && /* @__PURE__ */ t.jsx(
893
893
  p,
894
894
  {
895
895
  name: "Trash",
@@ -909,14 +909,14 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
909
909
  u.id
910
910
  )),
911
911
  l && /* @__PURE__ */ t.jsx(
912
- Re,
912
+ Me,
913
913
  {
914
914
  activeButton: l,
915
915
  setActiveButton: s,
916
- popupPosition: o
916
+ popupPosition: i
917
917
  }
918
918
  ),
919
- i && /* @__PURE__ */ t.jsxs(
919
+ c && /* @__PURE__ */ t.jsxs(
920
920
  X,
921
921
  {
922
922
  className: tt.button,
@@ -945,13 +945,13 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
945
945
  }
946
946
  )
947
947
  ] });
948
- }, ni = (d) => {
949
- const { isActiveButtons: n, setIsActiveButtons: e, buttons: c, setButtons: i } = d;
950
- return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: z.buttonsBlock, children: [
951
- /* @__PURE__ */ t.jsxs("div", { className: z.top, children: [
952
- /* @__PURE__ */ t.jsx("h3", { className: z.title, children: "Buttons" }),
948
+ }, nc = (d) => {
949
+ const { isActiveButtons: n, setIsActiveButtons: e, buttons: o, setButtons: c } = d;
950
+ return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: U.buttonsBlock, children: [
951
+ /* @__PURE__ */ t.jsxs("div", { className: U.top, children: [
952
+ /* @__PURE__ */ t.jsx("h3", { className: U.title, children: "Buttons" }),
953
953
  /* @__PURE__ */ t.jsx(
954
- V,
954
+ H,
955
955
  {
956
956
  current: n,
957
957
  onChange: (l) => e(l)
@@ -961,8 +961,8 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
961
961
  /* @__PURE__ */ t.jsx(
962
962
  as,
963
963
  {
964
- buttons: c,
965
- setButtons: i
964
+ buttons: o,
965
+ setButtons: c
966
966
  }
967
967
  )
968
968
  ] }) });
@@ -982,12 +982,12 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
982
982
  controls: js,
983
983
  button: vs
984
984
  }, ks = (d) => {
985
- const { label: n, min: e = 1, max: c = 4, step: i = 1, count: l, setCount: s } = d, [o, m] = f.useState(!1), v = Array.from({ length: (c - e) / i + 1 }), u = (l - e) / (c - e) * 100, a = () => {
986
- l < c && s(l + i);
985
+ const { label: n, min: e = 1, max: o = 4, step: c = 1, count: l, setCount: s } = d, [i, m] = f.useState(!1), v = Array.from({ length: (o - e) / c + 1 }), u = (l - e) / (o - e) * 100, a = () => {
986
+ l < o && s(l + c);
987
987
  }, h = () => {
988
- l > e && s(l - i);
988
+ l > e && s(l - c);
989
989
  }, $ = (b) => {
990
- const r = e + b * i;
990
+ const r = e + b * c;
991
991
  s(r);
992
992
  };
993
993
  return /* @__PURE__ */ t.jsxs("div", { className: I.wrapper, children: [
@@ -1003,17 +1003,17 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1003
1003
  }
1004
1004
  ),
1005
1005
  /* @__PURE__ */ t.jsx("div", { className: I.dots, children: v.map((b, r) => {
1006
- const w = r <= (l - e) / i;
1006
+ const B = r <= (l - e) / c;
1007
1007
  return /* @__PURE__ */ t.jsx(
1008
1008
  "button",
1009
1009
  {
1010
1010
  onClick: () => $(r),
1011
1011
  className: D(I.dot, {
1012
- [I.active]: w,
1013
- [I.inactive]: !w,
1014
- [I.dragging]: o
1012
+ [I.active]: B,
1013
+ [I.inactive]: !B,
1014
+ [I.dragging]: i
1015
1015
  }),
1016
- "aria-label": `Set value to ${e + r * i}`
1016
+ "aria-label": `Set value to ${e + r * c}`
1017
1017
  },
1018
1018
  r
1019
1019
  );
@@ -1023,8 +1023,8 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1023
1023
  {
1024
1024
  type: "range",
1025
1025
  min: e,
1026
- max: c,
1027
- step: i,
1026
+ max: o,
1027
+ step: c,
1028
1028
  value: l,
1029
1029
  onChange: (b) => s(Number(b.target.value)),
1030
1030
  onMouseDown: () => m(!0),
@@ -1041,11 +1041,11 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1041
1041
  {
1042
1042
  type: "number",
1043
1043
  min: e,
1044
- max: c,
1044
+ max: o,
1045
1045
  paddingless: !0,
1046
1046
  onChange: (b) => {
1047
1047
  const r = Number(b);
1048
- r > c ? s(c) : r < e ? s(e) : s(r);
1048
+ r > o ? s(o) : r < e ? s(e) : s(r);
1049
1049
  },
1050
1050
  value: String(l)
1051
1051
  }
@@ -1055,7 +1055,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1055
1055
  "button",
1056
1056
  {
1057
1057
  onClick: a,
1058
- disabled: l >= c,
1058
+ disabled: l >= o,
1059
1059
  className: I.button,
1060
1060
  "aria-label": "Increment count",
1061
1061
  children: /* @__PURE__ */ t.jsx(
@@ -1089,7 +1089,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1089
1089
  ] })
1090
1090
  ] })
1091
1091
  ] });
1092
- }, ys = "_subtitle_16rdk_1", Ns = "_header_16rdk_8", $s = "_text_16rdk_9", Cs = "_productsBlock_16rdk_10", Is = "_top_16rdk_22", Ps = "_itemsBlock_16rdk_31", Ts = "_typeTexts_16rdk_37", Bs = "_block_16rdk_44", ws = "_active_16rdk_57", Ss = "_products_16rdk_10", qs = "_product_16rdk_10", As = "_button_16rdk_76", Os = "_image_16rdk_87", Ls = "_info_16rdk_94", Ds = "_name_16rdk_106", Es = "_buttons_16rdk_110", Ms = "_modal_16rdk_117", Rs = "_link_16rdk_137", Hs = "_modalOptions_16rdk_143", B = {
1092
+ }, ys = "_subtitle_16rdk_1", Ns = "_header_16rdk_8", $s = "_text_16rdk_9", Cs = "_productsBlock_16rdk_10", Is = "_top_16rdk_22", Ps = "_itemsBlock_16rdk_31", Ts = "_typeTexts_16rdk_37", ws = "_block_16rdk_44", Bs = "_active_16rdk_57", Ss = "_products_16rdk_10", qs = "_product_16rdk_10", As = "_button_16rdk_76", Os = "_image_16rdk_87", Ls = "_info_16rdk_94", Ds = "_name_16rdk_106", zs = "_buttons_16rdk_110", Es = "_modal_16rdk_117", Ms = "_link_16rdk_137", Rs = "_modalOptions_16rdk_143", w = {
1093
1093
  subtitle: ys,
1094
1094
  header: Ns,
1095
1095
  text: $s,
@@ -1097,33 +1097,33 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1097
1097
  top: Is,
1098
1098
  itemsBlock: Ps,
1099
1099
  typeTexts: Ts,
1100
- block: Bs,
1101
- active: ws,
1100
+ block: ws,
1101
+ active: Bs,
1102
1102
  products: Ss,
1103
1103
  product: qs,
1104
1104
  button: As,
1105
1105
  image: Os,
1106
1106
  info: Ls,
1107
1107
  name: Ds,
1108
- buttons: Es,
1109
- modal: Ms,
1110
- link: Rs,
1111
- modalOptions: Hs
1112
- }, Vs = (d) => {
1113
- const { activeItem: n, setActiveItem: e, popupPosition: c, setIsOpenModal: i } = d;
1108
+ buttons: zs,
1109
+ modal: Es,
1110
+ link: Ms,
1111
+ modalOptions: Rs
1112
+ }, Hs = (d) => {
1113
+ const { activeItem: n, setActiveItem: e, popupPosition: o, setIsOpenModal: c } = d;
1114
1114
  return /* @__PURE__ */ t.jsxs(
1115
1115
  "div",
1116
1116
  {
1117
- className: B.modal,
1117
+ className: w.modal,
1118
1118
  onClick: (l) => {
1119
1119
  l.stopPropagation();
1120
1120
  },
1121
1121
  style: {
1122
- top: `${c.top}px`,
1123
- left: `${c.left}px`
1122
+ top: `${o.top}px`,
1123
+ left: `${o.left}px`
1124
1124
  },
1125
1125
  children: [
1126
- /* @__PURE__ */ t.jsxs("div", { className: B.top, children: [
1126
+ /* @__PURE__ */ t.jsxs("div", { className: w.top, children: [
1127
1127
  /* @__PURE__ */ t.jsx("h3", { children: n.name }),
1128
1128
  /* @__PURE__ */ t.jsx(
1129
1129
  p,
@@ -1133,13 +1133,13 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1133
1133
  width: 20,
1134
1134
  hoverable: !0,
1135
1135
  onClick: () => {
1136
- i(!1), e(null);
1136
+ c(!1), e(null);
1137
1137
  }
1138
1138
  }
1139
1139
  )
1140
1140
  ] }),
1141
- /* @__PURE__ */ t.jsx("div", { className: B.modalOptions, children: /* @__PURE__ */ t.jsx(
1142
- ot,
1141
+ /* @__PURE__ */ t.jsx("div", { className: w.modalOptions, children: /* @__PURE__ */ t.jsx(
1142
+ it,
1143
1143
  {
1144
1144
  label: "Put up an attractive image",
1145
1145
  onChange: (l) => {
@@ -1155,36 +1155,36 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1155
1155
  ]
1156
1156
  }
1157
1157
  );
1158
- }, Fs = (d) => {
1159
- const { index: n, moveProduct: e, children: c } = d, [, i] = mt({
1158
+ }, Vs = (d) => {
1159
+ const { index: n, moveProduct: e, children: o } = d, [, c] = mt({
1160
1160
  accept: "product",
1161
- hover(o) {
1162
- o.index !== n && (e(o.index, n), o.index = n);
1161
+ hover(i) {
1162
+ i.index !== n && (e(i.index, n), i.index = n);
1163
1163
  }
1164
1164
  }), [{ isDragging: l }, s] = pt({
1165
1165
  type: "product",
1166
1166
  item: { index: n },
1167
- collect: (o) => ({
1168
- isDragging: o.isDragging()
1167
+ collect: (i) => ({
1168
+ isDragging: i.isDragging()
1169
1169
  })
1170
1170
  });
1171
1171
  return /* @__PURE__ */ t.jsx(
1172
1172
  "div",
1173
1173
  {
1174
- ref: (o) => s(i(o)),
1175
- className: `${B.product} ${l ? B.dragging : ""}`,
1176
- children: c
1174
+ ref: (i) => s(c(i)),
1175
+ className: `${w.product} ${l ? w.dragging : ""}`,
1176
+ children: o
1177
1177
  }
1178
1178
  );
1179
- }, ii = (d) => {
1179
+ }, cc = (d) => {
1180
1180
  const {
1181
1181
  isActiveItems: n,
1182
1182
  setIsActiveItems: e,
1183
- items: c,
1184
- setItems: i,
1183
+ items: o,
1184
+ setItems: c,
1185
1185
  other: l,
1186
1186
  title: s,
1187
- subtitle: o,
1187
+ subtitle: i,
1188
1188
  editable: m = !0,
1189
1189
  draggable: v = !1,
1190
1190
  withImage: u = !1,
@@ -1192,34 +1192,34 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1192
1192
  addable: h = !0,
1193
1193
  itemsType: $,
1194
1194
  itemsOptions: b
1195
- } = d, [r, w] = f.useState(null), [Y, Q] = f.useState({
1195
+ } = d, [r, B] = f.useState(null), [Y, Q] = f.useState({
1196
1196
  top: 0,
1197
1197
  left: 0
1198
- }), [F, y] = f.useState(!1), M = (g, k) => {
1199
- const S = [...c], [C] = S.splice(g, 1);
1200
- S.splice(k, 0, C), i(S);
1198
+ }), [V, y] = f.useState(!1), E = (g, k) => {
1199
+ const S = [...o], [C] = S.splice(g, 1);
1200
+ S.splice(k, 0, C), c(S);
1201
1201
  };
1202
1202
  f.useEffect(() => {
1203
1203
  const g = () => {
1204
- w(null), y(!1);
1204
+ B(null), y(!1);
1205
1205
  };
1206
- return document.body.addEventListener("click", g), w(null), y(!1), () => {
1207
- w(null), y(!1), document.body.removeEventListener("click", g);
1206
+ return document.body.addEventListener("click", g), B(null), y(!1), () => {
1207
+ B(null), y(!1), document.body.removeEventListener("click", g);
1208
1208
  };
1209
1209
  }, []), f.useEffect(() => {
1210
1210
  if (r) {
1211
- const g = [...c].map((k) => k.id === r.id ? r : k);
1212
- i(g);
1211
+ const g = [...o].map((k) => k.id === r.id ? r : k);
1212
+ c(g);
1213
1213
  }
1214
1214
  }, [r]);
1215
- const R = (g, k) => {
1215
+ const M = (g, k) => {
1216
1216
  g.stopPropagation();
1217
- const S = g.target.getBoundingClientRect(), C = 100, U = window.innerHeight;
1217
+ const S = g.target.getBoundingClientRect(), C = 100, F = window.innerHeight;
1218
1218
  let A = S.top + window.scrollY;
1219
- A + C > U && (A = U - C - 20), y(!0), Q({
1219
+ A + C > F && (A = F - C - 20), y(!0), Q({
1220
1220
  top: A - 80,
1221
1221
  left: S.left - 30
1222
- }), w(k);
1222
+ }), B(k);
1223
1223
  };
1224
1224
  function nt(g) {
1225
1225
  if (u)
@@ -1256,23 +1256,23 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1256
1256
  W,
1257
1257
  {
1258
1258
  onChange: (C) => {
1259
- const U = [...c], A = Number(C.split(" ")[1]), _ = b.find((N) => N.id === A);
1259
+ const F = [...o], A = Number(C.split(" ")[1]), _ = b.find((N) => N.id === A);
1260
1260
  if (!_) return;
1261
1261
  const T = {
1262
1262
  ..._.productData.stats,
1263
1263
  newPrice: _.productData.minPrice.amount,
1264
1264
  oldPrice: _.productData.compareAtPrice.amount
1265
- }, q = U.map((N) => N.id === g.id ? {
1265
+ }, q = F.map((N) => N.id === g.id ? {
1266
1266
  ...g,
1267
1267
  name: C,
1268
1268
  listingId: A,
1269
1269
  stats: T
1270
1270
  } : N);
1271
- w({
1271
+ B({
1272
1272
  ...g,
1273
1273
  name: C,
1274
1274
  listingId: A
1275
- }), i([...q]);
1275
+ }), c([...q]);
1276
1276
  },
1277
1277
  value: g.name,
1278
1278
  options: [...b.map((C) => `Product ${C.id}`)],
@@ -1280,7 +1280,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1280
1280
  },
1281
1281
  k
1282
1282
  ),
1283
- /* @__PURE__ */ t.jsxs("div", { className: B.buttons, children: [
1283
+ /* @__PURE__ */ t.jsxs("div", { className: w.buttons, children: [
1284
1284
  m && /* @__PURE__ */ t.jsx(
1285
1285
  p,
1286
1286
  {
@@ -1288,7 +1288,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1288
1288
  hoverable: !0,
1289
1289
  width: 20,
1290
1290
  height: 20,
1291
- onClick: (C) => R(C, g)
1291
+ onClick: (C) => M(C, g)
1292
1292
  }
1293
1293
  ),
1294
1294
  a && /* @__PURE__ */ t.jsx(
@@ -1299,59 +1299,59 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1299
1299
  width: 20,
1300
1300
  height: 20,
1301
1301
  fill: "#C12A2A",
1302
- onClick: () => i(c.filter((C) => C.id !== g.id))
1302
+ onClick: () => c(o.filter((C) => C.id !== g.id))
1303
1303
  }
1304
1304
  )
1305
1305
  ] })
1306
1306
  ] });
1307
1307
  return v ? /* @__PURE__ */ t.jsx(
1308
- Fs,
1308
+ Vs,
1309
1309
  {
1310
1310
  product: g,
1311
1311
  index: k,
1312
- moveProduct: M,
1312
+ moveProduct: E,
1313
1313
  children: S
1314
1314
  },
1315
1315
  g.id
1316
1316
  ) : /* @__PURE__ */ t.jsx(
1317
1317
  "div",
1318
1318
  {
1319
- className: B.product,
1319
+ className: w.product,
1320
1320
  children: S
1321
1321
  },
1322
1322
  g.id
1323
1323
  );
1324
1324
  };
1325
- return /* @__PURE__ */ t.jsxs("div", { className: B.productsBlock, children: [
1326
- (s || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: B.top, children: [
1327
- s && /* @__PURE__ */ t.jsx("h3", { className: B.title, children: s }),
1325
+ return /* @__PURE__ */ t.jsxs("div", { className: w.productsBlock, children: [
1326
+ (s || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: w.top, children: [
1327
+ s && /* @__PURE__ */ t.jsx("h3", { className: w.title, children: s }),
1328
1328
  n !== void 0 && /* @__PURE__ */ t.jsx(
1329
- V,
1329
+ H,
1330
1330
  {
1331
1331
  current: n,
1332
1332
  onChange: (g) => e == null ? void 0 : e(g)
1333
1333
  }
1334
1334
  )
1335
1335
  ] }),
1336
- F && r && /* @__PURE__ */ t.jsx(
1337
- Vs,
1336
+ V && r && /* @__PURE__ */ t.jsx(
1337
+ Hs,
1338
1338
  {
1339
1339
  activeItem: r,
1340
- setActiveItem: w,
1340
+ setActiveItem: B,
1341
1341
  setIsOpenModal: y,
1342
1342
  popupPosition: Y
1343
1343
  }
1344
1344
  ),
1345
- /* @__PURE__ */ t.jsxs("div", { className: B.products, children: [
1346
- o && /* @__PURE__ */ t.jsx("h5", { className: B.subtitle, children: o }),
1347
- v ? /* @__PURE__ */ t.jsx(ut, { backend: _t, children: c.map((g, k) => st(g, k)) }) : c.map((g, k) => st(g, k)),
1345
+ /* @__PURE__ */ t.jsxs("div", { className: w.products, children: [
1346
+ i && /* @__PURE__ */ t.jsx("h5", { className: w.subtitle, children: i }),
1347
+ v ? /* @__PURE__ */ t.jsx(ut, { backend: _t, children: o.map((g, k) => st(g, k)) }) : o.map((g, k) => st(g, k)),
1348
1348
  h && /* @__PURE__ */ t.jsxs(
1349
1349
  X,
1350
1350
  {
1351
- className: B.button,
1351
+ className: w.button,
1352
1352
  size: "s",
1353
1353
  onClick: () => {
1354
- const g = [...c], k = b[0].id;
1354
+ const g = [...o], k = b[0].id;
1355
1355
  g.push({
1356
1356
  name: `Product ${k}`,
1357
1357
  id: et(),
@@ -1363,7 +1363,7 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1363
1363
  newPrice: b[0].productData.minPrice.amount,
1364
1364
  oldPrice: b[0].productData.compareAtPrice.amount
1365
1365
  }
1366
- }), i(g);
1366
+ }), c(g);
1367
1367
  },
1368
1368
  children: [
1369
1369
  /* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
@@ -1381,9 +1381,9 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1381
1381
  ] }),
1382
1382
  l !== void 0 && /* @__PURE__ */ t.jsx(ft, { items: l })
1383
1383
  ] });
1384
- }, Us = "_options_11lki_1", zs = "_price_11lki_12", Gs = "_oldPrice_11lki_19", Ws = "_newPrice_11lki_27", Xs = "_meta_11lki_34", Ys = "_info_11lki_40", Qs = "_infoRight_11lki_48", Js = "_buttons_11lki_55", Ks = "_variants_11lki_62", Zs = "_variant_11lki_62", tn = "_stock_11lki_79", en = "_variantInfo_11lki_86", sn = "_quantity_11lki_92", nn = "_count_11lki_99", cn = "_button_11lki_55", on = "_activeVariant_11lki_120", an = "_chargeTypes_11lki_124", ln = "_charge_11lki_124", rn = "_chargeActive_11lki_145", dn = "_title_11lki_150", j = {
1385
- options: Us,
1386
- price: zs,
1384
+ }, Fs = "_options_11lki_1", Us = "_price_11lki_12", Gs = "_oldPrice_11lki_19", Ws = "_newPrice_11lki_27", Xs = "_meta_11lki_34", Ys = "_info_11lki_40", Qs = "_infoRight_11lki_48", Js = "_buttons_11lki_55", Ks = "_variants_11lki_62", Zs = "_variant_11lki_62", tn = "_stock_11lki_79", en = "_variantInfo_11lki_86", sn = "_quantity_11lki_92", nn = "_count_11lki_99", cn = "_button_11lki_55", on = "_activeVariant_11lki_120", an = "_chargeTypes_11lki_124", ln = "_charge_11lki_124", rn = "_chargeActive_11lki_145", dn = "_title_11lki_150", j = {
1385
+ options: Fs,
1386
+ price: Us,
1387
1387
  oldPrice: Gs,
1388
1388
  newPrice: Ws,
1389
1389
  meta: Xs,
@@ -1404,13 +1404,13 @@ const jt = "_accordion_9e4oa_1", vt = "_header_9e4oa_9", kt = "_icon_9e4oa_18",
1404
1404
  title: dn
1405
1405
  };
1406
1406
  var bt = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(bt || {});
1407
- const ci = (d) => {
1408
- const { variants: n } = d, [e, c] = f.useState(n[0]), [i, l] = f.useState(e.chargeTypes[0]), s = at(), [o, m] = f.useState(1), { reset: v, addProductToCart: u, getProducts: a } = lt();
1407
+ const oc = (d) => {
1408
+ const { variants: n } = d, [e, o] = f.useState(n[0]), [c, l] = f.useState(e.chargeTypes[0]), s = at(), [i, m] = f.useState(1), { reset: v, addProductToCart: u, getProducts: a } = lt();
1409
1409
  async function h() {
1410
1410
  await a(), await u({
1411
1411
  productId: d.id,
1412
1412
  productVariantId: e.id,
1413
- quantity: o
1413
+ quantity: i
1414
1414
  });
1415
1415
  }
1416
1416
  function $() {
@@ -1436,7 +1436,7 @@ const ci = (d) => {
1436
1436
  "div",
1437
1437
  {
1438
1438
  className: D(j.charge, {
1439
- [j.chargeActive]: i === r
1439
+ [j.chargeActive]: c === r
1440
1440
  }),
1441
1441
  onClick: () => l(r),
1442
1442
  children: bt[r]
@@ -1449,16 +1449,16 @@ const ci = (d) => {
1449
1449
  className: D(j.variant, {
1450
1450
  [j.activeVariant]: e.id === r.id
1451
1451
  }),
1452
- onClick: () => c(r),
1452
+ onClick: () => o(r),
1453
1453
  children: [
1454
1454
  /* @__PURE__ */ t.jsxs("div", { className: j.variantInfo, children: [
1455
1455
  /* @__PURE__ */ t.jsx("span", { className: j.title, children: r.name }),
1456
1456
  /* @__PURE__ */ t.jsxs("span", { children: [
1457
1457
  "$",
1458
- i === "ONE_TIME" ? r.price.amount : r.subscriptionSettings.price.amount
1458
+ c === "ONE_TIME" ? r.price.amount : r.subscriptionSettings.price.amount
1459
1459
  ] })
1460
1460
  ] }),
1461
- /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: j.stock, children: [
1461
+ /* @__PURE__ */ t.jsx("div", { children: c === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: j.stock, children: [
1462
1462
  r.quantity.restrictions.max || 0,
1463
1463
  " in stock"
1464
1464
  ] }) })
@@ -1466,18 +1466,18 @@ const ci = (d) => {
1466
1466
  },
1467
1467
  r.id
1468
1468
  )) }),
1469
- i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: j.quantity, children: [
1469
+ c === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: j.quantity, children: [
1470
1470
  /* @__PURE__ */ t.jsx(
1471
1471
  "div",
1472
1472
  {
1473
1473
  onClick: () => {
1474
- o > 1 ? m((r) => r - 1) : m(1);
1474
+ i > 1 ? m((r) => r - 1) : m(1);
1475
1475
  },
1476
1476
  className: j.button,
1477
1477
  children: /* @__PURE__ */ t.jsx(p, { name: "Minus" })
1478
1478
  }
1479
1479
  ),
1480
- /* @__PURE__ */ t.jsx("div", { className: j.count, children: o }),
1480
+ /* @__PURE__ */ t.jsx("div", { className: j.count, children: i }),
1481
1481
  /* @__PURE__ */ t.jsx(
1482
1482
  "div",
1483
1483
  {
@@ -1507,18 +1507,18 @@ const ci = (d) => {
1507
1507
  ] }),
1508
1508
  /* @__PURE__ */ t.jsxs("div", { className: j.info, children: [
1509
1509
  /* @__PURE__ */ t.jsx("span", { children: "Price" }),
1510
- /* @__PURE__ */ t.jsx("div", { className: j.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: j.price, children: [
1510
+ /* @__PURE__ */ t.jsx("div", { className: j.infoRight, children: c === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: j.price, children: [
1511
1511
  /* @__PURE__ */ t.jsxs("span", { className: j.newPrice, children: [
1512
1512
  "$ ",
1513
- (e.price.amount || 0) * o
1513
+ (e.price.amount || 0) * i
1514
1514
  ] }),
1515
1515
  /* @__PURE__ */ t.jsxs("span", { className: j.oldPrice, children: [
1516
1516
  "$ ",
1517
- (e.compareAtPrice.amount || 0) * o
1517
+ (e.compareAtPrice.amount || 0) * i
1518
1518
  ] })
1519
1519
  ] }) : /* @__PURE__ */ t.jsxs("span", { className: j.newPrice, children: [
1520
1520
  "$ ",
1521
- (e.price.amount || 0) * o
1521
+ (e.price.amount || 0) * i
1522
1522
  ] }) : e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: j.price, children: [
1523
1523
  /* @__PURE__ */ t.jsxs("span", { className: j.newPrice, children: [
1524
1524
  "$ ",
@@ -1540,10 +1540,10 @@ const ci = (d) => {
1540
1540
  {
1541
1541
  type: "Primary",
1542
1542
  onClick: () => $(),
1543
- children: "Buy Now"
1543
+ children: /* @__PURE__ */ t.jsx("span", { children: c === "ONE_TIME" ? "Buy Now" : "Subscribe Now" })
1544
1544
  }
1545
1545
  ),
1546
- i === "ONE_TIME" && /* @__PURE__ */ t.jsx(
1546
+ c === "ONE_TIME" && /* @__PURE__ */ t.jsx(
1547
1547
  X,
1548
1548
  {
1549
1549
  type: "Secondary",
@@ -1553,7 +1553,7 @@ const ci = (d) => {
1553
1553
  )
1554
1554
  ] })
1555
1555
  ] });
1556
- }, un = "_button_iklta_1", _n = "_login_iklta_14", mn = "_signUp_iklta_18", pn = "_buttons_iklta_23", hn = "_modal_iklta_32", gn = "_info_iklta_48", xn = "_top_iklta_55", fn = "_title_iklta_66", bn = "_clear_iklta_72", jn = "_activeClear_iklta_79", vn = "_count_iklta_83", kn = "_cart_iklta_98", yn = "_empty_iklta_106", Nn = "_product_iklta_132", $n = "_products_iklta_141", Cn = "_image_iklta_149", In = "_productInfo_iklta_155", Pn = "_content_iklta_162", Tn = "_name_iklta_168", Bn = "_price_iklta_174", wn = "_productButtons_iklta_180", Sn = "_productButton_iklta_180", qn = "_productCount_iklta_200", An = "_bottom_iklta_216", On = "_subtotal_iklta_224", Ln = "_block_iklta_232", Dn = "_shoppingCount_iklta_239", En = "_total_iklta_259", Mn = "_link_iklta_265", x = {
1556
+ }, un = "_button_1kcpz_1", _n = "_login_1kcpz_14", mn = "_signUp_1kcpz_18", pn = "_buttons_1kcpz_23", hn = "_modal_1kcpz_32", gn = "_info_1kcpz_48", xn = "_top_1kcpz_55", fn = "_title_1kcpz_66", bn = "_clear_1kcpz_72", jn = "_activeClear_1kcpz_79", vn = "_count_1kcpz_83", kn = "_cart_1kcpz_98", yn = "_empty_1kcpz_106", Nn = "_product_1kcpz_132", $n = "_products_1kcpz_141", Cn = "_image_1kcpz_149", In = "_productInfo_1kcpz_155", Pn = "_content_1kcpz_162", Tn = "_name_1kcpz_168", wn = "_price_1kcpz_174", Bn = "_productButtons_1kcpz_180", Sn = "_productButton_1kcpz_180", qn = "_productCount_1kcpz_200", An = "_bottom_1kcpz_216", On = "_subtotal_1kcpz_224", Ln = "_block_1kcpz_232", Dn = "_shoppingCount_1kcpz_239", zn = "_total_1kcpz_259", En = "_link_1kcpz_265", x = {
1557
1557
  button: un,
1558
1558
  login: _n,
1559
1559
  signUp: mn,
@@ -1573,28 +1573,28 @@ const ci = (d) => {
1573
1573
  productInfo: In,
1574
1574
  content: Pn,
1575
1575
  name: Tn,
1576
- price: Bn,
1577
- productButtons: wn,
1576
+ price: wn,
1577
+ productButtons: Bn,
1578
1578
  productButton: Sn,
1579
1579
  productCount: qn,
1580
1580
  bottom: An,
1581
1581
  subtotal: On,
1582
1582
  block: Ln,
1583
1583
  shoppingCount: Dn,
1584
- total: En,
1585
- link: Mn
1586
- }, oi = (d) => {
1587
- const { shopping: n, signUp: e } = d, c = at();
1588
- function i(l) {
1589
- c(l);
1584
+ total: zn,
1585
+ link: En
1586
+ }, ic = (d) => {
1587
+ const { shopping: n, signUp: e } = d, o = at();
1588
+ function c(l) {
1589
+ o(l);
1590
1590
  }
1591
1591
  return /* @__PURE__ */ t.jsxs("div", { className: x.buttons, children: [
1592
- n && /* @__PURE__ */ t.jsx(Rn, {}),
1592
+ n && /* @__PURE__ */ t.jsx(Mn, {}),
1593
1593
  /* @__PURE__ */ t.jsx(
1594
1594
  "div",
1595
1595
  {
1596
1596
  className: D(x.button, x.login),
1597
- onClick: () => i("/customer-dash"),
1597
+ onClick: () => c("/customer-dash"),
1598
1598
  children: "Login"
1599
1599
  }
1600
1600
  ),
@@ -1602,40 +1602,40 @@ const ci = (d) => {
1602
1602
  "div",
1603
1603
  {
1604
1604
  className: D(x.button, x.login, x.signUp),
1605
- onClick: () => i("/customer-dash"),
1605
+ onClick: () => c("/customer-dash"),
1606
1606
  children: "Sign Up"
1607
1607
  }
1608
1608
  )
1609
1609
  ] });
1610
- }, Rn = () => {
1611
- const [d, n] = f.useState(!1), [e, c] = f.useState([]), { cart: i, getProducts: l } = lt();
1610
+ }, Mn = () => {
1611
+ const [d, n] = f.useState(!1), [e, o] = f.useState([]), { cart: c, getProducts: l } = lt();
1612
1612
  function s(u) {
1613
- for (let a = 0; a < i.parts.length; a++)
1613
+ for (let a = 0; a < c.parts.length; a++)
1614
1614
  for (let h = 0; h < u.variants.length; h++)
1615
- if (i.parts[a].productVariantId === u.variants[a].id)
1616
- return i.parts[a].productVariantId;
1615
+ if (c.parts[a].productVariantId === u.variants[a].id)
1616
+ return c.parts[a].productVariantId;
1617
1617
  }
1618
- function o(u) {
1619
- for (let a = 0; a < i.parts.length; a++)
1618
+ function i(u) {
1619
+ for (let a = 0; a < c.parts.length; a++)
1620
1620
  for (let h = 0; h < u.variants.length; h++)
1621
- if (i.parts[a].productVariantId === u.variants[a].id)
1622
- return i.parts[a].quantity;
1621
+ if (c.parts[a].productVariantId === u.variants[a].id)
1622
+ return c.parts[a].quantity;
1623
1623
  }
1624
1624
  f.useEffect(() => {
1625
1625
  (async () => {
1626
- const a = i.parts.map((b) => String(b.productId)), $ = (await l([...a])).map((b) => ({
1626
+ const a = c.parts.map((b) => String(b.productId)), $ = (await l([...a])).map((b) => ({
1627
1627
  ...b,
1628
1628
  activeVariantId: s(b),
1629
- quantity: o(b)
1629
+ quantity: i(b)
1630
1630
  }));
1631
- c($);
1631
+ o($);
1632
1632
  })();
1633
- }, [i]);
1633
+ }, [c]);
1634
1634
  function m(u) {
1635
1635
  var a;
1636
1636
  return !u || !(u != null && u.variants) ? !1 : (a = u.variants.find((h) => h.id === u.activeVariantId)) == null ? void 0 : a.subscriptionSettings;
1637
1637
  }
1638
- const v = i.parts.length > 0 && e.length > 0 && !m(e[0]);
1638
+ const v = c.parts.length > 0 && e.length > 0 && !m(e[0]);
1639
1639
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1640
1640
  /* @__PURE__ */ t.jsxs(
1641
1641
  "div",
@@ -1649,25 +1649,25 @@ const ci = (d) => {
1649
1649
  p,
1650
1650
  {
1651
1651
  name: "Handbag",
1652
- fill: "#252525"
1652
+ fill: "var(--icon-primary)"
1653
1653
  }
1654
1654
  ),
1655
- v && /* @__PURE__ */ t.jsx("div", { className: x.shoppingCount, children: i.parts.length })
1655
+ v && /* @__PURE__ */ t.jsx("div", { className: x.shoppingCount, children: c.parts.length })
1656
1656
  ]
1657
1657
  }
1658
1658
  ),
1659
1659
  d && /* @__PURE__ */ t.jsx(ht, { close: n, children: /* @__PURE__ */ t.jsx(
1660
- Hn,
1660
+ Rn,
1661
1661
  {
1662
1662
  activeProducts: e,
1663
1663
  isCartNotEmpty: v
1664
1664
  }
1665
1665
  ) })
1666
1666
  ] });
1667
- }, Hn = (d) => {
1668
- const { activeProducts: n, isCartNotEmpty: e } = d, { cart: c, reset: i, getTotalAndDiscount: l, updateQuantityOfProduct: s } = lt(), o = at();
1667
+ }, Rn = (d) => {
1668
+ const { activeProducts: n, isCartNotEmpty: e } = d, { cart: o, reset: c, getTotalAndDiscount: l, updateQuantityOfProduct: s } = lt(), i = at();
1669
1669
  function m(a) {
1670
- o(a);
1670
+ i(a);
1671
1671
  }
1672
1672
  function v(a) {
1673
1673
  s({
@@ -1692,7 +1692,7 @@ const ci = (d) => {
1692
1692
  /* @__PURE__ */ t.jsxs("div", { className: x.top, children: [
1693
1693
  /* @__PURE__ */ t.jsxs("div", { className: x.info, children: [
1694
1694
  /* @__PURE__ */ t.jsx("span", { className: x.title, children: "Cart" }),
1695
- e && /* @__PURE__ */ t.jsx("div", { className: x.count, children: c.parts.length })
1695
+ e && /* @__PURE__ */ t.jsx("div", { className: x.count, children: o.parts.length })
1696
1696
  ] }),
1697
1697
  /* @__PURE__ */ t.jsx(
1698
1698
  "button",
@@ -1701,7 +1701,7 @@ const ci = (d) => {
1701
1701
  [x.activeClear]: e
1702
1702
  }),
1703
1703
  disabled: !e,
1704
- onClick: () => i(),
1704
+ onClick: () => c(),
1705
1705
  children: "Clear all"
1706
1706
  }
1707
1707
  )
@@ -1793,11 +1793,11 @@ const ci = (d) => {
1793
1793
  ] }),
1794
1794
  /* @__PURE__ */ t.jsx(X, { onClick: () => m("/checkout"), children: "Checkout" })
1795
1795
  ] })
1796
- ] }) : /* @__PURE__ */ t.jsx(Vn, {})
1796
+ ] }) : /* @__PURE__ */ t.jsx(Hn, {})
1797
1797
  ]
1798
1798
  }
1799
1799
  );
1800
- }, Vn = () => /* @__PURE__ */ t.jsxs("div", { className: x.empty, children: [
1800
+ }, Hn = () => /* @__PURE__ */ t.jsxs("div", { className: x.empty, children: [
1801
1801
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(p, { name: "Handbag" }) }),
1802
1802
  /* @__PURE__ */ t.jsx("span", { children: "Your cart is empty" }),
1803
1803
  /* @__PURE__ */ t.jsxs("span", { children: [
@@ -1812,17 +1812,17 @@ const ci = (d) => {
1812
1812
  }
1813
1813
  )
1814
1814
  ] })
1815
- ] }), Fn = "_share_9g414_1", Un = "_modal_9g414_8", zn = "_header_9g414_14", Gn = "_socials_9g414_24", Wn = "_social_9g414_24", Xn = "_copy_9g414_34", Yn = "_title_9g414_41", Qn = "_copyWrapper_9g414_47", Jn = "_copyText_9g414_56", L = {
1816
- share: Fn,
1817
- modal: Un,
1818
- header: zn,
1815
+ ] }), Vn = "_share_9g414_1", Fn = "_modal_9g414_8", Un = "_header_9g414_14", Gn = "_socials_9g414_24", Wn = "_social_9g414_24", Xn = "_copy_9g414_34", Yn = "_title_9g414_41", Qn = "_copyWrapper_9g414_47", Jn = "_copyText_9g414_56", L = {
1816
+ share: Vn,
1817
+ modal: Fn,
1818
+ header: Un,
1819
1819
  socials: Gn,
1820
1820
  social: Wn,
1821
1821
  copy: Xn,
1822
1822
  title: Yn,
1823
1823
  copyWrapper: Qn,
1824
1824
  copyText: Jn
1825
- }, ai = () => {
1825
+ }, ac = () => {
1826
1826
  const { isOpenModal: d, setIsOpenModal: n } = gt();
1827
1827
  function e() {
1828
1828
  n(!0);
@@ -1832,8 +1832,8 @@ const ci = (d) => {
1832
1832
  "div",
1833
1833
  {
1834
1834
  className: L.share,
1835
- onClick: (c) => {
1836
- c.stopPropagation(), e();
1835
+ onClick: (o) => {
1836
+ o.stopPropagation(), e();
1837
1837
  },
1838
1838
  children: /* @__PURE__ */ t.jsx(
1839
1839
  p,
@@ -1862,7 +1862,7 @@ const ci = (d) => {
1862
1862
  "div",
1863
1863
  {
1864
1864
  className: L.modal,
1865
- onClick: (c) => c.stopPropagation(),
1865
+ onClick: (o) => o.stopPropagation(),
1866
1866
  children: [
1867
1867
  /* @__PURE__ */ t.jsxs("div", { className: L.header, children: [
1868
1868
  /* @__PURE__ */ t.jsx("div", { className: L.title, children: "Share this Post" }),
@@ -1875,7 +1875,7 @@ const ci = (d) => {
1875
1875
  }
1876
1876
  )
1877
1877
  ] }),
1878
- /* @__PURE__ */ t.jsx("div", { className: L.socials, children: Object.keys(rt).map((c) => /* @__PURE__ */ t.jsx("div", { className: L.social, children: /* @__PURE__ */ t.jsx(p, { name: rt[c] }) })) }),
1878
+ /* @__PURE__ */ t.jsx("div", { className: L.socials, children: Object.keys(rt).map((o) => /* @__PURE__ */ t.jsx("div", { className: L.social, children: /* @__PURE__ */ t.jsx(p, { name: rt[o] }) })) }),
1879
1879
  /* @__PURE__ */ t.jsxs("div", { className: L.copyWrapper, children: [
1880
1880
  /* @__PURE__ */ t.jsx(
1881
1881
  "div",
@@ -1899,36 +1899,36 @@ const ci = (d) => {
1899
1899
  );
1900
1900
  };
1901
1901
  export {
1902
- ei as Accordion,
1902
+ ec as Accordion,
1903
1903
  X as Button,
1904
1904
  as as ButtonTypeSettings,
1905
- ni as ButtonsSettings,
1906
- di as Checkbox,
1907
- ot as ChooseImage,
1908
- ui as ChooseImageModal,
1909
- _i as ColorPicker,
1910
- Vn as EmptyCart,
1911
- mi as ErrorableBlock,
1912
- oi as HeaderButtons,
1905
+ nc as ButtonsSettings,
1906
+ dc as Checkbox,
1907
+ it as ChooseImage,
1908
+ uc as ChooseImageModal,
1909
+ _c as ColorPicker,
1910
+ Hn as EmptyCart,
1911
+ mc as ErrorableBlock,
1912
+ ic as HeaderButtons,
1913
1913
  p as Icon,
1914
1914
  G as Input,
1915
1915
  be as ItemsSettings,
1916
- si as LayoutSettings,
1917
- ii as ListingSelector,
1918
- pi as Loader,
1916
+ sc as LayoutSettings,
1917
+ cc as ListingSelector,
1918
+ pc as Loader,
1919
1919
  ht as Modal,
1920
- hi as Picker,
1921
- ci as ProductOptions,
1922
- gi as Radio,
1920
+ hc as Picker,
1921
+ oc as ProductOptions,
1922
+ gc as Radio,
1923
1923
  ks as RangeSelector,
1924
1924
  W as Select,
1925
- ai as ShareLink,
1926
- Rn as ShoppingButton,
1927
- Hn as ShoppingModalCart,
1928
- xi as Submodal,
1929
- V as Switch,
1925
+ ac as ShareLink,
1926
+ Mn as ShoppingButton,
1927
+ Rn as ShoppingModalCart,
1928
+ xc as Submodal,
1929
+ H as Switch,
1930
1930
  Wt as TextSettings,
1931
1931
  dt as Textarea,
1932
- fi as Tip,
1932
+ fc as Tip,
1933
1933
  xt as TypesText
1934
1934
  };