react-semaphor 0.1.579 → 0.1.580

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 (38) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/assistant-protocol/index.js +52 -50
  3. package/dist/briefings/index.js +1 -1
  4. package/dist/chunks/add-to-dashboard-DhP8wVtM.js +291 -0
  5. package/dist/chunks/{assistant-chat-DBuKmREJ.js → assistant-chat-CUwGURJj.js} +2261 -2184
  6. package/dist/chunks/{bookmark-impact-MH4Dr-Ya.js → bookmark-impact-BNyR-yDX.js} +1 -1
  7. package/dist/chunks/{card-filter-builder-B9vtXVIZ.js → card-filter-builder-k9yqDSw8.js} +168 -180
  8. package/dist/chunks/{comparison-window-caption-PtcDWvkN.js → comparison-window-caption-DdLqMgiG.js} +180 -183
  9. package/dist/chunks/{dashboard-C4fyqxvV.js → dashboard-DvcAk8uJ.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-A9CLFv0s.js → dashboard-briefing-launcher-DBgS97ZH.js} +154 -154
  11. package/dist/chunks/{dashboard-controls-oKDW-835.js → dashboard-controls-BiZ1rlNC.js} +7 -7
  12. package/dist/chunks/{dashboard-json-Bej2NBkS.js → dashboard-json-B25xzYcJ.js} +1 -1
  13. package/dist/chunks/{dates-BhL-mimk.js → dates-3Pah03_l.js} +4 -4
  14. package/dist/chunks/{edit-dashboard-visual-BFsCY2GP.js → edit-dashboard-visual-DYuO3mEU.js} +8 -9
  15. package/dist/chunks/{filter-reach-copy-Xus3MfSo.js → filter-reach-copy-CzLt96tq.js} +124 -124
  16. package/dist/chunks/{index-CwlaI-UP.js → index-BMZq6JT6.js} +1 -1
  17. package/dist/chunks/{report-preferences-dialog-CcekIvkV.js → report-preferences-dialog-DpAetrdY.js} +7 -7
  18. package/dist/chunks/{resolve-dashboard-input-context-DoZHMivF.js → resolve-dashboard-input-context-CNxtkCzj.js} +6265 -6190
  19. package/dist/chunks/{saved-dashboard-context-LiDPCJ3r.js → saved-dashboard-context-Bnt0H7mi.js} +2 -2
  20. package/dist/chunks/{semaphor-ready-indicator-cAOfbBuc.js → semaphor-ready-indicator-Dwmvmf0S.js} +15009 -14989
  21. package/dist/chunks/{shelf-drop-preview-context-CwoYR7v1.js → shelf-drop-preview-context-CiveteBS.js} +2 -2
  22. package/dist/chunks/{stored-dashboard-CjnPEWO-.js → stored-dashboard-D3gu-D7A.js} +66 -66
  23. package/dist/chunks/{table-export-sheet-CP8zSOhj.js → table-export-sheet-BNGSJA2N.js} +1 -1
  24. package/dist/chunks/{variable-draft-T4EOBvcu.js → variable-draft-C3_RL2gI.js} +2 -2
  25. package/dist/dashboard/index.js +1 -1
  26. package/dist/dashboard-authoring/index.js +356 -349
  27. package/dist/format-utils/index.js +4 -4
  28. package/dist/index.js +11 -11
  29. package/dist/style.css +1 -1
  30. package/dist/surfboard/index.js +1 -1
  31. package/dist/types/shared/assistant-protocol/model-change.d.ts +23 -3
  32. package/dist/types/shared/assistant-protocol/parts.d.ts +10 -1
  33. package/dist/types/shared/dashboard-authoring/changes/aggregates.d.ts +2 -0
  34. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +9 -58
  35. package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +1738 -0
  36. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/dist/chunks/add-to-dashboard-DQFuDA5R.js +0 -271
@@ -1,17 +1,17 @@
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 { dI as it, bD as Le, bE as Ve, bG as Be, dJ as Ba, b1 as $e, a_ as ot, dK as Pa, dL as lt, dM as Ct, ag as dt, ad as ve, u as w, dN as _a, dO as Oa, bC as M, dP as Ma, af as oe, aY as za, c6 as Ra, dQ as Ua, dR as $a, bw as da, bW as be, cq as ca, bV as tt, n as ja, j as qa, dS as Wa, ct as wt, cu as St, cv as kt, cw as Dt, cx as At, cy as Ft, cz as Et, cA as ua, cD as It, dT as Qa, dp as Ka, ci as pt, cf as je, cg as qe, dB as ha, ch as We, c2 as re, cr as Ha, cm as at, dU as Ga, b$ as Ya, dV as ma, bn as ct, bF as Tt, bH as ut, dW as pa, bB as Xa, dX as Ja, bo as Za, h as en, dY as tn, J as an, H as fa, bi as nn, K as rn, r as sn, dZ as on, d_ as ln, d$ as ga, e0 as dn, e1 as cn, e2 as Ce, e3 as un, R as ba, e4 as hn, e5 as mn, aV as pn, e6 as fn, e7 as ge, e8 as gn, a3 as Lt, e9 as bn, ea as ft, eb as xn, ec as $t, ed as vn, ee as yn, ef as Nn, eg as xa, cT as Cn, eh as wn, ei as Sn, dv as Vt, cE as va, ej as kn, ek as jt, el as Dn, em as An, en as Fn, eo as En, b0 as In, bx as Tn, c5 as ya, ep as Ln, eq as Vn, er as Xe, es as Bn, et as Pn, eu as _n, A as On, aK as Mn, aL as zn, aq as Rn, ap as Un, ao as $n, an as jn, ak as qn, ai as Wn, ev as Qn, ew as Kn, ex as Hn, ey as Gn, ez as Yn, aI as Xn } from "./semaphor-ready-indicator-cAOfbBuc.js";
4
- import { c as we, B as L, X as Qe, s as Re, x as xe, L as de, q as Bt, j as Pt, p as Jn, F as _t, e as Ie, aa as Na, h as Te, f as nt, i as Ca, g as Nt, y as Se, z as ke, A as De, D as Ae, E as fe, ab as Zn } from "./style-sheet-parts-C7qGZuH1.js";
3
+ import { dJ as it, bD as Le, bE as Ve, bG as Be, dK as Ba, b1 as $e, a_ as ot, dL as _a, dM as lt, dN as Ct, ag as dt, ad as ve, u as w, dO as Pa, dP as Oa, bC as M, dQ as Ma, af as oe, aY as za, c6 as Ra, dR as Ua, dS as $a, bw as da, bW as be, cq as ca, bV as tt, n as ja, j as qa, dT as Wa, ct as wt, cu as St, cv as kt, cw as Dt, cx as At, cy as Ft, cz as Et, cA as ua, cD as It, dU as Qa, dq as Ka, ci as pt, cf as je, cg as qe, dC as ha, ch as We, c2 as re, cr as Ha, cm as at, dV as Ga, b$ as Ya, dW as ma, bn as ct, bF as Tt, bH as ut, dX as pa, bB as Xa, dY as Ja, bo as Za, h as en, cJ as tn, dZ as an, J as nn, H as fa, bi as rn, K as sn, r as on, d_ as ln, d$ as dn, e0 as ga, e1 as cn, e2 as un, e3 as Ce, e4 as hn, R as ba, e5 as mn, e6 as pn, aV as fn, e7 as gn, e8 as ge, e9 as bn, a3 as Lt, ea as xn, eb as ft, ec as vn, ed as $t, ee as yn, ef as Nn, eg as Cn, eh as xa, cU as wn, ei as Sn, ej as kn, dw as Vt, cE as va, ek as Dn, el as jt, em as An, en as Fn, eo as En, ep as In, b0 as Tn, bx as Ln, c5 as ya, eq as Vn, er as Bn, es as Xe, et as _n, eu as Pn, ev as On, A as Mn, aK as zn, aL as Rn, aq as Un, ap as $n, ao as jn, an as qn, ak as Wn, ai as Qn, ew as Kn, ex as Hn, ey as Gn, ez as Yn, eA as Xn, aI as Jn } from "./semaphor-ready-indicator-Dwmvmf0S.js";
4
+ import { c as we, B as L, X as Qe, s as Re, x as xe, L as de, q as Bt, j as _t, p as Zn, F as Pt, e as Ie, aa as Na, h as Te, f as nt, i as Ca, g as Nt, y as Se, z as ke, A as De, D as Ae, E as fe, ab as er } from "./style-sheet-parts-C7qGZuH1.js";
5
5
  import { L as Ue } from "./layout-grid-8rR-LPTk.js";
6
6
  import { c as J } from "./pickers-DkqmtnTL.js";
7
- import { S as er } from "./validators-B8fpdinG.js";
7
+ import { S as tr } from "./validators-B8fpdinG.js";
8
8
  import "./matrix-operation-contract-DCVinw1o.js";
