react-semaphor 0.1.571 → 0.1.573

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 (42) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/assistant-protocol/index.js +62 -59
  3. package/dist/briefings/index.js +1 -1
  4. package/dist/chunks/{model-change-T1cRkh3m.js → add-to-dashboard-B6Ah8Lub.js} +121 -84
  5. package/dist/chunks/{assistant-chat-SkCraw2C.js → assistant-chat-D95DtCj7.js} +2398 -2300
  6. package/dist/chunks/{bookmark-impact-DCYD-6Fr.js → bookmark-impact-DUWw3wlA.js} +2 -2
  7. package/dist/chunks/{bookmark-state-CflS88gq.js → bookmark-state-BEl_G9vr.js} +54 -54
  8. package/dist/chunks/{card-filter-builder-D-aSYpyr.js → card-filter-builder-B3bEPylu.js} +54 -54
  9. package/dist/chunks/{dashboard-B_w_ekUz.js → dashboard-DdALjmc3.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-_g1m2tJ3.js → dashboard-briefing-launcher-D2vevpyl.js} +923 -956
  11. package/dist/chunks/{dashboard-controls-CY0gbcCt.js → dashboard-controls-DxrsGK9A.js} +103 -103
  12. package/dist/chunks/{dashboard-json-DsM79yem.js → dashboard-json-rwds0HjB.js} +1 -1
  13. package/dist/chunks/{dates-RSEzJ9N7.js → dates-DlYMDaF2.js} +5 -5
  14. package/dist/chunks/{edit-dashboard-visual-cX0FM-4i.js → edit-dashboard-visual-BCDz5HOb.js} +1354 -1317
  15. package/dist/chunks/{filter-reach-copy-thzt25Rc.js → filter-reach-copy-BTAXnbwQ.js} +9 -9
  16. package/dist/chunks/{index-y3HUzRNk.js → index-8BxDk8EP.js} +2 -2
  17. package/dist/chunks/{report-preferences-dialog-B_GXs91t.js → report-preferences-dialog-D9nBczmk.js} +725 -801
  18. package/dist/chunks/{resolve-dashboard-input-context-Lkbwycwe.js → resolve-dashboard-input-context-DBFuNhZo.js} +3961 -3923
  19. package/dist/chunks/{saved-dashboard-context-DC_TEd6y.js → saved-dashboard-context-AChHk4tw.js} +3 -3
  20. package/dist/chunks/{semaphor-ready-indicator-CBQamwQY.js → semaphor-ready-indicator-BdOAS4Uw.js} +25293 -24700
  21. package/dist/chunks/{shelf-drop-preview-context-Bkjf0XXw.js → shelf-drop-preview-context-B1goDUYE.js} +259 -259
  22. package/dist/chunks/{stored-dashboard-C0hekXiI.js → stored-dashboard-rpLzf4mk.js} +231 -231
  23. package/dist/chunks/{variable-draft-DvglU8yj.js → variable-draft-DPSMDwqt.js} +2 -2
  24. package/dist/dashboard/index.js +2 -2
  25. package/dist/dashboard-authoring/index.js +1381 -1368
  26. package/dist/index.js +147 -147
  27. package/dist/style.css +1 -1
  28. package/dist/surfboard/index.js +2 -2
  29. package/dist/types/components/dashboard/summary-card.d.ts +5 -0
  30. package/dist/types/index.js +1 -1
  31. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +12 -0
  32. package/dist/types/lib/types/explorer-types.d.ts +6 -0
  33. package/dist/types/shared/assistant-protocol/model-change.d.ts +52 -1
  34. package/dist/types/shared/assistant-protocol/parts.d.ts +49 -2
  35. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +5 -0
  36. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  37. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
  38. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  39. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  40. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +4 -0
  41. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +38 -0
  42. package/package.json +1 -1
@@ -1,24 +1,24 @@
1
1
  import { jsx as e, jsxs as o, Fragment as R } from "react/jsx-runtime";
2
- import { by as Fr, u as k, bz as $r, bA as Gr, bB as ot, bC as Vr, bD as Hr, bE as jr, bF as qr, bG as zr, bH as Kr, aT as Y, aQ as xe, bI as ve, bs as C, bJ as Qr, bt as $t, bu as Gt, bw as tt, bx as rt, bK as Vt, bL as it, bm as Wr, bM as ne, bN as Yr, bO as Jr, bP as Ht, bQ as Xr, bR as jt, bS as Zr, bv as ea, bT as ta, bU as A, bV as ra, bW as aa, bX as na, aB as sa, bY as oa, be as ia, bZ as da, bf as ca, i as la, T as ua, a5 as Et, h as Be, o as ma, j as Xe, b_ as ha, b$ as pa, P as fa, c0 as ga, s as ba, c1 as xa, c2 as va, c3 as ya, c4 as wa, c5 as At, c6 as It, c7 as Mt, c8 as Na, bg as Sa, c9 as Da, ca as ka, cb as Ca, cc as ae, cd as he, ce as Ea, cf as Aa, cg as Ia, ch as Lt, n as Ma, ci as La, cj as Oa, ck as Pa, cl as _a, cm as Ta, cn as Ra, co as Ua, cp as Ba, cq as Ot } from "./semaphor-ready-indicator-CBQamwQY.js";
3
- import { c as ye, B as V, a5 as Fa, a6 as $a, a7 as at, L as $e, X as qt, s as Ga, y as Va, z as Ha, A as ja, D as qa, E as za, e as Ka, f as Qa, h as Wa, F as Ya, t as Ja, u as Xa, v as Za, I as en, w as tn, j as zt, g as Pt } from "./style-sheet-parts-C7qGZuH1.js";
2
+ import { bI as Fr, u as k, bJ as $r, bK as Gr, bL as ot, bM as Vr, bN as Hr, bO as jr, bP as qr, bQ as zr, bR as Kr, b1 as Y, a_ as xe, bS as ve, bC as C, bT as Qr, bD as $t, bE as Gt, bG as tt, bH as rt, bU as Vt, bV as it, bw as Wr, bW as ne, bX as Yr, bY as Jr, bZ as Ht, b_ as Xr, b$ as jt, c0 as Zr, bF as ea, c1 as ta, c2 as A, c3 as ra, c4 as aa, c5 as na, aL as sa, c6 as oa, bo as ia, c7 as da, bp as ca, i as la, a3 as ua, af as Et, h as Be, o as ma, j as Xe, G as ha, c8 as pa, c9 as fa, a1 as ga, ca as ba, s as xa, cb as va, v as ya, cc as wa, cd as Na, ce as Sa, cf as At, cg as It, ch as Lt, ci as Da, bq as ka, cj as Ca, T as Ea, ck as Aa, cl as Ia, cm as ae, cn as he, co as La, cp as Ma, cq as Oa, cr as Mt, n as Pa, cs as _a, ct as Ta, cu as Ra, cv as Ua, cw as Ba, cx as Fa, cy as $a, cz as Ga, cA as Ot, I as Va } from "./semaphor-ready-indicator-BdOAS4Uw.js";
3
+ import { c as ye, B as V, a5 as Ha, a6 as ja, a7 as at, L as $e, X as qt, s as qa, y as za, z as Ka, A as Qa, D as Wa, E as Ya, e as Ja, f as Xa, h as Za, F as en, t as tn, u as rn, v as an, I as nn, w as sn, j as zt, g as Pt } from "./style-sheet-parts-C7qGZuH1.js";
4
4
  import * as E from "react";
