@factorialco/f0-react 1.309.1 → 1.311.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/experimental.d.ts +5 -5
- package/dist/experimental.js +4 -2
- package/dist/f0.d.ts +161 -14
- package/dist/f0.js +942 -895
- package/dist/{hooks-BxHngDSH.js → hooks-ncaiQCro.js} +16779 -16707
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { L as
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as g, jsxs as
|
|
4
|
-
import L, { forwardRef as le, useRef as I, useImperativeHandle as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { defaultTranslations as
|
|
7
|
-
import './f0.css';const
|
|
1
|
+
import { L as _n, C as jr, c as j, a as Di, u as En, m as Ri, i as Dn, B as Si, O as Ur, p as Kr, w as Rn, S as xe, b as Xr, F as Sn, d as Yr, A as Vr, D as qr, e as Jr, f as we, g as Zr, h as me, j as qi, k as Qr, l as di, n as lt, o as es, q as ts, r as Ot, s as Nn, E as is, t as zt, v as ns, x as rs, y as ss, z as os, G as Xe, H as On, I as as, J as ls, K as cs, M as Ji, N as ds, P as An, Q as us, R as Tn, X as kn, Y as vi, T as hs, U as zn, V as fs, W as gs, Z as ps, _ as ms, $ as vs, a0 as ys, a1 as bs, a2 as xs, a3 as Zi, a4 as ws, a5 as ct, a6 as ui, a7 as Cs, a8 as _s, a9 as Es, aa as Ds, ab as Rs, ac as Ss, ad as Ns, ae as Os, af as As, ag as Ts, ah as ks, ai as Qi, aj as zs, ak as Ps, al as Pn, am as Ms, an as Mt, ao as Mn, ap as Ln, aq as Ls, ar as In, as as Hn, at as Bn, au as Is, av as Hs, aw as Fn, ax as Bs, ay as Fs, az as Ws, aA as Gs, aB as $s, aC as js, aD as Wn, aE as qe, aF as Gn, aG as Us, aH as Ks, aI as en, aJ as Xs, aK as $n, aL as Ys, aM as Vs, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so } from "./hooks-ncaiQCro.js";
|
|
2
|
+
import { bo as ad, bB as ld, bK as cd, aX as dd, aY as ud, aZ as hd, a_ as fd, a$ as gd, b0 as pd, b1 as md, b2 as vd, b4 as yd, b5 as bd, b6 as xd, b7 as wd, b8 as Cd, b9 as _d, ba as Ed, bG as Dd, bc as Rd, bd as Sd, bh as Nd, bi as Od, bj as Ad, bl as Td, bm as kd, bn as zd, bq as Pd, bf as Md, bp as Ld, bg as Id, bk as Hd, bH as Bd, bA as Fd, bv as Wd, by as Gd, bu as $d, bL as jd, bt as Ud, bs as Kd, b3 as Xd, bb as Yd, be as Vd, br as qd, bw as Jd, bC as Zd, bD as Qd, bE as eu, bM as tu, bx as iu, bF as nu, bJ as ru, bz as su, bI as ou } from "./hooks-ncaiQCro.js";
|
|
3
|
+
import { jsx as g, jsxs as P, Fragment as qt } from "react/jsx-runtime";
|
|
4
|
+
import L, { forwardRef as le, useRef as I, useImperativeHandle as oo, Children as Lt, createContext as Oe, useContext as _e, useState as W, useMemo as B, useEffect as H, useCallback as K, useLayoutEffect as yi, createElement as tn, isValidElement as jn, Fragment as ao, memo as lo, useReducer as co, cloneElement as uo, PureComponent as ho } from "react";
|
|
5
|
+
import { createPortal as Un, unstable_batchedUpdates as At } from "react-dom";
|
|
6
|
+
import { defaultTranslations as lu } from "./i18n-provider-defaults.js";
|
|
7
|
+
import './f0.css';const fo = {
|
|
8
8
|
xs: 1,
|
|
9
9
|
sm: 2,
|
|
10
10
|
md: 2,
|
|
11
11
|
lg: 2
|
|
12
|
-
},
|
|
12
|
+
}, go = le(function({ widgets: e, children: t }, i) {
|
|
13
13
|
const r = I(null);
|
|
14
|
-
|
|
14
|
+
oo(i, () => r.current);
|
|
15
15
|
const s = Lt.toArray(e).filter((o) => !!o).map((o, a) => g("div", {
|
|
16
16
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
17
17
|
children: o
|
|
18
18
|
}, a));
|
|
19
|
-
return g(
|
|
19
|
+
return g(_n, {
|
|
20
20
|
layout: "home",
|
|
21
|
-
children:
|
|
21
|
+
children: P("div", {
|
|
22
22
|
ref: r,
|
|
23
23
|
className: "@container",
|
|
24
|
-
children: [
|
|
24
|
+
children: [P("div", {
|
|
25
25
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
26
|
-
children: [g(
|
|
27
|
-
columns:
|
|
26
|
+
children: [g(jr, {
|
|
27
|
+
columns: fo,
|
|
28
28
|
showArrows: !1,
|
|
29
29
|
children: s
|
|
30
30
|
}), g("main", {
|
|
31
31
|
children: t
|
|
32
32
|
})]
|
|
33
|
-
}),
|
|
33
|
+
}), P("div", {
|
|
34
34
|
className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid",
|
|
35
35
|
children: [g("div", {
|
|
36
36
|
className: "col-span-3 flex flex-row gap-5 *:flex-1",
|
|
@@ -45,57 +45,57 @@ import './f0.css';const ao = {
|
|
|
45
45
|
})]
|
|
46
46
|
})
|
|
47
47
|
});
|
|
48
|
-
}),
|
|
48
|
+
}), po = le(function({ children: e, sideContent: t, mainColumnPosition: i = "left", sticky: r = !1 }, s) {
|
|
49
49
|
return g("div", {
|
|
50
50
|
ref: s,
|
|
51
51
|
className: "h-full",
|
|
52
|
-
children:
|
|
52
|
+
children: P("div", {
|
|
53
53
|
className: j("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"),
|
|
54
54
|
children: [g("main", {
|
|
55
55
|
className: j("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"),
|
|
56
56
|
children: e
|
|
57
|
-
}), g(
|
|
57
|
+
}), g(mo, {
|
|
58
58
|
sticky: r,
|
|
59
59
|
className: j("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
60
60
|
children: t
|
|
61
61
|
})]
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
|
-
}),
|
|
64
|
+
}), mo = ({ children: n, className: e }) => g("aside", {
|
|
65
65
|
className: j("min-w-30 py-5 pl-4 pr-4 sm:basis-1/4 sm:pb-6 md:max-w-80 md:pl-2", e),
|
|
66
66
|
children: n
|
|
67
|
-
}),
|
|
67
|
+
}), vo = Di({
|
|
68
68
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
69
69
|
variants: {
|
|
70
70
|
variant: {
|
|
71
71
|
narrow: "max-w-screen-lg"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
}),
|
|
74
|
+
}), Kn = L.forwardRef(({ children: n, variant: e, className: t, ...i }, r) => g(_n, {
|
|
75
75
|
layout: "standard",
|
|
76
76
|
children: g("section", {
|
|
77
77
|
ref: r,
|
|
78
78
|
className: j("relative flex-1 overflow-auto", t),
|
|
79
79
|
...i,
|
|
80
80
|
children: g("div", {
|
|
81
|
-
className: j(
|
|
81
|
+
className: j(vo({
|
|
82
82
|
variant: e
|
|
83
83
|
})),
|
|
84
84
|
children: n
|
|
85
85
|
})
|
|
86
86
|
})
|
|
87
87
|
}));
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
function
|
|
91
|
-
const n =
|
|
88
|
+
Kn.displayName = "StandardLayout";
|
|
89
|
+
const Xn = Oe(null);
|
|
90
|
+
function Yn() {
|
|
91
|
+
const n = _e(Xn);
|
|
92
92
|
if (!n)
|
|
93
93
|
throw new Error(
|
|
94
94
|
"useGridStackContext must be used within a GridStackProvider"
|
|
95
95
|
);
|
|
96
96
|
return n;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function yo(n) {
|
|
99
99
|
const { content: e, ...t } = n;
|
|
100
100
|
return e !== void 0 ? {
|
|
101
101
|
...t,
|
|
@@ -106,7 +106,7 @@ function fo(n) {
|
|
|
106
106
|
}
|
|
107
107
|
function Ye(n) {
|
|
108
108
|
var t;
|
|
109
|
-
const e =
|
|
109
|
+
const e = yo(n);
|
|
110
110
|
return (t = n.subGridOpts) != null && t.children && (e.subGridOpts = {
|
|
111
111
|
...n.subGridOpts,
|
|
112
112
|
children: n.subGridOpts.children.map(
|
|
@@ -114,8 +114,8 @@ function Ye(n) {
|
|
|
114
114
|
)
|
|
115
115
|
}), e;
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
function
|
|
117
|
+
const bo = ["noMove", "noResize", "locked", "w", "h", "x", "y"], Le = 200;
|
|
118
|
+
function xo(n) {
|
|
119
119
|
const e = n.cloneNode(!0);
|
|
120
120
|
return n.querySelectorAll("canvas").forEach((i) => {
|
|
121
121
|
if (i.width > 0 && i.height > 0)
|
|
@@ -130,7 +130,7 @@ function po(n) {
|
|
|
130
130
|
}
|
|
131
131
|
}), e.innerHTML;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function wo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r }) {
|
|
134
134
|
const [s, o] = W(null), a = I(null), l = I(!1), u = B(() => ({
|
|
135
135
|
...e,
|
|
136
136
|
children: (r || []).map((C) => Ye(C))
|
|
@@ -177,7 +177,7 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
177
177
|
y(b);
|
|
178
178
|
}), C;
|
|
179
179
|
});
|
|
180
|
-
|
|
180
|
+
En(() => {
|
|
181
181
|
if (!s) return;
|
|
182
182
|
const C = s.save();
|
|
183
183
|
if (!Array.isArray(C))
|
|
@@ -211,26 +211,26 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
211
211
|
A.forEach((m) => {
|
|
212
212
|
setTimeout(() => {
|
|
213
213
|
h.current.delete(m), v.current.delete(m);
|
|
214
|
-
},
|
|
214
|
+
}, Le);
|
|
215
215
|
}), E.forEach((m) => {
|
|
216
216
|
const _ = s.el.querySelector(`[gs-id="${m.id}"]`);
|
|
217
217
|
_ && setTimeout(() => {
|
|
218
218
|
s.removeWidget(_, !0);
|
|
219
|
-
},
|
|
219
|
+
}, Le);
|
|
220
220
|
}), S((m) => {
|
|
221
221
|
const _ = new Map(m);
|
|
222
222
|
return A.forEach((O) => {
|
|
223
223
|
setTimeout(() => {
|
|
224
224
|
_.delete(O);
|
|
225
|
-
},
|
|
225
|
+
}, Le);
|
|
226
226
|
}), _;
|
|
227
227
|
}), d((m) => {
|
|
228
228
|
const _ = new Map(m);
|
|
229
229
|
return A.forEach((O) => {
|
|
230
230
|
if (_.get(O)) {
|
|
231
|
-
const
|
|
231
|
+
const q = s.el.querySelector(`[gs-id="${O}"] .grid-stack-item-content`);
|
|
232
232
|
let X = "";
|
|
233
|
-
|
|
233
|
+
q && (X = xo(q)), _.set(O, g(Ri.div, {
|
|
234
234
|
className: "h-full w-full",
|
|
235
235
|
initial: {
|
|
236
236
|
opacity: 1,
|
|
@@ -249,15 +249,15 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
249
249
|
},
|
|
250
250
|
transition: {
|
|
251
251
|
opacity: {
|
|
252
|
-
duration:
|
|
252
|
+
duration: Le / 1e3,
|
|
253
253
|
ease: [0.32, 0, 0.67, 0]
|
|
254
254
|
},
|
|
255
255
|
scale: {
|
|
256
|
-
duration:
|
|
256
|
+
duration: Le / 1e3,
|
|
257
257
|
ease: [0.65, 0, 0.35, 1]
|
|
258
258
|
},
|
|
259
259
|
filter: {
|
|
260
|
-
duration:
|
|
260
|
+
duration: Le / 1e3,
|
|
261
261
|
ease: "linear"
|
|
262
262
|
}
|
|
263
263
|
},
|
|
@@ -268,14 +268,14 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
268
268
|
}
|
|
269
269
|
setTimeout(() => {
|
|
270
270
|
_.delete(O);
|
|
271
|
-
},
|
|
271
|
+
}, Le);
|
|
272
272
|
}), _;
|
|
273
273
|
}), x((m) => {
|
|
274
274
|
const _ = new Map(m);
|
|
275
275
|
return A.forEach((O) => {
|
|
276
276
|
setTimeout(() => {
|
|
277
277
|
_.delete(O);
|
|
278
|
-
},
|
|
278
|
+
}, Le);
|
|
279
279
|
}), _;
|
|
280
280
|
});
|
|
281
281
|
}
|
|
@@ -283,24 +283,24 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
283
283
|
if (k.length > 0) {
|
|
284
284
|
const A = [];
|
|
285
285
|
k.forEach((m) => {
|
|
286
|
-
const _ = C.find((
|
|
286
|
+
const _ = C.find((M) => M.id === m.id);
|
|
287
287
|
if (!_)
|
|
288
288
|
return;
|
|
289
|
-
const O =
|
|
289
|
+
const O = bo.filter((M) => _[M] !== m[M]);
|
|
290
290
|
if (O.length > 0) {
|
|
291
|
-
const
|
|
291
|
+
const M = {}, q = ["w", "h", "x", "y"], X = ["noMove", "noResize", "locked"], U = O.filter((G) => q.includes(G)), te = O.filter((G) => X.includes(G));
|
|
292
292
|
if (U.length > 0 && te.length > 0 && U.length + te.length === O.length ? te.forEach((G) => {
|
|
293
293
|
const ne = m[G];
|
|
294
|
-
ne !== void 0 && (
|
|
294
|
+
ne !== void 0 && (M[G] = ne);
|
|
295
295
|
}) : O.forEach((G) => {
|
|
296
296
|
const ne = m[G];
|
|
297
|
-
ne !== void 0 && (
|
|
298
|
-
}), Object.keys(
|
|
297
|
+
ne !== void 0 && (M[G] = ne);
|
|
298
|
+
}), Object.keys(M).length > 0) {
|
|
299
299
|
const G = s.el.querySelector(`[gs-id="${m.id}"]`);
|
|
300
300
|
G && A.push({
|
|
301
301
|
id: m.id,
|
|
302
302
|
element: G,
|
|
303
|
-
updateOptions:
|
|
303
|
+
updateOptions: M
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
}
|
|
@@ -315,8 +315,8 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
315
315
|
}), S((m) => {
|
|
316
316
|
const _ = new Map(m);
|
|
317
317
|
return k.forEach((O) => {
|
|
318
|
-
const
|
|
319
|
-
_.set(O.id,
|
|
318
|
+
const M = Ye(O);
|
|
319
|
+
_.set(O.id, M);
|
|
320
320
|
}), _;
|
|
321
321
|
}), d((m) => {
|
|
322
322
|
const _ = new Map(m);
|
|
@@ -395,7 +395,7 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
395
395
|
a.current = s;
|
|
396
396
|
}, [s]), H(() => {
|
|
397
397
|
s && s.el && s.el.parentElement && l.current && N();
|
|
398
|
-
}, [s]), g(
|
|
398
|
+
}, [s]), g(Xn.Provider, {
|
|
399
399
|
value: {
|
|
400
400
|
options: u,
|
|
401
401
|
gridStack: s,
|
|
@@ -415,33 +415,33 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
415
415
|
children: n
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
const
|
|
419
|
-
function
|
|
420
|
-
const n =
|
|
418
|
+
const Vn = Oe(null);
|
|
419
|
+
function Co() {
|
|
420
|
+
const n = _e(Vn);
|
|
421
421
|
if (!n)
|
|
422
422
|
throw new Error(
|
|
423
423
|
"useGridStackRenderContext must be used within a GridStackProvider"
|
|
424
424
|
);
|
|
425
425
|
return n;
|
|
426
426
|
}
|
|
427
|
-
const
|
|
428
|
-
function
|
|
429
|
-
const { _reactContentMap: n } =
|
|
430
|
-
return g(
|
|
427
|
+
const _o = Oe(null);
|
|
428
|
+
function Eo() {
|
|
429
|
+
const { _reactContentMap: n } = Yn(), { getWidgetContainer: e } = Co();
|
|
430
|
+
return g(qt, {
|
|
431
431
|
children: Array.from(n.value.entries()).map(([t, i]) => {
|
|
432
432
|
const r = e(t);
|
|
433
|
-
return r ? g(
|
|
433
|
+
return r ? g(_o.Provider, {
|
|
434
434
|
value: {
|
|
435
435
|
widget: {
|
|
436
436
|
id: t
|
|
437
437
|
}
|
|
438
438
|
},
|
|
439
|
-
children: i &&
|
|
439
|
+
children: i && Un(i, r)
|
|
440
440
|
}, t) : (console.error(`Widget container not found for widget ${t}`), null);
|
|
441
441
|
})
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Do(n, e, t, i, r) {
|
|
445
445
|
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));
|
|
446
446
|
return s.prototype = e.prototype, s;
|
|
447
447
|
}
|
|
@@ -944,7 +944,7 @@ class p {
|
|
|
944
944
|
return !(!e || e.w === e.h || e.locked || e.noResize || (t = e.grid) != null && t.opts.disableResize || e.minW && e.minW === e.maxW || e.minH && e.minH === e.maxH);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
class
|
|
947
|
+
class Ne {
|
|
948
948
|
constructor(e = {}) {
|
|
949
949
|
this.addedNodes = [], this.removedNodes = [], this.defaultColumn = 12, this.column = e.column || this.defaultColumn, this.column > this.defaultColumn && (this.defaultColumn = this.column), this.maxRow = e.maxRow, this._float = e.float, this.nodes = e.nodes || [], this.onChange = e.onChange;
|
|
950
950
|
}
|
|
@@ -1256,7 +1256,7 @@ class Se {
|
|
|
1256
1256
|
* console.log('Node prepared at:', prepared.x, prepared.y);
|
|
1257
1257
|
*/
|
|
1258
1258
|
prepareNode(e, t) {
|
|
1259
|
-
e._id = e._id ??
|
|
1259
|
+
e._id = e._id ?? Ne._idSeq++;
|
|
1260
1260
|
const i = e.id;
|
|
1261
1261
|
if (i) {
|
|
1262
1262
|
let s = 1;
|
|
@@ -1456,7 +1456,7 @@ class Se {
|
|
|
1456
1456
|
if (t.pack = !0, !this.maxRow)
|
|
1457
1457
|
return this.moveNode(e, t);
|
|
1458
1458
|
let i;
|
|
1459
|
-
const r = new
|
|
1459
|
+
const r = new Ne({
|
|
1460
1460
|
column: this.column,
|
|
1461
1461
|
float: this.float,
|
|
1462
1462
|
nodes: this.nodes.map((o) => o._id === e._id ? (i = { ...o }, i) : { ...o })
|
|
@@ -1478,7 +1478,7 @@ class Se {
|
|
|
1478
1478
|
willItFit(e) {
|
|
1479
1479
|
if (delete e._willFitPos, !this.maxRow)
|
|
1480
1480
|
return !0;
|
|
1481
|
-
const t = new
|
|
1481
|
+
const t = new Ne({
|
|
1482
1482
|
column: this.column,
|
|
1483
1483
|
float: this.float,
|
|
1484
1484
|
nodes: this.nodes.map((r) => ({ ...r }))
|
|
@@ -1622,7 +1622,7 @@ class Se {
|
|
|
1622
1622
|
return e.forEach((s, o) => {
|
|
1623
1623
|
if (s._id === void 0) {
|
|
1624
1624
|
const a = s.id ? this.nodes.find((l) => l.id === s.id) : void 0;
|
|
1625
|
-
s._id = (a == null ? void 0 : a._id) ??
|
|
1625
|
+
s._id = (a == null ? void 0 : a._id) ?? Ne._idSeq++;
|
|
1626
1626
|
}
|
|
1627
1627
|
r[o] = { x: s.x, y: s.y, w: s.w, _id: s._id };
|
|
1628
1628
|
}), this._layouts = i ? [] : this._layouts || [], this._layouts[t] = r, this;
|
|
@@ -1633,7 +1633,7 @@ class Se {
|
|
|
1633
1633
|
* @param column corresponding column index to save it under
|
|
1634
1634
|
*/
|
|
1635
1635
|
cacheOneLayout(e, t) {
|
|
1636
|
-
e._id = e._id ??
|
|
1636
|
+
e._id = e._id ?? Ne._idSeq++;
|
|
1637
1637
|
const i = { x: e.x, y: e.y, w: e.w, _id: e._id };
|
|
1638
1638
|
(e.autoPosition || e.x === void 0) && (delete i.x, delete i.y, e.autoPosition && (i.autoPosition = !0)), this._layouts = this._layouts || [], this._layouts[t] = this._layouts[t] || [];
|
|
1639
1639
|
const r = this.findCacheLayout(e, t);
|
|
@@ -1657,7 +1657,7 @@ class Se {
|
|
|
1657
1657
|
return this;
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
|
-
|
|
1660
|
+
Ne._idSeq = 0;
|
|
1661
1661
|
const ae = {
|
|
1662
1662
|
alwaysShowResizeHandle: "mobile",
|
|
1663
1663
|
animate: !0,
|
|
@@ -1690,36 +1690,36 @@ const ae = {
|
|
|
1690
1690
|
class z {
|
|
1691
1691
|
}
|
|
1692
1692
|
const fe = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
|
|
1693
|
-
class
|
|
1693
|
+
class Ce {
|
|
1694
1694
|
}
|
|
1695
1695
|
function It(n, e) {
|
|
1696
1696
|
n.touches.length > 1 || (n.cancelable && n.preventDefault(), p.simulateMouseEvent(n.changedTouches[0], e));
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function qn(n, e) {
|
|
1699
1699
|
n.cancelable && n.preventDefault(), p.simulateMouseEvent(n, e);
|
|
1700
1700
|
}
|
|
1701
1701
|
function Ht(n) {
|
|
1702
|
-
|
|
1702
|
+
Ce.touchHandled || (Ce.touchHandled = !0, It(n, "mousedown"));
|
|
1703
1703
|
}
|
|
1704
1704
|
function Bt(n) {
|
|
1705
|
-
|
|
1705
|
+
Ce.touchHandled && It(n, "mousemove");
|
|
1706
1706
|
}
|
|
1707
1707
|
function Ft(n) {
|
|
1708
|
-
if (!
|
|
1708
|
+
if (!Ce.touchHandled)
|
|
1709
1709
|
return;
|
|
1710
|
-
|
|
1710
|
+
Ce.pointerLeaveTimeout && (window.clearTimeout(Ce.pointerLeaveTimeout), delete Ce.pointerLeaveTimeout);
|
|
1711
1711
|
const e = !!z.dragElement;
|
|
1712
|
-
It(n, "mouseup"), e || It(n, "click"),
|
|
1712
|
+
It(n, "mouseup"), e || It(n, "click"), Ce.touchHandled = !1;
|
|
1713
1713
|
}
|
|
1714
1714
|
function Wt(n) {
|
|
1715
1715
|
n.pointerType !== "mouse" && n.target.releasePointerCapture(n.pointerId);
|
|
1716
1716
|
}
|
|
1717
|
-
function tn(n) {
|
|
1718
|
-
z.dragElement && n.pointerType !== "mouse" && Yn(n, "mouseenter");
|
|
1719
|
-
}
|
|
1720
1717
|
function nn(n) {
|
|
1721
|
-
z.dragElement && n.pointerType !== "mouse" && (
|
|
1722
|
-
|
|
1718
|
+
z.dragElement && n.pointerType !== "mouse" && qn(n, "mouseenter");
|
|
1719
|
+
}
|
|
1720
|
+
function rn(n) {
|
|
1721
|
+
z.dragElement && n.pointerType !== "mouse" && (Ce.pointerLeaveTimeout = window.setTimeout(() => {
|
|
1722
|
+
delete Ce.pointerLeaveTimeout, qn(n, "mouseleave");
|
|
1723
1723
|
}, 10));
|
|
1724
1724
|
}
|
|
1725
1725
|
class Jt {
|
|
@@ -1970,7 +1970,7 @@ class pt extends Ni {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
1972
|
pt._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
|
|
1973
|
-
const
|
|
1973
|
+
const Ro = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
|
|
1974
1974
|
class mt extends Ni {
|
|
1975
1975
|
constructor(e, t = {}) {
|
|
1976
1976
|
var s;
|
|
@@ -2008,7 +2008,7 @@ class mt extends Ni {
|
|
|
2008
2008
|
/** @internal call when mouse goes down before a dragstart happens */
|
|
2009
2009
|
_mouseDown(e) {
|
|
2010
2010
|
if (!z.mouseHandled)
|
|
2011
|
-
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(
|
|
2011
|
+
return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Ro) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete z.dragElement, delete z.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), fe && (e.currentTarget.addEventListener("touchmove", Bt), e.currentTarget.addEventListener("touchend", Ft)), e.preventDefault(), document.activeElement && document.activeElement.blur(), z.mouseHandled = !0), !0;
|
|
2012
2012
|
}
|
|
2013
2013
|
/** @internal method to call actual drag event */
|
|
2014
2014
|
_callDrag(e) {
|
|
@@ -2122,7 +2122,7 @@ class mt extends Ni {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
mt.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
|
|
2125
|
-
class
|
|
2125
|
+
class So extends Ni {
|
|
2126
2126
|
constructor(e, t = {}) {
|
|
2127
2127
|
super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
|
|
2128
2128
|
}
|
|
@@ -2133,10 +2133,10 @@ class Co extends Ni {
|
|
|
2133
2133
|
super.off(e);
|
|
2134
2134
|
}
|
|
2135
2135
|
enable() {
|
|
2136
|
-
this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), fe && (this.el.addEventListener("pointerenter",
|
|
2136
|
+
this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), fe && (this.el.addEventListener("pointerenter", nn), this.el.addEventListener("pointerleave", rn)));
|
|
2137
2137
|
}
|
|
2138
2138
|
disable(e = !1) {
|
|
2139
|
-
this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), fe && (this.el.removeEventListener("pointerenter",
|
|
2139
|
+
this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), fe && (this.el.removeEventListener("pointerenter", nn), this.el.removeEventListener("pointerleave", rn)));
|
|
2140
2140
|
}
|
|
2141
2141
|
destroy() {
|
|
2142
2142
|
this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
|
|
@@ -2214,13 +2214,13 @@ class Oi {
|
|
|
2214
2214
|
return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
|
|
2215
2215
|
}
|
|
2216
2216
|
setupDroppable(e) {
|
|
2217
|
-
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new
|
|
2217
|
+
return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new So(this.el, e), this;
|
|
2218
2218
|
}
|
|
2219
2219
|
cleanDroppable() {
|
|
2220
2220
|
return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
|
-
class
|
|
2223
|
+
class No {
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Enable/disable/configure resizing for grid elements.
|
|
2226
2226
|
*
|
|
@@ -2335,7 +2335,7 @@ class _o {
|
|
|
2335
2335
|
* Copyright (c) 2021-2025 Alain Dumesny
|
|
2336
2336
|
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
|
2337
2337
|
*/
|
|
2338
|
-
const Q = new
|
|
2338
|
+
const Q = new No();
|
|
2339
2339
|
class T {
|
|
2340
2340
|
/**
|
|
2341
2341
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
@@ -2449,7 +2449,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2449
2449
|
delete t.cellHeight, this.cellHeight(c);
|
|
2450
2450
|
}
|
|
2451
2451
|
t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = fe), this._setStaticClass();
|
|
2452
|
-
const l = t.engineClass || T.engineClass ||
|
|
2452
|
+
const l = t.engineClass || T.engineClass || Ne;
|
|
2453
2453
|
if (this.engine = new l({
|
|
2454
2454
|
column: this.getColumn(),
|
|
2455
2455
|
float: t.float,
|
|
@@ -3868,7 +3868,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3868
3868
|
}
|
|
3869
3869
|
// legacy method removed
|
|
3870
3870
|
commit() {
|
|
3871
|
-
return
|
|
3871
|
+
return Do(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
3874
|
T.renderCB = (n, e) => {
|
|
@@ -3876,11 +3876,11 @@ T.renderCB = (n, e) => {
|
|
|
3876
3876
|
};
|
|
3877
3877
|
T.resizeToContentParent = ".grid-stack-item-content";
|
|
3878
3878
|
T.Utils = p;
|
|
3879
|
-
T.Engine =
|
|
3879
|
+
T.Engine = Ne;
|
|
3880
3880
|
T.GDRev = "12.3.2";
|
|
3881
3881
|
const Tt = /* @__PURE__ */ new WeakMap();
|
|
3882
|
-
function
|
|
3883
|
-
const { _gridStack: { value: e, set: t }, options: i } =
|
|
3882
|
+
function Oo({ children: n }) {
|
|
3883
|
+
const { _gridStack: { value: e, set: t }, options: i } = Yn(), r = I(/* @__PURE__ */ new Map()), s = I(null), o = I(i), a = K((c, d) => {
|
|
3884
3884
|
if (d.id && d.grid) {
|
|
3885
3885
|
let h = Tt.get(d.grid);
|
|
3886
3886
|
h || (h = /* @__PURE__ */ new Map(), Tt.set(d.grid, h)), h.set(d.id, c), r.current.set(d.id, c);
|
|
@@ -3894,7 +3894,7 @@ function Eo({ children: n }) {
|
|
|
3894
3894
|
return null;
|
|
3895
3895
|
}, [a]), u = (c, d) => {
|
|
3896
3896
|
const { children: h, ...f } = c, { children: x, ...v } = d;
|
|
3897
|
-
return
|
|
3897
|
+
return Dn(f, v);
|
|
3898
3898
|
};
|
|
3899
3899
|
return yi(() => {
|
|
3900
3900
|
if (!u(i, o.current) && e)
|
|
@@ -3911,7 +3911,7 @@ function Eo({ children: n }) {
|
|
|
3911
3911
|
} catch (c) {
|
|
3912
3912
|
console.error("Error initializing gridstack", c);
|
|
3913
3913
|
}
|
|
3914
|
-
}, [e, l, t]), g(
|
|
3914
|
+
}, [e, l, t]), g(Vn.Provider, {
|
|
3915
3915
|
value: B(() => ({
|
|
3916
3916
|
getWidgetContainer: (c) => {
|
|
3917
3917
|
if (e) {
|
|
@@ -3955,7 +3955,7 @@ const Ai = ({ options: n, widgets: e, onChange: t, className: i }) => {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
return d;
|
|
3957
3957
|
};
|
|
3958
|
-
return g(
|
|
3958
|
+
return g(wo, {
|
|
3959
3959
|
options: s,
|
|
3960
3960
|
widgets: e,
|
|
3961
3961
|
onResizeStop: (l, u) => {
|
|
@@ -3972,16 +3972,16 @@ const Ai = ({ options: n, widgets: e, onChange: t, className: i }) => {
|
|
|
3972
3972
|
}));
|
|
3973
3973
|
},
|
|
3974
3974
|
onChange: t,
|
|
3975
|
-
children: g(
|
|
3976
|
-
children: g(
|
|
3975
|
+
children: g(Oo, {
|
|
3976
|
+
children: g(Eo, {})
|
|
3977
3977
|
})
|
|
3978
3978
|
});
|
|
3979
3979
|
};
|
|
3980
3980
|
Ai.displayName = "F0GridStack";
|
|
3981
|
-
const
|
|
3981
|
+
const Ao = (n, e, t) => g("div", {
|
|
3982
3982
|
children: n
|
|
3983
3983
|
}), Zt = ({ widgets: n = [], editMode: e = !1, onChange: t = () => {
|
|
3984
|
-
}, WidgetWrapper: i =
|
|
3984
|
+
}, WidgetWrapper: i = Ao, main: r = !1, deps: s }) => {
|
|
3985
3985
|
const o = K((y, b, D) => g(Ri.div, {
|
|
3986
3986
|
className: "h-full w-full",
|
|
3987
3987
|
initial: {
|
|
@@ -4099,29 +4099,29 @@ const Do = (n, e, t) => g("div", {
|
|
|
4099
4099
|
});
|
|
4100
4100
|
const A = Array.from(E.values()).some((m) => m) || D;
|
|
4101
4101
|
y && !b && !A ? (x.current = !0, d((m) => m.map((_) => {
|
|
4102
|
-
const O = n.find((
|
|
4102
|
+
const O = n.find((q) => q.id === _.id);
|
|
4103
4103
|
if (!O)
|
|
4104
4104
|
return _;
|
|
4105
|
-
const
|
|
4105
|
+
const M = l(O, s);
|
|
4106
4106
|
return {
|
|
4107
4107
|
..._,
|
|
4108
4108
|
noMove: !e,
|
|
4109
4109
|
noResize: !e,
|
|
4110
4110
|
locked: O.locked,
|
|
4111
4111
|
meta: O.meta,
|
|
4112
|
-
_originalContent:
|
|
4113
|
-
content: o(
|
|
4112
|
+
_originalContent: M,
|
|
4113
|
+
content: o(M, O.meta, e)
|
|
4114
4114
|
};
|
|
4115
4115
|
}))) : (b || A) && d((m) => {
|
|
4116
4116
|
const _ = new Map(m.map((O) => [O.id, O]));
|
|
4117
4117
|
return n.map((O) => {
|
|
4118
|
-
const
|
|
4118
|
+
const M = _.get(O.id), q = E.get(O.id) ?? !1;
|
|
4119
4119
|
let X;
|
|
4120
|
-
|
|
4120
|
+
q || !M ? X = l(O, s) : X = M._originalContent ?? l(O, s);
|
|
4121
4121
|
const U = {
|
|
4122
4122
|
id: O.id,
|
|
4123
|
-
h: (
|
|
4124
|
-
w: (
|
|
4123
|
+
h: (M == null ? void 0 : M.h) ?? O.h ?? 1,
|
|
4124
|
+
w: (M == null ? void 0 : M.w) ?? O.w ?? 1,
|
|
4125
4125
|
allowedSizes: O.availableSizes,
|
|
4126
4126
|
noMove: !e,
|
|
4127
4127
|
noResize: !e,
|
|
@@ -4129,7 +4129,7 @@ const Do = (n, e, t) => g("div", {
|
|
|
4129
4129
|
meta: O.meta,
|
|
4130
4130
|
_originalContent: X,
|
|
4131
4131
|
content: o(X, O.meta, e)
|
|
4132
|
-
}, te = (
|
|
4132
|
+
}, te = (M == null ? void 0 : M.x) ?? O.x, G = (M == null ? void 0 : M.y) ?? O.y;
|
|
4133
4133
|
return te !== void 0 && (U.x = te), G !== void 0 && (U.y = G), U;
|
|
4134
4134
|
});
|
|
4135
4135
|
}), h.current = e, f.current = n, S.current = s;
|
|
@@ -4142,13 +4142,13 @@ const Do = (n, e, t) => g("div", {
|
|
|
4142
4142
|
};
|
|
4143
4143
|
Zt.displayName = "GroupGrid";
|
|
4144
4144
|
Zt.__isPageLayoutGroup = !0;
|
|
4145
|
-
const
|
|
4145
|
+
const To = (n, e) => {
|
|
4146
4146
|
const t = e;
|
|
4147
4147
|
return t.displayName = n, t.__isPageLayoutBlock = !0, t;
|
|
4148
|
-
},
|
|
4148
|
+
}, ko = (n, e) => {
|
|
4149
4149
|
const t = e;
|
|
4150
4150
|
return t.displayName = n, t.__isPageLayoutGroup = !0, t;
|
|
4151
|
-
},
|
|
4151
|
+
}, zo = (n, e) => g("svg", {
|
|
4152
4152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4153
4153
|
fill: "none",
|
|
4154
4154
|
viewBox: "0 0 24 24",
|
|
@@ -4159,8 +4159,8 @@ const Ro = (n, e) => {
|
|
|
4159
4159
|
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",
|
|
4160
4160
|
vectorEffect: "non-scaling-stroke"
|
|
4161
4161
|
})
|
|
4162
|
-
}),
|
|
4163
|
-
const t =
|
|
4162
|
+
}), Jn = le(zo), Po = ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style", "variant", "loading", "emoji"], Zn = le((n, e) => {
|
|
4163
|
+
const t = Po.reduce((i, r) => {
|
|
4164
4164
|
const { [r]: s, ...o } = i;
|
|
4165
4165
|
return o;
|
|
4166
4166
|
}, n);
|
|
@@ -4168,10 +4168,10 @@ const Ro = (n, e) => {
|
|
|
4168
4168
|
...t,
|
|
4169
4169
|
variant: "ai",
|
|
4170
4170
|
ref: e,
|
|
4171
|
-
iconRotate: n.icon ==
|
|
4171
|
+
iconRotate: n.icon == Jn
|
|
4172
4172
|
});
|
|
4173
4173
|
});
|
|
4174
|
-
|
|
4174
|
+
Zn.displayName = "AIButton";
|
|
4175
4175
|
const hi = Di({
|
|
4176
4176
|
base: "text-base text-f1-foreground",
|
|
4177
4177
|
variants: {
|
|
@@ -4213,7 +4213,7 @@ const hi = Di({
|
|
|
4213
4213
|
variant: "body",
|
|
4214
4214
|
align: "left"
|
|
4215
4215
|
}
|
|
4216
|
-
}),
|
|
4216
|
+
}), Mo = {
|
|
4217
4217
|
"heading-large": "h1",
|
|
4218
4218
|
heading: "h2",
|
|
4219
4219
|
body: "p",
|
|
@@ -4233,9 +4233,9 @@ const hi = Di({
|
|
|
4233
4233
|
"info-strong": "p",
|
|
4234
4234
|
code: "code"
|
|
4235
4235
|
}, Ti = le(({ content: n, variant: e, align: t, className: i, as: r, ellipsis: s, noEllipsisTooltip: o, markdown: a, ...l }, u) => {
|
|
4236
|
-
const c = r ??
|
|
4236
|
+
const c = r ?? Mo[e ?? "body"];
|
|
4237
4237
|
if (s !== void 0)
|
|
4238
|
-
return g(
|
|
4238
|
+
return g(Ur, {
|
|
4239
4239
|
ref: u,
|
|
4240
4240
|
lines: typeof s == "number" ? s : 1,
|
|
4241
4241
|
noTooltip: o,
|
|
@@ -4249,8 +4249,8 @@ const hi = Di({
|
|
|
4249
4249
|
children: n
|
|
4250
4250
|
});
|
|
4251
4251
|
if (a) {
|
|
4252
|
-
const d =
|
|
4253
|
-
return
|
|
4252
|
+
const d = Kr(n);
|
|
4253
|
+
return tn(c, {
|
|
4254
4254
|
...l,
|
|
4255
4255
|
className: j(hi({
|
|
4256
4256
|
variant: e,
|
|
@@ -4262,7 +4262,7 @@ const hi = Di({
|
|
|
4262
4262
|
}
|
|
4263
4263
|
});
|
|
4264
4264
|
}
|
|
4265
|
-
return
|
|
4265
|
+
return tn(c, {
|
|
4266
4266
|
...l,
|
|
4267
4267
|
className: j(hi({
|
|
4268
4268
|
variant: e,
|
|
@@ -4272,20 +4272,20 @@ const hi = Di({
|
|
|
4272
4272
|
}, n);
|
|
4273
4273
|
});
|
|
4274
4274
|
Ti.displayName = "Text";
|
|
4275
|
-
const
|
|
4275
|
+
const Qn = le((n, e) => g(Ti, {
|
|
4276
4276
|
ref: e,
|
|
4277
4277
|
markdown: n.markdown ?? !0,
|
|
4278
4278
|
...n
|
|
4279
4279
|
}));
|
|
4280
|
-
|
|
4281
|
-
const
|
|
4280
|
+
Qn.displayName = "F0Text";
|
|
4281
|
+
const Oc = [
|
|
4282
4282
|
"person",
|
|
4283
4283
|
"team",
|
|
4284
4284
|
"company",
|
|
4285
4285
|
"file",
|
|
4286
4286
|
"flag"
|
|
4287
|
-
],
|
|
4288
|
-
const [u, c] = W(!1), [d, h] = W(!1), f =
|
|
4287
|
+
], er = ({ title: n, draggable: e = !1, onDragStart: t, onDragEnd: i, isDragging: r = !1, AIButton: s, actions: o, children: a, selected: l = !1 }) => {
|
|
4288
|
+
const [u, c] = W(!1), [d, h] = W(!1), f = Xr(), x = (w) => {
|
|
4289
4289
|
c(w);
|
|
4290
4290
|
}, v = d || u;
|
|
4291
4291
|
return H(() => {
|
|
@@ -4296,32 +4296,32 @@ const wc = [
|
|
|
4296
4296
|
return document.addEventListener("mouseup", w), () => {
|
|
4297
4297
|
document.removeEventListener("mouseup", w);
|
|
4298
4298
|
};
|
|
4299
|
-
}, [r, i]),
|
|
4299
|
+
}, [r, i]), P("div", {
|
|
4300
4300
|
className: j("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 && u ? "border-f1-border-hover" : e && "hover:border-f1-border-hover", l && "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)]"),
|
|
4301
4301
|
onMouseEnter: () => h(!0),
|
|
4302
4302
|
onMouseLeave: () => h(!1),
|
|
4303
|
-
children: [
|
|
4303
|
+
children: [P("div", {
|
|
4304
4304
|
className: "flex h-12 w-full items-center justify-between gap-3",
|
|
4305
|
-
children: [
|
|
4305
|
+
children: [P("div", {
|
|
4306
4306
|
className: j("flex min-w-0 flex-1 items-center", !e && "pl-4", !o && !s && "pr-4"),
|
|
4307
4307
|
children: [e && g("div", {
|
|
4308
4308
|
className: "flex h-12 w-12 items-center justify-center text-f1-icon-secondary hover:cursor-grab",
|
|
4309
4309
|
onMouseDown: t,
|
|
4310
4310
|
"data-gs-handle": "true",
|
|
4311
|
-
children: g(
|
|
4312
|
-
icon:
|
|
4311
|
+
children: g(Sn, {
|
|
4312
|
+
icon: Yr,
|
|
4313
4313
|
size: "xs"
|
|
4314
4314
|
})
|
|
4315
4315
|
}), g("div", {
|
|
4316
4316
|
className: j("flex min-w-0 flex-1 items-center", e && "-translate-x-1.5"),
|
|
4317
|
-
children: g(
|
|
4317
|
+
children: g(Qn, {
|
|
4318
4318
|
variant: "label",
|
|
4319
4319
|
content: n,
|
|
4320
4320
|
ellipsis: !0
|
|
4321
4321
|
})
|
|
4322
4322
|
})]
|
|
4323
|
-
}), g(
|
|
4324
|
-
children: (s || o) && v &&
|
|
4323
|
+
}), g(Vr, {
|
|
4324
|
+
children: (s || o) && v && P(Ri.div, {
|
|
4325
4325
|
className: j("flex shrink-0 items-center gap-0.5 pr-2", !o && "pr-4"),
|
|
4326
4326
|
initial: {
|
|
4327
4327
|
opacity: 0
|
|
@@ -4338,19 +4338,19 @@ const wc = [
|
|
|
4338
4338
|
},
|
|
4339
4339
|
children: [s && g("div", {
|
|
4340
4340
|
className: "flex h-6 items-center",
|
|
4341
|
-
children: g(
|
|
4341
|
+
children: g(Zn, {
|
|
4342
4342
|
size: "sm",
|
|
4343
4343
|
label: f.ai.ask,
|
|
4344
4344
|
onClick: s,
|
|
4345
|
-
icon:
|
|
4345
|
+
icon: Jn
|
|
4346
4346
|
})
|
|
4347
|
-
}), o && g(
|
|
4347
|
+
}), o && g(qr, {
|
|
4348
4348
|
items: o,
|
|
4349
4349
|
open: u,
|
|
4350
4350
|
onOpenChange: x,
|
|
4351
4351
|
align: "end",
|
|
4352
4352
|
children: g(Si, {
|
|
4353
|
-
icon:
|
|
4353
|
+
icon: Jr,
|
|
4354
4354
|
label: "Actions",
|
|
4355
4355
|
variant: "ghost",
|
|
4356
4356
|
size: "md",
|
|
@@ -4367,45 +4367,45 @@ const wc = [
|
|
|
4367
4367
|
children: a
|
|
4368
4368
|
})]
|
|
4369
4369
|
});
|
|
4370
|
-
},
|
|
4370
|
+
}, Lo = () => P("div", {
|
|
4371
4371
|
className: "relative flex h-full w-full cursor-progress flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background",
|
|
4372
4372
|
children: [g("div", {
|
|
4373
4373
|
className: "flex h-12 w-full items-center px-4",
|
|
4374
|
-
children: g(
|
|
4374
|
+
children: g(xe, {
|
|
4375
4375
|
className: "h-3 w-full max-w-16 rounded-md"
|
|
4376
4376
|
})
|
|
4377
|
-
}),
|
|
4377
|
+
}), P("div", {
|
|
4378
4378
|
className: "flex flex-1 items-end gap-2 px-4 pb-4",
|
|
4379
|
-
children: [g(
|
|
4379
|
+
children: [g(xe, {
|
|
4380
4380
|
className: "h-1/2 w-full rounded-sm"
|
|
4381
|
-
}), g(
|
|
4381
|
+
}), g(xe, {
|
|
4382
4382
|
className: "h-1/3 w-full rounded-sm"
|
|
4383
|
-
}), g(
|
|
4383
|
+
}), g(xe, {
|
|
4384
4384
|
className: "h-1/5 w-full rounded-sm"
|
|
4385
|
-
}), g(
|
|
4385
|
+
}), g(xe, {
|
|
4386
4386
|
className: "h-1/3 w-full rounded-sm"
|
|
4387
|
-
}), g(
|
|
4387
|
+
}), g(xe, {
|
|
4388
4388
|
className: "h-full w-full rounded-sm"
|
|
4389
|
-
}), g(
|
|
4389
|
+
}), g(xe, {
|
|
4390
4390
|
className: "h-3/4 w-full rounded-sm"
|
|
4391
4391
|
})]
|
|
4392
4392
|
})]
|
|
4393
4393
|
});
|
|
4394
|
-
|
|
4395
|
-
const
|
|
4394
|
+
er.displayName = "F0Widget";
|
|
4395
|
+
const Io = Rn(er, Lo), Ho = ({ children: n, title: e, draggable: t = !1, actions: i, aiButton: r }) => g(Io, {
|
|
4396
4396
|
title: e,
|
|
4397
4397
|
draggable: t,
|
|
4398
4398
|
actions: i,
|
|
4399
4399
|
AIButton: r,
|
|
4400
4400
|
children: n
|
|
4401
|
-
}),
|
|
4401
|
+
}), tr = ({ widgets: n, editMode: e = !1, onChange: t = () => {
|
|
4402
4402
|
}, deps: i, ...r }) => g(Zt, {
|
|
4403
4403
|
widgets: n,
|
|
4404
4404
|
editMode: e,
|
|
4405
4405
|
onChange: t,
|
|
4406
4406
|
deps: i,
|
|
4407
4407
|
...r,
|
|
4408
|
-
WidgetWrapper: (s, o, a) => g(
|
|
4408
|
+
WidgetWrapper: (s, o, a) => g(Ho, {
|
|
4409
4409
|
title: (o == null ? void 0 : o.title) ?? "",
|
|
4410
4410
|
draggable: a,
|
|
4411
4411
|
actions: o == null ? void 0 : o.actions,
|
|
@@ -4413,8 +4413,8 @@ const ko = jr(Zn, To), zo = ({ children: n, title: e, draggable: t = !1, actions
|
|
|
4413
4413
|
children: s
|
|
4414
4414
|
})
|
|
4415
4415
|
});
|
|
4416
|
-
|
|
4417
|
-
const
|
|
4416
|
+
tr.displayName = "Dashboard";
|
|
4417
|
+
const Bo = ko("Dashboard", tr), Ac = we("Dashboard", Bo), Fo = Di({
|
|
4418
4418
|
base: "flex w-full flex-col p-4",
|
|
4419
4419
|
variants: {
|
|
4420
4420
|
variant: {
|
|
@@ -4423,18 +4423,18 @@ const Po = So("Dashboard", Qn), Cc = Re("Dashboard", Po), Mo = Di({
|
|
|
4423
4423
|
full: "p-0"
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
|
-
}),
|
|
4426
|
+
}), Wo = (n) => (n || []).map((e) => e.items).reduce((e, t) => (e.length > 0 && e.push({
|
|
4427
4427
|
type: "separator"
|
|
4428
|
-
}), e.push(...t), e), []),
|
|
4428
|
+
}), e.push(...t), e), []), Go = (n) => {
|
|
4429
4429
|
const e = (t) => "onClick" in t;
|
|
4430
4430
|
return Array.isArray(n) ? n.every(e) ? [{
|
|
4431
4431
|
items: n
|
|
4432
4432
|
}] : n : [n];
|
|
4433
4433
|
}, Qt = le(({ children: n, variant: e = "default", className: t, draggable: i = !1, onDragStart: r, onDragEnd: s, onDrop: o, dragId: a, primaryAction: l, ...u }, c) => {
|
|
4434
|
-
const d = B(() =>
|
|
4435
|
-
return
|
|
4434
|
+
const d = B(() => Go(u.actions || []), [u.actions]), h = B(() => d.flatMap((x) => x.items), [d]), f = B(() => h.length > 0 || !!l, [h, l]);
|
|
4435
|
+
return P("div", {
|
|
4436
4436
|
ref: c,
|
|
4437
|
-
className: j(
|
|
4437
|
+
className: j(Fo({
|
|
4438
4438
|
variant: e
|
|
4439
4439
|
}), "relative", t),
|
|
4440
4440
|
draggable: i,
|
|
@@ -4443,10 +4443,10 @@ const Po = So("Dashboard", Qn), Cc = Re("Dashboard", Po), Mo = Di({
|
|
|
4443
4443
|
onDrop: o,
|
|
4444
4444
|
"data-drag-id": a,
|
|
4445
4445
|
...u,
|
|
4446
|
-
children: [f &&
|
|
4446
|
+
children: [f && P("div", {
|
|
4447
4447
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
4448
|
-
children: [!!l && l, h.length > 0 && g(
|
|
4449
|
-
items:
|
|
4448
|
+
children: [!!l && l, h.length > 0 && g(Zr, {
|
|
4449
|
+
items: Wo(d)
|
|
4450
4450
|
})]
|
|
4451
4451
|
}), g("div", {
|
|
4452
4452
|
children: n
|
|
@@ -4455,13 +4455,13 @@ const Po = So("Dashboard", Qn), Cc = Re("Dashboard", Po), Mo = Di({
|
|
|
4455
4455
|
});
|
|
4456
4456
|
Qt.displayName = "Block";
|
|
4457
4457
|
Qt.__isPageLayoutBlock = !0;
|
|
4458
|
-
const
|
|
4458
|
+
const $o = ({ title: n = "", description: e, titleLevel: t = "h2", children: i, className: r, ...s }) => {
|
|
4459
4459
|
if (!n) return null;
|
|
4460
4460
|
const o = t;
|
|
4461
|
-
return
|
|
4461
|
+
return P(Qt, {
|
|
4462
4462
|
...s,
|
|
4463
4463
|
className: j("space-y-4", r),
|
|
4464
|
-
children: [
|
|
4464
|
+
children: [P("div", {
|
|
4465
4465
|
className: "space-y-2",
|
|
4466
4466
|
children: [g(o, {
|
|
4467
4467
|
className: j("font-semibold text-f1-foreground", {
|
|
@@ -4482,15 +4482,15 @@ const Ho = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4482
4482
|
children: i
|
|
4483
4483
|
})]
|
|
4484
4484
|
});
|
|
4485
|
-
},
|
|
4485
|
+
}, jo = To("BlockContent", $o), Uo = (n) => !jn(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutBlock" in n.type, Ko = (n) => !jn(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutGroup" in n.type, ir = (n, e, t) => {
|
|
4486
4486
|
const i = Lt.toArray(e);
|
|
4487
4487
|
for (const r of i)
|
|
4488
|
-
t.includes("block") &&
|
|
4488
|
+
t.includes("block") && Uo(r) || t.includes("group") && Ko(r) || console.warn(
|
|
4489
4489
|
`${n}: Children components must inherit from PageLayoutBlock or PageLayoutGroup. Found:`,
|
|
4490
4490
|
r
|
|
4491
4491
|
);
|
|
4492
4492
|
}, ki = le(({ children: n, onSort: e, ...t }, i) => {
|
|
4493
|
-
|
|
4493
|
+
ir("GroupLinear", n, ["block"]);
|
|
4494
4494
|
const [r, s] = W(Lt.toArray(n));
|
|
4495
4495
|
return H(() => {
|
|
4496
4496
|
s(Lt.toArray(n));
|
|
@@ -4499,14 +4499,14 @@ const Ho = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4499
4499
|
}, [r, e]), g("div", {
|
|
4500
4500
|
ref: i,
|
|
4501
4501
|
...t,
|
|
4502
|
-
children: r.map((o, a) => g(
|
|
4502
|
+
children: r.map((o, a) => g(ao, {
|
|
4503
4503
|
children: o
|
|
4504
4504
|
}, a))
|
|
4505
4505
|
});
|
|
4506
4506
|
});
|
|
4507
4507
|
ki.displayName = "GroupLinear";
|
|
4508
4508
|
ki.__isPageLayoutGroup = !0;
|
|
4509
|
-
function
|
|
4509
|
+
function Xo() {
|
|
4510
4510
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
4511
4511
|
e[t] = arguments[t];
|
|
4512
4512
|
return B(
|
|
@@ -4539,11 +4539,11 @@ function Pi(n) {
|
|
|
4539
4539
|
function xt(n) {
|
|
4540
4540
|
return Qe(n) ? !1 : n instanceof ee(n).HTMLElement;
|
|
4541
4541
|
}
|
|
4542
|
-
function
|
|
4542
|
+
function nr(n) {
|
|
4543
4543
|
return n instanceof ee(n).SVGElement;
|
|
4544
4544
|
}
|
|
4545
4545
|
function et(n) {
|
|
4546
|
-
return n ? Qe(n) ? n.document : zi(n) ? Pi(n) ? n : xt(n) ||
|
|
4546
|
+
return n ? Qe(n) ? n.document : zi(n) ? Pi(n) ? n : xt(n) || nr(n) ? n.ownerDocument : document : document : document;
|
|
4547
4547
|
}
|
|
4548
4548
|
const ge = ei ? yi : H;
|
|
4549
4549
|
function ti(n) {
|
|
@@ -4556,7 +4556,7 @@ function ti(n) {
|
|
|
4556
4556
|
return e.current == null ? void 0 : e.current(...i);
|
|
4557
4557
|
}, []);
|
|
4558
4558
|
}
|
|
4559
|
-
function
|
|
4559
|
+
function Yo() {
|
|
4560
4560
|
const n = I(null), e = K((i, r) => {
|
|
4561
4561
|
n.current = setInterval(i, r);
|
|
4562
4562
|
}, []), t = K(() => {
|
|
@@ -4607,7 +4607,7 @@ function Ct(n, e) {
|
|
|
4607
4607
|
return fi[n] = t, n + "-" + t;
|
|
4608
4608
|
}, [n, e]);
|
|
4609
4609
|
}
|
|
4610
|
-
function
|
|
4610
|
+
function rr(n) {
|
|
4611
4611
|
return function(e) {
|
|
4612
4612
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
4613
4613
|
i[r - 1] = arguments[r];
|
|
@@ -4623,8 +4623,8 @@ function ir(n) {
|
|
|
4623
4623
|
});
|
|
4624
4624
|
};
|
|
4625
4625
|
}
|
|
4626
|
-
const
|
|
4627
|
-
function
|
|
4626
|
+
const Ve = /* @__PURE__ */ rr(1), yt = /* @__PURE__ */ rr(-1);
|
|
4627
|
+
function Vo(n) {
|
|
4628
4628
|
return "clientX" in n && "clientY" in n;
|
|
4629
4629
|
}
|
|
4630
4630
|
function ii(n) {
|
|
@@ -4635,7 +4635,7 @@ function ii(n) {
|
|
|
4635
4635
|
} = ee(n.target);
|
|
4636
4636
|
return e && n instanceof e;
|
|
4637
4637
|
}
|
|
4638
|
-
function
|
|
4638
|
+
function qo(n) {
|
|
4639
4639
|
if (!n)
|
|
4640
4640
|
return !1;
|
|
4641
4641
|
const {
|
|
@@ -4644,7 +4644,7 @@ function Uo(n) {
|
|
|
4644
4644
|
return e && n instanceof e;
|
|
4645
4645
|
}
|
|
4646
4646
|
function jt(n) {
|
|
4647
|
-
if (
|
|
4647
|
+
if (qo(n)) {
|
|
4648
4648
|
if (n.touches && n.touches.length) {
|
|
4649
4649
|
const {
|
|
4650
4650
|
clientX: e,
|
|
@@ -4665,12 +4665,12 @@ function jt(n) {
|
|
|
4665
4665
|
};
|
|
4666
4666
|
}
|
|
4667
4667
|
}
|
|
4668
|
-
return
|
|
4668
|
+
return Vo(n) ? {
|
|
4669
4669
|
x: n.clientX,
|
|
4670
4670
|
y: n.clientY
|
|
4671
4671
|
} : null;
|
|
4672
4672
|
}
|
|
4673
|
-
const
|
|
4673
|
+
const Be = /* @__PURE__ */ Object.freeze({
|
|
4674
4674
|
Translate: {
|
|
4675
4675
|
toString(n) {
|
|
4676
4676
|
if (!n)
|
|
@@ -4696,7 +4696,7 @@ const He = /* @__PURE__ */ Object.freeze({
|
|
|
4696
4696
|
Transform: {
|
|
4697
4697
|
toString(n) {
|
|
4698
4698
|
if (n)
|
|
4699
|
-
return [
|
|
4699
|
+
return [Be.Translate.toString(n), Be.Scale.toString(n)].join(" ");
|
|
4700
4700
|
}
|
|
4701
4701
|
},
|
|
4702
4702
|
Transition: {
|
|
@@ -4709,24 +4709,24 @@ const He = /* @__PURE__ */ Object.freeze({
|
|
|
4709
4709
|
return e + " " + t + "ms " + i;
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
|
-
}),
|
|
4713
|
-
function
|
|
4714
|
-
return n.matches(
|
|
4712
|
+
}), sn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
4713
|
+
function Jo(n) {
|
|
4714
|
+
return n.matches(sn) ? n : n.querySelector(sn);
|
|
4715
4715
|
}
|
|
4716
|
-
const
|
|
4716
|
+
const Zo = {
|
|
4717
4717
|
display: "none"
|
|
4718
4718
|
};
|
|
4719
|
-
function
|
|
4719
|
+
function Qo(n) {
|
|
4720
4720
|
let {
|
|
4721
4721
|
id: e,
|
|
4722
4722
|
value: t
|
|
4723
4723
|
} = n;
|
|
4724
4724
|
return L.createElement("div", {
|
|
4725
4725
|
id: e,
|
|
4726
|
-
style:
|
|
4726
|
+
style: Zo
|
|
4727
4727
|
}, t);
|
|
4728
4728
|
}
|
|
4729
|
-
function
|
|
4729
|
+
function ea(n) {
|
|
4730
4730
|
let {
|
|
4731
4731
|
id: e,
|
|
4732
4732
|
announcement: t,
|
|
@@ -4754,7 +4754,7 @@ function qo(n) {
|
|
|
4754
4754
|
"aria-atomic": !0
|
|
4755
4755
|
}, t);
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4757
|
+
function ta() {
|
|
4758
4758
|
const [n, e] = W("");
|
|
4759
4759
|
return {
|
|
4760
4760
|
announce: K((i) => {
|
|
@@ -4763,16 +4763,16 @@ function Vo() {
|
|
|
4763
4763
|
announcement: n
|
|
4764
4764
|
};
|
|
4765
4765
|
}
|
|
4766
|
-
const
|
|
4767
|
-
function
|
|
4768
|
-
const e =
|
|
4766
|
+
const sr = /* @__PURE__ */ Oe(null);
|
|
4767
|
+
function ia(n) {
|
|
4768
|
+
const e = _e(sr);
|
|
4769
4769
|
H(() => {
|
|
4770
4770
|
if (!e)
|
|
4771
4771
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
4772
4772
|
return e(n);
|
|
4773
4773
|
}, [n, e]);
|
|
4774
4774
|
}
|
|
4775
|
-
function
|
|
4775
|
+
function na() {
|
|
4776
4776
|
const [n] = W(() => /* @__PURE__ */ new Set()), e = K((i) => (n.add(i), () => n.delete(i)), [n]);
|
|
4777
4777
|
return [K((i) => {
|
|
4778
4778
|
let {
|
|
@@ -4785,13 +4785,13 @@ function Zo() {
|
|
|
4785
4785
|
});
|
|
4786
4786
|
}, [n]), e];
|
|
4787
4787
|
}
|
|
4788
|
-
const
|
|
4788
|
+
const ra = {
|
|
4789
4789
|
draggable: `
|
|
4790
4790
|
To pick up a draggable item, press the space bar.
|
|
4791
4791
|
While dragging, use the arrow keys to move the item.
|
|
4792
4792
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
4793
4793
|
`
|
|
4794
|
-
},
|
|
4794
|
+
}, sa = {
|
|
4795
4795
|
onDragStart(n) {
|
|
4796
4796
|
let {
|
|
4797
4797
|
active: e
|
|
@@ -4819,20 +4819,20 @@ const Qo = {
|
|
|
4819
4819
|
return "Dragging was cancelled. Draggable item " + e.id + " was dropped.";
|
|
4820
4820
|
}
|
|
4821
4821
|
};
|
|
4822
|
-
function
|
|
4822
|
+
function oa(n) {
|
|
4823
4823
|
let {
|
|
4824
|
-
announcements: e =
|
|
4824
|
+
announcements: e = sa,
|
|
4825
4825
|
container: t,
|
|
4826
4826
|
hiddenTextDescribedById: i,
|
|
4827
|
-
screenReaderInstructions: r =
|
|
4827
|
+
screenReaderInstructions: r = ra
|
|
4828
4828
|
} = n;
|
|
4829
4829
|
const {
|
|
4830
4830
|
announce: s,
|
|
4831
4831
|
announcement: o
|
|
4832
|
-
} =
|
|
4832
|
+
} = ta(), a = Ct("DndLiveRegion"), [l, u] = W(!1);
|
|
4833
4833
|
if (H(() => {
|
|
4834
4834
|
u(!0);
|
|
4835
|
-
}, []),
|
|
4835
|
+
}, []), ia(B(() => ({
|
|
4836
4836
|
onDragStart(d) {
|
|
4837
4837
|
let {
|
|
4838
4838
|
active: h
|
|
@@ -4883,14 +4883,14 @@ function ta(n) {
|
|
|
4883
4883
|
}
|
|
4884
4884
|
}), [s, e])), !l)
|
|
4885
4885
|
return null;
|
|
4886
|
-
const c = L.createElement(L.Fragment, null, L.createElement(
|
|
4886
|
+
const c = L.createElement(L.Fragment, null, L.createElement(Qo, {
|
|
4887
4887
|
id: i,
|
|
4888
4888
|
value: r.draggable
|
|
4889
|
-
}), L.createElement(
|
|
4889
|
+
}), L.createElement(ea, {
|
|
4890
4890
|
id: a,
|
|
4891
4891
|
announcement: o
|
|
4892
4892
|
}));
|
|
4893
|
-
return t ?
|
|
4893
|
+
return t ? Un(c, t) : c;
|
|
4894
4894
|
}
|
|
4895
4895
|
var Y;
|
|
4896
4896
|
(function(n) {
|
|
@@ -4898,7 +4898,7 @@ var Y;
|
|
|
4898
4898
|
})(Y || (Y = {}));
|
|
4899
4899
|
function Ut() {
|
|
4900
4900
|
}
|
|
4901
|
-
function
|
|
4901
|
+
function on(n, e) {
|
|
4902
4902
|
return B(
|
|
4903
4903
|
() => ({
|
|
4904
4904
|
sensor: n,
|
|
@@ -4908,7 +4908,7 @@ function sn(n, e) {
|
|
|
4908
4908
|
[n, e]
|
|
4909
4909
|
);
|
|
4910
4910
|
}
|
|
4911
|
-
function
|
|
4911
|
+
function aa() {
|
|
4912
4912
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
4913
4913
|
e[t] = arguments[t];
|
|
4914
4914
|
return B(
|
|
@@ -4921,10 +4921,10 @@ const pe = /* @__PURE__ */ Object.freeze({
|
|
|
4921
4921
|
x: 0,
|
|
4922
4922
|
y: 0
|
|
4923
4923
|
});
|
|
4924
|
-
function
|
|
4924
|
+
function la(n, e) {
|
|
4925
4925
|
return Math.sqrt(Math.pow(n.x - e.x, 2) + Math.pow(n.y - e.y, 2));
|
|
4926
4926
|
}
|
|
4927
|
-
function
|
|
4927
|
+
function ca(n, e) {
|
|
4928
4928
|
const t = jt(n);
|
|
4929
4929
|
if (!t)
|
|
4930
4930
|
return "0 0";
|
|
@@ -4934,7 +4934,7 @@ function ra(n, e) {
|
|
|
4934
4934
|
};
|
|
4935
4935
|
return i.x + "% " + i.y + "%";
|
|
4936
4936
|
}
|
|
4937
|
-
function
|
|
4937
|
+
function da(n, e) {
|
|
4938
4938
|
let {
|
|
4939
4939
|
data: {
|
|
4940
4940
|
value: t
|
|
@@ -4946,7 +4946,7 @@ function sa(n, e) {
|
|
|
4946
4946
|
} = e;
|
|
4947
4947
|
return t - i;
|
|
4948
4948
|
}
|
|
4949
|
-
function
|
|
4949
|
+
function ua(n, e) {
|
|
4950
4950
|
let {
|
|
4951
4951
|
data: {
|
|
4952
4952
|
value: t
|
|
@@ -4958,7 +4958,7 @@ function oa(n, e) {
|
|
|
4958
4958
|
} = e;
|
|
4959
4959
|
return i - t;
|
|
4960
4960
|
}
|
|
4961
|
-
function
|
|
4961
|
+
function an(n) {
|
|
4962
4962
|
let {
|
|
4963
4963
|
left: e,
|
|
4964
4964
|
top: t,
|
|
@@ -4979,25 +4979,25 @@ function on(n) {
|
|
|
4979
4979
|
y: t + i
|
|
4980
4980
|
}];
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4982
|
+
function or(n, e) {
|
|
4983
4983
|
if (!n || n.length === 0)
|
|
4984
4984
|
return null;
|
|
4985
4985
|
const [t] = n;
|
|
4986
4986
|
return t[e];
|
|
4987
4987
|
}
|
|
4988
|
-
const
|
|
4988
|
+
const ha = (n) => {
|
|
4989
4989
|
let {
|
|
4990
4990
|
collisionRect: e,
|
|
4991
4991
|
droppableRects: t,
|
|
4992
4992
|
droppableContainers: i
|
|
4993
4993
|
} = n;
|
|
4994
|
-
const r =
|
|
4994
|
+
const r = an(e), s = [];
|
|
4995
4995
|
for (const o of i) {
|
|
4996
4996
|
const {
|
|
4997
4997
|
id: a
|
|
4998
4998
|
} = o, l = t.get(a);
|
|
4999
4999
|
if (l) {
|
|
5000
|
-
const u =
|
|
5000
|
+
const u = an(l), c = r.reduce((h, f, x) => h + la(u[x], f), 0), d = Number((c / 4).toFixed(4));
|
|
5001
5001
|
s.push({
|
|
5002
5002
|
id: a,
|
|
5003
5003
|
data: {
|
|
@@ -5007,9 +5007,9 @@ const aa = (n) => {
|
|
|
5007
5007
|
});
|
|
5008
5008
|
}
|
|
5009
5009
|
}
|
|
5010
|
-
return s.sort(
|
|
5010
|
+
return s.sort(da);
|
|
5011
5011
|
};
|
|
5012
|
-
function
|
|
5012
|
+
function fa(n, e) {
|
|
5013
5013
|
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;
|
|
5014
5014
|
if (i < r && t < s) {
|
|
5015
5015
|
const l = e.width * e.height, u = n.width * n.height, c = o * a, d = c / (l + u - c);
|
|
@@ -5017,7 +5017,7 @@ function la(n, e) {
|
|
|
5017
5017
|
}
|
|
5018
5018
|
return 0;
|
|
5019
5019
|
}
|
|
5020
|
-
const
|
|
5020
|
+
const ga = (n) => {
|
|
5021
5021
|
let {
|
|
5022
5022
|
collisionRect: e,
|
|
5023
5023
|
droppableRects: t,
|
|
@@ -5029,7 +5029,7 @@ const ca = (n) => {
|
|
|
5029
5029
|
id: o
|
|
5030
5030
|
} = s, a = t.get(o);
|
|
5031
5031
|
if (a) {
|
|
5032
|
-
const l =
|
|
5032
|
+
const l = fa(a, e);
|
|
5033
5033
|
l > 0 && r.push({
|
|
5034
5034
|
id: o,
|
|
5035
5035
|
data: {
|
|
@@ -5039,22 +5039,22 @@ const ca = (n) => {
|
|
|
5039
5039
|
});
|
|
5040
5040
|
}
|
|
5041
5041
|
}
|
|
5042
|
-
return r.sort(
|
|
5042
|
+
return r.sort(ua);
|
|
5043
5043
|
};
|
|
5044
|
-
function
|
|
5044
|
+
function pa(n, e, t) {
|
|
5045
5045
|
return {
|
|
5046
5046
|
...n,
|
|
5047
5047
|
scaleX: e && t ? e.width / t.width : 1,
|
|
5048
5048
|
scaleY: e && t ? e.height / t.height : 1
|
|
5049
5049
|
};
|
|
5050
5050
|
}
|
|
5051
|
-
function
|
|
5051
|
+
function ar(n, e) {
|
|
5052
5052
|
return n && e ? {
|
|
5053
5053
|
x: n.left - e.left,
|
|
5054
5054
|
y: n.top - e.top
|
|
5055
5055
|
} : pe;
|
|
5056
5056
|
}
|
|
5057
|
-
function
|
|
5057
|
+
function ma(n) {
|
|
5058
5058
|
return function(t) {
|
|
5059
5059
|
for (var i = arguments.length, r = new Array(i > 1 ? i - 1 : 0), s = 1; s < i; s++)
|
|
5060
5060
|
r[s - 1] = arguments[s];
|
|
@@ -5069,8 +5069,8 @@ function ua(n) {
|
|
|
5069
5069
|
});
|
|
5070
5070
|
};
|
|
5071
5071
|
}
|
|
5072
|
-
const
|
|
5073
|
-
function
|
|
5072
|
+
const va = /* @__PURE__ */ ma(1);
|
|
5073
|
+
function lr(n) {
|
|
5074
5074
|
if (n.startsWith("matrix3d(")) {
|
|
5075
5075
|
const e = n.slice(9, -1).split(/, /);
|
|
5076
5076
|
return {
|
|
@@ -5090,8 +5090,8 @@ function or(n) {
|
|
|
5090
5090
|
}
|
|
5091
5091
|
return null;
|
|
5092
5092
|
}
|
|
5093
|
-
function
|
|
5094
|
-
const i =
|
|
5093
|
+
function ya(n, e, t) {
|
|
5094
|
+
const i = lr(e);
|
|
5095
5095
|
if (!i)
|
|
5096
5096
|
return n;
|
|
5097
5097
|
const {
|
|
@@ -5109,18 +5109,18 @@ function fa(n, e, t) {
|
|
|
5109
5109
|
left: l
|
|
5110
5110
|
};
|
|
5111
5111
|
}
|
|
5112
|
-
const
|
|
5112
|
+
const ba = {
|
|
5113
5113
|
ignoreTransform: !1
|
|
5114
5114
|
};
|
|
5115
5115
|
function tt(n, e) {
|
|
5116
|
-
e === void 0 && (e =
|
|
5116
|
+
e === void 0 && (e = ba);
|
|
5117
5117
|
let t = n.getBoundingClientRect();
|
|
5118
5118
|
if (e.ignoreTransform) {
|
|
5119
5119
|
const {
|
|
5120
5120
|
transform: u,
|
|
5121
5121
|
transformOrigin: c
|
|
5122
5122
|
} = ee(n).getComputedStyle(n);
|
|
5123
|
-
u && (t =
|
|
5123
|
+
u && (t = ya(t, u, c));
|
|
5124
5124
|
}
|
|
5125
5125
|
const {
|
|
5126
5126
|
top: i,
|
|
@@ -5139,12 +5139,12 @@ function tt(n, e) {
|
|
|
5139
5139
|
right: l
|
|
5140
5140
|
};
|
|
5141
5141
|
}
|
|
5142
|
-
function
|
|
5142
|
+
function ln(n) {
|
|
5143
5143
|
return tt(n, {
|
|
5144
5144
|
ignoreTransform: !0
|
|
5145
5145
|
});
|
|
5146
5146
|
}
|
|
5147
|
-
function
|
|
5147
|
+
function xa(n) {
|
|
5148
5148
|
const e = n.innerWidth, t = n.innerHeight;
|
|
5149
5149
|
return {
|
|
5150
5150
|
top: 0,
|
|
@@ -5155,10 +5155,10 @@ function pa(n) {
|
|
|
5155
5155
|
height: t
|
|
5156
5156
|
};
|
|
5157
5157
|
}
|
|
5158
|
-
function
|
|
5158
|
+
function wa(n, e) {
|
|
5159
5159
|
return e === void 0 && (e = ee(n).getComputedStyle(n)), e.position === "fixed";
|
|
5160
5160
|
}
|
|
5161
|
-
function
|
|
5161
|
+
function Ca(n, e) {
|
|
5162
5162
|
e === void 0 && (e = ee(n).getComputedStyle(n));
|
|
5163
5163
|
const t = /(auto|scroll|overlay)/;
|
|
5164
5164
|
return ["overflow", "overflowX", "overflowY"].some((r) => {
|
|
@@ -5173,44 +5173,44 @@ function ni(n, e) {
|
|
|
5173
5173
|
return t;
|
|
5174
5174
|
if (Pi(r) && r.scrollingElement != null && !t.includes(r.scrollingElement))
|
|
5175
5175
|
return t.push(r.scrollingElement), t;
|
|
5176
|
-
if (!xt(r) ||
|
|
5176
|
+
if (!xt(r) || nr(r) || t.includes(r))
|
|
5177
5177
|
return t;
|
|
5178
5178
|
const s = ee(n).getComputedStyle(r);
|
|
5179
|
-
return r !== n &&
|
|
5179
|
+
return r !== n && Ca(r, s) && t.push(r), wa(r, s) ? t : i(r.parentNode);
|
|
5180
5180
|
}
|
|
5181
5181
|
return n ? i(n) : t;
|
|
5182
5182
|
}
|
|
5183
|
-
function
|
|
5183
|
+
function cr(n) {
|
|
5184
5184
|
const [e] = ni(n, 1);
|
|
5185
5185
|
return e ?? null;
|
|
5186
5186
|
}
|
|
5187
5187
|
function gi(n) {
|
|
5188
5188
|
return !ei || !n ? null : Qe(n) ? n : zi(n) ? Pi(n) || n === et(n).scrollingElement ? window : xt(n) ? n : null : null;
|
|
5189
5189
|
}
|
|
5190
|
-
function
|
|
5190
|
+
function dr(n) {
|
|
5191
5191
|
return Qe(n) ? n.scrollX : n.scrollLeft;
|
|
5192
5192
|
}
|
|
5193
|
-
function
|
|
5193
|
+
function ur(n) {
|
|
5194
5194
|
return Qe(n) ? n.scrollY : n.scrollTop;
|
|
5195
5195
|
}
|
|
5196
5196
|
function bi(n) {
|
|
5197
5197
|
return {
|
|
5198
|
-
x:
|
|
5199
|
-
y:
|
|
5198
|
+
x: dr(n),
|
|
5199
|
+
y: ur(n)
|
|
5200
5200
|
};
|
|
5201
5201
|
}
|
|
5202
|
-
var
|
|
5202
|
+
var V;
|
|
5203
5203
|
(function(n) {
|
|
5204
5204
|
n[n.Forward = 1] = "Forward", n[n.Backward = -1] = "Backward";
|
|
5205
|
-
})(
|
|
5206
|
-
function
|
|
5205
|
+
})(V || (V = {}));
|
|
5206
|
+
function hr(n) {
|
|
5207
5207
|
return !ei || !n ? !1 : n === document.scrollingElement;
|
|
5208
5208
|
}
|
|
5209
|
-
function
|
|
5209
|
+
function fr(n) {
|
|
5210
5210
|
const e = {
|
|
5211
5211
|
x: 0,
|
|
5212
5212
|
y: 0
|
|
5213
|
-
}, t =
|
|
5213
|
+
}, t = hr(n) ? {
|
|
5214
5214
|
height: window.innerHeight,
|
|
5215
5215
|
width: window.innerWidth
|
|
5216
5216
|
} : {
|
|
@@ -5229,24 +5229,24 @@ function ur(n) {
|
|
|
5229
5229
|
minScroll: e
|
|
5230
5230
|
};
|
|
5231
5231
|
}
|
|
5232
|
-
const
|
|
5232
|
+
const _a = {
|
|
5233
5233
|
x: 0.2,
|
|
5234
5234
|
y: 0.2
|
|
5235
5235
|
};
|
|
5236
|
-
function
|
|
5236
|
+
function Ea(n, e, t, i, r) {
|
|
5237
5237
|
let {
|
|
5238
5238
|
top: s,
|
|
5239
5239
|
left: o,
|
|
5240
5240
|
right: a,
|
|
5241
5241
|
bottom: l
|
|
5242
5242
|
} = t;
|
|
5243
|
-
i === void 0 && (i = 10), r === void 0 && (r =
|
|
5243
|
+
i === void 0 && (i = 10), r === void 0 && (r = _a);
|
|
5244
5244
|
const {
|
|
5245
5245
|
isTop: u,
|
|
5246
5246
|
isBottom: c,
|
|
5247
5247
|
isLeft: d,
|
|
5248
5248
|
isRight: h
|
|
5249
|
-
} =
|
|
5249
|
+
} = fr(n), f = {
|
|
5250
5250
|
x: 0,
|
|
5251
5251
|
y: 0
|
|
5252
5252
|
}, x = {
|
|
@@ -5256,12 +5256,12 @@ function ba(n, e, t, i, r) {
|
|
|
5256
5256
|
height: e.height * r.y,
|
|
5257
5257
|
width: e.width * r.x
|
|
5258
5258
|
};
|
|
5259
|
-
return !u && s <= e.top + v.height ? (f.y =
|
|
5259
|
+
return !u && s <= e.top + v.height ? (f.y = V.Backward, x.y = i * Math.abs((e.top + v.height - s) / v.height)) : !c && l >= e.bottom - v.height && (f.y = V.Forward, x.y = i * Math.abs((e.bottom - v.height - l) / v.height)), !h && a >= e.right - v.width ? (f.x = V.Forward, x.x = i * Math.abs((e.right - v.width - a) / v.width)) : !d && o <= e.left + v.width && (f.x = V.Backward, x.x = i * Math.abs((e.left + v.width - o) / v.width)), {
|
|
5260
5260
|
direction: f,
|
|
5261
5261
|
speed: x
|
|
5262
5262
|
};
|
|
5263
5263
|
}
|
|
5264
|
-
function
|
|
5264
|
+
function Da(n) {
|
|
5265
5265
|
if (n === document.scrollingElement) {
|
|
5266
5266
|
const {
|
|
5267
5267
|
innerWidth: s,
|
|
@@ -5291,16 +5291,16 @@ function xa(n) {
|
|
|
5291
5291
|
height: n.clientHeight
|
|
5292
5292
|
};
|
|
5293
5293
|
}
|
|
5294
|
-
function
|
|
5295
|
-
return n.reduce((e, t) =>
|
|
5294
|
+
function gr(n) {
|
|
5295
|
+
return n.reduce((e, t) => Ve(e, bi(t)), pe);
|
|
5296
5296
|
}
|
|
5297
|
-
function
|
|
5298
|
-
return n.reduce((e, t) => e +
|
|
5297
|
+
function Ra(n) {
|
|
5298
|
+
return n.reduce((e, t) => e + dr(t), 0);
|
|
5299
5299
|
}
|
|
5300
|
-
function
|
|
5301
|
-
return n.reduce((e, t) => e +
|
|
5300
|
+
function Sa(n) {
|
|
5301
|
+
return n.reduce((e, t) => e + ur(t), 0);
|
|
5302
5302
|
}
|
|
5303
|
-
function
|
|
5303
|
+
function pr(n, e) {
|
|
5304
5304
|
if (e === void 0 && (e = tt), !n)
|
|
5305
5305
|
return;
|
|
5306
5306
|
const {
|
|
@@ -5309,20 +5309,20 @@ function fr(n, e) {
|
|
|
5309
5309
|
bottom: r,
|
|
5310
5310
|
right: s
|
|
5311
5311
|
} = e(n);
|
|
5312
|
-
|
|
5312
|
+
cr(n) && (r <= 0 || s <= 0 || t >= window.innerHeight || i >= window.innerWidth) && n.scrollIntoView({
|
|
5313
5313
|
block: "center",
|
|
5314
5314
|
inline: "center"
|
|
5315
5315
|
});
|
|
5316
5316
|
}
|
|
5317
|
-
const
|
|
5317
|
+
const Na = [["x", ["left", "right"], Ra], ["y", ["top", "bottom"], Sa]];
|
|
5318
5318
|
class Mi {
|
|
5319
5319
|
constructor(e, t) {
|
|
5320
5320
|
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;
|
|
5321
|
-
const i = ni(t), r =
|
|
5321
|
+
const i = ni(t), r = gr(i);
|
|
5322
5322
|
this.rect = {
|
|
5323
5323
|
...e
|
|
5324
5324
|
}, this.width = e.width, this.height = e.height;
|
|
5325
|
-
for (const [s, o, a] of
|
|
5325
|
+
for (const [s, o, a] of Na)
|
|
5326
5326
|
for (const l of o)
|
|
5327
5327
|
Object.defineProperty(this, l, {
|
|
5328
5328
|
get: () => {
|
|
@@ -5350,7 +5350,7 @@ class dt {
|
|
|
5350
5350
|
(r = this.target) == null || r.addEventListener(e, t, i), this.listeners.push([e, t, i]);
|
|
5351
5351
|
}
|
|
5352
5352
|
}
|
|
5353
|
-
function
|
|
5353
|
+
function Oa(n) {
|
|
5354
5354
|
const {
|
|
5355
5355
|
EventTarget: e
|
|
5356
5356
|
} = ee(n);
|
|
@@ -5364,21 +5364,21 @@ var he;
|
|
|
5364
5364
|
(function(n) {
|
|
5365
5365
|
n.Click = "click", n.DragStart = "dragstart", n.Keydown = "keydown", n.ContextMenu = "contextmenu", n.Resize = "resize", n.SelectionChange = "selectionchange", n.VisibilityChange = "visibilitychange";
|
|
5366
5366
|
})(he || (he = {}));
|
|
5367
|
-
function
|
|
5367
|
+
function cn(n) {
|
|
5368
5368
|
n.preventDefault();
|
|
5369
5369
|
}
|
|
5370
|
-
function
|
|
5370
|
+
function Aa(n) {
|
|
5371
5371
|
n.stopPropagation();
|
|
5372
5372
|
}
|
|
5373
5373
|
var F;
|
|
5374
5374
|
(function(n) {
|
|
5375
5375
|
n.Space = "Space", n.Down = "ArrowDown", n.Right = "ArrowRight", n.Left = "ArrowLeft", n.Up = "ArrowUp", n.Esc = "Escape", n.Enter = "Enter", n.Tab = "Tab";
|
|
5376
5376
|
})(F || (F = {}));
|
|
5377
|
-
const
|
|
5377
|
+
const mr = {
|
|
5378
5378
|
start: [F.Space, F.Enter],
|
|
5379
5379
|
cancel: [F.Esc],
|
|
5380
5380
|
end: [F.Space, F.Enter, F.Tab]
|
|
5381
|
-
},
|
|
5381
|
+
}, Ta = (n, e) => {
|
|
5382
5382
|
let {
|
|
5383
5383
|
currentCoordinates: t
|
|
5384
5384
|
} = e;
|
|
@@ -5423,7 +5423,7 @@ class Li {
|
|
|
5423
5423
|
activeNode: e,
|
|
5424
5424
|
onStart: t
|
|
5425
5425
|
} = this.props, i = e.node.current;
|
|
5426
|
-
i &&
|
|
5426
|
+
i && pr(i), t(pe);
|
|
5427
5427
|
}
|
|
5428
5428
|
handleKeyDown(e) {
|
|
5429
5429
|
if (ii(e)) {
|
|
@@ -5432,8 +5432,8 @@ class Li {
|
|
|
5432
5432
|
context: i,
|
|
5433
5433
|
options: r
|
|
5434
5434
|
} = this.props, {
|
|
5435
|
-
keyboardCodes: s =
|
|
5436
|
-
coordinateGetter: o =
|
|
5435
|
+
keyboardCodes: s = mr,
|
|
5436
|
+
coordinateGetter: o = Ta,
|
|
5437
5437
|
scrollBehavior: a = "smooth"
|
|
5438
5438
|
} = r, {
|
|
5439
5439
|
code: l
|
|
@@ -5473,7 +5473,7 @@ class Li {
|
|
|
5473
5473
|
isBottom: R,
|
|
5474
5474
|
maxScroll: y,
|
|
5475
5475
|
minScroll: b
|
|
5476
|
-
} =
|
|
5476
|
+
} = fr(v), D = Da(v), E = {
|
|
5477
5477
|
x: Math.min(w === F.Right ? D.right - D.width / 2 : D.right, Math.max(w === F.Right ? D.left : D.left + D.width / 2, d.x)),
|
|
5478
5478
|
y: Math.min(w === F.Down ? D.bottom - D.height / 2 : D.bottom, Math.max(w === F.Down ? D.top : D.top + D.height / 2, d.y))
|
|
5479
5479
|
}, k = w === F.Right && !N || w === F.Left && !C, A = w === F.Down && !R || w === F.Up && !S;
|
|
@@ -5507,7 +5507,7 @@ class Li {
|
|
|
5507
5507
|
break;
|
|
5508
5508
|
}
|
|
5509
5509
|
}
|
|
5510
|
-
this.handleMove(e,
|
|
5510
|
+
this.handleMove(e, Ve(yt(d, this.referenceCoordinates), f));
|
|
5511
5511
|
}
|
|
5512
5512
|
}
|
|
5513
5513
|
}
|
|
@@ -5537,7 +5537,7 @@ Li.activators = [{
|
|
|
5537
5537
|
eventName: "onKeyDown",
|
|
5538
5538
|
handler: (n, e, t) => {
|
|
5539
5539
|
let {
|
|
5540
|
-
keyboardCodes: i =
|
|
5540
|
+
keyboardCodes: i = mr,
|
|
5541
5541
|
onActivation: r
|
|
5542
5542
|
} = e, {
|
|
5543
5543
|
active: s
|
|
@@ -5554,16 +5554,16 @@ Li.activators = [{
|
|
|
5554
5554
|
return !1;
|
|
5555
5555
|
}
|
|
5556
5556
|
}];
|
|
5557
|
-
function
|
|
5557
|
+
function dn(n) {
|
|
5558
5558
|
return !!(n && "distance" in n);
|
|
5559
5559
|
}
|
|
5560
|
-
function
|
|
5560
|
+
function un(n) {
|
|
5561
5561
|
return !!(n && "delay" in n);
|
|
5562
5562
|
}
|
|
5563
5563
|
class Ii {
|
|
5564
5564
|
constructor(e, t, i) {
|
|
5565
5565
|
var r;
|
|
5566
|
-
i === void 0 && (i =
|
|
5566
|
+
i === void 0 && (i = Oa(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;
|
|
5567
5567
|
const {
|
|
5568
5568
|
event: s
|
|
5569
5569
|
} = e, {
|
|
@@ -5583,18 +5583,18 @@ class Ii {
|
|
|
5583
5583
|
} = this;
|
|
5584
5584
|
if (this.listeners.add(e.move.name, this.handleMove, {
|
|
5585
5585
|
passive: !1
|
|
5586
|
-
}), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(he.Resize, this.handleCancel), this.windowListeners.add(he.DragStart,
|
|
5586
|
+
}), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(he.Resize, this.handleCancel), this.windowListeners.add(he.DragStart, cn), this.windowListeners.add(he.VisibilityChange, this.handleCancel), this.windowListeners.add(he.ContextMenu, cn), this.documentListeners.add(he.Keydown, this.handleKeydown), t) {
|
|
5587
5587
|
if (i != null && i({
|
|
5588
5588
|
event: this.props.event,
|
|
5589
5589
|
activeNode: this.props.activeNode,
|
|
5590
5590
|
options: this.props.options
|
|
5591
5591
|
}))
|
|
5592
5592
|
return this.handleStart();
|
|
5593
|
-
if (
|
|
5593
|
+
if (un(t)) {
|
|
5594
5594
|
this.timeoutId = setTimeout(this.handleStart, t.delay), this.handlePending(t);
|
|
5595
5595
|
return;
|
|
5596
5596
|
}
|
|
5597
|
-
if (
|
|
5597
|
+
if (dn(t)) {
|
|
5598
5598
|
this.handlePending(t);
|
|
5599
5599
|
return;
|
|
5600
5600
|
}
|
|
@@ -5617,7 +5617,7 @@ class Ii {
|
|
|
5617
5617
|
} = this, {
|
|
5618
5618
|
onStart: t
|
|
5619
5619
|
} = this.props;
|
|
5620
|
-
e && (this.activated = !0, this.documentListeners.add(he.Click,
|
|
5620
|
+
e && (this.activated = !0, this.documentListeners.add(he.Click, Aa, {
|
|
5621
5621
|
capture: !0
|
|
5622
5622
|
}), this.removeTextSelection(), this.documentListeners.add(he.SelectionChange, this.removeTextSelection), t(e));
|
|
5623
5623
|
}
|
|
@@ -5637,13 +5637,13 @@ class Ii {
|
|
|
5637
5637
|
return;
|
|
5638
5638
|
const l = (t = jt(e)) != null ? t : pe, u = yt(r, l);
|
|
5639
5639
|
if (!i && a) {
|
|
5640
|
-
if (
|
|
5640
|
+
if (dn(a)) {
|
|
5641
5641
|
if (a.tolerance != null && pi(u, a.tolerance))
|
|
5642
5642
|
return this.handleCancel();
|
|
5643
5643
|
if (pi(u, a.distance))
|
|
5644
5644
|
return this.handleStart();
|
|
5645
5645
|
}
|
|
5646
|
-
if (
|
|
5646
|
+
if (un(a) && pi(u, a.tolerance))
|
|
5647
5647
|
return this.handleCancel();
|
|
5648
5648
|
this.handlePending(a, u);
|
|
5649
5649
|
return;
|
|
@@ -5672,7 +5672,7 @@ class Ii {
|
|
|
5672
5672
|
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
5673
5673
|
}
|
|
5674
5674
|
}
|
|
5675
|
-
const
|
|
5675
|
+
const ka = {
|
|
5676
5676
|
cancel: {
|
|
5677
5677
|
name: "pointercancel"
|
|
5678
5678
|
},
|
|
@@ -5688,7 +5688,7 @@ class Hi extends Ii {
|
|
|
5688
5688
|
const {
|
|
5689
5689
|
event: t
|
|
5690
5690
|
} = e, i = et(t.target);
|
|
5691
|
-
super(e,
|
|
5691
|
+
super(e, ka, i);
|
|
5692
5692
|
}
|
|
5693
5693
|
}
|
|
5694
5694
|
Hi.activators = [{
|
|
@@ -5704,7 +5704,7 @@ Hi.activators = [{
|
|
|
5704
5704
|
}), !0);
|
|
5705
5705
|
}
|
|
5706
5706
|
}];
|
|
5707
|
-
const
|
|
5707
|
+
const za = {
|
|
5708
5708
|
move: {
|
|
5709
5709
|
name: "mousemove"
|
|
5710
5710
|
},
|
|
@@ -5716,12 +5716,12 @@ var xi;
|
|
|
5716
5716
|
(function(n) {
|
|
5717
5717
|
n[n.RightClick = 2] = "RightClick";
|
|
5718
5718
|
})(xi || (xi = {}));
|
|
5719
|
-
class
|
|
5719
|
+
class Pa extends Ii {
|
|
5720
5720
|
constructor(e) {
|
|
5721
|
-
super(e,
|
|
5721
|
+
super(e, za, et(e.event.target));
|
|
5722
5722
|
}
|
|
5723
5723
|
}
|
|
5724
|
-
|
|
5724
|
+
Pa.activators = [{
|
|
5725
5725
|
eventName: "onMouseDown",
|
|
5726
5726
|
handler: (n, e) => {
|
|
5727
5727
|
let {
|
|
@@ -5745,7 +5745,7 @@ const mi = {
|
|
|
5745
5745
|
name: "touchend"
|
|
5746
5746
|
}
|
|
5747
5747
|
};
|
|
5748
|
-
class
|
|
5748
|
+
class Ma extends Ii {
|
|
5749
5749
|
constructor(e) {
|
|
5750
5750
|
super(e, mi);
|
|
5751
5751
|
}
|
|
@@ -5760,7 +5760,7 @@ class Aa extends Ii {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
}
|
|
5762
5762
|
}
|
|
5763
|
-
|
|
5763
|
+
Ma.activators = [{
|
|
5764
5764
|
eventName: "onTouchStart",
|
|
5765
5765
|
handler: (n, e) => {
|
|
5766
5766
|
let {
|
|
@@ -5784,7 +5784,7 @@ var Kt;
|
|
|
5784
5784
|
(function(n) {
|
|
5785
5785
|
n[n.TreeOrder = 0] = "TreeOrder", n[n.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
5786
5786
|
})(Kt || (Kt = {}));
|
|
5787
|
-
function
|
|
5787
|
+
function La(n) {
|
|
5788
5788
|
let {
|
|
5789
5789
|
acceleration: e,
|
|
5790
5790
|
activator: t = ut.Pointer,
|
|
@@ -5799,10 +5799,10 @@ function Ta(n) {
|
|
|
5799
5799
|
delta: d,
|
|
5800
5800
|
threshold: h
|
|
5801
5801
|
} = n;
|
|
5802
|
-
const f =
|
|
5802
|
+
const f = Ha({
|
|
5803
5803
|
delta: d,
|
|
5804
5804
|
disabled: !s
|
|
5805
|
-
}), [x, v] =
|
|
5805
|
+
}), [x, v] = Yo(), w = I({
|
|
5806
5806
|
x: 0,
|
|
5807
5807
|
y: 0
|
|
5808
5808
|
}), S = I({
|
|
@@ -5842,7 +5842,7 @@ function Ta(n) {
|
|
|
5842
5842
|
const {
|
|
5843
5843
|
direction: k,
|
|
5844
5844
|
speed: A
|
|
5845
|
-
} =
|
|
5845
|
+
} = Ea(b, E, N, e, h);
|
|
5846
5846
|
for (const m of ["x", "y"])
|
|
5847
5847
|
f[m][k[m]] || (A[m] = 0, k[m] = 0);
|
|
5848
5848
|
if (A.x > 0 || A.y > 0) {
|
|
@@ -5879,17 +5879,17 @@ function Ta(n) {
|
|
|
5879
5879
|
]
|
|
5880
5880
|
);
|
|
5881
5881
|
}
|
|
5882
|
-
const
|
|
5882
|
+
const Ia = {
|
|
5883
5883
|
x: {
|
|
5884
|
-
[
|
|
5885
|
-
[
|
|
5884
|
+
[V.Backward]: !1,
|
|
5885
|
+
[V.Forward]: !1
|
|
5886
5886
|
},
|
|
5887
5887
|
y: {
|
|
5888
|
-
[
|
|
5889
|
-
[
|
|
5888
|
+
[V.Backward]: !1,
|
|
5889
|
+
[V.Forward]: !1
|
|
5890
5890
|
}
|
|
5891
5891
|
};
|
|
5892
|
-
function
|
|
5892
|
+
function Ha(n) {
|
|
5893
5893
|
let {
|
|
5894
5894
|
delta: e,
|
|
5895
5895
|
disabled: t
|
|
@@ -5897,31 +5897,31 @@ function za(n) {
|
|
|
5897
5897
|
const i = $t(e);
|
|
5898
5898
|
return wt((r) => {
|
|
5899
5899
|
if (t || !i || !r)
|
|
5900
|
-
return
|
|
5900
|
+
return Ia;
|
|
5901
5901
|
const s = {
|
|
5902
5902
|
x: Math.sign(e.x - i.x),
|
|
5903
5903
|
y: Math.sign(e.y - i.y)
|
|
5904
5904
|
};
|
|
5905
5905
|
return {
|
|
5906
5906
|
x: {
|
|
5907
|
-
[
|
|
5908
|
-
[
|
|
5907
|
+
[V.Backward]: r.x[V.Backward] || s.x === -1,
|
|
5908
|
+
[V.Forward]: r.x[V.Forward] || s.x === 1
|
|
5909
5909
|
},
|
|
5910
5910
|
y: {
|
|
5911
|
-
[
|
|
5912
|
-
[
|
|
5911
|
+
[V.Backward]: r.y[V.Backward] || s.y === -1,
|
|
5912
|
+
[V.Forward]: r.y[V.Forward] || s.y === 1
|
|
5913
5913
|
}
|
|
5914
5914
|
};
|
|
5915
5915
|
}, [t, e, i]);
|
|
5916
5916
|
}
|
|
5917
|
-
function
|
|
5917
|
+
function Ba(n, e) {
|
|
5918
5918
|
const t = e != null ? n.get(e) : void 0, i = t ? t.node.current : null;
|
|
5919
5919
|
return wt((r) => {
|
|
5920
5920
|
var s;
|
|
5921
5921
|
return e == null ? null : (s = i ?? r) != null ? s : null;
|
|
5922
5922
|
}, [i, e]);
|
|
5923
5923
|
}
|
|
5924
|
-
function
|
|
5924
|
+
function Fa(n, e) {
|
|
5925
5925
|
return B(() => n.reduce((t, i) => {
|
|
5926
5926
|
const {
|
|
5927
5927
|
sensor: r
|
|
@@ -5940,8 +5940,8 @@ var wi;
|
|
|
5940
5940
|
(function(n) {
|
|
5941
5941
|
n.Optimized = "optimized";
|
|
5942
5942
|
})(wi || (wi = {}));
|
|
5943
|
-
const
|
|
5944
|
-
function
|
|
5943
|
+
const hn = /* @__PURE__ */ new Map();
|
|
5944
|
+
function Wa(n, e) {
|
|
5945
5945
|
let {
|
|
5946
5946
|
dragging: t,
|
|
5947
5947
|
dependencies: i,
|
|
@@ -5955,8 +5955,8 @@ function La(n, e) {
|
|
|
5955
5955
|
S === void 0 && (S = []), !h.current && o((N) => N === null ? S : N.concat(S.filter((C) => !N.includes(C))));
|
|
5956
5956
|
}, [h]), x = I(null), v = wt((S) => {
|
|
5957
5957
|
if (d && !t)
|
|
5958
|
-
return
|
|
5959
|
-
if (!S || S ===
|
|
5958
|
+
return hn;
|
|
5959
|
+
if (!S || S === hn || c.current !== n || s != null) {
|
|
5960
5960
|
const N = /* @__PURE__ */ new Map();
|
|
5961
5961
|
for (let C of n) {
|
|
5962
5962
|
if (!C)
|
|
@@ -6013,10 +6013,10 @@ function La(n, e) {
|
|
|
6013
6013
|
function Bi(n, e) {
|
|
6014
6014
|
return wt((t) => n ? t || (typeof e == "function" ? e(n) : n) : null, [e, n]);
|
|
6015
6015
|
}
|
|
6016
|
-
function
|
|
6016
|
+
function Ga(n, e) {
|
|
6017
6017
|
return Bi(n, e);
|
|
6018
6018
|
}
|
|
6019
|
-
function
|
|
6019
|
+
function $a(n) {
|
|
6020
6020
|
let {
|
|
6021
6021
|
callback: e,
|
|
6022
6022
|
disabled: t
|
|
@@ -6050,11 +6050,11 @@ function ri(n) {
|
|
|
6050
6050
|
);
|
|
6051
6051
|
return H(() => () => r == null ? void 0 : r.disconnect(), [r]), r;
|
|
6052
6052
|
}
|
|
6053
|
-
function
|
|
6053
|
+
function ja(n) {
|
|
6054
6054
|
return new Mi(tt(n), n);
|
|
6055
6055
|
}
|
|
6056
|
-
function
|
|
6057
|
-
e === void 0 && (e =
|
|
6056
|
+
function fn(n, e, t) {
|
|
6057
|
+
e === void 0 && (e = ja);
|
|
6058
6058
|
const [i, r] = W(null);
|
|
6059
6059
|
function s() {
|
|
6060
6060
|
r((l) => {
|
|
@@ -6068,7 +6068,7 @@ function hn(n, e, t) {
|
|
|
6068
6068
|
return JSON.stringify(l) === JSON.stringify(c) ? l : c;
|
|
6069
6069
|
});
|
|
6070
6070
|
}
|
|
6071
|
-
const o =
|
|
6071
|
+
const o = $a({
|
|
6072
6072
|
callback(l) {
|
|
6073
6073
|
if (n)
|
|
6074
6074
|
for (const u of l) {
|
|
@@ -6092,18 +6092,18 @@ function hn(n, e, t) {
|
|
|
6092
6092
|
})) : (a == null || a.disconnect(), o == null || o.disconnect());
|
|
6093
6093
|
}, [n]), i;
|
|
6094
6094
|
}
|
|
6095
|
-
function
|
|
6095
|
+
function Ua(n) {
|
|
6096
6096
|
const e = Bi(n);
|
|
6097
|
-
return
|
|
6097
|
+
return ar(n, e);
|
|
6098
6098
|
}
|
|
6099
|
-
const
|
|
6100
|
-
function
|
|
6101
|
-
const e = I(n), t = wt((i) => n ? i && i !==
|
|
6099
|
+
const gn = [];
|
|
6100
|
+
function Ka(n) {
|
|
6101
|
+
const e = I(n), t = wt((i) => n ? i && i !== gn && n && e.current && n.parentNode === e.current.parentNode ? i : ni(n) : gn, [n]);
|
|
6102
6102
|
return H(() => {
|
|
6103
6103
|
e.current = n;
|
|
6104
6104
|
}, [n]), t;
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function Xa(n) {
|
|
6107
6107
|
const [e, t] = W(null), i = I(n), r = K((s) => {
|
|
6108
6108
|
const o = gi(s.target);
|
|
6109
6109
|
o && t((a) => a ? (a.set(o, bi(o)), new Map(a)) : null);
|
|
@@ -6129,9 +6129,9 @@ function Ga(n) {
|
|
|
6129
6129
|
u == null || u.removeEventListener("scroll", r);
|
|
6130
6130
|
});
|
|
6131
6131
|
}
|
|
6132
|
-
}, [r, n]), B(() => n.length ? e ? Array.from(e.values()).reduce((s, o) =>
|
|
6132
|
+
}, [r, n]), B(() => n.length ? e ? Array.from(e.values()).reduce((s, o) => Ve(s, o), pe) : gr(n) : pe, [n, e]);
|
|
6133
6133
|
}
|
|
6134
|
-
function
|
|
6134
|
+
function pn(n, e) {
|
|
6135
6135
|
e === void 0 && (e = []);
|
|
6136
6136
|
const t = I(null);
|
|
6137
6137
|
return H(
|
|
@@ -6145,7 +6145,7 @@ function gn(n, e) {
|
|
|
6145
6145
|
i && !t.current && (t.current = n), !i && t.current && (t.current = null);
|
|
6146
6146
|
}, [n]), t.current ? yt(n, t.current) : pe;
|
|
6147
6147
|
}
|
|
6148
|
-
function
|
|
6148
|
+
function Ya(n) {
|
|
6149
6149
|
H(
|
|
6150
6150
|
() => {
|
|
6151
6151
|
if (!ei)
|
|
@@ -6171,7 +6171,7 @@ function $a(n) {
|
|
|
6171
6171
|
})
|
|
6172
6172
|
);
|
|
6173
6173
|
}
|
|
6174
|
-
function
|
|
6174
|
+
function Va(n, e) {
|
|
6175
6175
|
return B(() => n.reduce((t, i) => {
|
|
6176
6176
|
let {
|
|
6177
6177
|
eventName: r,
|
|
@@ -6182,15 +6182,15 @@ function ja(n, e) {
|
|
|
6182
6182
|
}, t;
|
|
6183
6183
|
}, {}), [n, e]);
|
|
6184
6184
|
}
|
|
6185
|
-
function
|
|
6186
|
-
return B(() => n ?
|
|
6185
|
+
function vr(n) {
|
|
6186
|
+
return B(() => n ? xa(n) : null, [n]);
|
|
6187
6187
|
}
|
|
6188
|
-
const
|
|
6189
|
-
function
|
|
6188
|
+
const mn = [];
|
|
6189
|
+
function qa(n, e) {
|
|
6190
6190
|
e === void 0 && (e = tt);
|
|
6191
|
-
const [t] = n, i =
|
|
6191
|
+
const [t] = n, i = vr(t ? ee(t) : null), [r, s] = W(mn);
|
|
6192
6192
|
function o() {
|
|
6193
|
-
s(() => n.length ? n.map((l) =>
|
|
6193
|
+
s(() => n.length ? n.map((l) => hr(l) ? i : new Mi(e(l), l)) : mn);
|
|
6194
6194
|
}
|
|
6195
6195
|
const a = ri({
|
|
6196
6196
|
callback: o
|
|
@@ -6199,7 +6199,7 @@ function Ua(n, e) {
|
|
|
6199
6199
|
a == null || a.disconnect(), o(), n.forEach((l) => a == null ? void 0 : a.observe(l));
|
|
6200
6200
|
}, [n]), r;
|
|
6201
6201
|
}
|
|
6202
|
-
function
|
|
6202
|
+
function yr(n) {
|
|
6203
6203
|
if (!n)
|
|
6204
6204
|
return null;
|
|
6205
6205
|
if (n.children.length > 1)
|
|
@@ -6207,7 +6207,7 @@ function mr(n) {
|
|
|
6207
6207
|
const e = n.children[0];
|
|
6208
6208
|
return xt(e) ? e : n;
|
|
6209
6209
|
}
|
|
6210
|
-
function
|
|
6210
|
+
function Ja(n) {
|
|
6211
6211
|
let {
|
|
6212
6212
|
measure: e
|
|
6213
6213
|
} = n;
|
|
@@ -6229,7 +6229,7 @@ function Ka(n) {
|
|
|
6229
6229
|
}, [e]), s = ri({
|
|
6230
6230
|
callback: r
|
|
6231
6231
|
}), o = K((u) => {
|
|
6232
|
-
const c =
|
|
6232
|
+
const c = yr(u);
|
|
6233
6233
|
s == null || s.disconnect(), c && (s == null || s.observe(c)), i(c ? e(c) : null);
|
|
6234
6234
|
}, [e, s]), [a, l] = Gt(o);
|
|
6235
6235
|
return B(() => ({
|
|
@@ -6238,20 +6238,20 @@ function Ka(n) {
|
|
|
6238
6238
|
setRef: l
|
|
6239
6239
|
}), [t, a, l]);
|
|
6240
6240
|
}
|
|
6241
|
-
const
|
|
6241
|
+
const Za = [{
|
|
6242
6242
|
sensor: Hi,
|
|
6243
6243
|
options: {}
|
|
6244
6244
|
}, {
|
|
6245
6245
|
sensor: Li,
|
|
6246
6246
|
options: {}
|
|
6247
|
-
}],
|
|
6247
|
+
}], Qa = {
|
|
6248
6248
|
current: {}
|
|
6249
6249
|
}, Pt = {
|
|
6250
6250
|
draggable: {
|
|
6251
|
-
measure:
|
|
6251
|
+
measure: ln
|
|
6252
6252
|
},
|
|
6253
6253
|
droppable: {
|
|
6254
|
-
measure:
|
|
6254
|
+
measure: ln,
|
|
6255
6255
|
strategy: bt.WhileDragging,
|
|
6256
6256
|
frequency: wi.Optimized
|
|
6257
6257
|
},
|
|
@@ -6280,7 +6280,7 @@ class ht extends Map {
|
|
|
6280
6280
|
return (t = (i = this.get(e)) == null ? void 0 : i.node.current) != null ? t : void 0;
|
|
6281
6281
|
}
|
|
6282
6282
|
}
|
|
6283
|
-
const
|
|
6283
|
+
const el = {
|
|
6284
6284
|
activatorEvent: null,
|
|
6285
6285
|
active: null,
|
|
6286
6286
|
activeNode: null,
|
|
@@ -6304,7 +6304,7 @@ const qa = {
|
|
|
6304
6304
|
measureDroppableContainers: Ut,
|
|
6305
6305
|
windowRect: null,
|
|
6306
6306
|
measuringScheduled: !1
|
|
6307
|
-
},
|
|
6307
|
+
}, br = {
|
|
6308
6308
|
activatorEvent: null,
|
|
6309
6309
|
activators: [],
|
|
6310
6310
|
active: null,
|
|
@@ -6316,8 +6316,8 @@ const qa = {
|
|
|
6316
6316
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
6317
6317
|
over: null,
|
|
6318
6318
|
measureDroppableContainers: Ut
|
|
6319
|
-
}, _t = /* @__PURE__ */
|
|
6320
|
-
function
|
|
6319
|
+
}, _t = /* @__PURE__ */ Oe(br), xr = /* @__PURE__ */ Oe(el);
|
|
6320
|
+
function tl() {
|
|
6321
6321
|
return {
|
|
6322
6322
|
draggable: {
|
|
6323
6323
|
active: null,
|
|
@@ -6336,7 +6336,7 @@ function Va() {
|
|
|
6336
6336
|
}
|
|
6337
6337
|
};
|
|
6338
6338
|
}
|
|
6339
|
-
function
|
|
6339
|
+
function il(n, e) {
|
|
6340
6340
|
switch (e.type) {
|
|
6341
6341
|
case Y.DragStart:
|
|
6342
6342
|
return {
|
|
@@ -6429,7 +6429,7 @@ function Ja(n, e) {
|
|
|
6429
6429
|
return n;
|
|
6430
6430
|
}
|
|
6431
6431
|
}
|
|
6432
|
-
function
|
|
6432
|
+
function nl(n) {
|
|
6433
6433
|
let {
|
|
6434
6434
|
disabled: e
|
|
6435
6435
|
} = n;
|
|
@@ -6437,7 +6437,7 @@ function Za(n) {
|
|
|
6437
6437
|
active: t,
|
|
6438
6438
|
activatorEvent: i,
|
|
6439
6439
|
draggableNodes: r
|
|
6440
|
-
} =
|
|
6440
|
+
} = _e(_t), s = $t(i), o = $t(t == null ? void 0 : t.id);
|
|
6441
6441
|
return H(() => {
|
|
6442
6442
|
if (!e && !i && s && o != null) {
|
|
6443
6443
|
if (!ii(s) || document.activeElement === s.target)
|
|
@@ -6455,7 +6455,7 @@ function Za(n) {
|
|
|
6455
6455
|
for (const c of [l.current, u.current]) {
|
|
6456
6456
|
if (!c)
|
|
6457
6457
|
continue;
|
|
6458
|
-
const d =
|
|
6458
|
+
const d = Jo(c);
|
|
6459
6459
|
if (d) {
|
|
6460
6460
|
d.focus();
|
|
6461
6461
|
break;
|
|
@@ -6465,7 +6465,7 @@ function Za(n) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
}, [i, e, r, o, s]), null;
|
|
6467
6467
|
}
|
|
6468
|
-
function
|
|
6468
|
+
function wr(n, e) {
|
|
6469
6469
|
let {
|
|
6470
6470
|
transform: t,
|
|
6471
6471
|
...i
|
|
@@ -6475,7 +6475,7 @@ function br(n, e) {
|
|
|
6475
6475
|
...i
|
|
6476
6476
|
}), t) : t;
|
|
6477
6477
|
}
|
|
6478
|
-
function
|
|
6478
|
+
function rl(n) {
|
|
6479
6479
|
return B(
|
|
6480
6480
|
() => ({
|
|
6481
6481
|
draggable: {
|
|
@@ -6495,7 +6495,7 @@ function Qa(n) {
|
|
|
6495
6495
|
[n == null ? void 0 : n.draggable, n == null ? void 0 : n.droppable, n == null ? void 0 : n.dragOverlay]
|
|
6496
6496
|
);
|
|
6497
6497
|
}
|
|
6498
|
-
function
|
|
6498
|
+
function sl(n) {
|
|
6499
6499
|
let {
|
|
6500
6500
|
activeNode: e,
|
|
6501
6501
|
measure: t,
|
|
@@ -6519,9 +6519,9 @@ function el(n) {
|
|
|
6519
6519
|
const u = e == null ? void 0 : e.node.current;
|
|
6520
6520
|
if (!u || u.isConnected === !1)
|
|
6521
6521
|
return;
|
|
6522
|
-
const c = t(u), d =
|
|
6522
|
+
const c = t(u), d = ar(c, i);
|
|
6523
6523
|
if (o || (d.x = 0), a || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
|
|
6524
|
-
const h =
|
|
6524
|
+
const h = cr(u);
|
|
6525
6525
|
h && h.scrollBy({
|
|
6526
6526
|
top: d.y,
|
|
6527
6527
|
left: d.x
|
|
@@ -6529,29 +6529,29 @@ function el(n) {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
}, [e, o, a, i, t]);
|
|
6531
6531
|
}
|
|
6532
|
-
const si = /* @__PURE__ */
|
|
6532
|
+
const si = /* @__PURE__ */ Oe({
|
|
6533
6533
|
...pe,
|
|
6534
6534
|
scaleX: 1,
|
|
6535
6535
|
scaleY: 1
|
|
6536
6536
|
});
|
|
6537
|
-
var
|
|
6537
|
+
var Ie;
|
|
6538
6538
|
(function(n) {
|
|
6539
6539
|
n[n.Uninitialized = 0] = "Uninitialized", n[n.Initializing = 1] = "Initializing", n[n.Initialized = 2] = "Initialized";
|
|
6540
|
-
})(
|
|
6541
|
-
const
|
|
6540
|
+
})(Ie || (Ie = {}));
|
|
6541
|
+
const ol = /* @__PURE__ */ lo(function(e) {
|
|
6542
6542
|
var t, i, r, s;
|
|
6543
6543
|
let {
|
|
6544
6544
|
id: o,
|
|
6545
6545
|
accessibility: a,
|
|
6546
6546
|
autoScroll: l = !0,
|
|
6547
6547
|
children: u,
|
|
6548
|
-
sensors: c =
|
|
6549
|
-
collisionDetection: d =
|
|
6548
|
+
sensors: c = Za,
|
|
6549
|
+
collisionDetection: d = ga,
|
|
6550
6550
|
measuring: h,
|
|
6551
6551
|
modifiers: f,
|
|
6552
6552
|
...x
|
|
6553
6553
|
} = e;
|
|
6554
|
-
const v =
|
|
6554
|
+
const v = co(il, void 0, tl), [w, S] = v, [N, C] = na(), [R, y] = W(Ie.Uninitialized), b = R === Ie.Initialized, {
|
|
6555
6555
|
draggable: {
|
|
6556
6556
|
active: D,
|
|
6557
6557
|
nodes: E,
|
|
@@ -6568,31 +6568,31 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6568
6568
|
return D != null ? {
|
|
6569
6569
|
id: D,
|
|
6570
6570
|
// It's possible for the active node to unmount while dragging
|
|
6571
|
-
data: (Z = m == null ? void 0 : m.data) != null ? Z :
|
|
6571
|
+
data: (Z = m == null ? void 0 : m.data) != null ? Z : Qa,
|
|
6572
6572
|
rect: _
|
|
6573
6573
|
} : null;
|
|
6574
|
-
}, [D, m]),
|
|
6575
|
-
droppableRects:
|
|
6576
|
-
measureDroppableContainers:
|
|
6574
|
+
}, [D, m]), M = I(null), [q, X] = W(null), [U, te] = W(null), G = vt(x, Object.values(x)), ne = Ct("DndDescribedBy", o), Dt = B(() => A.getEnabled(), [A]), ie = rl(h), {
|
|
6575
|
+
droppableRects: Ee,
|
|
6576
|
+
measureDroppableContainers: Fe,
|
|
6577
6577
|
measuringScheduled: it
|
|
6578
|
-
} =
|
|
6578
|
+
} = Wa(Dt, {
|
|
6579
6579
|
dragging: b,
|
|
6580
6580
|
dependencies: [k.x, k.y],
|
|
6581
6581
|
config: ie.droppable
|
|
6582
|
-
}), ce =
|
|
6583
|
-
|
|
6582
|
+
}), ce = Ba(E, D), Rt = B(() => U ? jt(U) : null, [U]), Ae = $r(), De = Ga(ce, ie.draggable.measure);
|
|
6583
|
+
sl({
|
|
6584
6584
|
activeNode: D != null ? E.get(D) : null,
|
|
6585
|
-
config:
|
|
6586
|
-
initialRect:
|
|
6585
|
+
config: Ae.layoutShiftCompensation,
|
|
6586
|
+
initialRect: De,
|
|
6587
6587
|
measure: ie.draggable.measure
|
|
6588
6588
|
});
|
|
6589
|
-
const $ =
|
|
6589
|
+
const $ = fn(ce, ie.draggable.measure, De), nt = fn(ce ? ce.parentElement : null), ve = I({
|
|
6590
6590
|
activatorEvent: null,
|
|
6591
6591
|
active: null,
|
|
6592
6592
|
activeNode: ce,
|
|
6593
6593
|
collisionRect: null,
|
|
6594
6594
|
collisions: null,
|
|
6595
|
-
droppableRects:
|
|
6595
|
+
droppableRects: Ee,
|
|
6596
6596
|
draggableNodes: E,
|
|
6597
6597
|
draggingNode: null,
|
|
6598
6598
|
draggingNodeRect: null,
|
|
@@ -6600,9 +6600,9 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6600
6600
|
over: null,
|
|
6601
6601
|
scrollableAncestors: [],
|
|
6602
6602
|
scrollAdjustedTranslate: null
|
|
6603
|
-
}), We = A.getNodeFor((t = ve.current.over) == null ? void 0 : t.id),
|
|
6603
|
+
}), We = A.getNodeFor((t = ve.current.over) == null ? void 0 : t.id), Re = Ja({
|
|
6604
6604
|
measure: ie.dragOverlay.measure
|
|
6605
|
-
}), Ge = (i =
|
|
6605
|
+
}), Ge = (i = Re.nodeRef.current) != null ? i : ce, $e = b ? (r = Re.rect) != null ? r : $ : null, Gi = !!(Re.nodeRef.current && Re.rect), $i = Ua(Gi ? null : $), ai = vr(Ge ? ee(Ge) : null), Te = Ka(b ? We ?? ce : null), St = qa(Te), Nt = wr(f, {
|
|
6606
6606
|
transform: {
|
|
6607
6607
|
x: k.x - $i.x,
|
|
6608
6608
|
y: k.y - $i.y,
|
|
@@ -6615,32 +6615,32 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6615
6615
|
containerNodeRect: nt,
|
|
6616
6616
|
draggingNodeRect: $e,
|
|
6617
6617
|
over: ve.current.over,
|
|
6618
|
-
overlayNodeRect:
|
|
6619
|
-
scrollableAncestors:
|
|
6618
|
+
overlayNodeRect: Re.rect,
|
|
6619
|
+
scrollableAncestors: Te,
|
|
6620
6620
|
scrollableAncestorRects: St,
|
|
6621
6621
|
windowRect: ai
|
|
6622
|
-
}), ji = Rt ?
|
|
6622
|
+
}), ji = Rt ? Ve(Rt, k) : null, Ui = Xa(Te), Lr = pn(Ui), Ir = pn(Ui, [$]), je = Ve(Nt, Lr), Ue = $e ? va($e, Nt) : null, rt = O && Ue ? d({
|
|
6623
6623
|
active: O,
|
|
6624
6624
|
collisionRect: Ue,
|
|
6625
|
-
droppableRects:
|
|
6625
|
+
droppableRects: Ee,
|
|
6626
6626
|
droppableContainers: Dt,
|
|
6627
6627
|
pointerCoordinates: ji
|
|
6628
|
-
}) : null, Ki =
|
|
6628
|
+
}) : null, Ki = or(rt, "id"), [ke, Xi] = W(null), Hr = Gi ? Nt : Ve(Nt, Ir), Br = pa(Hr, (s = ke == null ? void 0 : ke.rect) != null ? s : null, $), li = I(null), Yi = K(
|
|
6629
6629
|
(Z, re) => {
|
|
6630
6630
|
let {
|
|
6631
6631
|
sensor: se,
|
|
6632
|
-
options:
|
|
6632
|
+
options: ze
|
|
6633
6633
|
} = re;
|
|
6634
|
-
if (
|
|
6634
|
+
if (M.current == null)
|
|
6635
6635
|
return;
|
|
6636
|
-
const de = E.get(
|
|
6636
|
+
const de = E.get(M.current);
|
|
6637
6637
|
if (!de)
|
|
6638
6638
|
return;
|
|
6639
6639
|
const oe = Z.nativeEvent, ye = new se({
|
|
6640
|
-
active:
|
|
6640
|
+
active: M.current,
|
|
6641
6641
|
activeNode: de,
|
|
6642
6642
|
event: oe,
|
|
6643
|
-
options:
|
|
6643
|
+
options: ze,
|
|
6644
6644
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
6645
6645
|
// otherwise they are frozen in time with the stale arguments
|
|
6646
6646
|
context: ve,
|
|
@@ -6649,52 +6649,52 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6649
6649
|
return;
|
|
6650
6650
|
const {
|
|
6651
6651
|
onDragAbort: be
|
|
6652
|
-
} = G.current,
|
|
6652
|
+
} = G.current, Se = {
|
|
6653
6653
|
id: J
|
|
6654
6654
|
};
|
|
6655
|
-
be == null || be(
|
|
6655
|
+
be == null || be(Se), N({
|
|
6656
6656
|
type: "onDragAbort",
|
|
6657
|
-
event:
|
|
6657
|
+
event: Se
|
|
6658
6658
|
});
|
|
6659
6659
|
},
|
|
6660
|
-
onPending(J,
|
|
6660
|
+
onPending(J, Pe, be, Se) {
|
|
6661
6661
|
if (!E.get(J))
|
|
6662
6662
|
return;
|
|
6663
6663
|
const {
|
|
6664
6664
|
onDragPending: ot
|
|
6665
|
-
} = G.current,
|
|
6665
|
+
} = G.current, Me = {
|
|
6666
6666
|
id: J,
|
|
6667
|
-
constraint:
|
|
6667
|
+
constraint: Pe,
|
|
6668
6668
|
initialCoordinates: be,
|
|
6669
|
-
offset:
|
|
6669
|
+
offset: Se
|
|
6670
6670
|
};
|
|
6671
|
-
ot == null || ot(
|
|
6671
|
+
ot == null || ot(Me), N({
|
|
6672
6672
|
type: "onDragPending",
|
|
6673
|
-
event:
|
|
6673
|
+
event: Me
|
|
6674
6674
|
});
|
|
6675
6675
|
},
|
|
6676
6676
|
onStart(J) {
|
|
6677
|
-
const
|
|
6678
|
-
if (
|
|
6677
|
+
const Pe = M.current;
|
|
6678
|
+
if (Pe == null)
|
|
6679
6679
|
return;
|
|
6680
|
-
const be = E.get(
|
|
6680
|
+
const be = E.get(Pe);
|
|
6681
6681
|
if (!be)
|
|
6682
6682
|
return;
|
|
6683
6683
|
const {
|
|
6684
|
-
onDragStart:
|
|
6684
|
+
onDragStart: Se
|
|
6685
6685
|
} = G.current, st = {
|
|
6686
6686
|
activatorEvent: oe,
|
|
6687
6687
|
active: {
|
|
6688
|
-
id:
|
|
6688
|
+
id: Pe,
|
|
6689
6689
|
data: be.data,
|
|
6690
6690
|
rect: _
|
|
6691
6691
|
}
|
|
6692
6692
|
};
|
|
6693
6693
|
At(() => {
|
|
6694
|
-
|
|
6694
|
+
Se == null || Se(st), y(Ie.Initializing), S({
|
|
6695
6695
|
type: Y.DragStart,
|
|
6696
6696
|
initialCoordinates: J,
|
|
6697
|
-
active:
|
|
6697
|
+
active: Pe
|
|
6698
6698
|
}), N({
|
|
6699
6699
|
type: "onDragStart",
|
|
6700
6700
|
event: st
|
|
@@ -6715,33 +6715,33 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6715
6715
|
return async function() {
|
|
6716
6716
|
const {
|
|
6717
6717
|
active: be,
|
|
6718
|
-
collisions:
|
|
6718
|
+
collisions: Se,
|
|
6719
6719
|
over: st,
|
|
6720
6720
|
scrollAdjustedTranslate: ot
|
|
6721
6721
|
} = ve.current;
|
|
6722
|
-
let
|
|
6722
|
+
let Me = null;
|
|
6723
6723
|
if (be && ot) {
|
|
6724
6724
|
const {
|
|
6725
6725
|
cancelDrop: at
|
|
6726
6726
|
} = G.current;
|
|
6727
|
-
|
|
6727
|
+
Me = {
|
|
6728
6728
|
activatorEvent: oe,
|
|
6729
6729
|
active: be,
|
|
6730
|
-
collisions:
|
|
6730
|
+
collisions: Se,
|
|
6731
6731
|
delta: ot,
|
|
6732
6732
|
over: st
|
|
6733
|
-
}, J === Y.DragEnd && typeof at == "function" && await Promise.resolve(at(
|
|
6733
|
+
}, J === Y.DragEnd && typeof at == "function" && await Promise.resolve(at(Me)) && (J = Y.DragCancel);
|
|
6734
6734
|
}
|
|
6735
|
-
|
|
6735
|
+
M.current = null, At(() => {
|
|
6736
6736
|
S({
|
|
6737
6737
|
type: J
|
|
6738
|
-
}), y(
|
|
6738
|
+
}), y(Ie.Uninitialized), Xi(null), X(null), te(null), li.current = null;
|
|
6739
6739
|
const at = J === Y.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
6740
|
-
if (
|
|
6740
|
+
if (Me) {
|
|
6741
6741
|
const ci = G.current[at];
|
|
6742
|
-
ci == null || ci(
|
|
6742
|
+
ci == null || ci(Me), N({
|
|
6743
6743
|
type: at,
|
|
6744
|
-
event:
|
|
6744
|
+
event: Me
|
|
6745
6745
|
});
|
|
6746
6746
|
}
|
|
6747
6747
|
});
|
|
@@ -6750,11 +6750,11 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6750
6750
|
},
|
|
6751
6751
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6752
6752
|
[E]
|
|
6753
|
-
),
|
|
6754
|
-
const de = se.nativeEvent, oe = E.get(
|
|
6753
|
+
), Fr = K((Z, re) => (se, ze) => {
|
|
6754
|
+
const de = se.nativeEvent, oe = E.get(ze);
|
|
6755
6755
|
if (
|
|
6756
6756
|
// Another sensor is already instantiating
|
|
6757
|
-
|
|
6757
|
+
M.current !== null || // No active draggable
|
|
6758
6758
|
!oe || // Event has already been captured
|
|
6759
6759
|
de.dndKit || de.defaultPrevented
|
|
6760
6760
|
)
|
|
@@ -6764,10 +6764,10 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6764
6764
|
};
|
|
6765
6765
|
Z(se, re.options, ye) === !0 && (de.dndKit = {
|
|
6766
6766
|
capturedBy: re.sensor
|
|
6767
|
-
},
|
|
6768
|
-
}, [E, Yi]),
|
|
6769
|
-
|
|
6770
|
-
$ && R ===
|
|
6767
|
+
}, M.current = ze, Yi(se, re));
|
|
6768
|
+
}, [E, Yi]), Vi = Fa(c, Fr);
|
|
6769
|
+
Ya(c), ge(() => {
|
|
6770
|
+
$ && R === Ie.Initializing && y(Ie.Initialized);
|
|
6771
6771
|
}, [$, R]), H(
|
|
6772
6772
|
() => {
|
|
6773
6773
|
const {
|
|
@@ -6775,7 +6775,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6775
6775
|
} = G.current, {
|
|
6776
6776
|
active: re,
|
|
6777
6777
|
activatorEvent: se,
|
|
6778
|
-
collisions:
|
|
6778
|
+
collisions: ze,
|
|
6779
6779
|
over: de
|
|
6780
6780
|
} = ve.current;
|
|
6781
6781
|
if (!re || !se)
|
|
@@ -6783,7 +6783,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6783
6783
|
const oe = {
|
|
6784
6784
|
active: re,
|
|
6785
6785
|
activatorEvent: se,
|
|
6786
|
-
collisions:
|
|
6786
|
+
collisions: ze,
|
|
6787
6787
|
delta: {
|
|
6788
6788
|
x: je.x,
|
|
6789
6789
|
y: je.y
|
|
@@ -6805,14 +6805,14 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6805
6805
|
active: Z,
|
|
6806
6806
|
activatorEvent: re,
|
|
6807
6807
|
collisions: se,
|
|
6808
|
-
droppableContainers:
|
|
6808
|
+
droppableContainers: ze,
|
|
6809
6809
|
scrollAdjustedTranslate: de
|
|
6810
6810
|
} = ve.current;
|
|
6811
|
-
if (!Z ||
|
|
6811
|
+
if (!Z || M.current == null || !re || !de)
|
|
6812
6812
|
return;
|
|
6813
6813
|
const {
|
|
6814
6814
|
onDragOver: oe
|
|
6815
|
-
} = G.current, ye =
|
|
6815
|
+
} = G.current, ye = ze.get(Ki), Ke = ye && ye.rect.current ? {
|
|
6816
6816
|
id: ye.id,
|
|
6817
6817
|
rect: ye.rect.current,
|
|
6818
6818
|
data: ye.data,
|
|
@@ -6843,47 +6843,47 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6843
6843
|
activeNode: ce,
|
|
6844
6844
|
collisionRect: Ue,
|
|
6845
6845
|
collisions: rt,
|
|
6846
|
-
droppableRects:
|
|
6846
|
+
droppableRects: Ee,
|
|
6847
6847
|
draggableNodes: E,
|
|
6848
6848
|
draggingNode: Ge,
|
|
6849
6849
|
draggingNodeRect: $e,
|
|
6850
6850
|
droppableContainers: A,
|
|
6851
|
-
over:
|
|
6852
|
-
scrollableAncestors:
|
|
6851
|
+
over: ke,
|
|
6852
|
+
scrollableAncestors: Te,
|
|
6853
6853
|
scrollAdjustedTranslate: je
|
|
6854
6854
|
}, _.current = {
|
|
6855
6855
|
initial: $e,
|
|
6856
6856
|
translated: Ue
|
|
6857
6857
|
};
|
|
6858
|
-
}, [O, ce, rt, Ue, E, Ge, $e,
|
|
6859
|
-
...
|
|
6858
|
+
}, [O, ce, rt, Ue, E, Ge, $e, Ee, A, ke, Te, je]), La({
|
|
6859
|
+
...Ae,
|
|
6860
6860
|
delta: k,
|
|
6861
6861
|
draggingRect: Ue,
|
|
6862
6862
|
pointerCoordinates: ji,
|
|
6863
|
-
scrollableAncestors:
|
|
6863
|
+
scrollableAncestors: Te,
|
|
6864
6864
|
scrollableAncestorRects: St
|
|
6865
6865
|
});
|
|
6866
|
-
const
|
|
6866
|
+
const Wr = B(() => ({
|
|
6867
6867
|
active: O,
|
|
6868
6868
|
activeNode: ce,
|
|
6869
6869
|
activeNodeRect: $,
|
|
6870
6870
|
activatorEvent: U,
|
|
6871
6871
|
collisions: rt,
|
|
6872
6872
|
containerNodeRect: nt,
|
|
6873
|
-
dragOverlay:
|
|
6873
|
+
dragOverlay: Re,
|
|
6874
6874
|
draggableNodes: E,
|
|
6875
6875
|
droppableContainers: A,
|
|
6876
|
-
droppableRects:
|
|
6877
|
-
over:
|
|
6878
|
-
measureDroppableContainers:
|
|
6879
|
-
scrollableAncestors:
|
|
6876
|
+
droppableRects: Ee,
|
|
6877
|
+
over: ke,
|
|
6878
|
+
measureDroppableContainers: Fe,
|
|
6879
|
+
scrollableAncestors: Te,
|
|
6880
6880
|
scrollableAncestorRects: St,
|
|
6881
6881
|
measuringConfiguration: ie,
|
|
6882
6882
|
measuringScheduled: it,
|
|
6883
6883
|
windowRect: ai
|
|
6884
|
-
}), [O, ce, $, U, rt, nt,
|
|
6884
|
+
}), [O, ce, $, U, rt, nt, Re, E, A, Ee, ke, Fe, Te, St, ie, it, ai]), Gr = B(() => ({
|
|
6885
6885
|
activatorEvent: U,
|
|
6886
|
-
activators:
|
|
6886
|
+
activators: Vi,
|
|
6887
6887
|
active: O,
|
|
6888
6888
|
activeNodeRect: $,
|
|
6889
6889
|
ariaDescribedById: {
|
|
@@ -6891,25 +6891,25 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6891
6891
|
},
|
|
6892
6892
|
dispatch: S,
|
|
6893
6893
|
draggableNodes: E,
|
|
6894
|
-
over:
|
|
6895
|
-
measureDroppableContainers:
|
|
6896
|
-
}), [U,
|
|
6897
|
-
return L.createElement(
|
|
6894
|
+
over: ke,
|
|
6895
|
+
measureDroppableContainers: Fe
|
|
6896
|
+
}), [U, Vi, O, $, S, ne, E, ke, Fe]);
|
|
6897
|
+
return L.createElement(sr.Provider, {
|
|
6898
6898
|
value: C
|
|
6899
6899
|
}, L.createElement(_t.Provider, {
|
|
6900
|
-
value:
|
|
6901
|
-
}, L.createElement(
|
|
6902
|
-
value:
|
|
6900
|
+
value: Gr
|
|
6901
|
+
}, L.createElement(xr.Provider, {
|
|
6902
|
+
value: Wr
|
|
6903
6903
|
}, L.createElement(si.Provider, {
|
|
6904
|
-
value:
|
|
6905
|
-
}, u)), L.createElement(
|
|
6904
|
+
value: Br
|
|
6905
|
+
}, u)), L.createElement(nl, {
|
|
6906
6906
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
6907
|
-
})), L.createElement(
|
|
6907
|
+
})), L.createElement(oa, {
|
|
6908
6908
|
...a,
|
|
6909
6909
|
hiddenTextDescribedById: ne
|
|
6910
6910
|
}));
|
|
6911
|
-
function
|
|
6912
|
-
const Z = (
|
|
6911
|
+
function $r() {
|
|
6912
|
+
const Z = (q == null ? void 0 : q.autoScrollEnabled) === !1, re = typeof l == "object" ? l.enabled === !1 : l === !1, se = b && !Z && !re;
|
|
6913
6913
|
return typeof l == "object" ? {
|
|
6914
6914
|
...l,
|
|
6915
6915
|
enabled: se
|
|
@@ -6917,15 +6917,15 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6917
6917
|
enabled: se
|
|
6918
6918
|
};
|
|
6919
6919
|
}
|
|
6920
|
-
}),
|
|
6921
|
-
function
|
|
6920
|
+
}), al = /* @__PURE__ */ Oe(null), vn = "button", ll = "Draggable";
|
|
6921
|
+
function cl(n) {
|
|
6922
6922
|
let {
|
|
6923
6923
|
id: e,
|
|
6924
6924
|
data: t,
|
|
6925
6925
|
disabled: i = !1,
|
|
6926
6926
|
attributes: r
|
|
6927
6927
|
} = n;
|
|
6928
|
-
const s = Ct(
|
|
6928
|
+
const s = Ct(ll), {
|
|
6929
6929
|
activators: o,
|
|
6930
6930
|
activatorEvent: a,
|
|
6931
6931
|
active: l,
|
|
@@ -6933,11 +6933,11 @@ function rl(n) {
|
|
|
6933
6933
|
ariaDescribedById: c,
|
|
6934
6934
|
draggableNodes: d,
|
|
6935
6935
|
over: h
|
|
6936
|
-
} =
|
|
6937
|
-
role: f =
|
|
6936
|
+
} = _e(_t), {
|
|
6937
|
+
role: f = vn,
|
|
6938
6938
|
roleDescription: x = "draggable",
|
|
6939
6939
|
tabIndex: v = 0
|
|
6940
|
-
} = r ?? {}, w = (l == null ? void 0 : l.id) === e, S =
|
|
6940
|
+
} = r ?? {}, w = (l == null ? void 0 : l.id) === e, S = _e(w ? si : al), [N, C] = Gt(), [R, y] = Gt(), b = Va(o, e), D = vt(t);
|
|
6941
6941
|
ge(
|
|
6942
6942
|
() => (d.set(e, {
|
|
6943
6943
|
id: e,
|
|
@@ -6956,7 +6956,7 @@ function rl(n) {
|
|
|
6956
6956
|
role: f,
|
|
6957
6957
|
tabIndex: v,
|
|
6958
6958
|
"aria-disabled": i,
|
|
6959
|
-
"aria-pressed": w && f ===
|
|
6959
|
+
"aria-pressed": w && f === vn ? !0 : void 0,
|
|
6960
6960
|
"aria-roledescription": x,
|
|
6961
6961
|
"aria-describedby": c.draggable
|
|
6962
6962
|
}), [i, f, v, w, x, c.draggable]);
|
|
@@ -6974,32 +6974,32 @@ function rl(n) {
|
|
|
6974
6974
|
transform: S
|
|
6975
6975
|
};
|
|
6976
6976
|
}
|
|
6977
|
-
function
|
|
6978
|
-
return
|
|
6977
|
+
function Cr() {
|
|
6978
|
+
return _e(xr);
|
|
6979
6979
|
}
|
|
6980
|
-
const
|
|
6980
|
+
const dl = "Droppable", ul = {
|
|
6981
6981
|
timeout: 25
|
|
6982
6982
|
};
|
|
6983
|
-
function
|
|
6983
|
+
function hl(n) {
|
|
6984
6984
|
let {
|
|
6985
6985
|
data: e,
|
|
6986
6986
|
disabled: t = !1,
|
|
6987
6987
|
id: i,
|
|
6988
6988
|
resizeObserverConfig: r
|
|
6989
6989
|
} = n;
|
|
6990
|
-
const s = Ct(
|
|
6990
|
+
const s = Ct(dl), {
|
|
6991
6991
|
active: o,
|
|
6992
6992
|
dispatch: a,
|
|
6993
6993
|
over: l,
|
|
6994
6994
|
measureDroppableContainers: u
|
|
6995
|
-
} =
|
|
6995
|
+
} = _e(_t), c = I({
|
|
6996
6996
|
disabled: t
|
|
6997
6997
|
}), d = I(!1), h = I(null), f = I(null), {
|
|
6998
6998
|
disabled: x,
|
|
6999
6999
|
updateMeasurementsFor: v,
|
|
7000
7000
|
timeout: w
|
|
7001
7001
|
} = {
|
|
7002
|
-
...
|
|
7002
|
+
...ul,
|
|
7003
7003
|
...r
|
|
7004
7004
|
}, S = vt(v ?? i), N = K(
|
|
7005
7005
|
() => {
|
|
@@ -7055,7 +7055,7 @@ function al(n) {
|
|
|
7055
7055
|
setNodeRef: b
|
|
7056
7056
|
};
|
|
7057
7057
|
}
|
|
7058
|
-
function
|
|
7058
|
+
function fl(n) {
|
|
7059
7059
|
let {
|
|
7060
7060
|
animation: e,
|
|
7061
7061
|
children: t
|
|
@@ -7072,30 +7072,30 @@ function ll(n) {
|
|
|
7072
7072
|
Promise.resolve(e(u, s)).then(() => {
|
|
7073
7073
|
r(null);
|
|
7074
7074
|
});
|
|
7075
|
-
}, [e, i, s]), L.createElement(L.Fragment, null, t, i ?
|
|
7075
|
+
}, [e, i, s]), L.createElement(L.Fragment, null, t, i ? uo(i, {
|
|
7076
7076
|
ref: o
|
|
7077
7077
|
}) : null);
|
|
7078
7078
|
}
|
|
7079
|
-
const
|
|
7079
|
+
const gl = {
|
|
7080
7080
|
x: 0,
|
|
7081
7081
|
y: 0,
|
|
7082
7082
|
scaleX: 1,
|
|
7083
7083
|
scaleY: 1
|
|
7084
7084
|
};
|
|
7085
|
-
function
|
|
7085
|
+
function pl(n) {
|
|
7086
7086
|
let {
|
|
7087
7087
|
children: e
|
|
7088
7088
|
} = n;
|
|
7089
7089
|
return L.createElement(_t.Provider, {
|
|
7090
|
-
value:
|
|
7090
|
+
value: br
|
|
7091
7091
|
}, L.createElement(si.Provider, {
|
|
7092
|
-
value:
|
|
7092
|
+
value: gl
|
|
7093
7093
|
}, e));
|
|
7094
7094
|
}
|
|
7095
|
-
const
|
|
7095
|
+
const ml = {
|
|
7096
7096
|
position: "fixed",
|
|
7097
7097
|
touchAction: "none"
|
|
7098
|
-
},
|
|
7098
|
+
}, vl = (n) => ii(n) ? "transform 250ms ease" : void 0, yl = /* @__PURE__ */ le((n, e) => {
|
|
7099
7099
|
let {
|
|
7100
7100
|
as: t,
|
|
7101
7101
|
activatorEvent: i,
|
|
@@ -7105,7 +7105,7 @@ const ul = {
|
|
|
7105
7105
|
rect: a,
|
|
7106
7106
|
style: l,
|
|
7107
7107
|
transform: u,
|
|
7108
|
-
transition: c =
|
|
7108
|
+
transition: c = vl
|
|
7109
7109
|
} = n;
|
|
7110
7110
|
if (!a)
|
|
7111
7111
|
return null;
|
|
@@ -7114,13 +7114,13 @@ const ul = {
|
|
|
7114
7114
|
scaleX: 1,
|
|
7115
7115
|
scaleY: 1
|
|
7116
7116
|
}, h = {
|
|
7117
|
-
...
|
|
7117
|
+
...ml,
|
|
7118
7118
|
width: a.width,
|
|
7119
7119
|
height: a.height,
|
|
7120
7120
|
top: a.top,
|
|
7121
7121
|
left: a.left,
|
|
7122
|
-
transform:
|
|
7123
|
-
transformOrigin: r && i ?
|
|
7122
|
+
transform: Be.Transform.toString(d),
|
|
7123
|
+
transformOrigin: r && i ? ca(i, a) : void 0,
|
|
7124
7124
|
transition: typeof c == "function" ? c(i) : c,
|
|
7125
7125
|
...l
|
|
7126
7126
|
};
|
|
@@ -7129,7 +7129,7 @@ const ul = {
|
|
|
7129
7129
|
style: h,
|
|
7130
7130
|
ref: e
|
|
7131
7131
|
}, s);
|
|
7132
|
-
}),
|
|
7132
|
+
}), bl = (n) => (e) => {
|
|
7133
7133
|
let {
|
|
7134
7134
|
active: t,
|
|
7135
7135
|
dragOverlay: i
|
|
@@ -7149,7 +7149,7 @@ const ul = {
|
|
|
7149
7149
|
t.node.style.setProperty(l, u);
|
|
7150
7150
|
o != null && o.active && t.node.classList.remove(o.active);
|
|
7151
7151
|
};
|
|
7152
|
-
},
|
|
7152
|
+
}, xl = (n) => {
|
|
7153
7153
|
let {
|
|
7154
7154
|
transform: {
|
|
7155
7155
|
initial: e,
|
|
@@ -7157,15 +7157,15 @@ const ul = {
|
|
|
7157
7157
|
}
|
|
7158
7158
|
} = n;
|
|
7159
7159
|
return [{
|
|
7160
|
-
transform:
|
|
7160
|
+
transform: Be.Transform.toString(e)
|
|
7161
7161
|
}, {
|
|
7162
|
-
transform:
|
|
7162
|
+
transform: Be.Transform.toString(t)
|
|
7163
7163
|
}];
|
|
7164
|
-
},
|
|
7164
|
+
}, wl = {
|
|
7165
7165
|
duration: 250,
|
|
7166
7166
|
easing: "ease",
|
|
7167
|
-
keyframes:
|
|
7168
|
-
sideEffects: /* @__PURE__ */
|
|
7167
|
+
keyframes: xl,
|
|
7168
|
+
sideEffects: /* @__PURE__ */ bl({
|
|
7169
7169
|
styles: {
|
|
7170
7170
|
active: {
|
|
7171
7171
|
opacity: "0"
|
|
@@ -7173,7 +7173,7 @@ const ul = {
|
|
|
7173
7173
|
}
|
|
7174
7174
|
})
|
|
7175
7175
|
};
|
|
7176
|
-
function
|
|
7176
|
+
function Cl(n) {
|
|
7177
7177
|
let {
|
|
7178
7178
|
config: e,
|
|
7179
7179
|
draggableNodes: t,
|
|
@@ -7189,16 +7189,16 @@ function vl(n) {
|
|
|
7189
7189
|
const l = a.node.current;
|
|
7190
7190
|
if (!l)
|
|
7191
7191
|
return;
|
|
7192
|
-
const u =
|
|
7192
|
+
const u = yr(o);
|
|
7193
7193
|
if (!u)
|
|
7194
7194
|
return;
|
|
7195
7195
|
const {
|
|
7196
7196
|
transform: c
|
|
7197
|
-
} = ee(o).getComputedStyle(o), d =
|
|
7197
|
+
} = ee(o).getComputedStyle(o), d = lr(c);
|
|
7198
7198
|
if (!d)
|
|
7199
7199
|
return;
|
|
7200
|
-
const h = typeof e == "function" ? e :
|
|
7201
|
-
return
|
|
7200
|
+
const h = typeof e == "function" ? e : _l(e);
|
|
7201
|
+
return pr(l, r.draggable.measure), h({
|
|
7202
7202
|
active: {
|
|
7203
7203
|
id: s,
|
|
7204
7204
|
data: a.data,
|
|
@@ -7216,14 +7216,14 @@ function vl(n) {
|
|
|
7216
7216
|
});
|
|
7217
7217
|
});
|
|
7218
7218
|
}
|
|
7219
|
-
function
|
|
7219
|
+
function _l(n) {
|
|
7220
7220
|
const {
|
|
7221
7221
|
duration: e,
|
|
7222
7222
|
easing: t,
|
|
7223
7223
|
sideEffects: i,
|
|
7224
7224
|
keyframes: r
|
|
7225
7225
|
} = {
|
|
7226
|
-
...
|
|
7226
|
+
...wl,
|
|
7227
7227
|
...n
|
|
7228
7228
|
};
|
|
7229
7229
|
return (s) => {
|
|
@@ -7272,14 +7272,14 @@ function yl(n) {
|
|
|
7272
7272
|
});
|
|
7273
7273
|
};
|
|
7274
7274
|
}
|
|
7275
|
-
let
|
|
7276
|
-
function
|
|
7275
|
+
let yn = 0;
|
|
7276
|
+
function El(n) {
|
|
7277
7277
|
return B(() => {
|
|
7278
7278
|
if (n != null)
|
|
7279
|
-
return
|
|
7279
|
+
return yn++, yn;
|
|
7280
7280
|
}, [n]);
|
|
7281
7281
|
}
|
|
7282
|
-
const
|
|
7282
|
+
const Dl = /* @__PURE__ */ L.memo((n) => {
|
|
7283
7283
|
let {
|
|
7284
7284
|
adjustScale: e = !1,
|
|
7285
7285
|
children: t,
|
|
@@ -7304,7 +7304,7 @@ const xl = /* @__PURE__ */ L.memo((n) => {
|
|
|
7304
7304
|
scrollableAncestors: C,
|
|
7305
7305
|
scrollableAncestorRects: R,
|
|
7306
7306
|
windowRect: y
|
|
7307
|
-
} =
|
|
7307
|
+
} = Cr(), b = _e(si), D = El(d == null ? void 0 : d.id), E = wr(o, {
|
|
7308
7308
|
activatorEvent: c,
|
|
7309
7309
|
active: d,
|
|
7310
7310
|
activeNodeRect: h,
|
|
@@ -7316,15 +7316,15 @@ const xl = /* @__PURE__ */ L.memo((n) => {
|
|
|
7316
7316
|
scrollableAncestorRects: R,
|
|
7317
7317
|
transform: b,
|
|
7318
7318
|
windowRect: y
|
|
7319
|
-
}), k = Bi(h), A =
|
|
7319
|
+
}), k = Bi(h), A = Cl({
|
|
7320
7320
|
config: i,
|
|
7321
7321
|
draggableNodes: x,
|
|
7322
7322
|
droppableContainers: v,
|
|
7323
7323
|
measuringConfiguration: N
|
|
7324
7324
|
}), m = k ? w.setRef : void 0;
|
|
7325
|
-
return L.createElement(
|
|
7325
|
+
return L.createElement(pl, null, L.createElement(fl, {
|
|
7326
7326
|
animation: A
|
|
7327
|
-
}, d && D ? L.createElement(
|
|
7327
|
+
}, d && D ? L.createElement(yl, {
|
|
7328
7328
|
key: D,
|
|
7329
7329
|
id: d.id,
|
|
7330
7330
|
ref: m,
|
|
@@ -7345,7 +7345,7 @@ function Fi(n, e, t) {
|
|
|
7345
7345
|
const i = n.slice();
|
|
7346
7346
|
return i.splice(t < 0 ? i.length + t : t, 0, i.splice(e, 1)[0]), i;
|
|
7347
7347
|
}
|
|
7348
|
-
function
|
|
7348
|
+
function Rl(n, e) {
|
|
7349
7349
|
return n.reduce((t, i, r) => {
|
|
7350
7350
|
const s = e.get(i);
|
|
7351
7351
|
return s && (t[r] = s), t;
|
|
@@ -7354,7 +7354,7 @@ function wl(n, e) {
|
|
|
7354
7354
|
function kt(n) {
|
|
7355
7355
|
return n !== null && n >= 0;
|
|
7356
7356
|
}
|
|
7357
|
-
function
|
|
7357
|
+
function Sl(n, e) {
|
|
7358
7358
|
if (n === e)
|
|
7359
7359
|
return !0;
|
|
7360
7360
|
if (n.length !== e.length)
|
|
@@ -7364,13 +7364,13 @@ function Cl(n, e) {
|
|
|
7364
7364
|
return !1;
|
|
7365
7365
|
return !0;
|
|
7366
7366
|
}
|
|
7367
|
-
function
|
|
7367
|
+
function Nl(n) {
|
|
7368
7368
|
return typeof n == "boolean" ? {
|
|
7369
7369
|
draggable: n,
|
|
7370
7370
|
droppable: n
|
|
7371
7371
|
} : n;
|
|
7372
7372
|
}
|
|
7373
|
-
const
|
|
7373
|
+
const _r = (n) => {
|
|
7374
7374
|
let {
|
|
7375
7375
|
rects: e,
|
|
7376
7376
|
activeIndex: t,
|
|
@@ -7384,26 +7384,26 @@ const wr = (n) => {
|
|
|
7384
7384
|
scaleX: a.width / o.width,
|
|
7385
7385
|
scaleY: a.height / o.height
|
|
7386
7386
|
};
|
|
7387
|
-
},
|
|
7387
|
+
}, Er = "Sortable", Dr = /* @__PURE__ */ L.createContext({
|
|
7388
7388
|
activeIndex: -1,
|
|
7389
|
-
containerId:
|
|
7389
|
+
containerId: Er,
|
|
7390
7390
|
disableTransforms: !1,
|
|
7391
7391
|
items: [],
|
|
7392
7392
|
overIndex: -1,
|
|
7393
7393
|
useDragOverlay: !1,
|
|
7394
7394
|
sortedRects: [],
|
|
7395
|
-
strategy:
|
|
7395
|
+
strategy: _r,
|
|
7396
7396
|
disabled: {
|
|
7397
7397
|
draggable: !1,
|
|
7398
7398
|
droppable: !1
|
|
7399
7399
|
}
|
|
7400
7400
|
});
|
|
7401
|
-
function
|
|
7401
|
+
function Ol(n) {
|
|
7402
7402
|
let {
|
|
7403
7403
|
children: e,
|
|
7404
7404
|
id: t,
|
|
7405
7405
|
items: i,
|
|
7406
|
-
strategy: r =
|
|
7406
|
+
strategy: r = _r,
|
|
7407
7407
|
disabled: s = !1
|
|
7408
7408
|
} = n;
|
|
7409
7409
|
const {
|
|
@@ -7412,7 +7412,7 @@ function El(n) {
|
|
|
7412
7412
|
droppableRects: l,
|
|
7413
7413
|
over: u,
|
|
7414
7414
|
measureDroppableContainers: c
|
|
7415
|
-
} =
|
|
7415
|
+
} = Cr(), d = Ct(Er, t), h = a.rect !== null, f = B(() => i.map((b) => typeof b == "object" && "id" in b ? b.id : b), [i]), x = o != null, v = o ? f.indexOf(o.id) : -1, w = u ? f.indexOf(u.id) : -1, S = I(f), N = !Sl(f, S.current), C = w !== -1 && v === -1 || N, R = Nl(s);
|
|
7416
7416
|
ge(() => {
|
|
7417
7417
|
N && x && c(f);
|
|
7418
7418
|
}, [N, f, x, c]), H(() => {
|
|
@@ -7427,17 +7427,17 @@ function El(n) {
|
|
|
7427
7427
|
items: f,
|
|
7428
7428
|
overIndex: w,
|
|
7429
7429
|
useDragOverlay: h,
|
|
7430
|
-
sortedRects:
|
|
7430
|
+
sortedRects: Rl(f, l),
|
|
7431
7431
|
strategy: r
|
|
7432
7432
|
}),
|
|
7433
7433
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7434
7434
|
[v, d, R.draggable, R.droppable, C, f, w, l, h, r]
|
|
7435
7435
|
);
|
|
7436
|
-
return L.createElement(
|
|
7436
|
+
return L.createElement(Dr.Provider, {
|
|
7437
7437
|
value: y
|
|
7438
7438
|
}, e);
|
|
7439
7439
|
}
|
|
7440
|
-
const
|
|
7440
|
+
const Al = (n) => {
|
|
7441
7441
|
let {
|
|
7442
7442
|
id: e,
|
|
7443
7443
|
items: t,
|
|
@@ -7445,7 +7445,7 @@ const Dl = (n) => {
|
|
|
7445
7445
|
overIndex: r
|
|
7446
7446
|
} = n;
|
|
7447
7447
|
return Fi(t, i, r).indexOf(e);
|
|
7448
|
-
},
|
|
7448
|
+
}, Tl = (n) => {
|
|
7449
7449
|
let {
|
|
7450
7450
|
containerId: e,
|
|
7451
7451
|
isSorting: t,
|
|
@@ -7458,17 +7458,17 @@ const Dl = (n) => {
|
|
|
7458
7458
|
transition: u
|
|
7459
7459
|
} = n;
|
|
7460
7460
|
return !u || !i || a !== s && r === o ? !1 : t ? !0 : o !== r && e === l;
|
|
7461
|
-
},
|
|
7461
|
+
}, kl = {
|
|
7462
7462
|
duration: 200,
|
|
7463
7463
|
easing: "ease"
|
|
7464
|
-
},
|
|
7465
|
-
property:
|
|
7464
|
+
}, Rr = "transform", zl = /* @__PURE__ */ Be.Transition.toString({
|
|
7465
|
+
property: Rr,
|
|
7466
7466
|
duration: 0,
|
|
7467
7467
|
easing: "linear"
|
|
7468
|
-
}),
|
|
7468
|
+
}), Pl = {
|
|
7469
7469
|
roleDescription: "sortable"
|
|
7470
7470
|
};
|
|
7471
|
-
function
|
|
7471
|
+
function Ml(n) {
|
|
7472
7472
|
let {
|
|
7473
7473
|
disabled: e,
|
|
7474
7474
|
index: t,
|
|
@@ -7496,17 +7496,17 @@ function Al(n) {
|
|
|
7496
7496
|
s && o(null);
|
|
7497
7497
|
}, [s]), s;
|
|
7498
7498
|
}
|
|
7499
|
-
function
|
|
7499
|
+
function Ll(n) {
|
|
7500
7500
|
let {
|
|
7501
|
-
animateLayoutChanges: e =
|
|
7501
|
+
animateLayoutChanges: e = Tl,
|
|
7502
7502
|
attributes: t,
|
|
7503
7503
|
disabled: i,
|
|
7504
7504
|
data: r,
|
|
7505
|
-
getNewIndex: s =
|
|
7505
|
+
getNewIndex: s = Al,
|
|
7506
7506
|
id: o,
|
|
7507
7507
|
strategy: a,
|
|
7508
7508
|
resizeObserverConfig: l,
|
|
7509
|
-
transition: u =
|
|
7509
|
+
transition: u = kl
|
|
7510
7510
|
} = n;
|
|
7511
7511
|
const {
|
|
7512
7512
|
items: c,
|
|
@@ -7518,7 +7518,7 @@ function Tl(n) {
|
|
|
7518
7518
|
overIndex: w,
|
|
7519
7519
|
useDragOverlay: S,
|
|
7520
7520
|
strategy: N
|
|
7521
|
-
} =
|
|
7521
|
+
} = _e(Dr), C = Il(i, f), R = c.indexOf(o), y = B(() => ({
|
|
7522
7522
|
sortable: {
|
|
7523
7523
|
containerId: d,
|
|
7524
7524
|
index: R,
|
|
@@ -7530,7 +7530,7 @@ function Tl(n) {
|
|
|
7530
7530
|
node: E,
|
|
7531
7531
|
isOver: k,
|
|
7532
7532
|
setNodeRef: A
|
|
7533
|
-
} =
|
|
7533
|
+
} = hl({
|
|
7534
7534
|
id: o,
|
|
7535
7535
|
data: y,
|
|
7536
7536
|
disabled: C.droppable,
|
|
@@ -7542,36 +7542,36 @@ function Tl(n) {
|
|
|
7542
7542
|
active: m,
|
|
7543
7543
|
activatorEvent: _,
|
|
7544
7544
|
activeNodeRect: O,
|
|
7545
|
-
attributes:
|
|
7546
|
-
setNodeRef:
|
|
7545
|
+
attributes: M,
|
|
7546
|
+
setNodeRef: q,
|
|
7547
7547
|
listeners: X,
|
|
7548
7548
|
isDragging: U,
|
|
7549
7549
|
over: te,
|
|
7550
7550
|
setActivatorNodeRef: G,
|
|
7551
7551
|
transform: ne
|
|
7552
|
-
} =
|
|
7552
|
+
} = cl({
|
|
7553
7553
|
id: o,
|
|
7554
7554
|
data: y,
|
|
7555
7555
|
attributes: {
|
|
7556
|
-
...
|
|
7556
|
+
...Pl,
|
|
7557
7557
|
...t
|
|
7558
7558
|
},
|
|
7559
7559
|
disabled: C.draggable
|
|
7560
|
-
}), Dt =
|
|
7560
|
+
}), Dt = Xo(A, q), ie = !!m, Ee = ie && !x && kt(h) && kt(w), Fe = !S && U, it = Fe && Ee ? ne : null, Rt = Ee ? it ?? (a ?? N)({
|
|
7561
7561
|
rects: v,
|
|
7562
7562
|
activeNodeRect: O,
|
|
7563
7563
|
activeIndex: h,
|
|
7564
7564
|
overIndex: w,
|
|
7565
7565
|
index: R
|
|
7566
|
-
}) : null,
|
|
7566
|
+
}) : null, Ae = kt(h) && kt(w) ? s({
|
|
7567
7567
|
id: o,
|
|
7568
7568
|
items: c,
|
|
7569
7569
|
activeIndex: h,
|
|
7570
7570
|
overIndex: w
|
|
7571
|
-
}) : R,
|
|
7572
|
-
activeId:
|
|
7571
|
+
}) : R, De = m == null ? void 0 : m.id, $ = I({
|
|
7572
|
+
activeId: De,
|
|
7573
7573
|
items: c,
|
|
7574
|
-
newIndex:
|
|
7574
|
+
newIndex: Ae,
|
|
7575
7575
|
containerId: d
|
|
7576
7576
|
}), nt = c !== $.current.items, ve = e({
|
|
7577
7577
|
active: m,
|
|
@@ -7586,33 +7586,33 @@ function Tl(n) {
|
|
|
7586
7586
|
previousContainerId: $.current.containerId,
|
|
7587
7587
|
transition: u,
|
|
7588
7588
|
wasDragging: $.current.activeId != null
|
|
7589
|
-
}), We =
|
|
7589
|
+
}), We = Ml({
|
|
7590
7590
|
disabled: !ve,
|
|
7591
7591
|
index: R,
|
|
7592
7592
|
node: E,
|
|
7593
7593
|
rect: D
|
|
7594
7594
|
});
|
|
7595
7595
|
return H(() => {
|
|
7596
|
-
ie && $.current.newIndex !==
|
|
7597
|
-
}, [ie,
|
|
7598
|
-
if (
|
|
7596
|
+
ie && $.current.newIndex !== Ae && ($.current.newIndex = Ae), d !== $.current.containerId && ($.current.containerId = d), c !== $.current.items && ($.current.items = c);
|
|
7597
|
+
}, [ie, Ae, d, c]), H(() => {
|
|
7598
|
+
if (De === $.current.activeId)
|
|
7599
7599
|
return;
|
|
7600
|
-
if (
|
|
7601
|
-
$.current.activeId =
|
|
7600
|
+
if (De != null && $.current.activeId == null) {
|
|
7601
|
+
$.current.activeId = De;
|
|
7602
7602
|
return;
|
|
7603
7603
|
}
|
|
7604
7604
|
const Ge = setTimeout(() => {
|
|
7605
|
-
$.current.activeId =
|
|
7605
|
+
$.current.activeId = De;
|
|
7606
7606
|
}, 50);
|
|
7607
7607
|
return () => clearTimeout(Ge);
|
|
7608
|
-
}, [
|
|
7608
|
+
}, [De]), {
|
|
7609
7609
|
active: m,
|
|
7610
7610
|
activeIndex: h,
|
|
7611
|
-
attributes:
|
|
7611
|
+
attributes: M,
|
|
7612
7612
|
data: y,
|
|
7613
7613
|
rect: D,
|
|
7614
7614
|
index: R,
|
|
7615
|
-
newIndex:
|
|
7615
|
+
newIndex: Ae,
|
|
7616
7616
|
items: c,
|
|
7617
7617
|
isOver: k,
|
|
7618
7618
|
isSorting: ie,
|
|
@@ -7624,25 +7624,25 @@ function Tl(n) {
|
|
|
7624
7624
|
setNodeRef: Dt,
|
|
7625
7625
|
setActivatorNodeRef: G,
|
|
7626
7626
|
setDroppableNodeRef: A,
|
|
7627
|
-
setDraggableNodeRef:
|
|
7627
|
+
setDraggableNodeRef: q,
|
|
7628
7628
|
transform: We ?? Rt,
|
|
7629
|
-
transition:
|
|
7629
|
+
transition: Re()
|
|
7630
7630
|
};
|
|
7631
|
-
function
|
|
7631
|
+
function Re() {
|
|
7632
7632
|
if (
|
|
7633
7633
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
7634
7634
|
We || // Or to prevent items jumping to back to their "new" position when items change
|
|
7635
7635
|
nt && $.current.newIndex === R
|
|
7636
7636
|
)
|
|
7637
|
-
return
|
|
7638
|
-
if (!(
|
|
7639
|
-
return
|
|
7637
|
+
return zl;
|
|
7638
|
+
if (!(Fe && !ii(_) || !u) && (ie || ve))
|
|
7639
|
+
return Be.Transition.toString({
|
|
7640
7640
|
...u,
|
|
7641
|
-
property:
|
|
7641
|
+
property: Rr
|
|
7642
7642
|
});
|
|
7643
7643
|
}
|
|
7644
7644
|
}
|
|
7645
|
-
function
|
|
7645
|
+
function Il(n, e) {
|
|
7646
7646
|
var t, i;
|
|
7647
7647
|
return typeof n == "boolean" ? {
|
|
7648
7648
|
draggable: n,
|
|
@@ -7659,7 +7659,7 @@ function Xt(n) {
|
|
|
7659
7659
|
const e = n.data.current;
|
|
7660
7660
|
return !!(e && "sortable" in e && typeof e.sortable == "object" && "containerId" in e.sortable && "items" in e.sortable && "index" in e.sortable);
|
|
7661
7661
|
}
|
|
7662
|
-
const
|
|
7662
|
+
const Hl = [F.Down, F.Right, F.Up, F.Left], Bl = (n, e) => {
|
|
7663
7663
|
let {
|
|
7664
7664
|
context: {
|
|
7665
7665
|
active: t,
|
|
@@ -7670,7 +7670,7 @@ const zl = [F.Down, F.Right, F.Up, F.Left], Pl = (n, e) => {
|
|
|
7670
7670
|
scrollableAncestors: a
|
|
7671
7671
|
}
|
|
7672
7672
|
} = e;
|
|
7673
|
-
if (
|
|
7673
|
+
if (Hl.includes(n.code)) {
|
|
7674
7674
|
if (n.preventDefault(), !t || !i)
|
|
7675
7675
|
return;
|
|
7676
7676
|
const l = [];
|
|
@@ -7694,16 +7694,16 @@ const zl = [F.Down, F.Right, F.Up, F.Left], Pl = (n, e) => {
|
|
|
7694
7694
|
break;
|
|
7695
7695
|
}
|
|
7696
7696
|
});
|
|
7697
|
-
const u =
|
|
7697
|
+
const u = ha({
|
|
7698
7698
|
collisionRect: i,
|
|
7699
7699
|
droppableRects: r,
|
|
7700
7700
|
droppableContainers: l
|
|
7701
7701
|
});
|
|
7702
|
-
let c =
|
|
7702
|
+
let c = or(u, "id");
|
|
7703
7703
|
if (c === (o == null ? void 0 : o.id) && u.length > 1 && (c = u[1].id), c != null) {
|
|
7704
7704
|
const d = s.get(t.id), h = s.get(c), f = h ? r.get(h.id) : null, x = h == null ? void 0 : h.node.current;
|
|
7705
7705
|
if (x && f && d && h) {
|
|
7706
|
-
const w = ni(x).some((b, D) => a[D] !== b), S =
|
|
7706
|
+
const w = ni(x).some((b, D) => a[D] !== b), S = Sr(d, h), N = Fl(d, h), C = w || !S ? {
|
|
7707
7707
|
x: 0,
|
|
7708
7708
|
y: 0
|
|
7709
7709
|
} : {
|
|
@@ -7718,17 +7718,17 @@ const zl = [F.Down, F.Right, F.Up, F.Left], Pl = (n, e) => {
|
|
|
7718
7718
|
}
|
|
7719
7719
|
}
|
|
7720
7720
|
};
|
|
7721
|
-
function
|
|
7721
|
+
function Sr(n, e) {
|
|
7722
7722
|
return !Xt(n) || !Xt(e) ? !1 : n.data.current.sortable.containerId === e.data.current.sortable.containerId;
|
|
7723
7723
|
}
|
|
7724
|
-
function
|
|
7725
|
-
return !Xt(n) || !Xt(e) || !
|
|
7724
|
+
function Fl(n, e) {
|
|
7725
|
+
return !Xt(n) || !Xt(e) || !Sr(n, e) ? !1 : n.data.current.sortable.index < e.data.current.sortable.index;
|
|
7726
7726
|
}
|
|
7727
|
-
const
|
|
7728
|
-
const { attributes: t, listeners: i, setNodeRef: r, transform: s, transition: o } =
|
|
7727
|
+
const bn = ({ id: n, children: e }) => {
|
|
7728
|
+
const { attributes: t, listeners: i, setNodeRef: r, transform: s, transition: o } = Ll({
|
|
7729
7729
|
id: n
|
|
7730
7730
|
}), a = {
|
|
7731
|
-
transform:
|
|
7731
|
+
transform: Be.Translate.toString(s),
|
|
7732
7732
|
transition: o,
|
|
7733
7733
|
flex: "1 1",
|
|
7734
7734
|
display: "flex",
|
|
@@ -7745,14 +7745,14 @@ const yn = ({ id: n, children: e }) => {
|
|
|
7745
7745
|
}, main: i = !1 }) => {
|
|
7746
7746
|
var d;
|
|
7747
7747
|
const [r, s] = W([]);
|
|
7748
|
-
|
|
7748
|
+
En(() => {
|
|
7749
7749
|
s(n.map((h, f) => ({
|
|
7750
7750
|
id: h.id ?? f.toString(),
|
|
7751
7751
|
render: h.render
|
|
7752
7752
|
})));
|
|
7753
7753
|
}, [n]);
|
|
7754
|
-
const [o, a] = W(null), l =
|
|
7755
|
-
coordinateGetter:
|
|
7754
|
+
const [o, a] = W(null), l = aa(on(Hi), on(Li, {
|
|
7755
|
+
coordinateGetter: Bl
|
|
7756
7756
|
})), u = (h) => {
|
|
7757
7757
|
a(h.active.id);
|
|
7758
7758
|
}, c = (h) => {
|
|
@@ -7764,18 +7764,18 @@ const yn = ({ id: n, children: e }) => {
|
|
|
7764
7764
|
};
|
|
7765
7765
|
return g("div", {
|
|
7766
7766
|
className: j("flex flex-wrap items-stretch gap-4", i && "flex-1"),
|
|
7767
|
-
children:
|
|
7767
|
+
children: P(ol, {
|
|
7768
7768
|
sensors: l,
|
|
7769
7769
|
onDragStart: u,
|
|
7770
7770
|
onDragEnd: c,
|
|
7771
|
-
children: [g(
|
|
7771
|
+
children: [g(Ol, {
|
|
7772
7772
|
items: r,
|
|
7773
|
-
children: r.map((h) => g(
|
|
7773
|
+
children: r.map((h) => g(bn, {
|
|
7774
7774
|
id: h.id,
|
|
7775
7775
|
children: h.render
|
|
7776
7776
|
}, h.id))
|
|
7777
|
-
}), g(
|
|
7778
|
-
children: o ? g(
|
|
7777
|
+
}), g(Dl, {
|
|
7778
|
+
children: o ? g(bn, {
|
|
7779
7779
|
id: o,
|
|
7780
7780
|
children: (d = r.find((h) => h.id === o)) == null ? void 0 : d.render
|
|
7781
7781
|
}) : null
|
|
@@ -7785,13 +7785,13 @@ const yn = ({ id: n, children: e }) => {
|
|
|
7785
7785
|
};
|
|
7786
7786
|
Wi.displayName = "GroupMasonry";
|
|
7787
7787
|
Wi.__isPageLayoutGroup = !0;
|
|
7788
|
-
const
|
|
7789
|
-
return process.env.NODE_ENV === "development" &&
|
|
7788
|
+
const Wl = le(function({ children: e, aside: t, header: i, variant: r = "main-aside" }, s) {
|
|
7789
|
+
return process.env.NODE_ENV === "development" && ir("Page", e, ["block", "group"]), g("div", {
|
|
7790
7790
|
ref: s,
|
|
7791
7791
|
className: "h-full",
|
|
7792
|
-
children:
|
|
7792
|
+
children: P("div", {
|
|
7793
7793
|
className: j("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"),
|
|
7794
|
-
children: [
|
|
7794
|
+
children: [P("main", {
|
|
7795
7795
|
className: j("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"),
|
|
7796
7796
|
children: [i && g("header", {
|
|
7797
7797
|
className: j("sticky top-0 z-30 bg-f1-background"),
|
|
@@ -7806,23 +7806,23 @@ const Ll = le(function({ children: e, aside: t, header: i, variant: r = "main-as
|
|
|
7806
7806
|
})]
|
|
7807
7807
|
})
|
|
7808
7808
|
});
|
|
7809
|
-
}),
|
|
7810
|
-
Page:
|
|
7811
|
-
Block:
|
|
7812
|
-
BlockContent:
|
|
7813
|
-
Group:
|
|
7814
|
-
GroupGrid:
|
|
7815
|
-
GroupMasonry:
|
|
7816
|
-
},
|
|
7809
|
+
}), Tc = {
|
|
7810
|
+
Page: we("Page", Wl),
|
|
7811
|
+
Block: we("Block", Qt),
|
|
7812
|
+
BlockContent: we("BlockContent", jo),
|
|
7813
|
+
Group: we("Group", ki),
|
|
7814
|
+
GroupGrid: we("GroupGrid", Zt),
|
|
7815
|
+
GroupMasonry: we("GroupMasonry", Wi)
|
|
7816
|
+
}, kc = me({
|
|
7817
7817
|
name: "StandardLayout",
|
|
7818
7818
|
type: "layout"
|
|
7819
|
-
},
|
|
7819
|
+
}, Kn), zc = me({
|
|
7820
7820
|
name: "TwoColumnLayout",
|
|
7821
7821
|
type: "layout"
|
|
7822
|
-
},
|
|
7822
|
+
}, po), Pc = me({
|
|
7823
7823
|
name: "HomeLayout",
|
|
7824
7824
|
type: "layout"
|
|
7825
|
-
},
|
|
7825
|
+
}, go);
|
|
7826
7826
|
function Je(n) {
|
|
7827
7827
|
"@babel/helpers - typeof";
|
|
7828
7828
|
return Je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -7831,41 +7831,41 @@ function Je(n) {
|
|
|
7831
7831
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7832
7832
|
}, Je(n);
|
|
7833
7833
|
}
|
|
7834
|
-
function
|
|
7834
|
+
function Gl(n, e) {
|
|
7835
7835
|
if (!(n instanceof e))
|
|
7836
7836
|
throw new TypeError("Cannot call a class as a function");
|
|
7837
7837
|
}
|
|
7838
|
-
function
|
|
7838
|
+
function $l(n, e) {
|
|
7839
7839
|
for (var t = 0; t < e.length; t++) {
|
|
7840
7840
|
var i = e[t];
|
|
7841
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n,
|
|
7841
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Ar(i.key), i);
|
|
7842
7842
|
}
|
|
7843
7843
|
}
|
|
7844
|
-
function
|
|
7845
|
-
return e &&
|
|
7844
|
+
function jl(n, e, t) {
|
|
7845
|
+
return e && $l(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
7846
7846
|
}
|
|
7847
|
-
function
|
|
7848
|
-
return e = Yt(e),
|
|
7847
|
+
function Ul(n, e, t) {
|
|
7848
|
+
return e = Yt(e), Kl(n, Nr() ? Reflect.construct(e, t || [], Yt(n).constructor) : e.apply(n, t));
|
|
7849
7849
|
}
|
|
7850
|
-
function
|
|
7850
|
+
function Kl(n, e) {
|
|
7851
7851
|
if (e && (Je(e) === "object" || typeof e == "function"))
|
|
7852
7852
|
return e;
|
|
7853
7853
|
if (e !== void 0)
|
|
7854
7854
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7855
|
-
return
|
|
7855
|
+
return Xl(n);
|
|
7856
7856
|
}
|
|
7857
|
-
function
|
|
7857
|
+
function Xl(n) {
|
|
7858
7858
|
if (n === void 0)
|
|
7859
7859
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7860
7860
|
return n;
|
|
7861
7861
|
}
|
|
7862
|
-
function
|
|
7862
|
+
function Nr() {
|
|
7863
7863
|
try {
|
|
7864
7864
|
var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
7865
7865
|
}));
|
|
7866
7866
|
} catch {
|
|
7867
7867
|
}
|
|
7868
|
-
return (
|
|
7868
|
+
return (Nr = function() {
|
|
7869
7869
|
return !!n;
|
|
7870
7870
|
})();
|
|
7871
7871
|
}
|
|
@@ -7874,7 +7874,7 @@ function Yt(n) {
|
|
|
7874
7874
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
7875
7875
|
}, Yt(n);
|
|
7876
7876
|
}
|
|
7877
|
-
function
|
|
7877
|
+
function Yl(n, e) {
|
|
7878
7878
|
if (typeof e != "function" && e !== null)
|
|
7879
7879
|
throw new TypeError("Super expression must either be null or a function");
|
|
7880
7880
|
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), e && Ci(n, e);
|
|
@@ -7884,14 +7884,14 @@ function Ci(n, e) {
|
|
|
7884
7884
|
return i.__proto__ = r, i;
|
|
7885
7885
|
}, Ci(n, e);
|
|
7886
7886
|
}
|
|
7887
|
-
function
|
|
7888
|
-
return e =
|
|
7887
|
+
function Or(n, e, t) {
|
|
7888
|
+
return e = Ar(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
7889
7889
|
}
|
|
7890
|
-
function
|
|
7891
|
-
var e =
|
|
7890
|
+
function Ar(n) {
|
|
7891
|
+
var e = Vl(n, "string");
|
|
7892
7892
|
return Je(e) == "symbol" ? e : e + "";
|
|
7893
7893
|
}
|
|
7894
|
-
function
|
|
7894
|
+
function Vl(n, e) {
|
|
7895
7895
|
if (Je(n) != "object" || !n) return n;
|
|
7896
7896
|
var t = n[Symbol.toPrimitive];
|
|
7897
7897
|
if (t !== void 0) {
|
|
@@ -7903,23 +7903,23 @@ function jl(n, e) {
|
|
|
7903
7903
|
}
|
|
7904
7904
|
var oi = /* @__PURE__ */ function(n) {
|
|
7905
7905
|
function e() {
|
|
7906
|
-
return
|
|
7906
|
+
return Gl(this, e), Ul(this, e, arguments);
|
|
7907
7907
|
}
|
|
7908
|
-
return
|
|
7908
|
+
return Yl(e, n), jl(e, [{
|
|
7909
7909
|
key: "render",
|
|
7910
7910
|
value: function() {
|
|
7911
7911
|
return null;
|
|
7912
7912
|
}
|
|
7913
7913
|
}]);
|
|
7914
7914
|
}(L.Component);
|
|
7915
|
-
|
|
7916
|
-
|
|
7915
|
+
Or(oi, "displayName", "ZAxis");
|
|
7916
|
+
Or(oi, "defaultProps", {
|
|
7917
7917
|
zAxisId: 0,
|
|
7918
7918
|
range: [64, 64],
|
|
7919
7919
|
scale: "auto",
|
|
7920
7920
|
type: "number"
|
|
7921
7921
|
});
|
|
7922
|
-
var
|
|
7922
|
+
var ql = ["option", "isActive"];
|
|
7923
7923
|
function ft() {
|
|
7924
7924
|
return ft = Object.assign ? Object.assign.bind() : function(n) {
|
|
7925
7925
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -7930,9 +7930,9 @@ function ft() {
|
|
|
7930
7930
|
return n;
|
|
7931
7931
|
}, ft.apply(this, arguments);
|
|
7932
7932
|
}
|
|
7933
|
-
function
|
|
7933
|
+
function Jl(n, e) {
|
|
7934
7934
|
if (n == null) return {};
|
|
7935
|
-
var t =
|
|
7935
|
+
var t = Zl(n, e), i, r;
|
|
7936
7936
|
if (Object.getOwnPropertySymbols) {
|
|
7937
7937
|
var s = Object.getOwnPropertySymbols(n);
|
|
7938
7938
|
for (r = 0; r < s.length; r++)
|
|
@@ -7940,7 +7940,7 @@ function Kl(n, e) {
|
|
|
7940
7940
|
}
|
|
7941
7941
|
return t;
|
|
7942
7942
|
}
|
|
7943
|
-
function
|
|
7943
|
+
function Zl(n, e) {
|
|
7944
7944
|
if (n == null) return {};
|
|
7945
7945
|
var t = {};
|
|
7946
7946
|
for (var i in n)
|
|
@@ -7950,15 +7950,15 @@ function Xl(n, e) {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
return t;
|
|
7952
7952
|
}
|
|
7953
|
-
function
|
|
7954
|
-
var e = n.option, t = n.isActive, i =
|
|
7955
|
-
return typeof e == "string" ? /* @__PURE__ */ L.createElement(
|
|
7956
|
-
option: /* @__PURE__ */ L.createElement(
|
|
7953
|
+
function Ql(n) {
|
|
7954
|
+
var e = n.option, t = n.isActive, i = Jl(n, ql);
|
|
7955
|
+
return typeof e == "string" ? /* @__PURE__ */ L.createElement(qi, ft({
|
|
7956
|
+
option: /* @__PURE__ */ L.createElement(Qr, ft({
|
|
7957
7957
|
type: e
|
|
7958
7958
|
}, i)),
|
|
7959
7959
|
isActive: t,
|
|
7960
7960
|
shapeType: "symbols"
|
|
7961
|
-
}, i)) : /* @__PURE__ */ L.createElement(
|
|
7961
|
+
}, i)) : /* @__PURE__ */ L.createElement(qi, ft({
|
|
7962
7962
|
option: e,
|
|
7963
7963
|
isActive: t,
|
|
7964
7964
|
shapeType: "symbols"
|
|
@@ -7982,7 +7982,7 @@ function gt() {
|
|
|
7982
7982
|
return n;
|
|
7983
7983
|
}, gt.apply(this, arguments);
|
|
7984
7984
|
}
|
|
7985
|
-
function
|
|
7985
|
+
function xn(n, e) {
|
|
7986
7986
|
var t = Object.keys(n);
|
|
7987
7987
|
if (Object.getOwnPropertySymbols) {
|
|
7988
7988
|
var i = Object.getOwnPropertySymbols(n);
|
|
@@ -7995,58 +7995,58 @@ function bn(n, e) {
|
|
|
7995
7995
|
function ue(n) {
|
|
7996
7996
|
for (var e = 1; e < arguments.length; e++) {
|
|
7997
7997
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
7998
|
-
e % 2 ?
|
|
7999
|
-
|
|
8000
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) :
|
|
7998
|
+
e % 2 ? xn(Object(t), !0).forEach(function(i) {
|
|
7999
|
+
He(n, i, t[i]);
|
|
8000
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : xn(Object(t)).forEach(function(i) {
|
|
8001
8001
|
Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(t, i));
|
|
8002
8002
|
});
|
|
8003
8003
|
}
|
|
8004
8004
|
return n;
|
|
8005
8005
|
}
|
|
8006
|
-
function
|
|
8006
|
+
function ec(n, e) {
|
|
8007
8007
|
if (!(n instanceof e))
|
|
8008
8008
|
throw new TypeError("Cannot call a class as a function");
|
|
8009
8009
|
}
|
|
8010
|
-
function
|
|
8010
|
+
function wn(n, e) {
|
|
8011
8011
|
for (var t = 0; t < e.length; t++) {
|
|
8012
8012
|
var i = e[t];
|
|
8013
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n,
|
|
8013
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, kr(i.key), i);
|
|
8014
8014
|
}
|
|
8015
8015
|
}
|
|
8016
|
-
function
|
|
8017
|
-
return e &&
|
|
8016
|
+
function tc(n, e, t) {
|
|
8017
|
+
return e && wn(n.prototype, e), t && wn(n, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
8018
8018
|
}
|
|
8019
|
-
function
|
|
8020
|
-
return e =
|
|
8019
|
+
function ic(n, e, t) {
|
|
8020
|
+
return e = Vt(e), nc(n, Tr() ? Reflect.construct(e, t || [], Vt(n).constructor) : e.apply(n, t));
|
|
8021
8021
|
}
|
|
8022
|
-
function
|
|
8022
|
+
function nc(n, e) {
|
|
8023
8023
|
if (e && (Ze(e) === "object" || typeof e == "function"))
|
|
8024
8024
|
return e;
|
|
8025
8025
|
if (e !== void 0)
|
|
8026
8026
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8027
|
-
return
|
|
8027
|
+
return rc(n);
|
|
8028
8028
|
}
|
|
8029
|
-
function
|
|
8029
|
+
function rc(n) {
|
|
8030
8030
|
if (n === void 0)
|
|
8031
8031
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8032
8032
|
return n;
|
|
8033
8033
|
}
|
|
8034
|
-
function
|
|
8034
|
+
function Tr() {
|
|
8035
8035
|
try {
|
|
8036
8036
|
var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
8037
8037
|
}));
|
|
8038
8038
|
} catch {
|
|
8039
8039
|
}
|
|
8040
|
-
return (
|
|
8040
|
+
return (Tr = function() {
|
|
8041
8041
|
return !!n;
|
|
8042
8042
|
})();
|
|
8043
8043
|
}
|
|
8044
|
-
function
|
|
8045
|
-
return
|
|
8044
|
+
function Vt(n) {
|
|
8045
|
+
return Vt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
8046
8046
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
8047
|
-
},
|
|
8047
|
+
}, Vt(n);
|
|
8048
8048
|
}
|
|
8049
|
-
function
|
|
8049
|
+
function sc(n, e) {
|
|
8050
8050
|
if (typeof e != "function" && e !== null)
|
|
8051
8051
|
throw new TypeError("Super expression must either be null or a function");
|
|
8052
8052
|
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), e && _i(n, e);
|
|
@@ -8056,14 +8056,14 @@ function _i(n, e) {
|
|
|
8056
8056
|
return i.__proto__ = r, i;
|
|
8057
8057
|
}, _i(n, e);
|
|
8058
8058
|
}
|
|
8059
|
-
function
|
|
8060
|
-
return e =
|
|
8059
|
+
function He(n, e, t) {
|
|
8060
|
+
return e = kr(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
8061
8061
|
}
|
|
8062
|
-
function
|
|
8063
|
-
var e =
|
|
8062
|
+
function kr(n) {
|
|
8063
|
+
var e = oc(n, "string");
|
|
8064
8064
|
return Ze(e) == "symbol" ? e : e + "";
|
|
8065
8065
|
}
|
|
8066
|
-
function
|
|
8066
|
+
function oc(n, e) {
|
|
8067
8067
|
if (Ze(n) != "object" || !n) return n;
|
|
8068
8068
|
var t = n[Symbol.toPrimitive];
|
|
8069
8069
|
if (t !== void 0) {
|
|
@@ -8076,22 +8076,22 @@ function tc(n, e) {
|
|
|
8076
8076
|
var Et = /* @__PURE__ */ function(n) {
|
|
8077
8077
|
function e() {
|
|
8078
8078
|
var t;
|
|
8079
|
-
|
|
8079
|
+
ec(this, e);
|
|
8080
8080
|
for (var i = arguments.length, r = new Array(i), s = 0; s < i; s++)
|
|
8081
8081
|
r[s] = arguments[s];
|
|
8082
|
-
return t =
|
|
8082
|
+
return t = ic(this, e, [].concat(r)), He(t, "state", {
|
|
8083
8083
|
isAnimationFinished: !1
|
|
8084
|
-
}),
|
|
8084
|
+
}), He(t, "handleAnimationEnd", function() {
|
|
8085
8085
|
t.setState({
|
|
8086
8086
|
isAnimationFinished: !0
|
|
8087
8087
|
});
|
|
8088
|
-
}),
|
|
8088
|
+
}), He(t, "handleAnimationStart", function() {
|
|
8089
8089
|
t.setState({
|
|
8090
8090
|
isAnimationFinished: !1
|
|
8091
8091
|
});
|
|
8092
|
-
}),
|
|
8092
|
+
}), He(t, "id", as("recharts-scatter-")), t;
|
|
8093
8093
|
}
|
|
8094
|
-
return
|
|
8094
|
+
return sc(e, n), tc(e, [{
|
|
8095
8095
|
key: "renderSymbolsStatically",
|
|
8096
8096
|
value: function(i) {
|
|
8097
8097
|
var r = this, s = this.props, o = s.shape, a = s.activeShape, l = s.activeIndex, u = di(this.props, !1);
|
|
@@ -8100,9 +8100,9 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8100
8100
|
return /* @__PURE__ */ L.createElement(lt, gt({
|
|
8101
8101
|
className: "recharts-scatter-symbol",
|
|
8102
8102
|
key: "symbol-".concat(c == null ? void 0 : c.cx, "-").concat(c == null ? void 0 : c.cy, "-").concat(c == null ? void 0 : c.size, "-").concat(d)
|
|
8103
|
-
},
|
|
8103
|
+
}, es(r.props, c, d), {
|
|
8104
8104
|
role: "img"
|
|
8105
|
-
}), /* @__PURE__ */ L.createElement(
|
|
8105
|
+
}), /* @__PURE__ */ L.createElement(Ql, gt({
|
|
8106
8106
|
option: f,
|
|
8107
8107
|
isActive: h,
|
|
8108
8108
|
key: "symbol-".concat(d)
|
|
@@ -8113,7 +8113,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8113
8113
|
key: "renderSymbolsWithAnimation",
|
|
8114
8114
|
value: function() {
|
|
8115
8115
|
var i = this, r = this.props, s = r.points, o = r.isAnimationActive, a = r.animationBegin, l = r.animationDuration, u = r.animationEasing, c = r.animationId, d = this.state.prevPoints;
|
|
8116
|
-
return /* @__PURE__ */ L.createElement(
|
|
8116
|
+
return /* @__PURE__ */ L.createElement(ts, {
|
|
8117
8117
|
begin: a,
|
|
8118
8118
|
duration: l,
|
|
8119
8119
|
isActive: o,
|
|
@@ -8150,7 +8150,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8150
8150
|
key: "renderSymbols",
|
|
8151
8151
|
value: function() {
|
|
8152
8152
|
var i = this.props, r = i.points, s = i.isAnimationActive, o = this.state.prevPoints;
|
|
8153
|
-
return s && r && r.length && (!o || !
|
|
8153
|
+
return s && r && r.length && (!o || !Dn(o, r)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(r);
|
|
8154
8154
|
}
|
|
8155
8155
|
}, {
|
|
8156
8156
|
key: "renderErrorBar",
|
|
@@ -8158,7 +8158,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8158
8158
|
var i = this.props.isAnimationActive;
|
|
8159
8159
|
if (i && !this.state.isAnimationFinished)
|
|
8160
8160
|
return null;
|
|
8161
|
-
var r = this.props, s = r.points, o = r.xAxis, a = r.yAxis, l = r.children, u =
|
|
8161
|
+
var r = this.props, s = r.points, o = r.xAxis, a = r.yAxis, l = r.children, u = Nn(l, is);
|
|
8162
8162
|
return u ? u.map(function(c, d) {
|
|
8163
8163
|
var h = c.props, f = h.direction, x = h.dataKey;
|
|
8164
8164
|
return /* @__PURE__ */ L.cloneElement(c, {
|
|
@@ -8190,7 +8190,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8190
8190
|
};
|
|
8191
8191
|
});
|
|
8192
8192
|
else if (o === "fitting") {
|
|
8193
|
-
var h =
|
|
8193
|
+
var h = ns(r), f = h.xmin, x = h.xmax, v = h.a, w = h.b, S = function(R) {
|
|
8194
8194
|
return v * R + w;
|
|
8195
8195
|
};
|
|
8196
8196
|
c = [{
|
|
@@ -8207,7 +8207,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8207
8207
|
}, u), {}, {
|
|
8208
8208
|
points: c
|
|
8209
8209
|
});
|
|
8210
|
-
return /* @__PURE__ */ L.isValidElement(s) ? d = /* @__PURE__ */ L.cloneElement(s, N) :
|
|
8210
|
+
return /* @__PURE__ */ L.isValidElement(s) ? d = /* @__PURE__ */ L.cloneElement(s, N) : rs(s) ? d = s(N) : d = /* @__PURE__ */ L.createElement(ss, gt({}, N, {
|
|
8211
8211
|
type: a
|
|
8212
8212
|
})), /* @__PURE__ */ L.createElement(lt, {
|
|
8213
8213
|
className: "recharts-scatter-line",
|
|
@@ -8220,7 +8220,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8220
8220
|
var i = this.props, r = i.hide, s = i.points, o = i.line, a = i.className, l = i.xAxis, u = i.yAxis, c = i.left, d = i.top, h = i.width, f = i.height, x = i.id, v = i.isAnimationActive;
|
|
8221
8221
|
if (r || !s || !s.length)
|
|
8222
8222
|
return null;
|
|
8223
|
-
var w = this.state.isAnimationFinished, S =
|
|
8223
|
+
var w = this.state.isAnimationFinished, S = os("recharts-scatter", a), N = l && l.allowDataOverflow, C = u && u.allowDataOverflow, R = N || C, y = Xe(x) ? this.id : x;
|
|
8224
8224
|
return /* @__PURE__ */ L.createElement(lt, {
|
|
8225
8225
|
className: S,
|
|
8226
8226
|
clipPath: R ? "url(#clipPath-".concat(y, ")") : null
|
|
@@ -8233,7 +8233,7 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8233
8233
|
height: C ? f : f * 2
|
|
8234
8234
|
}))) : null, o && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ L.createElement(lt, {
|
|
8235
8235
|
key: "recharts-scatter-symbols"
|
|
8236
|
-
}, this.renderSymbols()), (!v || w) &&
|
|
8236
|
+
}, this.renderSymbols()), (!v || w) && On.renderCallByParent(this.props, s));
|
|
8237
8237
|
}
|
|
8238
8238
|
}], [{
|
|
8239
8239
|
key: "getDerivedStateFromProps",
|
|
@@ -8247,9 +8247,9 @@ var Et = /* @__PURE__ */ function(n) {
|
|
|
8247
8247
|
} : null;
|
|
8248
8248
|
}
|
|
8249
8249
|
}]);
|
|
8250
|
-
}(
|
|
8251
|
-
|
|
8252
|
-
|
|
8250
|
+
}(ho);
|
|
8251
|
+
He(Et, "displayName", "Scatter");
|
|
8252
|
+
He(Et, "defaultProps", {
|
|
8253
8253
|
xAxisId: 0,
|
|
8254
8254
|
yAxisId: 0,
|
|
8255
8255
|
zAxisId: 0,
|
|
@@ -8259,13 +8259,13 @@ Ie(Et, "defaultProps", {
|
|
|
8259
8259
|
data: [],
|
|
8260
8260
|
shape: "circle",
|
|
8261
8261
|
hide: !1,
|
|
8262
|
-
isAnimationActive: !
|
|
8262
|
+
isAnimationActive: !ls.isSsr,
|
|
8263
8263
|
animationBegin: 0,
|
|
8264
8264
|
animationDuration: 400,
|
|
8265
8265
|
animationEasing: "linear"
|
|
8266
8266
|
});
|
|
8267
|
-
|
|
8268
|
-
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, l = n.offset, u = r.props.tooltipType, c =
|
|
8267
|
+
He(Et, "getComposedData", function(n) {
|
|
8268
|
+
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, l = n.offset, u = r.props.tooltipType, c = Nn(r.props.children, cs), d = Xe(e.dataKey) ? r.props.dataKey : e.dataKey, h = Xe(t.dataKey) ? r.props.dataKey : t.dataKey, f = i && i.dataKey, x = i ? i.range : oi.defaultProps.range, v = x && x[0], w = e.scale.bandwidth ? e.scale.bandwidth() : 0, S = t.scale.bandwidth ? t.scale.bandwidth() : 0, N = s.map(function(C, R) {
|
|
8269
8269
|
var y = zt(C, d), b = zt(C, h), D = !Xe(f) && zt(C, f) || "-", E = [{
|
|
8270
8270
|
name: Xe(e.dataKey) ? r.props.name : e.name || e.dataKey,
|
|
8271
8271
|
unit: e.unit || "",
|
|
@@ -8332,12 +8332,12 @@ Ie(Et, "getComposedData", function(n) {
|
|
|
8332
8332
|
points: N
|
|
8333
8333
|
}, l);
|
|
8334
8334
|
});
|
|
8335
|
-
var
|
|
8335
|
+
var ac = ds({
|
|
8336
8336
|
chartName: "ComposedChart",
|
|
8337
|
-
GraphicalChild: [
|
|
8337
|
+
GraphicalChild: [An, us, Tn, Et],
|
|
8338
8338
|
axisComponents: [{
|
|
8339
8339
|
axisType: "xAxis",
|
|
8340
|
-
AxisComp:
|
|
8340
|
+
AxisComp: kn
|
|
8341
8341
|
}, {
|
|
8342
8342
|
axisType: "yAxis",
|
|
8343
8343
|
AxisComp: vi
|
|
@@ -8345,9 +8345,9 @@ var ic = ls({
|
|
|
8345
8345
|
axisType: "zAxis",
|
|
8346
8346
|
AxisComp: oi
|
|
8347
8347
|
}],
|
|
8348
|
-
formatAxisMap:
|
|
8348
|
+
formatAxisMap: hs
|
|
8349
8349
|
});
|
|
8350
|
-
const
|
|
8350
|
+
const lc = (n) => {
|
|
8351
8351
|
const e = (t) => {
|
|
8352
8352
|
const { cx: i, cy: r, fill: s, payload: o } = t, a = () => {
|
|
8353
8353
|
if (!o) return "-";
|
|
@@ -8371,16 +8371,16 @@ const nc = (n) => {
|
|
|
8371
8371
|
});
|
|
8372
8372
|
};
|
|
8373
8373
|
return e.displayName = `Scatter-${n}`, e;
|
|
8374
|
-
},
|
|
8374
|
+
}, cc = ({ dataConfig: n, data: e, xAxis: t, yAxis: i = {
|
|
8375
8375
|
hide: !0
|
|
8376
8376
|
}, label: r = !1, hideTooltip: s = !1, hideGrid: o = !1, aspect: a, legend: l, showValueUnderLabel: u = !1, bar: c, line: d, scatter: h, onClick: f }, x) => {
|
|
8377
8377
|
var D, E, k, A;
|
|
8378
|
-
const v =
|
|
8379
|
-
return g(
|
|
8378
|
+
const v = fs(e), w = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], S = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], N = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], C = [...w, ...S, ...N], R = Math.max(...v.flatMap((m) => C.map((_) => gs(i != null && i.tickFormatter ? i.tickFormatter(`${m[_]}`) : `${m[_]}`)))), y = [c, d, h].filter((m) => (m == null ? void 0 : m.axisPosition) === "left"), b = [c, d, h].filter((m) => (m == null ? void 0 : m.axisPosition) === "right");
|
|
8379
|
+
return g(ps, {
|
|
8380
8380
|
config: n,
|
|
8381
8381
|
ref: x,
|
|
8382
8382
|
aspect: a,
|
|
8383
|
-
children:
|
|
8383
|
+
children: P(ac, {
|
|
8384
8384
|
accessibilityLayer: !0,
|
|
8385
8385
|
data: v,
|
|
8386
8386
|
margin: {
|
|
@@ -8401,13 +8401,13 @@ const nc = (n) => {
|
|
|
8401
8401
|
_.values[O.name] = O.value;
|
|
8402
8402
|
f(_);
|
|
8403
8403
|
},
|
|
8404
|
-
children: [!s && g(
|
|
8405
|
-
...
|
|
8406
|
-
content: g(
|
|
8404
|
+
children: [!s && g(ms, {
|
|
8405
|
+
...vs(),
|
|
8406
|
+
content: g(ys, {
|
|
8407
8407
|
yAxisFormatter: i.tickFormatter
|
|
8408
8408
|
})
|
|
8409
|
-
}), !o && g(
|
|
8410
|
-
...
|
|
8409
|
+
}), !o && g(bs, {
|
|
8410
|
+
...xs()
|
|
8411
8411
|
}), y.length > 0 && g(vi, {
|
|
8412
8412
|
...Zi(i),
|
|
8413
8413
|
tick: !0,
|
|
@@ -8430,13 +8430,13 @@ const nc = (n) => {
|
|
|
8430
8430
|
angle: 90,
|
|
8431
8431
|
position: "insideRight"
|
|
8432
8432
|
} : void 0
|
|
8433
|
-
}), g(
|
|
8434
|
-
...
|
|
8433
|
+
}), g(kn, {
|
|
8434
|
+
...ws(t),
|
|
8435
8435
|
hide: t == null ? void 0 : t.hide,
|
|
8436
8436
|
tick: u ? (m) => {
|
|
8437
8437
|
var te, G;
|
|
8438
|
-
const { x: _, y: O, payload:
|
|
8439
|
-
return
|
|
8438
|
+
const { x: _, y: O, payload: M } = m, q = ((te = e.find((ne) => ne.label === M.value)) == null ? void 0 : te.values) || "", X = Object.keys(q).length === 1 ? (G = Object.values(q)) == null ? void 0 : G[0] : void 0, U = X !== void 0 && i.tickFormatter ? i.tickFormatter(`${X}`) : X.toLocaleString();
|
|
8439
|
+
return P("g", {
|
|
8440
8440
|
transform: `translate(${_},${O})`,
|
|
8441
8441
|
children: [g("text", {
|
|
8442
8442
|
x: 0,
|
|
@@ -8444,7 +8444,7 @@ const nc = (n) => {
|
|
|
8444
8444
|
dy: 12,
|
|
8445
8445
|
textAnchor: "middle",
|
|
8446
8446
|
className: "text-sm font-medium !text-f1-foreground-secondary",
|
|
8447
|
-
children:
|
|
8447
|
+
children: M.value
|
|
8448
8448
|
}), !!X && g("text", {
|
|
8449
8449
|
x: 0,
|
|
8450
8450
|
y: 0,
|
|
@@ -8455,19 +8455,19 @@ const nc = (n) => {
|
|
|
8455
8455
|
})]
|
|
8456
8456
|
});
|
|
8457
8457
|
} : void 0
|
|
8458
|
-
}), w.map((m, _) => g(
|
|
8458
|
+
}), w.map((m, _) => g(Tn, {
|
|
8459
8459
|
isAnimationActive: !1,
|
|
8460
8460
|
dataKey: String(m),
|
|
8461
8461
|
fill: n[m].color ? ct(n[m].color) : ui(_),
|
|
8462
8462
|
radius: 4,
|
|
8463
8463
|
maxBarSize: 32,
|
|
8464
|
-
children: r && g(
|
|
8464
|
+
children: r && g(On, {
|
|
8465
8465
|
position: "top",
|
|
8466
8466
|
offset: 10,
|
|
8467
8467
|
className: "fill-f1-foreground",
|
|
8468
8468
|
fontSize: 12
|
|
8469
8469
|
}, `label-${String(m)}`)
|
|
8470
|
-
}, `bar-${String(m)}`)), S.map((m, _) => g(
|
|
8470
|
+
}, `bar-${String(m)}`)), S.map((m, _) => g(An, {
|
|
8471
8471
|
type: (d == null ? void 0 : d.lineType) ?? "natural",
|
|
8472
8472
|
dataKey: String(m),
|
|
8473
8473
|
stroke: n[m].color ? ct(n[m].color) : ui(w.length + _),
|
|
@@ -8481,9 +8481,9 @@ const nc = (n) => {
|
|
|
8481
8481
|
r: 4,
|
|
8482
8482
|
isAnimationActive: !1,
|
|
8483
8483
|
yAxisId: (h == null ? void 0 : h.axisPosition) === "right" ? "right" : void 0,
|
|
8484
|
-
shape:
|
|
8485
|
-
}, `scatter-${String(m)}`)), l && g(
|
|
8486
|
-
content: g(
|
|
8484
|
+
shape: lc(String(m))
|
|
8485
|
+
}, `scatter-${String(m)}`)), l && g(Cs, {
|
|
8486
|
+
content: g(_s, {
|
|
8487
8487
|
nameKey: "label"
|
|
8488
8488
|
}),
|
|
8489
8489
|
align: "center",
|
|
@@ -8493,14 +8493,14 @@ const nc = (n) => {
|
|
|
8493
8493
|
})]
|
|
8494
8494
|
})
|
|
8495
8495
|
});
|
|
8496
|
-
},
|
|
8496
|
+
}, dc = zn(cc), uc = ({ value: n, max: e = 100, label: t, color: i }, r) => {
|
|
8497
8497
|
const s = i ? ct(i) : ct("categorical-1"), o = n / e * 100;
|
|
8498
|
-
return
|
|
8498
|
+
return P("div", {
|
|
8499
8499
|
className: "flex items-center space-x-2",
|
|
8500
8500
|
"aria-live": "polite",
|
|
8501
8501
|
children: [g("div", {
|
|
8502
8502
|
className: "flex-grow",
|
|
8503
|
-
children: g(
|
|
8503
|
+
children: g(Es, {
|
|
8504
8504
|
color: s,
|
|
8505
8505
|
value: o,
|
|
8506
8506
|
className: "w-full",
|
|
@@ -8514,57 +8514,103 @@ const nc = (n) => {
|
|
|
8514
8514
|
children: t
|
|
8515
8515
|
})]
|
|
8516
8516
|
});
|
|
8517
|
-
},
|
|
8517
|
+
}, hc = zn(uc), Mc = me(
|
|
8518
8518
|
{
|
|
8519
8519
|
name: "AreaChart",
|
|
8520
8520
|
type: "info"
|
|
8521
8521
|
},
|
|
8522
|
-
|
|
8523
|
-
),
|
|
8522
|
+
Ds
|
|
8523
|
+
), Lc = me(
|
|
8524
8524
|
{
|
|
8525
8525
|
name: "BarChart",
|
|
8526
8526
|
type: "info"
|
|
8527
8527
|
},
|
|
8528
|
-
|
|
8529
|
-
),
|
|
8528
|
+
Rs
|
|
8529
|
+
), Ic = me(
|
|
8530
8530
|
{
|
|
8531
8531
|
name: "CategoryBarChart",
|
|
8532
8532
|
type: "info"
|
|
8533
8533
|
},
|
|
8534
|
-
|
|
8535
|
-
),
|
|
8534
|
+
Ss
|
|
8535
|
+
), Hc = me(
|
|
8536
8536
|
{
|
|
8537
8537
|
name: "LineChart",
|
|
8538
8538
|
type: "info"
|
|
8539
8539
|
},
|
|
8540
|
-
|
|
8541
|
-
),
|
|
8540
|
+
Ns
|
|
8541
|
+
), Bc = me(
|
|
8542
8542
|
{
|
|
8543
8543
|
name: "PieChart",
|
|
8544
8544
|
type: "info"
|
|
8545
8545
|
},
|
|
8546
|
-
|
|
8547
|
-
),
|
|
8546
|
+
Os
|
|
8547
|
+
), Fc = me(
|
|
8548
8548
|
{
|
|
8549
8549
|
name: "VerticalBarChart",
|
|
8550
8550
|
type: "info"
|
|
8551
8551
|
},
|
|
8552
|
-
|
|
8553
|
-
),
|
|
8552
|
+
As
|
|
8553
|
+
), Wc = me(
|
|
8554
8554
|
{
|
|
8555
8555
|
name: "ProgressBarChart",
|
|
8556
8556
|
type: "info"
|
|
8557
8557
|
},
|
|
8558
|
-
|
|
8559
|
-
),
|
|
8558
|
+
hc
|
|
8559
|
+
), Gc = me(
|
|
8560
8560
|
{
|
|
8561
8561
|
name: "ComboChart",
|
|
8562
8562
|
type: "info"
|
|
8563
8563
|
},
|
|
8564
|
-
|
|
8565
|
-
),
|
|
8564
|
+
dc
|
|
8565
|
+
), fc = (n) => typeof n == "boolean" || !n ? {
|
|
8566
|
+
show: !!n,
|
|
8567
|
+
invertStatus: !1
|
|
8568
|
+
} : {
|
|
8569
|
+
show: n.show ?? !0,
|
|
8570
|
+
invertStatus: n.invertStatus ?? !1
|
|
8571
|
+
}, zr = ({ label: n, ...e }) => {
|
|
8572
|
+
const t = Ts(), i = t(e.value, {
|
|
8573
|
+
formatterOptions: {
|
|
8574
|
+
decimalPlaces: 2
|
|
8575
|
+
}
|
|
8576
|
+
}), r = fc(e.trend), s = t(e.comparison), o = ks(i.numericValue, i.formatterOptions), a = Qi(s.numericValue), l = Qi(i.numericValue), u = B(() => {
|
|
8577
|
+
if (!(!a || !r.show) && !(!a || !l))
|
|
8578
|
+
return (l - a) / a * 100;
|
|
8579
|
+
}, [l, a, r.show]);
|
|
8580
|
+
return P("div", {
|
|
8581
|
+
className: "flex flex-col gap-2",
|
|
8582
|
+
children: [n && g("div", {
|
|
8583
|
+
children: n
|
|
8584
|
+
}), P("div", {
|
|
8585
|
+
className: "flex flex-row flex-wrap items-center gap-2",
|
|
8586
|
+
children: [g("span", {
|
|
8587
|
+
className: "font-bold text-2xl",
|
|
8588
|
+
children: o
|
|
8589
|
+
}), a !== void 0 && g(zs, {
|
|
8590
|
+
percentage: u,
|
|
8591
|
+
amount: s,
|
|
8592
|
+
invertStatus: r.invertStatus,
|
|
8593
|
+
hint: e.comparisonHint
|
|
8594
|
+
})]
|
|
8595
|
+
})]
|
|
8596
|
+
});
|
|
8597
|
+
}, gc = () => P("div", {
|
|
8598
|
+
className: "relative flex h-full w-full cursor-progress flex-col gap-2",
|
|
8599
|
+
children: [g(xe, {
|
|
8600
|
+
className: "h-3 w-full max-w-16 rounded-md"
|
|
8601
|
+
}), P("div", {
|
|
8602
|
+
className: "flex flex-row flex-wrap items-end gap-2",
|
|
8603
|
+
children: [g(xe, {
|
|
8604
|
+
className: "h-8 w-full max-w-36 rounded-sm"
|
|
8605
|
+
}), g(xe, {
|
|
8606
|
+
className: "h-6 w-full max-w-18 rounded-sm"
|
|
8607
|
+
})]
|
|
8608
|
+
})]
|
|
8609
|
+
});
|
|
8610
|
+
zr.displayName = "F0BigNumber";
|
|
8611
|
+
const pc = Rn(zr, gc), $c = we("F0BigNumber", pc), jc = Ps.filter(
|
|
8566
8612
|
(n) => n !== "ai"
|
|
8567
|
-
),
|
|
8613
|
+
), Uc = Pn, Kc = ["default", "outline", "neutral"], Xc = Pn, Yc = ["sm", "md", "lg"], Vc = ["compact", "expanded"], qc = Ms, Jc = [
|
|
8568
8614
|
"viridian",
|
|
8569
8615
|
"malibu",
|
|
8570
8616
|
"yellow",
|
|
@@ -8580,26 +8626,26 @@ const nc = (n) => {
|
|
|
8580
8626
|
const [t, i] = W(!1), r = g(Mt, {
|
|
8581
8627
|
label: `+${n}`
|
|
8582
8628
|
});
|
|
8583
|
-
return e != null && e.length ?
|
|
8629
|
+
return e != null && e.length ? P(Mn, {
|
|
8584
8630
|
open: t,
|
|
8585
8631
|
onOpenChange: i,
|
|
8586
|
-
children: [g(
|
|
8632
|
+
children: [g(Ln, {
|
|
8587
8633
|
asChild: !0,
|
|
8588
8634
|
children: g("button", {
|
|
8589
|
-
className:
|
|
8635
|
+
className: Ls("inline-flex flex-shrink-0 items-center"),
|
|
8590
8636
|
children: r
|
|
8591
8637
|
})
|
|
8592
|
-
}), g(
|
|
8638
|
+
}), g(In, {
|
|
8593
8639
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
8594
8640
|
align: "end",
|
|
8595
|
-
children:
|
|
8641
|
+
children: P(Hn, {
|
|
8596
8642
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
8597
8643
|
children: [e.map((s, o) => g("div", {
|
|
8598
8644
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
8599
8645
|
children: g(Mt, {
|
|
8600
8646
|
...s
|
|
8601
8647
|
})
|
|
8602
|
-
}, o)), g(
|
|
8648
|
+
}, o)), g(Bn, {
|
|
8603
8649
|
orientation: "vertical",
|
|
8604
8650
|
className: "[&_div]:bg-f1-background"
|
|
8605
8651
|
})]
|
|
@@ -8608,9 +8654,9 @@ const nc = (n) => {
|
|
|
8608
8654
|
}) : r;
|
|
8609
8655
|
};
|
|
8610
8656
|
Ei.displayName = "ChipCounter";
|
|
8611
|
-
const
|
|
8657
|
+
const Pr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
8612
8658
|
if (i === "fill")
|
|
8613
|
-
return g(
|
|
8659
|
+
return g(Is, {
|
|
8614
8660
|
items: n,
|
|
8615
8661
|
renderListItem: (l) => g(Mt, {
|
|
8616
8662
|
...l
|
|
@@ -8625,7 +8671,7 @@ const Tr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8625
8671
|
className: "flex-1"
|
|
8626
8672
|
});
|
|
8627
8673
|
const r = n.slice(0, e), s = n.slice(e), o = t ?? n.length - e, a = o > 0;
|
|
8628
|
-
return
|
|
8674
|
+
return P("div", {
|
|
8629
8675
|
className: "flex items-center gap-2",
|
|
8630
8676
|
children: [r.map((l, u) => g(Mt, {
|
|
8631
8677
|
...l
|
|
@@ -8635,31 +8681,31 @@ const Tr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8635
8681
|
})]
|
|
8636
8682
|
});
|
|
8637
8683
|
};
|
|
8638
|
-
|
|
8639
|
-
const
|
|
8684
|
+
Pr.displayName = "F0ChipList";
|
|
8685
|
+
const Zc = we("F0ChipList", Pr), Qc = Hs, mc = le((n, e) => g(Ti, {
|
|
8640
8686
|
ref: e,
|
|
8641
8687
|
variant: "heading",
|
|
8642
8688
|
...n
|
|
8643
8689
|
}));
|
|
8644
|
-
|
|
8645
|
-
const
|
|
8690
|
+
mc.displayName = "F0Heading";
|
|
8691
|
+
const ed = we(
|
|
8646
8692
|
"F0GridStack",
|
|
8647
8693
|
Ai
|
|
8648
|
-
),
|
|
8694
|
+
), vc = ({ benefits: n }) => g("div", {
|
|
8649
8695
|
className: "flex flex-col gap-2",
|
|
8650
|
-
children: n.map((e, t) => g(
|
|
8696
|
+
children: n.map((e, t) => g(yc, {
|
|
8651
8697
|
text: e
|
|
8652
8698
|
}, t))
|
|
8653
|
-
}),
|
|
8699
|
+
}), yc = ({ text: n }) => P("div", {
|
|
8654
8700
|
className: "flex flex-row items-start gap-2",
|
|
8655
|
-
children: [g(
|
|
8656
|
-
icon:
|
|
8701
|
+
children: [g(Sn, {
|
|
8702
|
+
icon: Ws,
|
|
8657
8703
|
size: "md",
|
|
8658
8704
|
className: "text-f1-icon-positive"
|
|
8659
8705
|
}), g("span", {
|
|
8660
8706
|
children: n
|
|
8661
8707
|
})]
|
|
8662
|
-
}),
|
|
8708
|
+
}), Mr = le(({ title: n, image: e, benefits: t, actions: i, withShadow: r = !0, module: s, moduleName: o, tag: a, promoTag: l }, u) => P("div", {
|
|
8663
8709
|
ref: u,
|
|
8664
8710
|
className: j("bg-white flex flex-row rounded-xl border border-f1-border-secondary", r && "shadow-md"),
|
|
8665
8711
|
children: [g("div", {
|
|
@@ -8669,26 +8715,26 @@ const Uc = Re(
|
|
|
8669
8715
|
alt: "",
|
|
8670
8716
|
className: "h-full w-full rounded-lg object-cover"
|
|
8671
8717
|
})
|
|
8672
|
-
}),
|
|
8718
|
+
}), P("div", {
|
|
8673
8719
|
className: "flex flex-col justify-center gap-8 px-8 py-5",
|
|
8674
|
-
children: [
|
|
8720
|
+
children: [P("div", {
|
|
8675
8721
|
className: "flex flex-col gap-5",
|
|
8676
|
-
children: [
|
|
8722
|
+
children: [P("div", {
|
|
8677
8723
|
className: "flex flex-col gap-2",
|
|
8678
|
-
children: [
|
|
8724
|
+
children: [P("div", {
|
|
8679
8725
|
className: "flex flex-row items-center gap-2",
|
|
8680
|
-
children: [s && g(
|
|
8726
|
+
children: [s && g(Fn, {
|
|
8681
8727
|
module: s
|
|
8682
8728
|
}), o && g("p", {
|
|
8683
8729
|
className: "text-base font-medium text-f1-foreground",
|
|
8684
8730
|
children: o
|
|
8685
8731
|
})]
|
|
8686
|
-
}), (a || l) &&
|
|
8732
|
+
}), (a || l) && P("div", {
|
|
8687
8733
|
className: "flex justify-start gap-2",
|
|
8688
|
-
children: [a && g(
|
|
8734
|
+
children: [a && g(Bs, {
|
|
8689
8735
|
icon: a.icon,
|
|
8690
8736
|
text: a.label
|
|
8691
|
-
}), l && g(
|
|
8737
|
+
}), l && g(Fs, {
|
|
8692
8738
|
variant: l.variant || "positive",
|
|
8693
8739
|
text: l.label
|
|
8694
8740
|
})]
|
|
@@ -8696,7 +8742,7 @@ const Uc = Re(
|
|
|
8696
8742
|
className: "font-bold text-xl text-f1-foreground",
|
|
8697
8743
|
children: n
|
|
8698
8744
|
})]
|
|
8699
|
-
}), g(
|
|
8745
|
+
}), g(vc, {
|
|
8700
8746
|
benefits: t
|
|
8701
8747
|
})]
|
|
8702
8748
|
}), i && g("div", {
|
|
@@ -8705,38 +8751,38 @@ const Uc = Re(
|
|
|
8705
8751
|
})]
|
|
8706
8752
|
})]
|
|
8707
8753
|
}));
|
|
8708
|
-
|
|
8709
|
-
function
|
|
8754
|
+
Mr.displayName = "ProductBlankslate";
|
|
8755
|
+
function bc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalContainer: s }) {
|
|
8710
8756
|
const [o, a] = W(n);
|
|
8711
8757
|
return H(() => {
|
|
8712
8758
|
a(n);
|
|
8713
|
-
}, [n]), g(
|
|
8759
|
+
}, [n]), g(Gs, {
|
|
8714
8760
|
open: o,
|
|
8715
8761
|
onOpenChange: (u) => {
|
|
8716
8762
|
a(u), u || e();
|
|
8717
8763
|
},
|
|
8718
8764
|
modal: !0,
|
|
8719
|
-
children:
|
|
8765
|
+
children: P($s, {
|
|
8720
8766
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8721
8767
|
container: s,
|
|
8722
|
-
children: [
|
|
8768
|
+
children: [P("div", {
|
|
8723
8769
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8724
|
-
children: [
|
|
8770
|
+
children: [P(js, {
|
|
8725
8771
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8726
|
-
children: [r && g(
|
|
8772
|
+
children: [r && g(Fn, {
|
|
8727
8773
|
module: r,
|
|
8728
8774
|
size: "lg"
|
|
8729
8775
|
}), t]
|
|
8730
8776
|
}), g(Si, {
|
|
8731
8777
|
variant: "outline",
|
|
8732
|
-
icon:
|
|
8778
|
+
icon: Wn,
|
|
8733
8779
|
onClick: e,
|
|
8734
8780
|
label: "Close modal",
|
|
8735
8781
|
hideLabel: !0
|
|
8736
8782
|
})]
|
|
8737
|
-
}),
|
|
8783
|
+
}), P(Hn, {
|
|
8738
8784
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
8739
|
-
children: [i, g(
|
|
8785
|
+
children: [i, g(Bn, {
|
|
8740
8786
|
orientation: "vertical",
|
|
8741
8787
|
className: "[&_div]:bg-f1-background"
|
|
8742
8788
|
})]
|
|
@@ -8744,7 +8790,7 @@ function uc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8744
8790
|
})
|
|
8745
8791
|
});
|
|
8746
8792
|
}
|
|
8747
|
-
function
|
|
8793
|
+
function td({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessage: s, successMessage: o, loadingState: a, nextSteps: l, closeLabel: u, primaryAction: c, modalTitle: d, modalModule: h, secondaryAction: f, portalContainer: x, tag: v, promoTag: w, showResponseDialog: S = !0 }) {
|
|
8748
8794
|
const [N, C] = W(n), [R, y] = W(null), [b, D] = W(!1), E = async () => {
|
|
8749
8795
|
if (c != null && c.onClick) {
|
|
8750
8796
|
D(!0);
|
|
@@ -8759,8 +8805,8 @@ function Kc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8759
8805
|
}, k = () => {
|
|
8760
8806
|
C(!1), e == null || e();
|
|
8761
8807
|
}, A = b;
|
|
8762
|
-
return
|
|
8763
|
-
children: [g(
|
|
8808
|
+
return P(qt, {
|
|
8809
|
+
children: [g(bc, {
|
|
8764
8810
|
isOpen: N,
|
|
8765
8811
|
onClose: k,
|
|
8766
8812
|
title: d,
|
|
@@ -8768,23 +8814,23 @@ function Kc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8768
8814
|
portalContainer: x,
|
|
8769
8815
|
children: g("div", {
|
|
8770
8816
|
className: "pb-4 pl-4",
|
|
8771
|
-
children: g(
|
|
8817
|
+
children: g(Mr, {
|
|
8772
8818
|
title: t,
|
|
8773
8819
|
image: i,
|
|
8774
8820
|
benefits: r,
|
|
8775
8821
|
withShadow: !1,
|
|
8776
8822
|
tag: v,
|
|
8777
8823
|
promoTag: w,
|
|
8778
|
-
actions:
|
|
8824
|
+
actions: P("div", {
|
|
8779
8825
|
className: "flex gap-3",
|
|
8780
|
-
children: [c && g(
|
|
8826
|
+
children: [c && g(qe, {
|
|
8781
8827
|
variant: c.variant,
|
|
8782
8828
|
label: A ? a.label : c.label,
|
|
8783
8829
|
icon: c.icon || void 0,
|
|
8784
8830
|
onClick: E,
|
|
8785
8831
|
loading: c.loading,
|
|
8786
8832
|
size: c.size
|
|
8787
|
-
}), f && g(
|
|
8833
|
+
}), f && g(qe, {
|
|
8788
8834
|
onClick: f.onClick,
|
|
8789
8835
|
label: f.label,
|
|
8790
8836
|
variant: f.variant,
|
|
@@ -8794,7 +8840,7 @@ function Kc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8794
8840
|
})
|
|
8795
8841
|
})
|
|
8796
8842
|
})
|
|
8797
|
-
}), R && S && g(
|
|
8843
|
+
}), R && S && g(Gn, {
|
|
8798
8844
|
open: !0,
|
|
8799
8845
|
onClose: () => {
|
|
8800
8846
|
k(), y(null);
|
|
@@ -8808,7 +8854,7 @@ function Kc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8808
8854
|
})]
|
|
8809
8855
|
});
|
|
8810
8856
|
}
|
|
8811
|
-
function
|
|
8857
|
+
function xc({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r, width: s, trackVisibility: o, actions: a, showConfirmation: l = !0 }) {
|
|
8812
8858
|
const [u, c] = W(!1), d = () => {
|
|
8813
8859
|
c(!0), i && i();
|
|
8814
8860
|
};
|
|
@@ -8816,24 +8862,24 @@ function hc({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8816
8862
|
o && o(!u);
|
|
8817
8863
|
}, [o, u]);
|
|
8818
8864
|
const h = n == null ? void 0 : n.includes(".mp4");
|
|
8819
|
-
return g(
|
|
8820
|
-
children: u ? null :
|
|
8865
|
+
return g(qt, {
|
|
8866
|
+
children: u ? null : P(Us, {
|
|
8821
8867
|
style: {
|
|
8822
8868
|
width: s
|
|
8823
8869
|
},
|
|
8824
8870
|
className: "relative bg-f1-background p-1",
|
|
8825
|
-
children: [
|
|
8871
|
+
children: [P(Ks, {
|
|
8826
8872
|
children: [r && g("div", {
|
|
8827
8873
|
className: "absolute right-2 top-2 z-10",
|
|
8828
|
-
children: g(
|
|
8874
|
+
children: g(qe, {
|
|
8829
8875
|
variant: "ghost",
|
|
8830
|
-
icon:
|
|
8876
|
+
icon: Wn,
|
|
8831
8877
|
size: "sm",
|
|
8832
8878
|
hideLabel: !0,
|
|
8833
8879
|
onClick: d,
|
|
8834
8880
|
label: "Close"
|
|
8835
8881
|
})
|
|
8836
|
-
}),
|
|
8882
|
+
}), P("div", {
|
|
8837
8883
|
children: [g("div", {
|
|
8838
8884
|
children: n && (h ? g("video", {
|
|
8839
8885
|
src: n,
|
|
@@ -8847,20 +8893,20 @@ function hc({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8847
8893
|
alt: e,
|
|
8848
8894
|
className: "h-full w-full rounded-md"
|
|
8849
8895
|
}))
|
|
8850
|
-
}),
|
|
8896
|
+
}), P("div", {
|
|
8851
8897
|
className: "flex flex-col gap-[2px] p-3",
|
|
8852
|
-
children: [g(
|
|
8898
|
+
children: [g(en, {
|
|
8853
8899
|
className: "text-lg font-medium",
|
|
8854
8900
|
children: e
|
|
8855
|
-
}), g(
|
|
8901
|
+
}), g(en, {
|
|
8856
8902
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8857
8903
|
children: t
|
|
8858
8904
|
})]
|
|
8859
8905
|
})]
|
|
8860
8906
|
})]
|
|
8861
|
-
}), a && g(
|
|
8907
|
+
}), a && g(Xs, {
|
|
8862
8908
|
className: "p-3",
|
|
8863
|
-
children: a.map((f) => f.type === "upsell" ? g(
|
|
8909
|
+
children: a.map((f) => f.type === "upsell" ? g($n, {
|
|
8864
8910
|
label: f.label,
|
|
8865
8911
|
onRequest: f.onClick,
|
|
8866
8912
|
errorMessage: f.errorMessage,
|
|
@@ -8870,7 +8916,7 @@ function hc({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8870
8916
|
closeLabel: f.closeLabel,
|
|
8871
8917
|
showConfirmation: l && f.showConfirmation,
|
|
8872
8918
|
variant: f.variant
|
|
8873
|
-
}, f.label) : g(
|
|
8919
|
+
}, f.label) : g(qe, {
|
|
8874
8920
|
label: f.label,
|
|
8875
8921
|
onClick: f.onClick,
|
|
8876
8922
|
variant: f.variant
|
|
@@ -8879,8 +8925,8 @@ function hc({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8879
8925
|
})
|
|
8880
8926
|
});
|
|
8881
8927
|
}
|
|
8882
|
-
const
|
|
8883
|
-
const s = (l) => l.variant === "promote" ? g(
|
|
8928
|
+
const wc = le(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
8929
|
+
const s = (l) => l.variant === "promote" ? g($n, {
|
|
8884
8930
|
label: l.label,
|
|
8885
8931
|
onRequest: async () => {
|
|
8886
8932
|
await l.onClick();
|
|
@@ -8893,14 +8939,14 @@ const fc = le(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
8893
8939
|
showIcon: l.showIcon,
|
|
8894
8940
|
showConfirmation: l.showConfirmation,
|
|
8895
8941
|
variant: l.variant
|
|
8896
|
-
}) : g(
|
|
8942
|
+
}) : g(qe, {
|
|
8897
8943
|
onClick: l.onClick,
|
|
8898
8944
|
label: l.label,
|
|
8899
8945
|
variant: l.variant || "default",
|
|
8900
8946
|
size: "md",
|
|
8901
8947
|
icon: l.icon
|
|
8902
8948
|
}), o = (e == null ? void 0 : e.variant) !== "promote" ? e : void 0, a = (t == null ? void 0 : t.variant) !== "promote" ? t : void 0;
|
|
8903
|
-
return
|
|
8949
|
+
return P(Ys, {
|
|
8904
8950
|
ref: r,
|
|
8905
8951
|
...i,
|
|
8906
8952
|
primaryAction: o,
|
|
@@ -8908,8 +8954,8 @@ const fc = le(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
8908
8954
|
children: [(e == null ? void 0 : e.variant) === "promote" && s(e), (t == null ? void 0 : t.variant) === "promote" && s(t)]
|
|
8909
8955
|
});
|
|
8910
8956
|
});
|
|
8911
|
-
|
|
8912
|
-
function
|
|
8957
|
+
wc.displayName = "UpsellingBanner";
|
|
8958
|
+
function id({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r = "md", showIcon: s = !0, side: o = "right", align: a = "center", icon: l = Vs, mediaUrl: u, title: c, description: d, width: h = "300px", trackVisibility: f, actions: x, onClick: v, hideLabel: w = !1 }) {
|
|
8913
8959
|
const [S, N] = W(!1), [C, R] = W(null), [y, b] = W(null), D = (_) => {
|
|
8914
8960
|
e(_), v && v();
|
|
8915
8961
|
}, E = async (_) => {
|
|
@@ -8927,13 +8973,13 @@ function Xc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8927
8973
|
..._,
|
|
8928
8974
|
onClick: () => E(_)
|
|
8929
8975
|
} : _);
|
|
8930
|
-
return
|
|
8931
|
-
children: [
|
|
8976
|
+
return P(qt, {
|
|
8977
|
+
children: [P(Mn, {
|
|
8932
8978
|
open: A,
|
|
8933
8979
|
onOpenChange: D,
|
|
8934
|
-
children: [g(
|
|
8980
|
+
children: [g(Ln, {
|
|
8935
8981
|
asChild: !0,
|
|
8936
|
-
children: g(
|
|
8982
|
+
children: g(qe, {
|
|
8937
8983
|
variant: i,
|
|
8938
8984
|
label: t,
|
|
8939
8985
|
size: r,
|
|
@@ -8941,11 +8987,11 @@ function Xc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8941
8987
|
onClick: () => e(n),
|
|
8942
8988
|
hideLabel: w
|
|
8943
8989
|
})
|
|
8944
|
-
}), g(
|
|
8990
|
+
}), g(In, {
|
|
8945
8991
|
side: o,
|
|
8946
8992
|
align: a,
|
|
8947
8993
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
8948
|
-
children: g(
|
|
8994
|
+
children: g(xc, {
|
|
8949
8995
|
mediaUrl: u,
|
|
8950
8996
|
title: c,
|
|
8951
8997
|
description: d,
|
|
@@ -8957,7 +9003,7 @@ function Xc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8957
9003
|
showConfirmation: !1
|
|
8958
9004
|
})
|
|
8959
9005
|
})]
|
|
8960
|
-
}), (y == null ? void 0 : y.type) === "upsell" && y.showConfirmation && C && g(
|
|
9006
|
+
}), (y == null ? void 0 : y.type) === "upsell" && y.showConfirmation && C && g(Gn, {
|
|
8961
9007
|
open: !0,
|
|
8962
9008
|
onClose: k,
|
|
8963
9009
|
success: C === "success",
|
|
@@ -8969,11 +9015,11 @@ function Xc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8969
9015
|
})]
|
|
8970
9016
|
});
|
|
8971
9017
|
}
|
|
8972
|
-
const
|
|
9018
|
+
const Cc = Oe(null), _c = ({ children: n, fullScreen: e = !0 }) => {
|
|
8973
9019
|
const t = I(null), [i, r] = W(t.current);
|
|
8974
|
-
return
|
|
9020
|
+
return so(() => {
|
|
8975
9021
|
r(t.current);
|
|
8976
|
-
}, []), g(
|
|
9022
|
+
}, []), g(Cc.Provider, {
|
|
8977
9023
|
value: {
|
|
8978
9024
|
element: i
|
|
8979
9025
|
},
|
|
@@ -8986,27 +9032,27 @@ const gc = Ne(null), pc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
8986
9032
|
children: n
|
|
8987
9033
|
})
|
|
8988
9034
|
});
|
|
8989
|
-
},
|
|
9035
|
+
}, Ec = ({ children: n }) => g(ro, {
|
|
8990
9036
|
reducedMotion: "user",
|
|
8991
9037
|
children: n
|
|
8992
|
-
}),
|
|
8993
|
-
children: g(
|
|
9038
|
+
}), nd = ({ children: n, layout: e, link: t, privacyModeInitiallyEnabled: i, image: r, i18n: s, l10n: o, isDev: a = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: u = !1 }) => g(Ec, {
|
|
9039
|
+
children: g(qs, {
|
|
8994
9040
|
isDev: a,
|
|
8995
9041
|
showExperimentalWarnings: u,
|
|
8996
|
-
children: g(
|
|
9042
|
+
children: g(Js, {
|
|
8997
9043
|
...o,
|
|
8998
|
-
children: g(
|
|
9044
|
+
children: g(Zs, {
|
|
8999
9045
|
...s,
|
|
9000
|
-
children: g(
|
|
9046
|
+
children: g(Qs, {
|
|
9001
9047
|
...t,
|
|
9002
|
-
children: g(
|
|
9048
|
+
children: g(_c, {
|
|
9003
9049
|
...e,
|
|
9004
|
-
children: g(
|
|
9005
|
-
children: g(
|
|
9050
|
+
children: g(eo, {
|
|
9051
|
+
children: g(to, {
|
|
9006
9052
|
initiallyEnabled: i,
|
|
9007
|
-
children: g(
|
|
9053
|
+
children: g(io, {
|
|
9008
9054
|
...r,
|
|
9009
|
-
children: g(
|
|
9055
|
+
children: g(no, {
|
|
9010
9056
|
handler: l,
|
|
9011
9057
|
children: n
|
|
9012
9058
|
})
|
|
@@ -9018,114 +9064,115 @@ const gc = Ne(null), pc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9018
9064
|
})
|
|
9019
9065
|
})
|
|
9020
9066
|
})
|
|
9021
|
-
}),
|
|
9067
|
+
}), Cn = (n) => `datacollection-${n}`, rd = {
|
|
9022
9068
|
get: async (n) => JSON.parse(
|
|
9023
|
-
localStorage.getItem(
|
|
9069
|
+
localStorage.getItem(Cn(n)) ?? "{}"
|
|
9024
9070
|
),
|
|
9025
9071
|
set: async (n, e) => {
|
|
9026
|
-
localStorage.setItem(
|
|
9072
|
+
localStorage.setItem(Cn(n), JSON.stringify(e));
|
|
9027
9073
|
}
|
|
9028
9074
|
};
|
|
9029
9075
|
export {
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9076
|
+
Mc as AreaChart,
|
|
9077
|
+
ad as Await,
|
|
9078
|
+
Lc as BarChart,
|
|
9079
|
+
Ic as CategoryBarChart,
|
|
9080
|
+
Gc as ComboChart,
|
|
9081
|
+
Ac as Dashboard,
|
|
9082
|
+
ld as DndProvider,
|
|
9083
|
+
cd as EmojiImage,
|
|
9084
|
+
dd as F0Avatar,
|
|
9085
|
+
ud as F0AvatarAlert,
|
|
9086
|
+
hd as F0AvatarCompany,
|
|
9087
|
+
fd as F0AvatarDate,
|
|
9088
|
+
gd as F0AvatarEmoji,
|
|
9089
|
+
pd as F0AvatarFile,
|
|
9090
|
+
md as F0AvatarIcon,
|
|
9091
|
+
vd as F0AvatarList,
|
|
9092
|
+
Fn as F0AvatarModule,
|
|
9093
|
+
yd as F0AvatarPerson,
|
|
9094
|
+
bd as F0AvatarTeam,
|
|
9095
|
+
$c as F0BigNumber,
|
|
9096
|
+
qe as F0Button,
|
|
9097
|
+
xd as F0ButtonDropdown,
|
|
9098
|
+
wd as F0ButtonToggle,
|
|
9099
|
+
Cd as F0Card,
|
|
9100
|
+
_d as F0Checkbox,
|
|
9101
|
+
Zc as F0ChipList,
|
|
9102
|
+
Ed as F0DatePicker,
|
|
9103
|
+
Dd as F0EventCatcherProvider,
|
|
9104
|
+
ed as F0GridStack,
|
|
9105
|
+
mc as F0Heading,
|
|
9106
|
+
Sn as F0Icon,
|
|
9107
|
+
Rd as F0Link,
|
|
9108
|
+
nd as F0Provider,
|
|
9109
|
+
Sd as F0Select,
|
|
9110
|
+
Nd as F0TagAlert,
|
|
9111
|
+
zs as F0TagBalance,
|
|
9112
|
+
Od as F0TagCompany,
|
|
9113
|
+
Ad as F0TagDot,
|
|
9114
|
+
Td as F0TagList,
|
|
9115
|
+
kd as F0TagPerson,
|
|
9116
|
+
Bs as F0TagRaw,
|
|
9117
|
+
Fs as F0TagStatus,
|
|
9118
|
+
zd as F0TagTeam,
|
|
9119
|
+
Qn as F0Text,
|
|
9120
|
+
Pd as GROUP_ID_SYMBOL,
|
|
9121
|
+
Pc as HomeLayout,
|
|
9122
|
+
Tc as Layout,
|
|
9123
|
+
Hc as LineChart,
|
|
9124
|
+
Md as OneFilterPicker,
|
|
9125
|
+
Bc as PieChart,
|
|
9126
|
+
to as PrivacyModeProvider,
|
|
9127
|
+
Mr as ProductBlankslate,
|
|
9128
|
+
Ld as ProductCard,
|
|
9129
|
+
td as ProductModal,
|
|
9130
|
+
xc as ProductWidget,
|
|
9131
|
+
Wc as ProgressBarChart,
|
|
9132
|
+
kc as StandardLayout,
|
|
9133
|
+
Id as Tag,
|
|
9134
|
+
Hd as TagCounter,
|
|
9135
|
+
zc as TwoColumnLayout,
|
|
9136
|
+
Gn as UpsellRequestResponseDialog,
|
|
9137
|
+
wc as UpsellingBanner,
|
|
9138
|
+
$n as UpsellingButton,
|
|
9139
|
+
id as UpsellingPopover,
|
|
9140
|
+
Fc as VerticalBarChart,
|
|
9141
|
+
Oc as avatarVariants,
|
|
9142
|
+
Bd as buildTranslations,
|
|
9143
|
+
Xc as buttonDropdownSizes,
|
|
9144
|
+
Kc as buttonDropdownVariants,
|
|
9145
|
+
Uc as buttonSizes,
|
|
9146
|
+
Yc as buttonToggleSizes,
|
|
9147
|
+
Vc as buttonToggleVariants,
|
|
9148
|
+
jc as buttonVariants,
|
|
9149
|
+
Fd as createAtlaskitDriver,
|
|
9150
|
+
Wd as createDataSourceDefinition,
|
|
9151
|
+
To as createPageLayoutBlock,
|
|
9152
|
+
ko as createPageLayoutBlockGroup,
|
|
9153
|
+
rd as dataCollectionLocalStorageHandler,
|
|
9154
|
+
Qc as datepickerSizes,
|
|
9155
|
+
lu as defaultTranslations,
|
|
9156
|
+
we as experimental,
|
|
9157
|
+
Gd as getAnimationVariants,
|
|
9158
|
+
$d as getDataSourcePaginationType,
|
|
9159
|
+
jd as getEmojiLabel,
|
|
9160
|
+
Ud as isInfiniteScrollPagination,
|
|
9161
|
+
Kd as isPageBasedPagination,
|
|
9162
|
+
qc as linkVariants,
|
|
9163
|
+
Xd as modules,
|
|
9164
|
+
Yd as predefinedPresets,
|
|
9165
|
+
Vd as selectSizes,
|
|
9166
|
+
Jc as tagDotColors,
|
|
9167
|
+
qd as useData,
|
|
9168
|
+
Jd as useDataSource,
|
|
9169
|
+
Zd as useDndEvents,
|
|
9170
|
+
Qd as useDraggable,
|
|
9171
|
+
eu as useDroppableList,
|
|
9172
|
+
tu as useEmojiConfetti,
|
|
9173
|
+
iu as useGroups,
|
|
9174
|
+
nu as usePrivacyMode,
|
|
9175
|
+
ru as useReducedMotion,
|
|
9176
|
+
su as useSelectable,
|
|
9177
|
+
ou as useXRay
|
|
9131
9178
|
};
|