@factorialco/f0-react 14.12.1 → 14.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26972,28 +26972,28 @@ var nW = () => /* @__PURE__ */ $(ws, {
26972
26972
  render: (e) => /* @__PURE__ */ Q(JU, { ...e }),
26973
26973
  skeleton: () => /* @__PURE__ */ Q(z, { className: "h-2 w-full rounded" })
26974
26974
  }
26975
- }, oW = Object.fromEntries(Object.entries(aW).map(([e, t]) => [e, iW(t)])), sW = B("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2", "bg-gradient-to-l from-f1-background from-60% to-transparent", "opacity-0 transition-opacity motion-reduce:transition-none", "group-hover/row:pointer-events-auto group-hover/row:opacity-100", "group-has-[:focus-visible]/row:pointer-events-auto group-has-[:focus-visible]/row:opacity-100"), cW = "pointer-events-auto opacity-100", lW = {
26975
+ }, oW = Object.fromEntries(Object.entries(aW).map(([e, t]) => [e, iW(t)])), sW = "overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background shadow", cW = B("[&_[data-list-row]]:rounded-none", "[&_[data-list-row]]:gap-2", "[&_[data-list-rows]>*+*]:border-0 [&_[data-list-rows]>*+*]:border-t [&_[data-list-rows]>*+*]:border-solid [&_[data-list-rows]>*+*]:border-f1-border-secondary"), lW = Su(!1), uW = lW.Provider, dW = () => Du(lW), fW = B("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2", "bg-gradient-to-l from-f1-background from-60% to-transparent", "opacity-0 transition-opacity motion-reduce:transition-none", "group-hover/row:pointer-events-auto group-hover/row:opacity-100", "group-has-[:focus-visible]/row:pointer-events-auto group-has-[:focus-visible]/row:opacity-100"), pW = "pointer-events-auto opacity-100", mW = {
26976
26976
  default: "text-f1-foreground-secondary",
26977
26977
  warning: "text-f1-foreground-warning",
26978
26978
  critical: "text-f1-foreground-critical"
26979
- }, uW = (e) => lW[e ?? "default"], dW = (e, t) => e ?? (t ? "critical" : void 0);
26980
- function fW(e, t) {
26979
+ }, hW = (e) => mW[e ?? "default"], gW = (e, t) => e ?? (t ? "critical" : void 0);
26980
+ function _W(e, t) {
26981
26981
  return typeof e == "string" ? e ? [{
26982
26982
  text: e,
26983
26983
  variant: t
26984
26984
  }] : [] : (e ?? []).filter((e) => e.text).map((e) => ({
26985
26985
  text: e.text,
26986
- variant: dW(e.variant, e.critical)
26986
+ variant: gW(e.variant, e.critical)
26987
26987
  }));
26988
26988
  }
