react-semaphor 0.1.548 → 0.1.550

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 (51) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/briefings/index.js +1 -1
  4. package/dist/chunks/{assistant-chat-DCcWsoGm.js → assistant-chat-ClAvjeNe.js} +1834 -1849
  5. package/dist/chunks/{custom-visual-inputs-BTRnwsfd.js → custom-visual-inputs-CwAcigQS.js} +1 -1
  6. package/dist/chunks/{dashboard-BZHL9a-z.js → dashboard-DDQgKoss.js} +1 -1
  7. package/dist/chunks/dashboard-briefing-launcher-CCYs8E4j.js +3844 -0
  8. package/dist/chunks/{dashboard-controls-BGoBTPS7.js → dashboard-controls-DfSkQBsk.js} +982 -935
  9. package/dist/chunks/{dashboard-json-iHPsdn3j.js → dashboard-json-BPhyn9pl.js} +2 -2
  10. package/dist/chunks/{document-dashboard-inputs-B2AqPfrq.js → document-dashboard-inputs-DPQ_wUGD.js} +2 -2
  11. package/dist/chunks/{edit-dashboard-visual-CLEFFf2T.js → edit-dashboard-visual-G7EmLuR0.js} +280 -280
  12. package/dist/chunks/{filter-reach-copy-ByzGadUk.js → filter-reach-copy-8vnDYToV.js} +95 -93
  13. package/dist/chunks/{global-date-filter-utils-CeeFJ1CP.js → global-date-filter-utils-CnumW4j2.js} +1656 -1651
  14. package/dist/chunks/{index-DeDHr3iz.js → index-DzsdV1o4.js} +3 -3
  15. package/dist/chunks/{raw-temporal-presentation-CrUM2I_o.js → raw-temporal-presentation-CBKeEPYA.js} +1 -1
  16. package/dist/chunks/report-preferences-dialog-D_fEDaS4.js +2261 -0
  17. package/dist/chunks/{resolve-dashboard-input-context-BmWF9hSl.js → resolve-dashboard-input-context-DVWF7p5C.js} +1 -1
  18. package/dist/chunks/{saved-dashboard-context-qtfzl9Eb.js → saved-dashboard-context-BMqMzNAo.js} +4 -4
  19. package/dist/chunks/{semaphor-ready-indicator-Ol6VcaR7.js → semaphor-ready-indicator-Bz5BxITW.js} +25406 -25106
  20. package/dist/chunks/{shelf-drop-preview-context-C2SEC3I9.js → shelf-drop-preview-context-B8kNwpWQ.js} +4 -4
  21. package/dist/chunks/{switch-CEBOR4n7.js → switch-wJP6O7ZT.js} +2 -2
  22. package/dist/chunks/{use-create-flow-overlay-state-CbGIjaVD.js → use-create-flow-overlay-state-RzJa7G8S.js} +3 -3
  23. package/dist/dashboard/index.js +1 -1
  24. package/dist/dashboard-authoring/index.js +7 -7
  25. package/dist/index.js +187 -172
  26. package/dist/live-channel/index.js +124 -0
  27. package/dist/style.css +1 -1
  28. package/dist/surfboard/index.js +1 -1
  29. package/dist/types/components/assistant/assistant-entry-points.d.ts +4 -1
  30. package/dist/types/components/dashboard/favorites/dashboard-favorite-toggle.d.ts +11 -0
  31. package/dist/types/components/dashboard/favorites/favorite-star-button.d.ts +16 -0
  32. package/dist/types/components/index.d.ts +8 -0
  33. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +16 -0
  34. package/dist/types/components/surfboard/dashboard-plus.d.ts +1 -1
  35. package/dist/types/components/surfboard/toolbar/toolbar-context.d.ts +86 -0
  36. package/dist/types/components/surfboard/toolbar/toolbar-overflow.d.ts +14 -0
  37. package/dist/types/lib/dashboard-viewer/viewer-store-state.d.ts +7 -0
  38. package/dist/types/lib/hooks/use-dashboard-favorite.d.ts +24 -0
  39. package/dist/types/lib/hooks/use-dashboard-query.d.ts +2 -0
  40. package/dist/types/lib/hooks/use-default-dashboard-toggle.d.ts +12 -0
  41. package/dist/types/lib/stores/dashboard-store.d.ts +9 -0
  42. package/dist/types/lib/types/common-types.d.ts +26 -1
  43. package/dist/types/live-channel.d.ts +2 -0
  44. package/dist/types/shared/assistant-protocol/parts.d.ts +11 -0
  45. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +14 -44
  46. package/dist/types/shared/dashboard-viewer/viewer-contract.d.ts +18 -0
  47. package/dist/types/shared/live-channel/index.d.ts +1 -0
  48. package/dist/types/shared/live-channel/live-channel-contract.d.ts +126 -0
  49. package/package.json +5 -1
  50. package/dist/chunks/dashboard-briefing-launcher-DML-cAzB.js +0 -3734
  51. package/dist/chunks/report-preferences-dialog-CM7kXmXp.js +0 -1977