9
9
  import "./analytics-base-schemas-BaIQrEzX.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 { bF as qt, bb as Wt, eo as Qt, gN as tr, gO as rt, fM as Kt, gP as ar, o as Ke, gQ as nr, p as rr, gf as sr, gR as ir, gS as or, ct as lr, gT as dr, l as cr, f9 as ur, gU as hr, gV as mr, a as Ot, aN as pr, a4 as fr, c7 as gr, gW as br, gX as xr, ci as vr, gY as yr, gZ as Ht, g_ as Nr } from "./resolve-dashboard-input-context-DoZHMivF.js";
12
+ import { bF as qt, bb as Wt, ev as Qt, gU as ar, gV as rt, fT as Kt, gW as nr, o as Ke, gX as rr, p as sr, gm as ir, gY as or, gZ as lr, ct as dr, g_ as cr, l as ur, fg as hr, g$ as mr, h0 as pr, a as Ot, aN as fr, a4 as gr, c7 as br, h1 as xr, h2 as vr, ci as yr, h3 as Nr, h4 as Ht, h5 as Cr } from "./resolve-dashboard-input-context-CNxtkCzj.js";
13
13
  import { S as wa } from "./save-D985VvYp.js";
14
- import { V as Cr, L as wr, a as Sr, u as Sa, C as ka, F as kr, b as Dr, A as Ar, c as Fr } from "./card-filter-builder-B9vtXVIZ.js";
14
+ import { V as wr, L as Sr, u as Sa, C as ka, F as kr, a as Dr, A as Ar, b as Fr } from "./card-filter-builder-k9yqDSw8.js";
15
15
  import { createPortal as Er } from "react-dom";
16
16
  import { aV as Gt, ar as Ir } from "./temporal-input-presentation-CqbJjIuu.js";
17
17
  import { aA as Tr, ao as Lr, D as Vr, a9 as st, S as Br } from "./bookmark-state-BEl_G9vr.js";
@@ -19,9 +19,9 @@ import "zod";
19
19
  import "./schema-C9NPiIru.js";
20
20
  import "./index-CV_Kzou0.js";
21
21
  import "./context-BTLBjQNh.js";
22
- import { v as Pr, F as _r } from "./filter-reach-copy-Xus3MfSo.js";
23
- import { a as Yt, d as Xt, c as Or, i as Mr, b as zr, e as Rr, v as Jt, f as Zt, g as Ur } from "./variable-draft-T4EOBvcu.js";
24
- import { g as pe, d as $r, a as jr } from "./index-CwlaI-UP.js";
22
+ import { v as _r, F as Pr } from "./filter-reach-copy-CzLt96tq.js";
23
+ import { a as Yt, d as Xt, c as Or, i as Mr, b as zr, e as Rr, v as Jt, f as Zt, g as Ur } from "./variable-draft-C3_RL2gI.js";
24
+ import { g as pe, d as $r, a as jr } from "./index-BMZq6JT6.js";
25
25
  /**
26
26
  * @license lucide-react v0.453.0 - ISC
27
27
  *
@@ -393,7 +393,7 @@ function ts() {
393
393
  stripConfig: Wt
394
394
  }), f = n.cards.map((k) => {
395
395
  if (k.id === i.id) return Qt({ before: i, after: m });
396
- const V = tr(k) ? qt(k, { isDevMode: !0, cardSql: k.sql, stripConfig: Wt }) : k;
396
+ const V = ar(k) ? qt(k, { isDevMode: !0, cardSql: k.sql, stripConfig: Wt }) : k;
397
397
  return Qt({ before: k, after: V });
398
398
  }), g = f.flatMap((k) => k.dropped);
399
399
  g.length && M.info("Some conditional formatting rules were removed", {
@@ -407,8 +407,8 @@ function ts() {
407
407
  };
408
408
  }, [a]) };
409
409
  }
410
- function Pe() {
411
- const { authToken: e, tokenProps: a } = $e(), s = ot(), n = Pa(), i = lt(), { selectVisual: o } = Ct(), {
410
+ function _e() {
411
+ const { authToken: e, tokenProps: a } = $e(), s = ot(), n = _a(), i = lt(), { selectVisual: o } = Ct(), {
412
412
  setFrame: l,
413
413
  loadCard: u,
414
414
  setIsDevMode: c,
@@ -428,18 +428,18 @@ function Pe() {
428
428
  setIsDashboardEditing: O,
429
429
  setIsVisualEditing: b,
430
430
  clearSelectedFrameId: S
431
- } = ve(), v = w((_) => _.selectedSheetId), T = w((_) => _.selectedFrameId), F = w((_) => _.dashboard), H = w(
432
- (_) => _.inlineFilterValuesMap
433
- ), P = _a((i == null ? void 0 : i.id) || "", {
431
+ } = ve(), v = w((P) => P.selectedSheetId), T = w((P) => P.selectedFrameId), F = w((P) => P.dashboard), H = w(
432
+ (P) => P.inlineFilterValuesMap
433
+ ), _ = Pa((i == null ? void 0 : i.id) || "", {
434
434
  enabled: !!(i != null && i.id) && !!(e != null && e.accessToken)
435
435
  }), Q = ie(
436
- async (_) => {
436
+ async (P) => {
437
437
  try {
438
- o(_), S(), D();
438
+ o(P), S(), D();
439
439
  const { data: te, fromCache: Z } = await aa(
440
440
  a.apiServiceUrl,
441
441
  (e == null ? void 0 : e.accessToken) || "",
442
- _.id,
442
+ P.id,
443
443
  s,
444
444
  "Opening library visual..."
445
445
  );
@@ -500,16 +500,16 @@ function Pe() {
500
500
  H
501
501
  ]
502
502
  ), X = ie(
503
- async (_) => {
503
+ async (P) => {
504
504
  var Z;
505
505
  const te = (G) => (M.error(G), { success: !1, error: G });
506
506
  try {
507
- if (o(_), !v)
507
+ if (o(P), !v)
508
508
  return te("No sheet selected. Please select a sheet first.");
509
509
  const { data: G, fromCache: I } = await aa(
510
510
  a.apiServiceUrl,
511
511
  (e == null ? void 0 : e.accessToken) || "",
512
- _.id,
512
+ P.id,
513
513
  s,
514
514
  "Adding visual to dashboard..."
515
515
  ), ae = (G == null ? void 0 : G.frameObject) ?? ((Z = G == null ? void 0 : G.visual) == null ? void 0 : Z.frameObject);
@@ -520,7 +520,7 @@ function Pe() {
520
520
  return te("Visual frame is malformed");
521
521
  const z = {
522
522
  ...Oa(j),
523
- visualId: _.id
523
+ visualId: P.id
524
524
  // Link this frame to the library visual
525
525
  };
526
526
  return await n(v, z), O(!0), { success: !0, fromCache: I };
@@ -541,14 +541,14 @@ function Pe() {
541
541
  ]
542
542
  );
543
543
  return {
544
- visual: P.data,
545
- isLoading: P.isLoading,
546
- isError: P.isError,
547
- error: P.error,
544
+ visual: _.data,
545
+ isLoading: _.isLoading,
546
+ isError: _.isError,
547
+ error: _.error,
548
548
  handleEditLibraryVisual: Q,
549
549
  handleAddLibraryVisual: X,
550
550
  getUpdatedFrame: ts().getUpdatedFrame,
551
- refetch: P.refetch
551
+ refetch: _.refetch
552
552
  };
553
553
  }
554
554
  function Aa(e) {
@@ -572,7 +572,7 @@ function as(e, a) {
572
572
  }
573
573
  function ns(e) {
574
574
  const a = (e || "").toLowerCase();
575
- return a.includes("table") ? Bt : a.includes("pie") || a.includes("donut") ? Qa : a.includes("line") ? Ka : a.includes("bar") ? Jn : Ue;
575
+ return a.includes("table") ? Bt : a.includes("pie") || a.includes("donut") ? Qa : a.includes("line") ? Ka : a.includes("bar") ? Zn : Ue;
576
576
  }
577
577
  function rs({ visual: e }) {
578
578
  const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
@@ -590,14 +590,14 @@ function ji({
590
590
  l(/* @__PURE__ */ new Set()), h(null), m(null), g(!1), N(null);
