@billgangcom/theme-lib 1.66.2 → 1.66.3
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 +2 -2
- package/dist/builder.es.js +3 -3
- package/dist/{index-yNJDaEUC.cjs → index-BmXiMU9s.cjs} +1 -1
- package/dist/{index-B-Mm1sSt.js → index-CsIHg99C.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +538 -537
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as t, I as
|
|
2
|
-
import { W as
|
|
1
|
+
import { j as t, I as b, c as U, d as vt, u as dt, e as ut, P as ht, S as ot, R as kt, D as pt, f as mt, v as _t, B as ct, g as st, h as Ct, a as St, O as rt, i as et, k as gt, C as ft, l as H, m as Pt, n as Tt, o as it, p as Mt, r as bt, t as Q, L as At, w as xt, x as lt, s as yt, y as F, z as Ot, M as Nt, A as qt, E as Et, F as $t, G as wt, H as Rt, J as Dt } from "./index-CsIHg99C.js";
|
|
2
|
+
import { W as Zi, N as ta, U as ea, V as sa, K as na, T as ia, Q as aa } from "./index-CsIHg99C.js";
|
|
3
3
|
import f from "react";
|
|
4
|
-
const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt = "_subtitle_kh9z8_23", Ut = "_alignmentContent_kh9z8_30", Ht = "_alignments_kh9z8_39", Yt = "_alignment_kh9z8_30", Wt = "_circle_kh9z8_64", Gt = "_paddings_kh9z8_71", Qt = "_padding_kh9z8_71", Xt = "_active_kh9z8_97", Jt = "_input_kh9z8_104",
|
|
4
|
+
const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt = "_subtitle_kh9z8_23", Ut = "_alignmentContent_kh9z8_30", Ht = "_alignments_kh9z8_39", Yt = "_alignment_kh9z8_30", Wt = "_circle_kh9z8_64", Gt = "_paddings_kh9z8_71", Qt = "_padding_kh9z8_71", Xt = "_active_kh9z8_97", Jt = "_input_kh9z8_104", G = {
|
|
5
5
|
wrapper: zt,
|
|
6
6
|
block: Lt,
|
|
7
7
|
title: Ft,
|
|
@@ -24,17 +24,17 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
24
24
|
"bottomLeft",
|
|
25
25
|
"bottom",
|
|
26
26
|
"bottomRight"
|
|
27
|
-
], Zt = ["left", "top", "right", "bottom"],
|
|
27
|
+
], Zt = ["left", "top", "right", "bottom"], Oi = (c) => {
|
|
28
28
|
const {
|
|
29
29
|
alignment: i,
|
|
30
30
|
padding: a,
|
|
31
31
|
setPadding: s,
|
|
32
32
|
setAlignment: e,
|
|
33
|
-
isAlignment:
|
|
33
|
+
isAlignment: l = !0,
|
|
34
34
|
isPadding: d = !0
|
|
35
35
|
} = c;
|
|
36
|
-
function m
|
|
37
|
-
switch (
|
|
36
|
+
function p(m) {
|
|
37
|
+
switch (m) {
|
|
38
38
|
case "left":
|
|
39
39
|
case "topLeft":
|
|
40
40
|
case "bottomLeft":
|
|
@@ -51,8 +51,8 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
51
51
|
return "TextAlignCenter";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function _(
|
|
55
|
-
switch (
|
|
54
|
+
function _(m) {
|
|
55
|
+
switch (m) {
|
|
56
56
|
case "left":
|
|
57
57
|
return "AlignLeft";
|
|
58
58
|
case "right":
|
|
@@ -63,40 +63,40 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
63
63
|
return "AlignBottom";
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const [u,
|
|
67
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
68
|
-
/* @__PURE__ */ t.jsx("h3", { className:
|
|
69
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
70
|
-
|
|
71
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
72
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
66
|
+
const [u, $] = f.useState(null), [y, n] = f.useState(null);
|
|
67
|
+
return /* @__PURE__ */ t.jsxs("div", { className: G.layout, children: [
|
|
68
|
+
/* @__PURE__ */ t.jsx("h3", { className: G.title, children: "Layout (for Desktop version)" }),
|
|
69
|
+
/* @__PURE__ */ t.jsxs("div", { className: G.alignmentContent, children: [
|
|
70
|
+
l && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
71
|
+
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Alignment" }),
|
|
72
|
+
/* @__PURE__ */ t.jsx("div", { className: G.alignments, children: Kt.map((m) => /* @__PURE__ */ t.jsxs(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
onClick: () => {
|
|
76
|
-
e(
|
|
76
|
+
e(m);
|
|
77
77
|
},
|
|
78
|
-
className:
|
|
78
|
+
className: G.alignment,
|
|
79
79
|
onMouseEnter: () => {
|
|
80
|
-
|
|
80
|
+
$(m);
|
|
81
81
|
},
|
|
82
82
|
onMouseLeave: () => {
|
|
83
|
-
|
|
83
|
+
$(null);
|
|
84
84
|
},
|
|
85
85
|
children: [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
m !== i && u !== m && /* @__PURE__ */ t.jsx("div", { className: G.circle }),
|
|
87
|
+
m !== i && u === m && /* @__PURE__ */ t.jsx(
|
|
88
|
+
b,
|
|
89
89
|
{
|
|
90
|
-
name:
|
|
90
|
+
name: p(u),
|
|
91
91
|
fill: "#c2c2c2",
|
|
92
92
|
width: 22,
|
|
93
93
|
height: 22
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
m === i && /* @__PURE__ */ t.jsx(
|
|
97
|
+
b,
|
|
98
98
|
{
|
|
99
|
-
name:
|
|
99
|
+
name: p(i),
|
|
100
100
|
fill: "#FF3F19",
|
|
101
101
|
width: 22,
|
|
102
102
|
height: 22
|
|
@@ -104,40 +104,40 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
104
104
|
)
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
m
|
|
108
108
|
)) })
|
|
109
109
|
] }),
|
|
110
|
-
d && /* @__PURE__ */ t.jsxs("div", { className:
|
|
111
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
112
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
110
|
+
d && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
111
|
+
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Paddings" }),
|
|
112
|
+
/* @__PURE__ */ t.jsx("div", { className: G.paddings, children: Zt.map((m) => /* @__PURE__ */ t.jsxs(
|
|
113
113
|
"label",
|
|
114
114
|
{
|
|
115
|
-
className: U(
|
|
116
|
-
[
|
|
115
|
+
className: U(G.padding, {
|
|
116
|
+
[G.active]: y === m
|
|
117
117
|
}),
|
|
118
118
|
onFocus: () => {
|
|
119
|
-
n(
|
|
119
|
+
n(m);
|
|
120
120
|
},
|
|
121
121
|
onBlur: () => {
|
|
122
122
|
n(null);
|
|
123
123
|
},
|
|
124
124
|
children: [
|
|
125
125
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
126
|
-
|
|
126
|
+
b,
|
|
127
127
|
{
|
|
128
|
-
name: _(
|
|
128
|
+
name: _(m),
|
|
129
129
|
width: 20,
|
|
130
130
|
height: 20
|
|
131
131
|
}
|
|
132
132
|
) }),
|
|
133
133
|
/* @__PURE__ */ t.jsx(
|
|
134
|
-
|
|
134
|
+
vt,
|
|
135
135
|
{
|
|
136
136
|
type: "number",
|
|
137
|
-
value: String(a[
|
|
137
|
+
value: String(a[m]),
|
|
138
138
|
onChange: (o) => s({
|
|
139
139
|
...a,
|
|
140
|
-
[
|
|
140
|
+
[m]: Math.min(Number(o), 999)
|
|
141
141
|
}),
|
|
142
142
|
max: 999,
|
|
143
143
|
paddingless: !0,
|
|
@@ -146,12 +146,12 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
146
146
|
)
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
m
|
|
150
150
|
)) })
|
|
151
151
|
] })
|
|
152
152
|
] })
|
|
153
153
|
] });
|
|
154
|
-
}, te = "_title_82zux_1", ee = "_subtitle_82zux_5", se = "_header_82zux_12", ne = "_text_82zux_13", ie = "_productsBlock_82zux_14", ae = "_top_82zux_26", oe = "_itemsBlock_82zux_35", ce = "_typeTexts_82zux_41",
|
|
154
|
+
}, te = "_title_82zux_1", ee = "_subtitle_82zux_5", se = "_header_82zux_12", ne = "_text_82zux_13", ie = "_productsBlock_82zux_14", ae = "_top_82zux_26", oe = "_itemsBlock_82zux_35", ce = "_typeTexts_82zux_41", le = "_block_82zux_48", re = "_active_82zux_61", de = "_products_82zux_14", ue = "_product_82zux_14", he = "_button_82zux_80", pe = "_disabled_82zux_91", me = "_image_82zux_95", _e = "_info_82zux_102", ge = "_name_82zux_114", fe = "_buttons_82zux_118", xe = "_modal_82zux_125", be = "_link_82zux_145", je = "_modalOptions_82zux_151", ve = "_addButton_82zux_157", ye = "_deleteButton_82zux_179", X = {
|
|
155
155
|
title: te,
|
|
156
156
|
subtitle: ee,
|
|
157
157
|
header: se,
|
|
@@ -160,20 +160,20 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
160
160
|
top: ae,
|
|
161
161
|
itemsBlock: oe,
|
|
162
162
|
typeTexts: ce,
|
|
163
|
-
block:
|
|
164
|
-
active:
|
|
163
|
+
block: le,
|
|
164
|
+
active: re,
|
|
165
165
|
products: de,
|
|
166
166
|
product: ue,
|
|
167
167
|
button: he,
|
|
168
|
-
disabled:
|
|
169
|
-
image:
|
|
168
|
+
disabled: pe,
|
|
169
|
+
image: me,
|
|
170
170
|
info: _e,
|
|
171
171
|
name: ge,
|
|
172
172
|
buttons: fe,
|
|
173
173
|
modal: xe,
|
|
174
|
-
link:
|
|
175
|
-
modalOptions:
|
|
176
|
-
addButton:
|
|
174
|
+
link: be,
|
|
175
|
+
modalOptions: je,
|
|
176
|
+
addButton: ve,
|
|
177
177
|
deleteButton: ye
|
|
178
178
|
};
|
|
179
179
|
function Ne({ id: c, children: i }) {
|
|
@@ -181,13 +181,13 @@ function Ne({ id: c, children: i }) {
|
|
|
181
181
|
attributes: a,
|
|
182
182
|
listeners: s,
|
|
183
183
|
setNodeRef: e,
|
|
184
|
-
transform:
|
|
184
|
+
transform: l,
|
|
185
185
|
transition: d,
|
|
186
|
-
isDragging:
|
|
186
|
+
isDragging: p
|
|
187
187
|
} = gt({
|
|
188
188
|
id: c
|
|
189
189
|
}), _ = {
|
|
190
|
-
transform: ft.Transform.toString(
|
|
190
|
+
transform: ft.Transform.toString(l),
|
|
191
191
|
transition: d
|
|
192
192
|
};
|
|
193
193
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -195,28 +195,28 @@ function Ne({ id: c, children: i }) {
|
|
|
195
195
|
{
|
|
196
196
|
ref: e,
|
|
197
197
|
style: _,
|
|
198
|
-
className: `${
|
|
198
|
+
className: `${X.product} ${p ? X.dragging : ""}`,
|
|
199
199
|
...a,
|
|
200
200
|
...s,
|
|
201
201
|
children: i
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const Ei = (c) => {
|
|
206
206
|
const {
|
|
207
207
|
isActiveItems: i,
|
|
208
208
|
setIsActiveItems: a,
|
|
209
209
|
items: s,
|
|
210
210
|
setItems: e,
|
|
211
|
-
other:
|
|
211
|
+
other: l,
|
|
212
212
|
tags: d,
|
|
213
|
-
title:
|
|
213
|
+
title: p,
|
|
214
214
|
subtitle: _,
|
|
215
215
|
draggable: u = !1,
|
|
216
|
-
withImage:
|
|
216
|
+
withImage: $ = !1,
|
|
217
217
|
addable: y = !0,
|
|
218
218
|
itemsOptions: n,
|
|
219
|
-
hasRangeSelector:
|
|
219
|
+
hasRangeSelector: m = !1,
|
|
220
220
|
rangeSelectorOptions: o,
|
|
221
221
|
limit: T,
|
|
222
222
|
autoScrollInterval: g,
|
|
@@ -232,15 +232,15 @@ const Oi = (c) => {
|
|
|
232
232
|
), R = (h) => {
|
|
233
233
|
const { active: C, over: S } = h;
|
|
234
234
|
if (S && C.id !== S.id) {
|
|
235
|
-
const
|
|
236
|
-
if (
|
|
237
|
-
const M = [...s], [x] = M.splice(
|
|
238
|
-
M.splice(
|
|
235
|
+
const v = s.findIndex((M) => M === C.id), w = s.findIndex((M) => M === S.id);
|
|
236
|
+
if (v !== -1 && w !== -1) {
|
|
237
|
+
const M = [...s], [x] = M.splice(v, 1);
|
|
238
|
+
M.splice(w, 0, x), e(M);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
|
-
function
|
|
243
|
-
if (
|
|
242
|
+
function j(h) {
|
|
243
|
+
if ($)
|
|
244
244
|
return h ? /* @__PURE__ */ t.jsx(
|
|
245
245
|
"img",
|
|
246
246
|
{
|
|
@@ -250,7 +250,7 @@ const Oi = (c) => {
|
|
|
250
250
|
height: 16
|
|
251
251
|
}
|
|
252
252
|
) : /* @__PURE__ */ t.jsx(
|
|
253
|
-
|
|
253
|
+
b,
|
|
254
254
|
{
|
|
255
255
|
name: "Image",
|
|
256
256
|
width: 16,
|
|
@@ -260,11 +260,11 @@ const Oi = (c) => {
|
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
262
|
const L = (h, C = !1) => {
|
|
263
|
-
const S = n.find((
|
|
263
|
+
const S = n.find((w) => w.id === h);
|
|
264
264
|
if (!S) return;
|
|
265
|
-
const
|
|
265
|
+
const v = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
266
266
|
u && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
267
|
-
|
|
267
|
+
b,
|
|
268
268
|
{
|
|
269
269
|
name: "DotsSixVertical",
|
|
270
270
|
hoverable: !0,
|
|
@@ -275,29 +275,29 @@ const Oi = (c) => {
|
|
|
275
275
|
/* @__PURE__ */ t.jsx(
|
|
276
276
|
st,
|
|
277
277
|
{
|
|
278
|
-
onChange: (
|
|
279
|
-
const M = [...s], x = n.find((
|
|
278
|
+
onChange: (w) => {
|
|
279
|
+
const M = [...s], x = n.find((r) => r.name === w);
|
|
280
280
|
if (!x) return;
|
|
281
|
-
const A = x.id, V = M.map((
|
|
281
|
+
const A = x.id, V = M.map((r) => r === h ? A : r);
|
|
282
282
|
e([...V]);
|
|
283
283
|
},
|
|
284
284
|
value: S.name,
|
|
285
|
-
options: n.filter((
|
|
286
|
-
leftAddonOptions: n.map((
|
|
287
|
-
value:
|
|
288
|
-
addon:
|
|
285
|
+
options: n.filter((w) => !s.find((M) => M === w.id)).map((w) => w.name),
|
|
286
|
+
leftAddonOptions: n.map((w) => ({
|
|
287
|
+
value: w.name,
|
|
288
|
+
addon: j(w.images)
|
|
289
289
|
}))
|
|
290
290
|
}
|
|
291
291
|
),
|
|
292
|
-
C && /* @__PURE__ */ t.jsx("div", { className:
|
|
293
|
-
|
|
292
|
+
C && /* @__PURE__ */ t.jsx("div", { className: X.buttons, children: /* @__PURE__ */ t.jsx("div", { className: X.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
293
|
+
b,
|
|
294
294
|
{
|
|
295
295
|
name: "Trash",
|
|
296
296
|
hoverable: !0,
|
|
297
297
|
width: 20,
|
|
298
298
|
height: 20,
|
|
299
299
|
fill: "#C12A2A",
|
|
300
|
-
onClick: () => e(s.filter((
|
|
300
|
+
onClick: () => e(s.filter((w) => w !== h))
|
|
301
301
|
}
|
|
302
302
|
) }) })
|
|
303
303
|
] });
|
|
@@ -305,21 +305,21 @@ const Oi = (c) => {
|
|
|
305
305
|
Ne,
|
|
306
306
|
{
|
|
307
307
|
id: h,
|
|
308
|
-
children:
|
|
308
|
+
children: v
|
|
309
309
|
},
|
|
310
310
|
et()
|
|
311
311
|
) : /* @__PURE__ */ t.jsx(
|
|
312
312
|
"div",
|
|
313
313
|
{
|
|
314
|
-
className:
|
|
315
|
-
children:
|
|
314
|
+
className: X.product,
|
|
315
|
+
children: v
|
|
316
316
|
},
|
|
317
317
|
et()
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
321
|
-
(
|
|
322
|
-
|
|
320
|
+
return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
|
|
321
|
+
(p || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: X.top, children: [
|
|
322
|
+
p && /* @__PURE__ */ t.jsx("h3", { className: X.title, children: p }),
|
|
323
323
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
324
324
|
ot,
|
|
325
325
|
{
|
|
@@ -328,16 +328,16 @@ const Oi = (c) => {
|
|
|
328
328
|
}
|
|
329
329
|
)
|
|
330
330
|
] }),
|
|
331
|
-
|
|
332
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
333
|
-
_ && /* @__PURE__ */ t.jsx("h5", { className:
|
|
331
|
+
m && o && /* @__PURE__ */ t.jsx(kt, { ...o }),
|
|
332
|
+
/* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
|
|
333
|
+
_ && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: _ }),
|
|
334
334
|
u ? /* @__PURE__ */ t.jsx(
|
|
335
|
-
|
|
335
|
+
pt,
|
|
336
336
|
{
|
|
337
337
|
sensors: z,
|
|
338
338
|
onDragEnd: R,
|
|
339
339
|
children: /* @__PURE__ */ t.jsx(
|
|
340
|
-
|
|
340
|
+
mt,
|
|
341
341
|
{
|
|
342
342
|
items: s,
|
|
343
343
|
strategy: _t,
|
|
@@ -359,8 +359,8 @@ const Oi = (c) => {
|
|
|
359
359
|
ct,
|
|
360
360
|
{
|
|
361
361
|
withoutHover: !0,
|
|
362
|
-
className: U(
|
|
363
|
-
[
|
|
362
|
+
className: U(X.button, {
|
|
363
|
+
[X.disabled]: !!(T && T <= s.length || s.length === n.length)
|
|
364
364
|
}),
|
|
365
365
|
size: "s",
|
|
366
366
|
disabled: !!(T && T <= s.length || s.length === n.length),
|
|
@@ -369,7 +369,7 @@ const Oi = (c) => {
|
|
|
369
369
|
let C = null;
|
|
370
370
|
if (n) {
|
|
371
371
|
for (let S = 0; S < n.length; S++)
|
|
372
|
-
if (!s.find((
|
|
372
|
+
if (!s.find((v) => v === n[S].id)) {
|
|
373
373
|
C = n[S];
|
|
374
374
|
break;
|
|
375
375
|
}
|
|
@@ -379,10 +379,10 @@ const Oi = (c) => {
|
|
|
379
379
|
style: {
|
|
380
380
|
width: "fit-content"
|
|
381
381
|
},
|
|
382
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
382
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: X.addButton, children: [
|
|
383
383
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
384
384
|
/* @__PURE__ */ t.jsx(
|
|
385
|
-
|
|
385
|
+
b,
|
|
386
386
|
{
|
|
387
387
|
name: "Plus",
|
|
388
388
|
width: 16,
|
|
@@ -406,21 +406,21 @@ const Oi = (c) => {
|
|
|
406
406
|
}
|
|
407
407
|
),
|
|
408
408
|
d !== void 0 && /* @__PURE__ */ t.jsx(
|
|
409
|
-
|
|
409
|
+
rt,
|
|
410
410
|
{
|
|
411
411
|
tagsTitle: "Tags",
|
|
412
412
|
items: d
|
|
413
413
|
}
|
|
414
414
|
),
|
|
415
|
-
|
|
416
|
-
|
|
415
|
+
l !== void 0 && /* @__PURE__ */ t.jsx(
|
|
416
|
+
rt,
|
|
417
417
|
{
|
|
418
418
|
otherTitle: "Other",
|
|
419
|
-
items:
|
|
419
|
+
items: l
|
|
420
420
|
}
|
|
421
421
|
),
|
|
422
422
|
g !== void 0 && /* @__PURE__ */ t.jsx(
|
|
423
|
-
|
|
423
|
+
vt,
|
|
424
424
|
{
|
|
425
425
|
label: "Auto scroll interval",
|
|
426
426
|
type: "number",
|
|
@@ -435,14 +435,14 @@ const Oi = (c) => {
|
|
|
435
435
|
}
|
|
436
436
|
)
|
|
437
437
|
] });
|
|
438
|
-
}, Ie = "_title_roi3a_1", ke = "_subtitle_roi3a_5", Ce = "_header_roi3a_12", Se = "_text_roi3a_13",
|
|
438
|
+
}, Ie = "_title_roi3a_1", ke = "_subtitle_roi3a_5", Ce = "_header_roi3a_12", Se = "_text_roi3a_13", qe = "_productsBlock_roi3a_14", $e = "_top_roi3a_26", we = "_itemsBlock_roi3a_35", Be = "_typeTexts_roi3a_41", Pe = "_block_roi3a_48", Te = "_active_roi3a_61", Me = "_products_roi3a_14", Ae = "_product_roi3a_14", Oe = "_button_roi3a_80", Ee = "_disabled_roi3a_91", Re = "_image_roi3a_95", De = "_info_roi3a_102", ze = "_name_roi3a_114", Le = "_buttons_roi3a_118", Fe = "_modal_roi3a_125", Ve = "_link_roi3a_145", Ue = "_modalOptions_roi3a_151", He = "_addButton_roi3a_164", Ye = "_deleteButton_roi3a_179", We = "_closeIcon_roi3a_191", Y = {
|
|
439
439
|
title: Ie,
|
|
440
440
|
subtitle: ke,
|
|
441
441
|
header: Ce,
|
|
442
442
|
text: Se,
|
|
443
|
-
productsBlock:
|
|
444
|
-
top:
|
|
445
|
-
itemsBlock:
|
|
443
|
+
productsBlock: qe,
|
|
444
|
+
top: $e,
|
|
445
|
+
itemsBlock: we,
|
|
446
446
|
typeTexts: Be,
|
|
447
447
|
block: Pe,
|
|
448
448
|
active: Te,
|
|
@@ -466,13 +466,13 @@ function Ge({ product: c, children: i }) {
|
|
|
466
466
|
attributes: a,
|
|
467
467
|
listeners: s,
|
|
468
468
|
setNodeRef: e,
|
|
469
|
-
transform:
|
|
469
|
+
transform: l,
|
|
470
470
|
transition: d,
|
|
471
|
-
isDragging:
|
|
471
|
+
isDragging: p
|
|
472
472
|
} = gt({
|
|
473
473
|
id: c.id
|
|
474
474
|
}), _ = {
|
|
475
|
-
transform: ft.Transform.toString(
|
|
475
|
+
transform: ft.Transform.toString(l),
|
|
476
476
|
transition: d
|
|
477
477
|
};
|
|
478
478
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -480,28 +480,28 @@ function Ge({ product: c, children: i }) {
|
|
|
480
480
|
{
|
|
481
481
|
ref: e,
|
|
482
482
|
style: _,
|
|
483
|
-
className: `${Y.product} ${
|
|
483
|
+
className: `${Y.product} ${p ? Y.dragging : ""}`,
|
|
484
484
|
...a,
|
|
485
485
|
...s,
|
|
486
486
|
children: i
|
|
487
487
|
}
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const Ri = (c) => {
|
|
491
491
|
const {
|
|
492
492
|
isActiveItems: i,
|
|
493
493
|
setIsActiveItems: a,
|
|
494
494
|
items: s,
|
|
495
495
|
setItems: e,
|
|
496
|
-
title:
|
|
496
|
+
title: l,
|
|
497
497
|
subtitle: d,
|
|
498
|
-
editable:
|
|
498
|
+
editable: p = !0,
|
|
499
499
|
draggable: _ = !1,
|
|
500
500
|
deletable: u = !0,
|
|
501
|
-
addable:
|
|
501
|
+
addable: $ = !0,
|
|
502
502
|
itemsType: y,
|
|
503
503
|
itemsOptions: n,
|
|
504
|
-
addableOptions:
|
|
504
|
+
addableOptions: m = {},
|
|
505
505
|
limit: o
|
|
506
506
|
} = c, [T, g] = f.useState(null), [I, k] = f.useState(null), O = f.useRef(null), z = dt(
|
|
507
507
|
ut(ht, {
|
|
@@ -525,19 +525,19 @@ const Ei = (c) => {
|
|
|
525
525
|
top: S.top + window.scrollY,
|
|
526
526
|
left: S.left - 30
|
|
527
527
|
}), g(C);
|
|
528
|
-
},
|
|
528
|
+
}, j = (h) => {
|
|
529
529
|
const { active: C, over: S } = h;
|
|
530
530
|
if (S && C.id !== S.id) {
|
|
531
|
-
const
|
|
532
|
-
if (
|
|
533
|
-
const M = [...s], [x] = M.splice(
|
|
534
|
-
M.splice(
|
|
531
|
+
const v = s.findIndex((M) => M.id === C.id), w = s.findIndex((M) => M.id === S.id);
|
|
532
|
+
if (v !== -1 && w !== -1) {
|
|
533
|
+
const M = [...s], [x] = M.splice(v, 1);
|
|
534
|
+
M.splice(w, 0, x), e(M);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}, L = (h, C) => {
|
|
538
538
|
const S = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
539
539
|
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
540
|
-
|
|
540
|
+
b,
|
|
541
541
|
{
|
|
542
542
|
name: "DotsSixVertical",
|
|
543
543
|
hoverable: !0,
|
|
@@ -548,46 +548,46 @@ const Ei = (c) => {
|
|
|
548
548
|
y === "select" && n && /* @__PURE__ */ t.jsx(
|
|
549
549
|
st,
|
|
550
550
|
{
|
|
551
|
-
onChange: (
|
|
552
|
-
const
|
|
551
|
+
onChange: (v) => {
|
|
552
|
+
const w = [...s], M = n.find((A) => A.name === v);
|
|
553
553
|
if (!M) return;
|
|
554
|
-
const x =
|
|
554
|
+
const x = w.map((A) => A.id === h.id ? {
|
|
555
555
|
...M,
|
|
556
556
|
name: {
|
|
557
|
-
"en-US":
|
|
557
|
+
"en-US": v
|
|
558
558
|
}
|
|
559
559
|
} : A);
|
|
560
560
|
g({
|
|
561
561
|
...h,
|
|
562
562
|
name: {
|
|
563
|
-
"en-US":
|
|
563
|
+
"en-US": v
|
|
564
564
|
}
|
|
565
565
|
}), e([...x]);
|
|
566
566
|
},
|
|
567
567
|
value: h.name,
|
|
568
|
-
options: n.filter((
|
|
568
|
+
options: n.filter((v) => !s.find((w) => w.name === v.name)).map((v) => v.name)
|
|
569
569
|
}
|
|
570
570
|
),
|
|
571
571
|
/* @__PURE__ */ t.jsxs("div", { className: Y.buttons, children: [
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
p && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
573
|
+
b,
|
|
574
574
|
{
|
|
575
575
|
name: "Sliders",
|
|
576
576
|
hoverable: !0,
|
|
577
577
|
width: 20,
|
|
578
578
|
height: 20,
|
|
579
|
-
onClick: (
|
|
579
|
+
onClick: (v) => R(v, h)
|
|
580
580
|
}
|
|
581
581
|
) }),
|
|
582
582
|
u && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
583
|
-
|
|
583
|
+
b,
|
|
584
584
|
{
|
|
585
585
|
name: "Trash",
|
|
586
586
|
hoverable: !0,
|
|
587
587
|
width: 20,
|
|
588
588
|
height: 20,
|
|
589
589
|
fill: "#C12A2A",
|
|
590
|
-
onClick: () => e(s.filter((
|
|
590
|
+
onClick: () => e(s.filter((v) => v.id !== h.id))
|
|
591
591
|
}
|
|
592
592
|
) })
|
|
593
593
|
] })
|
|
@@ -610,8 +610,8 @@ const Ei = (c) => {
|
|
|
610
610
|
);
|
|
611
611
|
};
|
|
612
612
|
return /* @__PURE__ */ t.jsxs("div", { className: Y.productsBlock, children: [
|
|
613
|
-
(
|
|
614
|
-
|
|
613
|
+
(l || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Y.top, children: [
|
|
614
|
+
l && /* @__PURE__ */ t.jsx("h3", { className: Y.title, children: l }),
|
|
615
615
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
616
616
|
ot,
|
|
617
617
|
{
|
|
@@ -623,12 +623,12 @@ const Ei = (c) => {
|
|
|
623
623
|
/* @__PURE__ */ t.jsxs("div", { className: Y.products, children: [
|
|
624
624
|
d && /* @__PURE__ */ t.jsx("h5", { className: Y.subtitle, children: d }),
|
|
625
625
|
_ ? /* @__PURE__ */ t.jsx(
|
|
626
|
-
|
|
626
|
+
pt,
|
|
627
627
|
{
|
|
628
628
|
sensors: z,
|
|
629
|
-
onDragEnd:
|
|
629
|
+
onDragEnd: j,
|
|
630
630
|
children: /* @__PURE__ */ t.jsx(
|
|
631
|
-
|
|
631
|
+
mt,
|
|
632
632
|
{
|
|
633
633
|
items: s.map((h) => h.id),
|
|
634
634
|
strategy: _t,
|
|
@@ -637,7 +637,7 @@ const Ei = (c) => {
|
|
|
637
637
|
)
|
|
638
638
|
}
|
|
639
639
|
) : s.map((h, C) => L(h, C)),
|
|
640
|
-
|
|
640
|
+
$ && /* @__PURE__ */ t.jsx(
|
|
641
641
|
"div",
|
|
642
642
|
{
|
|
643
643
|
style: {
|
|
@@ -659,7 +659,7 @@ const Ei = (c) => {
|
|
|
659
659
|
let C = null;
|
|
660
660
|
if (n) {
|
|
661
661
|
for (let S = 0; S < n.length; S++)
|
|
662
|
-
if (!s.find((
|
|
662
|
+
if (!s.find((v) => v.id === n[S].id)) {
|
|
663
663
|
C = n[S];
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
@@ -667,7 +667,7 @@ const Ei = (c) => {
|
|
|
667
667
|
y === "select" && n && h.push({
|
|
668
668
|
name: C ? C.name : n[0].name,
|
|
669
669
|
id: (C == null ? void 0 : C.id) || n[0].id,
|
|
670
|
-
...
|
|
670
|
+
...m
|
|
671
671
|
}), e(h);
|
|
672
672
|
},
|
|
673
673
|
style: {
|
|
@@ -676,7 +676,7 @@ const Ei = (c) => {
|
|
|
676
676
|
children: /* @__PURE__ */ t.jsxs("div", { className: Y.addButton, children: [
|
|
677
677
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
678
678
|
/* @__PURE__ */ t.jsx(
|
|
679
|
-
|
|
679
|
+
b,
|
|
680
680
|
{
|
|
681
681
|
name: "Plus",
|
|
682
682
|
width: 16,
|
|
@@ -692,16 +692,16 @@ const Ei = (c) => {
|
|
|
692
692
|
] });
|
|
693
693
|
};
|
|
694
694
|
function Qe(c) {
|
|
695
|
-
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef:
|
|
695
|
+
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef: l, transform: d, transition: p, isDragging: _ } = gt({
|
|
696
696
|
id: i.id
|
|
697
697
|
}), u = {
|
|
698
698
|
transform: ft.Transform.toString(d),
|
|
699
|
-
transition:
|
|
699
|
+
transition: p
|
|
700
700
|
};
|
|
701
701
|
return /* @__PURE__ */ t.jsx(
|
|
702
702
|
"div",
|
|
703
703
|
{
|
|
704
|
-
ref:
|
|
704
|
+
ref: l,
|
|
705
705
|
style: u,
|
|
706
706
|
className: `${H.product} ${_ ? H.dragging : ""}`,
|
|
707
707
|
...s,
|
|
@@ -710,31 +710,31 @@ function Qe(c) {
|
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
|
-
const
|
|
713
|
+
const Di = (c) => {
|
|
714
714
|
const {
|
|
715
715
|
isActiveItems: i,
|
|
716
716
|
setIsActiveItems: a,
|
|
717
717
|
items: s,
|
|
718
718
|
setItems: e,
|
|
719
|
-
other:
|
|
719
|
+
other: l,
|
|
720
720
|
title: d,
|
|
721
|
-
subtitle:
|
|
721
|
+
subtitle: p,
|
|
722
722
|
editable: _ = !0,
|
|
723
723
|
draggable: u = !1,
|
|
724
|
-
deletable:
|
|
724
|
+
deletable: $ = !0,
|
|
725
725
|
addable: y = !0,
|
|
726
726
|
itemsType: n,
|
|
727
|
-
itemsPlaceholder:
|
|
727
|
+
itemsPlaceholder: m = "",
|
|
728
728
|
itemsOptions: o,
|
|
729
729
|
hasRangeSelector: T = !1,
|
|
730
730
|
rangeSelectorOptions: g,
|
|
731
731
|
modalOptions: I,
|
|
732
732
|
addableOptions: k = {},
|
|
733
733
|
limit: O
|
|
734
|
-
} = c, [z, R] = f.useState(null), [
|
|
734
|
+
} = c, [z, R] = f.useState(null), [j, L] = f.useState({
|
|
735
735
|
top: 0,
|
|
736
736
|
left: 0
|
|
737
|
-
}), [h, C] = f.useState(null), S = f.useRef(null), [
|
|
737
|
+
}), [h, C] = f.useState(null), S = f.useRef(null), [v, w] = f.useState(!1), M = dt(
|
|
738
738
|
ut(ht, {
|
|
739
739
|
activationConstraint: {
|
|
740
740
|
distance: 5
|
|
@@ -742,36 +742,36 @@ const Ri = (c) => {
|
|
|
742
742
|
})
|
|
743
743
|
);
|
|
744
744
|
f.useEffect(() => {
|
|
745
|
-
const
|
|
746
|
-
R(null),
|
|
745
|
+
const r = () => {
|
|
746
|
+
R(null), w(!1);
|
|
747
747
|
};
|
|
748
|
-
return document.body.addEventListener("click",
|
|
749
|
-
R(null),
|
|
748
|
+
return document.body.addEventListener("click", r), R(null), w(!1), () => {
|
|
749
|
+
R(null), w(!1), document.body.removeEventListener("click", r);
|
|
750
750
|
};
|
|
751
751
|
}, []), f.useEffect(() => {
|
|
752
752
|
if (z) {
|
|
753
|
-
const
|
|
754
|
-
e(
|
|
753
|
+
const r = [...s].map((P) => P.id === z.id ? z : P);
|
|
754
|
+
e(r);
|
|
755
755
|
}
|
|
756
756
|
}, [z]), f.useEffect(() => {
|
|
757
757
|
if (S.current && h) {
|
|
758
|
-
const
|
|
758
|
+
const r = S.current.getBoundingClientRect().height, P = window.innerHeight;
|
|
759
759
|
let N = h.top;
|
|
760
|
-
N +
|
|
760
|
+
N + r > P + window.scrollY - 200 && (N = P + window.scrollY - r - 200), N < 0 && (N = 10), L({
|
|
761
761
|
top: N,
|
|
762
762
|
left: h.left
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
}, [S.current, h]);
|
|
766
|
-
const x = (
|
|
767
|
-
|
|
768
|
-
const N =
|
|
766
|
+
const x = (r, P) => {
|
|
767
|
+
r.stopPropagation();
|
|
768
|
+
const N = r.target.getBoundingClientRect();
|
|
769
769
|
C({
|
|
770
770
|
top: N.top + window.scrollY,
|
|
771
771
|
left: N.left - 30
|
|
772
|
-
}), R(P),
|
|
773
|
-
}, A = (
|
|
774
|
-
const { active: P, over: N } =
|
|
772
|
+
}), R(P), w(!0);
|
|
773
|
+
}, A = (r) => {
|
|
774
|
+
const { active: P, over: N } = r;
|
|
775
775
|
if (N && P.id !== N.id) {
|
|
776
776
|
const E = s.findIndex((D) => D.id === P.id), K = s.findIndex((D) => D.id === N.id);
|
|
777
777
|
if (E !== -1 && K !== -1) {
|
|
@@ -779,11 +779,11 @@ const Ri = (c) => {
|
|
|
779
779
|
D.splice(K, 0, J), e(D);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
}, V = (
|
|
782
|
+
}, V = (r) => {
|
|
783
783
|
var N;
|
|
784
784
|
const P = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
785
785
|
u && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
786
|
-
|
|
786
|
+
b,
|
|
787
787
|
{
|
|
788
788
|
name: "DotsSixVertical",
|
|
789
789
|
hoverable: !0,
|
|
@@ -795,74 +795,74 @@ const Ri = (c) => {
|
|
|
795
795
|
st,
|
|
796
796
|
{
|
|
797
797
|
onChange: (E) => {
|
|
798
|
-
const D = [...s].map((J) => J.id ===
|
|
799
|
-
...
|
|
798
|
+
const D = [...s].map((J) => J.id === r.id ? {
|
|
799
|
+
...r,
|
|
800
800
|
name: {
|
|
801
801
|
"en-US": E
|
|
802
802
|
}
|
|
803
803
|
} : J);
|
|
804
804
|
R({
|
|
805
|
-
...
|
|
805
|
+
...r,
|
|
806
806
|
name: {
|
|
807
807
|
"en-US": E
|
|
808
808
|
}
|
|
809
809
|
}), e([...D]);
|
|
810
810
|
},
|
|
811
|
-
value:
|
|
811
|
+
value: r.name["en-US"],
|
|
812
812
|
options: o.filter(
|
|
813
813
|
(E) => !s.find((K) => K.name["en-US"] === E)
|
|
814
814
|
)
|
|
815
815
|
}
|
|
816
816
|
),
|
|
817
817
|
n === "input" && /* @__PURE__ */ t.jsx(
|
|
818
|
-
|
|
818
|
+
vt,
|
|
819
819
|
{
|
|
820
820
|
onChange: (E) => {
|
|
821
|
-
const D = [...s].map((J) => J.id ===
|
|
822
|
-
...
|
|
821
|
+
const D = [...s].map((J) => J.id === r.id ? {
|
|
822
|
+
...r,
|
|
823
823
|
name: {
|
|
824
824
|
"en-US": E
|
|
825
825
|
}
|
|
826
826
|
} : J);
|
|
827
827
|
e([...D]);
|
|
828
828
|
},
|
|
829
|
-
value:
|
|
830
|
-
placeholder:
|
|
829
|
+
value: r.name["en-US"],
|
|
830
|
+
placeholder: m
|
|
831
831
|
}
|
|
832
832
|
),
|
|
833
833
|
n === "image" && /* @__PURE__ */ t.jsx(
|
|
834
834
|
Tt,
|
|
835
835
|
{
|
|
836
836
|
onChange: (E) => {
|
|
837
|
-
const D = [...s].map((J) => J.id ===
|
|
838
|
-
...
|
|
837
|
+
const D = [...s].map((J) => J.id === r.id ? {
|
|
838
|
+
...r,
|
|
839
839
|
images: E
|
|
840
840
|
} : J);
|
|
841
841
|
e([...D]);
|
|
842
842
|
},
|
|
843
|
-
activeImage: (N = s.find((E) => E.id ===
|
|
843
|
+
activeImage: (N = s.find((E) => E.id === r.id)) == null ? void 0 : N.images[0]
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
846
|
/* @__PURE__ */ t.jsxs("div", { className: H.buttons, children: [
|
|
847
847
|
_ && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
848
|
-
|
|
848
|
+
b,
|
|
849
849
|
{
|
|
850
850
|
name: "Sliders",
|
|
851
851
|
hoverable: !0,
|
|
852
852
|
width: 20,
|
|
853
853
|
height: 20,
|
|
854
|
-
onClick: (E) => x(E,
|
|
854
|
+
onClick: (E) => x(E, r)
|
|
855
855
|
}
|
|
856
856
|
) }),
|
|
857
|
-
|
|
858
|
-
|
|
857
|
+
$ && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
858
|
+
b,
|
|
859
859
|
{
|
|
860
860
|
name: "Trash",
|
|
861
861
|
hoverable: !0,
|
|
862
862
|
width: 20,
|
|
863
863
|
height: 20,
|
|
864
864
|
fill: "#C12A2A",
|
|
865
|
-
onClick: () => e(s.filter((E) => E.id !==
|
|
865
|
+
onClick: () => e(s.filter((E) => E.id !== r.id))
|
|
866
866
|
}
|
|
867
867
|
) })
|
|
868
868
|
] })
|
|
@@ -870,17 +870,17 @@ const Ri = (c) => {
|
|
|
870
870
|
return u ? /* @__PURE__ */ t.jsx(
|
|
871
871
|
Qe,
|
|
872
872
|
{
|
|
873
|
-
product:
|
|
873
|
+
product: r,
|
|
874
874
|
children: P
|
|
875
875
|
},
|
|
876
|
-
|
|
876
|
+
r.id
|
|
877
877
|
) : /* @__PURE__ */ t.jsx(
|
|
878
878
|
"div",
|
|
879
879
|
{
|
|
880
880
|
className: H.product,
|
|
881
881
|
children: P
|
|
882
882
|
},
|
|
883
|
-
|
|
883
|
+
r.id
|
|
884
884
|
);
|
|
885
885
|
};
|
|
886
886
|
return /* @__PURE__ */ t.jsxs("div", { className: H.productsBlock, children: [
|
|
@@ -890,39 +890,39 @@ const Ri = (c) => {
|
|
|
890
890
|
ot,
|
|
891
891
|
{
|
|
892
892
|
current: i,
|
|
893
|
-
onChange: (
|
|
893
|
+
onChange: (r) => a == null ? void 0 : a(r)
|
|
894
894
|
}
|
|
895
895
|
)
|
|
896
896
|
] }),
|
|
897
|
-
z && _ && I &&
|
|
897
|
+
z && _ && I && v && /* @__PURE__ */ t.jsx(
|
|
898
898
|
Pt,
|
|
899
899
|
{
|
|
900
900
|
ref: S,
|
|
901
901
|
activeItem: z,
|
|
902
902
|
setActiveItem: R,
|
|
903
|
-
popupPosition:
|
|
903
|
+
popupPosition: j,
|
|
904
904
|
modalOptions: I,
|
|
905
|
-
setIsOpenModal:
|
|
905
|
+
setIsOpenModal: w
|
|
906
906
|
}
|
|
907
907
|
),
|
|
908
908
|
T && g && /* @__PURE__ */ t.jsx(kt, { ...g }),
|
|
909
909
|
/* @__PURE__ */ t.jsxs("div", { className: H.products, children: [
|
|
910
|
-
|
|
910
|
+
p && /* @__PURE__ */ t.jsx("h5", { className: H.subtitle, children: p }),
|
|
911
911
|
u ? /* @__PURE__ */ t.jsx(
|
|
912
|
-
|
|
912
|
+
pt,
|
|
913
913
|
{
|
|
914
914
|
sensors: M,
|
|
915
915
|
onDragEnd: A,
|
|
916
916
|
children: /* @__PURE__ */ t.jsx(
|
|
917
|
-
|
|
917
|
+
mt,
|
|
918
918
|
{
|
|
919
|
-
items: s.map((
|
|
919
|
+
items: s.map((r) => r.id),
|
|
920
920
|
strategy: _t,
|
|
921
|
-
children: s.map((
|
|
921
|
+
children: s.map((r) => V(r))
|
|
922
922
|
}
|
|
923
923
|
)
|
|
924
924
|
}
|
|
925
|
-
) : s.map((
|
|
925
|
+
) : s.map((r) => V(r)),
|
|
926
926
|
y && /* @__PURE__ */ t.jsx(
|
|
927
927
|
"div",
|
|
928
928
|
{
|
|
@@ -941,7 +941,7 @@ const Ri = (c) => {
|
|
|
941
941
|
size: "s",
|
|
942
942
|
disabled: !!(O && O <= s.length),
|
|
943
943
|
onClick: () => {
|
|
944
|
-
const
|
|
944
|
+
const r = [...s];
|
|
945
945
|
let P = null;
|
|
946
946
|
if (o) {
|
|
947
947
|
for (let N = 0; N < o.length; N++)
|
|
@@ -950,7 +950,7 @@ const Ri = (c) => {
|
|
|
950
950
|
break;
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
n === "select" && o ?
|
|
953
|
+
n === "select" && o ? r.push({
|
|
954
954
|
name: {
|
|
955
955
|
"en-US": P || o[0]
|
|
956
956
|
},
|
|
@@ -958,21 +958,21 @@ const Ri = (c) => {
|
|
|
958
958
|
...k,
|
|
959
959
|
maxSymbols: 100
|
|
960
960
|
// пример значения
|
|
961
|
-
}) : n === "input" ?
|
|
961
|
+
}) : n === "input" ? r.push({
|
|
962
962
|
name: {
|
|
963
963
|
"en-US": ""
|
|
964
964
|
},
|
|
965
965
|
id: et(),
|
|
966
966
|
...k,
|
|
967
967
|
maxSymbols: 100
|
|
968
|
-
}) :
|
|
968
|
+
}) : r.push({
|
|
969
969
|
name: {
|
|
970
970
|
"en-US": `Image ${s.length + 1}`
|
|
971
971
|
},
|
|
972
972
|
id: et(),
|
|
973
973
|
...k,
|
|
974
974
|
maxSymbols: 100
|
|
975
|
-
}), e(
|
|
975
|
+
}), e(r);
|
|
976
976
|
},
|
|
977
977
|
style: {
|
|
978
978
|
width: "fit-content"
|
|
@@ -980,7 +980,7 @@ const Ri = (c) => {
|
|
|
980
980
|
children: /* @__PURE__ */ t.jsxs("div", { className: H.addButton, children: [
|
|
981
981
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
982
982
|
/* @__PURE__ */ t.jsx(
|
|
983
|
-
|
|
983
|
+
b,
|
|
984
984
|
{
|
|
985
985
|
name: "Plus",
|
|
986
986
|
width: 16,
|
|
@@ -993,15 +993,15 @@ const Ri = (c) => {
|
|
|
993
993
|
}
|
|
994
994
|
)
|
|
995
995
|
] }),
|
|
996
|
-
|
|
997
|
-
|
|
996
|
+
l !== void 0 && /* @__PURE__ */ t.jsx(
|
|
997
|
+
rt,
|
|
998
998
|
{
|
|
999
999
|
otherTitle: "Other",
|
|
1000
|
-
items:
|
|
1000
|
+
items: l
|
|
1001
1001
|
}
|
|
1002
1002
|
)
|
|
1003
1003
|
] });
|
|
1004
|
-
}, Xe = "_subtitle_jql1y_1", Je = "_header_jql1y_8", Ke = "_text_jql1y_9", Ze = "_productsBlock_jql1y_10", ts = "_buttonsBlock_jql1y_11", es = "_top_jql1y_23", ss = "_itemsBlock_jql1y_32", ns = "_typeTexts_jql1y_38", is = "_block_jql1y_45", as = "_active_jql1y_58", os = "_products_jql1y_10", cs = "_product_jql1y_10",
|
|
1004
|
+
}, Xe = "_subtitle_jql1y_1", Je = "_header_jql1y_8", Ke = "_text_jql1y_9", Ze = "_productsBlock_jql1y_10", ts = "_buttonsBlock_jql1y_11", es = "_top_jql1y_23", ss = "_itemsBlock_jql1y_32", ns = "_typeTexts_jql1y_38", is = "_block_jql1y_45", as = "_active_jql1y_58", os = "_products_jql1y_10", cs = "_product_jql1y_10", ls = "_button_jql1y_11", rs = "_image_jql1y_88", ds = "_info_jql1y_95", us = "_name_jql1y_107", hs = "_buttons_jql1y_11", ps = "_modal_jql1y_118", ms = "_other_jql1y_138", _s = "_options_jql1y_144", gs = "_addButton_jql1y_150", fs = "_deleteButton_jql1y_165", Z = {
|
|
1005
1005
|
subtitle: Xe,
|
|
1006
1006
|
header: Je,
|
|
1007
1007
|
text: Ke,
|
|
@@ -1014,36 +1014,36 @@ const Ri = (c) => {
|
|
|
1014
1014
|
active: as,
|
|
1015
1015
|
products: os,
|
|
1016
1016
|
product: cs,
|
|
1017
|
-
button:
|
|
1018
|
-
image:
|
|
1017
|
+
button: ls,
|
|
1018
|
+
image: rs,
|
|
1019
1019
|
info: ds,
|
|
1020
1020
|
name: us,
|
|
1021
1021
|
buttons: hs,
|
|
1022
|
-
modal:
|
|
1023
|
-
other:
|
|
1022
|
+
modal: ps,
|
|
1023
|
+
other: ms,
|
|
1024
1024
|
options: _s,
|
|
1025
1025
|
addButton: gs,
|
|
1026
1026
|
deleteButton: fs
|
|
1027
1027
|
}, xs = (c) => {
|
|
1028
|
-
const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink:
|
|
1028
|
+
const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink: l = !0 } = c, { pages: d } = it(), [p, _] = f.useState(null), [u, $] = f.useState({
|
|
1029
1029
|
top: 0,
|
|
1030
1030
|
left: 0
|
|
1031
|
-
}), [y, n] = f.useState(null),
|
|
1031
|
+
}), [y, n] = f.useState(null), m = f.useRef(null);
|
|
1032
1032
|
f.useEffect(() => {
|
|
1033
|
-
if (
|
|
1034
|
-
const g = [...i].map((I) => I.id ===
|
|
1033
|
+
if (p) {
|
|
1034
|
+
const g = [...i].map((I) => I.id === p.id ? p : I);
|
|
1035
1035
|
a(g);
|
|
1036
1036
|
}
|
|
1037
|
-
}, [
|
|
1038
|
-
if (
|
|
1039
|
-
const g =
|
|
1037
|
+
}, [p]), f.useEffect(() => {
|
|
1038
|
+
if (m.current && y) {
|
|
1039
|
+
const g = m.current.getBoundingClientRect().height, I = window.innerHeight;
|
|
1040
1040
|
let k = y.top;
|
|
1041
|
-
k + g > I + window.scrollY - 200 && (k = I + window.scrollY - g - 200), k < 0 && (k = 10),
|
|
1041
|
+
k + g > I + window.scrollY - 200 && (k = I + window.scrollY - g - 200), k < 0 && (k = 10), $({
|
|
1042
1042
|
top: k,
|
|
1043
1043
|
left: y.left
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
|
-
}, [
|
|
1046
|
+
}, [m.current, y]);
|
|
1047
1047
|
const o = (g, I) => {
|
|
1048
1048
|
g.stopPropagation();
|
|
1049
1049
|
const k = g.target.getBoundingClientRect();
|
|
@@ -1082,7 +1082,7 @@ const Ri = (c) => {
|
|
|
1082
1082
|
),
|
|
1083
1083
|
/* @__PURE__ */ t.jsxs("div", { className: Z.buttons, children: [
|
|
1084
1084
|
/* @__PURE__ */ t.jsx("div", { className: Z.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1085
|
-
|
|
1085
|
+
b,
|
|
1086
1086
|
{
|
|
1087
1087
|
name: "Copy",
|
|
1088
1088
|
hoverable: !0,
|
|
@@ -1094,7 +1094,7 @@ const Ri = (c) => {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
) }),
|
|
1096
1096
|
/* @__PURE__ */ t.jsx("div", { className: Z.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1097
|
-
|
|
1097
|
+
b,
|
|
1098
1098
|
{
|
|
1099
1099
|
name: "Sliders",
|
|
1100
1100
|
hoverable: !0,
|
|
@@ -1106,7 +1106,7 @@ const Ri = (c) => {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
) }),
|
|
1108
1108
|
s && /* @__PURE__ */ t.jsx("div", { className: Z.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1109
|
-
|
|
1109
|
+
b,
|
|
1110
1110
|
{
|
|
1111
1111
|
name: "Trash",
|
|
1112
1112
|
hoverable: !0,
|
|
@@ -1124,14 +1124,14 @@ const Ri = (c) => {
|
|
|
1124
1124
|
},
|
|
1125
1125
|
g.id
|
|
1126
1126
|
)),
|
|
1127
|
-
|
|
1127
|
+
p && /* @__PURE__ */ t.jsx(
|
|
1128
1128
|
Mt,
|
|
1129
1129
|
{
|
|
1130
|
-
ref:
|
|
1131
|
-
activeButton:
|
|
1130
|
+
ref: m,
|
|
1131
|
+
activeButton: p,
|
|
1132
1132
|
setActiveButton: _,
|
|
1133
1133
|
popupPosition: u,
|
|
1134
|
-
editableLink:
|
|
1134
|
+
editableLink: l
|
|
1135
1135
|
}
|
|
1136
1136
|
),
|
|
1137
1137
|
e && /* @__PURE__ */ t.jsx(
|
|
@@ -1150,7 +1150,7 @@ const Ri = (c) => {
|
|
|
1150
1150
|
size: "s",
|
|
1151
1151
|
onClick: () => {
|
|
1152
1152
|
const g = [...i];
|
|
1153
|
-
|
|
1153
|
+
l ? g.push({
|
|
1154
1154
|
type: "Primary",
|
|
1155
1155
|
id: et(),
|
|
1156
1156
|
typesText: [],
|
|
@@ -1178,7 +1178,7 @@ const Ri = (c) => {
|
|
|
1178
1178
|
children: /* @__PURE__ */ t.jsxs("div", { className: Z.addButton, children: [
|
|
1179
1179
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
1180
1180
|
/* @__PURE__ */ t.jsx(
|
|
1181
|
-
|
|
1181
|
+
b,
|
|
1182
1182
|
{
|
|
1183
1183
|
name: "Plus",
|
|
1184
1184
|
width: 16,
|
|
@@ -1191,19 +1191,19 @@ const Ri = (c) => {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
)
|
|
1193
1193
|
] });
|
|
1194
|
-
},
|
|
1194
|
+
}, zi = (c) => {
|
|
1195
1195
|
const {
|
|
1196
1196
|
isActiveButtons: i,
|
|
1197
1197
|
setIsActiveButtons: a,
|
|
1198
1198
|
buttons: s,
|
|
1199
1199
|
setButtons: e,
|
|
1200
|
-
editableLink:
|
|
1200
|
+
editableLink: l = !0,
|
|
1201
1201
|
addable: d = !0,
|
|
1202
|
-
deletable:
|
|
1202
|
+
deletable: p = !0
|
|
1203
1203
|
} = c;
|
|
1204
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
1205
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1206
|
-
/* @__PURE__ */ t.jsx("h3", { className:
|
|
1204
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: bt.buttonsBlock, children: [
|
|
1205
|
+
/* @__PURE__ */ t.jsxs("div", { className: bt.top, children: [
|
|
1206
|
+
/* @__PURE__ */ t.jsx("h3", { className: bt.title, children: "Buttons" }),
|
|
1207
1207
|
/* @__PURE__ */ t.jsx(
|
|
1208
1208
|
ot,
|
|
1209
1209
|
{
|
|
@@ -1217,47 +1217,47 @@ const Ri = (c) => {
|
|
|
1217
1217
|
{
|
|
1218
1218
|
buttons: s,
|
|
1219
1219
|
setButtons: e,
|
|
1220
|
-
editableLink:
|
|
1220
|
+
editableLink: l,
|
|
1221
1221
|
addable: d,
|
|
1222
|
-
deletable:
|
|
1222
|
+
deletable: p
|
|
1223
1223
|
}
|
|
1224
1224
|
)
|
|
1225
1225
|
] }) });
|
|
1226
1226
|
};
|
|
1227
|
-
function
|
|
1228
|
-
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef:
|
|
1227
|
+
function bs(c) {
|
|
1228
|
+
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef: l, transform: d, transition: p, isDragging: _ } = gt({
|
|
1229
1229
|
id: String(i.listingId)
|
|
1230
1230
|
}), u = {
|
|
1231
1231
|
transform: ft.Transform.toString(d),
|
|
1232
|
-
transition:
|
|
1232
|
+
transition: p
|
|
1233
1233
|
};
|
|
1234
1234
|
return /* @__PURE__ */ t.jsx(
|
|
1235
1235
|
"div",
|
|
1236
1236
|
{
|
|
1237
|
-
ref:
|
|
1237
|
+
ref: l,
|
|
1238
1238
|
style: u,
|
|
1239
|
-
className: `${
|
|
1239
|
+
className: `${Q.product} ${_ ? Q.dragging : ""}`,
|
|
1240
1240
|
...s,
|
|
1241
1241
|
...e,
|
|
1242
1242
|
children: a
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
1245
|
}
|
|
1246
|
-
const
|
|
1246
|
+
const Li = (c) => {
|
|
1247
1247
|
const {
|
|
1248
1248
|
isActiveItems: i,
|
|
1249
1249
|
setIsActiveItems: a,
|
|
1250
1250
|
items: s,
|
|
1251
1251
|
setItems: e,
|
|
1252
|
-
other:
|
|
1252
|
+
other: l,
|
|
1253
1253
|
title: d,
|
|
1254
|
-
subtitle:
|
|
1254
|
+
subtitle: p,
|
|
1255
1255
|
editable: _ = !0,
|
|
1256
1256
|
draggable: u = !1,
|
|
1257
|
-
withImage:
|
|
1257
|
+
withImage: $ = !1,
|
|
1258
1258
|
deletable: y = !0,
|
|
1259
1259
|
addable: n = !0,
|
|
1260
|
-
itemsType:
|
|
1260
|
+
itemsType: m,
|
|
1261
1261
|
itemsOptions: o,
|
|
1262
1262
|
limit: T,
|
|
1263
1263
|
aspectRatio: g,
|
|
@@ -1267,7 +1267,7 @@ const zi = (c) => {
|
|
|
1267
1267
|
), [z, R] = f.useState({
|
|
1268
1268
|
top: 0,
|
|
1269
1269
|
left: 0
|
|
1270
|
-
}), [
|
|
1270
|
+
}), [j, L] = f.useState(!1), h = dt(
|
|
1271
1271
|
ut(ht, {
|
|
1272
1272
|
activationConstraint: {
|
|
1273
1273
|
distance: 5
|
|
@@ -1289,15 +1289,15 @@ const zi = (c) => {
|
|
|
1289
1289
|
}, [k]);
|
|
1290
1290
|
const C = (x, A) => {
|
|
1291
1291
|
x.stopPropagation();
|
|
1292
|
-
const V = x.target.getBoundingClientRect(),
|
|
1292
|
+
const V = x.target.getBoundingClientRect(), r = 100, P = window.innerHeight;
|
|
1293
1293
|
let N = V.top + window.scrollY;
|
|
1294
|
-
N +
|
|
1294
|
+
N + r > P && (N = P - r - 20), L(!0), R({
|
|
1295
1295
|
top: N - 80,
|
|
1296
1296
|
left: V.left - 30
|
|
1297
1297
|
}), O(A);
|
|
1298
1298
|
};
|
|
1299
1299
|
function S(x) {
|
|
1300
|
-
if (
|
|
1300
|
+
if ($)
|
|
1301
1301
|
return x ? /* @__PURE__ */ t.jsx(
|
|
1302
1302
|
"img",
|
|
1303
1303
|
{
|
|
@@ -1307,7 +1307,7 @@ const zi = (c) => {
|
|
|
1307
1307
|
height: 16
|
|
1308
1308
|
}
|
|
1309
1309
|
) : /* @__PURE__ */ t.jsx(
|
|
1310
|
-
|
|
1310
|
+
b,
|
|
1311
1311
|
{
|
|
1312
1312
|
name: "Image",
|
|
1313
1313
|
width: 16,
|
|
@@ -1316,21 +1316,21 @@ const zi = (c) => {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
|
-
const
|
|
1319
|
+
const v = (x) => {
|
|
1320
1320
|
const { active: A, over: V } = x;
|
|
1321
1321
|
if (V && A.id !== V.id) {
|
|
1322
|
-
const
|
|
1323
|
-
if (
|
|
1324
|
-
const N = [...s], [E] = N.splice(
|
|
1322
|
+
const r = s.findIndex((N) => String(N.listingId) === A.id), P = s.findIndex((N) => String(N.listingId) === V.id);
|
|
1323
|
+
if (r !== -1 && P !== -1) {
|
|
1324
|
+
const N = [...s], [E] = N.splice(r, 1);
|
|
1325
1325
|
N.splice(P, 0, E), e(N);
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
},
|
|
1329
|
-
const A = o.find((
|
|
1328
|
+
}, w = (x) => {
|
|
1329
|
+
const A = o.find((r) => x.listingId === r.id);
|
|
1330
1330
|
if (!A) return null;
|
|
1331
1331
|
const V = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1332
1332
|
u && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1333
|
-
|
|
1333
|
+
b,
|
|
1334
1334
|
{
|
|
1335
1335
|
name: "DotsSixVertical",
|
|
1336
1336
|
hoverable: !0,
|
|
@@ -1338,11 +1338,11 @@ const zi = (c) => {
|
|
|
1338
1338
|
height: 20
|
|
1339
1339
|
}
|
|
1340
1340
|
) }),
|
|
1341
|
-
|
|
1341
|
+
m === "select" && /* @__PURE__ */ t.jsx(
|
|
1342
1342
|
st,
|
|
1343
1343
|
{
|
|
1344
|
-
onChange: (
|
|
1345
|
-
const P = [...s], N = o.find((D) => D.productData.name ===
|
|
1344
|
+
onChange: (r) => {
|
|
1345
|
+
const P = [...s], N = o.find((D) => D.productData.name === r);
|
|
1346
1346
|
if (!N) return;
|
|
1347
1347
|
const E = {
|
|
1348
1348
|
listingId: N.id,
|
|
@@ -1352,43 +1352,43 @@ const zi = (c) => {
|
|
|
1352
1352
|
},
|
|
1353
1353
|
value: A.productData.name,
|
|
1354
1354
|
options: [
|
|
1355
|
-
...o.filter((
|
|
1355
|
+
...o.filter((r) => !s.find((P) => P.listingId === r.id)).map((r) => r.productData.name)
|
|
1356
1356
|
],
|
|
1357
|
-
leftAddonOptions: o.map((
|
|
1357
|
+
leftAddonOptions: o.map((r) => {
|
|
1358
1358
|
var P;
|
|
1359
1359
|
return {
|
|
1360
|
-
value:
|
|
1361
|
-
addon: S(((P =
|
|
1360
|
+
value: r.productData.name,
|
|
1361
|
+
addon: S(((P = r.productData.images[0]) == null ? void 0 : P.cfId) || "")
|
|
1362
1362
|
};
|
|
1363
1363
|
})
|
|
1364
1364
|
}
|
|
1365
1365
|
),
|
|
1366
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1367
|
-
_ && /* @__PURE__ */ t.jsx("div", { className:
|
|
1368
|
-
|
|
1366
|
+
/* @__PURE__ */ t.jsxs("div", { className: Q.buttons, children: [
|
|
1367
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: Q.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1368
|
+
b,
|
|
1369
1369
|
{
|
|
1370
1370
|
name: "Sliders",
|
|
1371
1371
|
hoverable: !0,
|
|
1372
1372
|
width: 20,
|
|
1373
1373
|
height: 20,
|
|
1374
|
-
onClick: (
|
|
1374
|
+
onClick: (r) => C(r, x)
|
|
1375
1375
|
}
|
|
1376
1376
|
) }),
|
|
1377
|
-
y && /* @__PURE__ */ t.jsx("div", { className:
|
|
1378
|
-
|
|
1377
|
+
y && /* @__PURE__ */ t.jsx("div", { className: Q.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1378
|
+
b,
|
|
1379
1379
|
{
|
|
1380
1380
|
name: "Trash",
|
|
1381
1381
|
hoverable: !0,
|
|
1382
1382
|
width: 20,
|
|
1383
1383
|
height: 20,
|
|
1384
1384
|
fill: "#C12A2A",
|
|
1385
|
-
onClick: () => e(s.filter((
|
|
1385
|
+
onClick: () => e(s.filter((r) => r !== x))
|
|
1386
1386
|
}
|
|
1387
1387
|
) })
|
|
1388
1388
|
] })
|
|
1389
1389
|
] });
|
|
1390
1390
|
return u ? /* @__PURE__ */ t.jsx(
|
|
1391
|
-
|
|
1391
|
+
bs,
|
|
1392
1392
|
{
|
|
1393
1393
|
product: x,
|
|
1394
1394
|
children: V
|
|
@@ -1397,15 +1397,15 @@ const zi = (c) => {
|
|
|
1397
1397
|
) : /* @__PURE__ */ t.jsx(
|
|
1398
1398
|
"div",
|
|
1399
1399
|
{
|
|
1400
|
-
className:
|
|
1400
|
+
className: Q.product,
|
|
1401
1401
|
children: V
|
|
1402
1402
|
},
|
|
1403
1403
|
x.listingId
|
|
1404
1404
|
);
|
|
1405
1405
|
}, M = f.useRef(null);
|
|
1406
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
1407
|
-
(d || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className:
|
|
1408
|
-
d && /* @__PURE__ */ t.jsx("h3", { className:
|
|
1406
|
+
return /* @__PURE__ */ t.jsxs("div", { className: Q.productsBlock, children: [
|
|
1407
|
+
(d || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Q.top, children: [
|
|
1408
|
+
d && /* @__PURE__ */ t.jsx("h3", { className: Q.title, children: d }),
|
|
1409
1409
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1410
1410
|
ot,
|
|
1411
1411
|
{
|
|
@@ -1414,7 +1414,7 @@ const zi = (c) => {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
)
|
|
1416
1416
|
] }),
|
|
1417
|
-
|
|
1417
|
+
j && k && /* @__PURE__ */ t.jsx(
|
|
1418
1418
|
At,
|
|
1419
1419
|
{
|
|
1420
1420
|
ref: M,
|
|
@@ -1425,23 +1425,23 @@ const zi = (c) => {
|
|
|
1425
1425
|
itemsOptions: o
|
|
1426
1426
|
}
|
|
1427
1427
|
),
|
|
1428
|
-
i && /* @__PURE__ */ t.jsxs("div", { className:
|
|
1429
|
-
|
|
1428
|
+
i && /* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
|
|
1429
|
+
p && /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: p }),
|
|
1430
1430
|
u ? /* @__PURE__ */ t.jsx(
|
|
1431
|
-
|
|
1431
|
+
pt,
|
|
1432
1432
|
{
|
|
1433
1433
|
sensors: h,
|
|
1434
|
-
onDragEnd:
|
|
1434
|
+
onDragEnd: v,
|
|
1435
1435
|
children: /* @__PURE__ */ t.jsx(
|
|
1436
|
-
|
|
1436
|
+
mt,
|
|
1437
1437
|
{
|
|
1438
1438
|
items: s.map((x) => String(x.listingId)),
|
|
1439
1439
|
strategy: _t,
|
|
1440
|
-
children: s.map((x) =>
|
|
1440
|
+
children: s.map((x) => w(x))
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
1443
1443
|
}
|
|
1444
|
-
) : s.map((x) =>
|
|
1444
|
+
) : s.map((x) => w(x)),
|
|
1445
1445
|
n && /* @__PURE__ */ t.jsx(
|
|
1446
1446
|
"div",
|
|
1447
1447
|
{
|
|
@@ -1454,7 +1454,7 @@ const zi = (c) => {
|
|
|
1454
1454
|
ct,
|
|
1455
1455
|
{
|
|
1456
1456
|
withoutHover: !0,
|
|
1457
|
-
className:
|
|
1457
|
+
className: Q.button,
|
|
1458
1458
|
size: "s",
|
|
1459
1459
|
onClick: () => {
|
|
1460
1460
|
const x = [...s];
|
|
@@ -1472,10 +1472,10 @@ const zi = (c) => {
|
|
|
1472
1472
|
style: {
|
|
1473
1473
|
width: "fit-content"
|
|
1474
1474
|
},
|
|
1475
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
1475
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: Q.addButton, children: [
|
|
1476
1476
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
1477
1477
|
/* @__PURE__ */ t.jsx(
|
|
1478
|
-
|
|
1478
|
+
b,
|
|
1479
1479
|
{
|
|
1480
1480
|
name: "Plus",
|
|
1481
1481
|
width: 16,
|
|
@@ -1497,26 +1497,26 @@ const zi = (c) => {
|
|
|
1497
1497
|
leftAddonOptions: St
|
|
1498
1498
|
}
|
|
1499
1499
|
),
|
|
1500
|
-
i &&
|
|
1501
|
-
|
|
1500
|
+
i && l !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1501
|
+
rt,
|
|
1502
1502
|
{
|
|
1503
1503
|
otherTitle: "Other",
|
|
1504
|
-
items:
|
|
1504
|
+
items: l
|
|
1505
1505
|
}
|
|
1506
1506
|
)
|
|
1507
1507
|
] });
|
|
1508
|
-
},
|
|
1509
|
-
options:
|
|
1510
|
-
price:
|
|
1508
|
+
}, js = "_options_1aiq8_1", vs = "_price_1aiq8_18", ys = "_oldPrice_1aiq8_25", Ns = "_newPrice_1aiq8_33", Is = "_animate_1aiq8_40", ks = "_appearAndBounce_1aiq8_1", Cs = "_meta_1aiq8_58", Ss = "_info_1aiq8_64", qs = "_infoRight_1aiq8_72", $s = "_buttons_1aiq8_79", ws = "_variants_1aiq8_86", Bs = "_variant_1aiq8_86", Ps = "_stock_1aiq8_104", Ts = "_variantInfo_1aiq8_111", Ms = "_quantity_1aiq8_117", As = "_count_1aiq8_124", Os = "_focused_1aiq8_141", Es = "_button_1aiq8_79", Rs = "_activeVariant_1aiq8_167", Ds = "_chargeTypes_1aiq8_171", zs = "_charge_1aiq8_171", Ls = "_chargeActive_1aiq8_196", Fs = "_title_1aiq8_204", B = {
|
|
1509
|
+
options: js,
|
|
1510
|
+
price: vs,
|
|
1511
1511
|
oldPrice: ys,
|
|
1512
1512
|
newPrice: Ns,
|
|
1513
1513
|
animate: Is,
|
|
1514
1514
|
appearAndBounce: ks,
|
|
1515
1515
|
meta: Cs,
|
|
1516
1516
|
info: Ss,
|
|
1517
|
-
infoRight:
|
|
1518
|
-
buttons:
|
|
1519
|
-
variants:
|
|
1517
|
+
infoRight: qs,
|
|
1518
|
+
buttons: $s,
|
|
1519
|
+
variants: ws,
|
|
1520
1520
|
variant: Bs,
|
|
1521
1521
|
stock: Ps,
|
|
1522
1522
|
variantInfo: Ts,
|
|
@@ -1533,16 +1533,16 @@ const zi = (c) => {
|
|
|
1533
1533
|
var It = /* @__PURE__ */ ((c) => (c.ONE_TIME = "One-Time", c.RECURRING = "Subscribe & Save", c))(It || {});
|
|
1534
1534
|
const Vs = (c) => {
|
|
1535
1535
|
var z, R;
|
|
1536
|
-
const { product: i, setIsOpen: a } = c, { variants: s } = i, [e,
|
|
1536
|
+
const { product: i, setIsOpen: a } = c, { variants: s } = i, [e, l] = f.useState(s[0]), [d, p] = f.useState(
|
|
1537
1537
|
e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
|
|
1538
|
-
), _ = xt(), [u,
|
|
1538
|
+
), _ = xt(), [u, $] = f.useState(1), { reset: y, addProductToCart: n, addProducts: m } = lt(), [o, T] = f.useState(!1), { pageContext: g } = it();
|
|
1539
1539
|
f.useEffect(() => {
|
|
1540
1540
|
T(!0);
|
|
1541
|
-
const
|
|
1542
|
-
return () => clearTimeout(
|
|
1541
|
+
const j = setTimeout(() => T(!1), 600);
|
|
1542
|
+
return () => clearTimeout(j);
|
|
1543
1543
|
}, [u]);
|
|
1544
1544
|
async function I() {
|
|
1545
|
-
await
|
|
1545
|
+
await m((g == null ? void 0 : g.products) || []), await n({
|
|
1546
1546
|
productId: i.id,
|
|
1547
1547
|
productVariantId: e.id,
|
|
1548
1548
|
quantity: u
|
|
@@ -1551,60 +1551,60 @@ const Vs = (c) => {
|
|
|
1551
1551
|
function k() {
|
|
1552
1552
|
y(), I(), _("/checkout");
|
|
1553
1553
|
}
|
|
1554
|
-
function O(
|
|
1555
|
-
if (
|
|
1556
|
-
const
|
|
1557
|
-
return `${
|
|
1558
|
-
} else if (
|
|
1559
|
-
const
|
|
1560
|
-
return `${
|
|
1561
|
-
} else if (
|
|
1562
|
-
const
|
|
1563
|
-
return `${
|
|
1554
|
+
function O(j) {
|
|
1555
|
+
if (j >= 864e5) {
|
|
1556
|
+
const v = Math.floor(j / 864e5);
|
|
1557
|
+
return `${v} ${v === 1 ? "day" : "days"}`;
|
|
1558
|
+
} else if (j >= 36e5) {
|
|
1559
|
+
const v = Math.floor(j / 36e5);
|
|
1560
|
+
return `${v} ${v === 1 ? "hour" : "hours"}`;
|
|
1561
|
+
} else if (j >= 6e4) {
|
|
1562
|
+
const v = Math.floor(j / 6e4);
|
|
1563
|
+
return `${v} ${v === 1 ? "minute" : "minutes"}`;
|
|
1564
1564
|
} else {
|
|
1565
|
-
const
|
|
1566
|
-
return `${
|
|
1565
|
+
const v = Math.floor(j / 1e3);
|
|
1566
|
+
return `${v} ${v === 1 ? "second" : "seconds"}`;
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
1569
|
return f.useEffect(() => {
|
|
1570
|
-
e.quantity && e.quantity.available === 0 &&
|
|
1570
|
+
e.quantity && e.quantity.available === 0 && $(0);
|
|
1571
1571
|
}, [e.quantity.available]), /* @__PURE__ */ t.jsxs("div", { className: B.options, children: [
|
|
1572
|
-
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: B.chargeTypes, children: e.chargeTypes.map((
|
|
1572
|
+
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: B.chargeTypes, children: e.chargeTypes.map((j) => /* @__PURE__ */ t.jsx(
|
|
1573
1573
|
"div",
|
|
1574
1574
|
{
|
|
1575
1575
|
className: U(B.charge, {
|
|
1576
|
-
[B.chargeActive]: d ===
|
|
1576
|
+
[B.chargeActive]: d === j
|
|
1577
1577
|
}),
|
|
1578
|
-
onClick: () =>
|
|
1579
|
-
children: It[
|
|
1578
|
+
onClick: () => p(j),
|
|
1579
|
+
children: It[j]
|
|
1580
1580
|
},
|
|
1581
|
-
|
|
1581
|
+
j
|
|
1582
1582
|
)) }),
|
|
1583
|
-
/* @__PURE__ */ t.jsx("div", { className: B.variants, children: s.map((
|
|
1583
|
+
/* @__PURE__ */ t.jsx("div", { className: B.variants, children: s.map((j) => {
|
|
1584
1584
|
var L, h;
|
|
1585
1585
|
return /* @__PURE__ */ t.jsxs(
|
|
1586
1586
|
"div",
|
|
1587
1587
|
{
|
|
1588
1588
|
className: U(B.variant, {
|
|
1589
|
-
[B.activeVariant]: e.id ===
|
|
1589
|
+
[B.activeVariant]: e.id === j.id
|
|
1590
1590
|
}),
|
|
1591
|
-
onClick: () =>
|
|
1591
|
+
onClick: () => l(j),
|
|
1592
1592
|
children: [
|
|
1593
1593
|
/* @__PURE__ */ t.jsxs("div", { className: B.variantInfo, children: [
|
|
1594
|
-
/* @__PURE__ */ t.jsx("span", { className: B.title, children: yt(
|
|
1594
|
+
/* @__PURE__ */ t.jsx("span", { className: B.title, children: yt(j.name) }),
|
|
1595
1595
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
1596
1596
|
"$",
|
|
1597
|
-
d === "ONE_TIME" ?
|
|
1597
|
+
d === "ONE_TIME" ? j.price.amount : j.subscriptionSettings ? j.subscriptionSettings.price.amount : "Price Not Found"
|
|
1598
1598
|
] })
|
|
1599
1599
|
] }),
|
|
1600
1600
|
/* @__PURE__ */ t.jsx("div", { children: d === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: B.stock, children: [
|
|
1601
|
-
(L =
|
|
1601
|
+
(L = j.quantity.restrictions) != null && L.max || j.quantity.available !== void 0 ? ((h = j.quantity.restrictions) == null ? void 0 : h.max) || j.quantity.available : "∞",
|
|
1602
1602
|
" ",
|
|
1603
1603
|
"in stock"
|
|
1604
1604
|
] }) })
|
|
1605
1605
|
]
|
|
1606
1606
|
},
|
|
1607
|
-
|
|
1607
|
+
j.id
|
|
1608
1608
|
);
|
|
1609
1609
|
}) }),
|
|
1610
1610
|
d === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: B.quantity, children: [
|
|
@@ -1613,11 +1613,11 @@ const Vs = (c) => {
|
|
|
1613
1613
|
{
|
|
1614
1614
|
type: "Secondary",
|
|
1615
1615
|
onClick: () => {
|
|
1616
|
-
u > 1 ?
|
|
1616
|
+
u > 1 ? $((j) => j - 1) : $(1);
|
|
1617
1617
|
},
|
|
1618
1618
|
className: B.button,
|
|
1619
1619
|
disabled: e.quantity.available && e.quantity.restrictions && u <= e.quantity.restrictions.min || e.quantity.available === 0,
|
|
1620
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1620
|
+
children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
|
|
1621
1621
|
}
|
|
1622
1622
|
),
|
|
1623
1623
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1625,7 +1625,7 @@ const Vs = (c) => {
|
|
|
1625
1625
|
{
|
|
1626
1626
|
type: "number",
|
|
1627
1627
|
value: String(u),
|
|
1628
|
-
onChange: (
|
|
1628
|
+
onChange: (j) => $(Number(j)),
|
|
1629
1629
|
max: ((z = e.quantity.restrictions) == null ? void 0 : z.max) || e.quantity.available || Number.POSITIVE_INFINITY,
|
|
1630
1630
|
min: ((R = e.quantity.restrictions) == null ? void 0 : R.min) || 0,
|
|
1631
1631
|
centered: !0,
|
|
@@ -1637,11 +1637,11 @@ const Vs = (c) => {
|
|
|
1637
1637
|
{
|
|
1638
1638
|
type: "Secondary",
|
|
1639
1639
|
onClick: () => {
|
|
1640
|
-
|
|
1640
|
+
$((j) => j + 1);
|
|
1641
1641
|
},
|
|
1642
1642
|
className: B.button,
|
|
1643
1643
|
disabled: !!(e.quantity.available && e.quantity.restrictions && u >= e.quantity.restrictions.max || e.quantity.available === 0),
|
|
1644
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1644
|
+
children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
|
|
1645
1645
|
}
|
|
1646
1646
|
)
|
|
1647
1647
|
] }),
|
|
@@ -1650,7 +1650,7 @@ const Vs = (c) => {
|
|
|
1650
1650
|
/* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
|
|
1651
1651
|
/* @__PURE__ */ t.jsxs("div", { className: B.infoRight, children: [
|
|
1652
1652
|
/* @__PURE__ */ t.jsx(
|
|
1653
|
-
|
|
1653
|
+
b,
|
|
1654
1654
|
{
|
|
1655
1655
|
name: "Lightning",
|
|
1656
1656
|
fill: "#FF3F19",
|
|
@@ -1711,7 +1711,7 @@ const Vs = (c) => {
|
|
|
1711
1711
|
)
|
|
1712
1712
|
] })
|
|
1713
1713
|
] });
|
|
1714
|
-
}, Us = "_button_14q75_1", Hs = "_login_14q75_14", Ys = "_signUp_14q75_18", Ws = "_buttons_14q75_23", Gs = "_modal_14q75_32", Qs = "_closing_14q75_64", Xs = "_info_14q75_113", Js = "_top_14q75_120", Ks = "_title_14q75_131", Zs = "_clear_14q75_138", tn = "_activeClear_14q75_145", en = "_count_14q75_149", sn = "_cart_14q75_164", nn = "_empty_14q75_172", an = "_product_14q75_198", on = "_products_14q75_207", cn = "_image_14q75_215",
|
|
1714
|
+
}, Us = "_button_14q75_1", Hs = "_login_14q75_14", Ys = "_signUp_14q75_18", Ws = "_buttons_14q75_23", Gs = "_modal_14q75_32", Qs = "_closing_14q75_64", Xs = "_info_14q75_113", Js = "_top_14q75_120", Ks = "_title_14q75_131", Zs = "_clear_14q75_138", tn = "_activeClear_14q75_145", en = "_count_14q75_149", sn = "_cart_14q75_164", nn = "_empty_14q75_172", an = "_product_14q75_198", on = "_products_14q75_207", cn = "_image_14q75_215", ln = "_productInfo_14q75_230", rn = "_content_14q75_237", dn = "_name_14q75_243", un = "_price_14q75_249", hn = "_productButtons_14q75_255", pn = "_productButton_14q75_255", mn = "_productCount_14q75_272", _n = "_bottom_14q75_289", gn = "_subtotal_14q75_297", fn = "_block_14q75_305", xn = "_shoppingCount_14q75_312", bn = "_total_14q75_332", jn = "_link_14q75_338", vn = "_userInfo_14q75_345", yn = "_pagesMobileModal_14q75_356", Nn = "_pagesMobileModalContent_14q75_370", In = "_pagesMobileModalHeader_14q75_376", kn = "_pagesMobileModalFooter_14q75_386", q = {
|
|
1715
1715
|
button: Us,
|
|
1716
1716
|
login: Hs,
|
|
1717
1717
|
signUp: Ys,
|
|
@@ -1733,63 +1733,63 @@ const Vs = (c) => {
|
|
|
1733
1733
|
product: an,
|
|
1734
1734
|
products: on,
|
|
1735
1735
|
image: cn,
|
|
1736
|
-
productInfo:
|
|
1737
|
-
content:
|
|
1736
|
+
productInfo: ln,
|
|
1737
|
+
content: rn,
|
|
1738
1738
|
name: dn,
|
|
1739
1739
|
price: un,
|
|
1740
1740
|
productButtons: hn,
|
|
1741
|
-
productButton:
|
|
1742
|
-
productCount:
|
|
1741
|
+
productButton: pn,
|
|
1742
|
+
productCount: mn,
|
|
1743
1743
|
bottom: _n,
|
|
1744
1744
|
subtotal: gn,
|
|
1745
1745
|
block: fn,
|
|
1746
1746
|
shoppingCount: xn,
|
|
1747
|
-
total:
|
|
1748
|
-
link:
|
|
1749
|
-
userInfo:
|
|
1747
|
+
total: bn,
|
|
1748
|
+
link: jn,
|
|
1749
|
+
userInfo: vn,
|
|
1750
1750
|
pagesMobileModal: yn,
|
|
1751
1751
|
pagesMobileModalContent: Nn,
|
|
1752
1752
|
pagesMobileModalHeader: In,
|
|
1753
1753
|
pagesMobileModalFooter: kn
|
|
1754
|
-
},
|
|
1754
|
+
}, Fi = (c) => {
|
|
1755
1755
|
const { shopping: i, signUp: a, isShowUserInfo: s = !0 } = c;
|
|
1756
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
1756
|
+
return /* @__PURE__ */ t.jsxs("div", { className: q.buttons, children: [
|
|
1757
1757
|
i && /* @__PURE__ */ t.jsx(Cn, {}),
|
|
1758
1758
|
s && /* @__PURE__ */ t.jsx(Bt, { signUp: a })
|
|
1759
1759
|
] });
|
|
1760
1760
|
}, Cn = () => {
|
|
1761
|
-
const [c, i] = f.useState(!1), [a, s] = f.useState([]), { cart: e } =
|
|
1761
|
+
const [c, i] = f.useState(!1), [a, s] = f.useState([]), { cart: e } = lt(), { pageContext: l } = it();
|
|
1762
1762
|
function d(n) {
|
|
1763
1763
|
if (n.variants.length > 0) {
|
|
1764
|
-
for (let
|
|
1764
|
+
for (let m = 0; m < e.parts.length; m++)
|
|
1765
1765
|
for (let o = 0; o < n.variants.length; o++)
|
|
1766
|
-
if (n.variants[o] && e.parts[
|
|
1767
|
-
return e.parts[
|
|
1766
|
+
if (n.variants[o] && e.parts[m].productVariantId === n.variants[o].id)
|
|
1767
|
+
return e.parts[m].productVariantId;
|
|
1768
1768
|
}
|
|
1769
1769
|
return n.variants[0].id;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
for (let
|
|
1771
|
+
function p(n) {
|
|
1772
|
+
for (let m = 0; m < e.parts.length; m++)
|
|
1773
1773
|
for (let o = 0; o < n.variants.length; o++)
|
|
1774
|
-
if (n.variants[o] && e.parts[
|
|
1775
|
-
return e.parts[
|
|
1774
|
+
if (n.variants[o] && e.parts[m].productVariantId === n.variants[o].id)
|
|
1775
|
+
return e.parts[m].quantity;
|
|
1776
1776
|
}
|
|
1777
1777
|
f.useEffect(() => {
|
|
1778
1778
|
(async () => {
|
|
1779
1779
|
var g;
|
|
1780
|
-
const
|
|
1780
|
+
const m = e.parts.map((I) => String(I.productId)), T = (((g = l == null ? void 0 : l.products) == null ? void 0 : g.filter((I) => m.includes(String(I.id)))) || []).map((I) => ({
|
|
1781
1781
|
...I,
|
|
1782
1782
|
activeVariantId: d(I),
|
|
1783
|
-
quantity:
|
|
1783
|
+
quantity: p(I)
|
|
1784
1784
|
}));
|
|
1785
1785
|
s(T);
|
|
1786
1786
|
})();
|
|
1787
1787
|
}, [e.parts]);
|
|
1788
1788
|
function _(n) {
|
|
1789
|
-
var
|
|
1790
|
-
return !n || !(n != null && n.variants) ? !1 : (
|
|
1789
|
+
var m;
|
|
1790
|
+
return !n || !(n != null && n.variants) ? !1 : (m = n.variants.find((o) => o.id === n.activeVariantId)) == null ? void 0 : m.subscriptionSettings;
|
|
1791
1791
|
}
|
|
1792
|
-
const u = e.parts.length > 0 && a.length > 0 && !_(a[0]), [
|
|
1792
|
+
const u = e.parts.length > 0 && a.length > 0 && !_(a[0]), [$, y] = f.useState(!1);
|
|
1793
1793
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1794
1794
|
/* @__PURE__ */ t.jsxs(
|
|
1795
1795
|
F,
|
|
@@ -1804,13 +1804,13 @@ const Vs = (c) => {
|
|
|
1804
1804
|
},
|
|
1805
1805
|
children: [
|
|
1806
1806
|
/* @__PURE__ */ t.jsx(
|
|
1807
|
-
|
|
1807
|
+
b,
|
|
1808
1808
|
{
|
|
1809
1809
|
name: "Handbag",
|
|
1810
1810
|
fill: "var(--text-primary)"
|
|
1811
1811
|
}
|
|
1812
1812
|
),
|
|
1813
|
-
u && /* @__PURE__ */ t.jsx("div", { className:
|
|
1813
|
+
u && /* @__PURE__ */ t.jsx("div", { className: q.shoppingCount, children: e.parts.length })
|
|
1814
1814
|
]
|
|
1815
1815
|
}
|
|
1816
1816
|
),
|
|
@@ -1828,26 +1828,26 @@ const Vs = (c) => {
|
|
|
1828
1828
|
{
|
|
1829
1829
|
activeProducts: a,
|
|
1830
1830
|
isCartNotEmpty: u,
|
|
1831
|
-
isOpen:
|
|
1831
|
+
isOpen: $
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
1834
1834
|
}
|
|
1835
1835
|
)
|
|
1836
1836
|
] });
|
|
1837
1837
|
}, Sn = (c) => {
|
|
1838
|
-
const { activeProducts: i, isCartNotEmpty: a, isOpen: s } = c, { cart: e, reset:
|
|
1838
|
+
const { activeProducts: i, isCartNotEmpty: a, isOpen: s } = c, { cart: e, reset: l, getTotalAndDiscount: d, updateQuantityOfProduct: p } = lt(), _ = xt();
|
|
1839
1839
|
function u(n) {
|
|
1840
1840
|
_(n);
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1843
|
-
n.quantity &&
|
|
1842
|
+
function $(n) {
|
|
1843
|
+
n.quantity && p({
|
|
1844
1844
|
productId: n.id,
|
|
1845
1845
|
productVariantId: n.activeVariantId,
|
|
1846
1846
|
quantity: n.quantity + 1
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
1849
|
function y(n) {
|
|
1850
|
-
n.quantity &&
|
|
1850
|
+
n.quantity && p({
|
|
1851
1851
|
productId: n.id,
|
|
1852
1852
|
productVariantId: n.activeVariantId,
|
|
1853
1853
|
quantity: n.quantity - 1
|
|
@@ -1856,35 +1856,35 @@ const Vs = (c) => {
|
|
|
1856
1856
|
return /* @__PURE__ */ t.jsxs(
|
|
1857
1857
|
"div",
|
|
1858
1858
|
{
|
|
1859
|
-
className: U(
|
|
1860
|
-
[
|
|
1859
|
+
className: U(q.modal, {
|
|
1860
|
+
[q.closing]: !s
|
|
1861
1861
|
}),
|
|
1862
1862
|
onClick: (n) => n.stopPropagation(),
|
|
1863
1863
|
children: [
|
|
1864
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1865
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1866
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1867
|
-
a && /* @__PURE__ */ t.jsx("div", { className:
|
|
1864
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.top, children: [
|
|
1865
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.info, children: [
|
|
1866
|
+
/* @__PURE__ */ t.jsx("span", { className: q.title, children: "Cart" }),
|
|
1867
|
+
a && /* @__PURE__ */ t.jsx("div", { className: q.count, children: e.parts.length })
|
|
1868
1868
|
] }),
|
|
1869
1869
|
/* @__PURE__ */ t.jsx(
|
|
1870
1870
|
"button",
|
|
1871
1871
|
{
|
|
1872
|
-
className: U(
|
|
1873
|
-
[
|
|
1872
|
+
className: U(q.clear, {
|
|
1873
|
+
[q.activeClear]: a
|
|
1874
1874
|
}),
|
|
1875
1875
|
disabled: !a,
|
|
1876
|
-
onClick:
|
|
1876
|
+
onClick: l,
|
|
1877
1877
|
children: "Clear all"
|
|
1878
1878
|
}
|
|
1879
1879
|
)
|
|
1880
1880
|
] }),
|
|
1881
|
-
a ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
1882
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1881
|
+
a ? /* @__PURE__ */ t.jsxs("div", { className: q.cart, children: [
|
|
1882
|
+
/* @__PURE__ */ t.jsx("div", { className: q.products, children: i.map((n) => /* @__PURE__ */ t.jsxs(
|
|
1883
1883
|
"div",
|
|
1884
1884
|
{
|
|
1885
|
-
className:
|
|
1885
|
+
className: q.product,
|
|
1886
1886
|
children: [
|
|
1887
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1887
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.productInfo, children: [
|
|
1888
1888
|
n.images.length > 0 ? /* @__PURE__ */ t.jsx(
|
|
1889
1889
|
"img",
|
|
1890
1890
|
{
|
|
@@ -1892,24 +1892,24 @@ const Vs = (c) => {
|
|
|
1892
1892
|
alt: "image",
|
|
1893
1893
|
width: "100%",
|
|
1894
1894
|
height: "100%",
|
|
1895
|
-
className:
|
|
1895
|
+
className: q.image
|
|
1896
1896
|
}
|
|
1897
|
-
) : /* @__PURE__ */ t.jsx("div", { className:
|
|
1898
|
-
|
|
1897
|
+
) : /* @__PURE__ */ t.jsx("div", { className: q.image, children: /* @__PURE__ */ t.jsx(
|
|
1898
|
+
b,
|
|
1899
1899
|
{
|
|
1900
1900
|
name: "Image",
|
|
1901
1901
|
fill: "var(--text-secondary)"
|
|
1902
1902
|
}
|
|
1903
1903
|
) }),
|
|
1904
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1905
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1906
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1904
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.content, children: [
|
|
1905
|
+
/* @__PURE__ */ t.jsx("div", { className: q.name, children: yt(n.name) }),
|
|
1906
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.price, children: [
|
|
1907
1907
|
"$",
|
|
1908
|
-
n.variants.find((
|
|
1908
|
+
n.variants.find((m) => m.id === n.activeVariantId).price.amount * ((n == null ? void 0 : n.quantity) || 1)
|
|
1909
1909
|
] })
|
|
1910
1910
|
] })
|
|
1911
1911
|
] }),
|
|
1912
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1912
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.productButtons, children: [
|
|
1913
1913
|
/* @__PURE__ */ t.jsx(
|
|
1914
1914
|
F,
|
|
1915
1915
|
{
|
|
@@ -1917,10 +1917,10 @@ const Vs = (c) => {
|
|
|
1917
1917
|
onClick: () => {
|
|
1918
1918
|
n.quantity !== 1 && y(n);
|
|
1919
1919
|
},
|
|
1920
|
-
className:
|
|
1920
|
+
className: q.productButton,
|
|
1921
1921
|
disabled: n.quantity === 1,
|
|
1922
1922
|
children: /* @__PURE__ */ t.jsx(
|
|
1923
|
-
|
|
1923
|
+
b,
|
|
1924
1924
|
{
|
|
1925
1925
|
name: "Minus",
|
|
1926
1926
|
fill: "#757575",
|
|
@@ -1930,16 +1930,16 @@ const Vs = (c) => {
|
|
|
1930
1930
|
)
|
|
1931
1931
|
}
|
|
1932
1932
|
),
|
|
1933
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1933
|
+
/* @__PURE__ */ t.jsx("div", { className: q.productCount, children: n.quantity }),
|
|
1934
1934
|
/* @__PURE__ */ t.jsx(
|
|
1935
1935
|
F,
|
|
1936
1936
|
{
|
|
1937
1937
|
type: "Secondary",
|
|
1938
|
-
onClick: () =>
|
|
1939
|
-
className:
|
|
1940
|
-
disabled: n.quantity === n.variants.find((
|
|
1938
|
+
onClick: () => $(n),
|
|
1939
|
+
className: q.productButton,
|
|
1940
|
+
disabled: n.quantity === n.variants.find((m) => m.id === n.activeVariantId).quantity.available,
|
|
1941
1941
|
children: /* @__PURE__ */ t.jsx(
|
|
1942
|
-
|
|
1942
|
+
b,
|
|
1943
1943
|
{
|
|
1944
1944
|
name: "Plus",
|
|
1945
1945
|
fill: "#757575",
|
|
@@ -1954,12 +1954,12 @@ const Vs = (c) => {
|
|
|
1954
1954
|
},
|
|
1955
1955
|
n.id
|
|
1956
1956
|
)) }),
|
|
1957
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1958
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1959
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1957
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.bottom, children: [
|
|
1958
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.subtotal, children: [
|
|
1959
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.block, children: [
|
|
1960
1960
|
/* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
|
|
1961
1961
|
/* @__PURE__ */ t.jsx(
|
|
1962
|
-
|
|
1962
|
+
b,
|
|
1963
1963
|
{
|
|
1964
1964
|
name: "Info",
|
|
1965
1965
|
width: 20,
|
|
@@ -1968,20 +1968,20 @@ const Vs = (c) => {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
)
|
|
1970
1970
|
] }),
|
|
1971
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1971
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.total, children: [
|
|
1972
1972
|
"$",
|
|
1973
1973
|
d().total
|
|
1974
1974
|
] })
|
|
1975
1975
|
] }),
|
|
1976
1976
|
/* @__PURE__ */ t.jsx(F, { onClick: () => u("/checkout"), children: "Checkout" })
|
|
1977
1977
|
] })
|
|
1978
|
-
] }) : /* @__PURE__ */ t.jsx(
|
|
1978
|
+
] }) : /* @__PURE__ */ t.jsx(qn, {})
|
|
1979
1979
|
]
|
|
1980
1980
|
}
|
|
1981
1981
|
);
|
|
1982
|
-
},
|
|
1982
|
+
}, qn = () => /* @__PURE__ */ t.jsxs("div", { className: q.empty, children: [
|
|
1983
1983
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1984
|
-
|
|
1984
|
+
b,
|
|
1985
1985
|
{
|
|
1986
1986
|
name: "Handbag",
|
|
1987
1987
|
fill: "var(--text-secondary)"
|
|
@@ -1995,14 +1995,14 @@ const Vs = (c) => {
|
|
|
1995
1995
|
"a",
|
|
1996
1996
|
{
|
|
1997
1997
|
href: "/products",
|
|
1998
|
-
className:
|
|
1998
|
+
className: q.link,
|
|
1999
1999
|
children: "view products"
|
|
2000
2000
|
}
|
|
2001
2001
|
)
|
|
2002
2002
|
] })
|
|
2003
2003
|
] }), Bt = ({ signUp: c, close: i }) => {
|
|
2004
2004
|
const a = JSON.parse(localStorage.getItem("token") || "{}"), { data: s } = a, e = xt();
|
|
2005
|
-
function
|
|
2005
|
+
function l(_) {
|
|
2006
2006
|
window.location.pathname.includes("/admin/builder") || e(_);
|
|
2007
2007
|
}
|
|
2008
2008
|
if (!s)
|
|
@@ -2011,7 +2011,7 @@ const Vs = (c) => {
|
|
|
2011
2011
|
F,
|
|
2012
2012
|
{
|
|
2013
2013
|
onClick: () => {
|
|
2014
|
-
|
|
2014
|
+
l("/customer-dash"), i == null || i();
|
|
2015
2015
|
},
|
|
2016
2016
|
type: "Secondary",
|
|
2017
2017
|
style: {
|
|
@@ -2024,7 +2024,7 @@ const Vs = (c) => {
|
|
|
2024
2024
|
F,
|
|
2025
2025
|
{
|
|
2026
2026
|
onClick: () => {
|
|
2027
|
-
|
|
2027
|
+
l("/customer-dash"), i == null || i();
|
|
2028
2028
|
},
|
|
2029
2029
|
type: "Primary",
|
|
2030
2030
|
style: {
|
|
@@ -2035,29 +2035,29 @@ const Vs = (c) => {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
)
|
|
2037
2037
|
] });
|
|
2038
|
-
const [d,
|
|
2038
|
+
const [d, p] = f.useState("test-email@gmail.com");
|
|
2039
2039
|
return f.useEffect(() => {
|
|
2040
2040
|
(async () => {
|
|
2041
2041
|
const u = Et(s);
|
|
2042
|
-
|
|
2042
|
+
p(u.email);
|
|
2043
2043
|
})();
|
|
2044
2044
|
}, [s]), /* @__PURE__ */ t.jsx(
|
|
2045
2045
|
"div",
|
|
2046
2046
|
{
|
|
2047
|
-
className:
|
|
2047
|
+
className: q.userInfo,
|
|
2048
2048
|
onClick: () => {
|
|
2049
|
-
|
|
2049
|
+
l("/customer-dash"), i == null || i();
|
|
2050
2050
|
},
|
|
2051
2051
|
children: /* @__PURE__ */ t.jsx("div", { children: d || "test-email@gmail.com" })
|
|
2052
2052
|
}
|
|
2053
2053
|
);
|
|
2054
|
-
},
|
|
2054
|
+
}, $n = ({
|
|
2055
2055
|
children: c,
|
|
2056
2056
|
logo: i,
|
|
2057
2057
|
setIsOpen: a,
|
|
2058
2058
|
signUp: s
|
|
2059
2059
|
}) => {
|
|
2060
|
-
const { setIsOpen: e } =
|
|
2060
|
+
const { setIsOpen: e } = qt(), l = () => {
|
|
2061
2061
|
e(!1), setTimeout(() => {
|
|
2062
2062
|
a(!1), e(!0);
|
|
2063
2063
|
}, 300);
|
|
@@ -2065,18 +2065,18 @@ const Vs = (c) => {
|
|
|
2065
2065
|
return /* @__PURE__ */ t.jsxs(
|
|
2066
2066
|
"div",
|
|
2067
2067
|
{
|
|
2068
|
-
className:
|
|
2068
|
+
className: q.pagesMobileModal,
|
|
2069
2069
|
onClick: (d) => d.stopPropagation(),
|
|
2070
2070
|
children: [
|
|
2071
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2071
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.pagesMobileModalHeader, children: [
|
|
2072
2072
|
/* @__PURE__ */ t.jsx("div", { children: i }),
|
|
2073
2073
|
/* @__PURE__ */ t.jsx(
|
|
2074
2074
|
F,
|
|
2075
2075
|
{
|
|
2076
2076
|
type: "Secondary",
|
|
2077
|
-
onClick:
|
|
2077
|
+
onClick: l,
|
|
2078
2078
|
children: /* @__PURE__ */ t.jsx(
|
|
2079
|
-
|
|
2079
|
+
b,
|
|
2080
2080
|
{
|
|
2081
2081
|
name: "X",
|
|
2082
2082
|
fill: "var(--text-primary)"
|
|
@@ -2085,27 +2085,27 @@ const Vs = (c) => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
)
|
|
2087
2087
|
] }),
|
|
2088
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2089
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2088
|
+
/* @__PURE__ */ t.jsx("div", { className: q.pagesMobileModalContent, children: c }),
|
|
2089
|
+
/* @__PURE__ */ t.jsx("div", { className: q.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
|
|
2090
2090
|
Bt,
|
|
2091
2091
|
{
|
|
2092
2092
|
signUp: s,
|
|
2093
|
-
close:
|
|
2093
|
+
close: l
|
|
2094
2094
|
}
|
|
2095
2095
|
) })
|
|
2096
2096
|
]
|
|
2097
2097
|
}
|
|
2098
2098
|
);
|
|
2099
|
-
},
|
|
2099
|
+
}, Vi = ({
|
|
2100
2100
|
children: c,
|
|
2101
2101
|
logo: i,
|
|
2102
2102
|
signUp: a
|
|
2103
2103
|
}) => {
|
|
2104
2104
|
const [s, e] = f.useState(!1);
|
|
2105
2105
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2106
|
-
/* @__PURE__ */ t.jsx(
|
|
2106
|
+
/* @__PURE__ */ t.jsx(wn, { setIsOpenModal: e }),
|
|
2107
2107
|
s && /* @__PURE__ */ t.jsx(Nt, { close: () => e(!1), children: /* @__PURE__ */ t.jsx(
|
|
2108
|
-
|
|
2108
|
+
$n,
|
|
2109
2109
|
{
|
|
2110
2110
|
logo: i,
|
|
2111
2111
|
setIsOpen: e,
|
|
@@ -2114,7 +2114,7 @@ const Vs = (c) => {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
) })
|
|
2116
2116
|
] });
|
|
2117
|
-
},
|
|
2117
|
+
}, wn = (c) => {
|
|
2118
2118
|
const { setIsOpenModal: i } = c;
|
|
2119
2119
|
return /* @__PURE__ */ t.jsx(
|
|
2120
2120
|
F,
|
|
@@ -2127,7 +2127,7 @@ const Vs = (c) => {
|
|
|
2127
2127
|
a.stopPropagation(), window.location.pathname.includes("/admin/builder") || i(!0);
|
|
2128
2128
|
},
|
|
2129
2129
|
children: /* @__PURE__ */ t.jsx(
|
|
2130
|
-
|
|
2130
|
+
b,
|
|
2131
2131
|
{
|
|
2132
2132
|
name: "List",
|
|
2133
2133
|
fill: "var(--text-primary)"
|
|
@@ -2147,8 +2147,8 @@ const Vs = (c) => {
|
|
|
2147
2147
|
copyText: Dn,
|
|
2148
2148
|
copyTextMobile: zn,
|
|
2149
2149
|
copyTextMiniMobile: Ln
|
|
2150
|
-
},
|
|
2151
|
-
const { isOpenModal: i, setIsOpenModal: a } =
|
|
2150
|
+
}, Ui = ({ title: c = "Copy Product Link" }) => {
|
|
2151
|
+
const { isOpenModal: i, setIsOpenModal: a } = $t();
|
|
2152
2152
|
function s() {
|
|
2153
2153
|
a(!0);
|
|
2154
2154
|
}
|
|
@@ -2162,7 +2162,7 @@ const Vs = (c) => {
|
|
|
2162
2162
|
},
|
|
2163
2163
|
type: "Secondary",
|
|
2164
2164
|
children: /* @__PURE__ */ t.jsx(
|
|
2165
|
-
|
|
2165
|
+
b,
|
|
2166
2166
|
{
|
|
2167
2167
|
name: "Share",
|
|
2168
2168
|
fill: "#757575",
|
|
@@ -2174,20 +2174,20 @@ const Vs = (c) => {
|
|
|
2174
2174
|
i && /* @__PURE__ */ t.jsx(Nt, { close: a, children: /* @__PURE__ */ t.jsx(Fn, { title: c }) })
|
|
2175
2175
|
] });
|
|
2176
2176
|
}, Fn = ({ title: c = "Copy Product Link" }) => {
|
|
2177
|
-
const { setIsOpenModal: i } =
|
|
2177
|
+
const { setIsOpenModal: i } = $t(), { notification: a, setNotification: s } = wt(), { setIsOpen: e } = qt(), l = window.location.href;
|
|
2178
2178
|
function d() {
|
|
2179
|
-
navigator.clipboard.writeText(
|
|
2179
|
+
navigator.clipboard.writeText(l), s({
|
|
2180
2180
|
message: "Link copied to clipboard",
|
|
2181
2181
|
status: "success"
|
|
2182
2182
|
});
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function p() {
|
|
2185
2185
|
e(!1), setTimeout(() => {
|
|
2186
2186
|
i(!1), e(!0);
|
|
2187
2187
|
}, 300);
|
|
2188
2188
|
}
|
|
2189
|
-
function _(u,
|
|
2190
|
-
return u.length >
|
|
2189
|
+
function _(u, $) {
|
|
2190
|
+
return u.length > $ ? u.slice(0, $) + "..." : u;
|
|
2191
2191
|
}
|
|
2192
2192
|
return /* @__PURE__ */ t.jsxs(
|
|
2193
2193
|
"div",
|
|
@@ -2198,11 +2198,11 @@ const Vs = (c) => {
|
|
|
2198
2198
|
/* @__PURE__ */ t.jsxs("div", { className: tt.header, children: [
|
|
2199
2199
|
/* @__PURE__ */ t.jsx("div", { className: tt.title, children: c }),
|
|
2200
2200
|
/* @__PURE__ */ t.jsx(
|
|
2201
|
-
|
|
2201
|
+
b,
|
|
2202
2202
|
{
|
|
2203
2203
|
name: "X",
|
|
2204
2204
|
fill: "#757575",
|
|
2205
|
-
onClick:
|
|
2205
|
+
onClick: p,
|
|
2206
2206
|
hoverable: !0
|
|
2207
2207
|
}
|
|
2208
2208
|
)
|
|
@@ -2217,9 +2217,9 @@ const Vs = (c) => {
|
|
|
2217
2217
|
flex: 1
|
|
2218
2218
|
},
|
|
2219
2219
|
children: [
|
|
2220
|
-
/* @__PURE__ */ t.jsx("div", { className: tt.copyText, children: _(
|
|
2221
|
-
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMobile, children: _(
|
|
2222
|
-
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMiniMobile, children: _(
|
|
2220
|
+
/* @__PURE__ */ t.jsx("div", { className: tt.copyText, children: _(l, 100) }),
|
|
2221
|
+
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMobile, children: _(l, 40) }),
|
|
2222
|
+
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMiniMobile, children: _(l, 20) })
|
|
2223
2223
|
]
|
|
2224
2224
|
}
|
|
2225
2225
|
),
|
|
@@ -2228,7 +2228,7 @@ const Vs = (c) => {
|
|
|
2228
2228
|
{
|
|
2229
2229
|
type: "Secondary",
|
|
2230
2230
|
onClick: d,
|
|
2231
|
-
children: a ? /* @__PURE__ */ t.jsx(
|
|
2231
|
+
children: a ? /* @__PURE__ */ t.jsx(b, { name: "Check" }) : /* @__PURE__ */ t.jsx(b, { name: "Copy" })
|
|
2232
2232
|
}
|
|
2233
2233
|
)
|
|
2234
2234
|
] })
|
|
@@ -2241,12 +2241,12 @@ const Vs = (c) => {
|
|
|
2241
2241
|
icon: Hn,
|
|
2242
2242
|
open: Yn,
|
|
2243
2243
|
content: Wn
|
|
2244
|
-
},
|
|
2245
|
-
const [s, e] = f.useState(a), [
|
|
2244
|
+
}, Hi = ({ title: c, content: i, defaultOpen: a = !1 }) => {
|
|
2245
|
+
const [s, e] = f.useState(a), [l, d] = f.useState(0), p = f.useRef(null), _ = () => {
|
|
2246
2246
|
e(!s);
|
|
2247
2247
|
};
|
|
2248
2248
|
return f.useEffect(() => {
|
|
2249
|
-
|
|
2249
|
+
p.current && d(s ? p.current.scrollHeight : 0);
|
|
2250
2250
|
}, [s]), /* @__PURE__ */ t.jsxs("div", { className: at.accordion, children: [
|
|
2251
2251
|
/* @__PURE__ */ t.jsxs(
|
|
2252
2252
|
"div",
|
|
@@ -2255,21 +2255,21 @@ const Vs = (c) => {
|
|
|
2255
2255
|
onClick: _,
|
|
2256
2256
|
children: [
|
|
2257
2257
|
/* @__PURE__ */ t.jsx("h5", { id: "h5", children: c }),
|
|
2258
|
-
/* @__PURE__ */ t.jsx("div", { className: U(at.icon, { [at.open]: s }), children: /* @__PURE__ */ t.jsx(
|
|
2258
|
+
/* @__PURE__ */ t.jsx("div", { className: U(at.icon, { [at.open]: s }), children: /* @__PURE__ */ t.jsx(b, { name: "CaretDown" }) })
|
|
2259
2259
|
]
|
|
2260
2260
|
}
|
|
2261
2261
|
),
|
|
2262
2262
|
/* @__PURE__ */ t.jsx(
|
|
2263
2263
|
"div",
|
|
2264
2264
|
{
|
|
2265
|
-
ref:
|
|
2265
|
+
ref: p,
|
|
2266
2266
|
className: at.content,
|
|
2267
|
-
style: { height: `${
|
|
2267
|
+
style: { height: `${l}px` },
|
|
2268
2268
|
children: /* @__PURE__ */ t.jsx("p", { id: "p", children: i })
|
|
2269
2269
|
}
|
|
2270
2270
|
)
|
|
2271
2271
|
] });
|
|
2272
|
-
},
|
|
2272
|
+
}, Yi = ({ children: c, path: i, className: a, target: s = "_self", id: e }) => {
|
|
2273
2273
|
if (window.location.pathname.includes("/admin/builder"))
|
|
2274
2274
|
return /* @__PURE__ */ t.jsx(
|
|
2275
2275
|
"div",
|
|
@@ -2281,13 +2281,13 @@ const Vs = (c) => {
|
|
|
2281
2281
|
children: c
|
|
2282
2282
|
}
|
|
2283
2283
|
);
|
|
2284
|
-
const
|
|
2285
|
-
d || s === "_blank" ? s === "_blank" ? window.open(i, "_blank") : window.open(i, "_self") : (_.preventDefault(),
|
|
2284
|
+
const l = xt(), d = /^https?:\/\//.test(i), p = (_) => {
|
|
2285
|
+
d || s === "_blank" ? s === "_blank" ? window.open(i, "_blank") : window.open(i, "_self") : (_.preventDefault(), l(i));
|
|
2286
2286
|
};
|
|
2287
2287
|
return /* @__PURE__ */ t.jsx(
|
|
2288
2288
|
"div",
|
|
2289
2289
|
{
|
|
2290
|
-
onClick:
|
|
2290
|
+
onClick: p,
|
|
2291
2291
|
className: a,
|
|
2292
2292
|
role: "link",
|
|
2293
2293
|
style: { cursor: "pointer" },
|
|
@@ -2298,17 +2298,17 @@ const Vs = (c) => {
|
|
|
2298
2298
|
}, Gn = "_buttonsBlock_1b2rb_1", Qn = "_slideUp_1b2rb_1", Xn = {
|
|
2299
2299
|
buttonsBlock: Gn,
|
|
2300
2300
|
slideUp: Qn
|
|
2301
|
-
},
|
|
2302
|
-
var u,
|
|
2303
|
-
const { setIsOpen: i, setModalType: a, productId: s } = c, { cart: e } =
|
|
2301
|
+
}, Wi = (c) => {
|
|
2302
|
+
var u, $;
|
|
2303
|
+
const { setIsOpen: i, setModalType: a, productId: s } = c, { cart: e } = lt(), { pageContext: l } = it(), d = (u = l == null ? void 0 : l.listings) == null ? void 0 : u.find((y) => y.id === s);
|
|
2304
2304
|
if (!d)
|
|
2305
2305
|
return null;
|
|
2306
|
-
const
|
|
2306
|
+
const p = ($ = l == null ? void 0 : l.products) == null ? void 0 : $.find(
|
|
2307
2307
|
(y) => y.uniquePath === d.productData.uniquePath
|
|
2308
2308
|
);
|
|
2309
|
-
if (!
|
|
2309
|
+
if (!p)
|
|
2310
2310
|
return null;
|
|
2311
|
-
const _ = e.parts.find((y) => y.productId ===
|
|
2311
|
+
const _ = e.parts.find((y) => y.productId === p.id);
|
|
2312
2312
|
return /* @__PURE__ */ t.jsxs(
|
|
2313
2313
|
"div",
|
|
2314
2314
|
{
|
|
@@ -2341,15 +2341,15 @@ const Vs = (c) => {
|
|
|
2341
2341
|
]
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
|
-
}, Jn = "_wrapper_27wzz_1", Kn = "_logo_27wzz_8", Zn = "_info_27wzz_12",
|
|
2344
|
+
}, Jn = "_wrapper_27wzz_1", Kn = "_logo_27wzz_8", Zn = "_info_27wzz_12", jt = {
|
|
2345
2345
|
wrapper: Jn,
|
|
2346
2346
|
logo: Kn,
|
|
2347
2347
|
info: Zn
|
|
2348
|
-
},
|
|
2348
|
+
}, Gi = ({ date: c }) => {
|
|
2349
2349
|
const { general: i } = Rt();
|
|
2350
2350
|
if (!i) return /* @__PURE__ */ t.jsx(t.Fragment, {});
|
|
2351
2351
|
function a(s) {
|
|
2352
|
-
const e = new Date(s),
|
|
2352
|
+
const e = new Date(s), l = {
|
|
2353
2353
|
month: "short",
|
|
2354
2354
|
day: "2-digit",
|
|
2355
2355
|
year: "numeric",
|
|
@@ -2357,10 +2357,10 @@ const Vs = (c) => {
|
|
|
2357
2357
|
minute: "2-digit",
|
|
2358
2358
|
hour12: !1
|
|
2359
2359
|
};
|
|
2360
|
-
return e.toLocaleDateString("en-US",
|
|
2360
|
+
return e.toLocaleDateString("en-US", l);
|
|
2361
2361
|
}
|
|
2362
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2363
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2362
|
+
return /* @__PURE__ */ t.jsxs("div", { className: jt.wrapper, children: [
|
|
2363
|
+
/* @__PURE__ */ t.jsx("div", { className: jt.logo, children: i.info.logo ? /* @__PURE__ */ t.jsx(
|
|
2364
2364
|
"img",
|
|
2365
2365
|
{
|
|
2366
2366
|
src: `https://imagedelivery.net/${i.info.logo.cfId}/w=500,h=500`,
|
|
@@ -2368,19 +2368,19 @@ const Vs = (c) => {
|
|
|
2368
2368
|
style: { objectFit: "contain", width: "48px", height: "48px" }
|
|
2369
2369
|
}
|
|
2370
2370
|
) : /* @__PURE__ */ t.jsx(
|
|
2371
|
-
|
|
2371
|
+
b,
|
|
2372
2372
|
{
|
|
2373
2373
|
name: "Image",
|
|
2374
2374
|
width: 48,
|
|
2375
2375
|
height: 48
|
|
2376
2376
|
}
|
|
2377
2377
|
) }),
|
|
2378
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2378
|
+
/* @__PURE__ */ t.jsxs("div", { className: jt.info, children: [
|
|
2379
2379
|
/* @__PURE__ */ t.jsx("h3", { id: "h4", children: i.info.name }),
|
|
2380
2380
|
/* @__PURE__ */ t.jsx("p", { id: "p", children: a(c) })
|
|
2381
2381
|
] })
|
|
2382
2382
|
] });
|
|
2383
|
-
}, ti = "
|
|
2383
|
+
}, ti = "_options_6lbld_1", ei = "_price_6lbld_12", si = "_oldPrice_6lbld_19", ni = "_newPrice_6lbld_27", ii = "_animate_6lbld_34", ai = "_appearAndBounce_6lbld_1", oi = "_meta_6lbld_52", ci = "_info_6lbld_58", li = "_infoRight_6lbld_66", ri = "_buttons_6lbld_73", di = "_variants_6lbld_80", ui = "_variant_6lbld_80", hi = "_stock_6lbld_98", pi = "_variantInfo_6lbld_105", mi = "_quantity_6lbld_111", _i = "_count_6lbld_118", gi = "_focused_6lbld_135", fi = "_button_6lbld_73", xi = "_activeVariant_6lbld_161", bi = "_chargeTypes_6lbld_165", ji = "_charge_6lbld_165", vi = "_chargeActive_6lbld_190", yi = "_title_6lbld_198", Ni = "_modal_6lbld_204", Ii = "_header_6lbld_224", ki = "_productOptions_6lbld_232", W = {
|
|
2384
2384
|
options: ti,
|
|
2385
2385
|
price: ei,
|
|
2386
2386
|
oldPrice: si,
|
|
@@ -2389,26 +2389,27 @@ const Vs = (c) => {
|
|
|
2389
2389
|
appearAndBounce: ai,
|
|
2390
2390
|
meta: oi,
|
|
2391
2391
|
info: ci,
|
|
2392
|
-
infoRight:
|
|
2393
|
-
buttons:
|
|
2392
|
+
infoRight: li,
|
|
2393
|
+
buttons: ri,
|
|
2394
2394
|
variants: di,
|
|
2395
2395
|
variant: ui,
|
|
2396
2396
|
stock: hi,
|
|
2397
|
-
variantInfo:
|
|
2398
|
-
quantity:
|
|
2397
|
+
variantInfo: pi,
|
|
2398
|
+
quantity: mi,
|
|
2399
2399
|
count: _i,
|
|
2400
2400
|
focused: gi,
|
|
2401
2401
|
button: fi,
|
|
2402
2402
|
activeVariant: xi,
|
|
2403
|
-
chargeTypes:
|
|
2404
|
-
charge:
|
|
2405
|
-
chargeActive:
|
|
2403
|
+
chargeTypes: bi,
|
|
2404
|
+
charge: ji,
|
|
2405
|
+
chargeActive: vi,
|
|
2406
2406
|
title: yi,
|
|
2407
2407
|
modal: Ni,
|
|
2408
|
-
header: Ii
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2408
|
+
header: Ii,
|
|
2409
|
+
productOptions: ki
|
|
2410
|
+
}, Qi = (c) => {
|
|
2411
|
+
var p, _;
|
|
2412
|
+
const { pageContext: i } = it(), a = (p = i == null ? void 0 : i.listings) == null ? void 0 : p.find((u) => u.id === c.productId);
|
|
2412
2413
|
if (!a)
|
|
2413
2414
|
return;
|
|
2414
2415
|
const s = (_ = i == null ? void 0 : i.products) == null ? void 0 : _.find(
|
|
@@ -2416,28 +2417,28 @@ const Vs = (c) => {
|
|
|
2416
2417
|
);
|
|
2417
2418
|
if (!s)
|
|
2418
2419
|
return;
|
|
2419
|
-
const e = s.variants[0], [
|
|
2420
|
+
const e = s.variants[0], [l, d] = f.useState(
|
|
2420
2421
|
e.chargeTypes && e.chargeTypes.length > 1 ? e.chargeTypes[0] : "ONE_TIME"
|
|
2421
2422
|
);
|
|
2422
2423
|
return /* @__PURE__ */ t.jsxs(
|
|
2423
2424
|
"div",
|
|
2424
2425
|
{
|
|
2425
|
-
className:
|
|
2426
|
+
className: W.modal,
|
|
2426
2427
|
onClick: (u) => u.stopPropagation(),
|
|
2427
2428
|
children: [
|
|
2428
2429
|
c.type === "Add To Cart" && /* @__PURE__ */ t.jsx(
|
|
2429
|
-
|
|
2430
|
+
Ci,
|
|
2430
2431
|
{
|
|
2431
2432
|
variants: s.variants,
|
|
2432
2433
|
activeVariant: e,
|
|
2433
|
-
activeChargeType:
|
|
2434
|
+
activeChargeType: l,
|
|
2434
2435
|
setActiveChargeType: d,
|
|
2435
2436
|
productId: s.id,
|
|
2436
2437
|
setIsOpen: c.setIsOpen
|
|
2437
2438
|
}
|
|
2438
2439
|
),
|
|
2439
2440
|
c.type === "Buy Now" && /* @__PURE__ */ t.jsx(
|
|
2440
|
-
|
|
2441
|
+
Si,
|
|
2441
2442
|
{
|
|
2442
2443
|
product: s,
|
|
2443
2444
|
setIsOpen: c.setIsOpen
|
|
@@ -2446,18 +2447,18 @@ const Vs = (c) => {
|
|
|
2446
2447
|
]
|
|
2447
2448
|
}
|
|
2448
2449
|
);
|
|
2449
|
-
},
|
|
2450
|
-
const { variants: i, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId:
|
|
2451
|
-
async function
|
|
2452
|
-
const T =
|
|
2450
|
+
}, Ci = (c) => {
|
|
2451
|
+
const { variants: i, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId: l, setIsOpen: d } = c, { cart: p, addProductToCart: _, addProducts: u, updateQuantityOfProduct: $ } = lt(), { setNotification: y } = wt(), { pageContext: n } = it();
|
|
2452
|
+
async function m(o) {
|
|
2453
|
+
const T = p.parts.find(
|
|
2453
2454
|
(g) => g.productId === c.productId && g.productVariantId === o
|
|
2454
2455
|
);
|
|
2455
|
-
T ?
|
|
2456
|
-
productId:
|
|
2456
|
+
T ? $({
|
|
2457
|
+
productId: l,
|
|
2457
2458
|
productVariantId: o,
|
|
2458
2459
|
quantity: T.quantity + 1
|
|
2459
2460
|
}) : (n != null && n.products && await u(n.products), await _({
|
|
2460
|
-
productId:
|
|
2461
|
+
productId: l,
|
|
2461
2462
|
productVariantId: o,
|
|
2462
2463
|
quantity: 1
|
|
2463
2464
|
})), y({
|
|
@@ -2465,11 +2466,11 @@ const Vs = (c) => {
|
|
|
2465
2466
|
status: "success"
|
|
2466
2467
|
});
|
|
2467
2468
|
}
|
|
2468
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2469
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2469
|
+
return /* @__PURE__ */ t.jsxs("div", { className: W.modal, children: [
|
|
2470
|
+
/* @__PURE__ */ t.jsxs("div", { className: W.header, children: [
|
|
2470
2471
|
/* @__PURE__ */ t.jsx("div", { id: "h3", children: "Choose a variant" }),
|
|
2471
2472
|
/* @__PURE__ */ t.jsx(
|
|
2472
|
-
|
|
2473
|
+
b,
|
|
2473
2474
|
{
|
|
2474
2475
|
name: "X",
|
|
2475
2476
|
width: 24,
|
|
@@ -2480,35 +2481,35 @@ const Vs = (c) => {
|
|
|
2480
2481
|
}
|
|
2481
2482
|
)
|
|
2482
2483
|
] }),
|
|
2483
|
-
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className:
|
|
2484
|
+
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: W.chargeTypes, children: e.chargeTypes.map((o) => /* @__PURE__ */ t.jsx(
|
|
2484
2485
|
"div",
|
|
2485
2486
|
{
|
|
2486
|
-
className: U(
|
|
2487
|
-
[
|
|
2487
|
+
className: U(W.charge, {
|
|
2488
|
+
[W.chargeActive]: a === o
|
|
2488
2489
|
}),
|
|
2489
2490
|
onClick: () => s(o),
|
|
2490
2491
|
children: It[o]
|
|
2491
2492
|
},
|
|
2492
2493
|
o
|
|
2493
2494
|
)) }),
|
|
2494
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2495
|
+
/* @__PURE__ */ t.jsx("div", { className: W.variants, children: i.map((o) => {
|
|
2495
2496
|
var T, g;
|
|
2496
2497
|
return /* @__PURE__ */ t.jsxs(
|
|
2497
2498
|
"div",
|
|
2498
2499
|
{
|
|
2499
|
-
className: U(
|
|
2500
|
+
className: U(W.variant),
|
|
2500
2501
|
onClick: () => {
|
|
2501
|
-
|
|
2502
|
+
m(o.id), d(!1);
|
|
2502
2503
|
},
|
|
2503
2504
|
children: [
|
|
2504
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2505
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2505
|
+
/* @__PURE__ */ t.jsxs("div", { className: W.variantInfo, children: [
|
|
2506
|
+
/* @__PURE__ */ t.jsx("span", { className: W.title, children: o.name }),
|
|
2506
2507
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
2507
2508
|
"$",
|
|
2508
2509
|
a === "ONE_TIME" ? o.price.amount : o.subscriptionSettings ? o.subscriptionSettings.price.amount : "Price Not Found"
|
|
2509
2510
|
] })
|
|
2510
2511
|
] }),
|
|
2511
|
-
/* @__PURE__ */ t.jsx("div", { children: a === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className:
|
|
2512
|
+
/* @__PURE__ */ t.jsx("div", { children: a === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: W.stock, children: [
|
|
2512
2513
|
(T = o.quantity.restrictions) != null && T.max || o.quantity.available !== void 0 ? ((g = o.quantity.restrictions) == null ? void 0 : g.max) || o.quantity.available : "∞",
|
|
2513
2514
|
" ",
|
|
2514
2515
|
"in stock"
|
|
@@ -2519,16 +2520,16 @@ const Vs = (c) => {
|
|
|
2519
2520
|
);
|
|
2520
2521
|
}) })
|
|
2521
2522
|
] });
|
|
2522
|
-
},
|
|
2523
|
+
}, Si = (c) => {
|
|
2523
2524
|
const { product: i, setIsOpen: a } = c;
|
|
2524
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2525
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2525
|
+
return /* @__PURE__ */ t.jsxs("div", { className: W.modal, children: [
|
|
2526
|
+
/* @__PURE__ */ t.jsxs("div", { className: W.header, children: [
|
|
2526
2527
|
/* @__PURE__ */ t.jsxs("div", { id: "h3", children: [
|
|
2527
2528
|
"Buy ",
|
|
2528
2529
|
yt(i.name)
|
|
2529
2530
|
] }),
|
|
2530
2531
|
/* @__PURE__ */ t.jsx(
|
|
2531
|
-
|
|
2532
|
+
b,
|
|
2532
2533
|
{
|
|
2533
2534
|
name: "X",
|
|
2534
2535
|
width: 24,
|
|
@@ -2543,31 +2544,31 @@ const Vs = (c) => {
|
|
|
2543
2544
|
}
|
|
2544
2545
|
)
|
|
2545
2546
|
] }),
|
|
2546
|
-
/* @__PURE__ */ t.jsx(
|
|
2547
|
+
/* @__PURE__ */ t.jsx("div", { className: W.productOptions, children: /* @__PURE__ */ t.jsx(
|
|
2547
2548
|
Vs,
|
|
2548
2549
|
{
|
|
2549
2550
|
product: i,
|
|
2550
2551
|
setIsOpen: a
|
|
2551
2552
|
}
|
|
2552
|
-
)
|
|
2553
|
+
) })
|
|
2553
2554
|
] });
|
|
2554
|
-
},
|
|
2555
|
-
wrapper:
|
|
2555
|
+
}, qi = "_wrapper_1efqk_1", $i = "_label_1efqk_10", wi = "_contentBorder_1efqk_19", Bi = "_contentField_1efqk_23", Pi = "_textarea_1efqk_27", Ti = "_length_1efqk_42", nt = {
|
|
2556
|
+
wrapper: qi,
|
|
2556
2557
|
label: $i,
|
|
2557
2558
|
contentBorder: wi,
|
|
2558
|
-
contentField:
|
|
2559
|
-
textarea:
|
|
2560
|
-
length:
|
|
2561
|
-
},
|
|
2559
|
+
contentField: Bi,
|
|
2560
|
+
textarea: Pi,
|
|
2561
|
+
length: Ti
|
|
2562
|
+
}, Xi = (c) => {
|
|
2562
2563
|
const {
|
|
2563
2564
|
onChange: i,
|
|
2564
2565
|
label: a,
|
|
2565
2566
|
value: s,
|
|
2566
2567
|
maxLength: e,
|
|
2567
|
-
placeholder:
|
|
2568
|
+
placeholder: l = "Type something...",
|
|
2568
2569
|
type: d = "text"
|
|
2569
|
-
} = c, [
|
|
2570
|
-
function
|
|
2570
|
+
} = c, [p, _] = f.useState(s.length), { themeSettings: u } = Dt();
|
|
2571
|
+
function $(y) {
|
|
2571
2572
|
return d === "number" ? y.replace(/[^\d\n]+/g, "") : y;
|
|
2572
2573
|
}
|
|
2573
2574
|
return /* @__PURE__ */ t.jsxs("div", { className: nt.wrapper, children: [
|
|
@@ -2585,10 +2586,10 @@ const Vs = (c) => {
|
|
|
2585
2586
|
id: a,
|
|
2586
2587
|
value: s,
|
|
2587
2588
|
onChange: (y) => {
|
|
2588
|
-
const n =
|
|
2589
|
+
const n = $(y.target.value);
|
|
2589
2590
|
_(n.length), i(n);
|
|
2590
2591
|
},
|
|
2591
|
-
placeholder:
|
|
2592
|
+
placeholder: l,
|
|
2592
2593
|
className: U(nt.textarea, {
|
|
2593
2594
|
[nt.contentBorder]: u.inputs.border.active,
|
|
2594
2595
|
[nt.contentField]: u.inputs.field.active
|
|
@@ -2597,51 +2598,51 @@ const Vs = (c) => {
|
|
|
2597
2598
|
}
|
|
2598
2599
|
),
|
|
2599
2600
|
e && /* @__PURE__ */ t.jsxs("div", { className: nt.length, children: [
|
|
2600
|
-
|
|
2601
|
+
p,
|
|
2601
2602
|
"/",
|
|
2602
2603
|
e
|
|
2603
2604
|
] })
|
|
2604
2605
|
] });
|
|
2605
2606
|
};
|
|
2606
2607
|
export {
|
|
2607
|
-
|
|
2608
|
-
|
|
2608
|
+
Hi as Accordion,
|
|
2609
|
+
wn as BurgerMenuButton,
|
|
2609
2610
|
F as Button,
|
|
2610
2611
|
xs as ButtonTypeSettings,
|
|
2611
|
-
|
|
2612
|
-
|
|
2612
|
+
zi as ButtonsSettings,
|
|
2613
|
+
Ei as CategorySettings,
|
|
2613
2614
|
It as ChargeTypes,
|
|
2614
2615
|
Tt as ChooseImage,
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2616
|
+
Zi as ChooseImageModal,
|
|
2617
|
+
qn as EmptyCart,
|
|
2618
|
+
Di as FormSettings,
|
|
2619
|
+
Fi as HeaderButtons,
|
|
2620
|
+
b as Icon,
|
|
2621
|
+
vt as InputSettings,
|
|
2621
2622
|
Ot as InputUI,
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2623
|
+
ta as ItemsSettings,
|
|
2624
|
+
Oi as LayoutSettings,
|
|
2625
|
+
Yi as Link,
|
|
2626
|
+
Li as ListingSelector,
|
|
2627
|
+
ea as Loader,
|
|
2628
|
+
Gi as MetaInfoPost,
|
|
2628
2629
|
Nt as Modal,
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2630
|
+
Vi as PagesMobileMenu,
|
|
2631
|
+
$n as PagesMobileModal,
|
|
2632
|
+
Ri as PagesSettings,
|
|
2633
|
+
Wi as ProductCardButtons,
|
|
2634
|
+
Qi as ProductCardModal,
|
|
2634
2635
|
Vs as ProductOptions,
|
|
2635
2636
|
kt as RangeSelector,
|
|
2636
2637
|
st as Select,
|
|
2637
|
-
|
|
2638
|
-
|
|
2638
|
+
sa as SelectInfiniteList,
|
|
2639
|
+
Ui as ShareLink,
|
|
2639
2640
|
Cn as ShoppingButton,
|
|
2640
2641
|
Sn as ShoppingModalCart,
|
|
2641
2642
|
ot as Switch,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2643
|
+
na as TextSettings,
|
|
2644
|
+
ia as TextareaSettings,
|
|
2645
|
+
Xi as TextareaUI,
|
|
2646
|
+
aa as TypesText,
|
|
2646
2647
|
Bt as UserInfo
|
|
2647
2648
|
};
|