@factorialco/f0-react 14.12.0 → 14.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28071,16 +28071,16 @@ var qG = ({ transform: e }) => ({
28071
28071
  }, QG = {
28072
28072
  duration: 450,
28073
28073
  easing: "cubic-bezier(0.4, 0, 0.1, 1)"
28074
- }, $G = (e, t) => {
28074
+ }, $G = { container: typeof document > "u" ? void 0 : document.body }, eK = (e, t) => {
28075
28075
  for (let n = e; n; n = n.parentElement) {
28076
28076
  let e = n.querySelector(t);
28077
28077
  if (e) return e;
28078
28078
  }
28079
28079
  return null;
28080
- }, eK = {
28080
+ }, tK = {
28081
28081
  main: 24,
28082
28082
  right: 16
28083
- }, tK = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
28083
+ }, nK = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
28084
28084
  ref: t ? n : void 0,
28085
28085
  "data-index": t?.index,
28086
28086
  hidden: e,
@@ -28091,7 +28091,7 @@ var qG = ({ transform: e }) => ({
28091
28091
  width: "100%"
28092
28092
  } : { display: e ? void 0 : "contents" },
28093
28093
  children: r
28094
- }), nK = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Vn, {
28094
+ }), rK = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Vn, {
28095
28095
  label: t,
28096
28096
  children: /* @__PURE__ */ Q("button", {
28097
28097
  type: "button",
@@ -28105,18 +28105,18 @@ var qG = ({ transform: e }) => ({
28105
28105
  })
28106
28106
  })
28107
28107
  });
28108
- function rK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: a, disableEdition: o = !1, disableDrag: s = !1, widgetHostFor: c, afterWidgets: l, dragSurfaceSelector: u, onRemoveWidget: d, onClickAddNewWidget: f, onReorder: p, visibleWidgetId: m, entrance: h = {}, virtualized: g = !1, stow: _, addWidgetLabel: v, onChangeWidgetParams: y, rebuildWidget: b, renderWidgetPreview: x, paramsPreviewWidth: S, removeLabel: C, editParamsLabel: w, ctx: T = {}, className: E, style: D }) {
28108
+ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: a, disableEdition: o = !1, disableDrag: s = !1, widgetHostFor: c, afterWidgets: l, dragSurfaceSelector: u, onRemoveWidget: d, onClickAddNewWidget: f, onReorder: p, visibleWidgetId: m, entrance: h = {}, virtualized: g = !1, stow: _, addWidgetLabel: v, onChangeWidgetParams: y, rebuildWidget: b, renderWidgetPreview: x, paramsPreviewWidth: S, removeLabel: C, editParamsLabel: w, ctx: T = {}, className: E, style: D }) {
28109
28109
  let O = R(), A = !o, j = (e) => m !== void 0 && e.id !== m, M = A && p != null, N = e.filter((e) => !e.locked).length > 1, [P, F] = X(null), [I, L] = X(0), [ee, te] = X(() => /* @__PURE__ */ new Map()), ne = J(() => new Set(e.flatMap((e, t) => e.locked ? [t] : [])), [e]), re = J(() => LG({
28110
28110
  pinned: ne,
28111
28111
  pinnedHeights: ee,
28112
- gap: eK[t]
28112
+ gap: tK[t]
28113
28113
  }), [
28114
28114
  ne,
28115
28115
  ee,
28116
28116
  t
28117
28117
  ]), ie = Wt(kt(ZG, { activationConstraint: { distance: 4 } })), [ae, oe] = X(null), se = e.find((e) => e.id === ae), [ce, le] = X(null), de = Y(null), fe = Y(null), pe = Y(null), me = Y(null), he = J(() => [qG, PG(() => me.current)], []), ge = (e) => {
28118
28118
  let t = de.current?.querySelector(`[data-widget-id="${e}"]`);
28119
- fe.current = SG(t), pe.current = u ? CG($G(de.current, u), t) : null;
28119
+ fe.current = SG(t), pe.current = u ? CG(eK(de.current, u), t) : null;
28120
28120
  }, _e = (e) => {
28121
28121
  e && fe.current && e.replaceChildren(fe.current);
28122
28122
  }, ve = Y(0), ye = () => cancelAnimationFrame(ve.current), be = (e) => {
@@ -28134,7 +28134,7 @@ function rK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28134
28134
  }, xe = KG({
28135
28135
  config: g === !0 ? {} : g,
28136
28136
  count: e.length,
28137
- gap: eK[t],
28137
+ gap: tK[t],
28138
28138
  pinned: P ? [e.findIndex((e) => e.id === P)] : [],
28139
28139
  paused: m !== void 0
28140
28140
  }), Se = g !== !1 && m !== void 0, Ce = ({ activatorEvent: t, delta: n, active: r }) => {
@@ -28227,7 +28227,7 @@ function rK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28227
28227
  widgetId: r,
28228
28228
  children: t
28229
28229
  });
28230
- }, Me = (e, t, n) => /* @__PURE__ */ Q(tK, {
28230
+ }, Me = (e, t, n) => /* @__PURE__ */ Q(nK, {
28231
28231
  hidden: j(e),
28232
28232
  placement: n,
28233
28233
  measureRef: xe.measureRef,
@@ -28259,8 +28259,9 @@ function rK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28259
28259
  sensors: ie,
28260
28260
  collisionDetection: Zt,
28261
28261
  modifiers: he,
28262
+ accessibility: $G,
28262
28263
  onDragStart: ({ active: n }) => {
28263
- ge(String(n.id)), me.current = NG(e, de.current, eK[t]), te(IG(e, de.current)), F(String(n.id));
28264
+ ge(String(n.id)), me.current = NG(e, de.current, tK[t]), te(IG(e, de.current)), F(String(n.id));
28264
28265
  },
28265
28266
  onDragCancel: () => {
28266
28267
  F(null), ye(), fe.current = null, pe.current = null, me.current = null;
@@ -28296,7 +28297,7 @@ function rK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28296
28297
  }) : Pe,
28297
28298
  l,
28298
28299
  r == null ? null : je(e.length, /* @__PURE__ */ Q(jG, { text: r })),
28299
- !o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(nK, {
28300
+ !o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(rK, {
28300
28301
  onClick: f,
28301
28302
  label: v ?? O.widgets.addWidget,
28302
28303
  side: t
@@ -28316,7 +28317,7 @@ function rK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28316
28317
  }
28317
28318
  //#endregion
28318
28319
  //#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
28319
- var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28320
+ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28320
28321
  let a = Qn(), [o, s] = X(!1);
28321
28322
  K(() => {
28322
28323
  r && s(!0);
@@ -28346,14 +28347,14 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28346
28347
  },
28347
28348
  glyphDelayMs: o ? 90 : 220
28348
28349
  };
28349
- }, aK = {
28350
+ }, oK = {
28350
28351
  morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
28351
28352
  afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
28352
28353
  evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
28353
- }, oK = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
28354
+ }, sK = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
28354
28355
  "aria-hidden": !0,
28355
- className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", aK[e], t)
28356
- }), sK = 40, cK = 672, lK = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", uK = 16, dK = 768, fK = { display: "contents" }, pK = 150, mK = 150, hK = Cu(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, draggableWidgetContainers: l, virtualizedWidgetContainers: u = [], virtualization: d, onRemoveWidget: f, onChangeWidgetParams: p, rebuildWidget: m, renderWidgetPreview: h, onClickAddNewWidget: g, onReorderWidgets: _, tracking: v, period: y = "morning", asideWidth: b = 396, mainWidth: x = cK, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
28356
+ className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", oK[e], t)
28357
+ }), cK = 40, lK = 672, uK = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", dK = 16, fK = 768, pK = { display: "contents" }, mK = 150, hK = 150, gK = Cu(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, draggableWidgetContainers: l, virtualizedWidgetContainers: u = [], virtualization: d, onRemoveWidget: f, onChangeWidgetParams: p, rebuildWidget: m, renderWidgetPreview: h, onClickAddNewWidget: g, onReorderWidgets: _, tracking: v, period: y = "morning", asideWidth: b = 396, mainWidth: x = lK, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
28357
28358
  let A = R(), j = Qn(), M = Y(null), [N, P] = X(0), [F, I] = X(!1), [L, ee] = X(null), [te, ne] = X(0), [re, ie] = X(!1), ae = Y(null), oe = Y(null);
28358
28359
  q(function() {
28359
28360
  let e = M.current;
@@ -28369,7 +28370,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28369
28370
  let [se, ce] = X(null), le = (e) => s.includes(e), ue = (e) => le(e) && (c?.includes(e) ?? !0), de = (e) => le(e) && (l?.includes(e) ?? !0), fe = cG(), pe = cG(), me = cG(), he = (e) => u.includes(e) ? {
28370
28371
  ...d,
28371
28372
  scrollElement: e === "main" ? fe.element : pe.element
28372
- } : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x + uK + b, ve = ge && r.length > 0 && (_e || (se ?? !1)), ye = ve ? sK : b, be = ve ? A.actions.expand : A.actions.collapse, xe = ge && F, Se = N > 0 && N < dK, Ce = xe && !Se && (ve || N >= dK), we = {
28373
+ } : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x + dK + b, ve = ge && r.length > 0 && (_e || (se ?? !1)), ye = ve ? cK : b, be = ve ? A.actions.expand : A.actions.collapse, xe = ge && F, Se = N > 0 && N < fK, Ce = xe && !Se && (ve || N >= fK), we = {
28373
28374
  pinned: r.filter((e) => e.locked),
28374
28375
  rest: r.filter((e) => !e.locked)
28375
28376
  }, [Te, Ee] = X({}), De = Y(/* @__PURE__ */ new Map()), Oe = (e) => {
@@ -28387,7 +28388,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28387
28388
  ...Ae.slice(0, C).map(je),
28388
28389
  ...we.pinned.map((e) => /* @__PURE__ */ Q("div", {
28389
28390
  ref: Oe(e.id),
28390
- style: fK
28391
+ style: pK
28391
28392
  }, `pin-host-${e.id}`)),
28392
28393
  ...Ae.slice(C).map((e, t) => je(e, C + t))
28393
28394
  ], Ne = ve ? r.find((e) => e.id === L) : void 0;
@@ -28398,7 +28399,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28398
28399
  oe.current && clearTimeout(oe.current), ae.current && clearTimeout(ae.current);
28399
28400
  };
28400
28401
  }, []);
28401
- let Pe = iK({
28402
+ let Pe = aK({
28402
28403
  collapsed: ve,
28403
28404
  open: Ne != null,
28404
28405
  glide: re,
@@ -28432,7 +28433,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28432
28433
  }, Ve = () => {
28433
28434
  oe.current && clearTimeout(oe.current), oe.current = null;
28434
28435
  }, He = () => {
28435
- Be(), Ve(), ae.current = setTimeout(() => ee(null), pK);
28436
+ Be(), Ve(), ae.current = setTimeout(() => ee(null), mK);
28436
28437
  }, Ue = (e, t) => {
28437
28438
  Ve();
28438
28439
  let n = M.current;
@@ -28442,7 +28443,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28442
28443
  }
28443
28444
  ie(Le.current != null), ee(e);
28444
28445
  }, We = (e, t, n = !1) => {
28445
- Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), mK));
28446
+ Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), hK));
28446
28447
  }, Ge = /* @__PURE__ */ $(V.div, {
28447
28448
  ref: (e) => {
28448
28449
  M.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
@@ -28465,7 +28466,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28465
28466
  left: -S,
28466
28467
  right: -S
28467
28468
  },
28468
- children: /* @__PURE__ */ Q(oK, { period: y })
28469
+ children: /* @__PURE__ */ Q(sK, { period: y })
28469
28470
  }),
28470
28471
  /* @__PURE__ */ $(KU, {
28471
28472
  order: 0,
@@ -28493,7 +28494,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28493
28494
  }),
