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