@billgangcom/theme-lib 1.57.0 → 1.58.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, I as g, c as Y, a as dt, S as ot, R as yt, B as tt, O as ut, d as at, u as mt, e as ht, P as pt, D as _t, f as gt, v as xt, g as ft, C as bt, h as H, i as St, k as it, l as wt, m as Bt, n as $t, o as rt, p as V, L as Pt, q as lt, r as jt, t as G, w as Mt, M as vt, x as Nt, y as Tt, z as kt, A as qt } from "./index-Bh-lH7YV.js";
2
- import { J as hi, F as pi, H as _i, E as gi, T as xi, G as fi } from "./index-Bh-lH7YV.js";
1
+ import { j as t, I as g, c as Y, a as dt, S as ot, R as yt, B as tt, O as ut, d as at, u as mt, e as ht, P as pt, D as _t, f as gt, v as xt, g as ft, C as bt, h as H, i as St, k as it, l as wt, m as Bt, n as $t, o as rt, p as V, L as Pt, q as lt, r as jt, t as G, w as Mt, M as vt, x as Nt, y as Tt, z as kt, A as qt } from "./index-B285osIN.js";
2
+ import { J as hi, F as pi, H as _i, E as gi, T as xi, G as fi } from "./index-B285osIN.js";
3
3
  import _ from "react";
4
4
  import "@phosphor-icons/react";
5
5
  const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmyb_15", zt = "_subtitle_1vmyb_22", Rt = "_alignmentContent_1vmyb_29", Lt = "_alignments_1vmyb_37", Dt = "_alignment_1vmyb_8", Ht = "_circle_1vmyb_60", Ut = "_paddings_1vmyb_67", Ft = "_padding_1vmyb_67", Vt = "_active_1vmyb_91", Yt = "_input_1vmyb_98", W = {
@@ -26,8 +26,8 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
26
26
  "bottom",
27
27
  "bottomRight"