28494
28495
  /* @__PURE__ */ Q("div", {
28495
28496
  ref: fe.ref,
28496
- className: B("relative isolate min-h-0 overflow-y-auto", lK),
28497
+ className: B("relative isolate min-h-0 overflow-y-auto", uK),
28497
28498
  style: {
28498
28499
  gridColumn: 1,
28499
28500
  gridRow: 2,
@@ -28504,17 +28505,17 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28504
28505
  marginLeft: -S,
28505
28506
  paddingLeft: S,
28506
28507
  marginRight: Ce ? -16 : -S,
28507
- paddingRight: Ce ? uK : S,
28508
+ paddingRight: Ce ? dK : S,
28508
28509
  ...fe.style
28509
28510
  },
28510
- children: /* @__PURE__ */ Q(rK, {
28511
+ children: /* @__PURE__ */ Q(iK, {
28511
28512
  side: "main",
28512
28513
  className: "relative mx-auto w-full [anchor-name:--f0-composer-column]",
28513
28514
  style: { maxWidth: `${x}px` },
28514
28515
  widgets: n,
28515
28516
  afterWidgets: we.rest.map((e) => /* @__PURE__ */ Q("div", {
28516
28517
  ref: Oe(e.id),
28517
- style: fK
28518
+ style: pK
28518
28519
  }, `loose-host-${e.id}`)),
28519
28520
  footnote: t,
28520
28521
  slotRenderers: a,
@@ -28537,7 +28538,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28537
28538
  }),
28538
28539
  /* @__PURE__ */ Q(Bn, { children: Se || !xe || !ve ? null : /* @__PURE__ */ $(V.aside, {
28539
28540
  ref: me.ref,
28540
- className: B("-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", lK),
28541
+ className: B("-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", uK),
28541
28542
  style: {
28542
28543
  gridColumn: 2,
28543
28544
  gridRow: 2,
@@ -28582,7 +28583,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28582
28583
  xe ? /* @__PURE__ */ Q(V.aside, {
28583
28584
  ref: pe.ref,
28584
28585
  hidden: Se || Fe && Pe.panelHidden,
28585
- className: B("min-h-0 overflow-y-auto overflow-x-hidden", lK, Fe && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", Pe.mode === "retracting" && "relative z-10"),
28586
+ className: B("min-h-0 overflow-y-auto overflow-x-hidden", uK, Fe && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", Pe.mode === "retracting" && "relative z-10"),
28586
28587
  style: ze,
28587
28588
  initial: !1,
28588
28589
  animate: {
@@ -28594,7 +28595,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28594
28595
  transition: Pe.transition,
28595
28596
  onMouseEnter: ve ? Be : void 0,
28596
28597
  onMouseLeave: ve ? He : void 0,
28597
- children: /* @__PURE__ */ Q(rK, {
28598
+ children: /* @__PURE__ */ Q(iK, {
28598
28599
  side: "right",
28599
28600
  widgets: r,
28600
28601
  visibleWidgetId: !Se && Fe ? Re : void 0,
@@ -28636,36 +28637,36 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28636
28637
  tracking: v,
28637
28638
  children: Ge
28638
28639
  });
28639
- }), gK = (e) => e ? di[e] : void 0, _K = (e) => e.type === "icon" ? {
28640
+ }), _K = (e) => e ? di[e] : void 0, vK = (e) => e.type === "icon" ? {
28640
28641
  ...e,
28641
- icon: gK(e.icon) ?? dr
28642
- } : e, vK = (e, t, n) => ({
28642
+ icon: _K(e.icon) ?? dr
28643
+ } : e, yK = (e, t, n) => ({
28643
28644
  ...e.type === "navigate" && DG(e.href) ? { href: e.href } : {},
28644
28645
  onClick: () => n(e, t)
28645
- }), yK = (e, t, n) => ({
28646
+ }), bK = (e, t, n) => ({
28646
28647
  label: e.label,
28647
- icon: gK(e.icon),
28648
+ icon: _K(e.icon),
28648
28649
  variant: e.variant,
28649
- ...vK(e.action, t, n)
28650
- }), bK = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(mG, {
28650
+ ...yK(e.action, t, n)
28651
+ }), xK = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(mG, {
28651
28652
  headless: !e,
28652
28653
  header: e ? { title: e } : void 0,
28653
28654
  fullHeight: i,
28654
28655
  slots: t,
28655
28656
  loading: n,
28656
28657
  slotRenderers: r
28657
- }), xK = "agentic-empty-state", SK = [
28658
+ }), SK = "agentic-empty-state", CK = [
28658
28659
  "default",
28659
28660
  "outline",
28660
28661
  "neutral",
28661
28662
  "promote"
28662
- ], CK = (e) => SK.find((t) => t === e), wK = ({ empty: e, elementId: t, onAction: n }) => {
28663
+ ], wK = (e) => CK.find((t) => t === e), TK = ({ empty: e, elementId: t, onAction: n }) => {
28663
28664
  let r = R(), 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) => ({
28664
28665
  label: e.label,
28665
- icon: gK(e.icon),
28666
- variant: CK(e.variant),
28666
+ icon: _K(e.icon),
28667
+ variant: wK(e.variant),
28667
28668
  onClick: () => n(e.action, t ? { elementId: t } : {})
28668
- })), s = J(() => ({ [xK]: () => /* @__PURE__ */ Q(E, {
28669
+ })), s = J(() => ({ [SK]: () => /* @__PURE__ */ Q(E, {
28669
28670
  title: i,
28670
28671
  description: a,
28671
28672
  emoji: e?.emoji ?? "📭",
@@ -28676,27 +28677,27 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28676
28677
  e?.emoji,
28677
28678
  o
28678
28679
  ]);
28679
- return /* @__PURE__ */ Q(bK, {
28680
+ return /* @__PURE__ */ Q(xK, {
28680
28681
  slots: [{
28681
- visualization: xK,
28682
+ visualization: SK,
28682
28683
  params: {}
28683
28684
  }],
28684
28685
  slotRenderers: s
28685
28686
  });
28686
- }, TK = ({ message: e }) => {
28687
- let t = R(), n = J(() => ({ [xK]: () => /* @__PURE__ */ Q(E, {
28687
+ }, EK = ({ message: e }) => {
28688
+ let t = R(), n = J(() => ({ [SK]: () => /* @__PURE__ */ Q(E, {
28688
28689
  variant: "critical",
28689
28690
  title: t.collections.emptyStates.error.title,
28690
28691
  description: e ?? t.collections.emptyStates.error.description
28691
28692
  }) }), [t, e]);
28692
- return /* @__PURE__ */ Q(bK, {
28693
+ return /* @__PURE__ */ Q(xK, {
28693
28694
  slots: [{
28694
- visualization: xK,
28695
+ visualization: SK,
28695
28696
  params: {}
28696
28697
  }],
28697
28698
  slotRenderers: n
28698
28699
  });
28699
- }, EK = (e) => {
28700
+ }, DK = (e) => {
28700
28701
  switch (e.type) {
28701
28702
  case "stats": return e.stats;
28702
28703
  case "charts": return e.charts;
@@ -28707,15 +28708,15 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28707
28708
  case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
28708
28709
  case "text": return [];
28709
28710
  }
28710
- }, DK = (e, t, n, r) => {
28711
+ }, OK = (e, t, n, r) => {
28711
28712
  let i = t?.itemActions;
28712
- if (i) for (let t of EK(e)) (!t.action || !i.includes(t.action.type)) && r.push({
28713
+ if (i) for (let t of DK(e)) (!t.action || !i.includes(t.action.type)) && r.push({
28713
28714
  rule: "itemAction",
28714
28715
  ...n,
28715
28716
  itemId: t.id,
28716
28717
  expected: i
28717
28718
  });
28718
- }, OK = {
28719
+ }, kK = {
28719
28720
  stats: 3,
28720
28721
  charts: 2,
28721
28722
  list: 3,
@@ -28723,7 +28724,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28723
28724
  events: 2,
28724
28725
  posts: 1,
28725
28726
  widget: 3
28726
- }, kK = (e) => Math.max(1, e.expectedItemsCount ?? OK[e.type]), AK = (e) => {
28727
+ }, AK = (e) => Math.max(1, e.expectedItemsCount ?? kK[e.type]), jK = (e) => {
28727
28728
  switch (e.type) {
28728
28729
  case "stats": return e.stats.length;
28729
28730
  case "charts": return e.charts.length;
@@ -28734,7 +28735,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28734
28735
  case "shortcuts": return e.shortcuts.length;
28735
28736
  case "text": return 1;
28736
28737
  }
28737
- }, jK = (e, t) => {
28738
+ }, MK = (e, t) => {
28738
28739
  switch (e.type) {
28739
28740
  case "stats": return {
28740
28741
  ...e,
@@ -28766,22 +28767,22 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28766
28767
  };
28767
28768
  case "text": return e;
28768
28769
  }
28769
- }, MK = (e, t) => e.blocks?.find((e) => e.type === t), NK = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, PK = (e, t, n, r) => {
28770
- let i = MK(n, e.type)?.maxItems, a = AK(e);
28770
+ }, NK = (e, t) => e.blocks?.find((e) => e.type === t), PK = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, FK = (e, t, n, r) => {
28771
+ let i = NK(n, e.type)?.maxItems, a = jK(e);
28771
28772
  return i === void 0 || a <= i ? e : (r.push({
28772
28773
  rule: "maxItems",
28773
28774
  elementId: t,
28774
28775
  blockType: e.type,
28775
28776
  limit: i,
28776
28777
  count: a
28777
- }), jK(e, i));
28778
- }, FK = (e, t) => {
28779
- let n = e.type === "widget" ? void 0 : MK(t, e.type)?.maxItems;
28780
- return n !== void 0 && kK(e) > n ? {
28778
+ }), MK(e, i));
28779
+ }, IK = (e, t) => {
28780
+ let n = e.type === "widget" ? void 0 : NK(t, e.type)?.maxItems;
28781
+ return n !== void 0 && AK(e) > n ? {
28781
28782
  ...e,
28782
28783
  expectedItemsCount: Math.max(1, n)
28783
28784
  } : e;
28784
- }, IK = (e, t, n) => t === n || (t === "widget" || n === "widget") && !MK(e, "widget") || (MK(e, t)?.combinesWith?.includes(n) ?? !0) && (MK(e, n)?.combinesWith?.includes(t) ?? !0), LK = (e, t) => {
28785
+ }, LK = (e, t, n) => t === n || (t === "widget" || n === "widget") && !NK(e, "widget") || (NK(e, t)?.combinesWith?.includes(n) ?? !0) && (NK(e, n)?.combinesWith?.includes(t) ?? !0), RK = (e, t) => {
28785
28786
  let n = t ? e.lead : void 0;
28786
28787
  if (!n) return e;
28787
28788
  let r = new Set(n.blocks?.map((e) => e.type));
@@ -28789,30 +28790,30 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28789
28790
  ...e,
28790
28791
  ...n,
28791
28792
  blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
28792
- ...MK(e, t.type),
28793
+ ...NK(e, t.type),
28793
28794
  ...t
28794
28795
  }))]
28795
28796
  };
28796
- }, RK = (e, t) => {
28797
+ }, zK = (e, t) => {
28797
28798
  let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
28798
28799
  return {
28799
28800
  missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
28800
28801
  undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
28801
28802
  };
28802
- }, zK = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", BK = (e) => typeof e == "object" && !!e, VK = (e) => BK(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, HK = (e, t, n = []) => {
28803
- if (Array.isArray(e)) for (let r of e) HK(r, VK(r) ?? t, n);
28804
- else if (BK(e)) {
28805
- if (zK(e)) n.push(t ? {
28803
+ }, BK = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", VK = (e) => typeof e == "object" && !!e, HK = (e) => VK(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, UK = (e, t, n = []) => {
28804
+ if (Array.isArray(e)) for (let r of e) UK(r, HK(r) ?? t, n);
28805
+ else if (VK(e)) {
28806
+ if (BK(e)) n.push(t ? {
28806
28807
  action: e,
28807
28808
  itemId: t
28808
28809
  } : { action: e });
28809
- else for (let r of Object.values(e)) HK(r, t, n);
28810
+ else for (let r of Object.values(e)) UK(r, t, n);
28810
28811
  }
28811
28812
  return n;
28812
- }, UK = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], WK = (e, t, n) => HK(e).flatMap(({ action: e, itemId: r }) => {
28813
+ }, WK = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], GK = (e, t, n) => UK(e).flatMap(({ action: e, itemId: r }) => {
28813
28814
  let i = t.find(({ id: t }) => t === e.id);
28814
28815
  if (!i) return [];
28815
- let a = RK(i, e.params);
28816
+ let a = zK(i, e.params);
28816
28817
  return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
28817
28818
  rule: "accessoryViewParams",
28818
28819
  viewId: i.id,
@@ -28821,39 +28822,39 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28821
28822
  ...r && r !== n.elementId ? { itemId: r } : {},
28822
28823
  ...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
28823
28824
  }];
28824
- }), GK = (e, t, n) => [...WK([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? WK(e, t, {
28825
+ }), KK = (e, t, n) => [...GK([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? GK(e, t, {
28825
28826
  elementId: e.id,
28826
28827
  accessoryViewId: n
28827
- }) : [])], KK = (e) => {
28828
+ }) : [])], qK = (e) => {
28828
28829
  let t = e.accessoryViews ?? [];
28829
- return UK([...e.sections.flatMap((e) => GK(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => GK(n, t, e.id)), ...WK(e.actions, t, { accessoryViewId: e.id })])]);
28830
- }, qK = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
28830
+ return WK([...e.sections.flatMap((e) => KK(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => KK(n, t, e.id)), ...GK(e.actions, t, { accessoryViewId: e.id })])]);
28831
+ }, JK = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
28831
28832
  rule: "sectionLink",
28832
28833
  ...t,
28833
28834
  ...i ? { itemId: i } : {},
28834
28835
  targetSectionId: r.sectionId
28835
- }), !1), JK = (e, t) => {
28836
+ }), !1), YK = (e, t) => {
28836
28837
  if (t(e.action, e.id)) return e;
28837
28838
  let { action: n, ...r } = e;
28838
28839
  return r;
28839
- }, YK = (e, t) => {
28840
+ }, XK = (e, t) => {
28840
28841
  switch (e.type) {
28841
28842
  case "stats": return {
28842
28843
  ...e,
28843
- stats: e.stats.map((e) => JK(e, t))
28844
+ stats: e.stats.map((e) => YK(e, t))
28844
28845
  };
28845
28846
  case "charts": return {
28846
28847
  ...e,
28847
- charts: e.charts.map((e) => JK(e, t))
28848
+ charts: e.charts.map((e) => YK(e, t))
28848
28849
  };
28849
28850
  case "events": return {
28850
28851
  ...e,
28851
- events: e.events.map((e) => JK(e, t))
28852
+ events: e.events.map((e) => YK(e, t))
28852
28853
  };
28853
28854
  case "list": return {
28854
28855
  ...e,
28855
28856
  rows: e.rows.map((e) => ({
28856
- ...JK(e, t),
28857
+ ...YK(e, t),
28857
28858
  actions: e.actions?.filter((n) => t(n.action, e.id))
28858
28859
  }))
28859
28860
  };
@@ -28865,24 +28866,24 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28865
28866
  case "posts":
28866
28867
  case "text": return e;
28867
28868
  }
28868
- }, XK = (e, t, n, r) => YK(e, qK(t, n, r)), ZK = (e, t) => {
28869
+ }, ZK = (e, t, n, r) => XK(e, JK(t, n, r)), QK = (e, t) => {
28869
28870
  let n = new Set(e.map((e) => e.id));
28870
28871
  return e.map((e) => {
28871
- let r = qK(n, { sectionId: e.id }, t);
28872
+ let r = JK(n, { sectionId: e.id }, t);
28872
28873
  return {
28873
28874
  ...e,
28874
28875
  actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
28875
28876
  followUps: e.followUps?.filter((e) => r(e.action)),
28876
- elements: e.elements.map((r) => r.type === "shortcuts" ? YK(r, qK(n, {
28877
+ elements: e.elements.map((r) => r.type === "shortcuts" ? XK(r, JK(n, {
28877
28878
  sectionId: e.id,
28878
28879
  elementId: r.id
28879
28880
  }, t)) : r)
28880
28881
  };
28881
28882
  });
28882
- }, QK = (e) => e.widget ? "widget" : e.block.type, $K = (e, t) => QK(t) === e.type, eq = (e, t, n) => {
28883
+ }, $K = (e) => e.widget ? "widget" : e.block.type, eq = (e, t) => $K(t) === e.type, tq = (e, t, n) => {
28883
28884
  let r = /* @__PURE__ */ new Map();
28884
28885
  e.sections.forEach((e, n) => {
28885
- let i = LK(t, n === 0);
28886
+ let i = RK(t, n === 0);
28886
28887
  for (let t of e.elements) r.set(t.id, {
28887
28888
  element: t,
28888
28889
  rules: i,
@@ -28902,23 +28903,23 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28902
28903
  });
28903
28904
  }
28904
28905
  return r;
28905
- }, tq = (e, t, n, r = []) => {
28906
- let i = new Set(t.sections.map((e) => e.id)), a = eq(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
28906
+ }, nq = (e, t, n, r = []) => {
28907
+ let i = new Set(t.sections.map((e) => e.id)), a = tq(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
28907
28908
  let n = a.get(e);
28908
28909
  if (!n || t.status !== "ready") return [e, t];
28909
28910
  let r = [], s = t;
28910
- if (!$K(n.element, t)) r.push({
28911
+ if (!eq(n.element, t)) r.push({
28911
28912
  rule: "sourceType",
28912
28913
  elementId: e,
28913
28914
  expected: n.element.type,
28914
- received: QK(t)
28915
+ received: $K(t)
28915
28916
  });
28916
28917
  else if (t.block) {
28917
28918
  let a = {
28918
28919
  sectionId: n.sectionId,
28919
28920
  elementId: e
28920
- }, o = XK(PK(t.block, e, n.rules, r), i, a, r);
28921
- DK(o, MK(n.rules, o.type), a, r), s = {
28921
+ }, o = ZK(FK(t.block, e, n.rules, r), i, a, r);
28922
+ OK(o, NK(n.rules, o.type), a, r), s = {
28922
28923
  ...t,
28923
28924
  block: o
28924
28925
  };
@@ -28929,25 +28930,25 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28929
28930
  } : e)), [e, s];
28930
28931
  }), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
28931
28932
  let n = a.get(e);
28932
- return n && t.status === "ready" && t.block ? WK(t.block, c, {
28933
+ return n && t.status === "ready" && t.block ? GK(t.block, c, {
28933
28934
  elementId: e,
28934
28935
  accessoryViewId: n.accessoryViewId
28935
28936
  }) : [];
28936
28937
  });
28937
28938
  return {
28938
28939
  sources: Object.fromEntries(s),
28939
- violations: [...o, ...UK(l)]
28940
+ violations: [...o, ...WK(l)]
28940
28941
  };
28941
- }, nq = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
28942
+ }, rq = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
28942
28943
  "data-agentic-card": "",
28943
28944
  className: B("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
28944
28945
  children: t
28945
- }), rq = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", iq = ({ label: e, press: t }) => {
28946
+ }), iq = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", aq = ({ label: e, press: t }) => {
28946
28947
  if (!t) return /* @__PURE__ */ Q(Tl, {
28947
28948
  variant: "label",
28948
28949
  content: e
28949
28950
  });
28950
- let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", rq, Dn());
28951
+ let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", iq, Dn());
28951
28952
  return t.href ? /* @__PURE__ */ Q(Un, {
28952
28953
  href: t.href,
28953
28954
  onClick: t.onClick,
@@ -28963,9 +28964,9 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28963
28964
  className: B("cursor-pointer", n),
28964
28965
  children: e
28965
28966
  });
28966
- }, aq = (e) => {
28967
+ }, oq = (e) => {
28967
28968
  if (!e) return;
28968
- let t = oq(e.type === "percent" ? {
28969
+ let t = sq(e.type === "percent" ? {
28969
28970
  style: "percent",
28970
28971
  maximumFractionDigits: 1
28971
28972
  } : e.type === "compact" ? {
@@ -28976,27 +28977,27 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28976
28977
  currency: e.currency
28977
28978
  } : {});
28978
28979
  return (e) => t.format(e);
28979
- }, oq = (e) => {
28980
+ }, sq = (e) => {
28980
28981
  try {
28981
28982
  return new Intl.NumberFormat(void 0, e);
28982
28983
  } catch {
28983
28984
  return new Intl.NumberFormat();
28984
28985
  }
28985
- }, sq = ({ spec: e, label: t, format: n }) => {
28986
- let r = aq(n);
28986
+ }, cq = ({ spec: e, label: t, format: n }) => {
28987
+ let r = oq(n);
28987
28988
  return /* @__PURE__ */ Q(Ze, {
28988
28989
  ...e,
28989
28990
  ariaLabel: t,
28990
28991
  valueFormatter: r
28991
28992
  });
28992
- }, cq = ({ chart: e, press: t }) => /* @__PURE__ */ $(ws, {
28993
+ }, lq = ({ chart: e, press: t }) => /* @__PURE__ */ $(ws, {
28993
28994
  display: "flex",
28994
28995
  flexDirection: "column",
28995
28996
  gap: "md",
28996
28997
  children: [/* @__PURE__ */ $(ws, {
28997
28998
  display: "flex",
28998
28999
  flexDirection: "column",
28999
- children: [/* @__PURE__ */ Q(iq, {
29000
+ children: [/* @__PURE__ */ Q(aq, {
29000
29001
  label: e.label,
29001
29002
  press: t
29002
29003
  }), e.caption ? /* @__PURE__ */ Q(Tl, {
@@ -29005,24 +29006,24 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29005
29006
  }) : null]
29006
29007
  }), /* @__PURE__ */ Q("div", {
29007
29008
  className: "h-48 w-full",
29008
- children: /* @__PURE__ */ Q(sq, {
29009
+ children: /* @__PURE__ */ Q(cq, {
29009
29010
  spec: e.chart,
29010
29011
  label: e.label,
29011
29012
  format: e.format
29012
29013
  })
29013
29014
  })]
29014
- }), lq = 300, uq = 7, dq = 14, fq = 5, pq = 18, mq = 3, hq = (e) => Math.max(0, ...e.map((e) => e.length)), gq = (e) => {
29015
+ }), uq = 300, dq = 7, fq = 14, pq = 5, mq = 18, hq = 3, gq = (e) => Math.max(0, ...e.map((e) => e.length)), _q = (e) => {
29015
29016
  if (e.type === "pie") {
29016
29017
  let t = e.series.data.map((e) => e.name);
29017
- return t.length > fq || hq(t) > pq;
29018
+ return t.length > pq || gq(t) > mq;
29018
29019
  }
29019
- if (e.series.length > mq) return !0;
29020
- if (e.type === "bar" && e.orientation === "horizontal") return hq(e.categories) > dq;
29021
- let t = lq / Math.max(1, e.categories.length);
29022
- return hq(e.categories) * uq > t;
29023
- }, _q = (e) => {
29020
+ if (e.series.length > hq) return !0;
29021
+ if (e.type === "bar" && e.orientation === "horizontal") return gq(e.categories) > fq;
29022
+ let t = uq / Math.max(1, e.categories.length);
29023
+ return gq(e.categories) * dq > t;
29024
+ }, vq = (e) => {
29024
29025
  if (e.length === 1) return ["full"];
29025
- let t = e.map((e) => gq(e.chart) ? "full" : "half"), n = 0;
29026
+ let t = e.map((e) => _q(e.chart) ? "full" : "half"), n = 0;
29026
29027
  return t.forEach((e, r) => {
29027
29028
  if (e === "half" && (n += 1), (e === "full" || r === t.length - 1) && n % 2 == 1) {
29028
29029
  let n = e === "half" ? r : r - 1;
@@ -29030,42 +29031,42 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29030
29031
  }
29031
29032
  e === "full" && (n = 0);
29032
29033
  }), t;
29033
- }, vq = "agentic-chart", yq = { [vq]: (e) => /* @__PURE__ */ Q(cq, { ...e }) }, bq = ({ charts: e, elementId: t, onAction: n }) => {
29034
- let r = _q(e);
29034
+ }, yq = "agentic-chart", bq = { [yq]: (e) => /* @__PURE__ */ Q(lq, { ...e }) }, xq = ({ charts: e, elementId: t, onAction: n }) => {
29035
+ let r = vq(e);
29035
29036
  return /* @__PURE__ */ Q("div", {
29036
29037
  className: "grid w-full max-w-content grid-cols-1 gap-4 sm:grid-cols-2",
29037
29038
  children: e.map((e, i) => {
29038
- let a = e.action ? vK(e.action, {
29039
+ let a = e.action ? yK(e.action, {
29039
29040
  elementId: t,
29040
29041
  itemId: e.id
29041
29042
  }, n) : void 0;
29042
29043
  return /* @__PURE__ */ Q("div", {
29043
29044
  "data-chart-span": r[i],
29044
29045
  className: r[i] === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
29045
- children: /* @__PURE__ */ Q(nq, {
29046
+ children: /* @__PURE__ */ Q(rq, {
29046
29047
  press: a,
29047
- children: /* @__PURE__ */ Q(bK, {
29048
+ children: /* @__PURE__ */ Q(xK, {
29048
29049
  fullHeight: !0,
29049
29050
  slots: [{
29050
- visualization: vq,
29051
+ visualization: yq,
29051
29052
  params: {
29052
29053
  chart: e,
29053
29054
  press: a
29054
29055
  }
29055
29056
  }],
29056
- slotRenderers: yq
29057
+ slotRenderers: bq
29057
29058
  })
29058
29059
  })
29059
29060
  }, e.id);
29060
29061
  })
29061
29062
  });
29062
- }, xq = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29063
+ }, Sq = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29063
29064
  display: "flex",
29064
29065
  flexDirection: "column",
29065
29066
  gap: "md",
29066
- children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(bK, { slots: [CW("event-list", { events: [{
29067
+ children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(xK, { slots: [CW("event-list", { events: [{
29067
29068
  ...s,
29068
- ...o ? vK(o, {
29069
+ ...o ? yK(o, {
29069
29070
  elementId: t,
29070
29071
  itemId: e
29071
29072
  }, n) : {},
@@ -29074,22 +29075,22 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29074
29075
  fromDate: r ? new Date(r) : void 0,
29075
29076
  toDate: i ? new Date(i) : void 0
29076
29077
  }] })] }, e))
29077
- }), Sq = ({ action: e, rows: t, ...n }, r, i) => ({
29078
+ }), Cq = ({ action: e, rows: t, ...n }, r, i) => ({
29078
29079
  ...n,
29079
29080
  href: DG(n.href),
29080
29081
  ...e ? {
29081
29082
  href: void 0,
29082
- ...vK(e, {
29083
+ ...yK(e, {
29083
29084
  elementId: r,
29084
29085
  itemId: n.id
29085
29086
  }, i)
29086
29087
  } : {},
29087
- avatar: n.avatar && _K(n.avatar),
29088
- rightAvatar: n.rightAvatar && _K(n.rightAvatar),
29089
- avatars: n.avatars?.map(_K),
29088
+ avatar: n.avatar && vK(n.avatar),
29089
+ rightAvatar: n.rightAvatar && vK(n.rightAvatar),
29090
+ avatars: n.avatars?.map(vK),
29090
29091
  actions: n.actions?.map((e) => ({
29091
29092
  label: e.label,
29092
- icon: gK(e.icon),
29093
+ icon: _K(e.icon),
29093
29094
  critical: e.critical,
29094
29095
  showLabel: e.showLabel,
29095
29096
  onClick: () => i(e.action, {
@@ -29097,19 +29098,19 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29097
29098
  itemId: n.id
29098
29099
  })
29099
29100
  }))
29100
- }), Cq = (e, t, n) => ({
29101
- ...Sq(e, t, n),
29102
- items: e.rows?.map((e) => Sq(e, t, n))
29103
- }), wq = (e) => e.rows.flatMap((e) => [e, ...e.rows ?? []]).some(({ action: e }) => e?.type === "navigate") ? {
29101
+ }), wq = (e, t, n) => ({
29102
+ ...Cq(e, t, n),
29103
+ items: e.rows?.map((e) => Cq(e, t, n))
29104
+ }), Tq = (e) => e.rows.flatMap((e) => [e, ...e.rows ?? []]).some(({ action: e }) => e?.type === "navigate") ? {
29104
29105
  ...e.schema,
29105
29106
  clickBehavior: "link"
29106
- } : e.schema, Tq = (e, t, n) => [{
29107
+ } : e.schema, Eq = (e, t, n) => [{
29107
29108
  visualization: "list",
29108
29109
  params: {
29109
- schema: wq(e),
29110
- items: e.rows.map((e) => Cq(e, t, n))
29110
+ schema: Tq(e),
29111
+ items: e.rows.map((e) => wq(e, t, n))
29111
29112
  }
29112
- }], Eq = ({ className: e, children: t }) => {
29113
+ }], Dq = ({ className: e, children: t }) => {
29113
29114
  let n = Y(null), r = qt(n);
29114
29115
  return /* @__PURE__ */ Q("div", {
29115
29116
  ref: n,
@@ -29119,7 +29120,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29119
29120
  children: t
29120
29121
  })
29121
29122
  });
29122
- }, Dq = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(ws, {
29123
+ }, Oq = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(ws, {
29123
29124
  display: "flex",
29124
29125
  flexDirection: "column",
29125
29126
  gap: "md",
@@ -29127,18 +29128,18 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29127
29128
  children: [e.title ? /* @__PURE__ */ Q("h3", {
29128
29129
  className: "m-0 text-lg font-normal text-f1-foreground-secondary",
29129
29130
  children: e.title
29130
- }) : null, /* @__PURE__ */ Q(Eq, {
29131
+ }) : null, /* @__PURE__ */ Q(Dq, {
29131
29132
  className: "text-lg [&_[data-list-row]]:gap-4",
29132
- children: /* @__PURE__ */ Q(pG, { slots: Tq(e, t, n) })
29133
+ children: /* @__PURE__ */ Q(pG, { slots: Eq(e, t, n) })
29133
29134
  })]
29134
- }), Oq = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(Dq, {
29135
+ }), kq = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(Oq, {
29135
29136
  content: e,
29136
29137
  elementId: t,
29137
29138
  onAction: n
29138
- }) : /* @__PURE__ */ Q(bK, {
29139
+ }) : /* @__PURE__ */ Q(xK, {
29139
29140
  title: e.title,
29140
- slots: Tq(e, t, n)
29141
- }), kq = ({ posts: e }) => /* @__PURE__ */ Q(ws, {
29141
+ slots: Eq(e, t, n)
29142
+ }), Aq = ({ posts: e }) => /* @__PURE__ */ Q(ws, {
29142
29143
  display: "flex",
29143
29144
  flexDirection: "column",
29144
29145
  gap: "md",
@@ -29150,7 +29151,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29150
29151
  createdAt: new Date(e)
29151
29152
  }
29152
29153
  }, n.id))
29153
- }), Aq = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29154
+ }), jq = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29154
29155
  display: "flex",
29155
29156
  flexWrap: "wrap",
29156
29157
  gap: "sm",
@@ -29158,27 +29159,27 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29158
29159
  variant: "neutral",
29159
29160
  size: "md",
29160
29161
  label: e.label,
29161
- icon: gK(e.icon),
29162
- ...vK(e.action, {
29162
+ icon: _K(e.icon),
29163
+ ...yK(e.action, {
29163
29164
  elementId: t,
29164
29165
  itemId: e.id
29165
29166
  }, n)
29166
29167
  }, e.id))
29167
- }), jq = "agentic-stats", Mq = {
29168
+ }), Mq = "agentic-stats", Nq = {
29168
29169
  positive: "text-f1-foreground-positive",
29169
29170
  negative: "text-f1-foreground-critical",
29170
29171
  neutral: "text-f1-foreground-secondary"
29171
- }, Nq = (e, t, n) => ({
29172
- visualization: jq,
29172
+ }, Pq = (e, t, n) => ({
29173
+ visualization: Mq,
29173
29174
  params: { stats: e.map((e) => ({
29174
29175
  stat: e,
29175
- press: e.action ? vK(e.action, {
29176
+ press: e.action ? yK(e.action, {
29176
29177
  elementId: t,
29177
29178
  itemId: e.id
29178
29179
  }, n) : void 0
29179
29180
  })) }
29180
- }), Pq = ({ stat: e, press: t }) => {
29181
- let n = gK(e.icon);
29181
+ }), Fq = ({ stat: e, press: t }) => {
29182
+ let n = _K(e.icon);
29182
29183
  return /* @__PURE__ */ $(ws, {
29183
29184
  display: "flex",
29184
29185
  flexDirection: "column",
@@ -29202,7 +29203,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29202
29203
  children: [e.eyebrow ? /* @__PURE__ */ Q(Tl, {
29203
29204
  variant: "description",
29204
29205
  content: e.eyebrow
29205
- }) : null, /* @__PURE__ */ Q(iq, {
29206
+ }) : null, /* @__PURE__ */ Q(aq, {
29206
29207
  label: e.label,
29207
29208
  press: t
29208
29209
  })]
@@ -29222,7 +29223,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29222
29223
  className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
29223
29224
  }) : null, e.value]
29224
29225
  }), e.trend ? /* @__PURE__ */ Q("span", {
29225
- className: B("text-base font-medium", Mq[e.trend.tone ?? "neutral"]),
29226
+ className: B("text-base font-medium", Nq[e.trend.tone ?? "neutral"]),
29226
29227
  children: e.trend.text
29227
29228
  }) : null]
29228
29229
  }), e.caption ? /* @__PURE__ */ Q(Tl, {
@@ -29231,59 +29232,59 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29231
29232
  }) : null]
29232
29233
  })]
29233
29234
  });
29234
- }, Fq = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", Iq = (e, t) => {
29235
+ }, Iq = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", Lq = (e, t) => {
29235
29236
  let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
29236
29237
  return Math.ceil(Math.max(1, e) / r);
29237
- }, Lq = ({ stats: e }) => {
29238
+ }, Rq = ({ stats: e }) => {
29238
29239
  let t = Y(null), { width: n } = Wn({
29239
29240
  ref: t,
29240
29241
  box: "border-box"
29241
- }), r = Iq(e.length, n || 712);
29242
+ }), r = Lq(e.length, n || 712);
29242
29243
  return /* @__PURE__ */ Q("div", {
29243
29244
  ref: t,
29244
- className: B("-m-4", Fq),
29245
+ className: B("-m-4", Iq),
29245
29246
  children: /* @__PURE__ */ Q("div", {
29246
29247
  className: "-mb-px -mr-px flex flex-wrap",
29247
29248
  children: e.map(({ stat: e, press: t }) => /* @__PURE__ */ Q("div", {
29248
29249
  "data-agentic-card": "",
29249
29250
  className: B("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"),
29250
29251
  style: { flexBasis: `${100 / r}%` },
29251
- children: /* @__PURE__ */ Q(Pq, {
29252
+ children: /* @__PURE__ */ Q(Fq, {
29252
29253
  stat: e,
29253
29254
  press: t
29254
29255
  })
29255
29256
  }, e.id))
29256
29257
  })
29257
29258
  });
29258
- }, Rq = { [jq]: (e) => /* @__PURE__ */ Q(Lq, { ...e }) }, zq = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(bK, {
29259
- slots: [Nq(e, t, n)],
29260
- slotRenderers: Rq
29261
- }), Bq = er().use(Yn), Vq = (e) => Bq.parse(e), Hq = (e) => e.value ?? e.alt ?? (e.children ?? []).map(Hq).join(""), Uq = (e) => (e ?? []).map((e, t) => Wq(e, t)), Wq = (e, t) => {
29259
+ }, zq = { [Mq]: (e) => /* @__PURE__ */ Q(Rq, { ...e }) }, Bq = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(xK, {
29260
+ slots: [Pq(e, t, n)],
29261
+ slotRenderers: zq
29262
+ }), Vq = er().use(Yn), Hq = (e) => Vq.parse(e), Uq = (e) => e.value ?? e.alt ?? (e.children ?? []).map(Uq).join(""), Wq = (e) => (e ?? []).map((e, t) => Gq(e, t)), Gq = (e, t) => {
29262
29263
  switch (e.type) {
29263
- case "root": return Uq(e.children);
29264
+ case "root": return Wq(e.children);
29264
29265
  case "text": return e.value;
29265
29266
  case "paragraph": return /* @__PURE__ */ Q("p", {
29266
29267
  className: "m-0",
29267
- children: Uq(e.children)
29268
+ children: Wq(e.children)
29268
29269
  }, t);
29269
29270
  case "heading": return /* @__PURE__ */ Q(sn, {
29270
29271
  as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
29271
29272
  variant: "heading",
29272
- content: Hq(e)
29273
+ content: Uq(e)
29273
29274
  }, t);
29274
29275
  case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
29275
29276
  className: "m-0 flex list-decimal flex-col gap-1 pl-5",
29276
- children: Uq(e.children)
29277
+ children: Wq(e.children)
29277
29278
  }, t) : /* @__PURE__ */ Q("ul", {
29278
29279
  className: "m-0 flex list-disc flex-col gap-1 pl-5",
29279
- children: Uq(e.children)
29280
+ children: Wq(e.children)
29280
29281
  }, t);
29281
- case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? Uq(e.children) : Wq(e, t)) }, t);
29282
+ case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? Wq(e.children) : Gq(e, t)) }, t);
29282
29283
  case "strong": return /* @__PURE__ */ Q("strong", {
29283
29284
  className: "font-semibold",
29284
- children: Uq(e.children)
29285
+ children: Wq(e.children)
29285
29286
  }, t);
29286
- case "emphasis": return /* @__PURE__ */ Q("em", { children: Uq(e.children) }, t);
29287
+ case "emphasis": return /* @__PURE__ */ Q("em", { children: Wq(e.children) }, t);
29287
29288
  case "inlineCode": return /* @__PURE__ */ Q(Tl, {
29288
29289
  as: "code",
29289
29290
  variant: "code",
@@ -29301,67 +29302,67 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29301
29302
  }, t);
29302
29303
  case "link": return e.url && kG(e.url) ? /* @__PURE__ */ Q(Ka, {
29303
29304
  href: e.url,
29304
- children: Hq(e)
29305
- }, t) : Hq(e);
29305
+ children: Uq(e)
29306
+ }, t) : Uq(e);
29306
29307
  case "break": return /* @__PURE__ */ Q("br", {}, t);