591
591
  }, D = () => {
592
592
  a(!1), B();
593
- }, { selectVisual: O } = Ct(), { handleAddLibraryVisual: b, handleEditLibraryVisual: S } = Pe(), { isConsoleMode: v } = Ra(), {
593
+ }, { selectVisual: O } = Ct(), { handleAddLibraryVisual: b, handleEditLibraryVisual: S } = _e(), { isConsoleMode: v } = Ra(), {
594
594
  resources: T,
595
595
  isLoading: F,
596
596
  isError: H,
597
- createResource: P,
597
+ createResource: _,
598
598
  updateResource: Q,
599
599
  deleteResourceAsync: X,
600
- duplicateResource: _,
600
+ duplicateResource: P,
601
601
  isCreating: te,
602
602
  isDeleting: Z
603
603
  } = Ua(
@@ -648,7 +648,7 @@ function ji({
648
648
  });
649
649
  }, le = async (C) => {
650
650
  (await b(C)).success && D();
651
- }, _e = async () => {
651
+ }, Pe = async () => {
652
652
  const C = ne;
653
653
  if (C.length === 0) return;
654
654
  let q = !1;
@@ -661,7 +661,7 @@ function ji({
661
661
  }, ht = (C) => {
662
662
  S(C), D();
663
663
  }, Fe = (C) => {
664
- V(C), _(C, {
664
+ V(C), P(C, {
665
665
  onSettled: () => V(null)
666
666
  });
667
667
  }, He = () => {
@@ -864,10 +864,10 @@ function ji({
864
864
  L,
865
865
  {
866
866
  size: "xs",
867
- onClick: _e,
867
+ onClick: Pe,
868
868
  disabled: o.size === 0,
869
869
  children: [
870
- /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
870
+ /* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" }),
871
871
  o.size === 0 ? "Add to dashboard" : `Add ${o.size} visual${o.size === 1 ? "" : "s"}`
872
872
  ]
873
873
  }
@@ -882,7 +882,7 @@ function ji({
882
882
  {
883
883
  open: u,
884
884
  onOpenChange: c,
885
- onSubmit: P,
885
+ onSubmit: _,
886
886
  isCreating: te
887
887
  }
888
888
  ),
@@ -1232,7 +1232,7 @@ function qi(e, a, s = !1) {
1232
1232
  function zt(e) {
1233
1233
  var a;
1234
1234
  for (const s of e.cards)
1235
- if (s.type === "matrixTable" && !er.safeParse((a = s.config) == null ? void 0 : a.matrix).success)
1235
+ if (s.type === "matrixTable" && !tr.safeParse((a = s.config) == null ? void 0 : a.matrix).success)
1236
1236
  return M.error("Matrix requires at least one row field, one metric, and valid settings."), !1;
1237
1237
  return !0;
1238
1238
  }
@@ -1240,7 +1240,7 @@ function gt({
1240
1240
  className: e,
1241
1241
  variant: a = "outline"
1242
1242
  }) {
1243
- const s = oe((o) => o.onSave), { getUpdatedFrame: n } = Pe();
1243
+ const s = oe((o) => o.onSave), { getUpdatedFrame: n } = _e();
1244
1244
  function i() {
1245
1245
  const o = n();
1246
1246
  zt(o) && (s == null || s(o));
@@ -1253,7 +1253,7 @@ function gt({
1253
1253
  size: "xs",
1254
1254
  variant: a,
1255
1255
  children: [
1256
- /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
1256
+ /* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" }),
1257
1257
  "Done"
1258
1258
  ]
1259
1259
  }
@@ -1263,7 +1263,7 @@ function ls({
1263
1263
  className: e,
1264
1264
  variant: a = "default"
1265
1265
  }) {
1266
- const s = ot(), [n, i] = E(!1), { setIsVisualEditing: o } = ve(), { getUpdatedFrame: l } = Pe(), u = lt(), c = oe((p) => p.frame), d = ma();
1266
+ const s = ot(), [n, i] = E(!1), { setIsVisualEditing: o } = ve(), { getUpdatedFrame: l } = _e(), u = lt(), c = oe((p) => p.frame), d = ma();
1267
1267
  return /* @__PURE__ */ t(
1268
1268
  L,
1269
1269
  {
@@ -1312,7 +1312,7 @@ function ls({
1312
1312
  function ds({
1313
1313
  className: e
1314
1314
  }) {
1315
- const a = ot(), [s, n] = E(!1), i = lt(), o = oe((g) => g.frame), l = w((g) => g.selectedSheetId), u = w((g) => g.dashboard), { updateFrame: c, setIsVisualEditing: d } = ve(), { getUpdatedFrame: h } = Pe(), p = ma(), m = ct();
1315
+ const a = ot(), [s, n] = E(!1), i = lt(), o = oe((g) => g.frame), l = w((g) => g.selectedSheetId), u = w((g) => g.dashboard), { updateFrame: c, setIsVisualEditing: d } = ve(), { getUpdatedFrame: h } = _e(), p = ma(), m = ct();
1316
1316
  return /* @__PURE__ */ t(
1317
1317
  L,
1318
1318
  {
@@ -1443,7 +1443,7 @@ function cs({
1443
1443
  /* @__PURE__ */ r(Be, { className: "flex items-center gap-2", children: [
1444
1444
  /* @__PURE__ */ t("span", { children: "Save Visual As" }),
1445
1445
  m.badgeType !== "local" && /* @__PURE__ */ t(
1446
- Cr,
1446
+ wr,
1447
1447
  {
1448
1448
  type: m.badgeType,
1449
1449
  showLabel: !0,
@@ -1500,7 +1500,7 @@ function cs({
1500
1500
  ] }) });
1501
1501
  }
1502
1502
  function us() {
1503
- const [e, a] = E(!1), [s, n] = E(!1), [i, o] = E(null), [l, u] = E(null), c = oe((b) => b.frame), d = oe((b) => b.card), h = lt(), p = w((b) => b.selectedSheetId), m = w((b) => b.dashboard), { getUpdatedFrame: f } = Pe(), { selectVisual: g } = Ct(), { addFrame: y, setIsVisualEditing: N } = ve(), k = ct(), V = !!(c != null && c.visualId), B = (() => {
1503
+ const [e, a] = E(!1), [s, n] = E(!1), [i, o] = E(null), [l, u] = E(null), c = oe((b) => b.frame), d = oe((b) => b.card), h = lt(), p = w((b) => b.selectedSheetId), m = w((b) => b.dashboard), { getUpdatedFrame: f } = _e(), { selectVisual: g } = Ct(), { addFrame: y, setIsVisualEditing: N } = ve(), k = ct(), V = !!(c != null && c.visualId), B = (() => {
1504
1504
  var b, S;
1505
1505
  return ((b = c == null ? void 0 : c.cards) == null ? void 0 : b.length) === 1 && ((S = c.cards[0]) != null && S.title) ? c.cards[0].title : h != null && h.title ? h.title : (d == null ? void 0 : d.title) || "Untitled Visual";
1506
1506
  })(), D = Ja((b) => {
@@ -1548,12 +1548,12 @@ function us() {
1548
1548
  F = await k(T, {
1549
1549
  previousFrame: rt(m, T.id)
1550
1550
  });
1551
- } catch (P) {
1551
+ } catch (_) {
1552
1552
  console.error(
1553
1553
  "Failed to prepare semantic metadata before saving visual:",
1554
- P
1554
+ _
1555
1555
  ), M.error(
1556
- P instanceof Error ? P.message : "Failed to prepare semantic metadata for the saved visual"
1556
+ _ instanceof Error ? _.message : "Failed to prepare semantic metadata for the saved visual"
1557
1557
  );
1558
1558
  return;
1559
1559
  }
@@ -1594,14 +1594,14 @@ function us() {
1594
1594
  };
1595
1595
  }
1596
1596
  function Wi(e = {}) {
1597
- const { isInspectionMode: a } = Za(), s = oe((P) => P.frame), n = oe((P) => P.editorContext), i = en((P) => P.selectedVisual), o = w((P) => P.selectedFrameId), l = w((P) => P.selectedSheetId), u = w((P) => P.dashboard), { setIsVisualEditing: c, updateFrame: d } = ve(), [h, p] = E(!1), [m, f] = E("both"), g = ct(), y = (n == null ? void 0 : n.type) === "documentSection", N = !!(s != null && s.visualId || i != null && i.id), k = !!(s != null && s.visualId && o), V = N && !k, {
1597
+ const { isInspectionMode: a } = Za(), s = oe((_) => _.frame), n = oe((_) => _.editorContext), i = en((_) => _.selectedVisual), o = w((_) => _.selectedFrameId), l = w((_) => _.selectedSheetId), u = w((_) => _.dashboard), { setIsVisualEditing: c, updateFrame: d } = ve(), [h, p] = E(!1), [m, f] = E("both"), g = ct(), y = (n == null ? void 0 : n.type) === "documentSection", N = !!(s != null && s.visualId || i != null && i.id), k = !!(s != null && s.visualId && o), V = N && !k, {
1598
1598
  saveAsDialogOpen: B,
1599
1599
  setSaveAsDialogOpen: D,
1600
1600
  handleSaveAs: O,
1601
1601
  isLibraryVisual: b,
1602
1602
  currentVisualName: S,
1603
1603
  isSaving: v
1604
- } = us(), { getUpdatedFrame: T } = Pe();
1604
+ } = us(), { getUpdatedFrame: T } = _e();
1605
1605
  if (a)
1606
1606
  return /* @__PURE__ */ r(U, { children: [
1607
1607
  /* @__PURE__ */ t(
@@ -1630,23 +1630,23 @@ function Wi(e = {}) {
1630
1630
  visualId: void 0
1631
1631
  }, X = rt(u, Q.id);
1632
1632
  try {
1633
- const _ = await g(Q, {
1633
+ const P = await g(Q, {
1634
1634
  previousFrame: X
1635
1635
  });
1636
1636
  d(l, Q, {
1637
- semanticExecutionPayload: _
1637
+ semanticExecutionPayload: P
1638
1638
  });
1639
- } catch (_) {
1640
- console.error("Failed to apply local semantic metadata:", _), p(!1), M.error(
1641
- _ instanceof Error ? _.message : "Failed to prepare semantic metadata for this visual"
1639
+ } catch (P) {
1640
+ console.error("Failed to apply local semantic metadata:", P), p(!1), M.error(
1641
+ P instanceof Error ? P.message : "Failed to prepare semantic metadata for this visual"
1642
1642
  );
1643
1643
  return;
1644
1644
  }
1645
1645
  setTimeout(() => {
1646
1646
  p(!1), M.success("Changes applied. Visual is now local to this dashboard"), c(!1);
1647
1647
  }, 300);
1648
- }, H = (P) => {
1649
- f(P), D(!0);
1648
+ }, H = (_) => {
1649
+ f(_), D(!0);
1650
1650
  };
1651
1651
  return /* @__PURE__ */ r(U, { children: [
1652
1652
  /* @__PURE__ */ r("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
@@ -1662,7 +1662,7 @@ function Wi(e = {}) {
1662
1662
  className: "w-7 !rounded-none border-l border-primary-foreground/20 px-0",
1663
1663
  "aria-label": "Open visual save options",
1664
1664
  disabled: v || h,
1665
- children: /* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" })
1665
+ children: /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" })
1666
1666
  }
1667
1667
  ) }),
1668
1668
  /* @__PURE__ */ r(
@@ -1678,7 +1678,7 @@ function Wi(e = {}) {
1678
1678
  onClick: F,
1679
1679
  disabled: h,
1680
1680
  children: [
1681
- /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
1681
+ /* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" }),
1682
1682
  h ? "Applying..." : "Apply Locally"
1683
1683
  ]
1684
1684
  }
@@ -1702,7 +1702,7 @@ function Wi(e = {}) {
1702
1702
  onClick: () => H("library"),
1703
1703
  disabled: v,
1704
1704
  children: [
1705
- /* @__PURE__ */ t(wr, { className: "h-3.5 w-3.5" }),
1705
+ /* @__PURE__ */ t(Sr, { className: "h-3.5 w-3.5" }),
1706
1706
  "Save as Library Visual"
1707
1707
  ]
1708
1708
  }
@@ -1713,7 +1713,7 @@ function Wi(e = {}) {
1713
1713
  onClick: () => H("both"),
1714
1714
  disabled: v,
1715
1715
  children: [
1716
- /* @__PURE__ */ t(Sr, { className: "h-3.5 w-3.5" }),
1716
+ /* @__PURE__ */ t(tn, { className: "h-3.5 w-3.5" }),
1717
1717
  "Save Copy as Linked Visual"
1718
1718
  ]
1719
1719
  }
@@ -1728,8 +1728,8 @@ function Wi(e = {}) {
1728
1728
  cs,
1729
1729
  {
1730
1730
  open: B,
1731
- onOpenChange: (P) => {
1732
- v || D(P);
1731
+ onOpenChange: (_) => {
1732
+ v || D(_);
1733
1733
  },
1734
1734
  isLibraryVisual: b,
1735
1735
  currentVisualName: S,
@@ -1741,8 +1741,8 @@ function Wi(e = {}) {
1741
1741
  ] });
1742
1742
  }
1743
1743
  function Qi({ className: e }) {
1744
- const a = oe((h) => h.isDevMode), s = oe((h) => h.card.type), n = w((h) => h.isVisualEditing), { setIsDevMode: i } = dt(), { config: o } = Va(tn).tokenProps, l = (o == null ? void 0 : o.showAdvancedMode) !== !1;
1745
- if (!n || !l || !ar(s))
1744
+ 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;
1745
+ if (!n || !l || !nr(s))
1746
1746
  return null;
1747
1747
  const u = a ? Kr : Qr, c = a ? "Visual editor" : "SQL editor", d = a ? "Switch to visual editor" : "Switch to SQL editor";
1748
1748
  return /* @__PURE__ */ r(
@@ -1764,7 +1764,7 @@ function Qi({ className: e }) {
1764
1764
  );
1765
1765
  }
1766
1766
  function Ki() {
1767
- const e = an() === "sm", a = w((c) => c.isDashboardEditing), s = w((c) => c.isVisualEditing), n = w((c) => {
1767
+ const e = nn() === "sm", a = w((c) => c.isDashboardEditing), s = w((c) => c.isVisualEditing), n = w((c) => {
1768
1768
  var h;
1769
1769
  const d = ((h = c.dashboard) == null ? void 0 : h.sheets) ?? [];
1770
1770
  return d.find((p) => p.id === c.selectedSheetId) ?? d[0];
@@ -1815,7 +1815,7 @@ function Ki() {
1815
1815
  disabled: l,
1816
1816
  className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
1817
1817
  "aria-label": "Open arrange options",
1818
- children: /* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" })
1818
+ children: /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" })
1819
1819
  }
1820
1820
  ) }),
1821
1821
  /* @__PURE__ */ t(We, { align: "end", className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm", children: /* @__PURE__ */ r(re, { onClick: () => u(!0), children: [
@@ -1858,7 +1858,7 @@ function Hi() {
1858
1858
  }
1859
1859
  function Gi({ dashboardId: e }) {
1860
1860
  const { openDashboardId: a, access: s, printMode: n, serverIsFavorite: i, fetchedAt: o } = w(
1861
- nn((c) => {
1861
+ rn((c) => {
1862
1862
  var d;
1863
1863
  return {
1864
1864
  openDashboardId: (d = c.dashboard) == null ? void 0 : d.id,
@@ -1868,9 +1868,9 @@ function Gi({ dashboardId: e }) {
1868
1868
  fetchedAt: c.viewer.fetchedAt
1869
1869
  };
1870
1870
  })
1871
- ), l = rn(), u = l.isFavorite(e, i, o);
1871
+ ), l = sn(), u = l.isFavorite(e, i, o);
1872
1872
  return a !== e || n || s === "session-only" ? null : /* @__PURE__ */ t(
1873
- sn,
1873
+ on,
1874
1874
  {
1875
1875
  variant: "toolbar",
1876
1876
  isFavorite: u,
@@ -1882,7 +1882,7 @@ function Gi({ dashboardId: e }) {
1882
1882
  }
1883
1883
  function Yi(e) {
1884
1884
  var c;
1885
- const { authToken: a, tokenProps: s } = $e(), { data: n } = on(), { mutate: i, isPending: o } = ln(), l = !!e && ((c = n == null ? void 0 : n.preference) == null ? void 0 : c.defaultDashboardId) === e, u = !n || o;
1885
+ const { authToken: a, tokenProps: s } = $e(), { data: n } = ln(), { mutate: i, isPending: o } = dn(), l = !!e && ((c = n == null ? void 0 : n.preference) == null ? void 0 : c.defaultDashboardId) === e, u = !n || o;
1886
1886
  return {
1887
1887
  available: !!e && !!(a != null && a.accessToken) && !!(s != null && s.apiServiceUrl),
1888
1888
  isDefault: l,
@@ -1956,10 +1956,10 @@ function hs(e) {
1956
1956
  status: a.status,
1957
1957
  startedAt: a.startedAt,
1958
1958
  finishedAt: a.finishedAt,
1959
- running: fn(a.stage),
1959
+ running: gn(a.stage),
1960
1960
  finishedDetail: [
1961
1961
  a.totalRows !== null ? `${a.totalRows.toLocaleString("en-US")} rows` : null,
1962
- a.fileSize ? pn(a.fileSize) : null
1962
+ a.fileSize ? fn(a.fileSize) : null
1963
1963
  ].filter((n) => !!n),
1964
1964
  failure: ((s = a.failure) == null ? void 0 : s.kind) === "export" ? a.failure.message : a.status === "failed" ? Ce.failedFallback : null,
1965
1965
  note: null
@@ -1975,10 +1975,10 @@ function hs(e) {
1975
1975
  };
1976
1976
  }
1977
1977
  function na({ row: e, now: a, api: s }) {
1978
- const [n, i] = E("idle"), o = cn(e, s), l = async () => {
1978
+ const [n, i] = E("idle"), o = un(e, s), l = async () => {
1979
1979
  if (!o) return;
1980
1980
  i("working");
1981
- const u = await gn(s, e, o);
1981
+ const u = await bn(s, e, o);
1982
1982
  i(u === "done" ? "idle" : u);
1983
1983
  };
1984
1984
  return /* @__PURE__ */ t(
@@ -2003,7 +2003,7 @@ function ms({ work: e, now: a }) {
2003
2003
  status: "running",
2004
2004
  startedAt: e.startedAt,
2005
2005
  finishedAt: null,
2006
- running: dn(e),
2006
+ running: cn(e),
2007
2007
  finishedDetail: [],
2008
2008
  failure: null,
2009
2009
  note: null
@@ -2024,7 +2024,7 @@ function Ea({
2024
2024
  working: i,
2025
2025
  problem: o
2026
2026
  }) {
2027
- const l = e.status === "ready" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "cancelled" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", u = e.status === "ready" ? Ce.ready : e.status === "failed" ? Ce.failed : e.status === "cancelled" ? Ce.cancelled : Ce.inProgress, c = Date.parse(e.startedAt), d = Gt(Date.parse(e.finishedAt ?? e.startedAt), a, { addSuffix: !0 }), h = e.status === "running" && s && a - c >= un, p = /* @__PURE__ */ t("span", { className: "text-muted-foreground/50", children: "·" });
2027
+ const l = e.status === "ready" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "cancelled" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", u = e.status === "ready" ? Ce.ready : e.status === "failed" ? Ce.failed : e.status === "cancelled" ? Ce.cancelled : Ce.inProgress, c = Date.parse(e.startedAt), d = Gt(Date.parse(e.finishedAt ?? e.startedAt), a, { addSuffix: !0 }), h = e.status === "running" && s && a - c >= hn, p = /* @__PURE__ */ t("span", { className: "text-muted-foreground/50", children: "·" });
2028
2028
  return /* @__PURE__ */ r("div", { className: "group flex items-start gap-2.5 px-3 py-2 transition-colors hover:bg-muted/40 focus-within:bg-muted/40", children: [
2029
2029
  /* @__PURE__ */ t("span", { className: "flex h-5 shrink-0 items-center", "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: `h-1.5 w-1.5 rounded-full ${l}` }) }),
2030
2030
  /* @__PURE__ */ t("span", { className: "sr-only", children: u }),
@@ -2054,7 +2054,7 @@ function Ea({
2054
2054
  p,
2055
2055
  " ",
2056
2056
  /* @__PURE__ */ t("span", { children: Ce.started(Gt(c, a)) }),
2057
- e.running.percent !== void 0 && /* @__PURE__ */ t(hn, { value: e.running.percent, className: "mt-1.5 h-1" }),
2057
+ e.running.percent !== void 0 && /* @__PURE__ */ t(mn, { value: e.running.percent, className: "mt-1.5 h-1" }),
2058
2058
  h && /* @__PURE__ */ t("div", { className: "mt-1", children: Ce.longRunning })
2059
2059
  ] }),
2060
2060
  e.status !== "running" && /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5 text-[12px] leading-4 text-muted-foreground", children: [
@@ -2075,7 +2075,7 @@ function Ea({
2075
2075
  ] }),
2076
2076
  e.note && /* @__PURE__ */ t("div", { className: "text-[12px] leading-4 text-muted-foreground", children: e.note }),
2077
2077
  e.status === "failed" && e.failure && /* @__PURE__ */ t("div", { className: "mt-1 whitespace-pre-wrap break-words text-[12px] leading-4 text-destructive", children: e.failure }),
2078
- o && /* @__PURE__ */ t(mn, { problem: o, className: "mt-1" })
2078
+ o && /* @__PURE__ */ t(pn, { problem: o, className: "mt-1" })
2079
2079
  ] })
2080
2080
  ] });
2081
2081
  }
@@ -2138,12 +2138,12 @@ function Zi({ variant: e }) {
2138
2138
  ] });
2139
2139
  }
2140
2140
  function ra() {
2141
- const e = Lt(), a = bn(), { rows: s, browserRows: n, activeTruncated: i } = e.snapshot, o = s.some((d) => ft(d.item.status)), l = [
2141
+ const e = Lt(), a = xn(), { rows: s, browserRows: n, activeTruncated: i } = e.snapshot, o = s.some((d) => ft(d.item.status)), l = [
2142
2142
  ...s.filter((d) => !ft(d.item.status)).map((d) => ({ startedAt: d.item.startedAt, row: d })),
2143
2143
  ...n.map((d) => ({ startedAt: d.startedAt, work: d }))
2144
2144
  ].sort((d, h) => h.startedAt.localeCompare(d.startedAt)), u = s.filter((d) => ft(d.item.status)), c = s.length + n.length;
2145
2145
  return c === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-1.5 px-6 py-8 text-center", children: [
2146
- /* @__PURE__ */ t("span", { className: "flex h-8 w-8 items-center justify-center rounded-[6px] border border-border text-muted-foreground", children: /* @__PURE__ */ t(xn, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }) }),
2146
+ /* @__PURE__ */ t("span", { className: "flex h-8 w-8 items-center justify-center rounded-[6px] border border-border text-muted-foreground", children: /* @__PURE__ */ t(vn, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }) }),
2147
2147
  /* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: ge.title }),
2148
2148
  /* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: ge.empty })
2149
2149
  ] }) : /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
@@ -2216,7 +2216,7 @@ function fs({
2216
2216
  // create and make consumers use `forceClose()` from a dedicated
2217
2217
  // button.
2218
2218
  dismissMode: n ? "passive" : "explicit-only"
2219
- }), m = w((v) => v.dashboard), { setDashboardControlsModel: f } = ve(), { participants: g } = vn(Tr(m)), y = Array.from(
2219
+ }), m = w((v) => v.dashboard), { setDashboardControlsModel: f } = ve(), { participants: g } = yn(Tr(m)), y = Array.from(
2220
2220
  new Map(
2221
2221
  g.flatMap(
2222
2222
  (v) => v.fieldChoices.map((T) => {
@@ -2246,10 +2246,10 @@ function fs({
2246
2246
  })
2247
2247
  )
2248
2248
  ).values()
2249
- ), k = nr({
2249
+ ), k = rr({
2250
2250
  ...m || {},
2251
2251
  controls: []
2252
- }), V = yn(m), B = (v, T, F) => {
2252
+ }), V = Nn(m), B = (v, T, F) => {
2253
2253
  f(
2254
2254
  v,
2255
2255
  T,
@@ -2268,7 +2268,7 @@ function fs({
2268
2268
  controls: m.controls || [],
2269
2269
  reservedControlIds: k,
2270
2270
  defaultValues: m.defaultControlValues || {},
2271
- usageByControlId: Nn(m),
2271
+ usageByControlId: Cn(m),
2272
2272
  availableFieldChoices: y,
2273
2273
  availableMetricChoices: N,
2274
2274
  structuralParticipants: g,
@@ -2358,7 +2358,7 @@ function bs({
2358
2358
  }), h = w((v) => v.dashboard), p = w((v) => v.selectedSheetId), { setDashboardInputs: m } = ve(), f = (S = h.sheets) == null ? void 0 : S.find(
2359
2359
  (v) => v.id === p
2360
2360
  ), g = (f == null ? void 0 : f.kind) === "document" && !!f.document, y = Y(
2361
- () => g && (f != null && f.document) ? rr(h, f.id) : [],
2361
+ () => g && (f != null && f.document) ? sr(h, f.id) : [],
2362
2362
  [h, g, f == null ? void 0 : f.document, f == null ? void 0 : f.id]
2363
2363
  ), N = Y(
2364
2364
  () => y.filter(
@@ -2483,7 +2483,7 @@ function Ns({
2483
2483
  if (!g)
2484
2484
  continue;
2485
2485
  c.add(g.id);
2486
- const y = sr(
2486
+ const y = ir(
2487
2487
  e,
2488
2488
  { name: g.id },
2489
2489
  { exclude: { source: "input", inputId: f.id }, alsoTaken: d }
@@ -2498,7 +2498,7 @@ function Ns({
2498
2498
  }
2499
2499
  for (const f of l.values())
2500
2500
  c.has(f.id) || d.push(
2501
- ir({
2501
+ or({
2502
2502
  control: f,
2503
2503
  dashboard: e,
2504
2504
  alsoTaken: d,
@@ -2578,7 +2578,7 @@ function Cs({
2578
2578
  u
2579
2579
  ),
2580
2580
  "aria-label": "Filter and control actions",
2581
- children: /* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" })
2581
+ children: /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" })
2582
2582
  }
2583
2583
  ) }),
2584
2584
  /* @__PURE__ */ t(
@@ -2622,16 +2622,16 @@ function Ss() {
2622
2622
  (c) => c.semanticExecutionPayload
2623
2623
  ), s = w(
2624
2624
  (c) => c.actions.addFilterInput
2625
- ), { hasEntities: n } = ws(), { isLoading: i } = Cn(), o = Y(
2626
- () => or(e, a),
2625
+ ), { hasEntities: n } = ws(), { isLoading: i } = wn(), o = Y(
2626
+ () => lr(e, a),
2627
2627
  [e, a]
2628
- ), u = !lr(e) && o.hasEligibleCards && !i;
2628
+ ), u = !dr(e) && o.hasEligibleCards && !i;
2629
2629
  return /* @__PURE__ */ r("div", { className: "flex h-[520px] w-[400px] flex-col", children: [
2630
2630
  u && /* @__PURE__ */ t("div", { className: "border-b border-border/60 p-2", children: /* @__PURE__ */ r(
2631
2631
  "button",
2632
2632
  {
2633
2633
  type: "button",
2634
- onClick: () => s(dr(), {
2634
+ onClick: () => s(cr(), {
2635
2635
  kind: "allSheets",
2636
2636
  sheetKinds: ["dashboard"]
2637
2637
  }),
@@ -2647,11 +2647,11 @@ function Ss() {
2647
2647
  }
2648
2648
  ) }),
2649
2649
  !n && /* @__PURE__ */ r("div", { className: "flex flex-1 flex-col items-center justify-center px-6 py-8 text-center", children: [
2650
- /* @__PURE__ */ t(wn, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
2650
+ /* @__PURE__ */ t(Sn, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
2651
2651
  /* @__PURE__ */ t("h3", { className: "mb-1 text-[13px] font-medium text-foreground", children: "No fields configured" }),
2652
2652
  /* @__PURE__ */ t("p", { className: "text-[11px] text-muted-foreground", children: "Configure a data source for this card to enable filtering." })
2653
2653
  ] }),
2654
- n && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(Sn, { context: "filter" }) })
2654
+ n && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(kn, { context: "filter" }) })
2655
2655
  ] });
2656
2656
  }
2657
2657
  function ks({
@@ -2837,7 +2837,7 @@ function As(e, a) {
2837
2837
  const n = Lr(e, s.id);
2838
2838
  return {
2839
2839
  variable: s,
2840
- question: Pr(s),
2840
+ question: _r(s),
2841
2841
  places: n,
2842
2842
  usedHere: !!a && n.some((i) => i.sheetId === a)
2843
2843
  };
@@ -2964,7 +2964,7 @@ function ao() {
2964
2964
  ] });
2965
2965
  }
2966
2966
  function Is(e, a) {
2967
- const s = cr(e);
2967
+ const s = ur(e);
2968
2968
  return new Set(
2969
2969
  (e.sheets ?? []).map((i) => {
2970
2970
  const o = { sheetId: i.id, cardId: a, sheetKind: Ke(i) ? "document" : "dashboard" };
@@ -2981,10 +2981,10 @@ function vt(e) {
2981
2981
  }
2982
2982
  function Ls(e) {
2983
2983
  const a = e == null ? void 0 : e.type;
2984
- return a === "dataset" || a === "model" || hr.includes(a);
2984
+ return a === "dataset" || a === "model" || mr.includes(a);
2985
2985
  }
2986
2986
  function Vs(e, a) {
2987
- return _r(
2987
+ return Pr(
2988
2988
  e.map((s, n) => {
2989
2989
  var i, o;
2990
2990
  return {
@@ -3023,10 +3023,10 @@ function Bs(e) {
3023
3023
  };
3024
3024
  },
3025
3025
  [l]
3026
- ), { fields: d, isLoading: h, error: p } = kn({
3026
+ ), { fields: d, isLoading: h, error: p } = Dn({
3027
3027
  queries: l.map((m) => ({
3028
3028
  queryKey: ["columns", i, m, (e == null ? void 0 : e.semanticDomainId) ?? null],
3029
- queryFn: () => ur(
3029
+ queryFn: () => hr(
3030
3030
  `${a.apiServiceUrl}/v1/columns`,
3031
3031
  (s == null ? void 0 : s.accessToken) || "",
3032
3032
  m.type === "model" ? vt({
@@ -3057,13 +3057,13 @@ function Bs(e) {
3057
3057
  });
3058
3058
  return { fields: d, isLoading: h, error: p };
3059
3059
  }
3060
- function Ps(e) {
3060
+ function _s(e) {
3061
3061
  var s;
3062
3062
  const a = ((s = e.comparison) == null ? void 0 : s.mode) === "explicit" ? e.comparison.spec : void 0;
3063
3063
  return a && a.kind !== "target" ? { mode: "period", spec: a } : { mode: "off" };
3064
3064
  }
3065
- function _s(e) {
3066
- return e.mode === "period" ? pr(e.spec) : void 0;
3065
+ function Ps(e) {
3066
+ return e.mode === "period" ? fr(e.spec) : void 0;
3067
3067
  }
3068
3068
  const Rt = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", Os = {
3069
3069
  connectionId: "",
@@ -3124,8 +3124,8 @@ function Rs({
3124
3124
  handle: s,
3125
3125
  onCalculatedFieldOpenChange: n
3126
3126
  }) {
3127
- var _, te, Z, G, I, ae, j, z, ne, ue, he, ye;
3128
- const { tokenProps: i } = $e(), o = ((_ = i.config) == null ? void 0 : _.showAdvancedMode) !== !1, l = ((te = i.config) == null ? void 0 : te.showDirectSource) !== !1, { connections: u } = va(), [c, d] = E(!1), [h, p] = E(!1), [m, f] = E(!1), g = (x) => {
3127
+ var P, te, Z, G, I, ae, j, z, ne, ue, he, ye;
3128
+ const { tokenProps: i } = $e(), o = ((P = i.config) == null ? void 0 : P.showAdvancedMode) !== !1, l = ((te = i.config) == null ? void 0 : te.showDirectSource) !== !1, { connections: u } = va(), [c, d] = E(!1), [h, p] = E(!1), [m, f] = E(!1), g = (x) => {
3129
3129
  p(x), n == null || n(x);
3130
3130
  }, { fields: y, isLoading: N, error: k } = Bs(e.mode === "data" ? e.dataSource : void 0), V = [...e.calculatedFields ?? [], ...y], B = (x) => x && (V.find((R) => R.id === x.id) ?? V.find((R) => Us(R, x))), D = [
3131
3131
  ...V,
@@ -3137,7 +3137,7 @@ function Rs({
3137
3137
  dataSource: e.dataSource,
3138
3138
  config: e.conditions ? { filters: e.conditions } : {},
3139
3139
  cardType: "text"
3140
- }, P = Yt(e.field), Q = (ne = P.find((x) => x.value === e.get)) == null ? void 0 : ne.hint, X = (x) => {
3140
+ }, _ = Yt(e.field), Q = (ne = _.find((x) => x.value === e.get)) == null ? void 0 : ne.hint, X = (x) => {
3141
3141
  if (x === oa) {
3142
3142
  g(!0);
3143
3143
  return;
@@ -3148,7 +3148,7 @@ function Rs({
3148
3148
  S({ field: R, get: $ ? e.get : Xt(R) });
3149
3149
  };
3150
3150
  return h ? /* @__PURE__ */ t(
3151
- Dn,
3151
+ An,
3152
3152
  {
3153
3153
  inline: !0,
3154
3154
  open: !0,
@@ -3273,7 +3273,7 @@ function Rs({
3273
3273
  /* @__PURE__ */ t("span", { children: x.label || x.name }),
3274
3274
  /* @__PURE__ */ t("span", { className: "text-muted-foreground", children: zs(x.dataType) })
3275
3275
  ] }) }, x.id)),
3276
- /* @__PURE__ */ t(Zn, {}),
3276
+ /* @__PURE__ */ t(er, {}),
3277
3277
  /* @__PURE__ */ t(fe, { value: oa, children: /* @__PURE__ */ r("span", { className: "flex items-center gap-1.5", children: [
3278
3278
  /* @__PURE__ */ t(be, { className: "h-3 w-3", "aria-hidden": !0 }),
3279
3279
  " New calculated field…"
@@ -3288,7 +3288,7 @@ function Rs({
3288
3288
  disabled: !e.field,
3289
3289
  children: [
3290
3290
  /* @__PURE__ */ t(ke, { size: "xs", "aria-label": "Get", children: /* @__PURE__ */ t(De, {}) }),
3291
- /* @__PURE__ */ t(Ae, { children: P.map((x) => /* @__PURE__ */ t(fe, { value: x.value, children: x.label }, x.value)) })
3291
+ /* @__PURE__ */ t(Ae, { children: _.map((x) => /* @__PURE__ */ t(fe, { value: x.value, children: x.label }, x.value)) })
3292
3292
  ]
3293
3293
  }
3294
3294
  ) }),
@@ -3300,11 +3300,11 @@ function Rs({
3300
3300
  label: "Compare with",
3301
3301
  className: "col-span-2",
3302
3302
  children: /* @__PURE__ */ t(
3303
- An,
3303
+ Fn,
3304
3304
  {
3305
3305
  controlLabel: "Variable",
3306
- selection: Ps(e),
3307
- onChange: (x) => S({ comparison: _s(x) })
3306
+ selection: _s(e),
3307
+ onChange: (x) => S({ comparison: Ps(x) })
3308
3308
  }
3309
3309
  )
3310
3310
  }
@@ -3352,7 +3352,7 @@ function Rs({
3352
3352
  {
3353
3353
  size: "xs",
3354
3354
  value: e.listSeparator ?? ", ",
3355
- maxLength: mr,
3355
+ maxLength: pr,
3356
3356
  onChange: (x) => S({ listSeparator: x.target.value }),
3357
3357
  className: "font-mono",
3358
3358
  "aria-label": "Separator"
@@ -3460,18 +3460,18 @@ function Qs({
3460
3460
  variables: [...(n.variables ?? []).filter((I) => I.id !== v.id), v]
3461
3461
  }),
3462
3462
  [n, v]
3463
- ), F = Ur(l), H = ct(), P = w((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = E(!1), _ = async () => {
3463
+ ), F = Ur(l), H = ct(), _ = w((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = E(!1), P = async () => {
3464
3464
  const I = Jt(l, n);
3465
3465
  X(!0);
3466
3466
  let ae;
3467
3467
  try {
3468
- const z = vr(n, e ? { kind: "update", id: e.id, patch: I } : { kind: "add", variable: I });
3468
+ const z = yr(n, e ? { kind: "update", id: e.id, patch: I } : { kind: "add", variable: I });
3469
3469
  if (!z.ok) {
3470
3470
  X(!1), g(z.issues);
3471
3471
  return;
3472
3472
  }
3473
3473
  const [ne] = z.queryFrames;
3474
- ae = ne ? await H(ne, e ? { previousFrame: yr(n, e) } : void 0) : { domainsById: {} };
3474
+ ae = ne ? await H(ne, e ? { previousFrame: Nr(n, e) } : void 0) : { domainsById: {} };
3475
3475
  } catch (z) {
3476
3476
  X(!1), g([
3477
3477
  {
@@ -3489,7 +3489,7 @@ function Qs({
3489
3489
  g(j.issues);
3490
3490
  return;
3491
3491
  }
3492
- P(ae), a();
3492
+ _(ae), a();
3493
3493
  }, te = (I) => {
3494
3494
  if (!e) return;
3495
3495
  const ae = o({ kind: "remove", id: e.id, confirmed: I });
@@ -3605,7 +3605,7 @@ function Qs({
3605
3605
  ),
3606
3606
  /* @__PURE__ */ r("span", { className: "flex items-center gap-1.5", children: [
3607
3607
  /* @__PURE__ */ t(L, { variant: "outline", size: "xs", onClick: a, children: "Cancel" }),
3608
- /* @__PURE__ */ t(L, { size: "xs", disabled: !!F || Q, title: F, onClick: () => void _(), children: k ? "Create" : "Done" })
3608
+ /* @__PURE__ */ t(L, { size: "xs", disabled: !!F || Q, title: F, onClick: () => void P(), children: k ? "Create" : "Done" })
3609
3609
  ] })
3610
3610
  ] })
3611
3611
  ] })
@@ -3624,9 +3624,9 @@ function Ks(e) {
3624
3624
  };
3625
3625
  }
3626
3626
  function Hs({ draft: e, draftDashboard: a }) {
3627
- const s = Y(() => fr(a), [a]), n = s.inputs.filter(
3627
+ const s = Y(() => gr(a), [a]), n = s.inputs.filter(
3628
3628
  (o) => s.reachedVariables({ inputId: o.input.id }).some((l) => l.variableId === e.id)
3629
- ), i = e.mode === "sql" && gr(e.sql);
3629
+ ), i = e.mode === "sql" && br(e.sql);
3630
3630
  return n.length ? /* @__PURE__ */ r("div", { className: "divide-y divide-border/60", children: [
3631
3631
  /* @__PURE__ */ t("p", { className: "px-4 py-2 text-[11px] leading-4 text-muted-foreground", children: "How each filter applies here. Change a mapping on the filter's Cards tab, under Variables." }),
3632
3632
  n.map((o) => {
@@ -3694,7 +3694,7 @@ function Xs({ draft: e, onChange: a }) {
3694
3694
  ] }),
3695
3695
  o ? /* @__PURE__ */ t("p", { className: "mt-1 text-[11px] text-destructive", children: o }) : null
3696
3696
  ] }) : null,
3697
- s === "number" || s === "unknown" ? /* @__PURE__ */ t(se, { label: "Numbers read as", hint: "A chip can change any of these for itself.", children: /* @__PURE__ */ t(Fn, { value: e.presentation, onChange: l }) }) : null,
3697
+ s === "number" || s === "unknown" ? /* @__PURE__ */ t(se, { label: "Numbers read as", hint: "A chip can change any of these for itself.", children: /* @__PURE__ */ t(En, { value: e.presentation, onChange: l }) }) : null,
3698
3698
  /* @__PURE__ */ t(
3699
3699
  se,
3700
3700
  {
@@ -3705,7 +3705,7 @@ function Xs({ draft: e, onChange: a }) {
3705
3705
  {
3706
3706
  size: "xs",
3707
3707
  value: e.emptyText ?? "",
3708
- maxLength: br,
3708
+ maxLength: xr,
3709
3709
  onChange: (d) => a({ ...e, emptyText: d.target.value || void 0 }),
3710
3710
  placeholder: "Show nothing",
3711
3711
  className: "w-72",
@@ -3727,13 +3727,13 @@ function Js({
3727
3727
  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(
3728
3728
  () => d ? m ? p ? { kind: "document", sheetId: d, runtime: p } : void 0 : { kind: "sheet", sheetId: d } : void 0,
3729
3729
  [m, p, d]
3730
- ), g = Y(() => n || !f ? [] : [a], [n, a, f]), N = En({
3730
+ ), g = Y(() => n || !f ? [] : [a], [n, a, f]), N = In({
3731
3731
  dashboard: s,
3732
3732
  place: f ?? { kind: "sheet", sheetId: d ?? "" },
3733
3733
  purpose: "preview",
3734
3734
  variables: g
3735
- }).byId.get(a.id), k = In(), V = Tn(), B = Y(
3736
- () => xr({ preferences: k, calendar: V }),
3735
+ }).byId.get(a.id), k = Tn(), V = Ln(), B = Y(
3736
+ () => vr({ preferences: k, calendar: V }),
3737
3737
  [V, k]
3738
3738
  );
3739
3739
  let D, O = "", b = null;
@@ -3753,7 +3753,7 @@ function Js({
3753
3753
  "No change on ",
3754
3754
  T,
3755
3755
  ". ",
3756
- Ln(v.unavailable, "variable")
3756
+ Vn(v.unavailable, "variable")
3757
3757
  ] })
3758
3758
  ] });
3759
3759
  }
@@ -3779,7 +3779,7 @@ function Zs(e, a, s) {
3779
3779
  ] }), 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` : ""}` : "";
3780
3780
  switch (a.status) {
3781
3781
  case "answered": {
3782
- const h = Br(e, Object.keys(a.parts))[0], p = h ? a.parts[h] : void 0, m = p && Ht(p, e.presentation, s) || "(empty)", f = `${o(a.matched)}${d}`.replace(/^ · /, ""), g = Nr(e, a, s);
3782
+ const h = Br(e, Object.keys(a.parts))[0], p = h ? a.parts[h] : void 0, m = p && Ht(p, e.presentation, s) || "(empty)", f = `${o(a.matched)}${d}`.replace(/^ · /, ""), g = Cr(e, a, s);
3783
3783
  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 ? {
3784
3784
  body: /* @__PURE__ */ r(U, { children: [
3785
3785
  n(g.value),
@@ -4364,7 +4364,7 @@ function ui({
4364
4364
  /* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
4365
4365
  /* @__PURE__ */ t("span", { children: ii(e) }),
4366
4366
  /* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
4367
- /* @__PURE__ */ t(Vn, { className: "h-3 w-3" }),
4367
+ /* @__PURE__ */ t(Bn, { className: "h-3 w-3" }),
4368
4368
  /* @__PURE__ */ t("span", { className: "truncate", children: ri(e) }),
4369
4369
  e.lastRunAt ? /* @__PURE__ */ r(U, { children: [
4370
4370
  /* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
@@ -4413,7 +4413,7 @@ function ui({
4413
4413
  g.preventDefault(), i();
4414
4414
  },
4415
4415
  children: [
4416
- /* @__PURE__ */ t(Bn, { className: "h-3.5 w-3.5" }),
4416
+ /* @__PURE__ */ t(_n, { className: "h-3.5 w-3.5" }),
4417
4417
  "Run now"
4418
4418
  ]
4419
4419
  }
@@ -4428,7 +4428,7 @@ function ui({
4428
4428
  /* @__PURE__ */ t(Pn, { className: "h-3.5 w-3.5" }),
4429
4429
  "Resume"
4430
4430
  ] }) : /* @__PURE__ */ r(U, { children: [
4431
- /* @__PURE__ */ t(_n, { className: "h-3.5 w-3.5" }),
4431
+ /* @__PURE__ */ t(On, { className: "h-3.5 w-3.5" }),
4432
4432
  "Pause"
4433
4433
  ] })
4434
4434
  }
@@ -4480,15 +4480,15 @@ async function fi(e) {
4480
4480
  return s;
4481
4481
  }
4482
4482
  const gi = {
4483
- listBriefings: Wn,
4484
- getBriefing: qn,
4485
- pauseBriefing: jn,
4486
- resumeBriefing: $n,
4487
- deleteBriefing: Un,
4488
- runBriefingNow: Rn
4483
+ listBriefings: Qn,
4484
+ getBriefing: Wn,
4485
+ pauseBriefing: qn,
4486
+ resumeBriefing: jn,
4487
+ deleteBriefing: $n,
4488
+ runBriefingNow: Un
4489
4489
  };
4490
4490
  function ro(e) {
4491
- return /* @__PURE__ */ t(On, { authToken: e.token ? { accessToken: e.token } : void 0, children: /* @__PURE__ */ t(Mn, { children: /* @__PURE__ */ t(bi, { ...e }) }) });
4491
+ return /* @__PURE__ */ t(Mn, { authToken: e.token ? { accessToken: e.token } : void 0, children: /* @__PURE__ */ t(zn, { children: /* @__PURE__ */ t(bi, { ...e }) }) });
4492
4492
  }
4493
4493
  function bi({
4494
4494
  dashboardId: e,
@@ -4505,22 +4505,22 @@ function bi({
4505
4505
  openRun: p,
4506
4506
  client: m
4507
4507
  }) {
4508
- const { authToken: f, tokenProps: g } = $e(), y = zn(), N = !h || y.canCreate && (h === "scheduled_report" || y.analyticalBriefingsEnabled), [k, V] = E(!1), B = u ?? k, D = (A) => {
4508
+ const { authToken: f, tokenProps: g } = $e(), y = Rn(), N = !h || y.canCreate && (h === "scheduled_report" || y.analyticalBriefingsEnabled), [k, V] = E(!1), B = u ?? k, D = (A) => {
4509
4509
  u === void 0 && V(A), c == null || c(A);
4510
4510
  }, [O, b] = E(
4511
4511
  h ? "author" : "list"
4512
4512
  ), [S, v] = E(
4513
4513
  h ?? "analytical_briefing"
4514
- ), [T, F] = E("dashboard"), [H, P] = E(
4514
+ ), [T, F] = E("dashboard"), [H, _] = E(
4515
4515
  []
4516
- ), [Q, X] = E(null), _ = h && !N && !Q ? "list" : O, [te, Z] = E(!1), [G, I] = E(null), [ae, j] = E(null), [z, ne] = E(
4516
+ ), [Q, X] = E(null), P = h && !N && !Q ? "list" : O, [te, Z] = E(!1), [G, I] = E(null), [ae, j] = E(null), [z, ne] = E(
4517
4517
  null
4518
4518
  ), [ue, he] = E(null), ye = et(null), x = et(B);
4519
4519
  Ee(() => {
4520
4520
  const A = B && !x.current;
4521
4521
  x.current = B, !(!A || !h) && (X(null), F("dashboard"), v(h), b("author"), he(null));
4522
4522
  }, [B, h]);
4523
- const R = 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);
4523
+ const R = Lt(), $ = s ?? (g == null ? void 0 : g.apiServiceUrl), K = n ?? (f == null ? void 0 : f.accessToken), le = Y(() => ({ ...gi, ...m }), [m]), [Pe, ht] = E(null);
4524
4524
  Ee(() => {
4525
4525
  if (!p || !$ || !K) return;
4526
4526
  let A = !0;
@@ -4560,7 +4560,7 @@ function bi({
4560
4560
  if (!(!$ || !K)) {
4561
4561
  Z(!0), he(null);
4562
4562
  try {
4563
- P(
4563
+ _(
4564
4564
  await fi({
4565
4565
  apiClient: le,
4566
4566
  apiServiceUrl: $,
@@ -4577,8 +4577,8 @@ function bi({
4577
4577
  }
4578
4578
  }, [le, $, K]);
4579
4579
  Ee(() => {
4580
- !B || _ !== "list" || !Oe || ce();
4581
- }, [Oe, _, ce, B]);
4580
+ !B || P !== "list" || !Oe || ce();
4581
+ }, [Oe, P, ce, B]);
4582
4582
  const ze = () => {
4583
4583
  X(null), F("dashboard"), b("list"), D(!0);
4584
4584
  }, C = (A) => {
@@ -4664,7 +4664,7 @@ function bi({
4664
4664
  j(null);
4665
4665
  }
4666
4666
  }, La = He.length;
4667
- return y.surfaceVisible ? /* @__PURE__ */ r(Qn, { open: B, onOpenChange: D, children: [
4667
+ return y.surfaceVisible ? /* @__PURE__ */ r(Kn, { open: B, onOpenChange: D, children: [
4668
4668
  d ? null : /* @__PURE__ */ t(
4669
4669
  ei,
4670
4670
  {
@@ -4675,7 +4675,7 @@ function bi({
4675
4675
  }
4676
4676
  ),
4677
4677
  /* @__PURE__ */ r(
4678
- Kn,
4678
+ Hn,
4679
4679
  {
4680
4680
  ref: ye,
4681
4681
  side: "right",
@@ -4686,9 +4686,9 @@ function bi({
4686
4686
  A.preventDefault(), (W = ye.current) == null || W.focus({ preventScroll: !0 });
4687
4687
  },
4688
4688
  children: [
4689
- /* @__PURE__ */ r(Hn, { className: "sr-only", children: [
4690
- /* @__PURE__ */ t(Gn, { children: "Reports & briefings" }),
4691
- /* @__PURE__ */ t(Yn, { children: "Manage reports and briefings for this dashboard." })
4689
+ /* @__PURE__ */ r(Gn, { className: "sr-only", children: [
4690
+ /* @__PURE__ */ t(Yn, { children: "Reports & briefings" }),
4691
+ /* @__PURE__ */ t(Xn, { children: "Manage reports and briefings for this dashboard." })
4692
4692
  ] }),
4693
4693
  h ? /* @__PURE__ */ r("div", { className: "flex shrink-0 items-start justify-between gap-3 border-b border-border pl-4 pr-3 pt-2", children: [
4694
4694
  /* @__PURE__ */ r(
@@ -4703,11 +4703,11 @@ function bi({
4703
4703
  {
4704
4704
  type: "button",
4705
4705
  role: "tab",
4706
- "aria-selected": _ === "author",
4706
+ "aria-selected": P === "author",
4707
4707
  disabled: !N,
4708
4708
  className: J(
4709
4709
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
4710
- _ === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
4710
+ P === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
4711
4711
  !N && "cursor-not-allowed opacity-50"
4712
4712
  ),
4713
4713
  onClick: () => {
@@ -4721,10 +4721,10 @@ function bi({
4721
4721
  {
4722
4722
  type: "button",
4723
4723
  role: "tab",
4724
- "aria-selected": _ === "list",
4724
+ "aria-selected": P === "list",
4725
4725
  className: J(
4726
4726
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
4727
- _ === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
4727
+ P === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
4728
4728
  ),
4729
4729
  onClick: () => b("list"),
4730
4730
  children: h === "scheduled_report" ? "Manage reports" : "Manage briefings"
@@ -4744,7 +4744,7 @@ function bi({
4744
4744
  }
4745
4745
  )
4746
4746
  ] }) : null,
4747
- _ === "list" ? /* @__PURE__ */ t(
4747
+ P === "list" ? /* @__PURE__ */ t(
4748
4748
  li,
4749
4749
  {
4750
4750
  briefings: He,
@@ -4779,12 +4779,12 @@ function bi({
4779
4779
  hideHeader: !!h
4780
4780
  }
4781
4781
  ) : /* @__PURE__ */ t(
4782
- Xn,
4782
+ Jn,
4783
4783
  {
4784
4784
  apiServiceUrl: $,
4785
4785
  token: K,
4786
4786
  briefing: Q,
4787
- initialRunId: _e && (Q == null ? void 0 : Q.id) === _e.briefingId ? _e.runId : void 0,
4787
+ initialRunId: Pe && (Q == null ? void 0 : Q.id) === Pe.briefingId ? Pe.runId : void 0,
4788
4788
  intent: S,
4789
4789
  sourceContext: Q ? void 0 : mt,
4790
4790
  title: Q ? `Edit ${pe(Q).noun}` : S === "scheduled_report" ? "Schedule report" : "Create analytical briefing",