react-semaphor 0.1.598 → 0.1.599

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 (89) hide show
  1. package/dist/analytics-protocol/index.js +329 -327
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-C86FsM8D.js → add-to-dashboard-ClhEIFst.js} +1 -1
  7. package/dist/chunks/{analytics-base-schemas-8wz9vqn_.js → analytics-base-schemas-DevrgqQb.js} +67 -60
  8. package/dist/chunks/{assistant-chat-DrI442Ld.js → assistant-chat-f3XuzrAm.js} +88 -89
  9. package/dist/chunks/{bookmark-impact-C6uWtNWF.js → bookmark-impact-B5hyttm2.js} +3 -3
  10. package/dist/chunks/{bookmark-state-BfeKmj5s.js → bookmark-state-h1OLXVjE.js} +153 -153
  11. package/dist/chunks/{card-filter-builder-CSKCSpNo.js → card-filter-builder-DfLqD2RV.js} +1035 -1063
  12. package/dist/chunks/{comparison-window-caption-3bum5j00.js → comparison-window-caption-DJDwP9XO.js} +6 -6
  13. package/dist/chunks/{context-CVXTFljo.js → context-BJoEFgNl.js} +1 -1
  14. package/dist/chunks/{dashboard-PYd63LbL.js → dashboard-CoI4aOUc.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-C2AuKs10.js → dashboard-briefing-launcher-RxYGtk-F.js} +255 -255
  16. package/dist/chunks/{dashboard-controls-BSbhyIkY.js → dashboard-controls-DeaXrtLK.js} +85 -85
  17. package/dist/chunks/{dashboard-json-Bd1rxD3y.js → dashboard-json-DvxKpKd_.js} +5 -5
  18. package/dist/chunks/dates-BhtO28Sn.js +164 -0
  19. package/dist/chunks/{edit-dashboard-visual-D_0ZiWev.js → edit-dashboard-visual-C4f5hONA.js} +5489 -5435
  20. package/dist/chunks/{filter-line-BdLyPYjH.js → filter-line-Dkg3yuOX.js} +6 -6
  21. package/dist/chunks/{filter-reach-copy-Dxn-mTuG.js → filter-reach-copy-Cl5Od38Q.js} +1740 -1643
  22. package/dist/chunks/{filter-value-text-C6g-nDUW.js → filter-value-text-CXyuLW9Q.js} +4 -4
  23. package/dist/chunks/{index-BHSDE54O.js → index-EKpTtkYF.js} +7 -7
  24. package/dist/chunks/{layout-grid-CYR-LVpl.js → layout-grid-DSrBSfPM.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-C0IGLTZH.js → matrix-analytical-definition-BuUSBDm7.js} +246 -218
  26. package/dist/chunks/{matrix-member-presentation-D5BIYuy5.js → matrix-member-presentation-B_2beBc0.js} +1 -1
  27. package/dist/chunks/{matrix-operation-contract-RckfqkQm.js → matrix-operation-contract-DdK0J_KU.js} +36 -36
  28. package/dist/chunks/{metric-comparison-DsE8wdRh.js → metric-comparison-Bhz0V841.js} +2 -2
  29. package/dist/chunks/{paintbrush-xDDRjIyF.js → paintbrush-1UiU-uTz.js} +1 -1
  30. package/dist/chunks/{palette-CbOgFCy2.js → palette-DFIFf_-m.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-Cnq55Uno.js → pivot-result-contract-expectations-Dk7WFR_u.js} +8 -8
  32. package/dist/chunks/{pivot-result-identity-b4-ugQhm.js → pivot-result-identity-CzzrJpEm.js} +1 -1
  33. package/dist/chunks/{raw-temporal-value-B9W38mi3.js → raw-temporal-value-BLvdaMng.js} +2 -2
  34. package/dist/chunks/{report-preferences-dialog-DTu3a7ce.js → report-preferences-dialog-CZaYsQLK.js} +14 -14
  35. package/dist/chunks/{report-runtime-context-BvJkcbar.js → report-runtime-context-CEGluufW.js} +2 -2
  36. package/dist/chunks/{resolve-dashboard-input-context-Bw-DesV2.js → resolve-dashboard-input-context-vPtbuDDz.js} +11811 -11331
  37. package/dist/chunks/{save-BgvAsp6X.js → save-CWQ02kHo.js} +1 -1
  38. package/dist/chunks/{saved-dashboard-context-BFh0oOnF.js → saved-dashboard-context-C6X5nP4C.js} +97 -97
  39. package/dist/chunks/{selection-filter-compiler-DHYsq3yM.js → selection-filter-compiler-Ce4BpjRX.js} +1 -1
  40. package/dist/chunks/{semaphor-ready-indicator-WvgHMnj8.js → semaphor-ready-indicator-BUiaKY6O.js} +59336 -58569
  41. package/dist/chunks/{shelf-drop-preview-context-D6HgYFJp.js → shelf-drop-preview-context-CwxWJjBv.js} +6 -6
  42. package/dist/chunks/{stored-dashboard-vlG0Knxi.js → stored-dashboard-Bmct-STp.js} +1200 -1183
  43. package/dist/chunks/{style-sheet-parts-ClmvtkSC.js → style-sheet-parts-BX7d7-2-.js} +198 -198
  44. package/dist/chunks/{table-export-sheet-Bv6tVuMu.js → table-export-sheet-BWSVTclx.js} +1 -1
  45. package/dist/chunks/{token-types-eMdcuB6j.js → token-types-CnlEiAdS.js} +1 -1
  46. package/dist/chunks/{upload-ClUeK8F0.js → upload-DsqUSS8l.js} +1 -1
  47. package/dist/chunks/{validators-DwhBEvnh.js → validators-D2Hm57lJ.js} +23 -13
  48. package/dist/chunks/{variable-draft-CauoSBN0.js → variable-draft-Bi-zUa_a.js} +4 -4
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +2497 -2549
  51. package/dist/format-utils/index.js +14 -14
  52. package/dist/index.js +48 -48
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/components/surfboard/filter/types.d.ts +13 -1
  57. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -2
  58. package/dist/types/components/visual/data-table/types/data-table.d.ts +14 -21
  59. package/dist/types/index.js +5 -5
  60. package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +11 -1
  61. package/dist/types/lib/dashboard-view-state/drill-path.d.ts +7 -0
  62. package/dist/types/lib/dashboard-viewer/table-view.d.ts +20 -0
  63. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +8 -0
  64. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +1 -0
  65. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +2 -0
  66. package/dist/types/lib/stores/dashboard-store.d.ts +3 -1
  67. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +64 -0
  68. package/dist/types/shared/analytics-protocol/column-filter-id.d.ts +4 -0
  69. package/dist/types/shared/analytics-protocol/contracts.d.ts +26 -0
  70. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  71. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +12 -1
  72. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +12 -0
  73. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  74. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
  75. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +4 -0
  76. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  77. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +18 -0
  78. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  79. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +2 -0
  80. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +8 -1
  81. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -1
  82. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +29 -1
  83. package/dist/types/shared/usage-events/attribution.d.ts +2 -2
  84. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  85. package/dist/usage-events/index.js +1 -1
  86. package/package.json +1 -1
  87. package/dist/chunks/aggregate-measure-field-DtKcEjG5.js +0 -22
  88. package/dist/chunks/dates-DHMCf-F7.js +0 -115
  89. package/dist/chunks/list-filter-B67GsjTw.js +0 -15