29307
- default: return Hq(e);
29308
+ default: return Uq(e);
29308
29309
  }
29309
- }, Gq = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
29310
+ }, Kq = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
29310
29311
  "data-agentic-text": !0,
29311
29312
  className: B("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
29312
- children: Wq(Vq(e), 0)
29313
- }), Kq = ({ text: e, lead: t }) => /* @__PURE__ */ Q(Gq, {
29313
+ children: Gq(Hq(e), 0)
29314
+ }), qq = ({ text: e, lead: t }) => /* @__PURE__ */ Q(Kq, {
29314
29315
  text: e,
29315
29316
  lead: t
29316
- }), qq = ({ items: e }) => /* @__PURE__ */ Q(fm, { items: e.map((e) => ({
29317
+ }), Jq = ({ items: e }) => /* @__PURE__ */ Q(fm, { items: e.map((e) => ({
29317
29318
  id: e.id,
29318
29319
  status: e.status ?? "completed",
29319
- icon: gK(e.icon),
29320
+ icon: _K(e.icon),
29320
29321
  title: e.title,
29321
29322
  description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
29322
- })) }), Jq = "agentic-timeline", Yq = { [Jq]: (e) => /* @__PURE__ */ Q(qq, { items: e.items }) }, Xq = ({ items: e }) => /* @__PURE__ */ Q(bK, {
29323
+ })) }), Yq = "agentic-timeline", Xq = { [Yq]: (e) => /* @__PURE__ */ Q(Jq, { items: e.items }) }, Zq = ({ items: e }) => /* @__PURE__ */ Q(xK, {
29323
29324
  slots: [{
29324
- visualization: Jq,
29325
+ visualization: Yq,
29325
29326
  params: { items: e }
29326
29327
  }],
29327
- slotRenderers: Yq
29328
- }), Zq = ({ block: e, elementId: t, onAction: n, lead: r }) => {
29328
+ slotRenderers: Xq
29329
+ }), Qq = ({ block: e, elementId: t, onAction: n, lead: r }) => {
29329
29330
  switch (e.type) {
29330
- case "stats": return /* @__PURE__ */ Q(zq, {
29331
+ case "stats": return /* @__PURE__ */ Q(Bq, {
29331
29332
  stats: e.stats,
29332
29333
  elementId: t,
29333
29334
  onAction: n
29334
29335
  });
29335
- case "list": return /* @__PURE__ */ Q(Oq, {
29336
+ case "list": return /* @__PURE__ */ Q(kq, {
29336
29337
  content: e,
29337
29338
  elementId: t,
29338
29339
  onAction: n
29339
29340
  });
29340
- case "timeline": return /* @__PURE__ */ Q(Xq, { items: e.items });
29341
- case "events": return /* @__PURE__ */ Q(xq, {
29341
+ case "timeline": return /* @__PURE__ */ Q(Zq, { items: e.items });
29342
+ case "events": return /* @__PURE__ */ Q(Sq, {
29342
29343
  events: e.events,
29343
29344
  elementId: t,
29344
29345
  onAction: n
29345
29346
  });
29346
- case "posts": return /* @__PURE__ */ Q(kq, { posts: e.posts });
29347
- case "shortcuts": return /* @__PURE__ */ Q(Aq, {
29347
+ case "posts": return /* @__PURE__ */ Q(Aq, { posts: e.posts });
29348
+ case "shortcuts": return /* @__PURE__ */ Q(jq, {
29348
29349
  shortcuts: e.shortcuts,
29349
29350
  elementId: t,
29350
29351
  onAction: n
29351
29352
  });
29352
- case "text": return /* @__PURE__ */ Q(Kq, {
29353
+ case "text": return /* @__PURE__ */ Q(qq, {
29353
29354
  text: e.text,
29354
29355
  lead: r
29355
29356
  });
29356
- case "charts": return /* @__PURE__ */ Q(bq, {
29357
+ case "charts": return /* @__PURE__ */ Q(xq, {
29357
29358
  charts: e.charts,
29358
29359
  elementId: t,
29359
29360
  onAction: n
29360
29361
  });
29361
29362
  }
29362
- }, Qq = (e) => e % 2 == 1 && e !== 3 || e > 4, $q = ({ cards: e }) => {
29363
+ }, $q = (e) => e % 2 == 1 && e !== 3 || e > 4, eJ = ({ cards: e }) => {
29363
29364
  let t = R();
29364
- return Qq(e.length) ? /* @__PURE__ */ Q(Lt, {
29365
+ return $q(e.length) ? /* @__PURE__ */ Q(Lt, {
29365
29366
  columns: {
29366
29367
  default: 2,
29367
29368
  xs: 2,
@@ -29386,14 +29387,14 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29386
29387
  md: { columns: e.length === 3 ? "3" : "2" },
29387
29388
  children: e
29388
29389
  });
29389
- }, eJ = ({ className: e }) => /* @__PURE__ */ Q(z, { className: B("rounded-2xs motion-reduce:animate-none", e) }), tJ = "agentic-skeleton", nJ = { [tJ]: (e) => e.content }, rJ = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(bK, {
29390
+ }, tJ = ({ className: e }) => /* @__PURE__ */ Q(z, { className: B("rounded-2xs motion-reduce:animate-none", e) }), nJ = "agentic-skeleton", rJ = { [nJ]: (e) => e.content }, iJ = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(xK, {
29390
29391
  fullHeight: t,
29391
29392
  slots: [{
29392
- visualization: tJ,
29393
+ visualization: nJ,
29393
29394
  params: { content: e }
29394
29395
  }],
29395
- slotRenderers: nJ
29396
- }), iJ = (e) => Array.from({ length: e }, (e, t) => t), aJ = ({ count: e }) => /* @__PURE__ */ Q($q, { cards: iJ(e).map((e) => /* @__PURE__ */ Q(nq, { children: /* @__PURE__ */ Q(rJ, {
29396
+ slotRenderers: rJ
29397
+ }), aJ = (e) => Array.from({ length: e }, (e, t) => t), oJ = ({ count: e }) => /* @__PURE__ */ Q(eJ, { cards: aJ(e).map((e) => /* @__PURE__ */ Q(rq, { children: /* @__PURE__ */ Q(iJ, {
29397
29398
  fullHeight: !0,
29398
29399
  children: /* @__PURE__ */ $(ws, {
29399
29400
  display: "flex",
@@ -29403,50 +29404,50 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29403
29404
  display: "flex",
29404
29405
  flexDirection: "column",
29405
29406
  gap: "xs",
29406
- children: [/* @__PURE__ */ Q(eJ, { className: "h-4 w-32" }), /* @__PURE__ */ Q(eJ, { className: "h-3 w-24" })]
29407
- }), /* @__PURE__ */ Q(eJ, { className: "h-48 w-full rounded-md" })]
29407
+ children: [/* @__PURE__ */ Q(tJ, { className: "h-4 w-32" }), /* @__PURE__ */ Q(tJ, { className: "h-3 w-24" })]
29408
+ }), /* @__PURE__ */ Q(tJ, { className: "h-48 w-full rounded-md" })]
29408
29409
  })
29409
- }) }, e)) }), oJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29410
+ }) }, e)) }), sJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29410
29411
  display: "flex",
29411
29412
  flexDirection: "column",
29412
29413
  gap: "md",
29413
- children: iJ(e).map((e) => /* @__PURE__ */ Q(rJ, { children: /* @__PURE__ */ $(ws, {
29414
+ children: aJ(e).map((e) => /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ $(ws, {
29414
29415
  display: "flex",
29415
29416
  alignItems: "center",
29416
29417
  gap: "md",
29417
- children: [/* @__PURE__ */ Q(eJ, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(ws, {
29418
+ children: [/* @__PURE__ */ Q(tJ, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(ws, {
29418
29419
  display: "flex",
29419
29420
  flexDirection: "column",
29420
29421
  gap: "xs",
29421
29422
  grow: !0,
29422
- children: [/* @__PURE__ */ Q(eJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(eJ, { className: "h-3 w-2/3" })]
29423
+ children: [/* @__PURE__ */ Q(tJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(tJ, { className: "h-3 w-2/3" })]
29423
29424
  })]
29424
29425
  }) }, e))
29425
- }), sJ = ({ count: e, schema: t }) => {
29426
+ }), cJ = ({ count: e, schema: t }) => {
29426
29427
  let n = !!(t?.descriptionRequired || t?.descriptionOptional), r = t?.left;
29427
- return /* @__PURE__ */ Q(rJ, { children: /* @__PURE__ */ Q(ws, {
29428
+ return /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ Q(ws, {
29428
29429
  display: "flex",
29429
29430
  flexDirection: "column",
29430
29431
  gap: "md",
29431
- children: iJ(e).map((e) => /* @__PURE__ */ $(ws, {
29432
+ children: aJ(e).map((e) => /* @__PURE__ */ $(ws, {
29432
29433
  display: "flex",
29433
29434
  alignItems: "center",
29434
29435
  gap: "md",
29435
- children: [r ? /* @__PURE__ */ Q(eJ, { className: B("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(ws, {
29436
+ children: [r ? /* @__PURE__ */ Q(tJ, { className: B("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(ws, {
29436
29437
  display: "flex",
29437
29438
  flexDirection: "column",
29438
29439
  gap: "xs",
29439
29440
  grow: !0,
29440
- children: [/* @__PURE__ */ Q(eJ, { className: B("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(eJ, { className: "h-3 w-1/3" }) : null]
29441
+ children: [/* @__PURE__ */ Q(tJ, { className: B("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(tJ, { className: "h-3 w-1/3" }) : null]
29441
29442
  })]
29442
29443
  }, e))
29443
29444
  }) });
29444
- }, cJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29445
+ }, lJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29445
29446
  display: "flex",
29446
29447
  flexDirection: "column",
29447
29448
  gap: "md",
29448
- children: iJ(e).map((e) => /* @__PURE__ */ Q(ng, { variant: "row" }, e))
29449
- }), lJ = ({ count: e }) => /* @__PURE__ */ Q($q, { cards: iJ(e).map((e) => /* @__PURE__ */ Q(nq, { children: /* @__PURE__ */ Q(rJ, {
29449
+ children: aJ(e).map((e) => /* @__PURE__ */ Q(ng, { variant: "row" }, e))
29450
+ }), uJ = ({ count: e }) => /* @__PURE__ */ Q(eJ, { cards: aJ(e).map((e) => /* @__PURE__ */ Q(rq, { children: /* @__PURE__ */ Q(iJ, {
29450
29451
  fullHeight: !0,
29451
29452
  children: /* @__PURE__ */ $(ws, {
29452
29453
  display: "flex",
@@ -29456,53 +29457,53 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29456
29457
  display: "flex",
29457
29458
  alignItems: "center",
29458
29459
  gap: "md",
29459
- children: [/* @__PURE__ */ Q(eJ, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(eJ, { className: "h-4 w-24" })]
29460
- }), /* @__PURE__ */ Q(eJ, { className: "h-7 w-20" })]
29460
+ children: [/* @__PURE__ */ Q(tJ, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(tJ, { className: "h-4 w-24" })]
29461
+ }), /* @__PURE__ */ Q(tJ, { className: "h-7 w-20" })]
29461
29462
  })
29462
- }) }, e)) }), uJ = ({ count: e }) => /* @__PURE__ */ Q(rJ, { children: /* @__PURE__ */ Q(ws, {
29463
+ }) }, e)) }), dJ = ({ count: e }) => /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ Q(ws, {
29463
29464
  display: "flex",
29464
29465
  flexDirection: "column",
29465
- children: iJ(e).map((t) => /* @__PURE__ */ $(ws, {
29466
+ children: aJ(e).map((t) => /* @__PURE__ */ $(ws, {
29466
29467
  display: "flex",
29467
29468
  gap: "md",
29468
29469
  children: [/* @__PURE__ */ $(ws, {
29469
29470
  display: "flex",
29470
29471
  flexDirection: "column",
29471
29472
  alignItems: "center",
29472
- children: [/* @__PURE__ */ Q(eJ, { 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]
29473
+ children: [/* @__PURE__ */ Q(tJ, { 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]
29473
29474
  }), /* @__PURE__ */ $(ws, {
29474
29475
  display: "flex",
29475
29476
  flexDirection: "column",
29476
29477
  gap: "xs",
29477
29478
  grow: !0,
29478
29479
  paddingBottom: t < e - 1 ? "md" : void 0,
29479
- children: [/* @__PURE__ */ Q(eJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(eJ, { className: "h-3 w-1/3" })]
29480
+ children: [/* @__PURE__ */ Q(tJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(tJ, { className: "h-3 w-1/3" })]
29480
29481
  })]
29481
29482
  }, t))
29482
- }) }), dJ = ({ count: e }) => /* @__PURE__ */ Q(rJ, { children: /* @__PURE__ */ Q(ws, {
29483
+ }) }), fJ = ({ count: e }) => /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ Q(ws, {
29483
29484
  display: "flex",
29484
29485
  flexDirection: "column",
29485
29486
  gap: "md",
29486
- children: iJ(e).map((e) => /* @__PURE__ */ Q(eJ, { className: B("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
29487
- }) }), fJ = (e, t) => {
29487
+ children: aJ(e).map((e) => /* @__PURE__ */ Q(tJ, { className: B("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
29488
+ }) }), pJ = (e, t) => {
29488
29489
  switch (e.type) {
29489
- case "stats": return /* @__PURE__ */ Q(lJ, { count: t });
29490
- case "charts": return /* @__PURE__ */ Q(aJ, { count: t });
29491
- case "list": return /* @__PURE__ */ Q(sJ, {
29490
+ case "stats": return /* @__PURE__ */ Q(uJ, { count: t });
29491
+ case "charts": return /* @__PURE__ */ Q(oJ, { count: t });
29492
+ case "list": return /* @__PURE__ */ Q(cJ, {
29492
29493
  count: t,
29493
29494
  schema: e.display?.schema
29494
29495
  });
29495
- case "timeline": return /* @__PURE__ */ Q(uJ, { count: t });
29496
- case "events": return /* @__PURE__ */ Q(oJ, { count: t });
29497
- case "posts": return /* @__PURE__ */ Q(cJ, { count: t });
29498
- case "widget": return /* @__PURE__ */ Q(dJ, { count: t });
29496
+ case "timeline": return /* @__PURE__ */ Q(dJ, { count: t });
29497
+ case "events": return /* @__PURE__ */ Q(sJ, { count: t });
29498
+ case "posts": return /* @__PURE__ */ Q(lJ, { count: t });
29499
+ case "widget": return /* @__PURE__ */ Q(fJ, { count: t });
29499
29500
  }
29500
- }, pJ = ({ element: e }) => /* @__PURE__ */ Q("div", {
29501
+ }, mJ = ({ element: e }) => /* @__PURE__ */ Q("div", {
29501
29502
  "aria-busy": "true",
29502
29503
  "aria-live": "polite",
29503
29504
  "data-agentic-skeleton": e.type,
29504
- children: fJ(e, kK(e))
29505
- }), mJ = (e) => {
29505
+ children: pJ(e, AK(e))
29506
+ }), hJ = (e) => {
29506
29507
  switch (e.type) {
29507
29508
  case "stats": return e.stats.length === 0;
29508
29509
  case "charts": return e.charts.length === 0;
@@ -29511,7 +29512,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29511
29512
  case "events": return e.events.length === 0;
29512
29513
  case "posts": return e.posts.length === 0;
29513
29514
  }
29514
- }, hJ = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && $K(e, t) && mJ(t.block), gJ = (e, t) => {
29515
+ }, gJ = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && eq(e, t) && hJ(t.block), _J = (e, t) => {
29515
29516
  let n = {
29516
29517
  ...t,
29517
29518
  empty: e.display?.empty ?? t.empty
@@ -29530,8 +29531,8 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29530
29531
  format: r
29531
29532
  }))
29532
29533
  } : n;
29533
- }, _J = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && $K(e, t) ? gJ(e, t.block) : void 0, vJ = Su(void 0), yJ = vJ.Provider, bJ = () => Du(vJ), xJ = ({ widget: e, bare: t = !1 }) => {
29534
- let n = bJ();
29534
+ }, vJ = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && eq(e, t) ? _J(e, t.block) : void 0, yJ = Su(void 0), bJ = yJ.Provider, xJ = () => Du(yJ), SJ = ({ widget: e, bare: t = !1 }) => {
29535
+ let n = xJ();
29535
29536
  return t ? /* @__PURE__ */ Q(pG, {
29536
29537
  headless: !0,
29537
29538
  slots: e.slots,
@@ -29545,52 +29546,52 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29545
29546
  loading: e.loading,
29546
29547
  slotRenderers: n
29547
29548
  });
29548
- }, SJ = ({ element: e, state: t, onAction: n, lead: r }) => {
29549
- if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(Zq, {
29549
+ }, CJ = ({ element: e, state: t, onAction: n, lead: r }) => {
29550
+ if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(Qq, {
29550
29551
  block: e,
29551
29552
  elementId: e.id,
29552
29553
  onAction: n,
29553
29554
  lead: r
29554
29555
  });
29555
- if (!t || t.status === "loading") return /* @__PURE__ */ Q(pJ, { element: e });
29556
- if (t.status === "error") return /* @__PURE__ */ Q(TK, { message: t.message });
29557
- if (!$K(e, t)) return /* @__PURE__ */ Q(TK, {});
29558
- if (t.widget) return /* @__PURE__ */ Q(xJ, {
29556
+ if (!t || t.status === "loading") return /* @__PURE__ */ Q(mJ, { element: e });
29557
+ if (t.status === "error") return /* @__PURE__ */ Q(EK, { message: t.message });
29558
+ if (!eq(e, t)) return /* @__PURE__ */ Q(EK, {});
29559
+ if (t.widget) return /* @__PURE__ */ Q(SJ, {
29559
29560
  widget: t.widget,
29560
29561
  bare: t.bare
29561
29562
  });
29562
- if (e.type === "widget") return /* @__PURE__ */ Q(TK, {});
29563
- let i = gJ(e, t.block);
29564
- return mJ(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(wK, {
29563
+ if (e.type === "widget") return /* @__PURE__ */ Q(EK, {});
29564
+ let i = _J(e, t.block);
29565
+ return hJ(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(TK, {
29565
29566
  empty: i.empty,
29566
29567
  elementId: e.id,
29567
29568
  onAction: n
29568
- }) : /* @__PURE__ */ Q(Zq, {
29569
+ }) : /* @__PURE__ */ Q(Qq, {
29569
29570
  block: i,
29570
29571
  elementId: e.id,
29571
29572
  onAction: n
29572
29573
  });
29573
- }, CJ = "agentic-list-stack", wJ = ({ title: e }) => /* @__PURE__ */ Q(ws, {
29574
+ }, wJ = "agentic-list-stack", TJ = ({ title: e }) => /* @__PURE__ */ Q(ws, {
29574
29575
  paddingY: "sm",
29575
29576
  children: /* @__PURE__ */ Q(Tl, {
29576
29577
  variant: "description",
29577
29578
  content: e
29578
29579
  })
29579
- }), TJ = {
29580
+ }), EJ = {
29580
29581
  ...eG,
29581
- ...Rq
29582
- }, EJ = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
29582
+ ...zq
29583
+ }, DJ = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
29583
29584
  className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
29584
29585
  children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
29585
29586
  className: B("px-4", n.visualization === "agentic-stats" ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
29586
- children: [r ? /* @__PURE__ */ Q(wJ, { title: r }) : null, bW(TJ[n.visualization])?.render(n.params, {
29587
+ children: [r ? /* @__PURE__ */ Q(TJ, { title: r }) : null, bW(EJ[n.visualization])?.render(n.params, {
29587
29588
  ...t,
29588
29589
  isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
29589
29590
  isLastSlot: t.isLastSlot && i === e.length - 1
29590
29591
  })]
29591
29592
  }, i))
29592
- }), DJ = (e) => e.type === "list" && !e.bare || e.type === "stats", OJ = (e, t) => e.reduce((e, n) => {
29593
- let r = _J(n, t?.[n.id]), i = r && DJ(r) && !mJ(r) ? {
29593
+ }), OJ = (e) => e.type === "list" && !e.bare || e.type === "stats", kJ = (e, t) => e.reduce((e, n) => {
29594
+ let r = vJ(n, t?.[n.id]), i = r && OJ(r) && !hJ(r) ? {
29594
29595
  elementId: n.id,
29595
29596
  block: r
29596
29597
  } : void 0, a = e.at(-1);
@@ -29602,32 +29603,32 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29602
29603
  element: n,
29603
29604
  member: i
29604
29605
  }), e;
29605
- }, []), kJ = ({ elementId: e, block: t }, n, r) => {
29606
- if (t.type === "stats") return [{ slot: Nq(t.stats, e, r) }];
29606
+ }, []), AJ = ({ elementId: e, block: t }, n, r) => {
29607
+ if (t.type === "stats") return [{ slot: Pq(t.stats, e, r) }];
29607
29608
  let i = n > 0 ? t.title : void 0;
29608
- return Tq(t, e, r).map((e, t) => ({
29609
+ return Eq(t, e, r).map((e, t) => ({
29609
29610
  slot: e,
29610
29611
  header: t === 0 ? i : void 0
29611
29612
  }));
29612
- }, AJ = { [CJ]: (e, t) => /* @__PURE__ */ Q(EJ, {
29613
+ }, jJ = { [wJ]: (e, t) => /* @__PURE__ */ Q(DJ, {
29613
29614
  entries: e,
29614
29615
  ctx: t
29615
- }) }, jJ = ({ members: e, onAction: t }) => {
29616
+ }) }, MJ = ({ members: e, onAction: t }) => {
29616
29617
  let n = e[0]?.block;
29617
- return /* @__PURE__ */ Q(bK, {
29618
+ return /* @__PURE__ */ Q(xK, {
29618
29619
  title: n?.type === "list" ? n.title : void 0,
29619
29620
  slots: [{
29620
- visualization: CJ,
29621
- params: e.flatMap((e, n) => kJ(e, n, t))
29621
+ visualization: wJ,
29622
+ params: e.flatMap((e, n) => AJ(e, n, t))
29622
29623
  }],
29623
- slotRenderers: AJ
29624
+ slotRenderers: jJ
29624
29625
  });
29625
- }, MJ = ({ items: e, onAction: t }) => {
29626
+ }, NJ = ({ items: e, onAction: t }) => {
29626
29627
  let n = R();
29627
29628
  return /* @__PURE__ */ Q($a, {
29628
29629
  items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
29629
29630
  label: e.label,
29630
- icon: gK(e.icon),
29631
+ icon: _K(e.icon),
29631
29632
  critical: e.critical,
29632
29633
  onClick: () => t(e.action, {})
29633
29634
  }),
@@ -29639,12 +29640,12 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29639
29640
  label: n.actions.more
29640
29641
  })
29641
29642
  });
29642
- }, NJ = Su(void 0), PJ = NJ.Provider, FJ = () => Du(NJ), IJ = /\*\*(.+?)\*\*/g, LJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(IJ).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
29643
+ }, PJ = Su(void 0), FJ = PJ.Provider, IJ = () => Du(PJ), LJ = /\*\*(.+?)\*\*/g, RJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(LJ).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
29643
29644
  className: "font-medium",
29644
29645
  children: e
29645
- }, t) : e) }), RJ = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, zJ = (e) => {
29646
+ }, t) : e) }), zJ = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, BJ = (e) => {
29646
29647
  let t = [], n = 0;
29647
- for (let r of e.matchAll(RJ)) {
29648
+ for (let r of e.matchAll(zJ)) {
29648
29649
  let [i, a, o, s] = r, c = r.index ?? 0;
29649
29650
  c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
29650
29651
  type: o,
@@ -29653,48 +29654,48 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29653
29654
  } }), n = c + i.length;
29654
29655
  }
29655
29656
  return n < e.length && t.push({ text: e.slice(n) }), t;
29656
- }, BJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: AG(e).map((e, t) => /* @__PURE__ */ Q(yu, { children: "href" in e ? /* @__PURE__ */ Q(Ka, {
29657
+ }, VJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: AG(e).map((e, t) => /* @__PURE__ */ Q(yu, { children: "href" in e ? /* @__PURE__ */ Q(Ka, {
29657
29658
  href: e.href,
29658
29659
  children: e.label
29659
- }) : /* @__PURE__ */ Q(LJ, { text: e.text }) }, t)) }), VJ = ({ text: e }) => {
29660
- let t = FJ();
29661
- return /* @__PURE__ */ Q(Z, { children: zJ(e).map((e, n) => /* @__PURE__ */ Q(yu, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(BJ, { text: e.text }) }, n)) });
29662
- }, HJ = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(VJ, { text: e }) }, t)) }), UJ = /^\d+\.\s+/, WJ = /^[-*]\s+/, GJ = (e) => UJ.test(e) ? "ol" : WJ.test(e) ? "ul" : "p", KJ = (e, t) => {
29660
+ }) : /* @__PURE__ */ Q(RJ, { text: e.text }) }, t)) }), HJ = ({ text: e }) => {
29661
+ let t = IJ();
29662
+ return /* @__PURE__ */ Q(Z, { children: BJ(e).map((e, n) => /* @__PURE__ */ Q(yu, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(VJ, { text: e.text }) }, n)) });
29663
+ }, UJ = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(HJ, { text: e }) }, t)) }), WJ = /^\d+\.\s+/, GJ = /^[-*]\s+/, KJ = (e) => WJ.test(e) ? "ol" : GJ.test(e) ? "ul" : "p", qJ = (e, t) => {
29663
29664
  let n = e.at(-1);
29664
29665
  t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
29665
29666
  kind: "p",
29666
29667
  text: t
29667
29668
  });
29668
- }, qJ = (e, t, n) => {
29669
- let r = e.at(-1), i = n.replace(t === "ol" ? UJ : WJ, "");
29669
+ }, JJ = (e, t, n) => {
29670
+ let r = e.at(-1), i = n.replace(t === "ol" ? WJ : GJ, "");
29670
29671
  r?.kind === t ? r.items.push(i) : e.push({
29671
29672
  kind: t,
29672
29673
  items: [i]
29673
29674
  });
29674
- }, JJ = (e) => {
29675
+ }, YJ = (e) => {
29675
29676
  let t = [];
29676
29677
  for (let n of e.split("\n").map((e) => e.trim())) {
29677
- let e = GJ(n);
29678
- e === "p" ? KJ(t, n) : qJ(t, e, n);
29678
+ let e = KJ(n);
29679
+ e === "p" ? qJ(t, n) : JJ(t, e, n);
29679
29680
  }
29680
29681
  return t.filter((e) => e.kind !== "p" || e.text);
29681
- }, YJ = ({ text: e }) => /* @__PURE__ */ Q("div", {
29682
+ }, XJ = ({ text: e }) => /* @__PURE__ */ Q("div", {
29682
29683
  className: "flex flex-col gap-2 text-lg text-f1-foreground",
29683
- children: JJ(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(VJ, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
29684
+ children: YJ(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(HJ, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
29684
29685
  className: "m-0 list-decimal space-y-1 pl-5",
29685
- children: /* @__PURE__ */ Q(HJ, { items: e.items })
29686
+ children: /* @__PURE__ */ Q(UJ, { items: e.items })
29686
29687
  }, t) : /* @__PURE__ */ Q("ul", {
29687
29688
  className: "m-0 list-disc space-y-1 pl-5",
29688
- children: /* @__PURE__ */ Q(HJ, { items: e.items })
29689
+ children: /* @__PURE__ */ Q(UJ, { items: e.items })
29689
29690
  }, t))
29690
- }), XJ = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(sn, {
29691
+ }), ZJ = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(sn, {
29691
29692
  as: "h2",
29692
29693
  variant: "heading-large",
29693
29694
  content: e
29694
29695
  }) : /* @__PURE__ */ Q("h2", {
29695
29696
  className: B("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
29696
29697
  children: e
29697
- }), ZJ = ({ section: e, size: t, composer: n, onAction: r }) => {
29698
+ }), QJ = ({ section: e, size: t, composer: n, onAction: r }) => {
29698
29699
  let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
29699
29700
  return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(ws, {
29700
29701
  display: "flex",
@@ -29716,43 +29717,43 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29716
29717
  alignItems: "start",
29717
29718
  justifyContent: e.title ? "between" : "end",
29718
29719
  gap: "md",
29719
- children: [e.title ? /* @__PURE__ */ Q(XJ, {
29720
+ children: [e.title ? /* @__PURE__ */ Q(ZJ, {
29720
29721
  title: e.title,
29721
29722
  size: t
29722
- }) : null, a ? /* @__PURE__ */ Q(MJ, {
29723
+ }) : null, a ? /* @__PURE__ */ Q(NJ, {
29723
29724
  items: a,
29724
29725
  onAction: r
29725
29726
  }) : null]
29726
29727
  }) : null]
29727
29728
  }),
29728
29729
  n,
29729
- e.text ? /* @__PURE__ */ Q(YJ, { text: e.text }) : null
29730
+ e.text ? /* @__PURE__ */ Q(XJ, { text: e.text }) : null
29730
29731
  ]
29731
29732
  });
29732
- }, QJ = (e, t) => e.elements.length > 0 && e.elements.every((e) => hJ(e, t?.[e.id])), $J = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
29733
+ }, $J = (e, t) => e.elements.length > 0 && e.elements.every((e) => gJ(e, t?.[e.id])), eY = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
29733
29734
  let a = (t, r) => n(t, {
29734
29735
  ...r,
29735
29736
  sectionId: e.id
29736
- }), o = QJ(e, t);
29737
+ }), o = $J(e, t);
29737
29738
  return o && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
29738
29739
  id: e.id,
29739
29740
  "aria-label": e.title,
29740
29741
  tabIndex: -1,
29741
29742
  className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
29742
29743
  children: [
29743
- /* @__PURE__ */ Q(ZJ, {
29744
+ /* @__PURE__ */ Q(QJ, {
29744
29745
  section: e,
29745
29746
  size: r,
29746
29747
  composer: i,
29747
29748
  onAction: a
29748
29749
  }),
29749
- o && e.empty ? /* @__PURE__ */ Q(wK, {
29750
+ o && e.empty ? /* @__PURE__ */ Q(TK, {
29750
29751
  empty: e.empty,
29751
29752
  onAction: a
29752
- }) : OJ(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(jJ, {
29753
+ }) : kJ(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(MJ, {
29753
29754
  members: e.members,
29754
29755
  onAction: a
29755
- }, e.members[0]?.elementId) : /* @__PURE__ */ Q(SJ, {
29756
+ }, e.members[0]?.elementId) : /* @__PURE__ */ Q(CJ, {
29756
29757
  element: e.element,
29757
29758
  state: t?.[e.element.id],
29758
29759
  onAction: a,
@@ -29764,16 +29765,16 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29764
29765
  gap: "sm",
29765
29766
  children: e.followUps.map((e, t) => /* @__PURE__ */ Q(U, {
29766
29767
  size: "md",
29767
- ...yK(e, {}, a),
29768
+ ...bK(e, {}, a),
29768
29769
  variant: e.variant ?? "neutral"
29769
29770
  }, t))
29770
29771
  }) : null
29771
29772
  ]
29772
29773
  });
29773
- }, eY = (e, t) => {
29774
+ }, tY = (e, t) => {
29774
29775
  let [n, ...r] = e ?? [], i = (e) => ({
29775
29776
  label: e.label,
29776
- icon: gK(e.icon),
29777
+ icon: _K(e.icon),
29777
29778
  onClick: () => t(e)
29778
29779
  });
29779
29780
  return {
@@ -29786,19 +29787,19 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29786
29787
  value: String(t)
29787
29788
  })) : r[0] ? i(r[0]) : void 0
29788
29789
  };
29789
- }, tY = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), nY = ({ element: e, state: t }) => {
29790
- let n = bJ();
29791
- return !t || t.status === "loading" ? /* @__PURE__ */ Q(pJ, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(TK, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(pG, {
29790
+ }, nY = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), rY = ({ element: e, state: t }) => {
29791
+ let n = xJ();
29792
+ return !t || t.status === "loading" ? /* @__PURE__ */ Q(mJ, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(EK, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(pG, {
29792
29793
  slots: t.widget.slots,
29793
29794
  loading: t.widget.loading,
29794
29795
  slotRenderers: n
29795
- }) : /* @__PURE__ */ Q(TK, {});
29796
- }, rY = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
29796
+ }) : /* @__PURE__ */ Q(EK, {});
29797
+ }, iY = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
29797
29798
  let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
29798
29799
  ...r,
29799
29800
  accessoryViewId: e.id,
29800
29801
  ...l ? { accessoryViewParams: t } : {}
29801
- }), d = eY(e.actions, (e) => {
29802
+ }), d = tY(e.actions, (e) => {
29802
29803
  o(), u(e.action, {});
29803
29804
  });
29804
29805
  return /* @__PURE__ */ Q(Pi, {
@@ -29810,22 +29811,22 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29810
29811
  description: e.description,
29811
29812
  disableContentPadding: i,
29812
29813
  ...d,
29813
- children: e.widget ? /* @__PURE__ */ Q(nY, {
29814
+ children: e.widget ? /* @__PURE__ */ Q(rY, {
29814
29815
  element: e.widget,
29815
29816
  state: s?.[e.widget.id]
29816
- }, tY(e.id, t)) : /* @__PURE__ */ Q(ws, {
29817
+ }, nY(e.id, t)) : /* @__PURE__ */ Q(ws, {
29817
29818
  display: "flex",
29818
29819
  flexDirection: "column",
29819
29820
  gap: "3xl",
29820
- children: e.sections.map((e) => /* @__PURE__ */ Q($J, {
29821
+ children: e.sections.map((e) => /* @__PURE__ */ Q(eY, {
29821
29822
  size: "accessory",
29822
29823
  section: e,
29823
29824
  sources: s,
29824
29825
  onAction: u
29825
29826
  }, e.id))
29826
- }, tY(e.id, t))
29827
+ }, nY(e.id, t))
29827
29828
  });
29828
- }, iY = Cu(function({ children: e }, t) {
29829
+ }, aY = Cu(function({ children: e }, t) {
29829
29830
  return /* @__PURE__ */ Q("div", {
29830
29831
  ref: t,
29831
29832
  className: "-m-1 p-1",
@@ -29834,7 +29835,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29834
29835
  children: e
29835
29836
  })
29836
29837
  });
29837
- }), aY = ({ greeting: e }) => /* @__PURE__ */ $(ws, {
29838
+ }), oY = ({ greeting: e }) => /* @__PURE__ */ $(ws, {
29838
29839
  display: "flex",
29839
29840
  flexDirection: "column",
29840
29841
  gap: "xs",
@@ -29846,14 +29847,14 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29846
29847
  variant: "description",
29847
29848
  content: e.subtitle
29848
29849
  }) : null]
29849
- }), oY = 150, sY = 150, cY = {
29850
+ }), sY = 150, cY = 150, lY = {
29850
29851
  neutral: "bg-f1-background-inverse",
29851
29852
  accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
29852
29853
  critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
29853
29854
  warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
29854
29855
  promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
29855
29856
  positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
29856
- }, lY = "inverse", uY = (e) => {
29857
+ }, uY = "inverse", dY = (e) => {
29857
29858
  let t = Y(null), n = Y(e), [r, i] = X({
29858
29859
  face: e,
29859
29860
  animate: !1
@@ -29879,8 +29880,8 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29879
29880
  size: r.size,
29880
29881
  animate: r.animate
29881
29882
  };
29882
- }, dY = ({ clockIn: e, expanded: t = !1 }) => {
29883
- let n = Qn(), [r, i] = X(!1), { ref: a, size: o, animate: s } = uY(t ? "card" : "chip");
29883
+ }, fY = ({ clockIn: e, expanded: t = !1 }) => {
29884
+ let n = Qn(), [r, i] = X(!1), { ref: a, size: o, animate: s } = dY(t ? "card" : "chip");
29884
29885
  return /* @__PURE__ */ $("div", {
29885
29886
  ref: a,
29886
29887
  className: "relative isolate",
@@ -29892,32 +29893,32 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29892
29893
  transition: s ? IU(kU, n) : CU
29893
29894
  }), /* @__PURE__ */ Q(Bn, {
29894
29895
  initial: !1,
29895
- children: /* @__PURE__ */ Q(mY, { children: t ? /* @__PURE__ */ Q(hY, { clockIn: e }) : /* @__PURE__ */ Q(gY, {
29896
+ children: /* @__PURE__ */ Q(hY, { children: t ? /* @__PURE__ */ Q(gY, { clockIn: e }) : /* @__PURE__ */ Q(_Y, {
29896
29897
  clockIn: e,
29897
29898
  open: r,
29898
29899
  setOpen: i
29899
29900
  }) }, t ? "card" : "chip")
29900
29901
  })]
29901
29902
  });
29902
- }, fY = PU, pY = {
29903
+ }, pY = PU, mY = {
29903
29904
  duration: .16,
29904
29905
  ease: "easeOut"
29905
- }, mY = ({ children: e }) => {
29906
+ }, hY = ({ children: e }) => {
29906
29907
  let t = Qn(), n = nr();
29907
29908
  return /* @__PURE__ */ Q(V.div, {
29908
29909
  className: B(!n && "pointer-events-none absolute right-0 top-0"),
29909
29910
  initial: { opacity: 0 },
29910
29911
  animate: {
29911
29912
  opacity: 1,
29912
- transition: IU(fY, t)
29913
+ transition: IU(pY, t)
29913
29914
  },
29914
29915
  exit: {
29915
29916
  opacity: 0,
29916
- transition: IU(pY, t)
29917
+ transition: IU(mY, t)
29917
29918
  },
29918
29919
  children: e
29919
29920
  });
29920
- }, hY = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
29921
+ }, gY = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
29921
29922
  role: "group",
29922
29923
  "aria-label": e.title,
29923
29924
  className: "flex w-[396px] flex-col gap-4 rounded-xl border border-solid border-transparent p-4",
@@ -29925,7 +29926,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29925
29926
  variant: "label",
29926
29927
  content: e.title
29927
29928
  }), e.content]
29928
- }), gY = ({ clockIn: e, open: t, setOpen: n }) => {
29929
+ }), _Y = ({ clockIn: e, open: t, setOpen: n }) => {
29929
29930
  let { caption: r, text: i, ticking: a, icon: o, action: s, tone: c, title: l, content: u } = e, d = Qn(), f = Y(null), p = Y(null), m = Y(!1), h = Ou(), [g, _] = X(!1), v = () => {
29930
29931
  f.current && clearTimeout(f.current), f.current = null;
29931
29932
  }, y = (e, t) => {
@@ -29934,10 +29935,10 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29934
29935
  return K(() => v, []), /* @__PURE__ */ $("div", {
29935
29936
  className: "relative",
29936
29937
  onMouseEnter: () => {
29937
- _(!0), t ? v() : y(!0, oY);
29938
+ _(!0), t ? v() : y(!0, sY);
29938
29939
  },
29939
29940
  onMouseLeave: () => {
29940
- _(!1), y(!1, sY);
29941
+ _(!1), y(!1, cY);
29941
29942
  },
29942
29943
  onFocus: () => {
29943
29944
  v(), m.current ? m.current = !1 : n(!0);
@@ -29966,13 +29967,13 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29966
29967
  type: "button",
29967
29968
  variant: "ghost",
29968
29969
  size: "lg",
29969
- className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", cY[c ?? "accent"]),
29970
+ className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", lY[c ?? "accent"]),
29970
29971
  "aria-label": s.label,
29971
29972
  "aria-controls": t ? h : void 0,
29972
29973
  onClick: () => s.onClick(),
29973
29974
  children: /* @__PURE__ */ Q(W, {
29974
29975
  size: "lg",
29975
- color: lY,
29976
+ color: uY,
29976
29977
  icon: t || g ? s.icon : o ?? zi
29977
29978
  })
29978
29979
  })
@@ -30004,11 +30005,11 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30004
30005
  })
30005
30006
  }) : null })]
