react-semaphor 0.1.590 → 0.1.591

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 (75) hide show
  1. package/dist/analytics-protocol/index.js +254 -236
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
  6. package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-Cazikwyh.js} +13 -13
  7. package/dist/chunks/{bookmark-impact-DkZABEd3.js → bookmark-impact-rWjQgk8h.js} +2 -2
  8. package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Bt_eQEqt.js} +569 -537
  9. package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DFR-6Jpm.js} +929 -910
  10. package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-CFaw-kIV.js} +6 -6
  11. package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-DCh9hKnJ.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-ob8G1b58.js} +91 -91
  13. package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-Nszg0k1A.js} +64 -64
  14. package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BpwnG23b.js} +4 -4
  15. package/dist/chunks/{dates-BoeweqEo.js → dates-BOLBSBpn.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-BvM7br5P.js} +5501 -5475
  17. package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
  18. package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-By3r7O3G.js} +11 -11
  19. package/dist/chunks/filter-value-text-CFiIZWJP.js +153 -0
  20. package/dist/chunks/{index-D8LFjI8j.js → index-CsQYlwhU.js} +5 -5
  21. package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
  22. package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
  24. package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
  26. package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
  27. package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
  28. package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
  29. package/dist/chunks/{pivot-header-presentation-D-DfPAjb.js → pivot-header-presentation-gUxhdIdr.js} +1 -1
  30. package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-BkMRCjzf.js} +111 -111
  31. package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
  32. package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
  33. package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-ChXt8wCt.js} +13 -13
  34. package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
  35. package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-BlyFX8He.js} +5053 -4955
  36. package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
  37. package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-BPSdH2jW.js} +7 -7
  38. package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
  39. package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-BZUMCHRU.js} +28962 -28917
  40. package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-yJheoeTC.js} +5 -5
  41. package/dist/chunks/{stored-dashboard-KkH4zOhq.js → stored-dashboard-CxQl9g0l.js} +653 -657
  42. package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
  43. package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-h7wm5TwP.js} +1 -1
  44. package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
  45. package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
  46. package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
  47. package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-OpYyaVCW.js} +4 -4
  48. package/dist/dashboard/index.js +2 -2
  49. package/dist/dashboard-authoring/index.js +1602 -1555
  50. package/dist/format-utils/index.js +14 -14
  51. package/dist/index.js +18 -18
  52. package/dist/report-runtime-context/index.js +1 -1
  53. package/dist/style.css +1 -1
  54. package/dist/surfboard/index.js +2 -2
  55. package/dist/types/components/surfboard/filter/types.d.ts +7 -5
  56. package/dist/types/index.js +5 -5
  57. package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
  58. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  59. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
  60. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
  61. package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
  62. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
  63. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
  64. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
  65. package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
  66. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
  67. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
  68. package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
  69. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
  70. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  71. package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
  72. package/package.json +1 -1
  73. package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
  74. package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
  75. package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
@@ -1,12 +1,12 @@
1
- import { aF as Ge, i as qe, k as U, n as Xe, T as $e, aG as ae, aH as Pe, aI as Ye, aJ as Ie, aK as De, am as Le, f as Me, as as We, ax as Ze, at as Je, a as Qe, b as B, a7 as de, a5 as et, an as tt, q as fe, t as rt, Z as pe, $ as nt, a1 as ot, a8 as at, aL as I, aM as K } from "./pivot-result-contract-expectations-DbBahmgc.js";
1
+ import { aF as Ge, i as qe, k as U, n as Xe, T as $e, aG as ae, aH as Pe, aI as Ye, aJ as Ie, aK as De, am as Le, f as Me, as as We, ax as Ze, at as Je, a as Qe, b as B, a7 as de, a5 as et, an as tt, q as fe, t as rt, Z as pe, $ as nt, a1 as ot, a8 as at, aL as I, aM as K } from "./pivot-result-contract-expectations-BkMRCjzf.js";
2
2
  import { h as Y, e as st, p as it, k as lt } from "./export-file-format-C-tJsxsf.js";
3
- import { aU as j, a5 as ct, m as q, aT as ut, r as mt } from "./validators-CrYXNnNE.js";
4
- import "./matrix-operation-contract-JSmproo9.js";
3
+ import { aW as j, a7 as ct, m as q, aV as ut, r as mt } from "./validators-BlEWWX9O.js";
4
+ import "./matrix-operation-contract-CAanJeCj.js";
5
5
  import "./analytics-base-schemas-8wz9vqn_.js";
6
6
  import { readPdfCapacityFacts as dt, PDF_SAFETY_LIMIT_EXCEEDED as se, PDF_CAPACITY as k, PDF_NUMBER_COLUMN_TOO_WIDE as ke, getUtf8ByteLength as ft, FAST_PDF_POLICY as pt, isPdfCapacityRefusalCode as ht } from "../pdf-export-policy/index.js";