5
- import Kt, { useMemo as H, useState as N, useEffect as ge, useRef as _t, useLayoutEffect as rn } from "react";
5
+ import Kt, { useMemo as H, useState as N, useEffect as ge, useRef as _t, useLayoutEffect as on } from "react";
6
6
  import { c as be } from "./pickers-DkqmtnTL.js";
7
7
  import "./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
- import { u as an, d as nn, l as sn, c as on, D as dn, A as cn, a as ln, j as un, m as mn, V as hn, b as pn, e as fn, S as gn, T as bn, k as xn, i as vn, n as yn, U as wn } from "./dashboard-briefing-launcher-_g1m2tJ3.js";
12
- import { I as Nn } from "./card-filter-builder-D-aSYpyr.js";
13
- import { u as Sn, h as Dn, R as kn, l as Cn } from "./report-preferences-dialog-B_GXs91t.js";
11
+ import { u as dn, c as cn, k as ln, D as un, A as mn, a as hn, h as pn, l as fn, V as gn, b as bn, d as xn, S as vn, j as yn, i as wn, m as Nn, U as Sn } from "./dashboard-briefing-launcher-D2vevpyl.js";
12
+ import { I as Dn } from "./card-filter-builder-B3bEPylu.js";
13
+ import { h as kn, R as Cn } from "./report-preferences-dialog-D9nBczmk.js";
14
14
  import { createPortal as En } from "react-dom";
15
- import { f2 as we, f3 as dt, f4 as Qt, o as An } from "./resolve-dashboard-input-context-Lkbwycwe.js";
15
+ import { f6 as we, f7 as dt, f8 as Qt, o as An } from "./resolve-dashboard-input-context-DBFuNhZo.js";
16
16
  import { aH as Wt } from "./temporal-input-presentation-CqbJjIuu.js";
17
- import { k as nt } from "./stored-dashboard-C0hekXiI.js";
17
+ import { k as nt } from "./stored-dashboard-rpLzf4mk.js";
18
18
  import { r as In } from "./export-file-format-C-tJsxsf.js";
19
- import { u as Mn, s as Ln } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
20
- import { z as Yt } from "./bookmark-state-CflS88gq.js";
21
- import { d as On, a as Pn } from "./bookmark-impact-DCYD-6Fr.js";
19
+ import { u as Ln, s as Mn } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
20
+ import { z as Yt } from "./bookmark-state-BEl_G9vr.js";
21
+ import { d as On, a as Pn } from "./bookmark-impact-DUWw3wlA.js";
22
22
  import { S as _n } from "./save-D985VvYp.js";
23
23
  import { P as Tn } from "./paintbrush-aR17Z3C9.js";
24
24
  import { P as Rn } from "./palette-a5FCZKFI.js";