30006
30007
  });
30007
- }, _Y = 180, vY = 8, yY = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
30008
- let r = n - t - vY;
30009
- return r <= vY ? vY : Math.min(Math.max(e - t / 2, vY), r);
30010
- }, bY = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", xY = "pointer-events-auto overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", SY = ({ open: e, out: t, top: n, transition: r }) => ({
30011
- className: B(bY, "absolute right-[68px] top-0 z-20 max-h-[calc(100%-1rem)] max-w-[calc(100vw-6rem)] rounded-xl bg-f1-background shadow-lg dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", e ? "pointer-events-auto" : "pointer-events-none"),
30008
+ }, vY = 180, yY = 8, bY = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
30009
+ let r = n - t - yY;
30010
+ return r <= yY ? yY : Math.min(Math.max(e - t / 2, yY), r);
30011
+ }, xY = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", SY = "pointer-events-auto overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", CY = ({ open: e, out: t, top: n, transition: r }) => ({
30012
+ className: B(xY, "absolute right-[68px] top-0 z-20 max-h-[calc(100%-1rem)] max-w-[calc(100vw-6rem)] rounded-xl bg-f1-background shadow-lg dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", e ? "pointer-events-auto" : "pointer-events-none"),
30012
30013
  animate: {
30013
30014
  opacity: +!!t,
30014
30015
  scale: t ? 1 : DU,
@@ -30016,7 +30017,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30016
30017
  y: n
30017
30018
  },
