react-semaphor 0.1.552 → 0.1.553

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.
Files changed (62) hide show
  1. package/dist/analytics-protocol/index.js +8 -8
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +3 -3
  4. package/dist/briefings/index.js +5 -5
  5. package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-DaIdRbbd.js} +1275 -1296
  6. package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-aGO7_ryE.js} +3 -3
  7. package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-BugAu7zS.js} +7 -7
  8. package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-D7ez5sab.js} +1 -1
  9. package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-DBJ0xrfF.js} +62 -62
  10. package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CDX74NTl.js} +46 -46
  11. package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-Cf5dpYTr.js} +4 -4
  12. package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-z3GYw7xR.js} +1 -1
  13. package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-LMMWPOwU.js} +119 -119
  14. package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-hCGiyxgm.js} +18 -18
  15. package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-BG5qVZKS.js} +48 -48
  16. package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DwP5dN9m.js} +2 -2
  17. package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Ce6Ydv2W.js} +5927 -5723
  18. package/dist/chunks/{index-Dp0ta6KB.js → index-C_UIqop8.js} +9 -9
  19. package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-cvzKdxPE.js} +2 -2
  20. package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-VFE-yDlr.js} +2 -2
  21. package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-B27bz08Y.js} +15 -15
  22. package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DyC-e9pD.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract-L_SiObB7.js} +1 -1
  24. package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-B5gyyW9k.js} +1 -1
  25. package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-BQFfowp1.js} +1 -1
  26. package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-dZIYsMrY.js} +1 -1
  27. package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-D0kSz5QX.js} +6 -6
  28. package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-BWRH754b.js} +6 -6
  29. package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-DvabpYcC.js} +49 -49
  30. package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-CKiIubIu.js} +1 -1
  31. package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-Ctq1YCDV.js} +2062 -1988
  32. package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context-Bt1E9d1l.js} +8 -8
  33. package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-DdPwKDDQ.js} +1 -1
  34. package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-Cc1TG_gw.js} +26 -26
  35. package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-Ch9XqytU.js} +119 -119
  36. package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-DkW3Iek5.js} +1 -1
  37. package/dist/chunks/{switch-wJP6O7ZT.js → switch-gm7RW-PW.js} +2 -2
  38. package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-C7bDdC8r.js} +1 -1
  39. package/dist/chunks/{table-settings-WysCBj62.js → table-settings-CBm7G0yx.js} +224 -201
  40. package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-BikY3FFR.js} +1 -1
  41. package/dist/chunks/{token-types-BMqRmT-C.js → token-types-B1p9F_wS.js} +1 -1
  42. package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-CZdDRUpc.js} +6 -6
  43. package/dist/chunks/{validators-C-aOQlTB.js → validators-BdBzm_EV.js} +17 -16
  44. package/dist/dashboard/index.js +2 -2
  45. package/dist/dashboard-authoring/index.js +273 -264
  46. package/dist/data-app-sdk/index.js +5 -5
  47. package/dist/data-app-sdk-adapters/index.js +2 -2
  48. package/dist/data-app-sdk-validation/index.js +5 -5
  49. package/dist/format-utils/index.js +15 -15
  50. package/dist/index.js +21 -21
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/surfboard/index.js +2 -2
  54. package/dist/types/index.js +6 -6
  55. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
  56. package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
  57. package/dist/types/lib/utils/card-type-change.d.ts +5 -1
  58. package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
  59. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
  60. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  61. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +64 -0
  62. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { z as t } from "zod";
