react-semaphor 0.1.526 → 0.1.528

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 (180) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1190 -296
  3. package/dist/brand-studio/index.js +15 -15
  4. package/dist/briefings/index.js +50 -49
  5. package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DUu-tCQw.js} +66 -65
  6. package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BdPceiw8.js} +68 -65
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-BkskKMck.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-Bb0RhGRC.js} +372 -359
  10. package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-loWTHPMi.js} +739 -686
  11. package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DUci_SOR.js} +10 -10
  12. package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-z9WN26w7.js} +6603 -6572
  13. package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-CGSFK9S-.js} +266 -267
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-CdXSo1pb.js} +19 -19
  15. package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
  16. package/dist/chunks/{index-CbjuruKe.js → index-CTYnXU85.js} +781 -780
  17. package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
  18. package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DhykwdZs.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BV9ywFtJ.js} +11 -11
  20. package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
  21. package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-1Mm8x8w7.js} +655 -511
  22. package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
  23. package/dist/chunks/matrix-operation-contract-Dp7kFpVk.js +1383 -0
  24. package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
  25. package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
  26. package/dist/chunks/pivot-header-presentation-CZa3556D.js +618 -0
  27. package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
  28. package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-Bqdtknud.js} +259 -204
  29. package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
  30. package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
  31. package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
  32. package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-VV0-Ro6F.js} +131 -132
  33. package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
  34. package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-IZjBSU6Z.js} +47 -26
  35. package/dist/chunks/semantic-format-BBLvfwua.js +192 -0
  36. package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-DbA4mVQL.js} +49909 -46207
  37. package/dist/chunks/{slider-BYIH4icg.js → slider-DpiJG8lv.js} +81 -82
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/switch-C4YH-W1X.js +24003 -0
  40. package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
  41. package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
  42. package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
  43. package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
  44. package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
  45. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
  46. package/dist/dashboard/index.js +1 -1
  47. package/dist/dashboard-authoring/index.js +138 -137
  48. package/dist/data-app-sdk/index.js +12 -12
  49. package/dist/data-app-sdk-adapters/index.js +23 -22
  50. package/dist/data-app-sdk-validation/index.js +27 -26
  51. package/dist/format-utils/index.js +247 -329
  52. package/dist/index.js +165 -168
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +1 -1
  56. package/dist/types/briefings/index.d.ts +3 -0
  57. package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
  58. package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
  59. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
  60. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
  61. package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
  62. package/dist/types/components/surfboard/filter/types.d.ts +8 -29
  63. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
  64. package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
  65. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
  66. package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
  67. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
  68. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
  69. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
  70. package/dist/types/index.js +5 -5
  71. package/dist/types/lib/api/exports-api.d.ts +3 -0
  72. package/dist/types/lib/csv-download.d.ts +9 -0
  73. package/dist/types/lib/csv-encoding-options.d.ts +6 -0
  74. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
  75. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
  76. package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
  77. package/dist/types/lib/export-utils.d.ts +17 -15
  78. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
  79. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
  80. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
  81. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  82. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
  83. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
  84. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
  85. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
  86. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
  87. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
  88. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
  89. package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
  90. package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
  91. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
  92. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
  93. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
  94. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
  95. package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
  96. package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
  97. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
  98. package/dist/types/lib/types/common-types.d.ts +5 -0
  99. package/dist/types/lib/types/explorer-types.d.ts +14 -0
  100. package/dist/types/lib/types/semantic-types.d.ts +4 -2
  101. package/dist/types/lib/types/token-types.d.ts +0 -1
  102. package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
  103. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  104. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  105. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  106. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  107. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  108. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
  109. package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
  110. package/dist/types/shared/analytics-protocol/contracts.d.ts +48 -7
  111. package/dist/types/shared/analytics-protocol/index.d.ts +15 -1
  112. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  113. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  114. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  115. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +61 -6
  116. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
  117. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  118. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  119. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  120. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  121. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  122. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  123. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  124. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  125. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  126. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  127. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  128. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  129. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  130. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  131. package/dist/types/shared/temporal/index.d.ts +5 -0
  132. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  133. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  134. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  135. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  136. package/package.json +1 -17
  137. package/src/data-app-sdk/README.md +6 -3
  138. package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
  139. package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
  140. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  141. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  142. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  143. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  144. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  145. package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
  146. package/dist/chunks/search-CJz-QQ0Q.js +0 -24
  147. package/dist/chunks/switch-XaAACBrJ.js +0 -2234
  148. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  149. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  150. package/dist/data-app-builder/index.js +0 -3666
  151. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  152. package/dist/data-app-codegen/index.js +0 -22
  153. package/dist/data-app-codegen-node/index.js +0 -1807
  154. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  155. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  156. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  157. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  158. package/dist/types/data-app-builder/constants.d.ts +0 -14
  159. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  160. package/dist/types/data-app-builder/index.d.ts +0 -1
  161. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  162. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  163. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  164. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  165. package/dist/types/data-app-builder/types.d.ts +0 -558
  166. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  167. package/dist/types/data-app-builder.d.ts +0 -2
  168. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  169. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  170. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  171. package/dist/types/data-app-codegen/index.d.ts +0 -6
  172. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  173. package/dist/types/data-app-codegen/node.d.ts +0 -2
  174. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  175. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  176. package/dist/types/data-app-codegen-node.d.ts +0 -2
  177. package/dist/types/data-app-codegen.d.ts +0 -2
  178. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  179. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  180. package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