@@ -322,7 +322,7 @@ var Qn = [
322
322
  "svg",
323
323
  "ul"
324
324
  ], ct = Qn.reduce((t, n) => {
325
- const a = Fa(`Primitive.${n}`), r = E.forwardRef((s, c) => {
325
+ const a = Ha(`Primitive.${n}`), r = E.forwardRef((s, c) => {
326
326
  const { asChild: u, ...m } = s, p = u ? a : n;
327
327
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(p, { ...m, ref: c });
328
328
  });
@@ -357,7 +357,7 @@ Zt.displayName = lt;
357
357
  var er = "AvatarImage", tr = E.forwardRef(
358
358
  (t, n) => {
359
359
  const { __scopeAvatar: a, src: r, onLoadingStatusChange: s = () => {
360
- }, ...c } = t, u = Xt(er, a), m = Zn(r, c), p = $a((y) => {
360
+ }, ...c } = t, u = Xt(er, a), m = Zn(r, c), p = ja((y) => {
361
361
  s(y), u.onImageLoadingStatusChange(y);
362
362
  });
363
363
  return at(() => {
@@ -844,13 +844,13 @@ function gs({
844
844
  }), S = H(
845
845
  () => new Set(l.map((v) => v.userId)),
846
846
  [l]
847
- ), O = cs(), b = ls(), F = is(), [P, $] = N(!1), [M, D] = N(t.name), [Ne, J] = N(!1), [X, Z] = N(t.description || ""), [ee, Se] = N(""), [De, ke] = N(!1), Ce = H(() => {
847
+ ), O = cs(), b = ls(), F = is(), [P, $] = N(!1), [L, D] = N(t.name), [Ne, J] = N(!1), [X, Z] = N(t.description || ""), [ee, Se] = N(""), [De, ke] = N(!1), Ce = H(() => {
848
848
  const v = ee.trim().toLowerCase();
849
849
  return w.filter((B) => !S.has(B.id)).filter(
850
850
  (B) => !v || (B.name || "").toLowerCase().includes(v) || (B.email || "").toLowerCase().includes(v)
851
851
  ).slice(0, 50);
852
852
  }, [w, S, ee]), se = async () => {
853
- const v = M.trim();
853
+ const v = L.trim();
854
854
  if ($(!1), v.length >= 3 && v !== t.name)
855
855
  try {
856
856
  await F.mutateAsync({
@@ -915,7 +915,7 @@ function gs({
915
915
  "input",
916
916
  {
917
917
  autoFocus: !0,
918
- value: M,
918
+ value: L,
919
919
  onChange: (v) => D(v.target.value),
920
920
  onBlur: se,
921
921
  onKeyDown: (v) => {
@@ -1176,7 +1176,7 @@ function xs({
1176
1176
  busy: m
1177
1177
  }) {
1178
1178
  const p = _t(null), y = _t(null), [g, i] = N(null);
1179
- rn(() => {
1179
+ on(() => {
1180
1180
  if (!a) {
1181
1181
  i(null);
1182
1182
  return;
@@ -1320,15 +1320,15 @@ function ys({
1320
1320
  /* @__PURE__ */ e(rt, { className: "text-[13px] leading-5", children: "Applies to every CSV downloaded or delivered from this dashboard. People can still change it for a single download." })
1321
1321
  ] }),
1322
1322
  /* @__PURE__ */ o("div", { className: "space-y-2", children: [
1323
- /* @__PURE__ */ e(Ga, { htmlFor: "dashboard-csv-encoding", className: vs, children: "CSV encoding" }),
1323
+ /* @__PURE__ */ e(qa, { htmlFor: "dashboard-csv-encoding", className: vs, children: "CSV encoding" }),
1324
1324
  /* @__PURE__ */ o(
1325
- Va,
1325
+ za,
1326
1326
  {
1327
1327
  value: a,
1328
1328
  onValueChange: (s) => r({ csvEncoding: s }),
1329
1329
  children: [
1330
- /* @__PURE__ */ e(Ha, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(ja, {}) }),
1331
- /* @__PURE__ */ e(qa, { children: ta.map((s) => /* @__PURE__ */ e(za, { value: s.value, children: s.label }, s.value)) })
1330
+ /* @__PURE__ */ e(Ka, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(Qa, {}) }),
1331
+ /* @__PURE__ */ e(Wa, { children: ta.map((s) => /* @__PURE__ */ e(Ya, { value: s.value, children: s.label }, s.value)) })
1332
1332
  ]
1333
1333
  }
1334
1334
  )
@@ -1484,8 +1484,8 @@ function Cs({
1484
1484
  enabled: a
1485
1485
  }) {
1486
1486
  const r = ks({ saved: t, draft: n, enabled: a });
1487
- return r.length ? /* @__PURE__ */ o(Ka, { children: [
1488
- /* @__PURE__ */ e(Qa, { asChild: !0, children: /* @__PURE__ */ o(
1487
+ return r.length ? /* @__PURE__ */ o(Ja, { children: [
1488
+ /* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ o(
1489
1489
  V,
1490
1490
  {
1491
1491
  variant: "ghost",
@@ -1497,7 +1497,7 @@ function Cs({
1497
1497
  ]
1498
1498
  }
1499
1499
  ) }),
1500
- /* @__PURE__ */ o(Wa, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
1500
+ /* @__PURE__ */ o(Za, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
1501
1501
  /* @__PURE__ */ e("p", { className: "text-foreground", children: "This edit removes parts of the dashboard that viewers saved. Their views still open, with a note about what no longer applies." }),
1502
1502
  /* @__PURE__ */ e(
1503
1503
  "ul",
@@ -1545,14 +1545,14 @@ function Xs() {
1545
1545
  isInspectionSurface: f
1546
1546
  } = ia(), { openBrandStudioPreview: l } = da(), { permissions: x } = qn(), h = ca(), { isLoading: w } = la(), S = k((d) => d.theme), O = k((d) => d.isDownloadingPdf), b = k((d) => d.dashboard), F = k((d) => d.selectedSheetId), P = (St = b == null ? void 0 : b.sheets) == null ? void 0 : St.find(
1547
1547
  (d) => d.id === F
1548
- ), $ = An(P), M = $ ? (Dt = P == null ? void 0 : P.document) == null ? void 0 : Dt.page : void 0, D = k(
1548
+ ), $ = An(P), L = $ ? (Dt = P == null ? void 0 : P.document) == null ? void 0 : Dt.page : void 0, D = k(
1549
1549
  (d) => d.isDashboardEditing
1550
1550
  ), { setDashboardTitle: Ne } = k((d) => d.actions), [J, X] = N(!1), [Z, ee] = N(!1), [Se, De] = N(!1), [ke, Ce] = N(!1), [se, te] = N(null), [Ee, Ae] = N(null), { registerBriefingViewer: j } = ua();
1551
1551
  ge(
1552
1552
  () => j((d) => Ae(d)),
1553
1553
  [j]
1554
1554
  );
1555
- const [v, B] = N(!1), [Ie, q] = N(!1), [z, K] = N(null), [oe, Me] = N([]), [ut, Le] = N(!1), [mr, mt] = N(!1), U = k((d) => d.isVisualEditing);
1555
+ const [v, B] = N(!1), [Ie, q] = N(!1), [z, K] = N(null), [oe, Le] = N([]), [ut, Me] = N(!1), [mr, mt] = N(!1), U = k((d) => d.isVisualEditing);
1556
1556
  Et((d) => d.card);
1557
1557
  const hr = Be(
1558
1558
  (d) => d.selectedDashboard
@@ -1568,7 +1568,7 @@ function Xs() {
1568
1568
  (d) => d.actions
1569
1569
  ), { setInitialDashboard: gt, clearSelectedDashboard: Ge } = Be(
1570
1570
  (d) => d.actions
1571
- ), ie = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = ma(Xe.DASHBOARD), I = Sn(), { currentUser: br } = ot(), xr = ha(br), G = hr || pr, Q = pa({
1571
+ ), ie = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = ma(Xe.DASHBOARD), I = ha(), { currentUser: br } = ot(), xr = pa(br), G = hr || pr, Q = fa({
1572
1572
  config: n.config,
1573
1573
  canNavigateDashboardHub: ie,
1574
1574
  canShareDashboard: ((kt = G == null ? void 0 : G.permissions) == null ? void 0 : kt.canShare) === !0,
@@ -1576,7 +1576,7 @@ function Xs() {
1576
1576
  }), bt = G ? {
1577
1577
  id: G.id,
1578
1578
  title: (b == null ? void 0 : b.title) || G.title || "Dashboard"
1579
- } : null, { handleAddNewFrame: vr } = fa(), [Ve, He] = N(!1), [yr, de] = N(!1), [je, Pe] = N("close"), ce = ga(Xe.DASHBOARD), [L, le] = N(null), wr = async (d, T) => {
1579
+ } : null, { handleAddNewFrame: vr } = ga(), [Ve, He] = N(!1), [yr, de] = N(!1), [je, Pe] = N("close"), ce = ba(Xe.DASHBOARD), [M, le] = N(null), wr = async (d, T) => {
1580
1580
  if (!i) {
1581
1581
  if (!(b != null && b.id)) {
1582
1582
  console.log("No dashboard ID found");
@@ -1625,8 +1625,8 @@ function Xs() {
1625
1625
  accessToken: t == null ? void 0 : t.accessToken,
1626
1626
  dashboardId: (b == null ? void 0 : b.id) || a || n.dashboard_id,
1627
1627
  selectedSheetId: $ ? F : void 0,
1628
- pageSize: M == null ? void 0 : M.size,
1629
- orientation: M == null ? void 0 : M.orientation,
1628
+ pageSize: L == null ? void 0 : L.size,
1629
+ orientation: L == null ? void 0 : L.orientation,
1630
1630
  theme: S
1631
1631
  }),
1632
1632
  [
@@ -1634,8 +1634,8 @@ function Xs() {
1634
1634
  a,
1635
1635
  b == null ? void 0 : b.id,
1636
1636
  $,
1637
- M == null ? void 0 : M.orientation,
1638
- M == null ? void 0 : M.size,
1637
+ L == null ? void 0 : L.orientation,
1638
+ L == null ? void 0 : L.size,
1639
1639
  F,
1640
1640
  S,
1641
1641
  n.dashboard_id
@@ -1649,36 +1649,36 @@ function Xs() {
1649
1649
  };
1650
1650
  ge(() => {
1651
1651
  if (!D) {
1652
- L && le(null);
1652
+ M && le(null);
1653
1653
  return;
1654
1654
  }
1655
- if (L || !b || w)
1655
+ if (M || !b || w)
1656
1656
  return;
1657
- const d = ba(k.getState());
1657
+ const d = xa(k.getState());
1658
1658
  le(
1659
1659
  Ft(d.dashboard, d.semanticExecutionPayload)
1660
1660
  );
1661
1661
  }, [
1662
1662
  b,
1663
- L,
1663
+ M,
1664
1664
  D,
1665
1665
  w,
1666
1666
  Sr
1667
1667
  ]);
1668
- const Qe = (L == null ? void 0 : L.dashboard) ?? null, { isDirty: We, isDirtyPending: kr, resetDirty: ue } = Mn(
1668
+ const Qe = (M == null ? void 0 : M.dashboard) ?? null, { isDirty: We, isDirtyPending: kr, resetDirty: ue } = Ln(
1669
1669
  b,
1670
1670
  Qe,
1671
1671
  300,
1672
1672
  1e3,
1673
- Ln
1674
- ), xt = an(
1673
+ Mn
1674
+ ), xt = dn(
1675
1675
  Qe,
1676
1676
  i,
1677
1677
  p
1678
1678
  ), vt = We || kr, Te = Ve || ce.isPending, Cr = () => {
1679
1679
  if (i) {
1680
- L && Ke(L.dashboard, {
1681
- semanticExecutionPayload: L.semanticExecutionPayload
1680
+ M && Ke(M.dashboard, {
1681
+ semanticExecutionPayload: M.semanticExecutionPayload
1682
1682
  }), _e(), ue();
1683
1683
  return;
1684
1684
  }
@@ -1690,14 +1690,14 @@ function Xs() {
1690
1690
  });
1691
1691
  }, Ar = () => {
1692
1692
  const d = je === "home" && !!ie;
1693
- L && Ke(L.dashboard, {
1694
- semanticExecutionPayload: L.semanticExecutionPayload
1693
+ M && Ke(M.dashboard, {
1694
+ semanticExecutionPayload: M.semanticExecutionPayload
1695
1695
  }), _e(), d && Ge(), Pe("close"), de(!1), ue();
1696
1696
  }, Ir = () => {
1697
- L && (Ke(L.dashboard, {
1698
- semanticExecutionPayload: L.semanticExecutionPayload
1697
+ M && (Ke(M.dashboard, {
1698
+ semanticExecutionPayload: M.semanticExecutionPayload
1699
1699
  }), ue());
1700
- }, Mr = () => {
1700
+ }, Lr = () => {
1701
1701
  if (ie) {
1702
1702
  if (D && xt()) {
1703
1703
  Pe("home"), de(!0);
@@ -1713,9 +1713,9 @@ function Xs() {
1713
1713
  if (!T)
1714
1714
  return;
1715
1715
  const _ = (d == null ? void 0 : d.closeAfterSave) ?? ut, re = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
1716
- Le(_), _ && de(!1);
1716
+ Me(_), _ && de(!1);
1717
1717
  const _r = nt(T);
1718
- q(!0), K(null), Me([]), He(!0);
1718
+ q(!0), K(null), Le([]), He(!0);
1719
1719
  const Tr = {
1720
1720
  template: T
1721
1721
  };
@@ -1731,7 +1731,7 @@ function Xs() {
1731
1731
  _r,
1732
1732
  k.getState().semanticExecutionPayload
1733
1733
  )
1734
- ), q(!1), Le(!1), _ && (_e(), ue(), re && ie && Ge()), Pe("close");
1734
+ ), q(!1), Me(!1), _ && (_e(), ue(), re && ie && Ge()), Pe("close");
1735
1735
  },
1736
1736
  onError: (Rr) => {
1737
1737
  He(!1), K("Failed to save dashboard. Please try again.");
@@ -1740,7 +1740,7 @@ function Xs() {
1740
1740
  ) ? (Ue.errors || []).filter(
1741
1741
  (Br) => typeof Br == "string"
1742
1742
  ) : [];
1743
- Me(
1743
+ Le(
1744
1744
  ws({
1745
1745
  errors: Ur,
1746
1746
  dashboard: T || void 0
@@ -1756,14 +1756,14 @@ function Xs() {
1756
1756
  dashboardStateTitle: b.title,
1757
1757
  dashboardId: b == null ? void 0 : b.id
1758
1758
  });
1759
- const Lr = ie && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), Or = !i && Q.showDashboardHub && Lr, Pr = !i && h && Q.showDashboardHub, W = (b == null ? void 0 : b.id) || null, wt = xa(
1759
+ const Mr = ie && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), Or = !i && Q.showDashboardHub && Mr, Pr = !i && h && Q.showDashboardHub, W = (b == null ? void 0 : b.id) || null, wt = va(
1760
1760
  (Ct = n.config) == null ? void 0 : Ct.showBriefings,
1761
1761
  r
1762
- ), Re = nn(W), Je = sn();
1762
+ ), Re = cn(W), Je = ln();
1763
1763
  if (!h && !U)
1764
1764
  return null;
1765
1765
  const me = !U && h && !i, Nt = D && me;
1766
- return /* @__PURE__ */ e(on, { width: I.width, hasOverflowMenu: me, children: /* @__PURE__ */ o(
1766
+ return /* @__PURE__ */ e(ya, { width: I.width, hasOverflowMenu: me, children: /* @__PURE__ */ o(
1767
1767
  "div",
1768
1768
  {
1769
1769
  ref: I.measure,
@@ -1772,14 +1772,14 @@ function Xs() {
1772
1772
  children: [
1773
1773
  /* @__PURE__ */ o("div", { className: "flex min-w-[80px] flex-1 items-center gap-2", children: [
1774
1774
  Pr && !U && /* @__PURE__ */ e(
1775
- Nn,
1775
+ Dn,
1776
1776
  {
1777
1777
  "aria-label": "Dashboard Hub",
1778
1778
  tooltip: "Dashboard Hub",
1779
- onClick: Mr,
1779
+ onClick: Lr,
1780
1780
  className: "h-7 w-7 px-0",
1781
1781
  buttonProps: { size: "xs" },
1782
- children: /* @__PURE__ */ e(va, { className: "h-3.5 w-3.5" })
1782
+ children: /* @__PURE__ */ e(wa, { className: "h-3.5 w-3.5" })
1783
1783
  }
1784
1784
  ),
1785
1785
  !U && h && (w ? /* @__PURE__ */ e(
@@ -1792,7 +1792,7 @@ function Xs() {
1792
1792
  }
1793
1793
  ) : /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1", children: [
1794
1794
  /* @__PURE__ */ e(
1795
- ya,
1795
+ Na,
1796
1796
  {
1797
1797
  value: yt || "Untitled Dashboard",
1798
1798
  onSave: (d) => {
@@ -1804,7 +1804,7 @@ function Xs() {
1804
1804
  const T = (b == null ? void 0 : b.title) || "";
1805
1805
  Ne(d), wr(d, T);
1806
1806
  },
1807
- isEditable: wa({
1807
+ isEditable: Sa({
1808
1808
  isDashboardEditing: D,
1809
1809
  canEditDashboard: p === !0 && !i
1810
1810
  }),
@@ -1814,19 +1814,19 @@ function Xs() {
1814
1814
  isPending: ce.isPending
1815
1815
  }
1816
1816
  ),
1817
- !i && W && /* @__PURE__ */ e(dn, { dashboardId: W }),
1817
+ !i && W && /* @__PURE__ */ e(un, { dashboardId: W }),
1818
1818
  s ? /* @__PURE__ */ e("div", { className: "flex min-w-[1.25rem] shrink-[2]", children: s }) : null
1819
1819
  ] }))
1820
1820
  ] }),
1821
1821
  /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5", children: [
1822
1822
  /* @__PURE__ */ o("div", { className: "-m-1 flex min-w-0 items-center gap-1.5 overflow-x-auto p-1 [scrollbar-width:thin] [&>*]:shrink-0", children: [
1823
1823
  U && /* @__PURE__ */ o(R, { children: [
1824
- /* @__PURE__ */ e(cn, {}),
1825
- /* @__PURE__ */ e(ln, {})
1824
+ /* @__PURE__ */ e(mn, {}),
1825
+ /* @__PURE__ */ e(hn, {})
1826
1826
  ] }),
1827
- h && !i && /* @__PURE__ */ e(Dn, {}),
1828
- !U && D && !i && x.canUseFilters && h && /* @__PURE__ */ e(un, {}),
1829
- D && !i && h && /* @__PURE__ */ e(mn, {}),
1827
+ h && !i && /* @__PURE__ */ e(kn, {}),
1828
+ !U && D && !i && x.canUseFilters && h && /* @__PURE__ */ e(pn, {}),
1829
+ D && !i && h && /* @__PURE__ */ e(fn, {}),
1830
1830
  D && !U && !i && h && !$ && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
1831
1831
  /* @__PURE__ */ o(
1832
1832
  V,
@@ -1856,11 +1856,11 @@ function Xs() {
1856
1856
  className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
1857
1857
  "aria-label": "Open visual options",
1858
1858
  disabled: !D,
1859
- children: /* @__PURE__ */ e(Ya, { className: "h-3.5 w-3.5" })
1859
+ children: /* @__PURE__ */ e(en, { className: "h-3.5 w-3.5" })
1860
1860
  }
1861
1861
  ) }),
1862
1862
  /* @__PURE__ */ e(
1863
- Mt,
1863
+ Lt,
1864
1864
  {
1865
1865
  align: "end",
1866
1866
  className: "z-[60] w-48 rounded-control border-border/60 p-1 shadow-sm",
@@ -1872,14 +1872,14 @@ function Xs() {
1872
1872
  )
1873
1873
  ] }),
1874
1874
  /* @__PURE__ */ e(
1875
- hn,
1875
+ gn,
1876
1876
  {
1877
1877
  open: mr,
1878
1878
  onOpenChange: mt
1879
1879
  }
1880
1880
  )
1881
1881
  ] }),
1882
- !i && h && /* @__PURE__ */ e(pn, {}),
1882
+ !i && h && /* @__PURE__ */ e(bn, {}),
1883
1883
  !U && !D && (p || i) && (!f || !y || p !== void 0) && h && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
1884
1884
  /* @__PURE__ */ o(
1885
1885
  V,
@@ -1890,22 +1890,22 @@ function Xs() {
1890
1890
  title: I.width === "sm" ? i ? "Inspect" : "Edit" : void 0,
1891
1891
  className: I.width === "sm" ? "w-7 px-0" : void 0,
1892
1892
  children: [
1893
- /* @__PURE__ */ e(Na, { className: "h-3.5 w-3.5" }),
1893
+ /* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" }),
1894
1894
  I.width !== "sm" && (i ? "Inspect" : "Edit")
1895
1895
  ]
1896
1896
  }
1897
1897
  ),
1898
- g ? /* @__PURE__ */ e(Ja, { children: /* @__PURE__ */ o(Xa, { children: [
1899
- /* @__PURE__ */ e(Za, { asChild: !0, children: /* @__PURE__ */ e(
1898
+ g ? /* @__PURE__ */ e(tn, { children: /* @__PURE__ */ o(rn, { children: [
1899
+ /* @__PURE__ */ e(an, { asChild: !0, children: /* @__PURE__ */ e(
1900
1900
  "button",
1901
1901
  {
1902
1902
  type: "button",
1903
1903
  "aria-label": g,
1904
1904
  className: "inline-flex size-6 items-center justify-center rounded-control text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1905
- children: /* @__PURE__ */ e(en, { "aria-hidden": "true", className: "size-3.5" })
1905
+ children: /* @__PURE__ */ e(nn, { "aria-hidden": "true", className: "size-3.5" })
1906
1906
  }
1907
1907
  ) }),
1908
- /* @__PURE__ */ e(tn, { children: /* @__PURE__ */ e("p", { children: g }) })
1908
+ /* @__PURE__ */ e(sn, { children: /* @__PURE__ */ e("p", { children: g }) })
1909
1909
  ] }) }) : null
1910
1910
  ] }),
1911
1911
  ze && h && We && /* @__PURE__ */ e(
@@ -1927,7 +1927,7 @@ function Xs() {
1927
1927
  title: I.width === "sm" ? "Undo" : void 0,
1928
1928
  className: I.width === "sm" ? "w-7 px-0" : void 0,
1929
1929
  children: [
1930
- /* @__PURE__ */ e(Sa, { className: "h-3.5 w-3.5" }),
1930
+ /* @__PURE__ */ e(ka, { className: "h-3.5 w-3.5" }),
1931
1931
  I.width !== "sm" && "Undo"
1932
1932
  ]
1933
1933
  }
@@ -1955,19 +1955,19 @@ function Xs() {
1955
1955
  title: I.width === "sm" ? "Close" : void 0,
1956
1956
  className: I.width === "sm" ? "w-7 px-0" : void 0,
1957
1957
  children: [
1958
- /* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" }),
1958
+ /* @__PURE__ */ e(Ca, { className: "h-3.5 w-3.5" }),
1959
1959
  I.width !== "sm" && "Close"
1960
1960
  ]
1961
1961
  }
1962
1962
  )
1963
1963
  ] }),
1964
1964
  !U && h && /* @__PURE__ */ o(R, { children: [
1965
- /* @__PURE__ */ e(fn, {}),
1966
- m && p === !0 && !i && /* @__PURE__ */ e(gn, {})
1965
+ /* @__PURE__ */ e(xn, {}),
1966
+ m && p === !0 && !i && /* @__PURE__ */ e(vn, {})
1967
1967
  ] }),
1968
1968
  !U && u && I.width === "lg" && /* @__PURE__ */ e(jn, {}),
1969
- me && /* @__PURE__ */ e(bn, {}),
1970
- me && Nt && /* @__PURE__ */ e(xn, {}),
1969
+ me && /* @__PURE__ */ e(Ea, {}),
1970
+ me && Nt && /* @__PURE__ */ e(yn, {}),
1971
1971
  me && /* @__PURE__ */ o(At, { children: [
1972
1972
  /* @__PURE__ */ e(It, { asChild: !0, children: /* @__PURE__ */ e(
1973
1973
  V,
@@ -1976,11 +1976,11 @@ function Xs() {
1976
1976
  size: "xs",
1977
1977
  className: "w-7 px-0",
1978
1978
  "aria-label": "More dashboard options",
1979
- children: /* @__PURE__ */ e(ka, { className: "h-3.5 w-3.5" })
1979
+ children: /* @__PURE__ */ e(Aa, { className: "h-3.5 w-3.5" })
1980
1980
  }
1981
1981
  ) }),
1982
1982
  /* @__PURE__ */ o(
1983
- Mt,
1983
+ Lt,
1984
1984
  {
1985
1985
  align: "end",
1986
1986
  className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
@@ -1993,7 +1993,7 @@ function Xs() {
1993
1993
  disabled: Re.disabled,
1994
1994
  onSelect: Re.toggle,
1995
1995
  children: [
1996
- /* @__PURE__ */ e(Ca, { className: "h-3.5 w-3.5" }),
1996
+ /* @__PURE__ */ e(Ia, { className: "h-3.5 w-3.5" }),
1997
1997
  /* @__PURE__ */ e("span", { className: "flex-1", children: "Default dashboard" }),
1998
1998
  Re.isDefault && /* @__PURE__ */ e(zt, { className: "h-3.5 w-3.5" })
1999
1999
  ]
@@ -2008,7 +2008,7 @@ function Xs() {
2008
2008
  disabled: O,
2009
2009
  onSelect: () => B(!0),
2010
2010
  children: [
2011
- /* @__PURE__ */ e(Ea, { className: "h-3.5 w-3.5" }),
2011
+ /* @__PURE__ */ e(La, { className: "h-3.5 w-3.5" }),
2012
2012
  "Export"
2013
2013
  ]
2014
2014
  }
@@ -2027,7 +2027,7 @@ function Xs() {
2027
2027
  {
2028
2028
  onSelect: () => Ce(!0),
2029
2029
  children: [
2030
- /* @__PURE__ */ e(Aa, { className: "h-3.5 w-3.5" }),
2030
+ /* @__PURE__ */ e(Ma, { className: "h-3.5 w-3.5" }),
2031
2031
  "Download settings"
2032
2032
  ]
2033
2033
  }
@@ -2036,7 +2036,7 @@ function Xs() {
2036
2036
  (Q.showDashboardSharing || Q.showGroupManagement) && /* @__PURE__ */ o(R, { children: [
2037
2037
  /* @__PURE__ */ e(he, { children: "Access" }),
2038
2038
  Q.showDashboardSharing && /* @__PURE__ */ o(A, { onSelect: () => X(!0), children: [
2039
- /* @__PURE__ */ e(Ia, { className: "h-3.5 w-3.5" }),
2039
+ /* @__PURE__ */ e(Oa, { className: "h-3.5 w-3.5" }),
2040
2040
  "Share"
2041
2041
  ] }),
2042
2042
  Q.showGroupManagement && /* @__PURE__ */ o(
@@ -2082,7 +2082,7 @@ function Xs() {
2082
2082
  ).catch(() => C.error("Unable to copy token")) : C.error("Clipboard not available"));
2083
2083
  },
2084
2084
  children: [
2085
- /* @__PURE__ */ e(Lt, { className: "h-3.5 w-3.5" }),
2085
+ /* @__PURE__ */ e(Mt, { className: "h-3.5 w-3.5" }),
2086
2086
  "Copy token"
2087
2087
  ]
2088
2088
  }
@@ -2110,7 +2110,7 @@ function Xs() {
2110
2110
  ) : C.error("Clipboard not available");
2111
2111
  },
2112
2112
  children: [
2113
- /* @__PURE__ */ e(Lt, { className: "h-3.5 w-3.5" }),
2113
+ /* @__PURE__ */ e(Mt, { className: "h-3.5 w-3.5" }),
2114
2114
  "Copy local document PDF URL"
2115
2115
  ]
2116
2116
  }
@@ -2118,7 +2118,7 @@ function Xs() {
2118
2118
  /* @__PURE__ */ o(
2119
2119
  A,
2120
2120
  {
2121
- onSelect: () => vn(n.apiServiceUrl),
2121
+ onSelect: () => wn(n.apiServiceUrl),
2122
2122
  children: [
2123
2123
  /* @__PURE__ */ e(Bn, { className: "h-3.5 w-3.5" }),
2124
2124
  "Invalidate token"
@@ -2145,7 +2145,7 @@ function Xs() {
2145
2145
  )
2146
2146
  ] }),
2147
2147
  J && bt && /* @__PURE__ */ e(
2148
- Ma,
2148
+ Pa,
2149
2149
  {
2150
2150
  resource: bt,
2151
2151
  resourceType: Xe.DASHBOARD,
@@ -2160,7 +2160,7 @@ function Xs() {
2160
2160
  }
2161
2161
  ),
2162
2162
  /* @__PURE__ */ e(
2163
- kn,
2163
+ Cn,
2164
2164
  {
2165
2165
  open: Se,
2166
2166
  onOpenChange: De
@@ -2174,7 +2174,7 @@ function Xs() {
2174
2174
  }
2175
2175
  ),
2176
2176
  W && (se || Ee) ? /* @__PURE__ */ e(
2177
- yn,
2177
+ Nn,
2178
2178
  {
2179
2179
  dashboardId: W,
2180
2180
  dashboardTitle: (b == null ? void 0 : b.title) || (G == null ? void 0 : G.title),
@@ -2188,34 +2188,34 @@ function Xs() {
2188
2188
  }
2189
2189
  ) : null,
2190
2190
  h && /* @__PURE__ */ e(
2191
- La,
2191
+ _a,
2192
2192
  {
2193
2193
  open: v,
2194
2194
  onOpenChange: B
2195
2195
  }
2196
2196
  ),
2197
2197
  /* @__PURE__ */ e(
2198
- Oa,
2198
+ Ta,
2199
2199
  {
2200
2200
  open: Ie,
2201
2201
  onOpenChange: (d) => {
2202
- !d && Ve && !z || (q(d), d || (K(null), Me([]), Le(!1)));
2202
+ !d && Ve && !z || (q(d), d || (K(null), Le([]), Me(!1)));
2203
2203
  },
2204
- children: /* @__PURE__ */ o(Pa, { className: "max-w-sm", children: [
2205
- /* @__PURE__ */ o(_a, { children: [
2206
- /* @__PURE__ */ e(Ta, { children: z ? "Save failed" : "Saving dashboard" }),
2207
- /* @__PURE__ */ e(Ra, { className: "pt-2", children: z ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2204
+ children: /* @__PURE__ */ o(Ra, { className: "max-w-sm", children: [
2205
+ /* @__PURE__ */ o(Ua, { children: [
2206
+ /* @__PURE__ */ e(Ba, { children: z ? "Save failed" : "Saving dashboard" }),
2207
+ /* @__PURE__ */ e(Fa, { className: "pt-2", children: z ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2208
2208
  oe.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
2209
2209
  /* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
2210
2210
  /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: oe.slice(0, 5).map((d) => /* @__PURE__ */ e("li", { children: d }, d)) })
2211
2211
  ] })
2212
2212
  ] }),
2213
- /* @__PURE__ */ e(Ua, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: z ? /* @__PURE__ */ o(R, { children: [
2213
+ /* @__PURE__ */ e($a, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: z ? /* @__PURE__ */ o(R, { children: [
2214
2214
  /* @__PURE__ */ e(
2215
- Ba,
2215
+ Ga,
2216
2216
  {
2217
2217
  onClick: () => {
2218
- q(!1), K(null), Me([]), Le(!1);
2218
+ q(!1), K(null), Le([]), Me(!1);
2219
2219
  },
2220
2220
  className: "m-0",
2221
2221
  children: "Close"
@@ -2240,7 +2240,7 @@ function Xs() {
2240
2240
  }
2241
2241
  ),
2242
2242
  /* @__PURE__ */ e(
2243
- wn,
2243
+ Sn,
2244
2244
  {
2245
2245
  open: yr,
2246
2246
  onOpenChange: (d) => {
@@ -2259,7 +2259,7 @@ function Xs() {
2259
2259
  ) });
2260
2260
  }
2261
2261
  function Es() {
2262
- const t = Cn();
2262
+ const t = Va();
2263
2263
  return t.length === 0 ? null : /* @__PURE__ */ o(R, { children: [
2264
2264
  t.map((n) => /* @__PURE__ */ o(A, { onSelect: n.onSelect, children: [
2265
2265
  n.icon,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as u, useState as f, useRef as b, useEffect as p } from "react";
3
- import { u as o } from "./semaphor-ready-indicator-CBQamwQY.js";
3
+ import { u as o } from "./semaphor-ready-indicator-BdOAS4Uw.js";
4
4
  import { B as S, X as N, C as D } from "./style-sheet-parts-C7qGZuH1.js";
5
5
  import { c as J } from "./pickers-DkqmtnTL.js";
6
6
  import "./validators-B8fpdinG.js";
@@ -1,17 +1,17 @@
1
- import { h as D, d as F, r as b, a as f, e as g } from "./resolve-dashboard-input-context-Lkbwycwe.js";
2
- import { d as h } from "./filter-reach-copy-thzt25Rc.js";
1
+ import { h as D, d as F, r as b, a as f, e as g } from "./resolve-dashboard-input-context-DBFuNhZo.js";
2
+ import { d as h } from "./filter-reach-copy-BTAXnbwQ.js";
3
3
  import "./validators-B8fpdinG.js";
4
4
  import "./matrix-operation-contract-DCVinw1o.js";
5
5
  import "./analytics-base-schemas-BaIQrEzX.js";
6
6
  import "zod";
7
7
  import "./temporal-input-presentation-CqbJjIuu.js";
8
8
  import "../value-format-preferences/index.js";
9
- import { A as y } from "./bookmark-state-CflS88gq.js";
9
+ import { A as y } from "./bookmark-state-BEl_G9vr.js";
10
10
  import "./schema-C9NPiIru.js";
11
11
  import "./index-CV_Kzou0.js";
12
12
  import "./context-R31TSL5V.js";
13
- import { p as C, r as N } from "./stored-dashboard-C0hekXiI.js";
14
- import { g as q } from "./saved-dashboard-context-DC_TEd6y.js";
13
+ import { p as C, r as N } from "./stored-dashboard-rpLzf4mk.js";
14
+ import { g as q } from "./saved-dashboard-context-AChHk4tw.js";
15
15
  function T(n, e) {
16
16
  var s;
17
17
  if (e.status === "blocked" || (s = n.sql) != null && s.trim()) return !1;