@billgangcom/theme-lib 1.96.2 → 1.97.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.cjs.js +8 -8
- package/dist/builder.es.js +665 -612
- package/dist/{index-W-ifbeTZ.cjs → index-Bl7M7YW4.cjs} +23 -23
- package/dist/{index-BRnzXirx.js → index-H-ceSyds.js} +1346 -1316
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/pages/maintenance/index.d.ts +2 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +450 -451
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as t, I as j, d as U, e as Nt, g as mt, h as pt, P as gt, S as lt, i as kt, D as ft, k as xt, v as _t, B as dt, l as ot, a as wt, m as Tt, O as ht, n as J, o as yt, C as jt, p as V, q as
|
|
2
|
-
import { a1 as si, a5 as ni, $ as ii, Z as ai, a4 as oi, a3 as ci, Y as ri, _ as li, W as di, X as ui, a0 as hi, a2 as mi } from "./index-
|
|
3
|
-
import
|
|
1
|
+
import { j as t, I as j, d as U, e as Nt, g as mt, h as pt, P as gt, S as lt, i as kt, D as ft, k as xt, v as _t, B as dt, l as ot, a as wt, m as Tt, O as ht, n as J, o as yt, C as jt, p as V, q as At, r as Dt, t as bt, w as Et, x as vt, y as W, L as Rt, z as St, A as Ct, b as ct, s as at, f as Q, E as Lt, F as R, G as Ut, M as ut, H as Ht, J as rt, K as Mt, N as zt, Q as Bt, T as Ft, U as $t, V as Vt } from "./index-H-ceSyds.js";
|
|
2
|
+
import { a1 as si, a5 as ni, $ as ii, Z as ai, a4 as oi, a3 as ci, Y as ri, _ as li, W as di, X as ui, a0 as hi, a2 as mi } from "./index-H-ceSyds.js";
|
|
3
|
+
import g from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23", Xt = "_alignmentContent_kh9z8_30", Qt = "_alignments_kh9z8_39", Jt = "_alignment_kh9z8_30", Kt = "_circle_kh9z8_64", Zt = "_paddings_kh9z8_71", te = "_padding_kh9z8_71", ee = "_active_kh9z8_97", G = {
|
|
6
6
|
block: Yt,
|
|
@@ -28,12 +28,12 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
|
|
|
28
28
|
alignment: a,
|
|
29
29
|
padding: o,
|
|
30
30
|
setPadding: s,
|
|
31
|
-
setAlignment:
|
|
31
|
+
setAlignment: r,
|
|
32
32
|
isAlignment: e = !0,
|
|
33
|
-
isPadding:
|
|
33
|
+
isPadding: u = !0
|
|
34
34
|
} = h;
|
|
35
|
-
function
|
|
36
|
-
switch (
|
|
35
|
+
function d(l) {
|
|
36
|
+
switch (l) {
|
|
37
37
|
case "left":
|
|
38
38
|
case "topLeft":
|
|
39
39
|
case "bottomLeft":
|
|
@@ -50,8 +50,8 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
|
|
|
50
50
|
return "TextAlignCenter";
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
switch (
|
|
53
|
+
function f(l) {
|
|
54
|
+
switch (l) {
|
|
55
55
|
case "left":
|
|
56
56
|
return "AlignLeft";
|
|
57
57
|
case "right":
|
|
@@ -62,40 +62,40 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
|
|
|
62
62
|
return "AlignBottom";
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
const [_, M] =
|
|
65
|
+
const [_, M] = g.useState(null), [I, c] = g.useState(null);
|
|
66
66
|
return /* @__PURE__ */ t.jsxs("div", { className: G.layout, children: [
|
|
67
67
|
/* @__PURE__ */ t.jsx("h3", { className: G.title, children: "Layout (for Desktop version)" }),
|
|
68
68
|
/* @__PURE__ */ t.jsxs("div", { className: G.alignmentContent, children: [
|
|
69
69
|
e && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
70
70
|
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Alignment" }),
|
|
71
|
-
/* @__PURE__ */ t.jsx("div", { className: G.alignments, children: se.map((
|
|
71
|
+
/* @__PURE__ */ t.jsx("div", { className: G.alignments, children: se.map((l) => /* @__PURE__ */ t.jsxs(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
74
|
onClick: () => {
|
|
75
|
-
|
|
75
|
+
r(l);
|
|
76
76
|
},
|
|
77
77
|
className: G.alignment,
|
|
78
78
|
onMouseEnter: () => {
|
|
79
|
-
M(
|
|
79
|
+
M(l);
|
|
80
80
|
},
|
|
81
81
|
onMouseLeave: () => {
|
|
82
82
|
M(null);
|
|
83
83
|
},
|
|
84
84
|
children: [
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
l !== a && _ !== l && /* @__PURE__ */ t.jsx("div", { className: G.circle }),
|
|
86
|
+
l !== a && _ === l && /* @__PURE__ */ t.jsx(
|
|
87
87
|
j,
|
|
88
88
|
{
|
|
89
|
-
name:
|
|
89
|
+
name: d(_),
|
|
90
90
|
fill: "#c2c2c2",
|
|
91
91
|
width: 22,
|
|
92
92
|
height: 22
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
|
|
95
|
+
l === a && /* @__PURE__ */ t.jsx(
|
|
96
96
|
j,
|
|
97
97
|
{
|
|
98
|
-
name:
|
|
98
|
+
name: d(a),
|
|
99
99
|
fill: "#FF3F19",
|
|
100
100
|
width: 22,
|
|
101
101
|
height: 22
|
|
@@ -103,28 +103,28 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
|
|
|
103
103
|
)
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
|
-
|
|
106
|
+
l
|
|
107
107
|
)) })
|
|
108
108
|
] }),
|
|
109
|
-
|
|
109
|
+
u && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
110
110
|
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Paddings" }),
|
|
111
|
-
/* @__PURE__ */ t.jsx("div", { className: G.paddings, children: ne.map((
|
|
111
|
+
/* @__PURE__ */ t.jsx("div", { className: G.paddings, children: ne.map((l) => /* @__PURE__ */ t.jsxs(
|
|
112
112
|
"label",
|
|
113
113
|
{
|
|
114
114
|
className: U(G.padding, {
|
|
115
|
-
[G.active]: I ===
|
|
115
|
+
[G.active]: I === l
|
|
116
116
|
}),
|
|
117
117
|
onFocus: () => {
|
|
118
|
-
|
|
118
|
+
c(l);
|
|
119
119
|
},
|
|
120
120
|
onBlur: () => {
|
|
121
|
-
|
|
121
|
+
c(null);
|
|
122
122
|
},
|
|
123
123
|
children: [
|
|
124
124
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
125
125
|
j,
|
|
126
126
|
{
|
|
127
|
-
name:
|
|
127
|
+
name: f(l),
|
|
128
128
|
width: 20,
|
|
129
129
|
height: 20
|
|
130
130
|
}
|
|
@@ -133,10 +133,10 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
|
|
|
133
133
|
Nt,
|
|
134
134
|
{
|
|
135
135
|
type: "number",
|
|
136
|
-
value: String(o[
|
|
136
|
+
value: String(o[l]),
|
|
137
137
|
onChange: (y) => s({
|
|
138
138
|
...o,
|
|
139
|
-
[
|
|
139
|
+
[l]: Math.min(Number(y), 999)
|
|
140
140
|
}),
|
|
141
141
|
max: 999,
|
|
142
142
|
paddingless: !0,
|
|
@@ -145,7 +145,7 @@ const Yt = "_block_kh9z8_8", Gt = "_title_kh9z8_16", Wt = "_subtitle_kh9z8_23",
|
|
|
145
145
|
)
|
|
146
146
|
]
|
|
147
147
|
},
|
|
148
|
-
|
|
148
|
+
l
|
|
149
149
|
)) })
|
|
150
150
|
] })
|
|
151
151
|
] })
|
|
@@ -167,22 +167,22 @@ function ge({ id: h, children: a }) {
|
|
|
167
167
|
const {
|
|
168
168
|
attributes: o,
|
|
169
169
|
listeners: s,
|
|
170
|
-
setNodeRef:
|
|
170
|
+
setNodeRef: r,
|
|
171
171
|
transform: e,
|
|
172
|
-
transition:
|
|
173
|
-
isDragging:
|
|
172
|
+
transition: u,
|
|
173
|
+
isDragging: d
|
|
174
174
|
} = yt({
|
|
175
175
|
id: h
|
|
176
|
-
}),
|
|
176
|
+
}), f = {
|
|
177
177
|
transform: jt.Transform.toString(e),
|
|
178
|
-
transition:
|
|
178
|
+
transition: u
|
|
179
179
|
};
|
|
180
180
|
return /* @__PURE__ */ t.jsx(
|
|
181
181
|
"div",
|
|
182
182
|
{
|
|
183
|
-
ref:
|
|
184
|
-
style:
|
|
185
|
-
className: `${X.product} ${
|
|
183
|
+
ref: r,
|
|
184
|
+
style: f,
|
|
185
|
+
className: `${X.product} ${d ? X.dragging : ""}`,
|
|
186
186
|
...o,
|
|
187
187
|
...s,
|
|
188
188
|
children: a
|
|
@@ -194,18 +194,18 @@ const Un = (h) => {
|
|
|
194
194
|
isActiveItems: a,
|
|
195
195
|
setIsActiveItems: o,
|
|
196
196
|
items: s,
|
|
197
|
-
setItems:
|
|
197
|
+
setItems: r,
|
|
198
198
|
other: e,
|
|
199
|
-
tags:
|
|
200
|
-
title:
|
|
201
|
-
subtitle:
|
|
199
|
+
tags: u,
|
|
200
|
+
title: d,
|
|
201
|
+
subtitle: f,
|
|
202
202
|
draggable: _ = !1,
|
|
203
203
|
withImage: M = !1,
|
|
204
204
|
addable: I = !0,
|
|
205
|
-
itemsOptions:
|
|
206
|
-
hasRangeSelector:
|
|
205
|
+
itemsOptions: c,
|
|
206
|
+
hasRangeSelector: l = !1,
|
|
207
207
|
rangeSelectorOptions: y,
|
|
208
|
-
limit:
|
|
208
|
+
limit: x,
|
|
209
209
|
autoScrollInterval: m,
|
|
210
210
|
deletable: i,
|
|
211
211
|
aspectRatio: b,
|
|
@@ -222,7 +222,7 @@ const Un = (h) => {
|
|
|
222
222
|
const q = s.findIndex((S) => S === N.id), $ = s.findIndex((S) => S === k.id);
|
|
223
223
|
if (q !== -1 && $ !== -1) {
|
|
224
224
|
const S = [...s], [Z] = S.splice(q, 1);
|
|
225
|
-
S.splice($, 0, Z),
|
|
225
|
+
S.splice($, 0, Z), r(S);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
};
|
|
@@ -247,7 +247,7 @@ const Un = (h) => {
|
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
249
|
const L = (n, N = !1) => {
|
|
250
|
-
const k =
|
|
250
|
+
const k = c.find(($) => $.id === n);
|
|
251
251
|
if (!k) return;
|
|
252
252
|
const q = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
253
253
|
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
@@ -263,14 +263,14 @@ const Un = (h) => {
|
|
|
263
263
|
ot,
|
|
264
264
|
{
|
|
265
265
|
onChange: ($) => {
|
|
266
|
-
const S = [...s], Z =
|
|
266
|
+
const S = [...s], Z = c.find((p) => p.name === $);
|
|
267
267
|
if (!Z) return;
|
|
268
|
-
const v = Z.id, D = S.map((
|
|
269
|
-
|
|
268
|
+
const v = Z.id, D = S.map((p) => p === n ? v : p);
|
|
269
|
+
r([...D]);
|
|
270
270
|
},
|
|
271
271
|
value: k.name,
|
|
272
|
-
options:
|
|
273
|
-
leftAddonOptions:
|
|
272
|
+
options: c.filter(($) => !s.find((S) => S === $.id)).map(($) => $.name),
|
|
273
|
+
leftAddonOptions: c.map(($) => ({
|
|
274
274
|
value: $.name,
|
|
275
275
|
addon: K($.images)
|
|
276
276
|
}))
|
|
@@ -284,7 +284,7 @@ const Un = (h) => {
|
|
|
284
284
|
width: 20,
|
|
285
285
|
height: 20,
|
|
286
286
|
fill: "#C12A2A",
|
|
287
|
-
onClick: () =>
|
|
287
|
+
onClick: () => r(s.filter(($) => $ !== n))
|
|
288
288
|
}
|
|
289
289
|
) }) })
|
|
290
290
|
] });
|
|
@@ -305,8 +305,8 @@ const Un = (h) => {
|
|
|
305
305
|
);
|
|
306
306
|
};
|
|
307
307
|
return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
|
|
308
|
-
(
|
|
309
|
-
|
|
308
|
+
(d || a !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: X.top, children: [
|
|
309
|
+
d && /* @__PURE__ */ t.jsx("h3", { className: X.title, children: d }),
|
|
310
310
|
a !== void 0 && /* @__PURE__ */ t.jsx(
|
|
311
311
|
lt,
|
|
312
312
|
{
|
|
@@ -315,9 +315,9 @@ const Un = (h) => {
|
|
|
315
315
|
}
|
|
316
316
|
)
|
|
317
317
|
] }),
|
|
318
|
-
|
|
318
|
+
l && y && /* @__PURE__ */ t.jsx(kt, { ...y }),
|
|
319
319
|
/* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
|
|
320
|
-
|
|
320
|
+
f && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: f }),
|
|
321
321
|
_ ? /* @__PURE__ */ t.jsx(
|
|
322
322
|
ft,
|
|
323
323
|
{
|
|
@@ -347,21 +347,21 @@ const Un = (h) => {
|
|
|
347
347
|
{
|
|
348
348
|
withoutHover: !0,
|
|
349
349
|
className: U(X.button, {
|
|
350
|
-
[X.disabled]: !!(
|
|
350
|
+
[X.disabled]: !!(x && x <= s.length || s.length === c.length)
|
|
351
351
|
}),
|
|
352
352
|
size: "s",
|
|
353
|
-
disabled: !!(
|
|
353
|
+
disabled: !!(x && x <= s.length || s.length === c.length),
|
|
354
354
|
onClick: () => {
|
|
355
355
|
const n = [...s];
|
|
356
356
|
let N = null;
|
|
357
|
-
if (
|
|
358
|
-
for (let k = 0; k <
|
|
359
|
-
if (!s.find((q) => q ===
|
|
360
|
-
N =
|
|
357
|
+
if (c) {
|
|
358
|
+
for (let k = 0; k < c.length; k++)
|
|
359
|
+
if (!s.find((q) => q === c[k].id)) {
|
|
360
|
+
N = c[k];
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
n.push((N == null ? void 0 : N.id) ||
|
|
364
|
+
n.push((N == null ? void 0 : N.id) || c[0].id), r(n);
|
|
365
365
|
},
|
|
366
366
|
style: {
|
|
367
367
|
width: "fit-content"
|
|
@@ -392,11 +392,11 @@ const Un = (h) => {
|
|
|
392
392
|
leftAddonOptions: wt
|
|
393
393
|
}
|
|
394
394
|
),
|
|
395
|
-
|
|
395
|
+
u !== void 0 && /* @__PURE__ */ t.jsx(
|
|
396
396
|
ht,
|
|
397
397
|
{
|
|
398
398
|
tagsTitle: "Tags",
|
|
399
|
-
items:
|
|
399
|
+
items: u
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
402
|
e !== void 0 && /* @__PURE__ */ t.jsx(
|
|
@@ -439,22 +439,22 @@ function Pe({ product: h, children: a }) {
|
|
|
439
439
|
const {
|
|
440
440
|
attributes: o,
|
|
441
441
|
listeners: s,
|
|
442
|
-
setNodeRef:
|
|
442
|
+
setNodeRef: r,
|
|
443
443
|
transform: e,
|
|
444
|
-
transition:
|
|
445
|
-
isDragging:
|
|
444
|
+
transition: u,
|
|
445
|
+
isDragging: d
|
|
446
446
|
} = yt({
|
|
447
447
|
id: h.id
|
|
448
|
-
}),
|
|
448
|
+
}), f = {
|
|
449
449
|
transform: jt.Transform.toString(e),
|
|
450
|
-
transition:
|
|
450
|
+
transition: u
|
|
451
451
|
};
|
|
452
452
|
return /* @__PURE__ */ t.jsx(
|
|
453
453
|
"div",
|
|
454
454
|
{
|
|
455
|
-
ref:
|
|
456
|
-
style:
|
|
457
|
-
className: `${Y.product} ${
|
|
455
|
+
ref: r,
|
|
456
|
+
style: f,
|
|
457
|
+
className: `${Y.product} ${d ? Y.dragging : ""}`,
|
|
458
458
|
...o,
|
|
459
459
|
...s,
|
|
460
460
|
children: a
|
|
@@ -466,30 +466,30 @@ const Hn = (h) => {
|
|
|
466
466
|
isActiveItems: a,
|
|
467
467
|
setIsActiveItems: o,
|
|
468
468
|
items: s,
|
|
469
|
-
setItems:
|
|
469
|
+
setItems: r,
|
|
470
470
|
title: e,
|
|
471
|
-
subtitle:
|
|
472
|
-
editable:
|
|
473
|
-
draggable:
|
|
471
|
+
subtitle: u,
|
|
472
|
+
editable: d = !0,
|
|
473
|
+
draggable: f = !1,
|
|
474
474
|
deletable: _ = !0,
|
|
475
475
|
addable: M = !0,
|
|
476
476
|
itemsType: I,
|
|
477
|
-
itemsOptions:
|
|
478
|
-
addableOptions:
|
|
477
|
+
itemsOptions: c,
|
|
478
|
+
addableOptions: l = {},
|
|
479
479
|
limit: y
|
|
480
|
-
} = h, [
|
|
480
|
+
} = h, [x, m] = g.useState(null), [i, b] = g.useState(null), P = g.useRef(null), A = mt(
|
|
481
481
|
pt(gt, {
|
|
482
482
|
activationConstraint: {
|
|
483
483
|
distance: 5
|
|
484
484
|
}
|
|
485
485
|
})
|
|
486
486
|
);
|
|
487
|
-
|
|
488
|
-
if (
|
|
489
|
-
const n = [...s].map((N) => N.id ===
|
|
490
|
-
|
|
487
|
+
g.useEffect(() => {
|
|
488
|
+
if (x) {
|
|
489
|
+
const n = [...s].map((N) => N.id === x.id ? x : N);
|
|
490
|
+
r(n);
|
|
491
491
|
}
|
|
492
|
-
}, [
|
|
492
|
+
}, [x]), g.useEffect(() => {
|
|
493
493
|
P.current && i && (P.current.getBoundingClientRect().height, i.top);
|
|
494
494
|
}, [P.current, i]);
|
|
495
495
|
const E = (n, N) => {
|
|
@@ -505,12 +505,12 @@ const Hn = (h) => {
|
|
|
505
505
|
const q = s.findIndex((S) => S.id === N.id), $ = s.findIndex((S) => S.id === k.id);
|
|
506
506
|
if (q !== -1 && $ !== -1) {
|
|
507
507
|
const S = [...s], [Z] = S.splice(q, 1);
|
|
508
|
-
S.splice($, 0, Z),
|
|
508
|
+
S.splice($, 0, Z), r(S);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
}, L = (n, N) => {
|
|
512
512
|
const k = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
513
|
-
|
|
513
|
+
f && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
514
514
|
j,
|
|
515
515
|
{
|
|
516
516
|
name: "DotsSixVertical",
|
|
@@ -519,11 +519,11 @@ const Hn = (h) => {
|
|
|
519
519
|
height: 20
|
|
520
520
|
}
|
|
521
521
|
) }),
|
|
522
|
-
I === "select" &&
|
|
522
|
+
I === "select" && c && /* @__PURE__ */ t.jsx(
|
|
523
523
|
ot,
|
|
524
524
|
{
|
|
525
525
|
onChange: (q) => {
|
|
526
|
-
const $ = [...s], S =
|
|
526
|
+
const $ = [...s], S = c.find((v) => v.name === q);
|
|
527
527
|
if (!S) return;
|
|
528
528
|
const Z = $.map((v) => v.id === n.id ? {
|
|
529
529
|
...S,
|
|
@@ -536,14 +536,14 @@ const Hn = (h) => {
|
|
|
536
536
|
name: {
|
|
537
537
|
"en-US": q
|
|
538
538
|
}
|
|
539
|
-
}),
|
|
539
|
+
}), r([...Z]);
|
|
540
540
|
},
|
|
541
541
|
value: n.name,
|
|
542
|
-
options:
|
|
542
|
+
options: c.filter((q) => !s.find(($) => $.name === q.name)).map((q) => q.name)
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
545
|
/* @__PURE__ */ t.jsxs("div", { className: Y.buttons, children: [
|
|
546
|
-
|
|
546
|
+
d && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
547
547
|
j,
|
|
548
548
|
{
|
|
549
549
|
name: "Sliders",
|
|
@@ -561,12 +561,12 @@ const Hn = (h) => {
|
|
|
561
561
|
width: 20,
|
|
562
562
|
height: 20,
|
|
563
563
|
fill: "#C12A2A",
|
|
564
|
-
onClick: () =>
|
|
564
|
+
onClick: () => r(s.filter((q) => q.id !== n.id))
|
|
565
565
|
}
|
|
566
566
|
) })
|
|
567
567
|
] })
|
|
568
568
|
] });
|
|
569
|
-
return
|
|
569
|
+
return f ? /* @__PURE__ */ t.jsx(
|
|
570
570
|
Pe,
|
|
571
571
|
{
|
|
572
572
|
product: n,
|
|
@@ -595,8 +595,8 @@ const Hn = (h) => {
|
|
|
595
595
|
)
|
|
596
596
|
] }),
|
|
597
597
|
/* @__PURE__ */ t.jsxs("div", { className: Y.products, children: [
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
u && /* @__PURE__ */ t.jsx("h5", { className: Y.subtitle, children: u }),
|
|
599
|
+
f ? /* @__PURE__ */ t.jsx(
|
|
600
600
|
ft,
|
|
601
601
|
{
|
|
602
602
|
sensors: A,
|
|
@@ -624,25 +624,25 @@ const Hn = (h) => {
|
|
|
624
624
|
{
|
|
625
625
|
withoutHover: !0,
|
|
626
626
|
className: U(Y.button, {
|
|
627
|
-
[Y.disabled]: !!(y && y <= s.length || s.length === (
|
|
627
|
+
[Y.disabled]: !!(y && y <= s.length || s.length === (c == null ? void 0 : c.length))
|
|
628
628
|
}),
|
|
629
629
|
size: "s",
|
|
630
|
-
disabled: !!(y && y <= s.length || s.length === (
|
|
630
|
+
disabled: !!(y && y <= s.length || s.length === (c == null ? void 0 : c.length)),
|
|
631
631
|
onClick: () => {
|
|
632
632
|
const n = [...s];
|
|
633
633
|
let N = null;
|
|
634
|
-
if (
|
|
635
|
-
for (let k = 0; k <
|
|
636
|
-
if (!s.find((q) => q.id ===
|
|
637
|
-
N =
|
|
634
|
+
if (c) {
|
|
635
|
+
for (let k = 0; k < c.length; k++)
|
|
636
|
+
if (!s.find((q) => q.id === c[k].id)) {
|
|
637
|
+
N = c[k];
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
I === "select" &&
|
|
642
|
-
name: N ? N.name :
|
|
643
|
-
id: (N == null ? void 0 : N.id) ||
|
|
644
|
-
...
|
|
645
|
-
}),
|
|
641
|
+
I === "select" && c && n.push({
|
|
642
|
+
name: N ? N.name : c[0].name,
|
|
643
|
+
id: (N == null ? void 0 : N.id) || c[0].id,
|
|
644
|
+
...l
|
|
645
|
+
}), r(n);
|
|
646
646
|
},
|
|
647
647
|
style: {
|
|
648
648
|
width: "fit-content"
|
|
@@ -666,20 +666,20 @@ const Hn = (h) => {
|
|
|
666
666
|
] });
|
|
667
667
|
};
|
|
668
668
|
function ke(h) {
|
|
669
|
-
const { product: a, children: o } = h, { attributes: s, listeners:
|
|
669
|
+
const { product: a, children: o } = h, { attributes: s, listeners: r, setNodeRef: e, transform: u, transition: d, isDragging: f } = yt({
|
|
670
670
|
id: a.id
|
|
671
671
|
}), _ = {
|
|
672
|
-
transform: jt.Transform.toString(
|
|
673
|
-
transition:
|
|
672
|
+
transform: jt.Transform.toString(u),
|
|
673
|
+
transition: d
|
|
674
674
|
};
|
|
675
675
|
return /* @__PURE__ */ t.jsx(
|
|
676
676
|
"div",
|
|
677
677
|
{
|
|
678
678
|
ref: e,
|
|
679
679
|
style: _,
|
|
680
|
-
className: `${V.product} ${
|
|
680
|
+
className: `${V.product} ${f ? V.dragging : ""}`,
|
|
681
681
|
...s,
|
|
682
|
-
...
|
|
682
|
+
...r,
|
|
683
683
|
children: o
|
|
684
684
|
}
|
|
685
685
|
);
|
|
@@ -689,71 +689,71 @@ const zn = (h) => {
|
|
|
689
689
|
isActiveItems: a,
|
|
690
690
|
setIsActiveItems: o,
|
|
691
691
|
items: s,
|
|
692
|
-
setItems:
|
|
692
|
+
setItems: r,
|
|
693
693
|
other: e,
|
|
694
|
-
title:
|
|
695
|
-
subtitle:
|
|
696
|
-
editable:
|
|
694
|
+
title: u,
|
|
695
|
+
subtitle: d,
|
|
696
|
+
editable: f = !0,
|
|
697
697
|
draggable: _ = !1,
|
|
698
698
|
deletable: M = !0,
|
|
699
699
|
addable: I = !0,
|
|
700
|
-
itemsType:
|
|
701
|
-
itemsPlaceholder:
|
|
700
|
+
itemsType: c,
|
|
701
|
+
itemsPlaceholder: l = "",
|
|
702
702
|
itemsOptions: y,
|
|
703
|
-
hasRangeSelector:
|
|
703
|
+
hasRangeSelector: x = !1,
|
|
704
704
|
rangeSelectorOptions: m,
|
|
705
705
|
modalOptions: i,
|
|
706
706
|
addableOptions: b = {},
|
|
707
707
|
limit: P
|
|
708
|
-
} = h, [A, E] =
|
|
708
|
+
} = h, [A, E] = g.useState(null), [K, L] = g.useState({
|
|
709
709
|
top: 0,
|
|
710
710
|
left: 0
|
|
711
|
-
}), [n, N] =
|
|
711
|
+
}), [n, N] = g.useState(null), k = g.useRef(null), [q, $] = g.useState(!1), S = mt(
|
|
712
712
|
pt(gt, {
|
|
713
713
|
activationConstraint: {
|
|
714
714
|
distance: 5
|
|
715
715
|
}
|
|
716
716
|
})
|
|
717
717
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
718
|
+
g.useEffect(() => {
|
|
719
|
+
const p = () => {
|
|
720
720
|
E(null), $(!1);
|
|
721
721
|
};
|
|
722
|
-
return document.body.addEventListener("click",
|
|
723
|
-
E(null), $(!1), document.body.removeEventListener("click",
|
|
722
|
+
return document.body.addEventListener("click", p), E(null), $(!1), () => {
|
|
723
|
+
E(null), $(!1), document.body.removeEventListener("click", p);
|
|
724
724
|
};
|
|
725
|
-
}, []),
|
|
725
|
+
}, []), g.useEffect(() => {
|
|
726
726
|
if (A) {
|
|
727
|
-
const
|
|
728
|
-
|
|
727
|
+
const p = [...s].map((C) => C.id === A.id ? A : C);
|
|
728
|
+
r(p);
|
|
729
729
|
}
|
|
730
|
-
}, [A]),
|
|
730
|
+
}, [A]), g.useEffect(() => {
|
|
731
731
|
if (k.current && n) {
|
|
732
|
-
const
|
|
732
|
+
const p = k.current.getBoundingClientRect().height, C = window.innerHeight;
|
|
733
733
|
let B = n.top;
|
|
734
|
-
B +
|
|
734
|
+
B + p > C + window.scrollY - 200 && (B = C + window.scrollY - p - 200), B < 0 && (B = 10), L({
|
|
735
735
|
top: B,
|
|
736
736
|
left: n.left
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
}, [k.current, n]);
|
|
740
|
-
const Z = (
|
|
741
|
-
|
|
742
|
-
const B =
|
|
740
|
+
const Z = (p, C) => {
|
|
741
|
+
p.stopPropagation();
|
|
742
|
+
const B = p.target.getBoundingClientRect();
|
|
743
743
|
N({
|
|
744
744
|
top: B.top + window.scrollY,
|
|
745
745
|
left: B.left - 30
|
|
746
746
|
}), E(C), $(!0);
|
|
747
|
-
}, v = (
|
|
748
|
-
const { active: C, over: B } =
|
|
747
|
+
}, v = (p) => {
|
|
748
|
+
const { active: C, over: B } = p;
|
|
749
749
|
if (B && C.id !== B.id) {
|
|
750
750
|
const T = s.findIndex((z) => z.id === C.id), tt = s.findIndex((z) => z.id === B.id);
|
|
751
751
|
if (T !== -1 && tt !== -1) {
|
|
752
752
|
const z = [...s], [F] = z.splice(T, 1);
|
|
753
|
-
z.splice(tt, 0, F),
|
|
753
|
+
z.splice(tt, 0, F), r(z);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
}, D = (
|
|
756
|
+
}, D = (p) => {
|
|
757
757
|
var B;
|
|
758
758
|
const C = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
759
759
|
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
@@ -765,67 +765,67 @@ const zn = (h) => {
|
|
|
765
765
|
height: 20
|
|
766
766
|
}
|
|
767
767
|
) }),
|
|
768
|
-
|
|
768
|
+
c === "select" && y && /* @__PURE__ */ t.jsx(
|
|
769
769
|
ot,
|
|
770
770
|
{
|
|
771
771
|
onChange: (T) => {
|
|
772
|
-
const z = [...s].map((F) => F.id ===
|
|
773
|
-
...
|
|
772
|
+
const z = [...s].map((F) => F.id === p.id ? {
|
|
773
|
+
...p,
|
|
774
774
|
name: {
|
|
775
775
|
"en-US": T
|
|
776
776
|
}
|
|
777
777
|
} : F);
|
|
778
778
|
E({
|
|
779
|
-
...
|
|
779
|
+
...p,
|
|
780
780
|
name: {
|
|
781
781
|
"en-US": T
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), r([...z]);
|
|
784
784
|
},
|
|
785
|
-
value:
|
|
785
|
+
value: p.name["en-US"],
|
|
786
786
|
options: y.filter(
|
|
787
787
|
(T) => !s.find((tt) => tt.name["en-US"] === T)
|
|
788
788
|
)
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
|
|
791
|
+
c === "input" && /* @__PURE__ */ t.jsx(
|
|
792
792
|
Nt,
|
|
793
793
|
{
|
|
794
794
|
onChange: (T) => {
|
|
795
|
-
const z = [...s].map((F) => F.id ===
|
|
796
|
-
...
|
|
795
|
+
const z = [...s].map((F) => F.id === p.id ? {
|
|
796
|
+
...p,
|
|
797
797
|
name: {
|
|
798
798
|
"en-US": T
|
|
799
799
|
}
|
|
800
800
|
} : F);
|
|
801
|
-
|
|
801
|
+
r([...z]);
|
|
802
802
|
},
|
|
803
|
-
value:
|
|
804
|
-
placeholder:
|
|
803
|
+
value: p.name["en-US"],
|
|
804
|
+
placeholder: l
|
|
805
805
|
}
|
|
806
806
|
),
|
|
807
|
-
|
|
808
|
-
|
|
807
|
+
c === "image" && /* @__PURE__ */ t.jsx(
|
|
808
|
+
Dt,
|
|
809
809
|
{
|
|
810
810
|
onChange: (T) => {
|
|
811
|
-
const z = [...s].map((F) => F.id ===
|
|
812
|
-
...
|
|
811
|
+
const z = [...s].map((F) => F.id === p.id ? {
|
|
812
|
+
...p,
|
|
813
813
|
images: T
|
|
814
814
|
} : F);
|
|
815
|
-
|
|
815
|
+
r([...z]);
|
|
816
816
|
},
|
|
817
|
-
activeImage: (B = s.find((T) => T.id ===
|
|
817
|
+
activeImage: (B = s.find((T) => T.id === p.id)) == null ? void 0 : B.images[0]
|
|
818
818
|
}
|
|
819
819
|
),
|
|
820
820
|
/* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
|
|
821
|
-
|
|
821
|
+
f && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
822
822
|
j,
|
|
823
823
|
{
|
|
824
824
|
name: "Sliders",
|
|
825
825
|
hoverable: !0,
|
|
826
826
|
width: 20,
|
|
827
827
|
height: 20,
|
|
828
|
-
onClick: (T) => Z(T,
|
|
828
|
+
onClick: (T) => Z(T, p)
|
|
829
829
|
}
|
|
830
830
|
) }),
|
|
831
831
|
M && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
@@ -836,7 +836,7 @@ const zn = (h) => {
|
|
|
836
836
|
width: 20,
|
|
837
837
|
height: 20,
|
|
838
838
|
fill: "#C12A2A",
|
|
839
|
-
onClick: () =>
|
|
839
|
+
onClick: () => r(s.filter((T) => T.id !== p.id))
|
|
840
840
|
}
|
|
841
841
|
) })
|
|
842
842
|
] })
|
|
@@ -844,32 +844,32 @@ const zn = (h) => {
|
|
|
844
844
|
return _ ? /* @__PURE__ */ t.jsx(
|
|
845
845
|
ke,
|
|
846
846
|
{
|
|
847
|
-
product:
|
|
847
|
+
product: p,
|
|
848
848
|
children: C
|
|
849
849
|
},
|
|
850
|
-
|
|
850
|
+
p.id
|
|
851
851
|
) : /* @__PURE__ */ t.jsx(
|
|
852
852
|
"div",
|
|
853
853
|
{
|
|
854
854
|
className: V.product,
|
|
855
855
|
children: C
|
|
856
856
|
},
|
|
857
|
-
|
|
857
|
+
p.id
|
|
858
858
|
);
|
|
859
859
|
};
|
|
860
860
|
return /* @__PURE__ */ t.jsxs("div", { className: V.productsBlock, children: [
|
|
861
|
-
(
|
|
862
|
-
|
|
861
|
+
(u || a !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: V.top, children: [
|
|
862
|
+
u && /* @__PURE__ */ t.jsx("h3", { className: V.title, children: u }),
|
|
863
863
|
a !== void 0 && /* @__PURE__ */ t.jsx(
|
|
864
864
|
lt,
|
|
865
865
|
{
|
|
866
866
|
current: a,
|
|
867
|
-
onChange: (
|
|
867
|
+
onChange: (p) => o == null ? void 0 : o(p)
|
|
868
868
|
}
|
|
869
869
|
)
|
|
870
870
|
] }),
|
|
871
|
-
A &&
|
|
872
|
-
|
|
871
|
+
A && f && i && q && /* @__PURE__ */ t.jsx(
|
|
872
|
+
At,
|
|
873
873
|
{
|
|
874
874
|
ref: k,
|
|
875
875
|
activeItem: A,
|
|
@@ -879,9 +879,9 @@ const zn = (h) => {
|
|
|
879
879
|
setIsOpenModal: $
|
|
880
880
|
}
|
|
881
881
|
),
|
|
882
|
-
|
|
882
|
+
x && m && /* @__PURE__ */ t.jsx(kt, { ...m }),
|
|
883
883
|
/* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
|
|
884
|
-
|
|
884
|
+
d && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: d }),
|
|
885
885
|
_ ? /* @__PURE__ */ t.jsx(
|
|
886
886
|
ft,
|
|
887
887
|
{
|
|
@@ -890,13 +890,13 @@ const zn = (h) => {
|
|
|
890
890
|
children: /* @__PURE__ */ t.jsx(
|
|
891
891
|
xt,
|
|
892
892
|
{
|
|
893
|
-
items: s.map((
|
|
893
|
+
items: s.map((p) => p.id),
|
|
894
894
|
strategy: _t,
|
|
895
|
-
children: s.map((
|
|
895
|
+
children: s.map((p) => D(p))
|
|
896
896
|
}
|
|
897
897
|
)
|
|
898
898
|
}
|
|
899
|
-
) : s.map((
|
|
899
|
+
) : s.map((p) => D(p)),
|
|
900
900
|
I && /* @__PURE__ */ t.jsx(
|
|
901
901
|
"div",
|
|
902
902
|
{
|
|
@@ -915,7 +915,7 @@ const zn = (h) => {
|
|
|
915
915
|
size: "s",
|
|
916
916
|
disabled: !!(P && P <= s.length),
|
|
917
917
|
onClick: () => {
|
|
918
|
-
const
|
|
918
|
+
const p = [...s];
|
|
919
919
|
let C = null;
|
|
920
920
|
if (y) {
|
|
921
921
|
for (let B = 0; B < y.length; B++)
|
|
@@ -924,7 +924,7 @@ const zn = (h) => {
|
|
|
924
924
|
break;
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
|
-
|
|
927
|
+
c === "select" && y ? p.push({
|
|
928
928
|
name: {
|
|
929
929
|
"en-US": C || y[0]
|
|
930
930
|
},
|
|
@@ -932,21 +932,21 @@ const zn = (h) => {
|
|
|
932
932
|
...b,
|
|
933
933
|
maxSymbols: 100
|
|
934
934
|
// пример значения
|
|
935
|
-
}) :
|
|
935
|
+
}) : c === "input" ? p.push({
|
|
936
936
|
name: {
|
|
937
937
|
"en-US": ""
|
|
938
938
|
},
|
|
939
939
|
id: J(),
|
|
940
940
|
...b,
|
|
941
941
|
maxSymbols: 100
|
|
942
|
-
}) :
|
|
942
|
+
}) : p.push({
|
|
943
943
|
name: {
|
|
944
944
|
"en-US": `Image ${s.length + 1}`
|
|
945
945
|
},
|
|
946
946
|
id: J(),
|
|
947
947
|
...b,
|
|
948
948
|
maxSymbols: 100
|
|
949
|
-
}),
|
|
949
|
+
}), r(p);
|
|
950
950
|
},
|
|
951
951
|
style: {
|
|
952
952
|
width: "fit-content"
|
|
@@ -984,33 +984,33 @@ const zn = (h) => {
|
|
|
984
984
|
addButton: Oe,
|
|
985
985
|
deleteButton: qe
|
|
986
986
|
}, Ae = (h) => {
|
|
987
|
-
const { buttons: a, setButtons: o, deletable: s = !0, addable:
|
|
987
|
+
const { buttons: a, setButtons: o, deletable: s = !0, addable: r = !0, editableLink: e = !0 } = h, { pages: u } = bt(), [d, f] = g.useState(null), [_, M] = g.useState({
|
|
988
988
|
top: 0,
|
|
989
989
|
left: 0
|
|
990
|
-
}), [I,
|
|
991
|
-
|
|
992
|
-
if (
|
|
993
|
-
const m = [...a].map((i) => i.id ===
|
|
990
|
+
}), [I, c] = g.useState(null), l = g.useRef(null);
|
|
991
|
+
g.useEffect(() => {
|
|
992
|
+
if (d) {
|
|
993
|
+
const m = [...a].map((i) => i.id === d.id ? d : i);
|
|
994
994
|
o(m);
|
|
995
995
|
}
|
|
996
|
-
}, [
|
|
997
|
-
if (
|
|
998
|
-
const m =
|
|
996
|
+
}, [d]), g.useEffect(() => {
|
|
997
|
+
if (l.current && I) {
|
|
998
|
+
const m = l.current.getBoundingClientRect().height, i = window.innerHeight;
|
|
999
999
|
let b = I.top;
|
|
1000
1000
|
b + m > i + window.scrollY - 200 && (b = i + window.scrollY - m - 200), b < 0 && (b = 10), M({
|
|
1001
1001
|
top: b,
|
|
1002
1002
|
left: I.left
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
}, [
|
|
1005
|
+
}, [l.current, I]);
|
|
1006
1006
|
const y = (m, i) => {
|
|
1007
1007
|
m.stopPropagation();
|
|
1008
1008
|
const b = m.target.getBoundingClientRect();
|
|
1009
|
-
|
|
1009
|
+
c({
|
|
1010
1010
|
top: b.top + window.scrollY - 70,
|
|
1011
|
-
left: b.left - (
|
|
1012
|
-
}),
|
|
1013
|
-
},
|
|
1011
|
+
left: b.left - (r ? 30 : 65)
|
|
1012
|
+
}), f(i);
|
|
1013
|
+
}, x = (m, i) => {
|
|
1014
1014
|
const b = [...a], P = {
|
|
1015
1015
|
...m,
|
|
1016
1016
|
id: Math.random().toString(36).substr(2, 9)
|
|
@@ -1048,7 +1048,7 @@ const zn = (h) => {
|
|
|
1048
1048
|
width: 20,
|
|
1049
1049
|
height: 20,
|
|
1050
1050
|
onClick: () => {
|
|
1051
|
-
|
|
1051
|
+
x(m, i);
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
) }),
|
|
@@ -1083,17 +1083,17 @@ const zn = (h) => {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
m.id
|
|
1085
1085
|
)),
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
d && /* @__PURE__ */ t.jsx(
|
|
1087
|
+
Et,
|
|
1088
1088
|
{
|
|
1089
|
-
ref:
|
|
1090
|
-
activeButton:
|
|
1091
|
-
setActiveButton:
|
|
1089
|
+
ref: l,
|
|
1090
|
+
activeButton: d,
|
|
1091
|
+
setActiveButton: f,
|
|
1092
1092
|
popupPosition: _,
|
|
1093
1093
|
editableLink: e
|
|
1094
1094
|
}
|
|
1095
1095
|
),
|
|
1096
|
-
|
|
1096
|
+
r && /* @__PURE__ */ t.jsx(
|
|
1097
1097
|
"div",
|
|
1098
1098
|
{
|
|
1099
1099
|
style: {
|
|
@@ -1117,7 +1117,7 @@ const zn = (h) => {
|
|
|
1117
1117
|
"en-US": "Button Name"
|
|
1118
1118
|
},
|
|
1119
1119
|
destination: "Go to Page",
|
|
1120
|
-
page:
|
|
1120
|
+
page: u ? Object.values(u)[0].path : "/",
|
|
1121
1121
|
openInNewTab: !1
|
|
1122
1122
|
}) : m.push({
|
|
1123
1123
|
type: "Primary",
|
|
@@ -1127,7 +1127,7 @@ const zn = (h) => {
|
|
|
1127
1127
|
"en-US": "Create Ticket"
|
|
1128
1128
|
},
|
|
1129
1129
|
destination: "Go to Page",
|
|
1130
|
-
page:
|
|
1130
|
+
page: u ? Object.values(u)[0].path : "/",
|
|
1131
1131
|
openInNewTab: !1
|
|
1132
1132
|
}), o(m);
|
|
1133
1133
|
},
|
|
@@ -1155,10 +1155,10 @@ const zn = (h) => {
|
|
|
1155
1155
|
isActiveButtons: a,
|
|
1156
1156
|
setIsActiveButtons: o,
|
|
1157
1157
|
buttons: s,
|
|
1158
|
-
setButtons:
|
|
1158
|
+
setButtons: r,
|
|
1159
1159
|
editableLink: e = !0,
|
|
1160
|
-
addable:
|
|
1161
|
-
deletable:
|
|
1160
|
+
addable: u = !0,
|
|
1161
|
+
deletable: d = !0
|
|
1162
1162
|
} = h;
|
|
1163
1163
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: vt.buttonsBlock, children: [
|
|
1164
1164
|
/* @__PURE__ */ t.jsxs("div", { className: vt.top, children: [
|
|
@@ -1167,7 +1167,7 @@ const zn = (h) => {
|
|
|
1167
1167
|
lt,
|
|
1168
1168
|
{
|
|
1169
1169
|
current: a,
|
|
1170
|
-
onChange: (
|
|
1170
|
+
onChange: (f) => o(f)
|
|
1171
1171
|
}
|
|
1172
1172
|
)
|
|
1173
1173
|
] }),
|
|
@@ -1175,29 +1175,29 @@ const zn = (h) => {
|
|
|
1175
1175
|
Ae,
|
|
1176
1176
|
{
|
|
1177
1177
|
buttons: s,
|
|
1178
|
-
setButtons:
|
|
1178
|
+
setButtons: r,
|
|
1179
1179
|
editableLink: e,
|
|
1180
|
-
addable:
|
|
1181
|
-
deletable:
|
|
1180
|
+
addable: u,
|
|
1181
|
+
deletable: d
|
|
1182
1182
|
}
|
|
1183
1183
|
)
|
|
1184
1184
|
] }) });
|
|
1185
1185
|
};
|
|
1186
1186
|
function De(h) {
|
|
1187
|
-
const { product: a, children: o } = h, { attributes: s, listeners:
|
|
1187
|
+
const { product: a, children: o } = h, { attributes: s, listeners: r, setNodeRef: e, transform: u, transition: d, isDragging: f } = yt({
|
|
1188
1188
|
id: String(a.listingId)
|
|
1189
1189
|
}), _ = {
|
|
1190
|
-
transform: jt.Transform.toString(
|
|
1191
|
-
transition:
|
|
1190
|
+
transform: jt.Transform.toString(u),
|
|
1191
|
+
transition: d
|
|
1192
1192
|
};
|
|
1193
1193
|
return /* @__PURE__ */ t.jsx(
|
|
1194
1194
|
"div",
|
|
1195
1195
|
{
|
|
1196
1196
|
ref: e,
|
|
1197
1197
|
style: _,
|
|
1198
|
-
className: `${W.product} ${
|
|
1198
|
+
className: `${W.product} ${f ? W.dragging : ""}`,
|
|
1199
1199
|
...s,
|
|
1200
|
-
...
|
|
1200
|
+
...r,
|
|
1201
1201
|
children: o
|
|
1202
1202
|
}
|
|
1203
1203
|
);
|
|
@@ -1207,52 +1207,52 @@ const Vn = (h) => {
|
|
|
1207
1207
|
isActiveItems: a,
|
|
1208
1208
|
setIsActiveItems: o,
|
|
1209
1209
|
items: s,
|
|
1210
|
-
setItems:
|
|
1210
|
+
setItems: r,
|
|
1211
1211
|
other: e,
|
|
1212
|
-
title:
|
|
1213
|
-
subtitle:
|
|
1214
|
-
editable:
|
|
1212
|
+
title: u,
|
|
1213
|
+
subtitle: d,
|
|
1214
|
+
editable: f = !0,
|
|
1215
1215
|
draggable: _ = !1,
|
|
1216
1216
|
withImage: M = !1,
|
|
1217
1217
|
deletable: I = !0,
|
|
1218
|
-
addable:
|
|
1219
|
-
itemsType:
|
|
1218
|
+
addable: c = !0,
|
|
1219
|
+
itemsType: l,
|
|
1220
1220
|
itemsOptions: y,
|
|
1221
|
-
limit:
|
|
1221
|
+
limit: x,
|
|
1222
1222
|
aspectRatio: m,
|
|
1223
1223
|
setAspectRatio: i
|
|
1224
|
-
} = h, [b, P] =
|
|
1224
|
+
} = h, [b, P] = g.useState(
|
|
1225
1225
|
null
|
|
1226
|
-
), [A, E] =
|
|
1226
|
+
), [A, E] = g.useState({
|
|
1227
1227
|
top: 0,
|
|
1228
1228
|
left: 0
|
|
1229
|
-
}), [K, L] =
|
|
1229
|
+
}), [K, L] = g.useState(!1), n = mt(
|
|
1230
1230
|
pt(gt, {
|
|
1231
1231
|
activationConstraint: {
|
|
1232
1232
|
distance: 5
|
|
1233
1233
|
}
|
|
1234
1234
|
})
|
|
1235
1235
|
);
|
|
1236
|
-
|
|
1236
|
+
g.useEffect(() => {
|
|
1237
1237
|
const v = () => {
|
|
1238
1238
|
P(null), L(!1);
|
|
1239
1239
|
};
|
|
1240
1240
|
return document.body.addEventListener("click", v), P(null), L(!1), () => {
|
|
1241
1241
|
P(null), L(!1), document.body.removeEventListener("click", v);
|
|
1242
1242
|
};
|
|
1243
|
-
}, []),
|
|
1243
|
+
}, []), g.useEffect(() => {
|
|
1244
1244
|
if (b) {
|
|
1245
1245
|
const v = [...s].map((D) => D.listingId === b.listingId ? b : D);
|
|
1246
|
-
|
|
1246
|
+
r(v);
|
|
1247
1247
|
}
|
|
1248
1248
|
}, [b]);
|
|
1249
1249
|
const N = (v, D) => {
|
|
1250
1250
|
v.stopPropagation();
|
|
1251
|
-
const
|
|
1252
|
-
let T =
|
|
1251
|
+
const p = v.target.getBoundingClientRect(), C = 100, B = window.innerHeight;
|
|
1252
|
+
let T = p.top + window.scrollY;
|
|
1253
1253
|
T + C > B && (T = B - C - 20), L(!0), E({
|
|
1254
1254
|
top: T - 80,
|
|
1255
|
-
left:
|
|
1255
|
+
left: p.left - 30
|
|
1256
1256
|
}), P(D);
|
|
1257
1257
|
};
|
|
1258
1258
|
function k(v) {
|
|
@@ -1276,12 +1276,12 @@ const Vn = (h) => {
|
|
|
1276
1276
|
);
|
|
1277
1277
|
}
|
|
1278
1278
|
const q = (v) => {
|
|
1279
|
-
const { active: D, over:
|
|
1280
|
-
if (
|
|
1281
|
-
const C = s.findIndex((T) => String(T.listingId) === D.id), B = s.findIndex((T) => String(T.listingId) ===
|
|
1279
|
+
const { active: D, over: p } = v;
|
|
1280
|
+
if (p && D.id !== p.id) {
|
|
1281
|
+
const C = s.findIndex((T) => String(T.listingId) === D.id), B = s.findIndex((T) => String(T.listingId) === p.id);
|
|
1282
1282
|
if (C !== -1 && B !== -1) {
|
|
1283
1283
|
const T = [...s], [tt] = T.splice(C, 1);
|
|
1284
|
-
T.splice(B, 0, tt),
|
|
1284
|
+
T.splice(B, 0, tt), r(T);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}, $ = () => {
|
|
@@ -1289,7 +1289,7 @@ const Vn = (h) => {
|
|
|
1289
1289
|
}, S = (v) => {
|
|
1290
1290
|
const D = y.find((C) => v.listingId === C.id);
|
|
1291
1291
|
if (!D) return null;
|
|
1292
|
-
const
|
|
1292
|
+
const p = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1293
1293
|
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1294
1294
|
j,
|
|
1295
1295
|
{
|
|
@@ -1299,7 +1299,7 @@ const Vn = (h) => {
|
|
|
1299
1299
|
height: 20
|
|
1300
1300
|
}
|
|
1301
1301
|
) }),
|
|
1302
|
-
|
|
1302
|
+
l === "select" && /* @__PURE__ */ t.jsx(
|
|
1303
1303
|
ot,
|
|
1304
1304
|
{
|
|
1305
1305
|
onChange: (C) => {
|
|
@@ -1309,7 +1309,7 @@ const Vn = (h) => {
|
|
|
1309
1309
|
listingId: T.id,
|
|
1310
1310
|
image: T.productData.images.length > 0 ? T.productData.images[0].cfId : ""
|
|
1311
1311
|
}, z = B.map((F) => F.listingId === v.listingId ? tt : F);
|
|
1312
|
-
P(tt),
|
|
1312
|
+
P(tt), r([...z]);
|
|
1313
1313
|
},
|
|
1314
1314
|
value: D.productData.name,
|
|
1315
1315
|
options: [
|
|
@@ -1325,7 +1325,7 @@ const Vn = (h) => {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
),
|
|
1327
1327
|
/* @__PURE__ */ t.jsxs("div", { className: W.buttons, children: [
|
|
1328
|
-
|
|
1328
|
+
f && /* @__PURE__ */ t.jsx("div", { className: W.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1329
1329
|
j,
|
|
1330
1330
|
{
|
|
1331
1331
|
name: "Sliders",
|
|
@@ -1343,7 +1343,7 @@ const Vn = (h) => {
|
|
|
1343
1343
|
width: 20,
|
|
1344
1344
|
height: 20,
|
|
1345
1345
|
fill: "#C12A2A",
|
|
1346
|
-
onClick: () =>
|
|
1346
|
+
onClick: () => r(s.filter((C) => C !== v))
|
|
1347
1347
|
}
|
|
1348
1348
|
) })
|
|
1349
1349
|
] })
|
|
@@ -1352,21 +1352,21 @@ const Vn = (h) => {
|
|
|
1352
1352
|
De,
|
|
1353
1353
|
{
|
|
1354
1354
|
product: v,
|
|
1355
|
-
children:
|
|
1355
|
+
children: p
|
|
1356
1356
|
},
|
|
1357
1357
|
v.listingId
|
|
1358
1358
|
) : /* @__PURE__ */ t.jsx(
|
|
1359
1359
|
"div",
|
|
1360
1360
|
{
|
|
1361
1361
|
className: W.product,
|
|
1362
|
-
children:
|
|
1362
|
+
children: p
|
|
1363
1363
|
},
|
|
1364
1364
|
v.listingId
|
|
1365
1365
|
);
|
|
1366
|
-
}, Z =
|
|
1366
|
+
}, Z = g.useRef(null);
|
|
1367
1367
|
return /* @__PURE__ */ t.jsxs("div", { className: W.productsBlock, children: [
|
|
1368
|
-
(
|
|
1369
|
-
|
|
1368
|
+
(u || a !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: W.top, children: [
|
|
1369
|
+
u && /* @__PURE__ */ t.jsx("h3", { className: W.title, children: u }),
|
|
1370
1370
|
a !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1371
1371
|
lt,
|
|
1372
1372
|
{
|
|
@@ -1376,7 +1376,7 @@ const Vn = (h) => {
|
|
|
1376
1376
|
)
|
|
1377
1377
|
] }),
|
|
1378
1378
|
K && b && /* @__PURE__ */ t.jsx(
|
|
1379
|
-
|
|
1379
|
+
Rt,
|
|
1380
1380
|
{
|
|
1381
1381
|
ref: Z,
|
|
1382
1382
|
activeItem: b,
|
|
@@ -1387,7 +1387,7 @@ const Vn = (h) => {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
),
|
|
1389
1389
|
a && /* @__PURE__ */ t.jsxs("div", { className: W.products, children: [
|
|
1390
|
-
|
|
1390
|
+
d && /* @__PURE__ */ t.jsx("h5", { className: W.subtitle, children: d }),
|
|
1391
1391
|
_ ? /* @__PURE__ */ t.jsx(
|
|
1392
1392
|
ft,
|
|
1393
1393
|
{
|
|
@@ -1404,7 +1404,7 @@ const Vn = (h) => {
|
|
|
1404
1404
|
)
|
|
1405
1405
|
}
|
|
1406
1406
|
) : s.map((v) => S(v)),
|
|
1407
|
-
|
|
1407
|
+
c && /* @__PURE__ */ t.jsx(
|
|
1408
1408
|
"div",
|
|
1409
1409
|
{
|
|
1410
1410
|
style: {
|
|
@@ -1421,16 +1421,16 @@ const Vn = (h) => {
|
|
|
1421
1421
|
onClick: () => {
|
|
1422
1422
|
const v = [...s];
|
|
1423
1423
|
for (let D = 0; D < y.length; D++)
|
|
1424
|
-
if (!s.find((
|
|
1424
|
+
if (!s.find((p) => p.listingId === y[D].id)) {
|
|
1425
1425
|
v.push({
|
|
1426
1426
|
listingId: y[D].id,
|
|
1427
1427
|
image: y[D].productData.images.length > 0 ? y[D].productData.images[0].cfId : ""
|
|
1428
1428
|
});
|
|
1429
1429
|
break;
|
|
1430
1430
|
}
|
|
1431
|
-
|
|
1431
|
+
r(v);
|
|
1432
1432
|
},
|
|
1433
|
-
disabled: s.length === (
|
|
1433
|
+
disabled: s.length === (x || y.length),
|
|
1434
1434
|
style: {
|
|
1435
1435
|
width: "fit-content"
|
|
1436
1436
|
},
|
|
@@ -1489,24 +1489,24 @@ const Vn = (h) => {
|
|
|
1489
1489
|
chargeActive: ss,
|
|
1490
1490
|
title: ns
|
|
1491
1491
|
};
|
|
1492
|
-
var
|
|
1492
|
+
var Ot = /* @__PURE__ */ ((h) => (h.ONE_TIME = "One-Time", h.RECURRING = "Subscribe & Save", h))(Ot || {});
|
|
1493
1493
|
const is = (h) => {
|
|
1494
1494
|
var K, L;
|
|
1495
|
-
const { product: a, setIsOpen: o, isCartEnabled: s = !0 } = h, { variants:
|
|
1495
|
+
const { product: a, setIsOpen: o, isCartEnabled: s = !0 } = h, { variants: r } = a, [e, u] = g.useState(r[0]), [d, f] = g.useState(
|
|
1496
1496
|
e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
|
|
1497
|
-
), { notifications: _, setNotifications: M } = St(), I = Ct(), [
|
|
1498
|
-
|
|
1497
|
+
), { notifications: _, setNotifications: M } = St(), I = Ct(), [c, l] = g.useState(1), { cart: y, reset: x, addProductToCart: m } = ct(), [i, b] = g.useState(!1);
|
|
1498
|
+
g.useEffect(() => {
|
|
1499
1499
|
b(!0);
|
|
1500
1500
|
const n = setTimeout(() => b(!1), 600);
|
|
1501
1501
|
return () => clearTimeout(n);
|
|
1502
|
-
}, [
|
|
1502
|
+
}, [c]);
|
|
1503
1503
|
async function P() {
|
|
1504
1504
|
try {
|
|
1505
1505
|
m({
|
|
1506
1506
|
productId: a.id,
|
|
1507
1507
|
productVariantId: e.id,
|
|
1508
|
-
chargeType:
|
|
1509
|
-
quantity:
|
|
1508
|
+
chargeType: d,
|
|
1509
|
+
quantity: c
|
|
1510
1510
|
}), M([
|
|
1511
1511
|
..._,
|
|
1512
1512
|
{
|
|
@@ -1528,7 +1528,7 @@ const is = (h) => {
|
|
|
1528
1528
|
o == null || o(!1);
|
|
1529
1529
|
}
|
|
1530
1530
|
function A() {
|
|
1531
|
-
|
|
1531
|
+
x(), P(), I("/checkout");
|
|
1532
1532
|
}
|
|
1533
1533
|
function E(n) {
|
|
1534
1534
|
if (n >= 864e5) {
|
|
@@ -1545,27 +1545,27 @@ const is = (h) => {
|
|
|
1545
1545
|
return `${S} ${S === 1 ? "second" : "seconds"}`;
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
return
|
|
1549
|
-
e.quantity && e.quantity.available === 0 ?
|
|
1550
|
-
}, [e.quantity.available]),
|
|
1551
|
-
e.chargeTypes &&
|
|
1552
|
-
e.chargeTypes.includes(
|
|
1548
|
+
return g.useEffect(() => {
|
|
1549
|
+
e.quantity && e.quantity.available === 0 ? l(0) : l(1);
|
|
1550
|
+
}, [e.quantity.available]), g.useEffect(() => {
|
|
1551
|
+
e.chargeTypes && f(
|
|
1552
|
+
e.chargeTypes.includes(d) ? d : e.chargeTypes[0]
|
|
1553
1553
|
);
|
|
1554
1554
|
}, [e.chargeTypes]), /* @__PURE__ */ t.jsxs("div", { className: O.options, children: [
|
|
1555
1555
|
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: O.chargeTypes, children: e.chargeTypes.map((n) => /* @__PURE__ */ t.jsx(
|
|
1556
1556
|
"div",
|
|
1557
1557
|
{
|
|
1558
1558
|
className: U(O.charge, {
|
|
1559
|
-
[O.chargeActive]:
|
|
1559
|
+
[O.chargeActive]: d === n
|
|
1560
1560
|
}),
|
|
1561
|
-
onClick: () =>
|
|
1562
|
-
children:
|
|
1561
|
+
onClick: () => f(n),
|
|
1562
|
+
children: Ot[n]
|
|
1563
1563
|
},
|
|
1564
1564
|
n
|
|
1565
1565
|
)) }),
|
|
1566
|
-
/* @__PURE__ */ t.jsx("div", { className: O.variants, children:
|
|
1566
|
+
/* @__PURE__ */ t.jsx("div", { className: O.variants, children: r.filter((n) => {
|
|
1567
1567
|
var N;
|
|
1568
|
-
return (N = n.chargeTypes) == null ? void 0 : N.includes(
|
|
1568
|
+
return (N = n.chargeTypes) == null ? void 0 : N.includes(d);
|
|
1569
1569
|
}).map((n) => {
|
|
1570
1570
|
var N, k;
|
|
1571
1571
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -1575,7 +1575,7 @@ const is = (h) => {
|
|
|
1575
1575
|
[O.activeVariant]: e.id === n.id
|
|
1576
1576
|
}),
|
|
1577
1577
|
onClick: () => {
|
|
1578
|
-
|
|
1578
|
+
u(n), l(1);
|
|
1579
1579
|
},
|
|
1580
1580
|
children: [
|
|
1581
1581
|
/* @__PURE__ */ t.jsxs("div", { className: O.variantInfo, children: [
|
|
@@ -1591,14 +1591,14 @@ const is = (h) => {
|
|
|
1591
1591
|
),
|
|
1592
1592
|
/* @__PURE__ */ t.jsxs("span", { id: "md", children: [
|
|
1593
1593
|
Q({
|
|
1594
|
-
amount:
|
|
1595
|
-
currency:
|
|
1594
|
+
amount: d === "ONE_TIME" ? n.price.amount : n.subscriptionSettings ? n.subscriptionSettings.price.amount : 0,
|
|
1595
|
+
currency: d === "ONE_TIME" ? n.price.currency : n.subscriptionSettings ? n.subscriptionSettings.price.currency : "USD"
|
|
1596
1596
|
}),
|
|
1597
1597
|
" ",
|
|
1598
|
-
|
|
1598
|
+
d === "RECURRING" && n.subscriptionSettings && ` / ${Lt(n.subscriptionSettings.recurringIntervalDays || 0)}`
|
|
1599
1599
|
] })
|
|
1600
1600
|
] }),
|
|
1601
|
-
/* @__PURE__ */ t.jsx("div", { id: "md", children:
|
|
1601
|
+
/* @__PURE__ */ t.jsx("div", { id: "md", children: d === "ONE_TIME" && /* @__PURE__ */ t.jsxs(
|
|
1602
1602
|
"span",
|
|
1603
1603
|
{
|
|
1604
1604
|
className: O.stock,
|
|
@@ -1615,7 +1615,7 @@ const is = (h) => {
|
|
|
1615
1615
|
n.id
|
|
1616
1616
|
);
|
|
1617
1617
|
}) }),
|
|
1618
|
-
|
|
1618
|
+
d === "ONE_TIME" && /* @__PURE__ */ t.jsxs(
|
|
1619
1619
|
"div",
|
|
1620
1620
|
{
|
|
1621
1621
|
className: O.quantity,
|
|
@@ -1626,25 +1626,25 @@ const is = (h) => {
|
|
|
1626
1626
|
{
|
|
1627
1627
|
type: "Secondary",
|
|
1628
1628
|
onClick: () => {
|
|
1629
|
-
|
|
1629
|
+
c > 1 ? l((n) => n - 1) : l(1);
|
|
1630
1630
|
},
|
|
1631
1631
|
className: O.button,
|
|
1632
|
-
disabled: e.quantity.available && e.quantity.restrictions &&
|
|
1632
|
+
disabled: e.quantity.available && e.quantity.restrictions && c <= e.quantity.restrictions.min || e.quantity.available === 0,
|
|
1633
1633
|
children: /* @__PURE__ */ t.jsx(j, { name: "Minus" })
|
|
1634
1634
|
}
|
|
1635
1635
|
),
|
|
1636
1636
|
/* @__PURE__ */ t.jsx(
|
|
1637
|
-
|
|
1637
|
+
Ut,
|
|
1638
1638
|
{
|
|
1639
1639
|
type: "number",
|
|
1640
|
-
value: String(
|
|
1640
|
+
value: String(c),
|
|
1641
1641
|
onChange: (n) => {
|
|
1642
|
-
e.quantity.available && Number(n) > e.quantity.available ?
|
|
1642
|
+
e.quantity.available && Number(n) > e.quantity.available ? l(e.quantity.available) : l(Number(n));
|
|
1643
1643
|
},
|
|
1644
1644
|
max: ((K = e.quantity.restrictions) == null ? void 0 : K.max) || e.quantity.available || Number.POSITIVE_INFINITY,
|
|
1645
1645
|
min: ((L = e.quantity.restrictions) == null ? void 0 : L.min) || 0,
|
|
1646
1646
|
centered: !0,
|
|
1647
|
-
disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 &&
|
|
1647
|
+
disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 && c >= e.quantity.restrictions.max
|
|
1648
1648
|
}
|
|
1649
1649
|
),
|
|
1650
1650
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1652,10 +1652,10 @@ const is = (h) => {
|
|
|
1652
1652
|
{
|
|
1653
1653
|
type: "Secondary",
|
|
1654
1654
|
onClick: () => {
|
|
1655
|
-
|
|
1655
|
+
l((n) => n + 1);
|
|
1656
1656
|
},
|
|
1657
1657
|
className: O.button,
|
|
1658
|
-
disabled: !!(e.quantity.available && e.quantity.restrictions &&
|
|
1658
|
+
disabled: !!(e.quantity.available && e.quantity.restrictions && c >= e.quantity.restrictions.max || e.quantity.available === 0 || e.quantity.available && c >= e.quantity.available),
|
|
1659
1659
|
children: /* @__PURE__ */ t.jsx(j, { name: "Plus" })
|
|
1660
1660
|
}
|
|
1661
1661
|
)
|
|
@@ -1680,14 +1680,14 @@ const is = (h) => {
|
|
|
1680
1680
|
] }),
|
|
1681
1681
|
/* @__PURE__ */ t.jsxs("div", { className: O.info, children: [
|
|
1682
1682
|
/* @__PURE__ */ t.jsx("span", { id: "md", children: "Price" }),
|
|
1683
|
-
/* @__PURE__ */ t.jsx("div", { className: O.infoRight, children:
|
|
1683
|
+
/* @__PURE__ */ t.jsx("div", { className: O.infoRight, children: d === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs(
|
|
1684
1684
|
"div",
|
|
1685
1685
|
{
|
|
1686
1686
|
className: O.price,
|
|
1687
1687
|
id: "md",
|
|
1688
1688
|
children: [
|
|
1689
1689
|
/* @__PURE__ */ t.jsx("span", { className: U(O.newPrice, { [O.animate]: i }), children: Q({
|
|
1690
|
-
amount: e.price.amount *
|
|
1690
|
+
amount: e.price.amount * c,
|
|
1691
1691
|
currency: e.price.currency
|
|
1692
1692
|
}) }),
|
|
1693
1693
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1696,7 +1696,7 @@ const is = (h) => {
|
|
|
1696
1696
|
className: O.oldPrice,
|
|
1697
1697
|
id: "md",
|
|
1698
1698
|
children: Q({
|
|
1699
|
-
amount: e.compareAtPrice.amount *
|
|
1699
|
+
amount: e.compareAtPrice.amount * c,
|
|
1700
1700
|
currency: e.compareAtPrice.currency
|
|
1701
1701
|
})
|
|
1702
1702
|
}
|
|
@@ -1709,7 +1709,7 @@ const is = (h) => {
|
|
|
1709
1709
|
className: U(O.newPrice, { [O.animate]: i }),
|
|
1710
1710
|
id: "md",
|
|
1711
1711
|
children: Q({
|
|
1712
|
-
amount: e.price.amount *
|
|
1712
|
+
amount: e.price.amount * c,
|
|
1713
1713
|
currency: e.price.currency
|
|
1714
1714
|
})
|
|
1715
1715
|
}
|
|
@@ -1725,7 +1725,7 @@ const is = (h) => {
|
|
|
1725
1725
|
className: U(O.newPrice, { [O.animate]: i }),
|
|
1726
1726
|
id: "md",
|
|
1727
1727
|
children: Q({
|
|
1728
|
-
amount: e.subscriptionSettings.price.amount *
|
|
1728
|
+
amount: e.subscriptionSettings.price.amount * c,
|
|
1729
1729
|
currency: e.subscriptionSettings.price.currency
|
|
1730
1730
|
})
|
|
1731
1731
|
}
|
|
@@ -1736,7 +1736,7 @@ const is = (h) => {
|
|
|
1736
1736
|
className: O.oldPrice,
|
|
1737
1737
|
id: "md",
|
|
1738
1738
|
children: Q({
|
|
1739
|
-
amount: e.subscriptionSettings.compareAtPrice.amount *
|
|
1739
|
+
amount: e.subscriptionSettings.compareAtPrice.amount * c,
|
|
1740
1740
|
currency: e.subscriptionSettings.compareAtPrice.currency
|
|
1741
1741
|
})
|
|
1742
1742
|
}
|
|
@@ -1749,7 +1749,7 @@ const is = (h) => {
|
|
|
1749
1749
|
className: U(O.newPrice, { [O.animate]: i }),
|
|
1750
1750
|
id: "md",
|
|
1751
1751
|
children: Q({
|
|
1752
|
-
amount: e.subscriptionSettings.price.amount *
|
|
1752
|
+
amount: e.subscriptionSettings.price.amount * c,
|
|
1753
1753
|
currency: e.subscriptionSettings.price.currency
|
|
1754
1754
|
})
|
|
1755
1755
|
}
|
|
@@ -1762,16 +1762,16 @@ const is = (h) => {
|
|
|
1762
1762
|
{
|
|
1763
1763
|
type: "Primary",
|
|
1764
1764
|
onClick: () => A(),
|
|
1765
|
-
disabled: e.quantity && e.quantity.available === 0 ||
|
|
1766
|
-
children:
|
|
1765
|
+
disabled: e.quantity && e.quantity.available === 0 || c === 0,
|
|
1766
|
+
children: d === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
|
|
1767
1767
|
}
|
|
1768
1768
|
),
|
|
1769
|
-
|
|
1769
|
+
d === "ONE_TIME" && s && /* @__PURE__ */ t.jsx(
|
|
1770
1770
|
R,
|
|
1771
1771
|
{
|
|
1772
1772
|
type: "Secondary",
|
|
1773
1773
|
onClick: () => P(),
|
|
1774
|
-
disabled: e.quantity && e.quantity.available === 0 ||
|
|
1774
|
+
disabled: e.quantity && e.quantity.available === 0 || c === 0,
|
|
1775
1775
|
children: y.parts.some(
|
|
1776
1776
|
(n) => n.productId === a.id && n.productVariantId === e.id
|
|
1777
1777
|
) ? "Add More" : "Add to Cart"
|
|
@@ -1819,28 +1819,28 @@ const is = (h) => {
|
|
|
1819
1819
|
const { shopping: a, signUp: o, isShowUserInfo: s = !0 } = h;
|
|
1820
1820
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: (a || s) && /* @__PURE__ */ t.jsxs("div", { className: w.buttons, children: [
|
|
1821
1821
|
a && /* @__PURE__ */ t.jsx(Rs, {}),
|
|
1822
|
-
s && /* @__PURE__ */ t.jsx(
|
|
1822
|
+
s && /* @__PURE__ */ t.jsx(qt, { signUp: o })
|
|
1823
1823
|
] }) });
|
|
1824
1824
|
}, Rs = () => {
|
|
1825
|
-
const [h, a] =
|
|
1826
|
-
|
|
1825
|
+
const [h, a] = g.useState(!1), [o, s] = g.useState([]), [r, e] = g.useState(!1), { cart: u, products: d } = ct();
|
|
1826
|
+
g.useEffect(() => {
|
|
1827
1827
|
(async () => {
|
|
1828
|
-
const
|
|
1829
|
-
const m =
|
|
1828
|
+
const c = u.parts.map((x) => String(x.productId)), l = d.filter((x) => c.includes(String(x.id))) || [], y = u.parts.map((x) => {
|
|
1829
|
+
const m = l.find((i) => i.id === x.productId);
|
|
1830
1830
|
return m ? {
|
|
1831
1831
|
...m,
|
|
1832
|
-
activeVariantId:
|
|
1833
|
-
quantity:
|
|
1834
|
-
chargeType:
|
|
1832
|
+
activeVariantId: x.productVariantId,
|
|
1833
|
+
quantity: x.quantity,
|
|
1834
|
+
chargeType: x.chargeType
|
|
1835
1835
|
} : null;
|
|
1836
1836
|
}).filter(Boolean);
|
|
1837
1837
|
s(y);
|
|
1838
1838
|
})();
|
|
1839
|
-
}, [
|
|
1840
|
-
function
|
|
1839
|
+
}, [u.parts, d]);
|
|
1840
|
+
function f(I) {
|
|
1841
1841
|
return !I || !(I != null && I.variants) ? !1 : I.chargeType === "RECURRING";
|
|
1842
1842
|
}
|
|
1843
|
-
const _ =
|
|
1843
|
+
const _ = u.parts.length > 0 && o.length > 0 && !f(o[0]);
|
|
1844
1844
|
function M() {
|
|
1845
1845
|
e(!1), setTimeout(() => {
|
|
1846
1846
|
a(!1);
|
|
@@ -1865,7 +1865,7 @@ const is = (h) => {
|
|
|
1865
1865
|
name: "Handbag"
|
|
1866
1866
|
}
|
|
1867
1867
|
),
|
|
1868
|
-
_ && /* @__PURE__ */ t.jsx("div", { className: w.shoppingCount, children:
|
|
1868
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: w.shoppingCount, children: u.parts.length })
|
|
1869
1869
|
]
|
|
1870
1870
|
}
|
|
1871
1871
|
),
|
|
@@ -1879,7 +1879,7 @@ const is = (h) => {
|
|
|
1879
1879
|
{
|
|
1880
1880
|
activeProducts: o,
|
|
1881
1881
|
isCartNotEmpty: _,
|
|
1882
|
-
isOpen:
|
|
1882
|
+
isOpen: r,
|
|
1883
1883
|
close: M
|
|
1884
1884
|
}
|
|
1885
1885
|
)
|
|
@@ -1887,21 +1887,21 @@ const is = (h) => {
|
|
|
1887
1887
|
)
|
|
1888
1888
|
] });
|
|
1889
1889
|
}, Ls = (h) => {
|
|
1890
|
-
var
|
|
1891
|
-
const { activeProducts: a, isCartNotEmpty: o, isOpen: s, close:
|
|
1890
|
+
var x, m;
|
|
1891
|
+
const { activeProducts: a, isCartNotEmpty: o, isOpen: s, close: r } = h, { cart: e, reset: u, getTotalAndDiscount: d, updateQuantityOfProduct: f, removeProduct: _ } = ct(), M = Ct();
|
|
1892
1892
|
function I(i, b) {
|
|
1893
1893
|
M(i, { replace: b });
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
i.quantity &&
|
|
1895
|
+
function c(i) {
|
|
1896
|
+
i.quantity && f({
|
|
1897
1897
|
productId: i.id,
|
|
1898
1898
|
productVariantId: i.activeVariantId,
|
|
1899
1899
|
quantity: i.quantity + 1,
|
|
1900
1900
|
chargeType: i.chargeType
|
|
1901
1901
|
});
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1904
|
-
i.quantity &&
|
|
1903
|
+
function l(i) {
|
|
1904
|
+
i.quantity && f({
|
|
1905
1905
|
productId: i.id,
|
|
1906
1906
|
productVariantId: i.activeVariantId,
|
|
1907
1907
|
quantity: i.quantity - 1,
|
|
@@ -1951,7 +1951,7 @@ const is = (h) => {
|
|
|
1951
1951
|
[w.activeClear]: o
|
|
1952
1952
|
}),
|
|
1953
1953
|
disabled: !o,
|
|
1954
|
-
onClick:
|
|
1954
|
+
onClick: u,
|
|
1955
1955
|
id: "md",
|
|
1956
1956
|
children: "Clear all"
|
|
1957
1957
|
}
|
|
@@ -1960,7 +1960,7 @@ const is = (h) => {
|
|
|
1960
1960
|
j,
|
|
1961
1961
|
{
|
|
1962
1962
|
name: "X",
|
|
1963
|
-
onClick:
|
|
1963
|
+
onClick: r,
|
|
1964
1964
|
hoverable: !0,
|
|
1965
1965
|
width: 24,
|
|
1966
1966
|
height: 24,
|
|
@@ -2024,7 +2024,7 @@ const is = (h) => {
|
|
|
2024
2024
|
{
|
|
2025
2025
|
type: "Secondary",
|
|
2026
2026
|
onClick: () => {
|
|
2027
|
-
i.quantity !== 1 &&
|
|
2027
|
+
i.quantity !== 1 && l(i);
|
|
2028
2028
|
},
|
|
2029
2029
|
className: w.productButton,
|
|
2030
2030
|
disabled: i.quantity === 1,
|
|
@@ -2050,7 +2050,7 @@ const is = (h) => {
|
|
|
2050
2050
|
Number(A.target.value),
|
|
2051
2051
|
i.variants.find((K) => K.id === i.activeVariantId).quantity.available || 1 / 0
|
|
2052
2052
|
);
|
|
2053
|
-
E < 1 ||
|
|
2053
|
+
E < 1 || f({
|
|
2054
2054
|
productId: i.id,
|
|
2055
2055
|
productVariantId: i.activeVariantId,
|
|
2056
2056
|
quantity: E,
|
|
@@ -2065,7 +2065,7 @@ const is = (h) => {
|
|
|
2065
2065
|
R,
|
|
2066
2066
|
{
|
|
2067
2067
|
type: "Secondary",
|
|
2068
|
-
onClick: () =>
|
|
2068
|
+
onClick: () => c(i),
|
|
2069
2069
|
className: w.productButton,
|
|
2070
2070
|
disabled: i.quantity === i.variants.find((A) => A.id === i.activeVariantId).quantity.available,
|
|
2071
2071
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -2111,8 +2111,8 @@ const is = (h) => {
|
|
|
2111
2111
|
)
|
|
2112
2112
|
] }),
|
|
2113
2113
|
/* @__PURE__ */ t.jsx("div", { className: w.total, children: Q({
|
|
2114
|
-
amount:
|
|
2115
|
-
currency: e.parts.length > 0 && ((m = (
|
|
2114
|
+
amount: d().total,
|
|
2115
|
+
currency: e.parts.length > 0 && ((m = (x = a.find((i) => i.id === e.parts[0].productId)) == null ? void 0 : x.variants.find((i) => i.id === e.parts[0].productVariantId)) == null ? void 0 : m.price.currency) || "USD"
|
|
2116
2116
|
}) })
|
|
2117
2117
|
] }),
|
|
2118
2118
|
/* @__PURE__ */ t.jsx(R, { onClick: () => I("/checkout", !1), children: "Checkout" })
|
|
@@ -2143,17 +2143,17 @@ const is = (h) => {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
)
|
|
2145
2145
|
] })
|
|
2146
|
-
] }),
|
|
2147
|
-
const { token: o } =
|
|
2148
|
-
|
|
2146
|
+
] }), qt = ({ signUp: h, close: a }) => {
|
|
2147
|
+
const { token: o } = Ht(), s = Ct(), [r, e] = g.useState("test-email@gmail.com");
|
|
2148
|
+
g.useEffect(() => {
|
|
2149
2149
|
o && (async () => {
|
|
2150
2150
|
if (!o) return;
|
|
2151
|
-
const
|
|
2152
|
-
e(
|
|
2151
|
+
const f = zt(o);
|
|
2152
|
+
e(f.email);
|
|
2153
2153
|
})();
|
|
2154
2154
|
}, [o]);
|
|
2155
|
-
function
|
|
2156
|
-
window.location.pathname.includes("/admin/builder") || s(
|
|
2155
|
+
function u(d) {
|
|
2156
|
+
window.location.pathname.includes("/admin/builder") || s(d);
|
|
2157
2157
|
}
|
|
2158
2158
|
return o ? /* @__PURE__ */ t.jsx(
|
|
2159
2159
|
R,
|
|
@@ -2161,16 +2161,16 @@ const is = (h) => {
|
|
|
2161
2161
|
type: "Secondary",
|
|
2162
2162
|
className: w.userInfo,
|
|
2163
2163
|
onClick: () => {
|
|
2164
|
-
|
|
2164
|
+
u("/customer-dash"), a == null || a();
|
|
2165
2165
|
},
|
|
2166
|
-
children: /* @__PURE__ */ t.jsx("div", { children:
|
|
2166
|
+
children: /* @__PURE__ */ t.jsx("div", { children: r || "test-email@gmail.com" })
|
|
2167
2167
|
}
|
|
2168
2168
|
) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2169
2169
|
/* @__PURE__ */ t.jsx(
|
|
2170
2170
|
R,
|
|
2171
2171
|
{
|
|
2172
2172
|
onClick: () => {
|
|
2173
|
-
|
|
2173
|
+
u("/customer-dash"), a == null || a();
|
|
2174
2174
|
},
|
|
2175
2175
|
type: "Secondary",
|
|
2176
2176
|
style: {
|
|
@@ -2183,7 +2183,7 @@ const is = (h) => {
|
|
|
2183
2183
|
R,
|
|
2184
2184
|
{
|
|
2185
2185
|
onClick: () => {
|
|
2186
|
-
|
|
2186
|
+
u("/customer-dash"), a == null || a();
|
|
2187
2187
|
},
|
|
2188
2188
|
type: "Primary",
|
|
2189
2189
|
style: {
|
|
@@ -2200,16 +2200,16 @@ const is = (h) => {
|
|
|
2200
2200
|
signUp: o,
|
|
2201
2201
|
pages: s
|
|
2202
2202
|
}) => {
|
|
2203
|
-
const { setIsOpen:
|
|
2204
|
-
|
|
2205
|
-
a(!1),
|
|
2203
|
+
const { setIsOpen: r } = rt(), e = () => {
|
|
2204
|
+
r(!1), setTimeout(() => {
|
|
2205
|
+
a(!1), r(!0);
|
|
2206
2206
|
}, 300);
|
|
2207
2207
|
};
|
|
2208
2208
|
return /* @__PURE__ */ t.jsxs(
|
|
2209
2209
|
"div",
|
|
2210
2210
|
{
|
|
2211
2211
|
className: w.pagesMobileModal,
|
|
2212
|
-
onClick: (
|
|
2212
|
+
onClick: (u) => u.stopPropagation(),
|
|
2213
2213
|
children: [
|
|
2214
2214
|
/* @__PURE__ */ t.jsxs("div", { className: w.pagesMobileModalHeader, children: [
|
|
2215
2215
|
/* @__PURE__ */ t.jsx("div", { children: h }),
|
|
@@ -2222,7 +2222,7 @@ const is = (h) => {
|
|
|
2222
2222
|
}
|
|
2223
2223
|
)
|
|
2224
2224
|
] }),
|
|
2225
|
-
/* @__PURE__ */ t.jsx("div", { className: w.pagesMobileModalContent, children: s.length > 0 && s.map((
|
|
2225
|
+
/* @__PURE__ */ t.jsx("div", { className: w.pagesMobileModalContent, children: s.length > 0 && s.map((u) => /* @__PURE__ */ t.jsx(
|
|
2226
2226
|
"div",
|
|
2227
2227
|
{
|
|
2228
2228
|
className: w.pageLink,
|
|
@@ -2230,15 +2230,15 @@ const is = (h) => {
|
|
|
2230
2230
|
children: /* @__PURE__ */ t.jsx(
|
|
2231
2231
|
Mt,
|
|
2232
2232
|
{
|
|
2233
|
-
path:
|
|
2234
|
-
children:
|
|
2233
|
+
path: u.path,
|
|
2234
|
+
children: u.name["en-US"]
|
|
2235
2235
|
},
|
|
2236
|
-
|
|
2236
|
+
u.id
|
|
2237
2237
|
)
|
|
2238
2238
|
}
|
|
2239
2239
|
)) }),
|
|
2240
2240
|
/* @__PURE__ */ t.jsx("div", { className: w.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
|
|
2241
|
-
|
|
2241
|
+
qt,
|
|
2242
2242
|
{
|
|
2243
2243
|
signUp: o,
|
|
2244
2244
|
close: e
|
|
@@ -2248,19 +2248,19 @@ const is = (h) => {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
);
|
|
2250
2250
|
}, Gn = ({ logo: h, signUp: a, pages: o }) => {
|
|
2251
|
-
const [s,
|
|
2251
|
+
const [s, r] = g.useState(!1);
|
|
2252
2252
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2253
|
-
/* @__PURE__ */ t.jsx(zs, { setIsOpenModal:
|
|
2253
|
+
/* @__PURE__ */ t.jsx(zs, { setIsOpenModal: r }),
|
|
2254
2254
|
s && /* @__PURE__ */ t.jsx(
|
|
2255
2255
|
ut,
|
|
2256
2256
|
{
|
|
2257
|
-
close: () =>
|
|
2257
|
+
close: () => r(!1),
|
|
2258
2258
|
hasPadding: !1,
|
|
2259
2259
|
children: /* @__PURE__ */ t.jsx(
|
|
2260
2260
|
Hs,
|
|
2261
2261
|
{
|
|
2262
2262
|
logo: h,
|
|
2263
|
-
setIsOpen:
|
|
2263
|
+
setIsOpen: r,
|
|
2264
2264
|
signUp: a,
|
|
2265
2265
|
pages: o
|
|
2266
2266
|
}
|
|
@@ -2302,8 +2302,8 @@ const is = (h) => {
|
|
|
2302
2302
|
R,
|
|
2303
2303
|
{
|
|
2304
2304
|
className: nt.share,
|
|
2305
|
-
onClick: (
|
|
2306
|
-
|
|
2305
|
+
onClick: (r) => {
|
|
2306
|
+
r.stopPropagation(), s();
|
|
2307
2307
|
},
|
|
2308
2308
|
type: "Secondary",
|
|
2309
2309
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -2319,8 +2319,8 @@ const is = (h) => {
|
|
|
2319
2319
|
a && /* @__PURE__ */ t.jsx(ut, { close: o, children: /* @__PURE__ */ t.jsx(Ks, { title: h }) })
|
|
2320
2320
|
] });
|
|
2321
2321
|
}, Ks = ({ title: h = "Copy Product Link" }) => {
|
|
2322
|
-
const { setIsOpenModal: a } = Bt(), { notifications: o, setNotifications: s } = St(), { setIsOpen:
|
|
2323
|
-
function
|
|
2322
|
+
const { setIsOpenModal: a } = Bt(), { notifications: o, setNotifications: s } = St(), { setIsOpen: r } = rt(), e = window.location.href;
|
|
2323
|
+
function u() {
|
|
2324
2324
|
navigator.clipboard.writeText(e), s([
|
|
2325
2325
|
...o,
|
|
2326
2326
|
{
|
|
@@ -2330,12 +2330,12 @@ const is = (h) => {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
]);
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2334
|
-
|
|
2335
|
-
a(!1),
|
|
2333
|
+
function d() {
|
|
2334
|
+
r(!1), setTimeout(() => {
|
|
2335
|
+
a(!1), r(!0);
|
|
2336
2336
|
}, 300);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function f(_, M) {
|
|
2339
2339
|
return _.length > M ? _.slice(0, M) + "..." : _;
|
|
2340
2340
|
}
|
|
2341
2341
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -2358,7 +2358,7 @@ const is = (h) => {
|
|
|
2358
2358
|
{
|
|
2359
2359
|
name: "X",
|
|
2360
2360
|
fill: "#757575",
|
|
2361
|
-
onClick:
|
|
2361
|
+
onClick: d,
|
|
2362
2362
|
hoverable: !0
|
|
2363
2363
|
}
|
|
2364
2364
|
)
|
|
@@ -2368,7 +2368,7 @@ const is = (h) => {
|
|
|
2368
2368
|
R,
|
|
2369
2369
|
{
|
|
2370
2370
|
type: "Secondary",
|
|
2371
|
-
onClick:
|
|
2371
|
+
onClick: u,
|
|
2372
2372
|
style: {
|
|
2373
2373
|
flex: 1
|
|
2374
2374
|
},
|
|
@@ -2378,7 +2378,7 @@ const is = (h) => {
|
|
|
2378
2378
|
{
|
|
2379
2379
|
className: nt.copyText,
|
|
2380
2380
|
id: "md",
|
|
2381
|
-
children:
|
|
2381
|
+
children: f(e, 100)
|
|
2382
2382
|
}
|
|
2383
2383
|
),
|
|
2384
2384
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2386,7 +2386,7 @@ const is = (h) => {
|
|
|
2386
2386
|
{
|
|
2387
2387
|
className: nt.copyTextMobile,
|
|
2388
2388
|
id: "md",
|
|
2389
|
-
children:
|
|
2389
|
+
children: f(e, 40)
|
|
2390
2390
|
}
|
|
2391
2391
|
),
|
|
2392
2392
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2394,7 +2394,7 @@ const is = (h) => {
|
|
|
2394
2394
|
{
|
|
2395
2395
|
className: nt.copyTextMiniMobile,
|
|
2396
2396
|
id: "md",
|
|
2397
|
-
children:
|
|
2397
|
+
children: f(e, 20)
|
|
2398
2398
|
}
|
|
2399
2399
|
)
|
|
2400
2400
|
]
|
|
@@ -2404,7 +2404,7 @@ const is = (h) => {
|
|
|
2404
2404
|
R,
|
|
2405
2405
|
{
|
|
2406
2406
|
type: "Secondary",
|
|
2407
|
-
onClick:
|
|
2407
|
+
onClick: u,
|
|
2408
2408
|
children: o.find(
|
|
2409
2409
|
(_) => _.message === "Link copied to clipboard"
|
|
2410
2410
|
) ? /* @__PURE__ */ t.jsx(j, { name: "Check" }) : /* @__PURE__ */ t.jsx(j, { name: "Copy" })
|
|
@@ -2423,17 +2423,17 @@ const is = (h) => {
|
|
|
2423
2423
|
contentOpen: an,
|
|
2424
2424
|
contentText: on
|
|
2425
2425
|
}, Xn = ({ title: h, content: a, defaultOpen: o = !1 }) => {
|
|
2426
|
-
const [s,
|
|
2427
|
-
|
|
2426
|
+
const [s, r] = g.useState(o), [e, u] = g.useState(0), d = g.useRef(null), f = () => {
|
|
2427
|
+
r(!s);
|
|
2428
2428
|
};
|
|
2429
|
-
return
|
|
2430
|
-
|
|
2429
|
+
return g.useEffect(() => {
|
|
2430
|
+
d.current && u(s ? d.current.scrollHeight : 0);
|
|
2431
2431
|
}, [s]), /* @__PURE__ */ t.jsxs("div", { className: it.accordion, children: [
|
|
2432
2432
|
/* @__PURE__ */ t.jsxs(
|
|
2433
2433
|
"div",
|
|
2434
2434
|
{
|
|
2435
2435
|
className: it.header,
|
|
2436
|
-
onClick:
|
|
2436
|
+
onClick: f,
|
|
2437
2437
|
children: [
|
|
2438
2438
|
/* @__PURE__ */ t.jsx("h5", { id: "h5", children: h }),
|
|
2439
2439
|
/* @__PURE__ */ t.jsx("div", { className: U(it.icon, { [it.open]: s }), children: /* @__PURE__ */ t.jsx(j, { name: "CaretDown" }) })
|
|
@@ -2445,7 +2445,7 @@ const is = (h) => {
|
|
|
2445
2445
|
{
|
|
2446
2446
|
id: "md",
|
|
2447
2447
|
className: it.contentText,
|
|
2448
|
-
ref:
|
|
2448
|
+
ref: d,
|
|
2449
2449
|
style: { height: `${e}px`, marginTop: `${e > 0 ? "20px" : "0px"}` },
|
|
2450
2450
|
children: a
|
|
2451
2451
|
}
|
|
@@ -2456,24 +2456,24 @@ const is = (h) => {
|
|
|
2456
2456
|
cartDisabled: rn
|
|
2457
2457
|
}, Qn = (h) => {
|
|
2458
2458
|
var M, I;
|
|
2459
|
-
const { setIsOpen: a, setModalType: o, productId: s, isCartEnabled:
|
|
2460
|
-
if (!
|
|
2459
|
+
const { setIsOpen: a, setModalType: o, productId: s, isCartEnabled: r = !0 } = h, { cart: e } = ct(), { pageContext: u } = bt(), d = (M = u == null ? void 0 : u.listings) == null ? void 0 : M.find((c) => c.id === s);
|
|
2460
|
+
if (!d)
|
|
2461
2461
|
return null;
|
|
2462
|
-
const
|
|
2463
|
-
(
|
|
2462
|
+
const f = (I = u == null ? void 0 : u.products) == null ? void 0 : I.find(
|
|
2463
|
+
(c) => c.uniquePath === d.productData.uniquePath
|
|
2464
2464
|
);
|
|
2465
|
-
if (!
|
|
2465
|
+
if (!f)
|
|
2466
2466
|
return null;
|
|
2467
|
-
const _ = e.parts.find((
|
|
2467
|
+
const _ = e.parts.find((c) => c.productId === f.id);
|
|
2468
2468
|
return /* @__PURE__ */ t.jsxs(
|
|
2469
2469
|
"div",
|
|
2470
2470
|
{
|
|
2471
2471
|
className: U(Pt.buttonsBlock, {
|
|
2472
|
-
[Pt.cartDisabled]: !
|
|
2472
|
+
[Pt.cartDisabled]: !r
|
|
2473
2473
|
}),
|
|
2474
|
-
onClick: (
|
|
2474
|
+
onClick: (c) => c.stopPropagation(),
|
|
2475
2475
|
children: [
|
|
2476
|
-
|
|
2476
|
+
r && /* @__PURE__ */ t.jsx(
|
|
2477
2477
|
R,
|
|
2478
2478
|
{
|
|
2479
2479
|
type: "Secondary",
|
|
@@ -2507,10 +2507,10 @@ const is = (h) => {
|
|
|
2507
2507
|
logo: dn,
|
|
2508
2508
|
info: un
|
|
2509
2509
|
}, Jn = ({ date: h }) => {
|
|
2510
|
-
const { general: a } =
|
|
2510
|
+
const { general: a } = Ft();
|
|
2511
2511
|
if (!a) return /* @__PURE__ */ t.jsx(t.Fragment, {});
|
|
2512
2512
|
function o(s) {
|
|
2513
|
-
const
|
|
2513
|
+
const r = new Date(s), e = {
|
|
2514
2514
|
month: "short",
|
|
2515
2515
|
day: "2-digit",
|
|
2516
2516
|
year: "numeric",
|
|
@@ -2518,7 +2518,7 @@ const is = (h) => {
|
|
|
2518
2518
|
minute: "2-digit",
|
|
2519
2519
|
hour12: !1
|
|
2520
2520
|
};
|
|
2521
|
-
return
|
|
2521
|
+
return r.toLocaleDateString("en-US", e);
|
|
2522
2522
|
}
|
|
2523
2523
|
return /* @__PURE__ */ t.jsxs("div", { className: It.wrapper, children: [
|
|
2524
2524
|
/* @__PURE__ */ t.jsx("div", { className: It.logo, children: a.info.logo ? /* @__PURE__ */ t.jsx(
|
|
@@ -2552,45 +2552,44 @@ const is = (h) => {
|
|
|
2552
2552
|
productOptions: yn,
|
|
2553
2553
|
loading: jn
|
|
2554
2554
|
}, Kn = (h) => {
|
|
2555
|
-
var
|
|
2556
|
-
const { pageContext: a } = bt(),
|
|
2555
|
+
var c;
|
|
2556
|
+
const { pageContext: a } = bt(), o = (c = a == null ? void 0 : a.listings) == null ? void 0 : c.find((l) => l.id === h.productId), [s, r] = g.useState(!0), [e, u] = g.useState(null), d = (e == null ? void 0 : e.variants[0]) || null, [f, _] = g.useState(
|
|
2557
2557
|
"ONE_TIME"
|
|
2558
|
-
), { addProducts:
|
|
2559
|
-
return
|
|
2558
|
+
), { addProducts: M } = ct(), { setIsOpen: I } = rt();
|
|
2559
|
+
return g.useEffect(() => {
|
|
2560
2560
|
(async () => {
|
|
2561
|
-
|
|
2562
|
-
const
|
|
2561
|
+
r(!0);
|
|
2562
|
+
const y = await Vt(
|
|
2563
2563
|
encodeURIComponent(
|
|
2564
|
-
`/product/${
|
|
2565
|
-
)
|
|
2566
|
-
o == null ? void 0 : o.info.passwordProtected
|
|
2564
|
+
`/product/${o.productData.uniquePath}`
|
|
2565
|
+
)
|
|
2567
2566
|
);
|
|
2568
|
-
|
|
2567
|
+
M(y == null ? void 0 : y.data.products), u(y == null ? void 0 : y.data.products[0]), r(!1);
|
|
2569
2568
|
})();
|
|
2570
|
-
}, []),
|
|
2571
|
-
|
|
2569
|
+
}, []), g.useEffect(() => {
|
|
2570
|
+
I(!0);
|
|
2572
2571
|
}, []), /* @__PURE__ */ t.jsx(ut, { close: h.setIsOpen, children: /* @__PURE__ */ t.jsxs(
|
|
2573
2572
|
"div",
|
|
2574
2573
|
{
|
|
2575
2574
|
className: et.modal,
|
|
2576
|
-
onClick: (
|
|
2575
|
+
onClick: (l) => l.stopPropagation(),
|
|
2577
2576
|
children: [
|
|
2578
|
-
|
|
2579
|
-
h.type === "Add To Cart" && h.isCartEnabled &&
|
|
2577
|
+
s && /* @__PURE__ */ t.jsx("div", { className: et.loading, children: /* @__PURE__ */ t.jsx($t, {}) }),
|
|
2578
|
+
h.type === "Add To Cart" && h.isCartEnabled && e && d && !s && /* @__PURE__ */ t.jsx(
|
|
2580
2579
|
bn,
|
|
2581
2580
|
{
|
|
2582
|
-
variants:
|
|
2583
|
-
activeVariant:
|
|
2584
|
-
activeChargeType:
|
|
2585
|
-
setActiveChargeType:
|
|
2586
|
-
productId:
|
|
2581
|
+
variants: e.variants,
|
|
2582
|
+
activeVariant: d,
|
|
2583
|
+
activeChargeType: f,
|
|
2584
|
+
setActiveChargeType: _,
|
|
2585
|
+
productId: e.id,
|
|
2587
2586
|
setIsOpen: h.setIsOpen
|
|
2588
2587
|
}
|
|
2589
2588
|
),
|
|
2590
|
-
h.type === "Buy Now" &&
|
|
2589
|
+
h.type === "Buy Now" && e && !s && /* @__PURE__ */ t.jsx(
|
|
2591
2590
|
vn,
|
|
2592
2591
|
{
|
|
2593
|
-
product:
|
|
2592
|
+
product: e,
|
|
2594
2593
|
setIsOpen: h.setIsOpen,
|
|
2595
2594
|
isCartEnabled: h.isCartEnabled
|
|
2596
2595
|
}
|
|
@@ -2599,14 +2598,14 @@ const is = (h) => {
|
|
|
2599
2598
|
}
|
|
2600
2599
|
) });
|
|
2601
2600
|
}, bn = (h) => {
|
|
2602
|
-
const { variants: a, activeChargeType: o, productId: s, setIsOpen:
|
|
2603
|
-
|
|
2604
|
-
|
|
2601
|
+
const { variants: a, activeChargeType: o, productId: s, setIsOpen: r } = h, { cart: e, addProductToCart: u, addProducts: d, updateQuantityOfProduct: f } = ct(), { notifications: _, setNotifications: M } = St(), { pageContext: I } = bt(), { setIsOpen: c } = rt(), l = () => {
|
|
2602
|
+
c(!1), setTimeout(() => {
|
|
2603
|
+
r(!1);
|
|
2605
2604
|
}, 300);
|
|
2606
2605
|
};
|
|
2607
|
-
async function y(
|
|
2608
|
-
const m = a.find((P) => P.id ===
|
|
2609
|
-
(P) => P.productId === h.productId && P.productVariantId ===
|
|
2606
|
+
async function y(x) {
|
|
2607
|
+
const m = a.find((P) => P.id === x), i = e.parts.find(
|
|
2608
|
+
(P) => P.productId === h.productId && P.productVariantId === x
|
|
2610
2609
|
);
|
|
2611
2610
|
if ((m == null ? void 0 : m.quantity.available) && (m == null ? void 0 : m.quantity.restrictions) && ((i == null ? void 0 : i.quantity) || 0) + 1 > (m == null ? void 0 : m.quantity.restrictions.max) || (m == null ? void 0 : m.quantity.available) === 0 || (m == null ? void 0 : m.quantity.available) && ((i == null ? void 0 : i.quantity) || 0) + 1 > (m == null ? void 0 : m.quantity.available)) {
|
|
2612
2611
|
M([
|
|
@@ -2616,18 +2615,18 @@ const is = (h) => {
|
|
|
2616
2615
|
return;
|
|
2617
2616
|
}
|
|
2618
2617
|
if (i)
|
|
2619
|
-
|
|
2618
|
+
f({
|
|
2620
2619
|
productId: s,
|
|
2621
|
-
productVariantId:
|
|
2620
|
+
productVariantId: x,
|
|
2622
2621
|
quantity: i.quantity + 1,
|
|
2623
2622
|
chargeType: o
|
|
2624
2623
|
});
|
|
2625
2624
|
else {
|
|
2626
|
-
I != null && I.products &&
|
|
2625
|
+
I != null && I.products && d(I.products);
|
|
2627
2626
|
try {
|
|
2628
|
-
|
|
2627
|
+
u({
|
|
2629
2628
|
productId: s,
|
|
2630
|
-
productVariantId:
|
|
2629
|
+
productVariantId: x,
|
|
2631
2630
|
quantity: 1,
|
|
2632
2631
|
chargeType: o
|
|
2633
2632
|
}), M([
|
|
@@ -2661,21 +2660,21 @@ const is = (h) => {
|
|
|
2661
2660
|
height: 24,
|
|
2662
2661
|
fill: "var(--text-secondary)",
|
|
2663
2662
|
hoverable: !0,
|
|
2664
|
-
onClick:
|
|
2663
|
+
onClick: l
|
|
2665
2664
|
}
|
|
2666
2665
|
)
|
|
2667
2666
|
] }),
|
|
2668
|
-
/* @__PURE__ */ t.jsx("div", { className: et.variants, children: a.filter((
|
|
2667
|
+
/* @__PURE__ */ t.jsx("div", { className: et.variants, children: a.filter((x) => {
|
|
2669
2668
|
var m;
|
|
2670
|
-
return (m =
|
|
2671
|
-
}).map((
|
|
2669
|
+
return (m = x.chargeTypes) == null ? void 0 : m.includes(o);
|
|
2670
|
+
}).map((x) => {
|
|
2672
2671
|
var m, i, b;
|
|
2673
2672
|
return /* @__PURE__ */ t.jsxs(
|
|
2674
2673
|
"div",
|
|
2675
2674
|
{
|
|
2676
2675
|
className: U(et.variant),
|
|
2677
2676
|
onClick: () => {
|
|
2678
|
-
y(
|
|
2677
|
+
y(x.id), r(!1);
|
|
2679
2678
|
},
|
|
2680
2679
|
children: [
|
|
2681
2680
|
/* @__PURE__ */ t.jsxs("div", { className: et.variantInfo, children: [
|
|
@@ -2684,12 +2683,12 @@ const is = (h) => {
|
|
|
2684
2683
|
{
|
|
2685
2684
|
className: et.title,
|
|
2686
2685
|
id: "h4",
|
|
2687
|
-
children:
|
|
2686
|
+
children: x.name
|
|
2688
2687
|
}
|
|
2689
2688
|
),
|
|
2690
2689
|
/* @__PURE__ */ t.jsx("span", { id: "md", children: Q({
|
|
2691
|
-
amount: o === "ONE_TIME" ?
|
|
2692
|
-
currency: o === "ONE_TIME" ?
|
|
2690
|
+
amount: o === "ONE_TIME" ? x.price.amount : x.subscriptionSettings ? x.subscriptionSettings.price.amount : 0,
|
|
2691
|
+
currency: o === "ONE_TIME" ? x.price.currency : ((m = x.subscriptionSettings) == null ? void 0 : m.price.currency) || "USD"
|
|
2693
2692
|
}) })
|
|
2694
2693
|
] }),
|
|
2695
2694
|
/* @__PURE__ */ t.jsx("div", { id: "md", children: o === "ONE_TIME" && /* @__PURE__ */ t.jsxs(
|
|
@@ -2698,7 +2697,7 @@ const is = (h) => {
|
|
|
2698
2697
|
className: et.stock,
|
|
2699
2698
|
id: "md",
|
|
2700
2699
|
children: [
|
|
2701
|
-
(i =
|
|
2700
|
+
(i = x.quantity.restrictions) != null && i.max || x.quantity.available !== void 0 ? ((b = x.quantity.restrictions) == null ? void 0 : b.max) || x.quantity.available : "∞",
|
|
2702
2701
|
" ",
|
|
2703
2702
|
"in stock"
|
|
2704
2703
|
]
|
|
@@ -2706,13 +2705,13 @@ const is = (h) => {
|
|
|
2706
2705
|
) })
|
|
2707
2706
|
]
|
|
2708
2707
|
},
|
|
2709
|
-
|
|
2708
|
+
x.id
|
|
2710
2709
|
);
|
|
2711
2710
|
}) })
|
|
2712
2711
|
] });
|
|
2713
2712
|
}, vn = (h) => {
|
|
2714
|
-
const { product: a, setIsOpen: o, isCartEnabled: s } = h, { setIsOpen:
|
|
2715
|
-
|
|
2713
|
+
const { product: a, setIsOpen: o, isCartEnabled: s } = h, { setIsOpen: r } = rt(), e = () => {
|
|
2714
|
+
r(!1), setTimeout(() => {
|
|
2716
2715
|
o(!1);
|
|
2717
2716
|
}, 300);
|
|
2718
2717
|
};
|
|
@@ -2773,21 +2772,21 @@ const is = (h) => {
|
|
|
2773
2772
|
setIsOpen: a,
|
|
2774
2773
|
pageContext: o,
|
|
2775
2774
|
groupData: s,
|
|
2776
|
-
setProductId:
|
|
2775
|
+
setProductId: r,
|
|
2777
2776
|
setIsProductModalOpen: e,
|
|
2778
|
-
setShowDropdown:
|
|
2779
|
-
} = h, [
|
|
2780
|
-
|
|
2777
|
+
setShowDropdown: u
|
|
2778
|
+
} = h, [d, f] = g.useState(null), [_, M] = g.useState(!0), { setIsOpen: I } = rt();
|
|
2779
|
+
g.useEffect(() => {
|
|
2781
2780
|
var y;
|
|
2782
2781
|
M(!0);
|
|
2783
|
-
const
|
|
2784
|
-
(
|
|
2782
|
+
const l = (y = o.listings) == null ? void 0 : y.filter(
|
|
2783
|
+
(x) => s.listingIdList.includes(x.id)
|
|
2785
2784
|
);
|
|
2786
|
-
|
|
2787
|
-
}, [o]),
|
|
2785
|
+
l && f([...l]), M(!1);
|
|
2786
|
+
}, [o]), g.useEffect(() => {
|
|
2788
2787
|
I(!0);
|
|
2789
2788
|
}, []);
|
|
2790
|
-
const
|
|
2789
|
+
const c = () => {
|
|
2791
2790
|
I(!1), setTimeout(() => {
|
|
2792
2791
|
a(!1);
|
|
2793
2792
|
}, 300);
|
|
@@ -2796,7 +2795,7 @@ const is = (h) => {
|
|
|
2796
2795
|
"div",
|
|
2797
2796
|
{
|
|
2798
2797
|
className: H.contentModal,
|
|
2799
|
-
onClick: (
|
|
2798
|
+
onClick: (l) => l.stopPropagation(),
|
|
2800
2799
|
children: [
|
|
2801
2800
|
/* @__PURE__ */ t.jsxs("div", { className: H.modalTop, children: [
|
|
2802
2801
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2814,20 +2813,20 @@ const is = (h) => {
|
|
|
2814
2813
|
{
|
|
2815
2814
|
name: "X",
|
|
2816
2815
|
hoverable: !0,
|
|
2817
|
-
onClick:
|
|
2816
|
+
onClick: c,
|
|
2818
2817
|
fill: "var(--text-primary)"
|
|
2819
2818
|
}
|
|
2820
2819
|
)
|
|
2821
2820
|
] }),
|
|
2822
|
-
!_ &&
|
|
2821
|
+
!_ && d && /* @__PURE__ */ t.jsx("div", { className: H.modalCards, children: d.map((l) => /* @__PURE__ */ t.jsxs(
|
|
2823
2822
|
"div",
|
|
2824
2823
|
{
|
|
2825
2824
|
className: H.card,
|
|
2826
2825
|
children: [
|
|
2827
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
2826
|
+
/* @__PURE__ */ t.jsx("div", { children: l.productData.images[0] ? /* @__PURE__ */ t.jsx(
|
|
2828
2827
|
"img",
|
|
2829
2828
|
{
|
|
2830
|
-
src: `https://imagedelivery.net/${
|
|
2829
|
+
src: `https://imagedelivery.net/${l.productData.images[0].cfId}/w=500`,
|
|
2831
2830
|
alt: "",
|
|
2832
2831
|
width: 64,
|
|
2833
2832
|
height: 64,
|
|
@@ -2835,8 +2834,8 @@ const is = (h) => {
|
|
|
2835
2834
|
}
|
|
2836
2835
|
) : /* @__PURE__ */ t.jsx("div", { className: U(H.blockImage, H.modalImage), children: /* @__PURE__ */ t.jsx(j, { name: "Image" }) }) }),
|
|
2837
2836
|
/* @__PURE__ */ t.jsxs("div", { className: H.cardInfo, children: [
|
|
2838
|
-
/* @__PURE__ */ t.jsx("div", { id: "h5", children:
|
|
2839
|
-
at(
|
|
2837
|
+
/* @__PURE__ */ t.jsx("div", { id: "h5", children: l.productData.compareAtPrice && (l.productData.compareAtPrice.amount || 0) - (l.productData.minPrice.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2838
|
+
at(l.productData.name, !1),
|
|
2840
2839
|
/* @__PURE__ */ t.jsxs(
|
|
2841
2840
|
"span",
|
|
2842
2841
|
{
|
|
@@ -2849,8 +2848,8 @@ const is = (h) => {
|
|
|
2849
2848
|
className: H.newPrice,
|
|
2850
2849
|
id: "md",
|
|
2851
2850
|
children: Q({
|
|
2852
|
-
amount:
|
|
2853
|
-
currency:
|
|
2851
|
+
amount: l.productData.minPrice.amount,
|
|
2852
|
+
currency: l.productData.minPrice.currency
|
|
2854
2853
|
})
|
|
2855
2854
|
}
|
|
2856
2855
|
),
|
|
@@ -2860,8 +2859,8 @@ const is = (h) => {
|
|
|
2860
2859
|
className: H.oldPrice,
|
|
2861
2860
|
id: "md",
|
|
2862
2861
|
children: Q({
|
|
2863
|
-
amount:
|
|
2864
|
-
currency:
|
|
2862
|
+
amount: l.productData.compareAtPrice.amount,
|
|
2863
|
+
currency: l.productData.compareAtPrice.currency
|
|
2865
2864
|
})
|
|
2866
2865
|
}
|
|
2867
2866
|
)
|
|
@@ -2869,26 +2868,26 @@ const is = (h) => {
|
|
|
2869
2868
|
}
|
|
2870
2869
|
)
|
|
2871
2870
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2872
|
-
at(
|
|
2871
|
+
at(l.productData.name, !1),
|
|
2873
2872
|
/* @__PURE__ */ t.jsx(
|
|
2874
2873
|
"span",
|
|
2875
2874
|
{
|
|
2876
2875
|
className: H.newPrice,
|
|
2877
2876
|
id: "md",
|
|
2878
2877
|
children: Q({
|
|
2879
|
-
amount:
|
|
2880
|
-
currency:
|
|
2878
|
+
amount: l.productData.minPrice.amount,
|
|
2879
|
+
currency: l.productData.minPrice.currency
|
|
2881
2880
|
})
|
|
2882
2881
|
}
|
|
2883
2882
|
)
|
|
2884
2883
|
] }) }),
|
|
2885
|
-
|
|
2884
|
+
l.productData.shortDescription && /* @__PURE__ */ t.jsx(
|
|
2886
2885
|
"span",
|
|
2887
2886
|
{
|
|
2888
2887
|
className: H.short,
|
|
2889
2888
|
id: "md",
|
|
2890
2889
|
dangerouslySetInnerHTML: {
|
|
2891
|
-
__html: at(
|
|
2890
|
+
__html: at(l.productData.shortDescription)
|
|
2892
2891
|
}
|
|
2893
2892
|
}
|
|
2894
2893
|
)
|
|
@@ -2899,18 +2898,18 @@ const is = (h) => {
|
|
|
2899
2898
|
{
|
|
2900
2899
|
type: "Secondary",
|
|
2901
2900
|
onClick: () => {
|
|
2902
|
-
|
|
2901
|
+
r(l.id), a(!1), e(!0);
|
|
2903
2902
|
},
|
|
2904
2903
|
children: "Buy"
|
|
2905
2904
|
}
|
|
2906
2905
|
),
|
|
2907
|
-
/* @__PURE__ */ t.jsx(Mt, { path: `/product/${
|
|
2906
|
+
/* @__PURE__ */ t.jsx(Mt, { path: `/product/${l.productData.uniquePath}`, children: /* @__PURE__ */ t.jsx(
|
|
2908
2907
|
R,
|
|
2909
2908
|
{
|
|
2910
2909
|
type: "Primary",
|
|
2911
2910
|
style: { whiteSpace: "nowrap" },
|
|
2912
2911
|
onClick: () => {
|
|
2913
|
-
|
|
2912
|
+
u(!1), c();
|
|
2914
2913
|
},
|
|
2915
2914
|
children: "View Details"
|
|
2916
2915
|
}
|
|
@@ -2918,9 +2917,9 @@ const is = (h) => {
|
|
|
2918
2917
|
] })
|
|
2919
2918
|
]
|
|
2920
2919
|
},
|
|
2921
|
-
|
|
2920
|
+
l.id
|
|
2922
2921
|
)) }),
|
|
2923
|
-
_ && /* @__PURE__ */ t.jsx("div", { className: H.loading, children: /* @__PURE__ */ t.jsx(
|
|
2922
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: H.loading, children: /* @__PURE__ */ t.jsx($t, {}) })
|
|
2924
2923
|
]
|
|
2925
2924
|
}
|
|
2926
2925
|
) });
|
|
@@ -2933,8 +2932,8 @@ export {
|
|
|
2933
2932
|
Ae as ButtonTypeSettings,
|
|
2934
2933
|
Fn as ButtonsSettings,
|
|
2935
2934
|
Un as CategorySettings,
|
|
2936
|
-
|
|
2937
|
-
|
|
2935
|
+
Ot as ChargeTypes,
|
|
2936
|
+
Dt as ChooseImage,
|
|
2938
2937
|
ni as ChooseImageModal,
|
|
2939
2938
|
Us as EmptyCart,
|
|
2940
2939
|
zn as FormSettings,
|
|
@@ -2942,12 +2941,12 @@ export {
|
|
|
2942
2941
|
Yn as HeaderButtons,
|
|
2943
2942
|
j as Icon,
|
|
2944
2943
|
Nt as InputSettings,
|
|
2945
|
-
|
|
2944
|
+
Ut as InputUI,
|
|
2946
2945
|
ii as ItemsSettings,
|
|
2947
2946
|
Ln as LayoutSettings,
|
|
2948
2947
|
Mt as Link,
|
|
2949
2948
|
Vn as ListingSelector,
|
|
2950
|
-
|
|
2949
|
+
$t as Loader,
|
|
2951
2950
|
Jn as MetaInfoPost,
|
|
2952
2951
|
ut as Modal,
|
|
2953
2952
|
Gn as PagesMobileMenu,
|
|
@@ -2970,6 +2969,6 @@ export {
|
|
|
2970
2969
|
di as TextareaSettings,
|
|
2971
2970
|
ui as TextareaUI,
|
|
2972
2971
|
hi as TypesText,
|
|
2973
|
-
|
|
2972
|
+
qt as UserInfo,
|
|
2974
2973
|
mi as Wrapper
|
|
2975
2974
|
};
|