react-semaphor 0.1.453 → 0.1.454

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 (115) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +100 -99
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{analyze-result-contract-GHKFwThg.js → analyze-result-contract-BbRJ-C06.js} +1 -1
  8. package/dist/chunks/{analyze-result-contract-Dxw66nUG.cjs → analyze-result-contract-LPDNldic.cjs} +1 -1
  9. package/dist/chunks/canonical-result-keys-BA0HCP4e.cjs +1 -0
  10. package/dist/chunks/{canonical-result-keys-KLk__J_O.js → canonical-result-keys-D6avdjpA.js} +14 -13
  11. package/dist/chunks/{common-types-Ci66eflG.cjs → common-types-C57kJ59w.cjs} +1 -1
  12. package/dist/chunks/{common-types-F6qk6PPS.js → common-types-H51FLKB7.js} +1 -1
  13. package/dist/chunks/{dashboard-briefing-launcher-mUXWuiOZ.cjs → dashboard-briefing-launcher-Dwj1i7lr.cjs} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-CFpX0WX3.js → dashboard-briefing-launcher-SYroFdae.js} +10 -10
  15. package/dist/chunks/{dashboard-controls-BeYAmOJc.js → dashboard-controls-1LpeU2sz.js} +10 -10
  16. package/dist/chunks/{dashboard-controls-SoNubIu1.cjs → dashboard-controls-CpFoh7-A.cjs} +1 -1
  17. package/dist/chunks/dashboard-date-comparison-definition-Ces4alFm.cjs +1 -0
  18. package/dist/chunks/{dashboard-date-comparison-definition-Ba-clViK.js → dashboard-date-comparison-definition-DC3ekV2S.js} +1 -1
  19. package/dist/chunks/{dashboard-json-DeLUagVV.js → dashboard-json-D-T-sQxU.js} +8 -8
  20. package/dist/chunks/{dashboard-json-BublPnQ4.cjs → dashboard-json-DwSQopc_.cjs} +1 -1
  21. package/dist/chunks/{edit-dashboard-visual-CrvPcO7A.cjs → edit-dashboard-visual-BEmoQAET.cjs} +1 -1
  22. package/dist/chunks/{edit-dashboard-visual-Go0h82DR.js → edit-dashboard-visual-DqxUq4Bs.js} +12 -12
  23. package/dist/chunks/{editor-action-buttons-1Lo0fIh7.cjs → editor-action-buttons-18r2xwei.cjs} +1 -1
  24. package/dist/chunks/{editor-action-buttons-BFNtjFzO.js → editor-action-buttons-B2l3WIRC.js} +6 -6
  25. package/dist/chunks/index-Bn5wlkHt.cjs +4 -0
  26. package/dist/chunks/{index-q12_nNUS.cjs → index-CLB_NGZ8.cjs} +231 -231
  27. package/dist/chunks/{index-B3ZugihZ.js → index-Ca784dpx.js} +93 -92
  28. package/dist/chunks/{index-BsH32bn1.js → index-DAoS4BNU.js} +36188 -35785
  29. package/dist/chunks/matrix-result-contract-CofATICL.js +437 -0
  30. package/dist/chunks/matrix-result-contract-zamd9euI.cjs +1 -0
  31. package/dist/chunks/{pivot-header-presentation-DcfPaCiy.cjs → pivot-header-presentation-DhyQXxKq.cjs} +1 -1
  32. package/dist/chunks/{pivot-header-presentation-nk604qc1.js → pivot-header-presentation-ckYOQ4aZ.js} +2 -2
  33. package/dist/chunks/{pivot-result-identity-CRUokNgm.cjs → pivot-result-identity-Bb4EixVN.cjs} +1 -1
  34. package/dist/chunks/{pivot-result-identity-C43Ai5Kr.js → pivot-result-identity-DU1v-5Xk.js} +1 -1
  35. package/dist/chunks/pivot-result-lifecycle-DmcF1ris.cjs +1 -0
  36. package/dist/chunks/{pivot-result-lifecycle-4kSe0Hk1.js → pivot-result-lifecycle-sjzIOpvp.js} +57 -58
  37. package/dist/chunks/{raw-temporal-contract-CxbRFwnd.cjs → raw-temporal-contract-BtjH_G-d.cjs} +1 -1
  38. package/dist/chunks/{raw-temporal-contract-BF7PjBY9.js → raw-temporal-contract-CxncLze5.js} +1 -1
  39. package/dist/chunks/{report-preferences-dialog-BEVZAE3m.cjs → report-preferences-dialog-BgSvlDXa.cjs} +1 -1
  40. package/dist/chunks/{report-preferences-dialog-BNV7qXYH.js → report-preferences-dialog-DDc2WUa0.js} +6 -6
  41. package/dist/chunks/{report-runtime-context-DjYqLV-c.cjs → report-runtime-context-DqxS4wbi.cjs} +1 -1
  42. package/dist/chunks/{report-runtime-context-BJQDu2fV.js → report-runtime-context-SM6YO61_.js} +5 -5
  43. package/dist/chunks/saved-temporal-bucket-format-CFfWXRl9.cjs +1 -0
  44. package/dist/chunks/{saved-temporal-bucket-format-DiZdQXOL.js → saved-temporal-bucket-format-SGAV0ivR.js} +33 -35
  45. package/dist/chunks/{switch-DgLwr7O-.js → switch-BeZW-HnS.js} +367 -369
  46. package/dist/chunks/{switch-CjJ6FHYJ.cjs → switch-D-CCcfhc.cjs} +28 -28
  47. package/dist/chunks/temporal-bucket-5UYEotyQ.js +810 -0
  48. package/dist/chunks/temporal-bucket-DHY1y9lq.cjs +1 -0
  49. package/dist/chunks/{temporal-bucket-authoring-FIRnJz0e.js → temporal-bucket-authoring-K1kE6R_z.js} +28 -27
  50. package/dist/chunks/temporal-bucket-authoring-o3Emn05L.cjs +1 -0
  51. package/dist/chunks/{temporal-bucket-contract-anl4h-vg.cjs → temporal-bucket-contract-D2-93DGr.cjs} +1 -1
  52. package/dist/chunks/{temporal-bucket-contract-BQOj6Frl.js → temporal-bucket-contract-D5d-xEl3.js} +1 -1
  53. package/dist/chunks/{token-types-D0i0IUX3.cjs → token-types-D7CaaI80.cjs} +1 -1
  54. package/dist/chunks/{token-types-CRpQJ4kv.js → token-types-GbxRUozo.js} +1 -1
  55. package/dist/chunks/{update-policy-C1i9bgsy.cjs → update-policy-BmiOd0PB.cjs} +1 -1
  56. package/dist/chunks/{update-policy-CaJz9aPG.js → update-policy-hednMF-0.js} +1 -1
  57. package/dist/chunks/validators-BDYprKI9.cjs +1 -0
  58. package/dist/chunks/{validators-DeMXwRON.js → validators-DEmd8Sin.js} +1544 -1200
  59. package/dist/dashboard/index.cjs +1 -1
  60. package/dist/dashboard/index.js +2 -2
  61. package/dist/dashboard-authoring/index.cjs +3 -3
  62. package/dist/dashboard-authoring/index.js +7 -7
  63. package/dist/data-app-builder/index.cjs +1 -1
  64. package/dist/data-app-builder/index.js +2 -2
  65. package/dist/data-app-codegen/index.cjs +1 -1
  66. package/dist/data-app-codegen/index.js +2 -2
  67. package/dist/data-app-codegen-node/index.cjs +1 -1
  68. package/dist/data-app-codegen-node/index.js +3 -3
  69. package/dist/data-app-sdk/index.cjs +1 -1
  70. package/dist/data-app-sdk/index.js +78 -77
  71. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  72. package/dist/data-app-sdk-adapters/index.js +29 -30
  73. package/dist/data-app-sdk-validation/index.cjs +1 -1
  74. package/dist/data-app-sdk-validation/index.js +21 -21
  75. package/dist/format-utils/index.cjs +3 -3
  76. package/dist/format-utils/index.js +39 -40
  77. package/dist/index.cjs +1 -1
  78. package/dist/index.js +15 -15
  79. package/dist/report-runtime-context/index.cjs +1 -1
  80. package/dist/report-runtime-context/index.js +2 -2
  81. package/dist/surfboard/index.cjs +1 -1
  82. package/dist/surfboard/index.js +3 -3
  83. package/dist/types/analytics-protocol.d.ts +44 -11
  84. package/dist/types/briefings.d.ts +9 -12
  85. package/dist/types/dashboard-assistant.d.ts +19 -17
  86. package/dist/types/dashboard-authoring.d.ts +9 -12
  87. package/dist/types/dashboard.d.ts +9 -12
  88. package/dist/types/data-app-builder.d.ts +28 -2
  89. package/dist/types/data-app-codegen-node.d.ts +29 -3
  90. package/dist/types/data-app-codegen.d.ts +29 -3
  91. package/dist/types/data-app-sdk-adapters.d.ts +28 -2
  92. package/dist/types/data-app-sdk-validation.d.ts +38 -7
  93. package/dist/types/data-app-sdk.d.ts +42 -10
  94. package/dist/types/index.cjs +1 -1
  95. package/dist/types/index.js +4 -4
  96. package/dist/types/main.d.ts +25 -21
  97. package/dist/types/shared.d.ts +9 -12
  98. package/dist/types/surfboard.d.ts +9 -12
  99. package/dist/types/types.d.ts +19 -17
  100. package/package.json +1 -1
  101. package/dist/chunks/canonical-result-keys-Drc2x-lf.cjs +0 -1
  102. package/dist/chunks/catalog-field-grounding-Bnx-3tE0.cjs +0 -1
  103. package/dist/chunks/catalog-field-grounding-S2jKwKGD.js +0 -100
  104. package/dist/chunks/dashboard-date-comparison-definition-DZq0htjG.cjs +0 -1
  105. package/dist/chunks/dashboard-input-contract-DSt8dGzP.js +0 -18
  106. package/dist/chunks/dashboard-input-contract-DV3cshjz.cjs +0 -1
  107. package/dist/chunks/index-DjiIh_9n.cjs +0 -4
  108. package/dist/chunks/metric-comparison-D0T0MKRK.js +0 -387
  109. package/dist/chunks/metric-comparison-DYR3RXam.cjs +0 -1
  110. package/dist/chunks/pivot-result-lifecycle-BiJepH5S.cjs +0 -1
  111. package/dist/chunks/saved-temporal-bucket-format-Gfbh4IiP.cjs +0 -1
  112. package/dist/chunks/temporal-bucket-Dnj8qT9l.cjs +0 -1
  113. package/dist/chunks/temporal-bucket-FBZGrDCe.js +0 -560
  114. package/dist/chunks/temporal-bucket-authoring-7hv2laOG.cjs +0 -1
  115. package/dist/chunks/validators-Dm7Kpz6p.cjs +0 -1