28
28
  ], Wt = ["left", "top", "right", "bottom"], Qn = (d) => {
29
- const { alignment: i, padding: e, setPadding: s, setAlignment: n } = d;
30
- function p(l) {
29
+ const { alignment: n, padding: e, setPadding: s, setAlignment: i } = d;
30
+ function m(l) {
31
31
  switch (l) {
32
32
  case "left":
33
33
  case "topLeft":
@@ -45,7 +45,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
45
45
  return "TextAlignCenter";
46
46
  }
47
47
  }
48
- function m(l) {
48
+ function h(l) {
49
49
  switch (l) {
50
50
  case "left":
51
51
  return "AlignLeft";
@@ -57,7 +57,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
57
57
  return "AlignBottom";
58
58
  }
59
59
  }
60
- const [o, u] = _.useState(null), [f, $] = _.useState(null);
60
+ const [o, u] = _.useState(null), [x, $] = _.useState(null);
61
61
  return /* @__PURE__ */ t.jsxs("div", { className: W.layout, children: [
62
62
  /* @__PURE__ */ t.jsx("h3", { className: W.title, children: "Layout" }),
63
63
  /* @__PURE__ */ t.jsxs("div", { className: W.alignmentBlock, children: [
@@ -67,7 +67,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
67
67
  "div",
68
68
  {
69
69
  onClick: () => {
70
- n(l);
70
+ i(l);
71
71
  },
72
72
  className: W.alignment,
73
73
  onMouseEnter: () => {
@@ -77,20 +77,20 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
77
77
  u(null);
78
78
  },
79
79
  children: [
80
- l !== i && o !== l && /* @__PURE__ */ t.jsx("div", { className: W.circle }),
81
- l !== i && o === l && /* @__PURE__ */ t.jsx(
80
+ l !== n && o !== l && /* @__PURE__ */ t.jsx("div", { className: W.circle }),
81
+ l !== n && o === l && /* @__PURE__ */ t.jsx(
82
82
  g,
83
83
  {
84
- name: p(o),
84
+ name: m(o),
85
85
  fill: "#c2c2c2",
86
86
  width: 22,
87
87
  height: 22
88
88
  }
89
89
  ),
90
- l === i && /* @__PURE__ */ t.jsx(
90
+ l === n && /* @__PURE__ */ t.jsx(
91
91
  g,
92
92
  {
93
- name: p(i),
93
+ name: m(n),
94
94
  fill: "#FF3F19",
95
95
  width: 22,
96
96
  height: 22
@@ -104,7 +104,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
104
104
  "label",
105
105
  {
106
106
  className: Y(W.padding, {
107
- [W.active]: f === l
107
+ [W.active]: x === l
108
108
  }),
109
109
  onFocus: () => {
110
110
  $(l);
@@ -116,7 +116,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
116
116
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
117
117
  g,
118
118
  {
119
- name: m(l),
119
+ name: h(l),
120
120
  width: 20,
121
121
  height: 20
122
122
  }
@@ -168,25 +168,25 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
168
168
  deleteButton: xe
169
169
  }, Kn = (d) => {
170
170
  const {
171
- isActiveItems: i,
171
+ isActiveItems: n,
172
172
  setIsActiveItems: e,
173
173
  items: s,
174
- setItems: n,
175
- other: p,
176
- title: m,
174
+ setItems: i,
175
+ other: m,
176
+ title: h,
177
177
  subtitle: o,
178
178
  draggable: u = !1,
179
- withImage: f = !1,
179
+ withImage: x = !1,
180
180
  addable: $ = !0,
181
181
  itemsOptions: l,
182
182
  hasRangeSelector: r = !1,
183
183
  rangeSelectorOptions: T,
184
184
  limit: w,
185
185
  autoScrollInterval: C,
186
- deletable: x
186
+ deletable: f
187
187
  } = d;
188
188
  function B(b) {
189
- if (f)
189
+ if (x)
190
190
  return b ? /* @__PURE__ */ t.jsx(
191
191
  "img",
192
192
  {
@@ -225,7 +225,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
225
225
  const j = [...s], N = l.find((v) => v.name === S);
226
226
  if (!N) return;
227
227
  const O = N.id, c = j.map((v) => v === b ? O : v);
228
- n([...c]);
228
+ i([...c]);
229
229
  },
230
230
  value: M.name,
231
231
  options: l.filter((S) => !s.find((j) => j === S.id)).map((S) => S.name),
@@ -240,7 +240,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
240
240
  width: 20,
241
241
  height: 20,
242
242
  fill: "#C12A2A",
243
- onClick: () => n(s.filter((S) => S !== b))
243
+ onClick: () => i(s.filter((S) => S !== b))
244
244
  }
245
245
  ) }) })
246
246
  ] });
@@ -254,12 +254,12 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
254
254
  );
255
255
  };
256
256
  return /* @__PURE__ */ t.jsxs("div", { className: J.productsBlock, children: [
257
- (m || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: J.top, children: [
258
- m && /* @__PURE__ */ t.jsx("h3", { className: J.title, children: m }),
259
- i !== void 0 && /* @__PURE__ */ t.jsx(
257
+ (h || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: J.top, children: [
258
+ h && /* @__PURE__ */ t.jsx("h3", { className: J.title, children: h }),
259
+ n !== void 0 && /* @__PURE__ */ t.jsx(
260
260
  ot,
261
261
  {
262
- current: i,
262
+ current: n,
263
263
  onChange: (b) => e == null ? void 0 : e(b)
264
264
  }
265
265
  )
@@ -267,7 +267,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
267
267
  r && T && /* @__PURE__ */ t.jsx(yt, { ...T }),
268
268
  /* @__PURE__ */ t.jsxs("div", { className: J.products, children: [
269
269
  o && /* @__PURE__ */ t.jsx("h5", { className: J.subtitle, children: o }),
270
- s.map((b) => a(b, x)),
270
+ s.map((b) => a(b, f)),
271
271
  $ && /* @__PURE__ */ t.jsx(
272
272
  "div",
273
273
  {
@@ -296,7 +296,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
296
296
  break;
297
297
  }
298
298
  }
299
- b.push((q == null ? void 0 : q.id) || l[0].id), n(b);
299
+ b.push((q == null ? void 0 : q.id) || l[0].id), i(b);
300
300
  },
301
301
  style: {
302
302
  width: "fit-content"
@@ -317,7 +317,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
317
317
  }
318
318
  )
319
319
  ] }),
320
- p !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: p }),
320
+ m !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: m }),
321
321
  C !== void 0 && /* @__PURE__ */ t.jsx(
322
322
  dt,
323
323
  {
@@ -360,49 +360,49 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
360
360
  deleteButton: Le,
361
361
  closeIcon: De
362
362
  };
363
- function He({ product: d, children: i }) {
363
+ function He({ product: d, children: n }) {
364
364
  const {
365
365
  attributes: e,
366
366
  listeners: s,
367
- setNodeRef: n,
368
- transform: p,
369
- transition: m,
367
+ setNodeRef: i,
368
+ transform: m,
369
+ transition: h,
370
370
  isDragging: o
371
371
  } = ft({
372
372
  id: d.id
373
373
  }), u = {
374
- transform: bt.Transform.toString(p),
375
- transition: m
374
+ transform: bt.Transform.toString(m),
375
+ transition: h
376
376
  };
377
377
  return /* @__PURE__ */ t.jsx(
378
378
  "div",
379
379
  {
380
- ref: n,
380
+ ref: i,
381
381
  style: u,
382
382
  className: `${U.product} ${o ? U.dragging : ""}`,
383
383
  ...e,
384
384
  ...s,
385
- children: i
385
+ children: n
386
386
  }
387
387
  );
388
388
  }
389
389
  const Zn = (d) => {
390
390
  const {
391
- isActiveItems: i,
391
+ isActiveItems: n,
392
392
  setIsActiveItems: e,
393
393
  items: s,
394
- setItems: n,
395
- title: p,
396
- subtitle: m,
394
+ setItems: i,
395
+ title: m,
396
+ subtitle: h,
397
397
  editable: o = !0,
398
398
  draggable: u = !1,
399
- deletable: f = !0,
399
+ deletable: x = !0,
400
400
  addable: $ = !0,
401
401
  itemsType: l,
402
402
  itemsOptions: r,
403
403
  addableOptions: T = {},
404
404
  limit: w
405
- } = d, [C, x] = _.useState(null), [B, a] = _.useState(null), b = _.useRef(null), q = mt(
405
+ } = d, [C, f] = _.useState(null), [B, a] = _.useState(null), b = _.useRef(null), q = mt(
406
406
  ht(pt, {
407
407
  activationConstraint: {
408
408
  distance: 5
@@ -412,7 +412,7 @@ const Zn = (d) => {
412
412
  _.useEffect(() => {
413
413
  if (C) {
414
414
  const j = [...s].map((N) => N.id === C.id ? C : N);
415
- n(j);
415
+ i(j);
416
416
  }
417
417
  }, [C]), _.useEffect(() => {
418
418
  b.current && B && (b.current.getBoundingClientRect().height, B.top);
@@ -423,14 +423,14 @@ const Zn = (d) => {
423
423
  a({
424
424
  top: O.top + window.scrollY,
425
425
  left: O.left - 30
426
- }), x(N);
426
+ }), f(N);
427
427
  }, L = (j) => {
428
428
  const { active: N, over: O } = j;
429
429
  if (O && N.id !== O.id) {
430
430
  const c = s.findIndex((I) => I.id === N.id), v = s.findIndex((I) => I.id === O.id);
431
431
  if (c !== -1 && v !== -1) {
432
432
  const I = [...s], [D] = I.splice(c, 1);
433
- I.splice(v, 0, D), n(I);
433
+ I.splice(v, 0, D), i(I);
434
434
  }
435
435
  }
436
436
  }, S = (j, N) => {
@@ -456,12 +456,12 @@ const Zn = (d) => {
456
456
  "en-US": c
457
457
  }
458
458
  } : P);
459
- x({
459
+ f({
460
460
  ...j,
461
461
  name: {
462
462
  "en-US": c
463
463
  }
464
- }), n([...D]);
464
+ }), i([...D]);
465
465
  },
466
466
  value: j.name,
467
467
  options: r.filter((c) => !s.find((v) => v.name === c.name)).map((c) => c.name)
@@ -478,7 +478,7 @@ const Zn = (d) => {
478
478
  onClick: (c) => M(c, j)
479
479
  }
480
480
  ) }),
481
- f && /* @__PURE__ */ t.jsx("div", { className: U.deleteButton, children: /* @__PURE__ */ t.jsx(
481
+ x && /* @__PURE__ */ t.jsx("div", { className: U.deleteButton, children: /* @__PURE__ */ t.jsx(
482
482
  g,
483
483
  {
484
484
  name: "Trash",
@@ -486,7 +486,7 @@ const Zn = (d) => {
486
486
  width: 20,
487
487
  height: 20,
488
488
  fill: "#C12A2A",
489
- onClick: () => n(s.filter((c) => c.id !== j.id))
489
+ onClick: () => i(s.filter((c) => c.id !== j.id))
490
490
  }
491
491
  ) })
492
492
  ] })
@@ -509,18 +509,18 @@ const Zn = (d) => {
509
509
  );
510
510
  };
511
511
  return /* @__PURE__ */ t.jsxs("div", { className: U.productsBlock, children: [
512
- (p || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: U.top, children: [
513
- p && /* @__PURE__ */ t.jsx("h3", { className: U.title, children: p }),
514
- i !== void 0 && /* @__PURE__ */ t.jsx(
512
+ (m || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: U.top, children: [
513
+ m && /* @__PURE__ */ t.jsx("h3", { className: U.title, children: m }),
514
+ n !== void 0 && /* @__PURE__ */ t.jsx(
515
515
  ot,
516
516
  {
517
- current: i,
517
+ current: n,
518
518
  onChange: (j) => e == null ? void 0 : e(j)
519
519
  }
520
520
  )
521
521
  ] }),
522
522
  /* @__PURE__ */ t.jsxs("div", { className: U.products, children: [
523
- m && /* @__PURE__ */ t.jsx("h5", { className: U.subtitle, children: m }),
523
+ h && /* @__PURE__ */ t.jsx("h5", { className: U.subtitle, children: h }),
524
524
  u ? /* @__PURE__ */ t.jsx(
525
525
  _t,
526
526
  {
@@ -567,7 +567,7 @@ const Zn = (d) => {
567
567
  name: N ? N.name : r[0].name,
568
568
  id: (N == null ? void 0 : N.id) || r[0].id,
569
569
  ...T
570
- }), n(j);
570
+ }), i(j);
571
571
  },
572
572
  style: {
573
573
  width: "fit-content"
@@ -591,42 +591,42 @@ const Zn = (d) => {
591
591
  ] });
592
592
  };
593
593
  function Ue(d) {
594
- const { product: i, children: e } = d, { attributes: s, listeners: n, setNodeRef: p, transform: m, transition: o, isDragging: u } = ft({
595
- id: i.id
596
- }), f = {
597
- transform: bt.Transform.toString(m),
594
+ const { product: n, children: e } = d, { attributes: s, listeners: i, setNodeRef: m, transform: h, transition: o, isDragging: u } = ft({
595
+ id: n.id
596
+ }), x = {
597
+ transform: bt.Transform.toString(h),
598
598
  transition: o
599
599
  };
600
600
  return /* @__PURE__ */ t.jsx(
601
601
  "div",
602
602
  {
603
- ref: p,
604
- style: f,
603
+ ref: m,
604
+ style: x,
605
605
  className: `${H.product} ${u ? H.dragging : ""}`,
606
606
  ...s,
607
- ...n,
607
+ ...i,
608
608
  children: e
609
609
  }
610
610
  );
611
611
  }
612
612
  const ti = (d) => {
613
613
  const {
614
- isActiveItems: i,
614
+ isActiveItems: n,
615
615
  setIsActiveItems: e,
616
616
  items: s,
617
- setItems: n,
618
- other: p,
619
- title: m,
617
+ setItems: i,
618
+ other: m,
619
+ title: h,
620
620
  subtitle: o,
621
621
  editable: u = !0,
622
- draggable: f = !1,
622
+ draggable: x = !1,
623
623
  withImage: $ = !1,
624
624
  deletable: l = !0,
625
625
  addable: r = !0,
626
626
  itemsType: T,
627
627
  itemsPlaceholder: w = "",
628
628
  itemsOptions: C,
629
- hasRangeSelector: x = !1,
629
+ hasRangeSelector: f = !1,
630
630
  rangeSelectorOptions: B,
631
631
  modalOptions: a,
632
632
  addableOptions: b = {},
@@ -642,41 +642,41 @@ const ti = (d) => {
642
642
  })
643
643
  );
644
644
  _.useEffect(() => {
645
- const h = () => {
645
+ const p = () => {
646
646
  L(null), I(!1);
647
647
  };
648
- return document.body.addEventListener("click", h), L(null), I(!1), () => {
649
- L(null), I(!1), document.body.removeEventListener("click", h);
648
+ return document.body.addEventListener("click", p), L(null), I(!1), () => {
649
+ L(null), I(!1), document.body.removeEventListener("click", p);
650
650
  };
651
651
  }, []), _.useEffect(() => {
652
652
  if (M) {
653
- const h = [...s].map((A) => A.id === M.id ? M : A);
654
- n(h);
653
+ const p = [...s].map((A) => A.id === M.id ? M : A);
654
+ i(p);
655
655
  }
656
656
  }, [M]), _.useEffect(() => {
657
657
  if (c.current && N) {
658
- const h = c.current.getBoundingClientRect().height, A = window.innerHeight;
658
+ const p = c.current.getBoundingClientRect().height, A = window.innerHeight;
659
659
  let E = N.top;
660
- E + h > A + window.scrollY - 200 && (E = A + window.scrollY - h - 200), E < 0 && (E = 10), j({
660
+ E + p > A + window.scrollY - 200 && (E = A + window.scrollY - p - 200), E < 0 && (E = 10), j({
661
661
  top: E,
662
662
  left: N.left
663
663
  });
664
664
  }
665
665
  }, [c.current, N]);
666
- const P = (h, A) => {
667
- h.stopPropagation();
668
- const E = h.target.getBoundingClientRect();
666
+ const P = (p, A) => {
667
+ p.stopPropagation();
668
+ const E = p.target.getBoundingClientRect();
669
669
  O({
670
670
  top: E.top + window.scrollY,
671
671
  left: E.left - 30
672
672
  }), L(A), I(!0);
673
673
  };
674
- function R(h) {
674
+ function R(p) {
675
675
  if ($)
676
- return h ? /* @__PURE__ */ t.jsx(
676
+ return p ? /* @__PURE__ */ t.jsx(
677
677
  "img",
678
678
  {
679
- src: `https://imagedelivery.net/${h[0]}/w=1000`,
679
+ src: `https://imagedelivery.net/${p[0]}/w=1000`,
680
680
  alt: "image",
681
681
  width: 16,
682
682
  height: 16
@@ -691,19 +691,19 @@ const ti = (d) => {
691
691
  }
692
692
  );
693
693
  }
694
- const K = (h) => {
695
- const { active: A, over: E } = h;
694
+ const K = (p) => {
695
+ const { active: A, over: E } = p;
696
696
  if (E && A.id !== E.id) {
697
697
  const z = s.findIndex((F) => F.id === A.id), et = s.findIndex((F) => F.id === E.id);
698
698
  if (z !== -1 && et !== -1) {
699
699
  const F = [...s], [X] = F.splice(z, 1);
700
- F.splice(et, 0, X), n(F);
700
+ F.splice(et, 0, X), i(F);
701
701
  }
702
702
  }
703
- }, st = (h) => {
703
+ }, st = (p) => {
704
704
  var E;
705
705
  const A = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
706
- f && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
706
+ x && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
707
707
  g,
708
708
  {
709
709
  name: "DotsSixVertical",
@@ -716,39 +716,39 @@ const ti = (d) => {
716
716
  at,
717
717
  {
718
718
  onChange: (z) => {
719
- const F = [...s].map((X) => X.id === h.id ? {
720
- ...h,
719
+ const F = [...s].map((X) => X.id === p.id ? {
720
+ ...p,
721
721
  name: {
722
722
  "en-US": z
723
723
  }
724
724
  } : X);
725
725
  L({
726
- ...h,
726
+ ...p,
727
727
  name: {
728
728
  "en-US": z
729
729
  }
730
- }), n([...F]);
730
+ }), i([...F]);
731
731
  },
732
- value: h.name["en-US"],
732
+ value: p.name["en-US"],
733
733
  options: C.filter(
734
734
  (z) => !s.find((et) => et.name["en-US"] === z)
735
735
  ),
736
- leftAddon: R(h.images)
736
+ leftAddon: R(p.images)
737
737
  }
738
738
  ),
739
739
  T === "input" && /* @__PURE__ */ t.jsx(
740
740
  dt,
741
741
  {
742
742
  onChange: (z) => {
743
- const F = [...s].map((X) => X.id === h.id ? {
744
- ...h,
743
+ const F = [...s].map((X) => X.id === p.id ? {
744
+ ...p,
745
745
  name: {
746
746
  "en-US": z
747
747
  }
748
748
  } : X);
749
- n([...F]);
749
+ i([...F]);
750
750
  },
751
- value: h.name["en-US"],
751
+ value: p.name["en-US"],
752
752
  placeholder: w
753
753
  }
754
754
  ),
@@ -756,13 +756,13 @@ const ti = (d) => {
756
756
  wt,
757
757
  {
758
758
  onChange: (z) => {
759
- const F = [...s].map((X) => X.id === h.id ? {
760
- ...h,
759
+ const F = [...s].map((X) => X.id === p.id ? {
760
+ ...p,
761
761
  images: z
762
762
  } : X);
763
- n([...F]);
763
+ i([...F]);
764
764
  },
765
- activeImage: (E = s.find((z) => z.id === h.id)) == null ? void 0 : E.images[0]
765
+ activeImage: (E = s.find((z) => z.id === p.id)) == null ? void 0 : E.images[0]
766
766
  }
767
767
  ),
768
768
  /* @__PURE__ */ t.jsxs("div", { className: H.buttons, children: [
@@ -773,7 +773,7 @@ const ti = (d) => {
773
773
  hoverable: !0,
774
774
  width: 20,
775
775
  height: 20,
776
- onClick: (z) => P(z, h)
776
+ onClick: (z) => P(z, p)
777
777
  }
778
778
  ) }),
779
779
  l && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
@@ -784,35 +784,35 @@ const ti = (d) => {
784
784
  width: 20,
785
785
  height: 20,
786
786
  fill: "#C12A2A",
787
- onClick: () => n(s.filter((z) => z.id !== h.id))
787
+ onClick: () => i(s.filter((z) => z.id !== p.id))
788
788
  }
789
789
  ) })
790
790
  ] })
791
791
  ] });
792
- return f ? /* @__PURE__ */ t.jsx(
792
+ return x ? /* @__PURE__ */ t.jsx(
793
793
  Ue,
794
794
  {
795
- product: h,
795
+ product: p,
796
796
  children: A
797
797
  },
798
- h.id
798
+ p.id
799
799
  ) : /* @__PURE__ */ t.jsx(
800
800
  "div",
801
801
  {
802
802
  className: H.product,
803
803
  children: A
804
804
  },
805
- h.id
805
+ p.id
806
806
  );
807
807
  };
808
808
  return /* @__PURE__ */ t.jsxs("div", { className: H.productsBlock, children: [
809
- (m || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: H.top, children: [
810
- m && /* @__PURE__ */ t.jsx("h3", { className: H.title, children: m }),
811
- i !== void 0 && /* @__PURE__ */ t.jsx(
809
+ (h || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: H.top, children: [
810
+ h && /* @__PURE__ */ t.jsx("h3", { className: H.title, children: h }),
811
+ n !== void 0 && /* @__PURE__ */ t.jsx(
812
812
  ot,
813
813
  {
814
- current: i,
815
- onChange: (h) => e == null ? void 0 : e(h)
814
+ current: n,
815
+ onChange: (p) => e == null ? void 0 : e(p)
816
816
  }
817
817
  )
818
818
  ] }),
@@ -827,10 +827,10 @@ const ti = (d) => {
827
827
  setIsOpenModal: I
828
828
  }
829
829
  ),
830
- x && B && /* @__PURE__ */ t.jsx(yt, { ...B }),
830
+ f && B && /* @__PURE__ */ t.jsx(yt, { ...B }),
831
831
  /* @__PURE__ */ t.jsxs("div", { className: H.products, children: [
832
832
  o && /* @__PURE__ */ t.jsx("h5", { className: H.subtitle, children: o }),
833
- f ? /* @__PURE__ */ t.jsx(
833
+ x ? /* @__PURE__ */ t.jsx(
834
834
  _t,
835
835
  {
836
836
  sensors: D,
@@ -838,13 +838,13 @@ const ti = (d) => {
838
838
  children: /* @__PURE__ */ t.jsx(
839
839
  gt,
840
840
  {
841
- items: s.map((h) => h.id),
841
+ items: s.map((p) => p.id),
842
842
  strategy: xt,
843
- children: s.map((h) => st(h))
843
+ children: s.map((p) => st(p))
844
844
  }
845
845
  )
846
846
  }
847
- ) : s.map((h) => st(h)),
847
+ ) : s.map((p) => st(p)),
848
848
  r && /* @__PURE__ */ t.jsx(
849
849
  "div",
850
850
  {
@@ -863,7 +863,7 @@ const ti = (d) => {
863
863
  size: "s",
864
864
  disabled: !!(q && q <= s.length),
865
865
  onClick: () => {
866
- const h = [...s];
866
+ const p = [...s];
867
867
  let A = null;
868
868
  if (C) {
869
869
  for (let E = 0; E < C.length; E++)
@@ -872,7 +872,7 @@ const ti = (d) => {
872
872
  break;
873
873
  }
874
874
  }
875
- T === "select" && C ? h.push({
875
+ T === "select" && C ? p.push({
876
876
  name: {
877
877
  "en-US": A || C[0]
878
878
  },
@@ -880,21 +880,21 @@ const ti = (d) => {
880
880
  ...b,
881
881
  maxSymbols: 100
882
882
  // пример значения
883
- }) : T === "input" ? h.push({
883
+ }) : T === "input" ? p.push({
884
884
  name: {
885
885
  "en-US": ""
886
886
  },
887
887
  id: it(),
888
888
  ...b,
889
889
  maxSymbols: 100
890
- }) : h.push({
890
+ }) : p.push({
891
891
  name: {
892
892
  "en-US": `Image ${s.length + 1}`
893
893
  },
894
894
  id: it(),
895
895
  ...b,
896
896
  maxSymbols: 100
897
- }), n(h);
897
+ }), i(p);
898
898
  },
899
899
  style: {
900
900
  width: "fit-content"
@@ -915,7 +915,7 @@ const ti = (d) => {
915
915
  }
916
916
  )
917
917
  ] }),
918
- p !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: p })
918
+ m !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: m })
919
919
  ] });
920
920
  }, Fe = "_subtitle_jql1y_1", Ve = "_header_jql1y_8", Ye = "_text_jql1y_9", Ge = "_productsBlock_jql1y_10", We = "_buttonsBlock_jql1y_11", Je = "_top_jql1y_23", Xe = "_itemsBlock_jql1y_32", Qe = "_typeTexts_jql1y_38", Ke = "_block_jql1y_45", Ze = "_active_jql1y_58", ts = "_products_jql1y_10", es = "_product_jql1y_10", ss = "_button_jql1y_11", ns = "_image_jql1y_88", is = "_info_jql1y_95", os = "_name_jql1y_107", as = "_buttons_jql1y_11", cs = "_modal_jql1y_118", ls = "_other_jql1y_138", rs = "_options_jql1y_144", ds = "_addButton_jql1y_150", us = "_deleteButton_jql1y_165", Q = {
921
921
  subtitle: Fe,
@@ -941,35 +941,35 @@ const ti = (d) => {
941
941
  addButton: ds,
942
942
  deleteButton: us
943
943
  }, ms = (d) => {
944
- const { buttons: i, setButtons: e, deletable: s = !0, addable: n = !0, editableLink: p = !0 } = d, { pages: m } = Bt(), [o, u] = _.useState(null), [f, $] = _.useState({
944
+ const { buttons: n, setButtons: e, deletable: s = !0, addable: i = !0, editableLink: m = !0 } = d, { pages: h } = Bt(), [o, u] = _.useState(null), [x, $] = _.useState({
945
945
  top: 0,
946
946
  left: 0
947
947
  }), [l, r] = _.useState(null), T = _.useRef(null);
948
948
  _.useEffect(() => {
949
949
  if (o) {
950
- const x = [...i].map((B) => B.id === o.id ? o : B);
951
- e(x);
950
+ const f = [...n].map((B) => B.id === o.id ? o : B);
951
+ e(f);
952
952
  }
953
953
  }, [o]), _.useEffect(() => {
954
954
  if (T.current && l) {
955
- const x = T.current.getBoundingClientRect().height, B = window.innerHeight;
955
+ const f = T.current.getBoundingClientRect().height, B = window.innerHeight;
956
956
  let a = l.top;
957
- a + x > B + window.scrollY - 200 && (a = B + window.scrollY - x - 200), a < 0 && (a = 10), $({
957
+ a + f > B + window.scrollY - 200 && (a = B + window.scrollY - f - 200), a < 0 && (a = 10), $({
958
958
  top: a,
959
959
  left: l.left
960
960
  });
961
961
  }
962
962
  }, [T.current, l]);
963
- const w = (x, B) => {
964
- x.stopPropagation();
965
- const a = x.target.getBoundingClientRect();
963
+ const w = (f, B) => {
964
+ f.stopPropagation();
965
+ const a = f.target.getBoundingClientRect();
966
966
  r({
967
967
  top: a.top + window.scrollY - 70,
968
- left: a.left - (n ? 30 : 65)
968
+ left: a.left - (i ? 30 : 65)
969
969
  }), u(B);
970
- }, C = (x, B) => {
971
- const a = [...i], b = {
972
- ...x,
970
+ }, C = (f, B) => {
971
+ const a = [...n], b = {
972
+ ...f,
973
973
  id: Math.random().toString(36).substr(2, 9)
974
974
  // Генерируем новый уникальный ID
975
975
  };
@@ -977,7 +977,7 @@ const ti = (d) => {
977
977
  };
978
978
  return /* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
979
979
  /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: "Button Type" }),
980
- i.map((x, B) => /* @__PURE__ */ t.jsxs(
980
+ n.map((f, B) => /* @__PURE__ */ t.jsxs(
981
981
  "div",
982
982
  {
983
983
  className: Q.product,
@@ -986,13 +986,13 @@ const ti = (d) => {
986
986
  at,
987
987
  {
988
988
  onChange: (a) => {
989
- const q = [...i].map((M) => M.id === x.id ? {
990
- ...x,
989
+ const q = [...n].map((M) => M.id === f.id ? {
990
+ ...f,
991
991
  type: a
992
992
  } : M);
993
993
  e(q);
994
994
  },
995
- value: x.type,
995
+ value: f.type,
996
996
  options: ["Primary", "Secondary", "Tertiary"]
997
997
  }
998
998
  ),
@@ -1005,7 +1005,7 @@ const ti = (d) => {
1005
1005
  width: 20,
1006
1006
  height: 20,
1007
1007
  onClick: () => {
1008
- C(x, B);
1008
+ C(f, B);
1009
1009
  }
1010
1010
  }
1011
1011
  ) }),
@@ -1017,7 +1017,7 @@ const ti = (d) => {
1017
1017
  width: 20,
1018
1018
  height: 20,
1019
1019
  onClick: (a) => {
1020
- w(a, x);
1020
+ w(a, f);
1021
1021
  }
1022
1022
  }
1023
1023
  ) }),
@@ -1027,7 +1027,7 @@ const ti = (d) => {
1027
1027
  name: "Trash",
1028
1028
  hoverable: !0,
1029
1029
  onClick: () => {
1030
- const a = i.filter((b) => b.id !== x.id);
1030
+ const a = n.filter((b) => b.id !== f.id);
1031
1031
  e(a);
1032
1032
  },
1033
1033
  width: 20,
@@ -1038,7 +1038,7 @@ const ti = (d) => {
1038
1038
  ] })
1039
1039
  ]
1040
1040
  },
1041
- x.id
1041
+ f.id
1042
1042
  )),
1043
1043
  o && /* @__PURE__ */ t.jsx(
1044
1044
  $t,
@@ -1046,11 +1046,11 @@ const ti = (d) => {
1046
1046
  ref: T,
1047
1047
  activeButton: o,
1048
1048
  setActiveButton: u,
1049
- popupPosition: f,
1050
- editableLink: p
1049
+ popupPosition: x,
1050
+ editableLink: m
1051
1051
  }
1052
1052
  ),
1053
- n && /* @__PURE__ */ t.jsx(
1053
+ i && /* @__PURE__ */ t.jsx(
1054
1054
  "div",
1055
1055
  {
1056
1056
  style: {
@@ -1065,8 +1065,8 @@ const ti = (d) => {
1065
1065
  className: Q.button,
1066
1066
  size: "s",
1067
1067
  onClick: () => {
1068
- const x = [...i];
1069
- p ? x.push({
1068
+ const f = [...n];
1069
+ m ? f.push({
1070
1070
  type: "Primary",
1071
1071
  id: it(),
1072
1072
  typesText: [],
@@ -1074,9 +1074,9 @@ const ti = (d) => {
1074
1074
  "en-US": "Button Name"
1075
1075
  },
1076
1076
  destination: "Go to Page",
1077
- page: m ? Object.values(m)[0].name : "Home",
1077
+ page: h ? Object.values(h)[0].name : "Home",
1078
1078
  openInNewTab: !1
1079
- }) : x.push({
1079
+ }) : f.push({
1080
1080
  type: "Primary",
1081
1081
  id: it(),
1082
1082
  typesText: [],
@@ -1084,9 +1084,9 @@ const ti = (d) => {
1084
1084
  "en-US": "Create Ticket"
1085
1085
  },
1086
1086
  destination: "Go to Page",
1087
- page: m ? Object.values(m)[0].name : "Home",
1087
+ page: h ? Object.values(h)[0].name : "Home",
1088
1088
  openInNewTab: !1
1089
- }), e(x);
1089
+ }), e(f);
1090
1090
  },
1091
1091
  style: {
1092
1092
  width: "fit-content"
@@ -1109,12 +1109,12 @@ const ti = (d) => {
1109
1109
  ] });
1110
1110
  }, ei = (d) => {
1111
1111
  const {
1112
- isActiveButtons: i,
1112
+ isActiveButtons: n,
1113
1113
  setIsActiveButtons: e,
1114
1114
  buttons: s,
1115
- setButtons: n,
1116
- editableLink: p = !0,
1117
- addable: m = !0,
1115
+ setButtons: i,
1116
+ editableLink: m = !0,
1117
+ addable: h = !0,
1118
1118
  deletable: o = !0
1119
1119
  } = d;
1120
1120
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: rt.buttonsBlock, children: [
@@ -1123,59 +1123,59 @@ const ti = (d) => {
1123
1123
  /* @__PURE__ */ t.jsx(
1124
1124
  ot,
1125
1125
  {
1126
- current: i,
1126
+ current: n,
1127
1127
  onChange: (u) => e(u)
1128
1128
  }
1129
1129
  )
1130
1130
  ] }),
1131
- i && /* @__PURE__ */ t.jsx(
1131
+ n && /* @__PURE__ */ t.jsx(
1132
1132
  ms,
1133
1133
  {
1134
1134
  buttons: s,
1135
- setButtons: n,
1136
- editableLink: p,
1137
- addable: m,
1135
+ setButtons: i,
1136
+ editableLink: m,
1137
+ addable: h,
1138
1138
  deletable: o
1139
1139
  }
1140
1140
  )
1141
1141
  ] }) });
1142
1142
  };
1143
1143
  function hs(d) {
1144
- const { product: i, children: e } = d, { attributes: s, listeners: n, setNodeRef: p, transform: m, transition: o, isDragging: u } = ft({
1145
- id: String(i.listingId)
1146
- }), f = {
1147
- transform: bt.Transform.toString(m),
1144
+ const { product: n, children: e } = d, { attributes: s, listeners: i, setNodeRef: m, transform: h, transition: o, isDragging: u } = ft({
1145
+ id: String(n.listingId)
1146
+ }), x = {
1147
+ transform: bt.Transform.toString(h),
1148
1148
  transition: o
1149
1149
  };
1150
1150
  return /* @__PURE__ */ t.jsx(
1151
1151
  "div",
1152
1152
  {
1153
- ref: p,
1154
- style: f,
1153
+ ref: m,
1154
+ style: x,
1155
1155
  className: `${V.product} ${u ? V.dragging : ""}`,
1156
1156
  ...s,
1157
- ...n,
1157
+ ...i,
1158
1158
  children: e
1159
1159
  }
1160
1160
  );
1161
1161
  }
1162
1162
  const si = (d) => {
1163
1163
  const {
1164
- isActiveItems: i,
1164
+ isActiveItems: n,
1165
1165
  setIsActiveItems: e,
1166
1166
  items: s,
1167
- setItems: n,
1168
- other: p,
1169
- title: m,
1167
+ setItems: i,
1168
+ other: m,
1169
+ title: h,
1170
1170
  subtitle: o,
1171
1171
  editable: u = !0,
1172
- draggable: f = !1,
1172
+ draggable: x = !1,
1173
1173
  withImage: $ = !1,
1174
1174
  deletable: l = !0,
1175
1175
  addable: r = !0,
1176
1176
  itemsType: T,
1177
1177
  itemsOptions: w
1178
- } = d, [C, x] = _.useState(
1178
+ } = d, [C, f] = _.useState(
1179
1179
  null
1180
1180
  ), [B, a] = _.useState({
1181
1181
  top: 0,
@@ -1189,15 +1189,15 @@ const si = (d) => {
1189
1189
  );
1190
1190
  _.useEffect(() => {
1191
1191
  const c = () => {
1192
- x(null), q(!1);
1192
+ f(null), q(!1);
1193
1193
  };
1194
- return document.body.addEventListener("click", c), x(null), q(!1), () => {
1195
- x(null), q(!1), document.body.removeEventListener("click", c);
1194
+ return document.body.addEventListener("click", c), f(null), q(!1), () => {
1195
+ f(null), q(!1), document.body.removeEventListener("click", c);
1196
1196
  };
1197
1197
  }, []), _.useEffect(() => {
1198
1198
  if (C) {
1199
1199
  const c = [...s].map((v) => v.listingId === C.listingId ? C : v);
1200
- n(c);
1200
+ i(c);
1201
1201
  }
1202
1202
  }, [C]);
1203
1203
  const L = (c, v) => {
@@ -1207,7 +1207,7 @@ const si = (d) => {
1207
1207
  R + D > P && (R = P - D - 20), q(!0), a({
1208
1208
  top: R - 80,
1209
1209
  left: I.left - 30
1210
- }), x(v);
1210
+ }), f(v);
1211
1211
  };
1212
1212
  function S(c) {
1213
1213
  if ($)
@@ -1235,14 +1235,14 @@ const si = (d) => {
1235
1235
  const D = s.findIndex((R) => String(R.listingId) === v.id), P = s.findIndex((R) => String(R.listingId) === I.id);
1236
1236
  if (D !== -1 && P !== -1) {
1237
1237
  const R = [...s], [K] = R.splice(D, 1);
1238
- R.splice(P, 0, K), n(R);
1238
+ R.splice(P, 0, K), i(R);
1239
1239
  }
1240
1240
  }
1241
1241
  }, N = (c, v) => {
1242
1242
  const I = w.find((P) => c.listingId === P.id);
1243
1243
  if (!I) return null;
1244
1244
  const D = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1245
- f && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1245
+ x && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1246
1246
  g,
1247
1247
  {
1248
1248
  name: "DotsSixVertical",
@@ -1260,8 +1260,8 @@ const si = (d) => {
1260
1260
  const st = {
1261
1261
  listingId: K.id,
1262
1262
  image: K.productData.images.length > 0 ? K.productData.images[0].cfId : ""
1263
- }, h = R.map((A) => A.listingId === c.listingId ? st : A);
1264
- x(st), n([...h]);
1263
+ }, p = R.map((A) => A.listingId === c.listingId ? st : A);
1264
+ f(st), i([...p]);
1265
1265
  },
1266
1266
  value: I.productData.name,
1267
1267
  options: [
@@ -1292,12 +1292,12 @@ const si = (d) => {
1292
1292
  width: 20,
1293
1293
  height: 20,
1294
1294
  fill: "#C12A2A",
1295
- onClick: () => n(s.filter((P) => P !== c))
1295
+ onClick: () => i(s.filter((P) => P !== c))
1296
1296
  }
1297
1297
  ) })
1298
1298
  ] })
1299
1299
  ] });
1300
- return f ? /* @__PURE__ */ t.jsx(
1300
+ return x ? /* @__PURE__ */ t.jsx(
1301
1301
  hs,
1302
1302
  {
1303
1303
  product: c,
@@ -1314,12 +1314,12 @@ const si = (d) => {
1314
1314
  );
1315
1315
  }, O = _.useRef(null);
1316
1316
  return /* @__PURE__ */ t.jsxs("div", { className: V.productsBlock, children: [
1317
- (m || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: V.top, children: [
1318
- m && /* @__PURE__ */ t.jsx("h3", { className: V.title, children: m }),
1319
- i !== void 0 && /* @__PURE__ */ t.jsx(
1317
+ (h || n !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: V.top, children: [
1318
+ h && /* @__PURE__ */ t.jsx("h3", { className: V.title, children: h }),
1319
+ n !== void 0 && /* @__PURE__ */ t.jsx(
1320
1320
  ot,
1321
1321
  {
1322
- current: i,
1322
+ current: n,
1323
1323
  onChange: (c) => e == null ? void 0 : e(c)
1324
1324
  }
1325
1325
  )
@@ -1329,15 +1329,15 @@ const si = (d) => {
1329
1329
  {
1330
1330
  ref: O,
1331
1331
  activeItem: C,
1332
- setActiveItem: x,
1332
+ setActiveItem: f,
1333
1333
  setIsOpenModal: q,
1334
1334
  popupPosition: B,
1335
1335
  itemsOptions: w
1336
1336
  }
1337
1337
  ),
1338
- i && /* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
1338
+ n && /* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
1339
1339
  o && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: o }),
1340
- f ? /* @__PURE__ */ t.jsx(
1340
+ x ? /* @__PURE__ */ t.jsx(
1341
1341
  _t,
1342
1342
  {
1343
1343
  sensors: M,
@@ -1376,7 +1376,7 @@ const si = (d) => {
1376
1376
  });
1377
1377
  break;
1378
1378
  }
1379
- n(c);
1379
+ i(c);
1380
1380
  },
1381
1381
  disabled: s.length === w.length,
1382
1382
  style: {
@@ -1398,7 +1398,7 @@ const si = (d) => {
1398
1398
  }
1399
1399
  )
1400
1400
  ] }),
1401
- i && p !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: p })
1401
+ n && m !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: m })
1402
1402
  ] });
1403
1403
  }, ps = "_options_6cemk_1", _s = "_price_6cemk_12", gs = "_oldPrice_6cemk_19", xs = "_newPrice_6cemk_27", fs = "_animate_6cemk_34", bs = "_appearAndBounce_6cemk_1", js = "_meta_6cemk_52", vs = "_info_6cemk_58", ys = "_infoRight_6cemk_66", Ns = "_buttons_6cemk_73", ks = "_variants_6cemk_80", Is = "_variant_6cemk_80", Cs = "_stock_6cemk_98", Ss = "_variantInfo_6cemk_105", ws = "_quantity_6cemk_111", Bs = "_count_6cemk_118", $s = "_focused_6cemk_135", Ps = "_button_6cemk_73", Ms = "_activeVariant_6cemk_161", Ts = "_chargeTypes_6cemk_165", qs = "_charge_6cemk_165", As = "_chargeActive_6cemk_190", Os = "_title_6cemk_198", k = {
1404
1404
  options: ps,
@@ -1427,8 +1427,8 @@ const si = (d) => {
1427
1427
  };
1428
1428
  var It = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(It || {});
1429
1429
  const ni = (d) => {
1430
- var x, B;
1431
- const { variants: i } = d, [e, s] = _.useState(i[0]), [n, p] = _.useState(e.chargeTypes[0]), m = lt(), [o, u] = _.useState(1), { reset: f, addProductToCart: $ } = jt(), [l, r] = _.useState(!1);
1430
+ var f, B;
1431
+ const { variants: n } = d, [e, s] = _.useState(n[0]), [i, m] = _.useState(e.chargeTypes[0]), h = lt(), [o, u] = _.useState(1), { reset: x, addProductToCart: $ } = jt(), [l, r] = _.useState(!1);
1432
1432
  _.useEffect(() => {
1433
1433
  r(!0);
1434
1434
  const a = setTimeout(() => r(!1), 600);
@@ -1442,7 +1442,7 @@ const ni = (d) => {
1442
1442
  });
1443
1443
  }
1444
1444
  function w() {
1445
- f(), T(), m("/checkout");
1445
+ x(), T(), h("/checkout");
1446
1446
  }
1447
1447
  function C(a) {
1448
1448
  if (a >= 864e5) {
@@ -1466,14 +1466,14 @@ const ni = (d) => {
1466
1466
  "div",
1467
1467
  {
1468
1468
  className: Y(k.charge, {
1469
- [k.chargeActive]: n === a
1469
+ [k.chargeActive]: i === a
1470
1470
  }),
1471
- onClick: () => p(a),
1471
+ onClick: () => m(a),
1472
1472
  children: It[a]
1473
1473
  },
1474
1474
  a
1475
1475
  )) }),
1476
- /* @__PURE__ */ t.jsx("div", { className: k.variants, children: i.map((a) => {
1476
+ /* @__PURE__ */ t.jsx("div", { className: k.variants, children: n.map((a) => {
1477
1477
  var b;
1478
1478
  return /* @__PURE__ */ t.jsxs(
1479
1479
  "div",
@@ -1487,10 +1487,10 @@ const ni = (d) => {
1487
1487
  /* @__PURE__ */ t.jsx("span", { className: k.title, children: a.name }),
1488
1488
  /* @__PURE__ */ t.jsxs("span", { children: [
1489
1489
  "$",
1490
- n === "ONE_TIME" ? a.price.amount : a.subscriptionSettings ? a.subscriptionSettings.price.amount : "Price Not Found"
1490
+ i === "ONE_TIME" ? a.price.amount : a.subscriptionSettings ? a.subscriptionSettings.price.amount : "Price Not Found"
1491
1491
  ] })
1492
1492
  ] }),
1493
- /* @__PURE__ */ t.jsx("div", { children: n === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: k.stock, children: [
1493
+ /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: k.stock, children: [
1494
1494
  ((b = a.quantity.restrictions) == null ? void 0 : b.max) || a.quantity.available || 0,
1495
1495
  " in stock"
1496
1496
  ] }) })
@@ -1499,7 +1499,7 @@ const ni = (d) => {
1499
1499
  a.id
1500
1500
  );
1501
1501
  }) }),
1502
- n === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: k.quantity, children: [
1502
+ i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: k.quantity, children: [
1503
1503
  /* @__PURE__ */ t.jsx(
1504
1504
  G,
1505
1505
  {
@@ -1518,7 +1518,7 @@ const ni = (d) => {
1518
1518
  type: "number",
1519
1519
  value: String(o),
1520
1520
  onChange: (a) => u(Number(a)),
1521
- max: ((x = e.quantity.restrictions) == null ? void 0 : x.max) || e.quantity.available || 1 / 0,
1521
+ max: ((f = e.quantity.restrictions) == null ? void 0 : f.max) || e.quantity.available || 1 / 0,
1522
1522
  min: ((B = e.quantity.restrictions) == null ? void 0 : B.min) || 0,
1523
1523
  centered: !0,
1524
1524
  disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available
@@ -1555,7 +1555,7 @@ const ni = (d) => {
1555
1555
  ] }),
1556
1556
  /* @__PURE__ */ t.jsxs("div", { className: k.info, children: [
1557
1557
  /* @__PURE__ */ t.jsx("span", { children: "Price" }),
1558
- /* @__PURE__ */ t.jsx("div", { className: k.infoRight, children: n === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: k.price, children: [
1558
+ /* @__PURE__ */ t.jsx("div", { className: k.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: k.price, children: [
1559
1559
  /* @__PURE__ */ t.jsxs("span", { className: Y(k.newPrice, { [k.animate]: l }), children: [
1560
1560
  "$ ",
1561
1561
  (e.price.amount || 0) * o
@@ -1589,10 +1589,10 @@ const ni = (d) => {
1589
1589
  type: "Primary",
1590
1590
  onClick: () => w(),
1591
1591
  disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available,
1592
- children: n === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
1592
+ children: i === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
1593
1593
  }
1594
1594
  ),
1595
- n === "ONE_TIME" && /* @__PURE__ */ t.jsx(
1595
+ i === "ONE_TIME" && /* @__PURE__ */ t.jsx(
1596
1596
  G,
1597
1597
  {
1598
1598
  type: "Secondary",
@@ -1644,18 +1644,18 @@ const ni = (d) => {
1644
1644
  pagesMobileModalHeader: xn,
1645
1645
  pagesMobileModalFooter: fn
1646
1646
  }, ii = (d) => {
1647
- const { shopping: i, signUp: e, isShowUserInfo: s = !0 } = d;
1647
+ const { shopping: n, signUp: e, isShowUserInfo: s = !0 } = d;
1648
1648
  return /* @__PURE__ */ t.jsxs("div", { className: y.buttons, children: [
1649
- i && /* @__PURE__ */ t.jsx(bn, {}),
1649
+ n && /* @__PURE__ */ t.jsx(bn, {}),
1650
1650
  s && /* @__PURE__ */ t.jsx(Ct, { signUp: e })
1651
1651
  ] });
1652
1652
  }, bn = () => {
1653
- const [d, i] = _.useState(!1), [e, s] = _.useState([]), { cart: n } = jt();
1654
- function p(f) {
1653
+ const [d, n] = _.useState(!1), [e, s] = _.useState([]), { cart: i } = jt();
1654
+ function m(x) {
1655
1655
  var $;
1656
- return !f || !(f != null && f.variants) ? !1 : ($ = f.variants.find((l) => l.id === f.activeVariantId)) == null ? void 0 : $.subscriptionSettings;
1656
+ return !x || !(x != null && x.variants) ? !1 : ($ = x.variants.find((l) => l.id === x.activeVariantId)) == null ? void 0 : $.subscriptionSettings;
1657
1657
  }
1658
- const m = n.parts.length > 0 && e.length > 0 && !p(e[0]), [o, u] = _.useState(!1);
1658
+ const h = i.parts.length > 0 && e.length > 0 && !m(e[0]), [o, u] = _.useState(!1);
1659
1659
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1660
1660
  /* @__PURE__ */ t.jsxs(
1661
1661
  G,
@@ -1664,8 +1664,8 @@ const ni = (d) => {
1664
1664
  style: {
1665
1665
  padding: 10
1666
1666
  },
1667
- onClick: (f) => {
1668
- f.stopPropagation(), window.location.pathname.includes("/admin/builder") || (i(!0), u(!0));
1667
+ onClick: (x) => {
1668
+ x.stopPropagation(), window.location.pathname.includes("/admin/builder") || (n(!0), u(!0));
1669
1669
  },
1670
1670
  children: [
1671
1671
  /* @__PURE__ */ t.jsx(
@@ -1675,7 +1675,7 @@ const ni = (d) => {
1675
1675
  fill: "var(--icon-primary)"
1676
1676
  }
1677
1677
  ),
1678
- m && /* @__PURE__ */ t.jsx("div", { className: y.shoppingCount, children: n.parts.length })
1678
+ h && /* @__PURE__ */ t.jsx("div", { className: y.shoppingCount, children: i.parts.length })
1679
1679
  ]
1680
1680
  }
1681
1681
  ),
@@ -1684,7 +1684,7 @@ const ni = (d) => {
1684
1684
  {
1685
1685
  close: () => {
1686
1686
  u(!1), setTimeout(() => {
1687
- i(!1);
1687
+ n(!1);
1688
1688
  }, 300);
1689
1689
  },
1690
1690
  withAnimation: !1,
@@ -1692,7 +1692,7 @@ const ni = (d) => {
1692
1692
  jn,
1693
1693
  {
1694
1694
  activeProducts: e,
1695
- isCartNotEmpty: m,
1695
+ isCartNotEmpty: h,
1696
1696
  isOpen: o
1697
1697
  }
1698
1698
  )
@@ -1700,8 +1700,8 @@ const ni = (d) => {
1700
1700
  )
1701
1701
  ] });
1702
1702
  }, jn = (d) => {
1703
- const { activeProducts: i, isCartNotEmpty: e, isOpen: s } = d, { cart: n, reset: p, getTotalAndDiscount: m, updateQuantityOfProduct: o } = jt(), u = lt();
1704
- function f(r) {
1703
+ const { activeProducts: n, isCartNotEmpty: e, isOpen: s } = d, { cart: i, reset: m, getTotalAndDiscount: h, updateQuantityOfProduct: o } = jt(), u = lt();
1704
+ function x(r) {
1705
1705
  u(r);
1706
1706
  }
1707
1707
  function $(r) {
@@ -1729,7 +1729,7 @@ const ni = (d) => {
1729
1729
  /* @__PURE__ */ t.jsxs("div", { className: y.top, children: [
1730
1730
  /* @__PURE__ */ t.jsxs("div", { className: y.info, children: [
1731
1731
  /* @__PURE__ */ t.jsx("span", { className: y.title, children: "Cart" }),
1732
- e && /* @__PURE__ */ t.jsx("div", { className: y.count, children: n.parts.length })
1732
+ e && /* @__PURE__ */ t.jsx("div", { className: y.count, children: i.parts.length })
1733
1733
  ] }),
1734
1734
  /* @__PURE__ */ t.jsx(
1735
1735
  "button",
@@ -1738,13 +1738,13 @@ const ni = (d) => {
1738
1738
  [y.activeClear]: e
1739
1739
  }),
1740
1740
  disabled: !e,
1741
- onClick: p,
1741
+ onClick: m,
1742
1742
  children: "Clear all"
1743
1743
  }
1744
1744
  )
1745
1745
  ] }),
1746
1746
  e ? /* @__PURE__ */ t.jsxs("div", { className: y.cart, children: [
1747
- /* @__PURE__ */ t.jsx("div", { className: y.products, children: i.map((r) => /* @__PURE__ */ t.jsxs(
1747
+ /* @__PURE__ */ t.jsx("div", { className: y.products, children: n.map((r) => /* @__PURE__ */ t.jsxs(
1748
1748
  "div",
1749
1749
  {
1750
1750
  className: y.product,
@@ -1825,10 +1825,10 @@ const ni = (d) => {
1825
1825
  ] }),
1826
1826
  /* @__PURE__ */ t.jsxs("div", { className: y.total, children: [
1827
1827
  "$",
1828
- m().total
1828
+ h().total
1829
1829
  ] })
1830
1830
  ] }),
1831
- /* @__PURE__ */ t.jsx(G, { onClick: () => f("/checkout"), children: "Checkout" })
1831
+ /* @__PURE__ */ t.jsx(G, { onClick: () => x("/checkout"), children: "Checkout" })
1832
1832
  ] })
1833
1833
  ] }) : /* @__PURE__ */ t.jsx(vn, {})
1834
1834
  ]
@@ -1855,17 +1855,19 @@ const ni = (d) => {
1855
1855
  }
1856
1856
  )
1857
1857
  ] })
1858
- ] }), Ct = ({ signUp: d }) => {
1859
- const i = JSON.parse(localStorage.getItem("token") || "{}"), { data: e } = i, s = lt();
1860
- function n(o) {
1861
- window.location.pathname.includes("/admin/builder") || s(o);
1858
+ ] }), Ct = ({ signUp: d, close: n }) => {
1859
+ const e = JSON.parse(localStorage.getItem("token") || "{}"), { data: s } = e, i = lt();
1860
+ function m(u) {
1861
+ window.location.pathname.includes("/admin/builder") || i(u);
1862
1862
  }
1863
- if (!e)
1863
+ if (!s)
1864
1864
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1865
1865
  /* @__PURE__ */ t.jsx(
1866
1866
  G,
1867
1867
  {
1868
- onClick: () => n("/customer-dash"),
1868
+ onClick: () => {
1869
+ m("/customer-dash"), n == null || n();
1870
+ },
1869
1871
  type: "Secondary",
1870
1872
  style: {
1871
1873
  padding: 10
@@ -1876,7 +1878,9 @@ const ni = (d) => {
1876
1878
  d && /* @__PURE__ */ t.jsx(
1877
1879
  G,
1878
1880
  {
1879
- onClick: () => n("/customer-dash"),
1881
+ onClick: () => {
1882
+ m("/customer-dash"), n == null || n();
1883
+ },
1880
1884
  type: "Primary",
1881
1885
  style: {
1882
1886
  padding: 10,
@@ -1886,44 +1890,46 @@ const ni = (d) => {
1886
1890
  }
1887
1891
  )
1888
1892
  ] });
1889
- const [p, m] = _.useState("test-email@gmail.com");
1893
+ const [h, o] = _.useState("test-email@gmail.com");
1890
1894
  return _.useEffect(() => {
1891
1895
  (async () => {
1892
- const u = Tt(e);
1893
- m(u.email);
1896
+ const x = Tt(s);
1897
+ o(x.email);
1894
1898
  })();
1895
- }, [e]), /* @__PURE__ */ t.jsx(
1899
+ }, [s]), /* @__PURE__ */ t.jsx(
1896
1900
  "div",
1897
1901
  {
1898
1902
  className: y.userInfo,
1899
- onClick: () => n("/customer-dash"),
1900
- children: /* @__PURE__ */ t.jsx("div", { children: p || "test-email@gmail.com" })
1903
+ onClick: () => {
1904
+ m("/customer-dash"), n == null || n();
1905
+ },
1906
+ children: /* @__PURE__ */ t.jsx("div", { children: h || "test-email@gmail.com" })
1901
1907
  }
1902
1908
  );
1903
1909
  }, yn = ({
1904
1910
  children: d,
1905
- logo: i,
1911
+ logo: n,
1906
1912
  setIsOpen: e,
1907
1913
  signUp: s
1908
1914
  }) => {
1909
- const { setIsOpen: n } = Nt(), p = () => {
1910
- n(!1), setTimeout(() => {
1911
- e(!1), n(!0);
1915
+ const { setIsOpen: i } = Nt(), m = () => {
1916
+ i(!1), setTimeout(() => {
1917
+ e(!1), i(!0);
1912
1918
  }, 300);
1913
1919
  };
1914
1920
  return /* @__PURE__ */ t.jsxs(
1915
1921
  "div",
1916
1922
  {
1917
1923
  className: y.pagesMobileModal,
1918
- onClick: (m) => m.stopPropagation(),
1924
+ onClick: (h) => h.stopPropagation(),
1919
1925
  children: [
1920
1926
  /* @__PURE__ */ t.jsxs("div", { className: y.pagesMobileModalHeader, children: [
1921
- /* @__PURE__ */ t.jsx("div", { children: i }),
1927
+ /* @__PURE__ */ t.jsx("div", { children: n }),
1922
1928
  /* @__PURE__ */ t.jsx(
1923
1929
  G,
1924
1930
  {
1925
1931
  type: "Secondary",
1926
- onClick: p,
1932
+ onClick: m,
1927
1933
  children: /* @__PURE__ */ t.jsx(
1928
1934
  g,
1929
1935
  {
@@ -1935,30 +1941,36 @@ const ni = (d) => {
1935
1941
  )
1936
1942
  ] }),
1937
1943
  /* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalContent, children: d }),
1938
- /* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(Ct, { signUp: s }) })
1944
+ /* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
1945
+ Ct,
1946
+ {
1947
+ signUp: s,
1948
+ close: m
1949
+ }
1950
+ ) })
1939
1951
  ]
1940
1952
  }
1941
1953
  );
1942
1954
  }, oi = ({
1943
1955
  children: d,
1944
- logo: i,
1956
+ logo: n,
1945
1957
  signUp: e
1946
1958
  }) => {
1947
- const [s, n] = _.useState(!1);
1959
+ const [s, i] = _.useState(!1);
1948
1960
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1949
- /* @__PURE__ */ t.jsx(Nn, { setIsOpenModal: n }),
1950
- s && /* @__PURE__ */ t.jsx(vt, { close: () => n(!1), children: /* @__PURE__ */ t.jsx(
1961
+ /* @__PURE__ */ t.jsx(Nn, { setIsOpenModal: i }),
1962
+ s && /* @__PURE__ */ t.jsx(vt, { close: () => i(!1), children: /* @__PURE__ */ t.jsx(
1951
1963
  yn,
1952
1964
  {
1953
- logo: i,
1954
- setIsOpen: n,
1965
+ logo: n,
1966
+ setIsOpen: i,
1955
1967
  signUp: e,
1956
1968
  children: d
1957
1969
  }
1958
1970
  ) })
1959
1971
  ] });
1960
1972
  }, Nn = (d) => {
1961
- const { setIsOpenModal: i } = d;
1973
+ const { setIsOpenModal: n } = d;
1962
1974
  return /* @__PURE__ */ t.jsx(
1963
1975
  G,
1964
1976
  {
@@ -1967,7 +1979,7 @@ const ni = (d) => {
1967
1979
  padding: 10
1968
1980
  },
1969
1981
  onClick: (e) => {
1970
- e.stopPropagation(), i(!0);
1982
+ e.stopPropagation(), n(!0);
1971
1983
  },
1972
1984
  children: /* @__PURE__ */ t.jsx(
1973
1985
  g,
@@ -1991,9 +2003,9 @@ const ni = (d) => {
1991
2003
  copyTextMobile: Tn,
1992
2004
  copyTextMiniMobile: qn
1993
2005
  }, ai = () => {
1994
- const { isOpenModal: d, setIsOpenModal: i } = kt();
2006
+ const { isOpenModal: d, setIsOpenModal: n } = kt();
1995
2007
  function e() {
1996
- i(!0);
2008
+ n(!0);
1997
2009
  }
1998
2010
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1999
2011
  /* @__PURE__ */ t.jsx(
@@ -2014,23 +2026,23 @@ const ni = (d) => {
2014
2026
  )
2015
2027
  }
2016
2028
  ),
2017
- d && /* @__PURE__ */ t.jsx(vt, { close: i, children: /* @__PURE__ */ t.jsx(An, {}) })
2029
+ d && /* @__PURE__ */ t.jsx(vt, { close: n, children: /* @__PURE__ */ t.jsx(An, {}) })
2018
2030
  ] });
2019
2031
  }, An = () => {
2020
- const { setIsOpenModal: d } = kt(), { notification: i, setNotification: e } = qt(), { setIsOpen: s } = Nt(), n = window.location.href;
2021
- function p() {
2022
- navigator.clipboard.writeText(n), e({
2032
+ const { setIsOpenModal: d } = kt(), { notification: n, setNotification: e } = qt(), { setIsOpen: s } = Nt(), i = window.location.href;
2033
+ function m() {
2034
+ navigator.clipboard.writeText(i), e({
2023
2035
  message: "Link copied to clipboard",
2024
2036
  status: "success"
2025
2037
  });
2026
2038
  }
2027
- function m() {
2039
+ function h() {
2028
2040
  s(!1), setTimeout(() => {
2029
2041
  d(!1), s(!0);
2030
2042
  }, 300);
2031
2043
  }
2032
- function o(u, f) {
2033
- return u.length > f ? u.slice(0, f) + "..." : u;
2044
+ function o(u, x) {
2045
+ return u.length > x ? u.slice(0, x) + "..." : u;
2034
2046
  }
2035
2047
  return /* @__PURE__ */ t.jsxs(
2036
2048
  "div",
@@ -2045,7 +2057,7 @@ const ni = (d) => {
2045
2057
  {
2046
2058
  name: "X",
2047
2059
  fill: "#757575",
2048
- onClick: m,
2060
+ onClick: h,
2049
2061
  hoverable: !0
2050
2062
  }
2051
2063
  )
@@ -2055,14 +2067,14 @@ const ni = (d) => {
2055
2067
  tt,
2056
2068
  {
2057
2069
  type: "Secondary",
2058
- onClick: p,
2070
+ onClick: m,
2059
2071
  style: {
2060
2072
  flex: 1
2061
2073
  },
2062
2074
  children: [
2063
- /* @__PURE__ */ t.jsx("div", { className: Z.copyText, children: o(n, 100) }),
2064
- /* @__PURE__ */ t.jsx("div", { className: Z.copyTextMobile, children: o(n, 40) }),
2065
- /* @__PURE__ */ t.jsx("div", { className: Z.copyTextMiniMobile, children: o(n, 20) })
2075
+ /* @__PURE__ */ t.jsx("div", { className: Z.copyText, children: o(i, 100) }),
2076
+ /* @__PURE__ */ t.jsx("div", { className: Z.copyTextMobile, children: o(i, 40) }),
2077
+ /* @__PURE__ */ t.jsx("div", { className: Z.copyTextMiniMobile, children: o(i, 20) })
2066
2078
  ]
2067
2079
  }
2068
2080
  ),
@@ -2070,8 +2082,8 @@ const ni = (d) => {
2070
2082
  tt,
2071
2083
  {
2072
2084
  type: "Secondary",
2073
- onClick: p,
2074
- children: i ? /* @__PURE__ */ t.jsx(g, { name: "Check" }) : /* @__PURE__ */ t.jsx(g, { name: "Copy" })
2085
+ onClick: m,
2086
+ children: n ? /* @__PURE__ */ t.jsx(g, { name: "Check" }) : /* @__PURE__ */ t.jsx(g, { name: "Copy" })
2075
2087
  }
2076
2088
  )
2077
2089
  ] })
@@ -2084,12 +2096,12 @@ const ni = (d) => {
2084
2096
  icon: zn,
2085
2097
  open: Rn,
2086
2098
  content: Ln
2087
- }, ci = ({ title: d, content: i, defaultOpen: e = !1 }) => {
2088
- const [s, n] = _.useState(e), [p, m] = _.useState(0), o = _.useRef(null), u = () => {
2089
- n(!s);
2099
+ }, ci = ({ title: d, content: n, defaultOpen: e = !1 }) => {
2100
+ const [s, i] = _.useState(e), [m, h] = _.useState(0), o = _.useRef(null), u = () => {
2101
+ i(!s);
2090
2102
  };
2091
2103
  return _.useEffect(() => {
2092
- o.current && m(s ? o.current.scrollHeight : 0);
2104
+ o.current && h(s ? o.current.scrollHeight : 0);
2093
2105
  }, [s]), /* @__PURE__ */ t.jsxs("div", { className: nt.accordion, children: [
2094
2106
  /* @__PURE__ */ t.jsxs(
2095
2107
  "div",
@@ -2107,12 +2119,12 @@ const ni = (d) => {
2107
2119
  {
2108
2120
  ref: o,
2109
2121
  className: nt.content,
2110
- style: { height: `${p}px` },
2111
- children: /* @__PURE__ */ t.jsx("p", { id: "p", children: i })
2122
+ style: { height: `${m}px` },
2123
+ children: /* @__PURE__ */ t.jsx("p", { id: "p", children: n })
2112
2124
  }
2113
2125
  )
2114
2126
  ] });
2115
- }, li = ({ children: d, path: i, className: e, target: s = "_self", id: n }) => {
2127
+ }, li = ({ children: d, path: n, className: e, target: s = "_self", id: i }) => {
2116
2128
  if (window.location.pathname.includes("/admin/builder"))
2117
2129
  return /* @__PURE__ */ t.jsx(
2118
2130
  "div",
@@ -2120,12 +2132,12 @@ const ni = (d) => {
2120
2132
  className: e,
2121
2133
  role: "link",
2122
2134
  style: { cursor: "pointer" },
2123
- id: n,
2135
+ id: i,
2124
2136
  children: d
2125
2137
  }
2126
2138
  );
2127
- const p = lt(), m = /^https?:\/\//.test(i), o = (u) => {
2128
- m || s === "_blank" ? s === "_blank" ? window.open(i, "_blank") : window.location.href = i : (u.preventDefault(), p(i, { replace: !0 }));
2139
+ const m = lt(), h = /^https?:\/\//.test(n), o = (u) => {
2140
+ h || s === "_blank" ? s === "_blank" ? window.open(n, "_blank") : window.location.href = n : (u.preventDefault(), m(n, { replace: !0 }));
2129
2141
  };
2130
2142
  return /* @__PURE__ */ t.jsx(
2131
2143
  "div",
@@ -2134,7 +2146,7 @@ const ni = (d) => {
2134
2146
  className: e,
2135
2147
  role: "link",
2136
2148
  style: { cursor: "pointer" },
2137
- id: n,
2149
+ id: i,
2138
2150
  children: d
2139
2151
  }
2140
2152
  );
@@ -2160,15 +2172,15 @@ const ni = (d) => {
2160
2172
  length: Gn
2161
2173
  }, di = (d) => {
2162
2174
  const {
2163
- onChange: i,
2175
+ onChange: n,
2164
2176
  label: e,
2165
2177
  value: s,
2166
- maxLength: n,
2167
- placeholder: p = "Type something...",
2168
- type: m = "text"
2178
+ maxLength: i,
2179
+ placeholder: m = "Type something...",
2180
+ type: h = "text"
2169
2181
  } = d, [o, u] = _.useState(s.length);
2170
- function f($) {
2171
- return m === "number" ? $.replace(/[^\d\n]+/g, "") : $;
2182
+ function x($) {
2183
+ return h === "number" ? $.replace(/[^\d\n]+/g, "") : $;
2172
2184
  }
2173
2185
  return /* @__PURE__ */ t.jsxs("div", { className: ct.wrapper, children: [
2174
2186
  e && /* @__PURE__ */ t.jsx(
@@ -2185,18 +2197,18 @@ const ni = (d) => {
2185
2197
  id: e,
2186
2198
  value: s,
2187
2199
  onChange: ($) => {
2188
- const l = f($.target.value);
2189
- u(l.length), i(l);
2200
+ const l = x($.target.value);
2201
+ u(l.length), n(l);
2190
2202
  },
2191
- placeholder: p,
2203
+ placeholder: m,
2192
2204
  className: ct.textarea,
2193
- maxLength: n
2205
+ maxLength: i
2194
2206
  }
2195
2207
  ),
2196
- n && /* @__PURE__ */ t.jsxs("div", { className: ct.length, children: [
2208
+ i && /* @__PURE__ */ t.jsxs("div", { className: ct.length, children: [
2197
2209
  o,
2198
2210
  "/",
2199
- n
2211
+ i
2200
2212
  ] })
2201
2213
  ] });
2202
2214
  };