react-semaphor 0.1.552 → 0.1.554

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 (73) hide show
  1. package/dist/analytics-protocol/index.js +228 -227
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +3 -3
  4. package/dist/briefings/index.js +5 -5
  5. package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-ngs5dTvo.js} +1275 -1296
  6. package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-BAeGKd3s.js} +3 -3
  7. package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-C2WNTlxK.js} +44 -44
  8. package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
  9. package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-548YvEW5.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-ptIRn5FS.js} +62 -62
  11. package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CqyUTN6Q.js} +46 -46
  12. package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-CvDFipA0.js} +4 -4
  13. package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-DrA9m-5H.js} +119 -119
  14. package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
  15. package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-CyftKCZE.js} +48 -48
  16. package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DMrpj4h9.js} +2 -2
  17. package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Or-3DL3k.js} +6033 -5772
  18. package/dist/chunks/{index-Dp0ta6KB.js → index-ClwmmbUH.js} +9 -9
  19. package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
  20. package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-CVFVtqyo.js} +2 -2
  21. package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-K2OVPJQI.js} +30 -30
  22. package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract--lMaLlpV.js} +64 -61
  24. package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-CYIt2F5X.js} +1 -1
  25. package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
  26. package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-BHJGZwIc.js} +1 -1
  27. package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
  28. package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js} +6 -6
  29. package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js} +49 -49
  30. package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js} +1 -1
  31. package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-bOKDTHfJ.js} +2062 -1986
  32. package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context--Hq1juf9.js} +8 -8
  33. package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-yw_JgICP.js} +1 -1
  34. package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
  35. package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-BuLzyT1T.js} +119 -119
  36. package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-CGymm5td.js} +1 -1
  37. package/dist/chunks/{switch-wJP6O7ZT.js → switch-B-UTI6v-.js} +2 -2
  38. package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-CgO6gaSM.js} +1 -1
  39. package/dist/chunks/{table-settings-WysCBj62.js → table-settings-DOT_Bv1m.js} +224 -201
  40. package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-C4rqmwaQ.js} +24 -24
  41. package/dist/chunks/{token-types-BMqRmT-C.js → token-types-DYECHYGH.js} +1 -1
  42. package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
  43. package/dist/chunks/{validators-C-aOQlTB.js → validators-ClKLGDGZ.js} +1077 -1054
  44. package/dist/dashboard/index.js +2 -2
  45. package/dist/dashboard-authoring/index.js +273 -264
  46. package/dist/data-app-sdk/index.js +5 -5
  47. package/dist/data-app-sdk-adapters/index.js +2 -2
  48. package/dist/data-app-sdk-validation/index.js +5 -5
  49. package/dist/format-utils/index.js +15 -15
  50. package/dist/index.js +21 -21
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/surfboard/index.js +2 -2
  54. package/dist/types/index.js +6 -6
  55. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
  56. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
  57. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
  58. package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
  59. package/dist/types/lib/utils/card-definition.d.ts +2 -1
  60. package/dist/types/lib/utils/card-type-change.d.ts +5 -1
  61. package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
  62. package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
  63. package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
  64. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
  65. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
  66. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
  67. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
  68. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  69. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +62 -0
  70. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
  71. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  72. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
  73. package/package.json +2 -2
@@ -1,28 +1,28 @@
1
1
  import { jsx as e, jsxs as o, Fragment as $ } from "react/jsx-runtime";