@@ -1,23 +1,22 @@
1
1
  var Je = Object.defineProperty;
2
2
  var Qe = (e, r, t) => r in e ? Je(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var S = (e, r, t) => Qe(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { E as Xe, C as et, q as tt, D as rt, A as J, u as q, o as nt, M as ot, w as at, R as it, i as Te, b as ct, m as lt, P as U } from "./pivot-result-lifecycle-4kSe0Hk1.js";
4
+ import { E as Xe, C as et, q as tt, D as rt, A as J, u as q, o as nt, M as ot, w as at, R as it, i as Te, b as ct, m as lt, P as U } from "./pivot-result-lifecycle-sjzIOpvp.js";
5
5
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as de } from "../value-format-preferences/index.js";
6
- import { l as dt, q as ae } from "./validators-DeMXwRON.js";
7
- import "./analyze-result-contract-GHKFwThg.js";
8
- import { h as $e, r as ke, a as Ee, v as st, i as mt } from "./saved-temporal-bucket-format-DiZdQXOL.js";
9
- import { r as z, b as ut, d as ft, P as pt } from "./pivot-result-identity-C43Ai5Kr.js";
10
- import { v as yt, a as ht } from "./temporal-bucket-contract-BQOj6Frl.js";
11
- import { f as gt, a as vt, c as xe, D as bt } from "./temporal-bucket-FBZGrDCe.js";
12
- import { n as It } from "./catalog-field-grounding-S2jKwKGD.js";
13
- import { r as Se, s as wt, i as Ct, a as Tt, b as $t, c as kt } from "./canonical-result-keys-KLk__J_O.js";
14
- import "./temporal-bucket-authoring-FIRnJz0e.js";
15
- import { v as _e } from "./raw-temporal-contract-BF7PjBY9.js";
6
+ import { n as dt, q as st, x as ae } from "./validators-DEmd8Sin.js";
7
+ import "./analyze-result-contract-BbRJ-C06.js";
8
+ import { h as $e, r as ke, a as Ee, v as mt, i as ut } from "./saved-temporal-bucket-format-SGAV0ivR.js";
9
+ import { r as z, b as ft, d as pt, P as yt } from "./pivot-result-identity-DU1v-5Xk.js";
10
+ import { v as ht, a as gt } from "./temporal-bucket-contract-D5d-xEl3.js";
11
+ import { f as vt, T as bt, k as xe, i as It } from "./temporal-bucket-5UYEotyQ.js";
12
+ import { r as Se, s as wt, i as Ct, a as Tt, b as $t, c as kt } from "./canonical-result-keys-D6avdjpA.js";
13
+ import "./temporal-bucket-authoring-K1kE6R_z.js";
14
+ import { v as _e } from "./raw-temporal-contract-CxncLze5.js";
16
15
  const Et = `import pandas as pd
17
16
  df = pd.DataFrame(data) # 'data' contains the query result
18
17
  result = df.to_dict('records') # must return 'result' as [dict] type
19
18
  `;
20
- function bn(e) {
19
+ function vn(e) {
21
20
  return {
22
21
  databaseName: (e == null ? void 0 : e.lastSelectedDatabase) || "",
23
22
  schemaName: (e == null ? void 0 : e.lastSelectedSchema) || "",
@@ -50,10 +49,10 @@ function St(e) {
50
49
  }
51
50
  function _t(e) {
52
51
  if (!e.id || !["date", "datetime"].includes(
53
- It(e.dataType)
52
+ dt(e.dataType)
54
53
  ))
55
54
  return;
56
- if (dt(e.granularity)) return e;
55
+ if (st(e.granularity)) return e;
57
56
  if (!St(e)) return;
58
57
  if (!ke({
59
58
  fieldId: e.id,
@@ -93,13 +92,13 @@ function se(e) {
93
92
  })
94
93
  };
95
94
  }
96
- function In(e) {
95
+ function bn(e) {
97
96
  return se({
98
97
  ...e,
99
98
  supportsCardType: (r) => r === "table"
100
99
  });
101
100
  }
102
- function wn(e) {
101
+ function In(e) {
103
102
  return se({
104
103
  ...e,
105
104
  supportsCardType: Ct
@@ -203,7 +202,7 @@ function Mt(e) {
203
202
  }
204
203
  );
205
204
  }
206
- function Cn(e, r) {
205
+ function wn(e, r) {
207
206
  return !r || r.byColumnKey.size === 0 ? e.map((t) => ({ ...t })) : e.map((t) => {
208
207
  const n = { ...t };
209
208
  return r.byColumnKey.forEach((o, a) => {
@@ -214,7 +213,7 @@ function Cn(e, r) {
214
213
  }), n;
215
214
  });
216
215
  }
217
- function Tn(e) {
216
+ function Cn(e) {
218
217
  var p;
219
218
  if (!e.result || typeof e.result != "object") return !1;
220
219
  const r = e.result;
@@ -243,7 +242,7 @@ function Tn(e) {
243
242
  ), I = v.length > 0 && v.every(
244
243
  (w) => {
245
244
  var g;
246
- return ((g = w.pivotIdentity) == null ? void 0 : g.members.length) === 0 && ut({
245
+ return ((g = w.pivotIdentity) == null ? void 0 : g.members.length) === 0 && ft({
247
246
  expectedPivotFieldIds: o,
248
247
  classification: d.pivotResultContract.columnClassifications[w.key]
249
248
  });
@@ -330,7 +329,7 @@ function Tn(e) {
330
329
  ))
331
330
  return !1;
332
331
  try {
333
- ft(
332
+ pt(
334
333
  (r.columns || []).map((d) => ({
335
334
  key: d.key,
336
335
  pivotIdentity: d.pivotIdentity
@@ -341,7 +340,7 @@ function Tn(e) {
341
340
  }
342
341
  );
343
342
  } catch (d) {
344
- if (d instanceof pt) return !1;
343
+ if (d instanceof yt) return !1;
345
344
  throw d;
346
345
  }
347
346
  const u = (r.columns || []).filter((d) => {
@@ -412,7 +411,7 @@ function Dt(e, r, t = de) {
412
411
  }
413
412
  });
414
413
  }
415
- function Ot(e, r = bt, t = "en-US") {
414
+ function Ot(e, r = It, t = "en-US") {
416
415
  var i;
417
416
  const n = Z(e, "card"), o = ((i = e.semanticTemporalPresentation) == null ? void 0 : i.granularity) === e.granularity ? Z(e, "semantic") : void 0, a = n && n.presentation.mode !== "auto" ? n : o && o.presentation.mode !== "auto" ? o : {
418
417
  presentation: { mode: "auto" }
@@ -427,7 +426,7 @@ function Ot(e, r = bt, t = "en-US") {
427
426
  presentation: a.presentation
428
427
  };
429
428
  }
430
- function $n(e) {
429
+ function Tn(e) {
431
430
  const r = e.activation;
432
431
  if (!r)
433
432
  return {
@@ -533,7 +532,7 @@ function $n(e) {
533
532
  fieldId: c.id,
534
533
  columnKey: w.column.key
535
534
  });
536
- const g = yt(
535
+ const g = ht(
537
536
  w.member.temporalBucket
538
537
  );
539
538
  if (!g.ok || !g.value)
@@ -568,7 +567,7 @@ function $n(e) {
568
567
  fieldId: c.id,
569
568
  columnKey: u
570
569
  });
571
- const d = ht(p, {
570
+ const d = gt(p, {
572
571
  metadataRequired: !0
573
572
  });
574
573
  if (!d.ok || !d.value)
@@ -586,7 +585,7 @@ function $n(e) {
586
585
  }
587
586
  return { byColumnKey: n, byFieldId: o, byFieldRole: a };
588
587
  }
589
- function kn(e) {
588
+ function $n(e) {
590
589
  var t, n;
591
590
  const r = e.role ? Pt({
592
591
  presentation: e.presentation,
@@ -610,13 +609,13 @@ function Re(e) {
610
609
  }
611
610
  );
612
611
  try {
613
- return gt({
612
+ return vt({
614
613
  value: e.value,
615
614
  metadata: e.presentation.metadata,
616
615
  format: e.presentation.resolved.format
617
616
  });
618
617
  } catch (r) {
619
- throw r instanceof vt ? new K(
618
+ throw r instanceof bt ? new K(
620
619
  r.code,
621
620
  r.message,
622
621
  {
@@ -691,7 +690,9 @@ function me(e) {
691
690
  "invalid_raw_temporal_format",
692
691
  "Declared SQL temporal presentation selects a custom pattern but has no customFormat."
693
692
  );
694
- const r = e.useCustomFormat && e.customFormat ? e.customFormat : e.format, t = e.timezone, n = e.sourceTimezone, o = t && t !== "auto" ? { timezone: t } : void 0, a = n && n !== "auto" ? { sourceTimezone: n } : void 0;
693
+ const r = e.useCustomFormat && e.customFormat ? e.customFormat : e.format, t = e.timezone, n = e.sourceTimezone, o = t && t !== "auto" ? { timezone: t } : void 0, a = {
694
+ sourceTimezone: n && n !== "auto" ? n : "UTC"
695
+ };
695
696
  return r ? {
696
697
  type: "raw_temporal",
697
698
  ...o,
@@ -708,7 +709,7 @@ function me(e) {
708
709
  presentation: { mode: "auto" }
709
710
  };
710
711
  }
711
- function En(e) {
712
+ function kn(e) {
712
713
  const r = me(e.settings);
713
714
  if (!r)
714
715
  throw new x(
@@ -1060,7 +1061,7 @@ function jt(e) {
1060
1061
  );
1061
1062
  }
1062
1063
  }
1063
- function xn(e) {
1064
+ function En(e) {
1064
1065
  if (e.value !== null && typeof e.value != "string")
1065
1066
  return {
1066
1067
  value: e.value,
@@ -1077,7 +1078,7 @@ function xn(e) {
1077
1078
  const r = e.presentation.formatValue(e.value);
1078
1079
  return { value: e.value, label: r.text, result: r };
1079
1080
  }
1080
- function Sn(e) {
1081
+ function xn(e) {
1081
1082
  if (!e.result || typeof e.result != "object") return !1;
1082
1083
  const r = e.result;
1083
1084
  if (e.expectedResultOwner !== void 0 && r.resultOwner !== e.expectedResultOwner)
@@ -1118,7 +1119,7 @@ function Pe(e) {
1118
1119
  var r;
1119
1120
  return (r = e == null ? void 0 : e.cards) != null && r.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
1120
1121
  }
1121
- function _n(e) {
1122
+ function Sn(e) {
1122
1123
  var t;
1123
1124
  const r = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
1124
1125
  return Pe(qt(r));
@@ -1280,7 +1281,7 @@ function Zt(e) {
1280
1281
  n in r || (r[n] = null);
1281
1282
  return r;
1282
1283
  }
1283
- function Fn(e) {
1284
+ function _n(e) {
1284
1285
  return e.map((r, t) => !r.customCardPreferences || r.customCardPreferences.slotIndex === t ? r : {
1285
1286
  ...r,
1286
1287
  customCardPreferences: {
@@ -1289,17 +1290,17 @@ function Fn(e) {
1289
1290
  }
1290
1291
  });
1291
1292
  }
1292
- function Rn(e) {
1293
+ function Fn(e) {
1293
1294
  const r = Me(e);
1294
1295
  if (r)
1295
1296
  return fe(r);
1296
1297
  }
1297
- function An(e, r, t) {
1298
+ function Rn(e, r, t) {
1298
1299
  if (!e) return;
1299
1300
  const n = Wt(t, r);
1300
1301
  return e.type === "custom" && n ? n : e.type;
1301
1302
  }
1302
- function Bn(e, r, t) {
1303
+ function An(e, r, t) {
1303
1304
  var v;
1304
1305
  const n = {
1305
1306
  dataSource: t.dataSource,
@@ -1327,7 +1328,7 @@ function Bn(e, r, t) {
1327
1328
  for (let h = 0; h < m; h += 1) {
1328
1329
  const I = De(e, h), w = fe(I), g = !u && h === s, $ = h, E = {
1329
1330
  ...n,
1330
- id: st(),
1331
+ id: mt(),
1331
1332
  title: (g ? c == null ? void 0 : c.label : I == null ? void 0 : I.label) || `Tab ${h + 1}`,
1332
1333
  tabTitle: (g ? c == null ? void 0 : c.label : I == null ? void 0 : I.label) || `Tab ${h + 1}`,
1333
1334
  description: (g ? c == null ? void 0 : c.description : I == null ? void 0 : I.description) || "",
@@ -1401,10 +1402,10 @@ function Xt(e, r) {
1401
1402
  const n = (o = e.customCardPreferences) == null ? void 0 : o.visualType;
1402
1403
  return n || ((a = e.customCardPreferences) != null && a.dataInputCardIds ? "multiple" : null);
1403
1404
  }
1404
- function Pn(e) {
1405
+ function Bn(e) {
1405
1406
  return e.visualType === "multiple" || e.slots && e.slots.length > 0 || (e.minInputs || 0) > 1 || (e.maxInputs || 0) > 1 || (e.dataInputs || []).length > 1 ? "multiple" : "single";
1406
1407
  }
1407
- function Mn(e) {
1408
+ function Pn(e) {
1408
1409
  return Array.isArray(e) ? { records: e } : e;
1409
1410
  }
1410
1411
  class W extends Error {
@@ -1478,7 +1479,7 @@ function tr(e, r) {
1478
1479
  })
1479
1480
  ).filter((l) => l !== null);
1480
1481
  }
1481
- function Dn(e) {
1482
+ function Mn(e) {
1482
1483
  return er(e.dashboard, e.selections).flatMap(
1483
1484
  ({ card: r, attachmentIndex: t }) => {
1484
1485
  var s, u, p, d;
@@ -1810,13 +1811,13 @@ const Oe = [
1810
1811
  "SAT"
1811
1812
  ], cr = new Map(
1812
1813
  Oe.map((e, r) => [e, r])
1813
- ), On = {
1814
+ ), Dn = {
1814
1815
  cadence: "weekly",
1815
1816
  hour: 9,
1816
1817
  minute: 0,
1817
1818
  weekdays: [1]
1818
1819
  };
1819
- function Kn(e) {
1820
+ function On(e) {
1820
1821
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || /^(?:(?:UTC|GMT)[+-]|[+-]\d{2}:\d{2}$)/.test(e))
1821
1822
  return !1;
1822
1823
  try {
@@ -1835,7 +1836,7 @@ function Ke(e) {
1835
1836
  (t, n) => !Number.isInteger(t) || t < 0 || t > 6 || n > 0 && t === r[n - 1]
1836
1837
  ) ? null : r;
1837
1838
  }
1838
- function Nn(e) {
1839
+ function Kn(e) {
1839
1840
  if (!lr(e))
1840
1841
  throw new Error("Choose a valid schedule time.");
1841
1842
  const r = `${e.minute} ${e.hour}`;
@@ -1909,7 +1910,7 @@ function mr(e, r) {
1909
1910
  return null;
1910
1911
  }
1911
1912
  }
1912
- function zn(e, r, t = "en-US") {
1913
+ function Nn(e, r, t = "en-US") {
1913
1914
  const n = dr(e);
1914
1915
  if (!n.ok) return null;
1915
1916
  try {
@@ -1972,10 +1973,10 @@ const ur = /* @__PURE__ */ new Set([
1972
1973
  "treemap",
1973
1974
  "custom"
1974
1975
  ]);
1975
- function Vn(e) {
1976
+ function zn(e) {
1976
1977
  var n, o, a;
1977
1978
  const r = fr.has(e.type) && (e.type !== "custom" || !!((n = e.customCardPreferences) != null && n.url));
1978
- return e.type === "text" || !r || mt(e) ? { formats: [], defaultFormat: null } : {
1979
+ return e.type === "text" || !r || ut(e) ? { formats: [], defaultFormat: null } : {
1979
1980
  formats: pr({
1980
1981
  cardType: e.type,
1981
1982
  allowDownload: (o = e.preferences) == null ? void 0 : o.allowDownload
@@ -1992,10 +1993,10 @@ function pr(e) {
1992
1993
  function yr(e) {
1993
1994
  return ur.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
1994
1995
  }
1995
- function Ln(e) {
1996
+ function Vn(e) {
1996
1997
  return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
1997
1998
  }
1998
- function Un(e) {
1999
+ function Ln(e) {
1999
2000
  return e.canCreate ? [
2000
2001
  ...e.scheduledReportAvailable ? ["scheduled_report"] : [],
2001
2002
  ...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
@@ -2008,7 +2009,7 @@ function hr(e) {
2008
2009
  function gr(e) {
2009
2010
  return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && hr(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
2010
2011
  }
2011
- function jn(e) {
2012
+ function Un(e) {
2012
2013
  const r = gr(e), t = r === "Scheduled report" || r === "On-demand report" ? "report" : "briefing";
2013
2014
  return {
2014
2015
  typeLabel: r,
@@ -2060,7 +2061,7 @@ function br(e) {
2060
2061
  function Ir(e) {
2061
2062
  return e == null ? "" : br(e) ? ct(e.value, e.format) : String(e);
2062
2063
  }
2063
- function qn(e) {
2064
+ function jn(e) {
2064
2065
  return [e.delta, e.percentChange].filter(
2065
2066
  (r) => r != null
2066
2067
  ).map(Ir).filter(Boolean).join(" / ");
@@ -2864,7 +2865,7 @@ function Lr(e) {
2864
2865
  blocks: i
2865
2866
  };
2866
2867
  }
2867
- function Gn(e) {
2868
+ function qn(e) {
2868
2869
  try {
2869
2870
  return {
2870
2871
  valid: !0,
@@ -3224,7 +3225,7 @@ function We(e) {
3224
3225
  ...m ? { limits: m } : {}
3225
3226
  };
3226
3227
  }
3227
- function Hn(e) {
3228
+ function Gn(e) {
3228
3229
  return We({
3229
3230
  ...e,
3230
3231
  kind: ce
@@ -3600,13 +3601,13 @@ function ge(e) {
3600
3601
  deliveryConfig: d
3601
3602
  };
3602
3603
  }
3603
- function Wn(e) {
3604
+ function Hn(e) {
3604
3605
  return ge(e);
3605
3606
  }
3606
- function Yn(e) {
3607
+ function Wn(e) {
3607
3608
  return ge(e);
3608
3609
  }
3609
- function Zn(e) {
3610
+ function Yn(e) {
3610
3611
  try {
3611
3612
  return { valid: !0, value: ge(e), issues: [] };
3612
3613
  } catch (r) {
@@ -3615,7 +3616,7 @@ function Zn(e) {
3615
3616
  throw r;
3616
3617
  }
3617
3618
  }
3618
- function Jn(e) {
3619
+ function Zn(e) {
3619
3620
  try {
3620
3621
  return { valid: !0, value: We(e), issues: [] };
3621
3622
  } catch (r) {
@@ -3624,7 +3625,7 @@ function Jn(e) {
3624
3625
  throw r;
3625
3626
  }
3626
3627
  }
3627
- function Qn(e) {
3628
+ function Jn(e) {
3628
3629
  return typeof e == "string" && Ne.has(e);
3629
3630
  }
3630
3631
  function Ye(e) {
@@ -3632,13 +3633,13 @@ function Ye(e) {
3632
3633
  }
3633
3634
  export {
3634
3635
  Pe as $,
3635
- Dn as A,
3636
+ Mn as A,
3636
3637
  Q as B,
3637
3638
  Pt as C,
3638
- In as D,
3639
- xn as E,
3639
+ bn as D,
3640
+ En as E,
3640
3641
  K as F,
3641
- kn as G,
3642
+ $n as G,
3642
3643
  xt as H,
3643
3644
  Rt as I,
3644
3645
  At as J,
@@ -3647,20 +3648,20 @@ export {
3647
3648
  Ot as M,
3648
3649
  Lt as N,
3649
3650
  Ut as O,
3650
- Cn as P,
3651
- En as Q,
3651
+ wn as P,
3652
+ kn as Q,
3652
3653
  Nt as R,
3653
- Vn as S,
3654
+ zn as S,
3654
3655
  pr as T,
3655
- Kn as U,
3656
+ On as U,
3656
3657
  dr as V,
3657
- Nn as W,
3658
- On as X,
3658
+ Kn as W,
3659
+ Dn as X,
3659
3660
  hr as Y,
3660
- Ln as Z,
3661
+ Vn as Z,
3661
3662
  qt as _,
3662
- Un as a,
3663
- _n as a0,
3663
+ Ln as a,
3664
+ Sn as a0,
3664
3665
  Et as a1,
3665
3666
  ce as a2,
3666
3667
  vr as a3,
@@ -3670,44 +3671,44 @@ export {
3670
3671
  _ as a7,
3671
3672
  br as a8,
3672
3673
  Ir as a9,
3673
- qn as aa,
3674
+ jn as aa,
3674
3675
  X as ab,
3675
3676
  Lr as ac,
3676
- Gn as ad,
3677
+ qn as ad,
3677
3678
  We as ae,
3678
- Hn as af,
3679
+ Gn as af,
3679
3680
  ge as ag,
3680
- Wn as ah,
3681
- Yn as ai,
3682
- Zn as aj,
3683
- Jn as ak,
3684
- Qn as al,
3681
+ Hn as ah,
3682
+ Wn as ai,
3683
+ Yn as aj,
3684
+ Zn as ak,
3685
+ Jn as al,
3685
3686
  Ye as am,
3686
3687
  yr as an,
3687
3688
  gr as ao,
3688
3689
  Jt as b,
3689
3690
  Yt as c,
3690
- zn as d,
3691
- An as e,
3691
+ Nn as d,
3692
+ Rn as e,
3692
3693
  Qt as f,
3693
- jn as g,
3694
- Pn as h,
3694
+ Un as g,
3695
+ Bn as h,
3695
3696
  we as i,
3696
- Bn as j,
3697
+ An as j,
3697
3698
  Zt as k,
3698
- Mn as l,
3699
+ Pn as l,
3699
3700
  De as m,
3700
3701
  H as n,
3701
- Fn as o,
3702
+ _n as o,
3702
3703
  fe as p,
3703
- Rn as q,
3704
+ Fn as q,
3704
3705
  Xt as r,
3705
3706
  _t as s,
3706
- bn as t,
3707
- $n as u,
3707
+ vn as t,
3708
+ Tn as u,
3708
3709
  Ft as v,
3709
- Tn as w,
3710
- Sn as x,
3711
- wn as y,
3710
+ Cn as w,
3711
+ xn as x,
3712
+ In as y,
3712
3713
  Re as z
3713
3714
  };