react-semaphor 0.1.591 → 0.1.593

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 (46) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +2 -2
  3. package/dist/chunks/{assistant-chat-Cazikwyh.js → assistant-chat-D05uNAeO.js} +7 -7
  4. package/dist/chunks/bookmark-impact-B0k90wq8.js +76 -0
  5. package/dist/chunks/{bookmark-state-Bt_eQEqt.js → bookmark-state-Be2W3s6t.js} +174 -166
  6. package/dist/chunks/{card-filter-builder-DFR-6Jpm.js → card-filter-builder-CiafWE26.js} +73 -73
  7. package/dist/chunks/{comparison-window-caption-CFaw-kIV.js → comparison-window-caption-h8w3ySL6.js} +88 -89
  8. package/dist/chunks/{dashboard-DCh9hKnJ.js → dashboard-T-gYKGTF.js} +1 -1
  9. package/dist/chunks/{dashboard-briefing-launcher-ob8G1b58.js → dashboard-briefing-launcher-CPh2B3Rf.js} +84 -84
  10. package/dist/chunks/{dashboard-controls-Nszg0k1A.js → dashboard-controls-Cijc9c3G.js} +9 -9
  11. package/dist/chunks/{dashboard-json-BpwnG23b.js → dashboard-json-D3m7h4VL.js} +1 -1
  12. package/dist/chunks/{dates-BOLBSBpn.js → dates-Bb0sn54j.js} +6 -6
  13. package/dist/chunks/{edit-dashboard-visual-BvM7br5P.js → edit-dashboard-visual-C0iSuX9t.js} +374 -374
  14. package/dist/chunks/{filter-reach-copy-By3r7O3G.js → filter-reach-copy-CifrEFxj.js} +221 -221
  15. package/dist/chunks/{filter-value-text-CFiIZWJP.js → filter-value-text-CHBm4IU7.js} +10 -10
  16. package/dist/chunks/{index-CsQYlwhU.js → index-CzM2w1kY.js} +22 -22
  17. package/dist/chunks/{pivot-result-contract-expectations-BkMRCjzf.js → pivot-result-contract-expectations-CaS0y823.js} +588 -552
  18. package/dist/chunks/{report-preferences-dialog-ChXt8wCt.js → report-preferences-dialog-GHvai50w.js} +9 -9
  19. package/dist/chunks/{resolve-dashboard-input-context-BlyFX8He.js → resolve-dashboard-input-context-BcQHmMlw.js} +7585 -6490
  20. package/dist/chunks/{saved-dashboard-context-BPSdH2jW.js → saved-dashboard-context-BHHEzmwM.js} +16 -16
  21. package/dist/chunks/{semaphor-ready-indicator-BZUMCHRU.js → semaphor-ready-indicator-AOUJrUAJ.js} +21334 -21330
  22. package/dist/chunks/{shelf-drop-preview-context-yJheoeTC.js → shelf-drop-preview-context-Cs62lWI1.js} +2 -2
  23. package/dist/chunks/stored-dashboard-Cmtl_Obh.js +4029 -0
  24. package/dist/chunks/{table-export-sheet-h7wm5TwP.js → table-export-sheet-Cd6z7SsG.js} +1 -1
  25. package/dist/chunks/{variable-draft-OpYyaVCW.js → variable-draft-CSK9Ps1o.js} +2 -2
  26. package/dist/dashboard/index.js +2 -2
  27. package/dist/dashboard-authoring/index.js +1097 -1105
  28. package/dist/format-utils/index.js +215 -216
  29. package/dist/index.js +56 -56
  30. package/dist/surfboard/index.js +2 -2
  31. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
  32. package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
  33. package/dist/types/index.js +30 -29
  34. package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
  35. package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
  36. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  37. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +3 -0
  38. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
  39. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
  40. package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
  41. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
  42. package/package.json +1 -1
  43. package/dist/chunks/bookmark-impact-rWjQgk8h.js +0 -75
  44. package/dist/chunks/pivot-header-presentation-gUxhdIdr.js +0 -42
  45. package/dist/chunks/stored-dashboard-CxQl9g0l.js +0 -4994
  46. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
