@factorialco/f0-react 12.16.0 → 12.17.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/component-status.js +1 -1
- package/dist/experimental.d.ts +35 -5
- package/dist/experimental.js +1197 -997
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $ as t, $n as n, $t as r, Ar as i, At as a, B as o, Br as s, Bt as c, C as l, Cn as u, Cr as d, Ct as f, Dn as p, Dr as m, Dt as h, En as g, Er as _, Et as v, F as y, Fr as b, Ft as x, G as S, Gr as C, H as w, Hn as T, Hr as E, I as D, Ir as O, It as k, J as A, Jn as j, Jr as M, K as N, Kn as P, Kr as F, Kt as I, L
|
|
2
|
+
import { $ as t, $n as n, $t as r, Ar as i, At as a, B as o, Br as s, Bt as c, C as l, Cn as u, Cr as d, Ct as f, Dn as p, Dr as m, Dt as h, En as g, Er as _, Et as v, F as y, Fr as b, Ft as x, G as S, Gr as C, H as w, Hn as T, Hr as E, I as D, Ir as O, It as k, J as A, Jn as j, Jr as M, K as N, Kn as P, Kr as F, Kt as I, L, Lr as ee, M as te, Mr as ne, Mt as re, N as ie, Nr as R, On as ae, Or as oe, Ot as se, P as ce, Pr as le, Q as ue, Qn as de, Qr as fe, R as pe, Rt as me, S as he, Sn as ge, Sr as _e, T as ve, Tn as ye, Tr as be, Tt as xe, U as Se, Un as Ce, V as we, Vn as Te, Vr as Ee, W as De, Wn as Oe, Wr as ke, X as Ae, Xn as je, Xr as Me, Xt as Ne, Y as Pe, Yn as Fe, Yr as Ie, Z as Le, Zn as Re, Zr as ze, _ as Be, _r as Ve, ai as He, an as Ue, at as We, b as Ge, br as Ke, ci as qe, cr as Je, ct as Ye, d as Xe, di as Ze, dr as Qe, dt as $e, ei as et, er as tt, et as nt, fi as rt, fn as it, fr as at, ft as ot, g as st, gr as ct, h as lt, hr as ut, ii as dt, in as ft, it as pt, j as mt, jr as ht, jt as gt, kr as _t, li as vt, lr as yt, lt as bt, m as xt, mt as St, n as Ct, ni as wt, nt as Tt, oi as Et, or as Dt, ot as Ot, p as kt, pr as At, pt as jt, q as Mt, qr as Nt, r as Pt, ri as Ft, rn as It, rt as Lt, s as Rt, si as zt, sr as Bt, st as Vt, t as Ht, ti as Ut, tr as Wt, tt as Gt, ur as Kt, ut as qt, v as Jt, vr as Yt, w as Xt, wn as Zt, wr as Qt, wt as $t, x as en, xr as tn, y as nn, yr as rn, z as an, zr as on } from "./CoachmarkProvider-Bui0J43V.js";
|
|
3
3
|
import { a as sn, c as cn, i as ln, r as z, u as un } from "./i18n-provider-Bdgo-LeP.js";
|
|
4
4
|
import { n as dn, t as B } from "./skeleton-AC0Fb8zj.js";
|
|
5
5
|
import { L as V, R as fn, a as pn, i as mn, o as hn, r as gn, t as _n } from "./tooltip-BX4dSfeL.js";
|
|
@@ -1324,7 +1324,7 @@ var Dd = sn(dn("F0Confetti", Ed)), Od = (e, t) => {
|
|
|
1324
1324
|
}), F = e === "finished" && u && /* @__PURE__ */ Q(Kd, { summary: u }), I = j && /* @__PURE__ */ Q(Gd, {
|
|
1325
1325
|
state: e,
|
|
1326
1326
|
countdownLabel: x
|
|
1327
|
-
}),
|
|
1327
|
+
}), L = M && /* @__PURE__ */ $(Z, { children: [f?.map((e) => /* @__PURE__ */ Q(U, {
|
|
1328
1328
|
label: e.label,
|
|
1329
1329
|
icon: e.icon,
|
|
1330
1330
|
variant: "outline",
|
|
@@ -1351,7 +1351,7 @@ var Dd = sn(dn("F0Confetti", Ed)), Od = (e, t) => {
|
|
|
1351
1351
|
]
|
|
1352
1352
|
}), M ? /* @__PURE__ */ Q("div", {
|
|
1353
1353
|
className: "flex shrink-0 flex-row items-center gap-2",
|
|
1354
|
-
children:
|
|
1354
|
+
children: L
|
|
1355
1355
|
}) : null]
|
|
1356
1356
|
}) : /* @__PURE__ */ $(Z, { children: [
|
|
1357
1357
|
/* @__PURE__ */ Q("div", {
|
|
@@ -1367,7 +1367,7 @@ var Dd = sn(dn("F0Confetti", Ed)), Od = (e, t) => {
|
|
|
1367
1367
|
children: I
|
|
1368
1368
|
}), M ? /* @__PURE__ */ Q("div", {
|
|
1369
1369
|
className: "flex flex-row items-center gap-2",
|
|
1370
|
-
children:
|
|
1370
|
+
children: L
|
|
1371
1371
|
}) : null]
|
|
1372
1372
|
}) : null
|
|
1373
1373
|
] })
|
|
@@ -1889,7 +1889,7 @@ var Cf = sn(dn("F0SegmentedBar", Sf)), wf = ({ labels: e, canUndo: t, undoLabel:
|
|
|
1889
1889
|
if (m === void 0) return;
|
|
1890
1890
|
let t = o?.(m);
|
|
1891
1891
|
P(t === void 0 ? F[e] : `${F[e]} ${t}`), N(), g(e);
|
|
1892
|
-
},
|
|
1892
|
+
}, L = () => {
|
|
1893
1893
|
v && (P(f.swipeDeck.undone), N(), _());
|
|
1894
1894
|
};
|
|
1895
1895
|
return /* @__PURE__ */ Q(ln, {
|
|
@@ -1901,7 +1901,7 @@ var Cf = sn(dn("F0SegmentedBar", Sf)), wf = ({ labels: e, canUndo: t, undoLabel:
|
|
|
1901
1901
|
tabIndex: -1,
|
|
1902
1902
|
className: "flex w-full flex-col items-center gap-6 outline-none",
|
|
1903
1903
|
onKeyDown: (e) => {
|
|
1904
|
-
e.target instanceof Element && e.target.closest("[data-swipe-ignore]") || (e.key === "ArrowLeft" ? (e.preventDefault(), I("left")) : e.key === "ArrowRight" ? (e.preventDefault(), I("right")) : (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(),
|
|
1904
|
+
e.target instanceof Element && e.target.closest("[data-swipe-ignore]") || (e.key === "ArrowLeft" ? (e.preventDefault(), I("left")) : e.key === "ArrowRight" ? (e.preventDefault(), I("right")) : (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), L()));
|
|
1905
1905
|
},
|
|
1906
1906
|
children: [
|
|
1907
1907
|
i,
|
|
@@ -1953,7 +1953,7 @@ var Cf = sn(dn("F0SegmentedBar", Sf)), wf = ({ labels: e, canUndo: t, undoLabel:
|
|
|
1953
1953
|
undoLabel: f.swipeDeck.undo,
|
|
1954
1954
|
hint: f.swipeDeck.hint,
|
|
1955
1955
|
onDecide: I,
|
|
1956
|
-
onUndo:
|
|
1956
|
+
onUndo: L
|
|
1957
1957
|
}),
|
|
1958
1958
|
/* @__PURE__ */ Q("span", {
|
|
1959
1959
|
"aria-live": "polite",
|
|
@@ -2683,7 +2683,7 @@ var ep = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2683
2683
|
D,
|
|
2684
2684
|
S,
|
|
2685
2685
|
C
|
|
2686
|
-
]), [
|
|
2686
|
+
]), [L, ee] = J(() => {
|
|
2687
2687
|
if (!t.length) return [!1, !1];
|
|
2688
2688
|
let n = 0, r = 0;
|
|
2689
2689
|
if (!e) n = t.length, r = t.reduce((e, { id: t }) => e + +!!M.has(t), 0);
|
|
@@ -2699,7 +2699,7 @@ var ep = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2699
2699
|
t,
|
|
2700
2700
|
M,
|
|
2701
2701
|
e
|
|
2702
|
-
]),
|
|
2702
|
+
]), te = F.length, ne = !w && (g || _), re = x && x.length > 0, ie = !T && (!w && ne || re);
|
|
2703
2703
|
return /* @__PURE__ */ $("div", {
|
|
2704
2704
|
className: V("flex w-full flex-col rounded-l-xl border-0", w || T ? "rounded-r-xl" : "", b),
|
|
2705
2705
|
children: [
|
|
@@ -2728,7 +2728,7 @@ var ep = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2728
2728
|
}) : null]
|
|
2729
2729
|
}),
|
|
2730
2730
|
/* @__PURE__ */ $("section", {
|
|
2731
|
-
className: V("flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background",
|
|
2731
|
+
className: V("flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background", ie ? "" : "rounded-b-xl border-r-0"),
|
|
2732
2732
|
children: [
|
|
2733
2733
|
T ? /* @__PURE__ */ Q("div", {
|
|
2734
2734
|
className: "flex h-full w-full flex-row items-center justify-center",
|
|
@@ -2749,7 +2749,7 @@ var ep = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2749
2749
|
className: "h-full",
|
|
2750
2750
|
children: e ? /* @__PURE__ */ Q(Jf, {
|
|
2751
2751
|
height: ip,
|
|
2752
|
-
itemCount:
|
|
2752
|
+
itemCount: te + +!!S,
|
|
2753
2753
|
itemSize: (e) => {
|
|
2754
2754
|
if (e === 0 && S) return ap;
|
|
2755
2755
|
let t = S ? e - 1 : e;
|
|
@@ -2772,8 +2772,8 @@ var ep = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2772
2772
|
onClear: l,
|
|
2773
2773
|
singleSelector: w,
|
|
2774
2774
|
totalFilteredEntities: k,
|
|
2775
|
-
allVisibleSelected:
|
|
2776
|
-
anyVisibleSelected:
|
|
2775
|
+
allVisibleSelected: L,
|
|
2776
|
+
anyVisibleSelected: ee,
|
|
2777
2777
|
selectAllLabel: g,
|
|
2778
2778
|
clearLabel: _,
|
|
2779
2779
|
disabled: E,
|
|
@@ -4082,9 +4082,9 @@ var hm = Xi(mm, () => /* @__PURE__ */ $("div", {
|
|
|
4082
4082
|
})
|
|
4083
4083
|
});
|
|
4084
4084
|
}, wm = ({ id: e, author: t, group: n, createdAt: r, title: i, description: a, onClick: o, mediaUrl: s, event: c, counters: l, reactions: u, inLabel: d, comment: f, actions: p, dropdownItems: m, noReactionsButton: h = !1, descriptionExpandable: g = !1, noDescriptionClamp: _ = !1, hideTitle: v = !1, hideGroup: y = !1, pinned: b = !1, pinnedLabel: x, relativeDate: S = !1, noVideoPreload: C = !1, reserveCountersLine: w = !1 }) => {
|
|
4085
|
-
let T = Wl(), E = Wl(), D = Hs(), O = Y(null), [k, A] = X(null), [j, M] = X(!1), N = [l.views, l.comments].filter(Boolean).join(" · "), P = g && k?.id === e && k.description === a, F = !P && !_, I = S ? yi(r, D) : _r(r, { locale: D }),
|
|
4085
|
+
let T = Wl(), E = Wl(), D = Hs(), O = Y(null), [k, A] = X(null), [j, M] = X(!1), N = [l.views, l.comments].filter(Boolean).join(" · "), P = g && k?.id === e && k.description === a, F = !P && !_, I = S ? yi(r, D) : _r(r, { locale: D }), L = !!o, ee = o ? () => o(e) : void 0, te = (e) => {
|
|
4086
4086
|
e.stopPropagation();
|
|
4087
|
-
},
|
|
4087
|
+
}, ne = t ? `${t.firstName} ${t.lastName}` : void 0, re = (t) => {
|
|
4088
4088
|
t.preventDefault(), t.stopPropagation(), a && A({
|
|
4089
4089
|
id: e,
|
|
4090
4090
|
description: a
|
|
@@ -4111,8 +4111,8 @@ var hm = Xi(mm, () => /* @__PURE__ */ $("div", {
|
|
|
4111
4111
|
P,
|
|
4112
4112
|
a
|
|
4113
4113
|
]), /* @__PURE__ */ $("div", {
|
|
4114
|
-
className: V("@container flex w-full flex-col gap-3 rounded-xl border border-solid border-transparent p-4",
|
|
4115
|
-
onClick:
|
|
4114
|
+
className: V("@container flex w-full flex-col gap-3 rounded-xl border border-solid border-transparent p-4", L && "cursor-pointer hover:bg-f1-background-hover focus:border-f1-border-secondary focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold"),
|
|
4115
|
+
onClick: ee,
|
|
4116
4116
|
id: `community-post-${e}`,
|
|
4117
4117
|
children: [
|
|
4118
4118
|
/* @__PURE__ */ $("div", {
|
|
@@ -4120,7 +4120,7 @@ var hm = Xi(mm, () => /* @__PURE__ */ $("div", {
|
|
|
4120
4120
|
children: [
|
|
4121
4121
|
t ? /* @__PURE__ */ Q(Ri, {
|
|
4122
4122
|
href: t.url || "#",
|
|
4123
|
-
title:
|
|
4123
|
+
title: ne,
|
|
4124
4124
|
className: "flex items-center leading-[0]",
|
|
4125
4125
|
stopPropagation: !0,
|
|
4126
4126
|
children: /* @__PURE__ */ Q(ns, {
|
|
@@ -4135,10 +4135,10 @@ var hm = Xi(mm, () => /* @__PURE__ */ $("div", {
|
|
|
4135
4135
|
className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1",
|
|
4136
4136
|
children: [t ? /* @__PURE__ */ Q(Ri, {
|
|
4137
4137
|
href: t.url,
|
|
4138
|
-
title:
|
|
4138
|
+
title: ne,
|
|
4139
4139
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
4140
4140
|
stopPropagation: !0,
|
|
4141
|
-
children:
|
|
4141
|
+
children: ne
|
|
4142
4142
|
}) : null, y ? null : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
4143
4143
|
className: V("text-f1-foreground-secondary", !t && "capitalize"),
|
|
4144
4144
|
children: d
|
|
@@ -4208,7 +4208,7 @@ var hm = Xi(mm, () => /* @__PURE__ */ $("div", {
|
|
|
4208
4208
|
describedBy: T,
|
|
4209
4209
|
controls: E,
|
|
4210
4210
|
expanded: P,
|
|
4211
|
-
onClick:
|
|
4211
|
+
onClick: re
|
|
4212
4212
|
}) : null] }) : null]
|
|
4213
4213
|
}),
|
|
4214
4214
|
s && !c ? /* @__PURE__ */ Q("div", {
|
|
@@ -4217,7 +4217,7 @@ var hm = Xi(mm, () => /* @__PURE__ */ $("div", {
|
|
|
4217
4217
|
controls: !0,
|
|
4218
4218
|
preload: C ? "none" : void 0,
|
|
4219
4219
|
className: "aspect-video h-full w-full bg-f1-background-secondary object-cover",
|
|
4220
|
-
onClick:
|
|
4220
|
+
onClick: te,
|
|
4221
4221
|
children: /* @__PURE__ */ Q("source", { src: s })
|
|
4222
4222
|
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("img", {
|
|
4223
4223
|
src: s,
|
|
@@ -5488,20 +5488,20 @@ var Oh = xh.categories.flatMap((e) => Sh.includes(e.id) ? [{
|
|
|
5488
5488
|
...n,
|
|
5489
5489
|
[t]: e
|
|
5490
5490
|
});
|
|
5491
|
-
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I,
|
|
5491
|
+
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, L] = va({
|
|
5492
5492
|
key: Cg,
|
|
5493
5493
|
fallback: 420,
|
|
5494
5494
|
validate: (e) => typeof e == "number" && Number.isFinite(e) && e >= 320,
|
|
5495
5495
|
debounceMs: 150
|
|
5496
|
-
}),
|
|
5496
|
+
}), ee = G(() => L(420), [L]), [te, ne] = va({
|
|
5497
5497
|
key: Tg,
|
|
5498
5498
|
fallback: Eg,
|
|
5499
5499
|
validate: Ng,
|
|
5500
5500
|
debounceMs: 150
|
|
5501
|
-
}),
|
|
5501
|
+
}), re = G((e) => ne(Mg(e)), [ne]), ie = G(() => ne(Eg), [ne]), [R, ae] = X({
|
|
5502
5502
|
message: "",
|
|
5503
5503
|
priority: "normal"
|
|
5504
|
-
}), oe =
|
|
5504
|
+
}), oe = R.message, se = R.priority, ce = y_(), le = n ? ce.support : "none", ue = ce.pipWindow !== null, de = Y(/* @__PURE__ */ new Map()), fe = G((e, t) => {
|
|
5505
5505
|
t ? de.current.set(e, t) : de.current.delete(e);
|
|
5506
5506
|
}, []), pe = ph(), me = Y({
|
|
5507
5507
|
focusIntent: g,
|
|
@@ -5601,7 +5601,7 @@ var Oh = xh.categories.flatMap((e) => Sh.includes(e.id) ? [{
|
|
|
5601
5601
|
we,
|
|
5602
5602
|
Ie
|
|
5603
5603
|
]), ze = Ie !== null, Be = G((e) => Te(e, { keepSize: ze }), [Te, ze]), Ve = G((e, { priority: t = "normal" } = {}) => {
|
|
5604
|
-
|
|
5604
|
+
ae({
|
|
5605
5605
|
message: e,
|
|
5606
5606
|
priority: t
|
|
5607
5607
|
});
|
|
@@ -5648,11 +5648,11 @@ var Oh = xh.categories.flatMap((e) => Sh.includes(e.id) ? [{
|
|
|
5648
5648
|
activeTabId: F,
|
|
5649
5649
|
setActiveTabId: N,
|
|
5650
5650
|
sidePanelWidth: I,
|
|
5651
|
-
setSidePanelWidth:
|
|
5652
|
-
resetSidePanelWidth:
|
|
5653
|
-
splitRatio:
|
|
5654
|
-
setSplitRatio:
|
|
5655
|
-
resetSplitRatio:
|
|
5651
|
+
setSidePanelWidth: L,
|
|
5652
|
+
resetSidePanelWidth: ee,
|
|
5653
|
+
splitRatio: te,
|
|
5654
|
+
setSplitRatio: re,
|
|
5655
|
+
resetSplitRatio: ie,
|
|
5656
5656
|
reactionFlights: E,
|
|
5657
5657
|
announce: Ve,
|
|
5658
5658
|
liveMessage: oe,
|
|
@@ -5688,11 +5688,11 @@ var Oh = xh.categories.flatMap((e) => Sh.includes(e.id) ? [{
|
|
|
5688
5688
|
F,
|
|
5689
5689
|
N,
|
|
5690
5690
|
I,
|
|
5691
|
+
L,
|
|
5691
5692
|
ee,
|
|
5692
5693
|
te,
|
|
5693
|
-
|
|
5694
|
+
re,
|
|
5694
5695
|
ie,
|
|
5695
|
-
ae,
|
|
5696
5696
|
E,
|
|
5697
5697
|
Ve,
|
|
5698
5698
|
oe,
|
|
@@ -9937,9 +9937,9 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
9937
9937
|
let { sidebarState: s, toggleSidebar: c, isSmallScreen: l, setForceFloat: u, hasPrimarySidebar: d } = nl(), f = pl(), p = f?.primarySidebarWidth ?? 0, m = Ln(), { hasAvailableView: h, open: g, layout: _, effectiveWidth: v, widthBounds: y, panelOverlays: b, setFrameWidth: x, resizable: S, side: C, activeContent: w, contentSide: T, restoringViewId: E, isResizing: D } = Ba(), { canvasContent: O, canvasEntities: k, closeCanvas: A, dismissCanvas: j, isCanvasCovered: M } = mo(), [N, P] = X(!1), F = J(() => ({
|
|
9938
9938
|
file: ya,
|
|
9939
9939
|
...k
|
|
9940
|
-
}), [k]), I = _ === "fullscreen",
|
|
9940
|
+
}), [k]), I = _ === "fullscreen", L = O !== null && !M, { open: ee } = xu(), te = S ? v ?? xo : Math.min(xo, y?.max ?? xo), ne = O?.coversChat === !0 ? 0 : te, re = C === "left", ie = T !== C, R = !!(w || E), ae = Y(R);
|
|
9941
9941
|
K(function() {
|
|
9942
|
-
|
|
9942
|
+
ae.current = R;
|
|
9943
9943
|
});
|
|
9944
9944
|
let oe = Y(I), se = !I && oe.current, [ce, le] = X(!1);
|
|
9945
9945
|
K(function() {
|
|
@@ -9953,9 +9953,9 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
9953
9953
|
g,
|
|
9954
9954
|
m
|
|
9955
9955
|
]);
|
|
9956
|
-
let ue = I || ce || se, de = Y(g), fe = Y(!1), pe = Y(
|
|
9957
|
-
de.current !== g && (fe.current = !g && (I || oe.current), pe.current =
|
|
9958
|
-
let me = !g && fe.current && (I || ce), he = me ? pe.current :
|
|
9956
|
+
let ue = I || ce || se, de = Y(g), fe = Y(!1), pe = Y(R);
|
|
9957
|
+
de.current !== g && (fe.current = !g && (I || oe.current), pe.current = ae.current, de.current = g);
|
|
9958
|
+
let me = !g && fe.current && (I || ce), he = me ? pe.current : R, ge = (he ? T : C) === "left", _e = g && (!ie || !he), ve = g && ie && he, ye = g && (!!e?.enabled || R), be = Y(_e), xe = Y(ve);
|
|
9959
9959
|
K(function() {
|
|
9960
9960
|
be.current = _e, xe.current = ve;
|
|
9961
9961
|
});
|
|
@@ -9985,16 +9985,16 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
9985
9985
|
De
|
|
9986
9986
|
]);
|
|
9987
9987
|
let Me = !!D || Ae || !!f?.isInstant, Ne = $i(Me, m), Pe = (e, t) => oa(Me, ue && e && t, m), Fe = b ?? !1, Ie = m ? "instant" : Fe ? "sheet" : O?.coversChat === !0 ? "fade" : ue ? "under" : "seam", Le = m ? "instant" : _e ? Fe ? "sheet" : I ? "under" : "seam" : g ? "instant" : "panel", Re = g && I, ze = ye && !Fe, Be = {
|
|
9988
|
-
left: ze && ge ?
|
|
9989
|
-
right: ze && !ge ?
|
|
9988
|
+
left: ze && ge ? te : 0,
|
|
9989
|
+
right: ze && !ge ? te : 0
|
|
9990
9990
|
}, Ve = Y(Be);
|
|
9991
9991
|
Re || (Ve.current = Be);
|
|
9992
9992
|
let He = Re ? Ve.current : Be, Ue = !(Me || ue || me) && !m, We = Ue ? Ga : ao, Ge = ye && (!ge || Ce);
|
|
9993
9993
|
return K(function() {
|
|
9994
|
-
u(Ge ||
|
|
9994
|
+
u(Ge || ee);
|
|
9995
9995
|
}, [
|
|
9996
9996
|
Ge,
|
|
9997
|
-
|
|
9997
|
+
ee,
|
|
9998
9998
|
u
|
|
9999
9999
|
]), pC(Ge, Se), /* @__PURE__ */ Q(Qi.Provider, {
|
|
10000
10000
|
value: !!e?.enabled,
|
|
@@ -10038,7 +10038,7 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
10038
10038
|
"z-10",
|
|
10039
10039
|
"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:z-0 after:shadow after:content-[''] xs:after:bottom-1 xs:after:rounded-xl",
|
|
10040
10040
|
i ? "after:top-[42px]" : "after:top-0 xs:after:top-1",
|
|
10041
|
-
!ye && !
|
|
10041
|
+
!ye && !ee ? "after:right-0 xs:after:right-1" : "after:right-0"
|
|
10042
10042
|
]),
|
|
10043
10043
|
animate: {
|
|
10044
10044
|
paddingRight: He.right,
|
|
@@ -10056,7 +10056,7 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
10056
10056
|
}) : null,
|
|
10057
10057
|
/* @__PURE__ */ Q("main", {
|
|
10058
10058
|
id: "content",
|
|
10059
|
-
className: V("relative z-10 flex h-full max-w-full flex-1 xs:py-1", ue ? "overflow-hidden" : "overflow-x-hidden overflow-y-auto", !ye && !
|
|
10059
|
+
className: V("relative z-10 flex h-full max-w-full flex-1 xs:py-1", ue ? "overflow-hidden" : "overflow-x-hidden overflow-y-auto", !ye && !ee && "xs:pr-1", s === "locked" || d || ge && ye ? "pl-0" : "xs:pl-1", ye && ge && "xs:pr-1"),
|
|
10060
10060
|
children: /* @__PURE__ */ Q("div", {
|
|
10061
10061
|
className: V("flex max-w-full flex-1", ue ? "overflow-hidden" : "overflow-x-hidden overflow-y-auto"),
|
|
10062
10062
|
children: n
|
|
@@ -10070,12 +10070,12 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
10070
10070
|
inset: Fe ? {
|
|
10071
10071
|
left: 0,
|
|
10072
10072
|
right: 0
|
|
10073
|
-
} :
|
|
10074
|
-
left:
|
|
10073
|
+
} : re ? {
|
|
10074
|
+
left: ne,
|
|
10075
10075
|
right: 0
|
|
10076
10076
|
} : {
|
|
10077
10077
|
left: 0,
|
|
10078
|
-
right:
|
|
10078
|
+
right: ne
|
|
10079
10079
|
},
|
|
10080
10080
|
insetTransition: We,
|
|
10081
10081
|
underChat: ue,
|
|
@@ -10089,7 +10089,7 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
10089
10089
|
let t = (e, t, n, r) => /* @__PURE__ */ Q(H.div, {
|
|
10090
10090
|
"data-side-panel-container": "",
|
|
10091
10091
|
"data-side-panel-side": e,
|
|
10092
|
-
className: V("pointer-events-none", "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full", Fe ? "fixed inset-0 z-[30]" : V("absolute top-0 bottom-0", e === "left" ? "left-0" : "right-0", ue ||
|
|
10092
|
+
className: V("pointer-events-none", "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full", Fe ? "fixed inset-0 z-[30]" : V("absolute top-0 bottom-0", e === "left" ? "left-0" : "right-0", ue || L ? "z-20" : "z-0", (s !== "locked" || De) && (e === "left" || I) && "md:pl-1")),
|
|
10093
10093
|
animate: De && t && !Fe && Oe > 0 ? {
|
|
10094
10094
|
width: Oe,
|
|
10095
10095
|
left: e === "left" ? -Ee : "auto"
|
|
@@ -10099,14 +10099,14 @@ function hC({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
10099
10099
|
isFullscreen: I,
|
|
10100
10100
|
isClosingFromFullscreen: me,
|
|
10101
10101
|
isActivePanel: t,
|
|
10102
|
-
reservedWidth:
|
|
10102
|
+
reservedWidth: te
|
|
10103
10103
|
}),
|
|
10104
10104
|
left: e === "left" ? 0 : "auto"
|
|
10105
10105
|
},
|
|
10106
10106
|
transition: Pe(t, n),
|
|
10107
10107
|
children: r
|
|
10108
10108
|
}, `panel-${e}`);
|
|
10109
|
-
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(C, !
|
|
10109
|
+
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(C, !ie || !he, be.current, /* @__PURE__ */ Q(Ur, {})) : null, !e?.enabled || ie ? t(T, he || !e?.enabled, xe.current, /* @__PURE__ */ Q(Ym, {})) : null] });
|
|
10110
10110
|
})() : null
|
|
10111
10111
|
]
|
|
10112
10112
|
}),
|
|
@@ -13540,35 +13540,35 @@ function zE({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
13540
13540
|
u,
|
|
13541
13541
|
t,
|
|
13542
13542
|
P
|
|
13543
|
-
]),
|
|
13543
|
+
]), L = (e) => {
|
|
13544
13544
|
let t = I.indexOf(e);
|
|
13545
13545
|
return t === -1 ? void 0 : t + 1;
|
|
13546
|
-
},
|
|
13546
|
+
}, ee = Y(I), te = J(function() {
|
|
13547
13547
|
return new Set(P.map((e) => e.id));
|
|
13548
|
-
}, [P]),
|
|
13548
|
+
}, [P]), ne = (e) => {
|
|
13549
13549
|
let t = null;
|
|
13550
13550
|
return (n) => {
|
|
13551
13551
|
n ? (t = n, T.current.set(e, n)) : T.current.get(e) === t && T.current.delete(e);
|
|
13552
13552
|
};
|
|
13553
|
-
},
|
|
13553
|
+
}, re = Y(P.map((e) => e.id));
|
|
13554
13554
|
q(function() {
|
|
13555
|
-
|
|
13555
|
+
ee.current = I, re.current = P.map((e) => e.id);
|
|
13556
13556
|
}, [I, P]);
|
|
13557
|
-
let
|
|
13557
|
+
let ie = (e) => {
|
|
13558
13558
|
e !== void 0 && T.current.get(e)?.focus();
|
|
13559
13559
|
};
|
|
13560
13560
|
JT(i, t, n, r);
|
|
13561
|
-
let
|
|
13561
|
+
let R = Y(null);
|
|
13562
13562
|
cE({
|
|
13563
13563
|
enabled: u,
|
|
13564
13564
|
platform: m,
|
|
13565
|
-
shortcutOrderRef:
|
|
13565
|
+
shortcutOrderRef: ee,
|
|
13566
13566
|
tabRefs: T,
|
|
13567
|
-
shortcutPressRef:
|
|
13567
|
+
shortcutPressRef: R,
|
|
13568
13568
|
hasSecondarySidebar: v,
|
|
13569
13569
|
toggleSidebar: h
|
|
13570
13570
|
});
|
|
13571
|
-
let
|
|
13571
|
+
let ae = P[Math.max(0, P.findIndex((e) => e.id === n))]?.id, oe = G(function(e, t) {
|
|
13572
13572
|
e === n ? a ? a() : v && g === "hidden" && h() : (y?.(), b?.(), r(e, { source: t }));
|
|
13573
13573
|
}, [
|
|
13574
13574
|
n,
|
|
@@ -13579,7 +13579,7 @@ function zE({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
13579
13579
|
b,
|
|
13580
13580
|
g,
|
|
13581
13581
|
h
|
|
13582
|
-
]), se = oE(
|
|
13582
|
+
]), se = oE(re, ie), ce = XT(t, LE, w ? 0 : 120);
|
|
13583
13583
|
return /* @__PURE__ */ Q(yT, {
|
|
13584
13584
|
onTooltipShow: d,
|
|
13585
13585
|
onTooltipHide: f,
|
|
@@ -13617,18 +13617,18 @@ function zE({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
13617
13617
|
leaving: r,
|
|
13618
13618
|
reducedMotion: w,
|
|
13619
13619
|
children: /* @__PURE__ */ Q(xE, {
|
|
13620
|
-
shown:
|
|
13620
|
+
shown: te.has(e.id) || r,
|
|
13621
13621
|
morphing: M && !w,
|
|
13622
13622
|
children: /* @__PURE__ */ Q(FE, {
|
|
13623
|
-
ref: r ? void 0 :
|
|
13623
|
+
ref: r ? void 0 : ne(e.id),
|
|
13624
13624
|
tab: e,
|
|
13625
13625
|
isActive: e.id === n,
|
|
13626
|
-
isFocusable: !r && e.id ===
|
|
13627
|
-
onSelect: () => oe(e.id,
|
|
13626
|
+
isFocusable: !r && e.id === ae,
|
|
13627
|
+
onSelect: () => oe(e.id, R.current === e.id ? "shortcut" : "click"),
|
|
13628
13628
|
onKeyDown: (t) => se(t, e.id),
|
|
13629
13629
|
flyout: e.flyout,
|
|
13630
|
-
shortcut:
|
|
13631
|
-
showShortcut: C &&
|
|
13630
|
+
shortcut: L(e.id) === void 0 ? void 0 : ["option", String(L(e.id))],
|
|
13631
|
+
showShortcut: C && L(e.id) !== void 0
|
|
13632
13632
|
})
|
|
13633
13633
|
})
|
|
13634
13634
|
}, t))
|
|
@@ -14174,59 +14174,59 @@ function oD(e) {
|
|
|
14174
14174
|
activeItemId: r,
|
|
14175
14175
|
defaultActiveItemId: i,
|
|
14176
14176
|
onActiveItemChange: a
|
|
14177
|
-
}), F = typeof N.activeItemId == "string" || typeof N.activeItemId == "number" ? N.activeItemId : null, I = N.activeItem !== null,
|
|
14177
|
+
}), F = typeof N.activeItemId == "string" || typeof N.activeItemId == "number" ? N.activeItemId : null, I = N.activeItem !== null, L = I && N.nextItem === null && N.hasNext, ee = I && N.previousItem === null && N.hasPrevious, te = F !== null && (!I || L || ee), ne = [...h.currentSortings ? [{
|
|
14178
14178
|
field: h.currentSortings.field,
|
|
14179
14179
|
order: h.currentSortings.order
|
|
14180
14180
|
}] : [], ...h.currentGrouping ? [{
|
|
14181
14181
|
field: h.currentGrouping.field,
|
|
14182
14182
|
order: h.currentGrouping.order ?? "asc"
|
|
14183
|
-
}] : []], { neighbors:
|
|
14183
|
+
}] : []], { neighbors: re, isSupported: ie } = P({
|
|
14184
14184
|
dataAdapter: h.dataAdapter,
|
|
14185
14185
|
id: F,
|
|
14186
14186
|
filters: h.currentFilters,
|
|
14187
|
-
sortings:
|
|
14187
|
+
sortings: ne,
|
|
14188
14188
|
search: h.debouncedCurrentSearch,
|
|
14189
|
-
enabled: l && v && !j && !A &&
|
|
14189
|
+
enabled: l && v && !j && !A && te,
|
|
14190
14190
|
fetchParamsProvider: (e) => ({
|
|
14191
14191
|
...e,
|
|
14192
14192
|
navigationFilters: h.currentNavigationFilters
|
|
14193
14193
|
})
|
|
14194
|
-
}),
|
|
14195
|
-
if (!
|
|
14196
|
-
let e = N.previousItem ??
|
|
14194
|
+
}), R = J(() => o || (h.idProvider ? (e, t) => h.idProvider(e, t) : Ce), [o, h.idProvider]), ae = J(() => {
|
|
14195
|
+
if (!te || re === null) return N;
|
|
14196
|
+
let e = N.previousItem ?? re.previous, t = N.nextItem ?? re.next, n = (e) => e && M ? M(e) ?? null : null;
|
|
14197
14197
|
return {
|
|
14198
14198
|
...N,
|
|
14199
14199
|
previousItem: e,
|
|
14200
14200
|
nextItem: t,
|
|
14201
14201
|
previousItemUrl: N.previousItemUrl ?? n(e),
|
|
14202
14202
|
nextItemUrl: N.nextItemUrl ?? n(t),
|
|
14203
|
-
absoluteIndex: N.absoluteIndex ?? (
|
|
14204
|
-
totalItems: N.totalItems ??
|
|
14203
|
+
absoluteIndex: N.absoluteIndex ?? (re.position === void 0 ? null : re.position - 1),
|
|
14204
|
+
totalItems: N.totalItems ?? re.total,
|
|
14205
14205
|
hasPrevious: N.hasPrevious || e !== null,
|
|
14206
14206
|
hasNext: N.hasNext || t !== null,
|
|
14207
14207
|
goToPrevious: I ? N.goToPrevious : () => {
|
|
14208
|
-
|
|
14208
|
+
re.previous && N.setActiveItemId(R(re.previous));
|
|
14209
14209
|
},
|
|
14210
14210
|
goToNext: I ? N.goToNext : () => {
|
|
14211
|
-
|
|
14211
|
+
re.next && N.setActiveItemId(R(re.next));
|
|
14212
14212
|
}
|
|
14213
14213
|
};
|
|
14214
14214
|
}, [
|
|
14215
14215
|
N,
|
|
14216
|
-
|
|
14217
|
-
|
|
14216
|
+
te,
|
|
14217
|
+
re,
|
|
14218
14218
|
I,
|
|
14219
14219
|
M,
|
|
14220
|
-
|
|
14221
|
-
]), oe = FC(
|
|
14220
|
+
R
|
|
14221
|
+
]), oe = FC(ae, {
|
|
14222
14222
|
getItemTitle: c,
|
|
14223
14223
|
mode: f
|
|
14224
|
-
}), se = l && v &&
|
|
14224
|
+
}), se = l && v && ie && te && re === null, ce = Y(null), le = oe ?? (se ? ce.current : null);
|
|
14225
14225
|
return K(() => {
|
|
14226
14226
|
oe !== null && (ce.current = oe);
|
|
14227
14227
|
}, [oe]), {
|
|
14228
|
-
...
|
|
14229
|
-
isNavigating:
|
|
14228
|
+
...ae,
|
|
14229
|
+
isNavigating: ae.isNavigating || se,
|
|
14230
14230
|
isReady: v && !j,
|
|
14231
14231
|
navigation: le,
|
|
14232
14232
|
appliedCollectionState: g?.applied ?? null,
|
|
@@ -15016,34 +15016,34 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15016
15016
|
}, sO = 2, cO = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, maxItemRows: a, reveal: o, onQueryChange: s, assistant: c, labels: l, onNavigate: u }) => {
|
|
15017
15017
|
let d = WD(l), f = r.map((e) => e.provider?.type ?? `items:${e.label}`).join(" "), p = J(() => r.flatMap((e) => e.provider ? [e.provider] : []), [f]), m = Wl(), h = Nn("(max-width: 560px)", { initializeWithValue: !1 }), [g, _] = X(""), [v, y] = X([""]), [b, x] = X(n ? [n] : []), S = b[b.length - 1] ?? null, [C, w] = X({ kind: "browse" }), [T, E] = X(0), [D, O] = X(null), [k, A] = X(""), j = Y(null), M = Y("field"), N = Y(null), [P, F] = X(null), I = G((e) => {
|
|
15018
15018
|
N.current = e, e && F((t) => t === e ? t : e);
|
|
15019
|
-
}, []),
|
|
15019
|
+
}, []), L = Y(null), ee = G(() => t(!1), [t]);
|
|
15020
15020
|
K(() => {
|
|
15021
15021
|
s?.(g);
|
|
15022
15022
|
}, [s, g]);
|
|
15023
|
-
let
|
|
15024
|
-
u(e),
|
|
15025
|
-
}, [
|
|
15026
|
-
c?.onAsk(e, S ?? void 0),
|
|
15023
|
+
let te = G((e) => {
|
|
15024
|
+
u(e), ee();
|
|
15025
|
+
}, [ee, u]), ne = G((e) => {
|
|
15026
|
+
c?.onAsk(e, S ?? void 0), ee();
|
|
15027
15027
|
}, [
|
|
15028
15028
|
c,
|
|
15029
|
-
|
|
15029
|
+
ee,
|
|
15030
15030
|
S
|
|
15031
|
-
]),
|
|
15031
|
+
]), re = G((e) => {
|
|
15032
15032
|
_(e), y([e]), j.current?.focus(), RD(j.current);
|
|
15033
|
-
}, []),
|
|
15034
|
-
navigate:
|
|
15035
|
-
ask:
|
|
15036
|
-
setQuery:
|
|
15033
|
+
}, []), ie = J(() => ({
|
|
15034
|
+
navigate: te,
|
|
15035
|
+
ask: ne,
|
|
15036
|
+
setQuery: re
|
|
15037
15037
|
}), [
|
|
15038
|
-
re,
|
|
15039
15038
|
ne,
|
|
15040
|
-
|
|
15041
|
-
|
|
15039
|
+
te,
|
|
15040
|
+
re
|
|
15041
|
+
]), R = G(() => {
|
|
15042
15042
|
O(null), j.current?.focus();
|
|
15043
|
-
}, []),
|
|
15043
|
+
}, []), ae = G((e) => {
|
|
15044
15044
|
O(null), N.current?.querySelector(`[data-index="${e}"]`)?.focus();
|
|
15045
15045
|
}, []), oe = G((e, t) => {
|
|
15046
|
-
let n =
|
|
15046
|
+
let n = L.current?.querySelector(`[data-row="${e}"][data-action="${t}"] button`);
|
|
15047
15047
|
n && (O(t), n.focus());
|
|
15048
15048
|
}, []), se = G((e) => {
|
|
15049
15049
|
let t = new URL(e, window.location.origin).toString();
|
|
@@ -15072,17 +15072,17 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15072
15072
|
values: t
|
|
15073
15073
|
}), _(""), E(0);
|
|
15074
15074
|
else if (S) {
|
|
15075
|
-
if (e.run) e.run(S, t,
|
|
15075
|
+
if (e.run) e.run(S, t, ie);
|
|
15076
15076
|
else {
|
|
15077
15077
|
let n = KD(e, S, t);
|
|
15078
|
-
n &&
|
|
15078
|
+
n && te(n);
|
|
15079
15079
|
return;
|
|
15080
15080
|
}
|
|
15081
|
-
|
|
15081
|
+
ee();
|
|
15082
15082
|
}
|
|
15083
15083
|
}, [
|
|
15084
|
-
|
|
15085
|
-
|
|
15084
|
+
ee,
|
|
15085
|
+
ie,
|
|
15086
15086
|
S
|
|
15087
15087
|
]), fe = iO({
|
|
15088
15088
|
providers: p,
|
|
@@ -15101,13 +15101,13 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15101
15101
|
maxItemRows: a,
|
|
15102
15102
|
reveal: o,
|
|
15103
15103
|
assistant: c,
|
|
15104
|
-
context:
|
|
15104
|
+
context: ie,
|
|
15105
15105
|
onAdvance: de,
|
|
15106
15106
|
onCopyLink: se,
|
|
15107
15107
|
labels: d,
|
|
15108
15108
|
search: fe,
|
|
15109
15109
|
children: pe,
|
|
15110
|
-
ask:
|
|
15110
|
+
ask: ne,
|
|
15111
15111
|
onEnterScope: ce,
|
|
15112
15112
|
canDrill: b.length < sO
|
|
15113
15113
|
}), he = me.some((e) => e.color !== void 0), ge = Y(me);
|
|
@@ -15192,7 +15192,7 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15192
15192
|
let t = j.current;
|
|
15193
15193
|
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
|
|
15194
15194
|
if (!c) return;
|
|
15195
|
-
e.preventDefault(),
|
|
15195
|
+
e.preventDefault(), ne(ze);
|
|
15196
15196
|
} else {
|
|
15197
15197
|
if (b.length > 0 && C.kind === "browse" && (e.key === "Backspace" || e.key === "Delete")) {
|
|
15198
15198
|
let n = MD(t, e.key === "Backspace" ? "after" : "before");
|
|
@@ -15207,28 +15207,28 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15207
15207
|
else if (e.key === "Tab" && e.shiftKey) e.preventDefault();
|
|
15208
15208
|
else if (e.key === "Tab") {
|
|
15209
15209
|
if (e.preventDefault(), Ae(T)) return;
|
|
15210
|
-
me.length > 0 && (ye(0),
|
|
15210
|
+
me.length > 0 && (ye(0), ae(0));
|
|
15211
15211
|
} else e.key === "Backspace" && S && AD(t) && OD(t) ? e.preventDefault() : e.key === "Backspace" && g === "" ? ue() && e.preventDefault() : e.key === "Enter" && (e.preventDefault(), De(T));
|
|
15212
15212
|
}
|
|
15213
15213
|
}, Me = (e, t) => {
|
|
15214
15214
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
15215
15215
|
e.preventDefault();
|
|
15216
15216
|
let n = e.key === "ArrowDown" ? Oe(t, 1) : Oe(t, -1);
|
|
15217
|
-
ye(n),
|
|
15218
|
-
} else e.key === "ArrowRight" ? (e.preventDefault(), ke(t) > 0 && (M.current = "row", oe(t, 0))) : e.key === "ArrowLeft" || e.key === "Escape" ? (e.preventDefault(),
|
|
15217
|
+
ye(n), ae(n);
|
|
15218
|
+
} else e.key === "ArrowRight" ? (e.preventDefault(), ke(t) > 0 && (M.current = "row", oe(t, 0))) : e.key === "ArrowLeft" || e.key === "Escape" ? (e.preventDefault(), R()) : e.key === "Tab" ? (e.preventDefault(), (e.shiftKey || !Ae(t)) && R()) : e.key === "Enter" ? (e.preventDefault(), De(t)) : e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (e.preventDefault(), R(), _((t) => t + e.key));
|
|
15219
15219
|
}, Ne = (e, t, n) => {
|
|
15220
15220
|
let r = () => {
|
|
15221
15221
|
e.preventDefault(), e.stopPropagation();
|
|
15222
15222
|
};
|
|
15223
|
-
if (e.key === "Tab") r(),
|
|
15223
|
+
if (e.key === "Tab") r(), R();
|
|
15224
15224
|
else if (e.key === "ArrowRight") r(), t + 1 < n && oe(T, t + 1);
|
|
15225
|
-
else if (e.key === "ArrowLeft") r(), t > 0 ? oe(T, t - 1) : M.current === "row" ?
|
|
15226
|
-
else if (e.key === "Escape") r(),
|
|
15225
|
+
else if (e.key === "ArrowLeft") r(), t > 0 ? oe(T, t - 1) : M.current === "row" ? ae(T) : R();
|
|
15226
|
+
else if (e.key === "Escape") r(), R();
|
|
15227
15227
|
else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
15228
15228
|
r();
|
|
15229
15229
|
let t = e.key === "ArrowDown" ? Oe(T, 1) : Oe(T, -1);
|
|
15230
|
-
ye(t),
|
|
15231
|
-
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(),
|
|
15230
|
+
ye(t), ae(t);
|
|
15231
|
+
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(), R(), _((t) => t + e.key));
|
|
15232
15232
|
}, Pe = (e) => e && e.kind === "one" && e.sublabel ? `${e.label} · ${e.sublabel}` : e?.label ?? "", Fe = Pe(S ?? void 0), Ie = S ? void 0 : h ? d.placeholderPhone : d.placeholder, Le = C.kind === "param" ? (C.action.params ?? [])[C.step]?.label ?? d.placeholderScoped : S ? d.fieldLabelScoped(Fe) : d.placeholder, Re = v.flatMap((e, t) => [e.trim(), b[t]?.label ?? ""]).filter(Boolean).join(" "), ze = S ? g.trim() ? Re : b.map((e) => e.label).join(" ") : g.trim();
|
|
15233
15233
|
return /* @__PURE__ */ Q(Ha, {
|
|
15234
15234
|
open: e,
|
|
@@ -15246,7 +15246,7 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15246
15246
|
e.preventDefault(), j.current?.focus(), RD(j.current);
|
|
15247
15247
|
},
|
|
15248
15248
|
onPointerDown: (e) => {
|
|
15249
|
-
e.target === e.currentTarget &&
|
|
15249
|
+
e.target === e.currentTarget && ee();
|
|
15250
15250
|
},
|
|
15251
15251
|
children: [
|
|
15252
15252
|
/* @__PURE__ */ Q(no, {
|
|
@@ -15267,7 +15267,7 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15267
15267
|
assistant: c,
|
|
15268
15268
|
askLabel: S ? d.row.ask(S.label) : c?.label ?? "",
|
|
15269
15269
|
onRemoveScope: (e) => le(e, ""),
|
|
15270
|
-
onAsk: () =>
|
|
15270
|
+
onAsk: () => ne(ze),
|
|
15271
15271
|
fieldRef: j,
|
|
15272
15272
|
listboxId: m,
|
|
15273
15273
|
hasResults: me.length > 0,
|
|
@@ -15281,7 +15281,7 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15281
15281
|
children: k
|
|
15282
15282
|
}),
|
|
15283
15283
|
/* @__PURE__ */ $("div", {
|
|
15284
|
-
ref:
|
|
15284
|
+
ref: L,
|
|
15285
15285
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
15286
15286
|
children: [
|
|
15287
15287
|
/* @__PURE__ */ Q("div", {
|
|
@@ -15487,34 +15487,34 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15487
15487
|
F.current = E;
|
|
15488
15488
|
let I = Y(O);
|
|
15489
15489
|
I.current = O;
|
|
15490
|
-
let
|
|
15490
|
+
let L = Y(0), ee = Y(/* @__PURE__ */ new WeakMap());
|
|
15491
15491
|
K(() => () => {
|
|
15492
15492
|
y.current && clearTimeout(y.current);
|
|
15493
15493
|
}, []);
|
|
15494
|
-
let
|
|
15494
|
+
let te = G((e) => {
|
|
15495
15495
|
m.current = e;
|
|
15496
|
-
}, []),
|
|
15496
|
+
}, []), ne = G((e) => {
|
|
15497
15497
|
h.current = e;
|
|
15498
|
-
}, []),
|
|
15498
|
+
}, []), re = G((e) => {
|
|
15499
15499
|
h.current?.(e);
|
|
15500
|
-
}, []),
|
|
15500
|
+
}, []), ie = G((e) => {
|
|
15501
15501
|
m.current?.(e);
|
|
15502
|
-
}, []), L = G((e) => {
|
|
15503
|
-
g.current = e;
|
|
15504
15502
|
}, []), R = G((e) => {
|
|
15503
|
+
g.current = e;
|
|
15504
|
+
}, []), ae = G((e) => {
|
|
15505
15505
|
let t = _.current;
|
|
15506
15506
|
_.current = e, d(e), g.current?.retarget(t, e), e.kind === "reply" ? o.onReplyStarted({ messageId: e.message.id }) : e.kind === "edit" && o.onEditStarted({ messageId: e.message.id });
|
|
15507
15507
|
}, [o]), oe = G((e) => {
|
|
15508
|
-
v.current !== !1 &&
|
|
15508
|
+
v.current !== !1 && ae({
|
|
15509
15509
|
kind: "reply",
|
|
15510
15510
|
message: e
|
|
15511
15511
|
});
|
|
15512
|
-
}, [
|
|
15513
|
-
v.current !== !1 &&
|
|
15512
|
+
}, [ae]), se = G((e) => {
|
|
15513
|
+
v.current !== !1 && ae({
|
|
15514
15514
|
kind: "edit",
|
|
15515
15515
|
message: e
|
|
15516
15516
|
});
|
|
15517
|
-
}, [
|
|
15517
|
+
}, [ae]), ce = G(() => ae({ kind: "none" }), [ae]), le = Y(i.id);
|
|
15518
15518
|
q(function() {
|
|
15519
15519
|
le.current !== i.id && (le.current = i.id, g.current?.abandonDraft(), ce());
|
|
15520
15520
|
}, [i.id, ce]);
|
|
@@ -15528,8 +15528,8 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15528
15528
|
let n = t[e];
|
|
15529
15529
|
if (n == null) return;
|
|
15530
15530
|
k(e);
|
|
15531
|
-
let r =
|
|
15532
|
-
r ===
|
|
15531
|
+
let r = L.current, i = () => {
|
|
15532
|
+
r === L.current && ue(n, !0);
|
|
15533
15533
|
}, a = P.current;
|
|
15534
15534
|
a ? a(n).then(i) : i();
|
|
15535
15535
|
}, [ue]);
|
|
@@ -15541,13 +15541,13 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15541
15541
|
return;
|
|
15542
15542
|
}
|
|
15543
15543
|
j(!0);
|
|
15544
|
-
let t = ++
|
|
15544
|
+
let t = ++L.current, n = setTimeout(() => {
|
|
15545
15545
|
let n = (e) => {
|
|
15546
|
-
t ===
|
|
15546
|
+
t === L.current && (D(e), j(!1), e.length > 0 ? fe(e.length - 1, e) : (k(-1), p(null)));
|
|
15547
15547
|
}, r = N.current;
|
|
15548
15548
|
if (r) r(e).then((e) => n(e.map((e) => e.id)));
|
|
15549
15549
|
else {
|
|
15550
|
-
let t = e.toLowerCase(), r =
|
|
15550
|
+
let t = e.toLowerCase(), r = ee.current;
|
|
15551
15551
|
n(M.current.filter((e) => {
|
|
15552
15552
|
if (!gO(e) || e.deleted) return !1;
|
|
15553
15553
|
let n = r.get(e);
|
|
@@ -15565,7 +15565,7 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15565
15565
|
let pe = G(() => {
|
|
15566
15566
|
l.current("search"), x(i.id), o.onSearchOpened();
|
|
15567
15567
|
}, [o, i.id]), me = G(() => {
|
|
15568
|
-
|
|
15568
|
+
L.current++, x(null), C.current = !1, T(""), D([]), k(-1), j(!1), p(null);
|
|
15569
15569
|
}, [p]);
|
|
15570
15570
|
K(() => {
|
|
15571
15571
|
S && (C.current = !0);
|
|
@@ -15586,26 +15586,26 @@ var fD = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
15586
15586
|
e.length !== 0 && (o.onSearchResultNavigated({ direction: "prev" }), fe((I.current - 1 + e.length) % e.length, e));
|
|
15587
15587
|
}, [fe, o]), _e = E.length, ve = O >= 0 ? O + 1 : 0, ye = J(() => ({
|
|
15588
15588
|
jumpToMessage: de,
|
|
15589
|
-
scrollToMessage:
|
|
15590
|
-
registerScrollToMessage:
|
|
15589
|
+
scrollToMessage: ie,
|
|
15590
|
+
registerScrollToMessage: te
|
|
15591
15591
|
}), [
|
|
15592
15592
|
de,
|
|
15593
|
-
|
|
15594
|
-
|
|
15593
|
+
ie,
|
|
15594
|
+
te
|
|
15595
15595
|
]), be = J(() => ({ target: u }), [u]), xe = J(() => ({
|
|
15596
15596
|
startReply: oe,
|
|
15597
15597
|
startEdit: se,
|
|
15598
15598
|
clearComposeTarget: ce,
|
|
15599
|
-
registerComposerHandle:
|
|
15599
|
+
registerComposerHandle: R
|
|
15600
15600
|
}), [
|
|
15601
15601
|
oe,
|
|
15602
15602
|
se,
|
|
15603
15603
|
ce,
|
|
15604
|
-
|
|
15604
|
+
R
|
|
15605
15605
|
]), Se = J(() => ({
|
|
15606
|
-
registerFileDropHandler:
|
|
15607
|
-
dropFiles:
|
|
15608
|
-
}), [
|
|
15606
|
+
registerFileDropHandler: ne,
|
|
15607
|
+
dropFiles: re
|
|
15608
|
+
}), [ne, re]), Ce = J(() => ({
|
|
15609
15609
|
searchOpen: S,
|
|
15610
15610
|
openSearch: pe,
|
|
15611
15611
|
closeSearch: me,
|
|
@@ -19043,7 +19043,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19043
19043
|
target: r,
|
|
19044
19044
|
smooth: t.behavior === "smooth"
|
|
19045
19045
|
}, vs(e, t, n);
|
|
19046
|
-
}, []), F = Y(0), I = Y(/* @__PURE__ */ new Map()),
|
|
19046
|
+
}, []), F = Y(0), I = Y(/* @__PURE__ */ new Map()), L = G((e) => {
|
|
19047
19047
|
let n = C.current[e];
|
|
19048
19048
|
if (!n) return 0;
|
|
19049
19049
|
let r = I.current.get(n.key);
|
|
@@ -19053,15 +19053,15 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19053
19053
|
row: n,
|
|
19054
19054
|
size: i
|
|
19055
19055
|
}), i;
|
|
19056
|
-
}, [t]),
|
|
19056
|
+
}, [t]), ee = G((e, n) => {
|
|
19057
19057
|
let r = n?.borderBoxSize?.[0], i = Math.round(r ? r.blockSize : e.offsetHeight), a = e.dataset.chatRowKey, o = a ? C.current.find((e) => e.key === a) : void 0;
|
|
19058
19058
|
return o && a && kk(o) !== null && dP(t, a, {
|
|
19059
19059
|
width: x.current?.clientWidth ?? F.current,
|
|
19060
19060
|
signature: cP(o),
|
|
19061
19061
|
size: i
|
|
19062
19062
|
}), i;
|
|
19063
|
-
}, [t]),
|
|
19064
|
-
let t =
|
|
19063
|
+
}, [t]), te = G((t) => e[t]?.key ?? t, [e]), ne = Y(/* @__PURE__ */ new Set()), [re, ie] = X(0), R = Y(null), ae = G((e) => {
|
|
19064
|
+
let t = R.current, n = Ts(e);
|
|
19065
19065
|
if (!t) return n;
|
|
19066
19066
|
let r = t.measurementsCache, i = t.scrollRect?.height ?? 0, a = r[e.startIndex]?.start ?? 0, o = r[e.endIndex]?.end ?? 0, s = e.startIndex;
|
|
19067
19067
|
for (; s > 0 && a - (r[s - 1]?.start ?? 0) < CP;) --s;
|
|
@@ -19069,28 +19069,28 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19069
19069
|
for (; l < e.count - 1 && (r[l + 1]?.end ?? 0) - o < c;) l += 1;
|
|
19070
19070
|
let u = /* @__PURE__ */ new Set();
|
|
19071
19071
|
for (let e = s; e <= l; e++) u.add(e);
|
|
19072
|
-
return n.forEach((e) => u.add(e)),
|
|
19073
|
-
|
|
19072
|
+
return n.forEach((e) => u.add(e)), ne.current.size > 0 && C.current.forEach((e, t) => {
|
|
19073
|
+
ne.current.has(e.key) && u.add(t);
|
|
19074
19074
|
}), [...u].sort((e, t) => e - t);
|
|
19075
|
-
}, [
|
|
19075
|
+
}, [re]), oe = G(() => {
|
|
19076
19076
|
if (n.kind !== "end") return 0;
|
|
19077
19077
|
let e = 0;
|
|
19078
|
-
for (let t = 0; t < C.current.length; t++) e +=
|
|
19078
|
+
for (let t = 0; t < C.current.length; t++) e += L(t);
|
|
19079
19079
|
return e;
|
|
19080
19080
|
}, []), se = Y(88), ce = Y(v);
|
|
19081
19081
|
ce.current = v;
|
|
19082
19082
|
let le = G((e = "start") => {
|
|
19083
19083
|
let t = x.current, n = t ? Number.parseFloat(getComputedStyle(t).getPropertyValue(wN)) : 0, r = 88 + (Number.isFinite(n) ? n : 0), i = e === "center" ? (r - ce.current) / 2 : r;
|
|
19084
19084
|
se.current = i;
|
|
19085
|
-
let a =
|
|
19085
|
+
let a = R.current;
|
|
19086
19086
|
return a && (a.options.scrollPaddingStart = i), r;
|
|
19087
19087
|
}, []), ue = xs({
|
|
19088
19088
|
count: e.length,
|
|
19089
19089
|
getScrollElement: () => y,
|
|
19090
|
-
estimateSize:
|
|
19091
|
-
getItemKey:
|
|
19092
|
-
measureElement:
|
|
19093
|
-
rangeExtractor:
|
|
19090
|
+
estimateSize: L,
|
|
19091
|
+
getItemKey: te,
|
|
19092
|
+
measureElement: ee,
|
|
19093
|
+
rangeExtractor: ae,
|
|
19094
19094
|
initialOffset: oe,
|
|
19095
19095
|
scrollToFn: P,
|
|
19096
19096
|
overscan: 4,
|
|
@@ -19109,7 +19109,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19109
19109
|
t && t.scrollHeight <= t.clientHeight && (e.scrollOffset ?? 0) > 0 && (e.scrollOffset = 0), Se();
|
|
19110
19110
|
}
|
|
19111
19111
|
});
|
|
19112
|
-
|
|
19112
|
+
R.current = ue;
|
|
19113
19113
|
let de = Y(/* @__PURE__ */ new Map());
|
|
19114
19114
|
ue.shouldAdjustScrollPositionOnItemSizeChange = (e, t, n) => {
|
|
19115
19115
|
let r = (n.scrollOffset ?? 0) + n.scrollAdjustments, i = C.current[e.index], a = i ? JSON.stringify(Pk(i) ?? null) : "", o = de.current.get(String(e.key));
|
|
@@ -19151,7 +19151,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19151
19151
|
onSeenRowIndex: p
|
|
19152
19152
|
};
|
|
19153
19153
|
let xe = G(() => {
|
|
19154
|
-
let e =
|
|
19154
|
+
let e = R.current, t = x.current;
|
|
19155
19155
|
if (!e || !t) return;
|
|
19156
19156
|
let n = t.clientHeight;
|
|
19157
19157
|
if (n === 0) return;
|
|
@@ -19200,7 +19200,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19200
19200
|
let o = r !== null && n < r.height;
|
|
19201
19201
|
!a && !o && r !== null && t < r.top - 1 && j(!1), a || Te.current(), je(e) && j(!0), Se();
|
|
19202
19202
|
}, [Se, j]), Ne = G(() => {
|
|
19203
|
-
M.current = null, N.current = null, Je.current = performance.now(),
|
|
19203
|
+
M.current = null, N.current = null, Je.current = performance.now(), R.current && MP(R.current), g.current && _();
|
|
19204
19204
|
}, [g, _]), Pe = G((e) => {
|
|
19205
19205
|
if (!(e.deltaY === 0 || e.ctrlKey || Math.abs(e.deltaX) > Math.abs(e.deltaY)) && (Ne(), Se(), e.deltaY < 0)) {
|
|
19206
19206
|
Ce.handoff(), j(!1), Ee.current !== null && window.clearTimeout(Ee.current);
|
|
@@ -19244,7 +19244,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19244
19244
|
t !== F.current && (F.current = t, I.current.clear());
|
|
19245
19245
|
let i = n(), a = i - r;
|
|
19246
19246
|
r = i;
|
|
19247
|
-
let o =
|
|
19247
|
+
let o = R.current;
|
|
19248
19248
|
T.current && !g.current ? o?.scrollToEnd() : o && Math.abs(a) >= .5 && (o.scrollBy(a), Te.current()), Se();
|
|
19249
19249
|
});
|
|
19250
19250
|
return i.observe(e), () => i.disconnect();
|
|
@@ -19258,7 +19258,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19258
19258
|
let ze = Y(!1), Be = Y(null), Ve = G((e) => C.current.findIndex((t) => t.key === e), []), He = G((e, t) => {
|
|
19259
19259
|
let n = performance.now(), r = 0, i = NaN, a = null, o = () => {
|
|
19260
19260
|
a = null;
|
|
19261
|
-
let s = x.current, c =
|
|
19261
|
+
let s = x.current, c = R.current;
|
|
19262
19262
|
if (!s || !c) {
|
|
19263
19263
|
t();
|
|
19264
19264
|
return;
|
|
@@ -19277,7 +19277,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19277
19277
|
a !== null && cancelAnimationFrame(a), e.kind === "key" && N.current?.key === e.key && (N.current = null);
|
|
19278
19278
|
};
|
|
19279
19279
|
}, [Ve]), Ue = G((e, t) => {
|
|
19280
|
-
let n =
|
|
19280
|
+
let n = R.current, r = x.current, i = Ve(e);
|
|
19281
19281
|
if (!n || i < 0) return !1;
|
|
19282
19282
|
let a = Gk(n.measurementsCache[i]?.size ?? 0, r?.clientHeight ?? 0, le() + v);
|
|
19283
19283
|
return le(a), j(!1), N.current = {
|
|
@@ -19295,12 +19295,12 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19295
19295
|
le,
|
|
19296
19296
|
j
|
|
19297
19297
|
]), We = G(() => {
|
|
19298
|
-
N.current = null, j(!0),
|
|
19298
|
+
N.current = null, j(!0), R.current?.scrollToEnd();
|
|
19299
19299
|
}, [j]);
|
|
19300
19300
|
q(() => {
|
|
19301
19301
|
if (ze.current || !y || e.length === 0) return;
|
|
19302
19302
|
ze.current = !0;
|
|
19303
|
-
let t =
|
|
19303
|
+
let t = R.current;
|
|
19304
19304
|
if (!t) return;
|
|
19305
19305
|
let r = { kind: "end" };
|
|
19306
19306
|
if (n.kind === "end") t.scrollToEnd();
|
|
@@ -19333,7 +19333,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19333
19333
|
let r = n.querySelector(NP(e));
|
|
19334
19334
|
return r ? r.getBoundingClientRect().top - t.getBoundingClientRect().top - Ce.offset() : null;
|
|
19335
19335
|
}, [Ce]), qe = G(() => {
|
|
19336
|
-
let e =
|
|
19336
|
+
let e = R.current, t = x.current, n = C.current, r;
|
|
19337
19337
|
if (e && t) {
|
|
19338
19338
|
let i = T.current ? t.scrollTop : t.scrollTop + t.clientHeight * kP, a = e.getVirtualItemForOffset(i);
|
|
19339
19339
|
for (let e = a?.index ?? 0; e < n.length && !r; e++) kk(n[e]) !== null && (r = n[e]);
|
|
@@ -19348,7 +19348,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19348
19348
|
Te.current = qe;
|
|
19349
19349
|
}, [qe]);
|
|
19350
19350
|
let Je = Y(0), Ye = G(() => {
|
|
19351
|
-
let e =
|
|
19351
|
+
let e = R.current, t = Ge.current, n = x.current;
|
|
19352
19352
|
if (n && !T.current && h.current && !g.current && performance.now() - Je.current > AP && je(n) && j(!0), e && t && h.current && !g.current && performance.now() - Je.current > AP) {
|
|
19353
19353
|
let n = Ke(t.key);
|
|
19354
19354
|
if (n !== null) {
|
|
@@ -19367,7 +19367,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19367
19367
|
j
|
|
19368
19368
|
]);
|
|
19369
19369
|
q(() => {
|
|
19370
|
-
let e =
|
|
19370
|
+
let e = R.current, t = x.current;
|
|
19371
19371
|
if (!e || !t || !ze.current) return;
|
|
19372
19372
|
let n = N.current;
|
|
19373
19373
|
if (n) {
|
|
@@ -19383,7 +19383,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19383
19383
|
scrollToKey: Ue,
|
|
19384
19384
|
scrollToEnd: We,
|
|
19385
19385
|
topVisibleIndex: () => {
|
|
19386
|
-
let e =
|
|
19386
|
+
let e = R.current, t = x.current;
|
|
19387
19387
|
return !e || !t ? null : e.getVirtualItemForOffset(t.scrollTop)?.index ?? null;
|
|
19388
19388
|
},
|
|
19389
19389
|
watchLanding: He,
|
|
@@ -19397,7 +19397,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19397
19397
|
j,
|
|
19398
19398
|
He
|
|
19399
19399
|
]), Ze = G((e) => {
|
|
19400
|
-
let t =
|
|
19400
|
+
let t = R.current;
|
|
19401
19401
|
if (!t || (t.measureElement(e), !e || !e.isConnected)) return;
|
|
19402
19402
|
let n = Number(e.dataset.index), r = e.dataset.chatRowKey;
|
|
19403
19403
|
if (Number.isNaN(n) || !r || t.itemSizeCache.has(r)) return;
|
|
@@ -19410,7 +19410,7 @@ function PP({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
19410
19410
|
if (n && n.size === r.size && [...r].every((e) => n.has(e))) return;
|
|
19411
19411
|
$e.current.set(e, r);
|
|
19412
19412
|
let i = /* @__PURE__ */ new Set();
|
|
19413
|
-
$e.current.forEach((e) => e.forEach((e) => i.add(e))),
|
|
19413
|
+
$e.current.forEach((e) => e.forEach((e) => i.add(e))), ne.current = i, ie((e) => e + 1);
|
|
19414
19414
|
}, []);
|
|
19415
19415
|
return K(() => {
|
|
19416
19416
|
let e = () => {
|
|
@@ -19701,13 +19701,13 @@ var FP = ({ channel: e }) => {
|
|
|
19701
19701
|
t.memberCount
|
|
19702
19702
|
]), I = Y(F);
|
|
19703
19703
|
I.current = F;
|
|
19704
|
-
let [
|
|
19705
|
-
enabled: _ &&
|
|
19704
|
+
let [L] = X(zk), [ee, te] = X(null), [ne, re] = X(null), { messagesActive: ie } = CO(), R = Y(!1), ae = Lk({
|
|
19705
|
+
enabled: _ && ie,
|
|
19706
19706
|
rows: F,
|
|
19707
|
-
readyRef:
|
|
19707
|
+
readyRef: R,
|
|
19708
19708
|
markRead: d
|
|
19709
19709
|
}), { ready: oe, setViewport: se, markLanded: ce } = xk(D);
|
|
19710
|
-
|
|
19710
|
+
R.current = oe;
|
|
19711
19711
|
let le = Y(null);
|
|
19712
19712
|
K(() => {
|
|
19713
19713
|
oe && le.current?.refresh();
|
|
@@ -19728,7 +19728,7 @@ var FP = ({ channel: e }) => {
|
|
|
19728
19728
|
if (!r) return;
|
|
19729
19729
|
let i = I.current, a = e.kind === "end" ? i.length - 1 : i.findIndex((t) => t.key === e.key);
|
|
19730
19730
|
if (a < 0) return;
|
|
19731
|
-
let o = !
|
|
19731
|
+
let o = !R.current, s = qk({
|
|
19732
19732
|
from: o ? null : r.topVisibleIndex(),
|
|
19733
19733
|
to: a,
|
|
19734
19734
|
rowCount: i.length
|
|
@@ -19809,10 +19809,10 @@ var FP = ({ channel: e }) => {
|
|
|
19809
19809
|
entry: t
|
|
19810
19810
|
};
|
|
19811
19811
|
}
|
|
19812
|
-
let Ee = Te.current.entry, De =
|
|
19812
|
+
let Ee = Te.current.entry, De = ee?.key === D ? ee.value : Ee.kind === "end", Oe = ne?.key !== D || ne.value, ke = G((e) => te({
|
|
19813
19813
|
key: D,
|
|
19814
19814
|
value: e
|
|
19815
|
-
}), [D]), Ae = G((e) =>
|
|
19815
|
+
}), [D]), Ae = G((e) => re({
|
|
19816
19816
|
key: D,
|
|
19817
19817
|
value: e
|
|
19818
19818
|
}), [D]);
|
|
@@ -19822,7 +19822,7 @@ var FP = ({ channel: e }) => {
|
|
|
19822
19822
|
let e = () => Me(document.hidden);
|
|
19823
19823
|
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
19824
19824
|
}, []);
|
|
19825
|
-
let Ne = oe &&
|
|
19825
|
+
let Ne = oe && ie && De && (y || x) && !je;
|
|
19826
19826
|
K(() => {
|
|
19827
19827
|
_ || Ne && l > 0 && d?.();
|
|
19828
19828
|
}, [
|
|
@@ -19864,12 +19864,12 @@ var FP = ({ channel: e }) => {
|
|
|
19864
19864
|
loadingNewer: o ?? !1,
|
|
19865
19865
|
loadNewer: s,
|
|
19866
19866
|
reducedMotion: p,
|
|
19867
|
-
viewportStore:
|
|
19867
|
+
viewportStore: L,
|
|
19868
19868
|
onAtBottomChange: ke,
|
|
19869
19869
|
onAtTopChange: Ae,
|
|
19870
|
-
onSeenRowIndex:
|
|
19870
|
+
onSeenRowIndex: ae,
|
|
19871
19871
|
onLanded: ce,
|
|
19872
|
-
readyRef:
|
|
19872
|
+
readyRef: R,
|
|
19873
19873
|
jumpActiveRef: ue,
|
|
19874
19874
|
onUserTakeover: ve,
|
|
19875
19875
|
handleRef: le,
|
|
@@ -19877,7 +19877,7 @@ var FP = ({ channel: e }) => {
|
|
|
19877
19877
|
}, D)
|
|
19878
19878
|
}), oe ? /* @__PURE__ */ Q(BP, {
|
|
19879
19879
|
atTop: Oe,
|
|
19880
|
-
viewportStore:
|
|
19880
|
+
viewportStore: L,
|
|
19881
19881
|
rows: F,
|
|
19882
19882
|
isCommunity: _,
|
|
19883
19883
|
hasMoreOlder: n,
|
|
@@ -20576,17 +20576,17 @@ var SF = {
|
|
|
20576
20576
|
size: e.size,
|
|
20577
20577
|
mimeType: e.type
|
|
20578
20578
|
}, AF = (e, t) => e && t, jF = () => {
|
|
20579
|
-
let e = z(), { sendMessage: t, editMessage: n, onInputActivity: r, stopTyping: i, uploadFiles: a, transcribe: o, maxFiles: s, maxFileSizeBytes: c, onFileTooLarge: l, maxMessageCharacters: u, channel: d, searchMembers: f, capabilities: p } = Ml(), m = !!a && nA("canUpload", d.type, p), { target: h } = IO(), { clearComposeTarget: g, registerComposerHandle: _ } = LO(), v = DF(), { registerFileDropHandler: y } = RO(), b = bl(), { reducedMotion: x } = QO(), S = !!x, C = Y(null), [w, T] = X([]), E = Y(null), D = Y(null), O = Y(/* @__PURE__ */ new Set()), k = Y(0), { error: A, show: j, clear: M } = lo(), N = h.kind === "edit", P = h.kind === "edit" ? h.message : null, F = h.kind === "reply" ? h.message : null, I = m, [
|
|
20580
|
-
|
|
20579
|
+
let e = z(), { sendMessage: t, editMessage: n, onInputActivity: r, stopTyping: i, uploadFiles: a, transcribe: o, maxFiles: s, maxFileSizeBytes: c, onFileTooLarge: l, maxMessageCharacters: u, channel: d, searchMembers: f, capabilities: p } = Ml(), m = !!a && nA("canUpload", d.type, p), { target: h } = IO(), { clearComposeTarget: g, registerComposerHandle: _ } = LO(), v = DF(), { registerFileDropHandler: y } = RO(), b = bl(), { reducedMotion: x } = QO(), S = !!x, C = Y(null), [w, T] = X([]), E = Y(null), D = Y(null), O = Y(/* @__PURE__ */ new Set()), k = Y(0), { error: A, show: j, clear: M } = lo(), N = h.kind === "edit", P = h.kind === "edit" ? h.message : null, F = h.kind === "reply" ? h.message : null, I = m, [L, ee] = X(!1), te = Y({ channelId: d.id });
|
|
20580
|
+
te.current = {
|
|
20581
20581
|
channelId: d.id,
|
|
20582
20582
|
replyToId: F?.id
|
|
20583
20583
|
};
|
|
20584
|
-
let
|
|
20585
|
-
|
|
20586
|
-
let
|
|
20584
|
+
let ne = Y(h);
|
|
20585
|
+
ne.current = h;
|
|
20586
|
+
let re = G(async (n, r) => {
|
|
20587
20587
|
if (!a) return;
|
|
20588
|
-
|
|
20589
|
-
let { channelId: i, replyToId: o } =
|
|
20588
|
+
ee(!0);
|
|
20589
|
+
let { channelId: i, replyToId: o } = te.current, s = n.type || "audio/webm", c = s.includes("mp4") ? "m4a" : s.includes("ogg") ? "ogg" : "webm", l = new File([n], `voice-note.${c}`, { type: s });
|
|
20590
20590
|
try {
|
|
20591
20591
|
let [e] = await a([l]);
|
|
20592
20592
|
if (e && "url" in e) {
|
|
@@ -20601,13 +20601,13 @@ var SF = {
|
|
|
20601
20601
|
name: l.name
|
|
20602
20602
|
}]
|
|
20603
20603
|
});
|
|
20604
|
-
let n =
|
|
20604
|
+
let n = ne.current;
|
|
20605
20605
|
o && n.kind === "reply" && n.message.id === o && g();
|
|
20606
20606
|
}
|
|
20607
20607
|
} catch {
|
|
20608
20608
|
j(e.chat.fileUploadError);
|
|
20609
20609
|
} finally {
|
|
20610
|
-
|
|
20610
|
+
ee(!1);
|
|
20611
20611
|
}
|
|
20612
20612
|
}, [
|
|
20613
20613
|
a,
|
|
@@ -20615,10 +20615,10 @@ var SF = {
|
|
|
20615
20615
|
g,
|
|
20616
20616
|
j,
|
|
20617
20617
|
e.chat.fileUploadError
|
|
20618
|
-
]),
|
|
20618
|
+
]), ie = pF({
|
|
20619
20619
|
searchMembers: f,
|
|
20620
20620
|
everyoneLabel: d.type === "group" ? e.chat.mentionEveryone : void 0
|
|
20621
|
-
}),
|
|
20621
|
+
}), R = G(({ mentions: t, mentionedEveryone: n }) => [...(t ?? []).map((e) => dF({
|
|
20622
20622
|
id: e.id,
|
|
20623
20623
|
name: e.name,
|
|
20624
20624
|
avatar: e.avatar,
|
|
@@ -20627,14 +20627,14 @@ var SF = {
|
|
|
20627
20627
|
})), ...n && d.type === "group" ? [dF({
|
|
20628
20628
|
id: sF,
|
|
20629
20629
|
name: e.chat.mentionEveryone
|
|
20630
|
-
})] : []], [d.type, e.chat.mentionEveryone]),
|
|
20630
|
+
})] : []], [d.type, e.chat.mentionEveryone]), ae = wF({
|
|
20631
20631
|
getComposer: G(() => C.current, []),
|
|
20632
20632
|
isEditing: N,
|
|
20633
|
-
toComposerMentions:
|
|
20633
|
+
toComposerMentions: R
|
|
20634
20634
|
}), oe = G((e) => {
|
|
20635
|
-
|
|
20635
|
+
ae.noteTextChange(), r(), e.trim().length === 0 && i?.();
|
|
20636
20636
|
}, [
|
|
20637
|
-
|
|
20637
|
+
ae,
|
|
20638
20638
|
r,
|
|
20639
20639
|
i
|
|
20640
20640
|
]);
|
|
@@ -20755,24 +20755,24 @@ var SF = {
|
|
|
20755
20755
|
attachment: e
|
|
20756
20756
|
})))), C.current?.loadDraft({
|
|
20757
20757
|
value: e.body,
|
|
20758
|
-
mentions:
|
|
20758
|
+
mentions: R(e)
|
|
20759
20759
|
});
|
|
20760
|
-
}, [
|
|
20760
|
+
}, [R, ge]), be = G((e, t) => {
|
|
20761
20761
|
let n = e.kind === "edit" && t.kind !== "edit", r = e.kind === "edit" && t.kind === "edit" && e.message.id === t.message.id;
|
|
20762
|
-
n && (ve(),
|
|
20762
|
+
n && (ve(), ae.restore({ cleared: !0 })), t.kind === "edit" && !r && (e.kind !== "edit" && ae.flush(), ye(t.message)), t.kind !== "none" && C.current?.focus({ preventScroll: !0 });
|
|
20763
20763
|
}, [
|
|
20764
20764
|
ve,
|
|
20765
20765
|
ye,
|
|
20766
|
-
|
|
20766
|
+
ae
|
|
20767
20767
|
]), xe = J(() => ({
|
|
20768
20768
|
retarget: be,
|
|
20769
20769
|
abandonDraft: () => {
|
|
20770
|
-
ve(),
|
|
20770
|
+
ve(), ae.restore({ cleared: !0 });
|
|
20771
20771
|
}
|
|
20772
20772
|
}), [
|
|
20773
20773
|
be,
|
|
20774
20774
|
ve,
|
|
20775
|
-
|
|
20775
|
+
ae
|
|
20776
20776
|
]);
|
|
20777
20777
|
K(function() {
|
|
20778
20778
|
return _(xe), () => _(null);
|
|
@@ -20800,7 +20800,7 @@ var SF = {
|
|
|
20800
20800
|
attachments: o.length > 0 ? o : void 0,
|
|
20801
20801
|
mentions: s.length > 0 ? s : void 0,
|
|
20802
20802
|
mentionedEveryone: c || void 0
|
|
20803
|
-
}), g()) : (_l(d.id),
|
|
20803
|
+
}), g()) : (_l(d.id), ae.noteSent(), t({
|
|
20804
20804
|
body: a,
|
|
20805
20805
|
attachments: o.length > 0 ? o : void 0,
|
|
20806
20806
|
replyToId: F?.id,
|
|
@@ -20816,7 +20816,7 @@ var SF = {
|
|
|
20816
20816
|
i,
|
|
20817
20817
|
P,
|
|
20818
20818
|
n,
|
|
20819
|
-
|
|
20819
|
+
ae
|
|
20820
20820
|
]), Te = G((e) => h.kind !== "none" && (e.preventDefault(), N ? Se() : Ce(), !0), [
|
|
20821
20821
|
h.kind,
|
|
20822
20822
|
N,
|
|
@@ -20925,27 +20925,27 @@ var SF = {
|
|
|
20925
20925
|
onSend: we,
|
|
20926
20926
|
sendKind: N ? "save" : "send",
|
|
20927
20927
|
hasAttachments: w.length > 0,
|
|
20928
|
-
sendBlocked: ce ||
|
|
20928
|
+
sendBlocked: ce || L,
|
|
20929
20929
|
maxLength: u,
|
|
20930
20930
|
maxLengthError: Ne,
|
|
20931
20931
|
error: A,
|
|
20932
20932
|
labels: { mentionPinnedDescription: e.chat.mentionEveryoneDescription },
|
|
20933
20933
|
mentions: {
|
|
20934
|
-
...
|
|
20934
|
+
...ie,
|
|
20935
20935
|
scopeKey: d.id
|
|
20936
20936
|
},
|
|
20937
20937
|
autocomplete: SF,
|
|
20938
20938
|
voice: {
|
|
20939
20939
|
onTranscribe: o,
|
|
20940
|
-
onAudio: I ? (e, t) => void
|
|
20940
|
+
onAudio: I ? (e, t) => void re(e, t) : void 0,
|
|
20941
20941
|
disabled: AF(N, I),
|
|
20942
|
-
busy:
|
|
20942
|
+
busy: L,
|
|
20943
20943
|
onStarted: b.onVoiceRecordingStarted,
|
|
20944
20944
|
onCancelled: b.onVoiceRecordingCancelled
|
|
20945
20945
|
},
|
|
20946
20946
|
onTextChange: oe,
|
|
20947
20947
|
onCleared: () => {
|
|
20948
|
-
i?.(),
|
|
20948
|
+
i?.(), ae.noteTextChange();
|
|
20949
20949
|
},
|
|
20950
20950
|
onEscape: Te,
|
|
20951
20951
|
onArrowUpWhenEmpty: Ee,
|
|
@@ -21208,12 +21208,12 @@ var zF = 1e3, BF = (e, t, n) => {
|
|
|
21208
21208
|
neutral: "text-f1-icon-mood-neutral",
|
|
21209
21209
|
positive: "text-f1-icon-mood-positive",
|
|
21210
21210
|
superPositive: "text-f1-icon-mood-super-positive"
|
|
21211
|
-
}, ZF = "text-f1-icon-secondary", QF = (e) =>
|
|
21211
|
+
}, ZF = "text-f1-icon-secondary", QF = (e) => L.includes(e), $F = ({ value: e, onChange: t, labels: n, icons: r, size: i = "lg", fullWidth: a = !0, disabled: o = !1, required: s = !1 }) => {
|
|
21212
21212
|
let [c, l] = X(e);
|
|
21213
21213
|
K(() => {
|
|
21214
21214
|
l(e);
|
|
21215
21215
|
}, [e]);
|
|
21216
|
-
let u = J(() =>
|
|
21216
|
+
let u = J(() => L.map((e) => ({
|
|
21217
21217
|
value: e,
|
|
21218
21218
|
icon: r?.[e] ?? y[e],
|
|
21219
21219
|
label: n[e],
|
|
@@ -22318,10 +22318,10 @@ function bL({ data: e = [], trackedMinutes: t = 0, remainingMinutes: n, variant:
|
|
|
22318
22318
|
return /* @__PURE__ */ $("div", {
|
|
22319
22319
|
className: "relative h-40 w-40",
|
|
22320
22320
|
children: [
|
|
22321
|
-
/* @__PURE__ */ Q(
|
|
22321
|
+
/* @__PURE__ */ Q(ne, {
|
|
22322
22322
|
width: 156,
|
|
22323
22323
|
height: 156,
|
|
22324
|
-
children: /* @__PURE__ */ Q(
|
|
22324
|
+
children: /* @__PURE__ */ Q(R, {
|
|
22325
22325
|
data: i,
|
|
22326
22326
|
cx: 74,
|
|
22327
22327
|
cy: 74,
|
|
@@ -22609,38 +22609,38 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22609
22609
|
label: e.duration ? `${e.name} · ${e.duration}` : e.name,
|
|
22610
22610
|
description: e.description,
|
|
22611
22611
|
tag: e.isPaid ? r.paid : r.unpaid
|
|
22612
|
-
})) ?? [], [F, I] = X(!1),
|
|
22612
|
+
})) ?? [], [F, I] = X(!1), L = () => {
|
|
22613
22613
|
if (P.length > 1) F || I(!0);
|
|
22614
22614
|
else {
|
|
22615
22615
|
let e = P?.[0]?.value;
|
|
22616
22616
|
u?.(e);
|
|
22617
22617
|
}
|
|
22618
|
-
},
|
|
22618
|
+
}, ee = (e) => {
|
|
22619
22619
|
f?.(e), I(!1), u?.(e);
|
|
22620
|
-
},
|
|
22620
|
+
}, te = N && a.length && !s && o, ne = N && !C && _, re = DL(AL(a), i), ie = a.map((e) => ({
|
|
22621
22621
|
value: e.id,
|
|
22622
22622
|
label: e.name,
|
|
22623
22623
|
icon: e.icon
|
|
22624
|
-
})),
|
|
22624
|
+
})), R = A === "break", [ae, oe] = X(!1), se = te ? /* @__PURE__ */ Q(rc, {
|
|
22625
22625
|
label: r.selectLocation,
|
|
22626
22626
|
hideLabel: !0,
|
|
22627
22627
|
value: i,
|
|
22628
|
-
options:
|
|
22628
|
+
options: ie,
|
|
22629
22629
|
onChange: g,
|
|
22630
|
-
open:
|
|
22630
|
+
open: ae,
|
|
22631
22631
|
onOpenChange: oe,
|
|
22632
22632
|
disabled: s,
|
|
22633
22633
|
children: /* @__PURE__ */ Q("div", {
|
|
22634
22634
|
"aria-label": "Select location",
|
|
22635
22635
|
children: /* @__PURE__ */ Q(PL, {
|
|
22636
|
-
text:
|
|
22636
|
+
text: re?.name,
|
|
22637
22637
|
placeholder: r.selectLocation,
|
|
22638
|
-
icon:
|
|
22638
|
+
icon: re?.icon
|
|
22639
22639
|
})
|
|
22640
22640
|
})
|
|
22641
|
-
}) :
|
|
22642
|
-
text:
|
|
22643
|
-
icon:
|
|
22641
|
+
}) : re ? /* @__PURE__ */ Q(ps, {
|
|
22642
|
+
text: re.name,
|
|
22643
|
+
icon: re.icon
|
|
22644
22644
|
}) : null, ce = a.length ? /* @__PURE__ */ Q(jL, {
|
|
22645
22645
|
locations: a,
|
|
22646
22646
|
locationId: i,
|
|
@@ -22648,7 +22648,7 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22648
22648
|
label: r.selectLocation,
|
|
22649
22649
|
searchPlaceholder: r.searchLocation,
|
|
22650
22650
|
required: T,
|
|
22651
|
-
disabled: !
|
|
22651
|
+
disabled: !te
|
|
22652
22652
|
}) : null, le = b?.length && _ ? /* @__PURE__ */ Q(NL, {
|
|
22653
22653
|
projects: b,
|
|
22654
22654
|
projectId: x,
|
|
@@ -22656,7 +22656,7 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22656
22656
|
label: r.selectProject,
|
|
22657
22657
|
searchPlaceholder: r.searchProject,
|
|
22658
22658
|
required: w,
|
|
22659
|
-
disabled: !
|
|
22659
|
+
disabled: !ne
|
|
22660
22660
|
}) : null, ue = D ?? ((t ?? 0) < 0 ? "clock-out" : "resume"), de = /* @__PURE__ */ $(Z, { children: [
|
|
22661
22661
|
A === "clocked-out" ? /* @__PURE__ */ Q("div", {
|
|
22662
22662
|
className: O === "default" ? "mr-3 @xs:mr-0" : void 0,
|
|
@@ -22673,7 +22673,7 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22673
22673
|
hideLabel: !0,
|
|
22674
22674
|
value: "",
|
|
22675
22675
|
options: P,
|
|
22676
|
-
onChange:
|
|
22676
|
+
onChange: ee,
|
|
22677
22677
|
open: F,
|
|
22678
22678
|
onOpenChange: I,
|
|
22679
22679
|
children: /* @__PURE__ */ Q("div", {
|
|
@@ -22687,7 +22687,7 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22687
22687
|
})
|
|
22688
22688
|
})
|
|
22689
22689
|
}) : /* @__PURE__ */ Q(U, {
|
|
22690
|
-
onClick:
|
|
22690
|
+
onClick: L,
|
|
22691
22691
|
label: r.break,
|
|
22692
22692
|
variant: "outline",
|
|
22693
22693
|
icon: yc,
|
|
@@ -22722,12 +22722,12 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22722
22722
|
] }), fe = O === "horizontal-bar" ? ce : y ?? se, pe = O === "horizontal-bar" ? le : v, me = /* @__PURE__ */ $(Z, { children: [
|
|
22723
22723
|
o ? fe : null,
|
|
22724
22724
|
_ ? pe : null,
|
|
22725
|
-
|
|
22725
|
+
R && E ? /* @__PURE__ */ Q(ps, { text: E }) : null
|
|
22726
22726
|
] }), he = o && !!fe, ge = _ && !!pe, _e = he ? /* @__PURE__ */ Q("div", {
|
|
22727
|
-
className: V("flex min-w-0 flex-1 flex-row",
|
|
22727
|
+
className: V("flex min-w-0 flex-1 flex-row", te && IL),
|
|
22728
22728
|
children: fe
|
|
22729
22729
|
}) : null, ve = ge ? /* @__PURE__ */ Q("div", {
|
|
22730
|
-
className: V("min-w-0 flex-1",
|
|
22730
|
+
className: V("min-w-0 flex-1", ne && IL),
|
|
22731
22731
|
children: pe
|
|
22732
22732
|
}) : null, ye = he && ge, be = ye ? ve : null, xe = ye ? _e : _e ?? ve;
|
|
22733
22733
|
if (k) return /* @__PURE__ */ Q(FL, {
|
|
@@ -22755,7 +22755,7 @@ function RL({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
22755
22755
|
children: j
|
|
22756
22756
|
}),
|
|
22757
22757
|
/* @__PURE__ */ Q(ef, { variant: LL[A] }),
|
|
22758
|
-
|
|
22758
|
+
R && E ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
22759
22759
|
"aria-hidden": !0,
|
|
22760
22760
|
className: "shrink-0 text-f1-foreground-secondary",
|
|
22761
22761
|
children: "·"
|
|
@@ -23825,7 +23825,7 @@ function Fz({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
23825
23825
|
}, F = (e) => ({
|
|
23826
23826
|
...e,
|
|
23827
23827
|
onClick: (t) => (A("footer-action"), e.onClick?.(t))
|
|
23828
|
-
}), I = Array.isArray(r) ? r.map(F) : r && F(r),
|
|
23828
|
+
}), I = Array.isArray(r) ? r.map(F) : r && F(r), L = /* @__PURE__ */ Q(Ie, {
|
|
23829
23829
|
header: P,
|
|
23830
23830
|
fullHeight: n,
|
|
23831
23831
|
action: I,
|
|
@@ -23866,7 +23866,7 @@ function Fz({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
23866
23866
|
children: [/* @__PURE__ */ Q("div", {
|
|
23867
23867
|
className: V("[backface-visibility:hidden]", m && "pointer-events-none"),
|
|
23868
23868
|
"aria-hidden": m,
|
|
23869
|
-
children:
|
|
23869
|
+
children: L
|
|
23870
23870
|
}), /* @__PURE__ */ $("div", {
|
|
23871
23871
|
"aria-hidden": !m,
|
|
23872
23872
|
className: V("absolute inset-0 flex flex-col gap-4", "rounded-xl border border-solid border-f1-border-secondary bg-f1-background p-4", "[backface-visibility:hidden] [transform:rotateY(180deg)]", !m && "pointer-events-none"),
|
|
@@ -23889,7 +23889,7 @@ function Fz({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
23889
23889
|
})]
|
|
23890
23890
|
})
|
|
23891
23891
|
})
|
|
23892
|
-
}) :
|
|
23892
|
+
}) : L;
|
|
23893
23893
|
}
|
|
23894
23894
|
//#endregion
|
|
23895
23895
|
//#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
|
|
@@ -24033,41 +24033,69 @@ var Uz = (e) => {
|
|
|
24033
24033
|
...t,
|
|
24034
24034
|
y: Math.max(t.y, i - a)
|
|
24035
24035
|
};
|
|
24036
|
-
}, nB = (
|
|
24037
|
-
|
|
24036
|
+
}, nB = (e, t, n, r) => {
|
|
24037
|
+
if (n < 0 || r < 0 || n === r || t.has(r)) return null;
|
|
24038
|
+
let i = Array.from({ length: e }, (e, t) => t), a = ee(i, n, r).filter((e) => !t.has(e));
|
|
24039
|
+
return i.map((e) => t.has(e) ? e : a.shift());
|
|
24040
|
+
}, rB = (e, t) => new Map(e.flatMap((e, n) => {
|
|
24041
|
+
let r = e.locked ? t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect() : void 0;
|
|
24042
|
+
return r ? [[n, r.height]] : [];
|
|
24043
|
+
})), iB = ({ pinned: e, pinnedHeights: t, gap: n }) => (r) => {
|
|
24044
|
+
let { rects: i, activeIndex: a, overIndex: o, index: c } = r, l = Array.from({ length: i.length }, (e, n) => i[n]?.height ?? t.get(n));
|
|
24045
|
+
if (e.size === 0 || l.some((e) => e == null)) return s(r);
|
|
24046
|
+
let u = nB(i.length, e, a, o);
|
|
24047
|
+
if (!u) return null;
|
|
24048
|
+
let d = (e, t) => e.slice(0, e.indexOf(t)).reduce((e, t) => e + l[t] + n, 0), f = u.map((e, t) => t), p = d(u, c) - d(f, c);
|
|
24049
|
+
return p === 0 ? null : {
|
|
24050
|
+
x: 0,
|
|
24051
|
+
y: p,
|
|
24052
|
+
scaleX: 1,
|
|
24053
|
+
scaleY: 1
|
|
24054
|
+
};
|
|
24055
|
+
}, aB = () => !1, oB = {
|
|
24056
|
+
duration: .2,
|
|
24057
|
+
ease: "easeOut"
|
|
24058
|
+
}, sB = ({ id: e, disabled: t = !1, settle: n, children: r }) => {
|
|
24059
|
+
let i = Ln(), { listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = on({
|
|
24038
24060
|
id: e,
|
|
24039
|
-
disabled: t
|
|
24040
|
-
|
|
24041
|
-
|
|
24042
|
-
|
|
24061
|
+
disabled: t,
|
|
24062
|
+
animateLayoutChanges: aB
|
|
24063
|
+
}), u = {
|
|
24064
|
+
transform: M.Translate.toString(s && {
|
|
24065
|
+
...s,
|
|
24043
24066
|
x: 0
|
|
24044
24067
|
}),
|
|
24045
|
-
transition:
|
|
24068
|
+
transition: c ?? void 0
|
|
24046
24069
|
};
|
|
24047
24070
|
return /* @__PURE__ */ Q("div", {
|
|
24048
|
-
ref:
|
|
24049
|
-
style:
|
|
24071
|
+
ref: o,
|
|
24072
|
+
style: u,
|
|
24050
24073
|
"data-widget-id": e,
|
|
24051
|
-
className: V(!t && "cursor-grab active:cursor-grabbing",
|
|
24052
|
-
...t ? {} :
|
|
24053
|
-
children:
|
|
24074
|
+
className: V(!t && "cursor-grab active:cursor-grabbing", l && "invisible"),
|
|
24075
|
+
...t ? {} : a,
|
|
24076
|
+
children: /* @__PURE__ */ Q(H.div, {
|
|
24077
|
+
layout: "position",
|
|
24078
|
+
layoutDependency: n,
|
|
24079
|
+
transition: { layout: rR(oB, i) },
|
|
24080
|
+
children: r({ isDragging: l })
|
|
24081
|
+
})
|
|
24054
24082
|
});
|
|
24055
|
-
},
|
|
24083
|
+
}, cB = 12, lB = 280, uB = 2, dB = /* @__PURE__ */ new Set([
|
|
24056
24084
|
"auto",
|
|
24057
24085
|
"scroll",
|
|
24058
24086
|
"overlay"
|
|
24059
|
-
]),
|
|
24087
|
+
]), fB = (e) => {
|
|
24060
24088
|
let t = e.parentElement;
|
|
24061
24089
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
24062
|
-
if (
|
|
24090
|
+
if (dB.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
|
|
24063
24091
|
t = t.parentElement;
|
|
24064
24092
|
}
|
|
24065
24093
|
return null;
|
|
24066
24094
|
};
|
|
24067
|
-
function
|
|
24095
|
+
function pB({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
24068
24096
|
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;
|
|
24069
24097
|
q(() => {
|
|
24070
|
-
d && !f && o && l(
|
|
24098
|
+
d && !f && o && l(fB(o));
|
|
24071
24099
|
}, [
|
|
24072
24100
|
d,
|
|
24073
24101
|
f,
|
|
@@ -24088,7 +24116,7 @@ function cB({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
24088
24116
|
o,
|
|
24089
24117
|
u
|
|
24090
24118
|
]);
|
|
24091
|
-
let h = d && u != null && t >= (a?.threshold ??
|
|
24119
|
+
let h = d && u != null && t >= (a?.threshold ?? cB), g = Y(r);
|
|
24092
24120
|
g.current = r;
|
|
24093
24121
|
let _ = r.join(","), v = G((e) => {
|
|
24094
24122
|
let t = new Set(Ts(e));
|
|
@@ -24100,8 +24128,8 @@ function cB({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
24100
24128
|
gap: n,
|
|
24101
24129
|
scrollMargin: p,
|
|
24102
24130
|
rangeExtractor: v,
|
|
24103
|
-
overscan: a?.overscan ??
|
|
24104
|
-
estimateSize: () => a?.estimateHeight ??
|
|
24131
|
+
overscan: a?.overscan ?? uB,
|
|
24132
|
+
estimateSize: () => a?.estimateHeight ?? lB,
|
|
24105
24133
|
getScrollElement: () => u
|
|
24106
24134
|
});
|
|
24107
24135
|
return {
|
|
@@ -24118,10 +24146,10 @@ function cB({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
24118
24146
|
}
|
|
24119
24147
|
//#endregion
|
|
24120
24148
|
//#region src/domains/platform/home/Home/WidgetContainer/verticalOnly.ts
|
|
24121
|
-
var
|
|
24149
|
+
var mB = ({ transform: e }) => ({
|
|
24122
24150
|
...e,
|
|
24123
24151
|
x: 0
|
|
24124
|
-
}),
|
|
24152
|
+
}), hB = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
|
|
24125
24153
|
let a = Ln(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? WL : e?.arriving ? KL(s, e.delayMs) : !t || t.instant ? WL : o ? eR : tR;
|
|
24126
24154
|
return /* @__PURE__ */ Q(H.div, {
|
|
24127
24155
|
"data-widget-id": r,
|
|
@@ -24137,7 +24165,7 @@ var lB = ({ transform: e }) => ({
|
|
|
24137
24165
|
transition: c,
|
|
24138
24166
|
children: i
|
|
24139
24167
|
});
|
|
24140
|
-
},
|
|
24168
|
+
}, gB = ({ host: e, children: t }) => {
|
|
24141
24169
|
let n = Y();
|
|
24142
24170
|
if (!n.current) {
|
|
24143
24171
|
let e = document.createElement("div");
|
|
@@ -24157,7 +24185,7 @@ var lB = ({ transform: e }) => ({
|
|
|
24157
24185
|
ref: o,
|
|
24158
24186
|
className: "contents"
|
|
24159
24187
|
}), Xl(t, r)] });
|
|
24160
|
-
},
|
|
24188
|
+
}, _B = [
|
|
24161
24189
|
"a",
|
|
24162
24190
|
"button",
|
|
24163
24191
|
"input",
|
|
@@ -24171,28 +24199,28 @@ var lB = ({ transform: e }) => ({
|
|
|
24171
24199
|
"[role='checkbox']",
|
|
24172
24200
|
"[role='tab']",
|
|
24173
24201
|
"[contenteditable='true']"
|
|
24174
|
-
].join(","),
|
|
24202
|
+
].join(","), vB = class extends ke {
|
|
24175
24203
|
static activators = [{
|
|
24176
24204
|
eventName: "onPointerDown",
|
|
24177
24205
|
handler: ({ nativeEvent: e }, { onActivation: t }) => {
|
|
24178
24206
|
if (!e.isPrimary || e.button !== 0) return !1;
|
|
24179
24207
|
let n = e.target;
|
|
24180
|
-
return n instanceof Element && n.closest(
|
|
24208
|
+
return n instanceof Element && n.closest(_B) ? !1 : (t?.({ event: e }), !0);
|
|
24181
24209
|
}
|
|
24182
24210
|
}];
|
|
24183
|
-
},
|
|
24211
|
+
}, yB = {
|
|
24184
24212
|
duration: 450,
|
|
24185
24213
|
easing: "cubic-bezier(0.4, 0, 0.1, 1)"
|
|
24186
|
-
},
|
|
24214
|
+
}, bB = (e, t) => {
|
|
24187
24215
|
for (let n = e; n; n = n.parentElement) {
|
|
24188
24216
|
let e = n.querySelector(t);
|
|
24189
24217
|
if (e) return e;
|
|
24190
24218
|
}
|
|
24191
24219
|
return null;
|
|
24192
|
-
},
|
|
24220
|
+
}, xB = {
|
|
24193
24221
|
main: 24,
|
|
24194
24222
|
right: 16
|
|
24195
|
-
},
|
|
24223
|
+
}, SB = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
|
|
24196
24224
|
ref: t ? n : void 0,
|
|
24197
24225
|
"data-index": t?.index,
|
|
24198
24226
|
hidden: e,
|
|
@@ -24203,7 +24231,7 @@ var lB = ({ transform: e }) => ({
|
|
|
24203
24231
|
width: "100%"
|
|
24204
24232
|
} : { display: e ? void 0 : "contents" },
|
|
24205
24233
|
children: r
|
|
24206
|
-
}),
|
|
24234
|
+
}), CB = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Tn, {
|
|
24207
24235
|
label: t,
|
|
24208
24236
|
children: /* @__PURE__ */ Q("button", {
|
|
24209
24237
|
type: "button",
|
|
@@ -24217,80 +24245,79 @@ var lB = ({ transform: e }) => ({
|
|
|
24217
24245
|
})
|
|
24218
24246
|
})
|
|
24219
24247
|
});
|
|
24220
|
-
function
|
|
24221
|
-
let
|
|
24222
|
-
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
|
|
24248
|
+
function wB({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: a, disableEdition: o = !1, disableDrag: s = !1, widgetHostFor: c, afterWidgets: l, dragSurfaceSelector: u, onRemoveWidget: d, onClickAddNewWidget: f, onReorder: p, visibleWidgetId: m, entrance: h = {}, virtualized: g = !1, stow: _, addWidgetLabel: v, onChangeWidgetParams: y, rebuildWidget: b, renderWidgetPreview: x, paramsPreviewWidth: S, removeLabel: w, editParamsLabel: T, ctx: D = {}, className: k, style: A }) {
|
|
24249
|
+
let j = z(), M = !o, N = (e) => m !== void 0 && e.id !== m, P = M && p != null, I = e.filter((e) => !e.locked).length > 1, [L, ee] = X(null), [te, ne] = X(0), [re, ie] = X(() => /* @__PURE__ */ new Map()), R = J(() => new Set(e.flatMap((e, t) => e.locked ? [t] : [])), [e]), ae = J(() => iB({
|
|
24250
|
+
pinned: R,
|
|
24251
|
+
pinnedHeights: re,
|
|
24252
|
+
gap: xB[t]
|
|
24253
|
+
}), [
|
|
24254
|
+
R,
|
|
24255
|
+
re,
|
|
24256
|
+
t
|
|
24257
|
+
]), oe = Nt(F(vB, { activationConstraint: { distance: 4 } })), [se, ce] = X(null), le = e.find((e) => e.id === se), [ue, de] = X(null), fe = Y(null), pe = Y(null), me = Y(null), he = Y(null), ge = J(() => [mB, tB(() => he.current)], []), _e = (e) => {
|
|
24258
|
+
let t = fe.current?.querySelector(`[data-widget-id="${e}"]`);
|
|
24259
|
+
pe.current = Uz(t), me.current = u ? Wz(bB(fe.current, u), t) : null;
|
|
24260
|
+
}, ve = (e) => {
|
|
24261
|
+
e && pe.current && e.replaceChildren(pe.current);
|
|
24262
|
+
}, ye = Y(0), be = () => cancelAnimationFrame(ye.current), xe = (e) => {
|
|
24263
|
+
be();
|
|
24264
|
+
let t = me.current;
|
|
24229
24265
|
if (!e || !t) return;
|
|
24230
24266
|
e.replaceChildren(t.node), e.style.top = `${t.offset.top}px`, e.style.left = `${t.offset.left}px`, e.style.width = `${t.offset.width}px`, e.style.height = `${t.offset.height}px`, t.base && (e.style.backgroundColor = t.base);
|
|
24231
24267
|
let n = e.parentElement?.parentElement;
|
|
24232
24268
|
if (!n || typeof DOMMatrix != "function") return;
|
|
24233
24269
|
let r = () => {
|
|
24234
24270
|
let { m41: t, m42: i } = new DOMMatrix(getComputedStyle(n).transform);
|
|
24235
|
-
e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`,
|
|
24271
|
+
e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`, ye.current = requestAnimationFrame(r);
|
|
24236
24272
|
};
|
|
24237
24273
|
r();
|
|
24238
|
-
},
|
|
24239
|
-
config:
|
|
24274
|
+
}, Se = pB({
|
|
24275
|
+
config: g === !0 ? {} : g,
|
|
24240
24276
|
count: e.length,
|
|
24241
|
-
gap:
|
|
24242
|
-
pinned:
|
|
24243
|
-
paused:
|
|
24244
|
-
}),
|
|
24245
|
-
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 =
|
|
24277
|
+
gap: xB[t],
|
|
24278
|
+
pinned: L ? [e.findIndex((e) => e.id === L)] : [],
|
|
24279
|
+
paused: m !== void 0
|
|
24280
|
+
}), Ce = g !== !1 && m !== void 0, we = ({ activatorEvent: t, delta: n, active: r }) => {
|
|
24281
|
+
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 = he.current == null ? [] : $z(e);
|
|
24246
24282
|
return e.find((e) => {
|
|
24247
24283
|
if (!e.locked || c.includes(e)) return !1;
|
|
24248
|
-
let t =
|
|
24284
|
+
let t = fe.current?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
24249
24285
|
if (!t) return !1;
|
|
24250
24286
|
let n = t.top + t.height / 2, r = !!i && i.top <= n && i.bottom >= n, a = o != null && s != null && o >= t.left && o <= t.right && s >= t.top && s <= t.bottom;
|
|
24251
24287
|
return r || a;
|
|
24252
24288
|
});
|
|
24253
|
-
},
|
|
24289
|
+
}, Te = (e) => {
|
|
24254
24290
|
let t = [...e.actions ?? []];
|
|
24255
24291
|
return qR(e.header, e.params)?.info && t.push({
|
|
24256
|
-
label:
|
|
24292
|
+
label: j.widgets.whatThisMeans,
|
|
24257
24293
|
icon: ac,
|
|
24258
|
-
onClick: () =>
|
|
24259
|
-
}), e.paramsSchema &&
|
|
24260
|
-
label:
|
|
24294
|
+
onClick: () => de(e.id)
|
|
24295
|
+
}), e.paramsSchema && y && t.push({
|
|
24296
|
+
label: T ?? j.widgets.editParams,
|
|
24261
24297
|
icon: vr,
|
|
24262
|
-
onClick: () =>
|
|
24263
|
-
}),
|
|
24264
|
-
label:
|
|
24298
|
+
onClick: () => ce(e.id)
|
|
24299
|
+
}), M && !e.locked && d && (t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
24300
|
+
label: w ?? j.widgets.removeWidget,
|
|
24265
24301
|
icon: Na,
|
|
24266
24302
|
critical: !0,
|
|
24267
|
-
onClick: () =>
|
|
24303
|
+
onClick: () => d(e.id)
|
|
24268
24304
|
})), t;
|
|
24269
|
-
},
|
|
24270
|
-
let { active: n, over: r } = t, i =
|
|
24271
|
-
if (
|
|
24272
|
-
|
|
24273
|
-
variant: "warning",
|
|
24274
|
-
title: M.widgets.cannotMoveHere.replace("{{title}}", JR(i))
|
|
24275
|
-
});
|
|
24276
|
-
return;
|
|
24277
|
-
}
|
|
24278
|
-
if (!r || n.id === r.id) return;
|
|
24279
|
-
let a = e.map((e) => e.id), o = a.indexOf(String(n.id)), s = a.indexOf(String(r.id));
|
|
24280
|
-
if (o < 0 || s < 0) return;
|
|
24281
|
-
let c = new Map(e.flatMap((e, t) => e.locked ? [[t, e.id]] : []));
|
|
24282
|
-
if (c.size === 0) {
|
|
24283
|
-
m?.(te(a, o, s));
|
|
24305
|
+
}, De = (t) => {
|
|
24306
|
+
let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ? nB(i.length, R, i.indexOf(String(n.id)), i.indexOf(String(r.id))) : null;
|
|
24307
|
+
if (a) {
|
|
24308
|
+
p?.(a.map((e) => i[e]));
|
|
24284
24309
|
return;
|
|
24285
24310
|
}
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24311
|
+
let o = we(t);
|
|
24312
|
+
o && Rt.open({
|
|
24313
|
+
variant: "warning",
|
|
24314
|
+
title: j.widgets.cannotMoveHere.replace("{{title}}", JR(o))
|
|
24315
|
+
});
|
|
24316
|
+
}, Oe = (e, t, n = e.params) => /* @__PURE__ */ Q(zR, {
|
|
24290
24317
|
widgetId: e.id,
|
|
24291
|
-
children:
|
|
24292
|
-
}),
|
|
24293
|
-
let r =
|
|
24318
|
+
children: ke(e, t, n)
|
|
24319
|
+
}), ke = (e, t, n = e.params) => {
|
|
24320
|
+
let r = Te(e);
|
|
24294
24321
|
if (!a) return /* @__PURE__ */ Q(Fz, {
|
|
24295
24322
|
...ZR(e),
|
|
24296
24323
|
header: e.header,
|
|
@@ -24299,13 +24326,13 @@ function yB({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
24299
24326
|
slots: e.slots,
|
|
24300
24327
|
loading: e.loading,
|
|
24301
24328
|
slotRenderers: i,
|
|
24302
|
-
ctx:
|
|
24329
|
+
ctx: D,
|
|
24303
24330
|
actions: r.length > 0 ? r : void 0,
|
|
24304
|
-
flipped:
|
|
24305
|
-
onFlipBack: () =>
|
|
24331
|
+
flipped: ue === e.id,
|
|
24332
|
+
onFlipBack: () => de(null),
|
|
24306
24333
|
isDragging: t?.isDragging
|
|
24307
24334
|
});
|
|
24308
|
-
let o = a(e,
|
|
24335
|
+
let o = a(e, D);
|
|
24309
24336
|
return r.length === 0 ? o : /* @__PURE__ */ $("div", {
|
|
24310
24337
|
className: "relative",
|
|
24311
24338
|
children: [o, /* @__PURE__ */ Q("div", {
|
|
@@ -24323,112 +24350,113 @@ function yB({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
24323
24350
|
})
|
|
24324
24351
|
})]
|
|
24325
24352
|
});
|
|
24326
|
-
},
|
|
24327
|
-
...
|
|
24328
|
-
stowed:
|
|
24329
|
-
instant:
|
|
24330
|
-
},
|
|
24331
|
-
let i = n ?
|
|
24332
|
-
return !
|
|
24333
|
-
arrival:
|
|
24334
|
-
order: (
|
|
24335
|
-
delayMs:
|
|
24336
|
-
arriving: !
|
|
24353
|
+
}, Ae = h === !1 ? null : h, je = aR(oR(Ae?.delayMs)), Me = (e) => _ && {
|
|
24354
|
+
..._,
|
|
24355
|
+
stowed: _.stowed && e.id !== m,
|
|
24356
|
+
instant: _.stowed
|
|
24357
|
+
}, Ne = (e, t, n, r) => {
|
|
24358
|
+
let i = n ? Me(n) : void 0;
|
|
24359
|
+
return !Ae && !i && !r ? t : /* @__PURE__ */ Q(hB, {
|
|
24360
|
+
arrival: Ae ? {
|
|
24361
|
+
order: (Ae.order ?? 0) + e,
|
|
24362
|
+
delayMs: Ae.delayMs ?? 0,
|
|
24363
|
+
arriving: !je
|
|
24337
24364
|
} : void 0,
|
|
24338
24365
|
stow: i,
|
|
24339
24366
|
fullHeight: n?.fullHeight,
|
|
24340
24367
|
widgetId: r,
|
|
24341
24368
|
children: t
|
|
24342
24369
|
});
|
|
24343
|
-
},
|
|
24344
|
-
hidden:
|
|
24370
|
+
}, Pe = (e, t, n) => /* @__PURE__ */ Q(SB, {
|
|
24371
|
+
hidden: N(e),
|
|
24345
24372
|
placement: n,
|
|
24346
|
-
measureRef:
|
|
24347
|
-
children: /* @__PURE__ */ Q(
|
|
24348
|
-
host:
|
|
24349
|
-
children:
|
|
24373
|
+
measureRef: Se.measureRef,
|
|
24374
|
+
children: /* @__PURE__ */ Q(gB, {
|
|
24375
|
+
host: c?.(e),
|
|
24376
|
+
children: P ? /* @__PURE__ */ Q(sB, {
|
|
24350
24377
|
id: e.id,
|
|
24351
|
-
disabled: e.locked ||
|
|
24352
|
-
|
|
24353
|
-
|
|
24378
|
+
disabled: e.locked || s || !I,
|
|
24379
|
+
settle: te,
|
|
24380
|
+
children: (n) => Ne(t, Oe(e, n), e)
|
|
24381
|
+
}) : Ne(t, Oe(e), e, e.id)
|
|
24354
24382
|
})
|
|
24355
|
-
}, e.id),
|
|
24356
|
-
ref:
|
|
24383
|
+
}, e.id), Fe = /* @__PURE__ */ Q("div", {
|
|
24384
|
+
ref: Se.listRef,
|
|
24357
24385
|
className: V("flex flex-col", t === "main" ? "gap-6" : "gap-4"),
|
|
24358
|
-
style:
|
|
24386
|
+
style: Se.window ? {
|
|
24359
24387
|
position: "relative",
|
|
24360
|
-
height:
|
|
24388
|
+
height: Se.window.totalSize
|
|
24361
24389
|
} : void 0,
|
|
24362
|
-
children:
|
|
24390
|
+
children: Se.window ? Se.window.placements.map((t) => Pe(e[t.index], t.index, t)) : e.flatMap((e, t) => Ce && e.id !== m ? [] : [Pe(e, t)])
|
|
24363
24391
|
});
|
|
24364
24392
|
return /* @__PURE__ */ $("div", {
|
|
24365
|
-
ref:
|
|
24366
|
-
className: V("relative flex flex-col [&_*]:shadow-none", t === "main" ? "gap-6" : "gap-4",
|
|
24367
|
-
style:
|
|
24393
|
+
ref: fe,
|
|
24394
|
+
className: V("relative flex flex-col [&_*]:shadow-none", t === "main" ? "gap-6" : "gap-4", k),
|
|
24395
|
+
style: A,
|
|
24368
24396
|
children: [
|
|
24369
24397
|
n,
|
|
24370
|
-
|
|
24371
|
-
sensors:
|
|
24398
|
+
P ? /* @__PURE__ */ $(Ee, {
|
|
24399
|
+
sensors: oe,
|
|
24372
24400
|
collisionDetection: C,
|
|
24373
|
-
modifiers:
|
|
24401
|
+
modifiers: ge,
|
|
24374
24402
|
onDragStart: ({ active: n }) => {
|
|
24375
|
-
|
|
24403
|
+
_e(String(n.id)), he.current = eB(e, fe.current, xB[t]), ie(rB(e, fe.current)), ee(String(n.id));
|
|
24376
24404
|
},
|
|
24377
24405
|
onDragCancel: () => {
|
|
24378
|
-
|
|
24406
|
+
ee(null), be(), pe.current = null, me.current = null, he.current = null;
|
|
24379
24407
|
},
|
|
24380
24408
|
onDragEnd: (e) => {
|
|
24381
|
-
|
|
24409
|
+
ee(null), ne((e) => e + 1), pe.current = null, me.current = null, De(e), he.current = null;
|
|
24382
24410
|
},
|
|
24383
24411
|
children: [
|
|
24384
24412
|
/* @__PURE__ */ Q(O, {
|
|
24385
24413
|
items: e.map((e) => e.id),
|
|
24386
|
-
strategy:
|
|
24387
|
-
children:
|
|
24414
|
+
strategy: ae,
|
|
24415
|
+
children: Fe
|
|
24388
24416
|
}),
|
|
24389
|
-
|
|
24417
|
+
L ? /* @__PURE__ */ Q("div", {
|
|
24390
24418
|
"aria-hidden": !0,
|
|
24391
24419
|
"data-drag-cursor": !0,
|
|
24392
24420
|
className: "fixed inset-0 z-50 cursor-grabbing"
|
|
24393
24421
|
}) : null,
|
|
24394
24422
|
/* @__PURE__ */ Q(E, {
|
|
24395
|
-
dropAnimation:
|
|
24396
|
-
children:
|
|
24423
|
+
dropAnimation: yB,
|
|
24424
|
+
children: L ? /* @__PURE__ */ $("div", {
|
|
24397
24425
|
className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
|
|
24398
24426
|
children: [/* @__PURE__ */ Q("div", {
|
|
24399
|
-
ref:
|
|
24427
|
+
ref: xe,
|
|
24400
24428
|
className: "absolute isolate"
|
|
24401
24429
|
}), /* @__PURE__ */ Q("div", {
|
|
24402
|
-
ref:
|
|
24430
|
+
ref: ve,
|
|
24403
24431
|
className: "relative h-full w-full [&_*]:shadow-none"
|
|
24404
24432
|
})]
|
|
24405
24433
|
}) : null
|
|
24406
24434
|
})
|
|
24407
24435
|
]
|
|
24408
|
-
}) :
|
|
24409
|
-
|
|
24410
|
-
r == null ? null :
|
|
24411
|
-
!o &&
|
|
24412
|
-
onClick:
|
|
24413
|
-
label:
|
|
24436
|
+
}) : Fe,
|
|
24437
|
+
l,
|
|
24438
|
+
r == null ? null : Ne(e.length, /* @__PURE__ */ Q(Qz, { text: r })),
|
|
24439
|
+
!o && f ? Ne(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(CB, {
|
|
24440
|
+
onClick: f,
|
|
24441
|
+
label: v ?? j.widgets.addWidget,
|
|
24414
24442
|
side: t
|
|
24415
24443
|
})) : null,
|
|
24416
|
-
|
|
24444
|
+
le?.paramsSchema && y ? /* @__PURE__ */ Q(Hz, {
|
|
24417
24445
|
isOpen: !0,
|
|
24418
|
-
onClose: () =>
|
|
24419
|
-
schema:
|
|
24420
|
-
params:
|
|
24421
|
-
info:
|
|
24422
|
-
previewWidth:
|
|
24423
|
-
renderPreview: (e) =>
|
|
24424
|
-
onSave: (e) =>
|
|
24425
|
-
},
|
|
24446
|
+
onClose: () => ce(null),
|
|
24447
|
+
schema: le.paramsSchema,
|
|
24448
|
+
params: le.params,
|
|
24449
|
+
info: le.header?.info,
|
|
24450
|
+
previewWidth: S,
|
|
24451
|
+
renderPreview: (e) => b ? Oe(b(le, e), void 0, e) : x ? x(le, e) : Oe(le, void 0, e),
|
|
24452
|
+
onSave: (e) => y(le.id, e)
|
|
24453
|
+
}, le.id) : null
|
|
24426
24454
|
]
|
|
24427
24455
|
});
|
|
24428
24456
|
}
|
|
24429
24457
|
//#endregion
|
|
24430
24458
|
//#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
|
|
24431
|
-
var
|
|
24459
|
+
var TB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
24432
24460
|
let a = Ln(), [o, s] = X(!1);
|
|
24433
24461
|
K(() => {
|
|
24434
24462
|
r && s(!0);
|
|
@@ -24458,15 +24486,15 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24458
24486
|
},
|
|
24459
24487
|
glyphDelayMs: o ? 90 : 220
|
|
24460
24488
|
};
|
|
24461
|
-
},
|
|
24489
|
+
}, EB = {
|
|
24462
24490
|
morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
|
|
24463
24491
|
afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
|
|
24464
24492
|
evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
|
|
24465
|
-
},
|
|
24493
|
+
}, DB = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
|
|
24466
24494
|
"aria-hidden": !0,
|
|
24467
|
-
className: V("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
|
|
24468
|
-
}),
|
|
24469
|
-
let A = z(), j = Ln(), M = Y(null), [N, P] = X(0), [F, I] = X(!1), [
|
|
24495
|
+
className: V("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", EB[e], t)
|
|
24496
|
+
}), OB = 40, kB = 672, AB = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", jB = 16, MB = 768, NB = { display: "contents" }, PB = 150, FB = 150, IB = zl(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, draggableWidgetContainers: l, virtualizedWidgetContainers: u = [], virtualization: d, onRemoveWidget: f, onChangeWidgetParams: p, rebuildWidget: m, renderWidgetPreview: h, onClickAddNewWidget: g, onReorderWidgets: _, tracking: v, period: y = "morning", asideWidth: b = 396, mainWidth: x = kB, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
|
|
24497
|
+
let A = z(), j = Ln(), M = Y(null), [N, P] = X(0), [F, I] = X(!1), [L, ee] = X(null), [te, ne] = X(0), [re, ie] = X(!1), R = Y(null), ae = Y(null);
|
|
24470
24498
|
q(function() {
|
|
24471
24499
|
let e = M.current;
|
|
24472
24500
|
if (!e) return;
|
|
@@ -24481,7 +24509,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24481
24509
|
let [oe, se] = X(null), ce = (e) => s.includes(e), le = (e) => ce(e) && (c?.includes(e) ?? !0), ue = (e) => ce(e) && (l?.includes(e) ?? !0), de = kz(), fe = kz(), pe = kz(), me = (e) => u.includes(e) ? {
|
|
24482
24510
|
...d,
|
|
24483
24511
|
scrollElement: e === "main" ? de.element : fe.element
|
|
24484
|
-
} : !1, he = i != null || r.length > 0 || g != null && le("right"), ge = N > 0 && N < x +
|
|
24512
|
+
} : !1, he = i != null || r.length > 0 || g != null && le("right"), ge = N > 0 && N < x + jB + b, _e = he && r.length > 0 && (ge || (oe ?? !1)), ve = _e ? OB : b, ye = _e ? A.actions.expand : A.actions.collapse, be = he && F, xe = N > 0 && N < MB, Se = be && !xe && (_e || N >= MB), Ce = {
|
|
24485
24513
|
pinned: r.filter((e) => e.locked),
|
|
24486
24514
|
rest: r.filter((e) => !e.locked)
|
|
24487
24515
|
}, [we, Te] = X({}), Ee = Y(/* @__PURE__ */ new Map()), De = (e) => {
|
|
@@ -24499,33 +24527,33 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24499
24527
|
...ke.slice(0, C).map(Ae),
|
|
24500
24528
|
...Ce.pinned.map((e) => /* @__PURE__ */ Q("div", {
|
|
24501
24529
|
ref: De(e.id),
|
|
24502
|
-
style:
|
|
24530
|
+
style: NB
|
|
24503
24531
|
}, `pin-host-${e.id}`)),
|
|
24504
24532
|
...ke.slice(C).map((e, t) => Ae(e, C + t))
|
|
24505
|
-
], Me = _e ? r.find((e) => e.id ===
|
|
24533
|
+
], Me = _e ? r.find((e) => e.id === L) : void 0;
|
|
24506
24534
|
K(function() {
|
|
24507
|
-
_e || (
|
|
24535
|
+
_e || (ae.current && clearTimeout(ae.current), ae.current = null, ee(null));
|
|
24508
24536
|
}, [_e]), K(function() {
|
|
24509
24537
|
return () => {
|
|
24510
|
-
|
|
24538
|
+
ae.current && clearTimeout(ae.current), R.current && clearTimeout(R.current);
|
|
24511
24539
|
};
|
|
24512
24540
|
}, []);
|
|
24513
|
-
let Ne =
|
|
24541
|
+
let Ne = TB({
|
|
24514
24542
|
collapsed: _e,
|
|
24515
24543
|
open: Me != null,
|
|
24516
|
-
glide:
|
|
24544
|
+
glide: re,
|
|
24517
24545
|
drawn: be,
|
|
24518
24546
|
width: ve
|
|
24519
24547
|
}), Pe = Ne.mode === "panel", Fe = Y(null);
|
|
24520
|
-
|
|
24548
|
+
L && (Fe.current = L);
|
|
24521
24549
|
let Ie = Y(null);
|
|
24522
|
-
Ie.current =
|
|
24523
|
-
let Le =
|
|
24550
|
+
Ie.current = L;
|
|
24551
|
+
let Le = L ?? (Ne.panelHidden ? null : Fe.current), Re = Pe ? {
|
|
24524
24552
|
transformOrigin: qL,
|
|
24525
24553
|
top: 0,
|
|
24526
24554
|
right: 48,
|
|
24527
24555
|
width: b,
|
|
24528
|
-
maxHeight: `calc(100% - ${
|
|
24556
|
+
maxHeight: `calc(100% - ${te}px)`,
|
|
24529
24557
|
pointerEvents: Me ? void 0 : "none"
|
|
24530
24558
|
} : {
|
|
24531
24559
|
transformOrigin: qL,
|
|
@@ -24540,21 +24568,21 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24540
24568
|
...Ne.mode === "retracting" ? { pointerEvents: "none" } : null,
|
|
24541
24569
|
...fe.style
|
|
24542
24570
|
}, ze = () => {
|
|
24543
|
-
L.current && clearTimeout(L.current), L.current = null;
|
|
24544
|
-
}, Be = () => {
|
|
24545
24571
|
R.current && clearTimeout(R.current), R.current = null;
|
|
24572
|
+
}, Be = () => {
|
|
24573
|
+
ae.current && clearTimeout(ae.current), ae.current = null;
|
|
24546
24574
|
}, Ve = () => {
|
|
24547
|
-
ze(), Be(),
|
|
24575
|
+
ze(), Be(), R.current = setTimeout(() => ee(null), PB);
|
|
24548
24576
|
}, He = (e, t) => {
|
|
24549
24577
|
Be();
|
|
24550
24578
|
let n = M.current;
|
|
24551
24579
|
if (n) {
|
|
24552
24580
|
let e = t.getBoundingClientRect().top - n.getBoundingClientRect().top;
|
|
24553
|
-
|
|
24581
|
+
ne(Math.max(0, e));
|
|
24554
24582
|
}
|
|
24555
|
-
|
|
24583
|
+
ie(Ie.current != null), ee(e);
|
|
24556
24584
|
}, Ue = (e, t, n = !1) => {
|
|
24557
|
-
ze(), Be(), Ie.current !== e && (n ? He(e, t) :
|
|
24585
|
+
ze(), Be(), Ie.current !== e && (n ? He(e, t) : ae.current = setTimeout(() => He(e, t), FB));
|
|
24558
24586
|
}, We = /* @__PURE__ */ $(H.div, {
|
|
24559
24587
|
ref: (e) => {
|
|
24560
24588
|
M.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
|
|
@@ -24577,7 +24605,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24577
24605
|
left: -S,
|
|
24578
24606
|
right: -S
|
|
24579
24607
|
},
|
|
24580
|
-
children: /* @__PURE__ */ Q(
|
|
24608
|
+
children: /* @__PURE__ */ Q(DB, { period: y })
|
|
24581
24609
|
}),
|
|
24582
24610
|
/* @__PURE__ */ $(pR, {
|
|
24583
24611
|
order: 0,
|
|
@@ -24605,7 +24633,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24605
24633
|
}),
|
|
24606
24634
|
/* @__PURE__ */ Q("div", {
|
|
24607
24635
|
ref: de.ref,
|
|
24608
|
-
className: V("relative isolate min-h-0 overflow-y-auto",
|
|
24636
|
+
className: V("relative isolate min-h-0 overflow-y-auto", AB),
|
|
24609
24637
|
style: {
|
|
24610
24638
|
gridColumn: 1,
|
|
24611
24639
|
gridRow: 2,
|
|
@@ -24616,17 +24644,17 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24616
24644
|
marginLeft: -S,
|
|
24617
24645
|
paddingLeft: S,
|
|
24618
24646
|
marginRight: Se ? -16 : -S,
|
|
24619
|
-
paddingRight: Se ?
|
|
24647
|
+
paddingRight: Se ? jB : S,
|
|
24620
24648
|
...de.style
|
|
24621
24649
|
},
|
|
24622
|
-
children: /* @__PURE__ */ Q(
|
|
24650
|
+
children: /* @__PURE__ */ Q(wB, {
|
|
24623
24651
|
side: "main",
|
|
24624
24652
|
className: "relative mx-auto w-full",
|
|
24625
24653
|
style: { maxWidth: `${x}px` },
|
|
24626
24654
|
widgets: n,
|
|
24627
24655
|
afterWidgets: Ce.rest.map((e) => /* @__PURE__ */ Q("div", {
|
|
24628
24656
|
ref: De(e.id),
|
|
24629
|
-
style:
|
|
24657
|
+
style: NB
|
|
24630
24658
|
}, `loose-host-${e.id}`)),
|
|
24631
24659
|
footnote: t,
|
|
24632
24660
|
slotRenderers: a,
|
|
@@ -24649,7 +24677,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24649
24677
|
}),
|
|
24650
24678
|
/* @__PURE__ */ Q(Gn, { children: xe || !be || !_e ? null : /* @__PURE__ */ $(H.aside, {
|
|
24651
24679
|
ref: pe.ref,
|
|
24652
|
-
className: V("-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",
|
|
24680
|
+
className: V("-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", AB),
|
|
24653
24681
|
style: {
|
|
24654
24682
|
gridColumn: 2,
|
|
24655
24683
|
gridRow: 2,
|
|
@@ -24666,11 +24694,11 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24666
24694
|
children: [r.map((e, t) => /* @__PURE__ */ Q(Oz, {
|
|
24667
24695
|
widget: e,
|
|
24668
24696
|
order: t,
|
|
24669
|
-
open:
|
|
24697
|
+
open: L === e.id,
|
|
24670
24698
|
delayMs: Ne.glyphDelayMs,
|
|
24671
24699
|
onOpen: Ue,
|
|
24672
24700
|
onCancelOpen: Be,
|
|
24673
|
-
onClose: () =>
|
|
24701
|
+
onClose: () => ee(null)
|
|
24674
24702
|
}, e.id)), le("right") && g ? /* @__PURE__ */ Q(Tn, {
|
|
24675
24703
|
label: A.widgets.addWidget,
|
|
24676
24704
|
children: /* @__PURE__ */ Q(H.button, {
|
|
@@ -24694,19 +24722,19 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24694
24722
|
be ? /* @__PURE__ */ Q(H.aside, {
|
|
24695
24723
|
ref: fe.ref,
|
|
24696
24724
|
hidden: xe || Pe && Ne.panelHidden,
|
|
24697
|
-
className: V("min-h-0 overflow-y-auto overflow-x-hidden",
|
|
24725
|
+
className: V("min-h-0 overflow-y-auto overflow-x-hidden", AB, Pe && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", Ne.mode === "retracting" && "relative z-10"),
|
|
24698
24726
|
style: Re,
|
|
24699
24727
|
initial: !1,
|
|
24700
24728
|
animate: {
|
|
24701
24729
|
opacity: +!!Ne.bodyOut,
|
|
24702
24730
|
scale: Ne.bodyOut ? 1 : JL,
|
|
24703
24731
|
x: Ne.bodyOut ? 0 : 10,
|
|
24704
|
-
y: Pe ?
|
|
24732
|
+
y: Pe ? te : 0
|
|
24705
24733
|
},
|
|
24706
24734
|
transition: Ne.transition,
|
|
24707
24735
|
onMouseEnter: _e ? ze : void 0,
|
|
24708
24736
|
onMouseLeave: _e ? Ve : void 0,
|
|
24709
|
-
children: /* @__PURE__ */ Q(
|
|
24737
|
+
children: /* @__PURE__ */ Q(wB, {
|
|
24710
24738
|
side: "right",
|
|
24711
24739
|
widgets: r,
|
|
24712
24740
|
visibleWidgetId: !xe && Pe ? Le : void 0,
|
|
@@ -24734,7 +24762,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24734
24762
|
"aria-hidden": !0,
|
|
24735
24763
|
className: "absolute z-10",
|
|
24736
24764
|
style: {
|
|
24737
|
-
top:
|
|
24765
|
+
top: te,
|
|
24738
24766
|
bottom: 0,
|
|
24739
24767
|
right: 0,
|
|
24740
24768
|
width: 48
|
|
@@ -24748,36 +24776,36 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24748
24776
|
tracking: v,
|
|
24749
24777
|
children: We
|
|
24750
24778
|
});
|
|
24751
|
-
}),
|
|
24779
|
+
}), LB = (e) => e ? ri[e] : void 0, RB = (e) => e.type === "icon" ? {
|
|
24752
24780
|
...e,
|
|
24753
|
-
icon:
|
|
24754
|
-
} : e,
|
|
24781
|
+
icon: LB(e.icon) ?? da
|
|
24782
|
+
} : e, zB = (e, t, n) => ({
|
|
24755
24783
|
...e.type === "navigate" && Jz(e.href) ? { href: e.href } : {},
|
|
24756
24784
|
onClick: () => n(e, t)
|
|
24757
|
-
}),
|
|
24785
|
+
}), BB = (e, t, n) => ({
|
|
24758
24786
|
label: e.label,
|
|
24759
|
-
icon:
|
|
24787
|
+
icon: LB(e.icon),
|
|
24760
24788
|
variant: e.variant,
|
|
24761
|
-
...
|
|
24762
|
-
}),
|
|
24789
|
+
...zB(e.action, t, n)
|
|
24790
|
+
}), VB = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(Fz, {
|
|
24763
24791
|
headless: !e,
|
|
24764
24792
|
header: e ? { title: e } : void 0,
|
|
24765
24793
|
fullHeight: i,
|
|
24766
24794
|
slots: t,
|
|
24767
24795
|
loading: n,
|
|
24768
24796
|
slotRenderers: r
|
|
24769
|
-
}),
|
|
24797
|
+
}), HB = "agentic-empty-state", UB = [
|
|
24770
24798
|
"default",
|
|
24771
24799
|
"outline",
|
|
24772
24800
|
"neutral",
|
|
24773
24801
|
"promote"
|
|
24774
|
-
],
|
|
24802
|
+
], WB = (e) => UB.find((t) => t === e), GB = ({ empty: e, elementId: t, onAction: n }) => {
|
|
24775
24803
|
let r = z(), 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) => ({
|
|
24776
24804
|
label: e.label,
|
|
24777
|
-
icon:
|
|
24778
|
-
variant:
|
|
24805
|
+
icon: LB(e.icon),
|
|
24806
|
+
variant: WB(e.variant),
|
|
24779
24807
|
onClick: () => n(e.action, t ? { elementId: t } : {})
|
|
24780
|
-
})), s = J(() => ({ [
|
|
24808
|
+
})), s = J(() => ({ [HB]: () => /* @__PURE__ */ Q(x, {
|
|
24781
24809
|
title: i,
|
|
24782
24810
|
description: a,
|
|
24783
24811
|
emoji: e?.emoji ?? "📭",
|
|
@@ -24788,27 +24816,27 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24788
24816
|
e?.emoji,
|
|
24789
24817
|
o
|
|
24790
24818
|
]);
|
|
24791
|
-
return /* @__PURE__ */ Q(
|
|
24819
|
+
return /* @__PURE__ */ Q(VB, {
|
|
24792
24820
|
slots: [{
|
|
24793
|
-
visualization:
|
|
24821
|
+
visualization: HB,
|
|
24794
24822
|
params: {}
|
|
24795
24823
|
}],
|
|
24796
24824
|
slotRenderers: s
|
|
24797
24825
|
});
|
|
24798
|
-
},
|
|
24799
|
-
let t = z(), n = J(() => ({ [
|
|
24826
|
+
}, KB = ({ message: e }) => {
|
|
24827
|
+
let t = z(), n = J(() => ({ [HB]: () => /* @__PURE__ */ Q(x, {
|
|
24800
24828
|
variant: "critical",
|
|
24801
24829
|
title: t.collections.emptyStates.error.title,
|
|
24802
24830
|
description: e ?? t.collections.emptyStates.error.description
|
|
24803
24831
|
}) }), [t, e]);
|
|
24804
|
-
return /* @__PURE__ */ Q(
|
|
24832
|
+
return /* @__PURE__ */ Q(VB, {
|
|
24805
24833
|
slots: [{
|
|
24806
|
-
visualization:
|
|
24834
|
+
visualization: HB,
|
|
24807
24835
|
params: {}
|
|
24808
24836
|
}],
|
|
24809
24837
|
slotRenderers: n
|
|
24810
24838
|
});
|
|
24811
|
-
},
|
|
24839
|
+
}, qB = (e) => {
|
|
24812
24840
|
switch (e.type) {
|
|
24813
24841
|
case "stats": return e.stats;
|
|
24814
24842
|
case "charts": return e.charts;
|
|
@@ -24819,15 +24847,15 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24819
24847
|
case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
|
|
24820
24848
|
case "text": return [];
|
|
24821
24849
|
}
|
|
24822
|
-
},
|
|
24850
|
+
}, JB = (e, t, n, r) => {
|
|
24823
24851
|
let i = t?.itemActions;
|
|
24824
|
-
if (i) for (let t of
|
|
24852
|
+
if (i) for (let t of qB(e)) (!t.action || !i.includes(t.action.type)) && r.push({
|
|
24825
24853
|
rule: "itemAction",
|
|
24826
24854
|
...n,
|
|
24827
24855
|
itemId: t.id,
|
|
24828
24856
|
expected: i
|
|
24829
24857
|
});
|
|
24830
|
-
},
|
|
24858
|
+
}, YB = {
|
|
24831
24859
|
stats: 3,
|
|
24832
24860
|
charts: 2,
|
|
24833
24861
|
list: 3,
|
|
@@ -24835,7 +24863,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24835
24863
|
events: 2,
|
|
24836
24864
|
posts: 1,
|
|
24837
24865
|
widget: 3
|
|
24838
|
-
},
|
|
24866
|
+
}, XB = (e) => Math.max(1, e.expectedItemsCount ?? YB[e.type]), ZB = (e) => {
|
|
24839
24867
|
switch (e.type) {
|
|
24840
24868
|
case "stats": return e.stats.length;
|
|
24841
24869
|
case "charts": return e.charts.length;
|
|
@@ -24846,7 +24874,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24846
24874
|
case "shortcuts": return e.shortcuts.length;
|
|
24847
24875
|
case "text": return 1;
|
|
24848
24876
|
}
|
|
24849
|
-
},
|
|
24877
|
+
}, QB = (e, t) => {
|
|
24850
24878
|
switch (e.type) {
|
|
24851
24879
|
case "stats": return {
|
|
24852
24880
|
...e,
|
|
@@ -24878,22 +24906,22 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24878
24906
|
};
|
|
24879
24907
|
case "text": return e;
|
|
24880
24908
|
}
|
|
24881
|
-
},
|
|
24882
|
-
let i =
|
|
24909
|
+
}, $B = (e, t) => e.blocks?.find((e) => e.type === t), eV = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, tV = (e, t, n, r) => {
|
|
24910
|
+
let i = $B(n, e.type)?.maxItems, a = ZB(e);
|
|
24883
24911
|
return i === void 0 || a <= i ? e : (r.push({
|
|
24884
24912
|
rule: "maxItems",
|
|
24885
24913
|
elementId: t,
|
|
24886
24914
|
blockType: e.type,
|
|
24887
24915
|
limit: i,
|
|
24888
24916
|
count: a
|
|
24889
|
-
}),
|
|
24890
|
-
},
|
|
24891
|
-
let n = e.type === "widget" ? void 0 :
|
|
24892
|
-
return n !== void 0 &&
|
|
24917
|
+
}), QB(e, i));
|
|
24918
|
+
}, nV = (e, t) => {
|
|
24919
|
+
let n = e.type === "widget" ? void 0 : $B(t, e.type)?.maxItems;
|
|
24920
|
+
return n !== void 0 && XB(e) > n ? {
|
|
24893
24921
|
...e,
|
|
24894
24922
|
expectedItemsCount: Math.max(1, n)
|
|
24895
24923
|
} : e;
|
|
24896
|
-
},
|
|
24924
|
+
}, rV = (e, t, n) => t === n || (t === "widget" || n === "widget") && !$B(e, "widget") || ($B(e, t)?.combinesWith?.includes(n) ?? !0) && ($B(e, n)?.combinesWith?.includes(t) ?? !0), iV = (e, t) => {
|
|
24897
24925
|
let n = t ? e.lead : void 0;
|
|
24898
24926
|
if (!n) return e;
|
|
24899
24927
|
let r = new Set(n.blocks?.map((e) => e.type));
|
|
@@ -24901,30 +24929,30 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24901
24929
|
...e,
|
|
24902
24930
|
...n,
|
|
24903
24931
|
blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
|
|
24904
|
-
|
|
24932
|
+
...$B(e, t.type),
|
|
24905
24933
|
...t
|
|
24906
24934
|
}))]
|
|
24907
24935
|
};
|
|
24908
|
-
},
|
|
24936
|
+
}, aV = (e, t) => {
|
|
24909
24937
|
let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
|
|
24910
24938
|
return {
|
|
24911
24939
|
missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
|
|
24912
24940
|
undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
|
|
24913
24941
|
};
|
|
24914
|
-
},
|
|
24915
|
-
if (Array.isArray(e)) for (let r of e)
|
|
24916
|
-
else if (
|
|
24917
|
-
if (
|
|
24942
|
+
}, oV = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", sV = (e) => typeof e == "object" && !!e, cV = (e) => sV(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, lV = (e, t, n = []) => {
|
|
24943
|
+
if (Array.isArray(e)) for (let r of e) lV(r, cV(r) ?? t, n);
|
|
24944
|
+
else if (sV(e)) {
|
|
24945
|
+
if (oV(e)) n.push(t ? {
|
|
24918
24946
|
action: e,
|
|
24919
24947
|
itemId: t
|
|
24920
24948
|
} : { action: e });
|
|
24921
|
-
else for (let r of Object.values(e))
|
|
24949
|
+
else for (let r of Object.values(e)) lV(r, t, n);
|
|
24922
24950
|
}
|
|
24923
24951
|
return n;
|
|
24924
|
-
},
|
|
24952
|
+
}, uV = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], dV = (e, t, n) => lV(e).flatMap(({ action: e, itemId: r }) => {
|
|
24925
24953
|
let i = t.find(({ id: t }) => t === e.id);
|
|
24926
24954
|
if (!i) return [];
|
|
24927
|
-
let a =
|
|
24955
|
+
let a = aV(i, e.params);
|
|
24928
24956
|
return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
|
|
24929
24957
|
rule: "accessoryViewParams",
|
|
24930
24958
|
viewId: i.id,
|
|
@@ -24933,39 +24961,39 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24933
24961
|
...r && r !== n.elementId ? { itemId: r } : {},
|
|
24934
24962
|
...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
|
|
24935
24963
|
}];
|
|
24936
|
-
}),
|
|
24964
|
+
}), fV = (e, t, n) => [...dV([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? dV(e, t, {
|
|
24937
24965
|
elementId: e.id,
|
|
24938
24966
|
accessoryViewId: n
|
|
24939
|
-
}) : [])],
|
|
24967
|
+
}) : [])], pV = (e) => {
|
|
24940
24968
|
let t = e.accessoryViews ?? [];
|
|
24941
|
-
return
|
|
24942
|
-
},
|
|
24969
|
+
return uV([...e.sections.flatMap((e) => fV(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => fV(n, t, e.id)), ...dV(e.actions, t, { accessoryViewId: e.id })])]);
|
|
24970
|
+
}, mV = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
|
|
24943
24971
|
rule: "sectionLink",
|
|
24944
24972
|
...t,
|
|
24945
24973
|
...i ? { itemId: i } : {},
|
|
24946
24974
|
targetSectionId: r.sectionId
|
|
24947
|
-
}), !1),
|
|
24975
|
+
}), !1), hV = (e, t) => {
|
|
24948
24976
|
if (t(e.action, e.id)) return e;
|
|
24949
24977
|
let { action: n, ...r } = e;
|
|
24950
24978
|
return r;
|
|
24951
|
-
},
|
|
24979
|
+
}, gV = (e, t) => {
|
|
24952
24980
|
switch (e.type) {
|
|
24953
24981
|
case "stats": return {
|
|
24954
24982
|
...e,
|
|
24955
|
-
stats: e.stats.map((e) =>
|
|
24983
|
+
stats: e.stats.map((e) => hV(e, t))
|
|
24956
24984
|
};
|
|
24957
24985
|
case "charts": return {
|
|
24958
24986
|
...e,
|
|
24959
|
-
charts: e.charts.map((e) =>
|
|
24987
|
+
charts: e.charts.map((e) => hV(e, t))
|
|
24960
24988
|
};
|
|
24961
24989
|
case "events": return {
|
|
24962
24990
|
...e,
|
|
24963
|
-
events: e.events.map((e) =>
|
|
24991
|
+
events: e.events.map((e) => hV(e, t))
|
|
24964
24992
|
};
|
|
24965
24993
|
case "list": return {
|
|
24966
24994
|
...e,
|
|
24967
24995
|
rows: e.rows.map((e) => ({
|
|
24968
|
-
...
|
|
24996
|
+
...hV(e, t),
|
|
24969
24997
|
actions: e.actions?.filter((n) => t(n.action, e.id))
|
|
24970
24998
|
}))
|
|
24971
24999
|
};
|
|
@@ -24977,24 +25005,24 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24977
25005
|
case "posts":
|
|
24978
25006
|
case "text": return e;
|
|
24979
25007
|
}
|
|
24980
|
-
},
|
|
25008
|
+
}, _V = (e, t, n, r) => gV(e, mV(t, n, r)), vV = (e, t) => {
|
|
24981
25009
|
let n = new Set(e.map((e) => e.id));
|
|
24982
25010
|
return e.map((e) => {
|
|
24983
|
-
let r =
|
|
25011
|
+
let r = mV(n, { sectionId: e.id }, t);
|
|
24984
25012
|
return {
|
|
24985
25013
|
...e,
|
|
24986
25014
|
actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
|
|
24987
25015
|
followUps: e.followUps?.filter((e) => r(e.action)),
|
|
24988
|
-
elements: e.elements.map((r) => r.type === "shortcuts" ?
|
|
25016
|
+
elements: e.elements.map((r) => r.type === "shortcuts" ? gV(r, mV(n, {
|
|
24989
25017
|
sectionId: e.id,
|
|
24990
25018
|
elementId: r.id
|
|
24991
25019
|
}, t)) : r)
|
|
24992
25020
|
};
|
|
24993
25021
|
});
|
|
24994
|
-
},
|
|
25022
|
+
}, yV = (e) => e.widget ? "widget" : e.block.type, bV = (e, t) => yV(t) === e.type, xV = (e, t, n) => {
|
|
24995
25023
|
let r = /* @__PURE__ */ new Map();
|
|
24996
25024
|
e.sections.forEach((e, n) => {
|
|
24997
|
-
let i =
|
|
25025
|
+
let i = iV(t, n === 0);
|
|
24998
25026
|
for (let t of e.elements) r.set(t.id, {
|
|
24999
25027
|
element: t,
|
|
25000
25028
|
rules: i,
|
|
@@ -25014,23 +25042,23 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25014
25042
|
});
|
|
25015
25043
|
}
|
|
25016
25044
|
return r;
|
|
25017
|
-
},
|
|
25018
|
-
let i = new Set(t.sections.map((e) => e.id)), a =
|
|
25045
|
+
}, SV = (e, t, n, r = []) => {
|
|
25046
|
+
let i = new Set(t.sections.map((e) => e.id)), a = xV(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
|
|
25019
25047
|
let n = a.get(e);
|
|
25020
25048
|
if (!n || t.status !== "ready") return [e, t];
|
|
25021
25049
|
let r = [], s = t;
|
|
25022
|
-
if (!
|
|
25050
|
+
if (!bV(n.element, t)) r.push({
|
|
25023
25051
|
rule: "sourceType",
|
|
25024
25052
|
elementId: e,
|
|
25025
25053
|
expected: n.element.type,
|
|
25026
|
-
received:
|
|
25054
|
+
received: yV(t)
|
|
25027
25055
|
});
|
|
25028
25056
|
else if (t.block) {
|
|
25029
25057
|
let a = {
|
|
25030
25058
|
sectionId: n.sectionId,
|
|
25031
25059
|
elementId: e
|
|
25032
|
-
}, o =
|
|
25033
|
-
|
|
25060
|
+
}, o = _V(tV(t.block, e, n.rules, r), i, a, r);
|
|
25061
|
+
JB(o, $B(n.rules, o.type), a, r), s = {
|
|
25034
25062
|
...t,
|
|
25035
25063
|
block: o
|
|
25036
25064
|
};
|
|
@@ -25041,25 +25069,25 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25041
25069
|
} : e)), [e, s];
|
|
25042
25070
|
}), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
|
|
25043
25071
|
let n = a.get(e);
|
|
25044
|
-
return n && t.status === "ready" && t.block ?
|
|
25072
|
+
return n && t.status === "ready" && t.block ? dV(t.block, c, {
|
|
25045
25073
|
elementId: e,
|
|
25046
25074
|
accessoryViewId: n.accessoryViewId
|
|
25047
25075
|
}) : [];
|
|
25048
25076
|
});
|
|
25049
25077
|
return {
|
|
25050
25078
|
sources: Object.fromEntries(s),
|
|
25051
|
-
violations: [...o, ...
|
|
25079
|
+
violations: [...o, ...uV(l)]
|
|
25052
25080
|
};
|
|
25053
|
-
},
|
|
25081
|
+
}, CV = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
|
|
25054
25082
|
"data-agentic-card": "",
|
|
25055
25083
|
className: V("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
|
|
25056
25084
|
children: t
|
|
25057
|
-
}),
|
|
25085
|
+
}), wV = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", TV = ({ label: e, press: t }) => {
|
|
25058
25086
|
if (!t) return /* @__PURE__ */ Q(Hc, {
|
|
25059
25087
|
variant: "label",
|
|
25060
25088
|
content: e
|
|
25061
25089
|
});
|
|
25062
|
-
let n = V("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline",
|
|
25090
|
+
let n = V("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", wV, fn());
|
|
25063
25091
|
return t.href ? /* @__PURE__ */ Q(Dn, {
|
|
25064
25092
|
href: t.href,
|
|
25065
25093
|
onClick: t.onClick,
|
|
@@ -25075,9 +25103,9 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25075
25103
|
className: V("cursor-pointer", n),
|
|
25076
25104
|
children: e
|
|
25077
25105
|
});
|
|
25078
|
-
},
|
|
25106
|
+
}, EV = (e) => {
|
|
25079
25107
|
if (!e) return;
|
|
25080
|
-
let t =
|
|
25108
|
+
let t = DV(e.type === "percent" ? {
|
|
25081
25109
|
style: "percent",
|
|
25082
25110
|
maximumFractionDigits: 1
|
|
25083
25111
|
} : e.type === "compact" ? {
|
|
@@ -25088,27 +25116,27 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25088
25116
|
currency: e.currency
|
|
25089
25117
|
} : {});
|
|
25090
25118
|
return (e) => t.format(e);
|
|
25091
|
-
},
|
|
25119
|
+
}, DV = (e) => {
|
|
25092
25120
|
try {
|
|
25093
25121
|
return new Intl.NumberFormat(void 0, e);
|
|
25094
25122
|
} catch {
|
|
25095
25123
|
return new Intl.NumberFormat();
|
|
25096
25124
|
}
|
|
25097
|
-
},
|
|
25098
|
-
let r =
|
|
25125
|
+
}, OV = ({ spec: e, label: t, format: n }) => {
|
|
25126
|
+
let r = EV(n);
|
|
25099
25127
|
return /* @__PURE__ */ Q(Wt, {
|
|
25100
25128
|
...e,
|
|
25101
25129
|
ariaLabel: t,
|
|
25102
25130
|
valueFormatter: r
|
|
25103
25131
|
});
|
|
25104
|
-
},
|
|
25132
|
+
}, kV = ({ chart: e, press: t }) => /* @__PURE__ */ $(Ko, {
|
|
25105
25133
|
display: "flex",
|
|
25106
25134
|
flexDirection: "column",
|
|
25107
25135
|
gap: "md",
|
|
25108
25136
|
children: [/* @__PURE__ */ $(Ko, {
|
|
25109
25137
|
display: "flex",
|
|
25110
25138
|
flexDirection: "column",
|
|
25111
|
-
children: [/* @__PURE__ */ Q(
|
|
25139
|
+
children: [/* @__PURE__ */ Q(TV, {
|
|
25112
25140
|
label: e.label,
|
|
25113
25141
|
press: t
|
|
25114
25142
|
}), e.caption ? /* @__PURE__ */ Q(Hc, {
|
|
@@ -25117,24 +25145,24 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25117
25145
|
}) : null]
|
|
25118
25146
|
}), /* @__PURE__ */ Q("div", {
|
|
25119
25147
|
className: "h-48 w-full",
|
|
25120
|
-
children: /* @__PURE__ */ Q(
|
|
25148
|
+
children: /* @__PURE__ */ Q(OV, {
|
|
25121
25149
|
spec: e.chart,
|
|
25122
25150
|
label: e.label,
|
|
25123
25151
|
format: e.format
|
|
25124
25152
|
})
|
|
25125
25153
|
})]
|
|
25126
|
-
}),
|
|
25154
|
+
}), AV = 300, jV = 7, MV = 14, NV = 5, PV = 18, FV = 3, IV = (e) => Math.max(0, ...e.map((e) => e.length)), LV = (e) => {
|
|
25127
25155
|
if (e.type === "pie") {
|
|
25128
25156
|
let t = e.series.data.map((e) => e.name);
|
|
25129
|
-
return t.length >
|
|
25157
|
+
return t.length > NV || IV(t) > PV;
|
|
25130
25158
|
}
|
|
25131
|
-
if (e.series.length >
|
|
25132
|
-
if (e.type === "bar" && e.orientation === "horizontal") return
|
|
25133
|
-
let t =
|
|
25134
|
-
return
|
|
25135
|
-
},
|
|
25159
|
+
if (e.series.length > FV) return !0;
|
|
25160
|
+
if (e.type === "bar" && e.orientation === "horizontal") return IV(e.categories) > MV;
|
|
25161
|
+
let t = AV / Math.max(1, e.categories.length);
|
|
25162
|
+
return IV(e.categories) * jV > t;
|
|
25163
|
+
}, RV = (e) => {
|
|
25136
25164
|
if (e.length === 1) return ["full"];
|
|
25137
|
-
let t = e.map((e) =>
|
|
25165
|
+
let t = e.map((e) => LV(e.chart) ? "full" : "half"), n = 0;
|
|
25138
25166
|
return t.forEach((e, r) => {
|
|
25139
25167
|
if (e === "half" && (n += 1), (e === "full" || r === t.length - 1) && n % 2 == 1) {
|
|
25140
25168
|
let n = e === "half" ? r : r - 1;
|
|
@@ -25142,42 +25170,42 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25142
25170
|
}
|
|
25143
25171
|
e === "full" && (n = 0);
|
|
25144
25172
|
}), t;
|
|
25145
|
-
},
|
|
25146
|
-
let r =
|
|
25173
|
+
}, zV = "agentic-chart", BV = { [zV]: (e) => /* @__PURE__ */ Q(kV, { ...e }) }, VV = ({ charts: e, elementId: t, onAction: n }) => {
|
|
25174
|
+
let r = RV(e);
|
|
25147
25175
|
return /* @__PURE__ */ Q("div", {
|
|
25148
25176
|
className: "grid w-full max-w-content grid-cols-1 gap-4 sm:grid-cols-2",
|
|
25149
25177
|
children: e.map((e, i) => {
|
|
25150
|
-
let a = e.action ?
|
|
25178
|
+
let a = e.action ? zB(e.action, {
|
|
25151
25179
|
elementId: t,
|
|
25152
25180
|
itemId: e.id
|
|
25153
25181
|
}, n) : void 0;
|
|
25154
25182
|
return /* @__PURE__ */ Q("div", {
|
|
25155
25183
|
"data-chart-span": r[i],
|
|
25156
25184
|
className: r[i] === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
|
|
25157
|
-
children: /* @__PURE__ */ Q(
|
|
25185
|
+
children: /* @__PURE__ */ Q(CV, {
|
|
25158
25186
|
press: a,
|
|
25159
|
-
children: /* @__PURE__ */ Q(
|
|
25187
|
+
children: /* @__PURE__ */ Q(VB, {
|
|
25160
25188
|
fullHeight: !0,
|
|
25161
25189
|
slots: [{
|
|
25162
|
-
visualization:
|
|
25190
|
+
visualization: zV,
|
|
25163
25191
|
params: {
|
|
25164
25192
|
chart: e,
|
|
25165
25193
|
press: a
|
|
25166
25194
|
}
|
|
25167
25195
|
}],
|
|
25168
|
-
slotRenderers:
|
|
25196
|
+
slotRenderers: BV
|
|
25169
25197
|
})
|
|
25170
25198
|
})
|
|
25171
25199
|
}, e.id);
|
|
25172
25200
|
})
|
|
25173
25201
|
});
|
|
25174
|
-
},
|
|
25202
|
+
}, HV = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Ko, {
|
|
25175
25203
|
display: "flex",
|
|
25176
25204
|
flexDirection: "column",
|
|
25177
25205
|
gap: "md",
|
|
25178
|
-
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(
|
|
25206
|
+
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(VB, { slots: [WR("event-list", { events: [{
|
|
25179
25207
|
...s,
|
|
25180
|
-
...o ?
|
|
25208
|
+
...o ? zB(o, {
|
|
25181
25209
|
elementId: t,
|
|
25182
25210
|
itemId: e
|
|
25183
25211
|
}, n) : {},
|
|
@@ -25186,22 +25214,22 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25186
25214
|
fromDate: r ? new Date(r) : void 0,
|
|
25187
25215
|
toDate: i ? new Date(i) : void 0
|
|
25188
25216
|
}] })] }, e))
|
|
25189
|
-
}),
|
|
25217
|
+
}), UV = ({ action: e, ...t }, n, r) => ({
|
|
25190
25218
|
...t,
|
|
25191
25219
|
href: Jz(t.href),
|
|
25192
25220
|
...e ? {
|
|
25193
25221
|
href: void 0,
|
|
25194
|
-
...
|
|
25222
|
+
...zB(e, {
|
|
25195
25223
|
elementId: n,
|
|
25196
25224
|
itemId: t.id
|
|
25197
25225
|
}, r)
|
|
25198
25226
|
} : {},
|
|
25199
|
-
avatar: t.avatar &&
|
|
25200
|
-
rightAvatar: t.rightAvatar &&
|
|
25201
|
-
avatars: t.avatars?.map(
|
|
25227
|
+
avatar: t.avatar && RB(t.avatar),
|
|
25228
|
+
rightAvatar: t.rightAvatar && RB(t.rightAvatar),
|
|
25229
|
+
avatars: t.avatars?.map(RB),
|
|
25202
25230
|
actions: t.actions?.map((e) => ({
|
|
25203
25231
|
label: e.label,
|
|
25204
|
-
icon:
|
|
25232
|
+
icon: LB(e.icon),
|
|
25205
25233
|
critical: e.critical,
|
|
25206
25234
|
showLabel: e.showLabel,
|
|
25207
25235
|
onClick: () => r(e.action, {
|
|
@@ -25209,16 +25237,16 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25209
25237
|
itemId: t.id
|
|
25210
25238
|
})
|
|
25211
25239
|
}))
|
|
25212
|
-
}),
|
|
25240
|
+
}), WV = (e) => e.rows.some(({ action: e }) => e?.type === "navigate") ? {
|
|
25213
25241
|
...e.schema,
|
|
25214
25242
|
clickBehavior: "link"
|
|
25215
|
-
} : e.schema,
|
|
25243
|
+
} : e.schema, GV = (e, t, n) => [{
|
|
25216
25244
|
visualization: "list",
|
|
25217
25245
|
params: {
|
|
25218
|
-
schema:
|
|
25219
|
-
items: e.rows.map((e) =>
|
|
25246
|
+
schema: WV(e),
|
|
25247
|
+
items: e.rows.map((e) => UV(e, t, n))
|
|
25220
25248
|
}
|
|
25221
|
-
}],
|
|
25249
|
+
}], KV = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(Ko, {
|
|
25222
25250
|
display: "flex",
|
|
25223
25251
|
flexDirection: "column",
|
|
25224
25252
|
gap: "md",
|
|
@@ -25228,16 +25256,16 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25228
25256
|
children: e.title
|
|
25229
25257
|
}) : null, /* @__PURE__ */ Q("div", {
|
|
25230
25258
|
className: "text-lg [&_[data-list-row]]:gap-4",
|
|
25231
|
-
children: /* @__PURE__ */ Q(Pz, { slots:
|
|
25259
|
+
children: /* @__PURE__ */ Q(Pz, { slots: GV(e, t, n) })
|
|
25232
25260
|
})]
|
|
25233
|
-
}),
|
|
25261
|
+
}), qV = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(KV, {
|
|
25234
25262
|
content: e,
|
|
25235
25263
|
elementId: t,
|
|
25236
25264
|
onAction: n
|
|
25237
|
-
}) : /* @__PURE__ */ Q(
|
|
25265
|
+
}) : /* @__PURE__ */ Q(VB, {
|
|
25238
25266
|
title: e.title,
|
|
25239
|
-
slots:
|
|
25240
|
-
}),
|
|
25267
|
+
slots: GV(e, t, n)
|
|
25268
|
+
}), JV = ({ posts: e }) => /* @__PURE__ */ Q(Ko, {
|
|
25241
25269
|
display: "flex",
|
|
25242
25270
|
flexDirection: "column",
|
|
25243
25271
|
gap: "md",
|
|
@@ -25249,7 +25277,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25249
25277
|
createdAt: new Date(e)
|
|
25250
25278
|
}
|
|
25251
25279
|
}, n.id))
|
|
25252
|
-
}),
|
|
25280
|
+
}), YV = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Ko, {
|
|
25253
25281
|
display: "flex",
|
|
25254
25282
|
flexWrap: "wrap",
|
|
25255
25283
|
gap: "sm",
|
|
@@ -25257,27 +25285,27 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25257
25285
|
variant: "neutral",
|
|
25258
25286
|
size: "md",
|
|
25259
25287
|
label: e.label,
|
|
25260
|
-
icon:
|
|
25261
|
-
...
|
|
25288
|
+
icon: LB(e.icon),
|
|
25289
|
+
...zB(e.action, {
|
|
25262
25290
|
elementId: t,
|
|
25263
25291
|
itemId: e.id
|
|
25264
25292
|
}, n)
|
|
25265
25293
|
}, e.id))
|
|
25266
|
-
}),
|
|
25294
|
+
}), XV = "agentic-stats", ZV = {
|
|
25267
25295
|
positive: "text-f1-foreground-positive",
|
|
25268
25296
|
negative: "text-f1-foreground-critical",
|
|
25269
25297
|
neutral: "text-f1-foreground-secondary"
|
|
25270
|
-
},
|
|
25271
|
-
visualization:
|
|
25298
|
+
}, QV = (e, t, n) => ({
|
|
25299
|
+
visualization: XV,
|
|
25272
25300
|
params: { stats: e.map((e) => ({
|
|
25273
25301
|
stat: e,
|
|
25274
|
-
press: e.action ?
|
|
25302
|
+
press: e.action ? zB(e.action, {
|
|
25275
25303
|
elementId: t,
|
|
25276
25304
|
itemId: e.id
|
|
25277
25305
|
}, n) : void 0
|
|
25278
25306
|
})) }
|
|
25279
|
-
}),
|
|
25280
|
-
let n =
|
|
25307
|
+
}), $V = ({ stat: e, press: t }) => {
|
|
25308
|
+
let n = LB(e.icon);
|
|
25281
25309
|
return /* @__PURE__ */ $(Ko, {
|
|
25282
25310
|
display: "flex",
|
|
25283
25311
|
flexDirection: "column",
|
|
@@ -25301,7 +25329,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25301
25329
|
children: [e.eyebrow ? /* @__PURE__ */ Q(Hc, {
|
|
25302
25330
|
variant: "description",
|
|
25303
25331
|
content: e.eyebrow
|
|
25304
|
-
}) : null, /* @__PURE__ */ Q(
|
|
25332
|
+
}) : null, /* @__PURE__ */ Q(TV, {
|
|
25305
25333
|
label: e.label,
|
|
25306
25334
|
press: t
|
|
25307
25335
|
})]
|
|
@@ -25321,7 +25349,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25321
25349
|
className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
|
|
25322
25350
|
}) : null, e.value]
|
|
25323
25351
|
}), e.trend ? /* @__PURE__ */ Q("span", {
|
|
25324
|
-
className: V("text-base font-medium",
|
|
25352
|
+
className: V("text-base font-medium", ZV[e.trend.tone ?? "neutral"]),
|
|
25325
25353
|
children: e.trend.text
|
|
25326
25354
|
}) : null]
|
|
25327
25355
|
}), e.caption ? /* @__PURE__ */ Q(Hc, {
|
|
@@ -25330,59 +25358,59 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25330
25358
|
}) : null]
|
|
25331
25359
|
})]
|
|
25332
25360
|
});
|
|
25333
|
-
},
|
|
25361
|
+
}, eH = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", tH = (e, t) => {
|
|
25334
25362
|
let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
|
|
25335
25363
|
return Math.ceil(Math.max(1, e) / r);
|
|
25336
|
-
},
|
|
25364
|
+
}, nH = ({ stats: e }) => {
|
|
25337
25365
|
let t = Y(null), { width: n } = On({
|
|
25338
25366
|
ref: t,
|
|
25339
25367
|
box: "border-box"
|
|
25340
|
-
}), r =
|
|
25368
|
+
}), r = tH(e.length, n || 712);
|
|
25341
25369
|
return /* @__PURE__ */ Q("div", {
|
|
25342
25370
|
ref: t,
|
|
25343
|
-
className: V("-m-4",
|
|
25371
|
+
className: V("-m-4", eH),
|
|
25344
25372
|
children: /* @__PURE__ */ Q("div", {
|
|
25345
25373
|
className: "-mb-px -mr-px flex flex-wrap",
|
|
25346
25374
|
children: e.map(({ stat: e, press: t }) => /* @__PURE__ */ Q("div", {
|
|
25347
25375
|
"data-agentic-card": "",
|
|
25348
25376
|
className: V("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"),
|
|
25349
25377
|
style: { flexBasis: `${100 / r}%` },
|
|
25350
|
-
children: /* @__PURE__ */ Q(
|
|
25378
|
+
children: /* @__PURE__ */ Q($V, {
|
|
25351
25379
|
stat: e,
|
|
25352
25380
|
press: t
|
|
25353
25381
|
})
|
|
25354
25382
|
}, e.id))
|
|
25355
25383
|
})
|
|
25356
25384
|
});
|
|
25357
|
-
},
|
|
25358
|
-
slots: [
|
|
25359
|
-
slotRenderers:
|
|
25360
|
-
}),
|
|
25385
|
+
}, rH = { [XV]: (e) => /* @__PURE__ */ Q(nH, { ...e }) }, iH = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(VB, {
|
|
25386
|
+
slots: [QV(e, t, n)],
|
|
25387
|
+
slotRenderers: rH
|
|
25388
|
+
}), aH = Bn().use(Pn), oH = (e) => aH.parse(e), sH = (e) => e.value ?? e.alt ?? (e.children ?? []).map(sH).join(""), cH = (e) => (e ?? []).map((e, t) => lH(e, t)), lH = (e, t) => {
|
|
25361
25389
|
switch (e.type) {
|
|
25362
|
-
case "root": return
|
|
25390
|
+
case "root": return cH(e.children);
|
|
25363
25391
|
case "text": return e.value;
|
|
25364
25392
|
case "paragraph": return /* @__PURE__ */ Q("p", {
|
|
25365
25393
|
className: "m-0",
|
|
25366
|
-
children:
|
|
25394
|
+
children: cH(e.children)
|
|
25367
25395
|
}, t);
|
|
25368
25396
|
case "heading": return /* @__PURE__ */ Q(Xt, {
|
|
25369
25397
|
as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
|
|
25370
25398
|
variant: "heading",
|
|
25371
|
-
content:
|
|
25399
|
+
content: sH(e)
|
|
25372
25400
|
}, t);
|
|
25373
25401
|
case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
|
|
25374
25402
|
className: "m-0 flex list-decimal flex-col gap-1 pl-5",
|
|
25375
|
-
children:
|
|
25403
|
+
children: cH(e.children)
|
|
25376
25404
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
25377
25405
|
className: "m-0 flex list-disc flex-col gap-1 pl-5",
|
|
25378
|
-
children:
|
|
25406
|
+
children: cH(e.children)
|
|
25379
25407
|
}, t);
|
|
25380
|
-
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ?
|
|
25408
|
+
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? cH(e.children) : lH(e, t)) }, t);
|
|
25381
25409
|
case "strong": return /* @__PURE__ */ Q("strong", {
|
|
25382
25410
|
className: "font-semibold",
|
|
25383
|
-
children:
|
|
25411
|
+
children: cH(e.children)
|
|
25384
25412
|
}, t);
|
|
25385
|
-
case "emphasis": return /* @__PURE__ */ Q("em", { children:
|
|
25413
|
+
case "emphasis": return /* @__PURE__ */ Q("em", { children: cH(e.children) }, t);
|
|
25386
25414
|
case "inlineCode": return /* @__PURE__ */ Q(Hc, {
|
|
25387
25415
|
as: "code",
|
|
25388
25416
|
variant: "code",
|
|
@@ -25400,67 +25428,67 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25400
25428
|
}, t);
|
|
25401
25429
|
case "link": return e.url && Xz(e.url) ? /* @__PURE__ */ Q(Ri, {
|
|
25402
25430
|
href: e.url,
|
|
25403
|
-
children:
|
|
25404
|
-
}, t) :
|
|
25431
|
+
children: sH(e)
|
|
25432
|
+
}, t) : sH(e);
|
|
25405
25433
|
case "break": return /* @__PURE__ */ Q("br", {}, t);
|
|
25406
|
-
default: return
|
|
25434
|
+
default: return sH(e);
|
|
25407
25435
|
}
|
|
25408
|
-
},
|
|
25436
|
+
}, uH = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
|
|
25409
25437
|
"data-agentic-text": !0,
|
|
25410
25438
|
className: V("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
|
|
25411
|
-
children:
|
|
25412
|
-
}),
|
|
25439
|
+
children: lH(oH(e), 0)
|
|
25440
|
+
}), dH = ({ text: e, lead: t }) => /* @__PURE__ */ Q(uH, {
|
|
25413
25441
|
text: e,
|
|
25414
25442
|
lead: t
|
|
25415
|
-
}),
|
|
25443
|
+
}), fH = ({ items: e }) => /* @__PURE__ */ Q(Kf, { items: e.map((e) => ({
|
|
25416
25444
|
id: e.id,
|
|
25417
25445
|
status: e.status ?? "completed",
|
|
25418
|
-
icon:
|
|
25446
|
+
icon: LB(e.icon),
|
|
25419
25447
|
title: e.title,
|
|
25420
25448
|
description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
|
|
25421
|
-
})) }),
|
|
25449
|
+
})) }), pH = "agentic-timeline", mH = { [pH]: (e) => /* @__PURE__ */ Q(fH, { items: e.items }) }, hH = ({ items: e }) => /* @__PURE__ */ Q(VB, {
|
|
25422
25450
|
slots: [{
|
|
25423
|
-
visualization:
|
|
25451
|
+
visualization: pH,
|
|
25424
25452
|
params: { items: e }
|
|
25425
25453
|
}],
|
|
25426
|
-
slotRenderers:
|
|
25427
|
-
}),
|
|
25454
|
+
slotRenderers: mH
|
|
25455
|
+
}), gH = ({ block: e, elementId: t, onAction: n, lead: r }) => {
|
|
25428
25456
|
switch (e.type) {
|
|
25429
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
25457
|
+
case "stats": return /* @__PURE__ */ Q(iH, {
|
|
25430
25458
|
stats: e.stats,
|
|
25431
25459
|
elementId: t,
|
|
25432
25460
|
onAction: n
|
|
25433
25461
|
});
|
|
25434
|
-
case "list": return /* @__PURE__ */ Q(
|
|
25462
|
+
case "list": return /* @__PURE__ */ Q(qV, {
|
|
25435
25463
|
content: e,
|
|
25436
25464
|
elementId: t,
|
|
25437
25465
|
onAction: n
|
|
25438
25466
|
});
|
|
25439
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
25440
|
-
case "events": return /* @__PURE__ */ Q(
|
|
25467
|
+
case "timeline": return /* @__PURE__ */ Q(hH, { items: e.items });
|
|
25468
|
+
case "events": return /* @__PURE__ */ Q(HV, {
|
|
25441
25469
|
events: e.events,
|
|
25442
25470
|
elementId: t,
|
|
25443
25471
|
onAction: n
|
|
25444
25472
|
});
|
|
25445
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
25446
|
-
case "shortcuts": return /* @__PURE__ */ Q(
|
|
25473
|
+
case "posts": return /* @__PURE__ */ Q(JV, { posts: e.posts });
|
|
25474
|
+
case "shortcuts": return /* @__PURE__ */ Q(YV, {
|
|
25447
25475
|
shortcuts: e.shortcuts,
|
|
25448
25476
|
elementId: t,
|
|
25449
25477
|
onAction: n
|
|
25450
25478
|
});
|
|
25451
|
-
case "text": return /* @__PURE__ */ Q(
|
|
25479
|
+
case "text": return /* @__PURE__ */ Q(dH, {
|
|
25452
25480
|
text: e.text,
|
|
25453
25481
|
lead: r
|
|
25454
25482
|
});
|
|
25455
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
25483
|
+
case "charts": return /* @__PURE__ */ Q(VV, {
|
|
25456
25484
|
charts: e.charts,
|
|
25457
25485
|
elementId: t,
|
|
25458
25486
|
onAction: n
|
|
25459
25487
|
});
|
|
25460
25488
|
}
|
|
25461
|
-
},
|
|
25489
|
+
}, _H = (e) => e % 2 == 1 && e !== 3 || e > 4, vH = ({ cards: e }) => {
|
|
25462
25490
|
let t = z();
|
|
25463
|
-
return
|
|
25491
|
+
return _H(e.length) ? /* @__PURE__ */ Q(Ut, {
|
|
25464
25492
|
columns: {
|
|
25465
25493
|
default: 2,
|
|
25466
25494
|
xs: 2,
|
|
@@ -25485,14 +25513,14 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25485
25513
|
md: { columns: e.length === 3 ? "3" : "2" },
|
|
25486
25514
|
children: e
|
|
25487
25515
|
});
|
|
25488
|
-
},
|
|
25516
|
+
}, yH = ({ className: e }) => /* @__PURE__ */ Q(B, { className: V("rounded-2xs motion-reduce:animate-none", e) }), bH = "agentic-skeleton", xH = { [bH]: (e) => e.content }, SH = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(VB, {
|
|
25489
25517
|
fullHeight: t,
|
|
25490
25518
|
slots: [{
|
|
25491
|
-
visualization:
|
|
25519
|
+
visualization: bH,
|
|
25492
25520
|
params: { content: e }
|
|
25493
25521
|
}],
|
|
25494
|
-
slotRenderers:
|
|
25495
|
-
}),
|
|
25522
|
+
slotRenderers: xH
|
|
25523
|
+
}), CH = (e) => Array.from({ length: e }, (e, t) => t), wH = ({ count: e }) => /* @__PURE__ */ Q(vH, { cards: CH(e).map((e) => /* @__PURE__ */ Q(CV, { children: /* @__PURE__ */ Q(SH, {
|
|
25496
25524
|
fullHeight: !0,
|
|
25497
25525
|
children: /* @__PURE__ */ $(Ko, {
|
|
25498
25526
|
display: "flex",
|
|
@@ -25502,50 +25530,50 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25502
25530
|
display: "flex",
|
|
25503
25531
|
flexDirection: "column",
|
|
25504
25532
|
gap: "xs",
|
|
25505
|
-
children: [/* @__PURE__ */ Q(
|
|
25506
|
-
}), /* @__PURE__ */ Q(
|
|
25533
|
+
children: [/* @__PURE__ */ Q(yH, { className: "h-4 w-32" }), /* @__PURE__ */ Q(yH, { className: "h-3 w-24" })]
|
|
25534
|
+
}), /* @__PURE__ */ Q(yH, { className: "h-48 w-full rounded-md" })]
|
|
25507
25535
|
})
|
|
25508
|
-
}) }, e)) }),
|
|
25536
|
+
}) }, e)) }), TH = ({ count: e }) => /* @__PURE__ */ Q(Ko, {
|
|
25509
25537
|
display: "flex",
|
|
25510
25538
|
flexDirection: "column",
|
|
25511
25539
|
gap: "md",
|
|
25512
|
-
children:
|
|
25540
|
+
children: CH(e).map((e) => /* @__PURE__ */ Q(SH, { children: /* @__PURE__ */ $(Ko, {
|
|
25513
25541
|
display: "flex",
|
|
25514
25542
|
alignItems: "center",
|
|
25515
25543
|
gap: "md",
|
|
25516
|
-
children: [/* @__PURE__ */ Q(
|
|
25544
|
+
children: [/* @__PURE__ */ Q(yH, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(Ko, {
|
|
25517
25545
|
display: "flex",
|
|
25518
25546
|
flexDirection: "column",
|
|
25519
25547
|
gap: "xs",
|
|
25520
25548
|
grow: !0,
|
|
25521
|
-
children: [/* @__PURE__ */ Q(
|
|
25549
|
+
children: [/* @__PURE__ */ Q(yH, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(yH, { className: "h-3 w-2/3" })]
|
|
25522
25550
|
})]
|
|
25523
25551
|
}) }, e))
|
|
25524
|
-
}),
|
|
25552
|
+
}), EH = ({ count: e, schema: t }) => {
|
|
25525
25553
|
let n = !!(t?.descriptionRequired || t?.descriptionOptional), r = t?.left;
|
|
25526
|
-
return /* @__PURE__ */ Q(
|
|
25554
|
+
return /* @__PURE__ */ Q(SH, { children: /* @__PURE__ */ Q(Ko, {
|
|
25527
25555
|
display: "flex",
|
|
25528
25556
|
flexDirection: "column",
|
|
25529
25557
|
gap: "md",
|
|
25530
|
-
children:
|
|
25558
|
+
children: CH(e).map((e) => /* @__PURE__ */ $(Ko, {
|
|
25531
25559
|
display: "flex",
|
|
25532
25560
|
alignItems: "center",
|
|
25533
25561
|
gap: "md",
|
|
25534
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
25562
|
+
children: [r ? /* @__PURE__ */ Q(yH, { className: V("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(Ko, {
|
|
25535
25563
|
display: "flex",
|
|
25536
25564
|
flexDirection: "column",
|
|
25537
25565
|
gap: "xs",
|
|
25538
25566
|
grow: !0,
|
|
25539
|
-
children: [/* @__PURE__ */ Q(
|
|
25567
|
+
children: [/* @__PURE__ */ Q(yH, { className: V("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(yH, { className: "h-3 w-1/3" }) : null]
|
|
25540
25568
|
})]
|
|
25541
25569
|
}, e))
|
|
25542
25570
|
}) });
|
|
25543
|
-
},
|
|
25571
|
+
}, DH = ({ count: e }) => /* @__PURE__ */ Q(Ko, {
|
|
25544
25572
|
display: "flex",
|
|
25545
25573
|
flexDirection: "column",
|
|
25546
25574
|
gap: "md",
|
|
25547
|
-
children:
|
|
25548
|
-
}),
|
|
25575
|
+
children: CH(e).map((e) => /* @__PURE__ */ Q(Im, { variant: "row" }, e))
|
|
25576
|
+
}), OH = ({ count: e }) => /* @__PURE__ */ Q(vH, { cards: CH(e).map((e) => /* @__PURE__ */ Q(CV, { children: /* @__PURE__ */ Q(SH, {
|
|
25549
25577
|
fullHeight: !0,
|
|
25550
25578
|
children: /* @__PURE__ */ $(Ko, {
|
|
25551
25579
|
display: "flex",
|
|
@@ -25555,53 +25583,53 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25555
25583
|
display: "flex",
|
|
25556
25584
|
alignItems: "center",
|
|
25557
25585
|
gap: "md",
|
|
25558
|
-
children: [/* @__PURE__ */ Q(
|
|
25559
|
-
}), /* @__PURE__ */ Q(
|
|
25586
|
+
children: [/* @__PURE__ */ Q(yH, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(yH, { className: "h-4 w-24" })]
|
|
25587
|
+
}), /* @__PURE__ */ Q(yH, { className: "h-7 w-20" })]
|
|
25560
25588
|
})
|
|
25561
|
-
}) }, e)) }),
|
|
25589
|
+
}) }, e)) }), kH = ({ count: e }) => /* @__PURE__ */ Q(SH, { children: /* @__PURE__ */ Q(Ko, {
|
|
25562
25590
|
display: "flex",
|
|
25563
25591
|
flexDirection: "column",
|
|
25564
|
-
children:
|
|
25592
|
+
children: CH(e).map((t) => /* @__PURE__ */ $(Ko, {
|
|
25565
25593
|
display: "flex",
|
|
25566
25594
|
gap: "md",
|
|
25567
25595
|
children: [/* @__PURE__ */ $(Ko, {
|
|
25568
25596
|
display: "flex",
|
|
25569
25597
|
flexDirection: "column",
|
|
25570
25598
|
alignItems: "center",
|
|
25571
|
-
children: [/* @__PURE__ */ Q(
|
|
25599
|
+
children: [/* @__PURE__ */ Q(yH, { 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]
|
|
25572
25600
|
}), /* @__PURE__ */ $(Ko, {
|
|
25573
25601
|
display: "flex",
|
|
25574
25602
|
flexDirection: "column",
|
|
25575
25603
|
gap: "xs",
|
|
25576
25604
|
grow: !0,
|
|
25577
25605
|
paddingBottom: t < e - 1 ? "md" : void 0,
|
|
25578
|
-
children: [/* @__PURE__ */ Q(
|
|
25606
|
+
children: [/* @__PURE__ */ Q(yH, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(yH, { className: "h-3 w-1/3" })]
|
|
25579
25607
|
})]
|
|
25580
25608
|
}, t))
|
|
25581
|
-
}) }),
|
|
25609
|
+
}) }), AH = ({ count: e }) => /* @__PURE__ */ Q(SH, { children: /* @__PURE__ */ Q(Ko, {
|
|
25582
25610
|
display: "flex",
|
|
25583
25611
|
flexDirection: "column",
|
|
25584
25612
|
gap: "md",
|
|
25585
|
-
children:
|
|
25586
|
-
}) }),
|
|
25613
|
+
children: CH(e).map((e) => /* @__PURE__ */ Q(yH, { className: V("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
|
|
25614
|
+
}) }), jH = (e, t) => {
|
|
25587
25615
|
switch (e.type) {
|
|
25588
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
25589
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
25590
|
-
case "list": return /* @__PURE__ */ Q(
|
|
25616
|
+
case "stats": return /* @__PURE__ */ Q(OH, { count: t });
|
|
25617
|
+
case "charts": return /* @__PURE__ */ Q(wH, { count: t });
|
|
25618
|
+
case "list": return /* @__PURE__ */ Q(EH, {
|
|
25591
25619
|
count: t,
|
|
25592
25620
|
schema: e.display?.schema
|
|
25593
25621
|
});
|
|
25594
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
25595
|
-
case "events": return /* @__PURE__ */ Q(
|
|
25596
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
25597
|
-
case "widget": return /* @__PURE__ */ Q(
|
|
25622
|
+
case "timeline": return /* @__PURE__ */ Q(kH, { count: t });
|
|
25623
|
+
case "events": return /* @__PURE__ */ Q(TH, { count: t });
|
|
25624
|
+
case "posts": return /* @__PURE__ */ Q(DH, { count: t });
|
|
25625
|
+
case "widget": return /* @__PURE__ */ Q(AH, { count: t });
|
|
25598
25626
|
}
|
|
25599
|
-
},
|
|
25627
|
+
}, MH = ({ element: e }) => /* @__PURE__ */ Q("div", {
|
|
25600
25628
|
"aria-busy": "true",
|
|
25601
25629
|
"aria-live": "polite",
|
|
25602
25630
|
"data-agentic-skeleton": e.type,
|
|
25603
|
-
children:
|
|
25604
|
-
}),
|
|
25631
|
+
children: jH(e, XB(e))
|
|
25632
|
+
}), NH = (e) => {
|
|
25605
25633
|
switch (e.type) {
|
|
25606
25634
|
case "stats": return e.stats.length === 0;
|
|
25607
25635
|
case "charts": return e.charts.length === 0;
|
|
@@ -25610,7 +25638,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25610
25638
|
case "events": return e.events.length === 0;
|
|
25611
25639
|
case "posts": return e.posts.length === 0;
|
|
25612
25640
|
}
|
|
25613
|
-
},
|
|
25641
|
+
}, PH = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && bV(e, t) && NH(t.block), FH = (e, t) => {
|
|
25614
25642
|
let n = {
|
|
25615
25643
|
...t,
|
|
25616
25644
|
empty: e.display?.empty ?? t.empty
|
|
@@ -25629,8 +25657,8 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25629
25657
|
format: r
|
|
25630
25658
|
}))
|
|
25631
25659
|
} : n;
|
|
25632
|
-
},
|
|
25633
|
-
let n =
|
|
25660
|
+
}, IH = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && bV(e, t) ? FH(e, t.block) : void 0, LH = Rl(void 0), RH = LH.Provider, zH = () => Ul(LH), BH = ({ widget: e, bare: t = !1 }) => {
|
|
25661
|
+
let n = zH();
|
|
25634
25662
|
return t ? /* @__PURE__ */ Q(Pz, {
|
|
25635
25663
|
headless: !0,
|
|
25636
25664
|
slots: e.slots,
|
|
@@ -25644,52 +25672,52 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25644
25672
|
loading: e.loading,
|
|
25645
25673
|
slotRenderers: n
|
|
25646
25674
|
});
|
|
25647
|
-
},
|
|
25648
|
-
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(
|
|
25675
|
+
}, VH = ({ element: e, state: t, onAction: n, lead: r }) => {
|
|
25676
|
+
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(gH, {
|
|
25649
25677
|
block: e,
|
|
25650
25678
|
elementId: e.id,
|
|
25651
25679
|
onAction: n,
|
|
25652
25680
|
lead: r
|
|
25653
25681
|
});
|
|
25654
|
-
if (!t || t.status === "loading") return /* @__PURE__ */ Q(
|
|
25655
|
-
if (t.status === "error") return /* @__PURE__ */ Q(
|
|
25656
|
-
if (!
|
|
25657
|
-
if (t.widget) return /* @__PURE__ */ Q(
|
|
25682
|
+
if (!t || t.status === "loading") return /* @__PURE__ */ Q(MH, { element: e });
|
|
25683
|
+
if (t.status === "error") return /* @__PURE__ */ Q(KB, { message: t.message });
|
|
25684
|
+
if (!bV(e, t)) return /* @__PURE__ */ Q(KB, {});
|
|
25685
|
+
if (t.widget) return /* @__PURE__ */ Q(BH, {
|
|
25658
25686
|
widget: t.widget,
|
|
25659
25687
|
bare: t.bare
|
|
25660
25688
|
});
|
|
25661
|
-
if (e.type === "widget") return /* @__PURE__ */ Q(
|
|
25662
|
-
let i =
|
|
25663
|
-
return
|
|
25689
|
+
if (e.type === "widget") return /* @__PURE__ */ Q(KB, {});
|
|
25690
|
+
let i = FH(e, t.block);
|
|
25691
|
+
return NH(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(GB, {
|
|
25664
25692
|
empty: i.empty,
|
|
25665
25693
|
elementId: e.id,
|
|
25666
25694
|
onAction: n
|
|
25667
|
-
}) : /* @__PURE__ */ Q(
|
|
25695
|
+
}) : /* @__PURE__ */ Q(gH, {
|
|
25668
25696
|
block: i,
|
|
25669
25697
|
elementId: e.id,
|
|
25670
25698
|
onAction: n
|
|
25671
25699
|
});
|
|
25672
|
-
},
|
|
25700
|
+
}, HH = "agentic-list-stack", UH = ({ title: e }) => /* @__PURE__ */ Q(Ko, {
|
|
25673
25701
|
paddingY: "sm",
|
|
25674
25702
|
children: /* @__PURE__ */ Q(Hc, {
|
|
25675
25703
|
variant: "description",
|
|
25676
25704
|
content: e
|
|
25677
25705
|
})
|
|
25678
|
-
}),
|
|
25706
|
+
}), WH = {
|
|
25679
25707
|
...yz,
|
|
25680
|
-
...
|
|
25681
|
-
},
|
|
25708
|
+
...rH
|
|
25709
|
+
}, GH = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
|
|
25682
25710
|
className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
|
|
25683
25711
|
children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
|
|
25684
25712
|
className: V("px-4", n.visualization === "agentic-stats" ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
|
|
25685
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
25713
|
+
children: [r ? /* @__PURE__ */ Q(UH, { title: r }) : null, VR(WH[n.visualization])?.render(n.params, {
|
|
25686
25714
|
...t,
|
|
25687
25715
|
isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
|
|
25688
25716
|
isLastSlot: t.isLastSlot && i === e.length - 1
|
|
25689
25717
|
})]
|
|
25690
25718
|
}, i))
|
|
25691
|
-
}),
|
|
25692
|
-
let r =
|
|
25719
|
+
}), KH = (e) => e.type === "list" && !e.bare || e.type === "stats", qH = (e, t) => e.reduce((e, n) => {
|
|
25720
|
+
let r = IH(n, t?.[n.id]), i = r && KH(r) && !NH(r) ? {
|
|
25693
25721
|
elementId: n.id,
|
|
25694
25722
|
block: r
|
|
25695
25723
|
} : void 0, a = e.at(-1);
|
|
@@ -25701,32 +25729,32 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25701
25729
|
element: n,
|
|
25702
25730
|
member: i
|
|
25703
25731
|
}), e;
|
|
25704
|
-
}, []),
|
|
25705
|
-
if (t.type === "stats") return [{ slot:
|
|
25732
|
+
}, []), JH = ({ elementId: e, block: t }, n, r) => {
|
|
25733
|
+
if (t.type === "stats") return [{ slot: QV(t.stats, e, r) }];
|
|
25706
25734
|
let i = n > 0 ? t.title : void 0;
|
|
25707
|
-
return
|
|
25735
|
+
return GV(t, e, r).map((e, t) => ({
|
|
25708
25736
|
slot: e,
|
|
25709
25737
|
header: t === 0 ? i : void 0
|
|
25710
25738
|
}));
|
|
25711
|
-
},
|
|
25739
|
+
}, YH = { [HH]: (e, t) => /* @__PURE__ */ Q(GH, {
|
|
25712
25740
|
entries: e,
|
|
25713
25741
|
ctx: t
|
|
25714
|
-
}) },
|
|
25742
|
+
}) }, XH = ({ members: e, onAction: t }) => {
|
|
25715
25743
|
let n = e[0]?.block;
|
|
25716
|
-
return /* @__PURE__ */ Q(
|
|
25744
|
+
return /* @__PURE__ */ Q(VB, {
|
|
25717
25745
|
title: n?.type === "list" ? n.title : void 0,
|
|
25718
25746
|
slots: [{
|
|
25719
|
-
visualization:
|
|
25720
|
-
params: e.flatMap((e, n) =>
|
|
25747
|
+
visualization: HH,
|
|
25748
|
+
params: e.flatMap((e, n) => JH(e, n, t))
|
|
25721
25749
|
}],
|
|
25722
|
-
slotRenderers:
|
|
25750
|
+
slotRenderers: YH
|
|
25723
25751
|
});
|
|
25724
|
-
},
|
|
25752
|
+
}, ZH = ({ items: e, onAction: t }) => {
|
|
25725
25753
|
let n = z();
|
|
25726
25754
|
return /* @__PURE__ */ Q(Ni, {
|
|
25727
25755
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
25728
25756
|
label: e.label,
|
|
25729
|
-
icon:
|
|
25757
|
+
icon: LB(e.icon),
|
|
25730
25758
|
critical: e.critical,
|
|
25731
25759
|
onClick: () => t(e.action, {})
|
|
25732
25760
|
}),
|
|
@@ -25738,12 +25766,12 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25738
25766
|
label: n.actions.more
|
|
25739
25767
|
})
|
|
25740
25768
|
});
|
|
25741
|
-
},
|
|
25769
|
+
}, QH = Rl(void 0), $H = QH.Provider, eU = () => Ul(QH), tU = /\*\*(.+?)\*\*/g, nU = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(tU).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
|
|
25742
25770
|
className: "font-medium",
|
|
25743
25771
|
children: e
|
|
25744
|
-
}, t) : e) }),
|
|
25772
|
+
}, t) : e) }), rU = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, iU = (e) => {
|
|
25745
25773
|
let t = [], n = 0;
|
|
25746
|
-
for (let r of e.matchAll(
|
|
25774
|
+
for (let r of e.matchAll(rU)) {
|
|
25747
25775
|
let [i, a, o, s] = r, c = r.index ?? 0;
|
|
25748
25776
|
c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
|
|
25749
25777
|
type: o,
|
|
@@ -25752,48 +25780,48 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25752
25780
|
} }), n = c + i.length;
|
|
25753
25781
|
}
|
|
25754
25782
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
25755
|
-
},
|
|
25783
|
+
}, aU = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: Zz(e).map((e, t) => /* @__PURE__ */ Q(Fl, { children: "href" in e ? /* @__PURE__ */ Q(Ri, {
|
|
25756
25784
|
href: e.href,
|
|
25757
25785
|
children: e.label
|
|
25758
|
-
}) : /* @__PURE__ */ Q(
|
|
25759
|
-
let t =
|
|
25760
|
-
return /* @__PURE__ */ Q(Z, { children:
|
|
25761
|
-
},
|
|
25786
|
+
}) : /* @__PURE__ */ Q(nU, { text: e.text }) }, t)) }), oU = ({ text: e }) => {
|
|
25787
|
+
let t = eU();
|
|
25788
|
+
return /* @__PURE__ */ Q(Z, { children: iU(e).map((e, n) => /* @__PURE__ */ Q(Fl, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(aU, { text: e.text }) }, n)) });
|
|
25789
|
+
}, sU = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(oU, { text: e }) }, t)) }), cU = /^\d+\.\s+/, lU = /^[-*]\s+/, uU = (e) => cU.test(e) ? "ol" : lU.test(e) ? "ul" : "p", dU = (e, t) => {
|
|
25762
25790
|
let n = e.at(-1);
|
|
25763
25791
|
t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
|
|
25764
25792
|
kind: "p",
|
|
25765
25793
|
text: t
|
|
25766
25794
|
});
|
|
25767
|
-
},
|
|
25768
|
-
let r = e.at(-1), i = n.replace(t === "ol" ?
|
|
25795
|
+
}, fU = (e, t, n) => {
|
|
25796
|
+
let r = e.at(-1), i = n.replace(t === "ol" ? cU : lU, "");
|
|
25769
25797
|
r?.kind === t ? r.items.push(i) : e.push({
|
|
25770
25798
|
kind: t,
|
|
25771
25799
|
items: [i]
|
|
25772
25800
|
});
|
|
25773
|
-
},
|
|
25801
|
+
}, pU = (e) => {
|
|
25774
25802
|
let t = [];
|
|
25775
25803
|
for (let n of e.split("\n").map((e) => e.trim())) {
|
|
25776
|
-
let e =
|
|
25777
|
-
e === "p" ?
|
|
25804
|
+
let e = uU(n);
|
|
25805
|
+
e === "p" ? dU(t, n) : fU(t, e, n);
|
|
25778
25806
|
}
|
|
25779
25807
|
return t.filter((e) => e.kind !== "p" || e.text);
|
|
25780
|
-
},
|
|
25808
|
+
}, mU = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
25781
25809
|
className: "flex flex-col gap-2 text-lg text-f1-foreground",
|
|
25782
|
-
children:
|
|
25810
|
+
children: pU(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(oU, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
|
|
25783
25811
|
className: "m-0 list-decimal space-y-1 pl-5",
|
|
25784
|
-
children: /* @__PURE__ */ Q(
|
|
25812
|
+
children: /* @__PURE__ */ Q(sU, { items: e.items })
|
|
25785
25813
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
25786
25814
|
className: "m-0 list-disc space-y-1 pl-5",
|
|
25787
|
-
children: /* @__PURE__ */ Q(
|
|
25815
|
+
children: /* @__PURE__ */ Q(sU, { items: e.items })
|
|
25788
25816
|
}, t))
|
|
25789
|
-
}),
|
|
25817
|
+
}), hU = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(Xt, {
|
|
25790
25818
|
as: "h2",
|
|
25791
25819
|
variant: "heading-large",
|
|
25792
25820
|
content: e
|
|
25793
25821
|
}) : /* @__PURE__ */ Q("h2", {
|
|
25794
25822
|
className: V("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
|
|
25795
25823
|
children: e
|
|
25796
|
-
}),
|
|
25824
|
+
}), gU = ({ section: e, size: t, composer: n, onAction: r }) => {
|
|
25797
25825
|
let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
|
|
25798
25826
|
return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(Ko, {
|
|
25799
25827
|
display: "flex",
|
|
@@ -25815,43 +25843,43 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25815
25843
|
alignItems: "start",
|
|
25816
25844
|
justifyContent: e.title ? "between" : "end",
|
|
25817
25845
|
gap: "md",
|
|
25818
|
-
children: [e.title ? /* @__PURE__ */ Q(
|
|
25846
|
+
children: [e.title ? /* @__PURE__ */ Q(hU, {
|
|
25819
25847
|
title: e.title,
|
|
25820
25848
|
size: t
|
|
25821
|
-
}) : null, a ? /* @__PURE__ */ Q(
|
|
25849
|
+
}) : null, a ? /* @__PURE__ */ Q(ZH, {
|
|
25822
25850
|
items: a,
|
|
25823
25851
|
onAction: r
|
|
25824
25852
|
}) : null]
|
|
25825
25853
|
}) : null]
|
|
25826
25854
|
}),
|
|
25827
25855
|
n,
|
|
25828
|
-
e.text ? /* @__PURE__ */ Q(
|
|
25856
|
+
e.text ? /* @__PURE__ */ Q(mU, { text: e.text }) : null
|
|
25829
25857
|
]
|
|
25830
25858
|
});
|
|
25831
|
-
},
|
|
25859
|
+
}, _U = (e, t) => e.elements.length > 0 && e.elements.every((e) => PH(e, t?.[e.id])), vU = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
|
|
25832
25860
|
let a = (t, r) => n(t, {
|
|
25833
25861
|
...r,
|
|
25834
25862
|
sectionId: e.id
|
|
25835
|
-
}), o =
|
|
25863
|
+
}), o = _U(e, t);
|
|
25836
25864
|
return o && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
|
|
25837
25865
|
id: e.id,
|
|
25838
25866
|
"aria-label": e.title,
|
|
25839
25867
|
tabIndex: -1,
|
|
25840
25868
|
className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
|
|
25841
25869
|
children: [
|
|
25842
|
-
/* @__PURE__ */ Q(
|
|
25870
|
+
/* @__PURE__ */ Q(gU, {
|
|
25843
25871
|
section: e,
|
|
25844
25872
|
size: r,
|
|
25845
25873
|
composer: i,
|
|
25846
25874
|
onAction: a
|
|
25847
25875
|
}),
|
|
25848
|
-
o && e.empty ? /* @__PURE__ */ Q(
|
|
25876
|
+
o && e.empty ? /* @__PURE__ */ Q(GB, {
|
|
25849
25877
|
empty: e.empty,
|
|
25850
25878
|
onAction: a
|
|
25851
|
-
}) :
|
|
25879
|
+
}) : qH(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(XH, {
|
|
25852
25880
|
members: e.members,
|
|
25853
25881
|
onAction: a
|
|
25854
|
-
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(
|
|
25882
|
+
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(VH, {
|
|
25855
25883
|
element: e.element,
|
|
25856
25884
|
state: t?.[e.element.id],
|
|
25857
25885
|
onAction: a,
|
|
@@ -25863,16 +25891,16 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25863
25891
|
gap: "sm",
|
|
25864
25892
|
children: e.followUps.map((e, t) => /* @__PURE__ */ Q(U, {
|
|
25865
25893
|
size: "md",
|
|
25866
|
-
...
|
|
25894
|
+
...BB(e, {}, a),
|
|
25867
25895
|
variant: e.variant ?? "neutral"
|
|
25868
25896
|
}, t))
|
|
25869
25897
|
}) : null
|
|
25870
25898
|
]
|
|
25871
25899
|
});
|
|
25872
|
-
},
|
|
25900
|
+
}, yU = (e, t) => {
|
|
25873
25901
|
let [n, ...r] = e ?? [], i = (e) => ({
|
|
25874
25902
|
label: e.label,
|
|
25875
|
-
icon:
|
|
25903
|
+
icon: LB(e.icon),
|
|
25876
25904
|
onClick: () => t(e)
|
|
25877
25905
|
});
|
|
25878
25906
|
return {
|
|
@@ -25885,19 +25913,19 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25885
25913
|
value: String(t)
|
|
25886
25914
|
})) : r[0] ? i(r[0]) : void 0
|
|
25887
25915
|
};
|
|
25888
|
-
},
|
|
25889
|
-
let n =
|
|
25890
|
-
return !t || t.status === "loading" ? /* @__PURE__ */ Q(
|
|
25916
|
+
}, bU = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), xU = ({ element: e, state: t }) => {
|
|
25917
|
+
let n = zH();
|
|
25918
|
+
return !t || t.status === "loading" ? /* @__PURE__ */ Q(MH, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(KB, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(Pz, {
|
|
25891
25919
|
slots: t.widget.slots,
|
|
25892
25920
|
loading: t.widget.loading,
|
|
25893
25921
|
slotRenderers: n
|
|
25894
|
-
}) : /* @__PURE__ */ Q(
|
|
25895
|
-
},
|
|
25922
|
+
}) : /* @__PURE__ */ Q(KB, {});
|
|
25923
|
+
}, SU = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
|
|
25896
25924
|
let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
|
|
25897
25925
|
...r,
|
|
25898
25926
|
accessoryViewId: e.id,
|
|
25899
25927
|
...l ? { accessoryViewParams: t } : {}
|
|
25900
|
-
}), d =
|
|
25928
|
+
}), d = yU(e.actions, (e) => {
|
|
25901
25929
|
o(), u(e.action, {});
|
|
25902
25930
|
});
|
|
25903
25931
|
return /* @__PURE__ */ Q(ka, {
|
|
@@ -25909,84 +25937,177 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25909
25937
|
description: e.description,
|
|
25910
25938
|
disableContentPadding: i,
|
|
25911
25939
|
...d,
|
|
25912
|
-
children: e.widget ? /* @__PURE__ */ Q(
|
|
25940
|
+
children: e.widget ? /* @__PURE__ */ Q(xU, {
|
|
25913
25941
|
element: e.widget,
|
|
25914
25942
|
state: s?.[e.widget.id]
|
|
25915
|
-
},
|
|
25943
|
+
}, bU(e.id, t)) : /* @__PURE__ */ Q(Ko, {
|
|
25916
25944
|
display: "flex",
|
|
25917
25945
|
flexDirection: "column",
|
|
25918
25946
|
gap: "3xl",
|
|
25919
|
-
children: e.sections.map((e) => /* @__PURE__ */ Q(
|
|
25947
|
+
children: e.sections.map((e) => /* @__PURE__ */ Q(vU, {
|
|
25920
25948
|
size: "accessory",
|
|
25921
25949
|
section: e,
|
|
25922
25950
|
sources: s,
|
|
25923
25951
|
onAction: u
|
|
25924
25952
|
}, e.id))
|
|
25925
|
-
},
|
|
25953
|
+
}, bU(e.id, t))
|
|
25926
25954
|
});
|
|
25927
|
-
},
|
|
25955
|
+
}, CU = zl(function({ children: e }, t) {
|
|
25956
|
+
return /* @__PURE__ */ Q("div", {
|
|
25957
|
+
ref: t,
|
|
25958
|
+
className: "-m-1 p-1",
|
|
25959
|
+
children: /* @__PURE__ */ Q("div", {
|
|
25960
|
+
className: "rounded-lg shadow",
|
|
25961
|
+
children: e
|
|
25962
|
+
})
|
|
25963
|
+
});
|
|
25964
|
+
}), wU = ({ greeting: e }) => /* @__PURE__ */ $(Ko, {
|
|
25965
|
+
display: "flex",
|
|
25966
|
+
flexDirection: "column",
|
|
25967
|
+
gap: "xs",
|
|
25968
|
+
children: [/* @__PURE__ */ Q(Xt, {
|
|
25969
|
+
as: "h1",
|
|
25970
|
+
variant: "heading-large",
|
|
25971
|
+
content: e.title
|
|
25972
|
+
}), e.subtitle ? /* @__PURE__ */ Q(Hc, {
|
|
25973
|
+
variant: "description",
|
|
25974
|
+
content: e.subtitle
|
|
25975
|
+
}) : null]
|
|
25976
|
+
}), TU = 150, EU = 150, DU = {
|
|
25928
25977
|
neutral: "bg-f1-background-inverse",
|
|
25929
25978
|
accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
25930
25979
|
critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
|
|
25931
25980
|
warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
|
|
25932
25981
|
promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
|
|
25933
25982
|
positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
|
|
25934
|
-
},
|
|
25935
|
-
let
|
|
25983
|
+
}, OU = "inverse", kU = (e) => {
|
|
25984
|
+
let t = Y(null), n = Y(e), [r, i] = X({
|
|
25985
|
+
face: e,
|
|
25986
|
+
animate: !1
|
|
25987
|
+
});
|
|
25988
|
+
return q(() => {
|
|
25989
|
+
n.current = e;
|
|
25990
|
+
}, [e]), q(() => {
|
|
25991
|
+
let e = t.current;
|
|
25992
|
+
if (!e) return;
|
|
25993
|
+
let r = () => i((t) => ({
|
|
25994
|
+
size: {
|
|
25995
|
+
width: e.offsetWidth,
|
|
25996
|
+
height: e.offsetHeight
|
|
25997
|
+
},
|
|
25998
|
+
face: n.current,
|
|
25999
|
+
animate: t.size != null && t.face !== n.current
|
|
26000
|
+
}));
|
|
26001
|
+
if (r(), typeof ResizeObserver != "function") return;
|
|
26002
|
+
let a = new ResizeObserver(r);
|
|
26003
|
+
return a.observe(e), () => a.disconnect();
|
|
26004
|
+
}, []), {
|
|
26005
|
+
ref: t,
|
|
26006
|
+
size: r.size,
|
|
26007
|
+
animate: r.animate
|
|
26008
|
+
};
|
|
26009
|
+
}, AU = ({ clockIn: e, expanded: t = !1 }) => {
|
|
26010
|
+
let n = Ln(), [r, i] = X(!1), { ref: a, size: o, animate: s } = kU(t ? "card" : "chip");
|
|
26011
|
+
return /* @__PURE__ */ $("div", {
|
|
26012
|
+
ref: a,
|
|
26013
|
+
className: "relative isolate",
|
|
26014
|
+
children: [/* @__PURE__ */ Q(H.div, {
|
|
26015
|
+
"aria-hidden": !0,
|
|
26016
|
+
className: V("absolute -z-10 rounded-xl border border-solid border-f1-border-secondary bg-f1-background transition-opacity", o ? "right-0 top-0" : "inset-0", !t && r && "opacity-0"),
|
|
26017
|
+
initial: !1,
|
|
26018
|
+
animate: o,
|
|
26019
|
+
transition: s ? rR(XL, n) : WL
|
|
26020
|
+
}), /* @__PURE__ */ Q(Gn, {
|
|
26021
|
+
initial: !1,
|
|
26022
|
+
children: /* @__PURE__ */ Q(NU, { children: t ? /* @__PURE__ */ Q(PU, { clockIn: e }) : /* @__PURE__ */ Q(FU, {
|
|
26023
|
+
clockIn: e,
|
|
26024
|
+
open: r,
|
|
26025
|
+
setOpen: i
|
|
26026
|
+
}) }, t ? "card" : "chip")
|
|
26027
|
+
})]
|
|
26028
|
+
});
|
|
26029
|
+
}, jU = tR, MU = {
|
|
26030
|
+
duration: .16,
|
|
26031
|
+
ease: "easeOut"
|
|
26032
|
+
}, NU = ({ children: e }) => {
|
|
26033
|
+
let t = Ln(), n = An();
|
|
26034
|
+
return /* @__PURE__ */ Q(H.div, {
|
|
26035
|
+
className: V(!n && "pointer-events-none absolute right-0 top-0"),
|
|
26036
|
+
initial: { opacity: 0 },
|
|
26037
|
+
animate: {
|
|
26038
|
+
opacity: 1,
|
|
26039
|
+
transition: rR(jU, t)
|
|
26040
|
+
},
|
|
26041
|
+
exit: {
|
|
26042
|
+
opacity: 0,
|
|
26043
|
+
transition: rR(MU, t)
|
|
26044
|
+
},
|
|
26045
|
+
children: e
|
|
26046
|
+
});
|
|
26047
|
+
}, PU = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
|
|
26048
|
+
role: "group",
|
|
26049
|
+
"aria-label": e.title,
|
|
26050
|
+
className: "flex w-[396px] flex-col gap-4 rounded-xl border border-solid border-transparent p-4",
|
|
26051
|
+
children: [/* @__PURE__ */ Q(Hc, {
|
|
26052
|
+
variant: "label",
|
|
26053
|
+
content: e.title
|
|
26054
|
+
}), e.content]
|
|
26055
|
+
}), FU = ({ clockIn: e, open: t, setOpen: n }) => {
|
|
26056
|
+
let { caption: r, text: i, ticking: a, icon: o, action: s, tone: c, title: l, content: u } = e, d = Ln(), f = Y(null), p = Y(null), m = Y(!1), h = Wl(), g = () => {
|
|
25936
26057
|
f.current && clearTimeout(f.current), f.current = null;
|
|
25937
26058
|
}, _ = (e, t) => {
|
|
25938
|
-
g(), f.current = setTimeout(() =>
|
|
26059
|
+
g(), f.current = setTimeout(() => n(e), t);
|
|
25939
26060
|
};
|
|
25940
26061
|
return K(() => g, []), /* @__PURE__ */ $("div", {
|
|
25941
26062
|
className: "relative",
|
|
25942
|
-
onMouseEnter: () =>
|
|
25943
|
-
onMouseLeave: () => _(!1,
|
|
26063
|
+
onMouseEnter: () => t ? g() : _(!0, TU),
|
|
26064
|
+
onMouseLeave: () => _(!1, EU),
|
|
25944
26065
|
onFocus: () => {
|
|
25945
|
-
g(), m.current ? m.current = !1 :
|
|
26066
|
+
g(), m.current ? m.current = !1 : n(!0);
|
|
25946
26067
|
},
|
|
25947
26068
|
onBlur: () => _(!1, 0),
|
|
25948
26069
|
onKeyDownCapture: (e) => {
|
|
25949
|
-
e.key === "Escape" &&
|
|
26070
|
+
e.key === "Escape" && t && e.currentTarget.contains(e.target) && (g(), n(!1), document.activeElement !== p.current && (m.current = !0, p.current?.focus()));
|
|
25950
26071
|
},
|
|
25951
26072
|
children: [/* @__PURE__ */ $("div", {
|
|
25952
|
-
className: V("flex items-center gap-3 rounded-xl border border-solid p-2
|
|
25953
|
-
children: [
|
|
26073
|
+
className: V("flex items-center gap-3 rounded-xl border border-solid border-transparent p-2", !t && "pl-3"),
|
|
26074
|
+
children: [t ? null : /* @__PURE__ */ $("div", {
|
|
25954
26075
|
className: "flex flex-col",
|
|
25955
|
-
children: [
|
|
26076
|
+
children: [r ? /* @__PURE__ */ Q("span", {
|
|
25956
26077
|
className: "text-sm text-f1-foreground-secondary",
|
|
25957
|
-
children:
|
|
26078
|
+
children: r
|
|
25958
26079
|
}) : null, /* @__PURE__ */ Q(bz, {
|
|
25959
|
-
text:
|
|
25960
|
-
ticking: !!
|
|
26080
|
+
text: i,
|
|
26081
|
+
ticking: !!a,
|
|
25961
26082
|
className: "text-base font-medium text-f1-foreground"
|
|
25962
26083
|
})]
|
|
25963
26084
|
}), /* @__PURE__ */ Q(Tn, {
|
|
25964
|
-
label:
|
|
26085
|
+
label: s.label,
|
|
25965
26086
|
instant: !0,
|
|
25966
26087
|
children: /* @__PURE__ */ Q(kn, {
|
|
25967
26088
|
ref: p,
|
|
25968
26089
|
type: "button",
|
|
25969
26090
|
variant: "ghost",
|
|
25970
26091
|
size: "lg",
|
|
25971
|
-
className: V("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0",
|
|
25972
|
-
"aria-label":
|
|
25973
|
-
"aria-controls":
|
|
25974
|
-
onClick: () =>
|
|
26092
|
+
className: V("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", DU[c ?? "accent"]),
|
|
26093
|
+
"aria-label": s.label,
|
|
26094
|
+
"aria-controls": t ? h : void 0,
|
|
26095
|
+
onClick: () => s.onClick(),
|
|
25975
26096
|
children: /* @__PURE__ */ Q(W, {
|
|
25976
26097
|
size: "lg",
|
|
25977
|
-
color:
|
|
25978
|
-
icon:
|
|
26098
|
+
color: OU,
|
|
26099
|
+
icon: t ? s.icon : o ?? Br
|
|
25979
26100
|
})
|
|
25980
26101
|
})
|
|
25981
26102
|
})]
|
|
25982
|
-
}), /* @__PURE__ */ Q(Gn, { children:
|
|
26103
|
+
}), /* @__PURE__ */ Q(Gn, { children: t ? /* @__PURE__ */ Q(H.div, {
|
|
25983
26104
|
id: h,
|
|
25984
26105
|
role: "group",
|
|
25985
|
-
"aria-label":
|
|
26106
|
+
"aria-label": l,
|
|
25986
26107
|
className: "absolute right-full top-0 origin-top-right pr-1",
|
|
25987
26108
|
initial: {
|
|
25988
26109
|
opacity: 0,
|
|
25989
|
-
scale:
|
|
26110
|
+
scale: d ? 1 : .96
|
|
25990
26111
|
},
|
|
25991
26112
|
animate: {
|
|
25992
26113
|
opacity: 1,
|
|
@@ -25994,166 +26115,215 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
25994
26115
|
},
|
|
25995
26116
|
exit: {
|
|
25996
26117
|
opacity: 0,
|
|
25997
|
-
scale:
|
|
26118
|
+
scale: d ? 1 : .96
|
|
25998
26119
|
},
|
|
25999
|
-
transition: { duration:
|
|
26120
|
+
transition: { duration: d ? 0 : .15 },
|
|
26000
26121
|
children: /* @__PURE__ */ $("div", {
|
|
26001
26122
|
className: "flex w-96 max-w-[calc(100vw-6rem)] flex-col gap-4 rounded-xl border border-solid border-f1-border-secondary bg-f1-background p-4 shadow-lg",
|
|
26002
26123
|
children: [/* @__PURE__ */ Q(Hc, {
|
|
26003
26124
|
variant: "label",
|
|
26004
|
-
content:
|
|
26005
|
-
}),
|
|
26125
|
+
content: l
|
|
26126
|
+
}), u]
|
|
26006
26127
|
})
|
|
26007
26128
|
}) : null })]
|
|
26008
26129
|
});
|
|
26009
|
-
},
|
|
26010
|
-
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
26015
|
-
|
|
26130
|
+
}, IU = 180, LU = 8, RU = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
|
|
26131
|
+
let r = n - t - LU;
|
|
26132
|
+
return r <= LU ? LU : Math.min(Math.max(e - t / 2, LU), r);
|
|
26133
|
+
}, zU = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", BU = "pointer-events-auto overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", VU = ({ open: e, out: t, top: n, transition: r }) => ({
|
|
26134
|
+
className: V(zU, "absolute right-[68px] top-0 z-20 max-h-[calc(100%-1rem)] max-w-[calc(100vw-6rem)] rounded-xl bg-f1-background shadow-lg dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", e ? "pointer-events-auto" : "pointer-events-none"),
|
|
26135
|
+
animate: {
|
|
26136
|
+
opacity: +!!t,
|
|
26137
|
+
scale: t ? 1 : JL,
|
|
26138
|
+
x: t ? 0 : 10,
|
|
26139
|
+
y: n
|
|
26140
|
+
},
|
|
26141
|
+
transition: r
|
|
26142
|
+
}), HU = (e, t) => ({
|
|
26143
|
+
className: V("mt-4 w-[396px] shrink-0", e ? "pointer-events-none" : "pointer-events-auto"),
|
|
26144
|
+
animate: {
|
|
26145
|
+
opacity: +!e,
|
|
26146
|
+
scale: 1,
|
|
26147
|
+
x: e ? 20 : 0,
|
|
26148
|
+
y: 0
|
|
26149
|
+
},
|
|
26150
|
+
transition: rR({
|
|
26151
|
+
...e ? eR : XL,
|
|
26152
|
+
y: WL
|
|
26153
|
+
}, t)
|
|
26154
|
+
}), UU = ({ collapsed: e, onToggle: t }) => {
|
|
26155
|
+
let n = z(), r = e ? n.actions.expand : n.actions.collapse;
|
|
26156
|
+
return /* @__PURE__ */ Q(Tn, {
|
|
26157
|
+
label: r,
|
|
26158
|
+
children: /* @__PURE__ */ Q(kn, {
|
|
26159
|
+
variant: "ghost",
|
|
26160
|
+
size: "md",
|
|
26161
|
+
compact: !0,
|
|
26162
|
+
onClick: t,
|
|
26163
|
+
"aria-label": r,
|
|
26164
|
+
"aria-expanded": !e,
|
|
26165
|
+
children: /* @__PURE__ */ Q(el, { isExpanded: !e })
|
|
26016
26166
|
})
|
|
26017
26167
|
});
|
|
26018
|
-
}
|
|
26019
|
-
|
|
26020
|
-
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
})
|
|
26031
|
-
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
|
|
26036
|
-
|
|
26037
|
-
|
|
26038
|
-
|
|
26039
|
-
|
|
26040
|
-
|
|
26041
|
-
|
|
26168
|
+
}, WU = (e) => {
|
|
26169
|
+
let t = Ln(), [n, r] = X(!1), i = iR(e, t ? 0 : 180), a = n ? i : e;
|
|
26170
|
+
return {
|
|
26171
|
+
stowed: a,
|
|
26172
|
+
leaving: e && !a,
|
|
26173
|
+
markToggled: () => r(!0)
|
|
26174
|
+
};
|
|
26175
|
+
}, GU = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), KU = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
|
|
26176
|
+
className: V("pointer-events-auto shrink-0", n && "mt-2"),
|
|
26177
|
+
children: /* @__PURE__ */ Q(AU, {
|
|
26178
|
+
clockIn: e,
|
|
26179
|
+
expanded: !t
|
|
26180
|
+
})
|
|
26181
|
+
}), qU = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
|
|
26182
|
+
let o = z();
|
|
26183
|
+
return /* @__PURE__ */ $("div", {
|
|
26184
|
+
className: "my-auto hidden flex-col items-end gap-2 md:flex",
|
|
26185
|
+
onMouseEnter: r,
|
|
26186
|
+
onMouseLeave: i,
|
|
26187
|
+
children: [e.map((e, i) => /* @__PURE__ */ Q(Oz, {
|
|
26188
|
+
look: "ghost",
|
|
26189
|
+
widget: e,
|
|
26190
|
+
order: i,
|
|
26191
|
+
open: t === e.id,
|
|
26192
|
+
delayMs: 0,
|
|
26193
|
+
onOpen: n,
|
|
26194
|
+
onCancelOpen: r,
|
|
26195
|
+
onClose: r
|
|
26196
|
+
}, e.id)), a ? /* @__PURE__ */ $(Z, { children: [e.length > 0 ? /* @__PURE__ */ Q("span", {
|
|
26197
|
+
"aria-hidden": !0,
|
|
26198
|
+
className: "flex h-4 w-10 items-center justify-center",
|
|
26199
|
+
children: /* @__PURE__ */ Q("span", { className: "h-px w-6 bg-f1-border-secondary" })
|
|
26200
|
+
}) : null, /* @__PURE__ */ Q(Tn, {
|
|
26201
|
+
label: o.widgets.addWidget,
|
|
26202
|
+
instant: !0,
|
|
26203
|
+
children: /* @__PURE__ */ Q("button", {
|
|
26204
|
+
type: "button",
|
|
26205
|
+
"aria-label": o.widgets.addWidget,
|
|
26206
|
+
"data-add-widget": "right",
|
|
26207
|
+
onClick: a,
|
|
26208
|
+
className: "pointer-events-auto m-0 flex size-10 cursor-pointer appearance-none items-center justify-center rounded-md border-0 bg-transparent p-0 transition-colors hover:bg-f1-background-secondary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-f1-border-selected-bold",
|
|
26209
|
+
children: /* @__PURE__ */ Q(W, {
|
|
26210
|
+
icon: zs,
|
|
26211
|
+
size: "md",
|
|
26212
|
+
color: "bold"
|
|
26213
|
+
})
|
|
26214
|
+
})
|
|
26215
|
+
})] }) : null]
|
|
26216
|
+
});
|
|
26217
|
+
}, JU = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
|
|
26218
|
+
let l = Ln(), { stowed: u, leaving: d, markToggled: f } = WU(r), p = Wl(), m = Y(null), h = Y(null), g = Y(null), [_, v] = X(null), [y, b] = X(null), [x, S] = X(!1), [C, w] = X(0), T = () => {
|
|
26219
|
+
g.current && clearTimeout(g.current), g.current = null;
|
|
26220
|
+
}, E = (e = IU) => {
|
|
26221
|
+
T(), g.current = setTimeout(() => v(null), e);
|
|
26222
|
+
}, D = (e, t) => {
|
|
26223
|
+
T();
|
|
26224
|
+
let n = t.getBoundingClientRect(), r = m.current?.getBoundingClientRect();
|
|
26225
|
+
S(_ != null), b({
|
|
26042
26226
|
id: e,
|
|
26043
26227
|
center: n.top + n.height / 2 - (r?.top ?? 0),
|
|
26044
26228
|
railHeight: r?.height ?? 0
|
|
26045
|
-
}),
|
|
26229
|
+
}), v(e);
|
|
26046
26230
|
};
|
|
26047
|
-
K(() =>
|
|
26048
|
-
let e =
|
|
26049
|
-
if (!e || (
|
|
26050
|
-
let t = new ResizeObserver(() =>
|
|
26231
|
+
K(() => T, []), q(() => {
|
|
26232
|
+
let e = h.current;
|
|
26233
|
+
if (!e || (w(e.offsetHeight), typeof ResizeObserver != "function")) return;
|
|
26234
|
+
let t = new ResizeObserver(() => w(e.offsetHeight));
|
|
26051
26235
|
return t.observe(e), () => t.disconnect();
|
|
26052
26236
|
}, []);
|
|
26053
|
-
let
|
|
26237
|
+
let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = TB({
|
|
26054
26238
|
collapsed: !0,
|
|
26055
|
-
open:
|
|
26056
|
-
glide:
|
|
26239
|
+
open: k != null,
|
|
26240
|
+
glide: x,
|
|
26057
26241
|
drawn: !0,
|
|
26058
|
-
width:
|
|
26059
|
-
}),
|
|
26060
|
-
glyphCenter:
|
|
26061
|
-
panelHeight:
|
|
26062
|
-
railHeight:
|
|
26242
|
+
width: 396
|
|
26243
|
+
}), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? RU({
|
|
26244
|
+
glyphCenter: y.center,
|
|
26245
|
+
panelHeight: C,
|
|
26246
|
+
railHeight: y.railHeight
|
|
26063
26247
|
}) : 0;
|
|
26064
26248
|
return /* @__PURE__ */ $("div", {
|
|
26065
|
-
ref:
|
|
26249
|
+
ref: m,
|
|
26066
26250
|
className: "pointer-events-none absolute inset-y-0 right-0 z-30 flex flex-col items-end p-4",
|
|
26067
|
-
onFocus:
|
|
26068
|
-
onBlur: () =>
|
|
26251
|
+
onFocus: T,
|
|
26252
|
+
onBlur: () => E(0),
|
|
26069
26253
|
onKeyDown: (e) => {
|
|
26070
|
-
e
|
|
26254
|
+
GU(e, k) && v(null);
|
|
26071
26255
|
},
|
|
26072
|
-
children: [
|
|
26073
|
-
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
|
|
26078
|
-
|
|
26079
|
-
|
|
26080
|
-
|
|
26081
|
-
|
|
26082
|
-
|
|
26083
|
-
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26089
|
-
onClose: y
|
|
26090
|
-
}, e.id)), r ? /* @__PURE__ */ $(Z, { children: [e.length > 0 ? /* @__PURE__ */ Q("span", {
|
|
26091
|
-
"aria-hidden": !0,
|
|
26092
|
-
className: "flex h-4 w-10 items-center justify-center",
|
|
26093
|
-
children: /* @__PURE__ */ Q("span", { className: "h-px w-6 bg-f1-border-secondary" })
|
|
26094
|
-
}) : null, /* @__PURE__ */ Q(Tn, {
|
|
26095
|
-
label: o.widgets.addWidget,
|
|
26096
|
-
instant: !0,
|
|
26097
|
-
children: /* @__PURE__ */ Q("button", {
|
|
26098
|
-
type: "button",
|
|
26099
|
-
"aria-label": o.widgets.addWidget,
|
|
26100
|
-
"data-add-widget": "right",
|
|
26101
|
-
onClick: r,
|
|
26102
|
-
className: "pointer-events-auto m-0 flex size-10 cursor-pointer appearance-none items-center justify-center rounded-md border-0 bg-transparent p-0 transition-colors hover:bg-f1-background-secondary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-f1-border-selected-bold",
|
|
26103
|
-
children: /* @__PURE__ */ Q(W, {
|
|
26104
|
-
icon: zs,
|
|
26105
|
-
size: "md",
|
|
26106
|
-
color: "bold"
|
|
26107
|
-
})
|
|
26108
|
-
})
|
|
26109
|
-
})] }) : null]
|
|
26110
|
-
}),
|
|
26111
|
-
/* @__PURE__ */ Q(H.div, {
|
|
26112
|
-
ref: l,
|
|
26113
|
-
id: s,
|
|
26114
|
-
role: "group",
|
|
26115
|
-
"aria-label": E ? JR(E) : void 0,
|
|
26116
|
-
hidden: w.panelHidden,
|
|
26117
|
-
className: V("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"),
|
|
26118
|
-
style: { transformOrigin: qL },
|
|
26119
|
-
initial: !1,
|
|
26120
|
-
animate: {
|
|
26121
|
-
opacity: +!!w.bodyOut,
|
|
26122
|
-
scale: w.bodyOut ? 1 : JL,
|
|
26123
|
-
x: w.bodyOut ? 0 : 10,
|
|
26124
|
-
y: D
|
|
26125
|
-
},
|
|
26126
|
-
transition: w.transition,
|
|
26127
|
-
onMouseEnter: y,
|
|
26128
|
-
onMouseLeave: () => b(),
|
|
26129
|
-
children: /* @__PURE__ */ Q(yB, {
|
|
26130
|
-
side: "right",
|
|
26256
|
+
children: [i ? /* @__PURE__ */ Q("div", {
|
|
26257
|
+
className: "pointer-events-auto shrink-0",
|
|
26258
|
+
children: /* @__PURE__ */ Q(UU, {
|
|
26259
|
+
collapsed: r,
|
|
26260
|
+
onToggle: () => {
|
|
26261
|
+
f(), i();
|
|
26262
|
+
}
|
|
26263
|
+
})
|
|
26264
|
+
}) : null, /* @__PURE__ */ $("div", {
|
|
26265
|
+
className: V("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && BU),
|
|
26266
|
+
children: [
|
|
26267
|
+
n ? /* @__PURE__ */ Q(KU, {
|
|
26268
|
+
clockIn: n,
|
|
26269
|
+
stowed: u,
|
|
26270
|
+
underToggle: i != null
|
|
26271
|
+
}) : null,
|
|
26272
|
+
u ? /* @__PURE__ */ Q(qU, {
|
|
26131
26273
|
widgets: e,
|
|
26132
|
-
|
|
26133
|
-
|
|
26134
|
-
|
|
26135
|
-
|
|
26136
|
-
|
|
26137
|
-
|
|
26138
|
-
|
|
26139
|
-
|
|
26274
|
+
openId: k,
|
|
26275
|
+
onOpen: D,
|
|
26276
|
+
onHold: T,
|
|
26277
|
+
onLeave: () => E(),
|
|
26278
|
+
onAdd: o
|
|
26279
|
+
}) : null,
|
|
26280
|
+
/* @__PURE__ */ Q(H.div, {
|
|
26281
|
+
ref: h,
|
|
26282
|
+
id: p,
|
|
26283
|
+
role: "group",
|
|
26284
|
+
"aria-label": M ? JR(M) : void 0,
|
|
26285
|
+
hidden: u && A.panelHidden,
|
|
26286
|
+
style: { transformOrigin: qL },
|
|
26287
|
+
initial: !1,
|
|
26288
|
+
...u ? VU({
|
|
26289
|
+
open: k != null,
|
|
26290
|
+
out: A.bodyOut,
|
|
26291
|
+
top: N,
|
|
26292
|
+
transition: A.transition
|
|
26293
|
+
}) : HU(d, l),
|
|
26294
|
+
onMouseEnter: T,
|
|
26295
|
+
onMouseLeave: () => E(),
|
|
26296
|
+
children: /* @__PURE__ */ Q(wB, {
|
|
26297
|
+
side: "right",
|
|
26298
|
+
widgets: e,
|
|
26299
|
+
visibleWidgetId: u ? j : void 0,
|
|
26300
|
+
stow: { stowed: u },
|
|
26301
|
+
entrance: !1,
|
|
26302
|
+
onReorder: a,
|
|
26303
|
+
disableDrag: r || !a,
|
|
26304
|
+
slotRenderers: t,
|
|
26305
|
+
onRemoveWidget: s,
|
|
26306
|
+
onChangeWidgetParams: c,
|
|
26307
|
+
paramsPreviewWidth: 396,
|
|
26308
|
+
onClickAddNewWidget: u ? void 0 : o
|
|
26309
|
+
})
|
|
26140
26310
|
})
|
|
26141
|
-
|
|
26142
|
-
]
|
|
26311
|
+
]
|
|
26312
|
+
})]
|
|
26143
26313
|
});
|
|
26144
|
-
},
|
|
26314
|
+
}, YU = (e, t, n) => {
|
|
26145
26315
|
let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
|
|
26146
26316
|
r?.scrollIntoView({
|
|
26147
26317
|
behavior: n ? "auto" : "smooth",
|
|
26148
26318
|
block: "start"
|
|
26149
26319
|
}), r?.focus({ preventScroll: !0 });
|
|
26150
|
-
},
|
|
26320
|
+
}, XU = (e) => {
|
|
26151
26321
|
let t = Ln();
|
|
26152
|
-
return G((n) =>
|
|
26153
|
-
},
|
|
26322
|
+
return G((n) => YU(e, n, t), [e, t]);
|
|
26323
|
+
}, ZU = (e, t, n) => {
|
|
26154
26324
|
let r = [], i = /* @__PURE__ */ new Map(), a = [];
|
|
26155
26325
|
for (let o of e.elements) {
|
|
26156
|
-
if (!
|
|
26326
|
+
if (!eV(t, o.type)) {
|
|
26157
26327
|
n.push({
|
|
26158
26328
|
rule: "allowedBlockTypes",
|
|
26159
26329
|
sectionId: e.id,
|
|
@@ -26162,7 +26332,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26162
26332
|
});
|
|
26163
26333
|
continue;
|
|
26164
26334
|
}
|
|
26165
|
-
let s =
|
|
26335
|
+
let s = $B(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
|
|
26166
26336
|
if (s !== void 0 && c.length >= s) {
|
|
26167
26337
|
n.push({
|
|
26168
26338
|
rule: "maxPerSection",
|
|
@@ -26173,14 +26343,14 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26173
26343
|
});
|
|
26174
26344
|
continue;
|
|
26175
26345
|
}
|
|
26176
|
-
let l = a.find((e) => !
|
|
26346
|
+
let l = a.find((e) => !rV(t, e, o.type));
|
|
26177
26347
|
l ? n.push({
|
|
26178
26348
|
rule: "combinesWith",
|
|
26179
26349
|
sectionId: e.id,
|
|
26180
26350
|
elementId: o.id,
|
|
26181
26351
|
blockType: o.type,
|
|
26182
26352
|
conflictsWith: l
|
|
26183
|
-
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ?
|
|
26353
|
+
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? tV(o, o.id, t, n) : nV(o, t)));
|
|
26184
26354
|
}
|
|
26185
26355
|
let o = t.maxElementsPerSection;
|
|
26186
26356
|
return o !== void 0 && r.length > o ? (n.push({
|
|
@@ -26195,14 +26365,14 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26195
26365
|
...e,
|
|
26196
26366
|
elements: r
|
|
26197
26367
|
};
|
|
26198
|
-
},
|
|
26368
|
+
}, QU = (e, t, n) => {
|
|
26199
26369
|
let r = e;
|
|
26200
26370
|
return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
|
|
26201
26371
|
rule: "maxSections",
|
|
26202
26372
|
limit: t.maxSections,
|
|
26203
26373
|
droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
|
|
26204
|
-
}), r = r.slice(0, t.maxSections)), r.map((e, r) =>
|
|
26205
|
-
},
|
|
26374
|
+
}), r = r.slice(0, t.maxSections)), r.map((e, r) => ZU(e, iV(t, r === 0), n));
|
|
26375
|
+
}, $U = (e, t, n) => {
|
|
26206
26376
|
if (e.type !== "text" || !t.text) return;
|
|
26207
26377
|
let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
|
|
26208
26378
|
return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
|
|
@@ -26213,14 +26383,14 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26213
26383
|
...i === void 0 ? {} : { minLength: i },
|
|
26214
26384
|
...a === void 0 ? {} : { maxLength: a }
|
|
26215
26385
|
};
|
|
26216
|
-
},
|
|
26386
|
+
}, eW = (e, t, n) => {
|
|
26217
26387
|
let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
|
|
26218
26388
|
t.forEach((e, t) => {
|
|
26219
26389
|
let o = e.min ?? 1, s = e.max ?? 1, c = 0;
|
|
26220
26390
|
for (; c < s && a < r.length && e.types.includes(r[a].type);) {
|
|
26221
26391
|
let o = r[a];
|
|
26222
26392
|
a += 1, c += 1;
|
|
26223
|
-
let s =
|
|
26393
|
+
let s = $U(o, e, t);
|
|
26224
26394
|
s && (i.add(o.id), n.push(s));
|
|
26225
26395
|
}
|
|
26226
26396
|
c < o && n.push({
|
|
@@ -26239,59 +26409,59 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26239
26409
|
...e,
|
|
26240
26410
|
elements: e.elements.filter(({ id: e }) => !i.has(e))
|
|
26241
26411
|
}));
|
|
26242
|
-
},
|
|
26412
|
+
}, tW = (e) => typeof e == "object" && !!e, nW = (e) => {
|
|
26243
26413
|
let t = e.widget, n = Array.isArray(e.sections);
|
|
26244
|
-
return t === void 0 ? n ? "sections" : null :
|
|
26245
|
-
},
|
|
26246
|
-
if (!
|
|
26414
|
+
return t === void 0 ? n ? "sections" : null : tW(t) && t.type === "widget" && typeof t.id == "string" && tW(t.source) && !n ? "widget" : null;
|
|
26415
|
+
}, rW = (e, t, n) => {
|
|
26416
|
+
if (!nW(e)) return n.push({ rule: "accessoryViewBody" }), [];
|
|
26247
26417
|
let r = t.rules ?? {};
|
|
26248
|
-
if (e.widget) return
|
|
26418
|
+
if (e.widget) return eV(r, "widget") ? [e] : (n.push({
|
|
26249
26419
|
rule: "allowedBlockTypes",
|
|
26250
26420
|
sectionId: e.id,
|
|
26251
26421
|
elementId: e.widget.id,
|
|
26252
26422
|
blockType: "widget"
|
|
26253
26423
|
}), []);
|
|
26254
|
-
let i =
|
|
26424
|
+
let i = QU(e.sections, r, n), a = t.shape ? eW(i, t.shape, n) : i;
|
|
26255
26425
|
return [{
|
|
26256
26426
|
...e,
|
|
26257
26427
|
sections: a
|
|
26258
26428
|
}];
|
|
26259
|
-
},
|
|
26429
|
+
}, iW = (e, t, n) => e.flatMap((e) => {
|
|
26260
26430
|
let r = t.find((t) => t.type === e.type);
|
|
26261
26431
|
if (!r) return n.push({
|
|
26262
26432
|
rule: "accessoryViewType",
|
|
26263
26433
|
accessoryViewId: e.id,
|
|
26264
26434
|
viewType: e.type
|
|
26265
26435
|
}), [];
|
|
26266
|
-
let i = [], a =
|
|
26436
|
+
let i = [], a = rW(e, r, i);
|
|
26267
26437
|
return n.push(...i.map((t) => ({
|
|
26268
26438
|
...t,
|
|
26269
26439
|
accessoryViewId: e.id
|
|
26270
26440
|
}))), a;
|
|
26271
|
-
}),
|
|
26272
|
-
let r = [], i =
|
|
26441
|
+
}), aW = (e, t, n = []) => {
|
|
26442
|
+
let r = [], i = vV(QU(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
|
|
26273
26443
|
rule: "sectionTitle",
|
|
26274
26444
|
sectionId: e.id
|
|
26275
26445
|
}), !1)), t, r), r);
|
|
26276
26446
|
i.forEach((e, n) => {
|
|
26277
|
-
let i =
|
|
26278
|
-
for (let t of e.elements) t.type === "shortcuts" &&
|
|
26447
|
+
let i = iV(t, n === 0);
|
|
26448
|
+
for (let t of e.elements) t.type === "shortcuts" && JB(t, $B(i, t.type), {
|
|
26279
26449
|
sectionId: e.id,
|
|
26280
26450
|
elementId: t.id
|
|
26281
26451
|
}, r);
|
|
26282
26452
|
});
|
|
26283
|
-
let a = e.accessoryViews ?
|
|
26453
|
+
let a = e.accessoryViews ? iW(e.accessoryViews, n, r) : void 0, o = {
|
|
26284
26454
|
...e,
|
|
26285
26455
|
sections: i,
|
|
26286
26456
|
...a ? { accessoryViews: a } : {}
|
|
26287
26457
|
};
|
|
26288
26458
|
return {
|
|
26289
26459
|
spec: o,
|
|
26290
|
-
violations: [...r, ...
|
|
26460
|
+
violations: [...r, ...pV(o)]
|
|
26291
26461
|
};
|
|
26292
|
-
},
|
|
26462
|
+
}, oW = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
|
|
26293
26463
|
let a = J(() => {
|
|
26294
|
-
let i =
|
|
26464
|
+
let i = aW(e, n ?? {}, r), a = t ? SV(t, i.spec, n ?? {}, r) : {
|
|
26295
26465
|
sources: t,
|
|
26296
26466
|
violations: []
|
|
26297
26467
|
};
|
|
@@ -26314,7 +26484,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26314
26484
|
let e = JSON.parse(s);
|
|
26315
26485
|
e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
|
|
26316
26486
|
}, [s]), a;
|
|
26317
|
-
},
|
|
26487
|
+
}, sW = (e, t, n) => {
|
|
26318
26488
|
let r = Y(n);
|
|
26319
26489
|
K(() => {
|
|
26320
26490
|
r.current = n;
|
|
@@ -26329,121 +26499,151 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26329
26499
|
t,
|
|
26330
26500
|
i
|
|
26331
26501
|
]);
|
|
26332
|
-
},
|
|
26502
|
+
}, cW = 1164, lW = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
|
|
26503
|
+
let i = Y(null), [a, o] = X(0);
|
|
26504
|
+
q(() => {
|
|
26505
|
+
let e = i.current;
|
|
26506
|
+
if (!e) return;
|
|
26507
|
+
let t = () => o(e.clientWidth);
|
|
26508
|
+
if (t(), typeof ResizeObserver != "function") return;
|
|
26509
|
+
let n = new ResizeObserver(t);
|
|
26510
|
+
return n.observe(e), () => n.disconnect();
|
|
26511
|
+
}, []);
|
|
26512
|
+
let [s = !0, c] = Oc({
|
|
26513
|
+
prop: t,
|
|
26514
|
+
defaultProp: n,
|
|
26515
|
+
onChange: r,
|
|
26516
|
+
caller: "F0AgenticHome"
|
|
26517
|
+
}), l = e && (a === 0 || a >= cW);
|
|
26518
|
+
return {
|
|
26519
|
+
root: i,
|
|
26520
|
+
collapsed: !l || s,
|
|
26521
|
+
toggle: l ? () => c(!s) : void 0
|
|
26522
|
+
};
|
|
26523
|
+
}, uW = (e, t) => {
|
|
26333
26524
|
let n = Object.keys(e.params);
|
|
26334
26525
|
return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
|
|
26335
|
-
},
|
|
26336
|
-
let { missingParams: n, undeclaredParams: r } =
|
|
26526
|
+
}, dW = (e, t) => {
|
|
26527
|
+
let { missingParams: n, undeclaredParams: r } = aV(e, t);
|
|
26337
26528
|
return n.length === 0 && r.length === 0;
|
|
26338
|
-
},
|
|
26339
|
-
let { spec:
|
|
26529
|
+
}, fW = {}, pW = (e, t, n, r) => !n || r && uW(r, t) ? e : fW, mW = "pt-[max(4rem,22vh)]", hW = "pb-40", gW = "pb-10", _W = (e, t) => e ? t && "md:px-20" : "pr-[428px]", vW = zl(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, widgets: i = [], widgetsCollapsed: a, defaultWidgetsCollapsed: o = !0, onWidgetsCollapsedChange: s, onClickAddWidget: c, onRemoveWidget: l, onReorderWidgets: u, onChangeWidgetParams: d, sources: f, sourcesFor: p, onAccessoryViewOpen: m, onAccessoryViewClose: h, onAction: g, composer: _, onComposerVisibilityChange: v, rules: y, onRulesViolation: b, accessoryViewTypes: x, slotRenderers: S, renderMention: C }, w) {
|
|
26530
|
+
let { spec: T, sources: E } = oW({
|
|
26340
26531
|
spec: e,
|
|
26341
|
-
sources:
|
|
26342
|
-
rules:
|
|
26343
|
-
accessoryViewTypes:
|
|
26344
|
-
onRulesViolation:
|
|
26345
|
-
}),
|
|
26346
|
-
Gl(
|
|
26347
|
-
let
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26532
|
+
sources: f,
|
|
26533
|
+
rules: y,
|
|
26534
|
+
accessoryViewTypes: x,
|
|
26535
|
+
onRulesViolation: b
|
|
26536
|
+
}), D = Y(null), O = Y(null);
|
|
26537
|
+
Gl(w, () => D.current), sW(D, O, v);
|
|
26538
|
+
let k = XU(D), A = lW({
|
|
26539
|
+
hasWidgets: i.length > 0,
|
|
26540
|
+
collapsed: a,
|
|
26541
|
+
defaultCollapsed: o,
|
|
26542
|
+
onCollapsedChange: s
|
|
26543
|
+
}), j = _ ? /* @__PURE__ */ Q(CU, {
|
|
26544
|
+
ref: O,
|
|
26545
|
+
children: _
|
|
26546
|
+
}) : null, [M, ...N] = T.sections, [P, F] = X(), I = T.accessoryViews?.find(({ id: e }) => e === P?.id), L = x?.find(({ type: e }) => e === I?.type), ee = J(() => (e, t) => {
|
|
26547
|
+
if (e.type === "goToSection" && k(e.sectionId), e.type === "openAccessoryView") {
|
|
26548
|
+
let t = T.accessoryViews?.find(({ id: t }) => t === e.id);
|
|
26353
26549
|
if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
|
|
26354
|
-
else if (
|
|
26550
|
+
else if (dW(t, e.params)) {
|
|
26355
26551
|
let n = {
|
|
26356
26552
|
id: t.id,
|
|
26357
26553
|
params: e.params ?? {}
|
|
26358
26554
|
};
|
|
26359
|
-
|
|
26555
|
+
F({
|
|
26360
26556
|
...n,
|
|
26361
26557
|
open: !0
|
|
26362
|
-
}),
|
|
26558
|
+
}), m?.(n);
|
|
26363
26559
|
}
|
|
26364
26560
|
}
|
|
26365
|
-
|
|
26561
|
+
g?.(e, t);
|
|
26366
26562
|
}, [
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26370
|
-
|
|
26563
|
+
g,
|
|
26564
|
+
k,
|
|
26565
|
+
m,
|
|
26566
|
+
T.accessoryViews
|
|
26371
26567
|
]);
|
|
26372
|
-
return /* @__PURE__ */ Q(
|
|
26373
|
-
value:
|
|
26374
|
-
children: /* @__PURE__ */ Q(
|
|
26375
|
-
value:
|
|
26568
|
+
return /* @__PURE__ */ Q(RH, {
|
|
26569
|
+
value: S,
|
|
26570
|
+
children: /* @__PURE__ */ Q($H, {
|
|
26571
|
+
value: C,
|
|
26376
26572
|
children: /* @__PURE__ */ $("div", {
|
|
26573
|
+
ref: A.root,
|
|
26377
26574
|
className: "relative h-full min-h-0 w-full",
|
|
26378
26575
|
children: [
|
|
26379
26576
|
/* @__PURE__ */ $("div", {
|
|
26380
|
-
ref:
|
|
26381
|
-
className: V("h-full w-full overflow-y-auto bg-f1-background px-6", (i.length > 0 ||
|
|
26577
|
+
ref: D,
|
|
26578
|
+
className: V("h-full w-full overflow-y-auto bg-f1-background px-6", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none", _W(A.collapsed, i.length > 0 || !!c)),
|
|
26382
26579
|
children: [/* @__PURE__ */ $("div", {
|
|
26383
|
-
className: V("mx-auto flex w-full max-w-content flex-col gap-20",
|
|
26580
|
+
className: V("mx-auto flex w-full max-w-content flex-col gap-20", mW, _ && v ? hW : gW),
|
|
26384
26581
|
children: [
|
|
26385
26582
|
t ? /* @__PURE__ */ Q(wU, { greeting: t }) : null,
|
|
26386
|
-
|
|
26387
|
-
|
|
26583
|
+
M ? null : j,
|
|
26584
|
+
M ? /* @__PURE__ */ Q(vU, {
|
|
26388
26585
|
size: "lead",
|
|
26389
|
-
section:
|
|
26390
|
-
sources:
|
|
26391
|
-
onAction:
|
|
26392
|
-
composer:
|
|
26393
|
-
},
|
|
26394
|
-
|
|
26586
|
+
section: M,
|
|
26587
|
+
sources: E,
|
|
26588
|
+
onAction: ee,
|
|
26589
|
+
composer: j
|
|
26590
|
+
}, M.id) : null,
|
|
26591
|
+
N.map((e) => /* @__PURE__ */ Q(vU, {
|
|
26395
26592
|
section: e,
|
|
26396
|
-
sources:
|
|
26397
|
-
onAction:
|
|
26593
|
+
sources: E,
|
|
26594
|
+
onAction: ee
|
|
26398
26595
|
}, e.id))
|
|
26399
26596
|
]
|
|
26400
|
-
}),
|
|
26401
|
-
view:
|
|
26402
|
-
params:
|
|
26403
|
-
presentation:
|
|
26404
|
-
width:
|
|
26405
|
-
bleed:
|
|
26406
|
-
isOpen:
|
|
26597
|
+
}), P && I && L ? /* @__PURE__ */ Q(SU, {
|
|
26598
|
+
view: I,
|
|
26599
|
+
params: P.params,
|
|
26600
|
+
presentation: L.presentation,
|
|
26601
|
+
width: L.width,
|
|
26602
|
+
bleed: L.bleed,
|
|
26603
|
+
isOpen: P.open,
|
|
26407
26604
|
onClose: () => {
|
|
26408
|
-
|
|
26605
|
+
F((e) => e && {
|
|
26409
26606
|
...e,
|
|
26410
26607
|
open: !1
|
|
26411
|
-
}),
|
|
26608
|
+
}), h?.();
|
|
26412
26609
|
},
|
|
26413
|
-
sources:
|
|
26414
|
-
onAction:
|
|
26610
|
+
sources: pW(E, P, !!I.params?.length, p),
|
|
26611
|
+
onAction: ee
|
|
26415
26612
|
}) : null]
|
|
26416
26613
|
}),
|
|
26417
26614
|
r ? /* @__PURE__ */ Q("div", {
|
|
26418
26615
|
className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
|
|
26419
26616
|
children: /* @__PURE__ */ Q(mR, {})
|
|
26420
26617
|
}) : null,
|
|
26421
|
-
n || i.length ||
|
|
26618
|
+
n || i.length || c ? /* @__PURE__ */ Q(JU, {
|
|
26422
26619
|
widgets: i,
|
|
26423
|
-
|
|
26424
|
-
|
|
26425
|
-
|
|
26426
|
-
|
|
26427
|
-
|
|
26620
|
+
collapsed: A.collapsed,
|
|
26621
|
+
onToggleCollapsed: A.toggle,
|
|
26622
|
+
onReorder: u,
|
|
26623
|
+
onAdd: c,
|
|
26624
|
+
onRemove: l,
|
|
26625
|
+
onChangeParams: d,
|
|
26626
|
+
slotRenderers: S,
|
|
26627
|
+
clockIn: n
|
|
26428
26628
|
}) : null
|
|
26429
26629
|
]
|
|
26430
26630
|
})
|
|
26431
26631
|
})
|
|
26432
26632
|
});
|
|
26433
|
-
}),
|
|
26633
|
+
}), yW = dn("F0AgenticHome", vW), bW = zl(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
|
|
26434
26634
|
let a = J(() => (e, t) => n?.(e, t), [n]);
|
|
26435
26635
|
return /* @__PURE__ */ Q("div", {
|
|
26436
26636
|
ref: i,
|
|
26437
|
-
children: /* @__PURE__ */ Q(
|
|
26637
|
+
children: /* @__PURE__ */ Q(RH, {
|
|
26438
26638
|
value: r,
|
|
26439
|
-
children: /* @__PURE__ */ Q(
|
|
26639
|
+
children: /* @__PURE__ */ Q(VH, {
|
|
26440
26640
|
element: e,
|
|
26441
26641
|
state: t,
|
|
26442
26642
|
onAction: a
|
|
26443
26643
|
})
|
|
26444
26644
|
})
|
|
26445
26645
|
});
|
|
26446
|
-
}),
|
|
26646
|
+
}), xW = dn("F0AgenticHomeBlock", bW), SW = {
|
|
26447
26647
|
maxSections: 12,
|
|
26448
26648
|
maxElementsPerSection: 3,
|
|
26449
26649
|
blocks: [
|
|
@@ -26491,10 +26691,10 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26491
26691
|
type: "list",
|
|
26492
26692
|
itemActions: ["goToSection"]
|
|
26493
26693
|
}] }
|
|
26494
|
-
},
|
|
26694
|
+
}, CW = 1, wW = {
|
|
26495
26695
|
main: 672,
|
|
26496
26696
|
right: 396
|
|
26497
|
-
},
|
|
26697
|
+
}, TW = 250, EW = (e) => typeof e == "object" && !!e && !Bl(e) && Array.isArray(e.slots), DW = ({ preview: e, params: t, slotRenderers: n }) => EW(e) ? /* @__PURE__ */ Q(Fz, {
|
|
26498
26698
|
...ZR(e),
|
|
26499
26699
|
header: e.header,
|
|
26500
26700
|
params: t ?? e.params,
|
|
@@ -26502,7 +26702,7 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26502
26702
|
slots: e.slots,
|
|
26503
26703
|
loading: e.loading,
|
|
26504
26704
|
slotRenderers: n
|
|
26505
|
-
}) : /* @__PURE__ */ Q(Z, { children: e }),
|
|
26705
|
+
}) : /* @__PURE__ */ Q(Z, { children: e }), OW = (e, t, n) => e.info ?? (EW(t) ? qR(t.header, n ?? t.params)?.info : void 0), kW = (e) => e.paramsSchema ?? (EW(e.preview) ? e.preview.paramsSchema : void 0), AW = (e) => e.params ?? (EW(e.preview) ? e.preview.params : void 0) ?? {}, jW = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
|
|
26506
26706
|
className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
|
|
26507
26707
|
children: [t ? /* @__PURE__ */ Q(W, {
|
|
26508
26708
|
icon: t,
|
|
@@ -26513,10 +26713,10 @@ var bB = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26513
26713
|
children: e
|
|
26514
26714
|
})]
|
|
26515
26715
|
});
|
|
26516
|
-
function
|
|
26716
|
+
function MW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
|
|
26517
26717
|
let u = z(), { position: d, width: f, bodyClassName: p, asideClassName: m } = Lz(), [h, g] = X(""), [_, v] = X(null), [y, b] = X("pick"), [x, S] = X(!1), C = (e) => {
|
|
26518
26718
|
S(!0), b(e);
|
|
26519
|
-
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = it(), k = h.trim().toLowerCase(), A = o ?? (a ?
|
|
26719
|
+
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = it(), k = h.trim().toLowerCase(), A = o ?? (a ? wW[a] : wW.right), j = J(() => {
|
|
26520
26720
|
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));
|
|
26521
26721
|
return [
|
|
26522
26722
|
...r.length ? [{
|
|
@@ -26541,7 +26741,7 @@ function uW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
26541
26741
|
k,
|
|
26542
26742
|
a,
|
|
26543
26743
|
u
|
|
26544
|
-
]), M = j.flatMap((e) => e.items), N = M.find((e) => e.id === _) ?? M[0] ?? null, P = N ?
|
|
26744
|
+
]), M = j.flatMap((e) => e.items), N = M.find((e) => e.id === _) ?? M[0] ?? null, P = N ? kW(N) : void 0, F = P !== void 0 && !(N?.addWithDefaults && YR(P, AW(N))), I = y === "configure" && F, L = N && w?.id === N.id ? w.params : N ? AW(N) : {}, ee = I && N && c ? c(N, L) : N?.preview;
|
|
26545
26745
|
return K(() => {
|
|
26546
26746
|
e && (b("pick"), S(!1), T(null));
|
|
26547
26747
|
}, [e]), K(() => {
|
|
@@ -26561,7 +26761,7 @@ function uW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
26561
26761
|
label: F ? u.wizard.next : "Add widget",
|
|
26562
26762
|
disabled: !N,
|
|
26563
26763
|
onClick: () => {
|
|
26564
|
-
N && (F ? C("configure") : P ? r(N.id,
|
|
26764
|
+
N && (F ? C("configure") : P ? r(N.id, L) : r(N.id));
|
|
26565
26765
|
}
|
|
26566
26766
|
},
|
|
26567
26767
|
secondaryAction: I && N ? {
|
|
@@ -26585,10 +26785,10 @@ function uW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
26585
26785
|
formRef: E,
|
|
26586
26786
|
name: "widget-params",
|
|
26587
26787
|
schema: P,
|
|
26588
|
-
defaultValues:
|
|
26788
|
+
defaultValues: L,
|
|
26589
26789
|
submitConfig: {
|
|
26590
26790
|
type: "autosubmit",
|
|
26591
|
-
delay:
|
|
26791
|
+
delay: TW,
|
|
26592
26792
|
hideActionBar: !0
|
|
26593
26793
|
},
|
|
26594
26794
|
styling: { noPadding: !0 },
|
|
@@ -26603,7 +26803,7 @@ function uW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
26603
26803
|
placeholder: "Search widgets"
|
|
26604
26804
|
}), /* @__PURE__ */ $("div", {
|
|
26605
26805
|
className: "flex flex-col gap-1 overflow-y-auto",
|
|
26606
|
-
children: [j.map((e) => /* @__PURE__ */ $(Fl, { children: [e.label ? /* @__PURE__ */ Q(
|
|
26806
|
+
children: [j.map((e) => /* @__PURE__ */ $(Fl, { children: [e.label ? /* @__PURE__ */ Q(jW, {
|
|
26607
26807
|
label: e.label,
|
|
26608
26808
|
icon: e.icon
|
|
26609
26809
|
}) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
|
|
@@ -26624,11 +26824,11 @@ function uW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
26624
26824
|
})] })
|
|
26625
26825
|
}, y), /* @__PURE__ */ Q(zz, {
|
|
26626
26826
|
previewKey: N?.id,
|
|
26627
|
-
info: N ?
|
|
26827
|
+
info: N ? OW(N, ee, I ? L : void 0) : void 0,
|
|
26628
26828
|
previewWidth: A,
|
|
26629
|
-
children: N ? /* @__PURE__ */ Q(
|
|
26630
|
-
preview:
|
|
26631
|
-
params: I ?
|
|
26829
|
+
children: N ? /* @__PURE__ */ Q(DW, {
|
|
26830
|
+
preview: ee,
|
|
26831
|
+
params: I ? L : void 0,
|
|
26632
26832
|
slotRenderers: s
|
|
26633
26833
|
}) : null
|
|
26634
26834
|
})]
|
|
@@ -26637,62 +26837,62 @@ function uW({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
26637
26837
|
}
|
|
26638
26838
|
//#endregion
|
|
26639
26839
|
//#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
|
|
26640
|
-
var
|
|
26840
|
+
var NW = Object.defineProperty, PW = Object.defineProperties, FW = Object.getOwnPropertyDescriptors, IW = Object.getOwnPropertySymbols, LW = Object.prototype.hasOwnProperty, RW = Object.prototype.propertyIsEnumerable, zW = (e, t, n) => t in e ? NW(e, t, {
|
|
26641
26841
|
enumerable: !0,
|
|
26642
26842
|
configurable: !0,
|
|
26643
26843
|
writable: !0,
|
|
26644
26844
|
value: n
|
|
26645
|
-
}) : e[t] = n,
|
|
26646
|
-
for (var n in t ||= {})
|
|
26647
|
-
if (
|
|
26845
|
+
}) : e[t] = n, BW = (e, t) => {
|
|
26846
|
+
for (var n in t ||= {}) LW.call(t, n) && zW(e, n, t[n]);
|
|
26847
|
+
if (IW) for (var n of IW(t)) RW.call(t, n) && zW(e, n, t[n]);
|
|
26648
26848
|
return e;
|
|
26649
|
-
},
|
|
26849
|
+
}, VW = (e, t) => PW(e, FW(t)), HW = (e, t) => {
|
|
26650
26850
|
var n = {};
|
|
26651
|
-
for (var r in e)
|
|
26652
|
-
if (e != null &&
|
|
26851
|
+
for (var r in e) LW.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
26852
|
+
if (e != null && IW) for (var r of IW(e)) t.indexOf(r) < 0 && RW.call(e, r) && (n[r] = e[r]);
|
|
26653
26853
|
return n;
|
|
26654
|
-
},
|
|
26854
|
+
}, UW = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, WW = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), GW = ({ position: e, spot: t, stone: n }) => {
|
|
26655
26855
|
if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
|
|
26656
26856
|
if (t.bottom && t.bottom < e.top) return t;
|
|
26657
|
-
let n =
|
|
26857
|
+
let n = BW({}, t);
|
|
26658
26858
|
return n.right = e.left, n;
|
|
26659
26859
|
}
|
|
26660
26860
|
return null;
|
|
26661
|
-
},
|
|
26861
|
+
}, KW = ({ position: e, stone: t, spot: n }) => {
|
|
26662
26862
|
if (e.left + t.width > n.left && e.top >= n.top) {
|
|
26663
26863
|
if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
|
|
26664
|
-
let t =
|
|
26864
|
+
let t = BW({}, n);
|
|
26665
26865
|
return t.bottom = e.top, t;
|
|
26666
26866
|
}
|
|
26667
26867
|
return null;
|
|
26668
|
-
},
|
|
26669
|
-
let i =
|
|
26670
|
-
return i.left = t.left + e.width,
|
|
26868
|
+
}, qW = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
|
|
26869
|
+
let i = BW({}, r);
|
|
26870
|
+
return i.left = t.left + e.width, UW(i) || WW({
|
|
26671
26871
|
usedSpot: i,
|
|
26672
26872
|
spotsList: n
|
|
26673
26873
|
}) ? null : i;
|
|
26674
|
-
},
|
|
26874
|
+
}, JW = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? qW({
|
|
26675
26875
|
stone: r,
|
|
26676
26876
|
position: t,
|
|
26677
26877
|
optimalSpot: n,
|
|
26678
26878
|
spotsList: a
|
|
26679
|
-
}) :
|
|
26879
|
+
}) : GW({
|
|
26680
26880
|
position: t,
|
|
26681
26881
|
spot: e,
|
|
26682
26882
|
stone: r
|
|
26683
|
-
}) ||
|
|
26883
|
+
}) || KW({
|
|
26684
26884
|
position: t,
|
|
26685
26885
|
stone: r,
|
|
26686
26886
|
spot: e
|
|
26687
26887
|
}) || e);
|
|
26688
|
-
function
|
|
26888
|
+
function YW(e, t) {
|
|
26689
26889
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
26690
26890
|
let r = t[n];
|
|
26691
26891
|
if (e(r)) return r;
|
|
26692
26892
|
}
|
|
26693
26893
|
return null;
|
|
26694
26894
|
}
|
|
26695
|
-
var
|
|
26895
|
+
var XW = (e, t) => t.filter(e), ZW = (e, t) => [...t].sort(e), QW = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, $W = (e) => ZW(QW, e), eG = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
|
|
26696
26896
|
let i = {
|
|
26697
26897
|
right: n,
|
|
26698
26898
|
top: t.top + r.height,
|
|
@@ -26707,36 +26907,36 @@ var OW = (e, t) => t.filter(e), kW = (e, t) => [...t].sort(e), AW = (e, t) => e.
|
|
|
26707
26907
|
}
|
|
26708
26908
|
}
|
|
26709
26909
|
return i;
|
|
26710
|
-
},
|
|
26910
|
+
}, tG = (e, t) => {
|
|
26711
26911
|
let n = e.right - e.left >= t.width;
|
|
26712
26912
|
if (!e.bottom) return n;
|
|
26713
26913
|
let r = e.bottom - e.top >= t.height;
|
|
26714
26914
|
return n && r;
|
|
26715
|
-
},
|
|
26716
|
-
function
|
|
26717
|
-
let r =
|
|
26915
|
+
}, nG = ({ availableSpots: e, stone: t }) => YW((e) => tG(e, t), e);
|
|
26916
|
+
function rG({ stone: e, availableSpots: t, containerSize: n }) {
|
|
26917
|
+
let r = nG({
|
|
26718
26918
|
availableSpots: t,
|
|
26719
26919
|
stone: e
|
|
26720
26920
|
}), i = {
|
|
26721
26921
|
left: r.left,
|
|
26722
26922
|
top: r.top
|
|
26723
|
-
}, a =
|
|
26923
|
+
}, a = eG({
|
|
26724
26924
|
optimalSpot: r,
|
|
26725
26925
|
availableSpots: t.filter((e) => e !== r),
|
|
26726
26926
|
stone: e,
|
|
26727
26927
|
containerSize: n
|
|
26728
|
-
}), o = [...t, a], s =
|
|
26928
|
+
}), o = [...t, a], s = JW({
|
|
26729
26929
|
spots: o,
|
|
26730
26930
|
position: i,
|
|
26731
26931
|
optimalSpot: r,
|
|
26732
26932
|
stone: e
|
|
26733
26933
|
});
|
|
26734
|
-
return o = [...
|
|
26934
|
+
return o = [...XW(Boolean, s)], o = $W(o), {
|
|
26735
26935
|
position: i,
|
|
26736
26936
|
availableSpots: o
|
|
26737
26937
|
};
|
|
26738
26938
|
}
|
|
26739
|
-
var
|
|
26939
|
+
var iG = ({ stones: e, containerSize: t }) => {
|
|
26740
26940
|
let n = {
|
|
26741
26941
|
positions: [],
|
|
26742
26942
|
containerHeight: 0,
|
|
@@ -26749,7 +26949,7 @@ var IW = ({ stones: e, containerSize: t }) => {
|
|
|
26749
26949
|
right: t
|
|
26750
26950
|
}];
|
|
26751
26951
|
for (let n of e) {
|
|
26752
|
-
let e =
|
|
26952
|
+
let e = rG({
|
|
26753
26953
|
availableSpots: a,
|
|
26754
26954
|
stone: n,
|
|
26755
26955
|
containerSize: t
|
|
@@ -26761,14 +26961,14 @@ var IW = ({ stones: e, containerSize: t }) => {
|
|
|
26761
26961
|
positions: i,
|
|
26762
26962
|
containerHeight: r
|
|
26763
26963
|
};
|
|
26764
|
-
},
|
|
26964
|
+
}, aG = (e) => e.reduce((e, t) => {
|
|
26765
26965
|
if (!t) return e;
|
|
26766
26966
|
let n = t.getBoundingClientRect();
|
|
26767
26967
|
return e.push({
|
|
26768
26968
|
width: n.width,
|
|
26769
26969
|
height: n.height
|
|
26770
26970
|
}), e;
|
|
26771
|
-
}, []),
|
|
26971
|
+
}, []), oG = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
|
|
26772
26972
|
let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
|
|
26773
26973
|
positions: [],
|
|
26774
26974
|
containerHeight: null,
|
|
@@ -26776,13 +26976,13 @@ var IW = ({ stones: e, containerSize: t }) => {
|
|
|
26776
26976
|
availableSpots: []
|
|
26777
26977
|
});
|
|
26778
26978
|
return K(() => {
|
|
26779
|
-
let n =
|
|
26979
|
+
let n = aG(e.current), r = t.current?.offsetWidth ?? 0;
|
|
26780
26980
|
if (r === null) return;
|
|
26781
|
-
let i =
|
|
26981
|
+
let i = iG({
|
|
26782
26982
|
stones: n,
|
|
26783
26983
|
containerSize: r
|
|
26784
26984
|
});
|
|
26785
|
-
l(
|
|
26985
|
+
l(VW(BW({}, i), { stones: n }));
|
|
26786
26986
|
}, [
|
|
26787
26987
|
n,
|
|
26788
26988
|
e,
|
|
@@ -26795,7 +26995,7 @@ var IW = ({ stones: e, containerSize: t }) => {
|
|
|
26795
26995
|
stones: s,
|
|
26796
26996
|
availableSpots: c
|
|
26797
26997
|
};
|
|
26798
|
-
},
|
|
26998
|
+
}, sG = (e) => ({
|
|
26799
26999
|
fade: `${e}ms opacity ease`,
|
|
26800
27000
|
fadeMove: `
|
|
26801
27001
|
${e}ms opacity ease,
|
|
@@ -26806,15 +27006,15 @@ var IW = ({ stones: e, containerSize: t }) => {
|
|
|
26806
27006
|
${e}ms top ease,
|
|
26807
27007
|
${e}ms left ease
|
|
26808
27008
|
`
|
|
26809
|
-
}),
|
|
27009
|
+
}), cG = ({ transition: e, transitionDuration: t }) => e ? { transition: sG(t)[e] } : null, lG = (e) => e ? VW(BW({}, e), { opacity: 1 }) : {
|
|
26810
27010
|
opacity: 0,
|
|
26811
27011
|
top: 0,
|
|
26812
27012
|
left: 0
|
|
26813
|
-
},
|
|
27013
|
+
}, uG = ({ style: e, position: t, transition: n, transitionDuration: r }) => BW(BW(VW(BW({}, e), { position: "absolute" }), lG(t)), cG({
|
|
26814
27014
|
transition: n,
|
|
26815
27015
|
transitionDuration: r
|
|
26816
27016
|
}));
|
|
26817
|
-
function
|
|
27017
|
+
function dG(e, t, n) {
|
|
26818
27018
|
let r;
|
|
26819
27019
|
return function(...i) {
|
|
26820
27020
|
r && clearTimeout(r), r = setTimeout(function() {
|
|
@@ -26822,8 +27022,8 @@ function UW(e, t, n) {
|
|
|
26822
27022
|
}, t), n && !r && e.apply(null, i);
|
|
26823
27023
|
};
|
|
26824
27024
|
}
|
|
26825
|
-
var
|
|
26826
|
-
let [e, t] = X(), n = Y(
|
|
27025
|
+
var fG = () => {
|
|
27026
|
+
let [e, t] = X(), n = Y(dG(t, 300));
|
|
26827
27027
|
return K(() => {
|
|
26828
27028
|
let e = () => {
|
|
26829
27029
|
n.current(window.innerWidth);
|
|
@@ -26832,7 +27032,7 @@ var WW = () => {
|
|
|
26832
27032
|
window.removeEventListener("resize", e);
|
|
26833
27033
|
};
|
|
26834
27034
|
}, []), e;
|
|
26835
|
-
},
|
|
27035
|
+
}, pG = (e) => {
|
|
26836
27036
|
let [t, n] = X(null);
|
|
26837
27037
|
return K(() => {
|
|
26838
27038
|
let t = new ResizeObserver((e) => {
|
|
@@ -26842,31 +27042,31 @@ var WW = () => {
|
|
|
26842
27042
|
t.disconnect();
|
|
26843
27043
|
};
|
|
26844
27044
|
}, [e]), t;
|
|
26845
|
-
},
|
|
26846
|
-
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s =
|
|
27045
|
+
}, mG = (e) => {
|
|
27046
|
+
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = HW(t, [
|
|
26847
27047
|
"children",
|
|
26848
27048
|
"style",
|
|
26849
27049
|
"transition",
|
|
26850
27050
|
"transitionDuration",
|
|
26851
27051
|
"transitionStep"
|
|
26852
27052
|
]);
|
|
26853
|
-
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } =
|
|
27053
|
+
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = oG({
|
|
26854
27054
|
boxesRefs: c,
|
|
26855
27055
|
wrapperRef: l,
|
|
26856
27056
|
children: n,
|
|
26857
|
-
windowWidth:
|
|
26858
|
-
wrapperWidth:
|
|
26859
|
-
}), f =
|
|
27057
|
+
windowWidth: fG(),
|
|
27058
|
+
wrapperWidth: pG(l)
|
|
27059
|
+
}), f = BW({
|
|
26860
27060
|
minHeight: d ?? 0,
|
|
26861
27061
|
position: "relative"
|
|
26862
27062
|
}, r);
|
|
26863
|
-
return Q("div",
|
|
27063
|
+
return Q("div", VW(BW({
|
|
26864
27064
|
ref: l,
|
|
26865
27065
|
style: f
|
|
26866
27066
|
}, s), { children: Pl.map(n, (e, t) => {
|
|
26867
27067
|
if (typeof e != "object" || !e || !("type" in e)) return e;
|
|
26868
27068
|
let n = {
|
|
26869
|
-
style:
|
|
27069
|
+
style: uG({
|
|
26870
27070
|
style: e.props.style,
|
|
26871
27071
|
position: u[t],
|
|
26872
27072
|
transition: i,
|
|
@@ -26874,14 +27074,14 @@ var WW = () => {
|
|
|
26874
27074
|
}),
|
|
26875
27075
|
ref: (e) => c.current[t] = e
|
|
26876
27076
|
};
|
|
26877
|
-
return Ll(e,
|
|
27077
|
+
return Ll(e, BW(BW({}, e.props), n));
|
|
26878
27078
|
}) }));
|
|
26879
|
-
},
|
|
27079
|
+
}, hG = {
|
|
26880
27080
|
sm: 340,
|
|
26881
27081
|
md: 480,
|
|
26882
27082
|
lg: 640
|
|
26883
|
-
},
|
|
26884
|
-
let r =
|
|
27083
|
+
}, gG = zl(function({ children: e, widgetWidth: t = "sm" }, n) {
|
|
27084
|
+
let r = hG[t], [i, a] = X(), o = Pl.toArray(e), s = Y(null);
|
|
26885
27085
|
return K(() => {
|
|
26886
27086
|
let e = () => {
|
|
26887
27087
|
let e = s.current?.offsetWidth;
|
|
@@ -26900,7 +27100,7 @@ var WW = () => {
|
|
|
26900
27100
|
children: e
|
|
26901
27101
|
}) : i && i > 1 && /* @__PURE__ */ Q("div", {
|
|
26902
27102
|
className: "relative -mr-4",
|
|
26903
|
-
children: /* @__PURE__ */ Q(
|
|
27103
|
+
children: /* @__PURE__ */ Q(mG, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
|
|
26904
27104
|
style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
|
|
26905
27105
|
className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
|
|
26906
27106
|
children: e
|
|
@@ -26908,7 +27108,7 @@ var WW = () => {
|
|
|
26908
27108
|
})
|
|
26909
27109
|
})
|
|
26910
27110
|
});
|
|
26911
|
-
}),
|
|
27111
|
+
}), _G = [
|
|
26912
27112
|
"sm",
|
|
26913
27113
|
"lg",
|
|
26914
27114
|
"md",
|
|
@@ -26921,26 +27121,26 @@ var WW = () => {
|
|
|
26921
27121
|
"sm",
|
|
26922
27122
|
"md",
|
|
26923
27123
|
"md"
|
|
26924
|
-
],
|
|
27124
|
+
], vG = Xi(gG, () => /* @__PURE__ */ Q(co, { children: /* @__PURE__ */ Q(gG, { children: _G.map((e, t) => /* @__PURE__ */ Q(Ie.Skeleton, { height: e }, t)) }) })), yG = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
26925
27125
|
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)]",
|
|
26926
27126
|
children: e
|
|
26927
|
-
}),
|
|
27127
|
+
}), bG = Xi(zl(function({ children: e }, t) {
|
|
26928
27128
|
return /* @__PURE__ */ Q(Rc, {
|
|
26929
27129
|
ref: t,
|
|
26930
27130
|
showBar: !1,
|
|
26931
|
-
children: /* @__PURE__ */ Q(
|
|
27131
|
+
children: /* @__PURE__ */ Q(yG, { children: e })
|
|
26932
27132
|
});
|
|
26933
27133
|
}), () => /* @__PURE__ */ Q(co, {
|
|
26934
27134
|
orientation: "horizontal",
|
|
26935
|
-
children: /* @__PURE__ */ $(
|
|
27135
|
+
children: /* @__PURE__ */ $(yG, { children: [
|
|
26936
27136
|
/* @__PURE__ */ Q(Ie.Skeleton, {}),
|
|
26937
27137
|
/* @__PURE__ */ Q(Ie.Skeleton, {}),
|
|
26938
27138
|
/* @__PURE__ */ Q(Ie.Skeleton, {})
|
|
26939
27139
|
] })
|
|
26940
|
-
})),
|
|
27140
|
+
})), xG = Ie;
|
|
26941
27141
|
//#endregion
|
|
26942
27142
|
//#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
|
|
26943
|
-
function
|
|
27143
|
+
function SG({ title: e, description: t, emoji: n, actions: r }) {
|
|
26944
27144
|
if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
|
|
26945
27145
|
return /* @__PURE__ */ Q(x, {
|
|
26946
27146
|
title: e,
|
|
@@ -26951,7 +27151,7 @@ function eG({ title: e, description: t, emoji: n, actions: r }) {
|
|
|
26951
27151
|
}
|
|
26952
27152
|
//#endregion
|
|
26953
27153
|
//#region src/blocks/Widgets/WidgetEmptyState/index.tsx
|
|
26954
|
-
var
|
|
27154
|
+
var CG = sn(dn("WidgetEmptyState", SG)), wG = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
|
|
26955
27155
|
let i = cn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
|
|
26956
27156
|
a,
|
|
26957
27157
|
t,
|
|
@@ -26965,9 +27165,9 @@ var tG = sn(dn("WidgetEmptyState", eG)), nG = ({ identifier: e, allowedRoutes: t
|
|
|
26965
27165
|
n
|
|
26966
27166
|
]);
|
|
26967
27167
|
return o ? r : (i && console.error(s), null);
|
|
26968
|
-
},
|
|
27168
|
+
}, TG = sn(Lo({
|
|
26969
27169
|
name: "ScrollArea",
|
|
26970
27170
|
type: "layout"
|
|
26971
27171
|
}, Rc));
|
|
26972
27172
|
//#endregion
|
|
26973
|
-
export {
|
|
27173
|
+
export { CW as AGENTIC_HOME_SPEC_VERSION, f as AUTO_PER_PAGE_MAX, $t as AUTO_PER_PAGE_MIN_RESERVED_ROWS, tm as ActivityItemList, em as ActivityItemListSkeleton, Ou as AiPromotionChat, ku as AiPromotionChatProvider, uC as ApplicationFrame, ut as AreaChart, EI as AreaChartWidget, fI as AutoGrid, qo as Badge, ct as BarChart, DI as BarChartWidget, $p as BaseActivityItemList, lt as BaseBanner, sm as BaseCelebration, wm as BaseCommunityPost, Ta as BaseTabs, ra as BreadcrumbSelect, jC as Breadcrumbs, ym as CalendarEvent, HI as CalendarEventList, de as CardSelectableContainer, Ut as Carousel, Ve as CategoryBarChart, lL as CategoryBarSection, lm as Celebration, cm as CelebrationSkeleton, zI as ChartWidgetEmptyState, uc as Chip, RL as ClockInControls, Ht as CoachmarkProvider, Yt as ComboChart, Em as CommunityPost, Fm as CommunityPostCard, Im as CommunityPostCardSkeleton, Tm as CommunityPostSkeleton, wT as CompanySelector, Wn as Counter, lz as DEFAULT_EXPECTED_ITEMS_COUNT, vG as Dashboard, SC as DaytimePage, So as DetailsItem, ar as DetailsItemsList, Jt as Dialog, Ni as Dropdown, nz as EVENT_LIST_GAP, bp as EntitySelect, n as F0ActionBar, yW as F0AgenticHome, xW as F0AgenticHomeBlock, pe as F0AiBanner, sd as F0AiCallout, Go as F0AvatarColor, is as F0AvatarColorList, as as F0AvatarModule, Os as F0ButtonToggle, hd as F0Callout, tr as F0CardHorizontal, tr as F0CardRow, xf as F0CarouselDialog, qF as F0Chat, fk as F0ChatHistoryLimitCard, vl as F0ChatProvider, fO as F0CommandPaletteProvider, Bm as F0CommunityPostsCarousel, Dd as F0Confetti, eI as F0ENPSButton, Ru as F0EmojiPicker, po as F0FileItem, Ne as F0FormEditableTable, We as F0LocationInput, dl as F0Map, Yc as F0MapControls, ml as F0MapList, hl as F0MapSidebar, al as F0MapSidebarToggle, cl as F0MapSkeleton, kS as F0Meeting, Yd as F0MeetingCard, ch as F0MeetingProvider, dS as F0MeetingRoom, AS as F0MeetingSlot, OS as F0MeetingSurface, nn as F0NotesTextEditor, Ge as F0NotesTextEditorSkeleton, p as F0NumberInput, g as F0NumberInputInline, Kr as F0PersonCard, pt as F0PhoneInput, BE as F0PrimarySidebar, pc as F0ProgressSeries, ef as F0PulseDot, vf as F0Resizable, Be as F0ResourceHeader, Be as ResourceHeader, Po as F0RichTextDisplay, mt as F0RichTextEditor, Xs as F0SearchInput, UE as F0SecondarySidebar, Cf as F0SegmentedBar, Ki as F0SegmentedControl, Pf as F0SwipeDeck, It as F0TableOfContent, Up as F0TemplateTextInput, Zt as F0TextAreaInput, u as F0TextAreaInputInline, Mo as F0TextInput, ge as F0TextInputInline, Kf as F0Timeline, Wf as F0VersionHistory, lk as F0_CHAT_HEADER_TITLE_SELECTOR, vO as F0_CHAT_MESSAGES_TAB_ID, qs as F1SearchBox, ie as FILE_TYPES, Ua as FileItem, um as HighlightBanner, fR as HomeSlotItem, dR as HomeSlotItems, qI as IndicatorsList, qi as Input, Ue as Item, ft as ItemSectionHeader, yO as LATEST, HR as LIST_COMPACT_AFTER, ez as LIST_MORE_BUTTON_CLASS, rn as LineChart, OI as LineChartWidget, US as MeetingNotes, MS as MeetingPanelContent, HS as MeetingParticipants, PS as MeetingRoomChat, Jx as MeetingSidePanel, O_ as MeetingSurfaceProvider, LS as MeetingTranscript, HT as Menu, Qr as MobileDropdown, IB as NewHomeLayout, en as NotesTextEditor, he as NotesTextEditorSkeleton, ae as NumberInput, rw as OmniButton, rD as OneApprovalHistory, Gs as OneCalendar, Fs as OneCalendarInternal, Ot as OneDataCollection, c as OneDateNavigator, x as OneEmptyState, Gm as OneListItem, Wm as OneListItemSkeleton, gt as OnePagination, Jm as OnePersonListItem, wG as OneRestrictComponent, aw as Page, $C as PageHeader, MC as PageHeaderNavigationContext, NC as PageHeaderNavigationProvider, _i as PageNavigation, Ke as PieChart, kI as PieChartWidget, fe as PrivateBox, tn as ProgressBarChart, SW as RECOMMENDED_AGENTIC_HOME_RULES, $c as RECOMMENDED_MAX_MARKERS, _e as RadarChart, pm as Reactions, ir as RichTextDisplay, te as RichTextEditor, QR as SLOT_ROW_BLEED, uz as SLOT_SKELETON_ITEM_TESTID, TG as ScrollArea, VE as SearchBar, r as SectionHeader, rc as Select, wn as Shortcut, KE as Sidebar, Hw as SidebarChatBlankState, Xw as SidebarChatItem, Ww as SidebarChatItemSkeleton, oT as SidebarChatList, Kw as SidebarChatListSkeleton, hw as SidebarChatProvider, Ew as SidebarCollapsibleSection, AT as SidebarFooter, MT as SidebarHeader, GT as SidebarPanelHeader, Bw as SidebarTabPanel, Pw as SidebarTabPanelSearch, YE as SidebarTabs, kT as SidebarUserMenu, Fz as SlotWidget, Pz as SlotWidgetContent, _s as Spinner, dI as Split, uI as Stack, jI as SummariesWidget, $s as Switch, Vr as Tabs, Wr as TabsSkeleton, HL as TasksList, ye as Textarea, dr as ToggleGroup, cr as ToggleGroupItem, Tn as Tooltip, En as TooltipGroup, cL as TwoColumnsList, ce as UPLOAD_INPUT_ID, d as VerticalBarChart, AI as VerticalBarChartWidget, Jf as VirtualList, ec as WeekStartDay, ai as Weekdays, xG as Widget, XI as WidgetAvatarsListItem, MW as WidgetCatalog, CG as WidgetEmptyState, GI as WidgetHighlightButton, iL as WidgetInboxList, $I as WidgetInboxListItem, _R as WidgetSection, oL as WidgetSimpleList, nL as WidgetSimpleListItem, bG as WidgetStrip, tt as actionBarStatuses, zu as aiCalloutStatuses, Zd as attendeesDisplays, Ug as buildTiles, Fe as buttonToggleColors, je as buttonToggleSizes, Re as buttonToggleVariants, _m as calendarEventVariants, js as chipVariants, lu as coachmarks, GD as commandActionRisks, Pm as communityPostCardVariants, gd as confettiPalette, tx as createMeetingSignalStore, sl as defaultMapStyle, yz as defaultSlotRenderers, vz as defaultSlotSkeleton, mu as defineStepByStepCoachmarkGuidance, Ye as downloadAsCSV, dD as downloadAsExcel, pO as f0ChatSenderColors, Au as f0EmojiPickerSizes, ro as f0FileItemSizes, Qc as f0MapMarkerVariants, ul as f0MapStyles, Qg as f0MeetingConnectionQualities, n_ as f0MeetingCoreActionIds, Xg as f0MeetingDisconnectReasons, Zg as f0MeetingPermissions, Jg as f0MeetingPresences, Yg as f0MeetingStatuses, $g as f0MeetingSurfaceDestinations, e_ as f0MeetingSurfaceModes, qg as f0MeetingTrackKinds, ru as f0ProgressSeriesColors, nu as f0ProgressSeriesSizes, t_ as f0WindowCorners, KR as fromParams, $e as generateCSVContent, xe as getAutoPerPageMinHeight, sc as getGranularityDefinition, Us as getGranularityDefinitions, fc as getGranularitySimpleDefinition, il as googleMapStyles, Zc as googlePinlessMapStyles, ic as granularityDefinitions, WR as homeSlot, Da as isPossiblePhoneValue, _O as isPost, mO as isSystemMessage, gO as isUserMessage, Zn as isValidPhoneValue, Gb as layoutGrid, h as listIconColors, tz as listMoreButtonClass, GR as listSlot, Tp as locationInputSizes, Ep as locationParts, Gy as matchDevice, Xd as meetingStates, Ro as modules, u_ as nearestCorner, Vm as oneListItemRowClassName, Dp as phoneInputSizes, l_ as placementFromRect, j as predefinedPresets, tf as pulseDotVariants, XR as railActionTones, Bs as rangeSeparator, zy as readMeetingMediaPreferences, Jb as reorderForSpeakers, nf as resizableDirections, Nb as resolveAutoFocus, Qs as resolveGranularityDefinition, c_ as resolvePlacement, VR as resolveSlotRenderer, qR as resolveWidgetHeader, Bh as sanitizeMeetingReaction, aD as seedFromStorage, Te as selectSizes, T as selectVariants, d_ as settlePlacement, $R as slotRowBleed, Wb as solveGrid, Yb as solveSpotlight, Bf as swipeDirections, Kg as tileAspectRatio, Vg as tileKey, By as updateMeetingMediaPreferences, xu as useAiPromotionChat, uO as useCommandPalette, nm as useCompactOnScroll, Td as useConfetti, re as useDataCollectionData, oD as useDataCollectionItemNavigation, me as useDataCollectionSource, Vt as useExportAction, Ml as useF0Chat, uh as useF0Meeting, fh as useF0MeetingRoster, dh as useF0MeetingStable, lh as useHasF0Meeting, a as useInfiniteScrollPagination, uR as useIsBulkChange, Vy as useMeetingMediaPreferences, ax as useMeetingSignal, ox as useMeetingSpeakers, k_ as useMeetingSurface, A_ as useMeetingSurfaceOptional, FC as usePageHeaderItemNavigation, PC as usePageHeaderNavigation, Ba as useSidePanel, nl as useSidebar, yw as useSidebarChatActions, vw as useSidebarChats, zf as useSwipeDeck, hh as useTrackBinding, Me as useWidgetIsWide, WS as viewportRect, ZR as widgetChrome, YR as widgetParamsAreComplete, JR as widgetTitle };
|