@factorialco/f0-react 1.338.1 → 1.338.2
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/{AiChatTranslationsProvider-BKb05OK7.js → AiChatTranslationsProvider-BulxdO3i.js} +1494 -1579
- package/dist/{DataCollectionStorageProvider-4dXvrEW_.js → DataCollectionStorageProvider-5taE9u3d.js} +5539 -5539
- package/dist/ai.d.ts +10 -0
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +154 -58
- package/dist/experimental.js +9179 -9341
- package/dist/f0.d.ts +29 -0
- package/dist/f0.js +1016 -935
- package/dist/i18n-provider-defaults.d.ts +10 -0
- package/dist/{index-DVftYrQG.js → index-fCzRlkIl.js} +12800 -12714
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as f, jsxs as
|
|
4
|
-
import
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { L as
|
|
7
|
-
import { ax as
|
|
8
|
-
import { defaultTranslations as
|
|
9
|
-
import './f0.css';const
|
|
1
|
+
import { c as G, a as Ge, b as Dn, m as Si, B as Ni, O as Yr, p as qr, w as Rn, S as we, u as Sn, F as Nn, d as Jr, A as Zr, D as Qr, e as es, f as fe, C as ve, g as ts, h as is, i as An, j as ns, k as Lt, P as On, l as kn, n as Tn, o as zn, q as Pn, r as Mn, s as rs, t as ss, v as os, x as as, y as ls, z as We, E as Ji, G as cs, H as ds, J as us, K as hs, L as Ln, M as fs, N as gs, Q as ps, R as ms, T as vs, U as In, V as ys, W as bs, X as xs, I as ws, Y as Cs, Z as _s, _ as Es, $ as Ds } from "./index-fCzRlkIl.js";
|
|
2
|
+
import { ag as zd, av as Pd, a0 as Md, a1 as Ld, a2 as Id, a3 as Hd, a5 as Fd, a6 as Bd, a7 as Wd, a8 as Gd, a9 as $d, aa as jd, ab as Ud, ac as Vd, ar as Kd, ae as Xd, ah as Yd, af as qd, as as Jd, am as Zd, ap as Qd, al as eu, aw as tu, ak as iu, aj as nu, a4 as ru, ai as su, an as ou, ax as au, ad as lu, ao as cu, au as du, aq as uu, at as hu } from "./index-fCzRlkIl.js";
|
|
3
|
+
import { jsx as f, jsxs as T, Fragment as Jt } from "react/jsx-runtime";
|
|
4
|
+
import L, { forwardRef as oe, useRef as M, useImperativeHandle as Rs, Children as It, createContext as Ae, useContext as _e, useState as F, useMemo as H, useEffect as I, useCallback as U, useLayoutEffect as bi, createElement as Zi, isValidElement as Hn, Fragment as Ss, memo as Ns, useReducer as As, cloneElement as Os, PureComponent as ks } from "react";
|
|
5
|
+
import { createPortal as Fn, unstable_batchedUpdates as Ot } from "react-dom";
|
|
6
|
+
import { L as Bn, C as Ts, i as Wn, D as zs, S as Qi, a as Ps, f as ui, b as ct, c as Ms, A as Ls, d as kt, e as Gn, E as Is, g as Pt, h as Hs, j as Fs, k as Bs, l as Ye, m as $n, u as Ws, G as Gs, n as $s, o as en, p as js, q as jn, r as Us, B as Un, X as Vn, Y as xi, s as Vs, t as Kn, v as Ks, w as Xs, x as Ys, y as qs, z as Js, F as Zs, H as Qs, I as eo, J as tn, K as to, M as dt, N as hi, O as io, P as no, Q as ro, R as so, T as oo, U as ao, V as lo, W as co, Z as uo, _ as ho, $ as fo, a0 as nn, a1 as go, a2 as po, a3 as mo, a4 as vo, a5 as Xn, a6 as yo, a7 as bo, a8 as rn, a9 as xo, aa as Yn, ab as wo, ac as Co, ad as _o, ae as Eo } from "./DataCollectionStorageProvider-5taE9u3d.js";
|
|
7
|
+
import { ax as gu, af as pu, ag as mu, aj as vu, ak as yu, ao as bu, ap as xu, aq as wu, as as Cu, at as _u, au as Eu, av as Du, an as Ru, ar as Su, ah as Nu, ai as Au, aw as Ou, al as ku, am as Tu, ay as zu, az as Pu, aA as Mu, aB as Lu } from "./DataCollectionStorageProvider-5taE9u3d.js";
|
|
8
|
+
import { defaultTranslations as Hu } from "./i18n-provider-defaults.js";
|
|
9
|
+
import './f0.css';const Do = {
|
|
10
10
|
xs: 1,
|
|
11
11
|
sm: 2,
|
|
12
12
|
md: 2,
|
|
13
13
|
lg: 2
|
|
14
|
-
},
|
|
15
|
-
const r =
|
|
16
|
-
|
|
14
|
+
}, Ro = oe(function({ widgets: e, children: t }, i) {
|
|
15
|
+
const r = M(null);
|
|
16
|
+
Rs(i, () => r.current);
|
|
17
17
|
const s = It.toArray(e).filter((o) => !!o).map((o, a) => f("div", {
|
|
18
18
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
19
19
|
children: o
|
|
20
20
|
}, a));
|
|
21
|
-
return f(
|
|
21
|
+
return f(Bn, {
|
|
22
22
|
layout: "home",
|
|
23
|
-
children:
|
|
23
|
+
children: T("div", {
|
|
24
24
|
ref: r,
|
|
25
25
|
className: "@container",
|
|
26
|
-
children: [
|
|
26
|
+
children: [T("div", {
|
|
27
27
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
28
|
-
children: [f(
|
|
29
|
-
columns:
|
|
28
|
+
children: [f(Ts, {
|
|
29
|
+
columns: Do,
|
|
30
30
|
showArrows: !1,
|
|
31
31
|
children: s
|
|
32
32
|
}), f("main", {
|
|
33
33
|
children: t
|
|
34
34
|
})]
|
|
35
|
-
}),
|
|
35
|
+
}), T("div", {
|
|
36
36
|
className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
|
|
37
37
|
children: [f("div", {
|
|
38
38
|
className: "col-span-3 flex flex-row gap-5 *:flex-1",
|
|
@@ -47,21 +47,21 @@ import './f0.css';const wo = {
|
|
|
47
47
|
})]
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
|
-
}),
|
|
50
|
+
}), So = Ge({
|
|
51
51
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
52
52
|
variants: {
|
|
53
53
|
variant: {
|
|
54
54
|
narrow: "max-w-screen-lg"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
}), qn =
|
|
57
|
+
}), qn = L.forwardRef(({ children: n, variant: e, className: t, ...i }, r) => f(Bn, {
|
|
58
58
|
layout: "standard",
|
|
59
59
|
children: f("section", {
|
|
60
60
|
ref: r,
|
|
61
|
-
className:
|
|
61
|
+
className: G("relative flex-1 overflow-auto", t),
|
|
62
62
|
...i,
|
|
63
63
|
children: f("div", {
|
|
64
|
-
className:
|
|
64
|
+
className: G(So({
|
|
65
65
|
variant: e
|
|
66
66
|
})),
|
|
67
67
|
children: n
|
|
@@ -69,24 +69,24 @@ import './f0.css';const wo = {
|
|
|
69
69
|
})
|
|
70
70
|
}));
|
|
71
71
|
qn.displayName = "StandardLayout";
|
|
72
|
-
const
|
|
72
|
+
const No = oe(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: r = !1 }, s) {
|
|
73
73
|
return f("div", {
|
|
74
74
|
ref: s,
|
|
75
75
|
className: "h-full",
|
|
76
|
-
children:
|
|
77
|
-
className:
|
|
76
|
+
children: T("div", {
|
|
77
|
+
className: G("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", r && "md:sticky md:top-0 md:max-h-full"),
|
|
78
78
|
children: [f("main", {
|
|
79
|
-
className:
|
|
79
|
+
className: G("sm:min-h-xs order-2 h-fit border-0 px-4 py-5 sm:flex-1 sm:border-solid md:order-2 md:px-6", r ? "md:h-full md:max-h-full md:overflow-y-auto" : "min-h-full", i === "right" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
|
|
80
80
|
children: e
|
|
81
|
-
}), f(
|
|
81
|
+
}), f(Ao, {
|
|
82
82
|
sticky: r,
|
|
83
|
-
className:
|
|
83
|
+
className: G("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
84
84
|
children: t
|
|
85
85
|
})]
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
|
-
}),
|
|
89
|
-
className:
|
|
88
|
+
}), Ao = ({ children: n, className: e }) => f("aside", {
|
|
89
|
+
className: G("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
|
|
90
90
|
children: n
|
|
91
91
|
}), Jn = Ae(null);
|
|
92
92
|
function Zn() {
|
|
@@ -97,7 +97,7 @@ function Zn() {
|
|
|
97
97
|
);
|
|
98
98
|
return n;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Oo(n) {
|
|
101
101
|
const { content: e, ...t } = n;
|
|
102
102
|
return e !== void 0 ? {
|
|
103
103
|
...t,
|
|
@@ -106,17 +106,17 @@ function Ro(n) {
|
|
|
106
106
|
content: () => document.createElement("div")
|
|
107
107
|
} : t;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
const e =
|
|
109
|
+
function qe(n) {
|
|
110
|
+
const e = Oo(n);
|
|
111
111
|
return n.subGridOpts?.children && (e.subGridOpts = {
|
|
112
112
|
...n.subGridOpts,
|
|
113
113
|
children: n.subGridOpts.children.map(
|
|
114
|
-
(t) =>
|
|
114
|
+
(t) => qe(t)
|
|
115
115
|
)
|
|
116
116
|
}), e;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
118
|
+
const ko = ["noMove", "noResize", "locked", "w", "h", "x", "y"], Le = 200;
|
|
119
|
+
function To(n) {
|
|
120
120
|
const e = n.cloneNode(!0);
|
|
121
121
|
return n.querySelectorAll("canvas").forEach((i) => {
|
|
122
122
|
if (i.width > 0 && i.height > 0)
|
|
@@ -131,11 +131,11 @@ function No(n) {
|
|
|
131
131
|
}
|
|
132
132
|
}), e.innerHTML;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
const [s, o] =
|
|
134
|
+
function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r }) {
|
|
135
|
+
const [s, o] = F(null), a = M(null), c = M(!1), d = H(() => ({
|
|
136
136
|
...e,
|
|
137
|
-
children: (r || []).map((w) =>
|
|
138
|
-
}), [e, r]), [l, u] =
|
|
137
|
+
children: (r || []).map((w) => qe(w))
|
|
138
|
+
}), [e, r]), [l, u] = F(() => {
|
|
139
139
|
const w = /* @__PURE__ */ new Map(), R = r || [], v = (y) => {
|
|
140
140
|
y.id && y.content && w.set(y.id, y.content), y.subGridOpts?.children && y.subGridOpts.children.forEach((m) => {
|
|
141
141
|
v(m);
|
|
@@ -144,11 +144,11 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
144
144
|
return R.forEach((y) => {
|
|
145
145
|
v(y);
|
|
146
146
|
}), w;
|
|
147
|
-
}), h =
|
|
147
|
+
}), h = M(l);
|
|
148
148
|
I(() => {
|
|
149
149
|
h.current = l;
|
|
150
150
|
}, [l]);
|
|
151
|
-
const [g, C] =
|
|
151
|
+
const [g, C] = F(() => {
|
|
152
152
|
const w = /* @__PURE__ */ new Map(), R = r || [], v = (y) => {
|
|
153
153
|
y.id && y._originalContent !== void 0 && w.set(y.id, y._originalContent), y.subGridOpts?.children && y.subGridOpts.children.forEach((m) => {
|
|
154
154
|
v(m);
|
|
@@ -157,14 +157,14 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
157
157
|
return R.forEach((y) => {
|
|
158
158
|
v(y);
|
|
159
159
|
}), w;
|
|
160
|
-
}), b =
|
|
160
|
+
}), b = M(g);
|
|
161
161
|
I(() => {
|
|
162
162
|
b.current = g;
|
|
163
163
|
}, [g]);
|
|
164
|
-
const [x, D] =
|
|
164
|
+
const [x, D] = F(() => {
|
|
165
165
|
const w = /* @__PURE__ */ new Map(), R = r || [], v = (y) => {
|
|
166
166
|
if (y.id) {
|
|
167
|
-
const m =
|
|
167
|
+
const m = qe(y);
|
|
168
168
|
w.set(y.id, m);
|
|
169
169
|
}
|
|
170
170
|
y.subGridOpts?.children && y.subGridOpts.children.forEach((m) => {
|
|
@@ -184,12 +184,12 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
184
184
|
m.length > 0 && (m.forEach((A) => {
|
|
185
185
|
A.content && h.current.set(A.id, A.content), A._originalContent !== void 0 && b.current.set(A.id, A._originalContent);
|
|
186
186
|
}), m.forEach((A) => {
|
|
187
|
-
const _ =
|
|
187
|
+
const _ = qe(A);
|
|
188
188
|
s.addWidget(_);
|
|
189
189
|
}), D((A) => {
|
|
190
190
|
const _ = new Map(A);
|
|
191
191
|
return m.forEach((S) => {
|
|
192
|
-
const O =
|
|
192
|
+
const O = qe(S);
|
|
193
193
|
_.set(S.id, O);
|
|
194
194
|
}), _;
|
|
195
195
|
}), u((A) => {
|
|
@@ -228,7 +228,7 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
228
228
|
if (S.get(O)) {
|
|
229
229
|
const Q = s.el.querySelector(`[gs-id="${O}"] .grid-stack-item-content`);
|
|
230
230
|
let ee = "";
|
|
231
|
-
Q && (ee =
|
|
231
|
+
Q && (ee = To(Q)), S.set(O, f(Si.div, {
|
|
232
232
|
className: "h-full w-full",
|
|
233
233
|
initial: {
|
|
234
234
|
opacity: 1,
|
|
@@ -277,32 +277,32 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
277
277
|
}), S;
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
280
|
+
const z = v.filter((A) => R.includes(A.id));
|
|
281
|
+
if (z.length > 0) {
|
|
282
282
|
const A = [];
|
|
283
|
-
|
|
284
|
-
const S = w.find((
|
|
283
|
+
z.forEach((_) => {
|
|
284
|
+
const S = w.find((B) => B.id === _.id);
|
|
285
285
|
if (!S)
|
|
286
286
|
return;
|
|
287
|
-
const O =
|
|
287
|
+
const O = ko.filter((B) => S[B] !== _[B]);
|
|
288
288
|
if (O.length > 0) {
|
|
289
|
-
const
|
|
289
|
+
const B = {}, Q = ["w", "h", "x", "y"], ee = ["noMove", "noResize", "locked"], V = O.filter((j) => Q.includes(j)), ue = O.filter((j) => ee.includes(j));
|
|
290
290
|
if (V.length > 0 && ue.length > 0 && V.length + ue.length === O.length ? ue.forEach((j) => {
|
|
291
291
|
const he = _[j];
|
|
292
|
-
he !== void 0 && (
|
|
292
|
+
he !== void 0 && (B[j] = he);
|
|
293
293
|
}) : O.forEach((j) => {
|
|
294
294
|
const he = _[j];
|
|
295
|
-
he !== void 0 && (
|
|
296
|
-
}), Object.keys(
|
|
295
|
+
he !== void 0 && (B[j] = he);
|
|
296
|
+
}), Object.keys(B).length > 0) {
|
|
297
297
|
const j = s.el.querySelector(`[gs-id="${_.id}"]`);
|
|
298
298
|
j && A.push({
|
|
299
299
|
id: _.id,
|
|
300
300
|
element: j,
|
|
301
|
-
updateOptions:
|
|
301
|
+
updateOptions: B
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
}),
|
|
305
|
+
}), z.forEach((_) => {
|
|
306
306
|
_.content && h.current.set(_.id, _.content), _._originalContent !== void 0 && b.current.set(_.id, _._originalContent);
|
|
307
307
|
}), A.forEach(({ element: _, updateOptions: S }) => {
|
|
308
308
|
try {
|
|
@@ -312,18 +312,18 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
312
312
|
}
|
|
313
313
|
}), D((_) => {
|
|
314
314
|
const S = new Map(_);
|
|
315
|
-
return
|
|
316
|
-
const
|
|
317
|
-
S.set(O.id,
|
|
315
|
+
return z.forEach((O) => {
|
|
316
|
+
const B = qe(O);
|
|
317
|
+
S.set(O.id, B);
|
|
318
318
|
}), S;
|
|
319
319
|
}), u((_) => {
|
|
320
320
|
const S = new Map(_);
|
|
321
|
-
return
|
|
321
|
+
return z.forEach((O) => {
|
|
322
322
|
O.content && S.set(O.id, O.content);
|
|
323
323
|
}), S;
|
|
324
324
|
}), C((_) => {
|
|
325
325
|
const S = new Map(_);
|
|
326
|
-
return
|
|
326
|
+
return z.forEach((O) => {
|
|
327
327
|
O._originalContent !== void 0 && S.set(O.id, O._originalContent);
|
|
328
328
|
}), S;
|
|
329
329
|
});
|
|
@@ -349,7 +349,7 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
349
349
|
const R = w.map((v) => {
|
|
350
350
|
const y = v.id;
|
|
351
351
|
if (!y) return null;
|
|
352
|
-
const m = h.current.get(y), E = b.current.get(y),
|
|
352
|
+
const m = h.current.get(y), E = b.current.get(y), z = v;
|
|
353
353
|
return {
|
|
354
354
|
...v,
|
|
355
355
|
id: y,
|
|
@@ -357,7 +357,7 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
357
357
|
h: v.h ?? 1,
|
|
358
358
|
x: v.x ?? 0,
|
|
359
359
|
y: v.y ?? 0,
|
|
360
|
-
meta:
|
|
360
|
+
meta: z.meta,
|
|
361
361
|
_originalContent: E,
|
|
362
362
|
content: m ?? f("div", {
|
|
363
363
|
children: "No content"
|
|
@@ -413,7 +413,7 @@ function Ao({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
const Qn = Ae(null);
|
|
416
|
-
function
|
|
416
|
+
function Po() {
|
|
417
417
|
const n = _e(Qn);
|
|
418
418
|
if (!n)
|
|
419
419
|
throw new Error(
|
|
@@ -421,24 +421,24 @@ function Oo() {
|
|
|
421
421
|
);
|
|
422
422
|
return n;
|
|
423
423
|
}
|
|
424
|
-
const
|
|
425
|
-
function
|
|
426
|
-
const { _reactContentMap: n } = Zn(), { getWidgetContainer: e } =
|
|
424
|
+
const Mo = Ae(null);
|
|
425
|
+
function Lo() {
|
|
426
|
+
const { _reactContentMap: n } = Zn(), { getWidgetContainer: e } = Po();
|
|
427
427
|
return f(Jt, {
|
|
428
428
|
children: Array.from(n.value.entries()).map(([t, i]) => {
|
|
429
429
|
const r = e(t);
|
|
430
|
-
return r ? f(
|
|
430
|
+
return r ? f(Mo.Provider, {
|
|
431
431
|
value: {
|
|
432
432
|
widget: {
|
|
433
433
|
id: t
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
|
-
children: i &&
|
|
436
|
+
children: i && Fn(i, r)
|
|
437
437
|
}, t) : (console.error(`Widget container not found for widget ${t}`), null);
|
|
438
438
|
})
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Io(n, e, t, i, r) {
|
|
442
442
|
const s = (...o) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + r + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(n, o));
|
|
443
443
|
return s.prototype = e.prototype, s;
|
|
444
444
|
}
|
|
@@ -1678,7 +1678,7 @@ const se = {
|
|
|
1678
1678
|
// staticGrid: false,
|
|
1679
1679
|
//removable
|
|
1680
1680
|
};
|
|
1681
|
-
class
|
|
1681
|
+
class P {
|
|
1682
1682
|
}
|
|
1683
1683
|
const ge = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
|
|
1684
1684
|
class Ce {
|
|
@@ -1689,27 +1689,27 @@ function Ht(n, e) {
|
|
|
1689
1689
|
function er(n, e) {
|
|
1690
1690
|
n.cancelable && n.preventDefault(), p.simulateMouseEvent(n, e);
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Ft(n) {
|
|
1693
1693
|
Ce.touchHandled || (Ce.touchHandled = !0, Ht(n, "mousedown"));
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function Bt(n) {
|
|
1696
1696
|
Ce.touchHandled && Ht(n, "mousemove");
|
|
1697
1697
|
}
|
|
1698
1698
|
function Wt(n) {
|
|
1699
1699
|
if (!Ce.touchHandled)
|
|
1700
1700
|
return;
|
|
1701
1701
|
Ce.pointerLeaveTimeout && (window.clearTimeout(Ce.pointerLeaveTimeout), delete Ce.pointerLeaveTimeout);
|
|
1702
|
-
const e = !!
|
|
1702
|
+
const e = !!P.dragElement;
|
|
1703
1703
|
Ht(n, "mouseup"), e || Ht(n, "click"), Ce.touchHandled = !1;
|
|
1704
1704
|
}
|
|
1705
1705
|
function Gt(n) {
|
|
1706
1706
|
n.pointerType !== "mouse" && n.target.releasePointerCapture(n.pointerId);
|
|
1707
1707
|
}
|
|
1708
1708
|
function sn(n) {
|
|
1709
|
-
|
|
1709
|
+
P.dragElement && n.pointerType !== "mouse" && er(n, "mouseenter");
|
|
1710
1710
|
}
|
|
1711
1711
|
function on(n) {
|
|
1712
|
-
|
|
1712
|
+
P.dragElement && n.pointerType !== "mouse" && (Ce.pointerLeaveTimeout = window.setTimeout(() => {
|
|
1713
1713
|
delete Ce.pointerLeaveTimeout, er(n, "mouseleave");
|
|
1714
1714
|
}, 10));
|
|
1715
1715
|
}
|
|
@@ -1720,15 +1720,15 @@ class Zt {
|
|
|
1720
1720
|
/** @internal */
|
|
1721
1721
|
_init() {
|
|
1722
1722
|
const e = this.el = document.createElement("div");
|
|
1723
|
-
return e.classList.add("ui-resizable-handle"), e.classList.add(`${Zt.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), ge && (this.el.addEventListener("touchstart",
|
|
1723
|
+
return e.classList.add("ui-resizable-handle"), e.classList.add(`${Zt.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), ge && (this.el.addEventListener("touchstart", Ft), this.el.addEventListener("pointerdown", Gt)), this;
|
|
1724
1724
|
}
|
|
1725
1725
|
/** call this when resize handle needs to be removed and cleaned up */
|
|
1726
1726
|
destroy() {
|
|
1727
|
-
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), ge && (this.el.removeEventListener("touchstart",
|
|
1727
|
+
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), ge && (this.el.removeEventListener("touchstart", Ft), this.el.removeEventListener("pointerdown", Gt)), this.host.removeChild(this.el), delete this.el, delete this.host, this;
|
|
1728
1728
|
}
|
|
1729
1729
|
/** @internal called on mouse down on us: capture move on the entire document (mouse might not stay on us) until we release the mouse */
|
|
1730
1730
|
_mouseDown(e) {
|
|
1731
|
-
this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), ge && (this.el.addEventListener("touchmove",
|
|
1731
|
+
this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), ge && (this.el.addEventListener("touchmove", Bt), this.el.addEventListener("touchend", Wt)), e.stopPropagation(), e.preventDefault();
|
|
1732
1732
|
}
|
|
1733
1733
|
/** @internal */
|
|
1734
1734
|
_mouseMove(e) {
|
|
@@ -1737,7 +1737,7 @@ class Zt {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
/** @internal */
|
|
1739
1739
|
_mouseUp(e) {
|
|
1740
|
-
this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), ge && (this.el.removeEventListener("touchmove",
|
|
1740
|
+
this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), ge && (this.el.removeEventListener("touchmove", Bt), this.el.removeEventListener("touchend", Wt)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
|
|
1741
1741
|
}
|
|
1742
1742
|
/** @internal call when keys are being pressed - use Esc to cancel */
|
|
1743
1743
|
_keyEvent(e) {
|
|
@@ -1810,7 +1810,7 @@ class Ai {
|
|
|
1810
1810
|
return this._eventRegister[e](t);
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
|
-
class
|
|
1813
|
+
class mt extends Ai {
|
|
1814
1814
|
// have to be public else complains for HTMLElementExtendOpt ?
|
|
1815
1815
|
constructor(e, t = {}) {
|
|
1816
1816
|
super(), this.el = e, this.option = t, this.rectScale = { x: 1, y: 1 }, this._ui = () => {
|
|
@@ -1866,17 +1866,17 @@ class pt extends Ai {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
/** @internal turns auto hide on/off */
|
|
1868
1868
|
_setupAutoHide(e) {
|
|
1869
|
-
return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut),
|
|
1869
|
+
return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), P.overResizeElement === this && delete P.overResizeElement), this;
|
|
1870
1870
|
}
|
|
1871
1871
|
/** @internal */
|
|
1872
1872
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1873
1873
|
_mouseOver(e) {
|
|
1874
|
-
|
|
1874
|
+
P.overResizeElement || P.dragElement || (P.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
|
|
1875
1875
|
}
|
|
1876
1876
|
/** @internal */
|
|
1877
1877
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1878
1878
|
_mouseOut(e) {
|
|
1879
|
-
|
|
1879
|
+
P.overResizeElement === this && (delete P.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
|
|
1880
1880
|
}
|
|
1881
1881
|
/** @internal */
|
|
1882
1882
|
_setupHandlers() {
|
|
@@ -1911,7 +1911,7 @@ class pt extends Ai {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
/** @internal */
|
|
1913
1913
|
_setupHelper() {
|
|
1914
|
-
this.elOriginStyleVal =
|
|
1914
|
+
this.elOriginStyleVal = mt._originStyleProp.map((i) => this.el.style[i]), this.parentOriginStylePosition = this.el.parentElement.style.position;
|
|
1915
1915
|
const e = this.el.parentElement, t = p.getValuesFromTransformedElement(e);
|
|
1916
1916
|
return this.rectScale = {
|
|
1917
1917
|
x: t.xScale,
|
|
@@ -1920,7 +1920,7 @@ class pt extends Ai {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
/** @internal */
|
|
1922
1922
|
_cleanHelper() {
|
|
1923
|
-
return
|
|
1923
|
+
return mt._originStyleProp.forEach((e, t) => {
|
|
1924
1924
|
this.el.style[e] = this.elOriginStyleVal[t] || null;
|
|
1925
1925
|
}), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
|
|
1926
1926
|
}
|
|
@@ -1959,9 +1959,9 @@ class pt extends Ai {
|
|
|
1959
1959
|
return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
-
|
|
1963
|
-
const
|
|
1964
|
-
class
|
|
1962
|
+
mt._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
|
|
1963
|
+
const Ho = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
|
|
1964
|
+
class vt extends Ai {
|
|
1965
1965
|
constructor(e, t = {}) {
|
|
1966
1966
|
super(), this.el = e, this.option = t, this.dragTransform = {
|
|
1967
1967
|
xScale: 1,
|
|
@@ -1980,12 +1980,12 @@ class mt extends Ai {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
enable() {
|
|
1982
1982
|
this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
|
|
1983
|
-
e.addEventListener("mousedown", this._mouseDown), ge && (e.addEventListener("touchstart",
|
|
1983
|
+
e.addEventListener("mousedown", this._mouseDown), ge && (e.addEventListener("touchstart", Ft), e.addEventListener("pointerdown", Gt));
|
|
1984
1984
|
}), this.el.classList.remove("ui-draggable-disabled"));
|
|
1985
1985
|
}
|
|
1986
1986
|
disable(e = !1) {
|
|
1987
1987
|
this.disabled !== !0 && (super.disable(), this.dragEls.forEach((t) => {
|
|
1988
|
-
t.removeEventListener("mousedown", this._mouseDown), ge && (t.removeEventListener("touchstart",
|
|
1988
|
+
t.removeEventListener("mousedown", this._mouseDown), ge && (t.removeEventListener("touchstart", Ft), t.removeEventListener("pointerdown", Gt));
|
|
1989
1989
|
}), e || this.el.classList.add("ui-draggable-disabled"));
|
|
1990
1990
|
}
|
|
1991
1991
|
destroy() {
|
|
@@ -1996,8 +1996,8 @@ class mt extends Ai {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
/** @internal call when mouse goes down before a dragstart happens */
|
|
1998
1998
|
_mouseDown(e) {
|
|
1999
|
-
if (!
|
|
2000
|
-
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(
|
|
1999
|
+
if (!P.mouseHandled)
|
|
2000
|
+
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Ho) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete P.dragElement, delete P.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), ge && (e.currentTarget.addEventListener("touchmove", Bt), e.currentTarget.addEventListener("touchend", Wt)), e.preventDefault(), document.activeElement && document.activeElement.blur(), P.mouseHandled = !0), !0;
|
|
2001
2001
|
}
|
|
2002
2002
|
/** @internal method to call actual drag event */
|
|
2003
2003
|
_callDrag(e) {
|
|
@@ -2010,15 +2010,15 @@ class mt extends Ai {
|
|
|
2010
2010
|
_mouseMove(e) {
|
|
2011
2011
|
const t = this.mouseDownEvent;
|
|
2012
2012
|
if (this.lastDrag = e, this.dragging)
|
|
2013
|
-
if (this._dragFollow(e),
|
|
2014
|
-
const i = Number.isInteger(
|
|
2013
|
+
if (this._dragFollow(e), P.pauseDrag) {
|
|
2014
|
+
const i = Number.isInteger(P.pauseDrag) ? P.pauseDrag : 100;
|
|
2015
2015
|
this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), i);
|
|
2016
2016
|
} else
|
|
2017
2017
|
this._callDrag(e);
|
|
2018
2018
|
else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
|
|
2019
|
-
this.dragging = !0,
|
|
2019
|
+
this.dragging = !0, P.dragElement = this;
|
|
2020
2020
|
const i = this.el.gridstackNode?.grid;
|
|
2021
|
-
i ?
|
|
2021
|
+
i ? P.dropElement = i.el.ddElement.ddDroppable : delete P.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = p.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
|
|
2022
2022
|
const r = p.initEvent(e, { target: this.el, type: "dragstart" });
|
|
2023
2023
|
this.option.start && this.option.start(r, this.ui()), this.triggerEvent("dragstart", r), document.addEventListener("keydown", this._keyEvent);
|
|
2024
2024
|
}
|
|
@@ -2026,16 +2026,16 @@ class mt extends Ai {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
/** @internal call when the mouse gets released to drop the item at current location */
|
|
2028
2028
|
_mouseUp(e) {
|
|
2029
|
-
if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), ge && e.currentTarget && (e.currentTarget.removeEventListener("touchmove",
|
|
2030
|
-
delete this.dragging, delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent),
|
|
2029
|
+
if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), ge && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", Bt, !0), e.currentTarget.removeEventListener("touchend", Wt, !0)), this.dragging) {
|
|
2030
|
+
delete this.dragging, delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent), P.dropElement?.el === this.el.parentElement && delete P.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
|
|
2031
2031
|
const t = p.initEvent(e, { target: this.el, type: "dragstop" });
|
|
2032
|
-
this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t),
|
|
2032
|
+
this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), P.dropElement && P.dropElement.drop(e);
|
|
2033
2033
|
}
|
|
2034
|
-
delete this.helper, delete this.mouseDownEvent, delete
|
|
2034
|
+
delete this.helper, delete this.mouseDownEvent, delete P.dragElement, delete P.dropElement, delete P.mouseHandled, e.preventDefault();
|
|
2035
2035
|
}
|
|
2036
2036
|
/** @internal call when keys are being pressed - use Esc to cancel, R to rotate */
|
|
2037
2037
|
_keyEvent(e) {
|
|
2038
|
-
const t = this.el.gridstackNode, i = t?.grid ||
|
|
2038
|
+
const t = this.el.gridstackNode, i = t?.grid || P.dropElement?.el?.gridstack;
|
|
2039
2039
|
if (e.key === "Escape")
|
|
2040
2040
|
t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), i?.cancelDrag(), this._mouseUp(this.mouseDownEvent);
|
|
2041
2041
|
else if (t && i && (e.key === "r" || e.key === "R")) {
|
|
@@ -2047,7 +2047,7 @@ class mt extends Ai {
|
|
|
2047
2047
|
/** @internal create a clone copy (or user defined method) of the original drag item if set */
|
|
2048
2048
|
_createHelper() {
|
|
2049
2049
|
let e = this.el;
|
|
2050
|
-
return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = p.cloneNode(this.el)), e.parentElement || p.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle =
|
|
2050
|
+
return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = p.cloneNode(this.el)), e.parentElement || p.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = vt.originStyleProp.map((t) => this.el.style[t]), e;
|
|
2051
2051
|
}
|
|
2052
2052
|
/** @internal set the fix position of the dragged item */
|
|
2053
2053
|
_setupHelperStyle(e) {
|
|
@@ -2061,7 +2061,7 @@ class mt extends Ai {
|
|
|
2061
2061
|
_removeHelperStyle() {
|
|
2062
2062
|
if (this.helper.classList.remove("ui-draggable-dragging"), this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"), !this.helper?.gridstackNode?._isAboutToRemove && this.dragElementOriginStyle) {
|
|
2063
2063
|
const t = this.helper, i = this.dragElementOriginStyle.transition || null;
|
|
2064
|
-
t.style.transition = this.dragElementOriginStyle.transition = "none",
|
|
2064
|
+
t.style.transition = this.dragElementOriginStyle.transition = "none", vt.originStyleProp.forEach((r) => t.style[r] = this.dragElementOriginStyle[r] || null), setTimeout(() => t.style.transition = i, 50);
|
|
2065
2065
|
}
|
|
2066
2066
|
return delete this.dragElementOriginStyle, this;
|
|
2067
2067
|
}
|
|
@@ -2103,8 +2103,8 @@ class mt extends Ai {
|
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
|
-
|
|
2107
|
-
class
|
|
2106
|
+
vt.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
|
|
2107
|
+
class Fo extends Ai {
|
|
2108
2108
|
constructor(e, t = {}) {
|
|
2109
2109
|
super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
|
|
2110
2110
|
}
|
|
@@ -2128,19 +2128,19 @@ class Mo extends Ai {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
/** @internal called when the cursor enters our area - prepare for a possible drop and track leaving */
|
|
2130
2130
|
_mouseEnter(e) {
|
|
2131
|
-
if (!
|
|
2131
|
+
if (!P.dragElement || !this._canDrop(P.dragElement.el))
|
|
2132
2132
|
return;
|
|
2133
|
-
e.preventDefault(), e.stopPropagation(),
|
|
2133
|
+
e.preventDefault(), e.stopPropagation(), P.dropElement && P.dropElement !== this && P.dropElement._mouseLeave(e, !0), P.dropElement = this;
|
|
2134
2134
|
const t = p.initEvent(e, { target: this.el, type: "dropover" });
|
|
2135
|
-
this.option.over && this.option.over(t, this._ui(
|
|
2135
|
+
this.option.over && this.option.over(t, this._ui(P.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
|
|
2136
2136
|
}
|
|
2137
2137
|
/** @internal called when the item is leaving our area, stop tracking if we had moving item */
|
|
2138
2138
|
_mouseLeave(e, t = !1) {
|
|
2139
|
-
if (!
|
|
2139
|
+
if (!P.dragElement || P.dropElement !== this)
|
|
2140
2140
|
return;
|
|
2141
2141
|
e.preventDefault(), e.stopPropagation();
|
|
2142
2142
|
const i = p.initEvent(e, { target: this.el, type: "dropout" });
|
|
2143
|
-
if (this.option.out && this.option.out(i, this._ui(
|
|
2143
|
+
if (this.option.out && this.option.out(i, this._ui(P.dragElement)), this.triggerEvent("dropout", i), P.dropElement === this && (delete P.dropElement, !t)) {
|
|
2144
2144
|
let r, s = this.el.parentElement;
|
|
2145
2145
|
for (; !r && s; )
|
|
2146
2146
|
r = s.ddElement?.ddDroppable, s = s.parentElement;
|
|
@@ -2151,7 +2151,7 @@ class Mo extends Ai {
|
|
|
2151
2151
|
drop(e) {
|
|
2152
2152
|
e.preventDefault();
|
|
2153
2153
|
const t = p.initEvent(e, { target: this.el, type: "drop" });
|
|
2154
|
-
this.option.drop && this.option.drop(t, this._ui(
|
|
2154
|
+
this.option.drop && this.option.drop(t, this._ui(P.dragElement)), this.triggerEvent("drop", t);
|
|
2155
2155
|
}
|
|
2156
2156
|
/** @internal true if element matches the string/method accept option */
|
|
2157
2157
|
_canDrop(e) {
|
|
@@ -2183,25 +2183,25 @@ class Oi {
|
|
|
2183
2183
|
return this.ddDraggable && ["drag", "dragstart", "dragstop"].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && ["drop", "dropover", "dropout"].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && ["resizestart", "resize", "resizestop"].indexOf(e) > -1 && this.ddResizable.off(e), this;
|
|
2184
2184
|
}
|
|
2185
2185
|
setupDraggable(e) {
|
|
2186
|
-
return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new
|
|
2186
|
+
return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new vt(this.el, e), this;
|
|
2187
2187
|
}
|
|
2188
2188
|
cleanDraggable() {
|
|
2189
2189
|
return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
|
|
2190
2190
|
}
|
|
2191
2191
|
setupResizable(e) {
|
|
2192
|
-
return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new
|
|
2192
|
+
return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new mt(this.el, e), this;
|
|
2193
2193
|
}
|
|
2194
2194
|
cleanResizable() {
|
|
2195
2195
|
return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
|
|
2196
2196
|
}
|
|
2197
2197
|
setupDroppable(e) {
|
|
2198
|
-
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new
|
|
2198
|
+
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Fo(this.el, e), this;
|
|
2199
2199
|
}
|
|
2200
2200
|
cleanDroppable() {
|
|
2201
2201
|
return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
|
-
class
|
|
2204
|
+
class Bo {
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Enable/disable/configure resizing for grid elements.
|
|
2207
2207
|
*
|
|
@@ -2294,7 +2294,7 @@ class Lo {
|
|
|
2294
2294
|
}
|
|
2295
2295
|
on(e, t, i) {
|
|
2296
2296
|
return this._getDDElements(e).forEach((r) => r.on(t, (s) => {
|
|
2297
|
-
i(s,
|
|
2297
|
+
i(s, P.dragElement ? P.dragElement.el : s.target, P.dragElement ? P.dragElement.helper : null);
|
|
2298
2298
|
})), this;
|
|
2299
2299
|
}
|
|
2300
2300
|
off(e, t) {
|
|
@@ -2306,7 +2306,7 @@ class Lo {
|
|
|
2306
2306
|
return r.length ? r.map((o) => o.ddElement || (i ? Oi.init(o) : null)).filter((o) => o) : [];
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
const J = new
|
|
2309
|
+
const J = new Bo();
|
|
2310
2310
|
class k {
|
|
2311
2311
|
/**
|
|
2312
2312
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
@@ -2434,7 +2434,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2434
2434
|
const d = t.children;
|
|
2435
2435
|
delete t.children, d.length && this.load(d);
|
|
2436
2436
|
}
|
|
2437
|
-
this.setAnimation(), t.subGridDynamic && !
|
|
2437
|
+
this.setAnimation(), t.subGridDynamic && !P.pauseDrag && (P.pauseDrag = !0), t.draggable?.pause !== void 0 && (P.pauseDrag = t.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
|
|
2438
2438
|
}
|
|
2439
2439
|
_updateColumnVar(e = this.opts) {
|
|
2440
2440
|
this.el.classList.add("gs-" + e.column), typeof e.column == "number" && this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`);
|
|
@@ -3431,7 +3431,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3431
3431
|
* @param root optional root which defaults to document (for shadow dom pass the parent HTMLDocument)
|
|
3432
3432
|
*/
|
|
3433
3433
|
static setupDragIn(e, t, i, r = document) {
|
|
3434
|
-
t?.pause !== void 0 && (
|
|
3434
|
+
t?.pause !== void 0 && (P.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? p.getElements(e, r) : e).forEach((o, a) => {
|
|
3435
3435
|
J.isDraggable(o) || J.dragIn(o, t), i?.[a] && (o.gridstackNode = i[a]);
|
|
3436
3436
|
});
|
|
3437
3437
|
}
|
|
@@ -3818,7 +3818,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3818
3818
|
}
|
|
3819
3819
|
// legacy method removed
|
|
3820
3820
|
commit() {
|
|
3821
|
-
return
|
|
3821
|
+
return Io(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
3822
3822
|
}
|
|
3823
3823
|
}
|
|
3824
3824
|
k.renderCB = (n, e) => {
|
|
@@ -3829,8 +3829,8 @@ k.Utils = p;
|
|
|
3829
3829
|
k.Engine = Ne;
|
|
3830
3830
|
k.GDRev = "12.3.2";
|
|
3831
3831
|
const Tt = /* @__PURE__ */ new WeakMap();
|
|
3832
|
-
function
|
|
3833
|
-
const { _gridStack: { value: e, set: t }, options: i } = Zn(), r =
|
|
3832
|
+
function Wo({ children: n }) {
|
|
3833
|
+
const { _gridStack: { value: e, set: t }, options: i } = Zn(), r = M(/* @__PURE__ */ new Map()), s = M(null), o = M(i), a = U((l, u) => {
|
|
3834
3834
|
if (u.id && u.grid) {
|
|
3835
3835
|
let h = Tt.get(u.grid);
|
|
3836
3836
|
h || (h = /* @__PURE__ */ new Map(), Tt.set(u.grid, h)), h.set(u.id, l), r.current.set(u.id, l);
|
|
@@ -3902,7 +3902,7 @@ const ki = ({ options: n, widgets: e, onChange: t, className: i }) => {
|
|
|
3902
3902
|
}
|
|
3903
3903
|
return u;
|
|
3904
3904
|
};
|
|
3905
|
-
return f(
|
|
3905
|
+
return f(zo, {
|
|
3906
3906
|
options: s,
|
|
3907
3907
|
widgets: e,
|
|
3908
3908
|
onResizeStop: (c, d) => {
|
|
@@ -3918,16 +3918,16 @@ const ki = ({ options: n, widgets: e, onChange: t, className: i }) => {
|
|
|
3918
3918
|
});
|
|
3919
3919
|
},
|
|
3920
3920
|
onChange: t,
|
|
3921
|
-
children: f(
|
|
3922
|
-
children: f(
|
|
3921
|
+
children: f(Wo, {
|
|
3922
|
+
children: f(Lo, {})
|
|
3923
3923
|
})
|
|
3924
3924
|
});
|
|
3925
3925
|
};
|
|
3926
3926
|
ki.displayName = "F0GridStack";
|
|
3927
|
-
const
|
|
3927
|
+
const Go = (n, e, t) => f("div", {
|
|
3928
3928
|
children: n
|
|
3929
3929
|
}), Qt = ({ widgets: n = [], editMode: e = !1, onChange: t = () => {
|
|
3930
|
-
}, WidgetWrapper: i =
|
|
3930
|
+
}, WidgetWrapper: i = Go, main: r = !1, deps: s }) => {
|
|
3931
3931
|
const o = U((v, y, m) => f(Si.div, {
|
|
3932
3932
|
className: "h-full w-full",
|
|
3933
3933
|
initial: {
|
|
@@ -3988,7 +3988,7 @@ const Ho = (n, e, t) => f("div", {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
return typeof v.content == "function" ? null : v.content;
|
|
3990
3990
|
}, d = (v, y, m) => v.map((E) => {
|
|
3991
|
-
const
|
|
3991
|
+
const z = c(E, m), A = {
|
|
3992
3992
|
id: E.id,
|
|
3993
3993
|
h: E.h ?? 1,
|
|
3994
3994
|
w: E.w ?? 1,
|
|
@@ -3997,13 +3997,13 @@ const Ho = (n, e, t) => f("div", {
|
|
|
3997
3997
|
noResize: !y,
|
|
3998
3998
|
locked: E.locked,
|
|
3999
3999
|
meta: E.meta,
|
|
4000
|
-
_originalContent:
|
|
4001
|
-
content: o(
|
|
4000
|
+
_originalContent: z,
|
|
4001
|
+
content: o(z, E.meta, y)
|
|
4002
4002
|
};
|
|
4003
4003
|
return E.x !== void 0 && (A.x = E.x), E.y !== void 0 && (A.y = E.y), A;
|
|
4004
|
-
}), [l, u] =
|
|
4004
|
+
}), [l, u] = F(d(n, e)), h = M(e), g = M(n), C = M(!1), b = M(/* @__PURE__ */ new Map()), x = M(n);
|
|
4005
4005
|
x.current = n;
|
|
4006
|
-
const D =
|
|
4006
|
+
const D = M(s), N = H(() => {
|
|
4007
4007
|
const v = /* @__PURE__ */ new Map();
|
|
4008
4008
|
return !s || Object.keys(s).length === 0 || n.forEach((y) => {
|
|
4009
4009
|
if (y.deps && y.deps.length > 0) {
|
|
@@ -4036,35 +4036,35 @@ const Ho = (n, e, t) => f("div", {
|
|
|
4036
4036
|
E.set(_.id, R(S, O)), O ? b.current.set(_.id, O) : b.current.delete(_.id);
|
|
4037
4037
|
}
|
|
4038
4038
|
});
|
|
4039
|
-
const
|
|
4039
|
+
const z = new Set(n.map((_) => _.id));
|
|
4040
4040
|
b.current.forEach((_, S) => {
|
|
4041
|
-
|
|
4041
|
+
z.has(S) || b.current.delete(S);
|
|
4042
4042
|
});
|
|
4043
4043
|
const A = Array.from(E.values()).some((_) => _) || m;
|
|
4044
4044
|
v && !y && !A ? (C.current = !0, u((_) => _.map((S) => {
|
|
4045
4045
|
const O = n.find((Q) => Q.id === S.id);
|
|
4046
4046
|
if (!O)
|
|
4047
4047
|
return S;
|
|
4048
|
-
const
|
|
4048
|
+
const B = c(O, s);
|
|
4049
4049
|
return {
|
|
4050
4050
|
...S,
|
|
4051
4051
|
noMove: !e,
|
|
4052
4052
|
noResize: !e,
|
|
4053
4053
|
locked: O.locked,
|
|
4054
4054
|
meta: O.meta,
|
|
4055
|
-
_originalContent:
|
|
4056
|
-
content: o(
|
|
4055
|
+
_originalContent: B,
|
|
4056
|
+
content: o(B, O.meta, e)
|
|
4057
4057
|
};
|
|
4058
4058
|
}))) : (y || A) && u((_) => {
|
|
4059
4059
|
const S = new Map(_.map((O) => [O.id, O]));
|
|
4060
4060
|
return n.map((O) => {
|
|
4061
|
-
const
|
|
4061
|
+
const B = S.get(O.id), Q = E.get(O.id) ?? !1;
|
|
4062
4062
|
let ee;
|
|
4063
|
-
Q || !
|
|
4063
|
+
Q || !B ? ee = c(O, s) : ee = B._originalContent ?? c(O, s);
|
|
4064
4064
|
const V = {
|
|
4065
4065
|
id: O.id,
|
|
4066
|
-
h:
|
|
4067
|
-
w:
|
|
4066
|
+
h: B?.h ?? O.h ?? 1,
|
|
4067
|
+
w: B?.w ?? O.w ?? 1,
|
|
4068
4068
|
allowedSizes: O.availableSizes,
|
|
4069
4069
|
noMove: !e,
|
|
4070
4070
|
noResize: !e,
|
|
@@ -4072,12 +4072,12 @@ const Ho = (n, e, t) => f("div", {
|
|
|
4072
4072
|
meta: O.meta,
|
|
4073
4073
|
_originalContent: ee,
|
|
4074
4074
|
content: o(ee, O.meta, e)
|
|
4075
|
-
}, ue =
|
|
4075
|
+
}, ue = B?.x ?? O.x, j = B?.y ?? O.y;
|
|
4076
4076
|
return ue !== void 0 && (V.x = ue), j !== void 0 && (V.y = j), V;
|
|
4077
4077
|
});
|
|
4078
4078
|
}), h.current = e, g.current = n, D.current = s;
|
|
4079
4079
|
}, [n, e, o, N, s]), f(ki, {
|
|
4080
|
-
className:
|
|
4080
|
+
className: G(r && "h-full flex-1 overflow-auto"),
|
|
4081
4081
|
options: a,
|
|
4082
4082
|
onChange: w,
|
|
4083
4083
|
widgets: l
|
|
@@ -4085,13 +4085,13 @@ const Ho = (n, e, t) => f("div", {
|
|
|
4085
4085
|
};
|
|
4086
4086
|
Qt.displayName = "GroupGrid";
|
|
4087
4087
|
Qt.__isPageLayoutGroup = !0;
|
|
4088
|
-
const
|
|
4088
|
+
const $o = (n, e) => {
|
|
4089
4089
|
const t = e;
|
|
4090
4090
|
return t.displayName = n, t.__isPageLayoutBlock = !0, t;
|
|
4091
|
-
},
|
|
4091
|
+
}, jo = (n, e) => {
|
|
4092
4092
|
const t = e;
|
|
4093
4093
|
return t.displayName = n, t.__isPageLayoutGroup = !0, t;
|
|
4094
|
-
},
|
|
4094
|
+
}, Uo = (n, e) => f("svg", {
|
|
4095
4095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4096
4096
|
fill: "none",
|
|
4097
4097
|
viewBox: "0 0 24 24",
|
|
@@ -4102,8 +4102,8 @@ const Bo = (n, e) => {
|
|
|
4102
4102
|
d: "M11.9912 16C13.452 16.0001 14.8895 16.4311 16.1289 17.2705C16.6275 17.6086 16.6225 18.3843 16.1221 18.7188C14.8843 19.5444 13.4491 19.9999 11.9912 20C10.4905 19.9999 9.08362 19.5285 7.88184 18.7305C7.37377 18.3931 7.37263 17.6066 7.88086 17.2695C9.11404 16.4517 10.5409 16.0001 11.9912 16ZM5.27051 7.87109C5.60858 7.37248 6.38428 7.37747 6.71875 7.87793C7.54437 9.11572 7.9999 10.5509 8 12.0088C7.99994 13.5095 7.52845 14.9164 6.73047 16.1182C6.39307 16.6262 5.60663 16.6274 5.26953 16.1191C4.45167 14.886 4.00006 13.4591 4 12.0088C4.0001 10.548 4.43107 9.1105 5.27051 7.87109ZM17.2705 7.87109C17.6086 7.37248 18.3843 7.37747 18.7188 7.87793C19.5444 9.11572 19.9999 10.5509 20 12.0088C19.9999 13.5095 19.5285 14.9164 18.7305 16.1182C18.3931 16.6262 17.6066 16.6274 17.2695 16.1191C16.4517 14.886 16.0001 13.4591 16 12.0088C16.0001 10.548 16.4311 9.1105 17.2705 7.87109ZM11.9912 4C13.452 4.0001 14.8895 4.43107 16.1289 5.27051C16.6275 5.60858 16.6225 6.38428 16.1221 6.71875C14.8843 7.54437 13.4491 7.9999 11.9912 8C10.4905 7.99994 9.08362 7.52845 7.88184 6.73047C7.37377 6.39307 7.37263 5.60663 7.88086 5.26953C9.11404 4.45167 10.5409 4.00006 11.9912 4Z",
|
|
4103
4103
|
vectorEffect: "non-scaling-stroke"
|
|
4104
4104
|
})
|
|
4105
|
-
}), tr = oe(
|
|
4106
|
-
const t =
|
|
4105
|
+
}), tr = oe(Uo), Vo = ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style", "variant", "loading", "emoji"], ir = oe((n, e) => {
|
|
4106
|
+
const t = Vo.reduce((i, r) => {
|
|
4107
4107
|
const { [r]: s, ...o } = i;
|
|
4108
4108
|
return o;
|
|
4109
4109
|
}, n);
|
|
@@ -4115,7 +4115,7 @@ const Bo = (n, e) => {
|
|
|
4115
4115
|
});
|
|
4116
4116
|
});
|
|
4117
4117
|
ir.displayName = "AIButton";
|
|
4118
|
-
const fi =
|
|
4118
|
+
const fi = Ge({
|
|
4119
4119
|
base: "text-base text-f1-foreground",
|
|
4120
4120
|
variants: {
|
|
4121
4121
|
variant: {
|
|
@@ -4156,7 +4156,7 @@ const fi = xt({
|
|
|
4156
4156
|
variant: "body",
|
|
4157
4157
|
align: "left"
|
|
4158
4158
|
}
|
|
4159
|
-
}),
|
|
4159
|
+
}), Ko = {
|
|
4160
4160
|
"heading-large": "h1",
|
|
4161
4161
|
heading: "h2",
|
|
4162
4162
|
body: "p",
|
|
@@ -4176,14 +4176,14 @@ const fi = xt({
|
|
|
4176
4176
|
"info-strong": "p",
|
|
4177
4177
|
code: "code"
|
|
4178
4178
|
}, Ti = oe(({ content: n, variant: e, align: t, className: i, as: r, ellipsis: s, noEllipsisTooltip: o, markdown: a, ...c }, d) => {
|
|
4179
|
-
const l = r ??
|
|
4179
|
+
const l = r ?? Ko[e ?? "body"];
|
|
4180
4180
|
if (s !== void 0)
|
|
4181
4181
|
return f(Yr, {
|
|
4182
4182
|
ref: d,
|
|
4183
4183
|
lines: typeof s == "number" ? s : 1,
|
|
4184
4184
|
noTooltip: o,
|
|
4185
4185
|
tag: l,
|
|
4186
|
-
className:
|
|
4186
|
+
className: G(fi({
|
|
4187
4187
|
variant: e,
|
|
4188
4188
|
align: t
|
|
4189
4189
|
}), i),
|
|
@@ -4195,7 +4195,7 @@ const fi = xt({
|
|
|
4195
4195
|
const u = qr(n);
|
|
4196
4196
|
return Zi(l, {
|
|
4197
4197
|
...c,
|
|
4198
|
-
className:
|
|
4198
|
+
className: G(fi({
|
|
4199
4199
|
variant: e,
|
|
4200
4200
|
align: t
|
|
4201
4201
|
}), i),
|
|
@@ -4207,7 +4207,7 @@ const fi = xt({
|
|
|
4207
4207
|
}
|
|
4208
4208
|
return Zi(l, {
|
|
4209
4209
|
...c,
|
|
4210
|
-
className:
|
|
4210
|
+
className: G(fi({
|
|
4211
4211
|
variant: e,
|
|
4212
4212
|
align: t
|
|
4213
4213
|
}), i),
|
|
@@ -4221,14 +4221,14 @@ const nr = oe((n, e) => f(Ti, {
|
|
|
4221
4221
|
...n
|
|
4222
4222
|
}));
|
|
4223
4223
|
nr.displayName = "F0Text";
|
|
4224
|
-
const
|
|
4224
|
+
const Qc = [
|
|
4225
4225
|
"person",
|
|
4226
4226
|
"team",
|
|
4227
4227
|
"company",
|
|
4228
4228
|
"file",
|
|
4229
4229
|
"flag"
|
|
4230
4230
|
], rr = ({ title: n, draggable: e = !1, onDragStart: t, onDragEnd: i, isDragging: r = !1, AIButton: s, actions: o, children: a, selected: c = !1 }) => {
|
|
4231
|
-
const [d, l] =
|
|
4231
|
+
const [d, l] = F(!1), [u, h] = F(!1), g = Sn(), C = (x) => {
|
|
4232
4232
|
l(x);
|
|
4233
4233
|
}, b = u || d;
|
|
4234
4234
|
return I(() => {
|
|
@@ -4239,14 +4239,14 @@ const Kc = [
|
|
|
4239
4239
|
return document.addEventListener("mouseup", x), () => {
|
|
4240
4240
|
document.removeEventListener("mouseup", x);
|
|
4241
4241
|
};
|
|
4242
|
-
}, [r, i]),
|
|
4243
|
-
className:
|
|
4242
|
+
}, [r, i]), T("div", {
|
|
4243
|
+
className: G("group relative flex h-full w-full flex-col overflow-hidden rounded-xl border border-solid border-f1-border bg-f1-background transition-all duration-200", e && d ? "border-f1-border-hover" : e && "hover:border-f1-border-hover", c && "border-f1-border-selected-bold shadow-[0_0_0_4px_hsl(var(--selected-50)/0.1)]", r && "cursor-grabbing border-f1-border-hover shadow-[0_6px_12px_0_hsl(var(--shadow)/0.06),0_16px_24px_-12px_hsl(var(--shadow)/0.05)]"),
|
|
4244
4244
|
onMouseEnter: () => h(!0),
|
|
4245
4245
|
onMouseLeave: () => h(!1),
|
|
4246
|
-
children: [
|
|
4246
|
+
children: [T("div", {
|
|
4247
4247
|
className: "flex h-12 w-full items-center justify-between gap-3",
|
|
4248
|
-
children: [
|
|
4249
|
-
className:
|
|
4248
|
+
children: [T("div", {
|
|
4249
|
+
className: G("flex min-w-0 flex-1 items-center", !e && "pl-4", !o && !s && "pr-4"),
|
|
4250
4250
|
children: [e && f("div", {
|
|
4251
4251
|
className: "flex h-12 w-12 items-center justify-center text-f1-icon-secondary hover:cursor-grab",
|
|
4252
4252
|
onMouseDown: t,
|
|
@@ -4256,7 +4256,7 @@ const Kc = [
|
|
|
4256
4256
|
size: "xs"
|
|
4257
4257
|
})
|
|
4258
4258
|
}), f("div", {
|
|
4259
|
-
className:
|
|
4259
|
+
className: G("flex min-w-0 flex-1 items-center", e && "-translate-x-1.5"),
|
|
4260
4260
|
children: f(nr, {
|
|
4261
4261
|
variant: "label",
|
|
4262
4262
|
content: n,
|
|
@@ -4264,8 +4264,8 @@ const Kc = [
|
|
|
4264
4264
|
})
|
|
4265
4265
|
})]
|
|
4266
4266
|
}), f(Zr, {
|
|
4267
|
-
children: (s || o) && b &&
|
|
4268
|
-
className:
|
|
4267
|
+
children: (s || o) && b && T(Si.div, {
|
|
4268
|
+
className: G("flex shrink-0 items-center gap-0.5 pr-2", !o && "pr-4"),
|
|
4269
4269
|
initial: {
|
|
4270
4270
|
opacity: 0
|
|
4271
4271
|
},
|
|
@@ -4310,14 +4310,14 @@ const Kc = [
|
|
|
4310
4310
|
children: a
|
|
4311
4311
|
})]
|
|
4312
4312
|
});
|
|
4313
|
-
},
|
|
4313
|
+
}, Xo = () => T("div", {
|
|
4314
4314
|
className: "relative flex h-full w-full cursor-progress flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background",
|
|
4315
4315
|
children: [f("div", {
|
|
4316
4316
|
className: "flex h-12 w-full items-center px-4",
|
|
4317
4317
|
children: f(we, {
|
|
4318
4318
|
className: "h-3 w-full max-w-16 rounded-md"
|
|
4319
4319
|
})
|
|
4320
|
-
}),
|
|
4320
|
+
}), T("div", {
|
|
4321
4321
|
className: "flex flex-1 items-end gap-2 px-4 pb-4",
|
|
4322
4322
|
children: [f(we, {
|
|
4323
4323
|
className: "h-1/2 w-full rounded-sm"
|
|
@@ -4335,7 +4335,7 @@ const Kc = [
|
|
|
4335
4335
|
})]
|
|
4336
4336
|
});
|
|
4337
4337
|
rr.displayName = "F0Widget";
|
|
4338
|
-
const
|
|
4338
|
+
const Yo = Rn(rr, Xo), qo = ({ children: n, title: e, draggable: t = !1, actions: i, aiButton: r }) => f(Yo, {
|
|
4339
4339
|
title: e,
|
|
4340
4340
|
draggable: t,
|
|
4341
4341
|
actions: i,
|
|
@@ -4348,7 +4348,7 @@ const Uo = Rn(rr, jo), Vo = ({ children: n, title: e, draggable: t = !1, actions
|
|
|
4348
4348
|
onChange: t,
|
|
4349
4349
|
deps: i,
|
|
4350
4350
|
...r,
|
|
4351
|
-
WidgetWrapper: (s, o, a) => f(
|
|
4351
|
+
WidgetWrapper: (s, o, a) => f(qo, {
|
|
4352
4352
|
title: o?.title ?? "",
|
|
4353
4353
|
draggable: a,
|
|
4354
4354
|
actions: o?.actions,
|
|
@@ -4357,7 +4357,7 @@ const Uo = Rn(rr, jo), Vo = ({ children: n, title: e, draggable: t = !1, actions
|
|
|
4357
4357
|
})
|
|
4358
4358
|
});
|
|
4359
4359
|
sr.displayName = "Dashboard";
|
|
4360
|
-
const
|
|
4360
|
+
const Jo = jo("Dashboard", sr), ed = fe("Dashboard", Jo), Zo = Ge({
|
|
4361
4361
|
base: "flex w-full flex-col p-4",
|
|
4362
4362
|
variants: {
|
|
4363
4363
|
variant: {
|
|
@@ -4366,18 +4366,18 @@ const Ko = Fo("Dashboard", sr), Xc = fe("Dashboard", Ko), Xo = xt({
|
|
|
4366
4366
|
full: "p-0"
|
|
4367
4367
|
}
|
|
4368
4368
|
}
|
|
4369
|
-
}),
|
|
4369
|
+
}), Qo = (n) => (n || []).map((e) => e.items).reduce((e, t) => (e.length > 0 && e.push({
|
|
4370
4370
|
type: "separator"
|
|
4371
|
-
}), e.push(...t), e), []),
|
|
4371
|
+
}), e.push(...t), e), []), ea = (n) => {
|
|
4372
4372
|
const e = (t) => "onClick" in t;
|
|
4373
4373
|
return Array.isArray(n) ? n.every(e) ? [{
|
|
4374
4374
|
items: n
|
|
4375
4375
|
}] : n : [n];
|
|
4376
4376
|
}, ei = oe(({ children: n, variant: e = "default", className: t, draggable: i = !1, onDragStart: r, onDragEnd: s, onDrop: o, dragId: a, primaryAction: c, ...d }, l) => {
|
|
4377
|
-
const u = H(() =>
|
|
4378
|
-
return
|
|
4377
|
+
const u = H(() => ea(d.actions || []), [d.actions]), h = H(() => u.flatMap((C) => C.items), [u]), g = H(() => h.length > 0 || !!c, [h, c]);
|
|
4378
|
+
return T("div", {
|
|
4379
4379
|
ref: l,
|
|
4380
|
-
className:
|
|
4380
|
+
className: G(Zo({
|
|
4381
4381
|
variant: e
|
|
4382
4382
|
}), "relative", t),
|
|
4383
4383
|
draggable: i,
|
|
@@ -4386,10 +4386,10 @@ const Ko = Fo("Dashboard", sr), Xc = fe("Dashboard", Ko), Xo = xt({
|
|
|
4386
4386
|
onDrop: o,
|
|
4387
4387
|
"data-drag-id": a,
|
|
4388
4388
|
...d,
|
|
4389
|
-
children: [g &&
|
|
4389
|
+
children: [g && T("div", {
|
|
4390
4390
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
4391
|
-
children: [!!c && c, h.length > 0 && f(
|
|
4392
|
-
items:
|
|
4391
|
+
children: [!!c && c, h.length > 0 && f(zs, {
|
|
4392
|
+
items: Qo(u)
|
|
4393
4393
|
})]
|
|
4394
4394
|
}), f("div", {
|
|
4395
4395
|
children: n
|
|
@@ -4398,16 +4398,16 @@ const Ko = Fo("Dashboard", sr), Xc = fe("Dashboard", Ko), Xo = xt({
|
|
|
4398
4398
|
});
|
|
4399
4399
|
ei.displayName = "Block";
|
|
4400
4400
|
ei.__isPageLayoutBlock = !0;
|
|
4401
|
-
const
|
|
4401
|
+
const ta = ({ title: n = "", description: e, titleLevel: t = "h2", children: i, className: r, ...s }) => {
|
|
4402
4402
|
if (!n) return null;
|
|
4403
4403
|
const o = t;
|
|
4404
|
-
return
|
|
4404
|
+
return T(ei, {
|
|
4405
4405
|
...s,
|
|
4406
|
-
className:
|
|
4407
|
-
children: [
|
|
4406
|
+
className: G("space-y-4", r),
|
|
4407
|
+
children: [T("div", {
|
|
4408
4408
|
className: "space-y-2",
|
|
4409
4409
|
children: [f(o, {
|
|
4410
|
-
className:
|
|
4410
|
+
className: G("font-semibold text-f1-foreground", {
|
|
4411
4411
|
"text-2xl": t === "h1",
|
|
4412
4412
|
"text-xl": t === "h2",
|
|
4413
4413
|
"text-lg": t === "h3",
|
|
@@ -4425,16 +4425,16 @@ const Jo = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4425
4425
|
children: i
|
|
4426
4426
|
})]
|
|
4427
4427
|
});
|
|
4428
|
-
},
|
|
4428
|
+
}, ia = $o("BlockContent", ta), na = (n) => !Hn(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutBlock" in n.type, ra = (n) => !Hn(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutGroup" in n.type, or = (n, e, t) => {
|
|
4429
4429
|
const i = It.toArray(e);
|
|
4430
4430
|
for (const r of i)
|
|
4431
|
-
t.includes("block") &&
|
|
4431
|
+
t.includes("block") && na(r) || t.includes("group") && ra(r) || console.warn(
|
|
4432
4432
|
`${n}: Children components must inherit from PageLayoutBlock or PageLayoutGroup. Found:`,
|
|
4433
4433
|
r
|
|
4434
4434
|
);
|
|
4435
4435
|
}, zi = oe(({ children: n, onSort: e, ...t }, i) => {
|
|
4436
4436
|
or("GroupLinear", n, ["block"]);
|
|
4437
|
-
const [r, s] =
|
|
4437
|
+
const [r, s] = F(It.toArray(n));
|
|
4438
4438
|
return I(() => {
|
|
4439
4439
|
s(It.toArray(n));
|
|
4440
4440
|
}, [n]), I(() => {
|
|
@@ -4442,14 +4442,14 @@ const Jo = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4442
4442
|
}, [r, e]), f("div", {
|
|
4443
4443
|
ref: i,
|
|
4444
4444
|
...t,
|
|
4445
|
-
children: r.map((o, a) => f(
|
|
4445
|
+
children: r.map((o, a) => f(Ss, {
|
|
4446
4446
|
children: o
|
|
4447
4447
|
}, a))
|
|
4448
4448
|
});
|
|
4449
4449
|
});
|
|
4450
4450
|
zi.displayName = "GroupLinear";
|
|
4451
4451
|
zi.__isPageLayoutGroup = !0;
|
|
4452
|
-
function
|
|
4452
|
+
function sa() {
|
|
4453
4453
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
4454
4454
|
e[t] = arguments[t];
|
|
4455
4455
|
return H(
|
|
@@ -4461,7 +4461,7 @@ function ta() {
|
|
|
4461
4461
|
);
|
|
4462
4462
|
}
|
|
4463
4463
|
const ti = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
4464
|
-
function
|
|
4464
|
+
function et(n) {
|
|
4465
4465
|
const e = Object.prototype.toString.call(n);
|
|
4466
4466
|
return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
4467
4467
|
e === "[object global]";
|
|
@@ -4471,7 +4471,7 @@ function Pi(n) {
|
|
|
4471
4471
|
}
|
|
4472
4472
|
function Z(n) {
|
|
4473
4473
|
var e, t;
|
|
4474
|
-
return n ?
|
|
4474
|
+
return n ? et(n) ? n : Pi(n) && (e = (t = n.ownerDocument) == null ? void 0 : t.defaultView) != null ? e : window : window;
|
|
4475
4475
|
}
|
|
4476
4476
|
function Mi(n) {
|
|
4477
4477
|
const {
|
|
@@ -4480,17 +4480,17 @@ function Mi(n) {
|
|
|
4480
4480
|
return n instanceof e;
|
|
4481
4481
|
}
|
|
4482
4482
|
function wt(n) {
|
|
4483
|
-
return
|
|
4483
|
+
return et(n) ? !1 : n instanceof Z(n).HTMLElement;
|
|
4484
4484
|
}
|
|
4485
4485
|
function ar(n) {
|
|
4486
4486
|
return n instanceof Z(n).SVGElement;
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4489
|
-
return n ?
|
|
4488
|
+
function tt(n) {
|
|
4489
|
+
return n ? et(n) ? n.document : Pi(n) ? Mi(n) ? n : wt(n) || ar(n) ? n.ownerDocument : document : document : document;
|
|
4490
4490
|
}
|
|
4491
4491
|
const pe = ti ? bi : I;
|
|
4492
4492
|
function ii(n) {
|
|
4493
|
-
const e =
|
|
4493
|
+
const e = M(n);
|
|
4494
4494
|
return pe(() => {
|
|
4495
4495
|
e.current = n;
|
|
4496
4496
|
}), U(function() {
|
|
@@ -4499,23 +4499,23 @@ function ii(n) {
|
|
|
4499
4499
|
return e.current == null ? void 0 : e.current(...i);
|
|
4500
4500
|
}, []);
|
|
4501
4501
|
}
|
|
4502
|
-
function
|
|
4503
|
-
const n =
|
|
4502
|
+
function oa() {
|
|
4503
|
+
const n = M(null), e = U((i, r) => {
|
|
4504
4504
|
n.current = setInterval(i, r);
|
|
4505
4505
|
}, []), t = U(() => {
|
|
4506
4506
|
n.current !== null && (clearInterval(n.current), n.current = null);
|
|
4507
4507
|
}, []);
|
|
4508
4508
|
return [e, t];
|
|
4509
4509
|
}
|
|
4510
|
-
function
|
|
4510
|
+
function yt(n, e) {
|
|
4511
4511
|
e === void 0 && (e = [n]);
|
|
4512
|
-
const t =
|
|
4512
|
+
const t = M(n);
|
|
4513
4513
|
return pe(() => {
|
|
4514
4514
|
t.current !== n && (t.current = n);
|
|
4515
4515
|
}, e), t;
|
|
4516
4516
|
}
|
|
4517
4517
|
function Ct(n, e) {
|
|
4518
|
-
const t =
|
|
4518
|
+
const t = M();
|
|
4519
4519
|
return H(
|
|
4520
4520
|
() => {
|
|
4521
4521
|
const i = n(t.current);
|
|
@@ -4526,7 +4526,7 @@ function Ct(n, e) {
|
|
|
4526
4526
|
);
|
|
4527
4527
|
}
|
|
4528
4528
|
function $t(n) {
|
|
4529
|
-
const e = ii(n), t =
|
|
4529
|
+
const e = ii(n), t = M(null), i = U(
|
|
4530
4530
|
(r) => {
|
|
4531
4531
|
r !== t.current && e?.(r, t.current), t.current = r;
|
|
4532
4532
|
},
|
|
@@ -4536,7 +4536,7 @@ function $t(n) {
|
|
|
4536
4536
|
return [t, i];
|
|
4537
4537
|
}
|
|
4538
4538
|
function jt(n) {
|
|
4539
|
-
const e =
|
|
4539
|
+
const e = M();
|
|
4540
4540
|
return I(() => {
|
|
4541
4541
|
e.current = n;
|
|
4542
4542
|
}, [n]), e.current;
|
|
@@ -4566,8 +4566,8 @@ function lr(n) {
|
|
|
4566
4566
|
});
|
|
4567
4567
|
};
|
|
4568
4568
|
}
|
|
4569
|
-
const
|
|
4570
|
-
function
|
|
4569
|
+
const Je = /* @__PURE__ */ lr(1), bt = /* @__PURE__ */ lr(-1);
|
|
4570
|
+
function aa(n) {
|
|
4571
4571
|
return "clientX" in n && "clientY" in n;
|
|
4572
4572
|
}
|
|
4573
4573
|
function ni(n) {
|
|
@@ -4578,7 +4578,7 @@ function ni(n) {
|
|
|
4578
4578
|
} = Z(n.target);
|
|
4579
4579
|
return e && n instanceof e;
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function la(n) {
|
|
4582
4582
|
if (!n)
|
|
4583
4583
|
return !1;
|
|
4584
4584
|
const {
|
|
@@ -4587,7 +4587,7 @@ function ra(n) {
|
|
|
4587
4587
|
return e && n instanceof e;
|
|
4588
4588
|
}
|
|
4589
4589
|
function Ut(n) {
|
|
4590
|
-
if (
|
|
4590
|
+
if (la(n)) {
|
|
4591
4591
|
if (n.touches && n.touches.length) {
|
|
4592
4592
|
const {
|
|
4593
4593
|
clientX: e,
|
|
@@ -4608,12 +4608,12 @@ function Ut(n) {
|
|
|
4608
4608
|
};
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
4611
|
-
return
|
|
4611
|
+
return aa(n) ? {
|
|
4612
4612
|
x: n.clientX,
|
|
4613
4613
|
y: n.clientY
|
|
4614
4614
|
} : null;
|
|
4615
4615
|
}
|
|
4616
|
-
const
|
|
4616
|
+
const Fe = /* @__PURE__ */ Object.freeze({
|
|
4617
4617
|
Translate: {
|
|
4618
4618
|
toString(n) {
|
|
4619
4619
|
if (!n)
|
|
@@ -4639,7 +4639,7 @@ const Be = /* @__PURE__ */ Object.freeze({
|
|
|
4639
4639
|
Transform: {
|
|
4640
4640
|
toString(n) {
|
|
4641
4641
|
if (n)
|
|
4642
|
-
return [
|
|
4642
|
+
return [Fe.Translate.toString(n), Fe.Scale.toString(n)].join(" ");
|
|
4643
4643
|
}
|
|
4644
4644
|
},
|
|
4645
4645
|
Transition: {
|
|
@@ -4653,23 +4653,23 @@ const Be = /* @__PURE__ */ Object.freeze({
|
|
|
4653
4653
|
}
|
|
4654
4654
|
}
|
|
4655
4655
|
}), an = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
4656
|
-
function
|
|
4656
|
+
function ca(n) {
|
|
4657
4657
|
return n.matches(an) ? n : n.querySelector(an);
|
|
4658
4658
|
}
|
|
4659
|
-
const
|
|
4659
|
+
const da = {
|
|
4660
4660
|
display: "none"
|
|
4661
4661
|
};
|
|
4662
|
-
function
|
|
4662
|
+
function ua(n) {
|
|
4663
4663
|
let {
|
|
4664
4664
|
id: e,
|
|
4665
4665
|
value: t
|
|
4666
4666
|
} = n;
|
|
4667
|
-
return
|
|
4667
|
+
return L.createElement("div", {
|
|
4668
4668
|
id: e,
|
|
4669
|
-
style:
|
|
4669
|
+
style: da
|
|
4670
4670
|
}, t);
|
|
4671
4671
|
}
|
|
4672
|
-
function
|
|
4672
|
+
function ha(n) {
|
|
4673
4673
|
let {
|
|
4674
4674
|
id: e,
|
|
4675
4675
|
announcement: t,
|
|
@@ -4689,7 +4689,7 @@ function la(n) {
|
|
|
4689
4689
|
clipPath: "inset(100%)",
|
|
4690
4690
|
whiteSpace: "nowrap"
|
|
4691
4691
|
};
|
|
4692
|
-
return
|
|
4692
|
+
return L.createElement("div", {
|
|
4693
4693
|
id: e,
|
|
4694
4694
|
style: r,
|
|
4695
4695
|
role: "status",
|
|
@@ -4697,8 +4697,8 @@ function la(n) {
|
|
|
4697
4697
|
"aria-atomic": !0
|
|
4698
4698
|
}, t);
|
|
4699
4699
|
}
|
|
4700
|
-
function
|
|
4701
|
-
const [n, e] =
|
|
4700
|
+
function fa() {
|
|
4701
|
+
const [n, e] = F("");
|
|
4702
4702
|
return {
|
|
4703
4703
|
announce: U((i) => {
|
|
4704
4704
|
i != null && e(i);
|
|
@@ -4707,7 +4707,7 @@ function ca() {
|
|
|
4707
4707
|
};
|
|
4708
4708
|
}
|
|
4709
4709
|
const cr = /* @__PURE__ */ Ae(null);
|
|
4710
|
-
function
|
|
4710
|
+
function ga(n) {
|
|
4711
4711
|
const e = _e(cr);
|
|
4712
4712
|
I(() => {
|
|
4713
4713
|
if (!e)
|
|
@@ -4715,8 +4715,8 @@ function da(n) {
|
|
|
4715
4715
|
return e(n);
|
|
4716
4716
|
}, [n, e]);
|
|
4717
4717
|
}
|
|
4718
|
-
function
|
|
4719
|
-
const [n] =
|
|
4718
|
+
function pa() {
|
|
4719
|
+
const [n] = F(() => /* @__PURE__ */ new Set()), e = U((i) => (n.add(i), () => n.delete(i)), [n]);
|
|
4720
4720
|
return [U((i) => {
|
|
4721
4721
|
let {
|
|
4722
4722
|
type: r,
|
|
@@ -4728,13 +4728,13 @@ function ua() {
|
|
|
4728
4728
|
});
|
|
4729
4729
|
}, [n]), e];
|
|
4730
4730
|
}
|
|
4731
|
-
const
|
|
4731
|
+
const ma = {
|
|
4732
4732
|
draggable: `
|
|
4733
4733
|
To pick up a draggable item, press the space bar.
|
|
4734
4734
|
While dragging, use the arrow keys to move the item.
|
|
4735
4735
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
4736
4736
|
`
|
|
4737
|
-
},
|
|
4737
|
+
}, va = {
|
|
4738
4738
|
onDragStart(n) {
|
|
4739
4739
|
let {
|
|
4740
4740
|
active: e
|
|
@@ -4762,20 +4762,20 @@ const ha = {
|
|
|
4762
4762
|
return "Dragging was cancelled. Draggable item " + e.id + " was dropped.";
|
|
4763
4763
|
}
|
|
4764
4764
|
};
|
|
4765
|
-
function
|
|
4765
|
+
function ya(n) {
|
|
4766
4766
|
let {
|
|
4767
|
-
announcements: e =
|
|
4767
|
+
announcements: e = va,
|
|
4768
4768
|
container: t,
|
|
4769
4769
|
hiddenTextDescribedById: i,
|
|
4770
|
-
screenReaderInstructions: r =
|
|
4770
|
+
screenReaderInstructions: r = ma
|
|
4771
4771
|
} = n;
|
|
4772
4772
|
const {
|
|
4773
4773
|
announce: s,
|
|
4774
4774
|
announcement: o
|
|
4775
|
-
} =
|
|
4775
|
+
} = fa(), a = _t("DndLiveRegion"), [c, d] = F(!1);
|
|
4776
4776
|
if (I(() => {
|
|
4777
4777
|
d(!0);
|
|
4778
|
-
}, []),
|
|
4778
|
+
}, []), ga(H(() => ({
|
|
4779
4779
|
onDragStart(u) {
|
|
4780
4780
|
let {
|
|
4781
4781
|
active: h
|
|
@@ -4826,14 +4826,14 @@ function ga(n) {
|
|
|
4826
4826
|
}
|
|
4827
4827
|
}), [s, e])), !c)
|
|
4828
4828
|
return null;
|
|
4829
|
-
const l =
|
|
4829
|
+
const l = L.createElement(L.Fragment, null, L.createElement(ua, {
|
|
4830
4830
|
id: i,
|
|
4831
4831
|
value: r.draggable
|
|
4832
|
-
}),
|
|
4832
|
+
}), L.createElement(ha, {
|
|
4833
4833
|
id: a,
|
|
4834
4834
|
announcement: o
|
|
4835
4835
|
}));
|
|
4836
|
-
return t ?
|
|
4836
|
+
return t ? Fn(l, t) : l;
|
|
4837
4837
|
}
|
|
4838
4838
|
var K;
|
|
4839
4839
|
(function(n) {
|
|
@@ -4851,7 +4851,7 @@ function ln(n, e) {
|
|
|
4851
4851
|
[n, e]
|
|
4852
4852
|
);
|
|
4853
4853
|
}
|
|
4854
|
-
function
|
|
4854
|
+
function ba() {
|
|
4855
4855
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
4856
4856
|
e[t] = arguments[t];
|
|
4857
4857
|
return H(
|
|
@@ -4864,10 +4864,10 @@ const me = /* @__PURE__ */ Object.freeze({
|
|
|
4864
4864
|
x: 0,
|
|
4865
4865
|
y: 0
|
|
4866
4866
|
});
|
|
4867
|
-
function
|
|
4867
|
+
function xa(n, e) {
|
|
4868
4868
|
return Math.sqrt(Math.pow(n.x - e.x, 2) + Math.pow(n.y - e.y, 2));
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4870
|
+
function wa(n, e) {
|
|
4871
4871
|
const t = Ut(n);
|
|
4872
4872
|
if (!t)
|
|
4873
4873
|
return "0 0";
|
|
@@ -4877,7 +4877,7 @@ function va(n, e) {
|
|
|
4877
4877
|
};
|
|
4878
4878
|
return i.x + "% " + i.y + "%";
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function Ca(n, e) {
|
|
4881
4881
|
let {
|
|
4882
4882
|
data: {
|
|
4883
4883
|
value: t
|
|
@@ -4889,7 +4889,7 @@ function ya(n, e) {
|
|
|
4889
4889
|
} = e;
|
|
4890
4890
|
return t - i;
|
|
4891
4891
|
}
|
|
4892
|
-
function
|
|
4892
|
+
function _a(n, e) {
|
|
4893
4893
|
let {
|
|
4894
4894
|
data: {
|
|
4895
4895
|
value: t
|
|
@@ -4928,7 +4928,7 @@ function dr(n, e) {
|
|
|
4928
4928
|
const [t] = n;
|
|
4929
4929
|
return t[e];
|
|
4930
4930
|
}
|
|
4931
|
-
const
|
|
4931
|
+
const Ea = (n) => {
|
|
4932
4932
|
let {
|
|
4933
4933
|
collisionRect: e,
|
|
4934
4934
|
droppableRects: t,
|
|
@@ -4940,7 +4940,7 @@ const xa = (n) => {
|
|
|
4940
4940
|
id: a
|
|
4941
4941
|
} = o, c = t.get(a);
|
|
4942
4942
|
if (c) {
|
|
4943
|
-
const d = cn(c), l = r.reduce((h, g, C) => h +
|
|
4943
|
+
const d = cn(c), l = r.reduce((h, g, C) => h + xa(d[C], g), 0), u = Number((l / 4).toFixed(4));
|
|
4944
4944
|
s.push({
|
|
4945
4945
|
id: a,
|
|
4946
4946
|
data: {
|
|
@@ -4950,9 +4950,9 @@ const xa = (n) => {
|
|
|
4950
4950
|
});
|
|
4951
4951
|
}
|
|
4952
4952
|
}
|
|
4953
|
-
return s.sort(
|
|
4953
|
+
return s.sort(Ca);
|
|
4954
4954
|
};
|
|
4955
|
-
function
|
|
4955
|
+
function Da(n, e) {
|
|
4956
4956
|
const t = Math.max(e.top, n.top), i = Math.max(e.left, n.left), r = Math.min(e.left + e.width, n.left + n.width), s = Math.min(e.top + e.height, n.top + n.height), o = r - i, a = s - t;
|
|
4957
4957
|
if (i < r && t < s) {
|
|
4958
4958
|
const c = e.width * e.height, d = n.width * n.height, l = o * a, u = l / (c + d - l);
|
|
@@ -4960,7 +4960,7 @@ function wa(n, e) {
|
|
|
4960
4960
|
}
|
|
4961
4961
|
return 0;
|
|
4962
4962
|
}
|
|
4963
|
-
const
|
|
4963
|
+
const Ra = (n) => {
|
|
4964
4964
|
let {
|
|
4965
4965
|
collisionRect: e,
|
|
4966
4966
|
droppableRects: t,
|
|
@@ -4972,7 +4972,7 @@ const Ca = (n) => {
|
|
|
4972
4972
|
id: o
|
|
4973
4973
|
} = s, a = t.get(o);
|
|
4974
4974
|
if (a) {
|
|
4975
|
-
const c =
|
|
4975
|
+
const c = Da(a, e);
|
|
4976
4976
|
c > 0 && r.push({
|
|
4977
4977
|
id: o,
|
|
4978
4978
|
data: {
|
|
@@ -4982,9 +4982,9 @@ const Ca = (n) => {
|
|
|
4982
4982
|
});
|
|
4983
4983
|
}
|
|
4984
4984
|
}
|
|
4985
|
-
return r.sort(
|
|
4985
|
+
return r.sort(_a);
|
|
4986
4986
|
};
|
|
4987
|
-
function
|
|
4987
|
+
function Sa(n, e, t) {
|
|
4988
4988
|
return {
|
|
4989
4989
|
...n,
|
|
4990
4990
|
scaleX: e && t ? e.width / t.width : 1,
|
|
@@ -4997,7 +4997,7 @@ function ur(n, e) {
|
|
|
4997
4997
|
y: n.top - e.top
|
|
4998
4998
|
} : me;
|
|
4999
4999
|
}
|
|
5000
|
-
function
|
|
5000
|
+
function Na(n) {
|
|
5001
5001
|
return function(t) {
|
|
5002
5002
|
for (var i = arguments.length, r = new Array(i > 1 ? i - 1 : 0), s = 1; s < i; s++)
|
|
5003
5003
|
r[s - 1] = arguments[s];
|
|
@@ -5012,7 +5012,7 @@ function Ea(n) {
|
|
|
5012
5012
|
});
|
|
5013
5013
|
};
|
|
5014
5014
|
}
|
|
5015
|
-
const
|
|
5015
|
+
const Aa = /* @__PURE__ */ Na(1);
|
|
5016
5016
|
function hr(n) {
|
|
5017
5017
|
if (n.startsWith("matrix3d(")) {
|
|
5018
5018
|
const e = n.slice(9, -1).split(/, /);
|
|
@@ -5033,7 +5033,7 @@ function hr(n) {
|
|
|
5033
5033
|
}
|
|
5034
5034
|
return null;
|
|
5035
5035
|
}
|
|
5036
|
-
function
|
|
5036
|
+
function Oa(n, e, t) {
|
|
5037
5037
|
const i = hr(e);
|
|
5038
5038
|
if (!i)
|
|
5039
5039
|
return n;
|
|
@@ -5052,18 +5052,18 @@ function Ra(n, e, t) {
|
|
|
5052
5052
|
left: c
|
|
5053
5053
|
};
|
|
5054
5054
|
}
|
|
5055
|
-
const
|
|
5055
|
+
const ka = {
|
|
5056
5056
|
ignoreTransform: !1
|
|
5057
5057
|
};
|
|
5058
|
-
function
|
|
5059
|
-
e === void 0 && (e =
|
|
5058
|
+
function it(n, e) {
|
|
5059
|
+
e === void 0 && (e = ka);
|
|
5060
5060
|
let t = n.getBoundingClientRect();
|
|
5061
5061
|
if (e.ignoreTransform) {
|
|
5062
5062
|
const {
|
|
5063
5063
|
transform: d,
|
|
5064
5064
|
transformOrigin: l
|
|
5065
5065
|
} = Z(n).getComputedStyle(n);
|
|
5066
|
-
d && (t =
|
|
5066
|
+
d && (t = Oa(t, d, l));
|
|
5067
5067
|
}
|
|
5068
5068
|
const {
|
|
5069
5069
|
top: i,
|
|
@@ -5083,11 +5083,11 @@ function tt(n, e) {
|
|
|
5083
5083
|
};
|
|
5084
5084
|
}
|
|
5085
5085
|
function dn(n) {
|
|
5086
|
-
return
|
|
5086
|
+
return it(n, {
|
|
5087
5087
|
ignoreTransform: !0
|
|
5088
5088
|
});
|
|
5089
5089
|
}
|
|
5090
|
-
function
|
|
5090
|
+
function Ta(n) {
|
|
5091
5091
|
const e = n.innerWidth, t = n.innerHeight;
|
|
5092
5092
|
return {
|
|
5093
5093
|
top: 0,
|
|
@@ -5098,10 +5098,10 @@ function Na(n) {
|
|
|
5098
5098
|
height: t
|
|
5099
5099
|
};
|
|
5100
5100
|
}
|
|
5101
|
-
function
|
|
5101
|
+
function za(n, e) {
|
|
5102
5102
|
return e === void 0 && (e = Z(n).getComputedStyle(n)), e.position === "fixed";
|
|
5103
5103
|
}
|
|
5104
|
-
function
|
|
5104
|
+
function Pa(n, e) {
|
|
5105
5105
|
e === void 0 && (e = Z(n).getComputedStyle(n));
|
|
5106
5106
|
const t = /(auto|scroll|overlay)/;
|
|
5107
5107
|
return ["overflow", "overflowX", "overflowY"].some((r) => {
|
|
@@ -5119,7 +5119,7 @@ function ri(n, e) {
|
|
|
5119
5119
|
if (!wt(r) || ar(r) || t.includes(r))
|
|
5120
5120
|
return t;
|
|
5121
5121
|
const s = Z(n).getComputedStyle(r);
|
|
5122
|
-
return r !== n &&
|
|
5122
|
+
return r !== n && Pa(r, s) && t.push(r), za(r, s) ? t : i(r.parentNode);
|
|
5123
5123
|
}
|
|
5124
5124
|
return n ? i(n) : t;
|
|
5125
5125
|
}
|
|
@@ -5128,13 +5128,13 @@ function fr(n) {
|
|
|
5128
5128
|
return e ?? null;
|
|
5129
5129
|
}
|
|
5130
5130
|
function pi(n) {
|
|
5131
|
-
return !ti || !n ? null :
|
|
5131
|
+
return !ti || !n ? null : et(n) ? n : Pi(n) ? Mi(n) || n === tt(n).scrollingElement ? window : wt(n) ? n : null : null;
|
|
5132
5132
|
}
|
|
5133
5133
|
function gr(n) {
|
|
5134
|
-
return
|
|
5134
|
+
return et(n) ? n.scrollX : n.scrollLeft;
|
|
5135
5135
|
}
|
|
5136
5136
|
function pr(n) {
|
|
5137
|
-
return
|
|
5137
|
+
return et(n) ? n.scrollY : n.scrollTop;
|
|
5138
5138
|
}
|
|
5139
5139
|
function wi(n) {
|
|
5140
5140
|
return {
|
|
@@ -5172,18 +5172,18 @@ function vr(n) {
|
|
|
5172
5172
|
minScroll: e
|
|
5173
5173
|
};
|
|
5174
5174
|
}
|
|
5175
|
-
const
|
|
5175
|
+
const Ma = {
|
|
5176
5176
|
x: 0.2,
|
|
5177
5177
|
y: 0.2
|
|
5178
5178
|
};
|
|
5179
|
-
function
|
|
5179
|
+
function La(n, e, t, i, r) {
|
|
5180
5180
|
let {
|
|
5181
5181
|
top: s,
|
|
5182
5182
|
left: o,
|
|
5183
5183
|
right: a,
|
|
5184
5184
|
bottom: c
|
|
5185
5185
|
} = t;
|
|
5186
|
-
i === void 0 && (i = 10), r === void 0 && (r =
|
|
5186
|
+
i === void 0 && (i = 10), r === void 0 && (r = Ma);
|
|
5187
5187
|
const {
|
|
5188
5188
|
isTop: d,
|
|
5189
5189
|
isBottom: l,
|
|
@@ -5204,7 +5204,7 @@ function Ta(n, e, t, i, r) {
|
|
|
5204
5204
|
speed: C
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
|
-
function
|
|
5207
|
+
function Ia(n) {
|
|
5208
5208
|
if (n === document.scrollingElement) {
|
|
5209
5209
|
const {
|
|
5210
5210
|
innerWidth: s,
|
|
@@ -5235,16 +5235,16 @@ function za(n) {
|
|
|
5235
5235
|
};
|
|
5236
5236
|
}
|
|
5237
5237
|
function yr(n) {
|
|
5238
|
-
return n.reduce((e, t) =>
|
|
5238
|
+
return n.reduce((e, t) => Je(e, wi(t)), me);
|
|
5239
5239
|
}
|
|
5240
|
-
function
|
|
5240
|
+
function Ha(n) {
|
|
5241
5241
|
return n.reduce((e, t) => e + gr(t), 0);
|
|
5242
5242
|
}
|
|
5243
|
-
function
|
|
5243
|
+
function Fa(n) {
|
|
5244
5244
|
return n.reduce((e, t) => e + pr(t), 0);
|
|
5245
5245
|
}
|
|
5246
5246
|
function br(n, e) {
|
|
5247
|
-
if (e === void 0 && (e =
|
|
5247
|
+
if (e === void 0 && (e = it), !n)
|
|
5248
5248
|
return;
|
|
5249
5249
|
const {
|
|
5250
5250
|
top: t,
|
|
@@ -5257,7 +5257,7 @@ function br(n, e) {
|
|
|
5257
5257
|
inline: "center"
|
|
5258
5258
|
});
|
|
5259
5259
|
}
|
|
5260
|
-
const
|
|
5260
|
+
const Ba = [["x", ["left", "right"], Ha], ["y", ["top", "bottom"], Fa]];
|
|
5261
5261
|
class Li {
|
|
5262
5262
|
constructor(e, t) {
|
|
5263
5263
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -5265,7 +5265,7 @@ class Li {
|
|
|
5265
5265
|
this.rect = {
|
|
5266
5266
|
...e
|
|
5267
5267
|
}, this.width = e.width, this.height = e.height;
|
|
5268
|
-
for (const [s, o, a] of
|
|
5268
|
+
for (const [s, o, a] of Ba)
|
|
5269
5269
|
for (const c of o)
|
|
5270
5270
|
Object.defineProperty(this, c, {
|
|
5271
5271
|
get: () => {
|
|
@@ -5279,7 +5279,7 @@ class Li {
|
|
|
5279
5279
|
});
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
5282
|
-
class
|
|
5282
|
+
class ut {
|
|
5283
5283
|
constructor(e) {
|
|
5284
5284
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
5285
5285
|
this.listeners.forEach((t) => {
|
|
@@ -5293,11 +5293,11 @@ class dt {
|
|
|
5293
5293
|
(r = this.target) == null || r.addEventListener(e, t, i), this.listeners.push([e, t, i]);
|
|
5294
5294
|
}
|
|
5295
5295
|
}
|
|
5296
|
-
function
|
|
5296
|
+
function Wa(n) {
|
|
5297
5297
|
const {
|
|
5298
5298
|
EventTarget: e
|
|
5299
5299
|
} = Z(n);
|
|
5300
|
-
return n instanceof e ? n :
|
|
5300
|
+
return n instanceof e ? n : tt(n);
|
|
5301
5301
|
}
|
|
5302
5302
|
function mi(n, e) {
|
|
5303
5303
|
const t = Math.abs(n.x), i = Math.abs(n.y);
|
|
@@ -5310,7 +5310,7 @@ var de;
|
|
|
5310
5310
|
function un(n) {
|
|
5311
5311
|
n.preventDefault();
|
|
5312
5312
|
}
|
|
5313
|
-
function
|
|
5313
|
+
function Ga(n) {
|
|
5314
5314
|
n.stopPropagation();
|
|
5315
5315
|
}
|
|
5316
5316
|
var W;
|
|
@@ -5321,7 +5321,7 @@ const xr = {
|
|
|
5321
5321
|
start: [W.Space, W.Enter],
|
|
5322
5322
|
cancel: [W.Esc],
|
|
5323
5323
|
end: [W.Space, W.Enter, W.Tab]
|
|
5324
|
-
},
|
|
5324
|
+
}, $a = (n, e) => {
|
|
5325
5325
|
let {
|
|
5326
5326
|
currentCoordinates: t
|
|
5327
5327
|
} = e;
|
|
@@ -5356,7 +5356,7 @@ class Ii {
|
|
|
5356
5356
|
target: t
|
|
5357
5357
|
}
|
|
5358
5358
|
} = e;
|
|
5359
|
-
this.props = e, this.listeners = new
|
|
5359
|
+
this.props = e, this.listeners = new ut(tt(t)), this.windowListeners = new ut(Z(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
5360
5360
|
}
|
|
5361
5361
|
attach() {
|
|
5362
5362
|
this.handleStart(), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(de.Keydown, this.handleKeyDown));
|
|
@@ -5376,7 +5376,7 @@ class Ii {
|
|
|
5376
5376
|
options: r
|
|
5377
5377
|
} = this.props, {
|
|
5378
5378
|
keyboardCodes: s = xr,
|
|
5379
|
-
coordinateGetter: o =
|
|
5379
|
+
coordinateGetter: o = $a,
|
|
5380
5380
|
scrollBehavior: a = "smooth"
|
|
5381
5381
|
} = r, {
|
|
5382
5382
|
code: c
|
|
@@ -5402,7 +5402,7 @@ class Ii {
|
|
|
5402
5402
|
currentCoordinates: l
|
|
5403
5403
|
});
|
|
5404
5404
|
if (u) {
|
|
5405
|
-
const h =
|
|
5405
|
+
const h = bt(u, l), g = {
|
|
5406
5406
|
x: 0,
|
|
5407
5407
|
y: 0
|
|
5408
5408
|
}, {
|
|
@@ -5416,11 +5416,11 @@ class Ii {
|
|
|
5416
5416
|
isBottom: R,
|
|
5417
5417
|
maxScroll: v,
|
|
5418
5418
|
minScroll: y
|
|
5419
|
-
} = vr(b), m =
|
|
5419
|
+
} = vr(b), m = Ia(b), E = {
|
|
5420
5420
|
x: Math.min(x === W.Right ? m.right - m.width / 2 : m.right, Math.max(x === W.Right ? m.left : m.left + m.width / 2, u.x)),
|
|
5421
5421
|
y: Math.min(x === W.Down ? m.bottom - m.height / 2 : m.bottom, Math.max(x === W.Down ? m.top : m.top + m.height / 2, u.y))
|
|
5422
|
-
},
|
|
5423
|
-
if (
|
|
5422
|
+
}, z = x === W.Right && !N || x === W.Left && !w, A = x === W.Down && !R || x === W.Up && !D;
|
|
5423
|
+
if (z && E.x !== u.x) {
|
|
5424
5424
|
const _ = b.scrollLeft + h.x, S = x === W.Right && _ <= v.x || x === W.Left && _ >= y.x;
|
|
5425
5425
|
if (S && !h.y) {
|
|
5426
5426
|
b.scrollTo({
|
|
@@ -5450,7 +5450,7 @@ class Ii {
|
|
|
5450
5450
|
break;
|
|
5451
5451
|
}
|
|
5452
5452
|
}
|
|
5453
|
-
this.handleMove(e,
|
|
5453
|
+
this.handleMove(e, Je(bt(u, this.referenceCoordinates), g));
|
|
5454
5454
|
}
|
|
5455
5455
|
}
|
|
5456
5456
|
}
|
|
@@ -5506,13 +5506,13 @@ function fn(n) {
|
|
|
5506
5506
|
class Hi {
|
|
5507
5507
|
constructor(e, t, i) {
|
|
5508
5508
|
var r;
|
|
5509
|
-
i === void 0 && (i =
|
|
5509
|
+
i === void 0 && (i = Wa(e.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = e, this.events = t;
|
|
5510
5510
|
const {
|
|
5511
5511
|
event: s
|
|
5512
5512
|
} = e, {
|
|
5513
5513
|
target: o
|
|
5514
5514
|
} = s;
|
|
5515
|
-
this.props = e, this.events = t, this.document =
|
|
5515
|
+
this.props = e, this.events = t, this.document = tt(o), this.documentListeners = new ut(this.document), this.listeners = new ut(i), this.windowListeners = new ut(Z(o)), this.initialCoordinates = (r = Ut(s)) != null ? r : me, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
5516
5516
|
}
|
|
5517
5517
|
attach() {
|
|
5518
5518
|
const {
|
|
@@ -5560,7 +5560,7 @@ class Hi {
|
|
|
5560
5560
|
} = this, {
|
|
5561
5561
|
onStart: t
|
|
5562
5562
|
} = this.props;
|
|
5563
|
-
e && (this.activated = !0, this.documentListeners.add(de.Click,
|
|
5563
|
+
e && (this.activated = !0, this.documentListeners.add(de.Click, Ga, {
|
|
5564
5564
|
capture: !0
|
|
5565
5565
|
}), this.removeTextSelection(), this.documentListeners.add(de.SelectionChange, this.removeTextSelection), t(e));
|
|
5566
5566
|
}
|
|
@@ -5578,7 +5578,7 @@ class Hi {
|
|
|
5578
5578
|
} = s;
|
|
5579
5579
|
if (!r)
|
|
5580
5580
|
return;
|
|
5581
|
-
const c = (t = Ut(e)) != null ? t : me, d =
|
|
5581
|
+
const c = (t = Ut(e)) != null ? t : me, d = bt(r, c);
|
|
5582
5582
|
if (!i && a) {
|
|
5583
5583
|
if (hn(a)) {
|
|
5584
5584
|
if (a.tolerance != null && mi(d, a.tolerance))
|
|
@@ -5615,7 +5615,7 @@ class Hi {
|
|
|
5615
5615
|
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
5616
5616
|
}
|
|
5617
5617
|
}
|
|
5618
|
-
const
|
|
5618
|
+
const ja = {
|
|
5619
5619
|
cancel: {
|
|
5620
5620
|
name: "pointercancel"
|
|
5621
5621
|
},
|
|
@@ -5626,15 +5626,15 @@ const Fa = {
|
|
|
5626
5626
|
name: "pointerup"
|
|
5627
5627
|
}
|
|
5628
5628
|
};
|
|
5629
|
-
class
|
|
5629
|
+
class Fi extends Hi {
|
|
5630
5630
|
constructor(e) {
|
|
5631
5631
|
const {
|
|
5632
5632
|
event: t
|
|
5633
|
-
} = e, i =
|
|
5634
|
-
super(e,
|
|
5633
|
+
} = e, i = tt(t.target);
|
|
5634
|
+
super(e, ja, i);
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
5637
|
-
|
|
5637
|
+
Fi.activators = [{
|
|
5638
5638
|
eventName: "onPointerDown",
|
|
5639
5639
|
handler: (n, e) => {
|
|
5640
5640
|
let {
|
|
@@ -5647,7 +5647,7 @@ Bi.activators = [{
|
|
|
5647
5647
|
}), !0);
|
|
5648
5648
|
}
|
|
5649
5649
|
}];
|
|
5650
|
-
const
|
|
5650
|
+
const Ua = {
|
|
5651
5651
|
move: {
|
|
5652
5652
|
name: "mousemove"
|
|
5653
5653
|
},
|
|
@@ -5659,12 +5659,12 @@ var Ci;
|
|
|
5659
5659
|
(function(n) {
|
|
5660
5660
|
n[n.RightClick = 2] = "RightClick";
|
|
5661
5661
|
})(Ci || (Ci = {}));
|
|
5662
|
-
class
|
|
5662
|
+
class Va extends Hi {
|
|
5663
5663
|
constructor(e) {
|
|
5664
|
-
super(e,
|
|
5664
|
+
super(e, Ua, tt(e.event.target));
|
|
5665
5665
|
}
|
|
5666
5666
|
}
|
|
5667
|
-
|
|
5667
|
+
Va.activators = [{
|
|
5668
5668
|
eventName: "onMouseDown",
|
|
5669
5669
|
handler: (n, e) => {
|
|
5670
5670
|
let {
|
|
@@ -5688,7 +5688,7 @@ const vi = {
|
|
|
5688
5688
|
name: "touchend"
|
|
5689
5689
|
}
|
|
5690
5690
|
};
|
|
5691
|
-
class
|
|
5691
|
+
class Ka extends Hi {
|
|
5692
5692
|
constructor(e) {
|
|
5693
5693
|
super(e, vi);
|
|
5694
5694
|
}
|
|
@@ -5703,7 +5703,7 @@ class $a extends Hi {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
}
|
|
5705
5705
|
}
|
|
5706
|
-
|
|
5706
|
+
Ka.activators = [{
|
|
5707
5707
|
eventName: "onTouchStart",
|
|
5708
5708
|
handler: (n, e) => {
|
|
5709
5709
|
let {
|
|
@@ -5719,18 +5719,18 @@ $a.activators = [{
|
|
|
5719
5719
|
}), !0);
|
|
5720
5720
|
}
|
|
5721
5721
|
}];
|
|
5722
|
-
var
|
|
5722
|
+
var ht;
|
|
5723
5723
|
(function(n) {
|
|
5724
5724
|
n[n.Pointer = 0] = "Pointer", n[n.DraggableRect = 1] = "DraggableRect";
|
|
5725
|
-
})(
|
|
5725
|
+
})(ht || (ht = {}));
|
|
5726
5726
|
var Kt;
|
|
5727
5727
|
(function(n) {
|
|
5728
5728
|
n[n.TreeOrder = 0] = "TreeOrder", n[n.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
5729
5729
|
})(Kt || (Kt = {}));
|
|
5730
|
-
function
|
|
5730
|
+
function Xa(n) {
|
|
5731
5731
|
let {
|
|
5732
5732
|
acceleration: e,
|
|
5733
|
-
activator: t =
|
|
5733
|
+
activator: t = ht.Pointer,
|
|
5734
5734
|
canScroll: i,
|
|
5735
5735
|
draggingRect: r,
|
|
5736
5736
|
enabled: s,
|
|
@@ -5742,28 +5742,28 @@ function ja(n) {
|
|
|
5742
5742
|
delta: u,
|
|
5743
5743
|
threshold: h
|
|
5744
5744
|
} = n;
|
|
5745
|
-
const g =
|
|
5745
|
+
const g = qa({
|
|
5746
5746
|
delta: u,
|
|
5747
5747
|
disabled: !s
|
|
5748
|
-
}), [C, b] =
|
|
5748
|
+
}), [C, b] = oa(), x = M({
|
|
5749
5749
|
x: 0,
|
|
5750
5750
|
y: 0
|
|
5751
|
-
}), D =
|
|
5751
|
+
}), D = M({
|
|
5752
5752
|
x: 0,
|
|
5753
5753
|
y: 0
|
|
5754
5754
|
}), N = H(() => {
|
|
5755
5755
|
switch (t) {
|
|
5756
|
-
case
|
|
5756
|
+
case ht.Pointer:
|
|
5757
5757
|
return c ? {
|
|
5758
5758
|
top: c.y,
|
|
5759
5759
|
bottom: c.y,
|
|
5760
5760
|
left: c.x,
|
|
5761
5761
|
right: c.x
|
|
5762
5762
|
} : null;
|
|
5763
|
-
case
|
|
5763
|
+
case ht.DraggableRect:
|
|
5764
5764
|
return r;
|
|
5765
5765
|
}
|
|
5766
|
-
}, [t, r, c]), w =
|
|
5766
|
+
}, [t, r, c]), w = M(null), R = U(() => {
|
|
5767
5767
|
const y = w.current;
|
|
5768
5768
|
if (!y)
|
|
5769
5769
|
return;
|
|
@@ -5783,13 +5783,13 @@ function ja(n) {
|
|
|
5783
5783
|
if (!E)
|
|
5784
5784
|
continue;
|
|
5785
5785
|
const {
|
|
5786
|
-
direction:
|
|
5786
|
+
direction: z,
|
|
5787
5787
|
speed: A
|
|
5788
|
-
} =
|
|
5788
|
+
} = La(y, E, N, e, h);
|
|
5789
5789
|
for (const _ of ["x", "y"])
|
|
5790
|
-
g[_][
|
|
5790
|
+
g[_][z[_]] || (A[_] = 0, z[_] = 0);
|
|
5791
5791
|
if (A.x > 0 || A.y > 0) {
|
|
5792
|
-
b(), w.current = y, C(R, o), x.current = A, D.current =
|
|
5792
|
+
b(), w.current = y, C(R, o), x.current = A, D.current = z;
|
|
5793
5793
|
return;
|
|
5794
5794
|
}
|
|
5795
5795
|
}
|
|
@@ -5822,7 +5822,7 @@ function ja(n) {
|
|
|
5822
5822
|
]
|
|
5823
5823
|
);
|
|
5824
5824
|
}
|
|
5825
|
-
const
|
|
5825
|
+
const Ya = {
|
|
5826
5826
|
x: {
|
|
5827
5827
|
[X.Backward]: !1,
|
|
5828
5828
|
[X.Forward]: !1
|
|
@@ -5832,7 +5832,7 @@ const Ua = {
|
|
|
5832
5832
|
[X.Forward]: !1
|
|
5833
5833
|
}
|
|
5834
5834
|
};
|
|
5835
|
-
function
|
|
5835
|
+
function qa(n) {
|
|
5836
5836
|
let {
|
|
5837
5837
|
delta: e,
|
|
5838
5838
|
disabled: t
|
|
@@ -5840,7 +5840,7 @@ function Va(n) {
|
|
|
5840
5840
|
const i = jt(e);
|
|
5841
5841
|
return Ct((r) => {
|
|
5842
5842
|
if (t || !i || !r)
|
|
5843
|
-
return
|
|
5843
|
+
return Ya;
|
|
5844
5844
|
const s = {
|
|
5845
5845
|
x: Math.sign(e.x - i.x),
|
|
5846
5846
|
y: Math.sign(e.y - i.y)
|
|
@@ -5857,14 +5857,14 @@ function Va(n) {
|
|
|
5857
5857
|
};
|
|
5858
5858
|
}, [t, e, i]);
|
|
5859
5859
|
}
|
|
5860
|
-
function
|
|
5860
|
+
function Ja(n, e) {
|
|
5861
5861
|
const t = e != null ? n.get(e) : void 0, i = t ? t.node.current : null;
|
|
5862
5862
|
return Ct((r) => {
|
|
5863
5863
|
var s;
|
|
5864
5864
|
return e == null ? null : (s = i ?? r) != null ? s : null;
|
|
5865
5865
|
}, [i, e]);
|
|
5866
5866
|
}
|
|
5867
|
-
function
|
|
5867
|
+
function Za(n, e) {
|
|
5868
5868
|
return H(() => n.reduce((t, i) => {
|
|
5869
5869
|
const {
|
|
5870
5870
|
sensor: r
|
|
@@ -5875,28 +5875,28 @@ function Xa(n, e) {
|
|
|
5875
5875
|
return [...t, ...s];
|
|
5876
5876
|
}, []), [n, e]);
|
|
5877
5877
|
}
|
|
5878
|
-
var
|
|
5878
|
+
var xt;
|
|
5879
5879
|
(function(n) {
|
|
5880
5880
|
n[n.Always = 0] = "Always", n[n.BeforeDragging = 1] = "BeforeDragging", n[n.WhileDragging = 2] = "WhileDragging";
|
|
5881
|
-
})(
|
|
5881
|
+
})(xt || (xt = {}));
|
|
5882
5882
|
var _i;
|
|
5883
5883
|
(function(n) {
|
|
5884
5884
|
n.Optimized = "optimized";
|
|
5885
5885
|
})(_i || (_i = {}));
|
|
5886
5886
|
const gn = /* @__PURE__ */ new Map();
|
|
5887
|
-
function
|
|
5887
|
+
function Qa(n, e) {
|
|
5888
5888
|
let {
|
|
5889
5889
|
dragging: t,
|
|
5890
5890
|
dependencies: i,
|
|
5891
5891
|
config: r
|
|
5892
5892
|
} = e;
|
|
5893
|
-
const [s, o] =
|
|
5893
|
+
const [s, o] = F(null), {
|
|
5894
5894
|
frequency: a,
|
|
5895
5895
|
measure: c,
|
|
5896
5896
|
strategy: d
|
|
5897
|
-
} = r, l =
|
|
5897
|
+
} = r, l = M(n), u = x(), h = yt(u), g = U(function(D) {
|
|
5898
5898
|
D === void 0 && (D = []), !h.current && o((N) => N === null ? D : N.concat(D.filter((w) => !N.includes(w))));
|
|
5899
|
-
}, [h]), C =
|
|
5899
|
+
}, [h]), C = M(null), b = Ct((D) => {
|
|
5900
5900
|
if (u && !t)
|
|
5901
5901
|
return gn;
|
|
5902
5902
|
if (!D || D === gn || l.current !== n || s != null) {
|
|
@@ -5944,22 +5944,22 @@ function Ya(n, e) {
|
|
|
5944
5944
|
};
|
|
5945
5945
|
function x() {
|
|
5946
5946
|
switch (d) {
|
|
5947
|
-
case
|
|
5947
|
+
case xt.Always:
|
|
5948
5948
|
return !1;
|
|
5949
|
-
case
|
|
5949
|
+
case xt.BeforeDragging:
|
|
5950
5950
|
return t;
|
|
5951
5951
|
default:
|
|
5952
5952
|
return !t;
|
|
5953
5953
|
}
|
|
5954
5954
|
}
|
|
5955
5955
|
}
|
|
5956
|
-
function
|
|
5956
|
+
function Bi(n, e) {
|
|
5957
5957
|
return Ct((t) => n ? t || (typeof e == "function" ? e(n) : n) : null, [e, n]);
|
|
5958
5958
|
}
|
|
5959
|
-
function
|
|
5960
|
-
return
|
|
5959
|
+
function el(n, e) {
|
|
5960
|
+
return Bi(n, e);
|
|
5961
5961
|
}
|
|
5962
|
-
function
|
|
5962
|
+
function tl(n) {
|
|
5963
5963
|
let {
|
|
5964
5964
|
callback: e,
|
|
5965
5965
|
disabled: t
|
|
@@ -5993,12 +5993,12 @@ function si(n) {
|
|
|
5993
5993
|
);
|
|
5994
5994
|
return I(() => () => r?.disconnect(), [r]), r;
|
|
5995
5995
|
}
|
|
5996
|
-
function
|
|
5997
|
-
return new Li(
|
|
5996
|
+
function il(n) {
|
|
5997
|
+
return new Li(it(n), n);
|
|
5998
5998
|
}
|
|
5999
5999
|
function pn(n, e, t) {
|
|
6000
|
-
e === void 0 && (e =
|
|
6001
|
-
const [i, r] =
|
|
6000
|
+
e === void 0 && (e = il);
|
|
6001
|
+
const [i, r] = F(null);
|
|
6002
6002
|
function s() {
|
|
6003
6003
|
r((c) => {
|
|
6004
6004
|
if (!n)
|
|
@@ -6011,7 +6011,7 @@ function pn(n, e, t) {
|
|
|
6011
6011
|
return JSON.stringify(c) === JSON.stringify(l) ? c : l;
|
|
6012
6012
|
});
|
|
6013
6013
|
}
|
|
6014
|
-
const o =
|
|
6014
|
+
const o = tl({
|
|
6015
6015
|
callback(c) {
|
|
6016
6016
|
if (n)
|
|
6017
6017
|
for (const d of c) {
|
|
@@ -6035,19 +6035,19 @@ function pn(n, e, t) {
|
|
|
6035
6035
|
})) : (a?.disconnect(), o?.disconnect());
|
|
6036
6036
|
}, [n]), i;
|
|
6037
6037
|
}
|
|
6038
|
-
function
|
|
6039
|
-
const e =
|
|
6038
|
+
function nl(n) {
|
|
6039
|
+
const e = Bi(n);
|
|
6040
6040
|
return ur(n, e);
|
|
6041
6041
|
}
|
|
6042
6042
|
const mn = [];
|
|
6043
|
-
function
|
|
6044
|
-
const e =
|
|
6043
|
+
function rl(n) {
|
|
6044
|
+
const e = M(n), t = Ct((i) => n ? i && i !== mn && n && e.current && n.parentNode === e.current.parentNode ? i : ri(n) : mn, [n]);
|
|
6045
6045
|
return I(() => {
|
|
6046
6046
|
e.current = n;
|
|
6047
6047
|
}, [n]), t;
|
|
6048
6048
|
}
|
|
6049
|
-
function
|
|
6050
|
-
const [e, t] =
|
|
6049
|
+
function sl(n) {
|
|
6050
|
+
const [e, t] = F(null), i = M(n), r = U((s) => {
|
|
6051
6051
|
const o = pi(s.target);
|
|
6052
6052
|
o && t((a) => a ? (a.set(o, wi(o)), new Map(a)) : null);
|
|
6053
6053
|
}, []);
|
|
@@ -6072,11 +6072,11 @@ function tl(n) {
|
|
|
6072
6072
|
d?.removeEventListener("scroll", r);
|
|
6073
6073
|
});
|
|
6074
6074
|
}
|
|
6075
|
-
}, [r, n]), H(() => n.length ? e ? Array.from(e.values()).reduce((s, o) =>
|
|
6075
|
+
}, [r, n]), H(() => n.length ? e ? Array.from(e.values()).reduce((s, o) => Je(s, o), me) : yr(n) : me, [n, e]);
|
|
6076
6076
|
}
|
|
6077
6077
|
function vn(n, e) {
|
|
6078
6078
|
e === void 0 && (e = []);
|
|
6079
|
-
const t =
|
|
6079
|
+
const t = M(null);
|
|
6080
6080
|
return I(
|
|
6081
6081
|
() => {
|
|
6082
6082
|
t.current = null;
|
|
@@ -6086,9 +6086,9 @@ function vn(n, e) {
|
|
|
6086
6086
|
), I(() => {
|
|
6087
6087
|
const i = n !== me;
|
|
6088
6088
|
i && !t.current && (t.current = n), !i && t.current && (t.current = null);
|
|
6089
|
-
}, [n]), t.current ?
|
|
6089
|
+
}, [n]), t.current ? bt(n, t.current) : me;
|
|
6090
6090
|
}
|
|
6091
|
-
function
|
|
6091
|
+
function ol(n) {
|
|
6092
6092
|
I(
|
|
6093
6093
|
() => {
|
|
6094
6094
|
if (!ti)
|
|
@@ -6114,7 +6114,7 @@ function il(n) {
|
|
|
6114
6114
|
})
|
|
6115
6115
|
);
|
|
6116
6116
|
}
|
|
6117
|
-
function
|
|
6117
|
+
function al(n, e) {
|
|
6118
6118
|
return H(() => n.reduce((t, i) => {
|
|
6119
6119
|
let {
|
|
6120
6120
|
eventName: r,
|
|
@@ -6126,12 +6126,12 @@ function nl(n, e) {
|
|
|
6126
6126
|
}, {}), [n, e]);
|
|
6127
6127
|
}
|
|
6128
6128
|
function wr(n) {
|
|
6129
|
-
return H(() => n ?
|
|
6129
|
+
return H(() => n ? Ta(n) : null, [n]);
|
|
6130
6130
|
}
|
|
6131
6131
|
const yn = [];
|
|
6132
|
-
function
|
|
6133
|
-
e === void 0 && (e =
|
|
6134
|
-
const [t] = n, i = wr(t ? Z(t) : null), [r, s] =
|
|
6132
|
+
function ll(n, e) {
|
|
6133
|
+
e === void 0 && (e = it);
|
|
6134
|
+
const [t] = n, i = wr(t ? Z(t) : null), [r, s] = F(yn);
|
|
6135
6135
|
function o() {
|
|
6136
6136
|
s(() => n.length ? n.map((c) => mr(c) ? i : new Li(e(c), c)) : yn);
|
|
6137
6137
|
}
|
|
@@ -6150,11 +6150,11 @@ function Cr(n) {
|
|
|
6150
6150
|
const e = n.children[0];
|
|
6151
6151
|
return wt(e) ? e : n;
|
|
6152
6152
|
}
|
|
6153
|
-
function
|
|
6153
|
+
function cl(n) {
|
|
6154
6154
|
let {
|
|
6155
6155
|
measure: e
|
|
6156
6156
|
} = n;
|
|
6157
|
-
const [t, i] =
|
|
6157
|
+
const [t, i] = F(null), r = U((d) => {
|
|
6158
6158
|
for (const {
|
|
6159
6159
|
target: l
|
|
6160
6160
|
} of d)
|
|
@@ -6181,13 +6181,13 @@ function sl(n) {
|
|
|
6181
6181
|
setRef: c
|
|
6182
6182
|
}), [t, a, c]);
|
|
6183
6183
|
}
|
|
6184
|
-
const
|
|
6185
|
-
sensor:
|
|
6184
|
+
const dl = [{
|
|
6185
|
+
sensor: Fi,
|
|
6186
6186
|
options: {}
|
|
6187
6187
|
}, {
|
|
6188
6188
|
sensor: Ii,
|
|
6189
6189
|
options: {}
|
|
6190
|
-
}],
|
|
6190
|
+
}], ul = {
|
|
6191
6191
|
current: {}
|
|
6192
6192
|
}, Mt = {
|
|
6193
6193
|
draggable: {
|
|
@@ -6195,14 +6195,14 @@ const ol = [{
|
|
|
6195
6195
|
},
|
|
6196
6196
|
droppable: {
|
|
6197
6197
|
measure: dn,
|
|
6198
|
-
strategy:
|
|
6198
|
+
strategy: xt.WhileDragging,
|
|
6199
6199
|
frequency: _i.Optimized
|
|
6200
6200
|
},
|
|
6201
6201
|
dragOverlay: {
|
|
6202
|
-
measure:
|
|
6202
|
+
measure: it
|
|
6203
6203
|
}
|
|
6204
6204
|
};
|
|
6205
|
-
class
|
|
6205
|
+
class ft extends Map {
|
|
6206
6206
|
get(e) {
|
|
6207
6207
|
var t;
|
|
6208
6208
|
return e != null && (t = super.get(e)) != null ? t : void 0;
|
|
@@ -6223,7 +6223,7 @@ class ht extends Map {
|
|
|
6223
6223
|
return (t = (i = this.get(e)) == null ? void 0 : i.node.current) != null ? t : void 0;
|
|
6224
6224
|
}
|
|
6225
6225
|
}
|
|
6226
|
-
const
|
|
6226
|
+
const hl = {
|
|
6227
6227
|
activatorEvent: null,
|
|
6228
6228
|
active: null,
|
|
6229
6229
|
activeNode: null,
|
|
@@ -6232,7 +6232,7 @@ const ll = {
|
|
|
6232
6232
|
containerNodeRect: null,
|
|
6233
6233
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
6234
6234
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
6235
|
-
droppableContainers: /* @__PURE__ */ new
|
|
6235
|
+
droppableContainers: /* @__PURE__ */ new ft(),
|
|
6236
6236
|
over: null,
|
|
6237
6237
|
dragOverlay: {
|
|
6238
6238
|
nodeRef: {
|
|
@@ -6259,8 +6259,8 @@ const ll = {
|
|
|
6259
6259
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
6260
6260
|
over: null,
|
|
6261
6261
|
measureDroppableContainers: Vt
|
|
6262
|
-
}, Et = /* @__PURE__ */ Ae(_r), Er = /* @__PURE__ */ Ae(
|
|
6263
|
-
function
|
|
6262
|
+
}, Et = /* @__PURE__ */ Ae(_r), Er = /* @__PURE__ */ Ae(hl);
|
|
6263
|
+
function fl() {
|
|
6264
6264
|
return {
|
|
6265
6265
|
draggable: {
|
|
6266
6266
|
active: null,
|
|
@@ -6275,11 +6275,11 @@ function cl() {
|
|
|
6275
6275
|
}
|
|
6276
6276
|
},
|
|
6277
6277
|
droppable: {
|
|
6278
|
-
containers: new
|
|
6278
|
+
containers: new ft()
|
|
6279
6279
|
}
|
|
6280
6280
|
};
|
|
6281
6281
|
}
|
|
6282
|
-
function
|
|
6282
|
+
function gl(n, e) {
|
|
6283
6283
|
switch (e.type) {
|
|
6284
6284
|
case K.DragStart:
|
|
6285
6285
|
return {
|
|
@@ -6323,7 +6323,7 @@ function dl(n, e) {
|
|
|
6323
6323
|
element: t
|
|
6324
6324
|
} = e, {
|
|
6325
6325
|
id: i
|
|
6326
|
-
} = t, r = new
|
|
6326
|
+
} = t, r = new ft(n.droppable.containers);
|
|
6327
6327
|
return r.set(i, t), {
|
|
6328
6328
|
...n,
|
|
6329
6329
|
droppable: {
|
|
@@ -6340,7 +6340,7 @@ function dl(n, e) {
|
|
|
6340
6340
|
} = e, s = n.droppable.containers.get(t);
|
|
6341
6341
|
if (!s || i !== s.key)
|
|
6342
6342
|
return n;
|
|
6343
|
-
const o = new
|
|
6343
|
+
const o = new ft(n.droppable.containers);
|
|
6344
6344
|
return o.set(t, {
|
|
6345
6345
|
...s,
|
|
6346
6346
|
disabled: r
|
|
@@ -6359,7 +6359,7 @@ function dl(n, e) {
|
|
|
6359
6359
|
} = e, r = n.droppable.containers.get(t);
|
|
6360
6360
|
if (!r || i !== r.key)
|
|
6361
6361
|
return n;
|
|
6362
|
-
const s = new
|
|
6362
|
+
const s = new ft(n.droppable.containers);
|
|
6363
6363
|
return s.delete(t), {
|
|
6364
6364
|
...n,
|
|
6365
6365
|
droppable: {
|
|
@@ -6372,7 +6372,7 @@ function dl(n, e) {
|
|
|
6372
6372
|
return n;
|
|
6373
6373
|
}
|
|
6374
6374
|
}
|
|
6375
|
-
function
|
|
6375
|
+
function pl(n) {
|
|
6376
6376
|
let {
|
|
6377
6377
|
disabled: e
|
|
6378
6378
|
} = n;
|
|
@@ -6398,7 +6398,7 @@ function ul(n) {
|
|
|
6398
6398
|
for (const l of [c.current, d.current]) {
|
|
6399
6399
|
if (!l)
|
|
6400
6400
|
continue;
|
|
6401
|
-
const u =
|
|
6401
|
+
const u = ca(l);
|
|
6402
6402
|
if (u) {
|
|
6403
6403
|
u.focus();
|
|
6404
6404
|
break;
|
|
@@ -6418,7 +6418,7 @@ function Dr(n, e) {
|
|
|
6418
6418
|
...i
|
|
6419
6419
|
}), t) : t;
|
|
6420
6420
|
}
|
|
6421
|
-
function
|
|
6421
|
+
function ml(n) {
|
|
6422
6422
|
return H(
|
|
6423
6423
|
() => ({
|
|
6424
6424
|
draggable: {
|
|
@@ -6438,14 +6438,14 @@ function hl(n) {
|
|
|
6438
6438
|
[n?.draggable, n?.droppable, n?.dragOverlay]
|
|
6439
6439
|
);
|
|
6440
6440
|
}
|
|
6441
|
-
function
|
|
6441
|
+
function vl(n) {
|
|
6442
6442
|
let {
|
|
6443
6443
|
activeNode: e,
|
|
6444
6444
|
measure: t,
|
|
6445
6445
|
initialRect: i,
|
|
6446
6446
|
config: r = !0
|
|
6447
6447
|
} = n;
|
|
6448
|
-
const s =
|
|
6448
|
+
const s = M(!1), {
|
|
6449
6449
|
x: o,
|
|
6450
6450
|
y: a
|
|
6451
6451
|
} = typeof r == "boolean" ? {
|
|
@@ -6481,29 +6481,29 @@ var Ie;
|
|
|
6481
6481
|
(function(n) {
|
|
6482
6482
|
n[n.Uninitialized = 0] = "Uninitialized", n[n.Initializing = 1] = "Initializing", n[n.Initialized = 2] = "Initialized";
|
|
6483
6483
|
})(Ie || (Ie = {}));
|
|
6484
|
-
const
|
|
6484
|
+
const yl = /* @__PURE__ */ Ns(function(e) {
|
|
6485
6485
|
var t, i, r, s;
|
|
6486
6486
|
let {
|
|
6487
6487
|
id: o,
|
|
6488
6488
|
accessibility: a,
|
|
6489
6489
|
autoScroll: c = !0,
|
|
6490
6490
|
children: d,
|
|
6491
|
-
sensors: l =
|
|
6492
|
-
collisionDetection: u =
|
|
6491
|
+
sensors: l = dl,
|
|
6492
|
+
collisionDetection: u = Ra,
|
|
6493
6493
|
measuring: h,
|
|
6494
6494
|
modifiers: g,
|
|
6495
6495
|
...C
|
|
6496
6496
|
} = e;
|
|
6497
|
-
const b =
|
|
6497
|
+
const b = As(gl, void 0, fl), [x, D] = b, [N, w] = pa(), [R, v] = F(Ie.Uninitialized), y = R === Ie.Initialized, {
|
|
6498
6498
|
draggable: {
|
|
6499
6499
|
active: m,
|
|
6500
6500
|
nodes: E,
|
|
6501
|
-
translate:
|
|
6501
|
+
translate: z
|
|
6502
6502
|
},
|
|
6503
6503
|
droppable: {
|
|
6504
6504
|
containers: A
|
|
6505
6505
|
}
|
|
6506
|
-
} = x, _ = m != null ? E.get(m) : null, S =
|
|
6506
|
+
} = x, _ = m != null ? E.get(m) : null, S = M({
|
|
6507
6507
|
initial: null,
|
|
6508
6508
|
translated: null
|
|
6509
6509
|
}), O = H(() => {
|
|
@@ -6511,25 +6511,25 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6511
6511
|
return m != null ? {
|
|
6512
6512
|
id: m,
|
|
6513
6513
|
// It's possible for the active node to unmount while dragging
|
|
6514
|
-
data: (q = _?.data) != null ? q :
|
|
6514
|
+
data: (q = _?.data) != null ? q : ul,
|
|
6515
6515
|
rect: S
|
|
6516
6516
|
} : null;
|
|
6517
|
-
}, [m, _]),
|
|
6517
|
+
}, [m, _]), B = M(null), [Q, ee] = F(null), [V, ue] = F(null), j = yt(C, Object.values(C)), he = _t("DndDescribedBy", o), Rt = H(() => A.getEnabled(), [A]), te = ml(h), {
|
|
6518
6518
|
droppableRects: Ee,
|
|
6519
|
-
measureDroppableContainers:
|
|
6520
|
-
measuringScheduled:
|
|
6521
|
-
} =
|
|
6519
|
+
measureDroppableContainers: Be,
|
|
6520
|
+
measuringScheduled: nt
|
|
6521
|
+
} = Qa(Rt, {
|
|
6522
6522
|
dragging: y,
|
|
6523
|
-
dependencies: [
|
|
6523
|
+
dependencies: [z.x, z.y],
|
|
6524
6524
|
config: te.droppable
|
|
6525
|
-
}), ae =
|
|
6526
|
-
|
|
6525
|
+
}), ae = Ja(E, m), St = H(() => V ? Ut(V) : null, [V]), Oe = Xr(), De = el(ae, te.draggable.measure);
|
|
6526
|
+
vl({
|
|
6527
6527
|
activeNode: m != null ? E.get(m) : null,
|
|
6528
6528
|
config: Oe.layoutShiftCompensation,
|
|
6529
6529
|
initialRect: De,
|
|
6530
6530
|
measure: te.draggable.measure
|
|
6531
6531
|
});
|
|
6532
|
-
const
|
|
6532
|
+
const $ = pn(ae, te.draggable.measure, De), rt = pn(ae ? ae.parentElement : null), ye = M({
|
|
6533
6533
|
activatorEvent: null,
|
|
6534
6534
|
active: null,
|
|
6535
6535
|
activeNode: ae,
|
|
@@ -6543,44 +6543,44 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6543
6543
|
over: null,
|
|
6544
6544
|
scrollableAncestors: [],
|
|
6545
6545
|
scrollAdjustedTranslate: null
|
|
6546
|
-
}),
|
|
6546
|
+
}), $e = A.getNodeFor((t = ye.current.over) == null ? void 0 : t.id), Re = cl({
|
|
6547
6547
|
measure: te.dragOverlay.measure
|
|
6548
|
-
}),
|
|
6548
|
+
}), je = (i = Re.nodeRef.current) != null ? i : ae, Ue = y ? (r = Re.rect) != null ? r : $ : null, $i = !!(Re.nodeRef.current && Re.rect), ji = nl($i ? null : $), li = wr(je ? Z(je) : null), ke = rl(y ? $e ?? ae : null), Nt = ll(ke), At = Dr(g, {
|
|
6549
6549
|
transform: {
|
|
6550
|
-
x:
|
|
6551
|
-
y:
|
|
6550
|
+
x: z.x - ji.x,
|
|
6551
|
+
y: z.y - ji.y,
|
|
6552
6552
|
scaleX: 1,
|
|
6553
6553
|
scaleY: 1
|
|
6554
6554
|
},
|
|
6555
6555
|
activatorEvent: V,
|
|
6556
6556
|
active: O,
|
|
6557
|
-
activeNodeRect:
|
|
6558
|
-
containerNodeRect:
|
|
6559
|
-
draggingNodeRect:
|
|
6557
|
+
activeNodeRect: $,
|
|
6558
|
+
containerNodeRect: rt,
|
|
6559
|
+
draggingNodeRect: Ue,
|
|
6560
6560
|
over: ye.current.over,
|
|
6561
6561
|
overlayNodeRect: Re.rect,
|
|
6562
6562
|
scrollableAncestors: ke,
|
|
6563
6563
|
scrollableAncestorRects: Nt,
|
|
6564
6564
|
windowRect: li
|
|
6565
|
-
}), Ui = St ?
|
|
6565
|
+
}), Ui = St ? Je(St, z) : null, Vi = sl(ke), Wr = vn(Vi), Gr = vn(Vi, [$]), Ve = Je(At, Wr), Ke = Ue ? Aa(Ue, At) : null, st = O && Ke ? u({
|
|
6566
6566
|
active: O,
|
|
6567
|
-
collisionRect:
|
|
6567
|
+
collisionRect: Ke,
|
|
6568
6568
|
droppableRects: Ee,
|
|
6569
6569
|
droppableContainers: Rt,
|
|
6570
6570
|
pointerCoordinates: Ui
|
|
6571
|
-
}) : null, Ki = dr(
|
|
6571
|
+
}) : null, Ki = dr(st, "id"), [Te, Xi] = F(null), $r = $i ? At : Je(At, Gr), jr = Sa($r, (s = Te?.rect) != null ? s : null, $), ci = M(null), Yi = U(
|
|
6572
6572
|
(q, ie) => {
|
|
6573
6573
|
let {
|
|
6574
6574
|
sensor: ne,
|
|
6575
6575
|
options: ze
|
|
6576
6576
|
} = ie;
|
|
6577
|
-
if (
|
|
6577
|
+
if (B.current == null)
|
|
6578
6578
|
return;
|
|
6579
|
-
const le = E.get(
|
|
6579
|
+
const le = E.get(B.current);
|
|
6580
6580
|
if (!le)
|
|
6581
6581
|
return;
|
|
6582
6582
|
const re = q.nativeEvent, be = new ne({
|
|
6583
|
-
active:
|
|
6583
|
+
active: B.current,
|
|
6584
6584
|
activeNode: le,
|
|
6585
6585
|
event: re,
|
|
6586
6586
|
options: ze,
|
|
@@ -6604,20 +6604,20 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6604
6604
|
if (!E.get(Y))
|
|
6605
6605
|
return;
|
|
6606
6606
|
const {
|
|
6607
|
-
onDragPending:
|
|
6607
|
+
onDragPending: at
|
|
6608
6608
|
} = j.current, Me = {
|
|
6609
6609
|
id: Y,
|
|
6610
6610
|
constraint: Pe,
|
|
6611
6611
|
initialCoordinates: xe,
|
|
6612
6612
|
offset: Se
|
|
6613
6613
|
};
|
|
6614
|
-
|
|
6614
|
+
at?.(Me), N({
|
|
6615
6615
|
type: "onDragPending",
|
|
6616
6616
|
event: Me
|
|
6617
6617
|
});
|
|
6618
6618
|
},
|
|
6619
6619
|
onStart(Y) {
|
|
6620
|
-
const Pe =
|
|
6620
|
+
const Pe = B.current;
|
|
6621
6621
|
if (Pe == null)
|
|
6622
6622
|
return;
|
|
6623
6623
|
const xe = E.get(Pe);
|
|
@@ -6625,7 +6625,7 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6625
6625
|
return;
|
|
6626
6626
|
const {
|
|
6627
6627
|
onDragStart: Se
|
|
6628
|
-
} = j.current,
|
|
6628
|
+
} = j.current, ot = {
|
|
6629
6629
|
activatorEvent: re,
|
|
6630
6630
|
active: {
|
|
6631
6631
|
id: Pe,
|
|
@@ -6634,13 +6634,13 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6634
6634
|
}
|
|
6635
6635
|
};
|
|
6636
6636
|
Ot(() => {
|
|
6637
|
-
Se?.(
|
|
6637
|
+
Se?.(ot), v(Ie.Initializing), D({
|
|
6638
6638
|
type: K.DragStart,
|
|
6639
6639
|
initialCoordinates: Y,
|
|
6640
6640
|
active: Pe
|
|
6641
6641
|
}), N({
|
|
6642
6642
|
type: "onDragStart",
|
|
6643
|
-
event:
|
|
6643
|
+
event: ot
|
|
6644
6644
|
}), ee(ci.current), ue(re);
|
|
6645
6645
|
});
|
|
6646
6646
|
},
|
|
@@ -6650,40 +6650,40 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6650
6650
|
coordinates: Y
|
|
6651
6651
|
});
|
|
6652
6652
|
},
|
|
6653
|
-
onEnd:
|
|
6654
|
-
onCancel:
|
|
6653
|
+
onEnd: Xe(K.DragEnd),
|
|
6654
|
+
onCancel: Xe(K.DragCancel)
|
|
6655
6655
|
});
|
|
6656
6656
|
ci.current = be;
|
|
6657
|
-
function
|
|
6657
|
+
function Xe(Y) {
|
|
6658
6658
|
return async function() {
|
|
6659
6659
|
const {
|
|
6660
6660
|
active: xe,
|
|
6661
6661
|
collisions: Se,
|
|
6662
|
-
over:
|
|
6663
|
-
scrollAdjustedTranslate:
|
|
6662
|
+
over: ot,
|
|
6663
|
+
scrollAdjustedTranslate: at
|
|
6664
6664
|
} = ye.current;
|
|
6665
6665
|
let Me = null;
|
|
6666
|
-
if (xe &&
|
|
6666
|
+
if (xe && at) {
|
|
6667
6667
|
const {
|
|
6668
|
-
cancelDrop:
|
|
6668
|
+
cancelDrop: lt
|
|
6669
6669
|
} = j.current;
|
|
6670
6670
|
Me = {
|
|
6671
6671
|
activatorEvent: re,
|
|
6672
6672
|
active: xe,
|
|
6673
6673
|
collisions: Se,
|
|
6674
|
-
delta:
|
|
6675
|
-
over:
|
|
6676
|
-
}, Y === K.DragEnd && typeof
|
|
6674
|
+
delta: at,
|
|
6675
|
+
over: ot
|
|
6676
|
+
}, Y === K.DragEnd && typeof lt == "function" && await Promise.resolve(lt(Me)) && (Y = K.DragCancel);
|
|
6677
6677
|
}
|
|
6678
|
-
|
|
6678
|
+
B.current = null, Ot(() => {
|
|
6679
6679
|
D({
|
|
6680
6680
|
type: Y
|
|
6681
6681
|
}), v(Ie.Uninitialized), Xi(null), ee(null), ue(null), ci.current = null;
|
|
6682
|
-
const
|
|
6682
|
+
const lt = Y === K.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
6683
6683
|
if (Me) {
|
|
6684
|
-
const di = j.current[
|
|
6684
|
+
const di = j.current[lt];
|
|
6685
6685
|
di?.(Me), N({
|
|
6686
|
-
type:
|
|
6686
|
+
type: lt,
|
|
6687
6687
|
event: Me
|
|
6688
6688
|
});
|
|
6689
6689
|
}
|
|
@@ -6697,7 +6697,7 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6697
6697
|
const le = ne.nativeEvent, re = E.get(ze);
|
|
6698
6698
|
if (
|
|
6699
6699
|
// Another sensor is already instantiating
|
|
6700
|
-
|
|
6700
|
+
B.current !== null || // No active draggable
|
|
6701
6701
|
!re || // Event has already been captured
|
|
6702
6702
|
le.dndKit || le.defaultPrevented
|
|
6703
6703
|
)
|
|
@@ -6707,11 +6707,11 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6707
6707
|
};
|
|
6708
6708
|
q(ne, ie.options, be) === !0 && (le.dndKit = {
|
|
6709
6709
|
capturedBy: ie.sensor
|
|
6710
|
-
},
|
|
6711
|
-
}, [E, Yi]), qi =
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
}, [
|
|
6710
|
+
}, B.current = ze, Yi(ne, ie));
|
|
6711
|
+
}, [E, Yi]), qi = Za(l, Ur);
|
|
6712
|
+
ol(l), pe(() => {
|
|
6713
|
+
$ && R === Ie.Initializing && v(Ie.Initialized);
|
|
6714
|
+
}, [$, R]), I(
|
|
6715
6715
|
() => {
|
|
6716
6716
|
const {
|
|
6717
6717
|
onDragMove: q
|
|
@@ -6728,8 +6728,8 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6728
6728
|
activatorEvent: ne,
|
|
6729
6729
|
collisions: ze,
|
|
6730
6730
|
delta: {
|
|
6731
|
-
x:
|
|
6732
|
-
y:
|
|
6731
|
+
x: Ve.x,
|
|
6732
|
+
y: Ve.y
|
|
6733
6733
|
},
|
|
6734
6734
|
over: le
|
|
6735
6735
|
};
|
|
@@ -6741,7 +6741,7 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6741
6741
|
});
|
|
6742
6742
|
},
|
|
6743
6743
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6744
|
-
[
|
|
6744
|
+
[Ve.x, Ve.y]
|
|
6745
6745
|
), I(
|
|
6746
6746
|
() => {
|
|
6747
6747
|
const {
|
|
@@ -6751,11 +6751,11 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6751
6751
|
droppableContainers: ze,
|
|
6752
6752
|
scrollAdjustedTranslate: le
|
|
6753
6753
|
} = ye.current;
|
|
6754
|
-
if (!q ||
|
|
6754
|
+
if (!q || B.current == null || !ie || !le)
|
|
6755
6755
|
return;
|
|
6756
6756
|
const {
|
|
6757
6757
|
onDragOver: re
|
|
6758
|
-
} = j.current, be = ze.get(Ki),
|
|
6758
|
+
} = j.current, be = ze.get(Ki), Xe = be && be.rect.current ? {
|
|
6759
6759
|
id: be.id,
|
|
6760
6760
|
rect: be.rect.current,
|
|
6761
6761
|
data: be.data,
|
|
@@ -6768,10 +6768,10 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6768
6768
|
x: le.x,
|
|
6769
6769
|
y: le.y
|
|
6770
6770
|
},
|
|
6771
|
-
over:
|
|
6771
|
+
over: Xe
|
|
6772
6772
|
};
|
|
6773
6773
|
Ot(() => {
|
|
6774
|
-
Xi(
|
|
6774
|
+
Xi(Xe), re?.(Y), N({
|
|
6775
6775
|
type: "onDragOver",
|
|
6776
6776
|
event: Y
|
|
6777
6777
|
});
|
|
@@ -6784,24 +6784,24 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6784
6784
|
activatorEvent: V,
|
|
6785
6785
|
active: O,
|
|
6786
6786
|
activeNode: ae,
|
|
6787
|
-
collisionRect:
|
|
6788
|
-
collisions:
|
|
6787
|
+
collisionRect: Ke,
|
|
6788
|
+
collisions: st,
|
|
6789
6789
|
droppableRects: Ee,
|
|
6790
6790
|
draggableNodes: E,
|
|
6791
|
-
draggingNode:
|
|
6792
|
-
draggingNodeRect:
|
|
6791
|
+
draggingNode: je,
|
|
6792
|
+
draggingNodeRect: Ue,
|
|
6793
6793
|
droppableContainers: A,
|
|
6794
6794
|
over: Te,
|
|
6795
6795
|
scrollableAncestors: ke,
|
|
6796
|
-
scrollAdjustedTranslate:
|
|
6796
|
+
scrollAdjustedTranslate: Ve
|
|
6797
6797
|
}, S.current = {
|
|
6798
|
-
initial:
|
|
6799
|
-
translated:
|
|
6798
|
+
initial: Ue,
|
|
6799
|
+
translated: Ke
|
|
6800
6800
|
};
|
|
6801
|
-
}, [O, ae,
|
|
6801
|
+
}, [O, ae, st, Ke, E, je, Ue, Ee, A, Te, ke, Ve]), Xa({
|
|
6802
6802
|
...Oe,
|
|
6803
|
-
delta:
|
|
6804
|
-
draggingRect:
|
|
6803
|
+
delta: z,
|
|
6804
|
+
draggingRect: Ke,
|
|
6805
6805
|
pointerCoordinates: Ui,
|
|
6806
6806
|
scrollableAncestors: ke,
|
|
6807
6807
|
scrollableAncestorRects: Nt
|
|
@@ -6809,45 +6809,45 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6809
6809
|
const Vr = H(() => ({
|
|
6810
6810
|
active: O,
|
|
6811
6811
|
activeNode: ae,
|
|
6812
|
-
activeNodeRect:
|
|
6812
|
+
activeNodeRect: $,
|
|
6813
6813
|
activatorEvent: V,
|
|
6814
|
-
collisions:
|
|
6815
|
-
containerNodeRect:
|
|
6814
|
+
collisions: st,
|
|
6815
|
+
containerNodeRect: rt,
|
|
6816
6816
|
dragOverlay: Re,
|
|
6817
6817
|
draggableNodes: E,
|
|
6818
6818
|
droppableContainers: A,
|
|
6819
6819
|
droppableRects: Ee,
|
|
6820
6820
|
over: Te,
|
|
6821
|
-
measureDroppableContainers:
|
|
6821
|
+
measureDroppableContainers: Be,
|
|
6822
6822
|
scrollableAncestors: ke,
|
|
6823
6823
|
scrollableAncestorRects: Nt,
|
|
6824
6824
|
measuringConfiguration: te,
|
|
6825
|
-
measuringScheduled:
|
|
6825
|
+
measuringScheduled: nt,
|
|
6826
6826
|
windowRect: li
|
|
6827
|
-
}), [O, ae,
|
|
6827
|
+
}), [O, ae, $, V, st, rt, Re, E, A, Ee, Te, Be, ke, Nt, te, nt, li]), Kr = H(() => ({
|
|
6828
6828
|
activatorEvent: V,
|
|
6829
6829
|
activators: qi,
|
|
6830
6830
|
active: O,
|
|
6831
|
-
activeNodeRect:
|
|
6831
|
+
activeNodeRect: $,
|
|
6832
6832
|
ariaDescribedById: {
|
|
6833
6833
|
draggable: he
|
|
6834
6834
|
},
|
|
6835
6835
|
dispatch: D,
|
|
6836
6836
|
draggableNodes: E,
|
|
6837
6837
|
over: Te,
|
|
6838
|
-
measureDroppableContainers:
|
|
6839
|
-
}), [V, qi, O,
|
|
6840
|
-
return
|
|
6838
|
+
measureDroppableContainers: Be
|
|
6839
|
+
}), [V, qi, O, $, D, he, E, Te, Be]);
|
|
6840
|
+
return L.createElement(cr.Provider, {
|
|
6841
6841
|
value: w
|
|
6842
|
-
},
|
|
6842
|
+
}, L.createElement(Et.Provider, {
|
|
6843
6843
|
value: Kr
|
|
6844
|
-
},
|
|
6844
|
+
}, L.createElement(Er.Provider, {
|
|
6845
6845
|
value: Vr
|
|
6846
|
-
},
|
|
6846
|
+
}, L.createElement(oi.Provider, {
|
|
6847
6847
|
value: jr
|
|
6848
|
-
}, d)),
|
|
6848
|
+
}, d)), L.createElement(pl, {
|
|
6849
6849
|
disabled: a?.restoreFocus === !1
|
|
6850
|
-
})),
|
|
6850
|
+
})), L.createElement(ya, {
|
|
6851
6851
|
...a,
|
|
6852
6852
|
hiddenTextDescribedById: he
|
|
6853
6853
|
}));
|
|
@@ -6860,15 +6860,15 @@ const gl = /* @__PURE__ */ Ds(function(e) {
|
|
|
6860
6860
|
enabled: ne
|
|
6861
6861
|
};
|
|
6862
6862
|
}
|
|
6863
|
-
}),
|
|
6864
|
-
function
|
|
6863
|
+
}), bl = /* @__PURE__ */ Ae(null), bn = "button", xl = "Draggable";
|
|
6864
|
+
function wl(n) {
|
|
6865
6865
|
let {
|
|
6866
6866
|
id: e,
|
|
6867
6867
|
data: t,
|
|
6868
6868
|
disabled: i = !1,
|
|
6869
6869
|
attributes: r
|
|
6870
6870
|
} = n;
|
|
6871
|
-
const s = _t(
|
|
6871
|
+
const s = _t(xl), {
|
|
6872
6872
|
activators: o,
|
|
6873
6873
|
activatorEvent: a,
|
|
6874
6874
|
active: c,
|
|
@@ -6880,7 +6880,7 @@ function vl(n) {
|
|
|
6880
6880
|
role: g = bn,
|
|
6881
6881
|
roleDescription: C = "draggable",
|
|
6882
6882
|
tabIndex: b = 0
|
|
6883
|
-
} = r ?? {}, x = c?.id === e, D = _e(x ? oi :
|
|
6883
|
+
} = r ?? {}, x = c?.id === e, D = _e(x ? oi : bl), [N, w] = $t(), [R, v] = $t(), y = al(o, e), m = yt(t);
|
|
6884
6884
|
pe(
|
|
6885
6885
|
() => (u.set(e, {
|
|
6886
6886
|
id: e,
|
|
@@ -6889,8 +6889,8 @@ function vl(n) {
|
|
|
6889
6889
|
activatorNode: R,
|
|
6890
6890
|
data: m
|
|
6891
6891
|
}), () => {
|
|
6892
|
-
const
|
|
6893
|
-
|
|
6892
|
+
const z = u.get(e);
|
|
6893
|
+
z && z.key === s && u.delete(e);
|
|
6894
6894
|
}),
|
|
6895
6895
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6896
6896
|
[u, e]
|
|
@@ -6920,31 +6920,31 @@ function vl(n) {
|
|
|
6920
6920
|
function Rr() {
|
|
6921
6921
|
return _e(Er);
|
|
6922
6922
|
}
|
|
6923
|
-
const
|
|
6923
|
+
const Cl = "Droppable", _l = {
|
|
6924
6924
|
timeout: 25
|
|
6925
6925
|
};
|
|
6926
|
-
function
|
|
6926
|
+
function El(n) {
|
|
6927
6927
|
let {
|
|
6928
6928
|
data: e,
|
|
6929
6929
|
disabled: t = !1,
|
|
6930
6930
|
id: i,
|
|
6931
6931
|
resizeObserverConfig: r
|
|
6932
6932
|
} = n;
|
|
6933
|
-
const s = _t(
|
|
6933
|
+
const s = _t(Cl), {
|
|
6934
6934
|
active: o,
|
|
6935
6935
|
dispatch: a,
|
|
6936
6936
|
over: c,
|
|
6937
6937
|
measureDroppableContainers: d
|
|
6938
|
-
} = _e(Et), l =
|
|
6938
|
+
} = _e(Et), l = M({
|
|
6939
6939
|
disabled: t
|
|
6940
|
-
}), u =
|
|
6940
|
+
}), u = M(!1), h = M(null), g = M(null), {
|
|
6941
6941
|
disabled: C,
|
|
6942
6942
|
updateMeasurementsFor: b,
|
|
6943
6943
|
timeout: x
|
|
6944
6944
|
} = {
|
|
6945
|
-
...
|
|
6945
|
+
..._l,
|
|
6946
6946
|
...r
|
|
6947
|
-
}, D =
|
|
6947
|
+
}, D = yt(b ?? i), N = U(
|
|
6948
6948
|
() => {
|
|
6949
6949
|
if (!u.current) {
|
|
6950
6950
|
u.current = !0;
|
|
@@ -6959,9 +6959,9 @@ function xl(n) {
|
|
|
6959
6959
|
), w = si({
|
|
6960
6960
|
callback: N,
|
|
6961
6961
|
disabled: C || !o
|
|
6962
|
-
}), R = U((E,
|
|
6963
|
-
w && (
|
|
6964
|
-
}, [w]), [v, y] = $t(R), m =
|
|
6962
|
+
}), R = U((E, z) => {
|
|
6963
|
+
w && (z && (w.unobserve(z), u.current = !1), E && w.observe(E));
|
|
6964
|
+
}, [w]), [v, y] = $t(R), m = yt(e);
|
|
6965
6965
|
return I(() => {
|
|
6966
6966
|
!w || !v.current || (w.disconnect(), u.current = !1, w.observe(v.current));
|
|
6967
6967
|
}, [v, w]), I(
|
|
@@ -6998,12 +6998,12 @@ function xl(n) {
|
|
|
6998
6998
|
setNodeRef: y
|
|
6999
6999
|
};
|
|
7000
7000
|
}
|
|
7001
|
-
function
|
|
7001
|
+
function Dl(n) {
|
|
7002
7002
|
let {
|
|
7003
7003
|
animation: e,
|
|
7004
7004
|
children: t
|
|
7005
7005
|
} = n;
|
|
7006
|
-
const [i, r] =
|
|
7006
|
+
const [i, r] = F(null), [s, o] = F(null), a = jt(t);
|
|
7007
7007
|
return !t && !i && a && r(a), pe(() => {
|
|
7008
7008
|
if (!s)
|
|
7009
7009
|
return;
|
|
@@ -7015,30 +7015,30 @@ function wl(n) {
|
|
|
7015
7015
|
Promise.resolve(e(d, s)).then(() => {
|
|
7016
7016
|
r(null);
|
|
7017
7017
|
});
|
|
7018
|
-
}, [e, i, s]),
|
|
7018
|
+
}, [e, i, s]), L.createElement(L.Fragment, null, t, i ? Os(i, {
|
|
7019
7019
|
ref: o
|
|
7020
7020
|
}) : null);
|
|
7021
7021
|
}
|
|
7022
|
-
const
|
|
7022
|
+
const Rl = {
|
|
7023
7023
|
x: 0,
|
|
7024
7024
|
y: 0,
|
|
7025
7025
|
scaleX: 1,
|
|
7026
7026
|
scaleY: 1
|
|
7027
7027
|
};
|
|
7028
|
-
function
|
|
7028
|
+
function Sl(n) {
|
|
7029
7029
|
let {
|
|
7030
7030
|
children: e
|
|
7031
7031
|
} = n;
|
|
7032
|
-
return
|
|
7032
|
+
return L.createElement(Et.Provider, {
|
|
7033
7033
|
value: _r
|
|
7034
|
-
},
|
|
7035
|
-
value:
|
|
7034
|
+
}, L.createElement(oi.Provider, {
|
|
7035
|
+
value: Rl
|
|
7036
7036
|
}, e));
|
|
7037
7037
|
}
|
|
7038
|
-
const
|
|
7038
|
+
const Nl = {
|
|
7039
7039
|
position: "fixed",
|
|
7040
7040
|
touchAction: "none"
|
|
7041
|
-
},
|
|
7041
|
+
}, Al = (n) => ni(n) ? "transform 250ms ease" : void 0, Ol = /* @__PURE__ */ oe((n, e) => {
|
|
7042
7042
|
let {
|
|
7043
7043
|
as: t,
|
|
7044
7044
|
activatorEvent: i,
|
|
@@ -7048,7 +7048,7 @@ const El = {
|
|
|
7048
7048
|
rect: a,
|
|
7049
7049
|
style: c,
|
|
7050
7050
|
transform: d,
|
|
7051
|
-
transition: l =
|
|
7051
|
+
transition: l = Al
|
|
7052
7052
|
} = n;
|
|
7053
7053
|
if (!a)
|
|
7054
7054
|
return null;
|
|
@@ -7057,22 +7057,22 @@ const El = {
|
|
|
7057
7057
|
scaleX: 1,
|
|
7058
7058
|
scaleY: 1
|
|
7059
7059
|
}, h = {
|
|
7060
|
-
...
|
|
7060
|
+
...Nl,
|
|
7061
7061
|
width: a.width,
|
|
7062
7062
|
height: a.height,
|
|
7063
7063
|
top: a.top,
|
|
7064
7064
|
left: a.left,
|
|
7065
|
-
transform:
|
|
7066
|
-
transformOrigin: r && i ?
|
|
7065
|
+
transform: Fe.Transform.toString(u),
|
|
7066
|
+
transformOrigin: r && i ? wa(i, a) : void 0,
|
|
7067
7067
|
transition: typeof l == "function" ? l(i) : l,
|
|
7068
7068
|
...c
|
|
7069
7069
|
};
|
|
7070
|
-
return
|
|
7070
|
+
return L.createElement(t, {
|
|
7071
7071
|
className: o,
|
|
7072
7072
|
style: h,
|
|
7073
7073
|
ref: e
|
|
7074
7074
|
}, s);
|
|
7075
|
-
}),
|
|
7075
|
+
}), kl = (n) => (e) => {
|
|
7076
7076
|
let {
|
|
7077
7077
|
active: t,
|
|
7078
7078
|
dragOverlay: i
|
|
@@ -7092,7 +7092,7 @@ const El = {
|
|
|
7092
7092
|
t.node.style.setProperty(c, d);
|
|
7093
7093
|
o != null && o.active && t.node.classList.remove(o.active);
|
|
7094
7094
|
};
|
|
7095
|
-
},
|
|
7095
|
+
}, Tl = (n) => {
|
|
7096
7096
|
let {
|
|
7097
7097
|
transform: {
|
|
7098
7098
|
initial: e,
|
|
@@ -7100,15 +7100,15 @@ const El = {
|
|
|
7100
7100
|
}
|
|
7101
7101
|
} = n;
|
|
7102
7102
|
return [{
|
|
7103
|
-
transform:
|
|
7103
|
+
transform: Fe.Transform.toString(e)
|
|
7104
7104
|
}, {
|
|
7105
|
-
transform:
|
|
7105
|
+
transform: Fe.Transform.toString(t)
|
|
7106
7106
|
}];
|
|
7107
|
-
},
|
|
7107
|
+
}, zl = {
|
|
7108
7108
|
duration: 250,
|
|
7109
7109
|
easing: "ease",
|
|
7110
|
-
keyframes:
|
|
7111
|
-
sideEffects: /* @__PURE__ */
|
|
7110
|
+
keyframes: Tl,
|
|
7111
|
+
sideEffects: /* @__PURE__ */ kl({
|
|
7112
7112
|
styles: {
|
|
7113
7113
|
active: {
|
|
7114
7114
|
opacity: "0"
|
|
@@ -7116,7 +7116,7 @@ const El = {
|
|
|
7116
7116
|
}
|
|
7117
7117
|
})
|
|
7118
7118
|
};
|
|
7119
|
-
function
|
|
7119
|
+
function Pl(n) {
|
|
7120
7120
|
let {
|
|
7121
7121
|
config: e,
|
|
7122
7122
|
draggableNodes: t,
|
|
@@ -7140,7 +7140,7 @@ function Ol(n) {
|
|
|
7140
7140
|
} = Z(o).getComputedStyle(o), u = hr(l);
|
|
7141
7141
|
if (!u)
|
|
7142
7142
|
return;
|
|
7143
|
-
const h = typeof e == "function" ? e :
|
|
7143
|
+
const h = typeof e == "function" ? e : Ml(e);
|
|
7144
7144
|
return br(c, r.draggable.measure), h({
|
|
7145
7145
|
active: {
|
|
7146
7146
|
id: s,
|
|
@@ -7159,14 +7159,14 @@ function Ol(n) {
|
|
|
7159
7159
|
});
|
|
7160
7160
|
});
|
|
7161
7161
|
}
|
|
7162
|
-
function
|
|
7162
|
+
function Ml(n) {
|
|
7163
7163
|
const {
|
|
7164
7164
|
duration: e,
|
|
7165
7165
|
easing: t,
|
|
7166
7166
|
sideEffects: i,
|
|
7167
7167
|
keyframes: r
|
|
7168
7168
|
} = {
|
|
7169
|
-
...
|
|
7169
|
+
...zl,
|
|
7170
7170
|
...n
|
|
7171
7171
|
};
|
|
7172
7172
|
return (s) => {
|
|
@@ -7216,13 +7216,13 @@ function kl(n) {
|
|
|
7216
7216
|
};
|
|
7217
7217
|
}
|
|
7218
7218
|
let xn = 0;
|
|
7219
|
-
function
|
|
7219
|
+
function Ll(n) {
|
|
7220
7220
|
return H(() => {
|
|
7221
7221
|
if (n != null)
|
|
7222
7222
|
return xn++, xn;
|
|
7223
7223
|
}, [n]);
|
|
7224
7224
|
}
|
|
7225
|
-
const
|
|
7225
|
+
const Il = /* @__PURE__ */ L.memo((n) => {
|
|
7226
7226
|
let {
|
|
7227
7227
|
adjustScale: e = !1,
|
|
7228
7228
|
children: t,
|
|
@@ -7247,7 +7247,7 @@ const zl = /* @__PURE__ */ M.memo((n) => {
|
|
|
7247
7247
|
scrollableAncestors: w,
|
|
7248
7248
|
scrollableAncestorRects: R,
|
|
7249
7249
|
windowRect: v
|
|
7250
|
-
} = Rr(), y = _e(oi), m =
|
|
7250
|
+
} = Rr(), y = _e(oi), m = Ll(u?.id), E = Dr(o, {
|
|
7251
7251
|
activatorEvent: l,
|
|
7252
7252
|
active: u,
|
|
7253
7253
|
activeNodeRect: h,
|
|
@@ -7259,15 +7259,15 @@ const zl = /* @__PURE__ */ M.memo((n) => {
|
|
|
7259
7259
|
scrollableAncestorRects: R,
|
|
7260
7260
|
transform: y,
|
|
7261
7261
|
windowRect: v
|
|
7262
|
-
}),
|
|
7262
|
+
}), z = Bi(h), A = Pl({
|
|
7263
7263
|
config: i,
|
|
7264
7264
|
draggableNodes: C,
|
|
7265
7265
|
droppableContainers: b,
|
|
7266
7266
|
measuringConfiguration: N
|
|
7267
|
-
}), _ =
|
|
7268
|
-
return
|
|
7267
|
+
}), _ = z ? x.setRef : void 0;
|
|
7268
|
+
return L.createElement(Sl, null, L.createElement(Dl, {
|
|
7269
7269
|
animation: A
|
|
7270
|
-
}, u && m ?
|
|
7270
|
+
}, u && m ? L.createElement(Ol, {
|
|
7271
7271
|
key: m,
|
|
7272
7272
|
id: u.id,
|
|
7273
7273
|
ref: _,
|
|
@@ -7276,7 +7276,7 @@ const zl = /* @__PURE__ */ M.memo((n) => {
|
|
|
7276
7276
|
adjustScale: e,
|
|
7277
7277
|
className: c,
|
|
7278
7278
|
transition: s,
|
|
7279
|
-
rect:
|
|
7279
|
+
rect: z,
|
|
7280
7280
|
style: {
|
|
7281
7281
|
zIndex: d,
|
|
7282
7282
|
...r
|
|
@@ -7288,7 +7288,7 @@ function Wi(n, e, t) {
|
|
|
7288
7288
|
const i = n.slice();
|
|
7289
7289
|
return i.splice(t < 0 ? i.length + t : t, 0, i.splice(e, 1)[0]), i;
|
|
7290
7290
|
}
|
|
7291
|
-
function
|
|
7291
|
+
function Hl(n, e) {
|
|
7292
7292
|
return n.reduce((t, i, r) => {
|
|
7293
7293
|
const s = e.get(i);
|
|
7294
7294
|
return s && (t[r] = s), t;
|
|
@@ -7297,7 +7297,7 @@ function Pl(n, e) {
|
|
|
7297
7297
|
function zt(n) {
|
|
7298
7298
|
return n !== null && n >= 0;
|
|
7299
7299
|
}
|
|
7300
|
-
function
|
|
7300
|
+
function Fl(n, e) {
|
|
7301
7301
|
if (n === e)
|
|
7302
7302
|
return !0;
|
|
7303
7303
|
if (n.length !== e.length)
|
|
@@ -7307,7 +7307,7 @@ function Ml(n, e) {
|
|
|
7307
7307
|
return !1;
|
|
7308
7308
|
return !0;
|
|
7309
7309
|
}
|
|
7310
|
-
function
|
|
7310
|
+
function Bl(n) {
|
|
7311
7311
|
return typeof n == "boolean" ? {
|
|
7312
7312
|
draggable: n,
|
|
7313
7313
|
droppable: n
|
|
@@ -7327,7 +7327,7 @@ const Sr = (n) => {
|
|
|
7327
7327
|
scaleX: a.width / o.width,
|
|
7328
7328
|
scaleY: a.height / o.height
|
|
7329
7329
|
};
|
|
7330
|
-
}, Nr = "Sortable", Ar = /* @__PURE__ */
|
|
7330
|
+
}, Nr = "Sortable", Ar = /* @__PURE__ */ L.createContext({
|
|
7331
7331
|
activeIndex: -1,
|
|
7332
7332
|
containerId: Nr,
|
|
7333
7333
|
disableTransforms: !1,
|
|
@@ -7341,7 +7341,7 @@ const Sr = (n) => {
|
|
|
7341
7341
|
droppable: !1
|
|
7342
7342
|
}
|
|
7343
7343
|
});
|
|
7344
|
-
function
|
|
7344
|
+
function Wl(n) {
|
|
7345
7345
|
let {
|
|
7346
7346
|
children: e,
|
|
7347
7347
|
id: t,
|
|
@@ -7355,7 +7355,7 @@ function Il(n) {
|
|
|
7355
7355
|
droppableRects: c,
|
|
7356
7356
|
over: d,
|
|
7357
7357
|
measureDroppableContainers: l
|
|
7358
|
-
} = Rr(), u = _t(Nr, t), h = a.rect !== null, g = H(() => i.map((y) => typeof y == "object" && "id" in y ? y.id : y), [i]), C = o != null, b = o ? g.indexOf(o.id) : -1, x = d ? g.indexOf(d.id) : -1, D =
|
|
7358
|
+
} = Rr(), u = _t(Nr, t), h = a.rect !== null, g = H(() => i.map((y) => typeof y == "object" && "id" in y ? y.id : y), [i]), C = o != null, b = o ? g.indexOf(o.id) : -1, x = d ? g.indexOf(d.id) : -1, D = M(g), N = !Fl(g, D.current), w = x !== -1 && b === -1 || N, R = Bl(s);
|
|
7359
7359
|
pe(() => {
|
|
7360
7360
|
N && C && l(g);
|
|
7361
7361
|
}, [N, g, C, l]), I(() => {
|
|
@@ -7370,17 +7370,17 @@ function Il(n) {
|
|
|
7370
7370
|
items: g,
|
|
7371
7371
|
overIndex: x,
|
|
7372
7372
|
useDragOverlay: h,
|
|
7373
|
-
sortedRects:
|
|
7373
|
+
sortedRects: Hl(g, c),
|
|
7374
7374
|
strategy: r
|
|
7375
7375
|
}),
|
|
7376
7376
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7377
7377
|
[b, u, R.draggable, R.droppable, w, g, x, c, h, r]
|
|
7378
7378
|
);
|
|
7379
|
-
return
|
|
7379
|
+
return L.createElement(Ar.Provider, {
|
|
7380
7380
|
value: v
|
|
7381
7381
|
}, e);
|
|
7382
7382
|
}
|
|
7383
|
-
const
|
|
7383
|
+
const Gl = (n) => {
|
|
7384
7384
|
let {
|
|
7385
7385
|
id: e,
|
|
7386
7386
|
items: t,
|
|
@@ -7388,7 +7388,7 @@ const Hl = (n) => {
|
|
|
7388
7388
|
overIndex: r
|
|
7389
7389
|
} = n;
|
|
7390
7390
|
return Wi(t, i, r).indexOf(e);
|
|
7391
|
-
},
|
|
7391
|
+
}, $l = (n) => {
|
|
7392
7392
|
let {
|
|
7393
7393
|
containerId: e,
|
|
7394
7394
|
isSorting: t,
|
|
@@ -7401,29 +7401,29 @@ const Hl = (n) => {
|
|
|
7401
7401
|
transition: d
|
|
7402
7402
|
} = n;
|
|
7403
7403
|
return !d || !i || a !== s && r === o ? !1 : t ? !0 : o !== r && e === c;
|
|
7404
|
-
},
|
|
7404
|
+
}, jl = {
|
|
7405
7405
|
duration: 200,
|
|
7406
7406
|
easing: "ease"
|
|
7407
|
-
}, Or = "transform",
|
|
7407
|
+
}, Or = "transform", Ul = /* @__PURE__ */ Fe.Transition.toString({
|
|
7408
7408
|
property: Or,
|
|
7409
7409
|
duration: 0,
|
|
7410
7410
|
easing: "linear"
|
|
7411
|
-
}),
|
|
7411
|
+
}), Vl = {
|
|
7412
7412
|
roleDescription: "sortable"
|
|
7413
7413
|
};
|
|
7414
|
-
function
|
|
7414
|
+
function Kl(n) {
|
|
7415
7415
|
let {
|
|
7416
7416
|
disabled: e,
|
|
7417
7417
|
index: t,
|
|
7418
7418
|
node: i,
|
|
7419
7419
|
rect: r
|
|
7420
7420
|
} = n;
|
|
7421
|
-
const [s, o] =
|
|
7421
|
+
const [s, o] = F(null), a = M(t);
|
|
7422
7422
|
return pe(() => {
|
|
7423
7423
|
if (!e && t !== a.current && i.current) {
|
|
7424
7424
|
const c = r.current;
|
|
7425
7425
|
if (c) {
|
|
7426
|
-
const d =
|
|
7426
|
+
const d = it(i.current, {
|
|
7427
7427
|
ignoreTransform: !0
|
|
7428
7428
|
}), l = {
|
|
7429
7429
|
x: c.left - d.left,
|
|
@@ -7439,17 +7439,17 @@ function $l(n) {
|
|
|
7439
7439
|
s && o(null);
|
|
7440
7440
|
}, [s]), s;
|
|
7441
7441
|
}
|
|
7442
|
-
function
|
|
7442
|
+
function Xl(n) {
|
|
7443
7443
|
let {
|
|
7444
|
-
animateLayoutChanges: e =
|
|
7444
|
+
animateLayoutChanges: e = $l,
|
|
7445
7445
|
attributes: t,
|
|
7446
7446
|
disabled: i,
|
|
7447
7447
|
data: r,
|
|
7448
|
-
getNewIndex: s =
|
|
7448
|
+
getNewIndex: s = Gl,
|
|
7449
7449
|
id: o,
|
|
7450
7450
|
strategy: a,
|
|
7451
7451
|
resizeObserverConfig: c,
|
|
7452
|
-
transition: d =
|
|
7452
|
+
transition: d = jl
|
|
7453
7453
|
} = n;
|
|
7454
7454
|
const {
|
|
7455
7455
|
items: l,
|
|
@@ -7461,7 +7461,7 @@ function jl(n) {
|
|
|
7461
7461
|
overIndex: x,
|
|
7462
7462
|
useDragOverlay: D,
|
|
7463
7463
|
strategy: N
|
|
7464
|
-
} = _e(Ar), w =
|
|
7464
|
+
} = _e(Ar), w = Yl(i, g), R = l.indexOf(o), v = H(() => ({
|
|
7465
7465
|
sortable: {
|
|
7466
7466
|
containerId: u,
|
|
7467
7467
|
index: R,
|
|
@@ -7471,9 +7471,9 @@ function jl(n) {
|
|
|
7471
7471
|
}), [u, r, R, l]), y = H(() => l.slice(l.indexOf(o)), [l, o]), {
|
|
7472
7472
|
rect: m,
|
|
7473
7473
|
node: E,
|
|
7474
|
-
isOver:
|
|
7474
|
+
isOver: z,
|
|
7475
7475
|
setNodeRef: A
|
|
7476
|
-
} =
|
|
7476
|
+
} = El({
|
|
7477
7477
|
id: o,
|
|
7478
7478
|
data: v,
|
|
7479
7479
|
disabled: w.droppable,
|
|
@@ -7485,22 +7485,22 @@ function jl(n) {
|
|
|
7485
7485
|
active: _,
|
|
7486
7486
|
activatorEvent: S,
|
|
7487
7487
|
activeNodeRect: O,
|
|
7488
|
-
attributes:
|
|
7488
|
+
attributes: B,
|
|
7489
7489
|
setNodeRef: Q,
|
|
7490
7490
|
listeners: ee,
|
|
7491
7491
|
isDragging: V,
|
|
7492
7492
|
over: ue,
|
|
7493
7493
|
setActivatorNodeRef: j,
|
|
7494
7494
|
transform: he
|
|
7495
|
-
} =
|
|
7495
|
+
} = wl({
|
|
7496
7496
|
id: o,
|
|
7497
7497
|
data: v,
|
|
7498
7498
|
attributes: {
|
|
7499
|
-
...
|
|
7499
|
+
...Vl,
|
|
7500
7500
|
...t
|
|
7501
7501
|
},
|
|
7502
7502
|
disabled: w.draggable
|
|
7503
|
-
}), Rt =
|
|
7503
|
+
}), Rt = sa(A, Q), te = !!_, Ee = te && !C && zt(h) && zt(x), Be = !D && V, nt = Be && Ee ? he : null, St = Ee ? nt ?? (a ?? N)({
|
|
7504
7504
|
rects: b,
|
|
7505
7505
|
activeNodeRect: O,
|
|
7506
7506
|
activeIndex: h,
|
|
@@ -7511,12 +7511,12 @@ function jl(n) {
|
|
|
7511
7511
|
items: l,
|
|
7512
7512
|
activeIndex: h,
|
|
7513
7513
|
overIndex: x
|
|
7514
|
-
}) : R, De = _?.id,
|
|
7514
|
+
}) : R, De = _?.id, $ = M({
|
|
7515
7515
|
activeId: De,
|
|
7516
7516
|
items: l,
|
|
7517
7517
|
newIndex: Oe,
|
|
7518
7518
|
containerId: u
|
|
7519
|
-
}),
|
|
7519
|
+
}), rt = l !== $.current.items, ye = e({
|
|
7520
7520
|
active: _,
|
|
7521
7521
|
containerId: u,
|
|
7522
7522
|
isDragging: V,
|
|
@@ -7524,40 +7524,40 @@ function jl(n) {
|
|
|
7524
7524
|
id: o,
|
|
7525
7525
|
index: R,
|
|
7526
7526
|
items: l,
|
|
7527
|
-
newIndex:
|
|
7528
|
-
previousItems:
|
|
7529
|
-
previousContainerId:
|
|
7527
|
+
newIndex: $.current.newIndex,
|
|
7528
|
+
previousItems: $.current.items,
|
|
7529
|
+
previousContainerId: $.current.containerId,
|
|
7530
7530
|
transition: d,
|
|
7531
|
-
wasDragging:
|
|
7532
|
-
}),
|
|
7531
|
+
wasDragging: $.current.activeId != null
|
|
7532
|
+
}), $e = Kl({
|
|
7533
7533
|
disabled: !ye,
|
|
7534
7534
|
index: R,
|
|
7535
7535
|
node: E,
|
|
7536
7536
|
rect: m
|
|
7537
7537
|
});
|
|
7538
7538
|
return I(() => {
|
|
7539
|
-
te &&
|
|
7539
|
+
te && $.current.newIndex !== Oe && ($.current.newIndex = Oe), u !== $.current.containerId && ($.current.containerId = u), l !== $.current.items && ($.current.items = l);
|
|
7540
7540
|
}, [te, Oe, u, l]), I(() => {
|
|
7541
|
-
if (De ===
|
|
7541
|
+
if (De === $.current.activeId)
|
|
7542
7542
|
return;
|
|
7543
|
-
if (De != null &&
|
|
7544
|
-
|
|
7543
|
+
if (De != null && $.current.activeId == null) {
|
|
7544
|
+
$.current.activeId = De;
|
|
7545
7545
|
return;
|
|
7546
7546
|
}
|
|
7547
|
-
const
|
|
7548
|
-
|
|
7547
|
+
const je = setTimeout(() => {
|
|
7548
|
+
$.current.activeId = De;
|
|
7549
7549
|
}, 50);
|
|
7550
|
-
return () => clearTimeout(
|
|
7550
|
+
return () => clearTimeout(je);
|
|
7551
7551
|
}, [De]), {
|
|
7552
7552
|
active: _,
|
|
7553
7553
|
activeIndex: h,
|
|
7554
|
-
attributes:
|
|
7554
|
+
attributes: B,
|
|
7555
7555
|
data: v,
|
|
7556
7556
|
rect: m,
|
|
7557
7557
|
index: R,
|
|
7558
7558
|
newIndex: Oe,
|
|
7559
7559
|
items: l,
|
|
7560
|
-
isOver:
|
|
7560
|
+
isOver: z,
|
|
7561
7561
|
isSorting: te,
|
|
7562
7562
|
isDragging: V,
|
|
7563
7563
|
listeners: ee,
|
|
@@ -7568,24 +7568,24 @@ function jl(n) {
|
|
|
7568
7568
|
setActivatorNodeRef: j,
|
|
7569
7569
|
setDroppableNodeRef: A,
|
|
7570
7570
|
setDraggableNodeRef: Q,
|
|
7571
|
-
transform:
|
|
7571
|
+
transform: $e ?? St,
|
|
7572
7572
|
transition: Re()
|
|
7573
7573
|
};
|
|
7574
7574
|
function Re() {
|
|
7575
7575
|
if (
|
|
7576
7576
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
7577
|
-
|
|
7578
|
-
|
|
7577
|
+
$e || // Or to prevent items jumping to back to their "new" position when items change
|
|
7578
|
+
rt && $.current.newIndex === R
|
|
7579
7579
|
)
|
|
7580
|
-
return
|
|
7581
|
-
if (!(
|
|
7582
|
-
return
|
|
7580
|
+
return Ul;
|
|
7581
|
+
if (!(Be && !ni(S) || !d) && (te || ye))
|
|
7582
|
+
return Fe.Transition.toString({
|
|
7583
7583
|
...d,
|
|
7584
7584
|
property: Or
|
|
7585
7585
|
});
|
|
7586
7586
|
}
|
|
7587
7587
|
}
|
|
7588
|
-
function
|
|
7588
|
+
function Yl(n, e) {
|
|
7589
7589
|
var t, i;
|
|
7590
7590
|
return typeof n == "boolean" ? {
|
|
7591
7591
|
draggable: n,
|
|
@@ -7602,7 +7602,7 @@ function Xt(n) {
|
|
|
7602
7602
|
const e = n.data.current;
|
|
7603
7603
|
return !!(e && "sortable" in e && typeof e.sortable == "object" && "containerId" in e.sortable && "items" in e.sortable && "index" in e.sortable);
|
|
7604
7604
|
}
|
|
7605
|
-
const
|
|
7605
|
+
const ql = [W.Down, W.Right, W.Up, W.Left], Jl = (n, e) => {
|
|
7606
7606
|
let {
|
|
7607
7607
|
context: {
|
|
7608
7608
|
active: t,
|
|
@@ -7613,7 +7613,7 @@ const Vl = [W.Down, W.Right, W.Up, W.Left], Kl = (n, e) => {
|
|
|
7613
7613
|
scrollableAncestors: a
|
|
7614
7614
|
}
|
|
7615
7615
|
} = e;
|
|
7616
|
-
if (
|
|
7616
|
+
if (ql.includes(n.code)) {
|
|
7617
7617
|
if (n.preventDefault(), !t || !i)
|
|
7618
7618
|
return;
|
|
7619
7619
|
const c = [];
|
|
@@ -7637,7 +7637,7 @@ const Vl = [W.Down, W.Right, W.Up, W.Left], Kl = (n, e) => {
|
|
|
7637
7637
|
break;
|
|
7638
7638
|
}
|
|
7639
7639
|
});
|
|
7640
|
-
const d =
|
|
7640
|
+
const d = Ea({
|
|
7641
7641
|
collisionRect: i,
|
|
7642
7642
|
droppableRects: r,
|
|
7643
7643
|
droppableContainers: c
|
|
@@ -7646,7 +7646,7 @@ const Vl = [W.Down, W.Right, W.Up, W.Left], Kl = (n, e) => {
|
|
|
7646
7646
|
if (l === o?.id && d.length > 1 && (l = d[1].id), l != null) {
|
|
7647
7647
|
const u = s.get(t.id), h = s.get(l), g = h ? r.get(h.id) : null, C = h?.node.current;
|
|
7648
7648
|
if (C && g && u && h) {
|
|
7649
|
-
const x = ri(C).some((y, m) => a[m] !== y), D = kr(u, h), N =
|
|
7649
|
+
const x = ri(C).some((y, m) => a[m] !== y), D = kr(u, h), N = Zl(u, h), w = x || !D ? {
|
|
7650
7650
|
x: 0,
|
|
7651
7651
|
y: 0
|
|
7652
7652
|
} : {
|
|
@@ -7656,7 +7656,7 @@ const Vl = [W.Down, W.Right, W.Up, W.Left], Kl = (n, e) => {
|
|
|
7656
7656
|
x: g.left,
|
|
7657
7657
|
y: g.top
|
|
7658
7658
|
};
|
|
7659
|
-
return w.x && w.y ? R :
|
|
7659
|
+
return w.x && w.y ? R : bt(R, w);
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
7662
7662
|
}
|
|
@@ -7664,14 +7664,14 @@ const Vl = [W.Down, W.Right, W.Up, W.Left], Kl = (n, e) => {
|
|
|
7664
7664
|
function kr(n, e) {
|
|
7665
7665
|
return !Xt(n) || !Xt(e) ? !1 : n.data.current.sortable.containerId === e.data.current.sortable.containerId;
|
|
7666
7666
|
}
|
|
7667
|
-
function
|
|
7667
|
+
function Zl(n, e) {
|
|
7668
7668
|
return !Xt(n) || !Xt(e) || !kr(n, e) ? !1 : n.data.current.sortable.index < e.data.current.sortable.index;
|
|
7669
7669
|
}
|
|
7670
7670
|
const wn = ({ id: n, children: e }) => {
|
|
7671
|
-
const { attributes: t, listeners: i, setNodeRef: r, transform: s, transition: o } =
|
|
7671
|
+
const { attributes: t, listeners: i, setNodeRef: r, transform: s, transition: o } = Xl({
|
|
7672
7672
|
id: n
|
|
7673
7673
|
}), a = {
|
|
7674
|
-
transform:
|
|
7674
|
+
transform: Fe.Translate.toString(s),
|
|
7675
7675
|
transition: o,
|
|
7676
7676
|
flex: "1 1",
|
|
7677
7677
|
display: "flex",
|
|
@@ -7686,15 +7686,15 @@ const wn = ({ id: n, children: e }) => {
|
|
|
7686
7686
|
});
|
|
7687
7687
|
}, Gi = ({ blocks: n, sortable: e = !1, onSort: t = () => {
|
|
7688
7688
|
}, main: i = !1 }) => {
|
|
7689
|
-
const [r, s] =
|
|
7689
|
+
const [r, s] = F([]);
|
|
7690
7690
|
Dn(() => {
|
|
7691
7691
|
s(n.map((u, h) => ({
|
|
7692
7692
|
id: u.id ?? h.toString(),
|
|
7693
7693
|
render: u.render
|
|
7694
7694
|
})));
|
|
7695
7695
|
}, [n]);
|
|
7696
|
-
const [o, a] =
|
|
7697
|
-
coordinateGetter:
|
|
7696
|
+
const [o, a] = F(null), c = ba(ln(Fi), ln(Ii, {
|
|
7697
|
+
coordinateGetter: Jl
|
|
7698
7698
|
})), d = (u) => {
|
|
7699
7699
|
a(u.active.id);
|
|
7700
7700
|
}, l = (u) => {
|
|
@@ -7705,18 +7705,18 @@ const wn = ({ id: n, children: e }) => {
|
|
|
7705
7705
|
});
|
|
7706
7706
|
};
|
|
7707
7707
|
return f("div", {
|
|
7708
|
-
className:
|
|
7709
|
-
children:
|
|
7708
|
+
className: G("flex flex-wrap items-stretch gap-4", i && "flex-1"),
|
|
7709
|
+
children: T(yl, {
|
|
7710
7710
|
sensors: c,
|
|
7711
7711
|
onDragStart: d,
|
|
7712
7712
|
onDragEnd: l,
|
|
7713
|
-
children: [f(
|
|
7713
|
+
children: [f(Wl, {
|
|
7714
7714
|
items: r,
|
|
7715
7715
|
children: r.map((u) => f(wn, {
|
|
7716
7716
|
id: u.id,
|
|
7717
7717
|
children: u.render
|
|
7718
7718
|
}, u.id))
|
|
7719
|
-
}), f(
|
|
7719
|
+
}), f(Il, {
|
|
7720
7720
|
children: o ? f(wn, {
|
|
7721
7721
|
id: o,
|
|
7722
7722
|
children: r.find((u) => u.id === o)?.render
|
|
@@ -7727,76 +7727,76 @@ const wn = ({ id: n, children: e }) => {
|
|
|
7727
7727
|
};
|
|
7728
7728
|
Gi.displayName = "GroupMasonry";
|
|
7729
7729
|
Gi.__isPageLayoutGroup = !0;
|
|
7730
|
-
const
|
|
7730
|
+
const Ql = oe(function({ children: e, aside: t, header: i, variant: r = "main-aside" }, s) {
|
|
7731
7731
|
return process.env.NODE_ENV === "development" && or("Page", e, ["block", "group"]), f("div", {
|
|
7732
7732
|
ref: s,
|
|
7733
7733
|
className: "h-full",
|
|
7734
|
-
children:
|
|
7735
|
-
className:
|
|
7736
|
-
children: [
|
|
7737
|
-
className:
|
|
7734
|
+
children: T("div", {
|
|
7735
|
+
className: G("flex h-full max-w-full overflow-auto text-f1-foreground md:flex-row", "flex-col", "overflow-y-auto", "md:sticky md:top-0 md:max-h-full"),
|
|
7736
|
+
children: [T("main", {
|
|
7737
|
+
className: G("sm:min-h-xs h-fit border-0", "order-1 flex flex-col sm:flex-1 sm:border-solid md:order-2", "md:auto md:h-full md:max-h-full md:overflow-y-auto md:overflow-x-hidden", r === "aside-main" ? "sm:border-l sm:border-l-f1-border-secondary" : "sm:border-r sm:border-r-f1-border-secondary", "border-t border-solid border-t-f1-border-secondary sm:border-t-0"),
|
|
7738
7738
|
children: [i && f("header", {
|
|
7739
|
-
className:
|
|
7739
|
+
className: G("sticky top-0 z-30 bg-f1-background"),
|
|
7740
7740
|
children: i
|
|
7741
7741
|
}), f("div", {
|
|
7742
7742
|
className: "flex-1",
|
|
7743
7743
|
children: e
|
|
7744
7744
|
})]
|
|
7745
7745
|
}), t && f("aside", {
|
|
7746
|
-
className:
|
|
7746
|
+
className: G("min-w-30 sm:basis-1/4 md:max-w-80", "order-2", r === "aside-main" ? "md:order-1" : "md:order-3"),
|
|
7747
7747
|
children: t
|
|
7748
7748
|
})]
|
|
7749
7749
|
})
|
|
7750
7750
|
});
|
|
7751
|
-
}),
|
|
7752
|
-
Page: fe("Page",
|
|
7751
|
+
}), td = {
|
|
7752
|
+
Page: fe("Page", Ql),
|
|
7753
7753
|
Block: fe("Block", ei),
|
|
7754
|
-
BlockContent: fe("BlockContent",
|
|
7754
|
+
BlockContent: fe("BlockContent", ia),
|
|
7755
7755
|
Group: fe("Group", zi),
|
|
7756
7756
|
GroupGrid: fe("GroupGrid", Qt),
|
|
7757
7757
|
GroupMasonry: fe("GroupMasonry", Gi)
|
|
7758
|
-
},
|
|
7758
|
+
}, id = ve({
|
|
7759
7759
|
name: "StandardLayout",
|
|
7760
7760
|
type: "layout"
|
|
7761
|
-
}, qn),
|
|
7761
|
+
}, qn), nd = ve({
|
|
7762
7762
|
name: "TwoColumnLayout",
|
|
7763
7763
|
type: "layout"
|
|
7764
|
-
},
|
|
7764
|
+
}, No), rd = ve({
|
|
7765
7765
|
name: "HomeLayout",
|
|
7766
7766
|
type: "layout"
|
|
7767
|
-
},
|
|
7768
|
-
function
|
|
7767
|
+
}, Ro);
|
|
7768
|
+
function Ze(n) {
|
|
7769
7769
|
"@babel/helpers - typeof";
|
|
7770
|
-
return
|
|
7770
|
+
return Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7771
7771
|
return typeof e;
|
|
7772
7772
|
} : function(e) {
|
|
7773
7773
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7774
|
-
},
|
|
7774
|
+
}, Ze(n);
|
|
7775
7775
|
}
|
|
7776
|
-
function
|
|
7776
|
+
function ec(n, e) {
|
|
7777
7777
|
if (!(n instanceof e))
|
|
7778
7778
|
throw new TypeError("Cannot call a class as a function");
|
|
7779
7779
|
}
|
|
7780
|
-
function
|
|
7780
|
+
function tc(n, e) {
|
|
7781
7781
|
for (var t = 0; t < e.length; t++) {
|
|
7782
7782
|
var i = e[t];
|
|
7783
7783
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Pr(i.key), i);
|
|
7784
7784
|
}
|
|
7785
7785
|
}
|
|
7786
|
-
function
|
|
7787
|
-
return e &&
|
|
7786
|
+
function ic(n, e, t) {
|
|
7787
|
+
return e && tc(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
7788
7788
|
}
|
|
7789
|
-
function
|
|
7790
|
-
return e = Yt(e),
|
|
7789
|
+
function nc(n, e, t) {
|
|
7790
|
+
return e = Yt(e), rc(n, Tr() ? Reflect.construct(e, t || [], Yt(n).constructor) : e.apply(n, t));
|
|
7791
7791
|
}
|
|
7792
|
-
function
|
|
7793
|
-
if (e && (
|
|
7792
|
+
function rc(n, e) {
|
|
7793
|
+
if (e && (Ze(e) === "object" || typeof e == "function"))
|
|
7794
7794
|
return e;
|
|
7795
7795
|
if (e !== void 0)
|
|
7796
7796
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7797
|
-
return
|
|
7797
|
+
return sc(n);
|
|
7798
7798
|
}
|
|
7799
|
-
function
|
|
7799
|
+
function sc(n) {
|
|
7800
7800
|
if (n === void 0)
|
|
7801
7801
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7802
7802
|
return n;
|
|
@@ -7816,7 +7816,7 @@ function Yt(n) {
|
|
|
7816
7816
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
7817
7817
|
}, Yt(n);
|
|
7818
7818
|
}
|
|
7819
|
-
function
|
|
7819
|
+
function oc(n, e) {
|
|
7820
7820
|
if (typeof e != "function" && e !== null)
|
|
7821
7821
|
throw new TypeError("Super expression must either be null or a function");
|
|
7822
7822
|
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), e && Ei(n, e);
|
|
@@ -7830,30 +7830,30 @@ function zr(n, e, t) {
|
|
|
7830
7830
|
return e = Pr(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
7831
7831
|
}
|
|
7832
7832
|
function Pr(n) {
|
|
7833
|
-
var e =
|
|
7834
|
-
return
|
|
7833
|
+
var e = ac(n, "string");
|
|
7834
|
+
return Ze(e) == "symbol" ? e : e + "";
|
|
7835
7835
|
}
|
|
7836
|
-
function
|
|
7837
|
-
if (
|
|
7836
|
+
function ac(n, e) {
|
|
7837
|
+
if (Ze(n) != "object" || !n) return n;
|
|
7838
7838
|
var t = n[Symbol.toPrimitive];
|
|
7839
7839
|
if (t !== void 0) {
|
|
7840
7840
|
var i = t.call(n, e);
|
|
7841
|
-
if (
|
|
7841
|
+
if (Ze(i) != "object") return i;
|
|
7842
7842
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7843
7843
|
}
|
|
7844
7844
|
return String(n);
|
|
7845
7845
|
}
|
|
7846
7846
|
var ai = /* @__PURE__ */ (function(n) {
|
|
7847
7847
|
function e() {
|
|
7848
|
-
return
|
|
7848
|
+
return ec(this, e), nc(this, e, arguments);
|
|
7849
7849
|
}
|
|
7850
|
-
return
|
|
7850
|
+
return oc(e, n), ic(e, [{
|
|
7851
7851
|
key: "render",
|
|
7852
7852
|
value: function() {
|
|
7853
7853
|
return null;
|
|
7854
7854
|
}
|
|
7855
7855
|
}]);
|
|
7856
|
-
})(
|
|
7856
|
+
})(L.Component);
|
|
7857
7857
|
zr(ai, "displayName", "ZAxis");
|
|
7858
7858
|
zr(ai, "defaultProps", {
|
|
7859
7859
|
zAxisId: 0,
|
|
@@ -7861,20 +7861,20 @@ zr(ai, "defaultProps", {
|
|
|
7861
7861
|
scale: "auto",
|
|
7862
7862
|
type: "number"
|
|
7863
7863
|
});
|
|
7864
|
-
var
|
|
7865
|
-
function
|
|
7866
|
-
return
|
|
7864
|
+
var lc = ["option", "isActive"];
|
|
7865
|
+
function gt() {
|
|
7866
|
+
return gt = Object.assign ? Object.assign.bind() : function(n) {
|
|
7867
7867
|
for (var e = 1; e < arguments.length; e++) {
|
|
7868
7868
|
var t = arguments[e];
|
|
7869
7869
|
for (var i in t)
|
|
7870
7870
|
Object.prototype.hasOwnProperty.call(t, i) && (n[i] = t[i]);
|
|
7871
7871
|
}
|
|
7872
7872
|
return n;
|
|
7873
|
-
},
|
|
7873
|
+
}, gt.apply(this, arguments);
|
|
7874
7874
|
}
|
|
7875
|
-
function
|
|
7875
|
+
function cc(n, e) {
|
|
7876
7876
|
if (n == null) return {};
|
|
7877
|
-
var t =
|
|
7877
|
+
var t = dc(n, e), i, r;
|
|
7878
7878
|
if (Object.getOwnPropertySymbols) {
|
|
7879
7879
|
var s = Object.getOwnPropertySymbols(n);
|
|
7880
7880
|
for (r = 0; r < s.length; r++)
|
|
@@ -7882,7 +7882,7 @@ function sc(n, e) {
|
|
|
7882
7882
|
}
|
|
7883
7883
|
return t;
|
|
7884
7884
|
}
|
|
7885
|
-
function
|
|
7885
|
+
function dc(n, e) {
|
|
7886
7886
|
if (n == null) return {};
|
|
7887
7887
|
var t = {};
|
|
7888
7888
|
for (var i in n)
|
|
@@ -7892,37 +7892,37 @@ function oc(n, e) {
|
|
|
7892
7892
|
}
|
|
7893
7893
|
return t;
|
|
7894
7894
|
}
|
|
7895
|
-
function
|
|
7896
|
-
var e = n.option, t = n.isActive, i =
|
|
7897
|
-
return typeof e == "string" ? /* @__PURE__ */
|
|
7898
|
-
option: /* @__PURE__ */
|
|
7895
|
+
function uc(n) {
|
|
7896
|
+
var e = n.option, t = n.isActive, i = cc(n, lc);
|
|
7897
|
+
return typeof e == "string" ? /* @__PURE__ */ L.createElement(Qi, gt({
|
|
7898
|
+
option: /* @__PURE__ */ L.createElement(Ps, gt({
|
|
7899
7899
|
type: e
|
|
7900
7900
|
}, i)),
|
|
7901
7901
|
isActive: t,
|
|
7902
7902
|
shapeType: "symbols"
|
|
7903
|
-
}, i)) : /* @__PURE__ */
|
|
7903
|
+
}, i)) : /* @__PURE__ */ L.createElement(Qi, gt({
|
|
7904
7904
|
option: e,
|
|
7905
7905
|
isActive: t,
|
|
7906
7906
|
shapeType: "symbols"
|
|
7907
7907
|
}, i));
|
|
7908
7908
|
}
|
|
7909
|
-
function
|
|
7909
|
+
function Qe(n) {
|
|
7910
7910
|
"@babel/helpers - typeof";
|
|
7911
|
-
return
|
|
7911
|
+
return Qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7912
7912
|
return typeof e;
|
|
7913
7913
|
} : function(e) {
|
|
7914
7914
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7915
|
-
},
|
|
7915
|
+
}, Qe(n);
|
|
7916
7916
|
}
|
|
7917
|
-
function
|
|
7918
|
-
return
|
|
7917
|
+
function pt() {
|
|
7918
|
+
return pt = Object.assign ? Object.assign.bind() : function(n) {
|
|
7919
7919
|
for (var e = 1; e < arguments.length; e++) {
|
|
7920
7920
|
var t = arguments[e];
|
|
7921
7921
|
for (var i in t)
|
|
7922
7922
|
Object.prototype.hasOwnProperty.call(t, i) && (n[i] = t[i]);
|
|
7923
7923
|
}
|
|
7924
7924
|
return n;
|
|
7925
|
-
},
|
|
7925
|
+
}, pt.apply(this, arguments);
|
|
7926
7926
|
}
|
|
7927
7927
|
function Cn(n, e) {
|
|
7928
7928
|
var t = Object.keys(n);
|
|
@@ -7945,7 +7945,7 @@ function ce(n) {
|
|
|
7945
7945
|
}
|
|
7946
7946
|
return n;
|
|
7947
7947
|
}
|
|
7948
|
-
function
|
|
7948
|
+
function hc(n, e) {
|
|
7949
7949
|
if (!(n instanceof e))
|
|
7950
7950
|
throw new TypeError("Cannot call a class as a function");
|
|
7951
7951
|
}
|
|
@@ -7955,20 +7955,20 @@ function _n(n, e) {
|
|
|
7955
7955
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Lr(i.key), i);
|
|
7956
7956
|
}
|
|
7957
7957
|
}
|
|
7958
|
-
function
|
|
7958
|
+
function fc(n, e, t) {
|
|
7959
7959
|
return e && _n(n.prototype, e), t && _n(n, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
7960
7960
|
}
|
|
7961
|
-
function
|
|
7962
|
-
return e = qt(e),
|
|
7961
|
+
function gc(n, e, t) {
|
|
7962
|
+
return e = qt(e), pc(n, Mr() ? Reflect.construct(e, t || [], qt(n).constructor) : e.apply(n, t));
|
|
7963
7963
|
}
|
|
7964
|
-
function
|
|
7965
|
-
if (e && (
|
|
7964
|
+
function pc(n, e) {
|
|
7965
|
+
if (e && (Qe(e) === "object" || typeof e == "function"))
|
|
7966
7966
|
return e;
|
|
7967
7967
|
if (e !== void 0)
|
|
7968
7968
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7969
|
-
return
|
|
7969
|
+
return mc(n);
|
|
7970
7970
|
}
|
|
7971
|
-
function
|
|
7971
|
+
function mc(n) {
|
|
7972
7972
|
if (n === void 0)
|
|
7973
7973
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7974
7974
|
return n;
|
|
@@ -7988,7 +7988,7 @@ function qt(n) {
|
|
|
7988
7988
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
7989
7989
|
}, qt(n);
|
|
7990
7990
|
}
|
|
7991
|
-
function
|
|
7991
|
+
function vc(n, e) {
|
|
7992
7992
|
if (typeof e != "function" && e !== null)
|
|
7993
7993
|
throw new TypeError("Super expression must either be null or a function");
|
|
7994
7994
|
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), e && Di(n, e);
|
|
@@ -8002,15 +8002,15 @@ function He(n, e, t) {
|
|
|
8002
8002
|
return e = Lr(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
8003
8003
|
}
|
|
8004
8004
|
function Lr(n) {
|
|
8005
|
-
var e =
|
|
8006
|
-
return
|
|
8005
|
+
var e = yc(n, "string");
|
|
8006
|
+
return Qe(e) == "symbol" ? e : e + "";
|
|
8007
8007
|
}
|
|
8008
|
-
function
|
|
8009
|
-
if (
|
|
8008
|
+
function yc(n, e) {
|
|
8009
|
+
if (Qe(n) != "object" || !n) return n;
|
|
8010
8010
|
var t = n[Symbol.toPrimitive];
|
|
8011
8011
|
if (t !== void 0) {
|
|
8012
8012
|
var i = t.call(n, e);
|
|
8013
|
-
if (
|
|
8013
|
+
if (Qe(i) != "object") return i;
|
|
8014
8014
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8015
8015
|
}
|
|
8016
8016
|
return String(n);
|
|
@@ -8018,10 +8018,10 @@ function gc(n, e) {
|
|
|
8018
8018
|
var Dt = /* @__PURE__ */ (function(n) {
|
|
8019
8019
|
function e() {
|
|
8020
8020
|
var t;
|
|
8021
|
-
|
|
8021
|
+
hc(this, e);
|
|
8022
8022
|
for (var i = arguments.length, r = new Array(i), s = 0; s < i; s++)
|
|
8023
8023
|
r[s] = arguments[s];
|
|
8024
|
-
return t =
|
|
8024
|
+
return t = gc(this, e, [].concat(r)), He(t, "state", {
|
|
8025
8025
|
isAnimationFinished: !1
|
|
8026
8026
|
}), He(t, "handleAnimationEnd", function() {
|
|
8027
8027
|
t.setState({
|
|
@@ -8031,20 +8031,20 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8031
8031
|
t.setState({
|
|
8032
8032
|
isAnimationFinished: !1
|
|
8033
8033
|
});
|
|
8034
|
-
}), He(t, "id",
|
|
8034
|
+
}), He(t, "id", Ws("recharts-scatter-")), t;
|
|
8035
8035
|
}
|
|
8036
|
-
return
|
|
8036
|
+
return vc(e, n), fc(e, [{
|
|
8037
8037
|
key: "renderSymbolsStatically",
|
|
8038
8038
|
value: function(i) {
|
|
8039
8039
|
var r = this, s = this.props, o = s.shape, a = s.activeShape, c = s.activeIndex, d = ui(this.props, !1);
|
|
8040
8040
|
return i.map(function(l, u) {
|
|
8041
8041
|
var h = c === u, g = h ? a : o, C = ce(ce({}, d), l);
|
|
8042
|
-
return /* @__PURE__ */
|
|
8042
|
+
return /* @__PURE__ */ L.createElement(ct, pt({
|
|
8043
8043
|
className: "recharts-scatter-symbol",
|
|
8044
8044
|
key: "symbol-".concat(l?.cx, "-").concat(l?.cy, "-").concat(l?.size, "-").concat(u)
|
|
8045
|
-
},
|
|
8045
|
+
}, Ms(r.props, l, u), {
|
|
8046
8046
|
role: "img"
|
|
8047
|
-
}), /* @__PURE__ */
|
|
8047
|
+
}), /* @__PURE__ */ L.createElement(uc, pt({
|
|
8048
8048
|
option: g,
|
|
8049
8049
|
isActive: h,
|
|
8050
8050
|
key: "symbol-".concat(u)
|
|
@@ -8055,7 +8055,7 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8055
8055
|
key: "renderSymbolsWithAnimation",
|
|
8056
8056
|
value: function() {
|
|
8057
8057
|
var i = this, r = this.props, s = r.points, o = r.isAnimationActive, a = r.animationBegin, c = r.animationDuration, d = r.animationEasing, l = r.animationId, u = this.state.prevPoints;
|
|
8058
|
-
return /* @__PURE__ */
|
|
8058
|
+
return /* @__PURE__ */ L.createElement(Ls, {
|
|
8059
8059
|
begin: a,
|
|
8060
8060
|
duration: c,
|
|
8061
8061
|
isActive: o,
|
|
@@ -8085,7 +8085,7 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8085
8085
|
size: v(g)
|
|
8086
8086
|
});
|
|
8087
8087
|
});
|
|
8088
|
-
return /* @__PURE__ */
|
|
8088
|
+
return /* @__PURE__ */ L.createElement(ct, null, i.renderSymbolsStatically(C));
|
|
8089
8089
|
});
|
|
8090
8090
|
}
|
|
8091
8091
|
}, {
|
|
@@ -8100,10 +8100,10 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8100
8100
|
var i = this.props.isAnimationActive;
|
|
8101
8101
|
if (i && !this.state.isAnimationFinished)
|
|
8102
8102
|
return null;
|
|
8103
|
-
var r = this.props, s = r.points, o = r.xAxis, a = r.yAxis, c = r.children, d = Gn(c,
|
|
8103
|
+
var r = this.props, s = r.points, o = r.xAxis, a = r.yAxis, c = r.children, d = Gn(c, Is);
|
|
8104
8104
|
return d ? d.map(function(l, u) {
|
|
8105
8105
|
var h = l.props, g = h.direction, C = h.dataKey;
|
|
8106
|
-
return /* @__PURE__ */
|
|
8106
|
+
return /* @__PURE__ */ L.cloneElement(l, {
|
|
8107
8107
|
key: "".concat(g, "-").concat(C, "-").concat(s[u]),
|
|
8108
8108
|
data: s,
|
|
8109
8109
|
xAxis: o,
|
|
@@ -8132,7 +8132,7 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8132
8132
|
};
|
|
8133
8133
|
});
|
|
8134
8134
|
else if (o === "fitting") {
|
|
8135
|
-
var h =
|
|
8135
|
+
var h = Hs(r), g = h.xmin, C = h.xmax, b = h.a, x = h.b, D = function(R) {
|
|
8136
8136
|
return b * R + x;
|
|
8137
8137
|
};
|
|
8138
8138
|
l = [{
|
|
@@ -8149,9 +8149,9 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8149
8149
|
}, d), {}, {
|
|
8150
8150
|
points: l
|
|
8151
8151
|
});
|
|
8152
|
-
return /* @__PURE__ */
|
|
8152
|
+
return /* @__PURE__ */ L.isValidElement(s) ? u = /* @__PURE__ */ L.cloneElement(s, N) : Fs(s) ? u = s(N) : u = /* @__PURE__ */ L.createElement(Bs, pt({}, N, {
|
|
8153
8153
|
type: a
|
|
8154
|
-
})), /* @__PURE__ */
|
|
8154
|
+
})), /* @__PURE__ */ L.createElement(ct, {
|
|
8155
8155
|
className: "recharts-scatter-line",
|
|
8156
8156
|
key: "recharts-scatter-line"
|
|
8157
8157
|
}, u);
|
|
@@ -8162,18 +8162,18 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8162
8162
|
var i = this.props, r = i.hide, s = i.points, o = i.line, a = i.className, c = i.xAxis, d = i.yAxis, l = i.left, u = i.top, h = i.width, g = i.height, C = i.id, b = i.isAnimationActive;
|
|
8163
8163
|
if (r || !s || !s.length)
|
|
8164
8164
|
return null;
|
|
8165
|
-
var x = this.state.isAnimationFinished, D = ts("recharts-scatter", a), N = c && c.allowDataOverflow, w = d && d.allowDataOverflow, R = N || w, v =
|
|
8166
|
-
return /* @__PURE__ */
|
|
8165
|
+
var x = this.state.isAnimationFinished, D = ts("recharts-scatter", a), N = c && c.allowDataOverflow, w = d && d.allowDataOverflow, R = N || w, v = Ye(C) ? this.id : C;
|
|
8166
|
+
return /* @__PURE__ */ L.createElement(ct, {
|
|
8167
8167
|
className: D,
|
|
8168
8168
|
clipPath: R ? "url(#clipPath-".concat(v, ")") : null
|
|
8169
|
-
}, N || w ? /* @__PURE__ */
|
|
8169
|
+
}, N || w ? /* @__PURE__ */ L.createElement("defs", null, /* @__PURE__ */ L.createElement("clipPath", {
|
|
8170
8170
|
id: "clipPath-".concat(v)
|
|
8171
|
-
}, /* @__PURE__ */
|
|
8171
|
+
}, /* @__PURE__ */ L.createElement("rect", {
|
|
8172
8172
|
x: N ? l : l - h / 2,
|
|
8173
8173
|
y: w ? u : u - g / 2,
|
|
8174
8174
|
width: N ? h : h * 2,
|
|
8175
8175
|
height: w ? g : g * 2
|
|
8176
|
-
}))) : null, o && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */
|
|
8176
|
+
}))) : null, o && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ L.createElement(ct, {
|
|
8177
8177
|
key: "recharts-scatter-symbols"
|
|
8178
8178
|
}, this.renderSymbols()), (!b || x) && $n.renderCallByParent(this.props, s));
|
|
8179
8179
|
}
|
|
@@ -8189,7 +8189,7 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8189
8189
|
} : null;
|
|
8190
8190
|
}
|
|
8191
8191
|
}]);
|
|
8192
|
-
})(
|
|
8192
|
+
})(ks);
|
|
8193
8193
|
He(Dt, "displayName", "Scatter");
|
|
8194
8194
|
He(Dt, "defaultProps", {
|
|
8195
8195
|
xAxisId: 0,
|
|
@@ -8201,22 +8201,22 @@ He(Dt, "defaultProps", {
|
|
|
8201
8201
|
data: [],
|
|
8202
8202
|
shape: "circle",
|
|
8203
8203
|
hide: !1,
|
|
8204
|
-
isAnimationActive: !
|
|
8204
|
+
isAnimationActive: !Gs.isSsr,
|
|
8205
8205
|
animationBegin: 0,
|
|
8206
8206
|
animationDuration: 400,
|
|
8207
8207
|
animationEasing: "linear"
|
|
8208
8208
|
});
|
|
8209
8209
|
He(Dt, "getComposedData", function(n) {
|
|
8210
|
-
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, c = n.offset, d = r.props.tooltipType, l = Gn(r.props.children,
|
|
8211
|
-
var v = Pt(w, u), y = Pt(w, h), m = !
|
|
8212
|
-
name:
|
|
8210
|
+
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, c = n.offset, d = r.props.tooltipType, l = Gn(r.props.children, $s), u = Ye(e.dataKey) ? r.props.dataKey : e.dataKey, h = Ye(t.dataKey) ? r.props.dataKey : t.dataKey, g = i && i.dataKey, C = i ? i.range : ai.defaultProps.range, b = C && C[0], x = e.scale.bandwidth ? e.scale.bandwidth() : 0, D = t.scale.bandwidth ? t.scale.bandwidth() : 0, N = s.map(function(w, R) {
|
|
8211
|
+
var v = Pt(w, u), y = Pt(w, h), m = !Ye(g) && Pt(w, g) || "-", E = [{
|
|
8212
|
+
name: Ye(e.dataKey) ? r.props.name : e.name || e.dataKey,
|
|
8213
8213
|
unit: e.unit || "",
|
|
8214
8214
|
value: v,
|
|
8215
8215
|
payload: w,
|
|
8216
8216
|
dataKey: u,
|
|
8217
8217
|
type: d
|
|
8218
8218
|
}, {
|
|
8219
|
-
name:
|
|
8219
|
+
name: Ye(t.dataKey) ? r.props.name : t.name || t.dataKey,
|
|
8220
8220
|
unit: t.unit || "",
|
|
8221
8221
|
value: y,
|
|
8222
8222
|
payload: w,
|
|
@@ -8231,7 +8231,7 @@ He(Dt, "getComposedData", function(n) {
|
|
|
8231
8231
|
dataKey: g,
|
|
8232
8232
|
type: d
|
|
8233
8233
|
});
|
|
8234
|
-
var
|
|
8234
|
+
var z = en({
|
|
8235
8235
|
axis: e,
|
|
8236
8236
|
ticks: o,
|
|
8237
8237
|
bandSize: x,
|
|
@@ -8247,9 +8247,9 @@ He(Dt, "getComposedData", function(n) {
|
|
|
8247
8247
|
dataKey: h
|
|
8248
8248
|
}), _ = m !== "-" ? i.scale(m) : b, S = Math.sqrt(Math.max(_, 0) / Math.PI);
|
|
8249
8249
|
return ce(ce({}, w), {}, {
|
|
8250
|
-
cx:
|
|
8250
|
+
cx: z,
|
|
8251
8251
|
cy: A,
|
|
8252
|
-
x:
|
|
8252
|
+
x: z - S,
|
|
8253
8253
|
y: A - S,
|
|
8254
8254
|
xAxis: e,
|
|
8255
8255
|
yAxis: t,
|
|
@@ -8264,7 +8264,7 @@ He(Dt, "getComposedData", function(n) {
|
|
|
8264
8264
|
},
|
|
8265
8265
|
tooltipPayload: E,
|
|
8266
8266
|
tooltipPosition: {
|
|
8267
|
-
x:
|
|
8267
|
+
x: z,
|
|
8268
8268
|
y: A
|
|
8269
8269
|
},
|
|
8270
8270
|
payload: w
|
|
@@ -8274,9 +8274,9 @@ He(Dt, "getComposedData", function(n) {
|
|
|
8274
8274
|
points: N
|
|
8275
8275
|
}, c);
|
|
8276
8276
|
});
|
|
8277
|
-
var
|
|
8277
|
+
var bc = js({
|
|
8278
8278
|
chartName: "ComposedChart",
|
|
8279
|
-
GraphicalChild: [jn,
|
|
8279
|
+
GraphicalChild: [jn, Us, Un, Dt],
|
|
8280
8280
|
axisComponents: [{
|
|
8281
8281
|
axisType: "xAxis",
|
|
8282
8282
|
AxisComp: Vn
|
|
@@ -8287,9 +8287,9 @@ var pc = Ws({
|
|
|
8287
8287
|
axisType: "zAxis",
|
|
8288
8288
|
AxisComp: ai
|
|
8289
8289
|
}],
|
|
8290
|
-
formatAxisMap:
|
|
8290
|
+
formatAxisMap: Vs
|
|
8291
8291
|
});
|
|
8292
|
-
const
|
|
8292
|
+
const xc = (n) => {
|
|
8293
8293
|
const e = (t) => {
|
|
8294
8294
|
const { cx: i, cy: r, fill: s, payload: o } = t, a = () => {
|
|
8295
8295
|
if (!o) return "-";
|
|
@@ -8313,15 +8313,15 @@ const mc = (n) => {
|
|
|
8313
8313
|
});
|
|
8314
8314
|
};
|
|
8315
8315
|
return e.displayName = `Scatter-${n}`, e;
|
|
8316
|
-
},
|
|
8316
|
+
}, wc = ({ dataConfig: n, data: e, xAxis: t, yAxis: i = {
|
|
8317
8317
|
hide: !0
|
|
8318
8318
|
}, label: r = !1, hideTooltip: s = !1, hideGrid: o = !1, aspect: a, legend: c, showValueUnderLabel: d = !1, bar: l, line: u, scatter: h, onClick: g }, C) => {
|
|
8319
|
-
const b =
|
|
8320
|
-
return f(
|
|
8319
|
+
const b = Ks(e), x = l?.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], D = u?.categories ? Array.isArray(u.categories) ? u.categories : [u.categories] : [], N = h?.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], w = [...x, ...D, ...N], R = Math.max(...b.flatMap((m) => w.map((E) => Xs(i?.tickFormatter ? i.tickFormatter(`${m[E]}`) : `${m[E]}`)))), v = [l, u, h].filter((m) => m?.axisPosition === "left"), y = [l, u, h].filter((m) => m?.axisPosition === "right");
|
|
8320
|
+
return f(Ys, {
|
|
8321
8321
|
config: n,
|
|
8322
8322
|
ref: C,
|
|
8323
8323
|
aspect: a,
|
|
8324
|
-
children:
|
|
8324
|
+
children: T(bc, {
|
|
8325
8325
|
accessibilityLayer: !0,
|
|
8326
8326
|
data: b,
|
|
8327
8327
|
margin: {
|
|
@@ -8338,17 +8338,17 @@ const mc = (n) => {
|
|
|
8338
8338
|
label: m.activeLabel,
|
|
8339
8339
|
values: {}
|
|
8340
8340
|
};
|
|
8341
|
-
for (const
|
|
8342
|
-
E.values[
|
|
8341
|
+
for (const z of m.activePayload)
|
|
8342
|
+
E.values[z.name] = z.value;
|
|
8343
8343
|
g(E);
|
|
8344
8344
|
},
|
|
8345
|
-
children: [!s && f(
|
|
8346
|
-
...
|
|
8347
|
-
content: f(
|
|
8345
|
+
children: [!s && f(qs, {
|
|
8346
|
+
...Js(),
|
|
8347
|
+
content: f(Zs, {
|
|
8348
8348
|
yAxisFormatter: i.tickFormatter
|
|
8349
8349
|
})
|
|
8350
|
-
}), !o && f(
|
|
8351
|
-
...
|
|
8350
|
+
}), !o && f(Qs, {
|
|
8351
|
+
...eo()
|
|
8352
8352
|
}), v.length > 0 && f(xi, {
|
|
8353
8353
|
...tn(i),
|
|
8354
8354
|
tick: !0,
|
|
@@ -8372,12 +8372,12 @@ const mc = (n) => {
|
|
|
8372
8372
|
position: "insideRight"
|
|
8373
8373
|
} : void 0
|
|
8374
8374
|
}), f(Vn, {
|
|
8375
|
-
...
|
|
8375
|
+
...to(t),
|
|
8376
8376
|
hide: t?.hide,
|
|
8377
8377
|
tick: d ? (m) => {
|
|
8378
|
-
const { x: E, y:
|
|
8379
|
-
return
|
|
8380
|
-
transform: `translate(${E},${
|
|
8378
|
+
const { x: E, y: z, payload: A } = m, _ = e.find((B) => B.label === A.value)?.values || "", S = Object.keys(_).length === 1 ? Object.values(_)?.[0] : void 0, O = S !== void 0 && i.tickFormatter ? i.tickFormatter(`${S}`) : S.toLocaleString();
|
|
8379
|
+
return T("g", {
|
|
8380
|
+
transform: `translate(${E},${z})`,
|
|
8381
8381
|
children: [f("text", {
|
|
8382
8382
|
x: 0,
|
|
8383
8383
|
y: 0,
|
|
@@ -8398,7 +8398,7 @@ const mc = (n) => {
|
|
|
8398
8398
|
}), x.map((m, E) => f(Un, {
|
|
8399
8399
|
isAnimationActive: !1,
|
|
8400
8400
|
dataKey: String(m),
|
|
8401
|
-
fill: n[m].color ?
|
|
8401
|
+
fill: n[m].color ? dt(n[m].color) : hi(E),
|
|
8402
8402
|
radius: 4,
|
|
8403
8403
|
maxBarSize: 32,
|
|
8404
8404
|
children: r && f($n, {
|
|
@@ -8410,20 +8410,20 @@ const mc = (n) => {
|
|
|
8410
8410
|
}, `bar-${String(m)}`)), D.map((m, E) => f(jn, {
|
|
8411
8411
|
type: u?.lineType ?? "natural",
|
|
8412
8412
|
dataKey: String(m),
|
|
8413
|
-
stroke: n[m].color ?
|
|
8413
|
+
stroke: n[m].color ? dt(n[m].color) : hi(x.length + E),
|
|
8414
8414
|
strokeWidth: 2,
|
|
8415
8415
|
dot: u?.dot ?? !1,
|
|
8416
8416
|
isAnimationActive: !1,
|
|
8417
8417
|
yAxisId: u?.axisPosition === "right" ? "right" : void 0
|
|
8418
8418
|
}, `line-${String(m)}`)), N.map((m, E) => f(Dt, {
|
|
8419
8419
|
dataKey: String(m),
|
|
8420
|
-
fill: n[m].color ?
|
|
8420
|
+
fill: n[m].color ? dt(n[m].color) : hi(x.length + D.length + E),
|
|
8421
8421
|
r: 4,
|
|
8422
8422
|
isAnimationActive: !1,
|
|
8423
8423
|
yAxisId: h?.axisPosition === "right" ? "right" : void 0,
|
|
8424
|
-
shape:
|
|
8425
|
-
}, `scatter-${String(m)}`)), c && f(
|
|
8426
|
-
content: f(
|
|
8424
|
+
shape: xc(String(m))
|
|
8425
|
+
}, `scatter-${String(m)}`)), c && f(io, {
|
|
8426
|
+
content: f(no, {
|
|
8427
8427
|
nameKey: "label"
|
|
8428
8428
|
}),
|
|
8429
8429
|
align: "center",
|
|
@@ -8433,14 +8433,14 @@ const mc = (n) => {
|
|
|
8433
8433
|
})]
|
|
8434
8434
|
})
|
|
8435
8435
|
});
|
|
8436
|
-
},
|
|
8437
|
-
const s = i ?
|
|
8438
|
-
return
|
|
8436
|
+
}, Cc = Kn(wc), _c = ({ value: n, max: e = 100, label: t, color: i }, r) => {
|
|
8437
|
+
const s = i ? dt(i) : dt("categorical-1"), o = n / e * 100;
|
|
8438
|
+
return T("div", {
|
|
8439
8439
|
className: "flex items-center space-x-2",
|
|
8440
8440
|
"aria-live": "polite",
|
|
8441
8441
|
children: [f("div", {
|
|
8442
8442
|
className: "flex-grow",
|
|
8443
|
-
children: f(
|
|
8443
|
+
children: f(ro, {
|
|
8444
8444
|
color: s,
|
|
8445
8445
|
value: o,
|
|
8446
8446
|
className: "w-full",
|
|
@@ -8454,79 +8454,79 @@ const mc = (n) => {
|
|
|
8454
8454
|
children: t
|
|
8455
8455
|
})]
|
|
8456
8456
|
});
|
|
8457
|
-
},
|
|
8457
|
+
}, Ec = Kn(_c), sd = ve(
|
|
8458
8458
|
{
|
|
8459
8459
|
name: "AreaChart",
|
|
8460
8460
|
type: "info"
|
|
8461
8461
|
},
|
|
8462
|
-
|
|
8463
|
-
),
|
|
8462
|
+
so
|
|
8463
|
+
), od = ve(
|
|
8464
8464
|
{
|
|
8465
8465
|
name: "BarChart",
|
|
8466
8466
|
type: "info"
|
|
8467
8467
|
},
|
|
8468
|
-
|
|
8469
|
-
),
|
|
8468
|
+
oo
|
|
8469
|
+
), ad = ve(
|
|
8470
8470
|
{
|
|
8471
8471
|
name: "CategoryBarChart",
|
|
8472
8472
|
type: "info"
|
|
8473
8473
|
},
|
|
8474
|
-
|
|
8475
|
-
),
|
|
8474
|
+
ao
|
|
8475
|
+
), ld = ve(
|
|
8476
8476
|
{
|
|
8477
8477
|
name: "LineChart",
|
|
8478
8478
|
type: "info"
|
|
8479
8479
|
},
|
|
8480
|
-
|
|
8481
|
-
),
|
|
8480
|
+
lo
|
|
8481
|
+
), cd = ve(
|
|
8482
8482
|
{
|
|
8483
8483
|
name: "PieChart",
|
|
8484
8484
|
type: "info"
|
|
8485
8485
|
},
|
|
8486
|
-
|
|
8487
|
-
),
|
|
8486
|
+
co
|
|
8487
|
+
), dd = ve(
|
|
8488
8488
|
{
|
|
8489
8489
|
name: "VerticalBarChart",
|
|
8490
8490
|
type: "info"
|
|
8491
8491
|
},
|
|
8492
|
-
|
|
8493
|
-
),
|
|
8492
|
+
uo
|
|
8493
|
+
), ud = ve(
|
|
8494
8494
|
{
|
|
8495
8495
|
name: "ProgressBarChart",
|
|
8496
8496
|
type: "info"
|
|
8497
8497
|
},
|
|
8498
|
-
|
|
8499
|
-
),
|
|
8498
|
+
Ec
|
|
8499
|
+
), hd = ve(
|
|
8500
8500
|
{
|
|
8501
8501
|
name: "ComboChart",
|
|
8502
8502
|
type: "info"
|
|
8503
8503
|
},
|
|
8504
|
-
|
|
8505
|
-
),
|
|
8504
|
+
Cc
|
|
8505
|
+
), Dc = (n) => typeof n == "boolean" || !n ? {
|
|
8506
8506
|
show: !!n,
|
|
8507
8507
|
invertStatus: !1
|
|
8508
8508
|
} : {
|
|
8509
8509
|
show: n.show ?? !0,
|
|
8510
8510
|
invertStatus: n.invertStatus ?? !1
|
|
8511
8511
|
}, Ir = ({ label: n, ...e }) => {
|
|
8512
|
-
const t =
|
|
8512
|
+
const t = ho(), i = t(e.value, {
|
|
8513
8513
|
formatterOptions: {
|
|
8514
8514
|
decimalPlaces: 2
|
|
8515
8515
|
}
|
|
8516
|
-
}), r =
|
|
8516
|
+
}), r = Dc(e.trend), s = t(e.comparison), o = fo(i.numericValue, i.formatterOptions), a = nn(s.numericValue), c = nn(i.numericValue), d = H(() => {
|
|
8517
8517
|
if (!(!a || !r.show) && !(!a || !c))
|
|
8518
8518
|
return (c - a) / a * 100;
|
|
8519
8519
|
}, [c, a, r.show]);
|
|
8520
|
-
return
|
|
8520
|
+
return T("div", {
|
|
8521
8521
|
className: "flex flex-col gap-2",
|
|
8522
8522
|
children: [n && f("div", {
|
|
8523
8523
|
children: n
|
|
8524
|
-
}),
|
|
8524
|
+
}), T("div", {
|
|
8525
8525
|
className: "flex flex-row flex-wrap items-center gap-2",
|
|
8526
8526
|
children: [f("span", {
|
|
8527
8527
|
className: "font-bold text-2xl",
|
|
8528
8528
|
children: o
|
|
8529
|
-
}), a !== void 0 && f(
|
|
8529
|
+
}), a !== void 0 && f(go, {
|
|
8530
8530
|
percentage: d,
|
|
8531
8531
|
amount: s,
|
|
8532
8532
|
invertStatus: r.invertStatus,
|
|
@@ -8534,11 +8534,11 @@ const mc = (n) => {
|
|
|
8534
8534
|
})]
|
|
8535
8535
|
})]
|
|
8536
8536
|
});
|
|
8537
|
-
},
|
|
8537
|
+
}, Rc = () => T("div", {
|
|
8538
8538
|
className: "relative flex h-full w-full cursor-progress flex-col gap-2",
|
|
8539
8539
|
children: [f(we, {
|
|
8540
8540
|
className: "h-3 w-full max-w-16 rounded-md"
|
|
8541
|
-
}),
|
|
8541
|
+
}), T("div", {
|
|
8542
8542
|
className: "flex flex-row flex-wrap items-end gap-2",
|
|
8543
8543
|
children: [f(we, {
|
|
8544
8544
|
className: "h-8 w-full max-w-36 rounded-sm"
|
|
@@ -8548,9 +8548,9 @@ const mc = (n) => {
|
|
|
8548
8548
|
})]
|
|
8549
8549
|
});
|
|
8550
8550
|
Ir.displayName = "F0BigNumber";
|
|
8551
|
-
const
|
|
8551
|
+
const Sc = Rn(Ir, Rc), fd = fe("F0BigNumber", Sc), gd = is.filter(
|
|
8552
8552
|
(n) => n !== "ai"
|
|
8553
|
-
),
|
|
8553
|
+
), pd = An, md = ["default", "outline", "neutral"], vd = An, yd = ["sm", "md", "lg"], bd = ["compact", "expanded"], xd = ns, wd = [
|
|
8554
8554
|
"viridian",
|
|
8555
8555
|
"malibu",
|
|
8556
8556
|
"yellow",
|
|
@@ -8563,10 +8563,10 @@ const _c = Rn(Ir, Cc), ad = fe("F0BigNumber", _c), ld = is.filter(
|
|
|
8563
8563
|
"indigo",
|
|
8564
8564
|
"camel"
|
|
8565
8565
|
], Ri = ({ count: n, list: e }) => {
|
|
8566
|
-
const [t, i] =
|
|
8566
|
+
const [t, i] = F(!1), r = f(Lt, {
|
|
8567
8567
|
label: `+${n}`
|
|
8568
8568
|
});
|
|
8569
|
-
return e?.length ?
|
|
8569
|
+
return e?.length ? T(On, {
|
|
8570
8570
|
open: t,
|
|
8571
8571
|
onOpenChange: i,
|
|
8572
8572
|
children: [f(kn, {
|
|
@@ -8578,7 +8578,7 @@ const _c = Rn(Ir, Cc), ad = fe("F0BigNumber", _c), ld = is.filter(
|
|
|
8578
8578
|
}), f(zn, {
|
|
8579
8579
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
8580
8580
|
align: "end",
|
|
8581
|
-
children:
|
|
8581
|
+
children: T(Pn, {
|
|
8582
8582
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
8583
8583
|
children: [e.map((s, o) => f("div", {
|
|
8584
8584
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
@@ -8611,7 +8611,7 @@ const Hr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8611
8611
|
className: "flex-1"
|
|
8612
8612
|
});
|
|
8613
8613
|
const r = n.slice(0, e), s = n.slice(e), o = t ?? n.length - e, a = o > 0;
|
|
8614
|
-
return
|
|
8614
|
+
return T("div", {
|
|
8615
8615
|
className: "flex items-center gap-2",
|
|
8616
8616
|
children: [r.map((c, d) => f(Lt, {
|
|
8617
8617
|
...c
|
|
@@ -8622,9 +8622,89 @@ const Hr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8622
8622
|
});
|
|
8623
8623
|
};
|
|
8624
8624
|
Hr.displayName = "F0ChipList";
|
|
8625
|
-
const
|
|
8626
|
-
|
|
8627
|
-
|
|
8625
|
+
const Cd = fe("F0ChipList", Hr), _d = ss, Nc = Ge({
|
|
8626
|
+
base: "w-full rounded-md p-2 pr-3 text-f1-foreground",
|
|
8627
|
+
variants: {
|
|
8628
|
+
variant: {
|
|
8629
|
+
info: "bg-f1-background-info",
|
|
8630
|
+
warning: "bg-f1-background-warning",
|
|
8631
|
+
critical: "bg-f1-background-critical",
|
|
8632
|
+
neutral: "bg-f1-background-tertiary",
|
|
8633
|
+
positive: "bg-f1-background-positive"
|
|
8634
|
+
}
|
|
8635
|
+
},
|
|
8636
|
+
defaultVariants: {
|
|
8637
|
+
variant: "neutral"
|
|
8638
|
+
}
|
|
8639
|
+
}), Ac = Ge({
|
|
8640
|
+
base: "font-medium",
|
|
8641
|
+
variants: {
|
|
8642
|
+
variant: {
|
|
8643
|
+
info: "text-f1-foreground-info",
|
|
8644
|
+
warning: "text-f1-foreground-warning",
|
|
8645
|
+
critical: "text-f1-foreground-critical",
|
|
8646
|
+
neutral: "text-f1-foreground",
|
|
8647
|
+
positive: "text-f1-foreground-positive"
|
|
8648
|
+
}
|
|
8649
|
+
},
|
|
8650
|
+
defaultVariants: {
|
|
8651
|
+
variant: "info"
|
|
8652
|
+
}
|
|
8653
|
+
}), Ed = ({ title: n, description: e, action: t, link: i, icon: r, variant: s = "neutral" }) => {
|
|
8654
|
+
const o = M(null);
|
|
8655
|
+
return f("div", {
|
|
8656
|
+
ref: o,
|
|
8657
|
+
className: "@container",
|
|
8658
|
+
children: f("div", {
|
|
8659
|
+
className: Nc({
|
|
8660
|
+
variant: s
|
|
8661
|
+
}),
|
|
8662
|
+
children: T("div", {
|
|
8663
|
+
className: G("flex flex-col items-start gap-3 @sm:flex-row @sm:items-center @sm:justify-between"),
|
|
8664
|
+
children: [T("div", {
|
|
8665
|
+
className: "flex flex-row gap-2",
|
|
8666
|
+
children: [f("div", {
|
|
8667
|
+
className: "h-6 w-6 flex-shrink-0",
|
|
8668
|
+
children: s === "neutral" ? f(os, {
|
|
8669
|
+
icon: r || as,
|
|
8670
|
+
size: "sm"
|
|
8671
|
+
}) : f(po, {
|
|
8672
|
+
type: s,
|
|
8673
|
+
size: "sm"
|
|
8674
|
+
})
|
|
8675
|
+
}), T("div", {
|
|
8676
|
+
className: "flex flex-col gap-0.5",
|
|
8677
|
+
children: [f("p", {
|
|
8678
|
+
className: Ac({
|
|
8679
|
+
variant: s
|
|
8680
|
+
}),
|
|
8681
|
+
children: n
|
|
8682
|
+
}), f("p", {
|
|
8683
|
+
className: "text-base text-f1-foreground-secondary",
|
|
8684
|
+
children: e
|
|
8685
|
+
})]
|
|
8686
|
+
})]
|
|
8687
|
+
}), (t || i) && T("div", {
|
|
8688
|
+
className: G("flex flex-shrink-0 flex-row items-center gap-3 pl-8 @sm:pl-0"),
|
|
8689
|
+
children: [i && f(ls, {
|
|
8690
|
+
href: i.href,
|
|
8691
|
+
target: "_blank",
|
|
8692
|
+
variant: "link",
|
|
8693
|
+
size: "sm",
|
|
8694
|
+
children: i.label
|
|
8695
|
+
}), t && f(We, {
|
|
8696
|
+
label: t.label,
|
|
8697
|
+
variant: "outline",
|
|
8698
|
+
onClick: t.onClick,
|
|
8699
|
+
size: "sm"
|
|
8700
|
+
})]
|
|
8701
|
+
})]
|
|
8702
|
+
})
|
|
8703
|
+
})
|
|
8704
|
+
});
|
|
8705
|
+
}, Oc = 388;
|
|
8706
|
+
function kc({ filters: n, value: e, onChange: t, height: i, width: r = 600, className: s, showApplyButton: o = !0, applyButtonLabel: a }) {
|
|
8707
|
+
const c = Sn(), [d, l] = F(null), [u, h] = F(e);
|
|
8628
8708
|
I(() => {
|
|
8629
8709
|
h(e);
|
|
8630
8710
|
}, [e]), I(() => {
|
|
@@ -8652,14 +8732,14 @@ function Dc({ filters: n, value: e, onChange: t, height: i, width: r = 600, clas
|
|
|
8652
8732
|
t(u);
|
|
8653
8733
|
}, b = H(() => i || Object.entries(n).reduce((D, [N, w]) => {
|
|
8654
8734
|
const R = Ji(w.type);
|
|
8655
|
-
return Math.max(D, R?.formHeight ||
|
|
8735
|
+
return Math.max(D, R?.formHeight || Oc);
|
|
8656
8736
|
}, 0), [n, i]);
|
|
8657
8737
|
return !n || Object.keys(n).length === 0 ? null : f("div", {
|
|
8658
|
-
className:
|
|
8738
|
+
className: G("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", s),
|
|
8659
8739
|
style: {
|
|
8660
8740
|
maxWidth: r
|
|
8661
8741
|
},
|
|
8662
|
-
children: f(
|
|
8742
|
+
children: f(cs, {
|
|
8663
8743
|
filters: n,
|
|
8664
8744
|
tempFilters: u,
|
|
8665
8745
|
selectedFilterKey: d,
|
|
@@ -8672,17 +8752,17 @@ function Dc({ filters: n, value: e, onChange: t, height: i, width: r = 600, clas
|
|
|
8672
8752
|
})
|
|
8673
8753
|
});
|
|
8674
8754
|
}
|
|
8675
|
-
|
|
8676
|
-
const
|
|
8755
|
+
kc.displayName = "F0FilterPickerContent";
|
|
8756
|
+
const Tc = oe((n, e) => f(Ti, {
|
|
8677
8757
|
ref: e,
|
|
8678
8758
|
variant: "heading",
|
|
8679
8759
|
...n
|
|
8680
8760
|
}));
|
|
8681
|
-
|
|
8682
|
-
const
|
|
8761
|
+
Tc.displayName = "F0Heading";
|
|
8762
|
+
const Dd = fe(
|
|
8683
8763
|
"F0GridStack",
|
|
8684
8764
|
ki
|
|
8685
|
-
), yi = 16,
|
|
8765
|
+
), yi = 16, zc = Ge({
|
|
8686
8766
|
base: "h-0.5 rounded-full bg-f1-foreground cursor-pointer",
|
|
8687
8767
|
variants: {
|
|
8688
8768
|
depth: {
|
|
@@ -8715,13 +8795,13 @@ const yd = fe(
|
|
|
8715
8795
|
active: !0
|
|
8716
8796
|
}
|
|
8717
8797
|
});
|
|
8718
|
-
function
|
|
8798
|
+
function Fr(n, e = 0) {
|
|
8719
8799
|
return n.flatMap((t) => [{
|
|
8720
8800
|
id: t.id,
|
|
8721
8801
|
depth: Math.min(e, 3)
|
|
8722
|
-
}, ...t.children ?
|
|
8802
|
+
}, ...t.children ? Fr(t.children, e + 1) : []]);
|
|
8723
8803
|
}
|
|
8724
|
-
function
|
|
8804
|
+
function Pc(n, e) {
|
|
8725
8805
|
const t = n.length;
|
|
8726
8806
|
if (t <= yi) return n;
|
|
8727
8807
|
const i = t / (yi - 1), r = new Set(Array.from({
|
|
@@ -8736,12 +8816,12 @@ function Nc(n, e) {
|
|
|
8736
8816
|
}
|
|
8737
8817
|
return [...r].sort((s, o) => s - o).map((s) => n[s]);
|
|
8738
8818
|
}
|
|
8739
|
-
function
|
|
8740
|
-
const s = H(() =>
|
|
8819
|
+
function Mc({ items: n, activeItem: e, className: t, align: i = "left", variant: r = "dark" }) {
|
|
8820
|
+
const s = H(() => Pc(Fr(n), e), [n, e]);
|
|
8741
8821
|
return f("div", {
|
|
8742
|
-
className:
|
|
8822
|
+
className: G("flex flex-col justify-center gap-2 py-3", i === "right" ? "items-end" : "items-start", t),
|
|
8743
8823
|
children: s.map((o) => f("div", {
|
|
8744
|
-
className:
|
|
8824
|
+
className: zc({
|
|
8745
8825
|
depth: o.depth,
|
|
8746
8826
|
variant: r,
|
|
8747
8827
|
active: o.id === e
|
|
@@ -8749,7 +8829,7 @@ function Ac({ items: n, activeItem: e, className: t, align: i = "left", variant:
|
|
|
8749
8829
|
}, o.id))
|
|
8750
8830
|
});
|
|
8751
8831
|
}
|
|
8752
|
-
const
|
|
8832
|
+
const Lc = 300, Ic = 0, Hc = Ge({
|
|
8753
8833
|
base: "w-auto overflow-y-auto rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-0 shadow-lg",
|
|
8754
8834
|
variants: {
|
|
8755
8835
|
size: {
|
|
@@ -8762,8 +8842,8 @@ const Oc = 300, kc = 0, Tc = xt({
|
|
|
8762
8842
|
size: "md"
|
|
8763
8843
|
}
|
|
8764
8844
|
});
|
|
8765
|
-
function
|
|
8766
|
-
const [d, l] =
|
|
8845
|
+
function Fc({ title: n, items: e, className: t, activeItem: i, collapsible: r = !1, showChildrenCounter: s = !1, barsAlign: o = "left", size: a = "md", variant: c = "light" }) {
|
|
8846
|
+
const [d, l] = F(!1), u = M(!1), h = (C) => {
|
|
8767
8847
|
C && !d && (u.current = !0), l(C);
|
|
8768
8848
|
}, g = U((C) => {
|
|
8769
8849
|
!C || !u.current || (u.current = !1, requestAnimationFrame(() => {
|
|
@@ -8773,32 +8853,32 @@ function zc({ title: n, items: e, className: t, activeItem: i, collapsible: r =
|
|
|
8773
8853
|
});
|
|
8774
8854
|
}));
|
|
8775
8855
|
}, []);
|
|
8776
|
-
return
|
|
8856
|
+
return T(ds, {
|
|
8777
8857
|
open: d,
|
|
8778
8858
|
onOpenChange: h,
|
|
8779
|
-
openDelay:
|
|
8780
|
-
closeDelay:
|
|
8781
|
-
children: [f(
|
|
8859
|
+
openDelay: Ic,
|
|
8860
|
+
closeDelay: Lc,
|
|
8861
|
+
children: [f(us, {
|
|
8782
8862
|
asChild: !0,
|
|
8783
8863
|
children: f("button", {
|
|
8784
|
-
className:
|
|
8864
|
+
className: G(Tn(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", t),
|
|
8785
8865
|
"aria-label": n ?? "Menu",
|
|
8786
|
-
children: f(
|
|
8866
|
+
children: f(Mc, {
|
|
8787
8867
|
items: e,
|
|
8788
8868
|
activeItem: i,
|
|
8789
8869
|
align: o,
|
|
8790
8870
|
variant: c
|
|
8791
8871
|
})
|
|
8792
8872
|
})
|
|
8793
|
-
}), f(
|
|
8873
|
+
}), f(hs, {
|
|
8794
8874
|
ref: g,
|
|
8795
8875
|
side: o === "left" ? "right" : "left",
|
|
8796
8876
|
align: "center",
|
|
8797
8877
|
sideOffset: -28,
|
|
8798
|
-
className:
|
|
8878
|
+
className: G(Hc({
|
|
8799
8879
|
size: a
|
|
8800
8880
|
}), !n && "pt-2", "scrollbar-macos"),
|
|
8801
|
-
children: f(
|
|
8881
|
+
children: f(mo, {
|
|
8802
8882
|
title: n,
|
|
8803
8883
|
items: e,
|
|
8804
8884
|
activeItem: i,
|
|
@@ -8809,26 +8889,26 @@ function zc({ title: n, items: e, className: t, activeItem: i, collapsible: r =
|
|
|
8809
8889
|
})]
|
|
8810
8890
|
});
|
|
8811
8891
|
}
|
|
8812
|
-
const
|
|
8892
|
+
const Rd = fe(
|
|
8813
8893
|
"F0TableOfContentPopover",
|
|
8814
|
-
|
|
8815
|
-
),
|
|
8894
|
+
Fc
|
|
8895
|
+
), Bc = ({ benefits: n }) => f("div", {
|
|
8816
8896
|
className: "flex flex-col gap-2",
|
|
8817
|
-
children: n.map((e, t) => f(
|
|
8897
|
+
children: n.map((e, t) => f(Wc, {
|
|
8818
8898
|
text: e
|
|
8819
8899
|
}, t))
|
|
8820
|
-
}),
|
|
8900
|
+
}), Wc = ({ text: n }) => T("div", {
|
|
8821
8901
|
className: "flex flex-row items-start gap-2",
|
|
8822
8902
|
children: [f(Nn, {
|
|
8823
|
-
icon:
|
|
8903
|
+
icon: gs,
|
|
8824
8904
|
size: "md",
|
|
8825
8905
|
className: "text-f1-icon-positive"
|
|
8826
8906
|
}), f("span", {
|
|
8827
8907
|
children: n
|
|
8828
8908
|
})]
|
|
8829
|
-
}),
|
|
8909
|
+
}), Br = oe(({ title: n, image: e, benefits: t, actions: i, withShadow: r = !0, module: s, moduleName: o, tag: a, promoTag: c }, d) => T("div", {
|
|
8830
8910
|
ref: d,
|
|
8831
|
-
className:
|
|
8911
|
+
className: G("bg-white flex flex-row rounded-xl border border-f1-border-secondary", r && "shadow-md"),
|
|
8832
8912
|
children: [f("div", {
|
|
8833
8913
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
8834
8914
|
children: f("img", {
|
|
@@ -8836,13 +8916,13 @@ const bd = fe(
|
|
|
8836
8916
|
alt: "",
|
|
8837
8917
|
className: "h-full w-full rounded-lg object-cover"
|
|
8838
8918
|
})
|
|
8839
|
-
}),
|
|
8919
|
+
}), T("div", {
|
|
8840
8920
|
className: "flex flex-col justify-center gap-8 px-8 py-5",
|
|
8841
|
-
children: [
|
|
8921
|
+
children: [T("div", {
|
|
8842
8922
|
className: "flex flex-col gap-5",
|
|
8843
|
-
children: [
|
|
8923
|
+
children: [T("div", {
|
|
8844
8924
|
className: "flex flex-col gap-2",
|
|
8845
|
-
children: [
|
|
8925
|
+
children: [T("div", {
|
|
8846
8926
|
className: "flex flex-row items-center gap-2",
|
|
8847
8927
|
children: [s && f(Ln, {
|
|
8848
8928
|
module: s
|
|
@@ -8850,12 +8930,12 @@ const bd = fe(
|
|
|
8850
8930
|
className: "text-base font-medium text-f1-foreground",
|
|
8851
8931
|
children: o
|
|
8852
8932
|
})]
|
|
8853
|
-
}), (a || c) &&
|
|
8933
|
+
}), (a || c) && T("div", {
|
|
8854
8934
|
className: "flex justify-start gap-2",
|
|
8855
|
-
children: [a && f(
|
|
8935
|
+
children: [a && f(fs, {
|
|
8856
8936
|
icon: a.icon,
|
|
8857
8937
|
text: a.label
|
|
8858
|
-
}), c && f(
|
|
8938
|
+
}), c && f(vo, {
|
|
8859
8939
|
variant: c.variant || "positive",
|
|
8860
8940
|
text: c.label
|
|
8861
8941
|
})]
|
|
@@ -8863,7 +8943,7 @@ const bd = fe(
|
|
|
8863
8943
|
className: "font-bold text-xl text-f1-foreground",
|
|
8864
8944
|
children: n
|
|
8865
8945
|
})]
|
|
8866
|
-
}), f(
|
|
8946
|
+
}), f(Bc, {
|
|
8867
8947
|
benefits: t
|
|
8868
8948
|
})]
|
|
8869
8949
|
}), i && f("div", {
|
|
@@ -8872,23 +8952,23 @@ const bd = fe(
|
|
|
8872
8952
|
})]
|
|
8873
8953
|
})]
|
|
8874
8954
|
}));
|
|
8875
|
-
|
|
8876
|
-
function
|
|
8877
|
-
const [o, a] =
|
|
8955
|
+
Br.displayName = "ProductBlankslate";
|
|
8956
|
+
function Gc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalContainer: s }) {
|
|
8957
|
+
const [o, a] = F(n);
|
|
8878
8958
|
return I(() => {
|
|
8879
8959
|
a(n);
|
|
8880
|
-
}, [n]), f(
|
|
8960
|
+
}, [n]), f(ps, {
|
|
8881
8961
|
open: o,
|
|
8882
8962
|
onOpenChange: (d) => {
|
|
8883
8963
|
a(d), d || e();
|
|
8884
8964
|
},
|
|
8885
8965
|
modal: !0,
|
|
8886
|
-
children:
|
|
8966
|
+
children: T(ms, {
|
|
8887
8967
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8888
8968
|
container: s,
|
|
8889
|
-
children: [
|
|
8969
|
+
children: [T("div", {
|
|
8890
8970
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8891
|
-
children: [
|
|
8971
|
+
children: [T(vs, {
|
|
8892
8972
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8893
8973
|
children: [r && f(Ln, {
|
|
8894
8974
|
module: r,
|
|
@@ -8901,7 +8981,7 @@ function Lc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8901
8981
|
label: "Close modal",
|
|
8902
8982
|
hideLabel: !0
|
|
8903
8983
|
})]
|
|
8904
|
-
}),
|
|
8984
|
+
}), T(Pn, {
|
|
8905
8985
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
8906
8986
|
children: [i, f(Mn, {
|
|
8907
8987
|
orientation: "vertical",
|
|
@@ -8911,8 +8991,8 @@ function Lc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8911
8991
|
})
|
|
8912
8992
|
});
|
|
8913
8993
|
}
|
|
8914
|
-
function
|
|
8915
|
-
const [N, w] =
|
|
8994
|
+
function Sd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessage: s, successMessage: o, loadingState: a, nextSteps: c, closeLabel: d, primaryAction: l, modalTitle: u, modalModule: h, secondaryAction: g, portalContainer: C, tag: b, promoTag: x, showResponseDialog: D = !0 }) {
|
|
8995
|
+
const [N, w] = F(n), [R, v] = F(null), [y, m] = F(!1), E = async () => {
|
|
8916
8996
|
if (l?.onClick) {
|
|
8917
8997
|
m(!0);
|
|
8918
8998
|
try {
|
|
@@ -8923,35 +9003,35 @@ function xd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8923
9003
|
m(!1);
|
|
8924
9004
|
}
|
|
8925
9005
|
}
|
|
8926
|
-
},
|
|
9006
|
+
}, z = () => {
|
|
8927
9007
|
w(!1), e?.();
|
|
8928
9008
|
}, A = y;
|
|
8929
|
-
return
|
|
8930
|
-
children: [f(
|
|
9009
|
+
return T(Jt, {
|
|
9010
|
+
children: [f(Gc, {
|
|
8931
9011
|
isOpen: N,
|
|
8932
|
-
onClose:
|
|
9012
|
+
onClose: z,
|
|
8933
9013
|
title: u,
|
|
8934
9014
|
module: h,
|
|
8935
9015
|
portalContainer: C,
|
|
8936
9016
|
children: f("div", {
|
|
8937
9017
|
className: "pb-4 pl-4",
|
|
8938
|
-
children: f(
|
|
9018
|
+
children: f(Br, {
|
|
8939
9019
|
title: t,
|
|
8940
9020
|
image: i,
|
|
8941
9021
|
benefits: r,
|
|
8942
9022
|
withShadow: !1,
|
|
8943
9023
|
tag: b,
|
|
8944
9024
|
promoTag: x,
|
|
8945
|
-
actions:
|
|
9025
|
+
actions: T("div", {
|
|
8946
9026
|
className: "flex gap-3",
|
|
8947
|
-
children: [l && f(
|
|
9027
|
+
children: [l && f(We, {
|
|
8948
9028
|
variant: l.variant,
|
|
8949
9029
|
label: A ? a.label : l.label,
|
|
8950
9030
|
icon: l.icon || void 0,
|
|
8951
9031
|
onClick: E,
|
|
8952
9032
|
loading: l.loading,
|
|
8953
9033
|
size: l.size
|
|
8954
|
-
}), g && f(
|
|
9034
|
+
}), g && f(We, {
|
|
8955
9035
|
onClick: g.onClick,
|
|
8956
9036
|
label: g.label,
|
|
8957
9037
|
variant: g.variant,
|
|
@@ -8964,7 +9044,7 @@ function xd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8964
9044
|
}), R && D && f(Xn, {
|
|
8965
9045
|
open: !0,
|
|
8966
9046
|
onClose: () => {
|
|
8967
|
-
|
|
9047
|
+
z(), v(null);
|
|
8968
9048
|
},
|
|
8969
9049
|
success: R === "success",
|
|
8970
9050
|
errorMessage: s,
|
|
@@ -8975,8 +9055,8 @@ function xd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8975
9055
|
})]
|
|
8976
9056
|
});
|
|
8977
9057
|
}
|
|
8978
|
-
function
|
|
8979
|
-
const [d, l] =
|
|
9058
|
+
function $c({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r, width: s, trackVisibility: o, actions: a, showConfirmation: c = !0 }) {
|
|
9059
|
+
const [d, l] = F(!1), u = () => {
|
|
8980
9060
|
l(!0), i && i();
|
|
8981
9061
|
};
|
|
8982
9062
|
I(() => {
|
|
@@ -8984,15 +9064,15 @@ function Ic({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8984
9064
|
}, [o, d]);
|
|
8985
9065
|
const h = n?.includes(".mp4");
|
|
8986
9066
|
return f(Jt, {
|
|
8987
|
-
children: d ? null :
|
|
9067
|
+
children: d ? null : T(yo, {
|
|
8988
9068
|
style: {
|
|
8989
9069
|
width: s
|
|
8990
9070
|
},
|
|
8991
9071
|
className: "relative bg-f1-background p-1",
|
|
8992
|
-
children: [
|
|
9072
|
+
children: [T(bo, {
|
|
8993
9073
|
children: [r && f("div", {
|
|
8994
9074
|
className: "absolute right-2 top-2 z-10",
|
|
8995
|
-
children: f(
|
|
9075
|
+
children: f(We, {
|
|
8996
9076
|
variant: "ghost",
|
|
8997
9077
|
icon: In,
|
|
8998
9078
|
size: "sm",
|
|
@@ -9000,7 +9080,7 @@ function Ic({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
9000
9080
|
onClick: u,
|
|
9001
9081
|
label: "Close"
|
|
9002
9082
|
})
|
|
9003
|
-
}),
|
|
9083
|
+
}), T("div", {
|
|
9004
9084
|
children: [f("div", {
|
|
9005
9085
|
children: n && (h ? f("video", {
|
|
9006
9086
|
src: n,
|
|
@@ -9014,7 +9094,7 @@ function Ic({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
9014
9094
|
alt: e,
|
|
9015
9095
|
className: "h-full w-full rounded-md"
|
|
9016
9096
|
}))
|
|
9017
|
-
}),
|
|
9097
|
+
}), T("div", {
|
|
9018
9098
|
className: "flex flex-col gap-[2px] p-3",
|
|
9019
9099
|
children: [f(rn, {
|
|
9020
9100
|
className: "text-lg font-medium",
|
|
@@ -9025,7 +9105,7 @@ function Ic({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
9025
9105
|
})]
|
|
9026
9106
|
})]
|
|
9027
9107
|
})]
|
|
9028
|
-
}), a && f(
|
|
9108
|
+
}), a && f(xo, {
|
|
9029
9109
|
className: "p-3",
|
|
9030
9110
|
children: a.map((g) => g.type === "upsell" ? f(Yn, {
|
|
9031
9111
|
label: g.label,
|
|
@@ -9037,7 +9117,7 @@ function Ic({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
9037
9117
|
closeLabel: g.closeLabel,
|
|
9038
9118
|
showConfirmation: c && g.showConfirmation,
|
|
9039
9119
|
variant: g.variant
|
|
9040
|
-
}, g.label) : f(
|
|
9120
|
+
}, g.label) : f(We, {
|
|
9041
9121
|
label: g.label,
|
|
9042
9122
|
onClick: g.onClick,
|
|
9043
9123
|
variant: g.variant
|
|
@@ -9046,7 +9126,7 @@ function Ic({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
9046
9126
|
})
|
|
9047
9127
|
});
|
|
9048
9128
|
}
|
|
9049
|
-
const
|
|
9129
|
+
const jc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
9050
9130
|
const s = (c) => c.variant === "promote" ? f(Yn, {
|
|
9051
9131
|
label: c.label,
|
|
9052
9132
|
onRequest: async () => {
|
|
@@ -9060,14 +9140,14 @@ const Hc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
9060
9140
|
showIcon: c.showIcon,
|
|
9061
9141
|
showConfirmation: c.showConfirmation,
|
|
9062
9142
|
variant: c.variant
|
|
9063
|
-
}) : f(
|
|
9143
|
+
}) : f(We, {
|
|
9064
9144
|
onClick: c.onClick,
|
|
9065
9145
|
label: c.label,
|
|
9066
9146
|
variant: c.variant || "default",
|
|
9067
9147
|
size: "md",
|
|
9068
9148
|
icon: c.icon
|
|
9069
9149
|
}), o = e?.variant !== "promote" ? e : void 0, a = t?.variant !== "promote" ? t : void 0;
|
|
9070
|
-
return
|
|
9150
|
+
return T(wo, {
|
|
9071
9151
|
ref: r,
|
|
9072
9152
|
...i,
|
|
9073
9153
|
primaryAction: o,
|
|
@@ -9075,9 +9155,9 @@ const Hc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
9075
9155
|
children: [e?.variant === "promote" && s(e), t?.variant === "promote" && s(t)]
|
|
9076
9156
|
});
|
|
9077
9157
|
});
|
|
9078
|
-
|
|
9079
|
-
function
|
|
9080
|
-
const [D, N] =
|
|
9158
|
+
jc.displayName = "UpsellingBanner";
|
|
9159
|
+
function Nd({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r = "md", showIcon: s = !0, side: o = "right", align: a = "center", icon: c = ys, mediaUrl: d, title: l, description: u, width: h = "300px", trackVisibility: g, actions: C, onClick: b, hideLabel: x = !1 }) {
|
|
9160
|
+
const [D, N] = F(!1), [w, R] = F(null), [v, y] = F(null), m = (S) => {
|
|
9081
9161
|
e(S), b && b();
|
|
9082
9162
|
}, E = async (S) => {
|
|
9083
9163
|
if (S.type === "upsell") {
|
|
@@ -9088,19 +9168,19 @@ function wd({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
9088
9168
|
N(!0), R("error");
|
|
9089
9169
|
}
|
|
9090
9170
|
}
|
|
9091
|
-
},
|
|
9171
|
+
}, z = () => {
|
|
9092
9172
|
R(null), N(!1), y(null), e(!1);
|
|
9093
9173
|
}, A = n && !D, _ = C?.map((S) => S.type === "upsell" ? {
|
|
9094
9174
|
...S,
|
|
9095
9175
|
onClick: () => E(S)
|
|
9096
9176
|
} : S);
|
|
9097
|
-
return
|
|
9098
|
-
children: [
|
|
9177
|
+
return T(Jt, {
|
|
9178
|
+
children: [T(On, {
|
|
9099
9179
|
open: A,
|
|
9100
9180
|
onOpenChange: m,
|
|
9101
9181
|
children: [f(kn, {
|
|
9102
9182
|
asChild: !0,
|
|
9103
|
-
children: f(
|
|
9183
|
+
children: f(We, {
|
|
9104
9184
|
variant: i,
|
|
9105
9185
|
label: t,
|
|
9106
9186
|
size: r,
|
|
@@ -9112,7 +9192,7 @@ function wd({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
9112
9192
|
side: o,
|
|
9113
9193
|
align: a,
|
|
9114
9194
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
9115
|
-
children: f(
|
|
9195
|
+
children: f($c, {
|
|
9116
9196
|
mediaUrl: d,
|
|
9117
9197
|
title: l,
|
|
9118
9198
|
description: u,
|
|
@@ -9126,7 +9206,7 @@ function wd({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
9126
9206
|
})]
|
|
9127
9207
|
}), v?.type === "upsell" && v.showConfirmation && w && f(Xn, {
|
|
9128
9208
|
open: !0,
|
|
9129
|
-
onClose:
|
|
9209
|
+
onClose: z,
|
|
9130
9210
|
success: w === "success",
|
|
9131
9211
|
errorMessage: v.errorMessage,
|
|
9132
9212
|
successMessage: v.successMessage,
|
|
@@ -9136,44 +9216,44 @@ function wd({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
9136
9216
|
})]
|
|
9137
9217
|
});
|
|
9138
9218
|
}
|
|
9139
|
-
const
|
|
9140
|
-
const t =
|
|
9141
|
-
return
|
|
9219
|
+
const Uc = Ae(null), Vc = ({ children: n, fullScreen: e = !0 }) => {
|
|
9220
|
+
const t = M(null), [i, r] = F(t.current);
|
|
9221
|
+
return Ds(() => {
|
|
9142
9222
|
r(t.current);
|
|
9143
|
-
}, []), f(
|
|
9223
|
+
}, []), f(Uc.Provider, {
|
|
9144
9224
|
value: {
|
|
9145
9225
|
element: i
|
|
9146
9226
|
},
|
|
9147
9227
|
children: f("div", {
|
|
9148
9228
|
ref: t,
|
|
9149
9229
|
id: "f0-layout",
|
|
9150
|
-
className:
|
|
9230
|
+
className: G({
|
|
9151
9231
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
|
|
9152
9232
|
}),
|
|
9153
9233
|
children: n
|
|
9154
9234
|
})
|
|
9155
9235
|
});
|
|
9156
|
-
},
|
|
9236
|
+
}, Kc = ({ children: n }) => f(Eo, {
|
|
9157
9237
|
reducedMotion: "user",
|
|
9158
9238
|
children: n
|
|
9159
|
-
}),
|
|
9160
|
-
children: f(
|
|
9239
|
+
}), Ad = ({ children: n, layout: e, link: t, privacyModeInitiallyEnabled: i, image: r, i18n: s, l10n: o, isDev: a = !1, dataCollectionStorageHandler: c, showExperimentalWarnings: d = !1 }) => f(Kc, {
|
|
9240
|
+
children: f(bs, {
|
|
9161
9241
|
isDev: a,
|
|
9162
9242
|
showExperimentalWarnings: d,
|
|
9163
|
-
children: f(
|
|
9243
|
+
children: f(xs, {
|
|
9164
9244
|
...o,
|
|
9165
|
-
children: f(
|
|
9245
|
+
children: f(ws, {
|
|
9166
9246
|
...s,
|
|
9167
|
-
children: f(
|
|
9247
|
+
children: f(Cs, {
|
|
9168
9248
|
...t,
|
|
9169
|
-
children: f(
|
|
9249
|
+
children: f(Vc, {
|
|
9170
9250
|
...e,
|
|
9171
|
-
children: f(
|
|
9172
|
-
children: f(
|
|
9251
|
+
children: f(_s, {
|
|
9252
|
+
children: f(Co, {
|
|
9173
9253
|
initiallyEnabled: i,
|
|
9174
|
-
children: f(
|
|
9254
|
+
children: f(Es, {
|
|
9175
9255
|
...r,
|
|
9176
|
-
children: f(
|
|
9256
|
+
children: f(_o, {
|
|
9177
9257
|
handler: c,
|
|
9178
9258
|
children: n
|
|
9179
9259
|
})
|
|
@@ -9185,7 +9265,7 @@ const Bc = Ae(null), Fc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9185
9265
|
})
|
|
9186
9266
|
})
|
|
9187
9267
|
})
|
|
9188
|
-
}), En = (n) => `datacollection-${n}`,
|
|
9268
|
+
}), En = (n) => `datacollection-${n}`, Od = {
|
|
9189
9269
|
get: async (n) => JSON.parse(
|
|
9190
9270
|
localStorage.getItem(En(n)) ?? "{}"
|
|
9191
9271
|
),
|
|
@@ -9194,114 +9274,115 @@ const Bc = Ae(null), Fc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9194
9274
|
}
|
|
9195
9275
|
};
|
|
9196
9276
|
export {
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9277
|
+
sd as AreaChart,
|
|
9278
|
+
zd as Await,
|
|
9279
|
+
od as BarChart,
|
|
9280
|
+
ad as CategoryBarChart,
|
|
9281
|
+
hd as ComboChart,
|
|
9282
|
+
ed as Dashboard,
|
|
9283
|
+
gu as DndProvider,
|
|
9284
|
+
Pd as EmojiImage,
|
|
9285
|
+
Ed as F0Alert,
|
|
9286
|
+
Md as F0Avatar,
|
|
9287
|
+
po as F0AvatarAlert,
|
|
9288
|
+
Ld as F0AvatarCompany,
|
|
9289
|
+
pu as F0AvatarDate,
|
|
9290
|
+
Id as F0AvatarEmoji,
|
|
9291
|
+
Hd as F0AvatarFile,
|
|
9292
|
+
os as F0AvatarIcon,
|
|
9293
|
+
mu as F0AvatarList,
|
|
9213
9294
|
Ln as F0AvatarModule,
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9295
|
+
Fd as F0AvatarPerson,
|
|
9296
|
+
Bd as F0AvatarTeam,
|
|
9297
|
+
fd as F0BigNumber,
|
|
9298
|
+
We as F0Button,
|
|
9299
|
+
Wd as F0ButtonDropdown,
|
|
9300
|
+
Gd as F0ButtonToggle,
|
|
9301
|
+
vu as F0Card,
|
|
9302
|
+
$d as F0Checkbox,
|
|
9303
|
+
Cd as F0ChipList,
|
|
9304
|
+
yu as F0DatePicker,
|
|
9305
|
+
jd as F0Dialog,
|
|
9306
|
+
Ud as F0DialogContext,
|
|
9307
|
+
Vd as F0DialogProvider,
|
|
9308
|
+
Kd as F0EventCatcherProvider,
|
|
9309
|
+
kc as F0FilterPickerContent,
|
|
9310
|
+
Dd as F0GridStack,
|
|
9311
|
+
Tc as F0Heading,
|
|
9231
9312
|
Nn as F0Icon,
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9313
|
+
ls as F0Link,
|
|
9314
|
+
Ad as F0Provider,
|
|
9315
|
+
Xd as F0Select,
|
|
9316
|
+
Rd as F0TableOfContentPopover,
|
|
9317
|
+
bu as F0TagAlert,
|
|
9318
|
+
go as F0TagBalance,
|
|
9319
|
+
xu as F0TagCompany,
|
|
9320
|
+
wu as F0TagDot,
|
|
9321
|
+
Cu as F0TagList,
|
|
9322
|
+
_u as F0TagPerson,
|
|
9323
|
+
fs as F0TagRaw,
|
|
9324
|
+
vo as F0TagStatus,
|
|
9325
|
+
Eu as F0TagTeam,
|
|
9245
9326
|
nr as F0Text,
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9327
|
+
Yd as GROUP_ID_SYMBOL,
|
|
9328
|
+
rd as HomeLayout,
|
|
9329
|
+
td as Layout,
|
|
9330
|
+
ld as LineChart,
|
|
9331
|
+
qd as OneFilterPicker,
|
|
9332
|
+
cd as PieChart,
|
|
9333
|
+
Co as PrivacyModeProvider,
|
|
9334
|
+
Br as ProductBlankslate,
|
|
9335
|
+
Du as ProductCard,
|
|
9336
|
+
Sd as ProductModal,
|
|
9337
|
+
$c as ProductWidget,
|
|
9338
|
+
ud as ProgressBarChart,
|
|
9339
|
+
id as StandardLayout,
|
|
9340
|
+
Ru as Tag,
|
|
9341
|
+
Su as TagCounter,
|
|
9342
|
+
nd as TwoColumnLayout,
|
|
9262
9343
|
Xn as UpsellRequestResponseDialog,
|
|
9263
|
-
|
|
9344
|
+
jc as UpsellingBanner,
|
|
9264
9345
|
Yn as UpsellingButton,
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9346
|
+
Nd as UpsellingPopover,
|
|
9347
|
+
dd as VerticalBarChart,
|
|
9348
|
+
Qc as avatarVariants,
|
|
9349
|
+
Jd as buildTranslations,
|
|
9350
|
+
vd as buttonDropdownSizes,
|
|
9351
|
+
md as buttonDropdownVariants,
|
|
9352
|
+
pd as buttonSizes,
|
|
9353
|
+
yd as buttonToggleSizes,
|
|
9354
|
+
bd as buttonToggleVariants,
|
|
9355
|
+
gd as buttonVariants,
|
|
9356
|
+
Nu as cardImageFits,
|
|
9357
|
+
Au as cardImageSizes,
|
|
9358
|
+
Ou as createAtlaskitDriver,
|
|
9359
|
+
Zd as createDataSourceDefinition,
|
|
9360
|
+
$o as createPageLayoutBlock,
|
|
9361
|
+
jo as createPageLayoutBlockGroup,
|
|
9362
|
+
Od as dataCollectionLocalStorageHandler,
|
|
9363
|
+
_d as datepickerSizes,
|
|
9364
|
+
Hu as defaultTranslations,
|
|
9284
9365
|
fe as experimental,
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9366
|
+
Qd as getAnimationVariants,
|
|
9367
|
+
eu as getDataSourcePaginationType,
|
|
9368
|
+
tu as getEmojiLabel,
|
|
9369
|
+
iu as isInfiniteScrollPagination,
|
|
9370
|
+
nu as isPageBasedPagination,
|
|
9371
|
+
xd as linkVariants,
|
|
9372
|
+
ru as modules,
|
|
9373
|
+
ku as predefinedPresets,
|
|
9374
|
+
Tu as selectSizes,
|
|
9375
|
+
wd as tagDotColors,
|
|
9376
|
+
su as useData,
|
|
9377
|
+
ou as useDataSource,
|
|
9378
|
+
zu as useDndEvents,
|
|
9379
|
+
Pu as useDraggable,
|
|
9380
|
+
Mu as useDroppableList,
|
|
9381
|
+
au as useEmojiConfetti,
|
|
9382
|
+
lu as useF0Dialog,
|
|
9383
|
+
cu as useGroups,
|
|
9384
|
+
Lu as usePrivacyMode,
|
|
9385
|
+
du as useReducedMotion,
|
|
9386
|
+
uu as useSelectable,
|
|
9387
|
+
hu as useXRay
|
|
9307
9388
|
};
|