26989
- function pW(e) {
26990
- return fW(e).map((e) => e.text).join(" · ");
26989
+ function vW(e) {
26990
+ return _W(e).map((e) => e.text).join(" · ");
26991
26991
  }
26992
- function mW({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, subtitleVariant: a, subtitleCritical: o, description: s, descriptionVariant: c, descriptionCritical: l, right: u, actions: d, unread: f = !1, href: p, showChevron: m = !1, prominent: h = !1, onActivate: g, onClick: _ }) {
26992
+ function yW({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, subtitleVariant: a, subtitleCritical: o, description: s, descriptionVariant: c, descriptionCritical: l, right: u, actions: d, unread: f = !1, href: p, showChevron: m = !1, prominent: h = !1, onActivate: g, onClick: _ }) {
26993
26993
  let v = !!d?.length, y = qe(), [b, x] = X(null), S = n ?? (e ? /* @__PURE__ */ Q(As, {
26994
26994
  avatar: e,
26995
26995
  size: t
26996
- }) : null), C = fW(s, dW(c, l)), w = /* @__PURE__ */ $(Z, { children: [
26996
+ }) : null), C = _W(s, gW(c, l)), w = /* @__PURE__ */ $(Z, { children: [
26997
26997
  S ? /* @__PURE__ */ $("div", {
26998
26998
  className: "relative flex shrink-0",
26999
26999
  children: [S, f ? /* @__PURE__ */ Q("span", { className: "absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null]
@@ -27006,16 +27006,16 @@ function mW({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
27006
27006
  className: B("max-w-full shrink-0 font-medium text-f1-foreground", h && "text-lg"),
27007
27007
  children: r
27008
27008
  }), i ? /* @__PURE__ */ $("span", {
27009
- className: B("min-w-0 truncate", uW(dW(a, o))),
27009
+ className: B("min-w-0 truncate", hW(gW(a, o))),
27010
27010
  children: ["· ", i]
27011
27011
  }) : null]
27012
27012
  }), C.length > 0 ? /* @__PURE__ */ Q("div", {
27013
- className: B("truncate", h && "mt-0.5", uW(C.length === 1 ? C[0].variant : void 0)),
27013
+ className: B("truncate", h && "mt-0.5", hW(C.length === 1 ? C[0].variant : void 0)),
27014
27014
  children: C.map((e, t) => /* @__PURE__ */ $(yu, { children: [t > 0 ? /* @__PURE__ */ Q("span", {
27015
27015
  className: "text-f1-foreground-secondary",
27016
27016
  children: " · "
27017
27017
  }) : null, /* @__PURE__ */ Q("span", {
27018
- className: uW(e.variant),
27018
+ className: hW(e.variant),
27019
27019
  children: e.text
27020
27020
  })] }, t))
27021
27021
  }) : null]
@@ -27052,7 +27052,7 @@ function mW({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
27052
27052
  return v ? /* @__PURE__ */ $("div", {
27053
27053
  className: "group/row relative",
27054
27054
  children: [O, /* @__PURE__ */ Q("div", {
27055
- className: B(sW, b && cW),
27055
+ className: B(fW, b && pW),
27056
27056
  children: d?.map((e) => {
27057
27057
  let t = /* @__PURE__ */ Q(U, {
27058
27058
  icon: e.icon,
@@ -27075,14 +27075,14 @@ function mW({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
27075
27075
  }
27076
27076
  //#endregion
27077
27077
  //#region src/domains/platform/home/Home/tracking.tsx
27078
- var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__PURE__ */ Q(hW.Provider, {
27078
+ var bW = _u.createContext(void 0), xW = ({ tracking: e, children: t }) => /* @__PURE__ */ Q(bW.Provider, {
27079
27079
  value: e,
27080
27080
  children: t
27081
- }), _W = _u.createContext(void 0), vW = ({ widgetId: e, children: t }) => /* @__PURE__ */ Q(_W.Provider, {
27081
+ }), SW = _u.createContext(void 0), CW = ({ widgetId: e, children: t }) => /* @__PURE__ */ Q(SW.Provider, {
27082
27082
  value: e,
27083
27083
  children: t
27084
- }), yW = () => {
27085
- let e = _u.useContext(hW), t = _u.useContext(_W);
27084
+ }), wW = () => {
27085
+ let e = _u.useContext(bW), t = _u.useContext(SW);
27086
27086
  return _u.useMemo(() => ({
27087
27087
  reportAction: (n) => {
27088
27088
  t !== void 0 && e?.onWidgetAction?.({
@@ -27098,18 +27098,18 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27098
27098
  });
27099
27099
  }
27100
27100
  }), [e, t]);
27101
- }, bW = (e) => e == null ? void 0 : typeof e == "function" ? { render: e } : e, xW = 6, SW = (e, t) => !!e.compact || !e.descriptionOptional && t > 6, CW = (e, t, n) => ({
27101
+ }, TW = (e) => e == null ? void 0 : typeof e == "function" ? { render: e } : e, EW = 6, DW = (e, t) => !!e.compact || !e.descriptionOptional && t > 6, OW = (e, t, n) => ({
27102
27102
  visualization: e,
27103
27103
  params: t,
27104
27104
  ...n
27105
- }), wW = (e, t, n) => ({
27105
+ }), kW = (e, t, n) => ({
27106
27106
  visualization: "list",
27107
27107
  params: {
27108
27108
  schema: e,
27109
27109
  items: t
27110
27110
  },
27111
27111
  ...n
27112
- }), TW = (e, t) => (e) => t(e), EW = (e, t = {}) => {
27112
+ }), AW = (e, t) => (e) => t(e), jW = (e, t = {}) => {
27113
27113
  if (!e) return;
27114
27114
  let { title: n, info: r, ...i } = e, a = (e) => typeof e == "function" ? e(t) : e;
27115
27115
  return {
@@ -27117,14 +27117,14 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27117
27117
  title: a(n),
27118
27118
  info: a(r)
27119
27119
  };
27120
- }, DW = (e) => EW(e.header, e.params)?.title ?? e.id, OW = (e, t) => !e || e.safeParse(t ?? {}).success, kW = [
27120
+ }, MW = (e) => jW(e.header, e.params)?.title ?? e.id, NW = (e, t) => !e || e.safeParse(t ?? {}).success, PW = [
27121
27121
  "neutral",
27122
27122
  "accent",
27123
27123
  "critical",
27124
27124
  "warning",
27125
27125
  "promote",
27126
27126
  "positive"
27127
- ], AW = (e) => {
27127
+ ], FW = (e) => {
27128
27128
  let t = {
27129
27129
  action: e.action,
27130
27130
  summaries: e.summaries,
@@ -27139,7 +27139,7 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27139
27139
  ...t,
27140
27140
  status: "status" in e ? e.status : void 0
27141
27141
  };
27142
- }, jW = "-m-2", MW = (e) => B(jW, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), NW = "ml-1.5 mt-1 self-start", PW = (e) => B(NW, e.isLastSlot && !e.hasFooter && "mb-1.5"), FW = "gap-2", IW = "xl", LW = (e, t, n, r) => {
27142
+ }, IW = "-m-2", LW = (e) => B(IW, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), RW = "ml-1.5 mt-1 self-start", zW = (e) => B(RW, e.isLastSlot && !e.hasFooter && "mb-1.5"), BW = "gap-2", VW = "xl", HW = (e, t, n, r) => {
27143
27143
  if (e === "module" && t.module) return { left: /* @__PURE__ */ Q(Es, {
27144
27144
  module: t.module,
27145
27145
  size: n
@@ -27161,9 +27161,9 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27161
27161
  type: e,
27162
27162
  ...t.avatar
27163
27163
  },
27164
- avatarSize: r ? IW : n
27164
+ avatarSize: r ? VW : n
27165
27165
  } : {};
27166
- }, RW = (e, t, n, r) => {
27166
+ }, UW = (e, t, n, r) => {
27167
27167
  if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(ar, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(mi, {
27168
27168
  date: b(t.date),
27169
27169
  size: r ? "lg" : "md"
@@ -27180,7 +27180,7 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27180
27180
  },
27181
27181
  size: n
27182
27182
  }) : void 0;
27183
- }, zW = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm", BW = (e, t) => (e ?? []).flatMap((e) => e.items ? e.items.flatMap((e) => (e.type === void 0 || e.type === "item") && e.onClick ? [{
27183
+ }, WW = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm", GW = (e, t) => (e ?? []).flatMap((e) => e.items ? e.items.flatMap((e) => (e.type === void 0 || e.type === "item") && e.onClick ? [{
27184
27184
  label: e.label,
27185
27185
  icon: e.icon,
27186
27186
  onClick: e.onClick
@@ -27194,7 +27194,7 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27194
27194
  onClick: () => {
27195
27195
  r(), t();
27196
27196
  }
27197
- })), VW = (e) => {
27197
+ })), KW = (e) => {
27198
27198
  let [t, n] = X({}), r = t.id === void 0 ? void 0 : e.find((e) => e.id === t.id), i = r?.items ?? [], a = i.length > 0;
27199
27199
  return K(() => {
27200
27200
  a || n((e) => e.id === void 0 ? e : { shown: e.shown && {
@@ -27212,24 +27212,24 @@ var hW = _u.createContext(void 0), gW = ({ tracking: e, children: t }) => /* @__
27212
27212
  close: () => n({ shown: r ?? t.shown })
27213
27213
  };
27214
27214
  };
27215
- function HW({ params: e, ctx: t }) {
27216
- let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { holder: s, held: c, isOpen: l, open: u, close: d } = VW(i), f = UU(c.length), { reportAction: p, reportItemActivate: m } = yW(), h = qe(), g = n.maxVisibleItems, _ = g != null && i.length > g, v = _ && !a ? i.slice(0, g) : i, y = UU(v.length), b = SW(n, v.length), x = zW((!!n.descriptionRequired || !!n.descriptionOptional) && !b, h), S = h ? "md" : "sm", C = !!n.prominent, w = (e, t, r) => {
27217
- let { href: i, description: a, ...o } = e, s = o.items ?? [], c = o.tooltipDescription ?? (b ? pW(a) : ""), l = /* @__PURE__ */ Q(mW, {
27215
+ function qW({ params: e, ctx: t }) {
27216
+ let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { holder: s, held: c, isOpen: l, open: u, close: d } = KW(i), f = UU(c.length), p = dW(), { reportAction: m, reportItemActivate: h } = wW(), g = qe(), _ = n.maxVisibleItems, v = _ != null && i.length > _, y = v && !a ? i.slice(0, _) : i, b = UU(y.length), x = DW(n, y.length), S = WW((!!n.descriptionRequired || !!n.descriptionOptional) && !x, g), C = g ? "md" : "sm", w = !!n.prominent, T = (e, t, r) => {
27217
+ let { href: i, description: a, ...o } = e, s = o.items ?? [], c = o.tooltipDescription ?? (x ? vW(a) : ""), l = /* @__PURE__ */ Q(yW, {
27218
27218
  title: o.title,
27219
27219
  subtitle: o.subtitle,
27220
27220
  subtitleVariant: o.subtitleVariant,
27221
27221
  subtitleCritical: o.subtitleCritical,
27222
- description: b ? void 0 : a,
27222
+ description: x ? void 0 : a,
27223
27223
  descriptionVariant: o.descriptionVariant,
27224
27224
  descriptionCritical: o.descriptionCritical,
27225
27225
  unread: o.unread,
27226
- ...LW(n.left, o, x, C),
27227
- right: RW(n.right, o, S, C),
27226
+ ...HW(n.left, o, S, w),
27227
+ right: UW(n.right, o, C, w),
27228
27228
  actions: o.actions,
27229
27229
  href: n.clickBehavior === "link" && s.length === 0 ? i : void 0,
27230
- prominent: C,
27230
+ prominent: w,
27231
27231
  onActivate: () => {
27232
- m(o.id, t + 1), r?.();
27232
+ h(o.id, t + 1), r?.();
27233
27233
  },
27234
27234
  onClick: s.length > 0 ? () => u(e) : o.onClick
27235
27235
  });
@@ -27242,20 +27242,21 @@ function HW({ params: e, ctx: t }) {
27242
27242
  }) : l;
27243
27243
  };
27244
27244
  return /* @__PURE__ */ $("div", {
27245
- className: B(MW(t), "flex flex-col"),
27245
+ "data-list-rows": "",
27246
+ className: B(LW(t), "flex flex-col"),
27246
27247
  children: [
27247
- /* @__PURE__ */ Q(WU, { children: v.map((e, t) => /* @__PURE__ */ Q(GU, {
27248
- animated: !y,
27249
- children: w(e, t)
27248
+ /* @__PURE__ */ Q(WU, { children: y.map((e, t) => /* @__PURE__ */ Q(GU, {
27249
+ animated: !b,
27250
+ children: T(e, t)
27250
27251
  }, e.id)) }),
27251
- _ ? /* @__PURE__ */ Q("div", {
27252
- className: PW(t),
27252
+ v ? /* @__PURE__ */ Q("div", {
27253
+ className: zW(t),
27253
27254
  children: /* @__PURE__ */ Q(U, {
27254
- variant: h ? "outline" : "neutral",
27255
- size: h ? "md" : "sm",
27256
- label: a ? "View less" : `View more (${i.length - g})`,
27255
+ variant: g ? "outline" : "neutral",
27256
+ size: g ? "md" : "sm",
27257
+ label: a ? "View less" : `View more (${i.length - _})`,
27257
27258
  onClick: () => {
27258
- a || p("view-more"), o(!a);
27259
+ a || m("view-more"), o(!a);
27259
27260
  }
27260
27261
  })
27261
27262
  }) : null,
@@ -27266,13 +27267,13 @@ function HW({ params: e, ctx: t }) {
27266
27267
  width: "md",
27267
27268
  maxHeight: "md",
27268
27269
  disableContentPadding: !0,
27269
- secondaryActions: BW(s?.actions, d),
27270
- description: s && pW(s.description) || void 0,
27270
+ secondaryActions: GW(s?.actions, d),
27271
+ description: s && vW(s.description) || void 0,
27271
27272
  children: /* @__PURE__ */ Q("div", {
27272
- className: "flex flex-col p-2",
27273
+ className: B("flex flex-col p-2", p && "[&_[data-list-row]]:gap-2"),
27273
27274
  children: /* @__PURE__ */ Q(WU, { children: c.map((e, t) => /* @__PURE__ */ Q(GU, {
27274
27275
  animated: !f,
27275
- children: w({
27276
+ children: T({
27276
27277
  ...e,
27277
27278
  items: void 0
27278
27279
  }, t, d)
@@ -27282,10 +27283,10 @@ function HW({ params: e, ctx: t }) {
27282
27283
  ]
27283
27284
  });
27284
27285
  }
27285
- function UW({ params: e, ctx: t }) {
27286
- let { events: n } = e, r = UU(n.length), { reportItemActivate: i } = yW();
27286
+ function JW({ params: e, ctx: t }) {
27287
+ let { events: n } = e, r = UU(n.length), { reportItemActivate: i } = wW();
27287
27288
  return /* @__PURE__ */ Q("div", {
27288
- className: B(MW(t), "flex flex-col", FW),
27289
+ className: B(LW(t), "flex flex-col", BW),
27289
27290
  children: /* @__PURE__ */ Q(WU, { children: n.map((e, t) => /* @__PURE__ */ Q(GU, {
27290
27291
  animated: !r,
27291
27292
  children: /* @__PURE__ */ Q(zh, {
@@ -27297,102 +27298,102 @@ function UW({ params: e, ctx: t }) {
27297
27298
  }, e.title)) })
27298
27299
  });
27299
27300
  }
27300
- var WW = 3, GW = "slot-skeleton-item", KW = [
27301
+ var YW = 3, XW = "slot-skeleton-item", ZW = [
27301
27302
  "w-1/2",
27302
27303
  "w-2/3",
27303
27304
  "w-2/5",
27304
27305
  "w-3/5"
27305
- ], qW = {
27306
+ ], QW = {
27306
27307
  sm: "size-6",
27307
27308
  md: "size-8",
27308
27309
  lg: "size-10"
27309
- }, JW = (e) => KW[e % KW.length], YW = ({ className: e }) => /* @__PURE__ */ Q("div", {
27310
+ }, $W = (e) => ZW[e % ZW.length], eG = ({ className: e }) => /* @__PURE__ */ Q("div", {
27310
27311
  className: "flex h-5 items-center",
27311
27312
  children: /* @__PURE__ */ Q(z, { className: B("h-3", e) })
27312
- }), XW = ({ params: e, ctx: t }) => {
27313
- let n = e.schema ?? {}, r = qe(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = SW(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
27313
+ }), tG = ({ params: e, ctx: t }) => {
27314
+ let n = e.schema ?? {}, r = qe(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = DW(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
27314
27315
  return /* @__PURE__ */ $("div", {
27315
- className: B(MW(t), "flex flex-col"),
27316
+ className: B(LW(t), "flex flex-col"),
27316
27317
  children: [Array.from({ length: i }, (e, t) => /* @__PURE__ */ $("div", {
27317
- "data-testid": GW,
27318
+ "data-testid": XW,
27318
27319
  className: "flex w-full items-center gap-3 p-2",
27319
27320
  children: [
27320
- n.left ? /* @__PURE__ */ Q(z, { className: B("shrink-0", qW[zW(o, r)], n.left === "person" ? "rounded-full" : "rounded-sm") }) : null,
27321
+ n.left ? /* @__PURE__ */ Q(z, { className: B("shrink-0", QW[WW(o, r)], n.left === "person" ? "rounded-full" : "rounded-sm") }) : null,
27321
27322
  /* @__PURE__ */ $("div", {
27322
27323
  className: "flex min-w-0 flex-1 flex-col",
27323
- children: [/* @__PURE__ */ Q(YW, { className: JW(t) }), s ? /* @__PURE__ */ Q(YW, { className: "w-1/4" }) : null]
27324
+ children: [/* @__PURE__ */ Q(eG, { className: $W(t) }), s ? /* @__PURE__ */ Q(eG, { className: "w-1/4" }) : null]
27324
27325
  }),
27325
27326
  n.right ? /* @__PURE__ */ Q(z, { className: "h-4 w-10 shrink-0 rounded-sm" }) : null
27326
27327
  ]
27327
27328
  }, t)), c ? /* @__PURE__ */ Q("div", {
27328
- className: PW(t),
27329
+ className: zW(t),
27329
27330
  children: /* @__PURE__ */ Q(z, { className: "h-6 w-24 rounded-sm" })
27330
27331
  }) : null]
27331
27332
  });
27332
- }, ZW = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
27333
- className: B(MW(e), "flex flex-col", FW),
27333
+ }, nG = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
27334
+ className: B(LW(e), "flex flex-col", BW),
27334
27335
  children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
27335
- "data-testid": GW,
27336
+ "data-testid": XW,
27336
27337
  className: "flex flex-row items-stretch gap-2.5 rounded-sm p-2",
27337
27338
  children: [
27338
27339
  /* @__PURE__ */ Q(z, { className: "min-h-10 w-1 shrink-0 rounded-2xs" }),
27339
27340
  /* @__PURE__ */ $("div", {
27340
27341
  className: "flex flex-1 flex-col justify-center",
27341
- children: [/* @__PURE__ */ Q(YW, { className: JW(t) }), /* @__PURE__ */ Q(YW, { className: "w-1/3" })]
27342
+ children: [/* @__PURE__ */ Q(eG, { className: $W(t) }), /* @__PURE__ */ Q(eG, { className: "w-1/3" })]
27342
27343
  }),
27343
27344
  /* @__PURE__ */ Q(z, { className: "size-10 shrink-0 rounded-md" })
27344
27345
  ]
27345
27346
  }, t))
27346
- }), QW = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
27347
+ }), rG = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
27347
27348
  className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
27348
27349
  children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
27349
- "data-testid": GW,
27350
+ "data-testid": XW,
27350
27351
  className: "flex flex-col gap-1",
27351
27352
  children: [/* @__PURE__ */ Q("div", {
27352
27353
  className: "flex h-8 items-center",
27353
27354
  children: /* @__PURE__ */ Q(z, { className: "h-6 w-10" })
27354
- }), /* @__PURE__ */ Q(YW, { className: "w-3/4" })]
27355
+ }), /* @__PURE__ */ Q(eG, { className: "w-3/4" })]
27355
27356
  }, t))
27356
- }), $W = (e, t) => /* @__PURE__ */ Q("div", {
27357
+ }), iG = (e, t) => /* @__PURE__ */ Q("div", {
27357
27358
  className: "flex flex-col gap-2",
27358
27359
  children: Array.from({ length: t.expectedItemsCount }, (e, t) => /* @__PURE__ */ Q("div", {
27359
- "data-testid": GW,
27360
- children: /* @__PURE__ */ Q(z, { className: B("h-6", JW(t)) })
27360
+ "data-testid": XW,
27361
+ children: /* @__PURE__ */ Q(z, { className: B("h-6", $W(t)) })
27361
27362
  }, t))
27362
- }), eG = {
27363
+ }), aG = {
27363
27364
  ...oW,
27364
27365
  list: {
27365
- render: (e, t) => /* @__PURE__ */ Q(HW, {
27366
+ render: (e, t) => /* @__PURE__ */ Q(qW, {
27366
27367
  params: e,
27367
27368
  ctx: t
27368
27369
  }),
27369
- skeleton: (e, t) => /* @__PURE__ */ Q(XW, {
27370
+ skeleton: (e, t) => /* @__PURE__ */ Q(tG, {
27370
27371
  params: e ?? {},
27371
27372
  ctx: t
27372
27373
  })
27373
27374
  },
27374
27375
  "event-list": {
27375
- render: (e, t) => /* @__PURE__ */ Q(UW, {
27376
+ render: (e, t) => /* @__PURE__ */ Q(JW, {
27376
27377
  params: e,
27377
27378
  ctx: t
27378
27379
  }),
27379
- skeleton: (e, t) => /* @__PURE__ */ Q(ZW, { ctx: t })
27380
+ skeleton: (e, t) => /* @__PURE__ */ Q(nG, { ctx: t })
27380
27381
  },
27381
27382
  indicators: {
27382
27383
  render: (e) => /* @__PURE__ */ Q(EH, { ...e }),
27383
- skeleton: (e, t) => /* @__PURE__ */ Q(QW, { ctx: t })
27384
+ skeleton: (e, t) => /* @__PURE__ */ Q(rG, { ctx: t })
27384
27385
  }
27385
- }, tG = ({ text: e, ticking: t, className: n }) => /* @__PURE__ */ Q("span", {
27386
+ }, oG = ({ text: e, ticking: t, className: n }) => /* @__PURE__ */ Q("span", {
27386
27387
  className: B("whitespace-nowrap tabular-nums", n),
27387
27388
  children: e.split(":").map((e, n) => /* @__PURE__ */ $(yu, { children: [n > 0 ? /* @__PURE__ */ Q("span", {
27388
27389
  className: B(t && "animate-clock-tick motion-reduce:animate-none"),
27389
27390
  children: ":"
27390
27391
  }) : null, e] }, n))
27391
- }), nG = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(tG, {
27392
+ }), sG = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(oG, {
27392
27393
  text: e,
27393
27394
  ticking: t,
27394
27395
  className: "px-2 text-2xl font-semibold"
27395
- }), rG = {
27396
+ }), cG = {
27396
27397
  neutral: {
27397
27398
  pill: "bg-f1-background-inverse text-f1-foreground-inverse",
27398
27399
  button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
@@ -27447,7 +27448,7 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27447
27448
  soloIcon: "inverse",
27448
27449
  soloRing: "ring-f1-border-inverse"
27449
27450
  }
27450
- }, iG = (e, t) => {
27451
+ }, lG = (e, t) => {
27451
27452
  let n = Qn();
27452
27453
  return {
27453
27454
  initial: {
@@ -27468,11 +27469,11 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27468
27469
  delay: wU(e, t)
27469
27470
  }, n)
27470
27471
  };
27471
- }, aG = ({ hasUpdates: e }) => e ? /* @__PURE__ */ Q("span", { className: "pointer-events-none absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null, oG = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
27472
- let s = iG(n, i), [c, l] = X({
27472
+ }, uG = ({ hasUpdates: e }) => e ? /* @__PURE__ */ Q("span", { className: "pointer-events-none absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null, dG = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
27473
+ let s = lG(n, i), [c, l] = X({
27473
27474
  hover: !1,
27474
27475
  focus: !1
27475
- }), u = c.hover || c.focus || r, d = t.text && !r ? t.text : void 0, f = rG[t.tone ?? "neutral"];
27476
+ }), u = c.hover || c.focus || r, d = t.text && !r ? t.text : void 0, f = cG[t.tone ?? "neutral"];
27476
27477
  return /* @__PURE__ */ Q(Vn, {
27477
27478
  label: t.label,
27478
27479
  instant: !0,
@@ -27503,7 +27504,7 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27503
27504
  })),
27504
27505
  ...s,
27505
27506
  children: [
27506
- d ? /* @__PURE__ */ Q(nG, {
27507
+ d ? /* @__PURE__ */ Q(sG, {
27507
27508
  text: d,
27508
27509
  ticking: !!t.ticking
27509
27510
  }) : null,
@@ -27512,7 +27513,7 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27512
27513
  variant: "ghost",
27513
27514
  size: "lg",
27514
27515
  className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", t.text ? f.button : f.solo, "ring-inset group-hover:ring-1", r && "ring-1", t.text ? f.ring : f.soloRing),
27515
- "aria-label": `${t.label}, ${DW(e)}`,
27516
+ "aria-label": `${t.label}, ${MW(e)}`,
27516
27517
  onClick: () => t.onClick(),
27517
27518
  children: /* @__PURE__ */ Q(W, {
27518
27519
  size: "lg",
@@ -27520,13 +27521,13 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27520
27521
  icon: u || !e.icon ? t.icon : e.icon
27521
27522
  })
27522
27523
  }),
27523
- /* @__PURE__ */ Q(aG, { hasUpdates: e.hasUpdates })
27524
+ /* @__PURE__ */ Q(uG, { hasUpdates: e.hasUpdates })
27524
27525
  ]
27525
27526
  })
27526
27527
  });
27527
- }, sG = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
27528
- let c = e.railAction, l = iG(t, r);
27529
- return c ? /* @__PURE__ */ Q(oG, {
27528
+ }, fG = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
27529
+ let c = e.railAction, l = lG(t, r);
27530
+ return c ? /* @__PURE__ */ Q(dG, {
27530
27531
  widget: e,
27531
27532
  action: c,
27532
27533
  order: t,
@@ -27541,7 +27542,7 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27541
27542
  children: /* @__PURE__ */ Q(z, { className: "h-10 w-10 rounded-lg" })
27542
27543
  }) : /* @__PURE__ */ Q(V.button, {
27543
27544
  type: "button",
27544
- "aria-label": DW(e),
27545
+ "aria-label": MW(e),
27545
27546
  "aria-expanded": n,
27546
27547
  "data-widget-glyph": e.id,
27547
27548
  onMouseEnter: (t) => i(e.id, t.currentTarget),
@@ -27559,19 +27560,19 @@ var WW = 3, GW = "slot-skeleton-item", KW = [
27559
27560
  color: "bold"
27560
27561
  }) : /* @__PURE__ */ Q("span", {
27561
27562
  className: "font-medium text-f1-foreground-secondary",
27562
- children: DW(e).charAt(0)
27563
+ children: MW(e).charAt(0)
27563
27564
  })
27564
27565
  }) : e.icon ? /* @__PURE__ */ Q(js, {
27565
27566
  icon: e.icon,
27566
27567
  size: "lg"
27567
27568
  }) : /* @__PURE__ */ Q("span", {
27568
27569
  className: "flex h-10 w-10 items-center justify-center rounded-lg border border-solid border-f1-border-secondary bg-f1-background font-medium text-f1-foreground-secondary",
27569
- children: DW(e).charAt(0)
27570
- }), /* @__PURE__ */ Q(aG, { hasUpdates: e.hasUpdates })]
27570
+ children: MW(e).charAt(0)
27571
+ }), /* @__PURE__ */ Q(uG, { hasUpdates: e.hasUpdates })]
27571
27572
  })
27572
27573
  });
27573
27574
  };
27574
- function cG(e = 24) {
27575
+ function pG(e = 24) {
27575
27576
  let [t, n] = X(null), [r, i] = X({
27576
27577
  top: !1,
27577
27578
  bottom: !1
@@ -27605,12 +27606,12 @@ function cG(e = 24) {
27605
27606
  }
27606
27607
  //#endregion
27607
27608
  //#region src/domains/platform/home/Home/SlotWidget/SlotWidget.tsx
27608
- var lG = "-ml-0.5 mt-2", uG = 450, dG = "cubic-bezier(0.4, 0, 0.1, 1)", fG = 1.04;
27609
- function pG({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
27609
+ var mG = "-ml-0.5 mt-2", hG = 450, gG = "cubic-bezier(0.4, 0, 0.1, 1)", _G = 1.04;
27610
+ function vG({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
27610
27611
  let a = n ? {
27611
- ...eG,
27612
+ ...aG,
27612
27613
  ...n
27613
- } : eG;
27614
+ } : aG;
27614
27615
  return /* @__PURE__ */ Q("div", {
27615
27616
  className: "flex flex-col",
27616
27617
  ...t ? {
@@ -27618,7 +27619,7 @@ function pG({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
27618
27619
  "aria-live": "polite"
27619
27620
  } : {},
27620
27621
  children: e.map((n, o) => {
27621
- let s = bW(a[n.visualization]), c = {
27622
+ let s = TW(a[n.visualization]), c = {
27622
27623
  ...r,
27623
27624
  isLastSlot: o === e.length - 1,
27624
27625
  isFirstUnderNoHeader: i && o === 0
@@ -27628,7 +27629,7 @@ function pG({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
27628
27629
  children: /* @__PURE__ */ Q(xt, { bare: !0 })
27629
27630
  }) : null, t ? /* @__PURE__ */ Q("div", {
27630
27631
  "aria-hidden": "true",
27631
- children: (s?.skeleton ?? $W)(n.params, {
27632
+ children: (s?.skeleton ?? iG)(n.params, {
27632
27633
  ...c,
27633
27634
  expectedItemsCount: n.expectedItemsCount ?? 3
27634
27635
  })
@@ -27639,7 +27640,7 @@ function pG({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
27639
27640
  })
27640
27641
  });
27641
27642
  }
27642
- function mG({ header: e, params: t, fullHeight: n, action: r, summaries: i, headerControls: a, headerActions: o, headerSelect: s, alert: c, status: l, slots: u, loading: d = !1, slotRenderers: f, actions: p, flipped: m = !1, onFlipBack: h, isDragging: g, ctx: _ = {}, headless: v = !1 }) {
27643
+ function yG({ header: e, params: t, fullHeight: n, action: r, summaries: i, headerControls: a, headerActions: o, headerSelect: s, alert: c, status: l, slots: u, loading: d = !1, slotRenderers: f, actions: p, flipped: m = !1, onFlipBack: h, isDragging: g, ctx: _ = {}, headless: v = !1 }) {
27643
27644
  let y = R(), b = Qn(), [x, S] = X(!1), C = Y(!1);
27644
27645
  K(() => {
27645
27646
  if (!C.current) {
@@ -27648,7 +27649,7 @@ function mG({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
27648
27649
  }
27649
27650
  if (b) return;
27650
27651
  S(!0);
27651
- let e = setTimeout(() => S(!1), uG);
27652
+ let e = setTimeout(() => S(!1), hG);
27652
27653
  return () => clearTimeout(e);
27653
27654
  }, [m, b]);
27654
27655
  let [w, T] = X(void 0), E = s ? w ?? s.value ?? s.options[0]?.value : void 0, D = s?.options.find((e) => e.value === E), O = (e) => {
@@ -27674,7 +27675,7 @@ function mG({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
27674
27675
  })
27675
27676
  }) : null,
27676
27677
  a
27677
- ] }) : a, { reportAction: A } = yW(), { info: j, ...M } = v ? {} : EW(e, t) ?? {}, N = Object.values(M).some((e) => e !== void 0) || !v && p && p.length > 0 || !v && k ? M : void 0, P = N?.link === void 0 ? N : {
27678
+ ] }) : a, { reportAction: A } = wW(), { info: j, ...M } = v ? {} : jW(e, t) ?? {}, N = Object.values(M).some((e) => e !== void 0) || !v && p && p.length > 0 || !v && k ? M : void 0, P = N?.link === void 0 ? N : {
27678
27679
  ...N,
27679
27680
  link: {
27680
27681
  ...N.link,
@@ -27689,13 +27690,13 @@ function mG({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
27689
27690
  header: P,
27690
27691
  fullHeight: n,
27691
27692
  action: I,
27692
- footerClassName: lG,
27693
+ footerClassName: mG,
27693
27694
  actions: v ? void 0 : p,
27694
27695
  headerControls: v ? void 0 : k,
27695
27696
  summaries: i,
27696
27697
  ...c ? { alert: c } : { status: l },
27697
27698
  isDragging: g,
27698
- children: u.length === 0 ? null : /* @__PURE__ */ Q(pG, {
27699
+ children: u.length === 0 ? null : /* @__PURE__ */ Q(vG, {
27699
27700
  ctx: {
27700
27701
  ..._,
27701
27702
  hasFooter: !!r,
@@ -27714,14 +27715,14 @@ function mG({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
27714
27715
  className: "h-full",
27715
27716
  "data-turning": x || void 0,
27716
27717
  style: {
27717
- transform: `scale(${x ? fG : 1})`,
27718
- transition: b ? void 0 : `transform ${uG / 2}ms ease-out`
27718
+ transform: `scale(${x ? _G : 1})`,
27719
+ transition: b ? void 0 : `transform ${hG / 2}ms ease-out`
27719
27720
  },
27720
27721
  children: /* @__PURE__ */ $("div", {
27721
27722
  className: "relative h-full [transform-style:preserve-3d]",
27722
27723
  style: {
27723
27724
  transform: `rotateY(${m ? 180 : 0}deg)`,
27724
- transition: b ? void 0 : `transform ${uG}ms ${dG}`
27725
+ transition: b ? void 0 : `transform ${hG}ms ${gG}`
27725
27726
  },
27726
27727
  children: [/* @__PURE__ */ Q("div", {
27727
27728
  className: B("[backface-visibility:hidden]", m && "pointer-events-none"),
@@ -27753,8 +27754,8 @@ function mG({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
27753
27754
  }
27754
27755
  //#endregion
27755
27756
  //#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
27756
- var hG = "(min-width: 2200px) and (min-height: 900px)", gG = () => {
27757
- let e = Jn(hG, {
27757
+ var bG = "(min-width: 2200px) and (min-height: 900px)", xG = () => {
27758
+ let e = Jn(bG, {
27758
27759
  initializeWithValue: !0,
27759
27760
  defaultValue: !1
27760
27761
  }), t = Jn(`(max-width: ${Ol.md}px)`, {
@@ -27768,14 +27769,14 @@ var hG = "(min-width: 2200px) and (min-height: 900px)", gG = () => {
27768
27769
  asideClassName: t ? "w-full shrink-0" : "w-80 shrink-0",
27769
27770
  stacked: t
27770
27771
  };
27771
- }, _G = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
27772
- function vG({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
27772
+ }, SG = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
27773
+ function CG({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
27773
27774
  return /* @__PURE__ */ Q("div", {
27774
27775
  className: "flex min-w-0 flex-1 flex-col overflow-y-auto rounded-lg bg-f1-background-secondary p-6",
27775
27776
  children: /* @__PURE__ */ $("div", {
27776
27777
  className: "my-auto flex w-full flex-col items-center gap-6",
27777
27778
  children: [/* @__PURE__ */ Q("div", {
27778
- className: B("w-full", _G),
27779
+ className: B("w-full", SG),
27779
27780
  style: { maxWidth: `${r}px` },
27780
27781
  children: t
27781
27782
  }, e), n ? /* @__PURE__ */ Q("p", {
@@ -27787,9 +27788,9 @@ function vG({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
27787
27788
  }
27788
27789
  //#endregion
27789
27790
  //#region src/domains/platform/home/Home/WidgetUpdateDialog/WidgetUpdateDialog.tsx
27790
- var yG = (e, t) => typeof e == "function" ? e(t) : e, bG = 250;
27791
- function xG({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: u = "Save" }) {
27792
- let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = gG(), { formRef: g, getValues: _, trigger: v } = l(), [y, b] = X(r ?? {});
27791
+ var wG = (e, t) => typeof e == "function" ? e(t) : e, TG = 250;
27792
+ function EG({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: u = "Save" }) {
27793
+ let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = xG(), { formRef: g, getValues: _, trigger: v } = l(), [y, b] = X(r ?? {});
27793
27794
  return K(() => {
27794
27795
  e && b(r ?? {});
27795
27796
  }, [e, r]), /* @__PURE__ */ Q(Pi, {
@@ -27815,15 +27816,15 @@ function xG({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
27815
27816
  defaultValues: r,
27816
27817
  submitConfig: {
27817
27818
  type: "autosubmit",
27818
- delay: bG,
27819
+ delay: TG,
27819
27820
  hideActionBar: !0
27820
27821
  },
27821
27822
  styling: { noPadding: !0 },
27822
27823
  onSubmit: (e) => (b(e), { success: !0 })
27823
27824
  })
27824
- }), /* @__PURE__ */ Q(vG, {
27825
+ }), /* @__PURE__ */ Q(CG, {
27825
27826
  previewKey: "widget-params",
27826
- info: yG(a, y),
27827
+ info: wG(a, y),
27827
27828
  previewWidth: s,
27828
27829
  children: i(y)
27829
27830
  })]
@@ -27832,10 +27833,10 @@ function xG({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
27832
27833
  }
27833
27834
  //#endregion
27834
27835
  //#region src/domains/platform/home/Home/WidgetContainer/dragGhost.ts
27835
- var SG = (e) => {
27836
+ var DG = (e) => {
27836
27837
  let t = e?.cloneNode(!0);
27837
27838
  return t instanceof HTMLElement ? (t.classList.remove("invisible"), t.style.transform = "none", t.style.transition = "none", t.removeAttribute("id"), t.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), t.setAttribute("aria-hidden", "true"), t.setAttribute("inert", ""), t) : null;
27838
- }, CG = (e, t) => {
27839
+ }, OG = (e, t) => {
27839
27840
  if (!e || !t) return null;
27840
27841
  let n = e.cloneNode(!0);
27841
27842
  if (!(n instanceof HTMLElement)) return null;
@@ -27849,61 +27850,61 @@ var SG = (e) => {
27849
27850
  width: r.width,
27850
27851
  height: r.height
27851
27852
  },
27852
- base: TG(e)
27853
+ base: AG(e)
27853
27854
  };
27854
- }, wG = /* @__PURE__ */ new Set([
27855
+ }, kG = /* @__PURE__ */ new Set([
27855
27856
  "rgba(0, 0, 0, 0)",
27856
27857
  "transparent",
27857
27858
  ""
27858
- ]), TG = (e) => {
27859
+ ]), AG = (e) => {
27859
27860
  if (typeof getComputedStyle != "function") return null;
27860
27861
  for (let t = e; t; t = t.parentElement) {
27861
27862
  let e = getComputedStyle(t).backgroundColor;
27862
- if (!wG.has(e)) return e;
27863
+ if (!kG.has(e)) return e;
27863
27864
  }
27864
27865
  return null;
27865
- }, EG = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, DG = (e) => e && EG.test(e) ? e : void 0, OG = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, kG = (e) => EG.test(e), AG = (e) => {
27866
+ }, jG = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, MG = (e) => e && jG.test(e) ? e : void 0, NG = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, PG = (e) => jG.test(e), FG = (e) => {
27866
27867
  let t = [], n = 0;
27867
- for (let r of e.matchAll(OG)) {
27868
+ for (let r of e.matchAll(NG)) {
27868
27869
  let i = r[1] ?? "", a = r[2] ?? "", o = r.index, s = e[o - 1] === "!", c = e.slice(n, s ? o - 1 : o);
27869
- c && t.push({ text: c }), t.push(s || !kG(a) ? { text: i } : {
27870
+ c && t.push({ text: c }), t.push(s || !PG(a) ? { text: i } : {
27870
27871
  label: i,
27871
27872
  href: a
27872
27873
  }), n = o + r[0].length;
27873
27874
  }
27874
27875
  return n < e.length && t.push({ text: e.slice(n) }), t;
27875
- }, jG = ({ text: e }) => /* @__PURE__ */ Q("div", {
27876
+ }, IG = ({ text: e }) => /* @__PURE__ */ Q("div", {
27876
27877
  className: "text-center text-f1-foreground-secondary",
27877
- children: AG(e).map((e, t) => /* @__PURE__ */ Q(yu, { children: "href" in e ? /* @__PURE__ */ Q(Ka, {
27878
+ children: FG(e).map((e, t) => /* @__PURE__ */ Q(yu, { children: "href" in e ? /* @__PURE__ */ Q(Ka, {
27878
27879
  href: e.href,
27879
27880
  children: e.label
27880
27881
  }) : e.text }, t))
27881
- }), MG = (e) => {
27882
+ }), LG = (e) => {
27882
27883
  let t = e.findIndex((e) => !e.locked);
27883
27884
  return e.slice(0, t < 0 ? e.length : t);
27884
- }, NG = (e, t, n) => {
27885
- let r = MG(e).flatMap((e) => {
27885
+ }, RG = (e, t, n) => {
27886
+ let r = LG(e).flatMap((e) => {
27886
27887
  let n = t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
27887
27888
  return n ? [n.bottom] : [];
27888
27889
  });
27889
27890
  return r.length > 0 ? Math.max(...r) + n : null;
27890
- }, PG = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
27891
+ }, zG = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
27891
27892
  let i = e(), a = (n ?? r)?.top;
27892
27893
  return i == null || a == null ? t : {
27893
27894
  ...t,
27894
27895
  y: Math.max(t.y, i - a)
27895
27896
  };
27896
- }, FG = (e, t, n, r) => {
27897
+ }, BG = (e, t, n, r) => {
27897
27898
  if (n < 0 || r < 0 || n === r || t.has(r)) return null;
27898
27899
  let i = Array.from({ length: e }, (e, t) => t), a = Vt(i, n, r).filter((e) => !t.has(e));
27899
27900
  return i.map((e) => t.has(e) ? e : a.shift());
27900
- }, IG = (e, t) => new Map(e.flatMap((e, n) => {
27901
+ }, VG = (e, t) => new Map(e.flatMap((e, n) => {
27901
27902
  let r = e.locked ? t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect() : void 0;
27902
27903
  return r ? [[n, r.height]] : [];
27903
- })), LG = ({ pinned: e, pinnedHeights: t, gap: n }) => (r) => {
27904
+ })), HG = ({ pinned: e, pinnedHeights: t, gap: n }) => (r) => {
27904
27905
  let { rects: i, activeIndex: a, overIndex: o, index: s } = r, c = Array.from({ length: i.length }, (e, n) => i[n]?.height ?? t.get(n));
27905
27906
  if (e.size === 0 || c.some((e) => e == null)) return Oe(r);
27906
- let l = FG(i.length, e, a, o);
27907
+ let l = BG(i.length, e, a, o);
27907
27908
  if (!l) return null;
27908
27909
  let u = (e, t) => e.slice(0, e.indexOf(t)).reduce((e, t) => e + c[t] + n, 0), d = l.map((e, t) => t), f = u(l, s) - u(d, s);
27909
27910
  return f === 0 ? null : {
@@ -27912,14 +27913,14 @@ var SG = (e) => {
27912
27913
  scaleX: 1,
27913
27914
  scaleY: 1
27914
27915
  };
27915
- }, RG = () => !1, zG = {
27916
+ }, UG = () => !1, WG = {
27916
27917
  duration: .2,
27917
27918
  ease: "easeOut"
27918
- }, BG = ({ id: e, disabled: t = !1, settle: n, children: r }) => {
27919
+ }, GG = ({ id: e, disabled: t = !1, settle: n, children: r }) => {
27919
27920
  let i = Qn(), { listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Ae({
27920
27921
  id: e,
27921
27922
  disabled: t,
27922
- animateLayoutChanges: RG
27923
+ animateLayoutChanges: UG
27923
27924
  }), u = {
27924
27925
  transform: pt.Translate.toString(s && {
27925
27926
  ...s,
@@ -27936,26 +27937,26 @@ var SG = (e) => {
27936
27937
  children: /* @__PURE__ */ Q(V.div, {
27937
27938
  layout: "position",
27938
27939
  layoutDependency: n,
27939
- transition: { layout: IU(zG, i) },
27940
+ transition: { layout: IU(WG, i) },
27940
27941
  children: r({ isDragging: l })
27941
27942
  })
27942
27943
  });
27943
- }, VG = 12, HG = 280, UG = 2, WG = /* @__PURE__ */ new Set([
27944
+ }, KG = 12, qG = 280, JG = 2, YG = /* @__PURE__ */ new Set([
27944
27945
  "auto",
27945
27946
  "scroll",
27946
27947
  "overlay"
27947
- ]), GG = (e) => {
27948
+ ]), XG = (e) => {
27948
27949
  let t = e.parentElement;
27949
27950
  for (; t && t !== document.body && t !== document.documentElement;) {
27950
- if (WG.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
27951
+ if (YG.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
27951
27952
  t = t.parentElement;
27952
27953
  }
27953
27954
  return null;
27954
27955
  };
27955
- function KG({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
27956
+ function ZG({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
27956
27957
  let a = e === !1 ? null : e, [o, s] = X(null), [c, l] = X(null), u = a?.scrollElement ?? c, d = a != null && !i, f = a?.scrollElement != null;
27957
27958
  q(() => {
27958
- d && !f && o && l(GG(o));
27959
+ d && !f && o && l(XG(o));
27959
27960
  }, [
27960
27961
  d,
27961
27962
  f,
@@ -27976,7 +27977,7 @@ function KG({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
27976
27977
  o,
27977
27978
  u
27978
27979
  ]);
27979
- let h = d && u != null && t >= (a?.threshold ?? VG), g = Y(r);
27980
+ let h = d && u != null && t >= (a?.threshold ?? KG), g = Y(r);
27980
27981
  g.current = r;
27981
27982
  let _ = r.join(","), v = G((e) => {
27982
27983
  let t = new Set(sc(e));
@@ -27988,8 +27989,8 @@ function KG({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
27988
27989
  gap: n,
27989
27990
  scrollMargin: p,
27990
27991
  rangeExtractor: v,
27991
- overscan: a?.overscan ?? UG,
27992
- estimateSize: () => a?.estimateHeight ?? HG,
27992
+ overscan: a?.overscan ?? JG,
27993
+ estimateSize: () => a?.estimateHeight ?? qG,
27993
27994
  getScrollElement: () => u
27994
27995
  });
27995
27996
  return {
@@ -28006,10 +28007,10 @@ function KG({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
28006
28007
  }
28007
28008
  //#endregion
28008
28009
  //#region src/domains/platform/home/Home/WidgetContainer/verticalOnly.ts
28009
- var qG = ({ transform: e }) => ({
28010
+ var QG = ({ transform: e }) => ({
28010
28011
  ...e,
28011
28012
  x: 0
28012
- }), JG = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
28013
+ }), $G = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
28013
28014
  let a = Qn(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? CU : e?.arriving ? TU(s, e.delayMs) : !t || t.instant ? CU : o ? NU : PU;
28014
28015
  return /* @__PURE__ */ Q(V.div, {
28015
28016
  "data-widget-id": r,
@@ -28025,7 +28026,7 @@ var qG = ({ transform: e }) => ({
28025
28026
  transition: c,
28026
28027
  children: i
28027
28028
  });
28028
- }, YG = ({ host: e, children: t }) => {
28029
+ }, eK = ({ host: e, children: t }) => {
28029
28030
  let n = Y();
28030
28031
  if (!n.current) {
28031
28032
  let e = document.createElement("div");
@@ -28045,7 +28046,7 @@ var qG = ({ transform: e }) => ({
28045
28046
  ref: o,
28046
28047
  className: "contents"
28047
28048
  }), Pu(t, r)] });
28048
- }, XG = [
28049
+ }, tK = [
28049
28050
  "a",
28050
28051
  "button",
28051
28052
  "input",
@@ -28059,28 +28060,28 @@ var qG = ({ transform: e }) => ({
28059
28060
  "[role='checkbox']",
28060
28061
  "[role='tab']",
28061
28062
  "[contenteditable='true']"
28062
- ].join(","), ZG = class extends $e {
28063
+ ].join(","), nK = class extends $e {
28063
28064
  static activators = [{
28064
28065
  eventName: "onPointerDown",
28065
28066
  handler: ({ nativeEvent: e }, { onActivation: t }) => {
28066
28067
  if (!e.isPrimary || e.button !== 0) return !1;
28067
28068
  let n = e.target;
28068
- return n instanceof Element && n.closest(XG) ? !1 : (t?.({ event: e }), !0);
28069
+ return n instanceof Element && n.closest(tK) ? !1 : (t?.({ event: e }), !0);
28069
28070
  }
28070
28071
  }];
28071
- }, QG = {
28072
+ }, rK = {
28072
28073
  duration: 450,
28073
28074
  easing: "cubic-bezier(0.4, 0, 0.1, 1)"
28074
- }, $G = { container: typeof document > "u" ? void 0 : document.body }, eK = (e, t) => {
28075
+ }, iK = { container: typeof document > "u" ? void 0 : document.body }, aK = (e, t) => {
28075
28076
  for (let n = e; n; n = n.parentElement) {
28076
28077
  let e = n.querySelector(t);
28077
28078
  if (e) return e;
28078
28079
  }
28079
28080
  return null;
28080
- }, tK = {
28081
+ }, oK = {
28081
28082
  main: 24,
28082
28083
  right: 16
28083
- }, nK = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
28084
+ }, sK = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
28084
28085
  ref: t ? n : void 0,
28085
28086
  "data-index": t?.index,
28086
28087
  hidden: e,
@@ -28091,7 +28092,7 @@ var qG = ({ transform: e }) => ({
28091
28092
  width: "100%"
28092
28093
  } : { display: e ? void 0 : "contents" },
28093
28094
  children: r
28094
- }), rK = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Vn, {
28095
+ }), cK = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Vn, {
28095
28096
  label: t,
28096
28097
  children: /* @__PURE__ */ Q("button", {
28097
28098
  type: "button",
@@ -28105,18 +28106,18 @@ var qG = ({ transform: e }) => ({
28105
28106
  })
28106
28107
  })
28107
28108
  });
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
- 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({
28109
+ function lK({ 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 }) {
28110
+ 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(() => HG({
28110
28111
  pinned: ne,
28111
28112
  pinnedHeights: ee,
28112
- gap: tK[t]
28113
+ gap: oK[t]
28113
28114
  }), [
28114
28115
  ne,
28115
28116
  ee,
28116
28117
  t
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
+ ]), ie = Wt(kt(nK, { 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, zG(() => me.current)], []), ge = (e) => {
28118
28119
  let t = de.current?.querySelector(`[data-widget-id="${e}"]`);
28119
- fe.current = SG(t), pe.current = u ? CG(eK(de.current, u), t) : null;
28120
+ fe.current = DG(t), pe.current = u ? OG(aK(de.current, u), t) : null;
28120
28121
  }, _e = (e) => {
28121
28122
  e && fe.current && e.replaceChildren(fe.current);
28122
28123
  }, ve = Y(0), ye = () => cancelAnimationFrame(ve.current), be = (e) => {
@@ -28131,14 +28132,14 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28131
28132
  e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`, ve.current = requestAnimationFrame(r);
28132
28133
  };
28133
28134
  r();
28134
- }, xe = KG({
28135
+ }, xe = ZG({
28135
28136
  config: g === !0 ? {} : g,
28136
28137
  count: e.length,
28137
- gap: tK[t],
28138
+ gap: oK[t],
28138
28139
  pinned: P ? [e.findIndex((e) => e.id === P)] : [],
28139
28140
  paused: m !== void 0
28140
28141
  }), Se = g !== !1 && m !== void 0, Ce = ({ activatorEvent: t, delta: n, active: r }) => {
28141
- let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = me.current == null ? [] : MG(e);
28142
+ let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = me.current == null ? [] : LG(e);
28142
28143
  return e.find((e) => {
28143
28144
  if (!e.locked || c.includes(e)) return !1;
28144
28145
  let t = de.current?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
@@ -28148,7 +28149,7 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28148
28149
  });
28149
28150
  }, we = (e) => {
28150
28151
  let t = [...e.actions ?? []];
28151
- return EW(e.header, e.params)?.info && t.push({
28152
+ return jW(e.header, e.params)?.info && t.push({
28152
28153
  label: O.widgets.whatThisMeans,
28153
28154
  icon: yc,
28154
28155
  onClick: () => le(e.id)
@@ -28163,7 +28164,7 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28163
28164
  onClick: () => d(e.id)
28164
28165
  })), t;
28165
28166
  }, Te = (t) => {
28166
- let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ? FG(i.length, ne, i.indexOf(String(n.id)), i.indexOf(String(r.id))) : null;
28167
+ let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ? BG(i.length, ne, i.indexOf(String(n.id)), i.indexOf(String(r.id))) : null;
28167
28168
  if (a) {
28168
28169
  p?.(a.map((e) => i[e]));
28169
28170
  return;
@@ -28171,15 +28172,15 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28171
28172
  let o = Ce(t);
28172
28173
  o && Kt.open({
28173
28174
  variant: "warning",
28174
- title: O.widgets.cannotMoveHere.replace("{{title}}", DW(o))
28175
+ title: O.widgets.cannotMoveHere.replace("{{title}}", MW(o))
28175
28176
  });
28176
- }, Ee = (e, t, n = e.params) => /* @__PURE__ */ Q(vW, {
28177
+ }, Ee = (e, t, n = e.params) => /* @__PURE__ */ Q(CW, {
28177
28178
  widgetId: e.id,
28178
28179
  children: De(e, t, n)
28179
28180
  }), De = (e, t, n = e.params) => {
28180
28181
  let r = we(e);
28181
- if (!a) return /* @__PURE__ */ Q(mG, {
28182
- ...AW(e),
28182
+ if (!a) return /* @__PURE__ */ Q(yG, {
28183
+ ...FW(e),
28183
28184
  header: e.header,
28184
28185
  params: n,
28185
28186
  fullHeight: e.fullHeight,
@@ -28216,7 +28217,7 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28216
28217
  instant: _.stowed
28217
28218
  }, je = (e, t, n, r) => {
28218
28219
  let i = n ? Ae(n) : void 0;
28219
- return !Oe && !i && !r ? t : /* @__PURE__ */ Q(JG, {
28220
+ return !Oe && !i && !r ? t : /* @__PURE__ */ Q($G, {
28220
28221
  arrival: Oe ? {
28221
28222
  order: (Oe.order ?? 0) + e,
28222
28223
  delayMs: Oe.delayMs ?? 0,
@@ -28227,13 +28228,13 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28227
28228
  widgetId: r,
28228
28229
  children: t
28229
28230
  });
28230
- }, Me = (e, t, n) => /* @__PURE__ */ Q(nK, {
28231
+ }, Me = (e, t, n) => /* @__PURE__ */ Q(sK, {
28231
28232
  hidden: j(e),
28232
28233
  placement: n,
28233
28234
  measureRef: xe.measureRef,
28234
- children: /* @__PURE__ */ Q(YG, {
28235
+ children: /* @__PURE__ */ Q(eK, {
28235
28236
  host: c?.(e),
28236
- children: M ? /* @__PURE__ */ Q(BG, {
28237
+ children: M ? /* @__PURE__ */ Q(GG, {
28237
28238
  id: e.id,
28238
28239
  disabled: e.locked || s || !N,
28239
28240
  settle: I,
@@ -28259,9 +28260,9 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28259
28260
  sensors: ie,
28260
28261
  collisionDetection: Zt,
28261
28262
  modifiers: he,
28262
- accessibility: $G,
28263
+ accessibility: iK,
28263
28264
  onDragStart: ({ active: n }) => {
28264
- ge(String(n.id)), me.current = NG(e, de.current, tK[t]), te(IG(e, de.current)), F(String(n.id));
28265
+ ge(String(n.id)), me.current = RG(e, de.current, oK[t]), te(VG(e, de.current)), F(String(n.id));
28265
28266
  },
28266
28267
  onDragCancel: () => {
28267
28268
  F(null), ye(), fe.current = null, pe.current = null, me.current = null;
@@ -28281,7 +28282,7 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28281
28282
  className: "fixed inset-0 z-50 cursor-grabbing"
28282
28283
  }) : null,
28283
28284
  /* @__PURE__ */ Q(ue, {
28284
- dropAnimation: QG,
28285
+ dropAnimation: rK,
28285
28286
  children: P ? /* @__PURE__ */ $("div", {
28286
28287
  className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
28287
28288
  children: [/* @__PURE__ */ Q("div", {
@@ -28296,13 +28297,13 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28296
28297
  ]
28297
28298
  }) : Pe,
28298
28299
  l,
28299
- r == null ? null : je(e.length, /* @__PURE__ */ Q(jG, { text: r })),
28300
- !o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(rK, {
28300
+ r == null ? null : je(e.length, /* @__PURE__ */ Q(IG, { text: r })),
28301
+ !o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(cK, {
28301
28302
  onClick: f,
28302
28303
  label: v ?? O.widgets.addWidget,
28303
28304
  side: t
28304
28305
  })) : null,
28305
- se?.paramsSchema && y ? /* @__PURE__ */ Q(xG, {
28306
+ se?.paramsSchema && y ? /* @__PURE__ */ Q(EG, {
28306
28307
  isOpen: !0,
28307
28308
  onClose: () => oe(null),
28308
28309
  schema: se.paramsSchema,
@@ -28317,7 +28318,7 @@ function iK({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28317
28318
  }
28318
28319
  //#endregion
28319
28320
  //#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
28320
- var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28321
+ var uK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28321
28322
  let a = Qn(), [o, s] = X(!1);
28322
28323
  K(() => {
28323
28324
  r && s(!0);
@@ -28347,14 +28348,14 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28347
28348
  },
28348
28349
  glyphDelayMs: o ? 90 : 220
28349
28350
  };
28350
- }, oK = {
28351
+ }, dK = {
28351
28352
  morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
28352
28353
  afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
28353
28354
  evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
28354
- }, sK = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
28355
+ }, fK = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
28355
28356
  "aria-hidden": !0,
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
+ className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", dK[e], t)
28358
+ }), pK = 40, mK = 672, hK = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", gK = 16, _K = 768, vK = { display: "contents" }, yK = 150, bK = 150, xK = 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 = mK, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
28358
28359
  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);
28359
28360
  q(function() {
28360
28361
  let e = M.current;
@@ -28367,10 +28368,10 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28367
28368
  let n = new ResizeObserver(t);
28368
28369
  return n.observe(e), () => n.disconnect();
28369
28370
  }, []);
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) ? {
28371
+ 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 = pG(), pe = pG(), me = pG(), he = (e) => u.includes(e) ? {
28371
28372
  ...d,
28372
28373
  scrollElement: e === "main" ? fe.element : pe.element
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 = {
28374
+ } : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x + gK + b, ve = ge && r.length > 0 && (_e || (se ?? !1)), ye = ve ? pK : b, be = ve ? A.actions.expand : A.actions.collapse, xe = ge && F, Se = N > 0 && N < _K, Ce = xe && !Se && (ve || N >= _K), we = {
28374
28375
  pinned: r.filter((e) => e.locked),
28375
28376
  rest: r.filter((e) => !e.locked)
28376
28377
  }, [Te, Ee] = X({}), De = Y(/* @__PURE__ */ new Map()), Oe = (e) => {
@@ -28388,7 +28389,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28388
28389
  ...Ae.slice(0, C).map(je),
28389
28390
  ...we.pinned.map((e) => /* @__PURE__ */ Q("div", {
28390
28391
  ref: Oe(e.id),
28391
- style: pK
28392
+ style: vK
28392
28393
  }, `pin-host-${e.id}`)),
28393
28394
  ...Ae.slice(C).map((e, t) => je(e, C + t))
28394
28395
  ], Ne = ve ? r.find((e) => e.id === L) : void 0;
@@ -28399,7 +28400,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28399
28400
  oe.current && clearTimeout(oe.current), ae.current && clearTimeout(ae.current);
28400
28401
  };
28401
28402
  }, []);
28402
- let Pe = aK({
28403
+ let Pe = uK({
28403
28404
  collapsed: ve,
28404
28405
  open: Ne != null,
28405
28406
  glide: re,
@@ -28433,7 +28434,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28433
28434
  }, Ve = () => {
28434
28435
  oe.current && clearTimeout(oe.current), oe.current = null;
28435
28436
  }, He = () => {
28436
- Be(), Ve(), ae.current = setTimeout(() => ee(null), mK);
28437
+ Be(), Ve(), ae.current = setTimeout(() => ee(null), yK);
28437
28438
  }, Ue = (e, t) => {
28438
28439
  Ve();
28439
28440
  let n = M.current;
@@ -28443,7 +28444,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28443
28444
  }
28444
28445
  ie(Le.current != null), ee(e);
28445
28446
  }, We = (e, t, n = !1) => {
28446
- Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), hK));
28447
+ Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), bK));
28447
28448
  }, Ge = /* @__PURE__ */ $(V.div, {
28448
28449
  ref: (e) => {
28449
28450
  M.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
@@ -28466,7 +28467,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28466
28467
  left: -S,
28467
28468
  right: -S
28468
28469
  },
28469
- children: /* @__PURE__ */ Q(sK, { period: y })
28470
+ children: /* @__PURE__ */ Q(fK, { period: y })
28470
28471
  }),
28471
28472
  /* @__PURE__ */ $(KU, {
28472
28473
  order: 0,
@@ -28494,7 +28495,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28494
28495
  }),
28495
28496
  /* @__PURE__ */ Q("div", {
28496
28497
  ref: fe.ref,
28497
- className: B("relative isolate min-h-0 overflow-y-auto", uK),
28498
+ className: B("relative isolate min-h-0 overflow-y-auto", hK),
28498
28499
  style: {
28499
28500
  gridColumn: 1,
28500
28501
  gridRow: 2,
@@ -28505,17 +28506,17 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28505
28506
  marginLeft: -S,
28506
28507
  paddingLeft: S,
28507
28508
  marginRight: Ce ? -16 : -S,
28508
- paddingRight: Ce ? dK : S,
28509
+ paddingRight: Ce ? gK : S,
28509
28510
  ...fe.style
28510
28511
  },
28511
- children: /* @__PURE__ */ Q(iK, {
28512
+ children: /* @__PURE__ */ Q(lK, {
28512
28513
  side: "main",
28513
28514
  className: "relative mx-auto w-full [anchor-name:--f0-composer-column]",
28514
28515
  style: { maxWidth: `${x}px` },
28515
28516
  widgets: n,
28516
28517
  afterWidgets: we.rest.map((e) => /* @__PURE__ */ Q("div", {
28517
28518
  ref: Oe(e.id),
28518
- style: pK
28519
+ style: vK
28519
28520
  }, `loose-host-${e.id}`)),
28520
28521
  footnote: t,
28521
28522
  slotRenderers: a,
@@ -28538,7 +28539,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28538
28539
  }),
28539
28540
  /* @__PURE__ */ Q(Bn, { children: Se || !xe || !ve ? null : /* @__PURE__ */ $(V.aside, {
28540
28541
  ref: me.ref,
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),
28542
+ 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", hK),
28542
28543
  style: {
28543
28544
  gridColumn: 2,
28544
28545
  gridRow: 2,
@@ -28552,7 +28553,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28552
28553
  transition: IU(AU, j),
28553
28554
  onMouseLeave: He,
28554
28555
  onMouseEnter: Be,
28555
- children: [r.map((e, t) => /* @__PURE__ */ Q(sG, {
28556
+ children: [r.map((e, t) => /* @__PURE__ */ Q(fG, {
28556
28557
  widget: e,
28557
28558
  order: t,
28558
28559
  open: L === e.id,
@@ -28583,7 +28584,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28583
28584
  xe ? /* @__PURE__ */ Q(V.aside, {
28584
28585
  ref: pe.ref,
28585
28586
  hidden: Se || Fe && Pe.panelHidden,
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"),
28587
+ className: B("min-h-0 overflow-y-auto overflow-x-hidden", hK, 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"),
28587
28588
  style: ze,
28588
28589
  initial: !1,
28589
28590
  animate: {
@@ -28595,7 +28596,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28595
28596
  transition: Pe.transition,
28596
28597
  onMouseEnter: ve ? Be : void 0,
28597
28598
  onMouseLeave: ve ? He : void 0,
28598
- children: /* @__PURE__ */ Q(iK, {
28599
+ children: /* @__PURE__ */ Q(lK, {
28599
28600
  side: "right",
28600
28601
  widgets: r,
28601
28602
  visibleWidgetId: !Se && Fe ? Re : void 0,
@@ -28633,40 +28634,40 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28633
28634
  }) : null
28634
28635
  ]
28635
28636
  });
28636
- return /* @__PURE__ */ Q(gW, {
28637
+ return /* @__PURE__ */ Q(xW, {
28637
28638
  tracking: v,
28638
28639
  children: Ge
28639
28640
  });
28640
- }), _K = (e) => e ? di[e] : void 0, vK = (e) => e.type === "icon" ? {
28641
+ }), SK = (e) => e ? di[e] : void 0, CK = (e) => e.type === "icon" ? {
28641
28642
  ...e,
28642
- icon: _K(e.icon) ?? dr
28643
- } : e, yK = (e, t, n) => ({
28644
- ...e.type === "navigate" && DG(e.href) ? { href: e.href } : {},
28643
+ icon: SK(e.icon) ?? dr
28644
+ } : e, wK = (e, t, n) => ({
28645
+ ...e.type === "navigate" && MG(e.href) ? { href: e.href } : {},
28645
28646
  onClick: () => n(e, t)
28646
- }), bK = (e, t, n) => ({
28647
+ }), TK = (e, t, n) => ({
28647
28648
  label: e.label,
28648
- icon: _K(e.icon),
28649
+ icon: SK(e.icon),
28649
28650
  variant: e.variant,
28650
- ...yK(e.action, t, n)
28651
- }), xK = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(mG, {
28651
+ ...wK(e.action, t, n)
28652
+ }), EK = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(yG, {
28652
28653
  headless: !e,
28653
28654
  header: e ? { title: e } : void 0,
28654
28655
  fullHeight: i,
28655
28656
  slots: t,
28656
28657
  loading: n,
28657
28658
  slotRenderers: r
28658
- }), SK = "agentic-empty-state", CK = [
28659
+ }), DK = "agentic-empty-state", OK = [
28659
28660
  "default",
28660
28661
  "outline",
28661
28662
  "neutral",
28662
28663
  "promote"
28663
- ], wK = (e) => CK.find((t) => t === e), TK = ({ empty: e, elementId: t, onAction: n }) => {
28664
+ ], kK = (e) => OK.find((t) => t === e), AK = ({ empty: e, elementId: t, onAction: n }) => {
28664
28665
  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) => ({
28665
28666
  label: e.label,
28666
- icon: _K(e.icon),
28667
- variant: wK(e.variant),
28667
+ icon: SK(e.icon),
28668
+ variant: kK(e.variant),
28668
28669
  onClick: () => n(e.action, t ? { elementId: t } : {})
28669
- })), s = J(() => ({ [SK]: () => /* @__PURE__ */ Q(E, {
28670
+ })), s = J(() => ({ [DK]: () => /* @__PURE__ */ Q(E, {
28670
28671
  title: i,
28671
28672
  description: a,
28672
28673
  emoji: e?.emoji ?? "📭",
@@ -28677,27 +28678,27 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28677
28678
  e?.emoji,
28678
28679
  o
28679
28680
  ]);
28680
- return /* @__PURE__ */ Q(xK, {
28681
+ return /* @__PURE__ */ Q(EK, {
28681
28682
  slots: [{
28682
- visualization: SK,
28683
+ visualization: DK,
28683
28684
  params: {}
28684
28685
  }],
28685
28686
  slotRenderers: s
28686
28687
  });
28687
- }, EK = ({ message: e }) => {
28688
- let t = R(), n = J(() => ({ [SK]: () => /* @__PURE__ */ Q(E, {
28688
+ }, jK = ({ message: e }) => {
28689
+ let t = R(), n = J(() => ({ [DK]: () => /* @__PURE__ */ Q(E, {
28689
28690
  variant: "critical",
28690
28691
  title: t.collections.emptyStates.error.title,
28691
28692
  description: e ?? t.collections.emptyStates.error.description
28692
28693
  }) }), [t, e]);
28693
- return /* @__PURE__ */ Q(xK, {
28694
+ return /* @__PURE__ */ Q(EK, {
28694
28695
  slots: [{
28695
- visualization: SK,
28696
+ visualization: DK,
28696
28697
  params: {}
28697
28698
  }],
28698
28699
  slotRenderers: n
28699
28700
  });
28700
- }, DK = (e) => {
28701
+ }, MK = (e) => {
28701
28702
  switch (e.type) {
28702
28703
  case "stats": return e.stats;
28703
28704
  case "charts": return e.charts;
@@ -28708,15 +28709,15 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28708
28709
  case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
28709
28710
  case "text": return [];
28710
28711
  }
28711
- }, OK = (e, t, n, r) => {
28712
+ }, NK = (e, t, n, r) => {
28712
28713
  let i = t?.itemActions;
28713
- if (i) for (let t of DK(e)) (!t.action || !i.includes(t.action.type)) && r.push({
28714
+ if (i) for (let t of MK(e)) (!t.action || !i.includes(t.action.type)) && r.push({
28714
28715
  rule: "itemAction",
28715
28716
  ...n,
28716
28717
  itemId: t.id,
28717
28718
  expected: i
28718
28719
  });
28719
- }, kK = {
28720
+ }, PK = {
28720
28721
  stats: 3,
28721
28722
  charts: 2,
28722
28723
  list: 3,
@@ -28724,7 +28725,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28724
28725
  events: 2,
28725
28726
  posts: 1,
28726
28727
  widget: 3
28727
- }, AK = (e) => Math.max(1, e.expectedItemsCount ?? kK[e.type]), jK = (e) => {
28728
+ }, FK = (e) => Math.max(1, e.expectedItemsCount ?? PK[e.type]), IK = (e) => {
28728
28729
  switch (e.type) {
28729
28730
  case "stats": return e.stats.length;
28730
28731
  case "charts": return e.charts.length;
@@ -28735,7 +28736,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28735
28736
  case "shortcuts": return e.shortcuts.length;
28736
28737
  case "text": return 1;
28737
28738
  }
28738
- }, MK = (e, t) => {
28739
+ }, LK = (e, t) => {
28739
28740
  switch (e.type) {
28740
28741
  case "stats": return {
28741
28742
  ...e,
@@ -28767,22 +28768,22 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28767
28768
  };
28768
28769
  case "text": return e;
28769
28770
  }
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
+ }, RK = (e, t) => e.blocks?.find((e) => e.type === t), zK = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, BK = (e, t, n, r) => {
28772
+ let i = RK(n, e.type)?.maxItems, a = IK(e);
28772
28773
  return i === void 0 || a <= i ? e : (r.push({
28773
28774
  rule: "maxItems",
28774
28775
  elementId: t,
28775
28776
  blockType: e.type,
28776
28777
  limit: i,
28777
28778
  count: a
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 ? {
28779
+ }), LK(e, i));
28780
+ }, VK = (e, t) => {
28781
+ let n = e.type === "widget" ? void 0 : RK(t, e.type)?.maxItems;
28782
+ return n !== void 0 && FK(e) > n ? {
28782
28783
  ...e,
28783
28784
  expectedItemsCount: Math.max(1, n)
28784
28785
  } : e;
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) => {
28786
+ }, HK = (e, t, n) => t === n || (t === "widget" || n === "widget") && !RK(e, "widget") || (RK(e, t)?.combinesWith?.includes(n) ?? !0) && (RK(e, n)?.combinesWith?.includes(t) ?? !0), UK = (e, t) => {
28786
28787
  let n = t ? e.lead : void 0;
28787
28788
  if (!n) return e;
28788
28789
  let r = new Set(n.blocks?.map((e) => e.type));
@@ -28790,30 +28791,30 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28790
28791
  ...e,
28791
28792
  ...n,
28792
28793
  blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
28793
- ...NK(e, t.type),
28794
+ ...RK(e, t.type),
28794
28795
  ...t
28795
28796
  }))]
28796
28797
  };
28797
- }, zK = (e, t) => {
28798
+ }, WK = (e, t) => {
28798
28799
  let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
28799
28800
  return {
28800
28801
  missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
28801
28802
  undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
28802
28803
  };
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 ? {
28804
+ }, GK = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", KK = (e) => typeof e == "object" && !!e, qK = (e) => KK(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, JK = (e, t, n = []) => {
28805
+ if (Array.isArray(e)) for (let r of e) JK(r, qK(r) ?? t, n);
28806
+ else if (KK(e)) {
28807
+ if (GK(e)) n.push(t ? {
28807
28808
  action: e,
28808
28809
  itemId: t
28809
28810
  } : { action: e });
28810
- else for (let r of Object.values(e)) UK(r, t, n);
28811
+ else for (let r of Object.values(e)) JK(r, t, n);
28811
28812
  }
28812
28813
  return n;
28813
- }, WK = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], GK = (e, t, n) => UK(e).flatMap(({ action: e, itemId: r }) => {
28814
+ }, YK = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], XK = (e, t, n) => JK(e).flatMap(({ action: e, itemId: r }) => {
28814
28815
  let i = t.find(({ id: t }) => t === e.id);
28815
28816
  if (!i) return [];
28816
- let a = zK(i, e.params);
28817
+ let a = WK(i, e.params);
28817
28818
  return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
28818
28819
  rule: "accessoryViewParams",
28819
28820
  viewId: i.id,
@@ -28822,39 +28823,39 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28822
28823
  ...r && r !== n.elementId ? { itemId: r } : {},
28823
28824
  ...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
28824
28825
  }];
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, {
28826
+ }), ZK = (e, t, n) => [...XK([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? XK(e, t, {
28826
28827
  elementId: e.id,
28827
28828
  accessoryViewId: n
28828
- }) : [])], qK = (e) => {
28829
+ }) : [])], QK = (e) => {
28829
28830
  let t = e.accessoryViews ?? [];
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
+ return YK([...e.sections.flatMap((e) => ZK(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => ZK(n, t, e.id)), ...XK(e.actions, t, { accessoryViewId: e.id })])]);
28832
+ }, $K = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
28832
28833
  rule: "sectionLink",
28833
28834
  ...t,
28834
28835
  ...i ? { itemId: i } : {},
28835
28836
  targetSectionId: r.sectionId
28836
- }), !1), YK = (e, t) => {
28837
+ }), !1), eq = (e, t) => {
28837
28838
  if (t(e.action, e.id)) return e;
28838
28839
  let { action: n, ...r } = e;
28839
28840
  return r;
28840
- }, XK = (e, t) => {
28841
+ }, tq = (e, t) => {
28841
28842
  switch (e.type) {
28842
28843
  case "stats": return {
28843
28844
  ...e,
28844
- stats: e.stats.map((e) => YK(e, t))
28845
+ stats: e.stats.map((e) => eq(e, t))
28845
28846
  };
28846
28847
  case "charts": return {
28847
28848
  ...e,
28848
- charts: e.charts.map((e) => YK(e, t))
28849
+ charts: e.charts.map((e) => eq(e, t))
28849
28850
  };
28850
28851
  case "events": return {
28851
28852
  ...e,
28852
- events: e.events.map((e) => YK(e, t))
28853
+ events: e.events.map((e) => eq(e, t))
28853
28854
  };
28854
28855
  case "list": return {
28855
28856
  ...e,
28856
28857
  rows: e.rows.map((e) => ({
28857
- ...YK(e, t),
28858
+ ...eq(e, t),
28858
28859
  actions: e.actions?.filter((n) => t(n.action, e.id))
28859
28860
  }))
28860
28861
  };
@@ -28866,24 +28867,24 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28866
28867
  case "posts":
28867
28868
  case "text": return e;
28868
28869
  }
28869
- }, ZK = (e, t, n, r) => XK(e, JK(t, n, r)), QK = (e, t) => {
28870
+ }, nq = (e, t, n, r) => tq(e, $K(t, n, r)), rq = (e, t) => {
28870
28871
  let n = new Set(e.map((e) => e.id));
28871
28872
  return e.map((e) => {
28872
- let r = JK(n, { sectionId: e.id }, t);
28873
+ let r = $K(n, { sectionId: e.id }, t);
28873
28874
  return {
28874
28875
  ...e,
28875
28876
  actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
28876
28877
  followUps: e.followUps?.filter((e) => r(e.action)),
28877
- elements: e.elements.map((r) => r.type === "shortcuts" ? XK(r, JK(n, {
28878
+ elements: e.elements.map((r) => r.type === "shortcuts" ? tq(r, $K(n, {
28878
28879
  sectionId: e.id,
28879
28880
  elementId: r.id
28880
28881
  }, t)) : r)
28881
28882
  };
28882
28883
  });
28883
- }, $K = (e) => e.widget ? "widget" : e.block.type, eq = (e, t) => $K(t) === e.type, tq = (e, t, n) => {
28884
+ }, iq = (e) => e.widget ? "widget" : e.block.type, aq = (e, t) => iq(t) === e.type, oq = (e, t, n) => {
28884
28885
  let r = /* @__PURE__ */ new Map();
28885
28886
  e.sections.forEach((e, n) => {
28886
- let i = RK(t, n === 0);
28887
+ let i = UK(t, n === 0);
28887
28888
  for (let t of e.elements) r.set(t.id, {
28888
28889
  element: t,
28889
28890
  rules: i,
@@ -28903,23 +28904,23 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28903
28904
  });
28904
28905
  }
28905
28906
  return r;
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
+ }, sq = (e, t, n, r = []) => {
28908
+ let i = new Set(t.sections.map((e) => e.id)), a = oq(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
28908
28909
  let n = a.get(e);
28909
28910
  if (!n || t.status !== "ready") return [e, t];
28910
28911
  let r = [], s = t;
28911
- if (!eq(n.element, t)) r.push({
28912
+ if (!aq(n.element, t)) r.push({
28912
28913
  rule: "sourceType",
28913
28914
  elementId: e,
28914
28915
  expected: n.element.type,
28915
- received: $K(t)
28916
+ received: iq(t)
28916
28917
  });
28917
28918
  else if (t.block) {
28918
28919
  let a = {
28919
28920
  sectionId: n.sectionId,
28920
28921
  elementId: e
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
+ }, o = nq(BK(t.block, e, n.rules, r), i, a, r);
28923
+ NK(o, RK(n.rules, o.type), a, r), s = {
28923
28924
  ...t,
28924
28925
  block: o
28925
28926
  };
@@ -28930,25 +28931,25 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28930
28931
  } : e)), [e, s];
28931
28932
  }), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
28932
28933
  let n = a.get(e);
28933
- return n && t.status === "ready" && t.block ? GK(t.block, c, {
28934
+ return n && t.status === "ready" && t.block ? XK(t.block, c, {
28934
28935
  elementId: e,
28935
28936
  accessoryViewId: n.accessoryViewId
28936
28937
  }) : [];
28937
28938
  });
28938
28939
  return {
28939
28940
  sources: Object.fromEntries(s),
28940
- violations: [...o, ...WK(l)]
28941
+ violations: [...o, ...YK(l)]
28941
28942
  };
28942
- }, rq = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
28943
+ }, cq = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
28943
28944
  "data-agentic-card": "",
28944
28945
  className: B("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
28945
28946
  children: t
28946
- }), iq = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", aq = ({ label: e, press: t }) => {
28947
+ }), lq = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", uq = ({ label: e, press: t }) => {
28947
28948
  if (!t) return /* @__PURE__ */ Q(Tl, {
28948
28949
  variant: "label",
28949
28950
  content: e
28950
28951
  });
28951
- let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", iq, Dn());
28952
+ let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", lq, Dn());
28952
28953
  return t.href ? /* @__PURE__ */ Q(Un, {
28953
28954
  href: t.href,
28954
28955
  onClick: t.onClick,
@@ -28964,9 +28965,9 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28964
28965
  className: B("cursor-pointer", n),
28965
28966
  children: e
28966
28967
  });
28967
- }, oq = (e) => {
28968
+ }, dq = (e) => {
28968
28969
  if (!e) return;
28969
- let t = sq(e.type === "percent" ? {
28970
+ let t = fq(e.type === "percent" ? {
28970
28971
  style: "percent",
28971
28972
  maximumFractionDigits: 1
28972
28973
  } : e.type === "compact" ? {
@@ -28977,27 +28978,27 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28977
28978
  currency: e.currency
28978
28979
  } : {});
28979
28980
  return (e) => t.format(e);
28980
- }, sq = (e) => {
28981
+ }, fq = (e) => {
28981
28982
  try {
28982
28983
  return new Intl.NumberFormat(void 0, e);
28983
28984
  } catch {
28984
28985
  return new Intl.NumberFormat();
28985
28986
  }
28986
- }, cq = ({ spec: e, label: t, format: n }) => {
28987
- let r = oq(n);
28987
+ }, pq = ({ spec: e, label: t, format: n }) => {
28988
+ let r = dq(n);
28988
28989
  return /* @__PURE__ */ Q(Ze, {
28989
28990
  ...e,
28990
28991
  ariaLabel: t,
28991
28992
  valueFormatter: r
28992
28993
  });
28993
- }, lq = ({ chart: e, press: t }) => /* @__PURE__ */ $(ws, {
28994
+ }, mq = ({ chart: e, press: t }) => /* @__PURE__ */ $(ws, {
28994
28995
  display: "flex",
28995
28996
  flexDirection: "column",
28996
28997
  gap: "md",
28997
28998
  children: [/* @__PURE__ */ $(ws, {
28998
28999
  display: "flex",
28999
29000
  flexDirection: "column",
29000
- children: [/* @__PURE__ */ Q(aq, {
29001
+ children: [/* @__PURE__ */ Q(uq, {
29001
29002
  label: e.label,
29002
29003
  press: t
29003
29004
  }), e.caption ? /* @__PURE__ */ Q(Tl, {
@@ -29006,24 +29007,24 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29006
29007
  }) : null]
29007
29008
  }), /* @__PURE__ */ Q("div", {
29008
29009
  className: "h-48 w-full",
29009
- children: /* @__PURE__ */ Q(cq, {
29010
+ children: /* @__PURE__ */ Q(pq, {
29010
29011
  spec: e.chart,
29011
29012
  label: e.label,
29012
29013
  format: e.format
29013
29014
  })
29014
29015
  })]
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) => {
29016
+ }), hq = 300, gq = 7, _q = 14, vq = 5, yq = 18, bq = 3, xq = (e) => Math.max(0, ...e.map((e) => e.length)), Sq = (e) => {
29016
29017
  if (e.type === "pie") {
29017
29018
  let t = e.series.data.map((e) => e.name);
29018
- return t.length > pq || gq(t) > mq;
29019
+ return t.length > vq || xq(t) > yq;
29019
29020
  }
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) => {
29021
+ if (e.series.length > bq) return !0;
29022
+ if (e.type === "bar" && e.orientation === "horizontal") return xq(e.categories) > _q;
29023
+ let t = hq / Math.max(1, e.categories.length);
29024
+ return xq(e.categories) * gq > t;
29025
+ }, Cq = (e) => {
29025
29026
  if (e.length === 1) return ["full"];
29026
- let t = e.map((e) => _q(e.chart) ? "full" : "half"), n = 0;
29027
+ let t = e.map((e) => Sq(e.chart) ? "full" : "half"), n = 0;
29027
29028
  return t.forEach((e, r) => {
29028
29029
  if (e === "half" && (n += 1), (e === "full" || r === t.length - 1) && n % 2 == 1) {
29029
29030
  let n = e === "half" ? r : r - 1;
@@ -29031,42 +29032,42 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29031
29032
  }
29032
29033
  e === "full" && (n = 0);
29033
29034
  }), t;
29034
- }, yq = "agentic-chart", bq = { [yq]: (e) => /* @__PURE__ */ Q(lq, { ...e }) }, xq = ({ charts: e, elementId: t, onAction: n }) => {
29035
- let r = vq(e);
29035
+ }, wq = "agentic-chart", Tq = { [wq]: (e) => /* @__PURE__ */ Q(mq, { ...e }) }, Eq = ({ charts: e, elementId: t, onAction: n }) => {
29036
+ let r = Cq(e);
29036
29037
  return /* @__PURE__ */ Q("div", {
29037
29038
  className: "grid w-full max-w-content grid-cols-1 gap-4 sm:grid-cols-2",
29038
29039
  children: e.map((e, i) => {
29039
- let a = e.action ? yK(e.action, {
29040
+ let a = e.action ? wK(e.action, {
29040
29041
  elementId: t,
29041
29042
  itemId: e.id
29042
29043
  }, n) : void 0;
29043
29044
  return /* @__PURE__ */ Q("div", {
29044
29045
  "data-chart-span": r[i],
29045
29046
  className: r[i] === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
29046
- children: /* @__PURE__ */ Q(rq, {
29047
+ children: /* @__PURE__ */ Q(cq, {
29047
29048
  press: a,
29048
- children: /* @__PURE__ */ Q(xK, {
29049
+ children: /* @__PURE__ */ Q(EK, {
29049
29050
  fullHeight: !0,
29050
29051
  slots: [{
29051
- visualization: yq,
29052
+ visualization: wq,
29052
29053
  params: {
29053
29054
  chart: e,
29054
29055
  press: a
29055
29056
  }
29056
29057
  }],
29057
- slotRenderers: bq
29058
+ slotRenderers: Tq
29058
29059
  })
29059
29060
  })
29060
29061
  }, e.id);
29061
29062
  })
29062
29063
  });
29063
- }, Sq = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29064
+ }, Dq = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29064
29065
  display: "flex",
29065
29066
  flexDirection: "column",
29066
29067
  gap: "md",
29067
- children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(xK, { slots: [CW("event-list", { events: [{
29068
+ children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(EK, { slots: [OW("event-list", { events: [{
29068
29069
  ...s,
29069
- ...o ? yK(o, {
29070
+ ...o ? wK(o, {
29070
29071
  elementId: t,
29071
29072
  itemId: e
29072
29073
  }, n) : {},
@@ -29075,22 +29076,22 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29075
29076
  fromDate: r ? new Date(r) : void 0,
29076
29077
  toDate: i ? new Date(i) : void 0
29077
29078
  }] })] }, e))
29078
- }), Cq = ({ action: e, rows: t, ...n }, r, i) => ({
29079
+ }), Oq = ({ action: e, rows: t, ...n }, r, i) => ({
29079
29080
  ...n,
29080
- href: DG(n.href),
29081
+ href: MG(n.href),
29081
29082
  ...e ? {
29082
29083
  href: void 0,
29083
- ...yK(e, {
29084
+ ...wK(e, {
29084
29085
  elementId: r,
29085
29086
  itemId: n.id
29086
29087
  }, i)
29087
29088
  } : {},
29088
- avatar: n.avatar && vK(n.avatar),
29089
- rightAvatar: n.rightAvatar && vK(n.rightAvatar),
29090
- avatars: n.avatars?.map(vK),
29089
+ avatar: n.avatar && CK(n.avatar),
29090
+ rightAvatar: n.rightAvatar && CK(n.rightAvatar),
29091
+ avatars: n.avatars?.map(CK),
29091
29092
  actions: n.actions?.map((e) => ({
29092
29093
  label: e.label,
29093
- icon: _K(e.icon),
29094
+ icon: SK(e.icon),
29094
29095
  critical: e.critical,
29095
29096
  showLabel: e.showLabel,
29096
29097
  onClick: () => i(e.action, {
@@ -29098,19 +29099,19 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29098
29099
  itemId: n.id
29099
29100
  })
29100
29101
  }))
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") ? {
29102
+ }), kq = (e, t, n) => ({
29103
+ ...Oq(e, t, n),
29104
+ items: e.rows?.map((e) => Oq(e, t, n))
29105
+ }), Aq = (e) => e.rows.flatMap((e) => [e, ...e.rows ?? []]).some(({ action: e }) => e?.type === "navigate") ? {
29105
29106
  ...e.schema,
29106
29107
  clickBehavior: "link"
29107
- } : e.schema, Eq = (e, t, n) => [{
29108
+ } : e.schema, jq = (e, t, n) => [{
29108
29109
  visualization: "list",
29109
29110
  params: {
29110
- schema: Tq(e),
29111
- items: e.rows.map((e) => wq(e, t, n))
29111
+ schema: Aq(e),
29112
+ items: e.rows.map((e) => kq(e, t, n))
29112
29113
  }
29113
- }], Dq = ({ className: e, children: t }) => {
29114
+ }], Mq = ({ className: e, children: t }) => {
29114
29115
  let n = Y(null), r = qt(n);
29115
29116
  return /* @__PURE__ */ Q("div", {
29116
29117
  ref: n,
@@ -29120,26 +29121,32 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29120
29121
  children: t
29121
29122
  })
29122
29123
  });
29123
- }, Oq = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(ws, {
29124
+ }, Nq = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(ws, {
29124
29125
  display: "flex",
29125
29126
  flexDirection: "column",
29126
29127
  gap: "md",
29127
29128
  paddingTop: "lg",
29128
29129
  children: [e.title ? /* @__PURE__ */ Q("h3", {
29129
- className: "m-0 text-lg font-normal text-f1-foreground-secondary",
29130
+ className: "m-0 text-sm font-semibold uppercase leading-4 tracking-[0.6px] text-f1-foreground-secondary",
29130
29131
  children: e.title
29131
- }) : null, /* @__PURE__ */ Q(Dq, {
29132
- className: "text-lg [&_[data-list-row]]:gap-4",
29133
- children: /* @__PURE__ */ Q(pG, { slots: Eq(e, t, n) })
29132
+ }) : null, /* @__PURE__ */ Q(Mq, {
29133
+ className: B(sW, "p-2 text-base", cW),
29134
+ children: /* @__PURE__ */ Q(uW, {
29135
+ value: !0,
29136
+ children: /* @__PURE__ */ Q(vG, {
29137
+ headless: !0,
29138
+ slots: jq(e, t, n)
29139
+ })
29140
+ })
29134
29141
  })]
29135
- }), kq = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(Oq, {
29142
+ }), Pq = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(Nq, {
29136
29143
  content: e,
29137
29144
  elementId: t,
29138
29145
  onAction: n
29139
- }) : /* @__PURE__ */ Q(xK, {
29146
+ }) : /* @__PURE__ */ Q(EK, {
29140
29147
  title: e.title,
29141
- slots: Eq(e, t, n)
29142
- }), Aq = ({ posts: e }) => /* @__PURE__ */ Q(ws, {
29148
+ slots: jq(e, t, n)
29149
+ }), Fq = ({ posts: e }) => /* @__PURE__ */ Q(ws, {
29143
29150
  display: "flex",
29144
29151
  flexDirection: "column",
29145
29152
  gap: "md",
@@ -29147,11 +29154,11 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29147
29154
  variant: "row",
29148
29155
  post: {
29149
29156
  ...n,
29150
- href: DG(t),
29157
+ href: MG(t),
29151
29158
  createdAt: new Date(e)
29152
29159
  }
29153
29160
  }, n.id))
29154
- }), jq = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29161
+ }), Iq = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(ws, {
29155
29162
  display: "flex",
29156
29163
  flexWrap: "wrap",
29157
29164
  gap: "sm",
@@ -29159,27 +29166,27 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29159
29166
  variant: "neutral",
29160
29167
  size: "md",
29161
29168
  label: e.label,
29162
- icon: _K(e.icon),
29163
- ...yK(e.action, {
29169
+ icon: SK(e.icon),
29170
+ ...wK(e.action, {
29164
29171
  elementId: t,
29165
29172
  itemId: e.id
29166
29173
  }, n)
29167
29174
  }, e.id))
29168
- }), Mq = "agentic-stats", Nq = {
29175
+ }), Lq = "agentic-stats", Rq = {
29169
29176
  positive: "text-f1-foreground-positive",
29170
29177
  negative: "text-f1-foreground-critical",
29171
29178
  neutral: "text-f1-foreground-secondary"
29172
- }, Pq = (e, t, n) => ({
29173
- visualization: Mq,
29179
+ }, zq = (e, t, n) => ({
29180
+ visualization: Lq,
29174
29181
  params: { stats: e.map((e) => ({
29175
29182
  stat: e,
29176
- press: e.action ? yK(e.action, {
29183
+ press: e.action ? wK(e.action, {
29177
29184
  elementId: t,
29178
29185
  itemId: e.id
29179
29186
  }, n) : void 0
29180
29187
  })) }
29181
- }), Fq = ({ stat: e, press: t }) => {
29182
- let n = _K(e.icon);
29188
+ }), Bq = ({ stat: e, press: t }) => {
29189
+ let n = SK(e.icon);
29183
29190
  return /* @__PURE__ */ $(ws, {
29184
29191
  display: "flex",
29185
29192
  flexDirection: "column",
@@ -29203,7 +29210,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29203
29210
  children: [e.eyebrow ? /* @__PURE__ */ Q(Tl, {
29204
29211
  variant: "description",
29205
29212
  content: e.eyebrow
29206
- }) : null, /* @__PURE__ */ Q(aq, {
29213
+ }) : null, /* @__PURE__ */ Q(uq, {
29207
29214
  label: e.label,
29208
29215
  press: t
29209
29216
  })]
@@ -29223,7 +29230,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29223
29230
  className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
29224
29231
  }) : null, e.value]
29225
29232
  }), e.trend ? /* @__PURE__ */ Q("span", {
29226
- className: B("text-base font-medium", Nq[e.trend.tone ?? "neutral"]),
29233
+ className: B("text-base font-medium", Rq[e.trend.tone ?? "neutral"]),
29227
29234
  children: e.trend.text
29228
29235
  }) : null]
29229
29236
  }), e.caption ? /* @__PURE__ */ Q(Tl, {
@@ -29232,59 +29239,59 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29232
29239
  }) : null]
29233
29240
  })]
29234
29241
  });
29235
- }, Iq = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", Lq = (e, t) => {
29242
+ }, Vq = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", Hq = (e, t) => {
29236
29243
  let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
29237
29244
  return Math.ceil(Math.max(1, e) / r);
29238
- }, Rq = ({ stats: e }) => {
29245
+ }, Uq = ({ stats: e }) => {
29239
29246
  let t = Y(null), { width: n } = Wn({
29240
29247
  ref: t,
29241
29248
  box: "border-box"
29242
- }), r = Lq(e.length, n || 712);
29249
+ }), r = Hq(e.length, n || 712);
29243
29250
  return /* @__PURE__ */ Q("div", {
29244
29251
  ref: t,
29245
- className: B("-m-4", Iq),
29252
+ className: B("-m-4", Vq),
29246
29253
  children: /* @__PURE__ */ Q("div", {
29247
29254
  className: "-mb-px -mr-px flex flex-wrap",
29248
29255
  children: e.map(({ stat: e, press: t }) => /* @__PURE__ */ Q("div", {
29249
29256
  "data-agentic-card": "",
29250
29257
  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"),
29251
29258
  style: { flexBasis: `${100 / r}%` },
29252
- children: /* @__PURE__ */ Q(Fq, {
29259
+ children: /* @__PURE__ */ Q(Bq, {
29253
29260
  stat: e,
29254
29261
  press: t
29255
29262
  })
29256
29263
  }, e.id))
29257
29264
  })
29258
29265
  });
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) => {
29266
+ }, Wq = { [Lq]: (e) => /* @__PURE__ */ Q(Uq, { ...e }) }, Gq = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(EK, {
29267
+ slots: [zq(e, t, n)],
29268
+ slotRenderers: Wq
29269
+ }), Kq = er().use(Yn), qq = (e) => Kq.parse(e), Jq = (e) => e.value ?? e.alt ?? (e.children ?? []).map(Jq).join(""), Yq = (e) => (e ?? []).map((e, t) => Xq(e, t)), Xq = (e, t) => {
29263
29270
  switch (e.type) {
29264
- case "root": return Wq(e.children);
29271
+ case "root": return Yq(e.children);
29265
29272
  case "text": return e.value;
29266
29273
  case "paragraph": return /* @__PURE__ */ Q("p", {
29267
29274
  className: "m-0",
29268
- children: Wq(e.children)
29275
+ children: Yq(e.children)
29269
29276
  }, t);
29270
29277
  case "heading": return /* @__PURE__ */ Q(sn, {
29271
29278
  as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
29272
29279
  variant: "heading",
29273
- content: Uq(e)
29280
+ content: Jq(e)
29274
29281
  }, t);
29275
29282
  case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
29276
29283
  className: "m-0 flex list-decimal flex-col gap-1 pl-5",
29277
- children: Wq(e.children)
29284
+ children: Yq(e.children)
29278
29285
  }, t) : /* @__PURE__ */ Q("ul", {
29279
29286
  className: "m-0 flex list-disc flex-col gap-1 pl-5",
29280
- children: Wq(e.children)
29287
+ children: Yq(e.children)
29281
29288
  }, t);
29282
- case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? Wq(e.children) : Gq(e, t)) }, t);
29289
+ case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? Yq(e.children) : Xq(e, t)) }, t);
29283
29290
  case "strong": return /* @__PURE__ */ Q("strong", {
29284
29291
  className: "font-semibold",
29285
- children: Wq(e.children)
29292
+ children: Yq(e.children)
29286
29293
  }, t);
29287
- case "emphasis": return /* @__PURE__ */ Q("em", { children: Wq(e.children) }, t);
29294
+ case "emphasis": return /* @__PURE__ */ Q("em", { children: Yq(e.children) }, t);
29288
29295
  case "inlineCode": return /* @__PURE__ */ Q(Tl, {
29289
29296
  as: "code",
29290
29297
  variant: "code",
@@ -29300,69 +29307,69 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29300
29307
  content: e.value ?? ""
29301
29308
  })
29302
29309
  }, t);
29303
- case "link": return e.url && kG(e.url) ? /* @__PURE__ */ Q(Ka, {
29310
+ case "link": return e.url && PG(e.url) ? /* @__PURE__ */ Q(Ka, {
29304
29311
  href: e.url,
29305
- children: Uq(e)
29306
- }, t) : Uq(e);
29312
+ children: Jq(e)
29313
+ }, t) : Jq(e);
29307
29314
  case "break": return /* @__PURE__ */ Q("br", {}, t);
29308
- default: return Uq(e);
29315
+ default: return Jq(e);
29309
29316
  }
29310
- }, Kq = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
29317
+ }, Zq = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
29311
29318
  "data-agentic-text": !0,
29312
29319
  className: B("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
29313
- children: Gq(Hq(e), 0)
29314
- }), qq = ({ text: e, lead: t }) => /* @__PURE__ */ Q(Kq, {
29320
+ children: Xq(qq(e), 0)
29321
+ }), Qq = ({ text: e, lead: t }) => /* @__PURE__ */ Q(Zq, {
29315
29322
  text: e,
29316
29323
  lead: t
29317
- }), Jq = ({ items: e }) => /* @__PURE__ */ Q(fm, { items: e.map((e) => ({
29324
+ }), $q = ({ items: e }) => /* @__PURE__ */ Q(fm, { items: e.map((e) => ({
29318
29325
  id: e.id,
29319
29326
  status: e.status ?? "completed",
29320
- icon: _K(e.icon),
29327
+ icon: SK(e.icon),
29321
29328
  title: e.title,
29322
29329
  description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
29323
- })) }), Yq = "agentic-timeline", Xq = { [Yq]: (e) => /* @__PURE__ */ Q(Jq, { items: e.items }) }, Zq = ({ items: e }) => /* @__PURE__ */ Q(xK, {
29330
+ })) }), eJ = "agentic-timeline", tJ = { [eJ]: (e) => /* @__PURE__ */ Q($q, { items: e.items }) }, nJ = ({ items: e }) => /* @__PURE__ */ Q(EK, {
29324
29331
  slots: [{
29325
- visualization: Yq,
29332
+ visualization: eJ,
29326
29333
  params: { items: e }
29327
29334
  }],
29328
- slotRenderers: Xq
29329
- }), Qq = ({ block: e, elementId: t, onAction: n, lead: r }) => {
29335
+ slotRenderers: tJ
29336
+ }), rJ = ({ block: e, elementId: t, onAction: n, lead: r }) => {
29330
29337
  switch (e.type) {
29331
- case "stats": return /* @__PURE__ */ Q(Bq, {
29338
+ case "stats": return /* @__PURE__ */ Q(Gq, {
29332
29339
  stats: e.stats,
29333
29340
  elementId: t,
29334
29341
  onAction: n
29335
29342
  });
29336
- case "list": return /* @__PURE__ */ Q(kq, {
29343
+ case "list": return /* @__PURE__ */ Q(Pq, {
29337
29344
  content: e,
29338
29345
  elementId: t,
29339
29346
  onAction: n
29340
29347
  });
29341
- case "timeline": return /* @__PURE__ */ Q(Zq, { items: e.items });
29342
- case "events": return /* @__PURE__ */ Q(Sq, {
29348
+ case "timeline": return /* @__PURE__ */ Q(nJ, { items: e.items });
29349
+ case "events": return /* @__PURE__ */ Q(Dq, {
29343
29350
  events: e.events,
29344
29351
  elementId: t,
29345
29352
  onAction: n
29346
29353
  });
29347
- case "posts": return /* @__PURE__ */ Q(Aq, { posts: e.posts });
29348
- case "shortcuts": return /* @__PURE__ */ Q(jq, {
29354
+ case "posts": return /* @__PURE__ */ Q(Fq, { posts: e.posts });
29355
+ case "shortcuts": return /* @__PURE__ */ Q(Iq, {
29349
29356
  shortcuts: e.shortcuts,
29350
29357
  elementId: t,
29351
29358
  onAction: n
29352
29359
  });
29353
- case "text": return /* @__PURE__ */ Q(qq, {
29360
+ case "text": return /* @__PURE__ */ Q(Qq, {
29354
29361
  text: e.text,
29355
29362
  lead: r
29356
29363
  });
29357
- case "charts": return /* @__PURE__ */ Q(xq, {
29364
+ case "charts": return /* @__PURE__ */ Q(Eq, {
29358
29365
  charts: e.charts,
29359
29366
  elementId: t,
29360
29367
  onAction: n
29361
29368
  });
29362
29369
  }
29363
- }, $q = (e) => e % 2 == 1 && e !== 3 || e > 4, eJ = ({ cards: e }) => {
29370
+ }, iJ = (e) => e % 2 == 1 && e !== 3 || e > 4, aJ = ({ cards: e }) => {
29364
29371
  let t = R();
29365
- return $q(e.length) ? /* @__PURE__ */ Q(Lt, {
29372
+ return iJ(e.length) ? /* @__PURE__ */ Q(Lt, {
29366
29373
  columns: {
29367
29374
  default: 2,
29368
29375
  xs: 2,
@@ -29387,14 +29394,14 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29387
29394
  md: { columns: e.length === 3 ? "3" : "2" },
29388
29395
  children: e
29389
29396
  });
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, {
29397
+ }, oJ = ({ className: e }) => /* @__PURE__ */ Q(z, { className: B("rounded-2xs motion-reduce:animate-none", e) }), sJ = "agentic-skeleton", cJ = { [sJ]: (e) => e.content }, lJ = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(EK, {
29391
29398
  fullHeight: t,
29392
29399
  slots: [{
29393
- visualization: nJ,
29400
+ visualization: sJ,
29394
29401
  params: { content: e }
29395
29402
  }],
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, {
29403
+ slotRenderers: cJ
29404
+ }), uJ = (e) => Array.from({ length: e }, (e, t) => t), dJ = ({ count: e }) => /* @__PURE__ */ Q(aJ, { cards: uJ(e).map((e) => /* @__PURE__ */ Q(cq, { children: /* @__PURE__ */ Q(lJ, {
29398
29405
  fullHeight: !0,
29399
29406
  children: /* @__PURE__ */ $(ws, {
29400
29407
  display: "flex",
@@ -29404,50 +29411,50 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29404
29411
  display: "flex",
29405
29412
  flexDirection: "column",
29406
29413
  gap: "xs",
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" })]
29414
+ children: [/* @__PURE__ */ Q(oJ, { className: "h-4 w-32" }), /* @__PURE__ */ Q(oJ, { className: "h-3 w-24" })]
29415
+ }), /* @__PURE__ */ Q(oJ, { className: "h-48 w-full rounded-md" })]
29409
29416
  })
29410
- }) }, e)) }), sJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29417
+ }) }, e)) }), fJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29411
29418
  display: "flex",
29412
29419
  flexDirection: "column",
29413
29420
  gap: "md",
29414
- children: aJ(e).map((e) => /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ $(ws, {
29421
+ children: uJ(e).map((e) => /* @__PURE__ */ Q(lJ, { children: /* @__PURE__ */ $(ws, {
29415
29422
  display: "flex",
29416
29423
  alignItems: "center",
29417
29424
  gap: "md",
29418
- children: [/* @__PURE__ */ Q(tJ, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(ws, {
29425
+ children: [/* @__PURE__ */ Q(oJ, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(ws, {
29419
29426
  display: "flex",
29420
29427
  flexDirection: "column",
29421
29428
  gap: "xs",
29422
29429
  grow: !0,
29423
- children: [/* @__PURE__ */ Q(tJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(tJ, { className: "h-3 w-2/3" })]
29430
+ children: [/* @__PURE__ */ Q(oJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(oJ, { className: "h-3 w-2/3" })]
29424
29431
  })]
29425
29432
  }) }, e))
29426
- }), cJ = ({ count: e, schema: t }) => {
29433
+ }), pJ = ({ count: e, schema: t }) => {
29427
29434
  let n = !!(t?.descriptionRequired || t?.descriptionOptional), r = t?.left;
29428
- return /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ Q(ws, {
29435
+ return /* @__PURE__ */ Q(lJ, { children: /* @__PURE__ */ Q(ws, {
29429
29436
  display: "flex",
29430
29437
  flexDirection: "column",
29431
29438
  gap: "md",
29432
- children: aJ(e).map((e) => /* @__PURE__ */ $(ws, {
29439
+ children: uJ(e).map((e) => /* @__PURE__ */ $(ws, {
29433
29440
  display: "flex",
29434
29441
  alignItems: "center",
29435
29442
  gap: "md",
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, {
29443
+ children: [r ? /* @__PURE__ */ Q(oJ, { className: B("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(ws, {
29437
29444
  display: "flex",
29438
29445
  flexDirection: "column",
29439
29446
  gap: "xs",
29440
29447
  grow: !0,
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]
29448
+ children: [/* @__PURE__ */ Q(oJ, { className: B("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(oJ, { className: "h-3 w-1/3" }) : null]
29442
29449
  })]
29443
29450
  }, e))
29444
29451
  }) });
29445
- }, lJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29452
+ }, mJ = ({ count: e }) => /* @__PURE__ */ Q(ws, {
29446
29453
  display: "flex",
29447
29454
  flexDirection: "column",
29448
29455
  gap: "md",
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, {
29456
+ children: uJ(e).map((e) => /* @__PURE__ */ Q(ng, { variant: "row" }, e))
29457
+ }), hJ = ({ count: e }) => /* @__PURE__ */ Q(aJ, { cards: uJ(e).map((e) => /* @__PURE__ */ Q(cq, { children: /* @__PURE__ */ Q(lJ, {
29451
29458
  fullHeight: !0,
29452
29459
  children: /* @__PURE__ */ $(ws, {
29453
29460
  display: "flex",
@@ -29457,53 +29464,53 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29457
29464
  display: "flex",
29458
29465
  alignItems: "center",
29459
29466
  gap: "md",
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" })]
29467
+ children: [/* @__PURE__ */ Q(oJ, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(oJ, { className: "h-4 w-24" })]
29468
+ }), /* @__PURE__ */ Q(oJ, { className: "h-7 w-20" })]
29462
29469
  })
29463
- }) }, e)) }), dJ = ({ count: e }) => /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ Q(ws, {
29470
+ }) }, e)) }), gJ = ({ count: e }) => /* @__PURE__ */ Q(lJ, { children: /* @__PURE__ */ Q(ws, {
29464
29471
  display: "flex",
29465
29472
  flexDirection: "column",
29466
- children: aJ(e).map((t) => /* @__PURE__ */ $(ws, {
29473
+ children: uJ(e).map((t) => /* @__PURE__ */ $(ws, {
29467
29474
  display: "flex",
29468
29475
  gap: "md",
29469
29476
  children: [/* @__PURE__ */ $(ws, {
29470
29477
  display: "flex",
29471
29478
  flexDirection: "column",
29472
29479
  alignItems: "center",
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]
29480
+ children: [/* @__PURE__ */ Q(oJ, { 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]
29474
29481
  }), /* @__PURE__ */ $(ws, {
29475
29482
  display: "flex",
29476
29483
  flexDirection: "column",
29477
29484
  gap: "xs",
29478
29485
  grow: !0,
29479
29486
  paddingBottom: t < e - 1 ? "md" : void 0,
29480
- children: [/* @__PURE__ */ Q(tJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(tJ, { className: "h-3 w-1/3" })]
29487
+ children: [/* @__PURE__ */ Q(oJ, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(oJ, { className: "h-3 w-1/3" })]
29481
29488
  })]
29482
29489
  }, t))
29483
- }) }), fJ = ({ count: e }) => /* @__PURE__ */ Q(iJ, { children: /* @__PURE__ */ Q(ws, {
29490
+ }) }), _J = ({ count: e }) => /* @__PURE__ */ Q(lJ, { children: /* @__PURE__ */ Q(ws, {
29484
29491
  display: "flex",
29485
29492
  flexDirection: "column",
29486
29493
  gap: "md",
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) => {
29494
+ children: uJ(e).map((e) => /* @__PURE__ */ Q(oJ, { className: B("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
29495
+ }) }), vJ = (e, t) => {
29489
29496
  switch (e.type) {
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, {
29497
+ case "stats": return /* @__PURE__ */ Q(hJ, { count: t });
29498
+ case "charts": return /* @__PURE__ */ Q(dJ, { count: t });
29499
+ case "list": return /* @__PURE__ */ Q(pJ, {
29493
29500
  count: t,
29494
29501
  schema: e.display?.schema
29495
29502
  });
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 });
29503
+ case "timeline": return /* @__PURE__ */ Q(gJ, { count: t });
29504
+ case "events": return /* @__PURE__ */ Q(fJ, { count: t });
29505
+ case "posts": return /* @__PURE__ */ Q(mJ, { count: t });
29506
+ case "widget": return /* @__PURE__ */ Q(_J, { count: t });
29500
29507
  }
29501
- }, mJ = ({ element: e }) => /* @__PURE__ */ Q("div", {
29508
+ }, yJ = ({ element: e }) => /* @__PURE__ */ Q("div", {
29502
29509
  "aria-busy": "true",
29503
29510
  "aria-live": "polite",
29504
29511
  "data-agentic-skeleton": e.type,
29505
- children: pJ(e, AK(e))
29506
- }), hJ = (e) => {
29512
+ children: vJ(e, FK(e))
29513
+ }), bJ = (e) => {
29507
29514
  switch (e.type) {
29508
29515
  case "stats": return e.stats.length === 0;
29509
29516
  case "charts": return e.charts.length === 0;
@@ -29512,7 +29519,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29512
29519
  case "events": return e.events.length === 0;
29513
29520
  case "posts": return e.posts.length === 0;
29514
29521
  }
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) => {
29522
+ }, xJ = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && aq(e, t) && bJ(t.block), SJ = (e, t) => {
29516
29523
  let n = {
29517
29524
  ...t,
29518
29525
  empty: e.display?.empty ?? t.empty
@@ -29531,67 +29538,67 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29531
29538
  format: r
29532
29539
  }))
29533
29540
  } : n;
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();
29536
- return t ? /* @__PURE__ */ Q(pG, {
29541
+ }, CJ = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && aq(e, t) ? SJ(e, t.block) : void 0, wJ = Su(void 0), TJ = wJ.Provider, EJ = () => Du(wJ), DJ = ({ widget: e, bare: t = !1 }) => {
29542
+ let n = EJ();
29543
+ return t ? /* @__PURE__ */ Q(vG, {
29537
29544
  headless: !0,
29538
29545
  slots: e.slots,
29539
29546
  loading: e.loading,
29540
29547
  slotRenderers: n
29541
- }) : /* @__PURE__ */ Q(mG, {
29542
- ...AW(e),
29548
+ }) : /* @__PURE__ */ Q(yG, {
29549
+ ...FW(e),
29543
29550
  headless: !0,
29544
29551
  params: e.params,
29545
29552
  slots: e.slots,
29546
29553
  loading: e.loading,
29547
29554
  slotRenderers: n
29548
29555
  });
29549
- }, CJ = ({ element: e, state: t, onAction: n, lead: r }) => {
29550
- if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(Qq, {
29556
+ }, OJ = ({ element: e, state: t, onAction: n, lead: r }) => {
29557
+ if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(rJ, {
29551
29558
  block: e,
29552
29559
  elementId: e.id,
29553
29560
  onAction: n,
29554
29561
  lead: r
29555
29562
  });
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, {
29563
+ if (!t || t.status === "loading") return /* @__PURE__ */ Q(yJ, { element: e });
29564
+ if (t.status === "error") return /* @__PURE__ */ Q(jK, { message: t.message });
29565
+ if (!aq(e, t)) return /* @__PURE__ */ Q(jK, {});
29566
+ if (t.widget) return /* @__PURE__ */ Q(DJ, {
29560
29567
  widget: t.widget,
29561
29568
  bare: t.bare
29562
29569
  });
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, {
29570
+ if (e.type === "widget") return /* @__PURE__ */ Q(jK, {});
29571
+ let i = SJ(e, t.block);
29572
+ return bJ(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(AK, {
29566
29573
  empty: i.empty,
29567
29574
  elementId: e.id,
29568
29575
  onAction: n
29569
- }) : /* @__PURE__ */ Q(Qq, {
29576
+ }) : /* @__PURE__ */ Q(rJ, {
29570
29577
  block: i,
29571
29578
  elementId: e.id,
29572
29579
  onAction: n
29573
29580
  });
29574
- }, wJ = "agentic-list-stack", TJ = ({ title: e }) => /* @__PURE__ */ Q(ws, {
29581
+ }, kJ = "agentic-list-stack", AJ = ({ title: e }) => /* @__PURE__ */ Q(ws, {
29575
29582
  paddingY: "sm",
29576
29583
  children: /* @__PURE__ */ Q(Tl, {
29577
29584
  variant: "description",
29578
29585
  content: e
29579
29586
  })
29580
- }), EJ = {
29581
- ...eG,
29582
- ...zq
29583
- }, DJ = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
29587
+ }), jJ = {
29588
+ ...aG,
29589
+ ...Wq
29590
+ }, MJ = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
29584
29591
  className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
29585
29592
  children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
29586
29593
  className: B("px-4", n.visualization === "agentic-stats" ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
29587
- children: [r ? /* @__PURE__ */ Q(TJ, { title: r }) : null, bW(EJ[n.visualization])?.render(n.params, {
29594
+ children: [r ? /* @__PURE__ */ Q(AJ, { title: r }) : null, TW(jJ[n.visualization])?.render(n.params, {
29588
29595
  ...t,
29589
29596
  isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
29590
29597
  isLastSlot: t.isLastSlot && i === e.length - 1
29591
29598
  })]
29592
29599
  }, i))
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) ? {
29600
+ }), NJ = (e) => e.type === "list" && !e.bare || e.type === "stats", PJ = (e, t) => e.reduce((e, n) => {
29601
+ let r = CJ(n, t?.[n.id]), i = r && NJ(r) && !bJ(r) ? {
29595
29602
  elementId: n.id,
29596
29603
  block: r
29597
29604
  } : void 0, a = e.at(-1);
@@ -29603,32 +29610,32 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29603
29610
  element: n,
29604
29611
  member: i
29605
29612
  }), e;
29606
- }, []), AJ = ({ elementId: e, block: t }, n, r) => {
29607
- if (t.type === "stats") return [{ slot: Pq(t.stats, e, r) }];
29613
+ }, []), FJ = ({ elementId: e, block: t }, n, r) => {
29614
+ if (t.type === "stats") return [{ slot: zq(t.stats, e, r) }];
29608
29615
  let i = n > 0 ? t.title : void 0;
29609
- return Eq(t, e, r).map((e, t) => ({
29616
+ return jq(t, e, r).map((e, t) => ({
29610
29617
  slot: e,
29611
29618
  header: t === 0 ? i : void 0
29612
29619
  }));
29613
- }, jJ = { [wJ]: (e, t) => /* @__PURE__ */ Q(DJ, {
29620
+ }, IJ = { [kJ]: (e, t) => /* @__PURE__ */ Q(MJ, {
29614
29621
  entries: e,
29615
29622
  ctx: t
29616
- }) }, MJ = ({ members: e, onAction: t }) => {
29623
+ }) }, LJ = ({ members: e, onAction: t }) => {
29617
29624
  let n = e[0]?.block;
29618
- return /* @__PURE__ */ Q(xK, {
29625
+ return /* @__PURE__ */ Q(EK, {
29619
29626
  title: n?.type === "list" ? n.title : void 0,
29620
29627
  slots: [{
29621
- visualization: wJ,
29622
- params: e.flatMap((e, n) => AJ(e, n, t))
29628
+ visualization: kJ,
29629
+ params: e.flatMap((e, n) => FJ(e, n, t))
29623
29630
  }],
29624
- slotRenderers: jJ
29631
+ slotRenderers: IJ
29625
29632
  });
29626
- }, NJ = ({ items: e, onAction: t }) => {
29633
+ }, RJ = ({ items: e, onAction: t }) => {
29627
29634
  let n = R();
29628
29635
  return /* @__PURE__ */ Q($a, {
29629
29636
  items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
29630
29637
  label: e.label,
29631
- icon: _K(e.icon),
29638
+ icon: SK(e.icon),
29632
29639
  critical: e.critical,
29633
29640
  onClick: () => t(e.action, {})
29634
29641
  }),
@@ -29640,12 +29647,12 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29640
29647
  label: n.actions.more
29641
29648
  })
29642
29649
  });
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", {
29650
+ }, zJ = Su(void 0), BJ = zJ.Provider, VJ = () => Du(zJ), HJ = /\*\*(.+?)\*\*/g, UJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(HJ).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
29644
29651
  className: "font-medium",
29645
29652
  children: e
29646
- }, t) : e) }), zJ = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, BJ = (e) => {
29653
+ }, t) : e) }), WJ = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, GJ = (e) => {
29647
29654
  let t = [], n = 0;
29648
- for (let r of e.matchAll(zJ)) {
29655
+ for (let r of e.matchAll(WJ)) {
29649
29656
  let [i, a, o, s] = r, c = r.index ?? 0;
29650
29657
  c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
29651
29658
  type: o,
@@ -29654,48 +29661,48 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29654
29661
  } }), n = c + i.length;
29655
29662
  }
29656
29663
  return n < e.length && t.push({ text: e.slice(n) }), t;
29657
- }, VJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: AG(e).map((e, t) => /* @__PURE__ */ Q(yu, { children: "href" in e ? /* @__PURE__ */ Q(Ka, {
29664
+ }, KJ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: FG(e).map((e, t) => /* @__PURE__ */ Q(yu, { children: "href" in e ? /* @__PURE__ */ Q(Ka, {
29658
29665
  href: e.href,
29659
29666
  children: e.label
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) => {
29667
+ }) : /* @__PURE__ */ Q(UJ, { text: e.text }) }, t)) }), qJ = ({ text: e }) => {
29668
+ let t = VJ();
29669
+ return /* @__PURE__ */ Q(Z, { children: GJ(e).map((e, n) => /* @__PURE__ */ Q(yu, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(KJ, { text: e.text }) }, n)) });
29670
+ }, JJ = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(qJ, { text: e }) }, t)) }), YJ = /^\d+\.\s+/, XJ = /^[-*]\s+/, ZJ = (e) => YJ.test(e) ? "ol" : XJ.test(e) ? "ul" : "p", QJ = (e, t) => {
29664
29671
  let n = e.at(-1);
29665
29672
  t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
29666
29673
  kind: "p",
29667
29674
  text: t
29668
29675
  });
29669
- }, JJ = (e, t, n) => {
29670
- let r = e.at(-1), i = n.replace(t === "ol" ? WJ : GJ, "");
29676
+ }, $J = (e, t, n) => {
29677
+ let r = e.at(-1), i = n.replace(t === "ol" ? YJ : XJ, "");
29671
29678
  r?.kind === t ? r.items.push(i) : e.push({
29672
29679
  kind: t,
29673
29680
  items: [i]
29674
29681
  });
29675
- }, YJ = (e) => {
29682
+ }, eY = (e) => {
29676
29683
  let t = [];
29677
29684
  for (let n of e.split("\n").map((e) => e.trim())) {
29678
- let e = KJ(n);
29679
- e === "p" ? qJ(t, n) : JJ(t, e, n);
29685
+ let e = ZJ(n);
29686
+ e === "p" ? QJ(t, n) : $J(t, e, n);
29680
29687
  }
29681
29688
  return t.filter((e) => e.kind !== "p" || e.text);
29682
- }, XJ = ({ text: e }) => /* @__PURE__ */ Q("div", {
29689
+ }, tY = ({ text: e }) => /* @__PURE__ */ Q("div", {
29683
29690
  className: "flex flex-col gap-2 text-lg text-f1-foreground",
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", {
29691
+ children: eY(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(qJ, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
29685
29692
  className: "m-0 list-decimal space-y-1 pl-5",
29686
- children: /* @__PURE__ */ Q(UJ, { items: e.items })
29693
+ children: /* @__PURE__ */ Q(JJ, { items: e.items })
29687
29694
  }, t) : /* @__PURE__ */ Q("ul", {
29688
29695
  className: "m-0 list-disc space-y-1 pl-5",
29689
- children: /* @__PURE__ */ Q(UJ, { items: e.items })
29696
+ children: /* @__PURE__ */ Q(JJ, { items: e.items })
29690
29697
  }, t))
29691
- }), ZJ = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(sn, {
29698
+ }), nY = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(sn, {
29692
29699
  as: "h2",
29693
29700
  variant: "heading-large",
29694
29701
  content: e
29695
29702
  }) : /* @__PURE__ */ Q("h2", {
29696
29703
  className: B("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
29697
29704
  children: e
29698
- }), QJ = ({ section: e, size: t, composer: n, onAction: r }) => {
29705
+ }), rY = ({ section: e, size: t, composer: n, onAction: r }) => {
29699
29706
  let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
29700
29707
  return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(ws, {
29701
29708
  display: "flex",
@@ -29717,43 +29724,43 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29717
29724
  alignItems: "start",
29718
29725
  justifyContent: e.title ? "between" : "end",
29719
29726
  gap: "md",
29720
- children: [e.title ? /* @__PURE__ */ Q(ZJ, {
29727
+ children: [e.title ? /* @__PURE__ */ Q(nY, {
29721
29728
  title: e.title,
29722
29729
  size: t
29723
- }) : null, a ? /* @__PURE__ */ Q(NJ, {
29730
+ }) : null, a ? /* @__PURE__ */ Q(RJ, {
29724
29731
  items: a,
29725
29732
  onAction: r
29726
29733
  }) : null]
29727
29734
  }) : null]
29728
29735
  }),
29729
29736
  n,
29730
- e.text ? /* @__PURE__ */ Q(XJ, { text: e.text }) : null
29737
+ e.text ? /* @__PURE__ */ Q(tY, { text: e.text }) : null
29731
29738
  ]
29732
29739
  });
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 }) => {
29740
+ }, iY = (e, t) => e.elements.length > 0 && e.elements.every((e) => xJ(e, t?.[e.id])), aY = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
29734
29741
  let a = (t, r) => n(t, {
29735
29742
  ...r,
29736
29743
  sectionId: e.id
29737
- }), o = $J(e, t);
29744
+ }), o = iY(e, t);
29738
29745
  return o && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
29739
29746
  id: e.id,
29740
29747
  "aria-label": e.title,
29741
29748
  tabIndex: -1,
29742
29749
  className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
29743
29750
  children: [
29744
- /* @__PURE__ */ Q(QJ, {
29751
+ /* @__PURE__ */ Q(rY, {
29745
29752
  section: e,
29746
29753
  size: r,
29747
29754
  composer: i,
29748
29755
  onAction: a
29749
29756
  }),
29750
- o && e.empty ? /* @__PURE__ */ Q(TK, {
29757
+ o && e.empty ? /* @__PURE__ */ Q(AK, {
29751
29758
  empty: e.empty,
29752
29759
  onAction: a
29753
- }) : kJ(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(MJ, {
29760
+ }) : PJ(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(LJ, {
29754
29761
  members: e.members,
29755
29762
  onAction: a
29756
- }, e.members[0]?.elementId) : /* @__PURE__ */ Q(CJ, {
29763
+ }, e.members[0]?.elementId) : /* @__PURE__ */ Q(OJ, {
29757
29764
  element: e.element,
29758
29765
  state: t?.[e.element.id],
29759
29766
  onAction: a,
@@ -29765,16 +29772,16 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29765
29772
  gap: "sm",
29766
29773
  children: e.followUps.map((e, t) => /* @__PURE__ */ Q(U, {
29767
29774
  size: "md",
29768
- ...bK(e, {}, a),
29775
+ ...TK(e, {}, a),
29769
29776
  variant: e.variant ?? "neutral"
29770
29777
  }, t))
29771
29778
  }) : null
29772
29779
  ]
29773
29780
  });
29774
- }, tY = (e, t) => {
29781
+ }, oY = (e, t) => {
29775
29782
  let [n, ...r] = e ?? [], i = (e) => ({
29776
29783
  label: e.label,
29777
- icon: _K(e.icon),
29784
+ icon: SK(e.icon),
29778
29785
  onClick: () => t(e)
29779
29786
  });
29780
29787
  return {
@@ -29787,19 +29794,19 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29787
29794
  value: String(t)
29788
29795
  })) : r[0] ? i(r[0]) : void 0
29789
29796
  };
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, {
29797
+ }, sY = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), cY = ({ element: e, state: t }) => {
29798
+ let n = EJ();
29799
+ return !t || t.status === "loading" ? /* @__PURE__ */ Q(yJ, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(jK, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(vG, {
29793
29800
  slots: t.widget.slots,
29794
29801
  loading: t.widget.loading,
29795
29802
  slotRenderers: n
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 }) => {
29803
+ }) : /* @__PURE__ */ Q(jK, {});
29804
+ }, lY = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
29798
29805
  let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
29799
29806
  ...r,
29800
29807
  accessoryViewId: e.id,
29801
29808
  ...l ? { accessoryViewParams: t } : {}
29802
- }), d = tY(e.actions, (e) => {
29809
+ }), d = oY(e.actions, (e) => {
29803
29810
  o(), u(e.action, {});
29804
29811
  });
29805
29812
  return /* @__PURE__ */ Q(Pi, {
@@ -29811,22 +29818,22 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29811
29818
  description: e.description,
29812
29819
  disableContentPadding: i,
29813
29820
  ...d,
29814
- children: e.widget ? /* @__PURE__ */ Q(rY, {
29821
+ children: e.widget ? /* @__PURE__ */ Q(cY, {
29815
29822
  element: e.widget,
29816
29823
  state: s?.[e.widget.id]
29817
- }, nY(e.id, t)) : /* @__PURE__ */ Q(ws, {
29824
+ }, sY(e.id, t)) : /* @__PURE__ */ Q(ws, {
29818
29825
  display: "flex",
29819
29826
  flexDirection: "column",
29820
29827
  gap: "3xl",
29821
- children: e.sections.map((e) => /* @__PURE__ */ Q(eY, {
29828
+ children: e.sections.map((e) => /* @__PURE__ */ Q(aY, {
29822
29829
  size: "accessory",
29823
29830
  section: e,
29824
29831
  sources: s,
29825
29832
  onAction: u
29826
29833
  }, e.id))
29827
- }, nY(e.id, t))
29834
+ }, sY(e.id, t))
29828
29835
  });
29829
- }, aY = Cu(function({ children: e }, t) {
29836
+ }, uY = Cu(function({ children: e }, t) {
29830
29837
  return /* @__PURE__ */ Q("div", {
29831
29838
  ref: t,
29832
29839
  className: "-m-1 p-1",
@@ -29835,7 +29842,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29835
29842
  children: e
29836
29843
  })
29837
29844
  });
29838
- }), oY = ({ greeting: e }) => /* @__PURE__ */ $(ws, {
29845
+ }), dY = ({ greeting: e }) => /* @__PURE__ */ $(ws, {
29839
29846
  display: "flex",
29840
29847
  flexDirection: "column",
29841
29848
  gap: "xs",
@@ -29847,14 +29854,14 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29847
29854
  variant: "description",
29848
29855
  content: e.subtitle
29849
29856
  }) : null]
29850
- }), sY = 150, cY = 150, lY = {
29857
+ }), fY = 150, pY = 150, mY = {
29851
29858
  neutral: "bg-f1-background-inverse",
29852
29859
  accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
29853
29860
  critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
29854
29861
  warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
29855
29862
  promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
29856
29863
  positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
29857
- }, uY = "inverse", dY = (e) => {
29864
+ }, hY = "inverse", gY = (e) => {
29858
29865
  let t = Y(null), n = Y(e), [r, i] = X({
29859
29866
  face: e,
29860
29867
  animate: !1
@@ -29880,8 +29887,8 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29880
29887
  size: r.size,
29881
29888
  animate: r.animate
29882
29889
  };
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");
29890
+ }, _Y = ({ clockIn: e, expanded: t = !1 }) => {
29891
+ let n = Qn(), [r, i] = X(!1), { ref: a, size: o, animate: s } = gY(t ? "card" : "chip");
29885
29892
  return /* @__PURE__ */ $("div", {
29886
29893
  ref: a,
29887
29894
  className: "relative isolate",
@@ -29893,32 +29900,32 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29893
29900
  transition: s ? IU(kU, n) : CU
29894
29901
  }), /* @__PURE__ */ Q(Bn, {
29895
29902
  initial: !1,
29896
- children: /* @__PURE__ */ Q(hY, { children: t ? /* @__PURE__ */ Q(gY, { clockIn: e }) : /* @__PURE__ */ Q(_Y, {
29903
+ children: /* @__PURE__ */ Q(bY, { children: t ? /* @__PURE__ */ Q(xY, { clockIn: e }) : /* @__PURE__ */ Q(SY, {
29897
29904
  clockIn: e,
29898
29905
  open: r,
29899
29906
  setOpen: i
29900
29907
  }) }, t ? "card" : "chip")
29901
29908
  })]
29902
29909
  });
29903
- }, pY = PU, mY = {
29910
+ }, vY = PU, yY = {
29904
29911
  duration: .16,
29905
29912
  ease: "easeOut"
29906
- }, hY = ({ children: e }) => {
29913
+ }, bY = ({ children: e }) => {
29907
29914
  let t = Qn(), n = nr();
29908
29915
  return /* @__PURE__ */ Q(V.div, {
29909
29916
  className: B(!n && "pointer-events-none absolute right-0 top-0"),
29910
29917
  initial: { opacity: 0 },
29911
29918
  animate: {
29912
29919
  opacity: 1,
29913
- transition: IU(pY, t)
29920
+ transition: IU(vY, t)
29914
29921
  },
29915
29922
  exit: {
29916
29923
  opacity: 0,
29917
- transition: IU(mY, t)
29924
+ transition: IU(yY, t)
29918
29925
  },
29919
29926
  children: e
29920
29927
  });
29921
- }, gY = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
29928
+ }, xY = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
29922
29929
  role: "group",
29923
29930
  "aria-label": e.title,
29924
29931
  className: "flex w-[396px] flex-col gap-4 rounded-xl border border-solid border-transparent p-4",
@@ -29926,7 +29933,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29926
29933
  variant: "label",
29927
29934
  content: e.title
29928
29935
  }), e.content]
29929
- }), _Y = ({ clockIn: e, open: t, setOpen: n }) => {
29936
+ }), SY = ({ clockIn: e, open: t, setOpen: n }) => {
29930
29937
  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 = () => {
29931
29938
  f.current && clearTimeout(f.current), f.current = null;
29932
29939
  }, y = (e, t) => {
@@ -29935,10 +29942,10 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29935
29942
  return K(() => v, []), /* @__PURE__ */ $("div", {
29936
29943
  className: "relative",
29937
29944
  onMouseEnter: () => {
29938
- _(!0), t ? v() : y(!0, sY);
29945
+ _(!0), t ? v() : y(!0, fY);
29939
29946
  },
29940
29947
  onMouseLeave: () => {
29941
- _(!1), y(!1, cY);
29948
+ _(!1), y(!1, pY);
29942
29949
  },
29943
29950
  onFocus: () => {
29944
29951
  v(), m.current ? m.current = !1 : n(!0);
@@ -29954,7 +29961,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29954
29961
  children: [r ? /* @__PURE__ */ Q("span", {
29955
29962
  className: "text-sm text-f1-foreground-secondary",
29956
29963
  children: r
29957
- }) : null, /* @__PURE__ */ Q(tG, {
29964
+ }) : null, /* @__PURE__ */ Q(oG, {
29958
29965
  text: i,
29959
29966
  ticking: !!a,
29960
29967
  className: "text-base font-medium text-f1-foreground"
@@ -29967,13 +29974,13 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29967
29974
  type: "button",
29968
29975
  variant: "ghost",
29969
29976
  size: "lg",
29970
- className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", lY[c ?? "accent"]),
29977
+ className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", mY[c ?? "accent"]),
29971
29978
  "aria-label": s.label,
29972
29979
  "aria-controls": t ? h : void 0,
29973
29980
  onClick: () => s.onClick(),
29974
29981
  children: /* @__PURE__ */ Q(W, {
29975
29982
  size: "lg",
29976
- color: uY,
29983
+ color: hY,
29977
29984
  icon: t || g ? s.icon : o ?? zi
29978
29985
  })
29979
29986
  })
@@ -30005,11 +30012,11 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30005
30012
  })
30006
30013
  }) : null })]
30007
30014
  });
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"),
30015
+ }, CY = 180, wY = 8, TY = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
30016
+ let r = n - t - wY;
30017
+ return r <= wY ? wY : Math.min(Math.max(e - t / 2, wY), r);
30018
+ }, EY = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", DY = "pointer-events-auto overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", OY = ({ open: e, out: t, top: n, transition: r }) => ({
30019
+ className: B(EY, "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"),
30013
30020
  animate: {
30014
30021
  opacity: +!!t,
30015
30022
  scale: t ? 1 : DU,
@@ -30017,7 +30024,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30017
30024
  y: n
30018
30025
  },
30019
30026
  transition: r
30020
- }), wY = (e, t) => ({
30027
+ }), kY = (e, t) => ({
30021
30028
  className: B("mt-4 w-[396px] shrink-0", e ? "pointer-events-none" : "pointer-events-auto"),
30022
30029
  animate: {
30023
30030
  opacity: +!e,
@@ -30029,7 +30036,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30029
30036
  ...e ? NU : kU,
30030
30037
  y: CU
30031
30038
  }, t)
30032
- }), TY = ({ collapsed: e, onToggle: t }) => {
30039
+ }), AY = ({ collapsed: e, onToggle: t }) => {
30033
30040
  let n = R(), r = e ? n.actions.expand : n.actions.collapse;
30034
30041
  return /* @__PURE__ */ Q(Vn, {
30035
30042
  label: r,
@@ -30043,26 +30050,26 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30043
30050
  children: /* @__PURE__ */ Q(Rl, { isExpanded: !e })
30044
30051
  })
30045
30052
  });
30046
- }, EY = (e) => {
30053
+ }, jY = (e) => {
30047
30054
  let t = Qn(), [n, r] = X(!1), i = LU(e, t ? 0 : 180), a = n ? i : e;
30048
30055
  return {
30049
30056
  stowed: a,
30050
30057
  leaving: e && !a,
30051
30058
  markToggled: () => r(!0)
30052
30059
  };
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", {
30060
+ }, MY = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), NY = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
30054
30061
  className: B("pointer-events-auto shrink-0", n && "mt-2"),
30055
- children: /* @__PURE__ */ Q(fY, {
30062
+ children: /* @__PURE__ */ Q(_Y, {
30056
30063
  clockIn: e,
30057
30064
  expanded: !t
30058
30065
  })
30059
- }), kY = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
30066
+ }), PY = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
30060
30067
  let o = R();
30061
30068
  return /* @__PURE__ */ $("div", {
30062
- className: "my-auto hidden flex-col items-end gap-2 md:flex",
30069
+ className: "mt-4 hidden flex-col items-end gap-2 md:flex",
30063
30070
  onMouseEnter: r,
30064
30071
  onMouseLeave: i,
30065
- children: [e.map((e, i) => /* @__PURE__ */ Q(sG, {
30072
+ children: [e.map((e, i) => /* @__PURE__ */ Q(fG, {
30066
30073
  look: "ghost",
30067
30074
  widget: e,
30068
30075
  order: i,
@@ -30092,10 +30099,10 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30092
30099
  })
30093
30100
  })] }) : null]
30094
30101
  });
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 = () => {
30102
+ }, FY = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
30103
+ let l = Qn(), { stowed: u, leaving: d, markToggled: f } = jY(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 = () => {
30097
30104
  g.current && clearTimeout(g.current), g.current = null;
30098
- }, E = (e = vY) => {
30105
+ }, E = (e = CY) => {
30099
30106
  T(), g.current = setTimeout(() => v(null), e);
30100
30107
  }, D = (e, t) => {
30101
30108
  T();
@@ -30112,13 +30119,13 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30112
30119
  let t = new ResizeObserver(() => w(e.offsetHeight));
30113
30120
  return t.observe(e), () => t.disconnect();
30114
30121
  }, []);
30115
- let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = aK({
30122
+ let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = uK({
30116
30123
  collapsed: !0,
30117
30124
  open: k != null,
30118
30125
  glide: x,
30119
30126
  drawn: !0,
30120
30127
  width: 396
30121
- }), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? bY({
30128
+ }), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? TY({
30122
30129
  glyphCenter: y.center,
30123
30130
  panelHeight: C,
30124
30131
  railHeight: y.railHeight
@@ -30129,25 +30136,25 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30129
30136
  onFocus: T,
30130
30137
  onBlur: () => E(0),
30131
30138
  onKeyDown: (e) => {
30132
- DY(e, k) && v(null);
30139
+ MY(e, k) && v(null);
30133
30140
  },
30134
30141
  children: [i ? /* @__PURE__ */ Q("div", {
30135
30142
  className: "pointer-events-auto shrink-0",
30136
- children: /* @__PURE__ */ Q(TY, {
30143
+ children: /* @__PURE__ */ Q(AY, {
30137
30144
  collapsed: r,
30138
30145
  onToggle: () => {
30139
30146
  f(), i();
30140
30147
  }
30141
30148
  })
30142
30149
  }) : null, /* @__PURE__ */ $("div", {
30143
- className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && SY),
30150
+ className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && DY),
30144
30151
  children: [
30145
- n ? /* @__PURE__ */ Q(OY, {
30152
+ n ? /* @__PURE__ */ Q(NY, {
30146
30153
  clockIn: n,
30147
30154
  stowed: u,
30148
30155
  underToggle: i != null
30149
30156
  }) : null,
30150
- u ? /* @__PURE__ */ Q(kY, {
30157
+ u ? /* @__PURE__ */ Q(PY, {
30151
30158
  widgets: e,
30152
30159
  openId: k,
30153
30160
  onOpen: D,
@@ -30159,19 +30166,19 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30159
30166
  ref: h,
30160
30167
  id: p,
30161
30168
  role: "group",
30162
- "aria-label": M ? DW(M) : void 0,
30169
+ "aria-label": M ? MW(M) : void 0,
30163
30170
  hidden: u && A.panelHidden,
30164
30171
  style: { transformOrigin: EU },
30165
30172
  initial: !1,
30166
- ...u ? CY({
30173
+ ...u ? OY({
30167
30174
  open: k != null,
30168
30175
  out: A.bodyOut,
30169
30176
  top: N,
30170
30177
  transition: A.transition
30171
- }) : wY(d, l),
30178
+ }) : kY(d, l),
30172
30179
  onMouseEnter: T,
30173
30180
  onMouseLeave: () => E(),
30174
- children: /* @__PURE__ */ Q(iK, {
30181
+ children: /* @__PURE__ */ Q(lK, {
30175
30182
  side: "right",
30176
30183
  widgets: e,
30177
30184
  visibleWidgetId: u ? j : void 0,
@@ -30189,19 +30196,37 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30189
30196
  ]
30190
30197
  })]
30191
30198
  });
30192
- }, jY = (e, t, n) => {
30199
+ }, IY = (e, t, n) => {
30193
30200
  let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
30194
30201
  r?.scrollIntoView({
30195
30202
  behavior: n ? "auto" : "smooth",
30196
30203
  block: "start"
30197
30204
  }), r?.focus({ preventScroll: !0 });
30198
- }, MY = (e) => {
30205
+ }, LY = (e) => {
30199
30206
  let t = Qn();
30200
- return G((n) => jY(e, n, t), [e, t]);
30201
- }, NY = (e, t, n) => {
30207
+ return G((n) => IY(e, n, t), [e, t]);
30208
+ }, RY = 64, zY = (e, t) => {
30209
+ let [n, r] = X(null), [i, a] = X();
30210
+ return q(() => {
30211
+ let r = e.current;
30212
+ if (!t || !r || !n || typeof ResizeObserver != "function") return;
30213
+ let i = new ResizeObserver(() => a({
30214
+ room: r.clientHeight,
30215
+ lead: n.offsetHeight
30216
+ }));
30217
+ return i.observe(r), i.observe(n), () => i.disconnect();
30218
+ }, [
30219
+ t,
30220
+ e,
30221
+ n
30222
+ ]), {
30223
+ lead: r,
30224
+ topInset: t && i && i.room > 0 ? Math.max(RY, (i.room - i.lead) / 2) : void 0
30225
+ };
30226
+ }, BY = (e, t, n) => {
30202
30227
  let r = [], i = /* @__PURE__ */ new Map(), a = [];
30203
30228
  for (let o of e.elements) {
30204
- if (!PK(t, o.type)) {
30229
+ if (!zK(t, o.type)) {
30205
30230
  n.push({
30206
30231
  rule: "allowedBlockTypes",
30207
30232
  sectionId: e.id,
@@ -30210,7 +30235,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30210
30235
  });
30211
30236
  continue;
30212
30237
  }
30213
- let s = NK(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
30238
+ let s = RK(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
30214
30239
  if (s !== void 0 && c.length >= s) {
30215
30240
  n.push({
30216
30241
  rule: "maxPerSection",
@@ -30221,14 +30246,14 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30221
30246
  });
30222
30247
  continue;
30223
30248
  }
30224
- let l = a.find((e) => !LK(t, e, o.type));
30249
+ let l = a.find((e) => !HK(t, e, o.type));
30225
30250
  l ? n.push({
30226
30251
  rule: "combinesWith",
30227
30252
  sectionId: e.id,
30228
30253
  elementId: o.id,
30229
30254
  blockType: o.type,
30230
30255
  conflictsWith: l
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)));
30256
+ }) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? BK(o, o.id, t, n) : VK(o, t)));
30232
30257
  }
30233
30258
  let o = t.maxElementsPerSection;
30234
30259
  return o !== void 0 && r.length > o ? (n.push({
@@ -30243,14 +30268,14 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30243
30268
  ...e,
30244
30269
  elements: r
30245
30270
  };
30246
- }, PY = (e, t, n) => {
30271
+ }, VY = (e, t, n) => {
30247
30272
  let r = e;
30248
30273
  return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
30249
30274
  rule: "maxSections",
30250
30275
  limit: t.maxSections,
30251
30276
  droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
30252
- }), r = r.slice(0, t.maxSections)), r.map((e, r) => NY(e, RK(t, r === 0), n));
30253
- }, FY = (e, t, n) => {
30277
+ }), r = r.slice(0, t.maxSections)), r.map((e, r) => BY(e, UK(t, r === 0), n));
30278
+ }, HY = (e, t, n) => {
30254
30279
  if (e.type !== "text" || !t.text) return;
30255
30280
  let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
30256
30281
  return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
@@ -30261,14 +30286,14 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30261
30286
  ...i === void 0 ? {} : { minLength: i },
30262
30287
  ...a === void 0 ? {} : { maxLength: a }
30263
30288
  };
30264
- }, IY = (e, t, n) => {
30289
+ }, UY = (e, t, n) => {
30265
30290
  let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
30266
30291
  t.forEach((e, t) => {
30267
30292
  let o = e.min ?? 1, s = e.max ?? 1, c = 0;
30268
30293
  for (; c < s && a < r.length && e.types.includes(r[a].type);) {
30269
30294
  let o = r[a];
30270
30295
  a += 1, c += 1;
30271
- let s = FY(o, e, t);
30296
+ let s = HY(o, e, t);
30272
30297
  s && (i.add(o.id), n.push(s));
30273
30298
  }
30274
30299
  c < o && n.push({
@@ -30287,59 +30312,59 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30287
30312
  ...e,
30288
30313
  elements: e.elements.filter(({ id: e }) => !i.has(e))
30289
30314
  }));
30290
- }, LY = (e) => typeof e == "object" && !!e, RY = (e) => {
30315
+ }, WY = (e) => typeof e == "object" && !!e, GY = (e) => {
30291
30316
  let t = e.widget, n = Array.isArray(e.sections);
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" }), [];
30317
+ return t === void 0 ? n ? "sections" : null : WY(t) && t.type === "widget" && typeof t.id == "string" && WY(t.source) && !n ? "widget" : null;
30318
+ }, KY = (e, t, n) => {
30319
+ if (!GY(e)) return n.push({ rule: "accessoryViewBody" }), [];
30295
30320
  let r = t.rules ?? {};
30296
- if (e.widget) return PK(r, "widget") ? [e] : (n.push({
30321
+ if (e.widget) return zK(r, "widget") ? [e] : (n.push({
30297
30322
  rule: "allowedBlockTypes",
30298
30323
  sectionId: e.id,
30299
30324
  elementId: e.widget.id,
30300
30325
  blockType: "widget"
30301
30326
  }), []);
30302
- let i = PY(e.sections, r, n), a = t.shape ? IY(i, t.shape, n) : i;
30327
+ let i = VY(e.sections, r, n), a = t.shape ? UY(i, t.shape, n) : i;
30303
30328
  return [{
30304
30329
  ...e,
30305
30330
  sections: a
30306
30331
  }];
30307
- }, BY = (e, t, n) => e.flatMap((e) => {
30332
+ }, qY = (e, t, n) => e.flatMap((e) => {
30308
30333
  let r = t.find((t) => t.type === e.type);
30309
30334
  if (!r) return n.push({
30310
30335
  rule: "accessoryViewType",
30311
30336
  accessoryViewId: e.id,
30312
30337
  viewType: e.type
30313
30338
  }), [];
30314
- let i = [], a = zY(e, r, i);
30339
+ let i = [], a = KY(e, r, i);
30315
30340
  return n.push(...i.map((t) => ({
30316
30341
  ...t,
30317
30342
  accessoryViewId: e.id
30318
30343
  }))), a;
30319
- }), VY = (e, t, n = []) => {
30320
- let r = [], i = QK(PY(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
30344
+ }), JY = (e, t, n = []) => {
30345
+ let r = [], i = rq(VY(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
30321
30346
  rule: "sectionTitle",
30322
30347
  sectionId: e.id
30323
30348
  }), !1)), t, r), r);
30324
30349
  i.forEach((e, n) => {
30325
- let i = RK(t, n === 0);
30326
- for (let t of e.elements) t.type === "shortcuts" && OK(t, NK(i, t.type), {
30350
+ let i = UK(t, n === 0);
30351
+ for (let t of e.elements) t.type === "shortcuts" && NK(t, RK(i, t.type), {
30327
30352
  sectionId: e.id,
30328
30353
  elementId: t.id
30329
30354
  }, r);
30330
30355
  });
30331
- let a = e.accessoryViews ? BY(e.accessoryViews, n, r) : void 0, o = {
30356
+ let a = e.accessoryViews ? qY(e.accessoryViews, n, r) : void 0, o = {
30332
30357
  ...e,
30333
30358
  sections: i,
30334
30359
  ...a ? { accessoryViews: a } : {}
30335
30360
  };
30336
30361
  return {
30337
30362
  spec: o,
30338
- violations: [...r, ...qK(o)]
30363
+ violations: [...r, ...QK(o)]
30339
30364
  };
30340
- }, HY = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
30365
+ }, YY = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
30341
30366
  let a = J(() => {
30342
- let i = VY(e, n ?? {}, r), a = t ? nq(t, i.spec, n ?? {}, r) : {
30367
+ let i = JY(e, n ?? {}, r), a = t ? sq(t, i.spec, n ?? {}, r) : {
30343
30368
  sources: t,
30344
30369
  violations: []
30345
30370
  };
@@ -30362,7 +30387,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30362
30387
  let e = JSON.parse(s);
30363
30388
  e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
30364
30389
  }, [s]), a;
30365
- }, UY = (e, t, n) => {
30390
+ }, XY = (e, t, n) => {
30366
30391
  let r = Y(n);
30367
30392
  K(() => {
30368
30393
  r.current = n;
@@ -30377,7 +30402,7 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30377
30402
  t,
30378
30403
  i
30379
30404
  ]);
30380
- }, WY = 1164, GY = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
30405
+ }, ZY = 1164, QY = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
30381
30406
  let i = Y(null), [a, o] = X(0);
30382
30407
  q(() => {
30383
30408
  let e = i.current;
@@ -30392,136 +30417,151 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30392
30417
  defaultProp: n,
30393
30418
  onChange: r,
30394
30419
  caller: "F0AgenticHome"
30395
- }), l = e && (a === 0 || a >= WY);
30420
+ }), l = e && (a === 0 || a >= ZY);
30396
30421
  return {
30397
30422
  root: i,
30398
30423
  collapsed: !l || s,
30399
30424
  toggle: l ? () => c(!s) : void 0
30400
30425
  };
30401
- }, KY = (e, t) => {
30426
+ }, $Y = (e, t) => {
30402
30427
  let n = Object.keys(e.params);
30403
30428
  return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
30404
- }, qY = (e, t) => {
30405
- let { missingParams: n, undeclaredParams: r } = zK(e, t);
30429
+ }, eX = (e, t) => {
30430
+ let { missingParams: n, undeclaredParams: r } = WK(e, t);
30406
30431
  return n.length === 0 && r.length === 0;
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({
30432
+ }, tX = {}, nX = (e, t, n, r) => !n || r && $Y(r, t) ? e : tX, rX = "pt-[max(4rem,22vh)]", iX = "pb-40", aX = "pb-10", oX = (e, t) => e ? t && "md:px-20" : "pr-[428px]", sX = Cu(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, widgets: i = [], widgetsCollapsed: a, defaultWidgetsCollapsed: o = !0, onWidgetsCollapsedChange: s, onClickAddWidget: c, addableWidgetContainers: l = ["right"], onRemoveWidget: u, onReorderWidgets: d, onChangeWidgetParams: f, sources: p, sourcesFor: m, onAccessoryViewOpen: h, onAccessoryViewClose: g, onAction: _, composer: v, onComposerVisibilityChange: y, rules: b, onRulesViolation: x, accessoryViewTypes: S, slotRenderers: C, renderMention: w }, T) {
30433
+ let { spec: E, sources: D } = YY({
30409
30434
  spec: e,
30410
- sources: f,
30411
- rules: y,
30412
- accessoryViewTypes: x,
30413
- onRulesViolation: b
30414
- }), D = Y(null), O = Y(null);
30415
- ku(w, () => D.current), UY(D, O, v);
30416
- let k = MY(D), A = GY({
30435
+ sources: p,
30436
+ rules: b,
30437
+ accessoryViewTypes: S,
30438
+ onRulesViolation: x
30439
+ }), O = R(), k = Y(null), A = Y(null);
30440
+ ku(T, () => k.current), XY(k, A, y);
30441
+ let j = LY(k), M = QY({
30417
30442
  hasWidgets: i.length > 0,
30418
30443
  collapsed: a,
30419
30444
  defaultCollapsed: o,
30420
30445
  onCollapsedChange: s
30421
- }), j = _ ? /* @__PURE__ */ Q(aY, {
30422
- ref: O,
30423
- children: _
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) => {
30425
- if (e.type === "goToSection" && k(e.sectionId), e.type === "openAccessoryView") {
30426
- let t = T.accessoryViews?.find(({ id: t }) => t === e.id);
30446
+ }), N = (e) => c && l.includes(e) ? () => c(e) : void 0, P = N("right"), F = N("main"), I = i.length > 0 || !!P, L = zY(k, !!t), ee = v ? /* @__PURE__ */ Q(uY, {
30447
+ ref: A,
30448
+ children: v
30449
+ }) : null, [te, ...ne] = E.sections, [re, ie] = X(), ae = E.accessoryViews?.find(({ id: e }) => e === re?.id), oe = S?.find(({ type: e }) => e === ae?.type), se = J(() => (e, t) => {
30450
+ if (e.type === "goToSection" && j(e.sectionId), e.type === "openAccessoryView") {
30451
+ let t = E.accessoryViews?.find(({ id: t }) => t === e.id);
30427
30452
  if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
30428
- else if (qY(t, e.params)) {
30453
+ else if (eX(t, e.params)) {
30429
30454
  let n = {
30430
30455
  id: t.id,
30431
30456
  params: e.params ?? {}
30432
30457
  };
30433
- F({
30458
+ ie({
30434
30459
  ...n,
30435
30460
  open: !0
30436
- }), m?.(n);
30461
+ }), h?.(n);
30437
30462
  }
30438
30463
  }
30439
- g?.(e, t);
30464
+ _?.(e, t);
30440
30465
  }, [
30441
- g,
30442
- k,
30443
- m,
30444
- T.accessoryViews
30466
+ _,
30467
+ j,
30468
+ h,
30469
+ E.accessoryViews
30445
30470
  ]);
30446
- return /* @__PURE__ */ Q(bJ, {
30447
- value: S,
30448
- children: /* @__PURE__ */ Q(FJ, {
30449
- value: C,
30471
+ return /* @__PURE__ */ Q(TJ, {
30472
+ value: C,
30473
+ children: /* @__PURE__ */ Q(BJ, {
30474
+ value: w,
30450
30475
  children: /* @__PURE__ */ $("div", {
30451
- ref: A.root,
30476
+ ref: M.root,
30452
30477
  className: "relative h-full min-h-0 w-full",
30453
30478
  children: [
30454
30479
  /* @__PURE__ */ $("div", {
30455
- ref: D,
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)),
30480
+ ref: k,
30481
+ 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", oX(M.collapsed, I)),
30457
30482
  children: [/* @__PURE__ */ $("div", {
30458
- className: B("mx-auto flex w-full max-w-content flex-col gap-20", XY, _ && v ? ZY : QY),
30483
+ className: B("mx-auto flex w-full max-w-content flex-col gap-20", rX, v && y ? iX : aX),
30484
+ style: L.topInset === void 0 ? void 0 : { paddingTop: L.topInset },
30459
30485
  children: [
30460
- t ? /* @__PURE__ */ Q(oY, { greeting: t }) : null,
30461
- M ? null : j,
30462
- M ? /* @__PURE__ */ Q(eY, {
30463
- size: "lead",
30464
- section: M,
30465
- sources: E,
30466
- onAction: ee,
30467
- composer: j
30468
- }, M.id) : null,
30469
- N.map((e) => /* @__PURE__ */ Q(eY, {
30486
+ /* @__PURE__ */ $("div", {
30487
+ ref: L.lead,
30488
+ className: "flex flex-col gap-20",
30489
+ children: [
30490
+ t ? /* @__PURE__ */ Q(dY, { greeting: t }) : null,
30491
+ te ? null : ee,
30492
+ te ? /* @__PURE__ */ Q(aY, {
30493
+ size: "lead",
30494
+ section: te,
30495
+ sources: D,
30496
+ onAction: se,
30497
+ composer: ee
30498
+ }, te.id) : null
30499
+ ]
30500
+ }),
30501
+ ne.map((e) => /* @__PURE__ */ Q(aY, {
30470
30502
  section: e,
30471
- sources: E,
30472
- onAction: ee
30473
- }, e.id))
30503
+ sources: D,
30504
+ onAction: se
30505
+ }, e.id)),
30506
+ F ? /* @__PURE__ */ Q("div", {
30507
+ className: "-mt-12",
30508
+ children: /* @__PURE__ */ Q(cK, {
30509
+ onClick: F,
30510
+ label: O.widgets.addWidget,
30511
+ side: "main"
30512
+ })
30513
+ }) : null
30474
30514
  ]
30475
- }), P && I && L ? /* @__PURE__ */ Q(iY, {
30476
- view: I,
30477
- params: P.params,
30478
- presentation: L.presentation,
30479
- width: L.width,
30480
- bleed: L.bleed,
30481
- isOpen: P.open,
30515
+ }), re && ae && oe ? /* @__PURE__ */ Q(lY, {
30516
+ view: ae,
30517
+ params: re.params,
30518
+ presentation: oe.presentation,
30519
+ width: oe.width,
30520
+ bleed: oe.bleed,
30521
+ isOpen: re.open,
30482
30522
  onClose: () => {
30483
- F((e) => e && {
30523
+ ie((e) => e && {
30484
30524
  ...e,
30485
30525
  open: !1
30486
- }), h?.();
30526
+ }), g?.();
30487
30527
  },
30488
- sources: YY(E, P, !!I.params?.length, p),
30489
- onAction: ee
30528
+ sources: nX(D, re, !!ae.params?.length, m),
30529
+ onAction: se
30490
30530
  }) : null]
30491
30531
  }),
30492
30532
  r ? /* @__PURE__ */ Q("div", {
30493
30533
  className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
30494
30534
  children: /* @__PURE__ */ Q(qU, {})
30495
30535
  }) : null,
30496
- n || i.length || c ? /* @__PURE__ */ Q(AY, {
30536
+ n || I ? /* @__PURE__ */ Q(FY, {
30497
30537
  widgets: i,
30498
- collapsed: A.collapsed,
30499
- onToggleCollapsed: A.toggle,
30500
- onReorder: u,
30501
- onAdd: c,
30502
- onRemove: l,
30503
- onChangeParams: d,
30504
- slotRenderers: S,
30538
+ collapsed: M.collapsed,
30539
+ onToggleCollapsed: M.toggle,
30540
+ onReorder: d,
30541
+ onAdd: P,
30542
+ onRemove: u,
30543
+ onChangeParams: f,
30544
+ slotRenderers: C,
30505
30545
  clockIn: n
30506
30546
  }) : null
30507
30547
  ]
30508
30548
  })
30509
30549
  })
30510
30550
  });
30511
- }), tX = En("F0AgenticHome", eX), nX = Cu(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
30551
+ }), cX = En("F0AgenticHome", sX), lX = Cu(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
30512
30552
  let a = J(() => (e, t) => n?.(e, t), [n]);
30513
30553
  return /* @__PURE__ */ Q("div", {
30514
30554
  ref: i,
30515
- children: /* @__PURE__ */ Q(bJ, {
30555
+ children: /* @__PURE__ */ Q(TJ, {
30516
30556
  value: r,
30517
- children: /* @__PURE__ */ Q(CJ, {
30557
+ children: /* @__PURE__ */ Q(OJ, {
30518
30558
  element: e,
30519
30559
  state: t,
30520
30560
  onAction: a
30521
30561
  })
30522
30562
  })
30523
30563
  });
30524
- }), rX = En("F0AgenticHomeBlock", nX), iX = {
30564
+ }), uX = En("F0AgenticHomeBlock", lX), dX = {
30525
30565
  maxSections: 12,
30526
30566
  maxElementsPerSection: 3,
30527
30567
  blocks: [
@@ -30569,18 +30609,18 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30569
30609
  type: "list",
30570
30610
  itemActions: ["goToSection"]
30571
30611
  }] }
30572
- }, aX = 1, oX = {
30612
+ }, fX = 1, pX = {
30573
30613
  main: 672,
30574
30614
  right: 396
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, {
30576
- ...AW(e),
30615
+ }, mX = 250, hX = (e) => typeof e == "object" && !!e && !wu(e) && Array.isArray(e.slots), gX = ({ preview: e, params: t, slotRenderers: n }) => hX(e) ? /* @__PURE__ */ Q(yG, {
30616
+ ...FW(e),
30577
30617
  header: e.header,
30578
30618
  params: t ?? e.params,
30579
30619
  fullHeight: e.fullHeight,
30580
30620
  slots: e.slots,
30581
30621
  loading: e.loading,
30582
30622
  slotRenderers: n
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", {
30623
+ }) : /* @__PURE__ */ Q(Z, { children: e }), _X = (e, t, n) => e.info ?? (hX(t) ? jW(t.header, n ?? t.params)?.info : void 0), vX = (e) => e.paramsSchema ?? (hX(e.preview) ? e.preview.paramsSchema : void 0), yX = (e) => e.params ?? (hX(e.preview) ? e.preview.params : void 0) ?? {}, bX = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
30584
30624
  className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
30585
30625
  children: [t ? /* @__PURE__ */ Q(W, {
30586
30626
  icon: t,
@@ -30591,10 +30631,10 @@ var aK = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
30591
30631
  children: e
30592
30632
  })]
30593
30633
  });
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" }) {
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) => {
30634
+ function xX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: u = "Add widget" }) {
30635
+ let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = xG(), [g, _] = X(""), [v, y] = X(null), [b, x] = X("pick"), [S, C] = X(!1), w = (e) => {
30596
30636
  C(!0), x(e);
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(() => {
30637
+ }, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = l(), A = g.trim().toLowerCase(), j = o ?? (a ? pX[a] : pX.right), M = J(() => {
30598
30638
  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));
30599
30639
  return [
30600
30640
  ...r.length ? [{
@@ -30619,7 +30659,7 @@ function mX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30619
30659
  A,
30620
30660
  a,
30621
30661
  d
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;
30662
+ ]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? vX(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && NW(F, yX(P))), L = b === "configure" && I, ee = P && T?.id === P.id ? T.params : P ? yX(P) : {}, te = L && P && c ? c(P, ee) : P?.preview;
30623
30663
  return K(() => {
30624
30664
  e && (x("pick"), C(!1), E(null));
30625
30665
  }, [e]), K(() => {
@@ -30666,7 +30706,7 @@ function mX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30666
30706
  defaultValues: ee,
30667
30707
  submitConfig: {
30668
30708
  type: "autosubmit",
30669
- delay: sX,
30709
+ delay: mX,
30670
30710
  hideActionBar: !0
30671
30711
  },
30672
30712
  styling: { noPadding: !0 },
@@ -30681,7 +30721,7 @@ function mX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30681
30721
  placeholder: "Search widgets"
30682
30722
  }), /* @__PURE__ */ $("div", {
30683
30723
  className: "flex flex-col gap-1 overflow-y-auto",
30684
- children: [M.map((e) => /* @__PURE__ */ $(yu, { children: [e.label ? /* @__PURE__ */ Q(pX, {
30724
+ children: [M.map((e) => /* @__PURE__ */ $(yu, { children: [e.label ? /* @__PURE__ */ Q(bX, {
30685
30725
  label: e.label,
30686
30726
  icon: e.icon
30687
30727
  }) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
@@ -30700,11 +30740,11 @@ function mX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30700
30740
  children: A ? "No widgets match your search." : "No widgets to add here."
30701
30741
  }) : null]
30702
30742
  })] })
30703
- }, b), /* @__PURE__ */ Q(vG, {
30743
+ }, b), /* @__PURE__ */ Q(CG, {
30704
30744
  previewKey: P?.id,
30705
- info: P ? uX(P, te, L ? ee : void 0) : void 0,
30745
+ info: P ? _X(P, te, L ? ee : void 0) : void 0,
30706
30746
  previewWidth: j,
30707
- children: P ? /* @__PURE__ */ Q(lX, {
30747
+ children: P ? /* @__PURE__ */ Q(gX, {
30708
30748
  preview: te,
30709
30749
  params: L ? ee : void 0,
30710
30750
  slotRenderers: s
@@ -30715,62 +30755,62 @@ function mX({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
30715
30755
  }
30716
30756
  //#endregion
30717
30757
  //#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
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, {
30758
+ var SX = Object.defineProperty, CX = Object.defineProperties, wX = Object.getOwnPropertyDescriptors, TX = Object.getOwnPropertySymbols, EX = Object.prototype.hasOwnProperty, DX = Object.prototype.propertyIsEnumerable, OX = (e, t, n) => t in e ? SX(e, t, {
30719
30759
  enumerable: !0,
30720
30760
  configurable: !0,
30721
30761
  writable: !0,
30722
30762
  value: 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]);
30763
+ }) : e[t] = n, kX = (e, t) => {
30764
+ for (var n in t ||= {}) EX.call(t, n) && OX(e, n, t[n]);
30765
+ if (TX) for (var n of TX(t)) DX.call(t, n) && OX(e, n, t[n]);
30726
30766
  return e;
30727
- }, CX = (e, t) => gX(e, _X(t)), wX = (e, t) => {
30767
+ }, AX = (e, t) => CX(e, wX(t)), jX = (e, t) => {
30728
30768
  var n = {};
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]);
30769
+ for (var r in e) EX.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
30770
+ if (e != null && TX) for (var r of TX(e)) t.indexOf(r) < 0 && DX.call(e, r) && (n[r] = e[r]);
30731
30771
  return 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 }) => {
30772
+ }, MX = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, NX = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), PX = ({ position: e, spot: t, stone: n }) => {
30733
30773
  if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
30734
30774
  if (t.bottom && t.bottom < e.top) return t;
30735
- let n = SX({}, t);
30775
+ let n = kX({}, t);
30736
30776
  return n.right = e.left, n;
30737
30777
  }
30738
30778
  return null;
30739
- }, OX = ({ position: e, stone: t, spot: n }) => {
30779
+ }, FX = ({ position: e, stone: t, spot: n }) => {
30740
30780
  if (e.left + t.width > n.left && e.top >= n.top) {
30741
30781
  if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
30742
- let t = SX({}, n);
30782
+ let t = kX({}, n);
30743
30783
  return t.bottom = e.top, t;
30744
30784
  }
30745
30785
  return null;
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({
30786
+ }, IX = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
30787
+ let i = kX({}, r);
30788
+ return i.left = t.left + e.width, MX(i) || NX({
30749
30789
  usedSpot: i,
30750
30790
  spotsList: n
30751
30791
  }) ? null : i;
30752
- }, AX = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? kX({
30792
+ }, LX = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? IX({
30753
30793
  stone: r,
30754
30794
  position: t,
30755
30795
  optimalSpot: n,
30756
30796
  spotsList: a
30757
- }) : DX({
30797
+ }) : PX({
30758
30798
  position: t,
30759
30799
  spot: e,
30760
30800
  stone: r
30761
- }) || OX({
30801
+ }) || FX({
30762
30802
  position: t,
30763
30803
  stone: r,
30764
30804
  spot: e
30765
30805
  }) || e);
30766
- function jX(e, t) {
30806
+ function RX(e, t) {
30767
30807
  for (let n = 0, r = t.length; n < r; n++) {
30768
30808
  let r = t[n];
30769
30809
  if (e(r)) return r;
30770
30810
  }
30771
30811
  return null;
30772
30812
  }
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 }) => {
30813
+ var zX = (e, t) => t.filter(e), BX = (e, t) => [...t].sort(e), VX = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, HX = (e) => BX(VX, e), UX = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
30774
30814
  let i = {
30775
30815
  right: n,
30776
30816
  top: t.top + r.height,
@@ -30785,36 +30825,36 @@ var MX = (e, t) => t.filter(e), NX = (e, t) => [...t].sort(e), PX = (e, t) => e.
30785
30825
  }
30786
30826
  }
30787
30827
  return i;
30788
- }, LX = (e, t) => {
30828
+ }, WX = (e, t) => {
30789
30829
  let n = e.right - e.left >= t.width;
30790
30830
  if (!e.bottom) return n;
30791
30831
  let r = e.bottom - e.top >= t.height;
30792
30832
  return n && r;
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({
30833
+ }, GX = ({ availableSpots: e, stone: t }) => RX((e) => WX(e, t), e);
30834
+ function KX({ stone: e, availableSpots: t, containerSize: n }) {
30835
+ let r = GX({
30796
30836
  availableSpots: t,
30797
30837
  stone: e
30798
30838
  }), i = {
30799
30839
  left: r.left,
30800
30840
  top: r.top
30801
- }, a = IX({
30841
+ }, a = UX({
30802
30842
  optimalSpot: r,
30803
30843
  availableSpots: t.filter((e) => e !== r),
30804
30844
  stone: e,
30805
30845
  containerSize: n
30806
- }), o = [...t, a], s = AX({
30846
+ }), o = [...t, a], s = LX({
30807
30847
  spots: o,
30808
30848
  position: i,
30809
30849
  optimalSpot: r,
30810
30850
  stone: e
30811
30851
  });
30812
- return o = [...MX(Boolean, s)], o = FX(o), {
30852
+ return o = [...zX(Boolean, s)], o = HX(o), {
30813
30853
  position: i,
30814
30854
  availableSpots: o
30815
30855
  };
30816
30856
  }
30817
- var BX = ({ stones: e, containerSize: t }) => {
30857
+ var qX = ({ stones: e, containerSize: t }) => {
30818
30858
  let n = {
30819
30859
  positions: [],
30820
30860
  containerHeight: 0,
@@ -30827,7 +30867,7 @@ var BX = ({ stones: e, containerSize: t }) => {
30827
30867
  right: t
30828
30868
  }];
30829
30869
  for (let n of e) {
30830
- let e = zX({
30870
+ let e = KX({
30831
30871
  availableSpots: a,
30832
30872
  stone: n,
30833
30873
  containerSize: t
@@ -30839,14 +30879,14 @@ var BX = ({ stones: e, containerSize: t }) => {
30839
30879
  positions: i,
30840
30880
  containerHeight: r
30841
30881
  };
30842
- }, VX = (e) => e.reduce((e, t) => {
30882
+ }, JX = (e) => e.reduce((e, t) => {
30843
30883
  if (!t) return e;
30844
30884
  let n = t.getBoundingClientRect();
30845
30885
  return e.push({
30846
30886
  width: n.width,
30847
30887
  height: n.height
30848
30888
  }), e;
30849
- }, []), HX = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
30889
+ }, []), YX = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
30850
30890
  let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
30851
30891
  positions: [],
30852
30892
  containerHeight: null,
@@ -30854,13 +30894,13 @@ var BX = ({ stones: e, containerSize: t }) => {
30854
30894
  availableSpots: []
30855
30895
  });
30856
30896
  return K(() => {
30857
- let n = VX(e.current), r = t.current?.offsetWidth ?? 0;
30897
+ let n = JX(e.current), r = t.current?.offsetWidth ?? 0;
30858
30898
  if (r === null) return;
30859
- let i = BX({
30899
+ let i = qX({
30860
30900
  stones: n,
30861
30901
  containerSize: r
30862
30902
  });
30863
- l(CX(SX({}, i), { stones: n }));
30903
+ l(AX(kX({}, i), { stones: n }));
30864
30904
  }, [
30865
30905
  n,
30866
30906
  e,
@@ -30873,7 +30913,7 @@ var BX = ({ stones: e, containerSize: t }) => {
30873
30913
  stones: s,
30874
30914
  availableSpots: c
30875
30915
  };
30876
- }, UX = (e) => ({
30916
+ }, XX = (e) => ({
30877
30917
  fade: `${e}ms opacity ease`,
30878
30918
  fadeMove: `
30879
30919
  ${e}ms opacity ease,
@@ -30884,15 +30924,15 @@ var BX = ({ stones: e, containerSize: t }) => {
30884
30924
  ${e}ms top ease,
30885
30925
  ${e}ms left ease
30886
30926
  `
30887
- }), WX = ({ transition: e, transitionDuration: t }) => e ? { transition: UX(t)[e] } : null, GX = (e) => e ? CX(SX({}, e), { opacity: 1 }) : {
30927
+ }), ZX = ({ transition: e, transitionDuration: t }) => e ? { transition: XX(t)[e] } : null, QX = (e) => e ? AX(kX({}, e), { opacity: 1 }) : {
30888
30928
  opacity: 0,
30889
30929
  top: 0,
30890
30930
  left: 0
30891
- }, KX = ({ style: e, position: t, transition: n, transitionDuration: r }) => SX(SX(CX(SX({}, e), { position: "absolute" }), GX(t)), WX({
30931
+ }, $X = ({ style: e, position: t, transition: n, transitionDuration: r }) => kX(kX(AX(kX({}, e), { position: "absolute" }), QX(t)), ZX({
30892
30932
  transition: n,
30893
30933
  transitionDuration: r
30894
30934
  }));
30895
- function qX(e, t, n) {
30935
+ function eZ(e, t, n) {
30896
30936
  let r;
30897
30937
  return function(...i) {
30898
30938
  r && clearTimeout(r), r = setTimeout(function() {
@@ -30900,8 +30940,8 @@ function qX(e, t, n) {
30900
30940
  }, t), n && !r && e.apply(null, i);
30901
30941
  };
30902
30942
  }
30903
- var JX = () => {
30904
- let [e, t] = X(), n = Y(qX(t, 300));
30943
+ var tZ = () => {
30944
+ let [e, t] = X(), n = Y(eZ(t, 300));
30905
30945
  return K(() => {
30906
30946
  let e = () => {
30907
30947
  n.current(window.innerWidth);
@@ -30910,7 +30950,7 @@ var JX = () => {
30910
30950
  window.removeEventListener("resize", e);
30911
30951
  };
30912
30952
  }, []), e;
30913
- }, YX = (e) => {
30953
+ }, nZ = (e) => {
30914
30954
  let [t, n] = X(null);
30915
30955
  return K(() => {
30916
30956
  let t = new ResizeObserver((e) => {
@@ -30920,31 +30960,31 @@ var JX = () => {
30920
30960
  t.disconnect();
30921
30961
  };
30922
30962
  }, [e]), 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, [
30963
+ }, rZ = (e) => {
30964
+ var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = jX(t, [
30925
30965
  "children",
30926
30966
  "style",
30927
30967
  "transition",
30928
30968
  "transitionDuration",
30929
30969
  "transitionStep"
30930
30970
  ]);
30931
- let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = HX({
30971
+ let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = YX({
30932
30972
  boxesRefs: c,
30933
30973
  wrapperRef: l,
30934
30974
  children: n,
30935
- windowWidth: JX(),
30936
- wrapperWidth: YX(l)
30937
- }), f = SX({
30975
+ windowWidth: tZ(),
30976
+ wrapperWidth: nZ(l)
30977
+ }), f = kX({
30938
30978
  minHeight: d ?? 0,
30939
30979
  position: "relative"
30940
30980
  }, r);
30941
- return Q("div", CX(SX({
30981
+ return Q("div", AX(kX({
30942
30982
  ref: l,
30943
30983
  style: f
30944
30984
  }, s), { children: vu.map(n, (e, t) => {
30945
30985
  if (typeof e != "object" || !e || !("type" in e)) return e;
30946
30986
  let n = {
30947
- style: KX({
30987
+ style: $X({
30948
30988
  style: e.props.style,
30949
30989
  position: u[t],
30950
30990
  transition: i,
@@ -30952,14 +30992,14 @@ var JX = () => {
30952
30992
  }),
30953
30993
  ref: (e) => c.current[t] = e
30954
30994
  };
30955
- return xu(e, SX(SX({}, e.props), n));
30995
+ return xu(e, kX(kX({}, e.props), n));
30956
30996
  }) }));
30957
- }, ZX = {
30997
+ }, iZ = {
30958
30998
  sm: 340,
30959
30999
  md: 480,
30960
31000
  lg: 640
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);
31001
+ }, aZ = Cu(function({ children: e, widgetWidth: t = "sm" }, n) {
31002
+ let r = iZ[t], [i, a] = X(), o = vu.toArray(e), s = Y(null);
30963
31003
  return K(() => {
30964
31004
  let e = () => {
30965
31005
  let e = s.current?.offsetWidth;
@@ -30978,7 +31018,7 @@ var JX = () => {
30978
31018
  children: e
30979
31019
  }) : i && i > 1 && /* @__PURE__ */ Q("div", {
30980
31020
  className: "relative -mr-4",
30981
- children: /* @__PURE__ */ Q(XX, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
31021
+ children: /* @__PURE__ */ Q(rZ, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
30982
31022
  style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
30983
31023
  className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
30984
31024
  children: e
@@ -30986,7 +31026,7 @@ var JX = () => {
30986
31026
  })
30987
31027
  })
30988
31028
  });
30989
- }), $X = [
31029
+ }), oZ = [
30990
31030
  "sm",
30991
31031
  "lg",
30992
31032
  "md",
@@ -30999,26 +31039,26 @@ var JX = () => {
30999
31039
  "sm",
31000
31040
  "md",
31001
31041
  "md"
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", {
31042
+ ], sZ = ia(aZ, () => /* @__PURE__ */ Q(cs, { children: /* @__PURE__ */ Q(aZ, { children: oZ.map((e, t) => /* @__PURE__ */ Q(ze.Skeleton, { height: e }, t)) }) })), cZ = ({ children: e }) => /* @__PURE__ */ Q("div", {
31003
31043
  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)]",
31004
31044
  children: e
31005
- }), nZ = ia(Cu(function({ children: e }, t) {
31045
+ }), lZ = ia(Cu(function({ children: e }, t) {
31006
31046
  return /* @__PURE__ */ Q(xl, {
31007
31047
  ref: t,
31008
31048
  showBar: !1,
31009
- children: /* @__PURE__ */ Q(tZ, { children: e })
31049
+ children: /* @__PURE__ */ Q(cZ, { children: e })
31010
31050
  });
31011
31051
  }), () => /* @__PURE__ */ Q(cs, {
31012
31052
  orientation: "horizontal",
31013
- children: /* @__PURE__ */ $(tZ, { children: [
31053
+ children: /* @__PURE__ */ $(cZ, { children: [
31014
31054
  /* @__PURE__ */ Q(ze.Skeleton, {}),
31015
31055
  /* @__PURE__ */ Q(ze.Skeleton, {}),
31016
31056
  /* @__PURE__ */ Q(ze.Skeleton, {})
31017
31057
  ] })
31018
- })), rZ = ze;
31058
+ })), uZ = ze;
31019
31059
  //#endregion
31020
31060
  //#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
31021
- function iZ({ title: e, description: t, emoji: n, actions: r }) {
31061
+ function dZ({ title: e, description: t, emoji: n, actions: r }) {
31022
31062
  if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
31023
31063
  return /* @__PURE__ */ Q(E, {
31024
31064
  title: e,
@@ -31029,7 +31069,7 @@ function iZ({ title: e, description: t, emoji: n, actions: r }) {
31029
31069
  }
31030
31070
  //#endregion
31031
31071
  //#region src/blocks/Widgets/WidgetEmptyState/index.tsx
31032
- var aZ = Sn(En("WidgetEmptyState", iZ)), oZ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
31072
+ var fZ = Sn(En("WidgetEmptyState", dZ)), pZ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
31033
31073
  let i = Cn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
31034
31074
  a,
31035
31075
  t,
@@ -31043,9 +31083,9 @@ var aZ = Sn(En("WidgetEmptyState", iZ)), oZ = ({ identifier: e, allowedRoutes: t
31043
31083
  n
31044
31084
  ]);
31045
31085
  return o ? r : (i && console.error(s), null);
31046
- }, sZ = Sn(hs({
31086
+ }, mZ = Sn(hs({
31047
31087
  name: "ScrollArea",
31048
31088
  type: "layout"
31049
31089
  }, xl));
31050
31090
  //#endregion
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 };
31091
+ export { fX 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, YW as DEFAULT_EXPECTED_ITEMS_COUNT, sZ as Dashboard, wT as DaytimePage, Zo as DetailsItem, vr as DetailsItemsList, nn as Dialog, $a as Dropdown, BW as EVENT_LIST_GAP, Bm as EntitySelect, St as F0ActionBar, cX as F0AgenticHome, uX 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, EW as LIST_COMPACT_AFTER, RW 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, xK 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, pZ 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, dX as RECOMMENDED_AGENTIC_HOME_RULES, Ll as RECOMMENDED_MAX_MARKERS, F as RadarChart, Nh as Reactions, gi as RichTextDisplay, P as RichTextEditor, IW as SLOT_ROW_BLEED, XW as SLOT_SKELETON_ITEM_TESTID, mZ 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, yG as SlotWidget, vG 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, uZ as Widget, kH as WidgetAvatarsListItem, xX as WidgetCatalog, fZ as WidgetEmptyState, wH as WidgetHighlightButton, LH as WidgetInboxList, MH as WidgetInboxListItem, XU as WidgetSection, zH as WidgetSimpleList, FH as WidgetSimpleListItem, lZ 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, aG as defaultSlotRenderers, iG 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, AW 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, GW as heldDialogActions, OW 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, zW as listMoreButtonClass, kW 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, PW as railActionTones, zc as rangeSeparator, bx as readMeetingMediaPreferences, PS as reorderForSpeakers, Cp as resizableDirections, yS as resolveAutoFocus, wc as resolveGranularityDefinition, Vv as resolvePlacement, TW as resolveSlotRenderer, jW as resolveWidgetHeader, __ as sanitizeMeetingReaction, wj as seedFromStorage, Me as selectSizes, le as selectVariants, Wv as settlePlacement, LW 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, FW as widgetChrome, NW as widgetParamsAreComplete, MW as widgetTitle };