@factorialco/f0-react 16.0.0 → 16.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26919,7 +26919,34 @@ function DW({ text: e, placeholder: t, icon: n, onClick: r }) {
26919
26919
  //#endregion
26920
26920
  //#region src/domains/platform/home/Home/ClockIn/ClockInControls/Skeleton.tsx
26921
26921
  function OW({ variant: e = "default", canSeeGraph: t = !0, canShowLocation: n = !0, canShowProject: r = !1 }) {
26922
- return e === "horizontal-bar" ? /* @__PURE__ */ $("div", {
26922
+ return e === "row" ? /* @__PURE__ */ $(W, {
26923
+ role: "status",
26924
+ "aria-busy": "true",
26925
+ "aria-live": "polite",
26926
+ display: "flex",
26927
+ flexDirection: "column",
26928
+ gap: "lg",
26929
+ children: [/* @__PURE__ */ $(W, {
26930
+ display: "flex",
26931
+ flexDirection: "row",
26932
+ alignItems: "center",
26933
+ gap: "lg",
26934
+ children: [
26935
+ /* @__PURE__ */ Q(z, { className: "h-7 w-24 shrink-0" }),
26936
+ n || r ? /* @__PURE__ */ Q(z, { className: "ml-auto h-8 w-40 min-w-0 rounded" }) : null,
26937
+ /* @__PURE__ */ Q(z, { className: "ml-auto h-8 w-24 shrink-0 rounded" })
26938
+ ]
26939
+ }), t ? /* @__PURE__ */ $("div", {
26940
+ className: "flex flex-col gap-1.5",
26941
+ children: [/* @__PURE__ */ Q(z, { className: "h-1.5 w-full rounded-full" }), /* @__PURE__ */ $(W, {
26942
+ display: "flex",
26943
+ flexDirection: "row",
26944
+ justifyContent: "between",
26945
+ gap: "md",
26946
+ children: [/* @__PURE__ */ Q(z, { className: "h-5 w-12" }), /* @__PURE__ */ Q(z, { className: "h-5 w-32" })]
26947
+ })]
26948
+ }) : null]
26949
+ }) : e === "horizontal-bar" ? /* @__PURE__ */ $("div", {
26923
26950
  role: "status",
26924
26951
  "aria-busy": "true",
26925
26952
  "aria-live": "polite",
@@ -26969,13 +26996,85 @@ function OW({ variant: e = "default", canSeeGraph: t = !0, canShowLocation: n =
26969
26996
  });
26970
26997
  }
26971
26998
  //#endregion
26999
+ //#region src/domains/platform/home/Home/ClockIn/ClockInControls/WorkSelector.tsx
27000
+ var kW = " › ", AW = " · ", jW = (e, t) => {
27001
+ if (!t) return [];
27002
+ for (let n of e) {
27003
+ if (n.id === t) return [n];
27004
+ let e = jW(n.children ?? [], t);
27005
+ if (e.length) return [n, ...e];
27006
+ }
27007
+ return [];
27008
+ }, MW = (e, t, n) => e.map((e) => {
27009
+ let r = e.icon;
27010
+ return e.children?.length ? {
27011
+ type: "submenu",
27012
+ label: e.name,
27013
+ icon: r,
27014
+ items: MW(e.children, t, n)
27015
+ } : {
27016
+ label: e.name,
27017
+ icon: r,
27018
+ checked: e.id === t,
27019
+ onClick: () => n(e.id)
27020
+ };
27021
+ }), NW = ({ locationPath: e, projectPath: t }) => [e.at(-1)?.name, t.map((e) => e.name).join(kW)].filter(Boolean).join(AW);
27022
+ function PW({ locations: e, locationId: t, onChangeLocationId: n, projects: r, projectId: i, onChangeProjectId: a, labels: o, disabled: s = !1 }) {
27023
+ let c = CW(e), l = TW(r), u = jW(c, t), d = NW({
27024
+ locationPath: u,
27025
+ projectPath: jW(l, i)
27026
+ }), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ? ci : za), p = [
27027
+ ...c.length ? [{
27028
+ type: "label",
27029
+ text: o.selectLocation
27030
+ }, ...MW(c, t, n)] : [],
27031
+ ...c.length && l.length ? [{ type: "separator" }] : [],
27032
+ ...l.length && a ? [{
27033
+ type: "label",
27034
+ text: o.selectProject
27035
+ }, ...MW(l, i, a)] : []
27036
+ ], m = [e.length ? o.selectLocation : void 0, r.length ? o.selectProject : void 0].filter(Boolean).join(AW);
27037
+ return /* @__PURE__ */ Q(hr, {
27038
+ items: p,
27039
+ align: "end",
27040
+ disabled: s,
27041
+ children: /* @__PURE__ */ $("button", {
27042
+ type: "button",
27043
+ "aria-label": d ? `${m}: ${d}` : m,
27044
+ title: d || void 0,
27045
+ className: B("flex h-8 min-w-0 max-w-full flex-row items-center gap-1 rounded border border-solid border-f1-border bg-transparent px-2 font-medium text-f1-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-f1-special-ring focus-visible:ring-offset-1", s ? "cursor-default" : "cursor-pointer hover:bg-f1-background-hover"),
27046
+ children: [
27047
+ /* @__PURE__ */ Q(U, {
27048
+ icon: f,
27049
+ size: "md"
27050
+ }),
27051
+ /* @__PURE__ */ Q("span", {
27052
+ className: "min-w-0 truncate",
27053
+ children: d || o.selectLocation
27054
+ }),
27055
+ s ? null : /* @__PURE__ */ Q(U, {
27056
+ icon: Ls,
27057
+ size: "sm"
27058
+ })
27059
+ ]
27060
+ })
27061
+ });
27062
+ }
27063
+ //#endregion
26972
27064
  //#region src/domains/platform/home/Home/ClockIn/ClockInControls/ClockInControls.tsx
26973
- var kW = "[&_[data-testid=input-field-wrapper]]:bg-transparent", AW = {
27065
+ var FW = "[&_[data-testid=input-field-wrapper]]:bg-transparent", IW = {
26974
27066
  "clocked-in": "positive",
26975
27067
  break: "promote",
26976
27068
  "clocked-out": "neutral"
27069
+ }, LW = {
27070
+ "clocked-in": "text-f1-foreground-positive",
27071
+ break: "text-f1-icon-promote",
27072
+ "clocked-out": "text-f1-foreground"
27073
+ }, RW = (e) => {
27074
+ let t = Math.max(0, Math.floor(e));
27075
+ return `${Math.floor(t / 60).toString().padStart(2, "0")}:${(t % 60).toString().padStart(2, "0")}`;
26977
27076
  };
26978
- function jW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, locationId: i, locations: a, canShowLocation: o = !0, locationSelectorDisabled: s = !1, onClockIn: c, onClockOut: l, onBreak: u, breakTypes: d, onChangeBreakTypeId: f, canShowBreakButton: p = !0, canSeeGraph: m = !0, canSeeRemainingTime: h = !0, onChangeLocationId: g, canShowProject: _ = !0, projectSelectorElement: v, locationSelectorElement: y, projects: b, projectId: x, onChangeProjectId: S, projectSelectorDisabled: C = !1, projectRequired: w = !0, locationRequired: T = !0, breakTypeName: E, onBreakPromote: D, variant: O = "default", loading: k = !1 }) {
27077
+ function zW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, locationId: i, locations: a, canShowLocation: o = !0, locationSelectorDisabled: s = !1, onClockIn: c, onClockOut: l, onBreak: u, breakTypes: d, onChangeBreakTypeId: f, canShowBreakButton: p = !0, canSeeGraph: m = !0, canSeeRemainingTime: h = !0, onChangeLocationId: g, canShowProject: _ = !0, projectSelectorElement: v, locationSelectorElement: y, projects: b, projectId: x, onChangeProjectId: S, projectSelectorDisabled: C = !1, projectRequired: w = !0, locationRequired: T = !0, breakTypeName: E, onBreakPromote: D, variant: O = "default", loading: k = !1 }) {
26979
27078
  let { status: A, statusText: j, subtitle: M } = mW({
26980
27079
  data: n,
26981
27080
  labels: r,
@@ -27102,10 +27201,10 @@ function jW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
27102
27201
  _ ? me : null,
27103
27202
  ae && E ? /* @__PURE__ */ Q(Xs, { text: E }) : null
27104
27203
  ] }), ge = o && !!pe, _e = _ && !!me, ve = ge ? /* @__PURE__ */ Q("div", {
27105
- className: B("flex min-w-0 flex-1 flex-row", te && kW),
27204
+ className: B("flex min-w-0 flex-1 flex-row", te && FW),
27106
27205
  children: pe
27107
27206
  }) : null, ye = _e ? /* @__PURE__ */ Q("div", {
27108
- className: B("min-w-0 flex-1", ne && kW),
27207
+ className: B("min-w-0 flex-1", ne && FW),
27109
27208
  children: me
27110
27209
  }) : null, be = ge && _e, xe = be ? ye : null, Se = be ? ve : ve ?? ye;
27111
27210
  if (k) return /* @__PURE__ */ Q(OW, {
@@ -27114,6 +27213,97 @@ function jW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
27114
27213
  canShowLocation: o,
27115
27214
  canShowProject: _ && !!(b?.length ?? me)
27116
27215
  });
27216
+ if (O === "row") {
27217
+ let { primaryLabel: s, time: c } = cW({
27218
+ data: n,
27219
+ trackedMinutes: e,
27220
+ remainingMinutes: h ? t : 0
27221
+ }), l = h && t !== void 0 && A !== "break" && e + t > 0 ? RW(e + t) : void 0, u = h && (t ?? 0) < 0, d = o ? a : [], f = _ ? b ?? [] : [], p = d.length || f.length ? /* @__PURE__ */ Q(PW, {
27222
+ locations: d,
27223
+ locationId: i,
27224
+ onChangeLocationId: g,
27225
+ projects: f,
27226
+ projectId: x,
27227
+ onChangeProjectId: S,
27228
+ labels: r,
27229
+ disabled: !te && !ne
27230
+ }) : null;
27231
+ return /* @__PURE__ */ $(W, {
27232
+ display: "flex",
27233
+ flexDirection: "column",
27234
+ gap: "lg",
27235
+ children: [/* @__PURE__ */ $(W, {
27236
+ display: "flex",
27237
+ flexDirection: "row",
27238
+ alignItems: "center",
27239
+ gap: "lg",
27240
+ children: [
27241
+ /* @__PURE__ */ $(W, {
27242
+ display: "flex",
27243
+ flexDirection: "row",
27244
+ alignItems: "center",
27245
+ shrink: !1,
27246
+ gap: "md",
27247
+ children: [
27248
+ /* @__PURE__ */ Q(Af, { variant: IW[A] }),
27249
+ /* @__PURE__ */ $("span", {
27250
+ className: B("whitespace-nowrap text-xl font-semibold tabular-nums", LW[A]),
27251
+ children: [c, l ? /* @__PURE__ */ Q("span", {
27252
+ className: "text-f1-foreground-secondary",
27253
+ children: ` / ${l}`
27254
+ }) : null]
27255
+ }),
27256
+ /* @__PURE__ */ Q("span", {
27257
+ className: "sr-only",
27258
+ children: [j, ae ? E : void 0].filter(Boolean).join(", ")
27259
+ })
27260
+ ]
27261
+ }),
27262
+ p ? /* @__PURE__ */ Q("div", {
27263
+ className: "flex min-w-0 flex-1 flex-row justify-end",
27264
+ children: p
27265
+ }) : null,
27266
+ /* @__PURE__ */ Q(W, {
27267
+ display: "flex",
27268
+ flexDirection: "row",
27269
+ alignItems: "center",
27270
+ marginLeft: "auto",
27271
+ shrink: !1,
27272
+ gap: "md",
27273
+ children: fe
27274
+ })
27275
+ ]
27276
+ }), m ? /* @__PURE__ */ $("div", {
27277
+ className: "flex flex-col gap-1.5",
27278
+ children: [/* @__PURE__ */ Q(pW, {
27279
+ variant: "horizontal-bar",
27280
+ data: n,
27281
+ trackedMinutes: e,
27282
+ remainingMinutes: h ? t : 0
27283
+ }), /* @__PURE__ */ $("div", {
27284
+ className: "flex flex-row items-center justify-between gap-2 text-f1-foreground-secondary",
27285
+ children: [/* @__PURE__ */ $("span", {
27286
+ className: "flex min-w-0 flex-row gap-1",
27287
+ children: [/* @__PURE__ */ Q("span", {
27288
+ className: "shrink-0 tabular-nums",
27289
+ children: s
27290
+ }), ae && E ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
27291
+ "aria-hidden": !0,
27292
+ className: "shrink-0",
27293
+ children: "·"
27294
+ }), /* @__PURE__ */ Q(nr, {
27295
+ tag: "span",
27296
+ className: "min-w-0",
27297
+ children: E
27298
+ })] }) : null]
27299
+ }), M ? /* @__PURE__ */ Q("span", {
27300
+ className: B("shrink-0 tabular-nums", u && "text-f1-foreground-warning"),
27301
+ children: M
27302
+ }) : null]
27303
+ })]
27304
+ }) : null]
27305
+ });
27306
+ }
27117
27307
  if (O === "horizontal-bar") {
27118
27308
  let { primaryLabel: r, time: i } = cW({
27119
27309
  data: n,
@@ -27132,7 +27322,7 @@ function jW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
27132
27322
  className: "line-clamp-1 shrink-0 text-xl font-semibold text-f1-foreground",
27133
27323
  children: j
27134
27324
  }),
27135
- /* @__PURE__ */ Q(Af, { variant: AW[A] }),
27325
+ /* @__PURE__ */ Q(Af, { variant: IW[A] }),
27136
27326
  ae && E ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
27137
27327
  "aria-hidden": !0,
27138
27328
  className: "shrink-0 text-f1-foreground-secondary",
@@ -27192,7 +27382,7 @@ function jW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
27192
27382
  children: [/* @__PURE__ */ Q("span", {
27193
27383
  className: "line-clamp-1 text-2xl font-semibold text-f1-foreground",
27194
27384
  children: j
27195
- }), /* @__PURE__ */ Q(Af, { variant: AW[A] })]
27385
+ }), /* @__PURE__ */ Q(Af, { variant: IW[A] })]
27196
27386
  }), M ? /* @__PURE__ */ Q("p", {
27197
27387
  className: "line-clamp-1 text-f1-foreground-secondary",
27198
27388
  children: M
@@ -27215,26 +27405,26 @@ function jW({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
27215
27405
  }
27216
27406
  //#endregion
27217
27407
  //#region src/domains/employee-lifecycle/profile/Profile/TasksList/TaskItem/TaskItem.tsx
27218
- var MW = {
27408
+ var BW = {
27219
27409
  done: Ur,
27220
27410
  "in-progress": Na,
27221
27411
  todo: ri
27222
- }, NW = {
27412
+ }, VW = {
27223
27413
  done: "text-f1-icon-success",
27224
27414
  "in-progress": "text-f1-icon-info",
27225
27415
  todo: "text-f1-icon"
27226
27416
  };
27227
- function PW({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
27417
+ function HW({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
27228
27418
  let i = () => {
27229
27419
  n?.(e);
27230
27420
  }, a = J(() => {
27231
- if (!r) return MW[t];
27421
+ if (!r) return BW[t];
27232
27422
  }, [t, r]);
27233
27423
  return /* @__PURE__ */ Q(JU, {
27234
27424
  id: e.id,
27235
27425
  title: e.text,
27236
27426
  icon: a,
27237
- iconClassName: NW[t],
27427
+ iconClassName: VW[t],
27238
27428
  alert: e.badge?.isPastDue ? {
27239
27429
  text: e.badge.text,
27240
27430
  level: "critical"
@@ -27249,7 +27439,7 @@ function PW({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
27249
27439
  }
27250
27440
  //#endregion
27251
27441
  //#region src/domains/employee-lifecycle/profile/Profile/TasksList/TasksList.tsx
27252
- function FW({ tasks: e, onClickTask: t, hideIcons: n = !1, maxTasksToShow: r = 5, emptyMessage: i = "No tasks assigned" }) {
27442
+ function UW({ tasks: e, onClickTask: t, hideIcons: n = !1, maxTasksToShow: r = 5, emptyMessage: i = "No tasks assigned" }) {
27253
27443
  let a = [
27254
27444
  {
27255
27445
  key: "done",
@@ -27278,7 +27468,7 @@ function FW({ tasks: e, onClickTask: t, hideIcons: n = !1, maxTasksToShow: r = 5
27278
27468
  children: o ? /* @__PURE__ */ Q("p", {
27279
27469
  className: "pl-2 font-medium",
27280
27470
  children: i
27281
- }) : a.slice(0, r).map((e) => /* @__PURE__ */ Q(PW, {
27471
+ }) : a.slice(0, r).map((e) => /* @__PURE__ */ Q(HW, {
27282
27472
  task: e,
27283
27473
  status: e.status,
27284
27474
  hideIcon: n,
@@ -27288,40 +27478,40 @@ function FW({ tasks: e, onClickTask: t, hideIcons: n = !1, maxTasksToShow: r = 5
27288
27478
  }
27289
27479
  //#endregion
27290
27480
  //#region src/domains/platform/home/Home/home-motion.tsx
27291
- var IW = [
27481
+ var WW = [
27292
27482
  .05,
27293
27483
  .7,
27294
27484
  .1,
27295
27485
  1
27296
- ], LW = { duration: 0 }, RW = (e, t = 0) => (t + Math.min(e * 55, 330)) / 1e3, zW = (e, t = 0, n = !1) => n ? LW : {
27486
+ ], GW = { duration: 0 }, KW = (e, t = 0) => (t + Math.min(e * 55, 330)) / 1e3, qW = (e, t = 0, n = !1) => n ? GW : {
27297
27487
  duration: 320 / 1e3,
27298
- ease: IW,
27299
- delay: RW(e, t)
27300
- }, BW = "top right", VW = .9, HW = .94, UW = {
27488
+ ease: WW,
27489
+ delay: KW(e, t)
27490
+ }, JW = "top right", YW = .9, XW = .94, ZW = {
27301
27491
  type: "spring",
27302
27492
  stiffness: 420,
27303
27493
  damping: 32,
27304
27494
  mass: .9
27305
- }, WW = {
27495
+ }, QW = {
27306
27496
  duration: 140 / 1e3,
27307
27497
  ease: "easeIn"
27308
- }, GW = {
27498
+ }, $W = {
27309
27499
  type: "spring",
27310
27500
  stiffness: 420,
27311
27501
  damping: 26,
27312
27502
  mass: .7
27313
- }, KW = {
27503
+ }, eG = {
27314
27504
  type: "spring",
27315
27505
  stiffness: 520,
27316
27506
  damping: 38,
27317
27507
  mass: .8
27318
- }, qW = {
27508
+ }, tG = {
27319
27509
  duration: 180 / 1e3,
27320
27510
  ease: "easeIn"
27321
- }, JW = UW, YW = {
27511
+ }, nG = ZW, rG = {
27322
27512
  duration: .28,
27323
- ease: IW
27324
- }, XW = (e, t) => t ? LW : e, ZW = (e, t) => {
27513
+ ease: WW
27514
+ }, iG = (e, t) => t ? GW : e, aG = (e, t) => {
27325
27515
  let [n, r] = X(e);
27326
27516
  return K(() => {
27327
27517
  if (!e) {
@@ -27335,7 +27525,7 @@ var IW = [
27335
27525
  let n = setTimeout(() => r(!0), t);
27336
27526
  return () => clearTimeout(n);
27337
27527
  }, [e, t]), n;
27338
- }, QW = (e) => {
27528
+ }, oG = (e) => {
27339
27529
  let [t, n] = X(e <= 0);
27340
27530
  return K(() => {
27341
27531
  if (e <= 0) {
@@ -27345,26 +27535,26 @@ var IW = [
27345
27535
  let t = setTimeout(() => n(!0), e);
27346
27536
  return () => clearTimeout(t);
27347
27537
  }, [e]), t;
27348
- }, $W = (e = 0) => e + 330 + 320, eG = {
27538
+ }, sG = (e = 0) => e + 330 + 320, cG = {
27349
27539
  duration: 220 / 1e3,
27350
- ease: IW
27351
- }, tG = {
27540
+ ease: WW
27541
+ }, lG = {
27352
27542
  duration: 140 / 1e3,
27353
27543
  ease: "easeIn"
27354
- }, nG = {
27544
+ }, uG = {
27355
27545
  type: "spring",
27356
27546
  stiffness: 520,
27357
27547
  damping: 40,
27358
27548
  mass: .8
27359
- }, rG = (e, t = 4) => {
27549
+ }, dG = (e, t = 4) => {
27360
27550
  let n = Y(e), r = Math.abs(e - n.current) > t;
27361
27551
  return K(() => {
27362
27552
  n.current = e;
27363
27553
  }), r;
27364
- }, iG = ({ children: e }) => /* @__PURE__ */ Q(Wn, {
27554
+ }, fG = ({ children: e }) => /* @__PURE__ */ Q(Wn, {
27365
27555
  initial: !1,
27366
27556
  children: e
27367
- }), aG = ({ className: e, animated: t = !0, children: n }) => {
27557
+ }), pG = ({ className: e, animated: t = !0, children: n }) => {
27368
27558
  let r = Yn() || !t;
27369
27559
  return /* @__PURE__ */ Q(V.div, {
27370
27560
  className: e,
@@ -27383,17 +27573,17 @@ var IW = [
27383
27573
  opacity: 0,
27384
27574
  height: 0,
27385
27575
  transition: {
27386
- ...XW(tG, r),
27387
- height: XW(nG, r)
27576
+ ...iG(lG, r),
27577
+ height: iG(uG, r)
27388
27578
  }
27389
27579
  },
27390
27580
  transition: {
27391
- ...XW(eG, r),
27392
- height: XW(nG, r)
27581
+ ...iG(cG, r),
27582
+ height: iG(uG, r)
27393
27583
  },
27394
27584
  children: n
27395
27585
  });
27396
- }, oG = ({ order: e = 0, delayMs: t = 0, arriving: n = !0, fullHeight: r, className: i, children: a }) => {
27586
+ }, mG = ({ order: e = 0, delayMs: t = 0, arriving: n = !0, fullHeight: r, className: i, children: a }) => {
27397
27587
  let o = Yn();
27398
27588
  return /* @__PURE__ */ Q(V.div, {
27399
27589
  className: B(r && "h-full", i),
@@ -27405,13 +27595,13 @@ var IW = [
27405
27595
  opacity: 1,
27406
27596
  y: 0
27407
27597
  },
27408
- transition: zW(e, t, o),
27598
+ transition: qW(e, t, o),
27409
27599
  children: a
27410
27600
  });
27411
27601
  };
27412
27602
  //#endregion
27413
27603
  //#region src/domains/platform/home/Home/HomeSidebarToggle.tsx
27414
- function sG() {
27604
+ function hG() {
27415
27605
  let { sidebarState: e, toggleSidebar: t, isSmallScreen: n, hasPrimarySidebar: r } = Kl();
27416
27606
  return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(HT, {}), !r && (n || e === "hidden") ? /* @__PURE__ */ Q(H, {
27417
27607
  variant: "ghost",
@@ -27423,7 +27613,7 @@ function sG() {
27423
27613
  }
27424
27614
  //#endregion
27425
27615
  //#region src/blocks/Widgets/Content/ProgressBarDuo/ProgressBarDuo.tsx
27426
- var cG = ku(function({ value: e, max: t = 100 }, n) {
27616
+ var gG = ku(function({ value: e, max: t = 100 }, n) {
27427
27617
  let r = Math.min(100, Math.max(0, e / t * 100));
27428
27618
  return /* @__PURE__ */ $("div", {
27429
27619
  ref: n,
@@ -27440,10 +27630,10 @@ var cG = ku(function({ value: e, max: t = 100 }, n) {
27440
27630
  })]
27441
27631
  });
27442
27632
  });
27443
- cG.displayName = "ProgressBarDuo";
27633
+ gG.displayName = "ProgressBarDuo";
27444
27634
  //#endregion
27445
27635
  //#region src/blocks/Widgets/WidgetSection/WidgetSection.tsx
27446
- var lG = ku(({ title: e, children: t }, n) => (qn(e, { disallowEmpty: !0 }, { componentName: "WidgetSection" }), /* @__PURE__ */ $("div", {
27636
+ var _G = ku(({ title: e, children: t }, n) => (qn(e, { disallowEmpty: !0 }, { componentName: "WidgetSection" }), /* @__PURE__ */ $("div", {
27447
27637
  ref: n,
27448
27638
  className: "flex flex-col gap-2",
27449
27639
  children: [/* @__PURE__ */ Q("p", {
@@ -27451,24 +27641,24 @@ var lG = ku(({ title: e, children: t }, n) => (qn(e, { disallowEmpty: !0 }, { co
27451
27641
  children: e
27452
27642
  }), t]
27453
27643
  })));
27454
- lG.displayName = "WidgetSection";
27455
- var uG = yn(wn("WidgetSection", lG)), dG = "**", fG = () => dG, pG = ({ children: e }) => /* @__PURE__ */ Q(W, {
27644
+ _G.displayName = "WidgetSection";
27645
+ var vG = yn(wn("WidgetSection", _G)), yG = "**", bG = () => yG, xG = ({ children: e }) => /* @__PURE__ */ Q(W, {
27456
27646
  height: "52",
27457
27647
  paddingTop: "sm",
27458
27648
  children: e
27459
- }), mG = (e, t) => ({
27460
- render: (t) => /* @__PURE__ */ Q(hG, {
27649
+ }), SG = (e, t) => ({
27650
+ render: (t) => /* @__PURE__ */ Q(CG, {
27461
27651
  type: e,
27462
27652
  params: t ?? {}
27463
27653
  }),
27464
- skeleton: (e) => /* @__PURE__ */ Q(pG, { children: t(e ?? {}) })
27654
+ skeleton: (e) => /* @__PURE__ */ Q(xG, { children: t(e ?? {}) })
27465
27655
  });
27466
- function hG({ type: e, params: { canBeBlurred: t = !1, ...n } }) {
27656
+ function CG({ type: e, params: { canBeBlurred: t = !1, ...n } }) {
27467
27657
  let { enabled: r } = ot(), i = t && r ? {
27468
- valueFormatter: fG,
27469
- tooltipValueFormatter: fG,
27470
- xValueFormatter: fG,
27471
- xTooltipValueFormatter: fG,
27658
+ valueFormatter: bG,
27659
+ tooltipValueFormatter: bG,
27660
+ xValueFormatter: bG,
27661
+ xTooltipValueFormatter: bG,
27472
27662
  showPercentage: !1,
27473
27663
  showConversion: !1,
27474
27664
  showTargetProgress: !1,
@@ -27478,21 +27668,21 @@ function hG({ type: e, params: { canBeBlurred: t = !1, ...n } }) {
27478
27668
  tooltip: { show: !1 }
27479
27669
  }
27480
27670
  } : {};
27481
- return /* @__PURE__ */ Q(pG, { children: /* @__PURE__ */ Q(en, {
27671
+ return /* @__PURE__ */ Q(xG, { children: /* @__PURE__ */ Q(en, {
27482
27672
  ...n,
27483
27673
  ...i,
27484
27674
  type: e
27485
27675
  }) });
27486
27676
  }
27487
- var gG = () => /* @__PURE__ */ $(W, {
27677
+ var wG = () => /* @__PURE__ */ $(W, {
27488
27678
  display: "flex",
27489
27679
  flexDirection: "column",
27490
27680
  gap: "md",
27491
27681
  children: [/* @__PURE__ */ Q(z, { className: "h-2 w-full rounded-full" }), /* @__PURE__ */ Q(z, { className: "h-3 w-1/3" })]
27492
- }), _G = ({ title: e, children: t }) => e ? /* @__PURE__ */ Q(uG, {
27682
+ }), TG = ({ title: e, children: t }) => e ? /* @__PURE__ */ Q(vG, {
27493
27683
  title: e,
27494
27684
  children: t
27495
- }) : t, vG = (e) => {
27685
+ }) : t, EG = (e) => {
27496
27686
  let t = (e) => {
27497
27687
  let { title: t, ...n } = e ?? {};
27498
27688
  return {
@@ -27503,21 +27693,21 @@ var gG = () => /* @__PURE__ */ $(W, {
27503
27693
  return {
27504
27694
  render: (n) => {
27505
27695
  let { title: r, rest: i } = t(n);
27506
- return /* @__PURE__ */ Q(_G, {
27696
+ return /* @__PURE__ */ Q(TG, {
27507
27697
  title: r,
27508
27698
  children: e.render(i)
27509
27699
  });
27510
27700
  },
27511
27701
  skeleton: (n) => {
27512
27702
  let { title: r, rest: i } = t(n);
27513
- return /* @__PURE__ */ Q(_G, {
27703
+ return /* @__PURE__ */ Q(TG, {
27514
27704
  title: r,
27515
27705
  children: e.skeleton(i)
27516
27706
  });
27517
27707
  }
27518
27708
  };
27519
- }, yG = {
27520
- "bar-chart": mG("bar", (e) => {
27709
+ }, DG = {
27710
+ "bar-chart": SG("bar", (e) => {
27521
27711
  let t = e;
27522
27712
  return /* @__PURE__ */ Q(dt, {
27523
27713
  orientation: t.orientation,
@@ -27525,7 +27715,7 @@ var gG = () => /* @__PURE__ */ $(W, {
27525
27715
  showLegend: !1
27526
27716
  });
27527
27717
  }),
27528
- "line-chart": mG("line", (e) => {
27718
+ "line-chart": SG("line", (e) => {
27529
27719
  let t = e;
27530
27720
  return /* @__PURE__ */ Q(Ze, {
27531
27721
  lineType: t.lineType,
@@ -27533,54 +27723,54 @@ var gG = () => /* @__PURE__ */ $(W, {
27533
27723
  showLegend: !1
27534
27724
  });
27535
27725
  }),
27536
- "pie-chart": mG("pie", (e) => /* @__PURE__ */ Q(fn, { innerRadius: e.innerRadius })),
27537
- "radar-chart": mG("radar", () => /* @__PURE__ */ Q(ye, { showLegend: !1 })),
27538
- "gauge-chart": mG("gauge", () => /* @__PURE__ */ Q(on, {})),
27539
- "funnel-chart": mG("funnel", () => /* @__PURE__ */ Q(Ue, {})),
27540
- "heatmap-chart": mG("heatmap", () => /* @__PURE__ */ Q(gn, {})),
27541
- "scatter-chart": mG("scatter", () => /* @__PURE__ */ Q(d, {})),
27726
+ "pie-chart": SG("pie", (e) => /* @__PURE__ */ Q(fn, { innerRadius: e.innerRadius })),
27727
+ "radar-chart": SG("radar", () => /* @__PURE__ */ Q(ye, { showLegend: !1 })),
27728
+ "gauge-chart": SG("gauge", () => /* @__PURE__ */ Q(on, {})),
27729
+ "funnel-chart": SG("funnel", () => /* @__PURE__ */ Q(Ue, {})),
27730
+ "heatmap-chart": SG("heatmap", () => /* @__PURE__ */ Q(gn, {})),
27731
+ "scatter-chart": SG("scatter", () => /* @__PURE__ */ Q(d, {})),
27542
27732
  "combo-chart": {
27543
27733
  render: (e) => /* @__PURE__ */ Q(W, {
27544
27734
  minHeight: "52",
27545
27735
  paddingTop: "sm",
27546
27736
  children: /* @__PURE__ */ Q(he, { ...e })
27547
27737
  }),
27548
- skeleton: () => /* @__PURE__ */ Q(pG, { children: /* @__PURE__ */ Q(dt, { showLegend: !1 }) })
27738
+ skeleton: () => /* @__PURE__ */ Q(xG, { children: /* @__PURE__ */ Q(dt, { showLegend: !1 }) })
27549
27739
  },
27550
27740
  "category-bar-chart": {
27551
27741
  render: (e) => /* @__PURE__ */ Q(vn, { ...e }),
27552
- skeleton: () => /* @__PURE__ */ Q(gG, {})
27742
+ skeleton: () => /* @__PURE__ */ Q(wG, {})
27553
27743
  },
27554
27744
  "progress-bar": {
27555
27745
  render: (e) => /* @__PURE__ */ Q(x, { ...e }),
27556
- skeleton: () => /* @__PURE__ */ Q(gG, {})
27746
+ skeleton: () => /* @__PURE__ */ Q(wG, {})
27557
27747
  },
27558
27748
  "progress-bar-duo": {
27559
- render: (e) => /* @__PURE__ */ Q(cG, { ...e }),
27749
+ render: (e) => /* @__PURE__ */ Q(gG, { ...e }),
27560
27750
  skeleton: () => /* @__PURE__ */ Q(z, { className: "h-2 w-full rounded" })
27561
27751
  }
27562
- }, bG = Object.fromEntries(Object.entries(yG).map(([e, t]) => [e, vG(t)])), xG = "overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background shadow", SG = 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"), CG = Ou(!1), wG = CG.Provider, TG = () => Nu(CG), EG = 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"), DG = "pointer-events-auto opacity-100", OG = {
27752
+ }, OG = Object.fromEntries(Object.entries(DG).map(([e, t]) => [e, EG(t)])), kG = "overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background shadow", AG = 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"), jG = Ou(!1), MG = jG.Provider, NG = () => Nu(jG), PG = 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"), FG = "pointer-events-auto opacity-100", IG = {
27563
27753
  default: "text-f1-foreground-secondary",
27564
27754
  warning: "text-f1-foreground-warning",
27565
27755
  critical: "text-f1-foreground-critical"
27566
- }, kG = (e) => OG[e ?? "default"], AG = (e, t) => e ?? (t ? "critical" : void 0);
27567
- function jG(e, t) {
27756
+ }, LG = (e) => IG[e ?? "default"], RG = (e, t) => e ?? (t ? "critical" : void 0);
27757
+ function zG(e, t) {
27568
27758
  return typeof e == "string" ? e ? [{
27569
27759
  text: e,
27570
27760
  variant: t
27571
27761
  }] : [] : (e ?? []).filter((e) => e.text).map((e) => ({
27572
27762
  text: e.text,
27573
- variant: AG(e.variant, e.critical)
27763
+ variant: RG(e.variant, e.critical)
27574
27764
  }));
27575
27765
  }
27576
- function MG(e) {
27577
- return jG(e).map((e) => e.text).join(" · ");
27766
+ function BG(e) {
27767
+ return zG(e).map((e) => e.text).join(" · ");
27578
27768
  }
27579
- function NG({ 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: _ }) {
27769
+ function VG({ 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: _ }) {
27580
27770
  let v = !!d?.length, y = Qe(), [b, x] = X(null), S = n ?? (e ? /* @__PURE__ */ Q(Rs, {
27581
27771
  avatar: e,
27582
27772
  size: t
27583
- }) : null), C = jG(s, AG(c, l)), w = /* @__PURE__ */ $(Z, { children: [
27773
+ }) : null), C = zG(s, RG(c, l)), w = /* @__PURE__ */ $(Z, { children: [
27584
27774
  S ? /* @__PURE__ */ $("div", {
27585
27775
  className: "relative flex shrink-0",
27586
27776
  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]
@@ -27593,16 +27783,16 @@ function NG({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
27593
27783
  className: B("max-w-full shrink-0 font-medium text-f1-foreground", h && "text-lg"),
27594
27784
  children: r
27595
27785
  }), i ? /* @__PURE__ */ $("span", {
27596
- className: B("min-w-0 truncate", kG(AG(a, o))),
27786
+ className: B("min-w-0 truncate", LG(RG(a, o))),
27597
27787
  children: ["· ", i]
27598
27788
  }) : null]
27599
27789
  }), C.length > 0 ? /* @__PURE__ */ Q("div", {
27600
- className: B("truncate", h && "mt-0.5", kG(C.length === 1 ? C[0].variant : void 0)),
27790
+ className: B("truncate", h && "mt-0.5", LG(C.length === 1 ? C[0].variant : void 0)),
27601
27791
  children: C.map((e, t) => /* @__PURE__ */ $(Tu, { children: [t > 0 ? /* @__PURE__ */ Q("span", {
27602
27792
  className: "text-f1-foreground-secondary",
27603
27793
  children: " · "
27604
27794
  }) : null, /* @__PURE__ */ Q("span", {
27605
- className: kG(e.variant),
27795
+ className: LG(e.variant),
27606
27796
  children: e.text
27607
27797
  })] }, t))
27608
27798
  }) : null]
@@ -27639,7 +27829,7 @@ function NG({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
27639
27829
  return v ? /* @__PURE__ */ $("div", {
27640
27830
  className: "group/row relative",
27641
27831
  children: [O, /* @__PURE__ */ Q("div", {
27642
- className: B(EG, b && DG),
27832
+ className: B(PG, b && FG),
27643
27833
  children: d?.map((e) => {
27644
27834
  let t = /* @__PURE__ */ Q(H, {
27645
27835
  icon: e.icon,
@@ -27662,14 +27852,14 @@ function NG({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
27662
27852
  }
27663
27853
  //#endregion
27664
27854
  //#region src/domains/platform/home/Home/tracking.tsx
27665
- var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__PURE__ */ Q(PG.Provider, {
27855
+ var HG = Cu.createContext(void 0), UG = ({ tracking: e, children: t }) => /* @__PURE__ */ Q(HG.Provider, {
27666
27856
  value: e,
27667
27857
  children: t
27668
- }), IG = Cu.createContext(void 0), LG = ({ widgetId: e, children: t }) => /* @__PURE__ */ Q(IG.Provider, {
27858
+ }), WG = Cu.createContext(void 0), GG = ({ widgetId: e, children: t }) => /* @__PURE__ */ Q(WG.Provider, {
27669
27859
  value: e,
27670
27860
  children: t
27671
- }), RG = () => {
27672
- let e = Cu.useContext(PG), t = Cu.useContext(IG);
27861
+ }), KG = () => {
27862
+ let e = Cu.useContext(HG), t = Cu.useContext(WG);
27673
27863
  return Cu.useMemo(() => ({
27674
27864
  reportAction: (n) => {
27675
27865
  t !== void 0 && e?.onWidgetAction?.({
@@ -27685,18 +27875,18 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27685
27875
  });
27686
27876
  }
27687
27877
  }), [e, t]);
27688
- }, zG = (e) => e == null ? void 0 : typeof e == "function" ? { render: e } : e, BG = 6, VG = (e, t) => !!e.compact || !e.descriptionOptional && t > 6, HG = (e, t, n) => ({
27878
+ }, qG = (e) => e == null ? void 0 : typeof e == "function" ? { render: e } : e, JG = 6, YG = (e, t) => !!e.compact || !e.descriptionOptional && t > 6, XG = (e, t, n) => ({
27689
27879
  visualization: e,
27690
27880
  params: t,
27691
27881
  ...n
27692
- }), UG = (e, t, n) => ({
27882
+ }), ZG = (e, t, n) => ({
27693
27883
  visualization: "list",
27694
27884
  params: {
27695
27885
  schema: e,
27696
27886
  items: t
27697
27887
  },
27698
27888
  ...n
27699
- }), WG = (e, t) => (e) => t(e), GG = (e, t = {}) => {
27889
+ }), QG = (e, t) => (e) => t(e), $G = (e, t = {}) => {
27700
27890
  if (!e) return;
27701
27891
  let { title: n, info: r, ...i } = e, a = (e) => typeof e == "function" ? e(t) : e;
27702
27892
  return {
@@ -27704,14 +27894,14 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27704
27894
  title: a(n),
27705
27895
  info: a(r)
27706
27896
  };
27707
- }, KG = (e) => GG(e.header, e.params)?.title ?? e.id, qG = (e, t) => !e || e.safeParse(t ?? {}).success, JG = [
27897
+ }, eK = (e) => $G(e.header, e.params)?.title ?? e.id, tK = (e, t) => !e || e.safeParse(t ?? {}).success, nK = [
27708
27898
  "neutral",
27709
27899
  "accent",
27710
27900
  "critical",
27711
27901
  "warning",
27712
27902
  "promote",
27713
27903
  "positive"
27714
- ], YG = (e) => {
27904
+ ], rK = (e) => {
27715
27905
  let t = {
27716
27906
  action: e.action,
27717
27907
  summaries: e.summaries,
@@ -27726,7 +27916,7 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27726
27916
  ...t,
27727
27917
  status: "status" in e ? e.status : void 0
27728
27918
  };
27729
- }, XG = "-m-2", ZG = (e) => B(XG, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), QG = "ml-1.5 mt-1 self-start", $G = (e) => B(QG, e.isLastSlot && !e.hasFooter && "mb-1.5"), eK = "gap-2", tK = "xl", nK = (e, t, n, r) => {
27919
+ }, iK = "-m-2", aK = (e) => B(iK, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), oK = "ml-1.5 mt-1 self-start", sK = (e) => B(oK, e.isLastSlot && !e.hasFooter && "mb-1.5"), cK = "gap-2", lK = "xl", uK = (e, t, n, r) => {
27730
27920
  if (e === "module" && t.module) return { left: /* @__PURE__ */ Q(Hs, {
27731
27921
  module: t.module,
27732
27922
  size: n
@@ -27748,9 +27938,9 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27748
27938
  type: e,
27749
27939
  ...t.avatar
27750
27940
  },
27751
- avatarSize: r ? tK : n
27941
+ avatarSize: r ? lK : n
27752
27942
  } : {};
27753
- }, rK = (e, t, n, r) => {
27943
+ }, dK = (e, t, n, r) => {
27754
27944
  if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(Nn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(Ra, {
27755
27945
  date: w(t.date),
27756
27946
  size: r ? "lg" : "md"
@@ -27767,7 +27957,7 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27767
27957
  },
27768
27958
  size: n
27769
27959
  }) : void 0;
27770
- }, iK = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm", aK = (e, t) => (e ?? []).flatMap((e) => e.items ? e.items.flatMap((e) => (e.type === void 0 || e.type === "item") && e.onClick ? [{
27960
+ }, fK = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm", pK = (e, t) => (e ?? []).flatMap((e) => e.items ? e.items.flatMap((e) => (e.type === void 0 || e.type === "item") && e.onClick ? [{
27771
27961
  label: e.label,
27772
27962
  icon: e.icon,
27773
27963
  onClick: e.onClick
@@ -27781,7 +27971,7 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27781
27971
  onClick: () => {
27782
27972
  r(), t();
27783
27973
  }
27784
- })), oK = (e) => {
27974
+ })), mK = (e) => {
27785
27975
  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;
27786
27976
  return K(() => {
27787
27977
  a || n((e) => e.id === void 0 ? e : { shown: e.shown && {
@@ -27799,9 +27989,9 @@ var PG = Cu.createContext(void 0), FG = ({ tracking: e, children: t }) => /* @__
27799
27989
  close: () => n({ shown: r ?? t.shown })
27800
27990
  };
27801
27991
  };
27802
- function sK({ params: e, ctx: t }) {
27803
- let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { holder: s, held: c, isOpen: l, open: u, close: d } = oK(i), f = rG(c.length), p = TG(), { reportAction: m, reportItemActivate: h } = RG(), g = Qe(), _ = n.maxVisibleItems, v = _ != null && i.length > _, y = v && !a ? i.slice(0, _) : i, b = rG(y.length), x = VG(n, y.length), S = iK((!!n.descriptionRequired || !!n.descriptionOptional) && !x, g), C = g ? "md" : "sm", w = !!n.prominent, T = (e, t, r) => {
27804
- let { href: i, description: a, ...o } = e, s = o.items ?? [], c = o.tooltipDescription ?? (x ? MG(a) : ""), l = /* @__PURE__ */ Q(NG, {
27992
+ function hK({ params: e, ctx: t }) {
27993
+ let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { holder: s, held: c, isOpen: l, open: u, close: d } = mK(i), f = dG(c.length), p = NG(), { reportAction: m, reportItemActivate: h } = KG(), g = Qe(), _ = n.maxVisibleItems, v = _ != null && i.length > _, y = v && !a ? i.slice(0, _) : i, b = dG(y.length), x = YG(n, y.length), S = fK((!!n.descriptionRequired || !!n.descriptionOptional) && !x, g), C = g ? "md" : "sm", w = !!n.prominent, T = (e, t, r) => {
27994
+ let { href: i, description: a, ...o } = e, s = o.items ?? [], c = o.tooltipDescription ?? (x ? BG(a) : ""), l = /* @__PURE__ */ Q(VG, {
27805
27995
  title: o.title,
27806
27996
  subtitle: o.subtitle,
27807
27997
  subtitleVariant: o.subtitleVariant,
@@ -27810,8 +28000,8 @@ function sK({ params: e, ctx: t }) {
27810
28000
  descriptionVariant: o.descriptionVariant,
27811
28001
  descriptionCritical: o.descriptionCritical,
27812
28002
  unread: o.unread,
27813
- ...nK(n.left, o, S, w),
27814
- right: rK(n.right, o, C, w),
28003
+ ...uK(n.left, o, S, w),
28004
+ right: dK(n.right, o, C, w),
27815
28005
  actions: o.actions,
27816
28006
  href: n.clickBehavior === "link" && s.length === 0 ? i : void 0,
27817
28007
  prominent: w,
@@ -27830,14 +28020,14 @@ function sK({ params: e, ctx: t }) {
27830
28020
  };
27831
28021
  return /* @__PURE__ */ $("div", {
27832
28022
  "data-list-rows": "",
27833
- className: B(ZG(t), "flex flex-col"),
28023
+ className: B(aK(t), "flex flex-col"),
27834
28024
  children: [
27835
- /* @__PURE__ */ Q(iG, { children: y.map((e, t) => /* @__PURE__ */ Q(aG, {
28025
+ /* @__PURE__ */ Q(fG, { children: y.map((e, t) => /* @__PURE__ */ Q(pG, {
27836
28026
  animated: !b,
27837
28027
  children: T(e, t)
27838
28028
  }, e.id)) }),
27839
28029
  v ? /* @__PURE__ */ Q("div", {
27840
- className: $G(t),
28030
+ className: sK(t),
27841
28031
  children: /* @__PURE__ */ Q(H, {
27842
28032
  variant: g ? "outline" : "neutral",
27843
28033
  size: g ? "md" : "sm",
@@ -27854,11 +28044,11 @@ function sK({ params: e, ctx: t }) {
27854
28044
  width: "md",
27855
28045
  maxHeight: "md",
27856
28046
  disableContentPadding: !0,
27857
- secondaryActions: aK(s?.actions, d),
27858
- description: s && MG(s.description) || void 0,
28047
+ secondaryActions: pK(s?.actions, d),
28048
+ description: s && BG(s.description) || void 0,
27859
28049
  children: /* @__PURE__ */ Q("div", {
27860
28050
  className: B("flex flex-col p-2", p && "[&_[data-list-row]]:gap-2"),
27861
- children: /* @__PURE__ */ Q(iG, { children: c.map((e, t) => /* @__PURE__ */ Q(aG, {
28051
+ children: /* @__PURE__ */ Q(fG, { children: c.map((e, t) => /* @__PURE__ */ Q(pG, {
27862
28052
  animated: !f,
27863
28053
  children: T({
27864
28054
  ...e,
@@ -27870,11 +28060,11 @@ function sK({ params: e, ctx: t }) {
27870
28060
  ]
27871
28061
  });
27872
28062
  }
27873
- function cK({ params: e, ctx: t }) {
27874
- let { events: n } = e, r = rG(n.length), { reportItemActivate: i } = RG();
28063
+ function gK({ params: e, ctx: t }) {
28064
+ let { events: n } = e, r = dG(n.length), { reportItemActivate: i } = KG();
27875
28065
  return /* @__PURE__ */ Q("div", {
27876
- className: B(ZG(t), "flex flex-col", eK),
27877
- children: /* @__PURE__ */ Q(iG, { children: n.map((e, t) => /* @__PURE__ */ Q(aG, {
28066
+ className: B(aK(t), "flex flex-col", cK),
28067
+ children: /* @__PURE__ */ Q(fG, { children: n.map((e, t) => /* @__PURE__ */ Q(pG, {
27878
28068
  animated: !r,
27879
28069
  children: /* @__PURE__ */ Q(fg, {
27880
28070
  ...e,
@@ -27885,102 +28075,102 @@ function cK({ params: e, ctx: t }) {
27885
28075
  }, e.title)) })
27886
28076
  });
27887
28077
  }
27888
- var lK = 3, uK = "slot-skeleton-item", dK = [
28078
+ var _K = 3, vK = "slot-skeleton-item", yK = [
27889
28079
  "w-1/2",
27890
28080
  "w-2/3",
27891
28081
  "w-2/5",
27892
28082
  "w-3/5"
27893
- ], fK = {
28083
+ ], bK = {
27894
28084
  sm: "size-6",
27895
28085
  md: "size-8",
27896
28086
  lg: "size-10"
27897
- }, pK = (e) => dK[e % dK.length], mK = ({ className: e }) => /* @__PURE__ */ Q("div", {
28087
+ }, xK = (e) => yK[e % yK.length], SK = ({ className: e }) => /* @__PURE__ */ Q("div", {
27898
28088
  className: "flex h-5 items-center",
27899
28089
  children: /* @__PURE__ */ Q(z, { className: B("h-3", e) })
27900
- }), hK = ({ params: e, ctx: t }) => {
27901
- let n = e.schema ?? {}, r = Qe(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = VG(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
28090
+ }), CK = ({ params: e, ctx: t }) => {
28091
+ let n = e.schema ?? {}, r = Qe(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = YG(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
27902
28092
  return /* @__PURE__ */ $("div", {
27903
- className: B(ZG(t), "flex flex-col"),
28093
+ className: B(aK(t), "flex flex-col"),
27904
28094
  children: [Array.from({ length: i }, (e, t) => /* @__PURE__ */ $("div", {
27905
- "data-testid": uK,
28095
+ "data-testid": vK,
27906
28096
  className: "flex w-full items-center gap-3 p-2",
27907
28097
  children: [
27908
- n.left ? /* @__PURE__ */ Q(z, { className: B("shrink-0", fK[iK(o, r)], n.left === "person" ? "rounded-full" : "rounded-sm") }) : null,
28098
+ n.left ? /* @__PURE__ */ Q(z, { className: B("shrink-0", bK[fK(o, r)], n.left === "person" ? "rounded-full" : "rounded-sm") }) : null,
27909
28099
  /* @__PURE__ */ $("div", {
27910
28100
  className: "flex min-w-0 flex-1 flex-col",
27911
- children: [/* @__PURE__ */ Q(mK, { className: pK(t) }), s ? /* @__PURE__ */ Q(mK, { className: "w-1/4" }) : null]
28101
+ children: [/* @__PURE__ */ Q(SK, { className: xK(t) }), s ? /* @__PURE__ */ Q(SK, { className: "w-1/4" }) : null]
27912
28102
  }),
27913
28103
  n.right ? /* @__PURE__ */ Q(z, { className: "h-4 w-10 shrink-0 rounded-sm" }) : null
27914
28104
  ]
27915
28105
  }, t)), c ? /* @__PURE__ */ Q("div", {
27916
- className: $G(t),
28106
+ className: sK(t),
27917
28107
  children: /* @__PURE__ */ Q(z, { className: "h-6 w-24 rounded-sm" })
27918
28108
  }) : null]
27919
28109
  });
27920
- }, gK = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
27921
- className: B(ZG(e), "flex flex-col", eK),
28110
+ }, wK = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
28111
+ className: B(aK(e), "flex flex-col", cK),
27922
28112
  children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
27923
- "data-testid": uK,
28113
+ "data-testid": vK,
27924
28114
  className: "flex flex-row items-stretch gap-2.5 rounded-sm p-2",
27925
28115
  children: [
27926
28116
  /* @__PURE__ */ Q(z, { className: "min-h-10 w-1 shrink-0 rounded-2xs" }),
27927
28117
  /* @__PURE__ */ $("div", {
27928
28118
  className: "flex flex-1 flex-col justify-center",
27929
- children: [/* @__PURE__ */ Q(mK, { className: pK(t) }), /* @__PURE__ */ Q(mK, { className: "w-1/3" })]
28119
+ children: [/* @__PURE__ */ Q(SK, { className: xK(t) }), /* @__PURE__ */ Q(SK, { className: "w-1/3" })]
27930
28120
  }),
27931
28121
  /* @__PURE__ */ Q(z, { className: "size-10 shrink-0 rounded-md" })
27932
28122
  ]
27933
28123
  }, t))
27934
- }), _K = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
28124
+ }), TK = ({ ctx: e }) => /* @__PURE__ */ Q("div", {
27935
28125
  className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
27936
28126
  children: Array.from({ length: e.expectedItemsCount }, (e, t) => /* @__PURE__ */ $("div", {
27937
- "data-testid": uK,
28127
+ "data-testid": vK,
27938
28128
  className: "flex flex-col gap-1",
27939
28129
  children: [/* @__PURE__ */ Q("div", {
27940
28130
  className: "flex h-8 items-center",
27941
28131
  children: /* @__PURE__ */ Q(z, { className: "h-6 w-10" })
27942
- }), /* @__PURE__ */ Q(mK, { className: "w-3/4" })]
28132
+ }), /* @__PURE__ */ Q(SK, { className: "w-3/4" })]
27943
28133
  }, t))
27944
- }), vK = (e, t) => /* @__PURE__ */ Q("div", {
28134
+ }), EK = (e, t) => /* @__PURE__ */ Q("div", {
27945
28135
  className: "flex flex-col gap-2",
27946
28136
  children: Array.from({ length: t.expectedItemsCount }, (e, t) => /* @__PURE__ */ Q("div", {
27947
- "data-testid": uK,
27948
- children: /* @__PURE__ */ Q(z, { className: B("h-6", pK(t)) })
28137
+ "data-testid": vK,
28138
+ children: /* @__PURE__ */ Q(z, { className: B("h-6", xK(t)) })
27949
28139
  }, t))
27950
- }), yK = {
27951
- ...bG,
28140
+ }), DK = {
28141
+ ...OG,
27952
28142
  list: {
27953
- render: (e, t) => /* @__PURE__ */ Q(sK, {
28143
+ render: (e, t) => /* @__PURE__ */ Q(hK, {
27954
28144
  params: e,
27955
28145
  ctx: t
27956
28146
  }),
27957
- skeleton: (e, t) => /* @__PURE__ */ Q(hK, {
28147
+ skeleton: (e, t) => /* @__PURE__ */ Q(CK, {
27958
28148
  params: e ?? {},
27959
28149
  ctx: t
27960
28150
  })
27961
28151
  },
27962
28152
  "event-list": {
27963
- render: (e, t) => /* @__PURE__ */ Q(cK, {
28153
+ render: (e, t) => /* @__PURE__ */ Q(gK, {
27964
28154
  params: e,
27965
28155
  ctx: t
27966
28156
  }),
27967
- skeleton: (e, t) => /* @__PURE__ */ Q(gK, { ctx: t })
28157
+ skeleton: (e, t) => /* @__PURE__ */ Q(wK, { ctx: t })
27968
28158
  },
27969
28159
  indicators: {
27970
28160
  render: (e) => /* @__PURE__ */ Q(BU, { ...e }),
27971
- skeleton: (e, t) => /* @__PURE__ */ Q(_K, { ctx: t })
28161
+ skeleton: (e, t) => /* @__PURE__ */ Q(TK, { ctx: t })
27972
28162
  }
27973
- }, bK = ({ text: e, ticking: t, className: n }) => /* @__PURE__ */ Q("span", {
28163
+ }, OK = ({ text: e, ticking: t, className: n }) => /* @__PURE__ */ Q("span", {
27974
28164
  className: B("whitespace-nowrap tabular-nums", n),
27975
28165
  children: e.split(":").map((e, n) => /* @__PURE__ */ $(Tu, { children: [n > 0 ? /* @__PURE__ */ Q("span", {
27976
28166
  className: B(t && "animate-clock-tick motion-reduce:animate-none"),
27977
28167
  children: ":"
27978
28168
  }) : null, e] }, n))
27979
- }), xK = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(bK, {
28169
+ }), kK = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(OK, {
27980
28170
  text: e,
27981
28171
  ticking: t,
27982
28172
  className: "px-2 text-2xl font-semibold"
27983
- }), SK = {
28173
+ }), AK = {
27984
28174
  neutral: {
27985
28175
  pill: "bg-f1-background-inverse text-f1-foreground-inverse",
27986
28176
  button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
@@ -28035,7 +28225,7 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28035
28225
  soloIcon: "inverse",
28036
28226
  soloRing: "ring-f1-border-inverse"
28037
28227
  }
28038
- }, CK = (e, t) => {
28228
+ }, jK = (e, t) => {
28039
28229
  let n = Yn();
28040
28230
  return {
28041
28231
  initial: {
@@ -28050,17 +28240,17 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28050
28240
  opacity: 0,
28051
28241
  x: n ? 0 : -8
28052
28242
  },
28053
- whileTap: n ? void 0 : { scale: HW },
28054
- transition: XW({
28055
- ...GW,
28056
- delay: RW(e, t)
28243
+ whileTap: n ? void 0 : { scale: XW },
28244
+ transition: iG({
28245
+ ...$W,
28246
+ delay: KW(e, t)
28057
28247
  }, n)
28058
28248
  };
28059
- }, wK = ({ 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, TK = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
28060
- let s = CK(n, i), [c, l] = X({
28249
+ }, MK = ({ 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, NK = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
28250
+ let s = jK(n, i), [c, l] = X({
28061
28251
  hover: !1,
28062
28252
  focus: !1
28063
- }), u = c.hover || c.focus || r, d = t.text && !r ? t.text : void 0, f = SK[t.tone ?? "neutral"];
28253
+ }), u = c.hover || c.focus || r, d = t.text && !r ? t.text : void 0, f = AK[t.tone ?? "neutral"];
28064
28254
  return /* @__PURE__ */ Q(Fn, {
28065
28255
  label: t.label,
28066
28256
  instant: !0,
@@ -28091,7 +28281,7 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28091
28281
  })),
28092
28282
  ...s,
28093
28283
  children: [
28094
- d ? /* @__PURE__ */ Q(xK, {
28284
+ d ? /* @__PURE__ */ Q(kK, {
28095
28285
  text: d,
28096
28286
  ticking: !!t.ticking
28097
28287
  }) : null,
@@ -28100,7 +28290,7 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28100
28290
  variant: "ghost",
28101
28291
  size: "lg",
28102
28292
  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),
28103
- "aria-label": `${t.label}, ${KG(e)}`,
28293
+ "aria-label": `${t.label}, ${eK(e)}`,
28104
28294
  onClick: () => t.onClick(),
28105
28295
  children: /* @__PURE__ */ Q(U, {
28106
28296
  size: "lg",
@@ -28108,13 +28298,13 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28108
28298
  icon: u || !e.icon ? t.icon : e.icon
28109
28299
  })
28110
28300
  }),
28111
- /* @__PURE__ */ Q(wK, { hasUpdates: e.hasUpdates })
28301
+ /* @__PURE__ */ Q(MK, { hasUpdates: e.hasUpdates })
28112
28302
  ]
28113
28303
  })
28114
28304
  });
28115
- }, EK = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
28116
- let c = e.railAction, l = CK(t, r);
28117
- return c ? /* @__PURE__ */ Q(TK, {
28305
+ }, PK = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
28306
+ let c = e.railAction, l = jK(t, r);
28307
+ return c ? /* @__PURE__ */ Q(NK, {
28118
28308
  widget: e,
28119
28309
  action: c,
28120
28310
  order: t,
@@ -28129,7 +28319,7 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28129
28319
  children: /* @__PURE__ */ Q(z, { className: "h-10 w-10 rounded-lg" })
28130
28320
  }) : /* @__PURE__ */ Q(V.button, {
28131
28321
  type: "button",
28132
- "aria-label": KG(e),
28322
+ "aria-label": eK(e),
28133
28323
  "aria-expanded": n,
28134
28324
  "data-widget-glyph": e.id,
28135
28325
  onMouseEnter: (t) => i(e.id, t.currentTarget),
@@ -28147,19 +28337,19 @@ var lK = 3, uK = "slot-skeleton-item", dK = [
28147
28337
  color: "bold"
28148
28338
  }) : /* @__PURE__ */ Q("span", {
28149
28339
  className: "font-medium text-f1-foreground-secondary",
28150
- children: KG(e).charAt(0)
28340
+ children: eK(e).charAt(0)
28151
28341
  })
28152
28342
  }) : e.icon ? /* @__PURE__ */ Q(zs, {
28153
28343
  icon: e.icon,
28154
28344
  size: "lg"
28155
28345
  }) : /* @__PURE__ */ Q("span", {
28156
28346
  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",
28157
- children: KG(e).charAt(0)
28158
- }), /* @__PURE__ */ Q(wK, { hasUpdates: e.hasUpdates })]
28347
+ children: eK(e).charAt(0)
28348
+ }), /* @__PURE__ */ Q(MK, { hasUpdates: e.hasUpdates })]
28159
28349
  })
28160
28350
  });
28161
28351
  };
28162
- function DK(e = 24) {
28352
+ function FK(e = 24) {
28163
28353
  let [t, n] = X(null), [r, i] = X({
28164
28354
  top: !1,
28165
28355
  bottom: !1
@@ -28193,12 +28383,12 @@ function DK(e = 24) {
28193
28383
  }
28194
28384
  //#endregion
28195
28385
  //#region src/domains/platform/home/Home/SlotWidget/SlotWidget.tsx
28196
- var OK = "-ml-0.5 mt-2", kK = 450, AK = "cubic-bezier(0.4, 0, 0.1, 1)", jK = 1.04;
28197
- function MK({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
28386
+ var IK = "-ml-0.5 mt-2", LK = 450, RK = "cubic-bezier(0.4, 0, 0.1, 1)", zK = 1.04;
28387
+ function BK({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
28198
28388
  let a = n ? {
28199
- ...yK,
28389
+ ...DK,
28200
28390
  ...n
28201
- } : yK;
28391
+ } : DK;
28202
28392
  return /* @__PURE__ */ Q("div", {
28203
28393
  className: "flex flex-col",
28204
28394
  ...t ? {
@@ -28206,7 +28396,7 @@ function MK({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
28206
28396
  "aria-live": "polite"
28207
28397
  } : {},
28208
28398
  children: e.map((n, o) => {
28209
- let s = zG(a[n.visualization]), c = {
28399
+ let s = qG(a[n.visualization]), c = {
28210
28400
  ...r,
28211
28401
  isLastSlot: o === e.length - 1,
28212
28402
  isFirstUnderNoHeader: i && o === 0
@@ -28216,7 +28406,7 @@ function MK({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
28216
28406
  children: /* @__PURE__ */ Q(Ct, { bare: !0 })
28217
28407
  }) : null, t ? /* @__PURE__ */ Q("div", {
28218
28408
  "aria-hidden": "true",
28219
- children: (s?.skeleton ?? vK)(n.params, {
28409
+ children: (s?.skeleton ?? EK)(n.params, {
28220
28410
  ...c,
28221
28411
  expectedItemsCount: n.expectedItemsCount ?? 3
28222
28412
  })
@@ -28227,7 +28417,7 @@ function MK({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
28227
28417
  })
28228
28418
  });
28229
28419
  }
28230
- function NK({ 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 }) {
28420
+ function VK({ 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 }) {
28231
28421
  let y = R(), b = Yn(), [x, S] = X(!1), C = Y(!1);
28232
28422
  K(() => {
28233
28423
  if (!C.current) {
@@ -28236,7 +28426,7 @@ function NK({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
28236
28426
  }
28237
28427
  if (b) return;
28238
28428
  S(!0);
28239
- let e = setTimeout(() => S(!1), kK);
28429
+ let e = setTimeout(() => S(!1), LK);
28240
28430
  return () => clearTimeout(e);
28241
28431
  }, [m, b]);
28242
28432
  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) => {
@@ -28262,7 +28452,7 @@ function NK({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
28262
28452
  })
28263
28453
  }) : null,
28264
28454
  a
28265
- ] }) : a, { reportAction: A } = RG(), { info: j, ...M } = v ? {} : GG(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 : {
28455
+ ] }) : a, { reportAction: A } = KG(), { info: j, ...M } = v ? {} : $G(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 : {
28266
28456
  ...N,
28267
28457
  link: {
28268
28458
  ...N.link,
@@ -28277,13 +28467,13 @@ function NK({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
28277
28467
  header: P,
28278
28468
  fullHeight: n,
28279
28469
  action: I,
28280
- footerClassName: OK,
28470
+ footerClassName: IK,
28281
28471
  actions: v ? void 0 : p,
28282
28472
  headerControls: v ? void 0 : k,
28283
28473
  summaries: i,
28284
28474
  ...c ? { alert: c } : { status: l },
28285
28475
  isDragging: g,
28286
- children: u.length === 0 ? null : /* @__PURE__ */ Q(MK, {
28476
+ children: u.length === 0 ? null : /* @__PURE__ */ Q(BK, {
28287
28477
  ctx: {
28288
28478
  ..._,
28289
28479
  hasFooter: !!r,
@@ -28302,14 +28492,14 @@ function NK({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
28302
28492
  className: "h-full",
28303
28493
  "data-turning": x || void 0,
28304
28494
  style: {
28305
- transform: `scale(${x ? jK : 1})`,
28306
- transition: b ? void 0 : `transform ${kK / 2}ms ease-out`
28495
+ transform: `scale(${x ? zK : 1})`,
28496
+ transition: b ? void 0 : `transform ${LK / 2}ms ease-out`
28307
28497
  },
28308
28498
  children: /* @__PURE__ */ $("div", {
28309
28499
  className: "relative h-full [transform-style:preserve-3d]",
28310
28500
  style: {
28311
28501
  transform: `rotateY(${m ? 180 : 0}deg)`,
28312
- transition: b ? void 0 : `transform ${kK}ms ${AK}`
28502
+ transition: b ? void 0 : `transform ${LK}ms ${RK}`
28313
28503
  },
28314
28504
  children: [/* @__PURE__ */ Q("div", {
28315
28505
  className: B("[backface-visibility:hidden]", m && "pointer-events-none"),
@@ -28341,8 +28531,8 @@ function NK({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
28341
28531
  }
28342
28532
  //#endregion
28343
28533
  //#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
28344
- var PK = "(min-width: 2200px) and (min-height: 900px)", FK = () => {
28345
- let e = ir(PK, {
28534
+ var HK = "(min-width: 2200px) and (min-height: 900px)", UK = () => {
28535
+ let e = ir(HK, {
28346
28536
  initializeWithValue: !0,
28347
28537
  defaultValue: !1
28348
28538
  }), t = ir(`(max-width: ${Pl.md}px)`, {
@@ -28356,14 +28546,14 @@ var PK = "(min-width: 2200px) and (min-height: 900px)", FK = () => {
28356
28546
  asideClassName: t ? "w-full shrink-0" : "w-80 shrink-0",
28357
28547
  stacked: t
28358
28548
  };
28359
- }, IK = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
28360
- function LK({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
28549
+ }, WK = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
28550
+ function GK({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
28361
28551
  return /* @__PURE__ */ Q("div", {
28362
28552
  className: "flex min-w-0 flex-1 flex-col overflow-y-auto rounded-lg bg-f1-background-secondary p-6",
28363
28553
  children: /* @__PURE__ */ $("div", {
28364
28554
  className: "my-auto flex w-full flex-col items-center gap-6",
28365
28555
  children: [/* @__PURE__ */ Q("div", {
28366
- className: B("w-full", IK),
28556
+ className: B("w-full", WK),
28367
28557
  style: { maxWidth: `${r}px` },
28368
28558
  children: t
28369
28559
  }, e), n ? /* @__PURE__ */ Q("p", {
@@ -28375,9 +28565,9 @@ function LK({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
28375
28565
  }
28376
28566
  //#endregion
28377
28567
  //#region src/domains/platform/home/Home/WidgetUpdateDialog/WidgetUpdateDialog.tsx
28378
- var RK = (e, t) => typeof e == "function" ? e(t) : e, zK = 250;
28379
- function BK({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: l = "Save" }) {
28380
- let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = FK(), { formRef: g, getValues: _, trigger: v } = ve(), [y, b] = X(r ?? {});
28568
+ var KK = (e, t) => typeof e == "function" ? e(t) : e, qK = 250;
28569
+ function JK({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: l = "Save" }) {
28570
+ let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = UK(), { formRef: g, getValues: _, trigger: v } = ve(), [y, b] = X(r ?? {});
28381
28571
  return K(() => {
28382
28572
  e && b(r ?? {});
28383
28573
  }, [e, r]), /* @__PURE__ */ Q(Po, {
@@ -28403,15 +28593,15 @@ function BK({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
28403
28593
  defaultValues: r,
28404
28594
  submitConfig: {
28405
28595
  type: "autosubmit",
28406
- delay: zK,
28596
+ delay: qK,
28407
28597
  hideActionBar: !0
28408
28598
  },
28409
28599
  styling: { noPadding: !0 },
28410
28600
  onSubmit: (e) => (b(e), { success: !0 })
28411
28601
  })
28412
- }), /* @__PURE__ */ Q(LK, {
28602
+ }), /* @__PURE__ */ Q(GK, {
28413
28603
  previewKey: "widget-params",
28414
- info: RK(a, y),
28604
+ info: KK(a, y),
28415
28605
  previewWidth: s,
28416
28606
  children: i(y)
28417
28607
  })]
@@ -28420,10 +28610,10 @@ function BK({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
28420
28610
  }
28421
28611
  //#endregion
28422
28612
  //#region src/domains/platform/home/Home/WidgetContainer/dragGhost.ts
28423
- var VK = (e) => {
28613
+ var YK = (e) => {
28424
28614
  let t = e?.cloneNode(!0);
28425
28615
  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;
28426
- }, HK = (e, t) => {
28616
+ }, XK = (e, t) => {
28427
28617
  if (!e || !t) return null;
28428
28618
  let n = e.cloneNode(!0);
28429
28619
  if (!(n instanceof HTMLElement)) return null;
@@ -28437,61 +28627,61 @@ var VK = (e) => {
28437
28627
  width: r.width,
28438
28628
  height: r.height
28439
28629
  },
28440
- base: WK(e)
28630
+ base: QK(e)
28441
28631
  };
28442
- }, UK = /* @__PURE__ */ new Set([
28632
+ }, ZK = /* @__PURE__ */ new Set([
28443
28633
  "rgba(0, 0, 0, 0)",
28444
28634
  "transparent",
28445
28635
  ""
28446
- ]), WK = (e) => {
28636
+ ]), QK = (e) => {
28447
28637
  if (typeof getComputedStyle != "function") return null;
28448
28638
  for (let t = e; t; t = t.parentElement) {
28449
28639
  let e = getComputedStyle(t).backgroundColor;
28450
- if (!UK.has(e)) return e;
28640
+ if (!ZK.has(e)) return e;
28451
28641
  }
28452
28642
  return null;
28453
- }, GK = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, KK = (e) => e && GK.test(e) ? e : void 0, qK = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, JK = (e) => GK.test(e), YK = (e) => {
28643
+ }, $K = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, eq = (e) => e && $K.test(e) ? e : void 0, tq = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, nq = (e) => $K.test(e), rq = (e) => {
28454
28644
  let t = [], n = 0;
28455
- for (let r of e.matchAll(qK)) {
28645
+ for (let r of e.matchAll(tq)) {
28456
28646
  let i = r[1] ?? "", a = r[2] ?? "", o = r.index, s = e[o - 1] === "!", c = e.slice(n, s ? o - 1 : o);
28457
- c && t.push({ text: c }), t.push(s || !JK(a) ? { text: i } : {
28647
+ c && t.push({ text: c }), t.push(s || !nq(a) ? { text: i } : {
28458
28648
  label: i,
28459
28649
  href: a
28460
28650
  }), n = o + r[0].length;
28461
28651
  }
28462
28652
  return n < e.length && t.push({ text: e.slice(n) }), t;
28463
- }, XK = ({ text: e }) => /* @__PURE__ */ Q("div", {
28653
+ }, iq = ({ text: e }) => /* @__PURE__ */ Q("div", {
28464
28654
  className: "text-center text-f1-foreground-secondary",
28465
- children: YK(e).map((e, t) => /* @__PURE__ */ Q(Tu, { children: "href" in e ? /* @__PURE__ */ Q($r, {
28655
+ children: rq(e).map((e, t) => /* @__PURE__ */ Q(Tu, { children: "href" in e ? /* @__PURE__ */ Q($r, {
28466
28656
  href: e.href,
28467
28657
  children: e.label
28468
28658
  }) : e.text }, t))
28469
- }), ZK = (e) => {
28659
+ }), aq = (e) => {
28470
28660
  let t = e.findIndex((e) => !e.locked);
28471
28661
  return e.slice(0, t < 0 ? e.length : t);
28472
- }, QK = (e, t, n) => {
28473
- let r = ZK(e).flatMap((e) => {
28662
+ }, oq = (e, t, n) => {
28663
+ let r = aq(e).flatMap((e) => {
28474
28664
  let n = t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
28475
28665
  return n ? [n.bottom] : [];
28476
28666
  });
28477
28667
  return r.length > 0 ? Math.max(...r) + n : null;
28478
- }, $K = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
28668
+ }, sq = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
28479
28669
  let i = e(), a = (n ?? r)?.top;
28480
28670
  return i == null || a == null ? t : {
28481
28671
  ...t,
28482
28672
  y: Math.max(t.y, i - a)
28483
28673
  };
28484
- }, eq = (e, t, n, r) => {
28674
+ }, cq = (e, t, n, r) => {
28485
28675
  if (n < 0 || r < 0 || n === r || t.has(r)) return null;
28486
28676
  let i = Array.from({ length: e }, (e, t) => t), a = zt(i, n, r).filter((e) => !t.has(e));
28487
28677
  return i.map((e) => t.has(e) ? e : a.shift());
28488
- }, tq = (e, t) => new Map(e.flatMap((e, n) => {
28678
+ }, lq = (e, t) => new Map(e.flatMap((e, n) => {
28489
28679
  let r = e.locked ? t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect() : void 0;
28490
28680
  return r ? [[n, r.height]] : [];
28491
- })), nq = ({ pinned: e, pinnedHeights: t, gap: n }) => (r) => {
28681
+ })), uq = ({ pinned: e, pinnedHeights: t, gap: n }) => (r) => {
28492
28682
  let { rects: i, activeIndex: a, overIndex: o, index: s } = r, c = Array.from({ length: i.length }, (e, n) => i[n]?.height ?? t.get(n));
28493
28683
  if (e.size === 0 || c.some((e) => e == null)) return Me(r);
28494
- let l = eq(i.length, e, a, o);
28684
+ let l = cq(i.length, e, a, o);
28495
28685
  if (!l) return null;
28496
28686
  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);
28497
28687
  return f === 0 ? null : {
@@ -28500,14 +28690,14 @@ var VK = (e) => {
28500
28690
  scaleX: 1,
28501
28691
  scaleY: 1
28502
28692
  };
28503
- }, rq = () => !1, iq = {
28693
+ }, dq = () => !1, fq = {
28504
28694
  duration: .2,
28505
28695
  ease: "easeOut"
28506
- }, aq = ({ id: e, disabled: t = !1, settle: n, children: r }) => {
28696
+ }, pq = ({ id: e, disabled: t = !1, settle: n, children: r }) => {
28507
28697
  let i = Yn(), { listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Ie({
28508
28698
  id: e,
28509
28699
  disabled: t,
28510
- animateLayoutChanges: rq
28700
+ animateLayoutChanges: dq
28511
28701
  }), u = {
28512
28702
  transform: ht.Translate.toString(s && {
28513
28703
  ...s,
@@ -28524,26 +28714,26 @@ var VK = (e) => {
28524
28714
  children: /* @__PURE__ */ Q(V.div, {
28525
28715
  layout: "position",
28526
28716
  layoutDependency: n,
28527
- transition: { layout: XW(iq, i) },
28717
+ transition: { layout: iG(fq, i) },
28528
28718
  children: r({ isDragging: l })
28529
28719
  })
28530
28720
  });
28531
- }, oq = 12, sq = 280, cq = 2, lq = /* @__PURE__ */ new Set([
28721
+ }, mq = 12, hq = 280, gq = 2, _q = /* @__PURE__ */ new Set([
28532
28722
  "auto",
28533
28723
  "scroll",
28534
28724
  "overlay"
28535
- ]), uq = (e) => {
28725
+ ]), vq = (e) => {
28536
28726
  let t = e.parentElement;
28537
28727
  for (; t && t !== document.body && t !== document.documentElement;) {
28538
- if (lq.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
28728
+ if (_q.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
28539
28729
  t = t.parentElement;
28540
28730
  }
28541
28731
  return null;
28542
28732
  };
28543
- function dq({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
28733
+ function yq({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
28544
28734
  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;
28545
28735
  q(() => {
28546
- d && !f && o && l(uq(o));
28736
+ d && !f && o && l(vq(o));
28547
28737
  }, [
28548
28738
  d,
28549
28739
  f,
@@ -28564,7 +28754,7 @@ function dq({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
28564
28754
  o,
28565
28755
  u
28566
28756
  ]);
28567
- let h = d && u != null && t >= (a?.threshold ?? oq), g = Y(r);
28757
+ let h = d && u != null && t >= (a?.threshold ?? mq), g = Y(r);
28568
28758
  g.current = r;
28569
28759
  let _ = r.join(","), v = G((e) => {
28570
28760
  let t = new Set(fc(e));
@@ -28576,8 +28766,8 @@ function dq({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
28576
28766
  gap: n,
28577
28767
  scrollMargin: p,
28578
28768
  rangeExtractor: v,
28579
- overscan: a?.overscan ?? cq,
28580
- estimateSize: () => a?.estimateHeight ?? sq,
28769
+ overscan: a?.overscan ?? gq,
28770
+ estimateSize: () => a?.estimateHeight ?? hq,
28581
28771
  getScrollElement: () => u
28582
28772
  });
28583
28773
  return {
@@ -28594,11 +28784,11 @@ function dq({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
28594
28784
  }
28595
28785
  //#endregion
28596
28786
  //#region src/domains/platform/home/Home/WidgetContainer/verticalOnly.ts
28597
- var fq = ({ transform: e }) => ({
28787
+ var bq = ({ transform: e }) => ({
28598
28788
  ...e,
28599
28789
  x: 0
28600
- }), pq = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
28601
- let a = Yn(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? LW : e?.arriving ? zW(s, e.delayMs) : !t || t.instant ? LW : o ? qW : JW;
28790
+ }), xq = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
28791
+ let a = Yn(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? GW : e?.arriving ? qW(s, e.delayMs) : !t || t.instant ? GW : o ? tG : nG;
28602
28792
  return /* @__PURE__ */ Q(V.div, {
28603
28793
  "data-widget-id": r,
28604
28794
  className: B(n && "h-full"),
@@ -28613,7 +28803,7 @@ var fq = ({ transform: e }) => ({
28613
28803
  transition: c,
28614
28804
  children: i
28615
28805
  });
28616
- }, mq = ({ host: e, children: t }) => {
28806
+ }, Sq = ({ host: e, children: t }) => {
28617
28807
  let n = Y();
28618
28808
  if (!n.current) {
28619
28809
  let e = document.createElement("div");
@@ -28633,7 +28823,7 @@ var fq = ({ transform: e }) => ({
28633
28823
  ref: o,
28634
28824
  className: "contents"
28635
28825
  }), Bu(t, r)] });
28636
- }, hq = [
28826
+ }, Cq = [
28637
28827
  "a",
28638
28828
  "button",
28639
28829
  "input",
@@ -28647,28 +28837,28 @@ var fq = ({ transform: e }) => ({
28647
28837
  "[role='checkbox']",
28648
28838
  "[role='tab']",
28649
28839
  "[contenteditable='true']"
28650
- ].join(","), gq = class extends it {
28840
+ ].join(","), wq = class extends it {
28651
28841
  static activators = [{
28652
28842
  eventName: "onPointerDown",
28653
28843
  handler: ({ nativeEvent: e }, { onActivation: t }) => {
28654
28844
  if (!e.isPrimary || e.button !== 0) return !1;
28655
28845
  let n = e.target;
28656
- return n instanceof Element && n.closest(hq) ? !1 : (t?.({ event: e }), !0);
28846
+ return n instanceof Element && n.closest(Cq) ? !1 : (t?.({ event: e }), !0);
28657
28847
  }
28658
28848
  }];
28659
- }, _q = {
28849
+ }, Tq = {
28660
28850
  duration: 450,
28661
28851
  easing: "cubic-bezier(0.4, 0, 0.1, 1)"
28662
- }, vq = { container: typeof document > "u" ? void 0 : document.body }, yq = (e, t) => {
28852
+ }, Eq = { container: typeof document > "u" ? void 0 : document.body }, Dq = (e, t) => {
28663
28853
  for (let n = e; n; n = n.parentElement) {
28664
28854
  let e = n.querySelector(t);
28665
28855
  if (e) return e;
28666
28856
  }
28667
28857
  return null;
28668
- }, bq = {
28858
+ }, Oq = {
28669
28859
  main: 24,
28670
28860
  right: 16
28671
- }, xq = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
28861
+ }, kq = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
28672
28862
  ref: t ? n : void 0,
28673
28863
  "data-index": t?.index,
28674
28864
  hidden: e,
@@ -28679,7 +28869,7 @@ var fq = ({ transform: e }) => ({
28679
28869
  width: "100%"
28680
28870
  } : { display: e ? void 0 : "contents" },
28681
28871
  children: r
28682
- }), Sq = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Fn, {
28872
+ }), Aq = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Fn, {
28683
28873
  label: t,
28684
28874
  children: /* @__PURE__ */ Q("button", {
28685
28875
  type: "button",
@@ -28693,18 +28883,18 @@ var fq = ({ transform: e }) => ({
28693
28883
  })
28694
28884
  })
28695
28885
  });
28696
- function Cq({ 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 }) {
28697
- let O = R(), k = !o, A = (e) => m !== void 0 && e.id !== m, j = k && p != null, M = 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(() => nq({
28886
+ function jq({ 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 }) {
28887
+ let O = R(), k = !o, A = (e) => m !== void 0 && e.id !== m, j = k && p != null, M = 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(() => uq({
28698
28888
  pinned: ne,
28699
28889
  pinnedHeights: ee,
28700
- gap: bq[t]
28890
+ gap: Oq[t]
28701
28891
  }), [
28702
28892
  ne,
28703
28893
  ee,
28704
28894
  t
28705
- ]), ie = Vt(kt(gq, { activationConstraint: { distance: 4 } })), [ae, oe] = X(null), se = e.find((e) => e.id === ae), [ce, le] = X(null), ue = Y(null), de = Y(null), pe = Y(null), me = Y(null), he = J(() => [fq, $K(() => me.current)], []), ge = (e) => {
28895
+ ]), ie = Vt(kt(wq, { activationConstraint: { distance: 4 } })), [ae, oe] = X(null), se = e.find((e) => e.id === ae), [ce, le] = X(null), ue = Y(null), de = Y(null), pe = Y(null), me = Y(null), he = J(() => [bq, sq(() => me.current)], []), ge = (e) => {
28706
28896
  let t = ue.current?.querySelector(`[data-widget-id="${e}"]`);
28707
- de.current = VK(t), pe.current = u ? HK(yq(ue.current, u), t) : null;
28897
+ de.current = YK(t), pe.current = u ? XK(Dq(ue.current, u), t) : null;
28708
28898
  }, _e = (e) => {
28709
28899
  e && de.current && e.replaceChildren(de.current);
28710
28900
  }, ve = Y(0), ye = () => cancelAnimationFrame(ve.current), be = (e) => {
@@ -28719,14 +28909,14 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28719
28909
  e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`, ve.current = requestAnimationFrame(r);
28720
28910
  };
28721
28911
  r();
28722
- }, xe = dq({
28912
+ }, xe = yq({
28723
28913
  config: g === !0 ? {} : g,
28724
28914
  count: e.length,
28725
- gap: bq[t],
28915
+ gap: Oq[t],
28726
28916
  pinned: P ? [e.findIndex((e) => e.id === P)] : [],
28727
28917
  paused: m !== void 0
28728
28918
  }), Se = g !== !1 && m !== void 0, Ce = ({ activatorEvent: t, delta: n, active: r }) => {
28729
- 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 ? [] : ZK(e);
28919
+ 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 ? [] : aq(e);
28730
28920
  return e.find((e) => {
28731
28921
  if (!e.locked || c.includes(e)) return !1;
28732
28922
  let t = ue.current?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
@@ -28736,7 +28926,7 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28736
28926
  });
28737
28927
  }, we = (e) => {
28738
28928
  let t = [...e.actions ?? []];
28739
- return GG(e.header, e.params)?.info && t.push({
28929
+ return $G(e.header, e.params)?.info && t.push({
28740
28930
  label: O.widgets.whatThisMeans,
28741
28931
  icon: Rc,
28742
28932
  onClick: () => le(e.id)
@@ -28751,7 +28941,7 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28751
28941
  onClick: () => d(e.id)
28752
28942
  })), t;
28753
28943
  }, Te = (t) => {
28754
- let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ? eq(i.length, ne, i.indexOf(String(n.id)), i.indexOf(String(r.id))) : null;
28944
+ let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ? cq(i.length, ne, i.indexOf(String(n.id)), i.indexOf(String(r.id))) : null;
28755
28945
  if (a) {
28756
28946
  p?.(a.map((e) => i[e]));
28757
28947
  return;
@@ -28759,15 +28949,15 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28759
28949
  let o = Ce(t);
28760
28950
  o && Gt.open({
28761
28951
  variant: "warning",
28762
- title: O.widgets.cannotMoveHere.replace("{{title}}", KG(o))
28952
+ title: O.widgets.cannotMoveHere.replace("{{title}}", eK(o))
28763
28953
  });
28764
- }, Ee = (e, t, n = e.params) => /* @__PURE__ */ Q(LG, {
28954
+ }, Ee = (e, t, n = e.params) => /* @__PURE__ */ Q(GG, {
28765
28955
  widgetId: e.id,
28766
28956
  children: De(e, t, n)
28767
28957
  }), De = (e, t, n = e.params) => {
28768
28958
  let r = we(e);
28769
- if (!a) return /* @__PURE__ */ Q(NK, {
28770
- ...YG(e),
28959
+ if (!a) return /* @__PURE__ */ Q(VK, {
28960
+ ...rK(e),
28771
28961
  header: e.header,
28772
28962
  params: n,
28773
28963
  fullHeight: e.fullHeight,
@@ -28798,13 +28988,13 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28798
28988
  })
28799
28989
  })]
28800
28990
  });
28801
- }, Oe = h === !1 ? null : h, ke = QW($W(Oe?.delayMs)), Ae = (e) => _ && {
28991
+ }, Oe = h === !1 ? null : h, ke = oG(sG(Oe?.delayMs)), Ae = (e) => _ && {
28802
28992
  ..._,
28803
28993
  stowed: _.stowed && e.id !== m,
28804
28994
  instant: _.stowed
28805
28995
  }, je = (e, t, n, r) => {
28806
28996
  let i = n ? Ae(n) : void 0;
28807
- return !Oe && !i && !r ? t : /* @__PURE__ */ Q(pq, {
28997
+ return !Oe && !i && !r ? t : /* @__PURE__ */ Q(xq, {
28808
28998
  arrival: Oe ? {
28809
28999
  order: (Oe.order ?? 0) + e,
28810
29000
  delayMs: Oe.delayMs ?? 0,
@@ -28815,13 +29005,13 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28815
29005
  widgetId: r,
28816
29006
  children: t
28817
29007
  });
28818
- }, Me = (e, t, n) => /* @__PURE__ */ Q(xq, {
29008
+ }, Me = (e, t, n) => /* @__PURE__ */ Q(kq, {
28819
29009
  hidden: A(e),
28820
29010
  placement: n,
28821
29011
  measureRef: xe.measureRef,
28822
- children: /* @__PURE__ */ Q(mq, {
29012
+ children: /* @__PURE__ */ Q(Sq, {
28823
29013
  host: c?.(e),
28824
- children: j ? /* @__PURE__ */ Q(aq, {
29014
+ children: j ? /* @__PURE__ */ Q(pq, {
28825
29015
  id: e.id,
28826
29016
  disabled: e.locked || s || !M,
28827
29017
  settle: I,
@@ -28847,9 +29037,9 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28847
29037
  sensors: ie,
28848
29038
  collisionDetection: Xt,
28849
29039
  modifiers: he,
28850
- accessibility: vq,
29040
+ accessibility: Eq,
28851
29041
  onDragStart: ({ active: n }) => {
28852
- ge(String(n.id)), me.current = QK(e, ue.current, bq[t]), te(tq(e, ue.current)), F(String(n.id));
29042
+ ge(String(n.id)), me.current = oq(e, ue.current, Oq[t]), te(lq(e, ue.current)), F(String(n.id));
28853
29043
  },
28854
29044
  onDragCancel: () => {
28855
29045
  F(null), ye(), de.current = null, pe.current = null, me.current = null;
@@ -28869,7 +29059,7 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28869
29059
  className: "fixed inset-0 z-50 cursor-grabbing"
28870
29060
  }) : null,
28871
29061
  /* @__PURE__ */ Q(fe, {
28872
- dropAnimation: _q,
29062
+ dropAnimation: Tq,
28873
29063
  children: P ? /* @__PURE__ */ $("div", {
28874
29064
  className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
28875
29065
  children: [/* @__PURE__ */ Q("div", {
@@ -28884,13 +29074,13 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28884
29074
  ]
28885
29075
  }) : Ne,
28886
29076
  l,
28887
- r == null ? null : je(e.length, /* @__PURE__ */ Q(XK, { text: r })),
28888
- !o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(Sq, {
29077
+ r == null ? null : je(e.length, /* @__PURE__ */ Q(iq, { text: r })),
29078
+ !o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(Aq, {
28889
29079
  onClick: f,
28890
29080
  label: v ?? O.widgets.addWidget,
28891
29081
  side: t
28892
29082
  })) : null,
28893
- se?.paramsSchema && y ? /* @__PURE__ */ Q(BK, {
29083
+ se?.paramsSchema && y ? /* @__PURE__ */ Q(JK, {
28894
29084
  isOpen: !0,
28895
29085
  onClose: () => oe(null),
28896
29086
  schema: se.paramsSchema,
@@ -28905,19 +29095,19 @@ function Cq({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
28905
29095
  }
28906
29096
  //#endregion
28907
29097
  //#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
28908
- var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29098
+ var Mq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28909
29099
  let a = Yn(), [o, s] = X(!1);
28910
29100
  K(() => {
28911
29101
  r && s(!0);
28912
29102
  }, [r]);
28913
- let c = o && !a, l = ZW(e, c ? 180 : 0), d = e ? l || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m = _a(i), h = u(m, (e) => `${e}px`);
29103
+ let c = o && !a, l = aG(e, c ? 180 : 0), d = e ? l || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m = _a(i), h = u(m, (e) => `${e}px`);
28914
29104
  return q(() => {
28915
29105
  if (!r) return;
28916
29106
  if (!c) {
28917
29107
  m.jump(i);
28918
29108
  return;
28919
29109
  }
28920
- let e = fs(m, i, YW);
29110
+ let e = fs(m, i, rG);
28921
29111
  return () => e.stop();
28922
29112
  }, [
28923
29113
  r,
@@ -28928,21 +29118,21 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28928
29118
  mode: d,
28929
29119
  bodyOut: p,
28930
29120
  widthPx: h,
28931
- panelHidden: ZW(!t, a ? 0 : 140),
28932
- transition: !c || !f ? LW : {
28933
- ...t ? UW : WW,
28934
- y: n ? KW : LW
29121
+ panelHidden: aG(!t, a ? 0 : 140),
29122
+ transition: !c || !f ? GW : {
29123
+ ...t ? ZW : QW,
29124
+ y: n ? eG : GW
28935
29125
  },
28936
29126
  glyphDelayMs: o ? 90 : 220
28937
29127
  };
28938
- }, Tq = {
29128
+ }, Nq = {
28939
29129
  morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
28940
29130
  afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
28941
29131
  evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
28942
- }, Eq = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
29132
+ }, Pq = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
28943
29133
  "aria-hidden": !0,
28944
- className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", Tq[e], t)
28945
- }), Dq = 40, Oq = 672, kq = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", Aq = 16, jq = 768, Mq = { display: "contents" }, Nq = 150, Pq = 150, Fq = ku(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 = Oq, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
29134
+ className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", Nq[e], t)
29135
+ }), Fq = 40, Iq = 672, Lq = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", Rq = 16, zq = 768, Bq = { display: "contents" }, Vq = 150, Hq = 150, Uq = ku(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 = Iq, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
28946
29136
  let A = R(), j = Yn(), 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);
28947
29137
  q(function() {
28948
29138
  let e = M.current;
@@ -28955,10 +29145,10 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28955
29145
  let n = new ResizeObserver(t);
28956
29146
  return n.observe(e), () => n.disconnect();
28957
29147
  }, []);
28958
- 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 = DK(), pe = DK(), me = DK(), he = (e) => u.includes(e) ? {
29148
+ 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 = FK(), pe = FK(), me = FK(), he = (e) => u.includes(e) ? {
28959
29149
  ...d,
28960
29150
  scrollElement: e === "main" ? fe.element : pe.element
28961
- } : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x + Aq + b, ve = ge && r.length > 0 && (_e || (se ?? !1)), ye = ve ? Dq : b, be = ve ? A.actions.expand : A.actions.collapse, xe = ge && F, Se = N > 0 && N < jq, Ce = xe && !Se && (ve || N >= jq), we = {
29151
+ } : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x + Rq + b, ve = ge && r.length > 0 && (_e || (se ?? !1)), ye = ve ? Fq : b, be = ve ? A.actions.expand : A.actions.collapse, xe = ge && F, Se = N > 0 && N < zq, Ce = xe && !Se && (ve || N >= zq), we = {
28962
29152
  pinned: r.filter((e) => e.locked),
28963
29153
  rest: r.filter((e) => !e.locked)
28964
29154
  }, [Te, Ee] = X({}), De = Y(/* @__PURE__ */ new Map()), Oe = (e) => {
@@ -28969,14 +29159,14 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28969
29159
  [e]: t
28970
29160
  });
28971
29161
  return De.current.set(e, n), n;
28972
- }, ke = Se ? (e) => Te[e.id] ?? null : void 0, Ae = wu.toArray(e), je = (e, t) => /* @__PURE__ */ Q(oG, {
29162
+ }, ke = Se ? (e) => Te[e.id] ?? null : void 0, Ae = wu.toArray(e), je = (e, t) => /* @__PURE__ */ Q(mG, {
28973
29163
  order: t,
28974
29164
  children: e
28975
29165
  }, Au(e) && e.key != null ? e.key : t), Me = [
28976
29166
  ...Ae.slice(0, C).map(je),
28977
29167
  ...we.pinned.map((e) => /* @__PURE__ */ Q("div", {
28978
29168
  ref: Oe(e.id),
28979
- style: Mq
29169
+ style: Bq
28980
29170
  }, `pin-host-${e.id}`)),
28981
29171
  ...Ae.slice(C).map((e, t) => je(e, C + t))
28982
29172
  ], Ne = ve ? r.find((e) => e.id === L) : void 0;
@@ -28987,7 +29177,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28987
29177
  oe.current && clearTimeout(oe.current), ae.current && clearTimeout(ae.current);
28988
29178
  };
28989
29179
  }, []);
28990
- let Pe = wq({
29180
+ let Pe = Mq({
28991
29181
  collapsed: ve,
28992
29182
  open: Ne != null,
28993
29183
  glide: re,
@@ -28998,14 +29188,14 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
28998
29188
  let Le = Y(null);
28999
29189
  Le.current = L;
29000
29190
  let Re = L ?? (Pe.panelHidden ? null : Ie.current), ze = Fe ? {
29001
- transformOrigin: BW,
29191
+ transformOrigin: JW,
29002
29192
  top: 0,
29003
29193
  right: 48,
29004
29194
  width: b,
29005
29195
  maxHeight: `calc(100% - ${te}px)`,
29006
29196
  pointerEvents: Ne ? void 0 : "none"
29007
29197
  } : {
29008
- transformOrigin: BW,
29198
+ transformOrigin: JW,
29009
29199
  gridColumn: 2,
29010
29200
  gridRow: 2,
29011
29201
  width: b,
@@ -29021,7 +29211,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29021
29211
  }, Ve = () => {
29022
29212
  oe.current && clearTimeout(oe.current), oe.current = null;
29023
29213
  }, He = () => {
29024
- Be(), Ve(), ae.current = setTimeout(() => ee(null), Nq);
29214
+ Be(), Ve(), ae.current = setTimeout(() => ee(null), Vq);
29025
29215
  }, Ue = (e, t) => {
29026
29216
  Ve();
29027
29217
  let n = M.current;
@@ -29031,7 +29221,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29031
29221
  }
29032
29222
  ie(Le.current != null), ee(e);
29033
29223
  }, We = (e, t, n = !1) => {
29034
- Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), Pq));
29224
+ Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), Hq));
29035
29225
  }, Ge = /* @__PURE__ */ $(V.div, {
29036
29226
  ref: (e) => {
29037
29227
  M.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
@@ -29054,14 +29244,14 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29054
29244
  left: -S,
29055
29245
  right: -S
29056
29246
  },
29057
- children: /* @__PURE__ */ Q(Eq, { period: y })
29247
+ children: /* @__PURE__ */ Q(Pq, { period: y })
29058
29248
  }),
29059
- /* @__PURE__ */ $(oG, {
29249
+ /* @__PURE__ */ $(mG, {
29060
29250
  order: 0,
29061
29251
  className: "col-span-full flex flex-row items-center justify-between",
29062
29252
  children: [/* @__PURE__ */ Q("span", {
29063
29253
  className: "flex items-center",
29064
- children: /* @__PURE__ */ Q(sG, {})
29254
+ children: /* @__PURE__ */ Q(hG, {})
29065
29255
  }), /* @__PURE__ */ $("div", {
29066
29256
  className: "flex flex-row items-center gap-2",
29067
29257
  children: [ge && r.length > 0 && !_e ? /* @__PURE__ */ Q(Fn, {
@@ -29082,7 +29272,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29082
29272
  }),
29083
29273
  /* @__PURE__ */ Q("div", {
29084
29274
  ref: fe.ref,
29085
- className: B("relative isolate min-h-0 overflow-y-auto scroll-pb-page-room", kq),
29275
+ className: B("relative isolate min-h-0 overflow-y-auto scroll-pb-page-room", Lq),
29086
29276
  style: {
29087
29277
  gridColumn: 1,
29088
29278
  gridRow: 2,
@@ -29093,17 +29283,17 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29093
29283
  marginLeft: -S,
29094
29284
  paddingLeft: S,
29095
29285
  marginRight: Ce ? -16 : -S,
29096
- paddingRight: Ce ? Aq : S,
29286
+ paddingRight: Ce ? Rq : S,
29097
29287
  ...fe.style
29098
29288
  },
29099
- children: /* @__PURE__ */ Q(Cq, {
29289
+ children: /* @__PURE__ */ Q(jq, {
29100
29290
  side: "main",
29101
29291
  className: B("relative mx-auto w-full", Lg),
29102
29292
  style: { maxWidth: `${x}px` },
29103
29293
  widgets: n,
29104
29294
  afterWidgets: we.rest.map((e) => /* @__PURE__ */ Q("div", {
29105
29295
  ref: Oe(e.id),
29106
- style: Mq
29296
+ style: Bq
29107
29297
  }, `loose-host-${e.id}`)),
29108
29298
  footnote: t,
29109
29299
  slotRenderers: a,
@@ -29126,7 +29316,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29126
29316
  }),
29127
29317
  /* @__PURE__ */ Q(Wn, { children: Se || !xe || !ve ? null : /* @__PURE__ */ $(V.aside, {
29128
29318
  ref: me.ref,
29129
- 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", kq),
29319
+ 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", Lq),
29130
29320
  style: {
29131
29321
  gridColumn: 2,
29132
29322
  gridRow: 2,
@@ -29137,10 +29327,10 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29137
29327
  initial: { opacity: 1 },
29138
29328
  animate: { opacity: 1 },
29139
29329
  exit: { opacity: 0 },
29140
- transition: XW(WW, j),
29330
+ transition: iG(QW, j),
29141
29331
  onMouseLeave: He,
29142
29332
  onMouseEnter: Be,
29143
- children: [r.map((e, t) => /* @__PURE__ */ Q(EK, {
29333
+ children: [r.map((e, t) => /* @__PURE__ */ Q(PK, {
29144
29334
  widget: e,
29145
29335
  order: t,
29146
29336
  open: L === e.id,
@@ -29159,7 +29349,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29159
29349
  initial: { opacity: 0 },
29160
29350
  animate: { opacity: 1 },
29161
29351
  exit: { opacity: 0 },
29162
- transition: zW(r.length, Pe.glyphDelayMs, j),
29352
+ transition: qW(r.length, Pe.glyphDelayMs, j),
29163
29353
  children: /* @__PURE__ */ Q(U, {
29164
29354
  size: "md",
29165
29355
  icon: Cc
@@ -29171,19 +29361,19 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29171
29361
  xe ? /* @__PURE__ */ Q(V.aside, {
29172
29362
  ref: pe.ref,
29173
29363
  hidden: Se || Fe && Pe.panelHidden,
29174
- className: B("min-h-0 overflow-y-auto overflow-x-hidden", !Fe && "scroll-pb-page-room", kq, 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"),
29364
+ className: B("min-h-0 overflow-y-auto overflow-x-hidden", !Fe && "scroll-pb-page-room", Lq, 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"),
29175
29365
  style: ze,
29176
29366
  initial: !1,
29177
29367
  animate: {
29178
29368
  opacity: +!!Pe.bodyOut,
29179
- scale: Pe.bodyOut ? 1 : VW,
29369
+ scale: Pe.bodyOut ? 1 : YW,
29180
29370
  x: Pe.bodyOut ? 0 : 10,
29181
29371
  y: Fe ? te : 0
29182
29372
  },
29183
29373
  transition: Pe.transition,
29184
29374
  onMouseEnter: ve ? Be : void 0,
29185
29375
  onMouseLeave: ve ? He : void 0,
29186
- children: /* @__PURE__ */ Q(Cq, {
29376
+ children: /* @__PURE__ */ Q(jq, {
29187
29377
  side: "right",
29188
29378
  widgets: r,
29189
29379
  visibleWidgetId: !Se && Fe ? Re : void 0,
@@ -29221,40 +29411,40 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29221
29411
  }) : null
29222
29412
  ]
29223
29413
  });
29224
- return /* @__PURE__ */ Q(FG, {
29414
+ return /* @__PURE__ */ Q(UG, {
29225
29415
  tracking: v,
29226
29416
  children: Ge
29227
29417
  });
29228
- }), Iq = (e) => e ? bi[e] : void 0, Lq = (e) => e.type === "icon" ? {
29418
+ }), Wq = (e) => e ? bi[e] : void 0, Gq = (e) => e.type === "icon" ? {
29229
29419
  ...e,
29230
- icon: Iq(e.icon) ?? Yr
29231
- } : e, Rq = (e, t, n) => ({
29232
- ...e.type === "navigate" && KK(e.href) ? { href: e.href } : {},
29420
+ icon: Wq(e.icon) ?? Yr
29421
+ } : e, Kq = (e, t, n) => ({
29422
+ ...e.type === "navigate" && eq(e.href) ? { href: e.href } : {},
29233
29423
  onClick: () => n(e, t)
29234
- }), zq = (e, t, n) => ({
29424
+ }), qq = (e, t, n) => ({
29235
29425
  label: e.label,
29236
- icon: Iq(e.icon),
29426
+ icon: Wq(e.icon),
29237
29427
  variant: t ? "primary" : "tertiary",
29238
- ...Rq(e.action, e.id ? { itemId: e.id } : {}, n)
29239
- }), Bq = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(NK, {
29428
+ ...Kq(e.action, e.id ? { itemId: e.id } : {}, n)
29429
+ }), Jq = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(VK, {
29240
29430
  headless: !e,
29241
29431
  header: e ? { title: e } : void 0,
29242
29432
  fullHeight: i,
29243
29433
  slots: t,
29244
29434
  loading: n,
29245
29435
  slotRenderers: r
29246
- }), Vq = "agentic-empty-state", Hq = [
29436
+ }), Yq = "agentic-empty-state", Xq = [
29247
29437
  "default",
29248
29438
  "outline",
29249
29439
  "neutral",
29250
29440
  "promote"
29251
- ], Uq = (e) => Hq.find((t) => t === e), Wq = ({ empty: e, elementId: t, onAction: n }) => {
29441
+ ], Zq = (e) => Xq.find((t) => t === e), Qq = ({ empty: e, elementId: t, onAction: n }) => {
29252
29442
  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) => ({
29253
29443
  label: e.label,
29254
- icon: Iq(e.icon),
29255
- variant: Uq(e.variant),
29444
+ icon: Wq(e.icon),
29445
+ variant: Zq(e.variant),
29256
29446
  onClick: () => n(e.action, t ? { elementId: t } : {})
29257
- })), s = J(() => ({ [Vq]: () => /* @__PURE__ */ Q(S, {
29447
+ })), s = J(() => ({ [Yq]: () => /* @__PURE__ */ Q(S, {
29258
29448
  title: i,
29259
29449
  description: a,
29260
29450
  emoji: e?.emoji ?? "📭",
@@ -29265,27 +29455,27 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29265
29455
  e?.emoji,
29266
29456
  o
29267
29457
  ]);
29268
- return /* @__PURE__ */ Q(Bq, {
29458
+ return /* @__PURE__ */ Q(Jq, {
29269
29459
  slots: [{
29270
- visualization: Vq,
29460
+ visualization: Yq,
29271
29461
  params: {}
29272
29462
  }],
29273
29463
  slotRenderers: s
29274
29464
  });
29275
- }, Gq = ({ message: e }) => {
29276
- let t = R(), n = J(() => ({ [Vq]: () => /* @__PURE__ */ Q(S, {
29465
+ }, $q = ({ message: e }) => {
29466
+ let t = R(), n = J(() => ({ [Yq]: () => /* @__PURE__ */ Q(S, {
29277
29467
  variant: "critical",
29278
29468
  title: t.collections.emptyStates.error.title,
29279
29469
  description: e ?? t.collections.emptyStates.error.description
29280
29470
  }) }), [t, e]);
29281
- return /* @__PURE__ */ Q(Bq, {
29471
+ return /* @__PURE__ */ Q(Jq, {
29282
29472
  slots: [{
29283
- visualization: Vq,
29473
+ visualization: Yq,
29284
29474
  params: {}
29285
29475
  }],
29286
29476
  slotRenderers: n
29287
29477
  });
29288
- }, Kq = (e) => {
29478
+ }, eJ = (e) => {
29289
29479
  switch (e.type) {
29290
29480
  case "stats": return e.stats;
29291
29481
  case "charts": return e.charts;
@@ -29296,15 +29486,15 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29296
29486
  case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
29297
29487
  case "text": return [];
29298
29488
  }
29299
- }, qq = (e, t, n, r) => {
29489
+ }, tJ = (e, t, n, r) => {
29300
29490
  let i = t?.itemActions;
29301
- if (i) for (let t of Kq(e)) (!t.action || !i.includes(t.action.type)) && r.push({
29491
+ if (i) for (let t of eJ(e)) (!t.action || !i.includes(t.action.type)) && r.push({
29302
29492
  rule: "itemAction",
29303
29493
  ...n,
29304
29494
  itemId: t.id,
29305
29495
  expected: i
29306
29496
  });
29307
- }, Jq = {
29497
+ }, nJ = {
29308
29498
  stats: 3,
29309
29499
  charts: 2,
29310
29500
  list: 3,
@@ -29313,7 +29503,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29313
29503
  posts: 1,
29314
29504
  entity: 3,
29315
29505
  widget: 3
29316
- }, Yq = (e) => Math.max(1, e.expectedItemsCount ?? Jq[e.type]), Xq = (e) => {
29506
+ }, rJ = (e) => Math.max(1, e.expectedItemsCount ?? nJ[e.type]), iJ = (e) => {
29317
29507
  switch (e.type) {
29318
29508
  case "stats": return e.stats.length;
29319
29509
  case "charts": return e.charts.length;
@@ -29324,7 +29514,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29324
29514
  case "entity": return e.entity ? Math.max(1, e.fields?.length ?? 0) : 0;
29325
29515
  case "text": return 1;
29326
29516
  }
29327
- }, Zq = (e, t) => {
29517
+ }, aJ = (e, t) => {
29328
29518
  switch (e.type) {
29329
29519
  case "stats": return {
29330
29520
  ...e,
@@ -29356,22 +29546,22 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29356
29546
  };
29357
29547
  case "text": return e;
29358
29548
  }
29359
- }, Qq = (e, t) => e.blocks?.find((e) => e.type === t), $q = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, eJ = (e, t, n, r) => {
29360
- let i = Qq(n, e.type)?.maxItems, a = Xq(e);
29549
+ }, oJ = (e, t) => e.blocks?.find((e) => e.type === t), sJ = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, cJ = (e, t, n, r) => {
29550
+ let i = oJ(n, e.type)?.maxItems, a = iJ(e);
29361
29551
  return i === void 0 || a <= i ? e : (r.push({
29362
29552
  rule: "maxItems",
29363
29553
  elementId: t,
29364
29554
  blockType: e.type,
29365
29555
  limit: i,
29366
29556
  count: a
29367
- }), Zq(e, i));
29368
- }, tJ = (e, t) => {
29369
- let n = e.type === "widget" ? void 0 : Qq(t, e.type)?.maxItems;
29370
- return n !== void 0 && Yq(e) > n ? {
29557
+ }), aJ(e, i));
29558
+ }, lJ = (e, t) => {
29559
+ let n = e.type === "widget" ? void 0 : oJ(t, e.type)?.maxItems;
29560
+ return n !== void 0 && rJ(e) > n ? {
29371
29561
  ...e,
29372
29562
  expectedItemsCount: Math.max(1, n)
29373
29563
  } : e;
29374
- }, nJ = (e, t, n) => t === n || (t === "widget" || n === "widget") && !Qq(e, "widget") || (Qq(e, t)?.combinesWith?.includes(n) ?? !0) && (Qq(e, n)?.combinesWith?.includes(t) ?? !0), rJ = (e, t) => {
29564
+ }, uJ = (e, t, n) => t === n || (t === "widget" || n === "widget") && !oJ(e, "widget") || (oJ(e, t)?.combinesWith?.includes(n) ?? !0) && (oJ(e, n)?.combinesWith?.includes(t) ?? !0), dJ = (e, t) => {
29375
29565
  let n = t ? e.lead : void 0;
29376
29566
  if (!n) return e;
29377
29567
  let r = new Set(n.blocks?.map((e) => e.type));
@@ -29379,30 +29569,30 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29379
29569
  ...e,
29380
29570
  ...n,
29381
29571
  blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
29382
- ...Qq(e, t.type),
29572
+ ...oJ(e, t.type),
29383
29573
  ...t
29384
29574
  }))]
29385
29575
  };
29386
- }, iJ = (e, t) => {
29576
+ }, fJ = (e, t) => {
29387
29577
  let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
29388
29578
  return {
29389
29579
  missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
29390
29580
  undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
29391
29581
  };
29392
- }, aJ = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", oJ = (e) => typeof e == "object" && !!e, sJ = (e) => oJ(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, cJ = (e, t, n = []) => {
29393
- if (Array.isArray(e)) for (let r of e) cJ(r, sJ(r) ?? t, n);
29394
- else if (oJ(e)) {
29395
- if (aJ(e)) n.push(t ? {
29582
+ }, pJ = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", mJ = (e) => typeof e == "object" && !!e, hJ = (e) => mJ(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, gJ = (e, t, n = []) => {
29583
+ if (Array.isArray(e)) for (let r of e) gJ(r, hJ(r) ?? t, n);
29584
+ else if (mJ(e)) {
29585
+ if (pJ(e)) n.push(t ? {
29396
29586
  action: e,
29397
29587
  itemId: t
29398
29588
  } : { action: e });
29399
- else for (let r of Object.values(e)) cJ(r, t, n);
29589
+ else for (let r of Object.values(e)) gJ(r, t, n);
29400
29590
  }
29401
29591
  return n;
29402
- }, lJ = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], uJ = (e, t, n) => cJ(e).flatMap(({ action: e, itemId: r }) => {
29592
+ }, _J = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], vJ = (e, t, n) => gJ(e).flatMap(({ action: e, itemId: r }) => {
29403
29593
  let i = t.find(({ id: t }) => t === e.id);
29404
29594
  if (!i) return [];
29405
- let a = iJ(i, e.params);
29595
+ let a = fJ(i, e.params);
29406
29596
  return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
29407
29597
  rule: "accessoryViewParams",
29408
29598
  viewId: i.id,
@@ -29411,64 +29601,64 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29411
29601
  ...r && r !== n.elementId ? { itemId: r } : {},
29412
29602
  ...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
29413
29603
  }];
29414
- }), dJ = (e, t, n) => [...uJ([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "text" ? uJ(e, t, {
29604
+ }), yJ = (e, t, n) => [...vJ([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "text" ? vJ(e, t, {
29415
29605
  elementId: e.id,
29416
29606
  accessoryViewId: n
29417
- }) : [])], fJ = (e) => {
29607
+ }) : [])], bJ = (e) => {
29418
29608
  let t = e.accessoryViews ?? [];
29419
- return lJ([...e.sections.flatMap((e) => dJ(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => dJ(n, t, e.id)), ...uJ(e.actions, t, { accessoryViewId: e.id })])]);
29420
- }, pJ = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
29609
+ return _J([...e.sections.flatMap((e) => yJ(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => yJ(n, t, e.id)), ...vJ(e.actions, t, { accessoryViewId: e.id })])]);
29610
+ }, xJ = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
29421
29611
  rule: "sectionLink",
29422
29612
  ...t,
29423
29613
  ...i ? { itemId: i } : {},
29424
29614
  targetSectionId: r.sectionId
29425
- }), !1), mJ = (e, t) => {
29615
+ }), !1), SJ = (e, t) => {
29426
29616
  if (t(e.action, e.id)) return e;
29427
29617
  let { action: n, ...r } = e;
29428
29618
  return r;
29429
- }, hJ = (e, t) => {
29619
+ }, CJ = (e, t) => {
29430
29620
  switch (e.type) {
29431
29621
  case "stats": return {
29432
29622
  ...e,
29433
- stats: e.stats.map((e) => mJ(e, t))
29623
+ stats: e.stats.map((e) => SJ(e, t))
29434
29624
  };
29435
29625
  case "charts": return {
29436
29626
  ...e,
29437
- charts: e.charts.map((e) => mJ(e, t))
29627
+ charts: e.charts.map((e) => SJ(e, t))
29438
29628
  };
29439
29629
  case "events": return {
29440
29630
  ...e,
29441
- events: e.events.map((e) => mJ(e, t))
29631
+ events: e.events.map((e) => SJ(e, t))
29442
29632
  };
29443
29633
  case "list": return {
29444
29634
  ...e,
29445
29635
  rows: e.rows.map((e) => ({
29446
- ...mJ(e, t),
29636
+ ...SJ(e, t),
29447
29637
  actions: e.actions?.filter((n) => t(n.action, e.id))
29448
29638
  }))
29449
29639
  };
29450
29640
  case "entity": return {
29451
29641
  ...e,
29452
- entity: e.entity && mJ(e.entity, t)
29642
+ entity: e.entity && SJ(e.entity, t)
29453
29643
  };
29454
29644
  case "timeline":
29455
29645
  case "posts":
29456
29646
  case "text": return e;
29457
29647
  }
29458
- }, gJ = (e, t, n, r) => hJ(e, pJ(t, n, r)), _J = (e, t) => {
29648
+ }, wJ = (e, t, n, r) => CJ(e, xJ(t, n, r)), TJ = (e, t) => {
29459
29649
  let n = new Set(e.map((e) => e.id));
29460
29650
  return e.map((e) => {
29461
- let r = pJ(n, { sectionId: e.id }, t);
29651
+ let r = xJ(n, { sectionId: e.id }, t);
29462
29652
  return {
29463
29653
  ...e,
29464
29654
  actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
29465
29655
  followUps: e.followUps?.filter((e) => r(e.action, e.id))
29466
29656
  };
29467
29657
  });
29468
- }, vJ = (e) => e.widget ? "widget" : e.block.type, yJ = (e, t) => vJ(t) === e.type, bJ = (e, t, n) => {
29658
+ }, EJ = (e) => e.widget ? "widget" : e.block.type, DJ = (e, t) => EJ(t) === e.type, OJ = (e, t, n) => {
29469
29659
  let r = /* @__PURE__ */ new Map();
29470
29660
  e.sections.forEach((e, n) => {
29471
- let i = rJ(t, n === 0);
29661
+ let i = dJ(t, n === 0);
29472
29662
  for (let t of e.elements) r.set(t.id, {
29473
29663
  element: t,
29474
29664
  rules: i,
@@ -29488,23 +29678,23 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29488
29678
  });
29489
29679
  }
29490
29680
  return r;
29491
- }, xJ = (e, t, n, r = []) => {
29492
- let i = new Set(t.sections.map((e) => e.id)), a = bJ(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
29681
+ }, kJ = (e, t, n, r = []) => {
29682
+ let i = new Set(t.sections.map((e) => e.id)), a = OJ(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
29493
29683
  let n = a.get(e);
29494
29684
  if (!n || t.status !== "ready") return [e, t];
29495
29685
  let r = [], s = t;
29496
- if (!yJ(n.element, t)) r.push({
29686
+ if (!DJ(n.element, t)) r.push({
29497
29687
  rule: "sourceType",
29498
29688
  elementId: e,
29499
29689
  expected: n.element.type,
29500
- received: vJ(t)
29690
+ received: EJ(t)
29501
29691
  });
29502
29692
  else if (t.block) {
29503
29693
  let a = {
29504
29694
  sectionId: n.sectionId,
29505
29695
  elementId: e
29506
- }, o = gJ(eJ(t.block, e, n.rules, r), i, a, r);
29507
- qq(o, Qq(n.rules, o.type), a, r), s = {
29696
+ }, o = wJ(cJ(t.block, e, n.rules, r), i, a, r);
29697
+ tJ(o, oJ(n.rules, o.type), a, r), s = {
29508
29698
  ...t,
29509
29699
  block: o
29510
29700
  };
@@ -29515,20 +29705,20 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29515
29705
  } : e)), [e, s];
29516
29706
  }), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
29517
29707
  let n = a.get(e);
29518
- return n && t.status === "ready" && t.block ? uJ(t.block, c, {
29708
+ return n && t.status === "ready" && t.block ? vJ(t.block, c, {
29519
29709
  elementId: e,
29520
29710
  accessoryViewId: n.accessoryViewId
29521
29711
  }) : [];
29522
29712
  });
29523
29713
  return {
29524
29714
  sources: Object.fromEntries(s),
29525
- violations: [...o, ...lJ(l)]
29715
+ violations: [...o, ..._J(l)]
29526
29716
  };
29527
- }, SJ = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
29717
+ }, AJ = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
29528
29718
  "data-agentic-card": "",
29529
29719
  className: B("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
29530
29720
  children: t
29531
- }), CJ = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", wJ = ({ label: e, press: t, textClassName: n }) => {
29721
+ }), jJ = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", MJ = ({ label: e, press: t, textClassName: n }) => {
29532
29722
  if (!t) return n ? /* @__PURE__ */ Q("span", {
29533
29723
  className: n,
29534
29724
  children: e
@@ -29536,7 +29726,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29536
29726
  variant: "label",
29537
29727
  content: e
29538
29728
  });
29539
- let r = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", CJ, Tn(), n);
29729
+ let r = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", jJ, Tn(), n);
29540
29730
  return t.href ? /* @__PURE__ */ Q(Vn, {
29541
29731
  href: t.href,
29542
29732
  onClick: t.onClick,
@@ -29552,9 +29742,9 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29552
29742
  className: B("cursor-pointer", r),
29553
29743
  children: e
29554
29744
  });
29555
- }, TJ = (e) => {
29745
+ }, NJ = (e) => {
29556
29746
  if (!e) return;
29557
- let t = EJ(e.type === "percent" ? {
29747
+ let t = PJ(e.type === "percent" ? {
29558
29748
  style: "percent",
29559
29749
  maximumFractionDigits: 1
29560
29750
  } : e.type === "compact" ? {
@@ -29565,27 +29755,27 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29565
29755
  currency: e.currency
29566
29756
  } : {});
29567
29757
  return (e) => t.format(e);
29568
- }, EJ = (e) => {
29758
+ }, PJ = (e) => {
29569
29759
  try {
29570
29760
  return new Intl.NumberFormat(void 0, e);
29571
29761
  } catch {
29572
29762
  return new Intl.NumberFormat();
29573
29763
  }
29574
- }, DJ = ({ spec: e, label: t, format: n }) => {
29575
- let r = TJ(n);
29764
+ }, FJ = ({ spec: e, label: t, format: n }) => {
29765
+ let r = NJ(n);
29576
29766
  return /* @__PURE__ */ Q(en, {
29577
29767
  ...e,
29578
29768
  ariaLabel: t,
29579
29769
  valueFormatter: r
29580
29770
  });
29581
- }, OJ = ({ chart: e, press: t }) => /* @__PURE__ */ $(W, {
29771
+ }, IJ = ({ chart: e, press: t }) => /* @__PURE__ */ $(W, {
29582
29772
  display: "flex",
29583
29773
  flexDirection: "column",
29584
29774
  gap: "md",
29585
29775
  children: [/* @__PURE__ */ $(W, {
29586
29776
  display: "flex",
29587
29777
  flexDirection: "column",
29588
- children: [/* @__PURE__ */ Q(wJ, {
29778
+ children: [/* @__PURE__ */ Q(MJ, {
29589
29779
  label: e.label,
29590
29780
  press: t
29591
29781
  }), e.caption ? /* @__PURE__ */ Q(jl, {
@@ -29594,32 +29784,32 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29594
29784
  }) : null]
29595
29785
  }), /* @__PURE__ */ Q("div", {
29596
29786
  className: "h-48 w-full",
29597
- children: /* @__PURE__ */ Q(DJ, {
29787
+ children: /* @__PURE__ */ Q(FJ, {
29598
29788
  spec: e.chart,
29599
29789
  label: e.label,
29600
29790
  format: e.format
29601
29791
  })
29602
29792
  })]
29603
- }), kJ = ({ cards: e }) => /* @__PURE__ */ Q("div", {
29793
+ }), LJ = ({ cards: e }) => /* @__PURE__ */ Q("div", {
29604
29794
  className: "grid w-full grid-cols-1 gap-4 sm:grid-cols-2",
29605
29795
  children: e.map(({ key: e, span: t, card: n }) => /* @__PURE__ */ Q("div", {
29606
29796
  "data-chart-span": t,
29607
29797
  className: t === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
29608
29798
  children: n
29609
29799
  }, e))
29610
- }), AJ = (e, t, n, r = 3) => {
29800
+ }), RJ = (e, t, n, r = 3) => {
29611
29801
  let i = Math.min(Math.max(1, Math.min(r, 3)), Math.max(1, Math.floor(t / n))), a = Math.ceil(Math.max(1, e) / i);
29612
29802
  return Math.ceil(Math.max(1, e) / a);
29613
- }, jJ = 300, MJ = 7, NJ = 14, PJ = 5, FJ = 18, IJ = 3, LJ = (e) => Math.max(0, ...e.map((e) => e.length)), RJ = (e) => {
29803
+ }, zJ = 300, BJ = 7, VJ = 14, HJ = 5, UJ = 18, WJ = 3, GJ = (e) => Math.max(0, ...e.map((e) => e.length)), KJ = (e) => {
29614
29804
  if (e.type === "pie") {
29615
29805
  let t = e.series.data.map((e) => e.name);
29616
- return t.length > PJ || LJ(t) > FJ;
29806
+ return t.length > HJ || GJ(t) > UJ;
29617
29807
  }
29618
- if (e.series.length > IJ) return !0;
29619
- if (e.type === "bar" && e.orientation === "horizontal") return LJ(e.categories) > NJ;
29620
- let t = jJ / Math.max(1, e.categories.length);
29621
- return LJ(e.categories) * MJ > t;
29622
- }, zJ = (e) => VJ(e.map((e) => RJ(e.chart))), BJ = (e) => VJ(Array.from({ length: e }, () => !1)), VJ = (e) => {
29808
+ if (e.series.length > WJ) return !0;
29809
+ if (e.type === "bar" && e.orientation === "horizontal") return GJ(e.categories) > VJ;
29810
+ let t = zJ / Math.max(1, e.categories.length);
29811
+ return GJ(e.categories) * BJ > t;
29812
+ }, qJ = (e) => YJ(e.map((e) => KJ(e.chart))), JJ = (e) => YJ(Array.from({ length: e }, () => !1)), YJ = (e) => {
29623
29813
  if (e.length === 1) return ["full"];
29624
29814
  let t = e.map((e) => e ? "full" : "half"), n = 0;
29625
29815
  return t.forEach((e, r) => {
@@ -29629,36 +29819,36 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29629
29819
  }
29630
29820
  e === "full" && (n = 0);
29631
29821
  }), t;
29632
- }, HJ = "agentic-chart", UJ = { [HJ]: (e) => /* @__PURE__ */ Q(OJ, { ...e }) }, WJ = ({ charts: e, elementId: t, onAction: n }) => {
29633
- let r = zJ(e);
29634
- return /* @__PURE__ */ Q(kJ, { cards: e.map((e, i) => {
29635
- let a = e.action ? Rq(e.action, {
29822
+ }, XJ = "agentic-chart", ZJ = { [XJ]: (e) => /* @__PURE__ */ Q(IJ, { ...e }) }, QJ = ({ charts: e, elementId: t, onAction: n }) => {
29823
+ let r = qJ(e);
29824
+ return /* @__PURE__ */ Q(LJ, { cards: e.map((e, i) => {
29825
+ let a = e.action ? Kq(e.action, {
29636
29826
  elementId: t,
29637
29827
  itemId: e.id
29638
29828
  }, n) : void 0;
29639
29829
  return {
29640
29830
  key: e.id,
29641
29831
  span: r[i] ?? "half",
29642
- card: /* @__PURE__ */ Q(SJ, {
29832
+ card: /* @__PURE__ */ Q(AJ, {
29643
29833
  press: a,
29644
- children: /* @__PURE__ */ Q(Bq, {
29834
+ children: /* @__PURE__ */ Q(Jq, {
29645
29835
  fullHeight: !0,
29646
29836
  slots: [{
29647
- visualization: HJ,
29837
+ visualization: XJ,
29648
29838
  params: {
29649
29839
  chart: e,
29650
29840
  press: a
29651
29841
  }
29652
29842
  }],
29653
- slotRenderers: UJ
29843
+ slotRenderers: ZJ
29654
29844
  })
29655
29845
  })
29656
29846
  };
29657
29847
  }) });
29658
- }, GJ = {
29848
+ }, $J = {
29659
29849
  md: "size-8 rounded",
29660
29850
  lg: "size-10 rounded-md"
29661
- }, KJ = ({ icon: e, color: t, size: n }) => {
29851
+ }, eY = ({ icon: e, color: t, size: n }) => {
29662
29852
  let r = t ? h(t) : void 0;
29663
29853
  return r ? /* @__PURE__ */ Q("span", {
29664
29854
  className: "shrink-0",
@@ -29668,14 +29858,14 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29668
29858
  size: n
29669
29859
  })
29670
29860
  }) : /* @__PURE__ */ Q("span", {
29671
- className: B("flex shrink-0 items-center justify-center border border-solid border-f1-border-secondary", GJ[n]),
29861
+ className: B("flex shrink-0 items-center justify-center border border-solid border-f1-border-secondary", $J[n]),
29672
29862
  children: /* @__PURE__ */ Q(U, {
29673
29863
  icon: e,
29674
29864
  size: "md",
29675
29865
  color: "default"
29676
29866
  })
29677
29867
  });
29678
- }, qJ = ({ label: e, info: t }) => /* @__PURE__ */ Q(Fn, {
29868
+ }, tY = ({ label: e, info: t }) => /* @__PURE__ */ Q(Fn, {
29679
29869
  label: e,
29680
29870
  description: t,
29681
29871
  children: /* @__PURE__ */ Q("button", {
@@ -29688,14 +29878,14 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29688
29878
  color: "currentColor"
29689
29879
  })
29690
29880
  })
29691
- }), JJ = {
29881
+ }), nY = {
29692
29882
  neutral: "text-f1-foreground",
29693
29883
  info: "text-f1-foreground-info",
29694
29884
  positive: "text-f1-foreground-positive",
29695
29885
  warning: "text-f1-foreground-warning",
29696
29886
  critical: "text-f1-foreground-critical"
29697
- }, YJ = ({ field: e }) => {
29698
- let t = JJ[e.tone ?? "neutral"];
29887
+ }, rY = ({ field: e }) => {
29888
+ let t = nY[e.tone ?? "neutral"];
29699
29889
  return e.avatars ? /* @__PURE__ */ Q(W, {
29700
29890
  display: "flex",
29701
29891
  alignItems: "center",
@@ -29730,15 +29920,15 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29730
29920
  lines: 1,
29731
29921
  children: e.value
29732
29922
  });
29733
- }, XJ = ({ field: e, color: t }) => {
29734
- let n = Iq(e.icon);
29923
+ }, iY = ({ field: e, color: t }) => {
29924
+ let n = Wq(e.icon);
29735
29925
  return /* @__PURE__ */ $(W, {
29736
29926
  display: "flex",
29737
29927
  alignItems: "center",
29738
29928
  gap: "md",
29739
29929
  padding: "md",
29740
29930
  height: "full",
29741
- children: [n ? /* @__PURE__ */ Q(KJ, {
29931
+ children: [n ? /* @__PURE__ */ Q(eY, {
29742
29932
  icon: n,
29743
29933
  color: e.color ?? t,
29744
29934
  size: "lg"
@@ -29756,20 +29946,20 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29756
29946
  variant: "description",
29757
29947
  content: e.label,
29758
29948
  ellipsis: !0
29759
- }), e.info ? /* @__PURE__ */ Q(qJ, {
29949
+ }), e.info ? /* @__PURE__ */ Q(tY, {
29760
29950
  label: e.label,
29761
29951
  info: e.info
29762
29952
  }) : null]
29763
- }), /* @__PURE__ */ Q(YJ, { field: e })]
29953
+ }), /* @__PURE__ */ Q(rY, { field: e })]
29764
29954
  })]
29765
29955
  });
29766
- }, ZJ = 160, QJ = 32, $J = (e) => [...e.querySelectorAll("*")].some((e) => {
29956
+ }, aY = 160, oY = 32, sY = (e) => [...e.querySelectorAll("*")].some((e) => {
29767
29957
  let { overflowX: t, overflowY: n } = getComputedStyle(e);
29768
29958
  return t !== "hidden" && n !== "hidden" ? !1 : e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1;
29769
- }), eY = (e, t) => {
29959
+ }), cY = (e, t) => {
29770
29960
  for (let n = Math.min(t, e); n > 1; --n) if (e % n === 0) return n;
29771
29961
  return 1;
29772
- }, tY = () => {
29962
+ }, lY = () => {
29773
29963
  let [e, t] = X(!1);
29774
29964
  return K(() => {
29775
29965
  let e = !0;
@@ -29779,14 +29969,14 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29779
29969
  e = !1;
29780
29970
  };
29781
29971
  }, []), e;
29782
- }, nY = (e, t, n) => {
29972
+ }, uY = (e, t, n) => {
29783
29973
  let { width: r } = jn({
29784
29974
  ref: e,
29785
29975
  box: "border-box"
29786
- }), [i, a] = X({ max: 3 }), o = i.width === r && i.contentKey === n ? i.max : 3, s = eY(t, AJ(t, r || 712 - QJ, ZJ, o)), c = tY();
29976
+ }), [i, a] = X({ max: 3 }), o = i.width === r && i.contentKey === n ? i.max : 3, s = cY(t, RJ(t, r || 712 - oY, aY, o)), c = lY();
29787
29977
  return q(() => {
29788
29978
  let t = e.current;
29789
- !t || s <= 1 || [...t.querySelectorAll("[data-agentic-field]")].some($J) && a({
29979
+ !t || s <= 1 || [...t.querySelectorAll("[data-agentic-field]")].some(sY) && a({
29790
29980
  width: r,
29791
29981
  contentKey: n,
29792
29982
  max: s - 1
@@ -29798,8 +29988,8 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29798
29988
  n,
29799
29989
  c
29800
29990
  ]), s;
29801
- }, rY = ({ cells: e, contentKey: t }) => {
29802
- let n = Y(null), r = nY(n, e.length, t);
29991
+ }, dY = ({ cells: e, contentKey: t }) => {
29992
+ let n = Y(null), r = uY(n, e.length, t);
29803
29993
  return /* @__PURE__ */ Q("div", {
29804
29994
  ref: n,
29805
29995
  className: "overflow-hidden rounded-lg border border-solid border-f1-border-secondary",
@@ -29813,12 +30003,12 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29813
30003
  }, e))
29814
30004
  })
29815
30005
  });
29816
- }, iY = (e) => {
30006
+ }, fY = (e) => {
29817
30007
  if (!e) return;
29818
30008
  let t = new Date(e);
29819
30009
  return Number.isNaN(t.getTime()) ? void 0 : t;
29820
- }, aY = "w-full text-base text-f1-foreground-secondary", oY = ({ entity: e, fields: t, press: n }) => {
29821
- let r = iY(e.date);
30010
+ }, pY = "w-full text-base text-f1-foreground-secondary", mY = ({ entity: e, fields: t, press: n }) => {
30011
+ let r = fY(e.date);
29822
30012
  return /* @__PURE__ */ $(W, {
29823
30013
  display: "flex",
29824
30014
  flexDirection: "column",
@@ -29827,7 +30017,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29827
30017
  className: "relative flex items-center gap-4",
29828
30018
  children: [
29829
30019
  e.avatar ? /* @__PURE__ */ Q(Rs, {
29830
- avatar: Lq(e.avatar),
30020
+ avatar: Gq(e.avatar),
29831
30021
  size: "2xl"
29832
30022
  }) : null,
29833
30023
  /* @__PURE__ */ $(W, {
@@ -29839,17 +30029,17 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29839
30029
  minWidth: "0",
29840
30030
  children: [
29841
30031
  e.eyebrow ? /* @__PURE__ */ Q(nr, {
29842
- className: aY,
30032
+ className: pY,
29843
30033
  lines: 1,
29844
30034
  children: e.eyebrow
29845
30035
  }) : null,
29846
- /* @__PURE__ */ Q(wJ, {
30036
+ /* @__PURE__ */ Q(MJ, {
29847
30037
  label: e.title,
29848
30038
  press: n,
29849
30039
  textClassName: "block w-full truncate text-lg font-semibold text-f1-foreground"
29850
30040
  }),
29851
30041
  e.subtitle ? /* @__PURE__ */ Q(nr, {
29852
- className: aY,
30042
+ className: pY,
29853
30043
  lines: 1,
29854
30044
  children: e.subtitle
29855
30045
  }) : null,
@@ -29867,40 +30057,40 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29867
30057
  size: "lg"
29868
30058
  }) : null
29869
30059
  ]
29870
- }), t.length ? /* @__PURE__ */ Q(rY, {
30060
+ }), t.length ? /* @__PURE__ */ Q(dY, {
29871
30061
  contentKey: t,
29872
30062
  cells: t.map((t) => ({
29873
30063
  key: t.id,
29874
- content: /* @__PURE__ */ Q(XJ, {
30064
+ content: /* @__PURE__ */ Q(iY, {
29875
30065
  field: t,
29876
30066
  color: e.color
29877
30067
  })
29878
30068
  }))
29879
30069
  }) : null]
29880
30070
  });
29881
- }, sY = "agentic-entity", cY = { [sY]: (e) => /* @__PURE__ */ Q(oY, { ...e }) }, lY = ({ content: e, elementId: t, onAction: n }) => {
30071
+ }, hY = "agentic-entity", gY = { [hY]: (e) => /* @__PURE__ */ Q(mY, { ...e }) }, _Y = ({ content: e, elementId: t, onAction: n }) => {
29882
30072
  let { entity: r } = e;
29883
- return /* @__PURE__ */ Q(Bq, {
29884
- slotRenderers: cY,
30073
+ return /* @__PURE__ */ Q(Jq, {
30074
+ slotRenderers: gY,
29885
30075
  slots: [{
29886
- visualization: sY,
30076
+ visualization: hY,
29887
30077
  params: {
29888
30078
  entity: r,
29889
30079
  fields: (e.fields ?? []).slice(0, 6),
29890
- press: r.action ? Rq(r.action, {
30080
+ press: r.action ? Kq(r.action, {
29891
30081
  elementId: t,
29892
30082
  itemId: r.id
29893
30083
  }, n) : void 0
29894
30084
  }
29895
30085
  }]
29896
30086
  });
29897
- }, uY = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(W, {
30087
+ }, vY = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(W, {
29898
30088
  display: "flex",
29899
30089
  flexDirection: "column",
29900
30090
  gap: "md",
29901
- children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(Bq, { slots: [HG("event-list", { events: [{
30091
+ children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(Jq, { slots: [XG("event-list", { events: [{
29902
30092
  ...s,
29903
- ...o ? Rq(o, {
30093
+ ...o ? Kq(o, {
29904
30094
  elementId: t,
29905
30095
  itemId: e
29906
30096
  }, n) : {},
@@ -29909,7 +30099,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29909
30099
  fromDate: r ? new Date(r) : void 0,
29910
30100
  toDate: i ? new Date(i) : void 0
29911
30101
  }] })] }, e))
29912
- }), dY = ku(function(e, t) {
30102
+ }), yY = ku(function(e, t) {
29913
30103
  return /* @__PURE__ */ $("svg", {
29914
30104
  xmlns: "http://www.w3.org/2000/svg",
29915
30105
  fill: "none",
@@ -29928,7 +30118,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29928
30118
  d: "M9.5 5.5H19.5M9.5 10H19.5M9.5 14.5H19.5M9.5 19H19.5"
29929
30119
  })]
29930
30120
  });
29931
- }), fY = ku(function(e, t) {
30121
+ }), bY = ku(function(e, t) {
29932
30122
  return /* @__PURE__ */ $("svg", {
29933
30123
  xmlns: "http://www.w3.org/2000/svg",
29934
30124
  fill: "none",
@@ -29965,7 +30155,7 @@ var wq = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
29965
30155
  });
29966
30156
  //#endregion
29967
30157
  //#region src/domains/platform/home/Home/F0AgenticHome/blocks/ListBlock/DensityToggle.tsx
29968
- function pY({ compact: e, onCompactChange: t }) {
30158
+ function xY({ compact: e, onCompactChange: t }) {
29969
30159
  let n = R();
29970
30160
  return /* @__PURE__ */ Q("div", {
29971
30161
  role: "group",
@@ -29980,12 +30170,12 @@ function pY({ compact: e, onCompactChange: t }) {
29980
30170
  },
29981
30171
  items: [{
29982
30172
  value: "regular",
29983
- icon: fY,
30173
+ icon: bY,
29984
30174
  label: n.widgets.listRegular,
29985
30175
  tooltip: n.widgets.listRegular
29986
30176
  }, {
29987
30177
  value: "compact",
29988
- icon: dY,
30178
+ icon: yY,
29989
30179
  label: n.widgets.listCompact,
29990
30180
  tooltip: n.widgets.listCompact
29991
30181
  }]
@@ -29994,22 +30184,22 @@ function pY({ compact: e, onCompactChange: t }) {
29994
30184
  }
29995
30185
  //#endregion
29996
30186
  //#region src/domains/platform/home/Home/F0AgenticHome/blocks/ListBlock/listDensity.ts
29997
- var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i) => ({
30187
+ var SY = Ou(null), CY = () => Nu(SY), wY = ({ action: e, rows: t, ...n }, r, i) => ({
29998
30188
  ...n,
29999
- href: KK(n.href),
30189
+ href: eq(n.href),
30000
30190
  ...e ? {
30001
30191
  href: void 0,
30002
- ...Rq(e, {
30192
+ ...Kq(e, {
30003
30193
  elementId: r,
30004
30194
  itemId: n.id
30005
30195
  }, i)
30006
30196
  } : {},
30007
- avatar: n.avatar && Lq(n.avatar),
30008
- rightAvatar: n.rightAvatar && Lq(n.rightAvatar),
30009
- avatars: n.avatars?.map(Lq),
30197
+ avatar: n.avatar && Gq(n.avatar),
30198
+ rightAvatar: n.rightAvatar && Gq(n.rightAvatar),
30199
+ avatars: n.avatars?.map(Gq),
30010
30200
  actions: n.actions?.map((e) => ({
30011
30201
  label: e.label,
30012
- icon: Iq(e.icon),
30202
+ icon: Wq(e.icon),
30013
30203
  critical: e.critical,
30014
30204
  showLabel: e.showLabel,
30015
30205
  onClick: () => i(e.action, {
@@ -30017,32 +30207,32 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30017
30207
  itemId: n.id
30018
30208
  })
30019
30209
  }))
30020
- }), _Y = (e, t, n) => ({
30021
- ...gY(e, t, n),
30022
- items: e.rows?.map((e) => gY(e, t, n))
30023
- }), vY = (e) => e.rows.flatMap((e) => [e, ...e.rows ?? []]).some(({ action: e }) => e?.type === "navigate") ? {
30210
+ }), TY = (e, t, n) => ({
30211
+ ...wY(e, t, n),
30212
+ items: e.rows?.map((e) => wY(e, t, n))
30213
+ }), EY = (e) => e.rows.flatMap((e) => [e, ...e.rows ?? []]).some(({ action: e }) => e?.type === "navigate") ? {
30024
30214
  ...e.schema,
30025
30215
  clickBehavior: "link"
30026
- } : e.schema, yY = (e, t, n) => [{
30216
+ } : e.schema, DY = (e, t, n) => [{
30027
30217
  visualization: "list",
30028
30218
  params: {
30029
- schema: vY(e),
30030
- items: e.rows.map((e) => _Y(e, t, n))
30219
+ schema: EY(e),
30220
+ items: e.rows.map((e) => TY(e, t, n))
30031
30221
  }
30032
- }], bY = (e, t) => e ?? (t ? "critical" : void 0), xY = (e) => {
30222
+ }], OY = (e, t) => e ?? (t ? "critical" : void 0), kY = (e) => {
30033
30223
  let { description: t } = e;
30034
30224
  if (!t) return;
30035
30225
  if (typeof t == "string") return {
30036
30226
  text: t,
30037
- variant: bY(e.descriptionVariant, e.descriptionCritical)
30227
+ variant: OY(e.descriptionVariant, e.descriptionCritical)
30038
30228
  };
30039
- let n = new Set(t.map(({ variant: e, critical: t }) => bY(e, t)));
30229
+ let n = new Set(t.map(({ variant: e, critical: t }) => OY(e, t)));
30040
30230
  return {
30041
30231
  text: t.map(({ text: e }) => e).join(" · "),
30042
30232
  variant: n.has("critical") ? "critical" : n.has("warning") ? "warning" : void 0
30043
30233
  };
30044
- }, SY = (e) => {
30045
- let t = xY(e);
30234
+ }, AY = (e) => {
30235
+ let t = kY(e);
30046
30236
  return !t || e.subtitle ? e : {
30047
30237
  ...e,
30048
30238
  subtitle: t.text,
@@ -30052,15 +30242,15 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30052
30242
  descriptionCritical: void 0,
30053
30243
  tooltipDescription: e.tooltipDescription ?? t.text
30054
30244
  };
30055
- }, CY = (e) => ({
30245
+ }, jY = (e) => ({
30056
30246
  ...e,
30057
30247
  schema: {
30058
30248
  ...e.schema,
30059
30249
  compact: !0,
30060
30250
  subtitleOptional: !0
30061
30251
  },
30062
- rows: e.rows.map(SY)
30063
- }), wY = ({ className: e, children: t }) => {
30252
+ rows: e.rows.map(AY)
30253
+ }), MY = ({ className: e, children: t }) => {
30064
30254
  let n = Y(null), r = Kt(n);
30065
30255
  return /* @__PURE__ */ Q("div", {
30066
30256
  ref: n,
@@ -30070,8 +30260,8 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30070
30260
  children: t
30071
30261
  })
30072
30262
  });
30073
- }, TY = ({ content: e, elementId: t, onAction: n }) => {
30074
- let r = hY(), [i, a] = X(null), o = r ? r.compact : i, s = r ? r.setCompact : a, c = o ?? !!e.schema.compact, l = o === null ? e : c ? CY(e) : {
30263
+ }, NY = ({ content: e, elementId: t, onAction: n }) => {
30264
+ let r = CY(), [i, a] = X(null), o = r ? r.compact : i, s = r ? r.setCompact : a, c = o ?? !!e.schema.compact, l = o === null ? e : c ? jY(e) : {
30075
30265
  ...e,
30076
30266
  schema: {
30077
30267
  ...e.schema,
@@ -30093,30 +30283,30 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30093
30283
  children: e.title
30094
30284
  }) : null, e.densityToggle ? /* @__PURE__ */ Q(W, {
30095
30285
  marginLeft: "auto",
30096
- children: /* @__PURE__ */ Q(pY, {
30286
+ children: /* @__PURE__ */ Q(xY, {
30097
30287
  compact: c,
30098
30288
  onCompactChange: s
30099
30289
  })
30100
30290
  }) : null]
30101
- }) : null, /* @__PURE__ */ Q(wY, {
30102
- className: B(xG, "p-2 text-base", SG),
30103
- children: /* @__PURE__ */ Q(wG, {
30291
+ }) : null, /* @__PURE__ */ Q(MY, {
30292
+ className: B(kG, "p-2 text-base", AG),
30293
+ children: /* @__PURE__ */ Q(MG, {
30104
30294
  value: !0,
30105
- children: /* @__PURE__ */ Q(MK, {
30295
+ children: /* @__PURE__ */ Q(BK, {
30106
30296
  headless: !0,
30107
- slots: yY(l, t, n)
30297
+ slots: DY(l, t, n)
30108
30298
  })
30109
30299
  })
30110
30300
  })]
30111
30301
  });
30112
- }, EY = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(TY, {
30302
+ }, PY = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(NY, {
30113
30303
  content: e,
30114
30304
  elementId: t,
30115
30305
  onAction: n
30116
- }) : /* @__PURE__ */ Q(Bq, {
30306
+ }) : /* @__PURE__ */ Q(Jq, {
30117
30307
  title: e.title,
30118
- slots: yY(e, t, n)
30119
- }), DY = ({ posts: e }) => /* @__PURE__ */ Q(W, {
30308
+ slots: DY(e, t, n)
30309
+ }), FY = ({ posts: e }) => /* @__PURE__ */ Q(W, {
30120
30310
  display: "flex",
30121
30311
  flexDirection: "column",
30122
30312
  gap: "md",
@@ -30124,25 +30314,25 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30124
30314
  variant: "row",
30125
30315
  post: {
30126
30316
  ...n,
30127
- href: KK(t),
30317
+ href: eq(t),
30128
30318
  createdAt: new Date(e)
30129
30319
  }
30130
30320
  }, n.id))
30131
- }), OY = "agentic-stats", kY = {
30321
+ }), IY = "agentic-stats", LY = {
30132
30322
  positive: "text-f1-foreground-positive",
30133
30323
  negative: "text-f1-foreground-critical",
30134
30324
  neutral: "text-f1-foreground-secondary"
30135
- }, AY = (e, t, n) => ({
30136
- visualization: OY,
30325
+ }, RY = (e, t, n) => ({
30326
+ visualization: IY,
30137
30327
  params: { stats: e.map((e) => ({
30138
30328
  stat: e,
30139
- press: e.action ? Rq(e.action, {
30329
+ press: e.action ? Kq(e.action, {
30140
30330
  elementId: t,
30141
30331
  itemId: e.id
30142
30332
  }, n) : void 0
30143
30333
  })) }
30144
- }), jY = ({ stat: e, press: t }) => {
30145
- let n = Iq(e.icon);
30334
+ }), zY = ({ stat: e, press: t }) => {
30335
+ let n = Wq(e.icon);
30146
30336
  return /* @__PURE__ */ $(W, {
30147
30337
  display: "flex",
30148
30338
  flexDirection: "column",
@@ -30153,7 +30343,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30153
30343
  display: "flex",
30154
30344
  alignItems: "center",
30155
30345
  gap: "md",
30156
- children: [n ? /* @__PURE__ */ Q(KJ, {
30346
+ children: [n ? /* @__PURE__ */ Q(eY, {
30157
30347
  icon: n,
30158
30348
  color: e.color,
30159
30349
  size: "lg"
@@ -30163,7 +30353,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30163
30353
  children: [e.eyebrow ? /* @__PURE__ */ Q(jl, {
30164
30354
  variant: "description",
30165
30355
  content: e.eyebrow
30166
- }) : null, /* @__PURE__ */ Q(wJ, {
30356
+ }) : null, /* @__PURE__ */ Q(MJ, {
30167
30357
  label: e.label,
30168
30358
  press: t
30169
30359
  })]
@@ -30183,7 +30373,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30183
30373
  className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
30184
30374
  }) : null, e.value]
30185
30375
  }), e.trend ? /* @__PURE__ */ Q("span", {
30186
- className: B("text-base font-medium", kY[e.trend.tone ?? "neutral"]),
30376
+ className: B("text-base font-medium", LY[e.trend.tone ?? "neutral"]),
30187
30377
  children: e.trend.text
30188
30378
  }) : null]
30189
30379
  }), e.caption ? /* @__PURE__ */ Q(jl, {
@@ -30192,14 +30382,14 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30192
30382
  }) : null]
30193
30383
  })]
30194
30384
  });
30195
- }, MY = (e, t) => AJ(e, t, 160), NY = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", PY = ({ cells: e }) => {
30385
+ }, BY = (e, t) => RJ(e, t, 160), VY = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", HY = ({ cells: e }) => {
30196
30386
  let t = Y(null), { width: n } = jn({
30197
30387
  ref: t,
30198
30388
  box: "border-box"
30199
- }), r = MY(e.length, n || 712);
30389
+ }), r = BY(e.length, n || 712);
30200
30390
  return /* @__PURE__ */ Q("div", {
30201
30391
  ref: t,
30202
- className: B("-m-4", NY),
30392
+ className: B("-m-4", VY),
30203
30393
  children: /* @__PURE__ */ Q("div", {
30204
30394
  className: "-mb-px -mr-px flex flex-wrap",
30205
30395
  children: e.map(({ key: e, pressable: t, content: n }) => /* @__PURE__ */ Q("div", {
@@ -30210,42 +30400,42 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30210
30400
  }, e))
30211
30401
  })
30212
30402
  });
30213
- }, FY = ({ stats: e }) => /* @__PURE__ */ Q(PY, { cells: e.map(({ stat: e, press: t }) => ({
30403
+ }, UY = ({ stats: e }) => /* @__PURE__ */ Q(HY, { cells: e.map(({ stat: e, press: t }) => ({
30214
30404
  key: e.id,
30215
30405
  pressable: !!t,
30216
- content: /* @__PURE__ */ Q(jY, {
30406
+ content: /* @__PURE__ */ Q(zY, {
30217
30407
  stat: e,
30218
30408
  press: t
30219
30409
  })
30220
- })) }), IY = { [OY]: (e) => /* @__PURE__ */ Q(FY, { ...e }) }, LY = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Bq, {
30221
- slots: [AY(e, t, n)],
30222
- slotRenderers: IY
30223
- }), RY = er().use(Kn), zY = (e) => RY.parse(e), BY = (e) => e.value ?? e.alt ?? (e.children ?? []).map(BY).join(""), VY = (e) => (e ?? []).map((e, t) => HY(e, t)), HY = (e, t) => {
30410
+ })) }), WY = { [IY]: (e) => /* @__PURE__ */ Q(UY, { ...e }) }, GY = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(Jq, {
30411
+ slots: [RY(e, t, n)],
30412
+ slotRenderers: WY
30413
+ }), KY = er().use(Kn), qY = (e) => KY.parse(e), JY = (e) => e.value ?? e.alt ?? (e.children ?? []).map(JY).join(""), YY = (e) => (e ?? []).map((e, t) => XY(e, t)), XY = (e, t) => {
30224
30414
  switch (e.type) {
30225
- case "root": return VY(e.children);
30415
+ case "root": return YY(e.children);
30226
30416
  case "text": return e.value;
30227
30417
  case "paragraph": return /* @__PURE__ */ Q("p", {
30228
30418
  className: "m-0",
30229
- children: VY(e.children)
30419
+ children: YY(e.children)
30230
30420
  }, t);
30231
30421
  case "heading": return /* @__PURE__ */ Q(g, {
30232
30422
  as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
30233
30423
  variant: "heading",
30234
- content: BY(e)
30424
+ content: JY(e)
30235
30425
  }, t);
30236
30426
  case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
30237
30427
  className: "m-0 flex list-decimal flex-col gap-1 pl-5",
30238
- children: VY(e.children)
30428
+ children: YY(e.children)
30239
30429
  }, t) : /* @__PURE__ */ Q("ul", {
30240
30430
  className: "m-0 flex list-disc flex-col gap-1 pl-5",
30241
- children: VY(e.children)
30431
+ children: YY(e.children)
30242
30432
  }, t);
30243
- case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? VY(e.children) : HY(e, t)) }, t);
30433
+ case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? YY(e.children) : XY(e, t)) }, t);
30244
30434
  case "strong": return /* @__PURE__ */ Q("strong", {
30245
30435
  className: "font-semibold",
30246
- children: VY(e.children)
30436
+ children: YY(e.children)
30247
30437
  }, t);
30248
- case "emphasis": return /* @__PURE__ */ Q("em", { children: VY(e.children) }, t);
30438
+ case "emphasis": return /* @__PURE__ */ Q("em", { children: YY(e.children) }, t);
30249
30439
  case "inlineCode": return /* @__PURE__ */ Q(jl, {
30250
30440
  as: "code",
30251
30441
  variant: "code",
@@ -30261,52 +30451,52 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30261
30451
  content: e.value ?? ""
30262
30452
  })
30263
30453
  }, t);
30264
- case "link": return e.url && JK(e.url) ? /* @__PURE__ */ Q($r, {
30454
+ case "link": return e.url && nq(e.url) ? /* @__PURE__ */ Q($r, {
30265
30455
  href: e.url,
30266
- children: BY(e)
30267
- }, t) : BY(e);
30456
+ children: JY(e)
30457
+ }, t) : JY(e);
30268
30458
  case "break": return /* @__PURE__ */ Q("br", {}, t);
30269
- default: return BY(e);
30459
+ default: return JY(e);
30270
30460
  }
30271
- }, UY = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
30461
+ }, ZY = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
30272
30462
  "data-agentic-text": !0,
30273
30463
  className: B("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
30274
- children: HY(zY(e), 0)
30275
- }), WY = ({ text: e, lead: t }) => /* @__PURE__ */ Q(UY, {
30464
+ children: XY(qY(e), 0)
30465
+ }), QY = ({ text: e, lead: t }) => /* @__PURE__ */ Q(ZY, {
30276
30466
  text: e,
30277
30467
  lead: t
30278
- }), GY = ({ items: e }) => /* @__PURE__ */ Q(zm, { items: e.map((e) => ({
30468
+ }), $Y = ({ items: e }) => /* @__PURE__ */ Q(zm, { items: e.map((e) => ({
30279
30469
  id: e.id,
30280
30470
  status: e.status ?? "completed",
30281
- icon: Iq(e.icon),
30471
+ icon: Wq(e.icon),
30282
30472
  title: e.title,
30283
30473
  description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
30284
- })) }), KY = "agentic-timeline", qY = { [KY]: (e) => /* @__PURE__ */ Q(GY, { items: e.items }) }, JY = ({ items: e }) => /* @__PURE__ */ Q(Bq, {
30474
+ })) }), eX = "agentic-timeline", tX = { [eX]: (e) => /* @__PURE__ */ Q($Y, { items: e.items }) }, nX = ({ items: e }) => /* @__PURE__ */ Q(Jq, {
30285
30475
  slots: [{
30286
- visualization: KY,
30476
+ visualization: eX,
30287
30477
  params: { items: e }
30288
30478
  }],
30289
- slotRenderers: qY
30290
- }), YY = ({ block: e, elementId: t, onAction: n, lead: r }) => {
30479
+ slotRenderers: tX
30480
+ }), rX = ({ block: e, elementId: t, onAction: n, lead: r }) => {
30291
30481
  switch (e.type) {
30292
- case "stats": return /* @__PURE__ */ Q(LY, {
30482
+ case "stats": return /* @__PURE__ */ Q(GY, {
30293
30483
  stats: e.stats,
30294
30484
  elementId: t,
30295
30485
  onAction: n
30296
30486
  });
30297
- case "list": return /* @__PURE__ */ Q(EY, {
30487
+ case "list": return /* @__PURE__ */ Q(PY, {
30298
30488
  content: e,
30299
30489
  elementId: t,
30300
30490
  onAction: n
30301
30491
  });
30302
- case "timeline": return /* @__PURE__ */ Q(JY, { items: e.items });
30303
- case "events": return /* @__PURE__ */ Q(uY, {
30492
+ case "timeline": return /* @__PURE__ */ Q(nX, { items: e.items });
30493
+ case "events": return /* @__PURE__ */ Q(vY, {
30304
30494
  events: e.events,
30305
30495
  elementId: t,
30306
30496
  onAction: n
30307
30497
  });
30308
- case "posts": return /* @__PURE__ */ Q(DY, { posts: e.posts });
30309
- case "entity": return e.entity ? /* @__PURE__ */ Q(lY, {
30498
+ case "posts": return /* @__PURE__ */ Q(FY, { posts: e.posts });
30499
+ case "entity": return e.entity ? /* @__PURE__ */ Q(_Y, {
30310
30500
  content: {
30311
30501
  ...e,
30312
30502
  entity: e.entity
@@ -30314,36 +30504,36 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30314
30504
  elementId: t,
30315
30505
  onAction: n
30316
30506
  }) : null;
30317
- case "text": return /* @__PURE__ */ Q(WY, {
30507
+ case "text": return /* @__PURE__ */ Q(QY, {
30318
30508
  text: e.text,
30319
30509
  lead: r
30320
30510
  });
30321
- case "charts": return /* @__PURE__ */ Q(WJ, {
30511
+ case "charts": return /* @__PURE__ */ Q(QJ, {
30322
30512
  charts: e.charts,
30323
30513
  elementId: t,
30324
30514
  onAction: n
30325
30515
  });
30326
30516
  }
30327
- }, XY = ({ className: e }) => /* @__PURE__ */ Q(z, { className: B("rounded-2xs motion-reduce:animate-none", e) }), ZY = "agentic-skeleton", QY = { [ZY]: (e, t) => {
30517
+ }, iX = ({ className: e }) => /* @__PURE__ */ Q(z, { className: B("rounded-2xs motion-reduce:animate-none", e) }), aX = "agentic-skeleton", oX = { [aX]: (e, t) => {
30328
30518
  let { content: n } = e;
30329
30519
  return typeof n == "function" ? n(t) : n;
30330
- } }, $Y = ({ children: e, fullHeight: t, title: n }) => /* @__PURE__ */ Q(Bq, {
30520
+ } }, sX = ({ children: e, fullHeight: t, title: n }) => /* @__PURE__ */ Q(Jq, {
30331
30521
  title: n,
30332
30522
  fullHeight: t,
30333
30523
  slots: [{
30334
- visualization: ZY,
30524
+ visualization: aX,
30335
30525
  params: { content: e }
30336
30526
  }],
30337
- slotRenderers: QY
30338
- }), eX = ({ lineHeight: e = "h-5", className: t }) => /* @__PURE__ */ Q("div", {
30527
+ slotRenderers: oX
30528
+ }), cX = ({ lineHeight: e = "h-5", className: t }) => /* @__PURE__ */ Q("div", {
30339
30529
  className: B("flex w-full shrink-0 items-center", e),
30340
- children: /* @__PURE__ */ Q(XY, { className: B("h-3", t) })
30341
- }), tX = (e) => Array.from({ length: e }, (e, t) => t), nX = ({ count: e }) => {
30342
- let t = BJ(e);
30343
- return /* @__PURE__ */ Q(kJ, { cards: tX(e).map((e) => ({
30530
+ children: /* @__PURE__ */ Q(iX, { className: B("h-3", t) })
30531
+ }), lX = (e) => Array.from({ length: e }, (e, t) => t), uX = ({ count: e }) => {
30532
+ let t = JJ(e);
30533
+ return /* @__PURE__ */ Q(LJ, { cards: lX(e).map((e) => ({
30344
30534
  key: String(e),
30345
30535
  span: t[e] ?? "half",
30346
- card: /* @__PURE__ */ Q(SJ, { children: /* @__PURE__ */ Q($Y, {
30536
+ card: /* @__PURE__ */ Q(AJ, { children: /* @__PURE__ */ Q(sX, {
30347
30537
  fullHeight: !0,
30348
30538
  children: /* @__PURE__ */ $(W, {
30349
30539
  display: "flex",
@@ -30352,33 +30542,33 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30352
30542
  children: [/* @__PURE__ */ $(W, {
30353
30543
  display: "flex",
30354
30544
  flexDirection: "column",
30355
- children: [/* @__PURE__ */ Q(eX, { className: "w-32" }), /* @__PURE__ */ Q(eX, { className: "w-24" })]
30356
- }), /* @__PURE__ */ Q(XY, { className: "h-48 w-full rounded-md" })]
30545
+ children: [/* @__PURE__ */ Q(cX, { className: "w-32" }), /* @__PURE__ */ Q(cX, { className: "w-24" })]
30546
+ }), /* @__PURE__ */ Q(iX, { className: "h-48 w-full rounded-md" })]
30357
30547
  })
30358
30548
  }) })
30359
30549
  })) });
30360
- }, rX = ({ index: e }) => /* @__PURE__ */ $(W, {
30550
+ }, dX = ({ index: e }) => /* @__PURE__ */ $(W, {
30361
30551
  display: "flex",
30362
30552
  alignItems: "center",
30363
30553
  gap: "md",
30364
30554
  padding: "md",
30365
30555
  height: "full",
30366
- children: [/* @__PURE__ */ Q(XY, { className: "size-10 shrink-0 rounded-md" }), /* @__PURE__ */ $(W, {
30556
+ children: [/* @__PURE__ */ Q(iX, { className: "size-10 shrink-0 rounded-md" }), /* @__PURE__ */ $(W, {
30367
30557
  display: "flex",
30368
30558
  flexDirection: "column",
30369
30559
  grow: !0,
30370
30560
  minWidth: "0",
30371
- children: [/* @__PURE__ */ Q(eX, { className: e % 2 ? "w-1/2" : "w-2/3" }), /* @__PURE__ */ Q(eX, { className: "w-1/3" })]
30561
+ children: [/* @__PURE__ */ Q(cX, { className: e % 2 ? "w-1/2" : "w-2/3" }), /* @__PURE__ */ Q(cX, { className: "w-1/3" })]
30372
30562
  })]
30373
- }), iX = ({ count: e }) => {
30563
+ }), fX = ({ count: e }) => {
30374
30564
  let t = Math.min(e, 6);
30375
- return /* @__PURE__ */ Q($Y, { children: /* @__PURE__ */ $(W, {
30565
+ return /* @__PURE__ */ Q(sX, { children: /* @__PURE__ */ $(W, {
30376
30566
  display: "flex",
30377
30567
  flexDirection: "column",
30378
30568
  gap: "xl",
30379
30569
  children: [/* @__PURE__ */ $("div", {
30380
30570
  className: "flex items-center gap-4",
30381
- children: [/* @__PURE__ */ Q(XY, { className: "size-18 shrink-0 rounded-full" }), /* @__PURE__ */ $(W, {
30571
+ children: [/* @__PURE__ */ Q(iX, { className: "size-18 shrink-0 rounded-full" }), /* @__PURE__ */ $(W, {
30382
30572
  display: "flex",
30383
30573
  flexDirection: "column",
30384
30574
  alignItems: "start",
@@ -30386,91 +30576,91 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30386
30576
  gap: "sm",
30387
30577
  minWidth: "0",
30388
30578
  children: [
30389
- /* @__PURE__ */ Q(eX, { className: "w-1/3" }),
30390
- /* @__PURE__ */ Q(eX, {
30579
+ /* @__PURE__ */ Q(cX, { className: "w-1/3" }),
30580
+ /* @__PURE__ */ Q(cX, {
30391
30581
  lineHeight: "h-6",
30392
30582
  className: "h-4 w-1/2"
30393
30583
  }),
30394
- /* @__PURE__ */ Q(XY, { className: "h-6 w-32 rounded-full" })
30584
+ /* @__PURE__ */ Q(iX, { className: "h-6 w-32 rounded-full" })
30395
30585
  ]
30396
30586
  })]
30397
- }), t > 0 ? /* @__PURE__ */ Q(rY, {
30587
+ }), t > 0 ? /* @__PURE__ */ Q(dY, {
30398
30588
  contentKey: t,
30399
- cells: tX(t).map((e) => ({
30589
+ cells: lX(t).map((e) => ({
30400
30590
  key: String(e),
30401
- content: /* @__PURE__ */ Q(rX, { index: e })
30591
+ content: /* @__PURE__ */ Q(dX, { index: e })
30402
30592
  }))
30403
30593
  }) : null]
30404
30594
  }) });
30405
- }, aX = ({ count: e }) => /* @__PURE__ */ Q(W, {
30595
+ }, pX = ({ count: e }) => /* @__PURE__ */ Q(W, {
30406
30596
  display: "flex",
30407
30597
  flexDirection: "column",
30408
30598
  gap: "md",
30409
- children: tX(e).map((e) => /* @__PURE__ */ Q($Y, { children: /* @__PURE__ */ $(W, {
30599
+ children: lX(e).map((e) => /* @__PURE__ */ Q(sX, { children: /* @__PURE__ */ $(W, {
30410
30600
  display: "flex",
30411
30601
  alignItems: "center",
30412
30602
  gap: "md",
30413
- children: [/* @__PURE__ */ Q(XY, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(W, {
30603
+ children: [/* @__PURE__ */ Q(iX, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(W, {
30414
30604
  display: "flex",
30415
30605
  flexDirection: "column",
30416
30606
  gap: "xs",
30417
30607
  grow: !0,
30418
- children: [/* @__PURE__ */ Q(XY, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(XY, { className: "h-3 w-2/3" })]
30608
+ children: [/* @__PURE__ */ Q(iX, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(iX, { className: "h-3 w-2/3" })]
30419
30609
  })]
30420
30610
  }) }, e))
30421
- }), oX = {
30611
+ }), mX = {
30422
30612
  sm: "size-6",
30423
30613
  md: "size-8",
30424
30614
  lg: "size-10"
30425
- }, sX = { left: "icon" }, cX = (e, t, n) => e === "date" ? n ? "size-12 rounded-md" : "size-10 rounded-md" : e === "counter" ? "h-5 w-6 rounded-full" : B(t ? "size-8" : "size-6", "rounded-full"), lX = ({ count: e, schema: t = sX, bleed: n = XG }) => {
30426
- let r = Qe(), i = VG(t, e), a = !!(t.descriptionRequired || t.descriptionOptional) && !i, o = oX[iK(a, r)], { left: s, right: c } = t;
30615
+ }, hX = { left: "icon" }, gX = (e, t, n) => e === "date" ? n ? "size-12 rounded-md" : "size-10 rounded-md" : e === "counter" ? "h-5 w-6 rounded-full" : B(t ? "size-8" : "size-6", "rounded-full"), _X = ({ count: e, schema: t = hX, bleed: n = iK }) => {
30616
+ let r = Qe(), i = YG(t, e), a = !!(t.descriptionRequired || t.descriptionOptional) && !i, o = mX[fK(a, r)], { left: s, right: c } = t;
30427
30617
  return /* @__PURE__ */ Q("div", {
30428
30618
  "data-list-rows": "",
30429
30619
  className: B(n, "flex flex-col"),
30430
- children: tX(e).map((e) => /* @__PURE__ */ $("div", {
30620
+ children: lX(e).map((e) => /* @__PURE__ */ $("div", {
30431
30621
  "data-list-row": "",
30432
30622
  className: "flex items-center gap-3 p-2",
30433
30623
  children: [
30434
- s ? /* @__PURE__ */ Q(XY, { className: B("shrink-0", o, s === "person" ? "rounded-full" : "rounded") }) : null,
30624
+ s ? /* @__PURE__ */ Q(iX, { className: B("shrink-0", o, s === "person" ? "rounded-full" : "rounded") }) : null,
30435
30625
  /* @__PURE__ */ $(W, {
30436
30626
  display: "flex",
30437
30627
  flexDirection: "column",
30438
30628
  grow: !0,
30439
30629
  minWidth: "0",
30440
- children: [/* @__PURE__ */ Q(eX, { className: e % 2 ? "w-1/2" : "w-2/3" }), a ? /* @__PURE__ */ Q(eX, { className: "w-1/3" }) : null]
30630
+ children: [/* @__PURE__ */ Q(cX, { className: e % 2 ? "w-1/2" : "w-2/3" }), a ? /* @__PURE__ */ Q(cX, { className: "w-1/3" }) : null]
30441
30631
  }),
30442
- c ? /* @__PURE__ */ Q(XY, { className: B("shrink-0", cX(c, r, !!t.prominent)) }) : null
30632
+ c ? /* @__PURE__ */ Q(iX, { className: B("shrink-0", gX(c, r, !!t.prominent)) }) : null
30443
30633
  ]
30444
30634
  }, e))
30445
30635
  });
30446
- }, uX = ({ count: e, schema: t, title: n, bare: r }) => r ? /* @__PURE__ */ $(W, {
30636
+ }, vX = ({ count: e, schema: t, title: n, bare: r }) => r ? /* @__PURE__ */ $(W, {
30447
30637
  display: "flex",
30448
30638
  flexDirection: "column",
30449
30639
  gap: "md",
30450
30640
  paddingTop: "lg",
30451
- children: [n ? /* @__PURE__ */ Q(eX, {
30641
+ children: [n ? /* @__PURE__ */ Q(cX, {
30452
30642
  lineHeight: "h-4",
30453
30643
  className: "h-2.5 w-40"
30454
- }) : null, /* @__PURE__ */ Q(wY, {
30455
- className: B(xG, "p-2 text-base", SG),
30456
- children: /* @__PURE__ */ Q(lX, {
30644
+ }) : null, /* @__PURE__ */ Q(MY, {
30645
+ className: B(kG, "p-2 text-base", AG),
30646
+ children: /* @__PURE__ */ Q(_X, {
30457
30647
  count: e,
30458
30648
  schema: t
30459
30649
  })
30460
30650
  })]
30461
- }) : /* @__PURE__ */ Q($Y, {
30651
+ }) : /* @__PURE__ */ Q(sX, {
30462
30652
  title: n,
30463
- children: (n) => /* @__PURE__ */ Q(lX, {
30653
+ children: (n) => /* @__PURE__ */ Q(_X, {
30464
30654
  count: e,
30465
30655
  schema: t,
30466
- bleed: ZG(n)
30656
+ bleed: aK(n)
30467
30657
  })
30468
- }), dX = ({ count: e }) => /* @__PURE__ */ Q(W, {
30658
+ }), yX = ({ count: e }) => /* @__PURE__ */ Q(W, {
30469
30659
  display: "flex",
30470
30660
  flexDirection: "column",
30471
30661
  gap: "md",
30472
- children: tX(e).map((e) => /* @__PURE__ */ Q(kg, { variant: "row" }, e))
30473
- }), fX = () => /* @__PURE__ */ $(W, {
30662
+ children: lX(e).map((e) => /* @__PURE__ */ Q(kg, { variant: "row" }, e))
30663
+ }), bX = () => /* @__PURE__ */ $(W, {
30474
30664
  display: "flex",
30475
30665
  flexDirection: "column",
30476
30666
  justifyContent: "between",
@@ -30480,27 +30670,27 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30480
30670
  display: "flex",
30481
30671
  alignItems: "center",
30482
30672
  gap: "md",
30483
- children: [/* @__PURE__ */ Q(XY, { className: "size-10 shrink-0 rounded-md" }), /* @__PURE__ */ $(W, {
30673
+ children: [/* @__PURE__ */ Q(iX, { className: "size-10 shrink-0 rounded-md" }), /* @__PURE__ */ $(W, {
30484
30674
  display: "flex",
30485
30675
  flexDirection: "column",
30486
30676
  grow: !0,
30487
- children: [/* @__PURE__ */ Q(eX, { className: "w-20" }), /* @__PURE__ */ Q(eX, { className: "w-24" })]
30677
+ children: [/* @__PURE__ */ Q(cX, { className: "w-20" }), /* @__PURE__ */ Q(cX, { className: "w-24" })]
30488
30678
  })]
30489
30679
  }), /* @__PURE__ */ $(W, {
30490
30680
  display: "flex",
30491
30681
  flexDirection: "column",
30492
- children: [/* @__PURE__ */ Q(eX, {
30682
+ children: [/* @__PURE__ */ Q(cX, {
30493
30683
  lineHeight: "h-7",
30494
30684
  className: "h-5 w-20"
30495
- }), /* @__PURE__ */ Q(eX, { className: "w-28" })]
30685
+ }), /* @__PURE__ */ Q(cX, { className: "w-28" })]
30496
30686
  })]
30497
- }), pX = ({ count: e }) => /* @__PURE__ */ Q(PY, { cells: tX(e).map((e) => ({
30687
+ }), xX = ({ count: e }) => /* @__PURE__ */ Q(HY, { cells: lX(e).map((e) => ({
30498
30688
  key: String(e),
30499
- content: /* @__PURE__ */ Q(fX, {})
30500
- })) }), mX = ({ count: e }) => /* @__PURE__ */ Q($Y, { children: /* @__PURE__ */ Q(pX, { count: e }) }), hX = ({ count: e }) => /* @__PURE__ */ Q($Y, { children: /* @__PURE__ */ Q(W, {
30689
+ content: /* @__PURE__ */ Q(bX, {})
30690
+ })) }), SX = ({ count: e }) => /* @__PURE__ */ Q(sX, { children: /* @__PURE__ */ Q(xX, { count: e }) }), CX = ({ count: e }) => /* @__PURE__ */ Q(sX, { children: /* @__PURE__ */ Q(W, {
30501
30691
  display: "flex",
30502
30692
  flexDirection: "column",
30503
- children: tX(e).map((t) => {
30693
+ children: lX(e).map((t) => {
30504
30694
  let n = t === e - 1;
30505
30695
  return /* @__PURE__ */ $(W, {
30506
30696
  display: "flex",
@@ -30509,7 +30699,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30509
30699
  className: "flex w-6 shrink-0 flex-col items-center",
30510
30700
  children: [/* @__PURE__ */ Q("div", {
30511
30701
  className: "flex h-5 items-center justify-center",
30512
- children: /* @__PURE__ */ Q(XY, { className: "size-5 rounded-full" })
30702
+ children: /* @__PURE__ */ Q(iX, { className: "size-5 rounded-full" })
30513
30703
  }), n ? null : /* @__PURE__ */ Q("div", { className: "my-1.5 min-h-2 w-0.5 flex-1 bg-f1-border-secondary" })]
30514
30704
  }), /* @__PURE__ */ $(W, {
30515
30705
  display: "flex",
@@ -30517,37 +30707,37 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30517
30707
  gap: "sm",
30518
30708
  grow: !0,
30519
30709
  paddingBottom: n ? void 0 : "xl",
30520
- children: [/* @__PURE__ */ Q(eX, { className: t % 2 ? "w-1/3" : "w-1/2" }), /* @__PURE__ */ Q(eX, { className: "w-1/4" })]
30710
+ children: [/* @__PURE__ */ Q(cX, { className: t % 2 ? "w-1/3" : "w-1/2" }), /* @__PURE__ */ Q(cX, { className: "w-1/4" })]
30521
30711
  })]
30522
30712
  }, t);
30523
30713
  })
30524
- }) }), gX = ({ count: e }) => /* @__PURE__ */ Q($Y, { children: /* @__PURE__ */ Q(W, {
30714
+ }) }), wX = ({ count: e }) => /* @__PURE__ */ Q(sX, { children: /* @__PURE__ */ Q(W, {
30525
30715
  display: "flex",
30526
30716
  flexDirection: "column",
30527
30717
  gap: "md",
30528
- children: tX(e).map((e) => /* @__PURE__ */ Q(XY, { className: B("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
30529
- }) }), _X = (e, t) => {
30718
+ children: lX(e).map((e) => /* @__PURE__ */ Q(iX, { className: B("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
30719
+ }) }), TX = (e, t) => {
30530
30720
  switch (e.type) {
30531
- case "stats": return /* @__PURE__ */ Q(mX, { count: t });
30532
- case "charts": return /* @__PURE__ */ Q(nX, { count: t });
30533
- case "list": return /* @__PURE__ */ Q(uX, {
30721
+ case "stats": return /* @__PURE__ */ Q(SX, { count: t });
30722
+ case "charts": return /* @__PURE__ */ Q(uX, { count: t });
30723
+ case "list": return /* @__PURE__ */ Q(vX, {
30534
30724
  count: t,
30535
30725
  schema: e.display?.schema,
30536
30726
  title: e.display?.title,
30537
30727
  bare: e.display?.bare
30538
30728
  });
30539
- case "timeline": return /* @__PURE__ */ Q(hX, { count: t });
30540
- case "events": return /* @__PURE__ */ Q(aX, { count: t });
30541
- case "posts": return /* @__PURE__ */ Q(dX, { count: t });
30542
- case "entity": return /* @__PURE__ */ Q(iX, { count: t });
30543
- case "widget": return /* @__PURE__ */ Q(gX, { count: t });
30729
+ case "timeline": return /* @__PURE__ */ Q(CX, { count: t });
30730
+ case "events": return /* @__PURE__ */ Q(pX, { count: t });
30731
+ case "posts": return /* @__PURE__ */ Q(yX, { count: t });
30732
+ case "entity": return /* @__PURE__ */ Q(fX, { count: t });
30733
+ case "widget": return /* @__PURE__ */ Q(wX, { count: t });
30544
30734
  }
30545
- }, vX = ({ element: e }) => /* @__PURE__ */ Q("div", {
30735
+ }, EX = ({ element: e }) => /* @__PURE__ */ Q("div", {
30546
30736
  "aria-busy": "true",
30547
30737
  "aria-live": "polite",
30548
30738
  "data-agentic-skeleton": e.type,
30549
- children: _X(e, Yq(e))
30550
- }), yX = (e) => {
30739
+ children: TX(e, rJ(e))
30740
+ }), DX = (e) => {
30551
30741
  switch (e.type) {
30552
30742
  case "stats": return e.stats.length === 0;
30553
30743
  case "charts": return e.charts.length === 0;
@@ -30557,7 +30747,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30557
30747
  case "posts": return e.posts.length === 0;
30558
30748
  case "entity": return !e.entity;
30559
30749
  }
30560
- }, bX = (e, t) => e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && yJ(e, t) && yX(t.block), xX = (e, t) => {
30750
+ }, OX = (e, t) => e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && DJ(e, t) && DX(t.block), kX = (e, t) => {
30561
30751
  let n = {
30562
30752
  ...t,
30563
30753
  empty: e.display?.empty ?? t.empty
@@ -30585,84 +30775,84 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30585
30775
  format: i
30586
30776
  }))
30587
30777
  } : n;
30588
- }, SX = (e, t) => e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && yJ(e, t) ? xX(e, t.block) : void 0, CX = Ou(void 0), wX = CX.Provider, TX = () => Nu(CX), EX = ({ widget: e, bare: t = !1 }) => {
30589
- let n = TX();
30590
- return t ? /* @__PURE__ */ Q(MK, {
30778
+ }, AX = (e, t) => e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && DJ(e, t) ? kX(e, t.block) : void 0, jX = Ou(void 0), MX = jX.Provider, NX = () => Nu(jX), PX = ({ widget: e, bare: t = !1 }) => {
30779
+ let n = NX();
30780
+ return t ? /* @__PURE__ */ Q(BK, {
30591
30781
  headless: !0,
30592
30782
  slots: e.slots,
30593
30783
  loading: e.loading,
30594
30784
  slotRenderers: n
30595
- }) : /* @__PURE__ */ Q(NK, {
30596
- ...YG(e),
30785
+ }) : /* @__PURE__ */ Q(VK, {
30786
+ ...rK(e),
30597
30787
  headless: !0,
30598
30788
  params: e.params,
30599
30789
  slots: e.slots,
30600
30790
  loading: e.loading,
30601
30791
  slotRenderers: n
30602
30792
  });
30603
- }, DX = ({ element: e, state: t, onAction: n, lead: r }) => {
30604
- if (e.type === "text") return /* @__PURE__ */ Q(YY, {
30793
+ }, FX = ({ element: e, state: t, onAction: n, lead: r }) => {
30794
+ if (e.type === "text") return /* @__PURE__ */ Q(rX, {
30605
30795
  block: e,
30606
30796
  elementId: e.id,
30607
30797
  onAction: n,
30608
30798
  lead: r
30609
30799
  });
30610
- if (!t || t.status === "loading") return /* @__PURE__ */ Q(vX, { element: e });
30611
- if (t.status === "error") return /* @__PURE__ */ Q(Gq, { message: t.message });
30612
- if (!yJ(e, t)) return /* @__PURE__ */ Q(Gq, {});
30613
- if (t.widget) return /* @__PURE__ */ Q(EX, {
30800
+ if (!t || t.status === "loading") return /* @__PURE__ */ Q(EX, { element: e });
30801
+ if (t.status === "error") return /* @__PURE__ */ Q($q, { message: t.message });
30802
+ if (!DJ(e, t)) return /* @__PURE__ */ Q($q, {});
30803
+ if (t.widget) return /* @__PURE__ */ Q(PX, {
30614
30804
  widget: t.widget,
30615
30805
  bare: t.bare
30616
30806
  });
30617
- if (e.type === "widget") return /* @__PURE__ */ Q(Gq, {});
30618
- let i = xX(e, t.block);
30619
- return yX(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(Wq, {
30807
+ if (e.type === "widget") return /* @__PURE__ */ Q($q, {});
30808
+ let i = kX(e, t.block);
30809
+ return DX(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(Qq, {
30620
30810
  empty: i.empty,
30621
30811
  elementId: e.id,
30622
30812
  onAction: n
30623
- }) : /* @__PURE__ */ Q(YY, {
30813
+ }) : /* @__PURE__ */ Q(rX, {
30624
30814
  block: i,
30625
30815
  elementId: e.id,
30626
30816
  onAction: n
30627
30817
  });
30628
- }, OX = "agentic-list-stack", kX = "agentic-list-placeholder", AX = "agentic-stats-placeholder", jX = ({ title: e }) => /* @__PURE__ */ Q(W, {
30818
+ }, IX = "agentic-list-stack", LX = "agentic-list-placeholder", RX = "agentic-stats-placeholder", zX = ({ title: e }) => /* @__PURE__ */ Q(W, {
30629
30819
  paddingY: "sm",
30630
30820
  children: /* @__PURE__ */ Q(jl, {
30631
30821
  variant: "description",
30632
30822
  content: e
30633
30823
  })
30634
- }), MX = {
30635
- ...yK,
30636
- ...IY,
30637
- [kX]: (e, t) => /* @__PURE__ */ Q("div", {
30824
+ }), BX = {
30825
+ ...DK,
30826
+ ...WY,
30827
+ [LX]: (e, t) => /* @__PURE__ */ Q("div", {
30638
30828
  "aria-busy": "true",
30639
30829
  "aria-live": "polite",
30640
- children: /* @__PURE__ */ Q(lX, {
30830
+ children: /* @__PURE__ */ Q(_X, {
30641
30831
  ...e,
30642
- bleed: ZG(t)
30832
+ bleed: aK(t)
30643
30833
  })
30644
30834
  }),
30645
- [AX]: (e) => /* @__PURE__ */ Q("div", {
30835
+ [RX]: (e) => /* @__PURE__ */ Q("div", {
30646
30836
  "aria-busy": "true",
30647
30837
  "aria-live": "polite",
30648
- children: /* @__PURE__ */ Q(pX, { ...e })
30838
+ children: /* @__PURE__ */ Q(xX, { ...e })
30649
30839
  })
30650
- }, NX = /* @__PURE__ */ new Set([OY, AX]), PX = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
30840
+ }, VX = /* @__PURE__ */ new Set([IY, RX]), HX = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
30651
30841
  className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
30652
30842
  children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
30653
- className: B("px-4", NX.has(n.visualization) ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
30654
- children: [r ? /* @__PURE__ */ Q(jX, { title: r }) : null, zG(MX[n.visualization])?.render(n.params, {
30843
+ className: B("px-4", VX.has(n.visualization) ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
30844
+ children: [r ? /* @__PURE__ */ Q(zX, { title: r }) : null, qG(BX[n.visualization])?.render(n.params, {
30655
30845
  ...t,
30656
30846
  isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
30657
30847
  isLastSlot: t.isLastSlot && i === e.length - 1
30658
30848
  })]
30659
30849
  }, i))
30660
- }), FX = (e) => e.type === "list" && !e.bare || e.type === "stats", IX = (e, t) => e.reduce((e, n) => {
30661
- let r = t?.[n.id], i = SX(n, r), a = i && FX(i) && !yX(i) ? {
30850
+ }), UX = (e) => e.type === "list" && !e.bare || e.type === "stats", WX = (e, t) => e.reduce((e, n) => {
30851
+ let r = t?.[n.id], i = AX(n, r), a = i && UX(i) && !DX(i) ? {
30662
30852
  elementId: n.id,
30663
30853
  block: i
30664
- } : RX(n, r), o = e.at(-1);
30665
- return a && LX(a) === "list" && o?.kind === "stack" ? o.members.push(a) : a && LX(a) === "list" && o?.kind === "element" && o.member ? e[e.length - 1] = {
30854
+ } : KX(n, r), o = e.at(-1);
30855
+ return a && GX(a) === "list" && o?.kind === "stack" ? o.members.push(a) : a && GX(a) === "list" && o?.kind === "element" && o.member ? e[e.length - 1] = {
30666
30856
  kind: "stack",
30667
30857
  members: [o.member, a]
30668
30858
  } : e.push({
@@ -30670,13 +30860,13 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30670
30860
  element: n,
30671
30861
  member: a
30672
30862
  }), e;
30673
- }, []), LX = (e) => e.block ? e.block.type : e.placeholder.type, RX = (e, t) => {
30863
+ }, []), GX = (e) => e.block ? e.block.type : e.placeholder.type, KX = (e, t) => {
30674
30864
  if (!(t && t.status !== "loading")) {
30675
30865
  if (e.type === "list" && !e.display?.bare) return {
30676
30866
  elementId: e.id,
30677
30867
  placeholder: {
30678
30868
  type: "list",
30679
- count: Yq(e),
30869
+ count: rJ(e),
30680
30870
  schema: e.display?.schema,
30681
30871
  title: e.display?.title
30682
30872
  }
@@ -30685,22 +30875,22 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30685
30875
  elementId: e.id,
30686
30876
  placeholder: {
30687
30877
  type: "stats",
30688
- count: Yq(e)
30878
+ count: rJ(e)
30689
30879
  }
30690
30880
  };
30691
30881
  }
30692
- }, zX = (e) => {
30882
+ }, qX = (e) => {
30693
30883
  if (e) return e.placeholder ? e.placeholder.type === "list" ? e.placeholder.title : void 0 : e.block.type === "list" ? e.block.title : void 0;
30694
- }, BX = (e, t, n) => {
30695
- let { elementId: r } = e, i = t > 0 ? zX(e) : void 0;
30884
+ }, JX = (e, t, n) => {
30885
+ let { elementId: r } = e, i = t > 0 ? qX(e) : void 0;
30696
30886
  if (e.placeholder) {
30697
30887
  let { placeholder: t } = e;
30698
30888
  return [t.type === "stats" ? { slot: {
30699
- visualization: AX,
30889
+ visualization: RX,
30700
30890
  params: { count: t.count }
30701
30891
  } } : {
30702
30892
  slot: {
30703
- visualization: kX,
30893
+ visualization: LX,
30704
30894
  params: {
30705
30895
  count: t.count,
30706
30896
  schema: t.schema
@@ -30710,26 +30900,26 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30710
30900
  }];
30711
30901
  }
30712
30902
  let { block: a } = e;
30713
- return a.type === "stats" ? [{ slot: AY(a.stats, r, n) }] : yY(a, r, n).map((e, t) => ({
30903
+ return a.type === "stats" ? [{ slot: RY(a.stats, r, n) }] : DY(a, r, n).map((e, t) => ({
30714
30904
  slot: e,
30715
30905
  header: t === 0 ? i : void 0
30716
30906
  }));
30717
- }, VX = { [OX]: (e, t) => /* @__PURE__ */ Q(PX, {
30907
+ }, YX = { [IX]: (e, t) => /* @__PURE__ */ Q(HX, {
30718
30908
  entries: e,
30719
30909
  ctx: t
30720
- }) }, HX = ({ members: e, onAction: t }) => /* @__PURE__ */ Q(Bq, {
30721
- title: zX(e[0]),
30910
+ }) }, XX = ({ members: e, onAction: t }) => /* @__PURE__ */ Q(Jq, {
30911
+ title: qX(e[0]),
30722
30912
  slots: [{
30723
- visualization: OX,
30724
- params: e.flatMap((e, n) => BX(e, n, t))
30913
+ visualization: IX,
30914
+ params: e.flatMap((e, n) => JX(e, n, t))
30725
30915
  }],
30726
- slotRenderers: VX
30727
- }), UX = ({ items: e, onAction: t }) => {
30916
+ slotRenderers: YX
30917
+ }), ZX = ({ items: e, onAction: t }) => {
30728
30918
  let n = R();
30729
30919
  return /* @__PURE__ */ Q(pi, {
30730
30920
  items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
30731
30921
  label: e.label,
30732
- icon: Iq(e.icon),
30922
+ icon: Wq(e.icon),
30733
30923
  critical: e.critical,
30734
30924
  onClick: () => t(e.action, {})
30735
30925
  }),
@@ -30741,12 +30931,12 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30741
30931
  label: n.actions.more
30742
30932
  })
30743
30933
  });
30744
- }, WX = Ou(void 0), GX = WX.Provider, KX = () => Nu(WX), qX = /\*\*(.+?)\*\*/g, JX = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(qX).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
30934
+ }, QX = Ou(void 0), $X = QX.Provider, eZ = () => Nu(QX), tZ = /\*\*(.+?)\*\*/g, nZ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(tZ).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
30745
30935
  className: "font-medium",
30746
30936
  children: e
30747
- }, t) : e) }), YX = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, XX = (e) => {
30937
+ }, t) : e) }), rZ = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, iZ = (e) => {
30748
30938
  let t = [], n = 0;
30749
- for (let r of e.matchAll(YX)) {
30939
+ for (let r of e.matchAll(rZ)) {
30750
30940
  let [i, a, o, s] = r, c = r.index ?? 0;
30751
30941
  c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
30752
30942
  type: o,
@@ -30755,48 +30945,48 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30755
30945
  } }), n = c + i.length;
30756
30946
  }
30757
30947
  return n < e.length && t.push({ text: e.slice(n) }), t;
30758
- }, ZX = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: YK(e).map((e, t) => /* @__PURE__ */ Q(Tu, { children: "href" in e ? /* @__PURE__ */ Q($r, {
30948
+ }, aZ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: rq(e).map((e, t) => /* @__PURE__ */ Q(Tu, { children: "href" in e ? /* @__PURE__ */ Q($r, {
30759
30949
  href: e.href,
30760
30950
  children: e.label
30761
- }) : /* @__PURE__ */ Q(JX, { text: e.text }) }, t)) }), QX = ({ text: e }) => {
30762
- let t = KX();
30763
- return /* @__PURE__ */ Q(Z, { children: XX(e).map((e, n) => /* @__PURE__ */ Q(Tu, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(ZX, { text: e.text }) }, n)) });
30764
- }, $X = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(QX, { text: e }) }, t)) }), eZ = /^\d+\.\s+/, tZ = /^[-*]\s+/, nZ = (e) => eZ.test(e) ? "ol" : tZ.test(e) ? "ul" : "p", rZ = (e, t) => {
30951
+ }) : /* @__PURE__ */ Q(nZ, { text: e.text }) }, t)) }), oZ = ({ text: e }) => {
30952
+ let t = eZ();
30953
+ return /* @__PURE__ */ Q(Z, { children: iZ(e).map((e, n) => /* @__PURE__ */ Q(Tu, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(aZ, { text: e.text }) }, n)) });
30954
+ }, sZ = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(oZ, { text: e }) }, t)) }), cZ = /^\d+\.\s+/, lZ = /^[-*]\s+/, uZ = (e) => cZ.test(e) ? "ol" : lZ.test(e) ? "ul" : "p", dZ = (e, t) => {
30765
30955
  let n = e.at(-1);
30766
30956
  t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
30767
30957
  kind: "p",
30768
30958
  text: t
30769
30959
  });
30770
- }, iZ = (e, t, n) => {
30771
- let r = e.at(-1), i = n.replace(t === "ol" ? eZ : tZ, "");
30960
+ }, fZ = (e, t, n) => {
30961
+ let r = e.at(-1), i = n.replace(t === "ol" ? cZ : lZ, "");
30772
30962
  r?.kind === t ? r.items.push(i) : e.push({
30773
30963
  kind: t,
30774
30964
  items: [i]
30775
30965
  });
30776
- }, aZ = (e) => {
30966
+ }, pZ = (e) => {
30777
30967
  let t = [];
30778
30968
  for (let n of e.split("\n").map((e) => e.trim())) {
30779
- let e = nZ(n);
30780
- e === "p" ? rZ(t, n) : iZ(t, e, n);
30969
+ let e = uZ(n);
30970
+ e === "p" ? dZ(t, n) : fZ(t, e, n);
30781
30971
  }
30782
30972
  return t.filter((e) => e.kind !== "p" || e.text);
30783
- }, oZ = ({ text: e }) => /* @__PURE__ */ Q("div", {
30973
+ }, mZ = ({ text: e }) => /* @__PURE__ */ Q("div", {
30784
30974
  className: "flex flex-col gap-2 text-lg text-f1-foreground",
30785
- children: aZ(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(QX, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
30975
+ children: pZ(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(oZ, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
30786
30976
  className: "m-0 list-decimal space-y-1 pl-5",
30787
- children: /* @__PURE__ */ Q($X, { items: e.items })
30977
+ children: /* @__PURE__ */ Q(sZ, { items: e.items })
30788
30978
  }, t) : /* @__PURE__ */ Q("ul", {
30789
30979
  className: "m-0 list-disc space-y-1 pl-5",
30790
- children: /* @__PURE__ */ Q($X, { items: e.items })
30980
+ children: /* @__PURE__ */ Q(sZ, { items: e.items })
30791
30981
  }, t))
30792
- }), sZ = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(g, {
30982
+ }), hZ = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(g, {
30793
30983
  as: "h2",
30794
30984
  variant: "heading-large",
30795
30985
  content: e
30796
30986
  }) : /* @__PURE__ */ Q("h2", {
30797
30987
  className: B("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
30798
30988
  children: e
30799
- }), cZ = ({ section: e, size: t, composer: n, onAction: r }) => {
30989
+ }), gZ = ({ section: e, size: t, composer: n, onAction: r }) => {
30800
30990
  let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
30801
30991
  return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(W, {
30802
30992
  display: "flex",
@@ -30818,48 +31008,48 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30818
31008
  alignItems: "start",
30819
31009
  justifyContent: e.title ? "between" : "end",
30820
31010
  gap: "md",
30821
- children: [e.title ? /* @__PURE__ */ Q(sZ, {
31011
+ children: [e.title ? /* @__PURE__ */ Q(hZ, {
30822
31012
  title: e.title,
30823
31013
  size: t
30824
- }) : null, a ? /* @__PURE__ */ Q(UX, {
31014
+ }) : null, a ? /* @__PURE__ */ Q(ZX, {
30825
31015
  items: a,
30826
31016
  onAction: r
30827
31017
  }) : null]
30828
31018
  }) : null]
30829
31019
  }),
30830
31020
  n,
30831
- e.text ? /* @__PURE__ */ Q(oZ, { text: e.text }) : null
31021
+ e.text ? /* @__PURE__ */ Q(mZ, { text: e.text }) : null
30832
31022
  ]
30833
31023
  });
30834
- }, lZ = (e, t) => e.elements.length > 0 && e.elements.every((e) => bX(e, t?.[e.id])), uZ = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
31024
+ }, _Z = (e, t) => e.elements.length > 0 && e.elements.every((e) => OX(e, t?.[e.id])), vZ = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
30835
31025
  let a = Cn(), [o, s] = X(null), c = J(() => ({
30836
31026
  compact: o,
30837
31027
  setCompact: s
30838
31028
  }), [o]), l = !!e.primaryFollowUp && a, u = (t, r) => n(t, {
30839
31029
  ...r,
30840
31030
  sectionId: e.id
30841
- }), d = lZ(e, t);
31031
+ }), d = _Z(e, t);
30842
31032
  return d && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
30843
31033
  id: e.id,
30844
31034
  "aria-label": e.title,
30845
31035
  tabIndex: -1,
30846
31036
  className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
30847
31037
  children: [
30848
- /* @__PURE__ */ Q(cZ, {
31038
+ /* @__PURE__ */ Q(gZ, {
30849
31039
  section: e,
30850
31040
  size: r,
30851
31041
  composer: i,
30852
31042
  onAction: u
30853
31043
  }),
30854
- d && e.empty ? /* @__PURE__ */ Q(Wq, {
31044
+ d && e.empty ? /* @__PURE__ */ Q(Qq, {
30855
31045
  empty: e.empty,
30856
31046
  onAction: u
30857
- }) : /* @__PURE__ */ Q(mY.Provider, {
31047
+ }) : /* @__PURE__ */ Q(SY.Provider, {
30858
31048
  value: c,
30859
- children: IX(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(HX, {
31049
+ children: WX(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(XX, {
30860
31050
  members: e.members,
30861
31051
  onAction: u
30862
- }, e.members[0]?.elementId) : /* @__PURE__ */ Q(DX, {
31052
+ }, e.members[0]?.elementId) : /* @__PURE__ */ Q(FX, {
30863
31053
  element: e.element,
30864
31054
  state: t?.[e.element.id],
30865
31055
  onAction: u,
@@ -30872,15 +31062,15 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30872
31062
  gap: "sm",
30873
31063
  children: e.followUps.map((e, t) => /* @__PURE__ */ Q(H, {
30874
31064
  size: "md",
30875
- ...zq(e, t === 0 && l, u)
31065
+ ...qq(e, t === 0 && l, u)
30876
31066
  }, e.id ?? t))
30877
31067
  }) : null
30878
31068
  ]
30879
31069
  });
30880
- }, dZ = (e, t) => {
31070
+ }, yZ = (e, t) => {
30881
31071
  let [n, ...r] = e ?? [], i = (e) => ({
30882
31072
  label: e.label,
30883
- icon: Iq(e.icon),
31073
+ icon: Wq(e.icon),
30884
31074
  onClick: () => t(e)
30885
31075
  });
30886
31076
  return {
@@ -30893,19 +31083,19 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30893
31083
  value: String(t)
30894
31084
  })) : r[0] ? i(r[0]) : void 0
30895
31085
  };
30896
- }, fZ = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), pZ = ({ element: e, state: t }) => {
30897
- let n = TX();
30898
- return !t || t.status === "loading" ? /* @__PURE__ */ Q(vX, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(Gq, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(MK, {
31086
+ }, bZ = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), xZ = ({ element: e, state: t }) => {
31087
+ let n = NX();
31088
+ return !t || t.status === "loading" ? /* @__PURE__ */ Q(EX, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q($q, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(BK, {
30899
31089
  slots: t.widget.slots,
30900
31090
  loading: t.widget.loading,
30901
31091
  slotRenderers: n
30902
- }) : /* @__PURE__ */ Q(Gq, {});
30903
- }, mZ = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
31092
+ }) : /* @__PURE__ */ Q($q, {});
31093
+ }, SZ = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
30904
31094
  let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
30905
31095
  ...r,
30906
31096
  accessoryViewId: e.id,
30907
31097
  ...l ? { accessoryViewParams: t } : {}
30908
- }), d = dZ(e.actions, (e) => {
31098
+ }), d = yZ(e.actions, (e) => {
30909
31099
  o(), u(e.action, {});
30910
31100
  });
30911
31101
  return /* @__PURE__ */ Q(Po, {
@@ -30917,22 +31107,22 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30917
31107
  description: e.description,
30918
31108
  disableContentPadding: i,
30919
31109
  ...d,
30920
- children: e.widget ? /* @__PURE__ */ Q(pZ, {
31110
+ children: e.widget ? /* @__PURE__ */ Q(xZ, {
30921
31111
  element: e.widget,
30922
31112
  state: s?.[e.widget.id]
30923
- }, fZ(e.id, t)) : /* @__PURE__ */ Q(W, {
31113
+ }, bZ(e.id, t)) : /* @__PURE__ */ Q(W, {
30924
31114
  display: "flex",
30925
31115
  flexDirection: "column",
30926
31116
  gap: "3xl",
30927
- children: e.sections.map((e) => /* @__PURE__ */ Q(uZ, {
31117
+ children: e.sections.map((e) => /* @__PURE__ */ Q(vZ, {
30928
31118
  size: "accessory",
30929
31119
  section: e,
30930
31120
  sources: s,
30931
31121
  onAction: u
30932
31122
  }, e.id))
30933
- }, fZ(e.id, t))
31123
+ }, bZ(e.id, t))
30934
31124
  });
30935
- }, hZ = ku(function({ children: e }, t) {
31125
+ }, CZ = ku(function({ children: e }, t) {
30936
31126
  return /* @__PURE__ */ Q("div", {
30937
31127
  ref: t,
30938
31128
  className: "-m-1 p-1",
@@ -30941,7 +31131,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30941
31131
  children: e
30942
31132
  })
30943
31133
  });
30944
- }), gZ = ({ greeting: e }) => /* @__PURE__ */ $(W, {
31134
+ }), wZ = ({ greeting: e }) => /* @__PURE__ */ $(W, {
30945
31135
  display: "flex",
30946
31136
  flexDirection: "column",
30947
31137
  gap: "xs",
@@ -30953,14 +31143,14 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30953
31143
  variant: "description",
30954
31144
  content: e.subtitle
30955
31145
  }) : null]
30956
- }), _Z = 150, vZ = 150, yZ = {
31146
+ }), TZ = 150, EZ = 150, DZ = {
30957
31147
  neutral: "bg-f1-background-inverse",
30958
31148
  accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
30959
31149
  critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
30960
31150
  warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
30961
31151
  promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
30962
31152
  positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
30963
- }, bZ = "inverse", xZ = (e) => {
31153
+ }, OZ = "inverse", kZ = (e) => {
30964
31154
  let t = Y(null), n = Y(e), [r, i] = X({
30965
31155
  face: e,
30966
31156
  animate: !1
@@ -30986,8 +31176,8 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30986
31176
  size: r.size,
30987
31177
  animate: r.animate
30988
31178
  };
30989
- }, SZ = ({ clockIn: e, expanded: t = !1 }) => {
30990
- let n = Yn(), [r, i] = X(!1), { ref: a, size: o, animate: s } = xZ(t ? "card" : "chip");
31179
+ }, AZ = ({ clockIn: e, expanded: t = !1 }) => {
31180
+ let n = Yn(), [r, i] = X(!1), { ref: a, size: o, animate: s } = kZ(t ? "card" : "chip");
30991
31181
  return /* @__PURE__ */ $("div", {
30992
31182
  ref: a,
30993
31183
  className: "relative isolate",
@@ -30996,35 +31186,35 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
30996
31186
  className: B("absolute -z-10 rounded-xl border border-solid border-f1-border-secondary bg-f1-background transition-opacity", o ? "right-0 top-0" : "inset-0", !t && r && "opacity-0"),
30997
31187
  initial: !1,
30998
31188
  animate: o,
30999
- transition: s ? XW(UW, n) : LW
31189
+ transition: s ? iG(ZW, n) : GW
31000
31190
  }), /* @__PURE__ */ Q(Wn, {
31001
31191
  initial: !1,
31002
- children: /* @__PURE__ */ Q(TZ, { children: t ? /* @__PURE__ */ Q(EZ, { clockIn: e }) : /* @__PURE__ */ Q(DZ, {
31192
+ children: /* @__PURE__ */ Q(NZ, { children: t ? /* @__PURE__ */ Q(PZ, { clockIn: e }) : /* @__PURE__ */ Q(FZ, {
31003
31193
  clockIn: e,
31004
31194
  open: r,
31005
31195
  setOpen: i
31006
31196
  }) }, t ? "card" : "chip")
31007
31197
  })]
31008
31198
  });
31009
- }, CZ = JW, wZ = {
31199
+ }, jZ = nG, MZ = {
31010
31200
  duration: .16,
31011
31201
  ease: "easeOut"
31012
- }, TZ = ({ children: e }) => {
31202
+ }, NZ = ({ children: e }) => {
31013
31203
  let t = Yn(), n = Un();
31014
31204
  return /* @__PURE__ */ Q(V.div, {
31015
31205
  className: B(!n && "pointer-events-none absolute right-0 top-0"),
31016
31206
  initial: { opacity: 0 },
31017
31207
  animate: {
31018
31208
  opacity: 1,
31019
- transition: XW(CZ, t)
31209
+ transition: iG(jZ, t)
31020
31210
  },
31021
31211
  exit: {
31022
31212
  opacity: 0,
31023
- transition: XW(wZ, t)
31213
+ transition: iG(MZ, t)
31024
31214
  },
31025
31215
  children: e
31026
31216
  });
31027
- }, EZ = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
31217
+ }, PZ = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
31028
31218
  role: "group",
31029
31219
  "aria-label": e.title,
31030
31220
  className: "flex w-[396px] flex-col gap-4 rounded-xl border border-solid border-transparent p-4",
@@ -31032,7 +31222,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31032
31222
  variant: "label",
31033
31223
  content: e.title
31034
31224
  }), e.content]
31035
- }), DZ = ({ clockIn: e, open: t, setOpen: n }) => {
31225
+ }), FZ = ({ clockIn: e, open: t, setOpen: n }) => {
31036
31226
  let { caption: r, text: i, ticking: a, icon: o, action: s, tone: c, title: l, content: u } = e, d = Yn(), f = Y(null), p = Y(null), m = Y(!1), h = Pu(), [g, _] = X(!1), v = () => {
31037
31227
  f.current && clearTimeout(f.current), f.current = null;
31038
31228
  }, y = (e, t) => {
@@ -31041,10 +31231,10 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31041
31231
  return K(() => v, []), /* @__PURE__ */ $("div", {
31042
31232
  className: "relative",
31043
31233
  onMouseEnter: () => {
31044
- _(!0), t ? v() : y(!0, _Z);
31234
+ _(!0), t ? v() : y(!0, TZ);
31045
31235
  },
31046
31236
  onMouseLeave: () => {
31047
- _(!1), y(!1, vZ);
31237
+ _(!1), y(!1, EZ);
31048
31238
  },
31049
31239
  onFocus: () => {
31050
31240
  v(), m.current ? m.current = !1 : n(!0);
@@ -31060,7 +31250,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31060
31250
  children: [r ? /* @__PURE__ */ Q("span", {
31061
31251
  className: "text-sm text-f1-foreground-secondary",
31062
31252
  children: r
31063
- }) : null, /* @__PURE__ */ Q(bK, {
31253
+ }) : null, /* @__PURE__ */ Q(OK, {
31064
31254
  text: i,
31065
31255
  ticking: !!a,
31066
31256
  className: "text-base font-medium text-f1-foreground"
@@ -31073,13 +31263,13 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31073
31263
  type: "button",
31074
31264
  variant: "ghost",
31075
31265
  size: "lg",
31076
- className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", yZ[c ?? "accent"]),
31266
+ className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", DZ[c ?? "accent"]),
31077
31267
  "aria-label": s.label,
31078
31268
  "aria-controls": t ? h : void 0,
31079
31269
  onClick: () => s.onClick(),
31080
31270
  children: /* @__PURE__ */ Q(U, {
31081
31271
  size: "lg",
31082
- color: bZ,
31272
+ color: OZ,
31083
31273
  icon: t || g ? s.icon : o ?? wa
31084
31274
  })
31085
31275
  })
@@ -31111,19 +31301,19 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31111
31301
  })
31112
31302
  }) : null })]
31113
31303
  });
31114
- }, OZ = 180, kZ = 8, AZ = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
31115
- let r = n - t - kZ;
31116
- return r <= kZ ? kZ : Math.min(Math.max(e - t / 2, kZ), r);
31117
- }, jZ = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", MZ = "pointer-events-auto overflow-y-auto overflow-x-hidden pb-page-room scroll-pb-page-room [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", NZ = ({ open: e, out: t, top: n, transition: r }) => ({
31118
- className: B(jZ, "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"),
31304
+ }, IZ = 180, LZ = 8, RZ = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
31305
+ let r = n - t - LZ;
31306
+ return r <= LZ ? LZ : Math.min(Math.max(e - t / 2, LZ), r);
31307
+ }, zZ = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", BZ = "pointer-events-auto overflow-y-auto overflow-x-hidden pb-page-room scroll-pb-page-room [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", VZ = ({ open: e, out: t, top: n, transition: r }) => ({
31308
+ className: B(zZ, "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"),
31119
31309
  animate: {
31120
31310
  opacity: +!!t,
31121
- scale: t ? 1 : VW,
31311
+ scale: t ? 1 : YW,
31122
31312
  x: t ? 0 : 10,
31123
31313
  y: n
31124
31314
  },
31125
31315
  transition: r
31126
- }), PZ = (e, t) => ({
31316
+ }), HZ = (e, t) => ({
31127
31317
  className: B("mt-4 w-[396px] shrink-0", e ? "pointer-events-none" : "pointer-events-auto"),
31128
31318
  animate: {
31129
31319
  opacity: +!e,
@@ -31131,11 +31321,11 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31131
31321
  x: e ? 20 : 0,
31132
31322
  y: 0
31133
31323
  },
31134
- transition: XW({
31135
- ...e ? qW : UW,
31136
- y: LW
31324
+ transition: iG({
31325
+ ...e ? tG : ZW,
31326
+ y: GW
31137
31327
  }, t)
31138
- }), FZ = ({ collapsed: e, onToggle: t }) => {
31328
+ }), UZ = ({ collapsed: e, onToggle: t }) => {
31139
31329
  let n = R(), r = e ? n.actions.expand : n.actions.collapse;
31140
31330
  return /* @__PURE__ */ Q(Fn, {
31141
31331
  label: r,
@@ -31149,26 +31339,26 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31149
31339
  children: /* @__PURE__ */ Q(Wl, { isExpanded: !e })
31150
31340
  })
31151
31341
  });
31152
- }, IZ = (e) => {
31153
- let t = Yn(), [n, r] = X(!1), i = ZW(e, t ? 0 : 180), a = n ? i : e;
31342
+ }, WZ = (e) => {
31343
+ let t = Yn(), [n, r] = X(!1), i = aG(e, t ? 0 : 180), a = n ? i : e;
31154
31344
  return {
31155
31345
  stowed: a,
31156
31346
  leaving: e && !a,
31157
31347
  markToggled: () => r(!0)
31158
31348
  };
31159
- }, LZ = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), RZ = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
31349
+ }, GZ = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), KZ = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
31160
31350
  className: B("pointer-events-auto shrink-0", n && "mt-2"),
31161
- children: /* @__PURE__ */ Q(SZ, {
31351
+ children: /* @__PURE__ */ Q(AZ, {
31162
31352
  clockIn: e,
31163
31353
  expanded: !t
31164
31354
  })
31165
- }), zZ = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
31355
+ }), qZ = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
31166
31356
  let o = R();
31167
31357
  return /* @__PURE__ */ $("div", {
31168
31358
  className: "mt-4 hidden flex-col items-end gap-2 md:flex",
31169
31359
  onMouseEnter: r,
31170
31360
  onMouseLeave: i,
31171
- children: [e.map((e, i) => /* @__PURE__ */ Q(EK, {
31361
+ children: [e.map((e, i) => /* @__PURE__ */ Q(PK, {
31172
31362
  look: "ghost",
31173
31363
  widget: e,
31174
31364
  order: i,
@@ -31198,10 +31388,10 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31198
31388
  })
31199
31389
  })] }) : null]
31200
31390
  });
31201
- }, BZ = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
31202
- let l = Yn(), { stowed: u, leaving: d, markToggled: f } = IZ(r), p = Pu(), 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 = () => {
31391
+ }, JZ = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
31392
+ let l = Yn(), { stowed: u, leaving: d, markToggled: f } = WZ(r), p = Pu(), 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 = () => {
31203
31393
  g.current && clearTimeout(g.current), g.current = null;
31204
- }, E = (e = OZ) => {
31394
+ }, E = (e = IZ) => {
31205
31395
  T(), g.current = setTimeout(() => v(null), e);
31206
31396
  }, D = (e, t) => {
31207
31397
  T();
@@ -31218,13 +31408,13 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31218
31408
  let t = new ResizeObserver(() => w(e.offsetHeight));
31219
31409
  return t.observe(e), () => t.disconnect();
31220
31410
  }, []);
31221
- let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = wq({
31411
+ let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = Mq({
31222
31412
  collapsed: !0,
31223
31413
  open: k != null,
31224
31414
  glide: x,
31225
31415
  drawn: !0,
31226
31416
  width: 396
31227
- }), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? AZ({
31417
+ }), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? RZ({
31228
31418
  glyphCenter: y.center,
31229
31419
  panelHeight: C,
31230
31420
  railHeight: y.railHeight
@@ -31235,25 +31425,25 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31235
31425
  onFocus: T,
31236
31426
  onBlur: () => E(0),
31237
31427
  onKeyDown: (e) => {
31238
- LZ(e, k) && v(null);
31428
+ GZ(e, k) && v(null);
31239
31429
  },
31240
31430
  children: [i ? /* @__PURE__ */ Q("div", {
31241
31431
  className: "pointer-events-auto shrink-0",
31242
- children: /* @__PURE__ */ Q(FZ, {
31432
+ children: /* @__PURE__ */ Q(UZ, {
31243
31433
  collapsed: r,
31244
31434
  onToggle: () => {
31245
31435
  f(), i();
31246
31436
  }
31247
31437
  })
31248
31438
  }) : null, /* @__PURE__ */ $("div", {
31249
- className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && MZ),
31439
+ className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && BZ),
31250
31440
  children: [
31251
- n ? /* @__PURE__ */ Q(RZ, {
31441
+ n ? /* @__PURE__ */ Q(KZ, {
31252
31442
  clockIn: n,
31253
31443
  stowed: u,
31254
31444
  underToggle: i != null
31255
31445
  }) : null,
31256
- u ? /* @__PURE__ */ Q(zZ, {
31446
+ u ? /* @__PURE__ */ Q(qZ, {
31257
31447
  widgets: e,
31258
31448
  openId: k,
31259
31449
  onOpen: D,
@@ -31265,19 +31455,19 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31265
31455
  ref: h,
31266
31456
  id: p,
31267
31457
  role: "group",
31268
- "aria-label": M ? KG(M) : void 0,
31458
+ "aria-label": M ? eK(M) : void 0,
31269
31459
  hidden: u && A.panelHidden,
31270
- style: { transformOrigin: BW },
31460
+ style: { transformOrigin: JW },
31271
31461
  initial: !1,
31272
- ...u ? NZ({
31462
+ ...u ? VZ({
31273
31463
  open: k != null,
31274
31464
  out: A.bodyOut,
31275
31465
  top: N,
31276
31466
  transition: A.transition
31277
- }) : PZ(d, l),
31467
+ }) : HZ(d, l),
31278
31468
  onMouseEnter: T,
31279
31469
  onMouseLeave: () => E(),
31280
- children: /* @__PURE__ */ Q(Cq, {
31470
+ children: /* @__PURE__ */ Q(jq, {
31281
31471
  side: "right",
31282
31472
  widgets: e,
31283
31473
  visibleWidgetId: u ? j : void 0,
@@ -31295,34 +31485,34 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31295
31485
  ]
31296
31486
  })]
31297
31487
  });
31298
- }, VZ = (e, t, n) => {
31488
+ }, YZ = (e, t, n) => {
31299
31489
  let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
31300
31490
  r?.scrollIntoView({
31301
31491
  behavior: n ? "auto" : "smooth",
31302
31492
  block: "start"
31303
31493
  }), r?.focus({ preventScroll: !0 });
31304
- }, HZ = (e) => {
31494
+ }, XZ = (e) => {
31305
31495
  let t = Yn();
31306
- return G((n) => VZ(e, n, t), [e, t]);
31307
- }, UZ = 64, WZ = 32, GZ = 768, KZ = (e) => {
31496
+ return G((n) => YZ(e, n, t), [e, t]);
31497
+ }, ZZ = 64, QZ = 32, $Z = 768, eQ = (e) => {
31308
31498
  let [t, n] = X(null), [r, i] = X();
31309
31499
  return q(() => {
31310
31500
  let n = e.current;
31311
31501
  if (!n || !t || typeof ResizeObserver != "function") return;
31312
31502
  let r = new ResizeObserver(() => i({
31313
31503
  room: n.clientHeight,
31314
- wide: n.clientWidth >= GZ,
31504
+ wide: n.clientWidth >= $Z,
31315
31505
  lead: t.offsetHeight
31316
31506
  }));
31317
31507
  return r.observe(n), r.observe(t), () => r.disconnect();
31318
31508
  }, [e, t]), {
31319
31509
  lead: n,
31320
- topInset: r && r.room > 0 ? Math.max(r.wide ? WZ : UZ, (r.room - r.lead) / 2) : void 0
31510
+ topInset: r && r.room > 0 ? Math.max(r.wide ? QZ : ZZ, (r.room - r.lead) / 2) : void 0
31321
31511
  };
31322
- }, qZ = (e, t, n) => {
31512
+ }, tQ = (e, t, n) => {
31323
31513
  let r = [], i = /* @__PURE__ */ new Map(), a = [];
31324
31514
  for (let o of e.elements) {
31325
- if (!$q(t, o.type)) {
31515
+ if (!sJ(t, o.type)) {
31326
31516
  n.push({
31327
31517
  rule: "allowedBlockTypes",
31328
31518
  sectionId: e.id,
@@ -31331,7 +31521,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31331
31521
  });
31332
31522
  continue;
31333
31523
  }
31334
- let s = Qq(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
31524
+ let s = oJ(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
31335
31525
  if (s !== void 0 && c.length >= s) {
31336
31526
  n.push({
31337
31527
  rule: "maxPerSection",
@@ -31342,14 +31532,14 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31342
31532
  });
31343
31533
  continue;
31344
31534
  }
31345
- let l = a.find((e) => !nJ(t, e, o.type));
31535
+ let l = a.find((e) => !uJ(t, e, o.type));
31346
31536
  l ? n.push({
31347
31537
  rule: "combinesWith",
31348
31538
  sectionId: e.id,
31349
31539
  elementId: o.id,
31350
31540
  blockType: o.type,
31351
31541
  conflictsWith: l
31352
- }) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "text" ? eJ(o, o.id, t, n) : tJ(o, t)));
31542
+ }) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "text" ? cJ(o, o.id, t, n) : lJ(o, t)));
31353
31543
  }
31354
31544
  let o = t.maxElementsPerSection;
31355
31545
  return o !== void 0 && r.length > o ? (n.push({
@@ -31364,14 +31554,14 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31364
31554
  ...e,
31365
31555
  elements: r
31366
31556
  };
31367
- }, JZ = (e, t, n) => {
31557
+ }, nQ = (e, t, n) => {
31368
31558
  let r = e;
31369
31559
  return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
31370
31560
  rule: "maxSections",
31371
31561
  limit: t.maxSections,
31372
31562
  droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
31373
- }), r = r.slice(0, t.maxSections)), r.map((e, r) => qZ(e, rJ(t, r === 0), n));
31374
- }, YZ = (e, t, n) => {
31563
+ }), r = r.slice(0, t.maxSections)), r.map((e, r) => tQ(e, dJ(t, r === 0), n));
31564
+ }, rQ = (e, t, n) => {
31375
31565
  if (e.type !== "text" || !t.text) return;
31376
31566
  let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
31377
31567
  return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
@@ -31382,14 +31572,14 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31382
31572
  ...i === void 0 ? {} : { minLength: i },
31383
31573
  ...a === void 0 ? {} : { maxLength: a }
31384
31574
  };
31385
- }, XZ = (e, t, n) => {
31575
+ }, iQ = (e, t, n) => {
31386
31576
  let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
31387
31577
  t.forEach((e, t) => {
31388
31578
  let o = e.min ?? 1, s = e.max ?? 1, c = 0;
31389
31579
  for (; c < s && a < r.length && e.types.includes(r[a].type);) {
31390
31580
  let o = r[a];
31391
31581
  a += 1, c += 1;
31392
- let s = YZ(o, e, t);
31582
+ let s = rQ(o, e, t);
31393
31583
  s && (i.add(o.id), n.push(s));
31394
31584
  }
31395
31585
  c < o && n.push({
@@ -31408,51 +31598,51 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31408
31598
  ...e,
31409
31599
  elements: e.elements.filter(({ id: e }) => !i.has(e))
31410
31600
  }));
31411
- }, ZZ = (e) => typeof e == "object" && !!e, QZ = (e) => {
31601
+ }, aQ = (e) => typeof e == "object" && !!e, oQ = (e) => {
31412
31602
  let t = e.widget, n = Array.isArray(e.sections);
31413
- return t === void 0 ? n ? "sections" : null : ZZ(t) && t.type === "widget" && typeof t.id == "string" && ZZ(t.source) && !n ? "widget" : null;
31414
- }, $Z = (e, t, n) => {
31415
- if (!QZ(e)) return n.push({ rule: "accessoryViewBody" }), [];
31603
+ return t === void 0 ? n ? "sections" : null : aQ(t) && t.type === "widget" && typeof t.id == "string" && aQ(t.source) && !n ? "widget" : null;
31604
+ }, sQ = (e, t, n) => {
31605
+ if (!oQ(e)) return n.push({ rule: "accessoryViewBody" }), [];
31416
31606
  let r = t.rules ?? {};
31417
- if (e.widget) return $q(r, "widget") ? [e] : (n.push({
31607
+ if (e.widget) return sJ(r, "widget") ? [e] : (n.push({
31418
31608
  rule: "allowedBlockTypes",
31419
31609
  sectionId: e.id,
31420
31610
  elementId: e.widget.id,
31421
31611
  blockType: "widget"
31422
31612
  }), []);
31423
- let i = JZ(e.sections, r, n), a = t.shape ? XZ(i, t.shape, n) : i;
31613
+ let i = nQ(e.sections, r, n), a = t.shape ? iQ(i, t.shape, n) : i;
31424
31614
  return [{
31425
31615
  ...e,
31426
31616
  sections: a
31427
31617
  }];
31428
- }, eQ = (e, t, n) => e.flatMap((e) => {
31618
+ }, cQ = (e, t, n) => e.flatMap((e) => {
31429
31619
  let r = t.find((t) => t.type === e.type);
31430
31620
  if (!r) return n.push({
31431
31621
  rule: "accessoryViewType",
31432
31622
  accessoryViewId: e.id,
31433
31623
  viewType: e.type
31434
31624
  }), [];
31435
- let i = [], a = $Z(e, r, i);
31625
+ let i = [], a = sQ(e, r, i);
31436
31626
  return n.push(...i.map((t) => ({
31437
31627
  ...t,
31438
31628
  accessoryViewId: e.id
31439
31629
  }))), a;
31440
- }), tQ = (e, t, n = []) => {
31441
- let r = [], i = _J(JZ(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
31630
+ }), lQ = (e, t, n = []) => {
31631
+ let r = [], i = TJ(nQ(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
31442
31632
  rule: "sectionTitle",
31443
31633
  sectionId: e.id
31444
- }), !1)), t, r), r), a = e.accessoryViews ? eQ(e.accessoryViews, n, r) : void 0, o = {
31634
+ }), !1)), t, r), r), a = e.accessoryViews ? cQ(e.accessoryViews, n, r) : void 0, o = {
31445
31635
  ...e,
31446
31636
  sections: i,
31447
31637
  ...a ? { accessoryViews: a } : {}
31448
31638
  };
31449
31639
  return {
31450
31640
  spec: o,
31451
- violations: [...r, ...fJ(o)]
31641
+ violations: [...r, ...bJ(o)]
31452
31642
  };
31453
- }, nQ = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
31643
+ }, uQ = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
31454
31644
  let a = J(() => {
31455
- let i = tQ(e, n ?? {}, r), a = t ? xJ(t, i.spec, n ?? {}, r) : {
31645
+ let i = lQ(e, n ?? {}, r), a = t ? kJ(t, i.spec, n ?? {}, r) : {
31456
31646
  sources: t,
31457
31647
  violations: []
31458
31648
  };
@@ -31475,7 +31665,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31475
31665
  let e = JSON.parse(s);
31476
31666
  e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
31477
31667
  }, [s]), a;
31478
- }, rQ = (e, t, n) => {
31668
+ }, dQ = (e, t, n) => {
31479
31669
  let r = Y(n);
31480
31670
  K(() => {
31481
31671
  r.current = n;
@@ -31490,7 +31680,7 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31490
31680
  t,
31491
31681
  i
31492
31682
  ]);
31493
- }, iQ = 1164, aQ = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
31683
+ }, fQ = 1164, pQ = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
31494
31684
  let i = Y(null), [a, o] = X(0);
31495
31685
  q(() => {
31496
31686
  let e = i.current;
@@ -31505,40 +31695,40 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31505
31695
  defaultProp: n,
31506
31696
  onChange: r,
31507
31697
  caller: "F0AgenticHome"
31508
- }), l = e && (a === 0 || a >= iQ);
31698
+ }), l = e && (a === 0 || a >= fQ);
31509
31699
  return {
31510
31700
  root: i,
31511
31701
  collapsed: !l || s,
31512
31702
  toggle: l ? () => c(!s) : void 0
31513
31703
  };
31514
- }, oQ = (e, t) => {
31704
+ }, mQ = (e, t) => {
31515
31705
  let n = Object.keys(e.params);
31516
31706
  return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
31517
- }, sQ = (e, t) => {
31518
- let { missingParams: n, undeclaredParams: r } = iJ(e, t);
31707
+ }, hQ = (e, t) => {
31708
+ let { missingParams: n, undeclaredParams: r } = fJ(e, t);
31519
31709
  return n.length === 0 && r.length === 0;
31520
- }, cQ = {}, lQ = (e, t, n, r) => !n || r && oQ(r, t) ? e : cQ, uQ = "pt-[max(4rem,22vh)]", dQ = "pb-40", fQ = "pb-10", pQ = (e, t) => e ? t && "md:px-20" : "pr-[428px]", mQ = ku(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) {
31521
- let { spec: E, sources: D } = nQ({
31710
+ }, gQ = {}, _Q = (e, t, n, r) => !n || r && mQ(r, t) ? e : gQ, vQ = "pt-[max(4rem,22vh)]", yQ = "pb-40", bQ = "pb-10", xQ = (e, t) => e ? t && "md:px-20" : "pr-[428px]", SQ = ku(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) {
31711
+ let { spec: E, sources: D } = uQ({
31522
31712
  spec: e,
31523
31713
  sources: p,
31524
31714
  rules: b,
31525
31715
  accessoryViewTypes: S,
31526
31716
  onRulesViolation: x
31527
31717
  }), O = R(), k = Y(null), A = Y(null);
31528
- Fu(T, () => k.current), rQ(k, A, y);
31529
- let j = HZ(k), M = aQ({
31718
+ Fu(T, () => k.current), dQ(k, A, y);
31719
+ let j = XZ(k), M = pQ({
31530
31720
  hasWidgets: i.length > 0,
31531
31721
  collapsed: a,
31532
31722
  defaultCollapsed: o,
31533
31723
  onCollapsedChange: s
31534
- }), N = (e) => c && l.includes(e) ? () => c(e) : void 0, P = N("right"), F = N("main"), I = i.length > 0 || !!P, L = KZ(k), ee = v ? /* @__PURE__ */ Q(hZ, {
31724
+ }), N = (e) => c && l.includes(e) ? () => c(e) : void 0, P = N("right"), F = N("main"), I = i.length > 0 || !!P, L = eQ(k), ee = v ? /* @__PURE__ */ Q(CZ, {
31535
31725
  ref: A,
31536
31726
  children: v
31537
31727
  }) : 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) => {
31538
31728
  if (e.type === "goToSection" && j(e.sectionId), e.type === "openAccessoryView") {
31539
31729
  let t = E.accessoryViews?.find(({ id: t }) => t === e.id);
31540
31730
  if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
31541
- else if (sQ(t, e.params)) {
31731
+ else if (hQ(t, e.params)) {
31542
31732
  let n = {
31543
31733
  id: t.id,
31544
31734
  params: e.params ?? {}
@@ -31556,9 +31746,9 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31556
31746
  h,
31557
31747
  E.accessoryViews
31558
31748
  ]);
31559
- return /* @__PURE__ */ Q(wX, {
31749
+ return /* @__PURE__ */ Q(MX, {
31560
31750
  value: C,
31561
- children: /* @__PURE__ */ Q(GX, {
31751
+ children: /* @__PURE__ */ Q($X, {
31562
31752
  value: w,
31563
31753
  children: /* @__PURE__ */ $("div", {
31564
31754
  ref: M.root,
@@ -31566,18 +31756,18 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31566
31756
  children: [
31567
31757
  /* @__PURE__ */ $("div", {
31568
31758
  ref: k,
31569
- className: B("h-full w-full overflow-y-auto bg-f1-background px-6 pb-page-room scroll-pb-page-room", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none", pQ(M.collapsed, I)),
31759
+ className: B("h-full w-full overflow-y-auto bg-f1-background px-6 pb-page-room scroll-pb-page-room", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none", xQ(M.collapsed, I)),
31570
31760
  children: [/* @__PURE__ */ $("div", {
31571
- className: B("mx-auto flex w-full max-w-content flex-col gap-20", Lg, uQ, v && y ? dQ : fQ),
31761
+ className: B("mx-auto flex w-full max-w-content flex-col gap-20", Lg, vQ, v && y ? yQ : bQ),
31572
31762
  style: L.topInset === void 0 ? void 0 : { paddingTop: L.topInset },
31573
31763
  children: [
31574
31764
  /* @__PURE__ */ $("div", {
31575
31765
  ref: L.lead,
31576
31766
  className: "flex flex-col gap-20",
31577
31767
  children: [
31578
- t ? /* @__PURE__ */ Q(gZ, { greeting: t }) : null,
31768
+ t ? /* @__PURE__ */ Q(wZ, { greeting: t }) : null,
31579
31769
  te ? null : ee,
31580
- te ? /* @__PURE__ */ Q(uZ, {
31770
+ te ? /* @__PURE__ */ Q(vZ, {
31581
31771
  size: "lead",
31582
31772
  section: te,
31583
31773
  sources: D,
@@ -31586,21 +31776,21 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31586
31776
  }, te.id) : null
31587
31777
  ]
31588
31778
  }),
31589
- ne.map((e) => /* @__PURE__ */ Q(uZ, {
31779
+ ne.map((e) => /* @__PURE__ */ Q(vZ, {
31590
31780
  section: e,
31591
31781
  sources: D,
31592
31782
  onAction: se
31593
31783
  }, e.id)),
31594
31784
  F ? /* @__PURE__ */ Q("div", {
31595
31785
  className: "-mt-12",
31596
- children: /* @__PURE__ */ Q(Sq, {
31786
+ children: /* @__PURE__ */ Q(Aq, {
31597
31787
  onClick: F,
31598
31788
  label: O.widgets.addWidget,
31599
31789
  side: "main"
31600
31790
  })
31601
31791
  }) : null
31602
31792
  ]
31603
- }), re && ae && oe ? /* @__PURE__ */ Q(mZ, {
31793
+ }), re && ae && oe ? /* @__PURE__ */ Q(SZ, {
31604
31794
  view: ae,
31605
31795
  params: re.params,
31606
31796
  presentation: oe.presentation,
@@ -31613,15 +31803,15 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31613
31803
  open: !1
31614
31804
  }), g?.();
31615
31805
  },
31616
- sources: lQ(D, re, !!ae.params?.length, m),
31806
+ sources: _Q(D, re, !!ae.params?.length, m),
31617
31807
  onAction: se
31618
31808
  }) : null]
31619
31809
  }),
31620
31810
  r ? /* @__PURE__ */ Q("div", {
31621
31811
  className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
31622
- children: /* @__PURE__ */ Q(sG, {})
31812
+ children: /* @__PURE__ */ Q(hG, {})
31623
31813
  }) : null,
31624
- n || I ? /* @__PURE__ */ Q(BZ, {
31814
+ n || I ? /* @__PURE__ */ Q(JZ, {
31625
31815
  widgets: i,
31626
31816
  collapsed: M.collapsed,
31627
31817
  onToggleCollapsed: M.toggle,
@@ -31636,20 +31826,20 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31636
31826
  })
31637
31827
  })
31638
31828
  });
31639
- }), hQ = wn("F0AgenticHome", mQ), gQ = ku(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
31829
+ }), CQ = wn("F0AgenticHome", SQ), wQ = ku(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
31640
31830
  let a = J(() => (e, t) => n?.(e, t), [n]);
31641
31831
  return /* @__PURE__ */ Q("div", {
31642
31832
  ref: i,
31643
- children: /* @__PURE__ */ Q(wX, {
31833
+ children: /* @__PURE__ */ Q(MX, {
31644
31834
  value: r,
31645
- children: /* @__PURE__ */ Q(DX, {
31835
+ children: /* @__PURE__ */ Q(FX, {
31646
31836
  element: e,
31647
31837
  state: t,
31648
31838
  onAction: a
31649
31839
  })
31650
31840
  })
31651
31841
  });
31652
- }), _Q = wn("F0AgenticHomeBlock", gQ), vQ = {
31842
+ }), TQ = wn("F0AgenticHomeBlock", wQ), EQ = {
31653
31843
  maxSections: 12,
31654
31844
  maxElementsPerSection: 3,
31655
31845
  blocks: [
@@ -31696,18 +31886,18 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31696
31886
  type: "list",
31697
31887
  itemActions: ["goToSection"]
31698
31888
  }] }
31699
- }, yQ = 1, bQ = {
31889
+ }, DQ = 1, OQ = {
31700
31890
  main: 672,
31701
31891
  right: 396
31702
- }, xQ = 250, SQ = (e) => typeof e == "object" && !!e && !Au(e) && Array.isArray(e.slots), CQ = ({ preview: e, params: t, slotRenderers: n }) => SQ(e) ? /* @__PURE__ */ Q(NK, {
31703
- ...YG(e),
31892
+ }, kQ = 250, AQ = (e) => typeof e == "object" && !!e && !Au(e) && Array.isArray(e.slots), jQ = ({ preview: e, params: t, slotRenderers: n }) => AQ(e) ? /* @__PURE__ */ Q(VK, {
31893
+ ...rK(e),
31704
31894
  header: e.header,
31705
31895
  params: t ?? e.params,
31706
31896
  fullHeight: e.fullHeight,
31707
31897
  slots: e.slots,
31708
31898
  loading: e.loading,
31709
31899
  slotRenderers: n
31710
- }) : /* @__PURE__ */ Q(Z, { children: e }), wQ = (e, t, n) => e.info ?? (SQ(t) ? GG(t.header, n ?? t.params)?.info : void 0), TQ = (e) => e.paramsSchema ?? (SQ(e.preview) ? e.preview.paramsSchema : void 0), EQ = (e) => e.params ?? (SQ(e.preview) ? e.preview.params : void 0) ?? {}, DQ = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
31900
+ }) : /* @__PURE__ */ Q(Z, { children: e }), MQ = (e, t, n) => e.info ?? (AQ(t) ? $G(t.header, n ?? t.params)?.info : void 0), NQ = (e) => e.paramsSchema ?? (AQ(e.preview) ? e.preview.paramsSchema : void 0), PQ = (e) => e.params ?? (AQ(e.preview) ? e.preview.params : void 0) ?? {}, FQ = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
31711
31901
  className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
31712
31902
  children: [t ? /* @__PURE__ */ Q(U, {
31713
31903
  icon: t,
@@ -31718,10 +31908,10 @@ var mY = Ou(null), hY = () => Nu(mY), gY = ({ action: e, rows: t, ...n }, r, i)
31718
31908
  children: e
31719
31909
  })]
31720
31910
  });
31721
- function OQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
31722
- let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = FK(), [g, _] = X(""), [v, y] = X(null), [b, x] = X("pick"), [S, C] = X(!1), w = (e) => {
31911
+ function IQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
31912
+ let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = UK(), [g, _] = X(""), [v, y] = X(null), [b, x] = X("pick"), [S, C] = X(!1), w = (e) => {
31723
31913
  C(!0), x(e);
31724
- }, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = ve(), A = g.trim().toLowerCase(), j = o ?? (a ? bQ[a] : bQ.right), M = J(() => {
31914
+ }, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = ve(), A = g.trim().toLowerCase(), j = o ?? (a ? OQ[a] : OQ.right), M = J(() => {
31725
31915
  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));
31726
31916
  return [
31727
31917
  ...r.length ? [{
@@ -31746,7 +31936,7 @@ function OQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
31746
31936
  A,
31747
31937
  a,
31748
31938
  u
31749
- ]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? TQ(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && qG(F, EQ(P))), L = b === "configure" && I, ee = P && T?.id === P.id ? T.params : P ? EQ(P) : {}, te = L && P && c ? c(P, ee) : P?.preview;
31939
+ ]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? NQ(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && tK(F, PQ(P))), L = b === "configure" && I, ee = P && T?.id === P.id ? T.params : P ? PQ(P) : {}, te = L && P && c ? c(P, ee) : P?.preview;
31750
31940
  return K(() => {
31751
31941
  e && (x("pick"), C(!1), E(null));
31752
31942
  }, [e]), K(() => {
@@ -31793,7 +31983,7 @@ function OQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
31793
31983
  defaultValues: ee,
31794
31984
  submitConfig: {
31795
31985
  type: "autosubmit",
31796
- delay: xQ,
31986
+ delay: kQ,
31797
31987
  hideActionBar: !0
31798
31988
  },
31799
31989
  styling: { noPadding: !0 },
@@ -31808,7 +31998,7 @@ function OQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
31808
31998
  placeholder: "Search widgets"
31809
31999
  }), /* @__PURE__ */ $("div", {
31810
32000
  className: "flex flex-col gap-1 overflow-y-auto",
31811
- children: [M.map((e) => /* @__PURE__ */ $(Tu, { children: [e.label ? /* @__PURE__ */ Q(DQ, {
32001
+ children: [M.map((e) => /* @__PURE__ */ $(Tu, { children: [e.label ? /* @__PURE__ */ Q(FQ, {
31812
32002
  label: e.label,
31813
32003
  icon: e.icon
31814
32004
  }) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
@@ -31827,11 +32017,11 @@ function OQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
31827
32017
  children: A ? "No widgets match your search." : "No widgets to add here."
31828
32018
  }) : null]
31829
32019
  })] })
31830
- }, b), /* @__PURE__ */ Q(LK, {
32020
+ }, b), /* @__PURE__ */ Q(GK, {
31831
32021
  previewKey: P?.id,
31832
- info: P ? wQ(P, te, L ? ee : void 0) : void 0,
32022
+ info: P ? MQ(P, te, L ? ee : void 0) : void 0,
31833
32023
  previewWidth: j,
31834
- children: P ? /* @__PURE__ */ Q(CQ, {
32024
+ children: P ? /* @__PURE__ */ Q(jQ, {
31835
32025
  preview: te,
31836
32026
  params: L ? ee : void 0,
31837
32027
  slotRenderers: s
@@ -31842,62 +32032,62 @@ function OQ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
31842
32032
  }
31843
32033
  //#endregion
31844
32034
  //#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
31845
- var kQ = Object.defineProperty, AQ = Object.defineProperties, jQ = Object.getOwnPropertyDescriptors, MQ = Object.getOwnPropertySymbols, NQ = Object.prototype.hasOwnProperty, PQ = Object.prototype.propertyIsEnumerable, FQ = (e, t, n) => t in e ? kQ(e, t, {
32035
+ var LQ = Object.defineProperty, RQ = Object.defineProperties, zQ = Object.getOwnPropertyDescriptors, BQ = Object.getOwnPropertySymbols, VQ = Object.prototype.hasOwnProperty, HQ = Object.prototype.propertyIsEnumerable, UQ = (e, t, n) => t in e ? LQ(e, t, {
31846
32036
  enumerable: !0,
31847
32037
  configurable: !0,
31848
32038
  writable: !0,
31849
32039
  value: n
31850
- }) : e[t] = n, IQ = (e, t) => {
31851
- for (var n in t ||= {}) NQ.call(t, n) && FQ(e, n, t[n]);
31852
- if (MQ) for (var n of MQ(t)) PQ.call(t, n) && FQ(e, n, t[n]);
32040
+ }) : e[t] = n, WQ = (e, t) => {
32041
+ for (var n in t ||= {}) VQ.call(t, n) && UQ(e, n, t[n]);
32042
+ if (BQ) for (var n of BQ(t)) HQ.call(t, n) && UQ(e, n, t[n]);
31853
32043
  return e;
31854
- }, LQ = (e, t) => AQ(e, jQ(t)), RQ = (e, t) => {
32044
+ }, GQ = (e, t) => RQ(e, zQ(t)), KQ = (e, t) => {
31855
32045
  var n = {};
31856
- for (var r in e) NQ.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
31857
- if (e != null && MQ) for (var r of MQ(e)) t.indexOf(r) < 0 && PQ.call(e, r) && (n[r] = e[r]);
32046
+ for (var r in e) VQ.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
32047
+ if (e != null && BQ) for (var r of BQ(e)) t.indexOf(r) < 0 && HQ.call(e, r) && (n[r] = e[r]);
31858
32048
  return n;
31859
- }, zQ = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, BQ = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), VQ = ({ position: e, spot: t, stone: n }) => {
32049
+ }, qQ = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, JQ = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), YQ = ({ position: e, spot: t, stone: n }) => {
31860
32050
  if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
31861
32051
  if (t.bottom && t.bottom < e.top) return t;
31862
- let n = IQ({}, t);
32052
+ let n = WQ({}, t);
31863
32053
  return n.right = e.left, n;
31864
32054
  }
31865
32055
  return null;
31866
- }, HQ = ({ position: e, stone: t, spot: n }) => {
32056
+ }, XQ = ({ position: e, stone: t, spot: n }) => {
31867
32057
  if (e.left + t.width > n.left && e.top >= n.top) {
31868
32058
  if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
31869
- let t = IQ({}, n);
32059
+ let t = WQ({}, n);
31870
32060
  return t.bottom = e.top, t;
31871
32061
  }
31872
32062
  return null;
31873
- }, UQ = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
31874
- let i = IQ({}, r);
31875
- return i.left = t.left + e.width, zQ(i) || BQ({
32063
+ }, ZQ = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
32064
+ let i = WQ({}, r);
32065
+ return i.left = t.left + e.width, qQ(i) || JQ({
31876
32066
  usedSpot: i,
31877
32067
  spotsList: n
31878
32068
  }) ? null : i;
31879
- }, WQ = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? UQ({
32069
+ }, QQ = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? ZQ({
31880
32070
  stone: r,
31881
32071
  position: t,
31882
32072
  optimalSpot: n,
31883
32073
  spotsList: a
31884
- }) : VQ({
32074
+ }) : YQ({
31885
32075
  position: t,
31886
32076
  spot: e,
31887
32077
  stone: r
31888
- }) || HQ({
32078
+ }) || XQ({
31889
32079
  position: t,
31890
32080
  stone: r,
31891
32081
  spot: e
31892
32082
  }) || e);
31893
- function GQ(e, t) {
32083
+ function $Q(e, t) {
31894
32084
  for (let n = 0, r = t.length; n < r; n++) {
31895
32085
  let r = t[n];
31896
32086
  if (e(r)) return r;
31897
32087
  }
31898
32088
  return null;
31899
32089
  }
31900
- var KQ = (e, t) => t.filter(e), qQ = (e, t) => [...t].sort(e), JQ = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, YQ = (e) => qQ(JQ, e), XQ = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
32090
+ var e$ = (e, t) => t.filter(e), t$ = (e, t) => [...t].sort(e), n$ = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, r$ = (e) => t$(n$, e), i$ = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
31901
32091
  let i = {
31902
32092
  right: n,
31903
32093
  top: t.top + r.height,
@@ -31912,36 +32102,36 @@ var KQ = (e, t) => t.filter(e), qQ = (e, t) => [...t].sort(e), JQ = (e, t) => e.
31912
32102
  }
31913
32103
  }
31914
32104
  return i;
31915
- }, ZQ = (e, t) => {
32105
+ }, a$ = (e, t) => {
31916
32106
  let n = e.right - e.left >= t.width;
31917
32107
  if (!e.bottom) return n;
31918
32108
  let r = e.bottom - e.top >= t.height;
31919
32109
  return n && r;
31920
- }, QQ = ({ availableSpots: e, stone: t }) => GQ((e) => ZQ(e, t), e);
31921
- function $Q({ stone: e, availableSpots: t, containerSize: n }) {
31922
- let r = QQ({
32110
+ }, o$ = ({ availableSpots: e, stone: t }) => $Q((e) => a$(e, t), e);
32111
+ function s$({ stone: e, availableSpots: t, containerSize: n }) {
32112
+ let r = o$({
31923
32113
  availableSpots: t,
31924
32114
  stone: e
31925
32115
  }), i = {
31926
32116
  left: r.left,
31927
32117
  top: r.top
31928
- }, a = XQ({
32118
+ }, a = i$({
31929
32119
  optimalSpot: r,
31930
32120
  availableSpots: t.filter((e) => e !== r),
31931
32121
  stone: e,
31932
32122
  containerSize: n
31933
- }), o = [...t, a], s = WQ({
32123
+ }), o = [...t, a], s = QQ({
31934
32124
  spots: o,
31935
32125
  position: i,
31936
32126
  optimalSpot: r,
31937
32127
  stone: e
31938
32128
  });
31939
- return o = [...KQ(Boolean, s)], o = YQ(o), {
32129
+ return o = [...e$(Boolean, s)], o = r$(o), {
31940
32130
  position: i,
31941
32131
  availableSpots: o
31942
32132
  };
31943
32133
  }
31944
- var e$ = ({ stones: e, containerSize: t }) => {
32134
+ var c$ = ({ stones: e, containerSize: t }) => {
31945
32135
  let n = {
31946
32136
  positions: [],
31947
32137
  containerHeight: 0,
@@ -31954,7 +32144,7 @@ var e$ = ({ stones: e, containerSize: t }) => {
31954
32144
  right: t
31955
32145
  }];
31956
32146
  for (let n of e) {
31957
- let e = $Q({
32147
+ let e = s$({
31958
32148
  availableSpots: a,
31959
32149
  stone: n,
31960
32150
  containerSize: t
@@ -31966,14 +32156,14 @@ var e$ = ({ stones: e, containerSize: t }) => {
31966
32156
  positions: i,
31967
32157
  containerHeight: r
31968
32158
  };
31969
- }, t$ = (e) => e.reduce((e, t) => {
32159
+ }, l$ = (e) => e.reduce((e, t) => {
31970
32160
  if (!t) return e;
31971
32161
  let n = t.getBoundingClientRect();
31972
32162
  return e.push({
31973
32163
  width: n.width,
31974
32164
  height: n.height
31975
32165
  }), e;
31976
- }, []), n$ = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
32166
+ }, []), u$ = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
31977
32167
  let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
31978
32168
  positions: [],
31979
32169
  containerHeight: null,
@@ -31981,13 +32171,13 @@ var e$ = ({ stones: e, containerSize: t }) => {
31981
32171
  availableSpots: []
31982
32172
  });
31983
32173
  return K(() => {
31984
- let n = t$(e.current), r = t.current?.offsetWidth ?? 0;
32174
+ let n = l$(e.current), r = t.current?.offsetWidth ?? 0;
31985
32175
  if (r === null) return;
31986
- let i = e$({
32176
+ let i = c$({
31987
32177
  stones: n,
31988
32178
  containerSize: r
31989
32179
  });
31990
- l(LQ(IQ({}, i), { stones: n }));
32180
+ l(GQ(WQ({}, i), { stones: n }));
31991
32181
  }, [
31992
32182
  n,
31993
32183
  e,
@@ -32000,7 +32190,7 @@ var e$ = ({ stones: e, containerSize: t }) => {
32000
32190
  stones: s,
32001
32191
  availableSpots: c
32002
32192
  };
32003
- }, r$ = (e) => ({
32193
+ }, d$ = (e) => ({
32004
32194
  fade: `${e}ms opacity ease`,
32005
32195
  fadeMove: `
32006
32196
  ${e}ms opacity ease,
@@ -32011,15 +32201,15 @@ var e$ = ({ stones: e, containerSize: t }) => {
32011
32201
  ${e}ms top ease,
32012
32202
  ${e}ms left ease
32013
32203
  `
32014
- }), i$ = ({ transition: e, transitionDuration: t }) => e ? { transition: r$(t)[e] } : null, a$ = (e) => e ? LQ(IQ({}, e), { opacity: 1 }) : {
32204
+ }), f$ = ({ transition: e, transitionDuration: t }) => e ? { transition: d$(t)[e] } : null, p$ = (e) => e ? GQ(WQ({}, e), { opacity: 1 }) : {
32015
32205
  opacity: 0,
32016
32206
  top: 0,
32017
32207
  left: 0
32018
- }, o$ = ({ style: e, position: t, transition: n, transitionDuration: r }) => IQ(IQ(LQ(IQ({}, e), { position: "absolute" }), a$(t)), i$({
32208
+ }, m$ = ({ style: e, position: t, transition: n, transitionDuration: r }) => WQ(WQ(GQ(WQ({}, e), { position: "absolute" }), p$(t)), f$({
32019
32209
  transition: n,
32020
32210
  transitionDuration: r
32021
32211
  }));
32022
- function s$(e, t, n) {
32212
+ function h$(e, t, n) {
32023
32213
  let r;
32024
32214
  return function(...i) {
32025
32215
  r && clearTimeout(r), r = setTimeout(function() {
@@ -32027,8 +32217,8 @@ function s$(e, t, n) {
32027
32217
  }, t), n && !r && e.apply(null, i);
32028
32218
  };
32029
32219
  }
32030
- var c$ = () => {
32031
- let [e, t] = X(), n = Y(s$(t, 300));
32220
+ var g$ = () => {
32221
+ let [e, t] = X(), n = Y(h$(t, 300));
32032
32222
  return K(() => {
32033
32223
  let e = () => {
32034
32224
  n.current(window.innerWidth);
@@ -32037,7 +32227,7 @@ var c$ = () => {
32037
32227
  window.removeEventListener("resize", e);
32038
32228
  };
32039
32229
  }, []), e;
32040
- }, l$ = (e) => {
32230
+ }, _$ = (e) => {
32041
32231
  let [t, n] = X(null);
32042
32232
  return K(() => {
32043
32233
  let t = new ResizeObserver((e) => {
@@ -32047,31 +32237,31 @@ var c$ = () => {
32047
32237
  t.disconnect();
32048
32238
  };
32049
32239
  }, [e]), t;
32050
- }, u$ = (e) => {
32051
- var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = RQ(t, [
32240
+ }, v$ = (e) => {
32241
+ var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = KQ(t, [
32052
32242
  "children",
32053
32243
  "style",
32054
32244
  "transition",
32055
32245
  "transitionDuration",
32056
32246
  "transitionStep"
32057
32247
  ]);
32058
- let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = n$({
32248
+ let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = u$({
32059
32249
  boxesRefs: c,
32060
32250
  wrapperRef: l,
32061
32251
  children: n,
32062
- windowWidth: c$(),
32063
- wrapperWidth: l$(l)
32064
- }), f = IQ({
32252
+ windowWidth: g$(),
32253
+ wrapperWidth: _$(l)
32254
+ }), f = WQ({
32065
32255
  minHeight: d ?? 0,
32066
32256
  position: "relative"
32067
32257
  }, r);
32068
- return Q("div", LQ(IQ({
32258
+ return Q("div", GQ(WQ({
32069
32259
  ref: l,
32070
32260
  style: f
32071
32261
  }, s), { children: wu.map(n, (e, t) => {
32072
32262
  if (typeof e != "object" || !e || !("type" in e)) return e;
32073
32263
  let n = {
32074
- style: o$({
32264
+ style: m$({
32075
32265
  style: e.props.style,
32076
32266
  position: u[t],
32077
32267
  transition: i,
@@ -32079,14 +32269,14 @@ var c$ = () => {
32079
32269
  }),
32080
32270
  ref: (e) => c.current[t] = e
32081
32271
  };
32082
- return Du(e, IQ(IQ({}, e.props), n));
32272
+ return Du(e, WQ(WQ({}, e.props), n));
32083
32273
  }) }));
32084
- }, d$ = {
32274
+ }, y$ = {
32085
32275
  sm: 340,
32086
32276
  md: 480,
32087
32277
  lg: 640
32088
- }, f$ = ku(function({ children: e, widgetWidth: t = "sm" }, n) {
32089
- let r = d$[t], [i, a] = X(), o = wu.toArray(e), s = Y(null);
32278
+ }, b$ = ku(function({ children: e, widgetWidth: t = "sm" }, n) {
32279
+ let r = y$[t], [i, a] = X(), o = wu.toArray(e), s = Y(null);
32090
32280
  return K(() => {
32091
32281
  let e = () => {
32092
32282
  let e = s.current?.offsetWidth;
@@ -32105,7 +32295,7 @@ var c$ = () => {
32105
32295
  children: e
32106
32296
  }) : i && i > 1 && /* @__PURE__ */ Q("div", {
32107
32297
  className: "relative -mr-4",
32108
- children: /* @__PURE__ */ Q(u$, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
32298
+ children: /* @__PURE__ */ Q(v$, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
32109
32299
  style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
32110
32300
  className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
32111
32301
  children: e
@@ -32113,7 +32303,7 @@ var c$ = () => {
32113
32303
  })
32114
32304
  })
32115
32305
  });
32116
- }), p$ = [
32306
+ }), x$ = [
32117
32307
  "sm",
32118
32308
  "lg",
32119
32309
  "md",
@@ -32126,26 +32316,26 @@ var c$ = () => {
32126
32316
  "sm",
32127
32317
  "md",
32128
32318
  "md"
32129
- ], m$ = _s(f$, () => /* @__PURE__ */ Q(wi, { children: /* @__PURE__ */ Q(f$, { children: p$.map((e, t) => /* @__PURE__ */ Q(We.Skeleton, { height: e }, t)) }) })), h$ = ({ children: e }) => /* @__PURE__ */ Q("div", {
32319
+ ], S$ = _s(b$, () => /* @__PURE__ */ Q(wi, { children: /* @__PURE__ */ Q(b$, { children: x$.map((e, t) => /* @__PURE__ */ Q(We.Skeleton, { height: e }, t)) }) })), C$ = ({ children: e }) => /* @__PURE__ */ Q("div", {
32130
32320
  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)]",
32131
32321
  children: e
32132
- }), g$ = _s(ku(function({ children: e }, t) {
32322
+ }), w$ = _s(ku(function({ children: e }, t) {
32133
32323
  return /* @__PURE__ */ Q(Ol, {
32134
32324
  ref: t,
32135
32325
  showBar: !1,
32136
- children: /* @__PURE__ */ Q(h$, { children: e })
32326
+ children: /* @__PURE__ */ Q(C$, { children: e })
32137
32327
  });
32138
32328
  }), () => /* @__PURE__ */ Q(wi, {
32139
32329
  orientation: "horizontal",
32140
- children: /* @__PURE__ */ $(h$, { children: [
32330
+ children: /* @__PURE__ */ $(C$, { children: [
32141
32331
  /* @__PURE__ */ Q(We.Skeleton, {}),
32142
32332
  /* @__PURE__ */ Q(We.Skeleton, {}),
32143
32333
  /* @__PURE__ */ Q(We.Skeleton, {})
32144
32334
  ] })
32145
- })), _$ = We;
32335
+ })), T$ = We;
32146
32336
  //#endregion
32147
32337
  //#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
32148
- function v$({ title: e, description: t, emoji: n, actions: r }) {
32338
+ function E$({ title: e, description: t, emoji: n, actions: r }) {
32149
32339
  if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
32150
32340
  return /* @__PURE__ */ Q(S, {
32151
32341
  title: e,
@@ -32156,7 +32346,7 @@ function v$({ title: e, description: t, emoji: n, actions: r }) {
32156
32346
  }
32157
32347
  //#endregion
32158
32348
  //#region src/blocks/Widgets/WidgetEmptyState/index.tsx
32159
- var y$ = yn(wn("WidgetEmptyState", v$)), b$ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
32349
+ var D$ = yn(wn("WidgetEmptyState", E$)), O$ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
32160
32350
  let i = bn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
32161
32351
  a,
32162
32352
  t,
@@ -32170,9 +32360,9 @@ var y$ = yn(wn("WidgetEmptyState", v$)), b$ = ({ identifier: e, allowedRoutes: t
32170
32360
  n
32171
32361
  ]);
32172
32362
  return o ? r : (i && console.error(s), null);
32173
- }, x$ = yn(Cs({
32363
+ }, k$ = yn(Cs({
32174
32364
  name: "ScrollArea",
32175
32365
  type: "layout"
32176
32366
  }, Ol));
32177
32367
  //#endregion
32178
- export { yQ as AGENTIC_HOME_SPEC_VERSION, be as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Jh as ActivityItemList, qh as ActivityItemListSkeleton, PT as ApplicationFrame, Se as AreaChart, yU as AreaChartWidget, aU as AutoGrid, ws as Badge, _ as BarChart, bU as BarChartWidget, Kh as BaseActivityItemList, Be as BaseBanner, eg as BaseCelebration, _g as BaseCommunityPost, da as BaseTabs, di as BreadcrumbSelect, tE as Breadcrumbs, fg as CalendarEvent, FU as CalendarEventList, qt as CardSelectableContainer, Ft as Carousel, m as CategoryBarChart, nW as CategoryBarSection, ng as Celebration, tg as CelebrationSkeleton, MU as ChartWidgetEmptyState, nc as Chip, jW as ClockInControls, Yt as CoachmarkProvider, oe as ComboChart, yg as CommunityPost, Og as CommunityPostCard, kg as CommunityPostCardSkeleton, vg as CommunityPostSkeleton, $O as CompanySelector, Nn as Counter, lK as DEFAULT_EXPECTED_ITEMS_COUNT, m$ as Dashboard, KT as DaytimePage, Mi as DetailsItem, is as DetailsItemsList, Je as Dialog, pi as Dropdown, eK as EVENT_LIST_GAP, ph as EntitySelect, $e as F0ActionBar, hQ as F0AgenticHome, _Q as F0AgenticHomeBlock, o as F0AiBanner, Id as F0AiCallout, jo as F0AiPromptRow, Ns as F0AvatarColor, js as F0AvatarColorList, Hs as F0AvatarModule, Xc as F0ButtonToggle, Wd as F0Callout, Li as F0CardHorizontal, Li as F0CardRow, Hp as F0CarouselDialog, BH as F0Chat, OP as F0ChatHistoryLimitCard, cu as F0ChatProvider, FM as F0CommandPaletteProvider, Ng as F0CommunityPostsCarousel, Sp as F0Composer, nf as F0Confetti, qH as F0ENPSButton, pd as F0EmojiPicker, fi as F0FileItem, Ne as F0FormEditableTable, nj as F0InboxItem, rj as F0InboxItemDecision, lj as F0InboxItemGroup, dj as F0InboxItemList, gj as F0InboxItemListSkeleton, hj as F0InboxItemSkeleton, et as F0LocationInput, tu as F0Map, zl as F0MapControls, iu as F0MapList, au as F0MapSidebar, Yl as F0MapSidebarToggle, Ql as F0MapSkeleton, Xw as F0Meeting, Tf as F0MeetingCard, t_ as F0MeetingProvider, Mw as F0MeetingRoom, Zw as F0MeetingSlot, Yw as F0MeetingSurface, un as F0NotesTextEditor, _e as F0NotesTextEditorSkeleton, I as F0NumberInput, O as F0NumberInputInline, ur as F0PersonCard, Jt as F0PhoneInput, sA as F0PrimarySidebar, Zc as F0ProgressSeries, Af as F0PulseDot, zp as F0Resizable, pn as F0ResourceHeader, pn as ResourceHeader, Co as F0RichTextDisplay, re as F0RichTextEditor, Dc as F0SearchInput, uA as F0SecondarySidebar, Wp as F0SegmentedBar, Qi as F0SegmentedControl, gm as F0SharingDialog, Dm as F0SwipeDeck, Ht as F0TableOfContent, Ih as F0TemplateTextInput, ce as F0TextAreaInput, ie as F0TextAreaInputInline, ko as F0TextInput, ee as F0TextInputInline, zm as F0Timeline, Lm as F0VersionHistory, CP as F0_CHAT_HEADER_TITLE_SELECTOR, UM as F0_CHAT_MESSAGES_TAB_ID, Ec as F1SearchBox, y as FILE_TYPES, no as FileItem, rg as HighlightBanner, aG as HomeSlotItem, iG as HomeSlotItems, BU as IndicatorsList, Xr as Input, Ge as Item, gt as ItemSectionHeader, WM as LATEST, BG as LIST_COMPACT_AFTER, QG as LIST_MORE_BUTTON_CLASS, xt as LineChart, xU as LineChartWidget, mT as MeetingNotes, $w as MeetingPanelContent, pT as MeetingParticipants, tT as MeetingRoomChat, hw as MeetingSidePanel, Ay as MeetingSurfaceProvider, iT as MeetingTranscript, gk as Menu, ro as MobileDropdown, Fq as NewHomeLayout, l as NotesTextEditor, sn as NotesTextEditorSkeleton, me as NumberInput, DE as OmniButton, Aj as OneApprovalHistory, yc as OneCalendar, Tt as OneDataCollection, c as OneDateNavigator, S as OneEmptyState, im as OneListItem, rm as OneListItemSkeleton, bt as OnePagination, Ig as OnePersonListItem, b$ as OneRestrictComponent, kE as Page, CE as PageHeader, nE as PageHeaderNavigationContext, rE as PageHeaderNavigationProvider, Ha as PageNavigation, i as PieChart, SU as PieChartWidget, $t as PrivateBox, yt as ProgressBarChart, vQ as RECOMMENDED_AGENTIC_HOME_RULES, Ul as RECOMMENDED_MAX_MARKERS, te as RadarChart, og as Reactions, lo as RichTextDisplay, se as RichTextEditor, XG as SLOT_ROW_BLEED, uK as SLOT_SKELETON_ITEM_TESTID, x$ as ScrollArea, cA as SearchBar, r as SectionHeader, Bc as Select, or as Shortcut, pA as Sidebar, YD as SidebarChatBlankState, rO as SidebarChatItem, ZD as SidebarChatItemSkeleton, HO as SidebarChatList, $D as SidebarChatListSkeleton, zE as SidebarChatProvider, QE as SidebarCollapsibleSection, ak as SidebarFooter, sk as SidebarHeader, yk as SidebarPanelHeader, gD as SidebarTabPanel, oD as SidebarTabPanelSearch, gA as SidebarTabs, ik as SidebarUserMenu, NK as SlotWidget, MK as SlotWidgetContent, dc as Spinner, iU as Split, rU as Stack, wU as SummariesWidget, Nc as Switch, go as Tabs, Ho as TabsSkeleton, FW as TasksList, b as Textarea, Cr as ToggleGroup, ui as ToggleGroupItem, Fn as Tooltip, In as TooltipGroup, tW as TwoColumnsList, D as UPLOAD_INPUT_ID, ae as VerticalBarChart, CU as VerticalBarChartWidget, Vm as VirtualList, bc as WeekStartDay, Or as Weekdays, _$ as Widget, UU as WidgetAvatarsListItem, OQ as WidgetCatalog, y$ as WidgetEmptyState, RU as WidgetHighlightButton, ZU as WidgetInboxList, KU as WidgetInboxListItem, uG as WidgetSection, $U as WidgetSimpleList, YU as WidgetSimpleListItem, g$ as WidgetStrip, wt as actionBarStatuses, md as aiCalloutStatuses, Df as attendeesDisplays, Uv as buildTiles, _t as buttonToggleColors, Ke as buttonToggleSizes, Mt as buttonToggleVariants, ug as calendarEventVariants, $s as chipVariants, $u as coachmarks, mM as commandActionRisks, Dg as communityPostCardVariants, Cp as composerVariants, Gd as confettiPalette, uC as createMeetingSignalStore, Zl as defaultMapStyle, yK as defaultSlotRenderers, vK as defaultSlotSkeleton, Pj as defineSelectCellSubmenu, id as defineStepByStepCoachmarkGuidance, rt as downloadAsCSV, Pt as downloadAsExcel, RM as f0ChatSenderColors, ad as f0EmojiPickerSizes, fr as f0FileItemSizes, Hl as f0MapMarkerVariants, eu as f0MapStyles, $v as f0MeetingConnectionQualities, ry as f0MeetingCoreActionIds, Zv as f0MeetingDisconnectReasons, Yv as f0MeetingGuestKinds, iy as f0MeetingInvitationStates, Qv as f0MeetingPermissions, Jv as f0MeetingPresences, Xv as f0MeetingStatuses, ey as f0MeetingSurfaceDestinations, ty as f0MeetingSurfaceModes, qv as f0MeetingTrackKinds, qu as f0ProgressSeriesColors, Ku as f0ProgressSeriesSizes, ny as f0WindowCorners, WG as fromParams, Lt as generateCSVContent, ln as getAutoPerPageMinHeight, Kc as getGranularityDefinition, Lc as getGranularityDefinitions, Qc as getGranularitySimpleDefinition, Jl as googleMapStyles, Vl as googlePinlessMapStyles, zc as granularityDefinitions, aK as heldDialogActions, HG as homeSlot, xj as inboxItemDecisionSizes, Sj as inboxItemSkeletonAvatars, bj as inboxItemStatuses, vj as inboxItemTints, yj as inboxItemTones, Lo as isPossiblePhoneValue, HM as isPost, zM as isSystemMessage, VM as isUserMessage, Xa as isValidPhoneValue, eC as layoutGrid, VG as listCompacts, iK as listGlyphSize, v as listIconColors, $G as listMoreButtonClass, UG as listSlot, vh as locationInputSizes, yh as locationParts, Yx as matchDevice, Ef as meetingStates, ON as messageBodyText, As as modules, fy as nearestCorner, em as oneListItemRowClassName, bh as phoneInputSizes, dy as placementFromRect, Ut as predefinedPresets, jf as pulseDotVariants, JG as railActionTones, Gc as rangeSeparator, Ux as readMeetingMediaPreferences, rC as reorderForSpeakers, wp as resizableDirections, HS as resolveAutoFocus, kc as resolveGranularityDefinition, uy as resolvePlacement, zG as resolveSlotRenderer, GG as resolveWidgetHeader, B_ as sanitizeMeetingReaction, Mj as seedFromStorage, je as selectSizes, Re as selectVariants, py as settlePlacement, ZG as slotRowBleed, $S as solveGrid, iC as solveSpotlight, Nm as swipeDirections, Kv as tileAspectRatio, Vv as tileKey, Wx as updateMeetingMediaPreferences, NM as useCommandPalette, Yh as useCompactOnScroll, ef as useConfetti, ne as useDataCollectionData, Nj as useDataCollectionItemNavigation, ge as useDataCollectionSource, tn as useExportAction, Su as useF0Chat, r_ as useF0Meeting, o_ as useF0MeetingRoster, a_ as useF0MeetingStable, n_ as useHasF0Meeting, a as useInfiniteScrollPagination, rG as useIsBulkChange, Gx as useMeetingMediaPreferences, mC as useMeetingSignal, hC as useMeetingSpeakers, jy as useMeetingSurface, My as useMeetingSurfaceOptional, aE as usePageHeaderItemNavigation, iE as usePageHeaderNavigation, _r as useSidePanel, Kl as useSidebar, UE as useSidebarChatActions, HE as useSidebarChats, Mm as useSwipeDeck, h_ as useTrackBinding, Qe as useWidgetIsWide, hT as viewportRect, YG as widgetChrome, qG as widgetParamsAreComplete, KG as widgetTitle };
32368
+ export { DQ as AGENTIC_HOME_SPEC_VERSION, be as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Jh as ActivityItemList, qh as ActivityItemListSkeleton, PT as ApplicationFrame, Se as AreaChart, yU as AreaChartWidget, aU as AutoGrid, ws as Badge, _ as BarChart, bU as BarChartWidget, Kh as BaseActivityItemList, Be as BaseBanner, eg as BaseCelebration, _g as BaseCommunityPost, da as BaseTabs, di as BreadcrumbSelect, tE as Breadcrumbs, fg as CalendarEvent, FU as CalendarEventList, qt as CardSelectableContainer, Ft as Carousel, m as CategoryBarChart, nW as CategoryBarSection, ng as Celebration, tg as CelebrationSkeleton, MU as ChartWidgetEmptyState, nc as Chip, zW as ClockInControls, Yt as CoachmarkProvider, oe as ComboChart, yg as CommunityPost, Og as CommunityPostCard, kg as CommunityPostCardSkeleton, vg as CommunityPostSkeleton, $O as CompanySelector, Nn as Counter, _K as DEFAULT_EXPECTED_ITEMS_COUNT, S$ as Dashboard, KT as DaytimePage, Mi as DetailsItem, is as DetailsItemsList, Je as Dialog, pi as Dropdown, cK as EVENT_LIST_GAP, ph as EntitySelect, $e as F0ActionBar, CQ as F0AgenticHome, TQ as F0AgenticHomeBlock, o as F0AiBanner, Id as F0AiCallout, jo as F0AiPromptRow, Ns as F0AvatarColor, js as F0AvatarColorList, Hs as F0AvatarModule, Xc as F0ButtonToggle, Wd as F0Callout, Li as F0CardHorizontal, Li as F0CardRow, Hp as F0CarouselDialog, BH as F0Chat, OP as F0ChatHistoryLimitCard, cu as F0ChatProvider, FM as F0CommandPaletteProvider, Ng as F0CommunityPostsCarousel, Sp as F0Composer, nf as F0Confetti, qH as F0ENPSButton, pd as F0EmojiPicker, fi as F0FileItem, Ne as F0FormEditableTable, nj as F0InboxItem, rj as F0InboxItemDecision, lj as F0InboxItemGroup, dj as F0InboxItemList, gj as F0InboxItemListSkeleton, hj as F0InboxItemSkeleton, et as F0LocationInput, tu as F0Map, zl as F0MapControls, iu as F0MapList, au as F0MapSidebar, Yl as F0MapSidebarToggle, Ql as F0MapSkeleton, Xw as F0Meeting, Tf as F0MeetingCard, t_ as F0MeetingProvider, Mw as F0MeetingRoom, Zw as F0MeetingSlot, Yw as F0MeetingSurface, un as F0NotesTextEditor, _e as F0NotesTextEditorSkeleton, I as F0NumberInput, O as F0NumberInputInline, ur as F0PersonCard, Jt as F0PhoneInput, sA as F0PrimarySidebar, Zc as F0ProgressSeries, Af as F0PulseDot, zp as F0Resizable, pn as F0ResourceHeader, pn as ResourceHeader, Co as F0RichTextDisplay, re as F0RichTextEditor, Dc as F0SearchInput, uA as F0SecondarySidebar, Wp as F0SegmentedBar, Qi as F0SegmentedControl, gm as F0SharingDialog, Dm as F0SwipeDeck, Ht as F0TableOfContent, Ih as F0TemplateTextInput, ce as F0TextAreaInput, ie as F0TextAreaInputInline, ko as F0TextInput, ee as F0TextInputInline, zm as F0Timeline, Lm as F0VersionHistory, CP as F0_CHAT_HEADER_TITLE_SELECTOR, UM as F0_CHAT_MESSAGES_TAB_ID, Ec as F1SearchBox, y as FILE_TYPES, no as FileItem, rg as HighlightBanner, pG as HomeSlotItem, fG as HomeSlotItems, BU as IndicatorsList, Xr as Input, Ge as Item, gt as ItemSectionHeader, WM as LATEST, JG as LIST_COMPACT_AFTER, oK as LIST_MORE_BUTTON_CLASS, xt as LineChart, xU as LineChartWidget, mT as MeetingNotes, $w as MeetingPanelContent, pT as MeetingParticipants, tT as MeetingRoomChat, hw as MeetingSidePanel, Ay as MeetingSurfaceProvider, iT as MeetingTranscript, gk as Menu, ro as MobileDropdown, Uq as NewHomeLayout, l as NotesTextEditor, sn as NotesTextEditorSkeleton, me as NumberInput, DE as OmniButton, Aj as OneApprovalHistory, yc as OneCalendar, Tt as OneDataCollection, c as OneDateNavigator, S as OneEmptyState, im as OneListItem, rm as OneListItemSkeleton, bt as OnePagination, Ig as OnePersonListItem, O$ as OneRestrictComponent, kE as Page, CE as PageHeader, nE as PageHeaderNavigationContext, rE as PageHeaderNavigationProvider, Ha as PageNavigation, i as PieChart, SU as PieChartWidget, $t as PrivateBox, yt as ProgressBarChart, EQ as RECOMMENDED_AGENTIC_HOME_RULES, Ul as RECOMMENDED_MAX_MARKERS, te as RadarChart, og as Reactions, lo as RichTextDisplay, se as RichTextEditor, iK as SLOT_ROW_BLEED, vK as SLOT_SKELETON_ITEM_TESTID, k$ as ScrollArea, cA as SearchBar, r as SectionHeader, Bc as Select, or as Shortcut, pA as Sidebar, YD as SidebarChatBlankState, rO as SidebarChatItem, ZD as SidebarChatItemSkeleton, HO as SidebarChatList, $D as SidebarChatListSkeleton, zE as SidebarChatProvider, QE as SidebarCollapsibleSection, ak as SidebarFooter, sk as SidebarHeader, yk as SidebarPanelHeader, gD as SidebarTabPanel, oD as SidebarTabPanelSearch, gA as SidebarTabs, ik as SidebarUserMenu, VK as SlotWidget, BK as SlotWidgetContent, dc as Spinner, iU as Split, rU as Stack, wU as SummariesWidget, Nc as Switch, go as Tabs, Ho as TabsSkeleton, UW as TasksList, b as Textarea, Cr as ToggleGroup, ui as ToggleGroupItem, Fn as Tooltip, In as TooltipGroup, tW as TwoColumnsList, D as UPLOAD_INPUT_ID, ae as VerticalBarChart, CU as VerticalBarChartWidget, Vm as VirtualList, bc as WeekStartDay, Or as Weekdays, T$ as Widget, UU as WidgetAvatarsListItem, IQ as WidgetCatalog, D$ as WidgetEmptyState, RU as WidgetHighlightButton, ZU as WidgetInboxList, KU as WidgetInboxListItem, vG as WidgetSection, $U as WidgetSimpleList, YU as WidgetSimpleListItem, w$ as WidgetStrip, wt as actionBarStatuses, md as aiCalloutStatuses, Df as attendeesDisplays, Uv as buildTiles, _t as buttonToggleColors, Ke as buttonToggleSizes, Mt as buttonToggleVariants, ug as calendarEventVariants, $s as chipVariants, $u as coachmarks, mM as commandActionRisks, Dg as communityPostCardVariants, Cp as composerVariants, Gd as confettiPalette, uC as createMeetingSignalStore, Zl as defaultMapStyle, DK as defaultSlotRenderers, EK as defaultSlotSkeleton, Pj as defineSelectCellSubmenu, id as defineStepByStepCoachmarkGuidance, rt as downloadAsCSV, Pt as downloadAsExcel, RM as f0ChatSenderColors, ad as f0EmojiPickerSizes, fr as f0FileItemSizes, Hl as f0MapMarkerVariants, eu as f0MapStyles, $v as f0MeetingConnectionQualities, ry as f0MeetingCoreActionIds, Zv as f0MeetingDisconnectReasons, Yv as f0MeetingGuestKinds, iy as f0MeetingInvitationStates, Qv as f0MeetingPermissions, Jv as f0MeetingPresences, Xv as f0MeetingStatuses, ey as f0MeetingSurfaceDestinations, ty as f0MeetingSurfaceModes, qv as f0MeetingTrackKinds, qu as f0ProgressSeriesColors, Ku as f0ProgressSeriesSizes, ny as f0WindowCorners, QG as fromParams, Lt as generateCSVContent, ln as getAutoPerPageMinHeight, Kc as getGranularityDefinition, Lc as getGranularityDefinitions, Qc as getGranularitySimpleDefinition, Jl as googleMapStyles, Vl as googlePinlessMapStyles, zc as granularityDefinitions, pK as heldDialogActions, XG as homeSlot, xj as inboxItemDecisionSizes, Sj as inboxItemSkeletonAvatars, bj as inboxItemStatuses, vj as inboxItemTints, yj as inboxItemTones, Lo as isPossiblePhoneValue, HM as isPost, zM as isSystemMessage, VM as isUserMessage, Xa as isValidPhoneValue, eC as layoutGrid, YG as listCompacts, fK as listGlyphSize, v as listIconColors, sK as listMoreButtonClass, ZG as listSlot, vh as locationInputSizes, yh as locationParts, Yx as matchDevice, Ef as meetingStates, ON as messageBodyText, As as modules, fy as nearestCorner, em as oneListItemRowClassName, bh as phoneInputSizes, dy as placementFromRect, Ut as predefinedPresets, jf as pulseDotVariants, nK as railActionTones, Gc as rangeSeparator, Ux as readMeetingMediaPreferences, rC as reorderForSpeakers, wp as resizableDirections, HS as resolveAutoFocus, kc as resolveGranularityDefinition, uy as resolvePlacement, qG as resolveSlotRenderer, $G as resolveWidgetHeader, B_ as sanitizeMeetingReaction, Mj as seedFromStorage, je as selectSizes, Re as selectVariants, py as settlePlacement, aK as slotRowBleed, $S as solveGrid, iC as solveSpotlight, Nm as swipeDirections, Kv as tileAspectRatio, Vv as tileKey, Wx as updateMeetingMediaPreferences, NM as useCommandPalette, Yh as useCompactOnScroll, ef as useConfetti, ne as useDataCollectionData, Nj as useDataCollectionItemNavigation, ge as useDataCollectionSource, tn as useExportAction, Su as useF0Chat, r_ as useF0Meeting, o_ as useF0MeetingRoster, a_ as useF0MeetingStable, n_ as useHasF0Meeting, a as useInfiniteScrollPagination, dG as useIsBulkChange, Gx as useMeetingMediaPreferences, mC as useMeetingSignal, hC as useMeetingSpeakers, jy as useMeetingSurface, My as useMeetingSurfaceOptional, aE as usePageHeaderItemNavigation, iE as usePageHeaderNavigation, _r as useSidePanel, Kl as useSidebar, UE as useSidebarChatActions, HE as useSidebarChats, Mm as useSwipeDeck, h_ as useTrackBinding, Qe as useWidgetIsWide, hT as viewportRect, rK as widgetChrome, tK as widgetParamsAreComplete, eK as widgetTitle };