@@ -1,11 +1,10 @@
1
- import { aF as Ge, i as qe, k as U, n as Xe, T as $e, aG as ae, aH as Pe, aI as Ye, aJ as Ie, aK as De, am as Le, f as Me, as as We, ax as Ze, at as Je, a as Qe, b as B, a7 as de, a5 as et, an as tt, q as fe, t as rt, Z as pe, $ as nt, a1 as ot, a8 as at, aL as I, aM as K } from "./pivot-result-contract-expectations-BkMRCjzf.js";
2
- import { h as Y, e as st, p as it, k as lt } from "./export-file-format-C-tJsxsf.js";
3
- import { aW as j, a7 as ct, m as q, aV as ut, r as mt } from "./validators-BlEWWX9O.js";
1
+ import { aH as Ge, i as Xe, j as U, m as qe, S as $e, aI as ae, aJ as Pe, aK as Ye, aL as Ie, aM as De, al as Le, an as Me, as as We, ax as Je, at as Ze, f as Qe, a as B, a6 as de, a4 as et, am as tt, o as fe, s as rt, aE as nt, Y as pe, _ as ot, a0 as at, a7 as st, aN as I, aO as K } from "./pivot-result-contract-expectations-CaS0y823.js";
2
+ import { h as Y, e as it, p as lt, k as ct } from "./export-file-format-C-tJsxsf.js";
3
+ import { aW as j, a7 as ut, m as X, aV as mt, r as dt } from "./validators-BlEWWX9O.js";
4
4
  import "./matrix-operation-contract-CAanJeCj.js";
5
5
  import "./analytics-base-schemas-8wz9vqn_.js";
6
- import { readPdfCapacityFacts as dt, PDF_SAFETY_LIMIT_EXCEEDED as se, PDF_CAPACITY as k, PDF_NUMBER_COLUMN_TOO_WIDE as ke, getUtf8ByteLength as ft, FAST_PDF_POLICY as pt, isPdfCapacityRefusalCode as ht } from "../pdf-export-policy/index.js";
7
- import { w as bt, v as yt } from "./raw-temporal-value-BzdgeDa7.js";
8
- import { p as gt } from "./pivot-header-presentation-gUxhdIdr.js";
6
+ import { readPdfCapacityFacts as ft, PDF_SAFETY_LIMIT_EXCEEDED as se, PDF_CAPACITY as k, PDF_NUMBER_COLUMN_TOO_WIDE as ke, getUtf8ByteLength as pt, FAST_PDF_POLICY as ht, isPdfCapacityRefusalCode as bt } from "../pdf-export-policy/index.js";
7
+ import { w as yt, v as gt } from "./raw-temporal-value-BzdgeDa7.js";
9
8
  import { c as wt, b as he } from "./pivot-result-identity-BKUjYO1u.js";
