@billgangcom/theme-lib 1.66.2 → 1.66.4
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/ui/Modal/index.d.ts +1 -0
- package/dist/builder.cjs.js +4 -4
- package/dist/builder.es.js +196 -208
- package/dist/{index-yNJDaEUC.cjs → index-Bt0EfByO.cjs} +32 -32
- package/dist/{index-B-Mm1sSt.js → index-Du7rjeR9.js} +4814 -4795
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +971 -940
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as t, I as j, c as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
wrapper:
|
|
6
|
-
block:
|
|
7
|
-
title:
|
|
8
|
-
subtitle:
|
|
9
|
-
alignmentContent:
|
|
10
|
-
alignments:
|
|
11
|
-
alignment:
|
|
12
|
-
circle:
|
|
13
|
-
paddings:
|
|
14
|
-
padding:
|
|
15
|
-
active:
|
|
16
|
-
input:
|
|
17
|
-
},
|
|
1
|
+
import { j as t, I as j, c as V, d as bt, u as dt, e as ut, P as pt, S as ot, R as kt, D as ht, f as mt, v as _t, B as ct, g as st, h as Ct, a as St, O as lt, i as et, k as gt, C as ft, l as H, m as Bt, n as Tt, o as it, p as Mt, r as jt, t as X, L as At, w as xt, x as rt, s as yt, y as F, z as Ot, M as Nt, A as $t, E as Et, F as qt, G as wt, H as Rt, J as Dt, K as zt, N as Lt } from "./index-Du7rjeR9.js";
|
|
2
|
+
import { X as sa, U as na, W as ia, Q as aa, T as oa, V as ca } from "./index-Du7rjeR9.js";
|
|
3
|
+
import g from "react";
|
|
4
|
+
const Ft = "_wrapper_kh9z8_2", Ut = "_block_kh9z8_8", Vt = "_title_kh9z8_16", Ht = "_subtitle_kh9z8_23", Yt = "_alignmentContent_kh9z8_30", Wt = "_alignments_kh9z8_39", Gt = "_alignment_kh9z8_30", Xt = "_circle_kh9z8_64", Qt = "_paddings_kh9z8_71", Jt = "_padding_kh9z8_71", Kt = "_active_kh9z8_97", Zt = "_input_kh9z8_104", G = {
|
|
5
|
+
wrapper: Ft,
|
|
6
|
+
block: Ut,
|
|
7
|
+
title: Vt,
|
|
8
|
+
subtitle: Ht,
|
|
9
|
+
alignmentContent: Yt,
|
|
10
|
+
alignments: Wt,
|
|
11
|
+
alignment: Gt,
|
|
12
|
+
circle: Xt,
|
|
13
|
+
paddings: Qt,
|
|
14
|
+
padding: Jt,
|
|
15
|
+
active: Kt,
|
|
16
|
+
input: Zt
|
|
17
|
+
}, te = [
|
|
18
18
|
"topLeft",
|
|
19
19
|
"top",
|
|
20
20
|
"topRight",
|
|
@@ -24,17 +24,17 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
24
24
|
"bottomLeft",
|
|
25
25
|
"bottom",
|
|
26
26
|
"bottomRight"
|
|
27
|
-
],
|
|
27
|
+
], ee = ["left", "top", "right", "bottom"], Di = (c) => {
|
|
28
28
|
const {
|
|
29
29
|
alignment: i,
|
|
30
30
|
padding: a,
|
|
31
31
|
setPadding: s,
|
|
32
32
|
setAlignment: e,
|
|
33
|
-
isAlignment:
|
|
34
|
-
isPadding:
|
|
33
|
+
isAlignment: l = !0,
|
|
34
|
+
isPadding: r = !0
|
|
35
35
|
} = c;
|
|
36
|
-
function
|
|
37
|
-
switch (
|
|
36
|
+
function h(u) {
|
|
37
|
+
switch (u) {
|
|
38
38
|
case "left":
|
|
39
39
|
case "topLeft":
|
|
40
40
|
case "bottomLeft":
|
|
@@ -51,8 +51,8 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
51
51
|
return "TextAlignCenter";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
switch (
|
|
54
|
+
function m(u) {
|
|
55
|
+
switch (u) {
|
|
56
56
|
case "left":
|
|
57
57
|
return "AlignLeft";
|
|
58
58
|
case "right":
|
|
@@ -63,40 +63,40 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
63
63
|
return "AlignBottom";
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const [
|
|
67
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
68
|
-
/* @__PURE__ */ t.jsx("h3", { className:
|
|
69
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
70
|
-
|
|
71
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
72
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
66
|
+
const [_, S] = g.useState(null), [v, n] = g.useState(null);
|
|
67
|
+
return /* @__PURE__ */ t.jsxs("div", { className: G.layout, children: [
|
|
68
|
+
/* @__PURE__ */ t.jsx("h3", { className: G.title, children: "Layout (for Desktop version)" }),
|
|
69
|
+
/* @__PURE__ */ t.jsxs("div", { className: G.alignmentContent, children: [
|
|
70
|
+
l && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
71
|
+
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Alignment" }),
|
|
72
|
+
/* @__PURE__ */ t.jsx("div", { className: G.alignments, children: te.map((u) => /* @__PURE__ */ t.jsxs(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
onClick: () => {
|
|
76
|
-
e(
|
|
76
|
+
e(u);
|
|
77
77
|
},
|
|
78
|
-
className:
|
|
78
|
+
className: G.alignment,
|
|
79
79
|
onMouseEnter: () => {
|
|
80
|
-
|
|
80
|
+
S(u);
|
|
81
81
|
},
|
|
82
82
|
onMouseLeave: () => {
|
|
83
|
-
|
|
83
|
+
S(null);
|
|
84
84
|
},
|
|
85
85
|
children: [
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
u !== i && _ !== u && /* @__PURE__ */ t.jsx("div", { className: G.circle }),
|
|
87
|
+
u !== i && _ === u && /* @__PURE__ */ t.jsx(
|
|
88
88
|
j,
|
|
89
89
|
{
|
|
90
|
-
name:
|
|
90
|
+
name: h(_),
|
|
91
91
|
fill: "#c2c2c2",
|
|
92
92
|
width: 22,
|
|
93
93
|
height: 22
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
|
-
|
|
96
|
+
u === i && /* @__PURE__ */ t.jsx(
|
|
97
97
|
j,
|
|
98
98
|
{
|
|
99
|
-
name:
|
|
99
|
+
name: h(i),
|
|
100
100
|
fill: "#FF3F19",
|
|
101
101
|
width: 22,
|
|
102
102
|
height: 22
|
|
@@ -104,19 +104,19 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
104
104
|
)
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
u
|
|
108
108
|
)) })
|
|
109
109
|
] }),
|
|
110
|
-
|
|
111
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
112
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
110
|
+
r && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
|
|
111
|
+
/* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Paddings" }),
|
|
112
|
+
/* @__PURE__ */ t.jsx("div", { className: G.paddings, children: ee.map((u) => /* @__PURE__ */ t.jsxs(
|
|
113
113
|
"label",
|
|
114
114
|
{
|
|
115
|
-
className:
|
|
116
|
-
[
|
|
115
|
+
className: V(G.padding, {
|
|
116
|
+
[G.active]: v === u
|
|
117
117
|
}),
|
|
118
118
|
onFocus: () => {
|
|
119
|
-
n(
|
|
119
|
+
n(u);
|
|
120
120
|
},
|
|
121
121
|
onBlur: () => {
|
|
122
122
|
n(null);
|
|
@@ -125,7 +125,7 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
125
125
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
126
126
|
j,
|
|
127
127
|
{
|
|
128
|
-
name:
|
|
128
|
+
name: m(u),
|
|
129
129
|
width: 20,
|
|
130
130
|
height: 20
|
|
131
131
|
}
|
|
@@ -134,10 +134,10 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
134
134
|
bt,
|
|
135
135
|
{
|
|
136
136
|
type: "number",
|
|
137
|
-
value: String(a[
|
|
137
|
+
value: String(a[u]),
|
|
138
138
|
onChange: (o) => s({
|
|
139
139
|
...a,
|
|
140
|
-
[
|
|
140
|
+
[u]: Math.min(Number(o), 999)
|
|
141
141
|
}),
|
|
142
142
|
max: 999,
|
|
143
143
|
paddingless: !0,
|
|
@@ -146,105 +146,105 @@ const zt = "_wrapper_kh9z8_2", Lt = "_block_kh9z8_8", Ft = "_title_kh9z8_16", Vt
|
|
|
146
146
|
)
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
u
|
|
150
150
|
)) })
|
|
151
151
|
] })
|
|
152
152
|
] })
|
|
153
153
|
] });
|
|
154
|
-
},
|
|
155
|
-
title:
|
|
156
|
-
subtitle:
|
|
157
|
-
header:
|
|
158
|
-
text:
|
|
159
|
-
productsBlock:
|
|
160
|
-
top:
|
|
161
|
-
itemsBlock:
|
|
162
|
-
typeTexts:
|
|
163
|
-
block:
|
|
164
|
-
active:
|
|
165
|
-
products:
|
|
166
|
-
product:
|
|
167
|
-
button:
|
|
168
|
-
disabled:
|
|
169
|
-
image:
|
|
170
|
-
info:
|
|
171
|
-
name:
|
|
172
|
-
buttons:
|
|
173
|
-
modal:
|
|
174
|
-
link:
|
|
175
|
-
modalOptions:
|
|
176
|
-
addButton:
|
|
177
|
-
deleteButton:
|
|
154
|
+
}, se = "_title_82zux_1", ne = "_subtitle_82zux_5", ie = "_header_82zux_12", ae = "_text_82zux_13", oe = "_productsBlock_82zux_14", ce = "_top_82zux_26", re = "_itemsBlock_82zux_35", le = "_typeTexts_82zux_41", de = "_block_82zux_48", ue = "_active_82zux_61", pe = "_products_82zux_14", he = "_product_82zux_14", me = "_button_82zux_80", _e = "_disabled_82zux_91", ge = "_image_82zux_95", fe = "_info_82zux_102", xe = "_name_82zux_114", je = "_buttons_82zux_118", ve = "_modal_82zux_125", be = "_link_82zux_145", ye = "_modalOptions_82zux_151", Ne = "_addButton_82zux_157", Ie = "_deleteButton_82zux_179", Q = {
|
|
155
|
+
title: se,
|
|
156
|
+
subtitle: ne,
|
|
157
|
+
header: ie,
|
|
158
|
+
text: ae,
|
|
159
|
+
productsBlock: oe,
|
|
160
|
+
top: ce,
|
|
161
|
+
itemsBlock: re,
|
|
162
|
+
typeTexts: le,
|
|
163
|
+
block: de,
|
|
164
|
+
active: ue,
|
|
165
|
+
products: pe,
|
|
166
|
+
product: he,
|
|
167
|
+
button: me,
|
|
168
|
+
disabled: _e,
|
|
169
|
+
image: ge,
|
|
170
|
+
info: fe,
|
|
171
|
+
name: xe,
|
|
172
|
+
buttons: je,
|
|
173
|
+
modal: ve,
|
|
174
|
+
link: be,
|
|
175
|
+
modalOptions: ye,
|
|
176
|
+
addButton: Ne,
|
|
177
|
+
deleteButton: Ie
|
|
178
178
|
};
|
|
179
|
-
function
|
|
179
|
+
function ke({ id: c, children: i }) {
|
|
180
180
|
const {
|
|
181
181
|
attributes: a,
|
|
182
182
|
listeners: s,
|
|
183
183
|
setNodeRef: e,
|
|
184
|
-
transform:
|
|
185
|
-
transition:
|
|
186
|
-
isDragging:
|
|
184
|
+
transform: l,
|
|
185
|
+
transition: r,
|
|
186
|
+
isDragging: h
|
|
187
187
|
} = gt({
|
|
188
188
|
id: c
|
|
189
|
-
}),
|
|
190
|
-
transform: ft.Transform.toString(
|
|
191
|
-
transition:
|
|
189
|
+
}), m = {
|
|
190
|
+
transform: ft.Transform.toString(l),
|
|
191
|
+
transition: r
|
|
192
192
|
};
|
|
193
193
|
return /* @__PURE__ */ t.jsx(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
196
|
ref: e,
|
|
197
|
-
style:
|
|
198
|
-
className: `${Q.product} ${
|
|
197
|
+
style: m,
|
|
198
|
+
className: `${Q.product} ${h ? Q.dragging : ""}`,
|
|
199
199
|
...a,
|
|
200
200
|
...s,
|
|
201
201
|
children: i
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const zi = (c) => {
|
|
206
206
|
const {
|
|
207
207
|
isActiveItems: i,
|
|
208
208
|
setIsActiveItems: a,
|
|
209
209
|
items: s,
|
|
210
210
|
setItems: e,
|
|
211
|
-
other:
|
|
212
|
-
tags:
|
|
213
|
-
title:
|
|
214
|
-
subtitle:
|
|
215
|
-
draggable:
|
|
216
|
-
withImage:
|
|
217
|
-
addable:
|
|
211
|
+
other: l,
|
|
212
|
+
tags: r,
|
|
213
|
+
title: h,
|
|
214
|
+
subtitle: m,
|
|
215
|
+
draggable: _ = !1,
|
|
216
|
+
withImage: S = !1,
|
|
217
|
+
addable: v = !0,
|
|
218
218
|
itemsOptions: n,
|
|
219
|
-
hasRangeSelector:
|
|
219
|
+
hasRangeSelector: u = !1,
|
|
220
220
|
rangeSelectorOptions: o,
|
|
221
221
|
limit: T,
|
|
222
|
-
autoScrollInterval:
|
|
222
|
+
autoScrollInterval: f,
|
|
223
223
|
deletable: I,
|
|
224
224
|
aspectRatio: k,
|
|
225
225
|
setAspectRatio: O
|
|
226
226
|
} = c, z = dt(
|
|
227
|
-
ut(
|
|
227
|
+
ut(pt, {
|
|
228
228
|
activationConstraint: {
|
|
229
229
|
distance: 5
|
|
230
230
|
}
|
|
231
231
|
})
|
|
232
|
-
), R = (
|
|
233
|
-
const { active: C, over:
|
|
234
|
-
if (
|
|
235
|
-
const
|
|
236
|
-
if (
|
|
237
|
-
const M = [...s], [x] = M.splice(
|
|
238
|
-
M.splice(
|
|
232
|
+
), R = (p) => {
|
|
233
|
+
const { active: C, over: $ } = p;
|
|
234
|
+
if ($ && C.id !== $.id) {
|
|
235
|
+
const y = s.findIndex((M) => M === C.id), w = s.findIndex((M) => M === $.id);
|
|
236
|
+
if (y !== -1 && w !== -1) {
|
|
237
|
+
const M = [...s], [x] = M.splice(y, 1);
|
|
238
|
+
M.splice(w, 0, x), e(M);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
|
-
function
|
|
243
|
-
if (
|
|
244
|
-
return
|
|
242
|
+
function b(p) {
|
|
243
|
+
if (S)
|
|
244
|
+
return p ? /* @__PURE__ */ t.jsx(
|
|
245
245
|
"img",
|
|
246
246
|
{
|
|
247
|
-
src: `https://imagedelivery.net/${
|
|
247
|
+
src: `https://imagedelivery.net/${p[0]}/w=1000`,
|
|
248
248
|
alt: "image",
|
|
249
249
|
width: 16,
|
|
250
250
|
height: 16
|
|
@@ -259,11 +259,11 @@ const Oi = (c) => {
|
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
const L = (
|
|
263
|
-
const
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
266
|
-
|
|
262
|
+
const L = (p, C = !1) => {
|
|
263
|
+
const $ = n.find((w) => w.id === p);
|
|
264
|
+
if (!$) return;
|
|
265
|
+
const y = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
266
|
+
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
267
267
|
j,
|
|
268
268
|
{
|
|
269
269
|
name: "DotsSixVertical",
|
|
@@ -275,17 +275,17 @@ const Oi = (c) => {
|
|
|
275
275
|
/* @__PURE__ */ t.jsx(
|
|
276
276
|
st,
|
|
277
277
|
{
|
|
278
|
-
onChange: (
|
|
279
|
-
const M = [...s], x = n.find((
|
|
278
|
+
onChange: (w) => {
|
|
279
|
+
const M = [...s], x = n.find((d) => d.name === w);
|
|
280
280
|
if (!x) return;
|
|
281
|
-
const A = x.id,
|
|
282
|
-
e([...
|
|
281
|
+
const A = x.id, U = M.map((d) => d === p ? A : d);
|
|
282
|
+
e([...U]);
|
|
283
283
|
},
|
|
284
|
-
value:
|
|
285
|
-
options: n.filter((
|
|
286
|
-
leftAddonOptions: n.map((
|
|
287
|
-
value:
|
|
288
|
-
addon:
|
|
284
|
+
value: $.name,
|
|
285
|
+
options: n.filter((w) => !s.find((M) => M === w.id)).map((w) => w.name),
|
|
286
|
+
leftAddonOptions: n.map((w) => ({
|
|
287
|
+
value: w.name,
|
|
288
|
+
addon: b(w.images)
|
|
289
289
|
}))
|
|
290
290
|
}
|
|
291
291
|
),
|
|
@@ -297,56 +297,56 @@ const Oi = (c) => {
|
|
|
297
297
|
width: 20,
|
|
298
298
|
height: 20,
|
|
299
299
|
fill: "#C12A2A",
|
|
300
|
-
onClick: () => e(s.filter((
|
|
300
|
+
onClick: () => e(s.filter((w) => w !== p))
|
|
301
301
|
}
|
|
302
302
|
) }) })
|
|
303
303
|
] });
|
|
304
|
-
return
|
|
305
|
-
|
|
304
|
+
return _ ? /* @__PURE__ */ t.jsx(
|
|
305
|
+
ke,
|
|
306
306
|
{
|
|
307
|
-
id:
|
|
308
|
-
children:
|
|
307
|
+
id: p,
|
|
308
|
+
children: y
|
|
309
309
|
},
|
|
310
310
|
et()
|
|
311
311
|
) : /* @__PURE__ */ t.jsx(
|
|
312
312
|
"div",
|
|
313
313
|
{
|
|
314
314
|
className: Q.product,
|
|
315
|
-
children:
|
|
315
|
+
children: y
|
|
316
316
|
},
|
|
317
317
|
et()
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
return /* @__PURE__ */ t.jsxs("div", { className: Q.productsBlock, children: [
|
|
321
|
-
(
|
|
322
|
-
|
|
321
|
+
(h || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Q.top, children: [
|
|
322
|
+
h && /* @__PURE__ */ t.jsx("h3", { className: Q.title, children: h }),
|
|
323
323
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
324
324
|
ot,
|
|
325
325
|
{
|
|
326
326
|
current: i,
|
|
327
|
-
onChange: (
|
|
327
|
+
onChange: (p) => a == null ? void 0 : a(p)
|
|
328
328
|
}
|
|
329
329
|
)
|
|
330
330
|
] }),
|
|
331
|
-
|
|
331
|
+
u && o && /* @__PURE__ */ t.jsx(kt, { ...o }),
|
|
332
332
|
/* @__PURE__ */ t.jsxs("div", { className: Q.products, children: [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
333
|
+
m && /* @__PURE__ */ t.jsx("h5", { className: Q.subtitle, children: m }),
|
|
334
|
+
_ ? /* @__PURE__ */ t.jsx(
|
|
335
|
+
ht,
|
|
336
336
|
{
|
|
337
337
|
sensors: z,
|
|
338
338
|
onDragEnd: R,
|
|
339
339
|
children: /* @__PURE__ */ t.jsx(
|
|
340
|
-
|
|
340
|
+
mt,
|
|
341
341
|
{
|
|
342
342
|
items: s,
|
|
343
343
|
strategy: _t,
|
|
344
|
-
children: s.map((
|
|
344
|
+
children: s.map((p) => L(p, I))
|
|
345
345
|
}
|
|
346
346
|
)
|
|
347
347
|
}
|
|
348
|
-
) : s.map((
|
|
349
|
-
|
|
348
|
+
) : s.map((p) => L(p, I)),
|
|
349
|
+
v && /* @__PURE__ */ t.jsx(
|
|
350
350
|
"div",
|
|
351
351
|
{
|
|
352
352
|
style: {
|
|
@@ -359,22 +359,22 @@ const Oi = (c) => {
|
|
|
359
359
|
ct,
|
|
360
360
|
{
|
|
361
361
|
withoutHover: !0,
|
|
362
|
-
className:
|
|
362
|
+
className: V(Q.button, {
|
|
363
363
|
[Q.disabled]: !!(T && T <= s.length || s.length === n.length)
|
|
364
364
|
}),
|
|
365
365
|
size: "s",
|
|
366
366
|
disabled: !!(T && T <= s.length || s.length === n.length),
|
|
367
367
|
onClick: () => {
|
|
368
|
-
const
|
|
368
|
+
const p = [...s];
|
|
369
369
|
let C = null;
|
|
370
370
|
if (n) {
|
|
371
|
-
for (let
|
|
372
|
-
if (!s.find((
|
|
373
|
-
C = n[
|
|
371
|
+
for (let $ = 0; $ < n.length; $++)
|
|
372
|
+
if (!s.find((y) => y === n[$].id)) {
|
|
373
|
+
C = n[$];
|
|
374
374
|
break;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
p.push((C == null ? void 0 : C.id) || n[0].id), e(p);
|
|
378
378
|
},
|
|
379
379
|
style: {
|
|
380
380
|
width: "fit-content"
|
|
@@ -401,31 +401,31 @@ const Oi = (c) => {
|
|
|
401
401
|
value: k,
|
|
402
402
|
label: "Aspect Ratio",
|
|
403
403
|
options: Object.keys(Ct),
|
|
404
|
-
onChange: (
|
|
404
|
+
onChange: (p) => O(p),
|
|
405
405
|
leftAddonOptions: St
|
|
406
406
|
}
|
|
407
407
|
),
|
|
408
|
-
|
|
408
|
+
r !== void 0 && /* @__PURE__ */ t.jsx(
|
|
409
409
|
lt,
|
|
410
410
|
{
|
|
411
411
|
tagsTitle: "Tags",
|
|
412
|
-
items:
|
|
412
|
+
items: r
|
|
413
413
|
}
|
|
414
414
|
),
|
|
415
|
-
|
|
415
|
+
l !== void 0 && /* @__PURE__ */ t.jsx(
|
|
416
416
|
lt,
|
|
417
417
|
{
|
|
418
418
|
otherTitle: "Other",
|
|
419
|
-
items:
|
|
419
|
+
items: l
|
|
420
420
|
}
|
|
421
421
|
),
|
|
422
|
-
|
|
422
|
+
f !== void 0 && /* @__PURE__ */ t.jsx(
|
|
423
423
|
bt,
|
|
424
424
|
{
|
|
425
425
|
label: "Auto scroll interval",
|
|
426
426
|
type: "number",
|
|
427
|
-
value: String(
|
|
428
|
-
onChange: (
|
|
427
|
+
value: String(f.scrollInterval),
|
|
428
|
+
onChange: (p) => f.setScrollInterval(Number(p)),
|
|
429
429
|
min: 0.1,
|
|
430
430
|
max: 100,
|
|
431
431
|
style: {
|
|
@@ -435,108 +435,108 @@ const Oi = (c) => {
|
|
|
435
435
|
}
|
|
436
436
|
)
|
|
437
437
|
] });
|
|
438
|
-
},
|
|
439
|
-
title:
|
|
440
|
-
subtitle:
|
|
441
|
-
header:
|
|
442
|
-
text:
|
|
443
|
-
productsBlock:
|
|
444
|
-
top:
|
|
445
|
-
itemsBlock:
|
|
446
|
-
typeTexts:
|
|
447
|
-
block:
|
|
448
|
-
active:
|
|
449
|
-
products:
|
|
450
|
-
product:
|
|
451
|
-
button:
|
|
452
|
-
disabled:
|
|
453
|
-
image:
|
|
454
|
-
info:
|
|
455
|
-
name:
|
|
456
|
-
buttons:
|
|
457
|
-
modal:
|
|
458
|
-
link:
|
|
459
|
-
modalOptions:
|
|
460
|
-
addButton:
|
|
461
|
-
deleteButton:
|
|
462
|
-
closeIcon:
|
|
438
|
+
}, Ce = "_title_roi3a_1", Se = "_subtitle_roi3a_5", $e = "_header_roi3a_12", qe = "_text_roi3a_13", we = "_productsBlock_roi3a_14", Pe = "_top_roi3a_26", Be = "_itemsBlock_roi3a_35", Te = "_typeTexts_roi3a_41", Me = "_block_roi3a_48", Ae = "_active_roi3a_61", Oe = "_products_roi3a_14", Ee = "_product_roi3a_14", Re = "_button_roi3a_80", De = "_disabled_roi3a_91", ze = "_image_roi3a_95", Le = "_info_roi3a_102", Fe = "_name_roi3a_114", Ue = "_buttons_roi3a_118", Ve = "_modal_roi3a_125", He = "_link_roi3a_145", Ye = "_modalOptions_roi3a_151", We = "_addButton_roi3a_164", Ge = "_deleteButton_roi3a_179", Xe = "_closeIcon_roi3a_191", Y = {
|
|
439
|
+
title: Ce,
|
|
440
|
+
subtitle: Se,
|
|
441
|
+
header: $e,
|
|
442
|
+
text: qe,
|
|
443
|
+
productsBlock: we,
|
|
444
|
+
top: Pe,
|
|
445
|
+
itemsBlock: Be,
|
|
446
|
+
typeTexts: Te,
|
|
447
|
+
block: Me,
|
|
448
|
+
active: Ae,
|
|
449
|
+
products: Oe,
|
|
450
|
+
product: Ee,
|
|
451
|
+
button: Re,
|
|
452
|
+
disabled: De,
|
|
453
|
+
image: ze,
|
|
454
|
+
info: Le,
|
|
455
|
+
name: Fe,
|
|
456
|
+
buttons: Ue,
|
|
457
|
+
modal: Ve,
|
|
458
|
+
link: He,
|
|
459
|
+
modalOptions: Ye,
|
|
460
|
+
addButton: We,
|
|
461
|
+
deleteButton: Ge,
|
|
462
|
+
closeIcon: Xe
|
|
463
463
|
};
|
|
464
|
-
function
|
|
464
|
+
function Qe({ product: c, children: i }) {
|
|
465
465
|
const {
|
|
466
466
|
attributes: a,
|
|
467
467
|
listeners: s,
|
|
468
468
|
setNodeRef: e,
|
|
469
|
-
transform:
|
|
470
|
-
transition:
|
|
471
|
-
isDragging:
|
|
469
|
+
transform: l,
|
|
470
|
+
transition: r,
|
|
471
|
+
isDragging: h
|
|
472
472
|
} = gt({
|
|
473
473
|
id: c.id
|
|
474
|
-
}),
|
|
475
|
-
transform: ft.Transform.toString(
|
|
476
|
-
transition:
|
|
474
|
+
}), m = {
|
|
475
|
+
transform: ft.Transform.toString(l),
|
|
476
|
+
transition: r
|
|
477
477
|
};
|
|
478
478
|
return /* @__PURE__ */ t.jsx(
|
|
479
479
|
"div",
|
|
480
480
|
{
|
|
481
481
|
ref: e,
|
|
482
|
-
style:
|
|
483
|
-
className: `${Y.product} ${
|
|
482
|
+
style: m,
|
|
483
|
+
className: `${Y.product} ${h ? Y.dragging : ""}`,
|
|
484
484
|
...a,
|
|
485
485
|
...s,
|
|
486
486
|
children: i
|
|
487
487
|
}
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const Li = (c) => {
|
|
491
491
|
const {
|
|
492
492
|
isActiveItems: i,
|
|
493
493
|
setIsActiveItems: a,
|
|
494
494
|
items: s,
|
|
495
495
|
setItems: e,
|
|
496
|
-
title:
|
|
497
|
-
subtitle:
|
|
498
|
-
editable:
|
|
499
|
-
draggable:
|
|
500
|
-
deletable:
|
|
501
|
-
addable:
|
|
502
|
-
itemsType:
|
|
496
|
+
title: l,
|
|
497
|
+
subtitle: r,
|
|
498
|
+
editable: h = !0,
|
|
499
|
+
draggable: m = !1,
|
|
500
|
+
deletable: _ = !0,
|
|
501
|
+
addable: S = !0,
|
|
502
|
+
itemsType: v,
|
|
503
503
|
itemsOptions: n,
|
|
504
|
-
addableOptions:
|
|
504
|
+
addableOptions: u = {},
|
|
505
505
|
limit: o
|
|
506
|
-
} = c, [T,
|
|
507
|
-
ut(
|
|
506
|
+
} = c, [T, f] = g.useState(null), [I, k] = g.useState(null), O = g.useRef(null), z = dt(
|
|
507
|
+
ut(pt, {
|
|
508
508
|
activationConstraint: {
|
|
509
509
|
distance: 5
|
|
510
510
|
}
|
|
511
511
|
})
|
|
512
512
|
);
|
|
513
|
-
|
|
513
|
+
g.useEffect(() => {
|
|
514
514
|
if (T) {
|
|
515
|
-
const
|
|
516
|
-
e(
|
|
515
|
+
const p = [...s].map((C) => C.id === T.id ? T : C);
|
|
516
|
+
e(p);
|
|
517
517
|
}
|
|
518
|
-
}, [T]),
|
|
518
|
+
}, [T]), g.useEffect(() => {
|
|
519
519
|
O.current && I && (O.current.getBoundingClientRect().height, I.top);
|
|
520
520
|
}, [O.current, I]);
|
|
521
|
-
const R = (
|
|
522
|
-
|
|
523
|
-
const
|
|
521
|
+
const R = (p, C) => {
|
|
522
|
+
p.stopPropagation();
|
|
523
|
+
const $ = p.target.getBoundingClientRect();
|
|
524
524
|
k({
|
|
525
|
-
top:
|
|
526
|
-
left:
|
|
527
|
-
}),
|
|
528
|
-
},
|
|
529
|
-
const { active: C, over:
|
|
530
|
-
if (
|
|
531
|
-
const
|
|
532
|
-
if (
|
|
533
|
-
const M = [...s], [x] = M.splice(
|
|
534
|
-
M.splice(
|
|
525
|
+
top: $.top + window.scrollY,
|
|
526
|
+
left: $.left - 30
|
|
527
|
+
}), f(C);
|
|
528
|
+
}, b = (p) => {
|
|
529
|
+
const { active: C, over: $ } = p;
|
|
530
|
+
if ($ && C.id !== $.id) {
|
|
531
|
+
const y = s.findIndex((M) => M.id === C.id), w = s.findIndex((M) => M.id === $.id);
|
|
532
|
+
if (y !== -1 && w !== -1) {
|
|
533
|
+
const M = [...s], [x] = M.splice(y, 1);
|
|
534
|
+
M.splice(w, 0, x), e(M);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
}, L = (
|
|
538
|
-
const
|
|
539
|
-
|
|
537
|
+
}, L = (p, C) => {
|
|
538
|
+
const $ = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
539
|
+
m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
540
540
|
j,
|
|
541
541
|
{
|
|
542
542
|
name: "DotsSixVertical",
|
|
@@ -545,41 +545,41 @@ const Ei = (c) => {
|
|
|
545
545
|
height: 20
|
|
546
546
|
}
|
|
547
547
|
) }),
|
|
548
|
-
|
|
548
|
+
v === "select" && n && /* @__PURE__ */ t.jsx(
|
|
549
549
|
st,
|
|
550
550
|
{
|
|
551
|
-
onChange: (
|
|
552
|
-
const
|
|
551
|
+
onChange: (y) => {
|
|
552
|
+
const w = [...s], M = n.find((A) => A.name === y);
|
|
553
553
|
if (!M) return;
|
|
554
|
-
const x =
|
|
554
|
+
const x = w.map((A) => A.id === p.id ? {
|
|
555
555
|
...M,
|
|
556
556
|
name: {
|
|
557
|
-
"en-US":
|
|
557
|
+
"en-US": y
|
|
558
558
|
}
|
|
559
559
|
} : A);
|
|
560
|
-
|
|
561
|
-
...
|
|
560
|
+
f({
|
|
561
|
+
...p,
|
|
562
562
|
name: {
|
|
563
|
-
"en-US":
|
|
563
|
+
"en-US": y
|
|
564
564
|
}
|
|
565
565
|
}), e([...x]);
|
|
566
566
|
},
|
|
567
|
-
value:
|
|
568
|
-
options: n.filter((
|
|
567
|
+
value: p.name,
|
|
568
|
+
options: n.filter((y) => !s.find((w) => w.name === y.name)).map((y) => y.name)
|
|
569
569
|
}
|
|
570
570
|
),
|
|
571
571
|
/* @__PURE__ */ t.jsxs("div", { className: Y.buttons, children: [
|
|
572
|
-
|
|
572
|
+
h && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
573
573
|
j,
|
|
574
574
|
{
|
|
575
575
|
name: "Sliders",
|
|
576
576
|
hoverable: !0,
|
|
577
577
|
width: 20,
|
|
578
578
|
height: 20,
|
|
579
|
-
onClick: (
|
|
579
|
+
onClick: (y) => R(y, p)
|
|
580
580
|
}
|
|
581
581
|
) }),
|
|
582
|
-
|
|
582
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: Y.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
583
583
|
j,
|
|
584
584
|
{
|
|
585
585
|
name: "Trash",
|
|
@@ -587,57 +587,57 @@ const Ei = (c) => {
|
|
|
587
587
|
width: 20,
|
|
588
588
|
height: 20,
|
|
589
589
|
fill: "#C12A2A",
|
|
590
|
-
onClick: () => e(s.filter((
|
|
590
|
+
onClick: () => e(s.filter((y) => y.id !== p.id))
|
|
591
591
|
}
|
|
592
592
|
) })
|
|
593
593
|
] })
|
|
594
594
|
] });
|
|
595
|
-
return
|
|
596
|
-
|
|
595
|
+
return m ? /* @__PURE__ */ t.jsx(
|
|
596
|
+
Qe,
|
|
597
597
|
{
|
|
598
|
-
product:
|
|
598
|
+
product: p,
|
|
599
599
|
index: C,
|
|
600
|
-
children:
|
|
600
|
+
children: $
|
|
601
601
|
},
|
|
602
|
-
|
|
602
|
+
p.id
|
|
603
603
|
) : /* @__PURE__ */ t.jsx(
|
|
604
604
|
"div",
|
|
605
605
|
{
|
|
606
606
|
className: Y.product,
|
|
607
|
-
children:
|
|
607
|
+
children: $
|
|
608
608
|
},
|
|
609
|
-
|
|
609
|
+
p.id
|
|
610
610
|
);
|
|
611
611
|
};
|
|
612
612
|
return /* @__PURE__ */ t.jsxs("div", { className: Y.productsBlock, children: [
|
|
613
|
-
(
|
|
614
|
-
|
|
613
|
+
(l || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: Y.top, children: [
|
|
614
|
+
l && /* @__PURE__ */ t.jsx("h3", { className: Y.title, children: l }),
|
|
615
615
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
616
616
|
ot,
|
|
617
617
|
{
|
|
618
618
|
current: i,
|
|
619
|
-
onChange: (
|
|
619
|
+
onChange: (p) => a == null ? void 0 : a(p)
|
|
620
620
|
}
|
|
621
621
|
)
|
|
622
622
|
] }),
|
|
623
623
|
/* @__PURE__ */ t.jsxs("div", { className: Y.products, children: [
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
624
|
+
r && /* @__PURE__ */ t.jsx("h5", { className: Y.subtitle, children: r }),
|
|
625
|
+
m ? /* @__PURE__ */ t.jsx(
|
|
626
|
+
ht,
|
|
627
627
|
{
|
|
628
628
|
sensors: z,
|
|
629
|
-
onDragEnd:
|
|
629
|
+
onDragEnd: b,
|
|
630
630
|
children: /* @__PURE__ */ t.jsx(
|
|
631
|
-
|
|
631
|
+
mt,
|
|
632
632
|
{
|
|
633
|
-
items: s.map((
|
|
633
|
+
items: s.map((p) => p.id),
|
|
634
634
|
strategy: _t,
|
|
635
|
-
children: s.map((
|
|
635
|
+
children: s.map((p, C) => L(p, C))
|
|
636
636
|
}
|
|
637
637
|
)
|
|
638
638
|
}
|
|
639
|
-
) : s.map((
|
|
640
|
-
|
|
639
|
+
) : s.map((p, C) => L(p, C)),
|
|
640
|
+
S && /* @__PURE__ */ t.jsx(
|
|
641
641
|
"div",
|
|
642
642
|
{
|
|
643
643
|
style: {
|
|
@@ -649,26 +649,26 @@ const Ei = (c) => {
|
|
|
649
649
|
ct,
|
|
650
650
|
{
|
|
651
651
|
withoutHover: !0,
|
|
652
|
-
className:
|
|
652
|
+
className: V(Y.button, {
|
|
653
653
|
[Y.disabled]: !!(o && o <= s.length || s.length === (n == null ? void 0 : n.length))
|
|
654
654
|
}),
|
|
655
655
|
size: "s",
|
|
656
656
|
disabled: !!(o && o <= s.length || s.length === (n == null ? void 0 : n.length)),
|
|
657
657
|
onClick: () => {
|
|
658
|
-
const
|
|
658
|
+
const p = [...s];
|
|
659
659
|
let C = null;
|
|
660
660
|
if (n) {
|
|
661
|
-
for (let
|
|
662
|
-
if (!s.find((
|
|
663
|
-
C = n[
|
|
661
|
+
for (let $ = 0; $ < n.length; $++)
|
|
662
|
+
if (!s.find((y) => y.id === n[$].id)) {
|
|
663
|
+
C = n[$];
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
|
|
667
|
+
v === "select" && n && p.push({
|
|
668
668
|
name: C ? C.name : n[0].name,
|
|
669
669
|
id: (C == null ? void 0 : C.id) || n[0].id,
|
|
670
|
-
...
|
|
671
|
-
}), e(
|
|
670
|
+
...u
|
|
671
|
+
}), e(p);
|
|
672
672
|
},
|
|
673
673
|
style: {
|
|
674
674
|
width: "fit-content"
|
|
@@ -691,98 +691,98 @@ const Ei = (c) => {
|
|
|
691
691
|
] })
|
|
692
692
|
] });
|
|
693
693
|
};
|
|
694
|
-
function
|
|
695
|
-
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef:
|
|
694
|
+
function Je(c) {
|
|
695
|
+
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef: l, transform: r, transition: h, isDragging: m } = gt({
|
|
696
696
|
id: i.id
|
|
697
|
-
}),
|
|
698
|
-
transform: ft.Transform.toString(
|
|
699
|
-
transition:
|
|
697
|
+
}), _ = {
|
|
698
|
+
transform: ft.Transform.toString(r),
|
|
699
|
+
transition: h
|
|
700
700
|
};
|
|
701
701
|
return /* @__PURE__ */ t.jsx(
|
|
702
702
|
"div",
|
|
703
703
|
{
|
|
704
|
-
ref:
|
|
705
|
-
style:
|
|
706
|
-
className: `${H.product} ${
|
|
704
|
+
ref: l,
|
|
705
|
+
style: _,
|
|
706
|
+
className: `${H.product} ${m ? H.dragging : ""}`,
|
|
707
707
|
...s,
|
|
708
708
|
...e,
|
|
709
709
|
children: a
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
|
-
const
|
|
713
|
+
const Fi = (c) => {
|
|
714
714
|
const {
|
|
715
715
|
isActiveItems: i,
|
|
716
716
|
setIsActiveItems: a,
|
|
717
717
|
items: s,
|
|
718
718
|
setItems: e,
|
|
719
|
-
other:
|
|
720
|
-
title:
|
|
721
|
-
subtitle:
|
|
722
|
-
editable:
|
|
723
|
-
draggable:
|
|
724
|
-
deletable:
|
|
725
|
-
addable:
|
|
719
|
+
other: l,
|
|
720
|
+
title: r,
|
|
721
|
+
subtitle: h,
|
|
722
|
+
editable: m = !0,
|
|
723
|
+
draggable: _ = !1,
|
|
724
|
+
deletable: S = !0,
|
|
725
|
+
addable: v = !0,
|
|
726
726
|
itemsType: n,
|
|
727
|
-
itemsPlaceholder:
|
|
727
|
+
itemsPlaceholder: u = "",
|
|
728
728
|
itemsOptions: o,
|
|
729
729
|
hasRangeSelector: T = !1,
|
|
730
|
-
rangeSelectorOptions:
|
|
730
|
+
rangeSelectorOptions: f,
|
|
731
731
|
modalOptions: I,
|
|
732
732
|
addableOptions: k = {},
|
|
733
733
|
limit: O
|
|
734
|
-
} = c, [z, R] =
|
|
734
|
+
} = c, [z, R] = g.useState(null), [b, L] = g.useState({
|
|
735
735
|
top: 0,
|
|
736
736
|
left: 0
|
|
737
|
-
}), [
|
|
738
|
-
ut(
|
|
737
|
+
}), [p, C] = g.useState(null), $ = g.useRef(null), [y, w] = g.useState(!1), M = dt(
|
|
738
|
+
ut(pt, {
|
|
739
739
|
activationConstraint: {
|
|
740
740
|
distance: 5
|
|
741
741
|
}
|
|
742
742
|
})
|
|
743
743
|
);
|
|
744
|
-
|
|
745
|
-
const
|
|
746
|
-
R(null),
|
|
744
|
+
g.useEffect(() => {
|
|
745
|
+
const d = () => {
|
|
746
|
+
R(null), w(!1);
|
|
747
747
|
};
|
|
748
|
-
return document.body.addEventListener("click",
|
|
749
|
-
R(null),
|
|
748
|
+
return document.body.addEventListener("click", d), R(null), w(!1), () => {
|
|
749
|
+
R(null), w(!1), document.body.removeEventListener("click", d);
|
|
750
750
|
};
|
|
751
|
-
}, []),
|
|
751
|
+
}, []), g.useEffect(() => {
|
|
752
752
|
if (z) {
|
|
753
|
-
const
|
|
754
|
-
e(
|
|
753
|
+
const d = [...s].map((B) => B.id === z.id ? z : B);
|
|
754
|
+
e(d);
|
|
755
755
|
}
|
|
756
|
-
}, [z]),
|
|
757
|
-
if (
|
|
758
|
-
const
|
|
759
|
-
let N =
|
|
760
|
-
N +
|
|
756
|
+
}, [z]), g.useEffect(() => {
|
|
757
|
+
if ($.current && p) {
|
|
758
|
+
const d = $.current.getBoundingClientRect().height, B = window.innerHeight;
|
|
759
|
+
let N = p.top;
|
|
760
|
+
N + d > B + window.scrollY - 200 && (N = B + window.scrollY - d - 200), N < 0 && (N = 10), L({
|
|
761
761
|
top: N,
|
|
762
|
-
left:
|
|
762
|
+
left: p.left
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
|
-
}, [
|
|
766
|
-
const x = (
|
|
767
|
-
|
|
768
|
-
const N =
|
|
765
|
+
}, [$.current, p]);
|
|
766
|
+
const x = (d, B) => {
|
|
767
|
+
d.stopPropagation();
|
|
768
|
+
const N = d.target.getBoundingClientRect();
|
|
769
769
|
C({
|
|
770
770
|
top: N.top + window.scrollY,
|
|
771
771
|
left: N.left - 30
|
|
772
|
-
}), R(
|
|
773
|
-
}, A = (
|
|
774
|
-
const { active:
|
|
775
|
-
if (N &&
|
|
776
|
-
const E = s.findIndex((D) => D.id ===
|
|
772
|
+
}), R(B), w(!0);
|
|
773
|
+
}, A = (d) => {
|
|
774
|
+
const { active: B, over: N } = d;
|
|
775
|
+
if (N && B.id !== N.id) {
|
|
776
|
+
const E = s.findIndex((D) => D.id === B.id), K = s.findIndex((D) => D.id === N.id);
|
|
777
777
|
if (E !== -1 && K !== -1) {
|
|
778
778
|
const D = [...s], [J] = D.splice(E, 1);
|
|
779
779
|
D.splice(K, 0, J), e(D);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
},
|
|
782
|
+
}, U = (d) => {
|
|
783
783
|
var N;
|
|
784
|
-
const
|
|
785
|
-
|
|
784
|
+
const B = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
785
|
+
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
786
786
|
j,
|
|
787
787
|
{
|
|
788
788
|
name: "DotsSixVertical",
|
|
@@ -795,20 +795,20 @@ const Ri = (c) => {
|
|
|
795
795
|
st,
|
|
796
796
|
{
|
|
797
797
|
onChange: (E) => {
|
|
798
|
-
const D = [...s].map((J) => J.id ===
|
|
799
|
-
...
|
|
798
|
+
const D = [...s].map((J) => J.id === d.id ? {
|
|
799
|
+
...d,
|
|
800
800
|
name: {
|
|
801
801
|
"en-US": E
|
|
802
802
|
}
|
|
803
803
|
} : J);
|
|
804
804
|
R({
|
|
805
|
-
...
|
|
805
|
+
...d,
|
|
806
806
|
name: {
|
|
807
807
|
"en-US": E
|
|
808
808
|
}
|
|
809
809
|
}), e([...D]);
|
|
810
810
|
},
|
|
811
|
-
value:
|
|
811
|
+
value: d.name["en-US"],
|
|
812
812
|
options: o.filter(
|
|
813
813
|
(E) => !s.find((K) => K.name["en-US"] === E)
|
|
814
814
|
)
|
|
@@ -818,43 +818,43 @@ const Ri = (c) => {
|
|
|
818
818
|
bt,
|
|
819
819
|
{
|
|
820
820
|
onChange: (E) => {
|
|
821
|
-
const D = [...s].map((J) => J.id ===
|
|
822
|
-
...
|
|
821
|
+
const D = [...s].map((J) => J.id === d.id ? {
|
|
822
|
+
...d,
|
|
823
823
|
name: {
|
|
824
824
|
"en-US": E
|
|
825
825
|
}
|
|
826
826
|
} : J);
|
|
827
827
|
e([...D]);
|
|
828
828
|
},
|
|
829
|
-
value:
|
|
830
|
-
placeholder:
|
|
829
|
+
value: d.name["en-US"],
|
|
830
|
+
placeholder: u
|
|
831
831
|
}
|
|
832
832
|
),
|
|
833
833
|
n === "image" && /* @__PURE__ */ t.jsx(
|
|
834
834
|
Tt,
|
|
835
835
|
{
|
|
836
836
|
onChange: (E) => {
|
|
837
|
-
const D = [...s].map((J) => J.id ===
|
|
838
|
-
...
|
|
837
|
+
const D = [...s].map((J) => J.id === d.id ? {
|
|
838
|
+
...d,
|
|
839
839
|
images: E
|
|
840
840
|
} : J);
|
|
841
841
|
e([...D]);
|
|
842
842
|
},
|
|
843
|
-
activeImage: (N = s.find((E) => E.id ===
|
|
843
|
+
activeImage: (N = s.find((E) => E.id === d.id)) == null ? void 0 : N.images[0]
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
846
|
/* @__PURE__ */ t.jsxs("div", { className: H.buttons, children: [
|
|
847
|
-
|
|
847
|
+
m && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
848
848
|
j,
|
|
849
849
|
{
|
|
850
850
|
name: "Sliders",
|
|
851
851
|
hoverable: !0,
|
|
852
852
|
width: 20,
|
|
853
853
|
height: 20,
|
|
854
|
-
onClick: (E) => x(E,
|
|
854
|
+
onClick: (E) => x(E, d)
|
|
855
855
|
}
|
|
856
856
|
) }),
|
|
857
|
-
|
|
857
|
+
S && /* @__PURE__ */ t.jsx("div", { className: H.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
858
858
|
j,
|
|
859
859
|
{
|
|
860
860
|
name: "Trash",
|
|
@@ -862,68 +862,68 @@ const Ri = (c) => {
|
|
|
862
862
|
width: 20,
|
|
863
863
|
height: 20,
|
|
864
864
|
fill: "#C12A2A",
|
|
865
|
-
onClick: () => e(s.filter((E) => E.id !==
|
|
865
|
+
onClick: () => e(s.filter((E) => E.id !== d.id))
|
|
866
866
|
}
|
|
867
867
|
) })
|
|
868
868
|
] })
|
|
869
869
|
] });
|
|
870
|
-
return
|
|
871
|
-
|
|
870
|
+
return _ ? /* @__PURE__ */ t.jsx(
|
|
871
|
+
Je,
|
|
872
872
|
{
|
|
873
|
-
product:
|
|
874
|
-
children:
|
|
873
|
+
product: d,
|
|
874
|
+
children: B
|
|
875
875
|
},
|
|
876
|
-
|
|
876
|
+
d.id
|
|
877
877
|
) : /* @__PURE__ */ t.jsx(
|
|
878
878
|
"div",
|
|
879
879
|
{
|
|
880
880
|
className: H.product,
|
|
881
|
-
children:
|
|
881
|
+
children: B
|
|
882
882
|
},
|
|
883
|
-
|
|
883
|
+
d.id
|
|
884
884
|
);
|
|
885
885
|
};
|
|
886
886
|
return /* @__PURE__ */ t.jsxs("div", { className: H.productsBlock, children: [
|
|
887
|
-
(
|
|
888
|
-
|
|
887
|
+
(r || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: H.top, children: [
|
|
888
|
+
r && /* @__PURE__ */ t.jsx("h3", { className: H.title, children: r }),
|
|
889
889
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
890
890
|
ot,
|
|
891
891
|
{
|
|
892
892
|
current: i,
|
|
893
|
-
onChange: (
|
|
893
|
+
onChange: (d) => a == null ? void 0 : a(d)
|
|
894
894
|
}
|
|
895
895
|
)
|
|
896
896
|
] }),
|
|
897
|
-
z &&
|
|
898
|
-
|
|
897
|
+
z && m && I && y && /* @__PURE__ */ t.jsx(
|
|
898
|
+
Bt,
|
|
899
899
|
{
|
|
900
|
-
ref:
|
|
900
|
+
ref: $,
|
|
901
901
|
activeItem: z,
|
|
902
902
|
setActiveItem: R,
|
|
903
|
-
popupPosition:
|
|
903
|
+
popupPosition: b,
|
|
904
904
|
modalOptions: I,
|
|
905
|
-
setIsOpenModal:
|
|
905
|
+
setIsOpenModal: w
|
|
906
906
|
}
|
|
907
907
|
),
|
|
908
|
-
T &&
|
|
908
|
+
T && f && /* @__PURE__ */ t.jsx(kt, { ...f }),
|
|
909
909
|
/* @__PURE__ */ t.jsxs("div", { className: H.products, children: [
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
910
|
+
h && /* @__PURE__ */ t.jsx("h5", { className: H.subtitle, children: h }),
|
|
911
|
+
_ ? /* @__PURE__ */ t.jsx(
|
|
912
|
+
ht,
|
|
913
913
|
{
|
|
914
914
|
sensors: M,
|
|
915
915
|
onDragEnd: A,
|
|
916
916
|
children: /* @__PURE__ */ t.jsx(
|
|
917
|
-
|
|
917
|
+
mt,
|
|
918
918
|
{
|
|
919
|
-
items: s.map((
|
|
919
|
+
items: s.map((d) => d.id),
|
|
920
920
|
strategy: _t,
|
|
921
|
-
children: s.map((
|
|
921
|
+
children: s.map((d) => U(d))
|
|
922
922
|
}
|
|
923
923
|
)
|
|
924
924
|
}
|
|
925
|
-
) : s.map((
|
|
926
|
-
|
|
925
|
+
) : s.map((d) => U(d)),
|
|
926
|
+
v && /* @__PURE__ */ t.jsx(
|
|
927
927
|
"div",
|
|
928
928
|
{
|
|
929
929
|
style: {
|
|
@@ -935,44 +935,44 @@ const Ri = (c) => {
|
|
|
935
935
|
ct,
|
|
936
936
|
{
|
|
937
937
|
withoutHover: !0,
|
|
938
|
-
className:
|
|
938
|
+
className: V(H.button, {
|
|
939
939
|
[H.disabled]: !!(O && O <= s.length)
|
|
940
940
|
}),
|
|
941
941
|
size: "s",
|
|
942
942
|
disabled: !!(O && O <= s.length),
|
|
943
943
|
onClick: () => {
|
|
944
|
-
const
|
|
945
|
-
let
|
|
944
|
+
const d = [...s];
|
|
945
|
+
let B = null;
|
|
946
946
|
if (o) {
|
|
947
947
|
for (let N = 0; N < o.length; N++)
|
|
948
948
|
if (!s.find((E) => E.name["en-US"] === o[N])) {
|
|
949
|
-
|
|
949
|
+
B = o[N];
|
|
950
950
|
break;
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
n === "select" && o ?
|
|
953
|
+
n === "select" && o ? d.push({
|
|
954
954
|
name: {
|
|
955
|
-
"en-US":
|
|
955
|
+
"en-US": B || o[0]
|
|
956
956
|
},
|
|
957
957
|
id: et(),
|
|
958
958
|
...k,
|
|
959
959
|
maxSymbols: 100
|
|
960
960
|
// пример значения
|
|
961
|
-
}) : n === "input" ?
|
|
961
|
+
}) : n === "input" ? d.push({
|
|
962
962
|
name: {
|
|
963
963
|
"en-US": ""
|
|
964
964
|
},
|
|
965
965
|
id: et(),
|
|
966
966
|
...k,
|
|
967
967
|
maxSymbols: 100
|
|
968
|
-
}) :
|
|
968
|
+
}) : d.push({
|
|
969
969
|
name: {
|
|
970
970
|
"en-US": `Image ${s.length + 1}`
|
|
971
971
|
},
|
|
972
972
|
id: et(),
|
|
973
973
|
...k,
|
|
974
974
|
maxSymbols: 100
|
|
975
|
-
}), e(
|
|
975
|
+
}), e(d);
|
|
976
976
|
},
|
|
977
977
|
style: {
|
|
978
978
|
width: "fit-content"
|
|
@@ -993,67 +993,67 @@ const Ri = (c) => {
|
|
|
993
993
|
}
|
|
994
994
|
)
|
|
995
995
|
] }),
|
|
996
|
-
|
|
996
|
+
l !== void 0 && /* @__PURE__ */ t.jsx(
|
|
997
997
|
lt,
|
|
998
998
|
{
|
|
999
999
|
otherTitle: "Other",
|
|
1000
|
-
items:
|
|
1000
|
+
items: l
|
|
1001
1001
|
}
|
|
1002
1002
|
)
|
|
1003
1003
|
] });
|
|
1004
|
-
},
|
|
1005
|
-
subtitle:
|
|
1006
|
-
header:
|
|
1007
|
-
text:
|
|
1008
|
-
productsBlock:
|
|
1009
|
-
buttonsBlock:
|
|
1010
|
-
top:
|
|
1011
|
-
itemsBlock:
|
|
1012
|
-
typeTexts:
|
|
1013
|
-
block:
|
|
1014
|
-
active:
|
|
1015
|
-
products:
|
|
1016
|
-
product:
|
|
1017
|
-
button:
|
|
1018
|
-
image:
|
|
1019
|
-
info:
|
|
1020
|
-
name:
|
|
1021
|
-
buttons:
|
|
1022
|
-
modal:
|
|
1023
|
-
other:
|
|
1024
|
-
options:
|
|
1025
|
-
addButton:
|
|
1026
|
-
deleteButton:
|
|
1027
|
-
},
|
|
1028
|
-
const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink:
|
|
1004
|
+
}, Ke = "_subtitle_jql1y_1", Ze = "_header_jql1y_8", ts = "_text_jql1y_9", es = "_productsBlock_jql1y_10", ss = "_buttonsBlock_jql1y_11", ns = "_top_jql1y_23", is = "_itemsBlock_jql1y_32", as = "_typeTexts_jql1y_38", os = "_block_jql1y_45", cs = "_active_jql1y_58", rs = "_products_jql1y_10", ls = "_product_jql1y_10", ds = "_button_jql1y_11", us = "_image_jql1y_88", ps = "_info_jql1y_95", hs = "_name_jql1y_107", ms = "_buttons_jql1y_11", _s = "_modal_jql1y_118", gs = "_other_jql1y_138", fs = "_options_jql1y_144", xs = "_addButton_jql1y_150", js = "_deleteButton_jql1y_165", Z = {
|
|
1005
|
+
subtitle: Ke,
|
|
1006
|
+
header: Ze,
|
|
1007
|
+
text: ts,
|
|
1008
|
+
productsBlock: es,
|
|
1009
|
+
buttonsBlock: ss,
|
|
1010
|
+
top: ns,
|
|
1011
|
+
itemsBlock: is,
|
|
1012
|
+
typeTexts: as,
|
|
1013
|
+
block: os,
|
|
1014
|
+
active: cs,
|
|
1015
|
+
products: rs,
|
|
1016
|
+
product: ls,
|
|
1017
|
+
button: ds,
|
|
1018
|
+
image: us,
|
|
1019
|
+
info: ps,
|
|
1020
|
+
name: hs,
|
|
1021
|
+
buttons: ms,
|
|
1022
|
+
modal: _s,
|
|
1023
|
+
other: gs,
|
|
1024
|
+
options: fs,
|
|
1025
|
+
addButton: xs,
|
|
1026
|
+
deleteButton: js
|
|
1027
|
+
}, vs = (c) => {
|
|
1028
|
+
const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink: l = !0 } = c, { pages: r } = it(), [h, m] = g.useState(null), [_, S] = g.useState({
|
|
1029
1029
|
top: 0,
|
|
1030
1030
|
left: 0
|
|
1031
|
-
}), [
|
|
1032
|
-
|
|
1033
|
-
if (
|
|
1034
|
-
const
|
|
1035
|
-
a(
|
|
1031
|
+
}), [v, n] = g.useState(null), u = g.useRef(null);
|
|
1032
|
+
g.useEffect(() => {
|
|
1033
|
+
if (h) {
|
|
1034
|
+
const f = [...i].map((I) => I.id === h.id ? h : I);
|
|
1035
|
+
a(f);
|
|
1036
1036
|
}
|
|
1037
|
-
}, [
|
|
1038
|
-
if (
|
|
1039
|
-
const
|
|
1040
|
-
let k =
|
|
1041
|
-
k +
|
|
1037
|
+
}, [h]), g.useEffect(() => {
|
|
1038
|
+
if (u.current && v) {
|
|
1039
|
+
const f = u.current.getBoundingClientRect().height, I = window.innerHeight;
|
|
1040
|
+
let k = v.top;
|
|
1041
|
+
k + f > I + window.scrollY - 200 && (k = I + window.scrollY - f - 200), k < 0 && (k = 10), S({
|
|
1042
1042
|
top: k,
|
|
1043
|
-
left:
|
|
1043
|
+
left: v.left
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
|
-
}, [
|
|
1047
|
-
const o = (
|
|
1048
|
-
|
|
1049
|
-
const k =
|
|
1046
|
+
}, [u.current, v]);
|
|
1047
|
+
const o = (f, I) => {
|
|
1048
|
+
f.stopPropagation();
|
|
1049
|
+
const k = f.target.getBoundingClientRect();
|
|
1050
1050
|
n({
|
|
1051
1051
|
top: k.top + window.scrollY - 70,
|
|
1052
1052
|
left: k.left - (e ? 30 : 65)
|
|
1053
|
-
}),
|
|
1054
|
-
}, T = (
|
|
1053
|
+
}), m(I);
|
|
1054
|
+
}, T = (f, I) => {
|
|
1055
1055
|
const k = [...i], O = {
|
|
1056
|
-
...
|
|
1056
|
+
...f,
|
|
1057
1057
|
id: Math.random().toString(36).substr(2, 9)
|
|
1058
1058
|
// Генерируем новый уникальный ID
|
|
1059
1059
|
};
|
|
@@ -1061,7 +1061,7 @@ const Ri = (c) => {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
return /* @__PURE__ */ t.jsxs("div", { className: Z.products, children: [
|
|
1063
1063
|
/* @__PURE__ */ t.jsx("h5", { className: Z.subtitle, children: "Button Type" }),
|
|
1064
|
-
i.map((
|
|
1064
|
+
i.map((f, I) => /* @__PURE__ */ t.jsxs(
|
|
1065
1065
|
"div",
|
|
1066
1066
|
{
|
|
1067
1067
|
className: Z.product,
|
|
@@ -1070,13 +1070,13 @@ const Ri = (c) => {
|
|
|
1070
1070
|
st,
|
|
1071
1071
|
{
|
|
1072
1072
|
onChange: (k) => {
|
|
1073
|
-
const z = [...i].map((R) => R.id ===
|
|
1074
|
-
...
|
|
1073
|
+
const z = [...i].map((R) => R.id === f.id ? {
|
|
1074
|
+
...f,
|
|
1075
1075
|
type: k
|
|
1076
1076
|
} : R);
|
|
1077
1077
|
a(z);
|
|
1078
1078
|
},
|
|
1079
|
-
value:
|
|
1079
|
+
value: f.type,
|
|
1080
1080
|
options: ["Primary", "Secondary", "Tertiary"]
|
|
1081
1081
|
}
|
|
1082
1082
|
),
|
|
@@ -1089,7 +1089,7 @@ const Ri = (c) => {
|
|
|
1089
1089
|
width: 20,
|
|
1090
1090
|
height: 20,
|
|
1091
1091
|
onClick: () => {
|
|
1092
|
-
T(
|
|
1092
|
+
T(f, I);
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
) }),
|
|
@@ -1101,7 +1101,7 @@ const Ri = (c) => {
|
|
|
1101
1101
|
width: 20,
|
|
1102
1102
|
height: 20,
|
|
1103
1103
|
onClick: (k) => {
|
|
1104
|
-
o(k,
|
|
1104
|
+
o(k, f);
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
1107
|
) }),
|
|
@@ -1111,7 +1111,7 @@ const Ri = (c) => {
|
|
|
1111
1111
|
name: "Trash",
|
|
1112
1112
|
hoverable: !0,
|
|
1113
1113
|
onClick: () => {
|
|
1114
|
-
const k = i.filter((O) => O.id !==
|
|
1114
|
+
const k = i.filter((O) => O.id !== f.id);
|
|
1115
1115
|
a(k);
|
|
1116
1116
|
},
|
|
1117
1117
|
width: 20,
|
|
@@ -1122,16 +1122,16 @@ const Ri = (c) => {
|
|
|
1122
1122
|
] })
|
|
1123
1123
|
]
|
|
1124
1124
|
},
|
|
1125
|
-
|
|
1125
|
+
f.id
|
|
1126
1126
|
)),
|
|
1127
|
-
|
|
1127
|
+
h && /* @__PURE__ */ t.jsx(
|
|
1128
1128
|
Mt,
|
|
1129
1129
|
{
|
|
1130
|
-
ref:
|
|
1131
|
-
activeButton:
|
|
1132
|
-
setActiveButton:
|
|
1133
|
-
popupPosition:
|
|
1134
|
-
editableLink:
|
|
1130
|
+
ref: u,
|
|
1131
|
+
activeButton: h,
|
|
1132
|
+
setActiveButton: m,
|
|
1133
|
+
popupPosition: _,
|
|
1134
|
+
editableLink: l
|
|
1135
1135
|
}
|
|
1136
1136
|
),
|
|
1137
1137
|
e && /* @__PURE__ */ t.jsx(
|
|
@@ -1149,8 +1149,8 @@ const Ri = (c) => {
|
|
|
1149
1149
|
className: Z.button,
|
|
1150
1150
|
size: "s",
|
|
1151
1151
|
onClick: () => {
|
|
1152
|
-
const
|
|
1153
|
-
|
|
1152
|
+
const f = [...i];
|
|
1153
|
+
l ? f.push({
|
|
1154
1154
|
type: "Primary",
|
|
1155
1155
|
id: et(),
|
|
1156
1156
|
typesText: [],
|
|
@@ -1158,9 +1158,9 @@ const Ri = (c) => {
|
|
|
1158
1158
|
"en-US": "Button Name"
|
|
1159
1159
|
},
|
|
1160
1160
|
destination: "Go to Page",
|
|
1161
|
-
page:
|
|
1161
|
+
page: r ? Object.values(r)[0].path : "/",
|
|
1162
1162
|
openInNewTab: !1
|
|
1163
|
-
}) :
|
|
1163
|
+
}) : f.push({
|
|
1164
1164
|
type: "Primary",
|
|
1165
1165
|
id: et(),
|
|
1166
1166
|
typesText: [],
|
|
@@ -1168,9 +1168,9 @@ const Ri = (c) => {
|
|
|
1168
1168
|
"en-US": "Create Ticket"
|
|
1169
1169
|
},
|
|
1170
1170
|
destination: "Go to Page",
|
|
1171
|
-
page:
|
|
1171
|
+
page: r ? Object.values(r)[0].path : "/",
|
|
1172
1172
|
openInNewTab: !1
|
|
1173
|
-
}), a(
|
|
1173
|
+
}), a(f);
|
|
1174
1174
|
},
|
|
1175
1175
|
style: {
|
|
1176
1176
|
width: "fit-content"
|
|
@@ -1191,15 +1191,15 @@ const Ri = (c) => {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
)
|
|
1193
1193
|
] });
|
|
1194
|
-
},
|
|
1194
|
+
}, Ui = (c) => {
|
|
1195
1195
|
const {
|
|
1196
1196
|
isActiveButtons: i,
|
|
1197
1197
|
setIsActiveButtons: a,
|
|
1198
1198
|
buttons: s,
|
|
1199
1199
|
setButtons: e,
|
|
1200
|
-
editableLink:
|
|
1201
|
-
addable:
|
|
1202
|
-
deletable:
|
|
1200
|
+
editableLink: l = !0,
|
|
1201
|
+
addable: r = !0,
|
|
1202
|
+
deletable: h = !0
|
|
1203
1203
|
} = c;
|
|
1204
1204
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: jt.buttonsBlock, children: [
|
|
1205
1205
|
/* @__PURE__ */ t.jsxs("div", { className: jt.top, children: [
|
|
@@ -1208,80 +1208,80 @@ const Ri = (c) => {
|
|
|
1208
1208
|
ot,
|
|
1209
1209
|
{
|
|
1210
1210
|
current: i,
|
|
1211
|
-
onChange: (
|
|
1211
|
+
onChange: (m) => a(m)
|
|
1212
1212
|
}
|
|
1213
1213
|
)
|
|
1214
1214
|
] }),
|
|
1215
1215
|
i && /* @__PURE__ */ t.jsx(
|
|
1216
|
-
|
|
1216
|
+
vs,
|
|
1217
1217
|
{
|
|
1218
1218
|
buttons: s,
|
|
1219
1219
|
setButtons: e,
|
|
1220
|
-
editableLink:
|
|
1221
|
-
addable:
|
|
1222
|
-
deletable:
|
|
1220
|
+
editableLink: l,
|
|
1221
|
+
addable: r,
|
|
1222
|
+
deletable: h
|
|
1223
1223
|
}
|
|
1224
1224
|
)
|
|
1225
1225
|
] }) });
|
|
1226
1226
|
};
|
|
1227
|
-
function
|
|
1228
|
-
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef:
|
|
1227
|
+
function bs(c) {
|
|
1228
|
+
const { product: i, children: a } = c, { attributes: s, listeners: e, setNodeRef: l, transform: r, transition: h, isDragging: m } = gt({
|
|
1229
1229
|
id: String(i.listingId)
|
|
1230
|
-
}),
|
|
1231
|
-
transform: ft.Transform.toString(
|
|
1232
|
-
transition:
|
|
1230
|
+
}), _ = {
|
|
1231
|
+
transform: ft.Transform.toString(r),
|
|
1232
|
+
transition: h
|
|
1233
1233
|
};
|
|
1234
1234
|
return /* @__PURE__ */ t.jsx(
|
|
1235
1235
|
"div",
|
|
1236
1236
|
{
|
|
1237
|
-
ref:
|
|
1238
|
-
style:
|
|
1239
|
-
className: `${
|
|
1237
|
+
ref: l,
|
|
1238
|
+
style: _,
|
|
1239
|
+
className: `${X.product} ${m ? X.dragging : ""}`,
|
|
1240
1240
|
...s,
|
|
1241
1241
|
...e,
|
|
1242
1242
|
children: a
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
1245
|
}
|
|
1246
|
-
const
|
|
1246
|
+
const Vi = (c) => {
|
|
1247
1247
|
const {
|
|
1248
1248
|
isActiveItems: i,
|
|
1249
1249
|
setIsActiveItems: a,
|
|
1250
1250
|
items: s,
|
|
1251
1251
|
setItems: e,
|
|
1252
|
-
other:
|
|
1253
|
-
title:
|
|
1254
|
-
subtitle:
|
|
1255
|
-
editable:
|
|
1256
|
-
draggable:
|
|
1257
|
-
withImage:
|
|
1258
|
-
deletable:
|
|
1252
|
+
other: l,
|
|
1253
|
+
title: r,
|
|
1254
|
+
subtitle: h,
|
|
1255
|
+
editable: m = !0,
|
|
1256
|
+
draggable: _ = !1,
|
|
1257
|
+
withImage: S = !1,
|
|
1258
|
+
deletable: v = !0,
|
|
1259
1259
|
addable: n = !0,
|
|
1260
|
-
itemsType:
|
|
1260
|
+
itemsType: u,
|
|
1261
1261
|
itemsOptions: o,
|
|
1262
1262
|
limit: T,
|
|
1263
|
-
aspectRatio:
|
|
1263
|
+
aspectRatio: f,
|
|
1264
1264
|
setAspectRatio: I
|
|
1265
|
-
} = c, [k, O] =
|
|
1265
|
+
} = c, [k, O] = g.useState(
|
|
1266
1266
|
null
|
|
1267
|
-
), [z, R] =
|
|
1267
|
+
), [z, R] = g.useState({
|
|
1268
1268
|
top: 0,
|
|
1269
1269
|
left: 0
|
|
1270
|
-
}), [
|
|
1271
|
-
ut(
|
|
1270
|
+
}), [b, L] = g.useState(!1), p = dt(
|
|
1271
|
+
ut(pt, {
|
|
1272
1272
|
activationConstraint: {
|
|
1273
1273
|
distance: 5
|
|
1274
1274
|
}
|
|
1275
1275
|
})
|
|
1276
1276
|
);
|
|
1277
|
-
|
|
1277
|
+
g.useEffect(() => {
|
|
1278
1278
|
const x = () => {
|
|
1279
1279
|
O(null), L(!1);
|
|
1280
1280
|
};
|
|
1281
1281
|
return document.body.addEventListener("click", x), O(null), L(!1), () => {
|
|
1282
1282
|
O(null), L(!1), document.body.removeEventListener("click", x);
|
|
1283
1283
|
};
|
|
1284
|
-
}, []),
|
|
1284
|
+
}, []), g.useEffect(() => {
|
|
1285
1285
|
if (k) {
|
|
1286
1286
|
const x = [...s].map((A) => A.listingId === k.listingId ? k : A);
|
|
1287
1287
|
e(x);
|
|
@@ -1289,15 +1289,15 @@ const zi = (c) => {
|
|
|
1289
1289
|
}, [k]);
|
|
1290
1290
|
const C = (x, A) => {
|
|
1291
1291
|
x.stopPropagation();
|
|
1292
|
-
const
|
|
1293
|
-
let N =
|
|
1294
|
-
N +
|
|
1292
|
+
const U = x.target.getBoundingClientRect(), d = 100, B = window.innerHeight;
|
|
1293
|
+
let N = U.top + window.scrollY;
|
|
1294
|
+
N + d > B && (N = B - d - 20), L(!0), R({
|
|
1295
1295
|
top: N - 80,
|
|
1296
|
-
left:
|
|
1296
|
+
left: U.left - 30
|
|
1297
1297
|
}), O(A);
|
|
1298
1298
|
};
|
|
1299
|
-
function
|
|
1300
|
-
if (
|
|
1299
|
+
function $(x) {
|
|
1300
|
+
if (S)
|
|
1301
1301
|
return x ? /* @__PURE__ */ t.jsx(
|
|
1302
1302
|
"img",
|
|
1303
1303
|
{
|
|
@@ -1316,20 +1316,20 @@ const zi = (c) => {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
|
-
const
|
|
1320
|
-
const { active: A, over:
|
|
1321
|
-
if (
|
|
1322
|
-
const
|
|
1323
|
-
if (
|
|
1324
|
-
const N = [...s], [E] = N.splice(
|
|
1325
|
-
N.splice(
|
|
1319
|
+
const y = (x) => {
|
|
1320
|
+
const { active: A, over: U } = x;
|
|
1321
|
+
if (U && A.id !== U.id) {
|
|
1322
|
+
const d = s.findIndex((N) => String(N.listingId) === A.id), B = s.findIndex((N) => String(N.listingId) === U.id);
|
|
1323
|
+
if (d !== -1 && B !== -1) {
|
|
1324
|
+
const N = [...s], [E] = N.splice(d, 1);
|
|
1325
|
+
N.splice(B, 0, E), e(N);
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
},
|
|
1329
|
-
const A = o.find((
|
|
1328
|
+
}, w = (x) => {
|
|
1329
|
+
const A = o.find((d) => x.listingId === d.id);
|
|
1330
1330
|
if (!A) return null;
|
|
1331
|
-
const
|
|
1332
|
-
|
|
1331
|
+
const U = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1332
|
+
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1333
1333
|
j,
|
|
1334
1334
|
{
|
|
1335
1335
|
name: "DotsSixVertical",
|
|
@@ -1338,43 +1338,43 @@ const zi = (c) => {
|
|
|
1338
1338
|
height: 20
|
|
1339
1339
|
}
|
|
1340
1340
|
) }),
|
|
1341
|
-
|
|
1341
|
+
u === "select" && /* @__PURE__ */ t.jsx(
|
|
1342
1342
|
st,
|
|
1343
1343
|
{
|
|
1344
|
-
onChange: (
|
|
1345
|
-
const
|
|
1344
|
+
onChange: (d) => {
|
|
1345
|
+
const B = [...s], N = o.find((D) => D.productData.name === d);
|
|
1346
1346
|
if (!N) return;
|
|
1347
1347
|
const E = {
|
|
1348
1348
|
listingId: N.id,
|
|
1349
1349
|
image: N.productData.images.length > 0 ? N.productData.images[0].cfId : ""
|
|
1350
|
-
}, K =
|
|
1350
|
+
}, K = B.map((D) => D.listingId === x.listingId ? E : D);
|
|
1351
1351
|
O(E), e([...K]);
|
|
1352
1352
|
},
|
|
1353
1353
|
value: A.productData.name,
|
|
1354
1354
|
options: [
|
|
1355
|
-
...o.filter((
|
|
1355
|
+
...o.filter((d) => !s.find((B) => B.listingId === d.id)).map((d) => d.productData.name)
|
|
1356
1356
|
],
|
|
1357
|
-
leftAddonOptions: o.map((
|
|
1358
|
-
var
|
|
1357
|
+
leftAddonOptions: o.map((d) => {
|
|
1358
|
+
var B;
|
|
1359
1359
|
return {
|
|
1360
|
-
value:
|
|
1361
|
-
addon:
|
|
1360
|
+
value: d.productData.name,
|
|
1361
|
+
addon: $(((B = d.productData.images[0]) == null ? void 0 : B.cfId) || "")
|
|
1362
1362
|
};
|
|
1363
1363
|
})
|
|
1364
1364
|
}
|
|
1365
1365
|
),
|
|
1366
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1367
|
-
|
|
1366
|
+
/* @__PURE__ */ t.jsxs("div", { className: X.buttons, children: [
|
|
1367
|
+
m && /* @__PURE__ */ t.jsx("div", { className: X.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1368
1368
|
j,
|
|
1369
1369
|
{
|
|
1370
1370
|
name: "Sliders",
|
|
1371
1371
|
hoverable: !0,
|
|
1372
1372
|
width: 20,
|
|
1373
1373
|
height: 20,
|
|
1374
|
-
onClick: (
|
|
1374
|
+
onClick: (d) => C(d, x)
|
|
1375
1375
|
}
|
|
1376
1376
|
) }),
|
|
1377
|
-
|
|
1377
|
+
v && /* @__PURE__ */ t.jsx("div", { className: X.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1378
1378
|
j,
|
|
1379
1379
|
{
|
|
1380
1380
|
name: "Trash",
|
|
@@ -1382,30 +1382,30 @@ const zi = (c) => {
|
|
|
1382
1382
|
width: 20,
|
|
1383
1383
|
height: 20,
|
|
1384
1384
|
fill: "#C12A2A",
|
|
1385
|
-
onClick: () => e(s.filter((
|
|
1385
|
+
onClick: () => e(s.filter((d) => d !== x))
|
|
1386
1386
|
}
|
|
1387
1387
|
) })
|
|
1388
1388
|
] })
|
|
1389
1389
|
] });
|
|
1390
|
-
return
|
|
1391
|
-
|
|
1390
|
+
return _ ? /* @__PURE__ */ t.jsx(
|
|
1391
|
+
bs,
|
|
1392
1392
|
{
|
|
1393
1393
|
product: x,
|
|
1394
|
-
children:
|
|
1394
|
+
children: U
|
|
1395
1395
|
},
|
|
1396
1396
|
x.listingId
|
|
1397
1397
|
) : /* @__PURE__ */ t.jsx(
|
|
1398
1398
|
"div",
|
|
1399
1399
|
{
|
|
1400
|
-
className:
|
|
1401
|
-
children:
|
|
1400
|
+
className: X.product,
|
|
1401
|
+
children: U
|
|
1402
1402
|
},
|
|
1403
1403
|
x.listingId
|
|
1404
1404
|
);
|
|
1405
|
-
}, M =
|
|
1406
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
1407
|
-
(
|
|
1408
|
-
|
|
1405
|
+
}, M = g.useRef(null);
|
|
1406
|
+
return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
|
|
1407
|
+
(r || i !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: X.top, children: [
|
|
1408
|
+
r && /* @__PURE__ */ t.jsx("h3", { className: X.title, children: r }),
|
|
1409
1409
|
i !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1410
1410
|
ot,
|
|
1411
1411
|
{
|
|
@@ -1414,7 +1414,7 @@ const zi = (c) => {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
)
|
|
1416
1416
|
] }),
|
|
1417
|
-
|
|
1417
|
+
b && k && /* @__PURE__ */ t.jsx(
|
|
1418
1418
|
At,
|
|
1419
1419
|
{
|
|
1420
1420
|
ref: M,
|
|
@@ -1425,23 +1425,23 @@ const zi = (c) => {
|
|
|
1425
1425
|
itemsOptions: o
|
|
1426
1426
|
}
|
|
1427
1427
|
),
|
|
1428
|
-
i && /* @__PURE__ */ t.jsxs("div", { className:
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1428
|
+
i && /* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
|
|
1429
|
+
h && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: h }),
|
|
1430
|
+
_ ? /* @__PURE__ */ t.jsx(
|
|
1431
|
+
ht,
|
|
1432
1432
|
{
|
|
1433
|
-
sensors:
|
|
1434
|
-
onDragEnd:
|
|
1433
|
+
sensors: p,
|
|
1434
|
+
onDragEnd: y,
|
|
1435
1435
|
children: /* @__PURE__ */ t.jsx(
|
|
1436
|
-
|
|
1436
|
+
mt,
|
|
1437
1437
|
{
|
|
1438
1438
|
items: s.map((x) => String(x.listingId)),
|
|
1439
1439
|
strategy: _t,
|
|
1440
|
-
children: s.map((x) =>
|
|
1440
|
+
children: s.map((x) => w(x))
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
1443
1443
|
}
|
|
1444
|
-
) : s.map((x) =>
|
|
1444
|
+
) : s.map((x) => w(x)),
|
|
1445
1445
|
n && /* @__PURE__ */ t.jsx(
|
|
1446
1446
|
"div",
|
|
1447
1447
|
{
|
|
@@ -1454,12 +1454,12 @@ const zi = (c) => {
|
|
|
1454
1454
|
ct,
|
|
1455
1455
|
{
|
|
1456
1456
|
withoutHover: !0,
|
|
1457
|
-
className:
|
|
1457
|
+
className: X.button,
|
|
1458
1458
|
size: "s",
|
|
1459
1459
|
onClick: () => {
|
|
1460
1460
|
const x = [...s];
|
|
1461
1461
|
for (let A = 0; A < o.length; A++)
|
|
1462
|
-
if (!s.find((
|
|
1462
|
+
if (!s.find((U) => U.listingId === o[A].id)) {
|
|
1463
1463
|
x.push({
|
|
1464
1464
|
listingId: o[A].id,
|
|
1465
1465
|
image: o[A].productData.images.length > 0 ? o[A].productData.images[0].cfId : ""
|
|
@@ -1472,7 +1472,7 @@ const zi = (c) => {
|
|
|
1472
1472
|
style: {
|
|
1473
1473
|
width: "fit-content"
|
|
1474
1474
|
},
|
|
1475
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
1475
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: X.addButton, children: [
|
|
1476
1476
|
/* @__PURE__ */ t.jsx("span", { children: "Add Option" }),
|
|
1477
1477
|
/* @__PURE__ */ t.jsx(
|
|
1478
1478
|
j,
|
|
@@ -1488,135 +1488,135 @@ const zi = (c) => {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
)
|
|
1490
1490
|
] }),
|
|
1491
|
-
|
|
1491
|
+
f && I && /* @__PURE__ */ t.jsx(
|
|
1492
1492
|
st,
|
|
1493
1493
|
{
|
|
1494
|
-
value:
|
|
1494
|
+
value: f,
|
|
1495
1495
|
options: Object.keys(Ct),
|
|
1496
1496
|
onChange: (x) => I(x),
|
|
1497
1497
|
leftAddonOptions: St
|
|
1498
1498
|
}
|
|
1499
1499
|
),
|
|
1500
|
-
i &&
|
|
1500
|
+
i && l !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1501
1501
|
lt,
|
|
1502
1502
|
{
|
|
1503
1503
|
otherTitle: "Other",
|
|
1504
|
-
items:
|
|
1504
|
+
items: l
|
|
1505
1505
|
}
|
|
1506
1506
|
)
|
|
1507
1507
|
] });
|
|
1508
|
-
},
|
|
1509
|
-
options:
|
|
1510
|
-
price:
|
|
1511
|
-
oldPrice:
|
|
1512
|
-
newPrice:
|
|
1513
|
-
animate:
|
|
1514
|
-
appearAndBounce:
|
|
1515
|
-
meta:
|
|
1516
|
-
info:
|
|
1517
|
-
infoRight:
|
|
1518
|
-
buttons:
|
|
1519
|
-
variants:
|
|
1520
|
-
variant:
|
|
1521
|
-
stock:
|
|
1522
|
-
variantInfo:
|
|
1523
|
-
quantity:
|
|
1524
|
-
count:
|
|
1525
|
-
focused:
|
|
1526
|
-
button:
|
|
1527
|
-
activeVariant:
|
|
1528
|
-
chargeTypes:
|
|
1529
|
-
charge:
|
|
1530
|
-
chargeActive:
|
|
1531
|
-
title:
|
|
1508
|
+
}, ys = "_options_1aiq8_1", Ns = "_price_1aiq8_18", Is = "_oldPrice_1aiq8_25", ks = "_newPrice_1aiq8_33", Cs = "_animate_1aiq8_40", Ss = "_appearAndBounce_1aiq8_1", $s = "_meta_1aiq8_58", qs = "_info_1aiq8_64", ws = "_infoRight_1aiq8_72", Ps = "_buttons_1aiq8_79", Bs = "_variants_1aiq8_86", Ts = "_variant_1aiq8_86", Ms = "_stock_1aiq8_104", As = "_variantInfo_1aiq8_111", Os = "_quantity_1aiq8_117", Es = "_count_1aiq8_124", Rs = "_focused_1aiq8_141", Ds = "_button_1aiq8_79", zs = "_activeVariant_1aiq8_167", Ls = "_chargeTypes_1aiq8_171", Fs = "_charge_1aiq8_171", Us = "_chargeActive_1aiq8_196", Vs = "_title_1aiq8_204", P = {
|
|
1509
|
+
options: ys,
|
|
1510
|
+
price: Ns,
|
|
1511
|
+
oldPrice: Is,
|
|
1512
|
+
newPrice: ks,
|
|
1513
|
+
animate: Cs,
|
|
1514
|
+
appearAndBounce: Ss,
|
|
1515
|
+
meta: $s,
|
|
1516
|
+
info: qs,
|
|
1517
|
+
infoRight: ws,
|
|
1518
|
+
buttons: Ps,
|
|
1519
|
+
variants: Bs,
|
|
1520
|
+
variant: Ts,
|
|
1521
|
+
stock: Ms,
|
|
1522
|
+
variantInfo: As,
|
|
1523
|
+
quantity: Os,
|
|
1524
|
+
count: Es,
|
|
1525
|
+
focused: Rs,
|
|
1526
|
+
button: Ds,
|
|
1527
|
+
activeVariant: zs,
|
|
1528
|
+
chargeTypes: Ls,
|
|
1529
|
+
charge: Fs,
|
|
1530
|
+
chargeActive: Us,
|
|
1531
|
+
title: Vs
|
|
1532
1532
|
};
|
|
1533
1533
|
var It = /* @__PURE__ */ ((c) => (c.ONE_TIME = "One-Time", c.RECURRING = "Subscribe & Save", c))(It || {});
|
|
1534
|
-
const
|
|
1534
|
+
const Hs = (c) => {
|
|
1535
1535
|
var z, R;
|
|
1536
|
-
const { product: i, setIsOpen: a } = c, { variants: s } = i, [e,
|
|
1536
|
+
const { product: i, setIsOpen: a } = c, { variants: s } = i, [e, l] = g.useState(s[0]), [r, h] = g.useState(
|
|
1537
1537
|
e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
|
|
1538
|
-
),
|
|
1539
|
-
|
|
1538
|
+
), m = xt(), [_, S] = g.useState(1), { reset: v, addProductToCart: n, addProducts: u } = rt(), [o, T] = g.useState(!1), { pageContext: f } = it();
|
|
1539
|
+
g.useEffect(() => {
|
|
1540
1540
|
T(!0);
|
|
1541
|
-
const
|
|
1542
|
-
return () => clearTimeout(
|
|
1543
|
-
}, [
|
|
1541
|
+
const b = setTimeout(() => T(!1), 600);
|
|
1542
|
+
return () => clearTimeout(b);
|
|
1543
|
+
}, [_]);
|
|
1544
1544
|
async function I() {
|
|
1545
|
-
await
|
|
1545
|
+
await u((f == null ? void 0 : f.products) || []), await n({
|
|
1546
1546
|
productId: i.id,
|
|
1547
1547
|
productVariantId: e.id,
|
|
1548
|
-
quantity:
|
|
1548
|
+
quantity: _
|
|
1549
1549
|
}), a == null || a(!1);
|
|
1550
1550
|
}
|
|
1551
1551
|
function k() {
|
|
1552
|
-
|
|
1552
|
+
v(), I(), m("/checkout");
|
|
1553
1553
|
}
|
|
1554
|
-
function O(
|
|
1555
|
-
if (
|
|
1556
|
-
const
|
|
1557
|
-
return `${
|
|
1558
|
-
} else if (
|
|
1559
|
-
const
|
|
1560
|
-
return `${
|
|
1561
|
-
} else if (
|
|
1562
|
-
const
|
|
1563
|
-
return `${
|
|
1554
|
+
function O(b) {
|
|
1555
|
+
if (b >= 864e5) {
|
|
1556
|
+
const y = Math.floor(b / 864e5);
|
|
1557
|
+
return `${y} ${y === 1 ? "day" : "days"}`;
|
|
1558
|
+
} else if (b >= 36e5) {
|
|
1559
|
+
const y = Math.floor(b / 36e5);
|
|
1560
|
+
return `${y} ${y === 1 ? "hour" : "hours"}`;
|
|
1561
|
+
} else if (b >= 6e4) {
|
|
1562
|
+
const y = Math.floor(b / 6e4);
|
|
1563
|
+
return `${y} ${y === 1 ? "minute" : "minutes"}`;
|
|
1564
1564
|
} else {
|
|
1565
|
-
const
|
|
1566
|
-
return `${
|
|
1565
|
+
const y = Math.floor(b / 1e3);
|
|
1566
|
+
return `${y} ${y === 1 ? "second" : "seconds"}`;
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
|
-
return
|
|
1570
|
-
e.quantity && e.quantity.available === 0 &&
|
|
1571
|
-
}, [e.quantity.available]), /* @__PURE__ */ t.jsxs("div", { className:
|
|
1572
|
-
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className:
|
|
1569
|
+
return g.useEffect(() => {
|
|
1570
|
+
e.quantity && e.quantity.available === 0 && S(0);
|
|
1571
|
+
}, [e.quantity.available]), /* @__PURE__ */ t.jsxs("div", { className: P.options, children: [
|
|
1572
|
+
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: P.chargeTypes, children: e.chargeTypes.map((b) => /* @__PURE__ */ t.jsx(
|
|
1573
1573
|
"div",
|
|
1574
1574
|
{
|
|
1575
|
-
className:
|
|
1576
|
-
[
|
|
1575
|
+
className: V(P.charge, {
|
|
1576
|
+
[P.chargeActive]: r === b
|
|
1577
1577
|
}),
|
|
1578
|
-
onClick: () =>
|
|
1579
|
-
children: It[
|
|
1578
|
+
onClick: () => h(b),
|
|
1579
|
+
children: It[b]
|
|
1580
1580
|
},
|
|
1581
|
-
|
|
1581
|
+
b
|
|
1582
1582
|
)) }),
|
|
1583
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1584
|
-
var L,
|
|
1583
|
+
/* @__PURE__ */ t.jsx("div", { className: P.variants, children: s.map((b) => {
|
|
1584
|
+
var L, p;
|
|
1585
1585
|
return /* @__PURE__ */ t.jsxs(
|
|
1586
1586
|
"div",
|
|
1587
1587
|
{
|
|
1588
|
-
className:
|
|
1589
|
-
[
|
|
1588
|
+
className: V(P.variant, {
|
|
1589
|
+
[P.activeVariant]: e.id === b.id
|
|
1590
1590
|
}),
|
|
1591
|
-
onClick: () =>
|
|
1591
|
+
onClick: () => l(b),
|
|
1592
1592
|
children: [
|
|
1593
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1594
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1593
|
+
/* @__PURE__ */ t.jsxs("div", { className: P.variantInfo, children: [
|
|
1594
|
+
/* @__PURE__ */ t.jsx("span", { className: P.title, children: yt(b.name) }),
|
|
1595
1595
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
1596
1596
|
"$",
|
|
1597
|
-
|
|
1597
|
+
r === "ONE_TIME" ? b.price.amount : b.subscriptionSettings ? b.subscriptionSettings.price.amount : "Price Not Found"
|
|
1598
1598
|
] })
|
|
1599
1599
|
] }),
|
|
1600
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
|
1601
|
-
(L =
|
|
1600
|
+
/* @__PURE__ */ t.jsx("div", { children: r === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: P.stock, children: [
|
|
1601
|
+
(L = b.quantity.restrictions) != null && L.max || b.quantity.available !== void 0 ? ((p = b.quantity.restrictions) == null ? void 0 : p.max) || b.quantity.available : "∞",
|
|
1602
1602
|
" ",
|
|
1603
1603
|
"in stock"
|
|
1604
1604
|
] }) })
|
|
1605
1605
|
]
|
|
1606
1606
|
},
|
|
1607
|
-
|
|
1607
|
+
b.id
|
|
1608
1608
|
);
|
|
1609
1609
|
}) }),
|
|
1610
|
-
|
|
1610
|
+
r === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: P.quantity, children: [
|
|
1611
1611
|
/* @__PURE__ */ t.jsx(
|
|
1612
1612
|
F,
|
|
1613
1613
|
{
|
|
1614
1614
|
type: "Secondary",
|
|
1615
1615
|
onClick: () => {
|
|
1616
|
-
|
|
1616
|
+
_ > 1 ? S((b) => b - 1) : S(1);
|
|
1617
1617
|
},
|
|
1618
|
-
className:
|
|
1619
|
-
disabled: e.quantity.available && e.quantity.restrictions &&
|
|
1618
|
+
className: P.button,
|
|
1619
|
+
disabled: e.quantity.available && e.quantity.restrictions && _ <= e.quantity.restrictions.min || e.quantity.available === 0,
|
|
1620
1620
|
children: /* @__PURE__ */ t.jsx(j, { name: "Minus" })
|
|
1621
1621
|
}
|
|
1622
1622
|
),
|
|
@@ -1624,12 +1624,12 @@ const Vs = (c) => {
|
|
|
1624
1624
|
Ot,
|
|
1625
1625
|
{
|
|
1626
1626
|
type: "number",
|
|
1627
|
-
value: String(
|
|
1628
|
-
onChange: (
|
|
1627
|
+
value: String(_),
|
|
1628
|
+
onChange: (b) => S(Number(b)),
|
|
1629
1629
|
max: ((z = e.quantity.restrictions) == null ? void 0 : z.max) || e.quantity.available || Number.POSITIVE_INFINITY,
|
|
1630
1630
|
min: ((R = e.quantity.restrictions) == null ? void 0 : R.min) || 0,
|
|
1631
1631
|
centered: !0,
|
|
1632
|
-
disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 &&
|
|
1632
|
+
disabled: e.quantity && e.quantity.available === 0 || Object.keys(e.quantity.restrictions || {}).length !== 0 && _ >= e.quantity.restrictions.max
|
|
1633
1633
|
}
|
|
1634
1634
|
),
|
|
1635
1635
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1637,18 +1637,18 @@ const Vs = (c) => {
|
|
|
1637
1637
|
{
|
|
1638
1638
|
type: "Secondary",
|
|
1639
1639
|
onClick: () => {
|
|
1640
|
-
|
|
1640
|
+
S((b) => b + 1);
|
|
1641
1641
|
},
|
|
1642
|
-
className:
|
|
1643
|
-
disabled: !!(e.quantity.available && e.quantity.restrictions &&
|
|
1642
|
+
className: P.button,
|
|
1643
|
+
disabled: !!(e.quantity.available && e.quantity.restrictions && _ >= e.quantity.restrictions.max || e.quantity.available === 0),
|
|
1644
1644
|
children: /* @__PURE__ */ t.jsx(j, { name: "Plus" })
|
|
1645
1645
|
}
|
|
1646
1646
|
)
|
|
1647
1647
|
] }),
|
|
1648
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1649
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1648
|
+
/* @__PURE__ */ t.jsxs("div", { className: P.meta, children: [
|
|
1649
|
+
/* @__PURE__ */ t.jsxs("div", { className: P.info, children: [
|
|
1650
1650
|
/* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
|
|
1651
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1651
|
+
/* @__PURE__ */ t.jsxs("div", { className: P.infoRight, children: [
|
|
1652
1652
|
/* @__PURE__ */ t.jsx(
|
|
1653
1653
|
j,
|
|
1654
1654
|
{
|
|
@@ -1661,46 +1661,46 @@ const Vs = (c) => {
|
|
|
1661
1661
|
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : O(e.deliveryTime) })
|
|
1662
1662
|
] })
|
|
1663
1663
|
] }),
|
|
1664
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1664
|
+
/* @__PURE__ */ t.jsxs("div", { className: P.info, children: [
|
|
1665
1665
|
/* @__PURE__ */ t.jsx("span", { children: "Price" }),
|
|
1666
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1667
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
1666
|
+
/* @__PURE__ */ t.jsx("div", { className: P.infoRight, children: r === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: P.price, children: [
|
|
1667
|
+
/* @__PURE__ */ t.jsxs("span", { className: V(P.newPrice, { [P.animate]: o }), children: [
|
|
1668
1668
|
"$ ",
|
|
1669
|
-
(e.price.amount || 0) *
|
|
1669
|
+
(e.price.amount || 0) * _
|
|
1670
1670
|
] }),
|
|
1671
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
1671
|
+
/* @__PURE__ */ t.jsxs("span", { className: P.oldPrice, children: [
|
|
1672
1672
|
"$ ",
|
|
1673
|
-
(e.compareAtPrice.amount || 0) *
|
|
1673
|
+
(e.compareAtPrice.amount || 0) * _
|
|
1674
1674
|
] })
|
|
1675
|
-
] }) : /* @__PURE__ */ t.jsxs("span", { className:
|
|
1675
|
+
] }) : /* @__PURE__ */ t.jsxs("span", { className: V(P.newPrice, { [P.animate]: o }), children: [
|
|
1676
1676
|
"$ ",
|
|
1677
|
-
(e.price.amount || 0) *
|
|
1678
|
-
] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
1679
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
1677
|
+
(e.price.amount || 0) * _
|
|
1678
|
+
] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: P.price, children: [
|
|
1679
|
+
/* @__PURE__ */ t.jsxs("span", { className: V(P.newPrice, { [P.animate]: o }), children: [
|
|
1680
1680
|
"$ ",
|
|
1681
1681
|
e.subscriptionSettings.price.amount || 0
|
|
1682
1682
|
] }),
|
|
1683
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
1683
|
+
/* @__PURE__ */ t.jsxs("span", { className: P.oldPrice, children: [
|
|
1684
1684
|
"$ ",
|
|
1685
1685
|
e.subscriptionSettings.compareAtPrice.amount || 0
|
|
1686
1686
|
] })
|
|
1687
|
-
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className:
|
|
1687
|
+
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: V(P.newPrice, { [P.animate]: o }), children: [
|
|
1688
1688
|
"$ ",
|
|
1689
1689
|
e.subscriptionSettings.price.amount || 0
|
|
1690
1690
|
] }) })
|
|
1691
1691
|
] })
|
|
1692
1692
|
] }),
|
|
1693
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1693
|
+
/* @__PURE__ */ t.jsxs("div", { className: P.buttons, children: [
|
|
1694
1694
|
/* @__PURE__ */ t.jsx(
|
|
1695
1695
|
F,
|
|
1696
1696
|
{
|
|
1697
1697
|
type: "Primary",
|
|
1698
1698
|
onClick: () => k(),
|
|
1699
1699
|
disabled: e.quantity && e.quantity.available === 0,
|
|
1700
|
-
children:
|
|
1700
|
+
children: r === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
|
|
1701
1701
|
}
|
|
1702
1702
|
),
|
|
1703
|
-
|
|
1703
|
+
r === "ONE_TIME" && /* @__PURE__ */ t.jsx(
|
|
1704
1704
|
F,
|
|
1705
1705
|
{
|
|
1706
1706
|
type: "Secondary",
|
|
@@ -1711,85 +1711,85 @@ const Vs = (c) => {
|
|
|
1711
1711
|
)
|
|
1712
1712
|
] })
|
|
1713
1713
|
] });
|
|
1714
|
-
},
|
|
1715
|
-
button:
|
|
1716
|
-
login:
|
|
1717
|
-
signUp:
|
|
1718
|
-
buttons:
|
|
1719
|
-
modal:
|
|
1714
|
+
}, Ys = "_button_14q75_1", Ws = "_login_14q75_14", Gs = "_signUp_14q75_18", Xs = "_buttons_14q75_23", Qs = "_modal_14q75_32", Js = "_closing_14q75_64", Ks = "_info_14q75_113", Zs = "_top_14q75_120", tn = "_title_14q75_131", en = "_clear_14q75_138", sn = "_activeClear_14q75_145", nn = "_count_14q75_149", an = "_cart_14q75_164", on = "_empty_14q75_172", cn = "_product_14q75_198", rn = "_products_14q75_207", ln = "_image_14q75_215", dn = "_productInfo_14q75_230", un = "_content_14q75_237", pn = "_name_14q75_243", hn = "_price_14q75_249", mn = "_productButtons_14q75_255", _n = "_productButton_14q75_255", gn = "_productCount_14q75_272", fn = "_bottom_14q75_289", xn = "_subtotal_14q75_297", jn = "_block_14q75_305", vn = "_shoppingCount_14q75_312", bn = "_total_14q75_332", yn = "_link_14q75_338", Nn = "_userInfo_14q75_345", In = "_pagesMobileModal_14q75_356", kn = "_pagesMobileModalContent_14q75_370", Cn = "_pagesMobileModalHeader_14q75_376", Sn = "_pagesMobileModalFooter_14q75_386", q = {
|
|
1715
|
+
button: Ys,
|
|
1716
|
+
login: Ws,
|
|
1717
|
+
signUp: Gs,
|
|
1718
|
+
buttons: Xs,
|
|
1719
|
+
modal: Qs,
|
|
1720
1720
|
"slide-in-fade": "_slide-in-fade_14q75_1",
|
|
1721
1721
|
"mobile-slide-in-fade": "_mobile-slide-in-fade_14q75_1",
|
|
1722
|
-
closing:
|
|
1722
|
+
closing: Js,
|
|
1723
1723
|
"mobile-slide-out-fade": "_mobile-slide-out-fade_14q75_1",
|
|
1724
1724
|
"slide-out-fade": "_slide-out-fade_14q75_1",
|
|
1725
|
-
info:
|
|
1726
|
-
top:
|
|
1727
|
-
title:
|
|
1728
|
-
clear:
|
|
1729
|
-
activeClear:
|
|
1730
|
-
count:
|
|
1731
|
-
cart:
|
|
1732
|
-
empty:
|
|
1733
|
-
product:
|
|
1734
|
-
products:
|
|
1735
|
-
image:
|
|
1736
|
-
productInfo:
|
|
1737
|
-
content:
|
|
1738
|
-
name:
|
|
1739
|
-
price:
|
|
1740
|
-
productButtons:
|
|
1741
|
-
productButton:
|
|
1742
|
-
productCount:
|
|
1743
|
-
bottom:
|
|
1744
|
-
subtotal:
|
|
1745
|
-
block:
|
|
1746
|
-
shoppingCount:
|
|
1747
|
-
total:
|
|
1748
|
-
link:
|
|
1749
|
-
userInfo:
|
|
1750
|
-
pagesMobileModal:
|
|
1751
|
-
pagesMobileModalContent:
|
|
1752
|
-
pagesMobileModalHeader:
|
|
1753
|
-
pagesMobileModalFooter:
|
|
1754
|
-
},
|
|
1725
|
+
info: Ks,
|
|
1726
|
+
top: Zs,
|
|
1727
|
+
title: tn,
|
|
1728
|
+
clear: en,
|
|
1729
|
+
activeClear: sn,
|
|
1730
|
+
count: nn,
|
|
1731
|
+
cart: an,
|
|
1732
|
+
empty: on,
|
|
1733
|
+
product: cn,
|
|
1734
|
+
products: rn,
|
|
1735
|
+
image: ln,
|
|
1736
|
+
productInfo: dn,
|
|
1737
|
+
content: un,
|
|
1738
|
+
name: pn,
|
|
1739
|
+
price: hn,
|
|
1740
|
+
productButtons: mn,
|
|
1741
|
+
productButton: _n,
|
|
1742
|
+
productCount: gn,
|
|
1743
|
+
bottom: fn,
|
|
1744
|
+
subtotal: xn,
|
|
1745
|
+
block: jn,
|
|
1746
|
+
shoppingCount: vn,
|
|
1747
|
+
total: bn,
|
|
1748
|
+
link: yn,
|
|
1749
|
+
userInfo: Nn,
|
|
1750
|
+
pagesMobileModal: In,
|
|
1751
|
+
pagesMobileModalContent: kn,
|
|
1752
|
+
pagesMobileModalHeader: Cn,
|
|
1753
|
+
pagesMobileModalFooter: Sn
|
|
1754
|
+
}, Hi = (c) => {
|
|
1755
1755
|
const { shopping: i, signUp: a, isShowUserInfo: s = !0 } = c;
|
|
1756
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
1757
|
-
i && /* @__PURE__ */ t.jsx(
|
|
1758
|
-
s && /* @__PURE__ */ t.jsx(
|
|
1756
|
+
return /* @__PURE__ */ t.jsxs("div", { className: q.buttons, children: [
|
|
1757
|
+
i && /* @__PURE__ */ t.jsx($n, {}),
|
|
1758
|
+
s && /* @__PURE__ */ t.jsx(Pt, { signUp: a })
|
|
1759
1759
|
] });
|
|
1760
|
-
},
|
|
1761
|
-
const [c, i] =
|
|
1762
|
-
function
|
|
1760
|
+
}, $n = () => {
|
|
1761
|
+
const [c, i] = g.useState(!1), [a, s] = g.useState([]), { cart: e } = rt(), { pageContext: l } = it();
|
|
1762
|
+
function r(n) {
|
|
1763
1763
|
if (n.variants.length > 0) {
|
|
1764
|
-
for (let
|
|
1764
|
+
for (let u = 0; u < e.parts.length; u++)
|
|
1765
1765
|
for (let o = 0; o < n.variants.length; o++)
|
|
1766
|
-
if (n.variants[o] && e.parts[
|
|
1767
|
-
return e.parts[
|
|
1766
|
+
if (n.variants[o] && e.parts[u].productVariantId === n.variants[o].id)
|
|
1767
|
+
return e.parts[u].productVariantId;
|
|
1768
1768
|
}
|
|
1769
1769
|
return n.variants[0].id;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
for (let
|
|
1771
|
+
function h(n) {
|
|
1772
|
+
for (let u = 0; u < e.parts.length; u++)
|
|
1773
1773
|
for (let o = 0; o < n.variants.length; o++)
|
|
1774
|
-
if (n.variants[o] && e.parts[
|
|
1775
|
-
return e.parts[
|
|
1774
|
+
if (n.variants[o] && e.parts[u].productVariantId === n.variants[o].id)
|
|
1775
|
+
return e.parts[u].quantity;
|
|
1776
1776
|
}
|
|
1777
|
-
|
|
1777
|
+
g.useEffect(() => {
|
|
1778
1778
|
(async () => {
|
|
1779
|
-
var
|
|
1780
|
-
const
|
|
1779
|
+
var f;
|
|
1780
|
+
const u = e.parts.map((I) => String(I.productId)), T = (((f = l == null ? void 0 : l.products) == null ? void 0 : f.filter((I) => u.includes(String(I.id)))) || []).map((I) => ({
|
|
1781
1781
|
...I,
|
|
1782
|
-
activeVariantId:
|
|
1783
|
-
quantity:
|
|
1782
|
+
activeVariantId: r(I),
|
|
1783
|
+
quantity: h(I)
|
|
1784
1784
|
}));
|
|
1785
1785
|
s(T);
|
|
1786
1786
|
})();
|
|
1787
1787
|
}, [e.parts]);
|
|
1788
|
-
function
|
|
1789
|
-
var
|
|
1790
|
-
return !n || !(n != null && n.variants) ? !1 : (
|
|
1788
|
+
function m(n) {
|
|
1789
|
+
var u;
|
|
1790
|
+
return !n || !(n != null && n.variants) ? !1 : (u = n.variants.find((o) => o.id === n.activeVariantId)) == null ? void 0 : u.subscriptionSettings;
|
|
1791
1791
|
}
|
|
1792
|
-
const
|
|
1792
|
+
const _ = e.parts.length > 0 && a.length > 0 && !m(a[0]), [S, v] = g.useState(!1);
|
|
1793
1793
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1794
1794
|
/* @__PURE__ */ t.jsxs(
|
|
1795
1795
|
F,
|
|
@@ -1800,7 +1800,7 @@ const Vs = (c) => {
|
|
|
1800
1800
|
position: "relative"
|
|
1801
1801
|
},
|
|
1802
1802
|
onClick: (n) => {
|
|
1803
|
-
n.stopPropagation(), window.location.pathname.includes("/admin/builder") || (i(!0),
|
|
1803
|
+
n.stopPropagation(), window.location.pathname.includes("/admin/builder") || (i(!0), v(!0));
|
|
1804
1804
|
},
|
|
1805
1805
|
children: [
|
|
1806
1806
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1810,7 +1810,7 @@ const Vs = (c) => {
|
|
|
1810
1810
|
fill: "var(--text-primary)"
|
|
1811
1811
|
}
|
|
1812
1812
|
),
|
|
1813
|
-
|
|
1813
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: q.shoppingCount, children: e.parts.length })
|
|
1814
1814
|
]
|
|
1815
1815
|
}
|
|
1816
1816
|
),
|
|
@@ -1818,36 +1818,36 @@ const Vs = (c) => {
|
|
|
1818
1818
|
Nt,
|
|
1819
1819
|
{
|
|
1820
1820
|
close: () => {
|
|
1821
|
-
|
|
1821
|
+
v(!1), setTimeout(() => {
|
|
1822
1822
|
i(!1);
|
|
1823
1823
|
}, 300);
|
|
1824
1824
|
},
|
|
1825
1825
|
withAnimation: !1,
|
|
1826
1826
|
children: /* @__PURE__ */ t.jsx(
|
|
1827
|
-
|
|
1827
|
+
qn,
|
|
1828
1828
|
{
|
|
1829
1829
|
activeProducts: a,
|
|
1830
|
-
isCartNotEmpty:
|
|
1831
|
-
isOpen:
|
|
1830
|
+
isCartNotEmpty: _,
|
|
1831
|
+
isOpen: S
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
1834
1834
|
}
|
|
1835
1835
|
)
|
|
1836
1836
|
] });
|
|
1837
|
-
},
|
|
1838
|
-
const { activeProducts: i, isCartNotEmpty: a, isOpen: s } = c, { cart: e, reset:
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1837
|
+
}, qn = (c) => {
|
|
1838
|
+
const { activeProducts: i, isCartNotEmpty: a, isOpen: s } = c, { cart: e, reset: l, getTotalAndDiscount: r, updateQuantityOfProduct: h } = rt(), m = xt();
|
|
1839
|
+
function _(n) {
|
|
1840
|
+
m(n);
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1843
|
-
n.quantity &&
|
|
1842
|
+
function S(n) {
|
|
1843
|
+
n.quantity && h({
|
|
1844
1844
|
productId: n.id,
|
|
1845
1845
|
productVariantId: n.activeVariantId,
|
|
1846
1846
|
quantity: n.quantity + 1
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1850
|
-
n.quantity &&
|
|
1849
|
+
function v(n) {
|
|
1850
|
+
n.quantity && h({
|
|
1851
1851
|
productId: n.id,
|
|
1852
1852
|
productVariantId: n.activeVariantId,
|
|
1853
1853
|
quantity: n.quantity - 1
|
|
@@ -1856,35 +1856,35 @@ const Vs = (c) => {
|
|
|
1856
1856
|
return /* @__PURE__ */ t.jsxs(
|
|
1857
1857
|
"div",
|
|
1858
1858
|
{
|
|
1859
|
-
className:
|
|
1860
|
-
[
|
|
1859
|
+
className: V(q.modal, {
|
|
1860
|
+
[q.closing]: !s
|
|
1861
1861
|
}),
|
|
1862
1862
|
onClick: (n) => n.stopPropagation(),
|
|
1863
1863
|
children: [
|
|
1864
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1865
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1866
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
1867
|
-
a && /* @__PURE__ */ t.jsx("div", { className:
|
|
1864
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.top, children: [
|
|
1865
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.info, children: [
|
|
1866
|
+
/* @__PURE__ */ t.jsx("span", { className: q.title, children: "Cart" }),
|
|
1867
|
+
a && /* @__PURE__ */ t.jsx("div", { className: q.count, children: e.parts.length })
|
|
1868
1868
|
] }),
|
|
1869
1869
|
/* @__PURE__ */ t.jsx(
|
|
1870
1870
|
"button",
|
|
1871
1871
|
{
|
|
1872
|
-
className:
|
|
1873
|
-
[
|
|
1872
|
+
className: V(q.clear, {
|
|
1873
|
+
[q.activeClear]: a
|
|
1874
1874
|
}),
|
|
1875
1875
|
disabled: !a,
|
|
1876
|
-
onClick:
|
|
1876
|
+
onClick: l,
|
|
1877
1877
|
children: "Clear all"
|
|
1878
1878
|
}
|
|
1879
1879
|
)
|
|
1880
1880
|
] }),
|
|
1881
|
-
a ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
1882
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1881
|
+
a ? /* @__PURE__ */ t.jsxs("div", { className: q.cart, children: [
|
|
1882
|
+
/* @__PURE__ */ t.jsx("div", { className: q.products, children: i.map((n) => /* @__PURE__ */ t.jsxs(
|
|
1883
1883
|
"div",
|
|
1884
1884
|
{
|
|
1885
|
-
className:
|
|
1885
|
+
className: q.product,
|
|
1886
1886
|
children: [
|
|
1887
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1887
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.productInfo, children: [
|
|
1888
1888
|
n.images.length > 0 ? /* @__PURE__ */ t.jsx(
|
|
1889
1889
|
"img",
|
|
1890
1890
|
{
|
|
@@ -1892,32 +1892,32 @@ const Vs = (c) => {
|
|
|
1892
1892
|
alt: "image",
|
|
1893
1893
|
width: "100%",
|
|
1894
1894
|
height: "100%",
|
|
1895
|
-
className:
|
|
1895
|
+
className: q.image
|
|
1896
1896
|
}
|
|
1897
|
-
) : /* @__PURE__ */ t.jsx("div", { className:
|
|
1897
|
+
) : /* @__PURE__ */ t.jsx("div", { className: q.image, children: /* @__PURE__ */ t.jsx(
|
|
1898
1898
|
j,
|
|
1899
1899
|
{
|
|
1900
1900
|
name: "Image",
|
|
1901
1901
|
fill: "var(--text-secondary)"
|
|
1902
1902
|
}
|
|
1903
1903
|
) }),
|
|
1904
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1905
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1906
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1904
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.content, children: [
|
|
1905
|
+
/* @__PURE__ */ t.jsx("div", { className: q.name, children: yt(n.name) }),
|
|
1906
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.price, children: [
|
|
1907
1907
|
"$",
|
|
1908
|
-
n.variants.find((
|
|
1908
|
+
n.variants.find((u) => u.id === n.activeVariantId).price.amount * ((n == null ? void 0 : n.quantity) || 1)
|
|
1909
1909
|
] })
|
|
1910
1910
|
] })
|
|
1911
1911
|
] }),
|
|
1912
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1912
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.productButtons, children: [
|
|
1913
1913
|
/* @__PURE__ */ t.jsx(
|
|
1914
1914
|
F,
|
|
1915
1915
|
{
|
|
1916
1916
|
type: "Secondary",
|
|
1917
1917
|
onClick: () => {
|
|
1918
|
-
n.quantity !== 1 &&
|
|
1918
|
+
n.quantity !== 1 && v(n);
|
|
1919
1919
|
},
|
|
1920
|
-
className:
|
|
1920
|
+
className: q.productButton,
|
|
1921
1921
|
disabled: n.quantity === 1,
|
|
1922
1922
|
children: /* @__PURE__ */ t.jsx(
|
|
1923
1923
|
j,
|
|
@@ -1930,14 +1930,14 @@ const Vs = (c) => {
|
|
|
1930
1930
|
)
|
|
1931
1931
|
}
|
|
1932
1932
|
),
|
|
1933
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
1933
|
+
/* @__PURE__ */ t.jsx("div", { className: q.productCount, children: n.quantity }),
|
|
1934
1934
|
/* @__PURE__ */ t.jsx(
|
|
1935
1935
|
F,
|
|
1936
1936
|
{
|
|
1937
1937
|
type: "Secondary",
|
|
1938
|
-
onClick: () =>
|
|
1939
|
-
className:
|
|
1940
|
-
disabled: n.quantity === n.variants.find((
|
|
1938
|
+
onClick: () => S(n),
|
|
1939
|
+
className: q.productButton,
|
|
1940
|
+
disabled: n.quantity === n.variants.find((u) => u.id === n.activeVariantId).quantity.available,
|
|
1941
1941
|
children: /* @__PURE__ */ t.jsx(
|
|
1942
1942
|
j,
|
|
1943
1943
|
{
|
|
@@ -1954,9 +1954,9 @@ const Vs = (c) => {
|
|
|
1954
1954
|
},
|
|
1955
1955
|
n.id
|
|
1956
1956
|
)) }),
|
|
1957
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1958
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1959
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1957
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.bottom, children: [
|
|
1958
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.subtotal, children: [
|
|
1959
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.block, children: [
|
|
1960
1960
|
/* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
|
|
1961
1961
|
/* @__PURE__ */ t.jsx(
|
|
1962
1962
|
j,
|
|
@@ -1968,18 +1968,18 @@ const Vs = (c) => {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
)
|
|
1970
1970
|
] }),
|
|
1971
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
1971
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.total, children: [
|
|
1972
1972
|
"$",
|
|
1973
|
-
|
|
1973
|
+
r().total
|
|
1974
1974
|
] })
|
|
1975
1975
|
] }),
|
|
1976
|
-
/* @__PURE__ */ t.jsx(F, { onClick: () =>
|
|
1976
|
+
/* @__PURE__ */ t.jsx(F, { onClick: () => _("/checkout"), children: "Checkout" })
|
|
1977
1977
|
] })
|
|
1978
|
-
] }) : /* @__PURE__ */ t.jsx(
|
|
1978
|
+
] }) : /* @__PURE__ */ t.jsx(wn, {})
|
|
1979
1979
|
]
|
|
1980
1980
|
}
|
|
1981
1981
|
);
|
|
1982
|
-
},
|
|
1982
|
+
}, wn = () => /* @__PURE__ */ t.jsxs("div", { className: q.empty, children: [
|
|
1983
1983
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1984
1984
|
j,
|
|
1985
1985
|
{
|
|
@@ -1995,15 +1995,15 @@ const Vs = (c) => {
|
|
|
1995
1995
|
"a",
|
|
1996
1996
|
{
|
|
1997
1997
|
href: "/products",
|
|
1998
|
-
className:
|
|
1998
|
+
className: q.link,
|
|
1999
1999
|
children: "view products"
|
|
2000
2000
|
}
|
|
2001
2001
|
)
|
|
2002
2002
|
] })
|
|
2003
|
-
] }),
|
|
2003
|
+
] }), Pt = ({ signUp: c, close: i }) => {
|
|
2004
2004
|
const a = JSON.parse(localStorage.getItem("token") || "{}"), { data: s } = a, e = xt();
|
|
2005
|
-
function
|
|
2006
|
-
window.location.pathname.includes("/admin/builder") || e(
|
|
2005
|
+
function l(m) {
|
|
2006
|
+
window.location.pathname.includes("/admin/builder") || e(m);
|
|
2007
2007
|
}
|
|
2008
2008
|
if (!s)
|
|
2009
2009
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -2011,7 +2011,7 @@ const Vs = (c) => {
|
|
|
2011
2011
|
F,
|
|
2012
2012
|
{
|
|
2013
2013
|
onClick: () => {
|
|
2014
|
-
|
|
2014
|
+
l("/customer-dash"), i == null || i();
|
|
2015
2015
|
},
|
|
2016
2016
|
type: "Secondary",
|
|
2017
2017
|
style: {
|
|
@@ -2024,7 +2024,7 @@ const Vs = (c) => {
|
|
|
2024
2024
|
F,
|
|
2025
2025
|
{
|
|
2026
2026
|
onClick: () => {
|
|
2027
|
-
|
|
2027
|
+
l("/customer-dash"), i == null || i();
|
|
2028
2028
|
},
|
|
2029
2029
|
type: "Primary",
|
|
2030
2030
|
style: {
|
|
@@ -2035,29 +2035,29 @@ const Vs = (c) => {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
)
|
|
2037
2037
|
] });
|
|
2038
|
-
const [
|
|
2039
|
-
return
|
|
2038
|
+
const [r, h] = g.useState("test-email@gmail.com");
|
|
2039
|
+
return g.useEffect(() => {
|
|
2040
2040
|
(async () => {
|
|
2041
|
-
const
|
|
2042
|
-
|
|
2041
|
+
const _ = Et(s);
|
|
2042
|
+
h(_.email);
|
|
2043
2043
|
})();
|
|
2044
2044
|
}, [s]), /* @__PURE__ */ t.jsx(
|
|
2045
2045
|
"div",
|
|
2046
2046
|
{
|
|
2047
|
-
className:
|
|
2047
|
+
className: q.userInfo,
|
|
2048
2048
|
onClick: () => {
|
|
2049
|
-
|
|
2049
|
+
l("/customer-dash"), i == null || i();
|
|
2050
2050
|
},
|
|
2051
|
-
children: /* @__PURE__ */ t.jsx("div", { children:
|
|
2051
|
+
children: /* @__PURE__ */ t.jsx("div", { children: r || "test-email@gmail.com" })
|
|
2052
2052
|
}
|
|
2053
2053
|
);
|
|
2054
|
-
},
|
|
2054
|
+
}, Pn = ({
|
|
2055
2055
|
children: c,
|
|
2056
2056
|
logo: i,
|
|
2057
2057
|
setIsOpen: a,
|
|
2058
2058
|
signUp: s
|
|
2059
2059
|
}) => {
|
|
2060
|
-
const { setIsOpen: e } = $t(),
|
|
2060
|
+
const { setIsOpen: e } = $t(), l = () => {
|
|
2061
2061
|
e(!1), setTimeout(() => {
|
|
2062
2062
|
a(!1), e(!0);
|
|
2063
2063
|
}, 300);
|
|
@@ -2065,16 +2065,16 @@ const Vs = (c) => {
|
|
|
2065
2065
|
return /* @__PURE__ */ t.jsxs(
|
|
2066
2066
|
"div",
|
|
2067
2067
|
{
|
|
2068
|
-
className:
|
|
2069
|
-
onClick: (
|
|
2068
|
+
className: q.pagesMobileModal,
|
|
2069
|
+
onClick: (r) => r.stopPropagation(),
|
|
2070
2070
|
children: [
|
|
2071
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2071
|
+
/* @__PURE__ */ t.jsxs("div", { className: q.pagesMobileModalHeader, children: [
|
|
2072
2072
|
/* @__PURE__ */ t.jsx("div", { children: i }),
|
|
2073
2073
|
/* @__PURE__ */ t.jsx(
|
|
2074
2074
|
F,
|
|
2075
2075
|
{
|
|
2076
2076
|
type: "Secondary",
|
|
2077
|
-
onClick:
|
|
2077
|
+
onClick: l,
|
|
2078
2078
|
children: /* @__PURE__ */ t.jsx(
|
|
2079
2079
|
j,
|
|
2080
2080
|
{
|
|
@@ -2085,36 +2085,43 @@ const Vs = (c) => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
)
|
|
2087
2087
|
] }),
|
|
2088
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2089
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2090
|
-
|
|
2088
|
+
/* @__PURE__ */ t.jsx("div", { className: q.pagesMobileModalContent, children: c }),
|
|
2089
|
+
/* @__PURE__ */ t.jsx("div", { className: q.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
|
|
2090
|
+
Pt,
|
|
2091
2091
|
{
|
|
2092
2092
|
signUp: s,
|
|
2093
|
-
close:
|
|
2093
|
+
close: l
|
|
2094
2094
|
}
|
|
2095
2095
|
) })
|
|
2096
2096
|
]
|
|
2097
2097
|
}
|
|
2098
2098
|
);
|
|
2099
|
-
},
|
|
2099
|
+
}, Yi = ({
|
|
2100
2100
|
children: c,
|
|
2101
2101
|
logo: i,
|
|
2102
2102
|
signUp: a
|
|
2103
2103
|
}) => {
|
|
2104
|
-
const [s, e] =
|
|
2104
|
+
const [s, e] = g.useState(!1);
|
|
2105
2105
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2106
|
-
/* @__PURE__ */ t.jsx(
|
|
2107
|
-
s && /* @__PURE__ */ t.jsx(
|
|
2108
|
-
|
|
2106
|
+
/* @__PURE__ */ t.jsx(Bn, { setIsOpenModal: e }),
|
|
2107
|
+
s && /* @__PURE__ */ t.jsx(
|
|
2108
|
+
Nt,
|
|
2109
2109
|
{
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2110
|
+
close: () => e(!1),
|
|
2111
|
+
hasPadding: !1,
|
|
2112
|
+
children: /* @__PURE__ */ t.jsx(
|
|
2113
|
+
Pn,
|
|
2114
|
+
{
|
|
2115
|
+
logo: i,
|
|
2116
|
+
setIsOpen: e,
|
|
2117
|
+
signUp: a,
|
|
2118
|
+
children: c
|
|
2119
|
+
}
|
|
2120
|
+
)
|
|
2114
2121
|
}
|
|
2115
|
-
)
|
|
2122
|
+
)
|
|
2116
2123
|
] });
|
|
2117
|
-
},
|
|
2124
|
+
}, Bn = (c) => {
|
|
2118
2125
|
const { setIsOpenModal: i } = c;
|
|
2119
2126
|
return /* @__PURE__ */ t.jsx(
|
|
2120
2127
|
F,
|
|
@@ -2135,20 +2142,20 @@ const Vs = (c) => {
|
|
|
2135
2142
|
)
|
|
2136
2143
|
}
|
|
2137
2144
|
);
|
|
2138
|
-
},
|
|
2139
|
-
share:
|
|
2140
|
-
modal:
|
|
2141
|
-
header:
|
|
2142
|
-
socials:
|
|
2143
|
-
social:
|
|
2144
|
-
copy:
|
|
2145
|
-
title:
|
|
2146
|
-
copyWrapper:
|
|
2147
|
-
copyText:
|
|
2148
|
-
copyTextMobile:
|
|
2149
|
-
copyTextMiniMobile:
|
|
2150
|
-
},
|
|
2151
|
-
const { isOpenModal: i, setIsOpenModal: a } =
|
|
2145
|
+
}, Tn = "_share_10urc_1", Mn = "_modal_10urc_9", An = "_header_10urc_21", On = "_socials_10urc_31", En = "_social_10urc_31", Rn = "_copy_10urc_41", Dn = "_title_10urc_48", zn = "_copyWrapper_10urc_54", Ln = "_copyText_10urc_63", Fn = "_copyTextMobile_10urc_76", Un = "_copyTextMiniMobile_10urc_95", tt = {
|
|
2146
|
+
share: Tn,
|
|
2147
|
+
modal: Mn,
|
|
2148
|
+
header: An,
|
|
2149
|
+
socials: On,
|
|
2150
|
+
social: En,
|
|
2151
|
+
copy: Rn,
|
|
2152
|
+
title: Dn,
|
|
2153
|
+
copyWrapper: zn,
|
|
2154
|
+
copyText: Ln,
|
|
2155
|
+
copyTextMobile: Fn,
|
|
2156
|
+
copyTextMiniMobile: Un
|
|
2157
|
+
}, Wi = ({ title: c = "Copy Product Link" }) => {
|
|
2158
|
+
const { isOpenModal: i, setIsOpenModal: a } = qt();
|
|
2152
2159
|
function s() {
|
|
2153
2160
|
a(!0);
|
|
2154
2161
|
}
|
|
@@ -2171,29 +2178,29 @@ const Vs = (c) => {
|
|
|
2171
2178
|
)
|
|
2172
2179
|
}
|
|
2173
2180
|
),
|
|
2174
|
-
i && /* @__PURE__ */ t.jsx(Nt, { close: a, children: /* @__PURE__ */ t.jsx(
|
|
2181
|
+
i && /* @__PURE__ */ t.jsx(Nt, { close: a, children: /* @__PURE__ */ t.jsx(Vn, { title: c }) })
|
|
2175
2182
|
] });
|
|
2176
|
-
},
|
|
2177
|
-
const { setIsOpenModal: i } =
|
|
2178
|
-
function
|
|
2179
|
-
navigator.clipboard.writeText(
|
|
2183
|
+
}, Vn = ({ title: c = "Copy Product Link" }) => {
|
|
2184
|
+
const { setIsOpenModal: i } = qt(), { notification: a, setNotification: s } = wt(), { setIsOpen: e } = $t(), l = window.location.href;
|
|
2185
|
+
function r() {
|
|
2186
|
+
navigator.clipboard.writeText(l), s({
|
|
2180
2187
|
message: "Link copied to clipboard",
|
|
2181
2188
|
status: "success"
|
|
2182
2189
|
});
|
|
2183
2190
|
}
|
|
2184
|
-
function
|
|
2191
|
+
function h() {
|
|
2185
2192
|
e(!1), setTimeout(() => {
|
|
2186
2193
|
i(!1), e(!0);
|
|
2187
2194
|
}, 300);
|
|
2188
2195
|
}
|
|
2189
|
-
function _
|
|
2190
|
-
return
|
|
2196
|
+
function m(_, S) {
|
|
2197
|
+
return _.length > S ? _.slice(0, S) + "..." : _;
|
|
2191
2198
|
}
|
|
2192
2199
|
return /* @__PURE__ */ t.jsxs(
|
|
2193
2200
|
"div",
|
|
2194
2201
|
{
|
|
2195
2202
|
className: tt.modal,
|
|
2196
|
-
onClick: (
|
|
2203
|
+
onClick: (_) => _.stopPropagation(),
|
|
2197
2204
|
children: [
|
|
2198
2205
|
/* @__PURE__ */ t.jsxs("div", { className: tt.header, children: [
|
|
2199
2206
|
/* @__PURE__ */ t.jsx("div", { className: tt.title, children: c }),
|
|
@@ -2202,7 +2209,7 @@ const Vs = (c) => {
|
|
|
2202
2209
|
{
|
|
2203
2210
|
name: "X",
|
|
2204
2211
|
fill: "#757575",
|
|
2205
|
-
onClick:
|
|
2212
|
+
onClick: h,
|
|
2206
2213
|
hoverable: !0
|
|
2207
2214
|
}
|
|
2208
2215
|
)
|
|
@@ -2212,14 +2219,14 @@ const Vs = (c) => {
|
|
|
2212
2219
|
F,
|
|
2213
2220
|
{
|
|
2214
2221
|
type: "Secondary",
|
|
2215
|
-
onClick:
|
|
2222
|
+
onClick: r,
|
|
2216
2223
|
style: {
|
|
2217
2224
|
flex: 1
|
|
2218
2225
|
},
|
|
2219
2226
|
children: [
|
|
2220
|
-
/* @__PURE__ */ t.jsx("div", { className: tt.copyText, children:
|
|
2221
|
-
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMobile, children:
|
|
2222
|
-
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMiniMobile, children:
|
|
2227
|
+
/* @__PURE__ */ t.jsx("div", { className: tt.copyText, children: m(l, 100) }),
|
|
2228
|
+
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMobile, children: m(l, 40) }),
|
|
2229
|
+
/* @__PURE__ */ t.jsx("div", { className: tt.copyTextMiniMobile, children: m(l, 20) })
|
|
2223
2230
|
]
|
|
2224
2231
|
}
|
|
2225
2232
|
),
|
|
@@ -2227,7 +2234,7 @@ const Vs = (c) => {
|
|
|
2227
2234
|
F,
|
|
2228
2235
|
{
|
|
2229
2236
|
type: "Secondary",
|
|
2230
|
-
onClick:
|
|
2237
|
+
onClick: r,
|
|
2231
2238
|
children: a ? /* @__PURE__ */ t.jsx(j, { name: "Check" }) : /* @__PURE__ */ t.jsx(j, { name: "Copy" })
|
|
2232
2239
|
}
|
|
2233
2240
|
)
|
|
@@ -2235,41 +2242,41 @@ const Vs = (c) => {
|
|
|
2235
2242
|
]
|
|
2236
2243
|
}
|
|
2237
2244
|
);
|
|
2238
|
-
},
|
|
2239
|
-
accordion:
|
|
2240
|
-
header:
|
|
2241
|
-
icon:
|
|
2242
|
-
open:
|
|
2243
|
-
content:
|
|
2244
|
-
},
|
|
2245
|
-
const [s, e] =
|
|
2245
|
+
}, Hn = "_accordion_1s1lq_1", Yn = "_header_1s1lq_9", Wn = "_icon_1s1lq_18", Gn = "_open_1s1lq_21", Xn = "_content_1s1lq_25", at = {
|
|
2246
|
+
accordion: Hn,
|
|
2247
|
+
header: Yn,
|
|
2248
|
+
icon: Wn,
|
|
2249
|
+
open: Gn,
|
|
2250
|
+
content: Xn
|
|
2251
|
+
}, Gi = ({ title: c, content: i, defaultOpen: a = !1 }) => {
|
|
2252
|
+
const [s, e] = g.useState(a), [l, r] = g.useState(0), h = g.useRef(null), m = () => {
|
|
2246
2253
|
e(!s);
|
|
2247
2254
|
};
|
|
2248
|
-
return
|
|
2249
|
-
|
|
2255
|
+
return g.useEffect(() => {
|
|
2256
|
+
h.current && r(s ? h.current.scrollHeight : 0);
|
|
2250
2257
|
}, [s]), /* @__PURE__ */ t.jsxs("div", { className: at.accordion, children: [
|
|
2251
2258
|
/* @__PURE__ */ t.jsxs(
|
|
2252
2259
|
"div",
|
|
2253
2260
|
{
|
|
2254
2261
|
className: at.header,
|
|
2255
|
-
onClick:
|
|
2262
|
+
onClick: m,
|
|
2256
2263
|
children: [
|
|
2257
2264
|
/* @__PURE__ */ t.jsx("h5", { id: "h5", children: c }),
|
|
2258
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2265
|
+
/* @__PURE__ */ t.jsx("div", { className: V(at.icon, { [at.open]: s }), children: /* @__PURE__ */ t.jsx(j, { name: "CaretDown" }) })
|
|
2259
2266
|
]
|
|
2260
2267
|
}
|
|
2261
2268
|
),
|
|
2262
2269
|
/* @__PURE__ */ t.jsx(
|
|
2263
2270
|
"div",
|
|
2264
2271
|
{
|
|
2265
|
-
ref:
|
|
2272
|
+
ref: h,
|
|
2266
2273
|
className: at.content,
|
|
2267
|
-
style: { height: `${
|
|
2274
|
+
style: { height: `${l}px` },
|
|
2268
2275
|
children: /* @__PURE__ */ t.jsx("p", { id: "p", children: i })
|
|
2269
2276
|
}
|
|
2270
2277
|
)
|
|
2271
2278
|
] });
|
|
2272
|
-
},
|
|
2279
|
+
}, Xi = ({ children: c, path: i, className: a, target: s = "_self", id: e }) => {
|
|
2273
2280
|
if (window.location.pathname.includes("/admin/builder"))
|
|
2274
2281
|
return /* @__PURE__ */ t.jsx(
|
|
2275
2282
|
"div",
|
|
@@ -2281,13 +2288,13 @@ const Vs = (c) => {
|
|
|
2281
2288
|
children: c
|
|
2282
2289
|
}
|
|
2283
2290
|
);
|
|
2284
|
-
const
|
|
2285
|
-
|
|
2291
|
+
const l = xt(), r = /^https?:\/\//.test(i), h = (m) => {
|
|
2292
|
+
r || s === "_blank" ? s === "_blank" ? window.open(i, "_blank") : window.open(i, "_self") : (m.preventDefault(), l(i));
|
|
2286
2293
|
};
|
|
2287
2294
|
return /* @__PURE__ */ t.jsx(
|
|
2288
2295
|
"div",
|
|
2289
2296
|
{
|
|
2290
|
-
onClick:
|
|
2297
|
+
onClick: h,
|
|
2291
2298
|
className: a,
|
|
2292
2299
|
role: "link",
|
|
2293
2300
|
style: { cursor: "pointer" },
|
|
@@ -2295,25 +2302,25 @@ const Vs = (c) => {
|
|
|
2295
2302
|
children: c
|
|
2296
2303
|
}
|
|
2297
2304
|
);
|
|
2298
|
-
},
|
|
2299
|
-
buttonsBlock:
|
|
2300
|
-
slideUp:
|
|
2301
|
-
},
|
|
2302
|
-
var
|
|
2303
|
-
const { setIsOpen: i, setModalType: a, productId: s } = c, { cart: e } = rt(), { pageContext:
|
|
2304
|
-
if (!
|
|
2305
|
+
}, Qn = "_buttonsBlock_1b2rb_1", Jn = "_slideUp_1b2rb_1", Kn = {
|
|
2306
|
+
buttonsBlock: Qn,
|
|
2307
|
+
slideUp: Jn
|
|
2308
|
+
}, Qi = (c) => {
|
|
2309
|
+
var _, S;
|
|
2310
|
+
const { setIsOpen: i, setModalType: a, productId: s } = c, { cart: e } = rt(), { pageContext: l } = it(), r = (_ = l == null ? void 0 : l.listings) == null ? void 0 : _.find((v) => v.id === s);
|
|
2311
|
+
if (!r)
|
|
2305
2312
|
return null;
|
|
2306
|
-
const
|
|
2307
|
-
(
|
|
2313
|
+
const h = (S = l == null ? void 0 : l.products) == null ? void 0 : S.find(
|
|
2314
|
+
(v) => v.uniquePath === r.productData.uniquePath
|
|
2308
2315
|
);
|
|
2309
|
-
if (!
|
|
2316
|
+
if (!h)
|
|
2310
2317
|
return null;
|
|
2311
|
-
const
|
|
2318
|
+
const m = e.parts.find((v) => v.productId === h.id);
|
|
2312
2319
|
return /* @__PURE__ */ t.jsxs(
|
|
2313
2320
|
"div",
|
|
2314
2321
|
{
|
|
2315
|
-
className:
|
|
2316
|
-
onClick: (
|
|
2322
|
+
className: Kn.buttonsBlock,
|
|
2323
|
+
onClick: (v) => v.stopPropagation(),
|
|
2317
2324
|
children: [
|
|
2318
2325
|
/* @__PURE__ */ t.jsx(
|
|
2319
2326
|
F,
|
|
@@ -2325,7 +2332,7 @@ const Vs = (c) => {
|
|
|
2325
2332
|
onClick: () => {
|
|
2326
2333
|
a("Add To Cart"), i(!0);
|
|
2327
2334
|
},
|
|
2328
|
-
children:
|
|
2335
|
+
children: m ? "Add More" : "Add To Cart"
|
|
2329
2336
|
}
|
|
2330
2337
|
),
|
|
2331
2338
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2341,15 +2348,15 @@ const Vs = (c) => {
|
|
|
2341
2348
|
]
|
|
2342
2349
|
}
|
|
2343
2350
|
);
|
|
2344
|
-
},
|
|
2345
|
-
wrapper:
|
|
2346
|
-
logo:
|
|
2347
|
-
info:
|
|
2348
|
-
},
|
|
2351
|
+
}, Zn = "_wrapper_27wzz_1", ti = "_logo_27wzz_8", ei = "_info_27wzz_12", vt = {
|
|
2352
|
+
wrapper: Zn,
|
|
2353
|
+
logo: ti,
|
|
2354
|
+
info: ei
|
|
2355
|
+
}, Ji = ({ date: c }) => {
|
|
2349
2356
|
const { general: i } = Rt();
|
|
2350
2357
|
if (!i) return /* @__PURE__ */ t.jsx(t.Fragment, {});
|
|
2351
2358
|
function a(s) {
|
|
2352
|
-
const e = new Date(s),
|
|
2359
|
+
const e = new Date(s), l = {
|
|
2353
2360
|
month: "short",
|
|
2354
2361
|
day: "2-digit",
|
|
2355
2362
|
year: "numeric",
|
|
@@ -2357,7 +2364,7 @@ const Vs = (c) => {
|
|
|
2357
2364
|
minute: "2-digit",
|
|
2358
2365
|
hour12: !1
|
|
2359
2366
|
};
|
|
2360
|
-
return e.toLocaleDateString("en-US",
|
|
2367
|
+
return e.toLocaleDateString("en-US", l);
|
|
2361
2368
|
}
|
|
2362
2369
|
return /* @__PURE__ */ t.jsxs("div", { className: vt.wrapper, children: [
|
|
2363
2370
|
/* @__PURE__ */ t.jsx("div", { className: vt.logo, children: i.info.logo ? /* @__PURE__ */ t.jsx(
|
|
@@ -2380,93 +2387,117 @@ const Vs = (c) => {
|
|
|
2380
2387
|
/* @__PURE__ */ t.jsx("p", { id: "p", children: a(c) })
|
|
2381
2388
|
] })
|
|
2382
2389
|
] });
|
|
2383
|
-
},
|
|
2384
|
-
options:
|
|
2385
|
-
price:
|
|
2386
|
-
oldPrice:
|
|
2387
|
-
newPrice:
|
|
2388
|
-
animate:
|
|
2389
|
-
appearAndBounce:
|
|
2390
|
-
meta:
|
|
2391
|
-
info:
|
|
2392
|
-
infoRight:
|
|
2393
|
-
buttons:
|
|
2394
|
-
variants:
|
|
2395
|
-
variant:
|
|
2396
|
-
stock:
|
|
2397
|
-
variantInfo:
|
|
2398
|
-
quantity:
|
|
2399
|
-
count:
|
|
2400
|
-
focused:
|
|
2401
|
-
button:
|
|
2402
|
-
activeVariant:
|
|
2403
|
-
chargeTypes:
|
|
2404
|
-
charge:
|
|
2405
|
-
chargeActive:
|
|
2406
|
-
title:
|
|
2407
|
-
modal:
|
|
2408
|
-
header:
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
(u) => u.uniquePath === a.productData.uniquePath
|
|
2390
|
+
}, si = "_options_puxd1_1", ni = "_price_puxd1_12", ii = "_oldPrice_puxd1_19", ai = "_newPrice_puxd1_27", oi = "_animate_puxd1_34", ci = "_appearAndBounce_puxd1_1", ri = "_meta_puxd1_52", li = "_info_puxd1_58", di = "_infoRight_puxd1_66", ui = "_buttons_puxd1_73", pi = "_variants_puxd1_80", hi = "_variant_puxd1_80", mi = "_stock_puxd1_98", _i = "_variantInfo_puxd1_105", gi = "_quantity_puxd1_111", fi = "_count_puxd1_118", xi = "_focused_puxd1_135", ji = "_button_puxd1_73", vi = "_activeVariant_puxd1_161", bi = "_chargeTypes_puxd1_165", yi = "_charge_puxd1_165", Ni = "_chargeActive_puxd1_190", Ii = "_title_puxd1_198", ki = "_modal_puxd1_204", Ci = "_header_puxd1_224", Si = "_productOptions_puxd1_232", $i = "_loading_puxd1_236", W = {
|
|
2391
|
+
options: si,
|
|
2392
|
+
price: ni,
|
|
2393
|
+
oldPrice: ii,
|
|
2394
|
+
newPrice: ai,
|
|
2395
|
+
animate: oi,
|
|
2396
|
+
appearAndBounce: ci,
|
|
2397
|
+
meta: ri,
|
|
2398
|
+
info: li,
|
|
2399
|
+
infoRight: di,
|
|
2400
|
+
buttons: ui,
|
|
2401
|
+
variants: pi,
|
|
2402
|
+
variant: hi,
|
|
2403
|
+
stock: mi,
|
|
2404
|
+
variantInfo: _i,
|
|
2405
|
+
quantity: gi,
|
|
2406
|
+
count: fi,
|
|
2407
|
+
focused: xi,
|
|
2408
|
+
button: ji,
|
|
2409
|
+
activeVariant: vi,
|
|
2410
|
+
chargeTypes: bi,
|
|
2411
|
+
charge: yi,
|
|
2412
|
+
chargeActive: Ni,
|
|
2413
|
+
title: Ii,
|
|
2414
|
+
modal: ki,
|
|
2415
|
+
header: Ci,
|
|
2416
|
+
productOptions: Si,
|
|
2417
|
+
loading: $i
|
|
2418
|
+
}, Ki = (c) => {
|
|
2419
|
+
var v;
|
|
2420
|
+
const { pageContext: i, setPageContext: a } = it(), s = (v = i == null ? void 0 : i.listings) == null ? void 0 : v.find((n) => n.id === c.productId), [e, l] = g.useState(!0), [r, h] = g.useState(null), m = (r == null ? void 0 : r.variants[0]) || null, [_, S] = g.useState(
|
|
2421
|
+
m != null && m.chargeTypes && m.chargeTypes.length > 1 ? m.chargeTypes[0] : "ONE_TIME"
|
|
2416
2422
|
);
|
|
2417
|
-
if (
|
|
2423
|
+
if (g.useEffect(() => {
|
|
2424
|
+
(async () => {
|
|
2425
|
+
l(!0);
|
|
2426
|
+
const u = await zt(
|
|
2427
|
+
encodeURIComponent(
|
|
2428
|
+
`/product/${s.productData.uniquePath}`
|
|
2429
|
+
)
|
|
2430
|
+
);
|
|
2431
|
+
a({
|
|
2432
|
+
...i,
|
|
2433
|
+
products: [...(i == null ? void 0 : i.products) || [], ...(u == null ? void 0 : u.data.products) || []]
|
|
2434
|
+
}), h(u == null ? void 0 : u.data.products[0]), l(!1);
|
|
2435
|
+
})();
|
|
2436
|
+
}, []), e)
|
|
2437
|
+
return /* @__PURE__ */ t.jsx(
|
|
2438
|
+
"div",
|
|
2439
|
+
{
|
|
2440
|
+
className: W.modal,
|
|
2441
|
+
onClick: (n) => n.stopPropagation(),
|
|
2442
|
+
children: /* @__PURE__ */ t.jsx("div", { className: W.loading, children: /* @__PURE__ */ t.jsx(Dt, {}) })
|
|
2443
|
+
}
|
|
2444
|
+
);
|
|
2445
|
+
if (!r) {
|
|
2446
|
+
c.setIsOpen(!1);
|
|
2418
2447
|
return;
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2448
|
+
}
|
|
2449
|
+
if (!m) {
|
|
2450
|
+
c.setIsOpen(!1);
|
|
2451
|
+
return;
|
|
2452
|
+
}
|
|
2422
2453
|
return /* @__PURE__ */ t.jsxs(
|
|
2423
2454
|
"div",
|
|
2424
2455
|
{
|
|
2425
|
-
className:
|
|
2426
|
-
onClick: (
|
|
2456
|
+
className: W.modal,
|
|
2457
|
+
onClick: (n) => n.stopPropagation(),
|
|
2427
2458
|
children: [
|
|
2428
|
-
c.type === "Add To Cart" && /* @__PURE__ */ t.jsx(
|
|
2429
|
-
|
|
2459
|
+
c.type === "Add To Cart" && !e && /* @__PURE__ */ t.jsx(
|
|
2460
|
+
qi,
|
|
2430
2461
|
{
|
|
2431
|
-
variants:
|
|
2432
|
-
activeVariant:
|
|
2433
|
-
activeChargeType:
|
|
2434
|
-
setActiveChargeType:
|
|
2435
|
-
productId:
|
|
2462
|
+
variants: r.variants,
|
|
2463
|
+
activeVariant: m,
|
|
2464
|
+
activeChargeType: _,
|
|
2465
|
+
setActiveChargeType: S,
|
|
2466
|
+
productId: r.id,
|
|
2436
2467
|
setIsOpen: c.setIsOpen
|
|
2437
2468
|
}
|
|
2438
2469
|
),
|
|
2439
|
-
c.type === "Buy Now" && /* @__PURE__ */ t.jsx(
|
|
2440
|
-
|
|
2470
|
+
c.type === "Buy Now" && !e && /* @__PURE__ */ t.jsx(
|
|
2471
|
+
wi,
|
|
2441
2472
|
{
|
|
2442
|
-
product:
|
|
2473
|
+
product: r,
|
|
2443
2474
|
setIsOpen: c.setIsOpen
|
|
2444
2475
|
}
|
|
2445
2476
|
)
|
|
2446
2477
|
]
|
|
2447
2478
|
}
|
|
2448
2479
|
);
|
|
2449
|
-
},
|
|
2450
|
-
const { variants: i, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId:
|
|
2451
|
-
async function
|
|
2452
|
-
const T =
|
|
2453
|
-
(
|
|
2480
|
+
}, qi = (c) => {
|
|
2481
|
+
const { variants: i, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId: l, setIsOpen: r } = c, { cart: h, addProductToCart: m, addProducts: _, updateQuantityOfProduct: S } = rt(), { setNotification: v } = wt(), { pageContext: n } = it();
|
|
2482
|
+
async function u(o) {
|
|
2483
|
+
const T = h.parts.find(
|
|
2484
|
+
(f) => f.productId === c.productId && f.productVariantId === o
|
|
2454
2485
|
);
|
|
2455
|
-
T ?
|
|
2456
|
-
productId:
|
|
2486
|
+
T ? S({
|
|
2487
|
+
productId: l,
|
|
2457
2488
|
productVariantId: o,
|
|
2458
2489
|
quantity: T.quantity + 1
|
|
2459
|
-
}) : (n != null && n.products && await
|
|
2460
|
-
productId:
|
|
2490
|
+
}) : (n != null && n.products && await _(n.products), await m({
|
|
2491
|
+
productId: l,
|
|
2461
2492
|
productVariantId: o,
|
|
2462
2493
|
quantity: 1
|
|
2463
|
-
})),
|
|
2494
|
+
})), v({
|
|
2464
2495
|
message: "Product added to cart",
|
|
2465
2496
|
status: "success"
|
|
2466
2497
|
});
|
|
2467
2498
|
}
|
|
2468
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2469
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2499
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2500
|
+
/* @__PURE__ */ t.jsxs("div", { className: W.header, children: [
|
|
2470
2501
|
/* @__PURE__ */ t.jsx("div", { id: "h3", children: "Choose a variant" }),
|
|
2471
2502
|
/* @__PURE__ */ t.jsx(
|
|
2472
2503
|
j,
|
|
@@ -2476,40 +2507,40 @@ const Vs = (c) => {
|
|
|
2476
2507
|
height: 24,
|
|
2477
2508
|
fill: "var(--text-secondary)",
|
|
2478
2509
|
hoverable: !0,
|
|
2479
|
-
onClick: () =>
|
|
2510
|
+
onClick: () => r(!1)
|
|
2480
2511
|
}
|
|
2481
2512
|
)
|
|
2482
2513
|
] }),
|
|
2483
|
-
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className:
|
|
2514
|
+
e.chargeTypes && e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: W.chargeTypes, children: e.chargeTypes.map((o) => /* @__PURE__ */ t.jsx(
|
|
2484
2515
|
"div",
|
|
2485
2516
|
{
|
|
2486
|
-
className:
|
|
2487
|
-
[
|
|
2517
|
+
className: V(W.charge, {
|
|
2518
|
+
[W.chargeActive]: a === o
|
|
2488
2519
|
}),
|
|
2489
2520
|
onClick: () => s(o),
|
|
2490
2521
|
children: It[o]
|
|
2491
2522
|
},
|
|
2492
2523
|
o
|
|
2493
2524
|
)) }),
|
|
2494
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2495
|
-
var T,
|
|
2525
|
+
/* @__PURE__ */ t.jsx("div", { className: W.variants, children: i.map((o) => {
|
|
2526
|
+
var T, f;
|
|
2496
2527
|
return /* @__PURE__ */ t.jsxs(
|
|
2497
2528
|
"div",
|
|
2498
2529
|
{
|
|
2499
|
-
className:
|
|
2530
|
+
className: V(W.variant),
|
|
2500
2531
|
onClick: () => {
|
|
2501
|
-
|
|
2532
|
+
u(o.id), r(!1);
|
|
2502
2533
|
},
|
|
2503
2534
|
children: [
|
|
2504
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2505
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2535
|
+
/* @__PURE__ */ t.jsxs("div", { className: W.variantInfo, children: [
|
|
2536
|
+
/* @__PURE__ */ t.jsx("span", { className: W.title, children: o.name }),
|
|
2506
2537
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
2507
2538
|
"$",
|
|
2508
2539
|
a === "ONE_TIME" ? o.price.amount : o.subscriptionSettings ? o.subscriptionSettings.price.amount : "Price Not Found"
|
|
2509
2540
|
] })
|
|
2510
2541
|
] }),
|
|
2511
|
-
/* @__PURE__ */ t.jsx("div", { children: a === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className:
|
|
2512
|
-
(T = o.quantity.restrictions) != null && T.max || o.quantity.available !== void 0 ? ((
|
|
2542
|
+
/* @__PURE__ */ t.jsx("div", { children: a === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: W.stock, children: [
|
|
2543
|
+
(T = o.quantity.restrictions) != null && T.max || o.quantity.available !== void 0 ? ((f = o.quantity.restrictions) == null ? void 0 : f.max) || o.quantity.available : "∞",
|
|
2513
2544
|
" ",
|
|
2514
2545
|
"in stock"
|
|
2515
2546
|
] }) })
|
|
@@ -2519,10 +2550,10 @@ const Vs = (c) => {
|
|
|
2519
2550
|
);
|
|
2520
2551
|
}) })
|
|
2521
2552
|
] });
|
|
2522
|
-
},
|
|
2553
|
+
}, wi = (c) => {
|
|
2523
2554
|
const { product: i, setIsOpen: a } = c;
|
|
2524
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2525
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2555
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2556
|
+
/* @__PURE__ */ t.jsxs("div", { className: W.header, children: [
|
|
2526
2557
|
/* @__PURE__ */ t.jsxs("div", { id: "h3", children: [
|
|
2527
2558
|
"Buy ",
|
|
2528
2559
|
yt(i.name)
|
|
@@ -2543,32 +2574,32 @@ const Vs = (c) => {
|
|
|
2543
2574
|
}
|
|
2544
2575
|
)
|
|
2545
2576
|
] }),
|
|
2546
|
-
/* @__PURE__ */ t.jsx(
|
|
2547
|
-
|
|
2577
|
+
/* @__PURE__ */ t.jsx("div", { className: W.productOptions, children: /* @__PURE__ */ t.jsx(
|
|
2578
|
+
Hs,
|
|
2548
2579
|
{
|
|
2549
2580
|
product: i,
|
|
2550
2581
|
setIsOpen: a
|
|
2551
2582
|
}
|
|
2552
|
-
)
|
|
2583
|
+
) })
|
|
2553
2584
|
] });
|
|
2554
|
-
},
|
|
2555
|
-
wrapper:
|
|
2556
|
-
label:
|
|
2557
|
-
contentBorder:
|
|
2558
|
-
contentField:
|
|
2559
|
-
textarea:
|
|
2560
|
-
length:
|
|
2561
|
-
},
|
|
2585
|
+
}, Pi = "_wrapper_1efqk_1", Bi = "_label_1efqk_10", Ti = "_contentBorder_1efqk_19", Mi = "_contentField_1efqk_23", Ai = "_textarea_1efqk_27", Oi = "_length_1efqk_42", nt = {
|
|
2586
|
+
wrapper: Pi,
|
|
2587
|
+
label: Bi,
|
|
2588
|
+
contentBorder: Ti,
|
|
2589
|
+
contentField: Mi,
|
|
2590
|
+
textarea: Ai,
|
|
2591
|
+
length: Oi
|
|
2592
|
+
}, Zi = (c) => {
|
|
2562
2593
|
const {
|
|
2563
2594
|
onChange: i,
|
|
2564
2595
|
label: a,
|
|
2565
2596
|
value: s,
|
|
2566
2597
|
maxLength: e,
|
|
2567
|
-
placeholder:
|
|
2568
|
-
type:
|
|
2569
|
-
} = c, [
|
|
2570
|
-
function
|
|
2571
|
-
return
|
|
2598
|
+
placeholder: l = "Type something...",
|
|
2599
|
+
type: r = "text"
|
|
2600
|
+
} = c, [h, m] = g.useState(s.length), { themeSettings: _ } = Lt();
|
|
2601
|
+
function S(v) {
|
|
2602
|
+
return r === "number" ? v.replace(/[^\d\n]+/g, "") : v;
|
|
2572
2603
|
}
|
|
2573
2604
|
return /* @__PURE__ */ t.jsxs("div", { className: nt.wrapper, children: [
|
|
2574
2605
|
a && /* @__PURE__ */ t.jsx(
|
|
@@ -2584,64 +2615,64 @@ const Vs = (c) => {
|
|
|
2584
2615
|
{
|
|
2585
2616
|
id: a,
|
|
2586
2617
|
value: s,
|
|
2587
|
-
onChange: (
|
|
2588
|
-
const n =
|
|
2589
|
-
|
|
2618
|
+
onChange: (v) => {
|
|
2619
|
+
const n = S(v.target.value);
|
|
2620
|
+
m(n.length), i(n);
|
|
2590
2621
|
},
|
|
2591
|
-
placeholder:
|
|
2592
|
-
className:
|
|
2593
|
-
[nt.contentBorder]:
|
|
2594
|
-
[nt.contentField]:
|
|
2622
|
+
placeholder: l,
|
|
2623
|
+
className: V(nt.textarea, {
|
|
2624
|
+
[nt.contentBorder]: _.inputs.border.active,
|
|
2625
|
+
[nt.contentField]: _.inputs.field.active
|
|
2595
2626
|
}),
|
|
2596
2627
|
maxLength: e
|
|
2597
2628
|
}
|
|
2598
2629
|
),
|
|
2599
2630
|
e && /* @__PURE__ */ t.jsxs("div", { className: nt.length, children: [
|
|
2600
|
-
|
|
2631
|
+
h,
|
|
2601
2632
|
"/",
|
|
2602
2633
|
e
|
|
2603
2634
|
] })
|
|
2604
2635
|
] });
|
|
2605
2636
|
};
|
|
2606
2637
|
export {
|
|
2607
|
-
|
|
2608
|
-
|
|
2638
|
+
Gi as Accordion,
|
|
2639
|
+
Bn as BurgerMenuButton,
|
|
2609
2640
|
F as Button,
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2641
|
+
vs as ButtonTypeSettings,
|
|
2642
|
+
Ui as ButtonsSettings,
|
|
2643
|
+
zi as CategorySettings,
|
|
2613
2644
|
It as ChargeTypes,
|
|
2614
2645
|
Tt as ChooseImage,
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2646
|
+
sa as ChooseImageModal,
|
|
2647
|
+
wn as EmptyCart,
|
|
2648
|
+
Fi as FormSettings,
|
|
2649
|
+
Hi as HeaderButtons,
|
|
2619
2650
|
j as Icon,
|
|
2620
2651
|
bt as InputSettings,
|
|
2621
2652
|
Ot as InputUI,
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2653
|
+
na as ItemsSettings,
|
|
2654
|
+
Di as LayoutSettings,
|
|
2655
|
+
Xi as Link,
|
|
2656
|
+
Vi as ListingSelector,
|
|
2657
|
+
Dt as Loader,
|
|
2658
|
+
Ji as MetaInfoPost,
|
|
2628
2659
|
Nt as Modal,
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2660
|
+
Yi as PagesMobileMenu,
|
|
2661
|
+
Pn as PagesMobileModal,
|
|
2662
|
+
Li as PagesSettings,
|
|
2663
|
+
Qi as ProductCardButtons,
|
|
2664
|
+
Ki as ProductCardModal,
|
|
2665
|
+
Hs as ProductOptions,
|
|
2635
2666
|
kt as RangeSelector,
|
|
2636
2667
|
st as Select,
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2668
|
+
ia as SelectInfiniteList,
|
|
2669
|
+
Wi as ShareLink,
|
|
2670
|
+
$n as ShoppingButton,
|
|
2671
|
+
qn as ShoppingModalCart,
|
|
2641
2672
|
ot as Switch,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2673
|
+
aa as TextSettings,
|
|
2674
|
+
oa as TextareaSettings,
|
|
2675
|
+
Zi as TextareaUI,
|
|
2676
|
+
ca as TypesText,
|
|
2677
|
+
Pt as UserInfo
|
|
2647
2678
|
};
|