@factorialco/f0-react 1.329.1 → 1.330.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AiChatTranslationsProvider-Cp_FMTJE.js +22149 -0
- package/dist/AiChatTranslationsProvider.css +1 -0
- package/dist/ai.d.ts +705 -0
- package/dist/ai.js +17 -0
- package/dist/experimental.css +1 -1
- package/dist/experimental.d.ts +73 -21
- package/dist/experimental.js +15598 -37323
- package/dist/f0.d.ts +21 -21
- package/dist/f0.js +338 -336
- package/dist/hooks-qwjhcY7r.js +26663 -0
- package/dist/i18n-provider-defaults.d.ts +21 -21
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{hooks-BV8m26OP.js → index-B3ge4hTD.js} +35079 -61734
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as j, a as Di, b as En, m as Ri, B as Si, O as Kr, p as Xr, w as Dn, S as xe, u as Rn, F as Sn, d as Yr, A as Vr, D as qr, e as Jr, f as we, C as me, g as Zr, h as Qr, i as Nn, j as es, k as Mt, P as An, l as On, n as ts, o as kn, q as Tn, r as zn, s as is, t as ns, v as qi, x as rs, y as Pn, z as ss, E as os, G as as, H as ls, J as cs, K as Mn, L as qe, M as ds, U as us, N as hs, I as fs, Q as gs, X as ps, R as ms, T as vs } from "./index-B3ge4hTD.js";
|
|
2
|
+
import { ac as hd, ar as fd, V as gd, W as pd, Y as md, Z as vd, _ as yd, a0 as bd, a1 as xd, a2 as wd, a3 as Cd, a4 as _d, a5 as Ed, a6 as Dd, a7 as Rd, an as Sd, a9 as Nd, aa as Ad, ad as Od, ab as kd, ao as Td, ai as zd, al as Pd, ah as Md, as as Ld, ag as Id, af as Hd, $ as Bd, ae as Fd, aj as Wd, at as Gd, a8 as $d, ak as jd, aq as Ud, am as Kd, ap as Xd } from "./index-B3ge4hTD.js";
|
|
3
3
|
import { jsx as f, jsxs as P, Fragment as qt } from "react/jsx-runtime";
|
|
4
|
-
import M, { forwardRef as oe, useRef as L, useImperativeHandle as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import {
|
|
4
|
+
import M, { forwardRef as oe, useRef as L, useImperativeHandle as ys, Children as Lt, createContext as Ae, useContext as _e, useState as B, useMemo as H, useEffect as I, useCallback as U, useLayoutEffect as vi, createElement as Ji, isValidElement as Ln, Fragment as bs, memo as xs, useReducer as ws, cloneElement as Cs, PureComponent as _s } from "react";
|
|
5
|
+
import { createPortal as In, unstable_batchedUpdates as At } from "react-dom";
|
|
6
|
+
import { L as Hn, C as Es, i as Bn, D as Ds, S as Zi, a as Rs, f as di, b as lt, c as Ss, A as Ns, d as Ot, e as Fn, E as As, g as zt, h as Os, j as ks, k as Ts, l as Xe, m as Wn, u as zs, G as Ps, n as Ms, o as Qi, p as Ls, q as Gn, r as Is, B as $n, X as jn, Y as yi, s as Hs, t as Un, v as Bs, w as Fs, x as Ws, y as Gs, z as $s, F as js, H as Us, I as Ks, J as en, K as Xs, M as ct, N as ui, O as Ys, P as Vs, Q as qs, R as Js, T as Zs, U as Qs, V as eo, W as to, Z as io, _ as no, $ as ro, a0 as tn, a1 as so, a2 as oo, a3 as Kn, a4 as ao, a5 as lo, a6 as nn, a7 as co, a8 as Xn, a9 as uo, aa as ho, ab as fo, ac as go } from "./hooks-qwjhcY7r.js";
|
|
7
|
+
import { aw as Vd, ad as qd, ae as Jd, af as Zd, ai as Qd, aj as eu, an as tu, ao as iu, ap as nu, ar as ru, as as su, at as ou, au, am as lu, aq as cu, ag as du, ah as uu, av as hu, ak as fu, al as gu, ax as pu, ay as mu, az as vu, aA as yu } from "./hooks-qwjhcY7r.js";
|
|
8
|
+
import { defaultTranslations as xu } from "./i18n-provider-defaults.js";
|
|
7
9
|
import './f0.css';const po = {
|
|
8
10
|
xs: 1,
|
|
9
11
|
sm: 2,
|
|
@@ -11,19 +13,19 @@ import './f0.css';const po = {
|
|
|
11
13
|
lg: 2
|
|
12
14
|
}, mo = oe(function({ widgets: e, children: t }, i) {
|
|
13
15
|
const r = L(null);
|
|
14
|
-
|
|
16
|
+
ys(i, () => r.current);
|
|
15
17
|
const s = Lt.toArray(e).filter((o) => !!o).map((o, a) => f("div", {
|
|
16
18
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
17
19
|
children: o
|
|
18
20
|
}, a));
|
|
19
|
-
return f(
|
|
21
|
+
return f(Hn, {
|
|
20
22
|
layout: "home",
|
|
21
23
|
children: P("div", {
|
|
22
24
|
ref: r,
|
|
23
25
|
className: "@container",
|
|
24
26
|
children: [P("div", {
|
|
25
27
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
26
|
-
children: [f(
|
|
28
|
+
children: [f(Es, {
|
|
27
29
|
columns: po,
|
|
28
30
|
showArrows: !1,
|
|
29
31
|
children: s
|
|
@@ -50,19 +52,19 @@ import './f0.css';const po = {
|
|
|
50
52
|
ref: s,
|
|
51
53
|
className: "h-full",
|
|
52
54
|
children: P("div", {
|
|
53
|
-
className:
|
|
55
|
+
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
56
|
children: [f("main", {
|
|
55
|
-
className:
|
|
57
|
+
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
58
|
children: e
|
|
57
59
|
}), f(yo, {
|
|
58
60
|
sticky: r,
|
|
59
|
-
className:
|
|
61
|
+
className: j("order-1", i === "right" ? "md:order-1" : "md:order-3"),
|
|
60
62
|
children: t
|
|
61
63
|
})]
|
|
62
64
|
})
|
|
63
65
|
});
|
|
64
66
|
}), yo = ({ children: n, className: e }) => f("aside", {
|
|
65
|
-
className:
|
|
67
|
+
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
68
|
children: n
|
|
67
69
|
}), bo = Di({
|
|
68
70
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
@@ -71,14 +73,14 @@ import './f0.css';const po = {
|
|
|
71
73
|
narrow: "max-w-screen-lg"
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
|
-
}), Yn = M.forwardRef(({ children: n, variant: e, className: t, ...i }, r) => f(
|
|
76
|
+
}), Yn = M.forwardRef(({ children: n, variant: e, className: t, ...i }, r) => f(Hn, {
|
|
75
77
|
layout: "standard",
|
|
76
78
|
children: f("section", {
|
|
77
79
|
ref: r,
|
|
78
|
-
className:
|
|
80
|
+
className: j("relative flex-1 overflow-auto", t),
|
|
79
81
|
...i,
|
|
80
82
|
children: f("div", {
|
|
81
|
-
className:
|
|
83
|
+
className: j(bo({
|
|
82
84
|
variant: e
|
|
83
85
|
})),
|
|
84
86
|
children: n
|
|
@@ -173,7 +175,7 @@ function _o({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
173
175
|
v(y);
|
|
174
176
|
}), w;
|
|
175
177
|
});
|
|
176
|
-
|
|
178
|
+
En(() => {
|
|
177
179
|
if (!s) return;
|
|
178
180
|
const w = s.save();
|
|
179
181
|
if (!Array.isArray(w))
|
|
@@ -339,7 +341,7 @@ function _o({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
339
341
|
}, 0);
|
|
340
342
|
return () => clearTimeout(w);
|
|
341
343
|
}, [s, d.handle, d.children]);
|
|
342
|
-
const N =
|
|
344
|
+
const N = U(() => {
|
|
343
345
|
if (!s)
|
|
344
346
|
return;
|
|
345
347
|
const w = s.save();
|
|
@@ -431,7 +433,7 @@ function Ro() {
|
|
|
431
433
|
id: t
|
|
432
434
|
}
|
|
433
435
|
},
|
|
434
|
-
children: i &&
|
|
436
|
+
children: i && In(i, r)
|
|
435
437
|
}, t) : (console.error(`Widget container not found for widget ${t}`), null);
|
|
436
438
|
})
|
|
437
439
|
});
|
|
@@ -3828,12 +3830,12 @@ k.Engine = Ne;
|
|
|
3828
3830
|
k.GDRev = "12.3.2";
|
|
3829
3831
|
const kt = /* @__PURE__ */ new WeakMap();
|
|
3830
3832
|
function ko({ children: n }) {
|
|
3831
|
-
const { _gridStack: { value: e, set: t }, options: i } = qn(), r = L(/* @__PURE__ */ new Map()), s = L(null), o = L(i), a =
|
|
3833
|
+
const { _gridStack: { value: e, set: t }, options: i } = qn(), r = L(/* @__PURE__ */ new Map()), s = L(null), o = L(i), a = U((l, u) => {
|
|
3832
3834
|
if (u.id && u.grid) {
|
|
3833
3835
|
let h = kt.get(u.grid);
|
|
3834
3836
|
h || (h = /* @__PURE__ */ new Map(), kt.set(u.grid, h)), h.set(u.id, l), r.current.set(u.id, l);
|
|
3835
3837
|
}
|
|
3836
|
-
}, []), c =
|
|
3838
|
+
}, []), c = U(() => {
|
|
3837
3839
|
if (s.current) {
|
|
3838
3840
|
k.renderCB = a;
|
|
3839
3841
|
const l = k.init(o.current, s.current);
|
|
@@ -3842,9 +3844,9 @@ function ko({ children: n }) {
|
|
|
3842
3844
|
return null;
|
|
3843
3845
|
}, [a]), d = (l, u) => {
|
|
3844
3846
|
const { children: h, ...g } = l, { children: _, ...b } = u;
|
|
3845
|
-
return
|
|
3847
|
+
return Bn(g, b);
|
|
3846
3848
|
};
|
|
3847
|
-
return
|
|
3849
|
+
return vi(() => {
|
|
3848
3850
|
if (!d(i, o.current) && e)
|
|
3849
3851
|
try {
|
|
3850
3852
|
e.removeAll(!1), e.destroy(!1), r.current.clear(), kt.delete(e), o.current = i, t(null);
|
|
@@ -3852,7 +3854,7 @@ function ko({ children: n }) {
|
|
|
3852
3854
|
console.error("Error destroying gridstack", l);
|
|
3853
3855
|
}
|
|
3854
3856
|
else e && (o.current = i, i.handle && e.opts && (e.opts.handle = i.handle));
|
|
3855
|
-
}, [i, e, t]),
|
|
3857
|
+
}, [i, e, t]), vi(() => {
|
|
3856
3858
|
if (!e && s.current)
|
|
3857
3859
|
try {
|
|
3858
3860
|
t(c());
|
|
@@ -3926,7 +3928,7 @@ const To = (n, e, t) => f("div", {
|
|
|
3926
3928
|
children: n
|
|
3927
3929
|
}), Zt = ({ widgets: n = [], editMode: e = !1, onChange: t = () => {
|
|
3928
3930
|
}, WidgetWrapper: i = To, main: r = !1, deps: s }) => {
|
|
3929
|
-
const o =
|
|
3931
|
+
const o = U((v, y, m) => f(Ri.div, {
|
|
3930
3932
|
className: "h-full w-full",
|
|
3931
3933
|
initial: {
|
|
3932
3934
|
opacity: 0,
|
|
@@ -4009,7 +4011,7 @@ const To = (n, e, t) => f("div", {
|
|
|
4009
4011
|
v.set(y.id, m);
|
|
4010
4012
|
}
|
|
4011
4013
|
}), v;
|
|
4012
|
-
}, [n, s]), w =
|
|
4014
|
+
}, [n, s]), w = U((v) => {
|
|
4013
4015
|
u(v), _.current || t(v.map((y) => {
|
|
4014
4016
|
const m = x.current.find((E) => E.id === y.id);
|
|
4015
4017
|
return {
|
|
@@ -4075,7 +4077,7 @@ const To = (n, e, t) => f("div", {
|
|
|
4075
4077
|
});
|
|
4076
4078
|
}), h.current = e, g.current = n, D.current = s;
|
|
4077
4079
|
}, [n, e, o, N, s]), f(Oi, {
|
|
4078
|
-
className:
|
|
4080
|
+
className: j(r && "h-full flex-1 overflow-auto"),
|
|
4079
4081
|
options: a,
|
|
4080
4082
|
onChange: w,
|
|
4081
4083
|
widgets: l
|
|
@@ -4176,12 +4178,12 @@ const hi = Di({
|
|
|
4176
4178
|
}, ki = oe(({ content: n, variant: e, align: t, className: i, as: r, ellipsis: s, noEllipsisTooltip: o, markdown: a, ...c }, d) => {
|
|
4177
4179
|
const l = r ?? Io[e ?? "body"];
|
|
4178
4180
|
if (s !== void 0)
|
|
4179
|
-
return f(
|
|
4181
|
+
return f(Kr, {
|
|
4180
4182
|
ref: d,
|
|
4181
4183
|
lines: typeof s == "number" ? s : 1,
|
|
4182
4184
|
noTooltip: o,
|
|
4183
4185
|
tag: l,
|
|
4184
|
-
className:
|
|
4186
|
+
className: j(hi({
|
|
4185
4187
|
variant: e,
|
|
4186
4188
|
align: t
|
|
4187
4189
|
}), i),
|
|
@@ -4190,10 +4192,10 @@ const hi = Di({
|
|
|
4190
4192
|
children: n
|
|
4191
4193
|
});
|
|
4192
4194
|
if (a) {
|
|
4193
|
-
const u =
|
|
4194
|
-
return
|
|
4195
|
+
const u = Xr(n);
|
|
4196
|
+
return Ji(l, {
|
|
4195
4197
|
...c,
|
|
4196
|
-
className:
|
|
4198
|
+
className: j(hi({
|
|
4197
4199
|
variant: e,
|
|
4198
4200
|
align: t
|
|
4199
4201
|
}), i),
|
|
@@ -4203,9 +4205,9 @@ const hi = Di({
|
|
|
4203
4205
|
}
|
|
4204
4206
|
});
|
|
4205
4207
|
}
|
|
4206
|
-
return
|
|
4208
|
+
return Ji(l, {
|
|
4207
4209
|
...c,
|
|
4208
|
-
className:
|
|
4210
|
+
className: j(hi({
|
|
4209
4211
|
variant: e,
|
|
4210
4212
|
align: t
|
|
4211
4213
|
}), i),
|
|
@@ -4219,14 +4221,14 @@ const tr = oe((n, e) => f(ki, {
|
|
|
4219
4221
|
...n
|
|
4220
4222
|
}));
|
|
4221
4223
|
tr.displayName = "F0Text";
|
|
4222
|
-
const
|
|
4224
|
+
const Pc = [
|
|
4223
4225
|
"person",
|
|
4224
4226
|
"team",
|
|
4225
4227
|
"company",
|
|
4226
4228
|
"file",
|
|
4227
4229
|
"flag"
|
|
4228
4230
|
], ir = ({ title: n, draggable: e = !1, onDragStart: t, onDragEnd: i, isDragging: r = !1, AIButton: s, actions: o, children: a, selected: c = !1 }) => {
|
|
4229
|
-
const [d, l] = B(!1), [u, h] = B(!1), g =
|
|
4231
|
+
const [d, l] = B(!1), [u, h] = B(!1), g = Rn(), _ = (x) => {
|
|
4230
4232
|
l(x);
|
|
4231
4233
|
}, b = u || d;
|
|
4232
4234
|
return I(() => {
|
|
@@ -4238,32 +4240,32 @@ const zc = [
|
|
|
4238
4240
|
document.removeEventListener("mouseup", x);
|
|
4239
4241
|
};
|
|
4240
4242
|
}, [r, i]), P("div", {
|
|
4241
|
-
className:
|
|
4243
|
+
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 && d ? "border-f1-border-hover" : e && "hover:border-f1-border-hover", c && "border-f1-border-selected-bold shadow-[0_0_0_4px_hsl(var(--selected-50)/0.1)]", r && "cursor-grabbing border-f1-border-hover shadow-[0_6px_12px_0_hsl(var(--shadow)/0.06),0_16px_24px_-12px_hsl(var(--shadow)/0.05)]"),
|
|
4242
4244
|
onMouseEnter: () => h(!0),
|
|
4243
4245
|
onMouseLeave: () => h(!1),
|
|
4244
4246
|
children: [P("div", {
|
|
4245
4247
|
className: "flex h-12 w-full items-center justify-between gap-3",
|
|
4246
4248
|
children: [P("div", {
|
|
4247
|
-
className:
|
|
4249
|
+
className: j("flex min-w-0 flex-1 items-center", !e && "pl-4", !o && !s && "pr-4"),
|
|
4248
4250
|
children: [e && f("div", {
|
|
4249
4251
|
className: "flex h-12 w-12 items-center justify-center text-f1-icon-secondary hover:cursor-grab",
|
|
4250
4252
|
onMouseDown: t,
|
|
4251
4253
|
"data-gs-handle": "true",
|
|
4252
|
-
children: f(
|
|
4253
|
-
icon:
|
|
4254
|
+
children: f(Sn, {
|
|
4255
|
+
icon: Yr,
|
|
4254
4256
|
size: "xs"
|
|
4255
4257
|
})
|
|
4256
4258
|
}), f("div", {
|
|
4257
|
-
className:
|
|
4259
|
+
className: j("flex min-w-0 flex-1 items-center", e && "-translate-x-1.5"),
|
|
4258
4260
|
children: f(tr, {
|
|
4259
4261
|
variant: "label",
|
|
4260
4262
|
content: n,
|
|
4261
4263
|
ellipsis: !0
|
|
4262
4264
|
})
|
|
4263
4265
|
})]
|
|
4264
|
-
}), f(
|
|
4266
|
+
}), f(Vr, {
|
|
4265
4267
|
children: (s || o) && b && P(Ri.div, {
|
|
4266
|
-
className:
|
|
4268
|
+
className: j("flex shrink-0 items-center gap-0.5 pr-2", !o && "pr-4"),
|
|
4267
4269
|
initial: {
|
|
4268
4270
|
opacity: 0
|
|
4269
4271
|
},
|
|
@@ -4285,13 +4287,13 @@ const zc = [
|
|
|
4285
4287
|
onClick: s,
|
|
4286
4288
|
icon: Qn
|
|
4287
4289
|
})
|
|
4288
|
-
}), o && f(
|
|
4290
|
+
}), o && f(qr, {
|
|
4289
4291
|
items: o,
|
|
4290
4292
|
open: d,
|
|
4291
4293
|
onOpenChange: _,
|
|
4292
4294
|
align: "end",
|
|
4293
4295
|
children: f(Si, {
|
|
4294
|
-
icon:
|
|
4296
|
+
icon: Jr,
|
|
4295
4297
|
label: "Actions",
|
|
4296
4298
|
variant: "ghost",
|
|
4297
4299
|
size: "md",
|
|
@@ -4333,7 +4335,7 @@ const zc = [
|
|
|
4333
4335
|
})]
|
|
4334
4336
|
});
|
|
4335
4337
|
ir.displayName = "F0Widget";
|
|
4336
|
-
const Bo =
|
|
4338
|
+
const Bo = Dn(ir, Ho), Fo = ({ children: n, title: e, draggable: t = !1, actions: i, aiButton: r }) => f(Bo, {
|
|
4337
4339
|
title: e,
|
|
4338
4340
|
draggable: t,
|
|
4339
4341
|
actions: i,
|
|
@@ -4355,7 +4357,7 @@ const Bo = Sn(ir, Ho), Fo = ({ children: n, title: e, draggable: t = !1, actions
|
|
|
4355
4357
|
})
|
|
4356
4358
|
});
|
|
4357
4359
|
nr.displayName = "Dashboard";
|
|
4358
|
-
const Wo = Po("Dashboard", nr),
|
|
4360
|
+
const Wo = Po("Dashboard", nr), Mc = we("Dashboard", Wo), Go = Di({
|
|
4359
4361
|
base: "flex w-full flex-col p-4",
|
|
4360
4362
|
variants: {
|
|
4361
4363
|
variant: {
|
|
@@ -4366,16 +4368,16 @@ const Wo = Po("Dashboard", nr), Pc = we("Dashboard", Wo), Go = Di({
|
|
|
4366
4368
|
}
|
|
4367
4369
|
}), $o = (n) => (n || []).map((e) => e.items).reduce((e, t) => (e.length > 0 && e.push({
|
|
4368
4370
|
type: "separator"
|
|
4369
|
-
}), e.push(...t), e), []),
|
|
4371
|
+
}), e.push(...t), e), []), jo = (n) => {
|
|
4370
4372
|
const e = (t) => "onClick" in t;
|
|
4371
4373
|
return Array.isArray(n) ? n.every(e) ? [{
|
|
4372
4374
|
items: n
|
|
4373
4375
|
}] : n : [n];
|
|
4374
4376
|
}, Qt = oe(({ children: n, variant: e = "default", className: t, draggable: i = !1, onDragStart: r, onDragEnd: s, onDrop: o, dragId: a, primaryAction: c, ...d }, l) => {
|
|
4375
|
-
const u = H(() =>
|
|
4377
|
+
const u = H(() => jo(d.actions || []), [d.actions]), h = H(() => u.flatMap((_) => _.items), [u]), g = H(() => h.length > 0 || !!c, [h, c]);
|
|
4376
4378
|
return P("div", {
|
|
4377
4379
|
ref: l,
|
|
4378
|
-
className:
|
|
4380
|
+
className: j(Go({
|
|
4379
4381
|
variant: e
|
|
4380
4382
|
}), "relative", t),
|
|
4381
4383
|
draggable: i,
|
|
@@ -4386,7 +4388,7 @@ const Wo = Po("Dashboard", nr), Pc = we("Dashboard", Wo), Go = Di({
|
|
|
4386
4388
|
...d,
|
|
4387
4389
|
children: [g && P("div", {
|
|
4388
4390
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
4389
|
-
children: [!!c && c, h.length > 0 && f(
|
|
4391
|
+
children: [!!c && c, h.length > 0 && f(Ds, {
|
|
4390
4392
|
items: $o(u)
|
|
4391
4393
|
})]
|
|
4392
4394
|
}), f("div", {
|
|
@@ -4396,16 +4398,16 @@ const Wo = Po("Dashboard", nr), Pc = we("Dashboard", Wo), Go = Di({
|
|
|
4396
4398
|
});
|
|
4397
4399
|
Qt.displayName = "Block";
|
|
4398
4400
|
Qt.__isPageLayoutBlock = !0;
|
|
4399
|
-
const
|
|
4401
|
+
const Uo = ({ title: n = "", description: e, titleLevel: t = "h2", children: i, className: r, ...s }) => {
|
|
4400
4402
|
if (!n) return null;
|
|
4401
4403
|
const o = t;
|
|
4402
4404
|
return P(Qt, {
|
|
4403
4405
|
...s,
|
|
4404
|
-
className:
|
|
4406
|
+
className: j("space-y-4", r),
|
|
4405
4407
|
children: [P("div", {
|
|
4406
4408
|
className: "space-y-2",
|
|
4407
4409
|
children: [f(o, {
|
|
4408
|
-
className:
|
|
4410
|
+
className: j("font-semibold text-f1-foreground", {
|
|
4409
4411
|
"text-2xl": t === "h1",
|
|
4410
4412
|
"text-xl": t === "h2",
|
|
4411
4413
|
"text-lg": t === "h3",
|
|
@@ -4423,7 +4425,7 @@ const jo = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4423
4425
|
children: i
|
|
4424
4426
|
})]
|
|
4425
4427
|
});
|
|
4426
|
-
}, Ko = zo("BlockContent",
|
|
4428
|
+
}, Ko = zo("BlockContent", Uo), Xo = (n) => !Ln(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutBlock" in n.type, Yo = (n) => !Ln(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutGroup" in n.type, rr = (n, e, t) => {
|
|
4427
4429
|
const i = Lt.toArray(e);
|
|
4428
4430
|
for (const r of i)
|
|
4429
4431
|
t.includes("block") && Xo(r) || t.includes("group") && Yo(r) || console.warn(
|
|
@@ -4440,7 +4442,7 @@ const jo = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4440
4442
|
}, [r, e]), f("div", {
|
|
4441
4443
|
ref: i,
|
|
4442
4444
|
...t,
|
|
4443
|
-
children: r.map((o, a) => f(
|
|
4445
|
+
children: r.map((o, a) => f(bs, {
|
|
4444
4446
|
children: o
|
|
4445
4447
|
}, a))
|
|
4446
4448
|
});
|
|
@@ -4486,21 +4488,21 @@ function sr(n) {
|
|
|
4486
4488
|
function et(n) {
|
|
4487
4489
|
return n ? Qe(n) ? n.document : zi(n) ? Pi(n) ? n : xt(n) || sr(n) ? n.ownerDocument : document : document : document;
|
|
4488
4490
|
}
|
|
4489
|
-
const ge = ei ?
|
|
4491
|
+
const ge = ei ? vi : I;
|
|
4490
4492
|
function ti(n) {
|
|
4491
4493
|
const e = L(n);
|
|
4492
4494
|
return ge(() => {
|
|
4493
4495
|
e.current = n;
|
|
4494
|
-
}),
|
|
4496
|
+
}), U(function() {
|
|
4495
4497
|
for (var t = arguments.length, i = new Array(t), r = 0; r < t; r++)
|
|
4496
4498
|
i[r] = arguments[r];
|
|
4497
4499
|
return e.current == null ? void 0 : e.current(...i);
|
|
4498
4500
|
}, []);
|
|
4499
4501
|
}
|
|
4500
4502
|
function qo() {
|
|
4501
|
-
const n = L(null), e =
|
|
4503
|
+
const n = L(null), e = U((i, r) => {
|
|
4502
4504
|
n.current = setInterval(i, r);
|
|
4503
|
-
}, []), t =
|
|
4505
|
+
}, []), t = U(() => {
|
|
4504
4506
|
n.current !== null && (clearInterval(n.current), n.current = null);
|
|
4505
4507
|
}, []);
|
|
4506
4508
|
return [e, t];
|
|
@@ -4524,7 +4526,7 @@ function wt(n, e) {
|
|
|
4524
4526
|
);
|
|
4525
4527
|
}
|
|
4526
4528
|
function Gt(n) {
|
|
4527
|
-
const e = ti(n), t = L(null), i =
|
|
4529
|
+
const e = ti(n), t = L(null), i = U(
|
|
4528
4530
|
(r) => {
|
|
4529
4531
|
r !== t.current && e?.(r, t.current), t.current = r;
|
|
4530
4532
|
},
|
|
@@ -4584,7 +4586,7 @@ function Zo(n) {
|
|
|
4584
4586
|
} = Z(n.target);
|
|
4585
4587
|
return e && n instanceof e;
|
|
4586
4588
|
}
|
|
4587
|
-
function
|
|
4589
|
+
function jt(n) {
|
|
4588
4590
|
if (Zo(n)) {
|
|
4589
4591
|
if (n.touches && n.touches.length) {
|
|
4590
4592
|
const {
|
|
@@ -4698,7 +4700,7 @@ function ia(n) {
|
|
|
4698
4700
|
function na() {
|
|
4699
4701
|
const [n, e] = B("");
|
|
4700
4702
|
return {
|
|
4701
|
-
announce:
|
|
4703
|
+
announce: U((i) => {
|
|
4702
4704
|
i != null && e(i);
|
|
4703
4705
|
}, []),
|
|
4704
4706
|
announcement: n
|
|
@@ -4714,8 +4716,8 @@ function ra(n) {
|
|
|
4714
4716
|
}, [n, e]);
|
|
4715
4717
|
}
|
|
4716
4718
|
function sa() {
|
|
4717
|
-
const [n] = B(() => /* @__PURE__ */ new Set()), e =
|
|
4718
|
-
return [
|
|
4719
|
+
const [n] = B(() => /* @__PURE__ */ new Set()), e = U((i) => (n.add(i), () => n.delete(i)), [n]);
|
|
4720
|
+
return [U((i) => {
|
|
4719
4721
|
let {
|
|
4720
4722
|
type: r,
|
|
4721
4723
|
event: s
|
|
@@ -4831,13 +4833,13 @@ function la(n) {
|
|
|
4831
4833
|
id: a,
|
|
4832
4834
|
announcement: o
|
|
4833
4835
|
}));
|
|
4834
|
-
return t ?
|
|
4836
|
+
return t ? In(l, t) : l;
|
|
4835
4837
|
}
|
|
4836
4838
|
var X;
|
|
4837
4839
|
(function(n) {
|
|
4838
4840
|
n.DragStart = "dragStart", n.DragMove = "dragMove", n.DragEnd = "dragEnd", n.DragCancel = "dragCancel", n.DragOver = "dragOver", n.RegisterDroppable = "registerDroppable", n.SetDroppableDisabled = "setDroppableDisabled", n.UnregisterDroppable = "unregisterDroppable";
|
|
4839
4841
|
})(X || (X = {}));
|
|
4840
|
-
function
|
|
4842
|
+
function Ut() {
|
|
4841
4843
|
}
|
|
4842
4844
|
function an(n, e) {
|
|
4843
4845
|
return H(
|
|
@@ -4866,7 +4868,7 @@ function da(n, e) {
|
|
|
4866
4868
|
return Math.sqrt(Math.pow(n.x - e.x, 2) + Math.pow(n.y - e.y, 2));
|
|
4867
4869
|
}
|
|
4868
4870
|
function ua(n, e) {
|
|
4869
|
-
const t =
|
|
4871
|
+
const t = jt(n);
|
|
4870
4872
|
if (!t)
|
|
4871
4873
|
return "0 0";
|
|
4872
4874
|
const i = {
|
|
@@ -5510,7 +5512,7 @@ class Ii {
|
|
|
5510
5512
|
} = e, {
|
|
5511
5513
|
target: o
|
|
5512
5514
|
} = s;
|
|
5513
|
-
this.props = e, this.events = t, this.document = et(o), this.documentListeners = new dt(this.document), this.listeners = new dt(i), this.windowListeners = new dt(Z(o)), this.initialCoordinates = (r =
|
|
5515
|
+
this.props = e, this.events = t, this.document = et(o), this.documentListeners = new dt(this.document), this.listeners = new dt(i), this.windowListeners = new dt(Z(o)), this.initialCoordinates = (r = jt(s)) != null ? r : pe, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
5514
5516
|
}
|
|
5515
5517
|
attach() {
|
|
5516
5518
|
const {
|
|
@@ -5576,7 +5578,7 @@ class Ii {
|
|
|
5576
5578
|
} = s;
|
|
5577
5579
|
if (!r)
|
|
5578
5580
|
return;
|
|
5579
|
-
const c = (t =
|
|
5581
|
+
const c = (t = jt(e)) != null ? t : pe, d = yt(r, c);
|
|
5580
5582
|
if (!i && a) {
|
|
5581
5583
|
if (un(a)) {
|
|
5582
5584
|
if (a.tolerance != null && pi(d, a.tolerance))
|
|
@@ -5761,7 +5763,7 @@ function Ha(n) {
|
|
|
5761
5763
|
case ut.DraggableRect:
|
|
5762
5764
|
return r;
|
|
5763
5765
|
}
|
|
5764
|
-
}, [t, r, c]), w = L(null), R =
|
|
5766
|
+
}, [t, r, c]), w = L(null), R = U(() => {
|
|
5765
5767
|
const y = w.current;
|
|
5766
5768
|
if (!y)
|
|
5767
5769
|
return;
|
|
@@ -5892,7 +5894,7 @@ function $a(n, e) {
|
|
|
5892
5894
|
frequency: a,
|
|
5893
5895
|
measure: c,
|
|
5894
5896
|
strategy: d
|
|
5895
|
-
} = r, l = L(n), u = x(), h = vt(u), g =
|
|
5897
|
+
} = r, l = L(n), u = x(), h = vt(u), g = U(function(D) {
|
|
5896
5898
|
D === void 0 && (D = []), !h.current && o((N) => N === null ? D : N.concat(D.filter((w) => !N.includes(w))));
|
|
5897
5899
|
}, [h]), _ = L(null), b = wt((D) => {
|
|
5898
5900
|
if (u && !t)
|
|
@@ -5954,10 +5956,10 @@ function $a(n, e) {
|
|
|
5954
5956
|
function Bi(n, e) {
|
|
5955
5957
|
return wt((t) => n ? t || (typeof e == "function" ? e(n) : n) : null, [e, n]);
|
|
5956
5958
|
}
|
|
5957
|
-
function
|
|
5959
|
+
function ja(n, e) {
|
|
5958
5960
|
return Bi(n, e);
|
|
5959
5961
|
}
|
|
5960
|
-
function
|
|
5962
|
+
function Ua(n) {
|
|
5961
5963
|
let {
|
|
5962
5964
|
callback: e,
|
|
5963
5965
|
disabled: t
|
|
@@ -6009,7 +6011,7 @@ function gn(n, e, t) {
|
|
|
6009
6011
|
return JSON.stringify(c) === JSON.stringify(l) ? c : l;
|
|
6010
6012
|
});
|
|
6011
6013
|
}
|
|
6012
|
-
const o =
|
|
6014
|
+
const o = Ua({
|
|
6013
6015
|
callback(c) {
|
|
6014
6016
|
if (n)
|
|
6015
6017
|
for (const d of c) {
|
|
@@ -6045,7 +6047,7 @@ function Ya(n) {
|
|
|
6045
6047
|
}, [n]), t;
|
|
6046
6048
|
}
|
|
6047
6049
|
function Va(n) {
|
|
6048
|
-
const [e, t] = B(null), i = L(n), r =
|
|
6050
|
+
const [e, t] = B(null), i = L(n), r = U((s) => {
|
|
6049
6051
|
const o = gi(s.target);
|
|
6050
6052
|
o && t((a) => a ? (a.set(o, bi(o)), new Map(a)) : null);
|
|
6051
6053
|
}, []);
|
|
@@ -6152,7 +6154,7 @@ function Qa(n) {
|
|
|
6152
6154
|
let {
|
|
6153
6155
|
measure: e
|
|
6154
6156
|
} = n;
|
|
6155
|
-
const [t, i] = B(null), r =
|
|
6157
|
+
const [t, i] = B(null), r = U((d) => {
|
|
6156
6158
|
for (const {
|
|
6157
6159
|
target: l
|
|
6158
6160
|
} of d)
|
|
@@ -6169,7 +6171,7 @@ function Qa(n) {
|
|
|
6169
6171
|
}
|
|
6170
6172
|
}, [e]), s = ri({
|
|
6171
6173
|
callback: r
|
|
6172
|
-
}), o =
|
|
6174
|
+
}), o = U((d) => {
|
|
6173
6175
|
const l = xr(d);
|
|
6174
6176
|
s?.disconnect(), l && s?.observe(l), i(l ? e(l) : null);
|
|
6175
6177
|
}, [e, s]), [a, c] = Gt(o);
|
|
@@ -6237,12 +6239,12 @@ const il = {
|
|
|
6237
6239
|
current: null
|
|
6238
6240
|
},
|
|
6239
6241
|
rect: null,
|
|
6240
|
-
setRef:
|
|
6242
|
+
setRef: Ut
|
|
6241
6243
|
},
|
|
6242
6244
|
scrollableAncestors: [],
|
|
6243
6245
|
scrollableAncestorRects: [],
|
|
6244
6246
|
measuringConfiguration: Pt,
|
|
6245
|
-
measureDroppableContainers:
|
|
6247
|
+
measureDroppableContainers: Ut,
|
|
6246
6248
|
windowRect: null,
|
|
6247
6249
|
measuringScheduled: !1
|
|
6248
6250
|
}, wr = {
|
|
@@ -6253,10 +6255,10 @@ const il = {
|
|
|
6253
6255
|
ariaDescribedById: {
|
|
6254
6256
|
draggable: ""
|
|
6255
6257
|
},
|
|
6256
|
-
dispatch:
|
|
6258
|
+
dispatch: Ut,
|
|
6257
6259
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
6258
6260
|
over: null,
|
|
6259
|
-
measureDroppableContainers:
|
|
6261
|
+
measureDroppableContainers: Ut
|
|
6260
6262
|
}, _t = /* @__PURE__ */ Ae(wr), Cr = /* @__PURE__ */ Ae(il);
|
|
6261
6263
|
function nl() {
|
|
6262
6264
|
return {
|
|
@@ -6479,7 +6481,7 @@ var Ie;
|
|
|
6479
6481
|
(function(n) {
|
|
6480
6482
|
n[n.Uninitialized = 0] = "Uninitialized", n[n.Initializing = 1] = "Initializing", n[n.Initialized = 2] = "Initialized";
|
|
6481
6483
|
})(Ie || (Ie = {}));
|
|
6482
|
-
const ll = /* @__PURE__ */
|
|
6484
|
+
const ll = /* @__PURE__ */ xs(function(e) {
|
|
6483
6485
|
var t, i, r, s;
|
|
6484
6486
|
let {
|
|
6485
6487
|
id: o,
|
|
@@ -6492,7 +6494,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6492
6494
|
modifiers: g,
|
|
6493
6495
|
..._
|
|
6494
6496
|
} = e;
|
|
6495
|
-
const b =
|
|
6497
|
+
const b = ws(rl, void 0, nl), [x, D] = b, [N, w] = sa(), [R, v] = B(Ie.Uninitialized), y = R === Ie.Initialized, {
|
|
6496
6498
|
draggable: {
|
|
6497
6499
|
active: m,
|
|
6498
6500
|
nodes: E,
|
|
@@ -6520,7 +6522,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6520
6522
|
dragging: y,
|
|
6521
6523
|
dependencies: [T.x, T.y],
|
|
6522
6524
|
config: te.droppable
|
|
6523
|
-
}), ae = Wa(E, m), Rt = H(() => K ?
|
|
6525
|
+
}), ae = Wa(E, m), Rt = H(() => K ? jt(K) : null, [K]), Oe = Ur(), De = ja(ae, te.draggable.measure);
|
|
6524
6526
|
al({
|
|
6525
6527
|
activeNode: m != null ? E.get(m) : null,
|
|
6526
6528
|
config: Oe.layoutShiftCompensation,
|
|
@@ -6560,13 +6562,13 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6560
6562
|
scrollableAncestors: ke,
|
|
6561
6563
|
scrollableAncestorRects: St,
|
|
6562
6564
|
windowRect: ai
|
|
6563
|
-
}),
|
|
6565
|
+
}), ji = Rt ? Ve(Rt, T) : null, Ui = Va(ke), Hr = mn(Ui), Br = mn(Ui, [G]), je = Ve(Nt, Hr), Ue = $e ? ba($e, Nt) : null, rt = O && Ue ? u({
|
|
6564
6566
|
active: O,
|
|
6565
|
-
collisionRect:
|
|
6567
|
+
collisionRect: Ue,
|
|
6566
6568
|
droppableRects: Ee,
|
|
6567
6569
|
droppableContainers: Dt,
|
|
6568
|
-
pointerCoordinates:
|
|
6569
|
-
}) : null, Ki = lr(rt, "id"), [Te, Xi] = B(null), Fr = Gi ? Nt : Ve(Nt, Br), Wr = va(Fr, (s = Te?.rect) != null ? s : null, G), li = L(null), Yi =
|
|
6570
|
+
pointerCoordinates: ji
|
|
6571
|
+
}) : null, Ki = lr(rt, "id"), [Te, Xi] = B(null), Fr = Gi ? Nt : Ve(Nt, Br), Wr = va(Fr, (s = Te?.rect) != null ? s : null, G), li = L(null), Yi = U(
|
|
6570
6572
|
(q, ie) => {
|
|
6571
6573
|
let {
|
|
6572
6574
|
sensor: ne,
|
|
@@ -6631,7 +6633,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6631
6633
|
rect: S
|
|
6632
6634
|
}
|
|
6633
6635
|
};
|
|
6634
|
-
|
|
6636
|
+
At(() => {
|
|
6635
6637
|
Se?.(st), v(Ie.Initializing), D({
|
|
6636
6638
|
type: X.DragStart,
|
|
6637
6639
|
initialCoordinates: V,
|
|
@@ -6673,7 +6675,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6673
6675
|
over: st
|
|
6674
6676
|
}, V === X.DragEnd && typeof at == "function" && await Promise.resolve(at(Me)) && (V = X.DragCancel);
|
|
6675
6677
|
}
|
|
6676
|
-
F.current = null,
|
|
6678
|
+
F.current = null, At(() => {
|
|
6677
6679
|
D({
|
|
6678
6680
|
type: V
|
|
6679
6681
|
}), v(Ie.Uninitialized), Xi(null), ee(null), ue(null), li.current = null;
|
|
@@ -6691,7 +6693,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6691
6693
|
},
|
|
6692
6694
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6693
6695
|
[E]
|
|
6694
|
-
), Gr =
|
|
6696
|
+
), Gr = U((q, ie) => (ne, ze) => {
|
|
6695
6697
|
const le = ne.nativeEvent, re = E.get(ze);
|
|
6696
6698
|
if (
|
|
6697
6699
|
// Another sensor is already instantiating
|
|
@@ -6726,12 +6728,12 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6726
6728
|
activatorEvent: ne,
|
|
6727
6729
|
collisions: ze,
|
|
6728
6730
|
delta: {
|
|
6729
|
-
x:
|
|
6730
|
-
y:
|
|
6731
|
+
x: je.x,
|
|
6732
|
+
y: je.y
|
|
6731
6733
|
},
|
|
6732
6734
|
over: le
|
|
6733
6735
|
};
|
|
6734
|
-
|
|
6736
|
+
At(() => {
|
|
6735
6737
|
q?.(re), N({
|
|
6736
6738
|
type: "onDragMove",
|
|
6737
6739
|
event: re
|
|
@@ -6739,7 +6741,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6739
6741
|
});
|
|
6740
6742
|
},
|
|
6741
6743
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6742
|
-
[
|
|
6744
|
+
[je.x, je.y]
|
|
6743
6745
|
), I(
|
|
6744
6746
|
() => {
|
|
6745
6747
|
const {
|
|
@@ -6768,7 +6770,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6768
6770
|
},
|
|
6769
6771
|
over: Ke
|
|
6770
6772
|
};
|
|
6771
|
-
|
|
6773
|
+
At(() => {
|
|
6772
6774
|
Xi(Ke), re?.(V), N({
|
|
6773
6775
|
type: "onDragOver",
|
|
6774
6776
|
event: V
|
|
@@ -6782,7 +6784,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6782
6784
|
activatorEvent: K,
|
|
6783
6785
|
active: O,
|
|
6784
6786
|
activeNode: ae,
|
|
6785
|
-
collisionRect:
|
|
6787
|
+
collisionRect: Ue,
|
|
6786
6788
|
collisions: rt,
|
|
6787
6789
|
droppableRects: Ee,
|
|
6788
6790
|
draggableNodes: E,
|
|
@@ -6791,16 +6793,16 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6791
6793
|
droppableContainers: A,
|
|
6792
6794
|
over: Te,
|
|
6793
6795
|
scrollableAncestors: ke,
|
|
6794
|
-
scrollAdjustedTranslate:
|
|
6796
|
+
scrollAdjustedTranslate: je
|
|
6795
6797
|
}, S.current = {
|
|
6796
6798
|
initial: $e,
|
|
6797
|
-
translated:
|
|
6799
|
+
translated: Ue
|
|
6798
6800
|
};
|
|
6799
|
-
}, [O, ae, rt,
|
|
6801
|
+
}, [O, ae, rt, Ue, E, Ge, $e, Ee, A, Te, ke, je]), Ha({
|
|
6800
6802
|
...Oe,
|
|
6801
6803
|
delta: T,
|
|
6802
|
-
draggingRect:
|
|
6803
|
-
pointerCoordinates:
|
|
6804
|
+
draggingRect: Ue,
|
|
6805
|
+
pointerCoordinates: ji,
|
|
6804
6806
|
scrollableAncestors: ke,
|
|
6805
6807
|
scrollableAncestorRects: St
|
|
6806
6808
|
});
|
|
@@ -6822,7 +6824,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6822
6824
|
measuringConfiguration: te,
|
|
6823
6825
|
measuringScheduled: it,
|
|
6824
6826
|
windowRect: ai
|
|
6825
|
-
}), [O, ae, G, K, rt, nt, Re, E, A, Ee, Te, Fe, ke, St, te, it, ai]),
|
|
6827
|
+
}), [O, ae, G, K, rt, nt, Re, E, A, Ee, Te, Fe, ke, St, te, it, ai]), jr = H(() => ({
|
|
6826
6828
|
activatorEvent: K,
|
|
6827
6829
|
activators: Vi,
|
|
6828
6830
|
active: O,
|
|
@@ -6838,7 +6840,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6838
6840
|
return M.createElement(ar.Provider, {
|
|
6839
6841
|
value: w
|
|
6840
6842
|
}, M.createElement(_t.Provider, {
|
|
6841
|
-
value:
|
|
6843
|
+
value: jr
|
|
6842
6844
|
}, M.createElement(Cr.Provider, {
|
|
6843
6845
|
value: $r
|
|
6844
6846
|
}, M.createElement(si.Provider, {
|
|
@@ -6849,7 +6851,7 @@ const ll = /* @__PURE__ */ uo(function(e) {
|
|
|
6849
6851
|
...a,
|
|
6850
6852
|
hiddenTextDescribedById: he
|
|
6851
6853
|
}));
|
|
6852
|
-
function
|
|
6854
|
+
function Ur() {
|
|
6853
6855
|
const q = Q?.autoScrollEnabled === !1, ie = typeof c == "object" ? c.enabled === !1 : c === !1, ne = y && !q && !ie;
|
|
6854
6856
|
return typeof c == "object" ? {
|
|
6855
6857
|
...c,
|
|
@@ -6942,7 +6944,7 @@ function gl(n) {
|
|
|
6942
6944
|
} = {
|
|
6943
6945
|
...fl,
|
|
6944
6946
|
...r
|
|
6945
|
-
}, D = vt(b ?? i), N =
|
|
6947
|
+
}, D = vt(b ?? i), N = U(
|
|
6946
6948
|
() => {
|
|
6947
6949
|
if (!u.current) {
|
|
6948
6950
|
u.current = !0;
|
|
@@ -6957,7 +6959,7 @@ function gl(n) {
|
|
|
6957
6959
|
), w = ri({
|
|
6958
6960
|
callback: N,
|
|
6959
6961
|
disabled: _ || !o
|
|
6960
|
-
}), R =
|
|
6962
|
+
}), R = U((E, T) => {
|
|
6961
6963
|
w && (T && (w.unobserve(T), u.current = !1), E && w.observe(E));
|
|
6962
6964
|
}, [w]), [v, y] = Gt(R), m = vt(e);
|
|
6963
6965
|
return I(() => {
|
|
@@ -7013,7 +7015,7 @@ function pl(n) {
|
|
|
7013
7015
|
Promise.resolve(e(d, s)).then(() => {
|
|
7014
7016
|
r(null);
|
|
7015
7017
|
});
|
|
7016
|
-
}, [e, i, s]), M.createElement(M.Fragment, null, t, i ?
|
|
7018
|
+
}, [e, i, s]), M.createElement(M.Fragment, null, t, i ? Cs(i, {
|
|
7017
7019
|
ref: o
|
|
7018
7020
|
}) : null);
|
|
7019
7021
|
}
|
|
@@ -7685,7 +7687,7 @@ const xn = ({ id: n, children: e }) => {
|
|
|
7685
7687
|
}, Wi = ({ blocks: n, sortable: e = !1, onSort: t = () => {
|
|
7686
7688
|
}, main: i = !1 }) => {
|
|
7687
7689
|
const [r, s] = B([]);
|
|
7688
|
-
|
|
7690
|
+
En(() => {
|
|
7689
7691
|
s(n.map((u, h) => ({
|
|
7690
7692
|
id: u.id ?? h.toString(),
|
|
7691
7693
|
render: u.render
|
|
@@ -7703,7 +7705,7 @@ const xn = ({ id: n, children: e }) => {
|
|
|
7703
7705
|
});
|
|
7704
7706
|
};
|
|
7705
7707
|
return f("div", {
|
|
7706
|
-
className:
|
|
7708
|
+
className: j("flex flex-wrap items-stretch gap-4", i && "flex-1"),
|
|
7707
7709
|
children: P(ll, {
|
|
7708
7710
|
sensors: c,
|
|
7709
7711
|
onDragStart: d,
|
|
@@ -7730,36 +7732,36 @@ const $l = oe(function({ children: e, aside: t, header: i, variant: r = "main-as
|
|
|
7730
7732
|
ref: s,
|
|
7731
7733
|
className: "h-full",
|
|
7732
7734
|
children: P("div", {
|
|
7733
|
-
className:
|
|
7735
|
+
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"),
|
|
7734
7736
|
children: [P("main", {
|
|
7735
|
-
className:
|
|
7737
|
+
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"),
|
|
7736
7738
|
children: [i && f("header", {
|
|
7737
|
-
className:
|
|
7739
|
+
className: j("sticky top-0 z-30 bg-f1-background"),
|
|
7738
7740
|
children: i
|
|
7739
7741
|
}), f("div", {
|
|
7740
7742
|
className: "flex-1",
|
|
7741
7743
|
children: e
|
|
7742
7744
|
})]
|
|
7743
7745
|
}), t && f("aside", {
|
|
7744
|
-
className:
|
|
7746
|
+
className: j("min-w-30 sm:basis-1/4 md:max-w-80", "order-2", r === "aside-main" ? "md:order-1" : "md:order-3"),
|
|
7745
7747
|
children: t
|
|
7746
7748
|
})]
|
|
7747
7749
|
})
|
|
7748
7750
|
});
|
|
7749
|
-
}),
|
|
7751
|
+
}), Lc = {
|
|
7750
7752
|
Page: we("Page", $l),
|
|
7751
7753
|
Block: we("Block", Qt),
|
|
7752
7754
|
BlockContent: we("BlockContent", Ko),
|
|
7753
7755
|
Group: we("Group", Ti),
|
|
7754
7756
|
GroupGrid: we("GroupGrid", Zt),
|
|
7755
7757
|
GroupMasonry: we("GroupMasonry", Wi)
|
|
7756
|
-
},
|
|
7758
|
+
}, Ic = me({
|
|
7757
7759
|
name: "StandardLayout",
|
|
7758
7760
|
type: "layout"
|
|
7759
|
-
}, Yn),
|
|
7761
|
+
}, Yn), Hc = me({
|
|
7760
7762
|
name: "TwoColumnLayout",
|
|
7761
7763
|
type: "layout"
|
|
7762
|
-
}, vo),
|
|
7764
|
+
}, vo), Bc = me({
|
|
7763
7765
|
name: "HomeLayout",
|
|
7764
7766
|
type: "layout"
|
|
7765
7767
|
}, mo);
|
|
@@ -7771,18 +7773,18 @@ function Je(n) {
|
|
|
7771
7773
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7772
7774
|
}, Je(n);
|
|
7773
7775
|
}
|
|
7774
|
-
function
|
|
7776
|
+
function jl(n, e) {
|
|
7775
7777
|
if (!(n instanceof e))
|
|
7776
7778
|
throw new TypeError("Cannot call a class as a function");
|
|
7777
7779
|
}
|
|
7778
|
-
function
|
|
7780
|
+
function Ul(n, e) {
|
|
7779
7781
|
for (var t = 0; t < e.length; t++) {
|
|
7780
7782
|
var i = e[t];
|
|
7781
7783
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Tr(i.key), i);
|
|
7782
7784
|
}
|
|
7783
7785
|
}
|
|
7784
7786
|
function Kl(n, e, t) {
|
|
7785
|
-
return e &&
|
|
7787
|
+
return e && Ul(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
7786
7788
|
}
|
|
7787
7789
|
function Xl(n, e, t) {
|
|
7788
7790
|
return e = Yt(e), Yl(n, Or() ? Reflect.construct(e, t || [], Yt(n).constructor) : e.apply(n, t));
|
|
@@ -7843,7 +7845,7 @@ function Jl(n, e) {
|
|
|
7843
7845
|
}
|
|
7844
7846
|
var oi = /* @__PURE__ */ (function(n) {
|
|
7845
7847
|
function e() {
|
|
7846
|
-
return
|
|
7848
|
+
return jl(this, e), Xl(this, e, arguments);
|
|
7847
7849
|
}
|
|
7848
7850
|
return ql(e, n), Kl(e, [{
|
|
7849
7851
|
key: "render",
|
|
@@ -7892,13 +7894,13 @@ function ec(n, e) {
|
|
|
7892
7894
|
}
|
|
7893
7895
|
function tc(n) {
|
|
7894
7896
|
var e = n.option, t = n.isActive, i = Ql(n, Zl);
|
|
7895
|
-
return typeof e == "string" ? /* @__PURE__ */ M.createElement(
|
|
7896
|
-
option: /* @__PURE__ */ M.createElement(
|
|
7897
|
+
return typeof e == "string" ? /* @__PURE__ */ M.createElement(Zi, ft({
|
|
7898
|
+
option: /* @__PURE__ */ M.createElement(Rs, ft({
|
|
7897
7899
|
type: e
|
|
7898
7900
|
}, i)),
|
|
7899
7901
|
isActive: t,
|
|
7900
7902
|
shapeType: "symbols"
|
|
7901
|
-
}, i)) : /* @__PURE__ */ M.createElement(
|
|
7903
|
+
}, i)) : /* @__PURE__ */ M.createElement(Zi, ft({
|
|
7902
7904
|
option: e,
|
|
7903
7905
|
isActive: t,
|
|
7904
7906
|
shapeType: "symbols"
|
|
@@ -8029,7 +8031,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8029
8031
|
t.setState({
|
|
8030
8032
|
isAnimationFinished: !1
|
|
8031
8033
|
});
|
|
8032
|
-
}), He(t, "id",
|
|
8034
|
+
}), He(t, "id", zs("recharts-scatter-")), t;
|
|
8033
8035
|
}
|
|
8034
8036
|
return ac(e, n), nc(e, [{
|
|
8035
8037
|
key: "renderSymbolsStatically",
|
|
@@ -8040,7 +8042,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8040
8042
|
return /* @__PURE__ */ M.createElement(lt, gt({
|
|
8041
8043
|
className: "recharts-scatter-symbol",
|
|
8042
8044
|
key: "symbol-".concat(l?.cx, "-").concat(l?.cy, "-").concat(l?.size, "-").concat(u)
|
|
8043
|
-
},
|
|
8045
|
+
}, Ss(r.props, l, u), {
|
|
8044
8046
|
role: "img"
|
|
8045
8047
|
}), /* @__PURE__ */ M.createElement(tc, gt({
|
|
8046
8048
|
option: g,
|
|
@@ -8053,7 +8055,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8053
8055
|
key: "renderSymbolsWithAnimation",
|
|
8054
8056
|
value: function() {
|
|
8055
8057
|
var i = this, r = this.props, s = r.points, o = r.isAnimationActive, a = r.animationBegin, c = r.animationDuration, d = r.animationEasing, l = r.animationId, u = this.state.prevPoints;
|
|
8056
|
-
return /* @__PURE__ */ M.createElement(
|
|
8058
|
+
return /* @__PURE__ */ M.createElement(Ns, {
|
|
8057
8059
|
begin: a,
|
|
8058
8060
|
duration: c,
|
|
8059
8061
|
isActive: o,
|
|
@@ -8071,14 +8073,14 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8071
8073
|
var g = h.t, _ = s.map(function(b, x) {
|
|
8072
8074
|
var D = u && u[x];
|
|
8073
8075
|
if (D) {
|
|
8074
|
-
var N =
|
|
8076
|
+
var N = Ot(D.cx, b.cx), w = Ot(D.cy, b.cy), R = Ot(D.size, b.size);
|
|
8075
8077
|
return ce(ce({}, b), {}, {
|
|
8076
8078
|
cx: N(g),
|
|
8077
8079
|
cy: w(g),
|
|
8078
8080
|
size: R(g)
|
|
8079
8081
|
});
|
|
8080
8082
|
}
|
|
8081
|
-
var v =
|
|
8083
|
+
var v = Ot(0, b.size);
|
|
8082
8084
|
return ce(ce({}, b), {}, {
|
|
8083
8085
|
size: v(g)
|
|
8084
8086
|
});
|
|
@@ -8090,7 +8092,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8090
8092
|
key: "renderSymbols",
|
|
8091
8093
|
value: function() {
|
|
8092
8094
|
var i = this.props, r = i.points, s = i.isAnimationActive, o = this.state.prevPoints;
|
|
8093
|
-
return s && r && r.length && (!o || !
|
|
8095
|
+
return s && r && r.length && (!o || !Bn(o, r)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(r);
|
|
8094
8096
|
}
|
|
8095
8097
|
}, {
|
|
8096
8098
|
key: "renderErrorBar",
|
|
@@ -8098,7 +8100,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8098
8100
|
var i = this.props.isAnimationActive;
|
|
8099
8101
|
if (i && !this.state.isAnimationFinished)
|
|
8100
8102
|
return null;
|
|
8101
|
-
var r = this.props, s = r.points, o = r.xAxis, a = r.yAxis, c = r.children, d =
|
|
8103
|
+
var r = this.props, s = r.points, o = r.xAxis, a = r.yAxis, c = r.children, d = Fn(c, As);
|
|
8102
8104
|
return d ? d.map(function(l, u) {
|
|
8103
8105
|
var h = l.props, g = h.direction, _ = h.dataKey;
|
|
8104
8106
|
return /* @__PURE__ */ M.cloneElement(l, {
|
|
@@ -8130,7 +8132,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8130
8132
|
};
|
|
8131
8133
|
});
|
|
8132
8134
|
else if (o === "fitting") {
|
|
8133
|
-
var h =
|
|
8135
|
+
var h = Os(r), g = h.xmin, _ = h.xmax, b = h.a, x = h.b, D = function(R) {
|
|
8134
8136
|
return b * R + x;
|
|
8135
8137
|
};
|
|
8136
8138
|
l = [{
|
|
@@ -8147,7 +8149,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8147
8149
|
}, d), {}, {
|
|
8148
8150
|
points: l
|
|
8149
8151
|
});
|
|
8150
|
-
return /* @__PURE__ */ M.isValidElement(s) ? u = /* @__PURE__ */ M.cloneElement(s, N) :
|
|
8152
|
+
return /* @__PURE__ */ M.isValidElement(s) ? u = /* @__PURE__ */ M.cloneElement(s, N) : ks(s) ? u = s(N) : u = /* @__PURE__ */ M.createElement(Ts, gt({}, N, {
|
|
8151
8153
|
type: a
|
|
8152
8154
|
})), /* @__PURE__ */ M.createElement(lt, {
|
|
8153
8155
|
className: "recharts-scatter-line",
|
|
@@ -8160,7 +8162,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8160
8162
|
var i = this.props, r = i.hide, s = i.points, o = i.line, a = i.className, c = i.xAxis, d = i.yAxis, l = i.left, u = i.top, h = i.width, g = i.height, _ = i.id, b = i.isAnimationActive;
|
|
8161
8163
|
if (r || !s || !s.length)
|
|
8162
8164
|
return null;
|
|
8163
|
-
var x = this.state.isAnimationFinished, D =
|
|
8165
|
+
var x = this.state.isAnimationFinished, D = Zr("recharts-scatter", a), N = c && c.allowDataOverflow, w = d && d.allowDataOverflow, R = N || w, v = Xe(_) ? this.id : _;
|
|
8164
8166
|
return /* @__PURE__ */ M.createElement(lt, {
|
|
8165
8167
|
className: D,
|
|
8166
8168
|
clipPath: R ? "url(#clipPath-".concat(v, ")") : null
|
|
@@ -8173,7 +8175,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8173
8175
|
height: w ? g : g * 2
|
|
8174
8176
|
}))) : null, o && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ M.createElement(lt, {
|
|
8175
8177
|
key: "recharts-scatter-symbols"
|
|
8176
|
-
}, this.renderSymbols()), (!b || x) &&
|
|
8178
|
+
}, this.renderSymbols()), (!b || x) && Wn.renderCallByParent(this.props, s));
|
|
8177
8179
|
}
|
|
8178
8180
|
}], [{
|
|
8179
8181
|
key: "getDerivedStateFromProps",
|
|
@@ -8187,7 +8189,7 @@ var Et = /* @__PURE__ */ (function(n) {
|
|
|
8187
8189
|
} : null;
|
|
8188
8190
|
}
|
|
8189
8191
|
}]);
|
|
8190
|
-
})(
|
|
8192
|
+
})(_s);
|
|
8191
8193
|
He(Et, "displayName", "Scatter");
|
|
8192
8194
|
He(Et, "defaultProps", {
|
|
8193
8195
|
xAxisId: 0,
|
|
@@ -8199,13 +8201,13 @@ He(Et, "defaultProps", {
|
|
|
8199
8201
|
data: [],
|
|
8200
8202
|
shape: "circle",
|
|
8201
8203
|
hide: !1,
|
|
8202
|
-
isAnimationActive: !
|
|
8204
|
+
isAnimationActive: !Ps.isSsr,
|
|
8203
8205
|
animationBegin: 0,
|
|
8204
8206
|
animationDuration: 400,
|
|
8205
8207
|
animationEasing: "linear"
|
|
8206
8208
|
});
|
|
8207
8209
|
He(Et, "getComposedData", function(n) {
|
|
8208
|
-
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 =
|
|
8210
|
+
var e = n.xAxis, t = n.yAxis, i = n.zAxis, r = n.item, s = n.displayedData, o = n.xAxisTicks, a = n.yAxisTicks, c = n.offset, d = r.props.tooltipType, l = Fn(r.props.children, Ms), u = Xe(e.dataKey) ? r.props.dataKey : e.dataKey, h = Xe(t.dataKey) ? r.props.dataKey : t.dataKey, g = i && i.dataKey, _ = i ? i.range : oi.defaultProps.range, b = _ && _[0], x = e.scale.bandwidth ? e.scale.bandwidth() : 0, D = t.scale.bandwidth ? t.scale.bandwidth() : 0, N = s.map(function(w, R) {
|
|
8209
8211
|
var v = zt(w, u), y = zt(w, h), m = !Xe(g) && zt(w, g) || "-", E = [{
|
|
8210
8212
|
name: Xe(e.dataKey) ? r.props.name : e.name || e.dataKey,
|
|
8211
8213
|
unit: e.unit || "",
|
|
@@ -8229,14 +8231,14 @@ He(Et, "getComposedData", function(n) {
|
|
|
8229
8231
|
dataKey: g,
|
|
8230
8232
|
type: d
|
|
8231
8233
|
});
|
|
8232
|
-
var T =
|
|
8234
|
+
var T = Qi({
|
|
8233
8235
|
axis: e,
|
|
8234
8236
|
ticks: o,
|
|
8235
8237
|
bandSize: x,
|
|
8236
8238
|
entry: w,
|
|
8237
8239
|
index: R,
|
|
8238
8240
|
dataKey: u
|
|
8239
|
-
}), A =
|
|
8241
|
+
}), A = Qi({
|
|
8240
8242
|
axis: t,
|
|
8241
8243
|
ticks: a,
|
|
8242
8244
|
bandSize: D,
|
|
@@ -8272,20 +8274,20 @@ He(Et, "getComposedData", function(n) {
|
|
|
8272
8274
|
points: N
|
|
8273
8275
|
}, c);
|
|
8274
8276
|
});
|
|
8275
|
-
var cc =
|
|
8277
|
+
var cc = Ls({
|
|
8276
8278
|
chartName: "ComposedChart",
|
|
8277
|
-
GraphicalChild: [
|
|
8279
|
+
GraphicalChild: [Gn, Is, $n, Et],
|
|
8278
8280
|
axisComponents: [{
|
|
8279
8281
|
axisType: "xAxis",
|
|
8280
|
-
AxisComp:
|
|
8282
|
+
AxisComp: jn
|
|
8281
8283
|
}, {
|
|
8282
8284
|
axisType: "yAxis",
|
|
8283
|
-
AxisComp:
|
|
8285
|
+
AxisComp: yi
|
|
8284
8286
|
}, {
|
|
8285
8287
|
axisType: "zAxis",
|
|
8286
8288
|
AxisComp: oi
|
|
8287
8289
|
}],
|
|
8288
|
-
formatAxisMap:
|
|
8290
|
+
formatAxisMap: Hs
|
|
8289
8291
|
});
|
|
8290
8292
|
const dc = (n) => {
|
|
8291
8293
|
const e = (t) => {
|
|
@@ -8314,8 +8316,8 @@ const dc = (n) => {
|
|
|
8314
8316
|
}, uc = ({ dataConfig: n, data: e, xAxis: t, yAxis: i = {
|
|
8315
8317
|
hide: !0
|
|
8316
8318
|
}, label: r = !1, hideTooltip: s = !1, hideGrid: o = !1, aspect: a, legend: c, showValueUnderLabel: d = !1, bar: l, line: u, scatter: h, onClick: g }, _) => {
|
|
8317
|
-
const b =
|
|
8318
|
-
return f(
|
|
8319
|
+
const b = Bs(e), x = l?.categories ? Array.isArray(l.categories) ? l.categories : [l.categories] : [], D = u?.categories ? Array.isArray(u.categories) ? u.categories : [u.categories] : [], N = h?.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], w = [...x, ...D, ...N], R = Math.max(...b.flatMap((m) => w.map((E) => Fs(i?.tickFormatter ? i.tickFormatter(`${m[E]}`) : `${m[E]}`)))), v = [l, u, h].filter((m) => m?.axisPosition === "left"), y = [l, u, h].filter((m) => m?.axisPosition === "right");
|
|
8320
|
+
return f(Ws, {
|
|
8319
8321
|
config: n,
|
|
8320
8322
|
ref: _,
|
|
8321
8323
|
aspect: a,
|
|
@@ -8340,15 +8342,15 @@ const dc = (n) => {
|
|
|
8340
8342
|
E.values[T.name] = T.value;
|
|
8341
8343
|
g(E);
|
|
8342
8344
|
},
|
|
8343
|
-
children: [!s && f(
|
|
8344
|
-
|
|
8345
|
-
content: f(
|
|
8345
|
+
children: [!s && f(Gs, {
|
|
8346
|
+
...$s(),
|
|
8347
|
+
content: f(js, {
|
|
8346
8348
|
yAxisFormatter: i.tickFormatter
|
|
8347
8349
|
})
|
|
8348
|
-
}), !o && f(
|
|
8349
|
-
...
|
|
8350
|
-
}), v.length > 0 && f(
|
|
8351
|
-
...
|
|
8350
|
+
}), !o && f(Us, {
|
|
8351
|
+
...Ks()
|
|
8352
|
+
}), v.length > 0 && f(yi, {
|
|
8353
|
+
...en(i),
|
|
8352
8354
|
tick: !0,
|
|
8353
8355
|
width: i.width ?? R + 20 + (y.length > 0 && v[0]?.axisLabel ? 20 : 0),
|
|
8354
8356
|
hide: i.hide || v.some((m) => m?.hideAxis),
|
|
@@ -8357,8 +8359,8 @@ const dc = (n) => {
|
|
|
8357
8359
|
angle: -90,
|
|
8358
8360
|
position: "insideLeft"
|
|
8359
8361
|
} : void 0
|
|
8360
|
-
}), y.length > 0 && f(
|
|
8361
|
-
...
|
|
8362
|
+
}), y.length > 0 && f(yi, {
|
|
8363
|
+
...en(i),
|
|
8362
8364
|
yAxisId: "right",
|
|
8363
8365
|
orientation: "right",
|
|
8364
8366
|
tick: !0,
|
|
@@ -8369,8 +8371,8 @@ const dc = (n) => {
|
|
|
8369
8371
|
angle: 90,
|
|
8370
8372
|
position: "insideRight"
|
|
8371
8373
|
} : void 0
|
|
8372
|
-
}), f(
|
|
8373
|
-
...
|
|
8374
|
+
}), f(jn, {
|
|
8375
|
+
...Xs(t),
|
|
8374
8376
|
hide: t?.hide,
|
|
8375
8377
|
tick: d ? (m) => {
|
|
8376
8378
|
const { x: E, y: T, payload: A } = m, C = e.find((F) => F.label === A.value)?.values || "", S = Object.keys(C).length === 1 ? Object.values(C)?.[0] : void 0, O = S !== void 0 && i.tickFormatter ? i.tickFormatter(`${S}`) : S.toLocaleString();
|
|
@@ -8393,19 +8395,19 @@ const dc = (n) => {
|
|
|
8393
8395
|
})]
|
|
8394
8396
|
});
|
|
8395
8397
|
} : void 0
|
|
8396
|
-
}), x.map((m, E) => f(
|
|
8398
|
+
}), x.map((m, E) => f($n, {
|
|
8397
8399
|
isAnimationActive: !1,
|
|
8398
8400
|
dataKey: String(m),
|
|
8399
8401
|
fill: n[m].color ? ct(n[m].color) : ui(E),
|
|
8400
8402
|
radius: 4,
|
|
8401
8403
|
maxBarSize: 32,
|
|
8402
|
-
children: r && f(
|
|
8404
|
+
children: r && f(Wn, {
|
|
8403
8405
|
position: "top",
|
|
8404
8406
|
offset: 10,
|
|
8405
8407
|
className: "fill-f1-foreground",
|
|
8406
8408
|
fontSize: 12
|
|
8407
8409
|
}, `label-${String(m)}`)
|
|
8408
|
-
}, `bar-${String(m)}`)), D.map((m, E) => f(
|
|
8410
|
+
}, `bar-${String(m)}`)), D.map((m, E) => f(Gn, {
|
|
8409
8411
|
type: u?.lineType ?? "natural",
|
|
8410
8412
|
dataKey: String(m),
|
|
8411
8413
|
stroke: n[m].color ? ct(n[m].color) : ui(x.length + E),
|
|
@@ -8420,8 +8422,8 @@ const dc = (n) => {
|
|
|
8420
8422
|
isAnimationActive: !1,
|
|
8421
8423
|
yAxisId: h?.axisPosition === "right" ? "right" : void 0,
|
|
8422
8424
|
shape: dc(String(m))
|
|
8423
|
-
}, `scatter-${String(m)}`)), c && f(
|
|
8424
|
-
content: f(
|
|
8425
|
+
}, `scatter-${String(m)}`)), c && f(Ys, {
|
|
8426
|
+
content: f(Vs, {
|
|
8425
8427
|
nameKey: "label"
|
|
8426
8428
|
}),
|
|
8427
8429
|
align: "center",
|
|
@@ -8431,14 +8433,14 @@ const dc = (n) => {
|
|
|
8431
8433
|
})]
|
|
8432
8434
|
})
|
|
8433
8435
|
});
|
|
8434
|
-
}, hc =
|
|
8436
|
+
}, hc = Un(uc), fc = ({ value: n, max: e = 100, label: t, color: i }, r) => {
|
|
8435
8437
|
const s = i ? ct(i) : ct("categorical-1"), o = n / e * 100;
|
|
8436
8438
|
return P("div", {
|
|
8437
8439
|
className: "flex items-center space-x-2",
|
|
8438
8440
|
"aria-live": "polite",
|
|
8439
8441
|
children: [f("div", {
|
|
8440
8442
|
className: "flex-grow",
|
|
8441
|
-
children: f(
|
|
8443
|
+
children: f(qs, {
|
|
8442
8444
|
color: s,
|
|
8443
8445
|
value: o,
|
|
8444
8446
|
className: "w-full",
|
|
@@ -8452,49 +8454,49 @@ const dc = (n) => {
|
|
|
8452
8454
|
children: t
|
|
8453
8455
|
})]
|
|
8454
8456
|
});
|
|
8455
|
-
}, gc =
|
|
8457
|
+
}, gc = Un(fc), Fc = me(
|
|
8456
8458
|
{
|
|
8457
8459
|
name: "AreaChart",
|
|
8458
8460
|
type: "info"
|
|
8459
8461
|
},
|
|
8460
|
-
|
|
8461
|
-
),
|
|
8462
|
+
Js
|
|
8463
|
+
), Wc = me(
|
|
8462
8464
|
{
|
|
8463
8465
|
name: "BarChart",
|
|
8464
8466
|
type: "info"
|
|
8465
8467
|
},
|
|
8466
|
-
|
|
8467
|
-
),
|
|
8468
|
+
Zs
|
|
8469
|
+
), Gc = me(
|
|
8468
8470
|
{
|
|
8469
8471
|
name: "CategoryBarChart",
|
|
8470
8472
|
type: "info"
|
|
8471
8473
|
},
|
|
8472
|
-
|
|
8473
|
-
),
|
|
8474
|
+
Qs
|
|
8475
|
+
), $c = me(
|
|
8474
8476
|
{
|
|
8475
8477
|
name: "LineChart",
|
|
8476
8478
|
type: "info"
|
|
8477
8479
|
},
|
|
8478
|
-
|
|
8479
|
-
),
|
|
8480
|
+
eo
|
|
8481
|
+
), jc = me(
|
|
8480
8482
|
{
|
|
8481
8483
|
name: "PieChart",
|
|
8482
8484
|
type: "info"
|
|
8483
8485
|
},
|
|
8484
|
-
|
|
8486
|
+
to
|
|
8485
8487
|
), Uc = me(
|
|
8486
8488
|
{
|
|
8487
8489
|
name: "VerticalBarChart",
|
|
8488
8490
|
type: "info"
|
|
8489
8491
|
},
|
|
8490
|
-
|
|
8491
|
-
),
|
|
8492
|
+
io
|
|
8493
|
+
), Kc = me(
|
|
8492
8494
|
{
|
|
8493
8495
|
name: "ProgressBarChart",
|
|
8494
8496
|
type: "info"
|
|
8495
8497
|
},
|
|
8496
8498
|
gc
|
|
8497
|
-
),
|
|
8499
|
+
), Xc = me(
|
|
8498
8500
|
{
|
|
8499
8501
|
name: "ComboChart",
|
|
8500
8502
|
type: "info"
|
|
@@ -8507,11 +8509,11 @@ const dc = (n) => {
|
|
|
8507
8509
|
show: n.show ?? !0,
|
|
8508
8510
|
invertStatus: n.invertStatus ?? !1
|
|
8509
8511
|
}, Mr = ({ label: n, ...e }) => {
|
|
8510
|
-
const t =
|
|
8512
|
+
const t = no(), i = t(e.value, {
|
|
8511
8513
|
formatterOptions: {
|
|
8512
8514
|
decimalPlaces: 2
|
|
8513
8515
|
}
|
|
8514
|
-
}), r = pc(e.trend), s = t(e.comparison), o =
|
|
8516
|
+
}), r = pc(e.trend), s = t(e.comparison), o = ro(i.numericValue, i.formatterOptions), a = tn(s.numericValue), c = tn(i.numericValue), d = H(() => {
|
|
8515
8517
|
if (!(!a || !r.show) && !(!a || !c))
|
|
8516
8518
|
return (c - a) / a * 100;
|
|
8517
8519
|
}, [c, a, r.show]);
|
|
@@ -8524,7 +8526,7 @@ const dc = (n) => {
|
|
|
8524
8526
|
children: [f("span", {
|
|
8525
8527
|
className: "font-bold text-2xl",
|
|
8526
8528
|
children: o
|
|
8527
|
-
}), a !== void 0 && f(
|
|
8529
|
+
}), a !== void 0 && f(so, {
|
|
8528
8530
|
percentage: d,
|
|
8529
8531
|
amount: s,
|
|
8530
8532
|
invertStatus: r.invertStatus,
|
|
@@ -8546,9 +8548,9 @@ const dc = (n) => {
|
|
|
8546
8548
|
})]
|
|
8547
8549
|
});
|
|
8548
8550
|
Mr.displayName = "F0BigNumber";
|
|
8549
|
-
const vc =
|
|
8551
|
+
const vc = Dn(Mr, mc), Yc = we("F0BigNumber", vc), Vc = Qr.filter(
|
|
8550
8552
|
(n) => n !== "ai"
|
|
8551
|
-
),
|
|
8553
|
+
), qc = Nn, Jc = ["default", "outline", "neutral"], Zc = Nn, Qc = ["sm", "md", "lg"], ed = ["compact", "expanded"], td = es, id = [
|
|
8552
8554
|
"viridian",
|
|
8553
8555
|
"malibu",
|
|
8554
8556
|
"yellow",
|
|
@@ -8564,26 +8566,26 @@ const vc = Sn(Mr, mc), Xc = we("F0BigNumber", vc), Yc = Ms.filter(
|
|
|
8564
8566
|
const [t, i] = B(!1), r = f(Mt, {
|
|
8565
8567
|
label: `+${n}`
|
|
8566
8568
|
});
|
|
8567
|
-
return e?.length ? P(
|
|
8569
|
+
return e?.length ? P(An, {
|
|
8568
8570
|
open: t,
|
|
8569
8571
|
onOpenChange: i,
|
|
8570
|
-
children: [f(
|
|
8572
|
+
children: [f(On, {
|
|
8571
8573
|
asChild: !0,
|
|
8572
8574
|
children: f("button", {
|
|
8573
|
-
className:
|
|
8575
|
+
className: ts("inline-flex flex-shrink-0 items-center"),
|
|
8574
8576
|
children: r
|
|
8575
8577
|
})
|
|
8576
|
-
}), f(
|
|
8578
|
+
}), f(kn, {
|
|
8577
8579
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
8578
8580
|
align: "end",
|
|
8579
|
-
children: P(
|
|
8581
|
+
children: P(Tn, {
|
|
8580
8582
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
8581
8583
|
children: [e.map((s, o) => f("div", {
|
|
8582
8584
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
8583
8585
|
children: f(Mt, {
|
|
8584
8586
|
...s
|
|
8585
8587
|
})
|
|
8586
|
-
}, o)), f(
|
|
8588
|
+
}, o)), f(zn, {
|
|
8587
8589
|
orientation: "vertical",
|
|
8588
8590
|
className: "[&_div]:bg-f1-background"
|
|
8589
8591
|
})]
|
|
@@ -8594,7 +8596,7 @@ const vc = Sn(Mr, mc), Xc = we("F0BigNumber", vc), Yc = Ms.filter(
|
|
|
8594
8596
|
Ei.displayName = "ChipCounter";
|
|
8595
8597
|
const Lr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
8596
8598
|
if (i === "fill")
|
|
8597
|
-
return f(
|
|
8599
|
+
return f(is, {
|
|
8598
8600
|
items: n,
|
|
8599
8601
|
renderListItem: (c) => f(Mt, {
|
|
8600
8602
|
...c
|
|
@@ -8620,9 +8622,9 @@ const Lr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8620
8622
|
});
|
|
8621
8623
|
};
|
|
8622
8624
|
Lr.displayName = "F0ChipList";
|
|
8623
|
-
const
|
|
8625
|
+
const nd = we("F0ChipList", Lr), rd = ns, yc = 388;
|
|
8624
8626
|
function bc({ filters: n, value: e, onChange: t, height: i, width: r = 600, className: s, showApplyButton: o = !0, applyButtonLabel: a }) {
|
|
8625
|
-
const c =
|
|
8627
|
+
const c = Rn(), [d, l] = B(null), [u, h] = B(e);
|
|
8626
8628
|
I(() => {
|
|
8627
8629
|
h(e);
|
|
8628
8630
|
}, [e]), I(() => {
|
|
@@ -8630,7 +8632,7 @@ function bc({ filters: n, value: e, onChange: t, height: i, width: r = 600, clas
|
|
|
8630
8632
|
const x = Object.keys(n);
|
|
8631
8633
|
if (x.length > 0) {
|
|
8632
8634
|
const D = x.find((N) => {
|
|
8633
|
-
const w = u[N], R =
|
|
8635
|
+
const w = u[N], R = qi(n[N].type);
|
|
8634
8636
|
return w !== void 0 && !R.isEmpty(w, {
|
|
8635
8637
|
schema: n[N],
|
|
8636
8638
|
i18n: c
|
|
@@ -8649,15 +8651,15 @@ function bc({ filters: n, value: e, onChange: t, height: i, width: r = 600, clas
|
|
|
8649
8651
|
}, _ = () => {
|
|
8650
8652
|
t(u);
|
|
8651
8653
|
}, b = H(() => i || Object.entries(n).reduce((D, [N, w]) => {
|
|
8652
|
-
const R =
|
|
8654
|
+
const R = qi(w.type);
|
|
8653
8655
|
return Math.max(D, R?.formHeight || yc);
|
|
8654
8656
|
}, 0), [n, i]);
|
|
8655
8657
|
return !n || Object.keys(n).length === 0 ? null : f("div", {
|
|
8656
|
-
className:
|
|
8658
|
+
className: j("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", s),
|
|
8657
8659
|
style: {
|
|
8658
8660
|
width: r
|
|
8659
8661
|
},
|
|
8660
|
-
children: f(
|
|
8662
|
+
children: f(rs, {
|
|
8661
8663
|
filters: n,
|
|
8662
8664
|
tempFilters: u,
|
|
8663
8665
|
selectedFilterKey: d,
|
|
@@ -8677,7 +8679,7 @@ const xc = oe((n, e) => f(ki, {
|
|
|
8677
8679
|
...n
|
|
8678
8680
|
}));
|
|
8679
8681
|
xc.displayName = "F0Heading";
|
|
8680
|
-
const
|
|
8682
|
+
const sd = we(
|
|
8681
8683
|
"F0GridStack",
|
|
8682
8684
|
Oi
|
|
8683
8685
|
), wc = ({ benefits: n }) => f("div", {
|
|
@@ -8687,8 +8689,8 @@ const rd = we(
|
|
|
8687
8689
|
}, t))
|
|
8688
8690
|
}), Cc = ({ text: n }) => P("div", {
|
|
8689
8691
|
className: "flex flex-row items-start gap-2",
|
|
8690
|
-
children: [f(
|
|
8691
|
-
icon:
|
|
8692
|
+
children: [f(Sn, {
|
|
8693
|
+
icon: os,
|
|
8692
8694
|
size: "md",
|
|
8693
8695
|
className: "text-f1-icon-positive"
|
|
8694
8696
|
}), f("span", {
|
|
@@ -8696,7 +8698,7 @@ const rd = we(
|
|
|
8696
8698
|
})]
|
|
8697
8699
|
}), Ir = oe(({ title: n, image: e, benefits: t, actions: i, withShadow: r = !0, module: s, moduleName: o, tag: a, promoTag: c }, d) => P("div", {
|
|
8698
8700
|
ref: d,
|
|
8699
|
-
className:
|
|
8701
|
+
className: j("bg-white flex flex-row rounded-xl border border-f1-border-secondary", r && "shadow-md"),
|
|
8700
8702
|
children: [f("div", {
|
|
8701
8703
|
className: "aspect-auto flex-shrink-0 overflow-hidden rounded-xl py-1 pl-1",
|
|
8702
8704
|
children: f("img", {
|
|
@@ -8712,7 +8714,7 @@ const rd = we(
|
|
|
8712
8714
|
className: "flex flex-col gap-2",
|
|
8713
8715
|
children: [P("div", {
|
|
8714
8716
|
className: "flex flex-row items-center gap-2",
|
|
8715
|
-
children: [s && f(
|
|
8717
|
+
children: [s && f(Pn, {
|
|
8716
8718
|
module: s
|
|
8717
8719
|
}), o && f("p", {
|
|
8718
8720
|
className: "text-base font-medium text-f1-foreground",
|
|
@@ -8720,10 +8722,10 @@ const rd = we(
|
|
|
8720
8722
|
})]
|
|
8721
8723
|
}), (a || c) && P("div", {
|
|
8722
8724
|
className: "flex justify-start gap-2",
|
|
8723
|
-
children: [a && f(
|
|
8725
|
+
children: [a && f(ss, {
|
|
8724
8726
|
icon: a.icon,
|
|
8725
8727
|
text: a.label
|
|
8726
|
-
}), c && f(
|
|
8728
|
+
}), c && f(oo, {
|
|
8727
8729
|
variant: c.variant || "positive",
|
|
8728
8730
|
text: c.label
|
|
8729
8731
|
})]
|
|
@@ -8745,33 +8747,33 @@ function _c({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8745
8747
|
const [o, a] = B(n);
|
|
8746
8748
|
return I(() => {
|
|
8747
8749
|
a(n);
|
|
8748
|
-
}, [n]), f(
|
|
8750
|
+
}, [n]), f(as, {
|
|
8749
8751
|
open: o,
|
|
8750
8752
|
onOpenChange: (d) => {
|
|
8751
8753
|
a(d), d || e();
|
|
8752
8754
|
},
|
|
8753
8755
|
modal: !0,
|
|
8754
|
-
children: P(
|
|
8756
|
+
children: P(ls, {
|
|
8755
8757
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8756
8758
|
container: s,
|
|
8757
8759
|
children: [P("div", {
|
|
8758
8760
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8759
|
-
children: [P(
|
|
8761
|
+
children: [P(cs, {
|
|
8760
8762
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8761
|
-
children: [r && f(
|
|
8763
|
+
children: [r && f(Pn, {
|
|
8762
8764
|
module: r,
|
|
8763
8765
|
size: "lg"
|
|
8764
8766
|
}), t]
|
|
8765
8767
|
}), f(Si, {
|
|
8766
8768
|
variant: "outline",
|
|
8767
|
-
icon:
|
|
8769
|
+
icon: Mn,
|
|
8768
8770
|
onClick: e,
|
|
8769
8771
|
label: "Close modal",
|
|
8770
8772
|
hideLabel: !0
|
|
8771
8773
|
})]
|
|
8772
|
-
}), P(
|
|
8774
|
+
}), P(Tn, {
|
|
8773
8775
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
8774
|
-
children: [i, f(
|
|
8776
|
+
children: [i, f(zn, {
|
|
8775
8777
|
orientation: "vertical",
|
|
8776
8778
|
className: "[&_div]:bg-f1-background"
|
|
8777
8779
|
})]
|
|
@@ -8779,7 +8781,7 @@ function _c({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8779
8781
|
})
|
|
8780
8782
|
});
|
|
8781
8783
|
}
|
|
8782
|
-
function
|
|
8784
|
+
function od({ 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: _, tag: b, promoTag: x, showResponseDialog: D = !0 }) {
|
|
8783
8785
|
const [N, w] = B(n), [R, v] = B(null), [y, m] = B(!1), E = async () => {
|
|
8784
8786
|
if (l?.onClick) {
|
|
8785
8787
|
m(!0);
|
|
@@ -8829,7 +8831,7 @@ function sd({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8829
8831
|
})
|
|
8830
8832
|
})
|
|
8831
8833
|
})
|
|
8832
|
-
}), R && D && f(
|
|
8834
|
+
}), R && D && f(Kn, {
|
|
8833
8835
|
open: !0,
|
|
8834
8836
|
onClose: () => {
|
|
8835
8837
|
T(), v(null);
|
|
@@ -8852,17 +8854,17 @@ function Ec({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8852
8854
|
}, [o, d]);
|
|
8853
8855
|
const h = n?.includes(".mp4");
|
|
8854
8856
|
return f(qt, {
|
|
8855
|
-
children: d ? null : P(
|
|
8857
|
+
children: d ? null : P(ao, {
|
|
8856
8858
|
style: {
|
|
8857
8859
|
width: s
|
|
8858
8860
|
},
|
|
8859
8861
|
className: "relative bg-f1-background p-1",
|
|
8860
|
-
children: [P(
|
|
8862
|
+
children: [P(lo, {
|
|
8861
8863
|
children: [r && f("div", {
|
|
8862
8864
|
className: "absolute right-2 top-2 z-10",
|
|
8863
8865
|
children: f(qe, {
|
|
8864
8866
|
variant: "ghost",
|
|
8865
|
-
icon:
|
|
8867
|
+
icon: Mn,
|
|
8866
8868
|
size: "sm",
|
|
8867
8869
|
hideLabel: !0,
|
|
8868
8870
|
onClick: u,
|
|
@@ -8884,18 +8886,18 @@ function Ec({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8884
8886
|
}))
|
|
8885
8887
|
}), P("div", {
|
|
8886
8888
|
className: "flex flex-col gap-[2px] p-3",
|
|
8887
|
-
children: [f(
|
|
8889
|
+
children: [f(nn, {
|
|
8888
8890
|
className: "text-lg font-medium",
|
|
8889
8891
|
children: e
|
|
8890
|
-
}), f(
|
|
8892
|
+
}), f(nn, {
|
|
8891
8893
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8892
8894
|
children: t
|
|
8893
8895
|
})]
|
|
8894
8896
|
})]
|
|
8895
8897
|
})]
|
|
8896
|
-
}), a && f(
|
|
8898
|
+
}), a && f(co, {
|
|
8897
8899
|
className: "p-3",
|
|
8898
|
-
children: a.map((g) => g.type === "upsell" ? f(
|
|
8900
|
+
children: a.map((g) => g.type === "upsell" ? f(Xn, {
|
|
8899
8901
|
label: g.label,
|
|
8900
8902
|
onRequest: g.onClick,
|
|
8901
8903
|
errorMessage: g.errorMessage,
|
|
@@ -8915,7 +8917,7 @@ function Ec({ mediaUrl: n, title: e, description: t, onClose: i, dismissible: r,
|
|
|
8915
8917
|
});
|
|
8916
8918
|
}
|
|
8917
8919
|
const Dc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
8918
|
-
const s = (c) => c.variant === "promote" ? f(
|
|
8920
|
+
const s = (c) => c.variant === "promote" ? f(Xn, {
|
|
8919
8921
|
label: c.label,
|
|
8920
8922
|
onRequest: async () => {
|
|
8921
8923
|
await c.onClick();
|
|
@@ -8935,7 +8937,7 @@ const Dc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
8935
8937
|
size: "md",
|
|
8936
8938
|
icon: c.icon
|
|
8937
8939
|
}), o = e?.variant !== "promote" ? e : void 0, a = t?.variant !== "promote" ? t : void 0;
|
|
8938
|
-
return P(
|
|
8940
|
+
return P(uo, {
|
|
8939
8941
|
ref: r,
|
|
8940
8942
|
...i,
|
|
8941
8943
|
primaryAction: o,
|
|
@@ -8944,7 +8946,7 @@ const Dc = oe(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
8944
8946
|
});
|
|
8945
8947
|
});
|
|
8946
8948
|
Dc.displayName = "UpsellingBanner";
|
|
8947
|
-
function
|
|
8949
|
+
function ad({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r = "md", showIcon: s = !0, side: o = "right", align: a = "center", icon: c = ds, mediaUrl: d, title: l, description: u, width: h = "300px", trackVisibility: g, actions: _, onClick: b, hideLabel: x = !1 }) {
|
|
8948
8950
|
const [D, N] = B(!1), [w, R] = B(null), [v, y] = B(null), m = (S) => {
|
|
8949
8951
|
e(S), b && b();
|
|
8950
8952
|
}, E = async (S) => {
|
|
@@ -8963,10 +8965,10 @@ function od({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8963
8965
|
onClick: () => E(S)
|
|
8964
8966
|
} : S);
|
|
8965
8967
|
return P(qt, {
|
|
8966
|
-
children: [P(
|
|
8968
|
+
children: [P(An, {
|
|
8967
8969
|
open: A,
|
|
8968
8970
|
onOpenChange: m,
|
|
8969
|
-
children: [f(
|
|
8971
|
+
children: [f(On, {
|
|
8970
8972
|
asChild: !0,
|
|
8971
8973
|
children: f(qe, {
|
|
8972
8974
|
variant: i,
|
|
@@ -8976,7 +8978,7 @@ function od({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8976
8978
|
onClick: () => e(n),
|
|
8977
8979
|
hideLabel: x
|
|
8978
8980
|
})
|
|
8979
|
-
}), f(
|
|
8981
|
+
}), f(kn, {
|
|
8980
8982
|
side: o,
|
|
8981
8983
|
align: a,
|
|
8982
8984
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
@@ -8992,7 +8994,7 @@ function od({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8992
8994
|
showConfirmation: !1
|
|
8993
8995
|
})
|
|
8994
8996
|
})]
|
|
8995
|
-
}), v?.type === "upsell" && v.showConfirmation && w && f(
|
|
8997
|
+
}), v?.type === "upsell" && v.showConfirmation && w && f(Kn, {
|
|
8996
8998
|
open: !0,
|
|
8997
8999
|
onClose: T,
|
|
8998
9000
|
success: w === "success",
|
|
@@ -9006,7 +9008,7 @@ function od({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
9006
9008
|
}
|
|
9007
9009
|
const Rc = Ae(null), Sc = ({ children: n, fullScreen: e = !0 }) => {
|
|
9008
9010
|
const t = L(null), [i, r] = B(t.current);
|
|
9009
|
-
return
|
|
9011
|
+
return vs(() => {
|
|
9010
9012
|
r(t.current);
|
|
9011
9013
|
}, []), f(Rc.Provider, {
|
|
9012
9014
|
value: {
|
|
@@ -9015,33 +9017,33 @@ const Rc = Ae(null), Sc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9015
9017
|
children: f("div", {
|
|
9016
9018
|
ref: t,
|
|
9017
9019
|
id: "f0-layout",
|
|
9018
|
-
className:
|
|
9020
|
+
className: j({
|
|
9019
9021
|
"flex h-screen w-screen flex-col bg-[#F5F6F8] dark:bg-[#0D1625]": e
|
|
9020
9022
|
}),
|
|
9021
9023
|
children: n
|
|
9022
9024
|
})
|
|
9023
9025
|
});
|
|
9024
|
-
}, Nc = ({ children: n }) => f(
|
|
9026
|
+
}, Nc = ({ children: n }) => f(go, {
|
|
9025
9027
|
reducedMotion: "user",
|
|
9026
9028
|
children: n
|
|
9027
|
-
}),
|
|
9028
|
-
children: f(
|
|
9029
|
+
}), ld = ({ children: n, layout: e, link: t, privacyModeInitiallyEnabled: i, image: r, i18n: s, l10n: o, isDev: a = !1, dataCollectionStorageHandler: c, showExperimentalWarnings: d = !1 }) => f(Nc, {
|
|
9030
|
+
children: f(us, {
|
|
9029
9031
|
isDev: a,
|
|
9030
9032
|
showExperimentalWarnings: d,
|
|
9031
|
-
children: f(
|
|
9033
|
+
children: f(hs, {
|
|
9032
9034
|
...o,
|
|
9033
|
-
children: f(
|
|
9035
|
+
children: f(fs, {
|
|
9034
9036
|
...s,
|
|
9035
|
-
children: f(
|
|
9037
|
+
children: f(gs, {
|
|
9036
9038
|
...t,
|
|
9037
9039
|
children: f(Sc, {
|
|
9038
9040
|
...e,
|
|
9039
|
-
children: f(
|
|
9040
|
-
children: f(
|
|
9041
|
+
children: f(ps, {
|
|
9042
|
+
children: f(ho, {
|
|
9041
9043
|
initiallyEnabled: i,
|
|
9042
|
-
children: f(
|
|
9044
|
+
children: f(ms, {
|
|
9043
9045
|
...r,
|
|
9044
|
-
children: f(
|
|
9046
|
+
children: f(fo, {
|
|
9045
9047
|
handler: c,
|
|
9046
9048
|
children: n
|
|
9047
9049
|
})
|
|
@@ -9053,7 +9055,7 @@ const Rc = Ae(null), Sc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9053
9055
|
})
|
|
9054
9056
|
})
|
|
9055
9057
|
})
|
|
9056
|
-
}), _n = (n) => `datacollection-${n}`,
|
|
9058
|
+
}), _n = (n) => `datacollection-${n}`, cd = {
|
|
9057
9059
|
get: async (n) => JSON.parse(
|
|
9058
9060
|
localStorage.getItem(_n(n)) ?? "{}"
|
|
9059
9061
|
),
|
|
@@ -9062,113 +9064,113 @@ const Rc = Ae(null), Sc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9062
9064
|
}
|
|
9063
9065
|
};
|
|
9064
9066
|
export {
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9067
|
+
Fc as AreaChart,
|
|
9068
|
+
hd as Await,
|
|
9069
|
+
Wc as BarChart,
|
|
9070
|
+
Gc as CategoryBarChart,
|
|
9071
|
+
Xc as ComboChart,
|
|
9072
|
+
Mc as Dashboard,
|
|
9073
|
+
Vd as DndProvider,
|
|
9072
9074
|
fd as EmojiImage,
|
|
9073
9075
|
gd as F0Avatar,
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9076
|
+
qd as F0AvatarAlert,
|
|
9077
|
+
pd as F0AvatarCompany,
|
|
9078
|
+
Jd as F0AvatarDate,
|
|
9079
|
+
md as F0AvatarEmoji,
|
|
9080
|
+
vd as F0AvatarFile,
|
|
9081
|
+
yd as F0AvatarIcon,
|
|
9082
|
+
Zd as F0AvatarList,
|
|
9083
|
+
Pn as F0AvatarModule,
|
|
9084
|
+
bd as F0AvatarPerson,
|
|
9085
|
+
xd as F0AvatarTeam,
|
|
9086
|
+
Yc as F0BigNumber,
|
|
9085
9087
|
qe as F0Button,
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9088
|
+
wd as F0ButtonDropdown,
|
|
9089
|
+
Cd as F0ButtonToggle,
|
|
9090
|
+
Qd as F0Card,
|
|
9091
|
+
_d as F0Checkbox,
|
|
9092
|
+
nd as F0ChipList,
|
|
9093
|
+
eu as F0DatePicker,
|
|
9094
|
+
Ed as F0Dialog,
|
|
9095
|
+
Dd as F0DialogContext,
|
|
9096
|
+
Rd as F0DialogProvider,
|
|
9097
|
+
Sd as F0EventCatcherProvider,
|
|
9096
9098
|
bc as F0FilterPickerContent,
|
|
9097
|
-
|
|
9099
|
+
sd as F0GridStack,
|
|
9098
9100
|
xc as F0Heading,
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9101
|
+
Sn as F0Icon,
|
|
9102
|
+
Nd as F0Link,
|
|
9103
|
+
ld as F0Provider,
|
|
9104
|
+
Ad as F0Select,
|
|
9105
|
+
tu as F0TagAlert,
|
|
9106
|
+
so as F0TagBalance,
|
|
9107
|
+
iu as F0TagCompany,
|
|
9108
|
+
nu as F0TagDot,
|
|
9109
|
+
ru as F0TagList,
|
|
9110
|
+
su as F0TagPerson,
|
|
9111
|
+
ss as F0TagRaw,
|
|
9112
|
+
oo as F0TagStatus,
|
|
9113
|
+
ou as F0TagTeam,
|
|
9112
9114
|
tr as F0Text,
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9115
|
+
Od as GROUP_ID_SYMBOL,
|
|
9116
|
+
Bc as HomeLayout,
|
|
9117
|
+
Lc as Layout,
|
|
9118
|
+
$c as LineChart,
|
|
9119
|
+
kd as OneFilterPicker,
|
|
9120
|
+
jc as PieChart,
|
|
9121
|
+
ho as PrivacyModeProvider,
|
|
9120
9122
|
Ir as ProductBlankslate,
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
+
au as ProductCard,
|
|
9124
|
+
od as ProductModal,
|
|
9123
9125
|
Ec as ProductWidget,
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9126
|
+
Kc as ProgressBarChart,
|
|
9127
|
+
Ic as StandardLayout,
|
|
9128
|
+
lu as Tag,
|
|
9129
|
+
cu as TagCounter,
|
|
9130
|
+
Hc as TwoColumnLayout,
|
|
9131
|
+
Kn as UpsellRequestResponseDialog,
|
|
9130
9132
|
Dc as UpsellingBanner,
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
+
Xn as UpsellingButton,
|
|
9134
|
+
ad as UpsellingPopover,
|
|
9133
9135
|
Uc as VerticalBarChart,
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9136
|
+
Pc as avatarVariants,
|
|
9137
|
+
Td as buildTranslations,
|
|
9138
|
+
Zc as buttonDropdownSizes,
|
|
9139
|
+
Jc as buttonDropdownVariants,
|
|
9140
|
+
qc as buttonSizes,
|
|
9141
|
+
Qc as buttonToggleSizes,
|
|
9142
|
+
ed as buttonToggleVariants,
|
|
9143
|
+
Vc as buttonVariants,
|
|
9144
|
+
du as cardImageFits,
|
|
9145
|
+
uu as cardImageSizes,
|
|
9146
|
+
hu as createAtlaskitDriver,
|
|
9147
|
+
zd as createDataSourceDefinition,
|
|
9146
9148
|
zo as createPageLayoutBlock,
|
|
9147
9149
|
Po as createPageLayoutBlockGroup,
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9150
|
+
cd as dataCollectionLocalStorageHandler,
|
|
9151
|
+
rd as datepickerSizes,
|
|
9152
|
+
xu as defaultTranslations,
|
|
9151
9153
|
we as experimental,
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9154
|
+
Pd as getAnimationVariants,
|
|
9155
|
+
Md as getDataSourcePaginationType,
|
|
9156
|
+
Ld as getEmojiLabel,
|
|
9157
|
+
Id as isInfiniteScrollPagination,
|
|
9158
|
+
Hd as isPageBasedPagination,
|
|
9159
|
+
td as linkVariants,
|
|
9160
|
+
Bd as modules,
|
|
9161
|
+
fu as predefinedPresets,
|
|
9162
|
+
gu as selectSizes,
|
|
9163
|
+
id as tagDotColors,
|
|
9164
|
+
Fd as useData,
|
|
9165
|
+
Wd as useDataSource,
|
|
9166
|
+
pu as useDndEvents,
|
|
9167
|
+
mu as useDraggable,
|
|
9168
|
+
vu as useDroppableList,
|
|
9169
|
+
Gd as useEmojiConfetti,
|
|
9170
|
+
$d as useF0Dialog,
|
|
9171
|
+
jd as useGroups,
|
|
9172
|
+
yu as usePrivacyMode,
|
|
9173
|
+
Ud as useReducedMotion,
|
|
9174
|
+
Kd as useSelectable,
|
|
9175
|
+
Xd as useXRay
|
|
9174
9176
|
};
|