@@ -1,27 +1,27 @@
1
1
  import { jsx as e, jsxs as o, Fragment as R } from "react/jsx-runtime";
2
- import { bL as Fr, u as k, bM as $r, bN as Gr, bO as ot, bP as Vr, bQ as Hr, bR as jr, bS as qr, bT as zr, bU as Kr, b8 as Y, b5 as xe, bV as ve, bF as C, bW as Qr, bG as $t, bH as Gt, bJ as tt, bK as rt, bX as Vt, bY as it, bZ as Wr, b_ as ne, b$ as Yr, c0 as Jr, c1 as Ht, c2 as Xr, c3 as jt, c4 as Zr, bI as ea, c5 as ta, c6 as A, c7 as ra, c8 as aa, c9 as na, aS as sa, ca as oa, bv as ia, cb as da, bw as ca, p as la, aa as ua, am as Et, o as Be, x as ma, q as Xe, O as ha, cc as pa, cd as fa, a8 as ga, ce as ba, s as xa, cf as va, I as ya, cg as wa, ch as Na, ci as Sa, cj as At, ck as It, cl as Mt, cm as Da, bx as ka, cn as Ca, T as Ea, co as Aa, cp as Ia, cq as ae, cr as he, cs as Ma, ct as La, cu as Oa, cv as Lt, w as Pa, cw as _a, cx as Ta, cy as Ra, cz as Ua, cA as Ba, cB as Fa, cC as $a, cD as Ga, cE as Ot, Q as Va } from "./semaphor-ready-indicator-WvgHMnj8.js";
3
- import { c as ye, B as V, a3 as Ha, a4 as ja, a5 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-ClmvtkSC.js";
2
+ import { cy as Fr, u as k, cz as $r, cA as Gr, cB as ot, cC as Vr, cD as Hr, cE as jr, cF as qr, cG as zr, cH as Kr, b8 as J, b5 as xe, cI as ve, bF as C, cJ as Qr, bG as $t, bH as Gt, bJ as tt, bK as rt, cK as Vt, bZ as it, bU as Wr, bS as ne, cL as Jr, cM as Yr, cN as Ht, cO as Xr, cP as jt, bO as Zr, bI as ea, cQ as ta, cR as A, cS as ra, bL as aa, cT as na, aS as sa, cU as oa, bv as ia, cV as da, bw as ca, p as la, aa as ua, am as Et, o as Be, x as ma, q as Xe, O as ha, cW as pa, cX as fa, a8 as ga, cY as ba, s as xa, cZ as va, I as ya, c_ as wa, c$ as Na, d0 as Sa, d1 as At, d2 as It, d3 as Lt, d4 as Da, bx as ka, d5 as Ca, T as Ea, d6 as Aa, d7 as Ia, d8 as ae, d9 as he, da as La, db as Ma, dc as Oa, dd as Mt, w as Pa, de as _a, df as Ta, dg as Ra, dh as Ua, di as Ba, dj as Fa, dk as $a, dl as Ga, dm as Ot, Q as Va } from "./semaphor-ready-indicator-BUiaKY6O.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 Ja, e as Ya, 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-BX7d7-2-.js";
4
4
  import * as E from "react";
5
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
- import "./validators-DwhBEvnh.js";
8
- import "./matrix-operation-contract-RckfqkQm.js";
9
- import "./analytics-base-schemas-8wz9vqn_.js";
7
+ import "./validators-D2Hm57lJ.js";
8
+ import "./matrix-operation-contract-DdK0J_KU.js";
9
+ import "./analytics-base-schemas-DevrgqQb.js";
10
10
  import "../value-format-preferences/index.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-C2AuKs10.js";
12
- import { I as Dn } from "./card-filter-builder-CSKCSpNo.js";
13
- import { c as kn, R as Cn } from "./report-preferences-dialog-DTu3a7ce.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-RxYGtk-F.js";
12
+ import { I as Dn } from "./card-filter-builder-DfLqD2RV.js";
13
+ import { c as kn, R as Cn } from "./report-preferences-dialog-CZaYsQLK.js";
14
14
  import { createPortal as En } from "react-dom";
15
- import { gc as we, gd as dt, ge as Qt, t as An } from "./resolve-dashboard-input-context-Bw-DesV2.js";
16
- import { aU as Wt } from "./pivot-result-contract-expectations-Cnq55Uno.js";
17
- import { g as nt } from "./stored-dashboard-vlG0Knxi.js";
15
+ import { h3 as we, h4 as dt, h5 as Qt, v as An } from "./resolve-dashboard-input-context-vPtbuDDz.js";
16
+ import { aU as Wt } from "./pivot-result-contract-expectations-Dk7WFR_u.js";
17
+ import { g as nt } from "./stored-dashboard-Bmct-STp.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 { A as Yt } from "./bookmark-state-BfeKmj5s.js";
21
- import { d as On, a as Pn } from "./bookmark-impact-C6uWtNWF.js";
22
- import { S as _n } from "./save-BgvAsp6X.js";
23
- import { P as Tn } from "./paintbrush-xDDRjIyF.js";
24
- import { P as Rn } from "./palette-CbOgFCy2.js";
19
+ import { u as Ln, s as Mn } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
20
+ import { A as Jt } from "./bookmark-state-h1OLXVjE.js";
21
+ import { d as On, a as Pn } from "./bookmark-impact-B5hyttm2.js";
22
+ import { S as _n } from "./save-CWQ02kHo.js";
23
+ import { P as Tn } from "./paintbrush-1UiU-uTz.js";
24
+ import { P as Rn } from "./palette-DFIFf_-m.js";
25
25
  /**
26
26
  * @license lucide-react v0.453.0 - ISC
27
27
  *
@@ -83,7 +83,7 @@ const $n = ye("UserPlus", [
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
85
  */
86
- const Jt = ye("UserRound", [
86
+ const Yt = ye("UserRound", [
87
87
  ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
88
88
  ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
89
89
  ]);
@@ -330,16 +330,16 @@ var Qn = [
330
330
  }, {});
331
331
  function Wn() {
332
332
  return Hn.useSyncExternalStore(
333
- Yn,
333
+ Jn,
334
334
  () => !0,
335
335
  () => !1
336
336
  );
337
337
  }
338
- function Yn() {
338
+ function Jn() {
339
339
  return () => {
340
340
  };
341
341
  }
342
- var lt = "Avatar", [Jn] = zn(lt), [Xn, Xt] = Jn(lt), Zt = E.forwardRef(
342
+ var lt = "Avatar", [Yn] = zn(lt), [Xn, Xt] = Yn(lt), Zt = E.forwardRef(
343
343
  (t, n) => {
344
344
  const { __scopeAvatar: a, ...r } = t, [s, c] = E.useState("idle");
345
345
  return /* @__PURE__ */ e(
@@ -449,7 +449,7 @@ const ts = async (t, n, a) => {
449
449
  await dt(s, n, "DELETE", r);
450
450
  };
451
451
  function os() {
452
- const { authToken: t, tokenProps: n } = Y(), a = xe();
452
+ const { authToken: t, tokenProps: n } = J(), a = xe();
453
453
  return ve({
454
454
  mutationFn: (r) => ts(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
455
455
  onSuccess: () => {
@@ -463,7 +463,7 @@ function os() {
463
463
  });
464
464
  }
465
465
  function is() {
466
- const { authToken: t, tokenProps: n } = Y(), a = xe();
466
+ const { authToken: t, tokenProps: n } = J(), a = xe();
467
467
  return ve({
468
468
  mutationFn: ({
469
469
  groupId: r,
@@ -480,7 +480,7 @@ function is() {
480
480
  });
481
481
  }
482
482
  function ds() {
483
- const { authToken: t, tokenProps: n } = Y(), a = xe();
483
+ const { authToken: t, tokenProps: n } = J(), a = xe();
484
484
  return ve({
485
485
  mutationFn: (r) => as(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
486
486
  onSuccess: (r, s) => {
@@ -494,7 +494,7 @@ function ds() {
494
494
  });
495
495
  }
496
496
  function cs() {
497
- const { authToken: t, tokenProps: n } = Y(), a = xe();
497
+ const { authToken: t, tokenProps: n } = J(), a = xe();
498
498
  return ve({
499
499
  mutationFn: ({
500
500
  groupId: r,
@@ -513,7 +513,7 @@ function cs() {
513
513
  });
514
514
  }
515
515
  function ls() {
516
- const { authToken: t, tokenProps: n } = Y(), a = xe();
516
+ const { authToken: t, tokenProps: n } = J(), a = xe();
517
517
  return ve({
518
518
  mutationFn: ({
519
519
  groupId: r,
@@ -537,7 +537,7 @@ function ms({
537
537
  onOpenChange: n
538
538
  }) {
539
539
  var O, b, F;
540
- const { tokenProps: a } = Y(), { currentUser: r } = ot(), s = (r == null ? void 0 : r.type) === "tenant", c = a == null ? void 0 : a.tenantId, {
540
+ const { tokenProps: a } = J(), { currentUser: r } = ot(), s = (r == null ? void 0 : r.type) === "tenant", c = a == null ? void 0 : a.tenantId, {
541
541
  groups: u,
542
542
  isLoading: m,
543
543
  error: p,
@@ -760,7 +760,7 @@ function ps({
760
760
  /* @__PURE__ */ e("div", { className: "truncate text-[13px] font-medium text-foreground", children: t.name }),
761
761
  /* @__PURE__ */ o("div", { className: "mt-0.5 flex items-center gap-2 text-[11px] text-muted-foreground", children: [
762
762
  /* @__PURE__ */ o("span", { className: "inline-flex items-center gap-1", children: [
763
- /* @__PURE__ */ e(Jt, { className: "h-2.5 w-2.5" }),
763
+ /* @__PURE__ */ e(Yt, { className: "h-2.5 w-2.5" }),
764
764
  t.memberCount,
765
765
  " member",
766
766
  t.memberCount === 1 ? "" : "s"
@@ -836,7 +836,7 @@ function gs({
836
836
  isLoading: g,
837
837
  error: i,
838
838
  refetch: f
839
- } = Yr(t.id), l = (y == null ? void 0 : y.members) ?? us, x = i ? cr(i, "Unable to load members for this group.") : null, h = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Jr({
839
+ } = Jr(t.id), l = (y == null ? void 0 : y.members) ?? us, x = i ? cr(i, "Unable to load members for this group.") : null, h = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Yr({
840
840
  type: h,
841
841
  tenantId: t.tenantId || void 0,
842
842
  active: !0,
@@ -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, Y] = 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({
@@ -861,7 +861,7 @@ function gs({
861
861
  }
862
862
  }, te = async () => {
863
863
  const v = X.trim();
864
- if (J(!1), v !== (t.description || ""))
864
+ if (Y(!1), v !== (t.description || ""))
865
865
  try {
866
866
  await F.mutateAsync({
867
867
  groupId: t.id,
@@ -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) => {
@@ -937,7 +937,7 @@ function gs({
937
937
  }
938
938
  ),
939
939
  /* @__PURE__ */ o("span", { className: "ml-1 inline-flex shrink-0 items-center gap-1 text-[10.5px] text-muted-foreground", children: [
940
- /* @__PURE__ */ e(Jt, { className: "h-2.5 w-2.5" }),
940
+ /* @__PURE__ */ e(Yt, { className: "h-2.5 w-2.5" }),
941
941
  l.length,
942
942
  " member",
943
943
  l.length === 1 ? "" : "s"
@@ -953,7 +953,7 @@ function gs({
953
953
  onChange: (v) => Z(v.target.value),
954
954
  maxLength: 200,
955
955
  onKeyDown: (v) => {
956
- v.key === "Escape" && (Z(t.description || ""), J(!1)), v.key === "Enter" && (v.metaKey || v.ctrlKey) && te();
956
+ v.key === "Escape" && (Z(t.description || ""), Y(!1)), v.key === "Enter" && (v.metaKey || v.ctrlKey) && te();
957
957
  },
958
958
  placeholder: "What is this group for?",
959
959
  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"
@@ -970,7 +970,7 @@ function gs({
970
970
  {
971
971
  type: "button",
972
972
  onClick: () => {
973
- Z(t.description || ""), J(!1);
973
+ Z(t.description || ""), Y(!1);
974
974
  },
975
975
  className: "h-6 rounded-[5px] px-2 text-[11px] font-medium text-foreground/80 hover:bg-accent",
976
976
  children: "Cancel"
@@ -992,7 +992,7 @@ function gs({
992
992
  {
993
993
  type: "button",
994
994
  onClick: () => {
995
- a && (Z(t.description || ""), J(!0));
995
+ a && (Z(t.description || ""), Y(!0));
996
996
  },
997
997
  disabled: !a,
998
998
  title: a ? "Click to edit description" : void 0,
@@ -1328,7 +1328,7 @@ function ys({
1328
1328
  onValueChange: (s) => r({ csvEncoding: s }),
1329
1329
  children: [
1330
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)) })
1331
+ /* @__PURE__ */ e(Wa, { children: ta.map((s) => /* @__PURE__ */ e(Ja, { value: s.value, children: s.label }, s.value)) })
1332
1332
  ]
1333
1333
  }
1334
1334
  )
@@ -1342,14 +1342,14 @@ function pe(t, n, a) {
1342
1342
  );
1343
1343
  if (r)
1344
1344
  return r.label;
1345
- const s = (u = (c = Yt(t, n)) == null ? void 0 : c.controls) == null ? void 0 : u.find(
1345
+ const s = (u = (c = Jt(t, n)) == null ? void 0 : c.controls) == null ? void 0 : u.find(
1346
1346
  (m) => m.id === a
1347
1347
  );
1348
1348
  return (s == null ? void 0 : s.label) || a;
1349
1349
  }
1350
1350
  function fe(t, n) {
1351
1351
  var a;
1352
- return ((a = Yt(t, n)) == null ? void 0 : a.title) || n;
1352
+ return ((a = Jt(t, n)) == null ? void 0 : a.title) || n;
1353
1353
  }
1354
1354
  function ws(t) {
1355
1355
  const { errors: n, dashboard: a } = t;
@@ -1484,7 +1484,7 @@ 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(Ja, { children: [
1487
+ return r.length ? /* @__PURE__ */ o(Ya, { children: [
1488
1488
  /* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ o(
1489
1489
  V,
1490
1490
  {
@@ -1537,7 +1537,7 @@ function Xs() {
1537
1537
  id: a,
1538
1538
  showBriefings: r,
1539
1539
  toolbarStatus: s
1540
- } = Y(), c = sa(), { isLocalDev: u, isConsoleMode: m } = oa(), {
1540
+ } = J(), c = sa(), { isLocalDev: u, isConsoleMode: m } = oa(), {
1541
1541
  canEditDashboard: p,
1542
1542
  hasInspectionUser: y,
1543
1543
  inspectionMessage: g,
@@ -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
- ), { 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();
1550
+ ), { setDashboardTitle: Ne } = k((d) => d.actions), [Y, 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
@@ -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 } = ga(), [Ve, He] = N(!1), [yr, de] = N(!1), [je, Pe] = N("close"), ce = ba(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,10 +1649,10 @@ 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
1657
  const d = xa(k.getState());
1658
1658
  le(
@@ -1660,44 +1660,44 @@ function Xs() {
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
1673
+ Mn
1674
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
  }
1685
1685
  xt() ? (Pe("close"), de(!0)) : (_e(), ue());
1686
1686
  }, Er = async () => {
1687
- await Ye({
1687
+ await Je({
1688
1688
  closeAfterSave: !0,
1689
1689
  navigateHomeAfterSave: je === "home"
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);
@@ -1706,16 +1706,16 @@ function Xs() {
1706
1706
  Ge();
1707
1707
  }
1708
1708
  };
1709
- async function Ye(d) {
1709
+ async function Je(d) {
1710
1710
  if (i)
1711
1711
  return;
1712
1712
  const T = k.getState().dashboard;
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,10 +1756,10 @@ 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 = va(
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 = cn(W), Je = ln();
1762
+ ), Re = cn(W), Ye = ln();
1763
1763
  if (!h && !U)
1764
1764
  return null;
1765
1765
  const me = !U && h && !i, Nt = D && me;
@@ -1776,7 +1776,7 @@ function Xs() {
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
1782
  children: /* @__PURE__ */ e(wa, { className: "h-3.5 w-3.5" })
@@ -1860,7 +1860,7 @@ function Xs() {
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",
@@ -1938,7 +1938,7 @@ function Xs() {
1938
1938
  size: "xs",
1939
1939
  className: be(!vt && "opacity-60"),
1940
1940
  disabled: Te || !vt,
1941
- onClick: () => Ye(),
1941
+ onClick: () => Je(),
1942
1942
  children: [
1943
1943
  Te ? /* @__PURE__ */ e($e, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(_n, { className: "h-3.5 w-3.5" }),
1944
1944
  Te ? "Saving..." : "Save"
@@ -1980,7 +1980,7 @@ function Xs() {
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",
@@ -2008,7 +2008,7 @@ function Xs() {
2008
2008
  disabled: O,
2009
2009
  onSelect: () => B(!0),
2010
2010
  children: [
2011
- /* @__PURE__ */ e(Ma, { 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(La, { 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
  }
@@ -2053,10 +2053,10 @@ function Xs() {
2053
2053
  ] }),
2054
2054
  Nt && /* @__PURE__ */ o(R, { children: [
2055
2055
  /* @__PURE__ */ e(he, { children: "Dashboard" }),
2056
- /* @__PURE__ */ o(A, { onSelect: Je.open, children: [
2056
+ /* @__PURE__ */ o(A, { onSelect: Ye.open, children: [
2057
2057
  /* @__PURE__ */ e(Pt, { className: "h-3.5 w-3.5" }),
2058
- /* @__PURE__ */ e("span", { className: "flex-1", children: Je.label }),
2059
- /* @__PURE__ */ e("span", { className: "pl-4 text-[11px] tabular-nums text-muted-foreground", children: Je.count })
2058
+ /* @__PURE__ */ e("span", { className: "flex-1", children: Ye.label }),
2059
+ /* @__PURE__ */ e("span", { className: "pl-4 text-[11px] tabular-nums text-muted-foreground", children: Ye.count })
2060
2060
  ] }),
2061
2061
  /* @__PURE__ */ o(A, { onSelect: gr, children: [
2062
2062
  /* @__PURE__ */ e(Tn, { className: "h-3.5 w-3.5" }),
@@ -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
  }
@@ -2144,7 +2144,7 @@ function Xs() {
2144
2144
  }
2145
2145
  )
2146
2146
  ] }),
2147
- J && bt && /* @__PURE__ */ e(
2147
+ Y && bt && /* @__PURE__ */ e(
2148
2148
  Pa,
2149
2149
  {
2150
2150
  resource: bt,
@@ -2199,7 +2199,7 @@ function Xs() {
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
2204
  children: /* @__PURE__ */ o(Ra, { className: "max-w-sm", children: [
2205
2205
  /* @__PURE__ */ o(Ua, { children: [
@@ -2215,7 +2215,7 @@ function Xs() {
2215
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"
@@ -2224,7 +2224,7 @@ function Xs() {
2224
2224
  /* @__PURE__ */ e(
2225
2225
  Ot,
2226
2226
  {
2227
- onClick: () => Ye({
2227
+ onClick: () => Je({
2228
2228
  closeAfterSave: ut,
2229
2229
  navigateHomeAfterSave: je === "home"
2230
2230
  }),
@@ -1,11 +1,11 @@
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-WvgHMnj8.js";
4
- import { B as S, X as N, C as D } from "./style-sheet-parts-ClmvtkSC.js";
3
+ import { u as o } from "./semaphor-ready-indicator-BUiaKY6O.js";
4
+ import { B as S, X as N, C as D } from "./style-sheet-parts-BX7d7-2-.js";
5
5
  import { c as J } from "./pickers-DkqmtnTL.js";
6
- import "./validators-DwhBEvnh.js";
7
- import "./matrix-operation-contract-RckfqkQm.js";
8
- import "./analytics-base-schemas-8wz9vqn_.js";
6
+ import "./validators-D2Hm57lJ.js";
7
+ import "./matrix-operation-contract-DdK0J_KU.js";
8
+ import "./analytics-base-schemas-DevrgqQb.js";
9
9
  import "../value-format-preferences/index.js";
10
10
  function z() {
11
11
  const r = o((s) => s.dashboard), c = o((s) => s.actions.setDashboard), h = o(