@tenorlab/react-dashboard 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import se, { useState as
|
|
1
|
+
import se, { useState as ce, useCallback as ue, useMemo as at, forwardRef as le, useRef as wt, Suspense as Ct, useEffect as St } from "react";
|
|
2
2
|
import { jsxs as W, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import st from "react-dom";
|
|
4
4
|
const Dt = [
|
|
@@ -97,12 +97,12 @@ const Dt = [
|
|
|
97
97
|
widgets: [],
|
|
98
98
|
childWidgetsConfig: [],
|
|
99
99
|
cssSettings: [...Dt]
|
|
100
|
-
}, Ae = 0.7, Le = 1, _t = 0.05,
|
|
100
|
+
}, Ae = 0.7, Le = 1, _t = 0.05, lt = (e) => {
|
|
101
101
|
let n = Number(e || 0);
|
|
102
102
|
return n < Ae && (n = Ae), n > Le && (n = Le), n;
|
|
103
103
|
}, Mn = (e, n) => {
|
|
104
104
|
let t = Number(Number((_t * n).toFixed(2)).toFixed(2)), r = Number((Number(e) + t).toFixed(2));
|
|
105
|
-
return
|
|
105
|
+
return lt(r);
|
|
106
106
|
}, Pn = (e) => {
|
|
107
107
|
let n = {
|
|
108
108
|
...e
|
|
@@ -142,7 +142,8 @@ const Dt = [
|
|
|
142
142
|
description: o,
|
|
143
143
|
categories: r,
|
|
144
144
|
noDuplicatedWidgets: !0,
|
|
145
|
-
icon: void 0
|
|
145
|
+
icon: void 0,
|
|
146
|
+
externalDependencies: []
|
|
146
147
|
};
|
|
147
148
|
}, $n = (e, n, t) => {
|
|
148
149
|
const r = n[e];
|
|
@@ -162,7 +163,7 @@ const Dt = [
|
|
|
162
163
|
component: n
|
|
163
164
|
}
|
|
164
165
|
];
|
|
165
|
-
},
|
|
166
|
+
}, ct = (e, n, t) => {
|
|
166
167
|
const r = t || ge(e);
|
|
167
168
|
return [
|
|
168
169
|
e,
|
|
@@ -198,10 +199,11 @@ const Dt = [
|
|
|
198
199
|
description: d.meta.description || "Remote Plugin",
|
|
199
200
|
categories: d.meta.categories || ["Widget"],
|
|
200
201
|
noDuplicatedWidgets: d.meta.noDuplicatedWidgets ?? !0,
|
|
201
|
-
icon: void 0
|
|
202
|
+
icon: void 0,
|
|
202
203
|
// Or a logic to map a string name to a Lucide component
|
|
204
|
+
externalDependencies: d.meta.externalDependencies || []
|
|
203
205
|
};
|
|
204
|
-
r.push(
|
|
206
|
+
r.push(ct(a, m, p));
|
|
205
207
|
}
|
|
206
208
|
n({
|
|
207
209
|
entries: r,
|
|
@@ -220,28 +222,28 @@ const Dt = [
|
|
|
220
222
|
for (const o in n) {
|
|
221
223
|
const a = n[o], d = Wt(o);
|
|
222
224
|
if (d && a) {
|
|
223
|
-
const { key: m, title: p, folder:
|
|
224
|
-
let u = It(t, e,
|
|
225
|
+
const { key: m, title: p, folder: h } = d;
|
|
226
|
+
let u = It(t, e, h, m);
|
|
225
227
|
if (u || (u = ge(m, {
|
|
226
228
|
title: p,
|
|
227
229
|
description: `Local ${r ? "dynamic" : "static"} widget`
|
|
228
230
|
})), r) {
|
|
229
|
-
const
|
|
230
|
-
i.push(
|
|
231
|
+
const g = a;
|
|
232
|
+
i.push(ct(m, g, u));
|
|
231
233
|
} else {
|
|
232
|
-
const
|
|
233
|
-
i.push($t(m,
|
|
234
|
+
const g = a.default || a;
|
|
235
|
+
i.push($t(m, g, u));
|
|
234
236
|
}
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
239
|
return i;
|
|
238
240
|
}, Fe = (e) => {
|
|
239
241
|
let n;
|
|
240
|
-
const t = /* @__PURE__ */ new Set(), r = (p,
|
|
242
|
+
const t = /* @__PURE__ */ new Set(), r = (p, h) => {
|
|
241
243
|
const u = typeof p == "function" ? p(n) : p;
|
|
242
244
|
if (!Object.is(u, n)) {
|
|
243
|
-
const
|
|
244
|
-
n =
|
|
245
|
+
const g = n;
|
|
246
|
+
n = h ?? (typeof u != "object" || u === null) ? u : Object.assign({}, n, u), t.forEach((y) => y(n, g));
|
|
245
247
|
}
|
|
246
248
|
}, i = () => n, d = { setState: r, getState: i, getInitialState: () => m, subscribe: (p) => (t.add(p), () => t.delete(p)) }, m = n = e(r, i, d);
|
|
247
249
|
return d;
|
|
@@ -333,10 +335,10 @@ const jt = (e) => {
|
|
|
333
335
|
}, Yt = (e, n, t, r) => {
|
|
334
336
|
if ((r || "").trim().length > 0) {
|
|
335
337
|
const i = e.childWidgetsConfig.filter(
|
|
336
|
-
(
|
|
338
|
+
(h) => h.parentWidgetKey !== r
|
|
337
339
|
);
|
|
338
340
|
let o = e.childWidgetsConfig.filter(
|
|
339
|
-
(
|
|
341
|
+
(h) => h.parentWidgetKey === r
|
|
340
342
|
);
|
|
341
343
|
const a = o.indexOf(t);
|
|
342
344
|
let d = a + n;
|
|
@@ -489,15 +491,15 @@ const jt = (e) => {
|
|
|
489
491
|
else {
|
|
490
492
|
d.forEach((p) => {
|
|
491
493
|
p.value = (p.value || "").replace(/NaN/g, "");
|
|
492
|
-
const
|
|
494
|
+
const h = r.cssSettings.find(
|
|
493
495
|
(u) => u.key === p.key
|
|
494
496
|
);
|
|
495
|
-
|
|
496
|
-
u in p || (p[u] =
|
|
497
|
-
}), p.step =
|
|
497
|
+
h && (Object.keys(h).forEach((u) => {
|
|
498
|
+
u in p || (p[u] = h[u]);
|
|
499
|
+
}), p.step = h.step, p.minValue = h.minValue, p.defaultValue = h.defaultValue, p.defaultUnit = h.defaultUnit, /\d+/g.test(p.value) === !1 && (p.value = h ? h.value : "1.0rem"));
|
|
498
500
|
});
|
|
499
501
|
const m = r.cssSettings.filter((p) => !d.some(
|
|
500
|
-
(
|
|
502
|
+
(h) => h.key === p.key
|
|
501
503
|
));
|
|
502
504
|
a.cssSettings = [...d, ...m];
|
|
503
505
|
}
|
|
@@ -527,66 +529,66 @@ const jt = (e) => {
|
|
|
527
529
|
getSavedDashboards: zt,
|
|
528
530
|
saveDashboards: Bt
|
|
529
531
|
}, Rn = () => Kt, kn = () => {
|
|
530
|
-
const [e, n] =
|
|
531
|
-
const u =
|
|
532
|
-
n((
|
|
532
|
+
const [e, n] = ce({}), [t, r] = ce({}), i = ue((h) => {
|
|
533
|
+
const u = h.dashboardId;
|
|
534
|
+
n((g) => {
|
|
533
535
|
const y = {
|
|
534
536
|
undoIndex: 0,
|
|
535
|
-
config:
|
|
537
|
+
config: h
|
|
536
538
|
};
|
|
537
|
-
return r((
|
|
538
|
-
...
|
|
539
|
+
return r((w) => ({
|
|
540
|
+
...w,
|
|
539
541
|
[u]: 0
|
|
540
542
|
})), {
|
|
541
|
-
...
|
|
543
|
+
...g,
|
|
542
544
|
[u]: [y]
|
|
543
545
|
// Forces a reset to just this one entry
|
|
544
546
|
};
|
|
545
547
|
});
|
|
546
548
|
}, []), o = ue(
|
|
547
|
-
(
|
|
549
|
+
(h) => {
|
|
548
550
|
n((u) => {
|
|
549
|
-
const
|
|
551
|
+
const g = h.dashboardId, y = u[g] || [], w = t[g] ?? -1, v = y.slice(0, w + 1), b = {
|
|
550
552
|
undoIndex: v.length,
|
|
551
553
|
// New index based on trimmed length
|
|
552
|
-
config:
|
|
554
|
+
config: h
|
|
553
555
|
}, C = [...v, b];
|
|
554
556
|
return r((T) => ({
|
|
555
557
|
...T,
|
|
556
|
-
[
|
|
558
|
+
[g]: C.length - 1
|
|
557
559
|
// Index is now the last element's index
|
|
558
560
|
})), {
|
|
559
561
|
...u,
|
|
560
|
-
[
|
|
562
|
+
[g]: C
|
|
561
563
|
};
|
|
562
564
|
});
|
|
563
565
|
},
|
|
564
566
|
[t]
|
|
565
|
-
), a = ue((
|
|
567
|
+
), a = ue((h) => {
|
|
566
568
|
n((u) => {
|
|
567
|
-
if (!u[
|
|
569
|
+
if (!u[h])
|
|
568
570
|
return u;
|
|
569
|
-
const { [
|
|
571
|
+
const { [h]: g, ...y } = u;
|
|
570
572
|
return y;
|
|
571
573
|
}), r((u) => {
|
|
572
|
-
const { [
|
|
574
|
+
const { [h]: g, ...y } = u;
|
|
573
575
|
return y;
|
|
574
576
|
});
|
|
575
577
|
}, []), d = ue(
|
|
576
|
-
(
|
|
578
|
+
(h) => {
|
|
577
579
|
r((u) => {
|
|
578
|
-
const
|
|
579
|
-
return y !==
|
|
580
|
+
const g = u[h] ?? -1, y = Math.max(0, g - 1);
|
|
581
|
+
return y !== g ? { ...u, [h]: y } : u;
|
|
580
582
|
});
|
|
581
583
|
},
|
|
582
584
|
[
|
|
583
585
|
//loadConfigFromHistory
|
|
584
586
|
]
|
|
585
587
|
), m = ue(
|
|
586
|
-
(
|
|
588
|
+
(h) => {
|
|
587
589
|
r((u) => {
|
|
588
|
-
const
|
|
589
|
-
return
|
|
590
|
+
const g = e[h]?.length || 0, y = u[h] ?? -1, w = Math.min(g - 1, y + 1);
|
|
591
|
+
return w !== y ? { ...u, [h]: w } : u;
|
|
590
592
|
});
|
|
591
593
|
},
|
|
592
594
|
[
|
|
@@ -601,9 +603,9 @@ const jt = (e) => {
|
|
|
601
603
|
removeUndoHistoryForDashboard: a,
|
|
602
604
|
undo: d,
|
|
603
605
|
redo: m,
|
|
604
|
-
getUndoStatus: (
|
|
605
|
-
const u = t[
|
|
606
|
-
return { isUndoDisabled: y, isRedoDisabled:
|
|
606
|
+
getUndoStatus: (h) => {
|
|
607
|
+
const u = t[h] ?? -1, g = e[h]?.length || 0, y = u <= 0, w = u >= g - 1;
|
|
608
|
+
return { isUndoDisabled: y, isRedoDisabled: w };
|
|
607
609
|
},
|
|
608
610
|
undoHistory: e,
|
|
609
611
|
historyIndex: t
|
|
@@ -861,7 +863,7 @@ const Z = (e, ...n) => [
|
|
|
861
863
|
onKeyDown: o,
|
|
862
864
|
placeholder: a = ""
|
|
863
865
|
}) => {
|
|
864
|
-
const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), m = Z("flex flex-col mb-4", n || ""),
|
|
866
|
+
const d = at(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), m = Z("flex flex-col mb-4", n || ""), h = `${Z(`
|
|
865
867
|
block w-full rounded-md px-3 py-1.5 text-base
|
|
866
868
|
bg-formfield content-formfield
|
|
867
869
|
outline-1 -outline-offset-1 outline-primary
|
|
@@ -879,7 +881,7 @@ const Z = (e, ...n) => [
|
|
|
879
881
|
onChange: i,
|
|
880
882
|
onKeyDown: (u) => o && o(u),
|
|
881
883
|
placeholder: a,
|
|
882
|
-
className:
|
|
884
|
+
className: h,
|
|
883
885
|
"aria-label": e
|
|
884
886
|
}
|
|
885
887
|
)
|
|
@@ -905,16 +907,16 @@ function J(e) {
|
|
|
905
907
|
px: d,
|
|
906
908
|
py: m,
|
|
907
909
|
children: p,
|
|
908
|
-
...
|
|
910
|
+
...h
|
|
909
911
|
} = e, u = () => {
|
|
910
|
-
const y = e.isIconButton || !1,
|
|
912
|
+
const y = e.isIconButton || !1, w = e.category || "primary", v = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", T = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
|
|
911
913
|
let D = (e.borderColor || "").trim();
|
|
912
914
|
D = D.length > 0 ? D : "";
|
|
913
|
-
const
|
|
915
|
+
const c = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), N = e.shadow || "sm", l = e.shadowHover || "md", f = (e.addCss || "").trim(), P = e.justifyCss || "justify-center";
|
|
914
916
|
if (y)
|
|
915
917
|
return Z(
|
|
916
918
|
"flex flex-row items-center",
|
|
917
|
-
b ? "text-disabled" : `text-${
|
|
919
|
+
b ? "text-disabled" : `text-${w} hover:brightness-110 cursor-pointer`,
|
|
918
920
|
C || ""
|
|
919
921
|
);
|
|
920
922
|
const $ = [
|
|
@@ -930,24 +932,24 @@ function J(e) {
|
|
|
930
932
|
$.push("cursor-pointer");
|
|
931
933
|
let O = "";
|
|
932
934
|
Se.has(v) ? O = `${Se.get(v)}` : O = `${Se.get("normal")}`, S < 1 && (O = O.replace("border-[category]", ""));
|
|
933
|
-
const E = O.replace(/\[category\]/g,
|
|
935
|
+
const E = O.replace(/\[category\]/g, w).trim();
|
|
934
936
|
$.push(E);
|
|
935
937
|
}
|
|
936
|
-
return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")),
|
|
937
|
-
},
|
|
938
|
-
const y = e.px || 0.7,
|
|
938
|
+
return S > 0 ? ($.push(`border-[${S}px]`), $.push(`border-${D}`)) : ($.push("border-[1px]"), $.push("border-transparent")), c > 0 ? ($.push(`hover:border-[${c}px] group-hover:border-[${c}px]`), $.push(`hover:border-${D} group-hover:border-${D}`)) : $.push("hover:border-[1px] group-hover:border-[1px]"), $.push(`shadow-${N}`), $.push(`hover:shadow-${l} group-hover:shadow-${l}`), f.length > 0 && $.push(f), f.indexOf("hidden") === -1 && $.push("inline-flex"), $.push(P), $.join(" ").trim();
|
|
939
|
+
}, g = () => {
|
|
940
|
+
const y = e.px || 0.7, w = e.py || 0.25;
|
|
939
941
|
return {
|
|
940
|
-
padding: r ? 0 : `${
|
|
942
|
+
padding: r ? 0 : `${w}rem ${y}rem `
|
|
941
943
|
};
|
|
942
944
|
};
|
|
943
|
-
return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style:
|
|
945
|
+
return /* @__PURE__ */ s("button", { type: "button", disabled: t, className: u(), style: g(), ...h, children: p });
|
|
944
946
|
}
|
|
945
947
|
const nn = (e) => e.direction === "row" ? Z("flex flex-row items-center gap-2", e.classNames || "") : Z("flex flex-col gap-2 w-full", e.classNames || "");
|
|
946
948
|
function rn(e) {
|
|
947
949
|
const { children: n, testId: t, classNames: r, direction: i, ...o } = e, a = nn(e);
|
|
948
950
|
return /* @__PURE__ */ s("div", { "data-testid": t || "not-set", className: a, ...o, children: n });
|
|
949
951
|
}
|
|
950
|
-
const Xn =
|
|
952
|
+
const Xn = le(
|
|
951
953
|
(e, n) => {
|
|
952
954
|
const { classNames: t, innerClass: r, ...i } = e, o = Z(t || "", "w-full"), a = Z(
|
|
953
955
|
`w-full flex overflow-hidden justify-between items-center gap-0
|
|
@@ -956,7 +958,7 @@ const Xn = ce(
|
|
|
956
958
|
);
|
|
957
959
|
return /* @__PURE__ */ s(rn, { direction: "row", classNames: o, ...i, children: /* @__PURE__ */ s("div", { className: a, children: e.children }) });
|
|
958
960
|
}
|
|
959
|
-
), Gn =
|
|
961
|
+
), Gn = le((e, n) => /* @__PURE__ */ s(
|
|
960
962
|
"div",
|
|
961
963
|
{
|
|
962
964
|
"data-testid": e.testId || "not-set",
|
|
@@ -967,7 +969,7 @@ const Xn = ce(
|
|
|
967
969
|
},
|
|
968
970
|
children: e.children
|
|
969
971
|
}
|
|
970
|
-
)), Zn =
|
|
972
|
+
)), Zn = le(
|
|
971
973
|
(e, n) => /* @__PURE__ */ s(
|
|
972
974
|
"div",
|
|
973
975
|
{
|
|
@@ -976,7 +978,7 @@ const Xn = ce(
|
|
|
976
978
|
children: e.children
|
|
977
979
|
}
|
|
978
980
|
)
|
|
979
|
-
), Jn =
|
|
981
|
+
), Jn = le((e, n) => /* @__PURE__ */ s(
|
|
980
982
|
"div",
|
|
981
983
|
{
|
|
982
984
|
"data-testid": e.testId || "not-set",
|
|
@@ -996,28 +998,28 @@ var Ue;
|
|
|
996
998
|
function an() {
|
|
997
999
|
if (Ue) return V;
|
|
998
1000
|
Ue = 1;
|
|
999
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111,
|
|
1000
|
-
function S(
|
|
1001
|
-
if (typeof
|
|
1002
|
-
var N =
|
|
1001
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1002
|
+
function S(c) {
|
|
1003
|
+
if (typeof c == "object" && c !== null) {
|
|
1004
|
+
var N = c.$$typeof;
|
|
1003
1005
|
switch (N) {
|
|
1004
1006
|
case n:
|
|
1005
|
-
switch (
|
|
1007
|
+
switch (c = c.type, c) {
|
|
1006
1008
|
case m:
|
|
1007
1009
|
case p:
|
|
1008
1010
|
case r:
|
|
1009
1011
|
case o:
|
|
1010
1012
|
case i:
|
|
1011
1013
|
case u:
|
|
1012
|
-
return
|
|
1014
|
+
return c;
|
|
1013
1015
|
default:
|
|
1014
|
-
switch (
|
|
1016
|
+
switch (c = c && c.$$typeof, c) {
|
|
1015
1017
|
case d:
|
|
1016
|
-
case
|
|
1017
|
-
case
|
|
1018
|
+
case h:
|
|
1019
|
+
case w:
|
|
1018
1020
|
case y:
|
|
1019
1021
|
case a:
|
|
1020
|
-
return
|
|
1022
|
+
return c;
|
|
1021
1023
|
default:
|
|
1022
1024
|
return N;
|
|
1023
1025
|
}
|
|
@@ -1027,45 +1029,45 @@ function an() {
|
|
|
1027
1029
|
}
|
|
1028
1030
|
}
|
|
1029
1031
|
}
|
|
1030
|
-
function D(
|
|
1031
|
-
return S(
|
|
1032
|
-
}
|
|
1033
|
-
return V.AsyncMode = m, V.ConcurrentMode = p, V.ContextConsumer = d, V.ContextProvider = a, V.Element = n, V.ForwardRef =
|
|
1034
|
-
return D(
|
|
1035
|
-
}, V.isConcurrentMode = D, V.isContextConsumer = function(
|
|
1036
|
-
return S(
|
|
1037
|
-
}, V.isContextProvider = function(
|
|
1038
|
-
return S(
|
|
1039
|
-
}, V.isElement = function(
|
|
1040
|
-
return typeof
|
|
1041
|
-
}, V.isForwardRef = function(
|
|
1042
|
-
return S(
|
|
1043
|
-
}, V.isFragment = function(
|
|
1044
|
-
return S(
|
|
1045
|
-
}, V.isLazy = function(
|
|
1046
|
-
return S(
|
|
1047
|
-
}, V.isMemo = function(
|
|
1048
|
-
return S(
|
|
1049
|
-
}, V.isPortal = function(
|
|
1050
|
-
return S(
|
|
1051
|
-
}, V.isProfiler = function(
|
|
1052
|
-
return S(
|
|
1053
|
-
}, V.isStrictMode = function(
|
|
1054
|
-
return S(
|
|
1055
|
-
}, V.isSuspense = function(
|
|
1056
|
-
return S(
|
|
1057
|
-
}, V.isValidElementType = function(
|
|
1058
|
-
return typeof
|
|
1032
|
+
function D(c) {
|
|
1033
|
+
return S(c) === p;
|
|
1034
|
+
}
|
|
1035
|
+
return V.AsyncMode = m, V.ConcurrentMode = p, V.ContextConsumer = d, V.ContextProvider = a, V.Element = n, V.ForwardRef = h, V.Fragment = r, V.Lazy = w, V.Memo = y, V.Portal = t, V.Profiler = o, V.StrictMode = i, V.Suspense = u, V.isAsyncMode = function(c) {
|
|
1036
|
+
return D(c) || S(c) === m;
|
|
1037
|
+
}, V.isConcurrentMode = D, V.isContextConsumer = function(c) {
|
|
1038
|
+
return S(c) === d;
|
|
1039
|
+
}, V.isContextProvider = function(c) {
|
|
1040
|
+
return S(c) === a;
|
|
1041
|
+
}, V.isElement = function(c) {
|
|
1042
|
+
return typeof c == "object" && c !== null && c.$$typeof === n;
|
|
1043
|
+
}, V.isForwardRef = function(c) {
|
|
1044
|
+
return S(c) === h;
|
|
1045
|
+
}, V.isFragment = function(c) {
|
|
1046
|
+
return S(c) === r;
|
|
1047
|
+
}, V.isLazy = function(c) {
|
|
1048
|
+
return S(c) === w;
|
|
1049
|
+
}, V.isMemo = function(c) {
|
|
1050
|
+
return S(c) === y;
|
|
1051
|
+
}, V.isPortal = function(c) {
|
|
1052
|
+
return S(c) === t;
|
|
1053
|
+
}, V.isProfiler = function(c) {
|
|
1054
|
+
return S(c) === o;
|
|
1055
|
+
}, V.isStrictMode = function(c) {
|
|
1056
|
+
return S(c) === i;
|
|
1057
|
+
}, V.isSuspense = function(c) {
|
|
1058
|
+
return S(c) === u;
|
|
1059
|
+
}, V.isValidElementType = function(c) {
|
|
1060
|
+
return typeof c == "string" || typeof c == "function" || c === r || c === p || c === o || c === i || c === u || c === g || typeof c == "object" && c !== null && (c.$$typeof === w || c.$$typeof === y || c.$$typeof === a || c.$$typeof === d || c.$$typeof === h || c.$$typeof === b || c.$$typeof === C || c.$$typeof === T || c.$$typeof === v);
|
|
1059
1061
|
}, V.typeOf = S, V;
|
|
1060
1062
|
}
|
|
1061
1063
|
var Y = {};
|
|
1062
1064
|
var Ve;
|
|
1063
1065
|
function sn() {
|
|
1064
1066
|
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1065
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111,
|
|
1067
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, m = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, h = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, u = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, g = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1066
1068
|
function S(_) {
|
|
1067
1069
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1068
|
-
_ === r || _ === p || _ === o || _ === i || _ === u || _ ===
|
|
1070
|
+
_ === r || _ === p || _ === o || _ === i || _ === u || _ === g || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === y || _.$$typeof === a || _.$$typeof === d || _.$$typeof === h || _.$$typeof === b || _.$$typeof === C || _.$$typeof === T || _.$$typeof === v);
|
|
1069
1071
|
}
|
|
1070
1072
|
function D(_) {
|
|
1071
1073
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -1085,8 +1087,8 @@ function sn() {
|
|
|
1085
1087
|
var je = me && me.$$typeof;
|
|
1086
1088
|
switch (je) {
|
|
1087
1089
|
case d:
|
|
1088
|
-
case
|
|
1089
|
-
case
|
|
1090
|
+
case h:
|
|
1091
|
+
case w:
|
|
1090
1092
|
case y:
|
|
1091
1093
|
case a:
|
|
1092
1094
|
return je;
|
|
@@ -1099,11 +1101,11 @@ function sn() {
|
|
|
1099
1101
|
}
|
|
1100
1102
|
}
|
|
1101
1103
|
}
|
|
1102
|
-
var
|
|
1104
|
+
var c = m, N = p, l = d, f = a, P = n, $ = h, O = r, E = w, z = y, X = t, Q = o, H = i, ee = u, ae = !1;
|
|
1103
1105
|
function de(_) {
|
|
1104
|
-
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
1106
|
+
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || D(_) === m;
|
|
1105
1107
|
}
|
|
1106
|
-
function
|
|
1108
|
+
function x(_) {
|
|
1107
1109
|
return D(_) === p;
|
|
1108
1110
|
}
|
|
1109
1111
|
function M(_) {
|
|
@@ -1116,13 +1118,13 @@ function sn() {
|
|
|
1116
1118
|
return typeof _ == "object" && _ !== null && _.$$typeof === n;
|
|
1117
1119
|
}
|
|
1118
1120
|
function I(_) {
|
|
1119
|
-
return D(_) ===
|
|
1121
|
+
return D(_) === h;
|
|
1120
1122
|
}
|
|
1121
1123
|
function L(_) {
|
|
1122
1124
|
return D(_) === r;
|
|
1123
1125
|
}
|
|
1124
1126
|
function R(_) {
|
|
1125
|
-
return D(_) ===
|
|
1127
|
+
return D(_) === w;
|
|
1126
1128
|
}
|
|
1127
1129
|
function j(_) {
|
|
1128
1130
|
return D(_) === y;
|
|
@@ -1139,7 +1141,7 @@ function sn() {
|
|
|
1139
1141
|
function G(_) {
|
|
1140
1142
|
return D(_) === u;
|
|
1141
1143
|
}
|
|
1142
|
-
Y.AsyncMode =
|
|
1144
|
+
Y.AsyncMode = c, Y.ConcurrentMode = N, Y.ContextConsumer = l, Y.ContextProvider = f, Y.Element = P, Y.ForwardRef = $, Y.Fragment = O, Y.Lazy = E, Y.Memo = z, Y.Portal = X, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = de, Y.isConcurrentMode = x, Y.isContextConsumer = M, Y.isContextProvider = A, Y.isElement = k, Y.isForwardRef = I, Y.isFragment = L, Y.isLazy = R, Y.isMemo = j, Y.isPortal = F, Y.isProfiler = q, Y.isStrictMode = U, Y.isSuspense = G, Y.isValidElementType = S, Y.typeOf = D;
|
|
1143
1145
|
})()), Y;
|
|
1144
1146
|
}
|
|
1145
1147
|
var Ye;
|
|
@@ -1147,7 +1149,7 @@ function pt() {
|
|
|
1147
1149
|
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = an() : ye.exports = sn()), ye.exports;
|
|
1148
1150
|
}
|
|
1149
1151
|
var Te, qe;
|
|
1150
|
-
function
|
|
1152
|
+
function ln() {
|
|
1151
1153
|
if (qe) return Te;
|
|
1152
1154
|
qe = 1;
|
|
1153
1155
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
@@ -1165,28 +1167,28 @@ function cn() {
|
|
|
1165
1167
|
return !1;
|
|
1166
1168
|
for (var a = {}, d = 0; d < 10; d++)
|
|
1167
1169
|
a["_" + String.fromCharCode(d)] = d;
|
|
1168
|
-
var m = Object.getOwnPropertyNames(a).map(function(
|
|
1169
|
-
return a[
|
|
1170
|
+
var m = Object.getOwnPropertyNames(a).map(function(h) {
|
|
1171
|
+
return a[h];
|
|
1170
1172
|
});
|
|
1171
1173
|
if (m.join("") !== "0123456789")
|
|
1172
1174
|
return !1;
|
|
1173
1175
|
var p = {};
|
|
1174
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
1175
|
-
p[
|
|
1176
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(h) {
|
|
1177
|
+
p[h] = h;
|
|
1176
1178
|
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
1177
1179
|
} catch {
|
|
1178
1180
|
return !1;
|
|
1179
1181
|
}
|
|
1180
1182
|
}
|
|
1181
1183
|
return Te = i() ? Object.assign : function(o, a) {
|
|
1182
|
-
for (var d, m = r(o), p,
|
|
1183
|
-
d = Object(arguments[
|
|
1184
|
+
for (var d, m = r(o), p, h = 1; h < arguments.length; h++) {
|
|
1185
|
+
d = Object(arguments[h]);
|
|
1184
1186
|
for (var u in d)
|
|
1185
1187
|
n.call(d, u) && (m[u] = d[u]);
|
|
1186
1188
|
if (e) {
|
|
1187
1189
|
p = e(d);
|
|
1188
|
-
for (var
|
|
1189
|
-
t.call(d, p[
|
|
1190
|
+
for (var g = 0; g < p.length; g++)
|
|
1191
|
+
t.call(d, p[g]) && (m[p[g]] = d[p[g]]);
|
|
1190
1192
|
}
|
|
1191
1193
|
}
|
|
1192
1194
|
return m;
|
|
@@ -1204,7 +1206,7 @@ function yt() {
|
|
|
1204
1206
|
return Be || (Be = 1, Ee = Function.call.bind(Object.prototype.hasOwnProperty)), Ee;
|
|
1205
1207
|
}
|
|
1206
1208
|
var _e, Ke;
|
|
1207
|
-
function
|
|
1209
|
+
function cn() {
|
|
1208
1210
|
if (Ke) return _e;
|
|
1209
1211
|
Ke = 1;
|
|
1210
1212
|
var e = function() {
|
|
@@ -1222,22 +1224,22 @@ function ln() {
|
|
|
1222
1224
|
}
|
|
1223
1225
|
function i(o, a, d, m, p) {
|
|
1224
1226
|
if (process.env.NODE_ENV !== "production") {
|
|
1225
|
-
for (var
|
|
1226
|
-
if (r(o,
|
|
1227
|
+
for (var h in o)
|
|
1228
|
+
if (r(o, h)) {
|
|
1227
1229
|
var u;
|
|
1228
1230
|
try {
|
|
1229
|
-
if (typeof o[
|
|
1230
|
-
var
|
|
1231
|
-
(m || "React class") + ": " + d + " type `" +
|
|
1231
|
+
if (typeof o[h] != "function") {
|
|
1232
|
+
var g = Error(
|
|
1233
|
+
(m || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1232
1234
|
);
|
|
1233
|
-
throw
|
|
1235
|
+
throw g.name = "Invariant Violation", g;
|
|
1234
1236
|
}
|
|
1235
|
-
u = o[
|
|
1236
|
-
} catch (
|
|
1237
|
-
u =
|
|
1237
|
+
u = o[h](a, h, m, d, null, n);
|
|
1238
|
+
} catch (w) {
|
|
1239
|
+
u = w;
|
|
1238
1240
|
}
|
|
1239
1241
|
if (u && !(u instanceof Error) && e(
|
|
1240
|
-
(m || "React class") + ": type specification of " + d + " `" +
|
|
1242
|
+
(m || "React class") + ": type specification of " + d + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1241
1243
|
), u instanceof Error && !(u.message in t)) {
|
|
1242
1244
|
t[u.message] = !0;
|
|
1243
1245
|
var y = p ? p() : "";
|
|
@@ -1256,7 +1258,7 @@ var Me, He;
|
|
|
1256
1258
|
function dn() {
|
|
1257
1259
|
if (He) return Me;
|
|
1258
1260
|
He = 1;
|
|
1259
|
-
var e = pt(), n =
|
|
1261
|
+
var e = pt(), n = ln(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ yt(), i = /* @__PURE__ */ cn(), o = function() {
|
|
1260
1262
|
};
|
|
1261
1263
|
process.env.NODE_ENV !== "production" && (o = function(d) {
|
|
1262
1264
|
var m = "Warning: " + d;
|
|
@@ -1270,13 +1272,13 @@ function dn() {
|
|
|
1270
1272
|
return null;
|
|
1271
1273
|
}
|
|
1272
1274
|
return Me = function(d, m) {
|
|
1273
|
-
var p = typeof Symbol == "function" && Symbol.iterator,
|
|
1274
|
-
function u(
|
|
1275
|
-
var M =
|
|
1275
|
+
var p = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
1276
|
+
function u(x) {
|
|
1277
|
+
var M = x && (p && x[p] || x[h]);
|
|
1276
1278
|
if (typeof M == "function")
|
|
1277
1279
|
return M;
|
|
1278
1280
|
}
|
|
1279
|
-
var
|
|
1281
|
+
var g = "<<anonymous>>", y = {
|
|
1280
1282
|
array: C("array"),
|
|
1281
1283
|
bigint: C("bigint"),
|
|
1282
1284
|
bool: C("boolean"),
|
|
@@ -1288,27 +1290,27 @@ function dn() {
|
|
|
1288
1290
|
any: T(),
|
|
1289
1291
|
arrayOf: S,
|
|
1290
1292
|
element: D(),
|
|
1291
|
-
elementType:
|
|
1293
|
+
elementType: c(),
|
|
1292
1294
|
instanceOf: N,
|
|
1293
1295
|
node: $(),
|
|
1294
1296
|
objectOf: f,
|
|
1295
|
-
oneOf:
|
|
1297
|
+
oneOf: l,
|
|
1296
1298
|
oneOfType: P,
|
|
1297
1299
|
shape: E,
|
|
1298
1300
|
exact: z
|
|
1299
1301
|
};
|
|
1300
|
-
function x
|
|
1301
|
-
return
|
|
1302
|
+
function w(x, M) {
|
|
1303
|
+
return x === M ? x !== 0 || 1 / x === 1 / M : x !== x && M !== M;
|
|
1302
1304
|
}
|
|
1303
|
-
function v(
|
|
1304
|
-
this.message =
|
|
1305
|
+
function v(x, M) {
|
|
1306
|
+
this.message = x, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
|
|
1305
1307
|
}
|
|
1306
1308
|
v.prototype = Error.prototype;
|
|
1307
|
-
function b(
|
|
1309
|
+
function b(x) {
|
|
1308
1310
|
if (process.env.NODE_ENV !== "production")
|
|
1309
1311
|
var M = {}, A = 0;
|
|
1310
1312
|
function k(L, R, j, F, q, U, G) {
|
|
1311
|
-
if (F = F ||
|
|
1313
|
+
if (F = F || g, U = U || j, G !== t) {
|
|
1312
1314
|
if (m) {
|
|
1313
1315
|
var _ = new Error(
|
|
1314
1316
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1322,19 +1324,19 @@ function dn() {
|
|
|
1322
1324
|
), M[te] = !0, A++);
|
|
1323
1325
|
}
|
|
1324
1326
|
}
|
|
1325
|
-
return R[j] == null ? L ? R[j] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null :
|
|
1327
|
+
return R[j] == null ? L ? R[j] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : x(R, j, F, q, U);
|
|
1326
1328
|
}
|
|
1327
1329
|
var I = k.bind(null, !1);
|
|
1328
1330
|
return I.isRequired = k.bind(null, !0), I;
|
|
1329
1331
|
}
|
|
1330
|
-
function C(
|
|
1332
|
+
function C(x) {
|
|
1331
1333
|
function M(A, k, I, L, R, j) {
|
|
1332
1334
|
var F = A[k], q = H(F);
|
|
1333
|
-
if (q !==
|
|
1335
|
+
if (q !== x) {
|
|
1334
1336
|
var U = ee(F);
|
|
1335
1337
|
return new v(
|
|
1336
|
-
"Invalid " + L + " `" + R + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" +
|
|
1337
|
-
{ expectedType:
|
|
1338
|
+
"Invalid " + L + " `" + R + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + x + "`."),
|
|
1339
|
+
{ expectedType: x }
|
|
1338
1340
|
);
|
|
1339
1341
|
}
|
|
1340
1342
|
return null;
|
|
@@ -1344,9 +1346,9 @@ function dn() {
|
|
|
1344
1346
|
function T() {
|
|
1345
1347
|
return b(a);
|
|
1346
1348
|
}
|
|
1347
|
-
function S(
|
|
1349
|
+
function S(x) {
|
|
1348
1350
|
function M(A, k, I, L, R) {
|
|
1349
|
-
if (typeof
|
|
1351
|
+
if (typeof x != "function")
|
|
1350
1352
|
return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1351
1353
|
var j = A[k];
|
|
1352
1354
|
if (!Array.isArray(j)) {
|
|
@@ -1354,7 +1356,7 @@ function dn() {
|
|
|
1354
1356
|
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an array."));
|
|
1355
1357
|
}
|
|
1356
1358
|
for (var q = 0; q < j.length; q++) {
|
|
1357
|
-
var U =
|
|
1359
|
+
var U = x(j, q, I, L, R + "[" + q + "]", t);
|
|
1358
1360
|
if (U instanceof Error)
|
|
1359
1361
|
return U;
|
|
1360
1362
|
}
|
|
@@ -1363,7 +1365,7 @@ function dn() {
|
|
|
1363
1365
|
return b(M);
|
|
1364
1366
|
}
|
|
1365
1367
|
function D() {
|
|
1366
|
-
function
|
|
1368
|
+
function x(M, A, k, I, L) {
|
|
1367
1369
|
var R = M[A];
|
|
1368
1370
|
if (!d(R)) {
|
|
1369
1371
|
var j = H(R);
|
|
@@ -1371,10 +1373,10 @@ function dn() {
|
|
|
1371
1373
|
}
|
|
1372
1374
|
return null;
|
|
1373
1375
|
}
|
|
1374
|
-
return b(
|
|
1376
|
+
return b(x);
|
|
1375
1377
|
}
|
|
1376
|
-
function
|
|
1377
|
-
function
|
|
1378
|
+
function c() {
|
|
1379
|
+
function x(M, A, k, I, L) {
|
|
1378
1380
|
var R = M[A];
|
|
1379
1381
|
if (!e.isValidElementType(R)) {
|
|
1380
1382
|
var j = H(R);
|
|
@@ -1382,28 +1384,28 @@ function dn() {
|
|
|
1382
1384
|
}
|
|
1383
1385
|
return null;
|
|
1384
1386
|
}
|
|
1385
|
-
return b(
|
|
1387
|
+
return b(x);
|
|
1386
1388
|
}
|
|
1387
|
-
function N(
|
|
1389
|
+
function N(x) {
|
|
1388
1390
|
function M(A, k, I, L, R) {
|
|
1389
|
-
if (!(A[k] instanceof
|
|
1390
|
-
var j =
|
|
1391
|
+
if (!(A[k] instanceof x)) {
|
|
1392
|
+
var j = x.name || g, F = de(A[k]);
|
|
1391
1393
|
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected ") + ("instance of `" + j + "`."));
|
|
1392
1394
|
}
|
|
1393
1395
|
return null;
|
|
1394
1396
|
}
|
|
1395
1397
|
return b(M);
|
|
1396
1398
|
}
|
|
1397
|
-
function
|
|
1398
|
-
if (!Array.isArray(
|
|
1399
|
+
function l(x) {
|
|
1400
|
+
if (!Array.isArray(x))
|
|
1399
1401
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1400
1402
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1401
1403
|
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1402
1404
|
function M(A, k, I, L, R) {
|
|
1403
|
-
for (var j = A[k], F = 0; F <
|
|
1404
|
-
if (
|
|
1405
|
+
for (var j = A[k], F = 0; F < x.length; F++)
|
|
1406
|
+
if (w(j, x[F]))
|
|
1405
1407
|
return null;
|
|
1406
|
-
var q = JSON.stringify(
|
|
1408
|
+
var q = JSON.stringify(x, function(G, _) {
|
|
1407
1409
|
var te = ee(_);
|
|
1408
1410
|
return te === "symbol" ? String(_) : _;
|
|
1409
1411
|
});
|
|
@@ -1411,16 +1413,16 @@ function dn() {
|
|
|
1411
1413
|
}
|
|
1412
1414
|
return b(M);
|
|
1413
1415
|
}
|
|
1414
|
-
function f(
|
|
1416
|
+
function f(x) {
|
|
1415
1417
|
function M(A, k, I, L, R) {
|
|
1416
|
-
if (typeof
|
|
1418
|
+
if (typeof x != "function")
|
|
1417
1419
|
return new v("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1418
1420
|
var j = A[k], F = H(j);
|
|
1419
1421
|
if (F !== "object")
|
|
1420
1422
|
return new v("Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + I + "`, expected an object."));
|
|
1421
1423
|
for (var q in j)
|
|
1422
1424
|
if (r(j, q)) {
|
|
1423
|
-
var U =
|
|
1425
|
+
var U = x(j, q, I, L, R + "." + q, t);
|
|
1424
1426
|
if (U instanceof Error)
|
|
1425
1427
|
return U;
|
|
1426
1428
|
}
|
|
@@ -1428,19 +1430,19 @@ function dn() {
|
|
|
1428
1430
|
}
|
|
1429
1431
|
return b(M);
|
|
1430
1432
|
}
|
|
1431
|
-
function P(
|
|
1432
|
-
if (!Array.isArray(
|
|
1433
|
+
function P(x) {
|
|
1434
|
+
if (!Array.isArray(x))
|
|
1433
1435
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1434
|
-
for (var M = 0; M <
|
|
1435
|
-
var A =
|
|
1436
|
+
for (var M = 0; M < x.length; M++) {
|
|
1437
|
+
var A = x[M];
|
|
1436
1438
|
if (typeof A != "function")
|
|
1437
1439
|
return o(
|
|
1438
1440
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(A) + " at index " + M + "."
|
|
1439
1441
|
), a;
|
|
1440
1442
|
}
|
|
1441
1443
|
function k(I, L, R, j, F) {
|
|
1442
|
-
for (var q = [], U = 0; U <
|
|
1443
|
-
var G =
|
|
1444
|
+
for (var q = [], U = 0; U < x.length; U++) {
|
|
1445
|
+
var G = x[U], _ = G(I, L, R, j, F, t);
|
|
1444
1446
|
if (_ == null)
|
|
1445
1447
|
return null;
|
|
1446
1448
|
_.data && r(_.data, "expectedType") && q.push(_.data.expectedType);
|
|
@@ -1451,23 +1453,23 @@ function dn() {
|
|
|
1451
1453
|
return b(k);
|
|
1452
1454
|
}
|
|
1453
1455
|
function $() {
|
|
1454
|
-
function
|
|
1456
|
+
function x(M, A, k, I, L) {
|
|
1455
1457
|
return X(M[A]) ? null : new v("Invalid " + I + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
1456
1458
|
}
|
|
1457
|
-
return b(
|
|
1459
|
+
return b(x);
|
|
1458
1460
|
}
|
|
1459
|
-
function O(
|
|
1461
|
+
function O(x, M, A, k, I) {
|
|
1460
1462
|
return new v(
|
|
1461
|
-
(
|
|
1463
|
+
(x || "React class") + ": " + M + " type `" + A + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1462
1464
|
);
|
|
1463
1465
|
}
|
|
1464
|
-
function E(
|
|
1466
|
+
function E(x) {
|
|
1465
1467
|
function M(A, k, I, L, R) {
|
|
1466
1468
|
var j = A[k], F = H(j);
|
|
1467
1469
|
if (F !== "object")
|
|
1468
1470
|
return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1469
|
-
for (var q in
|
|
1470
|
-
var U =
|
|
1471
|
+
for (var q in x) {
|
|
1472
|
+
var U = x[q];
|
|
1471
1473
|
if (typeof U != "function")
|
|
1472
1474
|
return O(I, L, R, q, ee(U));
|
|
1473
1475
|
var G = U(j, q, I, L, R + "." + q, t);
|
|
@@ -1478,20 +1480,20 @@ function dn() {
|
|
|
1478
1480
|
}
|
|
1479
1481
|
return b(M);
|
|
1480
1482
|
}
|
|
1481
|
-
function z(
|
|
1483
|
+
function z(x) {
|
|
1482
1484
|
function M(A, k, I, L, R) {
|
|
1483
1485
|
var j = A[k], F = H(j);
|
|
1484
1486
|
if (F !== "object")
|
|
1485
1487
|
return new v("Invalid " + L + " `" + R + "` of type `" + F + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1486
|
-
var q = n({}, A[k],
|
|
1488
|
+
var q = n({}, A[k], x);
|
|
1487
1489
|
for (var U in q) {
|
|
1488
|
-
var G =
|
|
1489
|
-
if (r(
|
|
1490
|
+
var G = x[U];
|
|
1491
|
+
if (r(x, U) && typeof G != "function")
|
|
1490
1492
|
return O(I, L, R, U, ee(G));
|
|
1491
1493
|
if (!G)
|
|
1492
1494
|
return new v(
|
|
1493
1495
|
"Invalid " + L + " `" + R + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[k], null, " ") + `
|
|
1494
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1496
|
+
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1495
1497
|
);
|
|
1496
1498
|
var _ = G(j, U, I, L, R + "." + U, t);
|
|
1497
1499
|
if (_)
|
|
@@ -1501,23 +1503,23 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1501
1503
|
}
|
|
1502
1504
|
return b(M);
|
|
1503
1505
|
}
|
|
1504
|
-
function X(
|
|
1505
|
-
switch (typeof
|
|
1506
|
+
function X(x) {
|
|
1507
|
+
switch (typeof x) {
|
|
1506
1508
|
case "number":
|
|
1507
1509
|
case "string":
|
|
1508
1510
|
case "undefined":
|
|
1509
1511
|
return !0;
|
|
1510
1512
|
case "boolean":
|
|
1511
|
-
return !
|
|
1513
|
+
return !x;
|
|
1512
1514
|
case "object":
|
|
1513
|
-
if (Array.isArray(
|
|
1514
|
-
return
|
|
1515
|
-
if (
|
|
1515
|
+
if (Array.isArray(x))
|
|
1516
|
+
return x.every(X);
|
|
1517
|
+
if (x === null || d(x))
|
|
1516
1518
|
return !0;
|
|
1517
|
-
var M = u(
|
|
1519
|
+
var M = u(x);
|
|
1518
1520
|
if (M) {
|
|
1519
|
-
var A = M.call(
|
|
1520
|
-
if (M !==
|
|
1521
|
+
var A = M.call(x), k;
|
|
1522
|
+
if (M !== x.entries) {
|
|
1521
1523
|
for (; !(k = A.next()).done; )
|
|
1522
1524
|
if (!X(k.value))
|
|
1523
1525
|
return !1;
|
|
@@ -1534,27 +1536,27 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1534
1536
|
return !1;
|
|
1535
1537
|
}
|
|
1536
1538
|
}
|
|
1537
|
-
function Q(
|
|
1538
|
-
return
|
|
1539
|
+
function Q(x, M) {
|
|
1540
|
+
return x === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
|
|
1539
1541
|
}
|
|
1540
|
-
function H(
|
|
1541
|
-
var M = typeof
|
|
1542
|
-
return Array.isArray(
|
|
1542
|
+
function H(x) {
|
|
1543
|
+
var M = typeof x;
|
|
1544
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : Q(M, x) ? "symbol" : M;
|
|
1543
1545
|
}
|
|
1544
|
-
function ee(
|
|
1545
|
-
if (typeof
|
|
1546
|
-
return "" +
|
|
1547
|
-
var M = H(
|
|
1546
|
+
function ee(x) {
|
|
1547
|
+
if (typeof x > "u" || x === null)
|
|
1548
|
+
return "" + x;
|
|
1549
|
+
var M = H(x);
|
|
1548
1550
|
if (M === "object") {
|
|
1549
|
-
if (
|
|
1551
|
+
if (x instanceof Date)
|
|
1550
1552
|
return "date";
|
|
1551
|
-
if (
|
|
1553
|
+
if (x instanceof RegExp)
|
|
1552
1554
|
return "regexp";
|
|
1553
1555
|
}
|
|
1554
1556
|
return M;
|
|
1555
1557
|
}
|
|
1556
|
-
function ae(
|
|
1557
|
-
var M = ee(
|
|
1558
|
+
function ae(x) {
|
|
1559
|
+
var M = ee(x);
|
|
1558
1560
|
switch (M) {
|
|
1559
1561
|
case "array":
|
|
1560
1562
|
case "object":
|
|
@@ -1567,8 +1569,8 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1567
1569
|
return M;
|
|
1568
1570
|
}
|
|
1569
1571
|
}
|
|
1570
|
-
function de(
|
|
1571
|
-
return !
|
|
1572
|
+
function de(x) {
|
|
1573
|
+
return !x.constructor || !x.constructor.name ? g : x.constructor.name;
|
|
1572
1574
|
}
|
|
1573
1575
|
return y.checkPropTypes = i, y.resetWarningCache = i.resetWarningCache, y.PropTypes = y, y;
|
|
1574
1576
|
}, Me;
|
|
@@ -1583,12 +1585,12 @@ function un() {
|
|
|
1583
1585
|
function t() {
|
|
1584
1586
|
}
|
|
1585
1587
|
return t.resetWarningCache = n, Pe = function() {
|
|
1586
|
-
function r(a, d, m, p,
|
|
1588
|
+
function r(a, d, m, p, h, u) {
|
|
1587
1589
|
if (u !== e) {
|
|
1588
|
-
var
|
|
1590
|
+
var g = new Error(
|
|
1589
1591
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1590
1592
|
);
|
|
1591
|
-
throw
|
|
1593
|
+
throw g.name = "Invariant Violation", g;
|
|
1592
1594
|
}
|
|
1593
1595
|
}
|
|
1594
1596
|
r.isRequired = r;
|
|
@@ -1651,7 +1653,7 @@ function fn() {
|
|
|
1651
1653
|
return ve.exports = n, ve.exports.clsx = n, ve.exports;
|
|
1652
1654
|
}
|
|
1653
1655
|
var B = {}, oe = {}, Je;
|
|
1654
|
-
function
|
|
1656
|
+
function we() {
|
|
1655
1657
|
if (Je) return oe;
|
|
1656
1658
|
Je = 1, Object.defineProperty(oe, "__esModule", {
|
|
1657
1659
|
value: !0
|
|
@@ -1710,9 +1712,9 @@ function Re() {
|
|
|
1710
1712
|
if (et) return B;
|
|
1711
1713
|
et = 1, Object.defineProperty(B, "__esModule", {
|
|
1712
1714
|
value: !0
|
|
1713
|
-
}), B.addClassName =
|
|
1714
|
-
var e =
|
|
1715
|
-
function t(
|
|
1715
|
+
}), B.addClassName = c, B.addEvent = a, B.addUserSelectStyles = T, B.createCSSTransform = y, B.createSVGTransform = w, B.getTouch = b, B.getTouchIdentifier = C, B.getTranslation = v, B.innerHeight = h, B.innerWidth = u, B.matchesSelector = i, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = g, B.outerHeight = m, B.outerWidth = p, B.removeClassName = N, B.removeEvent = d, B.scheduleRemoveUserSelectStyles = S;
|
|
1716
|
+
var e = we(), n = t(hn());
|
|
1717
|
+
function t(l, f) {
|
|
1716
1718
|
if (typeof WeakMap == "function") var P = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
|
|
1717
1719
|
return (t = function(O, E) {
|
|
1718
1720
|
if (!E && O && O.__esModule) return O;
|
|
@@ -1724,16 +1726,16 @@ function Re() {
|
|
|
1724
1726
|
}
|
|
1725
1727
|
for (const H in O) H !== "default" && {}.hasOwnProperty.call(O, H) && ((X = (z = Object.defineProperty) && Object.getOwnPropertyDescriptor(O, H)) && (X.get || X.set) ? z(Q, H, X) : Q[H] = O[H]);
|
|
1726
1728
|
return Q;
|
|
1727
|
-
})(
|
|
1729
|
+
})(l, f);
|
|
1728
1730
|
}
|
|
1729
1731
|
let r = "";
|
|
1730
|
-
function i(
|
|
1732
|
+
function i(l, f) {
|
|
1731
1733
|
return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(P) {
|
|
1732
|
-
return (0, e.isFunction)(
|
|
1733
|
-
})), (0, e.isFunction)(
|
|
1734
|
+
return (0, e.isFunction)(l[P]);
|
|
1735
|
+
})), (0, e.isFunction)(l[r]) ? l[r](f) : !1;
|
|
1734
1736
|
}
|
|
1735
|
-
function o(
|
|
1736
|
-
let $ =
|
|
1737
|
+
function o(l, f, P) {
|
|
1738
|
+
let $ = l;
|
|
1737
1739
|
do {
|
|
1738
1740
|
if (i($, f)) return !0;
|
|
1739
1741
|
if ($ === P) return !1;
|
|
@@ -1741,108 +1743,108 @@ function Re() {
|
|
|
1741
1743
|
} while ($);
|
|
1742
1744
|
return !1;
|
|
1743
1745
|
}
|
|
1744
|
-
function a(
|
|
1745
|
-
if (!
|
|
1746
|
+
function a(l, f, P, $) {
|
|
1747
|
+
if (!l) return;
|
|
1746
1748
|
const O = {
|
|
1747
1749
|
capture: !0,
|
|
1748
1750
|
...$
|
|
1749
1751
|
};
|
|
1750
|
-
|
|
1752
|
+
l.addEventListener ? l.addEventListener(f, P, O) : l.attachEvent ? l.attachEvent("on" + f, P) : l["on" + f] = P;
|
|
1751
1753
|
}
|
|
1752
|
-
function d(
|
|
1753
|
-
if (!
|
|
1754
|
+
function d(l, f, P, $) {
|
|
1755
|
+
if (!l) return;
|
|
1754
1756
|
const O = {
|
|
1755
1757
|
capture: !0,
|
|
1756
1758
|
...$
|
|
1757
1759
|
};
|
|
1758
|
-
|
|
1760
|
+
l.removeEventListener ? l.removeEventListener(f, P, O) : l.detachEvent ? l.detachEvent("on" + f, P) : l["on" + f] = null;
|
|
1759
1761
|
}
|
|
1760
|
-
function m(
|
|
1761
|
-
let f =
|
|
1762
|
-
const P =
|
|
1762
|
+
function m(l) {
|
|
1763
|
+
let f = l.clientHeight;
|
|
1764
|
+
const P = l.ownerDocument.defaultView.getComputedStyle(l);
|
|
1763
1765
|
return f += (0, e.int)(P.borderTopWidth), f += (0, e.int)(P.borderBottomWidth), f;
|
|
1764
1766
|
}
|
|
1765
|
-
function p(
|
|
1766
|
-
let f =
|
|
1767
|
-
const P =
|
|
1767
|
+
function p(l) {
|
|
1768
|
+
let f = l.clientWidth;
|
|
1769
|
+
const P = l.ownerDocument.defaultView.getComputedStyle(l);
|
|
1768
1770
|
return f += (0, e.int)(P.borderLeftWidth), f += (0, e.int)(P.borderRightWidth), f;
|
|
1769
1771
|
}
|
|
1770
|
-
function
|
|
1771
|
-
let f =
|
|
1772
|
-
const P =
|
|
1772
|
+
function h(l) {
|
|
1773
|
+
let f = l.clientHeight;
|
|
1774
|
+
const P = l.ownerDocument.defaultView.getComputedStyle(l);
|
|
1773
1775
|
return f -= (0, e.int)(P.paddingTop), f -= (0, e.int)(P.paddingBottom), f;
|
|
1774
1776
|
}
|
|
1775
|
-
function u(
|
|
1776
|
-
let f =
|
|
1777
|
-
const P =
|
|
1777
|
+
function u(l) {
|
|
1778
|
+
let f = l.clientWidth;
|
|
1779
|
+
const P = l.ownerDocument.defaultView.getComputedStyle(l);
|
|
1778
1780
|
return f -= (0, e.int)(P.paddingLeft), f -= (0, e.int)(P.paddingRight), f;
|
|
1779
1781
|
}
|
|
1780
|
-
function
|
|
1782
|
+
function g(l, f, P) {
|
|
1781
1783
|
const O = f === f.ownerDocument.body ? {
|
|
1782
1784
|
left: 0,
|
|
1783
1785
|
top: 0
|
|
1784
|
-
} : f.getBoundingClientRect(), E = (
|
|
1786
|
+
} : f.getBoundingClientRect(), E = (l.clientX + f.scrollLeft - O.left) / P, z = (l.clientY + f.scrollTop - O.top) / P;
|
|
1785
1787
|
return {
|
|
1786
1788
|
x: E,
|
|
1787
1789
|
y: z
|
|
1788
1790
|
};
|
|
1789
1791
|
}
|
|
1790
|
-
function y(
|
|
1791
|
-
const P = v(
|
|
1792
|
+
function y(l, f) {
|
|
1793
|
+
const P = v(l, f, "px");
|
|
1792
1794
|
return {
|
|
1793
1795
|
[(0, n.browserPrefixToKey)("transform", n.default)]: P
|
|
1794
1796
|
};
|
|
1795
1797
|
}
|
|
1796
|
-
function
|
|
1797
|
-
return v(
|
|
1798
|
+
function w(l, f) {
|
|
1799
|
+
return v(l, f, "");
|
|
1798
1800
|
}
|
|
1799
|
-
function v(
|
|
1801
|
+
function v(l, f, P) {
|
|
1800
1802
|
let {
|
|
1801
1803
|
x: $,
|
|
1802
1804
|
y: O
|
|
1803
|
-
} =
|
|
1805
|
+
} = l, E = `translate(${$}${P},${O}${P})`;
|
|
1804
1806
|
if (f) {
|
|
1805
1807
|
const z = `${typeof f.x == "string" ? f.x : f.x + P}`, X = `${typeof f.y == "string" ? f.y : f.y + P}`;
|
|
1806
1808
|
E = `translate(${z}, ${X})` + E;
|
|
1807
1809
|
}
|
|
1808
1810
|
return E;
|
|
1809
1811
|
}
|
|
1810
|
-
function b(
|
|
1811
|
-
return
|
|
1812
|
+
function b(l, f) {
|
|
1813
|
+
return l.targetTouches && (0, e.findInArray)(l.targetTouches, (P) => f === P.identifier) || l.changedTouches && (0, e.findInArray)(l.changedTouches, (P) => f === P.identifier);
|
|
1812
1814
|
}
|
|
1813
|
-
function C(
|
|
1814
|
-
if (
|
|
1815
|
-
if (
|
|
1815
|
+
function C(l) {
|
|
1816
|
+
if (l.targetTouches && l.targetTouches[0]) return l.targetTouches[0].identifier;
|
|
1817
|
+
if (l.changedTouches && l.changedTouches[0]) return l.changedTouches[0].identifier;
|
|
1816
1818
|
}
|
|
1817
|
-
function T(
|
|
1818
|
-
if (!
|
|
1819
|
-
let f =
|
|
1820
|
-
f || (f =
|
|
1819
|
+
function T(l) {
|
|
1820
|
+
if (!l) return;
|
|
1821
|
+
let f = l.getElementById("react-draggable-style-el");
|
|
1822
|
+
f || (f = l.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
1821
1823
|
`, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
1822
|
-
`,
|
|
1824
|
+
`, l.getElementsByTagName("head")[0].appendChild(f)), l.body && c(l.body, "react-draggable-transparent-selection");
|
|
1823
1825
|
}
|
|
1824
|
-
function S(
|
|
1826
|
+
function S(l) {
|
|
1825
1827
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
1826
|
-
D(
|
|
1827
|
-
}) : D(
|
|
1828
|
+
D(l);
|
|
1829
|
+
}) : D(l);
|
|
1828
1830
|
}
|
|
1829
|
-
function D(
|
|
1830
|
-
if (
|
|
1831
|
+
function D(l) {
|
|
1832
|
+
if (l)
|
|
1831
1833
|
try {
|
|
1832
|
-
if (
|
|
1833
|
-
|
|
1834
|
+
if (l.body && N(l.body, "react-draggable-transparent-selection"), l.selection)
|
|
1835
|
+
l.selection.empty();
|
|
1834
1836
|
else {
|
|
1835
|
-
const f = (
|
|
1837
|
+
const f = (l.defaultView || window).getSelection();
|
|
1836
1838
|
f && f.type !== "Caret" && f.removeAllRanges();
|
|
1837
1839
|
}
|
|
1838
1840
|
} catch {
|
|
1839
1841
|
}
|
|
1840
1842
|
}
|
|
1841
|
-
function l
|
|
1842
|
-
|
|
1843
|
+
function c(l, f) {
|
|
1844
|
+
l.classList ? l.classList.add(f) : l.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (l.className += ` ${f}`);
|
|
1843
1845
|
}
|
|
1844
|
-
function N(
|
|
1845
|
-
|
|
1846
|
+
function N(l, f) {
|
|
1847
|
+
l.classList ? l.classList.remove(f) : l.className = l.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
|
|
1846
1848
|
}
|
|
1847
1849
|
return B;
|
|
1848
1850
|
}
|
|
@@ -1852,34 +1854,34 @@ function bt() {
|
|
|
1852
1854
|
tt = 1, Object.defineProperty(ne, "__esModule", {
|
|
1853
1855
|
value: !0
|
|
1854
1856
|
}), ne.canDragX = i, ne.canDragY = o, ne.createCoreData = d, ne.createDraggableData = m, ne.getBoundPosition = t, ne.getControlPosition = a, ne.snapToGrid = r;
|
|
1855
|
-
var e =
|
|
1856
|
-
function t(u,
|
|
1857
|
-
if (!u.props.bounds) return [
|
|
1857
|
+
var e = we(), n = Re();
|
|
1858
|
+
function t(u, g, y) {
|
|
1859
|
+
if (!u.props.bounds) return [g, y];
|
|
1858
1860
|
let {
|
|
1859
|
-
bounds:
|
|
1861
|
+
bounds: w
|
|
1860
1862
|
} = u.props;
|
|
1861
|
-
|
|
1862
|
-
const v =
|
|
1863
|
-
if (typeof
|
|
1863
|
+
w = typeof w == "string" ? w : p(w);
|
|
1864
|
+
const v = h(u);
|
|
1865
|
+
if (typeof w == "string") {
|
|
1864
1866
|
const {
|
|
1865
1867
|
ownerDocument: b
|
|
1866
1868
|
} = v, C = b.defaultView;
|
|
1867
1869
|
let T;
|
|
1868
|
-
if (
|
|
1869
|
-
throw new Error('Bounds selector "' +
|
|
1870
|
-
const S = T, D = C.getComputedStyle(v),
|
|
1871
|
-
|
|
1872
|
-
left: -v.offsetLeft + (0, e.int)(
|
|
1873
|
-
top: -v.offsetTop + (0, e.int)(
|
|
1874
|
-
right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(
|
|
1875
|
-
bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(
|
|
1870
|
+
if (w === "parent" ? T = v.parentNode : T = v.getRootNode().querySelector(w), !(T instanceof C.HTMLElement))
|
|
1871
|
+
throw new Error('Bounds selector "' + w + '" could not find an element.');
|
|
1872
|
+
const S = T, D = C.getComputedStyle(v), c = C.getComputedStyle(S);
|
|
1873
|
+
w = {
|
|
1874
|
+
left: -v.offsetLeft + (0, e.int)(c.paddingLeft) + (0, e.int)(D.marginLeft),
|
|
1875
|
+
top: -v.offsetTop + (0, e.int)(c.paddingTop) + (0, e.int)(D.marginTop),
|
|
1876
|
+
right: (0, n.innerWidth)(S) - (0, n.outerWidth)(v) - v.offsetLeft + (0, e.int)(c.paddingRight) - (0, e.int)(D.marginRight),
|
|
1877
|
+
bottom: (0, n.innerHeight)(S) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(c.paddingBottom) - (0, e.int)(D.marginBottom)
|
|
1876
1878
|
};
|
|
1877
1879
|
}
|
|
1878
|
-
return (0, e.isNum)(
|
|
1880
|
+
return (0, e.isNum)(w.right) && (g = Math.min(g, w.right)), (0, e.isNum)(w.bottom) && (y = Math.min(y, w.bottom)), (0, e.isNum)(w.left) && (g = Math.max(g, w.left)), (0, e.isNum)(w.top) && (y = Math.max(y, w.top)), [g, y];
|
|
1879
1881
|
}
|
|
1880
|
-
function r(u,
|
|
1881
|
-
const
|
|
1882
|
-
return [
|
|
1882
|
+
function r(u, g, y) {
|
|
1883
|
+
const w = Math.round(g / u[0]) * u[0], v = Math.round(y / u[1]) * u[1];
|
|
1884
|
+
return [w, v];
|
|
1883
1885
|
}
|
|
1884
1886
|
function i(u) {
|
|
1885
1887
|
return u.props.axis === "both" || u.props.axis === "x";
|
|
@@ -1887,40 +1889,40 @@ function bt() {
|
|
|
1887
1889
|
function o(u) {
|
|
1888
1890
|
return u.props.axis === "both" || u.props.axis === "y";
|
|
1889
1891
|
}
|
|
1890
|
-
function a(u,
|
|
1891
|
-
const
|
|
1892
|
-
if (typeof
|
|
1893
|
-
const v =
|
|
1894
|
-
return (0, n.offsetXYFromParent)(
|
|
1892
|
+
function a(u, g, y) {
|
|
1893
|
+
const w = typeof g == "number" ? (0, n.getTouch)(u, g) : null;
|
|
1894
|
+
if (typeof g == "number" && !w) return null;
|
|
1895
|
+
const v = h(y), b = y.props.offsetParent || v.offsetParent || v.ownerDocument.body;
|
|
1896
|
+
return (0, n.offsetXYFromParent)(w || u, b, y.props.scale);
|
|
1895
1897
|
}
|
|
1896
|
-
function d(u,
|
|
1897
|
-
const
|
|
1898
|
-
return
|
|
1898
|
+
function d(u, g, y) {
|
|
1899
|
+
const w = !(0, e.isNum)(u.lastX), v = h(u);
|
|
1900
|
+
return w ? {
|
|
1899
1901
|
node: v,
|
|
1900
1902
|
deltaX: 0,
|
|
1901
1903
|
deltaY: 0,
|
|
1902
|
-
lastX:
|
|
1904
|
+
lastX: g,
|
|
1903
1905
|
lastY: y,
|
|
1904
|
-
x:
|
|
1906
|
+
x: g,
|
|
1905
1907
|
y
|
|
1906
1908
|
} : {
|
|
1907
1909
|
node: v,
|
|
1908
|
-
deltaX:
|
|
1910
|
+
deltaX: g - u.lastX,
|
|
1909
1911
|
deltaY: y - u.lastY,
|
|
1910
1912
|
lastX: u.lastX,
|
|
1911
1913
|
lastY: u.lastY,
|
|
1912
|
-
x:
|
|
1914
|
+
x: g,
|
|
1913
1915
|
y
|
|
1914
1916
|
};
|
|
1915
1917
|
}
|
|
1916
|
-
function m(u,
|
|
1918
|
+
function m(u, g) {
|
|
1917
1919
|
const y = u.props.scale;
|
|
1918
1920
|
return {
|
|
1919
|
-
node:
|
|
1920
|
-
x: u.state.x +
|
|
1921
|
-
y: u.state.y +
|
|
1922
|
-
deltaX:
|
|
1923
|
-
deltaY:
|
|
1921
|
+
node: g.node,
|
|
1922
|
+
x: u.state.x + g.deltaX / y,
|
|
1923
|
+
y: u.state.y + g.deltaY / y,
|
|
1924
|
+
deltaX: g.deltaX / y,
|
|
1925
|
+
deltaY: g.deltaY / y,
|
|
1924
1926
|
lastX: u.state.x,
|
|
1925
1927
|
lastY: u.state.y
|
|
1926
1928
|
};
|
|
@@ -1933,16 +1935,16 @@ function bt() {
|
|
|
1933
1935
|
bottom: u.bottom
|
|
1934
1936
|
};
|
|
1935
1937
|
}
|
|
1936
|
-
function
|
|
1937
|
-
const
|
|
1938
|
-
if (!
|
|
1938
|
+
function h(u) {
|
|
1939
|
+
const g = u.findDOMNode();
|
|
1940
|
+
if (!g)
|
|
1939
1941
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
1940
|
-
return
|
|
1942
|
+
return g;
|
|
1941
1943
|
}
|
|
1942
1944
|
return ne;
|
|
1943
1945
|
}
|
|
1944
1946
|
var he = {}, be = {}, nt;
|
|
1945
|
-
function
|
|
1947
|
+
function xt() {
|
|
1946
1948
|
if (nt) return be;
|
|
1947
1949
|
nt = 1, Object.defineProperty(be, "__esModule", {
|
|
1948
1950
|
value: !0
|
|
@@ -1957,7 +1959,7 @@ function gn() {
|
|
|
1957
1959
|
rt = 1, Object.defineProperty(he, "__esModule", {
|
|
1958
1960
|
value: !0
|
|
1959
1961
|
}), he.default = void 0;
|
|
1960
|
-
var e = m(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o =
|
|
1962
|
+
var e = m(se), n = d(/* @__PURE__ */ vt()), t = d(st), r = Re(), i = bt(), o = we(), a = d(xt());
|
|
1961
1963
|
function d(v) {
|
|
1962
1964
|
return v && v.__esModule ? v : { default: v };
|
|
1963
1965
|
}
|
|
@@ -1965,20 +1967,20 @@ function gn() {
|
|
|
1965
1967
|
if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
|
|
1966
1968
|
return (m = function(S, D) {
|
|
1967
1969
|
if (!D && S && S.__esModule) return S;
|
|
1968
|
-
var
|
|
1969
|
-
if (S === null || typeof S != "object" && typeof S != "function") return
|
|
1970
|
-
if (
|
|
1971
|
-
if (
|
|
1972
|
-
|
|
1970
|
+
var c, N, l = { __proto__: null, default: S };
|
|
1971
|
+
if (S === null || typeof S != "object" && typeof S != "function") return l;
|
|
1972
|
+
if (c = D ? T : C) {
|
|
1973
|
+
if (c.has(S)) return c.get(S);
|
|
1974
|
+
c.set(S, l);
|
|
1973
1975
|
}
|
|
1974
|
-
for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (
|
|
1975
|
-
return
|
|
1976
|
+
for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((N = (c = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (N.get || N.set) ? c(l, f, N) : l[f] = S[f]);
|
|
1977
|
+
return l;
|
|
1976
1978
|
})(v, b);
|
|
1977
1979
|
}
|
|
1978
1980
|
function p(v, b, C) {
|
|
1979
|
-
return (b =
|
|
1981
|
+
return (b = h(b)) in v ? Object.defineProperty(v, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = C, v;
|
|
1980
1982
|
}
|
|
1981
|
-
function
|
|
1983
|
+
function h(v) {
|
|
1982
1984
|
var b = u(v, "string");
|
|
1983
1985
|
return typeof b == "symbol" ? b : b + "";
|
|
1984
1986
|
}
|
|
@@ -1992,7 +1994,7 @@ function gn() {
|
|
|
1992
1994
|
}
|
|
1993
1995
|
return (b === "string" ? String : Number)(v);
|
|
1994
1996
|
}
|
|
1995
|
-
const
|
|
1997
|
+
const g = {
|
|
1996
1998
|
touch: {
|
|
1997
1999
|
start: "touchstart",
|
|
1998
2000
|
move: "touchmove",
|
|
@@ -2004,7 +2006,7 @@ function gn() {
|
|
|
2004
2006
|
stop: "mouseup"
|
|
2005
2007
|
}
|
|
2006
2008
|
};
|
|
2007
|
-
let y =
|
|
2009
|
+
let y = g.mouse, w = class extends e.Component {
|
|
2008
2010
|
constructor() {
|
|
2009
2011
|
super(...arguments), p(this, "dragging", !1), p(this, "lastX", NaN), p(this, "lastY", NaN), p(this, "touchIdentifier", null), p(this, "mounted", !1), p(this, "handleDragStart", (b) => {
|
|
2010
2012
|
if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
|
|
@@ -2022,10 +2024,10 @@ function gn() {
|
|
|
2022
2024
|
const D = (0, i.getControlPosition)(b, S, this);
|
|
2023
2025
|
if (D == null) return;
|
|
2024
2026
|
const {
|
|
2025
|
-
x:
|
|
2027
|
+
x: c,
|
|
2026
2028
|
y: N
|
|
2027
|
-
} = D,
|
|
2028
|
-
(0, a.default)("DraggableCore: handleDragStart: %j",
|
|
2029
|
+
} = D, l = (0, i.createCoreData)(this, c, N);
|
|
2030
|
+
(0, a.default)("DraggableCore: handleDragStart: %j", l), (0, a.default)("calling", this.props.onStart), !(this.props.onStart(b, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(T), this.dragging = !0, this.lastX = c, this.lastY = N, (0, r.addEvent)(T, y.move, this.handleDrag), (0, r.addEvent)(T, y.stop, this.handleDragStop));
|
|
2029
2031
|
}), p(this, "handleDrag", (b) => {
|
|
2030
2032
|
const C = (0, i.getControlPosition)(b, this.touchIdentifier, this);
|
|
2031
2033
|
if (C == null) return;
|
|
@@ -2034,17 +2036,17 @@ function gn() {
|
|
|
2034
2036
|
y: S
|
|
2035
2037
|
} = C;
|
|
2036
2038
|
if (Array.isArray(this.props.grid)) {
|
|
2037
|
-
let N = T - this.lastX,
|
|
2038
|
-
if ([N,
|
|
2039
|
-
T = this.lastX + N, S = this.lastY +
|
|
2039
|
+
let N = T - this.lastX, l = S - this.lastY;
|
|
2040
|
+
if ([N, l] = (0, i.snapToGrid)(this.props.grid, N, l), !N && !l) return;
|
|
2041
|
+
T = this.lastX + N, S = this.lastY + l;
|
|
2040
2042
|
}
|
|
2041
2043
|
const D = (0, i.createCoreData)(this, T, S);
|
|
2042
2044
|
if ((0, a.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
|
|
2043
2045
|
try {
|
|
2044
2046
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
2045
2047
|
} catch {
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2048
|
+
const l = document.createEvent("MouseEvents");
|
|
2049
|
+
l.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(l);
|
|
2048
2050
|
}
|
|
2049
2051
|
return;
|
|
2050
2052
|
}
|
|
@@ -2058,19 +2060,19 @@ function gn() {
|
|
|
2058
2060
|
y: S
|
|
2059
2061
|
} = C;
|
|
2060
2062
|
if (Array.isArray(this.props.grid)) {
|
|
2061
|
-
let
|
|
2062
|
-
[
|
|
2063
|
+
let l = T - this.lastX || 0, f = S - this.lastY || 0;
|
|
2064
|
+
[l, f] = (0, i.snapToGrid)(this.props.grid, l, f), T = this.lastX + l, S = this.lastY + f;
|
|
2063
2065
|
}
|
|
2064
2066
|
const D = (0, i.createCoreData)(this, T, S);
|
|
2065
2067
|
if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
|
|
2066
2068
|
const N = this.findDOMNode();
|
|
2067
2069
|
N && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(N.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, N && ((0, a.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(N.ownerDocument, y.move, this.handleDrag), (0, r.removeEvent)(N.ownerDocument, y.stop, this.handleDragStop));
|
|
2068
|
-
}), p(this, "onMouseDown", (b) => (y =
|
|
2070
|
+
}), p(this, "onMouseDown", (b) => (y = g.mouse, this.handleDragStart(b))), p(this, "onMouseUp", (b) => (y = g.mouse, this.handleDragStop(b))), p(this, "onTouchStart", (b) => (y = g.touch, this.handleDragStart(b))), p(this, "onTouchEnd", (b) => (y = g.touch, this.handleDragStop(b)));
|
|
2069
2071
|
}
|
|
2070
2072
|
componentDidMount() {
|
|
2071
2073
|
this.mounted = !0;
|
|
2072
2074
|
const b = this.findDOMNode();
|
|
2073
|
-
b && (0, r.addEvent)(b,
|
|
2075
|
+
b && (0, r.addEvent)(b, g.touch.start, this.onTouchStart, {
|
|
2074
2076
|
passive: !1
|
|
2075
2077
|
});
|
|
2076
2078
|
}
|
|
@@ -2081,7 +2083,7 @@ function gn() {
|
|
|
2081
2083
|
const {
|
|
2082
2084
|
ownerDocument: C
|
|
2083
2085
|
} = b;
|
|
2084
|
-
(0, r.removeEvent)(C,
|
|
2086
|
+
(0, r.removeEvent)(C, g.mouse.move, this.handleDrag), (0, r.removeEvent)(C, g.touch.move, this.handleDrag), (0, r.removeEvent)(C, g.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, g.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, g.touch.start, this.onTouchStart, {
|
|
2085
2087
|
passive: !1
|
|
2086
2088
|
}), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
|
|
2087
2089
|
}
|
|
@@ -2104,7 +2106,7 @@ function gn() {
|
|
|
2104
2106
|
});
|
|
2105
2107
|
}
|
|
2106
2108
|
};
|
|
2107
|
-
return he.default =
|
|
2109
|
+
return he.default = w, p(w, "displayName", "DraggableCore"), p(w, "propTypes", {
|
|
2108
2110
|
/**
|
|
2109
2111
|
* `allowAnyClick` allows dragging using any mouse button.
|
|
2110
2112
|
* By default, we only accept the left button.
|
|
@@ -2234,7 +2236,7 @@ function gn() {
|
|
|
2234
2236
|
className: o.dontSetMe,
|
|
2235
2237
|
style: o.dontSetMe,
|
|
2236
2238
|
transform: o.dontSetMe
|
|
2237
|
-
}), p(
|
|
2239
|
+
}), p(w, "defaultProps", {
|
|
2238
2240
|
allowAnyClick: !1,
|
|
2239
2241
|
// by default only accept left click
|
|
2240
2242
|
allowMobileScroll: !1,
|
|
@@ -2262,37 +2264,37 @@ function mn() {
|
|
|
2262
2264
|
return m.default;
|
|
2263
2265
|
}
|
|
2264
2266
|
}), e.default = void 0;
|
|
2265
|
-
var n = u(se), t =
|
|
2266
|
-
function
|
|
2267
|
+
var n = u(se), t = h(/* @__PURE__ */ vt()), r = h(st), i = fn(), o = Re(), a = bt(), d = we(), m = h(gn()), p = h(xt());
|
|
2268
|
+
function h(C) {
|
|
2267
2269
|
return C && C.__esModule ? C : { default: C };
|
|
2268
2270
|
}
|
|
2269
2271
|
function u(C, T) {
|
|
2270
2272
|
if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
|
|
2271
|
-
return (u = function(
|
|
2272
|
-
if (!N &&
|
|
2273
|
-
var
|
|
2274
|
-
if (
|
|
2275
|
-
if (
|
|
2276
|
-
if (
|
|
2277
|
-
|
|
2273
|
+
return (u = function(c, N) {
|
|
2274
|
+
if (!N && c && c.__esModule) return c;
|
|
2275
|
+
var l, f, P = { __proto__: null, default: c };
|
|
2276
|
+
if (c === null || typeof c != "object" && typeof c != "function") return P;
|
|
2277
|
+
if (l = N ? D : S) {
|
|
2278
|
+
if (l.has(c)) return l.get(c);
|
|
2279
|
+
l.set(c, P);
|
|
2278
2280
|
}
|
|
2279
|
-
for (const $ in
|
|
2281
|
+
for (const $ in c) $ !== "default" && {}.hasOwnProperty.call(c, $) && ((f = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(c, $)) && (f.get || f.set) ? l(P, $, f) : P[$] = c[$]);
|
|
2280
2282
|
return P;
|
|
2281
2283
|
})(C, T);
|
|
2282
2284
|
}
|
|
2283
|
-
function
|
|
2284
|
-
return
|
|
2285
|
+
function g() {
|
|
2286
|
+
return g = Object.assign ? Object.assign.bind() : function(C) {
|
|
2285
2287
|
for (var T = 1; T < arguments.length; T++) {
|
|
2286
2288
|
var S = arguments[T];
|
|
2287
2289
|
for (var D in S) ({}).hasOwnProperty.call(S, D) && (C[D] = S[D]);
|
|
2288
2290
|
}
|
|
2289
2291
|
return C;
|
|
2290
|
-
},
|
|
2292
|
+
}, g.apply(null, arguments);
|
|
2291
2293
|
}
|
|
2292
2294
|
function y(C, T, S) {
|
|
2293
|
-
return (T =
|
|
2295
|
+
return (T = w(T)) in C ? Object.defineProperty(C, T, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : C[T] = S, C;
|
|
2294
2296
|
}
|
|
2295
|
-
function
|
|
2297
|
+
function w(C) {
|
|
2296
2298
|
var T = v(C, "string");
|
|
2297
2299
|
return typeof T == "symbol" ? T : T + "";
|
|
2298
2300
|
}
|
|
@@ -2313,11 +2315,11 @@ function mn() {
|
|
|
2313
2315
|
let {
|
|
2314
2316
|
position: D
|
|
2315
2317
|
} = T, {
|
|
2316
|
-
prevPropsPosition:
|
|
2318
|
+
prevPropsPosition: c
|
|
2317
2319
|
} = S;
|
|
2318
|
-
return D && (!
|
|
2320
|
+
return D && (!c || D.x !== c.x || D.y !== c.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
|
|
2319
2321
|
position: D,
|
|
2320
|
-
prevPropsPosition:
|
|
2322
|
+
prevPropsPosition: c
|
|
2321
2323
|
}), {
|
|
2322
2324
|
x: D.x,
|
|
2323
2325
|
y: D.y,
|
|
@@ -2336,9 +2338,9 @@ function mn() {
|
|
|
2336
2338
|
}), y(this, "onDrag", (S, D) => {
|
|
2337
2339
|
if (!this.state.dragging) return !1;
|
|
2338
2340
|
(0, p.default)("Draggable: onDrag: %j", D);
|
|
2339
|
-
const
|
|
2340
|
-
x:
|
|
2341
|
-
y:
|
|
2341
|
+
const c = (0, a.createDraggableData)(this, D), N = {
|
|
2342
|
+
x: c.x,
|
|
2343
|
+
y: c.y,
|
|
2342
2344
|
slackX: 0,
|
|
2343
2345
|
slackY: 0
|
|
2344
2346
|
};
|
|
@@ -2349,9 +2351,9 @@ function mn() {
|
|
|
2349
2351
|
} = N;
|
|
2350
2352
|
N.x += this.state.slackX, N.y += this.state.slackY;
|
|
2351
2353
|
const [$, O] = (0, a.getBoundPosition)(this, N.x, N.y);
|
|
2352
|
-
N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y),
|
|
2354
|
+
N.x = $, N.y = O, N.slackX = this.state.slackX + (f - N.x), N.slackY = this.state.slackY + (P - N.y), c.x = N.x, c.y = N.y, c.deltaX = N.x - this.state.x, c.deltaY = N.y - this.state.y;
|
|
2353
2355
|
}
|
|
2354
|
-
if (this.props.onDrag(S,
|
|
2356
|
+
if (this.props.onDrag(S, c) === !1) return !1;
|
|
2355
2357
|
this.setState(N);
|
|
2356
2358
|
}), y(this, "onDragStop", (S, D) => {
|
|
2357
2359
|
if (!this.state.dragging || this.props.onStop(S, (0, a.createDraggableData)(this, D)) === !1) return !1;
|
|
@@ -2407,9 +2409,9 @@ function mn() {
|
|
|
2407
2409
|
axis: T,
|
|
2408
2410
|
bounds: S,
|
|
2409
2411
|
children: D,
|
|
2410
|
-
defaultPosition:
|
|
2412
|
+
defaultPosition: c,
|
|
2411
2413
|
defaultClassName: N,
|
|
2412
|
-
defaultClassNameDragging:
|
|
2414
|
+
defaultClassNameDragging: l,
|
|
2413
2415
|
defaultClassNameDragged: f,
|
|
2414
2416
|
position: P,
|
|
2415
2417
|
positionOffset: $,
|
|
@@ -2417,7 +2419,7 @@ function mn() {
|
|
|
2417
2419
|
...E
|
|
2418
2420
|
} = this.props;
|
|
2419
2421
|
let z = {}, X = null;
|
|
2420
|
-
const H = !!!P || this.state.dragging, ee = P ||
|
|
2422
|
+
const H = !!!P || this.state.dragging, ee = P || c, ae = {
|
|
2421
2423
|
// Set left if horizontal drag is enabled
|
|
2422
2424
|
x: (0, a.canDragX)(this) && H ? this.state.x : ee.x,
|
|
2423
2425
|
// Set top if vertical drag is enabled
|
|
@@ -2425,10 +2427,10 @@ function mn() {
|
|
|
2425
2427
|
};
|
|
2426
2428
|
this.state.isElementSVG ? X = (0, o.createSVGTransform)(ae, $) : z = (0, o.createCSSTransform)(ae, $);
|
|
2427
2429
|
const de = (0, i.clsx)(D.props.className || "", N, {
|
|
2428
|
-
[
|
|
2430
|
+
[l]: this.state.dragging,
|
|
2429
2431
|
[f]: this.state.dragged
|
|
2430
2432
|
});
|
|
2431
|
-
return /* @__PURE__ */ n.createElement(m.default,
|
|
2433
|
+
return /* @__PURE__ */ n.createElement(m.default, g({}, E, {
|
|
2432
2434
|
onStart: this.onDragStart,
|
|
2433
2435
|
onDrag: this.onDrag,
|
|
2434
2436
|
onStop: this.onDragStop
|
|
@@ -2575,7 +2577,7 @@ function pn() {
|
|
|
2575
2577
|
return fe.exports = e, fe.exports.default = e, fe.exports.DraggableCore = n, fe.exports;
|
|
2576
2578
|
}
|
|
2577
2579
|
var yn = pn();
|
|
2578
|
-
const vn = /* @__PURE__ */ on(yn), bn =
|
|
2580
|
+
const vn = /* @__PURE__ */ on(yn), bn = le((e, n) => {
|
|
2579
2581
|
const r = {
|
|
2580
2582
|
...{
|
|
2581
2583
|
// 1. Take it out of the document flow
|
|
@@ -2593,7 +2595,7 @@ const vn = /* @__PURE__ */ on(yn), bn = ce((e, n) => {
|
|
|
2593
2595
|
boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
|
|
2594
2596
|
},
|
|
2595
2597
|
...e.style || {}
|
|
2596
|
-
}, i = e.testId || "not-set", o = e.className || "panel", a =
|
|
2598
|
+
}, i = e.testId || "not-set", o = e.className || "panel", a = wt(null);
|
|
2597
2599
|
return (
|
|
2598
2600
|
// 3. Pass the internal ref to the Draggable component via 'nodeRef'
|
|
2599
2601
|
/* @__PURE__ */ s(
|
|
@@ -2603,10 +2605,10 @@ const vn = /* @__PURE__ */ on(yn), bn = ce((e, n) => {
|
|
|
2603
2605
|
"data-testid": i,
|
|
2604
2606
|
axis: "both",
|
|
2605
2607
|
handle: ".handle",
|
|
2606
|
-
onStart: (p,
|
|
2608
|
+
onStart: (p, h) => {
|
|
2607
2609
|
e.onDraggingChange?.(!0);
|
|
2608
2610
|
},
|
|
2609
|
-
onStop: (p,
|
|
2611
|
+
onStop: (p, h) => {
|
|
2610
2612
|
setTimeout(() => {
|
|
2611
2613
|
e.onDraggingChange?.(!1);
|
|
2612
2614
|
}, 100);
|
|
@@ -2633,11 +2635,11 @@ function tr({ children: e }) {
|
|
|
2633
2635
|
}
|
|
2634
2636
|
const nr = (e) => {
|
|
2635
2637
|
console.warn("showToast TODO", e);
|
|
2636
|
-
},
|
|
2637
|
-
let t =
|
|
2638
|
+
}, xn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, rr = le((e, n) => {
|
|
2639
|
+
let t = lt(Number(e.zoomScale || 0));
|
|
2638
2640
|
const r = e.responsiveGrid || !1, i = e.isEditing || !1, o = {
|
|
2639
2641
|
"--bwj-dashboard-transform-scale": t,
|
|
2640
|
-
"--bwj-dashboard-add-cols":
|
|
2642
|
+
"--bwj-dashboard-add-cols": xn(t)
|
|
2641
2643
|
}, a = Z(
|
|
2642
2644
|
"dashboard-main-grid w-full",
|
|
2643
2645
|
i ? "editing" : "",
|
|
@@ -2645,7 +2647,7 @@ const nr = (e) => {
|
|
|
2645
2647
|
`border border-dashed ${i ? "border-primary border-opacity-50" : "border-transparent"}`
|
|
2646
2648
|
);
|
|
2647
2649
|
return /* @__PURE__ */ s("div", { className: a, style: o, children: e.children });
|
|
2648
|
-
}), $e = "size-5",
|
|
2650
|
+
}), $e = "size-5", wn = (e, n) => {
|
|
2649
2651
|
const t = e.hideTitle && !e.isEditing, r = e.noBorder;
|
|
2650
2652
|
let i = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
|
|
2651
2653
|
r ? i = `${i} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? i = `${i} ${e.borderCssClasses}` : i = `${i} border-card-invert border-opacity-20`, e.noShadow && (i = `${i} no-shadow`), e.noPadding && (i = `${i} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? i = `${i} ${e.backgroundCssClasses}` : i = `${i} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (i = `${i} ${e.size}-widget`);
|
|
@@ -2716,7 +2718,7 @@ const nr = (e) => {
|
|
|
2716
2718
|
] }),
|
|
2717
2719
|
/* @__PURE__ */ s("div", { className: "widget-inner", children: e.children })
|
|
2718
2720
|
] });
|
|
2719
|
-
}, Cn =
|
|
2721
|
+
}, Cn = le(wn);
|
|
2720
2722
|
function Sn(e) {
|
|
2721
2723
|
return /* @__PURE__ */ s("div", { className: "dashboard-widget", children: /* @__PURE__ */ W("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
|
|
2722
2724
|
/* @__PURE__ */ s("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
|
|
@@ -2734,23 +2736,23 @@ function Dn({
|
|
|
2734
2736
|
isEditing: d,
|
|
2735
2737
|
onRemoveClick: m,
|
|
2736
2738
|
onMoveClick: p,
|
|
2737
|
-
selectContainer:
|
|
2739
|
+
selectContainer: h
|
|
2738
2740
|
}) {
|
|
2739
|
-
const u = `${t}`.split("_"),
|
|
2740
|
-
if (!
|
|
2741
|
+
const u = `${t}`.split("_"), g = u.length > 1, y = g ? u[0] : t, w = a.get(y);
|
|
2742
|
+
if (!w)
|
|
2741
2743
|
return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
|
|
2742
2744
|
"Widget not found in catalog: ",
|
|
2743
2745
|
y
|
|
2744
2746
|
] }) });
|
|
2745
2747
|
let v = null, b = !1;
|
|
2746
|
-
if (
|
|
2747
|
-
if (!
|
|
2748
|
-
if (
|
|
2749
|
-
return
|
|
2750
|
-
if (
|
|
2751
|
-
const
|
|
2748
|
+
if (w.component ? (v = w.component, b = !1) : w.loader && (b = !0, v = at(() => {
|
|
2749
|
+
if (!w) return null;
|
|
2750
|
+
if (w.component)
|
|
2751
|
+
return w.component;
|
|
2752
|
+
if (w.loader) {
|
|
2753
|
+
const l = async () => {
|
|
2752
2754
|
try {
|
|
2753
|
-
return await
|
|
2755
|
+
return await w.loader();
|
|
2754
2756
|
} catch (f) {
|
|
2755
2757
|
return console.error(`CDN Load Failure for ${t}:`, f), {
|
|
2756
2758
|
default: () => /* @__PURE__ */ s(Cn, { ...D, children: /* @__PURE__ */ W("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
@@ -2760,78 +2762,78 @@ function Dn({
|
|
|
2760
2762
|
'"'
|
|
2761
2763
|
] }),
|
|
2762
2764
|
/* @__PURE__ */ s("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
|
|
2763
|
-
/* @__PURE__ */ s("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(
|
|
2765
|
+
/* @__PURE__ */ s("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(w.meta || {}, null, 2) })
|
|
2764
2766
|
] }) })
|
|
2765
2767
|
};
|
|
2766
2768
|
}
|
|
2767
2769
|
};
|
|
2768
|
-
return se.lazy(
|
|
2770
|
+
return se.lazy(l);
|
|
2769
2771
|
}
|
|
2770
2772
|
return null;
|
|
2771
|
-
}, [
|
|
2773
|
+
}, [w, t])), !v)
|
|
2772
2774
|
return /* @__PURE__ */ s("div", { className: "flex", children: /* @__PURE__ */ W("p", { children: [
|
|
2773
2775
|
"Widget definition incomplete: ",
|
|
2774
2776
|
y
|
|
2775
2777
|
] }) });
|
|
2776
|
-
const C = !!
|
|
2778
|
+
const C = !!w.isContainer, T = g ? gt(t) : "", S = C ? (o || []).filter((l) => l.parentWidgetKey === t) : [], D = {
|
|
2777
2779
|
index: e,
|
|
2778
2780
|
maxIndex: n,
|
|
2779
2781
|
widgetKey: t,
|
|
2780
2782
|
parentWidgetKey: r,
|
|
2781
2783
|
isEditing: d,
|
|
2782
|
-
title:
|
|
2784
|
+
title: g ? T : w.title,
|
|
2783
2785
|
onRemoveClick: m,
|
|
2784
2786
|
onMoveClick: p
|
|
2785
|
-
},
|
|
2787
|
+
}, c = C ? {
|
|
2786
2788
|
highlight: i === t,
|
|
2787
|
-
selectContainer:
|
|
2789
|
+
selectContainer: h,
|
|
2788
2790
|
// The children prop is the recursive call back to DynamicWidgetLoader
|
|
2789
|
-
children: S.map((
|
|
2791
|
+
children: S.map((l, f) => /* @__PURE__ */ s(
|
|
2790
2792
|
Dn,
|
|
2791
2793
|
{
|
|
2792
2794
|
index: f,
|
|
2793
2795
|
maxIndex: S.length - 1,
|
|
2794
|
-
widgetKey:
|
|
2795
|
-
parentWidgetKey:
|
|
2796
|
+
widgetKey: l.widgetKey,
|
|
2797
|
+
parentWidgetKey: l.parentWidgetKey,
|
|
2796
2798
|
widgetCatalog: a,
|
|
2797
2799
|
isEditing: d,
|
|
2798
2800
|
onRemoveClick: m,
|
|
2799
2801
|
onMoveClick: p
|
|
2800
2802
|
},
|
|
2801
|
-
`${
|
|
2803
|
+
`${l.widgetKey}_${f}`
|
|
2802
2804
|
))
|
|
2803
|
-
} : {}, N = () => /* @__PURE__ */ s(v, { ...D, ...
|
|
2804
|
-
return b ? /* @__PURE__ */ s(Ct, { fallback: /* @__PURE__ */ s(Sn, { title: `Loading ${
|
|
2805
|
+
} : {}, N = () => /* @__PURE__ */ s(v, { ...D, ...c });
|
|
2806
|
+
return b ? /* @__PURE__ */ s(Ct, { fallback: /* @__PURE__ */ s(Sn, { title: `Loading ${w.title}` }), children: /* @__PURE__ */ s(N, {}) }) : /* @__PURE__ */ s(N, {});
|
|
2805
2807
|
}
|
|
2806
|
-
const
|
|
2808
|
+
const xe = "size-5";
|
|
2807
2809
|
function ke(e) {
|
|
2808
2810
|
const n = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, i = e.isEditing || !1;
|
|
2809
2811
|
let d = n ? "border-transparent" : i && !r ? "border-card-invert" : "border-transparent";
|
|
2810
2812
|
const m = ["large", "xlarge"].includes(e.size || "");
|
|
2811
2813
|
let p = "";
|
|
2812
2814
|
["large", "xlarge"].indexOf(e.size || "") > -1 && (p = `${e.size}-widget`);
|
|
2813
|
-
let
|
|
2814
|
-
t === "row" && !r ?
|
|
2815
|
+
let h = "";
|
|
2816
|
+
t === "row" && !r ? h = "min-h-48" : t === "column" && !r && (h = "min-h-96");
|
|
2815
2817
|
let u = Z(
|
|
2816
2818
|
"dashboard-widget-container relative ",
|
|
2817
2819
|
r ? "" : "has-no-children",
|
|
2818
2820
|
i ? "editing" : "",
|
|
2819
|
-
|
|
2821
|
+
h,
|
|
2820
2822
|
p,
|
|
2821
2823
|
m ? "widget-container-grid" : "widget-container-flex",
|
|
2822
2824
|
`direction-${t}`,
|
|
2823
2825
|
`border ${d}`,
|
|
2824
2826
|
`${n ? "highlight-container" : ""} ${d}`
|
|
2825
|
-
),
|
|
2827
|
+
), g = `widget-container-header direction-${t} flex items-center border-1 ${d}`;
|
|
2826
2828
|
const y = () => {
|
|
2827
2829
|
e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
|
|
2828
|
-
},
|
|
2830
|
+
}, w = (b) => {
|
|
2829
2831
|
e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
|
|
2830
2832
|
}, v = () => {
|
|
2831
2833
|
e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
|
|
2832
2834
|
};
|
|
2833
2835
|
return /* @__PURE__ */ W("div", { "data-testid": `container_${e.widgetKey}`, className: u, children: [
|
|
2834
|
-
/* @__PURE__ */ W("div", { className:
|
|
2836
|
+
/* @__PURE__ */ W("div", { className: g, children: [
|
|
2835
2837
|
/* @__PURE__ */ s(
|
|
2836
2838
|
"div",
|
|
2837
2839
|
{
|
|
@@ -2855,7 +2857,7 @@ function ke(e) {
|
|
|
2855
2857
|
children: /* @__PURE__ */ s(
|
|
2856
2858
|
en,
|
|
2857
2859
|
{
|
|
2858
|
-
className: `${
|
|
2860
|
+
className: `${xe} ${n ? "text-success" : "text-disabled"}`
|
|
2859
2861
|
}
|
|
2860
2862
|
)
|
|
2861
2863
|
}
|
|
@@ -2870,8 +2872,8 @@ function ke(e) {
|
|
|
2870
2872
|
placement: "top",
|
|
2871
2873
|
title: `${e.index < 1 ? "Already at min position" : "Move Container to the left/up"}`
|
|
2872
2874
|
},
|
|
2873
|
-
onClick: () =>
|
|
2874
|
-
children: /* @__PURE__ */ s(ut, { className:
|
|
2875
|
+
onClick: () => w(-1),
|
|
2876
|
+
children: /* @__PURE__ */ s(ut, { className: xe })
|
|
2875
2877
|
}
|
|
2876
2878
|
),
|
|
2877
2879
|
/* @__PURE__ */ s(
|
|
@@ -2884,8 +2886,8 @@ function ke(e) {
|
|
|
2884
2886
|
placement: "top",
|
|
2885
2887
|
title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Container to the right/down"}`
|
|
2886
2888
|
},
|
|
2887
|
-
onClick: () =>
|
|
2888
|
-
children: /* @__PURE__ */ s(ft, { className:
|
|
2889
|
+
onClick: () => w(1),
|
|
2890
|
+
children: /* @__PURE__ */ s(ft, { className: xe })
|
|
2889
2891
|
}
|
|
2890
2892
|
),
|
|
2891
2893
|
/* @__PURE__ */ s(
|
|
@@ -2898,7 +2900,7 @@ function ke(e) {
|
|
|
2898
2900
|
title: "Remove Container"
|
|
2899
2901
|
},
|
|
2900
2902
|
onClick: () => y(),
|
|
2901
|
-
children: /* @__PURE__ */ s(ht, { className:
|
|
2903
|
+
children: /* @__PURE__ */ s(ht, { className: xe })
|
|
2902
2904
|
}
|
|
2903
2905
|
)
|
|
2904
2906
|
] }) }) })
|
|
@@ -2937,7 +2939,13 @@ function We({
|
|
|
2937
2939
|
/* @__PURE__ */ s("span", { className: "font-bold", children: i }),
|
|
2938
2940
|
/* @__PURE__ */ s("div", { className: "text-xs", children: d ? "(Added)" : "" })
|
|
2939
2941
|
] }),
|
|
2940
|
-
/* @__PURE__ */
|
|
2942
|
+
/* @__PURE__ */ W("div", { className: "flex flex-col gap-2 text-xs", children: [
|
|
2943
|
+
/* @__PURE__ */ s("div", { children: o }),
|
|
2944
|
+
/* @__PURE__ */ W("details", { children: [
|
|
2945
|
+
/* @__PURE__ */ s("summary", { children: "Externals" }),
|
|
2946
|
+
/* @__PURE__ */ s("div", { className: "ml-2 flex flex-col gap-1 text-xs", children: e.externalDependencies.map((h, u) => /* @__PURE__ */ s("div", { children: h }, u)) })
|
|
2947
|
+
] })
|
|
2948
|
+
] })
|
|
2941
2949
|
] })
|
|
2942
2950
|
] });
|
|
2943
2951
|
}
|
|
@@ -2998,20 +3006,20 @@ function sr({
|
|
|
2998
3006
|
onUndoOrRedo: m,
|
|
2999
3007
|
onDoneClick: p
|
|
3000
3008
|
}) {
|
|
3001
|
-
const [
|
|
3009
|
+
const [h, u] = ce("Editing"), [g, y] = ce(0), [w, v] = ce(""), C = Array.from(n.keys()).map((E) => ({
|
|
3002
3010
|
widgetKey: E,
|
|
3003
3011
|
metaData: Pt(E, n)
|
|
3004
3012
|
})), T = (E) => {
|
|
3005
3013
|
v(E.target.value);
|
|
3006
3014
|
}, S = (E) => {
|
|
3007
|
-
const z =
|
|
3015
|
+
const z = w.trim().toLowerCase();
|
|
3008
3016
|
return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
|
|
3009
3017
|
}, D = (E) => {
|
|
3010
|
-
const z =
|
|
3018
|
+
const z = w.trim().toLowerCase();
|
|
3011
3019
|
return z.length < 1 ? !0 : E.displayName.trim().toLowerCase().includes(z) || E.description.toLowerCase().includes(z);
|
|
3012
|
-
},
|
|
3020
|
+
}, c = (E) => Z(
|
|
3013
3021
|
"px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
|
|
3014
|
-
E ===
|
|
3022
|
+
E === g ? "text-primary border-primary" : ""
|
|
3015
3023
|
), N = !!e;
|
|
3016
3024
|
St(() => {
|
|
3017
3025
|
if (e) {
|
|
@@ -3021,12 +3029,12 @@ function sr({
|
|
|
3021
3029
|
} else
|
|
3022
3030
|
u("Editing Dashboard");
|
|
3023
3031
|
}, [e]);
|
|
3024
|
-
const
|
|
3032
|
+
const l = (E) => {
|
|
3025
3033
|
N ? i(E, e) : i(E);
|
|
3026
3034
|
}, f = (E) => {
|
|
3027
3035
|
const z = (t.cssSettings || []).map((X) => X.key === E.key ? E : X);
|
|
3028
3036
|
a(z);
|
|
3029
|
-
}, [P, $] =
|
|
3037
|
+
}, [P, $] = ce(!1);
|
|
3030
3038
|
return /* @__PURE__ */ s(
|
|
3031
3039
|
bn,
|
|
3032
3040
|
{
|
|
@@ -3050,8 +3058,8 @@ function sr({
|
|
|
3050
3058
|
"h2",
|
|
3051
3059
|
{
|
|
3052
3060
|
className: "flex-1 text-base margin-0 capitalize",
|
|
3053
|
-
title: N ?
|
|
3054
|
-
children:
|
|
3061
|
+
title: N ? h : `Editing dashboard: ${t.dashboardName}`,
|
|
3062
|
+
children: h
|
|
3055
3063
|
}
|
|
3056
3064
|
)
|
|
3057
3065
|
] }),
|
|
@@ -3100,10 +3108,10 @@ function sr({
|
|
|
3100
3108
|
] })
|
|
3101
3109
|
] }),
|
|
3102
3110
|
/* @__PURE__ */ W("div", { className: "flex border-b border-gray-200", children: [
|
|
3103
|
-
/* @__PURE__ */ s("button", { onClick: () => y(0), className:
|
|
3104
|
-
/* @__PURE__ */ s("button", { onClick: () => y(1), className:
|
|
3105
|
-
!N && /* @__PURE__ */ s("button", { onClick: () => y(2), className:
|
|
3106
|
-
!N && /* @__PURE__ */ s("button", { onClick: () => y(3), className:
|
|
3111
|
+
/* @__PURE__ */ s("button", { onClick: () => y(0), className: c(0), children: "Widgets" }),
|
|
3112
|
+
/* @__PURE__ */ s("button", { onClick: () => y(1), className: c(1), children: "Charts" }),
|
|
3113
|
+
!N && /* @__PURE__ */ s("button", { onClick: () => y(2), className: c(2), children: "Containers" }),
|
|
3114
|
+
!N && /* @__PURE__ */ s("button", { onClick: () => y(3), className: c(3), children: /* @__PURE__ */ s(Ht, {}) })
|
|
3107
3115
|
] }),
|
|
3108
3116
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ s(
|
|
3109
3117
|
mt,
|
|
@@ -3111,7 +3119,7 @@ function sr({
|
|
|
3111
3119
|
label: "Filter...",
|
|
3112
3120
|
size: "small",
|
|
3113
3121
|
className: "w-full",
|
|
3114
|
-
value:
|
|
3122
|
+
value: w,
|
|
3115
3123
|
onChange: T
|
|
3116
3124
|
}
|
|
3117
3125
|
) }),
|
|
@@ -3123,7 +3131,7 @@ function sr({
|
|
|
3123
3131
|
maxHeight: "360px"
|
|
3124
3132
|
},
|
|
3125
3133
|
children: [
|
|
3126
|
-
|
|
3134
|
+
g === 0 && C.filter(
|
|
3127
3135
|
(E) => E.metaData.categories.includes("Widget") && S(E.metaData)
|
|
3128
3136
|
).map((E) => /* @__PURE__ */ s(
|
|
3129
3137
|
We,
|
|
@@ -3131,11 +3139,11 @@ function sr({
|
|
|
3131
3139
|
widgetKey: E.widgetKey,
|
|
3132
3140
|
metaData: E.metaData,
|
|
3133
3141
|
alreadyAdded: Ie(E.widgetKey, t),
|
|
3134
|
-
addWidget: () =>
|
|
3142
|
+
addWidget: () => l(E.widgetKey)
|
|
3135
3143
|
},
|
|
3136
3144
|
E.widgetKey
|
|
3137
3145
|
)),
|
|
3138
|
-
|
|
3146
|
+
g === 1 && C.filter(
|
|
3139
3147
|
(E) => E.metaData.categories.includes("Chart") && S(E.metaData)
|
|
3140
3148
|
).map((E) => /* @__PURE__ */ s(
|
|
3141
3149
|
We,
|
|
@@ -3143,11 +3151,11 @@ function sr({
|
|
|
3143
3151
|
widgetKey: E.widgetKey,
|
|
3144
3152
|
metaData: E.metaData,
|
|
3145
3153
|
alreadyAdded: Ie(E.widgetKey, t),
|
|
3146
|
-
addWidget: () =>
|
|
3154
|
+
addWidget: () => l(E.widgetKey)
|
|
3147
3155
|
},
|
|
3148
3156
|
E.widgetKey
|
|
3149
3157
|
)),
|
|
3150
|
-
!N &&
|
|
3158
|
+
!N && g === 2 && C.filter((E) => E.metaData.categories.includes("Container")).map((E) => /* @__PURE__ */ s(
|
|
3151
3159
|
We,
|
|
3152
3160
|
{
|
|
3153
3161
|
widgetKey: E.widgetKey,
|
|
@@ -3157,7 +3165,7 @@ function sr({
|
|
|
3157
3165
|
},
|
|
3158
3166
|
E.widgetKey
|
|
3159
3167
|
)),
|
|
3160
|
-
!N &&
|
|
3168
|
+
!N && g === 3 && (t.cssSettings || []).filter(D).map((E) => /* @__PURE__ */ s(
|
|
3161
3169
|
Tn,
|
|
3162
3170
|
{
|
|
3163
3171
|
item: E,
|
|
@@ -3228,13 +3236,13 @@ export {
|
|
|
3228
3236
|
qn as ZoomInIcon,
|
|
3229
3237
|
zn as ZoomOutIcon,
|
|
3230
3238
|
Ce as blankDashboardConfig,
|
|
3231
|
-
|
|
3239
|
+
ct as createDynamicEntry,
|
|
3232
3240
|
$t as createStaticEntry,
|
|
3233
3241
|
Dt as cssSettingsCatalog,
|
|
3234
3242
|
Hn as cssVarsUtils,
|
|
3235
3243
|
Et as dashboardSettingsUtils,
|
|
3236
3244
|
Mt as ensureContainersSequence,
|
|
3237
|
-
|
|
3245
|
+
lt as ensureZoomScaleIsWithinRange,
|
|
3238
3246
|
ge as getDefaultWidgetMetaFromKey,
|
|
3239
3247
|
$n as getDefaultWidgetMetaFromMap,
|
|
3240
3248
|
Z as getDistinctCssClasses,
|