2
- import { bQ as $r, u as C, bR as Br, bS as Fr, bT as st, bU as Gr, bV as Vr, bW as jr, bX as zr, bY as Hr, bZ as qr, b5 as J, b3 as ve, b_ as ye, bK as D, b$ as Kr, bL as Gt, bM as Vt, bO as et, bP as tt, c0 as jt, aR as ot, a_ as re, c1 as Qr, c2 as Wr, c3 as zt, c4 as Yr, c5 as Ht, bN as Jr, c6 as Xr, c7 as P, c8 as Zr, c9 as ea, ca as ta, aC as ra, bh as aa, by as na, cb as sa, bz as oa, j as ia, W as da, a6 as Ct, i as _e, p as ca, k as Je, cc as la, cd as ua, Q as ma, ce as ha, s as pa, cf as fa, cg as ba, bk as ga, ch as xa, ci as Dt, cj as Et, ck as It, cl as va, bA as ya, cm as wa, cn as Na, co as Sa, cp as be, cq as Pe, cr as ka, cs as Ca, ct as Da, cu as At, o as Ea, cv as Ia, cw as Aa, cx as Oa, cy as La, cz as Ma, cA as _a, cB as Pa, cC as Ta, cD as Ot } from "./semaphor-ready-indicator-ChyotaWB.js";
3
- import { B as G, Z as Ra, _ as Ua, $ as rt, L as Re, l as $a, r as Ba, s as Fa, t as Ga, u as Va, v as ja, P as za, a as Ha, b as qa, m as Ka, n as Qa, o as Wa, I as Ya, p as Ja, c as qt } from "./switch-wJP6O7ZT.js";
2
+ import { bQ as $r, u as C, bR as Br, bS as Fr, bT as st, bU as Gr, bV as jr, bW as Vr, bX as zr, bY as Hr, bZ as qr, b5 as J, b3 as ve, b_ as ye, bK as D, b$ as Kr, bL as Gt, bM as jt, bO as et, bP as tt, c0 as Vt, aR as ot, a_ as re, c1 as Qr, c2 as Wr, c3 as zt, c4 as Yr, c5 as Ht, bN as Jr, c6 as Xr, c7 as P, c8 as Zr, c9 as ea, ca as ta, aC as ra, bh as aa, by as na, cb as sa, bz as oa, j as ia, W as da, a6 as Ct, i as _e, p as ca, k as Je, cc as la, cd as ua, Q as ma, ce as ha, s as pa, cf as fa, cg as ba, bk as ga, ch as xa, ci as Dt, cj as Et, ck as It, cl as va, bA as ya, cm as wa, cn as Na, co as Sa, cp as be, cq as Pe, cr as ka, cs as Ca, ct as Da, cu as At, o as Ea, cv as Ia, cw as Aa, cx as Oa, cy as La, cz as Ma, cA as _a, cB as Pa, cC as Ta, cD as Ot } from "./semaphor-ready-indicator-yM4wo-FH.js";
3
+ import { B as G, Z as Ra, _ as Ua, $ as rt, L as Re, l as $a, r as Ba, s as Fa, t as Ga, u as ja, v as Va, P as za, a as Ha, b as qa, m as Ka, n as Qa, o as Wa, I as Ya, p as Ja, c as qt } from "./switch-B-UTI6v-.js";
4
4
  import { c as we, X as Kt, C as Xa } from "./x-4f5U2XwU.js";
5
5
  import * as A from "react";
6
- import Qt, { useMemo as V, useState as N, useEffect as ge, useRef as Lt, useLayoutEffect as Za } from "react";
6
+ import Qt, { useMemo as j, useState as N, useEffect as ge, useRef as Lt, useLayoutEffect as Za } from "react";
7
7
  import "./index-CuHybtft.js";
8
- import "./validators-C-aOQlTB.js";
9
- import "./matrix-operation-contract-D6vYkZK4.js";
8
+ import "./validators-ClKLGDGZ.js";
9
+ import "./matrix-operation-contract--lMaLlpV.js";
10
10
  import "./analytics-base-schemas-BKs3flFS.js";
11
11
  import "zod";
12
12
  import "../value-format-preferences/index.js";
13
13
  import { c as xe } from "./_commonjsHelpers-DimLPMtv.js";
14
- import { u as en, d as tn, c as rn, D as an, A as nn, a as sn, j as on, V as dn, b as cn, e as ln, S as un, T as mn, i as hn, k as pn, U as fn } from "./dashboard-briefing-launcher-DUJQv719.js";
15
- import { I as bn } from "./use-create-flow-overlay-state-t7JLE_LV.js";
16
- import { u as gn, h as xn, R as vn, l as yn } from "./report-preferences-dialog-C0uGI0v7.js";
14
+ import { u as en, d as tn, c as rn, D as an, A as nn, a as sn, j as on, V as dn, b as cn, e as ln, S as un, T as mn, i as hn, k as pn, U as fn } from "./dashboard-briefing-launcher-ptIRn5FS.js";
15
+ import { I as bn } from "./use-create-flow-overlay-state-DSXC-LD7.js";
16
+ import { u as gn, h as xn, R as vn, l as yn } from "./report-preferences-dialog-2tqY0BMQ.js";
17
17
  import { createPortal as wn } from "react-dom";
