@billgangcom/theme-lib 1.44.3 → 1.44.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.cjs.js +49 -49
- package/dist/builder.es.js +1866 -1840
- package/dist/{index-DFHUslAr.cjs → index-B7M_zl3r.cjs} +30 -30
- package/dist/{index-FNbiNtjB.js → index-_swnDkZg.js} +4806 -4808
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui/ButtonTypeSettings/index.d.ts +1 -1
- package/dist/ui/ButtonsSettings/index.d.ts +1 -1
- package/dist/ui/ButtonsSettings/popup.d.ts +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +861 -850
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as t, I as b, c as Y, a as tt, S as st, T as Et, b as et, C as bt, u as yt, d as kt, D as $t, e as It, v as Nt, B as ot, f as
|
|
2
|
-
import { q as uc, L as _c } from "./index-
|
|
1
|
+
import { j as t, I as b, c as Y, a as tt, S as st, T as Et, b as et, C as bt, u as yt, d as kt, D as $t, e as It, v as Nt, B as ot, f as mt, P as wt, g as Ct, h as St, i as Vt, s as Yt, k as Ut, l as Bt, m as Ot, M as Mt, n as Dt, o as Lt, p as Gt } from "./index-_swnDkZg.js";
|
|
2
|
+
import { q as uc, L as _c } from "./index-_swnDkZg.js";
|
|
3
3
|
import f from "react";
|
|
4
4
|
import "@phosphor-icons/react";
|
|
5
5
|
const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1ibay_15", Qt = "_subtitle_1ibay_22", Kt = "_alignmentContent_1ibay_29", Zt = "_alignments_1ibay_37", te = "_alignment_1ibay_8", ee = "_circle_1ibay_60", se = "_paddings_1ibay_67", ne = "_padding_1ibay_67", ie = "_active_1ibay_91", oe = "_input_1ibay_98", K = {
|
|
@@ -25,10 +25,10 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
25
25
|
"bottomLeft",
|
|
26
26
|
"bottom",
|
|
27
27
|
"bottomRight"
|
|
28
|
-
], ce = ["left", "top", "right", "bottom"], Wa = (
|
|
29
|
-
const { alignment: a, padding: e, setPadding: s, setAlignment: i } =
|
|
30
|
-
function c(
|
|
31
|
-
switch (
|
|
28
|
+
], ce = ["left", "top", "right", "bottom"], Wa = (d) => {
|
|
29
|
+
const { alignment: a, padding: e, setPadding: s, setAlignment: i } = d;
|
|
30
|
+
function c(g) {
|
|
31
|
+
switch (g) {
|
|
32
32
|
case "left":
|
|
33
33
|
case "topLeft":
|
|
34
34
|
case "bottomLeft":
|
|
@@ -45,8 +45,8 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
45
45
|
return "TextAlignCenter";
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function l(
|
|
49
|
-
switch (
|
|
48
|
+
function l(g) {
|
|
49
|
+
switch (g) {
|
|
50
50
|
case "left":
|
|
51
51
|
return "AlignLeft";
|
|
52
52
|
case "right":
|
|
@@ -57,28 +57,28 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
57
57
|
return "AlignBottom";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const [o, n] = f.useState(null), [
|
|
60
|
+
const [o, n] = f.useState(null), [_, v] = f.useState(null);
|
|
61
61
|
return /* @__PURE__ */ t.jsxs("div", { className: K.layout, children: [
|
|
62
62
|
/* @__PURE__ */ t.jsx("h3", { className: K.title, children: "Layout" }),
|
|
63
63
|
/* @__PURE__ */ t.jsxs("div", { className: K.alignmentBlock, children: [
|
|
64
64
|
/* @__PURE__ */ t.jsx("h5", { className: K.subtitle, children: "Alignment" }),
|
|
65
65
|
/* @__PURE__ */ t.jsxs("div", { className: K.alignmentContent, children: [
|
|
66
|
-
/* @__PURE__ */ t.jsx("div", { className: K.alignments, children: ae.map((
|
|
66
|
+
/* @__PURE__ */ t.jsx("div", { className: K.alignments, children: ae.map((g) => /* @__PURE__ */ t.jsxs(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
onClick: () => {
|
|
70
|
-
i(
|
|
70
|
+
i(g);
|
|
71
71
|
},
|
|
72
72
|
className: K.alignment,
|
|
73
73
|
onMouseEnter: () => {
|
|
74
|
-
n(
|
|
74
|
+
n(g);
|
|
75
75
|
},
|
|
76
76
|
onMouseLeave: () => {
|
|
77
77
|
n(null);
|
|
78
78
|
},
|
|
79
79
|
children: [
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
g !== a && o !== g && /* @__PURE__ */ t.jsx("div", { className: K.circle }),
|
|
81
|
+
g !== a && o === g && /* @__PURE__ */ t.jsx(
|
|
82
82
|
b,
|
|
83
83
|
{
|
|
84
84
|
name: c(o),
|
|
@@ -87,7 +87,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
87
87
|
height: 22
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
|
|
90
|
+
g === a && /* @__PURE__ */ t.jsx(
|
|
91
91
|
b,
|
|
92
92
|
{
|
|
93
93
|
name: c(a),
|
|
@@ -98,25 +98,25 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
98
98
|
)
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
|
|
101
|
+
g
|
|
102
102
|
)) }),
|
|
103
|
-
/* @__PURE__ */ t.jsx("div", { className: K.paddings, children: ce.map((
|
|
103
|
+
/* @__PURE__ */ t.jsx("div", { className: K.paddings, children: ce.map((g) => /* @__PURE__ */ t.jsxs(
|
|
104
104
|
"label",
|
|
105
105
|
{
|
|
106
106
|
className: Y(K.padding, {
|
|
107
|
-
[K.active]:
|
|
107
|
+
[K.active]: _ === g
|
|
108
108
|
}),
|
|
109
109
|
onFocus: () => {
|
|
110
|
-
|
|
110
|
+
v(g);
|
|
111
111
|
},
|
|
112
112
|
onBlur: () => {
|
|
113
|
-
|
|
113
|
+
v(null);
|
|
114
114
|
},
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
117
117
|
b,
|
|
118
118
|
{
|
|
119
|
-
name: l(
|
|
119
|
+
name: l(g),
|
|
120
120
|
width: 20,
|
|
121
121
|
height: 20
|
|
122
122
|
}
|
|
@@ -125,10 +125,10 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
125
125
|
tt,
|
|
126
126
|
{
|
|
127
127
|
type: "number",
|
|
128
|
-
value: String(e[
|
|
128
|
+
value: String(e[g]),
|
|
129
129
|
onChange: (r) => s({
|
|
130
130
|
...e,
|
|
131
|
-
[
|
|
131
|
+
[g]: Number(r)
|
|
132
132
|
}),
|
|
133
133
|
paddingless: !0,
|
|
134
134
|
borderless: !0
|
|
@@ -136,24 +136,24 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
136
136
|
)
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
|
-
|
|
139
|
+
g
|
|
140
140
|
)) })
|
|
141
141
|
] })
|
|
142
142
|
] })
|
|
143
143
|
] });
|
|
144
|
-
}, le = "_title_1jkiw_1", re = "_subtitle_1jkiw_5", de = "_header_1jkiw_12", ue = "_text_1jkiw_13", _e = "_top_1jkiw_20", me = "_itemsBlock_1jkiw_29",
|
|
144
|
+
}, le = "_title_1jkiw_1", re = "_subtitle_1jkiw_5", de = "_header_1jkiw_12", ue = "_text_1jkiw_13", _e = "_top_1jkiw_20", me = "_itemsBlock_1jkiw_29", ht = {
|
|
145
145
|
title: le,
|
|
146
146
|
subtitle: re,
|
|
147
147
|
header: de,
|
|
148
148
|
text: ue,
|
|
149
149
|
top: _e,
|
|
150
150
|
itemsBlock: me
|
|
151
|
-
},
|
|
152
|
-
typeTexts:
|
|
153
|
-
block:
|
|
151
|
+
}, pe = "_typeTexts_167ez_1", he = "_block_167ez_8", fe = "_active_167ez_25", Pt = {
|
|
152
|
+
typeTexts: pe,
|
|
153
|
+
block: he,
|
|
154
154
|
active: fe
|
|
155
|
-
}, ge = ["bold", "italic", "underline", "strike-through", "code"],
|
|
156
|
-
const { typesText: a, setTypesText: e } =
|
|
155
|
+
}, ge = ["bold", "italic", "underline", "strike-through", "code"], Ht = (d) => {
|
|
156
|
+
const { typesText: a, setTypesText: e } = d;
|
|
157
157
|
function s(i) {
|
|
158
158
|
switch (i) {
|
|
159
159
|
case "bold":
|
|
@@ -202,7 +202,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
202
202
|
h5: "Heading 5",
|
|
203
203
|
h6: "Heading 6",
|
|
204
204
|
p: "Paragraph"
|
|
205
|
-
},
|
|
205
|
+
}, Rt = (d) => {
|
|
206
206
|
const {
|
|
207
207
|
typesText: a,
|
|
208
208
|
isActiveText: e,
|
|
@@ -212,32 +212,32 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
212
212
|
setTypesText: l,
|
|
213
213
|
title: o,
|
|
214
214
|
subtitle: n = "Items",
|
|
215
|
-
typeFont:
|
|
216
|
-
setTypeFont:
|
|
217
|
-
} =
|
|
218
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
219
|
-
(o || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className:
|
|
220
|
-
o && /* @__PURE__ */ t.jsx("h3", { className:
|
|
215
|
+
typeFont: _,
|
|
216
|
+
setTypeFont: v
|
|
217
|
+
} = d;
|
|
218
|
+
return /* @__PURE__ */ t.jsxs("div", { className: ht.text, children: [
|
|
219
|
+
(o || e !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: ht.top, children: [
|
|
220
|
+
o && /* @__PURE__ */ t.jsx("h3", { className: ht.title, children: o }),
|
|
221
221
|
e !== void 0 && s && /* @__PURE__ */ t.jsx(
|
|
222
222
|
st,
|
|
223
223
|
{
|
|
224
224
|
current: e,
|
|
225
|
-
onChange: (
|
|
225
|
+
onChange: (g) => s(g)
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
228
|
] }),
|
|
229
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
230
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
229
|
+
/* @__PURE__ */ t.jsxs("div", { className: ht.itemsBlock, children: [
|
|
230
|
+
/* @__PURE__ */ t.jsx("h5", { className: ht.subtitle, children: n }),
|
|
231
231
|
/* @__PURE__ */ t.jsx(
|
|
232
232
|
Et,
|
|
233
233
|
{
|
|
234
|
-
onChange: (
|
|
234
|
+
onChange: (g) => c(g),
|
|
235
235
|
value: i,
|
|
236
236
|
maxLength: 150
|
|
237
237
|
}
|
|
238
238
|
),
|
|
239
239
|
/* @__PURE__ */ t.jsx(
|
|
240
|
-
|
|
240
|
+
Ht,
|
|
241
241
|
{
|
|
242
242
|
typesText: a,
|
|
243
243
|
setTypesText: l
|
|
@@ -248,19 +248,19 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
248
248
|
{
|
|
249
249
|
label: "Type Text",
|
|
250
250
|
options: Object.values(ft).filter(
|
|
251
|
-
(
|
|
251
|
+
(g) => g !== ft[_]
|
|
252
252
|
),
|
|
253
|
-
onChange: (
|
|
253
|
+
onChange: (g) => v(
|
|
254
254
|
Object.keys(ft).find(
|
|
255
|
-
(r) => ft[r] ===
|
|
255
|
+
(r) => ft[r] === g
|
|
256
256
|
)
|
|
257
257
|
),
|
|
258
|
-
value: ft[
|
|
258
|
+
value: ft[_]
|
|
259
259
|
}
|
|
260
260
|
)
|
|
261
261
|
] })
|
|
262
262
|
] });
|
|
263
|
-
}, xe = "_title_pef24_1", be = "_subtitle_pef24_5", ve = "_header_pef24_12", je = "_text_pef24_13", ye = "_productsBlock_pef24_14", ke = "_top_pef24_26", $e = "_itemsBlock_pef24_35", Ie = "_typeTexts_pef24_41", Ne = "_block_pef24_48", we = "_active_pef24_61", Ce = "_products_pef24_14", Se = "_product_pef24_14", Be = "_button_pef24_80", Te = "_disabled_pef24_91", Pe = "_image_pef24_95", Ae = "_info_pef24_102", Oe = "_name_pef24_114", Me = "_buttons_pef24_118", qe = "_modal_pef24_125", Ee = "_link_pef24_145",
|
|
263
|
+
}, xe = "_title_pef24_1", be = "_subtitle_pef24_5", ve = "_header_pef24_12", je = "_text_pef24_13", ye = "_productsBlock_pef24_14", ke = "_top_pef24_26", $e = "_itemsBlock_pef24_35", Ie = "_typeTexts_pef24_41", Ne = "_block_pef24_48", we = "_active_pef24_61", Ce = "_products_pef24_14", Se = "_product_pef24_14", Be = "_button_pef24_80", Te = "_disabled_pef24_91", Pe = "_image_pef24_95", Ae = "_info_pef24_102", Oe = "_name_pef24_114", Me = "_buttons_pef24_118", qe = "_modal_pef24_125", Ee = "_link_pef24_145", Ue = "_modalOptions_pef24_151", De = "_addButton_pef24_164", Le = "_deleteButton_pef24_179", He = "_closeIcon_pef24_191", z = {
|
|
264
264
|
title: xe,
|
|
265
265
|
subtitle: be,
|
|
266
266
|
header: ve,
|
|
@@ -281,15 +281,15 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
281
281
|
buttons: Me,
|
|
282
282
|
modal: qe,
|
|
283
283
|
link: Ee,
|
|
284
|
-
modalOptions:
|
|
285
|
-
addButton:
|
|
286
|
-
deleteButton:
|
|
287
|
-
closeIcon:
|
|
288
|
-
},
|
|
289
|
-
(
|
|
290
|
-
const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } =
|
|
291
|
-
function o(n,
|
|
292
|
-
return n.length >
|
|
284
|
+
modalOptions: Ue,
|
|
285
|
+
addButton: De,
|
|
286
|
+
deleteButton: Le,
|
|
287
|
+
closeIcon: He
|
|
288
|
+
}, Re = f.forwardRef(
|
|
289
|
+
(d, a) => {
|
|
290
|
+
const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = d;
|
|
291
|
+
function o(n, _) {
|
|
292
|
+
return n.length > _ ? `${n.slice(0, _)}...` : n;
|
|
293
293
|
}
|
|
294
294
|
return /* @__PURE__ */ t.jsxs(
|
|
295
295
|
"div",
|
|
@@ -325,45 +325,45 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
325
325
|
{
|
|
326
326
|
label: "Put up an attractive image",
|
|
327
327
|
activeImage: e[n.field],
|
|
328
|
-
onChange: (
|
|
329
|
-
const
|
|
328
|
+
onChange: (_) => {
|
|
329
|
+
const v = {
|
|
330
330
|
...e,
|
|
331
|
-
[n.field]:
|
|
331
|
+
[n.field]: _
|
|
332
332
|
};
|
|
333
|
-
s(
|
|
333
|
+
s(v);
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
336
|
String(n.field)
|
|
337
337
|
);
|
|
338
338
|
if (n.type === "text")
|
|
339
339
|
return /* @__PURE__ */ t.jsx(
|
|
340
|
-
|
|
340
|
+
Rt,
|
|
341
341
|
{
|
|
342
342
|
typesText: e[n.field.type],
|
|
343
|
-
setTypesText: (
|
|
344
|
-
const
|
|
343
|
+
setTypesText: (_) => {
|
|
344
|
+
const v = {
|
|
345
345
|
...e,
|
|
346
|
-
[n.field.type]:
|
|
346
|
+
[n.field.type]: _
|
|
347
347
|
};
|
|
348
|
-
s(
|
|
348
|
+
s(v);
|
|
349
349
|
},
|
|
350
350
|
text: e[n.field.text]["en-US"] || "",
|
|
351
|
-
setText: (
|
|
352
|
-
const
|
|
351
|
+
setText: (_) => {
|
|
352
|
+
const v = {
|
|
353
353
|
...e,
|
|
354
354
|
[n.field.text]: {
|
|
355
|
-
"en-US":
|
|
355
|
+
"en-US": _
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
s(
|
|
358
|
+
s(v);
|
|
359
359
|
},
|
|
360
360
|
typeFont: e[n.field.typeFont],
|
|
361
|
-
setTypeFont: (
|
|
362
|
-
const
|
|
361
|
+
setTypeFont: (_) => {
|
|
362
|
+
const v = {
|
|
363
363
|
...e,
|
|
364
|
-
[n.field.typeFont]:
|
|
364
|
+
[n.field.typeFont]: _
|
|
365
365
|
};
|
|
366
|
-
s(
|
|
366
|
+
s(v);
|
|
367
367
|
},
|
|
368
368
|
subtitle: n.label
|
|
369
369
|
}
|
|
@@ -372,12 +372,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
372
372
|
return /* @__PURE__ */ t.jsx(
|
|
373
373
|
tt,
|
|
374
374
|
{
|
|
375
|
-
onChange: (
|
|
376
|
-
const
|
|
375
|
+
onChange: (_) => {
|
|
376
|
+
const v = {
|
|
377
377
|
...e,
|
|
378
|
-
[n.field]:
|
|
378
|
+
[n.field]: _
|
|
379
379
|
};
|
|
380
|
-
s(
|
|
380
|
+
s(v);
|
|
381
381
|
},
|
|
382
382
|
value: e[n.field] || "",
|
|
383
383
|
label: n.label,
|
|
@@ -389,12 +389,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
389
389
|
/* @__PURE__ */ t.jsx(
|
|
390
390
|
tt,
|
|
391
391
|
{
|
|
392
|
-
onChange: (
|
|
393
|
-
const
|
|
392
|
+
onChange: (_) => {
|
|
393
|
+
const v = {
|
|
394
394
|
...e,
|
|
395
|
-
[n.field.text]:
|
|
395
|
+
[n.field.text]: _
|
|
396
396
|
};
|
|
397
|
-
s(
|
|
397
|
+
s(v);
|
|
398
398
|
},
|
|
399
399
|
value: e[n.field.text] || "",
|
|
400
400
|
label: n.inputLabel,
|
|
@@ -406,12 +406,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
406
406
|
{
|
|
407
407
|
current: !!e[n.field.switch] || !1,
|
|
408
408
|
label: n.switchLabel,
|
|
409
|
-
onChange: (
|
|
410
|
-
const
|
|
409
|
+
onChange: (_) => {
|
|
410
|
+
const v = {
|
|
411
411
|
...e,
|
|
412
|
-
[n.field.switch]:
|
|
412
|
+
[n.field.switch]: _
|
|
413
413
|
};
|
|
414
|
-
s(
|
|
414
|
+
s(v);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
)
|
|
@@ -421,12 +421,12 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
421
421
|
Ge,
|
|
422
422
|
{
|
|
423
423
|
items: e[n.field] || [],
|
|
424
|
-
setItems: (
|
|
425
|
-
const
|
|
424
|
+
setItems: (_) => {
|
|
425
|
+
const v = {
|
|
426
426
|
...e,
|
|
427
|
-
[n.field]:
|
|
427
|
+
[n.field]: _
|
|
428
428
|
};
|
|
429
|
-
s(
|
|
429
|
+
s(v);
|
|
430
430
|
},
|
|
431
431
|
itemsType: "select",
|
|
432
432
|
draggable: n.draggable || !1,
|
|
@@ -443,25 +443,25 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
443
443
|
et,
|
|
444
444
|
{
|
|
445
445
|
options: n.itemsOptions,
|
|
446
|
-
onChange: (
|
|
447
|
-
const
|
|
446
|
+
onChange: (_) => {
|
|
447
|
+
const v = {
|
|
448
448
|
...e,
|
|
449
|
-
[n.field]:
|
|
449
|
+
[n.field]: _
|
|
450
450
|
};
|
|
451
|
-
s(
|
|
451
|
+
s(v);
|
|
452
452
|
},
|
|
453
453
|
label: n.label,
|
|
454
454
|
value: e[n.field] || "String",
|
|
455
455
|
leftAddon: n.leftAddon && n.leftAddon === "icon" && /* @__PURE__ */ t.jsx(b, { name: e[n.field] }),
|
|
456
456
|
switcher: n.switcher ? {
|
|
457
457
|
value: !!e[n.switcher],
|
|
458
|
-
onChange: (
|
|
458
|
+
onChange: (_) => {
|
|
459
459
|
if (n.switcher === "isActive") {
|
|
460
|
-
const
|
|
460
|
+
const v = {
|
|
461
461
|
...e,
|
|
462
|
-
[n.switcher]:
|
|
462
|
+
[n.switcher]: _
|
|
463
463
|
};
|
|
464
|
-
s(
|
|
464
|
+
s(v);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
} : void 0
|
|
@@ -476,8 +476,8 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
476
476
|
other: ze,
|
|
477
477
|
subtitle: Fe,
|
|
478
478
|
items: Ve
|
|
479
|
-
}, Tt = (
|
|
480
|
-
const { items: a, title: e = "Other" } =
|
|
479
|
+
}, Tt = (d) => {
|
|
480
|
+
const { items: a, title: e = "Other" } = d;
|
|
481
481
|
return /* @__PURE__ */ t.jsxs("div", { className: At.other, children: [
|
|
482
482
|
/* @__PURE__ */ t.jsx("h5", { className: At.subtitle, children: e }),
|
|
483
483
|
/* @__PURE__ */ t.jsx("div", { className: At.items, children: a.map((s, i) => /* @__PURE__ */ t.jsx(
|
|
@@ -493,7 +493,7 @@ const Xt = "_wrapper_1ibay_2", Wt = "_alignmentBlock_1ibay_8", Jt = "_title_1iba
|
|
|
493
493
|
)) })
|
|
494
494
|
] });
|
|
495
495
|
};
|
|
496
|
-
function Ye({ product:
|
|
496
|
+
function Ye({ product: d, children: a }) {
|
|
497
497
|
const {
|
|
498
498
|
attributes: e,
|
|
499
499
|
listeners: s,
|
|
@@ -502,7 +502,7 @@ function Ye({ product: u, children: a }) {
|
|
|
502
502
|
transition: l,
|
|
503
503
|
isDragging: o
|
|
504
504
|
} = Ct({
|
|
505
|
-
id:
|
|
505
|
+
id: d.id
|
|
506
506
|
}), n = {
|
|
507
507
|
transform: St.Transform.toString(c),
|
|
508
508
|
transition: l
|
|
@@ -519,7 +519,7 @@ function Ye({ product: u, children: a }) {
|
|
|
519
519
|
}
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
|
-
const Ge = (
|
|
522
|
+
const Ge = (d) => {
|
|
523
523
|
const {
|
|
524
524
|
isActiveItems: a,
|
|
525
525
|
setIsActiveItems: e,
|
|
@@ -529,23 +529,23 @@ const Ge = (u) => {
|
|
|
529
529
|
title: l,
|
|
530
530
|
subtitle: o,
|
|
531
531
|
editable: n = !0,
|
|
532
|
-
draggable:
|
|
533
|
-
withImage:
|
|
534
|
-
deletable:
|
|
532
|
+
draggable: _ = !1,
|
|
533
|
+
withImage: v = !1,
|
|
534
|
+
deletable: g = !0,
|
|
535
535
|
addable: r = !0,
|
|
536
|
-
itemsType:
|
|
537
|
-
itemsPlaceholder:
|
|
538
|
-
itemsOptions:
|
|
539
|
-
hasRangeSelector:
|
|
536
|
+
itemsType: k,
|
|
537
|
+
itemsPlaceholder: p = "",
|
|
538
|
+
itemsOptions: m,
|
|
539
|
+
hasRangeSelector: $ = !1,
|
|
540
540
|
rangeSelectorOptions: H,
|
|
541
|
-
modalOptions:
|
|
542
|
-
addableOptions:
|
|
543
|
-
limit:
|
|
541
|
+
modalOptions: q,
|
|
542
|
+
addableOptions: u = {},
|
|
543
|
+
limit: S,
|
|
544
544
|
autoInterval: E
|
|
545
|
-
} =
|
|
545
|
+
} = d, [F, B] = f.useState(null), [j, P] = f.useState({
|
|
546
546
|
top: 0,
|
|
547
547
|
left: 0
|
|
548
|
-
}), [x, I] = f.useState(null),
|
|
548
|
+
}), [x, I] = f.useState(null), w = f.useRef(null), [L, A] = f.useState(!1), D = yt(
|
|
549
549
|
kt(wt, {
|
|
550
550
|
activationConstraint: {
|
|
551
551
|
distance: 5
|
|
@@ -553,41 +553,41 @@ const Ge = (u) => {
|
|
|
553
553
|
})
|
|
554
554
|
);
|
|
555
555
|
f.useEffect(() => {
|
|
556
|
-
const
|
|
557
|
-
|
|
556
|
+
const h = () => {
|
|
557
|
+
B(null), A(!1);
|
|
558
558
|
};
|
|
559
|
-
return document.body.addEventListener("click",
|
|
560
|
-
|
|
559
|
+
return document.body.addEventListener("click", h), B(null), A(!1), () => {
|
|
560
|
+
B(null), A(!1), document.body.removeEventListener("click", h);
|
|
561
561
|
};
|
|
562
562
|
}, []), f.useEffect(() => {
|
|
563
563
|
if (F) {
|
|
564
|
-
const
|
|
565
|
-
i(
|
|
564
|
+
const h = [...s].map((N) => N.id === F.id ? F : N);
|
|
565
|
+
i(h);
|
|
566
566
|
}
|
|
567
567
|
}, [F]), f.useEffect(() => {
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
let
|
|
571
|
-
|
|
572
|
-
top:
|
|
568
|
+
if (w.current && x) {
|
|
569
|
+
const h = w.current.getBoundingClientRect().height, N = window.innerHeight;
|
|
570
|
+
let O = x.top;
|
|
571
|
+
O + h > N + window.scrollY - 200 && (O = N + window.scrollY - h - 200), O < 0 && (O = 10), P({
|
|
572
|
+
top: O,
|
|
573
573
|
left: x.left
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
|
-
}, [
|
|
577
|
-
const nt = (
|
|
578
|
-
|
|
579
|
-
const
|
|
576
|
+
}, [w.current, x]);
|
|
577
|
+
const nt = (h, N) => {
|
|
578
|
+
h.stopPropagation();
|
|
579
|
+
const O = h.target.getBoundingClientRect();
|
|
580
580
|
I({
|
|
581
|
-
top:
|
|
582
|
-
left:
|
|
583
|
-
}),
|
|
581
|
+
top: O.top + window.scrollY - 70,
|
|
582
|
+
left: O.left - (r ? 30 : 65)
|
|
583
|
+
}), B(N), A(!0);
|
|
584
584
|
};
|
|
585
|
-
function dt(
|
|
586
|
-
if (
|
|
587
|
-
return
|
|
585
|
+
function dt(h) {
|
|
586
|
+
if (v)
|
|
587
|
+
return h ? /* @__PURE__ */ t.jsx(
|
|
588
588
|
"img",
|
|
589
589
|
{
|
|
590
|
-
src: `https://imagedelivery.net/${
|
|
590
|
+
src: `https://imagedelivery.net/${h[0]}/w=1000`,
|
|
591
591
|
alt: "image",
|
|
592
592
|
width: 16,
|
|
593
593
|
height: 16
|
|
@@ -602,19 +602,19 @@ const Ge = (u) => {
|
|
|
602
602
|
}
|
|
603
603
|
);
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
const { active: N, over:
|
|
607
|
-
if (
|
|
608
|
-
const
|
|
609
|
-
if (
|
|
610
|
-
const
|
|
611
|
-
|
|
605
|
+
const y = (h) => {
|
|
606
|
+
const { active: N, over: O } = h;
|
|
607
|
+
if (O && N.id !== O.id) {
|
|
608
|
+
const R = s.findIndex((M) => M.id === N.id), X = s.findIndex((M) => M.id === O.id);
|
|
609
|
+
if (R !== -1 && X !== -1) {
|
|
610
|
+
const M = [...s], [ut] = M.splice(R, 1);
|
|
611
|
+
M.splice(X, 0, ut), i(M);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
},
|
|
615
|
-
var
|
|
616
|
-
const
|
|
617
|
-
|
|
614
|
+
}, U = (h, N) => {
|
|
615
|
+
var R, X;
|
|
616
|
+
const O = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
617
|
+
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
618
618
|
b,
|
|
619
619
|
{
|
|
620
620
|
name: "DotsSixVertical",
|
|
@@ -623,57 +623,57 @@ const Ge = (u) => {
|
|
|
623
623
|
height: 20
|
|
624
624
|
}
|
|
625
625
|
) }),
|
|
626
|
-
|
|
626
|
+
k === "select" && m && /* @__PURE__ */ t.jsx(
|
|
627
627
|
et,
|
|
628
628
|
{
|
|
629
|
-
onChange: (
|
|
630
|
-
const ut = [...s],
|
|
631
|
-
if (!
|
|
632
|
-
const _t = ut.map((vt) => vt.id ===
|
|
633
|
-
...
|
|
629
|
+
onChange: (M) => {
|
|
630
|
+
const ut = [...s], pt = m.find((vt) => vt.name["en-US"] === M);
|
|
631
|
+
if (!pt) return;
|
|
632
|
+
const _t = ut.map((vt) => vt.id === h.id ? {
|
|
633
|
+
...pt,
|
|
634
634
|
name: {
|
|
635
|
-
"en-US":
|
|
635
|
+
"en-US": M
|
|
636
636
|
}
|
|
637
637
|
} : vt);
|
|
638
|
-
|
|
639
|
-
...
|
|
638
|
+
B({
|
|
639
|
+
...h,
|
|
640
640
|
name: {
|
|
641
|
-
"en-US":
|
|
641
|
+
"en-US": M
|
|
642
642
|
}
|
|
643
643
|
}), i([..._t]);
|
|
644
644
|
},
|
|
645
|
-
value:
|
|
646
|
-
options:
|
|
647
|
-
leftAddon: dt(
|
|
645
|
+
value: h.name["en-US"],
|
|
646
|
+
options: m.filter((M) => !s.find((ut) => ut.name["en-US"] === M.name["en-US"])).map((M) => M.name["en-US"]),
|
|
647
|
+
leftAddon: dt(h.images)
|
|
648
648
|
}
|
|
649
649
|
),
|
|
650
|
-
|
|
650
|
+
k === "input" && /* @__PURE__ */ t.jsx(
|
|
651
651
|
tt,
|
|
652
652
|
{
|
|
653
|
-
onChange: (
|
|
654
|
-
const
|
|
655
|
-
...
|
|
653
|
+
onChange: (M) => {
|
|
654
|
+
const pt = [...s].map((_t) => _t.id === h.id ? {
|
|
655
|
+
...h,
|
|
656
656
|
name: {
|
|
657
|
-
"en-US":
|
|
657
|
+
"en-US": M
|
|
658
658
|
}
|
|
659
659
|
} : _t);
|
|
660
|
-
i([...
|
|
660
|
+
i([...pt]);
|
|
661
661
|
},
|
|
662
|
-
value:
|
|
663
|
-
placeholder:
|
|
662
|
+
value: h.name["en-US"],
|
|
663
|
+
placeholder: p
|
|
664
664
|
}
|
|
665
665
|
),
|
|
666
|
-
|
|
666
|
+
k === "image" && /* @__PURE__ */ t.jsx(
|
|
667
667
|
bt,
|
|
668
668
|
{
|
|
669
|
-
onChange: (
|
|
670
|
-
const
|
|
671
|
-
...
|
|
672
|
-
images:
|
|
669
|
+
onChange: (M) => {
|
|
670
|
+
const pt = [...s].map((_t) => _t.id === h.id ? {
|
|
671
|
+
...h,
|
|
672
|
+
images: M
|
|
673
673
|
} : _t);
|
|
674
|
-
i([...
|
|
674
|
+
i([...pt]);
|
|
675
675
|
},
|
|
676
|
-
activeImage: (
|
|
676
|
+
activeImage: (R = s.find((M) => M.id === h.id)) != null && R.images ? (X = s.find((M) => M.id === h.id)) == null ? void 0 : X.images[0] : void 0
|
|
677
677
|
}
|
|
678
678
|
),
|
|
679
679
|
/* @__PURE__ */ t.jsxs("div", { className: z.buttons, children: [
|
|
@@ -684,12 +684,12 @@ const Ge = (u) => {
|
|
|
684
684
|
hoverable: !0,
|
|
685
685
|
width: 20,
|
|
686
686
|
height: 20,
|
|
687
|
-
onClick: (
|
|
688
|
-
console.log(
|
|
687
|
+
onClick: (M) => {
|
|
688
|
+
console.log(M, h), nt(M, h);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
) }),
|
|
692
|
-
|
|
692
|
+
g && /* @__PURE__ */ t.jsx("div", { className: z.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
693
693
|
b,
|
|
694
694
|
{
|
|
695
695
|
name: "Trash",
|
|
@@ -697,26 +697,26 @@ const Ge = (u) => {
|
|
|
697
697
|
width: 20,
|
|
698
698
|
height: 20,
|
|
699
699
|
fill: "#C12A2A",
|
|
700
|
-
onClick: () => i(s.filter((
|
|
700
|
+
onClick: () => i(s.filter((M) => M.id !== h.id))
|
|
701
701
|
}
|
|
702
702
|
) })
|
|
703
703
|
] })
|
|
704
704
|
] });
|
|
705
|
-
return
|
|
705
|
+
return _ ? /* @__PURE__ */ t.jsx(
|
|
706
706
|
Ye,
|
|
707
707
|
{
|
|
708
|
-
product:
|
|
708
|
+
product: h,
|
|
709
709
|
index: N,
|
|
710
|
-
children:
|
|
710
|
+
children: O
|
|
711
711
|
},
|
|
712
|
-
|
|
712
|
+
h.id
|
|
713
713
|
) : /* @__PURE__ */ t.jsx(
|
|
714
714
|
"div",
|
|
715
715
|
{
|
|
716
716
|
className: z.product,
|
|
717
|
-
children:
|
|
717
|
+
children: O
|
|
718
718
|
},
|
|
719
|
-
|
|
719
|
+
h.id
|
|
720
720
|
);
|
|
721
721
|
};
|
|
722
722
|
return /* @__PURE__ */ t.jsxs("div", { className: z.productsBlock, children: [
|
|
@@ -726,39 +726,39 @@ const Ge = (u) => {
|
|
|
726
726
|
st,
|
|
727
727
|
{
|
|
728
728
|
current: a,
|
|
729
|
-
onChange: (
|
|
729
|
+
onChange: (h) => e == null ? void 0 : e(h)
|
|
730
730
|
}
|
|
731
731
|
)
|
|
732
732
|
] }),
|
|
733
|
-
F && n &&
|
|
734
|
-
|
|
733
|
+
F && n && q && L && /* @__PURE__ */ t.jsx(
|
|
734
|
+
Re,
|
|
735
735
|
{
|
|
736
|
-
ref:
|
|
736
|
+
ref: w,
|
|
737
737
|
activeItem: F,
|
|
738
|
-
setActiveItem:
|
|
739
|
-
popupPosition:
|
|
740
|
-
modalOptions:
|
|
741
|
-
setIsOpenModal:
|
|
738
|
+
setActiveItem: B,
|
|
739
|
+
popupPosition: j,
|
|
740
|
+
modalOptions: q,
|
|
741
|
+
setIsOpenModal: A
|
|
742
742
|
}
|
|
743
743
|
),
|
|
744
|
-
|
|
744
|
+
$ && H && /* @__PURE__ */ t.jsx(qt, { ...H }),
|
|
745
745
|
/* @__PURE__ */ t.jsxs("div", { className: z.products, children: [
|
|
746
746
|
o && /* @__PURE__ */ t.jsx("h5", { className: z.subtitle, children: o }),
|
|
747
|
-
|
|
747
|
+
_ ? /* @__PURE__ */ t.jsx(
|
|
748
748
|
$t,
|
|
749
749
|
{
|
|
750
|
-
sensors:
|
|
751
|
-
onDragEnd:
|
|
750
|
+
sensors: D,
|
|
751
|
+
onDragEnd: y,
|
|
752
752
|
children: /* @__PURE__ */ t.jsx(
|
|
753
753
|
It,
|
|
754
754
|
{
|
|
755
|
-
items: s.map((
|
|
755
|
+
items: s.map((h) => h.id),
|
|
756
756
|
strategy: Nt,
|
|
757
|
-
children: s.map((
|
|
757
|
+
children: s.map((h, N) => U(h, N))
|
|
758
758
|
}
|
|
759
759
|
)
|
|
760
760
|
}
|
|
761
|
-
) : s.map((
|
|
761
|
+
) : s.map((h, N) => U(h, N)),
|
|
762
762
|
r && /* @__PURE__ */ t.jsx(
|
|
763
763
|
"div",
|
|
764
764
|
{
|
|
@@ -772,37 +772,37 @@ const Ge = (u) => {
|
|
|
772
772
|
{
|
|
773
773
|
withoutHover: !0,
|
|
774
774
|
className: Y(z.button, {
|
|
775
|
-
[z.disabled]: !!(
|
|
775
|
+
[z.disabled]: !!(S && S <= s.length || s.length === (m == null ? void 0 : m.length))
|
|
776
776
|
}),
|
|
777
777
|
size: "s",
|
|
778
|
-
disabled: !!(
|
|
778
|
+
disabled: !!(S && S <= s.length || s.length === (m == null ? void 0 : m.length)),
|
|
779
779
|
onClick: () => {
|
|
780
|
-
const
|
|
780
|
+
const h = [...s];
|
|
781
781
|
let N = null;
|
|
782
|
-
if (
|
|
783
|
-
for (let
|
|
784
|
-
if (!s.find((
|
|
785
|
-
N =
|
|
782
|
+
if (m) {
|
|
783
|
+
for (let O = 0; O < m.length; O++)
|
|
784
|
+
if (!s.find((R) => R.id === m[O].id)) {
|
|
785
|
+
N = m[O];
|
|
786
786
|
break;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
|
|
790
|
-
name: N ? N.name :
|
|
791
|
-
id: (N == null ? void 0 : N.id) ||
|
|
792
|
-
...
|
|
793
|
-
}) :
|
|
789
|
+
k === "select" && m ? h.push({
|
|
790
|
+
name: N ? N.name : m[0].name,
|
|
791
|
+
id: (N == null ? void 0 : N.id) || m[0].id,
|
|
792
|
+
...u
|
|
793
|
+
}) : k === "input" ? h.push({
|
|
794
794
|
name: {
|
|
795
795
|
"en-US": ""
|
|
796
796
|
},
|
|
797
|
-
id:
|
|
798
|
-
...
|
|
799
|
-
}) :
|
|
797
|
+
id: mt(),
|
|
798
|
+
...u
|
|
799
|
+
}) : h.push({
|
|
800
800
|
name: {
|
|
801
801
|
"en-US": `Image ${s.length + 1}`
|
|
802
802
|
},
|
|
803
|
-
id:
|
|
804
|
-
...
|
|
805
|
-
}), i(
|
|
803
|
+
id: mt(),
|
|
804
|
+
...u
|
|
805
|
+
}), i(h);
|
|
806
806
|
},
|
|
807
807
|
style: {
|
|
808
808
|
width: "fit-content"
|
|
@@ -830,7 +830,7 @@ const Ge = (u) => {
|
|
|
830
830
|
label: E.title || "Auto scroll interval",
|
|
831
831
|
type: "number",
|
|
832
832
|
value: String(E.autoInterval),
|
|
833
|
-
onChange: (
|
|
833
|
+
onChange: (h) => E.setAutoInterval(Number(h)),
|
|
834
834
|
min: 0.1,
|
|
835
835
|
max: 100,
|
|
836
836
|
style: {
|
|
@@ -840,7 +840,7 @@ const Ge = (u) => {
|
|
|
840
840
|
}
|
|
841
841
|
)
|
|
842
842
|
] });
|
|
843
|
-
}, Xe = "_title_82zux_1", We = "_subtitle_82zux_5", Je = "_header_82zux_12", Qe = "_text_82zux_13", Ke = "_productsBlock_82zux_14", Ze = "_top_82zux_26", ts = "_itemsBlock_82zux_35", es = "_typeTexts_82zux_41", ss = "_block_82zux_48", ns = "_active_82zux_61", is = "_products_82zux_14", os = "_product_82zux_14", as = "_button_82zux_80", cs = "_disabled_82zux_91", ls = "_image_82zux_95", rs = "_info_82zux_102", ds = "_name_82zux_114", us = "_buttons_82zux_118", _s = "_modal_82zux_125", ms = "_link_82zux_145",
|
|
843
|
+
}, Xe = "_title_82zux_1", We = "_subtitle_82zux_5", Je = "_header_82zux_12", Qe = "_text_82zux_13", Ke = "_productsBlock_82zux_14", Ze = "_top_82zux_26", ts = "_itemsBlock_82zux_35", es = "_typeTexts_82zux_41", ss = "_block_82zux_48", ns = "_active_82zux_61", is = "_products_82zux_14", os = "_product_82zux_14", as = "_button_82zux_80", cs = "_disabled_82zux_91", ls = "_image_82zux_95", rs = "_info_82zux_102", ds = "_name_82zux_114", us = "_buttons_82zux_118", _s = "_modal_82zux_125", ms = "_link_82zux_145", ps = "_modalOptions_82zux_151", hs = "_addButton_82zux_157", fs = "_deleteButton_82zux_179", Z = {
|
|
844
844
|
title: Xe,
|
|
845
845
|
subtitle: We,
|
|
846
846
|
header: Je,
|
|
@@ -861,10 +861,10 @@ const Ge = (u) => {
|
|
|
861
861
|
buttons: us,
|
|
862
862
|
modal: _s,
|
|
863
863
|
link: ms,
|
|
864
|
-
modalOptions:
|
|
865
|
-
addButton:
|
|
864
|
+
modalOptions: ps,
|
|
865
|
+
addButton: hs,
|
|
866
866
|
deleteButton: fs
|
|
867
|
-
}, Ja = (
|
|
867
|
+
}, Ja = (d) => {
|
|
868
868
|
const {
|
|
869
869
|
isActiveItems: a,
|
|
870
870
|
setIsActiveItems: e,
|
|
@@ -874,21 +874,21 @@ const Ge = (u) => {
|
|
|
874
874
|
title: l,
|
|
875
875
|
subtitle: o,
|
|
876
876
|
draggable: n = !1,
|
|
877
|
-
withImage:
|
|
878
|
-
addable:
|
|
879
|
-
itemsOptions:
|
|
877
|
+
withImage: _ = !1,
|
|
878
|
+
addable: v = !0,
|
|
879
|
+
itemsOptions: g,
|
|
880
880
|
hasRangeSelector: r = !1,
|
|
881
|
-
rangeSelectorOptions:
|
|
882
|
-
limit:
|
|
883
|
-
autoScrollInterval:
|
|
884
|
-
deletable:
|
|
885
|
-
} =
|
|
886
|
-
function H(
|
|
887
|
-
if (
|
|
888
|
-
return
|
|
881
|
+
rangeSelectorOptions: k,
|
|
882
|
+
limit: p,
|
|
883
|
+
autoScrollInterval: m,
|
|
884
|
+
deletable: $
|
|
885
|
+
} = d;
|
|
886
|
+
function H(u) {
|
|
887
|
+
if (_)
|
|
888
|
+
return u ? /* @__PURE__ */ t.jsx(
|
|
889
889
|
"img",
|
|
890
890
|
{
|
|
891
|
-
src: `https://imagedelivery.net/${
|
|
891
|
+
src: `https://imagedelivery.net/${u[0]}/w=1000`,
|
|
892
892
|
alt: "image",
|
|
893
893
|
width: 16,
|
|
894
894
|
height: 16
|
|
@@ -903,8 +903,8 @@ const Ge = (u) => {
|
|
|
903
903
|
}
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
|
-
const
|
|
907
|
-
const E =
|
|
906
|
+
const q = (u, S = !1) => {
|
|
907
|
+
const E = g.find((B) => B.id === u);
|
|
908
908
|
if (!E) return;
|
|
909
909
|
const F = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
910
910
|
n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
@@ -919,18 +919,18 @@ const Ge = (u) => {
|
|
|
919
919
|
/* @__PURE__ */ t.jsx(
|
|
920
920
|
et,
|
|
921
921
|
{
|
|
922
|
-
onChange: (
|
|
923
|
-
const
|
|
924
|
-
if (!
|
|
925
|
-
const x =
|
|
922
|
+
onChange: (B) => {
|
|
923
|
+
const j = [...s], P = g.find((w) => w.name === B);
|
|
924
|
+
if (!P) return;
|
|
925
|
+
const x = P.id, I = j.map((w) => w === u ? x : w);
|
|
926
926
|
i([...I]);
|
|
927
927
|
},
|
|
928
928
|
value: E.name,
|
|
929
|
-
options:
|
|
929
|
+
options: g.filter((B) => !s.find((j) => j === B.id)).map((B) => B.name),
|
|
930
930
|
leftAddon: H(E.images)
|
|
931
931
|
}
|
|
932
932
|
),
|
|
933
|
-
|
|
933
|
+
S && /* @__PURE__ */ t.jsx("div", { className: Z.buttons, children: /* @__PURE__ */ t.jsx("div", { className: Z.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
934
934
|
b,
|
|
935
935
|
{
|
|
936
936
|
name: "Trash",
|
|
@@ -938,7 +938,7 @@ const Ge = (u) => {
|
|
|
938
938
|
width: 20,
|
|
939
939
|
height: 20,
|
|
940
940
|
fill: "#C12A2A",
|
|
941
|
-
onClick: () => i(s.filter((
|
|
941
|
+
onClick: () => i(s.filter((B) => B !== u))
|
|
942
942
|
}
|
|
943
943
|
) }) })
|
|
944
944
|
] });
|
|
@@ -948,7 +948,7 @@ const Ge = (u) => {
|
|
|
948
948
|
className: Z.product,
|
|
949
949
|
children: F
|
|
950
950
|
},
|
|
951
|
-
|
|
951
|
+
u
|
|
952
952
|
);
|
|
953
953
|
};
|
|
954
954
|
return /* @__PURE__ */ t.jsxs("div", { className: Z.productsBlock, children: [
|
|
@@ -958,15 +958,15 @@ const Ge = (u) => {
|
|
|
958
958
|
st,
|
|
959
959
|
{
|
|
960
960
|
current: a,
|
|
961
|
-
onChange: (
|
|
961
|
+
onChange: (u) => e == null ? void 0 : e(u)
|
|
962
962
|
}
|
|
963
963
|
)
|
|
964
964
|
] }),
|
|
965
|
-
r &&
|
|
965
|
+
r && k && /* @__PURE__ */ t.jsx(qt, { ...k }),
|
|
966
966
|
/* @__PURE__ */ t.jsxs("div", { className: Z.products, children: [
|
|
967
967
|
o && /* @__PURE__ */ t.jsx("h5", { className: Z.subtitle, children: o }),
|
|
968
|
-
s.map((
|
|
969
|
-
|
|
968
|
+
s.map((u) => q(u, $)),
|
|
969
|
+
v && /* @__PURE__ */ t.jsx(
|
|
970
970
|
"div",
|
|
971
971
|
{
|
|
972
972
|
style: {
|
|
@@ -980,21 +980,21 @@ const Ge = (u) => {
|
|
|
980
980
|
{
|
|
981
981
|
withoutHover: !0,
|
|
982
982
|
className: Y(Z.button, {
|
|
983
|
-
[Z.disabled]: !!(
|
|
983
|
+
[Z.disabled]: !!(p && p <= s.length || s.length === g.length)
|
|
984
984
|
}),
|
|
985
985
|
size: "s",
|
|
986
|
-
disabled: !!(
|
|
986
|
+
disabled: !!(p && p <= s.length || s.length === g.length),
|
|
987
987
|
onClick: () => {
|
|
988
|
-
const
|
|
989
|
-
let
|
|
990
|
-
if (
|
|
991
|
-
for (let E = 0; E <
|
|
992
|
-
if (!s.find((F) => F ===
|
|
993
|
-
|
|
988
|
+
const u = [...s];
|
|
989
|
+
let S = null;
|
|
990
|
+
if (g) {
|
|
991
|
+
for (let E = 0; E < g.length; E++)
|
|
992
|
+
if (!s.find((F) => F === g[E].id)) {
|
|
993
|
+
S = g[E];
|
|
994
994
|
break;
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
|
|
997
|
+
u.push((S == null ? void 0 : S.id) || g[0].id), i(u);
|
|
998
998
|
},
|
|
999
999
|
style: {
|
|
1000
1000
|
width: "fit-content"
|
|
@@ -1016,13 +1016,13 @@ const Ge = (u) => {
|
|
|
1016
1016
|
)
|
|
1017
1017
|
] }),
|
|
1018
1018
|
c !== void 0 && /* @__PURE__ */ t.jsx(Tt, { items: c }),
|
|
1019
|
-
|
|
1019
|
+
m !== void 0 && /* @__PURE__ */ t.jsx(
|
|
1020
1020
|
tt,
|
|
1021
1021
|
{
|
|
1022
1022
|
label: "Auto scroll interval",
|
|
1023
1023
|
type: "number",
|
|
1024
|
-
value: String(
|
|
1025
|
-
onChange: (
|
|
1024
|
+
value: String(m.scrollInterval),
|
|
1025
|
+
onChange: (u) => m.setScrollInterval(Number(u)),
|
|
1026
1026
|
min: 0.1,
|
|
1027
1027
|
max: 100,
|
|
1028
1028
|
style: {
|
|
@@ -1032,7 +1032,7 @@ const Ge = (u) => {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
)
|
|
1034
1034
|
] });
|
|
1035
|
-
}, gs = "_title_roi3a_1", xs = "_subtitle_roi3a_5", bs = "_header_roi3a_12", vs = "_text_roi3a_13", js = "_productsBlock_roi3a_14", ys = "_top_roi3a_26", ks = "_itemsBlock_roi3a_35", $s = "_typeTexts_roi3a_41", Is = "_block_roi3a_48", Ns = "_active_roi3a_61", ws = "_products_roi3a_14", Cs = "_product_roi3a_14", Ss = "_button_roi3a_80", Bs = "_disabled_roi3a_91", Ts = "_image_roi3a_95", Ps = "_info_roi3a_102", As = "_name_roi3a_114", Os = "_buttons_roi3a_118", Ms = "_modal_roi3a_125", qs = "_link_roi3a_145", Es = "_modalOptions_roi3a_151",
|
|
1035
|
+
}, gs = "_title_roi3a_1", xs = "_subtitle_roi3a_5", bs = "_header_roi3a_12", vs = "_text_roi3a_13", js = "_productsBlock_roi3a_14", ys = "_top_roi3a_26", ks = "_itemsBlock_roi3a_35", $s = "_typeTexts_roi3a_41", Is = "_block_roi3a_48", Ns = "_active_roi3a_61", ws = "_products_roi3a_14", Cs = "_product_roi3a_14", Ss = "_button_roi3a_80", Bs = "_disabled_roi3a_91", Ts = "_image_roi3a_95", Ps = "_info_roi3a_102", As = "_name_roi3a_114", Os = "_buttons_roi3a_118", Ms = "_modal_roi3a_125", qs = "_link_roi3a_145", Es = "_modalOptions_roi3a_151", Us = "_addButton_roi3a_164", Ds = "_deleteButton_roi3a_179", Ls = "_closeIcon_roi3a_191", J = {
|
|
1036
1036
|
title: gs,
|
|
1037
1037
|
subtitle: xs,
|
|
1038
1038
|
header: bs,
|
|
@@ -1054,11 +1054,11 @@ const Ge = (u) => {
|
|
|
1054
1054
|
modal: Ms,
|
|
1055
1055
|
link: qs,
|
|
1056
1056
|
modalOptions: Es,
|
|
1057
|
-
addButton:
|
|
1058
|
-
deleteButton:
|
|
1059
|
-
closeIcon:
|
|
1057
|
+
addButton: Us,
|
|
1058
|
+
deleteButton: Ds,
|
|
1059
|
+
closeIcon: Ls
|
|
1060
1060
|
};
|
|
1061
|
-
function
|
|
1061
|
+
function Hs({ product: d, children: a }) {
|
|
1062
1062
|
const {
|
|
1063
1063
|
attributes: e,
|
|
1064
1064
|
listeners: s,
|
|
@@ -1067,7 +1067,7 @@ function Rs({ product: u, children: a }) {
|
|
|
1067
1067
|
transition: l,
|
|
1068
1068
|
isDragging: o
|
|
1069
1069
|
} = Ct({
|
|
1070
|
-
id:
|
|
1070
|
+
id: d.id
|
|
1071
1071
|
}), n = {
|
|
1072
1072
|
transform: St.Transform.toString(c),
|
|
1073
1073
|
transition: l
|
|
@@ -1084,7 +1084,7 @@ function Rs({ product: u, children: a }) {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
);
|
|
1086
1086
|
}
|
|
1087
|
-
const Qa = (
|
|
1087
|
+
const Qa = (d) => {
|
|
1088
1088
|
const {
|
|
1089
1089
|
isActiveItems: a,
|
|
1090
1090
|
setIsActiveItems: e,
|
|
@@ -1094,13 +1094,13 @@ const Qa = (u) => {
|
|
|
1094
1094
|
subtitle: l,
|
|
1095
1095
|
editable: o = !0,
|
|
1096
1096
|
draggable: n = !1,
|
|
1097
|
-
deletable:
|
|
1098
|
-
addable:
|
|
1099
|
-
itemsType:
|
|
1097
|
+
deletable: _ = !0,
|
|
1098
|
+
addable: v = !0,
|
|
1099
|
+
itemsType: g,
|
|
1100
1100
|
itemsOptions: r,
|
|
1101
|
-
addableOptions:
|
|
1102
|
-
limit:
|
|
1103
|
-
} =
|
|
1101
|
+
addableOptions: k = {},
|
|
1102
|
+
limit: p
|
|
1103
|
+
} = d, [m, $] = f.useState(null), [H, q] = f.useState(null), u = f.useRef(null), S = yt(
|
|
1104
1104
|
kt(wt, {
|
|
1105
1105
|
activationConstraint: {
|
|
1106
1106
|
distance: 5
|
|
@@ -1108,30 +1108,30 @@ const Qa = (u) => {
|
|
|
1108
1108
|
})
|
|
1109
1109
|
);
|
|
1110
1110
|
f.useEffect(() => {
|
|
1111
|
-
if (
|
|
1112
|
-
const
|
|
1113
|
-
i(
|
|
1111
|
+
if (m) {
|
|
1112
|
+
const j = [...s].map((P) => P.id === m.id ? m : P);
|
|
1113
|
+
i(j);
|
|
1114
1114
|
}
|
|
1115
|
-
}, [
|
|
1116
|
-
|
|
1117
|
-
}, [
|
|
1118
|
-
const E = (
|
|
1119
|
-
|
|
1120
|
-
const x =
|
|
1121
|
-
|
|
1115
|
+
}, [m]), f.useEffect(() => {
|
|
1116
|
+
u.current && H && (u.current.getBoundingClientRect().height, H.top);
|
|
1117
|
+
}, [u.current, H]);
|
|
1118
|
+
const E = (j, P) => {
|
|
1119
|
+
j.stopPropagation();
|
|
1120
|
+
const x = j.target.getBoundingClientRect();
|
|
1121
|
+
q({
|
|
1122
1122
|
top: x.top + window.scrollY,
|
|
1123
1123
|
left: x.left - 30
|
|
1124
|
-
}),
|
|
1125
|
-
}, F = (
|
|
1126
|
-
const { active:
|
|
1127
|
-
if (x &&
|
|
1128
|
-
const I = s.findIndex((
|
|
1129
|
-
if (I !== -1 &&
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1124
|
+
}), $(P);
|
|
1125
|
+
}, F = (j) => {
|
|
1126
|
+
const { active: P, over: x } = j;
|
|
1127
|
+
if (x && P.id !== x.id) {
|
|
1128
|
+
const I = s.findIndex((L) => L.id === P.id), w = s.findIndex((L) => L.id === x.id);
|
|
1129
|
+
if (I !== -1 && w !== -1) {
|
|
1130
|
+
const L = [...s], [A] = L.splice(I, 1);
|
|
1131
|
+
L.splice(w, 0, A), i(L);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
},
|
|
1134
|
+
}, B = (j, P) => {
|
|
1135
1135
|
const x = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1136
1136
|
n && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1137
1137
|
b,
|
|
@@ -1142,27 +1142,27 @@ const Qa = (u) => {
|
|
|
1142
1142
|
height: 20
|
|
1143
1143
|
}
|
|
1144
1144
|
) }),
|
|
1145
|
-
|
|
1145
|
+
g === "select" && r && /* @__PURE__ */ t.jsx(
|
|
1146
1146
|
et,
|
|
1147
1147
|
{
|
|
1148
1148
|
onChange: (I) => {
|
|
1149
|
-
const
|
|
1150
|
-
if (!
|
|
1151
|
-
const
|
|
1152
|
-
...
|
|
1149
|
+
const w = [...s], L = r.find((D) => D.name === I);
|
|
1150
|
+
if (!L) return;
|
|
1151
|
+
const A = w.map((D) => D.id === j.id ? {
|
|
1152
|
+
...L,
|
|
1153
1153
|
name: {
|
|
1154
1154
|
"en-US": I
|
|
1155
1155
|
}
|
|
1156
|
-
} :
|
|
1157
|
-
|
|
1158
|
-
...
|
|
1156
|
+
} : D);
|
|
1157
|
+
$({
|
|
1158
|
+
...j,
|
|
1159
1159
|
name: {
|
|
1160
1160
|
"en-US": I
|
|
1161
1161
|
}
|
|
1162
|
-
}), i([...
|
|
1162
|
+
}), i([...A]);
|
|
1163
1163
|
},
|
|
1164
|
-
value:
|
|
1165
|
-
options: r.filter((I) => !s.find((
|
|
1164
|
+
value: j.name,
|
|
1165
|
+
options: r.filter((I) => !s.find((w) => w.name === I.name)).map((I) => I.name)
|
|
1166
1166
|
}
|
|
1167
1167
|
),
|
|
1168
1168
|
/* @__PURE__ */ t.jsxs("div", { className: J.buttons, children: [
|
|
@@ -1173,10 +1173,10 @@ const Qa = (u) => {
|
|
|
1173
1173
|
hoverable: !0,
|
|
1174
1174
|
width: 20,
|
|
1175
1175
|
height: 20,
|
|
1176
|
-
onClick: (I) => E(I,
|
|
1176
|
+
onClick: (I) => E(I, j)
|
|
1177
1177
|
}
|
|
1178
1178
|
) }),
|
|
1179
|
-
|
|
1179
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: J.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1180
1180
|
b,
|
|
1181
1181
|
{
|
|
1182
1182
|
name: "Trash",
|
|
@@ -1184,26 +1184,26 @@ const Qa = (u) => {
|
|
|
1184
1184
|
width: 20,
|
|
1185
1185
|
height: 20,
|
|
1186
1186
|
fill: "#C12A2A",
|
|
1187
|
-
onClick: () => i(s.filter((I) => I.id !==
|
|
1187
|
+
onClick: () => i(s.filter((I) => I.id !== j.id))
|
|
1188
1188
|
}
|
|
1189
1189
|
) })
|
|
1190
1190
|
] })
|
|
1191
1191
|
] });
|
|
1192
1192
|
return n ? /* @__PURE__ */ t.jsx(
|
|
1193
|
-
|
|
1193
|
+
Hs,
|
|
1194
1194
|
{
|
|
1195
|
-
product:
|
|
1196
|
-
index:
|
|
1195
|
+
product: j,
|
|
1196
|
+
index: P,
|
|
1197
1197
|
children: x
|
|
1198
1198
|
},
|
|
1199
|
-
|
|
1199
|
+
j.id
|
|
1200
1200
|
) : /* @__PURE__ */ t.jsx(
|
|
1201
1201
|
"div",
|
|
1202
1202
|
{
|
|
1203
1203
|
className: J.product,
|
|
1204
1204
|
children: x
|
|
1205
1205
|
},
|
|
1206
|
-
|
|
1206
|
+
j.id
|
|
1207
1207
|
);
|
|
1208
1208
|
};
|
|
1209
1209
|
return /* @__PURE__ */ t.jsxs("div", { className: J.productsBlock, children: [
|
|
@@ -1213,7 +1213,7 @@ const Qa = (u) => {
|
|
|
1213
1213
|
st,
|
|
1214
1214
|
{
|
|
1215
1215
|
current: a,
|
|
1216
|
-
onChange: (
|
|
1216
|
+
onChange: (j) => e == null ? void 0 : e(j)
|
|
1217
1217
|
}
|
|
1218
1218
|
)
|
|
1219
1219
|
] }),
|
|
@@ -1222,19 +1222,19 @@ const Qa = (u) => {
|
|
|
1222
1222
|
n ? /* @__PURE__ */ t.jsx(
|
|
1223
1223
|
$t,
|
|
1224
1224
|
{
|
|
1225
|
-
sensors:
|
|
1225
|
+
sensors: S,
|
|
1226
1226
|
onDragEnd: F,
|
|
1227
1227
|
children: /* @__PURE__ */ t.jsx(
|
|
1228
1228
|
It,
|
|
1229
1229
|
{
|
|
1230
|
-
items: s.map((
|
|
1230
|
+
items: s.map((j) => j.id),
|
|
1231
1231
|
strategy: Nt,
|
|
1232
|
-
children: s.map((
|
|
1232
|
+
children: s.map((j, P) => B(j, P))
|
|
1233
1233
|
}
|
|
1234
1234
|
)
|
|
1235
1235
|
}
|
|
1236
|
-
) : s.map((
|
|
1237
|
-
|
|
1236
|
+
) : s.map((j, P) => B(j, P)),
|
|
1237
|
+
v && /* @__PURE__ */ t.jsx(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
1240
|
style: {
|
|
@@ -1247,25 +1247,25 @@ const Qa = (u) => {
|
|
|
1247
1247
|
{
|
|
1248
1248
|
withoutHover: !0,
|
|
1249
1249
|
className: Y(J.button, {
|
|
1250
|
-
[J.disabled]: !!(
|
|
1250
|
+
[J.disabled]: !!(p && p <= s.length || s.length === (r == null ? void 0 : r.length))
|
|
1251
1251
|
}),
|
|
1252
1252
|
size: "s",
|
|
1253
|
-
disabled: !!(
|
|
1253
|
+
disabled: !!(p && p <= s.length || s.length === (r == null ? void 0 : r.length)),
|
|
1254
1254
|
onClick: () => {
|
|
1255
|
-
const
|
|
1256
|
-
let
|
|
1255
|
+
const j = [...s];
|
|
1256
|
+
let P = null;
|
|
1257
1257
|
if (r) {
|
|
1258
1258
|
for (let x = 0; x < r.length; x++)
|
|
1259
1259
|
if (!s.find((I) => I.id === r[x].id)) {
|
|
1260
|
-
|
|
1260
|
+
P = r[x];
|
|
1261
1261
|
break;
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
|
|
1265
|
-
name:
|
|
1266
|
-
id: (
|
|
1267
|
-
...
|
|
1268
|
-
}), i(
|
|
1264
|
+
g === "select" && r && j.push({
|
|
1265
|
+
name: P ? P.name : r[0].name,
|
|
1266
|
+
id: (P == null ? void 0 : P.id) || r[0].id,
|
|
1267
|
+
...k
|
|
1268
|
+
}), i(j);
|
|
1269
1269
|
},
|
|
1270
1270
|
style: {
|
|
1271
1271
|
width: "fit-content"
|
|
@@ -1287,8 +1287,8 @@ const Qa = (u) => {
|
|
|
1287
1287
|
)
|
|
1288
1288
|
] })
|
|
1289
1289
|
] });
|
|
1290
|
-
},
|
|
1291
|
-
title:
|
|
1290
|
+
}, Rs = "_title_1vfw9_1", zs = "_subtitle_1vfw9_5", Fs = "_header_1vfw9_12", Vs = "_text_1vfw9_13", Ys = "_productsBlock_1vfw9_14", Gs = "_top_1vfw9_26", Xs = "_itemsBlock_1vfw9_35", Ws = "_typeTexts_1vfw9_41", Js = "_block_1vfw9_48", Qs = "_active_1vfw9_61", Ks = "_products_1vfw9_14", Zs = "_product_1vfw9_14", tn = "_button_1vfw9_80", en = "_disabled_1vfw9_91", sn = "_image_1vfw9_95", nn = "_info_1vfw9_102", on = "_name_1vfw9_114", an = "_buttons_1vfw9_118", cn = "_modal_1vfw9_125", ln = "_link_1vfw9_145", rn = "_modalOptions_1vfw9_151", dn = "_addButton_1vfw9_164", un = "_deleteButton_1vfw9_179", _n = "_closeIcon_1vfw9_191", V = {
|
|
1291
|
+
title: Rs,
|
|
1292
1292
|
subtitle: zs,
|
|
1293
1293
|
header: Fs,
|
|
1294
1294
|
text: Vs,
|
|
@@ -1313,8 +1313,8 @@ const Qa = (u) => {
|
|
|
1313
1313
|
deleteButton: un,
|
|
1314
1314
|
closeIcon: _n
|
|
1315
1315
|
}, mn = f.forwardRef(
|
|
1316
|
-
(
|
|
1317
|
-
const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } =
|
|
1316
|
+
(d, a) => {
|
|
1317
|
+
const { activeItem: e, setActiveItem: s, popupPosition: i, modalOptions: c, setIsOpenModal: l } = d;
|
|
1318
1318
|
return /* @__PURE__ */ t.jsxs(
|
|
1319
1319
|
"div",
|
|
1320
1320
|
{
|
|
@@ -1351,44 +1351,44 @@ const Qa = (u) => {
|
|
|
1351
1351
|
label: "Put up an attractive image",
|
|
1352
1352
|
activeImage: e[o.field],
|
|
1353
1353
|
onChange: (n) => {
|
|
1354
|
-
const
|
|
1354
|
+
const _ = {
|
|
1355
1355
|
...e,
|
|
1356
1356
|
[o.field]: n
|
|
1357
1357
|
};
|
|
1358
|
-
s(
|
|
1358
|
+
s(_);
|
|
1359
1359
|
}
|
|
1360
1360
|
},
|
|
1361
1361
|
String(o.field)
|
|
1362
1362
|
);
|
|
1363
1363
|
if (o.type === "text")
|
|
1364
1364
|
return /* @__PURE__ */ t.jsx(
|
|
1365
|
-
|
|
1365
|
+
Rt,
|
|
1366
1366
|
{
|
|
1367
1367
|
typesText: e[o.field.type],
|
|
1368
1368
|
setTypesText: (n) => {
|
|
1369
|
-
const
|
|
1369
|
+
const _ = {
|
|
1370
1370
|
...e,
|
|
1371
1371
|
[o.field.type]: n
|
|
1372
1372
|
};
|
|
1373
|
-
s(
|
|
1373
|
+
s(_);
|
|
1374
1374
|
},
|
|
1375
1375
|
text: e[o.field.text]["en-US"] || "",
|
|
1376
1376
|
setText: (n) => {
|
|
1377
|
-
const
|
|
1377
|
+
const _ = {
|
|
1378
1378
|
...e,
|
|
1379
1379
|
[o.field.text]: {
|
|
1380
1380
|
"en-US": n
|
|
1381
1381
|
}
|
|
1382
1382
|
};
|
|
1383
|
-
s(
|
|
1383
|
+
s(_);
|
|
1384
1384
|
},
|
|
1385
1385
|
typeFont: e[o.field.type],
|
|
1386
1386
|
setTypeFont: (n) => {
|
|
1387
|
-
const
|
|
1387
|
+
const _ = {
|
|
1388
1388
|
...e,
|
|
1389
1389
|
[o.field.type]: n
|
|
1390
1390
|
};
|
|
1391
|
-
s(
|
|
1391
|
+
s(_);
|
|
1392
1392
|
},
|
|
1393
1393
|
subtitle: o.label
|
|
1394
1394
|
}
|
|
@@ -1398,11 +1398,11 @@ const Qa = (u) => {
|
|
|
1398
1398
|
tt,
|
|
1399
1399
|
{
|
|
1400
1400
|
onChange: (n) => {
|
|
1401
|
-
const
|
|
1401
|
+
const _ = {
|
|
1402
1402
|
...e,
|
|
1403
1403
|
[o.field]: n
|
|
1404
1404
|
};
|
|
1405
|
-
s(
|
|
1405
|
+
s(_);
|
|
1406
1406
|
},
|
|
1407
1407
|
value: e[o.field] || "",
|
|
1408
1408
|
label: o.label,
|
|
@@ -1415,11 +1415,11 @@ const Qa = (u) => {
|
|
|
1415
1415
|
tt,
|
|
1416
1416
|
{
|
|
1417
1417
|
onChange: (n) => {
|
|
1418
|
-
const
|
|
1418
|
+
const _ = {
|
|
1419
1419
|
...e,
|
|
1420
1420
|
[o.field.text]: n
|
|
1421
1421
|
};
|
|
1422
|
-
s(
|
|
1422
|
+
s(_);
|
|
1423
1423
|
},
|
|
1424
1424
|
value: e[o.field.text] || "",
|
|
1425
1425
|
label: o.inputLabel,
|
|
@@ -1432,11 +1432,11 @@ const Qa = (u) => {
|
|
|
1432
1432
|
current: !!e[o.field.switch] || !1,
|
|
1433
1433
|
label: o.switchLabel,
|
|
1434
1434
|
onChange: (n) => {
|
|
1435
|
-
const
|
|
1435
|
+
const _ = {
|
|
1436
1436
|
...e,
|
|
1437
1437
|
[o.field.switch]: n
|
|
1438
1438
|
};
|
|
1439
|
-
s(
|
|
1439
|
+
s(_);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
@@ -1447,11 +1447,11 @@ const Qa = (u) => {
|
|
|
1447
1447
|
{
|
|
1448
1448
|
options: o.itemsOptions,
|
|
1449
1449
|
onChange: (n) => {
|
|
1450
|
-
const
|
|
1450
|
+
const _ = {
|
|
1451
1451
|
...e,
|
|
1452
1452
|
[o.field]: n
|
|
1453
1453
|
};
|
|
1454
|
-
s(
|
|
1454
|
+
s(_);
|
|
1455
1455
|
},
|
|
1456
1456
|
label: o.label,
|
|
1457
1457
|
value: e[o.field] || "String",
|
|
@@ -1464,10 +1464,10 @@ const Qa = (u) => {
|
|
|
1464
1464
|
);
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
|
-
function
|
|
1468
|
-
const { product: a, children: e } =
|
|
1467
|
+
function pn(d) {
|
|
1468
|
+
const { product: a, children: e } = d, { attributes: s, listeners: i, setNodeRef: c, transform: l, transition: o, isDragging: n } = Ct({
|
|
1469
1469
|
id: a.id
|
|
1470
|
-
}),
|
|
1470
|
+
}), _ = {
|
|
1471
1471
|
transform: St.Transform.toString(l),
|
|
1472
1472
|
transition: o
|
|
1473
1473
|
};
|
|
@@ -1475,7 +1475,7 @@ function hn(u) {
|
|
|
1475
1475
|
"div",
|
|
1476
1476
|
{
|
|
1477
1477
|
ref: c,
|
|
1478
|
-
style:
|
|
1478
|
+
style: _,
|
|
1479
1479
|
className: `${V.product} ${n ? V.dragging : ""}`,
|
|
1480
1480
|
...s,
|
|
1481
1481
|
...i,
|
|
@@ -1483,7 +1483,7 @@ function hn(u) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
);
|
|
1485
1485
|
}
|
|
1486
|
-
const Ka = (
|
|
1486
|
+
const Ka = (d) => {
|
|
1487
1487
|
const {
|
|
1488
1488
|
isActiveItems: a,
|
|
1489
1489
|
setIsActiveItems: e,
|
|
@@ -1493,21 +1493,21 @@ const Ka = (u) => {
|
|
|
1493
1493
|
title: l,
|
|
1494
1494
|
subtitle: o,
|
|
1495
1495
|
editable: n = !0,
|
|
1496
|
-
draggable:
|
|
1497
|
-
withImage:
|
|
1498
|
-
deletable:
|
|
1496
|
+
draggable: _ = !1,
|
|
1497
|
+
withImage: v = !1,
|
|
1498
|
+
deletable: g = !0,
|
|
1499
1499
|
addable: r = !0,
|
|
1500
|
-
itemsType:
|
|
1501
|
-
itemsPlaceholder:
|
|
1502
|
-
itemsOptions:
|
|
1503
|
-
hasRangeSelector:
|
|
1500
|
+
itemsType: k,
|
|
1501
|
+
itemsPlaceholder: p = "",
|
|
1502
|
+
itemsOptions: m,
|
|
1503
|
+
hasRangeSelector: $ = !1,
|
|
1504
1504
|
rangeSelectorOptions: H,
|
|
1505
|
-
modalOptions:
|
|
1506
|
-
addableOptions:
|
|
1507
|
-
} =
|
|
1505
|
+
modalOptions: q,
|
|
1506
|
+
addableOptions: u = {}
|
|
1507
|
+
} = d, [S, E] = f.useState(null), [F, B] = f.useState({
|
|
1508
1508
|
top: 0,
|
|
1509
1509
|
left: 0
|
|
1510
|
-
}), [
|
|
1510
|
+
}), [j, P] = f.useState(null), x = f.useRef(null), [I, w] = f.useState(!1), L = yt(
|
|
1511
1511
|
kt(wt, {
|
|
1512
1512
|
activationConstraint: {
|
|
1513
1513
|
distance: 5
|
|
@@ -1515,41 +1515,41 @@ const Ka = (u) => {
|
|
|
1515
1515
|
})
|
|
1516
1516
|
);
|
|
1517
1517
|
f.useEffect(() => {
|
|
1518
|
-
const
|
|
1519
|
-
E(null),
|
|
1518
|
+
const y = () => {
|
|
1519
|
+
E(null), w(!1);
|
|
1520
1520
|
};
|
|
1521
|
-
return document.body.addEventListener("click",
|
|
1522
|
-
E(null),
|
|
1521
|
+
return document.body.addEventListener("click", y), E(null), w(!1), () => {
|
|
1522
|
+
E(null), w(!1), document.body.removeEventListener("click", y);
|
|
1523
1523
|
};
|
|
1524
1524
|
}, []), f.useEffect(() => {
|
|
1525
|
-
if (
|
|
1526
|
-
const
|
|
1527
|
-
i(
|
|
1525
|
+
if (S) {
|
|
1526
|
+
const y = [...s].map((U) => U.id === S.id ? S : U);
|
|
1527
|
+
i(y);
|
|
1528
1528
|
}
|
|
1529
|
-
}, [
|
|
1530
|
-
if (x.current &&
|
|
1531
|
-
const
|
|
1532
|
-
let
|
|
1533
|
-
|
|
1534
|
-
top:
|
|
1535
|
-
left:
|
|
1529
|
+
}, [S]), f.useEffect(() => {
|
|
1530
|
+
if (x.current && j) {
|
|
1531
|
+
const y = x.current.getBoundingClientRect().height, U = window.innerHeight;
|
|
1532
|
+
let h = j.top;
|
|
1533
|
+
h + y > U + window.scrollY - 200 && (h = U + window.scrollY - y - 200), h < 0 && (h = 10), B({
|
|
1534
|
+
top: h,
|
|
1535
|
+
left: j.left
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
|
-
}, [x.current,
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
const
|
|
1542
|
-
|
|
1543
|
-
top:
|
|
1544
|
-
left:
|
|
1545
|
-
}), E(
|
|
1538
|
+
}, [x.current, j]);
|
|
1539
|
+
const A = (y, U) => {
|
|
1540
|
+
y.stopPropagation();
|
|
1541
|
+
const h = y.target.getBoundingClientRect();
|
|
1542
|
+
P({
|
|
1543
|
+
top: h.top + window.scrollY,
|
|
1544
|
+
left: h.left - 30
|
|
1545
|
+
}), E(U), w(!0);
|
|
1546
1546
|
};
|
|
1547
|
-
function
|
|
1548
|
-
if (
|
|
1549
|
-
return
|
|
1547
|
+
function D(y) {
|
|
1548
|
+
if (v)
|
|
1549
|
+
return y ? /* @__PURE__ */ t.jsx(
|
|
1550
1550
|
"img",
|
|
1551
1551
|
{
|
|
1552
|
-
src: `https://imagedelivery.net/${
|
|
1552
|
+
src: `https://imagedelivery.net/${y[0]}/w=1000`,
|
|
1553
1553
|
alt: "image",
|
|
1554
1554
|
width: 16,
|
|
1555
1555
|
height: 16
|
|
@@ -1564,19 +1564,19 @@ const Ka = (u) => {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
);
|
|
1566
1566
|
}
|
|
1567
|
-
const nt = (
|
|
1568
|
-
const { active:
|
|
1569
|
-
if (
|
|
1570
|
-
const N = s.findIndex((
|
|
1571
|
-
if (N !== -1 &&
|
|
1572
|
-
const
|
|
1573
|
-
|
|
1567
|
+
const nt = (y) => {
|
|
1568
|
+
const { active: U, over: h } = y;
|
|
1569
|
+
if (h && U.id !== h.id) {
|
|
1570
|
+
const N = s.findIndex((R) => R.id === U.id), O = s.findIndex((R) => R.id === h.id);
|
|
1571
|
+
if (N !== -1 && O !== -1) {
|
|
1572
|
+
const R = [...s], [X] = R.splice(N, 1);
|
|
1573
|
+
R.splice(O, 0, X), i(R);
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
|
-
}, dt = (
|
|
1577
|
-
var
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1576
|
+
}, dt = (y) => {
|
|
1577
|
+
var h;
|
|
1578
|
+
const U = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1579
|
+
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1580
1580
|
b,
|
|
1581
1581
|
{
|
|
1582
1582
|
name: "DotsSixVertical",
|
|
@@ -1585,57 +1585,57 @@ const Ka = (u) => {
|
|
|
1585
1585
|
height: 20
|
|
1586
1586
|
}
|
|
1587
1587
|
) }),
|
|
1588
|
-
|
|
1588
|
+
k === "select" && m && /* @__PURE__ */ t.jsx(
|
|
1589
1589
|
et,
|
|
1590
1590
|
{
|
|
1591
1591
|
onChange: (N) => {
|
|
1592
|
-
const
|
|
1593
|
-
...
|
|
1592
|
+
const R = [...s].map((X) => X.id === y.id ? {
|
|
1593
|
+
...y,
|
|
1594
1594
|
name: {
|
|
1595
1595
|
"en-US": N
|
|
1596
1596
|
}
|
|
1597
1597
|
} : X);
|
|
1598
1598
|
E({
|
|
1599
|
-
...
|
|
1599
|
+
...y,
|
|
1600
1600
|
name: {
|
|
1601
1601
|
"en-US": N
|
|
1602
1602
|
}
|
|
1603
|
-
}), i([...
|
|
1603
|
+
}), i([...R]);
|
|
1604
1604
|
},
|
|
1605
|
-
value:
|
|
1606
|
-
options:
|
|
1607
|
-
(N) => !s.find((
|
|
1605
|
+
value: y.name["en-US"],
|
|
1606
|
+
options: m.filter(
|
|
1607
|
+
(N) => !s.find((O) => O.name["en-US"] === N)
|
|
1608
1608
|
),
|
|
1609
|
-
leftAddon:
|
|
1609
|
+
leftAddon: D(y.images)
|
|
1610
1610
|
}
|
|
1611
1611
|
),
|
|
1612
|
-
|
|
1612
|
+
k === "input" && /* @__PURE__ */ t.jsx(
|
|
1613
1613
|
tt,
|
|
1614
1614
|
{
|
|
1615
1615
|
onChange: (N) => {
|
|
1616
|
-
const
|
|
1617
|
-
...
|
|
1616
|
+
const R = [...s].map((X) => X.id === y.id ? {
|
|
1617
|
+
...y,
|
|
1618
1618
|
name: {
|
|
1619
1619
|
"en-US": N
|
|
1620
1620
|
}
|
|
1621
1621
|
} : X);
|
|
1622
|
-
i([...
|
|
1622
|
+
i([...R]);
|
|
1623
1623
|
},
|
|
1624
|
-
value:
|
|
1625
|
-
placeholder:
|
|
1624
|
+
value: y.name["en-US"],
|
|
1625
|
+
placeholder: p
|
|
1626
1626
|
}
|
|
1627
1627
|
),
|
|
1628
|
-
|
|
1628
|
+
k === "image" && /* @__PURE__ */ t.jsx(
|
|
1629
1629
|
bt,
|
|
1630
1630
|
{
|
|
1631
1631
|
onChange: (N) => {
|
|
1632
|
-
const
|
|
1633
|
-
...
|
|
1632
|
+
const R = [...s].map((X) => X.id === y.id ? {
|
|
1633
|
+
...y,
|
|
1634
1634
|
images: N
|
|
1635
1635
|
} : X);
|
|
1636
|
-
i([...
|
|
1636
|
+
i([...R]);
|
|
1637
1637
|
},
|
|
1638
|
-
activeImage: (
|
|
1638
|
+
activeImage: (h = s.find((N) => N.id === y.id)) == null ? void 0 : h.images[0]
|
|
1639
1639
|
}
|
|
1640
1640
|
),
|
|
1641
1641
|
/* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
|
|
@@ -1646,10 +1646,10 @@ const Ka = (u) => {
|
|
|
1646
1646
|
hoverable: !0,
|
|
1647
1647
|
width: 20,
|
|
1648
1648
|
height: 20,
|
|
1649
|
-
onClick: (N) =>
|
|
1649
|
+
onClick: (N) => A(N, y)
|
|
1650
1650
|
}
|
|
1651
1651
|
) }),
|
|
1652
|
-
|
|
1652
|
+
g && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1653
1653
|
b,
|
|
1654
1654
|
{
|
|
1655
1655
|
name: "Trash",
|
|
@@ -1657,25 +1657,25 @@ const Ka = (u) => {
|
|
|
1657
1657
|
width: 20,
|
|
1658
1658
|
height: 20,
|
|
1659
1659
|
fill: "#C12A2A",
|
|
1660
|
-
onClick: () => i(s.filter((N) => N.id !==
|
|
1660
|
+
onClick: () => i(s.filter((N) => N.id !== y.id))
|
|
1661
1661
|
}
|
|
1662
1662
|
) })
|
|
1663
1663
|
] })
|
|
1664
1664
|
] });
|
|
1665
|
-
return
|
|
1666
|
-
|
|
1665
|
+
return _ ? /* @__PURE__ */ t.jsx(
|
|
1666
|
+
pn,
|
|
1667
1667
|
{
|
|
1668
|
-
product:
|
|
1669
|
-
children:
|
|
1668
|
+
product: y,
|
|
1669
|
+
children: U
|
|
1670
1670
|
},
|
|
1671
|
-
|
|
1671
|
+
y.id
|
|
1672
1672
|
) : /* @__PURE__ */ t.jsx(
|
|
1673
1673
|
"div",
|
|
1674
1674
|
{
|
|
1675
1675
|
className: V.product,
|
|
1676
|
-
children:
|
|
1676
|
+
children: U
|
|
1677
1677
|
},
|
|
1678
|
-
|
|
1678
|
+
y.id
|
|
1679
1679
|
);
|
|
1680
1680
|
};
|
|
1681
1681
|
return /* @__PURE__ */ t.jsxs("div", { className: V.productsBlock, children: [
|
|
@@ -1685,39 +1685,39 @@ const Ka = (u) => {
|
|
|
1685
1685
|
st,
|
|
1686
1686
|
{
|
|
1687
1687
|
current: a,
|
|
1688
|
-
onChange: (
|
|
1688
|
+
onChange: (y) => e == null ? void 0 : e(y)
|
|
1689
1689
|
}
|
|
1690
1690
|
)
|
|
1691
1691
|
] }),
|
|
1692
|
-
|
|
1692
|
+
S && n && q && I && /* @__PURE__ */ t.jsx(
|
|
1693
1693
|
mn,
|
|
1694
1694
|
{
|
|
1695
1695
|
ref: x,
|
|
1696
|
-
activeItem:
|
|
1696
|
+
activeItem: S,
|
|
1697
1697
|
setActiveItem: E,
|
|
1698
1698
|
popupPosition: F,
|
|
1699
|
-
modalOptions:
|
|
1700
|
-
setIsOpenModal:
|
|
1699
|
+
modalOptions: q,
|
|
1700
|
+
setIsOpenModal: w
|
|
1701
1701
|
}
|
|
1702
1702
|
),
|
|
1703
|
-
|
|
1703
|
+
$ && H && /* @__PURE__ */ t.jsx(qt, { ...H }),
|
|
1704
1704
|
/* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
|
|
1705
1705
|
o && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: o }),
|
|
1706
|
-
|
|
1706
|
+
_ ? /* @__PURE__ */ t.jsx(
|
|
1707
1707
|
$t,
|
|
1708
1708
|
{
|
|
1709
|
-
sensors:
|
|
1709
|
+
sensors: L,
|
|
1710
1710
|
onDragEnd: nt,
|
|
1711
1711
|
children: /* @__PURE__ */ t.jsx(
|
|
1712
1712
|
It,
|
|
1713
1713
|
{
|
|
1714
|
-
items: s.map((
|
|
1714
|
+
items: s.map((y) => y.id),
|
|
1715
1715
|
strategy: Nt,
|
|
1716
|
-
children: s.map((
|
|
1716
|
+
children: s.map((y) => dt(y))
|
|
1717
1717
|
}
|
|
1718
1718
|
)
|
|
1719
1719
|
}
|
|
1720
|
-
) : s.map((
|
|
1720
|
+
) : s.map((y) => dt(y)),
|
|
1721
1721
|
r && /* @__PURE__ */ t.jsx(
|
|
1722
1722
|
"div",
|
|
1723
1723
|
{
|
|
@@ -1733,38 +1733,38 @@ const Ka = (u) => {
|
|
|
1733
1733
|
className: V.button,
|
|
1734
1734
|
size: "s",
|
|
1735
1735
|
onClick: () => {
|
|
1736
|
-
const
|
|
1737
|
-
let
|
|
1738
|
-
if (
|
|
1739
|
-
for (let
|
|
1740
|
-
if (!s.find((N) => N.name["en-US"] ===
|
|
1741
|
-
|
|
1736
|
+
const y = [...s];
|
|
1737
|
+
let U = null;
|
|
1738
|
+
if (m) {
|
|
1739
|
+
for (let h = 0; h < m.length; h++)
|
|
1740
|
+
if (!s.find((N) => N.name["en-US"] === m[h])) {
|
|
1741
|
+
U = m[h];
|
|
1742
1742
|
break;
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
|
-
|
|
1745
|
+
k === "select" && m ? y.push({
|
|
1746
1746
|
name: {
|
|
1747
|
-
"en-US":
|
|
1747
|
+
"en-US": U || m[0]
|
|
1748
1748
|
},
|
|
1749
|
-
id:
|
|
1750
|
-
...
|
|
1749
|
+
id: mt(),
|
|
1750
|
+
...u,
|
|
1751
1751
|
maxSymbols: 100
|
|
1752
1752
|
// пример значения
|
|
1753
|
-
}) :
|
|
1753
|
+
}) : k === "input" ? y.push({
|
|
1754
1754
|
name: {
|
|
1755
1755
|
"en-US": ""
|
|
1756
1756
|
},
|
|
1757
|
-
id:
|
|
1758
|
-
...
|
|
1757
|
+
id: mt(),
|
|
1758
|
+
...u,
|
|
1759
1759
|
maxSymbols: 100
|
|
1760
|
-
}) :
|
|
1760
|
+
}) : y.push({
|
|
1761
1761
|
name: {
|
|
1762
1762
|
"en-US": `Image ${s.length + 1}`
|
|
1763
1763
|
},
|
|
1764
|
-
id:
|
|
1765
|
-
...
|
|
1764
|
+
id: mt(),
|
|
1765
|
+
...u,
|
|
1766
1766
|
maxSymbols: 100
|
|
1767
|
-
}), i(
|
|
1767
|
+
}), i(y);
|
|
1768
1768
|
},
|
|
1769
1769
|
style: {
|
|
1770
1770
|
width: "fit-content"
|
|
@@ -1787,8 +1787,8 @@ const Ka = (u) => {
|
|
|
1787
1787
|
] }),
|
|
1788
1788
|
c !== void 0 && /* @__PURE__ */ t.jsx(Tt, { items: c })
|
|
1789
1789
|
] });
|
|
1790
|
-
},
|
|
1791
|
-
title:
|
|
1790
|
+
}, hn = "_title_bn7sv_1", fn = "_subtitle_bn7sv_5", gn = "_header_bn7sv_12", xn = "_text_bn7sv_13", bn = "_productsBlock_bn7sv_14", vn = "_buttonsBlock_bn7sv_15", jn = "_top_bn7sv_26", yn = "_itemsBlock_bn7sv_35", kn = "_typeTexts_bn7sv_41", $n = "_block_bn7sv_48", In = "_active_bn7sv_60", Nn = "_products_bn7sv_14", wn = "_product_bn7sv_14", Cn = "_button_bn7sv_15", Sn = "_image_bn7sv_90", Bn = "_info_bn7sv_97", Tn = "_name_bn7sv_109", Pn = "_buttons_bn7sv_15", An = "_modal_bn7sv_120", On = "_other_bn7sv_139", Mn = "_options_bn7sv_145", qn = "_closeIcon_bn7sv_153", rt = {
|
|
1791
|
+
title: hn,
|
|
1792
1792
|
subtitle: fn,
|
|
1793
1793
|
header: gn,
|
|
1794
1794
|
text: xn,
|
|
@@ -1810,26 +1810,26 @@ const Ka = (u) => {
|
|
|
1810
1810
|
other: On,
|
|
1811
1811
|
options: Mn,
|
|
1812
1812
|
closeIcon: qn
|
|
1813
|
-
}, En = f.forwardRef((
|
|
1814
|
-
const { activeButton: e, setActiveButton: s, popupPosition: i } =
|
|
1813
|
+
}, En = f.forwardRef((d, a) => {
|
|
1814
|
+
const { activeButton: e, setActiveButton: s, popupPosition: i, editableLink: c = !0 } = d, [l, o] = f.useState(e.typesText), [n, _] = f.useState(e.destination), [v, g] = f.useState(e.page), [r, k] = f.useState(e.link || ""), [p, m] = f.useState(e.text || { "en-US": "" }), [$, H] = f.useState(e.openInNewTab), { pages: q } = Vt();
|
|
1815
1815
|
return f.useEffect(() => {
|
|
1816
1816
|
s({
|
|
1817
1817
|
...e,
|
|
1818
1818
|
...{
|
|
1819
|
-
text:
|
|
1820
|
-
link:
|
|
1821
|
-
destination:
|
|
1822
|
-
typesText:
|
|
1823
|
-
page:
|
|
1824
|
-
openInNewTab:
|
|
1819
|
+
text: p,
|
|
1820
|
+
link: r,
|
|
1821
|
+
destination: n,
|
|
1822
|
+
typesText: l,
|
|
1823
|
+
page: v,
|
|
1824
|
+
openInNewTab: $
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
|
-
}, [
|
|
1827
|
+
}, [l, n, r, p, v, $]), console.log(p), /* @__PURE__ */ t.jsxs(
|
|
1828
1828
|
"div",
|
|
1829
1829
|
{
|
|
1830
1830
|
className: rt.modal,
|
|
1831
|
-
onClick: (
|
|
1832
|
-
|
|
1831
|
+
onClick: (u) => {
|
|
1832
|
+
u.stopPropagation();
|
|
1833
1833
|
},
|
|
1834
1834
|
style: {
|
|
1835
1835
|
top: `${i.top}px`,
|
|
@@ -1851,66 +1851,66 @@ const Ka = (u) => {
|
|
|
1851
1851
|
) })
|
|
1852
1852
|
] }),
|
|
1853
1853
|
/* @__PURE__ */ t.jsxs("div", { className: rt.options, children: [
|
|
1854
|
-
/* @__PURE__ */ t.jsx(
|
|
1854
|
+
c && /* @__PURE__ */ t.jsx(
|
|
1855
1855
|
et,
|
|
1856
1856
|
{
|
|
1857
1857
|
label: "Destination",
|
|
1858
|
-
onChange: (
|
|
1859
|
-
options: ["Go to Page", "Open Link"].filter((
|
|
1860
|
-
value:
|
|
1858
|
+
onChange: (u) => _(u),
|
|
1859
|
+
options: ["Go to Page", "Open Link"].filter((u) => u !== n),
|
|
1860
|
+
value: n
|
|
1861
1861
|
}
|
|
1862
1862
|
),
|
|
1863
|
-
|
|
1863
|
+
c && (n === "Go to Page" ? /* @__PURE__ */ t.jsx(
|
|
1864
1864
|
et,
|
|
1865
1865
|
{
|
|
1866
1866
|
label: "Go to",
|
|
1867
|
-
onChange: (
|
|
1868
|
-
options:
|
|
1869
|
-
value:
|
|
1867
|
+
onChange: (u) => g(u),
|
|
1868
|
+
options: q ? Object.values(q).filter((u) => u.name !== v).map((u) => u.name) : [],
|
|
1869
|
+
value: v
|
|
1870
1870
|
}
|
|
1871
1871
|
) : /* @__PURE__ */ t.jsx(
|
|
1872
1872
|
tt,
|
|
1873
1873
|
{
|
|
1874
|
-
onChange: (
|
|
1875
|
-
value:
|
|
1874
|
+
onChange: (u) => k(u),
|
|
1875
|
+
value: r,
|
|
1876
1876
|
placeholder: "https://",
|
|
1877
1877
|
label: "Link"
|
|
1878
1878
|
}
|
|
1879
|
-
),
|
|
1880
|
-
/* @__PURE__ */ t.jsx(
|
|
1879
|
+
)),
|
|
1880
|
+
c && /* @__PURE__ */ t.jsx(
|
|
1881
1881
|
st,
|
|
1882
1882
|
{
|
|
1883
1883
|
current: e.openInNewTab,
|
|
1884
1884
|
label: "Open in new tab",
|
|
1885
|
-
onChange: (
|
|
1885
|
+
onChange: (u) => H(u)
|
|
1886
1886
|
}
|
|
1887
1887
|
),
|
|
1888
1888
|
/* @__PURE__ */ t.jsx(
|
|
1889
1889
|
Et,
|
|
1890
1890
|
{
|
|
1891
|
-
onChange: (
|
|
1892
|
-
value:
|
|
1891
|
+
onChange: (u) => m({ "en-US": u }),
|
|
1892
|
+
value: p["en-US"],
|
|
1893
1893
|
label: "Text",
|
|
1894
1894
|
maxLength: 150
|
|
1895
1895
|
}
|
|
1896
1896
|
),
|
|
1897
1897
|
/* @__PURE__ */ t.jsx(
|
|
1898
|
-
|
|
1898
|
+
Ht,
|
|
1899
1899
|
{
|
|
1900
|
-
typesText:
|
|
1901
|
-
setTypesText:
|
|
1900
|
+
typesText: l,
|
|
1901
|
+
setTypesText: o
|
|
1902
1902
|
}
|
|
1903
1903
|
)
|
|
1904
1904
|
] })
|
|
1905
1905
|
]
|
|
1906
1906
|
}
|
|
1907
1907
|
);
|
|
1908
|
-
}),
|
|
1909
|
-
subtitle:
|
|
1910
|
-
header:
|
|
1911
|
-
text:
|
|
1912
|
-
productsBlock:
|
|
1913
|
-
buttonsBlock:
|
|
1908
|
+
}), Un = "_subtitle_jql1y_1", Dn = "_header_jql1y_8", Ln = "_text_jql1y_9", Hn = "_productsBlock_jql1y_10", Rn = "_buttonsBlock_jql1y_11", zn = "_top_jql1y_23", Fn = "_itemsBlock_jql1y_32", Vn = "_typeTexts_jql1y_38", Yn = "_block_jql1y_45", Gn = "_active_jql1y_58", Xn = "_products_jql1y_10", Wn = "_product_jql1y_10", Jn = "_button_jql1y_11", Qn = "_image_jql1y_88", Kn = "_info_jql1y_95", Zn = "_name_jql1y_107", ti = "_buttons_jql1y_11", ei = "_modal_jql1y_118", si = "_other_jql1y_138", ni = "_options_jql1y_144", ii = "_addButton_jql1y_150", oi = "_deleteButton_jql1y_165", at = {
|
|
1909
|
+
subtitle: Un,
|
|
1910
|
+
header: Dn,
|
|
1911
|
+
text: Ln,
|
|
1912
|
+
productsBlock: Hn,
|
|
1913
|
+
buttonsBlock: Rn,
|
|
1914
1914
|
top: zn,
|
|
1915
1915
|
itemsBlock: Fn,
|
|
1916
1916
|
typeTexts: Vn,
|
|
@@ -1928,44 +1928,44 @@ const Ka = (u) => {
|
|
|
1928
1928
|
options: ni,
|
|
1929
1929
|
addButton: ii,
|
|
1930
1930
|
deleteButton: oi
|
|
1931
|
-
}, ai = (
|
|
1932
|
-
const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0,
|
|
1931
|
+
}, ai = (d) => {
|
|
1932
|
+
const { buttons: a, setButtons: e, deletable: s = !0, addable: i = !0, editableLink: c = !0 } = d, [l, o] = f.useState(null), [n, _] = f.useState({
|
|
1933
1933
|
top: 0,
|
|
1934
1934
|
left: 0
|
|
1935
|
-
}), [
|
|
1935
|
+
}), [v, g] = f.useState(null), r = f.useRef(null);
|
|
1936
1936
|
f.useEffect(() => {
|
|
1937
|
-
const
|
|
1937
|
+
const p = () => {
|
|
1938
1938
|
o(null);
|
|
1939
1939
|
};
|
|
1940
|
-
return document.body.addEventListener("click",
|
|
1941
|
-
o(null), document.body.removeEventListener("click",
|
|
1940
|
+
return document.body.addEventListener("click", p), o(null), () => {
|
|
1941
|
+
o(null), document.body.removeEventListener("click", p);
|
|
1942
1942
|
};
|
|
1943
1943
|
}, []), f.useEffect(() => {
|
|
1944
1944
|
if (l) {
|
|
1945
|
-
const
|
|
1946
|
-
e(
|
|
1945
|
+
const p = [...a].map((m) => m.id === l.id ? l : m);
|
|
1946
|
+
e(p);
|
|
1947
1947
|
}
|
|
1948
1948
|
}, [l]), f.useEffect(() => {
|
|
1949
|
-
if (r.current &&
|
|
1950
|
-
const
|
|
1951
|
-
let
|
|
1952
|
-
|
|
1953
|
-
top:
|
|
1954
|
-
left:
|
|
1949
|
+
if (r.current && v) {
|
|
1950
|
+
const p = r.current.getBoundingClientRect().height, m = window.innerHeight;
|
|
1951
|
+
let $ = v.top;
|
|
1952
|
+
$ + p > m + window.scrollY - 200 && ($ = m + window.scrollY - p - 200), $ < 0 && ($ = 10), _({
|
|
1953
|
+
top: $,
|
|
1954
|
+
left: v.left
|
|
1955
1955
|
});
|
|
1956
1956
|
}
|
|
1957
|
-
}, [r.current,
|
|
1958
|
-
const
|
|
1959
|
-
|
|
1960
|
-
const
|
|
1961
|
-
|
|
1962
|
-
top:
|
|
1963
|
-
left:
|
|
1964
|
-
}), o(
|
|
1957
|
+
}, [r.current, v]);
|
|
1958
|
+
const k = (p, m) => {
|
|
1959
|
+
p.stopPropagation();
|
|
1960
|
+
const $ = p.target.getBoundingClientRect();
|
|
1961
|
+
g({
|
|
1962
|
+
top: $.top + window.scrollY - 70,
|
|
1963
|
+
left: $.left - (i ? 30 : 65)
|
|
1964
|
+
}), o(m);
|
|
1965
1965
|
};
|
|
1966
1966
|
return /* @__PURE__ */ t.jsxs("div", { className: at.products, children: [
|
|
1967
1967
|
/* @__PURE__ */ t.jsx("h5", { className: at.subtitle, children: "Button Type" }),
|
|
1968
|
-
a.map((
|
|
1968
|
+
a.map((p) => /* @__PURE__ */ t.jsxs(
|
|
1969
1969
|
"div",
|
|
1970
1970
|
{
|
|
1971
1971
|
className: at.product,
|
|
@@ -1973,27 +1973,27 @@ const Ka = (u) => {
|
|
|
1973
1973
|
/* @__PURE__ */ t.jsx(
|
|
1974
1974
|
et,
|
|
1975
1975
|
{
|
|
1976
|
-
onChange: (
|
|
1977
|
-
const H = [...a].map((
|
|
1978
|
-
...
|
|
1979
|
-
type:
|
|
1980
|
-
} :
|
|
1976
|
+
onChange: (m) => {
|
|
1977
|
+
const H = [...a].map((q) => q.id === p.id ? {
|
|
1978
|
+
...p,
|
|
1979
|
+
type: m
|
|
1980
|
+
} : q);
|
|
1981
1981
|
e(H);
|
|
1982
1982
|
},
|
|
1983
|
-
value:
|
|
1983
|
+
value: p.type,
|
|
1984
1984
|
options: ["Primary", "Secondary", "Tertiary"]
|
|
1985
1985
|
}
|
|
1986
1986
|
),
|
|
1987
1987
|
/* @__PURE__ */ t.jsxs("div", { className: at.buttons, children: [
|
|
1988
|
-
|
|
1988
|
+
/* @__PURE__ */ t.jsx("div", { className: at.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
1989
1989
|
b,
|
|
1990
1990
|
{
|
|
1991
1991
|
name: "Sliders",
|
|
1992
1992
|
hoverable: !0,
|
|
1993
1993
|
width: 20,
|
|
1994
1994
|
height: 20,
|
|
1995
|
-
onClick: (
|
|
1996
|
-
|
|
1995
|
+
onClick: (m) => {
|
|
1996
|
+
k(m, p);
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
1999
|
) }),
|
|
@@ -2003,8 +2003,8 @@ const Ka = (u) => {
|
|
|
2003
2003
|
name: "Trash",
|
|
2004
2004
|
hoverable: !0,
|
|
2005
2005
|
onClick: () => {
|
|
2006
|
-
const
|
|
2007
|
-
e(
|
|
2006
|
+
const m = a.filter(($) => $.id !== p.id);
|
|
2007
|
+
e(m);
|
|
2008
2008
|
},
|
|
2009
2009
|
width: 20,
|
|
2010
2010
|
height: 20,
|
|
@@ -2014,7 +2014,7 @@ const Ka = (u) => {
|
|
|
2014
2014
|
] })
|
|
2015
2015
|
]
|
|
2016
2016
|
},
|
|
2017
|
-
|
|
2017
|
+
p.id
|
|
2018
2018
|
)),
|
|
2019
2019
|
l && /* @__PURE__ */ t.jsx(
|
|
2020
2020
|
En,
|
|
@@ -2022,7 +2022,8 @@ const Ka = (u) => {
|
|
|
2022
2022
|
ref: r,
|
|
2023
2023
|
activeButton: l,
|
|
2024
2024
|
setActiveButton: o,
|
|
2025
|
-
popupPosition: n
|
|
2025
|
+
popupPosition: n,
|
|
2026
|
+
editableLink: c
|
|
2026
2027
|
}
|
|
2027
2028
|
),
|
|
2028
2029
|
i && /* @__PURE__ */ t.jsx(
|
|
@@ -2040,18 +2041,28 @@ const Ka = (u) => {
|
|
|
2040
2041
|
className: at.button,
|
|
2041
2042
|
size: "s",
|
|
2042
2043
|
onClick: () => {
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2044
|
+
const p = [...a];
|
|
2045
|
+
c ? p.push({
|
|
2045
2046
|
type: "Primary",
|
|
2046
|
-
id:
|
|
2047
|
+
id: mt(),
|
|
2047
2048
|
typesText: [],
|
|
2048
|
-
destination: "Go to Page",
|
|
2049
2049
|
text: {
|
|
2050
2050
|
"en-US": "Button Name"
|
|
2051
2051
|
},
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2052
|
+
destination: "Go to Page",
|
|
2053
|
+
page: "",
|
|
2054
|
+
openInNewTab: !1
|
|
2055
|
+
}) : p.push({
|
|
2056
|
+
type: "Primary",
|
|
2057
|
+
id: mt(),
|
|
2058
|
+
typesText: [],
|
|
2059
|
+
text: {
|
|
2060
|
+
"en-US": "Create Ticket"
|
|
2061
|
+
},
|
|
2062
|
+
destination: "Go to Page",
|
|
2063
|
+
page: "",
|
|
2064
|
+
openInNewTab: !1
|
|
2065
|
+
}), e(p);
|
|
2055
2066
|
},
|
|
2056
2067
|
style: {
|
|
2057
2068
|
width: "fit-content"
|
|
@@ -2072,8 +2083,8 @@ const Ka = (u) => {
|
|
|
2072
2083
|
}
|
|
2073
2084
|
)
|
|
2074
2085
|
] });
|
|
2075
|
-
}, Za = (
|
|
2076
|
-
const { isActiveButtons: a, setIsActiveButtons: e, buttons: s, setButtons: i,
|
|
2086
|
+
}, Za = (d) => {
|
|
2087
|
+
const { isActiveButtons: a, setIsActiveButtons: e, buttons: s, setButtons: i, editableLink: c = !0 } = d;
|
|
2077
2088
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: rt.buttonsBlock, children: [
|
|
2078
2089
|
/* @__PURE__ */ t.jsxs("div", { className: rt.top, children: [
|
|
2079
2090
|
/* @__PURE__ */ t.jsx("h3", { className: rt.title, children: "Buttons" }),
|
|
@@ -2090,11 +2101,11 @@ const Ka = (u) => {
|
|
|
2090
2101
|
{
|
|
2091
2102
|
buttons: s,
|
|
2092
2103
|
setButtons: i,
|
|
2093
|
-
|
|
2104
|
+
editableLink: c
|
|
2094
2105
|
}
|
|
2095
2106
|
)
|
|
2096
2107
|
] }) });
|
|
2097
|
-
}, ci = "_wrapper_m18qi_1", li = "_subtitle_m18qi_7", ri = "_content_m18qi_14", di = "_range_m18qi_22", ui = "_track_m18qi_27", _i = "_progress_m18qi_36", mi = "_dots_m18qi_46",
|
|
2108
|
+
}, ci = "_wrapper_m18qi_1", li = "_subtitle_m18qi_7", ri = "_content_m18qi_14", di = "_range_m18qi_22", ui = "_track_m18qi_27", _i = "_progress_m18qi_36", mi = "_dots_m18qi_46", pi = "_dot_m18qi_46", hi = "_active_m18qi_65", fi = "_input_m18qi_77", gi = "_countBlock_m18qi_91", xi = "_count_m18qi_91", bi = "_controls_m18qi_107", vi = "_button_m18qi_113", W = {
|
|
2098
2109
|
wrapper: ci,
|
|
2099
2110
|
subtitle: li,
|
|
2100
2111
|
content: ri,
|
|
@@ -2102,21 +2113,21 @@ const Ka = (u) => {
|
|
|
2102
2113
|
track: ui,
|
|
2103
2114
|
progress: _i,
|
|
2104
2115
|
dots: mi,
|
|
2105
|
-
dot:
|
|
2106
|
-
active:
|
|
2116
|
+
dot: pi,
|
|
2117
|
+
active: hi,
|
|
2107
2118
|
input: fi,
|
|
2108
2119
|
countBlock: gi,
|
|
2109
2120
|
count: xi,
|
|
2110
2121
|
controls: bi,
|
|
2111
2122
|
button: vi
|
|
2112
|
-
}, qt = (
|
|
2113
|
-
const { label: a, min: e = 1, max: s = 4, step: i = 1, count: c, setCount: l } =
|
|
2123
|
+
}, qt = (d) => {
|
|
2124
|
+
const { label: a, min: e = 1, max: s = 4, step: i = 1, count: c, setCount: l } = d, [o, n] = f.useState(!1), _ = Array.from({ length: (s - e) / i + 1 }), v = (c - e) / (s - e) * 100, g = () => {
|
|
2114
2125
|
c < s && l(c + i);
|
|
2115
2126
|
}, r = () => {
|
|
2116
2127
|
c > e && l(c - i);
|
|
2117
|
-
},
|
|
2118
|
-
const
|
|
2119
|
-
l(
|
|
2128
|
+
}, k = (p) => {
|
|
2129
|
+
const m = e + p * i;
|
|
2130
|
+
l(m);
|
|
2120
2131
|
};
|
|
2121
2132
|
return /* @__PURE__ */ t.jsxs("div", { className: W.wrapper, children: [
|
|
2122
2133
|
a && /* @__PURE__ */ t.jsx("h5", { className: W.subtitle, children: a }),
|
|
@@ -2127,23 +2138,23 @@ const Ka = (u) => {
|
|
|
2127
2138
|
"div",
|
|
2128
2139
|
{
|
|
2129
2140
|
className: W.progress,
|
|
2130
|
-
style: { width: `${
|
|
2141
|
+
style: { width: `${v}%` }
|
|
2131
2142
|
}
|
|
2132
2143
|
),
|
|
2133
|
-
/* @__PURE__ */ t.jsx("div", { className: W.dots, children:
|
|
2134
|
-
const
|
|
2144
|
+
/* @__PURE__ */ t.jsx("div", { className: W.dots, children: _.map((p, m) => {
|
|
2145
|
+
const $ = m <= (c - e) / i;
|
|
2135
2146
|
return /* @__PURE__ */ t.jsx(
|
|
2136
2147
|
"button",
|
|
2137
2148
|
{
|
|
2138
|
-
onClick: () =>
|
|
2149
|
+
onClick: () => k(m),
|
|
2139
2150
|
className: Y(W.dot, {
|
|
2140
|
-
[W.active]:
|
|
2141
|
-
[W.inactive]:
|
|
2151
|
+
[W.active]: $,
|
|
2152
|
+
[W.inactive]: !$,
|
|
2142
2153
|
[W.dragging]: o
|
|
2143
2154
|
}),
|
|
2144
|
-
"aria-label": `Set value to ${e +
|
|
2155
|
+
"aria-label": `Set value to ${e + m * i}`
|
|
2145
2156
|
},
|
|
2146
|
-
|
|
2157
|
+
m
|
|
2147
2158
|
);
|
|
2148
2159
|
}) }),
|
|
2149
2160
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2154,7 +2165,7 @@ const Ka = (u) => {
|
|
|
2154
2165
|
max: s,
|
|
2155
2166
|
step: i,
|
|
2156
2167
|
value: c,
|
|
2157
|
-
onChange: (
|
|
2168
|
+
onChange: (p) => l(Number(p.target.value)),
|
|
2158
2169
|
onMouseDown: () => n(!0),
|
|
2159
2170
|
onMouseUp: () => n(!1),
|
|
2160
2171
|
onTouchStart: () => n(!0),
|
|
@@ -2171,9 +2182,9 @@ const Ka = (u) => {
|
|
|
2171
2182
|
min: e,
|
|
2172
2183
|
max: s,
|
|
2173
2184
|
paddingless: !0,
|
|
2174
|
-
onChange: (
|
|
2175
|
-
const
|
|
2176
|
-
|
|
2185
|
+
onChange: (p) => {
|
|
2186
|
+
const m = Number(p);
|
|
2187
|
+
m > s ? l(s) : m < e ? l(e) : l(m);
|
|
2177
2188
|
},
|
|
2178
2189
|
value: String(c)
|
|
2179
2190
|
}
|
|
@@ -2182,7 +2193,7 @@ const Ka = (u) => {
|
|
|
2182
2193
|
/* @__PURE__ */ t.jsx(
|
|
2183
2194
|
"button",
|
|
2184
2195
|
{
|
|
2185
|
-
onClick:
|
|
2196
|
+
onClick: g,
|
|
2186
2197
|
disabled: c >= s,
|
|
2187
2198
|
className: W.button,
|
|
2188
2199
|
"aria-label": "Increment count",
|
|
@@ -2217,7 +2228,7 @@ const Ka = (u) => {
|
|
|
2217
2228
|
] })
|
|
2218
2229
|
] })
|
|
2219
2230
|
] });
|
|
2220
|
-
}, ji = "_title_ix5ax_1", yi = "_subtitle_ix5ax_5", ki = "_header_ix5ax_12", $i = "_text_ix5ax_13", Ii = "_productsBlock_ix5ax_14", Ni = "_top_ix5ax_26", wi = "_itemsBlock_ix5ax_35", Ci = "_typeTexts_ix5ax_41", Si = "_block_ix5ax_48", Bi = "_active_ix5ax_61", Ti = "_products_ix5ax_14", Pi = "_product_ix5ax_14", Ai = "_button_ix5ax_80", Oi = "_image_ix5ax_91", Mi = "_info_ix5ax_98", qi = "_name_ix5ax_110", Ei = "_buttons_ix5ax_114",
|
|
2231
|
+
}, ji = "_title_ix5ax_1", yi = "_subtitle_ix5ax_5", ki = "_header_ix5ax_12", $i = "_text_ix5ax_13", Ii = "_productsBlock_ix5ax_14", Ni = "_top_ix5ax_26", wi = "_itemsBlock_ix5ax_35", Ci = "_typeTexts_ix5ax_41", Si = "_block_ix5ax_48", Bi = "_active_ix5ax_61", Ti = "_products_ix5ax_14", Pi = "_product_ix5ax_14", Ai = "_button_ix5ax_80", Oi = "_image_ix5ax_91", Mi = "_info_ix5ax_98", qi = "_name_ix5ax_110", Ei = "_buttons_ix5ax_114", Ui = "_modal_ix5ax_121", Di = "_link_ix5ax_141", Li = "_modalOptions_ix5ax_147", Hi = "_addButton_ix5ax_160", Ri = "_deleteButton_ix5ax_175", zi = "_closeIcon_ix5ax_187", G = {
|
|
2221
2232
|
title: ji,
|
|
2222
2233
|
subtitle: yi,
|
|
2223
2234
|
header: ki,
|
|
@@ -2235,14 +2246,14 @@ const Ka = (u) => {
|
|
|
2235
2246
|
info: Mi,
|
|
2236
2247
|
name: qi,
|
|
2237
2248
|
buttons: Ei,
|
|
2238
|
-
modal:
|
|
2239
|
-
link:
|
|
2240
|
-
modalOptions:
|
|
2241
|
-
addButton:
|
|
2242
|
-
deleteButton:
|
|
2249
|
+
modal: Ui,
|
|
2250
|
+
link: Di,
|
|
2251
|
+
modalOptions: Li,
|
|
2252
|
+
addButton: Hi,
|
|
2253
|
+
deleteButton: Ri,
|
|
2243
2254
|
closeIcon: zi
|
|
2244
|
-
}, Fi = (
|
|
2245
|
-
const { activeItem: a, setActiveItem: e, popupPosition: s, setIsOpenModal: i, itemsOptions: c } =
|
|
2255
|
+
}, Fi = (d) => {
|
|
2256
|
+
const { activeItem: a, setActiveItem: e, popupPosition: s, setIsOpenModal: i, itemsOptions: c } = d, l = c.find((o) => o.id === a.listingId);
|
|
2246
2257
|
return l ? /* @__PURE__ */ t.jsxs(
|
|
2247
2258
|
"div",
|
|
2248
2259
|
{
|
|
@@ -2287,10 +2298,10 @@ const Ka = (u) => {
|
|
|
2287
2298
|
}
|
|
2288
2299
|
) : null;
|
|
2289
2300
|
};
|
|
2290
|
-
function Vi(
|
|
2291
|
-
const { product: a, children: e } =
|
|
2301
|
+
function Vi(d) {
|
|
2302
|
+
const { product: a, children: e } = d, { attributes: s, listeners: i, setNodeRef: c, transform: l, transition: o, isDragging: n } = Ct({
|
|
2292
2303
|
id: String(a.listingId)
|
|
2293
|
-
}),
|
|
2304
|
+
}), _ = {
|
|
2294
2305
|
transform: St.Transform.toString(l),
|
|
2295
2306
|
transition: o
|
|
2296
2307
|
};
|
|
@@ -2298,7 +2309,7 @@ function Vi(u) {
|
|
|
2298
2309
|
"div",
|
|
2299
2310
|
{
|
|
2300
2311
|
ref: c,
|
|
2301
|
-
style:
|
|
2312
|
+
style: _,
|
|
2302
2313
|
className: `${G.product} ${n ? G.dragging : ""}`,
|
|
2303
2314
|
...s,
|
|
2304
2315
|
...i,
|
|
@@ -2306,7 +2317,7 @@ function Vi(u) {
|
|
|
2306
2317
|
}
|
|
2307
2318
|
);
|
|
2308
2319
|
}
|
|
2309
|
-
const tc = (
|
|
2320
|
+
const tc = (d) => {
|
|
2310
2321
|
const {
|
|
2311
2322
|
isActiveItems: a,
|
|
2312
2323
|
setIsActiveItems: e,
|
|
@@ -2316,18 +2327,18 @@ const tc = (u) => {
|
|
|
2316
2327
|
title: l,
|
|
2317
2328
|
subtitle: o,
|
|
2318
2329
|
editable: n = !0,
|
|
2319
|
-
draggable:
|
|
2320
|
-
withImage:
|
|
2321
|
-
deletable:
|
|
2330
|
+
draggable: _ = !1,
|
|
2331
|
+
withImage: v = !1,
|
|
2332
|
+
deletable: g = !0,
|
|
2322
2333
|
addable: r = !0,
|
|
2323
|
-
itemsType:
|
|
2324
|
-
itemsOptions:
|
|
2325
|
-
} =
|
|
2334
|
+
itemsType: k,
|
|
2335
|
+
itemsOptions: p
|
|
2336
|
+
} = d, [m, $] = f.useState(
|
|
2326
2337
|
null
|
|
2327
|
-
), [H,
|
|
2338
|
+
), [H, q] = f.useState({
|
|
2328
2339
|
top: 0,
|
|
2329
2340
|
left: 0
|
|
2330
|
-
}), [
|
|
2341
|
+
}), [u, S] = f.useState(!1), E = yt(
|
|
2331
2342
|
kt(wt, {
|
|
2332
2343
|
activationConstraint: {
|
|
2333
2344
|
distance: 5
|
|
@@ -2336,28 +2347,28 @@ const tc = (u) => {
|
|
|
2336
2347
|
);
|
|
2337
2348
|
f.useEffect(() => {
|
|
2338
2349
|
const x = () => {
|
|
2339
|
-
|
|
2350
|
+
$(null), S(!1);
|
|
2340
2351
|
};
|
|
2341
|
-
return document.body.addEventListener("click", x),
|
|
2342
|
-
|
|
2352
|
+
return document.body.addEventListener("click", x), $(null), S(!1), () => {
|
|
2353
|
+
$(null), S(!1), document.body.removeEventListener("click", x);
|
|
2343
2354
|
};
|
|
2344
2355
|
}, []), f.useEffect(() => {
|
|
2345
|
-
if (
|
|
2346
|
-
const x = [...s].map((I) => I.listingId ===
|
|
2356
|
+
if (m) {
|
|
2357
|
+
const x = [...s].map((I) => I.listingId === m.listingId ? m : I);
|
|
2347
2358
|
i(x);
|
|
2348
2359
|
}
|
|
2349
|
-
}, [
|
|
2360
|
+
}, [m]);
|
|
2350
2361
|
const F = (x, I) => {
|
|
2351
2362
|
x.stopPropagation();
|
|
2352
|
-
const
|
|
2353
|
-
let
|
|
2354
|
-
|
|
2355
|
-
top:
|
|
2356
|
-
left:
|
|
2357
|
-
}),
|
|
2363
|
+
const w = x.target.getBoundingClientRect(), L = 100, A = window.innerHeight;
|
|
2364
|
+
let D = w.top + window.scrollY;
|
|
2365
|
+
D + L > A && (D = A - L - 20), S(!0), q({
|
|
2366
|
+
top: D - 80,
|
|
2367
|
+
left: w.left - 30
|
|
2368
|
+
}), $(I);
|
|
2358
2369
|
};
|
|
2359
|
-
function
|
|
2360
|
-
if (
|
|
2370
|
+
function B(x) {
|
|
2371
|
+
if (v)
|
|
2361
2372
|
return x ? /* @__PURE__ */ t.jsx(
|
|
2362
2373
|
"img",
|
|
2363
2374
|
{
|
|
@@ -2376,20 +2387,20 @@ const tc = (u) => {
|
|
|
2376
2387
|
}
|
|
2377
2388
|
);
|
|
2378
2389
|
}
|
|
2379
|
-
const
|
|
2380
|
-
const { active: I, over:
|
|
2381
|
-
if (
|
|
2382
|
-
const
|
|
2383
|
-
if (
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2390
|
+
const j = (x) => {
|
|
2391
|
+
const { active: I, over: w } = x;
|
|
2392
|
+
if (w && I.id !== w.id) {
|
|
2393
|
+
const L = s.findIndex((D) => String(D.listingId) === I.id), A = s.findIndex((D) => String(D.listingId) === w.id);
|
|
2394
|
+
if (L !== -1 && A !== -1) {
|
|
2395
|
+
const D = [...s], [nt] = D.splice(L, 1);
|
|
2396
|
+
D.splice(A, 0, nt), i(D);
|
|
2386
2397
|
}
|
|
2387
2398
|
}
|
|
2388
|
-
},
|
|
2389
|
-
const
|
|
2390
|
-
if (!
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2399
|
+
}, P = (x, I) => {
|
|
2400
|
+
const w = p.find((A) => x.listingId === A.id);
|
|
2401
|
+
if (!w) return null;
|
|
2402
|
+
const L = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2403
|
+
_ && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
2393
2404
|
b,
|
|
2394
2405
|
{
|
|
2395
2406
|
name: "DotsSixVertical",
|
|
@@ -2398,24 +2409,24 @@ const tc = (u) => {
|
|
|
2398
2409
|
height: 20
|
|
2399
2410
|
}
|
|
2400
2411
|
) }),
|
|
2401
|
-
|
|
2412
|
+
k === "select" && /* @__PURE__ */ t.jsx(
|
|
2402
2413
|
et,
|
|
2403
2414
|
{
|
|
2404
|
-
onChange: (
|
|
2405
|
-
const
|
|
2415
|
+
onChange: (A) => {
|
|
2416
|
+
const D = [...s], nt = p.find((U) => U.productData.name === A);
|
|
2406
2417
|
if (!nt) return;
|
|
2407
2418
|
const dt = {
|
|
2408
2419
|
listingId: nt.id,
|
|
2409
2420
|
image: nt.productData.images.length > 0 ? nt.productData.images[0].cfId : ""
|
|
2410
|
-
},
|
|
2411
|
-
|
|
2421
|
+
}, y = D.map((U) => U.listingId === x.listingId ? dt : U);
|
|
2422
|
+
$(dt), i([...y]);
|
|
2412
2423
|
},
|
|
2413
|
-
value:
|
|
2424
|
+
value: w.productData.name,
|
|
2414
2425
|
options: [
|
|
2415
|
-
...
|
|
2426
|
+
...p.filter((A) => !s.find((D) => D.listingId === A.id)).map((A) => A.productData.name)
|
|
2416
2427
|
],
|
|
2417
|
-
leftAddon:
|
|
2418
|
-
x.image ||
|
|
2428
|
+
leftAddon: B(
|
|
2429
|
+
x.image || w.productData.images.length > 0 && w.productData.images[0].cfId || ""
|
|
2419
2430
|
)
|
|
2420
2431
|
},
|
|
2421
2432
|
I
|
|
@@ -2428,10 +2439,10 @@ const tc = (u) => {
|
|
|
2428
2439
|
hoverable: !0,
|
|
2429
2440
|
width: 20,
|
|
2430
2441
|
height: 20,
|
|
2431
|
-
onClick: (
|
|
2442
|
+
onClick: (A) => F(A, x)
|
|
2432
2443
|
}
|
|
2433
2444
|
) }),
|
|
2434
|
-
|
|
2445
|
+
g && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
2435
2446
|
b,
|
|
2436
2447
|
{
|
|
2437
2448
|
name: "Trash",
|
|
@@ -2439,23 +2450,23 @@ const tc = (u) => {
|
|
|
2439
2450
|
width: 20,
|
|
2440
2451
|
height: 20,
|
|
2441
2452
|
fill: "#C12A2A",
|
|
2442
|
-
onClick: () => i(s.filter((
|
|
2453
|
+
onClick: () => i(s.filter((A) => A !== x))
|
|
2443
2454
|
}
|
|
2444
2455
|
) })
|
|
2445
2456
|
] })
|
|
2446
2457
|
] });
|
|
2447
|
-
return
|
|
2458
|
+
return _ ? /* @__PURE__ */ t.jsx(
|
|
2448
2459
|
Vi,
|
|
2449
2460
|
{
|
|
2450
2461
|
product: x,
|
|
2451
|
-
children:
|
|
2462
|
+
children: L
|
|
2452
2463
|
},
|
|
2453
2464
|
x.listingId
|
|
2454
2465
|
) : /* @__PURE__ */ t.jsx(
|
|
2455
2466
|
"div",
|
|
2456
2467
|
{
|
|
2457
2468
|
className: G.product,
|
|
2458
|
-
children:
|
|
2469
|
+
children: L
|
|
2459
2470
|
},
|
|
2460
2471
|
x.listingId
|
|
2461
2472
|
);
|
|
@@ -2471,33 +2482,33 @@ const tc = (u) => {
|
|
|
2471
2482
|
}
|
|
2472
2483
|
)
|
|
2473
2484
|
] }),
|
|
2474
|
-
|
|
2485
|
+
u && m && /* @__PURE__ */ t.jsx(
|
|
2475
2486
|
Fi,
|
|
2476
2487
|
{
|
|
2477
|
-
activeItem:
|
|
2478
|
-
setActiveItem:
|
|
2479
|
-
setIsOpenModal:
|
|
2488
|
+
activeItem: m,
|
|
2489
|
+
setActiveItem: $,
|
|
2490
|
+
setIsOpenModal: S,
|
|
2480
2491
|
popupPosition: H,
|
|
2481
|
-
itemsOptions:
|
|
2492
|
+
itemsOptions: p
|
|
2482
2493
|
}
|
|
2483
2494
|
),
|
|
2484
2495
|
/* @__PURE__ */ t.jsxs("div", { className: G.products, children: [
|
|
2485
2496
|
o && /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: o }),
|
|
2486
|
-
|
|
2497
|
+
_ ? /* @__PURE__ */ t.jsx(
|
|
2487
2498
|
$t,
|
|
2488
2499
|
{
|
|
2489
2500
|
sensors: E,
|
|
2490
|
-
onDragEnd:
|
|
2501
|
+
onDragEnd: j,
|
|
2491
2502
|
children: /* @__PURE__ */ t.jsx(
|
|
2492
2503
|
It,
|
|
2493
2504
|
{
|
|
2494
2505
|
items: s.map((x) => String(x.listingId)),
|
|
2495
2506
|
strategy: Nt,
|
|
2496
|
-
children: s.map((x, I) =>
|
|
2507
|
+
children: s.map((x, I) => P(x, I))
|
|
2497
2508
|
}
|
|
2498
2509
|
)
|
|
2499
2510
|
}
|
|
2500
|
-
) : s.map((x, I) =>
|
|
2511
|
+
) : s.map((x, I) => P(x, I)),
|
|
2501
2512
|
r && /* @__PURE__ */ t.jsx(
|
|
2502
2513
|
"div",
|
|
2503
2514
|
{
|
|
@@ -2514,17 +2525,17 @@ const tc = (u) => {
|
|
|
2514
2525
|
size: "s",
|
|
2515
2526
|
onClick: () => {
|
|
2516
2527
|
const x = [...s];
|
|
2517
|
-
for (let I = 0; I <
|
|
2518
|
-
if (!s.find((
|
|
2528
|
+
for (let I = 0; I < p.length; I++)
|
|
2529
|
+
if (!s.find((w) => w.listingId === p[I].id)) {
|
|
2519
2530
|
x.push({
|
|
2520
|
-
listingId:
|
|
2521
|
-
image:
|
|
2531
|
+
listingId: p[I].id,
|
|
2532
|
+
image: p[I].productData.images.length > 0 ? p[I].productData.images[0].cfId : ""
|
|
2522
2533
|
});
|
|
2523
2534
|
break;
|
|
2524
2535
|
}
|
|
2525
2536
|
i(x);
|
|
2526
2537
|
},
|
|
2527
|
-
disabled: s.length ===
|
|
2538
|
+
disabled: s.length === p.length,
|
|
2528
2539
|
style: {
|
|
2529
2540
|
width: "fit-content"
|
|
2530
2541
|
},
|
|
@@ -2546,7 +2557,7 @@ const tc = (u) => {
|
|
|
2546
2557
|
] }),
|
|
2547
2558
|
c !== void 0 && /* @__PURE__ */ t.jsx(Tt, { items: c })
|
|
2548
2559
|
] });
|
|
2549
|
-
}, Yi = "_options_6cemk_1", Gi = "_price_6cemk_12", Xi = "_oldPrice_6cemk_19", Wi = "_newPrice_6cemk_27", Ji = "_animate_6cemk_34", Qi = "_appearAndBounce_6cemk_1", Ki = "_meta_6cemk_52", Zi = "_info_6cemk_58", to = "_infoRight_6cemk_66", eo = "_buttons_6cemk_73", so = "_variants_6cemk_80", no = "_variant_6cemk_80", io = "_stock_6cemk_98", oo = "_variantInfo_6cemk_105", ao = "_quantity_6cemk_111", co = "_count_6cemk_118", lo = "_focused_6cemk_135", ro = "_button_6cemk_73", uo = "_activeVariant_6cemk_161", _o = "_chargeTypes_6cemk_165", mo = "_charge_6cemk_165",
|
|
2560
|
+
}, Yi = "_options_6cemk_1", Gi = "_price_6cemk_12", Xi = "_oldPrice_6cemk_19", Wi = "_newPrice_6cemk_27", Ji = "_animate_6cemk_34", Qi = "_appearAndBounce_6cemk_1", Ki = "_meta_6cemk_52", Zi = "_info_6cemk_58", to = "_infoRight_6cemk_66", eo = "_buttons_6cemk_73", so = "_variants_6cemk_80", no = "_variant_6cemk_80", io = "_stock_6cemk_98", oo = "_variantInfo_6cemk_105", ao = "_quantity_6cemk_111", co = "_count_6cemk_118", lo = "_focused_6cemk_135", ro = "_button_6cemk_73", uo = "_activeVariant_6cemk_161", _o = "_chargeTypes_6cemk_165", mo = "_charge_6cemk_165", po = "_chargeActive_6cemk_190", ho = "_title_6cemk_198", T = {
|
|
2550
2561
|
options: Yi,
|
|
2551
2562
|
price: Gi,
|
|
2552
2563
|
oldPrice: Xi,
|
|
@@ -2568,8 +2579,8 @@ const tc = (u) => {
|
|
|
2568
2579
|
activeVariant: uo,
|
|
2569
2580
|
chargeTypes: _o,
|
|
2570
2581
|
charge: mo,
|
|
2571
|
-
chargeActive:
|
|
2572
|
-
title:
|
|
2582
|
+
chargeActive: po,
|
|
2583
|
+
title: ho
|
|
2573
2584
|
}, fo = "_wrapper_c1dht_1", go = "_label_c1dht_9", xo = "_input_c1dht_18", bo = "_paddingless_c1dht_31", vo = "_content_c1dht_35", jo = "_contentBorder_c1dht_47", yo = "_borderless_c1dht_52", ko = "_rightIcon_c1dht_57", it = {
|
|
2574
2585
|
wrapper: fo,
|
|
2575
2586
|
label: go,
|
|
@@ -2579,7 +2590,7 @@ const tc = (u) => {
|
|
|
2579
2590
|
contentBorder: jo,
|
|
2580
2591
|
borderless: yo,
|
|
2581
2592
|
rightIcon: ko
|
|
2582
|
-
}, $o = (
|
|
2593
|
+
}, $o = (d) => {
|
|
2583
2594
|
const {
|
|
2584
2595
|
onChange: a,
|
|
2585
2596
|
style: e,
|
|
@@ -2589,20 +2600,20 @@ const tc = (u) => {
|
|
|
2589
2600
|
min: l,
|
|
2590
2601
|
max: o,
|
|
2591
2602
|
placeholder: n,
|
|
2592
|
-
disabled:
|
|
2593
|
-
required:
|
|
2594
|
-
regex:
|
|
2603
|
+
disabled: _ = !1,
|
|
2604
|
+
required: v = !1,
|
|
2605
|
+
regex: g,
|
|
2595
2606
|
paddingless: r = !1,
|
|
2596
|
-
borderless:
|
|
2597
|
-
editable:
|
|
2598
|
-
isSearch:
|
|
2599
|
-
centered:
|
|
2600
|
-
} =
|
|
2601
|
-
function E(
|
|
2602
|
-
return Number(
|
|
2607
|
+
borderless: k = !1,
|
|
2608
|
+
editable: p = !1,
|
|
2609
|
+
isSearch: m = !1,
|
|
2610
|
+
centered: $ = !1
|
|
2611
|
+
} = d, { themeSettings: H } = Ut(), { inputs: q } = H, [u, S] = f.useState(!1);
|
|
2612
|
+
function E(B) {
|
|
2613
|
+
return Number(B) < 0 ? String(l) : B;
|
|
2603
2614
|
}
|
|
2604
|
-
function F(
|
|
2605
|
-
return !
|
|
2615
|
+
function F(B) {
|
|
2616
|
+
return !v || !g ? !0 : new RegExp(g).test(B);
|
|
2606
2617
|
}
|
|
2607
2618
|
return /* @__PURE__ */ t.jsxs("div", { className: it.wrapper, children: [
|
|
2608
2619
|
s && /* @__PURE__ */ t.jsx(
|
|
@@ -2617,12 +2628,12 @@ const tc = (u) => {
|
|
|
2617
2628
|
"div",
|
|
2618
2629
|
{
|
|
2619
2630
|
className: Y(it.content, {
|
|
2620
|
-
[it.contentBorder]:
|
|
2631
|
+
[it.contentBorder]: q.border.active
|
|
2621
2632
|
}),
|
|
2622
2633
|
style: {
|
|
2623
2634
|
...e,
|
|
2624
|
-
background:
|
|
2625
|
-
padding:
|
|
2635
|
+
background: q.field.active ? q.field.color : "transparent",
|
|
2636
|
+
padding: m ? `7px ${Number(q.general.size) + 20}px 7px 11px` : "7px 11px"
|
|
2626
2637
|
},
|
|
2627
2638
|
children: [
|
|
2628
2639
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2630,40 +2641,40 @@ const tc = (u) => {
|
|
|
2630
2641
|
{
|
|
2631
2642
|
id: s,
|
|
2632
2643
|
type: c || "text",
|
|
2633
|
-
onChange: (
|
|
2634
|
-
if (c === "text") a(
|
|
2644
|
+
onChange: (B) => {
|
|
2645
|
+
if (c === "text") a(B.target.value);
|
|
2635
2646
|
else {
|
|
2636
|
-
const
|
|
2637
|
-
a(
|
|
2647
|
+
const j = E(B.target.value);
|
|
2648
|
+
a(j);
|
|
2638
2649
|
}
|
|
2639
2650
|
},
|
|
2640
2651
|
value: i,
|
|
2641
2652
|
autoComplete: "off",
|
|
2642
2653
|
placeholder: n || "Type something...",
|
|
2643
2654
|
className: Y(it.input, {
|
|
2644
|
-
[it.required]:
|
|
2655
|
+
[it.required]: u && v && !F(i),
|
|
2645
2656
|
[it.paddingless]: r,
|
|
2646
|
-
[it.borderless]:
|
|
2657
|
+
[it.borderless]: k
|
|
2647
2658
|
}),
|
|
2648
2659
|
min: c === "number" ? l : void 0,
|
|
2649
2660
|
max: c === "number" ? o : void 0,
|
|
2650
|
-
disabled:
|
|
2651
|
-
onFocus: () =>
|
|
2661
|
+
disabled: _,
|
|
2662
|
+
onFocus: () => S(!0),
|
|
2652
2663
|
style: {
|
|
2653
|
-
textAlign:
|
|
2664
|
+
textAlign: $ ? "center" : "left"
|
|
2654
2665
|
}
|
|
2655
2666
|
}
|
|
2656
2667
|
),
|
|
2657
|
-
|
|
2668
|
+
m && /* @__PURE__ */ t.jsx("div", { className: it.rightIcon, children: /* @__PURE__ */ t.jsx(
|
|
2658
2669
|
b,
|
|
2659
2670
|
{
|
|
2660
2671
|
name: "MagnifyingGlass",
|
|
2661
2672
|
fill: "var(--icon-secondary)",
|
|
2662
|
-
width:
|
|
2663
|
-
height:
|
|
2673
|
+
width: q.general.size,
|
|
2674
|
+
height: q.general.size
|
|
2664
2675
|
}
|
|
2665
2676
|
) }),
|
|
2666
|
-
|
|
2677
|
+
p && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
2667
2678
|
b,
|
|
2668
2679
|
{
|
|
2669
2680
|
name: "Sliders",
|
|
@@ -2685,8 +2696,8 @@ const tc = (u) => {
|
|
|
2685
2696
|
tertiary: Bo,
|
|
2686
2697
|
tertiaryHovered: To,
|
|
2687
2698
|
content: Po
|
|
2688
|
-
}, Q = (
|
|
2689
|
-
const { children: a, onClick: e, style: s, className: i, disabled: c = !1, type: l = "Primary" } =
|
|
2699
|
+
}, Q = (d) => {
|
|
2700
|
+
const { children: a, onClick: e, style: s, className: i, disabled: c = !1, type: l = "Primary" } = d, { themeSettings: o } = Ut();
|
|
2690
2701
|
return /* @__PURE__ */ t.jsx(
|
|
2691
2702
|
"button",
|
|
2692
2703
|
{
|
|
@@ -2718,89 +2729,89 @@ const tc = (u) => {
|
|
|
2718
2729
|
}
|
|
2719
2730
|
);
|
|
2720
2731
|
};
|
|
2721
|
-
var zt = /* @__PURE__ */ ((
|
|
2722
|
-
const ec = (
|
|
2723
|
-
var H,
|
|
2724
|
-
const { variants: a } =
|
|
2732
|
+
var zt = /* @__PURE__ */ ((d) => (d.ONE_TIME = "One-Time", d.RECURRING = "Subscribe & Save", d))(zt || {});
|
|
2733
|
+
const ec = (d) => {
|
|
2734
|
+
var H, q;
|
|
2735
|
+
const { variants: a } = d, [e, s] = f.useState(a[0]), [i, c] = f.useState(e.chargeTypes[0]), l = Bt(), [o, n] = f.useState(1), { reset: _, addProductToCart: v, getProducts: g } = Ot(), [r, k] = f.useState(!1);
|
|
2725
2736
|
f.useEffect(() => {
|
|
2726
|
-
|
|
2727
|
-
const
|
|
2728
|
-
return () => clearTimeout(
|
|
2737
|
+
k(!0);
|
|
2738
|
+
const u = setTimeout(() => k(!1), 600);
|
|
2739
|
+
return () => clearTimeout(u);
|
|
2729
2740
|
}, [o]);
|
|
2730
|
-
async function
|
|
2731
|
-
await
|
|
2732
|
-
productId:
|
|
2741
|
+
async function p() {
|
|
2742
|
+
await g(), await v({
|
|
2743
|
+
productId: d.id,
|
|
2733
2744
|
productVariantId: e.id,
|
|
2734
2745
|
quantity: o
|
|
2735
2746
|
});
|
|
2736
2747
|
}
|
|
2737
|
-
function
|
|
2738
|
-
|
|
2748
|
+
function m() {
|
|
2749
|
+
_(), p(), l("/checkout");
|
|
2739
2750
|
}
|
|
2740
|
-
function
|
|
2741
|
-
if (
|
|
2742
|
-
const
|
|
2743
|
-
return `${
|
|
2744
|
-
} else if (
|
|
2745
|
-
const
|
|
2746
|
-
return `${
|
|
2747
|
-
} else if (
|
|
2748
|
-
const
|
|
2749
|
-
return `${
|
|
2751
|
+
function $(u) {
|
|
2752
|
+
if (u >= 864e5) {
|
|
2753
|
+
const j = Math.floor(u / 864e5);
|
|
2754
|
+
return `${j} ${j === 1 ? "day" : "days"}`;
|
|
2755
|
+
} else if (u >= 36e5) {
|
|
2756
|
+
const j = Math.floor(u / 36e5);
|
|
2757
|
+
return `${j} ${j === 1 ? "hour" : "hours"}`;
|
|
2758
|
+
} else if (u >= 6e4) {
|
|
2759
|
+
const j = Math.floor(u / 6e4);
|
|
2760
|
+
return `${j} ${j === 1 ? "minute" : "minutes"}`;
|
|
2750
2761
|
} else {
|
|
2751
|
-
const
|
|
2752
|
-
return `${
|
|
2762
|
+
const j = Math.floor(u / 1e3);
|
|
2763
|
+
return `${j} ${j === 1 ? "second" : "seconds"}`;
|
|
2753
2764
|
}
|
|
2754
2765
|
}
|
|
2755
2766
|
return f.useEffect(() => {
|
|
2756
2767
|
(e.quantity.available === 0 || !e.quantity.available) && n(0);
|
|
2757
|
-
}, [e.quantity.available]), console.log(e.quantity), /* @__PURE__ */ t.jsxs("div", { className:
|
|
2758
|
-
e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className:
|
|
2768
|
+
}, [e.quantity.available]), console.log(e.quantity), /* @__PURE__ */ t.jsxs("div", { className: T.options, children: [
|
|
2769
|
+
e.chargeTypes.length > 1 && /* @__PURE__ */ t.jsx("div", { className: T.chargeTypes, children: e.chargeTypes.map((u) => /* @__PURE__ */ t.jsx(
|
|
2759
2770
|
"div",
|
|
2760
2771
|
{
|
|
2761
|
-
className: Y(
|
|
2762
|
-
[
|
|
2772
|
+
className: Y(T.charge, {
|
|
2773
|
+
[T.chargeActive]: i === u
|
|
2763
2774
|
}),
|
|
2764
|
-
onClick: () => c(
|
|
2765
|
-
children: zt[
|
|
2775
|
+
onClick: () => c(u),
|
|
2776
|
+
children: zt[u]
|
|
2766
2777
|
},
|
|
2767
|
-
|
|
2778
|
+
u
|
|
2768
2779
|
)) }),
|
|
2769
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2770
|
-
var
|
|
2780
|
+
/* @__PURE__ */ t.jsx("div", { className: T.variants, children: a.map((u) => {
|
|
2781
|
+
var S;
|
|
2771
2782
|
return /* @__PURE__ */ t.jsxs(
|
|
2772
2783
|
"div",
|
|
2773
2784
|
{
|
|
2774
|
-
className: Y(
|
|
2775
|
-
[
|
|
2785
|
+
className: Y(T.variant, {
|
|
2786
|
+
[T.activeVariant]: e.id === u.id
|
|
2776
2787
|
}),
|
|
2777
|
-
onClick: () => s(
|
|
2788
|
+
onClick: () => s(u),
|
|
2778
2789
|
children: [
|
|
2779
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2780
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
2790
|
+
/* @__PURE__ */ t.jsxs("div", { className: T.variantInfo, children: [
|
|
2791
|
+
/* @__PURE__ */ t.jsx("span", { className: T.title, children: u.name }),
|
|
2781
2792
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
2782
2793
|
"$",
|
|
2783
|
-
i === "ONE_TIME" ?
|
|
2794
|
+
i === "ONE_TIME" ? u.price.amount : u.subscriptionSettings ? u.subscriptionSettings.price.amount : "Price Not Found"
|
|
2784
2795
|
] })
|
|
2785
2796
|
] }),
|
|
2786
|
-
/* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className:
|
|
2787
|
-
((
|
|
2797
|
+
/* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: T.stock, children: [
|
|
2798
|
+
((S = u.quantity.restrictions) == null ? void 0 : S.max) || u.quantity.available || 0,
|
|
2788
2799
|
" in stock"
|
|
2789
2800
|
] }) })
|
|
2790
2801
|
]
|
|
2791
2802
|
},
|
|
2792
|
-
|
|
2803
|
+
u.id
|
|
2793
2804
|
);
|
|
2794
2805
|
}) }),
|
|
2795
|
-
i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className:
|
|
2806
|
+
i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: T.quantity, children: [
|
|
2796
2807
|
/* @__PURE__ */ t.jsx(
|
|
2797
2808
|
Q,
|
|
2798
2809
|
{
|
|
2799
2810
|
type: "Secondary",
|
|
2800
2811
|
onClick: () => {
|
|
2801
|
-
o > 1 ? n((
|
|
2812
|
+
o > 1 ? n((u) => u - 1) : n(1);
|
|
2802
2813
|
},
|
|
2803
|
-
className:
|
|
2814
|
+
className: T.button,
|
|
2804
2815
|
disabled: e.quantity.available === 0 || e.quantity.restrictions && o <= e.quantity.restrictions.min || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available,
|
|
2805
2816
|
children: /* @__PURE__ */ t.jsx(b, { name: "Minus" })
|
|
2806
2817
|
}
|
|
@@ -2810,9 +2821,9 @@ const ec = (u) => {
|
|
|
2810
2821
|
{
|
|
2811
2822
|
type: "number",
|
|
2812
2823
|
value: String(o),
|
|
2813
|
-
onChange: (
|
|
2824
|
+
onChange: (u) => n(Number(u)),
|
|
2814
2825
|
max: ((H = e.quantity.restrictions) == null ? void 0 : H.max) || e.quantity.available || 1 / 0,
|
|
2815
|
-
min: ((
|
|
2826
|
+
min: ((q = e.quantity.restrictions) == null ? void 0 : q.min) || 0,
|
|
2816
2827
|
centered: !0,
|
|
2817
2828
|
disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available
|
|
2818
2829
|
}
|
|
@@ -2822,18 +2833,18 @@ const ec = (u) => {
|
|
|
2822
2833
|
{
|
|
2823
2834
|
type: "Secondary",
|
|
2824
2835
|
onClick: () => {
|
|
2825
|
-
n((
|
|
2836
|
+
n((u) => u + 1);
|
|
2826
2837
|
},
|
|
2827
|
-
className:
|
|
2838
|
+
className: T.button,
|
|
2828
2839
|
disabled: !!(e.quantity.restrictions && o >= e.quantity.restrictions.max || e.quantity.available !== void 0 && o >= e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available),
|
|
2829
2840
|
children: /* @__PURE__ */ t.jsx(b, { name: "Plus" })
|
|
2830
2841
|
}
|
|
2831
2842
|
)
|
|
2832
2843
|
] }),
|
|
2833
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2834
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2844
|
+
/* @__PURE__ */ t.jsxs("div", { className: T.meta, children: [
|
|
2845
|
+
/* @__PURE__ */ t.jsxs("div", { className: T.info, children: [
|
|
2835
2846
|
/* @__PURE__ */ t.jsx("span", { children: "Delivery" }),
|
|
2836
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2847
|
+
/* @__PURE__ */ t.jsxs("div", { className: T.infoRight, children: [
|
|
2837
2848
|
/* @__PURE__ */ t.jsx(
|
|
2838
2849
|
b,
|
|
2839
2850
|
{
|
|
@@ -2843,44 +2854,44 @@ const ec = (u) => {
|
|
|
2843
2854
|
height: 20
|
|
2844
2855
|
}
|
|
2845
2856
|
),
|
|
2846
|
-
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" :
|
|
2857
|
+
/* @__PURE__ */ t.jsx("span", { children: !e.deliveryTime || e.deliveryTime === 0 ? "Instant" : $(e.deliveryTime) })
|
|
2847
2858
|
] })
|
|
2848
2859
|
] }),
|
|
2849
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2860
|
+
/* @__PURE__ */ t.jsxs("div", { className: T.info, children: [
|
|
2850
2861
|
/* @__PURE__ */ t.jsx("span", { children: "Price" }),
|
|
2851
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
2852
|
-
/* @__PURE__ */ t.jsxs("span", { className: Y(
|
|
2862
|
+
/* @__PURE__ */ t.jsx("div", { className: T.infoRight, children: i === "ONE_TIME" ? e.compareAtPrice && (e.compareAtPrice.amount || 0) - (e.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: T.price, children: [
|
|
2863
|
+
/* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
|
|
2853
2864
|
"$ ",
|
|
2854
2865
|
(e.price.amount || 0) * o
|
|
2855
2866
|
] }),
|
|
2856
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2867
|
+
/* @__PURE__ */ t.jsxs("span", { className: T.oldPrice, children: [
|
|
2857
2868
|
"$ ",
|
|
2858
2869
|
(e.compareAtPrice.amount || 0) * o
|
|
2859
2870
|
] })
|
|
2860
|
-
] }) : /* @__PURE__ */ t.jsxs("span", { className: Y(
|
|
2871
|
+
] }) : /* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
|
|
2861
2872
|
"$ ",
|
|
2862
2873
|
(e.price.amount || 0) * o
|
|
2863
|
-
] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
2864
|
-
/* @__PURE__ */ t.jsxs("span", { className: Y(
|
|
2874
|
+
] }) : e.subscriptionSettings && e.subscriptionSettings.compareAtPrice && (e.subscriptionSettings.compareAtPrice.amount || 0) - (e.subscriptionSettings.price.amount || 0) > 0 ? /* @__PURE__ */ t.jsxs("div", { className: T.price, children: [
|
|
2875
|
+
/* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
|
|
2865
2876
|
"$ ",
|
|
2866
2877
|
e.subscriptionSettings.price.amount || 0
|
|
2867
2878
|
] }),
|
|
2868
|
-
/* @__PURE__ */ t.jsxs("span", { className:
|
|
2879
|
+
/* @__PURE__ */ t.jsxs("span", { className: T.oldPrice, children: [
|
|
2869
2880
|
"$ ",
|
|
2870
2881
|
e.subscriptionSettings.compareAtPrice.amount || 0
|
|
2871
2882
|
] })
|
|
2872
|
-
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: Y(
|
|
2883
|
+
] }) : e.subscriptionSettings && /* @__PURE__ */ t.jsxs("span", { className: Y(T.newPrice, { [T.animate]: r }), children: [
|
|
2873
2884
|
"$ ",
|
|
2874
2885
|
e.subscriptionSettings.price.amount || 0
|
|
2875
2886
|
] }) })
|
|
2876
2887
|
] })
|
|
2877
2888
|
] }),
|
|
2878
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
2889
|
+
/* @__PURE__ */ t.jsxs("div", { className: T.buttons, children: [
|
|
2879
2890
|
/* @__PURE__ */ t.jsx(
|
|
2880
2891
|
Q,
|
|
2881
2892
|
{
|
|
2882
2893
|
type: "Primary",
|
|
2883
|
-
onClick: () =>
|
|
2894
|
+
onClick: () => m(),
|
|
2884
2895
|
disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available,
|
|
2885
2896
|
children: i === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
|
|
2886
2897
|
}
|
|
@@ -2889,14 +2900,14 @@ const ec = (u) => {
|
|
|
2889
2900
|
Q,
|
|
2890
2901
|
{
|
|
2891
2902
|
type: "Secondary",
|
|
2892
|
-
onClick: () =>
|
|
2903
|
+
onClick: () => p(),
|
|
2893
2904
|
disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available,
|
|
2894
2905
|
children: "Add to Cart"
|
|
2895
2906
|
}
|
|
2896
2907
|
)
|
|
2897
2908
|
] })
|
|
2898
2909
|
] });
|
|
2899
|
-
}, Ao = "_button_1tdo3_1", Oo = "_login_1tdo3_14", Mo = "_signUp_1tdo3_18", qo = "_buttons_1tdo3_23", Eo = "_modal_1tdo3_32",
|
|
2910
|
+
}, Ao = "_button_1tdo3_1", Oo = "_login_1tdo3_14", Mo = "_signUp_1tdo3_18", qo = "_buttons_1tdo3_23", Eo = "_modal_1tdo3_32", Uo = "_closing_1tdo3_64", Do = "_info_1tdo3_113", Lo = "_top_1tdo3_120", Ho = "_title_1tdo3_131", Ro = "_clear_1tdo3_138", zo = "_activeClear_1tdo3_145", Fo = "_count_1tdo3_149", Vo = "_cart_1tdo3_164", Yo = "_empty_1tdo3_172", Go = "_product_1tdo3_198", Xo = "_products_1tdo3_207", Wo = "_image_1tdo3_215", Jo = "_productInfo_1tdo3_221", Qo = "_content_1tdo3_228", Ko = "_name_1tdo3_234", Zo = "_price_1tdo3_240", ta = "_productButtons_1tdo3_246", ea = "_productButton_1tdo3_246", sa = "_productCount_1tdo3_266", na = "_bottom_1tdo3_282", ia = "_subtotal_1tdo3_290", oa = "_block_1tdo3_298", aa = "_shoppingCount_1tdo3_305", ca = "_total_1tdo3_325", la = "_link_1tdo3_331", ra = "_userInfo_1tdo3_338", da = "_pagesMobileModal_1tdo3_349", ua = "_pagesMobileModalContent_1tdo3_363", _a = "_pagesMobileModalHeader_1tdo3_369", ma = "_pagesMobileModalFooter_1tdo3_379", C = {
|
|
2900
2911
|
button: Ao,
|
|
2901
2912
|
login: Oo,
|
|
2902
2913
|
signUp: Mo,
|
|
@@ -2904,13 +2915,13 @@ const ec = (u) => {
|
|
|
2904
2915
|
modal: Eo,
|
|
2905
2916
|
"slide-in-fade": "_slide-in-fade_1tdo3_1",
|
|
2906
2917
|
"mobile-slide-in-fade": "_mobile-slide-in-fade_1tdo3_1",
|
|
2907
|
-
closing:
|
|
2918
|
+
closing: Uo,
|
|
2908
2919
|
"mobile-slide-out-fade": "_mobile-slide-out-fade_1tdo3_1",
|
|
2909
2920
|
"slide-out-fade": "_slide-out-fade_1tdo3_1",
|
|
2910
|
-
info:
|
|
2911
|
-
top:
|
|
2912
|
-
title:
|
|
2913
|
-
clear:
|
|
2921
|
+
info: Do,
|
|
2922
|
+
top: Lo,
|
|
2923
|
+
title: Ho,
|
|
2924
|
+
clear: Ro,
|
|
2914
2925
|
activeClear: zo,
|
|
2915
2926
|
count: Fo,
|
|
2916
2927
|
cart: Vo,
|
|
@@ -2940,14 +2951,14 @@ const ec = (u) => {
|
|
|
2940
2951
|
class xt extends Error {
|
|
2941
2952
|
}
|
|
2942
2953
|
xt.prototype.name = "InvalidTokenError";
|
|
2943
|
-
function
|
|
2944
|
-
return decodeURIComponent(atob(
|
|
2954
|
+
function pa(d) {
|
|
2955
|
+
return decodeURIComponent(atob(d).replace(/(.)/g, (a, e) => {
|
|
2945
2956
|
let s = e.charCodeAt(0).toString(16).toUpperCase();
|
|
2946
2957
|
return s.length < 2 && (s = "0" + s), "%" + s;
|
|
2947
2958
|
}));
|
|
2948
2959
|
}
|
|
2949
|
-
function
|
|
2950
|
-
let a =
|
|
2960
|
+
function ha(d) {
|
|
2961
|
+
let a = d.replace(/-/g, "+").replace(/_/g, "/");
|
|
2951
2962
|
switch (a.length % 4) {
|
|
2952
2963
|
case 0:
|
|
2953
2964
|
break;
|
|
@@ -2961,21 +2972,21 @@ function pa(u) {
|
|
|
2961
2972
|
throw new Error("base64 string is not of the correct length");
|
|
2962
2973
|
}
|
|
2963
2974
|
try {
|
|
2964
|
-
return
|
|
2975
|
+
return pa(a);
|
|
2965
2976
|
} catch {
|
|
2966
2977
|
return atob(a);
|
|
2967
2978
|
}
|
|
2968
2979
|
}
|
|
2969
|
-
function fa(
|
|
2970
|
-
if (typeof
|
|
2980
|
+
function fa(d, a) {
|
|
2981
|
+
if (typeof d != "string")
|
|
2971
2982
|
throw new xt("Invalid token specified: must be a string");
|
|
2972
2983
|
a || (a = {});
|
|
2973
|
-
const e = a.header === !0 ? 0 : 1, s =
|
|
2984
|
+
const e = a.header === !0 ? 0 : 1, s = d.split(".")[e];
|
|
2974
2985
|
if (typeof s != "string")
|
|
2975
2986
|
throw new xt(`Invalid token specified: missing part #${e + 1}`);
|
|
2976
2987
|
let i;
|
|
2977
2988
|
try {
|
|
2978
|
-
i =
|
|
2989
|
+
i = ha(s);
|
|
2979
2990
|
} catch (c) {
|
|
2980
2991
|
throw new xt(`Invalid token specified: invalid base64 for part #${e + 1} (${c.message})`);
|
|
2981
2992
|
}
|
|
@@ -2985,41 +2996,41 @@ function fa(u, a) {
|
|
|
2985
2996
|
throw new xt(`Invalid token specified: invalid json for part #${e + 1} (${c.message})`);
|
|
2986
2997
|
}
|
|
2987
2998
|
}
|
|
2988
|
-
const sc = (
|
|
2989
|
-
const { shopping: a, signUp: e, isShowUserInfo: s = !0 } =
|
|
2990
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
2999
|
+
const sc = (d) => {
|
|
3000
|
+
const { shopping: a, signUp: e, isShowUserInfo: s = !0 } = d;
|
|
3001
|
+
return /* @__PURE__ */ t.jsxs("div", { className: C.buttons, children: [
|
|
2991
3002
|
a && /* @__PURE__ */ t.jsx(ga, {}),
|
|
2992
3003
|
s && /* @__PURE__ */ t.jsx(Ft, { signUp: e })
|
|
2993
3004
|
] });
|
|
2994
3005
|
}, ga = () => {
|
|
2995
|
-
const [
|
|
3006
|
+
const [d, a] = f.useState(!1), [e, s] = f.useState([]), { cart: i, getProducts: c } = Ot();
|
|
2996
3007
|
function l(r) {
|
|
2997
|
-
for (let
|
|
2998
|
-
for (let
|
|
2999
|
-
if (i.parts[
|
|
3000
|
-
return i.parts[
|
|
3008
|
+
for (let k = 0; k < i.parts.length; k++)
|
|
3009
|
+
for (let p = 0; p < r.variants.length; p++)
|
|
3010
|
+
if (i.parts[k].productVariantId === r.variants[k].id)
|
|
3011
|
+
return i.parts[k].productVariantId;
|
|
3001
3012
|
}
|
|
3002
3013
|
function o(r) {
|
|
3003
|
-
for (let
|
|
3004
|
-
for (let
|
|
3005
|
-
if (i.parts[
|
|
3006
|
-
return i.parts[
|
|
3014
|
+
for (let k = 0; k < i.parts.length; k++)
|
|
3015
|
+
for (let p = 0; p < r.variants.length; p++)
|
|
3016
|
+
if (i.parts[k].productVariantId === r.variants[k].id)
|
|
3017
|
+
return i.parts[k].quantity;
|
|
3007
3018
|
}
|
|
3008
3019
|
f.useEffect(() => {
|
|
3009
3020
|
(async () => {
|
|
3010
|
-
const
|
|
3011
|
-
|
|
3012
|
-
activeVariantId: l(
|
|
3013
|
-
quantity: o(
|
|
3021
|
+
const k = i.parts.map(($) => String($.productId)), m = (await c([...k])).map(($) => ({
|
|
3022
|
+
...$,
|
|
3023
|
+
activeVariantId: l($),
|
|
3024
|
+
quantity: o($)
|
|
3014
3025
|
}));
|
|
3015
|
-
s(
|
|
3026
|
+
s(m);
|
|
3016
3027
|
})();
|
|
3017
3028
|
}, [i.parts.length]);
|
|
3018
3029
|
function n(r) {
|
|
3019
|
-
var
|
|
3020
|
-
return !r || !(r != null && r.variants) ? !1 : (
|
|
3030
|
+
var k;
|
|
3031
|
+
return !r || !(r != null && r.variants) ? !1 : (k = r.variants.find((p) => p.id === r.activeVariantId)) == null ? void 0 : k.subscriptionSettings;
|
|
3021
3032
|
}
|
|
3022
|
-
const
|
|
3033
|
+
const _ = i.parts.length > 0 && e.length > 0 && !n(e[0]), [v, g] = f.useState(!1);
|
|
3023
3034
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3024
3035
|
/* @__PURE__ */ t.jsxs(
|
|
3025
3036
|
Q,
|
|
@@ -3029,7 +3040,7 @@ const sc = (u) => {
|
|
|
3029
3040
|
padding: 10
|
|
3030
3041
|
},
|
|
3031
3042
|
onClick: (r) => {
|
|
3032
|
-
r.stopPropagation(), window.location.pathname !== "/admin/builder" && (a(!0),
|
|
3043
|
+
r.stopPropagation(), window.location.pathname !== "/admin/builder" && (a(!0), g(!0));
|
|
3033
3044
|
},
|
|
3034
3045
|
children: [
|
|
3035
3046
|
/* @__PURE__ */ t.jsx(
|
|
@@ -3039,15 +3050,15 @@ const sc = (u) => {
|
|
|
3039
3050
|
fill: "var(--icon-primary)"
|
|
3040
3051
|
}
|
|
3041
3052
|
),
|
|
3042
|
-
|
|
3053
|
+
_ && /* @__PURE__ */ t.jsx("div", { className: C.shoppingCount, children: i.parts.length })
|
|
3043
3054
|
]
|
|
3044
3055
|
}
|
|
3045
3056
|
),
|
|
3046
|
-
|
|
3057
|
+
d && /* @__PURE__ */ t.jsx(
|
|
3047
3058
|
Mt,
|
|
3048
3059
|
{
|
|
3049
3060
|
close: () => {
|
|
3050
|
-
|
|
3061
|
+
g(!1), setTimeout(() => {
|
|
3051
3062
|
a(!1);
|
|
3052
3063
|
}, 300);
|
|
3053
3064
|
},
|
|
@@ -3056,26 +3067,26 @@ const sc = (u) => {
|
|
|
3056
3067
|
xa,
|
|
3057
3068
|
{
|
|
3058
3069
|
activeProducts: e,
|
|
3059
|
-
isCartNotEmpty:
|
|
3060
|
-
isOpen:
|
|
3070
|
+
isCartNotEmpty: _,
|
|
3071
|
+
isOpen: v
|
|
3061
3072
|
}
|
|
3062
3073
|
)
|
|
3063
3074
|
}
|
|
3064
3075
|
)
|
|
3065
3076
|
] });
|
|
3066
|
-
}, xa = (
|
|
3067
|
-
const { activeProducts: a, isCartNotEmpty: e, isOpen: s } =
|
|
3068
|
-
function
|
|
3077
|
+
}, xa = (d) => {
|
|
3078
|
+
const { activeProducts: a, isCartNotEmpty: e, isOpen: s } = d, { cart: i, reset: c, getTotalAndDiscount: l, updateQuantityOfProduct: o } = Ot(), n = Bt();
|
|
3079
|
+
function _(r) {
|
|
3069
3080
|
n(r);
|
|
3070
3081
|
}
|
|
3071
|
-
function
|
|
3082
|
+
function v(r) {
|
|
3072
3083
|
o({
|
|
3073
3084
|
productId: r.id,
|
|
3074
3085
|
productVariantId: r.activeVariantId,
|
|
3075
3086
|
quantity: r.quantity + 1
|
|
3076
3087
|
});
|
|
3077
3088
|
}
|
|
3078
|
-
function
|
|
3089
|
+
function g(r) {
|
|
3079
3090
|
o({
|
|
3080
3091
|
productId: r.id,
|
|
3081
3092
|
productVariantId: r.activeVariantId,
|
|
@@ -3085,21 +3096,21 @@ const sc = (u) => {
|
|
|
3085
3096
|
return /* @__PURE__ */ t.jsxs(
|
|
3086
3097
|
"div",
|
|
3087
3098
|
{
|
|
3088
|
-
className: Y(
|
|
3089
|
-
[
|
|
3099
|
+
className: Y(C.modal, {
|
|
3100
|
+
[C.closing]: !s
|
|
3090
3101
|
}),
|
|
3091
3102
|
onClick: (r) => r.stopPropagation(),
|
|
3092
3103
|
children: [
|
|
3093
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3094
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3095
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
3096
|
-
e && /* @__PURE__ */ t.jsx("div", { className:
|
|
3104
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.top, children: [
|
|
3105
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.info, children: [
|
|
3106
|
+
/* @__PURE__ */ t.jsx("span", { className: C.title, children: "Cart" }),
|
|
3107
|
+
e && /* @__PURE__ */ t.jsx("div", { className: C.count, children: i.parts.length })
|
|
3097
3108
|
] }),
|
|
3098
3109
|
/* @__PURE__ */ t.jsx(
|
|
3099
3110
|
"button",
|
|
3100
3111
|
{
|
|
3101
|
-
className: Y(
|
|
3102
|
-
[
|
|
3112
|
+
className: Y(C.clear, {
|
|
3113
|
+
[C.activeClear]: e
|
|
3103
3114
|
}),
|
|
3104
3115
|
disabled: !e,
|
|
3105
3116
|
onClick: c,
|
|
@@ -3107,13 +3118,13 @@ const sc = (u) => {
|
|
|
3107
3118
|
}
|
|
3108
3119
|
)
|
|
3109
3120
|
] }),
|
|
3110
|
-
e ? /* @__PURE__ */ t.jsxs("div", { className:
|
|
3111
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3121
|
+
e ? /* @__PURE__ */ t.jsxs("div", { className: C.cart, children: [
|
|
3122
|
+
/* @__PURE__ */ t.jsx("div", { className: C.products, children: a.map((r) => /* @__PURE__ */ t.jsxs(
|
|
3112
3123
|
"div",
|
|
3113
3124
|
{
|
|
3114
|
-
className:
|
|
3125
|
+
className: C.product,
|
|
3115
3126
|
children: [
|
|
3116
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3127
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.productInfo, children: [
|
|
3117
3128
|
/* @__PURE__ */ t.jsx(
|
|
3118
3129
|
"img",
|
|
3119
3130
|
{
|
|
@@ -3121,25 +3132,25 @@ const sc = (u) => {
|
|
|
3121
3132
|
alt: "image",
|
|
3122
3133
|
width: "100%",
|
|
3123
3134
|
height: "100%",
|
|
3124
|
-
className:
|
|
3135
|
+
className: C.image
|
|
3125
3136
|
}
|
|
3126
3137
|
),
|
|
3127
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3128
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3129
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3138
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.content, children: [
|
|
3139
|
+
/* @__PURE__ */ t.jsx("div", { className: C.name, children: r.name }),
|
|
3140
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.price, children: [
|
|
3130
3141
|
"$",
|
|
3131
|
-
r.variants.find((
|
|
3142
|
+
r.variants.find((k) => k.id === r.activeVariantId).price.amount * ((r == null ? void 0 : r.quantity) || 1)
|
|
3132
3143
|
] })
|
|
3133
3144
|
] })
|
|
3134
3145
|
] }),
|
|
3135
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3146
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.productButtons, children: [
|
|
3136
3147
|
/* @__PURE__ */ t.jsx(
|
|
3137
3148
|
"div",
|
|
3138
3149
|
{
|
|
3139
3150
|
onClick: () => {
|
|
3140
|
-
r.quantity !== 1 &&
|
|
3151
|
+
r.quantity !== 1 && g(r);
|
|
3141
3152
|
},
|
|
3142
|
-
className:
|
|
3153
|
+
className: C.productButton,
|
|
3143
3154
|
children: /* @__PURE__ */ t.jsx(
|
|
3144
3155
|
b,
|
|
3145
3156
|
{
|
|
@@ -3151,12 +3162,12 @@ const sc = (u) => {
|
|
|
3151
3162
|
)
|
|
3152
3163
|
}
|
|
3153
3164
|
),
|
|
3154
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3165
|
+
/* @__PURE__ */ t.jsx("div", { className: C.productCount, children: r.quantity }),
|
|
3155
3166
|
/* @__PURE__ */ t.jsx(
|
|
3156
3167
|
"div",
|
|
3157
3168
|
{
|
|
3158
|
-
onClick: () =>
|
|
3159
|
-
className:
|
|
3169
|
+
onClick: () => v(r),
|
|
3170
|
+
className: C.productButton,
|
|
3160
3171
|
children: /* @__PURE__ */ t.jsx(
|
|
3161
3172
|
b,
|
|
3162
3173
|
{
|
|
@@ -3173,9 +3184,9 @@ const sc = (u) => {
|
|
|
3173
3184
|
},
|
|
3174
3185
|
r.id
|
|
3175
3186
|
)) }),
|
|
3176
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3177
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3178
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3187
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.bottom, children: [
|
|
3188
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.subtotal, children: [
|
|
3189
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.block, children: [
|
|
3179
3190
|
/* @__PURE__ */ t.jsx("span", { children: "Subtotal" }),
|
|
3180
3191
|
/* @__PURE__ */ t.jsx(
|
|
3181
3192
|
b,
|
|
@@ -3187,18 +3198,18 @@ const sc = (u) => {
|
|
|
3187
3198
|
}
|
|
3188
3199
|
)
|
|
3189
3200
|
] }),
|
|
3190
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3201
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.total, children: [
|
|
3191
3202
|
"$",
|
|
3192
3203
|
l().total
|
|
3193
3204
|
] })
|
|
3194
3205
|
] }),
|
|
3195
|
-
/* @__PURE__ */ t.jsx(Q, { onClick: () =>
|
|
3206
|
+
/* @__PURE__ */ t.jsx(Q, { onClick: () => _("/checkout"), children: "Checkout" })
|
|
3196
3207
|
] })
|
|
3197
3208
|
] }) : /* @__PURE__ */ t.jsx(ba, {})
|
|
3198
3209
|
]
|
|
3199
3210
|
}
|
|
3200
3211
|
);
|
|
3201
|
-
}, ba = () => /* @__PURE__ */ t.jsxs("div", { className:
|
|
3212
|
+
}, ba = () => /* @__PURE__ */ t.jsxs("div", { className: C.empty, children: [
|
|
3202
3213
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
3203
3214
|
b,
|
|
3204
3215
|
{
|
|
@@ -3214,12 +3225,12 @@ const sc = (u) => {
|
|
|
3214
3225
|
"a",
|
|
3215
3226
|
{
|
|
3216
3227
|
href: "/products",
|
|
3217
|
-
className:
|
|
3228
|
+
className: C.link,
|
|
3218
3229
|
children: "view products"
|
|
3219
3230
|
}
|
|
3220
3231
|
)
|
|
3221
3232
|
] })
|
|
3222
|
-
] }), Ft = ({ signUp:
|
|
3233
|
+
] }), Ft = ({ signUp: d }) => {
|
|
3223
3234
|
const a = JSON.parse(localStorage.getItem("token") || "{}"), { data: e } = a, s = Bt();
|
|
3224
3235
|
function i(o) {
|
|
3225
3236
|
s(o);
|
|
@@ -3237,7 +3248,7 @@ const sc = (u) => {
|
|
|
3237
3248
|
children: "Login"
|
|
3238
3249
|
}
|
|
3239
3250
|
),
|
|
3240
|
-
|
|
3251
|
+
d && /* @__PURE__ */ t.jsx(
|
|
3241
3252
|
Q,
|
|
3242
3253
|
{
|
|
3243
3254
|
onClick: () => i("/customer-dash"),
|
|
@@ -3258,18 +3269,18 @@ const sc = (u) => {
|
|
|
3258
3269
|
}, [e]), /* @__PURE__ */ t.jsx(
|
|
3259
3270
|
"div",
|
|
3260
3271
|
{
|
|
3261
|
-
className:
|
|
3272
|
+
className: C.userInfo,
|
|
3262
3273
|
onClick: () => i("/customer-dash"),
|
|
3263
3274
|
children: /* @__PURE__ */ t.jsx("div", { children: c || "test-email@gmail.com" })
|
|
3264
3275
|
}
|
|
3265
3276
|
);
|
|
3266
3277
|
}, va = ({
|
|
3267
|
-
children:
|
|
3278
|
+
children: d,
|
|
3268
3279
|
logo: a,
|
|
3269
3280
|
setIsOpen: e,
|
|
3270
3281
|
signUp: s
|
|
3271
3282
|
}) => {
|
|
3272
|
-
const { setIsOpen: i } =
|
|
3283
|
+
const { setIsOpen: i } = Dt(), c = () => {
|
|
3273
3284
|
i(!1), setTimeout(() => {
|
|
3274
3285
|
e(!1), i(!0);
|
|
3275
3286
|
}, 300);
|
|
@@ -3277,10 +3288,10 @@ const sc = (u) => {
|
|
|
3277
3288
|
return /* @__PURE__ */ t.jsxs(
|
|
3278
3289
|
"div",
|
|
3279
3290
|
{
|
|
3280
|
-
className:
|
|
3291
|
+
className: C.pagesMobileModal,
|
|
3281
3292
|
onClick: (l) => l.stopPropagation(),
|
|
3282
3293
|
children: [
|
|
3283
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3294
|
+
/* @__PURE__ */ t.jsxs("div", { className: C.pagesMobileModalHeader, children: [
|
|
3284
3295
|
/* @__PURE__ */ t.jsx("div", { children: a }),
|
|
3285
3296
|
/* @__PURE__ */ t.jsx(
|
|
3286
3297
|
Q,
|
|
@@ -3297,13 +3308,13 @@ const sc = (u) => {
|
|
|
3297
3308
|
}
|
|
3298
3309
|
)
|
|
3299
3310
|
] }),
|
|
3300
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3301
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3311
|
+
/* @__PURE__ */ t.jsx("div", { className: C.pagesMobileModalContent, children: d }),
|
|
3312
|
+
/* @__PURE__ */ t.jsx("div", { className: C.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(Ft, { signUp: s }) })
|
|
3302
3313
|
]
|
|
3303
3314
|
}
|
|
3304
3315
|
);
|
|
3305
3316
|
}, nc = ({
|
|
3306
|
-
children:
|
|
3317
|
+
children: d,
|
|
3307
3318
|
logo: a,
|
|
3308
3319
|
signUp: e
|
|
3309
3320
|
}) => {
|
|
@@ -3316,12 +3327,12 @@ const sc = (u) => {
|
|
|
3316
3327
|
logo: a,
|
|
3317
3328
|
setIsOpen: i,
|
|
3318
3329
|
signUp: e,
|
|
3319
|
-
children:
|
|
3330
|
+
children: d
|
|
3320
3331
|
}
|
|
3321
3332
|
) })
|
|
3322
3333
|
] });
|
|
3323
|
-
}, ja = (
|
|
3324
|
-
const { setIsOpenModal: a } =
|
|
3334
|
+
}, ja = (d) => {
|
|
3335
|
+
const { setIsOpenModal: a } = d;
|
|
3325
3336
|
return /* @__PURE__ */ t.jsx(
|
|
3326
3337
|
Q,
|
|
3327
3338
|
{
|
|
@@ -3354,7 +3365,7 @@ const sc = (u) => {
|
|
|
3354
3365
|
copyTextMobile: Ta,
|
|
3355
3366
|
copyTextMiniMobile: Pa
|
|
3356
3367
|
}, ic = () => {
|
|
3357
|
-
const { isOpenModal:
|
|
3368
|
+
const { isOpenModal: d, setIsOpenModal: a } = Lt();
|
|
3358
3369
|
function e() {
|
|
3359
3370
|
a(!0);
|
|
3360
3371
|
}
|
|
@@ -3377,10 +3388,10 @@ const sc = (u) => {
|
|
|
3377
3388
|
)
|
|
3378
3389
|
}
|
|
3379
3390
|
),
|
|
3380
|
-
|
|
3391
|
+
d && /* @__PURE__ */ t.jsx(Mt, { close: a, children: /* @__PURE__ */ t.jsx(Aa, {}) })
|
|
3381
3392
|
] });
|
|
3382
3393
|
}, Aa = () => {
|
|
3383
|
-
const { setIsOpenModal:
|
|
3394
|
+
const { setIsOpenModal: d } = Lt(), { notification: a, setNotification: e } = Gt(), { setIsOpen: s } = Dt(), i = window.location.href;
|
|
3384
3395
|
function c() {
|
|
3385
3396
|
navigator.clipboard.writeText(i), e({
|
|
3386
3397
|
message: "Link copied to clipboard",
|
|
@@ -3389,11 +3400,11 @@ const sc = (u) => {
|
|
|
3389
3400
|
}
|
|
3390
3401
|
function l() {
|
|
3391
3402
|
s(!1), setTimeout(() => {
|
|
3392
|
-
|
|
3403
|
+
d(!1), s(!0);
|
|
3393
3404
|
}, 300);
|
|
3394
3405
|
}
|
|
3395
|
-
function o(n,
|
|
3396
|
-
return n.length >
|
|
3406
|
+
function o(n, _) {
|
|
3407
|
+
return n.length > _ ? n.slice(0, _) + "..." : n;
|
|
3397
3408
|
}
|
|
3398
3409
|
return /* @__PURE__ */ t.jsxs(
|
|
3399
3410
|
"div",
|
|
@@ -3441,13 +3452,13 @@ const sc = (u) => {
|
|
|
3441
3452
|
]
|
|
3442
3453
|
}
|
|
3443
3454
|
);
|
|
3444
|
-
}, Oa = "_accordion_1s1lq_1", Ma = "_header_1s1lq_9", qa = "_icon_1s1lq_18", Ea = "_open_1s1lq_21",
|
|
3455
|
+
}, Oa = "_accordion_1s1lq_1", Ma = "_header_1s1lq_9", qa = "_icon_1s1lq_18", Ea = "_open_1s1lq_21", Ua = "_content_1s1lq_25", gt = {
|
|
3445
3456
|
accordion: Oa,
|
|
3446
3457
|
header: Ma,
|
|
3447
3458
|
icon: qa,
|
|
3448
3459
|
open: Ea,
|
|
3449
|
-
content:
|
|
3450
|
-
}, oc = ({ title:
|
|
3460
|
+
content: Ua
|
|
3461
|
+
}, oc = ({ title: d, content: a, defaultOpen: e = !1 }) => {
|
|
3451
3462
|
const [s, i] = f.useState(e), [c, l] = f.useState(0), o = f.useRef(null), n = () => {
|
|
3452
3463
|
i(!s);
|
|
3453
3464
|
};
|
|
@@ -3460,7 +3471,7 @@ const sc = (u) => {
|
|
|
3460
3471
|
className: gt.header,
|
|
3461
3472
|
onClick: n,
|
|
3462
3473
|
children: [
|
|
3463
|
-
/* @__PURE__ */ t.jsx("h5", { id: "h5", children:
|
|
3474
|
+
/* @__PURE__ */ t.jsx("h5", { id: "h5", children: d }),
|
|
3464
3475
|
/* @__PURE__ */ t.jsx("div", { className: Y(gt.icon, { [gt.open]: s }), children: /* @__PURE__ */ t.jsx(b, { name: "CaretDown" }) })
|
|
3465
3476
|
]
|
|
3466
3477
|
}
|
|
@@ -3475,7 +3486,7 @@ const sc = (u) => {
|
|
|
3475
3486
|
}
|
|
3476
3487
|
)
|
|
3477
3488
|
] });
|
|
3478
|
-
}, ac = ({ children:
|
|
3489
|
+
}, ac = ({ children: d, path: a, className: e, target: s = "_self", id: i }) => {
|
|
3479
3490
|
const c = Bt(), l = /^https?:\/\//.test(a), o = (n) => {
|
|
3480
3491
|
l || s === "_blank" ? s === "_blank" ? window.open(a, "_blank") : window.location.href = a : (n.preventDefault(), c(a, { replace: !0 }));
|
|
3481
3492
|
};
|
|
@@ -3487,13 +3498,13 @@ const sc = (u) => {
|
|
|
3487
3498
|
role: "link",
|
|
3488
3499
|
style: { cursor: "pointer" },
|
|
3489
3500
|
id: i,
|
|
3490
|
-
children:
|
|
3501
|
+
children: d
|
|
3491
3502
|
}
|
|
3492
3503
|
);
|
|
3493
|
-
},
|
|
3494
|
-
buttonsBlock:
|
|
3495
|
-
slideUp:
|
|
3496
|
-
}, cc = () => /* @__PURE__ */ t.jsxs("div", { className:
|
|
3504
|
+
}, Da = "_buttonsBlock_1b2rb_1", La = "_slideUp_1b2rb_1", Ha = {
|
|
3505
|
+
buttonsBlock: Da,
|
|
3506
|
+
slideUp: La
|
|
3507
|
+
}, cc = () => /* @__PURE__ */ t.jsxs("div", { className: Ha.buttonsBlock, children: [
|
|
3497
3508
|
/* @__PURE__ */ t.jsx(
|
|
3498
3509
|
Q,
|
|
3499
3510
|
{
|
|
@@ -3508,13 +3519,13 @@ const sc = (u) => {
|
|
|
3508
3519
|
}
|
|
3509
3520
|
),
|
|
3510
3521
|
/* @__PURE__ */ t.jsx(Q, { type: "Secondary", children: "Buy" })
|
|
3511
|
-
] }),
|
|
3512
|
-
wrapper:
|
|
3522
|
+
] }), Ra = "_wrapper_st58d_1", za = "_label_st58d_10", Fa = "_textarea_st58d_18", Va = "_length_st58d_33", jt = {
|
|
3523
|
+
wrapper: Ra,
|
|
3513
3524
|
label: za,
|
|
3514
3525
|
textarea: Fa,
|
|
3515
3526
|
length: Va
|
|
3516
|
-
}, lc = (
|
|
3517
|
-
const { onChange: a, label: e, value: s, maxLength: i, placeholder: c = "Type something..." } =
|
|
3527
|
+
}, lc = (d) => {
|
|
3528
|
+
const { onChange: a, label: e, value: s, maxLength: i, placeholder: c = "Type something..." } = d, [l, o] = f.useState(s.length);
|
|
3518
3529
|
return /* @__PURE__ */ t.jsxs("div", { className: jt.wrapper, children: [
|
|
3519
3530
|
e && /* @__PURE__ */ t.jsx(
|
|
3520
3531
|
"label",
|
|
@@ -3576,9 +3587,9 @@ export {
|
|
|
3576
3587
|
ga as ShoppingButton,
|
|
3577
3588
|
xa as ShoppingModalCart,
|
|
3578
3589
|
st as Switch,
|
|
3579
|
-
|
|
3590
|
+
Rt as TextSettings,
|
|
3580
3591
|
Et as TextareaSettings,
|
|
3581
3592
|
lc as TextareaUI,
|
|
3582
|
-
|
|
3593
|
+
Ht as TypesText,
|
|
3583
3594
|
Ft as UserInfo
|
|
3584
3595
|
};
|