@@ -1,4 +1,4 @@
1
- import { af as li, ag as ci, ah as ui, ai as mt, aj as di, ak as K, al as pt, am as fi, an as mi, ao as we, ap as pi, aq as yt, ar as yi, as as hi, at as gi, au as bi, av as vi, aw as Fi, ax as ht, ay as Ci, az as Ii, aA as xi, aB as ve, aC as Si, aD as Mi, aE as Di, b as Ti, aF as wi, v as Pi, z as Oi, aG as Ai, aH as Ni } from "./resolve-dashboard-input-context-BmWF9hSl.js";
1
+ import { af as li, ag as ci, ah as ui, ai as mt, aj as di, ak as K, al as pt, am as fi, an as mi, ao as we, ap as pi, aq as ht, ar as hi, as as yi, at as gi, au as bi, av as vi, aw as Fi, ax as yt, ay as Ci, az as Ii, aA as xi, aB as ve, aC as Si, aD as Mi, aE as Di, b as Ti, aF as wi, v as Pi, z as Oi, aG as Ai, aH as Ni } from "./resolve-dashboard-input-context-DVWF7p5C.js";
2
2
  import { ab as gt, f as _i, e as Ei, a8 as bt, am as Ri, v as Vi } from "./validators-C-aOQlTB.js";
3
3
  import "./matrix-operation-contract-D6vYkZK4.js";
4
4
  import { r as ki, C as Bi } from "./metric-comparison-zpGw4lD6.js";
@@ -9,10 +9,10 @@ import { f as H } from "./matrix-formatter-DWEeC0_c.js";
9
9
  import { b as vt, m as Li, h as qi, d as xe, e as $i, i as k, u as _, R as zi, v as ji, r as Ui, z as Gi } from "./temporal-bucket-CQOSbv9-.js";
10
10
  import "../value-format-preferences/index.js";
11
11
  import { K as Hi, w as pe } from "./table-settings-WysCBj62.js";
12
- import { dm as Ft, du as Ct, dv as Wi, dw as Qi, cQ as Pe, dx as Yi, cR as He, dy as N, as as Ji, dz as It, dA as Oe, dB as Xi, dC as Zi, dD as We, dE as en, dF as Qe, dG as tn, dH as nn, Q as xt, dI as St, dJ as Mt, v as Dt, dK as Ye, Y as q, dL as Ae, c$ as Je, d1 as Ne, cY as Xe, dM as Ze, dq as rn, b9 as _e, dN as an, dO as on, dP as sn, cV as G, bc as et, dQ as ln, a2 as Tt, a3 as wt, d as cn, dR as $, be as un, dS as dn, bf as fn, aA as Pt, dT as mn, dU as pn, dV as yn, dW as hn, b as Ot, dp as gn, cU as bn, dX as vn, d6 as Se, dY as Fn, dZ as Fe, c6 as At, d_ as tt, d$ as Cn, bG as In, c9 as it, c8 as xn, e0 as Sn } from "./global-date-filter-utils-CeeFJ1CP.js";
12
+ import { dm as Ft, du as Ct, dv as Wi, dw as Qi, cQ as Pe, dx as Yi, cR as He, dy as N, as as Ji, dz as It, dA as Oe, dB as Xi, dC as Zi, dD as We, dE as en, dF as Qe, dG as tn, dH as nn, Q as xt, dI as St, dJ as Mt, v as Dt, dK as Ye, Y as q, dL as Ae, c$ as Je, d1 as Ne, cY as Xe, dM as Ze, dq as rn, b9 as _e, dN as an, dO as on, dP as sn, cV as G, bc as et, dQ as ln, a2 as Tt, a3 as wt, d as cn, dR as $, be as un, dS as dn, bf as fn, aA as Pt, dT as mn, dU as pn, dV as hn, dW as yn, b as Ot, dp as gn, cU as bn, dX as vn, d6 as Se, dY as Fn, dZ as Fe, c6 as At, d_ as tt, d$ as Cn, bG as In, c9 as it, c8 as xn, e0 as Sn } from "./global-date-filter-utils-CnumW4j2.js";
13
13
  import { r as Mn } from "./pivot-result-identity-C-Q1j1Wb.js";
14
14
  import { g as Dn } from "./_commonjsHelpers-DimLPMtv.js";
15
- import { e as Tn, d as wn } from "./raw-temporal-presentation-CrUM2I_o.js";
15
+ import { e as Tn, d as wn } from "./raw-temporal-presentation-CBKeEPYA.js";
16
16
  import "./index-CtoK1Lgu.js";
17
17
  import "./index-CuHybtft.js";
18
18
  import { i as Pn } from "./source-entity-resolution-D195CrYS.js";
@@ -61,7 +61,9 @@ const _t = Object.freeze({}), Ja = {
61
61
  applied: null,
62
62
  appliedBookmark: null,
63
63
  tableSettings: _t,
64
- notices: []
64
+ notices: [],
65
+ isFavorite: !1,
66
+ fetchedAt: 0
65
67
  };
66
68
  function Xa(e) {
67
69
  return !e.viewer.printMode && e.viewer.access !== "session-only" && !!e.viewer.baseline && !!e.viewerStateClient && !e.isDashboardEditing;
@@ -199,7 +201,7 @@ function Me(e, t) {
199
201
  t.metricAlias,
200
202
  ...t.columnIds || []
201
203
  ].filter((f) => f !== void 0), c = n.map((f) => {
202
- var d, y;
204
+ var d, h;
203
205
  return {
204
206
  ...f,
205
207
  bindings: [
@@ -208,7 +210,7 @@ function Me(e, t) {
208
210
  f.field.id,
209
211
  f.role
210
212
  ),
211
- f.role === "metric" && f.field.alias ? (y = (d = t.columnKeyMap) == null ? void 0 : d.byMetricAlias) == null ? void 0 : y[f.field.alias] : void 0
213
+ f.role === "metric" && f.field.alias ? (h = (d = t.columnKeyMap) == null ? void 0 : d.byMetricAlias) == null ? void 0 : h[f.field.alias] : void 0
212
214
  ]
213
215
  };
214
216
  }), u = c.filter(
@@ -551,7 +553,7 @@ function oo(e) {
551
553
  }
552
554
  };
553
555
  }