7
- import { w as bt, v as yt } from "./raw-temporal-value-BnGCWJAL.js";
8
- import { p as gt } from "./pivot-header-presentation-D-DfPAjb.js";
9
- import { c as wt, b as he } from "./pivot-result-identity-CUsMt_4r.js";
7
+ import { w as bt, v as yt } from "./raw-temporal-value-BzdgeDa7.js";
8
+ import { p as gt } from "./pivot-header-presentation-gUxhdIdr.js";
9
+ import { c as wt, b as he } from "./pivot-result-identity-BKUjYO1u.js";
10
10
  function xt(e, t, r) {
11
11
  const n = {
12
12
  ...t,
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-CXojR95M.js";
2
+ import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-BZUMCHRU.js";
3
3
  function u(e) {
4
4
  if (typeof window > "u")
5
5
  return null;
@@ -1,27 +1,27 @@
1
1
  import { jsx as t, jsxs as r, Fragment as U } from "react/jsx-runtime";
2
2
  import la, { useState as E, useEffect as Ee, useCallback as ie, useMemo as Y, useLayoutEffect as Ut, useRef as et, useContext as Va } from "react";
3
- import { dN as it, bG as Le, bH as Ve, bJ as Be, dO as Ba, b8 as $e, b5 as ot, dP as Pa, dQ as lt, dR as Ct, an as dt, ak as ve, u as w, dS as _a, dT as Oa, bF as z, dU as za, am as oe, b3 as Ra, ca as Ma, dV as Ua, dW as $a, bZ as da, b_ as be, cu as ca, bY as tt, w as ja, q as qa, dX as Wa, cx as wt, cy as St, cz as kt, cA as Dt, cB as At, cC as Ft, cD as Et, cE as ua, cH as It, dY as Qa, du as Ga, cm as pt, cj as je, ck as qe, dG as ha, cl as We, c6 as re, cv as Ka, cq as at, dZ as Ha, c3 as Ya, d_ as ma, bu as ct, bI as Tt, bK as ut, d$ as pa, bE as Xa, e0 as Ja, bv as Za, o as en, cN as tn, e1 as an, W as nn, P as fa, bp as rn, X as sn, G as on, e2 as ln, e3 as dn, e4 as ga, e5 as cn, e6 as un, e7 as Ce, e8 as hn, R as ba, e9 as mn, ea as pn, b0 as fn, eb as gn, ec as ge, ed as bn, aa as Lt, ee as xn, ef as ft, eg as vn, eh as $t, ei as yn, ej as Nn, ek as Cn, el as xa, cY as wn, em as Sn, en as kn, eo as Dn, dA as Vt, cI as va, ep as An, eq as jt, er as Fn, es as En, et as In, eu as Tn, b7 as Ln, bz as Vn, c9 as ya, ev as Bn, ew as Pn, ex as Xe, ey as _n, ez as On, eA as zn, A as Rn, aR as Mn, aS as Un, ax as $n, aw as jn, av as qn, au as Wn, ar as Qn, ap as Gn, eB as Kn, eC as Hn, eD as Yn, eE as Xn, eF as Jn, aP as Zn } from "./semaphor-ready-indicator-CXojR95M.js";
4
- import { c as Ae, B as L, X as Qe, s as Me, x as xe, L as de, q as Bt, j as Pt, p as er, F as _t, e as Ie, a8 as Na, h as Te, f as nt, i as Ca, g as Nt, y as we, z as Se, A as ke, D as De, E as fe, a9 as tr } from "./style-sheet-parts-CmXmKqGw.js";
5
- import { L as Ue } from "./layout-grid-BG__sPkb.js";
3
+ import { dN as it, bG as Le, bH as Ve, bJ as Be, dO as Ba, b8 as $e, b5 as ot, dP as Pa, dQ as lt, dR as Ct, an as dt, ak as ve, u as w, dS as _a, dT as Oa, bF as z, dU as za, am as oe, b3 as Ra, ca as Ma, dV as Ua, dW as $a, bZ as da, b_ as be, cu as ca, bY as tt, w as ja, q as qa, dX as Wa, cx as wt, cy as St, cz as kt, cA as Dt, cB as At, cC as Ft, cD as Et, cE as ua, cH as It, dY as Qa, du as Ka, cm as pt, cj as je, ck as qe, dG as ha, cl as We, c6 as re, cv as Ga, cq as at, dZ as Ha, c3 as Ya, d_ as ma, bu as ct, bI as Tt, bK as ut, d$ as pa, bE as Xa, e0 as Ja, bv as Za, o as en, cN as tn, e1 as an, W as nn, P as fa, bp as rn, X as sn, G as on, e2 as ln, e3 as dn, e4 as ga, e5 as cn, e6 as un, e7 as Ce, e8 as hn, R as ba, e9 as mn, ea as pn, b0 as fn, eb as gn, ec as ge, ed as bn, aa as Lt, ee as xn, ef as ft, eg as vn, eh as $t, ei as yn, ej as Nn, ek as Cn, el as xa, cY as wn, em as Sn, en as kn, eo as Dn, dA as Vt, cI as va, ep as An, eq as jt, er as Fn, es as En, et as In, eu as Tn, b7 as Ln, bz as Vn, c9 as ya, ev as Bn, ew as Pn, ex as Xe, ey as _n, ez as On, eA as zn, A as Rn, aR as Mn, aS as Un, ax as $n, aw as jn, av as qn, au as Wn, ar as Qn, ap as Kn, eB as Gn, eC as Hn, eD as Yn, eE as Xn, eF as Jn, aP as Zn } from "./semaphor-ready-indicator-BZUMCHRU.js";
4
+ import { c as Ae, B as L, X as Qe, s as Me, x as xe, L as de, q as Bt, j as Pt, p as er, F as _t, e as Ie, a8 as Na, h as Te, f as nt, i as Ca, g as Nt, y as we, z as Se, A as ke, D as De, E as fe, a9 as tr } from "./style-sheet-parts-DM_Mw_sm.js";
5
+ import { L as Ue } from "./layout-grid-DoFIfQGd.js";
6
6
  import { c as J } from "./pickers-DkqmtnTL.js";
7
- import { S as ar } from "./validators-CrYXNnNE.js";
8
- import "./matrix-operation-contract-JSmproo9.js";
7
+ import { U as ar } from "./validators-BlEWWX9O.js";
8
+ import "./matrix-operation-contract-CAanJeCj.js";
9
9
  import "./analytics-base-schemas-8wz9vqn_.js";
10
10
  import "../value-format-preferences/index.js";
11
11
  import { s as Je } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
12
- import { bI as qt, be as Wt, eN as Qt, gl as nr, gm as rt, gk as Gt, gn as rr, o as Ge, go as sr, p as ir, gp as or, gq as lr, gr as dr, cG as cr, gs as ur, l as hr, fJ as mr, gt as pr, gu as fr, a as Ot, aO as gr, a4 as br, ck as xr, gv as vr, gw as yr, cv as Nr, gx as Cr, gy as Kt, gz as wr } from "./resolve-dashboard-input-context-NurwNg4I.js";
13
- import { S as wa } from "./save-BhhXfp4s.js";
14
- import { V as Sr, L as kr, u as Sa, C as ka, F as Dr, a as Ar, A as Fr, b as Er } from "./card-filter-builder-6vflbF9O.js";
12
+ import { bK as qt, bg as Wt, eZ as Qt, gx as nr, gy as rt, gw as Kt, gz as rr, o as Ke, gA as sr, p as ir, gB as or, gC as lr, gD as dr, cI as cr, gE as ur, l as hr, fV as mr, gF as pr, gG as fr, a as Ot, aP as gr, a4 as br, cm as xr, gH as vr, gI as yr, cx as Nr, gJ as Cr, gK as Gt, gL as wr } from "./resolve-dashboard-input-context-BlyFX8He.js";
13
+ import { S as wa } from "./save-C9CZAk6V.js";
14
+ import { V as Sr, L as kr, u as Sa, C as ka, F as Dr, a as Ar, A as Fr, b as Er } from "./card-filter-builder-DFR-6Jpm.js";
15
15
  import { createPortal as Ir } from "react-dom";
16
- import { b1 as Ht, aB as Tr } from "./pivot-result-contract-expectations-DbBahmgc.js";
17
- import { aA as Lr, ao as Vr, D as Br, a9 as st, S as Pr } from "./bookmark-state-Bn7k3ttp.js";
16
+ import { b1 as Ht, aB as Tr } from "./pivot-result-contract-expectations-BkMRCjzf.js";
17
+ import { aC as Lr, aq as Vr, D as Br, ab as st, S as Pr } from "./bookmark-state-Bt_eQEqt.js";
18
18
  import "zod";
19
19
  import "./schema-C9NPiIru.js";
20
20
  import "./index-CV_Kzou0.js";
21
21
  import "./context-CVXTFljo.js";
22
- import { v as _r, G as Or } from "./filter-reach-copy-eMhDPTYH.js";
23
- import { a as Yt, d as Xt, c as zr, i as Rr, b as Mr, e as Ur, v as Jt, f as Zt, g as $r } from "./variable-draft-Bi3RlULA.js";
24
- import { g as pe, d as jr, a as qr } from "./index-D8LFjI8j.js";
22
+ import { v as _r, G as Or } from "./filter-reach-copy-By3r7O3G.js";
23
+ import { a as Yt, d as Xt, c as zr, i as Rr, b as Mr, e as Ur, v as Jt, f as Zt, g as $r } from "./variable-draft-OpYyaVCW.js";
24
+ import { g as pe, d as jr, a as qr } from "./index-CsQYlwhU.js";
25
25
  /**
26
26
  * @license lucide-react v0.453.0 - ISC
27
27
  *
@@ -71,7 +71,7 @@ const ta = Ae("MonitorSmartphone", [
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
73
  */
74
- const Gr = Ae("MousePointer2", [
74
+ const Kr = Ae("MousePointer2", [
75
75
  [
76
76
  "path",
77
77
  {
@@ -86,7 +86,7 @@ const Gr = Ae("MousePointer2", [
86
86
  * This source code is licensed under the ISC license.
87
87
  * See the LICENSE file in the root directory of this source tree.
88
88
  */
89
- const Kr = Ae("Newspaper", [
89
+ const Gr = Ae("Newspaper", [
90
90
  [
91
91
  "path",
92
92
  {
@@ -412,7 +412,7 @@ function Pe() {
412
412
  setIsDashboardEditing: O,
413
413
  setIsVisualEditing: b,
414
414
  clearSelectedFrameId: S
415
- } = ve(), v = w((_) => _.selectedSheetId), T = w((_) => _.selectedFrameId), F = w((_) => _.dashboard), K = w(
415
+ } = ve(), v = w((_) => _.selectedSheetId), T = w((_) => _.selectedFrameId), F = w((_) => _.dashboard), G = w(
416
416
  (_) => _.inlineFilterValuesMap
417
417
  ), P = _a((i == null ? void 0 : i.id) || "", {
418
418
  enabled: !!(i != null && i.id) && !!(e != null && e.accessToken)
@@ -447,7 +447,7 @@ function Pe() {
447
447
  dashboard: F,
448
448
  selectedSheetId: v,
449
449
  selectedFrameId: T,
450
- inlineFilterValuesMap: K
450
+ inlineFilterValuesMap: G
451
451
  }))
452
452
  throw new Error("Failed to setup editor with visual data");
453
453
  return { success: !0, fromCache: Z };
@@ -481,7 +481,7 @@ function Pe() {
481
481
  F,
482
482
  v,
483
483
  T,
484
- K
484
+ G
485
485
  ]
486
486
  ), X = ie(
487
487
  async (_) => {
@@ -556,7 +556,7 @@ function as(e, a) {
556
556
  }
557
557
  function ns(e) {
558
558
  const a = (e || "").toLowerCase();
559
- return a.includes("table") ? Bt : a.includes("pie") || a.includes("donut") ? Qa : a.includes("line") ? Ga : a.includes("bar") ? er : Ue;
559
+ return a.includes("table") ? Bt : a.includes("pie") || a.includes("donut") ? Qa : a.includes("line") ? Ka : a.includes("bar") ? er : Ue;
560
560
  }
561
561
  function rs({ visual: e }) {
562
562
  const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
@@ -577,7 +577,7 @@ function ji({
577
577
  }, { selectVisual: O } = Ct(), { handleAddLibraryVisual: b, handleEditLibraryVisual: S } = Pe(), { isConsoleMode: v } = Ma(), {
578
578
  resources: T,
579
579
  isLoading: F,
580
- isError: K,
580
+ isError: G,
581
581
  createResource: P,
582
582
  updateResource: Q,
583
583
  deleteResourceAsync: X,
@@ -621,7 +621,7 @@ function ji({
621
621
  M((q) => {
622
622
  q.has(C) ? q.delete(C) : q.add(C);
623
623
  });
624
- }, G = () => {
624
+ }, K = () => {
625
625
  l((C) => {
626
626
  const q = new Set(C);
627
627
  return ye ? R.forEach(
@@ -648,7 +648,7 @@ function ji({
648
648
  V(C), _(C, {
649
649
  onSettled: () => V(null)
650
650
  });
651
- }, Ke = () => {
651
+ }, Ge = () => {
652
652
  if (ue.length === 0) {
653
653
  z.error("Select a visual you can delete");
654
654
  return;
@@ -763,7 +763,7 @@ function ji({
763
763
  }
764
764
  )
765
765
  ] }),
766
- /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: F ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(Yr, {}) }) : K ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : R.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
766
+ /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: F ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(Yr, {}) }) : G ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : R.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
767
767
  /* @__PURE__ */ t(Ue, { className: "h-5 w-5 text-muted-foreground/60" }),
768
768
  /* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: n ? "No visuals found" : "No visuals yet" }),
769
769
  /* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: n ? "Try a different search." : "Create a saved visual to add it here." })
@@ -774,7 +774,7 @@ function ji({
774
774
  selectedIds: o,
775
775
  allFilteredSelected: ye,
776
776
  someFilteredSelected: x,
777
- onSelectAll: G,
777
+ onSelectAll: K,
778
778
  onToggleSelection: $,
779
779
  onAddVisual: le,
780
780
  onOpenVisual: ht,
@@ -824,7 +824,7 @@ function ji({
824
824
  size: "xs",
825
825
  variant: "outline",
826
826
  className: "text-destructive hover:text-destructive",
827
- onClick: Ke,
827
+ onClick: Ge,
828
828
  disabled: ue.length === 0,
829
829
  children: [
830
830
  /* @__PURE__ */ t(tt, { className: "h-3.5 w-3.5" }),
@@ -1127,7 +1127,7 @@ function os({
1127
1127
  onClick: () => o(e.id),
1128
1128
  disabled: l === e.id,
1129
1129
  children: [
1130
- l === e.id ? /* @__PURE__ */ t(de, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Ka, { className: "h-3.5 w-3.5" }),
1130
+ l === e.id ? /* @__PURE__ */ t(de, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Ga, { className: "h-3.5 w-3.5" }),
1131
1131
  l === e.id ? "Duplicating..." : "Duplicate"
1132
1132
  ]
1133
1133
  }
@@ -1492,7 +1492,7 @@ function us() {
1492
1492
  try {
1493
1493
  const S = {
1494
1494
  ...i,
1495
- id: Gt(),
1495
+ id: Kt(),
1496
1496
  visualId: b.id
1497
1497
  // Link to the newly created library visual
1498
1498
  };
@@ -1542,32 +1542,32 @@ function us() {
1542
1542
  return;
1543
1543
  }
1544
1544
  n(b.saveToCurrentDashboard), o(T), u(F);
1545
- const K = {
1545
+ const G = {
1546
1546
  title: b.name,
1547
1547
  description: b.description,
1548
1548
  frameObject: T,
1549
1549
  // Card title synced for single-card frames
1550
1550
  isPrivate: !1
1551
1551
  };
1552
- D.mutate(K);
1552
+ D.mutate(G);
1553
1553
  } else if (b.saveToCurrentDashboard) {
1554
1554
  const F = {
1555
1555
  ...T,
1556
1556
  // Card title already synced
1557
- id: Gt(),
1557
+ id: Kt(),
1558
1558
  visualId: void 0
1559
1559
  // Explicitly no visualId for local visuals
1560
1560
  };
1561
1561
  try {
1562
- const K = await k(T, {
1562
+ const G = await k(T, {
1563
1563
  previousFrame: rt(m, T.id)
1564
1564
  });
1565
1565
  y(p, F, {
1566
- semanticExecutionPayload: K
1566
+ semanticExecutionPayload: G
1567
1567
  }), z.success("Visual saved to dashboard"), a(!1), N(!1);
1568
- } catch (K) {
1569
- console.error("Failed to save visual to dashboard:", K), z.error(
1570
- K instanceof Error ? K.message : "Failed to prepare semantic metadata for the visual"
1568
+ } catch (G) {
1569
+ console.error("Failed to save visual to dashboard:", G), z.error(
1570
+ G instanceof Error ? G.message : "Failed to prepare semantic metadata for the visual"
1571
1571
  );
1572
1572
  }
1573
1573
  }
@@ -1629,7 +1629,7 @@ function Wi(e = {}) {
1629
1629
  setTimeout(() => {
1630
1630
  p(!1), z.success("Changes applied. Visual is now local to this dashboard"), c(!1);
1631
1631
  }, 300);
1632
- }, K = (P) => {
1632
+ }, G = (P) => {
1633
1633
  f(P), D(!0);
1634
1634
  };
1635
1635
  return /* @__PURE__ */ r(U, { children: [
@@ -1672,7 +1672,7 @@ function Wi(e = {}) {
1672
1672
  /* @__PURE__ */ r(
1673
1673
  re,
1674
1674
  {
1675
- onClick: () => K("local"),
1675
+ onClick: () => G("local"),
1676
1676
  disabled: v,
1677
1677
  children: [
1678
1678
  /* @__PURE__ */ t(be, { className: "h-3.5 w-3.5" }),
@@ -1683,7 +1683,7 @@ function Wi(e = {}) {
1683
1683
  /* @__PURE__ */ r(
1684
1684
  re,
1685
1685
  {
1686
- onClick: () => K("library"),
1686
+ onClick: () => G("library"),
1687
1687
  disabled: v,
1688
1688
  children: [
1689
1689
  /* @__PURE__ */ t(kr, { className: "h-3.5 w-3.5" }),
@@ -1694,7 +1694,7 @@ function Wi(e = {}) {
1694
1694
  /* @__PURE__ */ r(
1695
1695
  re,
1696
1696
  {
1697
- onClick: () => K("both"),
1697
+ onClick: () => G("both"),
1698
1698
  disabled: v,
1699
1699
  children: [
1700
1700
  /* @__PURE__ */ t(tn, { className: "h-3.5 w-3.5" }),
@@ -1728,7 +1728,7 @@ function Qi({ className: e }) {
1728
1728
  const a = oe((h) => h.isDevMode), s = oe((h) => h.card.type), n = w((h) => h.isVisualEditing), { setIsDevMode: i } = dt(), { config: o } = Va(an).tokenProps, l = (o == null ? void 0 : o.showAdvancedMode) !== !1;
1729
1729
  if (!n || !l || !rr(s))
1730
1730
  return null;
1731
- const u = a ? Gr : Qr, c = a ? "Visual editor" : "SQL editor", d = a ? "Switch to visual editor" : "Switch to SQL editor";
1731
+ const u = a ? Kr : Qr, c = a ? "Visual editor" : "SQL editor", d = a ? "Switch to visual editor" : "Switch to SQL editor";
1732
1732
  return /* @__PURE__ */ r(
1733
1733
  "button",
1734
1734
  {
@@ -1747,13 +1747,13 @@ function Qi({ className: e }) {
1747
1747
  }
1748
1748
  );
1749
1749
  }
1750
- function Gi() {
1750
+ function Ki() {
1751
1751
  const e = nn() === "sm", a = w((c) => c.isDashboardEditing), s = w((c) => c.isVisualEditing), n = w((c) => {
1752
1752
  var h;
1753
1753
  const d = ((h = c.dashboard) == null ? void 0 : h.sheets) ?? [];
1754
1754
  return d.find((p) => p.id === c.selectedSheetId) ?? d[0];
1755
1755
  }), i = w((c) => c.actions.arrangeSheet), o = w((c) => c.actions.undoArrange);
1756
- if (!a || s || !n || Ge(n)) return null;
1756
+ if (!a || s || !n || Ke(n)) return null;
1757
1757
  const l = !(n.frames ?? []).length, u = (c) => {
1758
1758
  const d = i(n.id, { keepOrder: c });
1759
1759
  if (!d.ok) {
@@ -1809,11 +1809,11 @@ function Gi() {
1809
1809
  ] })
1810
1810
  ] });
1811
1811
  }
1812
- function Ki() {
1812
+ function Gi() {
1813
1813
  const e = w((i) => i.screenSizesOpen), a = w((i) => {
1814
1814
  var u, c;
1815
1815
  const o = ((u = i.dashboard) == null ? void 0 : u.sheets) ?? [], l = o.find((d) => d.id === i.selectedSheetId) ?? o[0];
1816
- return !!l && !Ge(l) && !!((c = l.frames) != null && c.length);
1816
+ return !!l && !Ke(l) && !!((c = l.frames) != null && c.length);
1817
1817
  }), s = w((i) => i.actions.setScreenSizesOpen), n = fa(
1818
1818
  "screen-sizes",
1819
1819
  "lg",
@@ -2742,7 +2742,7 @@ function eo({
2742
2742
  var O;
2743
2743
  const [l, u] = E(null), c = w((b) => b.dashboard), d = w((b) => b.selectedSheetId), h = w((b) => b.showFilters), p = w((b) => b.actions), { setDocumentPanelTarget: m, setShowFilters: f } = p, g = (O = c.sheets) == null ? void 0 : O.find(
2744
2744
  (b) => b.id === d
2745
- ), y = Ge(g), N = ie((b) => {
2745
+ ), y = Ke(g), N = ie((b) => {
2746
2746
  window.setTimeout(() => {
2747
2747
  u(b);
2748
2748
  }, 0);
@@ -2951,7 +2951,7 @@ function Is(e, a) {
2951
2951
  const s = hr(e);
2952
2952
  return new Set(
2953
2953
  (e.sheets ?? []).map((i) => {
2954
- const o = { sheetId: i.id, cardId: a, sheetKind: Ge(i) ? "document" : "dashboard" };
2954
+ const o = { sheetId: i.id, cardId: a, sheetKind: Ke(i) ? "document" : "dashboard" };
2955
2955
  return s.filter((l) => Br(l, o)).map((l) => l.runtimeScope === "shared" ? l.id : `${l.id}@${i.id}`).join(`
2956
2956
  `);
2957
2957
  })
@@ -3116,7 +3116,7 @@ function Ms({
3116
3116
  ...[e.field, e.sortField].filter(
3117
3117
  (x) => !!x && !B(x) && !V.some((M) => M.id === x.id)
3118
3118
  )
3119
- ], O = ((Z = B(e.field)) == null ? void 0 : Z.id) ?? ((H = e.field) == null ? void 0 : H.id) ?? "", b = ((I = B(e.sortField ?? e.field)) == null ? void 0 : I.id) ?? ((ae = e.sortField ?? e.field) == null ? void 0 : ae.id) ?? "", S = (x) => a({ ...e, ...x }), v = zs(e.dataSource), T = ((j = e.dataSource) == null ? void 0 : j.mode) === "database" ? Bt : jt, F = "mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-muted-foreground underline-offset-2 hover:text-foreground hover:underline", K = {
3119
+ ], O = ((Z = B(e.field)) == null ? void 0 : Z.id) ?? ((H = e.field) == null ? void 0 : H.id) ?? "", b = ((I = B(e.sortField ?? e.field)) == null ? void 0 : I.id) ?? ((ae = e.sortField ?? e.field) == null ? void 0 : ae.id) ?? "", S = (x) => a({ ...e, ...x }), v = zs(e.dataSource), T = ((j = e.dataSource) == null ? void 0 : j.mode) === "database" ? Bt : jt, F = "mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-muted-foreground underline-offset-2 hover:text-foreground hover:underline", G = {
3120
3120
  connectionId: ((R = e.dataSource) == null ? void 0 : R.connectionId) || e.connectionId,
3121
3121
  dataSource: e.dataSource,
3122
3122
  config: e.conditions ? { filters: e.conditions } : {},
@@ -3126,9 +3126,9 @@ function Ms({
3126
3126
  g(!0);
3127
3127
  return;
3128
3128
  }
3129
- const M = D.find((G) => G.id === x);
3129
+ const M = D.find((K) => K.id === x);
3130
3130
  if (!M) return;
3131
- const $ = Yt(M).some((G) => G.value === e.get) && e.field !== void 0;
3131
+ const $ = Yt(M).some((K) => K.value === e.get) && e.field !== void 0;
3132
3132
  S({ field: M, get: $ ? e.get : Xt(M) });
3133
3133
  };
3134
3134
  return h ? /* @__PURE__ */ t(
@@ -3139,7 +3139,7 @@ function Ms({
3139
3139
  onOpenChange: g,
3140
3140
  availableFields: D,
3141
3141
  cardId: e.id,
3142
- source: K,
3142
+ source: G,
3143
3143
  onSave: (x) => {
3144
3144
  const M = { ...x, fieldScope: x.fieldScope ?? "card" };
3145
3145
  S({
@@ -3299,8 +3299,8 @@ function Ms({
3299
3299
  {
3300
3300
  value: `${b}|${e.sortDirection}`,
3301
3301
  onValueChange: (x) => {
3302
- const M = x.lastIndexOf("|"), $ = x.slice(0, M), G = x.slice(M + 1);
3303
- S({ sortField: D.find((le) => le.id === $), sortDirection: G });
3302
+ const M = x.lastIndexOf("|"), $ = x.slice(0, M), K = x.slice(M + 1);
3303
+ S({ sortField: D.find((le) => le.id === $), sortDirection: K });
3304
3304
  },
3305
3305
  children: [
3306
3306
  /* @__PURE__ */ t(Se, { size: "xs", "aria-label": "Order by", children: /* @__PURE__ */ t(ke, {}) }),
@@ -3353,7 +3353,7 @@ function Ms({
3353
3353
  {
3354
3354
  filters: e.conditions ?? null,
3355
3355
  availableFields: D,
3356
- source: K,
3356
+ source: G,
3357
3357
  onChange: (x) => S({ conditions: x })
3358
3358
  },
3359
3359
  JSON.stringify(((ye = e.dataSource) == null ? void 0 : ye.selectedEntities) ?? null)
@@ -3444,7 +3444,7 @@ function Qs({
3444
3444
  variables: [...(n.variables ?? []).filter((I) => I.id !== v.id), v]
3445
3445
  }),
3446
3446
  [n, v]
3447
- ), F = $r(l), K = ct(), P = w((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = E(!1), _ = async () => {
3447
+ ), F = $r(l), G = ct(), P = w((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = E(!1), _ = async () => {
3448
3448
  const I = Jt(l, n);
3449
3449
  X(!0);
3450
3450
  let ae;
@@ -3455,7 +3455,7 @@ function Qs({
3455
3455
  return;
3456
3456
  }
3457
3457
  const [ne] = R.queryFrames;
3458
- ae = ne ? await K(ne, e ? { previousFrame: Cr(n, e) } : void 0) : { domainsById: {} };
3458
+ ae = ne ? await G(ne, e ? { previousFrame: Cr(n, e) } : void 0) : { domainsById: {} };
3459
3459
  } catch (R) {
3460
3460
  X(!1), g([
3461
3461
  {
@@ -3467,7 +3467,7 @@ function Qs({
3467
3467
  return;
3468
3468
  }
3469
3469
  const j = o(
3470
- k ? { kind: "add", variable: I } : { kind: "update", id: I.id, patch: Gs(I) }
3470
+ k ? { kind: "add", variable: I } : { kind: "update", id: I.id, patch: Ks(I) }
3471
3471
  );
3472
3472
  if (X(!1), !j.ok) {
3473
3473
  g(j.issues);
@@ -3543,7 +3543,7 @@ function Qs({
3543
3543
  onCalculatedFieldOpenChange: m
3544
3544
  }
3545
3545
  ) : null,
3546
- c === "filters" ? /* @__PURE__ */ t(Ks, { draft: l, draftDashboard: T }) : null,
3546
+ c === "filters" ? /* @__PURE__ */ t(Gs, { draft: l, draftDashboard: T }) : null,
3547
3547
  c === "display" ? /* @__PURE__ */ t(Xs, { draft: l, onChange: u }) : null
3548
3548
  ] }),
3549
3549
  h ? null : /* @__PURE__ */ r(U, { children: [
@@ -3597,7 +3597,7 @@ function Qs({
3597
3597
  }
3598
3598
  );
3599
3599
  }
3600
- function Gs(e) {
3600
+ function Ks(e) {
3601
3601
  const { id: a, ...s } = e;
3602
3602
  return {
3603
3603
  ...s,
@@ -3607,7 +3607,7 @@ function Gs(e) {
3607
3607
  emptyText: s.emptyText
3608
3608
  };
3609
3609
  }
3610
- function Ks({ draft: e, draftDashboard: a }) {
3610
+ function Gs({ draft: e, draftDashboard: a }) {
3611
3611
  const s = Y(() => br(a), [a]), n = s.inputs.filter(
3612
3612
  (o) => s.reachedVariables({ inputId: o.input.id }).some((l) => l.variableId === e.id)
3613
3613
  ), i = e.mode === "sql" && xr(e.sql);
@@ -3708,7 +3708,7 @@ function Js({
3708
3708
  selectedSheetId: i
3709
3709
  }) {
3710
3710
  var S;
3711
- const o = s.sheets ?? [], l = Y(() => Is(s, a.id), [s, a.id]), [u, c] = E(void 0), d = (l ? u : void 0) ?? i ?? ((S = o[0]) == null ? void 0 : S.id), h = o.find((v) => v.id === d), p = w((v) => d ? v.documentSectionRuntimeBySheetId[d] : void 0), m = !!(h && Ge(h)), f = Y(
3711
+ const o = s.sheets ?? [], l = Y(() => Is(s, a.id), [s, a.id]), [u, c] = E(void 0), d = (l ? u : void 0) ?? i ?? ((S = o[0]) == null ? void 0 : S.id), h = o.find((v) => v.id === d), p = w((v) => d ? v.documentSectionRuntimeBySheetId[d] : void 0), m = !!(h && Ke(h)), f = Y(
3712
3712
  () => d ? m ? p ? { kind: "document", sheetId: d, runtime: p } : void 0 : { kind: "sheet", sheetId: d } : void 0,
3713
3713
  [m, p, d]
3714
3714
  ), g = Y(() => n || !f ? [] : [a], [n, a, f]), N = Tn({
@@ -3763,7 +3763,7 @@ function Zs(e, a, s) {
3763
3763
  ] }), o = (h) => h === void 0 ? "" : h === "beyondCap" ? `more than ${st} match` : `${h} ${h === 1 ? "match" : "matches"}`, l = "filterReach" in a ? a.filterReach : [], u = l.filter((h) => h.status === "applied").length, c = l.length - u, d = l.length ? ` · ${u} ${u === 1 ? "filter" : "filters"} applied${c ? `, ${c} skipped` : ""}` : "";
3764
3764
  switch (a.status) {
3765
3765
  case "answered": {
3766
- const h = Pr(e, Object.keys(a.parts))[0], p = h ? a.parts[h] : void 0, m = p && Kt(p, e.presentation, s) || "(empty)", f = `${o(a.matched)}${d}`.replace(/^ · /, ""), g = wr(e, a, s);
3766
+ const h = Pr(e, Object.keys(a.parts))[0], p = h ? a.parts[h] : void 0, m = p && Gt(p, e.presentation, s) || "(empty)", f = `${o(a.matched)}${d}`.replace(/^ · /, ""), g = wr(e, a, s);
3767
3767
  return g && typeof g == "object" && "unavailable" in g ? { body: n(m), meta: f, unavailable: g.unavailable } : g === "noPrevious" ? { body: n(m), meta: `${f} · Nothing in the period before to compare with.`.replace(/^ · /, "") } : g ? {
3768
3768
  body: /* @__PURE__ */ r(U, { children: [
3769
3769
  n(g.value),
@@ -3778,7 +3778,7 @@ function Zs(e, a, s) {
3778
3778
  } : { body: n(m), meta: f };
3779
3779
  }
3780
3780
  case "listed": {
3781
- const h = a.items.map((m) => Kt(m, e.presentation, s)), p = a.more === "beyondCap" ? " and more" : a.more ? ` and ${a.more} more` : "";
3781
+ const h = a.items.map((m) => Gt(m, e.presentation, s)), p = a.more === "beyondCap" ? " and more" : a.more ? ` and ${a.more} more` : "";
3782
3782
  return { body: n(`${h.join(e.get.kind === "list" ? e.get.separator ?? ", " : ", ")}${p}`), meta: `${o(a.matched)}${d}` };
3783
3783
  }
3784
3784
  case "none":
@@ -3849,7 +3849,7 @@ function ei({
3849
3849
  onClick: n,
3850
3850
  "aria-label": "Reports & briefings",
3851
3851
  children: [
3852
- /* @__PURE__ */ t(Kr, { className: "h-3.5 w-3.5" }),
3852
+ /* @__PURE__ */ t(Gr, { className: "h-3.5 w-3.5" }),
3853
3853
  "Reports & briefings",
3854
3854
  i ? /* @__PURE__ */ t("span", { className: "ml-0.5 rounded-control bg-muted px-1 text-[10px] tabular-nums text-foreground/70", children: a }) : null
3855
3855
  ]
@@ -4464,7 +4464,7 @@ async function fi(e) {
4464
4464
  return s;
4465
4465
  }
4466
4466
  const gi = {
4467
- listBriefings: Gn,
4467
+ listBriefings: Kn,
4468
4468
  getBriefing: Qn,
4469
4469
  pauseBriefing: Wn,
4470
4470
  resumeBriefing: qn,
@@ -4495,7 +4495,7 @@ function bi({
4495
4495
  h ? "author" : "list"
4496
4496
  ), [S, v] = E(
4497
4497
  h ?? "analytical_briefing"
4498
- ), [T, F] = E("dashboard"), [K, P] = E(
4498
+ ), [T, F] = E("dashboard"), [G, P] = E(
4499
4499
  []
4500
4500
  ), [Q, X] = E(null), _ = h && !N && !Q ? "list" : O, [te, Z] = E(!1), [H, I] = E(null), [ae, j] = E(null), [R, ne] = E(
4501
4501
  null
@@ -4504,21 +4504,21 @@ function bi({
4504
4504
  const A = B && !x.current;
4505
4505
  x.current = B, !(!A || !h) && (X(null), F("dashboard"), v(h), b("author"), he(null));
4506
4506
  }, [B, h]);
4507
- const M = Lt(), $ = s ?? (g == null ? void 0 : g.apiServiceUrl), G = n ?? (f == null ? void 0 : f.accessToken), le = Y(() => ({ ...gi, ...m }), [m]), [_e, ht] = E(null);
4507
+ const M = Lt(), $ = s ?? (g == null ? void 0 : g.apiServiceUrl), K = n ?? (f == null ? void 0 : f.accessToken), le = Y(() => ({ ...gi, ...m }), [m]), [_e, ht] = E(null);
4508
4508
  Ee(() => {
4509
- if (!p || !$ || !G) return;
4509
+ if (!p || !$ || !K) return;
4510
4510
  let A = !0;
4511
- return le.getBriefing($, G, p.briefingId).then(({ briefing: W }) => {
4511
+ return le.getBriefing($, K, p.briefingId).then(({ briefing: W }) => {
4512
4512
  A && (X(W), ht(p), b("author"));
4513
4513
  }, (W) => {
4514
4514
  A && z.error(W instanceof Error ? W.message : "Could not open the run.");
4515
4515
  }), () => {
4516
4516
  A = !1;
4517
4517
  };
4518
- }, [p, $, G, le]);
4519
- const Fe = hi(a), Ke = Y(() => {
4518
+ }, [p, $, K, le]);
4519
+ const Fe = hi(a), Ge = Y(() => {
4520
4520
  const A = pi(
4521
- K,
4521
+ G,
4522
4522
  T,
4523
4523
  e
4524
4524
  );
@@ -4528,7 +4528,7 @@ function bi({
4528
4528
  return A.filter(
4529
4529
  (He) => pe(He).noun === W
4530
4530
  );
4531
- }, [e, K, T, h]), mt = Y(() => T === "dashboard" ? {
4531
+ }, [e, G, T, h]), mt = Y(() => T === "dashboard" ? {
4532
4532
  source: { type: "dashboard", dashboardId: e },
4533
4533
  label: Fe,
4534
4534
  detail: mi(Fe)
@@ -4536,19 +4536,19 @@ function bi({
4536
4536
  source: { type: "project" },
4537
4537
  label: "This project",
4538
4538
  detail: "Use any data in this project."
4539
- }, [e, Fe, T]), Oe = !!($ && G), ze = qr({
4539
+ }, [e, Fe, T]), Oe = !!($ && K), ze = qr({
4540
4540
  canCreate: y.canCreate,
4541
4541
  analyticalBriefingsEnabled: y.analyticalBriefingsEnabled,
4542
4542
  scheduledReportAvailable: T === "dashboard"
4543
4543
  }), ce = ie(async () => {
4544
- if (!(!$ || !G)) {
4544
+ if (!(!$ || !K)) {
4545
4545
  Z(!0), he(null);
4546
4546
  try {
4547
4547
  P(
4548
4548
  await fi({
4549
4549
  apiClient: le,
4550
4550
  apiServiceUrl: $,
4551
- token: G
4551
+ token: K
4552
4552
  })
4553
4553
  );
4554
4554
  } catch (A) {
@@ -4559,7 +4559,7 @@ function bi({
4559
4559
  Z(!1);
4560
4560
  }
4561
4561
  }
4562
- }, [le, $, G]);
4562
+ }, [le, $, K]);
4563
4563
  Ee(() => {
4564
4564
  !B || _ !== "list" || !Oe || ce();
4565
4565
  }, [Oe, _, ce, B]);
@@ -4568,12 +4568,12 @@ function bi({
4568
4568
  }, C = (A) => {
4569
4569
  X(null), v(A), b("author");
4570
4570
  }, q = async (A) => {
4571
- if (!(!$ || !G)) {
4571
+ if (!(!$ || !K)) {
4572
4572
  I(A), he(null);
4573
4573
  try {
4574
4574
  const W = await le.getBriefing(
4575
4575
  $,
4576
- G,
4576
+ K,
4577
4577
  A
4578
4578
  );
4579
4579
  X(W.briefing), b("author");
@@ -4586,12 +4586,12 @@ function bi({
4586
4586
  }
4587
4587
  }
4588
4588
  }, ee = async (A) => {
4589
- if (!(!$ || !G)) {
4589
+ if (!(!$ || !K)) {
4590
4590
  j(A.id);
4591
4591
  try {
4592
4592
  const W = await le.runBriefingNow(
4593
4593
  $,
4594
- G,
4594
+ K,
4595
4595
  A.id,
4596
4596
  { requestId: xi() }
4597
4597
  );
@@ -4605,17 +4605,17 @@ function bi({
4605
4605
  }
4606
4606
  }
4607
4607
  }, me = async (A) => {
4608
- if (!$ || !G) return;
4608
+ if (!$ || !K) return;
4609
4609
  const { noun: W } = pe(A), He = W === "report" ? "Report" : "Briefing";
4610
4610
  j(A.id);
4611
4611
  try {
4612
4612
  const Ye = A.status === "PAUSED" ? await le.resumeBriefing(
4613
4613
  $,
4614
- G,
4614
+ K,
4615
4615
  A.id
4616
4616
  ) : await le.pauseBriefing(
4617
4617
  $,
4618
- G,
4618
+ K,
4619
4619
  A.id
4620
4620
  );
4621
4621
  z.success(
@@ -4629,13 +4629,13 @@ function bi({
4629
4629
  j(null);
4630
4630
  }
4631
4631
  }, Ne = async () => {
4632
- if (!R || !$ || !G) return;
4632
+ if (!R || !$ || !K) return;
4633
4633
  const A = R;
4634
4634
  j(A.id);
4635
4635
  try {
4636
4636
  await le.deleteBriefing(
4637
4637
  $,
4638
- G,
4638
+ K,
4639
4639
  A.id
4640
4640
  );
4641
4641
  const { noun: W } = pe(A);
@@ -4647,8 +4647,8 @@ function bi({
4647
4647
  } finally {
4648
4648
  j(null);
4649
4649
  }
4650
- }, La = Ke.length;
4651
- return y.surfaceVisible ? /* @__PURE__ */ r(Kn, { open: B, onOpenChange: D, children: [
4650
+ }, La = Ge.length;
4651
+ return y.surfaceVisible ? /* @__PURE__ */ r(Gn, { open: B, onOpenChange: D, children: [
4652
4652
  d ? null : /* @__PURE__ */ t(
4653
4653
  ei,
4654
4654
  {
@@ -4731,7 +4731,7 @@ function bi({
4731
4731
  _ === "list" ? /* @__PURE__ */ t(
4732
4732
  li,
4733
4733
  {
4734
- briefings: Ke,
4734
+ briefings: Ge,
4735
4735
  dashboardLabel: Fe,
4736
4736
  sourceView: T,
4737
4737
  error: ue,
@@ -4766,7 +4766,7 @@ function bi({
4766
4766
  Zn,
4767
4767
  {
4768
4768
  apiServiceUrl: $,
4769
- token: G,
4769
+ token: K,
4770
4770
  briefing: Q,
4771
4771
  initialRunId: _e && (Q == null ? void 0 : Q.id) === _e.briefingId ? _e.runId : void 0,
4772
4772
  intent: S,
@@ -4840,12 +4840,12 @@ function xi() {
4840
4840
  export {
4841
4841
  Qi as A,
4842
4842
  Hi as D,
4843
- Ki as S,
4843
+ Gi as S,
4844
4844
  Xi as U,
4845
4845
  ji as V,
4846
4846
  ei as W,
4847
4847
  Wi as a,
4848
- Gi as b,
4848
+ Ki as b,
4849
4849
  Yi as c,
4850
4850
  Zi as d,
4851
4851
  fs as e,