react-semaphor 0.1.551 → 0.1.553

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 +8 -8
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +64 -57
  4. package/dist/brand-studio/index.js +3 -3
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{assistant-chat-B8kslmny.js → assistant-chat-DaIdRbbd.js} +3152 -2817
  7. package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-aGO7_ryE.js} +3 -3
  8. package/dist/chunks/{comparison-window-caption-C2xF-eWw.js → comparison-window-caption-BugAu7zS.js} +7 -7
  9. package/dist/chunks/{custom-visual-inputs-CwAcigQS.js → custom-visual-inputs-D7ez5sab.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DnnvLeAs.js → dashboard-briefing-launcher-DBJ0xrfF.js} +62 -62
  11. package/dist/chunks/{dashboard-controls-BYDt0QZL.js → dashboard-controls-CDX74NTl.js} +46 -46
  12. package/dist/chunks/{dashboard-json-BligXqcU.js → dashboard-json-Cf5dpYTr.js} +4 -4
  13. package/dist/chunks/{dashboard-BcAQSgm-.js → dashboard-z3GYw7xR.js} +1 -1
  14. package/dist/chunks/{document-dashboard-inputs-DPQ_wUGD.js → document-dashboard-inputs-LMMWPOwU.js} +119 -119
  15. package/dist/chunks/{edit-dashboard-visual-8-Fd4EcE.js → edit-dashboard-visual-hCGiyxgm.js} +18 -18
  16. package/dist/chunks/{filter-reach-copy-8vnDYToV.js → filter-reach-copy-BG5qVZKS.js} +48 -48
  17. package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DwP5dN9m.js} +2 -2
  18. package/dist/chunks/{global-date-filter-utils-CnumW4j2.js → global-date-filter-utils-Ce6Ydv2W.js} +5934 -5723
  19. package/dist/chunks/{index-DzsdV1o4.js → index-C_UIqop8.js} +9 -9
  20. package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-cvzKdxPE.js} +2 -2
  21. package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-VFE-yDlr.js} +2 -2
  22. package/dist/chunks/{matrix-formatter-DWEeC0_c.js → matrix-formatter-B27bz08Y.js} +3 -3
  23. package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DyC-e9pD.js} +1 -1
  24. package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract-L_SiObB7.js} +1 -1
  25. package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-B5gyyW9k.js} +1 -1
  26. package/dist/chunks/model-change-B0rAK-5w.js +230 -0
  27. package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-BQFfowp1.js} +1 -1
  28. package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-dZIYsMrY.js} +1 -1
  29. package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-D0kSz5QX.js} +6 -6
  30. package/dist/chunks/{raw-temporal-presentation-CBKeEPYA.js → raw-temporal-presentation-BWRH754b.js} +6 -6
  31. package/dist/chunks/{report-preferences-dialog-DAQEooIW.js → report-preferences-dialog-DvabpYcC.js} +49 -49
  32. package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-CKiIubIu.js} +1 -1
  33. package/dist/chunks/{resolve-dashboard-input-context-DVWF7p5C.js → resolve-dashboard-input-context-Ctq1YCDV.js} +2049 -1975
  34. package/dist/chunks/{saved-dashboard-context-BMqMzNAo.js → saved-dashboard-context-Bt1E9d1l.js} +8 -8
  35. package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-DdPwKDDQ.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-Dq1ElALH.js → semaphor-ready-indicator-Cc1TG_gw.js} +10388 -10390
  37. package/dist/chunks/{shelf-drop-preview-context-CHm8lqfo.js → shelf-drop-preview-context-Ch9XqytU.js} +119 -119
  38. package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-DkW3Iek5.js} +1 -1
  39. package/dist/chunks/{switch-wJP6O7ZT.js → switch-gm7RW-PW.js} +2 -2
  40. package/dist/chunks/{table-export-sheet-4X9mAG3V.js → table-export-sheet-C7bDdC8r.js} +1 -1
  41. package/dist/chunks/{table-settings-WysCBj62.js → table-settings-CBm7G0yx.js} +224 -201
  42. package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-BikY3FFR.js} +1 -1
  43. package/dist/chunks/{token-types-BMqRmT-C.js → token-types-B1p9F_wS.js} +1 -1
  44. package/dist/chunks/{use-create-flow-overlay-state-b_fGSj_5.js → use-create-flow-overlay-state-CZdDRUpc.js} +6 -6
  45. package/dist/chunks/{validators-C-aOQlTB.js → validators-BdBzm_EV.js} +17 -16
  46. package/dist/dashboard/index.js +2 -2
  47. package/dist/dashboard-authoring/index.js +273 -264
  48. package/dist/data-app-sdk/index.js +5 -5
  49. package/dist/data-app-sdk-adapters/index.js +2 -2
  50. package/dist/data-app-sdk-validation/index.js +5 -5
  51. package/dist/format-utils/index.js +15 -15
  52. package/dist/index.js +21 -21
  53. package/dist/report-runtime-context/index.js +1 -1
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/index.js +6 -6
  57. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
  58. package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
  59. package/dist/types/lib/utils/card-type-change.d.ts +5 -1
  60. package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
  61. package/dist/types/shared/assistant-protocol/answer-text.d.ts +23 -0
  62. package/dist/types/shared/assistant-protocol/conversation-text.d.ts +29 -0
  63. package/dist/types/shared/assistant-protocol/conversation.d.ts +24 -3
  64. package/dist/types/shared/assistant-protocol/index.d.ts +2 -0
  65. package/dist/types/shared/assistant-protocol/model-change.d.ts +19 -0
  66. package/dist/types/shared/assistant-protocol/parts.d.ts +45 -1
  67. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +8 -3
  68. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +7 -1
  69. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
  70. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  71. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +64 -0
  72. package/package.json +2 -2
  73. package/dist/chunks/add-to-dashboard-BQRAAnc3.js +0 -102
