react-semaphor 0.1.563 → 0.1.565

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 (139) hide show
  1. package/DATA_APP_SDK.md +3 -3
  2. package/README.md +2 -2
  3. package/dist/analytics-protocol/index.js +8 -8
  4. package/dist/assistant-context/index.js +3 -2
  5. package/dist/brand-studio/index.js +28 -29
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{assistant-chat-iIp02_77.js → assistant-chat-DNfb5fbF.js} +294 -294
  8. package/dist/chunks/{bookmark-impact-D4Kl4amw.js → bookmark-impact-CHr7b1J2.js} +2 -2
  9. package/dist/chunks/bookmark-state-ByODVqee.js +1613 -0
  10. package/dist/chunks/card-filter-builder-CcEcfaYz.js +4100 -0
  11. package/dist/chunks/{switch-BW4yXSYs.js → code-editor-DJNOsgJH.js} +463 -442
  12. package/dist/chunks/{comparison-window-caption-D1EUXzaR.js → comparison-window-caption-CMLb3mut.js} +451 -419
  13. package/dist/chunks/{dashboard-CmqeP3QZ.js → dashboard-CtIfxycc.js} +1 -1
  14. package/dist/chunks/dashboard-briefing-launcher-D3mc6peE.js +4910 -0
  15. package/dist/chunks/{dashboard-controls-B253nJS-.js → dashboard-controls-BFv0zdws.js} +684 -674
  16. package/dist/chunks/{dashboard-json-osQuinUZ.js → dashboard-json-CXn_3OYb.js} +4 -4
  17. package/dist/chunks/{dates-DFY7Gfss.js → dates-DcRxw17S.js} +13 -13
  18. package/dist/chunks/{edit-dashboard-visual-CMar-NhA.js → edit-dashboard-visual-Y6HatqBd.js} +7704 -10337
  19. package/dist/chunks/filter-reach-copy-DbggA5B7.js +4673 -0
  20. package/dist/chunks/{filter-value-text-CPwFkrMz.js → filter-value-text-7zhmth1S.js} +2 -2
  21. package/dist/chunks/{index-CNGkfUp4.js → index-DDa_rklN.js} +69 -64
  22. package/dist/chunks/index-RNaTnE3m.js +585 -0
  23. package/dist/chunks/{layout-grid-BM65viQh.js → layout-grid-0hIlqEtk.js} +1 -1
  24. package/dist/chunks/{list-filter-BoeLBfL3.js → list-filter-DkgoCeBm.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-hEucouWM.js → matrix-analytical-definition-C9xB_T84.js} +18 -18
  26. package/dist/chunks/{matrix-card-CCh9JjP1.js → matrix-card-BSUeSXpD.js} +2 -2
  27. package/dist/chunks/{matrix-member-presentation-DsAUbuoL.js → matrix-member-presentation-DZNgQpUq.js} +1 -1
  28. package/dist/chunks/{matrix-operation-contract-DsLdFdSa.js → matrix-operation-contract-Eb6elidS.js} +1 -1
  29. package/dist/chunks/{metric-comparison-Bnso1cm1.js → metric-comparison-ChXUFaZu.js} +1 -1
  30. package/dist/chunks/{palette-p1XSJFgB.js → palette-4vf2BEEg.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-B53jqszr.js → pivot-result-contract-expectations-Ddh1rNz5.js} +4 -4
  32. package/dist/chunks/{pivot-result-identity-Dq5jm-EC.js → pivot-result-identity-BlbLrqaC.js} +1 -1
  33. package/dist/chunks/{report-preferences-dialog-l54wJyYE.js → report-preferences-dialog-Db-b04B4.js} +122 -131
  34. package/dist/chunks/{report-runtime-context-BITkNSDa.js → report-runtime-context-DnA_PiKo.js} +1 -1
  35. package/dist/chunks/resolve-dashboard-input-context-C18J-YZC.js +21394 -0
  36. package/dist/chunks/{save-CHV1B1fL.js → save-D6pHmSSP.js} +1 -1
  37. package/dist/chunks/saved-dashboard-context-DhC_EVus.js +629 -0
  38. package/dist/chunks/{selection-reducer-Bz5aywT4.js → selection-reducer-OaJ-N5uN.js} +1 -1
  39. package/dist/chunks/{semaphor-ready-indicator-C3EQEiD9.js → semaphor-ready-indicator-T6TsiBMT.js} +80879 -80744
  40. package/dist/chunks/{shelf-drop-preview-context-BODiBlqT.js → shelf-drop-preview-context-CNWL_b0S.js} +407 -407
  41. package/dist/chunks/{source-entity-resolution-DdDVXFB8.js → source-entity-resolution-DF6GulDn.js} +1 -1
  42. package/dist/chunks/stored-dashboard-IdmtrNkA.js +5026 -0
  43. package/dist/chunks/{table-export-sheet-bSXxGn-v.js → table-export-sheet--DUKWk6o.js} +1 -1
  44. package/dist/chunks/{temporal-input-presentation-sk9gqLi6.js → temporal-input-presentation--2r9BLr0.js} +392 -377
  45. package/dist/chunks/{token-types-BUK06hU2.js → token-types-C8JymO8s.js} +1 -1
  46. package/dist/chunks/{upload-BnmuyPqW.js → upload-Cf3wXZT8.js} +1 -1
  47. package/dist/chunks/{validators-BIM0FE31.js → validators-wtjw0aw6.js} +7 -7
  48. package/dist/chunks/variable-draft-3xseULxR.js +241 -0
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +2226 -1704
  51. package/dist/data-app-sdk/index.js +4 -4
  52. package/dist/data-app-sdk-adapters/index.js +2 -2
  53. package/dist/data-app-sdk-validation/index.js +5 -5
  54. package/dist/format-utils/index.js +174 -167
  55. package/dist/index.js +190 -188
  56. package/dist/layouts/index.js +1 -1
  57. package/dist/pdf-export-policy/index.js +80 -28
  58. package/dist/pdf-table-layout/index.js +65 -65
  59. package/dist/report-runtime-context/index.js +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  63. package/dist/types/components/activity/activity-bell.d.ts +5 -1
  64. package/dist/types/components/activity/activity-types.d.ts +12 -4
  65. package/dist/types/components/dashboard-variables/data-variables-menu.d.ts +8 -0
  66. package/dist/types/components/dashboard-variables/variable-editor-host.d.ts +1 -0
  67. package/dist/types/components/index.d.ts +2 -0
  68. package/dist/types/index.js +5 -5
  69. package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +62 -0
  70. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +33 -2
  71. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +7 -2
  72. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +4 -2
  73. package/dist/types/lib/dashboard-variables/data-text.d.ts +33 -0
  74. package/dist/types/lib/dashboard-variables/types.d.ts +207 -0
  75. package/dist/types/lib/document/document-edits.d.ts +16 -1
  76. package/dist/types/lib/document/document-panel-target.d.ts +1 -1
  77. package/dist/types/lib/document/document-section-query-options.d.ts +29 -0
  78. package/dist/types/lib/document/document-table-data-policy.d.ts +0 -1
  79. package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +92 -0
  80. package/dist/types/lib/query-context/build-card-query-context.d.ts +6 -0
  81. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +1 -0
  82. package/dist/types/lib/query-context/use-semantic-execution-payload-for-cards.d.ts +24 -0
  83. package/dist/types/lib/stores/dashboard-store.d.ts +36 -0
  84. package/dist/types/lib/text-variables/temporal-input-text.d.ts +28 -0
  85. package/dist/types/lib/text-variables/text-variable-types.d.ts +72 -0
  86. package/dist/types/lib/types/common-types.d.ts +155 -51
  87. package/dist/types/lib/utils/card-definition.d.ts +2 -2
  88. package/dist/types/shared/assistant-context/index.d.ts +1 -1
  89. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +51 -1
  90. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +7 -1
  91. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +10 -0
  92. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +7 -1
  93. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +1088 -431
  94. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +18 -1
  95. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -1
  96. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +1 -1
  97. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +10 -0
  98. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +40 -40
  99. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -16
  100. package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +1 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-filter-targets.d.ts +29 -0
  102. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +7 -4
  103. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +159 -0
  104. package/dist/types/shared/dashboard-authoring/dashboard-variable-changes.d.ts +61 -0
  105. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +7 -0
  106. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
  107. package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +10 -0
  108. package/dist/types/shared/dashboard-authoring/index.d.ts +6 -0
  109. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +2 -0
  110. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +1 -1
  111. package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +1 -1
  112. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +50 -3
  113. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +48 -1
  114. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +2 -2
  115. package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +87 -13
  116. package/dist/types/shared/dashboard-authoring/text-card-words/chip-colors.d.ts +23 -0
  117. package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +90 -8
  118. package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +31 -3
  119. package/dist/types/shared/dashboard-authoring/text-card-words/variable-words.d.ts +8 -0
  120. package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +125 -0
  121. package/dist/types/shared/dashboard-authoring/variable-editability.d.ts +24 -0
  122. package/dist/types/shared/dashboard-authoring/variable-references.d.ts +39 -0
  123. package/dist/types/shared/format-utils/document-print.d.ts +4 -2
  124. package/dist/types/shared/format-utils/index.d.ts +1 -0
  125. package/dist/types/shared/format-utils/pdf-capacity-lines.d.ts +17 -0
  126. package/dist/types/shared/format-utils/pdf-delivery.d.ts +8 -1
  127. package/dist/types/shared/format-utils/pdf-export-policy.d.ts +74 -6
  128. package/dist/types/shared/format-utils/presentation-execution.d.ts +9 -0
  129. package/package.json +2 -2
  130. package/src/data-app-sdk/README.md +3 -3
  131. package/dist/chunks/bookmark-state-CWeoGbrx.js +0 -743
  132. package/dist/chunks/braces-DzgoQC64.js +0 -23
  133. package/dist/chunks/dashboard-briefing-launcher-TYlSW77S.js +0 -3828
  134. package/dist/chunks/filter-reach-copy-CvV7W5dd.js +0 -3965
  135. package/dist/chunks/global-date-filter-utils-N1kcsOFE.js +0 -16722
  136. package/dist/chunks/index-CJW5BdWT.js +0 -583
  137. package/dist/chunks/resolve-dashboard-input-context-DaDrZGuA.js +0 -8214
  138. package/dist/chunks/saved-dashboard-context-DFYBrE6O.js +0 -564
  139. package/dist/chunks/use-create-flow-overlay-state-BXY8-Cyz.js +0 -1436