554
- function ye(e) {
556
+ function he(e) {
555
557
  var l;
556
558
  const { card: t, context: i, formatOptions: n } = e, r = i == null ? void 0 : i.preferences;
557
559
  if (!t || !r || !Ct(t.type))
@@ -865,44 +867,44 @@ function pr(e) {
865
867
  (m) => !!m
866
868
  );
867
869
  for (const m of u) {
868
- const h = De(t, {
870
+ const y = De(t, {
869
871
  columnId: m,
870
872
  metricAlias: m
871
873
  });
872
- if (h)
873
- return h;
874
+ if (y)
875
+ return y;
874
876
  }
875
877
  const f = u.map((m) => Ce(m)).filter((m) => !!m), d = u.map((m) => dr(m)).filter((m) => !!m);
876
878
  for (const m of d) {
877
- const h = De(t, {
879
+ const y = De(t, {
878
880
  columnId: m,
879
881
  metricAlias: m
880
882
  });
881
- if (h)
882
- return h;
883
+ if (y)
884
+ return y;
883
885
  }
884
886
  if (s.length === 1)
885
887
  return s[0];
886
888
  if (!c && typeof r == "number" && r >= 0 && r < s.length)
887
889
  return s[r];
888
- const y = d.map((m) => Ce(m)).filter((m) => !!m), v = [
890
+ const h = d.map((m) => Ce(m)).filter((m) => !!m), v = [
889
891
  ...f,
890
- ...y
892
+ ...h
891
893
  ];
892
894
  if (v.length !== 0)
893
895
  return s.find((m) => {
894
- const h = [
896
+ const y = [
895
897
  m.alias,
896
898
  m.label,
897
899
  m.name,
898
900
  Kt(m)
899
901
  ].map((C) => Ce(C)).filter((C) => !!C);
900
902
  return v.some(
901
- (C) => h.includes(C)
903
+ (C) => y.includes(C)
902
904
  );
903
905
  });
904
906
  }
905
- function yr(e) {
907
+ function hr(e) {
906
908
  const t = H(e == null ? void 0 : e.format);
907
909
  return K(t);
908
910
  }
@@ -918,7 +920,7 @@ function at(e) {
918
920
  if (t)
919
921
  return JSON.stringify(t);
920
922
  }
921
- function hr(e, t) {
923
+ function yr(e, t) {
922
924
  const i = at(e), n = at(t);
923
925
  return !!(i && n && i === n);
924
926
  }
@@ -926,7 +928,7 @@ function gr(e) {
926
928
  if (e.length === 0)
927
929
  return;
928
930
  const t = e.map(
929
- (o) => yr(o)
931
+ (o) => hr(o)
930
932
  );
931
933
  if (!t.every(
932
934
  (o) => ie(o)
@@ -934,14 +936,14 @@ function gr(e) {
934
936
  return;
935
937
  const n = t, [r] = n;
936
938
  return n.every(
937
- (o) => hr(r, o)
939
+ (o) => yr(r, o)
938
940
  ) ? r : void 0;
939
941
  }
940
942
  function br(e) {
941
943
  const t = e.formatMode || e.legacyMode;
942
944
  return t === "override" ? "override" : t === "inherit" ? "inherit" : e.legacyMode && e.legacyMode !== "auto" && e.legacyMode !== "inherit" && e.legacyMode !== "override" || ie(e.formatOptions) ? "override" : "inherit";
943
945
  }
944
- function he(e) {
946
+ function ye(e) {
945
947
  const t = br({
946
948
  formatMode: e.formatMode,
947
949
  legacyMode: e.legacyMode,
@@ -982,8 +984,8 @@ function zt(e) {
982
984
  return [];
983
985
  if (i === "combo")
984
986
  return n === "x" ? [] : a.filter((f, d) => {
985
- const y = o.find((b) => b.idx === d);
986
- return ((y == null ? void 0 : y.yAxisId) === "y2" ? "y2" : "y") === n;
987
+ const h = o.find((b) => b.idx === d);
988
+ return ((h == null ? void 0 : h.yAxisId) === "y2" ? "y2" : "y") === n;
987
989
  });
988
990
  if (i === "bubble" || i === "scatter") {
989
991
  if (n === "y2")
@@ -1006,7 +1008,7 @@ function Ve(e) {
1006
1008
  chartType: i,
1007
1009
  axis: n,
1008
1010
  preferences: r
1009
- }), s = he({
1011
+ }), s = ye({
1010
1012
  formatMode: a == null ? void 0 : a.formatMode,
1011
1013
  overrideFormatOptions: a == null ? void 0 : a.formatOptions,
1012
1014
  metrics: o,
@@ -1014,7 +1016,7 @@ function Ve(e) {
1014
1016
  });
1015
1017
  return {
1016
1018
  ...s,
1017
- formatOptions: ye({
1019
+ formatOptions: he({
1018
1020
  card: t,
1019
1021
  metrics: o,
1020
1022
  formatOptions: s.formatOptions,
@@ -1031,7 +1033,7 @@ function jt(e, t) {
1031
1033
  return t && t !== "auto" && t !== "none" && !i.type && (i.type = t), i;
1032
1034
  }
1033
1035
  function vr(e) {
1034
- const { preferences: t, metric: i } = e, n = t == null ? void 0 : t.tooltipConfig, r = he({
1036
+ const { preferences: t, metric: i } = e, n = t == null ? void 0 : t.tooltipConfig, r = ye({
1035
1037
  formatMode: n == null ? void 0 : n.formatMode,
1036
1038
  legacyMode: n == null ? void 0 : n.mode,
1037
1039
  overrideFormatOptions: n == null ? void 0 : n.formatOptions,
@@ -1040,7 +1042,7 @@ function vr(e) {
1040
1042
  });
1041
1043
  return {
1042
1044
  ...r,
1043
- formatOptions: ye({
1045
+ formatOptions: he({
1044
1046
  card: e.card,
1045
1047
  metrics: e.metric ? [e.metric] : [],
1046
1048
  formatOptions: r.formatOptions,
@@ -1096,7 +1098,7 @@ function mo(e) {
1096
1098
  chartType: a,
1097
1099
  axis: o,
1098
1100
  preferences: n
1099
- }), l = he({
1101
+ }), l = ye({
1100
1102
  formatMode: r == null ? void 0 : r.formatMode,
1101
1103
  legacyMode: r == null ? void 0 : r.format,
1102
1104
  overrideFormatOptions: jt(
@@ -1107,7 +1109,7 @@ function mo(e) {
1107
1109
  preferences: n
1108
1110
  }), c = {
1109
1111
  ...l,
1110
- formatOptions: ye({
1112
+ formatOptions: he({
1111
1113
  card: t,
1112
1114
  metrics: s,
1113
1115
  formatOptions: l.formatOptions,
@@ -1131,7 +1133,7 @@ function mo(e) {
1131
1133
  return u.source === "override" ? u : c;
1132
1134
  }
1133
1135
  function Fr(e) {
1134
- const { preferences: t, dataLabelsConfig: i, metric: n } = e, r = he({
1136
+ const { preferences: t, dataLabelsConfig: i, metric: n } = e, r = ye({
1135
1137
  formatMode: i == null ? void 0 : i.formatMode,
1136
1138
  legacyMode: i == null ? void 0 : i.format,
1137
1139
  overrideFormatOptions: jt(
@@ -1143,7 +1145,7 @@ function Fr(e) {
1143
1145
  });
1144
1146
  return {
1145
1147
  ...r,
1146
- formatOptions: ye({
1148
+ formatOptions: he({
1147
1149
  card: e.card,
1148
1150
  metrics: e.metric ? [e.metric] : [],
1149
1151
  formatOptions: r.formatOptions,
@@ -1196,7 +1198,7 @@ function po(e) {
1196
1198
  });
1197
1199
  return a.source === "override" ? a : i;
1198
1200
  }
1199
- function yo(e) {
1201
+ function ho(e) {
1200
1202
  return (e == null ? void 0 : e.rawValue) === !0;
1201
1203
  }
1202
1204
  function Cr(e) {
@@ -1225,7 +1227,7 @@ function Cr(e) {
1225
1227
  };
1226
1228
  }
1227
1229
  function Ir(e, t, i = !1) {
1228
- const n = i ? { preserveOmittedProperties: !0 } : void 0, r = H(e == null ? void 0 : e.format, n), a = yt(
1230
+ const n = i ? { preserveOmittedProperties: !0 } : void 0, r = H(e == null ? void 0 : e.format, n), a = ht(
1229
1231
  r,
1230
1232
  n
1231
1233
  );
@@ -1269,15 +1271,15 @@ function Gt(e) {
1269
1271
  columnKeyMap: u,
1270
1272
  valueFormatPreferences: f,
1271
1273
  boundCurrency: d,
1272
- preserveOmittedProperties: y
1273
- } = e, v = n ?? ((R = (I = (g = t == null ? void 0 : t.preferences) == null ? void 0 : g.tablePrefs) == null ? void 0 : I.columnSettingsMap) == null ? void 0 : R[i]), b = !((O = t == null ? void 0 : t.sql) != null && O.trim()) || fi(v), m = b ? f : null, h = b ? d : void 0, C = mi(
1274
+ preserveOmittedProperties: h
1275
+ } = e, v = n ?? ((R = (I = (g = t == null ? void 0 : t.preferences) == null ? void 0 : g.tablePrefs) == null ? void 0 : I.columnSettingsMap) == null ? void 0 : R[i]), b = !((O = t == null ? void 0 : t.sql) != null && O.trim()) || fi(v), m = b ? f : null, y = b ? d : void 0, C = mi(
1274
1276
  v == null ? void 0 : v.numberFormat
1275
1277
  ), D = r ?? Lt(v);
1276
1278
  if (D && D.inheritMetricFormat !== !0)
1277
1279
  return ot(
1278
1280
  D,
1279
1281
  m,
1280
- h,
1282
+ y,
1281
1283
  {
1282
1284
  preserveHistoricalPersistedPrecision: C
1283
1285
  }
@@ -1292,15 +1294,15 @@ function Gt(e) {
1292
1294
  }), S = Ir(
1293
1295
  w,
1294
1296
  D || a,
1295
- y ?? !!f
1297
+ h ?? !!f
1296
1298
  ), E = !S && m && or(w) ? ur(
1297
1299
  D || a,
1298
- h
1300
+ y
1299
1301
  ) : void 0;
1300
1302
  return ot(
1301
1303
  S || E || D || a,
1302
1304
  m,
1303
- h,
1305
+ y,
1304
1306
  {
1305
1307
  preserveHistoricalPersistedPrecision: !!(D && C && !S && !E)
1306
1308
  }
@@ -1318,7 +1320,7 @@ function ot(e, t, i, n) {
1318
1320
  a,
1319
1321
  t,
1320
1322
  i
1321
- ), s = yt(o, {
1323
+ ), s = ht(o, {
1322
1324
  preserveOmittedProperties: !0
1323
1325
  });
1324
1326
  return s ? {
@@ -1401,10 +1403,10 @@ function xr(e) {
1401
1403
  });
1402
1404
  }
1403
1405
  function Sr(e) {
1404
- var s, l, c, u, f, d, y;
1406
+ var s, l, c, u, f, d, h;
1405
1407
  if (e.card.type === "matrixTable" && e.target.kind === "matrix_measure") {
1406
1408
  const v = e.target, b = vi(e.card, e.matrixCatalog).find(
1407
- (h) => h.measureId === v.measureId
1409
+ (y) => y.measureId === v.measureId
1408
1410
  ), m = b == null ? void 0 : b.canonical;
1409
1411
  return m && (m.type === "number" || m.type === "currency") ? _(
1410
1412
  m,
@@ -1423,9 +1425,9 @@ function Sr(e) {
1423
1425
  const m = Fi(e.card, {
1424
1426
  metricIndex: b,
1425
1427
  resultColumnKey: e.target.kind === "column" ? e.target.columnKey : void 0
1426
- }), h = m.authoredFormat;
1427
- return m.currencyBindable && h && k(h) ? _(
1428
- h,
1428
+ }), y = m.authoredFormat;
1429
+ return m.currencyBindable && y && k(y) ? _(
1430
+ y,
1429
1431
  e.valueFormatPreferences,
1430
1432
  e.boundCurrency
1431
1433
  ) : void 0;
@@ -1439,14 +1441,14 @@ function Sr(e) {
1439
1441
  const m = mt(
1440
1442
  e.card,
1441
1443
  b
1442
- ), h = m.authoredFormat;
1443
- return m.currencyBindable && h && k(h) ? _(
1444
- h,
1444
+ ), y = m.authoredFormat;
1445
+ return m.currencyBindable && y && k(y) ? _(
1446
+ y,
1445
1447
  e.valueFormatPreferences,
1446
1448
  e.boundCurrency
1447
1449
  ) : void 0;
1448
1450
  }
1449
- const i = ((y = (d = e.card.preferences) == null ? void 0 : d.tablePrefs) == null ? void 0 : y.columnSettingsMap) || {}, n = e.target.kind === "metric" ? e.target.metricId : void 0, r = e.target.kind === "column" ? [e.target.columnKey] : [
1451
+ const i = ((h = (d = e.card.preferences) == null ? void 0 : d.tablePrefs) == null ? void 0 : h.columnSettingsMap) || {}, n = e.target.kind === "metric" ? e.target.metricId : void 0, r = e.target.kind === "column" ? [e.target.columnKey] : [
1450
1452
  ...e.resultColumnKeys || [],
1451
1453
  ...Object.keys(i),
1452
1454
  e.target.metricId
@@ -1467,7 +1469,7 @@ function Sr(e) {
1467
1469
  });
1468
1470
  return k(o) ? o : void 0;
1469
1471
  }
1470
- function ho(e) {
1472
+ function yo(e) {
1471
1473
  var i, n, r, a, o, s;
1472
1474
  const t = e.persistedSettings ?? ((a = (r = (n = (i = e.card) == null ? void 0 : i.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : r.columnSettingsMap) == null ? void 0 : a[e.columnId]);
1473
1475
  if (!t && !e.resolvedSettings || (t == null ? void 0 : t.inheritMetricFormat) === !0 || ((o = e.resolvedSettings) == null ? void 0 : o.inheritMetricFormat) === !0) {
@@ -1493,18 +1495,18 @@ function ho(e) {
1493
1495
  );
1494
1496
  }
1495
1497
  function Mr(e) {
1496
- var v, b, m, h, C, D, w;
1497
- const t = (v = e == null ? void 0 : e.formatNumber) == null ? void 0 : v.enabled, i = typeof t == "string" ? t.trim().toLowerCase() !== "false" : t !== !1, n = yi(e == null ? void 0 : e.numberAxisFormat) || (i ? hi(e == null ? void 0 : e.formatNumber) : void 0), r = K(n);
1498
+ var v, b, m, y, C, D, w;
1499
+ const t = (v = e == null ? void 0 : e.formatNumber) == null ? void 0 : v.enabled, i = typeof t == "string" ? t.trim().toLowerCase() !== "false" : t !== !1, n = hi(e == null ? void 0 : e.numberAxisFormat) || (i ? yi(e == null ? void 0 : e.formatNumber) : void 0), r = K(n);
1498
1500
  if (!r || !r.type || r.type === "auto")
1499
1501
  return r;
1500
- const a = (b = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : b.decimalPlaces, o = i ? (m = e == null ? void 0 : e.formatNumber) == null ? void 0 : m.decimalPlaces : void 0, s = typeof a == "number" ? a : typeof o == "number" ? o : void 0, l = (h = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : h.minimumFractionDigits, c = (C = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : C.maximumFractionDigits, u = i ? (D = e == null ? void 0 : e.formatNumber) == null ? void 0 : D.minimumFractionDigits : void 0, f = i ? (w = e == null ? void 0 : e.formatNumber) == null ? void 0 : w.maximumFractionDigits : void 0, d = typeof s == "number" ? s : typeof l == "number" ? l : typeof u == "number" ? u : 0, y = typeof s == "number" ? s : typeof c == "number" ? c : typeof f == "number" ? f : 0;
1502
+ const a = (b = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : b.decimalPlaces, o = i ? (m = e == null ? void 0 : e.formatNumber) == null ? void 0 : m.decimalPlaces : void 0, s = typeof a == "number" ? a : typeof o == "number" ? o : void 0, l = (y = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : y.minimumFractionDigits, c = (C = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : C.maximumFractionDigits, u = i ? (D = e == null ? void 0 : e.formatNumber) == null ? void 0 : D.minimumFractionDigits : void 0, f = i ? (w = e == null ? void 0 : e.formatNumber) == null ? void 0 : w.maximumFractionDigits : void 0, d = typeof s == "number" ? s : typeof l == "number" ? l : typeof u == "number" ? u : 0, h = typeof s == "number" ? s : typeof c == "number" ? c : typeof f == "number" ? f : 0;
1501
1503
  return {
1502
1504
  ...r,
1503
- decimalPlaces: d === y ? y : r.decimalPlaces,
1505
+ decimalPlaces: d === h ? h : r.decimalPlaces,
1504
1506
  minimumFractionDigits: d,
1505
1507
  maximumFractionDigits: Math.max(
1506
1508
  d,
1507
- y
1509
+ h
1508
1510
  )
1509
1511
  };
1510
1512
  }
@@ -1541,7 +1543,7 @@ function bo(e) {
1541
1543
  }
1542
1544
  function Tr(e) {
1543
1545
  var n, r;
1544
- const t = ht(e.card, e.effectiveCardConfig), i = Ln({
1546
+ const t = yt(e.card, e.effectiveCardConfig), i = Ln({
1545
1547
  card: t,
1546
1548
  records: e.rows,
1547
1549
  keys: e.rows.length === 0 ? e.resultKeys : void 0,
@@ -1576,7 +1578,7 @@ function wr(e) {
1576
1578
  }
1577
1579
  function Pr(e) {
1578
1580
  var D, w, F, S, E;
1579
- const t = ht(e.card, e.effectiveCardConfig), { cardId: i, ...n } = e.requestPayloadBase, r = e.formatOptions.visibleColumns ?? [], a = [
1581
+ const t = yt(e.card, e.effectiveCardConfig), { cardId: i, ...n } = e.requestPayloadBase, r = e.formatOptions.visibleColumns ?? [], a = [
1580
1582
  ...r,
1581
1583
  ...Object.keys(e.formatOptions.columnSettings ?? {})
1582
1584
  ], o = Ci(
@@ -1614,7 +1616,7 @@ function Pr(e) {
1614
1616
  throw new Error(
1615
1617
  "Canonical pivot export requires a parsed pivot result lifecycle."
1616
1618
  );
1617
- const y = Dr({
1619
+ const h = Dr({
1618
1620
  card: e.card,
1619
1621
  cardConfig: e.effectiveCardConfig,
1620
1622
  columns: ((w = e.canonicalPivotResult) == null ? void 0 : w.columns) ?? e.resultColumns,
@@ -1668,11 +1670,11 @@ function Pr(e) {
1668
1670
  })
1669
1671
  );
1670
1672
  }
1671
- const h = [
1673
+ const y = [
1672
1674
  ...new Set(a)
1673
1675
  ].flatMap((p) => {
1674
1676
  var P, J, X, Z, ee, te;
1675
- if (y.byColumnKey.has(p) || m.has(p))
1677
+ if (h.byColumnKey.has(p) || m.has(p))
1676
1678
  return [];
1677
1679
  const g = f.columnPresentationOwners.get(p), I = (P = t.sql) != null && P.trim() ? void 0 : oe(t, {
1678
1680
  columnId: p,
@@ -1743,8 +1745,8 @@ function Pr(e) {
1743
1745
  Y.type === "duration" ? { scope: U, target: B, format: Y } : { scope: U, target: B, format: Y }
1744
1746
  ];
1745
1747
  });
1746
- h.push(
1747
- ...[...y.byColumnKey.values()].map((p) => {
1748
+ y.push(
1749
+ ...[...h.byColumnKey.values()].map((p) => {
1748
1750
  const g = b.get(
1749
1751
  `${p.role ?? "groupby"}:${p.fieldId}`
1750
1752
  );
@@ -1768,7 +1770,7 @@ function Pr(e) {
1768
1770
  )
1769
1771
  };
1770
1772
  })
1771
- ), h.push(
1773
+ ), y.push(
1772
1774
  ...((d == null ? void 0 : d.fields) || []).flatMap(
1773
1775
  (p) => p.role === "pivotby" ? [
1774
1776
  {
@@ -1792,7 +1794,7 @@ function Pr(e) {
1792
1794
  }
1793
1795
  ] : []
1794
1796
  )
1795
- ), h.push(
1797
+ ), y.push(
1796
1798
  ...[...m].map(([p, g]) => ({
1797
1799
  scope: { dashboardId: e.dashboardId, cardId: e.card.id },
1798
1800
  target: { kind: "column", columnKey: p },
@@ -1801,7 +1803,7 @@ function Pr(e) {
1801
1803
  );
1802
1804
  const C = Ki({
1803
1805
  reportContext: e.reportContext,
1804
- resolvedFormats: h
1806
+ resolvedFormats: y
1805
1807
  });
1806
1808
  return {
1807
1809
  formatOptions: {
@@ -2089,7 +2091,7 @@ function Lr(e, t) {
2089
2091
  const F = c.map((S) => S.id === r.id ? r : S);
2090
2092
  return F.some((S) => S.id === r.id) ? F : [r, ...F];
2091
2093
  })() : [r], f = new Map(u.map((F) => [F.id, F])), d = It(n, { kind: "frame_updated", frame: r, resizeForNewKind: t.resizeLayouts });
2092
- let y = /* @__PURE__ */ new Set();
2094
+ let h = /* @__PURE__ */ new Set();
2093
2095
  const v = en.produce(e, (F) => {
2094
2096
  const S = F.sheets[i];
2095
2097
  d.layouts !== n.layouts && (S.layouts = Qe(d.layouts)), d.customizedBreakpoints !== n.customizedBreakpoints && (S.customizedBreakpoints = d.customizedBreakpoints), t.sheetCalculatedFields !== void 0 && (S.calculatedFields = Kr(t.sheetCalculatedFields)), S.frames = S.frames.map((p) => {
@@ -2097,12 +2099,12 @@ function Lr(e, t) {
2097
2099
  return g ? Qe(l(g)) : p.calculatedFields === void 0 ? p : { ...p, calculatedFields: void 0 };
2098
2100
  });
2099
2101
  const E = We(S);
2100
- y = new Set([...s].filter((p) => !E.has(p))), tn(F, y), t.dashboardCalculatedFields && (F.calculatedFields = t.dashboardCalculatedFields);
2102
+ h = new Set([...s].filter((p) => !E.has(p))), tn(F, h), t.dashboardCalculatedFields && (F.calculatedFields = t.dashboardCalculatedFields);
2101
2103
  }), b = v.sheets[i].frames.find((F) => F.id === r.id), m = [
2102
- ...y.size ? [{ kind: "cards_removed", cardIds: [...y] }] : [],
2104
+ ...h.size ? [{ kind: "cards_removed", cardIds: [...h] }] : [],
2103
2105
  { kind: "frame_committed", sheetId: t.sheetId, before: o, after: b }
2104
- ], h = ((D = r.cards) == null ? void 0 : D.find((F) => F.id === r.activeCardId)) ?? ((w = r.cards) == null ? void 0 : w[0]);
2105
- return { dashboard: v, runtimeEffects: m, clauses: [Oe.committed(h == null ? void 0 : h.title)] };
2106
+ ], y = ((D = r.cards) == null ? void 0 : D.find((F) => F.id === r.activeCardId)) ?? ((w = r.cards) == null ? void 0 : w[0]);
2107
+ return { dashboard: v, runtimeEffects: m, clauses: [Oe.committed(y == null ? void 0 : y.title)] };
2106
2108
  }
2107
2109
  function qr(e, t, i) {
2108
2110
  var a;
@@ -2187,15 +2189,15 @@ function zr(e, t, i, n = { calendar: null }) {
2187
2189
  i.forceSelection ?? s.forceSelection,
2188
2190
  c,
2189
2191
  u
2190
- ) : s.forceSelection ? !0 : void 0, y = (Array.isArray(e.inputs) ? e.inputs : []).filter((M) => M.id !== s.id), v = i.variableName !== void 0 ? rn(i.variableName, [
2191
- ...y,
2192
+ ) : s.forceSelection ? !0 : void 0, h = (Array.isArray(e.inputs) ? e.inputs : []).filter((M) => M.id !== s.id), v = i.variableName !== void 0 ? rn(i.variableName, [
2193
+ ...h,
2192
2194
  ...r.inputs.filter((M) => M.input.id !== s.id).map((M) => M.input)
2193
- ]) : s.variableName, b = f && (l.title || l.column) !== (c.title || c.column), m = i.label ?? (b ? c.title || c.column || c.id : void 0), h = f && l.hide !== c.hide, C = f && l.toolbarWidth !== c.toolbarWidth, D = (M) => {
2195
+ ]) : s.variableName, b = f && (l.title || l.column) !== (c.title || c.column), m = i.label ?? (b ? c.title || c.column || c.id : void 0), y = f && l.hide !== c.hide, C = f && l.toolbarWidth !== c.toolbarWidth, D = (M) => {
2194
2196
  var Ue, Ge;
2195
2197
  const x = { ...M };
2196
- if (m !== void 0 && (x.label = m), i.variableName !== void 0 && (x.variableName = v), i.scope && (x.scope = i.scope), h || C) {
2198
+ if (m !== void 0 && (x.label = m), i.variableName !== void 0 && (x.variableName = v), i.scope && (x.scope = i.scope), y || C) {
2197
2199
  const be = Mt(c);
2198
- x.presentation = { ...M.presentation }, h && (x.presentation.placement = be.placement), C && (be.widthPx === void 0 ? delete x.presentation.widthPx : x.presentation.widthPx = be.widthPx);
2200
+ x.presentation = { ...M.presentation }, y && (x.presentation.placement = be.placement), C && (be.widthPx === void 0 ? delete x.presentation.widthPx : x.presentation.widthPx = be.widthPx);
2199
2201
  }
2200
2202
  return (i.forceSelection !== void 0 || f) && (d ? x.forceSelection = d : delete x.forceSelection), i.requiredAtExecution !== void 0 && (i.requiredAtExecution ? x.requiredAtExecution = !0 : delete x.requiredAtExecution), Ie(x, "optionSource", i.optionSource), Ie(x, "optionDependencies", i.optionDependencies), Ie(x, "optionPopulation", i.optionPopulation), ((Ue = i.mapping) == null ? void 0 : Ue.kind) === "save" && i.mapping.draft.acceptance.ok ? x.application = i.mapping.draft.acceptance.application : ((Ge = i.mapping) == null ? void 0 : Ge.kind) === "remove" && delete x.application, x;
2201
2203
  }, w = i.label !== void 0 && i.label !== s.label && i.label !== c.title ? i.label : void 0, F = f || i.variableName !== void 0 || w !== void 0, S = (M) => ({
@@ -2386,17 +2388,17 @@ function Gr(e, t, i, n) {
2386
2388
  });
2387
2389
  else if (i.runtimeScope === "perDocumentSection")
2388
2390
  for (const d of e.sheets ?? [])
2389
- for (const y of ((f = d.document) == null ? void 0 : f.sections) ?? [])
2391
+ for (const h of ((f = d.document) == null ? void 0 : f.sections) ?? [])
2390
2392
  l.push({
2391
2393
  sheetId: d.id,
2392
- sectionId: y.id,
2394
+ sectionId: h.id,
2393
2395
  sheetKind: "document"
2394
2396
  });
2395
2397
  let c = n;
2396
2398
  for (const d of l) {
2397
2399
  if (s(d)) continue;
2398
- const y = !!(c && Ne(c, i, d));
2399
- if (y && (c = Ae(c, i, d)), y || o(d)) {
2400
+ const h = !!(c && Ne(c, i, d));
2401
+ if (h && (c = Ae(c, i, d)), h || o(d)) {
2400
2402
  const { sheetKind: v, ...b } = d;
2401
2403
  r.push(b);
2402
2404
  }
@@ -2701,7 +2703,7 @@ function wo(e, t, i) {
2701
2703
  function aa(e, t, i) {
2702
2704
  switch (t.op) {
2703
2705
  case "card.add":
2704
- return yn(e, t);
2706
+ return hn(e, t);
2705
2707
  case "card.remove":
2706
2708
  return pn(e, t.cardId);
2707
2709
  case "card.update":
@@ -2739,7 +2741,7 @@ function oa(e) {
2739
2741
  }
2740
2742
  return t.map(({ clauses: i, ...n }) => ({
2741
2743
  ...n,
2742
- sentence: hn(sa(i))
2744
+ sentence: yn(sa(i))
2743
2745
  }));
2744
2746
  }
2745
2747
  function sa(e) {
@@ -3019,12 +3021,12 @@ function Vo(e) {
3019
3021
  defaultDateFilter: void 0
3020
3022
  };
3021
3023
  const s = ri(t, i, n);
3022
- if (!s || ya(s, G(r, n)))
3024
+ if (!s || ha(s, G(r, n)))
3023
3025
  return a;
3024
3026
  if (s.valueType === "date") {
3025
3027
  const l = Vi(
3026
3028
  "relativeMeta" in s ? s.relativeMeta : void 0
3027
- ) ?? ha(r, s, n);
3029
+ ) ?? ya(r, s, n);
3028
3030
  return l ? {
3029
3031
  operation: s.operation,
3030
3032
  defaultValues: r.defaultValues,
@@ -3052,7 +3054,7 @@ function pa(e, t) {
3052
3054
  (n) => n.filterId === t.filter.id
3053
3055
  ) ? "set" : void 0;
3054
3056
  }
3055
- function ya(e, t) {
3057
+ function ha(e, t) {
3056
3058
  return !!(t && e.operation === t.operation && Se(ut(e), ut(t)) && Se(
3057
3059
  "relativeMeta" in e ? e.relativeMeta : void 0,
3058
3060
  "relativeMeta" in t ? t.relativeMeta : void 0
@@ -3063,7 +3065,7 @@ function ut(e) {
3063
3065
  (t) => t instanceof Date ? t.getTime() : t
3064
3066
  );
3065
3067
  }
3066
- function ha(e, t, i) {
3068
+ function ya(e, t, i) {
3067
3069
  const n = Fn(i == null ? void 0 : i.tz), r = Fe(t.values[0], n);
3068
3070
  if (!r) return;
3069
3071
  const [a, o, s] = new Intl.DateTimeFormat("en-CA", {
@@ -3092,8 +3094,8 @@ function ha(e, t, i) {
3092
3094
  return (f == null ? void 0 : f.operation) === t.operation && Se(
3093
3095
  f.values.map(
3094
3096
  (d) => {
3095
- var y;
3096
- return (y = Fe(d, n)) == null ? void 0 : y.getTime();
3097
+ var h;
3098
+ return (h = Fe(d, n)) == null ? void 0 : h.getTime();
3097
3099
  }
3098
3100
  ),
3099
3101
  c
@@ -3182,11 +3184,11 @@ function Fa(e, t) {
3182
3184
  description: e.description,
3183
3185
  qualifiedEntityName: r,
3184
3186
  columns: t.map((o) => {
3185
- var y;
3187
+ var h;
3186
3188
  const s = e.type === "dataset" ? o.entityName || n : e.name, l = o.qualifiedEntityName || (e.type === "dataset" && s ? tt({ ...e, name: s }) : r), c = ba(
3187
3189
  o,
3188
3190
  e.type === "dataset" ? "semantic" : "physical"
3189
- ), u = (y = o.label) != null && y.trim() ? o.label : void 0, f = u ? void 0 : Cn(o.column_name);
3191
+ ), u = (h = o.label) != null && h.trim() ? o.label : void 0, f = u ? void 0 : Cn(o.column_name);
3190
3192
  return {
3191
3193
  id: In(s, o.column_name),
3192
3194
  name: o.column_name,
@@ -3395,7 +3397,7 @@ export {
3395
3397
  Ve as a2,
3396
3398
  ro as a3,
3397
3399
  mo as a4,
3398
- yo as a5,
3400
+ ho as a5,
3399
3401
  po as a6,
3400
3402
  Rt as a7,
3401
3403
  pr as a8,
@@ -3428,14 +3430,14 @@ export {
3428
3430
  Xa as aZ,
3429
3431
  ae as aa,
3430
3432
  fo as ab,
3431
- ho as ac,
3433
+ yo as ac,
3432
3434
  Qn as ad,
3433
3435
  rr as ae,
3434
3436
  vr as af,
3435
3437
  Fr as ag,
3436
3438
  go as ah,
3437
3439
  De as ai,
3438
- yr as aj,
3440
+ hr as aj,
3439
3441
  so as ak,
3440
3442
  ao as al,
3441
3443
  oo as am,