@@ -1,20 +1,20 @@
1
- import { cV as vt, cW as Se, cX as M, cY as R, cZ as Ve, d as W, c_ as Dt, c$ as yt, d0 as St, d1 as Vt, d2 as Ft, d3 as Fe, d4 as kt, d5 as ne, d6 as Y, d7 as oe, d8 as Mt, Y as se, i as z, d9 as Tt, da as Ot, db as j, dc as ie, dd as $, de as ke, df as xt, dg as Pt, dh as wt, v as Me, di as Et, dj as Rt, dk as Bt, bY as Te, dl as Oe, V as xe, dm as Pe, n as we, a as Ee, dn as qt, bp as At, _ as Nt, as as Re, bo as Be, dp as jt, ba as zt, a3 as qe, a2 as _t, dq as Ae } from "./global-date-filter-utils-CnumW4j2.js";
2
- import { K as Gt, r as re, S as Lt, T as Ht, U as Kt, V as Qt, W as $t, l as ae, X as Ut, D as Ne, Y as Wt, L as Yt, x as Zt, Z as Jt, _ as Xt, $ as en, a0 as tn, a1 as nn, a2 as on, a3 as sn, H as rn, a4 as an, c as ln, a5 as je, a6 as dn, a7 as cn, y as un, a8 as fn, E as pn, a9 as ze, aa as mn, ab as In } from "./resolve-dashboard-input-context-DVWF7p5C.js";
3
- import { ao as bn } from "./validators-C-aOQlTB.js";
4
- import { b as le } from "./matrix-operation-contract-D6vYkZK4.js";
1
+ import { cX as vt, cY as Se, cZ as M, c_ as R, c$ as Fe, d as Y, d0 as yt, d1 as Dt, d2 as St, d3 as Ft, d4 as Vt, d5 as Ve, d6 as kt, d7 as ne, d8 as W, d9 as oe, da as Mt, Y as se, i as z, db as Tt, dc as Ot, dd as j, de as ie, df as $, dg as ke, dh as xt, di as Pt, dj as wt, v as Me, dk as Et, dl as Rt, dm as Bt, b_ as Te, dn as Oe, V as xe, dp as Pe, n as we, a as Ee, dq as qt, br as At, _ as Nt, as as Re, bq as Be, dr as jt, bc as zt, a3 as qe, a2 as _t, ds as Ae } from "./global-date-filter-utils-Ce6Ydv2W.js";
2
+ import { Q as Gt, r as re, Y as Lt, Z as Ht, _ as Kt, $ as Qt, a0 as $t, l as ae, a1 as Ut, I as Ne, a2 as Yt, R as Wt, x as Zt, a3 as Jt, a4 as Xt, a5 as en, a6 as tn, a7 as nn, a8 as on, a9 as sn, N as rn, aa as an, c as ln, ab as je, ac as dn, ad as cn, y as un, ae as fn, J as pn, af as ze, ag as mn, ah as In } from "./resolve-dashboard-input-context-Ctq1YCDV.js";
3
+ import { ao as bn } from "./validators-BdBzm_EV.js";
4
+ import { b as le } from "./matrix-operation-contract-L_SiObB7.js";
5
5
  import "./analytics-base-schemas-BKs3flFS.js";
6
6
  import "zod";
7
7
  import "./index-CuHybtft.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import "./_commonjsHelpers-DimLPMtv.js";
10
- import "./pivot-result-lifecycle-pwq3b7LC.js";
11
- import { I as hn, z as de, J as B, H as X, q as gn, j as Cn, o as vn, K as G, A as Dn } from "./table-settings-WysCBj62.js";
10
+ import "./pivot-result-lifecycle-D0kSz5QX.js";
11
+ import { J as hn, z as de, K as B, I as X, q as gn, j as Cn, o as vn, L as G, A as yn } from "./table-settings-CBm7G0yx.js";
12
12
  import "./index-CtoK1Lgu.js";
13
- import { r as _e, B as ce } from "./bookmark-state-Cu-a5ie_.js";
14
- import { n as he } from "./matrix-formatter-DWEeC0_c.js";
15
- import { r as yn, i as Ge } from "./matrix-card-LiMEipvq.js";
16
- import { D as Sn } from "./report-runtime-context-hWiTCzFV.js";
17
- import { c as Vn } from "./selection-filter-compiler-BKXmyLrS.js";
13
+ import { r as _e, B as ce } from "./bookmark-state-aGO7_ryE.js";
14
+ import { n as he } from "./matrix-formatter-B27bz08Y.js";
15
+ import { r as Dn, i as Ge } from "./matrix-card-VFE-yDlr.js";
16
+ import { D as Sn } from "./report-runtime-context-CKiIubIu.js";
17
+ import { c as Fn } from "./selection-filter-compiler-BKXmyLrS.js";
18
18
  function ue(e, t) {
19
19
  const n = {};
20
20
  for (const o of hn(e)) {
@@ -29,7 +29,7 @@ function ue(e, t) {
29
29
  }
30
30
  return n;
31
31
  }
32
- const Fn = [];
32
+ const Vn = [];
33
33
  function kn(e) {
34
34
  return e.label || e.name;
35
35
  }
@@ -174,14 +174,14 @@ function He({
174
174
  card: a.card
175
175
  }).allInputs
176
176
  ).filter(
177
- (d) => St(d, a) && W(d, a)
177
+ (d) => St(d, a) && Y(d, a)
178
178
  );
