react-semaphor 0.1.525 → 0.1.527

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 (196) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1179 -296
  3. package/dist/brand-studio/index.js +31 -31
  4. package/dist/briefings/index.js +50 -49
  5. package/dist/chunks/{calculated-field-identity-Dy_WpDdo.js → calculated-field-identity-DEhjPSr-.js} +77 -76
  6. package/dist/chunks/{card-config-utils-CAyjC5Tp.js → card-config-utils-BlIbwkuD.js} +62 -59
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-BilVIEyw.js → dashboard-briefing-launcher-D9pFByPh.js} +274 -267
  10. package/dist/chunks/{dashboard-controls-DyLPcvCK.js → dashboard-controls-CJI5ZWMq.js} +740 -692
  11. package/dist/chunks/dashboard-json-DLdrFry-.js +65 -0
  12. package/dist/chunks/{edit-dashboard-visual-DtmKNNdE.js → edit-dashboard-visual-D5LjWle1.js} +6760 -6728
  13. package/dist/chunks/editor-action-buttons-G91NQKxU.js +2070 -0
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
  15. package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
  16. package/dist/chunks/{index-ON7Gpvcv.js → index-BvJOYbNv.js} +760 -750
  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-DY45yiUM.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-B1K7x0SL.js → matrix-control-sources-BypfLZsK.js} +36 -36
  20. package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
  21. package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.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-BV02rLhu.js +809 -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-D5v8uyjj.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-BWrPhlGT.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-D3hxu4sE.js +1231 -0
  33. package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
  34. package/dist/chunks/{selection-reducer-CvCBQbl2.js → selection-reducer-C7Um5XN-.js} +3 -3
  35. package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
  36. package/dist/chunks/{index-DYOaHuLS.js → semaphor-ready-indicator-D46I_4g7.js} +145070 -146854
  37. package/dist/chunks/slider-B6LELqx6.js +876 -0
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/{switch-CWPcwAZ4.js → switch-_7uBAbYx.js} +7950 -8545
  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 +30 -29
  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 +435 -246
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +4 -5
  56. package/dist/types/briefings/index.d.ts +3 -0
  57. package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
  58. package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +1 -1
  59. package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +1 -1
  60. package/dist/types/components/editor/editor-main/text-card.d.ts +1 -1
  61. package/dist/types/components/editor/editor.d.ts +1 -1
  62. package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
  63. package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
  64. package/dist/types/components/providers/semaphor-context-provider.d.ts +1 -1
  65. package/dist/types/components/providers/theme-provider-context.d.ts +1 -1
  66. package/dist/types/components/providers/theme-provider.d.ts +1 -1
  67. package/dist/types/components/shared/unsaved-changes/use-pristine-snapshot-initializer.d.ts +1 -1
  68. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
  69. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
  70. package/dist/types/components/surfboard/dashboard-plus.d.ts +1 -1
  71. package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
  72. package/dist/types/components/surfboard/filter/types.d.ts +8 -29
  73. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
  74. package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
  75. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
  76. package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
  77. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
  78. package/dist/types/components/visual/column-display-utils.d.ts +1 -1
  79. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
  80. package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +1 -1
  81. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
  82. package/dist/types/components/visual/settings/color-format.d.ts +1 -1
  83. package/dist/types/components/visual/visual-utils.d.ts +1 -1
  84. package/dist/types/index.js +5 -5
  85. package/dist/types/lib/actions/data-point-click-action.d.ts +2 -1
  86. package/dist/types/lib/api/exports-api.d.ts +3 -0
  87. package/dist/types/lib/csv-download.d.ts +9 -0
  88. package/dist/types/lib/csv-encoding-options.d.ts +6 -0
  89. package/dist/types/lib/dashboard/normalize-dashboard-for-dirty-check.d.ts +1 -1
  90. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
  91. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
  92. package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
  93. package/dist/types/lib/export-utils.d.ts +17 -15
  94. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
  95. package/dist/types/lib/hooks/explorer/use-schemas.d.ts +1 -1
  96. package/dist/types/lib/hooks/use-dashboard.d.ts +2 -2
  97. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
  98. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +1 -2
  99. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
  100. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  101. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
  102. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
  103. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
  104. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
  105. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
  106. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
  107. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
  108. package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
  109. package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
  110. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
  111. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
  112. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
  113. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
  114. package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
  115. package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
  116. package/dist/types/lib/stores/editor-store.d.ts +1 -2
  117. package/dist/types/lib/stores/table-actions.d.ts +2 -1
  118. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
  119. package/dist/types/lib/types/common-types.d.ts +5 -0
  120. package/dist/types/lib/types/explorer-types.d.ts +14 -0
  121. package/dist/types/lib/types/token-types.d.ts +0 -13
  122. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  123. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  124. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  125. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  126. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  127. package/dist/types/lib/utils.d.ts +0 -2
  128. package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
  129. package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
  130. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  131. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  132. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  133. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
  134. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  135. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  136. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  137. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  138. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  139. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  140. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  141. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  142. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  143. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  144. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  145. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  146. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  147. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  148. package/dist/types/shared/temporal/index.d.ts +5 -0
  149. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  150. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  151. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  152. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  153. package/package.json +2 -17
  154. package/src/data-app-sdk/README.md +6 -3
  155. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  156. package/dist/chunks/dashboard-json-QEoU-mx4.js +0 -75
  157. package/dist/chunks/editor-action-buttons-B9VRW3Bh.js +0 -2019
  158. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  159. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  160. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  161. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  162. package/dist/chunks/report-preferences-dialog-BLaFmlE2.js +0 -723
  163. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  164. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  165. package/dist/data-app-builder/index.js +0 -3666
  166. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  167. package/dist/data-app-codegen/index.js +0 -22
  168. package/dist/data-app-codegen-node/index.js +0 -1807
  169. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  170. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  171. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  172. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  173. package/dist/types/data-app-builder/constants.d.ts +0 -14
  174. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  175. package/dist/types/data-app-builder/index.d.ts +0 -1
  176. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  177. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  178. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  179. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  180. package/dist/types/data-app-builder/types.d.ts +0 -558
  181. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  182. package/dist/types/data-app-builder.d.ts +0 -2
  183. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  184. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  185. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  186. package/dist/types/data-app-codegen/index.d.ts +0 -6
  187. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  188. package/dist/types/data-app-codegen/node.d.ts +0 -2
  189. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  190. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  191. package/dist/types/data-app-codegen-node.d.ts +0 -2
  192. package/dist/types/data-app-codegen.d.ts +0 -2
  193. package/dist/types/lib/encrypt-utils.d.ts +0 -9
  194. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  195. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  196. 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/index-DYOaHuLS.js";
