@factorialco/f0-react 10.17.1 → 11.0.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/{ChatPostComposerDialog-Dy9Bc6xI.js → ChatPostComposerDialog-BtPiTMRu.js} +2 -2
- package/dist/{CoachmarkProvider-9OvXRTHG.js → CoachmarkProvider-rDkLQ01u.js} +2 -2
- package/dist/{DocumentToolbar-CJh28xKA.js → DocumentToolbar-KX3rz4K4.js} +2 -2
- package/dist/{DocxViewer-BywOVAwF.js → DocxViewer-BSGDgnM3.js} +1 -1
- package/dist/{F0AiProcessingOverlay-DqJadG1W.js → F0AiProcessingOverlay-B3Spv9Lg.js} +1 -1
- package/dist/{F0CanvasPanel-QT6bjBRY.js → F0CanvasPanel-BUFxHyKh.js} +21 -12
- package/dist/{F0DocumentViewer-BTzZ2Fj-.js → F0DocumentViewer-B5vLS5aP.js} +3 -3
- package/dist/F0DocumentViewer-bKmfYHcz.js +3 -0
- package/dist/{F0Map-Bu2AMIUf.js → F0Map-FN0N9L8R.js} +3 -3
- package/dist/{F0VideoPlayer-FHqlxoBW.js → F0VideoPlayer-DRn2ln3H.js} +1 -1
- package/dist/F0VideoPlayer-wBssbLIF.js +1 -0
- package/dist/{Map-DzJXQ-bz.js → Map-2DiynZpl.js} +3 -3
- package/dist/{PdfThumbnail-63KLHC8V.js → PdfThumbnail-CST7SEFz.js} +1 -1
- package/dist/{SheetViewer-DF55nkhY.js → SheetViewer-DGsjtuo_.js} +3 -3
- package/dist/{TextViewer-DniSdDLz.js → TextViewer-BjE8AxXq.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +2 -2
- package/dist/experimental.d.ts +29 -20
- package/dist/experimental.js +619 -615
- package/dist/f0.js +6 -6
- package/dist/{maplibre-6nvRH0dC.js → maplibre-Dj1I8pzk.js} +1 -1
- package/dist/{pdfWorker-DO1BP3MA.js → pdfWorker-BYbuhKsY.js} +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-BYPMlWmz.js +0 -3
- package/dist/F0VideoPlayer-B_0wDC0V.js +0 -1
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $ as t, $n as n, $r as r, $t as i, Ar as a, At as o, B as s, Br as c, Bt as l, C as u, Cn as d, Cr as f, Ct as p, Dn as m, Dr as h, Dt as g, En as _, Er as v, Et as y, F as b, Fr as x, Ft as S, G as C, Gn as w, Gr as T, H as E, Hn as D, Hr as O, I as k, It as A, J as j, Jr as M, K as N, Kt as P, L as F, Lr as I, M as ee, Mr as te, Mt as ne, N as re, Nr as ie, On as ae, Or as L, Ot as oe, P as se, Pr as ce, Q as le, Qn as ue, Qr as de, R as fe, Rr as pe, Rt as me, S as R, Sn as he, Sr as ge, T as _e, Tn as ve, Tr as ye, Tt as be, U as xe, Un as Se, Ur as Ce, V as we, Vr as Te, W as Ee, Wn as De, Wr as Oe, X as ke, Xn as Ae, Xr as je, Xt as Me, Y as Ne, Yn as Pe, Yr as Fe, Z as Ie, Zn as Le, Zr as Re, _ as ze, _r as Be, ai as Ve, an as He, at as Ue, b as We, br as Ge, ct as Ke, d as qe, dr as Je, dt as Ye, ei as Xe, er as Ze, et as Qe, fn as $e, fr as et, ft as tt, g as nt, gr as rt, h as it, hr as at, ii as ot, in as st, ir as ct, it as lt, j as ut, jt as dt, kr as ft, lt as pt, m as mt, mr as ht, mt as gt, n as _t, ni as vt, nr as yt, nt as bt, ot as xt, p as St, pr as Ct, pt as wt, q as Tt, qn as Et, r as Dt, rn as Ot, rr as kt, rt as At, s as jt, st as Mt, t as Nt, ti as Pt, tr as Ft, tt as It, ur as Lt, ut as Rt, v as zt, vr as Bt, w as Vt, wn as Ht, wr as Ut, wt as Wt, x as Gt, xr as Kt, y as qt, yr as Jt, z as Yt, zr as Xt } from "./CoachmarkProvider-
|
|
2
|
+
import { $ as t, $n as n, $r as r, $t as i, Ar as a, At as o, B as s, Br as c, Bt as l, C as u, Cn as d, Cr as f, Ct as p, Dn as m, Dr as h, Dt as g, En as _, Er as v, Et as y, F as b, Fr as x, Ft as S, G as C, Gn as w, Gr as T, H as E, Hn as D, Hr as O, I as k, It as A, J as j, Jr as M, K as N, Kt as P, L as F, Lr as I, M as ee, Mr as te, Mt as ne, N as re, Nr as ie, On as ae, Or as L, Ot as oe, P as se, Pr as ce, Q as le, Qn as ue, Qr as de, R as fe, Rr as pe, Rt as me, S as R, Sn as he, Sr as ge, T as _e, Tn as ve, Tr as ye, Tt as be, U as xe, Un as Se, Ur as Ce, V as we, Vr as Te, W as Ee, Wn as De, Wr as Oe, X as ke, Xn as Ae, Xr as je, Xt as Me, Y as Ne, Yn as Pe, Yr as Fe, Z as Ie, Zn as Le, Zr as Re, _ as ze, _r as Be, ai as Ve, an as He, at as Ue, b as We, br as Ge, ct as Ke, d as qe, dr as Je, dt as Ye, ei as Xe, er as Ze, et as Qe, fn as $e, fr as et, ft as tt, g as nt, gr as rt, h as it, hr as at, ii as ot, in as st, ir as ct, it as lt, j as ut, jt as dt, kr as ft, lt as pt, m as mt, mr as ht, mt as gt, n as _t, ni as vt, nr as yt, nt as bt, ot as xt, p as St, pr as Ct, pt as wt, q as Tt, qn as Et, r as Dt, rn as Ot, rr as kt, rt as At, s as jt, st as Mt, t as Nt, ti as Pt, tr as Ft, tt as It, ur as Lt, ut as Rt, v as zt, vr as Bt, w as Vt, wn as Ht, wr as Ut, wt as Wt, x as Gt, xr as Kt, y as qt, yr as Jt, z as Yt, zr as Xt } from "./CoachmarkProvider-rDkLQ01u.js";
|
|
3
3
|
import { $t as Zt, A as Qt, At as $t, Bt as en, Ft as tn, G as nn, Ht as rn, K as an, Lt as on, Mt as sn, N as cn, Ot as ln, Pt as un, Qt as dn, St as fn, U as pn, Ut as mn, Vt as hn, Wt as gn, Xt as _n, Zn as vn, Zt as yn, _t as bn, a as xn, an as Sn, ar as Cn, b as z, cr as wn, fn as Tn, gn as B, hn as En, i as Dn, in as V, ir as On, j as kn, jt as An, kt as jn, ln as H, lr as Mn, mn as Nn, n as Pn, on as Fn, pn as In, pt as Ln, rn as U, rr as Rn, t as zn, un as Bn, vt as Vn, wt as Hn, yt as Un, zt as Wn } from "./popover-DNcAIP25.js";
|
|
4
4
|
import { L as W, R as G, a as Gn, i as Kn, o as qn, r as Jn, t as Yn } from "./tooltip-BX4dSfeL.js";
|
|
5
5
|
import { i as Xn, n as Zn, r as Qn, t as $n } from "./F0Text-eOwHoc51.js";
|
|
6
|
-
import { $ as er, $o as tr, $s as nr, Aa as rr, Ao as ir, Ar as ar, As as or, At as sr, B as cr, Br as lr, Bs as ur, Cr as dr, Ct as fr, Da as pr, Do as mr, Dr as hr, Ds as gr, E as _r, Eo as vr, Er as yr, Es as br, Et as xr, F as Sr, Fa as Cr, Fr as wr, G as Tr, Go as Er, Gr as Dr, H as Or, Ha as kr, Hi as Ar, Ho as jr, Hr as Mr, I as Nr, Is as Pr, J as Fr, Jn as Ir, Jr as Lr, Js as Rr, K as zr, Ka as Br, Ko as Vr, Ks as Hr, L as Ur, La as Wr, Li as Gr, Ls as Kr, M as qr, Mo as Jr, Mr as Yr, Ms as Xr, N as Zr, Na as Qr, Ns as $r, Oa as ei, Oo as ti, Or as ni, Os as ri, P as ii, Ps as ai, Q as oi, Qa as si, Qs as ci, R as li, Ro as ui, Rs as di, So as fi, T as pi, To as mi, Tr as hi, U as gi, Uo as _i, Ur as vi, W as yi, Wo as bi, Wr as xi, X as Si, Xa as Ci, Xo as wi, Xs as Ti, Y as Ei, Ya as Di, Yo as Oi, Zo as ki, _ as Ai, _a as ji, _o as Mi, _r as Ni, _s as Pi, _t as Fi, a as Ii, ar as Li, as as Ri, b as zi, bo as Bi, br as Vi, c as Hi, ca as Ui, cc as Wi, co as Gi, d as Ki, da as qi, do as Ji, dt as Yi, f as Xi, fo as Zi, fs as Qi, ft as $i, g as ea, ga as ta, gr as na, gt as ra, h as ia, ha as aa, ho as oa, hr as sa, hs as ca, ht as la, i as ua, ic as da, in as fa, ir as pa, is as ma, it as ha, ja as ga, jo as _a, jr as va, jt as ya, ka as ba, kr as xa, ks as Sa, kt as Ca, l as wa, la as Ta, lc as Ea, lo as Da, m as Oa, ma as ka, mr as Aa, ms as ja, mt as Ma, n as Na, o as Pa, oa as Fa, oc as Ia, oo as La, or as Ra, p as za, po as Ba, pr as Va, ps as Ha, pt as Ua, q as Wa, qa as Ga, qn as Ka, qo as qa, qs as Ja, r as Ya, rn as Xa, rr as Za, rt as Qa, s as $a, sa as eo, sr as to, st as no, t as ro, u as io, ua as ao, uo as oo, us as so, v as co, va as lo, vo as uo, vs as fo, w as po, wt as mo, xo as ho, xr as go, y as _o, ys as vo, za as yo, zi as bo, zo as xo } from "./F0CanvasPanel-
|
|
6
|
+
import { $ as er, $o as tr, $s as nr, Aa as rr, Ao as ir, Ar as ar, As as or, At as sr, B as cr, Br as lr, Bs as ur, Cr as dr, Ct as fr, Da as pr, Do as mr, Dr as hr, Ds as gr, E as _r, Eo as vr, Er as yr, Es as br, Et as xr, F as Sr, Fa as Cr, Fr as wr, G as Tr, Go as Er, Gr as Dr, H as Or, Ha as kr, Hi as Ar, Ho as jr, Hr as Mr, I as Nr, Is as Pr, J as Fr, Jn as Ir, Jr as Lr, Js as Rr, K as zr, Ka as Br, Ko as Vr, Ks as Hr, L as Ur, La as Wr, Li as Gr, Ls as Kr, M as qr, Mo as Jr, Mr as Yr, Ms as Xr, N as Zr, Na as Qr, Ns as $r, Oa as ei, Oo as ti, Or as ni, Os as ri, P as ii, Ps as ai, Q as oi, Qa as si, Qs as ci, R as li, Ro as ui, Rs as di, So as fi, T as pi, To as mi, Tr as hi, U as gi, Uo as _i, Ur as vi, W as yi, Wo as bi, Wr as xi, X as Si, Xa as Ci, Xo as wi, Xs as Ti, Y as Ei, Ya as Di, Yo as Oi, Zo as ki, _ as Ai, _a as ji, _o as Mi, _r as Ni, _s as Pi, _t as Fi, a as Ii, ar as Li, as as Ri, b as zi, bo as Bi, br as Vi, c as Hi, ca as Ui, cc as Wi, co as Gi, d as Ki, da as qi, do as Ji, dt as Yi, f as Xi, fo as Zi, fs as Qi, ft as $i, g as ea, ga as ta, gr as na, gt as ra, h as ia, ha as aa, ho as oa, hr as sa, hs as ca, ht as la, i as ua, ic as da, in as fa, ir as pa, is as ma, it as ha, ja as ga, jo as _a, jr as va, jt as ya, ka as ba, kr as xa, ks as Sa, kt as Ca, l as wa, la as Ta, lc as Ea, lo as Da, m as Oa, ma as ka, mr as Aa, ms as ja, mt as Ma, n as Na, o as Pa, oa as Fa, oc as Ia, oo as La, or as Ra, p as za, po as Ba, pr as Va, ps as Ha, pt as Ua, q as Wa, qa as Ga, qn as Ka, qo as qa, qs as Ja, r as Ya, rn as Xa, rr as Za, rt as Qa, s as $a, sa as eo, sr as to, st as no, t as ro, u as io, ua as ao, uo as oo, us as so, v as co, va as lo, vo as uo, vs as fo, w as po, wt as mo, xo as ho, xr as go, y as _o, ys as vo, za as yo, zi as bo, zo as xo } from "./F0CanvasPanel-BUFxHyKh.js";
|
|
7
7
|
import { A as So, C as Co, F as wo, G as To, H as Eo, I as Do, K as Oo, L as ko, M as Ao, O as jo, P as Mo, S as No, U as Po, V as Fo, d as Io, f as Lo, h as Ro, i as zo, j as Bo, k as Vo, l as Ho, m as Uo, p as Wo, q as Go, u as Ko, y as qo, z as Jo } from "./useData-zygrn6e-.js";
|
|
8
8
|
import { $ as Yo, A as Xo, An as Zo, Ct as Qo, Dn as $o, Dr as es, En as ts, Er as ns, F as rs, In as is, K as as, Mr as os, N as ss, Nn as cs, Nr as ls, Nt as us, On as ds, Or as fs, Ot as ps, P as ms, Pn as hs, Pr as gs, St as _s, X as vs, Y as ys, Z as bs, _ as xs, _t as Ss, an as Cs, dr as ws, et as Ts, g as Es, gt as Ds, h as Os, hr as ks, ht as As, in as js, jr as Ms, kn as Ns, kr as Ps, lt as Fs, m as Is, mn as Ls, mr as Rs, nn as zs, nt as Bs, p as Vs, rt as Hs, st as Us, t as Ws, tn as Gs, tt as Ks, un as qs, ur as Js, v as Ys, vt as Xs, wn as Zs, wt as Qs, xt as $s, y as ec, yn as tc } from "./F0Select-Bzp4aOU7.js";
|
|
9
9
|
import { t as nc } from "./Check-DAp9gCRh.js";
|
|
@@ -11,7 +11,7 @@ import { n as rc } from "./dist-Ck_UA8Lz.js";
|
|
|
11
11
|
import { a as ic, i as ac, n as oc, r as sc, s as cc } from "./dist-Cuwaibqg.js";
|
|
12
12
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
13
13
|
import { t as lc } from "./useFullscreen-CNwpzjpz.js";
|
|
14
|
-
import { C as uc, D as dc, E as fc, O as pc, S as mc, T as hc, _ as gc, a as _c, b as vc, c as yc, d as bc, f as xc, g as Sc, h as Cc, i as wc, k as Tc, l as Ec, m as Dc, n as Oc, o as kc, p as Ac, r as jc, t as Mc, u as Nc, v as Pc, w as Fc, x as Ic, y as Lc } from "./F0Map-
|
|
14
|
+
import { C as uc, D as dc, E as fc, O as pc, S as mc, T as hc, _ as gc, a as _c, b as vc, c as yc, d as bc, f as xc, g as Sc, h as Cc, i as wc, k as Tc, l as Ec, m as Dc, n as Oc, o as kc, p as Ac, r as jc, t as Mc, u as Nc, v as Pc, w as Fc, x as Ic, y as Lc } from "./F0Map-FN0N9L8R.js";
|
|
15
15
|
import { _ as Rc, a as zc, c as Bc, d as Vc, f as Hc, g as Uc, h as Wc, i as Gc, l as Kc, m as qc, n as Jc, o as Yc, p as Xc, r as Zc, s as Qc, t as $c, u as el } from "./posts-DgzHTT_B.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import tl, { Children as nl, Fragment as rl, Suspense as il, cloneElement as al, createContext as ol, forwardRef as sl, isValidElement as cl, lazy as ll, memo as ul, useCallback as K, useContext as dl, useEffect as q, useId as fl, useImperativeHandle as pl, useLayoutEffect as ml, useMemo as J, useReducer as hl, useRef as Y, useState as X, useSyncExternalStore as gl, useTransition as _l } from "react";
|
|
@@ -18456,7 +18456,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18456
18456
|
onJumpToBottom: Se
|
|
18457
18457
|
}) : null]
|
|
18458
18458
|
});
|
|
18459
|
-
}, Hj = ll(() => import("./ChatPostComposerDialog-
|
|
18459
|
+
}, Hj = ll(() => import("./ChatPostComposerDialog-BtPiTMRu.js").then((e) => ({ default: e.ChatPostComposerDialog }))), Uj = () => {
|
|
18460
18460
|
let e = U(), { createPost: t, composePost: n, searchMembers: r } = el(), i = Hc(), [a, o] = X(!1);
|
|
18461
18461
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
18462
18462
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -21533,21 +21533,25 @@ var NP = [
|
|
|
21533
21533
|
transition: IP(e, t, o),
|
|
21534
21534
|
children: a
|
|
21535
21535
|
});
|
|
21536
|
-
}, iF = W("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2", "bg-gradient-to-l from-f1-background from-60% to-transparent", "opacity-0 transition-opacity motion-reduce:transition-none", "group-hover:pointer-events-auto group-hover:opacity-100", "group-focus-within:pointer-events-auto group-focus-within:opacity-100"), aF = "pointer-events-auto opacity-100"
|
|
21537
|
-
|
|
21536
|
+
}, iF = W("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2", "bg-gradient-to-l from-f1-background from-60% to-transparent", "opacity-0 transition-opacity motion-reduce:transition-none", "group-hover:pointer-events-auto group-hover:opacity-100", "group-focus-within:pointer-events-auto group-focus-within:opacity-100"), aF = "pointer-events-auto opacity-100", oF = {
|
|
21537
|
+
default: "text-f1-foreground-secondary",
|
|
21538
|
+
warning: "text-f1-foreground-warning",
|
|
21539
|
+
critical: "text-f1-foreground-critical"
|
|
21540
|
+
}, sF = (e) => oF[e ?? "default"];
|
|
21541
|
+
function cF(e, t) {
|
|
21538
21542
|
return typeof e == "string" ? e ? [{
|
|
21539
21543
|
text: e,
|
|
21540
|
-
|
|
21544
|
+
variant: t
|
|
21541
21545
|
}] : [] : (e ?? []).filter((e) => e.text);
|
|
21542
21546
|
}
|
|
21543
|
-
function
|
|
21544
|
-
return
|
|
21547
|
+
function lF(e) {
|
|
21548
|
+
return cF(e).map((e) => e.text).join(" · ");
|
|
21545
21549
|
}
|
|
21546
|
-
function
|
|
21550
|
+
function uF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, subtitleVariant: a, description: o, descriptionVariant: s, right: c, actions: l, unread: u = !1, href: d, showChevron: f = !1, prominent: p = !1, onActivate: m, onClick: h }) {
|
|
21547
21551
|
let g = !!l?.length, _ = Ce(), [v, y] = X(null), b = n ?? (e ? /* @__PURE__ */ Q(qo, {
|
|
21548
21552
|
avatar: e,
|
|
21549
21553
|
size: t
|
|
21550
|
-
}) : null), x =
|
|
21554
|
+
}) : null), x = cF(o, s), S = /* @__PURE__ */ $(Z, { children: [
|
|
21551
21555
|
b ? /* @__PURE__ */ $("div", {
|
|
21552
21556
|
className: "relative flex shrink-0",
|
|
21553
21557
|
children: [b, u ? /* @__PURE__ */ Q("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null]
|
|
@@ -21560,16 +21564,16 @@ function cF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21560
21564
|
className: W("max-w-full shrink-0 font-medium text-f1-foreground", p && "text-lg"),
|
|
21561
21565
|
children: r
|
|
21562
21566
|
}), i ? /* @__PURE__ */ $("span", {
|
|
21563
|
-
className: W("min-w-0 truncate", a
|
|
21567
|
+
className: W("min-w-0 truncate", sF(a)),
|
|
21564
21568
|
children: ["· ", i]
|
|
21565
21569
|
}) : null]
|
|
21566
21570
|
}), x.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
21567
|
-
className: W("truncate", p && "mt-0.5", x.length === 1
|
|
21571
|
+
className: W("truncate", p && "mt-0.5", sF(x.length === 1 ? x[0].variant : void 0)),
|
|
21568
21572
|
children: x.map((e, t) => /* @__PURE__ */ $(rl, { children: [t > 0 ? /* @__PURE__ */ Q("span", {
|
|
21569
21573
|
className: "text-f1-foreground-secondary",
|
|
21570
21574
|
children: " · "
|
|
21571
21575
|
}) : null, /* @__PURE__ */ Q("span", {
|
|
21572
|
-
className: e.
|
|
21576
|
+
className: sF(e.variant),
|
|
21573
21577
|
children: e.text
|
|
21574
21578
|
})] }, t))
|
|
21575
21579
|
}) : null]
|
|
@@ -21629,14 +21633,14 @@ function cF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21629
21633
|
}
|
|
21630
21634
|
//#endregion
|
|
21631
21635
|
//#region src/domains/platform/home/Home/tracking.tsx
|
|
21632
|
-
var
|
|
21636
|
+
var dF = tl.createContext(void 0), fF = ({ tracking: e, children: t }) => /* @__PURE__ */ Q(dF.Provider, {
|
|
21633
21637
|
value: e,
|
|
21634
21638
|
children: t
|
|
21635
|
-
}),
|
|
21639
|
+
}), pF = tl.createContext(void 0), mF = ({ widgetId: e, children: t }) => /* @__PURE__ */ Q(pF.Provider, {
|
|
21636
21640
|
value: e,
|
|
21637
21641
|
children: t
|
|
21638
|
-
}),
|
|
21639
|
-
let e = tl.useContext(
|
|
21642
|
+
}), hF = () => {
|
|
21643
|
+
let e = tl.useContext(dF), t = tl.useContext(pF);
|
|
21640
21644
|
return tl.useMemo(() => ({
|
|
21641
21645
|
reportAction: (n) => {
|
|
21642
21646
|
t !== void 0 && e?.onWidgetAction?.({
|
|
@@ -21652,18 +21656,18 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21652
21656
|
});
|
|
21653
21657
|
}
|
|
21654
21658
|
}), [e, t]);
|
|
21655
|
-
},
|
|
21659
|
+
}, gF = (e) => e == null ? void 0 : typeof e == "function" ? { render: e } : e, _F = 6, vF = (e, t) => !!e.compact || !e.descriptionOptional && t > 6, yF = (e, t, n) => ({
|
|
21656
21660
|
visualization: e,
|
|
21657
21661
|
params: t,
|
|
21658
21662
|
...n
|
|
21659
|
-
}),
|
|
21663
|
+
}), bF = (e, t, n) => ({
|
|
21660
21664
|
visualization: "list",
|
|
21661
21665
|
params: {
|
|
21662
21666
|
schema: e,
|
|
21663
21667
|
items: t
|
|
21664
21668
|
},
|
|
21665
21669
|
...n
|
|
21666
|
-
}),
|
|
21670
|
+
}), xF = (e, t) => (e) => t(e), SF = (e, t = {}) => {
|
|
21667
21671
|
if (!e) return;
|
|
21668
21672
|
let { title: n, info: r, ...i } = e, a = (e) => typeof e == "function" ? e(t) : e;
|
|
21669
21673
|
return {
|
|
@@ -21671,14 +21675,14 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21671
21675
|
title: a(n),
|
|
21672
21676
|
info: a(r)
|
|
21673
21677
|
};
|
|
21674
|
-
},
|
|
21678
|
+
}, CF = (e) => SF(e.header, e.params)?.title ?? e.id, wF = (e, t) => !e || e.safeParse(t ?? {}).success, TF = [
|
|
21675
21679
|
"neutral",
|
|
21676
21680
|
"accent",
|
|
21677
21681
|
"critical",
|
|
21678
21682
|
"warning",
|
|
21679
21683
|
"promote",
|
|
21680
21684
|
"positive"
|
|
21681
|
-
],
|
|
21685
|
+
], EF = (e) => {
|
|
21682
21686
|
let t = {
|
|
21683
21687
|
action: e.action,
|
|
21684
21688
|
summaries: e.summaries,
|
|
@@ -21693,7 +21697,7 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21693
21697
|
...t,
|
|
21694
21698
|
status: "status" in e ? e.status : void 0
|
|
21695
21699
|
};
|
|
21696
|
-
},
|
|
21700
|
+
}, DF = "-m-2", OF = (e) => W(DF, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), kF = "ml-1.5 mt-1 self-start", AF = (e) => W(kF, e.isLastSlot && !e.hasFooter && "mb-1.5"), jF = "gap-2", MF = "xl", NF = (e, t, n, r) => {
|
|
21697
21701
|
if (e === "module" && t.module) return { left: /* @__PURE__ */ Q(wo, {
|
|
21698
21702
|
module: t.module,
|
|
21699
21703
|
size: n
|
|
@@ -21715,9 +21719,9 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21715
21719
|
type: e,
|
|
21716
21720
|
...t.avatar
|
|
21717
21721
|
},
|
|
21718
|
-
avatarSize: r ?
|
|
21722
|
+
avatarSize: r ? MF : n
|
|
21719
21723
|
} : {};
|
|
21720
|
-
},
|
|
21724
|
+
}, PF = (e, t, n, r) => {
|
|
21721
21725
|
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(hn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(Fa, {
|
|
21722
21726
|
date: L(t.date),
|
|
21723
21727
|
size: r ? "lg" : "md"
|
|
@@ -21734,21 +21738,21 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21734
21738
|
},
|
|
21735
21739
|
size: n
|
|
21736
21740
|
}) : void 0;
|
|
21737
|
-
},
|
|
21738
|
-
function
|
|
21739
|
-
let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { reportAction: s, reportItemActivate: c } =
|
|
21741
|
+
}, FF = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm";
|
|
21742
|
+
function IF({ params: e, ctx: t }) {
|
|
21743
|
+
let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { reportAction: s, reportItemActivate: c } = hF(), l = Ce(), u = n.maxVisibleItems, d = u != null && i.length > u, f = d && !a ? i.slice(0, u) : i, p = eF(f.length), m = vF(n, f.length), h = FF((!!n.descriptionRequired || !!n.descriptionOptional) && !m, l), g = l ? "md" : "sm", _ = !!n.prominent;
|
|
21740
21744
|
return /* @__PURE__ */ $("div", {
|
|
21741
|
-
className: W(
|
|
21745
|
+
className: W(OF(t), "flex flex-col"),
|
|
21742
21746
|
children: [/* @__PURE__ */ Q(tF, { children: f.map(({ href: e, description: t, ...r }, i) => {
|
|
21743
|
-
let a = r.tooltipDescription ?? (m ?
|
|
21747
|
+
let a = r.tooltipDescription ?? (m ? lF(t) : ""), o = /* @__PURE__ */ Q(uF, {
|
|
21744
21748
|
title: r.title,
|
|
21745
21749
|
subtitle: r.subtitle,
|
|
21746
|
-
|
|
21750
|
+
subtitleVariant: r.subtitleVariant,
|
|
21747
21751
|
description: m ? void 0 : t,
|
|
21748
|
-
|
|
21752
|
+
descriptionVariant: r.descriptionVariant,
|
|
21749
21753
|
unread: r.unread,
|
|
21750
|
-
...
|
|
21751
|
-
right:
|
|
21754
|
+
...NF(n.left, r, h, _),
|
|
21755
|
+
right: PF(n.right, r, g, _),
|
|
21752
21756
|
actions: r.actions,
|
|
21753
21757
|
href: n.clickBehavior === "link" ? e : void 0,
|
|
21754
21758
|
prominent: _,
|
|
@@ -21766,7 +21770,7 @@ function PF({ params: e, ctx: t }) {
|
|
|
21766
21770
|
}) : o
|
|
21767
21771
|
}, r.id);
|
|
21768
21772
|
}) }), d ? /* @__PURE__ */ Q("div", {
|
|
21769
|
-
className:
|
|
21773
|
+
className: AF(t),
|
|
21770
21774
|
children: /* @__PURE__ */ Q(z, {
|
|
21771
21775
|
variant: l ? "outline" : "neutral",
|
|
21772
21776
|
size: l ? "md" : "sm",
|
|
@@ -21778,10 +21782,10 @@ function PF({ params: e, ctx: t }) {
|
|
|
21778
21782
|
}) : null]
|
|
21779
21783
|
});
|
|
21780
21784
|
}
|
|
21781
|
-
function
|
|
21782
|
-
let { events: n } = e, r = eF(n.length), { reportItemActivate: i } =
|
|
21785
|
+
function LF({ params: e, ctx: t }) {
|
|
21786
|
+
let { events: n } = e, r = eF(n.length), { reportItemActivate: i } = hF();
|
|
21783
21787
|
return /* @__PURE__ */ Q("div", {
|
|
21784
|
-
className: W(
|
|
21788
|
+
className: W(OF(t), "flex flex-col", jF),
|
|
21785
21789
|
children: /* @__PURE__ */ Q(tF, { children: n.map((e, t) => /* @__PURE__ */ Q(nF, {
|
|
21786
21790
|
animated: !r,
|
|
21787
21791
|
children: /* @__PURE__ */ Q(Bp, {
|
|
@@ -21793,110 +21797,110 @@ function FF({ params: e, ctx: t }) {
|
|
|
21793
21797
|
}, e.title)) })
|
|
21794
21798
|
});
|
|
21795
21799
|
}
|
|
21796
|
-
var
|
|
21800
|
+
var RF = 3, zF = "slot-skeleton-item", BF = [
|
|
21797
21801
|
"w-1/2",
|
|
21798
21802
|
"w-2/3",
|
|
21799
21803
|
"w-2/5",
|
|
21800
21804
|
"w-3/5"
|
|
21801
|
-
],
|
|
21805
|
+
], VF = {
|
|
21802
21806
|
sm: "size-6",
|
|
21803
21807
|
md: "size-8",
|
|
21804
21808
|
lg: "size-10"
|
|
21805
|
-
},
|
|
21809
|
+
}, HF = (e) => BF[e % BF.length], UF = ({ className: e }) => /* @__PURE__ */ Q("div", {
|
|
21806
21810
|
className: "flex h-5 items-center",
|
|
21807
21811
|
children: /* @__PURE__ */ Q(H, { className: W("h-3", e) })
|
|
21808
|
-
}),
|
|
21809
|
-
let n = e.schema ?? {}, r = Ce(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a =
|
|
21812
|
+
}), WF = ({ params: e, ctx: t }) => {
|
|
21813
|
+
let n = e.schema ?? {}, r = Ce(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = vF(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
|
|
21810
21814
|
return /* @__PURE__ */ $("div", {
|
|
21811
|
-
className: W(
|
|
21815
|
+
className: W(OF(t), "flex flex-col"),
|
|
21812
21816
|
children: [Array.from({ length: i }, (e, t) => /* @__PURE__ */ $("div", {
|
|
21813
|
-
"data-testid":
|
|
21817
|
+
"data-testid": zF,
|
|
21814
21818
|
className: "flex w-full items-center gap-3 p-2",
|
|
21815
21819
|
children: [
|
|
21816
|
-
n.left ? /* @__PURE__ */ Q(H, { className: W("shrink-0",
|
|
21820
|
+
n.left ? /* @__PURE__ */ Q(H, { className: W("shrink-0", VF[FF(o, r)], n.left === "person" ? "rounded-full" : "rounded-sm") }) : null,
|
|
21817
21821
|
/* @__PURE__ */ $("div", {
|
|
21818
21822
|
className: "flex min-w-0 flex-1 flex-col",
|
|
21819
|
-
children: [/* @__PURE__ */ Q(
|
|
21823
|
+
children: [/* @__PURE__ */ Q(UF, { className: HF(t) }), s ? /* @__PURE__ */ Q(UF, { className: "w-1/4" }) : null]
|
|
21820
21824
|
}),
|
|
21821
21825
|
n.right ? /* @__PURE__ */ Q(H, { className: "h-4 w-10 shrink-0 rounded-sm" }) : null
|
|
21822
21826
|
]
|
|
21823
21827
|
}, t)), c ? /* @__PURE__ */ Q("div", {
|
|
21824
|
-
className:
|
|
21828
|
+
className: AF(t),
|
|
21825
21829
|
children: /* @__PURE__ */ Q(H, { className: "h-6 w-24 rounded-sm" })
|
|
21826
21830
|
}) : null]
|
|
21827
21831
|
});
|
|
21828
|
-
},
|
|
21829
|
-
className: W(
|
|
21832
|
+
}, GF = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
|
|
21833
|
+
className: W(OF(e), "flex flex-col", jF),
|
|
21830
21834
|
children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
|
|
21831
|
-
"data-testid":
|
|
21835
|
+
"data-testid": zF,
|
|
21832
21836
|
className: "flex flex-row items-stretch gap-2.5 rounded-sm p-2",
|
|
21833
21837
|
children: [
|
|
21834
21838
|
/* @__PURE__ */ Q(H, { className: "min-h-10 w-1 shrink-0 rounded-2xs" }),
|
|
21835
21839
|
/* @__PURE__ */ $("div", {
|
|
21836
21840
|
className: "flex flex-1 flex-col justify-center",
|
|
21837
|
-
children: [/* @__PURE__ */ Q(
|
|
21841
|
+
children: [/* @__PURE__ */ Q(UF, { className: HF(t) }), /* @__PURE__ */ Q(UF, { className: "w-1/3" })]
|
|
21838
21842
|
}),
|
|
21839
21843
|
/* @__PURE__ */ Q(H, { className: "size-10 shrink-0 rounded-md" })
|
|
21840
21844
|
]
|
|
21841
21845
|
}, t))
|
|
21842
|
-
}),
|
|
21846
|
+
}), KF = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
|
|
21843
21847
|
className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
|
|
21844
21848
|
children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
|
|
21845
|
-
"data-testid":
|
|
21849
|
+
"data-testid": zF,
|
|
21846
21850
|
className: "flex flex-col gap-1",
|
|
21847
21851
|
children: [/* @__PURE__ */ Q("div", {
|
|
21848
21852
|
className: "flex h-8 items-center",
|
|
21849
21853
|
children: /* @__PURE__ */ Q(H, { className: "h-6 w-10" })
|
|
21850
|
-
}), /* @__PURE__ */ Q(
|
|
21854
|
+
}), /* @__PURE__ */ Q(UF, { className: "w-3/4" })]
|
|
21851
21855
|
}, t))
|
|
21852
|
-
}),
|
|
21856
|
+
}), qF = (e, t) => /* @__PURE__ */ Q("div", {
|
|
21853
21857
|
className: "flex flex-col gap-2",
|
|
21854
21858
|
children: Array.from({ length: t.expectedItemsCount }, (e, t) => /* @__PURE__ */ Q("div", {
|
|
21855
|
-
"data-testid":
|
|
21856
|
-
children: /* @__PURE__ */ Q(H, { className: W("h-6",
|
|
21859
|
+
"data-testid": zF,
|
|
21860
|
+
children: /* @__PURE__ */ Q(H, { className: W("h-6", HF(t)) })
|
|
21857
21861
|
}, t))
|
|
21858
|
-
}),
|
|
21862
|
+
}), JF = {
|
|
21859
21863
|
list: {
|
|
21860
|
-
render: (e, t) => /* @__PURE__ */ Q(
|
|
21864
|
+
render: (e, t) => /* @__PURE__ */ Q(IF, {
|
|
21861
21865
|
params: e,
|
|
21862
21866
|
ctx: t
|
|
21863
21867
|
}),
|
|
21864
|
-
skeleton: (e, t) => /* @__PURE__ */ Q(
|
|
21868
|
+
skeleton: (e, t) => /* @__PURE__ */ Q(WF, {
|
|
21865
21869
|
params: e ?? {},
|
|
21866
21870
|
ctx: t
|
|
21867
21871
|
})
|
|
21868
21872
|
},
|
|
21869
21873
|
"event-list": {
|
|
21870
|
-
render: (e, t) => /* @__PURE__ */ Q(
|
|
21874
|
+
render: (e, t) => /* @__PURE__ */ Q(LF, {
|
|
21871
21875
|
params: e,
|
|
21872
21876
|
ctx: t
|
|
21873
21877
|
}),
|
|
21874
|
-
skeleton: (e, t) => /* @__PURE__ */ Q(
|
|
21878
|
+
skeleton: (e, t) => /* @__PURE__ */ Q(GF, { ctx: t })
|
|
21875
21879
|
},
|
|
21876
21880
|
indicators: {
|
|
21877
21881
|
render: (e) => /* @__PURE__ */ Q(HN, { ...e }),
|
|
21878
|
-
skeleton: (e, t) => /* @__PURE__ */ Q(
|
|
21882
|
+
skeleton: (e, t) => /* @__PURE__ */ Q(KF, { ctx: t })
|
|
21879
21883
|
}
|
|
21880
|
-
},
|
|
21884
|
+
}, YF = ({ text: e, ticking: t, className: n }) => /* @__PURE__ */ Q("span", {
|
|
21881
21885
|
className: W("whitespace-nowrap tabular-nums", n),
|
|
21882
21886
|
children: e.split(":").map((e, n) => /* @__PURE__ */ $(rl, { children: [n > 0 ? /* @__PURE__ */ Q("span", {
|
|
21883
21887
|
className: W(t && "animate-clock-tick motion-reduce:animate-none"),
|
|
21884
21888
|
children: ":"
|
|
21885
21889
|
}) : null, e] }, n))
|
|
21886
|
-
}),
|
|
21890
|
+
}), XF = 1e3, ZF = (e) => {
|
|
21887
21891
|
let t = sn(), [n, r] = X(!0), i = e && !t;
|
|
21888
21892
|
return q(() => {
|
|
21889
21893
|
if (!i) return;
|
|
21890
|
-
let e = setInterval(() => r((e) => !e),
|
|
21894
|
+
let e = setInterval(() => r((e) => !e), XF);
|
|
21891
21895
|
return () => {
|
|
21892
21896
|
clearInterval(e), r(!0);
|
|
21893
21897
|
};
|
|
21894
21898
|
}, [i]), !i || n;
|
|
21895
|
-
},
|
|
21899
|
+
}, QF = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(YF, {
|
|
21896
21900
|
text: e,
|
|
21897
21901
|
ticking: t,
|
|
21898
21902
|
className: "px-2 text-2xl font-semibold"
|
|
21899
|
-
}),
|
|
21903
|
+
}), $F = {
|
|
21900
21904
|
neutral: {
|
|
21901
21905
|
pill: "bg-f1-background-inverse text-f1-foreground-inverse",
|
|
21902
21906
|
button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
@@ -21951,7 +21955,7 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
21951
21955
|
soloIcon: "inverse",
|
|
21952
21956
|
soloRing: "ring-f1-border-inverse"
|
|
21953
21957
|
}
|
|
21954
|
-
},
|
|
21958
|
+
}, eI = (e, t) => {
|
|
21955
21959
|
let n = sn();
|
|
21956
21960
|
return {
|
|
21957
21961
|
initial: {
|
|
@@ -21972,8 +21976,8 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
21972
21976
|
delay: FP(e, t)
|
|
21973
21977
|
}, n)
|
|
21974
21978
|
};
|
|
21975
|
-
},
|
|
21976
|
-
let s =
|
|
21979
|
+
}, tI = ({ hasUpdates: e }) => e ? /* @__PURE__ */ Q("span", { className: "pointer-events-none absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null, nI = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
|
|
21980
|
+
let s = eI(n, i), c = ZF(!!t.flashing && !r), l = t.text && !r ? t.text : void 0, u = $F[t.tone ?? "neutral"];
|
|
21977
21981
|
return /* @__PURE__ */ Q(_n, {
|
|
21978
21982
|
label: t.label,
|
|
21979
21983
|
instant: !0,
|
|
@@ -21985,7 +21989,7 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
21985
21989
|
onFocus: (t) => a(e.id, t.currentTarget, !0),
|
|
21986
21990
|
...s,
|
|
21987
21991
|
children: [
|
|
21988
|
-
l ? /* @__PURE__ */ Q(
|
|
21992
|
+
l ? /* @__PURE__ */ Q(QF, {
|
|
21989
21993
|
text: l,
|
|
21990
21994
|
ticking: !!t.ticking
|
|
21991
21995
|
}) : null,
|
|
@@ -21994,7 +21998,7 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
21994
21998
|
variant: "ghost",
|
|
21995
21999
|
size: "lg",
|
|
21996
22000
|
className: W("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", t.text ? u.button : u.solo, "ring-inset group-hover:ring-1", r && "ring-1", t.text ? u.ring : u.soloRing),
|
|
21997
|
-
"aria-label": `${t.label}, ${
|
|
22001
|
+
"aria-label": `${t.label}, ${CF(e)}`,
|
|
21998
22002
|
onClick: () => t.onClick(),
|
|
21999
22003
|
children: /* @__PURE__ */ Q(V, {
|
|
22000
22004
|
size: "lg",
|
|
@@ -22002,13 +22006,13 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
22002
22006
|
icon: c || !e.icon ? t.icon : e.icon
|
|
22003
22007
|
})
|
|
22004
22008
|
}),
|
|
22005
|
-
/* @__PURE__ */ Q(
|
|
22009
|
+
/* @__PURE__ */ Q(tI, { hasUpdates: e.hasUpdates })
|
|
22006
22010
|
]
|
|
22007
22011
|
})
|
|
22008
22012
|
});
|
|
22009
|
-
},
|
|
22010
|
-
let c = e.railAction, l =
|
|
22011
|
-
return c ? /* @__PURE__ */ Q(
|
|
22013
|
+
}, rI = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
|
|
22014
|
+
let c = e.railAction, l = eI(t, r);
|
|
22015
|
+
return c ? /* @__PURE__ */ Q(nI, {
|
|
22012
22016
|
widget: e,
|
|
22013
22017
|
action: c,
|
|
22014
22018
|
order: t,
|
|
@@ -22023,7 +22027,7 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
22023
22027
|
children: /* @__PURE__ */ Q(H, { className: "h-10 w-10 rounded-lg" })
|
|
22024
22028
|
}) : /* @__PURE__ */ Q(B.button, {
|
|
22025
22029
|
type: "button",
|
|
22026
|
-
"aria-label":
|
|
22030
|
+
"aria-label": CF(e),
|
|
22027
22031
|
"aria-expanded": n,
|
|
22028
22032
|
"data-widget-glyph": e.id,
|
|
22029
22033
|
onMouseEnter: (t) => i(e.id, t.currentTarget),
|
|
@@ -22041,19 +22045,19 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
22041
22045
|
color: "bold"
|
|
22042
22046
|
}) : /* @__PURE__ */ Q("span", {
|
|
22043
22047
|
className: "font-medium text-f1-foreground-secondary",
|
|
22044
|
-
children:
|
|
22048
|
+
children: CF(e).charAt(0)
|
|
22045
22049
|
})
|
|
22046
22050
|
}) : e.icon ? /* @__PURE__ */ Q(Co, {
|
|
22047
22051
|
icon: e.icon,
|
|
22048
22052
|
size: "lg"
|
|
22049
22053
|
}) : /* @__PURE__ */ Q("span", {
|
|
22050
22054
|
className: "flex h-10 w-10 items-center justify-center rounded-lg border border-solid border-f1-border-secondary bg-f1-background font-medium text-f1-foreground-secondary",
|
|
22051
|
-
children:
|
|
22052
|
-
}), /* @__PURE__ */ Q(
|
|
22055
|
+
children: CF(e).charAt(0)
|
|
22056
|
+
}), /* @__PURE__ */ Q(tI, { hasUpdates: e.hasUpdates })]
|
|
22053
22057
|
})
|
|
22054
22058
|
});
|
|
22055
22059
|
};
|
|
22056
|
-
function
|
|
22060
|
+
function iI(e = 24) {
|
|
22057
22061
|
let [t, n] = X(null), [r, i] = X({
|
|
22058
22062
|
top: !1,
|
|
22059
22063
|
bottom: !1
|
|
@@ -22087,12 +22091,12 @@ function nI(e = 24) {
|
|
|
22087
22091
|
}
|
|
22088
22092
|
//#endregion
|
|
22089
22093
|
//#region src/domains/platform/home/Home/SlotWidget/SlotWidget.tsx
|
|
22090
|
-
var
|
|
22091
|
-
function
|
|
22094
|
+
var aI = "-ml-0.5 mt-2", oI = 450, sI = "cubic-bezier(0.4, 0, 0.1, 1)", cI = 1.04;
|
|
22095
|
+
function lI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
|
|
22092
22096
|
let a = n ? {
|
|
22093
|
-
...
|
|
22097
|
+
...JF,
|
|
22094
22098
|
...n
|
|
22095
|
-
} :
|
|
22099
|
+
} : JF;
|
|
22096
22100
|
return /* @__PURE__ */ Q("div", {
|
|
22097
22101
|
className: "flex flex-col",
|
|
22098
22102
|
...t ? {
|
|
@@ -22100,7 +22104,7 @@ function sI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22100
22104
|
"aria-live": "polite"
|
|
22101
22105
|
} : {},
|
|
22102
22106
|
children: e.map((n, o) => {
|
|
22103
|
-
let s =
|
|
22107
|
+
let s = gF(a[n.visualization]), c = {
|
|
22104
22108
|
...r,
|
|
22105
22109
|
isLastSlot: o === e.length - 1,
|
|
22106
22110
|
isFirstUnderNoHeader: i && o === 0
|
|
@@ -22110,7 +22114,7 @@ function sI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22110
22114
|
children: /* @__PURE__ */ Q(Oe, { bare: !0 })
|
|
22111
22115
|
}) : null, t ? /* @__PURE__ */ Q("div", {
|
|
22112
22116
|
"aria-hidden": "true",
|
|
22113
|
-
children: (s?.skeleton ??
|
|
22117
|
+
children: (s?.skeleton ?? qF)(n.params, {
|
|
22114
22118
|
...c,
|
|
22115
22119
|
expectedItemsCount: n.expectedItemsCount ?? 3
|
|
22116
22120
|
})
|
|
@@ -22121,7 +22125,7 @@ function sI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22121
22125
|
})
|
|
22122
22126
|
});
|
|
22123
22127
|
}
|
|
22124
|
-
function
|
|
22128
|
+
function uI({ header: e, params: t, fullHeight: n, action: r, summaries: i, headerControls: a, headerActions: o, headerSelect: s, alert: c, status: l, slots: u, loading: d = !1, slotRenderers: f, actions: p, flipped: m = !1, onFlipBack: h, isDragging: g, ctx: _ = {}, headless: v = !1 }) {
|
|
22125
22129
|
let y = U(), b = sn(), [x, S] = X(!1), C = Y(!1);
|
|
22126
22130
|
q(() => {
|
|
22127
22131
|
if (!C.current) {
|
|
@@ -22130,7 +22134,7 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22130
22134
|
}
|
|
22131
22135
|
if (b) return;
|
|
22132
22136
|
S(!0);
|
|
22133
|
-
let e = setTimeout(() => S(!1),
|
|
22137
|
+
let e = setTimeout(() => S(!1), oI);
|
|
22134
22138
|
return () => clearTimeout(e);
|
|
22135
22139
|
}, [m, b]);
|
|
22136
22140
|
let [w, T] = X(void 0), E = s ? w ?? s.value ?? s.options[0]?.value : void 0, D = s?.options.find((e) => e.value === E), k = (e) => {
|
|
@@ -22156,7 +22160,7 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22156
22160
|
})
|
|
22157
22161
|
}) : null,
|
|
22158
22162
|
a
|
|
22159
|
-
] }) : a, { reportAction: j } =
|
|
22163
|
+
] }) : a, { reportAction: j } = hF(), { info: M, ...N } = v ? {} : SF(e, t) ?? {}, P = Object.values(N).some((e) => e !== void 0) || !v && p && p.length > 0 || !v && A ? N : void 0, F = P?.link === void 0 ? P : {
|
|
22160
22164
|
...P,
|
|
22161
22165
|
link: {
|
|
22162
22166
|
...P.link,
|
|
@@ -22171,13 +22175,13 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22171
22175
|
header: F,
|
|
22172
22176
|
fullHeight: n,
|
|
22173
22177
|
action: ee,
|
|
22174
|
-
footerClassName:
|
|
22178
|
+
footerClassName: aI,
|
|
22175
22179
|
actions: v ? void 0 : p,
|
|
22176
22180
|
headerControls: v ? void 0 : A,
|
|
22177
22181
|
summaries: i,
|
|
22178
22182
|
...c ? { alert: c } : { status: l },
|
|
22179
22183
|
isDragging: g,
|
|
22180
|
-
children: /* @__PURE__ */ Q(
|
|
22184
|
+
children: /* @__PURE__ */ Q(lI, {
|
|
22181
22185
|
ctx: {
|
|
22182
22186
|
..._,
|
|
22183
22187
|
hasFooter: !!r,
|
|
@@ -22196,14 +22200,14 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22196
22200
|
className: "h-full",
|
|
22197
22201
|
"data-turning": x || void 0,
|
|
22198
22202
|
style: {
|
|
22199
|
-
transform: `scale(${x ?
|
|
22200
|
-
transition: b ? void 0 : `transform ${
|
|
22203
|
+
transform: `scale(${x ? cI : 1})`,
|
|
22204
|
+
transition: b ? void 0 : `transform ${oI / 2}ms ease-out`
|
|
22201
22205
|
},
|
|
22202
22206
|
children: /* @__PURE__ */ $("div", {
|
|
22203
22207
|
className: "relative h-full [transform-style:preserve-3d]",
|
|
22204
22208
|
style: {
|
|
22205
22209
|
transform: `rotateY(${m ? 180 : 0}deg)`,
|
|
22206
|
-
transition: b ? void 0 : `transform ${
|
|
22210
|
+
transition: b ? void 0 : `transform ${oI}ms ${sI}`
|
|
22207
22211
|
},
|
|
22208
22212
|
children: [/* @__PURE__ */ Q("div", {
|
|
22209
22213
|
className: W("[backface-visibility:hidden]", m && "pointer-events-none"),
|
|
@@ -22235,8 +22239,8 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22235
22239
|
}
|
|
22236
22240
|
//#endregion
|
|
22237
22241
|
//#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
|
|
22238
|
-
var
|
|
22239
|
-
let e = on(
|
|
22242
|
+
var dI = "(min-width: 2200px) and (min-height: 900px)", fI = () => {
|
|
22243
|
+
let e = on(dI, {
|
|
22240
22244
|
initializeWithValue: !0,
|
|
22241
22245
|
defaultValue: !1
|
|
22242
22246
|
}), t = on(`(max-width: ${oc.md}px)`, {
|
|
@@ -22250,14 +22254,14 @@ var lI = "(min-width: 2200px) and (min-height: 900px)", uI = () => {
|
|
|
22250
22254
|
asideClassName: t ? "w-full shrink-0" : "w-80 shrink-0",
|
|
22251
22255
|
stacked: t
|
|
22252
22256
|
};
|
|
22253
|
-
},
|
|
22254
|
-
function
|
|
22257
|
+
}, pI = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
|
|
22258
|
+
function mI({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
22255
22259
|
return /* @__PURE__ */ Q("div", {
|
|
22256
22260
|
className: "flex min-w-0 flex-1 flex-col overflow-y-auto rounded-lg bg-f1-background-secondary p-6",
|
|
22257
22261
|
children: /* @__PURE__ */ $("div", {
|
|
22258
22262
|
className: "my-auto flex w-full flex-col items-center gap-6",
|
|
22259
22263
|
children: [/* @__PURE__ */ Q("div", {
|
|
22260
|
-
className: W("w-full",
|
|
22264
|
+
className: W("w-full", pI),
|
|
22261
22265
|
style: { maxWidth: `${r}px` },
|
|
22262
22266
|
children: t
|
|
22263
22267
|
}, e), n ? /* @__PURE__ */ Q("p", {
|
|
@@ -22269,9 +22273,9 @@ function fI({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
|
22269
22273
|
}
|
|
22270
22274
|
//#endregion
|
|
22271
22275
|
//#region src/domains/platform/home/Home/WidgetUpdateDialog/WidgetUpdateDialog.tsx
|
|
22272
|
-
var
|
|
22273
|
-
function
|
|
22274
|
-
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } =
|
|
22276
|
+
var hI = (e, t) => typeof e == "function" ? e(t) : e, gI = 250;
|
|
22277
|
+
function _I({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: l = "Save" }) {
|
|
22278
|
+
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = fI(), { formRef: h, getValues: g, trigger: _ } = $e(), [v, y] = X(r ?? {});
|
|
22275
22279
|
return q(() => {
|
|
22276
22280
|
e && y(r ?? {});
|
|
22277
22281
|
}, [e, r]), /* @__PURE__ */ Q(Za, {
|
|
@@ -22297,15 +22301,15 @@ function hI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
22297
22301
|
defaultValues: r,
|
|
22298
22302
|
submitConfig: {
|
|
22299
22303
|
type: "autosubmit",
|
|
22300
|
-
delay:
|
|
22304
|
+
delay: gI,
|
|
22301
22305
|
hideActionBar: !0
|
|
22302
22306
|
},
|
|
22303
22307
|
styling: { noPadding: !0 },
|
|
22304
22308
|
onSubmit: (e) => (y(e), { success: !0 })
|
|
22305
22309
|
})
|
|
22306
|
-
}), /* @__PURE__ */ Q(
|
|
22310
|
+
}), /* @__PURE__ */ Q(mI, {
|
|
22307
22311
|
previewKey: "widget-params",
|
|
22308
|
-
info:
|
|
22312
|
+
info: hI(a, v),
|
|
22309
22313
|
previewWidth: s,
|
|
22310
22314
|
children: i(v)
|
|
22311
22315
|
})]
|
|
@@ -22314,10 +22318,10 @@ function hI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
22314
22318
|
}
|
|
22315
22319
|
//#endregion
|
|
22316
22320
|
//#region src/domains/platform/home/Home/WidgetContainer/dragGhost.ts
|
|
22317
|
-
var
|
|
22321
|
+
var vI = (e) => {
|
|
22318
22322
|
let t = e?.cloneNode(!0);
|
|
22319
22323
|
return t instanceof HTMLElement ? (t.classList.remove("invisible"), t.style.transform = "none", t.style.transition = "none", t.removeAttribute("id"), t.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), t.setAttribute("aria-hidden", "true"), t.setAttribute("inert", ""), t) : null;
|
|
22320
|
-
},
|
|
22324
|
+
}, yI = (e, t) => {
|
|
22321
22325
|
if (!e || !t) return null;
|
|
22322
22326
|
let n = e.cloneNode(!0);
|
|
22323
22327
|
if (!(n instanceof HTMLElement)) return null;
|
|
@@ -22331,51 +22335,51 @@ var gI = (e) => {
|
|
|
22331
22335
|
width: r.width,
|
|
22332
22336
|
height: r.height
|
|
22333
22337
|
},
|
|
22334
|
-
base:
|
|
22338
|
+
base: xI(e)
|
|
22335
22339
|
};
|
|
22336
|
-
},
|
|
22340
|
+
}, bI = /* @__PURE__ */ new Set([
|
|
22337
22341
|
"rgba(0, 0, 0, 0)",
|
|
22338
22342
|
"transparent",
|
|
22339
22343
|
""
|
|
22340
|
-
]),
|
|
22344
|
+
]), xI = (e) => {
|
|
22341
22345
|
if (typeof getComputedStyle != "function") return null;
|
|
22342
22346
|
for (let t = e; t; t = t.parentElement) {
|
|
22343
22347
|
let e = getComputedStyle(t).backgroundColor;
|
|
22344
|
-
if (!
|
|
22348
|
+
if (!bI.has(e)) return e;
|
|
22345
22349
|
}
|
|
22346
22350
|
return null;
|
|
22347
|
-
},
|
|
22351
|
+
}, SI = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, CI = (e) => e && SI.test(e) ? e : void 0, wI = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, TI = (e) => SI.test(e), EI = (e) => {
|
|
22348
22352
|
let t = [], n = 0;
|
|
22349
|
-
for (let r of e.matchAll(
|
|
22353
|
+
for (let r of e.matchAll(wI)) {
|
|
22350
22354
|
let i = r[1] ?? "", a = r[2] ?? "", o = r.index, s = e[o - 1] === "!", c = e.slice(n, s ? o - 1 : o);
|
|
22351
|
-
c && t.push({ text: c }), t.push(s || !
|
|
22355
|
+
c && t.push({ text: c }), t.push(s || !TI(a) ? { text: i } : {
|
|
22352
22356
|
label: i,
|
|
22353
22357
|
href: a
|
|
22354
22358
|
}), n = o + r[0].length;
|
|
22355
22359
|
}
|
|
22356
22360
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
22357
|
-
},
|
|
22361
|
+
}, DI = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
22358
22362
|
className: "text-center text-f1-foreground-secondary",
|
|
22359
|
-
children:
|
|
22363
|
+
children: EI(e).map((e, t) => /* @__PURE__ */ Q(rl, { children: "href" in e ? /* @__PURE__ */ Q(Dr, {
|
|
22360
22364
|
href: e.href,
|
|
22361
22365
|
children: e.label
|
|
22362
22366
|
}) : e.text }, t))
|
|
22363
|
-
}),
|
|
22367
|
+
}), OI = (e) => {
|
|
22364
22368
|
let t = e.findIndex((e) => !e.locked);
|
|
22365
22369
|
return e.slice(0, t < 0 ? e.length : t);
|
|
22366
|
-
},
|
|
22367
|
-
let r =
|
|
22370
|
+
}, kI = (e, t, n) => {
|
|
22371
|
+
let r = OI(e).flatMap((e) => {
|
|
22368
22372
|
let n = t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
22369
22373
|
return n ? [n.bottom] : [];
|
|
22370
22374
|
});
|
|
22371
22375
|
return r.length > 0 ? Math.max(...r) + n : null;
|
|
22372
|
-
},
|
|
22376
|
+
}, AI = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
|
|
22373
22377
|
let i = e(), a = (n ?? r)?.top;
|
|
22374
22378
|
return i == null || a == null ? t : {
|
|
22375
22379
|
...t,
|
|
22376
22380
|
y: Math.max(t.y, i - a)
|
|
22377
22381
|
};
|
|
22378
|
-
},
|
|
22382
|
+
}, jI = ({ id: e, disabled: t = !1, children: n }) => {
|
|
22379
22383
|
let { listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = te({
|
|
22380
22384
|
id: e,
|
|
22381
22385
|
disabled: t
|
|
@@ -22394,22 +22398,22 @@ var gI = (e) => {
|
|
|
22394
22398
|
...t ? {} : r,
|
|
22395
22399
|
children: n({ isDragging: s })
|
|
22396
22400
|
});
|
|
22397
|
-
},
|
|
22401
|
+
}, MI = 12, NI = 280, PI = 2, FI = /* @__PURE__ */ new Set([
|
|
22398
22402
|
"auto",
|
|
22399
22403
|
"scroll",
|
|
22400
22404
|
"overlay"
|
|
22401
|
-
]),
|
|
22405
|
+
]), II = (e) => {
|
|
22402
22406
|
let t = e.parentElement;
|
|
22403
22407
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
22404
|
-
if (
|
|
22408
|
+
if (FI.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
|
|
22405
22409
|
t = t.parentElement;
|
|
22406
22410
|
}
|
|
22407
22411
|
return null;
|
|
22408
22412
|
};
|
|
22409
|
-
function
|
|
22413
|
+
function LI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
22410
22414
|
let a = e === !1 ? null : e, [o, s] = X(null), [c, l] = X(null), u = a?.scrollElement ?? c, d = a != null && !i, f = a?.scrollElement != null;
|
|
22411
22415
|
ml(() => {
|
|
22412
|
-
d && !f && o && l(
|
|
22416
|
+
d && !f && o && l(II(o));
|
|
22413
22417
|
}, [
|
|
22414
22418
|
d,
|
|
22415
22419
|
f,
|
|
@@ -22430,7 +22434,7 @@ function FI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
22430
22434
|
o,
|
|
22431
22435
|
u
|
|
22432
22436
|
]);
|
|
22433
|
-
let h = d && u != null && t >= (a?.threshold ??
|
|
22437
|
+
let h = d && u != null && t >= (a?.threshold ?? MI), g = Y(r);
|
|
22434
22438
|
g.current = r;
|
|
22435
22439
|
let _ = r.join(","), v = K((e) => {
|
|
22436
22440
|
let t = new Set(ms(e));
|
|
@@ -22442,8 +22446,8 @@ function FI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
22442
22446
|
gap: n,
|
|
22443
22447
|
scrollMargin: p,
|
|
22444
22448
|
rangeExtractor: v,
|
|
22445
|
-
overscan: a?.overscan ??
|
|
22446
|
-
estimateSize: () => a?.estimateHeight ??
|
|
22449
|
+
overscan: a?.overscan ?? PI,
|
|
22450
|
+
estimateSize: () => a?.estimateHeight ?? NI,
|
|
22447
22451
|
getScrollElement: () => u
|
|
22448
22452
|
});
|
|
22449
22453
|
return {
|
|
@@ -22460,10 +22464,10 @@ function FI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
22460
22464
|
}
|
|
22461
22465
|
//#endregion
|
|
22462
22466
|
//#region src/domains/platform/home/Home/WidgetContainer/verticalOnly.ts
|
|
22463
|
-
var
|
|
22467
|
+
var RI = ({ transform: e }) => ({
|
|
22464
22468
|
...e,
|
|
22465
22469
|
x: 0
|
|
22466
|
-
}),
|
|
22470
|
+
}), zI = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
|
|
22467
22471
|
let a = sn(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? PP : e?.arriving ? IP(s, e.delayMs) : !t || t.instant ? PP : o ? WP : GP;
|
|
22468
22472
|
return /* @__PURE__ */ Q(B.div, {
|
|
22469
22473
|
"data-widget-id": r,
|
|
@@ -22479,7 +22483,7 @@ var II = ({ transform: e }) => ({
|
|
|
22479
22483
|
transition: c,
|
|
22480
22484
|
children: i
|
|
22481
22485
|
});
|
|
22482
|
-
},
|
|
22486
|
+
}, BI = ({ host: e, children: t }) => {
|
|
22483
22487
|
let n = Y();
|
|
22484
22488
|
if (!n.current) {
|
|
22485
22489
|
let e = document.createElement("div");
|
|
@@ -22499,7 +22503,7 @@ var II = ({ transform: e }) => ({
|
|
|
22499
22503
|
ref: o,
|
|
22500
22504
|
className: "contents"
|
|
22501
22505
|
}), vl(t, r)] });
|
|
22502
|
-
},
|
|
22506
|
+
}, VI = [
|
|
22503
22507
|
"a",
|
|
22504
22508
|
"button",
|
|
22505
22509
|
"input",
|
|
@@ -22513,28 +22517,28 @@ var II = ({ transform: e }) => ({
|
|
|
22513
22517
|
"[role='checkbox']",
|
|
22514
22518
|
"[role='tab']",
|
|
22515
22519
|
"[contenteditable='true']"
|
|
22516
|
-
].join(","),
|
|
22520
|
+
].join(","), HI = class extends I {
|
|
22517
22521
|
static activators = [{
|
|
22518
22522
|
eventName: "onPointerDown",
|
|
22519
22523
|
handler: ({ nativeEvent: e }, { onActivation: t }) => {
|
|
22520
22524
|
if (!e.isPrimary || e.button !== 0) return !1;
|
|
22521
22525
|
let n = e.target;
|
|
22522
|
-
return n instanceof Element && n.closest(
|
|
22526
|
+
return n instanceof Element && n.closest(VI) ? !1 : (t?.({ event: e }), !0);
|
|
22523
22527
|
}
|
|
22524
22528
|
}];
|
|
22525
|
-
},
|
|
22529
|
+
}, UI = {
|
|
22526
22530
|
duration: 450,
|
|
22527
22531
|
easing: "cubic-bezier(0.4, 0, 0.1, 1)"
|
|
22528
|
-
},
|
|
22532
|
+
}, WI = (e, t) => {
|
|
22529
22533
|
for (let n = e; n; n = n.parentElement) {
|
|
22530
22534
|
let e = n.querySelector(t);
|
|
22531
22535
|
if (e) return e;
|
|
22532
22536
|
}
|
|
22533
22537
|
return null;
|
|
22534
|
-
},
|
|
22538
|
+
}, GI = {
|
|
22535
22539
|
main: 24,
|
|
22536
22540
|
right: 16
|
|
22537
|
-
},
|
|
22541
|
+
}, KI = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
|
|
22538
22542
|
ref: t ? n : void 0,
|
|
22539
22543
|
"data-index": t?.index,
|
|
22540
22544
|
hidden: e,
|
|
@@ -22545,7 +22549,7 @@ var II = ({ transform: e }) => ({
|
|
|
22545
22549
|
width: "100%"
|
|
22546
22550
|
} : { display: e ? void 0 : "contents" },
|
|
22547
22551
|
children: r
|
|
22548
|
-
}),
|
|
22552
|
+
}), qI = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(_n, {
|
|
22549
22553
|
label: t,
|
|
22550
22554
|
children: /* @__PURE__ */ Q("button", {
|
|
22551
22555
|
type: "button",
|
|
@@ -22559,10 +22563,10 @@ var II = ({ transform: e }) => ({
|
|
|
22559
22563
|
})
|
|
22560
22564
|
})
|
|
22561
22565
|
});
|
|
22562
|
-
function
|
|
22563
|
-
let j = U(), M = !s, N = (e) => g !== void 0 && e.id !== g, P = M && h != null, F = e.filter((e) => !e.locked).length > 1, [I, ee] = X(null), te = c(Xt(
|
|
22566
|
+
function JI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: o, disableEdition: s = !1, disableDrag: l = !1, widgetHostFor: u, afterWidgets: d, dragSurfaceSelector: f, onRemoveWidget: p, onClickAddNewWidget: m, onReorder: h, visibleWidgetId: g, entrance: _ = {}, virtualized: v = !1, stow: y, addWidgetLabel: b, onChangeWidgetParams: S, rebuildWidget: C, renderWidgetPreview: w, paramsPreviewWidth: T, removeLabel: E, editParamsLabel: D, ctx: O = {}, className: k, style: A }) {
|
|
22567
|
+
let j = U(), M = !s, N = (e) => g !== void 0 && e.id !== g, P = M && h != null, F = e.filter((e) => !e.locked).length > 1, [I, ee] = X(null), te = c(Xt(HI, { activationConstraint: { distance: 4 } })), [ne, re] = X(null), ae = e.find((e) => e.id === ne), [L, oe] = X(null), se = Y(null), le = Y(null), ue = Y(null), de = Y(null), fe = J(() => [RI, AI(() => de.current)], []), me = (e) => {
|
|
22564
22568
|
let t = se.current?.querySelector(`[data-widget-id="${e}"]`);
|
|
22565
|
-
le.current =
|
|
22569
|
+
le.current = vI(t), ue.current = f ? yI(WI(se.current, f), t) : null;
|
|
22566
22570
|
}, R = (e) => {
|
|
22567
22571
|
e && le.current && e.replaceChildren(le.current);
|
|
22568
22572
|
}, he = Y(0), ge = () => cancelAnimationFrame(he.current), _e = (e) => {
|
|
@@ -22577,14 +22581,14 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22577
22581
|
e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`, he.current = requestAnimationFrame(r);
|
|
22578
22582
|
};
|
|
22579
22583
|
r();
|
|
22580
|
-
}, ve =
|
|
22584
|
+
}, ve = LI({
|
|
22581
22585
|
config: v === !0 ? {} : v,
|
|
22582
22586
|
count: e.length,
|
|
22583
|
-
gap:
|
|
22587
|
+
gap: GI[t],
|
|
22584
22588
|
pinned: I ? [e.findIndex((e) => e.id === I)] : [],
|
|
22585
22589
|
paused: g !== void 0
|
|
22586
22590
|
}), ye = v !== !1 && g !== void 0, be = ({ activatorEvent: t, delta: n, active: r }) => {
|
|
22587
|
-
let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = de.current == null ? [] :
|
|
22591
|
+
let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = de.current == null ? [] : OI(e);
|
|
22588
22592
|
return e.find((e) => {
|
|
22589
22593
|
if (!e.locked || c.includes(e)) return !1;
|
|
22590
22594
|
let t = se.current?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
@@ -22594,7 +22598,7 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22594
22598
|
});
|
|
22595
22599
|
}, xe = (e) => {
|
|
22596
22600
|
let t = [...e.actions ?? []];
|
|
22597
|
-
return
|
|
22601
|
+
return SF(e.header, e.params)?.info && t.push({
|
|
22598
22602
|
label: j.widgets.whatThisMeans,
|
|
22599
22603
|
icon: Rs,
|
|
22600
22604
|
onClick: () => oe(e.id)
|
|
@@ -22613,7 +22617,7 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22613
22617
|
if (i) {
|
|
22614
22618
|
jt.open({
|
|
22615
22619
|
variant: "warning",
|
|
22616
|
-
title: j.widgets.cannotMoveHere.replace("{{title}}",
|
|
22620
|
+
title: j.widgets.cannotMoveHere.replace("{{title}}", CF(i))
|
|
22617
22621
|
});
|
|
22618
22622
|
return;
|
|
22619
22623
|
}
|
|
@@ -22628,13 +22632,13 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22628
22632
|
if ([...l.values()].includes(String(r.id))) return;
|
|
22629
22633
|
let u = a(o, s, c).filter((e) => !l.has(o.indexOf(e))), d = o.map((e, t) => l.get(t) ?? u.shift());
|
|
22630
22634
|
h?.(d);
|
|
22631
|
-
}, Ce = (e, t, n = e.params) => /* @__PURE__ */ Q(
|
|
22635
|
+
}, Ce = (e, t, n = e.params) => /* @__PURE__ */ Q(mF, {
|
|
22632
22636
|
widgetId: e.id,
|
|
22633
22637
|
children: we(e, t, n)
|
|
22634
22638
|
}), we = (e, t, n = e.params) => {
|
|
22635
22639
|
let r = xe(e);
|
|
22636
|
-
if (!o) return /* @__PURE__ */ Q(
|
|
22637
|
-
...
|
|
22640
|
+
if (!o) return /* @__PURE__ */ Q(uI, {
|
|
22641
|
+
...EF(e),
|
|
22638
22642
|
header: e.header,
|
|
22639
22643
|
params: n,
|
|
22640
22644
|
fullHeight: e.fullHeight,
|
|
@@ -22671,7 +22675,7 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22671
22675
|
instant: y.stowed
|
|
22672
22676
|
}, Oe = (e, t, n, r) => {
|
|
22673
22677
|
let i = n ? De(n) : void 0;
|
|
22674
|
-
return !Te && !i && !r ? t : /* @__PURE__ */ Q(
|
|
22678
|
+
return !Te && !i && !r ? t : /* @__PURE__ */ Q(zI, {
|
|
22675
22679
|
arrival: Te ? {
|
|
22676
22680
|
order: (Te.order ?? 0) + e,
|
|
22677
22681
|
delayMs: Te.delayMs ?? 0,
|
|
@@ -22682,13 +22686,13 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22682
22686
|
widgetId: r,
|
|
22683
22687
|
children: t
|
|
22684
22688
|
});
|
|
22685
|
-
}, ke = (e, t, n) => /* @__PURE__ */ Q(
|
|
22689
|
+
}, ke = (e, t, n) => /* @__PURE__ */ Q(KI, {
|
|
22686
22690
|
hidden: N(e),
|
|
22687
22691
|
placement: n,
|
|
22688
22692
|
measureRef: ve.measureRef,
|
|
22689
|
-
children: /* @__PURE__ */ Q(
|
|
22693
|
+
children: /* @__PURE__ */ Q(BI, {
|
|
22690
22694
|
host: u?.(e),
|
|
22691
|
-
children: P ? /* @__PURE__ */ Q(
|
|
22695
|
+
children: P ? /* @__PURE__ */ Q(jI, {
|
|
22692
22696
|
id: e.id,
|
|
22693
22697
|
disabled: e.locked || l || !F,
|
|
22694
22698
|
children: (n) => Oe(t, Ce(e, n), e)
|
|
@@ -22714,7 +22718,7 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22714
22718
|
collisionDetection: pe,
|
|
22715
22719
|
modifiers: fe,
|
|
22716
22720
|
onDragStart: ({ active: n }) => {
|
|
22717
|
-
me(String(n.id)), de.current =
|
|
22721
|
+
me(String(n.id)), de.current = kI(e, se.current, GI[t]), ee(String(n.id));
|
|
22718
22722
|
},
|
|
22719
22723
|
onDragCancel: () => {
|
|
22720
22724
|
ee(null), ge(), le.current = null, ue.current = null, de.current = null;
|
|
@@ -22734,7 +22738,7 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22734
22738
|
className: "fixed inset-0 z-50 cursor-grabbing"
|
|
22735
22739
|
}) : null,
|
|
22736
22740
|
/* @__PURE__ */ Q(x, {
|
|
22737
|
-
dropAnimation:
|
|
22741
|
+
dropAnimation: UI,
|
|
22738
22742
|
children: I ? /* @__PURE__ */ $("div", {
|
|
22739
22743
|
className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
|
|
22740
22744
|
children: [/* @__PURE__ */ Q("div", {
|
|
@@ -22749,13 +22753,13 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22749
22753
|
]
|
|
22750
22754
|
}) : Ae,
|
|
22751
22755
|
d,
|
|
22752
|
-
r == null ? null : Oe(e.length, /* @__PURE__ */ Q(
|
|
22753
|
-
!s && m ? Oe(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(
|
|
22756
|
+
r == null ? null : Oe(e.length, /* @__PURE__ */ Q(DI, { text: r })),
|
|
22757
|
+
!s && m ? Oe(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(qI, {
|
|
22754
22758
|
onClick: m,
|
|
22755
22759
|
label: b ?? j.widgets.addWidget,
|
|
22756
22760
|
side: t
|
|
22757
22761
|
})) : null,
|
|
22758
|
-
ae?.paramsSchema && S ? /* @__PURE__ */ Q(
|
|
22762
|
+
ae?.paramsSchema && S ? /* @__PURE__ */ Q(_I, {
|
|
22759
22763
|
isOpen: !0,
|
|
22760
22764
|
onClose: () => re(null),
|
|
22761
22765
|
schema: ae.paramsSchema,
|
|
@@ -22770,7 +22774,7 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22770
22774
|
}
|
|
22771
22775
|
//#endregion
|
|
22772
22776
|
//#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
|
|
22773
|
-
var
|
|
22777
|
+
var YI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
22774
22778
|
let a = sn(), [o, s] = X(!1);
|
|
22775
22779
|
q(() => {
|
|
22776
22780
|
r && s(!0);
|
|
@@ -22800,14 +22804,14 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22800
22804
|
},
|
|
22801
22805
|
glyphDelayMs: o ? 90 : 220
|
|
22802
22806
|
};
|
|
22803
|
-
},
|
|
22807
|
+
}, XI = {
|
|
22804
22808
|
morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
|
|
22805
22809
|
afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
|
|
22806
22810
|
evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
|
|
22807
|
-
},
|
|
22811
|
+
}, ZI = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
|
|
22808
22812
|
"aria-hidden": !0,
|
|
22809
|
-
className: W("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
|
|
22810
|
-
}),
|
|
22813
|
+
className: W("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", XI[e], t)
|
|
22814
|
+
}), QI = 40, $I = 672, eL = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", tL = 16, nL = 768, rL = { display: "contents" }, iL = 150, aL = 150, oL = sl(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, virtualizedWidgetContainers: l = [], virtualization: u, onRemoveWidget: d, onChangeWidgetParams: f, rebuildWidget: p, renderWidgetPreview: m, onClickAddNewWidget: h, onReorderWidgets: g, tracking: _, period: v = "morning", asideWidth: y = 396, mainWidth: b = $I, bleed: x = 24, stackedPinsAfter: S = 2, ctx: C = {}, className: w, oneSwitchTooltip: T, oneSwitchAutoOpen: E, hideOneSwitch: D = !1 }, O) {
|
|
22811
22815
|
let k = U(), { sidebarState: A, toggleSidebar: j, isSmallScreen: M, hasPrimarySidebar: N } = uc(), P = sn(), F = Y(null), [I, ee] = X(0), [te, ne] = X(!1), [re, ie] = X(null), [ae, L] = X(0), [oe, se] = X(!1), ce = Y(null), le = Y(null);
|
|
22812
22816
|
ml(function() {
|
|
22813
22817
|
let e = F.current;
|
|
@@ -22820,10 +22824,10 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22820
22824
|
let n = new ResizeObserver(t);
|
|
22821
22825
|
return n.observe(e), () => n.disconnect();
|
|
22822
22826
|
}, []);
|
|
22823
|
-
let [ue, de] = X(null), fe = (e) => s.includes(e), pe = (e) => fe(e) && (c?.includes(e) ?? !0), me =
|
|
22827
|
+
let [ue, de] = X(null), fe = (e) => s.includes(e), pe = (e) => fe(e) && (c?.includes(e) ?? !0), me = iI(), R = iI(), he = iI(), ge = (e) => l.includes(e) ? {
|
|
22824
22828
|
...u,
|
|
22825
22829
|
scrollElement: e === "main" ? me.element : R.element
|
|
22826
|
-
} : !1, _e = i != null || r.length > 0 || h != null && pe("right"), ve = I > 0 && I < b +
|
|
22830
|
+
} : !1, _e = i != null || r.length > 0 || h != null && pe("right"), ve = I > 0 && I < b + tL + y, ye = _e && r.length > 0 && (ve || (ue ?? !1)), be = ye ? QI : y, xe = ye ? "Expand widgets panel" : "Collapse widgets panel", Se = _e && te, Ce = I > 0 && I < nL, we = Se && !Ce && (ye || I >= nL), Te = {
|
|
22827
22831
|
pinned: r.filter((e) => e.locked),
|
|
22828
22832
|
rest: r.filter((e) => !e.locked)
|
|
22829
22833
|
}, [Ee, De] = X({}), Oe = Y(/* @__PURE__ */ new Map()), ke = (e) => {
|
|
@@ -22841,7 +22845,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22841
22845
|
...je.slice(0, S).map(Me),
|
|
22842
22846
|
...Te.pinned.map((e) => /* @__PURE__ */ Q("div", {
|
|
22843
22847
|
ref: ke(e.id),
|
|
22844
|
-
style:
|
|
22848
|
+
style: rL
|
|
22845
22849
|
}, `pin-host-${e.id}`)),
|
|
22846
22850
|
...je.slice(S).map((e, t) => Me(e, S + t))
|
|
22847
22851
|
], Pe = ye ? r.find((e) => e.id === re) : void 0;
|
|
@@ -22852,7 +22856,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22852
22856
|
le.current && clearTimeout(le.current), ce.current && clearTimeout(ce.current);
|
|
22853
22857
|
};
|
|
22854
22858
|
}, []);
|
|
22855
|
-
let Fe =
|
|
22859
|
+
let Fe = YI({
|
|
22856
22860
|
collapsed: ye,
|
|
22857
22861
|
open: Pe != null,
|
|
22858
22862
|
glide: oe,
|
|
@@ -22886,7 +22890,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22886
22890
|
}, He = () => {
|
|
22887
22891
|
le.current && clearTimeout(le.current), le.current = null;
|
|
22888
22892
|
}, Ue = () => {
|
|
22889
|
-
Ve(), He(), ce.current = setTimeout(() => ie(null),
|
|
22893
|
+
Ve(), He(), ce.current = setTimeout(() => ie(null), iL);
|
|
22890
22894
|
}, We = (e, t) => {
|
|
22891
22895
|
He();
|
|
22892
22896
|
let n = F.current;
|
|
@@ -22896,7 +22900,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22896
22900
|
}
|
|
22897
22901
|
se(Re.current != null), ie(e);
|
|
22898
22902
|
}, Ge = (e, t, n = !1) => {
|
|
22899
|
-
Ve(), He(), Re.current !== e && (n ? We(e, t) : le.current = setTimeout(() => We(e, t),
|
|
22903
|
+
Ve(), He(), Re.current !== e && (n ? We(e, t) : le.current = setTimeout(() => We(e, t), aL));
|
|
22900
22904
|
}, Ke = /* @__PURE__ */ $(B.div, {
|
|
22901
22905
|
ref: (e) => {
|
|
22902
22906
|
F.current = e, typeof O == "function" ? O(e) : O && (O.current = e);
|
|
@@ -22919,7 +22923,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22919
22923
|
left: -x,
|
|
22920
22924
|
right: -x
|
|
22921
22925
|
},
|
|
22922
|
-
children: /* @__PURE__ */ Q(
|
|
22926
|
+
children: /* @__PURE__ */ Q(ZI, { period: v })
|
|
22923
22927
|
}),
|
|
22924
22928
|
/* @__PURE__ */ $(rF, {
|
|
22925
22929
|
order: 0,
|
|
@@ -22953,7 +22957,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22953
22957
|
}),
|
|
22954
22958
|
/* @__PURE__ */ Q("div", {
|
|
22955
22959
|
ref: me.ref,
|
|
22956
|
-
className: W("relative isolate min-h-0 overflow-y-auto",
|
|
22960
|
+
className: W("relative isolate min-h-0 overflow-y-auto", eL),
|
|
22957
22961
|
style: {
|
|
22958
22962
|
gridColumn: 1,
|
|
22959
22963
|
gridRow: 2,
|
|
@@ -22964,17 +22968,17 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22964
22968
|
marginLeft: -x,
|
|
22965
22969
|
paddingLeft: x,
|
|
22966
22970
|
marginRight: we ? -16 : -x,
|
|
22967
|
-
paddingRight: we ?
|
|
22971
|
+
paddingRight: we ? tL : x,
|
|
22968
22972
|
...me.style
|
|
22969
22973
|
},
|
|
22970
|
-
children: /* @__PURE__ */ Q(
|
|
22974
|
+
children: /* @__PURE__ */ Q(JI, {
|
|
22971
22975
|
side: "main",
|
|
22972
22976
|
className: "relative mx-auto w-full",
|
|
22973
22977
|
style: { maxWidth: `${b}px` },
|
|
22974
22978
|
widgets: n,
|
|
22975
22979
|
afterWidgets: Te.rest.map((e) => /* @__PURE__ */ Q("div", {
|
|
22976
22980
|
ref: ke(e.id),
|
|
22977
|
-
style:
|
|
22981
|
+
style: rL
|
|
22978
22982
|
}, `loose-host-${e.id}`)),
|
|
22979
22983
|
footnote: t,
|
|
22980
22984
|
slotRenderers: a,
|
|
@@ -22996,7 +23000,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22996
23000
|
}),
|
|
22997
23001
|
/* @__PURE__ */ Q(vn, { children: Ce || !Se || !ye ? null : /* @__PURE__ */ $(B.aside, {
|
|
22998
23002
|
ref: he.ref,
|
|
22999
|
-
className: W("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20",
|
|
23003
|
+
className: W("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20", eL),
|
|
23000
23004
|
style: {
|
|
23001
23005
|
gridColumn: 2,
|
|
23002
23006
|
gridRow: 2,
|
|
@@ -23010,7 +23014,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23010
23014
|
transition: qP(VP, P),
|
|
23011
23015
|
onMouseLeave: Ue,
|
|
23012
23016
|
onMouseEnter: Ve,
|
|
23013
|
-
children: [r.map((e, t) => /* @__PURE__ */ Q(
|
|
23017
|
+
children: [r.map((e, t) => /* @__PURE__ */ Q(rI, {
|
|
23014
23018
|
widget: e,
|
|
23015
23019
|
order: t,
|
|
23016
23020
|
open: re === e.id,
|
|
@@ -23041,7 +23045,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23041
23045
|
Se ? /* @__PURE__ */ Q(B.aside, {
|
|
23042
23046
|
ref: R.ref,
|
|
23043
23047
|
hidden: Ce || Ie && Fe.panelHidden,
|
|
23044
|
-
className: W("min-h-0 overflow-y-auto overflow-x-hidden",
|
|
23048
|
+
className: W("min-h-0 overflow-y-auto overflow-x-hidden", eL, Ie && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", Fe.mode === "retracting" && "relative z-10"),
|
|
23045
23049
|
style: Be,
|
|
23046
23050
|
initial: !1,
|
|
23047
23051
|
animate: {
|
|
@@ -23053,7 +23057,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23053
23057
|
transition: Fe.transition,
|
|
23054
23058
|
onMouseEnter: ye ? Ve : void 0,
|
|
23055
23059
|
onMouseLeave: ye ? Ue : void 0,
|
|
23056
|
-
children: /* @__PURE__ */ Q(
|
|
23060
|
+
children: /* @__PURE__ */ Q(JI, {
|
|
23057
23061
|
side: "right",
|
|
23058
23062
|
widgets: r,
|
|
23059
23063
|
visibleWidgetId: !Ce && Ie ? ze : void 0,
|
|
@@ -23091,40 +23095,40 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23091
23095
|
}) : null
|
|
23092
23096
|
]
|
|
23093
23097
|
});
|
|
23094
|
-
return /* @__PURE__ */ Q(
|
|
23098
|
+
return /* @__PURE__ */ Q(fF, {
|
|
23095
23099
|
tracking: _,
|
|
23096
23100
|
children: Ke
|
|
23097
23101
|
});
|
|
23098
|
-
}),
|
|
23102
|
+
}), sL = (e) => e ? kr[e] : void 0, cL = (e) => e.type === "icon" ? {
|
|
23099
23103
|
...e,
|
|
23100
|
-
icon:
|
|
23101
|
-
} : e,
|
|
23102
|
-
...e.type === "navigate" &&
|
|
23104
|
+
icon: sL(e.icon) ?? di
|
|
23105
|
+
} : e, lL = (e, t, n) => ({
|
|
23106
|
+
...e.type === "navigate" && CI(e.href) ? { href: e.href } : {},
|
|
23103
23107
|
onClick: () => n(e, t)
|
|
23104
|
-
}),
|
|
23108
|
+
}), uL = (e, t, n) => ({
|
|
23105
23109
|
label: e.label,
|
|
23106
|
-
icon:
|
|
23110
|
+
icon: sL(e.icon),
|
|
23107
23111
|
variant: e.variant,
|
|
23108
|
-
...
|
|
23109
|
-
}),
|
|
23112
|
+
...lL(e.action, t, n)
|
|
23113
|
+
}), dL = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(uI, {
|
|
23110
23114
|
headless: !e,
|
|
23111
23115
|
header: e ? { title: e } : void 0,
|
|
23112
23116
|
fullHeight: i,
|
|
23113
23117
|
slots: t,
|
|
23114
23118
|
loading: n,
|
|
23115
23119
|
slotRenderers: r
|
|
23116
|
-
}),
|
|
23120
|
+
}), fL = "agentic-empty-state", pL = [
|
|
23117
23121
|
"default",
|
|
23118
23122
|
"outline",
|
|
23119
23123
|
"neutral",
|
|
23120
23124
|
"promote"
|
|
23121
|
-
],
|
|
23125
|
+
], mL = (e) => pL.find((t) => t === e), hL = ({ empty: e, elementId: t, onAction: n }) => {
|
|
23122
23126
|
let r = U(), i = e?.title ?? r.collections.emptyStates.noData.title, a = e ? e.description : r.collections.emptyStates.noData.description, o = e?.actions?.slice(0, 2).map((e) => ({
|
|
23123
23127
|
label: e.label,
|
|
23124
|
-
icon:
|
|
23125
|
-
variant:
|
|
23128
|
+
icon: sL(e.icon),
|
|
23129
|
+
variant: mL(e.variant),
|
|
23126
23130
|
onClick: () => n(e.action, t ? { elementId: t } : {})
|
|
23127
|
-
})), s = J(() => ({ [
|
|
23131
|
+
})), s = J(() => ({ [fL]: () => /* @__PURE__ */ Q(S, {
|
|
23128
23132
|
title: i,
|
|
23129
23133
|
description: a,
|
|
23130
23134
|
emoji: e?.emoji ?? "📭",
|
|
@@ -23135,27 +23139,27 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23135
23139
|
e?.emoji,
|
|
23136
23140
|
o
|
|
23137
23141
|
]);
|
|
23138
|
-
return /* @__PURE__ */ Q(
|
|
23142
|
+
return /* @__PURE__ */ Q(dL, {
|
|
23139
23143
|
slots: [{
|
|
23140
|
-
visualization:
|
|
23144
|
+
visualization: fL,
|
|
23141
23145
|
params: {}
|
|
23142
23146
|
}],
|
|
23143
23147
|
slotRenderers: s
|
|
23144
23148
|
});
|
|
23145
|
-
},
|
|
23146
|
-
let t = U(), n = J(() => ({ [
|
|
23149
|
+
}, gL = ({ message: e }) => {
|
|
23150
|
+
let t = U(), n = J(() => ({ [fL]: () => /* @__PURE__ */ Q(S, {
|
|
23147
23151
|
variant: "critical",
|
|
23148
23152
|
title: t.collections.emptyStates.error.title,
|
|
23149
23153
|
description: e ?? t.collections.emptyStates.error.description
|
|
23150
23154
|
}) }), [t, e]);
|
|
23151
|
-
return /* @__PURE__ */ Q(
|
|
23155
|
+
return /* @__PURE__ */ Q(dL, {
|
|
23152
23156
|
slots: [{
|
|
23153
|
-
visualization:
|
|
23157
|
+
visualization: fL,
|
|
23154
23158
|
params: {}
|
|
23155
23159
|
}],
|
|
23156
23160
|
slotRenderers: n
|
|
23157
23161
|
});
|
|
23158
|
-
},
|
|
23162
|
+
}, _L = (e) => {
|
|
23159
23163
|
switch (e.type) {
|
|
23160
23164
|
case "stats": return e.stats;
|
|
23161
23165
|
case "charts": return e.charts;
|
|
@@ -23166,15 +23170,15 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23166
23170
|
case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
|
|
23167
23171
|
case "text": return [];
|
|
23168
23172
|
}
|
|
23169
|
-
},
|
|
23173
|
+
}, vL = (e, t, n, r) => {
|
|
23170
23174
|
let i = t?.itemActions;
|
|
23171
|
-
if (i) for (let t of
|
|
23175
|
+
if (i) for (let t of _L(e)) (!t.action || !i.includes(t.action.type)) && r.push({
|
|
23172
23176
|
rule: "itemAction",
|
|
23173
23177
|
...n,
|
|
23174
23178
|
itemId: t.id,
|
|
23175
23179
|
expected: i
|
|
23176
23180
|
});
|
|
23177
|
-
},
|
|
23181
|
+
}, yL = {
|
|
23178
23182
|
stats: 3,
|
|
23179
23183
|
charts: 2,
|
|
23180
23184
|
list: 3,
|
|
@@ -23182,7 +23186,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23182
23186
|
events: 2,
|
|
23183
23187
|
posts: 1,
|
|
23184
23188
|
widget: 3
|
|
23185
|
-
},
|
|
23189
|
+
}, bL = (e) => Math.max(1, e.expectedItemsCount ?? yL[e.type]), xL = (e) => {
|
|
23186
23190
|
switch (e.type) {
|
|
23187
23191
|
case "stats": return e.stats.length;
|
|
23188
23192
|
case "charts": return e.charts.length;
|
|
@@ -23193,7 +23197,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23193
23197
|
case "shortcuts": return e.shortcuts.length;
|
|
23194
23198
|
case "text": return 1;
|
|
23195
23199
|
}
|
|
23196
|
-
},
|
|
23200
|
+
}, SL = (e, t) => {
|
|
23197
23201
|
switch (e.type) {
|
|
23198
23202
|
case "stats": return {
|
|
23199
23203
|
...e,
|
|
@@ -23225,22 +23229,22 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23225
23229
|
};
|
|
23226
23230
|
case "text": return e;
|
|
23227
23231
|
}
|
|
23228
|
-
},
|
|
23229
|
-
let i =
|
|
23232
|
+
}, CL = (e, t) => e.blocks?.find((e) => e.type === t), wL = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, TL = (e, t, n, r) => {
|
|
23233
|
+
let i = CL(n, e.type)?.maxItems, a = xL(e);
|
|
23230
23234
|
return i === void 0 || a <= i ? e : (r.push({
|
|
23231
23235
|
rule: "maxItems",
|
|
23232
23236
|
elementId: t,
|
|
23233
23237
|
blockType: e.type,
|
|
23234
23238
|
limit: i,
|
|
23235
23239
|
count: a
|
|
23236
|
-
}),
|
|
23237
|
-
},
|
|
23238
|
-
let n = e.type === "widget" ? void 0 :
|
|
23239
|
-
return n !== void 0 &&
|
|
23240
|
+
}), SL(e, i));
|
|
23241
|
+
}, EL = (e, t) => {
|
|
23242
|
+
let n = e.type === "widget" ? void 0 : CL(t, e.type)?.maxItems;
|
|
23243
|
+
return n !== void 0 && bL(e) > n ? {
|
|
23240
23244
|
...e,
|
|
23241
23245
|
expectedItemsCount: Math.max(1, n)
|
|
23242
23246
|
} : e;
|
|
23243
|
-
},
|
|
23247
|
+
}, DL = (e, t, n) => t === n || (t === "widget" || n === "widget") && !CL(e, "widget") || (CL(e, t)?.combinesWith?.includes(n) ?? !0) && (CL(e, n)?.combinesWith?.includes(t) ?? !0), OL = (e, t) => {
|
|
23244
23248
|
let n = t ? e.lead : void 0;
|
|
23245
23249
|
if (!n) return e;
|
|
23246
23250
|
let r = new Set(n.blocks?.map((e) => e.type));
|
|
@@ -23248,30 +23252,30 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23248
23252
|
...e,
|
|
23249
23253
|
...n,
|
|
23250
23254
|
blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
|
|
23251
|
-
...
|
|
23255
|
+
...CL(e, t.type),
|
|
23252
23256
|
...t
|
|
23253
23257
|
}))]
|
|
23254
23258
|
};
|
|
23255
|
-
},
|
|
23259
|
+
}, kL = (e, t) => {
|
|
23256
23260
|
let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
|
|
23257
23261
|
return {
|
|
23258
23262
|
missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
|
|
23259
23263
|
undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
|
|
23260
23264
|
};
|
|
23261
|
-
},
|
|
23262
|
-
if (Array.isArray(e)) for (let r of e)
|
|
23263
|
-
else if (
|
|
23264
|
-
if (
|
|
23265
|
+
}, AL = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", jL = (e) => typeof e == "object" && !!e, ML = (e) => jL(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, NL = (e, t, n = []) => {
|
|
23266
|
+
if (Array.isArray(e)) for (let r of e) NL(r, ML(r) ?? t, n);
|
|
23267
|
+
else if (jL(e)) {
|
|
23268
|
+
if (AL(e)) n.push(t ? {
|
|
23265
23269
|
action: e,
|
|
23266
23270
|
itemId: t
|
|
23267
23271
|
} : { action: e });
|
|
23268
|
-
else for (let r of Object.values(e))
|
|
23272
|
+
else for (let r of Object.values(e)) NL(r, t, n);
|
|
23269
23273
|
}
|
|
23270
23274
|
return n;
|
|
23271
|
-
},
|
|
23275
|
+
}, PL = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], FL = (e, t, n) => NL(e).flatMap(({ action: e, itemId: r }) => {
|
|
23272
23276
|
let i = t.find(({ id: t }) => t === e.id);
|
|
23273
23277
|
if (!i) return [];
|
|
23274
|
-
let a =
|
|
23278
|
+
let a = kL(i, e.params);
|
|
23275
23279
|
return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
|
|
23276
23280
|
rule: "accessoryViewParams",
|
|
23277
23281
|
viewId: i.id,
|
|
@@ -23280,39 +23284,39 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23280
23284
|
...r && r !== n.elementId ? { itemId: r } : {},
|
|
23281
23285
|
...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
|
|
23282
23286
|
}];
|
|
23283
|
-
}),
|
|
23287
|
+
}), IL = (e, t, n) => [...FL([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? FL(e, t, {
|
|
23284
23288
|
elementId: e.id,
|
|
23285
23289
|
accessoryViewId: n
|
|
23286
|
-
}) : [])],
|
|
23290
|
+
}) : [])], LL = (e) => {
|
|
23287
23291
|
let t = e.accessoryViews ?? [];
|
|
23288
|
-
return
|
|
23289
|
-
},
|
|
23292
|
+
return PL([...e.sections.flatMap((e) => IL(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => IL(n, t, e.id)), ...FL(e.actions, t, { accessoryViewId: e.id })])]);
|
|
23293
|
+
}, RL = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
|
|
23290
23294
|
rule: "sectionLink",
|
|
23291
23295
|
...t,
|
|
23292
23296
|
...i ? { itemId: i } : {},
|
|
23293
23297
|
targetSectionId: r.sectionId
|
|
23294
|
-
}), !1),
|
|
23298
|
+
}), !1), zL = (e, t) => {
|
|
23295
23299
|
if (t(e.action, e.id)) return e;
|
|
23296
23300
|
let { action: n, ...r } = e;
|
|
23297
23301
|
return r;
|
|
23298
|
-
},
|
|
23302
|
+
}, BL = (e, t) => {
|
|
23299
23303
|
switch (e.type) {
|
|
23300
23304
|
case "stats": return {
|
|
23301
23305
|
...e,
|
|
23302
|
-
stats: e.stats.map((e) =>
|
|
23306
|
+
stats: e.stats.map((e) => zL(e, t))
|
|
23303
23307
|
};
|
|
23304
23308
|
case "charts": return {
|
|
23305
23309
|
...e,
|
|
23306
|
-
charts: e.charts.map((e) =>
|
|
23310
|
+
charts: e.charts.map((e) => zL(e, t))
|
|
23307
23311
|
};
|
|
23308
23312
|
case "events": return {
|
|
23309
23313
|
...e,
|
|
23310
|
-
events: e.events.map((e) =>
|
|
23314
|
+
events: e.events.map((e) => zL(e, t))
|
|
23311
23315
|
};
|
|
23312
23316
|
case "list": return {
|
|
23313
23317
|
...e,
|
|
23314
23318
|
rows: e.rows.map((e) => ({
|
|
23315
|
-
...
|
|
23319
|
+
...zL(e, t),
|
|
23316
23320
|
actions: e.actions?.filter((n) => t(n.action, e.id))
|
|
23317
23321
|
}))
|
|
23318
23322
|
};
|
|
@@ -23324,24 +23328,24 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23324
23328
|
case "posts":
|
|
23325
23329
|
case "text": return e;
|
|
23326
23330
|
}
|
|
23327
|
-
},
|
|
23331
|
+
}, VL = (e, t, n, r) => BL(e, RL(t, n, r)), HL = (e, t) => {
|
|
23328
23332
|
let n = new Set(e.map((e) => e.id));
|
|
23329
23333
|
return e.map((e) => {
|
|
23330
|
-
let r =
|
|
23334
|
+
let r = RL(n, { sectionId: e.id }, t);
|
|
23331
23335
|
return {
|
|
23332
23336
|
...e,
|
|
23333
23337
|
actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
|
|
23334
23338
|
followUps: e.followUps?.filter((e) => r(e.action)),
|
|
23335
|
-
elements: e.elements.map((r) => r.type === "shortcuts" ?
|
|
23339
|
+
elements: e.elements.map((r) => r.type === "shortcuts" ? BL(r, RL(n, {
|
|
23336
23340
|
sectionId: e.id,
|
|
23337
23341
|
elementId: r.id
|
|
23338
23342
|
}, t)) : r)
|
|
23339
23343
|
};
|
|
23340
23344
|
});
|
|
23341
|
-
},
|
|
23345
|
+
}, UL = (e) => e.widget ? "widget" : e.block.type, WL = (e, t) => UL(t) === e.type, GL = (e, t, n) => {
|
|
23342
23346
|
let r = /* @__PURE__ */ new Map();
|
|
23343
23347
|
e.sections.forEach((e, n) => {
|
|
23344
|
-
let i =
|
|
23348
|
+
let i = OL(t, n === 0);
|
|
23345
23349
|
for (let t of e.elements) r.set(t.id, {
|
|
23346
23350
|
element: t,
|
|
23347
23351
|
rules: i,
|
|
@@ -23361,23 +23365,23 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23361
23365
|
});
|
|
23362
23366
|
}
|
|
23363
23367
|
return r;
|
|
23364
|
-
},
|
|
23365
|
-
let i = new Set(t.sections.map((e) => e.id)), a =
|
|
23368
|
+
}, KL = (e, t, n, r = []) => {
|
|
23369
|
+
let i = new Set(t.sections.map((e) => e.id)), a = GL(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
|
|
23366
23370
|
let n = a.get(e);
|
|
23367
23371
|
if (!n || t.status !== "ready") return [e, t];
|
|
23368
23372
|
let r = [], s = t;
|
|
23369
|
-
if (!
|
|
23373
|
+
if (!WL(n.element, t)) r.push({
|
|
23370
23374
|
rule: "sourceType",
|
|
23371
23375
|
elementId: e,
|
|
23372
23376
|
expected: n.element.type,
|
|
23373
|
-
received:
|
|
23377
|
+
received: UL(t)
|
|
23374
23378
|
});
|
|
23375
23379
|
else if (t.block) {
|
|
23376
23380
|
let a = {
|
|
23377
23381
|
sectionId: n.sectionId,
|
|
23378
23382
|
elementId: e
|
|
23379
|
-
}, o =
|
|
23380
|
-
|
|
23383
|
+
}, o = VL(TL(t.block, e, n.rules, r), i, a, r);
|
|
23384
|
+
vL(o, CL(n.rules, o.type), a, r), s = {
|
|
23381
23385
|
...t,
|
|
23382
23386
|
block: o
|
|
23383
23387
|
};
|
|
@@ -23388,25 +23392,25 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23388
23392
|
} : e)), [e, s];
|
|
23389
23393
|
}), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
|
|
23390
23394
|
let n = a.get(e);
|
|
23391
|
-
return n && t.status === "ready" && t.block ?
|
|
23395
|
+
return n && t.status === "ready" && t.block ? FL(t.block, c, {
|
|
23392
23396
|
elementId: e,
|
|
23393
23397
|
accessoryViewId: n.accessoryViewId
|
|
23394
23398
|
}) : [];
|
|
23395
23399
|
});
|
|
23396
23400
|
return {
|
|
23397
23401
|
sources: Object.fromEntries(s),
|
|
23398
|
-
violations: [...o, ...
|
|
23402
|
+
violations: [...o, ...PL(l)]
|
|
23399
23403
|
};
|
|
23400
|
-
},
|
|
23404
|
+
}, qL = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
|
|
23401
23405
|
"data-agentic-card": "",
|
|
23402
23406
|
className: W("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
|
|
23403
23407
|
children: t
|
|
23404
|
-
}),
|
|
23408
|
+
}), JL = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", YL = ({ label: e, press: t }) => {
|
|
23405
23409
|
if (!t) return /* @__PURE__ */ Q($n, {
|
|
23406
23410
|
variant: "label",
|
|
23407
23411
|
content: e
|
|
23408
23412
|
});
|
|
23409
|
-
let n = W("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline",
|
|
23413
|
+
let n = W("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", JL, G());
|
|
23410
23414
|
return t.href ? /* @__PURE__ */ Q(Bn, {
|
|
23411
23415
|
href: t.href,
|
|
23412
23416
|
onClick: t.onClick,
|
|
@@ -23422,9 +23426,9 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23422
23426
|
className: W("cursor-pointer", n),
|
|
23423
23427
|
children: e
|
|
23424
23428
|
});
|
|
23425
|
-
},
|
|
23429
|
+
}, XL = (e) => {
|
|
23426
23430
|
if (!e) return;
|
|
23427
|
-
let t =
|
|
23431
|
+
let t = ZL(e.type === "percent" ? {
|
|
23428
23432
|
style: "percent",
|
|
23429
23433
|
maximumFractionDigits: 1
|
|
23430
23434
|
} : e.type === "compact" ? {
|
|
@@ -23435,27 +23439,27 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23435
23439
|
currency: e.currency
|
|
23436
23440
|
} : {});
|
|
23437
23441
|
return (e) => t.format(e);
|
|
23438
|
-
},
|
|
23442
|
+
}, ZL = (e) => {
|
|
23439
23443
|
try {
|
|
23440
23444
|
return new Intl.NumberFormat(void 0, e);
|
|
23441
23445
|
} catch {
|
|
23442
23446
|
return new Intl.NumberFormat();
|
|
23443
23447
|
}
|
|
23444
|
-
},
|
|
23445
|
-
let r =
|
|
23448
|
+
}, QL = ({ spec: e, label: t, format: n }) => {
|
|
23449
|
+
let r = XL(n);
|
|
23446
23450
|
return /* @__PURE__ */ Q(ct, {
|
|
23447
23451
|
...e,
|
|
23448
23452
|
ariaLabel: t,
|
|
23449
23453
|
valueFormatter: r
|
|
23450
23454
|
});
|
|
23451
|
-
},
|
|
23455
|
+
}, $L = ({ chart: e, press: t }) => /* @__PURE__ */ $(Zn, {
|
|
23452
23456
|
display: "flex",
|
|
23453
23457
|
flexDirection: "column",
|
|
23454
23458
|
gap: "md",
|
|
23455
23459
|
children: [/* @__PURE__ */ $(Zn, {
|
|
23456
23460
|
display: "flex",
|
|
23457
23461
|
flexDirection: "column",
|
|
23458
|
-
children: [/* @__PURE__ */ Q(
|
|
23462
|
+
children: [/* @__PURE__ */ Q(YL, {
|
|
23459
23463
|
label: e.label,
|
|
23460
23464
|
press: t
|
|
23461
23465
|
}), e.caption ? /* @__PURE__ */ Q($n, {
|
|
@@ -23464,24 +23468,24 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23464
23468
|
}) : null]
|
|
23465
23469
|
}), /* @__PURE__ */ Q("div", {
|
|
23466
23470
|
className: "h-48 w-full",
|
|
23467
|
-
children: /* @__PURE__ */ Q(
|
|
23471
|
+
children: /* @__PURE__ */ Q(QL, {
|
|
23468
23472
|
spec: e.chart,
|
|
23469
23473
|
label: e.label,
|
|
23470
23474
|
format: e.format
|
|
23471
23475
|
})
|
|
23472
23476
|
})]
|
|
23473
|
-
}),
|
|
23477
|
+
}), eR = 300, tR = 7, nR = 14, rR = 5, iR = 18, aR = 3, oR = (e) => Math.max(0, ...e.map((e) => e.length)), sR = (e) => {
|
|
23474
23478
|
if (e.type === "pie") {
|
|
23475
23479
|
let t = e.series.data.map((e) => e.name);
|
|
23476
|
-
return t.length >
|
|
23480
|
+
return t.length > rR || oR(t) > iR;
|
|
23477
23481
|
}
|
|
23478
|
-
if (e.series.length >
|
|
23479
|
-
if (e.type === "bar" && e.orientation === "horizontal") return
|
|
23480
|
-
let t =
|
|
23481
|
-
return
|
|
23482
|
-
},
|
|
23482
|
+
if (e.series.length > aR) return !0;
|
|
23483
|
+
if (e.type === "bar" && e.orientation === "horizontal") return oR(e.categories) > nR;
|
|
23484
|
+
let t = eR / Math.max(1, e.categories.length);
|
|
23485
|
+
return oR(e.categories) * tR > t;
|
|
23486
|
+
}, cR = (e) => {
|
|
23483
23487
|
if (e.length === 1) return ["full"];
|
|
23484
|
-
let t = e.map((e) =>
|
|
23488
|
+
let t = e.map((e) => sR(e.chart) ? "full" : "half"), n = 0;
|
|
23485
23489
|
return t.forEach((e, r) => {
|
|
23486
23490
|
if (e === "half" && (n += 1), (e === "full" || r === t.length - 1) && n % 2 == 1) {
|
|
23487
23491
|
let n = e === "half" ? r : r - 1;
|
|
@@ -23489,42 +23493,42 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23489
23493
|
}
|
|
23490
23494
|
e === "full" && (n = 0);
|
|
23491
23495
|
}), t;
|
|
23492
|
-
},
|
|
23493
|
-
let r =
|
|
23496
|
+
}, lR = "agentic-chart", uR = { [lR]: (e) => /* @__PURE__ */ Q($L, { ...e }) }, dR = ({ charts: e, elementId: t, onAction: n }) => {
|
|
23497
|
+
let r = cR(e);
|
|
23494
23498
|
return /* @__PURE__ */ Q("div", {
|
|
23495
23499
|
className: "grid w-full max-w-content grid-cols-1 gap-4 sm:grid-cols-2",
|
|
23496
23500
|
children: e.map((e, i) => {
|
|
23497
|
-
let a = e.action ?
|
|
23501
|
+
let a = e.action ? lL(e.action, {
|
|
23498
23502
|
elementId: t,
|
|
23499
23503
|
itemId: e.id
|
|
23500
23504
|
}, n) : void 0;
|
|
23501
23505
|
return /* @__PURE__ */ Q("div", {
|
|
23502
23506
|
"data-chart-span": r[i],
|
|
23503
23507
|
className: r[i] === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
|
|
23504
|
-
children: /* @__PURE__ */ Q(
|
|
23508
|
+
children: /* @__PURE__ */ Q(qL, {
|
|
23505
23509
|
press: a,
|
|
23506
|
-
children: /* @__PURE__ */ Q(
|
|
23510
|
+
children: /* @__PURE__ */ Q(dL, {
|
|
23507
23511
|
fullHeight: !0,
|
|
23508
23512
|
slots: [{
|
|
23509
|
-
visualization:
|
|
23513
|
+
visualization: lR,
|
|
23510
23514
|
params: {
|
|
23511
23515
|
chart: e,
|
|
23512
23516
|
press: a
|
|
23513
23517
|
}
|
|
23514
23518
|
}],
|
|
23515
|
-
slotRenderers:
|
|
23519
|
+
slotRenderers: uR
|
|
23516
23520
|
})
|
|
23517
23521
|
})
|
|
23518
23522
|
}, e.id);
|
|
23519
23523
|
})
|
|
23520
23524
|
});
|
|
23521
|
-
},
|
|
23525
|
+
}, fR = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Zn, {
|
|
23522
23526
|
display: "flex",
|
|
23523
23527
|
flexDirection: "column",
|
|
23524
23528
|
gap: "md",
|
|
23525
|
-
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(
|
|
23529
|
+
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(dL, { slots: [yF("event-list", { events: [{
|
|
23526
23530
|
...s,
|
|
23527
|
-
...o ?
|
|
23531
|
+
...o ? lL(o, {
|
|
23528
23532
|
elementId: t,
|
|
23529
23533
|
itemId: e
|
|
23530
23534
|
}, n) : {},
|
|
@@ -23533,22 +23537,22 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23533
23537
|
fromDate: r ? new Date(r) : void 0,
|
|
23534
23538
|
toDate: i ? new Date(i) : void 0
|
|
23535
23539
|
}] })] }, e))
|
|
23536
|
-
}),
|
|
23540
|
+
}), pR = ({ action: e, ...t }, n, r) => ({
|
|
23537
23541
|
...t,
|
|
23538
|
-
href:
|
|
23542
|
+
href: CI(t.href),
|
|
23539
23543
|
...e ? {
|
|
23540
23544
|
href: void 0,
|
|
23541
|
-
...
|
|
23545
|
+
...lL(e, {
|
|
23542
23546
|
elementId: n,
|
|
23543
23547
|
itemId: t.id
|
|
23544
23548
|
}, r)
|
|
23545
23549
|
} : {},
|
|
23546
|
-
avatar: t.avatar &&
|
|
23547
|
-
rightAvatar: t.rightAvatar &&
|
|
23548
|
-
avatars: t.avatars?.map(
|
|
23550
|
+
avatar: t.avatar && cL(t.avatar),
|
|
23551
|
+
rightAvatar: t.rightAvatar && cL(t.rightAvatar),
|
|
23552
|
+
avatars: t.avatars?.map(cL),
|
|
23549
23553
|
actions: t.actions?.map((e) => ({
|
|
23550
23554
|
label: e.label,
|
|
23551
|
-
icon:
|
|
23555
|
+
icon: sL(e.icon),
|
|
23552
23556
|
critical: e.critical,
|
|
23553
23557
|
showLabel: e.showLabel,
|
|
23554
23558
|
onClick: () => r(e.action, {
|
|
@@ -23556,16 +23560,16 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23556
23560
|
itemId: t.id
|
|
23557
23561
|
})
|
|
23558
23562
|
}))
|
|
23559
|
-
}),
|
|
23563
|
+
}), mR = (e) => e.rows.some(({ action: e }) => e?.type === "navigate") ? {
|
|
23560
23564
|
...e.schema,
|
|
23561
23565
|
clickBehavior: "link"
|
|
23562
|
-
} : e.schema,
|
|
23566
|
+
} : e.schema, hR = (e, t, n) => [{
|
|
23563
23567
|
visualization: "list",
|
|
23564
23568
|
params: {
|
|
23565
|
-
schema:
|
|
23566
|
-
items: e.rows.map((e) =>
|
|
23569
|
+
schema: mR(e),
|
|
23570
|
+
items: e.rows.map((e) => pR(e, t, n))
|
|
23567
23571
|
}
|
|
23568
|
-
}],
|
|
23572
|
+
}], gR = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(Zn, {
|
|
23569
23573
|
display: "flex",
|
|
23570
23574
|
flexDirection: "column",
|
|
23571
23575
|
gap: "md",
|
|
@@ -23575,16 +23579,16 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23575
23579
|
children: e.title
|
|
23576
23580
|
}) : null, /* @__PURE__ */ Q("div", {
|
|
23577
23581
|
className: "text-lg [&_[data-list-row]]:gap-4",
|
|
23578
|
-
children: /* @__PURE__ */ Q(
|
|
23582
|
+
children: /* @__PURE__ */ Q(lI, { slots: hR(e, t, n) })
|
|
23579
23583
|
})]
|
|
23580
|
-
}),
|
|
23584
|
+
}), _R = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(gR, {
|
|
23581
23585
|
content: e,
|
|
23582
23586
|
elementId: t,
|
|
23583
23587
|
onAction: n
|
|
23584
|
-
}) : /* @__PURE__ */ Q(
|
|
23588
|
+
}) : /* @__PURE__ */ Q(dL, {
|
|
23585
23589
|
title: e.title,
|
|
23586
|
-
slots:
|
|
23587
|
-
}),
|
|
23590
|
+
slots: hR(e, t, n)
|
|
23591
|
+
}), vR = ({ posts: e }) => /* @__PURE__ */ Q(Zn, {
|
|
23588
23592
|
display: "flex",
|
|
23589
23593
|
flexDirection: "column",
|
|
23590
23594
|
gap: "md",
|
|
@@ -23592,11 +23596,11 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23592
23596
|
variant: "row",
|
|
23593
23597
|
post: {
|
|
23594
23598
|
...n,
|
|
23595
|
-
href:
|
|
23599
|
+
href: CI(t),
|
|
23596
23600
|
createdAt: new Date(e)
|
|
23597
23601
|
}
|
|
23598
23602
|
}, n.id))
|
|
23599
|
-
}),
|
|
23603
|
+
}), yR = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Zn, {
|
|
23600
23604
|
display: "flex",
|
|
23601
23605
|
flexWrap: "wrap",
|
|
23602
23606
|
gap: "sm",
|
|
@@ -23604,27 +23608,27 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23604
23608
|
variant: "neutral",
|
|
23605
23609
|
size: "md",
|
|
23606
23610
|
label: e.label,
|
|
23607
|
-
icon:
|
|
23608
|
-
...
|
|
23611
|
+
icon: sL(e.icon),
|
|
23612
|
+
...lL(e.action, {
|
|
23609
23613
|
elementId: t,
|
|
23610
23614
|
itemId: e.id
|
|
23611
23615
|
}, n)
|
|
23612
23616
|
}, e.id))
|
|
23613
|
-
}),
|
|
23617
|
+
}), bR = "agentic-stats", xR = {
|
|
23614
23618
|
positive: "text-f1-foreground-positive",
|
|
23615
23619
|
negative: "text-f1-foreground-critical",
|
|
23616
23620
|
neutral: "text-f1-foreground-secondary"
|
|
23617
|
-
},
|
|
23618
|
-
visualization:
|
|
23621
|
+
}, SR = (e, t, n) => ({
|
|
23622
|
+
visualization: bR,
|
|
23619
23623
|
params: { stats: e.map((e) => ({
|
|
23620
23624
|
stat: e,
|
|
23621
|
-
press: e.action ?
|
|
23625
|
+
press: e.action ? lL(e.action, {
|
|
23622
23626
|
elementId: t,
|
|
23623
23627
|
itemId: e.id
|
|
23624
23628
|
}, n) : void 0
|
|
23625
23629
|
})) }
|
|
23626
|
-
}),
|
|
23627
|
-
let n =
|
|
23630
|
+
}), CR = ({ stat: e, press: t }) => {
|
|
23631
|
+
let n = sL(e.icon);
|
|
23628
23632
|
return /* @__PURE__ */ $(Zn, {
|
|
23629
23633
|
display: "flex",
|
|
23630
23634
|
flexDirection: "column",
|
|
@@ -23648,7 +23652,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23648
23652
|
children: [e.eyebrow ? /* @__PURE__ */ Q($n, {
|
|
23649
23653
|
variant: "description",
|
|
23650
23654
|
content: e.eyebrow
|
|
23651
|
-
}) : null, /* @__PURE__ */ Q(
|
|
23655
|
+
}) : null, /* @__PURE__ */ Q(YL, {
|
|
23652
23656
|
label: e.label,
|
|
23653
23657
|
press: t
|
|
23654
23658
|
})]
|
|
@@ -23668,7 +23672,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23668
23672
|
className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
|
|
23669
23673
|
}) : null, e.value]
|
|
23670
23674
|
}), e.trend ? /* @__PURE__ */ Q("span", {
|
|
23671
|
-
className: W("text-base font-medium",
|
|
23675
|
+
className: W("text-base font-medium", xR[e.trend.tone ?? "neutral"]),
|
|
23672
23676
|
children: e.trend.text
|
|
23673
23677
|
}) : null]
|
|
23674
23678
|
}), e.caption ? /* @__PURE__ */ Q($n, {
|
|
@@ -23677,59 +23681,59 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23677
23681
|
}) : null]
|
|
23678
23682
|
})]
|
|
23679
23683
|
});
|
|
23680
|
-
},
|
|
23684
|
+
}, wR = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", TR = (e, t) => {
|
|
23681
23685
|
let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
|
|
23682
23686
|
return Math.ceil(Math.max(1, e) / r);
|
|
23683
|
-
},
|
|
23687
|
+
}, ER = ({ stats: e }) => {
|
|
23684
23688
|
let t = Y(null), { width: n } = Wn({
|
|
23685
23689
|
ref: t,
|
|
23686
23690
|
box: "border-box"
|
|
23687
|
-
}), r =
|
|
23691
|
+
}), r = TR(e.length, n || 712);
|
|
23688
23692
|
return /* @__PURE__ */ Q("div", {
|
|
23689
23693
|
ref: t,
|
|
23690
|
-
className: W("-m-4",
|
|
23694
|
+
className: W("-m-4", wR),
|
|
23691
23695
|
children: /* @__PURE__ */ Q("div", {
|
|
23692
23696
|
className: "-mb-px -mr-px flex flex-wrap",
|
|
23693
23697
|
children: e.map(({ stat: e, press: t }) => /* @__PURE__ */ Q("div", {
|
|
23694
23698
|
"data-agentic-card": "",
|
|
23695
23699
|
className: W("relative min-w-0 grow border-0 border-b border-r border-solid border-f1-border-secondary p-4", t && "transition-colors hover:bg-f1-background-hover"),
|
|
23696
23700
|
style: { flexBasis: `${100 / r}%` },
|
|
23697
|
-
children: /* @__PURE__ */ Q(
|
|
23701
|
+
children: /* @__PURE__ */ Q(CR, {
|
|
23698
23702
|
stat: e,
|
|
23699
23703
|
press: t
|
|
23700
23704
|
})
|
|
23701
23705
|
}, e.id))
|
|
23702
23706
|
})
|
|
23703
23707
|
});
|
|
23704
|
-
},
|
|
23705
|
-
slots: [
|
|
23706
|
-
slotRenderers:
|
|
23707
|
-
}),
|
|
23708
|
+
}, DR = { [bR]: (e) => /* @__PURE__ */ Q(ER, { ...e }) }, OR = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(dL, {
|
|
23709
|
+
slots: [SR(e, t, n)],
|
|
23710
|
+
slotRenderers: DR
|
|
23711
|
+
}), kR = fn().use(Hn), AR = (e) => kR.parse(e), jR = (e) => e.value ?? e.alt ?? (e.children ?? []).map(jR).join(""), MR = (e) => (e ?? []).map((e, t) => NR(e, t)), NR = (e, t) => {
|
|
23708
23712
|
switch (e.type) {
|
|
23709
|
-
case "root": return
|
|
23713
|
+
case "root": return MR(e.children);
|
|
23710
23714
|
case "text": return e.value;
|
|
23711
23715
|
case "paragraph": return /* @__PURE__ */ Q("p", {
|
|
23712
23716
|
className: "m-0",
|
|
23713
|
-
children:
|
|
23717
|
+
children: MR(e.children)
|
|
23714
23718
|
}, t);
|
|
23715
23719
|
case "heading": return /* @__PURE__ */ Q(Vt, {
|
|
23716
23720
|
as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
|
|
23717
23721
|
variant: "heading",
|
|
23718
|
-
content:
|
|
23722
|
+
content: jR(e)
|
|
23719
23723
|
}, t);
|
|
23720
23724
|
case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
|
|
23721
23725
|
className: "m-0 flex list-decimal flex-col gap-1 pl-5",
|
|
23722
|
-
children:
|
|
23726
|
+
children: MR(e.children)
|
|
23723
23727
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
23724
23728
|
className: "m-0 flex list-disc flex-col gap-1 pl-5",
|
|
23725
|
-
children:
|
|
23729
|
+
children: MR(e.children)
|
|
23726
23730
|
}, t);
|
|
23727
|
-
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ?
|
|
23731
|
+
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? MR(e.children) : NR(e, t)) }, t);
|
|
23728
23732
|
case "strong": return /* @__PURE__ */ Q("strong", {
|
|
23729
23733
|
className: "font-semibold",
|
|
23730
|
-
children:
|
|
23734
|
+
children: MR(e.children)
|
|
23731
23735
|
}, t);
|
|
23732
|
-
case "emphasis": return /* @__PURE__ */ Q("em", { children:
|
|
23736
|
+
case "emphasis": return /* @__PURE__ */ Q("em", { children: MR(e.children) }, t);
|
|
23733
23737
|
case "inlineCode": return /* @__PURE__ */ Q($n, {
|
|
23734
23738
|
as: "code",
|
|
23735
23739
|
variant: "code",
|
|
@@ -23745,69 +23749,69 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23745
23749
|
content: e.value ?? ""
|
|
23746
23750
|
})
|
|
23747
23751
|
}, t);
|
|
23748
|
-
case "link": return e.url &&
|
|
23752
|
+
case "link": return e.url && TI(e.url) ? /* @__PURE__ */ Q(Dr, {
|
|
23749
23753
|
href: e.url,
|
|
23750
|
-
children:
|
|
23751
|
-
}, t) :
|
|
23754
|
+
children: jR(e)
|
|
23755
|
+
}, t) : jR(e);
|
|
23752
23756
|
case "break": return /* @__PURE__ */ Q("br", {}, t);
|
|
23753
|
-
default: return
|
|
23757
|
+
default: return jR(e);
|
|
23754
23758
|
}
|
|
23755
|
-
},
|
|
23759
|
+
}, PR = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
|
|
23756
23760
|
"data-agentic-text": !0,
|
|
23757
23761
|
className: W("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
|
|
23758
|
-
children:
|
|
23759
|
-
}),
|
|
23762
|
+
children: NR(AR(e), 0)
|
|
23763
|
+
}), FR = ({ text: e, lead: t }) => /* @__PURE__ */ Q(PR, {
|
|
23760
23764
|
text: e,
|
|
23761
23765
|
lead: t
|
|
23762
|
-
}),
|
|
23766
|
+
}), IR = ({ items: e }) => /* @__PURE__ */ Q(mf, { items: e.map((e) => ({
|
|
23763
23767
|
id: e.id,
|
|
23764
23768
|
status: e.status ?? "completed",
|
|
23765
|
-
icon:
|
|
23769
|
+
icon: sL(e.icon),
|
|
23766
23770
|
title: e.title,
|
|
23767
23771
|
description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
|
|
23768
|
-
})) }),
|
|
23772
|
+
})) }), LR = "agentic-timeline", RR = { [LR]: (e) => /* @__PURE__ */ Q(IR, { items: e.items }) }, zR = ({ items: e }) => /* @__PURE__ */ Q(dL, {
|
|
23769
23773
|
slots: [{
|
|
23770
|
-
visualization:
|
|
23774
|
+
visualization: LR,
|
|
23771
23775
|
params: { items: e }
|
|
23772
23776
|
}],
|
|
23773
|
-
slotRenderers:
|
|
23774
|
-
}),
|
|
23777
|
+
slotRenderers: RR
|
|
23778
|
+
}), BR = ({ block: e, elementId: t, onAction: n, lead: r }) => {
|
|
23775
23779
|
switch (e.type) {
|
|
23776
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
23780
|
+
case "stats": return /* @__PURE__ */ Q(OR, {
|
|
23777
23781
|
stats: e.stats,
|
|
23778
23782
|
elementId: t,
|
|
23779
23783
|
onAction: n
|
|
23780
23784
|
});
|
|
23781
|
-
case "list": return /* @__PURE__ */ Q(
|
|
23785
|
+
case "list": return /* @__PURE__ */ Q(_R, {
|
|
23782
23786
|
content: e,
|
|
23783
23787
|
elementId: t,
|
|
23784
23788
|
onAction: n
|
|
23785
23789
|
});
|
|
23786
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
23787
|
-
case "events": return /* @__PURE__ */ Q(
|
|
23790
|
+
case "timeline": return /* @__PURE__ */ Q(zR, { items: e.items });
|
|
23791
|
+
case "events": return /* @__PURE__ */ Q(fR, {
|
|
23788
23792
|
events: e.events,
|
|
23789
23793
|
elementId: t,
|
|
23790
23794
|
onAction: n
|
|
23791
23795
|
});
|
|
23792
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
23793
|
-
case "shortcuts": return /* @__PURE__ */ Q(
|
|
23796
|
+
case "posts": return /* @__PURE__ */ Q(vR, { posts: e.posts });
|
|
23797
|
+
case "shortcuts": return /* @__PURE__ */ Q(yR, {
|
|
23794
23798
|
shortcuts: e.shortcuts,
|
|
23795
23799
|
elementId: t,
|
|
23796
23800
|
onAction: n
|
|
23797
23801
|
});
|
|
23798
|
-
case "text": return /* @__PURE__ */ Q(
|
|
23802
|
+
case "text": return /* @__PURE__ */ Q(FR, {
|
|
23799
23803
|
text: e.text,
|
|
23800
23804
|
lead: r
|
|
23801
23805
|
});
|
|
23802
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
23806
|
+
case "charts": return /* @__PURE__ */ Q(dR, {
|
|
23803
23807
|
charts: e.charts,
|
|
23804
23808
|
elementId: t,
|
|
23805
23809
|
onAction: n
|
|
23806
23810
|
});
|
|
23807
23811
|
}
|
|
23808
|
-
},
|
|
23812
|
+
}, VR = (e) => e % 2 == 1 && e !== 3 || e > 4, HR = ({ cards: e }) => {
|
|
23809
23813
|
let t = U();
|
|
23810
|
-
return
|
|
23814
|
+
return VR(e.length) ? /* @__PURE__ */ Q(M, {
|
|
23811
23815
|
columns: {
|
|
23812
23816
|
default: 2,
|
|
23813
23817
|
xs: 2,
|
|
@@ -23832,14 +23836,14 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23832
23836
|
md: { columns: e.length === 3 ? "3" : "2" },
|
|
23833
23837
|
children: e
|
|
23834
23838
|
});
|
|
23835
|
-
},
|
|
23839
|
+
}, UR = ({ className: e }) => /* @__PURE__ */ Q(H, { className: W("rounded-2xs motion-reduce:animate-none", e) }), WR = "agentic-skeleton", GR = { [WR]: (e) => e.content }, KR = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(dL, {
|
|
23836
23840
|
fullHeight: t,
|
|
23837
23841
|
slots: [{
|
|
23838
|
-
visualization:
|
|
23842
|
+
visualization: WR,
|
|
23839
23843
|
params: { content: e }
|
|
23840
23844
|
}],
|
|
23841
|
-
slotRenderers:
|
|
23842
|
-
}),
|
|
23845
|
+
slotRenderers: GR
|
|
23846
|
+
}), qR = (e) => Array.from({ length: e }, (e, t) => t), JR = ({ count: e }) => /* @__PURE__ */ Q(HR, { cards: qR(e).map((e) => /* @__PURE__ */ Q(qL, { children: /* @__PURE__ */ Q(KR, {
|
|
23843
23847
|
fullHeight: !0,
|
|
23844
23848
|
children: /* @__PURE__ */ $(Zn, {
|
|
23845
23849
|
display: "flex",
|
|
@@ -23849,70 +23853,70 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23849
23853
|
display: "flex",
|
|
23850
23854
|
flexDirection: "column",
|
|
23851
23855
|
gap: "xs",
|
|
23852
|
-
children: [/* @__PURE__ */ Q(
|
|
23853
|
-
}), /* @__PURE__ */ Q(
|
|
23856
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-4 w-32" }), /* @__PURE__ */ Q(UR, { className: "h-3 w-24" })]
|
|
23857
|
+
}), /* @__PURE__ */ Q(UR, { className: "h-48 w-full rounded-md" })]
|
|
23854
23858
|
})
|
|
23855
|
-
}) }, e)) }),
|
|
23859
|
+
}) }, e)) }), YR = ({ count: e }) => /* @__PURE__ */ Q(Zn, {
|
|
23856
23860
|
display: "flex",
|
|
23857
23861
|
flexDirection: "column",
|
|
23858
23862
|
gap: "md",
|
|
23859
|
-
children:
|
|
23863
|
+
children: qR(e).map((e) => /* @__PURE__ */ Q(KR, { children: /* @__PURE__ */ $(Zn, {
|
|
23860
23864
|
display: "flex",
|
|
23861
23865
|
alignItems: "center",
|
|
23862
23866
|
gap: "md",
|
|
23863
|
-
children: [/* @__PURE__ */ Q(
|
|
23867
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(Zn, {
|
|
23864
23868
|
display: "flex",
|
|
23865
23869
|
flexDirection: "column",
|
|
23866
23870
|
gap: "xs",
|
|
23867
23871
|
grow: !0,
|
|
23868
|
-
children: [/* @__PURE__ */ Q(
|
|
23872
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(UR, { className: "h-3 w-2/3" })]
|
|
23869
23873
|
})]
|
|
23870
23874
|
}) }, e))
|
|
23871
|
-
}),
|
|
23875
|
+
}), XR = ({ count: e, schema: t }) => {
|
|
23872
23876
|
let n = !!(t?.descriptionRequired || t?.descriptionOptional), r = t?.left;
|
|
23873
|
-
return /* @__PURE__ */ Q(
|
|
23877
|
+
return /* @__PURE__ */ Q(KR, { children: /* @__PURE__ */ Q(Zn, {
|
|
23874
23878
|
display: "flex",
|
|
23875
23879
|
flexDirection: "column",
|
|
23876
23880
|
gap: "md",
|
|
23877
|
-
children:
|
|
23881
|
+
children: qR(e).map((e) => /* @__PURE__ */ $(Zn, {
|
|
23878
23882
|
display: "flex",
|
|
23879
23883
|
alignItems: "center",
|
|
23880
23884
|
gap: "md",
|
|
23881
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
23885
|
+
children: [r ? /* @__PURE__ */ Q(UR, { className: W("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(Zn, {
|
|
23882
23886
|
display: "flex",
|
|
23883
23887
|
flexDirection: "column",
|
|
23884
23888
|
gap: "xs",
|
|
23885
23889
|
grow: !0,
|
|
23886
|
-
children: [/* @__PURE__ */ Q(
|
|
23890
|
+
children: [/* @__PURE__ */ Q(UR, { className: W("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(UR, { className: "h-3 w-1/3" }) : null]
|
|
23887
23891
|
})]
|
|
23888
23892
|
}, e))
|
|
23889
23893
|
}) });
|
|
23890
|
-
},
|
|
23894
|
+
}, ZR = ({ count: e }) => /* @__PURE__ */ Q(Zn, {
|
|
23891
23895
|
display: "flex",
|
|
23892
23896
|
flexDirection: "column",
|
|
23893
23897
|
gap: "md",
|
|
23894
|
-
children:
|
|
23898
|
+
children: qR(e).map((e) => /* @__PURE__ */ $("div", {
|
|
23895
23899
|
className: "flex flex-row items-stretch gap-4 rounded-xl border border-solid border-f1-border-secondary p-4",
|
|
23896
|
-
children: [/* @__PURE__ */ Q(
|
|
23900
|
+
children: [/* @__PURE__ */ Q(UR, { className: "aspect-video w-40 shrink-0 self-start rounded-md sm:w-64" }), /* @__PURE__ */ $(Zn, {
|
|
23897
23901
|
display: "flex",
|
|
23898
23902
|
flexDirection: "column",
|
|
23899
23903
|
gap: "sm",
|
|
23900
23904
|
grow: !0,
|
|
23901
23905
|
children: [
|
|
23902
|
-
/* @__PURE__ */ Q(
|
|
23903
|
-
/* @__PURE__ */ Q(
|
|
23904
|
-
/* @__PURE__ */ Q(
|
|
23906
|
+
/* @__PURE__ */ Q(UR, { className: "h-5 w-3/4" }),
|
|
23907
|
+
/* @__PURE__ */ Q(UR, { className: "h-3 w-full" }),
|
|
23908
|
+
/* @__PURE__ */ Q(UR, { className: "h-3 w-5/6" }),
|
|
23905
23909
|
/* @__PURE__ */ $(Zn, {
|
|
23906
23910
|
display: "flex",
|
|
23907
23911
|
alignItems: "center",
|
|
23908
23912
|
gap: "md",
|
|
23909
23913
|
paddingTop: "sm",
|
|
23910
|
-
children: [/* @__PURE__ */ Q(
|
|
23914
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-8 w-8 shrink-0 rounded-full" }), /* @__PURE__ */ Q(UR, { className: "h-3 w-24" })]
|
|
23911
23915
|
})
|
|
23912
23916
|
]
|
|
23913
23917
|
})]
|
|
23914
23918
|
}, e))
|
|
23915
|
-
}),
|
|
23919
|
+
}), QR = ({ count: e }) => /* @__PURE__ */ Q(HR, { cards: qR(e).map((e) => /* @__PURE__ */ Q(qL, { children: /* @__PURE__ */ Q(KR, {
|
|
23916
23920
|
fullHeight: !0,
|
|
23917
23921
|
children: /* @__PURE__ */ $(Zn, {
|
|
23918
23922
|
display: "flex",
|
|
@@ -23922,53 +23926,53 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23922
23926
|
display: "flex",
|
|
23923
23927
|
alignItems: "center",
|
|
23924
23928
|
gap: "md",
|
|
23925
|
-
children: [/* @__PURE__ */ Q(
|
|
23926
|
-
}), /* @__PURE__ */ Q(
|
|
23929
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(UR, { className: "h-4 w-24" })]
|
|
23930
|
+
}), /* @__PURE__ */ Q(UR, { className: "h-7 w-20" })]
|
|
23927
23931
|
})
|
|
23928
|
-
}) }, e)) }),
|
|
23932
|
+
}) }, e)) }), $R = ({ count: e }) => /* @__PURE__ */ Q(KR, { children: /* @__PURE__ */ Q(Zn, {
|
|
23929
23933
|
display: "flex",
|
|
23930
23934
|
flexDirection: "column",
|
|
23931
|
-
children:
|
|
23935
|
+
children: qR(e).map((t) => /* @__PURE__ */ $(Zn, {
|
|
23932
23936
|
display: "flex",
|
|
23933
23937
|
gap: "md",
|
|
23934
23938
|
children: [/* @__PURE__ */ $(Zn, {
|
|
23935
23939
|
display: "flex",
|
|
23936
23940
|
flexDirection: "column",
|
|
23937
23941
|
alignItems: "center",
|
|
23938
|
-
children: [/* @__PURE__ */ Q(
|
|
23942
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-5 w-5 shrink-0 rounded-full" }), t < e - 1 ? /* @__PURE__ */ Q("div", { className: "min-h-4 w-px grow bg-f1-border-secondary" }) : null]
|
|
23939
23943
|
}), /* @__PURE__ */ $(Zn, {
|
|
23940
23944
|
display: "flex",
|
|
23941
23945
|
flexDirection: "column",
|
|
23942
23946
|
gap: "xs",
|
|
23943
23947
|
grow: !0,
|
|
23944
23948
|
paddingBottom: t < e - 1 ? "md" : void 0,
|
|
23945
|
-
children: [/* @__PURE__ */ Q(
|
|
23949
|
+
children: [/* @__PURE__ */ Q(UR, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(UR, { className: "h-3 w-1/3" })]
|
|
23946
23950
|
})]
|
|
23947
23951
|
}, t))
|
|
23948
|
-
}) }),
|
|
23952
|
+
}) }), ez = ({ count: e }) => /* @__PURE__ */ Q(KR, { children: /* @__PURE__ */ Q(Zn, {
|
|
23949
23953
|
display: "flex",
|
|
23950
23954
|
flexDirection: "column",
|
|
23951
23955
|
gap: "md",
|
|
23952
|
-
children:
|
|
23953
|
-
}) }),
|
|
23956
|
+
children: qR(e).map((e) => /* @__PURE__ */ Q(UR, { className: W("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
|
|
23957
|
+
}) }), tz = (e, t) => {
|
|
23954
23958
|
switch (e.type) {
|
|
23955
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
23956
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
23957
|
-
case "list": return /* @__PURE__ */ Q(
|
|
23959
|
+
case "stats": return /* @__PURE__ */ Q(QR, { count: t });
|
|
23960
|
+
case "charts": return /* @__PURE__ */ Q(JR, { count: t });
|
|
23961
|
+
case "list": return /* @__PURE__ */ Q(XR, {
|
|
23958
23962
|
count: t,
|
|
23959
23963
|
schema: e.display?.schema
|
|
23960
23964
|
});
|
|
23961
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
23962
|
-
case "events": return /* @__PURE__ */ Q(
|
|
23963
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
23964
|
-
case "widget": return /* @__PURE__ */ Q(
|
|
23965
|
+
case "timeline": return /* @__PURE__ */ Q($R, { count: t });
|
|
23966
|
+
case "events": return /* @__PURE__ */ Q(YR, { count: t });
|
|
23967
|
+
case "posts": return /* @__PURE__ */ Q(ZR, { count: t });
|
|
23968
|
+
case "widget": return /* @__PURE__ */ Q(ez, { count: t });
|
|
23965
23969
|
}
|
|
23966
|
-
},
|
|
23970
|
+
}, nz = ({ element: e }) => /* @__PURE__ */ Q("div", {
|
|
23967
23971
|
"aria-busy": "true",
|
|
23968
23972
|
"aria-live": "polite",
|
|
23969
23973
|
"data-agentic-skeleton": e.type,
|
|
23970
|
-
children:
|
|
23971
|
-
}),
|
|
23974
|
+
children: tz(e, bL(e))
|
|
23975
|
+
}), rz = (e) => {
|
|
23972
23976
|
switch (e.type) {
|
|
23973
23977
|
case "stats": return e.stats.length === 0;
|
|
23974
23978
|
case "charts": return e.charts.length === 0;
|
|
@@ -23977,7 +23981,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23977
23981
|
case "events": return e.events.length === 0;
|
|
23978
23982
|
case "posts": return e.posts.length === 0;
|
|
23979
23983
|
}
|
|
23980
|
-
},
|
|
23984
|
+
}, iz = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && WL(e, t) && rz(t.block), az = (e, t) => {
|
|
23981
23985
|
let n = {
|
|
23982
23986
|
...t,
|
|
23983
23987
|
empty: e.display?.empty ?? t.empty
|
|
@@ -23996,67 +24000,67 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23996
24000
|
format: r
|
|
23997
24001
|
}))
|
|
23998
24002
|
} : n;
|
|
23999
|
-
},
|
|
24000
|
-
let n =
|
|
24001
|
-
return t ? /* @__PURE__ */ Q(
|
|
24003
|
+
}, oz = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && WL(e, t) ? az(e, t.block) : void 0, sz = ol(void 0), cz = sz.Provider, lz = () => dl(sz), uz = ({ widget: e, bare: t = !1 }) => {
|
|
24004
|
+
let n = lz();
|
|
24005
|
+
return t ? /* @__PURE__ */ Q(lI, {
|
|
24002
24006
|
headless: !0,
|
|
24003
24007
|
slots: e.slots,
|
|
24004
24008
|
loading: e.loading,
|
|
24005
24009
|
slotRenderers: n
|
|
24006
|
-
}) : /* @__PURE__ */ Q(
|
|
24007
|
-
...
|
|
24010
|
+
}) : /* @__PURE__ */ Q(uI, {
|
|
24011
|
+
...EF(e),
|
|
24008
24012
|
headless: !0,
|
|
24009
24013
|
params: e.params,
|
|
24010
24014
|
slots: e.slots,
|
|
24011
24015
|
loading: e.loading,
|
|
24012
24016
|
slotRenderers: n
|
|
24013
24017
|
});
|
|
24014
|
-
},
|
|
24015
|
-
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(
|
|
24018
|
+
}, dz = ({ element: e, state: t, onAction: n, lead: r }) => {
|
|
24019
|
+
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(BR, {
|
|
24016
24020
|
block: e,
|
|
24017
24021
|
elementId: e.id,
|
|
24018
24022
|
onAction: n,
|
|
24019
24023
|
lead: r
|
|
24020
24024
|
});
|
|
24021
|
-
if (!t || t.status === "loading") return /* @__PURE__ */ Q(
|
|
24022
|
-
if (t.status === "error") return /* @__PURE__ */ Q(
|
|
24023
|
-
if (!
|
|
24024
|
-
if (t.widget) return /* @__PURE__ */ Q(
|
|
24025
|
+
if (!t || t.status === "loading") return /* @__PURE__ */ Q(nz, { element: e });
|
|
24026
|
+
if (t.status === "error") return /* @__PURE__ */ Q(gL, { message: t.message });
|
|
24027
|
+
if (!WL(e, t)) return /* @__PURE__ */ Q(gL, {});
|
|
24028
|
+
if (t.widget) return /* @__PURE__ */ Q(uz, {
|
|
24025
24029
|
widget: t.widget,
|
|
24026
24030
|
bare: t.bare
|
|
24027
24031
|
});
|
|
24028
|
-
if (e.type === "widget") return /* @__PURE__ */ Q(
|
|
24029
|
-
let i =
|
|
24030
|
-
return
|
|
24032
|
+
if (e.type === "widget") return /* @__PURE__ */ Q(gL, {});
|
|
24033
|
+
let i = az(e, t.block);
|
|
24034
|
+
return rz(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(hL, {
|
|
24031
24035
|
empty: i.empty,
|
|
24032
24036
|
elementId: e.id,
|
|
24033
24037
|
onAction: n
|
|
24034
|
-
}) : /* @__PURE__ */ Q(
|
|
24038
|
+
}) : /* @__PURE__ */ Q(BR, {
|
|
24035
24039
|
block: i,
|
|
24036
24040
|
elementId: e.id,
|
|
24037
24041
|
onAction: n
|
|
24038
24042
|
});
|
|
24039
|
-
},
|
|
24043
|
+
}, fz = "agentic-list-stack", pz = ({ title: e }) => /* @__PURE__ */ Q(Zn, {
|
|
24040
24044
|
paddingY: "sm",
|
|
24041
24045
|
children: /* @__PURE__ */ Q($n, {
|
|
24042
24046
|
variant: "description",
|
|
24043
24047
|
content: e
|
|
24044
24048
|
})
|
|
24045
|
-
}),
|
|
24046
|
-
...
|
|
24047
|
-
...
|
|
24048
|
-
},
|
|
24049
|
+
}), mz = {
|
|
24050
|
+
...JF,
|
|
24051
|
+
...DR
|
|
24052
|
+
}, hz = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
|
|
24049
24053
|
className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
|
|
24050
24054
|
children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
|
|
24051
24055
|
className: W("px-4", n.visualization === "agentic-stats" ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
|
|
24052
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
24056
|
+
children: [r ? /* @__PURE__ */ Q(pz, { title: r }) : null, gF(mz[n.visualization])?.render(n.params, {
|
|
24053
24057
|
...t,
|
|
24054
24058
|
isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
|
|
24055
24059
|
isLastSlot: t.isLastSlot && i === e.length - 1
|
|
24056
24060
|
})]
|
|
24057
24061
|
}, i))
|
|
24058
|
-
}),
|
|
24059
|
-
let r =
|
|
24062
|
+
}), gz = (e) => e.type === "list" && !e.bare || e.type === "stats", _z = (e, t) => e.reduce((e, n) => {
|
|
24063
|
+
let r = oz(n, t?.[n.id]), i = r && gz(r) && !rz(r) ? {
|
|
24060
24064
|
elementId: n.id,
|
|
24061
24065
|
block: r
|
|
24062
24066
|
} : void 0, a = e.at(-1);
|
|
@@ -24068,32 +24072,32 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24068
24072
|
element: n,
|
|
24069
24073
|
member: i
|
|
24070
24074
|
}), e;
|
|
24071
|
-
}, []),
|
|
24072
|
-
if (t.type === "stats") return [{ slot:
|
|
24075
|
+
}, []), vz = ({ elementId: e, block: t }, n, r) => {
|
|
24076
|
+
if (t.type === "stats") return [{ slot: SR(t.stats, e, r) }];
|
|
24073
24077
|
let i = n > 0 ? t.title : void 0;
|
|
24074
|
-
return
|
|
24078
|
+
return hR(t, e, r).map((e, t) => ({
|
|
24075
24079
|
slot: e,
|
|
24076
24080
|
header: t === 0 ? i : void 0
|
|
24077
24081
|
}));
|
|
24078
|
-
},
|
|
24082
|
+
}, yz = { [fz]: (e, t) => /* @__PURE__ */ Q(hz, {
|
|
24079
24083
|
entries: e,
|
|
24080
24084
|
ctx: t
|
|
24081
|
-
}) },
|
|
24085
|
+
}) }, bz = ({ members: e, onAction: t }) => {
|
|
24082
24086
|
let n = e[0]?.block;
|
|
24083
|
-
return /* @__PURE__ */ Q(
|
|
24087
|
+
return /* @__PURE__ */ Q(dL, {
|
|
24084
24088
|
title: n?.type === "list" ? n.title : void 0,
|
|
24085
24089
|
slots: [{
|
|
24086
|
-
visualization:
|
|
24087
|
-
params: e.flatMap((e, n) =>
|
|
24090
|
+
visualization: fz,
|
|
24091
|
+
params: e.flatMap((e, n) => vz(e, n, t))
|
|
24088
24092
|
}],
|
|
24089
|
-
slotRenderers:
|
|
24093
|
+
slotRenderers: yz
|
|
24090
24094
|
});
|
|
24091
|
-
},
|
|
24095
|
+
}, xz = ({ items: e, onAction: t }) => {
|
|
24092
24096
|
let n = U();
|
|
24093
24097
|
return /* @__PURE__ */ Q(ji, {
|
|
24094
24098
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
24095
24099
|
label: e.label,
|
|
24096
|
-
icon:
|
|
24100
|
+
icon: sL(e.icon),
|
|
24097
24101
|
critical: e.critical,
|
|
24098
24102
|
onClick: () => t(e.action, {})
|
|
24099
24103
|
}),
|
|
@@ -24105,12 +24109,12 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24105
24109
|
label: n.actions.more
|
|
24106
24110
|
})
|
|
24107
24111
|
});
|
|
24108
|
-
},
|
|
24112
|
+
}, Sz = ol(void 0), Cz = Sz.Provider, wz = () => dl(Sz), Tz = /\*\*(.+?)\*\*/g, Ez = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(Tz).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
|
|
24109
24113
|
className: "font-medium",
|
|
24110
24114
|
children: e
|
|
24111
|
-
}, t) : e) }),
|
|
24115
|
+
}, t) : e) }), Dz = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, Oz = (e) => {
|
|
24112
24116
|
let t = [], n = 0;
|
|
24113
|
-
for (let r of e.matchAll(
|
|
24117
|
+
for (let r of e.matchAll(Dz)) {
|
|
24114
24118
|
let [i, a, o, s] = r, c = r.index ?? 0;
|
|
24115
24119
|
c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
|
|
24116
24120
|
type: o,
|
|
@@ -24119,48 +24123,48 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24119
24123
|
} }), n = c + i.length;
|
|
24120
24124
|
}
|
|
24121
24125
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
24122
|
-
},
|
|
24126
|
+
}, kz = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: EI(e).map((e, t) => /* @__PURE__ */ Q(rl, { children: "href" in e ? /* @__PURE__ */ Q(Dr, {
|
|
24123
24127
|
href: e.href,
|
|
24124
24128
|
children: e.label
|
|
24125
|
-
}) : /* @__PURE__ */ Q(
|
|
24126
|
-
let t =
|
|
24127
|
-
return /* @__PURE__ */ Q(Z, { children:
|
|
24128
|
-
},
|
|
24129
|
+
}) : /* @__PURE__ */ Q(Ez, { text: e.text }) }, t)) }), Az = ({ text: e }) => {
|
|
24130
|
+
let t = wz();
|
|
24131
|
+
return /* @__PURE__ */ Q(Z, { children: Oz(e).map((e, n) => /* @__PURE__ */ Q(rl, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(kz, { text: e.text }) }, n)) });
|
|
24132
|
+
}, jz = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(Az, { text: e }) }, t)) }), Mz = /^\d+\.\s+/, Nz = /^[-*]\s+/, Pz = (e) => Mz.test(e) ? "ol" : Nz.test(e) ? "ul" : "p", Fz = (e, t) => {
|
|
24129
24133
|
let n = e.at(-1);
|
|
24130
24134
|
t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
|
|
24131
24135
|
kind: "p",
|
|
24132
24136
|
text: t
|
|
24133
24137
|
});
|
|
24134
|
-
},
|
|
24135
|
-
let r = e.at(-1), i = n.replace(t === "ol" ?
|
|
24138
|
+
}, Iz = (e, t, n) => {
|
|
24139
|
+
let r = e.at(-1), i = n.replace(t === "ol" ? Mz : Nz, "");
|
|
24136
24140
|
r?.kind === t ? r.items.push(i) : e.push({
|
|
24137
24141
|
kind: t,
|
|
24138
24142
|
items: [i]
|
|
24139
24143
|
});
|
|
24140
|
-
},
|
|
24144
|
+
}, Lz = (e) => {
|
|
24141
24145
|
let t = [];
|
|
24142
24146
|
for (let n of e.split("\n").map((e) => e.trim())) {
|
|
24143
|
-
let e =
|
|
24144
|
-
e === "p" ?
|
|
24147
|
+
let e = Pz(n);
|
|
24148
|
+
e === "p" ? Fz(t, n) : Iz(t, e, n);
|
|
24145
24149
|
}
|
|
24146
24150
|
return t.filter((e) => e.kind !== "p" || e.text);
|
|
24147
|
-
},
|
|
24151
|
+
}, Rz = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
24148
24152
|
className: "flex flex-col gap-2 text-lg text-f1-foreground",
|
|
24149
|
-
children:
|
|
24153
|
+
children: Lz(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(Az, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
|
|
24150
24154
|
className: "m-0 list-decimal space-y-1 pl-5",
|
|
24151
|
-
children: /* @__PURE__ */ Q(
|
|
24155
|
+
children: /* @__PURE__ */ Q(jz, { items: e.items })
|
|
24152
24156
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
24153
24157
|
className: "m-0 list-disc space-y-1 pl-5",
|
|
24154
|
-
children: /* @__PURE__ */ Q(
|
|
24158
|
+
children: /* @__PURE__ */ Q(jz, { items: e.items })
|
|
24155
24159
|
}, t))
|
|
24156
|
-
}),
|
|
24160
|
+
}), zz = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(Vt, {
|
|
24157
24161
|
as: "h2",
|
|
24158
24162
|
variant: "heading-large",
|
|
24159
24163
|
content: e
|
|
24160
24164
|
}) : /* @__PURE__ */ Q("h2", {
|
|
24161
24165
|
className: W("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
|
|
24162
24166
|
children: e
|
|
24163
|
-
}),
|
|
24167
|
+
}), Bz = ({ section: e, size: t, composer: n, onAction: r }) => {
|
|
24164
24168
|
let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
|
|
24165
24169
|
return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(Zn, {
|
|
24166
24170
|
display: "flex",
|
|
@@ -24182,43 +24186,43 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24182
24186
|
alignItems: "start",
|
|
24183
24187
|
justifyContent: e.title ? "between" : "end",
|
|
24184
24188
|
gap: "md",
|
|
24185
|
-
children: [e.title ? /* @__PURE__ */ Q(
|
|
24189
|
+
children: [e.title ? /* @__PURE__ */ Q(zz, {
|
|
24186
24190
|
title: e.title,
|
|
24187
24191
|
size: t
|
|
24188
|
-
}) : null, a ? /* @__PURE__ */ Q(
|
|
24192
|
+
}) : null, a ? /* @__PURE__ */ Q(xz, {
|
|
24189
24193
|
items: a,
|
|
24190
24194
|
onAction: r
|
|
24191
24195
|
}) : null]
|
|
24192
24196
|
}) : null]
|
|
24193
24197
|
}),
|
|
24194
24198
|
n,
|
|
24195
|
-
e.text ? /* @__PURE__ */ Q(
|
|
24199
|
+
e.text ? /* @__PURE__ */ Q(Rz, { text: e.text }) : null
|
|
24196
24200
|
]
|
|
24197
24201
|
});
|
|
24198
|
-
},
|
|
24202
|
+
}, Vz = (e, t) => e.elements.length > 0 && e.elements.every((e) => iz(e, t?.[e.id])), Hz = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
|
|
24199
24203
|
let a = (t, r) => n(t, {
|
|
24200
24204
|
...r,
|
|
24201
24205
|
sectionId: e.id
|
|
24202
|
-
}), o =
|
|
24206
|
+
}), o = Vz(e, t);
|
|
24203
24207
|
return o && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
|
|
24204
24208
|
id: e.id,
|
|
24205
24209
|
"aria-label": e.title,
|
|
24206
24210
|
tabIndex: -1,
|
|
24207
24211
|
className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
|
|
24208
24212
|
children: [
|
|
24209
|
-
/* @__PURE__ */ Q(
|
|
24213
|
+
/* @__PURE__ */ Q(Bz, {
|
|
24210
24214
|
section: e,
|
|
24211
24215
|
size: r,
|
|
24212
24216
|
composer: i,
|
|
24213
24217
|
onAction: a
|
|
24214
24218
|
}),
|
|
24215
|
-
o && e.empty ? /* @__PURE__ */ Q(
|
|
24219
|
+
o && e.empty ? /* @__PURE__ */ Q(hL, {
|
|
24216
24220
|
empty: e.empty,
|
|
24217
24221
|
onAction: a
|
|
24218
|
-
}) :
|
|
24222
|
+
}) : _z(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(bz, {
|
|
24219
24223
|
members: e.members,
|
|
24220
24224
|
onAction: a
|
|
24221
|
-
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(
|
|
24225
|
+
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(dz, {
|
|
24222
24226
|
element: e.element,
|
|
24223
24227
|
state: t?.[e.element.id],
|
|
24224
24228
|
onAction: a,
|
|
@@ -24230,16 +24234,16 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24230
24234
|
gap: "sm",
|
|
24231
24235
|
children: e.followUps.map((e, t) => /* @__PURE__ */ Q(z, {
|
|
24232
24236
|
size: "md",
|
|
24233
|
-
...
|
|
24237
|
+
...uL(e, {}, a),
|
|
24234
24238
|
variant: e.variant ?? "neutral"
|
|
24235
24239
|
}, t))
|
|
24236
24240
|
}) : null
|
|
24237
24241
|
]
|
|
24238
24242
|
});
|
|
24239
|
-
},
|
|
24243
|
+
}, Uz = (e, t) => {
|
|
24240
24244
|
let [n, ...r] = e ?? [], i = (e) => ({
|
|
24241
24245
|
label: e.label,
|
|
24242
|
-
icon:
|
|
24246
|
+
icon: sL(e.icon),
|
|
24243
24247
|
onClick: () => t(e)
|
|
24244
24248
|
});
|
|
24245
24249
|
return {
|
|
@@ -24252,19 +24256,19 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24252
24256
|
value: String(t)
|
|
24253
24257
|
})) : r[0] ? i(r[0]) : void 0
|
|
24254
24258
|
};
|
|
24255
|
-
},
|
|
24256
|
-
let n =
|
|
24257
|
-
return !t || t.status === "loading" ? /* @__PURE__ */ Q(
|
|
24259
|
+
}, Wz = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), Gz = ({ element: e, state: t }) => {
|
|
24260
|
+
let n = lz();
|
|
24261
|
+
return !t || t.status === "loading" ? /* @__PURE__ */ Q(nz, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(gL, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(lI, {
|
|
24258
24262
|
slots: t.widget.slots,
|
|
24259
24263
|
loading: t.widget.loading,
|
|
24260
24264
|
slotRenderers: n
|
|
24261
|
-
}) : /* @__PURE__ */ Q(
|
|
24262
|
-
},
|
|
24265
|
+
}) : /* @__PURE__ */ Q(gL, {});
|
|
24266
|
+
}, Kz = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
|
|
24263
24267
|
let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
|
|
24264
24268
|
...r,
|
|
24265
24269
|
accessoryViewId: e.id,
|
|
24266
24270
|
...l ? { accessoryViewParams: t } : {}
|
|
24267
|
-
}), d =
|
|
24271
|
+
}), d = Uz(e.actions, (e) => {
|
|
24268
24272
|
o(), u(e.action, {});
|
|
24269
24273
|
});
|
|
24270
24274
|
return /* @__PURE__ */ Q(Za, {
|
|
@@ -24276,29 +24280,29 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24276
24280
|
description: e.description,
|
|
24277
24281
|
disableContentPadding: i,
|
|
24278
24282
|
...d,
|
|
24279
|
-
children: e.widget ? /* @__PURE__ */ Q(
|
|
24283
|
+
children: e.widget ? /* @__PURE__ */ Q(Gz, {
|
|
24280
24284
|
element: e.widget,
|
|
24281
24285
|
state: s?.[e.widget.id]
|
|
24282
|
-
},
|
|
24286
|
+
}, Wz(e.id, t)) : /* @__PURE__ */ Q(Zn, {
|
|
24283
24287
|
display: "flex",
|
|
24284
24288
|
flexDirection: "column",
|
|
24285
24289
|
gap: "3xl",
|
|
24286
|
-
children: e.sections.map((e) => /* @__PURE__ */ Q(
|
|
24290
|
+
children: e.sections.map((e) => /* @__PURE__ */ Q(Hz, {
|
|
24287
24291
|
size: "accessory",
|
|
24288
24292
|
section: e,
|
|
24289
24293
|
sources: s,
|
|
24290
24294
|
onAction: u
|
|
24291
24295
|
}, e.id))
|
|
24292
|
-
},
|
|
24296
|
+
}, Wz(e.id, t))
|
|
24293
24297
|
});
|
|
24294
|
-
},
|
|
24298
|
+
}, qz = 150, Jz = 150, Yz = {
|
|
24295
24299
|
neutral: "bg-f1-background-inverse",
|
|
24296
24300
|
accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
24297
24301
|
critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
|
|
24298
24302
|
warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
|
|
24299
24303
|
promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
|
|
24300
24304
|
positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
|
|
24301
|
-
},
|
|
24305
|
+
}, Xz = "inverse", Zz = ({ clockIn: e }) => {
|
|
24302
24306
|
let { caption: t, text: n, ticking: r, icon: i, action: a, tone: o, title: s, content: c } = e, l = sn(), [u, d] = X(!1), f = Y(null), p = Y(null), m = Y(!1), h = fl(), g = () => {
|
|
24303
24307
|
f.current && clearTimeout(f.current), f.current = null;
|
|
24304
24308
|
}, _ = (e, t) => {
|
|
@@ -24306,8 +24310,8 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24306
24310
|
};
|
|
24307
24311
|
return q(() => g, []), /* @__PURE__ */ $("div", {
|
|
24308
24312
|
className: "relative",
|
|
24309
|
-
onMouseEnter: () => u ? g() : _(!0,
|
|
24310
|
-
onMouseLeave: () => _(!1,
|
|
24313
|
+
onMouseEnter: () => u ? g() : _(!0, qz),
|
|
24314
|
+
onMouseLeave: () => _(!1, Jz),
|
|
24311
24315
|
onFocus: () => {
|
|
24312
24316
|
g(), m.current ? m.current = !1 : d(!0);
|
|
24313
24317
|
},
|
|
@@ -24322,7 +24326,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24322
24326
|
children: [t ? /* @__PURE__ */ Q("span", {
|
|
24323
24327
|
className: "text-sm text-f1-foreground-secondary",
|
|
24324
24328
|
children: t
|
|
24325
|
-
}) : null, /* @__PURE__ */ Q(
|
|
24329
|
+
}) : null, /* @__PURE__ */ Q(YF, {
|
|
24326
24330
|
text: n,
|
|
24327
24331
|
ticking: !!r,
|
|
24328
24332
|
className: "text-base font-medium text-f1-foreground"
|
|
@@ -24335,13 +24339,13 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24335
24339
|
type: "button",
|
|
24336
24340
|
variant: "ghost",
|
|
24337
24341
|
size: "lg",
|
|
24338
|
-
className: W("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0",
|
|
24342
|
+
className: W("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", Yz[o ?? "accent"]),
|
|
24339
24343
|
"aria-label": a.label,
|
|
24340
24344
|
"aria-controls": u ? h : void 0,
|
|
24341
24345
|
onClick: () => a.onClick(),
|
|
24342
24346
|
children: /* @__PURE__ */ Q(V, {
|
|
24343
24347
|
size: "lg",
|
|
24344
|
-
color:
|
|
24348
|
+
color: Xz,
|
|
24345
24349
|
icon: u ? a.icon : i ?? si
|
|
24346
24350
|
})
|
|
24347
24351
|
})
|
|
@@ -24373,7 +24377,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24373
24377
|
})
|
|
24374
24378
|
}) : null })]
|
|
24375
24379
|
});
|
|
24376
|
-
},
|
|
24380
|
+
}, Qz = sl(function({ children: e }, t) {
|
|
24377
24381
|
return /* @__PURE__ */ Q("div", {
|
|
24378
24382
|
ref: t,
|
|
24379
24383
|
className: "-m-1 p-1",
|
|
@@ -24382,7 +24386,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24382
24386
|
children: e
|
|
24383
24387
|
})
|
|
24384
24388
|
});
|
|
24385
|
-
}),
|
|
24389
|
+
}), $z = ({ greeting: e }) => /* @__PURE__ */ $(Zn, {
|
|
24386
24390
|
display: "flex",
|
|
24387
24391
|
flexDirection: "column",
|
|
24388
24392
|
gap: "xs",
|
|
@@ -24394,13 +24398,13 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24394
24398
|
variant: "description",
|
|
24395
24399
|
content: e.subtitle
|
|
24396
24400
|
}) : null]
|
|
24397
|
-
}),
|
|
24398
|
-
let r = n - t -
|
|
24399
|
-
return r <=
|
|
24400
|
-
},
|
|
24401
|
+
}), eB = 180, tB = 396, nB = 8, rB = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
|
|
24402
|
+
let r = n - t - nB;
|
|
24403
|
+
return r <= nB ? nB : Math.min(Math.max(e - t / 2, nB), r);
|
|
24404
|
+
}, iB = ({ widgets: e, slotRenderers: t, clock: n, onAdd: r, onRemove: i, onChangeParams: a }) => {
|
|
24401
24405
|
let o = U(), s = fl(), c = Y(null), l = Y(null), u = Y(null), [d, f] = X(null), [p, m] = X(null), [h, g] = X(!1), [_, v] = X(0), y = () => {
|
|
24402
24406
|
u.current && clearTimeout(u.current), u.current = null;
|
|
24403
|
-
}, b = (e =
|
|
24407
|
+
}, b = (e = eB) => {
|
|
24404
24408
|
y(), u.current = setTimeout(() => f(null), e);
|
|
24405
24409
|
}, x = (e, t) => {
|
|
24406
24410
|
y();
|
|
@@ -24417,13 +24421,13 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24417
24421
|
let t = new ResizeObserver(() => v(e.offsetHeight));
|
|
24418
24422
|
return t.observe(e), () => t.disconnect();
|
|
24419
24423
|
}, []);
|
|
24420
|
-
let S = (t) => e.some((e) => e.id === t), C = S(d) ? d : null, w =
|
|
24424
|
+
let S = (t) => e.some((e) => e.id === t), C = S(d) ? d : null, w = YI({
|
|
24421
24425
|
collapsed: !0,
|
|
24422
24426
|
open: C != null,
|
|
24423
24427
|
glide: h,
|
|
24424
24428
|
drawn: !0,
|
|
24425
|
-
width:
|
|
24426
|
-
}), T = C ?? (!w.panelHidden && p && S(p.id) ? p.id : null), E = e.find((e) => e.id === T), D = p ?
|
|
24429
|
+
width: tB
|
|
24430
|
+
}), T = C ?? (!w.panelHidden && p && S(p.id) ? p.id : null), E = e.find((e) => e.id === T), D = p ? rB({
|
|
24427
24431
|
glyphCenter: p.center,
|
|
24428
24432
|
panelHeight: _,
|
|
24429
24433
|
railHeight: p.railHeight
|
|
@@ -24445,7 +24449,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24445
24449
|
className: "my-auto hidden flex-col items-end gap-2 md:flex",
|
|
24446
24450
|
onMouseEnter: y,
|
|
24447
24451
|
onMouseLeave: () => b(),
|
|
24448
|
-
children: [e.map((e, t) => /* @__PURE__ */ Q(
|
|
24452
|
+
children: [e.map((e, t) => /* @__PURE__ */ Q(rI, {
|
|
24449
24453
|
look: "ghost",
|
|
24450
24454
|
widget: e,
|
|
24451
24455
|
order: t,
|
|
@@ -24479,7 +24483,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24479
24483
|
ref: l,
|
|
24480
24484
|
id: s,
|
|
24481
24485
|
role: "group",
|
|
24482
|
-
"aria-label": E ?
|
|
24486
|
+
"aria-label": E ? CF(E) : void 0,
|
|
24483
24487
|
hidden: w.panelHidden,
|
|
24484
24488
|
className: W("absolute right-[68px] top-0 z-20 max-h-[calc(100%-1rem)] w-[396px] max-w-[calc(100vw-6rem)] overflow-y-auto overflow-x-hidden rounded-xl bg-f1-background shadow-lg [scrollbar-width:none] dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150 [&::-webkit-scrollbar]:hidden", C ? "pointer-events-auto" : "pointer-events-none"),
|
|
24485
24489
|
style: { transformOrigin: LP },
|
|
@@ -24493,7 +24497,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24493
24497
|
transition: w.transition,
|
|
24494
24498
|
onMouseEnter: y,
|
|
24495
24499
|
onMouseLeave: () => b(),
|
|
24496
|
-
children: /* @__PURE__ */ Q(
|
|
24500
|
+
children: /* @__PURE__ */ Q(JI, {
|
|
24497
24501
|
side: "right",
|
|
24498
24502
|
widgets: e,
|
|
24499
24503
|
visibleWidgetId: T,
|
|
@@ -24503,24 +24507,24 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24503
24507
|
slotRenderers: t,
|
|
24504
24508
|
onRemoveWidget: i,
|
|
24505
24509
|
onChangeWidgetParams: a,
|
|
24506
|
-
paramsPreviewWidth:
|
|
24510
|
+
paramsPreviewWidth: tB
|
|
24507
24511
|
})
|
|
24508
24512
|
})
|
|
24509
24513
|
]
|
|
24510
24514
|
});
|
|
24511
|
-
},
|
|
24515
|
+
}, aB = (e, t, n) => {
|
|
24512
24516
|
let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
|
|
24513
24517
|
r?.scrollIntoView({
|
|
24514
24518
|
behavior: n ? "auto" : "smooth",
|
|
24515
24519
|
block: "start"
|
|
24516
24520
|
}), r?.focus({ preventScroll: !0 });
|
|
24517
|
-
},
|
|
24521
|
+
}, oB = (e) => {
|
|
24518
24522
|
let t = sn();
|
|
24519
|
-
return K((n) =>
|
|
24520
|
-
},
|
|
24523
|
+
return K((n) => aB(e, n, t), [e, t]);
|
|
24524
|
+
}, sB = (e, t, n) => {
|
|
24521
24525
|
let r = [], i = /* @__PURE__ */ new Map(), a = [];
|
|
24522
24526
|
for (let o of e.elements) {
|
|
24523
|
-
if (!
|
|
24527
|
+
if (!wL(t, o.type)) {
|
|
24524
24528
|
n.push({
|
|
24525
24529
|
rule: "allowedBlockTypes",
|
|
24526
24530
|
sectionId: e.id,
|
|
@@ -24529,7 +24533,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24529
24533
|
});
|
|
24530
24534
|
continue;
|
|
24531
24535
|
}
|
|
24532
|
-
let s =
|
|
24536
|
+
let s = CL(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
|
|
24533
24537
|
if (s !== void 0 && c.length >= s) {
|
|
24534
24538
|
n.push({
|
|
24535
24539
|
rule: "maxPerSection",
|
|
@@ -24540,14 +24544,14 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24540
24544
|
});
|
|
24541
24545
|
continue;
|
|
24542
24546
|
}
|
|
24543
|
-
let l = a.find((e) => !
|
|
24547
|
+
let l = a.find((e) => !DL(t, e, o.type));
|
|
24544
24548
|
l ? n.push({
|
|
24545
24549
|
rule: "combinesWith",
|
|
24546
24550
|
sectionId: e.id,
|
|
24547
24551
|
elementId: o.id,
|
|
24548
24552
|
blockType: o.type,
|
|
24549
24553
|
conflictsWith: l
|
|
24550
|
-
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ?
|
|
24554
|
+
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? TL(o, o.id, t, n) : EL(o, t)));
|
|
24551
24555
|
}
|
|
24552
24556
|
let o = t.maxElementsPerSection;
|
|
24553
24557
|
return o !== void 0 && r.length > o ? (n.push({
|
|
@@ -24562,14 +24566,14 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24562
24566
|
...e,
|
|
24563
24567
|
elements: r
|
|
24564
24568
|
};
|
|
24565
|
-
},
|
|
24569
|
+
}, cB = (e, t, n) => {
|
|
24566
24570
|
let r = e;
|
|
24567
24571
|
return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
|
|
24568
24572
|
rule: "maxSections",
|
|
24569
24573
|
limit: t.maxSections,
|
|
24570
24574
|
droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
|
|
24571
|
-
}), r = r.slice(0, t.maxSections)), r.map((e, r) =>
|
|
24572
|
-
},
|
|
24575
|
+
}), r = r.slice(0, t.maxSections)), r.map((e, r) => sB(e, OL(t, r === 0), n));
|
|
24576
|
+
}, lB = (e, t, n) => {
|
|
24573
24577
|
if (e.type !== "text" || !t.text) return;
|
|
24574
24578
|
let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
|
|
24575
24579
|
return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
|
|
@@ -24580,14 +24584,14 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24580
24584
|
...i === void 0 ? {} : { minLength: i },
|
|
24581
24585
|
...a === void 0 ? {} : { maxLength: a }
|
|
24582
24586
|
};
|
|
24583
|
-
},
|
|
24587
|
+
}, uB = (e, t, n) => {
|
|
24584
24588
|
let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
|
|
24585
24589
|
t.forEach((e, t) => {
|
|
24586
24590
|
let o = e.min ?? 1, s = e.max ?? 1, c = 0;
|
|
24587
24591
|
for (; c < s && a < r.length && e.types.includes(r[a].type);) {
|
|
24588
24592
|
let o = r[a];
|
|
24589
24593
|
a += 1, c += 1;
|
|
24590
|
-
let s =
|
|
24594
|
+
let s = lB(o, e, t);
|
|
24591
24595
|
s && (i.add(o.id), n.push(s));
|
|
24592
24596
|
}
|
|
24593
24597
|
c < o && n.push({
|
|
@@ -24606,59 +24610,59 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24606
24610
|
...e,
|
|
24607
24611
|
elements: e.elements.filter(({ id: e }) => !i.has(e))
|
|
24608
24612
|
}));
|
|
24609
|
-
},
|
|
24613
|
+
}, dB = (e) => typeof e == "object" && !!e, fB = (e) => {
|
|
24610
24614
|
let t = e.widget, n = Array.isArray(e.sections);
|
|
24611
|
-
return t === void 0 ? n ? "sections" : null :
|
|
24612
|
-
},
|
|
24613
|
-
if (!
|
|
24615
|
+
return t === void 0 ? n ? "sections" : null : dB(t) && t.type === "widget" && typeof t.id == "string" && dB(t.source) && !n ? "widget" : null;
|
|
24616
|
+
}, pB = (e, t, n) => {
|
|
24617
|
+
if (!fB(e)) return n.push({ rule: "accessoryViewBody" }), [];
|
|
24614
24618
|
let r = t.rules ?? {};
|
|
24615
|
-
if (e.widget) return
|
|
24619
|
+
if (e.widget) return wL(r, "widget") ? [e] : (n.push({
|
|
24616
24620
|
rule: "allowedBlockTypes",
|
|
24617
24621
|
sectionId: e.id,
|
|
24618
24622
|
elementId: e.widget.id,
|
|
24619
24623
|
blockType: "widget"
|
|
24620
24624
|
}), []);
|
|
24621
|
-
let i =
|
|
24625
|
+
let i = cB(e.sections, r, n), a = t.shape ? uB(i, t.shape, n) : i;
|
|
24622
24626
|
return [{
|
|
24623
24627
|
...e,
|
|
24624
24628
|
sections: a
|
|
24625
24629
|
}];
|
|
24626
|
-
},
|
|
24630
|
+
}, mB = (e, t, n) => e.flatMap((e) => {
|
|
24627
24631
|
let r = t.find((t) => t.type === e.type);
|
|
24628
24632
|
if (!r) return n.push({
|
|
24629
24633
|
rule: "accessoryViewType",
|
|
24630
24634
|
accessoryViewId: e.id,
|
|
24631
24635
|
viewType: e.type
|
|
24632
24636
|
}), [];
|
|
24633
|
-
let i = [], a =
|
|
24637
|
+
let i = [], a = pB(e, r, i);
|
|
24634
24638
|
return n.push(...i.map((t) => ({
|
|
24635
24639
|
...t,
|
|
24636
24640
|
accessoryViewId: e.id
|
|
24637
24641
|
}))), a;
|
|
24638
|
-
}),
|
|
24639
|
-
let r = [], i =
|
|
24642
|
+
}), hB = (e, t, n = []) => {
|
|
24643
|
+
let r = [], i = HL(cB(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
|
|
24640
24644
|
rule: "sectionTitle",
|
|
24641
24645
|
sectionId: e.id
|
|
24642
24646
|
}), !1)), t, r), r);
|
|
24643
24647
|
i.forEach((e, n) => {
|
|
24644
|
-
let i =
|
|
24645
|
-
for (let t of e.elements) t.type === "shortcuts" &&
|
|
24648
|
+
let i = OL(t, n === 0);
|
|
24649
|
+
for (let t of e.elements) t.type === "shortcuts" && vL(t, CL(i, t.type), {
|
|
24646
24650
|
sectionId: e.id,
|
|
24647
24651
|
elementId: t.id
|
|
24648
24652
|
}, r);
|
|
24649
24653
|
});
|
|
24650
|
-
let a = e.accessoryViews ?
|
|
24654
|
+
let a = e.accessoryViews ? mB(e.accessoryViews, n, r) : void 0, o = {
|
|
24651
24655
|
...e,
|
|
24652
24656
|
sections: i,
|
|
24653
24657
|
...a ? { accessoryViews: a } : {}
|
|
24654
24658
|
};
|
|
24655
24659
|
return {
|
|
24656
24660
|
spec: o,
|
|
24657
|
-
violations: [...r, ...
|
|
24661
|
+
violations: [...r, ...LL(o)]
|
|
24658
24662
|
};
|
|
24659
|
-
},
|
|
24663
|
+
}, gB = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
|
|
24660
24664
|
let a = J(() => {
|
|
24661
|
-
let i =
|
|
24665
|
+
let i = hB(e, n ?? {}, r), a = t ? KL(t, i.spec, n ?? {}, r) : {
|
|
24662
24666
|
sources: t,
|
|
24663
24667
|
violations: []
|
|
24664
24668
|
};
|
|
@@ -24681,7 +24685,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24681
24685
|
let e = JSON.parse(s);
|
|
24682
24686
|
e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
|
|
24683
24687
|
}, [s]), a;
|
|
24684
|
-
},
|
|
24688
|
+
}, _B = (e, t, n) => {
|
|
24685
24689
|
let r = Y(n);
|
|
24686
24690
|
q(() => {
|
|
24687
24691
|
r.current = n;
|
|
@@ -24696,29 +24700,29 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24696
24700
|
t,
|
|
24697
24701
|
i
|
|
24698
24702
|
]);
|
|
24699
|
-
},
|
|
24703
|
+
}, vB = (e, t) => {
|
|
24700
24704
|
let n = Object.keys(e.params);
|
|
24701
24705
|
return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
|
|
24702
|
-
},
|
|
24703
|
-
let { missingParams: n, undeclaredParams: r } =
|
|
24706
|
+
}, yB = (e, t) => {
|
|
24707
|
+
let { missingParams: n, undeclaredParams: r } = kL(e, t);
|
|
24704
24708
|
return n.length === 0 && r.length === 0;
|
|
24705
|
-
},
|
|
24706
|
-
let { spec: b, sources: x } =
|
|
24709
|
+
}, bB = {}, xB = (e, t, n, r) => !n || r && vB(r, t) ? e : bB, SB = "pt-[max(4rem,22vh)]", CB = "pb-40", wB = "pb-10", TB = sl(function({ spec: e, greeting: t, clockIn: n, widgets: r = [], onClickAddWidget: i, onRemoveWidget: a, onChangeWidgetParams: o, sources: s, sourcesFor: c, onAccessoryViewOpen: l, onAccessoryViewClose: u, onAction: d, composer: f, onComposerVisibilityChange: p, rules: m, onRulesViolation: h, accessoryViewTypes: g, slotRenderers: _, renderMention: v }, y) {
|
|
24710
|
+
let { spec: b, sources: x } = gB({
|
|
24707
24711
|
spec: e,
|
|
24708
24712
|
sources: s,
|
|
24709
24713
|
rules: m,
|
|
24710
24714
|
accessoryViewTypes: g,
|
|
24711
24715
|
onRulesViolation: h
|
|
24712
24716
|
}), S = Y(null), C = Y(null);
|
|
24713
|
-
pl(y, () => S.current),
|
|
24714
|
-
let w =
|
|
24717
|
+
pl(y, () => S.current), _B(S, C, p);
|
|
24718
|
+
let w = oB(S), T = f ? /* @__PURE__ */ Q(Qz, {
|
|
24715
24719
|
ref: C,
|
|
24716
24720
|
children: f
|
|
24717
24721
|
}) : null, [E, ...D] = b.sections, [O, k] = X(), A = b.accessoryViews?.find(({ id: e }) => e === O?.id), j = g?.find(({ type: e }) => e === A?.type), M = J(() => (e, t) => {
|
|
24718
24722
|
if (e.type === "goToSection" && w(e.sectionId), e.type === "openAccessoryView") {
|
|
24719
24723
|
let t = b.accessoryViews?.find(({ id: t }) => t === e.id);
|
|
24720
24724
|
if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
|
|
24721
|
-
else if (
|
|
24725
|
+
else if (yB(t, e.params)) {
|
|
24722
24726
|
let n = {
|
|
24723
24727
|
id: t.id,
|
|
24724
24728
|
params: e.params ?? {}
|
|
@@ -24736,9 +24740,9 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24736
24740
|
l,
|
|
24737
24741
|
b.accessoryViews
|
|
24738
24742
|
]);
|
|
24739
|
-
return /* @__PURE__ */ Q(
|
|
24743
|
+
return /* @__PURE__ */ Q(cz, {
|
|
24740
24744
|
value: _,
|
|
24741
|
-
children: /* @__PURE__ */ Q(
|
|
24745
|
+
children: /* @__PURE__ */ Q(Cz, {
|
|
24742
24746
|
value: v,
|
|
24743
24747
|
children: /* @__PURE__ */ $("div", {
|
|
24744
24748
|
className: "relative h-full min-h-0 w-full",
|
|
@@ -24746,24 +24750,24 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24746
24750
|
ref: S,
|
|
24747
24751
|
className: W("h-full w-full overflow-y-auto bg-f1-background px-6", (r.length > 0 || i) && "md:px-20"),
|
|
24748
24752
|
children: [/* @__PURE__ */ $("div", {
|
|
24749
|
-
className: W("mx-auto flex w-full max-w-content flex-col gap-20",
|
|
24753
|
+
className: W("mx-auto flex w-full max-w-content flex-col gap-20", SB, f && p ? CB : wB),
|
|
24750
24754
|
children: [
|
|
24751
|
-
t ? /* @__PURE__ */ Q(
|
|
24755
|
+
t ? /* @__PURE__ */ Q($z, { greeting: t }) : null,
|
|
24752
24756
|
E ? null : T,
|
|
24753
|
-
E ? /* @__PURE__ */ Q(
|
|
24757
|
+
E ? /* @__PURE__ */ Q(Hz, {
|
|
24754
24758
|
size: "lead",
|
|
24755
24759
|
section: E,
|
|
24756
24760
|
sources: x,
|
|
24757
24761
|
onAction: M,
|
|
24758
24762
|
composer: T
|
|
24759
24763
|
}, E.id) : null,
|
|
24760
|
-
D.map((e) => /* @__PURE__ */ Q(
|
|
24764
|
+
D.map((e) => /* @__PURE__ */ Q(Hz, {
|
|
24761
24765
|
section: e,
|
|
24762
24766
|
sources: x,
|
|
24763
24767
|
onAction: M
|
|
24764
24768
|
}, e.id))
|
|
24765
24769
|
]
|
|
24766
|
-
}), O && A && j ? /* @__PURE__ */ Q(
|
|
24770
|
+
}), O && A && j ? /* @__PURE__ */ Q(Kz, {
|
|
24767
24771
|
view: A,
|
|
24768
24772
|
params: O.params,
|
|
24769
24773
|
presentation: j.presentation,
|
|
@@ -24776,34 +24780,34 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24776
24780
|
open: !1
|
|
24777
24781
|
}), u?.();
|
|
24778
24782
|
},
|
|
24779
|
-
sources:
|
|
24783
|
+
sources: xB(x, O, !!A.params?.length, c),
|
|
24780
24784
|
onAction: M
|
|
24781
24785
|
}) : null]
|
|
24782
|
-
}), n || r.length || i ? /* @__PURE__ */ Q(
|
|
24786
|
+
}), n || r.length || i ? /* @__PURE__ */ Q(iB, {
|
|
24783
24787
|
widgets: r,
|
|
24784
24788
|
onAdd: i,
|
|
24785
24789
|
onRemove: a,
|
|
24786
24790
|
onChangeParams: o,
|
|
24787
24791
|
slotRenderers: _,
|
|
24788
|
-
clock: n ? /* @__PURE__ */ Q(
|
|
24792
|
+
clock: n ? /* @__PURE__ */ Q(Zz, { clockIn: n }) : void 0
|
|
24789
24793
|
}) : null]
|
|
24790
24794
|
})
|
|
24791
24795
|
})
|
|
24792
24796
|
});
|
|
24793
|
-
}),
|
|
24797
|
+
}), EB = Rn("F0AgenticHome", TB), DB = sl(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
|
|
24794
24798
|
let a = J(() => (e, t) => n?.(e, t), [n]);
|
|
24795
24799
|
return /* @__PURE__ */ Q("div", {
|
|
24796
24800
|
ref: i,
|
|
24797
|
-
children: /* @__PURE__ */ Q(
|
|
24801
|
+
children: /* @__PURE__ */ Q(cz, {
|
|
24798
24802
|
value: r,
|
|
24799
|
-
children: /* @__PURE__ */ Q(
|
|
24803
|
+
children: /* @__PURE__ */ Q(dz, {
|
|
24800
24804
|
element: e,
|
|
24801
24805
|
state: t,
|
|
24802
24806
|
onAction: a
|
|
24803
24807
|
})
|
|
24804
24808
|
})
|
|
24805
24809
|
});
|
|
24806
|
-
}),
|
|
24810
|
+
}), OB = Rn("F0AgenticHomeBlock", DB), kB = {
|
|
24807
24811
|
maxSections: 12,
|
|
24808
24812
|
maxElementsPerSection: 3,
|
|
24809
24813
|
blocks: [
|
|
@@ -24851,18 +24855,18 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24851
24855
|
type: "list",
|
|
24852
24856
|
itemActions: ["goToSection"]
|
|
24853
24857
|
}] }
|
|
24854
|
-
},
|
|
24858
|
+
}, AB = 1, jB = {
|
|
24855
24859
|
main: 672,
|
|
24856
24860
|
right: 396
|
|
24857
|
-
},
|
|
24858
|
-
...
|
|
24861
|
+
}, MB = 250, NB = (e) => typeof e == "object" && !!e && !cl(e) && Array.isArray(e.slots), PB = ({ preview: e, params: t, slotRenderers: n }) => NB(e) ? /* @__PURE__ */ Q(uI, {
|
|
24862
|
+
...EF(e),
|
|
24859
24863
|
header: e.header,
|
|
24860
24864
|
params: t ?? e.params,
|
|
24861
24865
|
fullHeight: e.fullHeight,
|
|
24862
24866
|
slots: e.slots,
|
|
24863
24867
|
loading: e.loading,
|
|
24864
24868
|
slotRenderers: n
|
|
24865
|
-
}) : /* @__PURE__ */ Q(Z, { children: e }),
|
|
24869
|
+
}) : /* @__PURE__ */ Q(Z, { children: e }), FB = (e, t, n) => e.info ?? (NB(t) ? SF(t.header, n ?? t.params)?.info : void 0), IB = (e) => e.paramsSchema ?? (NB(e.preview) ? e.preview.paramsSchema : void 0), LB = (e) => e.params ?? (NB(e.preview) ? e.preview.params : void 0) ?? {}, RB = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
|
|
24866
24870
|
className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
|
|
24867
24871
|
children: [t ? /* @__PURE__ */ Q(V, {
|
|
24868
24872
|
icon: t,
|
|
@@ -24873,10 +24877,10 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24873
24877
|
children: e
|
|
24874
24878
|
})]
|
|
24875
24879
|
});
|
|
24876
|
-
function
|
|
24877
|
-
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } =
|
|
24880
|
+
function zB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
|
|
24881
|
+
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = fI(), [h, g] = X(""), [_, v] = X(null), [y, b] = X("pick"), [x, S] = X(!1), C = (e) => {
|
|
24878
24882
|
S(!0), b(e);
|
|
24879
|
-
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = $e(), k = h.trim().toLowerCase(), A = o ?? (a ?
|
|
24883
|
+
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = $e(), k = h.trim().toLowerCase(), A = o ?? (a ? jB[a] : jB.right), j = J(() => {
|
|
24880
24884
|
let e = a ? n.filter((e) => !e.areas || e.areas.includes(a)) : n, t = k ? e.filter((e) => e.title.toLowerCase().includes(k)) : e, r = t.filter((e) => e.recommended), o = t.filter((e) => !e.recommended), s = new Set((i ?? []).map((e) => e.id)), c = o.filter((e) => !e.group || !s.has(e.group));
|
|
24881
24885
|
return [
|
|
24882
24886
|
...r.length ? [{
|
|
@@ -24901,7 +24905,7 @@ function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24901
24905
|
k,
|
|
24902
24906
|
a,
|
|
24903
24907
|
u
|
|
24904
|
-
]), M = j.flatMap((e) => e.items), N = M.find((e) => e.id === _) ?? M[0] ?? null, P = N ?
|
|
24908
|
+
]), M = j.flatMap((e) => e.items), N = M.find((e) => e.id === _) ?? M[0] ?? null, P = N ? IB(N) : void 0, F = P !== void 0 && !(N?.addWithDefaults && wF(P, LB(N))), I = y === "configure" && F, ee = N && w?.id === N.id ? w.params : N ? LB(N) : {}, te = I && N && c ? c(N, ee) : N?.preview;
|
|
24905
24909
|
return q(() => {
|
|
24906
24910
|
e && (b("pick"), S(!1), T(null));
|
|
24907
24911
|
}, [e]), q(() => {
|
|
@@ -24948,7 +24952,7 @@ function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24948
24952
|
defaultValues: ee,
|
|
24949
24953
|
submitConfig: {
|
|
24950
24954
|
type: "autosubmit",
|
|
24951
|
-
delay:
|
|
24955
|
+
delay: MB,
|
|
24952
24956
|
hideActionBar: !0
|
|
24953
24957
|
},
|
|
24954
24958
|
styling: { noPadding: !0 },
|
|
@@ -24963,7 +24967,7 @@ function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24963
24967
|
placeholder: "Search widgets"
|
|
24964
24968
|
}), /* @__PURE__ */ $("div", {
|
|
24965
24969
|
className: "flex flex-col gap-1 overflow-y-auto",
|
|
24966
|
-
children: [j.map((e) => /* @__PURE__ */ $(rl, { children: [e.label ? /* @__PURE__ */ Q(
|
|
24970
|
+
children: [j.map((e) => /* @__PURE__ */ $(rl, { children: [e.label ? /* @__PURE__ */ Q(RB, {
|
|
24967
24971
|
label: e.label,
|
|
24968
24972
|
icon: e.icon
|
|
24969
24973
|
}) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
|
|
@@ -24982,11 +24986,11 @@ function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24982
24986
|
children: k ? "No widgets match your search." : "No widgets to add here."
|
|
24983
24987
|
}) : null]
|
|
24984
24988
|
})] })
|
|
24985
|
-
}, y), /* @__PURE__ */ Q(
|
|
24989
|
+
}, y), /* @__PURE__ */ Q(mI, {
|
|
24986
24990
|
previewKey: N?.id,
|
|
24987
|
-
info: N ?
|
|
24991
|
+
info: N ? FB(N, te, I ? ee : void 0) : void 0,
|
|
24988
24992
|
previewWidth: A,
|
|
24989
|
-
children: N ? /* @__PURE__ */ Q(
|
|
24993
|
+
children: N ? /* @__PURE__ */ Q(PB, {
|
|
24990
24994
|
preview: te,
|
|
24991
24995
|
params: I ? ee : void 0,
|
|
24992
24996
|
slotRenderers: s
|
|
@@ -24997,62 +25001,62 @@ function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24997
25001
|
}
|
|
24998
25002
|
//#endregion
|
|
24999
25003
|
//#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
|
|
25000
|
-
var
|
|
25004
|
+
var BB = Object.defineProperty, VB = Object.defineProperties, HB = Object.getOwnPropertyDescriptors, UB = Object.getOwnPropertySymbols, WB = Object.prototype.hasOwnProperty, GB = Object.prototype.propertyIsEnumerable, KB = (e, t, n) => t in e ? BB(e, t, {
|
|
25001
25005
|
enumerable: !0,
|
|
25002
25006
|
configurable: !0,
|
|
25003
25007
|
writable: !0,
|
|
25004
25008
|
value: n
|
|
25005
|
-
}) : e[t] = n,
|
|
25006
|
-
for (var n in t ||= {})
|
|
25007
|
-
if (
|
|
25009
|
+
}) : e[t] = n, qB = (e, t) => {
|
|
25010
|
+
for (var n in t ||= {}) WB.call(t, n) && KB(e, n, t[n]);
|
|
25011
|
+
if (UB) for (var n of UB(t)) GB.call(t, n) && KB(e, n, t[n]);
|
|
25008
25012
|
return e;
|
|
25009
|
-
},
|
|
25013
|
+
}, JB = (e, t) => VB(e, HB(t)), YB = (e, t) => {
|
|
25010
25014
|
var n = {};
|
|
25011
|
-
for (var r in e)
|
|
25012
|
-
if (e != null &&
|
|
25015
|
+
for (var r in e) WB.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
25016
|
+
if (e != null && UB) for (var r of UB(e)) t.indexOf(r) < 0 && GB.call(e, r) && (n[r] = e[r]);
|
|
25013
25017
|
return n;
|
|
25014
|
-
},
|
|
25018
|
+
}, XB = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, ZB = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), QB = ({ position: e, spot: t, stone: n }) => {
|
|
25015
25019
|
if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
|
|
25016
25020
|
if (t.bottom && t.bottom < e.top) return t;
|
|
25017
|
-
let n =
|
|
25021
|
+
let n = qB({}, t);
|
|
25018
25022
|
return n.right = e.left, n;
|
|
25019
25023
|
}
|
|
25020
25024
|
return null;
|
|
25021
|
-
},
|
|
25025
|
+
}, $B = ({ position: e, stone: t, spot: n }) => {
|
|
25022
25026
|
if (e.left + t.width > n.left && e.top >= n.top) {
|
|
25023
25027
|
if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
|
|
25024
|
-
let t =
|
|
25028
|
+
let t = qB({}, n);
|
|
25025
25029
|
return t.bottom = e.top, t;
|
|
25026
25030
|
}
|
|
25027
25031
|
return null;
|
|
25028
|
-
},
|
|
25029
|
-
let i =
|
|
25030
|
-
return i.left = t.left + e.width,
|
|
25032
|
+
}, eV = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
|
|
25033
|
+
let i = qB({}, r);
|
|
25034
|
+
return i.left = t.left + e.width, XB(i) || ZB({
|
|
25031
25035
|
usedSpot: i,
|
|
25032
25036
|
spotsList: n
|
|
25033
25037
|
}) ? null : i;
|
|
25034
|
-
},
|
|
25038
|
+
}, tV = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? eV({
|
|
25035
25039
|
stone: r,
|
|
25036
25040
|
position: t,
|
|
25037
25041
|
optimalSpot: n,
|
|
25038
25042
|
spotsList: a
|
|
25039
|
-
}) :
|
|
25043
|
+
}) : QB({
|
|
25040
25044
|
position: t,
|
|
25041
25045
|
spot: e,
|
|
25042
25046
|
stone: r
|
|
25043
|
-
}) ||
|
|
25047
|
+
}) || $B({
|
|
25044
25048
|
position: t,
|
|
25045
25049
|
stone: r,
|
|
25046
25050
|
spot: e
|
|
25047
25051
|
}) || e);
|
|
25048
|
-
function
|
|
25052
|
+
function nV(e, t) {
|
|
25049
25053
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
25050
25054
|
let r = t[n];
|
|
25051
25055
|
if (e(r)) return r;
|
|
25052
25056
|
}
|
|
25053
25057
|
return null;
|
|
25054
25058
|
}
|
|
25055
|
-
var
|
|
25059
|
+
var rV = (e, t) => t.filter(e), iV = (e, t) => [...t].sort(e), aV = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, oV = (e) => iV(aV, e), sV = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
|
|
25056
25060
|
let i = {
|
|
25057
25061
|
right: n,
|
|
25058
25062
|
top: t.top + r.height,
|
|
@@ -25067,36 +25071,36 @@ var tV = (e, t) => t.filter(e), nV = (e, t) => [...t].sort(e), rV = (e, t) => e.
|
|
|
25067
25071
|
}
|
|
25068
25072
|
}
|
|
25069
25073
|
return i;
|
|
25070
|
-
},
|
|
25074
|
+
}, cV = (e, t) => {
|
|
25071
25075
|
let n = e.right - e.left >= t.width;
|
|
25072
25076
|
if (!e.bottom) return n;
|
|
25073
25077
|
let r = e.bottom - e.top >= t.height;
|
|
25074
25078
|
return n && r;
|
|
25075
|
-
},
|
|
25076
|
-
function
|
|
25077
|
-
let r =
|
|
25079
|
+
}, lV = ({ availableSpots: e, stone: t }) => nV((e) => cV(e, t), e);
|
|
25080
|
+
function uV({ stone: e, availableSpots: t, containerSize: n }) {
|
|
25081
|
+
let r = lV({
|
|
25078
25082
|
availableSpots: t,
|
|
25079
25083
|
stone: e
|
|
25080
25084
|
}), i = {
|
|
25081
25085
|
left: r.left,
|
|
25082
25086
|
top: r.top
|
|
25083
|
-
}, a =
|
|
25087
|
+
}, a = sV({
|
|
25084
25088
|
optimalSpot: r,
|
|
25085
25089
|
availableSpots: t.filter((e) => e !== r),
|
|
25086
25090
|
stone: e,
|
|
25087
25091
|
containerSize: n
|
|
25088
|
-
}), o = [...t, a], s =
|
|
25092
|
+
}), o = [...t, a], s = tV({
|
|
25089
25093
|
spots: o,
|
|
25090
25094
|
position: i,
|
|
25091
25095
|
optimalSpot: r,
|
|
25092
25096
|
stone: e
|
|
25093
25097
|
});
|
|
25094
|
-
return o = [...
|
|
25098
|
+
return o = [...rV(Boolean, s)], o = oV(o), {
|
|
25095
25099
|
position: i,
|
|
25096
25100
|
availableSpots: o
|
|
25097
25101
|
};
|
|
25098
25102
|
}
|
|
25099
|
-
var
|
|
25103
|
+
var dV = ({ stones: e, containerSize: t }) => {
|
|
25100
25104
|
let n = {
|
|
25101
25105
|
positions: [],
|
|
25102
25106
|
containerHeight: 0,
|
|
@@ -25109,7 +25113,7 @@ var lV = ({ stones: e, containerSize: t }) => {
|
|
|
25109
25113
|
right: t
|
|
25110
25114
|
}];
|
|
25111
25115
|
for (let n of e) {
|
|
25112
|
-
let e =
|
|
25116
|
+
let e = uV({
|
|
25113
25117
|
availableSpots: a,
|
|
25114
25118
|
stone: n,
|
|
25115
25119
|
containerSize: t
|
|
@@ -25121,14 +25125,14 @@ var lV = ({ stones: e, containerSize: t }) => {
|
|
|
25121
25125
|
positions: i,
|
|
25122
25126
|
containerHeight: r
|
|
25123
25127
|
};
|
|
25124
|
-
},
|
|
25128
|
+
}, fV = (e) => e.reduce((e, t) => {
|
|
25125
25129
|
if (!t) return e;
|
|
25126
25130
|
let n = t.getBoundingClientRect();
|
|
25127
25131
|
return e.push({
|
|
25128
25132
|
width: n.width,
|
|
25129
25133
|
height: n.height
|
|
25130
25134
|
}), e;
|
|
25131
|
-
}, []),
|
|
25135
|
+
}, []), pV = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
|
|
25132
25136
|
let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
|
|
25133
25137
|
positions: [],
|
|
25134
25138
|
containerHeight: null,
|
|
@@ -25136,13 +25140,13 @@ var lV = ({ stones: e, containerSize: t }) => {
|
|
|
25136
25140
|
availableSpots: []
|
|
25137
25141
|
});
|
|
25138
25142
|
return q(() => {
|
|
25139
|
-
let n =
|
|
25143
|
+
let n = fV(e.current), r = t.current?.offsetWidth ?? 0;
|
|
25140
25144
|
if (r === null) return;
|
|
25141
|
-
let i =
|
|
25145
|
+
let i = dV({
|
|
25142
25146
|
stones: n,
|
|
25143
25147
|
containerSize: r
|
|
25144
25148
|
});
|
|
25145
|
-
l(
|
|
25149
|
+
l(JB(qB({}, i), { stones: n }));
|
|
25146
25150
|
}, [
|
|
25147
25151
|
n,
|
|
25148
25152
|
e,
|
|
@@ -25155,7 +25159,7 @@ var lV = ({ stones: e, containerSize: t }) => {
|
|
|
25155
25159
|
stones: s,
|
|
25156
25160
|
availableSpots: c
|
|
25157
25161
|
};
|
|
25158
|
-
},
|
|
25162
|
+
}, mV = (e) => ({
|
|
25159
25163
|
fade: `${e}ms opacity ease`,
|
|
25160
25164
|
fadeMove: `
|
|
25161
25165
|
${e}ms opacity ease,
|
|
@@ -25166,15 +25170,15 @@ var lV = ({ stones: e, containerSize: t }) => {
|
|
|
25166
25170
|
${e}ms top ease,
|
|
25167
25171
|
${e}ms left ease
|
|
25168
25172
|
`
|
|
25169
|
-
}),
|
|
25173
|
+
}), hV = ({ transition: e, transitionDuration: t }) => e ? { transition: mV(t)[e] } : null, gV = (e) => e ? JB(qB({}, e), { opacity: 1 }) : {
|
|
25170
25174
|
opacity: 0,
|
|
25171
25175
|
top: 0,
|
|
25172
25176
|
left: 0
|
|
25173
|
-
},
|
|
25177
|
+
}, _V = ({ style: e, position: t, transition: n, transitionDuration: r }) => qB(qB(JB(qB({}, e), { position: "absolute" }), gV(t)), hV({
|
|
25174
25178
|
transition: n,
|
|
25175
25179
|
transitionDuration: r
|
|
25176
25180
|
}));
|
|
25177
|
-
function
|
|
25181
|
+
function vV(e, t, n) {
|
|
25178
25182
|
let r;
|
|
25179
25183
|
return function(...i) {
|
|
25180
25184
|
r && clearTimeout(r), r = setTimeout(function() {
|
|
@@ -25182,8 +25186,8 @@ function gV(e, t, n) {
|
|
|
25182
25186
|
}, t), n && !r && e.apply(null, i);
|
|
25183
25187
|
};
|
|
25184
25188
|
}
|
|
25185
|
-
var
|
|
25186
|
-
let [e, t] = X(), n = Y(
|
|
25189
|
+
var yV = () => {
|
|
25190
|
+
let [e, t] = X(), n = Y(vV(t, 300));
|
|
25187
25191
|
return q(() => {
|
|
25188
25192
|
let e = () => {
|
|
25189
25193
|
n.current(window.innerWidth);
|
|
@@ -25192,7 +25196,7 @@ var _V = () => {
|
|
|
25192
25196
|
window.removeEventListener("resize", e);
|
|
25193
25197
|
};
|
|
25194
25198
|
}, []), e;
|
|
25195
|
-
},
|
|
25199
|
+
}, bV = (e) => {
|
|
25196
25200
|
let [t, n] = X(null);
|
|
25197
25201
|
return q(() => {
|
|
25198
25202
|
let t = new ResizeObserver((e) => {
|
|
@@ -25202,31 +25206,31 @@ var _V = () => {
|
|
|
25202
25206
|
t.disconnect();
|
|
25203
25207
|
};
|
|
25204
25208
|
}, [e]), t;
|
|
25205
|
-
},
|
|
25206
|
-
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s =
|
|
25209
|
+
}, xV = (e) => {
|
|
25210
|
+
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = YB(t, [
|
|
25207
25211
|
"children",
|
|
25208
25212
|
"style",
|
|
25209
25213
|
"transition",
|
|
25210
25214
|
"transitionDuration",
|
|
25211
25215
|
"transitionStep"
|
|
25212
25216
|
]);
|
|
25213
|
-
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } =
|
|
25217
|
+
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = pV({
|
|
25214
25218
|
boxesRefs: c,
|
|
25215
25219
|
wrapperRef: l,
|
|
25216
25220
|
children: n,
|
|
25217
|
-
windowWidth:
|
|
25218
|
-
wrapperWidth:
|
|
25219
|
-
}), f =
|
|
25221
|
+
windowWidth: yV(),
|
|
25222
|
+
wrapperWidth: bV(l)
|
|
25223
|
+
}), f = qB({
|
|
25220
25224
|
minHeight: d ?? 0,
|
|
25221
25225
|
position: "relative"
|
|
25222
25226
|
}, r);
|
|
25223
|
-
return Q("div",
|
|
25227
|
+
return Q("div", JB(qB({
|
|
25224
25228
|
ref: l,
|
|
25225
25229
|
style: f
|
|
25226
25230
|
}, s), { children: nl.map(n, (e, t) => {
|
|
25227
25231
|
if (typeof e != "object" || !e || !("type" in e)) return e;
|
|
25228
25232
|
let n = {
|
|
25229
|
-
style:
|
|
25233
|
+
style: _V({
|
|
25230
25234
|
style: e.props.style,
|
|
25231
25235
|
position: u[t],
|
|
25232
25236
|
transition: i,
|
|
@@ -25234,14 +25238,14 @@ var _V = () => {
|
|
|
25234
25238
|
}),
|
|
25235
25239
|
ref: (e) => c.current[t] = e
|
|
25236
25240
|
};
|
|
25237
|
-
return al(e,
|
|
25241
|
+
return al(e, qB(qB({}, e.props), n));
|
|
25238
25242
|
}) }));
|
|
25239
|
-
},
|
|
25243
|
+
}, SV = {
|
|
25240
25244
|
sm: 340,
|
|
25241
25245
|
md: 480,
|
|
25242
25246
|
lg: 640
|
|
25243
|
-
},
|
|
25244
|
-
let r =
|
|
25247
|
+
}, CV = sl(function({ children: e, widgetWidth: t = "sm" }, n) {
|
|
25248
|
+
let r = SV[t], [i, a] = X(), o = nl.toArray(e), s = Y(null);
|
|
25245
25249
|
return q(() => {
|
|
25246
25250
|
let e = () => {
|
|
25247
25251
|
let e = s.current?.offsetWidth;
|
|
@@ -25260,7 +25264,7 @@ var _V = () => {
|
|
|
25260
25264
|
children: e
|
|
25261
25265
|
}) : i && i > 1 && /* @__PURE__ */ Q("div", {
|
|
25262
25266
|
className: "relative -mr-4",
|
|
25263
|
-
children: /* @__PURE__ */ Q(
|
|
25267
|
+
children: /* @__PURE__ */ Q(xV, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
|
|
25264
25268
|
style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
|
|
25265
25269
|
className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
|
|
25266
25270
|
children: e
|
|
@@ -25268,7 +25272,7 @@ var _V = () => {
|
|
|
25268
25272
|
})
|
|
25269
25273
|
})
|
|
25270
25274
|
});
|
|
25271
|
-
}),
|
|
25275
|
+
}), wV = [
|
|
25272
25276
|
"sm",
|
|
25273
25277
|
"lg",
|
|
25274
25278
|
"md",
|
|
@@ -25281,18 +25285,18 @@ var _V = () => {
|
|
|
25281
25285
|
"sm",
|
|
25282
25286
|
"md",
|
|
25283
25287
|
"md"
|
|
25284
|
-
],
|
|
25288
|
+
], TV = ei(CV, () => /* @__PURE__ */ Q(pr, { children: /* @__PURE__ */ Q(CV, { children: wV.map((e, t) => /* @__PURE__ */ Q(O.Skeleton, { height: e }, t)) }) })), EV = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
25285
25289
|
className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]",
|
|
25286
25290
|
children: e
|
|
25287
|
-
}),
|
|
25291
|
+
}), DV = ei(sl(function({ children: e }, t) {
|
|
25288
25292
|
return /* @__PURE__ */ Q(Io, {
|
|
25289
25293
|
ref: t,
|
|
25290
25294
|
showBar: !1,
|
|
25291
|
-
children: /* @__PURE__ */ Q(
|
|
25295
|
+
children: /* @__PURE__ */ Q(EV, { children: e })
|
|
25292
25296
|
});
|
|
25293
25297
|
}), () => /* @__PURE__ */ Q(pr, {
|
|
25294
25298
|
orientation: "horizontal",
|
|
25295
|
-
children: /* @__PURE__ */ $(
|
|
25299
|
+
children: /* @__PURE__ */ $(EV, { children: [
|
|
25296
25300
|
/* @__PURE__ */ Q(O.Skeleton, {}),
|
|
25297
25301
|
/* @__PURE__ */ Q(O.Skeleton, {}),
|
|
25298
25302
|
/* @__PURE__ */ Q(O.Skeleton, {})
|
|
@@ -25300,7 +25304,7 @@ var _V = () => {
|
|
|
25300
25304
|
}));
|
|
25301
25305
|
//#endregion
|
|
25302
25306
|
//#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
|
|
25303
|
-
function
|
|
25307
|
+
function OV({ title: e, description: t, emoji: n, actions: r }) {
|
|
25304
25308
|
if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
|
|
25305
25309
|
return /* @__PURE__ */ Q(S, {
|
|
25306
25310
|
title: e,
|
|
@@ -25309,7 +25313,7 @@ function EV({ title: e, description: t, emoji: n, actions: r }) {
|
|
|
25309
25313
|
actions: r
|
|
25310
25314
|
});
|
|
25311
25315
|
}
|
|
25312
|
-
var
|
|
25316
|
+
var kV = Cn(Rn("WidgetEmptyState", OV)), AV = sl(({ title: e, children: t }, n) => (ln(e, { disallowEmpty: !0 }, { componentName: "WidgetSection" }), /* @__PURE__ */ $("div", {
|
|
25313
25317
|
ref: n,
|
|
25314
25318
|
className: "flex flex-col gap-2",
|
|
25315
25319
|
children: [/* @__PURE__ */ Q("p", {
|
|
@@ -25317,8 +25321,8 @@ var DV = Cn(Rn("WidgetEmptyState", EV)), OV = sl(({ title: e, children: t }, n)
|
|
|
25317
25321
|
children: e
|
|
25318
25322
|
}), t]
|
|
25319
25323
|
})));
|
|
25320
|
-
|
|
25321
|
-
var
|
|
25324
|
+
AV.displayName = "WidgetSection";
|
|
25325
|
+
var jV = Cn(Rn("WidgetSection", AV)), MV = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
|
|
25322
25326
|
let i = wn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
|
|
25323
25327
|
a,
|
|
25324
25328
|
t,
|
|
@@ -25332,9 +25336,9 @@ var kV = Cn(Rn("WidgetSection", OV)), AV = ({ identifier: e, allowedRoutes: t, d
|
|
|
25332
25336
|
n
|
|
25333
25337
|
]);
|
|
25334
25338
|
return o ? r : (i && console.error(s), null);
|
|
25335
|
-
},
|
|
25339
|
+
}, NV = Cn(Fn({
|
|
25336
25340
|
name: "ScrollArea",
|
|
25337
25341
|
type: "layout"
|
|
25338
25342
|
}, Io));
|
|
25339
25343
|
//#endregion
|
|
25340
|
-
export {
|
|
25344
|
+
export { AB as AGENTIC_HOME_SPEC_VERSION, p as AUTO_PER_PAGE_MAX, Wt as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Sp as ActivityItemList, xp as ActivityItemListSkeleton, Xl as AiPromotionChat, Zl as AiPromotionChatProvider, Cy as ApplicationFrame, Lt as AreaChart, SN as AreaChartWidget, cN as AutoGrid, Mo as Badge, Je as BarChart, CN as BarChartWidget, bp as BaseActivityItemList, it as BaseBanner, Op as BaseCelebration, Gp as BaseCommunityPost, Li as BaseTabs, ni as BreadcrumbSelect, Wy as Breadcrumbs, Bp as CalendarEvent, RN as CalendarEventList, n as CardSelectableContainer, M as Carousel, et as CategoryBarChart, $N as CategoryBarSection, Ap as Celebration, kp as CelebrationSkeleton, FN as ChartWidgetEmptyState, Qo as Chip, OP as ClockInControls, Nt as CoachmarkProvider, Ct as ComboChart, qp as CommunityPost, nm as CommunityPostCard, Kp as CommunityPostSkeleton, Lx as CompanySelector, hn as Counter, RF as DEFAULT_EXPECTED_ITEMS_COUNT, TV as Dashboard, Fy as DaytimePage, Ai as DetailsItem, ea as DetailsItemsList, zt as Dialog, ji as Dropdown, jF as EVENT_LIST_GAP, Hf as EntitySelect, yt as F0ActionBar, EB as F0AgenticHome, OB as F0AgenticHomeBlock, fe as F0AiBanner, ku as F0AiCallout, wo as F0AvatarModule, $s as F0ButtonToggle, Lu as F0Callout, qr as F0CardHorizontal, qr as F0CardRow, Hd as F0CarouselDialog, UM as F0Chat, ET as F0ChatHistoryLimitCard, Bc as F0ChatProvider, Tw as F0CommandPaletteProvider, sm as F0CommunityPostsCarousel, Yu as F0Confetti, XM as F0ENPSButton, ou as F0EmojiPicker, Ca as F0FileItem, Me as F0FormEditableTable, Ue as F0LocationInput, Mc as F0Map, Tc as F0MapControls, pc as F0MapList, fc as F0MapSidebar, Ec as F0MapSidebarToggle, kc as F0MapSkeleton, ry as F0Meeting, _d as F0MeetingCard, km as F0MeetingProvider, Bv as F0MeetingRoom, iy as F0MeetingSlot, ny as F0MeetingSurface, qt as F0NotesTextEditor, We as F0NotesTextEditorSkeleton, m as F0NumberInput, _ as F0NumberInputInline, lt as F0PhoneInput, $S as F0PrimarySidebar, Xs as F0ProgressSeries, Sd as F0PulseDot, zd as F0Resizable, ze as F0ResourceHeader, ze as ResourceHeader, Va as F0RichTextDisplay, ut as F0RichTextEditor, Is as F0SearchInput, nC as F0SecondarySidebar, Wd as F0SegmentedBar, Ze as F0SegmentedControl, tf as F0SwipeDeck, Ot as F0TableOfContent, up as F0TemplateTextInput, Ht as F0TextAreaInput, d as F0TextAreaInputInline, Ka as F0TextInput, he as F0TextInputInline, mf as F0Timeline, ff as F0VersionHistory, wT as F0_CHAT_HEADER_TITLE_SELECTOR, Os as F1SearchBox, re as FILE_TYPES, sr as FileItem, jp as HighlightBanner, nF as HomeSlotItem, tF as HomeSlotItems, HN as IndicatorsList, Ir as Input, He as Item, st as ItemSectionHeader, jw as LATEST, _F as LIST_COMPACT_AFTER, kF as LIST_MORE_BUTTON_CLASS, ht as LineChart, wN as LineChartWidget, dy as MeetingNotes, ay as MeetingPanelContent, sy as MeetingRoomChat, Rv as MeetingSidePanel, lg as MeetingSurfaceProvider, uy as MeetingTranscript, tS as Menu, lo as MobileDropdown, oL as NewHomeLayout, Gt as NotesTextEditor, R as NotesTextEditorSkeleton, ae as NumberInput, gb as OmniButton, gC as OneApprovalHistory, Es as OneCalendar, xs as OneCalendarInternal, xt as OneDataCollection, l as OneDateNavigator, S as OneEmptyState, fm as OneListItem, dm as OneListItemSkeleton, dt as OnePagination, hm as OnePersonListItem, MV as OneRestrictComponent, vb as Page, fb as PageHeader, Gy as PageHeaderNavigationContext, Ky as PageHeaderNavigationProvider, sa as PageNavigation, at as PieChart, TN as PieChartWidget, T as PrivateBox, rt as ProgressBarChart, kB as RECOMMENDED_AGENTIC_HOME_RULES, yc as RECOMMENDED_MAX_MARKERS, Be as RadarChart, Pp as Reactions, Aa as RichTextDisplay, ee as RichTextEditor, DF as SLOT_ROW_BLEED, zF as SLOT_SKELETON_ITEM_TESTID, NV as ScrollArea, eC as SearchBar, i as SectionHeader, Ws as Select, Zt as Shortcut, aC as Sidebar, tx as SidebarChatBlankState, lx as SidebarChatItem, rx as SidebarChatItemSkeleton, yx as SidebarChatList, ax as SidebarChatListSkeleton, Ob as SidebarChatProvider, zb as SidebarCollapsibleSection, Ux as SidebarFooter, Gx as SidebarHeader, iS as SidebarPanelHeader, $b as SidebarTabPanel, qb as SidebarTabPanelSearch, cC as SidebarTabs, Hx as SidebarUserMenu, uI as SlotWidget, lI as SlotWidgetContent, ps as Spinner, sN as Split, oN as Stack, DN as SummariesWidget, Vs as Switch, Ra as Tabs, to as TabsSkeleton, MP as TasksList, ve as Textarea, _o as ToggleGroup, zi as ToggleGroupItem, _n as Tooltip, yn as TooltipGroup, QN as TwoColumnsList, se as UPLOAD_INPUT_ID, Bt as VerticalBarChart, EN as VerticalBarChartWidget, gf as VirtualList, Cs as WeekStartDay, co as Weekdays, O as Widget, WN as WidgetAvatarsListItem, zB as WidgetCatalog, kV as WidgetEmptyState, BN as WidgetHighlightButton, YN as WidgetInboxList, KN as WidgetInboxListItem, jV as WidgetSection, XN as WidgetSimpleList, JN as WidgetSimpleListItem, DV as WidgetStrip, kt as actionBarStatuses, su as aiCalloutStatuses, yd as attendeesDisplays, mh as buildTiles, Ae as buttonToggleColors, Le as buttonToggleSizes, ue as buttonToggleVariants, Rp as calendarEventVariants, Qs as chipVariants, jl as coachmarks, iw as commandActionRisks, tm as communityPostCardVariants, Ru as confettiPalette, W_ as createMeetingSignalStore, Oc as defaultMapStyle, JF as defaultSlotRenderers, qF as defaultSlotSkeleton, Il as defineStepByStepCoachmarkGuidance, Ke as downloadAsCSV, wC as downloadAsExcel, Ew as f0ChatSenderColors, Ql as f0EmojiPickerSizes, ya as f0FileItemSizes, dc as f0MapMarkerVariants, jc as f0MapStyles, Ch as f0MeetingConnectionQualities, Dh as f0MeetingCoreActionIds, xh as f0MeetingDisconnectReasons, Sh as f0MeetingPermissions, yh as f0MeetingPresences, bh as f0MeetingStatuses, wh as f0MeetingSurfaceDestinations, Th as f0MeetingSurfaceModes, vh as f0MeetingTrackKinds, Tl as f0ProgressSeriesColors, wl as f0ProgressSeriesSizes, Eh as f0WindowCorners, xF as fromParams, Ye as generateCSVContent, be as getAutoPerPageMinHeight, Ys as getGranularityDefinition, Ts as getGranularityDefinitions, ec as getGranularitySimpleDefinition, wc as googleMapStyles, _c as googlePinlessMapStyles, Ks as granularityDefinitions, yF as homeSlot, Xa as isPossiblePhoneValue, Aw as isPost, Dw as isSystemMessage, kw as isUserMessage, fa as isValidPhoneValue, P_ as layoutGrid, g as listIconColors, AF as listMoreButtonClass, bF as listSlot, qf as locationInputSizes, Jf as locationParts, vd as meetingStates, Do as modules, Gh as nearestCorner, cm as oneListItemRowClassName, Yf as phoneInputSizes, Wh as placementFromRect, Pe as predefinedPresets, Cd as pulseDotVariants, TF as railActionTones, Us as rangeSeparator, L_ as reorderForSpeakers, wd as resizableDirections, S_ as resolveAutoFocus, Bs as resolveGranularityDefinition, Uh as resolvePlacement, gF as resolveSlotRenderer, SF as resolveWidgetHeader, vC as seedFromStorage, D as selectSizes, Se as selectVariants, Kh as settlePlacement, OF as slotRowBleed, N_ as solveGrid, R_ as solveSpotlight, cf as swipeDirections, _h as tileAspectRatio, fh as tileKey, Ul as useAiPromotionChat, Cw as useCommandPalette, Cp as useCompactOnScroll, qu as useConfetti, ne as useDataCollectionData, yC as useDataCollectionItemNavigation, me as useDataCollectionSource, Mt as useExportAction, el as useF0Chat, jm as useF0Meeting, Nm as useF0MeetingRoster, Mm as useF0MeetingStable, Am as useHasF0Meeting, o as useInfiniteScrollPagination, eF as useIsBulkChange, J_ as useMeetingSignal, Y_ as useMeetingSpeakers, ug as useMeetingSurface, dg as useMeetingSurfaceOptional, Jy as usePageHeaderItemNavigation, qy as usePageHeaderNavigation, Ei as useSidePanel, uc as useSidebar, Mb as useSidebarChatActions, jb as useSidebarChats, sf as useSwipeDeck, Im as useTrackBinding, Ce as useWidgetIsWide, fy as viewportRect, EF as widgetChrome, wF as widgetParamsAreComplete, CF as widgetTitle };
|