@factorialco/f0-react 1.347.0 → 1.348.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DataCollectionStorageProvider-CamUWgw8.js → DataCollectionStorageProvider-CBrAqjA6.js} +1 -1
- package/dist/{F0AiChat-Bdcyd2yl.js → F0AiChat-zZ3n4mtZ.js} +16105 -16076
- package/dist/F0HILActionConfirmation-vCrEe127.js +1205 -0
- package/dist/ai.d.ts +31 -0
- package/dist/ai.js +7 -6
- package/dist/experimental.js +3563 -3571
- package/dist/f0.d.ts +28 -0
- package/dist/f0.js +218 -217
- package/dist/styles.css +1 -1
- package/package.json +5 -1
- package/dist/F0HILActionConfirmation-VQ_C8zDh.js +0 -80
package/dist/f0.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as zd,
|
|
1
|
+
import { a6 as G, a7 as Ge, aa as Dn, ab as Ri, ac as Ni, ad as Yr, ae as qr, af as Sn, ag as we, u as Rn, ah as Nn, ai as Jr, aj as Zr, ak as Qr, al as es, am as fe, an as ve, ao as ts, ap as is, aq as An, ar as ns, as as Lt, at as On, au as kn, av as Tn, aw as zn, ax as Pn, ay as Mn, az as rs, aA as ss, aB as os, aC as as, aD as ls, a8 as We, aE as Ji, aF as cs, aG as ds, aH as us, aI as hs, aJ as Ln, aK as fs, aL as gs, aM as ps, aN as ms, aO as vs, aP as In, aQ as ys, aR as bs, aS as xs, I as ws, aT as Cs, aU as _s, aV as Es, aW as Ds } from "./F0AiChat-zZ3n4mtZ.js";
|
|
2
|
+
import { A as zd, bb as Pd, B as Md, C as Ld, E as Id, bq as Hd, h as Fd, F as Bd, a as Wd, x as Gd, i as $d, b as jd, aX as Ud, aY as Vd, aZ as Kd, a_ as Xd, b0 as Yd, b1 as qd, b2 as Jd, b3 as Zd, b4 as Qd, b5 as eu, b6 as tu, b7 as iu, bm as nu, s as ru, t as su, v as ou, b9 as au, w as lu, c as cu, bc as du, n as uu, o as hu, p as fu, H as gu, k as pu, L as mu, O as vu, ba as yu, q as bu, P as xu, S as wu, T as Cu, l as _u, m as Eu, U as Du, bn as Su, bh as Ru, r as Nu, j as Au, bk as Ou, bg as ku, br as Tu, bf as zu, be as Pu, a$ as Mu, d as Lu, bd as Iu, bi as Hu, e as Fu, bs as Bu, b8 as Wu, bj as Gu, g as $u, f as ju, bp as Uu, bl as Vu, bo as Ku } from "./F0AiChat-zZ3n4mtZ.js";
|
|
3
3
|
import { jsx as f, jsxs as T, Fragment as Jt } from "react/jsx-runtime";
|
|
4
|
-
import L, { forwardRef as oe, useRef as M, useImperativeHandle as
|
|
4
|
+
import L, { forwardRef as oe, useRef as M, useImperativeHandle as Ss, Children as It, createContext as Ae, useContext as _e, useState as F, useMemo as H, useEffect as I, useCallback as U, useLayoutEffect as bi, createElement as Zi, isValidElement as Hn, Fragment as Rs, memo as Ns, useReducer as As, cloneElement as Os, PureComponent as ks } from "react";
|
|
5
5
|
import { createPortal as Fn, unstable_batchedUpdates as Ot } from "react-dom";
|
|
6
|
-
import { L as Bn, C as Ts, i as Wn, D as zs, S as Qi, a as Ps, f as ui, b as ct, c as Ms, A as Ls, d as kt, e as Gn, E as Is, g as Pt, h as Hs, j as Fs, k as Bs, l as Ye, m as $n, u as Ws, G as Gs, n as $s, o as en, p as js, q as jn, r as Us, B as Un, X as Vn, Y as xi, s as Vs, t as Kn, v as Ks, w as Xs, x as Ys, y as qs, z as Js, F as Zs, H as Qs, I as eo, J as tn, K as to, M as dt, N as hi, O as io, P as no, Q as ro, R as so, T as oo, U as ao, V as lo, W as co, Z as uo, _ as ho, $ as fo, a0 as nn, a1 as go, a2 as po, a3 as mo, a4 as vo, a5 as Xn, a6 as yo, a7 as bo, a8 as rn, a9 as xo, aa as Yn, ab as wo, ac as Co, ad as _o, ae as Eo } from "./DataCollectionStorageProvider-
|
|
7
|
-
import { ax as Yu, af as qu, ag as Ju, aj as Zu, ak as Qu, ao as eh, ap as th, aq as ih, as as nh, at as rh, au as sh, av as oh, an as ah, ar as lh, ah as ch, ai as dh, aw as uh, al as hh, am as fh, ay as gh, az as ph, aA as mh, aB as vh } from "./DataCollectionStorageProvider-
|
|
8
|
-
import { A as bh, F as xh,
|
|
6
|
+
import { L as Bn, C as Ts, i as Wn, D as zs, S as Qi, a as Ps, f as ui, b as ct, c as Ms, A as Ls, d as kt, e as Gn, E as Is, g as Pt, h as Hs, j as Fs, k as Bs, l as Ye, m as $n, u as Ws, G as Gs, n as $s, o as en, p as js, q as jn, r as Us, B as Un, X as Vn, Y as xi, s as Vs, t as Kn, v as Ks, w as Xs, x as Ys, y as qs, z as Js, F as Zs, H as Qs, I as eo, J as tn, K as to, M as dt, N as hi, O as io, P as no, Q as ro, R as so, T as oo, U as ao, V as lo, W as co, Z as uo, _ as ho, $ as fo, a0 as nn, a1 as go, a2 as po, a3 as mo, a4 as vo, a5 as Xn, a6 as yo, a7 as bo, a8 as rn, a9 as xo, aa as Yn, ab as wo, ac as Co, ad as _o, ae as Eo } from "./DataCollectionStorageProvider-CBrAqjA6.js";
|
|
7
|
+
import { ax as Yu, af as qu, ag as Ju, aj as Zu, ak as Qu, ao as eh, ap as th, aq as ih, as as nh, at as rh, au as sh, av as oh, an as ah, ar as lh, ah as ch, ai as dh, aw as uh, al as hh, am as fh, ay as gh, az as ph, aA as mh, aB as vh } from "./DataCollectionStorageProvider-CBrAqjA6.js";
|
|
8
|
+
import { A as bh, F as xh, c as wh, b as Ch, a as _h, o as Eh, u as Dh } from "./F0HILActionConfirmation-vCrEe127.js";
|
|
9
9
|
import { defaultTranslations as Rh } from "./i18n-provider-defaults.js";
|
|
10
10
|
import './f0.css';const Do = {
|
|
11
11
|
xs: 1,
|
|
12
12
|
sm: 2,
|
|
13
13
|
md: 2,
|
|
14
14
|
lg: 2
|
|
15
|
-
},
|
|
15
|
+
}, So = oe(function({ widgets: e, children: t }, i) {
|
|
16
16
|
const r = M(null);
|
|
17
|
-
|
|
17
|
+
Ss(i, () => r.current);
|
|
18
18
|
const s = It.toArray(e).filter((o) => !!o).map((o, a) => f("div", {
|
|
19
19
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
20
20
|
children: o
|
|
@@ -48,7 +48,7 @@ import './f0.css';const Do = {
|
|
|
48
48
|
})]
|
|
49
49
|
})
|
|
50
50
|
});
|
|
51
|
-
}),
|
|
51
|
+
}), Ro = Ge({
|
|
52
52
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
53
53
|
variants: {
|
|
54
54
|
variant: {
|
|
@@ -62,7 +62,7 @@ import './f0.css';const Do = {
|
|
|
62
62
|
className: G("relative flex-1 overflow-auto", t),
|
|
63
63
|
...i,
|
|
64
64
|
children: f("div", {
|
|
65
|
-
className: G(
|
|
65
|
+
className: G(Ro({
|
|
66
66
|
variant: e
|
|
67
67
|
})),
|
|
68
68
|
children: n
|
|
@@ -137,12 +137,12 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
137
137
|
...e,
|
|
138
138
|
children: (r || []).map((w) => qe(w))
|
|
139
139
|
}), [e, r]), [l, u] = F(() => {
|
|
140
|
-
const w = /* @__PURE__ */ new Map(),
|
|
140
|
+
const w = /* @__PURE__ */ new Map(), S = r || [], v = (y) => {
|
|
141
141
|
y.id && y.content && w.set(y.id, y.content), y.subGridOpts?.children && y.subGridOpts.children.forEach((m) => {
|
|
142
142
|
v(m);
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
return
|
|
145
|
+
return S.forEach((y) => {
|
|
146
146
|
v(y);
|
|
147
147
|
}), w;
|
|
148
148
|
}), h = M(l);
|
|
@@ -150,12 +150,12 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
150
150
|
h.current = l;
|
|
151
151
|
}, [l]);
|
|
152
152
|
const [g, C] = F(() => {
|
|
153
|
-
const w = /* @__PURE__ */ new Map(),
|
|
153
|
+
const w = /* @__PURE__ */ new Map(), S = r || [], v = (y) => {
|
|
154
154
|
y.id && y._originalContent !== void 0 && w.set(y.id, y._originalContent), y.subGridOpts?.children && y.subGridOpts.children.forEach((m) => {
|
|
155
155
|
v(m);
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
|
-
return
|
|
158
|
+
return S.forEach((y) => {
|
|
159
159
|
v(y);
|
|
160
160
|
}), w;
|
|
161
161
|
}), b = M(g);
|
|
@@ -163,7 +163,7 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
163
163
|
b.current = g;
|
|
164
164
|
}, [g]);
|
|
165
165
|
const [x, D] = F(() => {
|
|
166
|
-
const w = /* @__PURE__ */ new Map(),
|
|
166
|
+
const w = /* @__PURE__ */ new Map(), S = r || [], v = (y) => {
|
|
167
167
|
if (y.id) {
|
|
168
168
|
const m = qe(y);
|
|
169
169
|
w.set(y.id, m);
|
|
@@ -172,7 +172,7 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
172
172
|
v(m);
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
|
-
return
|
|
175
|
+
return S.forEach((y) => {
|
|
176
176
|
v(y);
|
|
177
177
|
}), w;
|
|
178
178
|
});
|
|
@@ -181,7 +181,7 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
181
181
|
const w = s.save();
|
|
182
182
|
if (!Array.isArray(w))
|
|
183
183
|
return;
|
|
184
|
-
const
|
|
184
|
+
const S = w.map((A) => A.id), v = r || [], y = v.map((A) => A.id), m = v.filter((A) => !S.includes(A.id));
|
|
185
185
|
m.length > 0 && (m.forEach((A) => {
|
|
186
186
|
A.content && h.current.set(A.id, A.content), A._originalContent !== void 0 && b.current.set(A.id, A._originalContent);
|
|
187
187
|
}), m.forEach((A) => {
|
|
@@ -189,19 +189,19 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
189
189
|
s.addWidget(_);
|
|
190
190
|
}), D((A) => {
|
|
191
191
|
const _ = new Map(A);
|
|
192
|
-
return m.forEach((
|
|
193
|
-
const O = qe(
|
|
194
|
-
_.set(
|
|
192
|
+
return m.forEach((R) => {
|
|
193
|
+
const O = qe(R);
|
|
194
|
+
_.set(R.id, O);
|
|
195
195
|
}), _;
|
|
196
196
|
}), u((A) => {
|
|
197
197
|
const _ = new Map(A);
|
|
198
|
-
return m.forEach((
|
|
199
|
-
|
|
198
|
+
return m.forEach((R) => {
|
|
199
|
+
R.content && _.set(R.id, R.content);
|
|
200
200
|
}), _;
|
|
201
201
|
}), C((A) => {
|
|
202
202
|
const _ = new Map(A);
|
|
203
|
-
return m.forEach((
|
|
204
|
-
|
|
203
|
+
return m.forEach((R) => {
|
|
204
|
+
R._originalContent !== void 0 && _.set(R.id, R._originalContent);
|
|
205
205
|
}), _;
|
|
206
206
|
}));
|
|
207
207
|
const E = w.filter((A) => !y.includes(A.id));
|
|
@@ -212,24 +212,24 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
212
212
|
h.current.delete(_), b.current.delete(_);
|
|
213
213
|
}, Le);
|
|
214
214
|
}), E.forEach((_) => {
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
s.removeWidget(
|
|
215
|
+
const R = s.el.querySelector(`[gs-id="${_.id}"]`);
|
|
216
|
+
R && setTimeout(() => {
|
|
217
|
+
s.removeWidget(R, !0);
|
|
218
218
|
}, Le);
|
|
219
219
|
}), D((_) => {
|
|
220
|
-
const
|
|
220
|
+
const R = new Map(_);
|
|
221
221
|
return A.forEach((O) => {
|
|
222
222
|
setTimeout(() => {
|
|
223
|
-
|
|
223
|
+
R.delete(O);
|
|
224
224
|
}, Le);
|
|
225
|
-
}),
|
|
225
|
+
}), R;
|
|
226
226
|
}), u((_) => {
|
|
227
|
-
const
|
|
227
|
+
const R = new Map(_);
|
|
228
228
|
return A.forEach((O) => {
|
|
229
|
-
if (
|
|
229
|
+
if (R.get(O)) {
|
|
230
230
|
const Q = s.el.querySelector(`[gs-id="${O}"] .grid-stack-item-content`);
|
|
231
231
|
let ee = "";
|
|
232
|
-
Q && (ee = To(Q)),
|
|
232
|
+
Q && (ee = To(Q)), R.set(O, f(Ri.div, {
|
|
233
233
|
className: "h-full w-full",
|
|
234
234
|
initial: {
|
|
235
235
|
opacity: 1,
|
|
@@ -266,26 +266,26 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
266
266
|
}));
|
|
267
267
|
}
|
|
268
268
|
setTimeout(() => {
|
|
269
|
-
|
|
269
|
+
R.delete(O);
|
|
270
270
|
}, Le);
|
|
271
|
-
}),
|
|
271
|
+
}), R;
|
|
272
272
|
}), C((_) => {
|
|
273
|
-
const
|
|
273
|
+
const R = new Map(_);
|
|
274
274
|
return A.forEach((O) => {
|
|
275
275
|
setTimeout(() => {
|
|
276
|
-
|
|
276
|
+
R.delete(O);
|
|
277
277
|
}, Le);
|
|
278
|
-
}),
|
|
278
|
+
}), R;
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
const z = v.filter((A) =>
|
|
281
|
+
const z = v.filter((A) => S.includes(A.id));
|
|
282
282
|
if (z.length > 0) {
|
|
283
283
|
const A = [];
|
|
284
284
|
z.forEach((_) => {
|
|
285
|
-
const
|
|
286
|
-
if (!
|
|
285
|
+
const R = w.find((B) => B.id === _.id);
|
|
286
|
+
if (!R)
|
|
287
287
|
return;
|
|
288
|
-
const O = ko.filter((B) =>
|
|
288
|
+
const O = ko.filter((B) => R[B] !== _[B]);
|
|
289
289
|
if (O.length > 0) {
|
|
290
290
|
const B = {}, Q = ["w", "h", "x", "y"], ee = ["noMove", "noResize", "locked"], V = O.filter((j) => Q.includes(j)), ue = O.filter((j) => ee.includes(j));
|
|
291
291
|
if (V.length > 0 && ue.length > 0 && V.length + ue.length === O.length ? ue.forEach((j) => {
|
|
@@ -305,28 +305,28 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
305
305
|
}
|
|
306
306
|
}), z.forEach((_) => {
|
|
307
307
|
_.content && h.current.set(_.id, _.content), _._originalContent !== void 0 && b.current.set(_.id, _._originalContent);
|
|
308
|
-
}), A.forEach(({ element: _, updateOptions:
|
|
308
|
+
}), A.forEach(({ element: _, updateOptions: R }) => {
|
|
309
309
|
try {
|
|
310
|
-
s.update(_,
|
|
310
|
+
s.update(_, R);
|
|
311
311
|
} catch (O) {
|
|
312
312
|
console.warn("Error updating widget:", O);
|
|
313
313
|
}
|
|
314
314
|
}), D((_) => {
|
|
315
|
-
const
|
|
315
|
+
const R = new Map(_);
|
|
316
316
|
return z.forEach((O) => {
|
|
317
317
|
const B = qe(O);
|
|
318
|
-
|
|
319
|
-
}),
|
|
318
|
+
R.set(O.id, B);
|
|
319
|
+
}), R;
|
|
320
320
|
}), u((_) => {
|
|
321
|
-
const
|
|
321
|
+
const R = new Map(_);
|
|
322
322
|
return z.forEach((O) => {
|
|
323
|
-
O.content &&
|
|
324
|
-
}),
|
|
323
|
+
O.content && R.set(O.id, O.content);
|
|
324
|
+
}), R;
|
|
325
325
|
}), C((_) => {
|
|
326
|
-
const
|
|
326
|
+
const R = new Map(_);
|
|
327
327
|
return z.forEach((O) => {
|
|
328
|
-
O._originalContent !== void 0 &&
|
|
329
|
-
}),
|
|
328
|
+
O._originalContent !== void 0 && R.set(O.id, O._originalContent);
|
|
329
|
+
}), R;
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
c.current || (c.current = !0);
|
|
@@ -347,7 +347,7 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
347
347
|
return;
|
|
348
348
|
const w = s.save();
|
|
349
349
|
if (Array.isArray(w)) {
|
|
350
|
-
const
|
|
350
|
+
const S = w.map((v) => {
|
|
351
351
|
const y = v.id;
|
|
352
352
|
if (!y) return null;
|
|
353
353
|
const m = h.current.get(y), E = b.current.get(y), z = v;
|
|
@@ -365,26 +365,26 @@ function zo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
365
365
|
})
|
|
366
366
|
};
|
|
367
367
|
}).filter((v) => v !== null);
|
|
368
|
-
i?.(
|
|
368
|
+
i?.(S);
|
|
369
369
|
}
|
|
370
370
|
}, [s]);
|
|
371
371
|
return I(() => {
|
|
372
372
|
if (!s || !s.el || !s.el.parentElement)
|
|
373
373
|
return;
|
|
374
|
-
const w = (
|
|
375
|
-
t?.(
|
|
374
|
+
const w = (S, v) => {
|
|
375
|
+
t?.(S, v);
|
|
376
376
|
};
|
|
377
377
|
try {
|
|
378
378
|
s.on("resizestop", w), s.on("change added removed", N);
|
|
379
|
-
} catch (
|
|
380
|
-
console.error("Error attaching GridStack event listeners:",
|
|
379
|
+
} catch (S) {
|
|
380
|
+
console.error("Error attaching GridStack event listeners:", S);
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
return () => {
|
|
384
|
-
const
|
|
385
|
-
if (
|
|
384
|
+
const S = a.current;
|
|
385
|
+
if (S && S.el)
|
|
386
386
|
try {
|
|
387
|
-
|
|
387
|
+
S.off("resizestop"), S.off("change added removed");
|
|
388
388
|
} catch (v) {
|
|
389
389
|
console.warn("Error cleaning up GridStack event listeners:", v);
|
|
390
390
|
}
|
|
@@ -3771,9 +3771,9 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3771
3771
|
a.x = Math.round(D / s), a.y = Math.round(N / o);
|
|
3772
3772
|
const w = this._extraDragRow;
|
|
3773
3773
|
if (this.engine.collide(r, a)) {
|
|
3774
|
-
const
|
|
3775
|
-
let v = Math.max(0, a.y + r.h -
|
|
3776
|
-
this.opts.maxRow &&
|
|
3774
|
+
const S = this.getRow();
|
|
3775
|
+
let v = Math.max(0, a.y + r.h - S);
|
|
3776
|
+
this.opts.maxRow && S + v > this.opts.maxRow && (v = Math.max(0, this.opts.maxRow - S)), this._extraDragRow = v;
|
|
3777
3777
|
} else
|
|
3778
3778
|
this._extraDragRow = 0;
|
|
3779
3779
|
if (this._extraDragRow !== w && this._updateContainerHeight(), r.x === a.x && r.y === a.y)
|
|
@@ -3929,7 +3929,7 @@ const Go = (n, e, t) => f("div", {
|
|
|
3929
3929
|
children: n
|
|
3930
3930
|
}), Qt = ({ widgets: n = [], editMode: e = !1, onChange: t = () => {
|
|
3931
3931
|
}, WidgetWrapper: i = Go, main: r = !1, deps: s }) => {
|
|
3932
|
-
const o = U((v, y, m) => f(
|
|
3932
|
+
const o = U((v, y, m) => f(Ri.div, {
|
|
3933
3933
|
className: "h-full w-full",
|
|
3934
3934
|
initial: {
|
|
3935
3935
|
opacity: 0,
|
|
@@ -4028,27 +4028,27 @@ const Go = (n, e, t) => f("div", {
|
|
|
4028
4028
|
deps: m?.deps
|
|
4029
4029
|
};
|
|
4030
4030
|
})), C.current = !1;
|
|
4031
|
-
}, [t]),
|
|
4031
|
+
}, [t]), S = (v, y) => !v && !y ? !1 : !v || !y || v.length !== y.length ? !0 : v.some((m, E) => m !== y[E]);
|
|
4032
4032
|
return I(() => {
|
|
4033
4033
|
const v = h.current !== e, y = g.current !== n, m = D.current !== s && (D.current === void 0 || s === void 0 || Object.keys(D.current).length !== Object.keys(s).length || Object.keys(s).some((_) => D.current?.[_] !== s[_])), E = /* @__PURE__ */ new Map();
|
|
4034
4034
|
n.forEach((_) => {
|
|
4035
4035
|
if (_.deps && _.deps.length > 0) {
|
|
4036
|
-
const
|
|
4037
|
-
E.set(_.id, R
|
|
4036
|
+
const R = b.current.get(_.id), O = N.get(_.id);
|
|
4037
|
+
E.set(_.id, S(R, O)), O ? b.current.set(_.id, O) : b.current.delete(_.id);
|
|
4038
4038
|
}
|
|
4039
4039
|
});
|
|
4040
4040
|
const z = new Set(n.map((_) => _.id));
|
|
4041
|
-
b.current.forEach((_,
|
|
4042
|
-
z.has(
|
|
4041
|
+
b.current.forEach((_, R) => {
|
|
4042
|
+
z.has(R) || b.current.delete(R);
|
|
4043
4043
|
});
|
|
4044
4044
|
const A = Array.from(E.values()).some((_) => _) || m;
|
|
4045
|
-
v && !y && !A ? (C.current = !0, u((_) => _.map((
|
|
4046
|
-
const O = n.find((Q) => Q.id ===
|
|
4045
|
+
v && !y && !A ? (C.current = !0, u((_) => _.map((R) => {
|
|
4046
|
+
const O = n.find((Q) => Q.id === R.id);
|
|
4047
4047
|
if (!O)
|
|
4048
|
-
return
|
|
4048
|
+
return R;
|
|
4049
4049
|
const B = c(O, s);
|
|
4050
4050
|
return {
|
|
4051
|
-
...
|
|
4051
|
+
...R,
|
|
4052
4052
|
noMove: !e,
|
|
4053
4053
|
noResize: !e,
|
|
4054
4054
|
locked: O.locked,
|
|
@@ -4057,9 +4057,9 @@ const Go = (n, e, t) => f("div", {
|
|
|
4057
4057
|
content: o(B, O.meta, e)
|
|
4058
4058
|
};
|
|
4059
4059
|
}))) : (y || A) && u((_) => {
|
|
4060
|
-
const
|
|
4060
|
+
const R = new Map(_.map((O) => [O.id, O]));
|
|
4061
4061
|
return n.map((O) => {
|
|
4062
|
-
const B =
|
|
4062
|
+
const B = R.get(O.id), Q = E.get(O.id) ?? !1;
|
|
4063
4063
|
let ee;
|
|
4064
4064
|
Q || !B ? ee = c(O, s) : ee = B._originalContent ?? c(O, s);
|
|
4065
4065
|
const V = {
|
|
@@ -4229,7 +4229,7 @@ const Qc = [
|
|
|
4229
4229
|
"file",
|
|
4230
4230
|
"flag"
|
|
4231
4231
|
], rr = ({ title: n, draggable: e = !1, onDragStart: t, onDragEnd: i, isDragging: r = !1, AIButton: s, actions: o, children: a, selected: c = !1 }) => {
|
|
4232
|
-
const [d, l] = F(!1), [u, h] = F(!1), g =
|
|
4232
|
+
const [d, l] = F(!1), [u, h] = F(!1), g = Rn(), C = (x) => {
|
|
4233
4233
|
l(x);
|
|
4234
4234
|
}, b = u || d;
|
|
4235
4235
|
return I(() => {
|
|
@@ -4265,7 +4265,7 @@ const Qc = [
|
|
|
4265
4265
|
})
|
|
4266
4266
|
})]
|
|
4267
4267
|
}), f(Zr, {
|
|
4268
|
-
children: (s || o) && b && T(
|
|
4268
|
+
children: (s || o) && b && T(Ri.div, {
|
|
4269
4269
|
className: G("flex shrink-0 items-center gap-0.5 pr-2", !o && "pr-4"),
|
|
4270
4270
|
initial: {
|
|
4271
4271
|
opacity: 0
|
|
@@ -4336,7 +4336,7 @@ const Qc = [
|
|
|
4336
4336
|
})]
|
|
4337
4337
|
});
|
|
4338
4338
|
rr.displayName = "F0Widget";
|
|
4339
|
-
const Yo =
|
|
4339
|
+
const Yo = Sn(rr, Xo), qo = ({ children: n, title: e, draggable: t = !1, actions: i, aiButton: r }) => f(Yo, {
|
|
4340
4340
|
title: e,
|
|
4341
4341
|
draggable: t,
|
|
4342
4342
|
actions: i,
|
|
@@ -4443,7 +4443,7 @@ const ta = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4443
4443
|
}, [r, e]), f("div", {
|
|
4444
4444
|
ref: i,
|
|
4445
4445
|
...t,
|
|
4446
|
-
children: r.map((o, a) => f(
|
|
4446
|
+
children: r.map((o, a) => f(Rs, {
|
|
4447
4447
|
children: o
|
|
4448
4448
|
}, a))
|
|
4449
4449
|
});
|
|
@@ -4961,7 +4961,7 @@ function Da(n, e) {
|
|
|
4961
4961
|
}
|
|
4962
4962
|
return 0;
|
|
4963
4963
|
}
|
|
4964
|
-
const
|
|
4964
|
+
const Sa = (n) => {
|
|
4965
4965
|
let {
|
|
4966
4966
|
collisionRect: e,
|
|
4967
4967
|
droppableRects: t,
|
|
@@ -4985,7 +4985,7 @@ const Ra = (n) => {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
return r.sort(_a);
|
|
4987
4987
|
};
|
|
4988
|
-
function
|
|
4988
|
+
function Ra(n, e, t) {
|
|
4989
4989
|
return {
|
|
4990
4990
|
...n,
|
|
4991
4991
|
scaleX: e && t ? e.width / t.width : 1,
|
|
@@ -5414,37 +5414,37 @@ class Ii {
|
|
|
5414
5414
|
isTop: D,
|
|
5415
5415
|
isRight: N,
|
|
5416
5416
|
isLeft: w,
|
|
5417
|
-
isBottom:
|
|
5417
|
+
isBottom: S,
|
|
5418
5418
|
maxScroll: v,
|
|
5419
5419
|
minScroll: y
|
|
5420
5420
|
} = vr(b), m = Ia(b), E = {
|
|
5421
5421
|
x: Math.min(x === W.Right ? m.right - m.width / 2 : m.right, Math.max(x === W.Right ? m.left : m.left + m.width / 2, u.x)),
|
|
5422
5422
|
y: Math.min(x === W.Down ? m.bottom - m.height / 2 : m.bottom, Math.max(x === W.Down ? m.top : m.top + m.height / 2, u.y))
|
|
5423
|
-
}, z = x === W.Right && !N || x === W.Left && !w, A = x === W.Down && !
|
|
5423
|
+
}, z = x === W.Right && !N || x === W.Left && !w, A = x === W.Down && !S || x === W.Up && !D;
|
|
5424
5424
|
if (z && E.x !== u.x) {
|
|
5425
|
-
const _ = b.scrollLeft + h.x,
|
|
5426
|
-
if (
|
|
5425
|
+
const _ = b.scrollLeft + h.x, R = x === W.Right && _ <= v.x || x === W.Left && _ >= y.x;
|
|
5426
|
+
if (R && !h.y) {
|
|
5427
5427
|
b.scrollTo({
|
|
5428
5428
|
left: _,
|
|
5429
5429
|
behavior: a
|
|
5430
5430
|
});
|
|
5431
5431
|
return;
|
|
5432
5432
|
}
|
|
5433
|
-
|
|
5433
|
+
R ? g.x = b.scrollLeft - _ : g.x = x === W.Right ? b.scrollLeft - v.x : b.scrollLeft - y.x, g.x && b.scrollBy({
|
|
5434
5434
|
left: -g.x,
|
|
5435
5435
|
behavior: a
|
|
5436
5436
|
});
|
|
5437
5437
|
break;
|
|
5438
5438
|
} else if (A && E.y !== u.y) {
|
|
5439
|
-
const _ = b.scrollTop + h.y,
|
|
5440
|
-
if (
|
|
5439
|
+
const _ = b.scrollTop + h.y, R = x === W.Down && _ <= v.y || x === W.Up && _ >= y.y;
|
|
5440
|
+
if (R && !h.x) {
|
|
5441
5441
|
b.scrollTo({
|
|
5442
5442
|
top: _,
|
|
5443
5443
|
behavior: a
|
|
5444
5444
|
});
|
|
5445
5445
|
return;
|
|
5446
5446
|
}
|
|
5447
|
-
|
|
5447
|
+
R ? g.y = b.scrollTop - _ : g.y = x === W.Down ? b.scrollTop - v.y : b.scrollTop - y.y, g.y && b.scrollBy({
|
|
5448
5448
|
top: -g.y,
|
|
5449
5449
|
behavior: a
|
|
5450
5450
|
});
|
|
@@ -5764,7 +5764,7 @@ function Xa(n) {
|
|
|
5764
5764
|
case ht.DraggableRect:
|
|
5765
5765
|
return r;
|
|
5766
5766
|
}
|
|
5767
|
-
}, [t, r, c]), w = M(null),
|
|
5767
|
+
}, [t, r, c]), w = M(null), S = U(() => {
|
|
5768
5768
|
const y = w.current;
|
|
5769
5769
|
if (!y)
|
|
5770
5770
|
return;
|
|
@@ -5790,7 +5790,7 @@ function Xa(n) {
|
|
|
5790
5790
|
for (const _ of ["x", "y"])
|
|
5791
5791
|
g[_][z[_]] || (A[_] = 0, z[_] = 0);
|
|
5792
5792
|
if (A.x > 0 || A.y > 0) {
|
|
5793
|
-
b(), w.current = y, C(
|
|
5793
|
+
b(), w.current = y, C(S, o), x.current = A, D.current = z;
|
|
5794
5794
|
return;
|
|
5795
5795
|
}
|
|
5796
5796
|
}
|
|
@@ -5805,7 +5805,7 @@ function Xa(n) {
|
|
|
5805
5805
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5806
5806
|
[
|
|
5807
5807
|
e,
|
|
5808
|
-
|
|
5808
|
+
S,
|
|
5809
5809
|
i,
|
|
5810
5810
|
b,
|
|
5811
5811
|
s,
|
|
@@ -5909,7 +5909,7 @@ function Qa(n, e) {
|
|
|
5909
5909
|
N.set(w.id, w.rect.current);
|
|
5910
5910
|
continue;
|
|
5911
5911
|
}
|
|
5912
|
-
const
|
|
5912
|
+
const S = w.node.current, v = S ? new Li(c(S), S) : null;
|
|
5913
5913
|
w.rect.current = v, v && N.set(w.id, v);
|
|
5914
5914
|
}
|
|
5915
5915
|
return N;
|
|
@@ -6490,12 +6490,12 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6490
6490
|
autoScroll: c = !0,
|
|
6491
6491
|
children: d,
|
|
6492
6492
|
sensors: l = dl,
|
|
6493
|
-
collisionDetection: u =
|
|
6493
|
+
collisionDetection: u = Sa,
|
|
6494
6494
|
measuring: h,
|
|
6495
6495
|
modifiers: g,
|
|
6496
6496
|
...C
|
|
6497
6497
|
} = e;
|
|
6498
|
-
const b = As(gl, void 0, fl), [x, D] = b, [N, w] = pa(), [
|
|
6498
|
+
const b = As(gl, void 0, fl), [x, D] = b, [N, w] = pa(), [S, v] = F(Ie.Uninitialized), y = S === Ie.Initialized, {
|
|
6499
6499
|
draggable: {
|
|
6500
6500
|
active: m,
|
|
6501
6501
|
nodes: E,
|
|
@@ -6504,7 +6504,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6504
6504
|
droppable: {
|
|
6505
6505
|
containers: A
|
|
6506
6506
|
}
|
|
6507
|
-
} = x, _ = m != null ? E.get(m) : null,
|
|
6507
|
+
} = x, _ = m != null ? E.get(m) : null, R = M({
|
|
6508
6508
|
initial: null,
|
|
6509
6509
|
translated: null
|
|
6510
6510
|
}), O = H(() => {
|
|
@@ -6513,17 +6513,17 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6513
6513
|
id: m,
|
|
6514
6514
|
// It's possible for the active node to unmount while dragging
|
|
6515
6515
|
data: (q = _?.data) != null ? q : ul,
|
|
6516
|
-
rect:
|
|
6516
|
+
rect: R
|
|
6517
6517
|
} : null;
|
|
6518
|
-
}, [m, _]), B = M(null), [Q, ee] = F(null), [V, ue] = F(null), j = yt(C, Object.values(C)), he = _t("DndDescribedBy", o),
|
|
6518
|
+
}, [m, _]), B = M(null), [Q, ee] = F(null), [V, ue] = F(null), j = yt(C, Object.values(C)), he = _t("DndDescribedBy", o), St = H(() => A.getEnabled(), [A]), te = ml(h), {
|
|
6519
6519
|
droppableRects: Ee,
|
|
6520
6520
|
measureDroppableContainers: Be,
|
|
6521
6521
|
measuringScheduled: nt
|
|
6522
|
-
} = Qa(
|
|
6522
|
+
} = Qa(St, {
|
|
6523
6523
|
dragging: y,
|
|
6524
6524
|
dependencies: [z.x, z.y],
|
|
6525
6525
|
config: te.droppable
|
|
6526
|
-
}), ae = Ja(E, m),
|
|
6526
|
+
}), ae = Ja(E, m), Rt = H(() => V ? Ut(V) : null, [V]), Oe = Xr(), De = el(ae, te.draggable.measure);
|
|
6527
6527
|
vl({
|
|
6528
6528
|
activeNode: m != null ? E.get(m) : null,
|
|
6529
6529
|
config: Oe.layoutShiftCompensation,
|
|
@@ -6544,9 +6544,9 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6544
6544
|
over: null,
|
|
6545
6545
|
scrollableAncestors: [],
|
|
6546
6546
|
scrollAdjustedTranslate: null
|
|
6547
|
-
}), $e = A.getNodeFor((t = ye.current.over) == null ? void 0 : t.id),
|
|
6547
|
+
}), $e = A.getNodeFor((t = ye.current.over) == null ? void 0 : t.id), Se = cl({
|
|
6548
6548
|
measure: te.dragOverlay.measure
|
|
6549
|
-
}), je = (i =
|
|
6549
|
+
}), je = (i = Se.nodeRef.current) != null ? i : ae, Ue = y ? (r = Se.rect) != null ? r : $ : null, $i = !!(Se.nodeRef.current && Se.rect), ji = nl($i ? null : $), li = wr(je ? Z(je) : null), ke = rl(y ? $e ?? ae : null), Nt = ll(ke), At = Dr(g, {
|
|
6550
6550
|
transform: {
|
|
6551
6551
|
x: z.x - ji.x,
|
|
6552
6552
|
y: z.y - ji.y,
|
|
@@ -6559,17 +6559,17 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6559
6559
|
containerNodeRect: rt,
|
|
6560
6560
|
draggingNodeRect: Ue,
|
|
6561
6561
|
over: ye.current.over,
|
|
6562
|
-
overlayNodeRect:
|
|
6562
|
+
overlayNodeRect: Se.rect,
|
|
6563
6563
|
scrollableAncestors: ke,
|
|
6564
6564
|
scrollableAncestorRects: Nt,
|
|
6565
6565
|
windowRect: li
|
|
6566
|
-
}), Ui =
|
|
6566
|
+
}), Ui = Rt ? Je(Rt, z) : null, Vi = sl(ke), Wr = vn(Vi), Gr = vn(Vi, [$]), Ve = Je(At, Wr), Ke = Ue ? Aa(Ue, At) : null, st = O && Ke ? u({
|
|
6567
6567
|
active: O,
|
|
6568
6568
|
collisionRect: Ke,
|
|
6569
6569
|
droppableRects: Ee,
|
|
6570
|
-
droppableContainers:
|
|
6570
|
+
droppableContainers: St,
|
|
6571
6571
|
pointerCoordinates: Ui
|
|
6572
|
-
}) : null, Ki = dr(st, "id"), [Te, Xi] = F(null), $r = $i ? At : Je(At, Gr), jr =
|
|
6572
|
+
}) : null, Ki = dr(st, "id"), [Te, Xi] = F(null), $r = $i ? At : Je(At, Gr), jr = Ra($r, (s = Te?.rect) != null ? s : null, $), ci = M(null), Yi = U(
|
|
6573
6573
|
(q, ie) => {
|
|
6574
6574
|
let {
|
|
6575
6575
|
sensor: ne,
|
|
@@ -6593,15 +6593,15 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6593
6593
|
return;
|
|
6594
6594
|
const {
|
|
6595
6595
|
onDragAbort: xe
|
|
6596
|
-
} = j.current,
|
|
6596
|
+
} = j.current, Re = {
|
|
6597
6597
|
id: Y
|
|
6598
6598
|
};
|
|
6599
|
-
xe?.(
|
|
6599
|
+
xe?.(Re), N({
|
|
6600
6600
|
type: "onDragAbort",
|
|
6601
|
-
event:
|
|
6601
|
+
event: Re
|
|
6602
6602
|
});
|
|
6603
6603
|
},
|
|
6604
|
-
onPending(Y, Pe, xe,
|
|
6604
|
+
onPending(Y, Pe, xe, Re) {
|
|
6605
6605
|
if (!E.get(Y))
|
|
6606
6606
|
return;
|
|
6607
6607
|
const {
|
|
@@ -6610,7 +6610,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6610
6610
|
id: Y,
|
|
6611
6611
|
constraint: Pe,
|
|
6612
6612
|
initialCoordinates: xe,
|
|
6613
|
-
offset:
|
|
6613
|
+
offset: Re
|
|
6614
6614
|
};
|
|
6615
6615
|
at?.(Me), N({
|
|
6616
6616
|
type: "onDragPending",
|
|
@@ -6625,17 +6625,17 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6625
6625
|
if (!xe)
|
|
6626
6626
|
return;
|
|
6627
6627
|
const {
|
|
6628
|
-
onDragStart:
|
|
6628
|
+
onDragStart: Re
|
|
6629
6629
|
} = j.current, ot = {
|
|
6630
6630
|
activatorEvent: re,
|
|
6631
6631
|
active: {
|
|
6632
6632
|
id: Pe,
|
|
6633
6633
|
data: xe.data,
|
|
6634
|
-
rect:
|
|
6634
|
+
rect: R
|
|
6635
6635
|
}
|
|
6636
6636
|
};
|
|
6637
6637
|
Ot(() => {
|
|
6638
|
-
|
|
6638
|
+
Re?.(ot), v(Ie.Initializing), D({
|
|
6639
6639
|
type: K.DragStart,
|
|
6640
6640
|
initialCoordinates: Y,
|
|
6641
6641
|
active: Pe
|
|
@@ -6659,7 +6659,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6659
6659
|
return async function() {
|
|
6660
6660
|
const {
|
|
6661
6661
|
active: xe,
|
|
6662
|
-
collisions:
|
|
6662
|
+
collisions: Re,
|
|
6663
6663
|
over: ot,
|
|
6664
6664
|
scrollAdjustedTranslate: at
|
|
6665
6665
|
} = ye.current;
|
|
@@ -6671,7 +6671,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6671
6671
|
Me = {
|
|
6672
6672
|
activatorEvent: re,
|
|
6673
6673
|
active: xe,
|
|
6674
|
-
collisions:
|
|
6674
|
+
collisions: Re,
|
|
6675
6675
|
delta: at,
|
|
6676
6676
|
over: ot
|
|
6677
6677
|
}, Y === K.DragEnd && typeof lt == "function" && await Promise.resolve(lt(Me)) && (Y = K.DragCancel);
|
|
@@ -6711,8 +6711,8 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6711
6711
|
}, B.current = ze, Yi(ne, ie));
|
|
6712
6712
|
}, [E, Yi]), qi = Za(l, Ur);
|
|
6713
6713
|
ol(l), pe(() => {
|
|
6714
|
-
$ &&
|
|
6715
|
-
}, [$,
|
|
6714
|
+
$ && S === Ie.Initializing && v(Ie.Initialized);
|
|
6715
|
+
}, [$, S]), I(
|
|
6716
6716
|
() => {
|
|
6717
6717
|
const {
|
|
6718
6718
|
onDragMove: q
|
|
@@ -6795,7 +6795,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6795
6795
|
over: Te,
|
|
6796
6796
|
scrollableAncestors: ke,
|
|
6797
6797
|
scrollAdjustedTranslate: Ve
|
|
6798
|
-
},
|
|
6798
|
+
}, R.current = {
|
|
6799
6799
|
initial: Ue,
|
|
6800
6800
|
translated: Ke
|
|
6801
6801
|
};
|
|
@@ -6814,7 +6814,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6814
6814
|
activatorEvent: V,
|
|
6815
6815
|
collisions: st,
|
|
6816
6816
|
containerNodeRect: rt,
|
|
6817
|
-
dragOverlay:
|
|
6817
|
+
dragOverlay: Se,
|
|
6818
6818
|
draggableNodes: E,
|
|
6819
6819
|
droppableContainers: A,
|
|
6820
6820
|
droppableRects: Ee,
|
|
@@ -6825,7 +6825,7 @@ const yl = /* @__PURE__ */ Ns(function(e) {
|
|
|
6825
6825
|
measuringConfiguration: te,
|
|
6826
6826
|
measuringScheduled: nt,
|
|
6827
6827
|
windowRect: li
|
|
6828
|
-
}), [O, ae, $, V, st, rt,
|
|
6828
|
+
}), [O, ae, $, V, st, rt, Se, E, A, Ee, Te, Be, ke, Nt, te, nt, li]), Kr = H(() => ({
|
|
6829
6829
|
activatorEvent: V,
|
|
6830
6830
|
activators: qi,
|
|
6831
6831
|
active: O,
|
|
@@ -6881,13 +6881,13 @@ function wl(n) {
|
|
|
6881
6881
|
role: g = bn,
|
|
6882
6882
|
roleDescription: C = "draggable",
|
|
6883
6883
|
tabIndex: b = 0
|
|
6884
|
-
} = r ?? {}, x = c?.id === e, D = _e(x ? oi : bl), [N, w] = $t(), [
|
|
6884
|
+
} = r ?? {}, x = c?.id === e, D = _e(x ? oi : bl), [N, w] = $t(), [S, v] = $t(), y = al(o, e), m = yt(t);
|
|
6885
6885
|
pe(
|
|
6886
6886
|
() => (u.set(e, {
|
|
6887
6887
|
id: e,
|
|
6888
6888
|
key: s,
|
|
6889
6889
|
node: N,
|
|
6890
|
-
activatorNode:
|
|
6890
|
+
activatorNode: S,
|
|
6891
6891
|
data: m
|
|
6892
6892
|
}), () => {
|
|
6893
6893
|
const z = u.get(e);
|
|
@@ -6918,7 +6918,7 @@ function wl(n) {
|
|
|
6918
6918
|
transform: D
|
|
6919
6919
|
};
|
|
6920
6920
|
}
|
|
6921
|
-
function
|
|
6921
|
+
function Sr() {
|
|
6922
6922
|
return _e(Er);
|
|
6923
6923
|
}
|
|
6924
6924
|
const Cl = "Droppable", _l = {
|
|
@@ -6960,9 +6960,9 @@ function El(n) {
|
|
|
6960
6960
|
), w = si({
|
|
6961
6961
|
callback: N,
|
|
6962
6962
|
disabled: C || !o
|
|
6963
|
-
}),
|
|
6963
|
+
}), S = U((E, z) => {
|
|
6964
6964
|
w && (z && (w.unobserve(z), u.current = !1), E && w.observe(E));
|
|
6965
|
-
}, [w]), [v, y] = $t(
|
|
6965
|
+
}, [w]), [v, y] = $t(S), m = yt(e);
|
|
6966
6966
|
return I(() => {
|
|
6967
6967
|
!w || !v.current || (w.disconnect(), u.current = !1, w.observe(v.current));
|
|
6968
6968
|
}, [v, w]), I(
|
|
@@ -7020,20 +7020,20 @@ function Dl(n) {
|
|
|
7020
7020
|
ref: o
|
|
7021
7021
|
}) : null);
|
|
7022
7022
|
}
|
|
7023
|
-
const
|
|
7023
|
+
const Sl = {
|
|
7024
7024
|
x: 0,
|
|
7025
7025
|
y: 0,
|
|
7026
7026
|
scaleX: 1,
|
|
7027
7027
|
scaleY: 1
|
|
7028
7028
|
};
|
|
7029
|
-
function
|
|
7029
|
+
function Rl(n) {
|
|
7030
7030
|
let {
|
|
7031
7031
|
children: e
|
|
7032
7032
|
} = n;
|
|
7033
7033
|
return L.createElement(Et.Provider, {
|
|
7034
7034
|
value: _r
|
|
7035
7035
|
}, L.createElement(oi.Provider, {
|
|
7036
|
-
value:
|
|
7036
|
+
value: Sl
|
|
7037
7037
|
}, e));
|
|
7038
7038
|
}
|
|
7039
7039
|
const Nl = {
|
|
@@ -7246,9 +7246,9 @@ const Il = /* @__PURE__ */ L.memo((n) => {
|
|
|
7246
7246
|
over: D,
|
|
7247
7247
|
measuringConfiguration: N,
|
|
7248
7248
|
scrollableAncestors: w,
|
|
7249
|
-
scrollableAncestorRects:
|
|
7249
|
+
scrollableAncestorRects: S,
|
|
7250
7250
|
windowRect: v
|
|
7251
|
-
} =
|
|
7251
|
+
} = Sr(), y = _e(oi), m = Ll(u?.id), E = Dr(o, {
|
|
7252
7252
|
activatorEvent: l,
|
|
7253
7253
|
active: u,
|
|
7254
7254
|
activeNodeRect: h,
|
|
@@ -7257,7 +7257,7 @@ const Il = /* @__PURE__ */ L.memo((n) => {
|
|
|
7257
7257
|
over: D,
|
|
7258
7258
|
overlayNodeRect: x.rect,
|
|
7259
7259
|
scrollableAncestors: w,
|
|
7260
|
-
scrollableAncestorRects:
|
|
7260
|
+
scrollableAncestorRects: S,
|
|
7261
7261
|
transform: y,
|
|
7262
7262
|
windowRect: v
|
|
7263
7263
|
}), z = Bi(h), A = Pl({
|
|
@@ -7266,7 +7266,7 @@ const Il = /* @__PURE__ */ L.memo((n) => {
|
|
|
7266
7266
|
droppableContainers: b,
|
|
7267
7267
|
measuringConfiguration: N
|
|
7268
7268
|
}), _ = z ? x.setRef : void 0;
|
|
7269
|
-
return L.createElement(
|
|
7269
|
+
return L.createElement(Rl, null, L.createElement(Dl, {
|
|
7270
7270
|
animation: A
|
|
7271
7271
|
}, u && m ? L.createElement(Ol, {
|
|
7272
7272
|
key: m,
|
|
@@ -7314,7 +7314,7 @@ function Bl(n) {
|
|
|
7314
7314
|
droppable: n
|
|
7315
7315
|
} : n;
|
|
7316
7316
|
}
|
|
7317
|
-
const
|
|
7317
|
+
const Rr = (n) => {
|
|
7318
7318
|
let {
|
|
7319
7319
|
rects: e,
|
|
7320
7320
|
activeIndex: t,
|
|
@@ -7336,7 +7336,7 @@ const Sr = (n) => {
|
|
|
7336
7336
|
overIndex: -1,
|
|
7337
7337
|
useDragOverlay: !1,
|
|
7338
7338
|
sortedRects: [],
|
|
7339
|
-
strategy:
|
|
7339
|
+
strategy: Rr,
|
|
7340
7340
|
disabled: {
|
|
7341
7341
|
draggable: !1,
|
|
7342
7342
|
droppable: !1
|
|
@@ -7347,7 +7347,7 @@ function Wl(n) {
|
|
|
7347
7347
|
children: e,
|
|
7348
7348
|
id: t,
|
|
7349
7349
|
items: i,
|
|
7350
|
-
strategy: r =
|
|
7350
|
+
strategy: r = Rr,
|
|
7351
7351
|
disabled: s = !1
|
|
7352
7352
|
} = n;
|
|
7353
7353
|
const {
|
|
@@ -7356,7 +7356,7 @@ function Wl(n) {
|
|
|
7356
7356
|
droppableRects: c,
|
|
7357
7357
|
over: d,
|
|
7358
7358
|
measureDroppableContainers: l
|
|
7359
|
-
} =
|
|
7359
|
+
} = Sr(), u = _t(Nr, t), h = a.rect !== null, g = H(() => i.map((y) => typeof y == "object" && "id" in y ? y.id : y), [i]), C = o != null, b = o ? g.indexOf(o.id) : -1, x = d ? g.indexOf(d.id) : -1, D = M(g), N = !Fl(g, D.current), w = x !== -1 && b === -1 || N, S = Bl(s);
|
|
7360
7360
|
pe(() => {
|
|
7361
7361
|
N && C && l(g);
|
|
7362
7362
|
}, [N, g, C, l]), I(() => {
|
|
@@ -7366,7 +7366,7 @@ function Wl(n) {
|
|
|
7366
7366
|
() => ({
|
|
7367
7367
|
activeIndex: b,
|
|
7368
7368
|
containerId: u,
|
|
7369
|
-
disabled:
|
|
7369
|
+
disabled: S,
|
|
7370
7370
|
disableTransforms: w,
|
|
7371
7371
|
items: g,
|
|
7372
7372
|
overIndex: x,
|
|
@@ -7375,7 +7375,7 @@ function Wl(n) {
|
|
|
7375
7375
|
strategy: r
|
|
7376
7376
|
}),
|
|
7377
7377
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7378
|
-
[b, u,
|
|
7378
|
+
[b, u, S.draggable, S.droppable, w, g, x, c, h, r]
|
|
7379
7379
|
);
|
|
7380
7380
|
return L.createElement(Ar.Provider, {
|
|
7381
7381
|
value: v
|
|
@@ -7462,14 +7462,14 @@ function Xl(n) {
|
|
|
7462
7462
|
overIndex: x,
|
|
7463
7463
|
useDragOverlay: D,
|
|
7464
7464
|
strategy: N
|
|
7465
|
-
} = _e(Ar), w = Yl(i, g),
|
|
7465
|
+
} = _e(Ar), w = Yl(i, g), S = l.indexOf(o), v = H(() => ({
|
|
7466
7466
|
sortable: {
|
|
7467
7467
|
containerId: u,
|
|
7468
|
-
index:
|
|
7468
|
+
index: S,
|
|
7469
7469
|
items: l
|
|
7470
7470
|
},
|
|
7471
7471
|
...r
|
|
7472
|
-
}), [u, r,
|
|
7472
|
+
}), [u, r, S, l]), y = H(() => l.slice(l.indexOf(o)), [l, o]), {
|
|
7473
7473
|
rect: m,
|
|
7474
7474
|
node: E,
|
|
7475
7475
|
isOver: z,
|
|
@@ -7484,7 +7484,7 @@ function Xl(n) {
|
|
|
7484
7484
|
}
|
|
7485
7485
|
}), {
|
|
7486
7486
|
active: _,
|
|
7487
|
-
activatorEvent:
|
|
7487
|
+
activatorEvent: R,
|
|
7488
7488
|
activeNodeRect: O,
|
|
7489
7489
|
attributes: B,
|
|
7490
7490
|
setNodeRef: Q,
|
|
@@ -7501,18 +7501,18 @@ function Xl(n) {
|
|
|
7501
7501
|
...t
|
|
7502
7502
|
},
|
|
7503
7503
|
disabled: w.draggable
|
|
7504
|
-
}),
|
|
7504
|
+
}), St = sa(A, Q), te = !!_, Ee = te && !C && zt(h) && zt(x), Be = !D && V, nt = Be && Ee ? he : null, Rt = Ee ? nt ?? (a ?? N)({
|
|
7505
7505
|
rects: b,
|
|
7506
7506
|
activeNodeRect: O,
|
|
7507
7507
|
activeIndex: h,
|
|
7508
7508
|
overIndex: x,
|
|
7509
|
-
index:
|
|
7509
|
+
index: S
|
|
7510
7510
|
}) : null, Oe = zt(h) && zt(x) ? s({
|
|
7511
7511
|
id: o,
|
|
7512
7512
|
items: l,
|
|
7513
7513
|
activeIndex: h,
|
|
7514
7514
|
overIndex: x
|
|
7515
|
-
}) :
|
|
7515
|
+
}) : S, De = _?.id, $ = M({
|
|
7516
7516
|
activeId: De,
|
|
7517
7517
|
items: l,
|
|
7518
7518
|
newIndex: Oe,
|
|
@@ -7523,7 +7523,7 @@ function Xl(n) {
|
|
|
7523
7523
|
isDragging: V,
|
|
7524
7524
|
isSorting: te,
|
|
7525
7525
|
id: o,
|
|
7526
|
-
index:
|
|
7526
|
+
index: S,
|
|
7527
7527
|
items: l,
|
|
7528
7528
|
newIndex: $.current.newIndex,
|
|
7529
7529
|
previousItems: $.current.items,
|
|
@@ -7532,7 +7532,7 @@ function Xl(n) {
|
|
|
7532
7532
|
wasDragging: $.current.activeId != null
|
|
7533
7533
|
}), $e = Kl({
|
|
7534
7534
|
disabled: !ye,
|
|
7535
|
-
index:
|
|
7535
|
+
index: S,
|
|
7536
7536
|
node: E,
|
|
7537
7537
|
rect: m
|
|
7538
7538
|
});
|
|
@@ -7555,7 +7555,7 @@ function Xl(n) {
|
|
|
7555
7555
|
attributes: B,
|
|
7556
7556
|
data: v,
|
|
7557
7557
|
rect: m,
|
|
7558
|
-
index:
|
|
7558
|
+
index: S,
|
|
7559
7559
|
newIndex: Oe,
|
|
7560
7560
|
items: l,
|
|
7561
7561
|
isOver: z,
|
|
@@ -7565,21 +7565,21 @@ function Xl(n) {
|
|
|
7565
7565
|
node: E,
|
|
7566
7566
|
overIndex: x,
|
|
7567
7567
|
over: ue,
|
|
7568
|
-
setNodeRef:
|
|
7568
|
+
setNodeRef: St,
|
|
7569
7569
|
setActivatorNodeRef: j,
|
|
7570
7570
|
setDroppableNodeRef: A,
|
|
7571
7571
|
setDraggableNodeRef: Q,
|
|
7572
|
-
transform: $e ??
|
|
7573
|
-
transition:
|
|
7572
|
+
transform: $e ?? Rt,
|
|
7573
|
+
transition: Se()
|
|
7574
7574
|
};
|
|
7575
|
-
function
|
|
7575
|
+
function Se() {
|
|
7576
7576
|
if (
|
|
7577
7577
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
7578
7578
|
$e || // Or to prevent items jumping to back to their "new" position when items change
|
|
7579
|
-
rt && $.current.newIndex ===
|
|
7579
|
+
rt && $.current.newIndex === S
|
|
7580
7580
|
)
|
|
7581
7581
|
return Ul;
|
|
7582
|
-
if (!(Be && !ni(
|
|
7582
|
+
if (!(Be && !ni(R) || !d) && (te || ye))
|
|
7583
7583
|
return Fe.Transition.toString({
|
|
7584
7584
|
...d,
|
|
7585
7585
|
property: Or
|
|
@@ -7653,11 +7653,11 @@ const ql = [W.Down, W.Right, W.Up, W.Left], Jl = (n, e) => {
|
|
|
7653
7653
|
} : {
|
|
7654
7654
|
x: N ? i.width - g.width : 0,
|
|
7655
7655
|
y: N ? i.height - g.height : 0
|
|
7656
|
-
},
|
|
7656
|
+
}, S = {
|
|
7657
7657
|
x: g.left,
|
|
7658
7658
|
y: g.top
|
|
7659
7659
|
};
|
|
7660
|
-
return w.x && w.y ?
|
|
7660
|
+
return w.x && w.y ? S : bt(S, w);
|
|
7661
7661
|
}
|
|
7662
7662
|
}
|
|
7663
7663
|
}
|
|
@@ -7765,7 +7765,7 @@ const Ql = oe(function({ children: e, aside: t, header: i, variant: r = "main-as
|
|
|
7765
7765
|
}, No), rd = ve({
|
|
7766
7766
|
name: "HomeLayout",
|
|
7767
7767
|
type: "layout"
|
|
7768
|
-
},
|
|
7768
|
+
}, So);
|
|
7769
7769
|
function Ze(n) {
|
|
7770
7770
|
"@babel/helpers - typeof";
|
|
7771
7771
|
return Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -8074,11 +8074,11 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8074
8074
|
var g = h.t, C = s.map(function(b, x) {
|
|
8075
8075
|
var D = u && u[x];
|
|
8076
8076
|
if (D) {
|
|
8077
|
-
var N = kt(D.cx, b.cx), w = kt(D.cy, b.cy),
|
|
8077
|
+
var N = kt(D.cx, b.cx), w = kt(D.cy, b.cy), S = kt(D.size, b.size);
|
|
8078
8078
|
return ce(ce({}, b), {}, {
|
|
8079
8079
|
cx: N(g),
|
|
8080
8080
|
cy: w(g),
|
|
8081
|
-
size:
|
|
8081
|
+
size: S(g)
|
|
8082
8082
|
});
|
|
8083
8083
|
}
|
|
8084
8084
|
var v = kt(0, b.size);
|
|
@@ -8133,8 +8133,8 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8133
8133
|
};
|
|
8134
8134
|
});
|
|
8135
8135
|
else if (o === "fitting") {
|
|
8136
|
-
var h = Hs(r), g = h.xmin, C = h.xmax, b = h.a, x = h.b, D = function(
|
|
8137
|
-
return b *
|
|
8136
|
+
var h = Hs(r), g = h.xmin, C = h.xmax, b = h.a, x = h.b, D = function(S) {
|
|
8137
|
+
return b * S + x;
|
|
8138
8138
|
};
|
|
8139
8139
|
l = [{
|
|
8140
8140
|
x: g,
|
|
@@ -8163,10 +8163,10 @@ var Dt = /* @__PURE__ */ (function(n) {
|
|
|
8163
8163
|
var i = this.props, r = i.hide, s = i.points, o = i.line, a = i.className, c = i.xAxis, d = i.yAxis, l = i.left, u = i.top, h = i.width, g = i.height, C = i.id, b = i.isAnimationActive;
|
|
8164
8164
|
if (r || !s || !s.length)
|
|
8165
8165
|
return null;
|
|
8166
|
-
var x = this.state.isAnimationFinished, D = ts("recharts-scatter", a), N = c && c.allowDataOverflow, w = d && d.allowDataOverflow,
|
|
8166
|
+
var x = this.state.isAnimationFinished, D = ts("recharts-scatter", a), N = c && c.allowDataOverflow, w = d && d.allowDataOverflow, S = N || w, v = Ye(C) ? this.id : C;
|
|
8167
8167
|
return /* @__PURE__ */ L.createElement(ct, {
|
|
8168
8168
|
className: D,
|
|
8169
|
-
clipPath:
|
|
8169
|
+
clipPath: S ? "url(#clipPath-".concat(v, ")") : null
|
|
8170
8170
|
}, N || w ? /* @__PURE__ */ L.createElement("defs", null, /* @__PURE__ */ L.createElement("clipPath", {
|
|
8171
8171
|
id: "clipPath-".concat(v)
|
|
8172
8172
|
}, /* @__PURE__ */ L.createElement("rect", {
|
|
@@ -8208,7 +8208,7 @@ He(Dt, "defaultProps", {
|
|
|
8208
8208
|
animationEasing: "linear"
|
|
8209
8209
|
});
|
|
8210
8210
|
He(Dt, "getComposedData", function(n) {
|
|
8211
|
-
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, c = n.offset, d = r.props.tooltipType, l = Gn(r.props.children, $s), u = Ye(e.dataKey) ? r.props.dataKey : e.dataKey, h = Ye(t.dataKey) ? r.props.dataKey : t.dataKey, g = i && i.dataKey, C = i ? i.range : ai.defaultProps.range, b = C && C[0], x = e.scale.bandwidth ? e.scale.bandwidth() : 0, D = t.scale.bandwidth ? t.scale.bandwidth() : 0, N = s.map(function(w,
|
|
8211
|
+
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, c = n.offset, d = r.props.tooltipType, l = Gn(r.props.children, $s), u = Ye(e.dataKey) ? r.props.dataKey : e.dataKey, h = Ye(t.dataKey) ? r.props.dataKey : t.dataKey, g = i && i.dataKey, C = i ? i.range : ai.defaultProps.range, b = C && C[0], x = e.scale.bandwidth ? e.scale.bandwidth() : 0, D = t.scale.bandwidth ? t.scale.bandwidth() : 0, N = s.map(function(w, S) {
|
|
8212
8212
|
var v = Pt(w, u), y = Pt(w, h), m = !Ye(g) && Pt(w, g) || "-", E = [{
|
|
8213
8213
|
name: Ye(e.dataKey) ? r.props.name : e.name || e.dataKey,
|
|
8214
8214
|
unit: e.unit || "",
|
|
@@ -8237,26 +8237,26 @@ He(Dt, "getComposedData", function(n) {
|
|
|
8237
8237
|
ticks: o,
|
|
8238
8238
|
bandSize: x,
|
|
8239
8239
|
entry: w,
|
|
8240
|
-
index:
|
|
8240
|
+
index: S,
|
|
8241
8241
|
dataKey: u
|
|
8242
8242
|
}), A = en({
|
|
8243
8243
|
axis: t,
|
|
8244
8244
|
ticks: a,
|
|
8245
8245
|
bandSize: D,
|
|
8246
8246
|
entry: w,
|
|
8247
|
-
index:
|
|
8247
|
+
index: S,
|
|
8248
8248
|
dataKey: h
|
|
8249
|
-
}), _ = m !== "-" ? i.scale(m) : b,
|
|
8249
|
+
}), _ = m !== "-" ? i.scale(m) : b, R = Math.sqrt(Math.max(_, 0) / Math.PI);
|
|
8250
8250
|
return ce(ce({}, w), {}, {
|
|
8251
8251
|
cx: z,
|
|
8252
8252
|
cy: A,
|
|
8253
|
-
x: z -
|
|
8254
|
-
y: A -
|
|
8253
|
+
x: z - R,
|
|
8254
|
+
y: A - R,
|
|
8255
8255
|
xAxis: e,
|
|
8256
8256
|
yAxis: t,
|
|
8257
8257
|
zAxis: i,
|
|
8258
|
-
width: 2 *
|
|
8259
|
-
height: 2 *
|
|
8258
|
+
width: 2 * R,
|
|
8259
|
+
height: 2 * R,
|
|
8260
8260
|
size: _,
|
|
8261
8261
|
node: {
|
|
8262
8262
|
x: v,
|
|
@@ -8269,7 +8269,7 @@ He(Dt, "getComposedData", function(n) {
|
|
|
8269
8269
|
y: A
|
|
8270
8270
|
},
|
|
8271
8271
|
payload: w
|
|
8272
|
-
}, l && l[
|
|
8272
|
+
}, l && l[S] && l[S].props);
|
|
8273
8273
|
});
|
|
8274
8274
|
return ce({
|
|
8275
8275
|
points: N
|
|
@@ -8317,7 +8317,7 @@ const xc = (n) => {
|
|
|
8317
8317
|
}, wc = ({ dataConfig: n, data: e, xAxis: t, yAxis: i = {
|
|
8318
8318
|
hide: !0
|
|
8319
8319
|
}, label: r = !1, hideTooltip: s = !1, hideGrid: o = !1, aspect: a, legend: c, showValueUnderLabel: d = !1, bar: l, line: u, scatter: h, onClick: g }, C) => {
|
|
8320
|
-
const b = Ks(e), x = l?.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], D = u?.categories ? Array.isArray(u.categories) ? u.categories : [u.categories] : [], N = h?.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], w = [...x, ...D, ...N],
|
|
8320
|
+
const b = Ks(e), x = l?.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], D = u?.categories ? Array.isArray(u.categories) ? u.categories : [u.categories] : [], N = h?.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], w = [...x, ...D, ...N], S = Math.max(...b.flatMap((m) => w.map((E) => Xs(i?.tickFormatter ? i.tickFormatter(`${m[E]}`) : `${m[E]}`)))), v = [l, u, h].filter((m) => m?.axisPosition === "left"), y = [l, u, h].filter((m) => m?.axisPosition === "right");
|
|
8321
8321
|
return f(Ys, {
|
|
8322
8322
|
config: n,
|
|
8323
8323
|
ref: C,
|
|
@@ -8353,7 +8353,7 @@ const xc = (n) => {
|
|
|
8353
8353
|
}), v.length > 0 && f(xi, {
|
|
8354
8354
|
...tn(i),
|
|
8355
8355
|
tick: !0,
|
|
8356
|
-
width: i.width ??
|
|
8356
|
+
width: i.width ?? S + 20 + (y.length > 0 && v[0]?.axisLabel ? 20 : 0),
|
|
8357
8357
|
hide: i.hide || v.some((m) => m?.hideAxis),
|
|
8358
8358
|
label: v[0]?.axisLabel ? {
|
|
8359
8359
|
value: v[0].axisLabel,
|
|
@@ -8365,7 +8365,7 @@ const xc = (n) => {
|
|
|
8365
8365
|
yAxisId: "right",
|
|
8366
8366
|
orientation: "right",
|
|
8367
8367
|
tick: !0,
|
|
8368
|
-
width: i.width ??
|
|
8368
|
+
width: i.width ?? S + 20 + (v.length > 0 && y[0]?.axisLabel ? 20 : 0),
|
|
8369
8369
|
hide: i.hide || y.some((m) => m?.hideAxis),
|
|
8370
8370
|
label: y[0]?.axisLabel ? {
|
|
8371
8371
|
value: y[0].axisLabel,
|
|
@@ -8376,7 +8376,7 @@ const xc = (n) => {
|
|
|
8376
8376
|
...to(t),
|
|
8377
8377
|
hide: t?.hide,
|
|
8378
8378
|
tick: d ? (m) => {
|
|
8379
|
-
const { x: E, y: z, payload: A } = m, _ = e.find((B) => B.label === A.value)?.values || "",
|
|
8379
|
+
const { x: E, y: z, payload: A } = m, _ = e.find((B) => B.label === A.value)?.values || "", R = Object.keys(_).length === 1 ? Object.values(_)?.[0] : void 0, O = R !== void 0 && i.tickFormatter ? i.tickFormatter(`${R}`) : R.toLocaleString();
|
|
8380
8380
|
return T("g", {
|
|
8381
8381
|
transform: `translate(${E},${z})`,
|
|
8382
8382
|
children: [f("text", {
|
|
@@ -8386,7 +8386,7 @@ const xc = (n) => {
|
|
|
8386
8386
|
textAnchor: "middle",
|
|
8387
8387
|
className: "text-sm font-medium !text-f1-foreground-secondary",
|
|
8388
8388
|
children: A.value
|
|
8389
|
-
}), !!
|
|
8389
|
+
}), !!R && f("text", {
|
|
8390
8390
|
x: 0,
|
|
8391
8391
|
y: 0,
|
|
8392
8392
|
dy: 28,
|
|
@@ -8535,7 +8535,7 @@ const xc = (n) => {
|
|
|
8535
8535
|
})]
|
|
8536
8536
|
})]
|
|
8537
8537
|
});
|
|
8538
|
-
},
|
|
8538
|
+
}, Sc = () => T("div", {
|
|
8539
8539
|
className: "relative flex h-full w-full cursor-progress flex-col gap-2",
|
|
8540
8540
|
children: [f(we, {
|
|
8541
8541
|
className: "h-3 w-full max-w-16 rounded-md"
|
|
@@ -8549,7 +8549,7 @@ const xc = (n) => {
|
|
|
8549
8549
|
})]
|
|
8550
8550
|
});
|
|
8551
8551
|
Ir.displayName = "F0BigNumber";
|
|
8552
|
-
const
|
|
8552
|
+
const Rc = Sn(Ir, Sc), fd = fe("F0BigNumber", Rc), gd = is.filter(
|
|
8553
8553
|
(n) => n !== "ai"
|
|
8554
8554
|
), pd = An, md = ["default", "outline", "neutral"], vd = An, yd = ["sm", "md", "lg"], bd = ["compact", "expanded"], xd = ns, wd = [
|
|
8555
8555
|
"viridian",
|
|
@@ -8563,7 +8563,7 @@ const Sc = Rn(Ir, Rc), fd = fe("F0BigNumber", Sc), gd = is.filter(
|
|
|
8563
8563
|
"flubber",
|
|
8564
8564
|
"indigo",
|
|
8565
8565
|
"camel"
|
|
8566
|
-
],
|
|
8566
|
+
], Si = ({ count: n, list: e }) => {
|
|
8567
8567
|
const [t, i] = F(!1), r = f(Lt, {
|
|
8568
8568
|
label: `+${n}`
|
|
8569
8569
|
});
|
|
@@ -8594,7 +8594,7 @@ const Sc = Rn(Ir, Rc), fd = fe("F0BigNumber", Sc), gd = is.filter(
|
|
|
8594
8594
|
})]
|
|
8595
8595
|
}) : r;
|
|
8596
8596
|
};
|
|
8597
|
-
|
|
8597
|
+
Si.displayName = "ChipCounter";
|
|
8598
8598
|
const Hr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
8599
8599
|
if (i === "fill")
|
|
8600
8600
|
return f(rs, {
|
|
@@ -8604,7 +8604,7 @@ const Hr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8604
8604
|
}),
|
|
8605
8605
|
renderDropdownItem: () => null,
|
|
8606
8606
|
forceShowingOverflowIndicator: t !== void 0,
|
|
8607
|
-
renderOverflowIndicator: (c) => f(
|
|
8607
|
+
renderOverflowIndicator: (c) => f(Si, {
|
|
8608
8608
|
count: (t ?? 0) + c,
|
|
8609
8609
|
list: t ? void 0 : n.slice(n.length - c)
|
|
8610
8610
|
}),
|
|
@@ -8616,7 +8616,7 @@ const Hr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8616
8616
|
className: "flex items-center gap-2",
|
|
8617
8617
|
children: [r.map((c, d) => f(Lt, {
|
|
8618
8618
|
...c
|
|
8619
|
-
}, d)), a && f(
|
|
8619
|
+
}, d)), a && f(Si, {
|
|
8620
8620
|
count: o,
|
|
8621
8621
|
list: t ? void 0 : s
|
|
8622
8622
|
})]
|
|
@@ -8706,7 +8706,7 @@ const Cd = fe("F0ChipList", Hr), _d = ss, Nc = Ge({
|
|
|
8706
8706
|
});
|
|
8707
8707
|
}, Oc = 388;
|
|
8708
8708
|
function kc({ filters: n, value: e, onChange: t, height: i, width: r = 600, className: s, showApplyButton: o = !0, applyButtonLabel: a }) {
|
|
8709
|
-
const c =
|
|
8709
|
+
const c = Rn(), [d, l] = F(null), [u, h] = F(e);
|
|
8710
8710
|
I(() => {
|
|
8711
8711
|
h(e);
|
|
8712
8712
|
}, [e]), I(() => {
|
|
@@ -8714,8 +8714,8 @@ function kc({ filters: n, value: e, onChange: t, height: i, width: r = 600, clas
|
|
|
8714
8714
|
const x = Object.keys(n);
|
|
8715
8715
|
if (x.length > 0) {
|
|
8716
8716
|
const D = x.find((N) => {
|
|
8717
|
-
const w = u[N],
|
|
8718
|
-
return w !== void 0 && !
|
|
8717
|
+
const w = u[N], S = Ji(n[N].type);
|
|
8718
|
+
return w !== void 0 && !S.isEmpty(w, {
|
|
8719
8719
|
schema: n[N],
|
|
8720
8720
|
i18n: c
|
|
8721
8721
|
});
|
|
@@ -8733,8 +8733,8 @@ function kc({ filters: n, value: e, onChange: t, height: i, width: r = 600, clas
|
|
|
8733
8733
|
}, C = () => {
|
|
8734
8734
|
t(u);
|
|
8735
8735
|
}, b = H(() => i || Object.entries(n).reduce((D, [N, w]) => {
|
|
8736
|
-
const
|
|
8737
|
-
return Math.max(D,
|
|
8736
|
+
const S = Ji(w.type);
|
|
8737
|
+
return Math.max(D, S?.formHeight || Oc);
|
|
8738
8738
|
}, 0), [n, i]);
|
|
8739
8739
|
return !n || Object.keys(n).length === 0 ? null : f("div", {
|
|
8740
8740
|
className: G("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", s),
|
|
@@ -8891,7 +8891,7 @@ function Fc({ title: n, items: e, className: t, activeItem: i, collapsible: r =
|
|
|
8891
8891
|
})]
|
|
8892
8892
|
});
|
|
8893
8893
|
}
|
|
8894
|
-
const
|
|
8894
|
+
const Sd = fe(
|
|
8895
8895
|
"F0TableOfContentPopover",
|
|
8896
8896
|
Fc
|
|
8897
8897
|
), Bc = ({ benefits: n }) => f("div", {
|
|
@@ -8993,8 +8993,8 @@ function Gc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8993
8993
|
})
|
|
8994
8994
|
});
|
|
8995
8995
|
}
|
|
8996
|
-
function
|
|
8997
|
-
const [N, w] = F(n), [
|
|
8996
|
+
function Rd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessage: s, successMessage: o, loadingState: a, nextSteps: c, closeLabel: d, primaryAction: l, modalTitle: u, modalModule: h, secondaryAction: g, portalContainer: C, tag: b, promoTag: x, showResponseDialog: D = !0 }) {
|
|
8997
|
+
const [N, w] = F(n), [S, v] = F(null), [y, m] = F(!1), E = async () => {
|
|
8998
8998
|
if (l?.onClick) {
|
|
8999
8999
|
m(!0);
|
|
9000
9000
|
try {
|
|
@@ -9043,12 +9043,12 @@ function Sd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
9043
9043
|
})
|
|
9044
9044
|
})
|
|
9045
9045
|
})
|
|
9046
|
-
}),
|
|
9046
|
+
}), S && D && f(Xn, {
|
|
9047
9047
|
open: !0,
|
|
9048
9048
|
onClose: () => {
|
|
9049
9049
|
z(), v(null);
|
|
9050
9050
|
},
|
|
9051
|
-
success:
|
|
9051
|
+
success: S === "success",
|
|
9052
9052
|
errorMessage: s,
|
|
9053
9053
|
successMessage: o,
|
|
9054
9054
|
nextSteps: c,
|
|
@@ -9159,23 +9159,23 @@ const jc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
9159
9159
|
});
|
|
9160
9160
|
jc.displayName = "UpsellingBanner";
|
|
9161
9161
|
function Nd({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r = "md", showIcon: s = !0, side: o = "right", align: a = "center", icon: c = ys, mediaUrl: d, title: l, description: u, width: h = "300px", trackVisibility: g, actions: C, onClick: b, hideLabel: x = !1 }) {
|
|
9162
|
-
const [D, N] = F(!1), [w,
|
|
9163
|
-
e(
|
|
9164
|
-
}, E = async (
|
|
9165
|
-
if (
|
|
9166
|
-
y(
|
|
9162
|
+
const [D, N] = F(!1), [w, S] = F(null), [v, y] = F(null), m = (R) => {
|
|
9163
|
+
e(R), b && b();
|
|
9164
|
+
}, E = async (R) => {
|
|
9165
|
+
if (R.type === "upsell") {
|
|
9166
|
+
y(R);
|
|
9167
9167
|
try {
|
|
9168
|
-
await
|
|
9168
|
+
await R.onClick(), R.showConfirmation && (N(!0), S("success"));
|
|
9169
9169
|
} catch {
|
|
9170
|
-
N(!0),
|
|
9170
|
+
N(!0), S("error");
|
|
9171
9171
|
}
|
|
9172
9172
|
}
|
|
9173
9173
|
}, z = () => {
|
|
9174
|
-
|
|
9175
|
-
}, A = n && !D, _ = C?.map((
|
|
9176
|
-
...
|
|
9177
|
-
onClick: () => E(
|
|
9178
|
-
} :
|
|
9174
|
+
S(null), N(!1), y(null), e(!1);
|
|
9175
|
+
}, A = n && !D, _ = C?.map((R) => R.type === "upsell" ? {
|
|
9176
|
+
...R,
|
|
9177
|
+
onClick: () => E(R)
|
|
9178
|
+
} : R);
|
|
9179
9179
|
return T(Jt, {
|
|
9180
9180
|
children: [T(On, {
|
|
9181
9181
|
open: A,
|
|
@@ -9296,6 +9296,7 @@ export {
|
|
|
9296
9296
|
$d as F0AiCollapsibleMessage,
|
|
9297
9297
|
jd as F0AiFullscreenChat,
|
|
9298
9298
|
Ed as F0Alert,
|
|
9299
|
+
xh as F0AuraVoiceAnimation,
|
|
9299
9300
|
Ud as F0Avatar,
|
|
9300
9301
|
po as F0AvatarAlert,
|
|
9301
9302
|
Vd as F0AvatarCompany,
|
|
@@ -9321,7 +9322,7 @@ export {
|
|
|
9321
9322
|
nu as F0EventCatcherProvider,
|
|
9322
9323
|
kc as F0FilterPickerContent,
|
|
9323
9324
|
Dd as F0GridStack,
|
|
9324
|
-
|
|
9325
|
+
wh as F0HILActionConfirmation,
|
|
9325
9326
|
Tc as F0Heading,
|
|
9326
9327
|
Nn as F0Icon,
|
|
9327
9328
|
ls as F0Link,
|
|
@@ -9330,7 +9331,7 @@ export {
|
|
|
9330
9331
|
ou as F0OneSwitch,
|
|
9331
9332
|
Ad as F0Provider,
|
|
9332
9333
|
au as F0Select,
|
|
9333
|
-
|
|
9334
|
+
Sd as F0TableOfContentPopover,
|
|
9334
9335
|
eh as F0TagAlert,
|
|
9335
9336
|
go as F0TagBalance,
|
|
9336
9337
|
th as F0TagCompany,
|
|
@@ -9361,7 +9362,7 @@ export {
|
|
|
9361
9362
|
Co as PrivacyModeProvider,
|
|
9362
9363
|
Br as ProductBlankslate,
|
|
9363
9364
|
oh as ProductCard,
|
|
9364
|
-
|
|
9365
|
+
Rd as ProductModal,
|
|
9365
9366
|
$c as ProductWidget,
|
|
9366
9367
|
ud as ProgressBarChart,
|
|
9367
9368
|
id as StandardLayout,
|
|
@@ -9378,10 +9379,10 @@ export {
|
|
|
9378
9379
|
Yn as UpsellingButton,
|
|
9379
9380
|
Nd as UpsellingPopover,
|
|
9380
9381
|
dd as VerticalBarChart,
|
|
9381
|
-
|
|
9382
|
-
|
|
9382
|
+
Ch as actionItemStatuses,
|
|
9383
|
+
_h as aiTranslations,
|
|
9383
9384
|
Qc as avatarVariants,
|
|
9384
|
-
|
|
9385
|
+
Su as buildTranslations,
|
|
9385
9386
|
vd as buttonDropdownSizes,
|
|
9386
9387
|
md as buttonDropdownVariants,
|
|
9387
9388
|
pd as buttonSizes,
|
|
@@ -9391,7 +9392,7 @@ export {
|
|
|
9391
9392
|
ch as cardImageFits,
|
|
9392
9393
|
dh as cardImageSizes,
|
|
9393
9394
|
uh as createAtlaskitDriver,
|
|
9394
|
-
|
|
9395
|
+
Ru as createDataSourceDefinition,
|
|
9395
9396
|
$o as createPageLayoutBlock,
|
|
9396
9397
|
jo as createPageLayoutBlockGroup,
|
|
9397
9398
|
Od as dataCollectionLocalStorageHandler,
|
|
@@ -9407,12 +9408,12 @@ export {
|
|
|
9407
9408
|
Pu as isPageBasedPagination,
|
|
9408
9409
|
xd as linkVariants,
|
|
9409
9410
|
Mu as modules,
|
|
9410
|
-
|
|
9411
|
+
Eh as oneIconSizes,
|
|
9411
9412
|
hh as predefinedPresets,
|
|
9412
9413
|
fh as selectSizes,
|
|
9413
9414
|
wd as tagDotColors,
|
|
9414
9415
|
Lu as useAiChat,
|
|
9415
|
-
|
|
9416
|
+
Dh as useAiChatTranslations,
|
|
9416
9417
|
Iu as useData,
|
|
9417
9418
|
Hu as useDataSource,
|
|
9418
9419
|
Fu as useDefaultCopilotActions,
|