@billgangcom/theme-lib 1.61.0 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/components/PreviewContent/index.d.ts +5 -1
- package/dist/builder/constants/index.d.ts +1 -0
- package/dist/builder/constants/radius-variables.d.ts +15 -0
- package/dist/builder/constants/theme-settings.d.ts +2 -2
- package/dist/builder.cjs.js +89 -49
- package/dist/builder.es.js +2040 -1938
- package/dist/{index-DUvsY_aL.cjs → index-BNHkHa_M.cjs} +2 -2
- package/dist/{index-BpuklKXj.js → index-DRj98cJh.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +130 -130
- package/package.json +2 -2
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as t, I as f, c as W, a as ut, S as it, R as Nt, B as ot, O as mt, d as at, u as ht, e as pt, P as _t, D as gt, f as ft, v as xt, g as
|
|
2
|
-
import { K as
|
|
1
|
+
import { j as t, I as f, c as W, a as ut, S as it, R as Nt, B as ot, O as mt, d as at, u as ht, e as pt, P as _t, D as gt, f as ft, v as xt, g as bt, C as jt, h as F, i as wt, k as st, l as $t, m as Bt, n as Pt, o as rt, p as G, L as Mt, q as lt, r as vt, t as H, w as Tt, M as yt, x as kt, y as qt, z as It, A as At, E as Ot } from "./index-DRj98cJh.js";
|
|
2
|
+
import { K as bi, G as ji, J as vi, F as yi, T as Ni, H as ki } from "./index-DRj98cJh.js";
|
|
3
3
|
import _ from "react";
|
|
4
4
|
import "@phosphor-icons/react";
|
|
5
5
|
const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmyb_15", Lt = "_subtitle_1vmyb_22", zt = "_alignmentContent_1vmyb_29", Ut = "_alignments_1vmyb_37", Ht = "_alignment_1vmyb_8", Ft = "_circle_1vmyb_60", Vt = "_paddings_1vmyb_67", Yt = "_padding_1vmyb_67", Gt = "_active_1vmyb_91", Wt = "_input_1vmyb_98", J = {
|
|
@@ -57,7 +57,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
57
57
|
return "AlignBottom";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const [o, m] = _.useState(null), [g,
|
|
60
|
+
const [o, m] = _.useState(null), [g, C] = _.useState(null);
|
|
61
61
|
return /* @__PURE__ */ t.jsxs("div", { className: J.layout, children: [
|
|
62
62
|
/* @__PURE__ */ t.jsx("h3", { className: J.title, children: "Layout" }),
|
|
63
63
|
/* @__PURE__ */ t.jsxs("div", { className: J.alignmentBlock, children: [
|
|
@@ -107,10 +107,10 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
107
107
|
[J.active]: g === c
|
|
108
108
|
}),
|
|
109
109
|
onFocus: () => {
|
|
110
|
-
|
|
110
|
+
C(c);
|
|
111
111
|
},
|
|
112
112
|
onBlur: () => {
|
|
113
|
-
|
|
113
|
+
C(null);
|
|
114
114
|
},
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
@@ -142,7 +142,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
142
142
|
] })
|
|
143
143
|
] })
|
|
144
144
|
] });
|
|
145
|
-
}, Kt = "_title_82zux_1", Qt = "_subtitle_82zux_5", Zt = "_header_82zux_12", te = "_text_82zux_13", ee = "_productsBlock_82zux_14", ne = "_top_82zux_26", se = "_itemsBlock_82zux_35", ie = "_typeTexts_82zux_41", oe = "_block_82zux_48", ae = "_active_82zux_61", ce = "_products_82zux_14", le = "_product_82zux_14", re = "_button_82zux_80", de = "_disabled_82zux_91", ue = "_image_82zux_95", me = "_info_82zux_102", he = "_name_82zux_114", pe = "_buttons_82zux_118", _e = "_modal_82zux_125", ge = "_link_82zux_145", fe = "_modalOptions_82zux_151", xe = "_addButton_82zux_157",
|
|
145
|
+
}, Kt = "_title_82zux_1", Qt = "_subtitle_82zux_5", Zt = "_header_82zux_12", te = "_text_82zux_13", ee = "_productsBlock_82zux_14", ne = "_top_82zux_26", se = "_itemsBlock_82zux_35", ie = "_typeTexts_82zux_41", oe = "_block_82zux_48", ae = "_active_82zux_61", ce = "_products_82zux_14", le = "_product_82zux_14", re = "_button_82zux_80", de = "_disabled_82zux_91", ue = "_image_82zux_95", me = "_info_82zux_102", he = "_name_82zux_114", pe = "_buttons_82zux_118", _e = "_modal_82zux_125", ge = "_link_82zux_145", fe = "_modalOptions_82zux_151", xe = "_addButton_82zux_157", be = "_deleteButton_82zux_179", X = {
|
|
146
146
|
title: Kt,
|
|
147
147
|
subtitle: Qt,
|
|
148
148
|
header: Zt,
|
|
@@ -165,7 +165,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
165
165
|
link: ge,
|
|
166
166
|
modalOptions: fe,
|
|
167
167
|
addButton: xe,
|
|
168
|
-
deleteButton:
|
|
168
|
+
deleteButton: be
|
|
169
169
|
}, si = (r) => {
|
|
170
170
|
const {
|
|
171
171
|
isActiveItems: s,
|
|
@@ -177,7 +177,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
177
177
|
subtitle: o,
|
|
178
178
|
draggable: m = !1,
|
|
179
179
|
withImage: g = !1,
|
|
180
|
-
addable:
|
|
180
|
+
addable: C = !0,
|
|
181
181
|
itemsOptions: c,
|
|
182
182
|
hasRangeSelector: l = !1,
|
|
183
183
|
rangeSelectorOptions: T,
|
|
@@ -185,12 +185,12 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
185
185
|
autoScrollInterval: M,
|
|
186
186
|
deletable: x
|
|
187
187
|
} = r;
|
|
188
|
-
function k(
|
|
188
|
+
function k(j) {
|
|
189
189
|
if (g)
|
|
190
|
-
return
|
|
190
|
+
return j ? /* @__PURE__ */ t.jsx(
|
|
191
191
|
"img",
|
|
192
192
|
{
|
|
193
|
-
src: `https://imagedelivery.net/${
|
|
193
|
+
src: `https://imagedelivery.net/${j[0]}/w=1000`,
|
|
194
194
|
alt: "image",
|
|
195
195
|
width: 16,
|
|
196
196
|
height: 16
|
|
@@ -205,8 +205,8 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
205
205
|
}
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
|
-
const a = (
|
|
209
|
-
const w = c.find((
|
|
208
|
+
const a = (j, D = !1) => {
|
|
209
|
+
const w = c.find((S) => S.id === j);
|
|
210
210
|
if (!w) return;
|
|
211
211
|
const z = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
212
212
|
m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
@@ -221,14 +221,14 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
221
221
|
/* @__PURE__ */ t.jsx(
|
|
222
222
|
at,
|
|
223
223
|
{
|
|
224
|
-
onChange: (
|
|
225
|
-
const v = [...n], I = c.find((p) => p.name ===
|
|
224
|
+
onChange: (S) => {
|
|
225
|
+
const v = [...n], I = c.find((p) => p.name === S);
|
|
226
226
|
if (!I) return;
|
|
227
|
-
const q = I.id, B = v.map((p) => p ===
|
|
227
|
+
const q = I.id, B = v.map((p) => p === j ? q : p);
|
|
228
228
|
i([...B]);
|
|
229
229
|
},
|
|
230
230
|
value: w.name,
|
|
231
|
-
options: c.filter((
|
|
231
|
+
options: c.filter((S) => !n.find((v) => v === S.id)).map((S) => S.name),
|
|
232
232
|
leftAddon: k(w.images)
|
|
233
233
|
}
|
|
234
234
|
),
|
|
@@ -240,7 +240,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
240
240
|
width: 20,
|
|
241
241
|
height: 20,
|
|
242
242
|
fill: "#C12A2A",
|
|
243
|
-
onClick: () => i(n.filter((
|
|
243
|
+
onClick: () => i(n.filter((S) => S !== j))
|
|
244
244
|
}
|
|
245
245
|
) }) })
|
|
246
246
|
] });
|
|
@@ -250,7 +250,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
250
250
|
className: X.product,
|
|
251
251
|
children: z
|
|
252
252
|
},
|
|
253
|
-
|
|
253
|
+
j
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
256
|
return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
|
|
@@ -260,15 +260,15 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
260
260
|
it,
|
|
261
261
|
{
|
|
262
262
|
current: s,
|
|
263
|
-
onChange: (
|
|
263
|
+
onChange: (j) => e == null ? void 0 : e(j)
|
|
264
264
|
}
|
|
265
265
|
)
|
|
266
266
|
] }),
|
|
267
267
|
l && T && /* @__PURE__ */ t.jsx(Nt, { ...T }),
|
|
268
268
|
/* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
|
|
269
269
|
o && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: o }),
|
|
270
|
-
n.map((
|
|
271
|
-
|
|
270
|
+
n.map((j) => a(j, x)),
|
|
271
|
+
C && /* @__PURE__ */ t.jsx(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
274
|
style: {
|
|
@@ -287,7 +287,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
287
287
|
size: "s",
|
|
288
288
|
disabled: !!($ && $ <= n.length || n.length === c.length),
|
|
289
289
|
onClick: () => {
|
|
290
|
-
const
|
|
290
|
+
const j = [...n];
|
|
291
291
|
let D = null;
|
|
292
292
|
if (c) {
|
|
293
293
|
for (let w = 0; w < c.length; w++)
|
|
@@ -296,7 +296,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
296
296
|
break;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
j.push((D == null ? void 0 : D.id) || c[0].id), i(j);
|
|
300
300
|
},
|
|
301
301
|
style: {
|
|
302
302
|
width: "fit-content"
|
|
@@ -324,7 +324,7 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
324
324
|
label: "Auto scroll interval",
|
|
325
325
|
type: "number",
|
|
326
326
|
value: String(M.scrollInterval),
|
|
327
|
-
onChange: (
|
|
327
|
+
onChange: (j) => M.setScrollInterval(Number(j)),
|
|
328
328
|
min: 0.1,
|
|
329
329
|
max: 100,
|
|
330
330
|
style: {
|
|
@@ -334,15 +334,15 @@ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmy
|
|
|
334
334
|
}
|
|
335
335
|
)
|
|
336
336
|
] });
|
|
337
|
-
},
|
|
338
|
-
title:
|
|
337
|
+
}, je = "_title_roi3a_1", ve = "_subtitle_roi3a_5", ye = "_header_roi3a_12", Ne = "_text_roi3a_13", ke = "_productsBlock_roi3a_14", Ie = "_top_roi3a_26", Se = "_itemsBlock_roi3a_35", Ce = "_typeTexts_roi3a_41", we = "_block_roi3a_48", $e = "_active_roi3a_61", Be = "_products_roi3a_14", Pe = "_product_roi3a_14", Me = "_button_roi3a_80", Te = "_disabled_roi3a_91", qe = "_image_roi3a_95", Ae = "_info_roi3a_102", Oe = "_name_roi3a_114", Ee = "_buttons_roi3a_118", Re = "_modal_roi3a_125", De = "_link_roi3a_145", Le = "_modalOptions_roi3a_151", ze = "_addButton_roi3a_164", Ue = "_deleteButton_roi3a_179", He = "_closeIcon_roi3a_191", V = {
|
|
338
|
+
title: je,
|
|
339
339
|
subtitle: ve,
|
|
340
340
|
header: ye,
|
|
341
341
|
text: Ne,
|
|
342
342
|
productsBlock: ke,
|
|
343
343
|
top: Ie,
|
|
344
|
-
itemsBlock:
|
|
345
|
-
typeTexts:
|
|
344
|
+
itemsBlock: Se,
|
|
345
|
+
typeTexts: Ce,
|
|
346
346
|
block: we,
|
|
347
347
|
active: $e,
|
|
348
348
|
products: Be,
|
|
@@ -368,10 +368,10 @@ function Fe({ product: r, children: s }) {
|
|
|
368
368
|
transform: d,
|
|
369
369
|
transition: u,
|
|
370
370
|
isDragging: o
|
|
371
|
-
} =
|
|
371
|
+
} = bt({
|
|
372
372
|
id: r.id
|
|
373
373
|
}), m = {
|
|
374
|
-
transform:
|
|
374
|
+
transform: jt.Transform.toString(d),
|
|
375
375
|
transition: u
|
|
376
376
|
};
|
|
377
377
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -397,12 +397,12 @@ const ii = (r) => {
|
|
|
397
397
|
editable: o = !0,
|
|
398
398
|
draggable: m = !1,
|
|
399
399
|
deletable: g = !0,
|
|
400
|
-
addable:
|
|
400
|
+
addable: C = !0,
|
|
401
401
|
itemsType: c,
|
|
402
402
|
itemsOptions: l,
|
|
403
403
|
addableOptions: T = {},
|
|
404
404
|
limit: $
|
|
405
|
-
} = r, [M, x] = _.useState(null), [k, a] = _.useState(null),
|
|
405
|
+
} = r, [M, x] = _.useState(null), [k, a] = _.useState(null), j = _.useRef(null), D = ht(
|
|
406
406
|
pt(_t, {
|
|
407
407
|
activationConstraint: {
|
|
408
408
|
distance: 5
|
|
@@ -415,8 +415,8 @@ const ii = (r) => {
|
|
|
415
415
|
i(v);
|
|
416
416
|
}
|
|
417
417
|
}, [M]), _.useEffect(() => {
|
|
418
|
-
|
|
419
|
-
}, [
|
|
418
|
+
j.current && k && (j.current.getBoundingClientRect().height, k.top);
|
|
419
|
+
}, [j.current, k]);
|
|
420
420
|
const w = (v, I) => {
|
|
421
421
|
v.stopPropagation();
|
|
422
422
|
const q = v.target.getBoundingClientRect();
|
|
@@ -427,13 +427,13 @@ const ii = (r) => {
|
|
|
427
427
|
}, z = (v) => {
|
|
428
428
|
const { active: I, over: q } = v;
|
|
429
429
|
if (q && I.id !== q.id) {
|
|
430
|
-
const B = n.findIndex((
|
|
430
|
+
const B = n.findIndex((b) => b.id === I.id), p = n.findIndex((b) => b.id === q.id);
|
|
431
431
|
if (B !== -1 && p !== -1) {
|
|
432
|
-
const
|
|
433
|
-
|
|
432
|
+
const b = [...n], [A] = b.splice(B, 1);
|
|
433
|
+
b.splice(p, 0, A), i(b);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
},
|
|
436
|
+
}, S = (v, I) => {
|
|
437
437
|
const q = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
438
438
|
m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
439
439
|
f,
|
|
@@ -448,10 +448,10 @@ const ii = (r) => {
|
|
|
448
448
|
at,
|
|
449
449
|
{
|
|
450
450
|
onChange: (B) => {
|
|
451
|
-
const p = [...n],
|
|
452
|
-
if (!
|
|
451
|
+
const p = [...n], b = l.find((U) => U.name === B);
|
|
452
|
+
if (!b) return;
|
|
453
453
|
const A = p.map((U) => U.id === v.id ? {
|
|
454
|
-
...
|
|
454
|
+
...b,
|
|
455
455
|
name: {
|
|
456
456
|
"en-US": B
|
|
457
457
|
}
|
|
@@ -531,12 +531,12 @@ const ii = (r) => {
|
|
|
531
531
|
{
|
|
532
532
|
items: n.map((v) => v.id),
|
|
533
533
|
strategy: xt,
|
|
534
|
-
children: n.map((v, I) =>
|
|
534
|
+
children: n.map((v, I) => S(v, I))
|
|
535
535
|
}
|
|
536
536
|
)
|
|
537
537
|
}
|
|
538
|
-
) : n.map((v, I) =>
|
|
539
|
-
|
|
538
|
+
) : n.map((v, I) => S(v, I)),
|
|
539
|
+
C && /* @__PURE__ */ t.jsx(
|
|
540
540
|
"div",
|
|
541
541
|
{
|
|
542
542
|
style: {
|
|
@@ -591,10 +591,10 @@ const ii = (r) => {
|
|
|
591
591
|
] });
|
|
592
592
|
};
|
|
593
593
|
function Ve(r) {
|
|
594
|
-
const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } =
|
|
594
|
+
const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } = bt({
|
|
595
595
|
id: s.id
|
|
596
596
|
}), g = {
|
|
597
|
-
transform:
|
|
597
|
+
transform: jt.Transform.toString(u),
|
|
598
598
|
transition: o
|
|
599
599
|
};
|
|
600
600
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -620,7 +620,7 @@ const oi = (r) => {
|
|
|
620
620
|
subtitle: o,
|
|
621
621
|
editable: m = !0,
|
|
622
622
|
draggable: g = !1,
|
|
623
|
-
withImage:
|
|
623
|
+
withImage: C = !1,
|
|
624
624
|
deletable: c = !0,
|
|
625
625
|
addable: l = !0,
|
|
626
626
|
itemsType: T,
|
|
@@ -629,12 +629,12 @@ const oi = (r) => {
|
|
|
629
629
|
hasRangeSelector: x = !1,
|
|
630
630
|
rangeSelectorOptions: k,
|
|
631
631
|
modalOptions: a,
|
|
632
|
-
addableOptions:
|
|
632
|
+
addableOptions: j = {},
|
|
633
633
|
limit: D
|
|
634
|
-
} = r, [w, z] = _.useState(null), [
|
|
634
|
+
} = r, [w, z] = _.useState(null), [S, v] = _.useState({
|
|
635
635
|
top: 0,
|
|
636
636
|
left: 0
|
|
637
|
-
}), [I, q] = _.useState(null), B = _.useRef(null), [p,
|
|
637
|
+
}), [I, q] = _.useState(null), B = _.useRef(null), [p, b] = _.useState(!1), A = ht(
|
|
638
638
|
pt(_t, {
|
|
639
639
|
activationConstraint: {
|
|
640
640
|
distance: 5
|
|
@@ -643,10 +643,10 @@ const oi = (r) => {
|
|
|
643
643
|
);
|
|
644
644
|
_.useEffect(() => {
|
|
645
645
|
const h = () => {
|
|
646
|
-
z(null),
|
|
646
|
+
z(null), b(!1);
|
|
647
647
|
};
|
|
648
|
-
return document.body.addEventListener("click", h), z(null),
|
|
649
|
-
z(null),
|
|
648
|
+
return document.body.addEventListener("click", h), z(null), b(!1), () => {
|
|
649
|
+
z(null), b(!1), document.body.removeEventListener("click", h);
|
|
650
650
|
};
|
|
651
651
|
}, []), _.useEffect(() => {
|
|
652
652
|
if (w) {
|
|
@@ -669,10 +669,10 @@ const oi = (r) => {
|
|
|
669
669
|
q({
|
|
670
670
|
top: P.top + window.scrollY,
|
|
671
671
|
left: P.left - 30
|
|
672
|
-
}), z(E),
|
|
672
|
+
}), z(E), b(!0);
|
|
673
673
|
};
|
|
674
674
|
function O(h) {
|
|
675
|
-
if (
|
|
675
|
+
if (C)
|
|
676
676
|
return h ? /* @__PURE__ */ t.jsx(
|
|
677
677
|
"img",
|
|
678
678
|
{
|
|
@@ -822,9 +822,9 @@ const oi = (r) => {
|
|
|
822
822
|
ref: B,
|
|
823
823
|
activeItem: w,
|
|
824
824
|
setActiveItem: z,
|
|
825
|
-
popupPosition:
|
|
825
|
+
popupPosition: S,
|
|
826
826
|
modalOptions: a,
|
|
827
|
-
setIsOpenModal:
|
|
827
|
+
setIsOpenModal: b
|
|
828
828
|
}
|
|
829
829
|
),
|
|
830
830
|
x && k && /* @__PURE__ */ t.jsx(Nt, { ...k }),
|
|
@@ -877,7 +877,7 @@ const oi = (r) => {
|
|
|
877
877
|
"en-US": E || M[0]
|
|
878
878
|
},
|
|
879
879
|
id: st(),
|
|
880
|
-
...
|
|
880
|
+
...j,
|
|
881
881
|
maxSymbols: 100
|
|
882
882
|
// пример значения
|
|
883
883
|
}) : T === "input" ? h.push({
|
|
@@ -885,14 +885,14 @@ const oi = (r) => {
|
|
|
885
885
|
"en-US": ""
|
|
886
886
|
},
|
|
887
887
|
id: st(),
|
|
888
|
-
...
|
|
888
|
+
...j,
|
|
889
889
|
maxSymbols: 100
|
|
890
890
|
}) : h.push({
|
|
891
891
|
name: {
|
|
892
892
|
"en-US": `Image ${n.length + 1}`
|
|
893
893
|
},
|
|
894
894
|
id: st(),
|
|
895
|
-
...
|
|
895
|
+
...j,
|
|
896
896
|
maxSymbols: 100
|
|
897
897
|
}), i(h);
|
|
898
898
|
},
|
|
@@ -941,7 +941,7 @@ const oi = (r) => {
|
|
|
941
941
|
addButton: hn,
|
|
942
942
|
deleteButton: pn
|
|
943
943
|
}, _n = (r) => {
|
|
944
|
-
const { buttons: s, setButtons: e, deletable: n = !0, addable: i = !0, editableLink: d = !0 } = r, { pages: u } = Bt(), [o, m] = _.useState(null), [g,
|
|
944
|
+
const { buttons: s, setButtons: e, deletable: n = !0, addable: i = !0, editableLink: d = !0 } = r, { pages: u } = Bt(), [o, m] = _.useState(null), [g, C] = _.useState({
|
|
945
945
|
top: 0,
|
|
946
946
|
left: 0
|
|
947
947
|
}), [c, l] = _.useState(null), T = _.useRef(null);
|
|
@@ -954,7 +954,7 @@ const oi = (r) => {
|
|
|
954
954
|
if (T.current && c) {
|
|
955
955
|
const x = T.current.getBoundingClientRect().height, k = window.innerHeight;
|
|
956
956
|
let a = c.top;
|
|
957
|
-
a + x > k + window.scrollY - 200 && (a = k + window.scrollY - x - 200), a < 0 && (a = 10),
|
|
957
|
+
a + x > k + window.scrollY - 200 && (a = k + window.scrollY - x - 200), a < 0 && (a = 10), C({
|
|
958
958
|
top: a,
|
|
959
959
|
left: c.left
|
|
960
960
|
});
|
|
@@ -968,12 +968,12 @@ const oi = (r) => {
|
|
|
968
968
|
left: a.left - (i ? 30 : 65)
|
|
969
969
|
}), m(k);
|
|
970
970
|
}, M = (x, k) => {
|
|
971
|
-
const a = [...s],
|
|
971
|
+
const a = [...s], j = {
|
|
972
972
|
...x,
|
|
973
973
|
id: Math.random().toString(36).substr(2, 9)
|
|
974
974
|
// Генерируем новый уникальный ID
|
|
975
975
|
};
|
|
976
|
-
a.splice(k + 1, 0,
|
|
976
|
+
a.splice(k + 1, 0, j), e(a);
|
|
977
977
|
};
|
|
978
978
|
return /* @__PURE__ */ t.jsxs("div", { className: Z.products, children: [
|
|
979
979
|
/* @__PURE__ */ t.jsx("h5", { className: Z.subtitle, children: "Button Type" }),
|
|
@@ -1027,7 +1027,7 @@ const oi = (r) => {
|
|
|
1027
1027
|
name: "Trash",
|
|
1028
1028
|
hoverable: !0,
|
|
1029
1029
|
onClick: () => {
|
|
1030
|
-
const a = s.filter((
|
|
1030
|
+
const a = s.filter((j) => j.id !== x.id);
|
|
1031
1031
|
e(a);
|
|
1032
1032
|
},
|
|
1033
1033
|
width: 20,
|
|
@@ -1141,10 +1141,10 @@ const oi = (r) => {
|
|
|
1141
1141
|
] }) });
|
|
1142
1142
|
};
|
|
1143
1143
|
function gn(r) {
|
|
1144
|
-
const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } =
|
|
1144
|
+
const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } = bt({
|
|
1145
1145
|
id: String(s.listingId)
|
|
1146
1146
|
}), g = {
|
|
1147
|
-
transform:
|
|
1147
|
+
transform: jt.Transform.toString(u),
|
|
1148
1148
|
transition: o
|
|
1149
1149
|
};
|
|
1150
1150
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1170,7 +1170,7 @@ const ci = (r) => {
|
|
|
1170
1170
|
subtitle: o,
|
|
1171
1171
|
editable: m = !0,
|
|
1172
1172
|
draggable: g = !1,
|
|
1173
|
-
withImage:
|
|
1173
|
+
withImage: C = !1,
|
|
1174
1174
|
deletable: c = !0,
|
|
1175
1175
|
addable: l = !0,
|
|
1176
1176
|
itemsType: T,
|
|
@@ -1178,7 +1178,7 @@ const ci = (r) => {
|
|
|
1178
1178
|
limit: M
|
|
1179
1179
|
} = r, [x, k] = _.useState(
|
|
1180
1180
|
null
|
|
1181
|
-
), [a,
|
|
1181
|
+
), [a, j] = _.useState({
|
|
1182
1182
|
top: 0,
|
|
1183
1183
|
left: 0
|
|
1184
1184
|
}), [D, w] = _.useState(!1), z = ht(
|
|
@@ -1197,21 +1197,21 @@ const ci = (r) => {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
}, []), _.useEffect(() => {
|
|
1199
1199
|
if (x) {
|
|
1200
|
-
const p = [...n].map((
|
|
1200
|
+
const p = [...n].map((b) => b.listingId === x.listingId ? x : b);
|
|
1201
1201
|
i(p);
|
|
1202
1202
|
}
|
|
1203
1203
|
}, [x]);
|
|
1204
|
-
const
|
|
1204
|
+
const S = (p, b) => {
|
|
1205
1205
|
p.stopPropagation();
|
|
1206
1206
|
const A = p.target.getBoundingClientRect(), U = 100, O = window.innerHeight;
|
|
1207
1207
|
let L = A.top + window.scrollY;
|
|
1208
|
-
L + U > O && (L = O - U - 20), w(!0),
|
|
1208
|
+
L + U > O && (L = O - U - 20), w(!0), j({
|
|
1209
1209
|
top: L - 80,
|
|
1210
1210
|
left: A.left - 30
|
|
1211
|
-
}), k(
|
|
1211
|
+
}), k(b);
|
|
1212
1212
|
};
|
|
1213
1213
|
function v(p) {
|
|
1214
|
-
if (
|
|
1214
|
+
if (C)
|
|
1215
1215
|
return p ? /* @__PURE__ */ t.jsx(
|
|
1216
1216
|
"img",
|
|
1217
1217
|
{
|
|
@@ -1231,15 +1231,15 @@ const ci = (r) => {
|
|
|
1231
1231
|
);
|
|
1232
1232
|
}
|
|
1233
1233
|
const I = (p) => {
|
|
1234
|
-
const { active:
|
|
1235
|
-
if (A &&
|
|
1236
|
-
const U = n.findIndex((L) => String(L.listingId) ===
|
|
1234
|
+
const { active: b, over: A } = p;
|
|
1235
|
+
if (A && b.id !== A.id) {
|
|
1236
|
+
const U = n.findIndex((L) => String(L.listingId) === b.id), O = n.findIndex((L) => String(L.listingId) === A.id);
|
|
1237
1237
|
if (U !== -1 && O !== -1) {
|
|
1238
1238
|
const L = [...n], [Q] = L.splice(U, 1);
|
|
1239
1239
|
L.splice(O, 0, Q), i(L);
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
}, q = (p,
|
|
1242
|
+
}, q = (p, b) => {
|
|
1243
1243
|
const A = $.find((O) => p.listingId === O.id);
|
|
1244
1244
|
if (!A) return null;
|
|
1245
1245
|
const U = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1272,7 +1272,7 @@ const ci = (r) => {
|
|
|
1272
1272
|
p.image || A.productData.images.length > 0 && A.productData.images[0].cfId || ""
|
|
1273
1273
|
)
|
|
1274
1274
|
},
|
|
1275
|
-
|
|
1275
|
+
b
|
|
1276
1276
|
),
|
|
1277
1277
|
/* @__PURE__ */ t.jsxs("div", { className: G.buttons, children: [
|
|
1278
1278
|
m && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
@@ -1282,7 +1282,7 @@ const ci = (r) => {
|
|
|
1282
1282
|
hoverable: !0,
|
|
1283
1283
|
width: 20,
|
|
1284
1284
|
height: 20,
|
|
1285
|
-
onClick: (O) =>
|
|
1285
|
+
onClick: (O) => S(O, p)
|
|
1286
1286
|
}
|
|
1287
1287
|
) }),
|
|
1288
1288
|
c && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
|
|
@@ -1348,11 +1348,11 @@ const ci = (r) => {
|
|
|
1348
1348
|
{
|
|
1349
1349
|
items: n.map((p) => String(p.listingId)),
|
|
1350
1350
|
strategy: xt,
|
|
1351
|
-
children: n.map((p,
|
|
1351
|
+
children: n.map((p, b) => q(p, b))
|
|
1352
1352
|
}
|
|
1353
1353
|
)
|
|
1354
1354
|
}
|
|
1355
|
-
) : n.map((p,
|
|
1355
|
+
) : n.map((p, b) => q(p, b)),
|
|
1356
1356
|
l && /* @__PURE__ */ t.jsx(
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
@@ -1369,11 +1369,11 @@ const ci = (r) => {
|
|
|
1369
1369
|
size: "s",
|
|
1370
1370
|
onClick: () => {
|
|
1371
1371
|
const p = [...n];
|
|
1372
|
-
for (let
|
|
1373
|
-
if (!n.find((A) => A.listingId === $[
|
|
1372
|
+
for (let b = 0; b < $.length; b++)
|
|
1373
|
+
if (!n.find((A) => A.listingId === $[b].id)) {
|
|
1374
1374
|
p.push({
|
|
1375
|
-
listingId: $[
|
|
1376
|
-
image: $[
|
|
1375
|
+
listingId: $[b].id,
|
|
1376
|
+
image: $[b].productData.images.length > 0 ? $[b].productData.images[0].cfId : ""
|
|
1377
1377
|
});
|
|
1378
1378
|
break;
|
|
1379
1379
|
}
|
|
@@ -1401,18 +1401,18 @@ const ci = (r) => {
|
|
|
1401
1401
|
] }),
|
|
1402
1402
|
s && d !== void 0 && /* @__PURE__ */ t.jsx(mt, { items: d })
|
|
1403
1403
|
] });
|
|
1404
|
-
}, fn = "_options_6cemk_1", xn = "_price_6cemk_12",
|
|
1404
|
+
}, fn = "_options_6cemk_1", xn = "_price_6cemk_12", bn = "_oldPrice_6cemk_19", jn = "_newPrice_6cemk_27", vn = "_animate_6cemk_34", yn = "_appearAndBounce_6cemk_1", Nn = "_meta_6cemk_52", kn = "_info_6cemk_58", In = "_infoRight_6cemk_66", Sn = "_buttons_6cemk_73", Cn = "_variants_6cemk_80", wn = "_variant_6cemk_80", $n = "_stock_6cemk_98", Bn = "_variantInfo_6cemk_105", Pn = "_quantity_6cemk_111", Mn = "_count_6cemk_118", Tn = "_focused_6cemk_135", qn = "_button_6cemk_73", An = "_activeVariant_6cemk_161", On = "_chargeTypes_6cemk_165", En = "_charge_6cemk_165", Rn = "_chargeActive_6cemk_190", Dn = "_title_6cemk_198", N = {
|
|
1405
1405
|
options: fn,
|
|
1406
1406
|
price: xn,
|
|
1407
|
-
oldPrice:
|
|
1408
|
-
newPrice:
|
|
1407
|
+
oldPrice: bn,
|
|
1408
|
+
newPrice: jn,
|
|
1409
1409
|
animate: vn,
|
|
1410
1410
|
appearAndBounce: yn,
|
|
1411
1411
|
meta: Nn,
|
|
1412
1412
|
info: kn,
|
|
1413
1413
|
infoRight: In,
|
|
1414
|
-
buttons:
|
|
1415
|
-
variants:
|
|
1414
|
+
buttons: Sn,
|
|
1415
|
+
variants: Cn,
|
|
1416
1416
|
variant: wn,
|
|
1417
1417
|
stock: $n,
|
|
1418
1418
|
variantInfo: Bn,
|
|
@@ -1426,17 +1426,17 @@ const ci = (r) => {
|
|
|
1426
1426
|
chargeActive: Rn,
|
|
1427
1427
|
title: Dn
|
|
1428
1428
|
};
|
|
1429
|
-
var
|
|
1429
|
+
var St = /* @__PURE__ */ ((r) => (r.ONE_TIME = "One-Time", r.RECURRING = "Subscribe & Save", r))(St || {});
|
|
1430
1430
|
const li = (r) => {
|
|
1431
1431
|
var x, k;
|
|
1432
|
-
const { variants: s } = r, [e, n] = _.useState(s[0]), [i, d] = _.useState(e.chargeTypes[0]), u = lt(), [o, m] = _.useState(1), { reset: g, addProductToCart:
|
|
1432
|
+
const { variants: s } = r, [e, n] = _.useState(s[0]), [i, d] = _.useState(e.chargeTypes[0]), u = lt(), [o, m] = _.useState(1), { reset: g, addProductToCart: C } = vt(), [c, l] = _.useState(!1);
|
|
1433
1433
|
_.useEffect(() => {
|
|
1434
1434
|
l(!0);
|
|
1435
1435
|
const a = setTimeout(() => l(!1), 600);
|
|
1436
1436
|
return () => clearTimeout(a);
|
|
1437
1437
|
}, [o]);
|
|
1438
1438
|
async function T() {
|
|
1439
|
-
await
|
|
1439
|
+
await C({
|
|
1440
1440
|
productId: r.id,
|
|
1441
1441
|
productVariantId: e.id,
|
|
1442
1442
|
quantity: o
|
|
@@ -1447,17 +1447,17 @@ const li = (r) => {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
function M(a) {
|
|
1449
1449
|
if (a >= 864e5) {
|
|
1450
|
-
const
|
|
1451
|
-
return `${
|
|
1450
|
+
const S = Math.floor(a / 864e5);
|
|
1451
|
+
return `${S} ${S === 1 ? "day" : "days"}`;
|
|
1452
1452
|
} else if (a >= 36e5) {
|
|
1453
|
-
const
|
|
1454
|
-
return `${
|
|
1453
|
+
const S = Math.floor(a / 36e5);
|
|
1454
|
+
return `${S} ${S === 1 ? "hour" : "hours"}`;
|
|
1455
1455
|
} else if (a >= 6e4) {
|
|
1456
|
-
const
|
|
1457
|
-
return `${
|
|
1456
|
+
const S = Math.floor(a / 6e4);
|
|
1457
|
+
return `${S} ${S === 1 ? "minute" : "minutes"}`;
|
|
1458
1458
|
} else {
|
|
1459
|
-
const
|
|
1460
|
-
return `${
|
|
1459
|
+
const S = Math.floor(a / 1e3);
|
|
1460
|
+
return `${S} ${S === 1 ? "second" : "seconds"}`;
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
return _.useEffect(() => {
|
|
@@ -1470,12 +1470,12 @@ const li = (r) => {
|
|
|
1470
1470
|
[N.chargeActive]: i === a
|
|
1471
1471
|
}),
|
|
1472
1472
|
onClick: () => d(a),
|
|
1473
|
-
children:
|
|
1473
|
+
children: St[a]
|
|
1474
1474
|
},
|
|
1475
1475
|
a
|
|
1476
1476
|
)) }),
|
|
1477
1477
|
/* @__PURE__ */ t.jsx("div", { className: N.variants, children: s.map((a) => {
|
|
1478
|
-
var
|
|
1478
|
+
var j;
|
|
1479
1479
|
return /* @__PURE__ */ t.jsxs(
|
|
1480
1480
|
"div",
|
|
1481
1481
|
{
|
|
@@ -1492,7 +1492,7 @@ const li = (r) => {
|
|
|
1492
1492
|
] })
|
|
1493
1493
|
] }),
|
|
1494
1494
|
/* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: N.stock, children: [
|
|
1495
|
-
((
|
|
1495
|
+
((j = a.quantity.restrictions) == null ? void 0 : j.max) || a.quantity.available || 0,
|
|
1496
1496
|
" in stock"
|
|
1497
1497
|
] }) })
|
|
1498
1498
|
]
|
|
@@ -1604,7 +1604,7 @@ const li = (r) => {
|
|
|
1604
1604
|
)
|
|
1605
1605
|
] })
|
|
1606
1606
|
] });
|
|
1607
|
-
}, Ln = "_button_1tdo3_1", zn = "_login_1tdo3_14", Un = "_signUp_1tdo3_18", Hn = "_buttons_1tdo3_23", Fn = "_modal_1tdo3_32", Vn = "_closing_1tdo3_64", Yn = "_info_1tdo3_113", Gn = "_top_1tdo3_120", Wn = "_title_1tdo3_131", Jn = "_clear_1tdo3_138", Xn = "_activeClear_1tdo3_145", Kn = "_count_1tdo3_149", Qn = "_cart_1tdo3_164", Zn = "_empty_1tdo3_172", ts = "_product_1tdo3_198", es = "_products_1tdo3_207", ns = "_image_1tdo3_215", ss = "_productInfo_1tdo3_221", is = "_content_1tdo3_228", os = "_name_1tdo3_234", as = "_price_1tdo3_240", cs = "_productButtons_1tdo3_246", ls = "_productButton_1tdo3_246", rs = "_productCount_1tdo3_266", ds = "_bottom_1tdo3_282", us = "_subtotal_1tdo3_290", ms = "_block_1tdo3_298", hs = "_shoppingCount_1tdo3_305", ps = "_total_1tdo3_325", _s = "_link_1tdo3_331", gs = "_userInfo_1tdo3_338", fs = "_pagesMobileModal_1tdo3_349", xs = "_pagesMobileModalContent_1tdo3_363",
|
|
1607
|
+
}, Ln = "_button_1tdo3_1", zn = "_login_1tdo3_14", Un = "_signUp_1tdo3_18", Hn = "_buttons_1tdo3_23", Fn = "_modal_1tdo3_32", Vn = "_closing_1tdo3_64", Yn = "_info_1tdo3_113", Gn = "_top_1tdo3_120", Wn = "_title_1tdo3_131", Jn = "_clear_1tdo3_138", Xn = "_activeClear_1tdo3_145", Kn = "_count_1tdo3_149", Qn = "_cart_1tdo3_164", Zn = "_empty_1tdo3_172", ts = "_product_1tdo3_198", es = "_products_1tdo3_207", ns = "_image_1tdo3_215", ss = "_productInfo_1tdo3_221", is = "_content_1tdo3_228", os = "_name_1tdo3_234", as = "_price_1tdo3_240", cs = "_productButtons_1tdo3_246", ls = "_productButton_1tdo3_246", rs = "_productCount_1tdo3_266", ds = "_bottom_1tdo3_282", us = "_subtotal_1tdo3_290", ms = "_block_1tdo3_298", hs = "_shoppingCount_1tdo3_305", ps = "_total_1tdo3_325", _s = "_link_1tdo3_331", gs = "_userInfo_1tdo3_338", fs = "_pagesMobileModal_1tdo3_349", xs = "_pagesMobileModalContent_1tdo3_363", bs = "_pagesMobileModalHeader_1tdo3_369", js = "_pagesMobileModalFooter_1tdo3_379", y = {
|
|
1608
1608
|
button: Ln,
|
|
1609
1609
|
login: zn,
|
|
1610
1610
|
signUp: Un,
|
|
@@ -1642,19 +1642,19 @@ const li = (r) => {
|
|
|
1642
1642
|
userInfo: gs,
|
|
1643
1643
|
pagesMobileModal: fs,
|
|
1644
1644
|
pagesMobileModalContent: xs,
|
|
1645
|
-
pagesMobileModalHeader:
|
|
1646
|
-
pagesMobileModalFooter:
|
|
1645
|
+
pagesMobileModalHeader: bs,
|
|
1646
|
+
pagesMobileModalFooter: js
|
|
1647
1647
|
}, ri = (r) => {
|
|
1648
1648
|
const { shopping: s, signUp: e, isShowUserInfo: n = !0 } = r;
|
|
1649
1649
|
return /* @__PURE__ */ t.jsxs("div", { className: y.buttons, children: [
|
|
1650
1650
|
s && /* @__PURE__ */ t.jsx(vs, {}),
|
|
1651
|
-
n && /* @__PURE__ */ t.jsx(
|
|
1651
|
+
n && /* @__PURE__ */ t.jsx(Ct, { signUp: e })
|
|
1652
1652
|
] });
|
|
1653
1653
|
}, vs = () => {
|
|
1654
1654
|
const [r, s] = _.useState(!1), [e, n] = _.useState([]), { cart: i } = vt();
|
|
1655
1655
|
function d(g) {
|
|
1656
|
-
var
|
|
1657
|
-
return !g || !(g != null && g.variants) ? !1 : (
|
|
1656
|
+
var C;
|
|
1657
|
+
return !g || !(g != null && g.variants) ? !1 : (C = g.variants.find((c) => c.id === g.activeVariantId)) == null ? void 0 : C.subscriptionSettings;
|
|
1658
1658
|
}
|
|
1659
1659
|
const u = i.parts.length > 0 && e.length > 0 && !d(e[0]), [o, m] = _.useState(!1);
|
|
1660
1660
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1705,7 +1705,7 @@ const li = (r) => {
|
|
|
1705
1705
|
function g(l) {
|
|
1706
1706
|
m(l);
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function C(l) {
|
|
1709
1709
|
o({
|
|
1710
1710
|
productId: l.id,
|
|
1711
1711
|
productVariantId: l.activeVariantId,
|
|
@@ -1792,7 +1792,7 @@ const li = (r) => {
|
|
|
1792
1792
|
/* @__PURE__ */ t.jsx(
|
|
1793
1793
|
"div",
|
|
1794
1794
|
{
|
|
1795
|
-
onClick: () =>
|
|
1795
|
+
onClick: () => C(l),
|
|
1796
1796
|
className: y.productButton,
|
|
1797
1797
|
children: /* @__PURE__ */ t.jsx(
|
|
1798
1798
|
f,
|
|
@@ -1856,7 +1856,7 @@ const li = (r) => {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
)
|
|
1858
1858
|
] })
|
|
1859
|
-
] }),
|
|
1859
|
+
] }), Ct = ({ signUp: r, close: s }) => {
|
|
1860
1860
|
const e = JSON.parse(localStorage.getItem("token") || "{}"), { data: n } = e, i = lt();
|
|
1861
1861
|
function d(m) {
|
|
1862
1862
|
window.location.pathname.includes("/admin/builder") || i(m);
|
|
@@ -1943,7 +1943,7 @@ const li = (r) => {
|
|
|
1943
1943
|
] }),
|
|
1944
1944
|
/* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalContent, children: r }),
|
|
1945
1945
|
/* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
|
|
1946
|
-
|
|
1946
|
+
Ct,
|
|
1947
1947
|
{
|
|
1948
1948
|
signUp: n,
|
|
1949
1949
|
close: d
|
|
@@ -1980,7 +1980,7 @@ const li = (r) => {
|
|
|
1980
1980
|
padding: 10
|
|
1981
1981
|
},
|
|
1982
1982
|
onClick: (e) => {
|
|
1983
|
-
e.stopPropagation(), s(!0);
|
|
1983
|
+
e.stopPropagation(), window.location.pathname.includes("/admin/builder") || s(!0);
|
|
1984
1984
|
},
|
|
1985
1985
|
children: /* @__PURE__ */ t.jsx(
|
|
1986
1986
|
f,
|
|
@@ -1991,9 +1991,9 @@ const li = (r) => {
|
|
|
1991
1991
|
)
|
|
1992
1992
|
}
|
|
1993
1993
|
);
|
|
1994
|
-
},
|
|
1995
|
-
share:
|
|
1996
|
-
modal:
|
|
1994
|
+
}, Ss = "_share_10urc_1", Cs = "_modal_10urc_9", ws = "_header_10urc_21", $s = "_socials_10urc_31", Bs = "_social_10urc_31", Ps = "_copy_10urc_41", Ms = "_title_10urc_48", Ts = "_copyWrapper_10urc_54", qs = "_copyText_10urc_63", As = "_copyTextMobile_10urc_76", Os = "_copyTextMiniMobile_10urc_95", tt = {
|
|
1995
|
+
share: Ss,
|
|
1996
|
+
modal: Cs,
|
|
1997
1997
|
header: ws,
|
|
1998
1998
|
socials: $s,
|
|
1999
1999
|
social: Bs,
|
|
@@ -2042,8 +2042,8 @@ const li = (r) => {
|
|
|
2042
2042
|
s(!1), i(!0);
|
|
2043
2043
|
}, 300);
|
|
2044
2044
|
}
|
|
2045
|
-
function m(g,
|
|
2046
|
-
return g.length >
|
|
2045
|
+
function m(g, C) {
|
|
2046
|
+
return g.length > C ? g.slice(0, C) + "..." : g;
|
|
2047
2047
|
}
|
|
2048
2048
|
return /* @__PURE__ */ t.jsxs(
|
|
2049
2049
|
"div",
|
|
@@ -2138,7 +2138,7 @@ const li = (r) => {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
);
|
|
2140
2140
|
const d = lt(), u = /^https?:\/\//.test(s), o = (m) => {
|
|
2141
|
-
u || n === "_blank" ? n === "_blank" ? window.open(s, "_blank") : window.
|
|
2141
|
+
u || n === "_blank" ? n === "_blank" ? window.open(s, "_blank") : window.history.pushState({}, "", s) : (m.preventDefault(), d(s));
|
|
2142
2142
|
};
|
|
2143
2143
|
return /* @__PURE__ */ t.jsx(
|
|
2144
2144
|
"div",
|
|
@@ -2219,8 +2219,8 @@ const li = (r) => {
|
|
|
2219
2219
|
placeholder: d = "Type something...",
|
|
2220
2220
|
type: u = "text"
|
|
2221
2221
|
} = r, [o, m] = _.useState(n.length);
|
|
2222
|
-
function g(
|
|
2223
|
-
return u === "number" ?
|
|
2222
|
+
function g(C) {
|
|
2223
|
+
return u === "number" ? C.replace(/[^\d\n]+/g, "") : C;
|
|
2224
2224
|
}
|
|
2225
2225
|
return /* @__PURE__ */ t.jsxs("div", { className: ct.wrapper, children: [
|
|
2226
2226
|
e && /* @__PURE__ */ t.jsx(
|
|
@@ -2236,8 +2236,8 @@ const li = (r) => {
|
|
|
2236
2236
|
{
|
|
2237
2237
|
id: e,
|
|
2238
2238
|
value: n,
|
|
2239
|
-
onChange: (
|
|
2240
|
-
const c = g(
|
|
2239
|
+
onChange: (C) => {
|
|
2240
|
+
const c = g(C.target.value);
|
|
2241
2241
|
m(c.length), s(c);
|
|
2242
2242
|
},
|
|
2243
2243
|
placeholder: d,
|
|
@@ -2260,14 +2260,14 @@ export {
|
|
|
2260
2260
|
ai as ButtonsSettings,
|
|
2261
2261
|
si as CategorySettings,
|
|
2262
2262
|
$t as ChooseImage,
|
|
2263
|
-
|
|
2263
|
+
bi as ChooseImageModal,
|
|
2264
2264
|
Ns as EmptyCart,
|
|
2265
2265
|
oi as FormSettings,
|
|
2266
2266
|
ri as HeaderButtons,
|
|
2267
2267
|
f as Icon,
|
|
2268
2268
|
ut as InputSettings,
|
|
2269
2269
|
Tt as InputUI,
|
|
2270
|
-
|
|
2270
|
+
ji as ItemsSettings,
|
|
2271
2271
|
ni as LayoutSettings,
|
|
2272
2272
|
hi as Link,
|
|
2273
2273
|
ci as ListingSelector,
|
|
@@ -2289,5 +2289,5 @@ export {
|
|
|
2289
2289
|
Ni as TextareaSettings,
|
|
2290
2290
|
gi as TextareaUI,
|
|
2291
2291
|
ki as TypesText,
|
|
2292
|
-
|
|
2292
|
+
Ct as UserInfo
|
|
2293
2293
|
};
|