@billgangcom/theme-lib 1.71.0 → 1.71.1
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 +13 -13
- package/dist/builder.es.js +9060 -9031
- package/dist/{index-DmoEjH7_.js → index-ChzUc1hG.js} +352 -308
- package/dist/{index-DKMsxm1h.cjs → index-CsYad-dm.cjs} +12 -12
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/storefront/components/CheckoutPrices/index.d.ts +1 -0
- package/dist/storefront/components/PaymentMethod/model.d.ts +5 -0
- package/dist/storefront/models/balance.d.ts +5 -0
- package/dist/storefront/models/checkout.d.ts +4 -0
- package/dist/storefront/store/useCartStore.d.ts +10 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +860 -850
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as t, I as b, c as
|
|
2
|
-
import { a3 as
|
|
3
|
-
import
|
|
1
|
+
import { j as t, I as b, c as F, d as Nt, e as pt, g as mt, P as gt, S as lt, h as Pt, D as ft, i as xt, v as _t, B as dt, k as at, a as kt, l as wt, O as ht, m as J, n as jt, C as vt, o as V, p as qt, q as At, r as yt, t as Dt, w as bt, x as W, L as Et, y as Ct, z as St, A as ot, s as it, f as Q, E as zt, F as E, G as Rt, M as ut, H as Lt, J as ct, K as Tt, N as Ut, Q as Mt, T as Ht, U as Bt, V as Ft } from "./index-ChzUc1hG.js";
|
|
2
|
+
import { a3 as Zn, $ as ti, Z as ei, a2 as si, Y as ni, _ as ii, W as ai, X as oi, a0 as ci, a1 as ri } from "./index-ChzUc1hG.js";
|
|
3
|
+
import x from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23", Wt = "_alignmentContent_kh9z8_30", Xt = "_alignments_kh9z8_39", Qt = "_alignment_kh9z8_30", Jt = "_circle_kh9z8_64", Kt = "_paddings_kh9z8_71", Zt = "_padding_kh9z8_71", te = "_active_kh9z8_97",
|
|
5
|
+
const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23", Wt = "_alignmentContent_kh9z8_30", Xt = "_alignments_kh9z8_39", Qt = "_alignment_kh9z8_30", Jt = "_circle_kh9z8_64", Kt = "_paddings_kh9z8_71", Zt = "_padding_kh9z8_71", te = "_active_kh9z8_97", G = {
|
|
6
6
|
block: Vt,
|
|
7
7
|
title: Yt,
|
|
8
8
|
subtitle: Gt,
|
|
@@ -23,17 +23,17 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
23
23
|
"bottomLeft",
|
|
24
24
|
"bottom",
|
|
25
25
|
"bottomRight"
|
|
26
|
-
], se = ["left", "top", "right", "bottom"],
|
|
26
|
+
], se = ["left", "top", "right", "bottom"], Dn = (h) => {
|
|
27
27
|
const {
|
|
28
28
|
alignment: i,
|
|
29
29
|
padding: a,
|
|
30
30
|
setPadding: s,
|
|
31
31
|
setAlignment: e,
|
|
32
|
-
isAlignment:
|
|
33
|
-
isPadding:
|
|
34
|
-
} =
|
|
35
|
-
function
|
|
36
|
-
switch (
|
|
32
|
+
isAlignment: r = !0,
|
|
33
|
+
isPadding: c = !0
|
|
34
|
+
} = h;
|
|
35
|
+
function f(d) {
|
|
36
|
+
switch (d) {
|
|
37
37
|
case "left":
|
|
38
38
|
case "topLeft":
|
|
39
39
|
case "bottomLeft":
|
|
@@ -50,8 +50,8 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
50
50
|
return "TextAlignCenter";
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
switch (
|
|
53
|
+
function j(d) {
|
|
54
|
+
switch (d) {
|
|
55
55
|
case "left":
|
|
56
56
|
return "AlignLeft";
|
|
57
57
|
case "right":
|
|
@@ -62,40 +62,40 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
62
62
|
return "AlignBottom";
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
const [
|
|
66
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
67
|
-
/* @__PURE__ */ t.jsx("h3", { className:
|
|
68
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
71
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
65
|
+
const [v, T] = x.useState(null), [_, m] = x.useState(null);
|
|
66
|
+
return /* @__PURE__ */ t.jsxs("div", { className: G.layout, children: [
|
|
67
|
+
/* @__PURE__ */ t.jsx("h3", { className: G.title, children: "Layout (for Desktop version)" }),
|
|
68
|
+
/* @__PURE__ */ t.jsxs("div", { className: G.alignmentContent, children: [
|
|
69
|
+
r && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
70
|
+
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Alignment" }),
|
|
71
|
+
/* @__PURE__ */ t.jsx("div", { className: G.alignments, children: ee.map((d) => /* @__PURE__ */ t.jsxs(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
74
|
onClick: () => {
|
|
75
|
-
e(
|
|
75
|
+
e(d);
|
|
76
76
|
},
|
|
77
|
-
className:
|
|
77
|
+
className: G.alignment,
|
|
78
78
|
onMouseEnter: () => {
|
|
79
|
-
T(
|
|
79
|
+
T(d);
|
|
80
80
|
},
|
|
81
81
|
onMouseLeave: () => {
|
|
82
82
|
T(null);
|
|
83
83
|
},
|
|
84
84
|
children: [
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
d !== i && v !== d && /* @__PURE__ */ t.jsx("div", { className: G.circle }),
|
|
86
|
+
d !== i && v === d && /* @__PURE__ */ t.jsx(
|
|
87
87
|
b,
|
|
88
88
|
{
|
|
89
|
-
name:
|
|
89
|
+
name: f(v),
|
|
90
90
|
fill: "#c2c2c2",
|
|
91
91
|
width: 22,
|
|
92
92
|
height: 22
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
|
|
95
|
+
d === i && /* @__PURE__ */ t.jsx(
|
|
96
96
|
b,
|
|
97
97
|
{
|
|
98
|
-
name:
|
|
98
|
+
name: f(i),
|
|
99
99
|
fill: "#FF3F19",
|
|
100
100
|
width: 22,
|
|
101
101
|
height: 22
|
|
@@ -103,28 +103,28 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
103
103
|
)
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
|
-
|
|
106
|
+
d
|
|
107
107
|
)) })
|
|
108
108
|
] }),
|
|
109
|
-
|
|
110
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
111
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
109
|
+
c && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
110
|
+
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Paddings" }),
|
|
111
|
+
/* @__PURE__ */ t.jsx("div", { className: G.paddings, children: se.map((d) => /* @__PURE__ */ t.jsxs(
|
|
112
112
|
"label",
|
|
113
113
|
{
|
|
114
|
-
className:
|
|
115
|
-
[
|
|
114
|
+
className: F(G.padding, {
|
|
115
|
+
[G.active]: _ === d
|
|
116
116
|
}),
|
|
117
117
|
onFocus: () => {
|
|
118
|
-
|
|
118
|
+
m(d);
|
|
119
119
|
},
|
|
120
120
|
onBlur: () => {
|
|
121
|
-
|
|
121
|
+
m(null);
|
|
122
122
|
},
|
|
123
123
|
children: [
|
|
124
124
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
125
125
|
b,
|
|
126
126
|
{
|
|
127
|
-
name:
|
|
127
|
+
name: j(d),
|
|
128
128
|
width: 20,
|
|
129
129
|
height: 20
|
|
130
130
|
}
|
|
@@ -133,10 +133,10 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
133
133
|
Nt,
|
|
134
134
|
{
|
|
135
135
|
type: "number",
|
|
136
|
-
value: String(a[
|
|
137
|
-
onChange: (
|
|
136
|
+
value: String(a[d]),
|
|
137
|
+
onChange: (l) => s({
|
|
138
138
|
...a,
|
|
139
|
-
[
|
|
139
|
+
[d]: Math.min(Number(l), 999)
|
|
140
140
|
}),
|
|
141
141
|
max: 999,
|
|
142
142
|
paddingless: !0,
|
|
@@ -145,7 +145,7 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
145
145
|
)
|
|
146
146
|
]
|
|
147
147
|
},
|
|
148
|
-
|
|
148
|
+
d
|
|
149
149
|
)) })
|
|
150
150
|
] })
|
|
151
151
|
] })
|
|
@@ -163,75 +163,75 @@ const Vt = "_block_kh9z8_8", Yt = "_title_kh9z8_16", Gt = "_subtitle_kh9z8_23",
|
|
|
163
163
|
addButton: he,
|
|
164
164
|
deleteButton: pe
|
|
165
165
|
};
|
|
166
|
-
function me({ id:
|
|
166
|
+
function me({ id: h, children: i }) {
|
|
167
167
|
const {
|
|
168
168
|
attributes: a,
|
|
169
169
|
listeners: s,
|
|
170
170
|
setNodeRef: e,
|
|
171
|
-
transform:
|
|
172
|
-
transition:
|
|
173
|
-
isDragging:
|
|
171
|
+
transform: r,
|
|
172
|
+
transition: c,
|
|
173
|
+
isDragging: f
|
|
174
174
|
} = jt({
|
|
175
|
-
id:
|
|
176
|
-
}),
|
|
177
|
-
transform: vt.Transform.toString(
|
|
178
|
-
transition:
|
|
175
|
+
id: h
|
|
176
|
+
}), j = {
|
|
177
|
+
transform: vt.Transform.toString(r),
|
|
178
|
+
transition: c
|
|
179
179
|
};
|
|
180
180
|
return /* @__PURE__ */ t.jsx(
|
|
181
181
|
"div",
|
|
182
182
|
{
|
|
183
183
|
ref: e,
|
|
184
|
-
style:
|
|
185
|
-
className: `${X.product} ${
|
|
184
|
+
style: j,
|
|
185
|
+
className: `${X.product} ${f ? X.dragging : ""}`,
|
|
186
186
|
...a,
|
|
187
187
|
...s,
|
|
188
188
|
children: i
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const En = (h) => {
|
|
193
193
|
const {
|
|
194
194
|
isActiveItems: i,
|
|
195
195
|
setIsActiveItems: a,
|
|
196
196
|
items: s,
|
|
197
197
|
setItems: e,
|
|
198
|
-
other:
|
|
199
|
-
tags:
|
|
200
|
-
title:
|
|
201
|
-
subtitle:
|
|
202
|
-
draggable:
|
|
198
|
+
other: r,
|
|
199
|
+
tags: c,
|
|
200
|
+
title: f,
|
|
201
|
+
subtitle: j,
|
|
202
|
+
draggable: v = !1,
|
|
203
203
|
withImage: T = !1,
|
|
204
|
-
addable:
|
|
205
|
-
itemsOptions:
|
|
206
|
-
hasRangeSelector:
|
|
207
|
-
rangeSelectorOptions:
|
|
204
|
+
addable: _ = !0,
|
|
205
|
+
itemsOptions: m,
|
|
206
|
+
hasRangeSelector: d = !1,
|
|
207
|
+
rangeSelectorOptions: l,
|
|
208
208
|
limit: n,
|
|
209
209
|
autoScrollInterval: o,
|
|
210
210
|
deletable: C,
|
|
211
211
|
aspectRatio: y,
|
|
212
212
|
setAspectRatio: M
|
|
213
|
-
} =
|
|
213
|
+
} = h, U = pt(
|
|
214
214
|
mt(gt, {
|
|
215
215
|
activationConstraint: {
|
|
216
216
|
distance: 5
|
|
217
217
|
}
|
|
218
218
|
})
|
|
219
|
-
),
|
|
220
|
-
const { active: S, over:
|
|
221
|
-
if (
|
|
222
|
-
const O = s.findIndex((q) => q === S.id), N = s.findIndex((q) => q ===
|
|
219
|
+
), z = (p) => {
|
|
220
|
+
const { active: S, over: w } = p;
|
|
221
|
+
if (w && S.id !== w.id) {
|
|
222
|
+
const O = s.findIndex((q) => q === S.id), N = s.findIndex((q) => q === w.id);
|
|
223
223
|
if (O !== -1 && N !== -1) {
|
|
224
224
|
const q = [...s], [I] = q.splice(O, 1);
|
|
225
225
|
q.splice(N, 0, I), e(q);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
function
|
|
229
|
+
function K(p) {
|
|
230
230
|
if (T)
|
|
231
|
-
return
|
|
231
|
+
return p ? /* @__PURE__ */ t.jsx(
|
|
232
232
|
"img",
|
|
233
233
|
{
|
|
234
|
-
src: `https://imagedelivery.net/${
|
|
234
|
+
src: `https://imagedelivery.net/${p[0]}/w=1000`,
|
|
235
235
|
alt: "image",
|
|
236
236
|
width: 16,
|
|
237
237
|
height: 16
|
|
@@ -246,11 +246,11 @@ const qn = (u) => {
|
|
|
246
246
|
}
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
|
-
const
|
|
250
|
-
const
|
|
251
|
-
if (!
|
|
249
|
+
const g = (p, S = !1) => {
|
|
250
|
+
const w = m.find((N) => N.id === p);
|
|
251
|
+
if (!w) return;
|
|
252
252
|
const O = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
253
|
-
|
|
253
|
+
v && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
254
254
|
b,
|
|
255
255
|
{
|
|
256
256
|
name: "DotsSixVertical",
|
|
@@ -260,19 +260,19 @@ const qn = (u) => {
|
|
|
260
260
|
}
|
|
261
261
|
) }),
|
|
262
262
|
/* @__PURE__ */ t.jsx(
|
|
263
|
-
|
|
263
|
+
at,
|
|
264
264
|
{
|
|
265
265
|
onChange: (N) => {
|
|
266
|
-
const q = [...s], I =
|
|
266
|
+
const q = [...s], I = m.find((u) => u.name === N);
|
|
267
267
|
if (!I) return;
|
|
268
|
-
const A = I.id,
|
|
269
|
-
e([...
|
|
268
|
+
const A = I.id, H = q.map((u) => u === p ? A : u);
|
|
269
|
+
e([...H]);
|
|
270
270
|
},
|
|
271
|
-
value:
|
|
272
|
-
options:
|
|
273
|
-
leftAddonOptions:
|
|
271
|
+
value: w.name,
|
|
272
|
+
options: m.filter((N) => !s.find((q) => q === N.id)).map((N) => N.name),
|
|
273
|
+
leftAddonOptions: m.map((N) => ({
|
|
274
274
|
value: N.name,
|
|
275
|
-
addon:
|
|
275
|
+
addon: K(N.images)
|
|
276
276
|
}))
|
|
277
277
|
}
|
|
278
278
|
),
|
|
@@ -284,56 +284,56 @@ const qn = (u) => {
|
|
|
284
284
|
width: 20,
|
|
285
285
|
height: 20,
|
|
286
286
|
fill: "#C12A2A",
|
|
287
|
-
onClick: () => e(s.filter((N) => N !==
|
|
287
|
+
onClick: () => e(s.filter((N) => N !== p))
|
|
288
288
|
}
|
|
289
289
|
) }) })
|
|
290
290
|
] });
|
|
291
|
-
return
|
|
291
|
+
return v ? /* @__PURE__ */ t.jsx(
|
|
292
292
|
me,
|
|
293
293
|
{
|
|
294
|
-
id:
|
|
294
|
+
id: p,
|
|
295
295
|
children: O
|
|
296
296
|
},
|
|
297
|
-
|
|
297
|
+
J()
|
|
298
298
|
) : /* @__PURE__ */ t.jsx(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
className: X.product,
|
|
302
302
|
children: O
|
|
303
303
|
},
|
|
304
|
-
|
|
304
|
+
J()
|
|
305
305
|
);
|
|
306
306
|
};
|
|
307
307
|
return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
|
|
308
|
-
(
|
|
309
|
-
|
|
308
|
+
(f || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: X.top, children: [
|
|
309
|
+
f && /* @__PURE__ */ t.jsx("h3", { className: X.title, children: f }),
|
|
310
310
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
311
311
|
lt,
|
|
312
312
|
{
|
|
313
313
|
current: i,
|
|
314
|
-
onChange: (
|
|
314
|
+
onChange: (p) => a == null ? void 0 : a(p)
|
|
315
315
|
}
|
|
316
316
|
)
|
|
317
317
|
] }),
|
|
318
|
-
|
|
318
|
+
d && l && /* @__PURE__ */ t.jsx(Pt, { ...l }),
|
|
319
319
|
/* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
j && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: j }),
|
|
321
|
+
v ? /* @__PURE__ */ t.jsx(
|
|
322
322
|
ft,
|
|
323
323
|
{
|
|
324
|
-
sensors:
|
|
325
|
-
onDragEnd:
|
|
324
|
+
sensors: U,
|
|
325
|
+
onDragEnd: z,
|
|
326
326
|
children: /* @__PURE__ */ t.jsx(
|
|
327
327
|
xt,
|
|
328
328
|
{
|
|
329
329
|
items: s,
|
|
330
330
|
strategy: _t,
|
|
331
|
-
children: s.map((
|
|
331
|
+
children: s.map((p) => g(p, C))
|
|
332
332
|
}
|
|
333
333
|
)
|
|
334
334
|
}
|
|
335
|
-
) : s.map((
|
|
336
|
-
|
|
335
|
+
) : s.map((p) => g(p, C)),
|
|
336
|
+
_ && /* @__PURE__ */ t.jsx(
|
|
337
337
|
"div",
|
|
338
338
|
{
|
|
339
339
|
style: {
|
|
@@ -346,22 +346,22 @@ const qn = (u) => {
|
|
|
346
346
|
dt,
|
|
347
347
|
{
|
|
348
348
|
withoutHover: !0,
|
|
349
|
-
className:
|
|
350
|
-
[X.disabled]: !!(n && n <= s.length || s.length ===
|
|
349
|
+
className: F(X.button, {
|
|
350
|
+
[X.disabled]: !!(n && n <= s.length || s.length === m.length)
|
|
351
351
|
}),
|
|
352
352
|
size: "s",
|
|
353
|
-
disabled: !!(n && n <= s.length || s.length ===
|
|
353
|
+
disabled: !!(n && n <= s.length || s.length === m.length),
|
|
354
354
|
onClick: () => {
|
|
355
|
-
const
|
|
355
|
+
const p = [...s];
|
|
356
356
|
let S = null;
|
|
357
|
-
if (
|
|
358
|
-
for (let
|
|
359
|
-
if (!s.find((O) => O ===
|
|
360
|
-
S =
|
|
357
|
+
if (m) {
|
|
358
|
+
for (let w = 0; w < m.length; w++)
|
|
359
|
+
if (!s.find((O) => O === m[w].id)) {
|
|
360
|
+
S = m[w];
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
p.push((S == null ? void 0 : S.id) || m[0].id), e(p);
|
|
365
365
|
},
|
|
366
366
|
style: {
|
|
367
367
|
width: "fit-content"
|
|
@@ -383,27 +383,27 @@ const qn = (u) => {
|
|
|
383
383
|
)
|
|
384
384
|
] }),
|
|
385
385
|
y && M && /* @__PURE__ */ t.jsx(
|
|
386
|
-
|
|
386
|
+
at,
|
|
387
387
|
{
|
|
388
388
|
value: y,
|
|
389
389
|
label: "Aspect Ratio",
|
|
390
|
-
options: Object.keys(
|
|
391
|
-
onChange: (
|
|
392
|
-
leftAddonOptions:
|
|
390
|
+
options: Object.keys(wt),
|
|
391
|
+
onChange: (p) => M(p),
|
|
392
|
+
leftAddonOptions: kt
|
|
393
393
|
}
|
|
394
394
|
),
|
|
395
|
-
|
|
395
|
+
c !== void 0 && /* @__PURE__ */ t.jsx(
|
|
396
396
|
ht,
|
|
397
397
|
{
|
|
398
398
|
tagsTitle: "Tags",
|
|
399
|
-
items:
|
|
399
|
+
items: c
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
|
-
|
|
402
|
+
r !== void 0 && /* @__PURE__ */ t.jsx(
|
|
403
403
|
ht,
|
|
404
404
|
{
|
|
405
405
|
otherTitle: "Other",
|
|
406
|
-
items:
|
|
406
|
+
items: r
|
|
407
407
|
}
|
|
408
408
|
),
|
|
409
409
|
o !== void 0 && /* @__PURE__ */ t.jsx(
|
|
@@ -412,7 +412,7 @@ const qn = (u) => {
|
|
|
412
412
|
label: "Auto scroll interval",
|
|
413
413
|
type: "number",
|
|
414
414
|
value: String(o.scrollInterval),
|
|
415
|
-
onChange: (
|
|
415
|
+
onChange: (p) => o.setScrollInterval(Number(p)),
|
|
416
416
|
min: 0.1,
|
|
417
417
|
max: 100,
|
|
418
418
|
style: {
|
|
@@ -422,7 +422,7 @@ const qn = (u) => {
|
|
|
422
422
|
}
|
|
423
423
|
)
|
|
424
424
|
] });
|
|
425
|
-
}, ge = "_title_roi3a_1", fe = "_subtitle_roi3a_5", xe = "_productsBlock_roi3a_14", _e = "_top_roi3a_26", je = "_products_roi3a_14", ve = "_product_roi3a_14", ye = "_button_roi3a_80", be = "_disabled_roi3a_91", Ie = "_buttons_roi3a_118", Ne = "_addButton_roi3a_164", Ce = "_deleteButton_roi3a_179",
|
|
425
|
+
}, ge = "_title_roi3a_1", fe = "_subtitle_roi3a_5", xe = "_productsBlock_roi3a_14", _e = "_top_roi3a_26", je = "_products_roi3a_14", ve = "_product_roi3a_14", ye = "_button_roi3a_80", be = "_disabled_roi3a_91", Ie = "_buttons_roi3a_118", Ne = "_addButton_roi3a_164", Ce = "_deleteButton_roi3a_179", Y = {
|
|
426
426
|
title: ge,
|
|
427
427
|
subtitle: fe,
|
|
428
428
|
productsBlock: xe,
|
|
@@ -435,82 +435,82 @@ const qn = (u) => {
|
|
|
435
435
|
addButton: Ne,
|
|
436
436
|
deleteButton: Ce
|
|
437
437
|
};
|
|
438
|
-
function Se({ product:
|
|
438
|
+
function Se({ product: h, children: i }) {
|
|
439
439
|
const {
|
|
440
440
|
attributes: a,
|
|
441
441
|
listeners: s,
|
|
442
442
|
setNodeRef: e,
|
|
443
|
-
transform:
|
|
444
|
-
transition:
|
|
445
|
-
isDragging:
|
|
443
|
+
transform: r,
|
|
444
|
+
transition: c,
|
|
445
|
+
isDragging: f
|
|
446
446
|
} = jt({
|
|
447
|
-
id:
|
|
448
|
-
}),
|
|
449
|
-
transform: vt.Transform.toString(
|
|
450
|
-
transition:
|
|
447
|
+
id: h.id
|
|
448
|
+
}), j = {
|
|
449
|
+
transform: vt.Transform.toString(r),
|
|
450
|
+
transition: c
|
|
451
451
|
};
|
|
452
452
|
return /* @__PURE__ */ t.jsx(
|
|
453
453
|
"div",
|
|
454
454
|
{
|
|
455
455
|
ref: e,
|
|
456
|
-
style:
|
|
457
|
-
className: `${
|
|
456
|
+
style: j,
|
|
457
|
+
className: `${Y.product} ${f ? Y.dragging : ""}`,
|
|
458
458
|
...a,
|
|
459
459
|
...s,
|
|
460
460
|
children: i
|
|
461
461
|
}
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const zn = (h) => {
|
|
465
465
|
const {
|
|
466
466
|
isActiveItems: i,
|
|
467
467
|
setIsActiveItems: a,
|
|
468
468
|
items: s,
|
|
469
469
|
setItems: e,
|
|
470
|
-
title:
|
|
471
|
-
subtitle:
|
|
472
|
-
editable:
|
|
473
|
-
draggable:
|
|
474
|
-
deletable:
|
|
470
|
+
title: r,
|
|
471
|
+
subtitle: c,
|
|
472
|
+
editable: f = !0,
|
|
473
|
+
draggable: j = !1,
|
|
474
|
+
deletable: v = !0,
|
|
475
475
|
addable: T = !0,
|
|
476
|
-
itemsType:
|
|
477
|
-
itemsOptions:
|
|
478
|
-
addableOptions:
|
|
479
|
-
limit:
|
|
480
|
-
} =
|
|
476
|
+
itemsType: _,
|
|
477
|
+
itemsOptions: m,
|
|
478
|
+
addableOptions: d = {},
|
|
479
|
+
limit: l
|
|
480
|
+
} = h, [n, o] = x.useState(null), [C, y] = x.useState(null), M = x.useRef(null), U = pt(
|
|
481
481
|
mt(gt, {
|
|
482
482
|
activationConstraint: {
|
|
483
483
|
distance: 5
|
|
484
484
|
}
|
|
485
485
|
})
|
|
486
486
|
);
|
|
487
|
-
|
|
487
|
+
x.useEffect(() => {
|
|
488
488
|
if (n) {
|
|
489
|
-
const
|
|
490
|
-
e(
|
|
489
|
+
const p = [...s].map((S) => S.id === n.id ? n : S);
|
|
490
|
+
e(p);
|
|
491
491
|
}
|
|
492
|
-
}, [n]),
|
|
492
|
+
}, [n]), x.useEffect(() => {
|
|
493
493
|
M.current && C && (M.current.getBoundingClientRect().height, C.top);
|
|
494
494
|
}, [M.current, C]);
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
const
|
|
495
|
+
const z = (p, S) => {
|
|
496
|
+
p.stopPropagation();
|
|
497
|
+
const w = p.target.getBoundingClientRect();
|
|
498
498
|
y({
|
|
499
|
-
top:
|
|
500
|
-
left:
|
|
499
|
+
top: w.top + window.scrollY,
|
|
500
|
+
left: w.left - 30
|
|
501
501
|
}), o(S);
|
|
502
|
-
},
|
|
503
|
-
const { active: S, over:
|
|
504
|
-
if (
|
|
505
|
-
const O = s.findIndex((q) => q.id === S.id), N = s.findIndex((q) => q.id ===
|
|
502
|
+
}, K = (p) => {
|
|
503
|
+
const { active: S, over: w } = p;
|
|
504
|
+
if (w && S.id !== w.id) {
|
|
505
|
+
const O = s.findIndex((q) => q.id === S.id), N = s.findIndex((q) => q.id === w.id);
|
|
506
506
|
if (O !== -1 && N !== -1) {
|
|
507
507
|
const q = [...s], [I] = q.splice(O, 1);
|
|
508
508
|
q.splice(N, 0, I), e(q);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
},
|
|
512
|
-
const
|
|
513
|
-
|
|
511
|
+
}, g = (p, S) => {
|
|
512
|
+
const w = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
513
|
+
j && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
514
514
|
b,
|
|
515
515
|
{
|
|
516
516
|
name: "DotsSixVertical",
|
|
@@ -519,41 +519,41 @@ const An = (u) => {
|
|
|
519
519
|
height: 20
|
|
520
520
|
}
|
|
521
521
|
) }),
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
_ === "select" && m && /* @__PURE__ */ t.jsx(
|
|
523
|
+
at,
|
|
524
524
|
{
|
|
525
525
|
onChange: (O) => {
|
|
526
|
-
const N = [...s], q =
|
|
526
|
+
const N = [...s], q = m.find((A) => A.name === O);
|
|
527
527
|
if (!q) return;
|
|
528
|
-
const I = N.map((A) => A.id ===
|
|
528
|
+
const I = N.map((A) => A.id === p.id ? {
|
|
529
529
|
...q,
|
|
530
530
|
name: {
|
|
531
531
|
"en-US": O
|
|
532
532
|
}
|
|
533
533
|
} : A);
|
|
534
534
|
o({
|
|
535
|
-
...
|
|
535
|
+
...p,
|
|
536
536
|
name: {
|
|
537
537
|
"en-US": O
|
|
538
538
|
}
|
|
539
539
|
}), e([...I]);
|
|
540
540
|
},
|
|
541
|
-
value:
|
|
542
|
-
options:
|
|
541
|
+
value: p.name,
|
|
542
|
+
options: m.filter((O) => !s.find((N) => N.name === O.name)).map((O) => O.name)
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
546
|
-
|
|
545
|
+
/* @__PURE__ */ t.jsxs("div", { className: Y.buttons, children: [
|
|
546
|
+
f && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
547
547
|
b,
|
|
548
548
|
{
|
|
549
549
|
name: "Sliders",
|
|
550
550
|
hoverable: !0,
|
|
551
551
|
width: 20,
|
|
552
552
|
height: 20,
|
|
553
|
-
onClick: (O) =>
|
|
553
|
+
onClick: (O) => z(O, p)
|
|
554
554
|
}
|
|
555
555
|
) }),
|
|
556
|
-
|
|
556
|
+
v && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
557
557
|
b,
|
|
558
558
|
{
|
|
559
559
|
name: "Trash",
|
|
@@ -561,56 +561,56 @@ const An = (u) => {
|
|
|
561
561
|
width: 20,
|
|
562
562
|
height: 20,
|
|
563
563
|
fill: "#C12A2A",
|
|
564
|
-
onClick: () => e(s.filter((O) => O.id !==
|
|
564
|
+
onClick: () => e(s.filter((O) => O.id !== p.id))
|
|
565
565
|
}
|
|
566
566
|
) })
|
|
567
567
|
] })
|
|
568
568
|
] });
|
|
569
|
-
return
|
|
569
|
+
return j ? /* @__PURE__ */ t.jsx(
|
|
570
570
|
Se,
|
|
571
571
|
{
|
|
572
|
-
product:
|
|
572
|
+
product: p,
|
|
573
573
|
index: S,
|
|
574
|
-
children:
|
|
574
|
+
children: w
|
|
575
575
|
},
|
|
576
|
-
|
|
576
|
+
p.id
|
|
577
577
|
) : /* @__PURE__ */ t.jsx(
|
|
578
578
|
"div",
|
|
579
579
|
{
|
|
580
|
-
className:
|
|
581
|
-
children:
|
|
580
|
+
className: Y.product,
|
|
581
|
+
children: w
|
|
582
582
|
},
|
|
583
|
-
|
|
583
|
+
p.id
|
|
584
584
|
);
|
|
585
585
|
};
|
|
586
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
587
|
-
(
|
|
588
|
-
|
|
586
|
+
return /* @__PURE__ */ t.jsxs("div", { className: Y.productsBlock, children: [
|
|
587
|
+
(r || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Y.top, children: [
|
|
588
|
+
r && /* @__PURE__ */ t.jsx("h3", { className: Y.title, children: r }),
|
|
589
589
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
590
590
|
lt,
|
|
591
591
|
{
|
|
592
592
|
current: i,
|
|
593
|
-
onChange: (
|
|
593
|
+
onChange: (p) => a == null ? void 0 : a(p)
|
|
594
594
|
}
|
|
595
595
|
)
|
|
596
596
|
] }),
|
|
597
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
598
|
-
|
|
599
|
-
|
|
597
|
+
/* @__PURE__ */ t.jsxs("div", { className: Y.products, children: [
|
|
598
|
+
c && /* @__PURE__ */ t.jsx("h5", { className: Y.subtitle, children: c }),
|
|
599
|
+
j ? /* @__PURE__ */ t.jsx(
|
|
600
600
|
ft,
|
|
601
601
|
{
|
|
602
|
-
sensors:
|
|
603
|
-
onDragEnd:
|
|
602
|
+
sensors: U,
|
|
603
|
+
onDragEnd: K,
|
|
604
604
|
children: /* @__PURE__ */ t.jsx(
|
|
605
605
|
xt,
|
|
606
606
|
{
|
|
607
|
-
items: s.map((
|
|
607
|
+
items: s.map((p) => p.id),
|
|
608
608
|
strategy: _t,
|
|
609
|
-
children: s.map((
|
|
609
|
+
children: s.map((p, S) => g(p, S))
|
|
610
610
|
}
|
|
611
611
|
)
|
|
612
612
|
}
|
|
613
|
-
) : s.map((
|
|
613
|
+
) : s.map((p, S) => g(p, S)),
|
|
614
614
|
T && /* @__PURE__ */ t.jsx(
|
|
615
615
|
"div",
|
|
616
616
|
{
|
|
@@ -623,31 +623,31 @@ const An = (u) => {
|
|
|
623
623
|
dt,
|
|
624
624
|
{
|
|
625
625
|
withoutHover: !0,
|
|
626
|
-
className:
|
|
627
|
-
[
|
|
626
|
+
className: F(Y.button, {
|
|
627
|
+
[Y.disabled]: !!(l && l <= s.length || s.length === (m == null ? void 0 : m.length))
|
|
628
628
|
}),
|
|
629
629
|
size: "s",
|
|
630
|
-
disabled: !!(
|
|
630
|
+
disabled: !!(l && l <= s.length || s.length === (m == null ? void 0 : m.length)),
|
|
631
631
|
onClick: () => {
|
|
632
|
-
const
|
|
632
|
+
const p = [...s];
|
|
633
633
|
let S = null;
|
|
634
|
-
if (
|
|
635
|
-
for (let
|
|
636
|
-
if (!s.find((O) => O.id ===
|
|
637
|
-
S =
|
|
634
|
+
if (m) {
|
|
635
|
+
for (let w = 0; w < m.length; w++)
|
|
636
|
+
if (!s.find((O) => O.id === m[w].id)) {
|
|
637
|
+
S = m[w];
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
|
|
642
|
-
name: S ? S.name :
|
|
643
|
-
id: (S == null ? void 0 : S.id) ||
|
|
644
|
-
...
|
|
645
|
-
}), e(
|
|
641
|
+
_ === "select" && m && p.push({
|
|
642
|
+
name: S ? S.name : m[0].name,
|
|
643
|
+
id: (S == null ? void 0 : S.id) || m[0].id,
|
|
644
|
+
...d
|
|
645
|
+
}), e(p);
|
|
646
646
|
},
|
|
647
647
|
style: {
|
|
648
648
|
width: "fit-content"
|
|
649
649
|
},
|
|
650
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
650
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: Y.addButton, children: [
|
|
651
651
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
652
652
|
/* @__PURE__ */ t.jsx(
|
|
653
653
|
b,
|
|
@@ -665,98 +665,98 @@ const An = (u) => {
|
|
|
665
665
|
] })
|
|
666
666
|
] });
|
|
667
667
|
};
|
|
668
|
-
function
|
|
669
|
-
const { product: i, children: a } =
|
|
668
|
+
function Pe(h) {
|
|
669
|
+
const { product: i, children: a } = h, { attributes: s, listeners: e, setNodeRef: r, transform: c, transition: f, isDragging: j } = jt({
|
|
670
670
|
id: i.id
|
|
671
|
-
}),
|
|
672
|
-
transform: vt.Transform.toString(
|
|
673
|
-
transition:
|
|
671
|
+
}), v = {
|
|
672
|
+
transform: vt.Transform.toString(c),
|
|
673
|
+
transition: f
|
|
674
674
|
};
|
|
675
675
|
return /* @__PURE__ */ t.jsx(
|
|
676
676
|
"div",
|
|
677
677
|
{
|
|
678
|
-
ref:
|
|
679
|
-
style:
|
|
680
|
-
className: `${
|
|
678
|
+
ref: r,
|
|
679
|
+
style: v,
|
|
680
|
+
className: `${V.product} ${j ? V.dragging : ""}`,
|
|
681
681
|
...s,
|
|
682
682
|
...e,
|
|
683
683
|
children: a
|
|
684
684
|
}
|
|
685
685
|
);
|
|
686
686
|
}
|
|
687
|
-
const
|
|
687
|
+
const Rn = (h) => {
|
|
688
688
|
const {
|
|
689
689
|
isActiveItems: i,
|
|
690
690
|
setIsActiveItems: a,
|
|
691
691
|
items: s,
|
|
692
692
|
setItems: e,
|
|
693
|
-
other:
|
|
694
|
-
title:
|
|
695
|
-
subtitle:
|
|
696
|
-
editable:
|
|
697
|
-
draggable:
|
|
693
|
+
other: r,
|
|
694
|
+
title: c,
|
|
695
|
+
subtitle: f,
|
|
696
|
+
editable: j = !0,
|
|
697
|
+
draggable: v = !1,
|
|
698
698
|
deletable: T = !0,
|
|
699
|
-
addable:
|
|
700
|
-
itemsType:
|
|
701
|
-
itemsPlaceholder:
|
|
702
|
-
itemsOptions:
|
|
699
|
+
addable: _ = !0,
|
|
700
|
+
itemsType: m,
|
|
701
|
+
itemsPlaceholder: d = "",
|
|
702
|
+
itemsOptions: l,
|
|
703
703
|
hasRangeSelector: n = !1,
|
|
704
704
|
rangeSelectorOptions: o,
|
|
705
705
|
modalOptions: C,
|
|
706
706
|
addableOptions: y = {},
|
|
707
707
|
limit: M
|
|
708
|
-
} =
|
|
708
|
+
} = h, [U, z] = x.useState(null), [K, g] = x.useState({
|
|
709
709
|
top: 0,
|
|
710
710
|
left: 0
|
|
711
|
-
}), [
|
|
711
|
+
}), [p, S] = x.useState(null), w = x.useRef(null), [O, N] = x.useState(!1), q = pt(
|
|
712
712
|
mt(gt, {
|
|
713
713
|
activationConstraint: {
|
|
714
714
|
distance: 5
|
|
715
715
|
}
|
|
716
716
|
})
|
|
717
717
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
|
|
718
|
+
x.useEffect(() => {
|
|
719
|
+
const u = () => {
|
|
720
|
+
z(null), N(!1);
|
|
721
721
|
};
|
|
722
|
-
return document.body.addEventListener("click",
|
|
723
|
-
|
|
722
|
+
return document.body.addEventListener("click", u), z(null), N(!1), () => {
|
|
723
|
+
z(null), N(!1), document.body.removeEventListener("click", u);
|
|
724
724
|
};
|
|
725
|
-
}, []),
|
|
726
|
-
if (
|
|
727
|
-
const
|
|
728
|
-
e(
|
|
725
|
+
}, []), x.useEffect(() => {
|
|
726
|
+
if (U) {
|
|
727
|
+
const u = [...s].map(($) => $.id === U.id ? U : $);
|
|
728
|
+
e(u);
|
|
729
729
|
}
|
|
730
|
-
}, [
|
|
731
|
-
if (
|
|
732
|
-
const
|
|
733
|
-
let
|
|
734
|
-
|
|
735
|
-
top:
|
|
736
|
-
left:
|
|
730
|
+
}, [U]), x.useEffect(() => {
|
|
731
|
+
if (w.current && p) {
|
|
732
|
+
const u = w.current.getBoundingClientRect().height, $ = window.innerHeight;
|
|
733
|
+
let P = p.top;
|
|
734
|
+
P + u > $ + window.scrollY - 200 && (P = $ + window.scrollY - u - 200), P < 0 && (P = 10), g({
|
|
735
|
+
top: P,
|
|
736
|
+
left: p.left
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
|
-
}, [
|
|
740
|
-
const I = (
|
|
741
|
-
|
|
742
|
-
const
|
|
739
|
+
}, [w.current, p]);
|
|
740
|
+
const I = (u, $) => {
|
|
741
|
+
u.stopPropagation();
|
|
742
|
+
const P = u.target.getBoundingClientRect();
|
|
743
743
|
S({
|
|
744
|
-
top:
|
|
745
|
-
left:
|
|
746
|
-
}),
|
|
747
|
-
}, A = (
|
|
748
|
-
const { active: $, over:
|
|
749
|
-
if (
|
|
750
|
-
const
|
|
751
|
-
if (
|
|
752
|
-
const R = [...s], [
|
|
753
|
-
R.splice(et, 0,
|
|
744
|
+
top: P.top + window.scrollY,
|
|
745
|
+
left: P.left - 30
|
|
746
|
+
}), z($), N(!0);
|
|
747
|
+
}, A = (u) => {
|
|
748
|
+
const { active: $, over: P } = u;
|
|
749
|
+
if (P && $.id !== P.id) {
|
|
750
|
+
const D = s.findIndex((R) => R.id === $.id), et = s.findIndex((R) => R.id === P.id);
|
|
751
|
+
if (D !== -1 && et !== -1) {
|
|
752
|
+
const R = [...s], [Z] = R.splice(D, 1);
|
|
753
|
+
R.splice(et, 0, Z), e(R);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
},
|
|
757
|
-
var
|
|
756
|
+
}, H = (u) => {
|
|
757
|
+
var P;
|
|
758
758
|
const $ = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
759
|
-
|
|
759
|
+
v && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
760
760
|
b,
|
|
761
761
|
{
|
|
762
762
|
name: "DotsSixVertical",
|
|
@@ -765,70 +765,70 @@ const En = (u) => {
|
|
|
765
765
|
height: 20
|
|
766
766
|
}
|
|
767
767
|
) }),
|
|
768
|
-
|
|
769
|
-
|
|
768
|
+
m === "select" && l && /* @__PURE__ */ t.jsx(
|
|
769
|
+
at,
|
|
770
770
|
{
|
|
771
|
-
onChange: (
|
|
772
|
-
const R = [...s].map((
|
|
773
|
-
...
|
|
771
|
+
onChange: (D) => {
|
|
772
|
+
const R = [...s].map((Z) => Z.id === u.id ? {
|
|
773
|
+
...u,
|
|
774
774
|
name: {
|
|
775
|
-
"en-US":
|
|
775
|
+
"en-US": D
|
|
776
776
|
}
|
|
777
|
-
} :
|
|
778
|
-
|
|
779
|
-
...
|
|
777
|
+
} : Z);
|
|
778
|
+
z({
|
|
779
|
+
...u,
|
|
780
780
|
name: {
|
|
781
|
-
"en-US":
|
|
781
|
+
"en-US": D
|
|
782
782
|
}
|
|
783
783
|
}), e([...R]);
|
|
784
784
|
},
|
|
785
|
-
value:
|
|
786
|
-
options:
|
|
787
|
-
(
|
|
785
|
+
value: u.name["en-US"],
|
|
786
|
+
options: l.filter(
|
|
787
|
+
(D) => !s.find((et) => et.name["en-US"] === D)
|
|
788
788
|
)
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
|
|
791
|
+
m === "input" && /* @__PURE__ */ t.jsx(
|
|
792
792
|
Nt,
|
|
793
793
|
{
|
|
794
|
-
onChange: (
|
|
795
|
-
const R = [...s].map((
|
|
796
|
-
...
|
|
794
|
+
onChange: (D) => {
|
|
795
|
+
const R = [...s].map((Z) => Z.id === u.id ? {
|
|
796
|
+
...u,
|
|
797
797
|
name: {
|
|
798
|
-
"en-US":
|
|
798
|
+
"en-US": D
|
|
799
799
|
}
|
|
800
|
-
} :
|
|
800
|
+
} : Z);
|
|
801
801
|
e([...R]);
|
|
802
802
|
},
|
|
803
|
-
value:
|
|
804
|
-
placeholder:
|
|
803
|
+
value: u.name["en-US"],
|
|
804
|
+
placeholder: d
|
|
805
805
|
}
|
|
806
806
|
),
|
|
807
|
-
|
|
807
|
+
m === "image" && /* @__PURE__ */ t.jsx(
|
|
808
808
|
At,
|
|
809
809
|
{
|
|
810
|
-
onChange: (
|
|
811
|
-
const R = [...s].map((
|
|
812
|
-
...
|
|
813
|
-
images:
|
|
814
|
-
} :
|
|
810
|
+
onChange: (D) => {
|
|
811
|
+
const R = [...s].map((Z) => Z.id === u.id ? {
|
|
812
|
+
...u,
|
|
813
|
+
images: D
|
|
814
|
+
} : Z);
|
|
815
815
|
e([...R]);
|
|
816
816
|
},
|
|
817
|
-
activeImage: (
|
|
817
|
+
activeImage: (P = s.find((D) => D.id === u.id)) == null ? void 0 : P.images[0]
|
|
818
818
|
}
|
|
819
819
|
),
|
|
820
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
821
|
-
|
|
820
|
+
/* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
|
|
821
|
+
j && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
822
822
|
b,
|
|
823
823
|
{
|
|
824
824
|
name: "Sliders",
|
|
825
825
|
hoverable: !0,
|
|
826
826
|
width: 20,
|
|
827
827
|
height: 20,
|
|
828
|
-
onClick: (
|
|
828
|
+
onClick: (D) => I(D, u)
|
|
829
829
|
}
|
|
830
830
|
) }),
|
|
831
|
-
T && /* @__PURE__ */ t.jsx("div", { className:
|
|
831
|
+
T && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
832
832
|
b,
|
|
833
833
|
{
|
|
834
834
|
name: "Trash",
|
|
@@ -836,53 +836,53 @@ const En = (u) => {
|
|
|
836
836
|
width: 20,
|
|
837
837
|
height: 20,
|
|
838
838
|
fill: "#C12A2A",
|
|
839
|
-
onClick: () => e(s.filter((
|
|
839
|
+
onClick: () => e(s.filter((D) => D.id !== u.id))
|
|
840
840
|
}
|
|
841
841
|
) })
|
|
842
842
|
] })
|
|
843
843
|
] });
|
|
844
|
-
return
|
|
845
|
-
|
|
844
|
+
return v ? /* @__PURE__ */ t.jsx(
|
|
845
|
+
Pe,
|
|
846
846
|
{
|
|
847
|
-
product:
|
|
847
|
+
product: u,
|
|
848
848
|
children: $
|
|
849
849
|
},
|
|
850
|
-
|
|
850
|
+
u.id
|
|
851
851
|
) : /* @__PURE__ */ t.jsx(
|
|
852
852
|
"div",
|
|
853
853
|
{
|
|
854
|
-
className:
|
|
854
|
+
className: V.product,
|
|
855
855
|
children: $
|
|
856
856
|
},
|
|
857
|
-
|
|
857
|
+
u.id
|
|
858
858
|
);
|
|
859
859
|
};
|
|
860
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
861
|
-
(
|
|
862
|
-
|
|
860
|
+
return /* @__PURE__ */ t.jsxs("div", { className: V.productsBlock, children: [
|
|
861
|
+
(c || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: V.top, children: [
|
|
862
|
+
c && /* @__PURE__ */ t.jsx("h3", { className: V.title, children: c }),
|
|
863
863
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
864
864
|
lt,
|
|
865
865
|
{
|
|
866
866
|
current: i,
|
|
867
|
-
onChange: (
|
|
867
|
+
onChange: (u) => a == null ? void 0 : a(u)
|
|
868
868
|
}
|
|
869
869
|
)
|
|
870
870
|
] }),
|
|
871
|
-
|
|
871
|
+
U && j && C && O && /* @__PURE__ */ t.jsx(
|
|
872
872
|
qt,
|
|
873
873
|
{
|
|
874
|
-
ref:
|
|
875
|
-
activeItem:
|
|
876
|
-
setActiveItem:
|
|
877
|
-
popupPosition:
|
|
874
|
+
ref: w,
|
|
875
|
+
activeItem: U,
|
|
876
|
+
setActiveItem: z,
|
|
877
|
+
popupPosition: K,
|
|
878
878
|
modalOptions: C,
|
|
879
879
|
setIsOpenModal: N
|
|
880
880
|
}
|
|
881
881
|
),
|
|
882
|
-
n && o && /* @__PURE__ */ t.jsx(
|
|
883
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
884
|
-
|
|
885
|
-
|
|
882
|
+
n && o && /* @__PURE__ */ t.jsx(Pt, { ...o }),
|
|
883
|
+
/* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
|
|
884
|
+
f && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: f }),
|
|
885
|
+
v ? /* @__PURE__ */ t.jsx(
|
|
886
886
|
ft,
|
|
887
887
|
{
|
|
888
888
|
sensors: q,
|
|
@@ -890,14 +890,14 @@ const En = (u) => {
|
|
|
890
890
|
children: /* @__PURE__ */ t.jsx(
|
|
891
891
|
xt,
|
|
892
892
|
{
|
|
893
|
-
items: s.map((
|
|
893
|
+
items: s.map((u) => u.id),
|
|
894
894
|
strategy: _t,
|
|
895
|
-
children: s.map((
|
|
895
|
+
children: s.map((u) => H(u))
|
|
896
896
|
}
|
|
897
897
|
)
|
|
898
898
|
}
|
|
899
|
-
) : s.map((
|
|
900
|
-
|
|
899
|
+
) : s.map((u) => H(u)),
|
|
900
|
+
_ && /* @__PURE__ */ t.jsx(
|
|
901
901
|
"div",
|
|
902
902
|
{
|
|
903
903
|
style: {
|
|
@@ -909,49 +909,49 @@ const En = (u) => {
|
|
|
909
909
|
dt,
|
|
910
910
|
{
|
|
911
911
|
withoutHover: !0,
|
|
912
|
-
className:
|
|
913
|
-
[
|
|
912
|
+
className: F(V.button, {
|
|
913
|
+
[V.disabled]: !!(M && M <= s.length)
|
|
914
914
|
}),
|
|
915
915
|
size: "s",
|
|
916
916
|
disabled: !!(M && M <= s.length),
|
|
917
917
|
onClick: () => {
|
|
918
|
-
const
|
|
918
|
+
const u = [...s];
|
|
919
919
|
let $ = null;
|
|
920
|
-
if (
|
|
921
|
-
for (let
|
|
922
|
-
if (!s.find((
|
|
923
|
-
$ =
|
|
920
|
+
if (l) {
|
|
921
|
+
for (let P = 0; P < l.length; P++)
|
|
922
|
+
if (!s.find((D) => D.name["en-US"] === l[P])) {
|
|
923
|
+
$ = l[P];
|
|
924
924
|
break;
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
|
-
|
|
927
|
+
m === "select" && l ? u.push({
|
|
928
928
|
name: {
|
|
929
|
-
"en-US": $ ||
|
|
929
|
+
"en-US": $ || l[0]
|
|
930
930
|
},
|
|
931
|
-
id:
|
|
931
|
+
id: J(),
|
|
932
932
|
...y,
|
|
933
933
|
maxSymbols: 100
|
|
934
934
|
// пример значения
|
|
935
|
-
}) :
|
|
935
|
+
}) : m === "input" ? u.push({
|
|
936
936
|
name: {
|
|
937
937
|
"en-US": ""
|
|
938
938
|
},
|
|
939
|
-
id:
|
|
939
|
+
id: J(),
|
|
940
940
|
...y,
|
|
941
941
|
maxSymbols: 100
|
|
942
|
-
}) :
|
|
942
|
+
}) : u.push({
|
|
943
943
|
name: {
|
|
944
944
|
"en-US": `Image ${s.length + 1}`
|
|
945
945
|
},
|
|
946
|
-
id:
|
|
946
|
+
id: J(),
|
|
947
947
|
...y,
|
|
948
948
|
maxSymbols: 100
|
|
949
|
-
}), e(
|
|
949
|
+
}), e(u);
|
|
950
950
|
},
|
|
951
951
|
style: {
|
|
952
952
|
width: "fit-content"
|
|
953
953
|
},
|
|
954
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
954
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: V.addButton, children: [
|
|
955
955
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
956
956
|
/* @__PURE__ */ t.jsx(
|
|
957
957
|
b,
|
|
@@ -967,49 +967,49 @@ const En = (u) => {
|
|
|
967
967
|
}
|
|
968
968
|
)
|
|
969
969
|
] }),
|
|
970
|
-
|
|
970
|
+
r !== void 0 && /* @__PURE__ */ t.jsx(
|
|
971
971
|
ht,
|
|
972
972
|
{
|
|
973
973
|
otherTitle: "Other",
|
|
974
|
-
items:
|
|
974
|
+
items: r
|
|
975
975
|
}
|
|
976
976
|
)
|
|
977
977
|
] });
|
|
978
|
-
},
|
|
979
|
-
subtitle:
|
|
980
|
-
products:
|
|
978
|
+
}, ke = "_subtitle_jql1y_1", we = "_products_jql1y_10", Te = "_product_jql1y_10", Me = "_button_jql1y_11", Be = "_buttons_jql1y_11", $e = "_addButton_jql1y_150", Oe = "_deleteButton_jql1y_165", st = {
|
|
979
|
+
subtitle: ke,
|
|
980
|
+
products: we,
|
|
981
981
|
product: Te,
|
|
982
982
|
button: Me,
|
|
983
983
|
buttons: Be,
|
|
984
984
|
addButton: $e,
|
|
985
985
|
deleteButton: Oe
|
|
986
|
-
}, qe = (
|
|
987
|
-
const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink:
|
|
986
|
+
}, qe = (h) => {
|
|
987
|
+
const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink: r = !0 } = h, { pages: c } = yt(), [f, j] = x.useState(null), [v, T] = x.useState({
|
|
988
988
|
top: 0,
|
|
989
989
|
left: 0
|
|
990
|
-
}), [
|
|
991
|
-
|
|
992
|
-
if (
|
|
993
|
-
const o = [...i].map((C) => C.id ===
|
|
990
|
+
}), [_, m] = x.useState(null), d = x.useRef(null);
|
|
991
|
+
x.useEffect(() => {
|
|
992
|
+
if (f) {
|
|
993
|
+
const o = [...i].map((C) => C.id === f.id ? f : C);
|
|
994
994
|
a(o);
|
|
995
995
|
}
|
|
996
|
-
}, [
|
|
997
|
-
if (
|
|
998
|
-
const o =
|
|
999
|
-
let y =
|
|
996
|
+
}, [f]), x.useEffect(() => {
|
|
997
|
+
if (d.current && _) {
|
|
998
|
+
const o = d.current.getBoundingClientRect().height, C = window.innerHeight;
|
|
999
|
+
let y = _.top;
|
|
1000
1000
|
y + o > C + window.scrollY - 200 && (y = C + window.scrollY - o - 200), y < 0 && (y = 10), T({
|
|
1001
1001
|
top: y,
|
|
1002
|
-
left:
|
|
1002
|
+
left: _.left
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
}, [
|
|
1006
|
-
const
|
|
1005
|
+
}, [d.current, _]);
|
|
1006
|
+
const l = (o, C) => {
|
|
1007
1007
|
o.stopPropagation();
|
|
1008
1008
|
const y = o.target.getBoundingClientRect();
|
|
1009
|
-
|
|
1009
|
+
m({
|
|
1010
1010
|
top: y.top + window.scrollY - 70,
|
|
1011
1011
|
left: y.left - (e ? 30 : 65)
|
|
1012
|
-
}),
|
|
1012
|
+
}), j(C);
|
|
1013
1013
|
}, n = (o, C) => {
|
|
1014
1014
|
const y = [...i], M = {
|
|
1015
1015
|
...o,
|
|
@@ -1026,14 +1026,14 @@ const En = (u) => {
|
|
|
1026
1026
|
className: st.product,
|
|
1027
1027
|
children: [
|
|
1028
1028
|
/* @__PURE__ */ t.jsx(
|
|
1029
|
-
|
|
1029
|
+
at,
|
|
1030
1030
|
{
|
|
1031
1031
|
onChange: (y) => {
|
|
1032
|
-
const
|
|
1032
|
+
const U = [...i].map((z) => z.id === o.id ? {
|
|
1033
1033
|
...o,
|
|
1034
1034
|
type: y
|
|
1035
|
-
} :
|
|
1036
|
-
a(
|
|
1035
|
+
} : z);
|
|
1036
|
+
a(U);
|
|
1037
1037
|
},
|
|
1038
1038
|
value: o.type,
|
|
1039
1039
|
options: ["Primary", "Secondary", "Tertiary"]
|
|
@@ -1060,7 +1060,7 @@ const En = (u) => {
|
|
|
1060
1060
|
width: 20,
|
|
1061
1061
|
height: 20,
|
|
1062
1062
|
onClick: (y) => {
|
|
1063
|
-
|
|
1063
|
+
l(y, o);
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
) }),
|
|
@@ -1083,14 +1083,14 @@ const En = (u) => {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
o.id
|
|
1085
1085
|
)),
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
f && /* @__PURE__ */ t.jsx(
|
|
1087
|
+
Dt,
|
|
1088
1088
|
{
|
|
1089
|
-
ref:
|
|
1090
|
-
activeButton:
|
|
1091
|
-
setActiveButton:
|
|
1092
|
-
popupPosition:
|
|
1093
|
-
editableLink:
|
|
1089
|
+
ref: d,
|
|
1090
|
+
activeButton: f,
|
|
1091
|
+
setActiveButton: j,
|
|
1092
|
+
popupPosition: v,
|
|
1093
|
+
editableLink: r
|
|
1094
1094
|
}
|
|
1095
1095
|
),
|
|
1096
1096
|
e && /* @__PURE__ */ t.jsx(
|
|
@@ -1109,25 +1109,25 @@ const En = (u) => {
|
|
|
1109
1109
|
size: "s",
|
|
1110
1110
|
onClick: () => {
|
|
1111
1111
|
const o = [...i];
|
|
1112
|
-
|
|
1112
|
+
r ? o.push({
|
|
1113
1113
|
type: "Primary",
|
|
1114
|
-
id:
|
|
1114
|
+
id: J(),
|
|
1115
1115
|
typesText: [],
|
|
1116
1116
|
text: {
|
|
1117
1117
|
"en-US": "Button Name"
|
|
1118
1118
|
},
|
|
1119
1119
|
destination: "Go to Page",
|
|
1120
|
-
page:
|
|
1120
|
+
page: c ? Object.values(c)[0].path : "/",
|
|
1121
1121
|
openInNewTab: !1
|
|
1122
1122
|
}) : o.push({
|
|
1123
1123
|
type: "Primary",
|
|
1124
|
-
id:
|
|
1124
|
+
id: J(),
|
|
1125
1125
|
typesText: [],
|
|
1126
1126
|
text: {
|
|
1127
1127
|
"en-US": "Create Ticket"
|
|
1128
1128
|
},
|
|
1129
1129
|
destination: "Go to Page",
|
|
1130
|
-
page:
|
|
1130
|
+
page: c ? Object.values(c)[0].path : "/",
|
|
1131
1131
|
openInNewTab: !1
|
|
1132
1132
|
}), a(o);
|
|
1133
1133
|
},
|
|
@@ -1150,16 +1150,16 @@ const En = (u) => {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
)
|
|
1152
1152
|
] });
|
|
1153
|
-
},
|
|
1153
|
+
}, Ln = (h) => {
|
|
1154
1154
|
const {
|
|
1155
1155
|
isActiveButtons: i,
|
|
1156
1156
|
setIsActiveButtons: a,
|
|
1157
1157
|
buttons: s,
|
|
1158
1158
|
setButtons: e,
|
|
1159
|
-
editableLink:
|
|
1160
|
-
addable:
|
|
1161
|
-
deletable:
|
|
1162
|
-
} =
|
|
1159
|
+
editableLink: r = !0,
|
|
1160
|
+
addable: c = !0,
|
|
1161
|
+
deletable: f = !0
|
|
1162
|
+
} = h;
|
|
1163
1163
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: bt.buttonsBlock, children: [
|
|
1164
1164
|
/* @__PURE__ */ t.jsxs("div", { className: bt.top, children: [
|
|
1165
1165
|
/* @__PURE__ */ t.jsx("h3", { className: bt.title, children: "Buttons" }),
|
|
@@ -1167,7 +1167,7 @@ const En = (u) => {
|
|
|
1167
1167
|
lt,
|
|
1168
1168
|
{
|
|
1169
1169
|
current: i,
|
|
1170
|
-
onChange: (
|
|
1170
|
+
onChange: (j) => a(j)
|
|
1171
1171
|
}
|
|
1172
1172
|
)
|
|
1173
1173
|
] }),
|
|
@@ -1176,71 +1176,71 @@ const En = (u) => {
|
|
|
1176
1176
|
{
|
|
1177
1177
|
buttons: s,
|
|
1178
1178
|
setButtons: e,
|
|
1179
|
-
editableLink:
|
|
1180
|
-
addable:
|
|
1181
|
-
deletable:
|
|
1179
|
+
editableLink: r,
|
|
1180
|
+
addable: c,
|
|
1181
|
+
deletable: f
|
|
1182
1182
|
}
|
|
1183
1183
|
)
|
|
1184
1184
|
] }) });
|
|
1185
1185
|
};
|
|
1186
|
-
function Ae(
|
|
1187
|
-
const { product: i, children: a } =
|
|
1186
|
+
function Ae(h) {
|
|
1187
|
+
const { product: i, children: a } = h, { attributes: s, listeners: e, setNodeRef: r, transform: c, transition: f, isDragging: j } = jt({
|
|
1188
1188
|
id: String(i.listingId)
|
|
1189
|
-
}),
|
|
1190
|
-
transform: vt.Transform.toString(
|
|
1191
|
-
transition:
|
|
1189
|
+
}), v = {
|
|
1190
|
+
transform: vt.Transform.toString(c),
|
|
1191
|
+
transition: f
|
|
1192
1192
|
};
|
|
1193
1193
|
return /* @__PURE__ */ t.jsx(
|
|
1194
1194
|
"div",
|
|
1195
1195
|
{
|
|
1196
|
-
ref:
|
|
1197
|
-
style:
|
|
1198
|
-
className: `${W.product} ${
|
|
1196
|
+
ref: r,
|
|
1197
|
+
style: v,
|
|
1198
|
+
className: `${W.product} ${j ? W.dragging : ""}`,
|
|
1199
1199
|
...s,
|
|
1200
1200
|
...e,
|
|
1201
1201
|
children: a
|
|
1202
1202
|
}
|
|
1203
1203
|
);
|
|
1204
1204
|
}
|
|
1205
|
-
const
|
|
1205
|
+
const Un = (h) => {
|
|
1206
1206
|
const {
|
|
1207
1207
|
isActiveItems: i,
|
|
1208
1208
|
setIsActiveItems: a,
|
|
1209
1209
|
items: s,
|
|
1210
1210
|
setItems: e,
|
|
1211
|
-
other:
|
|
1212
|
-
title:
|
|
1213
|
-
subtitle:
|
|
1214
|
-
editable:
|
|
1215
|
-
draggable:
|
|
1211
|
+
other: r,
|
|
1212
|
+
title: c,
|
|
1213
|
+
subtitle: f,
|
|
1214
|
+
editable: j = !0,
|
|
1215
|
+
draggable: v = !1,
|
|
1216
1216
|
withImage: T = !1,
|
|
1217
|
-
deletable:
|
|
1218
|
-
addable:
|
|
1219
|
-
itemsType:
|
|
1220
|
-
itemsOptions:
|
|
1217
|
+
deletable: _ = !0,
|
|
1218
|
+
addable: m = !0,
|
|
1219
|
+
itemsType: d,
|
|
1220
|
+
itemsOptions: l,
|
|
1221
1221
|
limit: n,
|
|
1222
1222
|
aspectRatio: o,
|
|
1223
1223
|
setAspectRatio: C
|
|
1224
|
-
} =
|
|
1224
|
+
} = h, [y, M] = x.useState(
|
|
1225
1225
|
null
|
|
1226
|
-
), [
|
|
1226
|
+
), [U, z] = x.useState({
|
|
1227
1227
|
top: 0,
|
|
1228
1228
|
left: 0
|
|
1229
|
-
}), [
|
|
1229
|
+
}), [K, g] = x.useState(!1), p = pt(
|
|
1230
1230
|
mt(gt, {
|
|
1231
1231
|
activationConstraint: {
|
|
1232
1232
|
distance: 5
|
|
1233
1233
|
}
|
|
1234
1234
|
})
|
|
1235
1235
|
);
|
|
1236
|
-
|
|
1236
|
+
x.useEffect(() => {
|
|
1237
1237
|
const I = () => {
|
|
1238
|
-
M(null),
|
|
1238
|
+
M(null), g(!1);
|
|
1239
1239
|
};
|
|
1240
|
-
return document.body.addEventListener("click", I), M(null),
|
|
1241
|
-
M(null),
|
|
1240
|
+
return document.body.addEventListener("click", I), M(null), g(!1), () => {
|
|
1241
|
+
M(null), g(!1), document.body.removeEventListener("click", I);
|
|
1242
1242
|
};
|
|
1243
|
-
}, []),
|
|
1243
|
+
}, []), x.useEffect(() => {
|
|
1244
1244
|
if (y) {
|
|
1245
1245
|
const I = [...s].map((A) => A.listingId === y.listingId ? y : A);
|
|
1246
1246
|
e(I);
|
|
@@ -1248,14 +1248,14 @@ const Dn = (u) => {
|
|
|
1248
1248
|
}, [y]);
|
|
1249
1249
|
const S = (I, A) => {
|
|
1250
1250
|
I.stopPropagation();
|
|
1251
|
-
const
|
|
1252
|
-
let
|
|
1253
|
-
|
|
1254
|
-
top:
|
|
1255
|
-
left:
|
|
1251
|
+
const H = I.target.getBoundingClientRect(), u = 100, $ = window.innerHeight;
|
|
1252
|
+
let P = H.top + window.scrollY;
|
|
1253
|
+
P + u > $ && (P = $ - u - 20), g(!0), z({
|
|
1254
|
+
top: P - 80,
|
|
1255
|
+
left: H.left - 30
|
|
1256
1256
|
}), M(A);
|
|
1257
1257
|
};
|
|
1258
|
-
function
|
|
1258
|
+
function w(I) {
|
|
1259
1259
|
if (T)
|
|
1260
1260
|
return I ? /* @__PURE__ */ t.jsx(
|
|
1261
1261
|
"img",
|
|
@@ -1276,19 +1276,19 @@ const Dn = (u) => {
|
|
|
1276
1276
|
);
|
|
1277
1277
|
}
|
|
1278
1278
|
const O = (I) => {
|
|
1279
|
-
const { active: A, over:
|
|
1280
|
-
if (
|
|
1281
|
-
const
|
|
1282
|
-
if (
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1279
|
+
const { active: A, over: H } = I;
|
|
1280
|
+
if (H && A.id !== H.id) {
|
|
1281
|
+
const u = s.findIndex((P) => String(P.listingId) === A.id), $ = s.findIndex((P) => String(P.listingId) === H.id);
|
|
1282
|
+
if (u !== -1 && $ !== -1) {
|
|
1283
|
+
const P = [...s], [D] = P.splice(u, 1);
|
|
1284
|
+
P.splice($, 0, D), e(P);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}, N = (I) => {
|
|
1288
|
-
const A =
|
|
1288
|
+
const A = l.find((u) => I.listingId === u.id);
|
|
1289
1289
|
if (!A) return null;
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1290
|
+
const H = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1291
|
+
v && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1292
1292
|
b,
|
|
1293
1293
|
{
|
|
1294
1294
|
name: "DotsSixVertical",
|
|
@@ -1297,43 +1297,43 @@ const Dn = (u) => {
|
|
|
1297
1297
|
height: 20
|
|
1298
1298
|
}
|
|
1299
1299
|
) }),
|
|
1300
|
-
|
|
1301
|
-
|
|
1300
|
+
d === "select" && /* @__PURE__ */ t.jsx(
|
|
1301
|
+
at,
|
|
1302
1302
|
{
|
|
1303
|
-
onChange: (
|
|
1304
|
-
const $ = [...s],
|
|
1305
|
-
if (!
|
|
1306
|
-
const
|
|
1307
|
-
listingId:
|
|
1308
|
-
image:
|
|
1309
|
-
}, et = $.map((R) => R.listingId === I.listingId ?
|
|
1310
|
-
M(
|
|
1303
|
+
onChange: (u) => {
|
|
1304
|
+
const $ = [...s], P = l.find((R) => R.productData.name === u);
|
|
1305
|
+
if (!P) return;
|
|
1306
|
+
const D = {
|
|
1307
|
+
listingId: P.id,
|
|
1308
|
+
image: P.productData.images.length > 0 ? P.productData.images[0].cfId : ""
|
|
1309
|
+
}, et = $.map((R) => R.listingId === I.listingId ? D : R);
|
|
1310
|
+
M(D), e([...et]);
|
|
1311
1311
|
},
|
|
1312
1312
|
value: A.productData.name,
|
|
1313
1313
|
options: [
|
|
1314
|
-
...
|
|
1314
|
+
...l.filter((u) => !s.find(($) => $.listingId === u.id)).map((u) => u.productData.name)
|
|
1315
1315
|
],
|
|
1316
|
-
leftAddonOptions:
|
|
1316
|
+
leftAddonOptions: l.map((u) => {
|
|
1317
1317
|
var $;
|
|
1318
1318
|
return {
|
|
1319
|
-
value:
|
|
1320
|
-
addon:
|
|
1319
|
+
value: u.productData.name,
|
|
1320
|
+
addon: w((($ = u.productData.images[0]) == null ? void 0 : $.cfId) || "")
|
|
1321
1321
|
};
|
|
1322
1322
|
})
|
|
1323
1323
|
}
|
|
1324
1324
|
),
|
|
1325
1325
|
/* @__PURE__ */ t.jsxs("div", { className: W.buttons, children: [
|
|
1326
|
-
|
|
1326
|
+
j && /* @__PURE__ */ t.jsx("div", { className: W.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1327
1327
|
b,
|
|
1328
1328
|
{
|
|
1329
1329
|
name: "Sliders",
|
|
1330
1330
|
hoverable: !0,
|
|
1331
1331
|
width: 20,
|
|
1332
1332
|
height: 20,
|
|
1333
|
-
onClick: (
|
|
1333
|
+
onClick: (u) => S(u, I)
|
|
1334
1334
|
}
|
|
1335
1335
|
) }),
|
|
1336
|
-
|
|
1336
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: W.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1337
1337
|
b,
|
|
1338
1338
|
{
|
|
1339
1339
|
name: "Trash",
|
|
@@ -1341,30 +1341,30 @@ const Dn = (u) => {
|
|
|
1341
1341
|
width: 20,
|
|
1342
1342
|
height: 20,
|
|
1343
1343
|
fill: "#C12A2A",
|
|
1344
|
-
onClick: () => e(s.filter((
|
|
1344
|
+
onClick: () => e(s.filter((u) => u !== I))
|
|
1345
1345
|
}
|
|
1346
1346
|
) })
|
|
1347
1347
|
] })
|
|
1348
1348
|
] });
|
|
1349
|
-
return
|
|
1349
|
+
return v ? /* @__PURE__ */ t.jsx(
|
|
1350
1350
|
Ae,
|
|
1351
1351
|
{
|
|
1352
1352
|
product: I,
|
|
1353
|
-
children:
|
|
1353
|
+
children: H
|
|
1354
1354
|
},
|
|
1355
1355
|
I.listingId
|
|
1356
1356
|
) : /* @__PURE__ */ t.jsx(
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
1359
1359
|
className: W.product,
|
|
1360
|
-
children:
|
|
1360
|
+
children: H
|
|
1361
1361
|
},
|
|
1362
1362
|
I.listingId
|
|
1363
1363
|
);
|
|
1364
|
-
}, q =
|
|
1364
|
+
}, q = x.useRef(null);
|
|
1365
1365
|
return /* @__PURE__ */ t.jsxs("div", { className: W.productsBlock, children: [
|
|
1366
|
-
(
|
|
1367
|
-
|
|
1366
|
+
(c || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: W.top, children: [
|
|
1367
|
+
c && /* @__PURE__ */ t.jsx("h3", { className: W.title, children: c }),
|
|
1368
1368
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1369
1369
|
lt,
|
|
1370
1370
|
{
|
|
@@ -1373,23 +1373,23 @@ const Dn = (u) => {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
)
|
|
1375
1375
|
] }),
|
|
1376
|
-
|
|
1377
|
-
|
|
1376
|
+
K && y && /* @__PURE__ */ t.jsx(
|
|
1377
|
+
Et,
|
|
1378
1378
|
{
|
|
1379
1379
|
ref: q,
|
|
1380
1380
|
activeItem: y,
|
|
1381
1381
|
setActiveItem: M,
|
|
1382
|
-
setIsOpenModal:
|
|
1383
|
-
popupPosition:
|
|
1384
|
-
itemsOptions:
|
|
1382
|
+
setIsOpenModal: g,
|
|
1383
|
+
popupPosition: U,
|
|
1384
|
+
itemsOptions: l
|
|
1385
1385
|
}
|
|
1386
1386
|
),
|
|
1387
1387
|
i && /* @__PURE__ */ t.jsxs("div", { className: W.products, children: [
|
|
1388
|
-
|
|
1389
|
-
|
|
1388
|
+
f && /* @__PURE__ */ t.jsx("h5", { className: W.subtitle, children: f }),
|
|
1389
|
+
v ? /* @__PURE__ */ t.jsx(
|
|
1390
1390
|
ft,
|
|
1391
1391
|
{
|
|
1392
|
-
sensors:
|
|
1392
|
+
sensors: p,
|
|
1393
1393
|
onDragEnd: O,
|
|
1394
1394
|
children: /* @__PURE__ */ t.jsx(
|
|
1395
1395
|
xt,
|
|
@@ -1401,7 +1401,7 @@ const Dn = (u) => {
|
|
|
1401
1401
|
)
|
|
1402
1402
|
}
|
|
1403
1403
|
) : s.map((I) => N(I)),
|
|
1404
|
-
|
|
1404
|
+
m && /* @__PURE__ */ t.jsx(
|
|
1405
1405
|
"div",
|
|
1406
1406
|
{
|
|
1407
1407
|
style: {
|
|
@@ -1417,17 +1417,17 @@ const Dn = (u) => {
|
|
|
1417
1417
|
size: "s",
|
|
1418
1418
|
onClick: () => {
|
|
1419
1419
|
const I = [...s];
|
|
1420
|
-
for (let A = 0; A <
|
|
1421
|
-
if (!s.find((
|
|
1420
|
+
for (let A = 0; A < l.length; A++)
|
|
1421
|
+
if (!s.find((H) => H.listingId === l[A].id)) {
|
|
1422
1422
|
I.push({
|
|
1423
|
-
listingId:
|
|
1424
|
-
image:
|
|
1423
|
+
listingId: l[A].id,
|
|
1424
|
+
image: l[A].productData.images.length > 0 ? l[A].productData.images[0].cfId : ""
|
|
1425
1425
|
});
|
|
1426
1426
|
break;
|
|
1427
1427
|
}
|
|
1428
1428
|
e(I);
|
|
1429
1429
|
},
|
|
1430
|
-
disabled: s.length === (n ||
|
|
1430
|
+
disabled: s.length === (n || l.length),
|
|
1431
1431
|
style: {
|
|
1432
1432
|
width: "fit-content"
|
|
1433
1433
|
},
|
|
@@ -1448,26 +1448,26 @@ const Dn = (u) => {
|
|
|
1448
1448
|
)
|
|
1449
1449
|
] }),
|
|
1450
1450
|
o && C && /* @__PURE__ */ t.jsx(
|
|
1451
|
-
|
|
1451
|
+
at,
|
|
1452
1452
|
{
|
|
1453
1453
|
value: o,
|
|
1454
|
-
options: Object.keys(
|
|
1454
|
+
options: Object.keys(wt),
|
|
1455
1455
|
onChange: (I) => C(I),
|
|
1456
|
-
leftAddonOptions:
|
|
1456
|
+
leftAddonOptions: kt
|
|
1457
1457
|
}
|
|
1458
1458
|
),
|
|
1459
|
-
i &&
|
|
1459
|
+
i && r !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1460
1460
|
ht,
|
|
1461
1461
|
{
|
|
1462
1462
|
otherTitle: "Other",
|
|
1463
|
-
items:
|
|
1463
|
+
items: r
|
|
1464
1464
|
}
|
|
1465
1465
|
)
|
|
1466
1466
|
] });
|
|
1467
|
-
},
|
|
1468
|
-
options:
|
|
1469
|
-
price:
|
|
1470
|
-
oldPrice:
|
|
1467
|
+
}, De = "_options_167h8_1", Ee = "_price_167h8_18", ze = "_oldPrice_167h8_25", Re = "_newPrice_167h8_33", Le = "_animate_167h8_40", Ue = "_meta_167h8_58", He = "_info_167h8_64", Fe = "_infoRight_167h8_73", Ve = "_buttons_167h8_80", Ye = "_variants_167h8_87", Ge = "_variant_167h8_87", We = "_stock_167h8_105", Xe = "_variantInfo_167h8_112", Qe = "_quantity_167h8_119", Je = "_button_167h8_80", Ke = "_activeVariant_167h8_165", Ze = "_chargeTypes_167h8_169", ts = "_charge_167h8_169", es = "_chargeActive_167h8_194", ss = "_title_167h8_202", B = {
|
|
1468
|
+
options: De,
|
|
1469
|
+
price: Ee,
|
|
1470
|
+
oldPrice: ze,
|
|
1471
1471
|
newPrice: Re,
|
|
1472
1472
|
animate: Le,
|
|
1473
1473
|
meta: Ue,
|
|
@@ -1486,38 +1486,38 @@ const Dn = (u) => {
|
|
|
1486
1486
|
chargeActive: es,
|
|
1487
1487
|
title: ss
|
|
1488
1488
|
};
|
|
1489
|
-
var $t = /* @__PURE__ */ ((
|
|
1490
|
-
const ns = (
|
|
1491
|
-
var
|
|
1492
|
-
const { product: i, setIsOpen: a } =
|
|
1489
|
+
var $t = /* @__PURE__ */ ((h) => (h.ONE_TIME = "One-Time", h.RECURRING = "Subscribe & Save", h))($t || {});
|
|
1490
|
+
const ns = (h) => {
|
|
1491
|
+
var z, K;
|
|
1492
|
+
const { product: i, setIsOpen: a } = h, { variants: s } = i, [e, r] = x.useState(s[0]), [c, f] = x.useState(
|
|
1493
1493
|
e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
|
|
1494
|
-
), { notifications:
|
|
1495
|
-
|
|
1494
|
+
), { notifications: j, setNotifications: v } = Ct(), T = St(), [_, m] = x.useState(1), { cart: d, reset: l, addProductToCart: n } = ot(), [o, C] = x.useState(!1);
|
|
1495
|
+
x.useEffect(() => {
|
|
1496
1496
|
C(!0);
|
|
1497
|
-
const
|
|
1498
|
-
return () => clearTimeout(
|
|
1499
|
-
}, [
|
|
1497
|
+
const g = setTimeout(() => C(!1), 600);
|
|
1498
|
+
return () => clearTimeout(g);
|
|
1499
|
+
}, [_]);
|
|
1500
1500
|
async function y() {
|
|
1501
1501
|
try {
|
|
1502
1502
|
n({
|
|
1503
1503
|
productId: i.id,
|
|
1504
1504
|
productVariantId: e.id,
|
|
1505
|
-
chargeType:
|
|
1506
|
-
quantity:
|
|
1507
|
-
}),
|
|
1508
|
-
...
|
|
1505
|
+
chargeType: c,
|
|
1506
|
+
quantity: _
|
|
1507
|
+
}), v([
|
|
1508
|
+
...j,
|
|
1509
1509
|
{
|
|
1510
|
-
id:
|
|
1510
|
+
id: J(),
|
|
1511
1511
|
message: "Product added to cart",
|
|
1512
1512
|
status: "success"
|
|
1513
1513
|
}
|
|
1514
1514
|
]);
|
|
1515
|
-
} catch (
|
|
1516
|
-
|
|
1517
|
-
...
|
|
1515
|
+
} catch (g) {
|
|
1516
|
+
v([
|
|
1517
|
+
...j,
|
|
1518
1518
|
{
|
|
1519
|
-
id:
|
|
1520
|
-
message: `Product failed to add to cart: ${
|
|
1519
|
+
id: J(),
|
|
1520
|
+
message: `Product failed to add to cart: ${g}`,
|
|
1521
1521
|
status: "error"
|
|
1522
1522
|
}
|
|
1523
1523
|
]);
|
|
@@ -1525,85 +1525,85 @@ const ns = (u) => {
|
|
|
1525
1525
|
a == null || a(!1);
|
|
1526
1526
|
}
|
|
1527
1527
|
function M() {
|
|
1528
|
-
|
|
1528
|
+
l(), y(), T("/checkout");
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1531
|
-
if (
|
|
1532
|
-
const N = Math.floor(
|
|
1530
|
+
function U(g) {
|
|
1531
|
+
if (g >= 864e5) {
|
|
1532
|
+
const N = Math.floor(g / 864e5);
|
|
1533
1533
|
return `${N} ${N === 1 ? "day" : "days"}`;
|
|
1534
|
-
} else if (
|
|
1535
|
-
const N = Math.floor(
|
|
1534
|
+
} else if (g >= 36e5) {
|
|
1535
|
+
const N = Math.floor(g / 36e5);
|
|
1536
1536
|
return `${N} ${N === 1 ? "hour" : "hours"}`;
|
|
1537
|
-
} else if (
|
|
1538
|
-
const N = Math.floor(
|
|
1537
|
+
} else if (g >= 6e4) {
|
|
1538
|
+
const N = Math.floor(g / 6e4);
|
|
1539
1539
|
return `${N} ${N === 1 ? "minute" : "minutes"}`;
|
|
1540
1540
|
} else {
|
|
1541
|
-
const N = Math.floor(
|
|
1541
|
+
const N = Math.floor(g / 1e3);
|
|
1542
1542
|
return `${N} ${N === 1 ? "second" : "seconds"}`;
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
return
|
|
1546
|
-
e.quantity && e.quantity.available === 0 ?
|
|
1547
|
-
}, [e.quantity.available]),
|
|
1548
|
-
e.chargeTypes &&
|
|
1549
|
-
e.chargeTypes.includes(
|
|
1545
|
+
return x.useEffect(() => {
|
|
1546
|
+
e.quantity && e.quantity.available === 0 ? m(0) : m(1);
|
|
1547
|
+
}, [e.quantity.available]), x.useEffect(() => {
|
|
1548
|
+
e.chargeTypes && f(
|
|
1549
|
+
e.chargeTypes.includes(c) ? c : e.chargeTypes[0]
|
|
1550
1550
|
);
|
|
1551
1551
|
}, [e.chargeTypes]), /* @__PURE__ */ t.jsxs("div", { className: B.options, children: [
|
|
1552
|
-
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: B.chargeTypes, children: e.chargeTypes.map((
|
|
1552
|
+
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: B.chargeTypes, children: e.chargeTypes.map((g) => /* @__PURE__ */ t.jsx(
|
|
1553
1553
|
"div",
|
|
1554
1554
|
{
|
|
1555
|
-
className:
|
|
1556
|
-
[B.chargeActive]:
|
|
1555
|
+
className: F(B.charge, {
|
|
1556
|
+
[B.chargeActive]: c === g
|
|
1557
1557
|
}),
|
|
1558
|
-
onClick: () => g
|
|
1559
|
-
children: $t[
|
|
1558
|
+
onClick: () => f(g),
|
|
1559
|
+
children: $t[g]
|
|
1560
1560
|
},
|
|
1561
|
-
|
|
1561
|
+
g
|
|
1562
1562
|
)) }),
|
|
1563
|
-
/* @__PURE__ */ t.jsx("div", { className: B.variants, children: s.filter((
|
|
1564
|
-
var
|
|
1565
|
-
return (
|
|
1566
|
-
}).map((
|
|
1567
|
-
var
|
|
1563
|
+
/* @__PURE__ */ t.jsx("div", { className: B.variants, children: s.filter((g) => {
|
|
1564
|
+
var p;
|
|
1565
|
+
return (p = g.chargeTypes) == null ? void 0 : p.includes(c);
|
|
1566
|
+
}).map((g) => {
|
|
1567
|
+
var p, S;
|
|
1568
1568
|
return /* @__PURE__ */ t.jsxs(
|
|
1569
1569
|
"div",
|
|
1570
1570
|
{
|
|
1571
|
-
className:
|
|
1572
|
-
[B.activeVariant]: e.id ===
|
|
1571
|
+
className: F(B.variant, {
|
|
1572
|
+
[B.activeVariant]: e.id === g.id
|
|
1573
1573
|
}),
|
|
1574
|
-
onClick: () =>
|
|
1574
|
+
onClick: () => r(g),
|
|
1575
1575
|
children: [
|
|
1576
1576
|
/* @__PURE__ */ t.jsxs("div", { className: B.variantInfo, children: [
|
|
1577
|
-
/* @__PURE__ */ t.jsx("span", { className: B.title, children:
|
|
1577
|
+
/* @__PURE__ */ t.jsx("span", { className: B.title, children: it(g.name) }),
|
|
1578
1578
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
1579
|
-
|
|
1580
|
-
amount:
|
|
1581
|
-
currency:
|
|
1579
|
+
Q({
|
|
1580
|
+
amount: c === "ONE_TIME" ? g.price.amount : g.subscriptionSettings ? g.subscriptionSettings.price.amount : 0,
|
|
1581
|
+
currency: c === "ONE_TIME" ? g.price.currency : g.subscriptionSettings ? g.subscriptionSettings.price.currency : "USD"
|
|
1582
1582
|
}),
|
|
1583
1583
|
" ",
|
|
1584
|
-
|
|
1584
|
+
c === "RECURRING" && g.subscriptionSettings && ` / ${zt(g.subscriptionSettings.recurringIntervalDays || 0)}`
|
|
1585
1585
|
] })
|
|
1586
1586
|
] }),
|
|
1587
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
1588
|
-
(
|
|
1587
|
+
/* @__PURE__ */ t.jsx("div", { children: c === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: B.stock, children: [
|
|
1588
|
+
(p = g.quantity.restrictions) != null && p.max || g.quantity.available !== void 0 ? ((S = g.quantity.restrictions) == null ? void 0 : S.max) || g.quantity.available : "∞",
|
|
1589
1589
|
" ",
|
|
1590
1590
|
"in stock"
|
|
1591
1591
|
] }) })
|
|
1592
1592
|
]
|
|
1593
1593
|
},
|
|
1594
|
-
|
|
1594
|
+
g.id
|
|
1595
1595
|
);
|
|
1596
1596
|
}) }),
|
|
1597
|
-
|
|
1597
|
+
c === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: B.quantity, children: [
|
|
1598
1598
|
/* @__PURE__ */ t.jsx(
|
|
1599
|
-
|
|
1599
|
+
E,
|
|
1600
1600
|
{
|
|
1601
1601
|
type: "Secondary",
|
|
1602
1602
|
onClick: () => {
|
|
1603
|
-
|
|
1603
|
+
_ > 1 ? m((g) => g - 1) : m(1);
|
|
1604
1604
|
},
|
|
1605
1605
|
className: B.button,
|
|
1606
|
-
disabled: e.quantity.available && e.quantity.restrictions &&
|
|
1606
|
+
disabled: e.quantity.available && e.quantity.restrictions && _ <= e.quantity.restrictions.min || e.quantity.available === 0,
|
|
1607
1607
|
children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
|
|
1608
1608
|
}
|
|
1609
1609
|
),
|
|
@@ -1611,25 +1611,25 @@ const ns = (u) => {
|
|
|
1611
1611
|
Rt,
|
|
1612
1612
|
{
|
|
1613
1613
|
type: "number",
|
|
1614
|
-
value: String(
|
|
1615
|
-
onChange: (
|
|
1616
|
-
e.quantity.available && Number(
|
|
1614
|
+
value: String(_),
|
|
1615
|
+
onChange: (g) => {
|
|
1616
|
+
e.quantity.available && Number(g) > e.quantity.available ? m(e.quantity.available) : m(Number(g));
|
|
1617
1617
|
},
|
|
1618
|
-
max: ((
|
|
1619
|
-
min: ((
|
|
1618
|
+
max: ((z = e.quantity.restrictions) == null ? void 0 : z.max) || e.quantity.available || Number.POSITIVE_INFINITY,
|
|
1619
|
+
min: ((K = e.quantity.restrictions) == null ? void 0 : K.min) || 0,
|
|
1620
1620
|
centered: !0,
|
|
1621
|
-
disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 &&
|
|
1621
|
+
disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 && _ >= e.quantity.restrictions.max
|
|
1622
1622
|
}
|
|
1623
1623
|
),
|
|
1624
1624
|
/* @__PURE__ */ t.jsx(
|
|
1625
|
-
|
|
1625
|
+
E,
|
|
1626
1626
|
{
|
|
1627
1627
|
type: "Secondary",
|
|
1628
1628
|
onClick: () => {
|
|
1629
|
-
|
|
1629
|
+
m((g) => g + 1);
|
|
1630
1630
|
},
|
|
1631
1631
|
className: B.button,
|
|
1632
|
-
disabled: !!(e.quantity.available && e.quantity.restrictions &&
|
|
1632
|
+
disabled: !!(e.quantity.available && e.quantity.restrictions && _ >= e.quantity.restrictions.max || e.quantity.available === 0 || e.quantity.available && _ >= e.quantity.available),
|
|
1633
1633
|
children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
|
|
1634
1634
|
}
|
|
1635
1635
|
)
|
|
@@ -1647,62 +1647,62 @@ const ns = (u) => {
|
|
|
1647
1647
|
height: 20
|
|
1648
1648
|
}
|
|
1649
1649
|
),
|
|
1650
|
-
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" :
|
|
1650
|
+
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : U(e.deliveryTime) })
|
|
1651
1651
|
] })
|
|
1652
1652
|
] }),
|
|
1653
1653
|
/* @__PURE__ */ t.jsxs("div", { className: B.info, children: [
|
|
1654
1654
|
/* @__PURE__ */ t.jsx("span", { children: "Price" }),
|
|
1655
|
-
/* @__PURE__ */ t.jsx("div", { className: B.infoRight, children:
|
|
1656
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1657
|
-
amount: e.price.amount *
|
|
1655
|
+
/* @__PURE__ */ t.jsx("div", { className: B.infoRight, children: c === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: B.price, children: [
|
|
1656
|
+
/* @__PURE__ */ t.jsx("span", { className: F(B.newPrice, { [B.animate]: o }), children: Q({
|
|
1657
|
+
amount: e.price.amount * _,
|
|
1658
1658
|
currency: e.price.currency
|
|
1659
1659
|
}) }),
|
|
1660
|
-
/* @__PURE__ */ t.jsx("span", { className: B.oldPrice, children:
|
|
1661
|
-
amount: e.compareAtPrice.amount *
|
|
1660
|
+
/* @__PURE__ */ t.jsx("span", { className: B.oldPrice, children: Q({
|
|
1661
|
+
amount: e.compareAtPrice.amount * _,
|
|
1662
1662
|
currency: e.compareAtPrice.currency
|
|
1663
1663
|
}) })
|
|
1664
|
-
] }) : /* @__PURE__ */ t.jsx("span", { className:
|
|
1665
|
-
amount: e.price.amount *
|
|
1664
|
+
] }) : /* @__PURE__ */ t.jsx("span", { className: F(B.newPrice, { [B.animate]: o }), children: Q({
|
|
1665
|
+
amount: e.price.amount * _,
|
|
1666
1666
|
currency: e.price.currency
|
|
1667
1667
|
}) }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: B.price, children: [
|
|
1668
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1669
|
-
amount: e.subscriptionSettings.price.amount *
|
|
1668
|
+
/* @__PURE__ */ t.jsx("span", { className: F(B.newPrice, { [B.animate]: o }), children: Q({
|
|
1669
|
+
amount: e.subscriptionSettings.price.amount * _,
|
|
1670
1670
|
currency: e.subscriptionSettings.price.currency
|
|
1671
1671
|
}) }),
|
|
1672
|
-
/* @__PURE__ */ t.jsx("span", { className: B.oldPrice, children:
|
|
1673
|
-
amount: e.subscriptionSettings.compareAtPrice.amount *
|
|
1672
|
+
/* @__PURE__ */ t.jsx("span", { className: B.oldPrice, children: Q({
|
|
1673
|
+
amount: e.subscriptionSettings.compareAtPrice.amount * _,
|
|
1674
1674
|
currency: e.subscriptionSettings.compareAtPrice.currency
|
|
1675
1675
|
}) })
|
|
1676
|
-
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsx("span", { className:
|
|
1677
|
-
amount: e.subscriptionSettings.price.amount *
|
|
1676
|
+
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsx("span", { className: F(B.newPrice, { [B.animate]: o }), children: Q({
|
|
1677
|
+
amount: e.subscriptionSettings.price.amount * _,
|
|
1678
1678
|
currency: e.subscriptionSettings.price.currency
|
|
1679
1679
|
}) }) })
|
|
1680
1680
|
] })
|
|
1681
1681
|
] }),
|
|
1682
1682
|
/* @__PURE__ */ t.jsxs("div", { className: B.buttons, children: [
|
|
1683
1683
|
/* @__PURE__ */ t.jsx(
|
|
1684
|
-
|
|
1684
|
+
E,
|
|
1685
1685
|
{
|
|
1686
1686
|
type: "Primary",
|
|
1687
1687
|
onClick: () => M(),
|
|
1688
1688
|
disabled: e.quantity && e.quantity.available === 0,
|
|
1689
|
-
children:
|
|
1689
|
+
children: c === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
|
|
1690
1690
|
}
|
|
1691
1691
|
),
|
|
1692
|
-
|
|
1693
|
-
|
|
1692
|
+
c === "ONE_TIME" && /* @__PURE__ */ t.jsx(
|
|
1693
|
+
E,
|
|
1694
1694
|
{
|
|
1695
1695
|
type: "Secondary",
|
|
1696
1696
|
onClick: () => y(),
|
|
1697
1697
|
disabled: e.quantity && e.quantity.available === 0,
|
|
1698
|
-
children:
|
|
1699
|
-
(
|
|
1698
|
+
children: d.parts.some(
|
|
1699
|
+
(g) => g.productId === i.id && g.productVariantId === e.id
|
|
1700
1700
|
) ? "Add More" : "Add to Cart"
|
|
1701
1701
|
}
|
|
1702
1702
|
)
|
|
1703
1703
|
] })
|
|
1704
1704
|
] });
|
|
1705
|
-
}, is = "_buttons_3z0t7_23", as = "_modal_3z0t7_32", os = "_closing_3z0t7_65", cs = "_info_3z0t7_114", rs = "_top_3z0t7_121", ls = "_title_3z0t7_132", ds = "_clear_3z0t7_139", us = "_activeClear_3z0t7_146", hs = "_count_3z0t7_150", ps = "_cart_3z0t7_165", ms = "_empty_3z0t7_173", gs = "_product_3z0t7_199", fs = "_products_3z0t7_208", xs = "_image_3z0t7_216", _s = "_productInfo_3z0t7_233", js = "_content_3z0t7_240", vs = "_name_3z0t7_246", ys = "_price_3z0t7_252", bs = "_productButtons_3z0t7_258", Is = "_productButton_3z0t7_258", Ns = "_productCount_3z0t7_275", Cs = "_bottom_3z0t7_292", Ss = "_subtotal_3z0t7_300",
|
|
1705
|
+
}, is = "_buttons_3z0t7_23", as = "_modal_3z0t7_32", os = "_closing_3z0t7_65", cs = "_info_3z0t7_114", rs = "_top_3z0t7_121", ls = "_title_3z0t7_132", ds = "_clear_3z0t7_139", us = "_activeClear_3z0t7_146", hs = "_count_3z0t7_150", ps = "_cart_3z0t7_165", ms = "_empty_3z0t7_173", gs = "_product_3z0t7_199", fs = "_products_3z0t7_208", xs = "_image_3z0t7_216", _s = "_productInfo_3z0t7_233", js = "_content_3z0t7_240", vs = "_name_3z0t7_246", ys = "_price_3z0t7_252", bs = "_productButtons_3z0t7_258", Is = "_productButton_3z0t7_258", Ns = "_productCount_3z0t7_275", Cs = "_bottom_3z0t7_292", Ss = "_subtotal_3z0t7_300", Ps = "_block_3z0t7_308", ks = "_shoppingCount_3z0t7_315", ws = "_total_3z0t7_335", Ts = "_link_3z0t7_341", Ms = "_userInfo_3z0t7_348", Bs = "_pagesMobileModal_3z0t7_360", $s = "_pagesMobileModalContent_3z0t7_374", Os = "_pagesMobileModalHeader_3z0t7_380", qs = "_pagesMobileModalFooter_3z0t7_390", As = "_pageLink_3z0t7_397", Ds = "_rightButtons_3z0t7_406", k = {
|
|
1706
1706
|
buttons: is,
|
|
1707
1707
|
modal: as,
|
|
1708
1708
|
closing: os,
|
|
@@ -1726,9 +1726,9 @@ const ns = (u) => {
|
|
|
1726
1726
|
productCount: Ns,
|
|
1727
1727
|
bottom: Cs,
|
|
1728
1728
|
subtotal: Ss,
|
|
1729
|
-
block:
|
|
1730
|
-
shoppingCount:
|
|
1731
|
-
total:
|
|
1729
|
+
block: Ps,
|
|
1730
|
+
shoppingCount: ks,
|
|
1731
|
+
total: ws,
|
|
1732
1732
|
link: Ts,
|
|
1733
1733
|
userInfo: Ms,
|
|
1734
1734
|
pagesMobileModal: Bs,
|
|
@@ -1736,68 +1736,68 @@ const ns = (u) => {
|
|
|
1736
1736
|
pagesMobileModalHeader: Os,
|
|
1737
1737
|
pagesMobileModalFooter: qs,
|
|
1738
1738
|
pageLink: As,
|
|
1739
|
-
rightButtons:
|
|
1740
|
-
},
|
|
1741
|
-
const { shopping: i, signUp: a, isShowUserInfo: s = !0 } =
|
|
1742
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
1743
|
-
i && /* @__PURE__ */ t.jsx(
|
|
1739
|
+
rightButtons: Ds
|
|
1740
|
+
}, Hn = (h) => {
|
|
1741
|
+
const { shopping: i, signUp: a, isShowUserInfo: s = !0 } = h;
|
|
1742
|
+
return /* @__PURE__ */ t.jsxs("div", { className: k.buttons, children: [
|
|
1743
|
+
i && /* @__PURE__ */ t.jsx(Es, {}),
|
|
1744
1744
|
s && /* @__PURE__ */ t.jsx(Ot, { signUp: a })
|
|
1745
1745
|
] });
|
|
1746
|
-
},
|
|
1747
|
-
const [
|
|
1748
|
-
function
|
|
1749
|
-
if (
|
|
1750
|
-
for (let n = 0; n <
|
|
1751
|
-
for (let o = 0; o <
|
|
1752
|
-
if (
|
|
1753
|
-
return
|
|
1746
|
+
}, Es = () => {
|
|
1747
|
+
const [h, i] = x.useState(!1), [a, s] = x.useState([]), [e, r] = x.useState(!1), { cart: c, products: f } = ot();
|
|
1748
|
+
function j(l) {
|
|
1749
|
+
if (l.variants.length > 0) {
|
|
1750
|
+
for (let n = 0; n < c.parts.length; n++)
|
|
1751
|
+
for (let o = 0; o < l.variants.length; o++)
|
|
1752
|
+
if (l.variants[o] && c.parts[n].productVariantId === l.variants[o].id)
|
|
1753
|
+
return c.parts[n].productVariantId;
|
|
1754
1754
|
}
|
|
1755
|
-
return
|
|
1755
|
+
return l.variants[0].id;
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
for (let n = 0; n <
|
|
1759
|
-
for (let o = 0; o <
|
|
1760
|
-
if (
|
|
1761
|
-
return
|
|
1757
|
+
function v(l) {
|
|
1758
|
+
for (let n = 0; n < c.parts.length; n++)
|
|
1759
|
+
for (let o = 0; o < l.variants.length; o++)
|
|
1760
|
+
if (l.variants[o] && c.parts[n].productVariantId === l.variants[o].id)
|
|
1761
|
+
return c.parts[n].quantity;
|
|
1762
1762
|
}
|
|
1763
|
-
const T = (
|
|
1764
|
-
for (let n = 0; n <
|
|
1765
|
-
for (let o = 0; o <
|
|
1766
|
-
if (
|
|
1767
|
-
return
|
|
1763
|
+
const T = (l) => {
|
|
1764
|
+
for (let n = 0; n < c.parts.length; n++)
|
|
1765
|
+
for (let o = 0; o < l.variants.length; o++)
|
|
1766
|
+
if (l.variants[o] && c.parts[n].productVariantId === l.variants[o].id)
|
|
1767
|
+
return c.parts[n].chargeType;
|
|
1768
1768
|
return "ONE_TIME";
|
|
1769
1769
|
};
|
|
1770
|
-
|
|
1770
|
+
x.useEffect(() => {
|
|
1771
1771
|
(async () => {
|
|
1772
|
-
const n =
|
|
1772
|
+
const n = c.parts.map((y) => String(y.productId)), C = (f.filter((y) => n.includes(String(y.id))) || []).map((y) => ({
|
|
1773
1773
|
...y,
|
|
1774
|
-
activeVariantId:
|
|
1775
|
-
quantity:
|
|
1774
|
+
activeVariantId: j(y),
|
|
1775
|
+
quantity: v(y),
|
|
1776
1776
|
chargeType: T(y)
|
|
1777
1777
|
}));
|
|
1778
1778
|
s(C);
|
|
1779
1779
|
})();
|
|
1780
|
-
}, [
|
|
1781
|
-
function
|
|
1782
|
-
return !
|
|
1780
|
+
}, [c.parts]);
|
|
1781
|
+
function _(l) {
|
|
1782
|
+
return !l || !(l != null && l.variants) ? !1 : l.chargeType === "RECURRING";
|
|
1783
1783
|
}
|
|
1784
|
-
const
|
|
1785
|
-
function
|
|
1786
|
-
|
|
1784
|
+
const m = c.parts.length > 0 && a.length > 0 && !_(a[0]);
|
|
1785
|
+
function d() {
|
|
1786
|
+
r(!1), setTimeout(() => {
|
|
1787
1787
|
i(!1);
|
|
1788
1788
|
}, 300);
|
|
1789
1789
|
}
|
|
1790
1790
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1791
1791
|
/* @__PURE__ */ t.jsxs(
|
|
1792
|
-
|
|
1792
|
+
E,
|
|
1793
1793
|
{
|
|
1794
1794
|
type: "Secondary",
|
|
1795
1795
|
style: {
|
|
1796
1796
|
padding: 10,
|
|
1797
1797
|
position: "relative"
|
|
1798
1798
|
},
|
|
1799
|
-
onClick: (
|
|
1800
|
-
|
|
1799
|
+
onClick: (l) => {
|
|
1800
|
+
l.stopPropagation(), window.location.pathname.includes("/admin/builder") || (i(!0), r(!0));
|
|
1801
1801
|
},
|
|
1802
1802
|
children: [
|
|
1803
1803
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1806,43 +1806,43 @@ const ns = (u) => {
|
|
|
1806
1806
|
name: "Handbag"
|
|
1807
1807
|
}
|
|
1808
1808
|
),
|
|
1809
|
-
|
|
1809
|
+
m && /* @__PURE__ */ t.jsx("div", { className: k.shoppingCount, children: c.parts.length })
|
|
1810
1810
|
]
|
|
1811
1811
|
}
|
|
1812
1812
|
),
|
|
1813
|
-
|
|
1813
|
+
h && /* @__PURE__ */ t.jsx(
|
|
1814
1814
|
ut,
|
|
1815
1815
|
{
|
|
1816
|
-
close:
|
|
1816
|
+
close: d,
|
|
1817
1817
|
withAnimation: !1,
|
|
1818
1818
|
children: /* @__PURE__ */ t.jsx(
|
|
1819
|
-
|
|
1819
|
+
zs,
|
|
1820
1820
|
{
|
|
1821
1821
|
activeProducts: a,
|
|
1822
|
-
isCartNotEmpty:
|
|
1822
|
+
isCartNotEmpty: m,
|
|
1823
1823
|
isOpen: e,
|
|
1824
|
-
close:
|
|
1824
|
+
close: d
|
|
1825
1825
|
}
|
|
1826
1826
|
)
|
|
1827
1827
|
}
|
|
1828
1828
|
)
|
|
1829
1829
|
] });
|
|
1830
|
-
},
|
|
1831
|
-
var
|
|
1832
|
-
const { activeProducts: i, isCartNotEmpty: a, isOpen: s, close: e } =
|
|
1830
|
+
}, zs = (h) => {
|
|
1831
|
+
var d, l;
|
|
1832
|
+
const { activeProducts: i, isCartNotEmpty: a, isOpen: s, close: e } = h, { cart: r, reset: c, getTotalAndDiscount: f, updateQuantityOfProduct: j } = ot(), v = St();
|
|
1833
1833
|
function T(n, o) {
|
|
1834
|
-
|
|
1834
|
+
v(n, { replace: o });
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1837
|
-
n.quantity &&
|
|
1836
|
+
function _(n) {
|
|
1837
|
+
n.quantity && j({
|
|
1838
1838
|
productId: n.id,
|
|
1839
1839
|
productVariantId: n.activeVariantId,
|
|
1840
1840
|
quantity: n.quantity + 1,
|
|
1841
1841
|
chargeType: n.chargeType
|
|
1842
1842
|
});
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1845
|
-
n.quantity &&
|
|
1844
|
+
function m(n) {
|
|
1845
|
+
n.quantity && j({
|
|
1846
1846
|
productId: n.id,
|
|
1847
1847
|
productVariantId: n.activeVariantId,
|
|
1848
1848
|
quantity: n.quantity - 1,
|
|
@@ -1852,25 +1852,25 @@ const ns = (u) => {
|
|
|
1852
1852
|
return /* @__PURE__ */ t.jsxs(
|
|
1853
1853
|
"div",
|
|
1854
1854
|
{
|
|
1855
|
-
className:
|
|
1856
|
-
[
|
|
1855
|
+
className: F(k.modal, {
|
|
1856
|
+
[k.closing]: !s
|
|
1857
1857
|
}),
|
|
1858
1858
|
onClick: (n) => n.stopPropagation(),
|
|
1859
1859
|
children: [
|
|
1860
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1861
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1862
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1863
|
-
a && /* @__PURE__ */ t.jsx("div", { className:
|
|
1860
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.top, children: [
|
|
1861
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.info, children: [
|
|
1862
|
+
/* @__PURE__ */ t.jsx("span", { className: k.title, children: "Cart" }),
|
|
1863
|
+
a && /* @__PURE__ */ t.jsx("div", { className: k.count, children: r.parts.length })
|
|
1864
1864
|
] }),
|
|
1865
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1865
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.rightButtons, children: [
|
|
1866
1866
|
a && /* @__PURE__ */ t.jsx(
|
|
1867
1867
|
"button",
|
|
1868
1868
|
{
|
|
1869
|
-
className:
|
|
1870
|
-
[
|
|
1869
|
+
className: F(k.clear, {
|
|
1870
|
+
[k.activeClear]: a
|
|
1871
1871
|
}),
|
|
1872
1872
|
disabled: !a,
|
|
1873
|
-
onClick:
|
|
1873
|
+
onClick: c,
|
|
1874
1874
|
children: "Clear all"
|
|
1875
1875
|
}
|
|
1876
1876
|
),
|
|
@@ -1887,13 +1887,13 @@ const ns = (u) => {
|
|
|
1887
1887
|
)
|
|
1888
1888
|
] })
|
|
1889
1889
|
] }),
|
|
1890
|
-
a ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
1891
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1890
|
+
a ? /* @__PURE__ */ t.jsxs("div", { className: k.cart, children: [
|
|
1891
|
+
/* @__PURE__ */ t.jsx("div", { className: k.products, children: [...new Map(i.map((n) => [n.id, n])).values()].map((n) => /* @__PURE__ */ t.jsxs(
|
|
1892
1892
|
"div",
|
|
1893
1893
|
{
|
|
1894
|
-
className:
|
|
1894
|
+
className: k.product,
|
|
1895
1895
|
children: [
|
|
1896
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1896
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.productInfo, children: [
|
|
1897
1897
|
n.images.length > 0 ? /* @__PURE__ */ t.jsx(
|
|
1898
1898
|
"img",
|
|
1899
1899
|
{
|
|
@@ -1901,18 +1901,18 @@ const ns = (u) => {
|
|
|
1901
1901
|
alt: "image",
|
|
1902
1902
|
width: "100%",
|
|
1903
1903
|
height: "100%",
|
|
1904
|
-
className:
|
|
1904
|
+
className: k.image
|
|
1905
1905
|
}
|
|
1906
|
-
) : /* @__PURE__ */ t.jsx("div", { className:
|
|
1906
|
+
) : /* @__PURE__ */ t.jsx("div", { className: k.image, children: /* @__PURE__ */ t.jsx(
|
|
1907
1907
|
b,
|
|
1908
1908
|
{
|
|
1909
1909
|
name: "Image",
|
|
1910
1910
|
fill: "var(--text-secondary)"
|
|
1911
1911
|
}
|
|
1912
1912
|
) }),
|
|
1913
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1914
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1915
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1913
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.content, children: [
|
|
1914
|
+
/* @__PURE__ */ t.jsx("div", { className: k.name, children: it(n.name) }),
|
|
1915
|
+
/* @__PURE__ */ t.jsx("div", { className: k.price, children: Q({
|
|
1916
1916
|
amount: n.variants.find(
|
|
1917
1917
|
(o) => o.id === n.activeVariantId
|
|
1918
1918
|
).price.amount * ((n == null ? void 0 : n.quantity) || 1),
|
|
@@ -1922,15 +1922,15 @@ const ns = (u) => {
|
|
|
1922
1922
|
}) })
|
|
1923
1923
|
] })
|
|
1924
1924
|
] }),
|
|
1925
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1925
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.productButtons, children: [
|
|
1926
1926
|
/* @__PURE__ */ t.jsx(
|
|
1927
|
-
|
|
1927
|
+
E,
|
|
1928
1928
|
{
|
|
1929
1929
|
type: "Secondary",
|
|
1930
1930
|
onClick: () => {
|
|
1931
|
-
n.quantity !== 1 &&
|
|
1931
|
+
n.quantity !== 1 && m(n);
|
|
1932
1932
|
},
|
|
1933
|
-
className:
|
|
1933
|
+
className: k.productButton,
|
|
1934
1934
|
disabled: n.quantity === 1,
|
|
1935
1935
|
children: /* @__PURE__ */ t.jsx(
|
|
1936
1936
|
b,
|
|
@@ -1943,13 +1943,13 @@ const ns = (u) => {
|
|
|
1943
1943
|
)
|
|
1944
1944
|
}
|
|
1945
1945
|
),
|
|
1946
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1946
|
+
/* @__PURE__ */ t.jsx("div", { className: k.productCount, children: n.quantity }),
|
|
1947
1947
|
/* @__PURE__ */ t.jsx(
|
|
1948
|
-
|
|
1948
|
+
E,
|
|
1949
1949
|
{
|
|
1950
1950
|
type: "Secondary",
|
|
1951
|
-
onClick: () =>
|
|
1952
|
-
className:
|
|
1951
|
+
onClick: () => _(n),
|
|
1952
|
+
className: k.productButton,
|
|
1953
1953
|
disabled: n.quantity === n.variants.find((o) => o.id === n.activeVariantId).quantity.available,
|
|
1954
1954
|
children: /* @__PURE__ */ t.jsx(
|
|
1955
1955
|
b,
|
|
@@ -1967,9 +1967,9 @@ const ns = (u) => {
|
|
|
1967
1967
|
},
|
|
1968
1968
|
n.id
|
|
1969
1969
|
)) }),
|
|
1970
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1971
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1972
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1970
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.bottom, children: [
|
|
1971
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.subtotal, children: [
|
|
1972
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.block, children: [
|
|
1973
1973
|
/* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
|
|
1974
1974
|
/* @__PURE__ */ t.jsx(
|
|
1975
1975
|
b,
|
|
@@ -1981,18 +1981,18 @@ const ns = (u) => {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
)
|
|
1983
1983
|
] }),
|
|
1984
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1985
|
-
amount:
|
|
1986
|
-
currency:
|
|
1984
|
+
/* @__PURE__ */ t.jsx("div", { className: k.total, children: Q({
|
|
1985
|
+
amount: f().total,
|
|
1986
|
+
currency: r.parts.length > 0 && ((l = (d = i.find((n) => n.id === r.parts[0].productId)) == null ? void 0 : d.variants.find((n) => n.id === r.parts[0].productVariantId)) == null ? void 0 : l.price.currency) || "USD"
|
|
1987
1987
|
}) })
|
|
1988
1988
|
] }),
|
|
1989
|
-
/* @__PURE__ */ t.jsx(
|
|
1989
|
+
/* @__PURE__ */ t.jsx(E, { onClick: () => T("/checkout", !1), children: "Checkout" })
|
|
1990
1990
|
] })
|
|
1991
1991
|
] }) : /* @__PURE__ */ t.jsx(Rs, {})
|
|
1992
1992
|
]
|
|
1993
1993
|
}
|
|
1994
1994
|
);
|
|
1995
|
-
}, Rs = () => /* @__PURE__ */ t.jsxs("div", { className:
|
|
1995
|
+
}, Rs = () => /* @__PURE__ */ t.jsxs("div", { className: k.empty, children: [
|
|
1996
1996
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1997
1997
|
b,
|
|
1998
1998
|
{
|
|
@@ -2008,39 +2008,39 @@ const ns = (u) => {
|
|
|
2008
2008
|
"a",
|
|
2009
2009
|
{
|
|
2010
2010
|
href: "/products",
|
|
2011
|
-
className:
|
|
2011
|
+
className: k.link,
|
|
2012
2012
|
children: "view products"
|
|
2013
2013
|
}
|
|
2014
2014
|
)
|
|
2015
2015
|
] })
|
|
2016
|
-
] }), Ot = ({ signUp:
|
|
2017
|
-
const { token: a } = Lt(), s = St(), [e,
|
|
2018
|
-
|
|
2016
|
+
] }), Ot = ({ signUp: h, close: i }) => {
|
|
2017
|
+
const { token: a } = Lt(), s = St(), [e, r] = x.useState("test-email@gmail.com");
|
|
2018
|
+
x.useEffect(() => {
|
|
2019
2019
|
a && (async () => {
|
|
2020
2020
|
if (!a) return;
|
|
2021
|
-
const
|
|
2022
|
-
|
|
2021
|
+
const j = Ut(a);
|
|
2022
|
+
r(j.email);
|
|
2023
2023
|
})();
|
|
2024
2024
|
}, [a]);
|
|
2025
|
-
function
|
|
2026
|
-
window.location.pathname.includes("/admin/builder") || s(
|
|
2025
|
+
function c(f) {
|
|
2026
|
+
window.location.pathname.includes("/admin/builder") || s(f);
|
|
2027
2027
|
}
|
|
2028
2028
|
return a ? /* @__PURE__ */ t.jsx(
|
|
2029
|
-
|
|
2029
|
+
E,
|
|
2030
2030
|
{
|
|
2031
2031
|
type: "Secondary",
|
|
2032
|
-
className:
|
|
2032
|
+
className: k.userInfo,
|
|
2033
2033
|
onClick: () => {
|
|
2034
|
-
|
|
2034
|
+
c("/customer-dash"), i == null || i();
|
|
2035
2035
|
},
|
|
2036
2036
|
children: /* @__PURE__ */ t.jsx("div", { children: e || "test-email@gmail.com" })
|
|
2037
2037
|
}
|
|
2038
2038
|
) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2039
2039
|
/* @__PURE__ */ t.jsx(
|
|
2040
|
-
|
|
2040
|
+
E,
|
|
2041
2041
|
{
|
|
2042
2042
|
onClick: () => {
|
|
2043
|
-
|
|
2043
|
+
c("/customer-dash"), i == null || i();
|
|
2044
2044
|
},
|
|
2045
2045
|
type: "Secondary",
|
|
2046
2046
|
style: {
|
|
@@ -2049,11 +2049,11 @@ const ns = (u) => {
|
|
|
2049
2049
|
children: "Login"
|
|
2050
2050
|
}
|
|
2051
2051
|
),
|
|
2052
|
-
|
|
2053
|
-
|
|
2052
|
+
h && /* @__PURE__ */ t.jsx(
|
|
2053
|
+
E,
|
|
2054
2054
|
{
|
|
2055
2055
|
onClick: () => {
|
|
2056
|
-
|
|
2056
|
+
c("/customer-dash"), i == null || i();
|
|
2057
2057
|
},
|
|
2058
2058
|
type: "Primary",
|
|
2059
2059
|
style: {
|
|
@@ -2065,12 +2065,12 @@ const ns = (u) => {
|
|
|
2065
2065
|
)
|
|
2066
2066
|
] });
|
|
2067
2067
|
}, Ls = ({
|
|
2068
|
-
logo:
|
|
2068
|
+
logo: h,
|
|
2069
2069
|
setIsOpen: i,
|
|
2070
2070
|
signUp: a,
|
|
2071
2071
|
pages: s
|
|
2072
2072
|
}) => {
|
|
2073
|
-
const { setIsOpen: e } = ct(),
|
|
2073
|
+
const { setIsOpen: e } = ct(), r = () => {
|
|
2074
2074
|
e(!1), setTimeout(() => {
|
|
2075
2075
|
i(!1), e(!0);
|
|
2076
2076
|
}, 300);
|
|
@@ -2078,47 +2078,47 @@ const ns = (u) => {
|
|
|
2078
2078
|
return /* @__PURE__ */ t.jsxs(
|
|
2079
2079
|
"div",
|
|
2080
2080
|
{
|
|
2081
|
-
className:
|
|
2082
|
-
onClick: (
|
|
2081
|
+
className: k.pagesMobileModal,
|
|
2082
|
+
onClick: (c) => c.stopPropagation(),
|
|
2083
2083
|
children: [
|
|
2084
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2085
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
2084
|
+
/* @__PURE__ */ t.jsxs("div", { className: k.pagesMobileModalHeader, children: [
|
|
2085
|
+
/* @__PURE__ */ t.jsx("div", { children: h }),
|
|
2086
2086
|
/* @__PURE__ */ t.jsx(
|
|
2087
|
-
|
|
2087
|
+
E,
|
|
2088
2088
|
{
|
|
2089
2089
|
type: "Secondary",
|
|
2090
|
-
onClick:
|
|
2090
|
+
onClick: r,
|
|
2091
2091
|
children: /* @__PURE__ */ t.jsx(b, { name: "X" })
|
|
2092
2092
|
}
|
|
2093
2093
|
)
|
|
2094
2094
|
] }),
|
|
2095
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2095
|
+
/* @__PURE__ */ t.jsx("div", { className: k.pagesMobileModalContent, children: s.length > 0 && s.map((c) => /* @__PURE__ */ t.jsx(
|
|
2096
2096
|
"div",
|
|
2097
2097
|
{
|
|
2098
|
-
className:
|
|
2099
|
-
onClick:
|
|
2098
|
+
className: k.pageLink,
|
|
2099
|
+
onClick: r,
|
|
2100
2100
|
children: /* @__PURE__ */ t.jsx(
|
|
2101
2101
|
Tt,
|
|
2102
2102
|
{
|
|
2103
|
-
path:
|
|
2104
|
-
children:
|
|
2103
|
+
path: c.path,
|
|
2104
|
+
children: c.name["en-US"]
|
|
2105
2105
|
},
|
|
2106
|
-
|
|
2106
|
+
c.id
|
|
2107
2107
|
)
|
|
2108
2108
|
}
|
|
2109
2109
|
)) }),
|
|
2110
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2110
|
+
/* @__PURE__ */ t.jsx("div", { className: k.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
|
|
2111
2111
|
Ot,
|
|
2112
2112
|
{
|
|
2113
2113
|
signUp: a,
|
|
2114
|
-
close:
|
|
2114
|
+
close: r
|
|
2115
2115
|
}
|
|
2116
2116
|
) })
|
|
2117
2117
|
]
|
|
2118
2118
|
}
|
|
2119
2119
|
);
|
|
2120
|
-
},
|
|
2121
|
-
const [s, e] =
|
|
2120
|
+
}, Fn = ({ logo: h, signUp: i, pages: a }) => {
|
|
2121
|
+
const [s, e] = x.useState(!1);
|
|
2122
2122
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2123
2123
|
/* @__PURE__ */ t.jsx(Us, { setIsOpenModal: e }),
|
|
2124
2124
|
s && /* @__PURE__ */ t.jsx(
|
|
@@ -2129,7 +2129,7 @@ const ns = (u) => {
|
|
|
2129
2129
|
children: /* @__PURE__ */ t.jsx(
|
|
2130
2130
|
Ls,
|
|
2131
2131
|
{
|
|
2132
|
-
logo:
|
|
2132
|
+
logo: h,
|
|
2133
2133
|
setIsOpen: e,
|
|
2134
2134
|
signUp: i,
|
|
2135
2135
|
pages: a
|
|
@@ -2138,10 +2138,10 @@ const ns = (u) => {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
)
|
|
2140
2140
|
] });
|
|
2141
|
-
}, Us = (
|
|
2142
|
-
const { setIsOpenModal: i } =
|
|
2141
|
+
}, Us = (h) => {
|
|
2142
|
+
const { setIsOpenModal: i } = h;
|
|
2143
2143
|
return /* @__PURE__ */ t.jsx(
|
|
2144
|
-
|
|
2144
|
+
E,
|
|
2145
2145
|
{
|
|
2146
2146
|
type: "Secondary",
|
|
2147
2147
|
style: {
|
|
@@ -2153,7 +2153,7 @@ const ns = (u) => {
|
|
|
2153
2153
|
children: /* @__PURE__ */ t.jsx(b, { name: "List" })
|
|
2154
2154
|
}
|
|
2155
2155
|
);
|
|
2156
|
-
}, Hs = "
|
|
2156
|
+
}, Hs = "_share_onabp_1", Fs = "_modal_onabp_8", Vs = "_header_onabp_20", Ys = "_title_onabp_46", Gs = "_copyWrapper_onabp_53", Ws = "_copyText_onabp_62", Xs = "_copyTextMobile_onabp_75", Qs = "_copyTextMiniMobile_onabp_94", nt = {
|
|
2157
2157
|
share: Hs,
|
|
2158
2158
|
modal: Fs,
|
|
2159
2159
|
header: Vs,
|
|
@@ -2162,14 +2162,14 @@ const ns = (u) => {
|
|
|
2162
2162
|
copyText: Ws,
|
|
2163
2163
|
copyTextMobile: Xs,
|
|
2164
2164
|
copyTextMiniMobile: Qs
|
|
2165
|
-
},
|
|
2165
|
+
}, Vn = ({ title: h = "Copy Product Link" }) => {
|
|
2166
2166
|
const { isOpenModal: i, setIsOpenModal: a } = Mt();
|
|
2167
2167
|
function s() {
|
|
2168
2168
|
a(!0);
|
|
2169
2169
|
}
|
|
2170
2170
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2171
2171
|
/* @__PURE__ */ t.jsx(
|
|
2172
|
-
|
|
2172
|
+
E,
|
|
2173
2173
|
{
|
|
2174
2174
|
className: nt.share,
|
|
2175
2175
|
onClick: (e) => {
|
|
@@ -2186,69 +2186,69 @@ const ns = (u) => {
|
|
|
2186
2186
|
)
|
|
2187
2187
|
}
|
|
2188
2188
|
),
|
|
2189
|
-
i && /* @__PURE__ */ t.jsx(ut, { close: a, children: /* @__PURE__ */ t.jsx(Js, { title:
|
|
2189
|
+
i && /* @__PURE__ */ t.jsx(ut, { close: a, children: /* @__PURE__ */ t.jsx(Js, { title: h }) })
|
|
2190
2190
|
] });
|
|
2191
|
-
}, Js = ({ title:
|
|
2192
|
-
const { setIsOpenModal: i } = Mt(), { notifications: a, setNotifications: s } = Ct(), { setIsOpen: e } = ct(),
|
|
2193
|
-
function
|
|
2194
|
-
navigator.clipboard.writeText(
|
|
2191
|
+
}, Js = ({ title: h = "Copy Product Link" }) => {
|
|
2192
|
+
const { setIsOpenModal: i } = Mt(), { notifications: a, setNotifications: s } = Ct(), { setIsOpen: e } = ct(), r = window.location.href;
|
|
2193
|
+
function c() {
|
|
2194
|
+
navigator.clipboard.writeText(r), s([
|
|
2195
2195
|
...a,
|
|
2196
2196
|
{
|
|
2197
|
-
id:
|
|
2197
|
+
id: J(),
|
|
2198
2198
|
message: "Link copied to clipboard",
|
|
2199
2199
|
status: "success"
|
|
2200
2200
|
}
|
|
2201
2201
|
]);
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function f() {
|
|
2204
2204
|
e(!1), setTimeout(() => {
|
|
2205
2205
|
i(!1), e(!0);
|
|
2206
2206
|
}, 300);
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2208
|
+
function j(v, T) {
|
|
2209
|
+
return v.length > T ? v.slice(0, T) + "..." : v;
|
|
2210
2210
|
}
|
|
2211
2211
|
return /* @__PURE__ */ t.jsxs(
|
|
2212
2212
|
"div",
|
|
2213
2213
|
{
|
|
2214
2214
|
className: nt.modal,
|
|
2215
|
-
onClick: (
|
|
2215
|
+
onClick: (v) => v.stopPropagation(),
|
|
2216
2216
|
children: [
|
|
2217
2217
|
/* @__PURE__ */ t.jsxs("div", { className: nt.header, children: [
|
|
2218
|
-
/* @__PURE__ */ t.jsx("div", { className: nt.title, children:
|
|
2218
|
+
/* @__PURE__ */ t.jsx("div", { className: nt.title, children: h }),
|
|
2219
2219
|
/* @__PURE__ */ t.jsx(
|
|
2220
2220
|
b,
|
|
2221
2221
|
{
|
|
2222
2222
|
name: "X",
|
|
2223
2223
|
fill: "#757575",
|
|
2224
|
-
onClick:
|
|
2224
|
+
onClick: f,
|
|
2225
2225
|
hoverable: !0
|
|
2226
2226
|
}
|
|
2227
2227
|
)
|
|
2228
2228
|
] }),
|
|
2229
2229
|
/* @__PURE__ */ t.jsxs("div", { className: nt.copyWrapper, children: [
|
|
2230
2230
|
/* @__PURE__ */ t.jsxs(
|
|
2231
|
-
|
|
2231
|
+
E,
|
|
2232
2232
|
{
|
|
2233
2233
|
type: "Secondary",
|
|
2234
|
-
onClick:
|
|
2234
|
+
onClick: c,
|
|
2235
2235
|
style: {
|
|
2236
2236
|
flex: 1
|
|
2237
2237
|
},
|
|
2238
2238
|
children: [
|
|
2239
|
-
/* @__PURE__ */ t.jsx("div", { className: nt.copyText, children:
|
|
2240
|
-
/* @__PURE__ */ t.jsx("div", { className: nt.copyTextMobile, children:
|
|
2241
|
-
/* @__PURE__ */ t.jsx("div", { className: nt.copyTextMiniMobile, children:
|
|
2239
|
+
/* @__PURE__ */ t.jsx("div", { className: nt.copyText, children: j(r, 100) }),
|
|
2240
|
+
/* @__PURE__ */ t.jsx("div", { className: nt.copyTextMobile, children: j(r, 40) }),
|
|
2241
|
+
/* @__PURE__ */ t.jsx("div", { className: nt.copyTextMiniMobile, children: j(r, 20) })
|
|
2242
2242
|
]
|
|
2243
2243
|
}
|
|
2244
2244
|
),
|
|
2245
2245
|
/* @__PURE__ */ t.jsx(
|
|
2246
|
-
|
|
2246
|
+
E,
|
|
2247
2247
|
{
|
|
2248
2248
|
type: "Secondary",
|
|
2249
|
-
onClick:
|
|
2249
|
+
onClick: c,
|
|
2250
2250
|
children: a.find(
|
|
2251
|
-
(
|
|
2251
|
+
(v) => v.message === "Link copied to clipboard"
|
|
2252
2252
|
) ? /* @__PURE__ */ t.jsx(b, { name: "Check" }) : /* @__PURE__ */ t.jsx(b, { name: "Copy" })
|
|
2253
2253
|
}
|
|
2254
2254
|
)
|
|
@@ -2262,55 +2262,55 @@ const ns = (u) => {
|
|
|
2262
2262
|
icon: tn,
|
|
2263
2263
|
open: en,
|
|
2264
2264
|
content: sn
|
|
2265
|
-
},
|
|
2266
|
-
const [s, e] =
|
|
2265
|
+
}, Yn = ({ title: h, content: i, defaultOpen: a = !1 }) => {
|
|
2266
|
+
const [s, e] = x.useState(a), [r, c] = x.useState(0), f = x.useRef(null), j = () => {
|
|
2267
2267
|
e(!s);
|
|
2268
2268
|
};
|
|
2269
|
-
return
|
|
2270
|
-
|
|
2269
|
+
return x.useEffect(() => {
|
|
2270
|
+
f.current && c(s ? f.current.scrollHeight : 0);
|
|
2271
2271
|
}, [s]), /* @__PURE__ */ t.jsxs("div", { className: rt.accordion, children: [
|
|
2272
2272
|
/* @__PURE__ */ t.jsxs(
|
|
2273
2273
|
"div",
|
|
2274
2274
|
{
|
|
2275
2275
|
className: rt.header,
|
|
2276
|
-
onClick:
|
|
2276
|
+
onClick: j,
|
|
2277
2277
|
children: [
|
|
2278
|
-
/* @__PURE__ */ t.jsx("h5", { id: "h5", children:
|
|
2279
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2278
|
+
/* @__PURE__ */ t.jsx("h5", { id: "h5", children: h }),
|
|
2279
|
+
/* @__PURE__ */ t.jsx("div", { className: F(rt.icon, { [rt.open]: s }), children: /* @__PURE__ */ t.jsx(b, { name: "CaretDown" }) })
|
|
2280
2280
|
]
|
|
2281
2281
|
}
|
|
2282
2282
|
),
|
|
2283
2283
|
/* @__PURE__ */ t.jsx(
|
|
2284
2284
|
"div",
|
|
2285
2285
|
{
|
|
2286
|
-
ref:
|
|
2286
|
+
ref: f,
|
|
2287
2287
|
className: rt.content,
|
|
2288
|
-
style: { height: `${
|
|
2288
|
+
style: { height: `${r}px` },
|
|
2289
2289
|
children: /* @__PURE__ */ t.jsx("p", { id: "p", children: i })
|
|
2290
2290
|
}
|
|
2291
2291
|
)
|
|
2292
2292
|
] });
|
|
2293
2293
|
}, nn = "_buttonsBlock_1b2rb_1", an = {
|
|
2294
2294
|
buttonsBlock: nn
|
|
2295
|
-
},
|
|
2296
|
-
var
|
|
2297
|
-
const { setIsOpen: i, setModalType: a, productId: s } =
|
|
2298
|
-
if (!
|
|
2295
|
+
}, Gn = (h) => {
|
|
2296
|
+
var v, T;
|
|
2297
|
+
const { setIsOpen: i, setModalType: a, productId: s } = h, { cart: e } = ot(), { pageContext: r } = yt(), c = (v = r == null ? void 0 : r.listings) == null ? void 0 : v.find((_) => _.id === s);
|
|
2298
|
+
if (!c)
|
|
2299
2299
|
return null;
|
|
2300
|
-
const
|
|
2301
|
-
(
|
|
2300
|
+
const f = (T = r == null ? void 0 : r.products) == null ? void 0 : T.find(
|
|
2301
|
+
(_) => _.uniquePath === c.productData.uniquePath
|
|
2302
2302
|
);
|
|
2303
|
-
if (!
|
|
2303
|
+
if (!f)
|
|
2304
2304
|
return null;
|
|
2305
|
-
const
|
|
2305
|
+
const j = e.parts.find((_) => _.productId === f.id);
|
|
2306
2306
|
return /* @__PURE__ */ t.jsxs(
|
|
2307
2307
|
"div",
|
|
2308
2308
|
{
|
|
2309
2309
|
className: an.buttonsBlock,
|
|
2310
|
-
onClick: (
|
|
2310
|
+
onClick: (_) => _.stopPropagation(),
|
|
2311
2311
|
children: [
|
|
2312
2312
|
/* @__PURE__ */ t.jsx(
|
|
2313
|
-
|
|
2313
|
+
E,
|
|
2314
2314
|
{
|
|
2315
2315
|
type: "Secondary",
|
|
2316
2316
|
style: {
|
|
@@ -2319,11 +2319,11 @@ const ns = (u) => {
|
|
|
2319
2319
|
onClick: () => {
|
|
2320
2320
|
a("Add To Cart"), i(!0);
|
|
2321
2321
|
},
|
|
2322
|
-
children:
|
|
2322
|
+
children: j ? "Add More" : "Add To Cart"
|
|
2323
2323
|
}
|
|
2324
2324
|
),
|
|
2325
2325
|
/* @__PURE__ */ t.jsx(
|
|
2326
|
-
|
|
2326
|
+
E,
|
|
2327
2327
|
{
|
|
2328
2328
|
type: "Primary",
|
|
2329
2329
|
onClick: () => {
|
|
@@ -2339,11 +2339,11 @@ const ns = (u) => {
|
|
|
2339
2339
|
wrapper: on,
|
|
2340
2340
|
logo: cn,
|
|
2341
2341
|
info: rn
|
|
2342
|
-
},
|
|
2342
|
+
}, Wn = ({ date: h }) => {
|
|
2343
2343
|
const { general: i } = Ht();
|
|
2344
2344
|
if (!i) return /* @__PURE__ */ t.jsx(t.Fragment, {});
|
|
2345
2345
|
function a(s) {
|
|
2346
|
-
const e = new Date(s),
|
|
2346
|
+
const e = new Date(s), r = {
|
|
2347
2347
|
month: "short",
|
|
2348
2348
|
day: "2-digit",
|
|
2349
2349
|
year: "numeric",
|
|
@@ -2351,7 +2351,7 @@ const ns = (u) => {
|
|
|
2351
2351
|
minute: "2-digit",
|
|
2352
2352
|
hour12: !1
|
|
2353
2353
|
};
|
|
2354
|
-
return e.toLocaleDateString("en-US",
|
|
2354
|
+
return e.toLocaleDateString("en-US", r);
|
|
2355
2355
|
}
|
|
2356
2356
|
return /* @__PURE__ */ t.jsxs("div", { className: It.wrapper, children: [
|
|
2357
2357
|
/* @__PURE__ */ t.jsx("div", { className: It.logo, children: i.info.logo ? /* @__PURE__ */ t.jsx(
|
|
@@ -2371,7 +2371,7 @@ const ns = (u) => {
|
|
|
2371
2371
|
) }),
|
|
2372
2372
|
/* @__PURE__ */ t.jsxs("div", { className: It.info, children: [
|
|
2373
2373
|
/* @__PURE__ */ t.jsx("h3", { id: "h4", children: i.info.name }),
|
|
2374
|
-
/* @__PURE__ */ t.jsx("p", { id: "p", children: a(
|
|
2374
|
+
/* @__PURE__ */ t.jsx("p", { id: "p", children: a(h) })
|
|
2375
2375
|
] })
|
|
2376
2376
|
] });
|
|
2377
2377
|
}, ln = "_variants_hphv8_80", dn = "_variant_hphv8_80", un = "_stock_hphv8_98", hn = "_variantInfo_hphv8_105", pn = "_title_hphv8_199", mn = "_modal_hphv8_205", gn = "_header_hphv8_225", fn = "_productOptions_hphv8_233", xn = "_loading_hphv8_237", tt = {
|
|
@@ -2384,96 +2384,96 @@ const ns = (u) => {
|
|
|
2384
2384
|
header: gn,
|
|
2385
2385
|
productOptions: fn,
|
|
2386
2386
|
loading: xn
|
|
2387
|
-
},
|
|
2388
|
-
var
|
|
2389
|
-
const { pageContext: i } = yt(), a = (
|
|
2387
|
+
}, Xn = (h) => {
|
|
2388
|
+
var m;
|
|
2389
|
+
const { pageContext: i } = yt(), a = (m = i == null ? void 0 : i.listings) == null ? void 0 : m.find((d) => d.id === h.productId), [s, e] = x.useState(!0), [r, c] = x.useState(null), f = (r == null ? void 0 : r.variants[0]) || null, [j, v] = x.useState(
|
|
2390
2390
|
"ONE_TIME"
|
|
2391
|
-
), { addProducts: T } = ot(), { setIsOpen:
|
|
2392
|
-
return
|
|
2391
|
+
), { addProducts: T } = ot(), { setIsOpen: _ } = ct();
|
|
2392
|
+
return x.useEffect(() => {
|
|
2393
2393
|
(async () => {
|
|
2394
2394
|
e(!0);
|
|
2395
|
-
const
|
|
2395
|
+
const l = await Ft(
|
|
2396
2396
|
encodeURIComponent(
|
|
2397
2397
|
`/product/${a.productData.uniquePath}`
|
|
2398
2398
|
)
|
|
2399
2399
|
);
|
|
2400
|
-
T(
|
|
2400
|
+
T(l == null ? void 0 : l.data.products), c(l == null ? void 0 : l.data.products[0]), e(!1);
|
|
2401
2401
|
})();
|
|
2402
|
-
}, []),
|
|
2403
|
-
|
|
2404
|
-
}, []), /* @__PURE__ */ t.jsx(ut, { close:
|
|
2402
|
+
}, []), x.useEffect(() => {
|
|
2403
|
+
_(!0);
|
|
2404
|
+
}, []), /* @__PURE__ */ t.jsx(ut, { close: h.setIsOpen, children: /* @__PURE__ */ t.jsxs(
|
|
2405
2405
|
"div",
|
|
2406
2406
|
{
|
|
2407
2407
|
className: tt.modal,
|
|
2408
|
-
onClick: (
|
|
2408
|
+
onClick: (d) => d.stopPropagation(),
|
|
2409
2409
|
children: [
|
|
2410
2410
|
s && /* @__PURE__ */ t.jsx("div", { className: tt.loading, children: /* @__PURE__ */ t.jsx(Bt, {}) }),
|
|
2411
|
-
|
|
2411
|
+
h.type === "Add To Cart" && r && f && !s && /* @__PURE__ */ t.jsx(
|
|
2412
2412
|
_n,
|
|
2413
2413
|
{
|
|
2414
|
-
variants:
|
|
2415
|
-
activeVariant:
|
|
2416
|
-
activeChargeType:
|
|
2417
|
-
setActiveChargeType:
|
|
2418
|
-
productId:
|
|
2419
|
-
setIsOpen:
|
|
2414
|
+
variants: r.variants,
|
|
2415
|
+
activeVariant: f,
|
|
2416
|
+
activeChargeType: j,
|
|
2417
|
+
setActiveChargeType: v,
|
|
2418
|
+
productId: r.id,
|
|
2419
|
+
setIsOpen: h.setIsOpen
|
|
2420
2420
|
}
|
|
2421
2421
|
),
|
|
2422
|
-
|
|
2422
|
+
h.type === "Buy Now" && r && !s && /* @__PURE__ */ t.jsx(
|
|
2423
2423
|
jn,
|
|
2424
2424
|
{
|
|
2425
|
-
product:
|
|
2426
|
-
setIsOpen:
|
|
2425
|
+
product: r,
|
|
2426
|
+
setIsOpen: h.setIsOpen
|
|
2427
2427
|
}
|
|
2428
2428
|
)
|
|
2429
2429
|
]
|
|
2430
2430
|
}
|
|
2431
2431
|
) });
|
|
2432
|
-
}, _n = (
|
|
2433
|
-
const { variants: i, activeChargeType: a, productId: s, setIsOpen: e } =
|
|
2434
|
-
|
|
2432
|
+
}, _n = (h) => {
|
|
2433
|
+
const { variants: i, activeChargeType: a, productId: s, setIsOpen: e } = h, { cart: r, addProductToCart: c, addProducts: f, updateQuantityOfProduct: j } = ot(), { notifications: v, setNotifications: T } = Ct(), { pageContext: _ } = yt(), { setIsOpen: m } = ct(), d = () => {
|
|
2434
|
+
m(!1), setTimeout(() => {
|
|
2435
2435
|
e(!1);
|
|
2436
2436
|
}, 300);
|
|
2437
2437
|
};
|
|
2438
|
-
async function
|
|
2439
|
-
const o = i.find((M) => M.id === n), C =
|
|
2440
|
-
(M) => M.productId ===
|
|
2438
|
+
async function l(n) {
|
|
2439
|
+
const o = i.find((M) => M.id === n), C = r.parts.find(
|
|
2440
|
+
(M) => M.productId === h.productId && M.productVariantId === n
|
|
2441
2441
|
);
|
|
2442
2442
|
if ((o == null ? void 0 : o.quantity.available) && (o == null ? void 0 : o.quantity.restrictions) && ((C == null ? void 0 : C.quantity) || 0) + 1 > (o == null ? void 0 : o.quantity.restrictions.max) || (o == null ? void 0 : o.quantity.available) === 0 || (o == null ? void 0 : o.quantity.available) && ((C == null ? void 0 : C.quantity) || 0) + 1 > (o == null ? void 0 : o.quantity.available)) {
|
|
2443
2443
|
T([
|
|
2444
|
-
...
|
|
2445
|
-
{ id:
|
|
2444
|
+
...v,
|
|
2445
|
+
{ id: J(), message: "Product is out of stock", status: "error" }
|
|
2446
2446
|
]);
|
|
2447
2447
|
return;
|
|
2448
2448
|
}
|
|
2449
2449
|
if (C)
|
|
2450
|
-
|
|
2450
|
+
j({
|
|
2451
2451
|
productId: s,
|
|
2452
2452
|
productVariantId: n,
|
|
2453
2453
|
quantity: C.quantity + 1,
|
|
2454
2454
|
chargeType: a
|
|
2455
2455
|
});
|
|
2456
2456
|
else {
|
|
2457
|
-
|
|
2457
|
+
_ != null && _.products && f(_.products);
|
|
2458
2458
|
try {
|
|
2459
|
-
|
|
2459
|
+
c({
|
|
2460
2460
|
productId: s,
|
|
2461
2461
|
productVariantId: n,
|
|
2462
2462
|
quantity: 1,
|
|
2463
2463
|
chargeType: a
|
|
2464
2464
|
}), T([
|
|
2465
|
-
...
|
|
2465
|
+
...v,
|
|
2466
2466
|
{
|
|
2467
|
-
id:
|
|
2467
|
+
id: J(),
|
|
2468
2468
|
message: "Product added to cart",
|
|
2469
2469
|
status: "success"
|
|
2470
2470
|
}
|
|
2471
2471
|
]);
|
|
2472
2472
|
} catch (M) {
|
|
2473
2473
|
T([
|
|
2474
|
-
...
|
|
2474
|
+
...v,
|
|
2475
2475
|
{
|
|
2476
|
-
id:
|
|
2476
|
+
id: J(),
|
|
2477
2477
|
message: `Product failed to add to cart: ${M}`,
|
|
2478
2478
|
status: "error"
|
|
2479
2479
|
}
|
|
@@ -2492,7 +2492,7 @@ const ns = (u) => {
|
|
|
2492
2492
|
height: 24,
|
|
2493
2493
|
fill: "var(--text-secondary)",
|
|
2494
2494
|
hoverable: !0,
|
|
2495
|
-
onClick:
|
|
2495
|
+
onClick: d
|
|
2496
2496
|
}
|
|
2497
2497
|
)
|
|
2498
2498
|
] }),
|
|
@@ -2504,14 +2504,14 @@ const ns = (u) => {
|
|
|
2504
2504
|
return /* @__PURE__ */ t.jsxs(
|
|
2505
2505
|
"div",
|
|
2506
2506
|
{
|
|
2507
|
-
className:
|
|
2507
|
+
className: F(tt.variant),
|
|
2508
2508
|
onClick: () => {
|
|
2509
|
-
|
|
2509
|
+
l(n.id), e(!1);
|
|
2510
2510
|
},
|
|
2511
2511
|
children: [
|
|
2512
2512
|
/* @__PURE__ */ t.jsxs("div", { className: tt.variantInfo, children: [
|
|
2513
2513
|
/* @__PURE__ */ t.jsx("span", { className: tt.title, children: n.name }),
|
|
2514
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
2514
|
+
/* @__PURE__ */ t.jsx("span", { children: Q({
|
|
2515
2515
|
amount: a === "ONE_TIME" ? n.price.amount : n.subscriptionSettings ? n.subscriptionSettings.price.amount : 0,
|
|
2516
2516
|
currency: a === "ONE_TIME" ? n.price.currency : ((o = n.subscriptionSettings) == null ? void 0 : o.price.currency) || "USD"
|
|
2517
2517
|
}) })
|
|
@@ -2527,8 +2527,8 @@ const ns = (u) => {
|
|
|
2527
2527
|
);
|
|
2528
2528
|
}) })
|
|
2529
2529
|
] });
|
|
2530
|
-
}, jn = (
|
|
2531
|
-
const { product: i, setIsOpen: a } =
|
|
2530
|
+
}, jn = (h) => {
|
|
2531
|
+
const { product: i, setIsOpen: a } = h, { setIsOpen: s } = ct(), e = () => {
|
|
2532
2532
|
s(!1), setTimeout(() => {
|
|
2533
2533
|
a(!1);
|
|
2534
2534
|
}, 300);
|
|
@@ -2537,7 +2537,7 @@ const ns = (u) => {
|
|
|
2537
2537
|
/* @__PURE__ */ t.jsxs("div", { className: tt.header, children: [
|
|
2538
2538
|
/* @__PURE__ */ t.jsxs("div", { id: "h3", children: [
|
|
2539
2539
|
"Buy ",
|
|
2540
|
-
|
|
2540
|
+
it(i.name)
|
|
2541
2541
|
] }),
|
|
2542
2542
|
/* @__PURE__ */ t.jsx(
|
|
2543
2543
|
b,
|
|
@@ -2563,7 +2563,7 @@ const ns = (u) => {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
) })
|
|
2565
2565
|
] });
|
|
2566
|
-
}, vn = "
|
|
2566
|
+
}, vn = "_contentModal_1q42e_1", yn = "_modalTop_1q42e_13", bn = "_loading_1q42e_19", In = "_modalCards_1q42e_27", Nn = "_modalImage_1q42e_32", Cn = "_card_1q42e_37", Sn = "_cardInfo_1q42e_49", Pn = "_cardButtons_1q42e_56", kn = "_title_1q42e_62", wn = "_blockImage_1q42e_69", Tn = "_short_1q42e_78", Mn = "_price_1q42e_82", Bn = "_oldPrice_1q42e_89", $n = "_newPrice_1q42e_97", L = {
|
|
2567
2567
|
contentModal: vn,
|
|
2568
2568
|
modalTop: yn,
|
|
2569
2569
|
loading: bn,
|
|
@@ -2571,50 +2571,50 @@ const ns = (u) => {
|
|
|
2571
2571
|
modalImage: Nn,
|
|
2572
2572
|
card: Cn,
|
|
2573
2573
|
cardInfo: Sn,
|
|
2574
|
-
cardButtons:
|
|
2575
|
-
title:
|
|
2576
|
-
blockImage:
|
|
2577
|
-
short: Tn
|
|
2578
|
-
|
|
2574
|
+
cardButtons: Pn,
|
|
2575
|
+
title: kn,
|
|
2576
|
+
blockImage: wn,
|
|
2577
|
+
short: Tn,
|
|
2578
|
+
price: Mn,
|
|
2579
|
+
oldPrice: Bn,
|
|
2580
|
+
newPrice: $n
|
|
2581
|
+
}, Qn = (h) => {
|
|
2579
2582
|
const {
|
|
2580
2583
|
setIsOpen: i,
|
|
2581
2584
|
pageContext: a,
|
|
2582
2585
|
groupData: s,
|
|
2583
2586
|
setProductId: e,
|
|
2584
|
-
setIsProductModalOpen:
|
|
2585
|
-
setShowDropdown:
|
|
2586
|
-
} =
|
|
2587
|
-
|
|
2588
|
-
var
|
|
2587
|
+
setIsProductModalOpen: r,
|
|
2588
|
+
setShowDropdown: c
|
|
2589
|
+
} = h, [f, j] = x.useState(null), [v, T] = x.useState(!0), { setIsOpen: _ } = ct();
|
|
2590
|
+
x.useEffect(() => {
|
|
2591
|
+
var l;
|
|
2589
2592
|
T(!0);
|
|
2590
|
-
const
|
|
2591
|
-
(
|
|
2593
|
+
const d = (l = a.listings) == null ? void 0 : l.filter(
|
|
2594
|
+
(n) => s.listingIdList.includes(n.id)
|
|
2592
2595
|
);
|
|
2593
|
-
|
|
2594
|
-
}, [a]),
|
|
2595
|
-
|
|
2596
|
+
d && j([...d]), T(!1);
|
|
2597
|
+
}, [a]), x.useEffect(() => {
|
|
2598
|
+
_(!0);
|
|
2596
2599
|
}, []);
|
|
2597
|
-
const
|
|
2598
|
-
|
|
2600
|
+
const m = () => {
|
|
2601
|
+
_(!1), setTimeout(() => {
|
|
2599
2602
|
i(!1);
|
|
2600
2603
|
}, 300);
|
|
2601
2604
|
};
|
|
2602
|
-
function v(c) {
|
|
2603
|
-
return c.productData.compareAtPrice ? c.productData.compareAtPrice.amount : 0;
|
|
2604
|
-
}
|
|
2605
2605
|
return /* @__PURE__ */ t.jsx(ut, { close: () => i(!1), children: /* @__PURE__ */ t.jsxs(
|
|
2606
2606
|
"div",
|
|
2607
2607
|
{
|
|
2608
|
-
className:
|
|
2609
|
-
onClick: (
|
|
2608
|
+
className: L.contentModal,
|
|
2609
|
+
onClick: (d) => d.stopPropagation(),
|
|
2610
2610
|
children: [
|
|
2611
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2611
|
+
/* @__PURE__ */ t.jsxs("div", { className: L.modalTop, children: [
|
|
2612
2612
|
/* @__PURE__ */ t.jsx(
|
|
2613
2613
|
"span",
|
|
2614
2614
|
{
|
|
2615
|
-
className:
|
|
2615
|
+
className: L.title,
|
|
2616
2616
|
id: "h4",
|
|
2617
|
-
children:
|
|
2617
|
+
children: it(s.name)
|
|
2618
2618
|
}
|
|
2619
2619
|
),
|
|
2620
2620
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2622,70 +2622,80 @@ const ns = (u) => {
|
|
|
2622
2622
|
{
|
|
2623
2623
|
name: "X",
|
|
2624
2624
|
hoverable: !0,
|
|
2625
|
-
onClick:
|
|
2625
|
+
onClick: m,
|
|
2626
2626
|
fill: "var(--text-primary)"
|
|
2627
2627
|
}
|
|
2628
2628
|
)
|
|
2629
2629
|
] }),
|
|
2630
|
-
!
|
|
2630
|
+
!v && f && /* @__PURE__ */ t.jsx("div", { className: L.modalCards, children: f.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2631
2631
|
"div",
|
|
2632
2632
|
{
|
|
2633
|
-
className:
|
|
2633
|
+
className: L.card,
|
|
2634
2634
|
children: [
|
|
2635
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
2635
|
+
/* @__PURE__ */ t.jsx("div", { children: d.productData.images[0] ? /* @__PURE__ */ t.jsx(
|
|
2636
2636
|
"img",
|
|
2637
2637
|
{
|
|
2638
|
-
src: `https://imagedelivery.net/${
|
|
2638
|
+
src: `https://imagedelivery.net/${d.productData.images[0].cfId}/w=500`,
|
|
2639
2639
|
alt: "",
|
|
2640
2640
|
width: 64,
|
|
2641
2641
|
height: 64,
|
|
2642
|
-
className:
|
|
2642
|
+
className: L.modalImage
|
|
2643
2643
|
}
|
|
2644
|
-
) : /* @__PURE__ */ t.jsx("div", { className:
|
|
2645
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2646
|
-
/* @__PURE__ */ t.
|
|
2647
|
-
"
|
|
2644
|
+
) : /* @__PURE__ */ t.jsx("div", { className: F(L.blockImage, L.modalImage), children: /* @__PURE__ */ t.jsx(b, { name: "Image" }) }) }),
|
|
2645
|
+
/* @__PURE__ */ t.jsxs("div", { className: L.cardInfo, children: [
|
|
2646
|
+
/* @__PURE__ */ t.jsx(
|
|
2647
|
+
"div",
|
|
2648
2648
|
{
|
|
2649
|
-
className:
|
|
2649
|
+
className: L.name,
|
|
2650
2650
|
id: "h5",
|
|
2651
|
-
children: [
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2651
|
+
children: d.productData.compareAtPrice && (d.productData.compareAtPrice.amount || 0) - (d.productData.minPrice.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2652
|
+
it(d.productData.name),
|
|
2653
|
+
/* @__PURE__ */ t.jsxs("span", { className: L.price, children: [
|
|
2654
|
+
/* @__PURE__ */ t.jsx("span", { className: L.newPrice, children: Q({
|
|
2655
|
+
amount: d.productData.minPrice.amount,
|
|
2656
|
+
currency: d.productData.minPrice.currency
|
|
2657
|
+
}) }),
|
|
2658
|
+
/* @__PURE__ */ t.jsx("span", { className: L.oldPrice, children: Q({
|
|
2659
|
+
amount: d.productData.compareAtPrice.amount,
|
|
2660
|
+
currency: d.productData.compareAtPrice.currency
|
|
2661
|
+
}) })
|
|
2662
|
+
] })
|
|
2663
|
+
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2664
|
+
it(d.productData.name),
|
|
2665
|
+
/* @__PURE__ */ t.jsx("span", { className: L.newPrice, children: Q({
|
|
2666
|
+
amount: d.productData.minPrice.amount,
|
|
2667
|
+
currency: d.productData.minPrice.currency
|
|
2668
|
+
}) })
|
|
2669
|
+
] })
|
|
2659
2670
|
}
|
|
2660
2671
|
),
|
|
2661
|
-
|
|
2672
|
+
d.productData.shortDescription && /* @__PURE__ */ t.jsx(
|
|
2662
2673
|
"span",
|
|
2663
2674
|
{
|
|
2664
|
-
className:
|
|
2675
|
+
className: L.short,
|
|
2665
2676
|
id: "md",
|
|
2666
|
-
children:
|
|
2677
|
+
children: it(d.productData.shortDescription)
|
|
2667
2678
|
}
|
|
2668
|
-
)
|
|
2669
|
-
/* @__PURE__ */ t.jsx("span", {})
|
|
2679
|
+
)
|
|
2670
2680
|
] }),
|
|
2671
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2681
|
+
/* @__PURE__ */ t.jsxs("div", { className: L.cardButtons, children: [
|
|
2672
2682
|
/* @__PURE__ */ t.jsx(
|
|
2673
|
-
|
|
2683
|
+
E,
|
|
2674
2684
|
{
|
|
2675
2685
|
type: "Secondary",
|
|
2676
2686
|
onClick: () => {
|
|
2677
|
-
e(
|
|
2687
|
+
e(d.id), i(!1), r(!0);
|
|
2678
2688
|
},
|
|
2679
2689
|
children: "Buy"
|
|
2680
2690
|
}
|
|
2681
2691
|
),
|
|
2682
|
-
/* @__PURE__ */ t.jsx(Tt, { path: `/product/${
|
|
2683
|
-
|
|
2692
|
+
/* @__PURE__ */ t.jsx(Tt, { path: `/product/${d.productData.uniquePath}`, children: /* @__PURE__ */ t.jsx(
|
|
2693
|
+
E,
|
|
2684
2694
|
{
|
|
2685
2695
|
type: "Primary",
|
|
2686
2696
|
style: { whiteSpace: "nowrap" },
|
|
2687
2697
|
onClick: () => {
|
|
2688
|
-
|
|
2698
|
+
c(!1), m();
|
|
2689
2699
|
},
|
|
2690
2700
|
children: "View Details"
|
|
2691
2701
|
}
|
|
@@ -2693,56 +2703,56 @@ const ns = (u) => {
|
|
|
2693
2703
|
] })
|
|
2694
2704
|
]
|
|
2695
2705
|
},
|
|
2696
|
-
|
|
2706
|
+
d.id
|
|
2697
2707
|
)) }),
|
|
2698
|
-
|
|
2708
|
+
v && /* @__PURE__ */ t.jsx("div", { className: L.loading, children: /* @__PURE__ */ t.jsx(Bt, {}) })
|
|
2699
2709
|
]
|
|
2700
2710
|
}
|
|
2701
2711
|
) });
|
|
2702
2712
|
};
|
|
2703
2713
|
export {
|
|
2704
|
-
|
|
2714
|
+
Yn as Accordion,
|
|
2705
2715
|
Us as BurgerMenuButton,
|
|
2706
|
-
|
|
2716
|
+
E as Button,
|
|
2707
2717
|
qe as ButtonTypeSettings,
|
|
2708
|
-
|
|
2709
|
-
|
|
2718
|
+
Ln as ButtonsSettings,
|
|
2719
|
+
En as CategorySettings,
|
|
2710
2720
|
$t as ChargeTypes,
|
|
2711
2721
|
At as ChooseImage,
|
|
2712
|
-
|
|
2722
|
+
Zn as ChooseImageModal,
|
|
2713
2723
|
Rs as EmptyCart,
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2724
|
+
Rn as FormSettings,
|
|
2725
|
+
Qn as GroupCardModal,
|
|
2726
|
+
Hn as HeaderButtons,
|
|
2717
2727
|
b as Icon,
|
|
2718
2728
|
Nt as InputSettings,
|
|
2719
2729
|
Rt as InputUI,
|
|
2720
|
-
|
|
2721
|
-
|
|
2730
|
+
ti as ItemsSettings,
|
|
2731
|
+
Dn as LayoutSettings,
|
|
2722
2732
|
Tt as Link,
|
|
2723
|
-
|
|
2733
|
+
Un as ListingSelector,
|
|
2724
2734
|
Bt as Loader,
|
|
2725
|
-
|
|
2735
|
+
Wn as MetaInfoPost,
|
|
2726
2736
|
ut as Modal,
|
|
2727
|
-
|
|
2737
|
+
Fn as PagesMobileMenu,
|
|
2728
2738
|
Ls as PagesMobileModal,
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2739
|
+
zn as PagesSettings,
|
|
2740
|
+
Gn as ProductCardButtons,
|
|
2741
|
+
Xn as ProductCardModal,
|
|
2732
2742
|
ns as ProductOptions,
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2743
|
+
ei as RadioUI,
|
|
2744
|
+
Pt as RangeSelector,
|
|
2745
|
+
at as Select,
|
|
2746
|
+
si as SelectInfiniteList,
|
|
2747
|
+
ni as SelectUI,
|
|
2748
|
+
Vn as ShareLink,
|
|
2749
|
+
Es as ShoppingButton,
|
|
2750
|
+
zs as ShoppingModalCart,
|
|
2741
2751
|
lt as Switch,
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2752
|
+
ii as TextSettings,
|
|
2753
|
+
ai as TextareaSettings,
|
|
2754
|
+
oi as TextareaUI,
|
|
2755
|
+
ci as TypesText,
|
|
2746
2756
|
Ot as UserInfo,
|
|
2747
|
-
|
|
2757
|
+
ri as Wrapper
|
|
2748
2758
|
};
|