179
179
  for (const d of c) {
180
- const l = Vt(
180
+ const l = Ft(
181
181
  s,
182
182
  d,
183
183
  a
184
- ), u = Ve(
184
+ ), u = Fe(
185
185
  d,
186
186
  l
187
187
  );
@@ -209,7 +209,7 @@ function He({
209
209
  });
210
210
  continue;
211
211
  }
212
- u.status === "set" && Ft(d) && !u.comparisonSelection && (s = R(
212
+ u.status === "set" && Vt(d) && !u.comparisonSelection && (s = R(
213
213
  s,
214
214
  d,
215
215
  a,
@@ -376,7 +376,7 @@ function is({
376
376
  );
377
377
  let c = e || {};
378
378
  for (const f of t.inputs) {
379
- if (f.kind !== "filter" || !W(f, {
379
+ if (f.kind !== "filter" || !Y(f, {
380
380
  sheetId: o,
381
381
  cardId: s,
382
382
  sectionId: i,
@@ -385,8 +385,8 @@ function is({
385
385
  continue;
386
386
  const p = ((l = f.filter) == null ? void 0 : l.id) || ((u = f.filterReference) == null ? void 0 : u.filterId);
387
387
  if (!p) continue;
388
- const m = a.get(p), I = m ? Dt(m) : void 0, b = (I == null ? void 0 : I.status) === "set" ? I : { status: "cleared" };
389
- c = yt(
388
+ const m = a.get(p), I = m ? yt(m) : void 0, b = (I == null ? void 0 : I.status) === "set" ? I : { status: "cleared" };
389
+ c = Dt(
390
390
  c,
391
391
  f,
392
392
  { sheetId: o, cardId: s, sectionId: i },
@@ -584,7 +584,7 @@ function Gn({
584
584
  );
585
585
  let r = {};
586
586
  for (const a of e) {
587
- const c = i.get(a.id), d = Ve(a, c == null ? void 0 : c.slot) || { status: "cleared" };
587
+ const c = i.get(a.id), d = Fe(a, c == null ? void 0 : c.slot) || { status: "cleared" };
588
588
  r = R(
589
589
  r,
590
590
  a,
@@ -659,7 +659,7 @@ function U(e, t, n) {
659
659
  s[t.target] = { ...s[t.target], [t.inputId]: n }, o[t.scope] = s;
660
660
  }
661
661
  function Ue(e, t, n) {
662
- const o = Fe(
662
+ const o = Ve(
663
663
  e,
664
664
  t.controlOverrides,
665
665
  { hasExplicitRuntimeOverrides: t.controlOverrides !== void 0 }
@@ -673,16 +673,16 @@ function Ue(e, t, n) {
673
673
  };
674
674
  }
675
675
  function fe(e, t, n) {
676
- return We(
676
+ return Ye(
677
677
  e,
678
678
  Ue(e, t, n),
679
679
  n
680
680
  );
681
681
  }
682
682
  function rs(e, t, n) {
683
- return We(e, t, n);
683
+ return Ye(e, t, n);
684
684
  }
685
- function We(e, t, n) {
685
+ function Ye(e, t, n) {
686
686
  const o = e.sheets ?? [], s = o.filter((a) => (a.kind ?? "dashboard") === "dashboard").map((a) => a.id), i = o.filter((a) => a.kind === "document"), r = s.length ? An({
687
687
  dashboard: e,
688
688
  sheetIds: s,
@@ -713,7 +713,7 @@ function We(e, t, n) {
713
713
  r
714
714
  );
715
715
  }
716
- function Ye(e, t) {
716
+ function We(e, t) {
717
717
  const n = {}, o = {}, s = /* @__PURE__ */ new Map();
718
718
  for (const i of _(t)) {
719
719
  const r = e.get(i.inputId), { slot: a } = i, c = () => a.status === "set" && a.value.kind === "filter" ? a.value.filterValue : a.status === "cleared" ? null : void 0;
@@ -748,7 +748,7 @@ function Hn(e, t) {
748
748
  }
749
749
  function Ze(e, t, n) {
750
750
  if (!Object.keys(n).length) return t;
751
- const o = Fe(
751
+ const o = Ve(
752
752
  e,
753
753
  t,
754
754
  { hasExplicitRuntimeOverrides: t !== void 0 }
@@ -786,7 +786,7 @@ function Qn(e, t, n) {
786
786
  const u = c == null ? void 0 : c.get(l.filterId);
787
787
  return u ? ne(u, l) : !1;
788
788
  });
789
- Y(d, i[r] ?? []) || (s = !0), i[r] = d;
789
+ W(d, i[r] ?? []) || (s = !0), i[r] = d;
790
790
  }
791
791
  return s ? i : void 0;
792
792
  }
@@ -815,7 +815,7 @@ function Un(e, t) {
815
815
  }
816
816
  return o ? i : t;
817
817
  }
818
- function Wn(e) {
818
+ function Yn(e) {
819
819
  var t, n;
820
820
  return ((n = (t = e.sheets) == null ? void 0 : t[0]) == null ? void 0 : n.id) ?? null;
821
821
  }
@@ -826,7 +826,7 @@ function L(e, t) {
826
826
  function as(e) {
827
827
  const { dashboard: t, host: n, calendar: o } = e, s = Ne(t, n.filterValues, {
828
828
  calendar: o
829
- }).slots, i = n.controlValues, r = L(t, n.selectedSheetId) ? n.selectedSheetId : Wn(t);
829
+ }).slots, i = n.controlValues, r = L(t, n.selectedSheetId) ? n.selectedSheetId : Yn(t);
830
830
  return {
831
831
  hostInputValues: s,
832
832
  controlOverrides: i,
@@ -934,7 +934,7 @@ function et(e, t, n, o) {
934
934
  // Document sections are not viewer state.
935
935
  });
936
936
  }
937
- function F(e, t, n, o = {}) {
937
+ function V(e, t, n, o = {}) {
938
938
  const s = new Map(
939
939
  B(e).map(({ card: r }) => [r.id, r])
940
940
  ), i = {};
@@ -957,7 +957,7 @@ function F(e, t, n, o = {}) {
957
957
  }
958
958
  return i;
959
959
  }
960
- function Yn(e, t, n) {
960
+ function Wn(e, t, n) {
961
961
  if (t) {
962
962
  if (L(e, t)) return t;
963
963
  n.push({
@@ -968,7 +968,7 @@ function Yn(e, t, n) {
968
968
  });
969
969
  }
970
970
  }
971
- const pe = (e, t) => Y(e ?? null, t ?? null);
971
+ const pe = (e, t) => W(e ?? null, t ?? null);
972
972
  function tt(e) {
973
973
  return {
974
974
  adHocFilterValues: e.adHocFilterValues,
@@ -1012,14 +1012,14 @@ function ge(e, t, n, o) {
1012
1012
  const { dashboard: s, baseline: i } = e, r = [], a = _e(t.state, ce), c = a.ok ? a.value : {};
1013
1013
  for (const m of a.ok ? a.issues : [])
1014
1014
  r.push(Zn(m));
1015
- const d = Je(s), l = Ye(
1015
+ const d = Je(s), l = We(
1016
1016
  d.compatibility,
1017
1017
  et(s, d, c.inputs, r)
1018
- ), u = Yn(s, c.selectedSheetId, r) ?? i.selectedSheetId, f = F(
1018
+ ), u = Wn(s, c.selectedSheetId, r) ?? i.selectedSheetId, f = V(
1019
1019
  s,
1020
1020
  c.tableSettings,
1021
1021
  r
1022
- ), p = F(
1022
+ ), p = V(
1023
1023
  s,
1024
1024
  n,
1025
1025
  void 0
@@ -1095,7 +1095,7 @@ function Ce(e, t, n) {
1095
1095
  )
1096
1096
  ),
1097
1097
  selectedSheetId: !n.sheetChanged && L(o, t.selectedSheetId) ? t.selectedSheetId : s.selectedSheetId,
1098
- tableSettings: F(
1098
+ tableSettings: V(
1099
1099
  o,
1100
1100
  t.tableSettings,
1101
1101
  void 0,
@@ -1113,7 +1113,7 @@ function ds(e) {
1113
1113
  appliedBookmarkId: null,
1114
1114
  ...K(
1115
1115
  n,
1116
- F(t, s, void 0, {
1116
+ V(t, s, void 0, {
1117
1117
  sessionSorts: o.captured
1118
1118
  })
1119
1119
  )
@@ -1121,7 +1121,7 @@ function ds(e) {
1121
1121
  case "refetch": {
1122
1122
  const { live: i } = o, r = i.applied, a = {
1123
1123
  sheetChanged: !!i.previousBaseline && i.previousBaseline.hostSelectedSheetId !== n.hostSelectedSheetId,
1124
- controlsChanged: !!i.previousBaseline && !Y(
1124
+ controlsChanged: !!i.previousBaseline && !W(
1125
1125
  i.previousBaseline.controlOverrides ?? null,
1126
1126
  n.controlOverrides ?? null
1127
1127
  )
@@ -1138,7 +1138,7 @@ function ds(e) {
1138
1138
  a
1139
1139
  ), d = r ? Ce(e, r.restore, a) : K(
1140
1140
  n,
1141
- F(t, s, void 0)
1141
+ V(t, s, void 0)
1142
1142
  );
1143
1143
  return A(e, {
1144
1144
  appliedBookmarkId: (r == null ? void 0 : r.appliedBookmarkId) ?? null,
@@ -1156,7 +1156,7 @@ function ds(e) {
1156
1156
  appliedBookmarkId: null,
1157
1157
  ...K(
1158
1158
  n,
1159
- F(t, s, void 0)
1159
+ V(t, s, void 0)
1160
1160
  )
1161
1161
  });
1162
1162
  case "reset-to-default-view":
@@ -1166,12 +1166,12 @@ function ds(e) {
1166
1166
  rememberedWrites: [{ kind: "clear-all" }]
1167
1167
  });
1168
1168
  case "discard-changes": {
1169
- const { restore: i } = o.applied, r = F(
1169
+ const { restore: i } = o.applied, r = V(
1170
1170
  t,
1171
1171
  i.tableSettings,
1172
1172
  void 0,
1173
1173
  { sessionSorts: !0 }
1174
- ), a = F(t, r, void 0), c = F(t, s, void 0), d = [];
1174
+ ), a = V(t, r, void 0), c = V(t, s, void 0), d = [];
1175
1175
  for (const l of /* @__PURE__ */ new Set([
1176
1176
  ...Object.keys(c),
1177
1177
  ...Object.keys(a)
@@ -1213,7 +1213,7 @@ function cs(e) {
1213
1213
  const c = _e(
1214
1214
  e.appliedBookmark.state,
1215
1215
  ce
1216
- ), d = Je(t), l = Ye(
1216
+ ), d = Je(t), l = We(
1217
1217
  d.compatibility,
1218
1218
  et(
1219
1219
  t,
@@ -1261,7 +1261,7 @@ function st(e, t) {
1261
1261
  ), s = {};
1262
1262
  for (const [i, r] of o) {
1263
1263
  const a = n.get(i);
1264
- a && Y(a.slot, r.slot) || Q(r.slot) && Q(a == null ? void 0 : a.slot) || U(
1264
+ a && W(a.slot, r.slot) || Q(r.slot) && Q(a == null ? void 0 : a.slot) || U(
1265
1265
  s,
1266
1266
  r,
1267
1267
  Q(r.slot) ? { status: "cleared" } : r.slot
@@ -1272,7 +1272,7 @@ function st(e, t) {
1272
1272
  return M(s);
1273
1273
  }
1274
1274
  function fs(e) {
1275
- const { dashboard: t, baseline: n, current: o } = e, s = st(n.materializedInputs, o.inputs), i = F(
1275
+ const { dashboard: t, baseline: n, current: o } = e, s = st(n.materializedInputs, o.inputs), i = V(
1276
1276
  t,
1277
1277
  o.tableSettings,
1278
1278
  void 0
@@ -1311,11 +1311,11 @@ function ps(e) {
1311
1311
  label: Xn(t, i, u.inputId)
1312
1312
  }));
1313
1313
  (n.selectedSheetId ?? null) !== (o.selectedSheetId ?? null) && s.push({ target: "sheet" });
1314
- const a = F(
1314
+ const a = V(
1315
1315
  t,
1316
1316
  n.tableSettings,
1317
1317
  void 0
1318
- ), c = F(
1318
+ ), c = V(
1319
1319
  t,
1320
1320
  o.tableSettings,
1321
1321
  void 0
@@ -1361,14 +1361,14 @@ function Is(e) {
1361
1361
  o
1362
1362
  ),
1363
1363
  cardViewState: i ? Tn(i.cardViewState) : {}
1364
- }, c = i ? Wt(i.transientContexts) : void 0;
1364
+ }, c = i ? Yt(i.transientContexts) : void 0;
1365
1365
  return {
1366
1366
  runtimeValues: a,
1367
1367
  controlOverrides: r,
1368
1368
  ...c != null && c.length ? { transientContexts: c } : {}
1369
1369
  };
1370
1370
  }
1371
- function De(e) {
1371
+ function ye(e) {
1372
1372
  const t = z(e.filter);
1373
1373
  return {
1374
1374
  inputId: e.inputId,
@@ -1412,7 +1412,7 @@ function eo(e) {
1412
1412
  fieldCandidates: t,
1413
1413
  resolution: {
1414
1414
  status: "resolved",
1415
- resolvedOwner: De(n)
1415
+ resolvedOwner: ye(n)
1416
1416
  }
1417
1417
  };
1418
1418
  const o = t.filter(
@@ -1423,7 +1423,7 @@ function eo(e) {
1423
1423
  fieldCandidates: t,
1424
1424
  resolution: {
1425
1425
  status: "resolved",
1426
- resolvedOwner: De(o[0].input)
1426
+ resolvedOwner: ye(o[0].input)
1427
1427
  }
1428
1428
  } : o.length > 1 ? {
1429
1429
  inputs: e.inputs,
@@ -1721,9 +1721,9 @@ function Cs(e, t) {
1721
1721
  });
1722
1722
  }
1723
1723
  function fo(e, t, n) {
1724
- const o = yn(e);
1724
+ const o = Dn(e);
1725
1725
  if (!o) throw new Error("Matrix card definition is required.");
1726
- const s = n && Yt({
1726
+ const s = n && Wt({
1727
1727
  ...n,
1728
1728
  spec: o.spec,
1729
1729
  catalog: t.map((l) => ({ ...l, id: l.resolvedField.id }))
@@ -1827,7 +1827,7 @@ function ut(e, t = {}) {
1827
1827
  return {
1828
1828
  authored: t.includeAuthoredFilters === !1 ? void 0 : Bt(e),
1829
1829
  drill: En(t.drill, e.id),
1830
- selections: Vn(t.selections ?? [])
1830
+ selections: Fn(t.selections ?? [])
1831
1831
  };
1832
1832
  }
1833
1833
  function bo(e, t, n) {
@@ -1913,18 +1913,18 @@ function Co({
1913
1913
  }) {
1914
1914
  var T;
1915
1915
  const p = tn(t);
1916
- for (const V of e.controlBindings || [])
1917
- Te(V) && p.add(V.controlId);
1916
+ for (const F of e.controlBindings || [])
1917
+ Te(F) && p.add(F.controlId);
1918
1918
  const { shouldApplyDashboardFilters: m } = ho(n), I = u != null && u.inputs.length ? u : void 0, b = ut(e, {
1919
1919
  includeAuthoredFilters: f,
1920
1920
  // Blocked and skipped conditions are already projected away, so a
1921
1921
  // selection can only ever narrow this card on its own fields. Carried
1922
1922
  // selections are among them.
1923
1923
  selections: ((u == null ? void 0 : u.selections) ?? []).filter(
1924
- (V) => V.status === "apply"
1924
+ (F) => F.status === "apply"
1925
1925
  ),
1926
1926
  drill: o == null ? void 0 : o.drill
1927
- }), D = ct(b), g = f === !1 ? nn(D, !0) : D, h = bo(
1927
+ }), y = ct(b), g = f === !1 ? nn(y, !0) : y, h = bo(
1928
1928
  e,
1929
1929
  o == null ? void 0 : o.drill,
1930
1930
  g
@@ -1975,7 +1975,7 @@ function Co({
1975
1975
  ...H,
1976
1976
  resolvedFilters: g,
1977
1977
  resolvedFilterParts: b,
1978
- drillSteps: ((T = o == null ? void 0 : o.drill) == null ? void 0 : T.steps) ?? Fn,
1978
+ drillSteps: ((T = o == null ? void 0 : o.drill) == null ? void 0 : T.steps) ?? Vn,
1979
1979
  finalConfig: v,
1980
1980
  queryRelevantConfig: C,
1981
1981
  finalFiltersKey: k
@@ -1998,10 +1998,10 @@ function vo(e) {
1998
1998
  e.resolution.resolvedOwner.owner
1999
1999
  );
2000
2000
  }
2001
- function Do(e) {
2001
+ function yo(e) {
2002
2002
  return `Set ${e.join(", ")} to run this card.`;
2003
2003
  }
2004
- function yo({
2004
+ function Do({
2005
2005
  dashboardInputContext: e,
2006
2006
  shouldApplyDashboardFilters: t
2007
2007
  }) {
@@ -2046,7 +2046,7 @@ function ee(e, t) {
2046
2046
  return l.kind === "filter" && ((u = l.compatibility) == null ? void 0 : u.source) === "cardInlineFilter" ? [l.filter.id] : [];
2047
2047
  }
2048
2048
  )
2049
- ), r = yo({
2049
+ ), r = Do({
2050
2050
  dashboardInputContext: t.dashboardInputContext,
2051
2051
  shouldApplyDashboardFilters: t.shouldApplyDashboardFilters
2052
2052
  }).filter((l) => !s.has(l.filterId)), a = r.filter(
@@ -2078,7 +2078,7 @@ function ee(e, t) {
2078
2078
  mappingDispositions: d.dispositions
2079
2079
  };
2080
2080
  }
2081
- function Vo(e, t) {
2081
+ function Fo(e, t) {
2082
2082
  const n = e.dashboardInputContext;
2083
2083
  if (!n) return [];
2084
2084
  const o = new Set(
@@ -2092,7 +2092,7 @@ function Vo(e, t) {
2092
2092
  return r ? r.kind === "filter" && (!e.shouldApplyDashboardFilters && !Ee(r) || o.has(r.id)) ? [] : [i.label] : [];
2093
2093
  });
2094
2094
  }
2095
- function Fo({
2095
+ function Vo({
2096
2096
  card: e,
2097
2097
  cardConfig: t,
2098
2098
  input: n,
@@ -2105,7 +2105,7 @@ function Fo({
2105
2105
  var I;
2106
2106
  const c = n.dashboardInputContext ? n.dashboardInputContext.inputs.flatMap(
2107
2107
  (b) => b.kind === "filter" ? [b.filter] : []
2108
- ) : [], d = ee(e, n), l = Vo(
2108
+ ) : [], d = ee(e, n), l = Fo(
2109
2109
  n,
2110
2110
  d.mappingDispositions
2111
2111
  );
@@ -2159,7 +2159,7 @@ function Fo({
2159
2159
  };
2160
2160
  }
2161
2161
  function mt(e, t, n) {
2162
- const o = Fo({
2162
+ const o = Vo({
2163
2163
  resolvedFields: t.resolvedDateFields,
2164
2164
  ...n,
2165
2165
  card: e,
@@ -2230,15 +2230,15 @@ function ko(e, t, n) {
2230
2230
  }
2231
2231
  };
2232
2232
  }
2233
- const ye = [], Mo = [], To = {};
2234
- function Ds(e, t) {
2233
+ const De = [], Mo = [], To = {};
2234
+ function ys(e, t) {
2235
2235
  return {
2236
2236
  sheetId: e.sheetId,
2237
2237
  sectionId: e.sectionId,
2238
- documentFilterValues: e.documentFilterValues ?? ye,
2238
+ documentFilterValues: e.documentFilterValues ?? De,
2239
2239
  documentControlDefinitions: e.documentControlDefinitions ?? Mo,
2240
2240
  documentControlValues: e.documentControlValues ?? To,
2241
- editorFilterValues: t ?? ye
2241
+ editorFilterValues: t ?? De
2242
2242
  };
2243
2243
  }
2244
2244
  function Oo({
@@ -2300,7 +2300,7 @@ function xo(e, t) {
2300
2300
  controls: Array.from(n.values())
2301
2301
  };
2302
2302
  }
2303
- function ys({
2303
+ function Ds({
2304
2304
  card: e,
2305
2305
  place: t,
2306
2306
  source: n
@@ -2352,14 +2352,14 @@ function Eo({
2352
2352
  withRequest: i = !1
2353
2353
  }) {
2354
2354
  var I, b;
2355
- const { dashboard: r } = n, a = e.id, c = (D, g) => {
2355
+ const { dashboard: r } = n, a = e.id, c = (y, g) => {
2356
2356
  var v;
2357
2357
  let h;
2358
2358
  try {
2359
- const C = Ge(D);
2359
+ const C = Ge(y);
2360
2360
  if (C.status === "invalid") throw C.error;
2361
2361
  const k = te(
2362
- D,
2362
+ y,
2363
2363
  g,
2364
2364
  n,
2365
2365
  C.status === "absent"
@@ -2374,15 +2374,15 @@ function Eo({
2374
2374
  context: h
2375
2375
  };
2376
2376
  const H = un(C.config.spec, h), T = s.filter(
2377
- (y) => y.field.source && H.some(
2378
- (O) => bn(O, y.field.source)
2377
+ (D) => D.field.source && H.some(
2378
+ (O) => bn(O, D.field.source)
2379
2379
  )
2380
- ), V = fo(D, T, h), { params: w } = k, x = w.dashboardInputContext;
2381
- V.config = {
2382
- ...V.config,
2380
+ ), F = fo(y, T, h), { params: w } = k, x = w.dashboardInputContext;
2381
+ F.config = {
2382
+ ...F.config,
2383
2383
  presentation: fn(
2384
- D,
2385
- V.config,
2384
+ y,
2385
+ F.config,
2386
2386
  {
2387
2387
  controls: x ? [
2388
2388
  ...x.controlDefinitions,
@@ -2393,25 +2393,25 @@ function Eo({
2393
2393
  ],
2394
2394
  values: (x == null ? void 0 : x.controlValues) ?? {
2395
2395
  ...w.dashboardControlValues,
2396
- ...(v = w.cardControlValuesMap) == null ? void 0 : v[D.id]
2396
+ ...(v = w.cardControlValuesMap) == null ? void 0 : v[y.id]
2397
2397
  }
2398
2398
  },
2399
2399
  T
2400
2400
  )
2401
2401
  };
2402
2402
  const q = {
2403
- ...D,
2404
- config: { matrix: V.config }
2403
+ ...y,
2404
+ config: { matrix: F.config }
2405
2405
  }, S = te(q, g, n, !1);
2406
2406
  return {
2407
2407
  status: "ready",
2408
2408
  value: {
2409
2409
  assembled: {
2410
2410
  card: q,
2411
- context: { ...S.context, resolvedDateFields: V.fields },
2411
+ context: { ...S.context, resolvedDateFields: F.fields },
2412
2412
  inputContext: S.inputContext
2413
2413
  },
2414
- matrix: V
2414
+ matrix: F
2415
2415
  }
2416
2416
  };
2417
2417
  } catch (C) {
@@ -2438,38 +2438,38 @@ function Eo({
2438
2438
  n.calendar
2439
2439
  ), p = l.context.filterCompilationInput, m = At(r);
2440
2440
  try {
2441
- const D = ee(l.card, p), g = u && m && D.status === "ready" && D.filterValues.some((k) => k.filterId === m.id);
2441
+ const y = ee(l.card, p), g = u && m && y.status === "ready" && y.filterValues.some((k) => k.filterId === m.id);
2442
2442
  let h = f.allowGlobalDateMinutePrecision;
2443
2443
  if (g) {
2444
2444
  const k = (I = p.dashboardInputContext) == null ? void 0 : I.inputs.find(
2445
2445
  (S) => S.kind === "filter" && S.filter.id === m.id
2446
2446
  ), T = Nt(r, m).filter(
2447
- ({ card: S, sheet: y }) => !k || W(k, {
2447
+ ({ card: S, sheet: D }) => !k || Y(k, {
2448
2448
  cardId: S.id,
2449
- sheetId: y.id,
2450
- sheetKind: Re(y) ? "document" : "dashboard"
2449
+ sheetId: D.id,
2450
+ sheetKind: Re(D) ? "document" : "dashboard"
2451
2451
  })
2452
- ).map(({ card: S, sheet: y }) => ({
2452
+ ).map(({ card: S, sheet: D }) => ({
2453
2453
  card: S,
2454
- value: S.id === a ? d : c(S, { kind: "sheet", sheetId: y.id })
2455
- })), V = new Map(
2456
- T.map(({ card: S, value: y }) => [
2454
+ value: S.id === a ? d : c(S, { kind: "sheet", sheetId: D.id })
2455
+ })), F = new Map(
2456
+ T.map(({ card: S, value: D }) => [
2457
2457
  S.id,
2458
- y.status === "ready" ? y.value.assembled.card : null
2458
+ D.status === "ready" ? D.value.assembled.card : null
2459
2459
  ])
2460
2460
  ), w = new Map(
2461
- T.map(({ card: S, value: y }) => {
2461
+ T.map(({ card: S, value: D }) => {
2462
2462
  var O;
2463
2463
  return [
2464
2464
  S.id,
2465
- y.status === "ready" ? (O = y.value.matrix) == null ? void 0 : O.fields : void 0
2465
+ D.status === "ready" ? (O = D.value.matrix) == null ? void 0 : O.fields : void 0
2466
2466
  ];
2467
2467
  })
2468
2468
  ), x = T.flatMap(
2469
- ({ card: S, value: y }) => {
2470
- const O = S.id, Ie = y.status === "ready" ? y.value.assembled.context : y.context;
2469
+ ({ card: S, value: D }) => {
2470
+ const O = S.id, Ie = D.status === "ready" ? D.value.assembled.context : D.context;
2471
2471
  if (!Ie) return [O];
2472
- const gt = y.status === "ready" ? y.value.assembled.card : S;
2472
+ const gt = D.status === "ready" ? D.value.assembled.card : S;
2473
2473
  try {
2474
2474
  const be = ee(
2475
2475
  gt,
@@ -2477,14 +2477,14 @@ function Eo({
2477
2477
  );
2478
2478
  return be.status === "blocked" || be.filterValues.some((Ct) => Ct.filterId === m.id) ? [O] : [];
2479
2479
  } catch {
2480
- return V.set(O, null), [O];
2480
+ return F.set(O, null), [O];
2481
2481
  }
2482
2482
  }
2483
2483
  ), q = ie(
2484
2484
  r,
2485
2485
  o,
2486
2486
  m,
2487
- V,
2487
+ F,
2488
2488
  w,
2489
2489
  x
2490
2490
  );
@@ -2507,7 +2507,7 @@ function Eo({
2507
2507
  mappingDispositions: v.mappingDispositions,
2508
2508
  reason: v.reason,
2509
2509
  missingRequiredLabels: v.missingRequiredLabels,
2510
- ...v.reason === "requiredInput" ? { message: Do(v.missingRequiredLabels) } : {}
2510
+ ...v.reason === "requiredInput" ? { message: yo(v.missingRequiredLabels) } : {}
2511
2511
  };
2512
2512
  const C = i && !u ? wo(l, f) : void 0;
2513
2513
  return {
@@ -2528,14 +2528,14 @@ function Eo({
2528
2528
  }
2529
2529
  } : {}
2530
2530
  };
2531
- } catch (D) {
2531
+ } catch (y) {
2532
2532
  return {
2533
2533
  status: "blocked",
2534
2534
  cardId: a,
2535
2535
  mappingDispositions: [],
2536
2536
  reason: "configuration",
2537
2537
  missingRequiredLabels: [],
2538
- message: D instanceof Error ? D.message : "Card filter configuration is invalid."
2538
+ message: y instanceof Error ? y.message : "Card filter configuration is invalid."
2539
2539
  };
2540
2540
  }
2541
2541
  }
@@ -2628,7 +2628,7 @@ function bt(e, t, n) {
2628
2628
  resolvedPrimaryDateField: s
2629
2629
  };
2630
2630
  }
2631
- function Vs({
2631
+ function Fs({
2632
2632
  dashboard: e,
2633
2633
  dashboardInputValues: t,
2634
2634
  adHocFilterValues: n,
@@ -2670,7 +2670,7 @@ function Vs({
2670
2670
  const b = jt({
2671
2671
  filterDefinitions: l,
2672
2672
  filterValues: p
2673
- }), D = io({
2673
+ }), y = io({
2674
2674
  filters: l,
2675
2675
  filterValues: b,
2676
2676
  dashboard: e,
@@ -2679,11 +2679,11 @@ function Vs({
2679
2679
  });
2680
2680
  return {
2681
2681
  selectedSheetId: u,
2682
- filterValues: D,
2682
+ filterValues: y,
2683
2683
  controlValues: m
2684
2684
  };
2685
2685
  }
2686
- function Fs({
2686
+ function Vs({
2687
2687
  dashboard: e,
2688
2688
  cardId: t,
2689
2689
  transientContexts: n,
@@ -2701,7 +2701,7 @@ function Fs({
2701
2701
  sheetId: m,
2702
2702
  documentSection: I,
2703
2703
  editor: b,
2704
- withRequest: D
2704
+ withRequest: y
2705
2705
  }) {
2706
2706
  var v;
2707
2707
  if (!e)
@@ -2732,7 +2732,7 @@ function Fs({
2732
2732
  },
2733
2733
  semanticExecutionPayload: i,
2734
2734
  matrixCatalog: f,
2735
- withRequest: D
2735
+ withRequest: y
2736
2736
  });
2737
2737
  return h.status === "blocked" ? h : {
2738
2738
  status: "ready",
@@ -2749,7 +2749,7 @@ function qo(e, t) {
2749
2749
  dashboardFilters: [...Be(e)]
2750
2750
  }), o = ht(e, t);
2751
2751
  return n.filter(
2752
- (s) => W(s, { sheetId: t, sheetKind: "document" }) || s.kind === "filter" && (s.runtimeScope === "shared" || s.runtimeScope === "perSheet") && qe(s, o)
2752
+ (s) => Y(s, { sheetId: t, sheetKind: "document" }) || s.kind === "filter" && (s.runtimeScope === "shared" || s.runtimeScope === "perSheet") && qe(s, o)
2753
2753
  );
2754
2754
  }
2755
2755
  function ht(e, t) {
@@ -2857,7 +2857,7 @@ function Os(e, t, n) {
2857
2857
  return !t || !n || t === n ? e : {
2858
2858
  ...e,
2859
2859
  sections: e.sections.map(
2860
- (o) => Dn(
2860
+ (o) => yn(
2861
2861
  o,
2862
2862
  (s) => No(s, t, n)
2863
2863
  )
@@ -2956,9 +2956,9 @@ export {
2956
2956
  On as B,
2957
2957
  bo as C,
2958
2958
  vs as D,
2959
- ys as E,
2959
+ Ds as E,
2960
2960
  wo as F,
2961
- Ds as G,
2961
+ ys as G,
2962
2962
  gs as H,
2963
2963
  Eo as I,
2964
2964
  kn as J,
@@ -2969,7 +2969,7 @@ export {
2969
2969
  ee as O,
2970
2970
  uo as P,
2971
2971
  lt as Q,
2972
- Fn as R,
2972
+ Vn as R,
2973
2973
  Ao as S,
2974
2974
  xs as T,
2975
2975
  Ts as U,
@@ -2984,7 +2984,7 @@ export {
2984
2984
  ks as a1,
2985
2985
  Is as b,
2986
2986
  as as c,
2987
- Fs as d,
2987
+ Vs as d,
2988
2988
  Xn as e,
2989
2989
  Ms as f,
2990
2990
  qo as g,
@@ -3005,6 +3005,6 @@ export {
3005
3005
  Tn as v,
3006
3006
  Le as w,
3007
3007
  is as x,
3008
- Do as y,
3009
- Vs as z
3008
+ yo as y,
3009
+ Fs as z
3010
3010
  };