18
- import { dr as Ne, ds as it, dt as Wt, as as Nn } from "./global-date-filter-utils-C1jCNWdV.js";
19
- import { S as Sn, C as kn } from "./selection-reducer-CJzkTZio.js";
20
- import { o as Yt } from "./matrix-formatter-C_EpDP6o.js";
21
- import { ac as Mt, ad as Cn, ae as Dn, a as at } from "./resolve-dashboard-input-context-Cm0b7s-d.js";
18
+ import { dt as Ne, du as it, dv as Wt, as as Nn } from "./global-date-filter-utils-Or-3DL3k.js";
19
+ import { S as Sn, C as kn } from "./selection-reducer-yw_JgICP.js";
20
+ import { o as Yt } from "./matrix-formatter-K2OVPJQI.js";
21
+ import { ai as Mt, aj as Cn, ak as Dn, a as at } from "./resolve-dashboard-input-context-bOKDTHfJ.js";
22
22
  import { r as En } from "./export-file-format-C-tJsxsf.js";
23
23
  import { u as In, s as An } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
24
- import { K as Ue, u as _t } from "./table-settings-WysCBj62.js";
25
- import { l as On, h as Pt, e as Ln } from "./document-dashboard-inputs-PoQihHLu.js";
24
+ import { L as Ue, u as _t } from "./table-settings-DOT_Bv1m.js";
25
+ import { l as On, h as Pt, e as Ln } from "./document-dashboard-inputs-DrA9m-5H.js";
26
26
  import { S as Mn } from "./save-CfJpQQ68.js";
27
27
  import { P as _n } from "./palette-D10o_yYX.js";
28
28
  import { B as Pn } from "./braces-o9UiRQes.js";