30018
30019
  transition: r
30019
- }), CY = (e, t) => ({
30020
+ }), wY = (e, t) => ({
30020
30021
  className: B("mt-4 w-[396px] shrink-0", e ? "pointer-events-none" : "pointer-events-auto"),
30021
30022
  animate: {
30022
30023
  opacity: +!e,
@@ -30028,7 +30029,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30028
30029
  ...e ? NU : kU,
30029
30030
  y: CU
30030
30031
  }, t)
30031
- }), wY = ({ collapsed: e, onToggle: t }) => {
30032
+ }), TY = ({ collapsed: e, onToggle: t }) => {
30032
30033
  let n = R(), r = e ? n.actions.expand : n.actions.collapse;
30033
30034
  return /* @__PURE__ */ Q(Vn, {
30034
30035
  label: r,
@@ -30042,20 +30043,20 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30042
30043
  children: /* @__PURE__ */ Q(Rl, { isExpanded: !e })
30043
30044
  })
30044
30045
  });
30045
- }, TY = (e) => {
30046
+ }, EY = (e) => {
30046
30047
  let t = Qn(), [n, r] = X(!1), i = LU(e, t ? 0 : 180), a = n ? i : e;
30047
30048
  return {
30048
30049
  stowed: a,
30049
30050
  leaving: e && !a,
30050
30051
  markToggled: () => r(!0)
30051
30052
  };
30052
- }, EY = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), DY = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
30053
+ }, DY = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), OY = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
30053
30054
  className: B("pointer-events-auto shrink-0", n && "mt-2"),
30054
- children: /* @__PURE__ */ Q(dY, {
30055
+ children: /* @__PURE__ */ Q(fY, {
30055
30056
  clockIn: e,
30056
30057
  expanded: !t
30057
30058
  })
30058
- }), OY = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
30059
+ }), kY = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
30059
30060
  let o = R();
30060
30061
  return /* @__PURE__ */ $("div", {
30061
30062
  className: "my-auto hidden flex-col items-end gap-2 md:flex",
@@ -30091,10 +30092,10 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30091
30092
  })
30092
30093
  })] }) : null]
30093
30094
  });
30094
- }, kY = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
30095
- let l = Qn(), { stowed: u, leaving: d, markToggled: f } = TY(r), p = Ou(), m = Y(null), h = Y(null), g = Y(null), [_, v] = X(null), [y, b] = X(null), [x, S] = X(!1), [C, w] = X(0), T = () => {
30095
+ }, AY = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
30096
+ let l = Qn(), { stowed: u, leaving: d, markToggled: f } = EY(r), p = Ou(), m = Y(null), h = Y(null), g = Y(null), [_, v] = X(null), [y, b] = X(null), [x, S] = X(!1), [C, w] = X(0), T = () => {
30096
30097
  g.current && clearTimeout(g.current), g.current = null;
30097
- }, E = (e = _Y) => {
30098
+ }, E = (e = vY) => {
30098
30099
  T(), g.current = setTimeout(() => v(null), e);
30099
30100
  }, D = (e, t) => {
30100
30101
  T();
@@ -30111,13 +30112,13 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30111
30112
  let t = new ResizeObserver(() => w(e.offsetHeight));
30112
30113
  return t.observe(e), () => t.disconnect();
30113
30114
  }, []);