1
+ import { D as o } from "../chunks/dashboard-JNHR0_cZ.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-B1K7x0SL.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-B1K7x0SL.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-Dy_WpDdo.js";
8
- import { E as za, D as qa, o as ja, q as Ga, K as Ha, s as Ua, l as Ka, i as Wa, d as Xa, j as Qa, A as Ja, g as Ya, v as Za, B as er, h as tr, k as ar, w as rr, n as nr, u as ir, C as or, I as sr, y as dr, p as cr, f as lr, a as ur, b as pr, F as fr, G as hr, e as mr, x as gr, H as br, t as Ir, z as _r, J as yr } from "../chunks/calculated-field-identity-Dy_WpDdo.js";
1
+ import { D as L, a as Ce } from "../chunks/matrix-control-sources-BypfLZsK.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-BypfLZsK.js";
3
+ import { c as Se, r as ve } from "../chunks/field-aggregations-DeVQLIsP.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-DeVQLIsP.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-BV02rLhu.js";
7
+ import "zod";
8
+ import { m as $, r as q } from "../chunks/calculated-field-identity-DEhjPSr-.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-DEhjPSr-.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-DY45yiUM.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,11 +1,12 @@
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 ko, b1 as Co } 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 { M as wt, a as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-CvCBQbl2.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, ab as bt, aa as vt, z as sr, o as ar, H as St } from "../chunks/matrix-operation-contract-BV02rLhu.js";
7
+ import "zod";
8
+ import { m as lr } from "../chunks/matrix-formatter-BoKU3MzZ.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-C7Um5XN-.js";
9
10
  import { X as Tt, C as kt, j as Ct } from "../chunks/x-CXDkqdur.js";