@@ -0,0 +1,46 @@
1
+ const u = /* @__PURE__ */ new Map();
2
+ function l(e, t) {
3
+ let n = u.get(t);
4
+ n || (n = new Intl.DateTimeFormat("en-CA", {
5
+ calendar: "gregory",
6
+ numberingSystem: "latn",
7
+ timeZone: t,
8
+ year: "numeric",
9
+ month: "2-digit",
10
+ day: "2-digit",
11
+ hour: "2-digit",
12
+ minute: "2-digit",
13
+ second: "2-digit",
14
+ hourCycle: "h23"
15
+ }), u.set(t, n));
16
+ const c = n.formatToParts(e), r = (s) => {
17
+ var o;
18
+ return Number((o = c.find((i) => i.type === s)) == null ? void 0 : o.value);
19
+ };
20
+ return {
21
+ year: r("year"),
22
+ month: r("month"),
23
+ day: r("day"),
24
+ hour: r("hour"),
25
+ minute: r("minute"),
26
+ second: r("second")
27
+ };
28
+ }
29
+ function m(e) {
30
+ const t = /* @__PURE__ */ new Date(0);
31
+ return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond ?? 0), t.getTime();
32
+ }
33
+ function a(e, t) {
34
+ const n = e - (e % 1e3 + 1e3) % 1e3;
35
+ return m(l(new Date(n), t)) - n;
36
+ }
37
+ const d = 864e5;
38
+ function f(e, t) {
39
+ const n = m(e), c = a(n - d, t), r = a(n + d, t), s = [.../* @__PURE__ */ new Set([c, r])].map((o) => n - o).filter((o) => a(o, t) === n - o).sort((o, i) => o - i);
40
+ return new Date(s.length ? s[0] : n - c);
41
+ }
42
+ export {
43
+ f as a,
44
+ m as w,
45
+ l as z
46
+ };
@@ -1,4 +1,4 @@
1
- import { D as o } from "../chunks/dashboard-CsHvEtjN.js";
1
+ import { D as o } from "../chunks/dashboard-BkskKMck.js";
2
2
  import { C as s, E as C } from "../chunks/common-types-C6cAQgyh.js";
