@billgangcom/theme-lib 1.33.1 → 1.33.2
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/builder.cjs.js +3 -3
- package/dist/builder.es.js +45 -42
- package/dist/{index-J6kEvjGE.cjs → index-CLg_NJ6J.cjs} +1 -1
- package/dist/{index-CqF7deZx.js → index-Dfo5ydyB.js} +17 -14
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +493 -492
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as t, I as b, a as W, c as F, S as K, T as Ct, C as ht, b as Z, D as yt, H as kt, B as it, v as dt, u as $t, d as wt, e as
|
|
2
|
-
import { l as no, L as io } from "./index-
|
|
3
|
-
import
|
|
1
|
+
import { j as t, I as b, a as W, c as F, S as K, T as Ct, C as ht, b as Z, D as yt, H as kt, B as it, v as dt, u as $t, d as wt, e as Ot, f as ft, g as Nt, h as Bt, M as St, i as Pt, k as Dt } from "./index-Dfo5ydyB.js";
|
|
2
|
+
import { l as no, L as io } from "./index-Dfo5ydyB.js";
|
|
3
|
+
import g from "react";
|
|
4
4
|
import "@phosphor-icons/react";
|
|
5
5
|
const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5j_15", Mt = "_subtitle_9rr5j_22", Ht = "_alignmentContent_9rr5j_29", zt = "_alignments_9rr5j_37", Vt = "_alignment_9rr5j_8", Ft = "_circle_9rr5j_58", Ut = "_paddings_9rr5j_65", Yt = "_padding_9rr5j_65", Gt = "_input_9rr5j_84", J = {
|
|
6
6
|
wrapper: Et,
|
|
@@ -169,7 +169,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
169
169
|
},
|
|
170
170
|
String(i)
|
|
171
171
|
)) });
|
|
172
|
-
},
|
|
172
|
+
}, qt = (u) => {
|
|
173
173
|
const {
|
|
174
174
|
typesText: a,
|
|
175
175
|
isActiveText: e,
|
|
@@ -233,7 +233,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
233
233
|
link: we,
|
|
234
234
|
modalOptions: Ne,
|
|
235
235
|
addButton: Ie
|
|
236
|
-
}, Ce =
|
|
236
|
+
}, Ce = g.forwardRef(
|
|
237
237
|
(u, a) => {
|
|
238
238
|
const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = u;
|
|
239
239
|
function o(n, r) {
|
|
@@ -275,34 +275,34 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
275
275
|
label: "Put up an attractive image",
|
|
276
276
|
activeImage: e[n.field],
|
|
277
277
|
onChange: (r) => {
|
|
278
|
-
const
|
|
278
|
+
const _ = {
|
|
279
279
|
...e,
|
|
280
280
|
[n.field]: r
|
|
281
281
|
};
|
|
282
|
-
s(
|
|
282
|
+
s(_);
|
|
283
283
|
}
|
|
284
284
|
},
|
|
285
285
|
String(n.field)
|
|
286
286
|
);
|
|
287
287
|
if (n.type === "text")
|
|
288
288
|
return /* @__PURE__ */ t.jsx(
|
|
289
|
-
|
|
289
|
+
qt,
|
|
290
290
|
{
|
|
291
291
|
typesText: e[n.field.type],
|
|
292
292
|
setTypesText: (r) => {
|
|
293
|
-
const
|
|
293
|
+
const _ = {
|
|
294
294
|
...e,
|
|
295
295
|
[n.field.type]: r
|
|
296
296
|
};
|
|
297
|
-
s(
|
|
297
|
+
s(_);
|
|
298
298
|
},
|
|
299
299
|
text: e[n.field.text] || "",
|
|
300
300
|
setText: (r) => {
|
|
301
|
-
const
|
|
301
|
+
const _ = {
|
|
302
302
|
...e,
|
|
303
303
|
[n.field.text]: r
|
|
304
304
|
};
|
|
305
|
-
s(
|
|
305
|
+
s(_);
|
|
306
306
|
},
|
|
307
307
|
subtitle: n.label
|
|
308
308
|
}
|
|
@@ -312,11 +312,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
312
312
|
W,
|
|
313
313
|
{
|
|
314
314
|
onChange: (r) => {
|
|
315
|
-
const
|
|
315
|
+
const _ = {
|
|
316
316
|
...e,
|
|
317
317
|
[n.field]: r
|
|
318
318
|
};
|
|
319
|
-
s(
|
|
319
|
+
s(_);
|
|
320
320
|
},
|
|
321
321
|
value: e[n.field] || "",
|
|
322
322
|
label: n.label,
|
|
@@ -329,11 +329,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
329
329
|
W,
|
|
330
330
|
{
|
|
331
331
|
onChange: (r) => {
|
|
332
|
-
const
|
|
332
|
+
const _ = {
|
|
333
333
|
...e,
|
|
334
334
|
[n.field.text]: r
|
|
335
335
|
};
|
|
336
|
-
s(
|
|
336
|
+
s(_);
|
|
337
337
|
},
|
|
338
338
|
value: e[n.field.text] || "",
|
|
339
339
|
label: n.inputLabel,
|
|
@@ -346,26 +346,26 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
346
346
|
current: !!e[n.field.switch] || !1,
|
|
347
347
|
label: n.switchLabel,
|
|
348
348
|
onChange: (r) => {
|
|
349
|
-
const
|
|
349
|
+
const _ = {
|
|
350
350
|
...e,
|
|
351
351
|
[n.field.switch]: r
|
|
352
352
|
};
|
|
353
|
-
s(
|
|
353
|
+
s(_);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
)
|
|
357
357
|
] });
|
|
358
358
|
if (n.type === "list")
|
|
359
359
|
return /* @__PURE__ */ t.jsx(
|
|
360
|
-
|
|
360
|
+
qe,
|
|
361
361
|
{
|
|
362
362
|
items: e[n.field] || [],
|
|
363
363
|
setItems: (r) => {
|
|
364
|
-
const
|
|
364
|
+
const _ = {
|
|
365
365
|
...e,
|
|
366
366
|
[n.field]: r
|
|
367
367
|
};
|
|
368
|
-
s(
|
|
368
|
+
s(_);
|
|
369
369
|
},
|
|
370
370
|
itemsType: "select",
|
|
371
371
|
draggable: n.draggable || !1,
|
|
@@ -382,11 +382,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
382
382
|
{
|
|
383
383
|
options: n.itemsOptions,
|
|
384
384
|
onChange: (r) => {
|
|
385
|
-
const
|
|
385
|
+
const _ = {
|
|
386
386
|
...e,
|
|
387
387
|
[n.field]: r
|
|
388
388
|
};
|
|
389
|
-
s(
|
|
389
|
+
s(_);
|
|
390
390
|
},
|
|
391
391
|
label: n.label,
|
|
392
392
|
value: e[n.field] || "String",
|
|
@@ -439,7 +439,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
439
439
|
children: s
|
|
440
440
|
}
|
|
441
441
|
);
|
|
442
|
-
},
|
|
442
|
+
}, qe = (u) => {
|
|
443
443
|
const {
|
|
444
444
|
isActiveItems: a,
|
|
445
445
|
setIsActiveItems: e,
|
|
@@ -450,61 +450,61 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
450
450
|
subtitle: o,
|
|
451
451
|
editable: n = !0,
|
|
452
452
|
draggable: r = !1,
|
|
453
|
-
withImage:
|
|
453
|
+
withImage: _ = !1,
|
|
454
454
|
deletable: d = !0,
|
|
455
|
-
addable:
|
|
455
|
+
addable: P = !0,
|
|
456
456
|
itemsType: x,
|
|
457
|
-
itemsPlaceholder:
|
|
457
|
+
itemsPlaceholder: f = "",
|
|
458
458
|
itemsOptions: h,
|
|
459
|
-
hasRangeSelector:
|
|
460
|
-
rangeSelectorOptions:
|
|
459
|
+
hasRangeSelector: q = !1,
|
|
460
|
+
rangeSelectorOptions: A,
|
|
461
461
|
modalOptions: v,
|
|
462
462
|
addableOptions: E = {},
|
|
463
|
-
limit:
|
|
464
|
-
autoScrollInterval:
|
|
465
|
-
} = u, [
|
|
463
|
+
limit: I,
|
|
464
|
+
autoScrollInterval: C
|
|
465
|
+
} = u, [M, m] = g.useState(null), [O, k] = g.useState({
|
|
466
466
|
top: 0,
|
|
467
467
|
left: 0
|
|
468
|
-
}), [
|
|
469
|
-
const
|
|
470
|
-
|
|
468
|
+
}), [y, L] = g.useState(null), w = g.useRef(null), [R, U] = g.useState(!1), tt = (p, B) => {
|
|
469
|
+
const $ = [...s], [X] = $.splice(p, 1);
|
|
470
|
+
$.splice(B, 0, X), i($);
|
|
471
471
|
};
|
|
472
|
-
|
|
473
|
-
const
|
|
474
|
-
|
|
472
|
+
g.useEffect(() => {
|
|
473
|
+
const p = () => {
|
|
474
|
+
m(null), U(!1);
|
|
475
475
|
};
|
|
476
|
-
return document.body.addEventListener("click",
|
|
477
|
-
|
|
476
|
+
return document.body.addEventListener("click", p), m(null), U(!1), () => {
|
|
477
|
+
m(null), U(!1), document.body.removeEventListener("click", p);
|
|
478
478
|
};
|
|
479
|
-
}, []),
|
|
480
|
-
if (
|
|
481
|
-
const
|
|
482
|
-
i(
|
|
479
|
+
}, []), g.useEffect(() => {
|
|
480
|
+
if (M) {
|
|
481
|
+
const p = [...s].map((B) => B.id === M.id ? M : B);
|
|
482
|
+
i(p);
|
|
483
483
|
}
|
|
484
|
-
}, [
|
|
485
|
-
if (
|
|
486
|
-
const
|
|
487
|
-
let
|
|
488
|
-
|
|
489
|
-
top:
|
|
490
|
-
left:
|
|
484
|
+
}, [M]), g.useEffect(() => {
|
|
485
|
+
if (w.current && y) {
|
|
486
|
+
const p = w.current.getBoundingClientRect().height, B = window.innerHeight;
|
|
487
|
+
let $ = y.top;
|
|
488
|
+
$ + p > B + window.scrollY - 200 && ($ = B + window.scrollY - p - 200), $ < 0 && ($ = 10), k({
|
|
489
|
+
top: $,
|
|
490
|
+
left: y.left
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
|
-
}, [
|
|
494
|
-
const at = (
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
top:
|
|
499
|
-
left:
|
|
500
|
-
}),
|
|
493
|
+
}, [w.current, y]);
|
|
494
|
+
const at = (p, B) => {
|
|
495
|
+
p.stopPropagation();
|
|
496
|
+
const $ = p.target.getBoundingClientRect();
|
|
497
|
+
L({
|
|
498
|
+
top: $.top + window.scrollY,
|
|
499
|
+
left: $.left - 30
|
|
500
|
+
}), m(B), U(!0);
|
|
501
501
|
};
|
|
502
|
-
function j(
|
|
503
|
-
if (
|
|
504
|
-
return
|
|
502
|
+
function j(p) {
|
|
503
|
+
if (_)
|
|
504
|
+
return p ? /* @__PURE__ */ t.jsx(
|
|
505
505
|
"img",
|
|
506
506
|
{
|
|
507
|
-
src: `https://imagedelivery.net/${
|
|
507
|
+
src: `https://imagedelivery.net/${p[0]}/w=1000`,
|
|
508
508
|
alt: "image",
|
|
509
509
|
width: 16,
|
|
510
510
|
height: 16
|
|
@@ -519,9 +519,9 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
519
519
|
}
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
|
-
const
|
|
522
|
+
const T = (p, B) => {
|
|
523
523
|
var X;
|
|
524
|
-
const
|
|
524
|
+
const $ = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
525
525
|
r && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
526
526
|
b,
|
|
527
527
|
{
|
|
@@ -537,45 +537,45 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
537
537
|
onChange: (D) => {
|
|
538
538
|
const Y = [...s], lt = h.find((pt) => pt.name === D);
|
|
539
539
|
if (!lt) return;
|
|
540
|
-
const ot = Y.map((pt) => pt.id ===
|
|
540
|
+
const ot = Y.map((pt) => pt.id === p.id ? {
|
|
541
541
|
...lt,
|
|
542
542
|
name: D
|
|
543
543
|
} : pt);
|
|
544
|
-
|
|
545
|
-
...
|
|
544
|
+
m({
|
|
545
|
+
...p,
|
|
546
546
|
name: D
|
|
547
547
|
}), i([...ot]);
|
|
548
548
|
},
|
|
549
|
-
value:
|
|
549
|
+
value: p.name,
|
|
550
550
|
options: h.filter((D) => !s.find((Y) => Y.name === D.name)).map((D) => D.name),
|
|
551
|
-
leftAddon: j(
|
|
551
|
+
leftAddon: j(p.images)
|
|
552
552
|
}
|
|
553
553
|
),
|
|
554
554
|
x === "input" && /* @__PURE__ */ t.jsx(
|
|
555
555
|
W,
|
|
556
556
|
{
|
|
557
557
|
onChange: (D) => {
|
|
558
|
-
const lt = [...s].map((ot) => ot.id ===
|
|
559
|
-
...
|
|
558
|
+
const lt = [...s].map((ot) => ot.id === p.id ? {
|
|
559
|
+
...p,
|
|
560
560
|
name: D
|
|
561
561
|
} : ot);
|
|
562
562
|
i([...lt]);
|
|
563
563
|
},
|
|
564
|
-
value:
|
|
565
|
-
placeholder:
|
|
564
|
+
value: p.name,
|
|
565
|
+
placeholder: f
|
|
566
566
|
}
|
|
567
567
|
),
|
|
568
568
|
x === "image" && /* @__PURE__ */ t.jsx(
|
|
569
569
|
ht,
|
|
570
570
|
{
|
|
571
571
|
onChange: (D) => {
|
|
572
|
-
const lt = [...s].map((ot) => ot.id ===
|
|
573
|
-
...
|
|
572
|
+
const lt = [...s].map((ot) => ot.id === p.id ? {
|
|
573
|
+
...p,
|
|
574
574
|
images: D
|
|
575
575
|
} : ot);
|
|
576
576
|
i([...lt]);
|
|
577
577
|
},
|
|
578
|
-
activeImage: (X = s.find((D) => D.id ===
|
|
578
|
+
activeImage: (X = s.find((D) => D.id === p.id)) == null ? void 0 : X.images[0]
|
|
579
579
|
}
|
|
580
580
|
),
|
|
581
581
|
/* @__PURE__ */ t.jsxs("div", { className: H.buttons, children: [
|
|
@@ -586,7 +586,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
586
586
|
hoverable: !0,
|
|
587
587
|
width: 20,
|
|
588
588
|
height: 20,
|
|
589
|
-
onClick: (D) => at(D,
|
|
589
|
+
onClick: (D) => at(D, p)
|
|
590
590
|
}
|
|
591
591
|
),
|
|
592
592
|
d && /* @__PURE__ */ t.jsx(
|
|
@@ -597,7 +597,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
597
597
|
width: 20,
|
|
598
598
|
height: 20,
|
|
599
599
|
fill: "#C12A2A",
|
|
600
|
-
onClick: () => i(s.filter((D) => D.id !==
|
|
600
|
+
onClick: () => i(s.filter((D) => D.id !== p.id))
|
|
601
601
|
}
|
|
602
602
|
)
|
|
603
603
|
] })
|
|
@@ -605,19 +605,19 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
605
605
|
return r ? /* @__PURE__ */ t.jsx(
|
|
606
606
|
Te,
|
|
607
607
|
{
|
|
608
|
-
product:
|
|
609
|
-
index:
|
|
608
|
+
product: p,
|
|
609
|
+
index: B,
|
|
610
610
|
moveProduct: tt,
|
|
611
|
-
children:
|
|
611
|
+
children: $
|
|
612
612
|
},
|
|
613
|
-
|
|
613
|
+
p.id
|
|
614
614
|
) : /* @__PURE__ */ t.jsx(
|
|
615
615
|
"div",
|
|
616
616
|
{
|
|
617
617
|
className: H.product,
|
|
618
|
-
children:
|
|
618
|
+
children: $
|
|
619
619
|
},
|
|
620
|
-
|
|
620
|
+
p.id
|
|
621
621
|
);
|
|
622
622
|
};
|
|
623
623
|
return /* @__PURE__ */ t.jsxs("div", { className: H.productsBlock, children: [
|
|
@@ -627,57 +627,57 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
627
627
|
K,
|
|
628
628
|
{
|
|
629
629
|
current: a,
|
|
630
|
-
onChange: (
|
|
630
|
+
onChange: (p) => e == null ? void 0 : e(p)
|
|
631
631
|
}
|
|
632
632
|
)
|
|
633
633
|
] }),
|
|
634
|
-
|
|
634
|
+
M && n && v && R && /* @__PURE__ */ t.jsx(
|
|
635
635
|
Ce,
|
|
636
636
|
{
|
|
637
|
-
ref:
|
|
638
|
-
activeItem:
|
|
639
|
-
setActiveItem:
|
|
640
|
-
popupPosition:
|
|
637
|
+
ref: w,
|
|
638
|
+
activeItem: M,
|
|
639
|
+
setActiveItem: m,
|
|
640
|
+
popupPosition: O,
|
|
641
641
|
modalOptions: v,
|
|
642
642
|
setIsOpenModal: U
|
|
643
643
|
}
|
|
644
644
|
),
|
|
645
|
-
|
|
645
|
+
q && A && /* @__PURE__ */ t.jsx(It, { ...A }),
|
|
646
646
|
/* @__PURE__ */ t.jsxs("div", { className: H.products, children: [
|
|
647
647
|
o && /* @__PURE__ */ t.jsx("h5", { className: H.subtitle, children: o }),
|
|
648
|
-
r ? /* @__PURE__ */ t.jsx(yt, { backend: kt, children: s.map((
|
|
649
|
-
|
|
648
|
+
r ? /* @__PURE__ */ t.jsx(yt, { backend: kt, children: s.map((p, B) => T(p, B)) }) : s.map((p, B) => T(p, B)),
|
|
649
|
+
P && /* @__PURE__ */ t.jsx("div", { className: H.addButton, children: /* @__PURE__ */ t.jsxs(
|
|
650
650
|
it,
|
|
651
651
|
{
|
|
652
652
|
withoutHover: !0,
|
|
653
653
|
className: F(H.button, {
|
|
654
|
-
[H.disabled]: !!(
|
|
654
|
+
[H.disabled]: !!(I && I <= s.length || s.length === (h == null ? void 0 : h.length))
|
|
655
655
|
}),
|
|
656
656
|
size: "s",
|
|
657
|
-
disabled: !!(
|
|
657
|
+
disabled: !!(I && I <= s.length || s.length === (h == null ? void 0 : h.length)),
|
|
658
658
|
onClick: () => {
|
|
659
|
-
const
|
|
660
|
-
let
|
|
659
|
+
const p = [...s];
|
|
660
|
+
let B = null;
|
|
661
661
|
if (h) {
|
|
662
|
-
for (let
|
|
663
|
-
if (!s.find((X) => X.id === h[
|
|
664
|
-
|
|
662
|
+
for (let $ = 0; $ < h.length; $++)
|
|
663
|
+
if (!s.find((X) => X.id === h[$].id)) {
|
|
664
|
+
B = h[$];
|
|
665
665
|
break;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
x === "select" ?
|
|
669
|
-
name:
|
|
670
|
-
id: (
|
|
668
|
+
x === "select" ? p.push({
|
|
669
|
+
name: B ? B.name : h[0].name,
|
|
670
|
+
id: (B == null ? void 0 : B.id) || h[0].id,
|
|
671
671
|
...E
|
|
672
|
-
}) : x === "input" ?
|
|
672
|
+
}) : x === "input" ? p.push({
|
|
673
673
|
name: "",
|
|
674
674
|
id: dt(),
|
|
675
675
|
...E
|
|
676
|
-
}) :
|
|
676
|
+
}) : p.push({
|
|
677
677
|
name: `Image ${s.length + 1}`,
|
|
678
678
|
id: dt(),
|
|
679
679
|
...E
|
|
680
|
-
}), i(
|
|
680
|
+
}), i(p);
|
|
681
681
|
},
|
|
682
682
|
style: {
|
|
683
683
|
width: "fit-content"
|
|
@@ -697,13 +697,13 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
697
697
|
) })
|
|
698
698
|
] }),
|
|
699
699
|
c !== void 0 && /* @__PURE__ */ t.jsx(xt, { items: c }),
|
|
700
|
-
|
|
700
|
+
C !== void 0 && /* @__PURE__ */ t.jsx(
|
|
701
701
|
W,
|
|
702
702
|
{
|
|
703
703
|
label: "Auto scroll interval",
|
|
704
704
|
type: "number",
|
|
705
|
-
value: String(
|
|
706
|
-
onChange: (
|
|
705
|
+
value: String(C.scrollInterval),
|
|
706
|
+
onChange: (p) => C.setScrollInterval(Number(p)),
|
|
707
707
|
min: 0.1,
|
|
708
708
|
max: 100,
|
|
709
709
|
style: {
|
|
@@ -713,9 +713,9 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
713
713
|
}
|
|
714
714
|
)
|
|
715
715
|
] });
|
|
716
|
-
},
|
|
717
|
-
title:
|
|
718
|
-
subtitle:
|
|
716
|
+
}, Ae = "_title_1jjcw_1", Oe = "_subtitle_1jjcw_5", De = "_header_1jjcw_12", Ee = "_text_1jjcw_13", Le = "_productsBlock_1jjcw_14", Re = "_top_1jjcw_26", Me = "_itemsBlock_1jjcw_35", He = "_typeTexts_1jjcw_41", ze = "_block_1jjcw_48", Ve = "_active_1jjcw_61", Fe = "_products_1jjcw_14", Ue = "_product_1jjcw_14", Ye = "_button_1jjcw_80", Ge = "_disabled_1jjcw_91", We = "_image_1jjcw_95", Xe = "_info_1jjcw_102", Je = "_name_1jjcw_114", Qe = "_buttons_1jjcw_118", Ke = "_modal_1jjcw_125", Ze = "_link_1jjcw_145", ts = "_modalOptions_1jjcw_151", es = "_addButton_1jjcw_157", Q = {
|
|
717
|
+
title: Ae,
|
|
718
|
+
subtitle: Oe,
|
|
719
719
|
header: De,
|
|
720
720
|
text: Ee,
|
|
721
721
|
productsBlock: Le,
|
|
@@ -747,14 +747,14 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
747
747
|
subtitle: o,
|
|
748
748
|
draggable: n = !1,
|
|
749
749
|
withImage: r = !1,
|
|
750
|
-
addable:
|
|
750
|
+
addable: _ = !0,
|
|
751
751
|
itemsOptions: d,
|
|
752
|
-
hasRangeSelector:
|
|
752
|
+
hasRangeSelector: P = !1,
|
|
753
753
|
rangeSelectorOptions: x,
|
|
754
|
-
limit:
|
|
754
|
+
limit: f,
|
|
755
755
|
autoScrollInterval: h
|
|
756
756
|
} = u;
|
|
757
|
-
function
|
|
757
|
+
function q(v) {
|
|
758
758
|
if (r)
|
|
759
759
|
return v ? /* @__PURE__ */ t.jsx(
|
|
760
760
|
"img",
|
|
@@ -774,10 +774,10 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
774
774
|
}
|
|
775
775
|
);
|
|
776
776
|
}
|
|
777
|
-
const
|
|
778
|
-
const E = d.find((
|
|
777
|
+
const A = (v) => {
|
|
778
|
+
const E = d.find((C) => C.id === v);
|
|
779
779
|
if (!E) return;
|
|
780
|
-
const
|
|
780
|
+
const I = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
781
781
|
n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
782
782
|
b,
|
|
783
783
|
{
|
|
@@ -790,15 +790,15 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
790
790
|
/* @__PURE__ */ t.jsx(
|
|
791
791
|
Z,
|
|
792
792
|
{
|
|
793
|
-
onChange: (
|
|
794
|
-
const
|
|
795
|
-
if (!
|
|
796
|
-
const
|
|
797
|
-
i([
|
|
793
|
+
onChange: (C) => {
|
|
794
|
+
const M = [...s], m = d.find((y) => y.name === C);
|
|
795
|
+
if (!m) return;
|
|
796
|
+
const O = m.id, k = M.map((y) => y === v ? O : y);
|
|
797
|
+
i([...k]);
|
|
798
798
|
},
|
|
799
799
|
value: E.name,
|
|
800
|
-
options: d.filter((
|
|
801
|
-
leftAddon:
|
|
800
|
+
options: d.filter((C) => !s.find((M) => M === C.id)).map((C) => C.name),
|
|
801
|
+
leftAddon: q(E.images)
|
|
802
802
|
}
|
|
803
803
|
),
|
|
804
804
|
/* @__PURE__ */ t.jsx("div", { className: Q.buttons, children: /* @__PURE__ */ t.jsx(
|
|
@@ -809,7 +809,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
809
809
|
width: 20,
|
|
810
810
|
height: 20,
|
|
811
811
|
fill: "#C12A2A",
|
|
812
|
-
onClick: () => i(s.filter((
|
|
812
|
+
onClick: () => i(s.filter((C) => C !== v))
|
|
813
813
|
}
|
|
814
814
|
) })
|
|
815
815
|
] });
|
|
@@ -817,7 +817,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
817
817
|
"div",
|
|
818
818
|
{
|
|
819
819
|
className: Q.product,
|
|
820
|
-
children:
|
|
820
|
+
children: I
|
|
821
821
|
},
|
|
822
822
|
v
|
|
823
823
|
);
|
|
@@ -833,26 +833,26 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
833
833
|
}
|
|
834
834
|
)
|
|
835
835
|
] }),
|
|
836
|
-
|
|
836
|
+
P && x && /* @__PURE__ */ t.jsx(It, { ...x }),
|
|
837
837
|
/* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
|
|
838
838
|
o && /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: o }),
|
|
839
|
-
s.map((v) =>
|
|
840
|
-
|
|
839
|
+
s.map((v) => A(v)),
|
|
840
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: Q.addButton, children: /* @__PURE__ */ t.jsxs(
|
|
841
841
|
it,
|
|
842
842
|
{
|
|
843
843
|
withoutHover: !0,
|
|
844
844
|
className: F(Q.button, {
|
|
845
|
-
[Q.disabled]: !!(
|
|
845
|
+
[Q.disabled]: !!(f && f <= s.length || s.length === d.length)
|
|
846
846
|
}),
|
|
847
847
|
size: "s",
|
|
848
|
-
disabled: !!(
|
|
848
|
+
disabled: !!(f && f <= s.length || s.length === d.length),
|
|
849
849
|
onClick: () => {
|
|
850
850
|
const v = [...s];
|
|
851
851
|
let E = null;
|
|
852
852
|
if (d) {
|
|
853
|
-
for (let
|
|
854
|
-
if (!s.find((
|
|
855
|
-
E = d[
|
|
853
|
+
for (let I = 0; I < d.length; I++)
|
|
854
|
+
if (!s.find((C) => C === d[I].id)) {
|
|
855
|
+
E = d[I];
|
|
856
856
|
break;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
@@ -915,7 +915,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
915
915
|
link: js,
|
|
916
916
|
modalOptions: ys,
|
|
917
917
|
addButton: ks
|
|
918
|
-
}, $s =
|
|
918
|
+
}, $s = g.forwardRef(
|
|
919
919
|
(u, a) => {
|
|
920
920
|
const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = u;
|
|
921
921
|
function o(n, r) {
|
|
@@ -957,34 +957,34 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
957
957
|
label: "Put up an attractive image",
|
|
958
958
|
activeImage: e[n.field],
|
|
959
959
|
onChange: (r) => {
|
|
960
|
-
const
|
|
960
|
+
const _ = {
|
|
961
961
|
...e,
|
|
962
962
|
[n.field]: r
|
|
963
963
|
};
|
|
964
|
-
s(
|
|
964
|
+
s(_);
|
|
965
965
|
}
|
|
966
966
|
},
|
|
967
967
|
String(n.field)
|
|
968
968
|
);
|
|
969
969
|
if (n.type === "text")
|
|
970
970
|
return /* @__PURE__ */ t.jsx(
|
|
971
|
-
|
|
971
|
+
qt,
|
|
972
972
|
{
|
|
973
973
|
typesText: e[n.field.type],
|
|
974
974
|
setTypesText: (r) => {
|
|
975
|
-
const
|
|
975
|
+
const _ = {
|
|
976
976
|
...e,
|
|
977
977
|
[n.field.type]: r
|
|
978
978
|
};
|
|
979
|
-
s(
|
|
979
|
+
s(_);
|
|
980
980
|
},
|
|
981
981
|
text: e[n.field.text] || "",
|
|
982
982
|
setText: (r) => {
|
|
983
|
-
const
|
|
983
|
+
const _ = {
|
|
984
984
|
...e,
|
|
985
985
|
[n.field.text]: r
|
|
986
986
|
};
|
|
987
|
-
s(
|
|
987
|
+
s(_);
|
|
988
988
|
},
|
|
989
989
|
subtitle: n.label
|
|
990
990
|
}
|
|
@@ -994,11 +994,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
994
994
|
W,
|
|
995
995
|
{
|
|
996
996
|
onChange: (r) => {
|
|
997
|
-
const
|
|
997
|
+
const _ = {
|
|
998
998
|
...e,
|
|
999
999
|
[n.field]: r
|
|
1000
1000
|
};
|
|
1001
|
-
s(
|
|
1001
|
+
s(_);
|
|
1002
1002
|
},
|
|
1003
1003
|
value: e[n.field] || "",
|
|
1004
1004
|
label: n.label,
|
|
@@ -1011,11 +1011,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1011
1011
|
W,
|
|
1012
1012
|
{
|
|
1013
1013
|
onChange: (r) => {
|
|
1014
|
-
const
|
|
1014
|
+
const _ = {
|
|
1015
1015
|
...e,
|
|
1016
1016
|
[n.field.text]: r
|
|
1017
1017
|
};
|
|
1018
|
-
s(
|
|
1018
|
+
s(_);
|
|
1019
1019
|
},
|
|
1020
1020
|
value: e[n.field.text] || "",
|
|
1021
1021
|
label: n.inputLabel,
|
|
@@ -1028,11 +1028,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1028
1028
|
current: !!e[n.field.switch] || !1,
|
|
1029
1029
|
label: n.switchLabel,
|
|
1030
1030
|
onChange: (r) => {
|
|
1031
|
-
const
|
|
1031
|
+
const _ = {
|
|
1032
1032
|
...e,
|
|
1033
1033
|
[n.field.switch]: r
|
|
1034
1034
|
};
|
|
1035
|
-
s(
|
|
1035
|
+
s(_);
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
)
|
|
@@ -1043,11 +1043,11 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1043
1043
|
{
|
|
1044
1044
|
options: n.itemsOptions,
|
|
1045
1045
|
onChange: (r) => {
|
|
1046
|
-
const
|
|
1046
|
+
const _ = {
|
|
1047
1047
|
...e,
|
|
1048
1048
|
[n.field]: r
|
|
1049
1049
|
};
|
|
1050
|
-
s(
|
|
1050
|
+
s(_);
|
|
1051
1051
|
},
|
|
1052
1052
|
label: n.label,
|
|
1053
1053
|
value: e[n.field] || "String",
|
|
@@ -1091,55 +1091,55 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1091
1091
|
subtitle: o,
|
|
1092
1092
|
editable: n = !0,
|
|
1093
1093
|
draggable: r = !1,
|
|
1094
|
-
withImage:
|
|
1094
|
+
withImage: _ = !1,
|
|
1095
1095
|
deletable: d = !0,
|
|
1096
|
-
addable:
|
|
1096
|
+
addable: P = !0,
|
|
1097
1097
|
itemsType: x,
|
|
1098
|
-
itemsPlaceholder:
|
|
1098
|
+
itemsPlaceholder: f = "",
|
|
1099
1099
|
itemsOptions: h,
|
|
1100
|
-
hasRangeSelector:
|
|
1101
|
-
rangeSelectorOptions:
|
|
1100
|
+
hasRangeSelector: q = !1,
|
|
1101
|
+
rangeSelectorOptions: A,
|
|
1102
1102
|
modalOptions: v,
|
|
1103
1103
|
addableOptions: E = {}
|
|
1104
|
-
} = u, [
|
|
1104
|
+
} = u, [I, C] = g.useState(null), [M, m] = g.useState({
|
|
1105
1105
|
top: 0,
|
|
1106
1106
|
left: 0
|
|
1107
|
-
}), [
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1107
|
+
}), [O, k] = g.useState(null), y = g.useRef(null), [L, w] = g.useState(!1), R = (j, T) => {
|
|
1108
|
+
const p = [...s], [B] = p.splice(j, 1);
|
|
1109
|
+
p.splice(T, 0, B), i(p);
|
|
1110
1110
|
};
|
|
1111
|
-
|
|
1111
|
+
g.useEffect(() => {
|
|
1112
1112
|
const j = () => {
|
|
1113
|
-
|
|
1113
|
+
C(null), w(!1);
|
|
1114
1114
|
};
|
|
1115
|
-
return document.body.addEventListener("click", j),
|
|
1116
|
-
|
|
1115
|
+
return document.body.addEventListener("click", j), C(null), w(!1), () => {
|
|
1116
|
+
C(null), w(!1), document.body.removeEventListener("click", j);
|
|
1117
1117
|
};
|
|
1118
|
-
}, []),
|
|
1119
|
-
if (
|
|
1120
|
-
const j = [...s].map((
|
|
1118
|
+
}, []), g.useEffect(() => {
|
|
1119
|
+
if (I) {
|
|
1120
|
+
const j = [...s].map((T) => T.id === I.id ? I : T);
|
|
1121
1121
|
i(j);
|
|
1122
1122
|
}
|
|
1123
|
-
}, [
|
|
1124
|
-
if (
|
|
1125
|
-
const j =
|
|
1126
|
-
let
|
|
1127
|
-
|
|
1128
|
-
top:
|
|
1129
|
-
left:
|
|
1123
|
+
}, [I]), g.useEffect(() => {
|
|
1124
|
+
if (y.current && O) {
|
|
1125
|
+
const j = y.current.getBoundingClientRect().height, T = window.innerHeight;
|
|
1126
|
+
let p = O.top;
|
|
1127
|
+
p + j > T + window.scrollY - 200 && (p = T + window.scrollY - j - 200), p < 0 && (p = 10), m({
|
|
1128
|
+
top: p,
|
|
1129
|
+
left: O.left
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
}, [
|
|
1133
|
-
const U = (j,
|
|
1132
|
+
}, [y.current, O]);
|
|
1133
|
+
const U = (j, T) => {
|
|
1134
1134
|
j.stopPropagation();
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1137
|
-
top:
|
|
1138
|
-
left:
|
|
1139
|
-
}),
|
|
1135
|
+
const p = j.target.getBoundingClientRect();
|
|
1136
|
+
k({
|
|
1137
|
+
top: p.top + window.scrollY,
|
|
1138
|
+
left: p.left - 30
|
|
1139
|
+
}), C(T), w(!0);
|
|
1140
1140
|
};
|
|
1141
1141
|
function tt(j) {
|
|
1142
|
-
if (
|
|
1142
|
+
if (_)
|
|
1143
1143
|
return j ? /* @__PURE__ */ t.jsx(
|
|
1144
1144
|
"img",
|
|
1145
1145
|
{
|
|
@@ -1158,9 +1158,9 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1158
1158
|
}
|
|
1159
1159
|
);
|
|
1160
1160
|
}
|
|
1161
|
-
const at = (j,
|
|
1162
|
-
var
|
|
1163
|
-
const
|
|
1161
|
+
const at = (j, T) => {
|
|
1162
|
+
var B;
|
|
1163
|
+
const p = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1164
1164
|
r && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1165
1165
|
b,
|
|
1166
1166
|
{
|
|
@@ -1173,46 +1173,46 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1173
1173
|
x === "select" && /* @__PURE__ */ t.jsx(
|
|
1174
1174
|
Z,
|
|
1175
1175
|
{
|
|
1176
|
-
onChange: (
|
|
1176
|
+
onChange: ($) => {
|
|
1177
1177
|
const D = [...s].map((Y) => Y.id === j.id ? {
|
|
1178
1178
|
...j,
|
|
1179
|
-
name:
|
|
1179
|
+
name: $
|
|
1180
1180
|
} : Y);
|
|
1181
|
-
|
|
1181
|
+
C({
|
|
1182
1182
|
...j,
|
|
1183
|
-
name:
|
|
1183
|
+
name: $
|
|
1184
1184
|
}), i([...D]);
|
|
1185
1185
|
},
|
|
1186
1186
|
value: j.name,
|
|
1187
|
-
options: h.filter((
|
|
1187
|
+
options: h.filter(($) => !s.find((X) => X.name === $)),
|
|
1188
1188
|
leftAddon: tt(j.images)
|
|
1189
1189
|
}
|
|
1190
1190
|
),
|
|
1191
1191
|
x === "input" && /* @__PURE__ */ t.jsx(
|
|
1192
1192
|
W,
|
|
1193
1193
|
{
|
|
1194
|
-
onChange: (
|
|
1194
|
+
onChange: ($) => {
|
|
1195
1195
|
const D = [...s].map((Y) => Y.id === j.id ? {
|
|
1196
1196
|
...j,
|
|
1197
|
-
name:
|
|
1197
|
+
name: $
|
|
1198
1198
|
} : Y);
|
|
1199
1199
|
i([...D]);
|
|
1200
1200
|
},
|
|
1201
1201
|
value: j.name,
|
|
1202
|
-
placeholder:
|
|
1202
|
+
placeholder: f
|
|
1203
1203
|
}
|
|
1204
1204
|
),
|
|
1205
1205
|
x === "image" && /* @__PURE__ */ t.jsx(
|
|
1206
1206
|
ht,
|
|
1207
1207
|
{
|
|
1208
|
-
onChange: (
|
|
1208
|
+
onChange: ($) => {
|
|
1209
1209
|
const D = [...s].map((Y) => Y.id === j.id ? {
|
|
1210
1210
|
...j,
|
|
1211
|
-
images:
|
|
1211
|
+
images: $
|
|
1212
1212
|
} : Y);
|
|
1213
1213
|
i([...D]);
|
|
1214
1214
|
},
|
|
1215
|
-
activeImage: (
|
|
1215
|
+
activeImage: (B = s.find(($) => $.id === j.id)) == null ? void 0 : B.images[0]
|
|
1216
1216
|
}
|
|
1217
1217
|
),
|
|
1218
1218
|
/* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
|
|
@@ -1223,7 +1223,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1223
1223
|
hoverable: !0,
|
|
1224
1224
|
width: 20,
|
|
1225
1225
|
height: 20,
|
|
1226
|
-
onClick: (
|
|
1226
|
+
onClick: ($) => U($, j)
|
|
1227
1227
|
}
|
|
1228
1228
|
),
|
|
1229
1229
|
d && /* @__PURE__ */ t.jsx(
|
|
@@ -1234,7 +1234,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1234
1234
|
width: 20,
|
|
1235
1235
|
height: 20,
|
|
1236
1236
|
fill: "#C12A2A",
|
|
1237
|
-
onClick: () => i(s.filter((
|
|
1237
|
+
onClick: () => i(s.filter(($) => $.id !== j.id))
|
|
1238
1238
|
}
|
|
1239
1239
|
)
|
|
1240
1240
|
] })
|
|
@@ -1243,16 +1243,16 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1243
1243
|
ws,
|
|
1244
1244
|
{
|
|
1245
1245
|
product: j,
|
|
1246
|
-
index:
|
|
1246
|
+
index: T,
|
|
1247
1247
|
moveProduct: R,
|
|
1248
|
-
children:
|
|
1248
|
+
children: p
|
|
1249
1249
|
},
|
|
1250
1250
|
j.id
|
|
1251
1251
|
) : /* @__PURE__ */ t.jsx(
|
|
1252
1252
|
"div",
|
|
1253
1253
|
{
|
|
1254
1254
|
className: V.product,
|
|
1255
|
-
children:
|
|
1255
|
+
children: p
|
|
1256
1256
|
},
|
|
1257
1257
|
j.id
|
|
1258
1258
|
);
|
|
@@ -1268,22 +1268,22 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1268
1268
|
}
|
|
1269
1269
|
)
|
|
1270
1270
|
] }),
|
|
1271
|
-
|
|
1271
|
+
I && n && v && L && /* @__PURE__ */ t.jsx(
|
|
1272
1272
|
$s,
|
|
1273
1273
|
{
|
|
1274
|
-
ref:
|
|
1275
|
-
activeItem:
|
|
1276
|
-
setActiveItem:
|
|
1277
|
-
popupPosition:
|
|
1274
|
+
ref: y,
|
|
1275
|
+
activeItem: I,
|
|
1276
|
+
setActiveItem: C,
|
|
1277
|
+
popupPosition: M,
|
|
1278
1278
|
modalOptions: v,
|
|
1279
|
-
setIsOpenModal:
|
|
1279
|
+
setIsOpenModal: w
|
|
1280
1280
|
}
|
|
1281
1281
|
),
|
|
1282
|
-
|
|
1282
|
+
q && A && /* @__PURE__ */ t.jsx(It, { ...A }),
|
|
1283
1283
|
/* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
|
|
1284
1284
|
o && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: o }),
|
|
1285
|
-
r ? /* @__PURE__ */ t.jsx(yt, { backend: kt, children: s.map((j,
|
|
1286
|
-
|
|
1285
|
+
r ? /* @__PURE__ */ t.jsx(yt, { backend: kt, children: s.map((j, T) => at(j, T)) }) : s.map((j, T) => at(j, T)),
|
|
1286
|
+
P && /* @__PURE__ */ t.jsx("div", { className: V.addButton, children: /* @__PURE__ */ t.jsxs(
|
|
1287
1287
|
it,
|
|
1288
1288
|
{
|
|
1289
1289
|
withoutHover: !0,
|
|
@@ -1291,16 +1291,16 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1291
1291
|
size: "s",
|
|
1292
1292
|
onClick: () => {
|
|
1293
1293
|
const j = [...s];
|
|
1294
|
-
let
|
|
1294
|
+
let T = null;
|
|
1295
1295
|
if (h) {
|
|
1296
|
-
for (let
|
|
1297
|
-
if (!s.find((
|
|
1298
|
-
|
|
1296
|
+
for (let p = 0; p < h.length; p++)
|
|
1297
|
+
if (!s.find((B) => B.name === h[p])) {
|
|
1298
|
+
T = h[p];
|
|
1299
1299
|
break;
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
x === "select" ? j.push({
|
|
1303
|
-
name:
|
|
1303
|
+
name: T || h[0],
|
|
1304
1304
|
id: dt(),
|
|
1305
1305
|
...E
|
|
1306
1306
|
}) : x === "input" ? j.push({
|
|
@@ -1332,7 +1332,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1332
1332
|
] }),
|
|
1333
1333
|
c !== void 0 && /* @__PURE__ */ t.jsx(xt, { items: c })
|
|
1334
1334
|
] });
|
|
1335
|
-
}, Ns = "_title_oravb_1", Is = "_subtitle_oravb_5", Cs = "_header_oravb_12", Bs = "_text_oravb_13", Ss = "_productsBlock_oravb_14", Ps = "_buttonsBlock_oravb_15", Ts = "_top_oravb_26",
|
|
1335
|
+
}, Ns = "_title_oravb_1", Is = "_subtitle_oravb_5", Cs = "_header_oravb_12", Bs = "_text_oravb_13", Ss = "_productsBlock_oravb_14", Ps = "_buttonsBlock_oravb_15", Ts = "_top_oravb_26", qs = "_itemsBlock_oravb_35", As = "_typeTexts_oravb_41", Os = "_block_oravb_48", Ds = "_active_oravb_60", Es = "_products_oravb_14", Ls = "_product_oravb_14", Rs = "_button_oravb_15", Ms = "_image_oravb_90", Hs = "_info_oravb_97", zs = "_name_oravb_109", Vs = "_buttons_oravb_15", Fs = "_modal_oravb_120", Us = "_other_oravb_139", Ys = "_options_oravb_145", ct = {
|
|
1336
1336
|
title: Ns,
|
|
1337
1337
|
subtitle: Is,
|
|
1338
1338
|
header: Cs,
|
|
@@ -1340,9 +1340,9 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1340
1340
|
productsBlock: Ss,
|
|
1341
1341
|
buttonsBlock: Ps,
|
|
1342
1342
|
top: Ts,
|
|
1343
|
-
itemsBlock:
|
|
1344
|
-
typeTexts:
|
|
1345
|
-
block:
|
|
1343
|
+
itemsBlock: qs,
|
|
1344
|
+
typeTexts: As,
|
|
1345
|
+
block: Os,
|
|
1346
1346
|
active: Ds,
|
|
1347
1347
|
products: Es,
|
|
1348
1348
|
product: Ls,
|
|
@@ -1354,9 +1354,9 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1354
1354
|
modal: Fs,
|
|
1355
1355
|
other: Us,
|
|
1356
1356
|
options: Ys
|
|
1357
|
-
}, Gs =
|
|
1358
|
-
const { activeButton: e, setActiveButton: s, popupPosition: i } = u, [c, l] =
|
|
1359
|
-
return
|
|
1357
|
+
}, Gs = g.forwardRef((u, a) => {
|
|
1358
|
+
const { activeButton: e, setActiveButton: s, popupPosition: i } = u, [c, l] = g.useState(e.typesText), [o, n] = g.useState(e.destination), [r, _] = g.useState(e.page), [d, P] = g.useState(e.link || ""), [x, f] = g.useState(e.text || ""), [h, q] = g.useState(e.openInNewTab), { pages: A } = Ot();
|
|
1359
|
+
return g.useEffect(() => {
|
|
1360
1360
|
s({
|
|
1361
1361
|
...e,
|
|
1362
1362
|
...{
|
|
@@ -1408,14 +1408,14 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1408
1408
|
Z,
|
|
1409
1409
|
{
|
|
1410
1410
|
label: "Go to",
|
|
1411
|
-
onChange: (v) =>
|
|
1412
|
-
options:
|
|
1411
|
+
onChange: (v) => _(v),
|
|
1412
|
+
options: A ? Object.values(A).filter((v) => v.name !== r).map((v) => v.name) : [],
|
|
1413
1413
|
value: r
|
|
1414
1414
|
}
|
|
1415
1415
|
) : /* @__PURE__ */ t.jsx(
|
|
1416
1416
|
W,
|
|
1417
1417
|
{
|
|
1418
|
-
onChange: (v) =>
|
|
1418
|
+
onChange: (v) => P(v),
|
|
1419
1419
|
value: d,
|
|
1420
1420
|
placeholder: "https://",
|
|
1421
1421
|
label: "Link"
|
|
@@ -1426,13 +1426,13 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1426
1426
|
{
|
|
1427
1427
|
current: e.openInNewTab,
|
|
1428
1428
|
label: "Open in new tab",
|
|
1429
|
-
onChange: (v) =>
|
|
1429
|
+
onChange: (v) => q(v)
|
|
1430
1430
|
}
|
|
1431
1431
|
),
|
|
1432
1432
|
/* @__PURE__ */ t.jsx(
|
|
1433
1433
|
Ct,
|
|
1434
1434
|
{
|
|
1435
|
-
onChange: (v) =>
|
|
1435
|
+
onChange: (v) => f(v),
|
|
1436
1436
|
value: x,
|
|
1437
1437
|
label: "Text",
|
|
1438
1438
|
maxLength: 150
|
|
@@ -1472,39 +1472,39 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1472
1472
|
options: hn,
|
|
1473
1473
|
addButton: pn
|
|
1474
1474
|
}, gn = (u) => {
|
|
1475
|
-
const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0 } = u, [c, l] =
|
|
1475
|
+
const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0 } = u, [c, l] = g.useState(null), [o, n] = g.useState({
|
|
1476
1476
|
top: 0,
|
|
1477
1477
|
left: 0
|
|
1478
|
-
}), [r,
|
|
1479
|
-
|
|
1478
|
+
}), [r, _] = g.useState(null), d = g.useRef(null);
|
|
1479
|
+
g.useEffect(() => {
|
|
1480
1480
|
const x = () => {
|
|
1481
1481
|
l(null);
|
|
1482
1482
|
};
|
|
1483
1483
|
return document.body.addEventListener("click", x), l(null), () => {
|
|
1484
1484
|
l(null), document.body.removeEventListener("click", x);
|
|
1485
1485
|
};
|
|
1486
|
-
}, []),
|
|
1486
|
+
}, []), g.useEffect(() => {
|
|
1487
1487
|
if (c) {
|
|
1488
|
-
const x = [...a].map((
|
|
1488
|
+
const x = [...a].map((f) => f.id === c.id ? c : f);
|
|
1489
1489
|
e(x);
|
|
1490
1490
|
}
|
|
1491
|
-
}, [c]),
|
|
1491
|
+
}, [c]), g.useEffect(() => {
|
|
1492
1492
|
if (d.current && r) {
|
|
1493
|
-
const x = d.current.getBoundingClientRect().height,
|
|
1493
|
+
const x = d.current.getBoundingClientRect().height, f = window.innerHeight;
|
|
1494
1494
|
let h = r.top;
|
|
1495
|
-
h + x >
|
|
1495
|
+
h + x > f + window.scrollY - 200 && (h = f + window.scrollY - x - 200), h < 0 && (h = 10), n({
|
|
1496
1496
|
top: h,
|
|
1497
1497
|
left: r.left
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
1500
|
}, [d.current, r]);
|
|
1501
|
-
const
|
|
1501
|
+
const P = (x, f) => {
|
|
1502
1502
|
x.stopPropagation();
|
|
1503
1503
|
const h = x.target.getBoundingClientRect();
|
|
1504
|
-
|
|
1504
|
+
_({
|
|
1505
1505
|
top: h.top + window.scrollY,
|
|
1506
1506
|
left: h.left - 30
|
|
1507
|
-
}), l(
|
|
1507
|
+
}), l(f);
|
|
1508
1508
|
};
|
|
1509
1509
|
return /* @__PURE__ */ t.jsxs("div", { className: rt.products, children: [
|
|
1510
1510
|
/* @__PURE__ */ t.jsx("h5", { className: rt.subtitle, children: "Button Type" }),
|
|
@@ -1516,12 +1516,12 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1516
1516
|
/* @__PURE__ */ t.jsx(
|
|
1517
1517
|
Z,
|
|
1518
1518
|
{
|
|
1519
|
-
onChange: (
|
|
1520
|
-
const
|
|
1519
|
+
onChange: (f) => {
|
|
1520
|
+
const q = [...a].map((A) => A.id === x.id ? {
|
|
1521
1521
|
...x,
|
|
1522
|
-
type:
|
|
1523
|
-
} :
|
|
1524
|
-
e(
|
|
1522
|
+
type: f
|
|
1523
|
+
} : A);
|
|
1524
|
+
e(q);
|
|
1525
1525
|
},
|
|
1526
1526
|
value: x.type,
|
|
1527
1527
|
options: ["Primary", "Secondary", "Tertiary"]
|
|
@@ -1535,8 +1535,8 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1535
1535
|
hoverable: !0,
|
|
1536
1536
|
width: 20,
|
|
1537
1537
|
height: 20,
|
|
1538
|
-
onClick: (
|
|
1539
|
-
|
|
1538
|
+
onClick: (f) => {
|
|
1539
|
+
P(f, x);
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
1542
|
),
|
|
@@ -1546,8 +1546,8 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1546
1546
|
name: "Trash",
|
|
1547
1547
|
hoverable: !0,
|
|
1548
1548
|
onClick: () => {
|
|
1549
|
-
const
|
|
1550
|
-
e(
|
|
1549
|
+
const f = a.filter((h) => h.id !== x.id);
|
|
1550
|
+
e(f);
|
|
1551
1551
|
},
|
|
1552
1552
|
width: 20,
|
|
1553
1553
|
height: 20,
|
|
@@ -1640,12 +1640,12 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1640
1640
|
controls: Bn,
|
|
1641
1641
|
button: Sn
|
|
1642
1642
|
}, It = (u) => {
|
|
1643
|
-
const { label: a, min: e = 1, max: s = 4, step: i = 1, count: c, setCount: l } = u, [o, n] =
|
|
1643
|
+
const { label: a, min: e = 1, max: s = 4, step: i = 1, count: c, setCount: l } = u, [o, n] = g.useState(!1), r = Array.from({ length: (s - e) / i + 1 }), _ = (c - e) / (s - e) * 100, d = () => {
|
|
1644
1644
|
c < s && l(c + i);
|
|
1645
|
-
},
|
|
1645
|
+
}, P = () => {
|
|
1646
1646
|
c > e && l(c - i);
|
|
1647
|
-
}, x = (
|
|
1648
|
-
const h = e +
|
|
1647
|
+
}, x = (f) => {
|
|
1648
|
+
const h = e + f * i;
|
|
1649
1649
|
l(h);
|
|
1650
1650
|
};
|
|
1651
1651
|
return /* @__PURE__ */ t.jsxs("div", { className: z.wrapper, children: [
|
|
@@ -1657,18 +1657,18 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1657
1657
|
"div",
|
|
1658
1658
|
{
|
|
1659
1659
|
className: z.progress,
|
|
1660
|
-
style: { width: `${
|
|
1660
|
+
style: { width: `${_}%` }
|
|
1661
1661
|
}
|
|
1662
1662
|
),
|
|
1663
|
-
/* @__PURE__ */ t.jsx("div", { className: z.dots, children: r.map((
|
|
1664
|
-
const
|
|
1663
|
+
/* @__PURE__ */ t.jsx("div", { className: z.dots, children: r.map((f, h) => {
|
|
1664
|
+
const q = h <= (c - e) / i;
|
|
1665
1665
|
return /* @__PURE__ */ t.jsx(
|
|
1666
1666
|
"button",
|
|
1667
1667
|
{
|
|
1668
1668
|
onClick: () => x(h),
|
|
1669
1669
|
className: F(z.dot, {
|
|
1670
|
-
[z.active]:
|
|
1671
|
-
[z.inactive]: !
|
|
1670
|
+
[z.active]: q,
|
|
1671
|
+
[z.inactive]: !q,
|
|
1672
1672
|
[z.dragging]: o
|
|
1673
1673
|
}),
|
|
1674
1674
|
"aria-label": `Set value to ${e + h * i}`
|
|
@@ -1684,7 +1684,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1684
1684
|
max: s,
|
|
1685
1685
|
step: i,
|
|
1686
1686
|
value: c,
|
|
1687
|
-
onChange: (
|
|
1687
|
+
onChange: (f) => l(Number(f.target.value)),
|
|
1688
1688
|
onMouseDown: () => n(!0),
|
|
1689
1689
|
onMouseUp: () => n(!1),
|
|
1690
1690
|
onTouchStart: () => n(!0),
|
|
@@ -1701,8 +1701,8 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1701
1701
|
min: e,
|
|
1702
1702
|
max: s,
|
|
1703
1703
|
paddingless: !0,
|
|
1704
|
-
onChange: (
|
|
1705
|
-
const h = Number(
|
|
1704
|
+
onChange: (f) => {
|
|
1705
|
+
const h = Number(f);
|
|
1706
1706
|
h > s ? l(s) : h < e ? l(e) : l(h);
|
|
1707
1707
|
},
|
|
1708
1708
|
value: String(c)
|
|
@@ -1729,7 +1729,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1729
1729
|
/* @__PURE__ */ t.jsx(
|
|
1730
1730
|
"button",
|
|
1731
1731
|
{
|
|
1732
|
-
onClick:
|
|
1732
|
+
onClick: P,
|
|
1733
1733
|
disabled: c <= e,
|
|
1734
1734
|
className: z.button,
|
|
1735
1735
|
"aria-label": "Decrement count",
|
|
@@ -1747,12 +1747,12 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1747
1747
|
] })
|
|
1748
1748
|
] })
|
|
1749
1749
|
] });
|
|
1750
|
-
}, Pn = "_title_w64fy_1", Tn = "_subtitle_w64fy_5",
|
|
1750
|
+
}, Pn = "_title_w64fy_1", Tn = "_subtitle_w64fy_5", qn = "_header_w64fy_12", An = "_text_w64fy_13", On = "_productsBlock_w64fy_14", Dn = "_top_w64fy_26", En = "_itemsBlock_w64fy_35", Ln = "_typeTexts_w64fy_41", Rn = "_block_w64fy_48", Mn = "_active_w64fy_61", Hn = "_products_w64fy_14", zn = "_product_w64fy_14", Vn = "_button_w64fy_80", Fn = "_image_w64fy_91", Un = "_info_w64fy_98", Yn = "_name_w64fy_110", Gn = "_buttons_w64fy_114", Wn = "_modal_w64fy_121", Xn = "_link_w64fy_141", Jn = "_modalOptions_w64fy_147", Qn = "_addButton_w64fy_159", G = {
|
|
1751
1751
|
title: Pn,
|
|
1752
1752
|
subtitle: Tn,
|
|
1753
|
-
header:
|
|
1754
|
-
text:
|
|
1755
|
-
productsBlock:
|
|
1753
|
+
header: qn,
|
|
1754
|
+
text: An,
|
|
1755
|
+
productsBlock: On,
|
|
1756
1756
|
top: Dn,
|
|
1757
1757
|
itemsBlock: En,
|
|
1758
1758
|
typeTexts: Ln,
|
|
@@ -1851,46 +1851,46 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1851
1851
|
subtitle: o,
|
|
1852
1852
|
editable: n = !0,
|
|
1853
1853
|
draggable: r = !1,
|
|
1854
|
-
withImage:
|
|
1854
|
+
withImage: _ = !1,
|
|
1855
1855
|
deletable: d = !0,
|
|
1856
|
-
addable:
|
|
1856
|
+
addable: P = !0,
|
|
1857
1857
|
itemsType: x,
|
|
1858
|
-
itemsOptions:
|
|
1859
|
-
} = u, [h,
|
|
1858
|
+
itemsOptions: f
|
|
1859
|
+
} = u, [h, q] = g.useState(null), [A, v] = g.useState({
|
|
1860
1860
|
top: 0,
|
|
1861
1861
|
left: 0
|
|
1862
|
-
}), [E,
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1862
|
+
}), [E, I] = g.useState(!1), C = (k, y) => {
|
|
1863
|
+
const L = [...s], [w] = L.splice(k, 1);
|
|
1864
|
+
L.splice(y, 0, w), i(L);
|
|
1865
1865
|
};
|
|
1866
|
-
|
|
1867
|
-
const
|
|
1868
|
-
|
|
1866
|
+
g.useEffect(() => {
|
|
1867
|
+
const k = () => {
|
|
1868
|
+
q(null), I(!1);
|
|
1869
1869
|
};
|
|
1870
|
-
return document.body.addEventListener("click",
|
|
1871
|
-
|
|
1870
|
+
return document.body.addEventListener("click", k), q(null), I(!1), () => {
|
|
1871
|
+
q(null), I(!1), document.body.removeEventListener("click", k);
|
|
1872
1872
|
};
|
|
1873
|
-
}, []),
|
|
1873
|
+
}, []), g.useEffect(() => {
|
|
1874
1874
|
if (h) {
|
|
1875
|
-
const
|
|
1876
|
-
i(
|
|
1875
|
+
const k = [...s].map((y) => y.listingId === h.listingId ? h : y);
|
|
1876
|
+
i(k);
|
|
1877
1877
|
}
|
|
1878
1878
|
}, [h]);
|
|
1879
|
-
const
|
|
1880
|
-
|
|
1881
|
-
const
|
|
1882
|
-
let U =
|
|
1883
|
-
U +
|
|
1879
|
+
const M = (k, y) => {
|
|
1880
|
+
k.stopPropagation();
|
|
1881
|
+
const L = k.target.getBoundingClientRect(), w = 100, R = window.innerHeight;
|
|
1882
|
+
let U = L.top + window.scrollY;
|
|
1883
|
+
U + w > R && (U = R - w - 20), I(!0), v({
|
|
1884
1884
|
top: U - 80,
|
|
1885
|
-
left:
|
|
1886
|
-
}),
|
|
1885
|
+
left: L.left - 30
|
|
1886
|
+
}), q(y);
|
|
1887
1887
|
};
|
|
1888
|
-
function
|
|
1889
|
-
if (
|
|
1890
|
-
return
|
|
1888
|
+
function m(k) {
|
|
1889
|
+
if (_)
|
|
1890
|
+
return k ? /* @__PURE__ */ t.jsx(
|
|
1891
1891
|
"img",
|
|
1892
1892
|
{
|
|
1893
|
-
src: `https://imagedelivery.net/${
|
|
1893
|
+
src: `https://imagedelivery.net/${k}/w=1000`,
|
|
1894
1894
|
alt: "image",
|
|
1895
1895
|
width: 16,
|
|
1896
1896
|
height: 16
|
|
@@ -1905,10 +1905,10 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1905
1905
|
}
|
|
1906
1906
|
);
|
|
1907
1907
|
}
|
|
1908
|
-
const
|
|
1909
|
-
const
|
|
1910
|
-
if (!
|
|
1911
|
-
const
|
|
1908
|
+
const O = (k, y) => {
|
|
1909
|
+
const L = f.find((R) => k.listingId === R.id);
|
|
1910
|
+
if (!L) return null;
|
|
1911
|
+
const w = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1912
1912
|
r && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1913
1913
|
b,
|
|
1914
1914
|
{
|
|
@@ -1917,28 +1917,28 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1917
1917
|
width: 20,
|
|
1918
1918
|
height: 20
|
|
1919
1919
|
}
|
|
1920
|
-
) },
|
|
1920
|
+
) }, y),
|
|
1921
1921
|
x === "select" && /* @__PURE__ */ t.jsx(
|
|
1922
1922
|
Z,
|
|
1923
1923
|
{
|
|
1924
1924
|
onChange: (R) => {
|
|
1925
|
-
const U = [...s], tt =
|
|
1925
|
+
const U = [...s], tt = f.find((T) => T.productData.name === R);
|
|
1926
1926
|
if (!tt) return;
|
|
1927
1927
|
const at = {
|
|
1928
1928
|
listingId: tt.id,
|
|
1929
1929
|
image: tt.productData.images.length > 0 ? tt.productData.images[0].cfId : ""
|
|
1930
|
-
}, j = U.map((
|
|
1931
|
-
|
|
1930
|
+
}, j = U.map((T) => T.listingId === k.listingId ? at : T);
|
|
1931
|
+
q(at), i([...j]);
|
|
1932
1932
|
},
|
|
1933
|
-
value:
|
|
1933
|
+
value: L.productData.name,
|
|
1934
1934
|
options: [
|
|
1935
|
-
...
|
|
1935
|
+
...f.filter((R) => !s.find((U) => U.listingId === R.id)).map((R) => R.productData.name)
|
|
1936
1936
|
],
|
|
1937
|
-
leftAddon:
|
|
1938
|
-
|
|
1937
|
+
leftAddon: m(
|
|
1938
|
+
k.image || L.productData.images.length > 0 && L.productData.images[0].cfId || ""
|
|
1939
1939
|
)
|
|
1940
1940
|
},
|
|
1941
|
-
|
|
1941
|
+
y
|
|
1942
1942
|
),
|
|
1943
1943
|
/* @__PURE__ */ t.jsxs("div", { className: G.buttons, children: [
|
|
1944
1944
|
n && /* @__PURE__ */ t.jsx(
|
|
@@ -1948,7 +1948,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1948
1948
|
hoverable: !0,
|
|
1949
1949
|
width: 20,
|
|
1950
1950
|
height: 20,
|
|
1951
|
-
onClick: (R) =>
|
|
1951
|
+
onClick: (R) => M(R, k)
|
|
1952
1952
|
}
|
|
1953
1953
|
),
|
|
1954
1954
|
d && /* @__PURE__ */ t.jsx(
|
|
@@ -1959,7 +1959,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1959
1959
|
width: 20,
|
|
1960
1960
|
height: 20,
|
|
1961
1961
|
fill: "#C12A2A",
|
|
1962
|
-
onClick: () => i(s.filter((R) => R !==
|
|
1962
|
+
onClick: () => i(s.filter((R) => R !== k))
|
|
1963
1963
|
}
|
|
1964
1964
|
)
|
|
1965
1965
|
] })
|
|
@@ -1967,19 +1967,19 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1967
1967
|
return r ? /* @__PURE__ */ t.jsx(
|
|
1968
1968
|
Zn,
|
|
1969
1969
|
{
|
|
1970
|
-
product:
|
|
1971
|
-
index:
|
|
1972
|
-
moveProduct:
|
|
1973
|
-
children:
|
|
1970
|
+
product: k,
|
|
1971
|
+
index: y,
|
|
1972
|
+
moveProduct: C,
|
|
1973
|
+
children: w
|
|
1974
1974
|
},
|
|
1975
|
-
|
|
1975
|
+
k.listingId
|
|
1976
1976
|
) : /* @__PURE__ */ t.jsx(
|
|
1977
1977
|
"div",
|
|
1978
1978
|
{
|
|
1979
1979
|
className: G.product,
|
|
1980
|
-
children:
|
|
1980
|
+
children: w
|
|
1981
1981
|
},
|
|
1982
|
-
|
|
1982
|
+
k.listingId
|
|
1983
1983
|
);
|
|
1984
1984
|
};
|
|
1985
1985
|
return /* @__PURE__ */ t.jsxs("div", { className: G.productsBlock, children: [
|
|
@@ -1989,7 +1989,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1989
1989
|
K,
|
|
1990
1990
|
{
|
|
1991
1991
|
current: a,
|
|
1992
|
-
onChange: (
|
|
1992
|
+
onChange: (k) => e == null ? void 0 : e(k)
|
|
1993
1993
|
}
|
|
1994
1994
|
)
|
|
1995
1995
|
] }),
|
|
@@ -1997,34 +1997,34 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
1997
1997
|
Kn,
|
|
1998
1998
|
{
|
|
1999
1999
|
activeItem: h,
|
|
2000
|
-
setActiveItem:
|
|
2001
|
-
setIsOpenModal:
|
|
2002
|
-
popupPosition:
|
|
2003
|
-
itemsOptions:
|
|
2000
|
+
setActiveItem: q,
|
|
2001
|
+
setIsOpenModal: I,
|
|
2002
|
+
popupPosition: A,
|
|
2003
|
+
itemsOptions: f
|
|
2004
2004
|
}
|
|
2005
2005
|
),
|
|
2006
2006
|
/* @__PURE__ */ t.jsxs("div", { className: G.products, children: [
|
|
2007
2007
|
o && /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: o }),
|
|
2008
|
-
r ? /* @__PURE__ */ t.jsx(yt, { backend: kt, children: s.map((
|
|
2009
|
-
|
|
2008
|
+
r ? /* @__PURE__ */ t.jsx(yt, { backend: kt, children: s.map((k, y) => O(k, y)) }) : s.map((k, y) => O(k, y)),
|
|
2009
|
+
P && /* @__PURE__ */ t.jsx("div", { className: G.addButton, children: /* @__PURE__ */ t.jsxs(
|
|
2010
2010
|
it,
|
|
2011
2011
|
{
|
|
2012
2012
|
withoutHover: !0,
|
|
2013
2013
|
className: G.button,
|
|
2014
2014
|
size: "s",
|
|
2015
2015
|
onClick: () => {
|
|
2016
|
-
const
|
|
2017
|
-
for (let
|
|
2018
|
-
if (!s.find((
|
|
2019
|
-
|
|
2020
|
-
listingId:
|
|
2021
|
-
image:
|
|
2016
|
+
const k = [...s];
|
|
2017
|
+
for (let y = 0; y < f.length; y++)
|
|
2018
|
+
if (!s.find((L) => L.listingId === f[y].id)) {
|
|
2019
|
+
k.push({
|
|
2020
|
+
listingId: f[y].id,
|
|
2021
|
+
image: f[y].productData.images.length > 0 ? f[y].productData.images[0].cfId : ""
|
|
2022
2022
|
});
|
|
2023
2023
|
break;
|
|
2024
2024
|
}
|
|
2025
|
-
i(
|
|
2025
|
+
i(k);
|
|
2026
2026
|
},
|
|
2027
|
-
disabled: s.length ===
|
|
2027
|
+
disabled: s.length === f.length,
|
|
2028
2028
|
style: {
|
|
2029
2029
|
width: "fit-content"
|
|
2030
2030
|
},
|
|
@@ -2044,7 +2044,7 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
2044
2044
|
] }),
|
|
2045
2045
|
c !== void 0 && /* @__PURE__ */ t.jsx(xt, { items: c })
|
|
2046
2046
|
] });
|
|
2047
|
-
}, ti = "_options_jdafm_1", ei = "_price_jdafm_12", si = "_oldPrice_jdafm_19", ni = "_newPrice_jdafm_27", ii = "_animate_jdafm_34", ai = "_appearAndBounce_jdafm_1", oi = "_meta_jdafm_52", ci = "_info_jdafm_58", li = "_infoRight_jdafm_66", ri = "_buttons_jdafm_73", di = "_variants_jdafm_80", ui = "_variant_jdafm_80", mi = "_stock_jdafm_97", _i = "_variantInfo_jdafm_104", hi = "_quantity_jdafm_110", pi = "_count_jdafm_117", gi = "_focused_jdafm_134", fi = "_button_jdafm_73", xi = "_activeVariant_jdafm_160", bi = "_chargeTypes_jdafm_164", vi = "_charge_jdafm_164", ji = "_chargeActive_jdafm_189", yi = "_title_jdafm_197",
|
|
2047
|
+
}, ti = "_options_jdafm_1", ei = "_price_jdafm_12", si = "_oldPrice_jdafm_19", ni = "_newPrice_jdafm_27", ii = "_animate_jdafm_34", ai = "_appearAndBounce_jdafm_1", oi = "_meta_jdafm_52", ci = "_info_jdafm_58", li = "_infoRight_jdafm_66", ri = "_buttons_jdafm_73", di = "_variants_jdafm_80", ui = "_variant_jdafm_80", mi = "_stock_jdafm_97", _i = "_variantInfo_jdafm_104", hi = "_quantity_jdafm_110", pi = "_count_jdafm_117", gi = "_focused_jdafm_134", fi = "_button_jdafm_73", xi = "_activeVariant_jdafm_160", bi = "_chargeTypes_jdafm_164", vi = "_charge_jdafm_164", ji = "_chargeActive_jdafm_189", yi = "_title_jdafm_197", N = {
|
|
2048
2048
|
options: ti,
|
|
2049
2049
|
price: ei,
|
|
2050
2050
|
oldPrice: si,
|
|
@@ -2069,89 +2069,90 @@ const Et = "_wrapper_9rr5j_2", Lt = "_alignmentBlock_9rr5j_8", Rt = "_title_9rr5
|
|
|
2069
2069
|
chargeActive: ji,
|
|
2070
2070
|
title: yi
|
|
2071
2071
|
};
|
|
2072
|
-
var
|
|
2072
|
+
var At = /* @__PURE__ */ ((u) => (u.ONE_TIME = "One-Time", u.RECURRING = "Subscribe & Save", u))(At || {});
|
|
2073
2073
|
const Xa = (u) => {
|
|
2074
|
-
var C,
|
|
2075
|
-
const { variants: a } = u, [e, s] =
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
const
|
|
2079
|
-
return () => clearTimeout(
|
|
2074
|
+
var C, M;
|
|
2075
|
+
const { variants: a } = u, [e, s] = g.useState(a[0]), [i, c] = g.useState(e.chargeTypes[0]), l = ft(), [o, n] = g.useState(1), [r, _] = g.useState(!1), { reset: d, addProductToCart: P, getProducts: x, cart: f } = Nt(), [h, q] = g.useState(!1);
|
|
2076
|
+
g.useEffect(() => {
|
|
2077
|
+
q(!0);
|
|
2078
|
+
const m = setTimeout(() => q(!1), 600);
|
|
2079
|
+
return () => clearTimeout(m);
|
|
2080
2080
|
}, [o]);
|
|
2081
|
-
async function
|
|
2082
|
-
await x(), await
|
|
2081
|
+
async function A() {
|
|
2082
|
+
await x(), await P({
|
|
2083
2083
|
productId: u.id,
|
|
2084
2084
|
productVariantId: e.id,
|
|
2085
2085
|
quantity: o
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2089
|
-
d(),
|
|
2088
|
+
function v() {
|
|
2089
|
+
d(), A(), l("/checkout");
|
|
2090
2090
|
}
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2091
|
+
console.log(f);
|
|
2092
|
+
function E(m) {
|
|
2093
|
+
if (m >= 864e5) {
|
|
2094
|
+
const w = Math.floor(m / 864e5);
|
|
2095
|
+
return `${w} ${w === 1 ? "day" : "days"}`;
|
|
2096
|
+
} else if (m >= 36e5) {
|
|
2097
|
+
const w = Math.floor(m / 36e5);
|
|
2098
|
+
return `${w} ${w === 1 ? "hour" : "hours"}`;
|
|
2099
|
+
} else if (m >= 6e4) {
|
|
2100
|
+
const w = Math.floor(m / 6e4);
|
|
2101
|
+
return `${w} ${w === 1 ? "minute" : "minutes"}`;
|
|
2101
2102
|
} else {
|
|
2102
|
-
const
|
|
2103
|
-
return `${
|
|
2103
|
+
const w = Math.floor(m / 1e3);
|
|
2104
|
+
return `${w} ${w === 1 ? "second" : "seconds"}`;
|
|
2104
2105
|
}
|
|
2105
2106
|
}
|
|
2106
|
-
function
|
|
2107
|
-
return
|
|
2107
|
+
function I(m, O) {
|
|
2108
|
+
return m.length > O ? m.slice(0, O) + "..." : m;
|
|
2108
2109
|
}
|
|
2109
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2110
|
-
e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className:
|
|
2110
|
+
return /* @__PURE__ */ t.jsxs("div", { className: N.options, children: [
|
|
2111
|
+
e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: N.chargeTypes, children: e.chargeTypes.map((m) => /* @__PURE__ */ t.jsx(
|
|
2111
2112
|
"div",
|
|
2112
2113
|
{
|
|
2113
|
-
className: F(
|
|
2114
|
-
[
|
|
2114
|
+
className: F(N.charge, {
|
|
2115
|
+
[N.chargeActive]: i === m
|
|
2115
2116
|
}),
|
|
2116
|
-
onClick: () => c(
|
|
2117
|
-
children:
|
|
2117
|
+
onClick: () => c(m),
|
|
2118
|
+
children: At[m]
|
|
2118
2119
|
},
|
|
2119
|
-
|
|
2120
|
+
m
|
|
2120
2121
|
)) }),
|
|
2121
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2122
|
-
var
|
|
2122
|
+
/* @__PURE__ */ t.jsx("div", { className: N.variants, children: a.map((m) => {
|
|
2123
|
+
var O;
|
|
2123
2124
|
return /* @__PURE__ */ t.jsxs(
|
|
2124
2125
|
"div",
|
|
2125
2126
|
{
|
|
2126
|
-
className: F(
|
|
2127
|
-
[
|
|
2127
|
+
className: F(N.variant, {
|
|
2128
|
+
[N.activeVariant]: e.id === m.id
|
|
2128
2129
|
}),
|
|
2129
|
-
onClick: () => s(
|
|
2130
|
+
onClick: () => s(m),
|
|
2130
2131
|
children: [
|
|
2131
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2132
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2132
|
+
/* @__PURE__ */ t.jsxs("div", { className: N.variantInfo, children: [
|
|
2133
|
+
/* @__PURE__ */ t.jsx("span", { className: N.title, children: I(m.name, 15) }),
|
|
2133
2134
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
2134
2135
|
"$",
|
|
2135
|
-
i === "ONE_TIME" ?
|
|
2136
|
+
i === "ONE_TIME" ? m.price.amount : m.subscriptionSettings ? m.subscriptionSettings.price.amount : "Price Not Found"
|
|
2136
2137
|
] })
|
|
2137
2138
|
] }),
|
|
2138
|
-
/* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className:
|
|
2139
|
-
((
|
|
2139
|
+
/* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: N.stock, children: [
|
|
2140
|
+
((O = m.quantity.restrictions) == null ? void 0 : O.max) || m.quantity.available || 0,
|
|
2140
2141
|
" in stock"
|
|
2141
2142
|
] }) })
|
|
2142
2143
|
]
|
|
2143
2144
|
},
|
|
2144
|
-
|
|
2145
|
+
m.id
|
|
2145
2146
|
);
|
|
2146
2147
|
}) }),
|
|
2147
|
-
i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className:
|
|
2148
|
+
i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: N.quantity, children: [
|
|
2148
2149
|
/* @__PURE__ */ t.jsx(
|
|
2149
2150
|
"button",
|
|
2150
2151
|
{
|
|
2151
2152
|
onClick: () => {
|
|
2152
|
-
o > 1 ? n((
|
|
2153
|
+
o > 1 ? n((m) => m - 1) : n(1);
|
|
2153
2154
|
},
|
|
2154
|
-
className:
|
|
2155
|
+
className: N.button,
|
|
2155
2156
|
disabled: e.quantity.restrictions && o <= e.quantity.restrictions.min,
|
|
2156
2157
|
children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
|
|
2157
2158
|
}
|
|
@@ -2159,19 +2160,19 @@ const Xa = (u) => {
|
|
|
2159
2160
|
/* @__PURE__ */ t.jsx(
|
|
2160
2161
|
"label",
|
|
2161
2162
|
{
|
|
2162
|
-
className: F(
|
|
2163
|
-
[
|
|
2163
|
+
className: F(N.count, {
|
|
2164
|
+
[N.focused]: r
|
|
2164
2165
|
}),
|
|
2165
|
-
onFocus: () =>
|
|
2166
|
-
onBlur: () =>
|
|
2166
|
+
onFocus: () => _(!0),
|
|
2167
|
+
onBlur: () => _(!1),
|
|
2167
2168
|
children: /* @__PURE__ */ t.jsx(
|
|
2168
2169
|
W,
|
|
2169
2170
|
{
|
|
2170
2171
|
type: "number",
|
|
2171
2172
|
value: String(o),
|
|
2172
|
-
onChange: (
|
|
2173
|
+
onChange: (m) => n(Number(m)),
|
|
2173
2174
|
max: ((C = e.quantity.restrictions) == null ? void 0 : C.max) || e.quantity.available || 1 / 0,
|
|
2174
|
-
min: ((
|
|
2175
|
+
min: ((M = e.quantity.restrictions) == null ? void 0 : M.min) || 0,
|
|
2175
2176
|
style: {
|
|
2176
2177
|
backgroundColor: "transparent",
|
|
2177
2178
|
border: "none",
|
|
@@ -2185,18 +2186,18 @@ const Xa = (u) => {
|
|
|
2185
2186
|
"button",
|
|
2186
2187
|
{
|
|
2187
2188
|
onClick: () => {
|
|
2188
|
-
n((
|
|
2189
|
+
n((m) => m + 1);
|
|
2189
2190
|
},
|
|
2190
|
-
className:
|
|
2191
|
+
className: N.button,
|
|
2191
2192
|
disabled: !!(e.quantity.restrictions && o >= e.quantity.restrictions.max || e.quantity.available && o >= e.quantity.available),
|
|
2192
2193
|
children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
|
|
2193
2194
|
}
|
|
2194
2195
|
)
|
|
2195
2196
|
] }),
|
|
2196
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2197
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2197
|
+
/* @__PURE__ */ t.jsxs("div", { className: N.meta, children: [
|
|
2198
|
+
/* @__PURE__ */ t.jsxs("div", { className: N.info, children: [
|
|
2198
2199
|
/* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
|
|
2199
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2200
|
+
/* @__PURE__ */ t.jsxs("div", { className: N.infoRight, children: [
|
|
2200
2201
|
/* @__PURE__ */ t.jsx(
|
|
2201
2202
|
b,
|
|
2202
2203
|
{
|
|
@@ -2206,44 +2207,44 @@ const Xa = (u) => {
|
|
|
2206
2207
|
height: 20
|
|
2207
2208
|
}
|
|
2208
2209
|
),
|
|
2209
|
-
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" :
|
|
2210
|
+
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : E(e.deliveryTime) })
|
|
2210
2211
|
] })
|
|
2211
2212
|
] }),
|
|
2212
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2213
|
+
/* @__PURE__ */ t.jsxs("div", { className: N.info, children: [
|
|
2213
2214
|
/* @__PURE__ */ t.jsx("span", { children: "Price" }),
|
|
2214
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2215
|
-
/* @__PURE__ */ t.jsxs("span", { className: F(
|
|
2215
|
+
/* @__PURE__ */ t.jsx("div", { className: N.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: N.price, children: [
|
|
2216
|
+
/* @__PURE__ */ t.jsxs("span", { className: F(N.newPrice, { [N.animate]: h }), children: [
|
|
2216
2217
|
"$ ",
|
|
2217
2218
|
(e.price.amount || 0) * o
|
|
2218
2219
|
] }),
|
|
2219
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2220
|
+
/* @__PURE__ */ t.jsxs("span", { className: N.oldPrice, children: [
|
|
2220
2221
|
"$ ",
|
|
2221
2222
|
(e.compareAtPrice.amount || 0) * o
|
|
2222
2223
|
] })
|
|
2223
|
-
] }) : /* @__PURE__ */ t.jsxs("span", { className: F(
|
|
2224
|
+
] }) : /* @__PURE__ */ t.jsxs("span", { className: F(N.newPrice, { [N.animate]: h }), children: [
|
|
2224
2225
|
"$ ",
|
|
2225
2226
|
(e.price.amount || 0) * o
|
|
2226
|
-
] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
2227
|
-
/* @__PURE__ */ t.jsxs("span", { className: F(
|
|
2227
|
+
] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: N.price, children: [
|
|
2228
|
+
/* @__PURE__ */ t.jsxs("span", { className: F(N.newPrice, { [N.animate]: h }), children: [
|
|
2228
2229
|
"$ ",
|
|
2229
2230
|
e.subscriptionSettings.price.amount || 0
|
|
2230
2231
|
] }),
|
|
2231
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2232
|
+
/* @__PURE__ */ t.jsxs("span", { className: N.oldPrice, children: [
|
|
2232
2233
|
"$ ",
|
|
2233
2234
|
e.subscriptionSettings.compareAtPrice.amount || 0
|
|
2234
2235
|
] })
|
|
2235
|
-
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: F(
|
|
2236
|
+
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: F(N.newPrice, { [N.animate]: h }), children: [
|
|
2236
2237
|
"$ ",
|
|
2237
2238
|
e.subscriptionSettings.price.amount || 0
|
|
2238
2239
|
] }) })
|
|
2239
2240
|
] })
|
|
2240
2241
|
] }),
|
|
2241
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2242
|
+
/* @__PURE__ */ t.jsxs("div", { className: N.buttons, children: [
|
|
2242
2243
|
/* @__PURE__ */ t.jsx(
|
|
2243
2244
|
it,
|
|
2244
2245
|
{
|
|
2245
2246
|
type: "Primary",
|
|
2246
|
-
onClick: () =>
|
|
2247
|
+
onClick: () => v(),
|
|
2247
2248
|
children: /* @__PURE__ */ t.jsx("span", { children: i === "ONE_TIME" ? "Buy Now" : "Subscribe Now" })
|
|
2248
2249
|
}
|
|
2249
2250
|
),
|
|
@@ -2251,13 +2252,13 @@ const Xa = (u) => {
|
|
|
2251
2252
|
it,
|
|
2252
2253
|
{
|
|
2253
2254
|
type: "Secondary",
|
|
2254
|
-
onClick: () =>
|
|
2255
|
+
onClick: () => A(),
|
|
2255
2256
|
children: "Add to Cart"
|
|
2256
2257
|
}
|
|
2257
2258
|
)
|
|
2258
2259
|
] })
|
|
2259
2260
|
] });
|
|
2260
|
-
}, ki = "
|
|
2261
|
+
}, ki = "_button_nq46k_1", $i = "_login_nq46k_14", wi = "_signUp_nq46k_18", Ni = "_buttons_nq46k_23", Ii = "_modal_nq46k_32", Ci = "_info_nq46k_60", Bi = "_top_nq46k_67", Si = "_title_nq46k_78", Pi = "_clear_nq46k_85", Ti = "_activeClear_nq46k_92", qi = "_count_nq46k_96", Ai = "_cart_nq46k_111", Oi = "_empty_nq46k_119", Di = "_product_nq46k_145", Ei = "_products_nq46k_154", Li = "_image_nq46k_162", Ri = "_productInfo_nq46k_168", Mi = "_content_nq46k_175", Hi = "_name_nq46k_181", zi = "_price_nq46k_187", Vi = "_productButtons_nq46k_193", Fi = "_productButton_nq46k_193", Ui = "_productCount_nq46k_213", Yi = "_bottom_nq46k_229", Gi = "_subtotal_nq46k_237", Wi = "_block_nq46k_245", Xi = "_shoppingCount_nq46k_252", Ji = "_total_nq46k_272", Qi = "_link_nq46k_278", Ki = "_userInfo_nq46k_285", S = {
|
|
2261
2262
|
button: ki,
|
|
2262
2263
|
login: $i,
|
|
2263
2264
|
signUp: wi,
|
|
@@ -2268,9 +2269,9 @@ const Xa = (u) => {
|
|
|
2268
2269
|
title: Si,
|
|
2269
2270
|
clear: Pi,
|
|
2270
2271
|
activeClear: Ti,
|
|
2271
|
-
count:
|
|
2272
|
-
cart:
|
|
2273
|
-
empty:
|
|
2272
|
+
count: qi,
|
|
2273
|
+
cart: Ai,
|
|
2274
|
+
empty: Oi,
|
|
2274
2275
|
product: Di,
|
|
2275
2276
|
products: Ei,
|
|
2276
2277
|
image: Li,
|
|
@@ -2288,7 +2289,7 @@ const Xa = (u) => {
|
|
|
2288
2289
|
total: Ji,
|
|
2289
2290
|
link: Qi,
|
|
2290
2291
|
userInfo: Ki
|
|
2291
|
-
}, Zi = "
|
|
2292
|
+
}, Zi = "_button_85085_1", ta = "_primary_85085_20", ea = "_primaryHovered_85085_30", sa = "_secondary_85085_34", na = "_secondaryHovered_85085_44", ia = "_tertiary_85085_48", aa = "_tertiaryHovered_85085_58", oa = "_content_85085_62", et = {
|
|
2292
2293
|
button: Zi,
|
|
2293
2294
|
primary: ta,
|
|
2294
2295
|
primaryHovered: ea,
|
|
@@ -2384,7 +2385,7 @@ const Ja = (u) => {
|
|
|
2384
2385
|
s(l);
|
|
2385
2386
|
}
|
|
2386
2387
|
const c = JSON.parse(localStorage.getItem("token") || "{}");
|
|
2387
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2388
|
+
return /* @__PURE__ */ t.jsxs("div", { className: S.buttons, children: [
|
|
2388
2389
|
a && /* @__PURE__ */ t.jsx(da, {}),
|
|
2389
2390
|
!c.data && /* @__PURE__ */ t.jsx(
|
|
2390
2391
|
jt,
|
|
@@ -2411,41 +2412,41 @@ const Ja = (u) => {
|
|
|
2411
2412
|
c.data && /* @__PURE__ */ t.jsx(_a, { token: c.data })
|
|
2412
2413
|
] });
|
|
2413
2414
|
}, da = () => {
|
|
2414
|
-
const [u, a] =
|
|
2415
|
-
function l(
|
|
2415
|
+
const [u, a] = g.useState(!1), [e, s] = g.useState([]), { cart: i, getProducts: c } = Nt();
|
|
2416
|
+
function l(_) {
|
|
2416
2417
|
for (let d = 0; d < i.parts.length; d++)
|
|
2417
|
-
for (let
|
|
2418
|
-
if (i.parts[d].productVariantId ===
|
|
2418
|
+
for (let P = 0; P < _.variants.length; P++)
|
|
2419
|
+
if (i.parts[d].productVariantId === _.variants[d].id)
|
|
2419
2420
|
return i.parts[d].productVariantId;
|
|
2420
2421
|
}
|
|
2421
|
-
function o(
|
|
2422
|
+
function o(_) {
|
|
2422
2423
|
for (let d = 0; d < i.parts.length; d++)
|
|
2423
|
-
for (let
|
|
2424
|
-
if (i.parts[d].productVariantId ===
|
|
2424
|
+
for (let P = 0; P < _.variants.length; P++)
|
|
2425
|
+
if (i.parts[d].productVariantId === _.variants[d].id)
|
|
2425
2426
|
return i.parts[d].quantity;
|
|
2426
2427
|
}
|
|
2427
|
-
|
|
2428
|
+
g.useEffect(() => {
|
|
2428
2429
|
(async () => {
|
|
2429
|
-
const d = i.parts.map((
|
|
2430
|
-
...
|
|
2431
|
-
activeVariantId: l(
|
|
2432
|
-
quantity: o(
|
|
2430
|
+
const d = i.parts.map((f) => String(f.productId)), x = (await c([...d])).map((f) => ({
|
|
2431
|
+
...f,
|
|
2432
|
+
activeVariantId: l(f),
|
|
2433
|
+
quantity: o(f)
|
|
2433
2434
|
}));
|
|
2434
2435
|
s(x);
|
|
2435
2436
|
})();
|
|
2436
|
-
}, [i]);
|
|
2437
|
-
function n(
|
|
2437
|
+
}, [i.parts.length]);
|
|
2438
|
+
function n(_) {
|
|
2438
2439
|
var d;
|
|
2439
|
-
return !
|
|
2440
|
+
return !_ || !(_ != null && _.variants) ? !1 : (d = _.variants.find((P) => P.id === _.activeVariantId)) == null ? void 0 : d.subscriptionSettings;
|
|
2440
2441
|
}
|
|
2441
2442
|
const r = i.parts.length > 0 && e.length > 0 && !n(e[0]);
|
|
2442
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2443
|
+
return console.log(i.parts.length > 0, e.length > 0, !n(e[0])), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2443
2444
|
/* @__PURE__ */ t.jsxs(
|
|
2444
2445
|
"div",
|
|
2445
2446
|
{
|
|
2446
|
-
className:
|
|
2447
|
-
onClick: (
|
|
2448
|
-
|
|
2447
|
+
className: S.button,
|
|
2448
|
+
onClick: (_) => {
|
|
2449
|
+
_.stopPropagation(), a(!0);
|
|
2449
2450
|
},
|
|
2450
2451
|
children: [
|
|
2451
2452
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2455,7 +2456,7 @@ const Ja = (u) => {
|
|
|
2455
2456
|
fill: "var(--icon-primary)"
|
|
2456
2457
|
}
|
|
2457
2458
|
),
|
|
2458
|
-
r && /* @__PURE__ */ t.jsx("div", { className:
|
|
2459
|
+
r && /* @__PURE__ */ t.jsx("div", { className: S.shoppingCount, children: i.parts.length })
|
|
2459
2460
|
]
|
|
2460
2461
|
}
|
|
2461
2462
|
),
|
|
@@ -2479,7 +2480,7 @@ const Ja = (u) => {
|
|
|
2479
2480
|
quantity: d.quantity + 1
|
|
2480
2481
|
});
|
|
2481
2482
|
}
|
|
2482
|
-
function
|
|
2483
|
+
function _(d) {
|
|
2483
2484
|
l({
|
|
2484
2485
|
productId: d.id,
|
|
2485
2486
|
productVariantId: d.activeVariantId,
|
|
@@ -2489,19 +2490,19 @@ const Ja = (u) => {
|
|
|
2489
2490
|
return /* @__PURE__ */ t.jsxs(
|
|
2490
2491
|
"div",
|
|
2491
2492
|
{
|
|
2492
|
-
className:
|
|
2493
|
+
className: S.modal,
|
|
2493
2494
|
onClick: (d) => d.stopPropagation(),
|
|
2494
2495
|
children: [
|
|
2495
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2496
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2497
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2498
|
-
e && /* @__PURE__ */ t.jsx("div", { className:
|
|
2496
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.top, children: [
|
|
2497
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.info, children: [
|
|
2498
|
+
/* @__PURE__ */ t.jsx("span", { className: S.title, children: "Cart" }),
|
|
2499
|
+
e && /* @__PURE__ */ t.jsx("div", { className: S.count, children: s.parts.length })
|
|
2499
2500
|
] }),
|
|
2500
2501
|
/* @__PURE__ */ t.jsx(
|
|
2501
2502
|
"button",
|
|
2502
2503
|
{
|
|
2503
|
-
className: F(
|
|
2504
|
-
[
|
|
2504
|
+
className: F(S.clear, {
|
|
2505
|
+
[S.activeClear]: e
|
|
2505
2506
|
}),
|
|
2506
2507
|
disabled: !e,
|
|
2507
2508
|
onClick: () => i(),
|
|
@@ -2509,13 +2510,13 @@ const Ja = (u) => {
|
|
|
2509
2510
|
}
|
|
2510
2511
|
)
|
|
2511
2512
|
] }),
|
|
2512
|
-
e ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
2513
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2513
|
+
e ? /* @__PURE__ */ t.jsxs("div", { className: S.cart, children: [
|
|
2514
|
+
/* @__PURE__ */ t.jsx("div", { className: S.products, children: a.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2514
2515
|
"div",
|
|
2515
2516
|
{
|
|
2516
|
-
className:
|
|
2517
|
+
className: S.product,
|
|
2517
2518
|
children: [
|
|
2518
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2519
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.productInfo, children: [
|
|
2519
2520
|
/* @__PURE__ */ t.jsx(
|
|
2520
2521
|
"img",
|
|
2521
2522
|
{
|
|
@@ -2523,25 +2524,25 @@ const Ja = (u) => {
|
|
|
2523
2524
|
alt: "image",
|
|
2524
2525
|
width: "100%",
|
|
2525
2526
|
height: "100%",
|
|
2526
|
-
className:
|
|
2527
|
+
className: S.image
|
|
2527
2528
|
}
|
|
2528
2529
|
),
|
|
2529
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2530
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2531
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2530
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.content, children: [
|
|
2531
|
+
/* @__PURE__ */ t.jsx("div", { className: S.name, children: d.name }),
|
|
2532
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.price, children: [
|
|
2532
2533
|
"$",
|
|
2533
|
-
d.variants.find((
|
|
2534
|
+
d.variants.find((P) => P.id === d.activeVariantId).price.amount * ((d == null ? void 0 : d.quantity) || 1)
|
|
2534
2535
|
] })
|
|
2535
2536
|
] })
|
|
2536
2537
|
] }),
|
|
2537
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2538
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.productButtons, children: [
|
|
2538
2539
|
/* @__PURE__ */ t.jsx(
|
|
2539
2540
|
"div",
|
|
2540
2541
|
{
|
|
2541
2542
|
onClick: () => {
|
|
2542
|
-
d.quantity !== 1 &&
|
|
2543
|
+
d.quantity !== 1 && _(d);
|
|
2543
2544
|
},
|
|
2544
|
-
className:
|
|
2545
|
+
className: S.productButton,
|
|
2545
2546
|
children: /* @__PURE__ */ t.jsx(
|
|
2546
2547
|
b,
|
|
2547
2548
|
{
|
|
@@ -2553,12 +2554,12 @@ const Ja = (u) => {
|
|
|
2553
2554
|
)
|
|
2554
2555
|
}
|
|
2555
2556
|
),
|
|
2556
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2557
|
+
/* @__PURE__ */ t.jsx("div", { className: S.productCount, children: d.quantity }),
|
|
2557
2558
|
/* @__PURE__ */ t.jsx(
|
|
2558
2559
|
"div",
|
|
2559
2560
|
{
|
|
2560
2561
|
onClick: () => r(d),
|
|
2561
|
-
className:
|
|
2562
|
+
className: S.productButton,
|
|
2562
2563
|
children: /* @__PURE__ */ t.jsx(
|
|
2563
2564
|
b,
|
|
2564
2565
|
{
|
|
@@ -2575,9 +2576,9 @@ const Ja = (u) => {
|
|
|
2575
2576
|
},
|
|
2576
2577
|
d.id
|
|
2577
2578
|
)) }),
|
|
2578
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2579
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2580
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2579
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.bottom, children: [
|
|
2580
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.subtotal, children: [
|
|
2581
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.block, children: [
|
|
2581
2582
|
/* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
|
|
2582
2583
|
/* @__PURE__ */ t.jsx(
|
|
2583
2584
|
b,
|
|
@@ -2589,7 +2590,7 @@ const Ja = (u) => {
|
|
|
2589
2590
|
}
|
|
2590
2591
|
)
|
|
2591
2592
|
] }),
|
|
2592
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2593
|
+
/* @__PURE__ */ t.jsxs("div", { className: S.total, children: [
|
|
2593
2594
|
"$",
|
|
2594
2595
|
c().total
|
|
2595
2596
|
] })
|
|
@@ -2600,7 +2601,7 @@ const Ja = (u) => {
|
|
|
2600
2601
|
]
|
|
2601
2602
|
}
|
|
2602
2603
|
);
|
|
2603
|
-
}, ma = () => /* @__PURE__ */ t.jsxs("div", { className:
|
|
2604
|
+
}, ma = () => /* @__PURE__ */ t.jsxs("div", { className: S.empty, children: [
|
|
2604
2605
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(b, { name: "Handbag" }) }),
|
|
2605
2606
|
/* @__PURE__ */ t.jsx("span", { children: "Your cart is empty" }),
|
|
2606
2607
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
@@ -2610,14 +2611,14 @@ const Ja = (u) => {
|
|
|
2610
2611
|
"a",
|
|
2611
2612
|
{
|
|
2612
2613
|
href: "/products",
|
|
2613
|
-
className:
|
|
2614
|
+
className: S.link,
|
|
2614
2615
|
children: "here"
|
|
2615
2616
|
}
|
|
2616
2617
|
)
|
|
2617
2618
|
] })
|
|
2618
2619
|
] }), _a = ({ token: u }) => {
|
|
2619
|
-
const [a, e] =
|
|
2620
|
-
|
|
2620
|
+
const [a, e] = g.useState("test-email@gmail.com"), s = ft();
|
|
2621
|
+
g.useEffect(() => {
|
|
2621
2622
|
(async () => {
|
|
2622
2623
|
const l = ra(u);
|
|
2623
2624
|
e(l.email);
|
|
@@ -2629,7 +2630,7 @@ const Ja = (u) => {
|
|
|
2629
2630
|
return /* @__PURE__ */ t.jsx(
|
|
2630
2631
|
"div",
|
|
2631
2632
|
{
|
|
2632
|
-
className:
|
|
2633
|
+
className: S.userInfo,
|
|
2633
2634
|
onClick: () => i("/customer-dash"),
|
|
2634
2635
|
children: /* @__PURE__ */ t.jsx("div", { children: a || "test-email@gmail.com" })
|
|
2635
2636
|
}
|
|
@@ -2724,10 +2725,10 @@ const Ja = (u) => {
|
|
|
2724
2725
|
open: Ia,
|
|
2725
2726
|
content: Ca
|
|
2726
2727
|
}, Ka = ({ title: u, content: a }) => {
|
|
2727
|
-
const [e, s] =
|
|
2728
|
+
const [e, s] = g.useState(!1), [i, c] = g.useState(0), l = g.useRef(null), o = () => {
|
|
2728
2729
|
s(!e);
|
|
2729
2730
|
};
|
|
2730
|
-
return
|
|
2731
|
+
return g.useEffect(() => {
|
|
2731
2732
|
l.current && c(e ? l.current.scrollHeight : 0);
|
|
2732
2733
|
}, [e]), /* @__PURE__ */ t.jsxs("div", { className: mt.accordion, children: [
|
|
2733
2734
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2751,14 +2752,14 @@ const Ja = (u) => {
|
|
|
2751
2752
|
}
|
|
2752
2753
|
)
|
|
2753
2754
|
] });
|
|
2754
|
-
}, Ba = "_wrapper_1r14x_1", Sa = "_label_1r14x_9", Pa = "_input_1r14x_18", Ta = "_required_1r14x_35",
|
|
2755
|
+
}, Ba = "_wrapper_1r14x_1", Sa = "_label_1r14x_9", Pa = "_input_1r14x_18", Ta = "_required_1r14x_35", qa = "_paddingless_1r14x_39", Aa = "_content_1r14x_43", Oa = "_borderless_1r14x_58", Da = "_rightIcon_1r14x_63", st = {
|
|
2755
2756
|
wrapper: Ba,
|
|
2756
2757
|
label: Sa,
|
|
2757
2758
|
input: Pa,
|
|
2758
2759
|
required: Ta,
|
|
2759
|
-
paddingless:
|
|
2760
|
-
content:
|
|
2761
|
-
borderless:
|
|
2760
|
+
paddingless: qa,
|
|
2761
|
+
content: Aa,
|
|
2762
|
+
borderless: Oa,
|
|
2762
2763
|
rightIcon: Da
|
|
2763
2764
|
}, Za = (u) => {
|
|
2764
2765
|
const {
|
|
@@ -2771,33 +2772,33 @@ const Ja = (u) => {
|
|
|
2771
2772
|
max: o,
|
|
2772
2773
|
placeholder: n,
|
|
2773
2774
|
disabled: r = !1,
|
|
2774
|
-
required:
|
|
2775
|
+
required: _ = !1,
|
|
2775
2776
|
regex: d,
|
|
2776
|
-
paddingless:
|
|
2777
|
+
paddingless: P = !1,
|
|
2777
2778
|
borderless: x = !1,
|
|
2778
|
-
editable:
|
|
2779
|
+
editable: f = !1,
|
|
2779
2780
|
isSearch: h = !1
|
|
2780
|
-
} = u, { themeSettings:
|
|
2781
|
-
function
|
|
2782
|
-
if (
|
|
2783
|
-
let
|
|
2784
|
-
return
|
|
2781
|
+
} = u, { themeSettings: q } = Bt(), { inputs: A } = q, [v, E] = g.useState(!1);
|
|
2782
|
+
function I(m, O) {
|
|
2783
|
+
if (m.startsWith("#")) {
|
|
2784
|
+
let L, w, R;
|
|
2785
|
+
return m.length === 7 ? (L = parseInt(m.slice(1, 3), 16), w = parseInt(m.slice(3, 5), 16), R = parseInt(m.slice(5, 7), 16)) : m.length === 4 && (L = parseInt(m[1] + m[1], 16), w = parseInt(m[2] + m[2], 16), R = parseInt(m[3] + m[3], 16)), `rgba(${L}, ${w}, ${R}, ${O})`;
|
|
2785
2786
|
}
|
|
2786
|
-
const
|
|
2787
|
+
const y = {
|
|
2787
2788
|
black: "#000000",
|
|
2788
2789
|
white: "#ffffff",
|
|
2789
2790
|
red: "#ff0000",
|
|
2790
2791
|
green: "#00ff00",
|
|
2791
2792
|
blue: "#0000ff"
|
|
2792
2793
|
// Можно добавить больше цветов
|
|
2793
|
-
}[
|
|
2794
|
-
return
|
|
2794
|
+
}[m.toLowerCase()];
|
|
2795
|
+
return y ? I(y, O) : m;
|
|
2795
2796
|
}
|
|
2796
|
-
function
|
|
2797
|
-
return Number(
|
|
2797
|
+
function C(m) {
|
|
2798
|
+
return Number(m) < 0 ? String(l) : m;
|
|
2798
2799
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return !
|
|
2800
|
+
function M(m) {
|
|
2801
|
+
return !_ || !d ? !0 : new RegExp(d).test(m);
|
|
2801
2802
|
}
|
|
2802
2803
|
return /* @__PURE__ */ t.jsxs("div", { className: st.wrapper, children: [
|
|
2803
2804
|
s && /* @__PURE__ */ t.jsx(
|
|
@@ -2813,9 +2814,9 @@ const Ja = (u) => {
|
|
|
2813
2814
|
{
|
|
2814
2815
|
className: st.content,
|
|
2815
2816
|
style: {
|
|
2816
|
-
paddingRight:
|
|
2817
|
+
paddingRight: A.general.height + 15,
|
|
2817
2818
|
...e,
|
|
2818
|
-
backgroundColor:
|
|
2819
|
+
backgroundColor: I(A.field.color, A.field.opacity / 100)
|
|
2819
2820
|
},
|
|
2820
2821
|
children: [
|
|
2821
2822
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2823,19 +2824,19 @@ const Ja = (u) => {
|
|
|
2823
2824
|
{
|
|
2824
2825
|
id: s,
|
|
2825
2826
|
type: c || "text",
|
|
2826
|
-
onChange: (
|
|
2827
|
-
if (c === "text") a(
|
|
2827
|
+
onChange: (m) => {
|
|
2828
|
+
if (c === "text") a(m.target.value);
|
|
2828
2829
|
else {
|
|
2829
|
-
const
|
|
2830
|
-
a(
|
|
2830
|
+
const O = C(m.target.value);
|
|
2831
|
+
a(O);
|
|
2831
2832
|
}
|
|
2832
2833
|
},
|
|
2833
2834
|
value: i,
|
|
2834
2835
|
autoComplete: "off",
|
|
2835
2836
|
placeholder: n || "Type something...",
|
|
2836
2837
|
className: F(st.input, {
|
|
2837
|
-
[st.required]: v &&
|
|
2838
|
-
[st.paddingless]:
|
|
2838
|
+
[st.required]: v && _ && !M(i),
|
|
2839
|
+
[st.paddingless]: P,
|
|
2839
2840
|
[st.borderless]: x
|
|
2840
2841
|
}),
|
|
2841
2842
|
min: c === "number" ? l : void 0,
|
|
@@ -2849,11 +2850,11 @@ const Ja = (u) => {
|
|
|
2849
2850
|
{
|
|
2850
2851
|
name: "MagnifyingGlass",
|
|
2851
2852
|
fill: "var(--icon-secondary)",
|
|
2852
|
-
width:
|
|
2853
|
-
height:
|
|
2853
|
+
width: A.general.height,
|
|
2854
|
+
height: A.general.height
|
|
2854
2855
|
}
|
|
2855
2856
|
) }),
|
|
2856
|
-
|
|
2857
|
+
f && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
2857
2858
|
b,
|
|
2858
2859
|
{
|
|
2859
2860
|
name: "Sliders",
|
|
@@ -2872,7 +2873,7 @@ const Ja = (u) => {
|
|
|
2872
2873
|
textarea: Ra,
|
|
2873
2874
|
length: Ma
|
|
2874
2875
|
}, to = (u) => {
|
|
2875
|
-
const { onChange: a, label: e, value: s, maxLength: i, placeholder: c = "Type something..." } = u, [l, o] =
|
|
2876
|
+
const { onChange: a, label: e, value: s, maxLength: i, placeholder: c = "Type something..." } = u, [l, o] = g.useState(s.length);
|
|
2876
2877
|
return /* @__PURE__ */ t.jsxs("div", { className: gt.wrapper, children: [
|
|
2877
2878
|
e && /* @__PURE__ */ t.jsx(
|
|
2878
2879
|
"label",
|
|
@@ -2916,7 +2917,7 @@ export {
|
|
|
2916
2917
|
b as Icon,
|
|
2917
2918
|
W as InputSettings,
|
|
2918
2919
|
Za as InputUI,
|
|
2919
|
-
|
|
2920
|
+
qe as ItemsSettings,
|
|
2920
2921
|
Fa as LayoutSettings,
|
|
2921
2922
|
Wa as ListingSelector,
|
|
2922
2923
|
io as Loader,
|
|
@@ -2928,7 +2929,7 @@ export {
|
|
|
2928
2929
|
da as ShoppingButton,
|
|
2929
2930
|
ua as ShoppingModalCart,
|
|
2930
2931
|
K as Switch,
|
|
2931
|
-
|
|
2932
|
+
qt as TextSettings,
|
|
2932
2933
|
Ct as TextareaSettings,
|
|
2933
2934
|
to as TextareaUI,
|
|
2934
2935
|
Tt as TypesText,
|