2
- import { s as g, b as v } from "./matrix-operation-contract-D6vYkZK4.js";
3
- import { a as T } from "./metric-comparison-zpGw4lD6.js";
4
- import { D as O, v as y, k as E, j as A, i as V } from "./table-settings-WysCBj62.js";
2
+ import { s as g, b as v } from "./matrix-operation-contract-L_SiObB7.js";
3
+ import { a as T } from "./metric-comparison-B5gyyW9k.js";
4
+ import { D as O, v as y, k as E, j as A, i as V } from "./table-settings-CBm7G0yx.js";
5
5
  const p = 1, $ = ["PRIVATE", "TEAM", "DASHBOARD"], R = t.object({
6
6
  filterId: t.string().min(1),
7
7
  name: t.string(),
@@ -1,17 +1,17 @@
1
1
  var je = Object.defineProperty;
2
2
  var Ge = (e, t, r) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ce = (e, t, r) => Ge(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { i as ze, j as O, m as He, c as Xe, p as We, J as Ye, a as G, F as Ze, G as qe, f as Je, I as Qe } from "./temporal-bucket-CQOSbv9-.js";
5
- import { i as Me, m as ee, j as Le, k as et, l as ke, a as ue, d as tt, n as $ } from "./matrix-formatter-C_EpDP6o.js";
4
+ import { i as ze, j as O, m as He, c as Xe, p as We, J as Ye, a as G, F as Ze, G as qe, f as Je, I as Qe } from "./temporal-bucket-BikY3FFR.js";
5
+ import { i as Me, m as ee, j as Le, k as et, l as ke, a as ue, d as tt, n as $ } from "./matrix-formatter-B27bz08Y.js";
6
6
  import { h as Y, e as rt, p as ot, k as nt } from "./export-file-format-C-tJsxsf.js";
7
- import { aI as K, ab as at, t as H, aH as st, v as re, u as it } from "./validators-C-aOQlTB.js";
8
- import "./matrix-operation-contract-D6vYkZK4.js";
7
+ import { aI as K, ab as at, t as H, aH as st, v as re, u as it } from "./validators-BdBzm_EV.js";
8
+ import "./matrix-operation-contract-L_SiObB7.js";
9
9
  import "./analytics-base-schemas-BKs3flFS.js";
10
10
  import "zod";
11
- import { D as Ae, a as lt, t as me, s as ct, P as de, l as ut, o as mt, v as dt, J as V } from "./pivot-result-lifecycle-pwq3b7LC.js";
11
+ import { D as Ae, a as lt, t as me, s as ct, P as de, l as ut, o as mt, v as dt, J as V } from "./pivot-result-lifecycle-D0kSz5QX.js";
12
12
  import { PDF_SAFETY_LIMIT_EXCEEDED as Ie, getUtf8ByteLength as ft, FAST_PDF_POLICY as gt } from "../pdf-export-policy/index.js";
13
- import { p as pt } from "./pivot-header-presentation-CQnIDtUv.js";
14
- import { d as bt, c as fe } from "./pivot-result-identity-C-Q1j1Wb.js";
13
+ import { p as pt } from "./pivot-header-presentation-BQFfowp1.js";
14
+ import { d as bt, c as fe } from "./pivot-result-identity-dZIYsMrY.js";
15
15
  import { v as yt } from "./raw-temporal-contract-WuXA8jBP.js";
16
16
  import { g as ht } from "./zoned-wall-clock-MulfA26h.js";
17
17
  function wt(e, t, r) {
@@ -1,4 +1,4 @@
1
- import { v as F } from "./global-date-filter-utils-C1jCNWdV.js";
1
+ import { v as F } from "./global-date-filter-utils-Ce6Ydv2W.js";
2
2
  function h(e) {
3
3
  if (!(e != null && e.expectedType)) return "table";
4
4
  const r = Array.isArray(e.expectedType) ? e.expectedType[0] : e.expectedType;
@@ -1,30 +1,30 @@
1
1
  import { jsx as t, jsxs as s, Fragment as R } from "react/jsx-runtime";
2
- import Vt, { useState as S, useEffect as xe, useCallback as Z, useMemo as te, useLayoutEffect as Dt, useRef as nt, useContext as Bt } from "react";
3
- import { cE as ot, bL as Ie, bM as Te, bO as Le, cF as ta, b5 as it, b3 as Qe, cG as aa, cH as Ke, cI as lt, a7 as Ge, a4 as ce, u as w, cJ as ra, cK as na, bK as E, cL as sa, a6 as ee, bh as oa, cM as ia, cN as la, a_ as ve, ct as Pt, aR as $e, o as da, k as ca, cO as ua, cw as dt, cx as ct, cy as ut, cz as ht, cA as mt, cB as pt, cC as ft, cD as Mt, aP as gt, cP as ha, cQ as ma, cl as et, ci as Ve, cj as Be, cR as Ut, ck as Pe, c7 as G, cu as pa, cp as We, cS as fa, c5 as ga, bN as bt, bP as xt, cT as ba, bJ as xa, cU as Ot, bx as vt, cV as va, by as ya, i as Ca, cW as wa, bs as Na, w as Sa, t as ka, cX as Da, cY as Aa, cZ as Fa, c_ as K, c$ as Ea, R as Rt, d0 as Ia, d1 as Ta, d2 as La, d3 as Va, aM as Ba, d4 as de, d5 as Pa, W as yt, d6 as Ma, d7 as Ua, d8 as Oa, d9 as Ra, da as za, db as _a, dc as ja, dd as zt, de as $a, df as Wa, dg as qa, dh as _t, di as Ha, dj as ze, dk as Qa, dl as Ka, dm as Ga, A as Xa, aB as Ya, aC as Za, ah as Ja, ag as er, af as tr, ae as ar, ab as rr, a9 as nr, dn as sr, dp as or, dq as ir, dr as lr, ds as dr, az as cr } from "./semaphor-ready-indicator-ChyotaWB.js";
4
- import { B as I, l as De, q as st, L as re, j as jt, c as Ct, i as ur, P as Ae, a0 as hr, b as Fe, a as qe, S as $t } from "./switch-wJP6O7ZT.js";
2
+ import Vt, { useState as S, useEffect as xe, useCallback as J, useMemo as te, useLayoutEffect as Dt, useRef as nt, useContext as Bt } from "react";
3
+ import { cE as ot, bL as Ie, bM as Te, bO as Le, cF as ta, b5 as it, b3 as Qe, cG as aa, cH as Ke, cI as lt, a7 as Ge, a4 as ce, u as w, cJ as ra, cK as na, bK as E, cL as sa, a6 as ee, bh as oa, cM as ia, cN as la, a_ as ve, ct as Pt, aR as $e, o as da, k as ca, cO as ua, cw as dt, cx as ct, cy as ut, cz as ht, cA as mt, cB as pt, cC as ft, cD as Mt, aP as gt, cP as ha, cQ as ma, cl as et, ci as Ve, cj as Be, cR as Ut, ck as Pe, c7 as G, cu as pa, cp as We, cS as fa, c5 as ga, bN as bt, bP as xt, cT as ba, bJ as xa, cU as Ot, bx as vt, cV as va, by as ya, i as Ca, cW as wa, bs as Na, w as Sa, t as ka, cX as Da, cY as Aa, cZ as Fa, c_ as K, c$ as Ea, R as Rt, d0 as Ia, d1 as Ta, d2 as La, d3 as Va, aM as Ba, d4 as de, d5 as Pa, W as yt, d6 as Ma, d7 as Ua, d8 as Oa, d9 as Ra, da as za, db as _a, dc as ja, dd as zt, de as $a, df as Wa, dg as qa, dh as _t, di as Ha, dj as ze, dk as Qa, dl as Ka, dm as Ga, A as Xa, aB as Ya, aC as Ja, ah as Za, ag as er, af as tr, ae as ar, ab as rr, a9 as nr, dn as sr, dp as or, dq as ir, dr as lr, ds as dr, az as cr } from "./semaphor-ready-indicator-Cc1TG_gw.js";
4
+ import { B as I, l as De, q as st, L as re, j as jt, c as Ct, i as ur, P as Ae, a0 as hr, b as Fe, a as qe, S as $t } from "./switch-gm7RW-PW.js";
5
5
  import { L as Ee } from "./layout-grid-Bgzth8vd.js";
6
6
  import { c as fe, X as Xe, C as wt } from "./x-4f5U2XwU.js";
7
7
  import "./index-CuHybtft.js";
8
- import { o as mr } from "./validators-C-aOQlTB.js";
9
- import "./matrix-operation-contract-D6vYkZK4.js";
8
+ import { o as mr } from "./validators-BdBzm_EV.js";
9
+ import "./matrix-operation-contract-L_SiObB7.js";
10
10
  import "./analytics-base-schemas-BKs3flFS.js";
11
11
  import "zod";
12
12
  import "../value-format-preferences/index.js";
13
- import { c as J } from "./_commonjsHelpers-DimLPMtv.js";
14
- import { S as pr } from "./selection-reducer-CJzkTZio.js";
13
+ import { c as Z } from "./_commonjsHelpers-DimLPMtv.js";
14
+ import { S as pr } from "./selection-reducer-DdPwKDDQ.js";
15
15
  import { s as _e } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
16
- import { aL as fr, ay as gr, e1 as He, v as At, e2 as br, as as Nt, e3 as xr, dq as vr, dc as yr, bp as Cr, e4 as wr } from "./global-date-filter-utils-C1jCNWdV.js";
16
+ import { aL as fr, ay as gr, e3 as He, v as At, e4 as br, as as Nt, e5 as xr, ds as vr, de as yr, br as Cr, e6 as wr } from "./global-date-filter-utils-Ce6Ydv2W.js";
17
17
  import { f as Nr } from "./editor-draft-sync-BN5qYHPF.js";
18
18
  import { createPortal as Sr } from "react-dom";
19
- import "./pivot-result-lifecycle-pwq3b7LC.js";
19
+ import "./pivot-result-lifecycle-D0kSz5QX.js";
20
20
  import "./index-CtoK1Lgu.js";
21
- import { I as kr } from "./table-settings-WysCBj62.js";
21
+ import { J as kr } from "./table-settings-CBm7G0yx.js";
22
22
  import { S as Wt } from "./save-CfJpQQ68.js";
23
- import { V as Dr, L as Ar, a as Fr, u as qt, C as Ht, F as Er, b as Ir } from "./use-create-flow-overlay-state-t7JLE_LV.js";
24
- import { m as Tr, k as Qt, n as Kt } from "./report-preferences-dialog-C0uGI0v7.js";
25
- import { q as Ft } from "./matrix-formatter-C_EpDP6o.js";
26
- import { g as Lr, f as Vr } from "./document-dashboard-inputs-PoQihHLu.js";
27
- import { g as le, d as Br, a as Pr } from "./index-Dp0ta6KB.js";
23
+ import { V as Dr, L as Ar, a as Fr, u as qt, C as Ht, F as Er, b as Ir } from "./use-create-flow-overlay-state-CZdDRUpc.js";
24
+ import { m as Tr, k as Qt, n as Kt } from "./report-preferences-dialog-DvabpYcC.js";
25
+ import { q as Ft } from "./matrix-formatter-B27bz08Y.js";
26
+ import { g as Lr, f as Vr } from "./document-dashboard-inputs-LMMWPOwU.js";
27
+ import { g as le, d as Br, a as Pr } from "./index-C_UIqop8.js";
28
28
  /**
29
29
  * @license lucide-react v0.453.0 - ISC
30
30
  *
@@ -364,7 +364,7 @@ function Hr() {
364
364
  return ((i = n.card.customCardPreferences) == null ? void 0 : i.url) || "";
365
365
  }
366
366
  ), a = $r(e);
367
- return { getUpdatedFrame: Z(() => {
367
+ return { getUpdatedFrame: J(() => {
368
368
  var g;
369
369
  Nr();
370
370
  const {
@@ -419,7 +419,7 @@ function ye() {
419
419
  (L) => L.inlineFilterValuesMap
420
420
  ), T = ra((i == null ? void 0 : i.id) || "", {
421
421
  enabled: !!(i != null && i.id) && !!(e != null && e.accessToken)
422
- }), z = Z(
422
+ }), z = J(
423
423
  async (L) => {
424
424
  try {
425
425
  r(L), F(), A();
@@ -486,7 +486,7 @@ function ye() {
486
486
  D,
487
487
  j
488
488
  ]
489
- ), X = Z(
489
+ ), X = J(
490
490
  async (L) => {
491
491
  var Y;
492
492
  const ae = (H) => (E.error(H), { success: !1, error: H });
@@ -645,7 +645,7 @@ function hs({
645
645
  break;
646
646
  }
647
647
  B || A();
648
- }, Ze = (x) => {
648
+ }, Je = (x) => {
649
649
  F(x), A();
650
650
  }, be = (x) => {
651
651
  U(x), L(x, {
@@ -657,7 +657,7 @@ function hs({
657
657
  return;
658
658
  }
659
659
  k(null), g(!0);
660
- }, Je = async () => {
660
+ }, Ze = async () => {
661
661
  const x = v ? [v] : me;
662
662
  try {
663
663
  for (const B of x)
@@ -780,7 +780,7 @@ function hs({
780
780
  onSelectAll: W,
781
781
  onToggleSelection: $,
782
782
  onAddVisual: ne,
783
- onOpenVisual: Ze,
783
+ onOpenVisual: Je,
784
784
  onEditDetails: p,
785
785
  onShareVisual: h,
786
786
  onDeleteVisual: (x) => {
@@ -917,7 +917,7 @@ function hs({
917
917
  Mt,
918
918
  {
919
919
  onClick: (x) => {
920
- x.preventDefault(), Je();
920
+ x.preventDefault(), Ze();
921
921
  },
922
922
  disabled: Y || ke === 0,
923
923
  children: [
@@ -1007,7 +1007,7 @@ function Yr({
1007
1007
  return /* @__PURE__ */ s(
1008
1008
  "div",
1009
1009
  {
1010
- className: J(
1010
+ className: Z(
1011
1011
  "group grid min-h-12 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/50 px-3 text-[13px] hover:bg-muted/50",
1012
1012
  a && "bg-muted/70"
1013
1013
  ),
@@ -1058,7 +1058,7 @@ function Yr({
1058
1058
  /* @__PURE__ */ t(Gr, { visual: e }),
1059
1059
  /* @__PURE__ */ t("span", { className: "text-right tabular-nums text-muted-foreground", children: e.ownership.sharedCount > 0 ? e.ownership.sharedCount : "—" }),
1060
1060
  /* @__PURE__ */ t(
1061
- Zr,
1061
+ Jr,
1062
1062
  {
1063
1063
  visual: e,
1064
1064
  onOpenVisual: i,
@@ -1075,7 +1075,7 @@ function Yr({
1075
1075
  }
1076
1076
  );
1077
1077
  }
1078
- function Zr({
1078
+ function Jr({
1079
1079
  visual: e,
1080
1080
  onOpenVisual: a,
1081
1081
  onEditDetails: o,
@@ -1182,7 +1182,7 @@ function ms(e, a, o = !1) {
1182
1182
  (u) => u.isDashboardEditing
1183
1183
  ), r = w(
1184
1184
  (u) => u.onDashboardLifecycleEvent
1185
- ), d = Z(() => {
1185
+ ), d = J(() => {
1186
1186
  const u = w.getState().dashboard;
1187
1187
  return a || !e || !u || u.id !== e.id ? !1 : _e(u) !== _e(e);
1188
1188
  }, [e, a]);
@@ -1216,7 +1216,7 @@ function ms(e, a, o = !1) {
1216
1216
  }));
1217
1217
  }, [c, r]), d;
1218
1218
  }
1219
- function Jr({
1219
+ function Zr({
1220
1220
  open: e,
1221
1221
  onOpenChange: a,
1222
1222
  isLibraryVisual: o,
@@ -1712,7 +1712,7 @@ function ps(e = {}) {
1712
1712
  ] }),
1713
1713
  /* @__PURE__ */ t(at, {}),
1714
1714
  /* @__PURE__ */ t(
1715
- Jr,
1715
+ Zr,
1716
1716
  {
1717
1717
  open: M,
1718
1718
  onOpenChange: (T) => {
@@ -1739,7 +1739,7 @@ function fs({ className: e }) {
1739
1739
  "aria-label": u,
1740
1740
  title: u,
1741
1741
  onClick: () => i(!a),
1742
- className: J(
1742
+ className: Z(
1743
1743
  "inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
1744
1744
  e
1745
1745
  ),
@@ -1874,7 +1874,7 @@ function vs({
1874
1874
  }) {
1875
1875
  const [n, i] = S(
1876
1876
  () => /* @__PURE__ */ new Map()
1877
- ), [r, d] = S(null), [c, l] = S(null), u = Z((m) => (i((p) => new Map(p).set(m.id, m)), () => i((p) => {
1877
+ ), [r, d] = S(null), [c, l] = S(null), u = J((m) => (i((p) => new Map(p).set(m.id, m)), () => i((p) => {
1878
1878
  if (p.get(m.id) !== m) return p;
1879
1879
  const f = new Map(p);
1880
1880
  return f.delete(m.id), f;
@@ -2241,7 +2241,7 @@ function ln({
2241
2241
  D,
2242
2242
  on(N)
2243
2243
  );
2244
- }, A = Z(() => {
2244
+ }, A = J(() => {
2245
2245
  if (r) {
2246
2246
  d();
2247
2247
  return;
@@ -2360,13 +2360,13 @@ function cn({
2360
2360
  ), M = te(
2361
2361
  () => un(h),
2362
2362
  [h]
2363
- ), A = Z(() => {
2363
+ ), A = J(() => {
2364
2364
  if (n) {
2365
2365
  i();
2366
2366
  return;
2367
2367
  }
2368
2368
  u(!1);
2369
- }, [n, i, u]), O = Z(
2369
+ }, [n, i, u]), O = J(
2370
2370
  (C, D, N) => {
2371
2371
  !g || !(f != null && f.document) || p(
2372
2372
  pn({
@@ -2511,7 +2511,7 @@ function fn({
2511
2511
  return /* @__PURE__ */ s(
2512
2512
  "div",
2513
2513
  {
2514
- className: J(
2514
+ className: Z(
2515
2515
  // Height lives on the shell so the outer border is part of the
2516
2516
  // h-7 box (matches regular `size="xs"` buttons). Inner triggers
2517
2517
  // stretch to fill via `h-full`.
@@ -2526,7 +2526,7 @@ function fn({
2526
2526
  {
2527
2527
  variant: "ghost",
2528
2528
  size: "xs",
2529
- className: J(
2529
+ className: Z(
2530
2530
  "h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
2531
2531
  d
2532
2532
  ),
@@ -2541,7 +2541,7 @@ function fn({
2541
2541
  {
2542
2542
  align: "end",
2543
2543
  sideOffset: 6,
2544
- className: J(
2544
+ className: Z(
2545
2545
  "w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
2546
2546
  l
2547
2547
  ),
@@ -2556,7 +2556,7 @@ function fn({
2556
2556
  {
2557
2557
  variant: "ghost",
2558
2558
  size: "xs",
2559
- className: J(
2559
+ className: Z(
2560
2560
  "h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
2561
2561
  c
2562
2562
  ),
@@ -2569,7 +2569,7 @@ function fn({
2569
2569
  {
2570
2570
  align: "end",
2571
2571
  sideOffset: 6,
2572
- className: J(
2572
+ className: Z(
2573
2573
  "w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
2574
2574
  u
2575
2575
  ),
@@ -2741,11 +2741,11 @@ function ks({
2741
2741
  var O;
2742
2742
  const [d, c] = S(null), l = w((b) => b.dashboard), u = w((b) => b.selectedSheetId), h = w((b) => b.showFilters), m = w((b) => b.actions), { setDocumentPanelTarget: p, setShowFilters: f } = m, g = (O = l.sheets) == null ? void 0 : O.find(
2743
2743
  (b) => b.id === u
2744
- ), v = Nt(g), k = Z((b) => {
2744
+ ), v = Nt(g), k = J((b) => {
2745
2745
  window.setTimeout(() => {
2746
2746
  c(b);
2747
2747
  }, 0);
2748
- }, []), V = Z(
2748
+ }, []), V = J(
2749
2749
  (b) => {
2750
2750
  if (v && u) {
2751
2751
  b && p(u, {
@@ -2762,11 +2762,11 @@ function ks({
2762
2762
  p,
2763
2763
  f
2764
2764
  ]
2765
- ), U = Z(() => {
2765
+ ), U = J(() => {
2766
2766
  V(!0);
2767
- }, [V]), M = Z(() => {
2767
+ }, [V]), M = J(() => {
2768
2768
  k("create");
2769
- }, [k]), A = Z(() => {
2769
+ }, [k]), A = J(() => {
2770
2770
  k("manage");
2771
2771
  }, [k]);
2772
2772
  return /* @__PURE__ */ s(R, { children: [
@@ -2829,7 +2829,7 @@ function yn({
2829
2829
  size: "xs",
2830
2830
  variant: "outline",
2831
2831
  disabled: e,
2832
- className: J("gap-1.5", o),
2832
+ className: Z("gap-1.5", o),
2833
2833
  onClick: n,
2834
2834
  "aria-label": "Reports & briefings",
2835
2835
  children: [
@@ -2840,7 +2840,7 @@ function yn({
2840
2840
  }
2841
2841
  );
2842
2842
  }
2843
- const Cn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", Zt = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", je = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
2843
+ const Cn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", Jt = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", je = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
2844
2844
  function wn(e) {
2845
2845
  return e === "dashboard" ? "This dashboard" : "Project";
2846
2846
  }
@@ -2871,7 +2871,7 @@ function kn(e) {
2871
2871
  }
2872
2872
  return null;
2873
2873
  }
2874
- function Jt(e) {
2874
+ function Zt(e) {
2875
2875
  return e.hasActiveRun ? "Running" : e.lastRunStatus ? `Last run ${e.lastRunStatus.toString().toLowerCase()}` : "Idle";
2876
2876
  }
2877
2877
  function Dn(e) {
@@ -2896,7 +2896,7 @@ function An({
2896
2896
  role: "tab",
2897
2897
  "aria-selected": n,
2898
2898
  onClick: () => a(o),
2899
- className: J(
2899
+ className: Z(
2900
2900
  "h-6 rounded-[3px] px-2 text-[11px] transition-colors",
2901
2901
  n ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
2902
2902
  ),
@@ -3033,7 +3033,7 @@ function Fn({
3033
3033
  /* @__PURE__ */ t(re, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground" }),
3034
3034
  /* @__PURE__ */ t("span", { className: "font-medium text-foreground", children: F.name }),
3035
3035
  /* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
3036
- /* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: Jt(F) })
3036
+ /* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: Zt(F) })
3037
3037
  ] }) : null,
3038
3038
  /* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto", children: [
3039
3039
  n ? /* @__PURE__ */ t("div", { className: "m-4 rounded-card border border-destructive/30 bg-destructive/10 px-3 py-2 text-[12px] text-destructive", children: n }) : null,
@@ -3065,7 +3065,7 @@ function Fn({
3065
3065
  "a",
3066
3066
  {
3067
3067
  href: V,
3068
- className: J(Zt, "h-6 px-1 text-[11px]"),
3068
+ className: Z(Jt, "h-6 px-1 text-[11px]"),
3069
3069
  children: [
3070
3070
  "Manage all reports & briefings",
3071
3071
  /* @__PURE__ */ t(Mr, { className: "h-3 w-3" })
@@ -3110,7 +3110,7 @@ function En({
3110
3110
  "button",
3111
3111
  {
3112
3112
  onClick: () => e("analytical_briefing"),
3113
- className: Zt,
3113
+ className: Jt,
3114
3114
  children: "Create analytical briefing"
3115
3115
  }
3116
3116
  ) : null
@@ -3307,7 +3307,7 @@ function Tn({
3307
3307
  return /* @__PURE__ */ s(
3308
3308
  "div",
3309
3309
  {
3310
- className: J(
3310
+ className: Z(
3311
3311
  "group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
3312
3312
  c && "opacity-70"
3313
3313
  ),
@@ -3346,13 +3346,13 @@ function Tn({
3346
3346
  l ? /* @__PURE__ */ t(re, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ t(
3347
3347
  "span",
3348
3348
  {
3349
- className: J(
3349
+ className: Z(
3350
3350
  "inline-block h-1.5 w-1.5 shrink-0 rounded-full",
3351
3351
  f
3352
3352
  )
3353
3353
  }
3354
3354
  ),
3355
- /* @__PURE__ */ t("span", { className: "truncate", children: l ? Jt(e) : u })
3355
+ /* @__PURE__ */ t("span", { className: "truncate", children: l ? Zt(e) : u })
3356
3356
  ] }) : null
3357
3357
  ]
3358
3358
  }
@@ -3453,7 +3453,7 @@ const Mn = {
3453
3453
  pauseBriefing: ar,
3454
3454
  resumeBriefing: tr,
3455
3455
  deleteBriefing: er,
3456
- runBriefingNow: Ja
3456
+ runBriefingNow: Za
3457
3457
  };
3458
3458
  function Ds(e) {
3459
3459
  return /* @__PURE__ */ t(Xa, { authToken: e.token ? { accessToken: e.token } : void 0, children: /* @__PURE__ */ t(Ya, { children: /* @__PURE__ */ t(Un, { ...e }) }) });
@@ -3473,7 +3473,7 @@ function Un({
3473
3473
  openRun: m,
3474
3474
  client: p
3475
3475
  }) {
3476
- const { authToken: f, tokenProps: g } = it(), v = Za(), k = !h || v.canCreate && (h === "scheduled_report" || v.analyticalBriefingsEnabled), [V, U] = S(!1), M = c ?? V, A = (y) => {
3476
+ const { authToken: f, tokenProps: g } = it(), v = Ja(), k = !h || v.canCreate && (h === "scheduled_report" || v.analyticalBriefingsEnabled), [V, U] = S(!1), M = c ?? V, A = (y) => {
3477
3477
  c === void 0 && U(y), l == null || l(y);
3478
3478
  }, [O, b] = S(
3479
3479
  h ? "author" : "list"
@@ -3488,12 +3488,12 @@ function Un({
3488
3488
  const y = M && !Me.current;
3489
3489
  Me.current = M, !(!y || !h) && (X(null), N("dashboard"), C(h), b("author"), pe(null));
3490
3490
  }, [M, h]);
3491
- const Ye = yt(), $ = o ?? (g == null ? void 0 : g.apiServiceUrl), W = n ?? (f == null ? void 0 : f.accessToken), ne = te(() => ({ ...Mn, ...p }), [p]), [we, Ze] = S(null);
3491
+ const Ye = yt(), $ = o ?? (g == null ? void 0 : g.apiServiceUrl), W = n ?? (f == null ? void 0 : f.accessToken), ne = te(() => ({ ...Mn, ...p }), [p]), [we, Je] = S(null);
3492
3492
  xe(() => {
3493
3493
  if (!m || !$ || !W) return;
3494
3494
  let y = !0;
3495
3495
  return ne.getBriefing($, W, m.briefingId).then(({ briefing: P }) => {
3496
- y && (X(P), Ze(m), b("author"));
3496
+ y && (X(P), Je(m), b("author"));
3497
3497
  }, (P) => {
3498
3498
  y && E.error(P instanceof Error ? P.message : "Could not open the run.");
3499
3499
  }), () => {
@@ -3512,7 +3512,7 @@ function Un({
3512
3512
  return y.filter(
3513
3513
  (Oe) => le(Oe).noun === P
3514
3514
  );
3515
- }, [e, j, D, h]), Je = te(() => D === "dashboard" ? {
3515
+ }, [e, j, D, h]), Ze = te(() => D === "dashboard" ? {
3516
3516
  source: { type: "dashboard", dashboardId: e },
3517
3517
  label: be,
3518
3518
  detail: Vn(be)
@@ -3524,7 +3524,7 @@ function Un({
3524
3524
  canCreate: v.canCreate,
3525
3525
  analyticalBriefingsEnabled: v.analyticalBriefingsEnabled,
3526
3526
  scheduledReportAvailable: D === "dashboard"
3527
- }), se = Z(async () => {
3527
+ }), se = J(async () => {
3528
3528
  if (!(!$ || !W)) {
3529
3529
  Y(!0), pe(null);
3530
3530
  try {
@@ -3673,7 +3673,7 @@ function Un({
3673
3673
  role: "tab",
3674
3674
  "aria-selected": L === "author",
3675
3675
  disabled: !k,
3676
- className: J(
3676
+ className: Z(
3677
3677
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
3678
3678
  L === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
3679
3679
  !k && "cursor-not-allowed opacity-50"
@@ -3690,7 +3690,7 @@ function Un({
3690
3690
  type: "button",
3691
3691
  role: "tab",
3692
3692
  "aria-selected": L === "list",
3693
- className: J(
3693
+ className: Z(
3694
3694
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
3695
3695
  L === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
3696
3696
  ),
@@ -3754,7 +3754,7 @@ function Un({
3754
3754
  briefing: z,
3755
3755
  initialRunId: we && (z == null ? void 0 : z.id) === we.briefingId ? we.runId : void 0,
3756
3756
  intent: F,
3757
- sourceContext: z ? void 0 : Je,
3757
+ sourceContext: z ? void 0 : Ze,
3758
3758
  title: z ? `Edit ${le(z).noun}` : F === "scheduled_report" ? "Schedule report" : "Create analytical briefing",
3759
3759
  hideHeader: !!h,
3760
3760
  className: "h-full min-h-0 max-w-none border-0 shadow-none",