@factorialco/f0-react 11.1.0 → 11.2.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 +6 -0
- package/dist/experimental.js +789 -773
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -21517,25 +21517,40 @@ var PP = [
|
|
|
21517
21517
|
transition: LP(e, t, o),
|
|
21518
21518
|
children: a
|
|
21519
21519
|
});
|
|
21520
|
-
}
|
|
21520
|
+
};
|
|
21521
|
+
//#endregion
|
|
21522
|
+
//#region src/domains/platform/home/Home/HomeSidebarToggle.tsx
|
|
21523
|
+
function aF() {
|
|
21524
|
+
let { sidebarState: e, toggleSidebar: t, isSmallScreen: n, hasPrimarySidebar: r } = dc();
|
|
21525
|
+
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(My, {}), !r && (n || e === "hidden") ? /* @__PURE__ */ Q(z, {
|
|
21526
|
+
variant: "ghost",
|
|
21527
|
+
onClick: () => t(),
|
|
21528
|
+
label: "Open main menu",
|
|
21529
|
+
icon: Ga,
|
|
21530
|
+
hideLabel: !0
|
|
21531
|
+
}) : null] });
|
|
21532
|
+
}
|
|
21533
|
+
//#endregion
|
|
21534
|
+
//#region src/domains/platform/home/Home/HomeListItem/HomeListItem.tsx
|
|
21535
|
+
var oF = W("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2", "bg-gradient-to-l from-f1-background from-60% to-transparent", "opacity-0 transition-opacity motion-reduce:transition-none", "group-hover:pointer-events-auto group-hover:opacity-100", "group-focus-within:pointer-events-auto group-focus-within:opacity-100"), sF = "pointer-events-auto opacity-100", cF = {
|
|
21521
21536
|
default: "text-f1-foreground-secondary",
|
|
21522
21537
|
warning: "text-f1-foreground-warning",
|
|
21523
21538
|
critical: "text-f1-foreground-critical"
|
|
21524
|
-
},
|
|
21525
|
-
function
|
|
21539
|
+
}, lF = (e) => cF[e ?? "default"];
|
|
21540
|
+
function uF(e, t) {
|
|
21526
21541
|
return typeof e == "string" ? e ? [{
|
|
21527
21542
|
text: e,
|
|
21528
21543
|
variant: t
|
|
21529
21544
|
}] : [] : (e ?? []).filter((e) => e.text);
|
|
21530
21545
|
}
|
|
21531
|
-
function
|
|
21532
|
-
return
|
|
21546
|
+
function dF(e) {
|
|
21547
|
+
return uF(e).map((e) => e.text).join(" · ");
|
|
21533
21548
|
}
|
|
21534
|
-
function
|
|
21549
|
+
function fF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, subtitleVariant: a, description: o, descriptionVariant: s, right: c, actions: l, unread: u = !1, href: d, showChevron: f = !1, prominent: p = !1, onActivate: m, onClick: h }) {
|
|
21535
21550
|
let g = !!l?.length, _ = Ce(), [v, y] = X(null), b = n ?? (e ? /* @__PURE__ */ Q(Jo, {
|
|
21536
21551
|
avatar: e,
|
|
21537
21552
|
size: t
|
|
21538
|
-
}) : null), x =
|
|
21553
|
+
}) : null), x = uF(o, s), S = /* @__PURE__ */ $(Z, { children: [
|
|
21539
21554
|
b ? /* @__PURE__ */ $("div", {
|
|
21540
21555
|
className: "relative flex shrink-0",
|
|
21541
21556
|
children: [b, u ? /* @__PURE__ */ Q("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null]
|
|
@@ -21548,16 +21563,16 @@ function dF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21548
21563
|
className: W("max-w-full shrink-0 font-medium text-f1-foreground", p && "text-lg"),
|
|
21549
21564
|
children: r
|
|
21550
21565
|
}), i ? /* @__PURE__ */ $("span", {
|
|
21551
|
-
className: W("min-w-0 truncate",
|
|
21566
|
+
className: W("min-w-0 truncate", lF(a)),
|
|
21552
21567
|
children: ["· ", i]
|
|
21553
21568
|
}) : null]
|
|
21554
21569
|
}), x.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
21555
|
-
className: W("truncate", p && "mt-0.5",
|
|
21570
|
+
className: W("truncate", p && "mt-0.5", lF(x.length === 1 ? x[0].variant : void 0)),
|
|
21556
21571
|
children: x.map((e, t) => /* @__PURE__ */ $(il, { children: [t > 0 ? /* @__PURE__ */ Q("span", {
|
|
21557
21572
|
className: "text-f1-foreground-secondary",
|
|
21558
21573
|
children: " · "
|
|
21559
21574
|
}) : null, /* @__PURE__ */ Q("span", {
|
|
21560
|
-
className:
|
|
21575
|
+
className: lF(e.variant),
|
|
21561
21576
|
children: e.text
|
|
21562
21577
|
})] }, t))
|
|
21563
21578
|
}) : null]
|
|
@@ -21594,7 +21609,7 @@ function dF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21594
21609
|
return g ? /* @__PURE__ */ $("div", {
|
|
21595
21610
|
className: "group relative",
|
|
21596
21611
|
children: [E, /* @__PURE__ */ Q("div", {
|
|
21597
|
-
className: W(
|
|
21612
|
+
className: W(oF, v && sF),
|
|
21598
21613
|
children: l?.map((e) => {
|
|
21599
21614
|
let t = /* @__PURE__ */ Q(z, {
|
|
21600
21615
|
icon: e.icon,
|
|
@@ -21617,14 +21632,14 @@ function dF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21617
21632
|
}
|
|
21618
21633
|
//#endregion
|
|
21619
21634
|
//#region src/domains/platform/home/Home/tracking.tsx
|
|
21620
|
-
var
|
|
21635
|
+
var pF = nl.createContext(void 0), mF = ({ tracking: e, children: t }) => /* @__PURE__ */ Q(pF.Provider, {
|
|
21621
21636
|
value: e,
|
|
21622
21637
|
children: t
|
|
21623
|
-
}),
|
|
21638
|
+
}), hF = nl.createContext(void 0), gF = ({ widgetId: e, children: t }) => /* @__PURE__ */ Q(hF.Provider, {
|
|
21624
21639
|
value: e,
|
|
21625
21640
|
children: t
|
|
21626
|
-
}),
|
|
21627
|
-
let e = nl.useContext(
|
|
21641
|
+
}), _F = () => {
|
|
21642
|
+
let e = nl.useContext(pF), t = nl.useContext(hF);
|
|
21628
21643
|
return nl.useMemo(() => ({
|
|
21629
21644
|
reportAction: (n) => {
|
|
21630
21645
|
t !== void 0 && e?.onWidgetAction?.({
|
|
@@ -21640,18 +21655,18 @@ var fF = nl.createContext(void 0), pF = ({ tracking: e, children: t }) => /* @__
|
|
|
21640
21655
|
});
|
|
21641
21656
|
}
|
|
21642
21657
|
}), [e, t]);
|
|
21643
|
-
},
|
|
21658
|
+
}, vF = (e) => e == null ? void 0 : typeof e == "function" ? { render: e } : e, yF = 6, bF = (e, t) => !!e.compact || !e.descriptionOptional && t > 6, xF = (e, t, n) => ({
|
|
21644
21659
|
visualization: e,
|
|
21645
21660
|
params: t,
|
|
21646
21661
|
...n
|
|
21647
|
-
}),
|
|
21662
|
+
}), SF = (e, t, n) => ({
|
|
21648
21663
|
visualization: "list",
|
|
21649
21664
|
params: {
|
|
21650
21665
|
schema: e,
|
|
21651
21666
|
items: t
|
|
21652
21667
|
},
|
|
21653
21668
|
...n
|
|
21654
|
-
}),
|
|
21669
|
+
}), CF = (e, t) => (e) => t(e), wF = (e, t = {}) => {
|
|
21655
21670
|
if (!e) return;
|
|
21656
21671
|
let { title: n, info: r, ...i } = e, a = (e) => typeof e == "function" ? e(t) : e;
|
|
21657
21672
|
return {
|
|
@@ -21659,14 +21674,14 @@ var fF = nl.createContext(void 0), pF = ({ tracking: e, children: t }) => /* @__
|
|
|
21659
21674
|
title: a(n),
|
|
21660
21675
|
info: a(r)
|
|
21661
21676
|
};
|
|
21662
|
-
},
|
|
21677
|
+
}, TF = (e) => wF(e.header, e.params)?.title ?? e.id, EF = (e, t) => !e || e.safeParse(t ?? {}).success, DF = [
|
|
21663
21678
|
"neutral",
|
|
21664
21679
|
"accent",
|
|
21665
21680
|
"critical",
|
|
21666
21681
|
"warning",
|
|
21667
21682
|
"promote",
|
|
21668
21683
|
"positive"
|
|
21669
|
-
],
|
|
21684
|
+
], OF = (e) => {
|
|
21670
21685
|
let t = {
|
|
21671
21686
|
action: e.action,
|
|
21672
21687
|
summaries: e.summaries,
|
|
@@ -21681,7 +21696,7 @@ var fF = nl.createContext(void 0), pF = ({ tracking: e, children: t }) => /* @__
|
|
|
21681
21696
|
...t,
|
|
21682
21697
|
status: "status" in e ? e.status : void 0
|
|
21683
21698
|
};
|
|
21684
|
-
},
|
|
21699
|
+
}, kF = "-m-2", AF = (e) => W(kF, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), jF = "ml-1.5 mt-1 self-start", MF = (e) => W(jF, e.isLastSlot && !e.hasFooter && "mb-1.5"), NF = "gap-2", PF = "xl", FF = (e, t, n, r) => {
|
|
21685
21700
|
if (e === "module" && t.module) return { left: /* @__PURE__ */ Q(To, {
|
|
21686
21701
|
module: t.module,
|
|
21687
21702
|
size: n
|
|
@@ -21703,9 +21718,9 @@ var fF = nl.createContext(void 0), pF = ({ tracking: e, children: t }) => /* @__
|
|
|
21703
21718
|
type: e,
|
|
21704
21719
|
...t.avatar
|
|
21705
21720
|
},
|
|
21706
|
-
avatarSize: r ?
|
|
21721
|
+
avatarSize: r ? PF : n
|
|
21707
21722
|
} : {};
|
|
21708
|
-
},
|
|
21723
|
+
}, IF = (e, t, n, r) => {
|
|
21709
21724
|
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(hn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(Ya, {
|
|
21710
21725
|
date: L(t.date),
|
|
21711
21726
|
size: r ? "lg" : "md"
|
|
@@ -21722,21 +21737,21 @@ var fF = nl.createContext(void 0), pF = ({ tracking: e, children: t }) => /* @__
|
|
|
21722
21737
|
},
|
|
21723
21738
|
size: n
|
|
21724
21739
|
}) : void 0;
|
|
21725
|
-
},
|
|
21726
|
-
function
|
|
21727
|
-
let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { reportAction: s, reportItemActivate: c } =
|
|
21740
|
+
}, LF = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm";
|
|
21741
|
+
function RF({ params: e, ctx: t }) {
|
|
21742
|
+
let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { reportAction: s, reportItemActivate: c } = _F(), l = Ce(), u = n.maxVisibleItems, d = u != null && i.length > u, f = d && !a ? i.slice(0, u) : i, p = tF(f.length), m = bF(n, f.length), h = LF((!!n.descriptionRequired || !!n.descriptionOptional) && !m, l), g = l ? "md" : "sm", _ = !!n.prominent;
|
|
21728
21743
|
return /* @__PURE__ */ $("div", {
|
|
21729
|
-
className: W(
|
|
21744
|
+
className: W(AF(t), "flex flex-col"),
|
|
21730
21745
|
children: [/* @__PURE__ */ Q(nF, { children: f.map(({ href: e, description: t, ...r }, i) => {
|
|
21731
|
-
let a = r.tooltipDescription ?? (m ?
|
|
21746
|
+
let a = r.tooltipDescription ?? (m ? dF(t) : ""), o = /* @__PURE__ */ Q(fF, {
|
|
21732
21747
|
title: r.title,
|
|
21733
21748
|
subtitle: r.subtitle,
|
|
21734
21749
|
subtitleVariant: r.subtitleVariant,
|
|
21735
21750
|
description: m ? void 0 : t,
|
|
21736
21751
|
descriptionVariant: r.descriptionVariant,
|
|
21737
21752
|
unread: r.unread,
|
|
21738
|
-
...
|
|
21739
|
-
right:
|
|
21753
|
+
...FF(n.left, r, h, _),
|
|
21754
|
+
right: IF(n.right, r, g, _),
|
|
21740
21755
|
actions: r.actions,
|
|
21741
21756
|
href: n.clickBehavior === "link" ? e : void 0,
|
|
21742
21757
|
prominent: _,
|
|
@@ -21754,7 +21769,7 @@ function LF({ params: e, ctx: t }) {
|
|
|
21754
21769
|
}) : o
|
|
21755
21770
|
}, r.id);
|
|
21756
21771
|
}) }), d ? /* @__PURE__ */ Q("div", {
|
|
21757
|
-
className:
|
|
21772
|
+
className: MF(t),
|
|
21758
21773
|
children: /* @__PURE__ */ Q(z, {
|
|
21759
21774
|
variant: l ? "outline" : "neutral",
|
|
21760
21775
|
size: l ? "md" : "sm",
|
|
@@ -21766,10 +21781,10 @@ function LF({ params: e, ctx: t }) {
|
|
|
21766
21781
|
}) : null]
|
|
21767
21782
|
});
|
|
21768
21783
|
}
|
|
21769
|
-
function
|
|
21770
|
-
let { events: n } = e, r = tF(n.length), { reportItemActivate: i } =
|
|
21784
|
+
function zF({ params: e, ctx: t }) {
|
|
21785
|
+
let { events: n } = e, r = tF(n.length), { reportItemActivate: i } = _F();
|
|
21771
21786
|
return /* @__PURE__ */ Q("div", {
|
|
21772
|
-
className: W(
|
|
21787
|
+
className: W(AF(t), "flex flex-col", NF),
|
|
21773
21788
|
children: /* @__PURE__ */ Q(nF, { children: n.map((e, t) => /* @__PURE__ */ Q(rF, {
|
|
21774
21789
|
animated: !r,
|
|
21775
21790
|
children: /* @__PURE__ */ Q(Vp, {
|
|
@@ -21781,110 +21796,110 @@ function RF({ params: e, ctx: t }) {
|
|
|
21781
21796
|
}, e.title)) })
|
|
21782
21797
|
});
|
|
21783
21798
|
}
|
|
21784
|
-
var
|
|
21799
|
+
var BF = 3, VF = "slot-skeleton-item", HF = [
|
|
21785
21800
|
"w-1/2",
|
|
21786
21801
|
"w-2/3",
|
|
21787
21802
|
"w-2/5",
|
|
21788
21803
|
"w-3/5"
|
|
21789
|
-
],
|
|
21804
|
+
], UF = {
|
|
21790
21805
|
sm: "size-6",
|
|
21791
21806
|
md: "size-8",
|
|
21792
21807
|
lg: "size-10"
|
|
21793
|
-
},
|
|
21808
|
+
}, WF = (e) => HF[e % HF.length], GF = ({ className: e }) => /* @__PURE__ */ Q("div", {
|
|
21794
21809
|
className: "flex h-5 items-center",
|
|
21795
21810
|
children: /* @__PURE__ */ Q(H, { className: W("h-3", e) })
|
|
21796
|
-
}),
|
|
21797
|
-
let n = e.schema ?? {}, r = Ce(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a =
|
|
21811
|
+
}), KF = ({ params: e, ctx: t }) => {
|
|
21812
|
+
let n = e.schema ?? {}, r = Ce(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = bF(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
|
|
21798
21813
|
return /* @__PURE__ */ $("div", {
|
|
21799
|
-
className: W(
|
|
21814
|
+
className: W(AF(t), "flex flex-col"),
|
|
21800
21815
|
children: [Array.from({ length: i }, (e, t) => /* @__PURE__ */ $("div", {
|
|
21801
|
-
"data-testid":
|
|
21816
|
+
"data-testid": VF,
|
|
21802
21817
|
className: "flex w-full items-center gap-3 p-2",
|
|
21803
21818
|
children: [
|
|
21804
|
-
n.left ? /* @__PURE__ */ Q(H, { className: W("shrink-0",
|
|
21819
|
+
n.left ? /* @__PURE__ */ Q(H, { className: W("shrink-0", UF[LF(o, r)], n.left === "person" ? "rounded-full" : "rounded-sm") }) : null,
|
|
21805
21820
|
/* @__PURE__ */ $("div", {
|
|
21806
21821
|
className: "flex min-w-0 flex-1 flex-col",
|
|
21807
|
-
children: [/* @__PURE__ */ Q(
|
|
21822
|
+
children: [/* @__PURE__ */ Q(GF, { className: WF(t) }), s ? /* @__PURE__ */ Q(GF, { className: "w-1/4" }) : null]
|
|
21808
21823
|
}),
|
|
21809
21824
|
n.right ? /* @__PURE__ */ Q(H, { className: "h-4 w-10 shrink-0 rounded-sm" }) : null
|
|
21810
21825
|
]
|
|
21811
21826
|
}, t)), c ? /* @__PURE__ */ Q("div", {
|
|
21812
|
-
className:
|
|
21827
|
+
className: MF(t),
|
|
21813
21828
|
children: /* @__PURE__ */ Q(H, { className: "h-6 w-24 rounded-sm" })
|
|
21814
21829
|
}) : null]
|
|
21815
21830
|
});
|
|
21816
|
-
},
|
|
21817
|
-
className: W(
|
|
21831
|
+
}, qF = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
|
|
21832
|
+
className: W(AF(e), "flex flex-col", NF),
|
|
21818
21833
|
children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
|
|
21819
|
-
"data-testid":
|
|
21834
|
+
"data-testid": VF,
|
|
21820
21835
|
className: "flex flex-row items-stretch gap-2.5 rounded-sm p-2",
|
|
21821
21836
|
children: [
|
|
21822
21837
|
/* @__PURE__ */ Q(H, { className: "min-h-10 w-1 shrink-0 rounded-2xs" }),
|
|
21823
21838
|
/* @__PURE__ */ $("div", {
|
|
21824
21839
|
className: "flex flex-1 flex-col justify-center",
|
|
21825
|
-
children: [/* @__PURE__ */ Q(
|
|
21840
|
+
children: [/* @__PURE__ */ Q(GF, { className: WF(t) }), /* @__PURE__ */ Q(GF, { className: "w-1/3" })]
|
|
21826
21841
|
}),
|
|
21827
21842
|
/* @__PURE__ */ Q(H, { className: "size-10 shrink-0 rounded-md" })
|
|
21828
21843
|
]
|
|
21829
21844
|
}, t))
|
|
21830
|
-
}),
|
|
21845
|
+
}), JF = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
|
|
21831
21846
|
className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
|
|
21832
21847
|
children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
|
|
21833
|
-
"data-testid":
|
|
21848
|
+
"data-testid": VF,
|
|
21834
21849
|
className: "flex flex-col gap-1",
|
|
21835
21850
|
children: [/* @__PURE__ */ Q("div", {
|
|
21836
21851
|
className: "flex h-8 items-center",
|
|
21837
21852
|
children: /* @__PURE__ */ Q(H, { className: "h-6 w-10" })
|
|
21838
|
-
}), /* @__PURE__ */ Q(
|
|
21853
|
+
}), /* @__PURE__ */ Q(GF, { className: "w-3/4" })]
|
|
21839
21854
|
}, t))
|
|
21840
|
-
}),
|
|
21855
|
+
}), YF = (e, t) => /* @__PURE__ */ Q("div", {
|
|
21841
21856
|
className: "flex flex-col gap-2",
|
|
21842
21857
|
children: Array.from({ length: t.expectedItemsCount }, (e, t) => /* @__PURE__ */ Q("div", {
|
|
21843
|
-
"data-testid":
|
|
21844
|
-
children: /* @__PURE__ */ Q(H, { className: W("h-6",
|
|
21858
|
+
"data-testid": VF,
|
|
21859
|
+
children: /* @__PURE__ */ Q(H, { className: W("h-6", WF(t)) })
|
|
21845
21860
|
}, t))
|
|
21846
|
-
}),
|
|
21861
|
+
}), XF = {
|
|
21847
21862
|
list: {
|
|
21848
|
-
render: (e, t) => /* @__PURE__ */ Q(
|
|
21863
|
+
render: (e, t) => /* @__PURE__ */ Q(RF, {
|
|
21849
21864
|
params: e,
|
|
21850
21865
|
ctx: t
|
|
21851
21866
|
}),
|
|
21852
|
-
skeleton: (e, t) => /* @__PURE__ */ Q(
|
|
21867
|
+
skeleton: (e, t) => /* @__PURE__ */ Q(KF, {
|
|
21853
21868
|
params: e ?? {},
|
|
21854
21869
|
ctx: t
|
|
21855
21870
|
})
|
|
21856
21871
|
},
|
|
21857
21872
|
"event-list": {
|
|
21858
|
-
render: (e, t) => /* @__PURE__ */ Q(
|
|
21873
|
+
render: (e, t) => /* @__PURE__ */ Q(zF, {
|
|
21859
21874
|
params: e,
|
|
21860
21875
|
ctx: t
|
|
21861
21876
|
}),
|
|
21862
|
-
skeleton: (e, t) => /* @__PURE__ */ Q(
|
|
21877
|
+
skeleton: (e, t) => /* @__PURE__ */ Q(qF, { ctx: t })
|
|
21863
21878
|
},
|
|
21864
21879
|
indicators: {
|
|
21865
21880
|
render: (e) => /* @__PURE__ */ Q(UN, { ...e }),
|
|
21866
|
-
skeleton: (e, t) => /* @__PURE__ */ Q(
|
|
21881
|
+
skeleton: (e, t) => /* @__PURE__ */ Q(JF, { ctx: t })
|
|
21867
21882
|
}
|
|
21868
|
-
},
|
|
21883
|
+
}, ZF = ({ text: e, ticking: t, className: n }) => /* @__PURE__ */ Q("span", {
|
|
21869
21884
|
className: W("whitespace-nowrap tabular-nums", n),
|
|
21870
21885
|
children: e.split(":").map((e, n) => /* @__PURE__ */ $(il, { children: [n > 0 ? /* @__PURE__ */ Q("span", {
|
|
21871
21886
|
className: W(t && "animate-clock-tick motion-reduce:animate-none"),
|
|
21872
21887
|
children: ":"
|
|
21873
21888
|
}) : null, e] }, n))
|
|
21874
|
-
}),
|
|
21889
|
+
}), QF = 1e3, $F = (e) => {
|
|
21875
21890
|
let t = sn(), [n, r] = X(!0), i = e && !t;
|
|
21876
21891
|
return q(() => {
|
|
21877
21892
|
if (!i) return;
|
|
21878
|
-
let e = setInterval(() => r((e) => !e),
|
|
21893
|
+
let e = setInterval(() => r((e) => !e), QF);
|
|
21879
21894
|
return () => {
|
|
21880
21895
|
clearInterval(e), r(!0);
|
|
21881
21896
|
};
|
|
21882
21897
|
}, [i]), !i || n;
|
|
21883
|
-
},
|
|
21898
|
+
}, eI = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(ZF, {
|
|
21884
21899
|
text: e,
|
|
21885
21900
|
ticking: t,
|
|
21886
21901
|
className: "px-2 text-2xl font-semibold"
|
|
21887
|
-
}),
|
|
21902
|
+
}), tI = {
|
|
21888
21903
|
neutral: {
|
|
21889
21904
|
pill: "bg-f1-background-inverse text-f1-foreground-inverse",
|
|
21890
21905
|
button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
@@ -21939,7 +21954,7 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
21939
21954
|
soloIcon: "inverse",
|
|
21940
21955
|
soloRing: "ring-f1-border-inverse"
|
|
21941
21956
|
}
|
|
21942
|
-
},
|
|
21957
|
+
}, nI = (e, t) => {
|
|
21943
21958
|
let n = sn();
|
|
21944
21959
|
return {
|
|
21945
21960
|
initial: {
|
|
@@ -21960,8 +21975,8 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
21960
21975
|
delay: IP(e, t)
|
|
21961
21976
|
}, n)
|
|
21962
21977
|
};
|
|
21963
|
-
},
|
|
21964
|
-
let s =
|
|
21978
|
+
}, rI = ({ hasUpdates: e }) => e ? /* @__PURE__ */ Q("span", { className: "pointer-events-none absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null, iI = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
|
|
21979
|
+
let s = nI(n, i), c = $F(!!t.flashing && !r), l = t.text && !r ? t.text : void 0, u = tI[t.tone ?? "neutral"];
|
|
21965
21980
|
return /* @__PURE__ */ Q(_n, {
|
|
21966
21981
|
label: t.label,
|
|
21967
21982
|
instant: !0,
|
|
@@ -21973,7 +21988,7 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
21973
21988
|
onFocus: (t) => a(e.id, t.currentTarget, !0),
|
|
21974
21989
|
...s,
|
|
21975
21990
|
children: [
|
|
21976
|
-
l ? /* @__PURE__ */ Q(
|
|
21991
|
+
l ? /* @__PURE__ */ Q(eI, {
|
|
21977
21992
|
text: l,
|
|
21978
21993
|
ticking: !!t.ticking
|
|
21979
21994
|
}) : null,
|
|
@@ -21982,7 +21997,7 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
21982
21997
|
variant: "ghost",
|
|
21983
21998
|
size: "lg",
|
|
21984
21999
|
className: W("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", t.text ? u.button : u.solo, "ring-inset group-hover:ring-1", r && "ring-1", t.text ? u.ring : u.soloRing),
|
|
21985
|
-
"aria-label": `${t.label}, ${
|
|
22000
|
+
"aria-label": `${t.label}, ${TF(e)}`,
|
|
21986
22001
|
onClick: () => t.onClick(),
|
|
21987
22002
|
children: /* @__PURE__ */ Q(V, {
|
|
21988
22003
|
size: "lg",
|
|
@@ -21990,13 +22005,13 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
21990
22005
|
icon: c || !e.icon ? t.icon : e.icon
|
|
21991
22006
|
})
|
|
21992
22007
|
}),
|
|
21993
|
-
/* @__PURE__ */ Q(
|
|
22008
|
+
/* @__PURE__ */ Q(rI, { hasUpdates: e.hasUpdates })
|
|
21994
22009
|
]
|
|
21995
22010
|
})
|
|
21996
22011
|
});
|
|
21997
|
-
},
|
|
21998
|
-
let c = e.railAction, l =
|
|
21999
|
-
return c ? /* @__PURE__ */ Q(
|
|
22012
|
+
}, aI = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
|
|
22013
|
+
let c = e.railAction, l = nI(t, r);
|
|
22014
|
+
return c ? /* @__PURE__ */ Q(iI, {
|
|
22000
22015
|
widget: e,
|
|
22001
22016
|
action: c,
|
|
22002
22017
|
order: t,
|
|
@@ -22011,7 +22026,7 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
22011
22026
|
children: /* @__PURE__ */ Q(H, { className: "h-10 w-10 rounded-lg" })
|
|
22012
22027
|
}) : /* @__PURE__ */ Q(B.button, {
|
|
22013
22028
|
type: "button",
|
|
22014
|
-
"aria-label":
|
|
22029
|
+
"aria-label": TF(e),
|
|
22015
22030
|
"aria-expanded": n,
|
|
22016
22031
|
"data-widget-glyph": e.id,
|
|
22017
22032
|
onMouseEnter: (t) => i(e.id, t.currentTarget),
|
|
@@ -22029,19 +22044,19 @@ var zF = 3, BF = "slot-skeleton-item", VF = [
|
|
|
22029
22044
|
color: "bold"
|
|
22030
22045
|
}) : /* @__PURE__ */ Q("span", {
|
|
22031
22046
|
className: "font-medium text-f1-foreground-secondary",
|
|
22032
|
-
children:
|
|
22047
|
+
children: TF(e).charAt(0)
|
|
22033
22048
|
})
|
|
22034
22049
|
}) : e.icon ? /* @__PURE__ */ Q(wo, {
|
|
22035
22050
|
icon: e.icon,
|
|
22036
22051
|
size: "lg"
|
|
22037
22052
|
}) : /* @__PURE__ */ Q("span", {
|
|
22038
22053
|
className: "flex h-10 w-10 items-center justify-center rounded-lg border border-solid border-f1-border-secondary bg-f1-background font-medium text-f1-foreground-secondary",
|
|
22039
|
-
children:
|
|
22040
|
-
}), /* @__PURE__ */ Q(
|
|
22054
|
+
children: TF(e).charAt(0)
|
|
22055
|
+
}), /* @__PURE__ */ Q(rI, { hasUpdates: e.hasUpdates })]
|
|
22041
22056
|
})
|
|
22042
22057
|
});
|
|
22043
22058
|
};
|
|
22044
|
-
function
|
|
22059
|
+
function oI(e = 24) {
|
|
22045
22060
|
let [t, n] = X(null), [r, i] = X({
|
|
22046
22061
|
top: !1,
|
|
22047
22062
|
bottom: !1
|
|
@@ -22075,12 +22090,12 @@ function aI(e = 24) {
|
|
|
22075
22090
|
}
|
|
22076
22091
|
//#endregion
|
|
22077
22092
|
//#region src/domains/platform/home/Home/SlotWidget/SlotWidget.tsx
|
|
22078
|
-
var
|
|
22079
|
-
function
|
|
22093
|
+
var sI = "-ml-0.5 mt-2", cI = 450, lI = "cubic-bezier(0.4, 0, 0.1, 1)", uI = 1.04;
|
|
22094
|
+
function dI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
|
|
22080
22095
|
let a = n ? {
|
|
22081
|
-
...
|
|
22096
|
+
...XF,
|
|
22082
22097
|
...n
|
|
22083
|
-
} :
|
|
22098
|
+
} : XF;
|
|
22084
22099
|
return /* @__PURE__ */ Q("div", {
|
|
22085
22100
|
className: "flex flex-col",
|
|
22086
22101
|
...t ? {
|
|
@@ -22088,7 +22103,7 @@ function uI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22088
22103
|
"aria-live": "polite"
|
|
22089
22104
|
} : {},
|
|
22090
22105
|
children: e.map((n, o) => {
|
|
22091
|
-
let s =
|
|
22106
|
+
let s = vF(a[n.visualization]), c = {
|
|
22092
22107
|
...r,
|
|
22093
22108
|
isLastSlot: o === e.length - 1,
|
|
22094
22109
|
isFirstUnderNoHeader: i && o === 0
|
|
@@ -22098,7 +22113,7 @@ function uI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22098
22113
|
children: /* @__PURE__ */ Q(Oe, { bare: !0 })
|
|
22099
22114
|
}) : null, t ? /* @__PURE__ */ Q("div", {
|
|
22100
22115
|
"aria-hidden": "true",
|
|
22101
|
-
children: (s?.skeleton ??
|
|
22116
|
+
children: (s?.skeleton ?? YF)(n.params, {
|
|
22102
22117
|
...c,
|
|
22103
22118
|
expectedItemsCount: n.expectedItemsCount ?? 3
|
|
22104
22119
|
})
|
|
@@ -22109,7 +22124,7 @@ function uI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22109
22124
|
})
|
|
22110
22125
|
});
|
|
22111
22126
|
}
|
|
22112
|
-
function
|
|
22127
|
+
function fI({ header: e, params: t, fullHeight: n, action: r, summaries: i, headerControls: a, headerActions: o, headerSelect: s, alert: c, status: l, slots: u, loading: d = !1, slotRenderers: f, actions: p, flipped: m = !1, onFlipBack: h, isDragging: g, ctx: _ = {}, headless: v = !1 }) {
|
|
22113
22128
|
let y = U(), b = sn(), [x, S] = X(!1), C = Y(!1);
|
|
22114
22129
|
q(() => {
|
|
22115
22130
|
if (!C.current) {
|
|
@@ -22118,7 +22133,7 @@ function dI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22118
22133
|
}
|
|
22119
22134
|
if (b) return;
|
|
22120
22135
|
S(!0);
|
|
22121
|
-
let e = setTimeout(() => S(!1),
|
|
22136
|
+
let e = setTimeout(() => S(!1), cI);
|
|
22122
22137
|
return () => clearTimeout(e);
|
|
22123
22138
|
}, [m, b]);
|
|
22124
22139
|
let [w, T] = X(void 0), E = s ? w ?? s.value ?? s.options[0]?.value : void 0, D = s?.options.find((e) => e.value === E), k = (e) => {
|
|
@@ -22144,7 +22159,7 @@ function dI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22144
22159
|
})
|
|
22145
22160
|
}) : null,
|
|
22146
22161
|
a
|
|
22147
|
-
] }) : a, { reportAction: j } =
|
|
22162
|
+
] }) : a, { reportAction: j } = _F(), { info: M, ...N } = v ? {} : wF(e, t) ?? {}, P = Object.values(N).some((e) => e !== void 0) || !v && p && p.length > 0 || !v && A ? N : void 0, F = P?.link === void 0 ? P : {
|
|
22148
22163
|
...P,
|
|
22149
22164
|
link: {
|
|
22150
22165
|
...P.link,
|
|
@@ -22159,13 +22174,13 @@ function dI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22159
22174
|
header: F,
|
|
22160
22175
|
fullHeight: n,
|
|
22161
22176
|
action: ee,
|
|
22162
|
-
footerClassName:
|
|
22177
|
+
footerClassName: sI,
|
|
22163
22178
|
actions: v ? void 0 : p,
|
|
22164
22179
|
headerControls: v ? void 0 : A,
|
|
22165
22180
|
summaries: i,
|
|
22166
22181
|
...c ? { alert: c } : { status: l },
|
|
22167
22182
|
isDragging: g,
|
|
22168
|
-
children: /* @__PURE__ */ Q(
|
|
22183
|
+
children: /* @__PURE__ */ Q(dI, {
|
|
22169
22184
|
ctx: {
|
|
22170
22185
|
..._,
|
|
22171
22186
|
hasFooter: !!r,
|
|
@@ -22184,14 +22199,14 @@ function dI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22184
22199
|
className: "h-full",
|
|
22185
22200
|
"data-turning": x || void 0,
|
|
22186
22201
|
style: {
|
|
22187
|
-
transform: `scale(${x ?
|
|
22188
|
-
transition: b ? void 0 : `transform ${
|
|
22202
|
+
transform: `scale(${x ? uI : 1})`,
|
|
22203
|
+
transition: b ? void 0 : `transform ${cI / 2}ms ease-out`
|
|
22189
22204
|
},
|
|
22190
22205
|
children: /* @__PURE__ */ $("div", {
|
|
22191
22206
|
className: "relative h-full [transform-style:preserve-3d]",
|
|
22192
22207
|
style: {
|
|
22193
22208
|
transform: `rotateY(${m ? 180 : 0}deg)`,
|
|
22194
|
-
transition: b ? void 0 : `transform ${
|
|
22209
|
+
transition: b ? void 0 : `transform ${cI}ms ${lI}`
|
|
22195
22210
|
},
|
|
22196
22211
|
children: [/* @__PURE__ */ Q("div", {
|
|
22197
22212
|
className: W("[backface-visibility:hidden]", m && "pointer-events-none"),
|
|
@@ -22223,8 +22238,8 @@ function dI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22223
22238
|
}
|
|
22224
22239
|
//#endregion
|
|
22225
22240
|
//#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
|
|
22226
|
-
var
|
|
22227
|
-
let e = on(
|
|
22241
|
+
var pI = "(min-width: 2200px) and (min-height: 900px)", mI = () => {
|
|
22242
|
+
let e = on(pI, {
|
|
22228
22243
|
initializeWithValue: !0,
|
|
22229
22244
|
defaultValue: !1
|
|
22230
22245
|
}), t = on(`(max-width: ${sc.md}px)`, {
|
|
@@ -22238,14 +22253,14 @@ var fI = "(min-width: 2200px) and (min-height: 900px)", pI = () => {
|
|
|
22238
22253
|
asideClassName: t ? "w-full shrink-0" : "w-80 shrink-0",
|
|
22239
22254
|
stacked: t
|
|
22240
22255
|
};
|
|
22241
|
-
},
|
|
22242
|
-
function
|
|
22256
|
+
}, hI = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
|
|
22257
|
+
function gI({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
22243
22258
|
return /* @__PURE__ */ Q("div", {
|
|
22244
22259
|
className: "flex min-w-0 flex-1 flex-col overflow-y-auto rounded-lg bg-f1-background-secondary p-6",
|
|
22245
22260
|
children: /* @__PURE__ */ $("div", {
|
|
22246
22261
|
className: "my-auto flex w-full flex-col items-center gap-6",
|
|
22247
22262
|
children: [/* @__PURE__ */ Q("div", {
|
|
22248
|
-
className: W("w-full",
|
|
22263
|
+
className: W("w-full", hI),
|
|
22249
22264
|
style: { maxWidth: `${r}px` },
|
|
22250
22265
|
children: t
|
|
22251
22266
|
}, e), n ? /* @__PURE__ */ Q("p", {
|
|
@@ -22257,9 +22272,9 @@ function hI({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
|
22257
22272
|
}
|
|
22258
22273
|
//#endregion
|
|
22259
22274
|
//#region src/domains/platform/home/Home/WidgetUpdateDialog/WidgetUpdateDialog.tsx
|
|
22260
|
-
var
|
|
22261
|
-
function
|
|
22262
|
-
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } =
|
|
22275
|
+
var _I = (e, t) => typeof e == "function" ? e(t) : e, vI = 250;
|
|
22276
|
+
function yI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: l = "Save" }) {
|
|
22277
|
+
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = mI(), { formRef: h, getValues: g, trigger: _ } = $e(), [v, y] = X(r ?? {});
|
|
22263
22278
|
return q(() => {
|
|
22264
22279
|
e && y(r ?? {});
|
|
22265
22280
|
}, [e, r]), /* @__PURE__ */ Q(ha, {
|
|
@@ -22285,15 +22300,15 @@ function vI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
22285
22300
|
defaultValues: r,
|
|
22286
22301
|
submitConfig: {
|
|
22287
22302
|
type: "autosubmit",
|
|
22288
|
-
delay:
|
|
22303
|
+
delay: vI,
|
|
22289
22304
|
hideActionBar: !0
|
|
22290
22305
|
},
|
|
22291
22306
|
styling: { noPadding: !0 },
|
|
22292
22307
|
onSubmit: (e) => (y(e), { success: !0 })
|
|
22293
22308
|
})
|
|
22294
|
-
}), /* @__PURE__ */ Q(
|
|
22309
|
+
}), /* @__PURE__ */ Q(gI, {
|
|
22295
22310
|
previewKey: "widget-params",
|
|
22296
|
-
info:
|
|
22311
|
+
info: _I(a, v),
|
|
22297
22312
|
previewWidth: s,
|
|
22298
22313
|
children: i(v)
|
|
22299
22314
|
})]
|
|
@@ -22302,10 +22317,10 @@ function vI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
22302
22317
|
}
|
|
22303
22318
|
//#endregion
|
|
22304
22319
|
//#region src/domains/platform/home/Home/WidgetContainer/dragGhost.ts
|
|
22305
|
-
var
|
|
22320
|
+
var bI = (e) => {
|
|
22306
22321
|
let t = e?.cloneNode(!0);
|
|
22307
22322
|
return t instanceof HTMLElement ? (t.classList.remove("invisible"), t.style.transform = "none", t.style.transition = "none", t.removeAttribute("id"), t.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), t.setAttribute("aria-hidden", "true"), t.setAttribute("inert", ""), t) : null;
|
|
22308
|
-
},
|
|
22323
|
+
}, xI = (e, t) => {
|
|
22309
22324
|
if (!e || !t) return null;
|
|
22310
22325
|
let n = e.cloneNode(!0);
|
|
22311
22326
|
if (!(n instanceof HTMLElement)) return null;
|
|
@@ -22319,51 +22334,51 @@ var yI = (e) => {
|
|
|
22319
22334
|
width: r.width,
|
|
22320
22335
|
height: r.height
|
|
22321
22336
|
},
|
|
22322
|
-
base:
|
|
22337
|
+
base: CI(e)
|
|
22323
22338
|
};
|
|
22324
|
-
},
|
|
22339
|
+
}, SI = /* @__PURE__ */ new Set([
|
|
22325
22340
|
"rgba(0, 0, 0, 0)",
|
|
22326
22341
|
"transparent",
|
|
22327
22342
|
""
|
|
22328
|
-
]),
|
|
22343
|
+
]), CI = (e) => {
|
|
22329
22344
|
if (typeof getComputedStyle != "function") return null;
|
|
22330
22345
|
for (let t = e; t; t = t.parentElement) {
|
|
22331
22346
|
let e = getComputedStyle(t).backgroundColor;
|
|
22332
|
-
if (!
|
|
22347
|
+
if (!SI.has(e)) return e;
|
|
22333
22348
|
}
|
|
22334
22349
|
return null;
|
|
22335
|
-
},
|
|
22350
|
+
}, wI = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, TI = (e) => e && wI.test(e) ? e : void 0, EI = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, DI = (e) => wI.test(e), OI = (e) => {
|
|
22336
22351
|
let t = [], n = 0;
|
|
22337
|
-
for (let r of e.matchAll(
|
|
22352
|
+
for (let r of e.matchAll(EI)) {
|
|
22338
22353
|
let i = r[1] ?? "", a = r[2] ?? "", o = r.index, s = e[o - 1] === "!", c = e.slice(n, s ? o - 1 : o);
|
|
22339
|
-
c && t.push({ text: c }), t.push(s || !
|
|
22354
|
+
c && t.push({ text: c }), t.push(s || !DI(a) ? { text: i } : {
|
|
22340
22355
|
label: i,
|
|
22341
22356
|
href: a
|
|
22342
22357
|
}), n = o + r[0].length;
|
|
22343
22358
|
}
|
|
22344
22359
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
22345
|
-
},
|
|
22360
|
+
}, kI = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
22346
22361
|
className: "text-center text-f1-foreground-secondary",
|
|
22347
|
-
children:
|
|
22362
|
+
children: OI(e).map((e, t) => /* @__PURE__ */ Q(il, { children: "href" in e ? /* @__PURE__ */ Q(Pr, {
|
|
22348
22363
|
href: e.href,
|
|
22349
22364
|
children: e.label
|
|
22350
22365
|
}) : e.text }, t))
|
|
22351
|
-
}),
|
|
22366
|
+
}), AI = (e) => {
|
|
22352
22367
|
let t = e.findIndex((e) => !e.locked);
|
|
22353
22368
|
return e.slice(0, t < 0 ? e.length : t);
|
|
22354
|
-
},
|
|
22355
|
-
let r =
|
|
22369
|
+
}, jI = (e, t, n) => {
|
|
22370
|
+
let r = AI(e).flatMap((e) => {
|
|
22356
22371
|
let n = t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
22357
22372
|
return n ? [n.bottom] : [];
|
|
22358
22373
|
});
|
|
22359
22374
|
return r.length > 0 ? Math.max(...r) + n : null;
|
|
22360
|
-
},
|
|
22375
|
+
}, MI = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
|
|
22361
22376
|
let i = e(), a = (n ?? r)?.top;
|
|
22362
22377
|
return i == null || a == null ? t : {
|
|
22363
22378
|
...t,
|
|
22364
22379
|
y: Math.max(t.y, i - a)
|
|
22365
22380
|
};
|
|
22366
|
-
},
|
|
22381
|
+
}, NI = ({ id: e, disabled: t = !1, children: n }) => {
|
|
22367
22382
|
let { listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = te({
|
|
22368
22383
|
id: e,
|
|
22369
22384
|
disabled: t
|
|
@@ -22382,22 +22397,22 @@ var yI = (e) => {
|
|
|
22382
22397
|
...t ? {} : r,
|
|
22383
22398
|
children: n({ isDragging: s })
|
|
22384
22399
|
});
|
|
22385
|
-
},
|
|
22400
|
+
}, PI = 12, FI = 280, II = 2, LI = /* @__PURE__ */ new Set([
|
|
22386
22401
|
"auto",
|
|
22387
22402
|
"scroll",
|
|
22388
22403
|
"overlay"
|
|
22389
|
-
]),
|
|
22404
|
+
]), RI = (e) => {
|
|
22390
22405
|
let t = e.parentElement;
|
|
22391
22406
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
22392
|
-
if (
|
|
22407
|
+
if (LI.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
|
|
22393
22408
|
t = t.parentElement;
|
|
22394
22409
|
}
|
|
22395
22410
|
return null;
|
|
22396
22411
|
};
|
|
22397
|
-
function
|
|
22412
|
+
function zI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
22398
22413
|
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;
|
|
22399
22414
|
hl(() => {
|
|
22400
|
-
d && !f && o && l(
|
|
22415
|
+
d && !f && o && l(RI(o));
|
|
22401
22416
|
}, [
|
|
22402
22417
|
d,
|
|
22403
22418
|
f,
|
|
@@ -22418,7 +22433,7 @@ function RI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
22418
22433
|
o,
|
|
22419
22434
|
u
|
|
22420
22435
|
]);
|
|
22421
|
-
let h = d && u != null && t >= (a?.threshold ??
|
|
22436
|
+
let h = d && u != null && t >= (a?.threshold ?? PI), g = Y(r);
|
|
22422
22437
|
g.current = r;
|
|
22423
22438
|
let _ = r.join(","), v = K((e) => {
|
|
22424
22439
|
let t = new Set(hs(e));
|
|
@@ -22430,8 +22445,8 @@ function RI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
22430
22445
|
gap: n,
|
|
22431
22446
|
scrollMargin: p,
|
|
22432
22447
|
rangeExtractor: v,
|
|
22433
|
-
overscan: a?.overscan ??
|
|
22434
|
-
estimateSize: () => a?.estimateHeight ??
|
|
22448
|
+
overscan: a?.overscan ?? II,
|
|
22449
|
+
estimateSize: () => a?.estimateHeight ?? FI,
|
|
22435
22450
|
getScrollElement: () => u
|
|
22436
22451
|
});
|
|
22437
22452
|
return {
|
|
@@ -22448,10 +22463,10 @@ function RI({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
22448
22463
|
}
|
|
22449
22464
|
//#endregion
|
|
22450
22465
|
//#region src/domains/platform/home/Home/WidgetContainer/verticalOnly.ts
|
|
22451
|
-
var
|
|
22466
|
+
var BI = ({ transform: e }) => ({
|
|
22452
22467
|
...e,
|
|
22453
22468
|
x: 0
|
|
22454
|
-
}),
|
|
22469
|
+
}), VI = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
|
|
22455
22470
|
let a = sn(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? FP : e?.arriving ? LP(s, e.delayMs) : !t || t.instant ? FP : o ? GP : KP;
|
|
22456
22471
|
return /* @__PURE__ */ Q(B.div, {
|
|
22457
22472
|
"data-widget-id": r,
|
|
@@ -22467,7 +22482,7 @@ var zI = ({ transform: e }) => ({
|
|
|
22467
22482
|
transition: c,
|
|
22468
22483
|
children: i
|
|
22469
22484
|
});
|
|
22470
|
-
},
|
|
22485
|
+
}, HI = ({ host: e, children: t }) => {
|
|
22471
22486
|
let n = Y();
|
|
22472
22487
|
if (!n.current) {
|
|
22473
22488
|
let e = document.createElement("div");
|
|
@@ -22487,7 +22502,7 @@ var zI = ({ transform: e }) => ({
|
|
|
22487
22502
|
ref: o,
|
|
22488
22503
|
className: "contents"
|
|
22489
22504
|
}), yl(t, r)] });
|
|
22490
|
-
},
|
|
22505
|
+
}, UI = [
|
|
22491
22506
|
"a",
|
|
22492
22507
|
"button",
|
|
22493
22508
|
"input",
|
|
@@ -22501,28 +22516,28 @@ var zI = ({ transform: e }) => ({
|
|
|
22501
22516
|
"[role='checkbox']",
|
|
22502
22517
|
"[role='tab']",
|
|
22503
22518
|
"[contenteditable='true']"
|
|
22504
|
-
].join(","),
|
|
22519
|
+
].join(","), WI = class extends I {
|
|
22505
22520
|
static activators = [{
|
|
22506
22521
|
eventName: "onPointerDown",
|
|
22507
22522
|
handler: ({ nativeEvent: e }, { onActivation: t }) => {
|
|
22508
22523
|
if (!e.isPrimary || e.button !== 0) return !1;
|
|
22509
22524
|
let n = e.target;
|
|
22510
|
-
return n instanceof Element && n.closest(
|
|
22525
|
+
return n instanceof Element && n.closest(UI) ? !1 : (t?.({ event: e }), !0);
|
|
22511
22526
|
}
|
|
22512
22527
|
}];
|
|
22513
|
-
},
|
|
22528
|
+
}, GI = {
|
|
22514
22529
|
duration: 450,
|
|
22515
22530
|
easing: "cubic-bezier(0.4, 0, 0.1, 1)"
|
|
22516
|
-
},
|
|
22531
|
+
}, KI = (e, t) => {
|
|
22517
22532
|
for (let n = e; n; n = n.parentElement) {
|
|
22518
22533
|
let e = n.querySelector(t);
|
|
22519
22534
|
if (e) return e;
|
|
22520
22535
|
}
|
|
22521
22536
|
return null;
|
|
22522
|
-
},
|
|
22537
|
+
}, qI = {
|
|
22523
22538
|
main: 24,
|
|
22524
22539
|
right: 16
|
|
22525
|
-
},
|
|
22540
|
+
}, JI = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
|
|
22526
22541
|
ref: t ? n : void 0,
|
|
22527
22542
|
"data-index": t?.index,
|
|
22528
22543
|
hidden: e,
|
|
@@ -22533,7 +22548,7 @@ var zI = ({ transform: e }) => ({
|
|
|
22533
22548
|
width: "100%"
|
|
22534
22549
|
} : { display: e ? void 0 : "contents" },
|
|
22535
22550
|
children: r
|
|
22536
|
-
}),
|
|
22551
|
+
}), YI = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(_n, {
|
|
22537
22552
|
label: t,
|
|
22538
22553
|
children: /* @__PURE__ */ Q("button", {
|
|
22539
22554
|
type: "button",
|
|
@@ -22547,10 +22562,10 @@ var zI = ({ transform: e }) => ({
|
|
|
22547
22562
|
})
|
|
22548
22563
|
})
|
|
22549
22564
|
});
|
|
22550
|
-
function
|
|
22551
|
-
let j = U(), M = !s, N = (e) => g !== void 0 && e.id !== g, P = M && h != null, F = e.filter((e) => !e.locked).length > 1, [I, ee] = X(null), te = c(Xt(
|
|
22565
|
+
function XI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: o, disableEdition: s = !1, disableDrag: l = !1, widgetHostFor: u, afterWidgets: d, dragSurfaceSelector: f, onRemoveWidget: p, onClickAddNewWidget: m, onReorder: h, visibleWidgetId: g, entrance: _ = {}, virtualized: v = !1, stow: y, addWidgetLabel: b, onChangeWidgetParams: S, rebuildWidget: C, renderWidgetPreview: w, paramsPreviewWidth: T, removeLabel: E, editParamsLabel: D, ctx: O = {}, className: k, style: A }) {
|
|
22566
|
+
let j = U(), M = !s, N = (e) => g !== void 0 && e.id !== g, P = M && h != null, F = e.filter((e) => !e.locked).length > 1, [I, ee] = X(null), te = c(Xt(WI, { activationConstraint: { distance: 4 } })), [ne, re] = X(null), ae = e.find((e) => e.id === ne), [L, oe] = X(null), se = Y(null), le = Y(null), ue = Y(null), de = Y(null), fe = J(() => [BI, MI(() => de.current)], []), me = (e) => {
|
|
22552
22567
|
let t = se.current?.querySelector(`[data-widget-id="${e}"]`);
|
|
22553
|
-
le.current =
|
|
22568
|
+
le.current = bI(t), ue.current = f ? xI(KI(se.current, f), t) : null;
|
|
22554
22569
|
}, R = (e) => {
|
|
22555
22570
|
e && le.current && e.replaceChildren(le.current);
|
|
22556
22571
|
}, he = Y(0), ge = () => cancelAnimationFrame(he.current), _e = (e) => {
|
|
@@ -22565,14 +22580,14 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22565
22580
|
e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`, he.current = requestAnimationFrame(r);
|
|
22566
22581
|
};
|
|
22567
22582
|
r();
|
|
22568
|
-
}, ve =
|
|
22583
|
+
}, ve = zI({
|
|
22569
22584
|
config: v === !0 ? {} : v,
|
|
22570
22585
|
count: e.length,
|
|
22571
|
-
gap:
|
|
22586
|
+
gap: qI[t],
|
|
22572
22587
|
pinned: I ? [e.findIndex((e) => e.id === I)] : [],
|
|
22573
22588
|
paused: g !== void 0
|
|
22574
22589
|
}), ye = v !== !1 && g !== void 0, be = ({ activatorEvent: t, delta: n, active: r }) => {
|
|
22575
|
-
let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = de.current == null ? [] :
|
|
22590
|
+
let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = de.current == null ? [] : AI(e);
|
|
22576
22591
|
return e.find((e) => {
|
|
22577
22592
|
if (!e.locked || c.includes(e)) return !1;
|
|
22578
22593
|
let t = se.current?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
@@ -22582,7 +22597,7 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22582
22597
|
});
|
|
22583
22598
|
}, xe = (e) => {
|
|
22584
22599
|
let t = [...e.actions ?? []];
|
|
22585
|
-
return
|
|
22600
|
+
return wF(e.header, e.params)?.info && t.push({
|
|
22586
22601
|
label: j.widgets.whatThisMeans,
|
|
22587
22602
|
icon: zs,
|
|
22588
22603
|
onClick: () => oe(e.id)
|
|
@@ -22601,7 +22616,7 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22601
22616
|
if (i) {
|
|
22602
22617
|
jt.open({
|
|
22603
22618
|
variant: "warning",
|
|
22604
|
-
title: j.widgets.cannotMoveHere.replace("{{title}}",
|
|
22619
|
+
title: j.widgets.cannotMoveHere.replace("{{title}}", TF(i))
|
|
22605
22620
|
});
|
|
22606
22621
|
return;
|
|
22607
22622
|
}
|
|
@@ -22616,13 +22631,13 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22616
22631
|
if ([...l.values()].includes(String(r.id))) return;
|
|
22617
22632
|
let u = a(o, s, c).filter((e) => !l.has(o.indexOf(e))), d = o.map((e, t) => l.get(t) ?? u.shift());
|
|
22618
22633
|
h?.(d);
|
|
22619
|
-
}, Ce = (e, t, n = e.params) => /* @__PURE__ */ Q(
|
|
22634
|
+
}, Ce = (e, t, n = e.params) => /* @__PURE__ */ Q(gF, {
|
|
22620
22635
|
widgetId: e.id,
|
|
22621
22636
|
children: we(e, t, n)
|
|
22622
22637
|
}), we = (e, t, n = e.params) => {
|
|
22623
22638
|
let r = xe(e);
|
|
22624
|
-
if (!o) return /* @__PURE__ */ Q(
|
|
22625
|
-
...
|
|
22639
|
+
if (!o) return /* @__PURE__ */ Q(fI, {
|
|
22640
|
+
...OF(e),
|
|
22626
22641
|
header: e.header,
|
|
22627
22642
|
params: n,
|
|
22628
22643
|
fullHeight: e.fullHeight,
|
|
@@ -22659,7 +22674,7 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22659
22674
|
instant: y.stowed
|
|
22660
22675
|
}, Oe = (e, t, n, r) => {
|
|
22661
22676
|
let i = n ? De(n) : void 0;
|
|
22662
|
-
return !Te && !i && !r ? t : /* @__PURE__ */ Q(
|
|
22677
|
+
return !Te && !i && !r ? t : /* @__PURE__ */ Q(VI, {
|
|
22663
22678
|
arrival: Te ? {
|
|
22664
22679
|
order: (Te.order ?? 0) + e,
|
|
22665
22680
|
delayMs: Te.delayMs ?? 0,
|
|
@@ -22670,13 +22685,13 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22670
22685
|
widgetId: r,
|
|
22671
22686
|
children: t
|
|
22672
22687
|
});
|
|
22673
|
-
}, ke = (e, t, n) => /* @__PURE__ */ Q(
|
|
22688
|
+
}, ke = (e, t, n) => /* @__PURE__ */ Q(JI, {
|
|
22674
22689
|
hidden: N(e),
|
|
22675
22690
|
placement: n,
|
|
22676
22691
|
measureRef: ve.measureRef,
|
|
22677
|
-
children: /* @__PURE__ */ Q(
|
|
22692
|
+
children: /* @__PURE__ */ Q(HI, {
|
|
22678
22693
|
host: u?.(e),
|
|
22679
|
-
children: P ? /* @__PURE__ */ Q(
|
|
22694
|
+
children: P ? /* @__PURE__ */ Q(NI, {
|
|
22680
22695
|
id: e.id,
|
|
22681
22696
|
disabled: e.locked || l || !F,
|
|
22682
22697
|
children: (n) => Oe(t, Ce(e, n), e)
|
|
@@ -22702,7 +22717,7 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22702
22717
|
collisionDetection: pe,
|
|
22703
22718
|
modifiers: fe,
|
|
22704
22719
|
onDragStart: ({ active: n }) => {
|
|
22705
|
-
me(String(n.id)), de.current =
|
|
22720
|
+
me(String(n.id)), de.current = jI(e, se.current, qI[t]), ee(String(n.id));
|
|
22706
22721
|
},
|
|
22707
22722
|
onDragCancel: () => {
|
|
22708
22723
|
ee(null), ge(), le.current = null, ue.current = null, de.current = null;
|
|
@@ -22722,7 +22737,7 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22722
22737
|
className: "fixed inset-0 z-50 cursor-grabbing"
|
|
22723
22738
|
}) : null,
|
|
22724
22739
|
/* @__PURE__ */ Q(x, {
|
|
22725
|
-
dropAnimation:
|
|
22740
|
+
dropAnimation: GI,
|
|
22726
22741
|
children: I ? /* @__PURE__ */ $("div", {
|
|
22727
22742
|
className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
|
|
22728
22743
|
children: [/* @__PURE__ */ Q("div", {
|
|
@@ -22737,13 +22752,13 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22737
22752
|
]
|
|
22738
22753
|
}) : Ae,
|
|
22739
22754
|
d,
|
|
22740
|
-
r == null ? null : Oe(e.length, /* @__PURE__ */ Q(
|
|
22741
|
-
!s && m ? Oe(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(
|
|
22755
|
+
r == null ? null : Oe(e.length, /* @__PURE__ */ Q(kI, { text: r })),
|
|
22756
|
+
!s && m ? Oe(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(YI, {
|
|
22742
22757
|
onClick: m,
|
|
22743
22758
|
label: b ?? j.widgets.addWidget,
|
|
22744
22759
|
side: t
|
|
22745
22760
|
})) : null,
|
|
22746
|
-
ae?.paramsSchema && S ? /* @__PURE__ */ Q(
|
|
22761
|
+
ae?.paramsSchema && S ? /* @__PURE__ */ Q(yI, {
|
|
22747
22762
|
isOpen: !0,
|
|
22748
22763
|
onClose: () => re(null),
|
|
22749
22764
|
schema: ae.paramsSchema,
|
|
@@ -22758,7 +22773,7 @@ function YI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22758
22773
|
}
|
|
22759
22774
|
//#endregion
|
|
22760
22775
|
//#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
|
|
22761
|
-
var
|
|
22776
|
+
var ZI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
22762
22777
|
let a = sn(), [o, s] = X(!1);
|
|
22763
22778
|
q(() => {
|
|
22764
22779
|
r && s(!0);
|
|
@@ -22788,75 +22803,75 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22788
22803
|
},
|
|
22789
22804
|
glyphDelayMs: o ? 90 : 220
|
|
22790
22805
|
};
|
|
22791
|
-
},
|
|
22806
|
+
}, QI = {
|
|
22792
22807
|
morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
|
|
22793
22808
|
afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
|
|
22794
22809
|
evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
|
|
22795
|
-
},
|
|
22810
|
+
}, $I = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
|
|
22796
22811
|
"aria-hidden": !0,
|
|
22797
|
-
className: W("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
|
|
22798
|
-
}),
|
|
22799
|
-
let k = U(),
|
|
22812
|
+
className: W("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", QI[e], t)
|
|
22813
|
+
}), eL = 40, tL = 672, nL = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", rL = 16, iL = 768, aL = { display: "contents" }, oL = 150, sL = 150, cL = cl(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, virtualizedWidgetContainers: l = [], virtualization: u, onRemoveWidget: d, onChangeWidgetParams: f, rebuildWidget: p, renderWidgetPreview: m, onClickAddNewWidget: h, onReorderWidgets: g, tracking: _, period: v = "morning", asideWidth: y = 396, mainWidth: b = tL, bleed: x = 24, stackedPinsAfter: S = 2, ctx: C = {}, className: w, oneSwitchTooltip: T, oneSwitchAutoOpen: E, hideOneSwitch: D = !1 }, O) {
|
|
22814
|
+
let k = U(), A = sn(), j = Y(null), [M, N] = X(0), [P, F] = X(!1), [I, ee] = X(null), [te, ne] = X(0), [re, ie] = X(!1), ae = Y(null), L = Y(null);
|
|
22800
22815
|
hl(function() {
|
|
22801
|
-
let e =
|
|
22816
|
+
let e = j.current;
|
|
22802
22817
|
if (!e) return;
|
|
22803
22818
|
let t = () => {
|
|
22804
22819
|
let t = e.clientWidth;
|
|
22805
|
-
|
|
22820
|
+
N(t), t > 0 && F(!0);
|
|
22806
22821
|
};
|
|
22807
22822
|
if (t(), typeof ResizeObserver != "function") return;
|
|
22808
22823
|
let n = new ResizeObserver(t);
|
|
22809
22824
|
return n.observe(e), () => n.disconnect();
|
|
22810
22825
|
}, []);
|
|
22811
|
-
let [
|
|
22826
|
+
let [oe, se] = X(null), ce = (e) => s.includes(e), le = (e) => ce(e) && (c?.includes(e) ?? !0), ue = oI(), de = oI(), fe = oI(), pe = (e) => l.includes(e) ? {
|
|
22812
22827
|
...u,
|
|
22813
|
-
scrollElement: e === "main" ?
|
|
22814
|
-
} : !1,
|
|
22828
|
+
scrollElement: e === "main" ? ue.element : de.element
|
|
22829
|
+
} : !1, me = i != null || r.length > 0 || h != null && le("right"), R = M > 0 && M < b + rL + y, he = me && r.length > 0 && (R || (oe ?? !1)), ge = he ? eL : y, _e = he ? "Expand widgets panel" : "Collapse widgets panel", ve = me && P, ye = M > 0 && M < iL, be = ve && !ye && (he || M >= iL), xe = {
|
|
22815
22830
|
pinned: r.filter((e) => e.locked),
|
|
22816
22831
|
rest: r.filter((e) => !e.locked)
|
|
22817
|
-
}, [
|
|
22818
|
-
let t =
|
|
22832
|
+
}, [Se, Ce] = X({}), we = Y(/* @__PURE__ */ new Map()), Te = (e) => {
|
|
22833
|
+
let t = we.current.get(e);
|
|
22819
22834
|
if (t) return t;
|
|
22820
|
-
let n = (t) =>
|
|
22835
|
+
let n = (t) => Ce((n) => n[e] === t ? n : {
|
|
22821
22836
|
...n,
|
|
22822
22837
|
[e]: t
|
|
22823
22838
|
});
|
|
22824
|
-
return
|
|
22825
|
-
},
|
|
22839
|
+
return we.current.set(e, n), n;
|
|
22840
|
+
}, Ee = ye ? (e) => Se[e.id] ?? null : void 0, De = rl.toArray(e), Oe = (e, t) => /* @__PURE__ */ Q(iF, {
|
|
22826
22841
|
order: t,
|
|
22827
22842
|
children: e
|
|
22828
|
-
}, ll(e) && e.key != null ? e.key : t),
|
|
22829
|
-
...
|
|
22830
|
-
...
|
|
22831
|
-
ref:
|
|
22832
|
-
style:
|
|
22843
|
+
}, ll(e) && e.key != null ? e.key : t), ke = [
|
|
22844
|
+
...De.slice(0, S).map(Oe),
|
|
22845
|
+
...xe.pinned.map((e) => /* @__PURE__ */ Q("div", {
|
|
22846
|
+
ref: Te(e.id),
|
|
22847
|
+
style: aL
|
|
22833
22848
|
}, `pin-host-${e.id}`)),
|
|
22834
|
-
...
|
|
22835
|
-
],
|
|
22849
|
+
...De.slice(S).map((e, t) => Oe(e, S + t))
|
|
22850
|
+
], Ae = he ? r.find((e) => e.id === I) : void 0;
|
|
22836
22851
|
q(function() {
|
|
22837
|
-
|
|
22838
|
-
}, [
|
|
22852
|
+
he || (L.current && clearTimeout(L.current), L.current = null, ee(null));
|
|
22853
|
+
}, [he]), q(function() {
|
|
22839
22854
|
return () => {
|
|
22840
|
-
|
|
22855
|
+
L.current && clearTimeout(L.current), ae.current && clearTimeout(ae.current);
|
|
22841
22856
|
};
|
|
22842
22857
|
}, []);
|
|
22843
|
-
let
|
|
22844
|
-
collapsed:
|
|
22845
|
-
open:
|
|
22846
|
-
glide:
|
|
22847
|
-
drawn:
|
|
22848
|
-
width:
|
|
22849
|
-
}),
|
|
22850
|
-
|
|
22851
|
-
let
|
|
22852
|
-
|
|
22853
|
-
let
|
|
22858
|
+
let je = ZI({
|
|
22859
|
+
collapsed: he,
|
|
22860
|
+
open: Ae != null,
|
|
22861
|
+
glide: re,
|
|
22862
|
+
drawn: ve,
|
|
22863
|
+
width: ge
|
|
22864
|
+
}), Me = je.mode === "panel", Ne = Y(null);
|
|
22865
|
+
I && (Ne.current = I);
|
|
22866
|
+
let Pe = Y(null);
|
|
22867
|
+
Pe.current = I;
|
|
22868
|
+
let Fe = I ?? (je.panelHidden ? null : Ne.current), Ie = Me ? {
|
|
22854
22869
|
transformOrigin: RP,
|
|
22855
22870
|
top: 0,
|
|
22856
22871
|
right: 48,
|
|
22857
22872
|
width: y,
|
|
22858
|
-
maxHeight: `calc(100% - ${
|
|
22859
|
-
pointerEvents:
|
|
22873
|
+
maxHeight: `calc(100% - ${te}px)`,
|
|
22874
|
+
pointerEvents: Ae ? void 0 : "none"
|
|
22860
22875
|
} : {
|
|
22861
22876
|
transformOrigin: RP,
|
|
22862
22877
|
gridColumn: 2,
|
|
@@ -22867,34 +22882,34 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22867
22882
|
marginBottom: -x,
|
|
22868
22883
|
paddingTop: x,
|
|
22869
22884
|
paddingBottom: x,
|
|
22870
|
-
...
|
|
22871
|
-
...
|
|
22872
|
-
},
|
|
22873
|
-
|
|
22874
|
-
},
|
|
22875
|
-
|
|
22876
|
-
},
|
|
22877
|
-
|
|
22878
|
-
},
|
|
22879
|
-
|
|
22880
|
-
let n =
|
|
22885
|
+
...je.mode === "retracting" ? { pointerEvents: "none" } : null,
|
|
22886
|
+
...de.style
|
|
22887
|
+
}, Le = () => {
|
|
22888
|
+
ae.current && clearTimeout(ae.current), ae.current = null;
|
|
22889
|
+
}, Re = () => {
|
|
22890
|
+
L.current && clearTimeout(L.current), L.current = null;
|
|
22891
|
+
}, ze = () => {
|
|
22892
|
+
Le(), Re(), ae.current = setTimeout(() => ee(null), oL);
|
|
22893
|
+
}, Be = (e, t) => {
|
|
22894
|
+
Re();
|
|
22895
|
+
let n = j.current;
|
|
22881
22896
|
if (n) {
|
|
22882
22897
|
let e = t.getBoundingClientRect().top - n.getBoundingClientRect().top;
|
|
22883
|
-
|
|
22898
|
+
ne(Math.max(0, e));
|
|
22884
22899
|
}
|
|
22885
|
-
|
|
22886
|
-
},
|
|
22887
|
-
|
|
22888
|
-
},
|
|
22900
|
+
ie(Pe.current != null), ee(e);
|
|
22901
|
+
}, Ve = (e, t, n = !1) => {
|
|
22902
|
+
Le(), Re(), Pe.current !== e && (n ? Be(e, t) : L.current = setTimeout(() => Be(e, t), sL));
|
|
22903
|
+
}, He = /* @__PURE__ */ $(B.div, {
|
|
22889
22904
|
ref: (e) => {
|
|
22890
|
-
|
|
22905
|
+
j.current = e, typeof O == "function" ? O(e) : O && (O.current = e);
|
|
22891
22906
|
},
|
|
22892
22907
|
className: W("relative isolate grid grid-rows-[auto_minmax(0,1fr)] items-stretch gap-4 text-f1-foreground", w),
|
|
22893
22908
|
style: {
|
|
22894
|
-
"--home-aside-w":
|
|
22909
|
+
"--home-aside-w": je.widthPx,
|
|
22895
22910
|
height: "100%",
|
|
22896
22911
|
maxHeight: `calc(100svh - ${2 * x}px)`,
|
|
22897
|
-
gridTemplateColumns:
|
|
22912
|
+
gridTemplateColumns: be ? `minmax(0, 1fr) var(--home-aside-w, ${ge}px)` : "minmax(0, 1fr)"
|
|
22898
22913
|
},
|
|
22899
22914
|
children: [
|
|
22900
22915
|
/* @__PURE__ */ Q("div", {
|
|
@@ -22907,31 +22922,25 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22907
22922
|
left: -x,
|
|
22908
22923
|
right: -x
|
|
22909
22924
|
},
|
|
22910
|
-
children: /* @__PURE__ */ Q(
|
|
22925
|
+
children: /* @__PURE__ */ Q($I, { period: v })
|
|
22911
22926
|
}),
|
|
22912
22927
|
/* @__PURE__ */ $(iF, {
|
|
22913
22928
|
order: 0,
|
|
22914
22929
|
className: "col-span-full flex flex-row items-center justify-between",
|
|
22915
|
-
children: [/* @__PURE__ */
|
|
22930
|
+
children: [/* @__PURE__ */ Q("span", {
|
|
22916
22931
|
className: "flex items-center",
|
|
22917
|
-
children:
|
|
22918
|
-
variant: "ghost",
|
|
22919
|
-
onClick: () => j(),
|
|
22920
|
-
label: "Open main menu",
|
|
22921
|
-
icon: Ga,
|
|
22922
|
-
hideLabel: !0
|
|
22923
|
-
}) : null]
|
|
22932
|
+
children: /* @__PURE__ */ Q(aF, {})
|
|
22924
22933
|
}), /* @__PURE__ */ $("div", {
|
|
22925
22934
|
className: "flex flex-row items-center gap-2",
|
|
22926
|
-
children: [
|
|
22927
|
-
label:
|
|
22935
|
+
children: [me && r.length > 0 && !R ? /* @__PURE__ */ Q(_n, {
|
|
22936
|
+
label: _e,
|
|
22928
22937
|
children: /* @__PURE__ */ Q(rn, {
|
|
22929
22938
|
variant: "ghost",
|
|
22930
22939
|
size: "md",
|
|
22931
22940
|
compact: !0,
|
|
22932
|
-
onClick: () =>
|
|
22933
|
-
"aria-label":
|
|
22934
|
-
children: /* @__PURE__ */ Q(xc, { isExpanded: !
|
|
22941
|
+
onClick: () => se(!he),
|
|
22942
|
+
"aria-label": _e,
|
|
22943
|
+
children: /* @__PURE__ */ Q(xc, { isExpanded: !he })
|
|
22935
22944
|
})
|
|
22936
22945
|
}) : null, D ? null : /* @__PURE__ */ Q(Fa, {
|
|
22937
22946
|
tooltip: T,
|
|
@@ -22940,8 +22949,8 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22940
22949
|
})]
|
|
22941
22950
|
}),
|
|
22942
22951
|
/* @__PURE__ */ Q("div", {
|
|
22943
|
-
ref:
|
|
22944
|
-
className: W("relative isolate min-h-0 overflow-y-auto",
|
|
22952
|
+
ref: ue.ref,
|
|
22953
|
+
className: W("relative isolate min-h-0 overflow-y-auto", nL),
|
|
22945
22954
|
style: {
|
|
22946
22955
|
gridColumn: 1,
|
|
22947
22956
|
gridRow: 2,
|
|
@@ -22951,25 +22960,25 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22951
22960
|
paddingBottom: x,
|
|
22952
22961
|
marginLeft: -x,
|
|
22953
22962
|
paddingLeft: x,
|
|
22954
|
-
marginRight:
|
|
22955
|
-
paddingRight:
|
|
22956
|
-
...
|
|
22963
|
+
marginRight: be ? -16 : -x,
|
|
22964
|
+
paddingRight: be ? rL : x,
|
|
22965
|
+
...ue.style
|
|
22957
22966
|
},
|
|
22958
|
-
children: /* @__PURE__ */ Q(
|
|
22967
|
+
children: /* @__PURE__ */ Q(XI, {
|
|
22959
22968
|
side: "main",
|
|
22960
22969
|
className: "relative mx-auto w-full",
|
|
22961
22970
|
style: { maxWidth: `${b}px` },
|
|
22962
22971
|
widgets: n,
|
|
22963
|
-
afterWidgets:
|
|
22964
|
-
ref:
|
|
22965
|
-
style:
|
|
22972
|
+
afterWidgets: xe.rest.map((e) => /* @__PURE__ */ Q("div", {
|
|
22973
|
+
ref: Te(e.id),
|
|
22974
|
+
style: aL
|
|
22966
22975
|
}, `loose-host-${e.id}`)),
|
|
22967
22976
|
footnote: t,
|
|
22968
22977
|
slotRenderers: a,
|
|
22969
22978
|
renderWidget: o,
|
|
22970
22979
|
ctx: C,
|
|
22971
|
-
virtualized:
|
|
22972
|
-
disableEdition: !
|
|
22980
|
+
virtualized: pe("main"),
|
|
22981
|
+
disableEdition: !ce("main"),
|
|
22973
22982
|
dragSurfaceSelector: "[data-page-surface]",
|
|
22974
22983
|
onReorder: g ? (e) => g("main", e) : void 0,
|
|
22975
22984
|
onRemoveWidget: d,
|
|
@@ -22977,36 +22986,36 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22977
22986
|
rebuildWidget: p,
|
|
22978
22987
|
renderWidgetPreview: m,
|
|
22979
22988
|
paramsPreviewWidth: b,
|
|
22980
|
-
onClickAddNewWidget: h &&
|
|
22981
|
-
entrance: { order:
|
|
22982
|
-
children:
|
|
22989
|
+
onClickAddNewWidget: h && le("main") ? () => h("main") : void 0,
|
|
22990
|
+
entrance: { order: De.length },
|
|
22991
|
+
children: ke
|
|
22983
22992
|
})
|
|
22984
22993
|
}),
|
|
22985
|
-
/* @__PURE__ */ Q(vn, { children:
|
|
22986
|
-
ref:
|
|
22987
|
-
className: W("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20",
|
|
22994
|
+
/* @__PURE__ */ Q(vn, { children: ye || !ve || !he ? null : /* @__PURE__ */ $(B.aside, {
|
|
22995
|
+
ref: fe.ref,
|
|
22996
|
+
className: W("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20", nL),
|
|
22988
22997
|
style: {
|
|
22989
22998
|
gridColumn: 2,
|
|
22990
22999
|
gridRow: 2,
|
|
22991
23000
|
width: "fit-content",
|
|
22992
23001
|
justifySelf: "end",
|
|
22993
|
-
...
|
|
23002
|
+
...fe.style
|
|
22994
23003
|
},
|
|
22995
23004
|
initial: { opacity: 1 },
|
|
22996
23005
|
animate: { opacity: 1 },
|
|
22997
23006
|
exit: { opacity: 0 },
|
|
22998
|
-
transition: JP(HP,
|
|
22999
|
-
onMouseLeave:
|
|
23000
|
-
onMouseEnter:
|
|
23001
|
-
children: [r.map((e, t) => /* @__PURE__ */ Q(
|
|
23007
|
+
transition: JP(HP, A),
|
|
23008
|
+
onMouseLeave: ze,
|
|
23009
|
+
onMouseEnter: Le,
|
|
23010
|
+
children: [r.map((e, t) => /* @__PURE__ */ Q(aI, {
|
|
23002
23011
|
widget: e,
|
|
23003
23012
|
order: t,
|
|
23004
|
-
open:
|
|
23005
|
-
delayMs:
|
|
23006
|
-
onOpen:
|
|
23007
|
-
onCancelOpen:
|
|
23008
|
-
onClose: () =>
|
|
23009
|
-
}, e.id)),
|
|
23013
|
+
open: I === e.id,
|
|
23014
|
+
delayMs: je.glyphDelayMs,
|
|
23015
|
+
onOpen: Ve,
|
|
23016
|
+
onCancelOpen: Re,
|
|
23017
|
+
onClose: () => ee(null)
|
|
23018
|
+
}, e.id)), le("right") && h ? /* @__PURE__ */ Q(_n, {
|
|
23010
23019
|
label: k.widgets.addWidget,
|
|
23011
23020
|
children: /* @__PURE__ */ Q(B.button, {
|
|
23012
23021
|
type: "button",
|
|
@@ -23017,7 +23026,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23017
23026
|
initial: { opacity: 0 },
|
|
23018
23027
|
animate: { opacity: 1 },
|
|
23019
23028
|
exit: { opacity: 0 },
|
|
23020
|
-
transition: LP(r.length,
|
|
23029
|
+
transition: LP(r.length, je.glyphDelayMs, A),
|
|
23021
23030
|
children: /* @__PURE__ */ Q(V, {
|
|
23022
23031
|
size: "md",
|
|
23023
23032
|
icon: Ts
|
|
@@ -23026,33 +23035,33 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23026
23035
|
}) : null]
|
|
23027
23036
|
}, "collapsed-strip") }),
|
|
23028
23037
|
" ",
|
|
23029
|
-
|
|
23030
|
-
ref:
|
|
23031
|
-
hidden:
|
|
23032
|
-
className: W("min-h-0 overflow-y-auto overflow-x-hidden",
|
|
23033
|
-
style:
|
|
23038
|
+
ve ? /* @__PURE__ */ Q(B.aside, {
|
|
23039
|
+
ref: de.ref,
|
|
23040
|
+
hidden: ye || Me && je.panelHidden,
|
|
23041
|
+
className: W("min-h-0 overflow-y-auto overflow-x-hidden", nL, Me && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", je.mode === "retracting" && "relative z-10"),
|
|
23042
|
+
style: Ie,
|
|
23034
23043
|
initial: !1,
|
|
23035
23044
|
animate: {
|
|
23036
|
-
opacity: +!!
|
|
23037
|
-
scale:
|
|
23038
|
-
x:
|
|
23039
|
-
y:
|
|
23045
|
+
opacity: +!!je.bodyOut,
|
|
23046
|
+
scale: je.bodyOut ? 1 : zP,
|
|
23047
|
+
x: je.bodyOut ? 0 : 10,
|
|
23048
|
+
y: Me ? te : 0
|
|
23040
23049
|
},
|
|
23041
|
-
transition:
|
|
23042
|
-
onMouseEnter:
|
|
23043
|
-
onMouseLeave:
|
|
23044
|
-
children: /* @__PURE__ */ Q(
|
|
23050
|
+
transition: je.transition,
|
|
23051
|
+
onMouseEnter: he ? Le : void 0,
|
|
23052
|
+
onMouseLeave: he ? ze : void 0,
|
|
23053
|
+
children: /* @__PURE__ */ Q(XI, {
|
|
23045
23054
|
side: "right",
|
|
23046
23055
|
widgets: r,
|
|
23047
|
-
visibleWidgetId: !
|
|
23048
|
-
stow: { stowed: !
|
|
23049
|
-
widgetHostFor:
|
|
23056
|
+
visibleWidgetId: !ye && Me ? Fe : void 0,
|
|
23057
|
+
stow: { stowed: !ye && he },
|
|
23058
|
+
widgetHostFor: Ee,
|
|
23050
23059
|
slotRenderers: a,
|
|
23051
23060
|
renderWidget: o,
|
|
23052
23061
|
ctx: C,
|
|
23053
|
-
virtualized: !
|
|
23054
|
-
disableEdition: !
|
|
23055
|
-
disableDrag:
|
|
23062
|
+
virtualized: !ye && pe("right"),
|
|
23063
|
+
disableEdition: !ce("right"),
|
|
23064
|
+
disableDrag: he || ye,
|
|
23056
23065
|
dragSurfaceSelector: "[data-page-surface]",
|
|
23057
23066
|
onReorder: g ? (e) => g("right", e) : void 0,
|
|
23058
23067
|
onRemoveWidget: d,
|
|
@@ -23060,59 +23069,59 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23060
23069
|
rebuildWidget: p,
|
|
23061
23070
|
renderWidgetPreview: m,
|
|
23062
23071
|
paramsPreviewWidth: y,
|
|
23063
|
-
onClickAddNewWidget: h &&
|
|
23072
|
+
onClickAddNewWidget: h && le("right") && !he && !ye ? () => h("right") : void 0,
|
|
23064
23073
|
entrance: { delayMs: 220 },
|
|
23065
|
-
children:
|
|
23074
|
+
children: he ? null : i
|
|
23066
23075
|
})
|
|
23067
23076
|
}) : null,
|
|
23068
|
-
|
|
23077
|
+
Me && Ae ? /* @__PURE__ */ Q("div", {
|
|
23069
23078
|
"aria-hidden": !0,
|
|
23070
23079
|
className: "absolute z-10",
|
|
23071
23080
|
style: {
|
|
23072
|
-
top:
|
|
23081
|
+
top: te,
|
|
23073
23082
|
bottom: 0,
|
|
23074
23083
|
right: 0,
|
|
23075
23084
|
width: 48
|
|
23076
23085
|
},
|
|
23077
|
-
onMouseEnter:
|
|
23078
|
-
onMouseLeave:
|
|
23086
|
+
onMouseEnter: Le,
|
|
23087
|
+
onMouseLeave: ze
|
|
23079
23088
|
}) : null
|
|
23080
23089
|
]
|
|
23081
23090
|
});
|
|
23082
|
-
return /* @__PURE__ */ Q(
|
|
23091
|
+
return /* @__PURE__ */ Q(mF, {
|
|
23083
23092
|
tracking: _,
|
|
23084
|
-
children:
|
|
23093
|
+
children: He
|
|
23085
23094
|
});
|
|
23086
|
-
}),
|
|
23095
|
+
}), lL = (e) => e ? ci[e] : void 0, uL = (e) => e.type === "icon" ? {
|
|
23087
23096
|
...e,
|
|
23088
|
-
icon:
|
|
23089
|
-
} : e,
|
|
23090
|
-
...e.type === "navigate" &&
|
|
23097
|
+
icon: lL(e.icon) ?? So
|
|
23098
|
+
} : e, dL = (e, t, n) => ({
|
|
23099
|
+
...e.type === "navigate" && TI(e.href) ? { href: e.href } : {},
|
|
23091
23100
|
onClick: () => n(e, t)
|
|
23092
|
-
}),
|
|
23101
|
+
}), fL = (e, t, n) => ({
|
|
23093
23102
|
label: e.label,
|
|
23094
|
-
icon:
|
|
23103
|
+
icon: lL(e.icon),
|
|
23095
23104
|
variant: e.variant,
|
|
23096
|
-
...
|
|
23097
|
-
}),
|
|
23105
|
+
...dL(e.action, t, n)
|
|
23106
|
+
}), pL = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(fI, {
|
|
23098
23107
|
headless: !e,
|
|
23099
23108
|
header: e ? { title: e } : void 0,
|
|
23100
23109
|
fullHeight: i,
|
|
23101
23110
|
slots: t,
|
|
23102
23111
|
loading: n,
|
|
23103
23112
|
slotRenderers: r
|
|
23104
|
-
}),
|
|
23113
|
+
}), mL = "agentic-empty-state", hL = [
|
|
23105
23114
|
"default",
|
|
23106
23115
|
"outline",
|
|
23107
23116
|
"neutral",
|
|
23108
23117
|
"promote"
|
|
23109
|
-
],
|
|
23118
|
+
], gL = (e) => hL.find((t) => t === e), _L = ({ empty: e, elementId: t, onAction: n }) => {
|
|
23110
23119
|
let r = U(), i = e?.title ?? r.collections.emptyStates.noData.title, a = e ? e.description : r.collections.emptyStates.noData.description, o = e?.actions?.slice(0, 2).map((e) => ({
|
|
23111
23120
|
label: e.label,
|
|
23112
|
-
icon:
|
|
23113
|
-
variant:
|
|
23121
|
+
icon: lL(e.icon),
|
|
23122
|
+
variant: gL(e.variant),
|
|
23114
23123
|
onClick: () => n(e.action, t ? { elementId: t } : {})
|
|
23115
|
-
})), s = J(() => ({ [
|
|
23124
|
+
})), s = J(() => ({ [mL]: () => /* @__PURE__ */ Q(S, {
|
|
23116
23125
|
title: i,
|
|
23117
23126
|
description: a,
|
|
23118
23127
|
emoji: e?.emoji ?? "📭",
|
|
@@ -23123,27 +23132,27 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23123
23132
|
e?.emoji,
|
|
23124
23133
|
o
|
|
23125
23134
|
]);
|
|
23126
|
-
return /* @__PURE__ */ Q(
|
|
23135
|
+
return /* @__PURE__ */ Q(pL, {
|
|
23127
23136
|
slots: [{
|
|
23128
|
-
visualization:
|
|
23137
|
+
visualization: mL,
|
|
23129
23138
|
params: {}
|
|
23130
23139
|
}],
|
|
23131
23140
|
slotRenderers: s
|
|
23132
23141
|
});
|
|
23133
|
-
},
|
|
23134
|
-
let t = U(), n = J(() => ({ [
|
|
23142
|
+
}, vL = ({ message: e }) => {
|
|
23143
|
+
let t = U(), n = J(() => ({ [mL]: () => /* @__PURE__ */ Q(S, {
|
|
23135
23144
|
variant: "critical",
|
|
23136
23145
|
title: t.collections.emptyStates.error.title,
|
|
23137
23146
|
description: e ?? t.collections.emptyStates.error.description
|
|
23138
23147
|
}) }), [t, e]);
|
|
23139
|
-
return /* @__PURE__ */ Q(
|
|
23148
|
+
return /* @__PURE__ */ Q(pL, {
|
|
23140
23149
|
slots: [{
|
|
23141
|
-
visualization:
|
|
23150
|
+
visualization: mL,
|
|
23142
23151
|
params: {}
|
|
23143
23152
|
}],
|
|
23144
23153
|
slotRenderers: n
|
|
23145
23154
|
});
|
|
23146
|
-
},
|
|
23155
|
+
}, yL = (e) => {
|
|
23147
23156
|
switch (e.type) {
|
|
23148
23157
|
case "stats": return e.stats;
|
|
23149
23158
|
case "charts": return e.charts;
|
|
@@ -23154,15 +23163,15 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23154
23163
|
case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
|
|
23155
23164
|
case "text": return [];
|
|
23156
23165
|
}
|
|
23157
|
-
},
|
|
23166
|
+
}, bL = (e, t, n, r) => {
|
|
23158
23167
|
let i = t?.itemActions;
|
|
23159
|
-
if (i) for (let t of
|
|
23168
|
+
if (i) for (let t of yL(e)) (!t.action || !i.includes(t.action.type)) && r.push({
|
|
23160
23169
|
rule: "itemAction",
|
|
23161
23170
|
...n,
|
|
23162
23171
|
itemId: t.id,
|
|
23163
23172
|
expected: i
|
|
23164
23173
|
});
|
|
23165
|
-
},
|
|
23174
|
+
}, xL = {
|
|
23166
23175
|
stats: 3,
|
|
23167
23176
|
charts: 2,
|
|
23168
23177
|
list: 3,
|
|
@@ -23170,7 +23179,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23170
23179
|
events: 2,
|
|
23171
23180
|
posts: 1,
|
|
23172
23181
|
widget: 3
|
|
23173
|
-
},
|
|
23182
|
+
}, SL = (e) => Math.max(1, e.expectedItemsCount ?? xL[e.type]), CL = (e) => {
|
|
23174
23183
|
switch (e.type) {
|
|
23175
23184
|
case "stats": return e.stats.length;
|
|
23176
23185
|
case "charts": return e.charts.length;
|
|
@@ -23181,7 +23190,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23181
23190
|
case "shortcuts": return e.shortcuts.length;
|
|
23182
23191
|
case "text": return 1;
|
|
23183
23192
|
}
|
|
23184
|
-
},
|
|
23193
|
+
}, wL = (e, t) => {
|
|
23185
23194
|
switch (e.type) {
|
|
23186
23195
|
case "stats": return {
|
|
23187
23196
|
...e,
|
|
@@ -23213,22 +23222,22 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23213
23222
|
};
|
|
23214
23223
|
case "text": return e;
|
|
23215
23224
|
}
|
|
23216
|
-
},
|
|
23217
|
-
let i =
|
|
23225
|
+
}, TL = (e, t) => e.blocks?.find((e) => e.type === t), EL = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, DL = (e, t, n, r) => {
|
|
23226
|
+
let i = TL(n, e.type)?.maxItems, a = CL(e);
|
|
23218
23227
|
return i === void 0 || a <= i ? e : (r.push({
|
|
23219
23228
|
rule: "maxItems",
|
|
23220
23229
|
elementId: t,
|
|
23221
23230
|
blockType: e.type,
|
|
23222
23231
|
limit: i,
|
|
23223
23232
|
count: a
|
|
23224
|
-
}),
|
|
23225
|
-
},
|
|
23226
|
-
let n = e.type === "widget" ? void 0 :
|
|
23227
|
-
return n !== void 0 &&
|
|
23233
|
+
}), wL(e, i));
|
|
23234
|
+
}, OL = (e, t) => {
|
|
23235
|
+
let n = e.type === "widget" ? void 0 : TL(t, e.type)?.maxItems;
|
|
23236
|
+
return n !== void 0 && SL(e) > n ? {
|
|
23228
23237
|
...e,
|
|
23229
23238
|
expectedItemsCount: Math.max(1, n)
|
|
23230
23239
|
} : e;
|
|
23231
|
-
},
|
|
23240
|
+
}, kL = (e, t, n) => t === n || (t === "widget" || n === "widget") && !TL(e, "widget") || (TL(e, t)?.combinesWith?.includes(n) ?? !0) && (TL(e, n)?.combinesWith?.includes(t) ?? !0), AL = (e, t) => {
|
|
23232
23241
|
let n = t ? e.lead : void 0;
|
|
23233
23242
|
if (!n) return e;
|
|
23234
23243
|
let r = new Set(n.blocks?.map((e) => e.type));
|
|
@@ -23236,30 +23245,30 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23236
23245
|
...e,
|
|
23237
23246
|
...n,
|
|
23238
23247
|
blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
|
|
23239
|
-
...
|
|
23248
|
+
...TL(e, t.type),
|
|
23240
23249
|
...t
|
|
23241
23250
|
}))]
|
|
23242
23251
|
};
|
|
23243
|
-
},
|
|
23252
|
+
}, jL = (e, t) => {
|
|
23244
23253
|
let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
|
|
23245
23254
|
return {
|
|
23246
23255
|
missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
|
|
23247
23256
|
undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
|
|
23248
23257
|
};
|
|
23249
|
-
},
|
|
23250
|
-
if (Array.isArray(e)) for (let r of e)
|
|
23251
|
-
else if (
|
|
23252
|
-
if (
|
|
23258
|
+
}, ML = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", NL = (e) => typeof e == "object" && !!e, PL = (e) => NL(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, FL = (e, t, n = []) => {
|
|
23259
|
+
if (Array.isArray(e)) for (let r of e) FL(r, PL(r) ?? t, n);
|
|
23260
|
+
else if (NL(e)) {
|
|
23261
|
+
if (ML(e)) n.push(t ? {
|
|
23253
23262
|
action: e,
|
|
23254
23263
|
itemId: t
|
|
23255
23264
|
} : { action: e });
|
|
23256
|
-
else for (let r of Object.values(e))
|
|
23265
|
+
else for (let r of Object.values(e)) FL(r, t, n);
|
|
23257
23266
|
}
|
|
23258
23267
|
return n;
|
|
23259
|
-
},
|
|
23268
|
+
}, IL = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], LL = (e, t, n) => FL(e).flatMap(({ action: e, itemId: r }) => {
|
|
23260
23269
|
let i = t.find(({ id: t }) => t === e.id);
|
|
23261
23270
|
if (!i) return [];
|
|
23262
|
-
let a =
|
|
23271
|
+
let a = jL(i, e.params);
|
|
23263
23272
|
return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
|
|
23264
23273
|
rule: "accessoryViewParams",
|
|
23265
23274
|
viewId: i.id,
|
|
@@ -23268,39 +23277,39 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23268
23277
|
...r && r !== n.elementId ? { itemId: r } : {},
|
|
23269
23278
|
...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
|
|
23270
23279
|
}];
|
|
23271
|
-
}),
|
|
23280
|
+
}), RL = (e, t, n) => [...LL([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? LL(e, t, {
|
|
23272
23281
|
elementId: e.id,
|
|
23273
23282
|
accessoryViewId: n
|
|
23274
|
-
}) : [])],
|
|
23283
|
+
}) : [])], zL = (e) => {
|
|
23275
23284
|
let t = e.accessoryViews ?? [];
|
|
23276
|
-
return
|
|
23277
|
-
},
|
|
23285
|
+
return IL([...e.sections.flatMap((e) => RL(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => RL(n, t, e.id)), ...LL(e.actions, t, { accessoryViewId: e.id })])]);
|
|
23286
|
+
}, BL = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
|
|
23278
23287
|
rule: "sectionLink",
|
|
23279
23288
|
...t,
|
|
23280
23289
|
...i ? { itemId: i } : {},
|
|
23281
23290
|
targetSectionId: r.sectionId
|
|
23282
|
-
}), !1),
|
|
23291
|
+
}), !1), VL = (e, t) => {
|
|
23283
23292
|
if (t(e.action, e.id)) return e;
|
|
23284
23293
|
let { action: n, ...r } = e;
|
|
23285
23294
|
return r;
|
|
23286
|
-
},
|
|
23295
|
+
}, HL = (e, t) => {
|
|
23287
23296
|
switch (e.type) {
|
|
23288
23297
|
case "stats": return {
|
|
23289
23298
|
...e,
|
|
23290
|
-
stats: e.stats.map((e) =>
|
|
23299
|
+
stats: e.stats.map((e) => VL(e, t))
|
|
23291
23300
|
};
|
|
23292
23301
|
case "charts": return {
|
|
23293
23302
|
...e,
|
|
23294
|
-
charts: e.charts.map((e) =>
|
|
23303
|
+
charts: e.charts.map((e) => VL(e, t))
|
|
23295
23304
|
};
|
|
23296
23305
|
case "events": return {
|
|
23297
23306
|
...e,
|
|
23298
|
-
events: e.events.map((e) =>
|
|
23307
|
+
events: e.events.map((e) => VL(e, t))
|
|
23299
23308
|
};
|
|
23300
23309
|
case "list": return {
|
|
23301
23310
|
...e,
|
|
23302
23311
|
rows: e.rows.map((e) => ({
|
|
23303
|
-
...
|
|
23312
|
+
...VL(e, t),
|
|
23304
23313
|
actions: e.actions?.filter((n) => t(n.action, e.id))
|
|
23305
23314
|
}))
|
|
23306
23315
|
};
|
|
@@ -23312,24 +23321,24 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23312
23321
|
case "posts":
|
|
23313
23322
|
case "text": return e;
|
|
23314
23323
|
}
|
|
23315
|
-
},
|
|
23324
|
+
}, UL = (e, t, n, r) => HL(e, BL(t, n, r)), WL = (e, t) => {
|
|
23316
23325
|
let n = new Set(e.map((e) => e.id));
|
|
23317
23326
|
return e.map((e) => {
|
|
23318
|
-
let r =
|
|
23327
|
+
let r = BL(n, { sectionId: e.id }, t);
|
|
23319
23328
|
return {
|
|
23320
23329
|
...e,
|
|
23321
23330
|
actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
|
|
23322
23331
|
followUps: e.followUps?.filter((e) => r(e.action)),
|
|
23323
|
-
elements: e.elements.map((r) => r.type === "shortcuts" ?
|
|
23332
|
+
elements: e.elements.map((r) => r.type === "shortcuts" ? HL(r, BL(n, {
|
|
23324
23333
|
sectionId: e.id,
|
|
23325
23334
|
elementId: r.id
|
|
23326
23335
|
}, t)) : r)
|
|
23327
23336
|
};
|
|
23328
23337
|
});
|
|
23329
|
-
},
|
|
23338
|
+
}, GL = (e) => e.widget ? "widget" : e.block.type, KL = (e, t) => GL(t) === e.type, qL = (e, t, n) => {
|
|
23330
23339
|
let r = /* @__PURE__ */ new Map();
|
|
23331
23340
|
e.sections.forEach((e, n) => {
|
|
23332
|
-
let i =
|
|
23341
|
+
let i = AL(t, n === 0);
|
|
23333
23342
|
for (let t of e.elements) r.set(t.id, {
|
|
23334
23343
|
element: t,
|
|
23335
23344
|
rules: i,
|
|
@@ -23349,23 +23358,23 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23349
23358
|
});
|
|
23350
23359
|
}
|
|
23351
23360
|
return r;
|
|
23352
|
-
},
|
|
23353
|
-
let i = new Set(t.sections.map((e) => e.id)), a =
|
|
23361
|
+
}, JL = (e, t, n, r = []) => {
|
|
23362
|
+
let i = new Set(t.sections.map((e) => e.id)), a = qL(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
|
|
23354
23363
|
let n = a.get(e);
|
|
23355
23364
|
if (!n || t.status !== "ready") return [e, t];
|
|
23356
23365
|
let r = [], s = t;
|
|
23357
|
-
if (!
|
|
23366
|
+
if (!KL(n.element, t)) r.push({
|
|
23358
23367
|
rule: "sourceType",
|
|
23359
23368
|
elementId: e,
|
|
23360
23369
|
expected: n.element.type,
|
|
23361
|
-
received:
|
|
23370
|
+
received: GL(t)
|
|
23362
23371
|
});
|
|
23363
23372
|
else if (t.block) {
|
|
23364
23373
|
let a = {
|
|
23365
23374
|
sectionId: n.sectionId,
|
|
23366
23375
|
elementId: e
|
|
23367
|
-
}, o =
|
|
23368
|
-
|
|
23376
|
+
}, o = UL(DL(t.block, e, n.rules, r), i, a, r);
|
|
23377
|
+
bL(o, TL(n.rules, o.type), a, r), s = {
|
|
23369
23378
|
...t,
|
|
23370
23379
|
block: o
|
|
23371
23380
|
};
|
|
@@ -23376,25 +23385,25 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23376
23385
|
} : e)), [e, s];
|
|
23377
23386
|
}), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
|
|
23378
23387
|
let n = a.get(e);
|
|
23379
|
-
return n && t.status === "ready" && t.block ?
|
|
23388
|
+
return n && t.status === "ready" && t.block ? LL(t.block, c, {
|
|
23380
23389
|
elementId: e,
|
|
23381
23390
|
accessoryViewId: n.accessoryViewId
|
|
23382
23391
|
}) : [];
|
|
23383
23392
|
});
|
|
23384
23393
|
return {
|
|
23385
23394
|
sources: Object.fromEntries(s),
|
|
23386
|
-
violations: [...o, ...
|
|
23395
|
+
violations: [...o, ...IL(l)]
|
|
23387
23396
|
};
|
|
23388
|
-
},
|
|
23397
|
+
}, YL = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
|
|
23389
23398
|
"data-agentic-card": "",
|
|
23390
23399
|
className: W("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
|
|
23391
23400
|
children: t
|
|
23392
|
-
}),
|
|
23401
|
+
}), XL = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", ZL = ({ label: e, press: t }) => {
|
|
23393
23402
|
if (!t) return /* @__PURE__ */ Q($n, {
|
|
23394
23403
|
variant: "label",
|
|
23395
23404
|
content: e
|
|
23396
23405
|
});
|
|
23397
|
-
let n = W("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline",
|
|
23406
|
+
let n = W("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", XL, G());
|
|
23398
23407
|
return t.href ? /* @__PURE__ */ Q(Bn, {
|
|
23399
23408
|
href: t.href,
|
|
23400
23409
|
onClick: t.onClick,
|
|
@@ -23410,9 +23419,9 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23410
23419
|
className: W("cursor-pointer", n),
|
|
23411
23420
|
children: e
|
|
23412
23421
|
});
|
|
23413
|
-
},
|
|
23422
|
+
}, QL = (e) => {
|
|
23414
23423
|
if (!e) return;
|
|
23415
|
-
let t =
|
|
23424
|
+
let t = $L(e.type === "percent" ? {
|
|
23416
23425
|
style: "percent",
|
|
23417
23426
|
maximumFractionDigits: 1
|
|
23418
23427
|
} : e.type === "compact" ? {
|
|
@@ -23423,27 +23432,27 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23423
23432
|
currency: e.currency
|
|
23424
23433
|
} : {});
|
|
23425
23434
|
return (e) => t.format(e);
|
|
23426
|
-
},
|
|
23435
|
+
}, $L = (e) => {
|
|
23427
23436
|
try {
|
|
23428
23437
|
return new Intl.NumberFormat(void 0, e);
|
|
23429
23438
|
} catch {
|
|
23430
23439
|
return new Intl.NumberFormat();
|
|
23431
23440
|
}
|
|
23432
|
-
},
|
|
23433
|
-
let r =
|
|
23441
|
+
}, eR = ({ spec: e, label: t, format: n }) => {
|
|
23442
|
+
let r = QL(n);
|
|
23434
23443
|
return /* @__PURE__ */ Q(ct, {
|
|
23435
23444
|
...e,
|
|
23436
23445
|
ariaLabel: t,
|
|
23437
23446
|
valueFormatter: r
|
|
23438
23447
|
});
|
|
23439
|
-
},
|
|
23448
|
+
}, tR = ({ chart: e, press: t }) => /* @__PURE__ */ $(Zn, {
|
|
23440
23449
|
display: "flex",
|
|
23441
23450
|
flexDirection: "column",
|
|
23442
23451
|
gap: "md",
|
|
23443
23452
|
children: [/* @__PURE__ */ $(Zn, {
|
|
23444
23453
|
display: "flex",
|
|
23445
23454
|
flexDirection: "column",
|
|
23446
|
-
children: [/* @__PURE__ */ Q(
|
|
23455
|
+
children: [/* @__PURE__ */ Q(ZL, {
|
|
23447
23456
|
label: e.label,
|
|
23448
23457
|
press: t
|
|
23449
23458
|
}), e.caption ? /* @__PURE__ */ Q($n, {
|
|
@@ -23452,24 +23461,24 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23452
23461
|
}) : null]
|
|
23453
23462
|
}), /* @__PURE__ */ Q("div", {
|
|
23454
23463
|
className: "h-48 w-full",
|
|
23455
|
-
children: /* @__PURE__ */ Q(
|
|
23464
|
+
children: /* @__PURE__ */ Q(eR, {
|
|
23456
23465
|
spec: e.chart,
|
|
23457
23466
|
label: e.label,
|
|
23458
23467
|
format: e.format
|
|
23459
23468
|
})
|
|
23460
23469
|
})]
|
|
23461
|
-
}),
|
|
23470
|
+
}), nR = 300, rR = 7, iR = 14, aR = 5, oR = 18, sR = 3, cR = (e) => Math.max(0, ...e.map((e) => e.length)), lR = (e) => {
|
|
23462
23471
|
if (e.type === "pie") {
|
|
23463
23472
|
let t = e.series.data.map((e) => e.name);
|
|
23464
|
-
return t.length >
|
|
23473
|
+
return t.length > aR || cR(t) > oR;
|
|
23465
23474
|
}
|
|
23466
|
-
if (e.series.length >
|
|
23467
|
-
if (e.type === "bar" && e.orientation === "horizontal") return
|
|
23468
|
-
let t =
|
|
23469
|
-
return
|
|
23470
|
-
},
|
|
23475
|
+
if (e.series.length > sR) return !0;
|
|
23476
|
+
if (e.type === "bar" && e.orientation === "horizontal") return cR(e.categories) > iR;
|
|
23477
|
+
let t = nR / Math.max(1, e.categories.length);
|
|
23478
|
+
return cR(e.categories) * rR > t;
|
|
23479
|
+
}, uR = (e) => {
|
|
23471
23480
|
if (e.length === 1) return ["full"];
|
|
23472
|
-
let t = e.map((e) =>
|
|
23481
|
+
let t = e.map((e) => lR(e.chart) ? "full" : "half"), n = 0;
|
|
23473
23482
|
return t.forEach((e, r) => {
|
|
23474
23483
|
if (e === "half" && (n += 1), (e === "full" || r === t.length - 1) && n % 2 == 1) {
|
|
23475
23484
|
let n = e === "half" ? r : r - 1;
|
|
@@ -23477,42 +23486,42 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23477
23486
|
}
|
|
23478
23487
|
e === "full" && (n = 0);
|
|
23479
23488
|
}), t;
|
|
23480
|
-
},
|
|
23481
|
-
let r =
|
|
23489
|
+
}, dR = "agentic-chart", fR = { [dR]: (e) => /* @__PURE__ */ Q(tR, { ...e }) }, pR = ({ charts: e, elementId: t, onAction: n }) => {
|
|
23490
|
+
let r = uR(e);
|
|
23482
23491
|
return /* @__PURE__ */ Q("div", {
|
|
23483
23492
|
className: "grid w-full max-w-content grid-cols-1 gap-4 sm:grid-cols-2",
|
|
23484
23493
|
children: e.map((e, i) => {
|
|
23485
|
-
let a = e.action ?
|
|
23494
|
+
let a = e.action ? dL(e.action, {
|
|
23486
23495
|
elementId: t,
|
|
23487
23496
|
itemId: e.id
|
|
23488
23497
|
}, n) : void 0;
|
|
23489
23498
|
return /* @__PURE__ */ Q("div", {
|
|
23490
23499
|
"data-chart-span": r[i],
|
|
23491
23500
|
className: r[i] === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
|
|
23492
|
-
children: /* @__PURE__ */ Q(
|
|
23501
|
+
children: /* @__PURE__ */ Q(YL, {
|
|
23493
23502
|
press: a,
|
|
23494
|
-
children: /* @__PURE__ */ Q(
|
|
23503
|
+
children: /* @__PURE__ */ Q(pL, {
|
|
23495
23504
|
fullHeight: !0,
|
|
23496
23505
|
slots: [{
|
|
23497
|
-
visualization:
|
|
23506
|
+
visualization: dR,
|
|
23498
23507
|
params: {
|
|
23499
23508
|
chart: e,
|
|
23500
23509
|
press: a
|
|
23501
23510
|
}
|
|
23502
23511
|
}],
|
|
23503
|
-
slotRenderers:
|
|
23512
|
+
slotRenderers: fR
|
|
23504
23513
|
})
|
|
23505
23514
|
})
|
|
23506
23515
|
}, e.id);
|
|
23507
23516
|
})
|
|
23508
23517
|
});
|
|
23509
|
-
},
|
|
23518
|
+
}, mR = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Zn, {
|
|
23510
23519
|
display: "flex",
|
|
23511
23520
|
flexDirection: "column",
|
|
23512
23521
|
gap: "md",
|
|
23513
|
-
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(
|
|
23522
|
+
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(pL, { slots: [xF("event-list", { events: [{
|
|
23514
23523
|
...s,
|
|
23515
|
-
...o ?
|
|
23524
|
+
...o ? dL(o, {
|
|
23516
23525
|
elementId: t,
|
|
23517
23526
|
itemId: e
|
|
23518
23527
|
}, n) : {},
|
|
@@ -23521,22 +23530,22 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23521
23530
|
fromDate: r ? new Date(r) : void 0,
|
|
23522
23531
|
toDate: i ? new Date(i) : void 0
|
|
23523
23532
|
}] })] }, e))
|
|
23524
|
-
}),
|
|
23533
|
+
}), hR = ({ action: e, ...t }, n, r) => ({
|
|
23525
23534
|
...t,
|
|
23526
|
-
href:
|
|
23535
|
+
href: TI(t.href),
|
|
23527
23536
|
...e ? {
|
|
23528
23537
|
href: void 0,
|
|
23529
|
-
...
|
|
23538
|
+
...dL(e, {
|
|
23530
23539
|
elementId: n,
|
|
23531
23540
|
itemId: t.id
|
|
23532
23541
|
}, r)
|
|
23533
23542
|
} : {},
|
|
23534
|
-
avatar: t.avatar &&
|
|
23535
|
-
rightAvatar: t.rightAvatar &&
|
|
23536
|
-
avatars: t.avatars?.map(
|
|
23543
|
+
avatar: t.avatar && uL(t.avatar),
|
|
23544
|
+
rightAvatar: t.rightAvatar && uL(t.rightAvatar),
|
|
23545
|
+
avatars: t.avatars?.map(uL),
|
|
23537
23546
|
actions: t.actions?.map((e) => ({
|
|
23538
23547
|
label: e.label,
|
|
23539
|
-
icon:
|
|
23548
|
+
icon: lL(e.icon),
|
|
23540
23549
|
critical: e.critical,
|
|
23541
23550
|
showLabel: e.showLabel,
|
|
23542
23551
|
onClick: () => r(e.action, {
|
|
@@ -23544,16 +23553,16 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23544
23553
|
itemId: t.id
|
|
23545
23554
|
})
|
|
23546
23555
|
}))
|
|
23547
|
-
}),
|
|
23556
|
+
}), gR = (e) => e.rows.some(({ action: e }) => e?.type === "navigate") ? {
|
|
23548
23557
|
...e.schema,
|
|
23549
23558
|
clickBehavior: "link"
|
|
23550
|
-
} : e.schema,
|
|
23559
|
+
} : e.schema, _R = (e, t, n) => [{
|
|
23551
23560
|
visualization: "list",
|
|
23552
23561
|
params: {
|
|
23553
|
-
schema:
|
|
23554
|
-
items: e.rows.map((e) =>
|
|
23562
|
+
schema: gR(e),
|
|
23563
|
+
items: e.rows.map((e) => hR(e, t, n))
|
|
23555
23564
|
}
|
|
23556
|
-
}],
|
|
23565
|
+
}], vR = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(Zn, {
|
|
23557
23566
|
display: "flex",
|
|
23558
23567
|
flexDirection: "column",
|
|
23559
23568
|
gap: "md",
|
|
@@ -23563,16 +23572,16 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23563
23572
|
children: e.title
|
|
23564
23573
|
}) : null, /* @__PURE__ */ Q("div", {
|
|
23565
23574
|
className: "text-lg [&_[data-list-row]]:gap-4",
|
|
23566
|
-
children: /* @__PURE__ */ Q(
|
|
23575
|
+
children: /* @__PURE__ */ Q(dI, { slots: _R(e, t, n) })
|
|
23567
23576
|
})]
|
|
23568
|
-
}),
|
|
23577
|
+
}), yR = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(vR, {
|
|
23569
23578
|
content: e,
|
|
23570
23579
|
elementId: t,
|
|
23571
23580
|
onAction: n
|
|
23572
|
-
}) : /* @__PURE__ */ Q(
|
|
23581
|
+
}) : /* @__PURE__ */ Q(pL, {
|
|
23573
23582
|
title: e.title,
|
|
23574
|
-
slots:
|
|
23575
|
-
}),
|
|
23583
|
+
slots: _R(e, t, n)
|
|
23584
|
+
}), bR = ({ posts: e }) => /* @__PURE__ */ Q(Zn, {
|
|
23576
23585
|
display: "flex",
|
|
23577
23586
|
flexDirection: "column",
|
|
23578
23587
|
gap: "md",
|
|
@@ -23580,11 +23589,11 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23580
23589
|
variant: "row",
|
|
23581
23590
|
post: {
|
|
23582
23591
|
...n,
|
|
23583
|
-
href:
|
|
23592
|
+
href: TI(t),
|
|
23584
23593
|
createdAt: new Date(e)
|
|
23585
23594
|
}
|
|
23586
23595
|
}, n.id))
|
|
23587
|
-
}),
|
|
23596
|
+
}), xR = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Zn, {
|
|
23588
23597
|
display: "flex",
|
|
23589
23598
|
flexWrap: "wrap",
|
|
23590
23599
|
gap: "sm",
|
|
@@ -23592,27 +23601,27 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23592
23601
|
variant: "neutral",
|
|
23593
23602
|
size: "md",
|
|
23594
23603
|
label: e.label,
|
|
23595
|
-
icon:
|
|
23596
|
-
...
|
|
23604
|
+
icon: lL(e.icon),
|
|
23605
|
+
...dL(e.action, {
|
|
23597
23606
|
elementId: t,
|
|
23598
23607
|
itemId: e.id
|
|
23599
23608
|
}, n)
|
|
23600
23609
|
}, e.id))
|
|
23601
|
-
}),
|
|
23610
|
+
}), SR = "agentic-stats", CR = {
|
|
23602
23611
|
positive: "text-f1-foreground-positive",
|
|
23603
23612
|
negative: "text-f1-foreground-critical",
|
|
23604
23613
|
neutral: "text-f1-foreground-secondary"
|
|
23605
|
-
},
|
|
23606
|
-
visualization:
|
|
23614
|
+
}, wR = (e, t, n) => ({
|
|
23615
|
+
visualization: SR,
|
|
23607
23616
|
params: { stats: e.map((e) => ({
|
|
23608
23617
|
stat: e,
|
|
23609
|
-
press: e.action ?
|
|
23618
|
+
press: e.action ? dL(e.action, {
|
|
23610
23619
|
elementId: t,
|
|
23611
23620
|
itemId: e.id
|
|
23612
23621
|
}, n) : void 0
|
|
23613
23622
|
})) }
|
|
23614
|
-
}),
|
|
23615
|
-
let n =
|
|
23623
|
+
}), TR = ({ stat: e, press: t }) => {
|
|
23624
|
+
let n = lL(e.icon);
|
|
23616
23625
|
return /* @__PURE__ */ $(Zn, {
|
|
23617
23626
|
display: "flex",
|
|
23618
23627
|
flexDirection: "column",
|
|
@@ -23636,7 +23645,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23636
23645
|
children: [e.eyebrow ? /* @__PURE__ */ Q($n, {
|
|
23637
23646
|
variant: "description",
|
|
23638
23647
|
content: e.eyebrow
|
|
23639
|
-
}) : null, /* @__PURE__ */ Q(
|
|
23648
|
+
}) : null, /* @__PURE__ */ Q(ZL, {
|
|
23640
23649
|
label: e.label,
|
|
23641
23650
|
press: t
|
|
23642
23651
|
})]
|
|
@@ -23656,7 +23665,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23656
23665
|
className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
|
|
23657
23666
|
}) : null, e.value]
|
|
23658
23667
|
}), e.trend ? /* @__PURE__ */ Q("span", {
|
|
23659
|
-
className: W("text-base font-medium",
|
|
23668
|
+
className: W("text-base font-medium", CR[e.trend.tone ?? "neutral"]),
|
|
23660
23669
|
children: e.trend.text
|
|
23661
23670
|
}) : null]
|
|
23662
23671
|
}), e.caption ? /* @__PURE__ */ Q($n, {
|
|
@@ -23665,59 +23674,59 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23665
23674
|
}) : null]
|
|
23666
23675
|
})]
|
|
23667
23676
|
});
|
|
23668
|
-
},
|
|
23677
|
+
}, ER = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", DR = (e, t) => {
|
|
23669
23678
|
let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
|
|
23670
23679
|
return Math.ceil(Math.max(1, e) / r);
|
|
23671
|
-
},
|
|
23680
|
+
}, OR = ({ stats: e }) => {
|
|
23672
23681
|
let t = Y(null), { width: n } = Wn({
|
|
23673
23682
|
ref: t,
|
|
23674
23683
|
box: "border-box"
|
|
23675
|
-
}), r =
|
|
23684
|
+
}), r = DR(e.length, n || 712);
|
|
23676
23685
|
return /* @__PURE__ */ Q("div", {
|
|
23677
23686
|
ref: t,
|
|
23678
|
-
className: W("-m-4",
|
|
23687
|
+
className: W("-m-4", ER),
|
|
23679
23688
|
children: /* @__PURE__ */ Q("div", {
|
|
23680
23689
|
className: "-mb-px -mr-px flex flex-wrap",
|
|
23681
23690
|
children: e.map(({ stat: e, press: t }) => /* @__PURE__ */ Q("div", {
|
|
23682
23691
|
"data-agentic-card": "",
|
|
23683
23692
|
className: W("relative min-w-0 grow border-0 border-b border-r border-solid border-f1-border-secondary p-4", t && "transition-colors hover:bg-f1-background-hover"),
|
|
23684
23693
|
style: { flexBasis: `${100 / r}%` },
|
|
23685
|
-
children: /* @__PURE__ */ Q(
|
|
23694
|
+
children: /* @__PURE__ */ Q(TR, {
|
|
23686
23695
|
stat: e,
|
|
23687
23696
|
press: t
|
|
23688
23697
|
})
|
|
23689
23698
|
}, e.id))
|
|
23690
23699
|
})
|
|
23691
23700
|
});
|
|
23692
|
-
},
|
|
23693
|
-
slots: [
|
|
23694
|
-
slotRenderers:
|
|
23695
|
-
}),
|
|
23701
|
+
}, kR = { [SR]: (e) => /* @__PURE__ */ Q(OR, { ...e }) }, AR = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(pL, {
|
|
23702
|
+
slots: [wR(e, t, n)],
|
|
23703
|
+
slotRenderers: kR
|
|
23704
|
+
}), jR = fn().use(Hn), MR = (e) => jR.parse(e), NR = (e) => e.value ?? e.alt ?? (e.children ?? []).map(NR).join(""), PR = (e) => (e ?? []).map((e, t) => FR(e, t)), FR = (e, t) => {
|
|
23696
23705
|
switch (e.type) {
|
|
23697
|
-
case "root": return
|
|
23706
|
+
case "root": return PR(e.children);
|
|
23698
23707
|
case "text": return e.value;
|
|
23699
23708
|
case "paragraph": return /* @__PURE__ */ Q("p", {
|
|
23700
23709
|
className: "m-0",
|
|
23701
|
-
children:
|
|
23710
|
+
children: PR(e.children)
|
|
23702
23711
|
}, t);
|
|
23703
23712
|
case "heading": return /* @__PURE__ */ Q(Vt, {
|
|
23704
23713
|
as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
|
|
23705
23714
|
variant: "heading",
|
|
23706
|
-
content:
|
|
23715
|
+
content: NR(e)
|
|
23707
23716
|
}, t);
|
|
23708
23717
|
case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
|
|
23709
23718
|
className: "m-0 flex list-decimal flex-col gap-1 pl-5",
|
|
23710
|
-
children:
|
|
23719
|
+
children: PR(e.children)
|
|
23711
23720
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
23712
23721
|
className: "m-0 flex list-disc flex-col gap-1 pl-5",
|
|
23713
|
-
children:
|
|
23722
|
+
children: PR(e.children)
|
|
23714
23723
|
}, t);
|
|
23715
|
-
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ?
|
|
23724
|
+
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? PR(e.children) : FR(e, t)) }, t);
|
|
23716
23725
|
case "strong": return /* @__PURE__ */ Q("strong", {
|
|
23717
23726
|
className: "font-semibold",
|
|
23718
|
-
children:
|
|
23727
|
+
children: PR(e.children)
|
|
23719
23728
|
}, t);
|
|
23720
|
-
case "emphasis": return /* @__PURE__ */ Q("em", { children:
|
|
23729
|
+
case "emphasis": return /* @__PURE__ */ Q("em", { children: PR(e.children) }, t);
|
|
23721
23730
|
case "inlineCode": return /* @__PURE__ */ Q($n, {
|
|
23722
23731
|
as: "code",
|
|
23723
23732
|
variant: "code",
|
|
@@ -23733,69 +23742,69 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23733
23742
|
content: e.value ?? ""
|
|
23734
23743
|
})
|
|
23735
23744
|
}, t);
|
|
23736
|
-
case "link": return e.url &&
|
|
23745
|
+
case "link": return e.url && DI(e.url) ? /* @__PURE__ */ Q(Pr, {
|
|
23737
23746
|
href: e.url,
|
|
23738
|
-
children:
|
|
23739
|
-
}, t) :
|
|
23747
|
+
children: NR(e)
|
|
23748
|
+
}, t) : NR(e);
|
|
23740
23749
|
case "break": return /* @__PURE__ */ Q("br", {}, t);
|
|
23741
|
-
default: return
|
|
23750
|
+
default: return NR(e);
|
|
23742
23751
|
}
|
|
23743
|
-
},
|
|
23752
|
+
}, IR = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
|
|
23744
23753
|
"data-agentic-text": !0,
|
|
23745
23754
|
className: W("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
|
|
23746
|
-
children:
|
|
23747
|
-
}),
|
|
23755
|
+
children: FR(MR(e), 0)
|
|
23756
|
+
}), LR = ({ text: e, lead: t }) => /* @__PURE__ */ Q(IR, {
|
|
23748
23757
|
text: e,
|
|
23749
23758
|
lead: t
|
|
23750
|
-
}),
|
|
23759
|
+
}), RR = ({ items: e }) => /* @__PURE__ */ Q(hf, { items: e.map((e) => ({
|
|
23751
23760
|
id: e.id,
|
|
23752
23761
|
status: e.status ?? "completed",
|
|
23753
|
-
icon:
|
|
23762
|
+
icon: lL(e.icon),
|
|
23754
23763
|
title: e.title,
|
|
23755
23764
|
description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
|
|
23756
|
-
})) }),
|
|
23765
|
+
})) }), zR = "agentic-timeline", BR = { [zR]: (e) => /* @__PURE__ */ Q(RR, { items: e.items }) }, VR = ({ items: e }) => /* @__PURE__ */ Q(pL, {
|
|
23757
23766
|
slots: [{
|
|
23758
|
-
visualization:
|
|
23767
|
+
visualization: zR,
|
|
23759
23768
|
params: { items: e }
|
|
23760
23769
|
}],
|
|
23761
|
-
slotRenderers:
|
|
23762
|
-
}),
|
|
23770
|
+
slotRenderers: BR
|
|
23771
|
+
}), HR = ({ block: e, elementId: t, onAction: n, lead: r }) => {
|
|
23763
23772
|
switch (e.type) {
|
|
23764
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
23773
|
+
case "stats": return /* @__PURE__ */ Q(AR, {
|
|
23765
23774
|
stats: e.stats,
|
|
23766
23775
|
elementId: t,
|
|
23767
23776
|
onAction: n
|
|
23768
23777
|
});
|
|
23769
|
-
case "list": return /* @__PURE__ */ Q(
|
|
23778
|
+
case "list": return /* @__PURE__ */ Q(yR, {
|
|
23770
23779
|
content: e,
|
|
23771
23780
|
elementId: t,
|
|
23772
23781
|
onAction: n
|
|
23773
23782
|
});
|
|
23774
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
23775
|
-
case "events": return /* @__PURE__ */ Q(
|
|
23783
|
+
case "timeline": return /* @__PURE__ */ Q(VR, { items: e.items });
|
|
23784
|
+
case "events": return /* @__PURE__ */ Q(mR, {
|
|
23776
23785
|
events: e.events,
|
|
23777
23786
|
elementId: t,
|
|
23778
23787
|
onAction: n
|
|
23779
23788
|
});
|
|
23780
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
23781
|
-
case "shortcuts": return /* @__PURE__ */ Q(
|
|
23789
|
+
case "posts": return /* @__PURE__ */ Q(bR, { posts: e.posts });
|
|
23790
|
+
case "shortcuts": return /* @__PURE__ */ Q(xR, {
|
|
23782
23791
|
shortcuts: e.shortcuts,
|
|
23783
23792
|
elementId: t,
|
|
23784
23793
|
onAction: n
|
|
23785
23794
|
});
|
|
23786
|
-
case "text": return /* @__PURE__ */ Q(
|
|
23795
|
+
case "text": return /* @__PURE__ */ Q(LR, {
|
|
23787
23796
|
text: e.text,
|
|
23788
23797
|
lead: r
|
|
23789
23798
|
});
|
|
23790
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
23799
|
+
case "charts": return /* @__PURE__ */ Q(pR, {
|
|
23791
23800
|
charts: e.charts,
|
|
23792
23801
|
elementId: t,
|
|
23793
23802
|
onAction: n
|
|
23794
23803
|
});
|
|
23795
23804
|
}
|
|
23796
|
-
},
|
|
23805
|
+
}, UR = (e) => e % 2 == 1 && e !== 3 || e > 4, WR = ({ cards: e }) => {
|
|
23797
23806
|
let t = U();
|
|
23798
|
-
return
|
|
23807
|
+
return UR(e.length) ? /* @__PURE__ */ Q(M, {
|
|
23799
23808
|
columns: {
|
|
23800
23809
|
default: 2,
|
|
23801
23810
|
xs: 2,
|
|
@@ -23820,14 +23829,14 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23820
23829
|
md: { columns: e.length === 3 ? "3" : "2" },
|
|
23821
23830
|
children: e
|
|
23822
23831
|
});
|
|
23823
|
-
},
|
|
23832
|
+
}, GR = ({ className: e }) => /* @__PURE__ */ Q(H, { className: W("rounded-2xs motion-reduce:animate-none", e) }), KR = "agentic-skeleton", qR = { [KR]: (e) => e.content }, JR = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(pL, {
|
|
23824
23833
|
fullHeight: t,
|
|
23825
23834
|
slots: [{
|
|
23826
|
-
visualization:
|
|
23835
|
+
visualization: KR,
|
|
23827
23836
|
params: { content: e }
|
|
23828
23837
|
}],
|
|
23829
|
-
slotRenderers:
|
|
23830
|
-
}),
|
|
23838
|
+
slotRenderers: qR
|
|
23839
|
+
}), YR = (e) => Array.from({ length: e }, (e, t) => t), XR = ({ count: e }) => /* @__PURE__ */ Q(WR, { cards: YR(e).map((e) => /* @__PURE__ */ Q(YL, { children: /* @__PURE__ */ Q(JR, {
|
|
23831
23840
|
fullHeight: !0,
|
|
23832
23841
|
children: /* @__PURE__ */ $(Zn, {
|
|
23833
23842
|
display: "flex",
|
|
@@ -23837,70 +23846,70 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23837
23846
|
display: "flex",
|
|
23838
23847
|
flexDirection: "column",
|
|
23839
23848
|
gap: "xs",
|
|
23840
|
-
children: [/* @__PURE__ */ Q(
|
|
23841
|
-
}), /* @__PURE__ */ Q(
|
|
23849
|
+
children: [/* @__PURE__ */ Q(GR, { className: "h-4 w-32" }), /* @__PURE__ */ Q(GR, { className: "h-3 w-24" })]
|
|
23850
|
+
}), /* @__PURE__ */ Q(GR, { className: "h-48 w-full rounded-md" })]
|
|
23842
23851
|
})
|
|
23843
|
-
}) }, e)) }),
|
|
23852
|
+
}) }, e)) }), ZR = ({ count: e }) => /* @__PURE__ */ Q(Zn, {
|
|
23844
23853
|
display: "flex",
|
|
23845
23854
|
flexDirection: "column",
|
|
23846
23855
|
gap: "md",
|
|
23847
|
-
children:
|
|
23856
|
+
children: YR(e).map((e) => /* @__PURE__ */ Q(JR, { children: /* @__PURE__ */ $(Zn, {
|
|
23848
23857
|
display: "flex",
|
|
23849
23858
|
alignItems: "center",
|
|
23850
23859
|
gap: "md",
|
|
23851
|
-
children: [/* @__PURE__ */ Q(
|
|
23860
|
+
children: [/* @__PURE__ */ Q(GR, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(Zn, {
|
|
23852
23861
|
display: "flex",
|
|
23853
23862
|
flexDirection: "column",
|
|
23854
23863
|
gap: "xs",
|
|
23855
23864
|
grow: !0,
|
|
23856
|
-
children: [/* @__PURE__ */ Q(
|
|
23865
|
+
children: [/* @__PURE__ */ Q(GR, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(GR, { className: "h-3 w-2/3" })]
|
|
23857
23866
|
})]
|
|
23858
23867
|
}) }, e))
|
|
23859
|
-
}),
|
|
23868
|
+
}), QR = ({ count: e, schema: t }) => {
|
|
23860
23869
|
let n = !!(t?.descriptionRequired || t?.descriptionOptional), r = t?.left;
|
|
23861
|
-
return /* @__PURE__ */ Q(
|
|
23870
|
+
return /* @__PURE__ */ Q(JR, { children: /* @__PURE__ */ Q(Zn, {
|
|
23862
23871
|
display: "flex",
|
|
23863
23872
|
flexDirection: "column",
|
|
23864
23873
|
gap: "md",
|
|
23865
|
-
children:
|
|
23874
|
+
children: YR(e).map((e) => /* @__PURE__ */ $(Zn, {
|
|
23866
23875
|
display: "flex",
|
|
23867
23876
|
alignItems: "center",
|
|
23868
23877
|
gap: "md",
|
|
23869
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
23878
|
+
children: [r ? /* @__PURE__ */ Q(GR, { className: W("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(Zn, {
|
|
23870
23879
|
display: "flex",
|
|
23871
23880
|
flexDirection: "column",
|
|
23872
23881
|
gap: "xs",
|
|
23873
23882
|
grow: !0,
|
|
23874
|
-
children: [/* @__PURE__ */ Q(
|
|
23883
|
+
children: [/* @__PURE__ */ Q(GR, { className: W("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(GR, { className: "h-3 w-1/3" }) : null]
|
|
23875
23884
|
})]
|
|
23876
23885
|
}, e))
|
|
23877
23886
|
}) });
|
|
23878
|
-
},
|
|
23887
|
+
}, $R = ({ count: e }) => /* @__PURE__ */ Q(Zn, {
|
|
23879
23888
|
display: "flex",
|
|
23880
23889
|
flexDirection: "column",
|
|
23881
23890
|
gap: "md",
|
|
23882
|
-
children:
|
|
23891
|
+
children: YR(e).map((e) => /* @__PURE__ */ $("div", {
|
|
23883
23892
|
className: "flex flex-row items-stretch gap-4 rounded-xl border border-solid border-f1-border-secondary p-4",
|
|
23884
|
-
children: [/* @__PURE__ */ Q(
|
|
23893
|
+
children: [/* @__PURE__ */ Q(GR, { className: "aspect-video w-40 shrink-0 self-start rounded-md sm:w-64" }), /* @__PURE__ */ $(Zn, {
|
|
23885
23894
|
display: "flex",
|
|
23886
23895
|
flexDirection: "column",
|
|
23887
23896
|
gap: "sm",
|
|
23888
23897
|
grow: !0,
|
|
23889
23898
|
children: [
|
|
23890
|
-
/* @__PURE__ */ Q(
|
|
23891
|
-
/* @__PURE__ */ Q(
|
|
23892
|
-
/* @__PURE__ */ Q(
|
|
23899
|
+
/* @__PURE__ */ Q(GR, { className: "h-5 w-3/4" }),
|
|
23900
|
+
/* @__PURE__ */ Q(GR, { className: "h-3 w-full" }),
|
|
23901
|
+
/* @__PURE__ */ Q(GR, { className: "h-3 w-5/6" }),
|
|
23893
23902
|
/* @__PURE__ */ $(Zn, {
|
|
23894
23903
|
display: "flex",
|
|
23895
23904
|
alignItems: "center",
|
|
23896
23905
|
gap: "md",
|
|
23897
23906
|
paddingTop: "sm",
|
|
23898
|
-
children: [/* @__PURE__ */ Q(
|
|
23907
|
+
children: [/* @__PURE__ */ Q(GR, { className: "h-8 w-8 shrink-0 rounded-full" }), /* @__PURE__ */ Q(GR, { className: "h-3 w-24" })]
|
|
23899
23908
|
})
|
|
23900
23909
|
]
|
|
23901
23910
|
})]
|
|
23902
23911
|
}, e))
|
|
23903
|
-
}),
|
|
23912
|
+
}), ez = ({ count: e }) => /* @__PURE__ */ Q(WR, { cards: YR(e).map((e) => /* @__PURE__ */ Q(YL, { children: /* @__PURE__ */ Q(JR, {
|
|
23904
23913
|
fullHeight: !0,
|
|
23905
23914
|
children: /* @__PURE__ */ $(Zn, {
|
|
23906
23915
|
display: "flex",
|
|
@@ -23910,53 +23919,53 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23910
23919
|
display: "flex",
|
|
23911
23920
|
alignItems: "center",
|
|
23912
23921
|
gap: "md",
|
|
23913
|
-
children: [/* @__PURE__ */ Q(
|
|
23914
|
-
}), /* @__PURE__ */ Q(
|
|
23922
|
+
children: [/* @__PURE__ */ Q(GR, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(GR, { className: "h-4 w-24" })]
|
|
23923
|
+
}), /* @__PURE__ */ Q(GR, { className: "h-7 w-20" })]
|
|
23915
23924
|
})
|
|
23916
|
-
}) }, e)) }),
|
|
23925
|
+
}) }, e)) }), tz = ({ count: e }) => /* @__PURE__ */ Q(JR, { children: /* @__PURE__ */ Q(Zn, {
|
|
23917
23926
|
display: "flex",
|
|
23918
23927
|
flexDirection: "column",
|
|
23919
|
-
children:
|
|
23928
|
+
children: YR(e).map((t) => /* @__PURE__ */ $(Zn, {
|
|
23920
23929
|
display: "flex",
|
|
23921
23930
|
gap: "md",
|
|
23922
23931
|
children: [/* @__PURE__ */ $(Zn, {
|
|
23923
23932
|
display: "flex",
|
|
23924
23933
|
flexDirection: "column",
|
|
23925
23934
|
alignItems: "center",
|
|
23926
|
-
children: [/* @__PURE__ */ Q(
|
|
23935
|
+
children: [/* @__PURE__ */ Q(GR, { 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]
|
|
23927
23936
|
}), /* @__PURE__ */ $(Zn, {
|
|
23928
23937
|
display: "flex",
|
|
23929
23938
|
flexDirection: "column",
|
|
23930
23939
|
gap: "xs",
|
|
23931
23940
|
grow: !0,
|
|
23932
23941
|
paddingBottom: t < e - 1 ? "md" : void 0,
|
|
23933
|
-
children: [/* @__PURE__ */ Q(
|
|
23942
|
+
children: [/* @__PURE__ */ Q(GR, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(GR, { className: "h-3 w-1/3" })]
|
|
23934
23943
|
})]
|
|
23935
23944
|
}, t))
|
|
23936
|
-
}) }),
|
|
23945
|
+
}) }), nz = ({ count: e }) => /* @__PURE__ */ Q(JR, { children: /* @__PURE__ */ Q(Zn, {
|
|
23937
23946
|
display: "flex",
|
|
23938
23947
|
flexDirection: "column",
|
|
23939
23948
|
gap: "md",
|
|
23940
|
-
children:
|
|
23941
|
-
}) }),
|
|
23949
|
+
children: YR(e).map((e) => /* @__PURE__ */ Q(GR, { className: W("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
|
|
23950
|
+
}) }), rz = (e, t) => {
|
|
23942
23951
|
switch (e.type) {
|
|
23943
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
23944
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
23945
|
-
case "list": return /* @__PURE__ */ Q(
|
|
23952
|
+
case "stats": return /* @__PURE__ */ Q(ez, { count: t });
|
|
23953
|
+
case "charts": return /* @__PURE__ */ Q(XR, { count: t });
|
|
23954
|
+
case "list": return /* @__PURE__ */ Q(QR, {
|
|
23946
23955
|
count: t,
|
|
23947
23956
|
schema: e.display?.schema
|
|
23948
23957
|
});
|
|
23949
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
23950
|
-
case "events": return /* @__PURE__ */ Q(
|
|
23951
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
23952
|
-
case "widget": return /* @__PURE__ */ Q(
|
|
23958
|
+
case "timeline": return /* @__PURE__ */ Q(tz, { count: t });
|
|
23959
|
+
case "events": return /* @__PURE__ */ Q(ZR, { count: t });
|
|
23960
|
+
case "posts": return /* @__PURE__ */ Q($R, { count: t });
|
|
23961
|
+
case "widget": return /* @__PURE__ */ Q(nz, { count: t });
|
|
23953
23962
|
}
|
|
23954
|
-
},
|
|
23963
|
+
}, iz = ({ element: e }) => /* @__PURE__ */ Q("div", {
|
|
23955
23964
|
"aria-busy": "true",
|
|
23956
23965
|
"aria-live": "polite",
|
|
23957
23966
|
"data-agentic-skeleton": e.type,
|
|
23958
|
-
children:
|
|
23959
|
-
}),
|
|
23967
|
+
children: rz(e, SL(e))
|
|
23968
|
+
}), az = (e) => {
|
|
23960
23969
|
switch (e.type) {
|
|
23961
23970
|
case "stats": return e.stats.length === 0;
|
|
23962
23971
|
case "charts": return e.charts.length === 0;
|
|
@@ -23965,7 +23974,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23965
23974
|
case "events": return e.events.length === 0;
|
|
23966
23975
|
case "posts": return e.posts.length === 0;
|
|
23967
23976
|
}
|
|
23968
|
-
},
|
|
23977
|
+
}, oz = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && KL(e, t) && az(t.block), sz = (e, t) => {
|
|
23969
23978
|
let n = {
|
|
23970
23979
|
...t,
|
|
23971
23980
|
empty: e.display?.empty ?? t.empty
|
|
@@ -23984,67 +23993,67 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23984
23993
|
format: r
|
|
23985
23994
|
}))
|
|
23986
23995
|
} : n;
|
|
23987
|
-
},
|
|
23988
|
-
let n =
|
|
23989
|
-
return t ? /* @__PURE__ */ Q(
|
|
23996
|
+
}, cz = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && KL(e, t) ? sz(e, t.block) : void 0, lz = sl(void 0), uz = lz.Provider, dz = () => fl(lz), fz = ({ widget: e, bare: t = !1 }) => {
|
|
23997
|
+
let n = dz();
|
|
23998
|
+
return t ? /* @__PURE__ */ Q(dI, {
|
|
23990
23999
|
headless: !0,
|
|
23991
24000
|
slots: e.slots,
|
|
23992
24001
|
loading: e.loading,
|
|
23993
24002
|
slotRenderers: n
|
|
23994
|
-
}) : /* @__PURE__ */ Q(
|
|
23995
|
-
...
|
|
24003
|
+
}) : /* @__PURE__ */ Q(fI, {
|
|
24004
|
+
...OF(e),
|
|
23996
24005
|
headless: !0,
|
|
23997
24006
|
params: e.params,
|
|
23998
24007
|
slots: e.slots,
|
|
23999
24008
|
loading: e.loading,
|
|
24000
24009
|
slotRenderers: n
|
|
24001
24010
|
});
|
|
24002
|
-
},
|
|
24003
|
-
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(
|
|
24011
|
+
}, pz = ({ element: e, state: t, onAction: n, lead: r }) => {
|
|
24012
|
+
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(HR, {
|
|
24004
24013
|
block: e,
|
|
24005
24014
|
elementId: e.id,
|
|
24006
24015
|
onAction: n,
|
|
24007
24016
|
lead: r
|
|
24008
24017
|
});
|
|
24009
|
-
if (!t || t.status === "loading") return /* @__PURE__ */ Q(
|
|
24010
|
-
if (t.status === "error") return /* @__PURE__ */ Q(
|
|
24011
|
-
if (!
|
|
24012
|
-
if (t.widget) return /* @__PURE__ */ Q(
|
|
24018
|
+
if (!t || t.status === "loading") return /* @__PURE__ */ Q(iz, { element: e });
|
|
24019
|
+
if (t.status === "error") return /* @__PURE__ */ Q(vL, { message: t.message });
|
|
24020
|
+
if (!KL(e, t)) return /* @__PURE__ */ Q(vL, {});
|
|
24021
|
+
if (t.widget) return /* @__PURE__ */ Q(fz, {
|
|
24013
24022
|
widget: t.widget,
|
|
24014
24023
|
bare: t.bare
|
|
24015
24024
|
});
|
|
24016
|
-
if (e.type === "widget") return /* @__PURE__ */ Q(
|
|
24017
|
-
let i =
|
|
24018
|
-
return
|
|
24025
|
+
if (e.type === "widget") return /* @__PURE__ */ Q(vL, {});
|
|
24026
|
+
let i = sz(e, t.block);
|
|
24027
|
+
return az(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(_L, {
|
|
24019
24028
|
empty: i.empty,
|
|
24020
24029
|
elementId: e.id,
|
|
24021
24030
|
onAction: n
|
|
24022
|
-
}) : /* @__PURE__ */ Q(
|
|
24031
|
+
}) : /* @__PURE__ */ Q(HR, {
|
|
24023
24032
|
block: i,
|
|
24024
24033
|
elementId: e.id,
|
|
24025
24034
|
onAction: n
|
|
24026
24035
|
});
|
|
24027
|
-
},
|
|
24036
|
+
}, mz = "agentic-list-stack", hz = ({ title: e }) => /* @__PURE__ */ Q(Zn, {
|
|
24028
24037
|
paddingY: "sm",
|
|
24029
24038
|
children: /* @__PURE__ */ Q($n, {
|
|
24030
24039
|
variant: "description",
|
|
24031
24040
|
content: e
|
|
24032
24041
|
})
|
|
24033
|
-
}),
|
|
24034
|
-
...
|
|
24035
|
-
...
|
|
24036
|
-
},
|
|
24042
|
+
}), gz = {
|
|
24043
|
+
...XF,
|
|
24044
|
+
...kR
|
|
24045
|
+
}, _z = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
|
|
24037
24046
|
className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
|
|
24038
24047
|
children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
|
|
24039
24048
|
className: W("px-4", n.visualization === "agentic-stats" ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
|
|
24040
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
24049
|
+
children: [r ? /* @__PURE__ */ Q(hz, { title: r }) : null, vF(gz[n.visualization])?.render(n.params, {
|
|
24041
24050
|
...t,
|
|
24042
24051
|
isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
|
|
24043
24052
|
isLastSlot: t.isLastSlot && i === e.length - 1
|
|
24044
24053
|
})]
|
|
24045
24054
|
}, i))
|
|
24046
|
-
}),
|
|
24047
|
-
let r =
|
|
24055
|
+
}), vz = (e) => e.type === "list" && !e.bare || e.type === "stats", yz = (e, t) => e.reduce((e, n) => {
|
|
24056
|
+
let r = cz(n, t?.[n.id]), i = r && vz(r) && !az(r) ? {
|
|
24048
24057
|
elementId: n.id,
|
|
24049
24058
|
block: r
|
|
24050
24059
|
} : void 0, a = e.at(-1);
|
|
@@ -24056,32 +24065,32 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24056
24065
|
element: n,
|
|
24057
24066
|
member: i
|
|
24058
24067
|
}), e;
|
|
24059
|
-
}, []),
|
|
24060
|
-
if (t.type === "stats") return [{ slot:
|
|
24068
|
+
}, []), bz = ({ elementId: e, block: t }, n, r) => {
|
|
24069
|
+
if (t.type === "stats") return [{ slot: wR(t.stats, e, r) }];
|
|
24061
24070
|
let i = n > 0 ? t.title : void 0;
|
|
24062
|
-
return
|
|
24071
|
+
return _R(t, e, r).map((e, t) => ({
|
|
24063
24072
|
slot: e,
|
|
24064
24073
|
header: t === 0 ? i : void 0
|
|
24065
24074
|
}));
|
|
24066
|
-
},
|
|
24075
|
+
}, xz = { [mz]: (e, t) => /* @__PURE__ */ Q(_z, {
|
|
24067
24076
|
entries: e,
|
|
24068
24077
|
ctx: t
|
|
24069
|
-
}) },
|
|
24078
|
+
}) }, Sz = ({ members: e, onAction: t }) => {
|
|
24070
24079
|
let n = e[0]?.block;
|
|
24071
|
-
return /* @__PURE__ */ Q(
|
|
24080
|
+
return /* @__PURE__ */ Q(pL, {
|
|
24072
24081
|
title: n?.type === "list" ? n.title : void 0,
|
|
24073
24082
|
slots: [{
|
|
24074
|
-
visualization:
|
|
24075
|
-
params: e.flatMap((e, n) =>
|
|
24083
|
+
visualization: mz,
|
|
24084
|
+
params: e.flatMap((e, n) => bz(e, n, t))
|
|
24076
24085
|
}],
|
|
24077
|
-
slotRenderers:
|
|
24086
|
+
slotRenderers: xz
|
|
24078
24087
|
});
|
|
24079
|
-
},
|
|
24088
|
+
}, Cz = ({ items: e, onAction: t }) => {
|
|
24080
24089
|
let n = U();
|
|
24081
24090
|
return /* @__PURE__ */ Q(ao, {
|
|
24082
24091
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
24083
24092
|
label: e.label,
|
|
24084
|
-
icon:
|
|
24093
|
+
icon: lL(e.icon),
|
|
24085
24094
|
critical: e.critical,
|
|
24086
24095
|
onClick: () => t(e.action, {})
|
|
24087
24096
|
}),
|
|
@@ -24093,12 +24102,12 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24093
24102
|
label: n.actions.more
|
|
24094
24103
|
})
|
|
24095
24104
|
});
|
|
24096
|
-
},
|
|
24105
|
+
}, wz = sl(void 0), Tz = wz.Provider, Ez = () => fl(wz), Dz = /\*\*(.+?)\*\*/g, Oz = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(Dz).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
|
|
24097
24106
|
className: "font-medium",
|
|
24098
24107
|
children: e
|
|
24099
|
-
}, t) : e) }),
|
|
24108
|
+
}, t) : e) }), kz = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, Az = (e) => {
|
|
24100
24109
|
let t = [], n = 0;
|
|
24101
|
-
for (let r of e.matchAll(
|
|
24110
|
+
for (let r of e.matchAll(kz)) {
|
|
24102
24111
|
let [i, a, o, s] = r, c = r.index ?? 0;
|
|
24103
24112
|
c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
|
|
24104
24113
|
type: o,
|
|
@@ -24107,48 +24116,48 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24107
24116
|
} }), n = c + i.length;
|
|
24108
24117
|
}
|
|
24109
24118
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
24110
|
-
},
|
|
24119
|
+
}, jz = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: OI(e).map((e, t) => /* @__PURE__ */ Q(il, { children: "href" in e ? /* @__PURE__ */ Q(Pr, {
|
|
24111
24120
|
href: e.href,
|
|
24112
24121
|
children: e.label
|
|
24113
|
-
}) : /* @__PURE__ */ Q(
|
|
24114
|
-
let t =
|
|
24115
|
-
return /* @__PURE__ */ Q(Z, { children:
|
|
24116
|
-
},
|
|
24122
|
+
}) : /* @__PURE__ */ Q(Oz, { text: e.text }) }, t)) }), Mz = ({ text: e }) => {
|
|
24123
|
+
let t = Ez();
|
|
24124
|
+
return /* @__PURE__ */ Q(Z, { children: Az(e).map((e, n) => /* @__PURE__ */ Q(il, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(jz, { text: e.text }) }, n)) });
|
|
24125
|
+
}, Nz = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(Mz, { text: e }) }, t)) }), Pz = /^\d+\.\s+/, Fz = /^[-*]\s+/, Iz = (e) => Pz.test(e) ? "ol" : Fz.test(e) ? "ul" : "p", Lz = (e, t) => {
|
|
24117
24126
|
let n = e.at(-1);
|
|
24118
24127
|
t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
|
|
24119
24128
|
kind: "p",
|
|
24120
24129
|
text: t
|
|
24121
24130
|
});
|
|
24122
|
-
},
|
|
24123
|
-
let r = e.at(-1), i = n.replace(t === "ol" ?
|
|
24131
|
+
}, Rz = (e, t, n) => {
|
|
24132
|
+
let r = e.at(-1), i = n.replace(t === "ol" ? Pz : Fz, "");
|
|
24124
24133
|
r?.kind === t ? r.items.push(i) : e.push({
|
|
24125
24134
|
kind: t,
|
|
24126
24135
|
items: [i]
|
|
24127
24136
|
});
|
|
24128
|
-
},
|
|
24137
|
+
}, zz = (e) => {
|
|
24129
24138
|
let t = [];
|
|
24130
24139
|
for (let n of e.split("\n").map((e) => e.trim())) {
|
|
24131
|
-
let e =
|
|
24132
|
-
e === "p" ?
|
|
24140
|
+
let e = Iz(n);
|
|
24141
|
+
e === "p" ? Lz(t, n) : Rz(t, e, n);
|
|
24133
24142
|
}
|
|
24134
24143
|
return t.filter((e) => e.kind !== "p" || e.text);
|
|
24135
|
-
},
|
|
24144
|
+
}, Bz = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
24136
24145
|
className: "flex flex-col gap-2 text-lg text-f1-foreground",
|
|
24137
|
-
children:
|
|
24146
|
+
children: zz(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(Mz, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
|
|
24138
24147
|
className: "m-0 list-decimal space-y-1 pl-5",
|
|
24139
|
-
children: /* @__PURE__ */ Q(
|
|
24148
|
+
children: /* @__PURE__ */ Q(Nz, { items: e.items })
|
|
24140
24149
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
24141
24150
|
className: "m-0 list-disc space-y-1 pl-5",
|
|
24142
|
-
children: /* @__PURE__ */ Q(
|
|
24151
|
+
children: /* @__PURE__ */ Q(Nz, { items: e.items })
|
|
24143
24152
|
}, t))
|
|
24144
|
-
}),
|
|
24153
|
+
}), Vz = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(Vt, {
|
|
24145
24154
|
as: "h2",
|
|
24146
24155
|
variant: "heading-large",
|
|
24147
24156
|
content: e
|
|
24148
24157
|
}) : /* @__PURE__ */ Q("h2", {
|
|
24149
24158
|
className: W("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
|
|
24150
24159
|
children: e
|
|
24151
|
-
}),
|
|
24160
|
+
}), Hz = ({ section: e, size: t, composer: n, onAction: r }) => {
|
|
24152
24161
|
let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
|
|
24153
24162
|
return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(Zn, {
|
|
24154
24163
|
display: "flex",
|
|
@@ -24170,43 +24179,43 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24170
24179
|
alignItems: "start",
|
|
24171
24180
|
justifyContent: e.title ? "between" : "end",
|
|
24172
24181
|
gap: "md",
|
|
24173
|
-
children: [e.title ? /* @__PURE__ */ Q(
|
|
24182
|
+
children: [e.title ? /* @__PURE__ */ Q(Vz, {
|
|
24174
24183
|
title: e.title,
|
|
24175
24184
|
size: t
|
|
24176
|
-
}) : null, a ? /* @__PURE__ */ Q(
|
|
24185
|
+
}) : null, a ? /* @__PURE__ */ Q(Cz, {
|
|
24177
24186
|
items: a,
|
|
24178
24187
|
onAction: r
|
|
24179
24188
|
}) : null]
|
|
24180
24189
|
}) : null]
|
|
24181
24190
|
}),
|
|
24182
24191
|
n,
|
|
24183
|
-
e.text ? /* @__PURE__ */ Q(
|
|
24192
|
+
e.text ? /* @__PURE__ */ Q(Bz, { text: e.text }) : null
|
|
24184
24193
|
]
|
|
24185
24194
|
});
|
|
24186
|
-
},
|
|
24195
|
+
}, Uz = (e, t) => e.elements.length > 0 && e.elements.every((e) => oz(e, t?.[e.id])), Wz = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
|
|
24187
24196
|
let a = (t, r) => n(t, {
|
|
24188
24197
|
...r,
|
|
24189
24198
|
sectionId: e.id
|
|
24190
|
-
}), o =
|
|
24199
|
+
}), o = Uz(e, t);
|
|
24191
24200
|
return o && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
|
|
24192
24201
|
id: e.id,
|
|
24193
24202
|
"aria-label": e.title,
|
|
24194
24203
|
tabIndex: -1,
|
|
24195
24204
|
className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
|
|
24196
24205
|
children: [
|
|
24197
|
-
/* @__PURE__ */ Q(
|
|
24206
|
+
/* @__PURE__ */ Q(Hz, {
|
|
24198
24207
|
section: e,
|
|
24199
24208
|
size: r,
|
|
24200
24209
|
composer: i,
|
|
24201
24210
|
onAction: a
|
|
24202
24211
|
}),
|
|
24203
|
-
o && e.empty ? /* @__PURE__ */ Q(
|
|
24212
|
+
o && e.empty ? /* @__PURE__ */ Q(_L, {
|
|
24204
24213
|
empty: e.empty,
|
|
24205
24214
|
onAction: a
|
|
24206
|
-
}) :
|
|
24215
|
+
}) : yz(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(Sz, {
|
|
24207
24216
|
members: e.members,
|
|
24208
24217
|
onAction: a
|
|
24209
|
-
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(
|
|
24218
|
+
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(pz, {
|
|
24210
24219
|
element: e.element,
|
|
24211
24220
|
state: t?.[e.element.id],
|
|
24212
24221
|
onAction: a,
|
|
@@ -24218,16 +24227,16 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24218
24227
|
gap: "sm",
|
|
24219
24228
|
children: e.followUps.map((e, t) => /* @__PURE__ */ Q(z, {
|
|
24220
24229
|
size: "md",
|
|
24221
|
-
...
|
|
24230
|
+
...fL(e, {}, a),
|
|
24222
24231
|
variant: e.variant ?? "neutral"
|
|
24223
24232
|
}, t))
|
|
24224
24233
|
}) : null
|
|
24225
24234
|
]
|
|
24226
24235
|
});
|
|
24227
|
-
},
|
|
24236
|
+
}, Gz = (e, t) => {
|
|
24228
24237
|
let [n, ...r] = e ?? [], i = (e) => ({
|
|
24229
24238
|
label: e.label,
|
|
24230
|
-
icon:
|
|
24239
|
+
icon: lL(e.icon),
|
|
24231
24240
|
onClick: () => t(e)
|
|
24232
24241
|
});
|
|
24233
24242
|
return {
|
|
@@ -24240,19 +24249,19 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24240
24249
|
value: String(t)
|
|
24241
24250
|
})) : r[0] ? i(r[0]) : void 0
|
|
24242
24251
|
};
|
|
24243
|
-
},
|
|
24244
|
-
let n =
|
|
24245
|
-
return !t || t.status === "loading" ? /* @__PURE__ */ Q(
|
|
24252
|
+
}, Kz = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), qz = ({ element: e, state: t }) => {
|
|
24253
|
+
let n = dz();
|
|
24254
|
+
return !t || t.status === "loading" ? /* @__PURE__ */ Q(iz, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(vL, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(dI, {
|
|
24246
24255
|
slots: t.widget.slots,
|
|
24247
24256
|
loading: t.widget.loading,
|
|
24248
24257
|
slotRenderers: n
|
|
24249
|
-
}) : /* @__PURE__ */ Q(
|
|
24250
|
-
},
|
|
24258
|
+
}) : /* @__PURE__ */ Q(vL, {});
|
|
24259
|
+
}, Jz = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
|
|
24251
24260
|
let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
|
|
24252
24261
|
...r,
|
|
24253
24262
|
accessoryViewId: e.id,
|
|
24254
24263
|
...l ? { accessoryViewParams: t } : {}
|
|
24255
|
-
}), d =
|
|
24264
|
+
}), d = Gz(e.actions, (e) => {
|
|
24256
24265
|
o(), u(e.action, {});
|
|
24257
24266
|
});
|
|
24258
24267
|
return /* @__PURE__ */ Q(ha, {
|
|
@@ -24264,29 +24273,29 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24264
24273
|
description: e.description,
|
|
24265
24274
|
disableContentPadding: i,
|
|
24266
24275
|
...d,
|
|
24267
|
-
children: e.widget ? /* @__PURE__ */ Q(
|
|
24276
|
+
children: e.widget ? /* @__PURE__ */ Q(qz, {
|
|
24268
24277
|
element: e.widget,
|
|
24269
24278
|
state: s?.[e.widget.id]
|
|
24270
|
-
},
|
|
24279
|
+
}, Kz(e.id, t)) : /* @__PURE__ */ Q(Zn, {
|
|
24271
24280
|
display: "flex",
|
|
24272
24281
|
flexDirection: "column",
|
|
24273
24282
|
gap: "3xl",
|
|
24274
|
-
children: e.sections.map((e) => /* @__PURE__ */ Q(
|
|
24283
|
+
children: e.sections.map((e) => /* @__PURE__ */ Q(Wz, {
|
|
24275
24284
|
size: "accessory",
|
|
24276
24285
|
section: e,
|
|
24277
24286
|
sources: s,
|
|
24278
24287
|
onAction: u
|
|
24279
24288
|
}, e.id))
|
|
24280
|
-
},
|
|
24289
|
+
}, Kz(e.id, t))
|
|
24281
24290
|
});
|
|
24282
|
-
},
|
|
24291
|
+
}, Yz = 150, Xz = 150, Zz = {
|
|
24283
24292
|
neutral: "bg-f1-background-inverse",
|
|
24284
24293
|
accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
24285
24294
|
critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
|
|
24286
24295
|
warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
|
|
24287
24296
|
promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
|
|
24288
24297
|
positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
|
|
24289
|
-
},
|
|
24298
|
+
}, Qz = "inverse", $z = ({ clockIn: e }) => {
|
|
24290
24299
|
let { caption: t, text: n, ticking: r, icon: i, action: a, tone: o, title: s, content: c } = e, l = sn(), [u, d] = X(!1), f = Y(null), p = Y(null), m = Y(!1), h = pl(), g = () => {
|
|
24291
24300
|
f.current && clearTimeout(f.current), f.current = null;
|
|
24292
24301
|
}, _ = (e, t) => {
|
|
@@ -24294,8 +24303,8 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24294
24303
|
};
|
|
24295
24304
|
return q(() => g, []), /* @__PURE__ */ $("div", {
|
|
24296
24305
|
className: "relative",
|
|
24297
|
-
onMouseEnter: () => u ? g() : _(!0,
|
|
24298
|
-
onMouseLeave: () => _(!1,
|
|
24306
|
+
onMouseEnter: () => u ? g() : _(!0, Yz),
|
|
24307
|
+
onMouseLeave: () => _(!1, Xz),
|
|
24299
24308
|
onFocus: () => {
|
|
24300
24309
|
g(), m.current ? m.current = !1 : d(!0);
|
|
24301
24310
|
},
|
|
@@ -24310,7 +24319,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24310
24319
|
children: [t ? /* @__PURE__ */ Q("span", {
|
|
24311
24320
|
className: "text-sm text-f1-foreground-secondary",
|
|
24312
24321
|
children: t
|
|
24313
|
-
}) : null, /* @__PURE__ */ Q(
|
|
24322
|
+
}) : null, /* @__PURE__ */ Q(ZF, {
|
|
24314
24323
|
text: n,
|
|
24315
24324
|
ticking: !!r,
|
|
24316
24325
|
className: "text-base font-medium text-f1-foreground"
|
|
@@ -24323,13 +24332,13 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24323
24332
|
type: "button",
|
|
24324
24333
|
variant: "ghost",
|
|
24325
24334
|
size: "lg",
|
|
24326
|
-
className: W("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0",
|
|
24335
|
+
className: W("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", Zz[o ?? "accent"]),
|
|
24327
24336
|
"aria-label": a.label,
|
|
24328
24337
|
"aria-controls": u ? h : void 0,
|
|
24329
24338
|
onClick: () => a.onClick(),
|
|
24330
24339
|
children: /* @__PURE__ */ Q(V, {
|
|
24331
24340
|
size: "lg",
|
|
24332
|
-
color:
|
|
24341
|
+
color: Qz,
|
|
24333
24342
|
icon: u ? a.icon : i ?? tr
|
|
24334
24343
|
})
|
|
24335
24344
|
})
|
|
@@ -24361,7 +24370,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24361
24370
|
})
|
|
24362
24371
|
}) : null })]
|
|
24363
24372
|
});
|
|
24364
|
-
},
|
|
24373
|
+
}, eB = cl(function({ children: e }, t) {
|
|
24365
24374
|
return /* @__PURE__ */ Q("div", {
|
|
24366
24375
|
ref: t,
|
|
24367
24376
|
className: "-m-1 p-1",
|
|
@@ -24370,7 +24379,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24370
24379
|
children: e
|
|
24371
24380
|
})
|
|
24372
24381
|
});
|
|
24373
|
-
}),
|
|
24382
|
+
}), tB = ({ greeting: e }) => /* @__PURE__ */ $(Zn, {
|
|
24374
24383
|
display: "flex",
|
|
24375
24384
|
flexDirection: "column",
|
|
24376
24385
|
gap: "xs",
|
|
@@ -24382,13 +24391,13 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24382
24391
|
variant: "description",
|
|
24383
24392
|
content: e.subtitle
|
|
24384
24393
|
}) : null]
|
|
24385
|
-
}),
|
|
24386
|
-
let r = n - t -
|
|
24387
|
-
return r <=
|
|
24388
|
-
},
|
|
24394
|
+
}), nB = 180, rB = 396, iB = 8, aB = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
|
|
24395
|
+
let r = n - t - iB;
|
|
24396
|
+
return r <= iB ? iB : Math.min(Math.max(e - t / 2, iB), r);
|
|
24397
|
+
}, oB = ({ widgets: e, slotRenderers: t, clock: n, onAdd: r, onRemove: i, onChangeParams: a }) => {
|
|
24389
24398
|
let o = U(), s = pl(), c = Y(null), l = Y(null), u = Y(null), [d, f] = X(null), [p, m] = X(null), [h, g] = X(!1), [_, v] = X(0), y = () => {
|
|
24390
24399
|
u.current && clearTimeout(u.current), u.current = null;
|
|
24391
|
-
}, b = (e =
|
|
24400
|
+
}, b = (e = nB) => {
|
|
24392
24401
|
y(), u.current = setTimeout(() => f(null), e);
|
|
24393
24402
|
}, x = (e, t) => {
|
|
24394
24403
|
y();
|
|
@@ -24405,13 +24414,13 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24405
24414
|
let t = new ResizeObserver(() => v(e.offsetHeight));
|
|
24406
24415
|
return t.observe(e), () => t.disconnect();
|
|
24407
24416
|
}, []);
|
|
24408
|
-
let S = (t) => e.some((e) => e.id === t), C = S(d) ? d : null, w =
|
|
24417
|
+
let S = (t) => e.some((e) => e.id === t), C = S(d) ? d : null, w = ZI({
|
|
24409
24418
|
collapsed: !0,
|
|
24410
24419
|
open: C != null,
|
|
24411
24420
|
glide: h,
|
|
24412
24421
|
drawn: !0,
|
|
24413
|
-
width:
|
|
24414
|
-
}), T = C ?? (!w.panelHidden && p && S(p.id) ? p.id : null), E = e.find((e) => e.id === T), D = p ?
|
|
24422
|
+
width: rB
|
|
24423
|
+
}), T = C ?? (!w.panelHidden && p && S(p.id) ? p.id : null), E = e.find((e) => e.id === T), D = p ? aB({
|
|
24415
24424
|
glyphCenter: p.center,
|
|
24416
24425
|
panelHeight: _,
|
|
24417
24426
|
railHeight: p.railHeight
|
|
@@ -24433,7 +24442,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24433
24442
|
className: "my-auto hidden flex-col items-end gap-2 md:flex",
|
|
24434
24443
|
onMouseEnter: y,
|
|
24435
24444
|
onMouseLeave: () => b(),
|
|
24436
|
-
children: [e.map((e, t) => /* @__PURE__ */ Q(
|
|
24445
|
+
children: [e.map((e, t) => /* @__PURE__ */ Q(aI, {
|
|
24437
24446
|
look: "ghost",
|
|
24438
24447
|
widget: e,
|
|
24439
24448
|
order: t,
|
|
@@ -24467,7 +24476,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24467
24476
|
ref: l,
|
|
24468
24477
|
id: s,
|
|
24469
24478
|
role: "group",
|
|
24470
|
-
"aria-label": E ?
|
|
24479
|
+
"aria-label": E ? TF(E) : void 0,
|
|
24471
24480
|
hidden: w.panelHidden,
|
|
24472
24481
|
className: W("absolute right-[68px] top-0 z-20 max-h-[calc(100%-1rem)] w-[396px] max-w-[calc(100vw-6rem)] overflow-y-auto overflow-x-hidden rounded-xl bg-f1-background shadow-lg [scrollbar-width:none] dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150 [&::-webkit-scrollbar]:hidden", C ? "pointer-events-auto" : "pointer-events-none"),
|
|
24473
24482
|
style: { transformOrigin: RP },
|
|
@@ -24481,7 +24490,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24481
24490
|
transition: w.transition,
|
|
24482
24491
|
onMouseEnter: y,
|
|
24483
24492
|
onMouseLeave: () => b(),
|
|
24484
|
-
children: /* @__PURE__ */ Q(
|
|
24493
|
+
children: /* @__PURE__ */ Q(XI, {
|
|
24485
24494
|
side: "right",
|
|
24486
24495
|
widgets: e,
|
|
24487
24496
|
visibleWidgetId: T,
|
|
@@ -24491,24 +24500,24 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24491
24500
|
slotRenderers: t,
|
|
24492
24501
|
onRemoveWidget: i,
|
|
24493
24502
|
onChangeWidgetParams: a,
|
|
24494
|
-
paramsPreviewWidth:
|
|
24503
|
+
paramsPreviewWidth: rB
|
|
24495
24504
|
})
|
|
24496
24505
|
})
|
|
24497
24506
|
]
|
|
24498
24507
|
});
|
|
24499
|
-
},
|
|
24508
|
+
}, sB = (e, t, n) => {
|
|
24500
24509
|
let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
|
|
24501
24510
|
r?.scrollIntoView({
|
|
24502
24511
|
behavior: n ? "auto" : "smooth",
|
|
24503
24512
|
block: "start"
|
|
24504
24513
|
}), r?.focus({ preventScroll: !0 });
|
|
24505
|
-
},
|
|
24514
|
+
}, cB = (e) => {
|
|
24506
24515
|
let t = sn();
|
|
24507
|
-
return K((n) =>
|
|
24508
|
-
},
|
|
24516
|
+
return K((n) => sB(e, n, t), [e, t]);
|
|
24517
|
+
}, lB = (e, t, n) => {
|
|
24509
24518
|
let r = [], i = /* @__PURE__ */ new Map(), a = [];
|
|
24510
24519
|
for (let o of e.elements) {
|
|
24511
|
-
if (!
|
|
24520
|
+
if (!EL(t, o.type)) {
|
|
24512
24521
|
n.push({
|
|
24513
24522
|
rule: "allowedBlockTypes",
|
|
24514
24523
|
sectionId: e.id,
|
|
@@ -24517,7 +24526,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24517
24526
|
});
|
|
24518
24527
|
continue;
|
|
24519
24528
|
}
|
|
24520
|
-
let s =
|
|
24529
|
+
let s = TL(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
|
|
24521
24530
|
if (s !== void 0 && c.length >= s) {
|
|
24522
24531
|
n.push({
|
|
24523
24532
|
rule: "maxPerSection",
|
|
@@ -24528,14 +24537,14 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24528
24537
|
});
|
|
24529
24538
|
continue;
|
|
24530
24539
|
}
|
|
24531
|
-
let l = a.find((e) => !
|
|
24540
|
+
let l = a.find((e) => !kL(t, e, o.type));
|
|
24532
24541
|
l ? n.push({
|
|
24533
24542
|
rule: "combinesWith",
|
|
24534
24543
|
sectionId: e.id,
|
|
24535
24544
|
elementId: o.id,
|
|
24536
24545
|
blockType: o.type,
|
|
24537
24546
|
conflictsWith: l
|
|
24538
|
-
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ?
|
|
24547
|
+
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? DL(o, o.id, t, n) : OL(o, t)));
|
|
24539
24548
|
}
|
|
24540
24549
|
let o = t.maxElementsPerSection;
|
|
24541
24550
|
return o !== void 0 && r.length > o ? (n.push({
|
|
@@ -24550,14 +24559,14 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24550
24559
|
...e,
|
|
24551
24560
|
elements: r
|
|
24552
24561
|
};
|
|
24553
|
-
},
|
|
24562
|
+
}, uB = (e, t, n) => {
|
|
24554
24563
|
let r = e;
|
|
24555
24564
|
return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
|
|
24556
24565
|
rule: "maxSections",
|
|
24557
24566
|
limit: t.maxSections,
|
|
24558
24567
|
droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
|
|
24559
|
-
}), r = r.slice(0, t.maxSections)), r.map((e, r) =>
|
|
24560
|
-
},
|
|
24568
|
+
}), r = r.slice(0, t.maxSections)), r.map((e, r) => lB(e, AL(t, r === 0), n));
|
|
24569
|
+
}, dB = (e, t, n) => {
|
|
24561
24570
|
if (e.type !== "text" || !t.text) return;
|
|
24562
24571
|
let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
|
|
24563
24572
|
return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
|
|
@@ -24568,14 +24577,14 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24568
24577
|
...i === void 0 ? {} : { minLength: i },
|
|
24569
24578
|
...a === void 0 ? {} : { maxLength: a }
|
|
24570
24579
|
};
|
|
24571
|
-
},
|
|
24580
|
+
}, fB = (e, t, n) => {
|
|
24572
24581
|
let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
|
|
24573
24582
|
t.forEach((e, t) => {
|
|
24574
24583
|
let o = e.min ?? 1, s = e.max ?? 1, c = 0;
|
|
24575
24584
|
for (; c < s && a < r.length && e.types.includes(r[a].type);) {
|
|
24576
24585
|
let o = r[a];
|
|
24577
24586
|
a += 1, c += 1;
|
|
24578
|
-
let s =
|
|
24587
|
+
let s = dB(o, e, t);
|
|
24579
24588
|
s && (i.add(o.id), n.push(s));
|
|
24580
24589
|
}
|
|
24581
24590
|
c < o && n.push({
|
|
@@ -24594,59 +24603,59 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24594
24603
|
...e,
|
|
24595
24604
|
elements: e.elements.filter(({ id: e }) => !i.has(e))
|
|
24596
24605
|
}));
|
|
24597
|
-
},
|
|
24606
|
+
}, pB = (e) => typeof e == "object" && !!e, mB = (e) => {
|
|
24598
24607
|
let t = e.widget, n = Array.isArray(e.sections);
|
|
24599
|
-
return t === void 0 ? n ? "sections" : null :
|
|
24600
|
-
},
|
|
24601
|
-
if (!
|
|
24608
|
+
return t === void 0 ? n ? "sections" : null : pB(t) && t.type === "widget" && typeof t.id == "string" && pB(t.source) && !n ? "widget" : null;
|
|
24609
|
+
}, hB = (e, t, n) => {
|
|
24610
|
+
if (!mB(e)) return n.push({ rule: "accessoryViewBody" }), [];
|
|
24602
24611
|
let r = t.rules ?? {};
|
|
24603
|
-
if (e.widget) return
|
|
24612
|
+
if (e.widget) return EL(r, "widget") ? [e] : (n.push({
|
|
24604
24613
|
rule: "allowedBlockTypes",
|
|
24605
24614
|
sectionId: e.id,
|
|
24606
24615
|
elementId: e.widget.id,
|
|
24607
24616
|
blockType: "widget"
|
|
24608
24617
|
}), []);
|
|
24609
|
-
let i =
|
|
24618
|
+
let i = uB(e.sections, r, n), a = t.shape ? fB(i, t.shape, n) : i;
|
|
24610
24619
|
return [{
|
|
24611
24620
|
...e,
|
|
24612
24621
|
sections: a
|
|
24613
24622
|
}];
|
|
24614
|
-
},
|
|
24623
|
+
}, gB = (e, t, n) => e.flatMap((e) => {
|
|
24615
24624
|
let r = t.find((t) => t.type === e.type);
|
|
24616
24625
|
if (!r) return n.push({
|
|
24617
24626
|
rule: "accessoryViewType",
|
|
24618
24627
|
accessoryViewId: e.id,
|
|
24619
24628
|
viewType: e.type
|
|
24620
24629
|
}), [];
|
|
24621
|
-
let i = [], a =
|
|
24630
|
+
let i = [], a = hB(e, r, i);
|
|
24622
24631
|
return n.push(...i.map((t) => ({
|
|
24623
24632
|
...t,
|
|
24624
24633
|
accessoryViewId: e.id
|
|
24625
24634
|
}))), a;
|
|
24626
|
-
}),
|
|
24627
|
-
let r = [], i =
|
|
24635
|
+
}), _B = (e, t, n = []) => {
|
|
24636
|
+
let r = [], i = WL(uB(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
|
|
24628
24637
|
rule: "sectionTitle",
|
|
24629
24638
|
sectionId: e.id
|
|
24630
24639
|
}), !1)), t, r), r);
|
|
24631
24640
|
i.forEach((e, n) => {
|
|
24632
|
-
let i =
|
|
24633
|
-
for (let t of e.elements) t.type === "shortcuts" &&
|
|
24641
|
+
let i = AL(t, n === 0);
|
|
24642
|
+
for (let t of e.elements) t.type === "shortcuts" && bL(t, TL(i, t.type), {
|
|
24634
24643
|
sectionId: e.id,
|
|
24635
24644
|
elementId: t.id
|
|
24636
24645
|
}, r);
|
|
24637
24646
|
});
|
|
24638
|
-
let a = e.accessoryViews ?
|
|
24647
|
+
let a = e.accessoryViews ? gB(e.accessoryViews, n, r) : void 0, o = {
|
|
24639
24648
|
...e,
|
|
24640
24649
|
sections: i,
|
|
24641
24650
|
...a ? { accessoryViews: a } : {}
|
|
24642
24651
|
};
|
|
24643
24652
|
return {
|
|
24644
24653
|
spec: o,
|
|
24645
|
-
violations: [...r, ...
|
|
24654
|
+
violations: [...r, ...zL(o)]
|
|
24646
24655
|
};
|
|
24647
|
-
},
|
|
24656
|
+
}, vB = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
|
|
24648
24657
|
let a = J(() => {
|
|
24649
|
-
let i =
|
|
24658
|
+
let i = _B(e, n ?? {}, r), a = t ? JL(t, i.spec, n ?? {}, r) : {
|
|
24650
24659
|
sources: t,
|
|
24651
24660
|
violations: []
|
|
24652
24661
|
};
|
|
@@ -24669,7 +24678,7 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24669
24678
|
let e = JSON.parse(s);
|
|
24670
24679
|
e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
|
|
24671
24680
|
}, [s]), a;
|
|
24672
|
-
},
|
|
24681
|
+
}, yB = (e, t, n) => {
|
|
24673
24682
|
let r = Y(n);
|
|
24674
24683
|
q(() => {
|
|
24675
24684
|
r.current = n;
|
|
@@ -24684,114 +24693,121 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24684
24693
|
t,
|
|
24685
24694
|
i
|
|
24686
24695
|
]);
|
|
24687
|
-
},
|
|
24696
|
+
}, bB = (e, t) => {
|
|
24688
24697
|
let n = Object.keys(e.params);
|
|
24689
24698
|
return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
|
|
24690
|
-
},
|
|
24691
|
-
let { missingParams: n, undeclaredParams: r } =
|
|
24699
|
+
}, xB = (e, t) => {
|
|
24700
|
+
let { missingParams: n, undeclaredParams: r } = jL(e, t);
|
|
24692
24701
|
return n.length === 0 && r.length === 0;
|
|
24693
|
-
},
|
|
24694
|
-
let { spec:
|
|
24702
|
+
}, SB = {}, CB = (e, t, n, r) => !n || r && bB(r, t) ? e : SB, wB = "pt-[max(4rem,22vh)]", TB = "pb-40", EB = "pb-10", DB = cl(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, widgets: i = [], onClickAddWidget: a, onRemoveWidget: o, onChangeWidgetParams: s, sources: c, sourcesFor: l, onAccessoryViewOpen: u, onAccessoryViewClose: d, onAction: f, composer: p, onComposerVisibilityChange: m, rules: h, onRulesViolation: g, accessoryViewTypes: _, slotRenderers: v, renderMention: y }, b) {
|
|
24703
|
+
let { spec: x, sources: S } = vB({
|
|
24695
24704
|
spec: e,
|
|
24696
|
-
sources:
|
|
24697
|
-
rules:
|
|
24698
|
-
accessoryViewTypes:
|
|
24699
|
-
onRulesViolation:
|
|
24700
|
-
}),
|
|
24701
|
-
ml(
|
|
24702
|
-
let
|
|
24703
|
-
ref:
|
|
24704
|
-
children:
|
|
24705
|
-
}) : null, [
|
|
24706
|
-
if (e.type === "goToSection" &&
|
|
24707
|
-
let t =
|
|
24705
|
+
sources: c,
|
|
24706
|
+
rules: h,
|
|
24707
|
+
accessoryViewTypes: _,
|
|
24708
|
+
onRulesViolation: g
|
|
24709
|
+
}), C = Y(null), w = Y(null);
|
|
24710
|
+
ml(b, () => C.current), yB(C, w, m);
|
|
24711
|
+
let T = cB(C), E = p ? /* @__PURE__ */ Q(eB, {
|
|
24712
|
+
ref: w,
|
|
24713
|
+
children: p
|
|
24714
|
+
}) : null, [D, ...O] = x.sections, [k, A] = X(), j = x.accessoryViews?.find(({ id: e }) => e === k?.id), M = _?.find(({ type: e }) => e === j?.type), N = J(() => (e, t) => {
|
|
24715
|
+
if (e.type === "goToSection" && T(e.sectionId), e.type === "openAccessoryView") {
|
|
24716
|
+
let t = x.accessoryViews?.find(({ id: t }) => t === e.id);
|
|
24708
24717
|
if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
|
|
24709
|
-
else if (
|
|
24718
|
+
else if (xB(t, e.params)) {
|
|
24710
24719
|
let n = {
|
|
24711
24720
|
id: t.id,
|
|
24712
24721
|
params: e.params ?? {}
|
|
24713
24722
|
};
|
|
24714
|
-
|
|
24723
|
+
A({
|
|
24715
24724
|
...n,
|
|
24716
24725
|
open: !0
|
|
24717
|
-
}),
|
|
24726
|
+
}), u?.(n);
|
|
24718
24727
|
}
|
|
24719
24728
|
}
|
|
24720
|
-
|
|
24729
|
+
f?.(e, t);
|
|
24721
24730
|
}, [
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24731
|
+
f,
|
|
24732
|
+
T,
|
|
24733
|
+
u,
|
|
24734
|
+
x.accessoryViews
|
|
24726
24735
|
]);
|
|
24727
|
-
return /* @__PURE__ */ Q(
|
|
24728
|
-
value:
|
|
24729
|
-
children: /* @__PURE__ */ Q(
|
|
24730
|
-
value:
|
|
24736
|
+
return /* @__PURE__ */ Q(uz, {
|
|
24737
|
+
value: v,
|
|
24738
|
+
children: /* @__PURE__ */ Q(Tz, {
|
|
24739
|
+
value: y,
|
|
24731
24740
|
children: /* @__PURE__ */ $("div", {
|
|
24732
24741
|
className: "relative h-full min-h-0 w-full",
|
|
24733
|
-
children: [
|
|
24734
|
-
|
|
24735
|
-
|
|
24736
|
-
|
|
24737
|
-
|
|
24738
|
-
|
|
24739
|
-
|
|
24740
|
-
|
|
24741
|
-
|
|
24742
|
-
|
|
24743
|
-
|
|
24744
|
-
|
|
24745
|
-
|
|
24746
|
-
|
|
24747
|
-
|
|
24748
|
-
|
|
24749
|
-
|
|
24750
|
-
|
|
24751
|
-
|
|
24752
|
-
|
|
24753
|
-
|
|
24754
|
-
|
|
24755
|
-
|
|
24756
|
-
|
|
24757
|
-
|
|
24758
|
-
|
|
24759
|
-
|
|
24760
|
-
|
|
24761
|
-
|
|
24762
|
-
|
|
24763
|
-
|
|
24764
|
-
|
|
24765
|
-
|
|
24766
|
-
|
|
24767
|
-
|
|
24768
|
-
|
|
24769
|
-
|
|
24770
|
-
|
|
24771
|
-
|
|
24772
|
-
|
|
24773
|
-
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24777
|
-
|
|
24742
|
+
children: [
|
|
24743
|
+
/* @__PURE__ */ $("div", {
|
|
24744
|
+
ref: C,
|
|
24745
|
+
className: W("h-full w-full overflow-y-auto bg-f1-background px-6", (i.length > 0 || a) && "md:px-20"),
|
|
24746
|
+
children: [/* @__PURE__ */ $("div", {
|
|
24747
|
+
className: W("mx-auto flex w-full max-w-content flex-col gap-20", wB, p && m ? TB : EB),
|
|
24748
|
+
children: [
|
|
24749
|
+
t ? /* @__PURE__ */ Q(tB, { greeting: t }) : null,
|
|
24750
|
+
D ? null : E,
|
|
24751
|
+
D ? /* @__PURE__ */ Q(Wz, {
|
|
24752
|
+
size: "lead",
|
|
24753
|
+
section: D,
|
|
24754
|
+
sources: S,
|
|
24755
|
+
onAction: N,
|
|
24756
|
+
composer: E
|
|
24757
|
+
}, D.id) : null,
|
|
24758
|
+
O.map((e) => /* @__PURE__ */ Q(Wz, {
|
|
24759
|
+
section: e,
|
|
24760
|
+
sources: S,
|
|
24761
|
+
onAction: N
|
|
24762
|
+
}, e.id))
|
|
24763
|
+
]
|
|
24764
|
+
}), k && j && M ? /* @__PURE__ */ Q(Jz, {
|
|
24765
|
+
view: j,
|
|
24766
|
+
params: k.params,
|
|
24767
|
+
presentation: M.presentation,
|
|
24768
|
+
width: M.width,
|
|
24769
|
+
bleed: M.bleed,
|
|
24770
|
+
isOpen: k.open,
|
|
24771
|
+
onClose: () => {
|
|
24772
|
+
A((e) => e && {
|
|
24773
|
+
...e,
|
|
24774
|
+
open: !1
|
|
24775
|
+
}), d?.();
|
|
24776
|
+
},
|
|
24777
|
+
sources: CB(S, k, !!j.params?.length, l),
|
|
24778
|
+
onAction: N
|
|
24779
|
+
}) : null]
|
|
24780
|
+
}),
|
|
24781
|
+
r ? /* @__PURE__ */ Q("div", {
|
|
24782
|
+
className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
|
|
24783
|
+
children: /* @__PURE__ */ Q(aF, {})
|
|
24784
|
+
}) : null,
|
|
24785
|
+
n || i.length || a ? /* @__PURE__ */ Q(oB, {
|
|
24786
|
+
widgets: i,
|
|
24787
|
+
onAdd: a,
|
|
24788
|
+
onRemove: o,
|
|
24789
|
+
onChangeParams: s,
|
|
24790
|
+
slotRenderers: v,
|
|
24791
|
+
clock: n ? /* @__PURE__ */ Q($z, { clockIn: n }) : void 0
|
|
24792
|
+
}) : null
|
|
24793
|
+
]
|
|
24778
24794
|
})
|
|
24779
24795
|
})
|
|
24780
24796
|
});
|
|
24781
|
-
}),
|
|
24797
|
+
}), OB = Rn("F0AgenticHome", DB), kB = cl(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
|
|
24782
24798
|
let a = J(() => (e, t) => n?.(e, t), [n]);
|
|
24783
24799
|
return /* @__PURE__ */ Q("div", {
|
|
24784
24800
|
ref: i,
|
|
24785
|
-
children: /* @__PURE__ */ Q(
|
|
24801
|
+
children: /* @__PURE__ */ Q(uz, {
|
|
24786
24802
|
value: r,
|
|
24787
|
-
children: /* @__PURE__ */ Q(
|
|
24803
|
+
children: /* @__PURE__ */ Q(pz, {
|
|
24788
24804
|
element: e,
|
|
24789
24805
|
state: t,
|
|
24790
24806
|
onAction: a
|
|
24791
24807
|
})
|
|
24792
24808
|
})
|
|
24793
24809
|
});
|
|
24794
|
-
}),
|
|
24810
|
+
}), AB = Rn("F0AgenticHomeBlock", kB), jB = {
|
|
24795
24811
|
maxSections: 12,
|
|
24796
24812
|
maxElementsPerSection: 3,
|
|
24797
24813
|
blocks: [
|
|
@@ -24839,18 +24855,18 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24839
24855
|
type: "list",
|
|
24840
24856
|
itemActions: ["goToSection"]
|
|
24841
24857
|
}] }
|
|
24842
|
-
},
|
|
24858
|
+
}, MB = 1, NB = {
|
|
24843
24859
|
main: 672,
|
|
24844
24860
|
right: 396
|
|
24845
|
-
},
|
|
24846
|
-
...
|
|
24861
|
+
}, PB = 250, FB = (e) => typeof e == "object" && !!e && !ll(e) && Array.isArray(e.slots), IB = ({ preview: e, params: t, slotRenderers: n }) => FB(e) ? /* @__PURE__ */ Q(fI, {
|
|
24862
|
+
...OF(e),
|
|
24847
24863
|
header: e.header,
|
|
24848
24864
|
params: t ?? e.params,
|
|
24849
24865
|
fullHeight: e.fullHeight,
|
|
24850
24866
|
slots: e.slots,
|
|
24851
24867
|
loading: e.loading,
|
|
24852
24868
|
slotRenderers: n
|
|
24853
|
-
}) : /* @__PURE__ */ Q(Z, { children: e }),
|
|
24869
|
+
}) : /* @__PURE__ */ Q(Z, { children: e }), LB = (e, t, n) => e.info ?? (FB(t) ? wF(t.header, n ?? t.params)?.info : void 0), RB = (e) => e.paramsSchema ?? (FB(e.preview) ? e.preview.paramsSchema : void 0), zB = (e) => e.params ?? (FB(e.preview) ? e.preview.params : void 0) ?? {}, BB = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
|
|
24854
24870
|
className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
|
|
24855
24871
|
children: [t ? /* @__PURE__ */ Q(V, {
|
|
24856
24872
|
icon: t,
|
|
@@ -24861,10 +24877,10 @@ var XI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24861
24877
|
children: e
|
|
24862
24878
|
})]
|
|
24863
24879
|
});
|
|
24864
|
-
function
|
|
24865
|
-
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } =
|
|
24880
|
+
function VB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
|
|
24881
|
+
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = mI(), [h, g] = X(""), [_, v] = X(null), [y, b] = X("pick"), [x, S] = X(!1), C = (e) => {
|
|
24866
24882
|
S(!0), b(e);
|
|
24867
|
-
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = $e(), k = h.trim().toLowerCase(), A = o ?? (a ?
|
|
24883
|
+
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = $e(), k = h.trim().toLowerCase(), A = o ?? (a ? NB[a] : NB.right), j = J(() => {
|
|
24868
24884
|
let e = a ? n.filter((e) => !e.areas || e.areas.includes(a)) : n, t = k ? e.filter((e) => e.title.toLowerCase().includes(k)) : e, r = t.filter((e) => e.recommended), o = t.filter((e) => !e.recommended), s = new Set((i ?? []).map((e) => e.id)), c = o.filter((e) => !e.group || !s.has(e.group));
|
|
24869
24885
|
return [
|
|
24870
24886
|
...r.length ? [{
|
|
@@ -24889,7 +24905,7 @@ function BB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24889
24905
|
k,
|
|
24890
24906
|
a,
|
|
24891
24907
|
u
|
|
24892
|
-
]), M = j.flatMap((e) => e.items), N = M.find((e) => e.id === _) ?? M[0] ?? null, P = N ?
|
|
24908
|
+
]), M = j.flatMap((e) => e.items), N = M.find((e) => e.id === _) ?? M[0] ?? null, P = N ? RB(N) : void 0, F = P !== void 0 && !(N?.addWithDefaults && EF(P, zB(N))), I = y === "configure" && F, ee = N && w?.id === N.id ? w.params : N ? zB(N) : {}, te = I && N && c ? c(N, ee) : N?.preview;
|
|
24893
24909
|
return q(() => {
|
|
24894
24910
|
e && (b("pick"), S(!1), T(null));
|
|
24895
24911
|
}, [e]), q(() => {
|
|
@@ -24936,7 +24952,7 @@ function BB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24936
24952
|
defaultValues: ee,
|
|
24937
24953
|
submitConfig: {
|
|
24938
24954
|
type: "autosubmit",
|
|
24939
|
-
delay:
|
|
24955
|
+
delay: PB,
|
|
24940
24956
|
hideActionBar: !0
|
|
24941
24957
|
},
|
|
24942
24958
|
styling: { noPadding: !0 },
|
|
@@ -24951,7 +24967,7 @@ function BB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24951
24967
|
placeholder: "Search widgets"
|
|
24952
24968
|
}), /* @__PURE__ */ $("div", {
|
|
24953
24969
|
className: "flex flex-col gap-1 overflow-y-auto",
|
|
24954
|
-
children: [j.map((e) => /* @__PURE__ */ $(il, { children: [e.label ? /* @__PURE__ */ Q(
|
|
24970
|
+
children: [j.map((e) => /* @__PURE__ */ $(il, { children: [e.label ? /* @__PURE__ */ Q(BB, {
|
|
24955
24971
|
label: e.label,
|
|
24956
24972
|
icon: e.icon
|
|
24957
24973
|
}) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
|
|
@@ -24970,11 +24986,11 @@ function BB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24970
24986
|
children: k ? "No widgets match your search." : "No widgets to add here."
|
|
24971
24987
|
}) : null]
|
|
24972
24988
|
})] })
|
|
24973
|
-
}, y), /* @__PURE__ */ Q(
|
|
24989
|
+
}, y), /* @__PURE__ */ Q(gI, {
|
|
24974
24990
|
previewKey: N?.id,
|
|
24975
|
-
info: N ?
|
|
24991
|
+
info: N ? LB(N, te, I ? ee : void 0) : void 0,
|
|
24976
24992
|
previewWidth: A,
|
|
24977
|
-
children: N ? /* @__PURE__ */ Q(
|
|
24993
|
+
children: N ? /* @__PURE__ */ Q(IB, {
|
|
24978
24994
|
preview: te,
|
|
24979
24995
|
params: I ? ee : void 0,
|
|
24980
24996
|
slotRenderers: s
|
|
@@ -24985,62 +25001,62 @@ function BB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24985
25001
|
}
|
|
24986
25002
|
//#endregion
|
|
24987
25003
|
//#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
|
|
24988
|
-
var
|
|
25004
|
+
var HB = Object.defineProperty, UB = Object.defineProperties, WB = Object.getOwnPropertyDescriptors, GB = Object.getOwnPropertySymbols, KB = Object.prototype.hasOwnProperty, qB = Object.prototype.propertyIsEnumerable, JB = (e, t, n) => t in e ? HB(e, t, {
|
|
24989
25005
|
enumerable: !0,
|
|
24990
25006
|
configurable: !0,
|
|
24991
25007
|
writable: !0,
|
|
24992
25008
|
value: n
|
|
24993
|
-
}) : e[t] = n,
|
|
24994
|
-
for (var n in t ||= {})
|
|
24995
|
-
if (
|
|
25009
|
+
}) : e[t] = n, YB = (e, t) => {
|
|
25010
|
+
for (var n in t ||= {}) KB.call(t, n) && JB(e, n, t[n]);
|
|
25011
|
+
if (GB) for (var n of GB(t)) qB.call(t, n) && JB(e, n, t[n]);
|
|
24996
25012
|
return e;
|
|
24997
|
-
},
|
|
25013
|
+
}, XB = (e, t) => UB(e, WB(t)), ZB = (e, t) => {
|
|
24998
25014
|
var n = {};
|
|
24999
|
-
for (var r in e)
|
|
25000
|
-
if (e != null &&
|
|
25015
|
+
for (var r in e) KB.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
25016
|
+
if (e != null && GB) for (var r of GB(e)) t.indexOf(r) < 0 && qB.call(e, r) && (n[r] = e[r]);
|
|
25001
25017
|
return n;
|
|
25002
|
-
},
|
|
25018
|
+
}, QB = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, $B = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), eV = ({ position: e, spot: t, stone: n }) => {
|
|
25003
25019
|
if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
|
|
25004
25020
|
if (t.bottom && t.bottom < e.top) return t;
|
|
25005
|
-
let n =
|
|
25021
|
+
let n = YB({}, t);
|
|
25006
25022
|
return n.right = e.left, n;
|
|
25007
25023
|
}
|
|
25008
25024
|
return null;
|
|
25009
|
-
},
|
|
25025
|
+
}, tV = ({ position: e, stone: t, spot: n }) => {
|
|
25010
25026
|
if (e.left + t.width > n.left && e.top >= n.top) {
|
|
25011
25027
|
if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
|
|
25012
|
-
let t =
|
|
25028
|
+
let t = YB({}, n);
|
|
25013
25029
|
return t.bottom = e.top, t;
|
|
25014
25030
|
}
|
|
25015
25031
|
return null;
|
|
25016
|
-
},
|
|
25017
|
-
let i =
|
|
25018
|
-
return i.left = t.left + e.width,
|
|
25032
|
+
}, nV = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
|
|
25033
|
+
let i = YB({}, r);
|
|
25034
|
+
return i.left = t.left + e.width, QB(i) || $B({
|
|
25019
25035
|
usedSpot: i,
|
|
25020
25036
|
spotsList: n
|
|
25021
25037
|
}) ? null : i;
|
|
25022
|
-
},
|
|
25038
|
+
}, rV = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? nV({
|
|
25023
25039
|
stone: r,
|
|
25024
25040
|
position: t,
|
|
25025
25041
|
optimalSpot: n,
|
|
25026
25042
|
spotsList: a
|
|
25027
|
-
}) :
|
|
25043
|
+
}) : eV({
|
|
25028
25044
|
position: t,
|
|
25029
25045
|
spot: e,
|
|
25030
25046
|
stone: r
|
|
25031
|
-
}) ||
|
|
25047
|
+
}) || tV({
|
|
25032
25048
|
position: t,
|
|
25033
25049
|
stone: r,
|
|
25034
25050
|
spot: e
|
|
25035
25051
|
}) || e);
|
|
25036
|
-
function
|
|
25052
|
+
function iV(e, t) {
|
|
25037
25053
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
25038
25054
|
let r = t[n];
|
|
25039
25055
|
if (e(r)) return r;
|
|
25040
25056
|
}
|
|
25041
25057
|
return null;
|
|
25042
25058
|
}
|
|
25043
|
-
var
|
|
25059
|
+
var aV = (e, t) => t.filter(e), oV = (e, t) => [...t].sort(e), sV = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, cV = (e) => oV(sV, e), lV = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
|
|
25044
25060
|
let i = {
|
|
25045
25061
|
right: n,
|
|
25046
25062
|
top: t.top + r.height,
|
|
@@ -25055,36 +25071,36 @@ var iV = (e, t) => t.filter(e), aV = (e, t) => [...t].sort(e), oV = (e, t) => e.
|
|
|
25055
25071
|
}
|
|
25056
25072
|
}
|
|
25057
25073
|
return i;
|
|
25058
|
-
},
|
|
25074
|
+
}, uV = (e, t) => {
|
|
25059
25075
|
let n = e.right - e.left >= t.width;
|
|
25060
25076
|
if (!e.bottom) return n;
|
|
25061
25077
|
let r = e.bottom - e.top >= t.height;
|
|
25062
25078
|
return n && r;
|
|
25063
|
-
},
|
|
25064
|
-
function
|
|
25065
|
-
let r =
|
|
25079
|
+
}, dV = ({ availableSpots: e, stone: t }) => iV((e) => uV(e, t), e);
|
|
25080
|
+
function fV({ stone: e, availableSpots: t, containerSize: n }) {
|
|
25081
|
+
let r = dV({
|
|
25066
25082
|
availableSpots: t,
|
|
25067
25083
|
stone: e
|
|
25068
25084
|
}), i = {
|
|
25069
25085
|
left: r.left,
|
|
25070
25086
|
top: r.top
|
|
25071
|
-
}, a =
|
|
25087
|
+
}, a = lV({
|
|
25072
25088
|
optimalSpot: r,
|
|
25073
25089
|
availableSpots: t.filter((e) => e !== r),
|
|
25074
25090
|
stone: e,
|
|
25075
25091
|
containerSize: n
|
|
25076
|
-
}), o = [...t, a], s =
|
|
25092
|
+
}), o = [...t, a], s = rV({
|
|
25077
25093
|
spots: o,
|
|
25078
25094
|
position: i,
|
|
25079
25095
|
optimalSpot: r,
|
|
25080
25096
|
stone: e
|
|
25081
25097
|
});
|
|
25082
|
-
return o = [...
|
|
25098
|
+
return o = [...aV(Boolean, s)], o = cV(o), {
|
|
25083
25099
|
position: i,
|
|
25084
25100
|
availableSpots: o
|
|
25085
25101
|
};
|
|
25086
25102
|
}
|
|
25087
|
-
var
|
|
25103
|
+
var pV = ({ stones: e, containerSize: t }) => {
|
|
25088
25104
|
let n = {
|
|
25089
25105
|
positions: [],
|
|
25090
25106
|
containerHeight: 0,
|
|
@@ -25097,7 +25113,7 @@ var fV = ({ stones: e, containerSize: t }) => {
|
|
|
25097
25113
|
right: t
|
|
25098
25114
|
}];
|
|
25099
25115
|
for (let n of e) {
|
|
25100
|
-
let e =
|
|
25116
|
+
let e = fV({
|
|
25101
25117
|
availableSpots: a,
|
|
25102
25118
|
stone: n,
|
|
25103
25119
|
containerSize: t
|
|
@@ -25109,14 +25125,14 @@ var fV = ({ stones: e, containerSize: t }) => {
|
|
|
25109
25125
|
positions: i,
|
|
25110
25126
|
containerHeight: r
|
|
25111
25127
|
};
|
|
25112
|
-
},
|
|
25128
|
+
}, mV = (e) => e.reduce((e, t) => {
|
|
25113
25129
|
if (!t) return e;
|
|
25114
25130
|
let n = t.getBoundingClientRect();
|
|
25115
25131
|
return e.push({
|
|
25116
25132
|
width: n.width,
|
|
25117
25133
|
height: n.height
|
|
25118
25134
|
}), e;
|
|
25119
|
-
}, []),
|
|
25135
|
+
}, []), hV = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
|
|
25120
25136
|
let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
|
|
25121
25137
|
positions: [],
|
|
25122
25138
|
containerHeight: null,
|
|
@@ -25124,13 +25140,13 @@ var fV = ({ stones: e, containerSize: t }) => {
|
|
|
25124
25140
|
availableSpots: []
|
|
25125
25141
|
});
|
|
25126
25142
|
return q(() => {
|
|
25127
|
-
let n =
|
|
25143
|
+
let n = mV(e.current), r = t.current?.offsetWidth ?? 0;
|
|
25128
25144
|
if (r === null) return;
|
|
25129
|
-
let i =
|
|
25145
|
+
let i = pV({
|
|
25130
25146
|
stones: n,
|
|
25131
25147
|
containerSize: r
|
|
25132
25148
|
});
|
|
25133
|
-
l(YB(
|
|
25149
|
+
l(XB(YB({}, i), { stones: n }));
|
|
25134
25150
|
}, [
|
|
25135
25151
|
n,
|
|
25136
25152
|
e,
|
|
@@ -25143,7 +25159,7 @@ var fV = ({ stones: e, containerSize: t }) => {
|
|
|
25143
25159
|
stones: s,
|
|
25144
25160
|
availableSpots: c
|
|
25145
25161
|
};
|
|
25146
|
-
},
|
|
25162
|
+
}, gV = (e) => ({
|
|
25147
25163
|
fade: `${e}ms opacity ease`,
|
|
25148
25164
|
fadeMove: `
|
|
25149
25165
|
${e}ms opacity ease,
|
|
@@ -25154,15 +25170,15 @@ var fV = ({ stones: e, containerSize: t }) => {
|
|
|
25154
25170
|
${e}ms top ease,
|
|
25155
25171
|
${e}ms left ease
|
|
25156
25172
|
`
|
|
25157
|
-
}),
|
|
25173
|
+
}), _V = ({ transition: e, transitionDuration: t }) => e ? { transition: gV(t)[e] } : null, vV = (e) => e ? XB(YB({}, e), { opacity: 1 }) : {
|
|
25158
25174
|
opacity: 0,
|
|
25159
25175
|
top: 0,
|
|
25160
25176
|
left: 0
|
|
25161
|
-
},
|
|
25177
|
+
}, yV = ({ style: e, position: t, transition: n, transitionDuration: r }) => YB(YB(XB(YB({}, e), { position: "absolute" }), vV(t)), _V({
|
|
25162
25178
|
transition: n,
|
|
25163
25179
|
transitionDuration: r
|
|
25164
25180
|
}));
|
|
25165
|
-
function
|
|
25181
|
+
function bV(e, t, n) {
|
|
25166
25182
|
let r;
|
|
25167
25183
|
return function(...i) {
|
|
25168
25184
|
r && clearTimeout(r), r = setTimeout(function() {
|
|
@@ -25170,8 +25186,8 @@ function yV(e, t, n) {
|
|
|
25170
25186
|
}, t), n && !r && e.apply(null, i);
|
|
25171
25187
|
};
|
|
25172
25188
|
}
|
|
25173
|
-
var
|
|
25174
|
-
let [e, t] = X(), n = Y(
|
|
25189
|
+
var xV = () => {
|
|
25190
|
+
let [e, t] = X(), n = Y(bV(t, 300));
|
|
25175
25191
|
return q(() => {
|
|
25176
25192
|
let e = () => {
|
|
25177
25193
|
n.current(window.innerWidth);
|
|
@@ -25180,7 +25196,7 @@ var bV = () => {
|
|
|
25180
25196
|
window.removeEventListener("resize", e);
|
|
25181
25197
|
};
|
|
25182
25198
|
}, []), e;
|
|
25183
|
-
},
|
|
25199
|
+
}, SV = (e) => {
|
|
25184
25200
|
let [t, n] = X(null);
|
|
25185
25201
|
return q(() => {
|
|
25186
25202
|
let t = new ResizeObserver((e) => {
|
|
@@ -25190,31 +25206,31 @@ var bV = () => {
|
|
|
25190
25206
|
t.disconnect();
|
|
25191
25207
|
};
|
|
25192
25208
|
}, [e]), t;
|
|
25193
|
-
},
|
|
25194
|
-
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s =
|
|
25209
|
+
}, CV = (e) => {
|
|
25210
|
+
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = ZB(t, [
|
|
25195
25211
|
"children",
|
|
25196
25212
|
"style",
|
|
25197
25213
|
"transition",
|
|
25198
25214
|
"transitionDuration",
|
|
25199
25215
|
"transitionStep"
|
|
25200
25216
|
]);
|
|
25201
|
-
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } =
|
|
25217
|
+
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = hV({
|
|
25202
25218
|
boxesRefs: c,
|
|
25203
25219
|
wrapperRef: l,
|
|
25204
25220
|
children: n,
|
|
25205
|
-
windowWidth:
|
|
25206
|
-
wrapperWidth:
|
|
25207
|
-
}), f =
|
|
25221
|
+
windowWidth: xV(),
|
|
25222
|
+
wrapperWidth: SV(l)
|
|
25223
|
+
}), f = YB({
|
|
25208
25224
|
minHeight: d ?? 0,
|
|
25209
25225
|
position: "relative"
|
|
25210
25226
|
}, r);
|
|
25211
|
-
return Q("div", YB(
|
|
25227
|
+
return Q("div", XB(YB({
|
|
25212
25228
|
ref: l,
|
|
25213
25229
|
style: f
|
|
25214
25230
|
}, s), { children: rl.map(n, (e, t) => {
|
|
25215
25231
|
if (typeof e != "object" || !e || !("type" in e)) return e;
|
|
25216
25232
|
let n = {
|
|
25217
|
-
style:
|
|
25233
|
+
style: yV({
|
|
25218
25234
|
style: e.props.style,
|
|
25219
25235
|
position: u[t],
|
|
25220
25236
|
transition: i,
|
|
@@ -25222,14 +25238,14 @@ var bV = () => {
|
|
|
25222
25238
|
}),
|
|
25223
25239
|
ref: (e) => c.current[t] = e
|
|
25224
25240
|
};
|
|
25225
|
-
return ol(e,
|
|
25241
|
+
return ol(e, YB(YB({}, e.props), n));
|
|
25226
25242
|
}) }));
|
|
25227
|
-
},
|
|
25243
|
+
}, wV = {
|
|
25228
25244
|
sm: 340,
|
|
25229
25245
|
md: 480,
|
|
25230
25246
|
lg: 640
|
|
25231
|
-
},
|
|
25232
|
-
let r =
|
|
25247
|
+
}, TV = cl(function({ children: e, widgetWidth: t = "sm" }, n) {
|
|
25248
|
+
let r = wV[t], [i, a] = X(), o = rl.toArray(e), s = Y(null);
|
|
25233
25249
|
return q(() => {
|
|
25234
25250
|
let e = () => {
|
|
25235
25251
|
let e = s.current?.offsetWidth;
|
|
@@ -25248,7 +25264,7 @@ var bV = () => {
|
|
|
25248
25264
|
children: e
|
|
25249
25265
|
}) : i && i > 1 && /* @__PURE__ */ Q("div", {
|
|
25250
25266
|
className: "relative -mr-4",
|
|
25251
|
-
children: /* @__PURE__ */ Q(
|
|
25267
|
+
children: /* @__PURE__ */ Q(CV, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
|
|
25252
25268
|
style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
|
|
25253
25269
|
className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
|
|
25254
25270
|
children: e
|
|
@@ -25256,7 +25272,7 @@ var bV = () => {
|
|
|
25256
25272
|
})
|
|
25257
25273
|
})
|
|
25258
25274
|
});
|
|
25259
|
-
}),
|
|
25275
|
+
}), EV = [
|
|
25260
25276
|
"sm",
|
|
25261
25277
|
"lg",
|
|
25262
25278
|
"md",
|
|
@@ -25269,18 +25285,18 @@ var bV = () => {
|
|
|
25269
25285
|
"sm",
|
|
25270
25286
|
"md",
|
|
25271
25287
|
"md"
|
|
25272
|
-
],
|
|
25288
|
+
], DV = Sa(TV, () => /* @__PURE__ */ Q(Gr, { children: /* @__PURE__ */ Q(TV, { children: EV.map((e, t) => /* @__PURE__ */ Q(O.Skeleton, { height: e }, t)) }) })), OV = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
25273
25289
|
className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]",
|
|
25274
25290
|
children: e
|
|
25275
|
-
}),
|
|
25291
|
+
}), kV = Sa(cl(function({ children: e }, t) {
|
|
25276
25292
|
return /* @__PURE__ */ Q(Lo, {
|
|
25277
25293
|
ref: t,
|
|
25278
25294
|
showBar: !1,
|
|
25279
|
-
children: /* @__PURE__ */ Q(
|
|
25295
|
+
children: /* @__PURE__ */ Q(OV, { children: e })
|
|
25280
25296
|
});
|
|
25281
25297
|
}), () => /* @__PURE__ */ Q(Gr, {
|
|
25282
25298
|
orientation: "horizontal",
|
|
25283
|
-
children: /* @__PURE__ */ $(
|
|
25299
|
+
children: /* @__PURE__ */ $(OV, { children: [
|
|
25284
25300
|
/* @__PURE__ */ Q(O.Skeleton, {}),
|
|
25285
25301
|
/* @__PURE__ */ Q(O.Skeleton, {}),
|
|
25286
25302
|
/* @__PURE__ */ Q(O.Skeleton, {})
|
|
@@ -25288,7 +25304,7 @@ var bV = () => {
|
|
|
25288
25304
|
}));
|
|
25289
25305
|
//#endregion
|
|
25290
25306
|
//#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
|
|
25291
|
-
function
|
|
25307
|
+
function AV({ title: e, description: t, emoji: n, actions: r }) {
|
|
25292
25308
|
if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
|
|
25293
25309
|
return /* @__PURE__ */ Q(S, {
|
|
25294
25310
|
title: e,
|
|
@@ -25297,7 +25313,7 @@ function kV({ title: e, description: t, emoji: n, actions: r }) {
|
|
|
25297
25313
|
actions: r
|
|
25298
25314
|
});
|
|
25299
25315
|
}
|
|
25300
|
-
var
|
|
25316
|
+
var jV = Cn(Rn("WidgetEmptyState", AV)), MV = cl(({ title: e, children: t }, n) => (ln(e, { disallowEmpty: !0 }, { componentName: "WidgetSection" }), /* @__PURE__ */ $("div", {
|
|
25301
25317
|
ref: n,
|
|
25302
25318
|
className: "flex flex-col gap-2",
|
|
25303
25319
|
children: [/* @__PURE__ */ Q("p", {
|
|
@@ -25305,8 +25321,8 @@ var AV = Cn(Rn("WidgetEmptyState", kV)), jV = cl(({ title: e, children: t }, n)
|
|
|
25305
25321
|
children: e
|
|
25306
25322
|
}), t]
|
|
25307
25323
|
})));
|
|
25308
|
-
|
|
25309
|
-
var
|
|
25324
|
+
MV.displayName = "WidgetSection";
|
|
25325
|
+
var NV = Cn(Rn("WidgetSection", MV)), PV = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
|
|
25310
25326
|
let i = wn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
|
|
25311
25327
|
a,
|
|
25312
25328
|
t,
|
|
@@ -25320,9 +25336,9 @@ var MV = Cn(Rn("WidgetSection", jV)), NV = ({ identifier: e, allowedRoutes: t, d
|
|
|
25320
25336
|
n
|
|
25321
25337
|
]);
|
|
25322
25338
|
return o ? r : (i && console.error(s), null);
|
|
25323
|
-
},
|
|
25339
|
+
}, FV = Cn(Fn({
|
|
25324
25340
|
name: "ScrollArea",
|
|
25325
25341
|
type: "layout"
|
|
25326
25342
|
}, Lo));
|
|
25327
25343
|
//#endregion
|
|
25328
|
-
export {
|
|
25344
|
+
export { MB as AGENTIC_HOME_SPEC_VERSION, p as AUTO_PER_PAGE_MAX, Wt as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Cp as ActivityItemList, Sp as ActivityItemListSkeleton, Zl as AiPromotionChat, Ql as AiPromotionChatProvider, wy as ApplicationFrame, Lt as AreaChart, CN as AreaChartWidget, lN as AutoGrid, No as Badge, Je as BarChart, wN as BarChartWidget, xp as BaseActivityItemList, it as BaseBanner, kp as BaseCelebration, Kp as BaseCommunityPost, La as BaseTabs, wa as BreadcrumbSelect, Gy as Breadcrumbs, Vp as CalendarEvent, zN as CalendarEventList, n as CardSelectableContainer, M as Carousel, et as CategoryBarChart, eP as CategoryBarSection, jp as Celebration, Ap as CelebrationSkeleton, IN as ChartWidgetEmptyState, $o as Chip, kP as ClockInControls, Nt as CoachmarkProvider, Ct as ComboChart, Jp as CommunityPost, rm as CommunityPostCard, qp as CommunityPostSkeleton, Rx as CompanySelector, hn as Counter, BF as DEFAULT_EXPECTED_ITEMS_COUNT, DV as Dashboard, Iy as DaytimePage, ki as DetailsItem, na as DetailsItemsList, zt as Dialog, ao as Dropdown, NF as EVENT_LIST_GAP, Uf as EntitySelect, yt as F0ActionBar, OB as F0AgenticHome, AB as F0AgenticHomeBlock, fe as F0AiBanner, Au as F0AiCallout, To as F0AvatarModule, ec as F0ButtonToggle, Ru as F0Callout, Vr as F0CardHorizontal, Vr as F0CardRow, Ud as F0CarouselDialog, WM as F0Chat, DT as F0ChatHistoryLimitCard, Vc as F0ChatProvider, Ew as F0CommandPaletteProvider, cm as F0CommunityPostsCarousel, Xu as F0Confetti, ZM as F0ENPSButton, su as F0EmojiPicker, or as F0FileItem, Me as F0FormEditableTable, Ue as F0LocationInput, Nc as F0Map, Ec as F0MapControls, mc as F0MapList, pc as F0MapSidebar, Dc as F0MapSidebarToggle, Ac as F0MapSkeleton, iy as F0Meeting, vd as F0MeetingCard, Am as F0MeetingProvider, Vv as F0MeetingRoom, ay as F0MeetingSlot, ry as F0MeetingSurface, qt as F0NotesTextEditor, We as F0NotesTextEditorSkeleton, m as F0NumberInput, _ as F0NumberInputInline, po as F0PersonCard, lt as F0PhoneInput, eC as F0PrimarySidebar, Zs as F0ProgressSeries, Cd as F0PulseDot, Bd as F0Resizable, ze as F0ResourceHeader, ze as ResourceHeader, Ma as F0RichTextDisplay, ut as F0RichTextEditor, Ls as F0SearchInput, rC as F0SecondarySidebar, Gd as F0SegmentedBar, Ze as F0SegmentedControl, nf as F0SwipeDeck, Ot as F0TableOfContent, dp as F0TemplateTextInput, Ht as F0TextAreaInput, d as F0TextAreaInputInline, kr as F0TextInput, he as F0TextInputInline, hf as F0Timeline, pf as F0VersionHistory, TT as F0_CHAT_HEADER_TITLE_SELECTOR, ks as F1SearchBox, re as FILE_TYPES, xa as FileItem, Mp as HighlightBanner, rF as HomeSlotItem, nF as HomeSlotItems, UN as IndicatorsList, Si as Input, He as Item, st as ItemSectionHeader, Mw as LATEST, yF as LIST_COMPACT_AFTER, jF as LIST_MORE_BUTTON_CLASS, ht as LineChart, TN as LineChartWidget, fy as MeetingNotes, oy as MeetingPanelContent, cy as MeetingRoomChat, zv as MeetingSidePanel, ug as MeetingSurfaceProvider, dy as MeetingTranscript, nS as Menu, _o as MobileDropdown, cL as NewHomeLayout, Gt as NotesTextEditor, R as NotesTextEditorSkeleton, ae as NumberInput, _b as OmniButton, _C as OneApprovalHistory, Ds as OneCalendar, Ss as OneCalendarInternal, xt as OneDataCollection, l as OneDateNavigator, S as OneEmptyState, pm as OneListItem, fm as OneListItemSkeleton, dt as OnePagination, gm as OnePersonListItem, PV as OneRestrictComponent, yb as Page, pb as PageHeader, Ky as PageHeaderNavigationContext, qy as PageHeaderNavigationProvider, aa as PageNavigation, at as PieChart, EN as PieChartWidget, T as PrivateBox, rt as ProgressBarChart, jB as RECOMMENDED_AGENTIC_HOME_RULES, bc as RECOMMENDED_MAX_MARKERS, Be as RadarChart, Fp as Reactions, ua as RichTextDisplay, ee as RichTextEditor, kF as SLOT_ROW_BLEED, VF as SLOT_SKELETON_ITEM_TESTID, FV as ScrollArea, tC as SearchBar, i as SectionHeader, Gs as Select, Zt as Shortcut, oC as Sidebar, nx as SidebarChatBlankState, ux as SidebarChatItem, ix as SidebarChatItemSkeleton, bx as SidebarChatList, ox as SidebarChatListSkeleton, kb as SidebarChatProvider, Bb as SidebarCollapsibleSection, Wx as SidebarFooter, Kx as SidebarHeader, aS as SidebarPanelHeader, ex as SidebarTabPanel, Jb as SidebarTabPanelSearch, lC as SidebarTabs, Ux as SidebarUserMenu, fI as SlotWidget, dI as SlotWidgetContent, ms as Spinner, cN as Split, sN as Stack, ON as SummariesWidget, Hs as Switch, Qa as Tabs, Ui as TabsSkeleton, NP as TasksList, ve as Textarea, go as ToggleGroup, zi as ToggleGroupItem, _n as Tooltip, yn as TooltipGroup, $N as TwoColumnsList, se as UPLOAD_INPUT_ID, Bt as VerticalBarChart, DN as VerticalBarChartWidget, _f as VirtualList, ws as WeekStartDay, io as Weekdays, O as Widget, GN as WidgetAvatarsListItem, VB as WidgetCatalog, jV as WidgetEmptyState, VN as WidgetHighlightButton, XN as WidgetInboxList, qN as WidgetInboxListItem, NV as WidgetSection, ZN as WidgetSimpleList, YN as WidgetSimpleListItem, kV as WidgetStrip, kt as actionBarStatuses, cu as aiCalloutStatuses, bd as attendeesDisplays, hh as buildTiles, Ae as buttonToggleColors, Le as buttonToggleSizes, ue as buttonToggleVariants, zp as calendarEventVariants, $s as chipVariants, Ml as coachmarks, aw as commandActionRisks, nm as communityPostCardVariants, zu as confettiPalette, G_ as createMeetingSignalStore, kc as defaultMapStyle, XF as defaultSlotRenderers, YF as defaultSlotSkeleton, Ll as defineStepByStepCoachmarkGuidance, Ke as downloadAsCSV, TC as downloadAsExcel, Dw as f0ChatSenderColors, $l as f0EmojiPickerSizes, Br as f0FileItemSizes, fc as f0MapMarkerVariants, Mc as f0MapStyles, wh as f0MeetingConnectionQualities, Oh as f0MeetingCoreActionIds, Sh as f0MeetingDisconnectReasons, Ch as f0MeetingPermissions, bh as f0MeetingPresences, xh as f0MeetingStatuses, Th as f0MeetingSurfaceDestinations, Eh as f0MeetingSurfaceModes, yh as f0MeetingTrackKinds, El as f0ProgressSeriesColors, Tl as f0ProgressSeriesSizes, Dh as f0WindowCorners, CF as fromParams, Ye as generateCSVContent, be as getAutoPerPageMinHeight, Xs as getGranularityDefinition, Es as getGranularityDefinitions, tc as getGranularitySimpleDefinition, Tc as googleMapStyles, vc as googlePinlessMapStyles, qs as granularityDefinitions, xF as homeSlot, ma as isPossiblePhoneValue, jw as isPost, Ow as isSystemMessage, Aw as isUserMessage, Fi as isValidPhoneValue, F_ as layoutGrid, g as listIconColors, MF as listMoreButtonClass, SF as listSlot, Jf as locationInputSizes, Yf as locationParts, yd as meetingStates, Oo as modules, Kh as nearestCorner, lm as oneListItemRowClassName, Xf as phoneInputSizes, Gh as placementFromRect, Pe as predefinedPresets, wd as pulseDotVariants, DF as railActionTones, Ws as rangeSeparator, R_ as reorderForSpeakers, Td as resizableDirections, C_ as resolveAutoFocus, Vs as resolveGranularityDefinition, Wh as resolvePlacement, vF as resolveSlotRenderer, wF as resolveWidgetHeader, yC as seedFromStorage, D as selectSizes, Se as selectVariants, qh as settlePlacement, AF as slotRowBleed, P_ as solveGrid, z_ as solveSpotlight, lf as swipeDirections, vh as tileAspectRatio, ph as tileKey, Wl as useAiPromotionChat, ww as useCommandPalette, wp as useCompactOnScroll, Ju as useConfetti, ne as useDataCollectionData, bC as useDataCollectionItemNavigation, me as useDataCollectionSource, Mt as useExportAction, tl as useF0Chat, Mm as useF0Meeting, Pm as useF0MeetingRoster, Nm as useF0MeetingStable, jm as useHasF0Meeting, o as useInfiniteScrollPagination, tF as useIsBulkChange, Y_ as useMeetingSignal, X_ as useMeetingSpeakers, dg as useMeetingSurface, fg as useMeetingSurfaceOptional, Yy as usePageHeaderItemNavigation, Jy as usePageHeaderNavigation, vi as useSidePanel, dc as useSidebar, Nb as useSidebarChatActions, Mb as useSidebarChats, cf as useSwipeDeck, Lm as useTrackBinding, Ce as useWidgetIsWide, py as viewportRect, OF as widgetChrome, EF as widgetParamsAreComplete, TF as widgetTitle };
|