3
3
  export {
4
4
  s as CONTROL_CARD_DEFAULT_VALUE,
@@ -1,15 +1,16 @@
1
- import { D as L, a as Ce } from "../chunks/matrix-control-sources-2VAzGlt8.js";
2
- import { k as Bt, l as Vt, n as zt, h as qt, i as jt, j as Gt, C as Ht, d as Ut, f as Kt, e as Wt, o as Xt, c as Qt, p as Jt, u as Yt, w as Zt, y as ea, g as ta, x as aa, m as ra, b as na, r as ia, s as oa, z as sa, t as da, q as ca, v as la } from "../chunks/matrix-control-sources-2VAzGlt8.js";
3
- import { c as Se, r as ve } from "../chunks/field-aggregations-BQjogiI1.js";
4
- import { A as pa, D as fa, n as ha, S as ma, h as ga, j as ba, w as Ia, k as _a, l as ya, m as Ca, v as Sa, o as va, B as Da, g as Ta, b as Fa, i as ka, z as wa, u as xa, q as Aa, y as Oa, p as Ra, e as Na, f as Ea, d as Ma, a as La, x as Pa, s as $a, t as Ba } from "../chunks/field-aggregations-BQjogiI1.js";
5
- import { q as De, a$ as K, b0 as Te, ad as se, al as Fe, ag as ke } from "../chunks/validators-CsdOtZI6.js";
6
- import "../chunks/matrix-operation-contract-D32U2CSw.js";
7
- import { m as B, r as q } from "../chunks/calculated-field-identity-D1ofR4KJ.js";
8
- import { C as za, D as qa, l as ja, p as Ga, J as Ha, q as Ua, k as Ka, f as Wa, d as Xa, i as Qa, z as Ja, g as Ya, u as Za, A as er, h as tr, j as ar, v as rr, n as nr, t as ir, B as or, H as sr, x as dr, o as cr, e as lr, a as ur, b as pr, E as fr, F as hr, c as mr, w as gr, G as br, s as Ir, y as _r, I as yr } from "../chunks/calculated-field-identity-D1ofR4KJ.js";
1
+ import { D as L, a as Ce } from "../chunks/matrix-control-sources-BV9ywFtJ.js";
2
+ import { k as Vt, l as zt, n as qt, h as jt, i as Gt, j as Ht, C as Ut, d as Kt, f as Wt, e as Xt, o as Qt, c as Jt, p as Yt, u as Zt, w as ea, y as ta, g as aa, x as ra, m as na, b as ia, r as oa, s as sa, z as da, t as ca, q as la, v as ua } from "../chunks/matrix-control-sources-BV9ywFtJ.js";
3
+ import { c as Se, r as ve } from "../chunks/field-aggregations-CdXSo1pb.js";
4
+ import { A as fa, D as ha, n as ma, S as ga, h as ba, j as Ia, w as _a, k as ya, l as Ca, m as Sa, v as va, o as Da, B as Ta, g as Fa, b as ka, i as wa, z as xa, u as Aa, q as Oa, y as Ra, p as Na, e as Ea, f as Ma, d as La, a as Pa, x as Ba, s as $a, t as Va } from "../chunks/field-aggregations-CdXSo1pb.js";
5
+ import { q as De, G as K, b8 as Te, H as se, F as Fe, au as ke } from "../chunks/validators-CQcG0EPN.js";
6
+ import "../chunks/matrix-operation-contract-Dp7kFpVk.js";
7
+ import "zod";
8
+ import { m as $, r as q } from "../chunks/calculated-field-identity-DUu-tCQw.js";
9
+ import { C as qa, D as ja, l as Ga, p as Ha, J as Ua, q as Ka, k as Wa, f as Xa, d as Qa, i as Ja, z as Ya, g as Za, u as er, A as tr, h as ar, j as rr, v as nr, n as ir, t as or, B as sr, H as dr, x as cr, o as lr, e as ur, a as pr, b as fr, E as hr, F as mr, c as gr, w as br, G as Ir, s as _r, y as yr, I as Cr } from "../chunks/calculated-field-identity-DUu-tCQw.js";
9
10
  import { n as we } from "../chunks/operators-B3zZoskU.js";
10
- import { a as Sr, b as vr, r as Dr } from "../chunks/canonical-result-keys-CEQefvdO.js";
11
- import { b as Fr, c as kr, g as wr, a as xr, m as Ar, r as Or } from "../chunks/matrix-definition-E5gXXSTZ.js";
12
- import { m as Nr, a as Er, r as Mr } from "../chunks/matrix-card-CIlz0Dnp.js";
11
+ import { a as vr, b as Dr, r as Tr } from "../chunks/canonical-result-keys-CEQefvdO.js";
12
+ import { b as kr, c as wr, g as xr, a as Ar, m as Or, r as Rr } from "../chunks/matrix-definition-Cdn3LoxW.js";
13
+ import { m as Er, a as Mr, r as Lr } from "../chunks/matrix-card-DhykwdZs.js";
13
14
  function y(e) {
14
15
  return e && typeof e == "object" ? e : null;
15
16
  }
@@ -23,7 +24,7 @@ function xe(e) {
23
24
  function A(e) {
24
25
  return xe(e) ? e.kind === "semantic" ? !!(e.domainId && e.datasetName) : e.kind === "physical" ? !!(e.connectionId && e.tableName) : !1 : !1;
25
26
  }
26
- function At(e) {
27
+ function Ot(e) {
27
28
  return De(e);
28
29
  }
29
30
  function de(e, t) {
@@ -45,7 +46,7 @@ function P(e) {
45
46
  }
46
47
  return t;
47
48
  }
48
- function Ot(e) {
49
+ function Rt(e) {
49
50
  return P(e)[0];
50
51
  }
51
52
  function j(e, t) {
@@ -87,7 +88,7 @@ function Oe({
87
88
  if ((t == null ? void 0 : t.source) === void 0)
88
89
  return G(a);
89
90
  }
90
- function Rt(e, t) {
91
+ function Nt(e, t) {
91
92
  if (!(e != null && e.name) || !(t != null && t.name) || e.name !== t.name)
92
93
  return !1;
93
94
  const a = v(e), r = v(t);
@@ -125,11 +126,11 @@ function Pe(e) {
125
126
  var t;
126
127
  return k(e) !== "physical" ? "" : D((t = y(e)) == null ? void 0 : t.schemaName) || "";
127
128
  }
128
- function $e(e) {
129
+ function Be(e) {
129
130
  if (e.analyticsIntent && typeof e.analyticsIntent == "object" && "source" in e.analyticsIntent)
130
131
  return e.analyticsIntent.source;
131
132
  }
132
- function Be({
133
+ function $e({
133
134
  datasets: e,
134
135
  requireAtLeastOne: t
135
136
  }) {
@@ -149,7 +150,7 @@ function W(e, t) {
149
150
  }
150
151
  return t.kind === "physical" ? Ee(e) === t.connectionId && Me(e) === t.tableName && Le(e) === (t.databaseName || "") && Pe(e) === (t.schemaName || "") : !1;
151
152
  }
152
- function Nt(e, t) {
153
+ function Et(e, t) {
153
154
  return e.find(
154
155
  (a) => W(a, t)
155
156
  );
@@ -173,7 +174,7 @@ function le({
173
174
  }) {
174
175
  if (e.type === "text")
175
176
  return;
176
- const r = $e(e);
177
+ const r = Be(e);
177
178
  if (!r) {
178
179
  if (t.length <= 1)
179
180
  return;
@@ -279,7 +280,7 @@ function fe({
279
280
  errors: t,
280
281
  requireAtLeastOne: a
281
282
  }) {
282
- const r = Be({
283
+ const r = $e({
283
284
  datasets: e,
284
285
  requireAtLeastOne: a
285
286
  });
@@ -624,7 +625,7 @@ function Q(e, t) {
624
625
  return;
625
626
  const a = Xe(e.dataType), r = e.operation || "in";
626
627
  if (Je(t))
627
- return B({
628
+ return $({
628
629
  definition: e,
629
630
  sourceValue: t,
630
631
  value: {
@@ -638,7 +639,7 @@ function Q(e, t) {
638
639
  }
639
640
  });
640
641
  if (r === "is null" || r === "is not null")
641
- return B({
642
+ return $({
642
643
  definition: e,
643
644
  value: {
644
645
  filterId: e.id,
@@ -653,7 +654,7 @@ function Q(e, t) {
653
654
  });
654
655
  const o = Array.isArray(t) ? t : [t], n = a === "date" ? Ze(o) : Ye(o);
655
656
  if (n.length !== 0 && !((r === "between" || r === "not between") && n.length < 2))
656
- return B({
657
+ return $({
657
658
  definition: e,
658
659
  value: {
659
660
  filterId: e.id,
@@ -769,7 +770,7 @@ function nt(e, t) {
769
770
  defaultInputValues: a.shared && Object.keys(a.shared).length > 0 ? a : void 0
770
771
  };
771
772
  }
772
- function Et(e) {
773
+ function Mt(e) {
773
774
  var b, C;
774
775
  const t = ze(e.plan);
775
776
  if (!t.ok)
@@ -935,7 +936,7 @@ function lt(e, t) {
935
936
  }
936
937
  });
937
938
  }
938
- function Mt(e) {
939
+ function Lt(e) {
939
940
  var u;
940
941
  const t = qe(e.changePlan);
941
942
  if (!t.ok)
@@ -1430,7 +1431,7 @@ function vt(e) {
1430
1431
  cardIds: t.filter((n) => !a.has(n))
1431
1432
  };
1432
1433
  }
1433
- function Lt(e) {
1434
+ function Pt(e) {
1434
1435
  var b, C, c;
1435
1436
  const t = [], a = ke(e);
1436
1437
  for (const f of a.warnings)
@@ -1443,7 +1444,7 @@ function Lt(e) {
1443
1444
  const l = typeof I.title == "string" ? I.title : `Section ${f + 1}`, Z = I.id || x(l, `section-${f + 1}`);
1444
1445
  i.set(Z, []);
1445
1446
  for (const [ee, g] of Y(I).entries()) {
1446
- const te = bt(g), $ = x(
1447
+ const te = bt(g), B = x(
1447
1448
  g.id || `${l}-${g.title || `View ${ee + 1}`}`,
1448
1449
  `card-${f + 1}-${ee + 1}`
1449
1450
  );
@@ -1452,7 +1453,7 @@ function Lt(e) {
1452
1453
  _(
1453
1454
  "unsupported_presentation",
1454
1455
  `Dashboard presentation "${((b = g.presentation) == null ? void 0 : b.kind) || "unknown"}" is not supported by the dashboard authoring adapter.`,
1455
- `card-${$}`
1456
+ `card-${B}`
1456
1457
  )
1457
1458
  );
1458
1459
  continue;
@@ -1462,12 +1463,12 @@ function Lt(e) {
1462
1463
  _(
1463
1464
  "sql_intent_deferred",
1464
1465
  "SQL analytics intent is valid protocol, but the current dashboard authoring adapter only materializes semantic and physical config-card intents.",
1465
- `card-${$}`
1466
+ `card-${B}`
1466
1467
  )
1467
1468
  );
1468
1469
  continue;
1469
1470
  }
1470
- const ae = Ie($, u), R = `card-${ae}`;
1471
+ const ae = Ie(B, u), R = `card-${ae}`;
1471
1472
  g.id && n.set(g.id, R), (c = i.get(Z)) == null || c.push(R);
1472
1473
  const ye = g.analytics && "inputs" in g.analytics ? g.analytics.inputs : void 0;
1473
1474
  for (const re of ye || []) {
@@ -1528,129 +1529,129 @@ function Lt(e) {
1528
1529
  }, warnings: t };
1529
1530
  }
1530
1531
  export {
1531
- pa as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
1532
- Bt as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
1533
- Vt as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
1534
- zt as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
1535
- qt as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
1536
- jt as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
1537
- Gt as CONTROL_DEFINITION_INVALID_ERROR_CODE,
1538
- Ht as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
1539
- Ut as CONTROL_REFERENCE_MISSING_ERROR_CODE,
1540
- Kt as CONTROL_VALUE_INVALID_ERROR_CODE,
1541
- Wt as CONTROL_VALUE_MISSING_ERROR_CODE,
1542
- Xt as ControlResolutionError,
1532
+ fa as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
1533
+ Vt as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
1534
+ zt as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
1535
+ qt as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
1536
+ jt as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
1537
+ Gt as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
1538
+ Ht as CONTROL_DEFINITION_INVALID_ERROR_CODE,
1539
+ Ut as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
1540
+ Kt as CONTROL_REFERENCE_MISSING_ERROR_CODE,
1541
+ Wt as CONTROL_VALUE_INVALID_ERROR_CODE,
1542
+ Xt as CONTROL_VALUE_MISSING_ERROR_CODE,
1543
+ Qt as ControlResolutionError,
1543
1544
  Ce as DASHBOARD_AUTHORING_BREAKPOINTS,
1544
1545
  L as DASHBOARD_AUTHORING_MAX_GENERATED_CARDS,
1545
- za as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
1546
- fa as DOCUMENT_KPI_SECTION_MAX_CARDS,
1547
- ha as DOCUMENT_KPI_SECTION_MAX_TILES,
1548
- qa as DashboardFilterMappingContractError,
1549
- ma as SEMAPHOR_CARTESIAN_CHART_TYPES,
1550
- ja as applyCardReferenceRemapping,
1551
- Mt as applyDashboardChangePlan,
1552
- Qt as applyGroupByOverride,
1553
- Ga as applyLinkedClickToFilterOverrides,
1554
- Ha as applyOptionDependencyOverride,
1555
- Jt as buildControlDefinitionIndex,
1556
- ga as buildDashboardCardSourceIndex,
1557
- Ua as buildLinkedClickToFilterOverrides,
1546
+ qa as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
1547
+ ha as DOCUMENT_KPI_SECTION_MAX_CARDS,
1548
+ ma as DOCUMENT_KPI_SECTION_MAX_TILES,
1549
+ ja as DashboardFilterMappingContractError,
1550
+ ga as SEMAPHOR_CARTESIAN_CHART_TYPES,
1551
+ Ga as applyCardReferenceRemapping,
1552
+ Lt as applyDashboardChangePlan,
1553
+ Jt as applyGroupByOverride,
1554
+ Ha as applyLinkedClickToFilterOverrides,
1555
+ Ua as applyOptionDependencyOverride,
1556
+ Yt as buildControlDefinitionIndex,
1557
+ ba as buildDashboardCardSourceIndex,
1558
+ Ka as buildLinkedClickToFilterOverrides,
1558
1559
  Se as clickToFilterSettingsSchema,
1559
- Et as compileDashboardFromPlan,
1560
+ Mt as compileDashboardFromPlan,
1560
1561
  X as compileResponsiveDashboardLayouts,
1561
- Ka as composeCardReferenceRemapping,
1562
- Wa as createDashboardFilterBindingId,
1563
- Fr as createMatrixAuthoringDraft,
1564
- kr as createMatrixConfig,
1562
+ Wa as composeCardReferenceRemapping,
1563
+ Xa as createDashboardFilterBindingId,
1564
+ kr as createMatrixAuthoringDraft,
1565
+ wr as createMatrixConfig,
1565
1566
  W as dashboardAuthoringDatasetMatchesSource,
1566
- Rt as dashboardAuthoringFieldsReferToSameTarget,
1567
+ Nt as dashboardAuthoringFieldsReferToSameTarget,
1567
1568
  v as dashboardAuthoringSourceFromField,
1568
- At as dashboardAuthoringSourceKey,
1569
+ Ot as dashboardAuthoringSourceKey,
1569
1570
  de as dashboardAuthoringSourcesReferToSameDataset,
1570
- ba as dashboardCardFilterSourceInventoryContains,
1571
- Xa as dashboardFilterTargetMatchesLogicalValue,
1572
- Qa as dashboardFilterValueTypeForDataType,
1573
- Lt as dashboardPlanFromSemaphorDashboardIntent,
1574
- Ia as defaultClickToFilterSettings,
1575
- Nt as findDashboardAuthoringDatasetForSource,
1576
- _a as findDashboardCardExecutableSource,
1577
- ya as findDashboardCardPinnedCatalogSource,
1578
- Ca as findDashboardSqlPinnedCatalogSource,
1579
- Yt as getCalculatedFieldAggregateOverrides,
1580
- Ja as getCalculatedFieldNamespace,
1581
- Zt as getCalculatedFieldParameters,
1582
- ea as getCalculatedFieldShelfOverrides,
1583
- ta as getColumnCatalogFieldId,
1584
- $e as getDashboardAuthoringCardSource,
1585
- Ya as getDashboardFilterSubscriptionHint,
1586
- Sa as getDocumentKpiSectionShapeIssues,
1587
- va as getDocumentSectionCards,
1588
- aa as getDomainCalculatedSelectionOverrides,
1589
- Da as getFieldAggregationOptions,
1590
- Za as getMatrixBindingTargets,
1591
- wr as getMatrixLevelLabel,
1592
- xr as getMatrixMeasureLabel,
1593
- er as getStableDomainCalculatedFieldId,
1594
- Ta as getTemporalBucketAuthoringOptions,
1595
- Fa as getTemporalBucketAuthoringSelection,
1596
- tr as hasDashboardFilterSubscription,
1597
- ar as isDashboardFilterOperationCompatible,
1571
+ Ia as dashboardCardFilterSourceInventoryContains,
1572
+ Qa as dashboardFilterTargetMatchesLogicalValue,
1573
+ Ja as dashboardFilterValueTypeForDataType,
1574
+ Pt as dashboardPlanFromSemaphorDashboardIntent,
1575
+ _a as defaultClickToFilterSettings,
1576
+ Et as findDashboardAuthoringDatasetForSource,
1577
+ ya as findDashboardCardExecutableSource,
1578
+ Ca as findDashboardCardPinnedCatalogSource,
1579
+ Sa as findDashboardSqlPinnedCatalogSource,
1580
+ Zt as getCalculatedFieldAggregateOverrides,
1581
+ Ya as getCalculatedFieldNamespace,
1582
+ ea as getCalculatedFieldParameters,
1583
+ ta as getCalculatedFieldShelfOverrides,
1584
+ aa as getColumnCatalogFieldId,
1585
+ Be as getDashboardAuthoringCardSource,
1586
+ Za as getDashboardFilterSubscriptionHint,
1587
+ va as getDocumentKpiSectionShapeIssues,
1588
+ Da as getDocumentSectionCards,
1589
+ ra as getDomainCalculatedSelectionOverrides,
1590
+ Ta as getFieldAggregationOptions,
1591
+ er as getMatrixBindingTargets,
1592
+ xr as getMatrixLevelLabel,
1593
+ Ar as getMatrixMeasureLabel,
1594
+ tr as getStableDomainCalculatedFieldId,
1595
+ Fa as getTemporalBucketAuthoringOptions,
1596
+ ka as getTemporalBucketAuthoringSelection,
1597
+ ar as hasDashboardFilterSubscription,
1598
+ rr as isDashboardFilterOperationCompatible,
1598
1599
  A as isMaterializableDashboardAuthoringSource,
1599
- ka as isSemaphorCartesianChartType,
1600
+ wa as isSemaphorCartesianChartType,
1600
1601
  xe as isSemaphorSourceRef,
1601
- wa as linkedClickToFilterOverridesSchema,
1602
- xa as listDashboardCardLocations,
1603
- Aa as mapDocumentSectionCards,
1604
- ra as matrixCatalogSources,
1605
- Nr as matrixDefinitionFields,
1606
- Er as matrixDefinitionSources,
1607
- na as matrixExecutionSources,
1602
+ xa as linkedClickToFilterOverridesSchema,
1603
+ Aa as listDashboardCardLocations,
1604
+ Oa as mapDocumentSectionCards,
1605
+ na as matrixCatalogSources,
1606
+ Er as matrixDefinitionFields,
1607
+ Mr as matrixDefinitionSources,
1608
+ ia as matrixExecutionSources,
1608
1609
  P as mergeDashboardAuthoringSources,
1609
- Ar as mergeMatrixSorts,
1610
- rr as moveMatrixLevel,
1611
- Oa as normalizeClickToFilterSettings,
1612
- nr as normalizeDashboardInputs,
1613
- ir as normalizeLegacyLinkedTargetOverrides,
1610
+ Or as mergeMatrixSorts,
1611
+ nr as moveMatrixLevel,
1612
+ Ra as normalizeClickToFilterSettings,
1613
+ ir as normalizeDashboardInputs,
1614
+ or as normalizeLegacyLinkedTargetOverrides,
1614
1615
  Ae as preferDashboardAuthoringSourceMetadata,
1615
- Ot as preferredDashboardAuthoringSource,
1616
- Ra as previewTemporalBucketAuthoringFormat,
1617
- or as readExactDomainCalculatedFieldReference,
1618
- Mr as readMatrixCardConfig,
1619
- sr as rebindDashboardOptionDependencyInputId,
1620
- dr as reconcileMatrixSpecStructure,
1621
- Na as reconcileTemporalBucketAuthoringFormat,
1616
+ Rt as preferredDashboardAuthoringSource,
1617
+ Na as previewTemporalBucketAuthoringFormat,
1618
+ sr as readExactDomainCalculatedFieldReference,
1619
+ Lr as readMatrixCardConfig,
1620
+ dr as rebindDashboardOptionDependencyInputId,
1621
+ cr as reconcileMatrixSpecStructure,
1622
+ Ea as reconcileTemporalBucketAuthoringFormat,
1622
1623
  q as remapClickToFilterReferences,
1623
- cr as remapLinkedClickToFilterOverrides,
1624
- lr as requireNormalizedDashboardInputs,
1625
- ia as resolveBindingControlValue,
1626
- Sr as resolveCanonicalDetailResultRawKey,
1627
- vr as resolveCanonicalResultOutputKey,
1628
- Dr as resolveCanonicalResultRawKey,
1624
+ lr as remapLinkedClickToFilterOverrides,
1625
+ ur as requireNormalizedDashboardInputs,
1626
+ oa as resolveBindingControlValue,
1627
+ vr as resolveCanonicalDetailResultRawKey,
1628
+ Dr as resolveCanonicalResultOutputKey,
1629
+ Tr as resolveCanonicalResultRawKey,
1629
1630
  Oe as resolveDashboardAuthoringSource,
1630
- Ea as resolveDashboardEntitySource,
1631
- ur as resolveDashboardFilterAutomaticTarget,
1632
- pr as resolveDashboardFilterInheritedTarget,
1633
- fr as resolveDashboardOptionDependencies,
1634
- hr as resolveDashboardOptionPopulation,
1635
- mr as resolveDashboardSqlFilterTarget,
1636
- oa as resolveGroupByFieldTarget,
1637
- sa as resolveMatrixControlBindings,
1638
- Or as resolveMatrixDefinition,
1639
- da as resolveMetricFieldTarget,
1640
- ca as resolveScalarMappedValue,
1641
- Ma as resolveTemporalBucketAuthoringFormat,
1642
- La as resolveTemporalResultOwner,
1631
+ Ma as resolveDashboardEntitySource,
1632
+ pr as resolveDashboardFilterAutomaticTarget,
1633
+ fr as resolveDashboardFilterInheritedTarget,
1634
+ hr as resolveDashboardOptionDependencies,
1635
+ mr as resolveDashboardOptionPopulation,
1636
+ gr as resolveDashboardSqlFilterTarget,
1637
+ sa as resolveGroupByFieldTarget,
1638
+ da as resolveMatrixControlBindings,
1639
+ Rr as resolveMatrixDefinition,
1640
+ ca as resolveMetricFieldTarget,
1641
+ la as resolveScalarMappedValue,
1642
+ La as resolveTemporalBucketAuthoringFormat,
1643
+ Pa as resolveTemporalResultOwner,
1643
1644
  ve as respondsToSelectionsSchema,
1644
- gr as retainMatrixConditionalFormatting,
1645
- br as selectDashboardOptionDependencyInputIds,
1646
- Pa as selectionFieldFromExplorerField,
1647
- Ir as stripInstanceTargetsForLibrarySave,
1645
+ br as retainMatrixConditionalFormatting,
1646
+ Ir as selectDashboardOptionDependencyInputIds,
1647
+ Ba as selectionFieldFromExplorerField,
1648
+ _r as stripInstanceTargetsForLibrarySave,
1648
1649
  $a as supportsCanonicalDashboardTemporalResult,
1649
- Ba as transformComparisonDocument,
1650
- _r as updateMatrixConfig,
1651
- la as validateControlValue,
1652
- Be as validateDashboardAuthoringDatasetScope,
1650
+ Va as transformComparisonDocument,
1651
+ yr as updateMatrixConfig,
1652
+ ua as validateControlValue,
1653
+ $e as validateDashboardAuthoringDatasetScope,
1653
1654
  qe as validateDashboardChangePlan,
1654
1655
  ze as validateDashboardPlan,
1655
- yr as withDashboardOptionDependencyOverride
1656
+ Cr as withDashboardOptionDependencyOverride
1656
1657
  };
@@ -1,13 +1,13 @@
1
1
  import { toSemaphorInputSnapshots as rt, toSemaphorInputBinding as tt, toSemaphorSelectionSnapshots as nt, toSemaphorActiveInputSnapshots as X, toSemaphorMatrixIntent as it, toSemaphorSqlIntent as ot, toSemaphorInputOptionsIntent as st, toSemaphorRecordsIntent as at, toSemaphorAnalysisQueryOptions as lt, toSemaphorAnalysisIntent as dt, toSemaphorMetricIntent as ut, hasSemaphorInputValue as fe, normalizeSemaphorInputOptions as qr, toSemaphorInputSpec as Ar } from "../data-app-sdk-adapters/index.js";
2
2
  import { jsxs as p, Fragment as Tr, jsx as l } from "react/jsx-runtime";
3
3
  import { createContext as Ae, useContext as Q, useState as _, useRef as T, useEffect as B, useMemo as x, Fragment as ct, useId as kr, useCallback as L, useReducer as ft } from "react";
4
- import { q as pt, u as gt, ad as mt, aX as xe, s as yt } from "../chunks/validators-CsdOtZI6.js";
5
- import { a as Co, b1 as Eo } from "../chunks/validators-CsdOtZI6.js";
6
- import { Q as ht, a6 as bt, a5 as vt, D as sr, t as ar, L as St } from "../chunks/matrix-operation-contract-D32U2CSw.js";
7
- import { m as lr } from "../chunks/matrix-formatter-WBgtebUT.js";
8
- import { a as wt, M as It, E as xt, r as dr } from "../chunks/selection-reducer-NF5C07yM.js";
9
- import { X as qt, C as At, j as Tt } from "../chunks/x-CXDkqdur.js";
10
- import { S as kt, C as Ct } from "../chunks/search-CJz-QQ0Q.js";
4
+ import { q as pt, u as gt, H as mt, I as xe, s as yt } from "../chunks/validators-CQcG0EPN.js";
5
+ import { a as Co, b9 as Eo } from "../chunks/validators-CQcG0EPN.js";
6
+ import { m as ht, am as bt, al as vt, z as sr, o as ar, H as St } from "../chunks/matrix-operation-contract-Dp7kFpVk.js";
7
+ import "zod";
8
+ import { m as lr } from "../chunks/matrix-formatter-1Mm8x8w7.js";
9
+ import { a as wt, M as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-IZjBSU6Z.js";
10
+ import { X as Tt, C as kt, j as Ct } from "../chunks/x-CXDkqdur.js";
11
11
  function he(e, r, t) {
12
12
  return {
13
13
  ...t,
@@ -1793,13 +1793,13 @@ function tn({
1793
1793
  "aria-label": "Close Semaphor Inspector",
1794
1794
  style: a.iconButton,
1795
1795
  onClick: s.closeDevtools,
1796
- children: /* @__PURE__ */ l(qt, { size: 15 })
1796
+ children: /* @__PURE__ */ l(Tt, { size: 15 })
1797
1797
  }
1798
1798
  )
1799
1799
  ] })
1800
1800
  ] }),
1801
1801
  /* @__PURE__ */ p("label", { style: a.searchBox, children: [
1802
- /* @__PURE__ */ l(kt, { size: 14 }),
1802
+ /* @__PURE__ */ l(xt, { size: 14 }),
1803
1803
  /* @__PURE__ */ l(
1804
1804
  "input",
1805
1805
  {
@@ -1949,7 +1949,7 @@ function vo({
1949
1949
  viewId: u.viewId
1950
1950
  }),
1951
1951
  children: [
1952
- /* @__PURE__ */ l(xt, { size: 13 }),
1952
+ /* @__PURE__ */ l(qt, { size: 13 }),
1953
1953
  /* @__PURE__ */ l("span", { style: a.inspectButtonText, children: ((h = u.latestAttempt) == null ? void 0 : h.status) || "idle" })
1954
1954
  ]
1955
1955
  }
@@ -2341,7 +2341,7 @@ function dn({
2341
2341
  onClick: () => n((u) => !u),
2342
2342
  children: [
2343
2343
  /* @__PURE__ */ p("span", { style: a.issueSummaryHeaderLabel, children: [
2344
- t ? /* @__PURE__ */ l(At, { size: 13 }) : /* @__PURE__ */ l(Ct, { size: 13 }),
2344
+ t ? /* @__PURE__ */ l(kt, { size: 13 }) : /* @__PURE__ */ l(At, { size: 13 }),
2345
2345
  /* @__PURE__ */ l("span", { children: "Issues" })
2346
2346
  ] }),
2347
2347
  /* @__PURE__ */ l("span", { style: a.issueSummaryCount, children: e.length })
@@ -4105,7 +4105,7 @@ function Qi(e) {
4105
4105
  if (!e.token)
4106
4106
  return "";
4107
4107
  try {
4108
- return Tt(e.token).apiServiceUrl || "";
4108
+ return Ct(e.token).apiServiceUrl || "";
4109
4109
  } catch {
4110
4110
  return "";
4111
4111
  }
@@ -1,6 +1,7 @@
1
1
  import { n as y } from "../chunks/operators-B3zZoskU.js";
2
- import { m as v, s as m, p as I, a as S } from "../chunks/validators-CsdOtZI6.js";
3
- import { b as F, c as b } from "../chunks/matrix-operation-contract-D32U2CSw.js";
2
+ import { m as v, s as m, p as I, a as S } from "../chunks/validators-CQcG0EPN.js";
3
+ import { a as F, c as b } from "../chunks/matrix-operation-contract-Dp7kFpVk.js";
4
+ import "zod";
4
5
  function w(i) {
5
6
  var n, r, o;
6
7
  const t = R(i);
@@ -27,14 +28,14 @@ function w(i) {
27
28
  ...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
28
29
  };
29
30
  }
30
- function _(i) {
31
+ function G(i) {
31
32
  return {
32
33
  ...w(i),
33
34
  ...i.timeWindow ? { timeWindow: i.timeWindow } : {},
34
35
  ...i.analysis ? { analysis: i.analysis } : {}
35
36
  };
36
37
  }
37
- function G(i) {
38
+ function j(i) {
38
39
  return {
39
40
  ...i.chartTitle ? { chartTitle: i.chartTitle } : {},
40
41
  ...i.chartType ? { chartType: i.chartType } : {},
@@ -98,7 +99,7 @@ function f(i, t) {
98
99
  aggregate: i.aggregate || t.aggregate
99
100
  };
100
101
  }
101
- function j(i) {
102
+ function K(i) {
102
103
  var n, r;
103
104
  if ("sort" in i)
104
105
  throw new Error(
@@ -147,7 +148,7 @@ function O(i) {
147
148
  return n;
148
149
  });
149
150
  }
150
- function K(i) {
151
+ function V(i) {
151
152
  var n, r, o;
152
153
  const t = s(i);
153
154
  if (t.kind === "sql")
@@ -177,7 +178,7 @@ function K(i) {
177
178
  ...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
178
179
  };
179
180
  }
180
- function V(i) {
181
+ function Q(i) {
181
182
  var t;
182
183
  return {
183
184
  version: 1,
@@ -195,7 +196,7 @@ function V(i) {
195
196
  rationale: i.rationale
196
197
  };
197
198
  }
198
- function Q(i) {
199
+ function D(i) {
199
200
  const { id: t, label: n, inputs: r, matrixWindowRequest: o, ...e } = i, { queryKind: T, ...p } = e;
200
201
  return v.parse({ ...p, kind: "matrix" });
201
202
  }
@@ -235,17 +236,17 @@ function h(i) {
235
236
  function z(i) {
236
237
  return i === "grain" || i === "measure" || i === "dimension" || i === "aggregation" || i === "sqlParam";
237
238
  }
238
- function D(i) {
239
+ function J(i) {
239
240
  const t = d(i);
240
241
  return t.length > 0 ? t : void 0;
241
242
  }
242
243
  function C(i) {
243
244
  return (i || []).map(P);
244
245
  }
245
- function J(i) {
246
+ function L(i) {
246
247
  return C(i).filter((t) => t.isActive);
247
248
  }
248
- function L(i) {
249
+ function N(i) {
249
250
  const t = (i || []).flatMap((n) => {
250
251
  const r = "toAnalyticsSelection" in n ? n.toAnalyticsSelection() : n;
251
252
  return r ? [F.parse(r)] : [];
@@ -271,7 +272,7 @@ function g(i) {
271
272
  controlRole: i.role
272
273
  };
273
274
  }
274
- function N(i = []) {
275
+ function U(i = []) {
275
276
  return i.map(
276
277
  (t) => typeof t == "object" ? t : {
277
278
  label: String(t),
@@ -342,18 +343,18 @@ function c(i, t) {
342
343
  }
343
344
  export {
344
345
  u as hasSemaphorInputValue,
345
- N as normalizeSemaphorInputOptions,
346
- J as toSemaphorActiveInputSnapshots,
347
- _ as toSemaphorAnalysisIntent,
348
- G as toSemaphorAnalysisQueryOptions,
346
+ U as normalizeSemaphorInputOptions,
347
+ L as toSemaphorActiveInputSnapshots,
348
+ G as toSemaphorAnalysisIntent,
349
+ j as toSemaphorAnalysisQueryOptions,
349
350
  h as toSemaphorInputBinding,
350
- D as toSemaphorInputBindings,
351
- K as toSemaphorInputOptionsIntent,
351
+ J as toSemaphorInputBindings,
352
+ V as toSemaphorInputOptionsIntent,
352
353
  C as toSemaphorInputSnapshots,
353
354
  g as toSemaphorInputSpec,
354
- Q as toSemaphorMatrixIntent,
355
+ D as toSemaphorMatrixIntent,
355
356
  w as toSemaphorMetricIntent,
356
- j as toSemaphorRecordsIntent,
357
- L as toSemaphorSelectionSnapshots,
358
- V as toSemaphorSqlIntent
357
+ K as toSemaphorRecordsIntent,
358
+ N as toSemaphorSelectionSnapshots,
359
+ Q as toSemaphorSqlIntent
359
360
  };