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
@@ -1,34 +1,26 @@
1
1
  import { jsx as t, jsxs as r, Fragment as $ } from "react/jsx-runtime";
2
- import Nt, { useState as A, useEffect as Q, useMemo as Y, useCallback as W, useLayoutEffect as xt, useRef as ce, useContext as Gt } from "react";
3
- import { B as T, O as Ne, Z as et, L as re, M as St, d as Dt, a4 as z, c as K, K as Kt, u as L, D as me, z as be, ay as tt, E as kt, P as Pe, a as Me, b as Oe, aI as qt, aJ as Qt, S as Et, aK as Xt, aL as Yt, aM as Zt, aN as Jt, aG as er } from "./switch-CWPcwAZ4.js";
4
- import { cf as rt, aG as Se, aH as De, aJ as ke, bb as At, bR as tr, cg as rr, ch as ar, aY as ge, c3 as It, bm as _e, r as nr, n as sr, ci as or, aO as at, aR as nt, aS as st, aT as ot, aU as it, aV as lt, aW as dt, aX as Ft, bk as ct, cj as ir, ck as lr, cl as Xe, c4 as je, c5 as We, cm as Lt, c6 as He, bP as G, b0 as dr, cd as ze, cn as cr, bO as ur, aI as ut, aK as ht, co as hr, aF as mr, ba as pr, bx as Bt, cp as fr, bS as gr, u as br, aL as xr, b2 as vr, az as Ge, N as he, aw as mt, as as Tt, at as $e, O as Ut, ar as yr, ay as Cr, R as Rt, cq as wr, cr as Nr, au as vt, Q as Sr, cs as Dr, ct as kr, cu as Er, cv as Ar, cw as Ir, cx as Fr, cy as Vt, cz as Lr, b3 as Br, cA as Tr, c7 as Pt, cB as Ur, cC as Rr, cD as Ue, cE as Vr, cF as Pr, cG as Mr, an as Or, ap as _r, a3 as zr, a2 as $r, a1 as jr, a0 as Wr, Z as Hr, X as Gr, cH as Kr, cI as qr, cJ as Qr, cK as Xr, cL as Yr, al as Zr, cM as Jr, cN as ea, a9 as ta, cO as ra, cP as aa, cQ as na } from "./index-DYOaHuLS.js";
2
+ import Nt, { useState as A, useEffect as Y, useMemo as X, useCallback as W, useLayoutEffect as xt, useRef as ce, useContext as qt } from "react";
3
+ import { B as T, m as Ne, r as et, L as re, k as St, d as Dt, aj as z, c as G, j as Gt, u as L, a2 as me, a0 as be, aN as tt, a3 as kt, P as Me, a as _e, b as Oe, aW as Kt, aX as Yt, S as Et, aY as Qt, aZ as Xt, a_ as Zt, a$ as Jt, ah as er } from "./switch-_7uBAbYx.js";
4
+ import { cg as rt, aY as Se, aZ as De, a$ as ke, b5 as At, aN as tr, ch as rr, ci as ar, bm as ge, bW as It, bd as ze, q as nr, m as sr, cj as or, c8 as at, c9 as nt, ca as st, cb as ot, cc as it, cd as lt, ce as dt, cf as Ft, bb as ct, ck as ir, cl as lr, cm as Qe, bX as We, bY as He, cn as Lt, bZ as qe, bI as q, c6 as dr, c5 as $e, co as cr, bG as ur, a_ as ut, b0 as ht, cp as hr, aX as mr, b4 as pr, bp as Bt, cq as fr, bK as gr, u as br, cr as xr, cs as vr, aB as Ge, L as he, au as mt, aq as Tt, ar as je, N as Ut, ap as yr, aw as Cr, R as Rt, ct as wr, cu as Nr, as as vt, P as Sr, cv as Dr, cw as kr, cx as Er, cy as Ar, cz as Ir, cA as Fr, cB as Vt, cC as Lr, cD as Br, cE as Tr, b_ as Pt, cF as Ur, cG as Rr, cH as Re, cI as Vr, cJ as Pr, cK as Mr, am as _r, an as Or, a2 as zr, a1 as $r, a0 as jr, $ as Wr, Y as Hr, W as qr, cL as Gr, cM as Kr, cN as Yr, cO as Qr, cP as Xr, ak as Zr, cQ as Jr, cR as ea, a8 as ta, cS as ra, cT as aa, cU as na } from "./semaphor-ready-indicator-D46I_4g7.js";
5
5
  import { L as pt } from "./layout-grid-CiubineE.js";
6
- import { c as Ke, X as qe, C as Mt } from "./x-CXDkqdur.js";
7
- import { u as ft, V as sa, E as Ye, a as Ze, b as oa, c as ia, L as la, d as da, e as Ot, C as _t, F as ca, f as ua } from "./editor-action-buttons-B9VRW3Bh.js";
8
- import { v as yt, s as ha } from "./card-config-utils-CAyjC5Tp.js";
9
- import "./validators-CsdOtZI6.js";
10
- import "./matrix-operation-contract-D32U2CSw.js";
11
- import "../value-format-preferences/index.js";
12
- import { S as ma } from "./selection-reducer-CvCBQbl2.js";
13
- import { s as Re } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
14
- import { M as pa } from "./mouse-pointer-2-BZvGk45-.js";
15
- import { k as fa } from "./matrix-formatter-WBgtebUT.js";
16
- import "./appearance-runtime-provider-B-M8gwlZ.js";
17
- import "./appearance-context-DEYtWinQ.js";
18
- import "./index-CLIro-EG.js";
19
- import "./field-aggregations-BQjogiI1.js";
6
+ import { c as Ee, X as Ke, C as Mt } from "./x-CXDkqdur.js";
7
+ import { a as ft, V as sa, E as Xe, b as Ze, c as oa, d as ia, L as la, e as da, g as _t, C as Ot, F as ca, h as ua } from "./editor-action-buttons-G91NQKxU.js";
8
+ import "./validators-CQcG0EPN.js";
9
+ import "./matrix-operation-contract-BV02rLhu.js";
20
10
  import "zod";
21
- import "./matrix-continuation-C4sRcjZU.js";
22
- import "./color-CJvdlFM_.js";
23
- import "react-dom";
24
- import { g as se, d as ga, a as ba } from "./index-ON7Gpvcv.js";
11
+ import "../value-format-preferences/index.js";
12
+ import { S as ha } from "./selection-reducer-C7Um5XN-.js";
13
+ import { s as Ve } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
14
+ import { v as yt, s as ma } from "./card-config-utils-BlIbwkuD.js";
15
+ import { l as pa } from "./matrix-formatter-BoKU3MzZ.js";
16
+ import { d as se, e as fa, h as ga } from "./index-BvJOYbNv.js";
25
17
  /**
26
18
  * @license lucide-react v0.453.0 - ISC
27
19
  *
28
20
  * This source code is licensed under the ISC license.
29
21
  * See the LICENSE file in the root directory of this source tree.
30
22
  */