30114
- let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = iK({
30115
+ let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = aK({
30115
30116
  collapsed: !0,
30116
30117
  open: k != null,
30117
30118
  glide: x,
30118
30119
  drawn: !0,
30119
30120
  width: 396
30120
- }), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? yY({
30121
+ }), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? bY({
30121
30122
  glyphCenter: y.center,
30122
30123
  panelHeight: C,
30123
30124
  railHeight: y.railHeight
@@ -30128,25 +30129,25 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30128
30129
  onFocus: T,
30129
30130
  onBlur: () => E(0),
30130
30131
  onKeyDown: (e) => {
30131
- EY(e, k) && v(null);
30132
+ DY(e, k) && v(null);
30132
30133
  },
30133
30134
  children: [i ? /* @__PURE__ */ Q("div", {
30134
30135
  className: "pointer-events-auto shrink-0",
30135
- children: /* @__PURE__ */ Q(wY, {
30136
+ children: /* @__PURE__ */ Q(TY, {
30136
30137
  collapsed: r,
30137
30138
  onToggle: () => {
30138
30139
  f(), i();
30139
30140
  }
30140
30141
  })
30141
30142
  }) : null, /* @__PURE__ */ $("div", {
30142
- className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && xY),
30143
+ className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && SY),
30143
30144
  children: [
30144
- n ? /* @__PURE__ */ Q(DY, {
30145
+ n ? /* @__PURE__ */ Q(OY, {
30145
30146
  clockIn: n,
30146
30147
  stowed: u,
30147
30148
  underToggle: i != null
30148
30149
  }) : null,
30149
- u ? /* @__PURE__ */ Q(OY, {
30150
+ u ? /* @__PURE__ */ Q(kY, {
30150
30151
  widgets: e,
30151
30152
  openId: k,
30152
30153
  onOpen: D,
@@ -30162,15 +30163,15 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30162
30163
  hidden: u && A.panelHidden,
30163
30164
  style: { transformOrigin: EU },
30164
30165
  initial: !1,
30165
- ...u ? SY({
30166
+ ...u ? CY({
30166
30167
  open: k != null,
30167
30168
  out: A.bodyOut,
30168
30169
  top: N,
30169
30170
  transition: A.transition
30170
- }) : CY(d, l),
30171
+ }) : wY(d, l),
30171
30172
  onMouseEnter: T,
30172
30173
  onMouseLeave: () => E(),
30173
- children: /* @__PURE__ */ Q(rK, {
30174
+ children: /* @__PURE__ */ Q(iK, {
30174
30175
  side: "right",
30175
30176
  widgets: e,
30176
30177
  visibleWidgetId: u ? j : void 0,
@@ -30188,19 +30189,19 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30188
30189
  ]
30189
30190
  })]
30190
30191
  });
30191
- }, AY = (e, t, n) => {
30192
+ }, jY = (e, t, n) => {
30192
30193
  let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
30193
30194
  r?.scrollIntoView({
30194
30195
  behavior: n ? "auto" : "smooth",
30195
30196
  block: "start"
30196
30197
  }), r?.focus({ preventScroll: !0 });
30197
- }, jY = (e) => {
30198
+ }, MY = (e) => {
30198
30199
  let t = Qn();
30199
- return G((n) => AY(e, n, t), [e, t]);
30200
- }, MY = (e, t, n) => {
30200
+ return G((n) => jY(e, n, t), [e, t]);
30201
+ }, NY = (e, t, n) => {
30201
30202
  let r = [], i = /* @__PURE__ */ new Map(), a = [];
30202
30203
  for (let o of e.elements) {
30203
- if (!NK(t, o.type)) {
30204
+ if (!PK(t, o.type)) {
30204
30205
  n.push({
30205
30206
  rule: "allowedBlockTypes",
30206
30207
  sectionId: e.id,
@@ -30209,7 +30210,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30209
30210
  });
30210
30211
  continue;
30211
30212
  }
30212
- let s = MK(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
30213
+ let s = NK(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
30213
30214
  if (s !== void 0 && c.length >= s) {
30214
30215
  n.push({
30215
30216
  rule: "maxPerSection",
@@ -30220,14 +30221,14 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30220
30221
  });
30221
30222
  continue;
30222
30223
  }
30223
- let l = a.find((e) => !IK(t, e, o.type));
30224
+ let l = a.find((e) => !LK(t, e, o.type));
30224
30225
  l ? n.push({
30225
30226
  rule: "combinesWith",
30226
30227
  sectionId: e.id,
30227
30228
  elementId: o.id,
30228
30229
  blockType: o.type,
30229
30230
  conflictsWith: l
30230
- }) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? PK(o, o.id, t, n) : FK(o, t)));
30231
+ }) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? FK(o, o.id, t, n) : IK(o, t)));
30231
30232
  }
30232
30233
  let o = t.maxElementsPerSection;
30233
30234
  return o !== void 0 && r.length > o ? (n.push({
@@ -30242,14 +30243,14 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30242
30243
  ...e,
30243
30244
  elements: r
30244
30245
  };
30245
- }, NY = (e, t, n) => {
30246
+ }, PY = (e, t, n) => {
30246
30247
  let r = e;
30247
30248
  return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
30248
30249
  rule: "maxSections",
30249
30250
  limit: t.maxSections,
30250
30251
  droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
30251
- }), r = r.slice(0, t.maxSections)), r.map((e, r) => MY(e, LK(t, r === 0), n));
30252
- }, PY = (e, t, n) => {
30252
+ }), r = r.slice(0, t.maxSections)), r.map((e, r) => NY(e, RK(t, r === 0), n));
30253
+ }, FY = (e, t, n) => {
30253
30254
  if (e.type !== "text" || !t.text) return;
30254
30255
  let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
30255
30256
  return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
@@ -30260,14 +30261,14 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30260
30261
  ...i === void 0 ? {} : { minLength: i },
30261
30262
  ...a === void 0 ? {} : { maxLength: a }
30262
30263
  };
30263
- }, FY = (e, t, n) => {
30264
+ }, IY = (e, t, n) => {
30264
30265
  let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
30265
30266
  t.forEach((e, t) => {
30266
30267
  let o = e.min ?? 1, s = e.max ?? 1, c = 0;
30267
30268
  for (; c < s && a < r.length && e.types.includes(r[a].type);) {
30268
30269
  let o = r[a];
30269
30270
  a += 1, c += 1;
30270
- let s = PY(o, e, t);
30271
+ let s = FY(o, e, t);
30271
30272
  s && (i.add(o.id), n.push(s));
30272
30273
  }
30273
30274
  c < o && n.push({
@@ -30286,59 +30287,59 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30286
30287
  ...e,
30287
30288
  elements: e.elements.filter(({ id: e }) => !i.has(e))
30288
30289
  }));
30289
- }, IY = (e) => typeof e == "object" && !!e, LY = (e) => {
30290
+ }, LY = (e) => typeof e == "object" && !!e, RY = (e) => {
30290
30291
  let t = e.widget, n = Array.isArray(e.sections);
30291
- return t === void 0 ? n ? "sections" : null : IY(t) && t.type === "widget" && typeof t.id == "string" && IY(t.source) && !n ? "widget" : null;
30292
- }, RY = (e, t, n) => {
30293
- if (!LY(e)) return n.push({ rule: "accessoryViewBody" }), [];
30292
+ return t === void 0 ? n ? "sections" : null : LY(t) && t.type === "widget" && typeof t.id == "string" && LY(t.source) && !n ? "widget" : null;
30293
+ }, zY = (e, t, n) => {
30294
+ if (!RY(e)) return n.push({ rule: "accessoryViewBody" }), [];
30294
30295
  let r = t.rules ?? {};
30295
- if (e.widget) return NK(r, "widget") ? [e] : (n.push({
30296
+ if (e.widget) return PK(r, "widget") ? [e] : (n.push({
30296
30297
  rule: "allowedBlockTypes",
30297
30298
  sectionId: e.id,
30298
30299
  elementId: e.widget.id,
30299
30300
  blockType: "widget"
30300
30301
  }), []);
30301
- let i = NY(e.sections, r, n), a = t.shape ? FY(i, t.shape, n) : i;
30302
+ let i = PY(e.sections, r, n), a = t.shape ? IY(i, t.shape, n) : i;
30302
30303
  return [{
30303
30304
  ...e,
30304
30305
  sections: a
30305
30306
  }];
30306
- }, zY = (e, t, n) => e.flatMap((e) => {
30307
+ }, BY = (e, t, n) => e.flatMap((e) => {
30307
30308
  let r = t.find((t) => t.type === e.type);
30308
30309
  if (!r) return n.push({
30309
30310
  rule: "accessoryViewType",
30310
30311
  accessoryViewId: e.id,
30311
30312
  viewType: e.type
30312
30313
  }), [];
30313
- let i = [], a = RY(e, r, i);
30314
+ let i = [], a = zY(e, r, i);
30314
30315
  return n.push(...i.map((t) => ({
30315
30316
  ...t,
30316
30317
  accessoryViewId: e.id
30317
30318
  }))), a;
30318
- }), BY = (e, t, n = []) => {
30319
- let r = [], i = ZK(NY(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
30319
+ }), VY = (e, t, n = []) => {
30320
+ let r = [], i = QK(PY(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
30320
30321
  rule: "sectionTitle",
30321
30322
  sectionId: e.id
30322
30323
  }), !1)), t, r), r);
30323
30324
  i.forEach((e, n) => {
30324
- let i = LK(t, n === 0);
30325
- for (let t of e.elements) t.type === "shortcuts" && DK(t, MK(i, t.type), {
30325
+ let i = RK(t, n === 0);
30326
+ for (let t of e.elements) t.type === "shortcuts" && OK(t, NK(i, t.type), {
30326
30327
  sectionId: e.id,
30327
30328
  elementId: t.id
30328
30329
  }, r);
30329
30330
  });
30330
- let a = e.accessoryViews ? zY(e.accessoryViews, n, r) : void 0, o = {
30331
+ let a = e.accessoryViews ? BY(e.accessoryViews, n, r) : void 0, o = {
30331
30332
  ...e,
30332
30333
  sections: i,
30333
30334
  ...a ? { accessoryViews: a } : {}
30334
30335
  };
30335
30336
  return {
30336
30337
  spec: o,
30337
- violations: [...r, ...KK(o)]
30338
+ violations: [...r, ...qK(o)]
30338
30339
  };
30339
- }, VY = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
30340
+ }, HY = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
30340
30341
  let a = J(() => {
30341
- let i = BY(e, n ?? {}, r), a = t ? tq(t, i.spec, n ?? {}, r) : {
30342
+ let i = VY(e, n ?? {}, r), a = t ? nq(t, i.spec, n ?? {}, r) : {
30342
30343
  sources: t,
30343
30344
  violations: []
30344
30345
  };
@@ -30361,7 +30362,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30361
30362
  let e = JSON.parse(s);
30362
30363
  e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
30363
30364
  }, [s]), a;
30364
- }, HY = (e, t, n) => {
30365
+ }, UY = (e, t, n) => {
30365
30366
  let r = Y(n);
30366
30367
  K(() => {
30367
30368
  r.current = n;
@@ -30376,7 +30377,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30376
30377
  t,
30377
30378
  i
30378
30379
  ]);
30379
- }, UY = 1164, WY = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
30380
+ }, WY = 1164, GY = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
30380
30381
  let i = Y(null), [a, o] = X(0);
30381
30382
  q(() => {
30382
30383
  let e = i.current;
@@ -30391,40 +30392,40 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30391
30392
  defaultProp: n,
30392
30393
  onChange: r,
30393
30394
  caller: "F0AgenticHome"
30394
- }), l = e && (a === 0 || a >= UY);
30395
+ }), l = e && (a === 0 || a >= WY);
30395
30396
  return {
30396
30397
  root: i,
30397
30398
  collapsed: !l || s,
30398
30399
  toggle: l ? () => c(!s) : void 0
30399
30400
  };
30400
- }, GY = (e, t) => {
30401
+ }, KY = (e, t) => {
30401
30402
  let n = Object.keys(e.params);
30402
30403
  return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
30403
- }, KY = (e, t) => {
30404
- let { missingParams: n, undeclaredParams: r } = RK(e, t);
30404
+ }, qY = (e, t) => {
30405
+ let { missingParams: n, undeclaredParams: r } = zK(e, t);
30405
30406
  return n.length === 0 && r.length === 0;
30406
- }, qY = {}, JY = (e, t, n, r) => !n || r && GY(r, t) ? e : qY, YY = "pt-[max(4rem,22vh)]", XY = "pb-40", ZY = "pb-10", QY = (e, t) => e ? t && "md:px-20" : "pr-[428px]", $Y = Cu(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, widgets: i = [], widgetsCollapsed: a, defaultWidgetsCollapsed: o = !0, onWidgetsCollapsedChange: s, onClickAddWidget: c, onRemoveWidget: l, onReorderWidgets: u, onChangeWidgetParams: d, sources: f, sourcesFor: p, onAccessoryViewOpen: m, onAccessoryViewClose: h, onAction: g, composer: _, onComposerVisibilityChange: v, rules: y, onRulesViolation: b, accessoryViewTypes: x, slotRenderers: S, renderMention: C }, w) {
30407
- let { spec: T, sources: E } = VY({
30407
+ }, JY = {}, YY = (e, t, n, r) => !n || r && KY(r, t) ? e : JY, XY = "pt-[max(4rem,22vh)]", ZY = "pb-40", QY = "pb-10", $Y = (e, t) => e ? t && "md:px-20" : "pr-[428px]", eX = Cu(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, widgets: i = [], widgetsCollapsed: a, defaultWidgetsCollapsed: o = !0, onWidgetsCollapsedChange: s, onClickAddWidget: c, onRemoveWidget: l, onReorderWidgets: u, onChangeWidgetParams: d, sources: f, sourcesFor: p, onAccessoryViewOpen: m, onAccessoryViewClose: h, onAction: g, composer: _, onComposerVisibilityChange: v, rules: y, onRulesViolation: b, accessoryViewTypes: x, slotRenderers: S, renderMention: C }, w) {
30408
+ let { spec: T, sources: E } = HY({
30408
30409
  spec: e,
30409
30410
  sources: f,
30410
30411
  rules: y,
30411
30412
  accessoryViewTypes: x,
30412
30413
  onRulesViolation: b
30413
30414
  }), D = Y(null), O = Y(null);
30414
- ku(w, () => D.current), HY(D, O, v);
30415
- let k = jY(D), A = WY({
30415
+ ku(w, () => D.current), UY(D, O, v);
30416
+ let k = MY(D), A = GY({
30416
30417
  hasWidgets: i.length > 0,
30417
30418
  collapsed: a,
30418
30419
  defaultCollapsed: o,
30419
30420
  onCollapsedChange: s
30420
- }), j = _ ? /* @__PURE__ */ Q(iY, {
30421
+ }), j = _ ? /* @__PURE__ */ Q(aY, {
30421
30422
  ref: O,
30422
30423
  children: _
30423
30424
  }) : null, [M, ...N] = T.sections, [P, F] = X(), I = T.accessoryViews?.find(({ id: e }) => e === P?.id), L = x?.find(({ type: e }) => e === I?.type), ee = J(() => (e, t) => {
30424
30425
  if (e.type === "goToSection" && k(e.sectionId), e.type === "openAccessoryView") {
30425
30426
  let t = T.accessoryViews?.find(({ id: t }) => t === e.id);
30426
30427
  if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
30427
- else if (KY(t, e.params)) {
30428
+ else if (qY(t, e.params)) {
30428
30429
  let n = {
30429
30430
  id: t.id,
30430
30431
  params: e.params ?? {}
@@ -30442,9 +30443,9 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30442
30443
  m,
30443
30444
  T.accessoryViews
30444
30445
  ]);
30445
- return /* @__PURE__ */ Q(yJ, {
30446
+ return /* @__PURE__ */ Q(bJ, {
30446
30447
  value: S,
30447
- children: /* @__PURE__ */ Q(PJ, {
30448
+ children: /* @__PURE__ */ Q(FJ, {
30448
30449
  value: C,
30449
30450
  children: /* @__PURE__ */ $("div", {
30450
30451
  ref: A.root,
@@ -30452,26 +30453,26 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30452
30453
  children: [
30453
30454
  /* @__PURE__ */ $("div", {
30454
30455
  ref: D,
30455
- className: B("h-full w-full overflow-y-auto bg-f1-background px-6", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none", QY(A.collapsed, i.length > 0 || !!c)),
30456
+ className: B("h-full w-full overflow-y-auto bg-f1-background px-6", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none", $Y(A.collapsed, i.length > 0 || !!c)),
30456
30457
  children: [/* @__PURE__ */ $("div", {
30457
- className: B("mx-auto flex w-full max-w-content flex-col gap-20", YY, _ && v ? XY : ZY),
30458
+ className: B("mx-auto flex w-full max-w-content flex-col gap-20", XY, _ && v ? ZY : QY),
30458
30459
  children: [
30459
- t ? /* @__PURE__ */ Q(aY, { greeting: t }) : null,
30460
+ t ? /* @__PURE__ */ Q(oY, { greeting: t }) : null,
30460
30461
  M ? null : j,
30461
- M ? /* @__PURE__ */ Q($J, {
30462
+ M ? /* @__PURE__ */ Q(eY, {
30462
30463
  size: "lead",
30463
30464
  section: M,
30464
30465
  sources: E,
30465
30466
  onAction: ee,
30466
30467
  composer: j
30467
30468
  }, M.id) : null,
30468
- N.map((e) => /* @__PURE__ */ Q($J, {
30469
+ N.map((e) => /* @__PURE__ */ Q(eY, {
30469
30470
  section: e,
30470
30471
  sources: E,
30471
30472
  onAction: ee
30472
30473
  }, e.id))
30473
30474
  ]
30474
- }), P && I && L ? /* @__PURE__ */ Q(rY, {
30475
+ }), P && I && L ? /* @__PURE__ */ Q(iY, {
30475
30476
  view: I,
30476
30477
  params: P.params,
30477
30478
  presentation: L.presentation,
@@ -30484,7 +30485,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30484
30485
  open: !1
30485
30486
  }), h?.();
30486
30487
  },
30487
- sources: JY(E, P, !!I.params?.length, p),
30488
+ sources: YY(E, P, !!I.params?.length, p),
30488
30489
  onAction: ee
30489
30490
  }) : null]
30490
30491
  }),
@@ -30492,7 +30493,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30492
30493
  className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
30493
30494
  children: /* @__PURE__ */ Q(qU, {})
30494
30495
  }) : null,
30495
- n || i.length || c ? /* @__PURE__ */ Q(kY, {
30496
+ n || i.length || c ? /* @__PURE__ */ Q(AY, {
30496
30497
  widgets: i,
30497
30498
  collapsed: A.collapsed,
30498
30499
  onToggleCollapsed: A.toggle,
@@ -30507,20 +30508,20 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30507
30508
  })
30508
30509
  })
30509
30510
  });
30510
- }), eX = En("F0AgenticHome", $Y), tX = Cu(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
30511
+ }), tX = En("F0AgenticHome", eX), nX = Cu(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
30511
30512
  let a = J(() => (e, t) => n?.(e, t), [n]);
30512
30513
  return /* @__PURE__ */ Q("div", {
30513
30514
  ref: i,
30514
- children: /* @__PURE__ */ Q(yJ, {
30515
+ children: /* @__PURE__ */ Q(bJ, {
30515
30516
  value: r,
30516
- children: /* @__PURE__ */ Q(SJ, {
30517
+ children: /* @__PURE__ */ Q(CJ, {
30517
30518
  element: e,
30518
30519
  state: t,
30519
30520
  onAction: a
30520
30521
  })
30521
30522
  })
30522
30523
  });
30523
- }), nX = En("F0AgenticHomeBlock", tX), rX = {
30524
+ }), rX = En("F0AgenticHomeBlock", nX), iX = {
30524
30525
  maxSections: 12,
30525
30526
  maxElementsPerSection: 3,
30526
30527
  blocks: [
@@ -30568,10 +30569,10 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30568
30569
  type: "list",
30569
30570
  itemActions: ["goToSection"]
30570
30571
  }] }
30571
- }, iX = 1, aX = {
30572
+ }, aX = 1, oX = {
30572
30573
  main: 672,
30573
30574
  right: 396
30574
- }, oX = 250, sX = (e) => typeof e == "object" && !!e && !wu(e) && Array.isArray(e.slots), cX = ({ preview: e, params: t, slotRenderers: n }) => sX(e) ? /* @__PURE__ */ Q(mG, {
30575
+ }, sX = 250, cX = (e) => typeof e == "object" && !!e && !wu(e) && Array.isArray(e.slots), lX = ({ preview: e, params: t, slotRenderers: n }) => cX(e) ? /* @__PURE__ */ Q(mG, {
30575
30576
  ...AW(e),
30576
30577
  header: e.header,
30577
30578
  params: t ?? e.params,
@@ -30579,7 +30580,7 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30579
30580
  slots: e.slots,
30580
30581
  loading: e.loading,
30581
30582
  slotRenderers: n
30582
- }) : /* @__PURE__ */ Q(Z, { children: e }), lX = (e, t, n) => e.info ?? (sX(t) ? EW(t.header, n ?? t.params)?.info : void 0), uX = (e) => e.paramsSchema ?? (sX(e.preview) ? e.preview.paramsSchema : void 0), dX = (e) => e.params ?? (sX(e.preview) ? e.preview.params : void 0) ?? {}, fX = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
30583
+ }) : /* @__PURE__ */ Q(Z, { children: e }), uX = (e, t, n) => e.info ?? (cX(t) ? EW(t.header, n ?? t.params)?.info : void 0), dX = (e) => e.paramsSchema ?? (cX(e.preview) ? e.preview.paramsSchema : void 0), fX = (e) => e.params ?? (cX(e.preview) ? e.preview.params : void 0) ?? {}, pX = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
30583
30584
  className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
30584
30585
  children: [t ? /* @__PURE__ */ Q(W, {
30585
30586
  icon: t,
@@ -30590,10 +30591,10 @@ var iK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30590
30591
  children: e
30591
30592
  })]
30592
30593
  });
30593
- function pX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: u = "Add widget" }) {
30594
+ function mX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: u = "Add widget" }) {
30594
30595
  let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = gG(), [g, _] = X(""), [v, y] = X(null), [b, x] = X("pick"), [S, C] = X(!1), w = (e) => {
30595
30596
  C(!0), x(e);
30596
- }, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = l(), A = g.trim().toLowerCase(), j = o ?? (a ? aX[a] : aX.right), M = J(() => {
30597
+ }, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = l(), A = g.trim().toLowerCase(), j = o ?? (a ? oX[a] : oX.right), M = J(() => {
30597
30598
  let e = a ? n.filter((e) => !e.areas || e.areas.includes(a)) : n, t = A ? e.filter((e) => e.title.toLowerCase().includes(A)) : 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));
30598
30599
  return [
30599
30600
  ...r.length ? [{
@@ -30618,7 +30619,7 @@ function pX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30618
30619
  A,
30619
30620
  a,
30620
30621
  d
30621
- ]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? uX(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && OW(F, dX(P))), L = b === "configure" && I, ee = P && T?.id === P.id ? T.params : P ? dX(P) : {}, te = L && P && c ? c(P, ee) : P?.preview;
30622
+ ]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? dX(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && OW(F, fX(P))), L = b === "configure" && I, ee = P && T?.id === P.id ? T.params : P ? fX(P) : {}, te = L && P && c ? c(P, ee) : P?.preview;
30622
30623
  return K(() => {
30623
30624
  e && (x("pick"), C(!1), E(null));
30624
30625
  }, [e]), K(() => {
@@ -30665,7 +30666,7 @@ function pX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30665
30666
  defaultValues: ee,
30666
30667
  submitConfig: {
30667
30668
  type: "autosubmit",
30668
- delay: oX,
30669
+ delay: sX,
30669
30670
  hideActionBar: !0
30670
30671
  },
30671
30672
  styling: { noPadding: !0 },
@@ -30680,7 +30681,7 @@ function pX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30680
30681
  placeholder: "Search widgets"
30681
30682
  }), /* @__PURE__ */ $("div", {
30682
30683
  className: "flex flex-col gap-1 overflow-y-auto",
30683
- children: [M.map((e) => /* @__PURE__ */ $(yu, { children: [e.label ? /* @__PURE__ */ Q(fX, {
30684
+ children: [M.map((e) => /* @__PURE__ */ $(yu, { children: [e.label ? /* @__PURE__ */ Q(pX, {
30684
30685
  label: e.label,
30685
30686
  icon: e.icon
30686
30687
  }) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
@@ -30701,9 +30702,9 @@ function pX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30701
30702
  })] })
30702
30703
  }, b), /* @__PURE__ */ Q(vG, {
30703
30704
  previewKey: P?.id,
30704
- info: P ? lX(P, te, L ? ee : void 0) : void 0,
30705
+ info: P ? uX(P, te, L ? ee : void 0) : void 0,
30705
30706
  previewWidth: j,
30706
- children: P ? /* @__PURE__ */ Q(cX, {
30707
+ children: P ? /* @__PURE__ */ Q(lX, {
30707
30708
  preview: te,
30708
30709
  params: L ? ee : void 0,
30709
30710
  slotRenderers: s
@@ -30714,62 +30715,62 @@ function pX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30714
30715
  }
30715
30716
  //#endregion
30716
30717
  //#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
30717
- var mX = Object.defineProperty, hX = Object.defineProperties, gX = Object.getOwnPropertyDescriptors, _X = Object.getOwnPropertySymbols, vX = Object.prototype.hasOwnProperty, yX = Object.prototype.propertyIsEnumerable, bX = (e, t, n) => t in e ? mX(e, t, {
30718
+ var hX = Object.defineProperty, gX = Object.defineProperties, _X = Object.getOwnPropertyDescriptors, vX = Object.getOwnPropertySymbols, yX = Object.prototype.hasOwnProperty, bX = Object.prototype.propertyIsEnumerable, xX = (e, t, n) => t in e ? hX(e, t, {
30718
30719
  enumerable: !0,
30719
30720
  configurable: !0,
30720
30721
  writable: !0,
30721
30722
  value: n
30722
- }) : e[t] = n, xX = (e, t) => {
30723
- for (var n in t ||= {}) vX.call(t, n) && bX(e, n, t[n]);
30724
- if (_X) for (var n of _X(t)) yX.call(t, n) && bX(e, n, t[n]);
30723
+ }) : e[t] = n, SX = (e, t) => {
30724
+ for (var n in t ||= {}) yX.call(t, n) && xX(e, n, t[n]);
30725
+ if (vX) for (var n of vX(t)) bX.call(t, n) && xX(e, n, t[n]);
30725
30726
  return e;
30726
- }, SX = (e, t) => hX(e, gX(t)), CX = (e, t) => {
30727
+ }, CX = (e, t) => gX(e, _X(t)), wX = (e, t) => {
30727
30728
  var n = {};
30728
- for (var r in e) vX.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
30729
- if (e != null && _X) for (var r of _X(e)) t.indexOf(r) < 0 && yX.call(e, r) && (n[r] = e[r]);
30729
+ for (var r in e) yX.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
30730
+ if (e != null && vX) for (var r of vX(e)) t.indexOf(r) < 0 && bX.call(e, r) && (n[r] = e[r]);
30730
30731
  return n;
30731
- }, wX = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, TX = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), EX = ({ position: e, spot: t, stone: n }) => {
30732
+ }, TX = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, EX = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), DX = ({ position: e, spot: t, stone: n }) => {
30732
30733
  if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
30733
30734
  if (t.bottom && t.bottom < e.top) return t;
30734
- let n = xX({}, t);
30735
+ let n = SX({}, t);
30735
30736
  return n.right = e.left, n;
30736
30737
  }
30737
30738
  return null;
30738
- }, DX = ({ position: e, stone: t, spot: n }) => {
30739
+ }, OX = ({ position: e, stone: t, spot: n }) => {
30739
30740
  if (e.left + t.width > n.left && e.top >= n.top) {
30740
30741
  if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
30741
- let t = xX({}, n);
30742
+ let t = SX({}, n);
30742
30743
  return t.bottom = e.top, t;
30743
30744
  }
30744
30745
  return null;
30745
- }, OX = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
30746
- let i = xX({}, r);
30747
- return i.left = t.left + e.width, wX(i) || TX({
30746
+ }, kX = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
30747
+ let i = SX({}, r);
30748
+ return i.left = t.left + e.width, TX(i) || EX({
30748
30749
  usedSpot: i,
30749
30750
  spotsList: n
30750
30751
  }) ? null : i;
30751
- }, kX = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? OX({
30752
+ }, AX = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? kX({
30752
30753
  stone: r,
30753
30754
  position: t,
30754
30755
  optimalSpot: n,
30755
30756
  spotsList: a
30756
- }) : EX({
30757
+ }) : DX({
30757
30758
  position: t,
30758
30759
  spot: e,
30759
30760
  stone: r
30760
- }) || DX({
30761
+ }) || OX({
30761
30762
  position: t,
30762
30763
  stone: r,
30763
30764
  spot: e
30764
30765
  }) || e);
30765
- function AX(e, t) {
30766
+ function jX(e, t) {
30766
30767
  for (let n = 0, r = t.length; n < r; n++) {
30767
30768
  let r = t[n];
30768
30769
  if (e(r)) return r;
30769
30770
  }
30770
30771
  return null;
30771
30772
  }
30772
- var jX = (e, t) => t.filter(e), MX = (e, t) => [...t].sort(e), NX = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, PX = (e) => MX(NX, e), FX = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
30773
+ var MX = (e, t) => t.filter(e), NX = (e, t) => [...t].sort(e), PX = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, FX = (e) => NX(PX, e), IX = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
30773
30774
  let i = {
30774
30775
  right: n,
30775
30776
  top: t.top + r.height,
@@ -30784,36 +30785,36 @@ var jX = (e, t) => t.filter(e), MX = (e, t) => [...t].sort(e), NX = (e, t) => e.
30784
30785
  }
30785
30786
  }
30786
30787
  return i;
30787
- }, IX = (e, t) => {
30788
+ }, LX = (e, t) => {
30788
30789
  let n = e.right - e.left >= t.width;
30789
30790
  if (!e.bottom) return n;
30790
30791
  let r = e.bottom - e.top >= t.height;
30791
30792
  return n && r;
30792
- }, LX = ({ availableSpots: e, stone: t }) => AX((e) => IX(e, t), e);
30793
- function RX({ stone: e, availableSpots: t, containerSize: n }) {
30794
- let r = LX({
30793
+ }, RX = ({ availableSpots: e, stone: t }) => jX((e) => LX(e, t), e);
30794
+ function zX({ stone: e, availableSpots: t, containerSize: n }) {
30795
+ let r = RX({
30795
30796
  availableSpots: t,
30796
30797
  stone: e
30797
30798
  }), i = {
30798
30799
  left: r.left,
30799
30800
  top: r.top
30800
- }, a = FX({
30801
+ }, a = IX({
30801
30802
  optimalSpot: r,
30802
30803
  availableSpots: t.filter((e) => e !== r),
30803
30804
  stone: e,
30804
30805
  containerSize: n
30805
- }), o = [...t, a], s = kX({
30806
+ }), o = [...t, a], s = AX({
30806
30807
  spots: o,
30807
30808
  position: i,
30808
30809
  optimalSpot: r,
30809
30810
  stone: e
30810
30811
  });
30811
- return o = [...jX(Boolean, s)], o = PX(o), {
30812
+ return o = [...MX(Boolean, s)], o = FX(o), {
30812
30813
  position: i,
30813
30814
  availableSpots: o
30814
30815
  };
30815
30816
  }
30816
- var zX = ({ stones: e, containerSize: t }) => {
30817
+ var BX = ({ stones: e, containerSize: t }) => {
30817
30818
  let n = {
30818
30819
  positions: [],
30819
30820
  containerHeight: 0,
@@ -30826,7 +30827,7 @@ var zX = ({ stones: e, containerSize: t }) => {
30826
30827
  right: t
30827
30828
  }];
30828
30829
  for (let n of e) {
30829
- let e = RX({
30830
+ let e = zX({
30830
30831
  availableSpots: a,
30831
30832
  stone: n,
30832
30833
  containerSize: t
@@ -30838,14 +30839,14 @@ var zX = ({ stones: e, containerSize: t }) => {
30838
30839
  positions: i,
30839
30840
  containerHeight: r
30840
30841
  };
30841
- }, BX = (e) => e.reduce((e, t) => {
30842
+ }, VX = (e) => e.reduce((e, t) => {
30842
30843
  if (!t) return e;
30843
30844
  let n = t.getBoundingClientRect();
30844
30845
  return e.push({
30845
30846
  width: n.width,
30846
30847
  height: n.height
30847
30848
  }), e;
30848
- }, []), VX = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
30849
+ }, []), HX = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
30849
30850
  let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
30850
30851
  positions: [],
30851
30852
  containerHeight: null,
@@ -30853,13 +30854,13 @@ var zX = ({ stones: e, containerSize: t }) => {
30853
30854
  availableSpots: []
30854
30855
  });
30855
30856
  return K(() => {
30856
- let n = BX(e.current), r = t.current?.offsetWidth ?? 0;
30857
+ let n = VX(e.current), r = t.current?.offsetWidth ?? 0;
30857
30858
  if (r === null) return;
30858
- let i = zX({
30859
+ let i = BX({
30859
30860
  stones: n,
30860
30861
  containerSize: r
30861
30862
  });
30862
- l(SX(xX({}, i), { stones: n }));
30863
+ l(CX(SX({}, i), { stones: n }));
30863
30864
  }, [
30864
30865
  n,
30865
30866
  e,
@@ -30872,7 +30873,7 @@ var zX = ({ stones: e, containerSize: t }) => {
30872
30873
  stones: s,
30873
30874
  availableSpots: c
30874
30875
  };
30875
- }, HX = (e) => ({
30876
+ }, UX = (e) => ({
30876
30877
  fade: `${e}ms opacity ease`,
30877
30878
  fadeMove: `
30878
30879
  ${e}ms opacity ease,
@@ -30883,15 +30884,15 @@ var zX = ({ stones: e, containerSize: t }) => {
30883
30884
  ${e}ms top ease,
30884
30885
  ${e}ms left ease
30885
30886
  `
30886
- }), UX = ({ transition: e, transitionDuration: t }) => e ? { transition: HX(t)[e] } : null, WX = (e) => e ? SX(xX({}, e), { opacity: 1 }) : {
30887
+ }), WX = ({ transition: e, transitionDuration: t }) => e ? { transition: UX(t)[e] } : null, GX = (e) => e ? CX(SX({}, e), { opacity: 1 }) : {
30887
30888
  opacity: 0,
30888
30889
  top: 0,
30889
30890
  left: 0
30890
- }, GX = ({ style: e, position: t, transition: n, transitionDuration: r }) => xX(xX(SX(xX({}, e), { position: "absolute" }), WX(t)), UX({
30891
+ }, KX = ({ style: e, position: t, transition: n, transitionDuration: r }) => SX(SX(CX(SX({}, e), { position: "absolute" }), GX(t)), WX({
30891
30892
  transition: n,
30892
30893
  transitionDuration: r
30893
30894
  }));
30894
- function KX(e, t, n) {
30895
+ function qX(e, t, n) {
30895
30896
  let r;
30896
30897
  return function(...i) {
30897
30898
  r && clearTimeout(r), r = setTimeout(function() {
@@ -30899,8 +30900,8 @@ function KX(e, t, n) {
30899
30900
  }, t), n && !r && e.apply(null, i);
30900
30901
  };
30901
30902
  }
30902
- var qX = () => {
30903
- let [e, t] = X(), n = Y(KX(t, 300));
30903
+ var JX = () => {
30904
+ let [e, t] = X(), n = Y(qX(t, 300));
30904
30905
  return K(() => {
30905
30906
  let e = () => {
30906
30907
  n.current(window.innerWidth);
@@ -30909,7 +30910,7 @@ var qX = () => {
30909
30910
  window.removeEventListener("resize", e);
30910
30911
  };
30911
30912
  }, []), e;
30912
- }, JX = (e) => {
30913
+ }, YX = (e) => {
30913
30914
  let [t, n] = X(null);
30914
30915
  return K(() => {
30915
30916
  let t = new ResizeObserver((e) => {
@@ -30919,31 +30920,31 @@ var qX = () => {
30919
30920
  t.disconnect();
30920
30921
  };
30921
30922
  }, [e]), t;
30922
- }, YX = (e) => {
30923
- var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = CX(t, [
30923
+ }, XX = (e) => {
30924
+ var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = wX(t, [
30924
30925
  "children",
30925
30926
  "style",
30926
30927
  "transition",
30927
30928
  "transitionDuration",
30928
30929
  "transitionStep"
30929
30930
  ]);
30930
- let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = VX({
30931
+ let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = HX({
30931
30932
  boxesRefs: c,
30932
30933
  wrapperRef: l,
30933
30934
  children: n,
30934
- windowWidth: qX(),
30935
- wrapperWidth: JX(l)
30936
- }), f = xX({
30935
+ windowWidth: JX(),
30936
+ wrapperWidth: YX(l)
30937
+ }), f = SX({
30937
30938
  minHeight: d ?? 0,
30938
30939
  position: "relative"
30939
30940
  }, r);
30940
- return Q("div", SX(xX({
30941
+ return Q("div", CX(SX({
30941
30942
  ref: l,
30942
30943
  style: f
30943
30944
  }, s), { children: vu.map(n, (e, t) => {
30944
30945
  if (typeof e != "object" || !e || !("type" in e)) return e;
30945
30946
  let n = {
30946
- style: GX({
30947
+ style: KX({
30947
30948
  style: e.props.style,
30948
30949
  position: u[t],
30949
30950
  transition: i,
@@ -30951,14 +30952,14 @@ var qX = () => {
30951
30952
  }),
30952
30953
  ref: (e) => c.current[t] = e
30953
30954
  };
30954
- return xu(e, xX(xX({}, e.props), n));
30955
+ return xu(e, SX(SX({}, e.props), n));
30955
30956
  }) }));
30956
- }, XX = {
30957
+ }, ZX = {
30957
30958
  sm: 340,
30958
30959
  md: 480,
30959
30960
  lg: 640
30960
- }, ZX = Cu(function({ children: e, widgetWidth: t = "sm" }, n) {
30961
- let r = XX[t], [i, a] = X(), o = vu.toArray(e), s = Y(null);
30961
+ }, QX = Cu(function({ children: e, widgetWidth: t = "sm" }, n) {
30962
+ let r = ZX[t], [i, a] = X(), o = vu.toArray(e), s = Y(null);
30962
30963
  return K(() => {
30963
30964
  let e = () => {
30964
30965
  let e = s.current?.offsetWidth;
@@ -30977,7 +30978,7 @@ var qX = () => {
30977
30978
  children: e
30978
30979
  }) : i && i > 1 && /* @__PURE__ */ Q("div", {
30979
30980
  className: "relative -mr-4",
30980
- children: /* @__PURE__ */ Q(YX, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
30981
+ children: /* @__PURE__ */ Q(XX, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
30981
30982
  style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
30982
30983
  className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
30983
30984
  children: e
@@ -30985,7 +30986,7 @@ var qX = () => {
30985
30986
  })
30986
30987
  })
30987
30988
  });
30988
- }), QX = [
30989
+ }), $X = [
30989
30990
  "sm",
30990
30991
  "lg",
30991
30992
  "md",
@@ -30998,26 +30999,26 @@ var qX = () => {
30998
30999
  "sm",
30999
31000
  "md",
31000
31001
  "md"
31001
- ], $X = ia(ZX, () => /* @__PURE__ */ Q(cs, { children: /* @__PURE__ */ Q(ZX, { children: QX.map((e, t) => /* @__PURE__ */ Q(ze.Skeleton, { height: e }, t)) }) })), eZ = ({ children: e }) => /* @__PURE__ */ Q("div", {
31002
+ ], eZ = ia(QX, () => /* @__PURE__ */ Q(cs, { children: /* @__PURE__ */ Q(QX, { children: $X.map((e, t) => /* @__PURE__ */ Q(ze.Skeleton, { height: e }, t)) }) })), tZ = ({ children: e }) => /* @__PURE__ */ Q("div", {
31002
31003
  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)]",
31003
31004
  children: e
31004
- }), tZ = ia(Cu(function({ children: e }, t) {
31005
+ }), nZ = ia(Cu(function({ children: e }, t) {
31005
31006
  return /* @__PURE__ */ Q(xl, {
31006
31007
  ref: t,
31007
31008
  showBar: !1,
31008
- children: /* @__PURE__ */ Q(eZ, { children: e })
31009
+ children: /* @__PURE__ */ Q(tZ, { children: e })
31009
31010
  });
31010
31011
  }), () => /* @__PURE__ */ Q(cs, {
31011
31012
  orientation: "horizontal",
31012
- children: /* @__PURE__ */ $(eZ, { children: [
31013
+ children: /* @__PURE__ */ $(tZ, { children: [
31013
31014
  /* @__PURE__ */ Q(ze.Skeleton, {}),
31014
31015
  /* @__PURE__ */ Q(ze.Skeleton, {}),
31015
31016
  /* @__PURE__ */ Q(ze.Skeleton, {})
31016
31017
  ] })
31017
- })), nZ = ze;
31018
+ })), rZ = ze;
31018
31019
  //#endregion
31019
31020
  //#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
31020
- function rZ({ title: e, description: t, emoji: n, actions: r }) {
31021
+ function iZ({ title: e, description: t, emoji: n, actions: r }) {
31021
31022
  if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
31022
31023
  return /* @__PURE__ */ Q(E, {
31023
31024
  title: e,
@@ -31028,7 +31029,7 @@ function rZ({ title: e, description: t, emoji: n, actions: r }) {
31028
31029
  }
31029
31030
  //#endregion
31030
31031
  //#region src/blocks/Widgets/WidgetEmptyState/index.tsx
31031
- var iZ = Sn(En("WidgetEmptyState", rZ)), aZ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
31032
+ var aZ = Sn(En("WidgetEmptyState", iZ)), oZ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
31032
31033
  let i = Cn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
31033
31034
  a,
31034
31035
  t,
@@ -31042,9 +31043,9 @@ var iZ = Sn(En("WidgetEmptyState", rZ)), aZ = ({ identifier: e, allowedRoutes: t
31042
31043
  n
31043
31044
  ]);
31044
31045
  return o ? r : (i && console.error(s), null);
31045
- }, oZ = Sn(hs({
31046
+ }, sZ = Sn(hs({
31046
31047
  name: "ScrollArea",
31047
31048
  type: "layout"
31048
31049
  }, xl));
31049
31050
  //#endregion
31050
- export { iX as AGENTIC_HOME_SPEC_VERSION, d as AUTO_PER_PAGE_MAX, ln as AUTO_PER_PAGE_MIN_RESERVED_ROWS, xh as ActivityItemList, bh as ActivityItemListSkeleton, fd as AiPromotionChat, pd as AiPromotionChatProvider, fT as ApplicationFrame, _e as AreaChart, aH as AreaChartWidget, GV as AutoGrid, ys as Badge, m as BarChart, oH as BarChartWidget, yh as BaseActivityItemList, ut as BaseBanner, Dh as BaseCelebration, Wh as BaseCommunityPost, ki as BaseTabs, Ca as BreadcrumbSelect, NT as Breadcrumbs, zh as CalendarEvent, xH as CalendarEventList, Je as CardSelectableContainer, Lt as Carousel, f as CategoryBarChart, HH as CategoryBarSection, kh as Celebration, Oh as CelebrationSkeleton, vH as ChartWidgetEmptyState, Xs as Chip, _U as ClockInControls, Xt as CoachmarkProvider, re as ComboChart, Kh as CommunityPost, tg as CommunityPostCard, ng as CommunityPostCardSkeleton, Gh as CommunityPostSkeleton, RO as CompanySelector, ar as Counter, WW as DEFAULT_EXPECTED_ITEMS_COUNT, $X as Dashboard, wT as DaytimePage, Zo as DetailsItem, vr as DetailsItemsList, nn as Dialog, $a as Dropdown, FW as EVENT_LIST_GAP, Bm as EntitySelect, St as F0ActionBar, eX as F0AgenticHome, nX as F0AgenticHomeBlock, de as F0AiBanner, Gd as F0AiCallout, Ps as F0AvatarColor, gs as F0AvatarColorList, Es as F0AvatarModule, Wc as F0ButtonToggle, $d as F0Callout, pr as F0CardHorizontal, pr as F0CardRow, Vp as F0CarouselDialog, EV as F0Chat, qN as F0ChatHistoryLimitCard, nu as F0ChatProvider, jM as F0CommandPaletteProvider, og as F0CommunityPostsCarousel, xp as F0Composer, ff as F0Confetti, NV as F0ENPSButton, Sd as F0EmojiPicker, vo as F0FileItem, Pe as F0FormEditableTable, JA as F0InboxItem, YA as F0InboxItemDecision, tj as F0InboxItemGroup, rj as F0InboxItemList, cj as F0InboxItemListSkeleton, sj as F0InboxItemSkeleton, He as F0LocationInput, Yl as F0Map, Nl as F0MapControls, Ql as F0MapList, $l as F0MapSidebar, Ul as F0MapSidebarToggle, Kl as F0MapSkeleton, Dw as F0Meeting, Pf as F0MeetingCard, Mg as F0MeetingProvider, lw as F0MeetingRoom, Ow as F0MeetingSlot, Ew as F0MeetingSurface, mn as F0NotesTextEditor, Ue as F0NotesTextEditorSkeleton, fe as F0NumberInput, j as F0NumberInputInline, ai as F0PersonCard, gt as F0PhoneInput, $k as F0PrimarySidebar, Gc as F0ProgressSeries, zf as F0PulseDot, Rp as F0Resizable, Fe as F0ResourceHeader, Fe as ResourceHeader, qi as F0RichTextDisplay, _t as F0RichTextEditor, Sc as F0SearchInput, nA as F0SecondarySidebar, Up as F0SegmentedBar, $r as F0SegmentedControl, em as F0SwipeDeck, mt as F0TableOfContent, lh as F0TemplateTextInput, _ as F0TextAreaInput, oe as F0TextAreaInputInline, Ua as F0TextInput, ee as F0TextInputInline, fm as F0Timeline, um as F0VersionHistory, HN as F0_CHAT_HEADER_TITLE_SELECTOR, LM as F0_CHAT_MESSAGES_TAB_ID, xc as F1SearchBox, L as FILE_TYPES, ro as FileItem, Ah as HighlightBanner, GU as HomeSlotItem, WU as HomeSlotItems, EH as IndicatorsList, ei as Input, Nt as Item, Be as ItemSectionHeader, RM as LATEST, xW as LIST_COMPACT_AFTER, NW as LIST_MORE_BUTTON_CLASS, bt as LineChart, sH as LineChartWidget, Gw as MeetingNotes, Aw as MeetingPanelContent, Ww as MeetingParticipants, Mw as MeetingRoomChat, KC as MeetingSidePanel, sy as MeetingSurfaceProvider, Fw as MeetingTranscript, tk as Menu, Uo as MobileDropdown, hK as NewHomeLayout, un as NotesTextEditor, me as NotesTextEditorSkeleton, yn as NumberInput, aE as OmniButton, Sj as OneApprovalHistory, mc as OneCalendar, Ft as OneDataCollection, Ce as OneDateNavigator, E as OneEmptyState, dg as OneListItem, ug as OneListItemSkeleton, I as OnePagination, mg as OnePersonListItem, aZ as OneRestrictComponent, sE as Page, tE as PageHeader, PT as PageHeaderNavigationContext, FT as PageHeaderNavigationProvider, lr as PageNavigation, r as PieChart, cH as PieChartWidget, $t as PrivateBox, vt as ProgressBarChart, rX as RECOMMENDED_AGENTIC_HOME_RULES, Ll as RECOMMENDED_MAX_MARKERS, F as RadarChart, Nh as Reactions, gi as RichTextDisplay, P as RichTextEditor, jW as SLOT_ROW_BLEED, GW as SLOT_SKELETON_ITEM_TESTID, oZ as ScrollArea, eA as SearchBar, et as SectionHeader, Pc as Select, zn as Shortcut, aA as Sidebar, DD as SidebarChatBlankState, FD as SidebarChatItem, kD as SidebarChatItemSkeleton, bO as SidebarChatList, jD as SidebarChatListSkeleton, _E as SidebarChatProvider, AE as SidebarCollapsibleSection, WO as SidebarFooter, KO as SidebarHeader, ik as SidebarPanelHeader, JE as SidebarTabPanel, RE as SidebarTabPanelSearch, cA as SidebarTabs, UO as SidebarUserMenu, mG as SlotWidget, pG as SlotWidgetContent, oc as Spinner, WV as Split, UV as Stack, uH as SummariesWidget, Oc as Switch, Bi as Tabs, Pr as TabsSkeleton, xU as TasksList, w as Textarea, Dr as ToggleGroup, Sr as ToggleGroupItem, Vn as Tooltip, Hn as TooltipGroup, VH as TwoColumnsList, ae as UPLOAD_INPUT_ID, te as VerticalBarChart, lH as VerticalBarChartWidget, mm as VirtualList, hc as WeekStartDay, wi as Weekdays, nZ as Widget, kH as WidgetAvatarsListItem, pX as WidgetCatalog, iZ as WidgetEmptyState, wH as WidgetHighlightButton, LH as WidgetInboxList, MH as WidgetInboxListItem, XU as WidgetSection, zH as WidgetSimpleList, FH as WidgetSimpleListItem, tZ as WidgetStrip, en as actionBarStatuses, Cd as aiCalloutStatuses, If as attendeesDisplays, bv as buildTiles, Ve as buttonToggleColors, Pt as buttonToggleSizes, Jt as buttonToggleVariants, Lh as calendarEventVariants, Js as chipVariants, qu as coachmarks, uM as commandActionRisks, eg as communityPostCardVariants, Sp as composerVariants, ef as confettiPalette, VS as createMeetingSignalStore, Gl as defaultMapStyle, eG as defaultSlotRenderers, $W as defaultSlotSkeleton, Qu as defineStepByStepCoachmarkGuidance, Ye as downloadAsCSV, Aj as downloadAsExcel, MM as f0ChatSenderColors, md as f0EmojiPickerSizes, Pa as f0FileItemSizes, Il as f0MapMarkerVariants, Jl as f0MapStyles, Av as f0MeetingConnectionQualities, Pv as f0MeetingCoreActionIds, Ov as f0MeetingDisconnectReasons, Ev as f0MeetingGuestKinds, Fv as f0MeetingInvitationStates, kv as f0MeetingPermissions, Tv as f0MeetingPresences, Dv as f0MeetingStatuses, jv as f0MeetingSurfaceDestinations, Mv as f0MeetingSurfaceModes, wv as f0MeetingTrackKinds, Vu as f0ProgressSeriesColors, Bu as f0ProgressSeriesSizes, Nv as f0WindowCorners, TW as fromParams, Qe as generateCSVContent, ve as getAutoPerPageMinHeight, Bc as getGranularityDefinition, jc as getGranularityDefinitions, Kc as getGranularitySimpleDefinition, Hl as googleMapStyles, Fl as googlePinlessMapStyles, Nc as granularityDefinitions, BW as heldDialogActions, CW as homeSlot, pj as inboxItemDecisionSizes, mj as inboxItemSkeletonAvatars, fj as inboxItemStatuses, uj as inboxItemTints, dj as inboxItemTones, Mi as isPossiblePhoneValue, IM as isPost, NM as isSystemMessage, FM as isUserMessage, Rr as isValidPhoneValue, jS as layoutGrid, p as listIconColors, PW as listMoreButtonClass, wW as listSlot, Gm as locationInputSizes, Km as locationParts, Ex as matchDevice, Ff as meetingStates, Fs as modules, Uv as nearestCorner, sg as oneListItemRowClassName, qm as phoneInputSizes, Hv as placementFromRect, ht as predefinedPresets, Bf as pulseDotVariants, kW as railActionTones, zc as rangeSeparator, bx as readMeetingMediaPreferences, PS as reorderForSpeakers, Cp as resizableDirections, yS as resolveAutoFocus, wc as resolveGranularityDefinition, Vv as resolvePlacement, bW as resolveSlotRenderer, EW as resolveWidgetHeader, __ as sanitizeMeetingReaction, wj as seedFromStorage, Me as selectSizes, le as selectVariants, Wv as settlePlacement, MW as slotRowBleed, AS as solveGrid, FS as solveSpotlight, om as swipeDirections, Cv as tileAspectRatio, vv as tileKey, xx as updateMeetingMediaPreferences, ad as useAiPromotionChat, kM as useCommandPalette, Sh as useCompactOnScroll, uf as useConfetti, ne as useDataCollectionData, Tj as useDataCollectionItemNavigation, xn as useDataCollectionSource, Yt as useExportAction, gu as useF0Chat, Pg as useF0Meeting, Lg as useF0MeetingRoster, Ig as useF0MeetingStable, Ng as useHasF0Meeting, yt as useInfiniteScrollPagination, UU as useIsBulkChange, Sx as useMeetingMediaPreferences, GS as useMeetingSignal, KS as useMeetingSpeakers, cy as useMeetingSurface, ly as useMeetingSurfaceOptional, LT as usePageHeaderItemNavigation, IT as usePageHeaderNavigation, kr as useSidePanel, Bl as useSidebar, xE as useSidebarChatActions, bE as useSidebarChats, am as useSwipeDeck, Kg as useTrackBinding, qe as useWidgetIsWide, Kw as viewportRect, AW as widgetChrome, OW as widgetParamsAreComplete, DW as widgetTitle };
31051
+ export { aX as AGENTIC_HOME_SPEC_VERSION, d as AUTO_PER_PAGE_MAX, ln as AUTO_PER_PAGE_MIN_RESERVED_ROWS, xh as ActivityItemList, bh as ActivityItemListSkeleton, fd as AiPromotionChat, pd as AiPromotionChatProvider, fT as ApplicationFrame, _e as AreaChart, aH as AreaChartWidget, GV as AutoGrid, ys as Badge, m as BarChart, oH as BarChartWidget, yh as BaseActivityItemList, ut as BaseBanner, Dh as BaseCelebration, Wh as BaseCommunityPost, ki as BaseTabs, Ca as BreadcrumbSelect, NT as Breadcrumbs, zh as CalendarEvent, xH as CalendarEventList, Je as CardSelectableContainer, Lt as Carousel, f as CategoryBarChart, HH as CategoryBarSection, kh as Celebration, Oh as CelebrationSkeleton, vH as ChartWidgetEmptyState, Xs as Chip, _U as ClockInControls, Xt as CoachmarkProvider, re as ComboChart, Kh as CommunityPost, tg as CommunityPostCard, ng as CommunityPostCardSkeleton, Gh as CommunityPostSkeleton, RO as CompanySelector, ar as Counter, WW as DEFAULT_EXPECTED_ITEMS_COUNT, eZ as Dashboard, wT as DaytimePage, Zo as DetailsItem, vr as DetailsItemsList, nn as Dialog, $a as Dropdown, FW as EVENT_LIST_GAP, Bm as EntitySelect, St as F0ActionBar, tX as F0AgenticHome, rX as F0AgenticHomeBlock, de as F0AiBanner, Gd as F0AiCallout, Ps as F0AvatarColor, gs as F0AvatarColorList, Es as F0AvatarModule, Wc as F0ButtonToggle, $d as F0Callout, pr as F0CardHorizontal, pr as F0CardRow, Vp as F0CarouselDialog, EV as F0Chat, qN as F0ChatHistoryLimitCard, nu as F0ChatProvider, jM as F0CommandPaletteProvider, og as F0CommunityPostsCarousel, xp as F0Composer, ff as F0Confetti, NV as F0ENPSButton, Sd as F0EmojiPicker, vo as F0FileItem, Pe as F0FormEditableTable, JA as F0InboxItem, YA as F0InboxItemDecision, tj as F0InboxItemGroup, rj as F0InboxItemList, cj as F0InboxItemListSkeleton, sj as F0InboxItemSkeleton, He as F0LocationInput, Yl as F0Map, Nl as F0MapControls, Ql as F0MapList, $l as F0MapSidebar, Ul as F0MapSidebarToggle, Kl as F0MapSkeleton, Dw as F0Meeting, Pf as F0MeetingCard, Mg as F0MeetingProvider, lw as F0MeetingRoom, Ow as F0MeetingSlot, Ew as F0MeetingSurface, mn as F0NotesTextEditor, Ue as F0NotesTextEditorSkeleton, fe as F0NumberInput, j as F0NumberInputInline, ai as F0PersonCard, gt as F0PhoneInput, $k as F0PrimarySidebar, Gc as F0ProgressSeries, zf as F0PulseDot, Rp as F0Resizable, Fe as F0ResourceHeader, Fe as ResourceHeader, qi as F0RichTextDisplay, _t as F0RichTextEditor, Sc as F0SearchInput, nA as F0SecondarySidebar, Up as F0SegmentedBar, $r as F0SegmentedControl, em as F0SwipeDeck, mt as F0TableOfContent, lh as F0TemplateTextInput, _ as F0TextAreaInput, oe as F0TextAreaInputInline, Ua as F0TextInput, ee as F0TextInputInline, fm as F0Timeline, um as F0VersionHistory, HN as F0_CHAT_HEADER_TITLE_SELECTOR, LM as F0_CHAT_MESSAGES_TAB_ID, xc as F1SearchBox, L as FILE_TYPES, ro as FileItem, Ah as HighlightBanner, GU as HomeSlotItem, WU as HomeSlotItems, EH as IndicatorsList, ei as Input, Nt as Item, Be as ItemSectionHeader, RM as LATEST, xW as LIST_COMPACT_AFTER, NW as LIST_MORE_BUTTON_CLASS, bt as LineChart, sH as LineChartWidget, Gw as MeetingNotes, Aw as MeetingPanelContent, Ww as MeetingParticipants, Mw as MeetingRoomChat, KC as MeetingSidePanel, sy as MeetingSurfaceProvider, Fw as MeetingTranscript, tk as Menu, Uo as MobileDropdown, gK as NewHomeLayout, un as NotesTextEditor, me as NotesTextEditorSkeleton, yn as NumberInput, aE as OmniButton, Sj as OneApprovalHistory, mc as OneCalendar, Ft as OneDataCollection, Ce as OneDateNavigator, E as OneEmptyState, dg as OneListItem, ug as OneListItemSkeleton, I as OnePagination, mg as OnePersonListItem, oZ as OneRestrictComponent, sE as Page, tE as PageHeader, PT as PageHeaderNavigationContext, FT as PageHeaderNavigationProvider, lr as PageNavigation, r as PieChart, cH as PieChartWidget, $t as PrivateBox, vt as ProgressBarChart, iX as RECOMMENDED_AGENTIC_HOME_RULES, Ll as RECOMMENDED_MAX_MARKERS, F as RadarChart, Nh as Reactions, gi as RichTextDisplay, P as RichTextEditor, jW as SLOT_ROW_BLEED, GW as SLOT_SKELETON_ITEM_TESTID, sZ as ScrollArea, eA as SearchBar, et as SectionHeader, Pc as Select, zn as Shortcut, aA as Sidebar, DD as SidebarChatBlankState, FD as SidebarChatItem, kD as SidebarChatItemSkeleton, bO as SidebarChatList, jD as SidebarChatListSkeleton, _E as SidebarChatProvider, AE as SidebarCollapsibleSection, WO as SidebarFooter, KO as SidebarHeader, ik as SidebarPanelHeader, JE as SidebarTabPanel, RE as SidebarTabPanelSearch, cA as SidebarTabs, UO as SidebarUserMenu, mG as SlotWidget, pG as SlotWidgetContent, oc as Spinner, WV as Split, UV as Stack, uH as SummariesWidget, Oc as Switch, Bi as Tabs, Pr as TabsSkeleton, xU as TasksList, w as Textarea, Dr as ToggleGroup, Sr as ToggleGroupItem, Vn as Tooltip, Hn as TooltipGroup, VH as TwoColumnsList, ae as UPLOAD_INPUT_ID, te as VerticalBarChart, lH as VerticalBarChartWidget, mm as VirtualList, hc as WeekStartDay, wi as Weekdays, rZ as Widget, kH as WidgetAvatarsListItem, mX as WidgetCatalog, aZ as WidgetEmptyState, wH as WidgetHighlightButton, LH as WidgetInboxList, MH as WidgetInboxListItem, XU as WidgetSection, zH as WidgetSimpleList, FH as WidgetSimpleListItem, nZ as WidgetStrip, en as actionBarStatuses, Cd as aiCalloutStatuses, If as attendeesDisplays, bv as buildTiles, Ve as buttonToggleColors, Pt as buttonToggleSizes, Jt as buttonToggleVariants, Lh as calendarEventVariants, Js as chipVariants, qu as coachmarks, uM as commandActionRisks, eg as communityPostCardVariants, Sp as composerVariants, ef as confettiPalette, VS as createMeetingSignalStore, Gl as defaultMapStyle, eG as defaultSlotRenderers, $W as defaultSlotSkeleton, Qu as defineStepByStepCoachmarkGuidance, Ye as downloadAsCSV, Aj as downloadAsExcel, MM as f0ChatSenderColors, md as f0EmojiPickerSizes, Pa as f0FileItemSizes, Il as f0MapMarkerVariants, Jl as f0MapStyles, Av as f0MeetingConnectionQualities, Pv as f0MeetingCoreActionIds, Ov as f0MeetingDisconnectReasons, Ev as f0MeetingGuestKinds, Fv as f0MeetingInvitationStates, kv as f0MeetingPermissions, Tv as f0MeetingPresences, Dv as f0MeetingStatuses, jv as f0MeetingSurfaceDestinations, Mv as f0MeetingSurfaceModes, wv as f0MeetingTrackKinds, Vu as f0ProgressSeriesColors, Bu as f0ProgressSeriesSizes, Nv as f0WindowCorners, TW as fromParams, Qe as generateCSVContent, ve as getAutoPerPageMinHeight, Bc as getGranularityDefinition, jc as getGranularityDefinitions, Kc as getGranularitySimpleDefinition, Hl as googleMapStyles, Fl as googlePinlessMapStyles, Nc as granularityDefinitions, BW as heldDialogActions, CW as homeSlot, pj as inboxItemDecisionSizes, mj as inboxItemSkeletonAvatars, fj as inboxItemStatuses, uj as inboxItemTints, dj as inboxItemTones, Mi as isPossiblePhoneValue, IM as isPost, NM as isSystemMessage, FM as isUserMessage, Rr as isValidPhoneValue, jS as layoutGrid, p as listIconColors, PW as listMoreButtonClass, wW as listSlot, Gm as locationInputSizes, Km as locationParts, Ex as matchDevice, Ff as meetingStates, Fs as modules, Uv as nearestCorner, sg as oneListItemRowClassName, qm as phoneInputSizes, Hv as placementFromRect, ht as predefinedPresets, Bf as pulseDotVariants, kW as railActionTones, zc as rangeSeparator, bx as readMeetingMediaPreferences, PS as reorderForSpeakers, Cp as resizableDirections, yS as resolveAutoFocus, wc as resolveGranularityDefinition, Vv as resolvePlacement, bW as resolveSlotRenderer, EW as resolveWidgetHeader, __ as sanitizeMeetingReaction, wj as seedFromStorage, Me as selectSizes, le as selectVariants, Wv as settlePlacement, MW as slotRowBleed, AS as solveGrid, FS as solveSpotlight, om as swipeDirections, Cv as tileAspectRatio, vv as tileKey, xx as updateMeetingMediaPreferences, ad as useAiPromotionChat, kM as useCommandPalette, Sh as useCompactOnScroll, uf as useConfetti, ne as useDataCollectionData, Tj as useDataCollectionItemNavigation, xn as useDataCollectionSource, Yt as useExportAction, gu as useF0Chat, Pg as useF0Meeting, Lg as useF0MeetingRoster, Ig as useF0MeetingStable, Ng as useHasF0Meeting, yt as useInfiniteScrollPagination, UU as useIsBulkChange, Sx as useMeetingMediaPreferences, GS as useMeetingSignal, KS as useMeetingSpeakers, cy as useMeetingSurface, ly as useMeetingSurfaceOptional, LT as usePageHeaderItemNavigation, IT as usePageHeaderNavigation, kr as useSidePanel, Bl as useSidebar, xE as useSidebarChatActions, bE as useSidebarChats, am as useSwipeDeck, Kg as useTrackBinding, qe as useWidgetIsWide, Kw as viewportRect, AW as widgetChrome, OW as widgetParamsAreComplete, DW as widgetTitle };