@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/builder/constants/pages.d.ts +4 -3
- package/dist/builder/store/useChooseImageStore.d.ts +2 -0
- package/dist/builder/ui/ChooseImage/index.d.ts +1 -0
- package/dist/builder/ui/Tip/index.d.ts +1 -0
- package/dist/builder.cjs.js +5 -5
- package/dist/builder.es.js +1630 -1704
- package/dist/{index-Bh-lH7YV.js → index-B285osIN.js} +9671 -9610
- package/dist/index-B9WpqNBa.cjs +178 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui/HeaderButtons/index.d.ts +1 -0
- package/dist/ui/Input/index.d.ts +1 -0
- package/dist/ui/ItemsSettings/index.d.ts +1 -0
- package/dist/ui/TypesText/index.d.ts +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +306 -294
- package/package.json +1 -1
- package/dist/index-DH78zcgN.cjs +0 -178
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-
|
|
2
|
-
import { J as hi, F as pi, H as _i, E as gi, T as xi, G as fi } from "./index-
|
|
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:
|
|
30
|
-
function
|
|
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
|
|
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), [
|
|
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
|
-
|
|
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 !==
|
|
81
|
-
l !==
|
|
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:
|
|
84
|
+
name: m(o),
|
|
85
85
|
fill: "#c2c2c2",
|
|
86
86
|
width: 22,
|
|
87
87
|
height: 22
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
l ===
|
|
90
|
+
l === n && /* @__PURE__ */ t.jsx(
|
|
91
91
|
g,
|
|
92
92
|
{
|
|
93
|
-
name:
|
|
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]:
|
|
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:
|
|
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:
|
|
171
|
+
isActiveItems: n,
|
|
172
172
|
setIsActiveItems: e,
|
|
173
173
|
items: s,
|
|
174
|
-
setItems:
|
|
175
|
-
other:
|
|
176
|
-
title:
|
|
174
|
+
setItems: i,
|
|
175
|
+
other: m,
|
|
176
|
+
title: h,
|
|
177
177
|
subtitle: o,
|
|
178
178
|
draggable: u = !1,
|
|
179
|
-
withImage:
|
|
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:
|
|
186
|
+
deletable: f
|
|
187
187
|
} = d;
|
|
188
188
|
function B(b) {
|
|
189
|
-
if (
|
|
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
|
-
|
|
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: () =>
|
|
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
|
-
(
|
|
258
|
-
|
|
259
|
-
|
|
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:
|
|
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,
|
|
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),
|
|
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
|
-
|
|
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:
|
|
363
|
+
function He({ product: d, children: n }) {
|
|
364
364
|
const {
|
|
365
365
|
attributes: e,
|
|
366
366
|
listeners: s,
|
|
367
|
-
setNodeRef:
|
|
368
|
-
transform:
|
|
369
|
-
transition:
|
|
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(
|
|
375
|
-
transition:
|
|
374
|
+
transform: bt.Transform.toString(m),
|
|
375
|
+
transition: h
|
|
376
376
|
};
|
|
377
377
|
return /* @__PURE__ */ t.jsx(
|
|
378
378
|
"div",
|
|
379
379
|
{
|
|
380
|
-
ref:
|
|
380
|
+
ref: i,
|
|
381
381
|
style: u,
|
|
382
382
|
className: `${U.product} ${o ? U.dragging : ""}`,
|
|
383
383
|
...e,
|
|
384
384
|
...s,
|
|
385
|
-
children:
|
|
385
|
+
children: n
|
|
386
386
|
}
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
const Zn = (d) => {
|
|
390
390
|
const {
|
|
391
|
-
isActiveItems:
|
|
391
|
+
isActiveItems: n,
|
|
392
392
|
setIsActiveItems: e,
|
|
393
393
|
items: s,
|
|
394
|
-
setItems:
|
|
395
|
-
title:
|
|
396
|
-
subtitle:
|
|
394
|
+
setItems: i,
|
|
395
|
+
title: m,
|
|
396
|
+
subtitle: h,
|
|
397
397
|
editable: o = !0,
|
|
398
398
|
draggable: u = !1,
|
|
399
|
-
deletable:
|
|
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,
|
|
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
|
-
|
|
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
|
-
}),
|
|
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),
|
|
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
|
-
|
|
459
|
+
f({
|
|
460
460
|
...j,
|
|
461
461
|
name: {
|
|
462
462
|
"en-US": c
|
|
463
463
|
}
|
|
464
|
-
}),
|
|
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
|
-
|
|
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: () =>
|
|
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
|
-
(
|
|
513
|
-
|
|
514
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
}),
|
|
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:
|
|
595
|
-
id:
|
|
596
|
-
}),
|
|
597
|
-
transform: bt.Transform.toString(
|
|
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:
|
|
604
|
-
style:
|
|
603
|
+
ref: m,
|
|
604
|
+
style: x,
|
|
605
605
|
className: `${H.product} ${u ? H.dragging : ""}`,
|
|
606
606
|
...s,
|
|
607
|
-
...
|
|
607
|
+
...i,
|
|
608
608
|
children: e
|
|
609
609
|
}
|
|
610
610
|
);
|
|
611
611
|
}
|
|
612
612
|
const ti = (d) => {
|
|
613
613
|
const {
|
|
614
|
-
isActiveItems:
|
|
614
|
+
isActiveItems: n,
|
|
615
615
|
setIsActiveItems: e,
|
|
616
616
|
items: s,
|
|
617
|
-
setItems:
|
|
618
|
-
other:
|
|
619
|
-
title:
|
|
617
|
+
setItems: i,
|
|
618
|
+
other: m,
|
|
619
|
+
title: h,
|
|
620
620
|
subtitle: o,
|
|
621
621
|
editable: u = !0,
|
|
622
|
-
draggable:
|
|
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:
|
|
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
|
|
645
|
+
const p = () => {
|
|
646
646
|
L(null), I(!1);
|
|
647
647
|
};
|
|
648
|
-
return document.body.addEventListener("click",
|
|
649
|
-
L(null), I(!1), document.body.removeEventListener("click",
|
|
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
|
|
654
|
-
|
|
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
|
|
658
|
+
const p = c.current.getBoundingClientRect().height, A = window.innerHeight;
|
|
659
659
|
let E = N.top;
|
|
660
|
-
E +
|
|
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 = (
|
|
667
|
-
|
|
668
|
-
const E =
|
|
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(
|
|
674
|
+
function R(p) {
|
|
675
675
|
if ($)
|
|
676
|
-
return
|
|
676
|
+
return p ? /* @__PURE__ */ t.jsx(
|
|
677
677
|
"img",
|
|
678
678
|
{
|
|
679
|
-
src: `https://imagedelivery.net/${
|
|
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 = (
|
|
695
|
-
const { active: A, over: E } =
|
|
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),
|
|
700
|
+
F.splice(et, 0, X), i(F);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
}, st = (
|
|
703
|
+
}, st = (p) => {
|
|
704
704
|
var E;
|
|
705
705
|
const A = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
706
|
-
|
|
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 ===
|
|
720
|
-
...
|
|
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
|
-
...
|
|
726
|
+
...p,
|
|
727
727
|
name: {
|
|
728
728
|
"en-US": z
|
|
729
729
|
}
|
|
730
|
-
}),
|
|
730
|
+
}), i([...F]);
|
|
731
731
|
},
|
|
732
|
-
value:
|
|
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(
|
|
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 ===
|
|
744
|
-
...
|
|
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
|
-
|
|
749
|
+
i([...F]);
|
|
750
750
|
},
|
|
751
|
-
value:
|
|
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 ===
|
|
760
|
-
...
|
|
759
|
+
const F = [...s].map((X) => X.id === p.id ? {
|
|
760
|
+
...p,
|
|
761
761
|
images: z
|
|
762
762
|
} : X);
|
|
763
|
-
|
|
763
|
+
i([...F]);
|
|
764
764
|
},
|
|
765
|
-
activeImage: (E = s.find((z) => z.id ===
|
|
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,
|
|
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: () =>
|
|
787
|
+
onClick: () => i(s.filter((z) => z.id !== p.id))
|
|
788
788
|
}
|
|
789
789
|
) })
|
|
790
790
|
] })
|
|
791
791
|
] });
|
|
792
|
-
return
|
|
792
|
+
return x ? /* @__PURE__ */ t.jsx(
|
|
793
793
|
Ue,
|
|
794
794
|
{
|
|
795
|
-
product:
|
|
795
|
+
product: p,
|
|
796
796
|
children: A
|
|
797
797
|
},
|
|
798
|
-
|
|
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
|
-
|
|
805
|
+
p.id
|
|
806
806
|
);
|
|
807
807
|
};
|
|
808
808
|
return /* @__PURE__ */ t.jsxs("div", { className: H.productsBlock, children: [
|
|
809
|
-
(
|
|
810
|
-
|
|
811
|
-
|
|
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:
|
|
815
|
-
onChange: (
|
|
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
|
-
|
|
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
|
-
|
|
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((
|
|
841
|
+
items: s.map((p) => p.id),
|
|
842
842
|
strategy: xt,
|
|
843
|
-
children: s.map((
|
|
843
|
+
children: s.map((p) => st(p))
|
|
844
844
|
}
|
|
845
845
|
)
|
|
846
846
|
}
|
|
847
|
-
) : s.map((
|
|
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
|
|
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 ?
|
|
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" ?
|
|
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
|
-
}) :
|
|
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
|
-
}),
|
|
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
|
-
|
|
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:
|
|
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
|
|
951
|
-
e(
|
|
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
|
|
955
|
+
const f = T.current.getBoundingClientRect().height, B = window.innerHeight;
|
|
956
956
|
let a = l.top;
|
|
957
|
-
a +
|
|
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 = (
|
|
964
|
-
|
|
965
|
-
const a =
|
|
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 - (
|
|
968
|
+
left: a.left - (i ? 30 : 65)
|
|
969
969
|
}), u(B);
|
|
970
|
-
}, C = (
|
|
971
|
-
const a = [...
|
|
972
|
-
...
|
|
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
|
-
|
|
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 = [...
|
|
990
|
-
...
|
|
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:
|
|
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(
|
|
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,
|
|
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 =
|
|
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
|
-
|
|
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:
|
|
1050
|
-
editableLink:
|
|
1049
|
+
popupPosition: x,
|
|
1050
|
+
editableLink: m
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
|
-
|
|
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
|
|
1069
|
-
|
|
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:
|
|
1077
|
+
page: h ? Object.values(h)[0].name : "Home",
|
|
1078
1078
|
openInNewTab: !1
|
|
1079
|
-
}) :
|
|
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:
|
|
1087
|
+
page: h ? Object.values(h)[0].name : "Home",
|
|
1088
1088
|
openInNewTab: !1
|
|
1089
|
-
}), e(
|
|
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:
|
|
1112
|
+
isActiveButtons: n,
|
|
1113
1113
|
setIsActiveButtons: e,
|
|
1114
1114
|
buttons: s,
|
|
1115
|
-
setButtons:
|
|
1116
|
-
editableLink:
|
|
1117
|
-
addable:
|
|
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:
|
|
1126
|
+
current: n,
|
|
1127
1127
|
onChange: (u) => e(u)
|
|
1128
1128
|
}
|
|
1129
1129
|
)
|
|
1130
1130
|
] }),
|
|
1131
|
-
|
|
1131
|
+
n && /* @__PURE__ */ t.jsx(
|
|
1132
1132
|
ms,
|
|
1133
1133
|
{
|
|
1134
1134
|
buttons: s,
|
|
1135
|
-
setButtons:
|
|
1136
|
-
editableLink:
|
|
1137
|
-
addable:
|
|
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:
|
|
1145
|
-
id: String(
|
|
1146
|
-
}),
|
|
1147
|
-
transform: bt.Transform.toString(
|
|
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:
|
|
1154
|
-
style:
|
|
1153
|
+
ref: m,
|
|
1154
|
+
style: x,
|
|
1155
1155
|
className: `${V.product} ${u ? V.dragging : ""}`,
|
|
1156
1156
|
...s,
|
|
1157
|
-
...
|
|
1157
|
+
...i,
|
|
1158
1158
|
children: e
|
|
1159
1159
|
}
|
|
1160
1160
|
);
|
|
1161
1161
|
}
|
|
1162
1162
|
const si = (d) => {
|
|
1163
1163
|
const {
|
|
1164
|
-
isActiveItems:
|
|
1164
|
+
isActiveItems: n,
|
|
1165
1165
|
setIsActiveItems: e,
|
|
1166
1166
|
items: s,
|
|
1167
|
-
setItems:
|
|
1168
|
-
other:
|
|
1169
|
-
title:
|
|
1167
|
+
setItems: i,
|
|
1168
|
+
other: m,
|
|
1169
|
+
title: h,
|
|
1170
1170
|
subtitle: o,
|
|
1171
1171
|
editable: u = !0,
|
|
1172
|
-
draggable:
|
|
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,
|
|
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
|
-
|
|
1192
|
+
f(null), q(!1);
|
|
1193
1193
|
};
|
|
1194
|
-
return document.body.addEventListener("click", c),
|
|
1195
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
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),
|
|
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
|
-
|
|
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
|
-
},
|
|
1264
|
-
|
|
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: () =>
|
|
1295
|
+
onClick: () => i(s.filter((P) => P !== c))
|
|
1296
1296
|
}
|
|
1297
1297
|
) })
|
|
1298
1298
|
] })
|
|
1299
1299
|
] });
|
|
1300
|
-
return
|
|
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
|
-
(
|
|
1318
|
-
|
|
1319
|
-
|
|
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:
|
|
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:
|
|
1332
|
+
setActiveItem: f,
|
|
1333
1333
|
setIsOpenModal: q,
|
|
1334
1334
|
popupPosition: B,
|
|
1335
1335
|
itemsOptions: w
|
|
1336
1336
|
}
|
|
1337
1337
|
),
|
|
1338
|
-
|
|
1338
|
+
n && /* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
|
|
1339
1339
|
o && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: o }),
|
|
1340
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1431
|
-
const { variants:
|
|
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
|
-
|
|
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]:
|
|
1469
|
+
[k.chargeActive]: i === a
|
|
1470
1470
|
}),
|
|
1471
|
-
onClick: () =>
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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: ((
|
|
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:
|
|
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:
|
|
1592
|
+
children: i === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
|
|
1593
1593
|
}
|
|
1594
1594
|
),
|
|
1595
|
-
|
|
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:
|
|
1647
|
+
const { shopping: n, signUp: e, isShowUserInfo: s = !0 } = d;
|
|
1648
1648
|
return /* @__PURE__ */ t.jsxs("div", { className: y.buttons, children: [
|
|
1649
|
-
|
|
1649
|
+
n && /* @__PURE__ */ t.jsx(bn, {}),
|
|
1650
1650
|
s && /* @__PURE__ */ t.jsx(Ct, { signUp: e })
|
|
1651
1651
|
] });
|
|
1652
1652
|
}, bn = () => {
|
|
1653
|
-
const [d,
|
|
1654
|
-
function
|
|
1653
|
+
const [d, n] = _.useState(!1), [e, s] = _.useState([]), { cart: i } = jt();
|
|
1654
|
+
function m(x) {
|
|
1655
1655
|
var $;
|
|
1656
|
-
return !
|
|
1656
|
+
return !x || !(x != null && x.variants) ? !1 : ($ = x.variants.find((l) => l.id === x.activeVariantId)) == null ? void 0 : $.subscriptionSettings;
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
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: (
|
|
1668
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
1704
|
-
function
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
1828
|
+
h().total
|
|
1829
1829
|
] })
|
|
1830
1830
|
] }),
|
|
1831
|
-
/* @__PURE__ */ t.jsx(G, { onClick: () =>
|
|
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
|
|
1860
|
-
function
|
|
1861
|
-
window.location.pathname.includes("/admin/builder") ||
|
|
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 (!
|
|
1863
|
+
if (!s)
|
|
1864
1864
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1865
1865
|
/* @__PURE__ */ t.jsx(
|
|
1866
1866
|
G,
|
|
1867
1867
|
{
|
|
1868
|
-
onClick: () =>
|
|
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: () =>
|
|
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 [
|
|
1893
|
+
const [h, o] = _.useState("test-email@gmail.com");
|
|
1890
1894
|
return _.useEffect(() => {
|
|
1891
1895
|
(async () => {
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1896
|
+
const x = Tt(s);
|
|
1897
|
+
o(x.email);
|
|
1894
1898
|
})();
|
|
1895
|
-
}, [
|
|
1899
|
+
}, [s]), /* @__PURE__ */ t.jsx(
|
|
1896
1900
|
"div",
|
|
1897
1901
|
{
|
|
1898
1902
|
className: y.userInfo,
|
|
1899
|
-
onClick: () =>
|
|
1900
|
-
|
|
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:
|
|
1911
|
+
logo: n,
|
|
1906
1912
|
setIsOpen: e,
|
|
1907
1913
|
signUp: s
|
|
1908
1914
|
}) => {
|
|
1909
|
-
const { setIsOpen:
|
|
1910
|
-
|
|
1911
|
-
e(!1),
|
|
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: (
|
|
1924
|
+
onClick: (h) => h.stopPropagation(),
|
|
1919
1925
|
children: [
|
|
1920
1926
|
/* @__PURE__ */ t.jsxs("div", { className: y.pagesMobileModalHeader, children: [
|
|
1921
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
1927
|
+
/* @__PURE__ */ t.jsx("div", { children: n }),
|
|
1922
1928
|
/* @__PURE__ */ t.jsx(
|
|
1923
1929
|
G,
|
|
1924
1930
|
{
|
|
1925
1931
|
type: "Secondary",
|
|
1926
|
-
onClick:
|
|
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(
|
|
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:
|
|
1956
|
+
logo: n,
|
|
1945
1957
|
signUp: e
|
|
1946
1958
|
}) => {
|
|
1947
|
-
const [s,
|
|
1959
|
+
const [s, i] = _.useState(!1);
|
|
1948
1960
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1949
|
-
/* @__PURE__ */ t.jsx(Nn, { setIsOpenModal:
|
|
1950
|
-
s && /* @__PURE__ */ t.jsx(vt, { close: () =>
|
|
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:
|
|
1954
|
-
setIsOpen:
|
|
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:
|
|
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(),
|
|
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:
|
|
2006
|
+
const { isOpenModal: d, setIsOpenModal: n } = kt();
|
|
1995
2007
|
function e() {
|
|
1996
|
-
|
|
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:
|
|
2029
|
+
d && /* @__PURE__ */ t.jsx(vt, { close: n, children: /* @__PURE__ */ t.jsx(An, {}) })
|
|
2018
2030
|
] });
|
|
2019
2031
|
}, An = () => {
|
|
2020
|
-
const { setIsOpenModal: d } = kt(), { notification:
|
|
2021
|
-
function
|
|
2022
|
-
navigator.clipboard.writeText(
|
|
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
|
|
2039
|
+
function h() {
|
|
2028
2040
|
s(!1), setTimeout(() => {
|
|
2029
2041
|
d(!1), s(!0);
|
|
2030
2042
|
}, 300);
|
|
2031
2043
|
}
|
|
2032
|
-
function o(u,
|
|
2033
|
-
return u.length >
|
|
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:
|
|
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:
|
|
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(
|
|
2064
|
-
/* @__PURE__ */ t.jsx("div", { className: Z.copyTextMobile, children: o(
|
|
2065
|
-
/* @__PURE__ */ t.jsx("div", { className: Z.copyTextMiniMobile, children: o(
|
|
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:
|
|
2074
|
-
children:
|
|
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:
|
|
2088
|
-
const [s,
|
|
2089
|
-
|
|
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 &&
|
|
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: `${
|
|
2111
|
-
children: /* @__PURE__ */ t.jsx("p", { id: "p", children:
|
|
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:
|
|
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:
|
|
2135
|
+
id: i,
|
|
2124
2136
|
children: d
|
|
2125
2137
|
}
|
|
2126
2138
|
);
|
|
2127
|
-
const
|
|
2128
|
-
|
|
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:
|
|
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:
|
|
2175
|
+
onChange: n,
|
|
2164
2176
|
label: e,
|
|
2165
2177
|
value: s,
|
|
2166
|
-
maxLength:
|
|
2167
|
-
placeholder:
|
|
2168
|
-
type:
|
|
2178
|
+
maxLength: i,
|
|
2179
|
+
placeholder: m = "Type something...",
|
|
2180
|
+
type: h = "text"
|
|
2169
2181
|
} = d, [o, u] = _.useState(s.length);
|
|
2170
|
-
function
|
|
2171
|
-
return
|
|
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 =
|
|
2189
|
-
u(l.length),
|
|
2200
|
+
const l = x($.target.value);
|
|
2201
|
+
u(l.length), n(l);
|
|
2190
2202
|
},
|
|
2191
|
-
placeholder:
|
|
2203
|
+
placeholder: m,
|
|
2192
2204
|
className: ct.textarea,
|
|
2193
|
-
maxLength:
|
|
2205
|
+
maxLength: i
|
|
2194
2206
|
}
|
|
2195
2207
|
),
|
|
2196
|
-
|
|
2208
|
+
i && /* @__PURE__ */ t.jsxs("div", { className: ct.length, children: [
|
|
2197
2209
|
o,
|
|
2198
2210
|
"/",
|
|
2199
|
-
|
|
2211
|
+
i
|
|
2200
2212
|
] })
|
|
2201
2213
|
] });
|
|
2202
2214
|
};
|