10
9
  function xt(e, t, r) {
11
10
  const n = {
@@ -21,12 +20,12 @@ function xt(e, t, r) {
21
20
  })}${s ?? ""}`;
22
21
  }
23
22
  function Q(e, t, r) {
24
- return e === null ? { value: e, text: null } : !t || !qe(t) && t.type !== "duration" ? {
23
+ return e === null ? { value: e, text: null } : !t || !Xe(t) && t.type !== "duration" ? {
25
24
  value: e,
26
25
  text: U(e, { type: "number", locale: r })
27
26
  } : t.type === "duration" ? {
28
27
  value: e,
29
- text: Xe(e, {
28
+ text: qe(e, {
30
29
  inputUnit: t.inputUnit,
31
30
  outputStyle: t.outputStyle,
32
31
  largestUnit: t.largestUnit,
@@ -65,7 +64,7 @@ function ye(e, t) {
65
64
  throw new RangeError("Comparison precision must be an integer from 0 to 6.");
66
65
  return e;
67
66
  }
68
- function Fr(e, t) {
67
+ function Sr(e, t) {
69
68
  const r = {
70
69
  mode: t.displayMode,
71
70
  current: Q(
@@ -212,14 +211,14 @@ function H(e) {
212
211
  return typeof t == "boolean" ? { kind: "boolean", text: r, value: t } : xe(t, r, !1) ?? o;
213
212
  }
214
213
  }
215
- function $r(e) {
214
+ function Fr(e) {
216
215
  return e.kind === "empty" ? "" : e.text;
217
216
  }
218
- const Pr = {
217
+ const $r = {
219
218
  rowLabels: "tabular",
220
219
  subtotals: "after"
221
220
  };
222
- function Ir(e, t) {
221
+ function Pr(e, t) {
223
222
  const r = t.rowLabels === "outline" ? { kind: "compact" } : e.layout.kind === "tabular" ? e.layout : { kind: "tabular", repeatLabels: !1 }, n = e.totals.rows;
224
223
  return {
225
224
  ...e,
@@ -244,7 +243,7 @@ function At(e) {
244
243
  }
245
244
  function Nt(e, t, r) {
246
245
  const n = e.descriptors.measures.filter(
247
- (c) => r.measureFormats[c.id] === void 0 && c.semanticFormat === void 0 && ct(c.column.dataType) === "number"
246
+ (c) => r.measureFormats[c.id] === void 0 && c.semanticFormat === void 0 && ut(c.column.dataType) === "number"
248
247
  );
249
248
  if (n.length === 0) return r;
250
249
  const o = /* @__PURE__ */ new Set();
@@ -271,10 +270,10 @@ function Nt(e, t, r) {
271
270
  return { ...r, measureFormats: s };
272
271
  }
273
272
  function z(e) {
274
- return q(e.slice(0, -1));
273
+ return X(e.slice(0, -1));
275
274
  }
276
275
  function Ot(e, t) {
277
- return t.length > e.length && q(t.slice(0, e.length)) === q(e);
276
+ return t.length > e.length && X(t.slice(0, e.length)) === X(e);
278
277
  }
279
278
  function Rt(e) {
280
279
  return e.map((t, r) => {
@@ -363,10 +362,10 @@ function Kt(e, t, r) {
363
362
  csvRows: (u, a) => u.map((m, y) => T(m, y ? u[y - 1] : a ?? void 0))
364
363
  };
365
364
  }
366
- function Dr(e) {
365
+ function Ir(e) {
367
366
  return e.columns.map((t) => Y(t.label));
368
367
  }
369
- function Lr(e, t, r) {
368
+ function Dr(e, t, r) {
370
369
  return jt(e, t, r).map((n, o) => {
371
370
  const s = t.columns[o];
372
371
  return s.kind === "measure" ? Ne(n, e.values[o], r.measureSemantics.get(s.measureId)) : Y(n);
@@ -453,7 +452,7 @@ function Vt(e) {
453
452
  function Bt(e, t, r) {
454
453
  const { levels: n } = $e(e.descriptors, t.presentation, r), o = t.spec.columns.length > 0, s = [], c = [], l = e.columns.map((d, b) => {
455
454
  if (d.kind !== "measure") return null;
456
- const w = o ? `${d.role}:${q(d.columnPath)}` : `measure:${b}`;
455
+ const w = o ? `${d.role}:${X(d.columnPath)}` : `measure:${b}`;
457
456
  let T = s.indexOf(w);
458
457
  return T < 0 && (T = s.push(w) - 1, c.push(o ? Pe(d.columnPath, d.role, t.presentation.totals.columns, n) : d.label)), T;
459
458
  }), f = t.spec.columns[t.spec.columns.length - 1];
@@ -464,7 +463,7 @@ function Bt(e, t, r) {
464
463
  groupLevelLabel: f ? De(f, t.presentation) : "Measures"
465
464
  };
466
465
  }
467
- function Mr(e) {
466
+ function Lr(e) {
468
467
  const { layout: t, rows: r, report: n } = e, o = {
469
468
  ...e.request,
470
469
  presentation: Nt(t, r, e.request.presentation)
@@ -476,8 +475,8 @@ function Mr(e) {
476
475
  return { request: o, table: f, ...l };
477
476
  }
478
477
  const F = (e) => e.toLocaleString("en-US"), G = (e) => `${F(Math.ceil(e / 1048576))} MB`, te = "export the data as CSV or Excel";
479
- function kr(e) {
480
- const t = dt(e.facts), r = e.dataExport ? `Add a filter to narrow it, or ${te}.` : "Add a filter to narrow it, then export again.";
478
+ function Mr(e) {
479
+ const t = ft(e.facts), r = e.dataExport ? `Add a filter to narrow it, or ${te}.` : "Add a filter to narrow it, then export again.";
481
480
  switch (e.code) {
482
481
  case "PDF_ROW_LIMIT_EXCEEDED": {
483
482
  const n = e.subject ?? "This table", o = t.rowLimit ?? k.maxTableRows;
@@ -507,7 +506,7 @@ class Ht extends Error {
507
506
  }
508
507
  }
509
508
  function zt(e) {
510
- return ht(e) || e === se || e === ke;
509
+ return bt(e) || e === se || e === ke;
511
510
  }
512
511
  function ve(e) {
513
512
  if (!e || typeof e != "object")
@@ -540,9 +539,9 @@ async function Gt(e) {
540
539
  return { message: t };
541
540
  }
542
541
  }
543
- async function Ar(e) {
542
+ async function kr(e) {
544
543
  if (!e.token) throw new Error("Missing auth token for PDF export");
545
- if (ft(e.serializedPayload) > pt.maxRequestBytes)
544
+ if (pt(e.serializedPayload) > ht.maxRequestBytes)
546
545
  throw new Error("Fast-path PDF request exceeds the structured body limit");
547
546
  const t = await (e.fetchImpl ?? fetch)(e.url, {
548
547
  method: "POST",
@@ -560,7 +559,7 @@ async function Ar(e) {
560
559
  throw new Error("Fast-path PDF response missing download URL");
561
560
  return r;
562
561
  }
563
- const Nr = 1, Oe = ["loading", "measuring", "checking", "laidOut"], qt = [
562
+ const Ar = 1, Oe = ["loading", "measuring", "checking", "laidOut"], Xt = [
564
563
  // Already emitted before these contracts; names kept.
565
564
  "document_matrix_too_large",
566
565
  "document_matrix_unavailable",
@@ -580,10 +579,10 @@ const Nr = 1, Oe = ["loading", "measuring", "checking", "laidOut"], qt = [
580
579
  // PDF capacity contract PC-D3: more pages than one PDF holds.
581
580
  "document_page_limit_exceeded"
582
581
  ];
583
- function Or(e) {
584
- return qt.includes(e);
582
+ function Nr(e) {
583
+ return Xt.includes(e);
585
584
  }
586
- const Xt = 64, Yt = 120, Wt = 3, Zt = 80, Jt = [...Oe, "noPageStack", "unknown"];
585
+ const qt = 64, Yt = 120, Wt = 3, Jt = 80, Zt = [...Oe, "noPageStack", "unknown"];
587
586
  function re(e, t) {
588
587
  return typeof e != "string" ? void 0 : e.trim().slice(0, t).trim() || void 0;
589
588
  }
@@ -602,8 +601,8 @@ function Qt(e) {
602
601
  return {};
603
602
  }
604
603
  if (!t || typeof t != "object" || Array.isArray(t)) return {};
605
- const r = t, n = Array.isArray(r.inputLabels) ? r.inputLabels.map((s) => re(s, Zt)).filter((s) => s !== void 0).slice(0, Wt) : [], o = {
606
- sectionId: re(r.sectionId, Xt),
604
+ const r = t, n = Array.isArray(r.inputLabels) ? r.inputLabels.map((s) => re(s, Jt)).filter((s) => s !== void 0).slice(0, Wt) : [], o = {
605
+ sectionId: re(r.sectionId, qt),
607
606
  sectionTitle: re(r.sectionTitle, Yt),
608
607
  pageNumber: S(r.pageNumber, 1),
609
608
  rowCount: S(r.rowCount, 0),
@@ -612,7 +611,7 @@ function Qt(e) {
612
611
  overflowAxis: ne(r.overflowAxis, ["height", "width"]),
613
612
  overflowPx: S(r.overflowPx, 0),
614
613
  matrixLimit: ne(r.matrixLimit, ["rows", "bytes"]),
615
- layoutStage: ne(r.layoutStage, Jt),
614
+ layoutStage: ne(r.layoutStage, Zt),
616
615
  loadingSectionCount: S(r.loadingSectionCount, 0),
617
616
  measuredRowCount: S(r.measuredRowCount, 0),
618
617
  totalRowCount: S(r.totalRowCount, 0),
@@ -623,7 +622,7 @@ function Qt(e) {
623
622
  Object.entries(o).filter(([, s]) => s !== void 0)
624
623
  );
625
624
  }
626
- function Rr(e) {
625
+ function Or(e) {
627
626
  const t = Qt(e.facts), r = t.sectionTitle ? `Section "${t.sectionTitle}"` : t.sectionId ? `Section ${t.sectionId}` : "A section", n = t.pageNumber !== void 0 ? ` on page ${t.pageNumber}` : "";
628
627
  switch (e.code) {
629
628
  case "document_section_setup":
@@ -670,7 +669,7 @@ function er(e) {
670
669
  function oe(e) {
671
670
  return typeof e == "number" && Number.isInteger(e) && e >= 0;
672
671
  }
673
- function Ur(e) {
672
+ function Rr(e) {
674
673
  let t = e;
675
674
  if (typeof e == "string")
676
675
  try {
@@ -683,11 +682,11 @@ function Ur(e) {
683
682
  if (!(!er(r) || !oe(n) || o !== null && !oe(o) || s !== null && !oe(s)))
684
683
  return { stage: r, measuredRowCount: n, totalRowCount: o, pageCount: s };
685
684
  }
686
- function Kr(e, t, r) {
685
+ function Ur(e, t, r) {
687
686
  const n = t.from > e.start ? t.from : e.start, o = t.to && t.to < e.end ? t.to : e.end, s = o > r ? "running" : n > e.start ? "start" : o < e.end ? "end" : void 0;
688
687
  return { start: n, end: o, ...s ? { partial: s } : {} };
689
688
  }
690
- function jr(e, t, r) {
689
+ function Kr(e, t, r) {
691
690
  switch (t) {
692
691
  case "running":
693
692
  return `${e} (so far)`;
@@ -699,7 +698,7 @@ function jr(e, t, r) {
699
698
  return e;
700
699
  }
701
700
  }
702
- function Vr(e, t, r) {
701
+ function jr(e, t, r) {
703
702
  const n = Date.parse(e.startInclusive), o = Date.parse(e.endExclusive);
704
703
  if (!Number.isFinite(n) || !Number.isFinite(o)) return;
705
704
  if (t.granularity === "hour" || t.granularity === "minute" || t.granularity === "second") {
@@ -727,7 +726,7 @@ function Vr(e, t, r) {
727
726
  c = void 0;
728
727
  }
729
728
  const l = (f) => {
730
- const d = bt(new Date(f), t.calendar.tz), b = `${String(d.year).padStart(4, "0")}-${String(d.month).padStart(2, "0")}-${String(d.day).padStart(2, "0")}`;
729
+ const d = yt(new Date(f), t.calendar.tz), b = `${String(d.year).padStart(4, "0")}-${String(d.month).padStart(2, "0")}-${String(d.day).padStart(2, "0")}`;
731
730
  try {
732
731
  return c ? Me({ value: b, metadata: s, format: c.format }) : b;
733
732
  } catch {
@@ -750,7 +749,7 @@ function Ue(e) {
750
749
  const t = e == null ? void 0 : e.sql, r = e == null ? void 0 : e.python;
751
750
  return (e == null ? void 0 : e.resultOwner) === "freeform" && typeof t == "string" && !!t.trim() && (typeof r != "string" || !r.trim());
752
751
  }
753
- function Br(e) {
752
+ function Vr(e) {
754
753
  return e.formatting.useFormattedValues !== !1 && Ue(e.queryPayload) && Re(e.formatting).size > 0;
755
754
  }
756
755
  function rr(e, t) {
@@ -782,7 +781,7 @@ function nr(e) {
782
781
  const d = o.get(l);
783
782
  let b;
784
783
  if (d != null && d.rawTemporal)
785
- b = yt(d, {
784
+ b = gt(d, {
786
785
  metadataRequired: !0
787
786
  }), r.add(l);
788
787
  else if (s) {
@@ -797,14 +796,14 @@ function nr(e) {
797
796
  b && n.set(l, {
798
797
  metadata: b,
799
798
  format: f,
800
- formatValue: Ze({ metadata: b, format: f })
799
+ formatValue: Je({ metadata: b, format: f })
801
800
  });
802
801
  }
803
802
  return {
804
803
  activatedColumnKeys: r,
805
804
  byColumnKey: n,
806
805
  ...s ? {
807
- sqlChunkEvidence: Je(c)
806
+ sqlChunkEvidence: Ze(c)
808
807
  } : {}
809
808
  };
810
809
  }
@@ -828,7 +827,7 @@ function Ce(e, t) {
828
827
  return r ? r.metadata.valueKind === "date" : void 0;
829
828
  }
830
829
  const ar = /* @__PURE__ */ new Set(["string", "number", "boolean", "date", "datetime"]), sr = /^\d{4}-\d{2}-\d{2}|^\d{2}\/\d{2}\/\d{4}/, ir = /^\d{4}-\d{2}-\d{2}$/, Ke = "MM/dd/yyyy";
831
- function X(e) {
830
+ function q(e) {
832
831
  return typeof e == "object" && e !== null && !Array.isArray(e);
833
832
  }
834
833
  function R(e) {
@@ -840,8 +839,8 @@ function _e(e) {
840
839
  function Te(e, t) {
841
840
  var n;
842
841
  const r = (n = e.columnSettings) == null ? void 0 : n[t];
843
- if (!(!X(r) || r.type !== "date"))
844
- return X(r.dateFormat) ? r.dateFormat : {};
842
+ if (!(!q(r) || r.type !== "date"))
843
+ return q(r.dateFormat) ? r.dateFormat : {};
845
844
  }
846
845
  function Ee(e) {
847
846
  return e.useCustomFormat && e.customFormat ? e.customFormat : e.format || Ke;
@@ -862,7 +861,7 @@ function ur(e) {
862
861
  const t = Ae(e);
863
862
  if (t !== void 0)
864
863
  try {
865
- return ut(t, /[.eE]/.test(t) ? "decimal" : "integer");
864
+ return mt(t, /[.eE]/.test(t) ? "decimal" : "integer");
866
865
  } catch {
867
866
  return;
868
867
  }
@@ -870,7 +869,7 @@ function ur(e) {
870
869
  function mr(e) {
871
870
  return e.calendar.fiscalCalendar && (e.granularity === "quarter" || e.granularity === "year") ? "fiscal" : e.granularity;
872
871
  }
873
- function Hr(e) {
872
+ function Br(e) {
874
873
  const { formatting: t, queryPayload: r } = e, n = t.useFormattedValues, o = t.scope, s = (a) => Qe({ snapshot: t.presentationExecutionSnapshot, scope: o, target: { kind: "column", columnKey: a } }), c = (a) => et({ snapshot: t.presentationExecutionSnapshot, scope: o, target: { kind: "column", columnKey: a } });
875
874
  function l(a) {
876
875
  var y;
@@ -885,7 +884,7 @@ function Hr(e) {
885
884
  const y = a == null ? void 0 : a.pivotIdentity;
886
885
  if (!y || !y.members || y.members.length === 0) return;
887
886
  const p = he({ identity: y, columnKey: (a == null ? void 0 : a.key) || (a == null ? void 0 : a.field) || "" });
888
- return gt({
887
+ return nt({
889
888
  members: p,
890
889
  metricLabel: (a == null ? void 0 : a.label) || (a == null ? void 0 : a.headerName),
891
890
  mode: n ? "formatted" : "canonical",
@@ -910,8 +909,8 @@ function Hr(e) {
910
909
  }).format;
911
910
  }
912
911
  function w(a, m) {
913
- const { records: y, columns: p } = a, C = X(r.cardConfig) ? r.cardConfig : void 0, g = C == null ? void 0 : C.pivotByColumns, x = Array.isArray(g) ? g.flatMap(
914
- (i) => X(i) && typeof i.id == "string" && i.id ? [i.id] : []
912
+ const { records: y, columns: p } = a, C = q(r.cardConfig) ? r.cardConfig : void 0, g = C == null ? void 0 : C.pivotByColumns, x = Array.isArray(g) ? g.flatMap(
913
+ (i) => q(i) && typeof i.id == "string" && i.id ? [i.id] : []
915
914
  ) : [];
916
915
  wt(
917
916
  p.map((i) => ({ key: R(i) || "<unknown>", pivotIdentity: i.pivotIdentity })),
@@ -945,7 +944,7 @@ function Hr(e) {
945
944
  }
946
945
  h && _ && le.set(i, b(_, h));
947
946
  }
948
- const Z = v.map((i) => {
947
+ const J = v.map((i) => {
949
948
  const h = Be.get(i), _ = h && ar.has(h) ? h : "unknown", E = n ? T(i, L, W) : void 0, D = f(i, $.get(i)), A = n && L.activatedColumnKeys.has(i) && Ce(L, i) === void 0;
950
949
  return {
951
950
  key: i,
@@ -974,13 +973,13 @@ function Hr(e) {
974
973
  };
975
974
  }
976
975
  if (i == null) return { text: "", value: i };
977
- const J = c(h);
978
- if (J && typeof i == "number" && Number.isFinite(i))
976
+ const Z = c(h);
977
+ if (Z && typeof i == "number" && Number.isFinite(i))
979
978
  return {
980
979
  text: fe(
981
980
  new Date(i).toISOString(),
982
- J.pattern || Ke,
983
- Se(J.timezone, t.timezone),
981
+ Z.pattern || Ke,
982
+ Se(Z.timezone, t.timezone),
984
983
  "UTC"
985
984
  ),
986
985
  value: i
@@ -1006,7 +1005,7 @@ function Hr(e) {
1006
1005
  return { text: _e(i), value: i };
1007
1006
  }
1008
1007
  const ze = y.map(
1009
- (i, h) => Z.map((_) => {
1008
+ (i, h) => J.map((_) => {
1010
1009
  const E = He(i[_.key], _.key, h, _);
1011
1010
  return H({ value: E.value, text: E.text, column: _.xlsx, wallClock: E.wallClock });
1012
1011
  })
@@ -1017,8 +1016,8 @@ function Hr(e) {
1017
1016
  h != null && h.pivotIdentity && he({ identity: h.pivotIdentity, columnKey: R(h) || i });
1018
1017
  }
1019
1018
  return {
1020
- ...ce ? { header: Z.map((i) => i.label) } : {},
1021
- columns: Z,
1019
+ ...ce ? { header: J.map((i) => i.label) } : {},
1020
+ columns: J,
1022
1021
  rows: ze,
1023
1022
  ...L.sqlChunkEvidence ? { rawTemporalClassification: L.sqlChunkEvidence } : {}
1024
1023
  };
@@ -1080,7 +1079,7 @@ function Fe(e, t) {
1080
1079
  return e;
1081
1080
  }
1082
1081
  }
1083
- function zr(e) {
1082
+ function Hr(e) {
1084
1083
  if (!ie(e))
1085
1084
  throw new Error("formatting must be an object");
1086
1085
  const t = ["reportContext", "resolvedFormats"].find(
@@ -1096,17 +1095,17 @@ function zr(e) {
1096
1095
  const n = typeof e.timezone == "string" ? e.timezone.trim() : "";
1097
1096
  if (!n)
1098
1097
  throw new Error("formatting.timezone must be a non-empty string");
1099
- const o = st(e.delimiter);
1098
+ const o = it(e.delimiter);
1100
1099
  if (!o)
1101
1100
  throw new Error("formatting.delimiter must be a comma, semicolon or tab");
1102
- const s = it(e.csvEncoding);
1101
+ const s = lt(e.csvEncoding);
1103
1102
  if (!s)
1104
1103
  throw new Error("formatting.csvEncoding must be 'utf-8-bom' or 'utf-8'");
1105
1104
  if (typeof e.includeHeaders != "boolean")
1106
1105
  throw new Error("formatting.includeHeaders must be a boolean");
1107
1106
  if (e.useFormattedValues !== void 0 && typeof e.useFormattedValues != "boolean")
1108
1107
  throw new Error("formatting.useFormattedValues must be a boolean");
1109
- const c = e.fileFormat === void 0 ? void 0 : lt(e.fileFormat);
1108
+ const c = e.fileFormat === void 0 ? void 0 : ct(e.fileFormat);
1110
1109
  if (e.fileFormat !== void 0 && !c)
1111
1110
  throw new Error("formatting.fileFormat must be 'csv' or 'xlsx'");
1112
1111
  if (e.title !== void 0 && typeof e.title != "string")
@@ -1122,16 +1121,16 @@ function zr(e) {
1122
1121
  throw new Error("formatting.tableTotalsLabelColumnKey must be a non-empty string");
1123
1122
  if (b && !(l != null && l.includes(b)))
1124
1123
  throw new Error("formatting.tableTotalsLabelColumnKey must identify a visible column");
1125
- const w = nt(e.scope, "formatting.scope");
1124
+ const w = ot(e.scope, "formatting.scope");
1126
1125
  if (!w.cardId || w.attachmentIndex !== void 0)
1127
1126
  throw new Error("formatting.scope must identify exactly one dashboard card");
1128
- const T = e.useFormattedValues !== !1, u = ot(e.presentationExecutionSnapshot);
1127
+ const T = e.useFormattedValues !== !1, u = at(e.presentationExecutionSnapshot);
1129
1128
  if (n !== u.reportContext.calendar.tz)
1130
1129
  throw new Error(
1131
1130
  "formatting.timezone must equal presentationExecutionSnapshot.reportContext.calendar.tz"
1132
1131
  );
1133
1132
  try {
1134
- at({
1133
+ st({
1135
1134
  snapshot: u,
1136
1135
  expectedScope: { dashboardId: w.dashboardId, cardId: w.cardId },
1137
1136
  visibleColumns: l,
@@ -1158,7 +1157,7 @@ function zr(e) {
1158
1157
  ...typeof e.title == "string" ? { title: e.title } : {}
1159
1158
  };
1160
1159
  }
1161
- function Gr(e) {
1160
+ function zr(e) {
1162
1161
  const t = e.formatOptions, r = (n) => ie(n) ? n : void 0;
1163
1162
  return {
1164
1163
  scope: { dashboardId: e.dashboardId, cardId: e.cardId },
@@ -1176,7 +1175,7 @@ function Gr(e) {
1176
1175
  ...typeof e.title == "string" ? { title: e.title } : {}
1177
1176
  };
1178
1177
  }
1179
- function qr(e) {
1178
+ function Gr(e) {
1180
1179
  return ((e == null ? void 0 : e.filterValues) ?? []).filter(fr).map(pr);
1181
1180
  }
1182
1181
  function fr(e) {
@@ -1184,7 +1183,7 @@ function fr(e) {
1184
1183
  }
1185
1184
  function pr(e) {
1186
1185
  if (!("relativeMeta" in e) || e.relativeMeta === void 0) return e;
1187
- const { relativeMeta: t, ...r } = e, n = mt(t);
1186
+ const { relativeMeta: t, ...r } = e, n = dt(t);
1188
1187
  return n ? { ...r, relativeMeta: n } : r;
1189
1188
  }
1190
1189
  const hr = /* @__PURE__ */ new Set([
@@ -1270,41 +1269,41 @@ function yr(e, t, r, n = !1) {
1270
1269
  return { start: e.start, end: `before ${e.end}` };
1271
1270
  }
1272
1271
  export {
1273
- jr as A,
1274
- Vr as B,
1275
- Hr as C,
1276
- Nr as D,
1277
- zr as E,
1278
- Gr as F,
1279
- Br as G,
1280
- qr as H,
1272
+ Kr as A,
1273
+ jr as B,
1274
+ Br as C,
1275
+ Ar as D,
1276
+ Hr as E,
1277
+ zr as F,
1278
+ Vr as G,
1279
+ Gr as H,
1281
1280
  yr as I,
1282
- Pr as M,
1281
+ $r as M,
1283
1282
  Ut as P,
1284
- Fr as a,
1285
- Dr as b,
1286
- Lr as c,
1283
+ Sr as a,
1284
+ Ir as b,
1285
+ Dr as c,
1287
1286
  Vt as d,
1288
- $r as e,
1287
+ Fr as e,
1289
1288
  Xr as f,
1290
- Mr as g,
1291
- Ir as h,
1289
+ Lr as g,
1290
+ Pr as h,
1292
1291
  kt as i,
1293
1292
  Nt as j,
1294
1293
  Rt as k,
1295
- kr as l,
1294
+ Mr as l,
1296
1295
  jt as m,
1297
1296
  Ht as n,
1298
1297
  zt as o,
1299
1298
  Kt as p,
1300
1299
  Gt as q,
1301
1300
  ge as r,
1302
- Ar as s,
1301
+ kr as s,
1303
1302
  H as t,
1304
- qt as u,
1305
- Or as v,
1303
+ Xt as u,
1304
+ Nr as v,
1306
1305
  Qt as w,
1307
- Rr as x,
1308
- Ur as y,
1309
- Kr as z
1306
+ Or as x,
1307
+ Rr as y,
1308
+ Ur as z
1310
1309
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-BZUMCHRU.js";
2
+ import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-AOUJrUAJ.js";
3
3
  function u(e) {
4
4
  if (typeof window > "u")
5
5
  return null;