@@ -1,7 +1,7 @@
1
- import { u as y, v as N } from "./validators-BIM0FE31.js";
1
+ import { u as y, v as N } from "./validators-wtjw0aw6.js";
2
2
  import { g as k, c as D } from "./raw-temporal-value-Bqz8wc7L.js";
3
3
  import "../value-format-preferences/index.js";
4
- import { a8 as T, a7 as L } from "./temporal-input-presentation-sk9gqLi6.js";
4
+ import { a9 as T, a8 as L } from "./temporal-input-presentation--2r9BLr0.js";
5
5
  const d = { kind: "plain" }, g = { kind: "temporal" }, O = {
6
6
  "=": "=",
7
7
  "!=": "!=",
@@ -1,20 +1,20 @@
1
1
  var De = Object.defineProperty;
2
2
  var _e = (e, n, t) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var R = (e, n, t) => _e(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { as as Oe, W as Fe, ag as re, N as le, j as Ne, V as Re, R as N } from "./temporal-input-presentation-sk9gqLi6.js";
5
- import { a9 as W, H as Me, o as Be } from "./validators-BIM0FE31.js";
4
+ import { at as Oe, W as Fe, ah as re, N as le, j as Ne, V as Re, R as N } from "./temporal-input-presentation--2r9BLr0.js";
5
+ import { a9 as W, H as Me, o as Be } from "./validators-wtjw0aw6.js";
6
6
  import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
7
7
  import { z as y } from "zod";
8
- import { ah as Pe, aj as Ve, X as ze } from "./matrix-operation-contract-DsLdFdSa.js";
8
+ import { ah as Pe, aj as Ve, X as ze } from "./matrix-operation-contract-Eb6elidS.js";
9
9
  import "./analytics-base-schemas-BaIQrEzX.js";
10
10
  import "../value-format-preferences/index.js";
11
11
  import { r as je } from "./rendered-file-D8xEuVVx.js";
12
- import { Q as qe, R as Ke, S as He, T as Ge, n as We, U as Xe, V as Ze, W as Ye, X as Je, Y as Qe, Z as et, _ as tt, $ as nt } from "./global-date-filter-utils-N1kcsOFE.js";
13
- import { r as rt } from "./matrix-card-CCh9JjP1.js";
14
- import { A as ot } from "./bookmark-state-CWeoGbrx.js";
12
+ import { J as qe, K as Ke, L as Ge, M as He, n as We, N as Xe, O as Ze, P as Ye, Q as Je, R as Qe, S as et, T as tt } from "./resolve-dashboard-input-context-C18J-YZC.js";
13
+ import { r as nt } from "./matrix-card-BSUeSXpD.js";
14
+ import { G as rt, H as ot } from "./bookmark-state-ByODVqee.js";
15
15
  import "./index-CuHybtft.js";
16
16
  import "./_commonjsHelpers-DimLPMtv.js";
17
- import "./index-CJW5BdWT.js";
17
+ import "./index-RNaTnE3m.js";
18
18
  import "./context-R31TSL5V.js";
19
19
  const at = /* @__PURE__ */ new Set(["table", "detailTable"]), it = /* @__PURE__ */ new Set([
20
20
  "bar",
@@ -49,7 +49,7 @@ function qn(e) {
49
49
  const n = it.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
50
50
  let t = !1;
51
51
  try {
52
- t = !!rt(e);
52
+ t = !!nt(e);
53
53
  } catch {
54
54
  return { formats: [], defaultFormat: null };
55
55
  }
@@ -92,13 +92,13 @@ function lt(e) {
92
92
  function dt(e) {
93
93
  return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || X(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
94
94
  }
95
- function Hn(e) {
95
+ function Gn(e) {
96
96
  return lt(e).label;
97
97
  }
98
98
  function st(e) {
99
99
  return at.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
100
100
  }
101
- function Gn(e) {
101
+ function Hn(e) {
102
102
  const { config: n } = e, t = Oe({
103
103
  spec: n.spec,
104
104
  presentation: n.presentation,
@@ -283,14 +283,14 @@ function pt(e, n) {
283
283
  var i;
284
284
  const t = n ? (i = e.cards) == null ? void 0 : i.find((c) => c.id === n) : de(e);
285
285
  if (!t) return [];
286
- const r = Qe(e, t), o = (e.cards || []).filter(
286
+ const r = Je(e, t), o = (e.cards || []).filter(
287
287
  (c) => {
288
288
  var l;
289
289
  return typeof ((l = c.customCardPreferences) == null ? void 0 : l.slotIndex) == "number";
290
290
  }
291
- ).length > 1, a = r != null && (et(r) === "multiple" || o);
292
- return !r || !a ? [t] : tt(
293
- nt({
291
+ ).length > 1, a = r != null && (Qe(r) === "multiple" || o);
292
+ return !r || !a ? [t] : et(
293
+ tt({
294
294
  frame: e,
295
295
  configCard: r,
296
296
  isMultiInputVisual: !0
@@ -315,7 +315,7 @@ function Jn(e) {
315
315
  fieldId: p.id,
316
316
  role: p.role
317
317
  },
318
- format: He(
318
+ format: Ge(
319
319
  p,
320
320
  {
321
321
  dateStyle: e.valueFormatPreferences.dateStyle,
@@ -323,19 +323,19 @@ function Jn(e) {
323
323
  },
324
324
  e.valueFormatPreferences.locale
325
325
  )
326
- })) : [], c = [], l = Ge(n, r), m = We(
326
+ })) : [], c = [], l = He(n, r), m = We(
327
327
  n.python || ""
328
328
  );
329
329
  if (n.type === "detailTable" && l === "config") {
330
- const p = (r == null ? void 0 : r.detailColumns) || [], g = Xe({
330
+ const p = (r == null ? void 0 : r.detailColumns) || [], g = rt({
331
331
  groupByColumns: r == null ? void 0 : r.groupByColumns,
332
332
  metricColumns: r == null ? void 0 : r.metricColumns,
333
333
  pivotByColumns: r == null ? void 0 : r.pivotByColumns,
334
334
  detailColumns: p
335
335
  });
336
336
  for (const v of p) {
337
- const A = Me(v.dataType);
338
- if (A !== "date" && A !== "datetime") continue;
337
+ const k = Me(v.dataType);
338
+ if (k !== "date" && k !== "datetime") continue;
339
339
  const F = g.get(v);
340
340
  if (!F) throw new M(a);
341
341
  c.push({
@@ -343,7 +343,7 @@ function Jn(e) {
343
343
  target: { kind: "column", columnKey: F },
344
344
  format: re({
345
345
  // What the table draws: the stored format, or Automatic (ledger P7-07).
346
- format: Ze(v),
346
+ format: Xe(v),
347
347
  preferences: e.valueFormatPreferences,
348
348
  calendar: e.calendar
349
349
  })
@@ -351,10 +351,10 @@ function Jn(e) {
351
351
  }
352
352
  } else if (l === "freeform" && ((f = n.sql) != null && f.trim()) && !m.trim())
353
353
  for (const [p, g] of Object.entries(
354
- Ye(n)
354
+ Ze(n)
355
355
  )) {
356
356
  if (g.type !== "date") continue;
357
- const v = Je(
357
+ const v = Ye(
358
358
  g.dateFormat
359
359
  );
360
360
  v && c.push({
@@ -740,7 +740,7 @@ function ye(e) {
740
740
  const f = i.split(",").map((v) => se.get(v));
741
741
  if (f.some((v) => v === void 0)) return C;
742
742
  const p = f, g = fe(p);
743
- return !g || g.some((v, A) => v !== p[A]) ? C : g.length === U.length && g.every((v, A) => v === U[A]) ? {
743
+ return !g || g.some((v, k) => v !== p[k]) ? C : g.length === U.length && g.every((v, k) => v === U[k]) ? {
744
744
  ok: !0,
745
745
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !0 }
746
746
  } : {
@@ -785,7 +785,7 @@ function St(e, n, t) {
785
785
  timeZone: "UTC"
786
786
  }).format(new Date(Date.UTC(2020, 0, 1, e, n)));
787
787
  }
788
- function kt(e, n) {
788
+ function At(e, n) {
789
789
  var t;
790
790
  if (e === "UTC") return "UTC";
791
791
  try {
@@ -800,7 +800,7 @@ function kt(e, n) {
800
800
  function ie(e) {
801
801
  return e.length <= 1 ? e.join("") : e.length === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
802
802
  }
803
- function At(e) {
803
+ function kt(e) {
804
804
  const n = e % 100;
805
805
  return n >= 11 && n <= 13 ? `${e}th` : `${e}${["th", "st", "nd", "rd"][e % 10] ?? "th"}`;
806
806
  }
@@ -817,7 +817,7 @@ function tr(e, n, t = "en-US") {
817
817
  const r = ye(e);
818
818
  if (!r.ok) return null;
819
819
  try {
820
- const o = r.value, a = kt(n, t);
820
+ const o = r.value, a = At(n, t);
821
821
  if (!a) return null;
822
822
  const i = `at ${St(o.hour, o.minute, t)} ${a}`, c = (l) => new Intl.DateTimeFormat(t, {
823
823
  weekday: "long",
@@ -833,7 +833,7 @@ function tr(e, n, t = "en-US") {
833
833
  if (o.on.type === "weekday")
834
834
  return `On the ${ue[o.on.ordinal]} ${c(o.on.weekday)} of ${l} ${i}`;
835
835
  const m = o.on.days.map(
836
- (s) => s === "last" ? "last day" : At(s)
836
+ (s) => s === "last" ? "last day" : kt(s)
837
837
  );
838
838
  return `On the ${ie(m)} of ${l} ${i}`;
839
839
  }
@@ -899,6 +899,8 @@ function rr(e, n, t, r) {
899
899
  const Ft = Object.freeze([
900
900
  "PDF_ROW_LIMIT_EXCEEDED",
901
901
  "PDF_SIZE_LIMIT_EXCEEDED",
902
+ // More pages than one PDF holds (PDF capacity contract PC-D3).
903
+ "PDF_PAGE_LIMIT_EXCEEDED",
902
904
  "TABLE_COMPLETENESS_UNVERIFIED",
903
905
  "CARD_QUERY_FAILED",
904
906
  "RENDER_NOT_READY",
@@ -916,7 +918,10 @@ const Ft = Object.freeze([
916
918
  "DOCUMENT_PAGE_OVERFLOW",
917
919
  "DOCUMENT_ROW_LIMIT_EXCEEDED",
918
920
  "DOCUMENT_SECTION_SETUP",
919
- "REPORT_INPUTS_MISSING"
921
+ "REPORT_INPUTS_MISSING",
922
+ // The report's saved presentation can't format what it prints; saving the
923
+ // report again captures it (value formatting Plan 05).
924
+ "REPORT_NEEDS_RESAVE"
920
925
  ]), Nt = new Set(Ft);
921
926
  function Rt(e) {
922
927
  return typeof e == "string" && Nt.has(e);
@@ -965,7 +970,7 @@ function cr(e) {
965
970
  pluralNoun: t === "report" ? "reports" : "briefings"
966
971
  };
967
972
  }
968
- const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, u = {
973
+ const G = "BRIEFING", Ut = ["markdown", "html"], H = ["markdown"], z = 20, u = {
969
974
  name: 500,
970
975
  description: 2e3,
971
976
  instruction: 5e4,
@@ -1034,7 +1039,7 @@ const be = ["pdf", "png", "csv", "xlsx"], Ie = new Set(Ut), zt = /* @__PURE__ */
1034
1039
  ]), qt = /* @__PURE__ */ new Set([
1035
1040
  "portrait",
1036
1041
  "landscape"
1037
- ]), Kt = /* @__PURE__ */ new Set([",", ";", " "]), Ht = new Set(Ue), Gt = /* @__PURE__ */ new Set([
1042
+ ]), Kt = /* @__PURE__ */ new Set([",", ";", " "]), Gt = new Set(Ue), Ht = /* @__PURE__ */ new Set([
1038
1043
  "current",
1039
1044
  "all"
1040
1045
  ]), Wt = /* @__PURE__ */ new Set([
@@ -1211,9 +1216,9 @@ function $e(e, n) {
1211
1216
  }
1212
1217
  function rn(e, n) {
1213
1218
  if (e == null)
1214
- return [...G];
1219
+ return [...H];
1215
1220
  if (!Array.isArray(e))
1216
- return d(n, "presentation.artifactFormats", "Expected an array."), [...G];
1221
+ return d(n, "presentation.artifactFormats", "Expected an array."), [...H];
1217
1222
  if (e.length === 0)
1218
1223
  return d(
1219
1224
  n,
@@ -1236,7 +1241,7 @@ function rn(e, n) {
1236
1241
  function Ce(e, n) {
1237
1242
  if (e == null)
1238
1243
  return {
1239
- artifactFormats: [...G],
1244
+ artifactFormats: [...H],
1240
1245
  includeEvidence: !0,
1241
1246
  includeSql: !0
1242
1247
  };
@@ -1421,13 +1426,13 @@ function ln(e, n, t) {
1421
1426
  `${i}.label`,
1422
1427
  u.contentTitle,
1423
1428
  t
1424
- ), s = k(
1429
+ ), s = A(
1425
1430
  c.kind,
1426
1431
  `${i}.kind`,
1427
1432
  Zt,
1428
1433
  "text, number, currency, percent, date, or boolean",
1429
1434
  t
1430
- ), f = k(
1435
+ ), f = A(
1431
1436
  c.align,
1432
1437
  `${i}.align`,
1433
1438
  Yt,
@@ -1503,7 +1508,7 @@ function sn(e, n, t) {
1503
1508
  `${r}.title`,
1504
1509
  u.contentTitle,
1505
1510
  t
1506
- ), c = k(
1511
+ ), c = A(
1507
1512
  o.severity,
1508
1513
  `${r}.severity`,
1509
1514
  Xt,
@@ -1635,7 +1640,7 @@ function sn(e, n, t) {
1635
1640
  `${p}.value`,
1636
1641
  "Expected a non-empty string, number, or structured numeric value."
1637
1642
  );
1638
- const A = g.previousValue === void 0 || g.previousValue === null ? g.previousValue : w(
1643
+ const k = g.previousValue === void 0 || g.previousValue === null ? g.previousValue : w(
1639
1644
  g.previousValue,
1640
1645
  `${p}.previousValue`,
1641
1646
  t
@@ -1665,7 +1670,7 @@ function sn(e, n, t) {
1665
1670
  t
1666
1671
  ),
1667
1672
  value: v,
1668
- ...A !== void 0 ? { previousValue: A } : {},
1673
+ ...k !== void 0 ? { previousValue: k } : {},
1669
1674
  ...F !== void 0 ? { delta: F } : {},
1670
1675
  ...ee !== void 0 ? { percentChange: ee } : {},
1671
1676
  ...te ? { unit: te } : {},
@@ -1834,7 +1839,7 @@ function dr(e) {
1834
1839
  function L(e, n, t, r) {
1835
1840
  return typeof e == "string" && t.includes(e) ? e : (d(r, n, `Expected ${t.join(" or ")}.`), t[0]);
1836
1841
  }
1837
- function k(e, n, t, r, o) {
1842
+ function A(e, n, t, r, o) {
1838
1843
  if (e != null) {
1839
1844
  if (typeof e == "string" && t.has(e))
1840
1845
  return e;
@@ -1870,7 +1875,7 @@ function pn(e, n, t) {
1870
1875
  h(s, `${n}.matrix`, ["config", "content"], t);
1871
1876
  const f = Be.safeParse(s.config);
1872
1877
  f.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
1873
- const p = k(
1878
+ const p = A(
1874
1879
  s.content,
1875
1880
  `${n}.matrix.content`,
1876
1881
  /* @__PURE__ */ new Set(["current", "all", "flat"]),
@@ -1879,34 +1884,34 @@ function pn(e, n, t) {
1879
1884
  );
1880
1885
  p || d(t, `${n}.matrix.content`, "Choose Matrix export content."), f.success && p && (o.matrix = { config: f.data, content: p });
1881
1886
  }
1882
- const a = k(
1887
+ const a = A(
1883
1888
  r.pageSize,
1884
1889
  `${n}.pageSize`,
1885
1890
  jt,
1886
1891
  "letter, legal, a4, a3, or tabloid",
1887
1892
  t
1888
- ), i = k(
1893
+ ), i = A(
1889
1894
  r.orientation,
1890
1895
  `${n}.orientation`,
1891
1896
  qt,
1892
1897
  "portrait or landscape",
1893
1898
  t
1894
- ), c = k(
1899
+ ), c = A(
1895
1900
  r.delimiter,
1896
1901
  `${n}.delimiter`,
1897
1902
  Kt,
1898
1903
  "comma, semicolon, or tab",
1899
1904
  t
1900
- ), l = k(
1905
+ ), l = A(
1901
1906
  r.csvEncoding,
1902
1907
  `${n}.csvEncoding`,
1903
- Ht,
1908
+ Gt,
1904
1909
  "utf-8-bom or utf-8",
1905
1910
  t
1906
- ), m = k(
1911
+ ), m = A(
1907
1912
  r.sheetSelection,
1908
1913
  `${n}.sheetSelection`,
1909
- Gt,
1914
+ Ht,
1910
1915
  "current or all",
1911
1916
  t
1912
1917
  );
@@ -2150,7 +2155,7 @@ function Y(e) {
2150
2155
  if (e.length > 0)
2151
2156
  throw new P(e);
2152
2157
  }
2153
- function ke(e, n, t) {
2158
+ function Ae(e, n, t) {
2154
2159
  !(e.type === "generated_analysis" || e.type === "custom_message" && !!e.message.trim()) && n.length === 0 && d(
2155
2160
  t,
2156
2161
  "body",
@@ -2179,7 +2184,7 @@ function gn(e, n, t) {
2179
2184
  );
2180
2185
  });
2181
2186
  }
2182
- function Ae(e) {
2187
+ function ke(e) {
2183
2188
  const n = [], t = E(e, "jobConfig", n);
2184
2189
  h(
2185
2190
  t,
@@ -2194,7 +2199,7 @@ function Ae(e) {
2194
2199
  "limits"
2195
2200
  ],
2196
2201
  n
2197
- ), t.kind !== H && d(n, "kind", "Expected BRIEFING.");
2202
+ ), t.kind !== G && d(n, "kind", "Expected BRIEFING.");
2198
2203
  let r;
2199
2204
  try {
2200
2205
  r = Re(
@@ -2210,12 +2215,12 @@ function Ae(e) {
2210
2215
  );
2211
2216
  }
2212
2217
  const o = ve(t.source, n), a = $e(t.body, n), i = Te(t.attachments, n), c = Ce(t.presentation, n), l = Se(t.limits, n);
2213
- return ke(a, i, n), gn(
2218
+ return Ae(a, i, n), gn(
2214
2219
  r == null ? void 0 : r.resolvedFormats,
2215
2220
  i,
2216
2221
  "jobConfig.presentationExecutionSnapshot.resolvedFormats"
2217
2222
  ), Y(n), {
2218
- kind: H,
2223
+ kind: G,
2219
2224
  presentationExecutionSnapshot: r,
2220
2225
  source: o,
2221
2226
  body: a,
@@ -2225,9 +2230,9 @@ function Ae(e) {
2225
2230
  };
2226
2231
  }
2227
2232
  function sr(e) {
2228
- return Ae({
2233
+ return ke({
2229
2234
  ...e,
2230
- kind: H
2235
+ kind: G
2231
2236
  });
2232
2237
  }
2233
2238
  function J(e, n, t, r = "deliveryConfig.recipients") {
@@ -2454,7 +2459,7 @@ function Tn(e, n, t) {
2454
2459
  ],
2455
2460
  t
2456
2461
  );
2457
- const o = k(
2462
+ const o = A(
2458
2463
  r.formatProfile,
2459
2464
  `${n}.formatProfile`,
2460
2465
  Wt,
@@ -2519,7 +2524,7 @@ function Sn(e, n) {
2519
2524
  );
2520
2525
  }), Object.keys(r).length > 0 ? r : void 0;
2521
2526
  }
2522
- function kn(e, n) {
2527
+ function An(e, n) {
2523
2528
  var l, m, s;
2524
2529
  if (e == null)
2525
2530
  return null;
@@ -2585,8 +2590,8 @@ function Q(e) {
2585
2590
  "description",
2586
2591
  u.description,
2587
2592
  n
2588
- ) ?? null, a = I(t.scheduleExpr, "scheduleExpr", 500, n) ?? null, i = I(t.timezone, "timezone", 200, n) ?? "UTC", c = tn(t.status, n), l = ve(t.source, n), m = $e(t.body, n), s = Te(t.attachments, n), f = Ce(t.presentation, n), p = Se(t.limits, n), g = kn(t.deliveryConfig, n);
2589
- return ke(m, s, n), Y(n), {
2593
+ ) ?? null, a = I(t.scheduleExpr, "scheduleExpr", 500, n) ?? null, i = I(t.timezone, "timezone", 200, n) ?? "UTC", c = tn(t.status, n), l = ve(t.source, n), m = $e(t.body, n), s = Te(t.attachments, n), f = Ce(t.presentation, n), p = Se(t.limits, n), g = An(t.deliveryConfig, n);
2594
+ return Ae(m, s, n), Y(n), {
2590
2595
  name: r,
2591
2596
  description: o,
2592
2597
  status: c,
@@ -2617,7 +2622,7 @@ function fr(e) {
2617
2622
  }
2618
2623
  function pr(e) {
2619
2624
  try {
2620
- return { valid: !0, value: Ae(e), issues: [] };
2625
+ return { valid: !0, value: ke(e), issues: [] };
2621
2626
  } catch (n) {
2622
2627
  if (n instanceof P)
2623
2628
  return { valid: !1, issues: n.issues };
@@ -2633,7 +2638,7 @@ function we(e) {
2633
2638
  export {
2634
2639
  X as $,
2635
2640
  u as A,
2636
- H as B,
2641
+ G as B,
2637
2642
  $ as C,
2638
2643
  Qn as D,
2639
2644
  Pt as E,
@@ -2643,7 +2648,7 @@ export {
2643
2648
  P as I,
2644
2649
  mn as J,
2645
2650
  dr as K,
2646
- Ae as L,
2651
+ ke as L,
2647
2652
  z as M,
2648
2653
  sr as N,
2649
2654
  Q as O,
@@ -2664,13 +2669,13 @@ export {
2664
2669
  Rt as a1,
2665
2670
  Lt as a2,
2666
2671
  dt as b,
2667
- Gn as c,
2672
+ Hn as c,
2668
2673
  tr as d,
2669
2674
  Xn as e,
2670
2675
  Jn as f,
2671
2676
  cr as g,
2672
2677
  qn as h,
2673
- Hn as i,
2678
+ Gn as i,
2674
2679
  Et as j,
2675
2680
  er as k,
2676
2681
  O as l,
@@ -2687,5 +2692,5 @@ export {
2687
2692
  Yn as w,
2688
2693
  Zn as x,
2689
2694
  Ut as y,
2690
- G as z
2695
+ H as z
2691
2696
  };