@billgangcom/theme-lib 1.122.0 → 1.123.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-DOCPzptl.cjs → builder-BNQD7fm1.cjs} +13 -13
- package/dist/{builder-BDWYOk4o.js → builder-Cbzb-Pzj.js} +805 -805
- package/dist/{builder-components-CvexDBBH.js → builder-components-B6Ct-1cI.js} +699 -699
- package/dist/builder-components-B8gWw88v.cjs +5 -0
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +23 -23
- package/dist/{charge-C15xUj35.js → charge-Bv8wu-fV.js} +7 -7
- package/dist/{charge-CJQibcfu.cjs → charge-DcKd_es2.cjs} +2 -2
- package/dist/{checkout-CpzLu5oq.cjs → checkout-BQwNBpVW.cjs} +1 -1
- package/dist/{checkout-BrL3RJUF.js → checkout-DkIvY2zs.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-BWWTIm1T.js → index-BHLQHIsH.js} +2 -2
- package/dist/{index-DOXo55nb.js → index-BIfw5wrd.js} +5 -5
- package/dist/{index-BHCz9QsY.cjs → index-BYdRgPyI.cjs} +1 -1
- package/dist/{index-LHU1sHHV.js → index-Bk-mY9E3.js} +5 -5
- package/dist/{index-DYH2kLjz.cjs → index-BnMpELp_.cjs} +1 -1
- package/dist/{index-Duey4obm.cjs → index-BtqOzf1F.cjs} +1 -1
- package/dist/{index-CaE8IYfM.js → index-C-OH-0Jj.js} +1 -1
- package/dist/{index-DNSijKmM.js → index-CtZBWOyf.js} +5 -5
- package/dist/{index-foFJrz8D.js → index-D1W9Fza6.js} +5 -5
- package/dist/{index-C0e_BhGQ.cjs → index-DoklSmf4.cjs} +1 -1
- package/dist/{index-Dcnqy8X3.cjs → index-DozNvPOR.cjs} +1 -1
- package/dist/{index-Bxaj05Fb.cjs → index-Dyg2ZZW6.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-DNKJ-JsD.cjs → order-B0gf5VEi.cjs} +1 -1
- package/dist/{order-C-Ur9Jbh.js → order-S6e2WcCX.js} +5 -5
- package/dist/src/builder/components/ExitButton/index.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{subscription-B6uyLDB4.cjs → subscription-5ytxlwXp.cjs} +1 -1
- package/dist/{subscription-BySRgrl2.js → subscription-HEpvSKgZ.js} +5 -5
- package/dist/{ticket-DWQeThhP.cjs → ticket-C5g3kw8c.cjs} +1 -1
- package/dist/{ticket-FYGZ32D-.js → ticket-CbQabuyp.js} +5 -5
- package/dist/{top-up-BO5_olGw.cjs → top-up-CrbYB293.cjs} +1 -1
- package/dist/{top-up-IV8ZjQ3f.js → top-up-lubckd9w.js} +5 -5
- package/dist/{ui-components-CiVZSTvC.js → ui-components-BhVIVLV-.js} +2214 -2210
- package/dist/ui-components-jkqz3-Kc.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-2cuCf_Ob.cjs → validation-Be-6h5-8.cjs} +1 -1
- package/dist/{validation-D7cnZ3qf.js → validation-lwFWEACU.js} +5 -5
- package/package.json +1 -1
- package/dist/builder-components-Bb96v4TW.cjs +0 -5
- package/dist/ui-components-CencTE96.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as w, jsx as c, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import A, { useLayoutEffect as Tr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Mr, useReducer as Rr, createContext as Lt, useContext as nt } from "react";
|
|
3
|
-
import { u as ne, a as
|
|
4
|
-
import { I as R, u as Wr, B as
|
|
3
|
+
import { u as ne, a as Xe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as vt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as Y, n as zo, L as ot, o as qn, p as rt, q as $r, s as Gn, t as tt, w as hn, x as Rt, y as jo, A as Pr, S as Lr, C as Fr, z as ft, B as zr, D as Be, E as Ft, R as _n, F as yn, G as Ho, H as nn, I as we, P as go, J as jr, K as Hr } from "./builder-Cbzb-Pzj.js";
|
|
4
|
+
import { I as R, u as Wr, B as Ye, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-BhVIVLV-.js";
|
|
5
5
|
import { unstable_batchedUpdates as Kt, createPortal as Vr } from "react-dom";
|
|
6
|
-
import "./charge-
|
|
7
|
-
import "./ticket-
|
|
8
|
-
const
|
|
9
|
-
const { footer: n } = ne(), { settings: o } =
|
|
6
|
+
import "./charge-Bv8wu-fV.js";
|
|
7
|
+
import "./ticket-CbQabuyp.js";
|
|
8
|
+
const Yn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext: t }) => {
|
|
9
|
+
const { footer: n } = ne(), { settings: o } = Xe(), { pageContext: r } = J(), { footer: s } = se();
|
|
10
10
|
if (!s || !n) return null;
|
|
11
11
|
const i = new s();
|
|
12
12
|
return Object.keys(n).map((a) => {
|
|
@@ -16,7 +16,7 @@ const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext:
|
|
|
16
16
|
t || r
|
|
17
17
|
);
|
|
18
18
|
}, Uo = ({ settings: e, pageContext: t }) => {
|
|
19
|
-
const { header: n } = ne(), { settings: o } =
|
|
19
|
+
const { header: n } = ne(), { settings: o } = Xe(), { pageContext: r } = J(), { header: s } = se();
|
|
20
20
|
if (!s || !n) return null;
|
|
21
21
|
const i = new s();
|
|
22
22
|
return Object.keys(n).map((a) => {
|
|
@@ -29,7 +29,7 @@ const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext:
|
|
|
29
29
|
settings: e,
|
|
30
30
|
pageContext: t
|
|
31
31
|
}) => {
|
|
32
|
-
const { announcement: n } = ne(), { settings: o } =
|
|
32
|
+
const { announcement: n } = ne(), { settings: o } = Xe(), { pageContext: r } = J(), { announcement: s } = se();
|
|
33
33
|
if (!s || !n) return null;
|
|
34
34
|
const i = new s();
|
|
35
35
|
return Object.keys(n).map((a) => {
|
|
@@ -41,7 +41,7 @@ const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext:
|
|
|
41
41
|
}, Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
RenderAnnouncement: Vo,
|
|
44
|
-
RenderBlock:
|
|
44
|
+
RenderBlock: Yn,
|
|
45
45
|
RenderFooter: Wo,
|
|
46
46
|
RenderHeader: Uo
|
|
47
47
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -57,17 +57,17 @@ function Kr() {
|
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
const fn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
60
|
-
function
|
|
60
|
+
function mt(e) {
|
|
61
61
|
const t = Object.prototype.toString.call(e);
|
|
62
62
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
63
63
|
t === "[object global]";
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Xn(e) {
|
|
66
66
|
return "nodeType" in e;
|
|
67
67
|
}
|
|
68
68
|
function ie(e) {
|
|
69
69
|
var t, n;
|
|
70
|
-
return e ?
|
|
70
|
+
return e ? mt(e) ? e : Xn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
71
71
|
}
|
|
72
72
|
function Jn(e) {
|
|
73
73
|
const {
|
|
@@ -75,14 +75,14 @@ function Jn(e) {
|
|
|
75
75
|
} = ie(e);
|
|
76
76
|
return e instanceof t;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
78
|
+
function zt(e) {
|
|
79
|
+
return mt(e) ? !1 : e instanceof ie(e).HTMLElement;
|
|
80
80
|
}
|
|
81
81
|
function Ko(e) {
|
|
82
82
|
return e instanceof ie(e).SVGElement;
|
|
83
83
|
}
|
|
84
84
|
function bt(e) {
|
|
85
|
-
return e ?
|
|
85
|
+
return e ? mt(e) ? e.document : Xn(e) ? Jn(e) ? e : zt(e) || Ko(e) ? e.ownerDocument : document : document : document;
|
|
86
86
|
}
|
|
87
87
|
const Te = fn ? Tr : U;
|
|
88
88
|
function Qn(e) {
|
|
@@ -95,7 +95,7 @@ function Qn(e) {
|
|
|
95
95
|
return t.current == null ? void 0 : t.current(...o);
|
|
96
96
|
}, []);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function qr() {
|
|
99
99
|
const e = V(null), t = te((o, r) => {
|
|
100
100
|
e.current = setInterval(o, r);
|
|
101
101
|
}, []), n = te(() => {
|
|
@@ -110,7 +110,7 @@ function Ot(e, t) {
|
|
|
110
110
|
n.current !== e && (n.current = e);
|
|
111
111
|
}, t), n;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function jt(e, t) {
|
|
114
114
|
const n = V();
|
|
115
115
|
return H(
|
|
116
116
|
() => {
|
|
@@ -137,16 +137,16 @@ function Mn(e) {
|
|
|
137
137
|
t.current = e;
|
|
138
138
|
}, [e]), t.current;
|
|
139
139
|
}
|
|
140
|
-
let
|
|
140
|
+
let wn = {};
|
|
141
141
|
function Ht(e, t) {
|
|
142
142
|
return H(() => {
|
|
143
143
|
if (t)
|
|
144
144
|
return t;
|
|
145
|
-
const n =
|
|
146
|
-
return
|
|
145
|
+
const n = wn[e] == null ? 0 : wn[e] + 1;
|
|
146
|
+
return wn[e] = n, e + "-" + n;
|
|
147
147
|
}, [e, t]);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function qo(e) {
|
|
150
150
|
return function(t) {
|
|
151
151
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
152
152
|
o[r - 1] = arguments[r];
|
|
@@ -162,8 +162,8 @@ function Go(e) {
|
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const pt = /* @__PURE__ */
|
|
166
|
-
function
|
|
165
|
+
const pt = /* @__PURE__ */ qo(1), sn = /* @__PURE__ */ qo(-1);
|
|
166
|
+
function Gr(e) {
|
|
167
167
|
return "clientX" in e && "clientY" in e;
|
|
168
168
|
}
|
|
169
169
|
function Zn(e) {
|
|
@@ -174,7 +174,7 @@ function Zn(e) {
|
|
|
174
174
|
} = ie(e.target);
|
|
175
175
|
return t && e instanceof t;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Yr(e) {
|
|
178
178
|
if (!e)
|
|
179
179
|
return !1;
|
|
180
180
|
const {
|
|
@@ -183,7 +183,7 @@ function Xr(e) {
|
|
|
183
183
|
return t && e instanceof t;
|
|
184
184
|
}
|
|
185
185
|
function Rn(e) {
|
|
186
|
-
if (
|
|
186
|
+
if (Yr(e)) {
|
|
187
187
|
if (e.touches && e.touches.length) {
|
|
188
188
|
const {
|
|
189
189
|
clientX: t,
|
|
@@ -204,7 +204,7 @@ function Rn(e) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
return
|
|
207
|
+
return Gr(e) ? {
|
|
208
208
|
x: e.clientX,
|
|
209
209
|
y: e.clientY
|
|
210
210
|
} : null;
|
|
@@ -249,7 +249,7 @@ const $t = /* @__PURE__ */ Object.freeze({
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}), po = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
252
|
-
function
|
|
252
|
+
function Xr(e) {
|
|
253
253
|
return e.matches(po) ? e : e.querySelector(po);
|
|
254
254
|
}
|
|
255
255
|
const Jr = {
|
|
@@ -302,9 +302,9 @@ function es() {
|
|
|
302
302
|
announcement: e
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const Go = /* @__PURE__ */ Lt(null);
|
|
306
306
|
function ts(e) {
|
|
307
|
-
const t = nt(
|
|
307
|
+
const t = nt(Go);
|
|
308
308
|
U(() => {
|
|
309
309
|
if (!t)
|
|
310
310
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -431,10 +431,10 @@ function ss(e) {
|
|
|
431
431
|
}));
|
|
432
432
|
return n ? Vr(u, n) : u;
|
|
433
433
|
}
|
|
434
|
-
var
|
|
434
|
+
var q;
|
|
435
435
|
(function(e) {
|
|
436
436
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
437
|
-
})(
|
|
437
|
+
})(q || (q = {}));
|
|
438
438
|
function an() {
|
|
439
439
|
}
|
|
440
440
|
function is(e, t) {
|
|
@@ -517,7 +517,7 @@ function hs(e, t, n) {
|
|
|
517
517
|
scaleY: t && n ? t.height / n.height : 1
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Yo(e, t) {
|
|
521
521
|
return e && t ? {
|
|
522
522
|
x: e.left - t.left,
|
|
523
523
|
y: e.top - t.top
|
|
@@ -559,7 +559,7 @@ function ps(e) {
|
|
|
559
559
|
}
|
|
560
560
|
return null;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function vs(e, t, n) {
|
|
563
563
|
const o = ps(t);
|
|
564
564
|
if (!o)
|
|
565
565
|
return e;
|
|
@@ -578,18 +578,18 @@ function ms(e, t, n) {
|
|
|
578
578
|
left: l
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
const
|
|
581
|
+
const ms = {
|
|
582
582
|
ignoreTransform: !1
|
|
583
583
|
};
|
|
584
584
|
function _t(e, t) {
|
|
585
|
-
t === void 0 && (t =
|
|
585
|
+
t === void 0 && (t = ms);
|
|
586
586
|
let n = e.getBoundingClientRect();
|
|
587
587
|
if (t.ignoreTransform) {
|
|
588
588
|
const {
|
|
589
589
|
transform: d,
|
|
590
590
|
transformOrigin: u
|
|
591
591
|
} = ie(e).getComputedStyle(e);
|
|
592
|
-
d && (n =
|
|
592
|
+
d && (n = vs(n, d, u));
|
|
593
593
|
}
|
|
594
594
|
const {
|
|
595
595
|
top: o,
|
|
@@ -608,7 +608,7 @@ function _t(e, t) {
|
|
|
608
608
|
right: l
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function vo(e) {
|
|
612
612
|
return _t(e, {
|
|
613
613
|
ignoreTransform: !0
|
|
614
614
|
});
|
|
@@ -627,7 +627,7 @@ function bs(e) {
|
|
|
627
627
|
function _s(e, t) {
|
|
628
628
|
return t === void 0 && (t = ie(e).getComputedStyle(e)), t.position === "fixed";
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function ys(e, t) {
|
|
631
631
|
t === void 0 && (t = ie(e).getComputedStyle(e));
|
|
632
632
|
const n = /(auto|scroll|overlay)/;
|
|
633
633
|
return ["overflow", "overflowX", "overflowY"].some((r) => {
|
|
@@ -642,25 +642,25 @@ function eo(e, t) {
|
|
|
642
642
|
return n;
|
|
643
643
|
if (Jn(r) && r.scrollingElement != null && !n.includes(r.scrollingElement))
|
|
644
644
|
return n.push(r.scrollingElement), n;
|
|
645
|
-
if (!
|
|
645
|
+
if (!zt(r) || Ko(r) || n.includes(r))
|
|
646
646
|
return n;
|
|
647
647
|
const s = ie(e).getComputedStyle(r);
|
|
648
|
-
return r !== e &&
|
|
648
|
+
return r !== e && ys(r, s) && n.push(r), _s(r, s) ? n : o(r.parentNode);
|
|
649
649
|
}
|
|
650
650
|
return e ? o(e) : n;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Xo(e) {
|
|
653
653
|
const [t] = eo(e, 1);
|
|
654
654
|
return t ?? null;
|
|
655
655
|
}
|
|
656
656
|
function Cn(e) {
|
|
657
|
-
return !fn || !e ? null :
|
|
657
|
+
return !fn || !e ? null : mt(e) ? e : Xn(e) ? Jn(e) || e === bt(e).scrollingElement ? window : zt(e) ? e : null : null;
|
|
658
658
|
}
|
|
659
659
|
function Jo(e) {
|
|
660
|
-
return
|
|
660
|
+
return mt(e) ? e.scrollX : e.scrollLeft;
|
|
661
661
|
}
|
|
662
662
|
function Qo(e) {
|
|
663
|
-
return
|
|
663
|
+
return mt(e) ? e.scrollY : e.scrollTop;
|
|
664
664
|
}
|
|
665
665
|
function On(e) {
|
|
666
666
|
return {
|
|
@@ -668,10 +668,10 @@ function On(e) {
|
|
|
668
668
|
y: Qo(e)
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
var
|
|
671
|
+
var G;
|
|
672
672
|
(function(e) {
|
|
673
673
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
674
|
-
})(
|
|
674
|
+
})(G || (G = {}));
|
|
675
675
|
function Zo(e) {
|
|
676
676
|
return !fn || !e ? !1 : e === document.scrollingElement;
|
|
677
677
|
}
|
|
@@ -698,7 +698,7 @@ function er(e) {
|
|
|
698
698
|
minScroll: t
|
|
699
699
|
};
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const ws = {
|
|
702
702
|
x: 0.2,
|
|
703
703
|
y: 0.2
|
|
704
704
|
};
|
|
@@ -709,7 +709,7 @@ function Cs(e, t, n, o, r) {
|
|
|
709
709
|
right: a,
|
|
710
710
|
bottom: l
|
|
711
711
|
} = n;
|
|
712
|
-
o === void 0 && (o = 10), r === void 0 && (r =
|
|
712
|
+
o === void 0 && (o = 10), r === void 0 && (r = ws);
|
|
713
713
|
const {
|
|
714
714
|
isTop: d,
|
|
715
715
|
isBottom: u,
|
|
@@ -718,16 +718,16 @@ function Cs(e, t, n, o, r) {
|
|
|
718
718
|
} = er(e), g = {
|
|
719
719
|
x: 0,
|
|
720
720
|
y: 0
|
|
721
|
-
},
|
|
721
|
+
}, y = {
|
|
722
722
|
x: 0,
|
|
723
723
|
y: 0
|
|
724
724
|
}, h = {
|
|
725
725
|
height: t.height * r.y,
|
|
726
726
|
width: t.width * r.x
|
|
727
727
|
};
|
|
728
|
-
return !d && s <= t.top + h.height ? (g.y =
|
|
728
|
+
return !d && s <= t.top + h.height ? (g.y = G.Backward, y.y = o * Math.abs((t.top + h.height - s) / h.height)) : !u && l >= t.bottom - h.height && (g.y = G.Forward, y.y = o * Math.abs((t.bottom - h.height - l) / h.height)), !p && a >= t.right - h.width ? (g.x = G.Forward, y.x = o * Math.abs((t.right - h.width - a) / h.width)) : !f && i <= t.left + h.width && (g.x = G.Backward, y.x = o * Math.abs((t.left + h.width - i) / h.width)), {
|
|
729
729
|
direction: g,
|
|
730
|
-
speed:
|
|
730
|
+
speed: y
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
733
|
function Ss(e) {
|
|
@@ -778,7 +778,7 @@ function As(e, t) {
|
|
|
778
778
|
bottom: r,
|
|
779
779
|
right: s
|
|
780
780
|
} = t(e);
|
|
781
|
-
|
|
781
|
+
Xo(e) && (r <= 0 || s <= 0 || n >= window.innerHeight || o >= window.innerWidth) && e.scrollIntoView({
|
|
782
782
|
block: "center",
|
|
783
783
|
inline: "center"
|
|
784
784
|
});
|
|
@@ -833,7 +833,7 @@ var pe;
|
|
|
833
833
|
(function(e) {
|
|
834
834
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
835
835
|
})(pe || (pe = {}));
|
|
836
|
-
function
|
|
836
|
+
function mo(e) {
|
|
837
837
|
e.preventDefault();
|
|
838
838
|
}
|
|
839
839
|
function Es(e) {
|
|
@@ -932,22 +932,22 @@ class or {
|
|
|
932
932
|
x: 0,
|
|
933
933
|
y: 0
|
|
934
934
|
}, {
|
|
935
|
-
scrollableAncestors:
|
|
935
|
+
scrollableAncestors: y
|
|
936
936
|
} = o.current;
|
|
937
|
-
for (const h of
|
|
938
|
-
const
|
|
937
|
+
for (const h of y) {
|
|
938
|
+
const m = t.code, {
|
|
939
939
|
isTop: b,
|
|
940
940
|
isRight: C,
|
|
941
|
-
isLeft:
|
|
941
|
+
isLeft: v,
|
|
942
942
|
isBottom: k,
|
|
943
943
|
maxScroll: x,
|
|
944
944
|
minScroll: S
|
|
945
945
|
} = er(h), _ = Ss(h), N = {
|
|
946
|
-
x: Math.min(
|
|
947
|
-
y: Math.min(
|
|
948
|
-
}, O =
|
|
946
|
+
x: Math.min(m === L.Right ? _.right - _.width / 2 : _.right, Math.max(m === L.Right ? _.left : _.left + _.width / 2, f.x)),
|
|
947
|
+
y: Math.min(m === L.Down ? _.bottom - _.height / 2 : _.bottom, Math.max(m === L.Down ? _.top : _.top + _.height / 2, f.y))
|
|
948
|
+
}, O = m === L.Right && !C || m === L.Left && !v, z = m === L.Down && !k || m === L.Up && !b;
|
|
949
949
|
if (O && N.x !== f.x) {
|
|
950
|
-
const $ = h.scrollLeft + p.x, T =
|
|
950
|
+
const $ = h.scrollLeft + p.x, T = m === L.Right && $ <= x.x || m === L.Left && $ >= S.x;
|
|
951
951
|
if (T && !p.y) {
|
|
952
952
|
h.scrollTo({
|
|
953
953
|
left: $,
|
|
@@ -955,13 +955,13 @@ class or {
|
|
|
955
955
|
});
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
T ? g.x = h.scrollLeft - $ : g.x =
|
|
958
|
+
T ? g.x = h.scrollLeft - $ : g.x = m === L.Right ? h.scrollLeft - x.x : h.scrollLeft - S.x, g.x && h.scrollBy({
|
|
959
959
|
left: -g.x,
|
|
960
960
|
behavior: a
|
|
961
961
|
});
|
|
962
962
|
break;
|
|
963
|
-
} else if (
|
|
964
|
-
const $ = h.scrollTop + p.y, T =
|
|
963
|
+
} else if (z && N.y !== f.y) {
|
|
964
|
+
const $ = h.scrollTop + p.y, T = m === L.Down && $ <= x.y || m === L.Up && $ >= S.y;
|
|
965
965
|
if (T && !p.x) {
|
|
966
966
|
h.scrollTo({
|
|
967
967
|
top: $,
|
|
@@ -969,7 +969,7 @@ class or {
|
|
|
969
969
|
});
|
|
970
970
|
return;
|
|
971
971
|
}
|
|
972
|
-
T ? g.y = h.scrollTop - $ : g.y =
|
|
972
|
+
T ? g.y = h.scrollTop - $ : g.y = m === L.Down ? h.scrollTop - x.y : h.scrollTop - S.y, g.y && h.scrollBy({
|
|
973
973
|
top: -g.y,
|
|
974
974
|
behavior: a
|
|
975
975
|
});
|
|
@@ -1052,7 +1052,7 @@ class no {
|
|
|
1052
1052
|
} = this;
|
|
1053
1053
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1054
1054
|
passive: !1
|
|
1055
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(pe.Resize, this.handleCancel), this.windowListeners.add(pe.DragStart,
|
|
1055
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(pe.Resize, this.handleCancel), this.windowListeners.add(pe.DragStart, mo), this.windowListeners.add(pe.VisibilityChange, this.handleCancel), this.windowListeners.add(pe.ContextMenu, mo), this.documentListeners.add(pe.Keydown, this.handleKeydown), n) {
|
|
1056
1056
|
if (o != null && o({
|
|
1057
1057
|
event: this.props.event,
|
|
1058
1058
|
activeNode: this.props.activeNode,
|
|
@@ -1271,7 +1271,7 @@ function Os(e) {
|
|
|
1271
1271
|
const g = Ps({
|
|
1272
1272
|
delta: f,
|
|
1273
1273
|
disabled: !s
|
|
1274
|
-
}), [
|
|
1274
|
+
}), [y, h] = qr(), m = V({
|
|
1275
1275
|
x: 0,
|
|
1276
1276
|
y: 0
|
|
1277
1277
|
}), b = V({
|
|
@@ -1289,11 +1289,11 @@ function Os(e) {
|
|
|
1289
1289
|
case Tt.DraggableRect:
|
|
1290
1290
|
return r;
|
|
1291
1291
|
}
|
|
1292
|
-
}, [n, r, l]),
|
|
1293
|
-
const S =
|
|
1292
|
+
}, [n, r, l]), v = V(null), k = te(() => {
|
|
1293
|
+
const S = v.current;
|
|
1294
1294
|
if (!S)
|
|
1295
1295
|
return;
|
|
1296
|
-
const _ =
|
|
1296
|
+
const _ = m.current.x * b.current.x, N = m.current.y * b.current.y;
|
|
1297
1297
|
S.scrollBy(_, N);
|
|
1298
1298
|
}, []), x = H(() => a === cn.TreeOrder ? [...d].reverse() : d, [a, d]);
|
|
1299
1299
|
U(
|
|
@@ -1310,16 +1310,16 @@ function Os(e) {
|
|
|
1310
1310
|
continue;
|
|
1311
1311
|
const {
|
|
1312
1312
|
direction: O,
|
|
1313
|
-
speed:
|
|
1313
|
+
speed: z
|
|
1314
1314
|
} = Cs(S, N, C, t, p);
|
|
1315
1315
|
for (const $ of ["x", "y"])
|
|
1316
|
-
g[$][O[$]] || (
|
|
1317
|
-
if (
|
|
1318
|
-
h(),
|
|
1316
|
+
g[$][O[$]] || (z[$] = 0, O[$] = 0);
|
|
1317
|
+
if (z.x > 0 || z.y > 0) {
|
|
1318
|
+
h(), v.current = S, y(k, i), m.current = z, b.current = O;
|
|
1319
1319
|
return;
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
|
|
1322
|
+
m.current = {
|
|
1323
1323
|
x: 0,
|
|
1324
1324
|
y: 0
|
|
1325
1325
|
}, b.current = {
|
|
@@ -1339,7 +1339,7 @@ function Os(e) {
|
|
|
1339
1339
|
JSON.stringify(C),
|
|
1340
1340
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1341
1341
|
JSON.stringify(g),
|
|
1342
|
-
|
|
1342
|
+
y,
|
|
1343
1343
|
d,
|
|
1344
1344
|
x,
|
|
1345
1345
|
u,
|
|
@@ -1350,12 +1350,12 @@ function Os(e) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
const $s = {
|
|
1352
1352
|
x: {
|
|
1353
|
-
[
|
|
1354
|
-
[
|
|
1353
|
+
[G.Backward]: !1,
|
|
1354
|
+
[G.Forward]: !1
|
|
1355
1355
|
},
|
|
1356
1356
|
y: {
|
|
1357
|
-
[
|
|
1358
|
-
[
|
|
1357
|
+
[G.Backward]: !1,
|
|
1358
|
+
[G.Forward]: !1
|
|
1359
1359
|
}
|
|
1360
1360
|
};
|
|
1361
1361
|
function Ps(e) {
|
|
@@ -1364,7 +1364,7 @@ function Ps(e) {
|
|
|
1364
1364
|
disabled: n
|
|
1365
1365
|
} = e;
|
|
1366
1366
|
const o = Mn(t);
|
|
1367
|
-
return
|
|
1367
|
+
return jt((r) => {
|
|
1368
1368
|
if (n || !o || !r)
|
|
1369
1369
|
return $s;
|
|
1370
1370
|
const s = {
|
|
@@ -1373,19 +1373,19 @@ function Ps(e) {
|
|
|
1373
1373
|
};
|
|
1374
1374
|
return {
|
|
1375
1375
|
x: {
|
|
1376
|
-
[
|
|
1377
|
-
[
|
|
1376
|
+
[G.Backward]: r.x[G.Backward] || s.x === -1,
|
|
1377
|
+
[G.Forward]: r.x[G.Forward] || s.x === 1
|
|
1378
1378
|
},
|
|
1379
1379
|
y: {
|
|
1380
|
-
[
|
|
1381
|
-
[
|
|
1380
|
+
[G.Backward]: r.y[G.Backward] || s.y === -1,
|
|
1381
|
+
[G.Forward]: r.y[G.Forward] || s.y === 1
|
|
1382
1382
|
}
|
|
1383
1383
|
};
|
|
1384
1384
|
}, [n, t, o]);
|
|
1385
1385
|
}
|
|
1386
1386
|
function Ls(e, t) {
|
|
1387
1387
|
const n = t != null ? e.get(t) : void 0, o = n ? n.node.current : null;
|
|
1388
|
-
return
|
|
1388
|
+
return jt((r) => {
|
|
1389
1389
|
var s;
|
|
1390
1390
|
return t == null ? null : (s = o ?? r) != null ? s : null;
|
|
1391
1391
|
}, [o, t]);
|
|
@@ -1409,8 +1409,8 @@ var Pn;
|
|
|
1409
1409
|
(function(e) {
|
|
1410
1410
|
e.Optimized = "optimized";
|
|
1411
1411
|
})(Pn || (Pn = {}));
|
|
1412
|
-
const
|
|
1413
|
-
function
|
|
1412
|
+
const yo = /* @__PURE__ */ new Map();
|
|
1413
|
+
function zs(e, t) {
|
|
1414
1414
|
let {
|
|
1415
1415
|
dragging: n,
|
|
1416
1416
|
dependencies: o,
|
|
@@ -1420,22 +1420,22 @@ function js(e, t) {
|
|
|
1420
1420
|
frequency: a,
|
|
1421
1421
|
measure: l,
|
|
1422
1422
|
strategy: d
|
|
1423
|
-
} = r, u = V(e), f =
|
|
1424
|
-
b === void 0 && (b = []), !p.current && i((C) => C === null ? b : C.concat(b.filter((
|
|
1425
|
-
}, [p]),
|
|
1423
|
+
} = r, u = V(e), f = m(), p = Ot(f), g = te(function(b) {
|
|
1424
|
+
b === void 0 && (b = []), !p.current && i((C) => C === null ? b : C.concat(b.filter((v) => !C.includes(v))));
|
|
1425
|
+
}, [p]), y = V(null), h = jt((b) => {
|
|
1426
1426
|
if (f && !n)
|
|
1427
|
-
return
|
|
1428
|
-
if (!b || b ===
|
|
1427
|
+
return yo;
|
|
1428
|
+
if (!b || b === yo || u.current !== e || s != null) {
|
|
1429
1429
|
const C = /* @__PURE__ */ new Map();
|
|
1430
|
-
for (let
|
|
1431
|
-
if (!
|
|
1430
|
+
for (let v of e) {
|
|
1431
|
+
if (!v)
|
|
1432
1432
|
continue;
|
|
1433
|
-
if (s && s.length > 0 && !s.includes(
|
|
1434
|
-
C.set(
|
|
1433
|
+
if (s && s.length > 0 && !s.includes(v.id) && v.rect.current) {
|
|
1434
|
+
C.set(v.id, v.rect.current);
|
|
1435
1435
|
continue;
|
|
1436
1436
|
}
|
|
1437
|
-
const k =
|
|
1438
|
-
|
|
1437
|
+
const k = v.node.current, x = k ? new to(l(k), k) : null;
|
|
1438
|
+
v.rect.current = x, x && C.set(v.id, x);
|
|
1439
1439
|
}
|
|
1440
1440
|
return C;
|
|
1441
1441
|
}
|
|
@@ -1457,8 +1457,8 @@ function js(e, t) {
|
|
|
1457
1457
|
[JSON.stringify(s)]
|
|
1458
1458
|
), U(
|
|
1459
1459
|
() => {
|
|
1460
|
-
f || typeof a != "number" ||
|
|
1461
|
-
g(),
|
|
1460
|
+
f || typeof a != "number" || y.current !== null || (y.current = setTimeout(() => {
|
|
1461
|
+
g(), y.current = null;
|
|
1462
1462
|
}, a));
|
|
1463
1463
|
},
|
|
1464
1464
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1468,7 +1468,7 @@ function js(e, t) {
|
|
|
1468
1468
|
measureDroppableContainers: g,
|
|
1469
1469
|
measuringScheduled: s != null
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function m() {
|
|
1472
1472
|
switch (d) {
|
|
1473
1473
|
case Pt.Always:
|
|
1474
1474
|
return !1;
|
|
@@ -1480,9 +1480,9 @@ function js(e, t) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
function rr(e, t) {
|
|
1483
|
-
return
|
|
1483
|
+
return jt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function js(e, t) {
|
|
1486
1486
|
return rr(e, t);
|
|
1487
1487
|
}
|
|
1488
1488
|
function Hs(e) {
|
|
@@ -1522,7 +1522,7 @@ function gn(e) {
|
|
|
1522
1522
|
function Ws(e) {
|
|
1523
1523
|
return new to(_t(e), e);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function wo(e, t, n) {
|
|
1526
1526
|
t === void 0 && (t = Ws);
|
|
1527
1527
|
const [o, r] = he(null);
|
|
1528
1528
|
function s() {
|
|
@@ -1563,11 +1563,11 @@ function yo(e, t, n) {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
function Us(e) {
|
|
1565
1565
|
const t = rr(e);
|
|
1566
|
-
return
|
|
1566
|
+
return Yo(e, t);
|
|
1567
1567
|
}
|
|
1568
1568
|
const Co = [];
|
|
1569
1569
|
function Vs(e) {
|
|
1570
|
-
const t = V(e), n =
|
|
1570
|
+
const t = V(e), n = jt((o) => e ? o && o !== Co && e && t.current && e.parentNode === t.current.parentNode ? o : eo(e) : Co, [e]);
|
|
1571
1571
|
return U(() => {
|
|
1572
1572
|
t.current = e;
|
|
1573
1573
|
}, [e]), n;
|
|
@@ -1614,7 +1614,7 @@ function So(e, t) {
|
|
|
1614
1614
|
o && !n.current && (n.current = e), !o && n.current && (n.current = null);
|
|
1615
1615
|
}, [e]), n.current ? sn(e, n.current) : Se;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function qs(e) {
|
|
1618
1618
|
U(
|
|
1619
1619
|
() => {
|
|
1620
1620
|
if (!fn)
|
|
@@ -1640,7 +1640,7 @@ function Gs(e) {
|
|
|
1640
1640
|
})
|
|
1641
1641
|
);
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function Gs(e, t) {
|
|
1644
1644
|
return H(() => e.reduce((n, o) => {
|
|
1645
1645
|
let {
|
|
1646
1646
|
eventName: r,
|
|
@@ -1655,7 +1655,7 @@ function sr(e) {
|
|
|
1655
1655
|
return H(() => e ? bs(e) : null, [e]);
|
|
1656
1656
|
}
|
|
1657
1657
|
const xo = [];
|
|
1658
|
-
function
|
|
1658
|
+
function Ys(e, t) {
|
|
1659
1659
|
t === void 0 && (t = _t);
|
|
1660
1660
|
const [n] = e, o = sr(n ? ie(n) : null), [r, s] = he(xo);
|
|
1661
1661
|
function i() {
|
|
@@ -1668,13 +1668,13 @@ function Xs(e, t) {
|
|
|
1668
1668
|
a == null || a.disconnect(), i(), e.forEach((l) => a == null ? void 0 : a.observe(l));
|
|
1669
1669
|
}, [e]), r;
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function Xs(e) {
|
|
1672
1672
|
if (!e)
|
|
1673
1673
|
return null;
|
|
1674
1674
|
if (e.children.length > 1)
|
|
1675
1675
|
return e;
|
|
1676
1676
|
const t = e.children[0];
|
|
1677
|
-
return
|
|
1677
|
+
return zt(t) ? t : e;
|
|
1678
1678
|
}
|
|
1679
1679
|
function Js(e) {
|
|
1680
1680
|
let {
|
|
@@ -1684,7 +1684,7 @@ function Js(e) {
|
|
|
1684
1684
|
for (const {
|
|
1685
1685
|
target: u
|
|
1686
1686
|
} of d)
|
|
1687
|
-
if (
|
|
1687
|
+
if (zt(u)) {
|
|
1688
1688
|
o((f) => {
|
|
1689
1689
|
const p = t(u);
|
|
1690
1690
|
return f ? {
|
|
@@ -1698,7 +1698,7 @@ function Js(e) {
|
|
|
1698
1698
|
}, [t]), s = gn({
|
|
1699
1699
|
callback: r
|
|
1700
1700
|
}), i = te((d) => {
|
|
1701
|
-
const u =
|
|
1701
|
+
const u = Xs(d);
|
|
1702
1702
|
s == null || s.disconnect(), u && (s == null || s.observe(u)), o(u ? t(u) : null);
|
|
1703
1703
|
}, [t, s]), [a, l] = rn(i);
|
|
1704
1704
|
return H(() => ({
|
|
@@ -1717,10 +1717,10 @@ const Qs = [{
|
|
|
1717
1717
|
current: {}
|
|
1718
1718
|
}, en = {
|
|
1719
1719
|
draggable: {
|
|
1720
|
-
measure:
|
|
1720
|
+
measure: vo
|
|
1721
1721
|
},
|
|
1722
1722
|
droppable: {
|
|
1723
|
-
measure:
|
|
1723
|
+
measure: vo,
|
|
1724
1724
|
strategy: Pt.WhileDragging,
|
|
1725
1725
|
frequency: Pn.Optimized
|
|
1726
1726
|
},
|
|
@@ -1807,7 +1807,7 @@ function ni() {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
function oi(e, t) {
|
|
1809
1809
|
switch (t.type) {
|
|
1810
|
-
case
|
|
1810
|
+
case q.DragStart:
|
|
1811
1811
|
return {
|
|
1812
1812
|
...e,
|
|
1813
1813
|
draggable: {
|
|
@@ -1816,7 +1816,7 @@ function oi(e, t) {
|
|
|
1816
1816
|
active: t.active
|
|
1817
1817
|
}
|
|
1818
1818
|
};
|
|
1819
|
-
case
|
|
1819
|
+
case q.DragMove:
|
|
1820
1820
|
return e.draggable.active == null ? e : {
|
|
1821
1821
|
...e,
|
|
1822
1822
|
draggable: {
|
|
@@ -1827,8 +1827,8 @@ function oi(e, t) {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
1829
|
};
|
|
1830
|
-
case
|
|
1831
|
-
case
|
|
1830
|
+
case q.DragEnd:
|
|
1831
|
+
case q.DragCancel:
|
|
1832
1832
|
return {
|
|
1833
1833
|
...e,
|
|
1834
1834
|
draggable: {
|
|
@@ -1844,7 +1844,7 @@ function oi(e, t) {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
|
-
case
|
|
1847
|
+
case q.RegisterDroppable: {
|
|
1848
1848
|
const {
|
|
1849
1849
|
element: n
|
|
1850
1850
|
} = t, {
|
|
@@ -1858,7 +1858,7 @@ function oi(e, t) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
|
-
case
|
|
1861
|
+
case q.SetDroppableDisabled: {
|
|
1862
1862
|
const {
|
|
1863
1863
|
id: n,
|
|
1864
1864
|
key: o,
|
|
@@ -1878,7 +1878,7 @@ function oi(e, t) {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
};
|
|
1880
1880
|
}
|
|
1881
|
-
case
|
|
1881
|
+
case q.UnregisterDroppable: {
|
|
1882
1882
|
const {
|
|
1883
1883
|
id: n,
|
|
1884
1884
|
key: o
|
|
@@ -1924,7 +1924,7 @@ function ri(e) {
|
|
|
1924
1924
|
for (const u of [l.current, d.current]) {
|
|
1925
1925
|
if (!u)
|
|
1926
1926
|
continue;
|
|
1927
|
-
const f =
|
|
1927
|
+
const f = Xr(u);
|
|
1928
1928
|
if (f) {
|
|
1929
1929
|
f.focus();
|
|
1930
1930
|
break;
|
|
@@ -1988,9 +1988,9 @@ function ai(e) {
|
|
|
1988
1988
|
const d = t == null ? void 0 : t.node.current;
|
|
1989
1989
|
if (!d || d.isConnected === !1)
|
|
1990
1990
|
return;
|
|
1991
|
-
const u = n(d), f =
|
|
1991
|
+
const u = n(d), f = Yo(u, o);
|
|
1992
1992
|
if (i || (f.x = 0), a || (f.y = 0), s.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
1993
|
-
const p =
|
|
1993
|
+
const p = Xo(d);
|
|
1994
1994
|
p && p.scrollBy({
|
|
1995
1995
|
top: f.y,
|
|
1996
1996
|
left: f.x
|
|
@@ -2003,10 +2003,10 @@ const ar = /* @__PURE__ */ Lt({
|
|
|
2003
2003
|
scaleX: 1,
|
|
2004
2004
|
scaleY: 1
|
|
2005
2005
|
});
|
|
2006
|
-
var
|
|
2006
|
+
var Ge;
|
|
2007
2007
|
(function(e) {
|
|
2008
2008
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2009
|
-
})(
|
|
2009
|
+
})(Ge || (Ge = {}));
|
|
2010
2010
|
const ci = /* @__PURE__ */ Mr(function(t) {
|
|
2011
2011
|
var n, o, r, s;
|
|
2012
2012
|
let {
|
|
@@ -2018,18 +2018,18 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2018
2018
|
collisionDetection: f = ds,
|
|
2019
2019
|
measuring: p,
|
|
2020
2020
|
modifiers: g,
|
|
2021
|
-
...
|
|
2021
|
+
...y
|
|
2022
2022
|
} = t;
|
|
2023
|
-
const h = Rr(oi, void 0, ni), [
|
|
2023
|
+
const h = Rr(oi, void 0, ni), [m, b] = h, [C, v] = ns(), [k, x] = he(Ge.Uninitialized), S = k === Ge.Initialized, {
|
|
2024
2024
|
draggable: {
|
|
2025
2025
|
active: _,
|
|
2026
2026
|
nodes: N,
|
|
2027
2027
|
translate: O
|
|
2028
2028
|
},
|
|
2029
2029
|
droppable: {
|
|
2030
|
-
containers:
|
|
2030
|
+
containers: z
|
|
2031
2031
|
}
|
|
2032
|
-
} =
|
|
2032
|
+
} = m, $ = _ != null ? N.get(_) : null, T = V({
|
|
2033
2033
|
initial: null,
|
|
2034
2034
|
translated: null
|
|
2035
2035
|
}), P = H(() => {
|
|
@@ -2040,38 +2040,38 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2040
2040
|
data: (Z = $ == null ? void 0 : $.data) != null ? Z : Zs,
|
|
2041
2041
|
rect: T
|
|
2042
2042
|
} : null;
|
|
2043
|
-
}, [_, $]), M = V(null), [W, oe] = he(null), [I, K] = he(null),
|
|
2044
|
-
droppableRects:
|
|
2043
|
+
}, [_, $]), M = V(null), [W, oe] = he(null), [I, K] = he(null), ve = Ot(y, Object.values(y)), ze = Ht("DndDescribedBy", i), st = H(() => z.getEnabled(), [z]), Q = ii(p), {
|
|
2044
|
+
droppableRects: me,
|
|
2045
2045
|
measureDroppableContainers: xe,
|
|
2046
2046
|
measuringScheduled: Qe
|
|
2047
|
-
} =
|
|
2047
|
+
} = zs(st, {
|
|
2048
2048
|
dragging: S,
|
|
2049
2049
|
dependencies: [O.x, O.y],
|
|
2050
2050
|
config: Q.droppable
|
|
2051
|
-
}), F = Ls(N, _), it = H(() => I ? Rn(I) : null, [I]),
|
|
2051
|
+
}), F = Ls(N, _), it = H(() => I ? Rn(I) : null, [I]), je = Ir(), Me = js(F, Q.draggable.measure);
|
|
2052
2052
|
ai({
|
|
2053
2053
|
activeNode: _ != null ? N.get(_) : null,
|
|
2054
|
-
config:
|
|
2054
|
+
config: je.layoutShiftCompensation,
|
|
2055
2055
|
initialRect: Me,
|
|
2056
2056
|
measure: Q.draggable.measure
|
|
2057
2057
|
});
|
|
2058
|
-
const
|
|
2058
|
+
const j = wo(F, Q.draggable.measure, Me), wt = wo(F ? F.parentElement : null), ke = V({
|
|
2059
2059
|
activatorEvent: null,
|
|
2060
2060
|
active: null,
|
|
2061
2061
|
activeNode: F,
|
|
2062
2062
|
collisionRect: null,
|
|
2063
2063
|
collisions: null,
|
|
2064
|
-
droppableRects:
|
|
2064
|
+
droppableRects: me,
|
|
2065
2065
|
draggableNodes: N,
|
|
2066
2066
|
draggingNode: null,
|
|
2067
2067
|
draggingNodeRect: null,
|
|
2068
|
-
droppableContainers:
|
|
2068
|
+
droppableContainers: z,
|
|
2069
2069
|
over: null,
|
|
2070
2070
|
scrollableAncestors: [],
|
|
2071
2071
|
scrollAdjustedTranslate: null
|
|
2072
|
-
}), at =
|
|
2072
|
+
}), at = z.getNodeFor((n = ke.current.over) == null ? void 0 : n.id), Re = Js({
|
|
2073
2073
|
measure: Q.dragOverlay.measure
|
|
2074
|
-
}), ct = (o = Re.nodeRef.current) != null ? o : F, lt = S ? (r = Re.rect) != null ? r :
|
|
2074
|
+
}), ct = (o = Re.nodeRef.current) != null ? o : F, lt = S ? (r = Re.rect) != null ? r : j : null, so = !!(Re.nodeRef.current && Re.rect), io = Us(so ? null : j), vn = sr(ct ? ie(ct) : null), He = Vs(S ? at ?? F : null), Ut = Ys(He), Vt = si(g, {
|
|
2075
2075
|
transform: {
|
|
2076
2076
|
x: O.x - io.x,
|
|
2077
2077
|
y: O.y - io.y,
|
|
@@ -2080,21 +2080,21 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2080
2080
|
},
|
|
2081
2081
|
activatorEvent: I,
|
|
2082
2082
|
active: P,
|
|
2083
|
-
activeNodeRect:
|
|
2084
|
-
containerNodeRect:
|
|
2083
|
+
activeNodeRect: j,
|
|
2084
|
+
containerNodeRect: wt,
|
|
2085
2085
|
draggingNodeRect: lt,
|
|
2086
2086
|
over: ke.current.over,
|
|
2087
2087
|
overlayNodeRect: Re.rect,
|
|
2088
2088
|
scrollableAncestors: He,
|
|
2089
2089
|
scrollableAncestorRects: Ut,
|
|
2090
|
-
windowRect:
|
|
2091
|
-
}), ao = it ? pt(it, O) : null, co = Ks(He), xr = So(co), kr = So(co, [
|
|
2090
|
+
windowRect: vn
|
|
2091
|
+
}), ao = it ? pt(it, O) : null, co = Ks(He), xr = So(co), kr = So(co, [j]), ut = pt(Vt, xr), dt = lt ? gs(lt, Vt) : null, Ct = P && dt ? f({
|
|
2092
2092
|
active: P,
|
|
2093
2093
|
collisionRect: dt,
|
|
2094
|
-
droppableRects:
|
|
2094
|
+
droppableRects: me,
|
|
2095
2095
|
droppableContainers: st,
|
|
2096
2096
|
pointerCoordinates: ao
|
|
2097
|
-
}) : null, lo = ls(Ct, "id"), [We, uo] = he(null), Ar = so ? Vt : pt(Vt, kr), Nr = hs(Ar, (s = We == null ? void 0 : We.rect) != null ? s : null,
|
|
2097
|
+
}) : null, lo = ls(Ct, "id"), [We, uo] = he(null), Ar = so ? Vt : pt(Vt, kr), Nr = hs(Ar, (s = We == null ? void 0 : We.rect) != null ? s : null, j), mn = V(null), ho = te(
|
|
2098
2098
|
(Z, ae) => {
|
|
2099
2099
|
let {
|
|
2100
2100
|
sensor: ce,
|
|
@@ -2113,26 +2113,26 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2113
2113
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2114
2114
|
// otherwise they are frozen in time with the stale arguments
|
|
2115
2115
|
context: ke,
|
|
2116
|
-
onAbort(
|
|
2117
|
-
if (!N.get(
|
|
2116
|
+
onAbort(X) {
|
|
2117
|
+
if (!N.get(X))
|
|
2118
2118
|
return;
|
|
2119
2119
|
const {
|
|
2120
2120
|
onDragAbort: Ne
|
|
2121
|
-
} =
|
|
2122
|
-
id:
|
|
2121
|
+
} = ve.current, Oe = {
|
|
2122
|
+
id: X
|
|
2123
2123
|
};
|
|
2124
2124
|
Ne == null || Ne(Oe), C({
|
|
2125
2125
|
type: "onDragAbort",
|
|
2126
2126
|
event: Oe
|
|
2127
2127
|
});
|
|
2128
2128
|
},
|
|
2129
|
-
onPending(
|
|
2130
|
-
if (!N.get(
|
|
2129
|
+
onPending(X, Ve, Ne, Oe) {
|
|
2130
|
+
if (!N.get(X))
|
|
2131
2131
|
return;
|
|
2132
2132
|
const {
|
|
2133
2133
|
onDragPending: xt
|
|
2134
|
-
} =
|
|
2135
|
-
id:
|
|
2134
|
+
} = ve.current, Ke = {
|
|
2135
|
+
id: X,
|
|
2136
2136
|
constraint: Ve,
|
|
2137
2137
|
initialCoordinates: Ne,
|
|
2138
2138
|
offset: Oe
|
|
@@ -2142,7 +2142,7 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2142
2142
|
event: Ke
|
|
2143
2143
|
});
|
|
2144
2144
|
},
|
|
2145
|
-
onStart(
|
|
2145
|
+
onStart(X) {
|
|
2146
2146
|
const Ve = M.current;
|
|
2147
2147
|
if (Ve == null)
|
|
2148
2148
|
return;
|
|
@@ -2151,7 +2151,7 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2151
2151
|
return;
|
|
2152
2152
|
const {
|
|
2153
2153
|
onDragStart: Oe
|
|
2154
|
-
} =
|
|
2154
|
+
} = ve.current, St = {
|
|
2155
2155
|
activatorEvent: le,
|
|
2156
2156
|
active: {
|
|
2157
2157
|
id: Ve,
|
|
@@ -2160,27 +2160,27 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
};
|
|
2162
2162
|
Kt(() => {
|
|
2163
|
-
Oe == null || Oe(St), x(
|
|
2164
|
-
type:
|
|
2165
|
-
initialCoordinates:
|
|
2163
|
+
Oe == null || Oe(St), x(Ge.Initializing), b({
|
|
2164
|
+
type: q.DragStart,
|
|
2165
|
+
initialCoordinates: X,
|
|
2166
2166
|
active: Ve
|
|
2167
2167
|
}), C({
|
|
2168
2168
|
type: "onDragStart",
|
|
2169
2169
|
event: St
|
|
2170
|
-
}), oe(
|
|
2170
|
+
}), oe(mn.current), K(le);
|
|
2171
2171
|
});
|
|
2172
2172
|
},
|
|
2173
|
-
onMove(
|
|
2173
|
+
onMove(X) {
|
|
2174
2174
|
b({
|
|
2175
|
-
type:
|
|
2176
|
-
coordinates:
|
|
2175
|
+
type: q.DragMove,
|
|
2176
|
+
coordinates: X
|
|
2177
2177
|
});
|
|
2178
2178
|
},
|
|
2179
|
-
onEnd: ht(
|
|
2180
|
-
onCancel: ht(
|
|
2179
|
+
onEnd: ht(q.DragEnd),
|
|
2180
|
+
onCancel: ht(q.DragCancel)
|
|
2181
2181
|
});
|
|
2182
|
-
|
|
2183
|
-
function ht(
|
|
2182
|
+
mn.current = Ae;
|
|
2183
|
+
function ht(X) {
|
|
2184
2184
|
return async function() {
|
|
2185
2185
|
const {
|
|
2186
2186
|
active: Ne,
|
|
@@ -2192,22 +2192,22 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2192
2192
|
if (Ne && xt) {
|
|
2193
2193
|
const {
|
|
2194
2194
|
cancelDrop: kt
|
|
2195
|
-
} =
|
|
2195
|
+
} = ve.current;
|
|
2196
2196
|
Ke = {
|
|
2197
2197
|
activatorEvent: le,
|
|
2198
2198
|
active: Ne,
|
|
2199
2199
|
collisions: Oe,
|
|
2200
2200
|
delta: xt,
|
|
2201
2201
|
over: St
|
|
2202
|
-
},
|
|
2202
|
+
}, X === q.DragEnd && typeof kt == "function" && await Promise.resolve(kt(Ke)) && (X = q.DragCancel);
|
|
2203
2203
|
}
|
|
2204
2204
|
M.current = null, Kt(() => {
|
|
2205
2205
|
b({
|
|
2206
|
-
type:
|
|
2207
|
-
}), x(
|
|
2208
|
-
const kt =
|
|
2206
|
+
type: X
|
|
2207
|
+
}), x(Ge.Uninitialized), uo(null), oe(null), K(null), mn.current = null;
|
|
2208
|
+
const kt = X === q.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2209
2209
|
if (Ke) {
|
|
2210
|
-
const bn =
|
|
2210
|
+
const bn = ve.current[kt];
|
|
2211
2211
|
bn == null || bn(Ke), C({
|
|
2212
2212
|
type: kt,
|
|
2213
2213
|
event: Ke
|
|
@@ -2235,13 +2235,13 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2235
2235
|
capturedBy: ae.sensor
|
|
2236
2236
|
}, M.current = Ue, ho(ce, ae));
|
|
2237
2237
|
}, [N, ho]), fo = Fs(u, Dr);
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
}, [
|
|
2238
|
+
qs(u), Te(() => {
|
|
2239
|
+
j && k === Ge.Initializing && x(Ge.Initialized);
|
|
2240
|
+
}, [j, k]), U(
|
|
2241
2241
|
() => {
|
|
2242
2242
|
const {
|
|
2243
2243
|
onDragMove: Z
|
|
2244
|
-
} =
|
|
2244
|
+
} = ve.current, {
|
|
2245
2245
|
active: ae,
|
|
2246
2246
|
activatorEvent: ce,
|
|
2247
2247
|
collisions: Ue,
|
|
@@ -2281,12 +2281,12 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2281
2281
|
return;
|
|
2282
2282
|
const {
|
|
2283
2283
|
onDragOver: le
|
|
2284
|
-
} =
|
|
2284
|
+
} = ve.current, Ae = Ue.get(lo), ht = Ae && Ae.rect.current ? {
|
|
2285
2285
|
id: Ae.id,
|
|
2286
2286
|
rect: Ae.rect.current,
|
|
2287
2287
|
data: Ae.data,
|
|
2288
2288
|
disabled: Ae.disabled
|
|
2289
|
-
} : null,
|
|
2289
|
+
} : null, X = {
|
|
2290
2290
|
active: Z,
|
|
2291
2291
|
activatorEvent: ae,
|
|
2292
2292
|
collisions: ce,
|
|
@@ -2297,9 +2297,9 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2297
2297
|
over: ht
|
|
2298
2298
|
};
|
|
2299
2299
|
Kt(() => {
|
|
2300
|
-
uo(ht), le == null || le(
|
|
2300
|
+
uo(ht), le == null || le(X), C({
|
|
2301
2301
|
type: "onDragOver",
|
|
2302
|
-
event:
|
|
2302
|
+
event: X
|
|
2303
2303
|
});
|
|
2304
2304
|
});
|
|
2305
2305
|
},
|
|
@@ -2312,11 +2312,11 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2312
2312
|
activeNode: F,
|
|
2313
2313
|
collisionRect: dt,
|
|
2314
2314
|
collisions: Ct,
|
|
2315
|
-
droppableRects:
|
|
2315
|
+
droppableRects: me,
|
|
2316
2316
|
draggableNodes: N,
|
|
2317
2317
|
draggingNode: ct,
|
|
2318
2318
|
draggingNodeRect: lt,
|
|
2319
|
-
droppableContainers:
|
|
2319
|
+
droppableContainers: z,
|
|
2320
2320
|
over: We,
|
|
2321
2321
|
scrollableAncestors: He,
|
|
2322
2322
|
scrollAdjustedTranslate: ut
|
|
@@ -2324,8 +2324,8 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2324
2324
|
initial: lt,
|
|
2325
2325
|
translated: dt
|
|
2326
2326
|
};
|
|
2327
|
-
}, [P, F, Ct, dt, N, ct, lt,
|
|
2328
|
-
...
|
|
2327
|
+
}, [P, F, Ct, dt, N, ct, lt, me, z, We, He, ut]), Os({
|
|
2328
|
+
...je,
|
|
2329
2329
|
delta: O,
|
|
2330
2330
|
draggingRect: dt,
|
|
2331
2331
|
pointerCoordinates: ao,
|
|
@@ -2335,36 +2335,36 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2335
2335
|
const Er = H(() => ({
|
|
2336
2336
|
active: P,
|
|
2337
2337
|
activeNode: F,
|
|
2338
|
-
activeNodeRect:
|
|
2338
|
+
activeNodeRect: j,
|
|
2339
2339
|
activatorEvent: I,
|
|
2340
2340
|
collisions: Ct,
|
|
2341
|
-
containerNodeRect:
|
|
2341
|
+
containerNodeRect: wt,
|
|
2342
2342
|
dragOverlay: Re,
|
|
2343
2343
|
draggableNodes: N,
|
|
2344
|
-
droppableContainers:
|
|
2345
|
-
droppableRects:
|
|
2344
|
+
droppableContainers: z,
|
|
2345
|
+
droppableRects: me,
|
|
2346
2346
|
over: We,
|
|
2347
2347
|
measureDroppableContainers: xe,
|
|
2348
2348
|
scrollableAncestors: He,
|
|
2349
2349
|
scrollableAncestorRects: Ut,
|
|
2350
2350
|
measuringConfiguration: Q,
|
|
2351
2351
|
measuringScheduled: Qe,
|
|
2352
|
-
windowRect:
|
|
2353
|
-
}), [P, F,
|
|
2352
|
+
windowRect: vn
|
|
2353
|
+
}), [P, F, j, I, Ct, wt, Re, N, z, me, We, xe, He, Ut, Q, Qe, vn]), Br = H(() => ({
|
|
2354
2354
|
activatorEvent: I,
|
|
2355
2355
|
activators: fo,
|
|
2356
2356
|
active: P,
|
|
2357
|
-
activeNodeRect:
|
|
2357
|
+
activeNodeRect: j,
|
|
2358
2358
|
ariaDescribedById: {
|
|
2359
|
-
draggable:
|
|
2359
|
+
draggable: ze
|
|
2360
2360
|
},
|
|
2361
2361
|
dispatch: b,
|
|
2362
2362
|
draggableNodes: N,
|
|
2363
2363
|
over: We,
|
|
2364
2364
|
measureDroppableContainers: xe
|
|
2365
|
-
}), [I, fo, P,
|
|
2366
|
-
return A.createElement(
|
|
2367
|
-
value:
|
|
2365
|
+
}), [I, fo, P, j, b, ze, N, We, xe]);
|
|
2366
|
+
return A.createElement(Go.Provider, {
|
|
2367
|
+
value: v
|
|
2368
2368
|
}, A.createElement(pn.Provider, {
|
|
2369
2369
|
value: Br
|
|
2370
2370
|
}, A.createElement(ir.Provider, {
|
|
@@ -2375,7 +2375,7 @@ const ci = /* @__PURE__ */ Mr(function(t) {
|
|
|
2375
2375
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
2376
2376
|
})), A.createElement(ss, {
|
|
2377
2377
|
...a,
|
|
2378
|
-
hiddenTextDescribedById:
|
|
2378
|
+
hiddenTextDescribedById: ze
|
|
2379
2379
|
}));
|
|
2380
2380
|
function Ir() {
|
|
2381
2381
|
const Z = (W == null ? void 0 : W.autoScrollEnabled) === !1, ae = typeof l == "object" ? l.enabled === !1 : l === !1, ce = S && !Z && !ae;
|
|
@@ -2404,9 +2404,9 @@ function di(e) {
|
|
|
2404
2404
|
over: p
|
|
2405
2405
|
} = nt(pn), {
|
|
2406
2406
|
role: g = ko,
|
|
2407
|
-
roleDescription:
|
|
2407
|
+
roleDescription: y = "draggable",
|
|
2408
2408
|
tabIndex: h = 0
|
|
2409
|
-
} = r ?? {},
|
|
2409
|
+
} = r ?? {}, m = (l == null ? void 0 : l.id) === t, b = nt(m ? ar : li), [C, v] = rn(), [k, x] = rn(), S = Gs(i, t), _ = Ot(n);
|
|
2410
2410
|
Te(
|
|
2411
2411
|
() => (f.set(t, {
|
|
2412
2412
|
id: t,
|
|
@@ -2425,20 +2425,20 @@ function di(e) {
|
|
|
2425
2425
|
role: g,
|
|
2426
2426
|
tabIndex: h,
|
|
2427
2427
|
"aria-disabled": o,
|
|
2428
|
-
"aria-pressed":
|
|
2429
|
-
"aria-roledescription":
|
|
2428
|
+
"aria-pressed": m && g === ko ? !0 : void 0,
|
|
2429
|
+
"aria-roledescription": y,
|
|
2430
2430
|
"aria-describedby": u.draggable
|
|
2431
|
-
}), [o, g, h,
|
|
2431
|
+
}), [o, g, h, m, y, u.draggable]);
|
|
2432
2432
|
return {
|
|
2433
2433
|
active: l,
|
|
2434
2434
|
activatorEvent: a,
|
|
2435
2435
|
activeNodeRect: d,
|
|
2436
2436
|
attributes: N,
|
|
2437
|
-
isDragging:
|
|
2437
|
+
isDragging: m,
|
|
2438
2438
|
listeners: o ? void 0 : S,
|
|
2439
2439
|
node: C,
|
|
2440
2440
|
over: p,
|
|
2441
|
-
setNodeRef:
|
|
2441
|
+
setNodeRef: v,
|
|
2442
2442
|
setActivatorNodeRef: x,
|
|
2443
2443
|
transform: b
|
|
2444
2444
|
};
|
|
@@ -2464,9 +2464,9 @@ function pi(e) {
|
|
|
2464
2464
|
} = nt(pn), u = V({
|
|
2465
2465
|
disabled: n
|
|
2466
2466
|
}), f = V(!1), p = V(null), g = V(null), {
|
|
2467
|
-
disabled:
|
|
2467
|
+
disabled: y,
|
|
2468
2468
|
updateMeasurementsFor: h,
|
|
2469
|
-
timeout:
|
|
2469
|
+
timeout: m
|
|
2470
2470
|
} = {
|
|
2471
2471
|
...gi,
|
|
2472
2472
|
...r
|
|
@@ -2478,21 +2478,21 @@ function pi(e) {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
2480
2480
|
d(Array.isArray(b.current) ? b.current : [b.current]), g.current = null;
|
|
2481
|
-
},
|
|
2481
|
+
}, m);
|
|
2482
2482
|
},
|
|
2483
2483
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2484
|
-
[
|
|
2485
|
-
),
|
|
2484
|
+
[m]
|
|
2485
|
+
), v = gn({
|
|
2486
2486
|
callback: C,
|
|
2487
|
-
disabled:
|
|
2487
|
+
disabled: y || !i
|
|
2488
2488
|
}), k = te((N, O) => {
|
|
2489
|
-
|
|
2490
|
-
}, [
|
|
2489
|
+
v && (O && (v.unobserve(O), f.current = !1), N && v.observe(N));
|
|
2490
|
+
}, [v]), [x, S] = rn(k), _ = Ot(t);
|
|
2491
2491
|
return U(() => {
|
|
2492
|
-
!
|
|
2493
|
-
}, [x,
|
|
2492
|
+
!v || !x.current || (v.disconnect(), f.current = !1, v.observe(x.current));
|
|
2493
|
+
}, [x, v]), U(
|
|
2494
2494
|
() => (a({
|
|
2495
|
-
type:
|
|
2495
|
+
type: q.RegisterDroppable,
|
|
2496
2496
|
element: {
|
|
2497
2497
|
id: o,
|
|
2498
2498
|
key: s,
|
|
@@ -2502,7 +2502,7 @@ function pi(e) {
|
|
|
2502
2502
|
data: _
|
|
2503
2503
|
}
|
|
2504
2504
|
}), () => a({
|
|
2505
|
-
type:
|
|
2505
|
+
type: q.UnregisterDroppable,
|
|
2506
2506
|
key: s,
|
|
2507
2507
|
id: o
|
|
2508
2508
|
})),
|
|
@@ -2510,7 +2510,7 @@ function pi(e) {
|
|
|
2510
2510
|
[o]
|
|
2511
2511
|
), U(() => {
|
|
2512
2512
|
n !== u.current.disabled && (a({
|
|
2513
|
-
type:
|
|
2513
|
+
type: q.SetDroppableDisabled,
|
|
2514
2514
|
id: o,
|
|
2515
2515
|
key: s,
|
|
2516
2516
|
disabled: n
|
|
@@ -2528,16 +2528,16 @@ function cr(e, t, n) {
|
|
|
2528
2528
|
const o = e.slice();
|
|
2529
2529
|
return o.splice(n < 0 ? o.length + n : n, 0, o.splice(t, 1)[0]), o;
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function vi(e, t) {
|
|
2532
2532
|
return e.reduce((n, o, r) => {
|
|
2533
2533
|
const s = t.get(o);
|
|
2534
2534
|
return s && (n[r] = s), n;
|
|
2535
2535
|
}, Array(e.length));
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function qt(e) {
|
|
2538
2538
|
return e !== null && e >= 0;
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function mi(e, t) {
|
|
2541
2541
|
if (e === t)
|
|
2542
2542
|
return !0;
|
|
2543
2543
|
if (e.length !== t.length)
|
|
@@ -2567,7 +2567,7 @@ const lr = (e) => {
|
|
|
2567
2567
|
scaleX: a.width / i.width,
|
|
2568
2568
|
scaleY: a.height / i.height
|
|
2569
2569
|
};
|
|
2570
|
-
},
|
|
2570
|
+
}, Gt = {
|
|
2571
2571
|
scaleX: 1,
|
|
2572
2572
|
scaleY: 1
|
|
2573
2573
|
}, _i = (e) => {
|
|
@@ -2587,25 +2587,25 @@ const lr = (e) => {
|
|
|
2587
2587
|
return d ? {
|
|
2588
2588
|
x: 0,
|
|
2589
2589
|
y: n < i ? d.top + d.height - (a.top + a.height) : d.top - a.top,
|
|
2590
|
-
...
|
|
2590
|
+
...Gt
|
|
2591
2591
|
} : null;
|
|
2592
2592
|
}
|
|
2593
|
-
const l =
|
|
2593
|
+
const l = yi(s, r, n);
|
|
2594
2594
|
return r > n && r <= i ? {
|
|
2595
2595
|
x: 0,
|
|
2596
2596
|
y: -a.height - l,
|
|
2597
|
-
...
|
|
2597
|
+
...Gt
|
|
2598
2598
|
} : r < n && r >= i ? {
|
|
2599
2599
|
x: 0,
|
|
2600
2600
|
y: a.height + l,
|
|
2601
|
-
...
|
|
2601
|
+
...Gt
|
|
2602
2602
|
} : {
|
|
2603
2603
|
x: 0,
|
|
2604
2604
|
y: 0,
|
|
2605
|
-
...
|
|
2605
|
+
...Gt
|
|
2606
2606
|
};
|
|
2607
2607
|
};
|
|
2608
|
-
function
|
|
2608
|
+
function yi(e, t, n) {
|
|
2609
2609
|
const o = e[t], r = e[t - 1], s = e[t + 1];
|
|
2610
2610
|
return o ? n < t ? r ? o.top - (r.top + r.height) : s ? s.top - (o.top + o.height) : 0 : s ? s.top - (o.top + o.height) : r ? o.top - (r.top + r.height) : 0 : 0;
|
|
2611
2611
|
}
|
|
@@ -2623,7 +2623,7 @@ const ur = "Sortable", dr = /* @__PURE__ */ A.createContext({
|
|
|
2623
2623
|
droppable: !1
|
|
2624
2624
|
}
|
|
2625
2625
|
});
|
|
2626
|
-
function
|
|
2626
|
+
function wi(e) {
|
|
2627
2627
|
let {
|
|
2628
2628
|
children: t,
|
|
2629
2629
|
id: n,
|
|
@@ -2637,10 +2637,10 @@ function yi(e) {
|
|
|
2637
2637
|
droppableRects: l,
|
|
2638
2638
|
over: d,
|
|
2639
2639
|
measureDroppableContainers: u
|
|
2640
|
-
} = hi(), f = Ht(ur, n), p = a.rect !== null, g = H(() => o.map((S) => typeof S == "object" && "id" in S ? S.id : S), [o]),
|
|
2640
|
+
} = hi(), f = Ht(ur, n), p = a.rect !== null, g = H(() => o.map((S) => typeof S == "object" && "id" in S ? S.id : S), [o]), y = i != null, h = i ? g.indexOf(i.id) : -1, m = d ? g.indexOf(d.id) : -1, b = V(g), C = !mi(g, b.current), v = m !== -1 && h === -1 || C, k = bi(s);
|
|
2641
2641
|
Te(() => {
|
|
2642
|
-
C &&
|
|
2643
|
-
}, [C, g,
|
|
2642
|
+
C && y && u(g);
|
|
2643
|
+
}, [C, g, y, u]), U(() => {
|
|
2644
2644
|
b.current = g;
|
|
2645
2645
|
}, [g]);
|
|
2646
2646
|
const x = H(
|
|
@@ -2648,15 +2648,15 @@ function yi(e) {
|
|
|
2648
2648
|
activeIndex: h,
|
|
2649
2649
|
containerId: f,
|
|
2650
2650
|
disabled: k,
|
|
2651
|
-
disableTransforms:
|
|
2651
|
+
disableTransforms: v,
|
|
2652
2652
|
items: g,
|
|
2653
|
-
overIndex:
|
|
2653
|
+
overIndex: m,
|
|
2654
2654
|
useDragOverlay: p,
|
|
2655
|
-
sortedRects:
|
|
2655
|
+
sortedRects: vi(g, l),
|
|
2656
2656
|
strategy: r
|
|
2657
2657
|
}),
|
|
2658
2658
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2659
|
-
[h, f, k.draggable, k.droppable,
|
|
2659
|
+
[h, f, k.draggable, k.droppable, v, g, m, l, p, r]
|
|
2660
2660
|
);
|
|
2661
2661
|
return A.createElement(dr.Provider, {
|
|
2662
2662
|
value: x
|
|
@@ -2738,12 +2738,12 @@ function Di(e) {
|
|
|
2738
2738
|
containerId: f,
|
|
2739
2739
|
activeIndex: p,
|
|
2740
2740
|
disabled: g,
|
|
2741
|
-
disableTransforms:
|
|
2741
|
+
disableTransforms: y,
|
|
2742
2742
|
sortedRects: h,
|
|
2743
|
-
overIndex:
|
|
2743
|
+
overIndex: m,
|
|
2744
2744
|
useDragOverlay: b,
|
|
2745
2745
|
strategy: C
|
|
2746
|
-
} = nt(dr),
|
|
2746
|
+
} = nt(dr), v = Ei(o, g), k = u.indexOf(i), x = H(() => ({
|
|
2747
2747
|
sortable: {
|
|
2748
2748
|
containerId: f,
|
|
2749
2749
|
index: k,
|
|
@@ -2754,11 +2754,11 @@ function Di(e) {
|
|
|
2754
2754
|
rect: _,
|
|
2755
2755
|
node: N,
|
|
2756
2756
|
isOver: O,
|
|
2757
|
-
setNodeRef:
|
|
2757
|
+
setNodeRef: z
|
|
2758
2758
|
} = pi({
|
|
2759
2759
|
id: i,
|
|
2760
2760
|
data: x,
|
|
2761
|
-
disabled:
|
|
2761
|
+
disabled: v.droppable,
|
|
2762
2762
|
resizeObserverConfig: {
|
|
2763
2763
|
updateMeasurementsFor: S,
|
|
2764
2764
|
...l
|
|
@@ -2772,8 +2772,8 @@ function Di(e) {
|
|
|
2772
2772
|
listeners: oe,
|
|
2773
2773
|
isDragging: I,
|
|
2774
2774
|
over: K,
|
|
2775
|
-
setActivatorNodeRef:
|
|
2776
|
-
transform:
|
|
2775
|
+
setActivatorNodeRef: ve,
|
|
2776
|
+
transform: ze
|
|
2777
2777
|
} = di({
|
|
2778
2778
|
id: i,
|
|
2779
2779
|
data: x,
|
|
@@ -2781,24 +2781,24 @@ function Di(e) {
|
|
|
2781
2781
|
...Ai,
|
|
2782
2782
|
...n
|
|
2783
2783
|
},
|
|
2784
|
-
disabled:
|
|
2785
|
-
}), st = Kr(
|
|
2784
|
+
disabled: v.draggable
|
|
2785
|
+
}), st = Kr(z, W), Q = !!$, me = Q && !y && qt(p) && qt(m), xe = !b && I, Qe = xe && me ? ze : null, it = me ? Qe ?? (a ?? C)({
|
|
2786
2786
|
rects: h,
|
|
2787
2787
|
activeNodeRect: P,
|
|
2788
2788
|
activeIndex: p,
|
|
2789
|
-
overIndex:
|
|
2789
|
+
overIndex: m,
|
|
2790
2790
|
index: k
|
|
2791
|
-
}) : null,
|
|
2791
|
+
}) : null, je = qt(p) && qt(m) ? s({
|
|
2792
2792
|
id: i,
|
|
2793
2793
|
items: u,
|
|
2794
2794
|
activeIndex: p,
|
|
2795
|
-
overIndex:
|
|
2796
|
-
}) : k, Me = $ == null ? void 0 : $.id,
|
|
2795
|
+
overIndex: m
|
|
2796
|
+
}) : k, Me = $ == null ? void 0 : $.id, j = V({
|
|
2797
2797
|
activeId: Me,
|
|
2798
2798
|
items: u,
|
|
2799
|
-
newIndex:
|
|
2799
|
+
newIndex: je,
|
|
2800
2800
|
containerId: f
|
|
2801
|
-
}),
|
|
2801
|
+
}), wt = u !== j.current.items, ke = t({
|
|
2802
2802
|
active: $,
|
|
2803
2803
|
containerId: f,
|
|
2804
2804
|
isDragging: I,
|
|
@@ -2806,11 +2806,11 @@ function Di(e) {
|
|
|
2806
2806
|
id: i,
|
|
2807
2807
|
index: k,
|
|
2808
2808
|
items: u,
|
|
2809
|
-
newIndex:
|
|
2810
|
-
previousItems:
|
|
2811
|
-
previousContainerId:
|
|
2809
|
+
newIndex: j.current.newIndex,
|
|
2810
|
+
previousItems: j.current.items,
|
|
2811
|
+
previousContainerId: j.current.containerId,
|
|
2812
2812
|
transition: d,
|
|
2813
|
-
wasDragging:
|
|
2813
|
+
wasDragging: j.current.activeId != null
|
|
2814
2814
|
}), at = Ni({
|
|
2815
2815
|
disabled: !ke,
|
|
2816
2816
|
index: k,
|
|
@@ -2818,16 +2818,16 @@ function Di(e) {
|
|
|
2818
2818
|
rect: _
|
|
2819
2819
|
});
|
|
2820
2820
|
return U(() => {
|
|
2821
|
-
Q &&
|
|
2822
|
-
}, [Q,
|
|
2823
|
-
if (Me ===
|
|
2821
|
+
Q && j.current.newIndex !== je && (j.current.newIndex = je), f !== j.current.containerId && (j.current.containerId = f), u !== j.current.items && (j.current.items = u);
|
|
2822
|
+
}, [Q, je, f, u]), U(() => {
|
|
2823
|
+
if (Me === j.current.activeId)
|
|
2824
2824
|
return;
|
|
2825
|
-
if (Me != null &&
|
|
2826
|
-
|
|
2825
|
+
if (Me != null && j.current.activeId == null) {
|
|
2826
|
+
j.current.activeId = Me;
|
|
2827
2827
|
return;
|
|
2828
2828
|
}
|
|
2829
2829
|
const ct = setTimeout(() => {
|
|
2830
|
-
|
|
2830
|
+
j.current.activeId = Me;
|
|
2831
2831
|
}, 50);
|
|
2832
2832
|
return () => clearTimeout(ct);
|
|
2833
2833
|
}, [Me]), {
|
|
@@ -2837,18 +2837,18 @@ function Di(e) {
|
|
|
2837
2837
|
data: x,
|
|
2838
2838
|
rect: _,
|
|
2839
2839
|
index: k,
|
|
2840
|
-
newIndex:
|
|
2840
|
+
newIndex: je,
|
|
2841
2841
|
items: u,
|
|
2842
2842
|
isOver: O,
|
|
2843
2843
|
isSorting: Q,
|
|
2844
2844
|
isDragging: I,
|
|
2845
2845
|
listeners: oe,
|
|
2846
2846
|
node: N,
|
|
2847
|
-
overIndex:
|
|
2847
|
+
overIndex: m,
|
|
2848
2848
|
over: K,
|
|
2849
2849
|
setNodeRef: st,
|
|
2850
|
-
setActivatorNodeRef:
|
|
2851
|
-
setDroppableNodeRef:
|
|
2850
|
+
setActivatorNodeRef: ve,
|
|
2851
|
+
setDroppableNodeRef: z,
|
|
2852
2852
|
setDraggableNodeRef: W,
|
|
2853
2853
|
transform: at ?? it,
|
|
2854
2854
|
transition: Re()
|
|
@@ -2857,7 +2857,7 @@ function Di(e) {
|
|
|
2857
2857
|
if (
|
|
2858
2858
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
2859
2859
|
at || // Or to prevent items jumping to back to their "new" position when items change
|
|
2860
|
-
|
|
2860
|
+
wt && j.current.newIndex === k
|
|
2861
2861
|
)
|
|
2862
2862
|
return ki;
|
|
2863
2863
|
if (!(xe && !Zn(T) || !d) && (Q || ke))
|
|
@@ -2921,7 +2921,7 @@ class Fi {
|
|
|
2921
2921
|
this._keys = [], this._keyMap = {};
|
|
2922
2922
|
let n = 0;
|
|
2923
2923
|
t.forEach((o) => {
|
|
2924
|
-
let r =
|
|
2924
|
+
let r = vr(o);
|
|
2925
2925
|
this._keys.push(r), this._keyMap[r.id] = r, n += r.weight;
|
|
2926
2926
|
}), this._keys.forEach((o) => {
|
|
2927
2927
|
o.weight /= n;
|
|
@@ -2937,7 +2937,7 @@ class Fi {
|
|
|
2937
2937
|
return JSON.stringify(this._keys);
|
|
2938
2938
|
}
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function vr(e) {
|
|
2941
2941
|
let t = null, n = null, o = null, r = 1, s = null;
|
|
2942
2942
|
if (Ie(e) || Le(e))
|
|
2943
2943
|
o = e, t = No(e), n = Ln(e);
|
|
@@ -2957,7 +2957,7 @@ function No(e) {
|
|
|
2957
2957
|
function Ln(e) {
|
|
2958
2958
|
return Le(e) ? e.join(".") : e;
|
|
2959
2959
|
}
|
|
2960
|
-
function
|
|
2960
|
+
function zi(e, t) {
|
|
2961
2961
|
let n = [], o = !1;
|
|
2962
2962
|
const r = (s, i, a) => {
|
|
2963
2963
|
if (de(s))
|
|
@@ -2979,7 +2979,7 @@ function ji(e, t) {
|
|
|
2979
2979
|
};
|
|
2980
2980
|
return r(e, Ie(t) ? t.split(".") : t, 0), o ? n : n[0];
|
|
2981
2981
|
}
|
|
2982
|
-
const
|
|
2982
|
+
const ji = {
|
|
2983
2983
|
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
2984
2984
|
// set will include the indices of the matched characters.
|
|
2985
2985
|
// These can consequently be used for highlighting purposes.
|
|
@@ -3020,7 +3020,7 @@ const zi = {
|
|
|
3020
3020
|
useExtendedSearch: !1,
|
|
3021
3021
|
// The get function to use when fetching an object's properties.
|
|
3022
3022
|
// The default will search nested paths *ie foo.bar.baz*
|
|
3023
|
-
getFn:
|
|
3023
|
+
getFn: zi,
|
|
3024
3024
|
// When `true`, search will ignore `location` and `distance`, so it won't matter
|
|
3025
3025
|
// where in the string the pattern appears.
|
|
3026
3026
|
// More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
|
|
@@ -3034,7 +3034,7 @@ const zi = {
|
|
|
3034
3034
|
};
|
|
3035
3035
|
var E = {
|
|
3036
3036
|
...Hi,
|
|
3037
|
-
...
|
|
3037
|
+
...ji,
|
|
3038
3038
|
...Wi,
|
|
3039
3039
|
...Ui
|
|
3040
3040
|
};
|
|
@@ -3149,15 +3149,15 @@ class ro {
|
|
|
3149
3149
|
};
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function mr(e, t, { getFn: n = E.getFn, fieldNormWeight: o = E.fieldNormWeight } = {}) {
|
|
3153
3153
|
const r = new ro({ getFn: n, fieldNormWeight: o });
|
|
3154
|
-
return r.setKeys(e.map(
|
|
3154
|
+
return r.setKeys(e.map(vr)), r.setSources(t), r.create(), r;
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function qi(e, { getFn: t = E.getFn, fieldNormWeight: n = E.fieldNormWeight } = {}) {
|
|
3157
3157
|
const { keys: o, records: r } = e, s = new ro({ getFn: t, fieldNormWeight: n });
|
|
3158
3158
|
return s.setKeys(o), s.setIndexRecords(r), s;
|
|
3159
3159
|
}
|
|
3160
|
-
function
|
|
3160
|
+
function Yt(e, {
|
|
3161
3161
|
errors: t = 0,
|
|
3162
3162
|
currentLocation: n = 0,
|
|
3163
3163
|
expectedLocation: o = 0,
|
|
@@ -3170,7 +3170,7 @@ function Xt(e, {
|
|
|
3170
3170
|
const a = Math.abs(o - n);
|
|
3171
3171
|
return r ? i + a / r : a ? 1 : i;
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function Gi(e = [], t = E.minMatchCharLength) {
|
|
3174
3174
|
let n = [], o = -1, r = -1, s = 0;
|
|
3175
3175
|
for (let i = e.length; s < i; s += 1) {
|
|
3176
3176
|
let a = e[s];
|
|
@@ -3179,7 +3179,7 @@ function Yi(e = [], t = E.minMatchCharLength) {
|
|
|
3179
3179
|
return e[s - 1] && s - o >= t && n.push([o, s - 1]), n;
|
|
3180
3180
|
}
|
|
3181
3181
|
const et = 32;
|
|
3182
|
-
function
|
|
3182
|
+
function Yi(e, t, n, {
|
|
3183
3183
|
location: o = E.location,
|
|
3184
3184
|
distance: r = E.distance,
|
|
3185
3185
|
threshold: s = E.threshold,
|
|
@@ -3191,29 +3191,29 @@ function Xi(e, t, n, {
|
|
|
3191
3191
|
if (t.length > et)
|
|
3192
3192
|
throw new Error($i(et));
|
|
3193
3193
|
const u = t.length, f = e.length, p = Math.max(0, Math.min(o, f));
|
|
3194
|
-
let g = s,
|
|
3195
|
-
const h = a > 1 || l,
|
|
3194
|
+
let g = s, y = p;
|
|
3195
|
+
const h = a > 1 || l, m = h ? Array(f) : [];
|
|
3196
3196
|
let b;
|
|
3197
|
-
for (; (b = e.indexOf(t,
|
|
3198
|
-
let _ =
|
|
3197
|
+
for (; (b = e.indexOf(t, y)) > -1; ) {
|
|
3198
|
+
let _ = Yt(t, {
|
|
3199
3199
|
currentLocation: b,
|
|
3200
3200
|
expectedLocation: p,
|
|
3201
3201
|
distance: r,
|
|
3202
3202
|
ignoreLocation: d
|
|
3203
3203
|
});
|
|
3204
|
-
if (g = Math.min(_, g),
|
|
3204
|
+
if (g = Math.min(_, g), y = b + u, h) {
|
|
3205
3205
|
let N = 0;
|
|
3206
3206
|
for (; N < u; )
|
|
3207
|
-
|
|
3207
|
+
m[b + N] = 1, N += 1;
|
|
3208
3208
|
}
|
|
3209
3209
|
}
|
|
3210
|
-
|
|
3211
|
-
let C = [],
|
|
3210
|
+
y = -1;
|
|
3211
|
+
let C = [], v = 1, k = u + f;
|
|
3212
3212
|
const x = 1 << u - 1;
|
|
3213
3213
|
for (let _ = 0; _ < u; _ += 1) {
|
|
3214
3214
|
let N = 0, O = k;
|
|
3215
3215
|
for (; N < O; )
|
|
3216
|
-
|
|
3216
|
+
Yt(t, {
|
|
3217
3217
|
errors: _,
|
|
3218
3218
|
currentLocation: p + O,
|
|
3219
3219
|
expectedLocation: p,
|
|
@@ -3221,23 +3221,23 @@ function Xi(e, t, n, {
|
|
|
3221
3221
|
ignoreLocation: d
|
|
3222
3222
|
}) <= g ? N = O : k = O, O = Math.floor((k - N) / 2 + N);
|
|
3223
3223
|
k = O;
|
|
3224
|
-
let
|
|
3224
|
+
let z = Math.max(1, p - O + 1), $ = i ? f : Math.min(p + O, f) + u, T = Array($ + 2);
|
|
3225
3225
|
T[$ + 1] = (1 << _) - 1;
|
|
3226
|
-
for (let M = $; M >=
|
|
3226
|
+
for (let M = $; M >= z; M -= 1) {
|
|
3227
3227
|
let W = M - 1, oe = n[e.charAt(W)];
|
|
3228
|
-
if (h && (
|
|
3228
|
+
if (h && (m[W] = +!!oe), T[M] = (T[M + 1] << 1 | 1) & oe, _ && (T[M] |= (C[M + 1] | C[M]) << 1 | 1 | C[M + 1]), T[M] & x && (v = Yt(t, {
|
|
3229
3229
|
errors: _,
|
|
3230
3230
|
currentLocation: W,
|
|
3231
3231
|
expectedLocation: p,
|
|
3232
3232
|
distance: r,
|
|
3233
3233
|
ignoreLocation: d
|
|
3234
|
-
}),
|
|
3235
|
-
if (g =
|
|
3234
|
+
}), v <= g)) {
|
|
3235
|
+
if (g = v, y = W, y <= p)
|
|
3236
3236
|
break;
|
|
3237
|
-
|
|
3237
|
+
z = Math.max(1, 2 * p - y);
|
|
3238
3238
|
}
|
|
3239
3239
|
}
|
|
3240
|
-
if (
|
|
3240
|
+
if (Yt(t, {
|
|
3241
3241
|
errors: _ + 1,
|
|
3242
3242
|
currentLocation: p,
|
|
3243
3243
|
expectedLocation: p,
|
|
@@ -3248,17 +3248,17 @@ function Xi(e, t, n, {
|
|
|
3248
3248
|
C = T;
|
|
3249
3249
|
}
|
|
3250
3250
|
const S = {
|
|
3251
|
-
isMatch:
|
|
3251
|
+
isMatch: y >= 0,
|
|
3252
3252
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
3253
|
-
score: Math.max(1e-3,
|
|
3253
|
+
score: Math.max(1e-3, v)
|
|
3254
3254
|
};
|
|
3255
3255
|
if (h) {
|
|
3256
|
-
const _ =
|
|
3256
|
+
const _ = Gi(m, a);
|
|
3257
3257
|
_.length ? l && (S.indices = _) : S.isMatch = !1;
|
|
3258
3258
|
}
|
|
3259
3259
|
return S;
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3261
|
+
function Xi(e) {
|
|
3262
3262
|
let t = {};
|
|
3263
3263
|
for (let n = 0, o = e.length; n < o; n += 1) {
|
|
3264
3264
|
const r = e.charAt(n);
|
|
@@ -3291,21 +3291,21 @@ class br {
|
|
|
3291
3291
|
ignoreLocation: u
|
|
3292
3292
|
}, t = l ? t : t.toLowerCase(), t = d ? ln(t) : t, this.pattern = t, this.chunks = [], !this.pattern.length)
|
|
3293
3293
|
return;
|
|
3294
|
-
const f = (g,
|
|
3294
|
+
const f = (g, y) => {
|
|
3295
3295
|
this.chunks.push({
|
|
3296
3296
|
pattern: g,
|
|
3297
|
-
alphabet:
|
|
3298
|
-
startIndex:
|
|
3297
|
+
alphabet: Xi(g),
|
|
3298
|
+
startIndex: y
|
|
3299
3299
|
});
|
|
3300
3300
|
}, p = this.pattern.length;
|
|
3301
3301
|
if (p > et) {
|
|
3302
3302
|
let g = 0;
|
|
3303
|
-
const
|
|
3303
|
+
const y = p % et, h = p - y;
|
|
3304
3304
|
for (; g < h; )
|
|
3305
3305
|
f(this.pattern.substr(g, et), g), g += et;
|
|
3306
|
-
if (
|
|
3307
|
-
const
|
|
3308
|
-
f(this.pattern.substr(
|
|
3306
|
+
if (y) {
|
|
3307
|
+
const m = p - et;
|
|
3308
|
+
f(this.pattern.substr(m), m);
|
|
3309
3309
|
}
|
|
3310
3310
|
} else
|
|
3311
3311
|
f(this.pattern, 0);
|
|
@@ -3328,8 +3328,8 @@ class br {
|
|
|
3328
3328
|
ignoreLocation: u
|
|
3329
3329
|
} = this.options;
|
|
3330
3330
|
let f = [], p = 0, g = !1;
|
|
3331
|
-
this.chunks.forEach(({ pattern: h, alphabet:
|
|
3332
|
-
const { isMatch: C, score:
|
|
3331
|
+
this.chunks.forEach(({ pattern: h, alphabet: m, startIndex: b }) => {
|
|
3332
|
+
const { isMatch: C, score: v, indices: k } = Yi(t, h, m, {
|
|
3333
3333
|
location: s + b,
|
|
3334
3334
|
distance: i,
|
|
3335
3335
|
threshold: a,
|
|
@@ -3338,13 +3338,13 @@ class br {
|
|
|
3338
3338
|
includeMatches: r,
|
|
3339
3339
|
ignoreLocation: u
|
|
3340
3340
|
});
|
|
3341
|
-
C && (g = !0), p +=
|
|
3341
|
+
C && (g = !0), p += v, C && k && (f = [...f, ...k]);
|
|
3342
3342
|
});
|
|
3343
|
-
let
|
|
3343
|
+
let y = {
|
|
3344
3344
|
isMatch: g,
|
|
3345
3345
|
score: g ? p / this.chunks.length : 1
|
|
3346
3346
|
};
|
|
3347
|
-
return g && r && (
|
|
3347
|
+
return g && r && (y.indices = f), y;
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
class Je {
|
|
@@ -3533,7 +3533,7 @@ class _r extends Je {
|
|
|
3533
3533
|
return this._bitapSearch.searchIn(t);
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
class
|
|
3536
|
+
class yr extends Je {
|
|
3537
3537
|
constructor(t) {
|
|
3538
3538
|
super(t);
|
|
3539
3539
|
}
|
|
@@ -3561,7 +3561,7 @@ class wr extends Je {
|
|
|
3561
3561
|
}
|
|
3562
3562
|
const Fn = [
|
|
3563
3563
|
Ji,
|
|
3564
|
-
|
|
3564
|
+
yr,
|
|
3565
3565
|
Zi,
|
|
3566
3566
|
ea,
|
|
3567
3567
|
na,
|
|
@@ -3593,7 +3593,7 @@ function sa(e, t = {}) {
|
|
|
3593
3593
|
return r;
|
|
3594
3594
|
});
|
|
3595
3595
|
}
|
|
3596
|
-
const ia = /* @__PURE__ */ new Set([_r.type,
|
|
3596
|
+
const ia = /* @__PURE__ */ new Set([_r.type, yr.type]);
|
|
3597
3597
|
class aa {
|
|
3598
3598
|
constructor(t, {
|
|
3599
3599
|
isCaseSensitive: n = E.isCaseSensitive,
|
|
@@ -3635,11 +3635,11 @@ class aa {
|
|
|
3635
3635
|
const f = n[d];
|
|
3636
3636
|
a.length = 0, i = 0;
|
|
3637
3637
|
for (let p = 0, g = f.length; p < g; p += 1) {
|
|
3638
|
-
const
|
|
3638
|
+
const y = f[p], { isMatch: h, indices: m, score: b } = y.search(t);
|
|
3639
3639
|
if (h) {
|
|
3640
3640
|
if (i += 1, l += b, o) {
|
|
3641
|
-
const C =
|
|
3642
|
-
ia.has(C) ? a = [...a, ...
|
|
3641
|
+
const C = y.constructor.type;
|
|
3642
|
+
ia.has(C) ? a = [...a, ...m] : a.push(m);
|
|
3643
3643
|
}
|
|
3644
3644
|
} else {
|
|
3645
3645
|
l = 0, i = 0, a.length = 0;
|
|
@@ -3660,13 +3660,13 @@ class aa {
|
|
|
3660
3660
|
};
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
|
-
const
|
|
3663
|
+
const zn = [];
|
|
3664
3664
|
function ca(...e) {
|
|
3665
|
-
|
|
3665
|
+
zn.push(...e);
|
|
3666
3666
|
}
|
|
3667
|
-
function
|
|
3668
|
-
for (let n = 0, o =
|
|
3669
|
-
let r =
|
|
3667
|
+
function jn(e, t) {
|
|
3668
|
+
for (let n = 0, o = zn.length; n < o; n += 1) {
|
|
3669
|
+
let r = zn[n];
|
|
3670
3670
|
if (r.condition(e, t))
|
|
3671
3671
|
return new r(e, t);
|
|
3672
3672
|
}
|
|
@@ -3683,7 +3683,7 @@ const un = {
|
|
|
3683
3683
|
[t]: e[t]
|
|
3684
3684
|
}))
|
|
3685
3685
|
});
|
|
3686
|
-
function
|
|
3686
|
+
function wr(e, t, { auto: n = !0 } = {}) {
|
|
3687
3687
|
const o = (r) => {
|
|
3688
3688
|
let s = Object.keys(r);
|
|
3689
3689
|
const i = la(r);
|
|
@@ -3697,7 +3697,7 @@ function yr(e, t, { auto: n = !0 } = {}) {
|
|
|
3697
3697
|
keyId: Ln(l),
|
|
3698
3698
|
pattern: d
|
|
3699
3699
|
};
|
|
3700
|
-
return n && (u.searcher =
|
|
3700
|
+
return n && (u.searcher = jn(d, t)), u;
|
|
3701
3701
|
}
|
|
3702
3702
|
let a = {
|
|
3703
3703
|
children: [],
|
|
@@ -3755,14 +3755,14 @@ function ga(e, t, {
|
|
|
3755
3755
|
}), a;
|
|
3756
3756
|
});
|
|
3757
3757
|
}
|
|
3758
|
-
class
|
|
3758
|
+
class yt {
|
|
3759
3759
|
constructor(t, n = {}, o) {
|
|
3760
3760
|
this.options = { ...E, ...n }, this.options.useExtendedSearch, this._keyStore = new Fi(this.options.keys), this.setCollection(t, o);
|
|
3761
3761
|
}
|
|
3762
3762
|
setCollection(t, n) {
|
|
3763
3763
|
if (this._docs = t, n && !(n instanceof ro))
|
|
3764
3764
|
throw new Error(Ri);
|
|
3765
|
-
this._myIndex = n ||
|
|
3765
|
+
this._myIndex = n || mr(this.options.keys, this._docs, {
|
|
3766
3766
|
getFn: this.options.getFn,
|
|
3767
3767
|
fieldNormWeight: this.options.fieldNormWeight
|
|
3768
3768
|
});
|
|
@@ -3799,7 +3799,7 @@ class wt {
|
|
|
3799
3799
|
});
|
|
3800
3800
|
}
|
|
3801
3801
|
_searchStringList(t) {
|
|
3802
|
-
const n =
|
|
3802
|
+
const n = jn(t, this.options), { records: o } = this._myIndex, r = [];
|
|
3803
3803
|
return o.forEach(({ v: s, i, n: a }) => {
|
|
3804
3804
|
if (!de(s))
|
|
3805
3805
|
return;
|
|
@@ -3812,7 +3812,7 @@ class wt {
|
|
|
3812
3812
|
}), r;
|
|
3813
3813
|
}
|
|
3814
3814
|
_searchLogical(t) {
|
|
3815
|
-
const n =
|
|
3815
|
+
const n = wr(t, this.options), o = (a, l, d) => {
|
|
3816
3816
|
if (!a.children) {
|
|
3817
3817
|
const { keyId: f, searcher: p } = a, g = this._findMatches({
|
|
3818
3818
|
key: this._keyStore.get(f),
|
|
@@ -3829,9 +3829,9 @@ class wt {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
const u = [];
|
|
3831
3831
|
for (let f = 0, p = a.children.length; f < p; f += 1) {
|
|
3832
|
-
const g = a.children[f],
|
|
3833
|
-
if (
|
|
3834
|
-
u.push(...
|
|
3832
|
+
const g = a.children[f], y = o(g, l, d);
|
|
3833
|
+
if (y.length)
|
|
3834
|
+
u.push(...y);
|
|
3835
3835
|
else if (a.operator === un.AND)
|
|
3836
3836
|
return [];
|
|
3837
3837
|
}
|
|
@@ -3847,7 +3847,7 @@ class wt {
|
|
|
3847
3847
|
}), i;
|
|
3848
3848
|
}
|
|
3849
3849
|
_searchObjectList(t) {
|
|
3850
|
-
const n =
|
|
3850
|
+
const n = jn(t, this.options), { keys: o, records: r } = this._myIndex, s = [];
|
|
3851
3851
|
return r.forEach(({ $: i, i: a }) => {
|
|
3852
3852
|
if (!de(i))
|
|
3853
3853
|
return;
|
|
@@ -3892,38 +3892,38 @@ class wt {
|
|
|
3892
3892
|
return r;
|
|
3893
3893
|
}
|
|
3894
3894
|
}
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3895
|
+
yt.version = "7.1.0";
|
|
3896
|
+
yt.createIndex = mr;
|
|
3897
|
+
yt.parseIndex = qi;
|
|
3898
|
+
yt.config = E;
|
|
3899
|
+
yt.parseQuery = wr;
|
|
3900
3900
|
ca(aa);
|
|
3901
|
-
const pa = "_header_2d8xd_1",
|
|
3901
|
+
const pa = "_header_2d8xd_1", va = "_left_2d8xd_13", ma = "_right_2d8xd_14", Xt = {
|
|
3902
3902
|
header: pa,
|
|
3903
|
-
left:
|
|
3904
|
-
right:
|
|
3905
|
-
}, ba = "
|
|
3903
|
+
left: va,
|
|
3904
|
+
right: ma
|
|
3905
|
+
}, ba = "_buttons_12xlr_1", _a = "_button_12xlr_1", ya = "_disabled_12xlr_20", At = {
|
|
3906
3906
|
buttons: ba,
|
|
3907
3907
|
button: _a,
|
|
3908
|
-
disabled:
|
|
3909
|
-
},
|
|
3910
|
-
const { undo: e, redo: t, past: n, future: o } = Po(), [r, s] = A.useState(!1), [i, a] = A.useState(!1), [l, d] = A.useState(!1), [u, f] = A.useState(!1), [p, g] = A.useState(null), { notifications:
|
|
3908
|
+
disabled: ya
|
|
3909
|
+
}, wa = () => {
|
|
3910
|
+
const { undo: e, redo: t, past: n, future: o } = Po(), [r, s] = A.useState(!1), [i, a] = A.useState(!1), [l, d] = A.useState(!1), [u, f] = A.useState(!1), [p, g] = A.useState(null), { notifications: y, setNotifications: h } = Vn();
|
|
3911
3911
|
return A.useEffect(() => {
|
|
3912
3912
|
s(n.length === 0);
|
|
3913
3913
|
}, [n]), A.useEffect(() => {
|
|
3914
3914
|
a(o.length === 0);
|
|
3915
|
-
}, [o]), /* @__PURE__ */
|
|
3916
|
-
/* @__PURE__ */
|
|
3915
|
+
}, [o]), /* @__PURE__ */ w("div", { className: At.buttons, children: [
|
|
3916
|
+
/* @__PURE__ */ w(
|
|
3917
3917
|
"div",
|
|
3918
3918
|
{
|
|
3919
3919
|
className: B(At.button, {
|
|
3920
3920
|
[At.disabled]: r
|
|
3921
3921
|
}),
|
|
3922
3922
|
onMouseEnter: () => {
|
|
3923
|
-
const
|
|
3923
|
+
const m = setTimeout(() => {
|
|
3924
3924
|
f(!0), d(!1);
|
|
3925
3925
|
}, 200);
|
|
3926
|
-
g(
|
|
3926
|
+
g(m);
|
|
3927
3927
|
},
|
|
3928
3928
|
onMouseLeave: () => {
|
|
3929
3929
|
p && clearTimeout(p), f(!1), d(!1);
|
|
@@ -3937,7 +3937,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
3937
3937
|
height: 20,
|
|
3938
3938
|
onClick: () => {
|
|
3939
3939
|
r || (e(), h([
|
|
3940
|
-
...
|
|
3940
|
+
...y,
|
|
3941
3941
|
{
|
|
3942
3942
|
id: tn(),
|
|
3943
3943
|
message: "Changes undone",
|
|
@@ -3948,21 +3948,21 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
3948
3948
|
fill: r ? "#757575" : "#252525"
|
|
3949
3949
|
}
|
|
3950
3950
|
),
|
|
3951
|
-
u && /* @__PURE__ */ c(
|
|
3951
|
+
u && /* @__PURE__ */ c(vt, { text: r ? "Nothing to undo" : "Click to undo changes" })
|
|
3952
3952
|
]
|
|
3953
3953
|
}
|
|
3954
3954
|
),
|
|
3955
|
-
/* @__PURE__ */
|
|
3955
|
+
/* @__PURE__ */ w(
|
|
3956
3956
|
"div",
|
|
3957
3957
|
{
|
|
3958
3958
|
className: B(At.button, {
|
|
3959
3959
|
[At.disabled]: i
|
|
3960
3960
|
}),
|
|
3961
3961
|
onMouseEnter: () => {
|
|
3962
|
-
const
|
|
3962
|
+
const m = setTimeout(() => {
|
|
3963
3963
|
d(!0), f(!1);
|
|
3964
3964
|
}, 200);
|
|
3965
|
-
g(
|
|
3965
|
+
g(m);
|
|
3966
3966
|
},
|
|
3967
3967
|
onMouseLeave: () => {
|
|
3968
3968
|
p && clearTimeout(p), d(!1), f(!1);
|
|
@@ -3976,7 +3976,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
3976
3976
|
height: 20,
|
|
3977
3977
|
onClick: () => {
|
|
3978
3978
|
i || (t(), h([
|
|
3979
|
-
...
|
|
3979
|
+
...y,
|
|
3980
3980
|
{
|
|
3981
3981
|
id: tn(),
|
|
3982
3982
|
message: "Changes redone",
|
|
@@ -3987,7 +3987,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
3987
3987
|
fill: i ? "#757575" : "#252525"
|
|
3988
3988
|
}
|
|
3989
3989
|
),
|
|
3990
|
-
l && /* @__PURE__ */ c(
|
|
3990
|
+
l && /* @__PURE__ */ c(vt, { text: i ? "Nothing to redo" : "Click to redo changes" })
|
|
3991
3991
|
]
|
|
3992
3992
|
}
|
|
3993
3993
|
)
|
|
@@ -3998,7 +3998,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
3998
3998
|
active: xa
|
|
3999
3999
|
}, ka = () => /* @__PURE__ */ c("div", { className: Un.devices, children: Or.map((e) => /* @__PURE__ */ c(Aa, { device: e })) }), Aa = (e) => {
|
|
4000
4000
|
const { device: t } = e, { currentDevice: n, setCurrentDevice: o } = Kn(), [r, s] = A.useState(!1), [i, a] = A.useState(null);
|
|
4001
|
-
return /* @__PURE__ */
|
|
4001
|
+
return /* @__PURE__ */ w(
|
|
4002
4002
|
"div",
|
|
4003
4003
|
{
|
|
4004
4004
|
className: B(Un.device, {
|
|
@@ -4024,17 +4024,17 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4024
4024
|
height: 20
|
|
4025
4025
|
}
|
|
4026
4026
|
),
|
|
4027
|
-
r && /* @__PURE__ */ c(
|
|
4027
|
+
r && /* @__PURE__ */ c(vt, { text: `Switch to ${t.value} view` })
|
|
4028
4028
|
]
|
|
4029
4029
|
},
|
|
4030
4030
|
t.value
|
|
4031
4031
|
);
|
|
4032
|
-
}, Na = "
|
|
4032
|
+
}, Na = "_preview_1hcqg_2", Da = "_active_1hcqg_19", An = {
|
|
4033
4033
|
preview: Na,
|
|
4034
4034
|
active: Da
|
|
4035
4035
|
}, Ea = () => {
|
|
4036
4036
|
const { onPreview: e } = Fe(), [t, n] = A.useState(!1), [o, r] = A.useState(null);
|
|
4037
|
-
return /* @__PURE__ */
|
|
4037
|
+
return /* @__PURE__ */ w(
|
|
4038
4038
|
"a",
|
|
4039
4039
|
{
|
|
4040
4040
|
href: "/",
|
|
@@ -4061,15 +4061,15 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4061
4061
|
}
|
|
4062
4062
|
),
|
|
4063
4063
|
/* @__PURE__ */ c("span", { className: An.text, children: "Preview" }),
|
|
4064
|
-
t && /* @__PURE__ */ c(
|
|
4064
|
+
t && /* @__PURE__ */ c(vt, { text: "Open draft theme in new tab" })
|
|
4065
4065
|
]
|
|
4066
4066
|
}
|
|
4067
4067
|
);
|
|
4068
4068
|
}, Ba = "_settings_u4cv4_1", Ia = {
|
|
4069
4069
|
settings: Ba
|
|
4070
|
-
}, Ta = "
|
|
4070
|
+
}, Ta = "_pages_ws1ac_1", Ma = "_text_ws1ac_21", Ra = "_modal_ws1ac_27", Oa = "_open_ws1ac_46", $a = "_page_ws1ac_1", Pa = "_hoverable_ws1ac_61", La = "_separator_ws1ac_65", Fa = "_button_ws1ac_70", za = "_items_ws1ac_85", be = {
|
|
4071
4071
|
pages: Ta,
|
|
4072
|
-
default: "
|
|
4072
|
+
default: "_default_ws1ac_5",
|
|
4073
4073
|
text: Ma,
|
|
4074
4074
|
modal: Ra,
|
|
4075
4075
|
open: Oa,
|
|
@@ -4077,7 +4077,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4077
4077
|
hoverable: Pa,
|
|
4078
4078
|
separator: La,
|
|
4079
4079
|
button: Fa,
|
|
4080
|
-
items:
|
|
4080
|
+
items: za
|
|
4081
4081
|
}, Cr = async (e) => {
|
|
4082
4082
|
const t = localStorage.getItem("shopId") || void 0, n = localStorage.getItem("draftId"), r = `${Lo.getState().apiUrls.api}/v2/builder/shops/${t}/drafts/${n}/pages/${encodeURIComponent(e)}`;
|
|
4083
4083
|
return await Fo({
|
|
@@ -4085,7 +4085,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4085
4085
|
withToken: !0,
|
|
4086
4086
|
method: "delete"
|
|
4087
4087
|
});
|
|
4088
|
-
},
|
|
4088
|
+
}, ja = () => {
|
|
4089
4089
|
const {
|
|
4090
4090
|
currentPage: e,
|
|
4091
4091
|
setCurrentPage: t,
|
|
@@ -4095,27 +4095,27 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4095
4095
|
setEditedPage: s,
|
|
4096
4096
|
deletePage: i,
|
|
4097
4097
|
setIsOpenSelectModal: a
|
|
4098
|
-
} = J(), { deletePage: l, setCurrentBlock: d } = ne(), [u, f] = A.useState(null), { setTitle: p, setDescription: g, setOnConfirm:
|
|
4098
|
+
} = J(), { deletePage: l, setCurrentBlock: d } = ne(), [u, f] = A.useState(null), { setTitle: p, setDescription: g, setOnConfirm: y } = dn(), [h, m] = A.useState(!1), b = A.useRef(null);
|
|
4099
4099
|
Wr(b, () => {
|
|
4100
|
-
h &&
|
|
4100
|
+
h && m(!1);
|
|
4101
4101
|
}), A.useEffect(() => {
|
|
4102
4102
|
h ? a(!0) : setTimeout(() => {
|
|
4103
4103
|
a(!1);
|
|
4104
4104
|
}, 300);
|
|
4105
4105
|
}, [h]);
|
|
4106
|
-
const C = (
|
|
4107
|
-
return /* @__PURE__ */
|
|
4106
|
+
const C = (v) => v ? v.replace(/_/g, " ").split(" ").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ") : "";
|
|
4107
|
+
return /* @__PURE__ */ w(
|
|
4108
4108
|
"div",
|
|
4109
4109
|
{
|
|
4110
4110
|
className: be.pages,
|
|
4111
4111
|
ref: b,
|
|
4112
4112
|
children: [
|
|
4113
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ w(
|
|
4114
4114
|
"div",
|
|
4115
4115
|
{
|
|
4116
4116
|
className: be.default,
|
|
4117
|
-
onClick: (
|
|
4118
|
-
|
|
4117
|
+
onClick: (v) => {
|
|
4118
|
+
v.stopPropagation(), m((k) => !k);
|
|
4119
4119
|
},
|
|
4120
4120
|
children: [
|
|
4121
4121
|
/* @__PURE__ */ c(
|
|
@@ -4149,26 +4149,26 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4149
4149
|
]
|
|
4150
4150
|
}
|
|
4151
4151
|
),
|
|
4152
|
-
/* @__PURE__ */
|
|
4152
|
+
/* @__PURE__ */ w(
|
|
4153
4153
|
"div",
|
|
4154
4154
|
{
|
|
4155
4155
|
className: B(be.modal, {
|
|
4156
4156
|
[be.open]: h
|
|
4157
4157
|
}),
|
|
4158
|
-
onClick: (
|
|
4158
|
+
onClick: (v) => v.stopPropagation(),
|
|
4159
4159
|
children: [
|
|
4160
|
-
o && /* @__PURE__ */ c("div", { className: be.items, children: Object.keys(o).map((
|
|
4161
|
-
const k = o[
|
|
4162
|
-
return /* @__PURE__ */
|
|
4160
|
+
o && /* @__PURE__ */ c("div", { className: be.items, children: Object.keys(o).map((v) => {
|
|
4161
|
+
const k = o[v];
|
|
4162
|
+
return /* @__PURE__ */ w(
|
|
4163
4163
|
"div",
|
|
4164
4164
|
{
|
|
4165
4165
|
className: B(be.page, {
|
|
4166
|
-
[be.hoverable]: u ===
|
|
4166
|
+
[be.hoverable]: u === v
|
|
4167
4167
|
}),
|
|
4168
|
-
onMouseEnter: () => f(
|
|
4168
|
+
onMouseEnter: () => f(v),
|
|
4169
4169
|
onMouseLeave: () => f(null),
|
|
4170
4170
|
onClick: () => {
|
|
4171
|
-
f(null), r(!1), d(null), t(
|
|
4171
|
+
f(null), r(!1), d(null), t(v), m(!1);
|
|
4172
4172
|
},
|
|
4173
4173
|
children: [
|
|
4174
4174
|
/* @__PURE__ */ c(
|
|
@@ -4179,14 +4179,14 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4179
4179
|
}
|
|
4180
4180
|
),
|
|
4181
4181
|
/* @__PURE__ */ c("span", { className: be.text, children: Bt.includes(k.path) ? `${C(k.name)} page` : k.name }),
|
|
4182
|
-
u ===
|
|
4182
|
+
u === v && /* @__PURE__ */ w(Pe, { children: [
|
|
4183
4183
|
/* @__PURE__ */ c(
|
|
4184
4184
|
R,
|
|
4185
4185
|
{
|
|
4186
4186
|
name: "Gear",
|
|
4187
4187
|
fill: "#757575",
|
|
4188
4188
|
onClick: (x) => {
|
|
4189
|
-
x.stopPropagation(), r(!0), s(
|
|
4189
|
+
x.stopPropagation(), r(!0), s(v), n(!0);
|
|
4190
4190
|
}
|
|
4191
4191
|
}
|
|
4192
4192
|
),
|
|
@@ -4198,8 +4198,8 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4198
4198
|
onClick: (x) => {
|
|
4199
4199
|
x.stopPropagation(), p("Delete Page"), g(
|
|
4200
4200
|
`Are you sure you want to delete ${k.name || "this"} page? Once you delete this page, any content visible will also be deleted. This is irreversible.`
|
|
4201
|
-
),
|
|
4202
|
-
x.stopPropagation(), o[e].path === k.path && t(Object.keys(o)[0]), i(
|
|
4201
|
+
), y(() => {
|
|
4202
|
+
x.stopPropagation(), o[e].path === k.path && t(Object.keys(o)[0]), i(v), l(k.name), Cr(k.path);
|
|
4203
4203
|
});
|
|
4204
4204
|
}
|
|
4205
4205
|
}
|
|
@@ -4214,16 +4214,16 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4214
4214
|
)
|
|
4215
4215
|
]
|
|
4216
4216
|
},
|
|
4217
|
-
|
|
4217
|
+
v
|
|
4218
4218
|
);
|
|
4219
4219
|
}) }),
|
|
4220
4220
|
/* @__PURE__ */ c("div", { className: be.separator }),
|
|
4221
|
-
/* @__PURE__ */
|
|
4222
|
-
|
|
4221
|
+
/* @__PURE__ */ w(
|
|
4222
|
+
Ye,
|
|
4223
4223
|
{
|
|
4224
4224
|
className: be.button,
|
|
4225
|
-
onClick: (
|
|
4226
|
-
|
|
4225
|
+
onClick: (v) => {
|
|
4226
|
+
v.stopPropagation(), n(!0);
|
|
4227
4227
|
},
|
|
4228
4228
|
size: "l",
|
|
4229
4229
|
children: [
|
|
@@ -4248,7 +4248,7 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4248
4248
|
zoom: Ha
|
|
4249
4249
|
}, Wa = () => {
|
|
4250
4250
|
const { zoomLevel: e, setZoomLevel: t } = Fe();
|
|
4251
|
-
return /* @__PURE__ */
|
|
4251
|
+
return /* @__PURE__ */ w(
|
|
4252
4252
|
"label",
|
|
4253
4253
|
{
|
|
4254
4254
|
htmlFor: "zoom",
|
|
@@ -4293,13 +4293,13 @@ const pa = "_header_2d8xd_1", ma = "_left_2d8xd_13", va = "_right_2d8xd_14", qt
|
|
|
4293
4293
|
]
|
|
4294
4294
|
}
|
|
4295
4295
|
);
|
|
4296
|
-
}, Ua = () => /* @__PURE__ */
|
|
4297
|
-
/* @__PURE__ */ c(
|
|
4296
|
+
}, Ua = () => /* @__PURE__ */ w("div", { className: Ia.settings, children: [
|
|
4297
|
+
/* @__PURE__ */ c(ja, {}),
|
|
4298
4298
|
/* @__PURE__ */ c(Wa, {})
|
|
4299
4299
|
] }), Va = "_theme_1e5wq_1", Ka = "_text_1e5wq_13", To = {
|
|
4300
4300
|
theme: Va,
|
|
4301
4301
|
text: Ka
|
|
4302
|
-
},
|
|
4302
|
+
}, qa = () => /* @__PURE__ */ c("div", { className: To.theme, children: /* @__PURE__ */ c("div", { className: To.text, children: "Live Theme" }) }), Ga = async (e, t, n) => {
|
|
4303
4303
|
const o = localStorage.getItem("shopId") || void 0, r = localStorage.getItem("draftId"), i = `${Lo.getState().apiUrls.api}/v2/builder/shops/${o}/drafts/${r}/${t}`;
|
|
4304
4304
|
return await Fo({
|
|
4305
4305
|
url: i,
|
|
@@ -4325,10 +4325,10 @@ function Nt(e, t) {
|
|
|
4325
4325
|
return console.error("Error in getValues function:", n), [];
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4329
|
-
return
|
|
4328
|
+
function Ya(e, t, n) {
|
|
4329
|
+
return Xa(e, t) ? (n.reviews || []).length * 3 : 0;
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function Xa(e, t) {
|
|
4332
4332
|
return t.map((o) => {
|
|
4333
4333
|
if (!o.value || !o.value.blockSettings) {
|
|
4334
4334
|
console.error("block.value or block.value.blockSettings is undefined.");
|
|
@@ -4349,9 +4349,9 @@ function Ja(e, t) {
|
|
|
4349
4349
|
return null;
|
|
4350
4350
|
}
|
|
4351
4351
|
const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
4352
|
-
const { themeSettings: n } =
|
|
4352
|
+
const { themeSettings: n } = Y(), { settings: o } = Xe(), [r, s] = A.useState(null), [i, a] = A.useState(!1), { setNotifications: l, notifications: d } = Vn(), { header: u, footer: f, announcement: p, blocks: g } = ne(), { pageContext: y } = J(), { pages: h } = J();
|
|
4353
4353
|
return /* @__PURE__ */ c(
|
|
4354
|
-
|
|
4354
|
+
Ye,
|
|
4355
4355
|
{
|
|
4356
4356
|
onClick: async () => {
|
|
4357
4357
|
if (i)
|
|
@@ -4374,10 +4374,10 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4374
4374
|
],
|
|
4375
4375
|
neededListingIds: [...Nt("ListingIds", Object.values(g[x].data))],
|
|
4376
4376
|
neededFaqIds: [...Nt("FaqsIds", Object.values(g[x].data))],
|
|
4377
|
-
neededReviewCount:
|
|
4377
|
+
neededReviewCount: Ya(
|
|
4378
4378
|
"ReviewCount",
|
|
4379
4379
|
Object.values(g[x].data),
|
|
4380
|
-
|
|
4380
|
+
y
|
|
4381
4381
|
),
|
|
4382
4382
|
seo: {
|
|
4383
4383
|
pageTitle: S && S.seo && S.seo.pageTitle ? S.seo.pageTitle : "",
|
|
@@ -4385,16 +4385,16 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4385
4385
|
},
|
|
4386
4386
|
isPrivate: !!(S && S.visibility === "private")
|
|
4387
4387
|
} : null;
|
|
4388
|
-
}).filter((x) => x),
|
|
4388
|
+
}).filter((x) => x), v = {
|
|
4389
4389
|
settings: {
|
|
4390
4390
|
...o
|
|
4391
4391
|
},
|
|
4392
4392
|
header: u,
|
|
4393
4393
|
footer: f,
|
|
4394
4394
|
announcement: p
|
|
4395
|
-
}, { status: k } = await
|
|
4395
|
+
}, { status: k } = await Ga("post", "save", {
|
|
4396
4396
|
themeSettings: n,
|
|
4397
|
-
settings:
|
|
4397
|
+
settings: v,
|
|
4398
4398
|
updatedPages: C
|
|
4399
4399
|
});
|
|
4400
4400
|
l([
|
|
@@ -4426,23 +4426,23 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
);
|
|
4428
4428
|
}, Od = () => {
|
|
4429
|
-
const { isOpenSelectModal: e } = J(), [t, n] = A.useState(!1), { showTooltip: o } =
|
|
4430
|
-
return /* @__PURE__ */
|
|
4429
|
+
const { isOpenSelectModal: e } = J(), [t, n] = A.useState(!1), { showTooltip: o } = zo();
|
|
4430
|
+
return /* @__PURE__ */ w(
|
|
4431
4431
|
"div",
|
|
4432
4432
|
{
|
|
4433
|
-
className:
|
|
4433
|
+
className: Xt.header,
|
|
4434
4434
|
style: {
|
|
4435
4435
|
zIndex: e ? 5e4 : o ? 501 : 50
|
|
4436
4436
|
},
|
|
4437
4437
|
children: [
|
|
4438
|
-
/* @__PURE__ */
|
|
4438
|
+
/* @__PURE__ */ w("div", { className: Xt.left, children: [
|
|
4439
4439
|
/* @__PURE__ */ c(ka, {}),
|
|
4440
4440
|
/* @__PURE__ */ c(Ea, {})
|
|
4441
4441
|
] }),
|
|
4442
|
-
/* @__PURE__ */ c("div", { className:
|
|
4443
|
-
/* @__PURE__ */
|
|
4444
|
-
/* @__PURE__ */ c(
|
|
4445
|
-
/* @__PURE__ */ c(
|
|
4442
|
+
/* @__PURE__ */ c("div", { className: Xt.center, children: /* @__PURE__ */ c(Ua, {}) }),
|
|
4443
|
+
/* @__PURE__ */ w("div", { className: Xt.right, children: [
|
|
4444
|
+
/* @__PURE__ */ c(qa, {}),
|
|
4445
|
+
/* @__PURE__ */ c(wa, {}),
|
|
4446
4446
|
/* @__PURE__ */ c(
|
|
4447
4447
|
Qa,
|
|
4448
4448
|
{
|
|
@@ -4459,10 +4459,10 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4459
4459
|
exit: Za,
|
|
4460
4460
|
text: ec,
|
|
4461
4461
|
exitLink: tc
|
|
4462
|
-
}, nc = () => /* @__PURE__ */ c("div", { className: Nn.exit, children: /* @__PURE__ */
|
|
4462
|
+
}, nc = () => /* @__PURE__ */ c("div", { className: Nn.exit, children: /* @__PURE__ */ w(
|
|
4463
4463
|
"a",
|
|
4464
4464
|
{
|
|
4465
|
-
href:
|
|
4465
|
+
href: location.origin,
|
|
4466
4466
|
className: Nn.exitLink,
|
|
4467
4467
|
children: [
|
|
4468
4468
|
/* @__PURE__ */ c(
|
|
@@ -4482,7 +4482,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4482
4482
|
block: sc,
|
|
4483
4483
|
active: ic
|
|
4484
4484
|
}, $d = () => {
|
|
4485
|
-
const { activeBlock: e } =
|
|
4485
|
+
const { activeBlock: e } = qn(), { setActiveBlock: t } = se(), { setCurrentBlock: n } = ne(), { setActiveBlock: o } = Y(), { setActiveBlock: r } = Fe(), s = rt();
|
|
4486
4486
|
function i(a) {
|
|
4487
4487
|
switch (t(null), n(null), o(null), r({
|
|
4488
4488
|
id: null,
|
|
@@ -4502,9 +4502,9 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4502
4502
|
break;
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
4505
|
-
return /* @__PURE__ */
|
|
4505
|
+
return /* @__PURE__ */ w("div", { className: Jt.navbar, children: [
|
|
4506
4506
|
/* @__PURE__ */ c(nc, {}),
|
|
4507
|
-
/* @__PURE__ */ c("div", { className: Jt.main, children: $r.map((a) => /* @__PURE__ */
|
|
4507
|
+
/* @__PURE__ */ c("div", { className: Jt.main, children: $r.map((a) => /* @__PURE__ */ w(
|
|
4508
4508
|
"div",
|
|
4509
4509
|
{
|
|
4510
4510
|
className: B(Jt.block, {
|
|
@@ -4525,26 +4525,26 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4525
4525
|
a.icon
|
|
4526
4526
|
)) })
|
|
4527
4527
|
] });
|
|
4528
|
-
}, ac = "
|
|
4528
|
+
}, ac = "_preview_ltg9y_1", cc = "_main_ltg9y_15", lc = "_content_ltg9y_25", uc = "_loading_ltg9y_34", dc = "_previewLoading_ltg9y_65", Dt = {
|
|
4529
4529
|
preview: ac,
|
|
4530
4530
|
main: cc,
|
|
4531
4531
|
content: lc,
|
|
4532
4532
|
loading: uc,
|
|
4533
4533
|
previewLoading: dc
|
|
4534
|
-
}, hc = "
|
|
4534
|
+
}, hc = "_header_17siy_2", fc = "_circles_17siy_16", gc = "_circle_17siy_16", pc = "_red_17siy_32", vc = "_green_17siy_36", mc = "_yellow_17siy_40", bc = "_input_17siy_44", _c = "_main_17siy_55", yc = "_text_17siy_63", wc = "_copy_17siy_75", De = {
|
|
4535
4535
|
header: hc,
|
|
4536
4536
|
circles: fc,
|
|
4537
4537
|
circle: gc,
|
|
4538
4538
|
red: pc,
|
|
4539
|
-
green:
|
|
4540
|
-
yellow:
|
|
4539
|
+
green: vc,
|
|
4540
|
+
yellow: mc,
|
|
4541
4541
|
input: bc,
|
|
4542
4542
|
main: _c,
|
|
4543
|
-
text:
|
|
4544
|
-
copy:
|
|
4543
|
+
text: yc,
|
|
4544
|
+
copy: wc
|
|
4545
4545
|
}, Cc = ["red", "yellow", "green"], Sc = () => {
|
|
4546
4546
|
const { currentDevice: e } = Kn(), t = (r, s) => r.length > s ? r.slice(0, s) + "..." : r, { notifications: n, setNotifications: o } = Vn();
|
|
4547
|
-
return /* @__PURE__ */
|
|
4547
|
+
return /* @__PURE__ */ w("div", { className: De.header, children: [
|
|
4548
4548
|
/* @__PURE__ */ c("div", { className: De.circles, children: Cc.map((r) => /* @__PURE__ */ c(
|
|
4549
4549
|
"div",
|
|
4550
4550
|
{
|
|
@@ -4556,7 +4556,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4556
4556
|
},
|
|
4557
4557
|
r
|
|
4558
4558
|
)) }),
|
|
4559
|
-
/* @__PURE__ */ c("div", { className: De.input, children: /* @__PURE__ */
|
|
4559
|
+
/* @__PURE__ */ c("div", { className: De.input, children: /* @__PURE__ */ w("div", { className: De.main, children: [
|
|
4560
4560
|
/* @__PURE__ */ c(
|
|
4561
4561
|
R,
|
|
4562
4562
|
{
|
|
@@ -4569,7 +4569,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4569
4569
|
/* @__PURE__ */ c("span", { className: De.text, children: e.value === "mobile" ? t(window.location.origin, 35) : e.value === "desktop" ? t(window.location.origin, 200) : t(window.location.origin, 100) })
|
|
4570
4570
|
] }) }),
|
|
4571
4571
|
/* @__PURE__ */ c(
|
|
4572
|
-
|
|
4572
|
+
Ye,
|
|
4573
4573
|
{
|
|
4574
4574
|
type: "Secondary",
|
|
4575
4575
|
style: { padding: "8px" },
|
|
@@ -4596,7 +4596,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4596
4596
|
}
|
|
4597
4597
|
)
|
|
4598
4598
|
] });
|
|
4599
|
-
}, xc = "
|
|
4599
|
+
}, xc = "_content_s4v4v_1", kc = "_main_s4v4v_12", Ac = "_block_s4v4v_16", Nc = "_active_s4v4v_22", Dc = "_name_s4v4v_32", Ec = "_addSection_s4v4v_109", Bc = "_addSectionTop_s4v4v_117", qe = {
|
|
4600
4600
|
content: xc,
|
|
4601
4601
|
main: kc,
|
|
4602
4602
|
block: Ac,
|
|
@@ -4604,7 +4604,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4604
4604
|
name: Dc,
|
|
4605
4605
|
addSection: Ec,
|
|
4606
4606
|
addSectionTop: Bc
|
|
4607
|
-
}, Ic = "
|
|
4607
|
+
}, Ic = "_sidebar_aoec5_1", Tc = "_content_aoec5_14", Mc = "_button_aoec5_24", Rc = "_moveButton_aoec5_40", Oc = "_deleteButton_aoec5_49", Ee = {
|
|
4608
4608
|
sidebar: Ic,
|
|
4609
4609
|
content: Tc,
|
|
4610
4610
|
button: Mc,
|
|
@@ -4612,8 +4612,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4612
4612
|
deleteButton: Oc
|
|
4613
4613
|
}, $c = () => {
|
|
4614
4614
|
var x;
|
|
4615
|
-
const { activeBlock: e, setActiveBlock: t } = Fe(), { blocks: n, removeBlock: o, moveBlock: r, duplicateBlock: s, setCurrentBlock: i } = ne(), { currentPage: a, pages: l } = J(), { setTitle: d, setDescription: u, setOnConfirm: f } = dn(), { setActiveBlock: p } = se(), g = (x = l == null ? void 0 : l[a]) == null ? void 0 : x.path,
|
|
4616
|
-
S.stopPropagation(),
|
|
4615
|
+
const { activeBlock: e, setActiveBlock: t } = Fe(), { blocks: n, removeBlock: o, moveBlock: r, duplicateBlock: s, setCurrentBlock: i } = ne(), { currentPage: a, pages: l } = J(), { setTitle: d, setDescription: u, setOnConfirm: f } = dn(), { setActiveBlock: p } = se(), g = (x = l == null ? void 0 : l[a]) == null ? void 0 : x.path, y = g ? n[g] : null, h = (y == null ? void 0 : y.order) || [], m = h.indexOf(e.id), b = (S) => {
|
|
4616
|
+
S.stopPropagation(), m > 0 && g && (r(g, m, m - 1), t({
|
|
4617
4617
|
id: e.id,
|
|
4618
4618
|
neededScroll: !0
|
|
4619
4619
|
}), setTimeout(() => {
|
|
@@ -4623,7 +4623,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4623
4623
|
});
|
|
4624
4624
|
}, 100));
|
|
4625
4625
|
}, C = (S) => {
|
|
4626
|
-
S.stopPropagation(),
|
|
4626
|
+
S.stopPropagation(), m < h.length - 1 && g && (r(g, m, m + 1), t({
|
|
4627
4627
|
id: e.id,
|
|
4628
4628
|
neededScroll: !0
|
|
4629
4629
|
}), setTimeout(() => {
|
|
@@ -4632,7 +4632,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4632
4632
|
neededScroll: !1
|
|
4633
4633
|
});
|
|
4634
4634
|
}, 100));
|
|
4635
|
-
},
|
|
4635
|
+
}, v = (S) => {
|
|
4636
4636
|
S.stopPropagation(), g && s(g, e.id);
|
|
4637
4637
|
}, k = () => {
|
|
4638
4638
|
g && (o(g, e.id), i(null), p(null), t({
|
|
@@ -4640,13 +4640,13 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4640
4640
|
neededScroll: !1
|
|
4641
4641
|
}));
|
|
4642
4642
|
};
|
|
4643
|
-
return /* @__PURE__ */ c("div", { className: Ee.sidebar, children: /* @__PURE__ */
|
|
4643
|
+
return /* @__PURE__ */ c("div", { className: Ee.sidebar, children: /* @__PURE__ */ w("div", { className: Ee.content, children: [
|
|
4644
4644
|
/* @__PURE__ */ c(
|
|
4645
4645
|
"button",
|
|
4646
4646
|
{
|
|
4647
4647
|
onClick: b,
|
|
4648
4648
|
className: B(Ee.button, Ee.moveButton),
|
|
4649
|
-
disabled:
|
|
4649
|
+
disabled: m === 0,
|
|
4650
4650
|
children: /* @__PURE__ */ c(R, { name: "ArrowUp" })
|
|
4651
4651
|
}
|
|
4652
4652
|
),
|
|
@@ -4655,14 +4655,14 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4655
4655
|
{
|
|
4656
4656
|
onClick: C,
|
|
4657
4657
|
className: B(Ee.button, Ee.moveButton),
|
|
4658
|
-
disabled:
|
|
4658
|
+
disabled: m === h.length - 1,
|
|
4659
4659
|
children: /* @__PURE__ */ c(R, { name: "ArrowDown" })
|
|
4660
4660
|
}
|
|
4661
4661
|
),
|
|
4662
4662
|
/* @__PURE__ */ c(
|
|
4663
4663
|
"button",
|
|
4664
4664
|
{
|
|
4665
|
-
onClick:
|
|
4665
|
+
onClick: v,
|
|
4666
4666
|
className: B(Ee.button, Ee.moveButton),
|
|
4667
4667
|
children: /* @__PURE__ */ c(R, { name: "Copy" })
|
|
4668
4668
|
}
|
|
@@ -4673,7 +4673,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4673
4673
|
className: B(Ee.button, Ee.deleteButton),
|
|
4674
4674
|
onClick: (S) => {
|
|
4675
4675
|
S.stopPropagation(), d("Remove Block"), u(
|
|
4676
|
-
`Are you sure you want to delete ${(
|
|
4676
|
+
`Are you sure you want to delete ${(y == null ? void 0 : y.data[e.id].name) || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
|
|
4677
4677
|
), f(k);
|
|
4678
4678
|
},
|
|
4679
4679
|
children: /* @__PURE__ */ c(
|
|
@@ -4694,7 +4694,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4694
4694
|
currentBlock: l,
|
|
4695
4695
|
setPositionBlock: d,
|
|
4696
4696
|
announcement: u
|
|
4697
|
-
} = ne(), { settings: f } =
|
|
4697
|
+
} = ne(), { settings: f } = Xe(), { currentPage: p, pages: g, pageContext: y } = J(), { activeBlock: h, setActiveBlock: m } = Y(), { setError: b } = Gn(), { setActiveBlock: C } = se(), v = A.useRef(n.id), k = A.useRef({});
|
|
4698
4698
|
A.useEffect(() => {
|
|
4699
4699
|
if (n.id && n.neededScroll && k.current[n.id]) {
|
|
4700
4700
|
const _ = k.current[n.id];
|
|
@@ -4709,7 +4709,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4709
4709
|
}, [n, e]);
|
|
4710
4710
|
const x = rt();
|
|
4711
4711
|
A.useEffect(() => {
|
|
4712
|
-
|
|
4712
|
+
v.current = n.id;
|
|
4713
4713
|
}, [n.id]);
|
|
4714
4714
|
const S = (_) => {
|
|
4715
4715
|
if (!_ || !_.name)
|
|
@@ -4727,15 +4727,15 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4727
4727
|
failedPageIds: g && g[p].id ? [g[p].id] : []
|
|
4728
4728
|
}), /* @__PURE__ */ c(on, { error: `Block "${_.name}" does not exist in blocks.` });
|
|
4729
4729
|
const N = new r[_.name]();
|
|
4730
|
-
return _.value && Object.assign(N, _.value), N.renderBlock(f,
|
|
4730
|
+
return _.value && Object.assign(N, _.value), N.renderBlock(f, y);
|
|
4731
4731
|
};
|
|
4732
|
-
return /* @__PURE__ */
|
|
4732
|
+
return /* @__PURE__ */ w(
|
|
4733
4733
|
"div",
|
|
4734
4734
|
{
|
|
4735
4735
|
onClick: (_) => {
|
|
4736
4736
|
_.stopPropagation();
|
|
4737
4737
|
},
|
|
4738
|
-
className:
|
|
4738
|
+
className: qe.content,
|
|
4739
4739
|
style: {
|
|
4740
4740
|
width: "100%",
|
|
4741
4741
|
height: "100%",
|
|
@@ -4745,12 +4745,12 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4745
4745
|
children: [
|
|
4746
4746
|
u && /* @__PURE__ */ c(Vo, {}),
|
|
4747
4747
|
/* @__PURE__ */ c(Uo, {}),
|
|
4748
|
-
/* @__PURE__ */ c("div", { className:
|
|
4748
|
+
/* @__PURE__ */ c("div", { className: qe.main, children: g && g[p] && i[g[p].path] && i[g[p].path].data && i[g[p].path].order.map((_) => /* @__PURE__ */ w(
|
|
4749
4749
|
"div",
|
|
4750
4750
|
{
|
|
4751
4751
|
ref: (N) => k.current[_] = N,
|
|
4752
4752
|
onClick: (N) => {
|
|
4753
|
-
N.stopPropagation(), C(null), h &&
|
|
4753
|
+
N.stopPropagation(), C(null), h && m(null), t({
|
|
4754
4754
|
id: _,
|
|
4755
4755
|
neededScroll: !0
|
|
4756
4756
|
}), setTimeout(() => {
|
|
@@ -4774,10 +4774,10 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4774
4774
|
neededScroll: !1
|
|
4775
4775
|
});
|
|
4776
4776
|
},
|
|
4777
|
-
className: B(
|
|
4777
|
+
className: B(qe.block),
|
|
4778
4778
|
children: [
|
|
4779
|
-
(n.id === _ || l === _) && /* @__PURE__ */ c("div", { className:
|
|
4780
|
-
(n.id === _ || l === _) && /* @__PURE__ */ c("div", { className:
|
|
4779
|
+
(n.id === _ || l === _) && /* @__PURE__ */ c("div", { className: qe.active }),
|
|
4780
|
+
(n.id === _ || l === _) && /* @__PURE__ */ c("div", { className: qe.name, children: tt(
|
|
4781
4781
|
i[g[p].path].data[_].name,
|
|
4782
4782
|
s
|
|
4783
4783
|
) }),
|
|
@@ -4788,8 +4788,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4788
4788
|
(n.id === _ || l === _) && tt(
|
|
4789
4789
|
i[g[p].path].data[_].name,
|
|
4790
4790
|
s
|
|
4791
|
-
) !== "unknown name" && /* @__PURE__ */ c("div", { className:
|
|
4792
|
-
|
|
4791
|
+
) !== "unknown name" && /* @__PURE__ */ c("div", { className: qe.addSection, children: /* @__PURE__ */ c(
|
|
4792
|
+
Ye,
|
|
4793
4793
|
{
|
|
4794
4794
|
type: "Primary",
|
|
4795
4795
|
onClick: (N) => {
|
|
@@ -4804,8 +4804,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4804
4804
|
(n.id === _ || l === _) && tt(
|
|
4805
4805
|
i[g[p].path].data[_].name,
|
|
4806
4806
|
s
|
|
4807
|
-
) !== "unknown name" && /* @__PURE__ */ c("div", { className: B(
|
|
4808
|
-
|
|
4807
|
+
) !== "unknown name" && /* @__PURE__ */ c("div", { className: B(qe.addSection, qe.addSectionTop), children: /* @__PURE__ */ c(
|
|
4808
|
+
Ye,
|
|
4809
4809
|
{
|
|
4810
4810
|
type: "Primary",
|
|
4811
4811
|
onClick: (N) => {
|
|
@@ -4818,7 +4818,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
|
|
|
4818
4818
|
}
|
|
4819
4819
|
) }),
|
|
4820
4820
|
r && /* @__PURE__ */ c(
|
|
4821
|
-
|
|
4821
|
+
Yn,
|
|
4822
4822
|
{
|
|
4823
4823
|
render: S,
|
|
4824
4824
|
block: i[g[p].path].data[_]
|
|
@@ -4844,9 +4844,9 @@ function Ro(e, t) {
|
|
|
4844
4844
|
displayName: tt(o, t)
|
|
4845
4845
|
}), n), []) : [];
|
|
4846
4846
|
}
|
|
4847
|
-
const
|
|
4848
|
-
product:
|
|
4849
|
-
name:
|
|
4847
|
+
const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Oo = {
|
|
4848
|
+
product: zc,
|
|
4849
|
+
name: jc
|
|
4850
4850
|
}, Hc = (e) => {
|
|
4851
4851
|
const { blockId: t, setSearchValue: n } = e, { sourceBlocks: o, setActiveBlock: r } = se(), {
|
|
4852
4852
|
hideModal: s,
|
|
@@ -4858,23 +4858,23 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4858
4858
|
startHideTimeout: f,
|
|
4859
4859
|
setHoverBlockTopPosition: p
|
|
4860
4860
|
} = hn();
|
|
4861
|
-
function g(
|
|
4862
|
-
n(""), r(
|
|
4861
|
+
function g(m) {
|
|
4862
|
+
n(""), r(m), s("keyBlock");
|
|
4863
4863
|
}
|
|
4864
|
-
function
|
|
4865
|
-
const C = window.innerHeight,
|
|
4864
|
+
function y(m, b) {
|
|
4865
|
+
const C = window.innerHeight, v = 400, k = 10;
|
|
4866
4866
|
let x = b.clientY - 120;
|
|
4867
|
-
x +
|
|
4867
|
+
x + v > C && (x = C - v - k), x < k && (x = k), i || s("keyBlock"), l(m, "keyBlock"), u(), p(x);
|
|
4868
4868
|
}
|
|
4869
4869
|
function h() {
|
|
4870
4870
|
a ? f("keyBlock") : d("keyBlock"), p(null);
|
|
4871
4871
|
}
|
|
4872
|
-
return /* @__PURE__ */
|
|
4872
|
+
return /* @__PURE__ */ w(
|
|
4873
4873
|
"div",
|
|
4874
4874
|
{
|
|
4875
4875
|
className: Oo.product,
|
|
4876
4876
|
onClick: () => g(t),
|
|
4877
|
-
onMouseEnter: (
|
|
4877
|
+
onMouseEnter: (m) => y(t, m),
|
|
4878
4878
|
onMouseLeave: h,
|
|
4879
4879
|
children: [
|
|
4880
4880
|
Rt[t] ? /* @__PURE__ */ c("img", { src: Rt[t] }) : /* @__PURE__ */ c(R, { name: "Cards" }),
|
|
@@ -4895,7 +4895,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4895
4895
|
const { blocks: e, sourceBlocks: t } = se(), [n, o] = A.useState(""), [r, s] = A.useState([]), i = A.useMemo(
|
|
4896
4896
|
() => Ro(e, t),
|
|
4897
4897
|
[e, t]
|
|
4898
|
-
), a = A.useMemo(() => new
|
|
4898
|
+
), a = A.useMemo(() => new yt(i, {
|
|
4899
4899
|
keys: ["displayName"],
|
|
4900
4900
|
threshold: 0.4
|
|
4901
4901
|
}), [i]);
|
|
@@ -4906,7 +4906,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4906
4906
|
const l = a.search(n);
|
|
4907
4907
|
s(l.map((d) => d.item));
|
|
4908
4908
|
}
|
|
4909
|
-
}, [n, a]), /* @__PURE__ */
|
|
4909
|
+
}, [n, a]), /* @__PURE__ */ w(Pe, { children: [
|
|
4910
4910
|
/* @__PURE__ */ c(
|
|
4911
4911
|
ue,
|
|
4912
4912
|
{
|
|
@@ -4929,13 +4929,13 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4929
4929
|
)) : /* @__PURE__ */ c("div", { className: Mo.noResults, children: "No sections found" }) })
|
|
4930
4930
|
] });
|
|
4931
4931
|
}, Pd = () => {
|
|
4932
|
-
const { onPreview: e, zoomLevel: t } = Fe(), { keyBlock: n, hoverBlockId: o, isModalVisible: r, hoverBlockTopPosition: s } = hn(), { settings: i } =
|
|
4933
|
-
function
|
|
4932
|
+
const { onPreview: e, zoomLevel: t } = Fe(), { keyBlock: n, hoverBlockId: o, isModalVisible: r, hoverBlockTopPosition: s } = hn(), { settings: i } = Xe(), { sourceBlocks: a } = se(), { pageContext: l } = J(), { showModal: d } = jo(), { currentDevice: u } = Kn(), { isLoadingThemeSettings: f } = Y(), { isLoadingLayers: p } = ne(), g = (v) => v ? !a || !a[v] ? /* @__PURE__ */ c(on, { error: `Block "${v}" does not exist in blocks.` }) : new a[v]().renderPreview(i, l) : /* @__PURE__ */ c(on, { error: "Block or block.name is undefined." });
|
|
4933
|
+
function y() {
|
|
4934
4934
|
if (u.value === "desktop")
|
|
4935
4935
|
return t >= 1 ? "100%" : `${(t * 100).toFixed(2)}%`;
|
|
4936
4936
|
{
|
|
4937
|
-
const
|
|
4938
|
-
return t >= 1 ? `${
|
|
4937
|
+
const v = u.value === "tablet" ? 768 : 425;
|
|
4938
|
+
return t >= 1 ? `${v}px` : `${(v * t).toFixed(2)}px`;
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
function h() {
|
|
@@ -4950,27 +4950,27 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4950
4950
|
return "100%";
|
|
4951
4951
|
}
|
|
4952
4952
|
}
|
|
4953
|
-
const { isOpenSelectModal:
|
|
4954
|
-
b.current && (b.current.scrollTop +=
|
|
4953
|
+
const { isOpenSelectModal: m } = J(), b = A.useRef(null), C = (v) => {
|
|
4954
|
+
b.current && (b.current.scrollTop += v.deltaY);
|
|
4955
4955
|
};
|
|
4956
|
-
return /* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ w(
|
|
4957
4957
|
"div",
|
|
4958
4958
|
{
|
|
4959
4959
|
className: Dt.preview,
|
|
4960
|
-
style: { zIndex: d && !
|
|
4961
|
-
onWheel: (
|
|
4962
|
-
|
|
4960
|
+
style: { zIndex: d && !m ? 5e3 : 500 },
|
|
4961
|
+
onWheel: (v) => {
|
|
4962
|
+
v.stopPropagation(), C(v);
|
|
4963
4963
|
},
|
|
4964
4964
|
children: [
|
|
4965
4965
|
r && /* @__PURE__ */ c(Pr, { children: /* @__PURE__ */ c(Sr, {}) }),
|
|
4966
|
-
/* @__PURE__ */
|
|
4966
|
+
/* @__PURE__ */ w(
|
|
4967
4967
|
Lr,
|
|
4968
4968
|
{
|
|
4969
4969
|
positionTop: s,
|
|
4970
4970
|
positionLeft: !o && n ? void 0 : 250,
|
|
4971
4971
|
children: [
|
|
4972
4972
|
!f && !p && /* @__PURE__ */ c(
|
|
4973
|
-
|
|
4973
|
+
Yn,
|
|
4974
4974
|
{
|
|
4975
4975
|
render: g,
|
|
4976
4976
|
block: n
|
|
@@ -4982,7 +4982,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4982
4982
|
}
|
|
4983
4983
|
),
|
|
4984
4984
|
d && /* @__PURE__ */ c(Fr, {}),
|
|
4985
|
-
e && /* @__PURE__ */
|
|
4985
|
+
e && /* @__PURE__ */ w(
|
|
4986
4986
|
"div",
|
|
4987
4987
|
{
|
|
4988
4988
|
className: Dt.main,
|
|
@@ -4995,8 +4995,8 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
4995
4995
|
"div",
|
|
4996
4996
|
{
|
|
4997
4997
|
style: {
|
|
4998
|
-
borderLeft:
|
|
4999
|
-
borderRight:
|
|
4998
|
+
borderLeft: y() === "100%" ? "none" : "var(--default-border)",
|
|
4999
|
+
borderRight: y() === "100%" ? "none" : "var(--default-border)",
|
|
5000
5000
|
width: "100%",
|
|
5001
5001
|
display: "flex",
|
|
5002
5002
|
flexDirection: "column",
|
|
@@ -5005,18 +5005,18 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5005
5005
|
overflowY: "scroll",
|
|
5006
5006
|
overflowX: "hidden"
|
|
5007
5007
|
},
|
|
5008
|
-
onScroll: (
|
|
5009
|
-
|
|
5008
|
+
onScroll: (v) => {
|
|
5009
|
+
v.stopPropagation();
|
|
5010
5010
|
},
|
|
5011
|
-
onWheel: (
|
|
5012
|
-
|
|
5011
|
+
onWheel: (v) => {
|
|
5012
|
+
v.stopPropagation();
|
|
5013
5013
|
},
|
|
5014
5014
|
children: !f && !p ? /* @__PURE__ */ c(
|
|
5015
5015
|
"div",
|
|
5016
5016
|
{
|
|
5017
5017
|
className: Dt.content,
|
|
5018
5018
|
style: {
|
|
5019
|
-
width:
|
|
5019
|
+
width: y()
|
|
5020
5020
|
},
|
|
5021
5021
|
children: /* @__PURE__ */ c(Pc, { scrollableRef: b })
|
|
5022
5022
|
}
|
|
@@ -5032,13 +5032,13 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5032
5032
|
}, Wc = "_sidebar_1xtkj_1", Uc = "_title_1xtkj_11", $o = {
|
|
5033
5033
|
sidebar: Wc,
|
|
5034
5034
|
title: Uc
|
|
5035
|
-
}, Vc = "
|
|
5035
|
+
}, Vc = "_layers_anz81_1", Kc = "_wrapper_anz81_9", qc = "_draggingWrapper_anz81_17", Gc = "_block_anz81_21", Yc = "_dragging_anz81_17", Xc = "_active_anz81_56", Jc = "_add_anz81_63", Qc = "_addTop_anz81_79", Zc = "_visible_anz81_95", el = "_button_anz81_99", tl = "_nameBlock_anz81_158", nl = "_loader_anz81_162", ol = "_actions_anz81_171", rl = "_deleteButton_anz81_179", ee = {
|
|
5036
5036
|
layers: Vc,
|
|
5037
5037
|
wrapper: Kc,
|
|
5038
|
-
draggingWrapper:
|
|
5039
|
-
block:
|
|
5040
|
-
dragging:
|
|
5041
|
-
active:
|
|
5038
|
+
draggingWrapper: qc,
|
|
5039
|
+
block: Gc,
|
|
5040
|
+
dragging: Yc,
|
|
5041
|
+
active: Xc,
|
|
5042
5042
|
add: Jc,
|
|
5043
5043
|
addTop: Qc,
|
|
5044
5044
|
visible: Zc,
|
|
@@ -5047,7 +5047,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5047
5047
|
loader: nl,
|
|
5048
5048
|
actions: ol,
|
|
5049
5049
|
deleteButton: rl
|
|
5050
|
-
}, sl = "
|
|
5050
|
+
}, sl = "_block_owmqd_1", il = "_title_owmqd_17", al = "_actions_owmqd_21", Ze = {
|
|
5051
5051
|
block: sl,
|
|
5052
5052
|
title: il,
|
|
5053
5053
|
actions: al
|
|
@@ -5063,7 +5063,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5063
5063
|
function s(i) {
|
|
5064
5064
|
t(i);
|
|
5065
5065
|
}
|
|
5066
|
-
return /* @__PURE__ */
|
|
5066
|
+
return /* @__PURE__ */ w(
|
|
5067
5067
|
"div",
|
|
5068
5068
|
{
|
|
5069
5069
|
className: B(Ze.block, {
|
|
@@ -5114,30 +5114,30 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5114
5114
|
clearHideTimeout: f,
|
|
5115
5115
|
startHideTimeout: p,
|
|
5116
5116
|
hoverBlockId: g,
|
|
5117
|
-
isModalVisible:
|
|
5118
|
-
} = hn(), { setPositionBlock: h } = ne(), [
|
|
5117
|
+
isModalVisible: y
|
|
5118
|
+
} = hn(), { setPositionBlock: h } = ne(), [m, b] = A.useState(!1), [C, v] = A.useState(!1), [k, x] = A.useState(!1), [S, _] = A.useState(!1), [N, O] = A.useState(null), z = A.useRef(null), { attributes: $, listeners: T, setNodeRef: P, transform: M, transition: W } = Di({
|
|
5119
5119
|
id: e
|
|
5120
5120
|
}), oe = {
|
|
5121
5121
|
transform: $t.Transform.toString(M),
|
|
5122
5122
|
transition: W
|
|
5123
|
-
}, { setTitle: I, setDescription: K, setOnConfirm:
|
|
5124
|
-
F.stopPropagation(),
|
|
5123
|
+
}, { setTitle: I, setDescription: K, setOnConfirm: ve } = dn(), { pages: ze, currentPage: st } = J(), { removeBlock: Q } = ne(), me = (F) => {
|
|
5124
|
+
F.stopPropagation(), z.current && clearTimeout(z.current), i({
|
|
5125
5125
|
id: e,
|
|
5126
5126
|
neededScroll: !0
|
|
5127
|
-
}),
|
|
5127
|
+
}), y && u(), a(e), f();
|
|
5128
5128
|
}, xe = (F, it = !0) => {
|
|
5129
5129
|
F.stopPropagation(), l(), d(e), f(), h(e, it);
|
|
5130
5130
|
}, Qe = (F) => {
|
|
5131
5131
|
F.stopPropagation(), i({
|
|
5132
5132
|
id: null,
|
|
5133
5133
|
neededScroll: !1
|
|
5134
|
-
}),
|
|
5134
|
+
}), y ? p() : l();
|
|
5135
5135
|
};
|
|
5136
5136
|
return A.useEffect(() => {
|
|
5137
|
-
x(!1), b(!1),
|
|
5137
|
+
x(!1), b(!1), v(!1), _(!1);
|
|
5138
5138
|
}, [o]), A.useEffect(() => {
|
|
5139
|
-
|
|
5140
|
-
}, [
|
|
5139
|
+
y || (v(!1), b(!1));
|
|
5140
|
+
}, [y]), /* @__PURE__ */ w(
|
|
5141
5141
|
"div",
|
|
5142
5142
|
{
|
|
5143
5143
|
ref: P,
|
|
@@ -5148,12 +5148,12 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5148
5148
|
onClick: (F) => {
|
|
5149
5149
|
F.stopPropagation(), n(e);
|
|
5150
5150
|
},
|
|
5151
|
-
onMouseEnter:
|
|
5151
|
+
onMouseEnter: me,
|
|
5152
5152
|
onMouseLeave: Qe,
|
|
5153
5153
|
...$,
|
|
5154
5154
|
...T,
|
|
5155
5155
|
children: [
|
|
5156
|
-
/* @__PURE__ */
|
|
5156
|
+
/* @__PURE__ */ w(
|
|
5157
5157
|
"div",
|
|
5158
5158
|
{
|
|
5159
5159
|
className: B(ee.block, {
|
|
@@ -5184,12 +5184,12 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5184
5184
|
[ee.visible]: C
|
|
5185
5185
|
}),
|
|
5186
5186
|
onMouseEnter: () => {
|
|
5187
|
-
|
|
5187
|
+
v(!0);
|
|
5188
5188
|
},
|
|
5189
5189
|
onMouseLeave: () => {
|
|
5190
|
-
|
|
5190
|
+
v(!1);
|
|
5191
5191
|
},
|
|
5192
|
-
children: /* @__PURE__ */
|
|
5192
|
+
children: /* @__PURE__ */ w(
|
|
5193
5193
|
"button",
|
|
5194
5194
|
{
|
|
5195
5195
|
className: ee.button,
|
|
@@ -5211,7 +5211,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5211
5211
|
fill: "#fff"
|
|
5212
5212
|
}
|
|
5213
5213
|
),
|
|
5214
|
-
S && /* @__PURE__ */ c(
|
|
5214
|
+
S && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
|
|
5215
5215
|
]
|
|
5216
5216
|
}
|
|
5217
5217
|
)
|
|
@@ -5221,7 +5221,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5221
5221
|
"div",
|
|
5222
5222
|
{
|
|
5223
5223
|
className: B(ee.add, {
|
|
5224
|
-
[ee.visible]:
|
|
5224
|
+
[ee.visible]: m
|
|
5225
5225
|
}),
|
|
5226
5226
|
onMouseEnter: () => {
|
|
5227
5227
|
b(!0);
|
|
@@ -5229,7 +5229,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5229
5229
|
onMouseLeave: () => {
|
|
5230
5230
|
b(!1);
|
|
5231
5231
|
},
|
|
5232
|
-
children: /* @__PURE__ */
|
|
5232
|
+
children: /* @__PURE__ */ w(
|
|
5233
5233
|
"button",
|
|
5234
5234
|
{
|
|
5235
5235
|
className: ee.button,
|
|
@@ -5251,7 +5251,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5251
5251
|
fill: "#fff"
|
|
5252
5252
|
}
|
|
5253
5253
|
),
|
|
5254
|
-
k && /* @__PURE__ */ c(
|
|
5254
|
+
k && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
|
|
5255
5255
|
]
|
|
5256
5256
|
}
|
|
5257
5257
|
)
|
|
@@ -5260,7 +5260,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5260
5260
|
]
|
|
5261
5261
|
}
|
|
5262
5262
|
),
|
|
5263
|
-
g === e && !o && /* @__PURE__ */
|
|
5263
|
+
g === e && !o && /* @__PURE__ */ w("div", { className: ee.actions, children: [
|
|
5264
5264
|
/* @__PURE__ */ c(
|
|
5265
5265
|
R,
|
|
5266
5266
|
{
|
|
@@ -5277,8 +5277,8 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5277
5277
|
onClick: (F) => {
|
|
5278
5278
|
F.stopPropagation(), I("Remove Block"), K(
|
|
5279
5279
|
`Are you sure you want to delete ${t || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
|
|
5280
|
-
),
|
|
5281
|
-
|
|
5280
|
+
), ve(() => {
|
|
5281
|
+
ze && Q(ze[st].path, e);
|
|
5282
5282
|
});
|
|
5283
5283
|
},
|
|
5284
5284
|
children: /* @__PURE__ */ c(
|
|
@@ -5308,27 +5308,27 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5308
5308
|
distance: 5
|
|
5309
5309
|
}
|
|
5310
5310
|
})
|
|
5311
|
-
), [g,
|
|
5312
|
-
|
|
5313
|
-
},
|
|
5314
|
-
|
|
5315
|
-
const { active: C, over:
|
|
5316
|
-
if (
|
|
5317
|
-
const k = a[i].path, x = e[k].order, S = x.indexOf(C.id), _ = x.indexOf(
|
|
5311
|
+
), [g, y] = A.useState(!1), h = () => {
|
|
5312
|
+
y(!0);
|
|
5313
|
+
}, m = (b) => {
|
|
5314
|
+
y(!1);
|
|
5315
|
+
const { active: C, over: v } = b;
|
|
5316
|
+
if (v && C.id !== v.id && a && a[i]) {
|
|
5317
|
+
const k = a[i].path, x = e[k].order, S = x.indexOf(C.id), _ = x.indexOf(v.id);
|
|
5318
5318
|
S !== -1 && _ !== -1 && o(k, S, _);
|
|
5319
5319
|
}
|
|
5320
5320
|
};
|
|
5321
|
-
return /* @__PURE__ */ c("div", { className: ee.layers, children: r ? /* @__PURE__ */ c("div", { className: ee.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */
|
|
5321
|
+
return /* @__PURE__ */ c("div", { className: ee.layers, children: r ? /* @__PURE__ */ c("div", { className: ee.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ w(Pe, { children: [
|
|
5322
5322
|
s && /* @__PURE__ */ c(En, { id: "announcement" }),
|
|
5323
5323
|
/* @__PURE__ */ c(En, { id: "header" }),
|
|
5324
5324
|
!n && /* @__PURE__ */ c(
|
|
5325
5325
|
ci,
|
|
5326
5326
|
{
|
|
5327
5327
|
sensors: p,
|
|
5328
|
-
onDragEnd:
|
|
5328
|
+
onDragEnd: m,
|
|
5329
5329
|
onDragStart: h,
|
|
5330
5330
|
children: a && a[i] && e[a[i].path] && /* @__PURE__ */ c(
|
|
5331
|
-
|
|
5331
|
+
wi,
|
|
5332
5332
|
{
|
|
5333
5333
|
items: e[a[i].path].order,
|
|
5334
5334
|
strategy: _i,
|
|
@@ -5356,12 +5356,12 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5356
5356
|
}, ul = "_loader_eyvkk_1", dl = {
|
|
5357
5357
|
loader: ul
|
|
5358
5358
|
}, hl = () => {
|
|
5359
|
-
const { isLoadingSettings: e } =
|
|
5359
|
+
const { isLoadingSettings: e } = Xe();
|
|
5360
5360
|
return e ? /* @__PURE__ */ c("div", { className: dl.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ c(fl, {});
|
|
5361
5361
|
}, fl = () => {
|
|
5362
|
-
const { settings: e } =
|
|
5362
|
+
const { settings: e } = Xe(), { settings: t, setSettingsInstance: n } = se();
|
|
5363
5363
|
if (!e) return null;
|
|
5364
|
-
const { setError: o } =
|
|
5364
|
+
const { setError: o } = Gn(), r = new t(e);
|
|
5365
5365
|
A.useEffect(() => {
|
|
5366
5366
|
n(r);
|
|
5367
5367
|
}, [e]);
|
|
@@ -5375,13 +5375,13 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5375
5375
|
failedSettings: !0
|
|
5376
5376
|
}), s;
|
|
5377
5377
|
}
|
|
5378
|
-
}, gl = "_theme_a1one_1", pl = "_block_a1one_8",
|
|
5378
|
+
}, gl = "_theme_a1one_1", pl = "_block_a1one_8", vl = "_name_a1one_23", ml = "_loader_a1one_27", Qt = {
|
|
5379
5379
|
theme: gl,
|
|
5380
5380
|
block: pl,
|
|
5381
|
-
name:
|
|
5382
|
-
loader:
|
|
5381
|
+
name: vl,
|
|
5382
|
+
loader: ml
|
|
5383
5383
|
}, bl = () => {
|
|
5384
|
-
const e = rt(), { isLoadingThemeSettings: t, setActiveBlock: n } =
|
|
5384
|
+
const e = rt(), { isLoadingThemeSettings: t, setActiveBlock: n } = Y();
|
|
5385
5385
|
function o(r) {
|
|
5386
5386
|
switch (r == null ? void 0 : r.name) {
|
|
5387
5387
|
case "Colors":
|
|
@@ -5401,7 +5401,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5401
5401
|
break;
|
|
5402
5402
|
}
|
|
5403
5403
|
}
|
|
5404
|
-
return /* @__PURE__ */ c("div", { className: Qt.theme, children: t ? /* @__PURE__ */ c("div", { className: Qt.loader, children: /* @__PURE__ */ c(ot, {}) }) : ft.map((r) => /* @__PURE__ */
|
|
5404
|
+
return /* @__PURE__ */ c("div", { className: Qt.theme, children: t ? /* @__PURE__ */ c("div", { className: Qt.loader, children: /* @__PURE__ */ c(ot, {}) }) : ft.map((r) => /* @__PURE__ */ w(
|
|
5405
5405
|
"div",
|
|
5406
5406
|
{
|
|
5407
5407
|
onClick: () => o(r),
|
|
@@ -5414,15 +5414,15 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5414
5414
|
},
|
|
5415
5415
|
r.icon
|
|
5416
5416
|
)) });
|
|
5417
|
-
}, _l = "
|
|
5417
|
+
}, _l = "_render_13qdl_9", yl = "_open_13qdl_24", wl = "_close_13qdl_51", Cl = "_clicked_13qdl_55", Sl = "_loading_13qdl_72", xl = "_settings_13qdl_76", gt = {
|
|
5418
5418
|
render: _l,
|
|
5419
|
-
open:
|
|
5420
|
-
close:
|
|
5419
|
+
open: yl,
|
|
5420
|
+
close: wl,
|
|
5421
5421
|
clicked: Cl,
|
|
5422
5422
|
loading: Sl,
|
|
5423
5423
|
settings: xl
|
|
5424
5424
|
}, kl = ({ block: e }) => {
|
|
5425
|
-
const { pageContext: t } = J(), { setError: n } =
|
|
5425
|
+
const { pageContext: t } = J(), { setError: n } = Gn();
|
|
5426
5426
|
try {
|
|
5427
5427
|
return e.renderSettings(t);
|
|
5428
5428
|
} catch (o) {
|
|
@@ -5433,7 +5433,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5433
5433
|
failedSettings: !0
|
|
5434
5434
|
}), o;
|
|
5435
5435
|
}
|
|
5436
|
-
}, Al = "
|
|
5436
|
+
}, Al = "_wrapper_1xfvz_1", Nl = "_header_1xfvz_8", Dl = "_title_1xfvz_15", El = "_colorWrapper_1xfvz_21", Bl = "_name_1xfvz_35", Il = "_color_1xfvz_21", Tl = "_value_1xfvz_47", Ml = "_length_1xfvz_51", ge = {
|
|
5437
5437
|
wrapper: Al,
|
|
5438
5438
|
header: Nl,
|
|
5439
5439
|
title: Dl,
|
|
@@ -5443,7 +5443,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5443
5443
|
value: Tl,
|
|
5444
5444
|
length: Ml
|
|
5445
5445
|
}, Rl = (e) => {
|
|
5446
|
-
const { colors: t } = e, { themeSettings: n } =
|
|
5446
|
+
const { colors: t } = e, { themeSettings: n } = Y(), [o, r] = A.useState(!0);
|
|
5447
5447
|
A.useEffect(() => {
|
|
5448
5448
|
t.length <= 3 && r(!0);
|
|
5449
5449
|
}, []);
|
|
@@ -5455,10 +5455,10 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5455
5455
|
variable: p
|
|
5456
5456
|
};
|
|
5457
5457
|
}
|
|
5458
|
-
return /* @__PURE__ */
|
|
5459
|
-
/* @__PURE__ */
|
|
5458
|
+
return /* @__PURE__ */ w("div", { className: ge.wrapper, children: [
|
|
5459
|
+
/* @__PURE__ */ w("div", { className: ge.header, children: [
|
|
5460
5460
|
/* @__PURE__ */ c("div", { className: ge.title, children: "Section Colors" }),
|
|
5461
|
-
!o && /* @__PURE__ */
|
|
5461
|
+
!o && /* @__PURE__ */ w(
|
|
5462
5462
|
"div",
|
|
5463
5463
|
{
|
|
5464
5464
|
className: B(ge.value, ge.length),
|
|
@@ -5470,7 +5470,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5470
5470
|
}
|
|
5471
5471
|
)
|
|
5472
5472
|
] }),
|
|
5473
|
-
o && /* @__PURE__ */
|
|
5473
|
+
o && /* @__PURE__ */ w(Pe, { children: [
|
|
5474
5474
|
/* @__PURE__ */ c("div", { className: ge.colors, children: t.map((i) => {
|
|
5475
5475
|
const a = s(i), { variable: l, name: d, field: u } = a;
|
|
5476
5476
|
return /* @__PURE__ */ c(
|
|
@@ -5481,7 +5481,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5481
5481
|
}
|
|
5482
5482
|
);
|
|
5483
5483
|
}) }),
|
|
5484
|
-
t.length > 3 && /* @__PURE__ */
|
|
5484
|
+
t.length > 3 && /* @__PURE__ */ w(
|
|
5485
5485
|
"div",
|
|
5486
5486
|
{
|
|
5487
5487
|
className: B(ge.value, ge.length),
|
|
@@ -5507,8 +5507,8 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5507
5507
|
colorChange: u,
|
|
5508
5508
|
setIsGradientActive: f,
|
|
5509
5509
|
setIsBlockSettings: p
|
|
5510
|
-
} =
|
|
5511
|
-
g(b, C,
|
|
5510
|
+
} = jo(), { updateColor: g } = Y(), y = (b, C) => (v) => {
|
|
5511
|
+
g(b, C, v);
|
|
5512
5512
|
};
|
|
5513
5513
|
A.useEffect(() => {
|
|
5514
5514
|
const b = () => {
|
|
@@ -5521,18 +5521,18 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5521
5521
|
};
|
|
5522
5522
|
}, []);
|
|
5523
5523
|
const h = (b) => {
|
|
5524
|
-
const C = t.split("/")[0],
|
|
5525
|
-
b.stopPropagation(), i(!0), d(u), a((_) =>
|
|
5526
|
-
const { top: x, left: S } =
|
|
5524
|
+
const C = t.split("/")[0], v = C.split(" ")[0].toLowerCase(), k = C.split(" ")[1].toLowerCase();
|
|
5525
|
+
b.stopPropagation(), i(!0), d(u), a((_) => y(k, v)(_)), s(n), l(n), p(!0), f(k === "surface");
|
|
5526
|
+
const { top: x, left: S } = zr(b, 550, 288, 10, 20, 230, 80);
|
|
5527
5527
|
r({
|
|
5528
5528
|
top: k === "surface" ? x : x + 125,
|
|
5529
5529
|
left: S - 200
|
|
5530
5530
|
});
|
|
5531
5531
|
};
|
|
5532
|
-
function
|
|
5532
|
+
function m(b) {
|
|
5533
5533
|
return b.length > 15 ? b.slice(0, 15) + "..." : b;
|
|
5534
5534
|
}
|
|
5535
|
-
return /* @__PURE__ */
|
|
5535
|
+
return /* @__PURE__ */ w(
|
|
5536
5536
|
"div",
|
|
5537
5537
|
{
|
|
5538
5538
|
className: ge.colorWrapper,
|
|
@@ -5548,7 +5548,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5548
5548
|
}
|
|
5549
5549
|
),
|
|
5550
5550
|
/* @__PURE__ */ c("div", { className: ge.name, children: t }),
|
|
5551
|
-
/* @__PURE__ */ c("div", { className: ge.value, children:
|
|
5551
|
+
/* @__PURE__ */ c("div", { className: ge.value, children: m(n) })
|
|
5552
5552
|
]
|
|
5553
5553
|
}
|
|
5554
5554
|
);
|
|
@@ -5557,10 +5557,10 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5557
5557
|
title: Pl,
|
|
5558
5558
|
deleteButton: Ll,
|
|
5559
5559
|
backIcon: Fl
|
|
5560
|
-
},
|
|
5560
|
+
}, zl = ({ onClick: e, setIsClicked: t, getDisplayName: n }) => {
|
|
5561
5561
|
var p, g;
|
|
5562
5562
|
const { activeBlock: o } = se(), { setTitle: r, setDescription: s, setOnConfirm: i } = dn(), { blocks: a, currentBlock: l, removeBlock: d } = ne(), { currentPage: u, pages: f } = J();
|
|
5563
|
-
return /* @__PURE__ */
|
|
5563
|
+
return /* @__PURE__ */ w("div", { className: Zt.back, children: [
|
|
5564
5564
|
/* @__PURE__ */ c(
|
|
5565
5565
|
"div",
|
|
5566
5566
|
{
|
|
@@ -5581,9 +5581,9 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5581
5581
|
l && f && !["header", "footer", "announcement"].includes(l) && a[f[u].path].data[l] && n((g = a[f[u].path].data[l]) == null ? void 0 : g.name) !== "unknown name" && /* @__PURE__ */ c(
|
|
5582
5582
|
"button",
|
|
5583
5583
|
{
|
|
5584
|
-
onClick: (
|
|
5584
|
+
onClick: (y) => {
|
|
5585
5585
|
var h;
|
|
5586
|
-
|
|
5586
|
+
y.stopPropagation(), r("Remove Block"), s(
|
|
5587
5587
|
`Are you sure you want to delete ${n((h = a[f[u].path].data[l]) == null ? void 0 : h.name) || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
|
|
5588
5588
|
), i(() => {
|
|
5589
5589
|
t(!0), d(f[u].path, l), e(!0);
|
|
@@ -5603,7 +5603,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5603
5603
|
}
|
|
5604
5604
|
)
|
|
5605
5605
|
] });
|
|
5606
|
-
},
|
|
5606
|
+
}, jl = () => {
|
|
5607
5607
|
const e = rt(), [t, n] = A.useState(!1), {
|
|
5608
5608
|
header: o,
|
|
5609
5609
|
footer: r,
|
|
@@ -5616,15 +5616,15 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5616
5616
|
} = se(), { setActiveBlock: f } = Fe(), {
|
|
5617
5617
|
blocks: p,
|
|
5618
5618
|
addBlock: g,
|
|
5619
|
-
editBlock:
|
|
5619
|
+
editBlock: y,
|
|
5620
5620
|
currentBlock: h,
|
|
5621
|
-
setCurrentBlock:
|
|
5621
|
+
setCurrentBlock: m,
|
|
5622
5622
|
// setHeader,
|
|
5623
5623
|
// setFooter,
|
|
5624
5624
|
// setAnnouncement,
|
|
5625
5625
|
header: b,
|
|
5626
5626
|
footer: C,
|
|
5627
|
-
announcement:
|
|
5627
|
+
announcement: v,
|
|
5628
5628
|
isLoadingLayers: k
|
|
5629
5629
|
} = ne(), { currentPage: x, pages: S } = J(), { past: _, future: N } = Po();
|
|
5630
5630
|
function O(T = !1) {
|
|
@@ -5634,19 +5634,19 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5634
5634
|
};
|
|
5635
5635
|
Object.keys(d.blockSettings).filter((M) => !["displayName", "isAddable"].includes(M)).map((M) => {
|
|
5636
5636
|
P.blockSettings[M] = d.blockSettings[M];
|
|
5637
|
-
}),
|
|
5637
|
+
}), y(S[x].path, h, {
|
|
5638
5638
|
name: p[S[x].path].data[h].name,
|
|
5639
5639
|
value: P
|
|
5640
5640
|
});
|
|
5641
5641
|
}
|
|
5642
|
-
l(null),
|
|
5642
|
+
l(null), m(null), f({
|
|
5643
5643
|
id: null,
|
|
5644
5644
|
neededScroll: !1
|
|
5645
5645
|
}), setTimeout(() => {
|
|
5646
5646
|
n(!1);
|
|
5647
5647
|
}, 150), u(null);
|
|
5648
5648
|
}
|
|
5649
|
-
function
|
|
5649
|
+
function z(T) {
|
|
5650
5650
|
var oe;
|
|
5651
5651
|
if (!S || !x || !T) return null;
|
|
5652
5652
|
if (T === "header") {
|
|
@@ -5668,9 +5668,9 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5668
5668
|
if (T === "announcement") {
|
|
5669
5669
|
const I = new s();
|
|
5670
5670
|
return Object.keys(I.blockSettings).forEach((K) => {
|
|
5671
|
-
I.blockSettings[K] =
|
|
5671
|
+
I.blockSettings[K] = v == null ? void 0 : v.blockSettings[K];
|
|
5672
5672
|
}), Object.keys(I.blockColors).forEach((K) => {
|
|
5673
|
-
I.blockColors[K] =
|
|
5673
|
+
I.blockColors[K] = v == null ? void 0 : v.blockColors[K];
|
|
5674
5674
|
}), I;
|
|
5675
5675
|
}
|
|
5676
5676
|
const P = p[S[x].path];
|
|
@@ -5680,7 +5680,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5680
5680
|
}
|
|
5681
5681
|
A.useEffect(() => {
|
|
5682
5682
|
if (h) {
|
|
5683
|
-
const T =
|
|
5683
|
+
const T = z(h);
|
|
5684
5684
|
u(T);
|
|
5685
5685
|
} else
|
|
5686
5686
|
u(null);
|
|
@@ -5702,18 +5702,18 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5702
5702
|
f({
|
|
5703
5703
|
id: M,
|
|
5704
5704
|
neededScroll: !0
|
|
5705
|
-
}),
|
|
5705
|
+
}), m(M), e("/admin/builder");
|
|
5706
5706
|
}
|
|
5707
5707
|
}, [a, _, N]);
|
|
5708
5708
|
function $(T) {
|
|
5709
5709
|
if (!i)
|
|
5710
5710
|
return "unknown name";
|
|
5711
5711
|
if (!i[T])
|
|
5712
|
-
return h === "header" ? b == null ? void 0 : b.blockSettings.displayName : h === "footer" ? C == null ? void 0 : C.blockSettings.displayName : h === "announcement" ?
|
|
5712
|
+
return h === "header" ? b == null ? void 0 : b.blockSettings.displayName : h === "footer" ? C == null ? void 0 : C.blockSettings.displayName : h === "announcement" ? v == null ? void 0 : v.blockSettings.displayName : "unknown name";
|
|
5713
5713
|
const P = new i[T]();
|
|
5714
5714
|
return !P.blockSettings || !P.blockSettings.displayName ? "unknown name" : P.blockSettings.displayName;
|
|
5715
5715
|
}
|
|
5716
|
-
return /* @__PURE__ */
|
|
5716
|
+
return /* @__PURE__ */ w(
|
|
5717
5717
|
"div",
|
|
5718
5718
|
{
|
|
5719
5719
|
className: B(gt.render, {
|
|
@@ -5727,15 +5727,15 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5727
5727
|
},
|
|
5728
5728
|
children: [
|
|
5729
5729
|
/* @__PURE__ */ c(
|
|
5730
|
-
|
|
5730
|
+
zl,
|
|
5731
5731
|
{
|
|
5732
5732
|
onClick: O,
|
|
5733
5733
|
setIsClicked: n,
|
|
5734
5734
|
getDisplayName: $
|
|
5735
5735
|
}
|
|
5736
5736
|
),
|
|
5737
|
-
/* @__PURE__ */
|
|
5738
|
-
d && /* @__PURE__ */
|
|
5737
|
+
/* @__PURE__ */ w("div", { className: gt.settings, children: [
|
|
5738
|
+
d && /* @__PURE__ */ w(Pe, { children: [
|
|
5739
5739
|
/* @__PURE__ */ c(kl, { block: d }),
|
|
5740
5740
|
/* @__PURE__ */ c(Rl, { colors: d.blockColors })
|
|
5741
5741
|
] }),
|
|
@@ -5744,11 +5744,11 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5744
5744
|
]
|
|
5745
5745
|
}
|
|
5746
5746
|
);
|
|
5747
|
-
}, Hl = "
|
|
5747
|
+
}, Hl = "_header_1u3yu_1", Wl = "_title_1u3yu_9", Ul = "_backIcon_1u3yu_15", Bn = {
|
|
5748
5748
|
header: Hl,
|
|
5749
5749
|
title: Wl,
|
|
5750
5750
|
backIcon: Ul
|
|
5751
|
-
}, Wt = ({ onClick: e, title: t }) => /* @__PURE__ */
|
|
5751
|
+
}, Wt = ({ onClick: e, title: t }) => /* @__PURE__ */ w("div", { className: Bn.header, children: [
|
|
5752
5752
|
/* @__PURE__ */ c(
|
|
5753
5753
|
"div",
|
|
5754
5754
|
{
|
|
@@ -5768,9 +5768,9 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5768
5768
|
/* @__PURE__ */ c("span", { className: Bn.title, children: t })
|
|
5769
5769
|
] }), Vl = "_options_ymds7_1", Kl = {
|
|
5770
5770
|
options: Vl
|
|
5771
|
-
},
|
|
5771
|
+
}, ql = () => {
|
|
5772
5772
|
var d, u;
|
|
5773
|
-
const { activeBlock: e, themeSettings: t, updateBorder: n, setActiveBlock: o } =
|
|
5773
|
+
const { activeBlock: e, themeSettings: t, updateBorder: n, setActiveBlock: o } = Y();
|
|
5774
5774
|
function r(f, p) {
|
|
5775
5775
|
n(p, f);
|
|
5776
5776
|
}
|
|
@@ -5779,7 +5779,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5779
5779
|
o(null), s("/admin/builder/theme");
|
|
5780
5780
|
}
|
|
5781
5781
|
const a = A.useMemo(() => t.borders, [t]), l = (e == null ? void 0 : e.name) === "Borders";
|
|
5782
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ w(
|
|
5783
5783
|
Ft,
|
|
5784
5784
|
{
|
|
5785
5785
|
isOpen: l,
|
|
@@ -5792,7 +5792,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5792
5792
|
title: "Borders Style"
|
|
5793
5793
|
}
|
|
5794
5794
|
),
|
|
5795
|
-
/* @__PURE__ */
|
|
5795
|
+
/* @__PURE__ */ w("div", { className: Kl.options, children: [
|
|
5796
5796
|
/* @__PURE__ */ c(
|
|
5797
5797
|
Ce,
|
|
5798
5798
|
{
|
|
@@ -5806,19 +5806,19 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5806
5806
|
Ce,
|
|
5807
5807
|
{
|
|
5808
5808
|
label: "Border Thickness (px)",
|
|
5809
|
-
options: Object.keys(
|
|
5810
|
-
value: ((u = Object.entries(
|
|
5811
|
-
onChange: (f) => r(
|
|
5809
|
+
options: Object.keys(yn),
|
|
5810
|
+
value: ((u = Object.entries(yn).find(([f, p]) => p === a.thickness)) == null ? void 0 : u[0]) || "None",
|
|
5811
|
+
onChange: (f) => r(yn[f], "thickness")
|
|
5812
5812
|
}
|
|
5813
5813
|
)
|
|
5814
5814
|
] })
|
|
5815
5815
|
]
|
|
5816
5816
|
}
|
|
5817
5817
|
);
|
|
5818
|
-
},
|
|
5819
|
-
options:
|
|
5820
|
-
alignments:
|
|
5821
|
-
blocks:
|
|
5818
|
+
}, Gl = "_options_1q3u1_1", Yl = "_alignments_1q3u1_9", Xl = "_blocks_1q3u1_15", Jl = "_alignment_1q3u1_9", Ql = "_active_1q3u1_34", Zl = "_chargeTypes_1q3u1_41", eu = "_charge_1q3u1_41", tu = "_chargeActive_1q3u1_69", nu = "_sliderContainer_1q3u1_83", ou = "_shadowInputs_1q3u1_91", ru = "_label_1q3u1_102", su = "_shadowInputsRow_1q3u1_111", iu = "_shadowInputsOpen_1q3u1_119", re = {
|
|
5819
|
+
options: Gl,
|
|
5820
|
+
alignments: Yl,
|
|
5821
|
+
blocks: Xl,
|
|
5822
5822
|
alignment: Jl,
|
|
5823
5823
|
active: Ql,
|
|
5824
5824
|
chargeTypes: Zl,
|
|
@@ -5830,19 +5830,19 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5830
5830
|
shadowInputsRow: su,
|
|
5831
5831
|
shadowInputsOpen: iu
|
|
5832
5832
|
}, au = ["left", "center", "right"], cu = () => {
|
|
5833
|
-
const { activeBlock: e, themeSettings: t, updateButton: n, setActiveBlock: o } =
|
|
5834
|
-
function a(h,
|
|
5835
|
-
n(s,
|
|
5833
|
+
const { activeBlock: e, themeSettings: t, updateButton: n, setActiveBlock: o } = Y(), { fonts: r } = Ho(), [s, i] = A.useState("primary");
|
|
5834
|
+
function a(h, m) {
|
|
5835
|
+
n(s, m, h);
|
|
5836
5836
|
}
|
|
5837
5837
|
const [l, d] = A.useState(!1), u = t.buttons[s], f = rt();
|
|
5838
5838
|
function p() {
|
|
5839
5839
|
o(null), f("/admin/builder/theme");
|
|
5840
5840
|
}
|
|
5841
5841
|
const g = (e == null ? void 0 : e.name) === "Buttons";
|
|
5842
|
-
function
|
|
5843
|
-
a({ ...u.boxShadow, [h]:
|
|
5842
|
+
function y(h, m) {
|
|
5843
|
+
a({ ...u.boxShadow, [h]: m }, "boxShadow");
|
|
5844
5844
|
}
|
|
5845
|
-
return /* @__PURE__ */
|
|
5845
|
+
return /* @__PURE__ */ w(
|
|
5846
5846
|
Ft,
|
|
5847
5847
|
{
|
|
5848
5848
|
isOpen: g,
|
|
@@ -5871,7 +5871,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5871
5871
|
))
|
|
5872
5872
|
}
|
|
5873
5873
|
),
|
|
5874
|
-
u && /* @__PURE__ */
|
|
5874
|
+
u && /* @__PURE__ */ w("div", { className: re.options, children: [
|
|
5875
5875
|
/* @__PURE__ */ c(
|
|
5876
5876
|
ue,
|
|
5877
5877
|
{
|
|
@@ -5913,7 +5913,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5913
5913
|
}
|
|
5914
5914
|
),
|
|
5915
5915
|
/* @__PURE__ */ c(
|
|
5916
|
-
|
|
5916
|
+
we,
|
|
5917
5917
|
{
|
|
5918
5918
|
initialColor: u.color,
|
|
5919
5919
|
onChange: (h) => a(h, "color"),
|
|
@@ -5923,7 +5923,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5923
5923
|
}
|
|
5924
5924
|
),
|
|
5925
5925
|
/* @__PURE__ */ c(
|
|
5926
|
-
|
|
5926
|
+
we,
|
|
5927
5927
|
{
|
|
5928
5928
|
initialColor: u.background,
|
|
5929
5929
|
onChange: (h) => a(h, "background"),
|
|
@@ -5932,10 +5932,10 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5932
5932
|
isGradientActive: !0
|
|
5933
5933
|
}
|
|
5934
5934
|
),
|
|
5935
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ w("div", { className: re.sliderContainer, children: [
|
|
5936
5936
|
/* @__PURE__ */ c("h4", { className: re.label, children: "Shadow" }),
|
|
5937
5937
|
/* @__PURE__ */ c(
|
|
5938
|
-
|
|
5938
|
+
Ye,
|
|
5939
5939
|
{
|
|
5940
5940
|
type: "Secondary",
|
|
5941
5941
|
onClick: () => d(!l),
|
|
@@ -5956,14 +5956,14 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5956
5956
|
}
|
|
5957
5957
|
)
|
|
5958
5958
|
] }),
|
|
5959
|
-
/* @__PURE__ */
|
|
5960
|
-
/* @__PURE__ */
|
|
5959
|
+
/* @__PURE__ */ w("div", { className: B(re.shadowInputs, { [re.shadowInputsOpen]: l }), children: [
|
|
5960
|
+
/* @__PURE__ */ w("div", { className: re.shadowInputsRow, children: [
|
|
5961
5961
|
/* @__PURE__ */ c(
|
|
5962
5962
|
ue,
|
|
5963
5963
|
{
|
|
5964
5964
|
label: "Left (px)",
|
|
5965
5965
|
value: String(u.boxShadow.left),
|
|
5966
|
-
onChange: (h) =>
|
|
5966
|
+
onChange: (h) => y("left", Number(h)),
|
|
5967
5967
|
type: "number"
|
|
5968
5968
|
}
|
|
5969
5969
|
),
|
|
@@ -5972,7 +5972,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5972
5972
|
{
|
|
5973
5973
|
label: "Top (px)",
|
|
5974
5974
|
value: String(u.boxShadow.top),
|
|
5975
|
-
onChange: (h) =>
|
|
5975
|
+
onChange: (h) => y("top", Number(h)),
|
|
5976
5976
|
type: "number"
|
|
5977
5977
|
}
|
|
5978
5978
|
),
|
|
@@ -5981,7 +5981,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5981
5981
|
{
|
|
5982
5982
|
label: "Blur (px)",
|
|
5983
5983
|
value: String(u.boxShadow.blur),
|
|
5984
|
-
onChange: (h) =>
|
|
5984
|
+
onChange: (h) => y("blur", Number(h)),
|
|
5985
5985
|
type: "number"
|
|
5986
5986
|
}
|
|
5987
5987
|
),
|
|
@@ -5990,23 +5990,23 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
5990
5990
|
{
|
|
5991
5991
|
label: "Spread (px)",
|
|
5992
5992
|
value: String(u.boxShadow.spread),
|
|
5993
|
-
onChange: (h) =>
|
|
5993
|
+
onChange: (h) => y("spread", Number(h)),
|
|
5994
5994
|
type: "number"
|
|
5995
5995
|
}
|
|
5996
5996
|
) })
|
|
5997
5997
|
] }),
|
|
5998
5998
|
/* @__PURE__ */ c(
|
|
5999
|
-
|
|
5999
|
+
we,
|
|
6000
6000
|
{
|
|
6001
6001
|
initialColor: u.boxShadow.color,
|
|
6002
|
-
onChange: (h) =>
|
|
6002
|
+
onChange: (h) => y("color", h),
|
|
6003
6003
|
title: "Color",
|
|
6004
6004
|
labelStyle: "secondary",
|
|
6005
6005
|
isGradientActive: !1
|
|
6006
6006
|
}
|
|
6007
6007
|
)
|
|
6008
6008
|
] }),
|
|
6009
|
-
/* @__PURE__ */
|
|
6009
|
+
/* @__PURE__ */ w("div", { className: re.alignments, children: [
|
|
6010
6010
|
/* @__PURE__ */ c("h4", { className: re.label, children: "Alignment Type" }),
|
|
6011
6011
|
/* @__PURE__ */ c("div", { className: re.blocks, children: au.map((h) => /* @__PURE__ */ c(
|
|
6012
6012
|
"div",
|
|
@@ -6036,9 +6036,9 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6036
6036
|
current: u.hover
|
|
6037
6037
|
}
|
|
6038
6038
|
),
|
|
6039
|
-
u.hover && /* @__PURE__ */
|
|
6039
|
+
u.hover && /* @__PURE__ */ w(Pe, { children: [
|
|
6040
6040
|
/* @__PURE__ */ c(
|
|
6041
|
-
|
|
6041
|
+
we,
|
|
6042
6042
|
{
|
|
6043
6043
|
initialColor: u.colorHover,
|
|
6044
6044
|
onChange: (h) => a(h, "colorHover"),
|
|
@@ -6048,7 +6048,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6048
6048
|
}
|
|
6049
6049
|
),
|
|
6050
6050
|
/* @__PURE__ */ c(
|
|
6051
|
-
|
|
6051
|
+
we,
|
|
6052
6052
|
{
|
|
6053
6053
|
initialColor: u.backgroundHover,
|
|
6054
6054
|
onChange: (h) => a(h, "backgroundHover"),
|
|
@@ -6062,21 +6062,21 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6062
6062
|
]
|
|
6063
6063
|
}
|
|
6064
6064
|
);
|
|
6065
|
-
}, lu = "
|
|
6065
|
+
}, lu = "_category_daart_1", uu = "_categoryTitle_daart_19", In = {
|
|
6066
6066
|
category: lu,
|
|
6067
6067
|
categoryTitle: uu
|
|
6068
6068
|
}, du = () => {
|
|
6069
|
-
const { themeSettings: e, setActiveColorCategory: t } =
|
|
6069
|
+
const { themeSettings: e, setActiveColorCategory: t } = Y();
|
|
6070
6070
|
function n(o) {
|
|
6071
6071
|
t(o);
|
|
6072
6072
|
}
|
|
6073
|
-
return /* @__PURE__ */ c("div", { className: In.wrapper, children: Object.keys(e.colors).map((o) => o === "icon" ? /* @__PURE__ */ c(Pe, {}) : /* @__PURE__ */
|
|
6073
|
+
return /* @__PURE__ */ c("div", { className: In.wrapper, children: Object.keys(e.colors).map((o) => o === "icon" ? /* @__PURE__ */ c(Pe, {}) : /* @__PURE__ */ w(
|
|
6074
6074
|
"div",
|
|
6075
6075
|
{
|
|
6076
6076
|
className: In.category,
|
|
6077
6077
|
onClick: () => n(o),
|
|
6078
6078
|
children: [
|
|
6079
|
-
/* @__PURE__ */
|
|
6079
|
+
/* @__PURE__ */ w("h2", { className: In.categoryTitle, children: [
|
|
6080
6080
|
o === "text" ? "Text & Icon" : Be(o),
|
|
6081
6081
|
" Colors"
|
|
6082
6082
|
] }),
|
|
@@ -6092,29 +6092,29 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6092
6092
|
},
|
|
6093
6093
|
o
|
|
6094
6094
|
)) });
|
|
6095
|
-
}, hu = "
|
|
6095
|
+
}, hu = "_options_rwzk3_38", fu = {
|
|
6096
6096
|
options: hu
|
|
6097
6097
|
}, gu = () => {
|
|
6098
|
-
const { activeBlock: e, setActiveFont: t, activeFont: n, themeSettings: o, updateFont: r } =
|
|
6098
|
+
const { activeBlock: e, setActiveFont: t, activeFont: n, themeSettings: o, updateFont: r } = Y(), { fonts: s } = Ho(), [i, a] = A.useState(null);
|
|
6099
6099
|
function l() {
|
|
6100
6100
|
t(null);
|
|
6101
6101
|
}
|
|
6102
|
-
function d(h,
|
|
6103
|
-
i && n && r("desktop", i, n,
|
|
6102
|
+
function d(h, m) {
|
|
6103
|
+
i && n && r("desktop", i, n, m, h);
|
|
6104
6104
|
}
|
|
6105
6105
|
const [u, f] = A.useState([]), p = A.useMemo(() => n ? o.fonts.desktop.heading[n] ? (a("heading"), o.fonts.desktop.heading[n]) : o.fonts.desktop.body[n] ? (a("body"), o.fonts.desktop.body[n]) : (a(null), null) : null, [n, o]);
|
|
6106
6106
|
A.useEffect(() => {
|
|
6107
6107
|
if (p) {
|
|
6108
|
-
const h = s.find((
|
|
6108
|
+
const h = s.find((m) => m.name === p.font);
|
|
6109
6109
|
h && (f(h.weights), h.weights.includes(p.boldWeight) || d("400", "boldWeight"), h.weights.includes(p.weight) || d("400", "weight"));
|
|
6110
6110
|
}
|
|
6111
6111
|
}, [p, n]);
|
|
6112
|
-
const g = !!((e == null ? void 0 : e.name) === "Fonts" && n),
|
|
6113
|
-
return /* @__PURE__ */
|
|
6112
|
+
const g = !!((e == null ? void 0 : e.name) === "Fonts" && n), y = (e == null ? void 0 : e.name) !== "Fonts" || !n;
|
|
6113
|
+
return /* @__PURE__ */ w(
|
|
6114
6114
|
Ft,
|
|
6115
6115
|
{
|
|
6116
6116
|
isOpen: g,
|
|
6117
|
-
isClose:
|
|
6117
|
+
isClose: y,
|
|
6118
6118
|
children: [
|
|
6119
6119
|
/* @__PURE__ */ c(
|
|
6120
6120
|
Wt,
|
|
@@ -6123,7 +6123,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6123
6123
|
title: "Font Style"
|
|
6124
6124
|
}
|
|
6125
6125
|
),
|
|
6126
|
-
n && p && /* @__PURE__ */
|
|
6126
|
+
n && p && /* @__PURE__ */ w("div", { className: fu.options, children: [
|
|
6127
6127
|
/* @__PURE__ */ c(
|
|
6128
6128
|
Ce,
|
|
6129
6129
|
{
|
|
@@ -6177,14 +6177,14 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6177
6177
|
]
|
|
6178
6178
|
}
|
|
6179
6179
|
);
|
|
6180
|
-
}, pu = "_wrapper_mkmxa_1",
|
|
6180
|
+
}, pu = "_wrapper_mkmxa_1", vu = "_category_mkmxa_5", mu = "_categoryTitle_mkmxa_11", bu = "_font_mkmxa_17", _u = "_content_mkmxa_32", yu = "_icon_mkmxa_39", wu = "_paragraph_mkmxa_50", $e = {
|
|
6181
6181
|
wrapper: pu,
|
|
6182
|
-
category:
|
|
6183
|
-
categoryTitle:
|
|
6182
|
+
category: vu,
|
|
6183
|
+
categoryTitle: mu,
|
|
6184
6184
|
font: bu,
|
|
6185
6185
|
content: _u,
|
|
6186
|
-
icon:
|
|
6187
|
-
paragraph:
|
|
6186
|
+
icon: yu,
|
|
6187
|
+
paragraph: wu
|
|
6188
6188
|
}, Cu = {
|
|
6189
6189
|
h1: "h1",
|
|
6190
6190
|
h2: "h2",
|
|
@@ -6197,8 +6197,8 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6197
6197
|
md: "medium",
|
|
6198
6198
|
sm: "small"
|
|
6199
6199
|
}, Su = (e) => {
|
|
6200
|
-
const { font: t, size: n, id: o, category: r } = e, { setActiveFont: s } =
|
|
6201
|
-
return /* @__PURE__ */
|
|
6200
|
+
const { font: t, size: n, id: o, category: r } = e, { setActiveFont: s } = Y();
|
|
6201
|
+
return /* @__PURE__ */ w(
|
|
6202
6202
|
"div",
|
|
6203
6203
|
{
|
|
6204
6204
|
className: $e.font,
|
|
@@ -6213,7 +6213,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6213
6213
|
children: /* @__PURE__ */ c(R, { name: r === "paragraph" ? "TextB" : "TextH" })
|
|
6214
6214
|
}
|
|
6215
6215
|
),
|
|
6216
|
-
/* @__PURE__ */
|
|
6216
|
+
/* @__PURE__ */ w("div", { className: $e.content, children: [
|
|
6217
6217
|
/* @__PURE__ */ c("h2", { className: $e.categoryTitle, children: Be(Cu[o]) }),
|
|
6218
6218
|
/* @__PURE__ */ c("span", { className: $e.value, children: `${t}, ${n}px` })
|
|
6219
6219
|
] })
|
|
@@ -6221,7 +6221,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6221
6221
|
}
|
|
6222
6222
|
);
|
|
6223
6223
|
}, xu = () => {
|
|
6224
|
-
const { themeSettings: e, setActiveFont: t, activeBlock: n } =
|
|
6224
|
+
const { themeSettings: e, setActiveFont: t, activeBlock: n } = Y();
|
|
6225
6225
|
A.useEffect(() => (o(), () => {
|
|
6226
6226
|
o();
|
|
6227
6227
|
}), []);
|
|
@@ -6229,7 +6229,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6229
6229
|
t(null);
|
|
6230
6230
|
}
|
|
6231
6231
|
if (n != null && n.name)
|
|
6232
|
-
return /* @__PURE__ */ c("div", { className: $e.wrapper, children: Object.entries(e.fonts.desktop).sort(([r], [s]) => r === "heading" ? -1 : s === "heading" ? 1 : 0).map(([r, s]) => /* @__PURE__ */
|
|
6232
|
+
return /* @__PURE__ */ c("div", { className: $e.wrapper, children: Object.entries(e.fonts.desktop).sort(([r], [s]) => r === "heading" ? -1 : s === "heading" ? 1 : 0).map(([r, s]) => /* @__PURE__ */ w(
|
|
6233
6233
|
"div",
|
|
6234
6234
|
{
|
|
6235
6235
|
className: $e.category,
|
|
@@ -6248,7 +6248,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6248
6248
|
},
|
|
6249
6249
|
r
|
|
6250
6250
|
)) });
|
|
6251
|
-
}, ku = "_wrapper_16ym0_2", Au = "_categoryTitle_16ym0_12", Nu = "_title_16ym0_74", Du = "_field_16ym0_82", Eu = "_alignments_16ym0_92", Bu = "_lineField_16ym0_98", Iu = "_style_16ym0_106", Tu = "_header_16ym0_113",
|
|
6251
|
+
}, ku = "_wrapper_16ym0_2", Au = "_categoryTitle_16ym0_12", Nu = "_title_16ym0_74", Du = "_field_16ym0_82", Eu = "_alignments_16ym0_92", Bu = "_lineField_16ym0_98", Iu = "_style_16ym0_106", Tu = "_header_16ym0_113", ye = {
|
|
6252
6252
|
wrapper: ku,
|
|
6253
6253
|
categoryTitle: Au,
|
|
6254
6254
|
title: Nu,
|
|
@@ -6259,21 +6259,21 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6259
6259
|
header: Tu
|
|
6260
6260
|
}, Mu = ["left", "center", "right"], Ru = ["solid", "dashed"], Et = (e) => {
|
|
6261
6261
|
const { title: t, children: n, rightAddon: o } = e;
|
|
6262
|
-
return /* @__PURE__ */
|
|
6263
|
-
/* @__PURE__ */
|
|
6264
|
-
/* @__PURE__ */ c("h4", { className:
|
|
6262
|
+
return /* @__PURE__ */ w("div", { className: ye.field, children: [
|
|
6263
|
+
/* @__PURE__ */ w("div", { className: ye.header, children: [
|
|
6264
|
+
/* @__PURE__ */ c("h4", { className: ye.categoryTitle, children: t }),
|
|
6265
6265
|
o
|
|
6266
6266
|
] }),
|
|
6267
6267
|
n
|
|
6268
6268
|
] });
|
|
6269
6269
|
}, Ou = () => {
|
|
6270
|
-
const { themeSettings: e, updateInput: t } =
|
|
6270
|
+
const { themeSettings: e, updateInput: t } = Y(), n = H(() => e.inputs, [e]), o = (s, i, a) => {
|
|
6271
6271
|
t(s, i, a);
|
|
6272
6272
|
}, r = (s) => (i) => {
|
|
6273
6273
|
t(s, i, "color");
|
|
6274
6274
|
};
|
|
6275
|
-
return /* @__PURE__ */
|
|
6276
|
-
/* @__PURE__ */
|
|
6275
|
+
return /* @__PURE__ */ w("div", { className: ye.wrapper, children: [
|
|
6276
|
+
/* @__PURE__ */ w(Et, { title: "General", children: [
|
|
6277
6277
|
/* @__PURE__ */ c(
|
|
6278
6278
|
ue,
|
|
6279
6279
|
{
|
|
@@ -6294,7 +6294,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
),
|
|
6296
6296
|
/* @__PURE__ */ c(
|
|
6297
|
-
|
|
6297
|
+
we,
|
|
6298
6298
|
{
|
|
6299
6299
|
initialColor: Be(n.general.color),
|
|
6300
6300
|
onChange: r("general"),
|
|
@@ -6308,7 +6308,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6308
6308
|
Et,
|
|
6309
6309
|
{
|
|
6310
6310
|
title: "Field Fill",
|
|
6311
|
-
rightAddon: /* @__PURE__ */ c("div", { className:
|
|
6311
|
+
rightAddon: /* @__PURE__ */ c("div", { className: ye.switch, children: /* @__PURE__ */ c(
|
|
6312
6312
|
Tn,
|
|
6313
6313
|
{
|
|
6314
6314
|
onChange: (s) => o("field", s, "active"),
|
|
@@ -6316,7 +6316,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6316
6316
|
}
|
|
6317
6317
|
) }),
|
|
6318
6318
|
children: /* @__PURE__ */ c(
|
|
6319
|
-
|
|
6319
|
+
we,
|
|
6320
6320
|
{
|
|
6321
6321
|
initialColor: n.field.color,
|
|
6322
6322
|
onChange: r("field"),
|
|
@@ -6327,7 +6327,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6327
6327
|
}
|
|
6328
6328
|
),
|
|
6329
6329
|
/* @__PURE__ */ c(Et, { title: "Placeholder", children: /* @__PURE__ */ c(
|
|
6330
|
-
|
|
6330
|
+
we,
|
|
6331
6331
|
{
|
|
6332
6332
|
initialColor: Be(n.placeholder.color),
|
|
6333
6333
|
onChange: r("placeholder"),
|
|
@@ -6336,11 +6336,11 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6336
6336
|
isGradientActive: !1
|
|
6337
6337
|
}
|
|
6338
6338
|
) }),
|
|
6339
|
-
/* @__PURE__ */
|
|
6339
|
+
/* @__PURE__ */ w(
|
|
6340
6340
|
Et,
|
|
6341
6341
|
{
|
|
6342
6342
|
title: "Border",
|
|
6343
|
-
rightAddon: /* @__PURE__ */ c("div", { className:
|
|
6343
|
+
rightAddon: /* @__PURE__ */ c("div", { className: ye.switch, children: /* @__PURE__ */ c(
|
|
6344
6344
|
Tn,
|
|
6345
6345
|
{
|
|
6346
6346
|
onChange: (s) => o("border", s, "active"),
|
|
@@ -6348,9 +6348,9 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6348
6348
|
}
|
|
6349
6349
|
) }),
|
|
6350
6350
|
children: [
|
|
6351
|
-
/* @__PURE__ */
|
|
6352
|
-
/* @__PURE__ */
|
|
6353
|
-
/* @__PURE__ */ c("span", { className:
|
|
6351
|
+
/* @__PURE__ */ w("div", { className: ye.lineField, children: [
|
|
6352
|
+
/* @__PURE__ */ w("div", { className: ye.style, children: [
|
|
6353
|
+
/* @__PURE__ */ c("span", { className: ye.title, children: "Style" }),
|
|
6354
6354
|
/* @__PURE__ */ c(
|
|
6355
6355
|
go,
|
|
6356
6356
|
{
|
|
@@ -6383,7 +6383,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6383
6383
|
}
|
|
6384
6384
|
),
|
|
6385
6385
|
/* @__PURE__ */ c(
|
|
6386
|
-
|
|
6386
|
+
we,
|
|
6387
6387
|
{
|
|
6388
6388
|
initialColor: Be(n.border.color),
|
|
6389
6389
|
onChange: r("border"),
|
|
@@ -6395,7 +6395,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6395
6395
|
]
|
|
6396
6396
|
}
|
|
6397
6397
|
),
|
|
6398
|
-
/* @__PURE__ */
|
|
6398
|
+
/* @__PURE__ */ w(Et, { title: "Label", children: [
|
|
6399
6399
|
/* @__PURE__ */ c(
|
|
6400
6400
|
ue,
|
|
6401
6401
|
{
|
|
@@ -6416,7 +6416,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6416
6416
|
}
|
|
6417
6417
|
),
|
|
6418
6418
|
/* @__PURE__ */ c(
|
|
6419
|
-
|
|
6419
|
+
we,
|
|
6420
6420
|
{
|
|
6421
6421
|
initialColor: Be(n.label.color),
|
|
6422
6422
|
onChange: r("label"),
|
|
@@ -6425,8 +6425,8 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6425
6425
|
isGradientActive: !1
|
|
6426
6426
|
}
|
|
6427
6427
|
),
|
|
6428
|
-
/* @__PURE__ */
|
|
6429
|
-
/* @__PURE__ */ c("h4", { className:
|
|
6428
|
+
/* @__PURE__ */ w("div", { className: ye.alignments, children: [
|
|
6429
|
+
/* @__PURE__ */ c("h4", { className: ye.title, children: "Alignment Type" }),
|
|
6430
6430
|
/* @__PURE__ */ c(
|
|
6431
6431
|
go,
|
|
6432
6432
|
{
|
|
@@ -6439,22 +6439,22 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6439
6439
|
] })
|
|
6440
6440
|
] })
|
|
6441
6441
|
] });
|
|
6442
|
-
}, $u = "
|
|
6442
|
+
}, $u = "_wrapper_lyrvk_2", Pu = "_color_lyrvk_24", Lu = "_content_lyrvk_33", Fu = "_preview_lyrvk_42", zu = "_container_lyrvk_52", ju = "_buttonWrapper_lyrvk_62", Hu = "_button_lyrvk_62", Wu = "_buttonBorder_lyrvk_80", Uu = "_buttonBackground_lyrvk_83", Vu = "_text_lyrvk_87", Ku = "_textText_lyrvk_93", qu = "_icon_lyrvk_97", Gu = "_iconIcon_lyrvk_100", Yu = "_annotation_lyrvk_104", Xu = "_annotationText_lyrvk_111", Ju = "_label_lyrvk_116", Qu = "_circle_lyrvk_127", Zu = "_line_lyrvk_140", ed = "_circle1_lyrvk_154", td = "_circle2_lyrvk_159", nd = "_annotationIcon_lyrvk_164", od = "_annotationBorder_lyrvk_192", rd = "_line1_lyrvk_203", sd = "_line2_lyrvk_210", id = "_circle3_lyrvk_227", ad = "_circle4_lyrvk_232", cd = "_annotationSurface_lyrvk_237", D = {
|
|
6443
6443
|
wrapper: $u,
|
|
6444
6444
|
color: Pu,
|
|
6445
6445
|
content: Lu,
|
|
6446
6446
|
preview: Fu,
|
|
6447
|
-
container:
|
|
6448
|
-
buttonWrapper:
|
|
6447
|
+
container: zu,
|
|
6448
|
+
buttonWrapper: ju,
|
|
6449
6449
|
button: Hu,
|
|
6450
6450
|
buttonBorder: Wu,
|
|
6451
6451
|
buttonBackground: Uu,
|
|
6452
6452
|
text: Vu,
|
|
6453
6453
|
textText: Ku,
|
|
6454
|
-
icon:
|
|
6455
|
-
iconIcon:
|
|
6456
|
-
annotation:
|
|
6457
|
-
annotationText:
|
|
6454
|
+
icon: qu,
|
|
6455
|
+
iconIcon: Gu,
|
|
6456
|
+
annotation: Yu,
|
|
6457
|
+
annotationText: Xu,
|
|
6458
6458
|
label: Ju,
|
|
6459
6459
|
circle: Qu,
|
|
6460
6460
|
line: Zu,
|
|
@@ -6468,9 +6468,9 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6468
6468
|
circle4: ad,
|
|
6469
6469
|
annotationSurface: cd
|
|
6470
6470
|
}, ld = () => {
|
|
6471
|
-
const { activeColorCategory: e } =
|
|
6472
|
-
return /* @__PURE__ */ c("div", { className: D.container, children: /* @__PURE__ */
|
|
6473
|
-
/* @__PURE__ */
|
|
6471
|
+
const { activeColorCategory: e } = Y();
|
|
6472
|
+
return /* @__PURE__ */ c("div", { className: D.container, children: /* @__PURE__ */ w("div", { className: D.buttonWrapper, children: [
|
|
6473
|
+
/* @__PURE__ */ w(
|
|
6474
6474
|
"div",
|
|
6475
6475
|
{
|
|
6476
6476
|
className: B(D.button, {
|
|
@@ -6503,19 +6503,19 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6503
6503
|
]
|
|
6504
6504
|
}
|
|
6505
6505
|
),
|
|
6506
|
-
e === "text" && /* @__PURE__ */
|
|
6506
|
+
e === "text" && /* @__PURE__ */ w("div", { className: B(D.annotation, D.annotationText), children: [
|
|
6507
6507
|
/* @__PURE__ */ c("div", { className: D.label, children: "Text Color" }),
|
|
6508
6508
|
/* @__PURE__ */ c("div", { className: D.line }),
|
|
6509
6509
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle1) }),
|
|
6510
6510
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle2) })
|
|
6511
6511
|
] }),
|
|
6512
|
-
e === "text" && /* @__PURE__ */
|
|
6512
|
+
e === "text" && /* @__PURE__ */ w("div", { className: B(D.annotation, D.annotationIcon), children: [
|
|
6513
6513
|
/* @__PURE__ */ c("div", { className: D.label, children: "Icon Color" }),
|
|
6514
6514
|
/* @__PURE__ */ c("div", { className: D.line }),
|
|
6515
6515
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle1) }),
|
|
6516
6516
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle2) })
|
|
6517
6517
|
] }),
|
|
6518
|
-
e === "border" && /* @__PURE__ */
|
|
6518
|
+
e === "border" && /* @__PURE__ */ w("div", { className: B(D.annotation, D.annotationBorder), children: [
|
|
6519
6519
|
/* @__PURE__ */ c("div", { className: D.label, children: "Border Color" }),
|
|
6520
6520
|
/* @__PURE__ */ c("div", { className: B(D.line, D.line1) }),
|
|
6521
6521
|
/* @__PURE__ */ c("div", { className: B(D.line, D.line2) }),
|
|
@@ -6524,7 +6524,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6524
6524
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle3) }),
|
|
6525
6525
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle4) })
|
|
6526
6526
|
] }),
|
|
6527
|
-
e === "surface" && /* @__PURE__ */
|
|
6527
|
+
e === "surface" && /* @__PURE__ */ w("div", { className: B(D.annotation, D.annotationSurface), children: [
|
|
6528
6528
|
/* @__PURE__ */ c("div", { className: D.label, children: "Surface Color" }),
|
|
6529
6529
|
/* @__PURE__ */ c("div", { className: D.line }),
|
|
6530
6530
|
/* @__PURE__ */ c("div", { className: B(D.circle, D.circle1) }),
|
|
@@ -6573,7 +6573,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6573
6573
|
"modal"
|
|
6574
6574
|
]
|
|
6575
6575
|
}, dd = () => {
|
|
6576
|
-
const { activeBlock: e, setActiveColorCategory: t, activeColorCategory: n, themeSettings: o, updateColor: r } =
|
|
6576
|
+
const { activeBlock: e, setActiveColorCategory: t, activeColorCategory: n, themeSettings: o, updateColor: r } = Y();
|
|
6577
6577
|
function s() {
|
|
6578
6578
|
t(null);
|
|
6579
6579
|
}
|
|
@@ -6581,7 +6581,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6581
6581
|
r(u, f, p);
|
|
6582
6582
|
}
|
|
6583
6583
|
const a = !!((e == null ? void 0 : e.name) === "Colors" && n), l = (e == null ? void 0 : e.name) !== "Colors" || !n, d = n ? ud[n] : [];
|
|
6584
|
-
return /* @__PURE__ */
|
|
6584
|
+
return /* @__PURE__ */ w(
|
|
6585
6585
|
Ft,
|
|
6586
6586
|
{
|
|
6587
6587
|
isOpen: a,
|
|
@@ -6594,7 +6594,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6594
6594
|
title: n === "text" ? "Text & Icon Colors" : `${Be(n)} Colors`
|
|
6595
6595
|
}
|
|
6596
6596
|
),
|
|
6597
|
-
n && /* @__PURE__ */
|
|
6597
|
+
n && /* @__PURE__ */ w("div", { className: D.wrapper, children: [
|
|
6598
6598
|
/* @__PURE__ */ c(ld, {}),
|
|
6599
6599
|
d.map((u) => {
|
|
6600
6600
|
const f = o.colors[n][u];
|
|
@@ -6602,7 +6602,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6602
6602
|
"div",
|
|
6603
6603
|
{
|
|
6604
6604
|
className: D.color,
|
|
6605
|
-
children: /* @__PURE__ */
|
|
6605
|
+
children: /* @__PURE__ */ w("div", { className: D.content, children: [
|
|
6606
6606
|
/* @__PURE__ */ c(
|
|
6607
6607
|
"div",
|
|
6608
6608
|
{
|
|
@@ -6611,7 +6611,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6611
6611
|
}
|
|
6612
6612
|
),
|
|
6613
6613
|
/* @__PURE__ */ c(
|
|
6614
|
-
|
|
6614
|
+
we,
|
|
6615
6615
|
{
|
|
6616
6616
|
title: Be(u),
|
|
6617
6617
|
initialColor: f,
|
|
@@ -6631,23 +6631,23 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6631
6631
|
}, hd = "_loader_1p5lr_1", fd = {
|
|
6632
6632
|
loader: hd
|
|
6633
6633
|
}, gd = () => {
|
|
6634
|
-
const { activeBlock: e, themeSettings: t, isLoadingThemeSettings: n } =
|
|
6635
|
-
return /* @__PURE__ */ c(Pe, { children: n ? /* @__PURE__ */ c("div", { className: fd.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */
|
|
6634
|
+
const { activeBlock: e, themeSettings: t, isLoadingThemeSettings: n } = Y();
|
|
6635
|
+
return /* @__PURE__ */ c(Pe, { children: n ? /* @__PURE__ */ c("div", { className: fd.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ w(Pe, { children: [
|
|
6636
6636
|
(e == null ? void 0 : e.name) === "Fonts" && t.fonts && /* @__PURE__ */ c(xu, {}),
|
|
6637
6637
|
(e == null ? void 0 : e.name) === "Fonts" && t.fonts && /* @__PURE__ */ c(gu, {}),
|
|
6638
6638
|
(e == null ? void 0 : e.name) === "Colors" && t.colors && /* @__PURE__ */ c(du, {}),
|
|
6639
6639
|
(e == null ? void 0 : e.name) === "Colors" && t.colors && /* @__PURE__ */ c(dd, {}),
|
|
6640
6640
|
(e == null ? void 0 : e.name) === "Inputs" && t.inputs && /* @__PURE__ */ c(Ou, {}),
|
|
6641
|
-
(e == null ? void 0 : e.name) === "Borders" && t.borders && /* @__PURE__ */ c(
|
|
6641
|
+
(e == null ? void 0 : e.name) === "Borders" && t.borders && /* @__PURE__ */ c(ql, {}),
|
|
6642
6642
|
(e == null ? void 0 : e.name) === "Buttons" && t.buttons && /* @__PURE__ */ c(cu, {})
|
|
6643
6643
|
] }) });
|
|
6644
6644
|
}, pd = () => {
|
|
6645
|
-
const { activeBlock: e, setActiveBlock: t } =
|
|
6645
|
+
const { activeBlock: e, setActiveBlock: t } = Y(), { activeBlock: n } = qn(), o = rt();
|
|
6646
6646
|
function r() {
|
|
6647
6647
|
t(null), o("/admin/builder/theme");
|
|
6648
6648
|
}
|
|
6649
6649
|
const s = !!e, i = !e || n.name !== "Theme";
|
|
6650
|
-
return /* @__PURE__ */
|
|
6650
|
+
return /* @__PURE__ */ w(
|
|
6651
6651
|
Ft,
|
|
6652
6652
|
{
|
|
6653
6653
|
isOpen: s,
|
|
@@ -6665,7 +6665,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
);
|
|
6667
6667
|
}, Ld = () => {
|
|
6668
|
-
const { activeBlock: e } =
|
|
6668
|
+
const { activeBlock: e } = qn(), { showTooltip: t } = zo();
|
|
6669
6669
|
function n() {
|
|
6670
6670
|
switch (e.name) {
|
|
6671
6671
|
case "Layers":
|
|
@@ -6678,7 +6678,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6678
6678
|
return "Settings";
|
|
6679
6679
|
}
|
|
6680
6680
|
}
|
|
6681
|
-
return /* @__PURE__ */
|
|
6681
|
+
return /* @__PURE__ */ w(
|
|
6682
6682
|
"div",
|
|
6683
6683
|
{
|
|
6684
6684
|
className: $o.sidebar,
|
|
@@ -6689,27 +6689,27 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6689
6689
|
/* @__PURE__ */ c("h3", { className: $o.title, children: n() }),
|
|
6690
6690
|
e.name === "Layers" && /* @__PURE__ */ c(ll, {}),
|
|
6691
6691
|
e.name === "Add" && /* @__PURE__ */ c(Sr, {}),
|
|
6692
|
-
/* @__PURE__ */ c(
|
|
6692
|
+
/* @__PURE__ */ c(jl, {}),
|
|
6693
6693
|
/* @__PURE__ */ c(pd, {}),
|
|
6694
6694
|
e.name === "Theme" && /* @__PURE__ */ c(bl, {}),
|
|
6695
6695
|
e.name === "Settings" && /* @__PURE__ */ c(hl, {})
|
|
6696
6696
|
]
|
|
6697
6697
|
}
|
|
6698
6698
|
);
|
|
6699
|
-
},
|
|
6700
|
-
wrapper:
|
|
6701
|
-
header:
|
|
6699
|
+
}, vd = "_wrapper_1a3e7_1", md = "_header_1a3e7_12", bd = "_content_1a3e7_23", _d = "_buttons_1a3e7_44", yd = "_label_1a3e7_51", wd = "_description_1a3e7_52", Cd = "_preview_1a3e7_60", Sd = "_block_1a3e7_66", xd = "_slug_1a3e7_75", kd = "_title_1a3e7_81", Ad = "_closeIcon_1a3e7_87", _e = {
|
|
6700
|
+
wrapper: vd,
|
|
6701
|
+
header: md,
|
|
6702
6702
|
content: bd,
|
|
6703
6703
|
buttons: _d,
|
|
6704
|
-
label:
|
|
6705
|
-
description:
|
|
6704
|
+
label: yd,
|
|
6705
|
+
description: wd,
|
|
6706
6706
|
preview: Cd,
|
|
6707
6707
|
block: Sd,
|
|
6708
6708
|
slug: xd,
|
|
6709
6709
|
title: kd,
|
|
6710
6710
|
closeIcon: Ad
|
|
6711
6711
|
}, Fd = () => {
|
|
6712
|
-
var
|
|
6712
|
+
var z, $, T, P, M, W, oe;
|
|
6713
6713
|
const {
|
|
6714
6714
|
setIsOpenModal: e,
|
|
6715
6715
|
pages: t,
|
|
@@ -6720,13 +6720,13 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6720
6720
|
editedPage: i,
|
|
6721
6721
|
setEditedPage: a,
|
|
6722
6722
|
pageContext: l
|
|
6723
|
-
} = J(), { setIsOpen: d } =
|
|
6723
|
+
} = J(), { setIsOpen: d } = jr(), { isAntistock: u } = Hr(), { createPage: f, updatePage: p } = ne(), [g, y] = A.useState(i ? t && ((z = t[i]) == null ? void 0 : z.path) : ""), [h, m] = A.useState(i ? t && (($ = t[i]) == null ? void 0 : $.name) : ""), [b, C] = A.useState(
|
|
6724
6724
|
i ? t && ((T = t[i]) == null ? void 0 : T.seo) && ((M = (P = t[i]) == null ? void 0 : P.seo) == null ? void 0 : M.pageDescription) || "" : `${l.general.info.name} is powered by the Billgang.com platform which allows them to sell their digital products online for free.`
|
|
6725
|
-
), [
|
|
6725
|
+
), [v, k] = A.useState(
|
|
6726
6726
|
i && t && (W = t[i]) != null && W.isPrivate ? "private" : "public"
|
|
6727
6727
|
);
|
|
6728
6728
|
function x() {
|
|
6729
|
-
|
|
6729
|
+
y(""), m(""), C(""), k("public"), s(!1), a(null);
|
|
6730
6730
|
}
|
|
6731
6731
|
function S() {
|
|
6732
6732
|
d(!1), setTimeout(() => {
|
|
@@ -6748,7 +6748,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6748
6748
|
pageTitle: h || "",
|
|
6749
6749
|
pageDescription: b || ""
|
|
6750
6750
|
},
|
|
6751
|
-
visibility:
|
|
6751
|
+
visibility: v || "public"
|
|
6752
6752
|
}), f(_(g)), S();
|
|
6753
6753
|
}
|
|
6754
6754
|
function O() {
|
|
@@ -6760,16 +6760,16 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6760
6760
|
pageTitle: h || "",
|
|
6761
6761
|
pageDescription: b || ""
|
|
6762
6762
|
},
|
|
6763
|
-
visibility:
|
|
6763
|
+
visibility: v || "public"
|
|
6764
6764
|
})), S();
|
|
6765
6765
|
}
|
|
6766
|
-
return /* @__PURE__ */
|
|
6766
|
+
return /* @__PURE__ */ w(
|
|
6767
6767
|
"div",
|
|
6768
6768
|
{
|
|
6769
6769
|
className: _e.wrapper,
|
|
6770
6770
|
onClick: (I) => I.stopPropagation(),
|
|
6771
6771
|
children: [
|
|
6772
|
-
/* @__PURE__ */
|
|
6772
|
+
/* @__PURE__ */ w("div", { className: _e.header, children: [
|
|
6773
6773
|
/* @__PURE__ */ c("h2", { children: r ? "Edit Page" : "Create New Page" }),
|
|
6774
6774
|
/* @__PURE__ */ c("div", { className: _e.closeIcon, children: /* @__PURE__ */ c(
|
|
6775
6775
|
R,
|
|
@@ -6781,12 +6781,12 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6781
6781
|
}
|
|
6782
6782
|
) })
|
|
6783
6783
|
] }),
|
|
6784
|
-
/* @__PURE__ */
|
|
6784
|
+
/* @__PURE__ */ w("div", { className: _e.content, children: [
|
|
6785
6785
|
/* @__PURE__ */ c(
|
|
6786
6786
|
ue,
|
|
6787
6787
|
{
|
|
6788
6788
|
label: "Page Slug",
|
|
6789
|
-
onChange: (I) =>
|
|
6789
|
+
onChange: (I) => y(I),
|
|
6790
6790
|
value: g,
|
|
6791
6791
|
placeholder: "path-to-page",
|
|
6792
6792
|
disabled: !!(i && t && ((oe = t[i]) != null && oe.name) && Bt.includes(t[i].path)),
|
|
@@ -6799,7 +6799,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6799
6799
|
{
|
|
6800
6800
|
label: "Page Title",
|
|
6801
6801
|
onChange: (I) => {
|
|
6802
|
-
|
|
6802
|
+
m(I);
|
|
6803
6803
|
},
|
|
6804
6804
|
value: h.charAt(0).toUpperCase() + h.slice(1),
|
|
6805
6805
|
placeholder: "Contact us"
|
|
@@ -6815,18 +6815,18 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6815
6815
|
maxLength: 150
|
|
6816
6816
|
}
|
|
6817
6817
|
),
|
|
6818
|
-
/* @__PURE__ */
|
|
6818
|
+
/* @__PURE__ */ w("div", { className: _e.preview, children: [
|
|
6819
6819
|
/* @__PURE__ */ c("span", { className: _e.label, children: "Preview" }),
|
|
6820
|
-
/* @__PURE__ */
|
|
6820
|
+
/* @__PURE__ */ w("div", { className: _e.block, children: [
|
|
6821
6821
|
/* @__PURE__ */ c("span", { className: _e.slug, children: g || "yoursite.url" }),
|
|
6822
6822
|
/* @__PURE__ */ c("span", { className: _e.title, children: h || "My Blank Page" }),
|
|
6823
6823
|
/* @__PURE__ */ c("span", { className: _e.description, children: b || "It is My Description" })
|
|
6824
6824
|
] })
|
|
6825
6825
|
] })
|
|
6826
6826
|
] }),
|
|
6827
|
-
/* @__PURE__ */
|
|
6827
|
+
/* @__PURE__ */ w("div", { className: _e.buttons, children: [
|
|
6828
6828
|
/* @__PURE__ */ c(
|
|
6829
|
-
|
|
6829
|
+
Ye,
|
|
6830
6830
|
{
|
|
6831
6831
|
onClick: S,
|
|
6832
6832
|
type: "Secondary",
|
|
@@ -6834,7 +6834,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6834
6834
|
}
|
|
6835
6835
|
),
|
|
6836
6836
|
/* @__PURE__ */ c(
|
|
6837
|
-
|
|
6837
|
+
Ye,
|
|
6838
6838
|
{
|
|
6839
6839
|
onClick: r ? O : N,
|
|
6840
6840
|
disabled: g.length === 0,
|
|
@@ -6850,7 +6850,7 @@ const jc = "_product_yggw5_1", zc = "_name_yggw5_15", Oo = {
|
|
|
6850
6850
|
export {
|
|
6851
6851
|
$t as C,
|
|
6852
6852
|
ci as D,
|
|
6853
|
-
|
|
6853
|
+
yt as F,
|
|
6854
6854
|
Od as H,
|
|
6855
6855
|
Fd as M,
|
|
6856
6856
|
$d as N,
|
|
@@ -6859,9 +6859,9 @@ export {
|
|
|
6859
6859
|
Ld as S,
|
|
6860
6860
|
Uo as a,
|
|
6861
6861
|
Wo as b,
|
|
6862
|
-
|
|
6862
|
+
Yn as c,
|
|
6863
6863
|
is as d,
|
|
6864
|
-
|
|
6864
|
+
wi as e,
|
|
6865
6865
|
oo as f,
|
|
6866
6866
|
Di as g,
|
|
6867
6867
|
Rd as i,
|