10
11
  function he(e, r, t) {
11
12
  return {
@@ -14,13 +15,13 @@ function he(e, r, t) {
14
15
  role: r
15
16
  };
16
17
  }
17
- function go(e) {
18
+ function mo(e) {
18
19
  return e;
19
20
  }
20
- function mo(e) {
21
+ function yo(e) {
21
22
  return e;
22
23
  }
23
- const yo = {
24
+ const ho = {
24
25
  source: {
25
26
  semantic(e) {
26
27
  return {
@@ -1656,7 +1657,7 @@ function Or() {
1656
1657
  const e = V[V.length - 1];
1657
1658
  e ? window.__SEMAPHOR_DEVTOOLS__ = e.bridge : delete window.__SEMAPHOR_DEVTOOLS__;
1658
1659
  }
1659
- function ho({
1660
+ function bo({
1660
1661
  id: e,
1661
1662
  title: r,
1662
1663
  children: t
@@ -1904,7 +1905,7 @@ function tn({
1904
1905
  ) : null
1905
1906
  ] });
1906
1907
  }
1907
- function bo({
1908
+ function vo({
1908
1909
  queryId: e,
1909
1910
  viewId: r,
1910
1911
  label: t,
@@ -4117,7 +4118,7 @@ function Ui() {
4117
4118
  function Gi() {
4118
4119
  return Q(Yr);
4119
4120
  }
4120
- function vo(e) {
4121
+ function So(e) {
4121
4122
  const [r, t] = _(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), i = n ? e.value : r, o = x(
4122
4123
  () => qr(e.options),
4123
4124
  [e.options]
@@ -4158,7 +4159,7 @@ function vo(e) {
4158
4159
  };
4159
4160
  }, [f, o, s, e, i]);
4160
4161
  }
4161
- function So(e) {
4162
+ function wo(e) {
4162
4163
  const [r, t] = _(() => no(e));
4163
4164
  return B(() => {
4164
4165
  t((n) => {
@@ -4208,7 +4209,7 @@ function So(e) {
4208
4209
  [e, r]
4209
4210
  );
4210
4211
  }
4211
- function wo(e, r) {
4212
+ function Io(e, r) {
4212
4213
  const t = (r == null ? void 0 : r.status) === "success" ? r.options : void 0, n = x(() => Yi(t), [t]);
4213
4214
  B(() => {
4214
4215
  Ji(e.value, t) || e.clear();
@@ -4230,7 +4231,7 @@ function Yi(e) {
4230
4231
  function wr(e) {
4231
4232
  return `${typeof e}:${String(e)}`;
4232
4233
  }
4233
- function Io(e, r = {}) {
4234
+ function xo(e, r = {}) {
4234
4235
  const t = x(
4235
4236
  () => r.inputs ? {
4236
4237
  ...e,
@@ -4653,7 +4654,7 @@ function no(e) {
4653
4654
  function Ie(e) {
4654
4655
  throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
4655
4656
  }
4656
- function xo(e) {
4657
+ function qo(e) {
4657
4658
  const [r, t] = _(() => xr(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), i = xr(
4658
4659
  e,
4659
4660
  n ? e.tuples || [] : r
@@ -4731,7 +4732,7 @@ function Zr(e, r) {
4731
4732
  function io(e) {
4732
4733
  return !e || typeof e == "boolean" || e.enabled === !1 ? null : e.autoRenderDevtools === !0 ? {} : e.autoRenderDevtools ? e.autoRenderDevtools : null;
4733
4734
  }
4734
- function qo({
4735
+ function Ao({
4735
4736
  token: e,
4736
4737
  apiBaseUrl: r,
4737
4738
  executor: t,
@@ -4754,21 +4755,21 @@ function qo({
4754
4755
  ] }) });
4755
4756
  }
4756
4757
  export {
4757
- qo as SemaphorDataAppProvider,
4758
+ Ao as SemaphorDataAppProvider,
4758
4759
  tn as SemaphorDevtools,
4759
- bo as SemaphorDevtoolsInspectButton,
4760
- ho as SemaphorViewBoundary,
4760
+ vo as SemaphorDevtoolsInspectButton,
4761
+ bo as SemaphorViewBoundary,
4761
4762
  _i as createSemaphorQueryExecutor,
4762
- go as defineSemaphorDataApp,
4763
- mo as defineSemaphorInput,
4763
+ mo as defineSemaphorDataApp,
4764
+ yo as defineSemaphorInput,
4764
4765
  Ji as isSemaphorInputValueValidForOptions,
4765
- yo as semaphor,
4766
- ko as semaphorMetricAggregate,
4767
- Co as semaphorMetricMeasureBindingKey,
4768
- wo as useClearInvalidSemaphorInputValue,
4766
+ ho as semaphor,
4767
+ Co as semaphorMetricAggregate,
4768
+ Eo as semaphorMetricMeasureBindingKey,
4769
+ Io as useClearInvalidSemaphorInputValue,
4769
4770
  Dr as useSemaphorDevtools,
4770
- vo as useSemaphorInput,
4771
- So as useSemaphorInputs,
4772
- Io as useSemaphorQuery,
4773
- xo as useSemaphorSelection
4771
+ So as useSemaphorInput,
4772
+ wo as useSemaphorInputs,
4773
+ xo as useSemaphorQuery,
4774
+ qo as useSemaphorSelection
4774
4775
  };