31
- const xa = Ke("ArrowUpRight", [
23
+ const ba = Ee("ArrowUpRight", [
32
24
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
33
25
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
34
26
  ]);
@@ -38,7 +30,7 @@ const xa = Ke("ArrowUpRight", [
38
30
  * This source code is licensed under the ISC license.
39
31
  * See the LICENSE file in the root directory of this source tree.
40
32
  */
41
- const va = Ke("CalendarRange", [
33
+ const xa = Ee("CalendarRange", [
42
34
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
43
35
  ["path", { d: "M16 2v4", key: "4m81vk" }],
44
36
  ["path", { d: "M3 10h18", key: "8toen8" }],
@@ -54,7 +46,7 @@ const va = Ke("CalendarRange", [
54
46
  * This source code is licensed under the ISC license.
55
47
  * See the LICENSE file in the root directory of this source tree.
56
48
  */
57
- const ya = Ke("FileDown", [
49
+ const va = Ee("FileDown", [
58
50
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
59
51
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
60
52
  ["path", { d: "M12 18v-6", key: "17g6i2" }],
@@ -66,7 +58,22 @@ const ya = Ke("FileDown", [
66
58
  * This source code is licensed under the ISC license.
67
59
  * See the LICENSE file in the root directory of this source tree.
68
60
  */
69
- const Ca = Ke("Newspaper", [
61
+ const ya = Ee("MousePointer2", [
62
+ [
63
+ "path",
64
+ {
65
+ d: "M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",
66
+ key: "edeuup"
67
+ }
68
+ ]
69
+ ]);
70
+ /**
71
+ * @license lucide-react v0.453.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */
76
+ const Ca = Ee("Newspaper", [
70
77
  [
71
78
  "path",
72
79
  {
@@ -101,7 +108,7 @@ function Na({
101
108
  isCreating: n
102
109
  }) {
103
110
  const i = rt("interactive"), [s, c] = A(""), [m, l] = A("");
104
- Q(() => {
111
+ Y(() => {
105
112
  e || (c(""), l(""));
106
113
  }, [e]);
107
114
  const u = () => {
@@ -133,7 +140,7 @@ function Na({
133
140
  onClick: () => d(!1),
134
141
  "aria-label": "Close",
135
142
  disabled: n,
136
- children: /* @__PURE__ */ t(qe, { className: "h-3.5 w-3.5" })
143
+ children: /* @__PURE__ */ t(Ke, { className: "h-3.5 w-3.5" })
137
144
  }
138
145
  )
139
146
  ] }),
@@ -220,13 +227,13 @@ function Sa(e, a) {
220
227
  }
221
228
  function Da(e) {
222
229
  const a = (e || "").toLowerCase();
223
- return a.includes("table") ? St : a.includes("pie") || a.includes("donut") ? ir : a.includes("line") ? lr : a.includes("bar") ? Kt : pt;
230
+ return a.includes("table") ? St : a.includes("pie") || a.includes("donut") ? ir : a.includes("line") ? lr : a.includes("bar") ? Gt : pt;
224
231
  }
225
232
  function ka({ visual: e }) {
226
233
  const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
227
234
  return /* @__PURE__ */ t("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
228
235
  }
229
- function Kn({
236
+ function _n({
230
237
  open: e,
231
238
  onOpenChange: a
232
239
  }) {
@@ -246,7 +253,7 @@ function Kn({
246
253
  updateResource: P,
247
254
  deleteResourceAsync: Z,
248
255
  duplicateResource: ae,
249
- isCreating: Ee,
256
+ isCreating: Ae,
250
257
  isDeleting: oe
251
258
  } = rr(
252
259
  void 0,
@@ -254,10 +261,10 @@ function Kn({
254
261
  l(!1), v && (E(v), b(v), w());
255
262
  }
256
263
  ), {
257
- startUpdating: Ae,
258
- stopUpdating: Ie,
264
+ startUpdating: Ie,
265
+ stopUpdating: Fe,
259
266
  isUpdating: ie
260
- } = ar(), j = R, J = Y(() => {
267
+ } = ar(), j = R, J = X(() => {
261
268
  const v = n.trim().toLowerCase();
262
269
  return v ? j.filter(
263
270
  (B) => {
@@ -265,14 +272,14 @@ function Kn({
265
272
  return ((M = B.title) == null ? void 0 : M.toLowerCase().includes(v)) || ((te = B.description) == null ? void 0 : te.toLowerCase().includes(v)) || ((de = B.kind) == null ? void 0 : de.toLowerCase().includes(v));
266
273
  }
267
274
  ) : j;
268
- }, [n, j]), le = Y(
275
+ }, [n, j]), le = X(
269
276
  () => j.filter(
270
277
  (v) => s.has(v.id)
271
278
  ),
272
279
  [s, j]
273
280
  ), ee = le.filter(
274
281
  (v) => v.permissions.canDelete
275
- ), Fe = le.filter(
282
+ ), Le = le.filter(
276
283
  (v) => v.permissions.canShare
277
284
  ), xe = J.length > 0 && J.every(
278
285
  (v) => s.has(v.id)
@@ -281,7 +288,7 @@ function Kn({
281
288
  ), pe = (v) => {
282
289
  const B = new Set(s);
283
290
  v(B), c(B);
284
- }, X = (v) => {
291
+ }, Q = (v) => {
285
292
  pe((B) => {
286
293
  B.has(v) ? B.delete(v) : B.add(v);
287
294
  });
@@ -294,9 +301,9 @@ function Kn({
294
301
  (M) => B.add(M.id)
295
302
  ), B;
296
303
  });
297
- }, O = async (v) => {
304
+ }, _ = async (v) => {
298
305
  (await U(v)).success && w();
299
- }, _ = async () => {
306
+ }, O = async () => {
300
307
  const v = le;
301
308
  if (v.length === 0) return;
302
309
  let B = !1;
@@ -312,13 +319,13 @@ function Kn({
312
319
  S(v), ae(v, {
313
320
  onSettled: () => S(null)
314
321
  });
315
- }, Le = () => {
322
+ }, Be = () => {
316
323
  if (ee.length === 0) {
317
324
  z.error("Select a visual you can delete");
318
325
  return;
319
326
  }
320
327
  x(null), g(!0);
321
- }, Qe = async () => {
328
+ }, Ye = async () => {
322
329
  const v = k ? [k] : ee;
323
330
  try {
324
331
  for (const B of v)
@@ -353,25 +360,25 @@ function Kn({
353
360
  return;
354
361
  }
355
362
  const te = Object.keys(M), de = te.length === 1 ? te[0] : void 0;
356
- Ae(p.id, de), P(
363
+ Ie(p.id, de), P(
357
364
  {
358
365
  resourceId: p.id,
359
366
  data: M
360
367
  },
361
368
  {
362
369
  onSuccess: () => {
363
- Ie(p.id, de), h(null);
370
+ Fe(p.id, de), h(null);
364
371
  },
365
372
  onError: () => {
366
- Ie(p.id, de);
373
+ Fe(p.id, de);
367
374
  }
368
375
  }
369
376
  );
370
- }, q = (v) => {
377
+ }, K = (v) => {
371
378
  a(v), v || C();
372
379
  }, we = k ? 1 : ee.length;
373
380
  return /* @__PURE__ */ r($, { children: [
374
- /* @__PURE__ */ t(Se, { open: e, onOpenChange: q, children: /* @__PURE__ */ r(
381
+ /* @__PURE__ */ t(Se, { open: e, onOpenChange: K, children: /* @__PURE__ */ r(
375
382
  De,
376
383
  {
377
384
  showCloseButton: !1,
@@ -392,7 +399,7 @@ function Kn({
392
399
  size: "xs",
393
400
  variant: "ghost",
394
401
  className: "w-7 px-0 text-muted-foreground hover:text-foreground",
395
- onClick: () => q(!1),
402
+ onClick: () => K(!1),
396
403
  "aria-label": "Close visuals library",
397
404
  children: "×"
398
405
  }
@@ -400,7 +407,7 @@ function Kn({
400
407
  ] }),
401
408
  /* @__PURE__ */ r("div", { className: "flex shrink-0 items-center gap-2 border-b border-border/60 px-3 py-2", children: [
402
409
  /* @__PURE__ */ r("div", { className: "relative min-w-[12rem] flex-1 md:max-w-md", children: [
403
- /* @__PURE__ */ t(ma, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
410
+ /* @__PURE__ */ t(ha, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
404
411
  /* @__PURE__ */ t(
405
412
  "input",
406
413
  {
@@ -439,8 +446,8 @@ function Kn({
439
446
  allFilteredSelected: xe,
440
447
  someFilteredSelected: ue,
441
448
  onSelectAll: ve,
442
- onToggleSelection: X,
443
- onAddVisual: O,
449
+ onToggleSelection: Q,
450
+ onAddVisual: _,
444
451
  onOpenVisual: ne,
445
452
  onEditDetails: h,
446
453
  onShareVisual: d,
@@ -475,7 +482,7 @@ function Kn({
475
482
  size: "xs",
476
483
  variant: "outline",
477
484
  onClick: ye,
478
- disabled: le.length !== 1 || Fe.length !== 1,
485
+ disabled: le.length !== 1 || Le.length !== 1,
479
486
  children: [
480
487
  /* @__PURE__ */ t(It, { className: "h-3.5 w-3.5" }),
481
488
  "Share"
@@ -488,10 +495,10 @@ function Kn({
488
495
  size: "xs",
489
496
  variant: "outline",
490
497
  className: "text-destructive hover:text-destructive",
491
- onClick: Le,
498
+ onClick: Be,
492
499
  disabled: ee.length === 0,
493
500
  children: [
494
- /* @__PURE__ */ t(_e, { className: "h-3.5 w-3.5" }),
501
+ /* @__PURE__ */ t(ze, { className: "h-3.5 w-3.5" }),
495
502
  "Delete ",
496
503
  ee.length || s.size
497
504
  ]
@@ -504,7 +511,7 @@ function Kn({
504
511
  {
505
512
  size: "xs",
506
513
  variant: "outline",
507
- onClick: () => q(!1),
514
+ onClick: () => K(!1),
508
515
  children: "Close"
509
516
  }
510
517
  ),
@@ -512,7 +519,7 @@ function Kn({
512
519
  T,
513
520
  {
514
521
  size: "xs",
515
- onClick: _,
522
+ onClick: O,
516
523
  disabled: s.size === 0,
517
524
  children: [
518
525
  /* @__PURE__ */ t(Dt, { className: "h-3.5 w-3.5" }),
@@ -531,7 +538,7 @@ function Kn({
531
538
  open: m,
532
539
  onOpenChange: l,
533
540
  onSubmit: F,
534
- isCreating: Ee
541
+ isCreating: Ae
535
542
  }
536
543
  ),
537
544
  u && /* @__PURE__ */ t(
@@ -578,11 +585,11 @@ function Kn({
578
585
  Ft,
579
586
  {
580
587
  onClick: (v) => {
581
- v.preventDefault(), Qe();
588
+ v.preventDefault(), Ye();
582
589
  },
583
590
  disabled: oe || we === 0,
584
591
  children: [
585
- oe ? /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(_e, { className: "h-3.5 w-3.5" }),
592
+ oe ? /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(ze, { className: "h-3.5 w-3.5" }),
586
593
  oe ? "Deleting..." : "Delete"
587
594
  ]
588
595
  }
@@ -668,7 +675,7 @@ function Aa({
668
675
  return /* @__PURE__ */ r(
669
676
  "div",
670
677
  {
671
- className: K(
678
+ className: G(
672
679
  "group grid min-h-12 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/50 px-3 text-[13px] hover:bg-muted/50",
673
680
  a && "bg-muted/70"
674
681
  ),
@@ -761,11 +768,11 @@ function Ia({
761
768
  className: "w-7 px-0",
762
769
  onClick: () => a(e),
763
770
  "aria-label": "Edit visual",
764
- children: /* @__PURE__ */ t(Xe, { className: "h-3.5 w-3.5" })
771
+ children: /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" })
765
772
  }
766
773
  ),
767
- /* @__PURE__ */ r(je, { modal: !1, children: [
768
- /* @__PURE__ */ t(We, { asChild: !0, children: /* @__PURE__ */ t(
774
+ /* @__PURE__ */ r(We, { modal: !1, children: [
775
+ /* @__PURE__ */ t(He, { asChild: !0, children: /* @__PURE__ */ t(
769
776
  T,
770
777
  {
771
778
  size: "xs",
@@ -776,17 +783,17 @@ function Ia({
776
783
  }
777
784
  ) }),
778
785
  /* @__PURE__ */ r(
779
- He,
786
+ qe,
780
787
  {
781
788
  align: "end",
782
789
  className: "z-[60] w-44 rounded-[6px] border-border/60 p-1 shadow-sm",
783
790
  children: [
784
- /* @__PURE__ */ r(G, { onClick: () => a(e), children: [
785
- /* @__PURE__ */ t(Xe, { className: "h-3.5 w-3.5" }),
791
+ /* @__PURE__ */ r(q, { onClick: () => a(e), children: [
792
+ /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" }),
786
793
  "Edit visual"
787
794
  ] }),
788
795
  /* @__PURE__ */ r(
789
- G,
796
+ q,
790
797
  {
791
798
  onClick: () => s(e.id),
792
799
  disabled: c === e.id,
@@ -796,30 +803,30 @@ function Ia({
796
803
  ]
797
804
  }
798
805
  ),
799
- e.permissions.canEdit && /* @__PURE__ */ r(G, { onClick: () => o(e), children: [
800
- /* @__PURE__ */ t(Xe, { className: "h-3.5 w-3.5" }),
806
+ e.permissions.canEdit && /* @__PURE__ */ r(q, { onClick: () => o(e), children: [
807
+ /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" }),
801
808
  "Edit details"
802
809
  ] }),
803
- e.permissions.canShare && /* @__PURE__ */ r(G, { onClick: () => n(e), children: [
810
+ e.permissions.canShare && /* @__PURE__ */ r(q, { onClick: () => n(e), children: [
804
811
  /* @__PURE__ */ t(It, { className: "h-3.5 w-3.5" }),
805
812
  "Share"
806
813
  ] }),
807
814
  e.permissions.canDelete && /* @__PURE__ */ r($, { children: [
808
- /* @__PURE__ */ t(ze, {}),
815
+ /* @__PURE__ */ t($e, {}),
809
816
  /* @__PURE__ */ r(
810
- G,
817
+ q,
811
818
  {
812
819
  className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
813
820
  onClick: () => i(e),
814
821
  disabled: m,
815
822
  children: [
816
- /* @__PURE__ */ t(_e, { className: "h-3.5 w-3.5" }),
823
+ /* @__PURE__ */ t(ze, { className: "h-3.5 w-3.5" }),
817
824
  m ? "Deleting..." : "Delete"
818
825
  ]
819
826
  }
820
827
  )
821
828
  ] }),
822
- /* @__PURE__ */ t(ze, {}),
829
+ /* @__PURE__ */ t($e, {}),
823
830
  /* @__PURE__ */ r("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
824
831
  $t(e, l) && /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
825
832
  /* @__PURE__ */ t(cr, { className: "h-3 w-3" }),
@@ -838,21 +845,21 @@ function Ia({
838
845
  }
839
846
  );
840
847
  }
841
- function qn(e, a, o = !1) {
848
+ function On(e, a, o = !1) {
842
849
  const n = L((u) => u.dashboard), i = L(
843
850
  (u) => u.isDashboardEditing
844
851
  ), s = L(
845
852
  (u) => u.onDashboardLifecycleEvent
846
853
  ), c = W(() => {
847
854
  const u = L.getState().dashboard;
848
- return a || !e || !u || u.id !== e.id ? !1 : Re(u) !== Re(e);
855
+ return a || !e || !u || u.id !== e.id ? !1 : Ve(u) !== Ve(e);
849
856
  }, [e, a]);
850
857
  xt(() => (L.setState({ checkUnsavedDashboardChanges: c }), () => {
851
858
  L.getState().checkUnsavedDashboardChanges === c && L.setState({ checkUnsavedDashboardChanges: null });
852
859
  }), [c]);
853
- const m = Y(() => !o || a || !n || i && (!e || n.id !== e.id) ? null : {
860
+ const m = X(() => !o || a || !n || i && (!e || n.id !== e.id) ? null : {
854
861
  dashboardId: n.id,
855
- dirty: i && e ? Re(n) !== Re(e) : !1
862
+ dirty: i && e ? Ve(n) !== Ve(e) : !1
856
863
  }, [
857
864
  i,
858
865
  a,
@@ -1077,7 +1084,7 @@ function La() {
1077
1084
  isSaving: E.isPending
1078
1085
  };
1079
1086
  }
1080
- function Qn(e = {}) {
1087
+ function zn(e = {}) {
1081
1088
  const { isInspectionMode: a } = gr(), o = me((F) => F.frame), n = me((F) => F.editorContext), i = br((F) => F.selectedVisual), s = L((F) => F.selectedFrameId), c = L((F) => F.selectedSheetId), m = L((F) => F.dashboard), { setIsVisualEditing: l, updateFrame: u } = be(), [d, p] = A(!1), [h, f] = A("both"), g = Bt(), k = (n == null ? void 0 : n.type) === "documentSection", x = !!(o != null && o.visualId || i != null && i.id), D = !!(o != null && o.visualId && s), S = x && !D, {
1082
1089
  saveAsDialogOpen: C,
1083
1090
  setSaveAsDialogOpen: w,
@@ -1089,7 +1096,7 @@ function Qn(e = {}) {
1089
1096
  if (a)
1090
1097
  return /* @__PURE__ */ r($, { children: [
1091
1098
  /* @__PURE__ */ t(
1092
- Ye,
1099
+ Xe,
1093
1100
  {
1094
1101
  className: "rounded-control",
1095
1102
  variant: "default"
@@ -1099,7 +1106,7 @@ function Qn(e = {}) {
1099
1106
  ] });
1100
1107
  if (k)
1101
1108
  return /* @__PURE__ */ r($, { children: [
1102
- /* @__PURE__ */ t(Ye, { className: "rounded-control", variant: "default" }),
1109
+ /* @__PURE__ */ t(Xe, { className: "rounded-control", variant: "default" }),
1103
1110
  /* @__PURE__ */ t(Ze, {})
1104
1111
  ] });
1105
1112
  const I = async () => {
@@ -1134,11 +1141,11 @@ function Qn(e = {}) {
1134
1141
  };
1135
1142
  return /* @__PURE__ */ r($, { children: [
1136
1143
  /* @__PURE__ */ r("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
1137
- !x && /* @__PURE__ */ t(Ye, { className: "!rounded-none", variant: "default" }),
1144
+ !x && /* @__PURE__ */ t(Xe, { className: "!rounded-none", variant: "default" }),
1138
1145
  x && S && /* @__PURE__ */ t(oa, { className: "!rounded-none", variant: "default" }),
1139
1146
  x && D && /* @__PURE__ */ t(ia, { className: "!rounded-none" }),
1140
- /* @__PURE__ */ r(je, { modal: !1, children: [
1141
- /* @__PURE__ */ t(We, { asChild: !0, children: /* @__PURE__ */ t(
1147
+ /* @__PURE__ */ r(We, { modal: !1, children: [
1148
+ /* @__PURE__ */ t(He, { asChild: !0, children: /* @__PURE__ */ t(
1142
1149
  T,
1143
1150
  {
1144
1151
  variant: "default",
@@ -1150,14 +1157,14 @@ function Qn(e = {}) {
1150
1157
  }
1151
1158
  ) }),
1152
1159
  /* @__PURE__ */ r(
1153
- He,
1160
+ qe,
1154
1161
  {
1155
1162
  align: "end",
1156
1163
  className: "min-w-[220px] rounded-control border border-border/60 p-1 shadow-sm",
1157
1164
  children: [
1158
1165
  D && /* @__PURE__ */ r($, { children: [
1159
1166
  /* @__PURE__ */ r(
1160
- G,
1167
+ q,
1161
1168
  {
1162
1169
  onClick: I,
1163
1170
  disabled: d,
@@ -1167,10 +1174,10 @@ function Qn(e = {}) {
1167
1174
  ]
1168
1175
  }
1169
1176
  ),
1170
- /* @__PURE__ */ t(ze, {})
1177
+ /* @__PURE__ */ t($e, {})
1171
1178
  ] }),
1172
1179
  /* @__PURE__ */ r(
1173
- G,
1180
+ q,
1174
1181
  {
1175
1182
  onClick: () => H("local"),
1176
1183
  disabled: y,
@@ -1181,7 +1188,7 @@ function Qn(e = {}) {
1181
1188
  }
1182
1189
  ),
1183
1190
  /* @__PURE__ */ r(
1184
- G,
1191
+ q,
1185
1192
  {
1186
1193
  onClick: () => H("library"),
1187
1194
  disabled: y,
@@ -1192,7 +1199,7 @@ function Qn(e = {}) {
1192
1199
  }
1193
1200
  ),
1194
1201
  /* @__PURE__ */ r(
1195
- G,
1202
+ q,
1196
1203
  {
1197
1204
  onClick: () => H("both"),
1198
1205
  disabled: y,
@@ -1224,11 +1231,11 @@ function Qn(e = {}) {
1224
1231
  )
1225
1232
  ] });
1226
1233
  }
1227
- function Xn({ className: e }) {
1228
- const a = me((d) => d.isDevMode), o = me((d) => d.card.type), n = L((d) => d.isVisualEditing), { setIsDevMode: i } = kt(), { config: s } = Gt(xr).tokenProps, c = (s == null ? void 0 : s.showAdvancedMode) !== !1;
1229
- if (!n || !c || !ha(o))
1234
+ function $n({ className: e }) {
1235
+ const a = me((d) => d.isDevMode), o = me((d) => d.card.type), n = L((d) => d.isVisualEditing), { setIsDevMode: i } = kt(), { config: s } = qt(xr).tokenProps, c = (s == null ? void 0 : s.showAdvancedMode) !== !1;
1236
+ if (!n || !c || !ma(o))
1230
1237
  return null;
1231
- const m = a ? pa : vr, l = a ? "Visual editor" : "SQL editor", u = a ? "Switch to visual editor" : "Switch to SQL editor";
1238
+ const m = a ? ya : vr, l = a ? "Visual editor" : "SQL editor", u = a ? "Switch to visual editor" : "Switch to SQL editor";
1232
1239
  return /* @__PURE__ */ r(
1233
1240
  "button",
1234
1241
  {
@@ -1236,7 +1243,7 @@ function Xn({ className: e }) {
1236
1243
  "aria-label": u,
1237
1244
  title: u,
1238
1245
  onClick: () => i(!a),
1239
- className: K(
1246
+ className: G(
1240
1247
  "inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
1241
1248
  e
1242
1249
  ),
@@ -1247,7 +1254,7 @@ function Xn({ className: e }) {
1247
1254
  }
1248
1255
  );
1249
1256
  }
1250
- function Yn({
1257
+ function jn({
1251
1258
  open: e,
1252
1259
  onOpenChange: a,
1253
1260
  onSave: o,
@@ -1309,7 +1316,7 @@ function Pa(e) {
1309
1316
  const a = Date.now() - e.getTime();
1310
1317
  return a < Ra ? Ba : a < Va ? Ta : Ua;
1311
1318
  }
1312
- function Zn() {
1319
+ function Wn() {
1313
1320
  const { authToken: e, tokenProps: a } = Ge(), o = he((h) => h.activeExports), [n, i] = A(
1314
1321
  typeof document < "u" ? !document.hidden : !0
1315
1322
  ), s = ce(null), c = ce(!1), m = ce(void 0), l = a == null ? void 0 : a.apiServiceUrl, u = e == null ? void 0 : e.accessToken, d = W(() => {
@@ -1318,7 +1325,7 @@ function Zn() {
1318
1325
  (f) => mt(f.status)
1319
1326
  );
1320
1327
  }, []);
1321
- Q(() => {
1328
+ Y(() => {
1322
1329
  if (typeof document > "u") return;
1323
1330
  const h = () => {
1324
1331
  i(!document.hidden);
@@ -1363,7 +1370,7 @@ function Zn() {
1363
1370
  let E;
1364
1371
  if (w.status === "completed")
1365
1372
  try {
1366
- E = await $e(l, u, C.id);
1373
+ E = await je(l, u, C.id);
1367
1374
  } catch (U) {
1368
1375
  console.error(
1369
1376
  `[useExportPolling] Failed to get download URL for ${C.id}:`,
@@ -1394,18 +1401,18 @@ function Zn() {
1394
1401
  } else
1395
1402
  c.current = !1;
1396
1403
  }, [l, u, d]);
1397
- return Q(() => {
1404
+ return Y(() => {
1398
1405
  m.current = p;
1399
- }, [p]), Q(() => {
1406
+ }, [p]), Y(() => {
1400
1407
  var f;
1401
1408
  d().length > 0 && n && !c.current && (c.current = !0, (f = m.current) == null || f.call(m));
1402
- }, [o, n, d]), Q(() => {
1409
+ }, [o, n, d]), Y(() => {
1403
1410
  var f;
1404
1411
  const h = d();
1405
1412
  n && h.length > 0 && !c.current && (c.current = !0, (f = m.current) == null || f.call(m));
1406
- }, [n, d]), Q(() => {
1413
+ }, [n, d]), Y(() => {
1407
1414
  !n && s.current && (clearTimeout(s.current), s.current = null, c.current = !1);
1408
- }, [n]), Q(() => () => {
1415
+ }, [n]), Y(() => () => {
1409
1416
  s.current && (clearTimeout(s.current), s.current = null);
1410
1417
  }, []), {
1411
1418
  isPolling: c.current,
@@ -1413,9 +1420,9 @@ function Zn() {
1413
1420
  inProgressCount: d().length
1414
1421
  };
1415
1422
  }
1416
- function Jn() {
1423
+ function Hn() {
1417
1424
  const { authToken: e, tokenProps: a } = Ge(), o = he((m) => m.activeExports), { addExport: n } = Ut(), i = ce(!1), s = a == null ? void 0 : a.apiServiceUrl, c = e == null ? void 0 : e.accessToken;
1418
- Q(() => {
1425
+ Y(() => {
1419
1426
  if (i.current || !s || !c) return;
1420
1427
  (async () => {
1421
1428
  try {
@@ -1429,7 +1436,7 @@ function Jn() {
1429
1436
  let d;
1430
1437
  if (u.status === "completed")
1431
1438
  try {
1432
- d = await $e(s, c, u.id);
1439
+ d = await je(s, c, u.id);
1433
1440
  } catch (h) {
1434
1441
  console.error(
1435
1442
  `[useExportRecovery] Failed to get download URL for ${u.id}:`,
@@ -1456,13 +1463,13 @@ function Ma(e) {
1456
1463
  e.status
1457
1464
  ) ? "Export in progress..." : e.status === "completed" ? "Export completed" : e.status === "failed" ? "Export failed" : "Export";
1458
1465
  }
1459
- function Oa({
1466
+ function _a({
1460
1467
  export: e,
1461
1468
  onRemove: a,
1462
1469
  onDownload: o
1463
1470
  }) {
1464
1471
  const [n, i] = A("idle");
1465
- Q(() => {
1472
+ Y(() => {
1466
1473
  e.downloadUrl && i("idle");
1467
1474
  }, [e.downloadUrl]);
1468
1475
  const s = async () => {
@@ -1484,7 +1491,7 @@ function Oa({
1484
1491
  default:
1485
1492
  return "Processing...";
1486
1493
  }
1487
- })(), u = e.status === "completed" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "pending" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", d = e.status === "completed" ? "Ready" : e.status === "failed" ? "Failed" : "In progress", p = fa(e.startedAt, { addSuffix: !0 }), h = [
1494
+ })(), u = e.status === "completed" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "pending" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", d = e.status === "completed" ? "Ready" : e.status === "failed" ? "Failed" : "In progress", p = pa(e.startedAt, { addSuffix: !0 }), h = [
1488
1495
  e.status === "completed" && e.totalRows !== null ? `${e.totalRows.toLocaleString()} rows` : null,
1489
1496
  e.status === "completed" && e.fileSize ? Cr(e.fileSize) : null
1490
1497
  ].filter((g) => !!g), f = /* @__PURE__ */ t("span", { className: "text-muted-foreground/50", children: "·" });
@@ -1516,7 +1523,7 @@ function Oa({
1516
1523
  onClick: c,
1517
1524
  "aria-label": "Remove notification",
1518
1525
  title: "Remove",
1519
- children: /* @__PURE__ */ t(qe, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
1526
+ children: /* @__PURE__ */ t(Ke, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
1520
1527
  }
1521
1528
  )
1522
1529
  ] }),
@@ -1556,7 +1563,7 @@ function Oa({
1556
1563
  ] })
1557
1564
  ] });
1558
1565
  }
1559
- function _a() {
1566
+ function Oa() {
1560
1567
  const { authToken: e, tokenProps: a } = Ge(), o = he((x) => x.activeExports), { clearCompleted: n, removeExport: i, updateExport: s } = Ut(), [c, m] = A(!1), [l, u] = A(!1), d = Array.from(o.values()).sort(
1561
1568
  (x, D) => D.startedAt.getTime() - x.startedAt.getTime()
1562
1569
  ), p = d.some(
@@ -1574,7 +1581,7 @@ function _a() {
1574
1581
  let E;
1575
1582
  if (w.status === "completed")
1576
1583
  try {
1577
- E = await $e(
1584
+ E = await je(
1578
1585
  x,
1579
1586
  D,
1580
1587
  C.id
@@ -1641,7 +1648,7 @@ function _a() {
1641
1648
  const D = a == null ? void 0 : a.apiServiceUrl, S = e == null ? void 0 : e.accessToken;
1642
1649
  if (!D || !S) return "denied";
1643
1650
  try {
1644
- const C = await $e(D, S, x.id);
1651
+ const C = await je(D, S, x.id);
1645
1652
  return s(x.id, { downloadUrl: C }), window.open(C, "_blank"), "opened";
1646
1653
  } catch (C) {
1647
1654
  return console.error(`Failed to get download URL for ${x.id}:`, C), s(x.id, { downloadUrl: void 0 }), "denied";
@@ -1650,7 +1657,7 @@ function _a() {
1650
1657
  [a == null ? void 0 : a.apiServiceUrl, e == null ? void 0 : e.accessToken, s]
1651
1658
  );
1652
1659
  return d.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-1.5 px-6 py-8 text-center", children: [
1653
- /* @__PURE__ */ t("span", { className: "flex h-8 w-8 items-center justify-center rounded-[6px] border border-border text-muted-foreground", children: /* @__PURE__ */ t(ya, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }) }),
1660
+ /* @__PURE__ */ t("span", { className: "flex h-8 w-8 items-center justify-center rounded-[6px] border border-border text-muted-foreground", children: /* @__PURE__ */ t(va, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }) }),
1654
1661
  /* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: "No exports yet" }),
1655
1662
  /* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: "Large exports run in the background and land here." })
1656
1663
  ] }) : /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
@@ -1691,7 +1698,7 @@ function _a() {
1691
1698
  ] })
1692
1699
  ] }),
1693
1700
  /* @__PURE__ */ t("div", { className: "max-h-[320px] overflow-y-auto", children: /* @__PURE__ */ t("div", { className: "divide-y divide-border/70", children: d.map((x) => /* @__PURE__ */ t(
1694
- Oa,
1701
+ _a,
1695
1702
  {
1696
1703
  export: x,
1697
1704
  onRemove: g,
@@ -1701,14 +1708,14 @@ function _a() {
1701
1708
  )) }) })
1702
1709
  ] });
1703
1710
  }
1704
- function es({
1711
+ function qn({
1705
1712
  variant: e
1706
1713
  }) {
1707
1714
  const a = he((l) => l.activeExports), o = Sr(), n = a.size > 0, i = Array.from(a.values()).some(
1708
1715
  (l) => l.status === "completed" || l.status === "failed"
1709
1716
  ), c = o > 0 ? o > 9 ? "9+" : String(o) : null;
1710
- return /* @__PURE__ */ r(Pe, { children: [
1711
- /* @__PURE__ */ t(Me, { asChild: !0, children: /* @__PURE__ */ r(
1717
+ return /* @__PURE__ */ r(Me, { children: [
1718
+ /* @__PURE__ */ t(_e, { asChild: !0, children: /* @__PURE__ */ r(
1712
1719
  T,
1713
1720
  {
1714
1721
  variant: e ?? "ghost",
@@ -1727,7 +1734,7 @@ function es({
1727
1734
  ]
1728
1735
  }
1729
1736
  ) }),
1730
- /* @__PURE__ */ t(Oe, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(_a, {}) })
1737
+ /* @__PURE__ */ t(Oe, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(Oa, {}) })
1731
1738
  ] });
1732
1739
  }
1733
1740
  function za(e) {
@@ -1753,7 +1760,7 @@ function $a({
1753
1760
  preventPassiveDismissDuringCreate: u,
1754
1761
  resolvedOpen: d,
1755
1762
  setIsCreateFlowActive: p
1756
- } = Ot({
1763
+ } = _t({
1757
1764
  open: e,
1758
1765
  onOpenChange: a,
1759
1766
  initialCreateFlowActive: i === "create",
@@ -1764,7 +1771,7 @@ function $a({
1764
1771
  // create and make consumers use `forceClose()` from a dedicated
1765
1772
  // button.
1766
1773
  dismissMode: n ? "passive" : "explicit-only"
1767
- }), h = L((y) => y.dashboard), { setDashboardControlsModel: f } = be(), { participants: g } = kr(qt(h)), k = Array.from(
1774
+ }), h = L((y) => y.dashboard), { setDashboardControlsModel: f } = be(), { participants: g } = kr(Kt(h)), k = Array.from(
1768
1775
  new Map(
1769
1776
  g.flatMap(
1770
1777
  (y) => y.fieldChoices.map((R) => {
@@ -1794,7 +1801,7 @@ function $a({
1794
1801
  })
1795
1802
  )
1796
1803
  ).values()
1797
- ), D = Qt({
1804
+ ), D = Yt({
1798
1805
  ...h || {},
1799
1806
  controls: []
1800
1807
  }), S = Er(h), C = (y, R, I) => {
@@ -1810,7 +1817,7 @@ function $a({
1810
1817
  }
1811
1818
  p(!1);
1812
1819
  }, [s, c, p]), E = /* @__PURE__ */ t(
1813
- _t,
1820
+ Ot,
1814
1821
  {
1815
1822
  scope: "dashboard",
1816
1823
  controls: h.controls || [],
@@ -1834,8 +1841,8 @@ function $a({
1834
1841
  ] }),
1835
1842
  E
1836
1843
  ] });
1837
- return n ? /* @__PURE__ */ r(Pe, { open: d, onOpenChange: m, children: [
1838
- /* @__PURE__ */ t(Me, { asChild: !0, children: o || /* @__PURE__ */ r(T, { variant: "outline", className: "h-7 px-2", size: "sm", children: [
1844
+ return n ? /* @__PURE__ */ r(Me, { open: d, onOpenChange: m, children: [
1845
+ /* @__PURE__ */ t(_e, { asChild: !0, children: o || /* @__PURE__ */ r(T, { variant: "outline", className: "h-7 px-2", size: "sm", children: [
1839
1846
  /* @__PURE__ */ t(Et, { className: "mr-2 h-4 w-4" }),
1840
1847
  "Controls"
1841
1848
  ] }) }),
@@ -1898,28 +1905,28 @@ function Wa({
1898
1905
  preventPassiveDismissDuringCreate: m,
1899
1906
  resolvedOpen: l,
1900
1907
  setIsCreateFlowActive: u
1901
- } = Ot({
1908
+ } = _t({
1902
1909
  open: e,
1903
1910
  onOpenChange: a,
1904
1911
  initialCreateFlowActive: o === "create",
1905
1912
  dismissMode: "explicit-only"
1906
1913
  }), d = L((y) => y.dashboard), p = L((y) => y.selectedSheetId), { setDashboardInputs: h } = be(), f = (b = d.sheets) == null ? void 0 : b.find(
1907
1914
  (y) => y.id === p
1908
- ), g = (f == null ? void 0 : f.kind) === "document" && !!f.document, k = Y(
1915
+ ), g = (f == null ? void 0 : f.kind) === "document" && !!f.document, k = X(
1909
1916
  () => g && (f != null && f.document) ? Ir(d, f.id) : [],
1910
1917
  [d, g, f == null ? void 0 : f.document, f == null ? void 0 : f.id]
1911
- ), x = Y(
1918
+ ), x = X(
1912
1919
  () => k.filter(
1913
1920
  (y) => y.kind === "control"
1914
1921
  ),
1915
1922
  [k]
1916
- ), D = Y(
1923
+ ), D = X(
1917
1924
  () => x.map((y) => y.control),
1918
1925
  [x]
1919
- ), S = Y(
1920
- () => Ga(D),
1926
+ ), S = X(
1927
+ () => qa(D),
1921
1928
  [D]
1922
- ), C = Y(
1929
+ ), C = X(
1923
1930
  () => Ha(d),
1924
1931
  [d]
1925
1932
  ), w = W(() => {
@@ -1931,7 +1938,7 @@ function Wa({
1931
1938
  }, [n, i, u]), E = W(
1932
1939
  (y, R, I) => {
1933
1940
  !g || !(f != null && f.document) || h(
1934
- qa({
1941
+ Ka({
1935
1942
  allInputs: d.inputs || [],
1936
1943
  documentSheetId: f.id,
1937
1944
  currentDocumentInputs: k,
@@ -1967,7 +1974,7 @@ function Wa({
1967
1974
  )
1968
1975
  ] }),
1969
1976
  /* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children: /* @__PURE__ */ t(
1970
- _t,
1977
+ Ot,
1971
1978
  {
1972
1979
  scope: "dashboard",
1973
1980
  controls: D,
@@ -1993,19 +2000,19 @@ function Wa({
1993
2000
  function Ha(e) {
1994
2001
  return (e.controls || []).map((a) => a.id);
1995
2002
  }
1996
- function Ga(e) {
2003
+ function qa(e) {
1997
2004
  const a = {};
1998
2005
  for (const o of e)
1999
2006
  o.defaultValue !== void 0 && (a[o.id] = o.defaultValue);
2000
2007
  return a;
2001
2008
  }
2002
- function Ka(e, a) {
2009
+ function Ga(e, a) {
2003
2010
  return a ? Object.prototype.hasOwnProperty.call(a, e.id) ? {
2004
2011
  ...e,
2005
2012
  defaultValue: a[e.id]
2006
2013
  } : e.defaultValue === void 0 ? e : { ...e, defaultValue: void 0 } : e.defaultValue === void 0 ? e : { ...e, defaultValue: void 0 };
2007
2014
  }
2008
- function qa({
2015
+ function Ka({
2009
2016
  allInputs: e,
2010
2017
  documentSheetId: a,
2011
2018
  currentDocumentInputs: o,
@@ -2016,7 +2023,7 @@ function qa({
2016
2023
  const c = new Map(
2017
2024
  n.map((h) => [
2018
2025
  h.id,
2019
- Ka(h, i)
2026
+ Ga(h, i)
2020
2027
  ])
2021
2028
  ), m = (s == null ? void 0 : s.type) === "rename" ? { oldId: s.oldId, newId: s.newId } : null, l = /* @__PURE__ */ new Set(), u = [];
2022
2029
  for (const h of o) {
@@ -2028,7 +2035,7 @@ function qa({
2028
2035
  if (!f)
2029
2036
  continue;
2030
2037
  l.add(f.id);
2031
- const g = Xt(
2038
+ const g = Qt(
2032
2039
  f.id,
2033
2040
  [...e, ...u].filter(
2034
2041
  (x) => x.id !== h.id
@@ -2057,7 +2064,7 @@ function qa({
2057
2064
  (h) => !d.has(h.id)
2058
2065
  ), ...u];
2059
2066
  }
2060
- function Qa({
2067
+ function Ya({
2061
2068
  showFilters: e,
2062
2069
  onShowFiltersChange: a,
2063
2070
  pickerContent: o,
@@ -2073,7 +2080,7 @@ function Qa({
2073
2080
  return /* @__PURE__ */ r(
2074
2081
  "div",
2075
2082
  {
2076
- className: K(
2083
+ className: G(
2077
2084
  // Height lives on the shell so the outer border is part of the
2078
2085
  // h-7 box (matches regular `size="xs"` buttons). Inner triggers
2079
2086
  // stretch to fill via `h-full`.
@@ -2082,13 +2089,13 @@ function Qa({
2082
2089
  s
2083
2090
  ),
2084
2091
  children: [
2085
- /* @__PURE__ */ r(Pe, { open: e, onOpenChange: a, children: [
2086
- /* @__PURE__ */ t(Me, { asChild: !0, children: /* @__PURE__ */ r(
2092
+ /* @__PURE__ */ r(Me, { open: e, onOpenChange: a, children: [
2093
+ /* @__PURE__ */ t(_e, { asChild: !0, children: /* @__PURE__ */ r(
2087
2094
  T,
2088
2095
  {
2089
2096
  variant: "ghost",
2090
2097
  size: "xs",
2091
- className: K(
2098
+ className: G(
2092
2099
  "h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
2093
2100
  c
2094
2101
  ),
@@ -2103,7 +2110,7 @@ function Qa({
2103
2110
  {
2104
2111
  align: "end",
2105
2112
  sideOffset: 6,
2106
- className: K(
2113
+ className: G(
2107
2114
  "w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
2108
2115
  l
2109
2116
  ),
@@ -2112,13 +2119,13 @@ function Qa({
2112
2119
  }
2113
2120
  )
2114
2121
  ] }),
2115
- /* @__PURE__ */ r(Pe, { open: p, onOpenChange: h, children: [
2116
- /* @__PURE__ */ t(Me, { asChild: !0, children: /* @__PURE__ */ t(
2122
+ /* @__PURE__ */ r(Me, { open: p, onOpenChange: h, children: [
2123
+ /* @__PURE__ */ t(_e, { asChild: !0, children: /* @__PURE__ */ t(
2117
2124
  T,
2118
2125
  {
2119
2126
  variant: "ghost",
2120
2127
  size: "xs",
2121
- className: K(
2128
+ className: G(
2122
2129
  "h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
2123
2130
  m
2124
2131
  ),
@@ -2131,7 +2138,7 @@ function Qa({
2131
2138
  {
2132
2139
  align: "end",
2133
2140
  sideOffset: 6,
2134
- className: K(
2141
+ className: G(
2135
2142
  "w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
2136
2143
  u
2137
2144
  ),
@@ -2144,10 +2151,10 @@ function Qa({
2144
2151
  }
2145
2152
  );
2146
2153
  }
2147
- function Xa() {
2154
+ function Qa() {
2148
2155
  ua();
2149
2156
  const e = L((l) => l.selectedSheetId), a = L((l) => l.selectedFrameId), o = L((l) => l.dashboard), n = L((l) => l.actions.getSelectedFrame), { setSelectedFrameId: i } = be(), { setCard: s } = kt(), c = me((l) => l.card.dataSource);
2150
- return Q(() => {
2157
+ return Y(() => {
2151
2158
  var u, d;
2152
2159
  let l = n();
2153
2160
  if (!l) {
@@ -2162,11 +2169,11 @@ function Xa() {
2162
2169
  hasEntities: !!(c != null && c.selectedEntities && c.selectedEntities.length > 0)
2163
2170
  };
2164
2171
  }
2165
- function Ya() {
2172
+ function Xa() {
2166
2173
  const e = L((l) => l.dashboard), a = L(
2167
2174
  (l) => l.semanticExecutionPayload
2168
- ), o = L((l) => l.actions.addFilter), { hasEntities: n } = Xa(), { isLoading: i } = Lr(), s = Y(
2169
- () => Yt(e, a),
2175
+ ), o = L((l) => l.actions.addFilter), { hasEntities: n } = Qa(), { isLoading: i } = Lr(), s = X(
2176
+ () => Xt(e, a),
2170
2177
  [e, a]
2171
2178
  ), m = !Zt(e.filters) && s.hasEligibleCards && !i;
2172
2179
  return /* @__PURE__ */ r("div", { className: "flex h-[520px] w-[400px] flex-col", children: [
@@ -2178,7 +2185,7 @@ function Ya() {
2178
2185
  title: `Applies to ${s.eligibleCardCount} of ${s.totalCardCount} date-aware cards`,
2179
2186
  className: "flex w-full items-start gap-2 rounded-control px-2 py-1.5 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border",
2180
2187
  children: [
2181
- /* @__PURE__ */ t(va, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
2188
+ /* @__PURE__ */ t(xa, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
2182
2189
  /* @__PURE__ */ r("span", { className: "flex min-w-0 flex-col", children: [
2183
2190
  /* @__PURE__ */ t("span", { className: "text-[12px] font-medium text-foreground", children: "Add global date filter" }),
2184
2191
  /* @__PURE__ */ t("span", { className: "text-[11px] leading-[1.4] text-muted-foreground", children: "One date range across all date-aware cards." })
@@ -2292,7 +2299,7 @@ function Ja({
2292
2299
  )
2293
2300
  ] });
2294
2301
  }
2295
- function ts({
2302
+ function Gn({
2296
2303
  size: e,
2297
2304
  className: a,
2298
2305
  primaryButtonClassName: o,
@@ -2334,11 +2341,11 @@ function ts({
2334
2341
  }, [D]);
2335
2342
  return /* @__PURE__ */ r($, { children: [
2336
2343
  /* @__PURE__ */ t(
2337
- Qa,
2344
+ Ya,
2338
2345
  {
2339
2346
  showFilters: x ? !1 : d,
2340
2347
  onShowFiltersChange: S,
2341
- pickerContent: /* @__PURE__ */ t(Ya, {}),
2348
+ pickerContent: /* @__PURE__ */ t(Xa, {}),
2342
2349
  settingsContent: (b) => /* @__PURE__ */ t(
2343
2350
  Za,
2344
2351
  {
@@ -2392,7 +2399,7 @@ function en({
2392
2399
  size: "xs",
2393
2400
  variant: "outline",
2394
2401
  disabled: e,
2395
- className: K("gap-1.5", o),
2402
+ className: G("gap-1.5", o),
2396
2403
  onClick: n,
2397
2404
  "aria-label": "Reports & briefings",
2398
2405
  children: [
@@ -2403,7 +2410,7 @@ function en({
2403
2410
  }
2404
2411
  );
2405
2412
  }
2406
- const tn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", jt = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", Ve = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
2413
+ const tn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", jt = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", Pe = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
2407
2414
  function rn(e) {
2408
2415
  return e === "dashboard" ? "This dashboard" : "Project";
2409
2416
  }
@@ -2422,7 +2429,7 @@ function an(e) {
2422
2429
  return c < 5 ? `${c}w ago` : `${Math.round(s / 30)}mo ago`;
2423
2430
  }
2424
2431
  function nn(e) {
2425
- return e.scheduleExpr ? ga(
2432
+ return e.scheduleExpr ? fa(
2426
2433
  e.scheduleExpr,
2427
2434
  e.timezone || "UTC"
2428
2435
  ) ?? "Invalid schedule" : "On demand";
@@ -2459,7 +2466,7 @@ function ln({
2459
2466
  role: "tab",
2460
2467
  "aria-selected": n,
2461
2468
  onClick: () => a(o),
2462
- className: K(
2469
+ className: G(
2463
2470
  "h-6 rounded-[3px] px-2 text-[11px] transition-colors",
2464
2471
  n ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
2465
2472
  ),
@@ -2512,7 +2519,7 @@ function dn({
2512
2519
  onClick: c,
2513
2520
  className: "rounded-control p-1 text-muted-foreground hover:bg-muted hover:text-foreground",
2514
2521
  "aria-label": `Close ${y.replace("&", "and")} panel`,
2515
- children: /* @__PURE__ */ t(qe, { className: "h-3.5 w-3.5" })
2522
+ children: /* @__PURE__ */ t(Ke, { className: "h-3.5 w-3.5" })
2516
2523
  }
2517
2524
  )
2518
2525
  ] }),
@@ -2554,15 +2561,15 @@ function dn({
2554
2561
  // case without crowding the toolbar.
2555
2562
  /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" })
2556
2563
  ) : null,
2557
- w > 0 && u ? p && d ? /* @__PURE__ */ r(je, { children: [
2558
- /* @__PURE__ */ t(We, { asChild: !0, children: /* @__PURE__ */ r("button", { className: Ve, children: [
2564
+ w > 0 && u ? p && d ? /* @__PURE__ */ r(We, { children: [
2565
+ /* @__PURE__ */ t(He, { asChild: !0, children: /* @__PURE__ */ r("button", { className: Pe, children: [
2559
2566
  /* @__PURE__ */ t(ge, { className: "h-3 w-3" }),
2560
2567
  " New"
2561
2568
  ] }) }),
2562
- /* @__PURE__ */ r(He, { align: "end", children: [
2563
- /* @__PURE__ */ t(G, { onClick: () => l("scheduled_report"), children: "Schedule a report" }),
2569
+ /* @__PURE__ */ r(qe, { align: "end", children: [
2570
+ /* @__PURE__ */ t(q, { onClick: () => l("scheduled_report"), children: "Schedule a report" }),
2564
2571
  /* @__PURE__ */ t(
2565
- G,
2572
+ q,
2566
2573
  {
2567
2574
  onClick: () => l("analytical_briefing"),
2568
2575
  children: "Create analytical briefing"
@@ -2573,7 +2580,7 @@ function dn({
2573
2580
  "button",
2574
2581
  {
2575
2582
  onClick: () => l("scheduled_report"),
2576
- className: Ve,
2583
+ className: Pe,
2577
2584
  children: [
2578
2585
  /* @__PURE__ */ t(ge, { className: "h-3 w-3" }),
2579
2586
  " Schedule report"
@@ -2583,7 +2590,7 @@ function dn({
2583
2590
  "button",
2584
2591
  {
2585
2592
  onClick: () => l("analytical_briefing"),
2586
- className: Ve,
2593
+ className: Pe,
2587
2594
  children: [
2588
2595
  /* @__PURE__ */ t(ge, { className: "h-3 w-3" }),
2589
2596
  " New briefing"
@@ -2628,10 +2635,10 @@ function dn({
2628
2635
  "a",
2629
2636
  {
2630
2637
  href: D,
2631
- className: K(jt, "h-6 px-1 text-[11px]"),
2638
+ className: G(jt, "h-6 px-1 text-[11px]"),
2632
2639
  children: [
2633
2640
  "Manage all reports & briefings",
2634
- /* @__PURE__ */ t(xa, { className: "h-3 w-3" })
2641
+ /* @__PURE__ */ t(ba, { className: "h-3 w-3" })
2635
2642
  ]
2636
2643
  }
2637
2644
  ) }) : null
@@ -2662,7 +2669,7 @@ function cn({
2662
2669
  "button",
2663
2670
  {
2664
2671
  onClick: () => e("scheduled_report"),
2665
- className: Ve,
2672
+ className: Pe,
2666
2673
  children: [
2667
2674
  /* @__PURE__ */ t(ge, { className: "h-3 w-3" }),
2668
2675
  " Schedule a report"
@@ -2866,11 +2873,11 @@ function hn({
2866
2873
  onTogglePause: s,
2867
2874
  onDelete: c
2868
2875
  }) {
2869
- const m = e.status === "PAUSED", l = e.hasActiveRun, u = sn(e), d = an(e.lastRunAt), p = e.lastRunStatus, h = se(e), f = p === "SUCCESS" ? Ue.success.dot : p === "FAILED" ? Ue.danger.dot : p ? Ue.warning.dot : Ue.neutral.dot;
2876
+ const m = e.status === "PAUSED", l = e.hasActiveRun, u = sn(e), d = an(e.lastRunAt), p = e.lastRunStatus, h = se(e), f = p === "SUCCESS" ? Re.success.dot : p === "FAILED" ? Re.danger.dot : p ? Re.warning.dot : Re.neutral.dot;
2870
2877
  return /* @__PURE__ */ r(
2871
2878
  "div",
2872
2879
  {
2873
- className: K(
2880
+ className: G(
2874
2881
  "group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
2875
2882
  m && "opacity-70"
2876
2883
  ),
@@ -2909,7 +2916,7 @@ function hn({
2909
2916
  l ? /* @__PURE__ */ t(re, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ t(
2910
2917
  "span",
2911
2918
  {
2912
- className: K(
2919
+ className: G(
2913
2920
  "inline-block h-1.5 w-1.5 shrink-0 rounded-full",
2914
2921
  f
2915
2922
  )
@@ -2920,8 +2927,8 @@ function hn({
2920
2927
  ]
2921
2928
  }
2922
2929
  ),
2923
- /* @__PURE__ */ t("div", { className: "absolute right-3 top-3", children: o ? /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : a ? /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ r(je, { children: [
2924
- /* @__PURE__ */ t(We, { asChild: !0, children: /* @__PURE__ */ t(
2930
+ /* @__PURE__ */ t("div", { className: "absolute right-3 top-3", children: o ? /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : a ? /* @__PURE__ */ t(re, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ r(We, { children: [
2931
+ /* @__PURE__ */ t(He, { asChild: !0, children: /* @__PURE__ */ t(
2925
2932
  "button",
2926
2933
  {
2927
2934
  type: "button",
@@ -2931,14 +2938,14 @@ function hn({
2931
2938
  children: /* @__PURE__ */ t(Lt, { className: "h-3.5 w-3.5" })
2932
2939
  }
2933
2940
  ) }),
2934
- /* @__PURE__ */ r(He, { align: "end", className: "w-44", children: [
2935
- /* @__PURE__ */ r(G, { onClick: n, children: [
2941
+ /* @__PURE__ */ r(qe, { align: "end", className: "w-44", children: [
2942
+ /* @__PURE__ */ r(q, { onClick: n, children: [
2936
2943
  /* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
2937
2944
  "Edit ",
2938
2945
  h.noun
2939
2946
  ] }),
2940
2947
  /* @__PURE__ */ r(
2941
- G,
2948
+ q,
2942
2949
  {
2943
2950
  onClick: (g) => {
2944
2951
  g.preventDefault(), i();
@@ -2950,7 +2957,7 @@ function hn({
2950
2957
  }
2951
2958
  ),
2952
2959
  e.scheduleExpr ? /* @__PURE__ */ t(
2953
- G,
2960
+ q,
2954
2961
  {
2955
2962
  onClick: (g) => {
2956
2963
  g.preventDefault(), s();
@@ -2964,16 +2971,16 @@ function hn({
2964
2971
  ] })
2965
2972
  }
2966
2973
  ) : null,
2967
- /* @__PURE__ */ t(ze, {}),
2974
+ /* @__PURE__ */ t($e, {}),
2968
2975
  /* @__PURE__ */ r(
2969
- G,
2976
+ q,
2970
2977
  {
2971
2978
  onClick: (g) => {
2972
2979
  g.preventDefault(), c();
2973
2980
  },
2974
2981
  className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
2975
2982
  children: [
2976
- /* @__PURE__ */ t(_e, { className: "h-3.5 w-3.5" }),
2983
+ /* @__PURE__ */ t(ze, { className: "h-3.5 w-3.5" }),
2977
2984
  "Delete ",
2978
2985
  h.noun
2979
2986
  ]
@@ -3012,7 +3019,7 @@ async function xn(e) {
3012
3019
  return o;
3013
3020
  }
3014
3021
  const vn = {
3015
- listBriefings: Gr,
3022
+ listBriefings: qr,
3016
3023
  getBriefing: Hr,
3017
3024
  pauseBriefing: Wr,
3018
3025
  resumeBriefing: jr,
@@ -3048,12 +3055,12 @@ function yn({
3048
3055
  s();
3049
3056
  }
3050
3057
  }), d = ce(!1);
3051
- return Q(() => {
3058
+ return Y(() => {
3052
3059
  d.current || (d.current = !0, ra(a.status) ? u(a) : aa(a.status) && i(a));
3053
3060
  }, [a, i, u]), /* @__PURE__ */ t(na, { run: m, onExpand: c });
3054
3061
  }
3055
- function rs(e) {
3056
- return /* @__PURE__ */ t(Or, { children: /* @__PURE__ */ t(Cn, { ...e }) });
3062
+ function Kn(e) {
3063
+ return /* @__PURE__ */ t(_r, { children: /* @__PURE__ */ t(Cn, { ...e }) });
3057
3064
  }
3058
3065
  function Cn({
3059
3066
  dashboardId: e,
@@ -3069,7 +3076,7 @@ function Cn({
3069
3076
  workflowIntent: d,
3070
3077
  client: p
3071
3078
  }) {
3072
- const { authToken: h, tokenProps: f } = Ge(), g = _r(), k = !d || g.canCreate && (d === "scheduled_report" || g.analyticalBriefingsEnabled), [x, D] = A(!1), S = m ?? x, C = (N) => {
3079
+ const { authToken: h, tokenProps: f } = Ge(), g = Or(), k = !d || g.canCreate && (d === "scheduled_report" || g.analyticalBriefingsEnabled), [x, D] = A(!1), S = m ?? x, C = (N) => {
3073
3080
  m === void 0 && D(N), l == null || l(N);
3074
3081
  }, [w, E] = A(
3075
3082
  d ? "author" : "list"
@@ -3077,16 +3084,16 @@ function Cn({
3077
3084
  d ?? "analytical_briefing"
3078
3085
  ), [y, R] = A("dashboard"), [I, H] = A(
3079
3086
  []
3080
- ), [F, P] = A(null), Z = d && !k && !F ? "list" : w, [ae, Ee] = A(!1), [oe, Ae] = A(null), [Ie, ie] = A(null), [j, J] = A(
3087
+ ), [F, P] = A(null), Z = d && !k && !F ? "list" : w, [ae, Ae] = A(!1), [oe, Ie] = A(null), [Fe, ie] = A(null), [j, J] = A(
3081
3088
  null
3082
- ), [le, ee] = A(null), Fe = ce(null), xe = ce(S);
3083
- Q(() => {
3089
+ ), [le, ee] = A(null), Le = ce(null), xe = ce(S);
3090
+ Y(() => {
3084
3091
  const N = S && !xe.current;
3085
3092
  xe.current = S, !(!N || !d) && (P(null), R("dashboard"), b(d), E("author"), ee(null));
3086
3093
  }, [S, d]);
3087
3094
  const [ue, pe] = A(
3088
3095
  null
3089
- ), [X, ve] = A(null), O = o ?? (f == null ? void 0 : f.apiServiceUrl), _ = n ?? (h == null ? void 0 : h.accessToken), ne = Y(() => ({ ...vn, ...p }), [p]), fe = fn(a), Le = Y(() => {
3096
+ ), [Q, ve] = A(null), _ = o ?? (f == null ? void 0 : f.apiServiceUrl), O = n ?? (h == null ? void 0 : h.accessToken), ne = X(() => ({ ...vn, ...p }), [p]), fe = fn(a), Be = X(() => {
3090
3097
  const N = bn(
3091
3098
  I,
3092
3099
  y,
@@ -3096,9 +3103,9 @@ function Cn({
3096
3103
  return N;
3097
3104
  const V = d === "scheduled_report" ? "report" : "briefing";
3098
3105
  return N.filter(
3099
- (Be) => se(Be).noun === V
3106
+ (Te) => se(Te).noun === V
3100
3107
  );
3101
- }, [e, I, y, d]), Qe = Y(() => y === "dashboard" ? {
3108
+ }, [e, I, y, d]), Ye = X(() => y === "dashboard" ? {
3102
3109
  source: { type: "dashboard", dashboardId: e },
3103
3110
  label: fe,
3104
3111
  detail: gn(fe)
@@ -3106,19 +3113,19 @@ function Cn({
3106
3113
  source: { type: "project" },
3107
3114
  label: "This project",
3108
3115
  detail: "Use any data in this project."
3109
- }, [e, fe, y]), ye = !!(O && _), Ce = ba({
3116
+ }, [e, fe, y]), ye = !!(_ && O), Ce = ga({
3110
3117
  canCreate: g.canCreate,
3111
3118
  analyticalBriefingsEnabled: g.analyticalBriefingsEnabled,
3112
3119
  scheduledReportAvailable: y === "dashboard"
3113
- }), q = W(async () => {
3114
- if (!(!O || !_)) {
3115
- Ee(!0), ee(null);
3120
+ }), K = W(async () => {
3121
+ if (!(!_ || !O)) {
3122
+ Ae(!0), ee(null);
3116
3123
  try {
3117
3124
  H(
3118
3125
  await xn({
3119
3126
  apiClient: ne,
3120
- apiServiceUrl: O,
3121
- token: _
3127
+ apiServiceUrl: _,
3128
+ token: O
3122
3129
  })
3123
3130
  );
3124
3131
  } catch (N) {
@@ -3126,24 +3133,24 @@ function Cn({
3126
3133
  N instanceof Error ? N.message : "Could not load briefings."
3127
3134
  );
3128
3135
  } finally {
3129
- Ee(!1);
3136
+ Ae(!1);
3130
3137
  }
3131
3138
  }
3132
- }, [ne, O, _]);
3133
- Q(() => {
3134
- !S || Z !== "list" || !ye || q();
3135
- }, [ye, Z, q, S]);
3139
+ }, [ne, _, O]);
3140
+ Y(() => {
3141
+ !S || Z !== "list" || !ye || K();
3142
+ }, [ye, Z, K, S]);
3136
3143
  const we = () => {
3137
3144
  P(null), R("dashboard"), E("list"), C(!0);
3138
3145
  }, v = (N) => {
3139
3146
  P(null), b(N), E("author");
3140
3147
  }, B = async (N) => {
3141
- if (!(!O || !_)) {
3142
- Ae(N), ee(null);
3148
+ if (!(!_ || !O)) {
3149
+ Ie(N), ee(null);
3143
3150
  try {
3144
3151
  const V = await ne.getBriefing(
3145
- O,
3146
3152
  _,
3153
+ O,
3147
3154
  N
3148
3155
  );
3149
3156
  P(V.briefing), E("author");
@@ -3152,19 +3159,19 @@ function Cn({
3152
3159
  V instanceof Error ? V.message : "Could not open briefing."
3153
3160
  );
3154
3161
  } finally {
3155
- Ae(null);
3162
+ Ie(null);
3156
3163
  }
3157
3164
  }
3158
3165
  }, M = async (N) => {
3159
- if (!(!O || !_)) {
3166
+ if (!(!_ || !O)) {
3160
3167
  ie(N.id);
3161
3168
  try {
3162
3169
  await ne.runBriefingNow(
3163
- O,
3164
3170
  _,
3171
+ O,
3165
3172
  N.id,
3166
3173
  { requestId: wn() }
3167
- ), q();
3174
+ ), K();
3168
3175
  } catch (V) {
3169
3176
  z.error(
3170
3177
  V instanceof Error ? V.message : "Could not start the run."
@@ -3174,41 +3181,41 @@ function Cn({
3174
3181
  }
3175
3182
  }
3176
3183
  }, te = async (N) => {
3177
- if (!O || !_) return;
3178
- const { noun: V } = se(N), Be = V === "report" ? "Report" : "Briefing";
3184
+ if (!_ || !O) return;
3185
+ const { noun: V } = se(N), Te = V === "report" ? "Report" : "Briefing";
3179
3186
  ie(N.id);
3180
3187
  try {
3181
- const Te = N.status === "PAUSED" ? await ne.resumeBriefing(
3182
- O,
3188
+ const Ue = N.status === "PAUSED" ? await ne.resumeBriefing(
3183
3189
  _,
3190
+ O,
3184
3191
  N.id
3185
3192
  ) : await ne.pauseBriefing(
3186
- O,
3187
3193
  _,
3194
+ O,
3188
3195
  N.id
3189
3196
  );
3190
3197
  z.success(
3191
- Te.briefing.status === "PAUSED" ? `${Be} paused` : `${Be} resumed`
3192
- ), q();
3193
- } catch (Te) {
3198
+ Ue.briefing.status === "PAUSED" ? `${Te} paused` : `${Te} resumed`
3199
+ ), K();
3200
+ } catch (Ue) {
3194
3201
  z.error(
3195
- Te instanceof Error ? Te.message : `Could not update the ${V} status.`
3202
+ Ue instanceof Error ? Ue.message : `Could not update the ${V} status.`
3196
3203
  );
3197
3204
  } finally {
3198
3205
  ie(null);
3199
3206
  }
3200
3207
  }, de = async () => {
3201
- if (!j || !O || !_) return;
3208
+ if (!j || !_ || !O) return;
3202
3209
  const N = j;
3203
3210
  ie(N.id);
3204
3211
  try {
3205
3212
  await ne.deleteBriefing(
3206
- O,
3207
3213
  _,
3214
+ O,
3208
3215
  N.id
3209
3216
  );
3210
3217
  const { noun: V } = se(N);
3211
- z.success(`${V === "report" ? "Report" : "Briefing"} deleted`), J(null), q();
3218
+ z.success(`${V === "report" ? "Report" : "Briefing"} deleted`), J(null), K();
3212
3219
  } catch (V) {
3213
3220
  z.error(
3214
3221
  V instanceof Error ? V.message : "Could not delete the briefing."
@@ -3216,8 +3223,8 @@ function Cn({
3216
3223
  } finally {
3217
3224
  ie(null);
3218
3225
  }
3219
- }, Ht = Le.length;
3220
- return g.surfaceVisible ? /* @__PURE__ */ r(Kr, { open: S, onOpenChange: C, children: [
3226
+ }, Ht = Be.length;
3227
+ return g.surfaceVisible ? /* @__PURE__ */ r(Gr, { open: S, onOpenChange: C, children: [
3221
3228
  u ? null : /* @__PURE__ */ t(
3222
3229
  en,
3223
3230
  {
@@ -3228,20 +3235,20 @@ function Cn({
3228
3235
  }
3229
3236
  ),
3230
3237
  /* @__PURE__ */ r(
3231
- qr,
3238
+ Kr,
3232
3239
  {
3233
- ref: Fe,
3240
+ ref: Le,
3234
3241
  side: "right",
3235
3242
  hideClose: !0,
3236
3243
  className: "flex h-full w-full flex-col overflow-hidden p-0 outline-none sm:max-w-[560px]",
3237
3244
  onOpenAutoFocus: (N) => {
3238
3245
  var V;
3239
- N.preventDefault(), (V = Fe.current) == null || V.focus({ preventScroll: !0 });
3246
+ N.preventDefault(), (V = Le.current) == null || V.focus({ preventScroll: !0 });
3240
3247
  },
3241
3248
  children: [
3242
- /* @__PURE__ */ r(Qr, { className: "sr-only", children: [
3243
- /* @__PURE__ */ t(Xr, { children: "Reports & briefings" }),
3244
- /* @__PURE__ */ t(Yr, { children: "Manage reports and briefings for this dashboard." })
3249
+ /* @__PURE__ */ r(Yr, { className: "sr-only", children: [
3250
+ /* @__PURE__ */ t(Qr, { children: "Reports & briefings" }),
3251
+ /* @__PURE__ */ t(Xr, { children: "Manage reports and briefings for this dashboard." })
3245
3252
  ] }),
3246
3253
  d ? /* @__PURE__ */ r("div", { className: "flex shrink-0 items-start justify-between gap-3 border-b border-border pl-4 pr-3 pt-2", children: [
3247
3254
  /* @__PURE__ */ r(
@@ -3258,7 +3265,7 @@ function Cn({
3258
3265
  role: "tab",
3259
3266
  "aria-selected": Z === "author",
3260
3267
  disabled: !k,
3261
- className: K(
3268
+ className: G(
3262
3269
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
3263
3270
  Z === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
3264
3271
  !k && "cursor-not-allowed opacity-50"
@@ -3275,7 +3282,7 @@ function Cn({
3275
3282
  type: "button",
3276
3283
  role: "tab",
3277
3284
  "aria-selected": Z === "list",
3278
- className: K(
3285
+ className: G(
3279
3286
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
3280
3287
  Z === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
3281
3288
  ),
@@ -3293,14 +3300,14 @@ function Cn({
3293
3300
  onClick: () => C(!1),
3294
3301
  className: "rounded-control p-1 text-muted-foreground hover:bg-muted hover:text-foreground",
3295
3302
  "aria-label": d === "scheduled_report" ? "Close email report workflow" : "Close analytical briefing workflow",
3296
- children: /* @__PURE__ */ t(qe, { className: "h-3.5 w-3.5" })
3303
+ children: /* @__PURE__ */ t(Ke, { className: "h-3.5 w-3.5" })
3297
3304
  }
3298
3305
  )
3299
3306
  ] }) : null,
3300
3307
  Z === "list" ? /* @__PURE__ */ t(
3301
3308
  dn,
3302
3309
  {
3303
- briefings: Le,
3310
+ briefings: Be,
3304
3311
  dashboardLabel: fe,
3305
3312
  sourceView: y,
3306
3313
  error: le,
@@ -3326,7 +3333,7 @@ function Cn({
3326
3333
  },
3327
3334
  onDelete: (N) => J(N),
3328
3335
  selectingId: oe,
3329
- busyId: Ie,
3336
+ busyId: Fe,
3330
3337
  manageBriefingsHref: c,
3331
3338
  contentKind: d === "scheduled_report" ? "reports" : d === "analytical_briefing" ? "briefings" : void 0,
3332
3339
  hideHeader: !!d
@@ -3334,11 +3341,11 @@ function Cn({
3334
3341
  ) : /* @__PURE__ */ t(
3335
3342
  Zr,
3336
3343
  {
3337
- apiServiceUrl: O,
3338
- token: _,
3344
+ apiServiceUrl: _,
3345
+ token: O,
3339
3346
  briefing: F,
3340
3347
  intent: U,
3341
- sourceContext: F ? void 0 : Qe,
3348
+ sourceContext: F ? void 0 : Ye,
3342
3349
  title: F ? `Edit ${se(F).noun}` : U === "scheduled_report" ? "Schedule report" : "Create analytical briefing",
3343
3350
  hideHeader: !!d,
3344
3351
  className: "h-full min-h-0 max-w-none border-0 shadow-none",
@@ -3346,12 +3353,12 @@ function Cn({
3346
3353
  onCancel: () => C(!1),
3347
3354
  onDeleted: () => {
3348
3355
  const N = F ? se(F).noun : "briefing";
3349
- z.success(`${N === "report" ? "Report" : "Briefing"} deleted`), P(null), E("list"), q();
3356
+ z.success(`${N === "report" ? "Report" : "Briefing"} deleted`), P(null), E("list"), K();
3350
3357
  },
3351
3358
  onRunStarted: () => {
3352
3359
  },
3353
3360
  onSaved: (N) => {
3354
- P(N), q();
3361
+ P(N), K();
3355
3362
  },
3356
3363
  onMinimizeRun: ({ briefing: N, run: V }) => {
3357
3364
  pe({ briefing: N, run: V }), C(!1);
@@ -3361,40 +3368,40 @@ function Cn({
3361
3368
  ]
3362
3369
  }
3363
3370
  ),
3364
- ue && O && _ ? /* @__PURE__ */ t(
3371
+ ue && _ && O ? /* @__PURE__ */ t(
3365
3372
  yn,
3366
3373
  {
3367
3374
  briefingId: ue.briefing.id,
3368
3375
  initialRun: ue.run,
3369
- apiServiceUrl: O,
3370
- token: _,
3376
+ apiServiceUrl: _,
3377
+ token: O,
3371
3378
  onTerminal: (N) => {
3372
3379
  ve({
3373
3380
  briefing: ue.briefing,
3374
3381
  run: N
3375
- }), pe(null), q();
3382
+ }), pe(null), K();
3376
3383
  },
3377
3384
  onTimeout: () => {
3378
- pe(null), q();
3385
+ pe(null), K();
3379
3386
  },
3380
3387
  onExpand: () => {
3381
3388
  P(ue.briefing), E("author"), pe(null), C(!0);
3382
3389
  }
3383
3390
  }
3384
3391
  ) : null,
3385
- X ? /* @__PURE__ */ t("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ t(
3392
+ Q ? /* @__PURE__ */ t("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ t(
3386
3393
  Jr,
3387
3394
  {
3388
- title: X.run.status === "SUCCESS" ? `${X.briefing.name} is ready` : `${X.briefing.name} run failed`,
3389
- durationSeconds: X.run.startedAt && X.run.completedAt ? Math.max(
3395
+ title: Q.run.status === "SUCCESS" ? `${Q.briefing.name} is ready` : `${Q.briefing.name} run failed`,
3396
+ durationSeconds: Q.run.startedAt && Q.run.completedAt ? Math.max(
3390
3397
  0,
3391
3398
  Math.floor(
3392
- (new Date(X.run.completedAt).getTime() - new Date(X.run.startedAt).getTime()) / 1e3
3399
+ (new Date(Q.run.completedAt).getTime() - new Date(Q.run.startedAt).getTime()) / 1e3
3393
3400
  )
3394
3401
  ) : null,
3395
- status: X.run.status === "SUCCESS" ? "success" : "failed",
3402
+ status: Q.run.status === "SUCCESS" ? "success" : "failed",
3396
3403
  onView: () => {
3397
- P(X.briefing), E("author"), ve(null), C(!0);
3404
+ P(Q.briefing), E("author"), ve(null), C(!0);
3398
3405
  },
3399
3406
  onDismiss: () => ve(null)
3400
3407
  }
@@ -3444,20 +3451,20 @@ function wn() {
3444
3451
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
3445
3452
  }
3446
3453
  export {
3447
- Xn as A,
3454
+ $n as A,
3448
3455
  $a as D,
3449
- _a as E,
3450
- es as N,
3451
- Yn as U,
3452
- Kn as V,
3456
+ Oa as E,
3457
+ qn as N,
3458
+ jn as U,
3459
+ _n as V,
3453
3460
  en as W,
3454
- Qn as a,
3455
- Oa as b,
3456
- Zn as c,
3457
- Jn as d,
3461
+ zn as a,
3462
+ _a as b,
3463
+ Wn as c,
3464
+ Hn as d,
3458
3465
  Wa as e,
3459
- Qa as f,
3460
- ts as g,
3461
- rs as h,
3462
- qn as u
3466
+ Ya as f,
3467
+ Gn as g,
3468
+ Kn as h,
3469
+ On as u
3463
3470
  };