@@ -208,7 +208,7 @@ function Fn() {
208
208
  process.env.NODE_ENV === "production" ? nt.exports = Bn() : nt.exports = Fn();
209
209
  var Gn = nt.exports;
210
210
  const Te = ["light", "dark", "system"];
211
- function Vn() {
211
+ function jn() {
212
212
  const { theme: t, setTheme: a } = $r(), n = C(
213
213
  (f) => f.actions.setDashboardTheme
214
214
  );
@@ -231,19 +231,19 @@ function Vn() {
231
231
  }
232
232
  );
233
233
  }
234
- function jn() {
235
- const { displayPreferences: t, shouldShowElement: a } = Fr(), { currentUser: n, userContext: r } = st(), s = V(
234
+ function Vn() {
235
+ const { displayPreferences: t, shouldShowElement: a } = Fr(), { currentUser: n, userContext: r } = st(), s = j(
236
236
  () => Gr(n),
237
237
  [n]
238
- ), d = V(() => (h) => s && s[h] !== void 0 && s[h] === !1 ? !1 : a(h), [s, a, t]), f = V(
238
+ ), d = j(() => (h) => s && s[h] !== void 0 && s[h] === !1 ? !1 : a(h), [s, a, t]), f = j(
239
239
  () => {
240
240
  var h, g, v, m, c;
241
241
  return {
242
242
  canEdit: ((h = r == null ? void 0 : r.permissions) == null ? void 0 : h.canEdit) ?? qr(n),
243
243
  canUseFilters: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canEdit) ?? Hr(n),
244
244
  canManageDashboards: ((v = r == null ? void 0 : r.permissions) == null ? void 0 : v.canCreateDashboard) ?? zr(n),
245
- canCreateDashboards: ((m = r == null ? void 0 : r.permissions) == null ? void 0 : m.canCreateDashboard) ?? jr(n),
246
- canAccessVisuals: ((c = r == null ? void 0 : r.permissions) == null ? void 0 : c.canEdit) ?? Vr(n)
245
+ canCreateDashboards: ((m = r == null ? void 0 : r.permissions) == null ? void 0 : m.canCreateDashboard) ?? Vr(n),
246
+ canAccessVisuals: ((c = r == null ? void 0 : r.permissions) == null ? void 0 : c.canEdit) ?? jr(n)
247
247
  };
248
248
  },
249
249
  [n, r]
@@ -561,7 +561,7 @@ function ls({
561
561
  } catch {
562
562
  }
563
563
  };
564
- return /* @__PURE__ */ e(Gt, { open: t, onOpenChange: a, children: /* @__PURE__ */ o(Vt, { className: "flex max-h-[640px] w-[720px] max-w-[92vw] flex-col gap-0 overflow-hidden p-0", children: [
564
+ return /* @__PURE__ */ e(Gt, { open: t, onOpenChange: a, children: /* @__PURE__ */ o(jt, { className: "flex max-h-[640px] w-[720px] max-w-[92vw] flex-col gap-0 overflow-hidden p-0", children: [
565
565
  c.kind === "list" ? /* @__PURE__ */ o("div", { className: "shrink-0 border-b border-border px-5 pt-4 pb-3.5", children: [
566
566
  /* @__PURE__ */ e(et, { className: "text-[15px] font-semibold tracking-tight", children: "Group management" }),
567
567
  /* @__PURE__ */ e(tt, { className: "mt-1 text-[12px] leading-[1.5] text-muted-foreground", children: "Organize people into groups for shared access." })
@@ -573,7 +573,7 @@ function ls({
573
573
  onClick: () => u({ kind: "list" }),
574
574
  "aria-label": "Back",
575
575
  className: "-ml-1 flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
576
- children: /* @__PURE__ */ e(jt, { className: "h-3.5 w-3.5" })
576
+ children: /* @__PURE__ */ e(Vt, { className: "h-3.5 w-3.5" })
577
577
  }
578
578
  ),
579
579
  /* @__PURE__ */ e(et, { className: "truncate text-[13px] font-medium", children: "New group" }),
@@ -663,7 +663,7 @@ function us({
663
663
  onCreate: f,
664
664
  onDeleteRequest: h
665
665
  }) {
666
- const [g, v] = N(""), m = V(
666
+ const [g, v] = N(""), m = j(
667
667
  () => t.filter(
668
668
  (c) => !g.trim() || c.name.toLowerCase().includes(g.toLowerCase()) || (c.description || "").toLowerCase().includes(g.toLowerCase())
669
669
  ),
@@ -845,10 +845,10 @@ function ps({
845
845
  tenantId: t.tenantId || void 0,
846
846
  active: !0,
847
847
  limit: 200
848
- }), S = V(
848
+ }), S = j(
849
849
  () => new Set(l.map((y) => y.userId)),
850
850
  [l]
851
- ), b = is(), L = ds(), M = ss(), [k, E] = N(!1), [I, X] = N(t.name), [$e, j] = N(!1), [ae, z] = N(t.description || ""), [ne, se] = N(""), [Be, oe] = N(!1), Se = V(() => {
851
+ ), b = is(), L = ds(), M = ss(), [k, E] = N(!1), [I, X] = N(t.name), [$e, V] = N(!1), [ae, z] = N(t.description || ""), [ne, se] = N(""), [Be, oe] = N(!1), Se = j(() => {
852
852
  const y = ne.trim().toLowerCase();
853
853
  return w.filter((B) => !S.has(B.id)).filter(
854
854
  (B) => !y || (B.name || "").toLowerCase().includes(y) || (B.email || "").toLowerCase().includes(y)
@@ -865,7 +865,7 @@ function ps({
865
865
  }
866
866
  }, ie = async () => {
867
867
  const y = ae.trim();
868
- if (j(!1), y !== (t.description || ""))
868
+ if (V(!1), y !== (t.description || ""))
869
869
  try {
870
870
  await M.mutateAsync({
871
871
  groupId: t.id,
@@ -912,7 +912,7 @@ function ps({
912
912
  onClick: d,
913
913
  "aria-label": "Back",
914
914
  className: "-ml-1 flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
915
- children: /* @__PURE__ */ e(jt, { className: "h-3.5 w-3.5" })
915
+ children: /* @__PURE__ */ e(Vt, { className: "h-3.5 w-3.5" })
916
916
  }
917
917
  ),
918
918
  k ? /* @__PURE__ */ e(
@@ -957,7 +957,7 @@ function ps({
957
957
  onChange: (y) => z(y.target.value),
958
958
  maxLength: 200,
959
959
  onKeyDown: (y) => {
960
- y.key === "Escape" && (z(t.description || ""), j(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && ie();
960
+ y.key === "Escape" && (z(t.description || ""), V(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && ie();
961
961
  },
962
962
  placeholder: "What is this group for?",
963
963
  className: "block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
@@ -974,7 +974,7 @@ function ps({
974
974
  {
975
975
  type: "button",
976
976
  onClick: () => {
977
- z(t.description || ""), j(!1);
977
+ z(t.description || ""), V(!1);
978
978
  },
979
979
  className: "h-6 rounded-[5px] px-2 text-[11px] font-medium text-foreground/80 hover:bg-accent",
980
980
  children: "Cancel"
@@ -996,7 +996,7 @@ function ps({
996
996
  {
997
997
  type: "button",
998
998
  onClick: () => {
999
- n && (z(t.description || ""), j(!0));
999
+ n && (z(t.description || ""), V(!0));
1000
1000
  },
1001
1001
  disabled: !n,
1002
1002
  title: n ? "Click to edit description" : void 0,
@@ -1318,7 +1318,7 @@ function xs({
1318
1318
  ), { setDashboardExportDefaults: r } = C(
1319
1319
  (s) => s.actions
1320
1320
  );
1321
- return /* @__PURE__ */ e(Gt, { open: t, onOpenChange: a, children: /* @__PURE__ */ o(Vt, { className: "rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control", children: [
1321
+ return /* @__PURE__ */ e(Gt, { open: t, onOpenChange: a, children: /* @__PURE__ */ o(jt, { className: "rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control", children: [
1322
1322
  /* @__PURE__ */ o(Jr, { children: [
1323
1323
  /* @__PURE__ */ e(et, { className: "text-[15px]", children: "Download settings" }),
1324
1324
  /* @__PURE__ */ e(tt, { 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." })
@@ -1332,7 +1332,7 @@ function xs({
1332
1332
  onValueChange: (s) => r({ csvEncoding: s }),
1333
1333
  children: [
1334
1334
  /* @__PURE__ */ e(Fa, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(Ga, {}) }),
1335
- /* @__PURE__ */ e(Va, { children: Xr.map((s) => /* @__PURE__ */ e(ja, { value: s.value, children: s.label }, s.value)) })
1335
+ /* @__PURE__ */ e(ja, { children: Xr.map((s) => /* @__PURE__ */ e(Va, { value: s.value, children: s.label }, s.value)) })
1336
1336
  ]
1337
1337
  }
1338
1338
  )
@@ -1534,7 +1534,7 @@ function ks(t) {
1534
1534
  staleTime: 5 * 6e4,
1535
1535
  retry: !1
1536
1536
  }).data, { saved: d, draft: f, enabled: h } = t;
1537
- return V(() => !h || !d || !s ? [] : !s.bookmarks && !Object.keys(s.tables).length ? [] : Ns({ saved: d, draft: f, usage: s }), [f, h, d, s]);
1537
+ return j(() => !h || !d || !s ? [] : !s.bookmarks && !Object.keys(s.tables).length ? [] : Ns({ saved: d, draft: f, usage: s }), [f, h, d, s]);
1538
1538
  }
1539
1539
  function Bt(t, a, n) {
1540
1540
  return `${t} ${t === 1 ? a : n}`;
@@ -1610,11 +1610,11 @@ function ro() {
1610
1610
  inspectionMessage: v,
1611
1611
  isInspectionMode: m,
1612
1612
  isInspectionSurface: c
1613
- } = na(), { openBrandStudioPreview: u } = sa(), { permissions: l } = jn(), p = oa(), { isLoading: x } = ia(), w = C((i) => i.theme), S = C((i) => i.isDownloadingPdf), b = C((i) => i.dashboard), L = C((i) => i.selectedSheetId), M = (wt = b == null ? void 0 : b.sheets) == null ? void 0 : wt.find(
1613
+ } = na(), { openBrandStudioPreview: u } = sa(), { permissions: l } = Vn(), p = oa(), { isLoading: x } = ia(), w = C((i) => i.theme), S = C((i) => i.isDownloadingPdf), b = C((i) => i.dashboard), L = C((i) => i.selectedSheetId), M = (wt = b == null ? void 0 : b.sheets) == null ? void 0 : wt.find(
1614
1614
  (i) => i.id === L
1615
1615
  ), k = Nn(M), E = k ? (Nt = M == null ? void 0 : M.document) == null ? void 0 : Nt.page : void 0, I = C(
1616
1616
  (i) => i.isDashboardEditing
1617
- ), { setDashboardTitle: X } = C((i) => i.actions), [$e, j] = N(!1), [ae, z] = N(!1), [ne, se] = N(!1), [Be, oe] = N(!1), [Se, Z] = N(null), [ie, ke] = N(null), { registerBriefingViewer: Ce } = da();
1617
+ ), { setDashboardTitle: X } = C((i) => i.actions), [$e, V] = N(!1), [ae, z] = N(!1), [ne, se] = N(!1), [Be, oe] = N(!1), [Se, Z] = N(null), [ie, ke] = N(null), { registerBriefingViewer: Ce } = da();
1618
1618
  ge(
1619
1619
  () => Ce((i) => ke(i)),
1620
1620
  [Ce]
@@ -1643,7 +1643,7 @@ function ro() {
1643
1643
  }), bt = F ? {
1644
1644
  id: F.id,
1645
1645
  title: (b == null ? void 0 : b.title) || F.title || "Dashboard"
1646
- } : null, { handleAddNewFrame: xr } = ma(), [Ge, Ve] = N(!1), [vr, le] = N(!1), [je, Ie] = N("close"), ue = ha(Je.DASHBOARD), [_, me] = N(null), yr = async (i, R) => {
1646
+ } : null, { handleAddNewFrame: xr } = ma(), [Ge, je] = N(!1), [vr, le] = N(!1), [Ve, Ie] = N("close"), ue = ha(Je.DASHBOARD), [_, me] = N(null), yr = async (i, R) => {
1647
1647
  if (!m) {
1648
1648
  if (!(b != null && b.id)) {
1649
1649
  console.log("No dashboard ID found");
@@ -1687,7 +1687,7 @@ function ro() {
1687
1687
  }
1688
1688
  }
1689
1689
  }, [Ee, b == null ? void 0 : b.id, ft]);
1690
- const wr = a.orgUserId || a.tenantId, ze = V(
1690
+ const wr = a.orgUserId || a.tenantId, ze = j(
1691
1691
  () => Is({
1692
1692
  accessToken: t == null ? void 0 : t.accessToken,
1693
1693
  dashboardId: (b == null ? void 0 : b.id) || n || a.dashboard_id,
@@ -1753,10 +1753,10 @@ function ro() {
1753
1753
  }, Dr = async () => {
1754
1754
  await We({
1755
1755
  closeAfterSave: !0,
1756
- navigateHomeAfterSave: je === "home"
1756
+ navigateHomeAfterSave: Ve === "home"
1757
1757
  });
1758
1758
  }, Er = () => {
1759
- const i = je === "home" && !!ce;
1759
+ const i = Ve === "home" && !!ce;
1760
1760
  _ && qe(_.dashboard, {
1761
1761
  semanticExecutionPayload: _.semanticExecutionPayload
1762
1762
  }), Ae(), i && Fe(), Ie("close"), le(!1), he();
@@ -1782,7 +1782,7 @@ function ro() {
1782
1782
  const T = (i == null ? void 0 : i.closeAfterSave) ?? lt, te = (i == null ? void 0 : i.navigateHomeAfterSave) ?? !1;
1783
1783
  De(T), T && le(!1);
1784
1784
  const _r = at(R);
1785
- H(!0), K(null), Q([]), Ve(!0);
1785
+ H(!0), K(null), Q([]), je(!0);
1786
1786
  const Pr = {
1787
1787
  template: R
1788
1788
  };
@@ -1793,7 +1793,7 @@ function ro() {
1793
1793
  },
1794
1794
  {
1795
1795
  onSuccess: () => {
1796
- Ve(!1), fr(), D.success("Dashboard saved!"), me(
1796
+ je(!1), fr(), D.success("Dashboard saved!"), me(
1797
1797
  Ft(
1798
1798
  _r,
1799
1799
  C.getState().semanticExecutionPayload
@@ -1801,7 +1801,7 @@ function ro() {
1801
1801
  ), H(!1), De(!1), T && (Ae(), he(), te && ce && Fe()), Ie("close");
1802
1802
  },
1803
1803
  onError: (Tr) => {
1804
- Ve(!1), K("Failed to save dashboard. Please try again.");
1804
+ je(!1), K("Failed to save dashboard. Please try again.");
1805
1805
  const Me = Tr.details, Rr = Array.isArray(
1806
1806
  Me == null ? void 0 : Me.errors
1807
1807
  ) ? (Me.errors || []).filter(
@@ -2030,7 +2030,7 @@ function ro() {
2030
2030
  /* @__PURE__ */ e(ln, {}),
2031
2031
  f && h === !0 && !m && /* @__PURE__ */ e(un, {})
2032
2032
  ] }),
2033
- !U && d && O.width === "lg" && /* @__PURE__ */ e(Vn, {}),
2033
+ !U && d && O.width === "lg" && /* @__PURE__ */ e(jn, {}),
2034
2034
  Ye && /* @__PURE__ */ e(mn, {}),
2035
2035
  Ye && /* @__PURE__ */ o(Dt, { children: [
2036
2036
  /* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e(
@@ -2099,7 +2099,7 @@ function ro() {
2099
2099
  /* @__PURE__ */ e(be, {}),
2100
2100
  (W.showDashboardSharing || W.showGroupManagement) && /* @__PURE__ */ o($, { children: [
2101
2101
  /* @__PURE__ */ e(Pe, { children: "Access" }),
2102
- W.showDashboardSharing && /* @__PURE__ */ o(P, { onSelect: () => j(!0), children: [
2102
+ W.showDashboardSharing && /* @__PURE__ */ o(P, { onSelect: () => V(!0), children: [
2103
2103
  /* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" }),
2104
2104
  "Share"
2105
2105
  ] }),
@@ -2200,7 +2200,7 @@ function ro() {
2200
2200
  {
2201
2201
  resource: bt,
2202
2202
  resourceType: Je.DASHBOARD,
2203
- onClose: () => j(!1)
2203
+ onClose: () => V(!1)
2204
2204
  }
2205
2205
  ),
2206
2206
  W.showGroupManagement && /* @__PURE__ */ e(
@@ -2277,7 +2277,7 @@ function ro() {
2277
2277
  {
2278
2278
  onClick: () => We({
2279
2279
  closeAfterSave: lt,
2280
- navigateHomeAfterSave: je === "home"
2280
+ navigateHomeAfterSave: Ve === "home"
2281
2281
  }),
2282
2282
  className: "m-0",
2283
2283
  children: "Retry"
@@ -1,10 +1,10 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as u, useState as f, useRef as p, useEffect as b } from "react";
3
- import { u as a } from "./semaphor-ready-indicator-ChyotaWB.js";
4
- import { B as S, C as N } from "./switch-wJP6O7ZT.js";
3
+ import { u as a } from "./semaphor-ready-indicator-yM4wo-FH.js";
4
+ import { B as S, C as N } from "./switch-B-UTI6v-.js";
5
5
  import "./index-CuHybtft.js";
6
- import "./validators-C-aOQlTB.js";
7
- import "./matrix-operation-contract-D6vYkZK4.js";
6
+ import "./validators-ClKLGDGZ.js";
7
+ import "./matrix-operation-contract--lMaLlpV.js";
8
8
  import "./analytics-base-schemas-BKs3flFS.js";
9
9
  import "zod";
10
10
  import "../value-format-preferences/index.js";